Create a gist now

Instantly share code, notes, and snippets.

Error generated by vget parsing function
This file has been truncated, but you can view the full file.
var _yt_player={};(function(g){var window=this;var h,p,q,r,ca,da,ea,fa,v,ga,ha,ia,ka,na,oa,pa,w,qa,ra,y,sa,va,wa,A,xa,ya,Ga,Ka,Ha,Ia,Ma,Na,Pa,B,Qa,Ra,Ua,Ta,Va,Xa,Ya,Za,$a,ab,bb,db,fb,eb,ib,gb,kb,lb,nb,ob,qb,pb,rb,sb,tb,ub,wb,vb,xb,Ab,Bb,yb,Cb,Db,Eb,Gb,zb,Fb,Hb,Ib,Jb,Kb,Lb,Mb,E,F,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Xb,Yb,Zb,$b,ac,Wb,bc,cc,dc,ec,fc,gc,hc,ic,jc,lc,mc,oc,pc,qc,sc,tc,uc,vc,yc,Ac,Dc,Ec,Gc,Jc,Kc,Lc,Nc,Oc,Pc,Qc,Mc,Rc,Tc,Wc,ad,bd,cd,Xc,fd,ed,Zc,Uc,Sc,I,hd,id,jd,kd,ld,md,pd,od,qd,rd,xd,td,yd,zd,Ad,Cd,Dd,Fd,Gd,Hd,Jd,Kd,Md,Od,Pd,Td,Nd,Bd,Id,Wd,Sd,
Qd,Rd,Xd,Vd,Ud,Ld,Zd,$d,ae,be,ce,de,ee,fe,J,ge,ie,je,K,le,re,te,ue,ve,ye,ze,Be,Ce,Fe,Ee,He,Ie,Je,Le,Me,Oe,Ne,Ve,We,Xe,Ye,Ze,af,bf,cf,df,ef,ff,gf,lf,nf,of,mf,qf,rf,uf,sf,vf,L,wf,yf,Af,Bf,Cf,Df,Ef,Ff,Gf,If,Kf,Jf,Mf,Nf,jf,Of,Pf,Qf,Tf,Rf,Sf,zf,Vf,Wf,Uf,hf,Xf,Yf,Zf,bg,ag,$f,cg,dg,gg,hg,ig,kg,lg,mg,ng,og,pg,qg,sg,tg,ug,vg,xg,yg,zg,wg,Ag,Bg,Cg,Dg,Fg,Gg,Ig,Jg,Kg,Lg,Mg,Ng,Og,Pg,Qg,Rg,Sg,Tg,Ug,Wg,Xg,Zg,$g,M,ah,bh,ch,dh,eh,kh,mh,nh,oh,ph,fh,ih,qh,gh,sh,rh,uh,lh,th,hh,vh,xh,yh,zh,Ah,Bh,Ch,Dh,Eh,Fh,Gh,Hh,Ih,Jh,
Kh,Lh,Mh,Nh,Oh,Ph,Rh,Th,Uh,Vh,Wh,Xh,bi,ci,di,ei,ki,ji,gi,li,qi,ti,ni,si,pi,ri,yi,zi,Ai,Bi,Ci,Di,Ei,Gi,Hi,Fi,Li,Mi,Oi,Pi,Qi,Ri,Ni,Si,Ui,O,Ji,$i,bj,aj,cj,dj,ej,fj,Vi,jj,ij,lj,kj,mj,nj,oj,pj,qj,rj,sj,tj,uj,vj,wj,xj,yj,zj,Bj,Dj,Ej,Fj,Gj,Hj,Ij,Jj,Kj,Mj,Nj,Lj,Oj,Pj,Qj,Tj,Sj,Wj,Xj,Vj,Yj,bk,Zj,ak,ck,dk,ek,fk,gk,hk,ik,jk,ok,pk,qk,rk,sk,tk,uk,wk,xk,yk,vk,zk,Bk,Ck,Ek,Kk,Fk,Ik,Lk,Gk,Nk,Hk,Qk,Ok,Pk,Rk,Sk,Uk,Wk,Xk,Vk,Yk,$k,al,cl,dl,Zk,el,bl,gl,jl,kl,il,ll,fl,hl,ml,nl,ol,ql,sl,rl,pl,tl,ul,vl,wl,xl,yl,zl,mi,Al,Bl,
Cl,Ll,Kl,Rl,Sl,Tl,Ul,Wl,Xl,Yl,Dl,$l,Fl,Nl,Hl,El,Il,Jl,Vl,Pl,Gl,am,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,an,Um,dn,Sm,en,gn,$m,Zm,Ym,kn,jn,ln,mn,on,qn,rn,sn,tn,un,xn,vn,hn,Cn,wn,Dn,An,En,yn,Fn,Gn,Hn,In,Jn,Nn,Kn,Qn,Pn,Tn,Sn,Ln,Rn,Un,Wn,pn,On,Vn,Yn,Xn,Mn,nn,fn,Wm,$n,bo,ao,co,eo,fo,go,ho,io,jo,ko,lo,mo,no,oo,po,qo,ro,so,to,wo,xo,Ao,uo,Bo,Co,Do,yo,zo,Eo,vo,Go,Fo,Io,Jo,Ho,Ko,Lo,Mo,No,Qo,Oo,So,To,Uo,Wo,Vo,Xo,Ro,Po,Yo,lp,np,rp,
qp,up,tp,pp,sp,gp,yp,vp,Bp,Ap,dp,bp,cp,Cp,zp,fp,op,xp,hp,wp,kp,ap,ip,jp,Fp,Ip,Jp,Kp,Mp,Np,Op,Pp,Qp,Rp,Sp,Tp,Lp,Vp,Yp,Up,bq,cq,dq,eq,hq,iq,jq,kq,lq,mq,nq,pq,oq,tq,qq,uq,rq,sq,vq,wq,xq,Q,yq,zq,Aq,Cq,Eq,Dq,Gq,Hq,Iq,Kq,Lq,Mq,Nq,Pq,Oq,Rq,Tq,Qq,Sq,Vq,Jq,Uq,Xq,Wq,Yq,Zq,$q,ar,br,fr,gr,hr,ir,jr,kr,mr,nr,or,pr,qr,rr,tr,ur,xr,wr,yr,zr,Ar,Br,Cr,Fr,Gr,Hr,Jr,Ir,Kr,Mr,Or,Pr,Nr,Lr,Rr,Sr,Tr,Ur,Vr,Wr,Xr,Yr,Zr,$r,as,cs,bs,ds,es,fs,gs,is,hs,js,ks,ls,ms,ns,os,ps,qs,ts,rs,us,vs,ws,xs,zs,ys,As,Bs,Cs,Ds,Es,Is,Js,Fs,Gs,Hs,
Ks,Ls,Ss,Vs,Ms,Ts,Xs,Us,$s,Ws,Ys,Zs,Ns,at,Os,bt,Ps,Qs,Rs,ct,dt,et,ht,it,kt,gt,mt,nt,pt,ot,lt,ft,jt,qt,rt,tt,ut,vt,wt,xt,zt,At,Bt,Ct,Et,Ft,Gt,Ht,Kt,Jt,It,Lt,Nt,Mt,Pt,Qt,Rt,St,Tt,Ut,Vt,Wt,Xt,$t,au,bu,du,eu,cu,iu,ku,ju,ou,nu,qu,ru,uu,wu,vu,xu,yu,zu,Au,Bu,Du,Fu,Gu,Hu,Iu,Ju,Ku,Lu,Ou,Qu,Pu,Su,Ru,Nu,Tu,Mu,Uu,Vu,Wu,Xu,Yu,Zu,av,bv,cv,dv,ev,hv,gv,iv,jv,kv,pv,nv,tv,uv,vv,wv,xv,zv,Av,Bv,Cv,Dv,Ev,Hv,Lv,Nv,Mv,Gv,Pv,Qv,Rv,Sv,Uv,$v,bw,cw,aw,kw,nw,ow,mw,Zv,qw,Yv,Wv,Xv,dw,hw,lw,jw,rw,tw,uw,vw,fu,xw,yw,zw,Aw,Bw,Cw,
Dw,Ew,Fw,Gw,Hw,Iw,Jw,Kw,Lw,Mw,Nw,Ow,Pw,Tw,Sw,Zw,Yw,hx,ix,tx,sx,rx,qx,gx,ux,vx,wx,xx,yx,zx,Ax,Bx,Cx,Dx,Ex,Gx,Lx,Fx,Ux,Vx,Tx,Zx,$x,Wx,ay,Xx,hy,fy,iy,jy,ky,ly,my,ny,oy,Yx,Kx,Px,Qx,Ix,Jx,gy,py,qy,ry,sy,ty,uy,cy,by,dy,By,Cy,Dy,Ey,Fy,vy,wy,yy,zy,Ay,Gy,Hy,Iy,Jy,Ky,Ly,My,Ny,Py,Oy,Qy,Ry,Sy,Ty,Vy,Yy,Zy,az,bz,dz,ez,fz,hz,jz,lz,nz,iz,gz,oz,pz,rz,sz,tz,uz,zz,vz,yz,Bz,Cz,Dz,T,wz,Ez,Fz,Gz,Hz,Iz,Jz,Nz,Oz,Tz,Uz,Vz,Yz,Wz,Xz,Zz,aA,$z,bA,fA,gA,eA,dA,jA,kA,lA,mA,Kz,Mz,Lz,nA,Sz,pA,oA,Qz,rA,Pz,tA,vA,xA,yA,zA,AA,DA,EA,FA,
CA,GA,HA,IA,JA,KA,LA,MA,PA,RA,QA,TA,UA,SA,VA,WA,XA,YA,$A,aB,bB,cB,eB,dB,fB,gB,aaa,baa,hB,iB,jB,kB,lB,mB,nB,oB,pB,caa,qB,daa,eaa,faa,rB,sB,uB,tB,haa,vB,wB,iaa,xB,yB,AB,BB,CB,DB,EB,FB,GB,HB,IB,JB,KB,LB,MB,NB,PB,QB,jaa,SB,RB,TB,VB,XB,YB,ZB,bC,dC,eC,aC,$B,laa,iC,jC,kC,maa,gC,hC,fC,mC,nC,lC,pC,qC,naa,oaa,rC,paa,qaa,raa,tC,uC,vC,wC,xC,yC,taa,uaa,FC,HC,IC,DC,GC,zC,CC,AC,JC,BC,EC,KC,LC,MC,NC,OC,vaa,PC,QC,RC,TC,zaa,Aaa,VC,YC,SC,waa,xaa,yaa,Caa,WC,ZC,$C,Baa,aD,bD,cD,dD,eD,Faa,Gaa,Jaa,Kaa,fD,Laa,iD,gD,hD,jD,
kD,mD,nD,oD,Naa,Oaa,Qaa,pD,Raa,Saa,qD,Uaa,Vaa,Waa,rD,Zaa,uD,wD,vD,aba,$aa,xD,bba,zD,yD,AD,BD,cba,CD,DD,ED,GD,FD,HD,dba,ID,JD,KD,LD,MD,ND,OD,PD,fba,QD,RD,SD,TD,UD,VD,WD,gba,XD,$D,aE,bE,cE,dE,eE,YD,fE,gE,hba,ZD,iE,jE,kE,lE,mE,jba,kba,lba,mba,nba,oba,oE,pE,qE,rE,sE,pba,tE,uE,vE,wE,lD,xE,qba,rba,yE,EE,DE,FE,zE,GE,HE,IE,JE,uba,vba,wba,NE,xba,KE,LE,yba,PE,OE,QE,tba,zba,RE,ME,SE,TE,UE,VE,WE,XE,YE,ZE,$E,aF,bF,cF,dF,eF,hF,jF,fF,xz,lF,mF,nF,Aba,oF,gF,kF,pF,qF,sF,rF,tF,uF,yF,zF,xF,vF,BF,KF,LF,JF,OB,PF,QF,RF,
SF,TF,kz,Wy,IF,GF,VF,ey,XF,YF,ZF,$F,aG,bG,Fba,cG,eG,dG,Gba,fG,Hba,gG,hG,Iba,iG,jG,Jba,kG,lG,Kba,mG,nG,oG,pG,qG,rG,sG,tG,vG,uG,wG,yG,GG,CG,zG,AG,BG,DG,EG,FG,KG,JG,IG,Pba,MG,LG,NG,OG,QG,SG,PG,RG,VG,WG,XG,ZG,Qba,$G,Rba,Sba,Tba,Uba,Vba,TG,Wba,cH,dH,eH,Xba,fH,Yba,Zba,$ba,gH,iH,hH,jH,kH,aca,bca,cca,lH,dca,oH,pH,qH,rH,eca,fca,xH,vH,uH,wH,AH,yH,sH,gca,tH,hca,zH,ica,BH,CH,jca,DH,EH,kca,lca,mca,nca,FH,HH,KH,IH,LH,MH,OH,QH,NH,PH,TH,oca,pca,VH,WH,SH,XH,YH,RH,ZH,$H,aI,UH,bI,cI,qca,rca,dI,fI,gI,eI,hI,iI,jI,kI,
lI,mI,nI,pI,JH,qI,GH,oI,tca,tI,uI,vI,yI,AI,BI,CI,FI,GI,II,HI,uca,vca,JI,KI,NI,MI,LI,EI,OI,PI,QI,wI,RI,xI,zI,SI,TI,UI,wca,VI,WI,xca,XI,YI,yca,bJ,cJ,zca,ZI,Aca,Bca,fJ,Cca,eJ,gJ,hJ,jJ,lJ,kJ,mJ,nJ,Eca,oJ,qJ,pJ,Fca,sJ,Az,tJ,Gca,uJ,vJ,UB,wJ,WB,zB,xJ,cC,yJ,AJ,BJ,DJ,EJ,HJ,GJ,zJ,LJ,KJ,CJ,IJ,OJ,QJ,PJ,WJ,XJ,ZJ,$J,YJ,aK,bK,RJ,MJ,VJ,TJ,cK,NJ,Kca,eK,fK,Ica,gK,Lca,iK,FJ,jK,JJ,Jca,Mca,SJ,dK,UJ,hK,lK,U,kK,mK,nK,Nca,pK,qK,rK,R,uA,BE,sK,tK,Xy,uK,vK,wK,oC,XC,Rz,xK,yK,YG,CE,wA,BK,CK,DK,EK,lr,cz,Oca,FK,GK,Pca,HK,IK,JK,
KK,LK,Qca,MK,NK,Rca,Sca,Tca,OK,PK,Uca,QK,RK,SK,TK,UK,VK,WK,Vca,XK,Wca,YK,ZK,$K,Xca,Yca,bL,aL,cL,dL,Zca,$ca,ada,eL,fL,cda,bda,dda,eda,gL,fda,hL,gda,iL,jL,kL,lL,hda,nL,ida,mL,oL,sL,jda,tL,kda,uL,wL,vL,xL,lda,rI,sI,AL,BL,nH,mH,$y,CL,zL,yL,DI,mda,nda,DL,GL,FL,HL,IL,JL,KL,LL,ML,NL,QL,PL,RL,SL,TL,UL,VL,WL,oda,pda,XL,YL,ZL,$L,rda,qda,bM,cM,dM,sda,eM,fM,gM,oK,tda,uda,hM,iM,jM,vda,wda,lM,xda,mM,nM,kM,oM,pM,yda,Ada,tM,Bda,qM,zda,rM,vM,wM,xM,uM,yM,AM,zM,Dda,CM,BM,DM,FM,EM,HM,Gda,IM,KM,LM,MM,JM,NM,PM,OM,QM,SM,
TM,WM,UM,YM,$M,aN,bN,cN,dN,eN,gN,fN,hN,iN,jN,Ida,kN,lN,mN,Jda,nN,oN,pN,qN,rN,sN,uN,vN,wN,xN,Kda,yN,zN,Lda,Mda,AN,BN,Nda,Oda,Pda,DN,FN,EN,GN,HN,IN,JN,KN,Rda,Qda,LN,MN,ON,NN,PN,QN,SN,UN,RN,VN,WN,XN,Sda,YN,$N,aO,bO,Tda,eO,iO,jO,mO,oO,Vda,pO,qO,rO,sO,tO,Wda,Xda,Yda,vO,cea,yO,$da,aea,Zda,bea,zO,uO,eea,BO,wO,CO,fea,DO,EO,FO,GO,HO,gea,IO,JO,hea,kea,jea,LO,MO,KO,cO,OO,lea,nea,QO,mea,oea,RO,SO,TO,VO,UO,WO,PO,XO,pea,qea,ZO,rea,sea,$O,tea,uea,vea,aP,bP,cP,wea,xea,dP,gP,zea,yea,pP,mP,jP,Eea,rP,Bea,oP,eP,CP,Hea,
sP,Iea,qP,Jea,Kea,Lea,Gea,uP,GP,HP,Nea,IP,JP,KP,LP,NP,OP,MP,Oea,PP,Qea,Pea,TP,Rea,UP,Sea,VP,Tea,YP,Wea,$P,Uea,aQ,cQ,afa,Xea,gQ,cfa,bfa,hQ,iQ,jQ,dfa,kQ,lQ,mQ,oQ,qQ,pQ,ifa,sQ,jfa,tQ,uQ,kfa,vQ,lfa,mfa,nfa,ofa,wQ,pfa,xQ,qfa,yQ,zQ,AQ,BQ,sfa,tfa,CQ,DQ,FQ,HQ,IQ,EQ,KQ,ufa,vfa,JQ,LQ,MQ,NQ,OQ,xfa,RQ,SQ,TQ,X,VQ,WQ,XQ,YQ,ZQ,$Q,aR,dR,eR,yfa,iR,jR,Cfa,lR,rR,sR,uR,hR,qR,oR,Ifa,Jfa,Kfa,Lfa,vR,Mfa,wR,yR,xR,zR,Nfa,Ofa,Pfa,Qfa,CR,FR,GR,HR,IR,JR,KR,LR,MR,Rfa,NR,OR,QR,PR,SR,RR,TR,UR,Sfa,YR,ZR,$R,aS,bS,dS,eS,fS,hS,iS,
gS,jS,kS,lS,mS,nS,oS,pS,qS,Tfa,sS,Ufa,vS,wS,tS,uS,yS,CS,zS,AS,xS,BS,Vfa,DS,ES,FS,GS,IS,LS,KS,$fa,NS,HS,OS,aga,QS,PS,RS,cga,dga,SS,TS,ega,VS,WS,XS,YS,fga,gga,US,ZS,$S,aT,bT,cT,dT,eT,fT,gT,jT,iT,hT,jga,kT,lT,mT,nT,oT,pT,rT,sT,qT,mga,tT,wT,nga,vT,uT,xT,oga,yT,zT,AT,BT,CT,DT,ET,FT,GT,HT,JT,pga,KT,JS,LT,MT,qga,NT,rga,OT,PT,QT,RT,sga,ST,TT,UT,VT,WT,XT,ZT,aU,bU,uga,vga,cU,fU,dU,eU,gU,hU,xga,yga,iU,jU,Aga,rU,sU,tU,uU,vU,xU,EU,DU,JU,KU,LU,MU,yU,Dga,NU,OU,PU,QU,SU,Gga,TU,UU,Hga,RU,VU,WU,XU,YU,ZU,Iga,Jga,Fga,
Kga,iV,Lga,jV,wU,kV,mV,nV,oV,pV,Mga,qV,CU,eV,rV,lV,sV,tV,FU,BU,uV,IU,vV,wV,zU,GU,gV,Ega,xV,yV,zV,DV,AV,EV,Oga,BV,CV,Qga,Rga,Pga,FV,GV,HV,IV,JV,Sga,KV,Wga,Tga,Uga,LV,Xga,Yga,MV,NV,PV,QV,RV,SV,Zga,$ga,aha,bha,TV,UV,cha,VV,dha,WV,XV,YV,fha,ZV,bW,cW,dW,gha,eW,fW,iha,hha,gW,hW,iW,jW,pW,qW,kW,mha,rW,nha,lW,lha,mW,nW,oW,kha,sW,$U,tW,aV,dV,uW,vW,lU,wW,bV,xW,yW,zW,AW,BW,CW,kU,fV,JW,KW,LW,qU,IW,mU,nU,pU,cV,HW,oU,RW,SW,UW,rha,VW,WW,XW,YW,ZW,$W,aX,bX,cX,dX,eX,sha,fX,gX,hX,iX,jX,kX,lX,tha,mX,nX,oX,pX,uha,vha,
wha,xha,yha,qX,rX,sX,tX,uX,vX,xX,wX,zha,yX,zX,Aha,Bha,AX,BX,DX,EX,Dha,FX,Cha,Hha,Gha,Iha,Fha,Eha,Kha,GX,Lha,IX,CX,Nha,Jha,Qha,Pha,Oha,Rha,Sha,HX,JX,Tha,Wha,Vha,Xha,Yha,Uha,$ha,bia,aia,dia,NX,OX,PX,QX,RX,SX,TX,UX,VX,WX,XX,YX,ZX,$X,eY,dY,iY,jY,bY,kY,lY,mY,nY,aY,cY,fY,pY,lia,qY,mia,rY,sY,tY,uY,vY,wY,xY,nia,yY,oia,pia,zY,qia,ria,AY,uia,tia,via,wia,xia,BY,yia,zia,CY,DY,EY,FY,Bia,GY,Eia,Fia,JY,Hia,Cia,KY,Dia,MY,Gia,NY,OY,Kia,QY,Mia,PY,Nia,RY,Aia,Pia,Qia,Ria,TY,SY,UY,Sia,Tia,VY,WY,Via,Wia,Xia,$Y,aZ,bZ,cZ,
dZ,eZ,fZ,Yia,Zia,gZ,hZ,iZ,kZ,jZ,lZ,$ia,mZ,nZ,oZ,pZ,sZ,aja,tZ,bja,uZ,vZ,rZ,cja,wZ,xZ,qZ,yZ,zZ,AZ,BZ,DZ,dja,CZ,EZ,eja,FZ,fja,GZ,HZ,Y,MZ,JZ,IZ,gja,NZ,OZ,PZ,RZ,hja,SZ,TZ,UZ,VZ,WZ,ija,LZ,YZ,ZZ,$Z,a_,b_,c_,jja,d_,e_,kja,g_,h_,i_,j_,k_,l_,m_,n_,o_,lja,mja,p_,q_,r_,u_,s_,nja,oja,pja,v_,w_,x_,y_,z_,A_,B_,C_,D_,E_,F_,G_,sja,rja,I_,H_,J_,K_,L_,tja,uja,M_,O_,wja,vja,P_,yja,R_,Q_,T_,U_,V_,Aja,Bja,W_,X_,Cja,Y_,Z_,Dja,a0,Eja,b0,c0,e0,f0,d0,Gja,g0,j0,k0,i0,l0,m0,Hja,n0,Ija,t0,o0,p0,r0,y0,u0,w0,v0,B0,x0,z0,Jja,s0,
q0,C0,D0,Lja,E0,Mja,Kja,Nja,Oja,G0,F0,H0,I0,XY,Qja,Rja,L0,M0,N0,K0,O0,J0,Sja,P0,Q0,R0,S0,T0,U0,V0,Tja,YY,W0,X0,Y0,Z0,$0,a1,c1,d1,Uja,e1,f1,g1,h1,i1,j1,m1,Vja,Wja,Xja,n1,q1,o1,r1,u1,v1,x1,A1,z1,y1,C1,Yja,E1,D1,G1,F1,H1,I1,J1,K1,L1,M1,N1,Zja,O1,bka,P1,Q1,R1,cka,dka,S1,eka,T1,W1,V1,U1,Y1,$1,b2,e2,f2,g2,X1,fka,h2,i2,gka,j2,k2,l2,m2,n2,o2,p2,q2,r2,s2,x2,hka,t2,y2,z2,A2,B2,v2,C2,D2,E2,F2,H2,J2,L2,K2,M2,G2,I2,P2,O2,Q2,R2,S2,T2,U2,jka,Y2,$2,V2,u2,a3,b3,kka,c3,f3,lka,d3,W2,e3,Z2,X2,j3,k3,w2,i3,h3,l3,m3,n3,
o3,nka,qka,mka,oka,q3,s3,t3,u3,v3,w3,x3,y3,z3,A3,rka,B3,D3,C3,E3,ska,F3,tka,G3,H3,K3,L3,N3,M3,O3,P3,uka,vka,Q3,S3,wka,T3,R3,U3,V3,W3,X3,xka,yka,Aka,zka,Y3,Z3,$3,Bka,Cka,Dka,a4,Eka,d4,g4,h4,b4,e4,f4,c4,i4,l1,k1,p1,l4,m4,n4,o4,q4,Z1,t4,k4,u4,I3,v4,d2,c2,g3,J3,y4,r3,z4,Z,B4,C4,E4,F4,I4,D4,L4,N4,O4,P4,J4,K4,M4,G4,Q4,H4,R4,S4,T4,Jka,Ika,W4,EL,AE,Y4,X4,b5,a2,U4,c5,d5,e5,f5,h5,i5,g5,k5,l5,m5,n5,Lka,Mka,o5,p5,q5,r5,s5,u5,OL,v5,w5,x5,y5,z5,A5,C5,D5,E5,B5,F5,sC,H5,I5,J5,K5,L5,M5,O5,N5,P5,R5,S5,Q5,T5,U5,V5,
Oka,W5,X5,Y5,Z5,b6,c6,a6,$5,e6,d6,f6,g6,h6,i6,k6,m6,j6,o6,n6,p6,q6,r6,s6,t6,u6,Pka,v6,w6,x6,y6,z6,A6,B6,C6,E6,D6,F6,G6,H6,I6,J6,L6,K6,N6,M6,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,G5,l8,k8,i8,m8,Z6,o8,q8,p8,r8,t8,zK,n8,u8,AK,s8,v8,Vka,Xka,w8,Yka,Zka,x8,z8,bla,A8,D8,B8,E8,hla,kla,ila,G8,H8,ola,I8,pla,K8,qla,rla,Q8,P8,N8,
T8,sla,tla,ula,Uy,vla,wla,lra,X8,nra,$8,mra,b9,c9,d9,e9,s4,Y8,r4,fq,f9,h9,g9,i9,j4,j9,k9,ora,pra,q9,n9,a9,t9,u9,V8,v9,w9,x9,y9,Z8,m9,l9,B9,r9,s9,D9,E9,C9,G9,H9,J9,I9,mz,K9,L9,M9,A9,N9,z9,P9,O9,w4,R9,Q9,S9,T9,gq,U9,F9,W8,V9,W9,X9,Y9,Z9,zn,aa,la,ma,C;p=function(a){return void 0!==a};
g.ba=function(a,b,c){a=a.split(".");c=c||aa;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&p(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}};
q=function(a,b){for(var c=a.split("."),d=b||aa,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d};
r=function(){};
ca=function(a){a.getInstance=function(){return a.Xb?a.Xb:a.Xb=new a}};
da=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b};
ea=function(a){return"array"==da(a)};
fa=function(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length};
v=function(a){return"string"==typeof a};
ga=function(a){return"boolean"==typeof a};
ha=function(a){return"number"==typeof a};
ia=function(a){return"function"==da(a)};
ka=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
na=function(a){return a[la]||(a[la]=++ma)};
oa=function(a,b,c){return a.call.apply(a.bind,arguments)};
pa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}};
w=function(a,b,c){w=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?oa:pa;return w.apply(null,arguments)};
qa=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}};
ra=function(a,b){for(var c in b)a[c]=b[c]};
y=function(a,b){function c(){}
c.prototype=b.prototype;a.L=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.sP=function(a,c,f){for(var k=Array(arguments.length-2),l=2;l<arguments.length;l++)k[l-2]=arguments[l];return b.prototype[c].apply(a,k)}};
sa=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,sa);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
va=function(a,b){return 0==a.lastIndexOf(b,0)};
wa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
A=function(a){return/^[\s\xa0]*$/.test(a)};
xa=function(a){return(0,window.encodeURIComponent)(String(a))};
ya=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))};
Ga=function(a){if(!za.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Aa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ba,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ca,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Da,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ea,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Fa,"&#0;"));return a};
Ka=function(a){return-1!=a.indexOf("&")?"document"in aa?Ha(a):Ia(a):a};
Ha=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=aa.document.createElement("div");return a.replace(La,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})};
Ia=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}})};
Ma=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a};
Na=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
Pa=function(a,b,c){a=p(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return Oa("0",Math.max(0,b-c))+a};
B=function(a){return null==a?"":String(a)};
Qa=function(a){return Array.prototype.join.call(arguments,"")};
Ra=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^C()).toString(36)};
Ua=function(a,b){for(var c=0,d=Sa(String(a)).split("."),e=Sa(String(b)).split("."),f=Math.max(d.length,e.length),k=0;0==c&&k<f;k++){var l=d[k]||"",m=e[k]||"",n=RegExp("(\\d*)(\\D*)","g"),t=RegExp("(\\d*)(\\D*)","g");do{var u=n.exec(l)||["","",""],x=t.exec(m)||["","",""];if(0==u[0].length&&0==x[0].length)break;c=Ta(0==u[1].length?0:(0,window.parseInt)(u[1],10),0==x[1].length?0:(0,window.parseInt)(x[1],10))||Ta(0==u[2].length,0==x[2].length)||Ta(u[2],x[2])}while(0==c)}return c};
Ta=function(a,b){return a<b?-1:a>b?1:0};
Va=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Xa=function(){return"goog_"+Wa++};
Ya=function(a){var b=Number(a);return 0==b&&A(a)?window.NaN:b};
Za=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};
$a=function(a){var b=v(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()})};
ab=function(a){(0,window.isFinite)(a)&&(a=String(a));return v(a)?/^\s*-?0x/i.test(a)?(0,window.parseInt)(a,16):(0,window.parseInt)(a,10):window.NaN};
bb=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};
db=function(a){return a[a.length-1]};
fb=function(a,b,c){b=eb(a,b,c);return 0>b?null:v(a)?a.charAt(b):a[b]};
eb=function(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
ib=function(a,b){var c=gb(a,b,void 0);return 0>c?null:v(a)?a.charAt(c):a[c]};
gb=function(a,b,c){for(var d=v(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};
kb=function(a,b){return 0<=jb(a,b)};
lb=function(a){return 0==a.length};
nb=function(a){if(!ea(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
ob=function(a,b){kb(a,b)||a.push(b)};
qb=function(a,b){var c=jb(a,b),d;(d=0<=c)&&pb(a,c);return d};
pb=function(a,b){Array.prototype.splice.call(a,b,1)};
rb=function(a,b){var c=eb(a,b,void 0);0<=c&&pb(a,c)};
sb=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)};
tb=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[]};
ub=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(fa(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}};
wb=function(a,b,c,d){Array.prototype.splice.apply(a,vb(arguments,1))};
vb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
xb=function(a,b,c){function d(a){return ka(a)?"o"+na(a):(typeof a).charAt(0)+a}
b=b||a;c=c||d;for(var e={},f=0,k=0;k<a.length;){var l=a[k++],m=c(l);Object.prototype.hasOwnProperty.call(e,m)||(e[m]=!0,b[f++]=l)}b.length=f};
Ab=function(a,b,c){return yb(a,c||zb,!1,b)};
Bb=function(a,b){return yb(a,b,!0,void 0,void 0)};
yb=function(a,b,c,d,e){for(var f=0,k=a.length,l;f<k;){var m=f+k>>1,n;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(k=m,l=!n)}return l?f:~f};
Cb=function(a,b){a.sort(b||zb)};
Db=function(a,b,c){var d=c||zb;Cb(a,function(a,c){return d(b(a),b(c))})};
Eb=function(a,b){Db(a,function(a){return a[b]},void 0)};
Gb=function(a,b){if(!fa(a)||!fa(b)||a.length!=b.length)return!1;for(var c=a.length,d=Fb,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
zb=function(a,b){return a>b?1:a<b?-1:0};
Fb=function(a,b){return a===b};
Hb=function(a,b,c){c=Ab(a,b,c);0>c&&wb(a,-(c+1),0,b)};
Ib=function(a,b,c){b=Ab(a,b,c);0<=b&&pb(a,b)};
Jb=function(a,b,c){var d={};D(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
Kb=function(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b};
Lb=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(ea(d))for(var e=0;e<d.length;e+=8192)for(var f=vb(d,e,e+8192),f=Lb.apply(null,f),k=0;k<f.length;k++)b.push(f[k]);else b.push(d)}return b};
Mb=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}};
E=function(){this.Ya=this.Ya;this.Ha=this.Ha};
F=function(a,b){Nb(a,qa(Ob,b))};
Nb=function(a,b){a.Ya?p(void 0)?b.call(void 0):b():(a.Ha||(a.Ha=[]),a.Ha.push(p(void 0)?w(b,void 0):b))};
Ob=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
Pb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];fa(d)?Pb.apply(null,d):Ob(d)}};
Qb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
Rb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Sb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
Tb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Ub=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Vb=function(a){var b=0,c;for(c in a)b++;return b};
Xb=function(a,b){return Wb(a,b)};
Yb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
Zb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
$b=function(a,b){for(var c=fa(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],p(a));c++);return a};
ac=function(a,b){return null!==a&&b in a};
Wb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
bc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
cc=function(a,b){var c=bc(a,b,void 0);return c&&a[c]};
dc=function(a){for(var b in a)return!1;return!0};
ec=function(a){for(var b in a)delete a[b]};
fc=function(a,b){b in a&&delete a[b]};
gc=function(a,b,c){return null!==a&&b in a?a[b]:c};
hc=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};
ic=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
jc=function(a){var b=da(a);if("object"==b||"array"==b){if(ia(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=jc(a[c]);return b}return a};
lc=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<kc.length;f++)c=kc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
mc=function(a,b){this.type=a;this.currentTarget=this.target=b;this.g=!1;this.ds=!0};
oc=function(a){a.stopPropagation()};
pc=function(a){pc[" "](a);return a};
qc=function(a,b){try{return pc(a[b]),!0}catch(c){}return!1};
sc=function(a){return-1!=rc.indexOf(a)};
tc=function(){return(sc("Chrome")||sc("CriOS"))&&!sc("Edge")};
uc=function(){return sc("iPhone")&&!sc("iPod")&&!sc("iPad")};
vc=function(){var a=aa.document;return a?a.documentMode:void 0};
yc=function(a){return wc[a]||(wc[a]=0<=Ua(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){mc.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.b=this.state=null;a&&this.init(a,b)};
Gc=function(a){return!(!a||!a[Fc])};
Jc=function(a,b,c,d,e){this.listener=a;this.b=null;this.src=b;this.type=c;this.Of=!!d;this.Bd=e;this.key=++Hc;this.ug=this.Ai=!1};
Kc=function(a){a.ug=!0;a.listener=null;a.b=null;a.src=null;a.Bd=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.Ai=!1)):(a=new Jc(c,a.src,k,!!e,f),a.Ai=d,b.push(a));return a};
Oc=function(a,b){var c=b.type;if(!(c in a.b))return!1;var d=qb(a.b[c],b);d&&(Kc(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,Kc(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.ug&&f.listener==b&&f.Of==!!c&&f.Bd==d)return e}return-1};
Rc=function(a,b,c,d,e){if(ea(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.O(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(ea(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.ad,String(b),c,!0,d,e):Tc(a,b,c,!0,d,e)};
bd=function(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)bd(a,b[f],c,d,e);else c=Sc(c),Gc(a)?a.oa(b,c,d,e):a&&(a=Uc(a))&&(b=Qc(a,b,c,!!d,e))&&cd(b)};
cd=function(a){if(ha(a)||!a||a.ug)return!1;var b=a.src;if(Gc(b))return Oc(b.ad,a);var c=a.type,d=a.b;b.removeEventListener?b.removeEventListener(c,d,a.Of):b.detachEvent&&b.detachEvent(Xc(c),d);Yc--;(c=Uc(b))?(Oc(c,a),0==c.g&&(c.src=null,b[Vc]=null)):Kc(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.Of==c&&!f.ug&&(f=ed(f,d),e=e&&!1!==f)}return e};
ed=function(a,b){var c=a.listener,d=a.Bd||a.src;a.Ai&&cd(a);return c.call(d,b)};
Zc=function(a,b){if(a.ug)return!0;if(!$c){var c=b||q("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(ia(a))return a;a[gd]||(a[gd]=function(b){return a.handleEvent(b)});
return a[gd]};
I=function(){E.call(this);this.ad=new Lc(this);this.Ka=this;this.pa=null};
hd=function(a,b,c,d){b=a.ad.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.ug&&k.Of==c){var l=k.listener,m=k.Bd||k.src;k.Ai&&Oc(a.ad,k);e=!1!==l.call(m,d)&&e}}return e&&0!=d.ds};
id=function(a,b,c){this.B=c;this.o=a;this.A=b;this.g=0;this.b=null};
jd=function(a,b){a.A(b);a.g<a.B&&(a.g++,b.next=a.b,a.b=b)};
kd=function(a){return function(){return a}};
ld=function(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
md=function(a){aa.setTimeout(function(){throw a;},0)};
pd=function(a,b){var c=a;b&&(c=w(a,b));!ia(aa.setImmediate)||aa.Window&&aa.Window.prototype&&!sc("Edge")&&aa.Window.prototype.setImmediate==aa.setImmediate?(nd||(nd=od()),nd(c)):aa.setImmediate(c)};
od=function(){var a=aa.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!sc("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=w(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&&!sc("Trident")&&!sc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(p(c.next)){c=c.next;var a=c.Qo;c.Qo=null;a()}};
return function(a){d.next={Qo:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof window.document&&"onreadystatechange"in window.document.createElement("SCRIPT")?function(a){var b=window.document.createElement("SCRIPT");
b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};
window.document.documentElement.appendChild(b)}:function(a){aa.setTimeout(a,0)}};
qd=function(){this.g=this.b=null};
rd=function(){this.next=this.scope=this.b=null};
xd=function(a,b){sd||td();ud||(sd(),ud=!0);var c=vd,d=wd.get();d.set(a,b);c.g?c.g.next=d:c.b=d;c.g=d};
td=function(){if(aa.Promise&&aa.Promise.resolve){var a=aa.Promise.resolve(void 0);sd=function(){a.then(yd)}}else sd=function(){pd(yd)}};
yd=function(){for(var a;a=vd.remove();){try{a.b.call(a.scope)}catch(b){md(b)}jd(wd,a)}ud=!1};
zd=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0};
Ad=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
Cd=function(a,b){this.b=0;this.D=void 0;this.A=this.g=this.o=null;this.B=this.C=!1;if(a!=r)try{var c=this;a.call(b,function(a){Bd(c,2,a)},function(a){Bd(c,3,a)})}catch(d){Bd(this,3,d)}};
Dd=function(){this.next=this.context=this.g=this.o=this.b=null;this.A=!1};
Fd=function(a,b,c){var d=Ed.get();d.o=a;d.g=b;d.context=c;return d};
Gd=function(a){if(a instanceof Cd)return a;var b=new Cd(r);Bd(b,2,a);return b};
Hd=function(a){return new Cd(function(b,c){c(a)})};
Jd=function(a,b,c){Id(a,b,c,null)||xd(qa(b,a))};
Kd=function(a){return new Cd(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],Jd(m,qa(f,l),k);
else b(e)})};
Md=function(){var a,b,c=new Cd(function(c,e){a=c;b=e});
return new Ld(c,a,b)};
Od=function(a,b){return Nd(a,null,b,void 0)};
Pd=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.A||(d++,k.b==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.b&&1==d?Pd(c,b):(f?(d=f,d.next==c.A&&(c.A=d),d.next=d.next.next):Qd(c),Rd(c,e,3,b)))}a.o=null}else Bd(a,3,b)};
Td=function(a,b){a.g||2!=a.b&&3!=a.b||Sd(a);a.A?a.A.next=b:a.g=b;a.A=b};
Nd=function(a,b,c,d){var e=Fd(null,null,null);e.b=new Cd(function(a,k){e.o=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 Ud?k(b):a(e)}catch(n){k(n)}}:k});
e.b.o=a;Td(a,e);return e.b};
Bd=function(a,b,c){0==a.b&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.b=1,Id(c,a.G,a.H,a)||(a.D=c,a.b=b,a.o=null,Sd(a),3!=b||c instanceof Ud||Vd(a,c)))};
Id=function(a,b,c,d){if(a instanceof Cd)return Td(a,Fd(b||r,c||null,d)),!0;if(Ad(a))return a.then(b,c,d),!0;if(ka(a))try{var e=a.then;if(ia(e))return Wd(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
Wd=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)}};
Sd=function(a){a.C||(a.C=!0,xd(a.F,a))};
Qd=function(a){var b=null;a.g&&(b=a.g,a.g=b.next,b.next=null);a.g||(a.A=null);return b};
Rd=function(a,b,c,d){if(3==c&&b.g&&!b.A)for(;a&&a.B;a=a.o)a.B=!1;if(b.b)b.b.o=null,Xd(b,c,d);else try{b.A?b.o.call(b.context):Xd(b,c,d)}catch(e){Yd.call(null,e)}jd(Ed,b)};
Xd=function(a,b,c){2==b?a.o.call(a.context,c):a.g&&a.g.call(a.context,c)};
Vd=function(a,b){a.B=!0;xd(function(){a.B&&Yd.call(null,b)})};
Ud=function(a){sa.call(this,a)};
Ld=function(a,b,c){this.o=a;this.g=b;this.b=c};
Zd=function(a,b){I.call(this);this.b=a||1;this.g=b||aa;this.o=w(this.Px,this);this.A=C()};
$d=function(a,b){a.b=b;a.Mc&&a.enabled?(a.stop(),a.start()):a.Mc&&a.stop()};
ae=function(a,b,c){if(ia(a))c&&(a=w(a,c));else if(a&&"function"==typeof a.handleEvent)a=w(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:aa.setTimeout(a,b||0)};
be=function(a){aa.clearTimeout(a)};
ce=function(a,b,c){E.call(this);this.b=a;this.A=b||0;this.g=c;this.o=w(this.Bp,this)};
de=function(a){a.stop();a.Bp()};
ee=function(a){if(a.classList)return a.classList;a=a.className;return v(a)&&a.match(/\S+/g)||[]};
fe=function(a,b){return a.classList?a.classList.contains(b):kb(ee(a),b)};
J=function(a,b){a.classList?a.classList.add(b):fe(a,b)||(a.className+=0<a.className.length?" "+b:b)};
ge=function(a,b){if(a.classList)D(b,function(b){J(a,b)});
else{var c={};D(ee(a),function(a){c[a]=!0});
D(b,function(a){c[a]=!0});
a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}};
ie=function(a,b){a.classList?a.classList.remove(b):fe(a,b)&&(a.className=he(ee(a),function(a){return a!=b}).join(" "))};
je=function(a,b){a.classList?D(b,function(b){ie(a,b)}):a.className=he(ee(a),function(a){return!kb(b,a)}).join(" ")};
K=function(a,b,c){c?J(a,b):ie(a,b)};
le=function(a,b){return b?a.replace(ke,""):a};
re=function(a,b){for(var c=0,d=0,e=!1,f=le(a,b).split(me),k=0;k<f.length;k++){var l=f[k];ne.test(le(l,void 0))?(c++,d++):oe.test(l)?e=!0:pe.test(le(l,void 0))?d++:qe.test(l)&&(e=!0)}return 0==d?e?1:0:.4<c/d?-1:1};
te=function(){this.b="";this.g=se};
ue=function(a){return a instanceof te&&a.constructor===te&&a.g===se?a.b:"type_error:Const"};
ve=function(a){var b=new te;b.b=a;return b};
ye=function(){this.b="";this.g=xe};
ze=function(a){var b=new ye;b.b=a;return b};
Be=function(){this.b="";this.g=Ae};
Ce=function(a){if(a instanceof Be&&a.constructor===Be&&a.g===Ae)return a.b;da(a);return"type_error:SafeUrl"};
Fe=function(a){if(a instanceof Be)return a;a=a.vf?a.we():String(a);De.test(a)||(a="about:invalid#zClosurez");return Ee(a)};
Ee=function(a){var b=new Be;b.b=a;return b};
He=function(){this.b="";this.g=Ge};
Ie=function(a){if(a instanceof He&&a.constructor===He&&a.g===Ge)return a.b;da(a);return"type_error:TrustedResourceUrl"};
Je=function(a){var b=new He;b.b=a;return b};
Le=function(){this.b="";this.o=Ke;this.g=null};
Me=function(a){if(a instanceof Le&&a.constructor===Le&&a.o===Ke)return a.b;da(a);return"type_error:SafeHtml"};
Oe=function(a){function b(a){if(ea(a))D(a,b);else{var f;a instanceof Le?f=a:(f=null,a.lm&&(f=a.Vf()),a=Ga(a.vf?a.we():String(a)),f=Ne(a,f));d+=Me(f);f=f.Vf();0==c?c=f:0!=f&&c!=f&&(c=null)}}
var c=0,d="";D(arguments,b);return Ne(d,c)};
Ne=function(a,b){var c=new Le;c.b=a;c.g=b;return c};
Ve=function(a,b,c){var d=null,e,f="";if(b)for(e in b){if(!Pe.test(e))throw Error('Invalid attribute name "'+e+'".');var k=b[e];if(null!=k){var l,m=a;l=e;if(k instanceof te)k=ue(k);else if("style"==l.toLowerCase()){if(!ka(k))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof k+" given: "+k);if(!(k instanceof ye)){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
te)t=ue(t);else if(Qe.test(t)){for(var u=!0,x=!0,H=0;H<t.length;H++){var z=t.charAt(H);"'"==z&&x?u=!u:'"'==z&&u&&(x=!x)}u&&x||(t="zClosurez")}else t="zClosurez";m+=n+":"+t+";"}}k=m?ze(m):Se}k instanceof ye&&k.constructor===ye&&k.g===xe?k=k.b:(da(k),k="type_error:SafeStyle")}else{if(/^on/i.test(l))throw Error('Attribute "'+l+'" requires goog.string.Const value, "'+k+'" given.');if(l.toLowerCase()in Te)if(k instanceof He)k=Ie(k);else if(k instanceof Be)k=Ce(k);else if(v(k))k=Fe(k).we();else throw Error('Attribute "'+
l+'" on tag "'+m+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+k+'" given.');}k.vf&&(k=k.we());l=l+'="'+Ga(String(k))+'"';f+=" "+l}}e="<"+a+f;null!=c?ea(c)||(c=[c]):c=[];!0===Ue[a.toLowerCase()]?e+=">":(d=Oe(c),e+=">"+Me(d)+"</"+a+">",d=d.Vf());(a=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(a)?d=0:d=null);return Ne(e,d)};
We=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};
Xe=function(a,b){ue(a);ue(a);return Ne(b,null)};
Ye=function(a,b,c){return Math.min(Math.max(a,b),c)};
Ze=function(a,b,c){return a+c*(b-a)};
af=function(a){return $e(arguments,function(a,c){return a+c},0)};
bf=function(a){return af.apply(null,arguments)/arguments.length};
cf=function(a,b){this.x=p(a)?a:0;this.y=p(b)?b:0};
df=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
ef=function(a,b){this.width=a;this.height=b};
ff=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
gf=function(a,b){var c;c=b instanceof Be?b:Fe(b);a.href=Ce(c)};
lf=function(a){return a?new hf(jf(a)):kf||(kf=new hf)};
nf=function(a,b){var c=b||window.document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):mf("*",a,b)};
of=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=mf("*",a,b)[0];return d||null};
mf=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&&kb(a.split(/\s+/),b)&&(d[e++]=k);d.length=e;return d}return c};
qf=function(a,b){Qb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:pf.hasOwnProperty(d)?a.setAttribute(pf[d],b):va(d,"aria-")||va(d,"data-")?a.setAttribute(d,b):a[d]=b})};
rf=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new ef(a.clientWidth,a.clientHeight)};
uf=function(a){var b=sf(a);a=a.parentWindow||a.defaultView;return tf&&yc("10")&&a.pageYOffset!=b.scrollTop?new cf(b.scrollLeft,b.scrollTop):new cf(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
sf=function(a){return a.scrollingElement?a.scrollingElement:Bc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
vf=function(a){return a?a.parentWindow||a.defaultView:window};
L=function(a,b,c){return wf(window.document,arguments)};
wf=function(a,b){var c=String(b[0]),d=b[1];if(!xf&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ga(d.name),'"');if(d.type){c.push(' type="',Ga(d.type),'"');var e={};lc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(v(d)?c.className=d:ea(d)?c.className=d.join(" "):qf(c,d));2<b.length&&yf(a,c,b,2);return c};
yf=function(a,b,c,d){function e(c){c&&b.appendChild(v(c)?a.createTextNode(c):c)}
for(;d<c.length;d++){var f=c[d];!fa(f)||ka(f)&&0<f.nodeType?e(f):D(zf(f)?tb(f):f,e)}};
Af=function(a){return window.document.createElement(String(a))};
Bf=function(a,b){a.appendChild(b)};
Cf=function(a,b){yf(jf(a),a,arguments,1)};
Df=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
Ef=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
Ff=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)};
Gf=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
If=function(a){return Hf&&void 0!=a.children?a.children:he(a.childNodes,function(a){return 1==a.nodeType})};
Kf=function(a){return p(a.firstElementChild)?a.firstElementChild:Jf(a.firstChild)};
Jf=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a};
Mf=function(a){var b;if(Lf&&!(tf&&yc("9")&&!yc("10")&&aa.SVGElement&&a instanceof aa.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ka(b)&&1==b.nodeType?b:null};
Nf=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};
jf=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
Of=function(a){try{return a.contentWindow||(a.contentDocument?vf(a.contentDocument):null)}catch(b){}return null};
Pf=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{Df(a);var c=jf(a);a.appendChild(c.createTextNode(String(b)))}};
Qf=function(a){if("outerHTML"in a)return a.outerHTML;var b=jf(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML};
Tf=function(a){var b;if((b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!Rf(a)||Sf(a)):Rf(a)&&Sf(a))&&tf){var c;!ia(a.getBoundingClientRect)||tf&&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};
Rf=function(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified};
Sf=function(a){a=a.tabIndex;return ha(a)&&0<=a&&32768>a};
zf=function(a){if(a&&"number"==typeof a.length){if(ka(a))return"function"==typeof a.item||"string"==typeof a.item;if(ia(a))return"function"==typeof a.item}return!1};
Vf=function(a,b,c,d){if(!b&&!c)return null;var e=b?b.toUpperCase():null;return Uf(a,function(a){return(!e||a.nodeName==e)&&(!c||v(a.className)&&kb(a.className.split(/\s+/),c))},d)};
Wf=function(a,b){return Vf(a,null,b,void 0)};
Uf=function(a,b,c){for(var d=0;a&&(null==c||d<=c);){if(b(a))return a;a=a.parentNode;d++}return null};
hf=function(a){this.b=a||aa.document||window.document};
Xf=function(a){a=a.b;return a.parentWindow||a.defaultView};
Yf=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);};
Zf=function(a){return eval("("+a+")")};
bg=function(a){return $f(new ag(void 0),a)};
ag=function(a){this.b=a};
$f=function(a,b){var c=[];cg(a,b,c);return c.join("")};
cg=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(ea(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],cg(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),dg(d,c),c.push(":"),cg(a,a.b?a.b.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":dg(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);}}};
dg=function(a,b){b.push('"',a.replace(eg,function(a){var b=fg[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),fg[a]=b);return b}),'"')};
gg=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
hg=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
ig=function(a){return new gg(a.top,a.left+a.width,a.top+a.height,a.left)};
kg=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};
lg=function(a){return new ef(a.width,a.height)};
mg=function(a){return new cf(a.left,a.top)};
ng=function(a){E.call(this);this.nc=1;this.o=[];this.A=0;this.b=[];this.g={};this.B=!!a};
og=function(a,b,c,d){if(b=a.g[b]){var e=a.b;if(b=fb(b,function(a){return e[a+1]==c&&e[a+2]==d}))return a.Ec(b)}return!1};
pg=function(a,b,c){xd(function(){a.apply(b,c)})};
qg=function(){};
sg=function(a){if(a instanceof qg)return a;if("function"==typeof a.tc)return a.tc(!1);if(fa(a)){var b=0,c=new qg;c.next=function(){for(;;){if(b>=a.length)throw rg;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
tg=function(a,b,c){if(fa(a))try{D(a,b,c)}catch(d){if(d!==rg)throw d;}else{a=sg(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==rg)throw d;}}};
ug=function(a){if(fa(a))return tb(a);a=sg(a);var b=[];tg(a,function(a){b.push(a)});
return b};
vg=function(a,b){this.g={};this.b=[];this.Me=this.ra=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 vg?(c=a.Oa(),d=a.Ja()):(c=Zb(a),d=Yb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};
xg=function(a,b){return wg(a.g,b)};
yg=function(a,b){return a===b};
zg=function(a){if(a.ra!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];wg(a.g,d)&&(a.b[c++]=d);b++}a.b.length=c}if(a.ra!=a.b.length){for(var e={},c=b=0;b<a.b.length;)d=a.b[b],wg(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}};
wg=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Ag=function(a){return a.fb&&"function"==typeof a.fb?a.fb():fa(a)||v(a)?a.length:Vb(a)};
Bg=function(a){if(a.Ja&&"function"==typeof a.Ja)return a.Ja();if(v(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Yb(a)};
Cg=function(a){if(a.Oa&&"function"==typeof a.Oa)return a.Oa();if(!a.Ja||"function"!=typeof a.Ja){if(fa(a)||v(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Zb(a)}};
Dg=function(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(fa(a)||v(a))D(a,b,void 0);else for(var c=Cg(a),d=Bg(a),e=d.length,f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)};
Fg=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(fa(a)||v(a))return Eg(a,b,c);for(var d=Cg(a),e=Bg(a),f=e.length,k=0;k<f;k++)if(!b.call(c,e[k],d&&d[k],a))return!1;return!0};
Gg=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};
Ig=function(a){return a.match(Hg)};
Jg=function(a){return a?(0,window.decodeURI)(a):a};
Kg=function(a){return Jg(Ig(a)[3]||null)};
Lg=function(a){return Number(Ig(a)[4]||null)||null};
Mg=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?ya(k):"")}};
Ng=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("")};
Og=function(a,b,c){if(ea(b))for(var d=0;d<b.length;d++)Og(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",xa(b))};
Pg=function(a,b,c){for(c=c||0;c<b.length;c+=2)Og(b[c],b[c+1],a);return a};
Qg=function(a,b){for(var c in b)Og(c,b[c],a);return a};
Rg=function(a){a=Qg([],a);a[0]="";return a.join("")};
Sg=function(a,b){return Ng(2==arguments.length?Pg([a],arguments[1],0):Pg([a],arguments,1))};
Tg=function(a,b){return Ng(Qg([a],b))};
Ug=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};
Wg=function(a,b){return 0<=Ug(a,0,b,a.search(Vg))};
Xg=function(a,b){var c=a.search(Vg),d=Ug(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 ya(a.substr(d,e-d))};
Zg=function(a,b){for(var c=a.search(Vg),d=0,e,f=[];0<=(e=Ug(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(Yg,"$1")};
$g=function(a,b,c){a=[Zg(a,b),"&",b];null!=c&&a.push("=",xa(c));return Ng(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,ah(this,a.A),this.H=a.H,bh(this,a.g),ch(this,a.D),dh(this,a.o),eh(this,a.b.clone()),this.G=a.F()):a&&(c=Ig(String(a)))?(this.B=!!b,ah(this,c[1]||"",!0),this.H=fh(c[2]||""),bh(this,c[3]||"",!0),ch(this,c[4]),dh(this,c[5]||"",!0),eh(this,c[6]||"",!0),this.G=fh(c[7]||"")):(this.B=!!b,this.b=new gh(null,0,this.B))};
ah=function(a,b,c){a.A=c?fh(b,!0):b;a.A&&(a.A=a.A.replace(/:$/,""))};
bh=function(a,b,c){a.g=c?fh(b,!0):b;return a};
ch=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};
dh=function(a,b,c){a.o=c?fh(b,!0):b};
eh=function(a,b,c){b instanceof gh?(a.b=b,hh(a.b,a.B)):(c||(b=ih(b,jh)),a.b=new gh(b,0,a.B));return a};
kh=function(a,b,c){a.b.set(b,c);return a};
mh=function(a,b,c){ea(c)||(c=[String(c)]);lh(a.b,b,c)};
nh=function(a){kh(a,"zx",Ra());return a};
oh=function(a){return a instanceof M?a.clone():new M(a,void 0)};
ph=function(a,b,c,d){var e=new M(null,void 0);a&&ah(e,a);b&&bh(e,b);c&&ch(e,c);d&&dh(e,d);return e};
fh=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""};
ih=function(a,b,c){return v(a)?(a=(0,window.encodeURI)(a).replace(b,qh),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
qh=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
gh=function(a,b,c){this.ra=this.b=null;this.g=a||null;this.o=!!c};
sh=function(a){a.b||(a.b=new vg,a.ra=0,a.g&&Mg(a.g,function(b,c){rh(a,ya(b),c)}))};
rh=function(a,b,c){sh(a);a.g=null;b=th(a,b);var d=a.b.get(b);d||a.b.set(b,d=[]);d.push(c);a.ra=a.ra+1};
uh=function(a,b){sh(a);b=th(a,b);return xg(a.b,b)};
lh=function(a,b,c){a.remove(b);0<c.length&&(a.g=null,a.b.set(th(a,b),tb(c)),a.ra=a.ra+c.length)};
th=function(a,b){var c=String(b);a.o&&(c=c.toLowerCase());return c};
hh=function(a,b){b&&!a.o&&(sh(a),a.g=null,a.b.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),lh(this,e,a))},a));
a.o=b};
vh=function(a,b){b.match(/\sstyle\s*=/);a.innerHTML=b};
xh=function(){return wh?'<div class="ytp-icon ytp-icon-cast-desktop-on"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-4" /><path d="M 8,23.33 8,26 10.66,26 C 10.66,24.52 9.47,23.33 8,23.33 l 0,0 z m 0,-3.55 0,1.77 c 2.45,0 4.44,1.99 4.44,4.44 l 1.77,0 C 14.22,22.56 11.44,19.77 8,19.77 l 0,0 z m 16,-6.22 -12.44,0 0,1.44 c 3.52,1.13 6.30,3.92 7.44,7.44 l 5.00,0 0,-8.88 0,0 z M 8,16.22 8,18 c 4.41,0 8,3.58 8,8 l 1.77,0 c 0,-5.40 -4.38,-9.77 -9.77,-9.77 l 0,0 z M 25.77,10 9.77,10 C 8.8,10 8,10.8 8,11.77 l 0,2.66 1.77,0 0,-2.66 16.00,0 0,12.44 -6.22,0 0,1.77 6.22,0 c .97,0 1.77,-0.8 1.77,-1.77 l 0,-12.44 C 27.55,10.8 26.75,10 25.77,10 l 0,0 z" fill="#fff" id="ytp-svg-4" /></svg>'};
yh=function(){return wh?'<div class="ytp-icon ytp-icon-clip-clear"></div>':'<svg height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><path d="M14,14 L14,0 L0,0 L0,14 L14,14 Z" /><path 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" /></svg>'};
zh=function(){return wh?'<div class="ytp-icon ytp-icon-clip-end"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-5" /><path d="M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z" fill="#eaeaea" id="ytp-svg-5" /></svg>'};
Ah=function(){return wh?'<div class="ytp-icon ytp-icon-clip-start"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-6" /><path d="M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z" fill="#eaeaea" id="ytp-svg-6" /></svg>'};
Bh=function(){return wh?'<div class="ytp-icon ytp-icon-close"></div>':'<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" /></svg>'};
Ch=function(){return wh?'<div class="ytp-icon ytp-icon-link"></div>':'<svg height="100%" viewBox="0 0 36 36" width="100%"><path 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" /></svg>'};
Dh=function(){return wh?'<div class="ytp-icon ytp-icon-next"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-29" /><path class="ytp-svg-fill" d="M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z" id="ytp-svg-29" /></svg>'};
Eh=function(){return wh?'<div class="ytp-icon ytp-icon-pause"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-30" /><path class="ytp-svg-fill" d="M 12,26 16.33,26 16.33,10 12,10 z M 20.66,26 25,26 25,10 20.66,10 z" id="ytp-svg-30" /></svg>'};
Fh=function(){return wh?'<div class="ytp-icon ytp-icon-play"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-32" /><path class="ytp-svg-fill" 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" id="ytp-svg-32" /></svg>'};
Gh=function(){return wh?'<div class="ytp-icon ytp-icon-playlist"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-33" /><path 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" id="ytp-svg-33" /></svg>'};
Hh=function(){return wh?'<div class="ytp-icon ytp-icon-prev"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-34" /><path class="ytp-svg-fill" d="m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z" id="ytp-svg-34" /></svg>'};
Ih=function(){return wh?'<div class="ytp-icon ytp-icon-replay"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-35" /><path class="ytp-svg-fill" d="M 24.68,20.43 29,15.63 l -3.03,0 C 25.07,11.27 21.21,8 16.58,8 11.28,8 7,12.27 7,17.53 c 0,5.26 4.28,9.53 9.58,9.53 3.04,0 5.75,-1.42 7.51,-3.62 l -1.75,-1.75 c -1.29,1.77 -3.38,2.92 -5.75,2.92 -3.92,0 -7.11,-3.17 -7.11,-7.08 0,-3.91 3.18,-7.08 7.11,-7.08 3.26,0 6.00,2.19 6.84,5.17 l -3.04,0 4.31,4.80" id="ytp-svg-35" /></svg>'};
Jh=function(){return wh?'<div class="ytp-icon ytp-icon-settings"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-38" /><path 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" id="ytp-svg-38" /></svg>'};
Kh=function(){return'<svg height="100%" version="1.1" viewBox="0 0 22 22" width="100%"><svg x="7" y="1"><circle class="ytp-spinner-dot ytp-spinner-dot-0" cx="4" cy="4" r="2" /></svg><svg x="11" y="3"><circle class="ytp-spinner-dot ytp-spinner-dot-1" cx="4" cy="4" r="2" /></svg><svg x="13" y="7"><circle class="ytp-spinner-dot ytp-spinner-dot-2" cx="4" cy="4" r="2" /></svg><svg x="11" y="11"><circle class="ytp-spinner-dot ytp-spinner-dot-3" cx="4" cy="4" r="2" /></svg><svg x="7" y="13"><circle class="ytp-spinner-dot ytp-spinner-dot-4" cx="4" cy="4" r="2" /></svg><svg x="3" y="11"><circle class="ytp-spinner-dot ytp-spinner-dot-5" cx="4" cy="4" r="2" /></svg><svg x="1" y="7"><circle class="ytp-spinner-dot ytp-spinner-dot-6" cx="4" cy="4" r="2" /></svg><svg x="3" y="3"><circle class="ytp-spinner-dot ytp-spinner-dot-7" cx="4" cy="4" r="2" /></svg></svg>'};
Lh=function(){return wh?'<div class="ytp-icon ytp-icon-stop"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-42" /><path class="ytp-svg-fill" d="M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z" id="ytp-svg-42" /></svg>'};
Mh=function(){return wh?'<div class="ytp-icon ytp-icon-subtitles"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-43" /><path d="M 25.2,11 10.8,11 C 9.81,11 9,11.78 9,12.75 l 0,10.5 C 9,24.21 9.81,25 10.8,25 l 14.4,0 c .99,0 1.8,-0.78 1.8,-1.75 l 0,-10.5 C 27,11.78 26.19,11 25.2,11 l 0,0 z m -14.4,7 3.6,0 0,1.75 -3.6,0 0,-1.75 0,0 z m 9,5.25 -9,0 0,-1.75 9,0 0,1.75 0,0 z m 5.4,0 -3.6,0 0,-1.75 3.6,0 0,1.75 0,0 z m 0,-3.5 -9,0 0,-1.75 9,0 0,1.75 0,0 z" fill="#fff" id="ytp-svg-43" /></svg>'};
Nh=function(){return wh?'<div class="ytp-icon ytp-icon-volume-high"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-46" /><path d="m 18.77,10.20 0,1.83 c 2.56,.76 4.44,3.14 4.44,5.96 0,2.81 -1.87,5.2 -4.44,5.96 l 0,1.83 C 22.34,24.98 25,21.80 25,18.00 25,14.19 22.34,11.01 18.77,10.20 z m 0,4.21 0,7.15 C 20.09,20.92 21,19.57 21,18.00 21,16.42 20.09,15.07 18.77,14.41 z M 9,15.33 l 0,5.33 3.55,0 L 17,25.11 17,10.88 12.55,15.33 9,15.33 z" fill="#fff" id="ytp-svg-46" /></svg>'};
Oh=function(){return wh?'<div class="ytp-icon ytp-icon-volume-low"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-46" /><path d="m 9,15.37 0,5.25 3.58,0 4.48,4.37 0,-14 -4.48,4.37 L 9,15.37 z m 9.86,-0.90 0,7.04 c 1.32,-0.63 2.24,-1.96 2.24,-3.51 0,-1.54 -0.91,-2.87 -2.24,-3.52 z" fill="#fff" id="ytp-svg-46" /></svg>'};
Ph=function(){return wh?'<div class="ytp-icon ytp-icon-volume-muted"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-47" /><path class="ytp-svg-fill" d="m 9,15.37 0,5.25 3.58,0 4.48,4.37 0,-14 -4.48,4.37 -3.58,0 0,0 z" id="ytp-svg-47" /><svg class="ytp-svg-sound-mute-group"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-48" /><path class="ytp-svg-fill" 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" id="ytp-svg-48" /></svg></svg>'};
Rh=function(a,b){if(a in b)return b[a];var c=Qh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]};
Th=function(a,b){var c;Sh(a,function(a){c=b[a];return!!c});
return c};
Uh=function(a){return fb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Vh=function(){var a=window.document;return fb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
Wh=function(){return!!Th(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],window.document)};
Xh=function(){var a=Th(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],window.document);return a?a:null};
bi=function(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||ic(Yh);this.assets=a.assets||{};this.attrs=a.attrs||ic($h);this.params=a.params||ic(ai);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||{}};
ci=function(a){a instanceof bi||(a=new bi(a));return a};
di=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return a?50<=(0,window.parseInt)(a[1],10):!1};
ei=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)}};
ki=function(a){if(a>=fi.length)gi();else{var b=fi[a],c="chrome-extension://"+b+hi;0<=ii.indexOf(b)?ei(c,function(d){d?(window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=b,ji(c,gi)):ki(a+1)}):ji(c,function(){ki(a+1)})}};
ji=function(a,b){var c=window.document.createElement("script");c.onerror=b;c.src=a;(window.document.head||window.document.documentElement).appendChild(c)};
gi=function(){var a=window.__onGCastApiAvailable;a&&"function"==typeof a&&a(!1,"No cast extension found")};
li=function(){if(0<=window.navigator.userAgent.indexOf("CriOS")){var a=window.__gCrWeb&&window.__gCrWeb.message&&window.__gCrWeb.message.invokeOnHost;if(a){a({command:"cast.sender.init"});return}}window.chrome?(a=window.navigator.userAgent,0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")&&window.navigator.presentation?(a=di()?"50":"",ji("//www.gstatic.com/eureka/clank"+a+hi,gi)):ki(0)):gi()};
qi=function(){var a=mi;ni();oi.push(a);pi(oi)};
ti=function(a,b){ni();var c=oi,d=ri(a,String(b));lb(c)?si(d):(pi(c),D(c,function(a){a(d)}))};
ni=function(){oi||(oi=q("yt.mdx.remote.debug.handlers_")||[],g.ba("yt.mdx.remote.debug.handlers_",oi,void 0))};
si=function(a){var b=(ui+1)%50;ui=b;vi[b]=a;wi||(wi=49==b)};
pi=function(a){var b=vi;if(b[0]){var c=ui,d=wi?c:-1;do{var d=(d+1)%50,e=b[d];D(a,function(a){a(e)})}while(d!=c);
vi=Array(50);ui=-1;wi=!1}};
ri=function(a,b){var c=(C()-xi)/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("")};
yi=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||""};
zi=function(a,b){return!!b&&(a.id==b||a.uuid==b)};
Ai=function(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}};
Bi=function(a){return new yi(a)};
Ci=function(a){return ea(a)?N(a,Bi):[]};
Di=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"};
Ei=function(a){return ea(a)?"["+N(a,Di).join(",")+"]":"null"};
Gi=function(a,b,c){a&&(a.dataset?a.dataset[Fi(b)]=c:a.setAttribute("data-"+b,c))};
Hi=function(a){return a?a.dataset?a.dataset[Fi("loaded")]:a.getAttribute("data-loaded"):null};
Fi=function(a){return Ii[a]||(Ii[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};
Li=function(a){Ji(Ki,arguments)};
Mi=function(a,b){return a in Ki?Ki[a]:b};
Oi=function(a,b){ia(a)&&(a=Ni(a));return window.setTimeout(a,b)};
Pi=function(a,b){ia(a)&&(a=Ni(a));return window.setInterval(a,b)};
Qi=function(a){window.clearTimeout(a)};
Ri=function(a){window.clearInterval(a)};
Ni=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Si(b),b;}}:a};
Si=function(a,b){var c=q("yt.logging.errors.log");c?c(a,b,void 0,void 0,void 0):(c=Mi("ERRORS",[]),c.push([a,b,void 0,void 0,void 0]),Li("ERRORS",c))};
Ui=function(a){Ji(Ti,arguments)};
O=function(a,b,c){var d=b||{};if(a=a in Ti?Ti[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});
return a};
Ji=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]}};
$i=function(a,b,c){var d=Vi();if(d){var e=d.subscribe(a,function(){if(!Wi||Wi!=e){var d=arguments,k;k=function(){Xi[e]&&b.apply(c||window,d)};
try{Yi[a]?k():Oi(k,0)}catch(l){Si(l)}}},c);
Xi[e]=!0;Zi[a]||(Zi[a]=[]);Zi[a].push(e);return e}return 0};
bj=function(a){var b=$i("init",function(c){a.apply(void 0,arguments);aj(b)},void 0)};
aj=function(a){var b=Vi();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[(0,window.parseInt)(a,10)]),D(a,function(a){b.unsubscribeByKey(a);delete Xi[a]}))};
cj=function(a,b){var c=Vi();c&&c.publish.apply(c,arguments)};
dj=function(a,b){Yi[a]=!0;var c=Vi();c&&c.publish.apply(c,arguments);Yi[a]=!1};
ej=function(a){Zi[a]&&(a=Zi[a],D(a,function(a){Xi[a]&&delete Xi[a]}),a.length=0)};
fj=function(a){var b=Vi();if(b)if(b.clear(a),a)ej(a);else for(var c in Zi)ej(c)};
Vi=function(){return q("yt.pubsub.instance_")};
jj=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(gj,""),c=c.replace(hj,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}window.spf.script.load(a,c,b)}else ij(a,b)};
ij=function(a,b){var c=kj(a),d=window.document.getElementById(c),e=d&&Hi(d),f=d&&!e;e?b&&b():(b&&($i(c,b),na(b)),f||(d=lj(a,c,function(){Hi(d)||(Gi(d,"loaded","true"),cj(c),Oi(qa(fj,c),0))})))};
lj=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};
kj=function(a){var b=window.document.createElement("a");gf(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Va(a)};
mj=function(){};
nj=function(){};
oj=function(a){this.b=a};
pj=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a};
qj=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.b=a};
rj=function(a){this.b=a};
sj=function(a){this.b=a};
tj=function(a){this.data=a};
uj=function(a){return!p(a)||a instanceof tj?a:new tj(a)};
vj=function(a){this.b=a};
wj=function(a){var b=a.creation;a=a.expiration;return!!a&&a<C()||!!b&&b>C()};
xj=function(a){this.b=a};
yj=function(a,b){var c=[];tg(b,function(a){var b;try{b=xj.prototype.g.call(this,a,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}p(b)?wj(b)&&c.push(a):c.push(a)},a);
return c};
zj=function(a,b){var c=yj(a,b);D(c,function(a){xj.prototype.remove.call(this,a)},a)};
Bj=function(){var a=Aj;zj(a,a.b.tc(!0))};
Dj=function(a,b,c){var d=c&&0<c?c:0;c=d?C()+1E3*d:0;if((d=d?Aj:Cj)&&window.JSON){v(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
Ej=function(a){if(!Cj&&!Aj||!window.JSON)return null;var b;try{b=Cj.get(a)}catch(c){}if(!v(b))try{b=Aj.get(a)}catch(c){}if(!v(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b};
Fj=function(a){Cj&&Cj.remove(a);Aj&&Aj.remove(a)};
Gj=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=ya(k[0]||""),k=ya(k[1]||"");l in d?ea(d[l])?ub(d[l],k):d[l]=[d[l],k]:d[l]=k}}return d};
Hj=function(a,b){var c=[];Qb(a,function(a,b){var f=xa(b),k;ea(a)?k=a:k=[a];D(k,function(a){""==a?c.push(f):c.push(f+"="+xa(a))})});
return c.join(b)};
Ij=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Gj(a,"&")};
Jj=function(a){a=a.split(",");return a=a.map(function(a){return Ij(a)})};
Kj=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Ij(1<a.length?a[1]:a[0])):{}};
Mj=function(a,b){return Lj(a,b||{},!0)};
Nj=function(a,b){return Lj(a,b||{},!1)};
Lj=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=Ij(e[1]||""),f;for(f in b)if(c||!ac(e,f))e[f]=b[f];return Tg(a,e)+d};
Oj=function(a){var b;b||(b=window.location.href);var c=Ig(a)[1]||null,d=Kg(a);c&&d?(a=Ig(a),b=Ig(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Kg(b)==d&&Lg(b)==Lg(a):!0;return a};
Pj=function(){var a;a||(a=window.document.location.href);a=Ig(a)[1]||null;return null!==a&&"https"==a};
Qj=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}};
Tj=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Ni(b)(m)}
var m=Rj&&Rj();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=Sj(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};
Sj=function(a,b){b=b||{};var c=Oj(a),d;for(d in Uj){var e=Mi(Uj[d]),f;if((f=e)&&!(f=c)){f=d;var k=Mi("CORS_HEADER_WHITELIST")||{},l=Kg(a);f=l?(k=k[l])?kb(k,f):!1:!0}f&&(b[d]=e)}return b};
Wj=function(a,b){b.method="POST";b.Lb||(b.Lb={});Vj(a,b)};
Xj=function(a,b){var c=Mi("XSRF_FIELD_NAME",void 0),d;b.headers&&(d=b.headers["Content-Type"]);return!b.vP&&(!Kg(a)||b.withCredentials||Kg(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Lb&&b.Lb[c])};
Vj=function(a,b){var c=b.format||"JSON";b.zP&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=Mi("XSRF_FIELD_NAME",void 0),e=Mi("XSRF_TOKEN",void 0),f=b.pd;f&&(f[d]&&delete f[d],a=Mj(a,f));var k=b.postBody||"",f=b.Lb;Xj(a,b)&&(f||(f={}),f[d]=e);f&&v(k)&&(d=Ij(k),lc(d,f),k=b.lE&&"JSON"==b.lE?JSON.stringify(d):Rg(d));var l=!1,m,n=Tj(a,function(a){if(!l){l=!0;m&&Qi(m);var d=Qj(a),e=null;if(d||400<=
a.status&&500>a.status)e=Yj(c,a,b.mx);if(d)a:{switch(c){case "XML":d=0==(0,window.parseInt)(e&&e.return_code,10);break a;case "RAW":d=!0;break a}d=!!e}var e=e||{},f=b.context||aa;d?b.$a&&b.$a.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.qc&&b.qc.call(f,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials);
b.bc&&0<b.timeout&&(m=Oi(function(){l||(l=!0,n.abort(),Qi(m),b.bc.call(b.context||aa,n))},b.timeout));
return n};
Yj=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=Zf(a));break;case "XML":if(b=(b=b.responseXML)?Zj(b):null)d={},D(b.getElementsByTagName("*"),function(a){d[a.tagName]=ak(a)})}c&&bk(d);
return d};
bk=function(a){if(ka(a))for(var b in a)"html_content"==b||wa(b,"_html")?a[b]=Xe(ve("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):bk(a[b])};
Zj=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
ak=function(a){var b="";D(a.childNodes,function(a){b+=a.nodeValue});
return b};
ck=function(a){this.A=this.o="";this.b="/api/lounge";this.g=!0;a=a||window.document.location.href;var b=Lg(a)||"";b&&(this.A=":"+b);this.o=Kg(a)||"";a=rc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ua(a,"10.0")&&(this.g=!1))};
dk=function(a,b,c,d){var e=a.b;if(p(d)?d:a.g)e="https://"+a.o+a.A+a.b;return Tg(e+b,c||{})};
ek=function(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,$a:qa(a.C,d,!0),onError:qa(a.B,e),bc:qa(a.D,e)};c&&(a.Lb=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return Vj(b,a)};
fk=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)})};
gk=function(a){return N(a,function(a){return{key:a.id,name:a.name}})};
hk=function(a,b){return fb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})};
ik=function(a,b){return fb(a,function(a){return zi(a,b)})};
jk=function(){E.call(this);this.W=new ng;F(this,this.W)};
ok=function(a){jk.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=he(a.screens,function(a){return!!hk(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=he(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){jk.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 pj;return b.isAvailable()?a?new tk(b,a):b:null};
wk=function(a){this.b=new vg;a&&vk(this,a)};
xk=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+na(a):b.substr(0,1)+a};
yk=function(a,b){a.b.set(xk(b),b)};
vk=function(a,b){for(var c=Bg(b),d=c.length,e=0;e<d;e++)yk(a,c[e])};
zk=function(a,b){var c=Ag(b);if(a.fb()>c)return!1;!(b instanceof wk)&&5<c&&(b=new wk(b));return Fg(a,function(a){var c=b;return c.contains&&"function"==typeof c.contains?c.contains(a):c.lf&&"function"==typeof c.lf?c.lf(a):fa(c)||v(c)?kb(c,a):Wb(c,a)})};
Bk=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,he(b.split(","),qa(Xb,Ak)));a=a.experiments||"";this.experiments.clear();vk(this.experiments,
a.split(","))}};
Ck=function(a){this.b=a||{cookie:""}};
Ek=function(a){a=(a.b.cookie||"").split(Dk);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}};
Kk=function(){var a=Fk(),b=Gk();kb(a,b);Hk()&&Hb(a,b);a=Ik(a);if(lb(a))try{Jk.remove("remote_sid","/","youtube.com")}catch(c){}else try{Jk.set("remote_sid",a.join(","),-1,"/","youtube.com")}catch(c){}};
Fk=function(){var a=Ej("yt-remote-connected-devices")||[];Cb(a);return a};
Ik=function(a){if(lb(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)})};
Lk=function(a){Dj("yt-remote-connected-devices",a,86400)};
Gk=function(){if(Mk)return Mk;var a=Ej("yt-remote-device-id");a||(a=fk(),Dj("yt-remote-device-id",a,31536E3));for(var b=Fk(),c=1,d=a;kb(b,d);)c++,d=a+"#"+c;return Mk=d};
Nk=function(){return Ej("yt-remote-session-browser-channel")};
Hk=function(){return Ej("yt-remote-session-screen-id")};
Qk=function(a){5<a.length&&(a=a.slice(a.length-5));var b=N(Ok(),function(a){return a.loungeToken}),c=N(a,function(a){return a.loungeToken});
Eg(c,function(a){return!kb(b,a)})&&Pk();
Dj("yt-remote-local-screens",a,31536E3)};
Ok=function(){return Ej("yt-remote-local-screens")||[]};
Pk=function(){Dj("yt-remote-lounge-token-expiration",!0,86400)};
Rk=function(a,b){Dj("yt-remote-session-browser-channel",a);Dj("yt-remote-session-screen-id",b);var c=Fk(),d=Gk();kb(c,d)||c.push(d);Lk(c);Kk()};
Sk=function(a){a||(Fj("yt-remote-session-screen-id"),Fj("yt-remote-session-video-id"));Kk();a=Fk();qb(a,Gk());Lk(a)};
Uk=function(){if(!Tk){var a=uk();a&&(Tk=new rj(a))}return Tk?!!Tk.get("yt-remote-use-staging-server"):!1};
Wk=function(a){ok.call(this,"LocalScreenService");this.g=a;this.b=window.NaN;Vk(this);this.info("Initializing with "+Ei(this.screens))};
Xk=function(a){if(a.screens.length){var b=N(a.screens,function(a){return a.id}),c=dk(a.g,"/pairing/get_lounge_token_batch");
ek(a.g,c,{screen_ids:b.join(",")},w(a.ay,a),w(a.$x,a))}};
Vk=function(a){var b=Ci(Ok()),b=he(b,function(a){return!a.uuid});
return qk(a,b)};
Yk=function(a,b){Qk(N(a.screens,Ai));b&&Pk()};
$k=function(a,b){jk.call(this);this.C=b;for(var c=Ej("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]=kb(c,l)}this.b=d;this.B=a;this.o=this.A=window.NaN;this.g=null;Zk("Initialized with "+bg(this.b))};
al=function(a,b,c){var d=dk(a.B,"/pairing/get_screen_availability");ek(a.B,d,{lounge_token:b.token},w(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),w(function(){c(!1)},a))};
cl=function(a,b){var c;a:if(Vb(b)!=Vb(a.b))c=!1;else{c=Zb(b);for(var d=0,e=c.length;d<e;++d)if(!a.b[c[d]]){c=!1;break a}c=!0}c||(Zk("Updated online screens: "+bg(a.b)),a.b=b,a.U("screenChange"));bl(a)};
dl=function(a){(0,window.isNaN)(a.o)||Qi(a.o);a.o=Oi(w(a.Sm,a),0<a.A&&a.A<C()?2E4:1E4)};
Zk=function(a){ti("OnlineScreenService",a)};
el=function(a){var b={};D(a.C(),function(a){a.token?b[a.token]=a.id:this.cb("Requesting availability of screen w/o lounge token.")});
return b};
bl=function(a){a=Zb(Rb(a.b,function(a){return a}));
Cb(a);a.length?Dj("yt-remote-online-screen-ids",a.join(","),60):Fj("yt-remote-online-screen-ids")};
gl=function(a){ok.call(this,"ScreenService");this.B=a;this.b=this.g=null;this.o=[];this.A={};fl(this)};
jl=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.A[b]);var k=a.Fc();if(k=(c?ik(k,c):null)||ik(k,b)){k.uuid=b;var l=hl(a,k);al(a.b,l,function(a){e(a?l:null)})}else c?il(a,c,w(function(a){var f=hl(this,new yi({name:d,
screenId:c,loungeToken:a,dialId:b||""}));al(this.b,f,function(a){e(a?f:null)})},a),f):e(null)};
kl=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};
il=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Lb:{screen_ids:b},method:"POST",context:a,$a: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"))}};
Vj(dk(a.B,"/pairing/get_lounge_token_batch"),e)};
ll=function(a){a.screens=a.g.Fc();var b=a.A,c={},d;for(d in b)c[b[d]]=d;b=0;for(d=a.screens.length;b<d;++b){var e=a.screens[b];e.uuid=c[e.id]||""}a.info("Updated manual screens: "+Ei(a.screens))};
fl=function(a){ml(a);a.g=new Wk(a.B);a.g.subscribe("screenChange",w(a.qy,a));ll(a);a.o=Ci(Ej("yt-remote-automatic-screen-cache")||[]);ml(a);a.info("Initializing automatic screens: "+Ei(a.o));a.b=new $k(a.B,w(a.Fc,a,!0));a.b.subscribe("screenChange",w(function(){this.U("onlineScreenChange")},a))};
hl=function(a,b){var c=a.get(b.id);c?(c.uuid=b.uuid,b=c):((c=ik(a.o,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.o.push(b),Dj("yt-remote-automatic-screen-cache",N(a.o,Ai)));ml(a);a.A[b.uuid]=b.id;Dj("yt-remote-device-id-map",a.A,31536E3);return b};
ml=function(a){a.A=Ej("yt-remote-device-id-map")||{}};
nl=function(a,b,c){jk.call(this);this.K=c;this.G=a;this.g=b;this.o=null};
ol=function(a,b){ti(a.K,b)};
ql=function(a,b){nl.call(this,a,b,"CastSession");this.b=null;this.B=0;this.A=null;this.D=w(this.wF,this);this.C=w(this.cE,this);this.B=Oi(w(function(){pl(this,null)},this),12E4)};
sl=function(a){var b=a.A.videoId;b&&rl(a,"flingVideo",{videoId:b,currentTime:a.A.currentTime||0});a.A=null};
rl=function(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+bg(c));var d={};d.type=b;c&&(d.data=c);a.b?a.b.sendMessage("urn:x-cast:com.google.youtube.mdx",d,r,w(function(){ol(this,"Failed to send message: "+b+".")},a)):ol(a,"Sending yt message without session: "+bg(d))};
pl=function(a,b){Qi(a.B);if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.o||a.o.id!=b){var c=w(a.tj,a),d=w(a.Cc,a);a.wp(b,c,d,5)}}else a.Cc(Error("Waiting for session status timed out."))};
tl=function(a,b){nl.call(this,a,b,"DialSession");this.A=this.F=null;this.H="";this.B=null;this.D=r;this.C=window.NaN;this.J=w(this.zF,this);this.b=r};
ul=function(a){a.b=a.G.gt(a.H,a.g.label,a.g.friendlyName,w(function(a){this.b=r;this.tj(a)},a),w(function(a){this.b=r;
this.Cc(a)},a))};
vl=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}Uk()&&(b.env_useStageMdx=1);return Rg(b)};
wl=function(a,b){nl.call(this,a,b,"ManualSession");this.b=Oi(w(this.lg,this,null),150)};
xl=function(a){jk.call(this);this.g=a;this.b=null;this.B=!1;this.o=[];this.A=w(this.UC,this)};
yl=function(a,b){return b?fb(a.o,function(a){return zi(b,a.label)},a):null};
zl=function(a){ti("Controller",a)};
mi=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)};
Al=function(a){return a.B||!!a.o.length||!!a.b};
Bl=function(a,b,c){Ob(a.b);(a.b=b)?(c?a.U("yt-remote-cast2-receiver-resumed",b.g):a.U("yt-remote-cast2-receiver-selected",b.g),b.subscribe("sessionScreen",w(a.Dr,a,b)),b.o?a.U("yt-remote-cast2-session-change",b.o):c&&a.b.lg(null)):a.U("yt-remote-cast2-session-change",null)};
Cl=function(a){var b=a.g.$s(),c=a.b&&a.b.g;a=N(b,function(a){c&&zi(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,f=yl(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};
Ll=function(a,b,c,d){Dl()?Fl(b)&&(Gl(!0),window.chrome&&window.chrome.cast&&window.chrome.cast.isAvailable?Hl(a,c):(window.__onGCastApiAvailable=function(b,d){b?Hl(a,c):(Il("Failed to load cast API: "+d),Jl(!1),Gl(!1),Fj("yt-remote-cast-available"),Fj("yt-remote-cast-receiver"),Kl(),c(!1))},d?jj("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):li())):El("Cannot initialize because not running Chrome")};
Kl=function(){El("dispose");var a=Nl();a&&a.dispose();Ol=null;g.ba("yt.mdx.remote.cloudview.instance_",null,void 0);Pl(!1);aj(Ql);Ql.length=0};
Rl=function(){return!!Ej("yt-remote-cast-installed")};
Sl=function(){var a=Ej("yt-remote-cast-receiver");return a?Ka(a.friendlyName):null};
Tl=function(){El("clearCurrentReciever");Fj("yt-remote-cast-receiver")};
Ul=function(){return Rl()?Nl()?Ol.getCastSession():(Il("getCastSelector: Cast is not initialized."),null):(Il("getCastSelector: Cast API is not installed!"),null)};
Wl=function(){Rl()?Nl()?Vl()?(El("Requesting cast selector."),Ol.requestSession()):(El("Wait for cast API to be ready to request the session."),Ql.push($i("yt-remote-cast2-api-ready",Wl))):Il("requestCastSelector: Cast is not initialized."):Il("requestCastSelector: Cast API is not installed!")};
Xl=function(a){Vl()?Nl().setLaunchParams(a):Il("setLaunchParams called before ready.")};
Yl=function(a,b){Vl()?Nl().setConnectedScreenStatus(a,b):Il("setConnectedScreenStatus called before ready.")};
Dl=function(){var a=0<=rc.search(/\ (CrMo|Chrome|CriOS)\//);return Zl||a};
$l=function(a,b){Ol.init(a,b)};
Fl=function(a){var b=!1;if(!Ol){var c=q("yt.mdx.remote.cloudview.instance_");c||(c=new xl(a),c.subscribe("yt-remote-cast2-availability-change",function(a){Dj("yt-remote-cast-available",a);cj("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){El("onReceiverSelected: "+a.friendlyName);
Dj("yt-remote-cast-receiver",a);cj("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){El("onReceiverResumed: "+a.friendlyName);
Dj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){El("onSessionChange: "+Di(a));
a||Fj("yt-remote-cast-receiver");cj("yt-remote-cast2-session-change",a)}),g.ba("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);
Ol=c}El("cloudview.createSingleton_: "+b);return b};
Nl=function(){Ol||(Ol=q("yt.mdx.remote.cloudview.instance_"));return Ol};
Hl=function(a,b){Jl(!0);Gl(!1);$l(a,function(a){a?(Pl(!0),cj("yt-remote-cast2-api-ready")):(Il("Failed to initialize cast API."),Jl(!1),Fj("yt-remote-cast-available"),Fj("yt-remote-cast-receiver"),Kl());b(a)})};
El=function(a){ti("cloudview",a)};
Il=function(a){ti("cloudview",a)};
Jl=function(a){El("setCastInstalled_ "+a);Dj("yt-remote-cast-installed",a)};
Vl=function(){return!!q("yt.mdx.remote.cloudview.apiReady_")};
Pl=function(a){El("setApiReady_ "+a);g.ba("yt.mdx.remote.cloudview.apiReady_",a,void 0)};
Gl=function(a){g.ba("yt.mdx.remote.cloudview.initializing_",a,void 0)};
am=function(){};
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 bc(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(!Uf(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=Ni(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 fe(a,"iv-card-poll-choice-input")})};
km=function(a,b,c){var d=a||window.document;return hm(d,"change",function(a){var f=Uf(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]),D(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 cf(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.qq&&a.qq()};
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=C()};
vm=function(a,b){this.g=new ag(a);this.b=b?Zf:Yf};
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){E.call(this);this.A=null!=c?w(a,c):a;this.o=b;this.g=w(this.uD,this);this.b=[]};
zm=function(a){a.rf=ae(a.g,a.o);a.A.apply(null,a.b)};
Am=function(a){E.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){ea(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(ea(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){Qb(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 Zd;$d(this.g,250)};
Qm=function(a,b,c){a.Zf=1;a.xe=nh(b.clone());a.xf=c;a.C=!0;Pm(a,null)};
Rm=function(a,b,c,d,e){a.Zf=1;a.xe=nh(b.clone());a.xf=null;a.C=c;e&&(a.ls=!1);Pm(a,d)};
Pm=function(a,b){a.wh=C();Sm(a);a.Ge=a.xe.clone();mh(a.Ge,"t",a.D);a.Kh=0;a.Gb=a.b.jl(a.b.Dh()?b:null);0<a.Ol&&(a.xj=new ym(w(a.Ts,a,a.Gb),a.Ol));a.A.O(a.Gb,"readystatechange",a.tE);var c=a.sf?ic(a.sf):{};a.xf?(a.Rj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.Gb.send(a.Ge,a.Rj,a.xf,c)):(a.Rj="GET",a.ls&&!Bc&&(c.Connection="close"),a.Gb.send(a.Ge,a.Rj,null,c));a.b.kd(1)};
an=function(a,b,c){for(var d=!0;!a.hf&&a.Kh<c.length;){var e=Um(a,c);if(e==Vm){4==b&&(a.tf=4,Wm(),d=!1);break}else if(e==Xm){a.tf=4;Wm();d=!1;break}else Ym(a,e)}4==b&&0==c.length&&(a.tf=1,Wm(),d=!1);a.nd=a.nd&&d;d||(Zm(a),$m(a))};
Um=function(a,b){var c=a.Kh,d=b.indexOf("\n",c);if(-1==d)return Vm;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return Xm;d+=1;if(d+c>b.length)return Vm;var e=b.substr(d,c);a.Kh=d+c;return e};
dn=function(a,b){a.wh=C();Sm(a);var c=b?window.location.hostname:"";a.Ge=a.xe.clone();kh(a.Ge,"DOMAIN",c);kh(a.Ge,"t",a.D);try{a.od=new window.ActiveXObject("htmlfile")}catch(n){Zm(a);a.tf=7;Wm();$m(a);return}var d="<html><body>";if(b){for(var e="",f=0;f<c.length;f++){var k=c.charAt(f);if("<"==k)e+="\\x3c";else if(">"==k)e+="\\x3e";else{if(k in bn)k=bn[k];else if(k in cn)k=bn[k]=cn[k];else{var l,m=k.charCodeAt(0);if(31<m&&127>m)l=k;else{if(256>m){if(l="\\x",16>m||256<m)l+="0"}else l="\\u",4096>m&&
(l+="0");l+=m.toString(16).toUpperCase()}k=bn[k]=l}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=Xe(ve("b/12014412"),d);a.od.open();a.od.write(Me(c));a.od.close();a.od.parentWindow.m=w(a.ED,a);a.od.parentWindow.d=w(a.Kr,a,!0);a.od.parentWindow.rpcClose=w(a.Kr,a,!1);c=a.od.createElement("DIV");a.od.parentWindow.document.body.appendChild(c);d=Fe(a.Ge.toString());d=Ga(Ce(d));d=Xe(ve("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=Me(d);a.b.kd(1)};
Sm=function(a){a.un=C()+a.B;en(a,a.B)};
en=function(a,b){if(null!=a.Ig)throw Error("WatchDog timer not null");a.Ig=fn(w(a.VD,a),b)};
gn=function(a){a.Ig&&(aa.clearTimeout(a.Ig),a.Ig=null)};
$m=function(a){a.b.Cp()||a.hf||a.b.sj(a)};
Zm=function(a){gn(a);Ob(a.xj);a.xj=null;a.g.stop();Hm(a.A);if(a.Gb){var b=a.Gb;a.Gb=null;hn(b);b.dispose()}a.od&&(a.od=null)};
Ym=function(a,b){try{a.b.yr(a,b),a.b.kd(4)}catch(c){}};
kn=function(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;jn(a,b,function(e){e?c(!0):aa.setTimeout(function(){kn(a,b,c,d,f)},f)})}};
jn=function(a,b,c){var d=new window.Image;d.onload=function(){try{ln(d),c(!0)}catch(a){}};
d.onerror=function(){try{ln(d),c(!1)}catch(a){}};
d.onabort=function(){try{ln(d),c(!1)}catch(a){}};
d.ontimeout=function(){try{ln(d),c(!1)}catch(a){}};
aa.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a};
ln=function(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};
mn=function(a){this.b=a;this.g=new vm(null,!0)};
on=function(a){var b=nn(a.b,a.Wg,"/mail/images/cleardot.gif");nh(b);kn(b.toString(),5E3,w(a.cx,a),3,2E3);a.kd(1)};
qn=function(a){var b=a.b.G;if(null!=b)Wm(),b?(Wm(),pn(a.b,a,!1)):(Wm(),pn(a.b,a,!0));else if(a.Dc=new Om(a,0,void 0,void 0,void 0),a.Dc.sf=a.Ll,b=a.b,b=nn(b,b.Dh()?a.ih:null,a.Nl),Wm(),!tf||Ac(10))mh(b,"TYPE","xmlhttp"),Rm(a.Dc,b,!1,a.ih,!1);else{mh(b,"TYPE","html");var c=a.Dc;a=!!a.ih;c.Zf=3;c.xe=nh(b.clone());dn(c,a)}};
rn=function(a){I.call(this);this.headers=new vg;this.M=a||null;this.o=!1;this.K=this.b=null;this.V=this.G="";this.g=0;this.C="";this.A=this.S=this.F=this.N=!1;this.B=0;this.D=null;this.W="";this.H=this.J=!1};
sn=function(a,b){a.B=Math.max(0,b)};
tn=function(a){return tf&&yc(9)&&ha(a.timeout)&&p(a.ontimeout)};
un=function(a){return"content-type"==a.toLowerCase()};
xn=function(a,b){a.o=!1;a.b&&(a.A=!0,a.b.abort(),a.A=!1);a.C=b;a.g=5;vn(a);wn(a)};
vn=function(a){a.N||(a.N=!0,a.Y("complete"),a.Y("error"))};
hn=function(a,b){a.b&&a.o&&(yn(a,"Aborting"),a.o=!1,a.A=!0,a.b.abort(),a.A=!1,a.g=b||7,a.Y("complete"),a.Y("abort"),wn(a))};
Cn=function(a){if(a.o&&"undefined"!=typeof zn)if(a.K[1]&&4==An(a)&&2==a.getStatus())yn(a,"Local request error detected and ignored");else if(a.F&&4==An(a))ae(a.Ep,0,a);else if(a.Y("readystatechange"),4==An(a)){yn(a,"Request complete");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=Ig(String(a.G))[1]||null;if(!f&&aa.self&&aa.self.location)var k=aa.self.location.protocol,
f=k.substr(0,k.length-1);e=!Bn.test(f?f.toLowerCase():"")}d=e}if(d)a.Y("complete"),a.Y("success");else{a.g=6;var l;try{l=2<An(a)?a.b.statusText:""}catch(m){l=""}a.C=l+" ["+a.getStatus()+"]";vn(a)}}finally{wn(a)}}};
wn=function(a,b){if(a.b){Dn(a);var c=a.b,d=a.K[0]?r:null;a.b=null;a.K=null;b||a.Y("ready");try{c.onreadystatechange=d}catch(e){}}};
Dn=function(a){a.b&&a.H&&(a.b.ontimeout=null);ha(a.D)&&(be(a.D),a.D=null)};
An=function(a){return a.b?a.b.readyState:0};
En=function(a){try{return a.b?a.b.responseText:""}catch(b){return""}};
yn=function(a,b){return b+" ["+a.V+" "+a.G+" "+a.getStatus()+"]"};
Fn=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};
Gn=function(a,b){this.b=a;this.map=b;this.context=null};
Hn=function(a){mc.call(this,"statevent",a)};
In=function(a,b){mc.call(this,"timingevent",a);this.size=b};
Jn=function(a){mc.call(this,"serverreachability",a)};
Nn=function(a){Kn(a);if(3==a.b){var b=a.ph++,c=a.Pi.clone();kh(c,"SID",a.o);kh(c,"RID",b);kh(c,"TYPE","terminate");Ln(a,c);b=new Om(a,0,a.o,b,void 0);b.Zf=2;b.xe=nh(c.clone());(new window.Image).src=b.xe;b.wh=C();Sm(b)}Mn(a)};
Kn=function(a){if(a.pe){var b=a.pe;b.Dc&&(b.Dc.cancel(),b.Dc=null);b.Sd=-1;a.pe=null}a.vb&&(a.vb.cancel(),a.vb=null);a.Od&&(aa.clearTimeout(a.Od),a.Od=null);On(a);a.jc&&(a.jc.cancel(),a.jc=null);a.se&&(aa.clearTimeout(a.se),a.se=null)};
Qn=function(a,b){if(0==a.b)throw Error("Invalid operation: sending map when state is closed");a.g.push(new Gn(a.kA++,b));2!=a.b&&3!=a.b||Pn(a)};
Pn=function(a){a.jc||a.se||(a.se=fn(w(a.Hr,a),0),a.dh=0)};
Tn=function(a,b){if(1==a.b){if(!b){a.ph=Math.floor(1E5*Math.random());var c=a.ph++,d=new Om(a,0,"",c,void 0);d.sf=null;var e=Rn(a),f=a.Pi.clone();kh(f,"RID",c);a.D&&kh(f,"CVER",a.D);Ln(a,f);Qm(d,f,e);a.jc=d;a.b=2}}else 3==a.b&&(b?Sn(a,b):0!=a.g.length&&(a.jc||Sn(a)))};
Sn=function(a,b){var c,d;b?6<a.kf?(a.g=a.A.concat(a.g),a.A.length=0,c=a.ph-1,d=Rn(a)):(c=b.F,d=b.xf):(c=a.ph++,d=Rn(a));var e=a.Pi.clone();kh(e,"SID",a.o);kh(e,"RID",c);kh(e,"AID",a.kg);Ln(a,e);c=new Om(a,0,a.o,c,a.dh+1);c.sf=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.jc=c;Qm(c,e,d)};
Ln=function(a,b){if(a.Vb){var c=a.Vb.qp(a);c&&Qb(c,function(a,c){kh(b,c,a)})}};
Rn=function(a){var b=Math.min(a.g.length,1E3),c=["count="+b],d;6<a.kf&&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.kf?e:f-d;try{Dg(k,function(a,b){c.push("req"+f+"_"+b+"="+(0,window.encodeURIComponent)(a))})}catch(l){c.push("req"+f+"_type="+(0,window.encodeURIComponent)("_badmap"))}}a.A=a.A.concat(a.g.splice(0,b));
return c.join("&")};
Un=function(a){a.vb||a.Od||(a.C=1,a.Od=fn(w(a.Gr,a),0),a.Kf=0)};
Wn=function(a){if(a.vb||a.Od||3<=a.Kf)return!1;a.C++;a.Od=fn(w(a.Gr,a),Vn(a,a.Kf));a.Kf++;return!0};
pn=function(a,b,c){a.Qj=c;a.dd=b.Sd;a.Bx(1,0);a.Pi=nn(a,null,a.Kl);Pn(a)};
On=function(a){null!=a.mf&&(aa.clearTimeout(a.mf),a.mf=null)};
Vn=function(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b};
Yn=function(a,b){if(2==b||9==b){var c=null;a.Vb&&(c=null);var d=w(a.VE,a);c||(c=new M("//www.google.com/images/cleardot.gif"),nh(c));jn(c.toString(),1E4,d)}else Wm();Xn(a,b)};
Xn=function(a,b){a.b=0;a.Vb&&a.Vb.Ro(a,b);Mn(a);Kn(a)};
Mn=function(a){a.b=0;a.dd=-1;if(a.Vb)if(0==a.A.length&&0==a.g.length)a.Vb.Yk(a);else{var b=tb(a.A),c=tb(a.g);a.A.length=0;a.g.length=0;a.Vb.Yk(a,b,c)}};
nn=function(a,b,c){var d=oh(c);if(""!=d.g)b&&bh(d,b+"."+d.g),ch(d,d.D);else var e=window.location,d=ph(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.bh&&Qb(a.bh,function(a,b){kh(d,b,a)});
kh(d,"VER",a.kf);Ln(a,d);return d};
fn=function(a,b){if(!ia(a))throw Error("Fn must not be null and must be a function");return aa.setTimeout(function(){a()},b)};
Wm=function(){Zn.Y(new Hn(Zn))};
$n=function(){};
bo=function(a,b){Zd.call(this);this.B=0;if(ia(a))b&&(a=w(a,b));else if(a&&ia(a.handleEvent))a=w(a.handleEvent,a);else throw Error("Invalid listener argument");this.D=a;Rc(this,"tick",w(this.C,this));ao(this)};
ao=function(a){a.stop();$d(a,5E3+2E4*Math.random())};
co=function(a,b){this.J=a;this.C=b;this.o=new ng;this.g=new bo(this.qF,this);this.b=null;this.H=!1;this.B=null;this.G="";this.F=this.A=0;this.D=[]};
eo=function(a){return{firstTestResults:[""],secondTestResults:!a.b.Qj,sessionId:a.b.o,arrayId:a.b.kg}};
fo=function(a,b){a.F=b||0;a.g.stop();a.b&&(3==a.b.b&&Tn(a.b),Nn(a.b));a.F=0};
go=function(a){return!!a.b&&3==a.b.b};
ho=function(a,b){(a.C.loungeIdToken=b)||a.g.stop()};
io=function(){this.b=[];this.g=[]};
jo=function(a){lb(a.b)&&(a.b=a.g,a.b.reverse(),a.g=[])};
ko=function(a,b){a.g.push(b)};
lo=function(a){jo(a);return a.b.pop()};
mo=function(a){jo(a);return db(a.b)};
no=function(a){this.index=-1;this.videoId=this.o="";this.volume=this.b=-1;this.muted=!1;this.audioTrackId=null;this.B=this.A=0;this.g=null;this.reset(a)};
oo=function(a){a.audioTrackId=null;a.g=null;a.b=-1;a.A=0;a.B=C()};
po=function(a){a.index=-1;a.videoId="";oo(a)};
qo=function(a,b){a.A=b;a.B=C()};
ro=function(a){switch(a.b){case 1:return(C()-a.B)/1E3+a.A;case -1E3:return 0}return a.A};
so=function(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&oo(a)};
to=function(a){var b={};b.index=a.index;b.listId=a.o;b.videoId=a.videoId;b.playerState=a.b;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=jc(a.g);b.playerTime=a.A;b.playerTimeAt=a.B;return b};
wo=function(a,b){jk.call(this);this.g=0;this.A=a;this.D=[];this.C=new io;this.B=window.NaN;this.o=this.b=null;this.H=w(this.SA,this);this.F=w(this.qh,this);this.G=w(this.RA,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.Bn,this),uo(this))):c=3;0!=c&&(b?this.Bn(c):Oi(w(function(){this.Bn(c)},this),0));
vo(this,Ul())};
xo=function(a){return new no(a.A.getPlayerContextData())};
Ao=function(a,b,c,d,e){var f=xo(a),k=e||f.o;d=d||0;var l={videoId:b,currentIndex:d};so(f,b,d);p(c)&&(qo(f,c),l.currentTime=c);p(k)&&(l.listId=k);yo(a,"setPlaylist",l);e||zo(a,f)};
uo=function(a){D(["remotePlayerChange","remoteQueueChange"],function(a){this.D.push(this.A.subscribe(a,qa(this.LC,a),this))},a)};
Bo=function(a){D(a.D,function(a){this.A.unsubscribeByKey(a)},a);
a.D.length=0};
Co=function(a,b){50>a.C.fb()&&ko(a.C,b)};
Do=function(a,b,c){var d=xo(a);qo(d,c);-1E3!=d.b&&(d.b=b);zo(a,d)};
yo=function(a,b,c){a.A.sendMessage(b,c)};
zo=function(a,b){Bo(a);a.A.setPlayerContextData(to(b));uo(a)};
Eo=function(a){Qi(a.B);a.B=Oi(w(function(){this.U("remotePlayerChange");this.B=window.NaN},a),2E3)};
vo=function(a,b){a.o&&(a.o.removeUpdateListener(a.H),a.o.removeMediaListener(a.F),a.qh(null));a.o=b;a.o&&(Fo("Setting cast session: "+a.o.sessionId),a.o.addUpdateListener(a.H),a.o.addMediaListener(a.F),a.o.media.length&&a.qh(a.o.media[0]))};
Go=function(a){var b=a.b.customData;if(a.b.media){var c=a.b.media,d=xo(a);c.contentId!=d.videoId&&Fo("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.b=b.playerState;qo(d,a.b.getEstimatedTime());zo(a,d)}else Fo("No cast media video. Ignoring state update.")};
Fo=function(a){ti("CP",a)};
Io=function(a,b,c){jk.call(this);this.A=window.NaN;this.J=!1;this.F=this.D=this.G=this.H=window.NaN;this.K=[];this.o=this.Na=this.b=null;this.ba=a;this.K.push(hm(window,"beforeunload",w(this.Ux,this)));this.g=[];this.Na=new no;this.N=b.id;this.b=Ho(this,c);this.b.subscribe("handlerOpened",this.WA,this);this.b.subscribe("handlerClosed",this.TA,this);this.b.subscribe("handlerError",this.UA,this);this.b.subscribe("handlerMessage",this.VA,this);ho(this.b,b.token);this.subscribe("remoteQueueChange",function(){var a=
this.Na.videoId;Hk()&&Dj("yt-remote-session-video-id",a)},this)};
Jo=function(a){ti("conn",a)};
Ho=function(a,b){return new co(dk(a.ba,"/bc",void 0,!1),b)};
Ko=function(a,b){a.U("proxyStateChange",b)};
Lo=function(a){a.A=Oi(w(function(){Jo("Connecting timeout");this.B(1)},a),2E4)};
Mo=function(a){Qi(a.A);a.A=window.NaN};
No=function(a){Qi(a.H);a.H=window.NaN};
Qo=function(a){Oo(a);a.G=Oi(w(function(){Po(this,"getNowPlaying")},a),2E4)};
Oo=function(a){Qi(a.G);a.G=window.NaN};
So=function(a,b){b&&(Mo(a),No(a));b==(go(a.b)&&(0,window.isNaN)(a.A))?b&&(Ko(a,1),Po(a,"getSubtitlesTrack")):b?(a.M()&&a.Na.reset(),Ko(a,1),Po(a,"getNowPlaying"),Ro(a)):a.B(1)};
To=function(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.Na.videoId&&(dc(b.params)?a.Na.g=null:a.Na.g=b.params,a.U("remotePlayerChange"))};
Uo=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);a.Na.o=b.params.listId||a.Na.o;so(a.Na,c,d);a.U("remoteQueueChange")};
Wo=function(a,b){b.params=b.params||{};Uo(a,b);Vo(a,b)};
Vo=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);qo(a.Na,(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.Na.b&&(c=-1E3);a.Na.b=c;1==a.Na.b?Qo(a):Oo(a);a.U("remotePlayerChange")};
Xo=function(a,b){var c="true"==b.params.muted;a.Na.volume=(0,window.parseInt)(b.params.volume,10);a.Na.muted=c;a.U("remotePlayerChange")};
Ro=function(a){Qi(a.F);a.F=Oi(w(a.B,a,1),864E5)};
Po=function(a,b,c){c?Jo("Sending: action="+b+", params="+bg(c)):Jo("Sending: action="+b);a.b.sendMessage(b,c)};
Yo=function(a){ok.call(this,"ScreenServiceProxy");this.Xb=a;this.b=[];this.b.push(this.Xb.$_s("screenChange",w(this.uF,this)));this.b.push(this.Xb.$_s("onlineScreenChange",w(this.xC,this)))};
lp=function(a,b){Aj&&Bj();Kk();Zo||(Zo=new ck,Uk()&&(Zo.b="/api/loungedev"));$o||($o=q("yt.mdx.remote.deferredProxies_")||[],g.ba("yt.mdx.remote.deferredProxies_",$o,void 0));ap();var c=bp();if(!c){var d=new gl(Zo);g.ba("yt.mdx.remote.screenService_",d,void 0);c=bp();Ll(a,d,function(a){a?cp()&&Yl(cp(),"YouTube TV"):d.subscribe("onlineScreenChange",function(){cj("yt-remote-receiver-availability-change")})},!(!b||!b.loadCastApiSetupScript))}if(b&&!q("yt.mdx.remote.initialized_")){g.ba("yt.mdx.remote.initialized_",
!0,void 0);
dp("Initializing: "+bg(b));ep.push($i("yt-remote-cast2-availability-change",function(){cj("yt-remote-receiver-availability-change")}));
ep.push($i("yt-remote-cast2-receiver-selected",function(){fp(null);cj("yt-remote-auto-connect","cast-selector-receiver")}));
ep.push($i("yt-remote-cast2-session-change",gp));ep.push($i("yt-remote-connection-change",function(a){a?Yl(cp(),"YouTube TV"):hp()||(Yl(null,null),Tl())}));
var e=ip();b.isAuto&&(e.id+="#dial");e.name=b.device;e.app=b.app;dp(" -- with channel params: "+bg(e));jp(e);c.start();cp()||kp()}};
np=function(){aj(ep);ep.length=0;Ob(mp);mp=null;$o&&(D($o,function(a){a(null)}),$o.length=0,$o=null,g.ba("yt.mdx.remote.deferredProxies_",null,void 0));
Zo=null};
rp=function(){if(Rl()){var a=[];if(Ej("yt-remote-cast-available")||q("yt.mdx.remote.cloudview.castButtonShown_")||op())a.push({key:"cast-selector-receiver",name:pp()}),g.ba("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}return q("yt.mdx.remote.cloudview.initializing_")?[]:qp()};
qp=function(){var a;a=bp().Xb.$_gos();var b=sp();b&&op()&&(hk(a,b)||a.push(b));return gk(a)};
up=function(){if(Rl()){var a=Sl();return a?{key:"cast-selector-receiver",name:a}:null}return tp()};
tp=function(){var a=qp(),b=sp();b||(b=hp());return fb(a,function(a){return b&&zi(b,a.key)?!0:!1})};
pp=function(){if(Rl())return Sl();var a=sp();return a?a.name:null};
sp=function(){var a=cp();if(!a)return null;var b=bp().Fc();return ik(b,a)};
gp=function(a){dp("remote.onCastSessionChange_: "+Di(a));if(a){var b=sp();b&&b.id==a.id?Yl(b.id,"YouTube TV"):(b&&vp(),wp(a,1))}else vp()};
yp=function(a,b){dp("Connecting to: "+bg(a));if("cast-selector-receiver"==a.key)fp(b||null),Xl(b||null);else{vp();fp(b||null);var c=bp().Fc();(c=ik(c,a.key))?wp(c,1):Oi(function(){xp(null)},0)}};
vp=function(){Vl()?Nl().stopSession():Il("stopSession called before API ready.");var a=op();a?a.disconnect(1):(dj("yt-remote-before-disconnect",1),dj("yt-remote-connection-change",!1));xp(null)};
Bp=function(){var a=zp(),a=a?a.currentTime:0,b=Ap();0==a&&b&&(a=ro(xo(b)));return a};
Ap=function(){var a=op();return a&&3!=a.getProxyState()?new wo(a,void 0):null};
dp=function(a){ti("remote",a)};
bp=function(){if(!mp){var a=q("yt.mdx.remote.screenService_");mp=a?new Yo(a):null}return mp};
cp=function(){return q("yt.mdx.remote.currentScreenId_")};
Cp=function(a){g.ba("yt.mdx.remote.currentScreenId_",a,void 0)};
zp=function(){return q("yt.mdx.remote.connectData_")};
fp=function(a){g.ba("yt.mdx.remote.connectData_",a,void 0)};
op=function(){return q("yt.mdx.remote.connection_")};
xp=function(a){var b=op();fp(null);a?op():Cp("");g.ba("yt.mdx.remote.connection_",a,void 0);$o&&(D($o,function(b){b(a)}),$o.length=0);
b&&!a?dj("yt-remote-connection-change",!1):!b&&a&&cj("yt-remote-connection-change",!0)};
hp=function(){var a=Hk();if(!a)return null;var b=bp().Fc();return ik(b,a)};
wp=function(a,b){cp();Cp(a.id);var c=new Io(Zo,a,ip());c.connect(b,zp());c.subscribe("beforeDisconnect",function(a){dj("yt-remote-before-disconnect",a)});
c.subscribe("beforeDispose",function(){op()&&(op(),xp(null))});
xp(c)};
kp=function(){var a=hp();a?(dp("Resume connection to: "+Di(a)),wp(a,0)):(Sk(),Tl(),dp("Skipping connecting because no session screen found."))};
ap=function(){var a=ip();if(dc(a)){var a=Gk(),b=Ej("yt-remote-session-name")||"",c=Ej("yt-remote-session-app")||"",a={device:"REMOTE_CONTROL",id:a,name:b,app:c,"mdx-version":3};g.ba("yt.mdx.remote.channelParams_",a,void 0)}};
ip=function(){return q("yt.mdx.remote.channelParams_")||{}};
jp=function(a){a?(Dj("yt-remote-session-app",a.app),Dj("yt-remote-session-name",a.name)):(Fj("yt-remote-session-app"),Fj("yt-remote-session-name"));g.ba("yt.mdx.remote.channelParams_",a,void 0)};
Fp=function(a){return(a=Dp.exec(a))?a[0]:""};
Ip=function(a){var b=Gp.test(a),c;c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+Hp.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&Si(a,"WARNING"));return b||c};
Jp=function(a){a=new M(a);ah(a,window.document.location.protocol);bh(a,window.document.location.hostname);window.document.location.port&&ch(a,window.document.location.port);return a.toString()};
Kp=function(a){a=new M(a);ah(a,window.document.location.protocol);return a.toString()};
Mp=function(){return Lp("android")&&Lp("chrome")&&!(Lp("trident/")||Lp("edge/"))};
Np=function(){return Lp("cobalt")};
Op=function(){return Lp("(ps3; leanback shell)")||Lp("ps3")&&Np()};
Pp=function(){return Lp("(ps4; leanback shell)")||Lp("ps4")&&Np()};
Qp=function(){var a=/WebKit\/([0-9]+)/.exec(rc);return!!(a&&600<=a[1])};
Rp=function(){return Zl&&Lp("crkey")};
Sp=function(){return Lp("nintendo wiiu")};
Tp=function(){return Lp("iemobile")||Lp("windows phone")&&Lp("edge")};
Lp=function(a){var b=rc;return b?0<=b.toLowerCase().indexOf(a):!1};
Vp=function(a,b,c){a&&(c&&!Np()?a&&(a=L("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),jf(a).body.appendChild(a)):Up(a,b))};
Yp=function(a){return A(B(a))?!1:Wp.test(a)||Xp.test(a)};
Up=function(a,b){var c=new window.Image,d=""+Zp++;$p[d]=c;c.onload=c.onerror=function(){b&&$p[d]&&b();delete $p[d]};
c.src=a};
bq=function(a,b,c){this.start=a;this.end=b;this.B=aq++;a=c||{};this.qa=a.id||"";this.C=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.b=a.namespace||"";this.color="";a.color&&(b=a.color.toString(16),this.color="#"+Array(7-b.length).join("0")+b);this.g=null;this.tooltip=a.tooltip;this.visible=this.visible;this.style=this.style;this.start=this.start};
cq=function(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6;case "ytp-time-marker":return Number.POSITIVE_INFINITY;default:return 0}};
dq=function(a,b){return a.start-b.start||a.C-b.C||a.B-b.B};
eq=function(a,b){jk.call(this);this.logEvent=this.Ea="";this.la=b||"";this.ca=this.loaded=this.D=!1;this.M=this.F=null;this.b=a;if(this.la){var c=uk("yt-html5-player-modules::"+this.la);c&&(this.M=new rj(c))}};
hq=function(a){var b=a.b,c=b.app;a=a.Ea;var b=b.playerType,d=fq(c,b);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.b==a){var m=d.g.indexOf(l);0<=m&&d.g.splice(m,1);m=d.b;Ib(m.b,l,m.g);e.push(l)}}d.be();b&&c.getPresentingPlayerType()!=b||gq(c,"cuerangesremoved",e)}};
iq=function(a){a.b.He(a.Ea)};
jq=function(a,b,c){var d={},e;for(e in b)d[a.Ea+"_"+e]=b[e];b={};for(var f in c)b[a.Ea+"_"+f]=c[f];a=a.b.app.B;ra(a.A,d||null);ra(a.o,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.U("command_stop_redirect_controls")};
nq=function(a){a.U("command_play",!1,a.b.playerType)};
pq=function(a){E.call(this);this.ma={};this.ka={};this.element=oq(this,a)};
oq=function(a,b){if(ea(b)){var c=0,d=Af(b[c++]);if(v(b[c])){var e=b[c++];if(e=qq(a,d,"className",e))rq(a,d,"className",e),a.ma[e]=d}else if(ea(b[c])){for(var f=b[c++],e=0;e<f.length;e++)a.ma[f[e]]=d;rq(a,d,"className",f.join(" "))}for(;c<b.length;c++)f=b[c],ea(f)?(e=oq(a,f),d.appendChild(e)):ka(f)?f.element?d.appendChild(f.element):sq(a,d,f):v(f)&&(f=qq(a,d,"child",f),null!=f&&d.appendChild(window.document.createTextNode(String(f))))}else{d=Af(b.tagName);if(e=b.className){if(e=qq(a,d,"className",
e))rq(a,d,"className",e),a.ma[e]=d}else if(c=b.b){for(e=0;e<c.length;e++)a.ma[c[e]]=d;rq(a,d,"className",c.join(" "))}if(c=b.children)for(e=0;e<c.length;e++)f=c[e],v(f)?(f=qq(a,d,"child",f),null!=f&&d.appendChild(window.document.createTextNode(String(f)))):(f=oq(a,f),d.appendChild(f));(e=b.attributes)&&sq(a,d,e)}return d};
tq=function(a){Ff(a.element)};
qq=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.ka[d]=[b,c],null):d};
uq=function(a){return ea(a)&&v(a[0])||ka(a)&&v(a.tagName)};
rq=function(a,b,c,d){if("child"==c){Df(b);if(!ea(d)||uq(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(uq(f))c.push(oq(a,f));else if(f.element)c.push(f.element);else if(v(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"className"==
c?b.className=d:"style"==c?b.style.cssText=d?d:"":null===d?b.removeAttribute(c):b.setAttribute(c,d.toString())};
sq=function(a,b,c){for(var d in c){var e=c[d];null!=e&&rq(a,b,d,v(e)?qq(a,b,d,e):e)}};
vq=function(a,b){a&&(a.style.display=b)};
wq=function(a,b){var c=Rh("requestAnimationFrame",window);return Oi(function(){c?c.call(window,a):a()},b||0)};
xq=function(a){if(window.document.createRange){var b=window.document.createRange();b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}};
Q=function(a){pq.call(this,a);this.A=!0;this.V=[]};
yq=function(a){Q.call(this,a);this.S=new jk;F(this,this.S)};
zq=function(a,b){yq.call(this,["div",["html5-endscreen","ytp-player-content",b||"base-endscreen"]]);this.o=a;this.K=!1};
Aq=function(){Q.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"]]])};
Cq=function(){return Bc?"Webkit":Bq?"Moz":tf?"ms":Cc?"O":null};
Eq=function(a,b,c){if(v(b))(b=Dq(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Dq(c,d);f&&(c.style[f]=e)}};
Dq=function(a,b){var c=Fq[b];if(!c){var d=Za(b),c=d;void 0===a.style[d]&&(d=Cq()+$a(d),void 0!==a.style[d]&&(c=d));Fq[b]=c}return c};
Gq=function(a,b){var c=a.style[Za(b)];return"undefined"!==typeof c?c:a.style[Dq(a,b)]||""};
Hq=function(a,b){var c=jf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
Iq=function(a,b){return Hq(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
Kq=function(a,b,c){var d;b instanceof cf?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Jq(d,!1);a.style.top=Jq(b,!1)};
Lq=function(a){return new cf(a.offsetLeft,a.offsetTop)};
Mq=function(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}tf&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b};
Nq=function(a){if(tf&&!Ac(8))return a.offsetParent;var b=jf(a),c=Iq(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=Iq(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};
Pq=function(a){for(var b=new gg(0,window.Infinity,window.Infinity,0),c=lf(a),d=c.b.body,e=c.b.documentElement,f=sf(c.b);a=Nq(a);)if(!(tf&&0==a.clientWidth||Bc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Iq(a,"overflow")){var k=Oq(a),l=new cf(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=rf(Xf(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};
Oq=function(a){var b=jf(a),c=new cf(0,0),d;d=b?jf(b):window.document;d=!tf||Ac(9)||"CSS1Compat"==lf(d).b.compatMode?d.documentElement:d.body;if(a==d)return c;a=Mq(a);b=uf(lf(b).b);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Rq=function(a,b){var c=new cf(0,0),d=vf(jf(a));if(!qc(d,"parent"))return c;var e=a;do{var f=d==b?Oq(e):Qq(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c};
Tq=function(a,b){var c=Sq(a),d=Sq(b);return new cf(c.x-d.x,c.y-d.y)};
Qq=function(a){a=Mq(a);return new cf(a.left,a.top)};
Sq=function(a){if(1==a.nodeType)return Qq(a);a=a.changedTouches?a.changedTouches[0]:a;return new cf(a.clientX,a.clientY)};
Vq=function(a,b,c){if(b instanceof ef)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");Uq(a,b);a.style.height=Jq(c,!0)};
Jq=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
Uq=function(a,b){a.style.width=Jq(b,!0)};
Xq=function(a){var b=Wq;if("none"!=Iq(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};
Wq=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=Bc&&!b&&!c;return p(b)&&!d||!a.getBoundingClientRect?new ef(b,c):(a=Mq(a),new ef(a.right-a.left,a.bottom-a.top))};
Yq=function(a){var b=Oq(a);a=Xq(a);return new hg(b.x,b.y,a.width,a.height)};
Zq=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)+")")};
$q=function(a,b){a.style.display=b?"":"none"};
ar=function(a){return"none"!=a.style.display};
br=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};
fr=function(a){var b=Iq(a,"fontSize"),c;c=(c=b.match(cr))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(tf){if(String(c)in dr)return br(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&String(c)in er)return a=a.parentNode,c=Iq(a,"fontSize"),br(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;Ff(c);return b};
gr=function(a,b){ea(b)||(b=[b]);var c=N(b,function(a){return v(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});
Eq(a,"transition",c.join(","))};
hr=function(a,b,c,d){E.call(this);this.g=a;c||a.fa();this.A=null==d?b:d;this.b=null;this.o=new ce(this.Oj,0,this);F(this,this.o)};
ir=function(a,b){var c=a.g.element;b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")};
jr=function(a,b){Q.call(this,b||["div","ytp-thumbnail-overlay"]);this.B=new hr(this,250);F(this,this.B);this.o=a};
kr=function(a){jr.call(this,a,["div",["ytp-thumbnail-overlay","ytp-channel-overlay"],["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"]])};
mr=function(a){zq.call(this,a,"subscribecard-endscreen");this.B=new kr(a);F(this,this.B);lr(this.o,this.B.element,4);this.C=new Aq;F(this,this.C);this.fa()};
nr=function(a){E.call(this);this.K=[];this.ua=a||this};
or=function(a,b,c,d){for(var e=0;e<c.length;e++)a.R(b,c[e],d)};
pr=function(a){for(;a.K.length;){var b=a.K.pop();b.target.removeEventListener(b.name,b.Bi)}};
qr=function(a,b){this.type=a||"";this.id=b||""};
rr=function(a){return new qr(a.substr(0,2),a.substr(2))};
tr=function(a){a=a.split("");sr.p9(a,3);sr.rj(a,16);sr.Pk(a,58);sr.Pk(a,34);sr.rj(a,33);return a.join("")};
ur=function(a,b){this.b=a||0;this.spatialAudioType=b||0};
xr=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.Rb=e||null;this.Te=f||null;this.o=vr[wr(this)]||""};
wr=function(a){return a.id.split(";",1)[0]};
yr=function(a){return"9"==a.o||"("==a.o};
zr=function(a){return!(a.audio&&a.video)};
Ar=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")};
Br=function(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};
Cr=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
Fr=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=Dr[0];for(var t=0;t<Dr.length;t++){var u=Dr[t],x=Er[u];if(f>=Math.floor(16*x/9)*Fr.prototype.g||a>=x*Fr.prototype.g){f=b;break a}b=u}f="tiny"}this.quality=f;this.pE=Er[this.quality];this.isAccelerated=!!k;this.fps=c||0;this.A=e||0;this.projectionType=d||0;(c=l)||(c=this.fps,d=Er[this.quality],c=0==d?O("YTP_AUTO"):d+"p"+(55<c?"60":49<c?"50":39<c?"48":""));this.qualityLabel=c;this.o=m||"";this.b=!1!==
n};
Gr=function(a,b){return new Cd(function(c,d){b.$a=function(a){Qj(a)?c(a):d(a)};
b.onError=d;b.bc=d;Vj(a,b)})};
Hr=function(a,b){function c(e,f,k){return Od(e,function(e){return 0>=f||403===e.status?Hd(e):d(k).then(function(){return c(Gr(a,b),f-1,Math.pow(2,4-f+1)*k)})})}
function d(a){return new Cd(function(b){(0,window.setTimeout)(b,a)})}
return c(Gr(a,b),3,1E3)};
Jr=function(a){return Ir(function(a,c){return Hr(a,c)},a,{format:"RAW",
method:"GET"})};
Ir=function(a,b,c){return a(b,c).then(function(b){var e;return(e=!b.responseText||2048<b.responseText.length?"":0==b.responseText.indexOf("https://")?b.responseText:"")?Ir(a,e,c):b})};
Kr=function(a){this.o=a;this.B=this.A=this.C="";this.b={};this.g=""};
Mr=function(a){a.g||(a.g=Lr(a));return a.g};
Or=function(a){Nr(a);return a.B};
Pr=function(a){Nr(a);return Tb(a.b,function(a){return null!==a})};
Nr=function(a){if(a.o){if(!Qr.test(a.o))throw Error("Untrusted URL: "+a.o);var b=oh(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=Rr(c);ra(a.b,Sr(b.J()));ra(a.b,d);a.o="";a.g=""}};
Lr=function(a){Nr(a);var b=a.C+(a.C?"://":"//")+a.B+a.A;if(Pr(a)){var c=[];Qb(a.b,function(a,b){null!==a&&c.push(b+"="+a)});
b+="?"+c.join("&")}return b};
Rr=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Tr(c,a[b],a[b+1]);return c};
Sr=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Tr(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
Tr=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};
Ur=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
Vr=function(a){a=a.split("-");return 2==a.length&&(a=new Ur((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};
Wr=function(a,b){return new Ur(a,a+b-1)};
Xr=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""};
Yr=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};
Zr=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)};
$r=function(a,b,c,d,e,f){this.duration=c;this.endTime=b+c;this.ingestionTime=d;this.b=a;this.sourceURL=e;this.startTime=b;this.range=f||null};
as=function(){this.na=[]};
cs=function(a,b){var c=bs(a,b);return c?c.ingestionTime:window.NaN};
bs=function(a,b){var c=Ab(a.na,new $r(b,0,0,0,""),function(a,b){return a.b-b.b});
return 0<=c?a.na[c]:null};
ds=function(a,b){var c=Ab(a.na,{startTime:b},function(a,b){return a.startTime-b.startTime});
return 0<=c?a.na[c]:a.na[Math.max(0,-c-2)]};
es=function(a,b){var c=eb(a.na,function(a){return a.b>=b},a);
0<c&&a.na.splice(0,c)};
fs=function(a){this.b=a;this.g={};this.o=""};
gs=function(a,b){var c=b.indexOf("?");if(0<c){var d=Sr(b.substr(c+1));Qb(d,function(a,b){this.set(b,a)},a);
b=b.substr(0,c)}d=Rr(b);Qb(d,function(a,b){this.set(b,a)},a)};
is=function(a){a.o||(a.o=hs(a));return a.o};
hs=function(a){var b=Mr(a.b),c=[];Qb(a.g,function(a,b){c.push(b+"="+a)});
if(!c.length)return b;var d=c.join("&");a=Pr(a.b)?"&":"?";return b+a+d};
js=function(a,b){var c=new Kr(b);Qb(a.g,function(a,b){c.set(b,null)});
return c};
ks=function(a){this.b=a;this.A=a.clone();this.g=0;this.o=-1};
ls=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 ks(a)};
ms=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.o=k||0;this.g=0<=l?l:this.range?this.range.length:window.NaN;this.F=!!m;this.range?(this.C=this.o+this.g==this.range.length,this.B=this.startTime+this.duration*this.o/this.range.length,this.G=this.duration*this.g/this.range.length):(this.C=0!=this.g,this.B=this.startTime,this.G=this.duration);this.D=this.B+this.G};
ns=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.o+b.g!=a.o+a.g)};
os=function(a){return 1==a.type||2==a.type};
ps=function(a,b){return a.b==b.b&&a.range.start+a.o+a.g==b.range.start+b.o};
qs=function(a){1==a.length||Eg(a,function(a){return!!a.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new Ur(a[0].range.start+a[0].o,b.range.start+b.o+b.g-1)};
ts=function(a){var b="";Qb(rs(a),function(a,d){b+=d+"="+a+","});
return b.slice(0,-1)};
rs=function(a){var b={};b.itag=wr(a.b.info);b.seg=a.A;a.range&&(b.range=""+(a.range.start+a.o)+"-"+(a.range.start+a.o+a.g-1));b.time=""+a.B.toFixed(1)+"-"+(a.B+a.G).toFixed(1);return b};
us=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].g?qs(this.b):null;this.A=!!c};
vs=function(a,b){var c;/http[s]?:\/\//.test(a.g)?c=new fs(new Kr(a.g)):(c=new fs(a.o.b),a.g&&gs(c,a.g));var d=b||a.range;d&&c.set("range",d.toString());return c};
ws=function(a){if(a.range)return a.range.length;a=a.b[0];return Math.round(a.G*a.b.info.b)};
xs=function(a,b,c,d,e,f){ls.call(this,a,b,d);this.index=e||new as;this.F=c;this.D=!0;this.g=!!f;if(this.B=!c)this.o=!0};
zs=function(a,b){a.Wh(b);return ys(a,b.C?b.A+1:b.A,!1)};
ys=function(a,b,c){if(a.g&&0==a.index.Pe(b))return a=new ms(3,a,null,b),b=0<=b?"sq/"+b:"",new us([a],b,!!b);var d=a.index.xp(b),e=a.index.Qe(b),f=a.index.Pe(b);c?f=c=0:c=0<a.info.b?a.info.b*f:1E3;a=new ms(3,a,null,b,e,f,0,c,b==a.index.Pb()&&!a.D&&0<c);return new us([a],d)};
As=function(a,b,c){this.Md=a;this.durationSecs=b;this.context=c};
Bs=function(a,b,c,d){this.b=a;this.Md=b;this.durationSecs=c;this.g=d||window.NaN};
Cs=function(){this.b=[];this.g=null;this.A=0;this.o=[]};
Ds=function(a){var b=a.o;a.o=[];return b};
Es=function(){this.A=[];this.b=null;this.g={};this.o={}};
Is=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=Fs(a):"AdaptationSet"==f.nodeName?k=Gs(a,f.attributes.mimeType.value):"Representation"==f.nodeName&&(k=Hs(a,f.attributes.id.value));if(null==k)return;k.update(b[e],c);ub(d,Ds(k))}Db(d,function(a){return a.Md});
ub(a.A,d)};
Js=function(a){a.b&&(a.b.b=[]);Qb(a.g,function(a){a.b=[]});
Qb(a.o,function(a){a.b=[]})};
Fs=function(a){a.b||(a.b=new Cs);return a.b};
Gs=function(a,b){a.g[b]||(a.g[b]=new Cs);return a.g[b]};
Hs=function(a,b){a.o[b]||(a.o[b]=new Cs);return a.o[b]};
Ks=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};
Ls=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"]};
Ss=function(a,b,c){var d=Ms(a,0,1836019558);if(!d)return null;var e=Ms(a,d.offset+8,1835427940),f=Ms(a,d.offset+8,1953653094);if(!e||!f)return null;var k=Ms(a,f.offset+8,1952868452),l=Ms(a,f.offset+8,1953658222),m=Ms(a,f.offset+8,1952867444);if(!k||!l||!m)return null;var n=Ms(a,f.offset+8,1935763823);a=Ms(a,f.offset+8,1935763834);if(n){var t=Ns(n),f=Ns(n);if(0!=t||1!=f)return null;t=Ns(n)}for(var u=Ns(k),x=Ns(k),H=u&2,z=u&1?Os(k):0,G=H?Ns(k):0,S=u&8?Ns(k):0,f=u&16?Ns(k):0,P=u&32?Ns(k):0,u=Ns(l),ta=
u&1,ua=u&4,Ja=u&256,k=u&512,cb=u&1024,we=u&2048,u=Ns(l),kk=ta?Ns(l):0,lk=ua?Ns(l):0,ta=[],Tm=[],mk=[],nk=[],ew=0,Re=0,nc=0;nc<u;nc++){var sD=Ja?Ns(l):S;k&&ta.push(Ns(l));var jg=P;ua&&0==nc?jg=lk:cb&&(jg=Ns(l));Tm.push(jg);jg=we?Ns(l):0;0==nc&&(ew=jg);mk.push(Re+jg);nk.push(nc);Re+=sD}1<=Math.abs(Re-b)&&c({flaw:"segDurMismatch",dts:Re.toFixed(),seg:b.toFixed()});Cb(nk,function(a,b){return mk[a]-mk[b]});
c=[];for(nc=0;nc<u;nc++)c[nk[nc]]=nc;Re=H?4:0;nc=16*u;S=68+Re+m.size+nc+(n?n.size:0)+(a?a.size:0);d=S-d.size;l=new Ps(S);Qs(l,S);Qs(l,1836019558);Rs(l,e);Qs(l,S-24);Qs(l,1953653094);Qs(l,16+Re);Qs(l,1952868452);Qs(l,131072|(H?2:0));Qs(l,x);H&&Qs(l,G);Rs(l,m);Qs(l,20+nc);Qs(l,1953658222);Qs(l,16781057);Qs(l,u);Qs(l,z+kk+d);for(nc=Re=0;nc<u;nc++)m=c[nc],e=Math.round(b*m/u),m=Math.round(b*(m+1)/u)-e,jg=e-Re+ew,Qs(l,m),Qs(l,k?ta[nc]:f),Qs(l,Tm[nc]),Qs(l,jg),Re+=m;n&&(Qs(l,n.size),Qs(l,1935763823),Qs(l,
0),Qs(l,1),Qs(l,t+d));a&&Rs(l,a);return l.data.buffer};
Vs=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);return(a=Ts(a,1836476516))?Us(a):window.NaN};
Ms=function(a,b,c){for(;Ws(a,b);){var d=Xs(a,b);if(d.type==c)return d;b+=d.size}return null};
Ts=function(a,b){for(var c=0;Ws(a,c);){var d=Xs(a,c);if(d.type==b)return d;c=Ys(d.type)?c+8:c+d.size}return null};
Xs=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new Zs(a,b,c,d)};
Us=function(a){var b=a.data.getUint8(a.offset+8)?28:20;return a.data.getUint32(a.offset+b)};
$s=function(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)};
Ws=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};
Ys=function(a){return 1836019558==a||1836019574==a||1953653094==a};
Zs=function(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.b=8};
Ns=function(a){var b=a.data.getInt32(a.offset+a.b);a.b+=4;return b};
at=function(a){var b=a.data.getUint32(a.offset+a.b);a.b+=4;return b};
Os=function(a){var b=$s(a.data,a.offset+a.b);a.b+=8;return b};
bt=function(a){var b,c=[];do b=a.data.getUint8(a.offset+a.b),c.push(b),a.b++;while(0!=b);c.pop()};
Ps=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));this.b=0};
Qs=function(a,b){a.data.setInt32(a.b,b);a.b+=4};
Rs=function(a,b){for(var c=0;c+4<=b.size;)Qs(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.b++,b.data.getUint8(b.offset+c++))};
ct=function(a){return(a=Ms(a,0,1836019558))?a.offset+a.size:null};
dt=function(a,b){for(var c=Ms(a,0,b);c;)a.setUint32(c.offset+4,1936419184),c=Ms(a,c.offset+c.size,b)};
et=function(a,b){this.g=a;this.b=0;this.o=b||0};
ht=function(a){for(var b=ft(a,!1);236==b;)gt(a),b=ft(a,!1);return b};
it=function(a){var b=ft(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 et(c,a.o+a.b);a.b+=b;return c};
kt=function(a){for(var b=ft(a,!0),c=jt(a),d=1;d<b;d++)c=256*c+jt(a);return c};
gt=function(a){var b=ft(a,!0);a.b+=b};
mt=function(a){var b=a.b;a.b=0;var c=!1;lt(a,440786851)&&(a.b=0,lt(a,408125543)&&(c=!0));a.b=b;return c};
nt=function(a){var b=a.b;a.b=0;var c=1E6;lt(a,408125543)&&(ft(a,!0),lt(a,357149030)&&(ft(a,!0),lt(a,2807729)&&(c=kt(a))));a.b=b;return c};
pt=function(a,b){var c=a.b;a.b=0;if(!ot(a)||!lt(a,160))return a.b=c,window.NaN;ft(a,!0);if(!lt(a,161))return a.b=c,window.NaN;var d=ft(a,!0);jt(a);var e=jt(a)<<8|jt(a);a.b+=d-3;if(!lt(a,155))return a.b=c,window.NaN;d=kt(a);a.b=c;return(e+d)*b/1E9};
ot=function(a){if(mt(a)){if(!lt(a,408125543))return!1;ft(a,!0)}if(!lt(a,524531317))return!1;ft(a,!0);return!0};
lt=function(a,b){for(;ht(a)!=b;)if(gt(a),a.b>=a.g.byteLength)return!1;return!0};
ft=function(a,b){var c=jt(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+jt(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+jt(a),e*=128;return b?c-e:c};
jt=function(a){return a.g.getUint8(a.b++)};
qt=function(a,b,c,d,e){this.info=a;this.b=b;this.range=c;this.g=null;this.o=d;this.B=e};
rt=function(a){return a.range?new window.DataView(a.b,a.range.start,a.range.length):new window.DataView(a.b)};
tt=function(a){if(a.info.g!=a.range.length)return!1;if(1==a.info.b.info.g){if(8>a.info.g||4==a.info.type)return!0;var b=rt(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.g&&1936286840==b;if(3==a.info.type&&0==a.info.o)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b||1701671783==b||1936419184==b}else if(2==a.info.b.info.g){if(4>a.info.g||4==a.info.type)return!0;b=rt(a);c=b.getUint32(0,!1);if(3==a.info.type&&0==a.info.o)return 524531317==c||440786851==
c}return!0};
ut=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;Ws(d,k);){var l=Xs(d,k);(0,window.isNaN)(e)&&(1936286840==l.type?e=l.data.getUint32(l.offset+16):1836476516==l.type&&(e=Us(l)));if(1952867444==l.type){!e&&c&&(e=Vs(c));var m,n=l;m=n.data.getUint8(n.offset+8)?$s(n.data,n.offset+12):n.data.getUint32(n.offset+12);(0,window.isNaN)(f)&&(f=b*e-m);n=l;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=Ys(l.type)?k+8:k+l.size}return!0}e=new et(new window.DataView(a.info.b.b.buffer));c=new et(new window.DataView(a.b));d=b;f=nt(e);e=c.b;c.b=0;if(ot(c)&&lt(c,231))if(k=ft(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};
vt=function(a){var b;if(1==a.info.b.info.g){for(var c=b=0,d=new window.DataView(a.b);Ws(d,b);){var e=Xs(d,b);if(1936286840==e.type){var f=e.data.getUint32(e.offset+16),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=Ys(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;Ws(d,c);){e=Xs(d,c);if(1836476516==e.type)m=Us(e);else if(1836019558==e.type){!m&&b&&(m=Vs(b));
if(!m){b=window.NaN;break a}l=e;k=m;var n=Ms(l.data,l.offset+8,1953653094),t=Ms(l.data,n.offset+8,1952868452),l=Ms(l.data,n.offset+8,1953658222),n=Ns(t);Ns(t);n&2&&Ns(t);var t=n&8?Ns(t):0,u=Ns(l),x=u&1,n=u&4,H=u&256,z=u&512,G=u&1024,u=u&2048,S=at(l);x&&Ns(l);n&&Ns(l);for(var P=x=0;P<S;P++){var ta=H?Ns(l):t;z&&Ns(l);n&&0==P||!G||Ns(l);u&&Ns(l);x+=ta}f+=x/k}c=Ys(e.type)?c+8:c+e.size}b=f||window.NaN}}else m=new et(new window.DataView(a.info.b.b.buffer)),b=pt(new et(new window.DataView(a.b)),nt(m));return b||
a.info.G};
wt=function(a){return 1==a.info.b.info.g?a.g?a.g.A&&!!Ms(new window.DataView(a.b),0,1718909296):!1:mt(new et(new window.DataView(a.b)))};
xt=function(){this.ra=0;this.b=new window.Float64Array(128);this.g=new window.Float64Array(128);this.A=1;this.o=!1};
zt=function(a){if(a.b.length<a.ra+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.ra+1;b++)a.b[b]=c[b],a.g[b]=d[b]}};
At=function(a,b,c,d,e,f){ls.call(this,a,b,c||void 0);this.indexRange=d;this.B=null;this.index=new xt;this.g=e;this.lastModified=f};
Bt=function(a,b,c,d){for(var e=[];b<=a.index.Pb();b++){var f;f=a.index;var k=b;f=Wr(f.gk(k),k+1<f.ra||f.o?f.b[k+1]-f.b[k]:-1);var k=a.index.Qe(b),l=a.index.Pe(b),m=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+m);e.push(new ms(3,a,f,b,k,l,m,n,b==a.index.Pb()&&m+n==f.length));if(f.start+m+n>=c+d)break}return new us(e)};
Ct=function(a,b,c){a.Wh(b);if(!a.jd())return c=Wr(b.range.end+1,c),c.end+1>a.g&&(c=new Ur(c.start,a.g-1)),a=[new ms(4,b.b,c)],new us(a);4==b.type&&(b=a.Bj(b),b=b[b.length-1]);var d=0,e=b.range.start+b.o+b.g;3==b.type&&(d=b.A,e==b.range.end+1&&(d+=1));return Bt(a,d,e,c)};
Et=function(a,b){jk.call(this);this.H=this.duration=0;this.isLive=this.o=!1;this.D=Dt();this.B=window.Infinity;this.b={};this.J=a||"";this.C=this.G=0;this.A=null;this.S=!!b&&b.aa("html5_live_nonzero_first_segment_start_time");this.g=!1;this.F=[];this.Z=!!b&&b.aa("html5_live_self_init_segments")};
Ft=function(a){return Tb(a.b,function(a){return!!a.info.Te},a)};
Gt=function(a){return Tb(a.b,function(a){return a.info.video?2==a.info.video.projectionType:!1},a)};
Ht=function(a){return Tb(a.b,function(a){return a.info.video?3==a.info.video.projectionType:!1},a)};
Kt=function(a,b,c,d){return d?It(a):Jt(a,b,c)};
Jt=function(a,b,c){var d=new Et;d.duration=c||0;D(a,function(a){var c=Lt(a,b,d.duration),k=Vr(a.init),l=Vr(a.index),m=(0,window.parseInt)(a.clen,10),n=Mt(a.url,c,a.s);a=(0,window.parseInt)(a.lmt,10);n&&(c=new At(n,c,k,l,m,a),d.b[c.info.id]=c)});
return d};
It=function(a){var b=new Et;D(a,function(a){var d=Lt(a);if(a=Mt(a.url,d,a.s))d=new xs(a,d,"",void 0,void 0,!0),b.b[d.info.id]=d});
b.o=!0;b.g=!0;b.isLive=!0;return b};
Lt=function(a,b,c){var d=a.type,e=Nt(a),f=null;Br(d)&&(f=(a.size||"640x360").split("x"),f=new Fr(+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;Ar(d)&&(k=new ur(void 0,+a.spatial_audio_type),a.name&&(l=new Cr(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={},D(a.drm_families.split(","),function(a){t[a]=
b[a]}));
return new xr(e,d,k,f,l,t,m,c)};
Nt=function(a){var b=a.itag;a.xtags&&(b=a.itag+";"+a.xtags);return b};
Mt=function(a,b,c){a=new Kr(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",tr(c));return a};
Pt=function(a,b){var c=Xr(b,"id"),c=c.replace(":",";");"captions"==c&&(c=Xr(b,"lang"));var d=Xr(b,"mimeType"),e=Xr(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(Xr(b,"bandwidth"),10)/8,f=(0,window.parseInt)(Yr(b,"BaseURL").getAttribute("yt:contentLength"),10),f=a.duration&&f?f/a.duration:0,k=null;if(Br(d)){var k=(0,window.parseInt)(Xr(b,"width"),10),l=(0,window.parseInt)(Xr(b,"height"),10),m=(0,window.parseInt)(Xr(b,"frameRate"),10),n=Xr(b,"yt:stereoLayout"),t="equirectangular"==Xr(b,
"yt:projectionType"),u,x;t&&"layout_top_bottom"==n?u=3:t&&!n?u=2:"layout_left_right"==n&&(x=1);k=new Fr(k,l,m,u,x)}x=u=null;if(Ar(d)){u=(0,window.parseInt)(Xr(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10);var H;x=Xr(b,"yt:spatialAudioType");"spatial_audio_type_ambisonics_5_1"==x?H=1:"spatial_audio_type_ambisonics_quad"==x&&(H=2);u=new ur(u,H);H=Xr(b,"lang")||"";(x=Yr(b,"Role"))?(x=Xr(x,"value")||"",x=H&&ac(Ot,x)?new Cr(Xr(b,"yt:langName")||H+" - "+x,H+"."+Ot[x],"main"==x):null):
x=null}l=null;if(H=Yr(b,"ContentProtection"))if((l=H.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==l.textContent)for(l={},H=H.firstChild;null!=H;H=H.nextSibling)"yt:SystemURL"==H.nodeName&&(l[H.attributes.type.textContent]=H.textContent.trim());else l=null;return new xr(c,d,u,k,x,l,e,f)};
Qt=function(a,b){a.C=1;a.D=Dt();return Od(Jr(b||a.J).then(w(a.M,a)),w(a.N,a))};
Rt=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=Vr(a):d=d+"?range="+a));return new $r(b.b,b.Md,b.durationSecs,b.g,d,e)};
St=function(a){a=a.b;for(var b in a){var c=a[b].index;if(c&&c.Re())return c.Og()}return window.NaN};
Tt=function(a){a=a.b;for(var b in a){var c=a[b].index;if(c&&c.Re())return c.Gt()}return 0};
Ut=function(a){var b=a.b,c;for(c in b)if((a=b[c].index)&&a.Re()){c=0;for(b=a.Wf();b<=a.Pb();b++)c+=a.Pe(b);c/=a.Dl();return.5*Math.round(c/.5)}return window.NaN};
Vt=function(a,b){Qb(a.b,function(a){Qb(b,function(b,e){var f=a.C;f.b.set(e,b);f.A.set(e,b)})})};
Wt=function(a,b){if(!a.b["0"]){var c=new Fr(0,0,0,void 0,void 0,"auto"),c=new xr("0","",void 0,c);a.b["0"]=b?new xs(new Kr("http://www.youtube.com/videoplayback"),c,""):new At(new Kr("http://www.youtube.com/videoplayback"),c,new Ur(0,0),new Ur(0,0),0,window.NaN)}};
Xt=function(){var a=q("yt.player.utils.videoElement_");a||(a=window.document.createElement("video"),g.ba("yt.player.utils.videoElement_",a,void 0));return a};
$t=function(a){var b=Xt();try{if(b.canPlayType){a=a?Yt:Zt;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}};
au=function(a){a=L("div",{"class":a});window.document.body.appendChild(a);var b="none"==Hq(a,"display");Ff(a);return b};
bu=function(a,b,c){this.b=a;this.g=b;this.B=c;this.A={};this.o=null;this.fairPlayCert=""};
du=function(a){return!a.o&&cu()&&"com.microsoft.playready"==a.g};
eu=function(a){return!a.o&&cu()&&"com.apple.fps.1_0"==a.g};
cu=function(){var a=window.MSMediaKeys;Qp()&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null};
iu=function(a){var b=Zl&&fu("45"),c=gu&&a.aa("edge_nonprefixed_eme");a=hu&&fu("47")&&a.aa("firefox_eme");return window.navigator.requestMediaKeySystemAccess&&(b||c||a)};
ku=function(a,b){this.g=[];this.b={};this.o={};this.A=null;this.F=b;ju(this,a)};
ju=function(a,b){Qb(b,function(a){a.forEach(function(a){a.Te&&Qb(a.Te,function(b,c){lu[c]&&Qb(lu[c],function(b){this.b[b]=this.b[b]||new bu(c,b,a.Te[c]);this.o[c]=this.o[c]||{};this.o[c][a.mimeType]=!0},this)},this)},this)},a);
a.g=mu.filter(function(a){return!!this.b[a]},a)};
ou=function(a){var b=a.g.shift(),c=a.b[b],d=nu(a.o[c.b]);window.navigator.requestMediaKeySystemAccess(b,d).then(Ni(w(a.D,a,c)),Ni(w(a.C,a,c)))};
nu=function(a){var b={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};Qb(a,function(a,d){(0==d.indexOf("audio/")?b.audioCapabilities:b.videoCapabilities).push({contentType:d})});
return[b]};
qu=function(a){var b=cu(),c=Xt();if(b){if(pu){a.A(new bu("fairplay","com.apple.fps.1_0",""));return}var d=function(a,c){return b.isTypeSupported(c,a)}}else c.addKey||c.webkitAddKey?d=w(c.canPlayType,c):d=function(){return!1};
c=(c=fb(a.g,function(a){var b=this.b[a],c,l;Qb(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)};
ru=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};
uu=function(a){a=a||{};this.H=a.formats||"";this.A=a.format||1;if(1==this.A)for(var b=this.H.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.qa=a.id;this.J=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 ru(a.translationLanguage))};
wu=function(a){var b={format:a.A,languageCode:a.g,languageName:a.C,displayName:vu(a),kind:a.o,name:a.B,id:a.qa,is_servable:a.J,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};
vu=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("")};
xu=function(a,b){var c=new uu;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};
yu=function(a,b){this.id=a;this.Rb=b;this.captionTracks=[];this.Oi=this.nl=null;this.No=0};
zu=function(a,b,c){this.g=a||0;this.b=b||0;this.o=c};
Au=function(a,b,c){return new zu(Er[a]||0,Er[b]||0,c)};
Bu=function(a){var b=Er.auto;return a.g==b&&a.b==b};
Du=function(a,b){if(b.o&&Bu(b))return Cu;if(b.o||Bu(a))return b;if(a.o||Bu(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 zu(c,d,!1)};
Fu=function(a){var b=a.b||a.g;return cc(Eu,function(a){return Er[a]==b})||"auto"};
Gu=function(a,b,c){this.videoInfos=a;this.b=b||null;this.audioTracks=[];this.g=c||null;if(this.b){var d={};D(this.b,w(function(a){if(a.Rb&&!d[a.id]){var b=new yu(a.id,a.Rb);d[a.id]=b;this.audioTracks.push(b)}},this))}};
Hu=function(a,b){this.nc=a;this.b=b};
Iu=function(a){this.b=[];if(a)a:{var b;if(a instanceof Iu){if(b=a.Oa(),a=a.Ja(),0>=this.fb()){for(var c=this.b,d=0;d<b.length;d++)c.push(new Hu(b[d],a[d]));break a}}else b=Zb(a),a=Yb(a);for(d=0;d<b.length;d++)Ju(this,b[d],a[d])}};
Ju=function(a,b,c){var d=a.b;d.push(new Hu(b,c));b=d.length-1;a=a.b;for(c=a[b];0<b;)if(d=b-1>>1,a[d].nc>c.nc)a[b]=a[d],b=d;else break;a[b]=c};
Ku=function(){Iu.call(this)};
Lu=function(a){jk.call(this);this.A=new Ku;this.g=null;this.F={};this.D=a||""};
Ou=function(a,b,c){for(c=Mu(a,c);0<=c;){var d=a.b[c];if(d.o[Math.floor(b/(d.Tb*d.rows))]&&(d=Nu(d,b)))return d;c--}return Nu(a.b[0],b)};
Qu=function(a,b,c){c=Mu(a,c);for(var d,e;0<=c;c--)if(d=a.b[c],e=Math.floor(b/(d.Tb*d.rows)),!d.o[e]){d=a;var f=c,k=f+"-"+e;d.F[k]||(d.F[k]=!0,Ju(d.A,f,{Bq:f,Jq:e}))}Pu(a)};
Pu=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=Ru(a.b[b.Bq],b.Jq);c.onload=w(a.H,a,b.Bq,b.Jq);a.g=c}};
Su=function(a,b,c,d){this.o={};this.K=a;this.H=b;a=c.split("#");this.F=(0,window.parseInt)(a[0],10);this.D=(0,window.parseInt)(a[1],10);this.g=(0,window.parseInt)(a[2],10);this.Tb=(0,window.parseInt)(a[3],10);this.rows=(0,window.parseInt)(a[4],10);this.B=(0,window.parseInt)(a[5],10);this.A=a[6];this.C=a[7];this.J=d};
Ru=function(a,b){var c=a.H,c=c.replace("$N",a.A),c=c.replace("$L",a.K.toString()),c=c.replace("$M",b.toString());a.C&&(c=Tg(c,{sigh:a.C}));return Kp(c)};
Nu=function(a,b){var c=Math.floor(b/(a.Tb*a.rows)),d=a.Tb*a.rows,e=b%d,f=e%a.Tb,e=Math.floor(e/a.Tb),k,l=a.Qn()+1-d*c;l<a.Tb?(k=l,d=1):(k=a.Tb,d=l<d?Math.ceil(l/a.Tb):a.rows);return{url:Ru(a,c),jx:f,Tb:k,BE:e,rows:d,Kq:a.F*k,Iq:a.D*d}};
Tu=function(a,b,c){Lu.call(this,c);this.b=this.o(a,b);this.B={};1<this.b.length&&this.b[0].isDefault()&&this.b.splice(0,1)};
Mu=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].Xa()>=b)return a.B[b]=d;a.B[b]=c-1;return c-1};
Uu=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");Su.call(this,a,b,c,0);this.b=null;this.G=d?3:0};
Vu=function(a,b){this.J=b;Tu.call(this,a,0)};
Wu=function(a,b){return void 0==b?a:"1"==b?!0:!1};
Xu=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
Yu=function(a,b){return void 0==b?a:Number(b)};
Zu=function(a,b){return void 0==b?a:b.toString()};
av=function(a){if(a&&(a=a.match($u))){var b=(0,window.parseFloat)(a[2]);if(0<b)return(0,window.parseFloat)(a[1])/b}return window.NaN};
bv=function(a,b){var c=Er.auto,d=Er[b];return d>Er.medium?new zu(d,c,!1):d>=c?new zu(c,d,!1):a};
cv=function(a){return Mi("EXPERIMENT_FLAGS",{})[a]};
dv=function(){return{apiaryHost:Mi("APIARY_HOST",void 0),Ok:Mi("APIARY_HOST_FIRSTPARTY",void 0),gapiHintOverride:Mi("GAPI_HINT_OVERRIDE"),gapiHintParams:Mi("GAPI_HINT_PARAMS",void 0),innertubeApiKey:Mi("INNERTUBE_API_KEY",void 0),innertubeApiVersion:Mi("INNERTUBE_API_VERSION",void 0),qm:Mi("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:Mi("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),sm:Mi("INNERTUBE_CONTEXT_HL",void 0),rm:Mi("INNERTUBE_CONTEXT_GL",void 0),HP:Mi("XHR_APIARY_HOST",
void 0)}};
ev=function(a){a={client:{hl:a.sm,gl:a.rm,clientName:a.qm,clientVersion:a.innertubeContextClientVersion}};Mi("DELEGATED_SESSION_ID")&&(a.user={onBehalfOfUser:Mi("DELEGATED_SESSION_ID")});return a};
hv=function(){this.b=dv();fv||(fv=gv(this.b))};
gv=function(a){return(new Cd(function(b){jj(Mi("GAPI_LOADER_URL",void 0),function(){try{q("yt.gapi.load")("client",{gapiHintOverride:a.gapiHintOverride,_c:{jsl:{h:a.gapiHintParams}},callback:b})}catch(c){Si(c)}})})).then(function(){})};
iv=function(a,b,c,d){var e={path:"/youtubei/"+a.b.innertubeApiVersion+"/"+b,headers:{"X-Goog-Visitor-Id":Mi("VISITOR_DATA")},method:"POST",body:bg(c)},f=w(a.A,a);fv.then(function(){f();q("gapi.client.request")(e).execute(d||r)})};
jv=function(a){this.b=a;this.g=this.o=void 0};
kv=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};
pv=function(a,b){lv[a.endpoint]=lv[a.endpoint]||[];var c=lv[a.endpoint];c.push(a.Rr);mv[a.endpoint]=b;20<=c.length?nv():(Qi(ov),ov=Oi(nv,Mi("VISIBILITY_TIMEOUT",1E4)))};
nv=function(){Qi(ov);if(!dc(lv)){for(var a in lv){var b=qv[a];if(!b){b=mv[a];if(!b)continue;b=new b;qv[a]=b}var c=b.g();c.requestTimeMs=Math.round(Dt());c[rv[a]]=lv[a];b.o(a,c,{});delete lv[a]}dc(lv)||(Qi(ov),ov=Oi(nv,Mi("VISIBILITY_TIMEOUT",1E4)))}};
tv=function(a,b,c){var d={};d.eventTimeMs=Math.round(c||Dt());d[a]=b;pv({endpoint:"log_event",Rr:d},hv)};
uv=function(){var a=Mi("client-screen-nonce",void 0);a||(a=Mi("EVENT_ID",void 0));return a};
vv=function(){return!!q("yt.scheduler.instance")};
wv=function(a,b){(0,window.isNaN)(b)&&(b=void 0);var c=q("yt.scheduler.instance.addJob");return c?c(a,1,b):void 0===b?(a(),window.NaN):Oi(a,b||0)};
xv=function(a){if(!(0,window.isNaN)(a)){var b=q("yt.scheduler.instance.cancelJob");b?b(a):Qi(a)}};
zv=function(){var a=q("yt.scheduler.instance.start");a&&(Qi(yv),a())};
Av=function(){var a=q("yt.scheduler.instance.pause");a&&(a(),Qi(yv),yv=Oi(zv,800))};
Bv=function(a,b){this.version=a;this.args=b};
Cv=function(a){if(!a.Me){var b={};a.call(b);a.Me=b.version}return a.Me};
Dv=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=Cv(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;}};
Ev=function(a,b){this.topic=a;this.b=b};
Hv=function(a){var b=Fv,c=Gv();c&&c.publish.call(c,b.toString(),b,a)};
Lv=function(a,b){var c=Fv,d=Gv();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(Iv[e])try{if(k&&c instanceof Ev&&c!=d)try{k=Dv(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){Si(l)}};
Jv[c.toString()]?vv()?wv(l,void 0):Oi(l,0):l()}});
Iv[e]=!0;Kv[c.toString()]||(Kv[c.toString()]=[]);Kv[c.toString()].push(e);return e};
Nv=function(a,b){var c=Lv(function(d){a.apply(b,arguments);Mv(c)},b);
return c};
Mv=function(a){var b=Gv();b&&(ha(a)&&(a=[a]),D(a,function(a){b.unsubscribeByKey(a);delete Iv[a]}))};
Gv=function(){return q("yt.pubsub2.instance_")};
Pv=function(){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new window.Uint8Array(16);window.crypto.getRandomValues(b);for(var c=0;c<a.length;c++)a[c]=b[c];return a}catch(e){}a=Array(16);for(b=0;16>b;b++){for(var c=C(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(b=Ov)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};
Qv=function(){for(var a=Pv(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")};
Rv=function(){return N(Pv(),function(a){return(a&15).toString(16)}).join("")};
Sv=function(a){Bv.call(this,1,arguments);this.b=a};
Uv=function(a){Tv&&Tv.measure&&Tv.measure("measure_above_the_fold",a?a:"navigationStart")};
$v=function(a,b,c){if(!b&&"_"!=a[0]){var d=a;Tv.mark&&(Vv.test(d)||(d="mark_"+d),Tv.mark(d))}var d=Wv(c),e=b||Dt();d[a]&&(d["_"+a]=d["_"+a]||[d[a]],d["_"+a].push(e));d[a]=e;Xv(c)["tick_"+a]=b;cv("csi_on_gel")?(d=Yv(c),"_start"==a?tv("latencyActionBaselined",{clientActionNonce:d},b):tv("latencyActionTicked",{tickName:a,clientActionNonce:d},b),a=!0):a=!1;a||Zv(c)};
bw=function(a,b){aw("yt_sts",a,b);$v("_start",void 0,b)};
cw=function(a,b){var c=Wv(b);return a in c};
aw=function(a,b,c){var d=dw(c).info[a]=b;Xv(c)["info_"+a]=d;cv("csi_on_gel")&&(a in fw?(b={},a=fw[a],a in gw&&(d=!!d),b[a]=d,c=Yv(c),b.clientActionNonce=c,tv("latencyActionInfo",b)):Si(Error("Unknown label "+a+" logged with GEL CSI.")))};
kw=function(a){hw(a);iw();jw(!1,a)};
nw=function(a,b){a:if(!lw(a)){if(!cv("send_empty_timing")){var c=Mi("CSI_SERVICE_NAME","youtube");if(!Mi((a||"")+"TIMING_ACTION",void 0)||!c)break a}$v("aa",void 0,a);aw("ap",1,a);aw("yt_fss","c",a);mw(a)}kw(a);Li(a+"TIMING_AFT_KEYS",b);Li(a+"TIMING_ACTION",a);bw("c",a);g.ba("yt.timing."+(a||"")+"ready_",!0,void 0);Zv(a)};
ow=function(a){var b=Wv(a);if(b.aft)return b.aft;a=Mi((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};
mw=function(a){var b=Wv(a),c=dw(a).info,d=b._start,e;for(e in b)if(va(e,"_")&&ea(b[e])){var f=e.slice(1);if(f in pw){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=q("yt.timing.reportbuilder_")){if(k=k(b,c,a))qw(k,f),kw(a)}else{var l=Mi("CSI_SERVICE_NAME","youtube"),k={v:2,s:l,action:Mi((a||"")+"TIMING_ACTION",void 0)},m=c.srt;delete c.srt;void 0===b.srt&&(m||0===m||(m=Tv.timing||{},m=Math.max(0,m.responseStart-m.navigationStart),(0,window.isNaN)(m)&&c.pt&&(m=c.pt)),m||0===m)&&(c.srt=Math.round(m));if(c.h5jse){var n=window.location.protocol+q("ytplayer.config.assets.js");(n=Tv.getEntriesByName?Tv.getEntriesByName(n)[0]:
null)?c.h5jse=Math.round(c.h5jse-n.responseEnd):delete c.h5jse}b.aft=ow(a);rw(a)&&"youtube"==l&&(aw("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=Dt();c={};t=[];for(e in b)"_"!=e.charAt(0)&&(l=Math.round(b[e]-d),cv("enable_negative_ticks")||(l=Math.max(l,0)),c[e]=l,t.push(e+"."+l));k.rt=t.join(",");(b=q("ytdebug.logTiming"))&&b(k,c);cv("navigation_only_csi_reset")||kw(a);qw(k,f,a);Hv(new Sv(c.aft+(m||0)))}};
Zv=function(a){if(!lw(a)||!cv("navigation_only_csi_reset")&&!a){var b=Mi((a||"")+"TIMING_ACTION",void 0),c=Wv(a);if(q("yt.timing."+(a||"")+"ready_")&&b&&c._start&&ow(a))if(a)mw(a);else{var b=!0,d=Mi("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&mw(a)}}};
qw=function(a,b,c){if(cv("debug_csi_data")){var d=q("yt.timing.csiData");d||(d=[],g.ba("yt.timing.csiData",d,void 0));d.push({page:window.location.href,time:new Date,args:a})}var d="",e;for(e in a)d+="&"+e+"="+a[e];a="/csi_204?"+d.substring(1);if(window.navigator&&window.navigator.sendBeacon&&(!cv("beacon_abandoned_only")||b))try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||Vp(a,void 0)}catch(f){Vp(a,void 0)}else Vp(a);jw(!0,c)};
Yv=function(a){var b=dw(a).nonce;b||(b=Qv(),dw(a).nonce=b);return b};
Wv=function(a){return dw(a).tick};
Xv=function(a){a=dw(a);"gel"in a||(a.gel={});return a.gel};
dw=function(a){return q("ytcsi."+(a||"")+"data_")||hw(a)};
hw=function(a){var b={tick:{},info:{}};g.ba("ytcsi."+(a||"")+"data_",b,void 0);return b};
lw=function(a){return!!q("yt.timing."+(a||"")+"pingSent_")};
jw=function(a,b){g.ba("yt.timing."+(b||"")+"pingSent_",a,void 0)};
rw=function(a){var b=Wv(a),c=b.pbr,d=b.vc,b=b.pbs;return c&&d&&b&&c<d&&d<b&&1==dw(a).info.yt_vis};
tw=function(a,b,c){this.errorCode=a;this.b=b;this.details=c||{}};
uw=function(a){var b,c;for(c in a.details)b=(b?b+";":"")+c+"."+a.details[c];return b||""};
vw=function(a){return(a=a.exec(rc))?a[1]:""};
fu=function(a){return 0<=Ua(ww,a)};
xw=function(){};
yw=function(){this.buffered=new xw};
zw=function(a,b){this.A=a;this.b=!!b;this.o=!1;this.g={}};
Aw=function(a){return a.b?a.A:Tg(a.A,a.g)};
Bw=function(a,b){this.g=a;this.o=b;this.A=0;Object.defineProperty(this,"timestampOffset",{get:this.iF,set:this.mF});Object.defineProperty(this,"buffered",{get:this.gF})};
Cw=function(){this.length=0};
Dw=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.b=a;this.g=window.NaN;this.o=0;Object.defineProperty(this,"duration",{get:this.hF,set:this.lF});Object.defineProperty(this,"readyState",{get:this.jF});this.b.addEventListener("webkitsourceclose",w(this.kF,this),!0)};
Ew=function(a,b,c,d,e){nr.call(this);this.g=this.b=null;this.A=b;this.o=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new Dw(a);this.C=this.B=this.D=null;this.F=d;this.J=c;this.M=e;or(this,this.o,["sourceopen","webkitsourceopen"],this.H);or(this,this.o,["sourceclose","webkitsourceclose"],this.G)};
Fw=function(a,b){a.B=b};
Gw=function(a,b){a.C=b};
Hw=function(a){if(!a.D){var b;b=a.o;b=b.qH?b.b.webkitMediaSourceURL:window.URL.createObjectURL(b);a.D=new zw(b,!0)}return a.D};
Iw=function(a){try{return"open"==a.o.readyState}catch(b){return!1}};
Jw=function(a){try{return"closed"==a.o.readyState}catch(b){return!0}};
Kw=function(a){return a.b.updating||a.g.updating};
Lw=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
Mw=function(a){return a.b?!!a.b.appendBuffer:Lw()};
Nw=function(a){if(/opus/.test(a)&&(Zl&&!fu("38")||Rp()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Pp())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!Xt().canPlayType(a)};
Ow=function(a){this.Lc=a};
Pw=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};
Tw=function(a,b){if(2.2!=Qw&&$t(a.g))return[];for(var c={},d=Xt(),e=0;e<b.length;e++){var f=b[e];if(wr(f.Lc)in Rw||"5"==wr(f.Lc)?0:Sw(d,f.Lc.mimeType)){var k=f.Lc.video.quality;c[k]&&2!=c[k].Lc.g||(c[k]=f)}}var l=[];c.auto&&l.push(c.auto);D(Dr,function(a){(f=c[a])&&l.push(f)});
return l};
Sw=function(a,b){var c=a.canPlayType(b);Uw?c=c||Vw[b]:2.2==Qw?c=c||Ww[b]:Mp()&&(c=c||Xw[b]);return!!c};
Zw=function(){return!(!Sw(Xt(),"application/x-mpegURL")&&!Yw())};
Yw=function(){var a=Mp()&&!fu(29),b=Lp("google tv")&&Lp("chrome")&&!fu(30);return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)};
hx=function(a,b){var c={},d;for(d in b.b){var e=b.b[d],f;if(f="304"!=wr(e.info)||b.o)a:{f=a;var k=e.info;if("0"!=wr(k)||f.g){var l=k.mimeType,m={};k.video&&(k.video.width&&(m[$w.name]=k.video.width),k.video.height&&(m[ax.name]=k.video.height),k.video.fps&&(m[bx.name]=k.video.fps),k.video.o&&(m[cx.name]=k.video.o),k.b&&(m[dx.name]=8*k.b));k.audio&&k.audio.b&&(m[ex.name]=k.audio.b);k=m;m=void 0;for(m in fx){var n=fx[m];if(k[n.name]&&gx(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=Nw(l)}else f=!0}f&&(c[e.info.o]=c[e.info.o]||[],c[e.info.o].push(e.info))}return c};
ix=function(a,b,c){var d={},e;Qb(b,function(a,b){var l=a.filter(function(a){return a.Te?c&&a.Te[c.b]&&c.A[a.mimeType]?"261"==wr(a)?(e||(e=Xt()),!1):!0:!1:!0},this);
l.length&&(d[b]=l)},a);
return d};
tx=function(a,b,c,d,e){function f(a){return!!k[a]}
var k=hx(a,b);Ft(b)&&(k=ix(a,k,c));var l=jx;a.g?!Lp("windows nt 5.1")||hu&&!a.A.aa("html5_prefer_h264_on_xp")||(l=kx):l=lx;c=mx;d&&(a.g&&(l=kx),c=nx);a.A.aa("html5_enable_aac_51_clear")&&Op()&&(c=ox);(Gt(b)||Ht(b))&&e&&(c=px.concat(c));b=fb(l,f);d=fb(c,f);if(!b||!d)return null;"9"==b&&k.h&&(e=function(a,b){return Math.max(a,b.video.height)},c=$e(k["9"],e,0),$e(k.h,e,0)>1.5*c&&(b="h"));
e=k[b];c=k[d];e=qx(a,e);rx(e,c);return new Gu(e,c,sx(a,k,b,d))};
sx=function(a,b,c,d){var e=b.h;b=b.a;return e&&b&&("h"!=c||"a"!=d)?(e=qx(a,e),rx(e,b),new Gu(e,b)):null};
rx=function(a,b){Cb(a,function(a,b){return b.video.width-a.video.width||b.b-a.b});
Cb(b,function(a,b){return b.b-a.b})};
qx=function(a,b){var c=Sh(b,function(a){return 32<a.video.fps});
c&&(b=a.B||gx(a,bx)?he(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):he(b,function(a){return!(32<a.video.fps)}));
c&&Op()&&(b=he(b,function(a){return"299"!=wr(a)}));
return b};
gx=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"',Nw(e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',Nw(e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=Nw(e+"; "+b.name+"="+b.valid)&&!Nw(e+"; "+b.name+"="+b.jg));c[d]=e}return a.o[b.name]};
ux=function(a,b){this.g=a;this.b=b;this.o=0};
vx=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)};
wx=function(a,b,c,d,e,f,k,l,m){this.itag=a;this.url=b;this.$o=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=l||null;this.b=m||""};
xx=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 wx(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};
yx=function(a,b){this.Lc=a;this.o=b;this.b=null};
zx=function(a,b,c,d,e,f,k,l,m){var n=new ur;d=new Fr(d,e,f,null,void 0,k);c=new xr(c,"application/x-mpegURL",n,d,void 0,m);a=new ux(a,b);a.o=l?l:1369843;return new yx(c,a)};
Ax=function(a,b,c){if(!Uw&&!Qp())return[];b=xx(b);if(!b)return[];var d={xP:"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(zx([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.Lc.Te&&a},!0)?d:null;
l.push(zx(k,f,"93",0,0,0,"auto",c,e));return Tw(a.F,l)};
Bx=function(a,b){this.Lc=a;this.b=b};
Cx=function(a,b,c,d,e,f,k,l){var m=new ur;c in Er||(c="small");e&&f?(f=(0,window.parseInt)(f,10),e=(0,window.parseInt)(e,10)):(f=Er[c],e=Math.round(16*f/9));c=new Fr(e,f,0,null,void 0,c,k,void 0,void 0,l);b=(0,window.unescape)(b.replace(/&quot;/g,'"'));return new Bx(new xr(d,b,m,c),a)};
Dx=function(a){var b=[];D(a,function(a){a.url&&b.push(Cx(a.url,a.type,"medium","0"))});
return b};
Ex=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||tr(e.s);e.url=Mj(e.url,{signature:f})}e.url&&c.push(Cx(e.url,e.type,e.quality,e.itag,e.width,e.height,!!e.isAccelerated,!!e.isAcceleratedUiEnabled))}return Tw(a.F,c)};
Gx=function(a){jk.call(this);this.cf=new ef(0,0);this.Ta=this.N=this.Z=!1;this.Xc="";this.Zb=this.Cb=!1;this.jb={};this.ke="";this.captionTracks=[];this.Ba=[];this.Nb=0;this.captionTranslationLanguages=[];this.ya=!1;this.$=new yu("und",new Cr("Default","und",!0));this.Ga=0;this.bf=this.$e=!1;this.F=null;this.K=[];this.Yc=!1;this.bb=null;this.af=new ce(this.ms,5E3,this);F(this,this.af);this.G=[];this.A={};this.keywords={};this.C={};Fx(this,a)};
Lx=function(a,b){var c=b||{};c.iv_invideo_url&&(a.Jf=Kp(c.iv_invideo_url));c.iv_ads_only&&(a.Go="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.tb=c.cta_conversion_urls);a.isPharma=Wu(a.isPharma,c.is_pharma);a.author=Zu(a.author,c.author);a.Ci=Wu(a.Ci,c.cc_asr);var d=c.ttsurl;Hx.test(d)?a.Di=d:d&&(d=Jp(d),Hx.test(d)&&(a.Di=d));c.caption_tracks&&c.caption_audio_tracks&&(Ix(a,c.caption_tracks),a.Ba=Jj(c.caption_audio_tracks),c.default_audio_track_index&&(a.Nb=(0,window.parseInt)(c.default_audio_track_index,
10)||0),c.caption_translation_languages&&Jx(a,c.caption_translation_languages));a.ya=Wu(a.ya,c.cc_contribute);a.clientPlaybackNonce=Zu(a.clientPlaybackNonce,c.cpn);a.subscribed=Zu(a.subscribed,c.subscribed);a.shortViewCount=Zu(a.shortViewCount,c.short_view_count_text);a.title=Zu(a.title,c.title);a.ypcPreview=Zu(a.ypcPreview,c.ypc_preview);a.ypcOrigin=Zu(a.ypcOrigin,c.ypc_origin);a.paygated=Wu(a.paygated,c.paygated);a.requiresPurchase=Wu(a.requiresPurchase,c.requires_purchase);c.keywords&&(a.keywords=
Kx(c.keywords));c.rvs&&(a.H=Jj(c.rvs));a.contentCheckOk=Wu(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=Wu(a.racyCheckOk,"1"==c.rco);a.oauthToken=Zu(a.oauthToken,c.oauth_token);a.visitorData=Zu(a.visitorData,c.visitor_data);c.session_data&&(a.V=Gj(c.session_data,"&"));c.endscreen_autoplay_session_data&&(a.Gc=Gj(c.endscreen_autoplay_session_data,"&"));a.Wc=Zu(a.Wc,c.endscreen_ad_tracking_data);a.ib=Zu(a.ib,c.tracking_list||c.tv_list);D(Gx.A,function(a){a in c&&(this.A[a]=c[a])},a)};
Fx=function(a,b){var c=b||{};a.oe="1"!=c.hlsdvr?!1:Yw()?!0:Mx&&5>Nx?!1:!0;a.pk=c.ad_query_id;a.Lw=c.agcid;a.xi="1"==c.infringe||"1"==c.muted;a.Bb=c.authkey;a.Ib=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||Qv());a.oE=1E3*Yu(C()/1E3,c.timestamp);a.pl=Wu(a.pl,c.cenchd);a.enableCardio=Wu(a.enableCardio,c.enable_cardio);a.enableCardioBeforePlayback=Wu(a.enableCardioBeforePlayback,c.enable_cardio_before_playback);a.Qf=Yu(a.Qf,c.end||c.endSeconds);a.pa=Zu(a.pa,c.itct);a.wm=Wu(a.wm,c.noiba);
a.oh="1"==c.livemonitor;a.sa="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=Wu(a.isMdxPlayback,c.mdx);a.fj=Wu(a.fj,c.reload);a.Am=Wu(a.Am,c.utpsa);a.Ob=c.cyc;for(var d in Gx.b){var e=c[d+"_webp"]||c[d];Ox.test(e)&&(a.jb[Gx.b[d]]=e)}d=c.murlmq_webp;Ox.test(d)&&(a.ke=d);a.J=Zu(a.J,c.vvt);a.Ww=c.osig;a.ne=c.ptchn;a.We=c.oid;a.ba=c.ptk;a.Xe=c.pltype;a.playbackId=c.plid;a.eventId=
c.eventid;a.osid=c.osid;a.videoMetadata=c.vm;a.rE=c.of;a.playlistId=Zu(a.playlistId,c.list);a.Ye=c.pyv_view_beacon_url;a.Lx=c.pyv_quartile25_beacon_url;a.Wy=c.pyv_quartile50_beacon_url;a.Rz=c.pyv_quartile75_beacon_url;a.Ex=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=c.ppv_remarketing_url);a.Gf=c.sdetail;!a.Wa&&c.session_data&&(a.Wa=Gj(c.session_data,"&").feature);a.isFling=1==Yu(a.isFling?1:0,c.is_fling);a.vnd=Yu(a.vnd,
c.vnd);a.Ca=Zu(a.Ca,c.force_ads_url);a.da=Zu(a.da,c.ctrl);a.ea=Zu(a.ea,c.ytr);a.ka=c.ytrcc;a.Ze=c.ytrexp;a.Ah=bv(a.Ah,c.vq);a.Fh=bv(a.Fh,c.suggestedQuality);a.ca=c.approx_threed_layout||0;a.If=Wu(a.If,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId||c.id||a.videoId;a.vssCredentialsToken=Zu(a.vssCredentialsToken,c.vss_credentials_token);a.sn=Zu(a.sn,c.vss_credentials_token_type);Px(a,c.watermark);a.ypcGid=Zu(a.ypcGid,c.ypc_gid);a.heartbeatToken=Zu(a.heartbeatToken,c.heartbeat_token);a.heartbeatInterval=
Yu(a.heartbeatInterval,c.heartbeat_interval);a.heartbeatRetries=Yu(a.heartbeatRetries,c.heartbeat_retries);a.heartbeatSoftFail=Wu(a.heartbeatSoftFail,c.heartbeat_soft_fail);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.adModule=!0,"1"==c.ad_preroll&&a.G.push("ad")):"1"!=c.supported_without_ads&&(a.Lp=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.ha=c.atc);c.license_info&&(a.Wj=Qx(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.backgroundable&&
(a.backgroundable="1"==c.backgroundable);c.autonav&&(a.ej="1"==c.autonav);c.autoplay&&(a.Xd="1"==c.autoplay);c.iv_load_policy&&(a.Aa=Xu(a.Aa,c.iv_load_policy,Rx));c.cc_lang_pref&&(a.ef=Zu(c.cc_lang_pref,a.ef));c.cc_load_policy&&(a.ff=Xu(a.ff,c.cc_load_policy,Rx));c.channel_path&&(a.Ei=Zu(c.channel_path,a.Ei));"0"==c.dash&&(a.ep=!0);c.dashmpd&&(a.D=Tg(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.D))&&(e=tr(e[1]),a.D=a.D.replace(d,"/signature/"+e));c.delay&&(a.Bf=Ya(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.rq="1"==c.featured);c.fmt_list&&(a.fmtList=c.fmt_list);c.fresca_preroll&&a.G.push("fresca");c.idpj&&(a.Yj=Ya(c.idpj));c.ismb&&(a.Nh=Ya(c.ismb));c.is_episodic&&(a.tm="1"==c.is_episodic);c.is_listed&&(a.isListed=Wu(a.isListed,c.is_listed));c.url_encoded_fmt_stream_map&&(a.Hg=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=Ya(c.length_seconds));c.live_chunk_readahead&&(a.ml=Yu(a.ml,c.live_chunk_readahead));c.live_start_walltime&&(a.liveStartWalltime=Ya(c.live_start_walltime));c.live_manifest_duration&&(a.Cm=Ya(c.live_manifest_duration));c.ldpj&&(a.Dn=Ya(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.wi=a.perceptualLoudnessDb?Math.pow(10,Math.min(-21-a.perceptualLoudnessDb,0)/20):Gx.g);c.partnerid&&(a.S=Ya(c.partnerid));
c.probe_url&&(a.probeUrl=Kp(Tg(c.probe_url,{cpn:a.clientPlaybackNonce})));c.profile_picture&&(a.profilePicture=Zu(c.profile_picture,a.profilePicture));c.pyv_billable_url&&Sx.test(c.pyv_billable_url)&&(a.la=c.pyv_billable_url);c.pyv_conv_url&&Sx.test(c.pyv_conv_url)&&(a.ua=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.Ka=d.quartile_0_url,a.he=d.quartile_25_url,a.ie=d.quartile_50_url,a.je=d.quartile_75_url,a.ge=d.quartile_100_url);"1"==c.spacecast_module&&
(a.G.push("spacecast"),a.spacecastModule=!0);c.spacecast_addrs&&(a.bb=c.spacecast_addrs.split(","),a.spacecastModule=!0);0<a.startSeconds||(a.startSeconds=Yu(a.startSeconds,c.start||c.startSeconds));void 0==c.start||"1"==c.resume||a.sa||(a.clipStart=c.start);c.two_stage_token&&(a.Zj=c.two_stage_token);c.url_encoded_third_party_media&&(a.yf=Jj(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.watchAjaxToken=c.watch_ajax_token);c.ypc_module&&a.G.push("ypc");c.ypc_clickwrap_module&&a.G.push("ypc_clickwrap");
a.lA=Zu(a.lA,c.ucid);D("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.C[a]=c[a])},a);
a.C.focEnabled=Wu(a.C.focEnabled,c.focEnabled);a.C.rmktEnabled=Wu(a.C.rmktEnabled,c.rmktEnabled);a.A=c;Lx(a,c);Tx(a);c.adpings&&(a.df=c.adpings?Ij(c.adpings):null);c.feature&&(a.Hf=c.feature);c.referrer&&(a.referrer=c.referrer);c.q&&(a.searchQuery=c.q);c.multifeed_metadata_list&&(a.K=Jj(c.multifeed_metadata_list))};
Ux=function(a){return C()>a.oE+18E6};
Vx=function(a){return!(!a.o||!a.o.videoInfos.length)};
Tx=function(a){Wx(a)||(a.adaptiveFormats&&!a.sa?(Xx(a,Kt(Yx(a,a.adaptiveFormats),a.Wj,a.lengthSeconds)),Ft(a.b)&&(a.N=!0)):a.D&&(a.Z=!0))};
Zx=function(a){return a.g&&Nw('video/webm; codecs="vp9"')&&Tb(a.b,function(a){return yr(a.info)})};
$x=function(a){return!(!a.b||!a.b.g)};
Wx=function(a){return!Yw()||a.ep?!0:!1};
ay=function(a){a.isDisposed()||(a.Be=!1,a.U("dataloaded",a.A))};
Xx=function(a,b,c){c&&a.b&&a.b.dispose();a.b=b;F(a,b);(by(a)||cy(a)||dy(a))&&a.G.push("webgl")};
hy=function(a,b){if(!a.isDisposed()){a.o=null;a.rg=null;a.M=null;var c=Wx(a)||b.ym;if(!c&&a.spacecastAdaptiveFormats)Xx(a,Kt(Yx(a,a.spacecastAdaptiveFormats),a.Wj,a.lengthSeconds),!0),a.o=tx(b.F,a.b,a.F,!0,!1);else if(a.spacecastFormatMap){var d=Yx(a,a.spacecastFormatMap);a.M=Ex(b,d);a.o=new Gu(N(a.M,function(a){return a.Lc}))}a.o&&(d=$e(a.o.videoInfos,function(a,b){return b.video.isAccelerated&&(!a||a.height<b.video.height)?b.video:a},null))&&(d=Au(d.quality,d.quality,!0),a.Ah=d,a.Fh=d);
a.o||c||!a.b||(b.B||Wt(a.b,a.sa),a.o=tx(b.F,a.b,a.F,!1,!b.experiments.aa("html5_stream_ambisonic_audio")||!ey(b)||hu&&!yc(47)?!1:window.AudioContext||window.webkitAudioContext?!0:!1));a.o||(a.M=fy(a,b),a.M.length&&(a.o=new Gu(N(a.M,function(a){return a.Lc}))));
gy(a)}};
fy=function(a,b){if(a.hlsFormats){var c=Yx(a,a.hlsFormats),c=Ax(b,c,a.Nh);if(c.length)return c}if(a.yf&&a.yq)return c=Dx(a.yf),Tw(b.F,c);c=Yx(a,a.Hg,a.fmtList);if(a.hlsvp){var d;d=a.hlsvp;var e=a.Nh,f={cpn:a.clientPlaybackNonce};-1==d.indexOf("/ibw/")&&(f.ibw=e?String(e):"1369843");d={url:Tg(d,f),type:"application/x-mpegURL",quality:"auto",itag:"93"};c.push(d)}return Ex(b,c)};
iy=function(a){return a.g&&a.g.Te||null};
jy=function(a){a.$j||(a.A.storyboard_spec?a.$j=new Tu(a.A.storyboard_spec,a.lengthSeconds):a.A.live_storyboard_spec&&a.b&&(a.$j=new Vu(a.A.live_storyboard_spec,a.b)));return a.$j};
ky=function(a){return a.b&&!(0,window.isNaN)(Tt(a.b))?Tt(a.b):0};
ly=function(a){return!a.isDisposed()&&!(!a.videoId&&!a.yf)};
my=function(a){return!!(a.D||a.adaptiveFormats||a.Hg||a.yf||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)};
ny=function(a){var b=kb(a.G,"ypc");a.ypcPreview&&(b=!1);return ly(a)&&!a.Be&&(my(a)||kb(a.G,"fresca")||b)};
oy=function(a){return ny(a)&&!a.Z&&!a.N};
Yx=function(a,b,c){b=Jj(b);var d={};c&&D(c.split(","),function(a){(a=a.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[a[1]]={width:a[2],height:a[3]})});
D(b,function(a){a.url&&(a.url=Tg(a.url,{cpn:this.clientPlaybackNonce}));var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a);
return b};
Kx=function(a){var b={};D(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});
return b};
Px=function(a,b){if(b){var c=b.split(",");2<=c.length&&(a.Qa=c[1],Ox.test(a.Qa)&&-1==a.Qa.search(Gx.B)||(a.Qa=""))}};
Qx=function(a){a=Jj(a);var b={};D(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});
return b};
Ix=function(a,b){for(var c=Jj(b),d=0;d<c.length;d++){var e=c[d],f=e.u;Hx.test(f)&&a.captionTracks.push(new uu({is_translateable:e.t,languageCode:e.lc,languageName:e.n,url:f,vss_id:e.v,kind:e.k,format:3}))}};
Jx=function(a,b){for(var c=Jj(b),d=0;d<c.length;d++){var e=c[d];a.captionTranslationLanguages.push(new ru({languageCode:e.lc,languageName:e.n}))}};
gy=function(a){for(var b=a.o?a.o.audioTracks:[],b=b.concat(a.$),c=0;c<a.Ba.length;c++)for(var d=a.Ba[c],e=0;e<b.length;e++){var f=b[e],k=f.Rb.id==d.aid;if(f==a.$&&c==a.Nb||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.nl=a.captionTracks[(0,window.parseInt)(d.d,10)]);d.f&&(f.Oi=a.captionTracks[(0,window.parseInt)(d.f,10)]);f.No=(0,window.parseInt)(d.v,10)}}};
py=function(a,b){return!!a.A[b]};
qy=function(a){return a.sa&&!a.oe};
ry=function(a){return a.sa&&a.oe};
sy=function(a){var b=ic(a.A);!a.sa&&0<a.startSeconds&&(b.start=a.startSeconds);return b};
ty=function(a){if(a.ca||a.zd["3D"])return!0;a=a.zd("yt3d:enable");return"true"==a||"LR"==a||"RL"==a};
uy=function(a,b){(0,window.isNaN)(a.wf)&&(a.wf=a.ml,a.oh&&a.wf--,a.b&&5<=Ut(a.b)&&b.aa("html5_live_disable_dg_pacing")&&a.wf++,a.wf=Math.max(0,a.wf));return a.wf};
cy=function(a){return a.b&&3!=a.ca?Gt(a.b):!1};
by=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.ca)return!0}return Ht(a.b)};
dy=function(a){if(ty(a)&&3!=a.ca&&4!=a.ca)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};
By=function(a){jk.call(this);this.startSeconds=0;this.J=!1;this.b=0;this.title="";this.A=0;this.g=[];this.F=this.C=!1;this.V=this.Gc=this.D=null;this.views=0;this.N=0!=a.fetch;this.B=[];this.b=Math.max(0,a.index||0);this.H=!!a.loop;this.startSeconds=a.startSeconds||0;this.S="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||a.playlist_author||"";this.M={};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.G=0;if(a.list)switch(a.listType){case "user_uploads":vy(this,a.list);break;case "user_favorites":wy(this,a.list);break;case "search":yy(this,a.list);break;default:a.playlist_length&&(this.A=a.playlist_length),this.o=rr(a.list),a.video?(this.g=a.video.slice(0),this.C=!0):zy(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.b&&(this.g=[]);D(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});
Ay(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.C=!0}this.setShuffle(!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);for(var c in Gx.b)b="playlist_"+c,b=a[b+"_webp"]||a[b],Ox.test(b)&&(this.M[Gx.b[c]]=b);this.K=a.thumbnail_ids?a.thumbnail_ids.split(","):[]};
Cy=function(a){return!!(a.playlist||a.list||a.api)};
Dy=function(a){var b=a.b+1;return b>=a.A?0:b};
Ey=function(a){var b=a.b-1;return 0>b?a.A-1:b};
Fy=function(a,b){a.b=Ye(b,0,a.A-1);a.startSeconds=0};
vy=function(a,b){a.F||(a.o=new qr("UU","PLAYER_"+b),Ay(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))};
wy=function(a,b){a.F||(a.o=new qr("FL","PLAYER_"+b),Ay(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))};
yy=function(a,b){if(!a.F){a.o=new qr("SR",b);var c={search_query:b};a.S&&(c.mob="1");Ay(a,"/search_ajax?style=json&embeddable=1",c)}};
zy=function(a){if(!a.F){var b={list:a.o},c=a.wb();c&&c.videoId&&(b.v=c.videoId);Ay(a,"/list_ajax?style=json&action_get_list=1",b)}};
Ay=function(a,b,c){a.N&&Vj(Tg(b,c),{format:"JSON",$a:w(function(a,b){Gy(this,b)},a),
onError:w(function(){this.U("error")},a)})};
Gy=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.H=b.loop);var c=a.wb();a.g=[];D(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:Hy(a,c);a.setShuffle(!1);a.F=!1;a.C=!0;a.G++;a.D&&a.D()}};
Hy=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}}};
Iy=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};
Jy=function(a){return(!ha(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};
Ky=function(a){return Cy(a)?(a.fetch=0,new By(a)):new Gx(a)};
Ly=function(a,b,c,d){var e=b.wb();K(a.element,"ytp-suggestion-set",!!e.videoId);var f=b.Lg();d=b.xc(c,d?d:"mqdefault.jpg");var k=b instanceof Gx?Iy(b.lengthSeconds):null,l=!!f,f=l&&"RD"==rr(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.Hl(c),episodic_title:b.title,is_episodic:e.tm,is_featured:e.rq,is_list:l,is_mix:f,background:d?"background-image: url("+
d+")":""};b instanceof By&&(c.playlist_length=b.A,c.episodic_length=b.A,c.episodic_index=b.Ub());a.update(c)};
My=function(a){var b=R(a).experiments.aa("moving_thumbnails_autonav"),c=["img","ytp-upnext-moving-thumbnail",{src:"{{moving_thumbnail}}"}],c=["div","ytp-upnext",{"aria-label":"{{watch}}"},["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],b?c:null,["div","ytp-thumbnail-overlay-curtain"],["span","ytp-upnext-top",["span","ytp-upnext-header",O("YTP_PLAYLIST_UP_NEXT")],["span","ytp-upnext-title","{{title}}"],["span","ytp-upnext-author","{{author}}"]],["a","ytp-upnext-autoplay-icon",{href:"{{url}}"}],
["span","ytp-upnext-bottom",["span","ytp-upnext-cancel"],["span","ytp-upnext-paused",O("YTP_AUTOPLAY_PAUSED_2")]],["span","ytp-upnext-close"]];Q.call(this,c);var d=this.ma["ytp-upnext-cancel"],c=this.ma["ytp-upnext-close"],e=new Q(["button",["ytp-upnext-cancel-button","ytp-button"],{tabindex:0,"aria-label":O("YTP_AUTOPLAY_CANCEL")},O("YTP_CANCEL")]);F(this,e);e.O("click",this.Vq,this);e.b(d);d=new Q(["button",["ytp-upnext-close-button","ytp-button"]]);F(this,d);d.O("click",this.Vq,this);d.b(c);c=
this.ma["ytp-upnext-autoplay-icon"];vh(c,'<svg height="100%" version="1.1" viewBox="0 0 98 98" width="100%"><circle class="ytp-svg-autoplay-circle" cx="49" cy="49" fill="#000" fill-opacity="0.8" r="48" /><circle class="ytp-svg-autoplay-ring" cx="-49" cy="49" fill-opacity="0" r="46.5" stroke="#FFFFFF" stroke-dasharray="293" stroke-dashoffset="-293" stroke-width="4" transform="rotate(-90)" /><polygon class="ytp-svg-autoplay-triangle" fill="#fff" points="32,27 72,49 32,71" /></svg>');this.B=a;this.J=
of("ytp-svg-autoplay-ring",this.element);this.F=this.D=this.o=this.C=null;this.G=new ce(this.Ji,5E3,this);F(this,this.G);this.H=0;this.R(c,"click",this.EC);this.Uq();this.R(a,"autonavvisibility",this.Uq);b&&this.R(this.ma["ytp-upnext-moving-thumbnail"],"load",this.nI)};
Ny=function(a){a.o||(cj("a11y-announce",O("YTP_PLAYLIST_UP_NEXT")+" "+a.C.title),a.H=Dt(),a.o=new ce(a.Nk,25,a),a.Nk());ie(a.element,"ytp-upnext-autoplay-paused")};
Py=function(a){Oy(a);a.H=Dt();a.Nk();J(a.element,"ytp-upnext-autoplay-paused")};
Oy=function(a){a.o&&(a.o.dispose(),a.o=null)};
Qy=function(a){var b=window.location;a=Tg(a,{})+"";a=a instanceof Be?a:Fe(a);b.href=Ce(a)};
Ry=function(a,b){var c=Mi("EVENT_ID");c&&(b||(b={}),b.ei||(b.ei=c));if(b){var c=b,d=Mi("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=Kg(window.location.href);e&&d.push(e);e=Kg(a);if(kb(d,e)||!e&&va(a,"/"))if(d=Ig(a),d=Gg(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e))d="ST-"+Va(d).toString(36),e=c?Rg(c):"",Jk.set(""+d,e,5,"/","youtube.com"),c&&(c=c.itct||c.ved,d=q("yt.logging.screenreporter.storeParentElement"),c&&d&&d(new jv(c)))}};
Sy=function(a,b){window.open(a,b||Va(a).toString(36))};
Ty=function(a){var b=!R(a).Ca&&3!=a.getPresentingPlayerType();return a.La()||b};
Vy=function(a,b,c,d){if(!c&&Jy(a))return qm(a),d&&R(b).experiments.aa("player_interaction_logging")&&(a=uv())&&Uy({click:{csn:a,visualElement:kv(new jv(d.itct))}},void 0),!0;b.pauseVideo();a=a.currentTarget.getAttribute("href");Ry(a,d);return!1};
Yy=function(a,b,c){if(Wy(R(b))&&2!=b.getPresentingPlayerType()){if(Jy(c))return b.La()&&Xy(b),qm(c),!0}else{var d=Jy(c);d&&b.pauseVideo();Ry(a,null);d&&(Sy(a),qm(c))}return!1};
Zy=function(a){var b=R(a),c=b.experiments.aa("video_wall_moving_thumbnails_first"),d=b.experiments.aa("video_wall_moving_thumbnails_hover"),c=b.experiments.aa("video_wall_moving_thumbnails_autoplay")||d||c,d=b.experiments.aa("video_wall_redesign");this.D=b.C;var b=d&&(Zl||Cc)?{style:"will-change: opacity"}:null,e=["img",["ytp-videowall-moving-thumbnail"],{src:"{{moving_thumbnail}}"}];Q.call(this,["a","videowall-still",{href:"{{url}}",target:this.D?"_blank":null,"aria-label":"{{watch}}","data-is-episodic":"{{is_episodic}}",
"data-is-featured":"{{is_featured}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},["div",d?"ytp-redesign-videowall-still-image":"videowall-still-image",{style:"{{background}}"}],c?e:null,["span","videowall-still-featured-label",O("YTP_FEATURED")],["span",d?"ytp-redesign-videowall-still-info":"videowall-still-info",["span",d?"ytp-redesign-videowall-still-info-bg":"videowall-still-info-bg",["span",d?"ytp-redesign-videowall-still-info-content":"videowall-still-info-content",b,["span",d?"ytp-redesign-videowall-still-info-title":
"videowall-still-info-title","{{title}}"],["span",d?"ytp-redesign-videowall-still-info-author":"videowall-still-info-author","{{author_and_views}}"],["span",d?"ytp-redesign-videowall-still-info-duration":"videowall-still-info-duration","{{duration}}"]]]],["div",["videowall-still-listlabel-episodic",d?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["div","videowall-still-listlabel-episodic-heading",O("YTP_PLAYLIST_UP_NEXT")],["span","videowall-still-listlabel-episodic-icon"],
["div","videowall-still-listlabel-episodic-info",["span","videowall-still-listlabel-episodic-index",["span","","{{episodic_index}}"]," / ",["span","","{{episodic_length}}"]],["span","","{{episodic_title}}"]]],["span",["videowall-still-listlabel-regular",d?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["span","videowall-still-listlabel-icon"],O("YTP_PLAYLIST"),["span","videowall-still-listlabel-length"," (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix",
d?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],O("YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]]);this.B=a;this.o=null;this.F=new ce(this.Is,6E3,this);this.O("click",this.EG);this.O("keypress",this.FG);c&&this.R(this.ma["ytp-videowall-moving-thumbnail"],"load",this.HG)};
az=function(a){if(1E5<$y(a.B.app.ka)){var b=a.o.Cl();b&&a.update({moving_thumbnail:b})}};
bz=function(a,b){zq.call(this,a,"videowall-endscreen");this.ba=a;this.$=b;this.G=0;this.D=[];this.J=this.F=this.B=null;this.M=this.Z=!1;this.H=new nr(this);F(this,this.H);this.N=new ce(qa(J,this.element,"ytp-show-tiles"),0);F(this,this.N);var c=R(this.o).experiments.aa("video_wall_pagination");if(c){var d=new Q(["button",["ytp-button","ytp-endscreen-previous"],{"aria-label":O("YTP_PREVIOUS")}]);F(this,d);vh(d.element,'<svg height="100%" version="1.1" viewBox="0 0 32 32" width="100%"><path 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" /></svg>');
d.b(this.element);d.O("click",this.aB,this)}this.W=new pq(["div","ytp-endscreen-content"]);F(this,this.W);this.W.b(this.element);c&&(c=new Q(["button",["ytp-button","ytp-endscreen-next"],{"aria-label":O("YTP_NEXT")}]),F(this,c),vh(c.element,'<svg height="100%" version="1.1" viewBox="0 0 32 32" width="100%"><path 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" /></svg>'),c.b(this.element),c.O("click",this.$A,this));R(this.o).experiments.aa("video_wall_redesign")&&J(this.element,
"ytp-endscreen-redesign");this.C=new My(a);F(this,this.C);lr(this.o,this.C.element,4);this.fa();this.O("transitionend",this.AD)};
dz=function(a){return cz(a.o)&&a.Tk()&&!a.J};
ez=function(a){return N(a.H,function(a){return Ky(a)})};
fz=function(a,b,c){return 0==b&&a.B.length&&(b=c/bz.b,c/=bz.b,3<=b&&3<=c&&a.B[0].wb().tm||2<=b&&2<=c&&R(a.o).experiments.aa("video_wall_moving_thumbnails_first"))?2*bz.b:bz.b};
hz=function(a){var b=gz(a.$);b!=a.Z&&(a.Z=b,a.o.Pa("autonavvisibility"))};
jz=function(a){eq.call(this,a);Ui({});this.Ea="endscreen";this.logEvent="end";this.g=null;var b=R(a);iz(a)?this.g=new bz(this.b,this):b.ba?this.g=new mr(this.b):this.g=new zq(this.b);lr(this.b,this.g.element,4)};
lz=function(a){var b=a.getVideoData(),b=b&&b.sa,c=a.getPresentingPlayerType();return kz(R(a))&&2!=c&&3!=c&&!b};
nz=function(a){var b=a.b.getVideoData(),c=!iz(a.b)||!(!b.H||!b.H.length),b=py(b,"ypc_module");a=mz(a.b.app);return c&&!b&&!a};
iz=function(a){a=R(a);return a.Yc&&!a.ba};
gz=function(a){return a.g instanceof bz&&a.g.A&&dz(a.g)};
oz=function(a){var b=Math.max(1E3*(a.b.getVideoData().lengthSeconds-10),0),b=new bq(b,0x8000000000000,{id:"preload"}),c=new bq(0x8000000000000,0x8000000000000,{id:"load",priority:6});a.qb([b,c])};
pz=function(a){return lz(a)?new jz(a):null};
rz=function(a){return(a=qz[a.toString()])?a:"YTP_ERROR_LICENSE"};
sz=function(){};
tz=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};
uz=function(a,b){this.g=a||64;this.b=b||null};
zz=function(a,b,c,d){if(T(a,128))return a;var e=a.g,f=a.b,k=b.target;if(!T(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)T(a,256)?(e^=256)||(e=64):T(a,32)||T(a,2)||T(a,4)||(e=4,T(a,1)&&T(a,8)&&(e|=1),f=null);else if("playing"==b.type)e=8,f=null,T(a,32)&&(e|=32),d&&T(a,1)&&vz(c,k)&&(e|=1);else if("error"==b.type){a:{if(2==k.gb())b="progressive.net";
else if(3==k.gb())b="fmt.decode";else if(4==k.gb())b="fmt.unplayable";else{b=null;break a}c="mediaElem.1";.001>Math.random()&&(c+=";gpu."+tz());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)wz(a)&&vz(c,k)&&(e|=1);else if("seeked"==b.type)e&=-17;else if("seeking"==b.type)e|=16,0>=xz(k)&&(e|=1),e&=-3;else if("waiting"==b.type)T(a,2)||(e|=1);else if("timeupdate"==b.type)T(a,16)||T(a,4)||
(e=vz(c,k)?e|1:e&-2),1<k.b.readyState&&0<k.getCurrentTime()&&(e&=-65);else return a;return yz(a,e,f)};
vz=function(a,b){return a?Az(a,b.getCurrentTime(),Dt(),xz(b)):!1};
yz=function(a,b,c){return b==a.g&&c==a.b||b&128&&!c||b&2&&b&16?a:new uz(b,c)};
Bz=function(a,b){return yz(a,a.g|b)};
Cz=function(a,b){return yz(a,a.g&~b)};
Dz=function(a){return yz(a,(a.g|4)&-9)};
T=function(a,b){return!!(a.g&b)};
wz=function(a){return T(a,8)&&!T(a,2)};
Ez=function(a){return T(a,64)&&!T(a,8)&&!T(a,4)};
Fz=function(a){return T(a,1)&&!T(a,2)};
Gz=function(a){return T(a,128)?-1:T(a,2)?0:T(a,1)&&!T(a,32)?3:T(a,64)?-1:T(a,8)?1:T(a,4)?2:-1};
Hz=function(a,b,c){jk.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.qm,clientVersion:c.innertubeContextClientVersion,hl:c.sm,gl:c.rm}},videoId:a});this.G="https://"+(c.apiaryHost||"www.googleapis.com")+"/youtubei/"+c.innertubeApiVersion+"/player/live_state";this.g=new ce(w(this.B,this));F(this,this.g);this.B()?this.g.start(this.b):this.g.start(1E4)};
Iz=function(a){Q.call(this,["a","ytp-fresca-suggested-central-link",{href:"{{link_destination}}"},["div","ytp-fresca-suggested-promo-central",["div","ytp-fresca-suggested-header","{{suggested_header_central}}"],["div","ytp-fresca-suggested-central-image",{style:"{{image_style}}"},["div","ytp-fresca-suggested-image-badge","{{badge_content}}"]],["div","ytp-fresca-suggested-title","{{suggested_title}}"],["div","ytp-fresca-suggested-content","{{suggested_content}}"]]]);this.o=a;this.O("click",this.B,
this)};
Jz=function(a){Q.call(this,["div","ytp-fresca-suggested-promo-sidebar",["div","ytp-fresca-suggested-sidebar-title","{{suggested_sidebar_title}}"],["button",["ytp-button","ytp-fresca-suggested-sidebar-close-button"],"{{suggested_sidebar_close}}"],["div","ytp-fresca-suggested-sidebar-items","{{sidebar_items}}"]]);this.o=[];this.B=a;this.C=!1};
Nz=function(a,b){a.g("suggested_sidebar_title",b.g?O("YTP_FRESCA_SIDEBAR_PROMO_HEADER",{STREAMER_NAME:b.g}):"");var c=a.ma["ytp-fresca-suggested-sidebar-close-button"];vh(c,Bh());a.R(c,"click",a.YA);Pb(a.o);a.o=[];D(b.b,function(a,b){if(!(5<=b)&&a){var c=new Q(["a","ytp-fresca-suggested-sidebar-link",{href:"{{link_destination}}"},["div","ytp-fresca-suggested-sidebar",["div","ytp-fresca-suggested-image",{style:"{{image_style}}"},["div","ytp-fresca-suggested-image-badge","{{badge_content}}"]],["div",
"ytp-fresca-suggested-title","{{suggested_title}}"],["div","ytp-fresca-suggested-content","{{suggested_content}}"]]]),k="background-image:"+Kz(a),l=Lz(a);c.update({suggested_title:a.St,suggested_content:Mz(a),badge_content:l,image_style:k,link_destination:a.getVideoUrl()});k=c.ma["ytp-fresca-suggested-image-badge"];K(k,"ytp-fresca-suggested-image-badge-live",a.isLive());k.style.display=l?"":"none";c.O("click",this.jA,this);this.o.push(c)}},a);
a.g("sidebar_items",a.o)};
Oz=function(a){Q.call(this,["div","ytp-fresca-module",["div","ytp-fresca-slant",["div","ytp-fresca-slant-blur-image"],["div","ytp-fresca-slant-inner",["div","ytp-fresca-slant-overlay"],["div","ytp-fresca-slant-arrows"]]],["div","ytp-fresca-band-slate",["div","ytp-fresca-message",["h1","ytp-fresca-heading","{{heading}}"],["h2","ytp-fresca-byline","{{byline}}"],["h3","ytp-fresca-countdown","{{countdown}}"]]]]);this.H=a;this.D=0;this.o=null;this.F=-1;this.C=new Iz(a);F(this,this.C);this.B=new Jz(a);
F(this,this.B);this.C.fa();this.C.b(this.element);this.B.fa();this.B.b(this.element)};
Tz=function(a,b,c){if(!a.o||a.o.state!=b.state||a.o.startTime!=b.startTime||a.o.imageUrl!=b.imageUrl||a.o.messageText.join()!=b.messageText.join()||c)if(a.o=b,b=Pz(b),K(a.element,"ytp-fresca-final-day-easter-egg",b),c=!b&&a.o.imageUrl,b=a.ma["ytp-fresca-slant-blur-image"],c=c?"url("+c+")":"",a.element.style.backgroundImage=c,b.style.backgroundImage=c,b=Qz(a.o),a.update({heading:b[0]||"",byline:b[1]||"",countdown:b[2]||""}),a.G(!0),a.o.g&&!Rz(a.H))if(Sz(a.o.g)&&!Pz(a.o)){b=a.C;c=a.o.g.b[0];var d;d=
a.o.g;d=d.g?O("YTP_FRESCA_CENTRAL_PROMO_HEADER",{STREAMER_NAME:d.g}):"";var e="background-image:"+Kz(c);b.update({suggested_header_central:d,suggested_title:c.St,suggested_content:Mz(c),badge_content:Lz(c),link_destination:c.getVideoUrl(),image_style:e});K(b.ma["ytp-fresca-suggested-image-badge"],"ytp-fresca-suggested-image-badge-live",c.isLive());a.C.show();a.B.fa()}else b=a.o.g,!(0<b.b.length)||Sz(b)||Pz(a.o)||a.B.C?a.B.fa():(Nz(a.B,a.o.g),a.B.show()),a.C.fa();else a.C.fa(),a.B.fa()};
Uz=function(a){var b=Math.floor(C()/1E3);if(b>a)return"";a-=b;return 86400>a?Iy(a):259200>a?O("YTP_FRESCA_COUNTDOWN_HOURS",{HOURS:Math.floor(a/3600)}):O("YTP_FRESCA_COUNTDOWN_DAYS",{DAYS:Math.floor(a/86400)})};
Vz=function(a,b,c,d,e,f){v(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)};
Yz=function(a,b,c){ha(a)?(this.date=Wz(a,b||0,c||1),Xz(this,c||1)):ka(a)?(this.date=Wz(a.getFullYear(),a.getMonth(),a.getDate()),Xz(this,a.getDate())):(this.date=new Date(C()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Xz(this,a))};
Wz=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
Xz=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
Zz=function(){};
aA=function(a){if("number"==typeof a){var b=new Zz;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(":",Pa(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=$z(a);b.B=[c,c];b.b={bO:a,vo:a};b.g=[];return b}b=new Zz;b.A=a.id;b.o=-a.std_offset;b.B=a.names;b.b=a.names_ext;b.g=a.transitions;return b};
$z=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(Pa(Math.floor(a/60)%100,2),":",Pa(a%60,2));return b.join("")};
bA=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]};
fA=function(a,b){this.g=[];this.b=b||cA;"number"==typeof a?dA(this,a):eA(this,a)};
gA=function(a){return a.getHours?a.getHours():0};
eA=function(a,b){for(hA&&(b=b.replace(/\u200f/g,""));b;){for(var c=b,d=0;d<iA.length;++d){var e=b.match(iA[d]);if(e){e=e[0];b=b.substring(e.length);0==d&&("''"==e?e="'":(e=e.substring(1,e.length-1),e=e.replace(/\'\'/,"'")));a.g.push({text:e,type:d});break}}if(c===b)throw Error("Malformed pattern part: "+b);}};
dA=function(a,b){var c;if(4>b)c=a.b.di[b];else if(8>b)c=a.b.Ck[b-4];else if(12>b)c=a.b.$n[b-8],c=c.replace("{1}",a.b.di[b-8]),c=c.replace("{0}",a.b.Ck[b-8]);else{dA(a,10);return}eA(a,c)};
jA=function(a,b){var c;c=String(b);var d=a.b||cA;if(void 0!==d.Kw){for(var e=[],f=0;f<c.length;f++){var k=c.charCodeAt(f);e.push(48<=k&&57>=k?String.fromCharCode(d.Kw+k-48):c.charAt(f))}c=e.join("")}return c};
kA=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.");};
lA=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.bo[c]:a.b.co[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==k&&(c%=100),jA(a,Pa(c,k));case "M":a:switch(c=d.getMonth(),k){case 5:k=a.b.mo[c];break a;case 4:k=a.b.vk[c];break a;case 3:k=a.b.wk[c];break a;default:k=jA(a,Pa(c+1,k))}return k;case "k":return kA(e),jA(a,Pa(gA(e)||24,k));case "S":return jA(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,k)).substr(2)+(3<k?Pa(0,k-3):""));case "E":return c=
d.getDay(),4<=k?a.b.Ek[c]:a.b.xk[c];case "a":return kA(e),k=gA(e),a.b.rk[12<=k&&24>k?1:0];case "h":return kA(e),jA(a,Pa(gA(e)%12||12,k));case "K":return kA(e),jA(a,Pa(gA(e)%12,k));case "H":return kA(e),jA(a,Pa(gA(e),k));case "c":a:switch(c=d.getDay(),k){case 5:k=a.b.to[c];break a;case 4:k=a.b.Bk[c];break a;case 3:k=a.b.Ak[c];break a;default:k=jA(a,Pa(c,1))}return k;case "L":a:switch(c=d.getMonth(),k){case 5:k=a.b.so[c];break a;case 4:k=a.b.yk[c];break a;case 3:k=a.b.zk[c];break a;default:k=jA(a,Pa(c+
1,k))}return k;case "Q":return c=Math.floor(d.getMonth()/3),4>k?a.b.qo[c]:a.b.oo[c];case "d":return jA(a,Pa(d.getDate(),k));case "m":return kA(e),jA(a,Pa(e.getMinutes(),k));case "s":return kA(e),jA(a,Pa(e.getSeconds(),k));case "v":return k=f||aA(c.getTimezoneOffset()),k.A;case "V":return a=f||aA(c.getTimezoneOffset()),2>=k?a.A:0<bA(a,c)?p(a.b.xv)?a.b.xv:a.b.DST_GENERIC_LOCATION:p(a.b.vo)?a.b.vo:a.b.STD_GENERIC_LOCATION;case "w":return c=a.b.gi,e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),
b=a.b.fi||0,c=e.valueOf()+864E5*(((p(c)?c:3)-b+7)%7-((e.getDay()+6)%7-b+7)%7),jA(a,Pa(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,k));case "z":return a=f||aA(c.getTimezoneOffset()),4>k?a.B[0<bA(a,c)?2:0]:a.B[0<bA(a,c)?3:1];case "Z":return e=f||aA(c.getTimezoneOffset()),4>k?(k=-(e.o-bA(e,c)),a=[0>k?"-":"+"],k=Math.abs(k),a.push(Pa(Math.floor(k/60)%100,2),Pa(k%60,2)),k=a.join("")):k=jA(a,$z(e.o-bA(e,c))),k;default:return""}};
mA=function(a){this.B=a.thumbnailUrl?a.thumbnailUrl:null;this.b=a.startTimeSecs?(0,window.parseInt)(a.startTimeSecs,10):null;this.St=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};
Kz=function(a){return(a=a.B)?"url("+a+")":""};
Mz=function(a){if("COMPLETE"==a.g){var b=Math.floor(C()/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(C()/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")};
Lz=function(a){return"COMPLETE"==a.g&&a.A?Iy(a.A):a.isLive()?O("YTP_FRESCA_LIVE_BADGE"):null};
nA=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 mA(a[b]))};
Sz=function(a){return 1==a.b.length&&a.b[0].isLive()};
pA=function(a,b){this.state=-1;this.o=a;this.messageText=[];this.A=!1;b&&oA(this,b)};
oA=function(a,b){var c=b.lifeCycleState;c&&(a.state=qA[c]||-1);a.startTime=(0,window.parseInt)(b.scheduledStartTime,10);if(c=b.slateBackgroundUrl)a.imageUrl=c;if(c=b.streamStates)a.A=0<=eb(c,function(a){a=a.streamState;return!!a&&"STREAM_STATE_ACTIVE"==a});
if(c=b.broadcastId)a.broadcastId=c;a.g=new nA(b)};
Qz=function(a){return a.messageText.length?a.messageText:rA(a)};
rA=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(Pz(a))return["Dawn of","The final day","-24 hours remain-"];
if(a.startTime){var b=Mi("LOCAL_DATE_TIME_CONFIG"),c="";if(b){var c=a.startTime,d;d=b.formatLongDate;cA={vk:b.months,yk:b.months,wk:b.shortMonths,zk:b.shortMonths,di:b.dateFormats,Ek:b.weekdays,Bk:b.shortMonths,xk:b.shortWeekdays,Ak:b.shortWeekdays,zo:b.weekendRange,fi:b.firstDayOfWeek,gi:b.firstWeekCutoffDay,rk:b.amPms};c=(new fA(d)).format(new Date(1E3*c))}b=Math.floor(C()/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")]}};
Pz=function(a){if(!a.startTime)return!1;var b=a.startTime-Math.floor(C()/1E3);return kb(sA,a.state)&&86459>=b&&86400<=b};
tA=function(a){eq.call(this,a);this.logEvent=this.Ea="fresca";this.o=this.G=!1;this.A=this.g=this.B=null;Ui({YTP_FRESCA_STARTING_SOON_MESSAGE:"Diffusion dans quelques instants\u2026",YTP_FRESCA_EVENT_OVER_MESSAGE:"Cette diffusion en direct est termin\u00e9e.",YTP_FRESCA_COMPLETE_MESSAGE:"Merci de votre attention\u00a0!",YTP_FRESCA_STAND_BY_MESSAGE:"Merci de patienter.",YTP_FRESCA_EVENT_VIDEO_INTERRUPTED:"La vid\u00e9o a \u00e9t\u00e9 interrompue.",YTP_FRESCA_STREAMER_STOPPED_STREAMING:"La diffusion a \u00e9t\u00e9 interrompue.",
YTP_FRESCA_EVENT_OFFLINE:"D\u00e9connect\u00e9",YTP_FRESCA_EVENT_OFFLINE_PREAMBLE:"Ce flux est",YTP_FRESCA_EVENT_STARTS_IN:"Regardez la diffusion en direct\u00a0!",YTP_FRESCA_EVENT_STARTING_SOON:"La diffusion en direct va bient\u00f4t commencer.",YTP_FRESCA_EVENT_HASNT_STARTED:"La diffusion en direct planifi\u00e9e n'a pas encore commenc\u00e9.",YTP_FRESCA_CENTRAL_PROMO_HEADER:"$STREAMER_NAME diffuse une \u00e9mission en direct en ce moment\u00a0!",YTP_FRESCA_SIDEBAR_PROMO_HEADER:"Autres diffusions en direct de $STREAMER_NAME.",
YTP_FRESCA_LIVE_BADGE:"En direct",YTP_FRESCA_LIVE_DAYS_AGO:"Diffus\u00e9 il y a $DAYS\u00a0jours",YTP_FRESCA_LIVE_HOURS_AGO:"Diffus\u00e9 il y a $HOURS\u00a0heures",YTP_FRESCA_LIVE_RECENTLY:"Diffus\u00e9 r\u00e9cemment",YTP_FRESCA_LIVE_IN_DAYS:"En direct dans $DAYS\u00a0jours",YTP_FRESCA_LIVE_IN_HOURS:"En direct dans $HOURS\u00a0heures",YTP_FRESCA_VIEWERS_WATCHING_NOW:"$VIEWER_COUNT\u00a0visionnages en cours",YTP_FRESCA_NO_VIEWERS_STREAMING_NOW:"En cours de diffusion",YTP_FRESCA_COUNTDOWN_DAYS:"$DAYS\u00a0jours",
YTP_FRESCA_COUNTDOWN_HOURS:"$HOURS\u00a0heures"});this.C=!1;this.H="leanback"!=R(this.b).wa};
vA=function(a,b){if(!a.H)return!1;var c=!!Qz(b).length||!!b.imageUrl;if(!a.o&&6>b.state)return c;if(a.b.app.g.J&&(b.imageUrl||b.messageText.length))return!0;var d=uA(a.b),d=Fz(d)||T(d,2),e;if(e=!a.g.b())(e=!a.o)||(e=!(uA(a.b).Va()&&!qy(a.b.getVideoData())&&!a.b.app.g.J)&&d);return e||a.G&&a.b.app.g.J||!a.o&&6<b.state?c:!1};
xA=function(a,b){var c=vA(a,b);if(!a.o)switch(b.state){case 6:b.b()&&(a.o=!0,iq(a));break;case 8:case 7:a.o=!0}c&&Tz(a.B,b);c&&!a.loaded?(a.load(),wA(a.b)):!c&&a.loaded&&(a.unload(),wA(a.b))};
yA=function(a){return py(a.getVideoData(),"fresca_module")?new tA(a):null};
zA=function(a,b){if(!a.g||!a.g.Ia(b)){a.g=b;var c=a.b,d;d={hasActiveStream:b.b(),imageUrl:b.imageUrl,messageText:Qz(b),startTime:b.startTime,state:b.state};wA(c,d)}};
AA=function(){if(!tf)return!1;try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
DA=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");if(BA){var b=CA();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
EA=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");};
FA=function(a,b){if("undefined"!=typeof a.selectSingleNode){var c=jf(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(window.document.implementation.hasFeature("XPath","3.0")){var c=jf(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,window.XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null};
CA=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};
GA=function(a){this.g=a||window;this.b=[]};
HA=function(a,b,c){c=w(c,a.g);b=jm(b,"mouseleave",c);a.b.push(b);return b};
IA=function(a,b,c,d){c=w(c,d||a.g);b=lm(b,c);a.b.push(b)};
JA=function(a){im(a.b);a.b.length=0};
KA=function(a,b,c){E.call(this);this.qa=null;this.o=!1;this.B=a;this.A=c;this.b=b||window;this.g=w(this.Qx,this)};
LA=function(a){a=a.b;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
MA=function(a){a=a.b;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
PA=function(a){a=na(a);delete NA[a];dc(NA)&&OA&&OA.stop()};
RA=function(){OA||(OA=new ce(function(){QA()},20));
var a=OA;a.isActive()||a.start()};
QA=function(){var a=C();Qb(NA,function(b){SA(b,a)});
dc(NA)||RA()};
TA=function(){I.call(this);this.b=0;this.endTime=this.startTime=null};
UA=function(a,b,c,d){TA.call(this);if(!ea(a)||!ea(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.o=a;this.F=b;this.duration=c;this.C=d;this.g=[];this.progress=this.D=0;this.B=null};
SA=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;VA(a,a.progress);1==a.progress?(a.b=0,PA(a),a.qc(),a.rh()):a.Va()&&a.Im()};
VA=function(a,b){ia(a.C)&&(b=a.C(b));a.g=Array(a.o.length);for(var c=0;c<a.o.length;c++)a.g[c]=(a.F[c]-a.o[c])*b+a.o[c]};
WA=function(a,b){mc.call(this,a);this.x=b.g[0];this.y=b.g[1];this.duration=b.duration;this.progress=b.progress;this.fps=b.D;this.state=b.b};
XA=function(a){return Math.pow(a,3)};
YA=function(a){return 3*a*a-2*a*a*a};
$A=function(a){this.b="number"==typeof a?0<a?1:0>a?-1:null:null==a?null:a?-1:1};
aB=function(a,b){var c=a.g(b,void 0);return-1==(0==c?a.b:c)?"rtl":"ltr"};
bB=function(){this.b=[];this.g=dq};
cB=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};
eB=function(a){return a.b.slice(dB(a,0x7ffffffffffff),a.b.length)};
dB=function(a,b){var c=Bb(a.b,function(a){return b-a.start||1});
return 0>c?-(c+1):c};
fB=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};
gB=function(a,b,c,d){E.call(this);this.o=window.NaN;this.D=!1;this.C=null;this.F=this.G=this.A=!1;this.N=a;this.M=b;this.H=c;this.J=d;this.K=new ce(this.be,250,this);F(this,this.K);this.B=new ce(this.be,0,this);F(this,this.B);this.g=[];this.b=new bB};
aaa=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};
baa=function(a,b){var c=[];if(!b.length)return c;b.sort(dq);for(var d=0;d<b.length;d++){var e=b[d];a.g.splice(a.g.indexOf(e),1);c.push([2,e])}return c};
hB=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};
iB=function(a){return ea(a)&&a.length?a[0]:a};
jB=function(a){var b=/.+/;return v(a)&&null!=b&&null!=a&&a.match(b)?a:""};
kB=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};
lB=function(a){return v(a)?a:""};
mB=function(a,b,c){for(var d in b)if(b[d]==a)return a;return c};
nB=function(a,b){return"true"==a||"false"==a?"true"==a:b};
oB=function(a,b){return v(a)?(0,window.parseFloat)(a):b};
pB=function(a,b,c,d,e){a=(0,window.parseFloat)(a);if(null!=a&&!(0,window.isNaN)(a)){if(d)return Ye(a,b,c);if(a>=b&&a<=c)return a}return e};
caa=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;D(a,function(a){a=(0,window.parseFloat)(a);0>a&&(c=-c);b=60*b+Math.abs(a)});
return c*b};
qB=function(a,b){if(null==a)return null;if(fa(a)){var c=[];D(a,function(a){(a=b(a))&&c.push(a)});
return c}var d=b(a);return d?[d]:[]};
daa=function(a){function b(a){return null!=a&&!(0,window.isNaN)(a)}
return(a=a?new gg((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};
eaa=function(a){function b(a){return he(a.split(/ +/),function(a){return""!=a})}
return null==a?[]:b(a)};
faa=function(a,b,c,d){this.value=a;this.target=b;this.showLinkIcon=c;this.uj=d};
rB=function(a){if(!a)return null;var b=lB(a.value);if(!b)return null;var c=mB(a.target,gaa,"current");return null==c?null:new faa(b,c,nB(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)};
sB=function(a){return a.value?a.value:null};
uB=function(a){var b;(b=a)&&!(b=1<a.length?"/"==a.charAt(0)&&"/"!=a.charAt(1):"/"==a)&&(b=tB(a),b="com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1]);return b?-1==a.indexOf("/redirect?"):!1};
tB=function(a){a=a.replace(/^(https?:)?\/\//,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()};
haa=function(a){a=sB(a);if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!uB(a))||(b=Jg(Ig(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=Kj(a);if(!b||!b.v)return null;if(b.t)return hB(b.t);a=a.split("#",2);return!a||2>a.length?null:(a=Ij(a[1]))&&a.t?hB(a.t):-1};
vB=function(a){a=sB(a);a=a.replace(/https?:\/\//g,"");return uB(a)?(a=Kj(a))&&a.v?a.v:null:null};
wB=function(a,b,c,d){(a=sB(a))?uB(a)?d=Nj(a,{feature:"iv",src_vid:c,annotation_id:b}):(a?(b=tB(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=qa(iaa,d.pageId,d.Ib),a=new M(a),dh(a,d(a.o)),d=a.toString()):d=a):d=null;return d};
iaa=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};
xB=function(a,b){return b?b:uB(a)?"current":"new"};
yB=function(a,b){return a.replace(/(\[|%5B)([a-zA-Z0-9_]+)(\]|%5D)/g,function(a,d,e){try{var f=gc(b,e),f=f.toString();if(!A(B(f)))return(0,window.encodeURIComponent)(f).replace(/%2C/g,",")}catch(k){}return a})};
AB=function(a){this.g=a;this.b=0;this.B=window.NaN;this.o=0;this.na=[];this.A=zB(this.g);this.C=this.D=0};
BB=function(a){a.A.startTime=a.o;a.A.endTime=a.b;a.na.length&&db(a.na).isEmpty()?a.na[a.na.length-1]=a.A:a.na.length&&a.A.isEmpty()||a.na.push(a.A);a.D+=a.b-a.o;a.A=zB(a.g);a.o=a.b};
CB=function(a){return a.D+a.g.g()-a.o};
DB=function(a){a.na.length&&a.b==a.o||BB(a);var b=a.na;a.na=[];return b};
EB=function(a,b,c){c-=a.B;return b==a.b&&.5<c};
FB=function(a,b){this.b=b;this.o=!1;this.videoData=a};
GB=function(a,b,c){FB.call(this,b,c);this.A=a};
HB=function(a){E.call(this);this.b=a;this.g={};this.M=window.NaN;this.C=new ce(this.RB,3E4,this);F(this,this.C);this.D=new ce(this.zj,100,this);F(this,this.D);this.o="N";this.A=0;this.N=window.NaN;this.S=0;this.H=this.W="";this.Z=-1;this.G=this.J=0;this.K=this.F=!1;this.$=[];this.B=null;(a=window.navigator.getBattery?window.navigator.getBattery():null)&&a.then&&a.then(w(function(a){this.B=a},this))};
IB=function(a,b,c,d){var e=a.g[c];e||(e=[],a.g[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
JB=function(a){var b={event:"streamingstats"};if(a.b.videoData.g){b.fmt=wr(a.b.videoData.g);var c=a.b.videoData.B;c&&wr(c)!=b.fmt&&(b.afmt=wr(c))}b.cpn=a.b.videoData.clientPlaybackNonce;b.ei=a.b.videoData.eventId;b.el=a.b.b.wa;b.docid=a.b.videoData.videoId;b.ns=a.b.b.ca;b.fexp=a.b.b.experiments.experimentIds.toString();b.cl=a.b.b.pa;a.b.b.adFormat&&(b.adformat=a.b.b.adFormat);a.b.videoData.sa&&(b.live=a.b.videoData.oe?"dvr":"live");b.html5="1";return b};
KB=function(a){if(a.b.b.experiments.aa("html5_flush_long_qoe")){var b=0,c;for(c in a.g)b+=c.length+$e(a.g[c],function(a,b){return a+b.length},0);
1500<b&&(new ce(a.vg,0,a)).start()}};
LB=function(a,b,c,d){var e=a.b.g();c=[c,e.toFixed(3)];d&&c.push(d);IB(a,b,"error",c)};
MB=function(a,b){var c=a.g.cat||[];c.push(b);a.g.cat=c};
NB=function(a,b,c,d){var e=a.g.ctmp||[],f=-1!=a.$.indexOf(b);f||a.$.push(b);d&&f||(e.push(b+":"+c),a.g.ctmp=e)};
PB=function(a,b,c,d){this.Ha=b;this.segments=[];this.experimentIds=[];this.H=this.Ca=this.G=this.ea=this.Aa=this.autoplay=this.autonav=!1;this.Z="yt";this.J=this.g=this.B=null;this.V=!1;this.A="watchtime"==c;this.S="playback"==c;this.Ba="delayplay"==c;this.D="atr"==c;this.ya="engage"==c;this.ba=!1;this.$=this.D?"/api/stats/"+c:"//"+b.je+"/api/stats/"+c;d&&(this.G=d.fs,d.rtn&&(this.g=d.rtn),this.A?(this.Nb=d.state,0<d.rti&&(this.B=d.rti)):(this.Ga=d.mos,this.Qa=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.M);this.bb=b.ea;this.ib=ic(b.g);this.ua=b.$;this.jb=b.wa;this.experimentIds=b.experiments.experimentIds;this.da=b.ka;this.Z=b.ca;this.region=b.region;this.Ob=b.pa?b.pa.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.Wa=b.ve();this.ba=b.experiments.g;this.C=a.oauthToken||this.C;this.autoplay=OB(this.Ha,a,this.G);this.autonav=a.ej||this.autonav;this.J=a.Zj;this.clientPlaybackNonce=
a.clientPlaybackNonce;this.N=a.vssCredentialsToken;this.la=a.sn;this.F=a.Xj;this.ca=a.Bf;a.g&&(this.pa=wr(a.g),a.B&&wr(a.B)!=this.pa&&(this.M=wr(a.B)));this.H=a.Mg;this.tb=a.Yj;a.sa&&(this.Ka=a.oe?"dvr":"live");this.Bb=a.Dn;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.ib||a.playlistId;this.Ya=a.da;this.ka=a.ea;this.Zb=a.If;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.Cb=a.rE;this.referrer=
a.referrer;this.ha=a.Wa||a.Hf;this.searchQuery=a.searchQuery};
QB=function(a,b){if(a.D)return null;var c=a.C&&Pj(),d=a.ba&&!!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,qc:b}};
jaa=function(a,b,c,d){b.cmt=b.len;b.lact="0";d=d();d=d.toFixed(3);b.rt=(1*d).toString();a=Tg(a,b);c?Vj(a,c):Vp(a)};
SB=function(a){var b={ns:a.Z,el:a.jb,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.b(a.F),plid:a.playbackId,ei:a.eventId,fmt:a.pa,fs:a.G?"1":"0",rt:a.b(a.Ta),of:a.Cb,adformat:a.adFormat,content_v:a.bb,euri:a.ua,subscribed:a.subscribed,lact:a.Wa,live:a.Ka,cl:a.Ob,mos:a.Ga,q:a.searchQuery,osid:a.osid,state:a.Nb,vm:a.videoMetadata,volume:a.Qa};ra(b,a.ib);a.autonav&&(b.autonav="1");if(a.Ha.experiments.aa("legacy_autoplay_flag"))a.autoplay&&(b.autoplay="1");else if(a.autoplay||
a.H)b.autoplay="1";a.ea&&(b["final"]="1");a.H&&(b.splay="1");a.ca&&(b.delay=a.ca);a.da&&(b.hl=a.da);a.region&&(b.cr=a.region);p(a.userAge)&&a.userGender&&(b.uga=a.userGender+a.userAge);p(a.W)&&(b.len=a.b(a.W));!a.A&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.g&&(b.rtn=a.b(a.g));a.ha&&(b.feature=a.ha);a.playlistId&&(b.list=a.playlistId);a.Ya&&(b.ctrl=a.Ya);a.ka&&(b.ytr=a.ka);a.Zb&&(b.ssrt="1");a.M&&(b.afmt=a.M);a.A?(b.idpj=a.tb,b.ldpj=a.Bb,null!=a.B&&(b.rti=a.b(a.B))):p(a.adType)&&
(b.at=a.adType);(a.S||a.Ba)&&a.J&&(b.tst=a.J);a.A&&(b.st=RB(a,N(a.segments,function(a){return a.startTime})),b.et=RB(a,N(a.segments,function(a){return a.endTime})));
Sh(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=RB(a,N(a.segments,function(a){return a.visibilityState})));
Sh(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=RB(a,N(a.segments,function(a){return a.playbackRate})));
Sh(a.segments,function(a){return"-"!=a.Wk})&&(b.cc=N(a.segments,function(a){return a.Wk}).join(","));
if(Sh(a.segments,function(a){return!!a.Sk})){var c="au";
a.S&&(c="au_d");b[c]=N(a.segments,function(a){return a.Sk}).join(",")}Pj()&&a.N&&(b.ctt=a.N,b.cttype=a.la);
a.ya&&(b.etype=p(a.o)?a.o:0);return b};
RB=function(a,b){return N(b,a.b).join(",")};
TB=function(a){E.call(this);this.b=a;this.g=new HB(a);F(this,this.g);this.o=new AB(a);this.C="paused";this.D=window.NaN;this.G=[10,10,10,40];this.H=this.F=0;this.M=this.N=this.K=this.J=this.A=!1;this.B=window.NaN;this.S=new GB(this.o,this.b.videoData,this.b.b)};
VB=function(a,b,c){var d=UB(a.b);c=(0,window.isNaN)(c)?d:c;c=Math.ceil(c);var e=a.G[a.F];a.F+1<a.G.length&&a.F++;c+=e;d=1E3*(c-d);a.D=Oi(w(a.tB,a,c,b),d);return c};
XB=function(a,b){var c=WB(a.b);ra(c,{state:a.C});c=new PB(a.b.videoData,a.b.b,b,c);c.F=a.b.g();a.b.videoData.sa||(c.W=a.b.B());c.Ta=UB(a.b);c.segments=[zB(a.b)];return c};
YB=function(a,b){var c=XB(a,"watchtime");c.segments=b;c.F=a.o.b;return c};
ZB=function(a){a.o.update();return YB(a,DB(a.o))};
bC=function(a){a.b.videoData.remarketingUrl&&!a.N&&($B(a,a.b.videoData.remarketingUrl),a.N=!0);a.b.videoData.ppvRemarketingUrl&&!a.M&&($B(a,a.b.videoData.ppvRemarketingUrl),a.M=!0);aC(a)};
dC=function(a,b){if(!a.isDisposed()){T(b.state,2)?(a.C="paused",0<cC(b,2)&&a.A&&ZB(a).send()):T(b.state,8)?(a.C="playing",a.A&&(0,window.isNaN)(a.D)&&VB(a,!1)):a.C="paused";var c=a.g,d=b.state,e=UB(c.b),f;f=b.state;if(T(f,128))f="ER";else if(T(f,16)||T(f,32))f="S";else{var k=kaa[Gz(f)];"B"==k&&T(f,4)&&(k="PB");f=k}if(!(f==c.o||"N"==f&&c.b.b.experiments.aa("html5_dedupe_unstarted_qoe"))){k=f;if(!(e<c.A)){if("PL"==c.o)c.G+=e-c.A;else if("B"==c.o&&c.F&&(c.F=!1,c.J+=e-c.A,!c.K&&10<=c.J&&180>=c.G)){c.b.D();
if(!c.isDisposed()){var l=JB(c);l.qoealert="1";l=Tg(c.b.b.he,l);Vp(l)}c.K=!0}"B"!=k||"PL"!=c.o&&"PB"!=c.o||(c.F=!0);c.A=e}!c.b.b.experiments.o||"B"!=f&&"PB"!=f?IB(c,e,"cmt",[c.b.g().toFixed(3)]):c.zj(e);IB(c,e,"vps",[f]);c.o=f}T(d,128)&&LB(c,e,d.b.errorCode,d.b.errorDetail);(T(d,2)||T(d,128))&&c.vg(e);KB(c);a.B&&T(b.state,128)&&(a.Dj("error-100"),Qi(a.B))}};
eC=function(a){a.B=Pi(w(a.Dj,a,"heartbeat"),3E4)};
aC=function(a){a.b.videoData.C.eventLabel=a.b.b.wa;a.b.videoData.C.playerStyle=a.b.b.b;a.b.videoData.la&&(a.b.videoData.C.feature="pyv");a.b.videoData.C.vid=a.b.videoData.videoId;a.b.videoData.C.isAd=!("adunit"!=a.b.b.wa&&!a.b.videoData.la)};
$B=function(a,b,c){a.b.b.experiments.g&&a.b.videoData.visitorData&&Oj(b)?Vj(b,{qc:c,headers:{"X-Goog-Visitor-Id":a.b.videoData.visitorData}}):Vp(b,c)};
laa=function(a){this.X=a;this.b={}};
iC=function(a,b,c,d){if(b){var e=fC(a,b);a.b[b]=e["p-time"];e["iv-event"]=e.link||e["l-class"]||e["link-id"]?2:7;b=tb(c||[]);30==e["a-type"]&&(c=gC(a,e["a-id"],"cta_annotation_shown"))&&b.push(c);hC(a,e,maa(b,d))}};
jC=function(a,b,c,d,e,f){if(b){var k=fC(a,b);k["iv-event"]=3;k["i-time"]=a.b[b]||"";lc(k,d||{});b=tb(e||[]);30==k["a-type"]&&(d=gC(a,k["a-id"],"cta_annotation_clicked"))&&b.push(d);hC(a,k,b,c,f)}};
kC=function(a,b){if(b){var c=fC(a,b);c["iv-event"]=4;c["i-time"]=a.b[b]||"";var d=[];if(30==c["a-type"]){var e=gC(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}hC(a,c,d)}};
maa=function(a,b){return b?N(a,qa(function(a,b){return yB(b,a)},b||{})):a};
gC=function(a,b,c){a=a.X.getVideoData();if(a.tb){if((c=a.tb[c])&&Sx.test(c))return a=xa("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),c}else if(a.ua)return Mj(a.ua,{label:c,value:"a_id="+b});return""};
hC=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)}D(c||[],function(a){f++;
Vp(a,k)});
e&&(f++,0!=e&&a.X.Ng(e,k));lC(a,b,k)};
fC=function(a,b){var c={};if(b){var d=new gh(b);D(d.Oa(),function(a){c[a]=(0,window.escape)(d.get(a,""))})}c["p-time"]=a.X.getCurrentTime().toFixed(2);
c.ps=R(a.X).b;return c};
mC=function(a,b,c,d){d=fC(a,d);d["iv-event"]=b;d["a-id"]||(d["a-id"]="card:drawer");d["a-type"]=51;hC(a,d,c)};
nC=function(a,b,c,d){c&&(c=fC(a,c),c["iv-event"]=b,hC(a,c,d))};
lC=function(a,b,c){oC(a.X,"iv",b,c)};
pC=function(a,b){this.ba=a;this.context=b;this.tn=!1;this.H=0};
qC=function(a,b,c,d,e,f){b=new bq(b,c,{id:d});b.b="iv-module";e&&(b.g||(b.g=new ng)).subscribe("onEnter",e,a);f&&(b.g||(b.g=new ng)).subscribe("onExit",f,a);a.context.g.qb([b])};
naa=function(a){return C()-a.H};
oaa=function(a,b,c,d,e,f,k){var l=w(function(){k&&this.context.g.pauseVideo();var a=Kj(b),d=null;"ei"in a&&(d={ei:a.ei},b=Zg(b,"ei"));Ry(b,d);Sy(b,"current"==c?"_top":void 0)},a);
"new"==c&&(l(),l=null);var m={};m.interval=naa(a);jC(a.context.logger,d,l,m,e,f)};
rC=function(a,b){var c=["div","ytp-cards-teaser",["div","ytp-cards-teaser-box"],["div","ytp-cards-teaser-text",["span","ytp-cards-teaser-shop-badge",O("YTP_SPONSORED_PRODUCT_BADGE")],["span","ytp-cards-teaser-label","{{text}}"]]];Q.call(this,c);this.X=a;this.H=new hr(this,250,!1,250);F(this,this.H);this.M=b;this.o=null;this.K=new ce(this.oC,300,this);this.J=new ce(this.mC,2E3,this);this.N=new $A(null);this.D=[];this.C=this.B=this.G=this.F=null;this.R(b.element,"mouseover",this.Au);this.R(b.element,
"mouseout",this.Fe);this.R(a,"cardsteasershow",this.tD);this.R(a,"cardsteaserhide",this.$h);this.R(a,"cardstatechange",this.Ls);this.R(a,"presentingplayerstatechange",this.Ls);this.O("click",this.vH);this.O("mouseenter",this.tH);this.O("mouseleave",this.uH)};
paa=function(a){if(!a||0==a.length)return"";var b=["ul","ytp-cards-hover-card-metadata"];D(a,function(a){b.push(["li","",a])});
return b};
qaa=function(a,b){if(b){var c=b.bl?"":["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,paa(b.Wd)]];a.B=new Q(c);a.B.b(a.element);c=of("ytp-cards-hover-card",void 0);a.R(c,"click",qa(a.fr,b));a.R(c,"mouseenter",a.Uy);a.R(c,"mouseleave",a.Vy)}};
raa=function(a,b){a.g("text",b.teaserText);a.element.setAttribute("dir",aB(a.N,b.teaserText));a.H.show();qaa(a,b.Vi);b.Vi&&b.Vi.bl&&J(a.element,"ytp-cards-combined-teaser");a.F=new ce(function(){J(this.X.xa(),"ytp-cards-teaser-shown")},0,a);
a.F.start();sC(a.M,!1);a.o=new ce(a.$h,580+b.durationMs,a);a.o.start();b.Vw&&J(a.element,"ytp-cards-auto-open-hover-card");b.fA&&(new ce(function(){J(this.X.xa(),"ytp-cards-button-teaser-merge")},0,a)).start();
a.D.push(a.O("mouseover",a.Au,a));a.D.push(a.O("mouseout",a.Fe,a))};
tC=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.Sa=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.b={lq:a.impression,click:a.click,close:a.close,UE:a.teaser_impression,cn:a.teaser_click}};
uC=function(a,b,c){tC.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.Wd=b.meta_info;this.url=rB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
vC=function(a,b,c){tC.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=rB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url});this.g=null;b.signin_url&&(this.g=rB({target:"current",value:b.signin_url}));this.D=b.signin_title||null;this.C=b.signin_message||null};
wC=function(a,b,c){vC.call(this,a,b,c);this.F=b.ypc_flow_type;this.A=b.innertube_request_params};
xC=function(a,b){return saa&&a.dataset?b in a.dataset?a.dataset[b]:null:a.getAttribute("data-"+String(b).replace(/([A-Z])/g,"-$1").toLowerCase())};
yC=function(a,b,c){this.b=a;this.g=b;this.A=c;this.o=new $A(null)};
taa=function(a,b){var c=["ol",""];D(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",zC(a,"h2","",b.title),c]],d=new Q(d);D(nf("iv-click-target",d.element),function(a){this.b.b.O(a,"click",w(this.qC,this,b))},a);
return d};
uaa=function(a,b){var c=["ul","",{role:"radiogroup"}];D(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"],zC(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",zC(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:sB(b.o)},["span",["iv-button-content"],O("YTP_SIGN_IN")]]]));e=new Q(["div",e].concat(d));d=e.element;AC(b,d);IA(a.b.b,d,qa(a.PC,b),
a);D(nf("iv-card-poll-choice-input",d),function(a){this.b.b.O(a,"focus",qa(this.qr,!0));this.b.b.O(a,"blur",qa(this.qr,!1))},a);
b.o&&(d=of("iv-card-sign-in-button",d),a.g(d,b.o,b.id,b.Sa,b.b.click,5));return e};
FC=function(a,b,c,d){var e=BC(a,b.url,b.id),f=b.displayDomain?["div","iv-card-image-text",b.displayDomain]:"",k=CC(a,b),l=["iv-card"];b.g&&l.push("iv-card-unavailable");e=["div",l,["a","iv-click-target",{href:e},DC(b.imageUrl,f),["div","iv-card-content",zC(a,"h2",void 0,b.title),k]]];b.g&&(e=e.concat([["div",["iv-card-sign-in"],zC(a,"h2",void 0,b.D||""),["p","",b.C],["a",["iv-card-sign-in-button","iv-button"],{href:sB(b.g)},zC(a,"span","iv-button-content",O("YTP_SIGN_IN"))]]]));e=new Q(e);EC(a,e,
b,c,d);return e};
HC=function(a,b,c){var d=BC(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},DC(b.D,e?["div","iv-card-image-text",e,b.priceText]:""),["div","iv-card-content",["h2","iv-card-primary-link",b.title],GC(a,b)]]];c=new Q(c);EC(a,c,b);return c};
IC=function(a,b){return b.customMessage?zC(a,"div","iv-card-message",b.customMessage):""};
DC=function(a,b){var c=["div","iv-card-image",{style:"background-image: url("+a+");"}];b&&c.push(b);return c};
GC=function(a,b){if(!b.Wd||0==b.Wd.length)return"";var c=["ul","iv-card-meta-info"];D(b.Wd,function(a){c.push(zC(this,"li","",a))},a);
return c};
zC=function(a,b,c,d){c?v(c)?c={"class":c}:ea(c)&&(c={"class":c.join(" ")}):c={};c.dir=aB(a.o,d);return[b,c,d]};
CC=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=aB(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};
AC=function(a,b){var c=0;D(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=of(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=of("iv-card-poll-choice-percent",f);Pf(l,O("YTP_DRAWER_POLL_PERCENT",{PERCENT:k}));f=of("iv-card-poll-result-bar",f);Eq(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)};
JC=function(a,b,c,d){d?(c&&a.b.videoData.sa||a.b.g.pauseVideo(),a.b.g.La()&&Xy(a.b.g),jC(a.b.logger,b.Sa,d,void 0,b.b.click,5)):a.A(b.url,b.id,b.Sa,b.b.click,5)};
BC=function(a,b,c){return b?wB(b,c,a.b.videoData.videoId,a.b.o):null};
EC=function(a,b,c,d,e){c.g&&KC(a,nf("iv-card-sign-in-button",b.element),c,c.g,e);KC(a,nf("iv-click-target",b.element),c,c.url,d)};
KC=function(a,b,c,d,e){D(b,function(a){if(e){var b=w(function(a){a.stopPropagation();a.preventDefault();e();return!1},this);
this.b.b.O(a,"click",b)}else this.g(a,d,c.id,c.Sa,c.b.click,5)},a)};
LC=function(a,b,c){tC.call(this,a,b,c);this.title=b.title;this.chapters=b.chapters};
MC=function(a,b,c){tC.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.Wd=b.meta_info;this.url=rB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
NC=function(a,b,c){tC.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=rB({target:"current",value:b.signin_url}));this.C=b.hasOwnProperty("xsrf_token")?b.xsrf_token:null};
OC=function(a,b,c){vC.call(this,a,b,c);this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new vaa(a[b]))};
vaa=function(a){this.merchant=B(a.merchant);this.price=B(a.price)};
PC=function(a,b,c){vC.call(this,a,b,c);this.F=b.ypc_item_type;this.A=b.ypc_item_id;this.G=b.ypc_flow_type};
QC=function(a,b,c){tC.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.Wd=b.meta_info;this.A=!!b.is_live_now;this.url=rB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
RC=function(a,b,c){tC.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.Wd=b.meta_info;this.A=!!b.is_paygated;this.C=!!b.user_has_entitlement;this.url=rB({target:b.target||"new",value:b.url})};
TC=function(a,b,c){pC.call(this,b,c);this.X=a;this.gj=this.S=this.B=this.M=this.V=!1;this.W=null;this.Vk=new ce(r,c.o.useTabletControls?4E3:3E3);this.N=new ce(r);this.g=new yC(c,w(this.Bg,this),w(this.jj,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 Q(a);this.A=this.F.element;this.K=
new hr(this.F,330,SC(this,"drawer_peek"));SC(this,"drawer_peek")&&J(this.A,"ytp-drawer-peek");this.Z=of("iv-drawer-header",this.A);this.$c=of("iv-drawer-content",this.A);a=["iv-drawer-teaser"];this.g.b.o.experiments.bx&&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.$=(new Q(a)).element;of("iv-drawer-teaser-text",this.$);this.o=
[];this.C=this.G=this.b=null;this.D=[];qC(this,0,1E3*c.videoData.lengthSeconds,"",this.Mw,this.tx)};
zaa=function(a,b){var c=b&&b.data&&b.data.card_type;if(c&&UC[c]){c=new UC[c](b.id,b.data,b.Sa);a.V||(ge(a.ia(),["html5-stop-propagation","iv-drawer-manager"]),lr(a.X,a.A,5),waa(a),a.V=!0);VC(a,c.id);var d=xaa(a,c);if(d){var e={Ua:c,Xk:d.element,Dq:!1,kj:!1},f=yaa(a,e);wb(a.o,f,0,e);d.b(a.$c,f);a.zi();c.B?qC(a,c.startMs,0x8000000000000,c.id,qa(a.HE,e)):(d=1E3*a.context.g.getCurrentTime(),5E3>d&&d>c.startMs&&a.Xm(e,!1),qC(a,c.startMs,c.startMs+1,c.id,qa(a.Xm,e,!1)),WC(a))}}};
Aaa=function(a,b){b.data.autoOpenMs&&qC(a,b.data.autoOpenMs,0x8000000000000,"",a.JG);b.data.autoCloseMs&&qC(a,b.data.autoCloseMs,0x8000000000000,"",a.Ii)};
VC=function(a,b){var c=Baa(a,b);c&&(c==a.b&&(a.b=null),a.X.wt(c.Ua.id),Ff(c.Xk),qb(a.o,c),a.zi(),WC(a))};
YC=function(a,b,c,d){if(!a.B){SC(a,"drawer_peek")&&ie(a.A,"ytp-drawer-peek");a.K.show();a.G=new ce(function(){J(this.context.g.xa(),"ytp-iv-drawer-open")},0,a);
a.G.start();a.B=!0;a.H=C();mC(a.context.logger,7,void 0,d&&d.Ua?d.Ua.Sa:void 0);var e={TRIGGER_TYPE:b};D(a.o,function(a){a.kj||(a.kj=!0,iC(this.context.logger,a.Ua.Sa,a.Ua.b.lq,e))},a);
XC(a.X);c&&(a.C=new ce(function(){var a;a:{var b=window.document;try{a=b&&b.activeElement;break a}catch(c){}a=null}this.J=a;this.Z.focus()},330,a),a.C.start())}};
SC=function(a,b){return a.context.o.experiments.aa(b)};
waa=function(a){var b=of("iv-drawer-close-button",a.A);a.context.b.O(b,"click",a.ix,a);a.context.b.O(a.$c,"touchend",function(){this.Vk.start()},a);
SC(a,"drawer_peek")&&(b=of("ytp-drawer-peek"))&&a.context.b.O(b,"click",a.zB,a);a.context.b.O(a.$c,"scroll",a.yx,a);a.W=hm(a.$c,"mousewheel",w(a.KG,a));a.context.A.subscribe("onHideControls",function(){this.gj=!0},a);
a.context.A.subscribe("onShowControls",function(){this.gj=!1},a);
a.context.A.subscribe("onVideoAreaChange",function(){this.gj=fe(this.X.xa(),"ytp-autohide")},a);
a.D.push($i("iv-teaser-shown",a.eA,a));a.D.push($i("iv-teaser-clicked",a.cA,a));a.D.push($i("iv-hover-card-clicked",a.bA,a));SC(a,"teaser_on_button_hover")&&a.D.push($i("iv-button-mouseover",a.PE,a));SC(a,"log_teaser_hover")&&a.D.push($i("iv-teaser-mouseover",a.dA,a))};
xaa=function(a,b){switch(b.type){case "simple":return FC(a.g,b);case "collaborator":var c=a.g,d=["div",["iv-card","iv-card-channel"],["a",["iv-click-target","g-hovercard"],{href:BC(c,b.url,b.id),"data-ytid":b.channelId},DC(b.profileImageUrl),["div","iv-card-content",IC(c,b),["h2","iv-card-primary-link",b.title],GC(c,b)]]],d=new Q(d);EC(c,d,b);return d;case "donation":return c=a.g,d=w(c.wB,c,b),FC(c,b,d,d);case "episode":return HC(a.g,b,"iv-card-episode");case "movie":return HC(a.g,b,"iv-card-movie");
case "navigation":return taa(a.g,b);case "playlist":return c=a.g,d=["div",["iv-card","iv-card-playlist"],["a","iv-click-target",{href:BC(c,b.url,b.id)},DC(b.o,["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()]]),["div","iv-card-content",IC(c,b),zC(c,"h2","iv-card-primary-link",b.title),GC(c,b)]]],d=new Q(d),EC(c,d,b),d;case "poll":return uaa(a.g,b);case "productListing":var c=a.g,d=BC(c,b.url,b.id),e=!lb(b.offers),f=["iv-card"],k="",l=CC(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},zC(c,"h2",k,b.title),l]]];d=new Q(d);f=Af("span");Pf(f,O("YTP_SPONSORED_PRODUCT_INFO"));d.xb(f,"adInfo");EC(c,d,b);return d;case "tip":return c=a.g,d=w(c.vD,c,b),FC(c,b,d,d);case "video":return c=a.g,d=BC(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},DC(b.o,f),["div","iv-card-content",IC(c,b),zC(c,"h2","iv-card-primary-link",b.title),GC(c,b),k]]],d=new Q(d),EC(c,d,b),d}return null};
yaa=function(a,b){if(0==a.o.length)return 0;var c=gb(a.o,function(a){return b.Ua.startMs>a.Ua.startMs||b.Ua.startMs==a.Ua.startMs&&b.Ua.timestamp>=a.Ua.timestamp?!0:!1});
return-1==c?0:c+1};
Caa=function(a){return a.b?"productListing"==a.b.Ua.type:Eg(a.o,function(a){return"productListing"==a.Ua.type})};
WC=function(a){K(a.X.xa(),"ytp-cards-shopping-active",Caa(a))};
ZC=function(a,b){if(a.F.A){var c=new UA([0,a.$c.scrollTop],[0,b.Xk.offsetTop],600,YA);a.context.b.O(c,"animate",function(a){this.$c.scrollTop=a.y},a);
a.context.b.O(c,"finish",function(a){this.$c.scrollTop=a.y},a);
c.play()}else a.F.ab(!0),a.$c.scrollTop=b.Xk.offsetTop,a.F.ab(!1)};
$C=function(a){return a.b&&a.b.Ua||a.o[0]&&a.o[0].Ua};
Baa=function(a,b){return fb(a.o,function(a){return a.Ua.id==b},a)};
aD=function(a){if(!Daa.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Eaa,"#$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)]};
bD=function(a,b,c,d,e){UA.call(this,b,c,d,e);this.element=a};
cD=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");bD.apply(this,arguments)};
dD=function(a,b,c){pC.call(this,a,b);this.annotation=c;this.isActive=!1};
eD=function(a,b,c){dD.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};
Faa=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};
Gaa=function(a,b,c){this.type=a;this.b=b;this.url=c};
Jaa=function(a){if(!a)return null;var b=mB(a.type,Haa),c=mB(a.trigger,Iaa),d=rB(iB(a.url));iB(a.subscribeData);return b?new Gaa(b,c,d):null};
Kaa=function(a,b,c,d,e,f,k,l,m,n,t,u,x,H){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=x;this.G=H};
fD=function(a){if(!a)return null;var b=kB(a.fgColor,"#1A1A1A"),c=kB(a.bgColor,"#FFF"),d=kB(a.borderColor,"#000"),e=pB(a.borderWidth,0,5,!1,0),f=pB(a.bgAlpha,0,1,!1,.8),k=kB(a.highlightFontColor,"#F2F2F2"),l=pB(a.highlightWidth,0,5,!1,3),m=lB(a.textAlign),n=pB(a.textSize,3.3,30.1,!0,3.6107),t=lB(a.fontWeight),u=daa(a.padding),x=eaa(a.effects),H=pB(a.cornerRadius,0,10,!0,0);if(a=iB(a.gradient)){var z=pB(a.x1,0,100,!0,0),G=pB(a.y1,0,100,!0,0),S=pB(a.x2,0,100,!0,100),P=pB(a.y2,0,100,!0,100),ta=kB(a.color1,
"#FFF"),ua=kB(a.color2,"#000");a=new Laa(z,G,S,P,ta,ua,pB(a.opacity1,0,100,!0,100),pB(a.opacity2,0,100,!0,0))}else a=null;return new Kaa(b,c,d,e,f,k,l,m,n,t,u,x,H,a)};
Laa=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};
iD=function(a,b,c){var d=a.C,e=a.D,f=a.b?a.b:"xy",k=gD(c,a.A,f);a=hD(c,a.g,f);var f=640*b.width*k/100,l=360*b.height*a/100;return new hg(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)};
gD=function(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d};
hD=function(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};
jD=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};
kD=function(a,b){if(!a)return null;var c=oB(a.x,0),d=oB(a.y,0),e=oB(a.w,0),f=oB(a.h,0),k=caa(a.t),l=oB(a.scaleSlope,1);return b(c,d,e,f,k,oB(a.d,0),oB(a.px,0),oB(a.py,0),oB(a.scaleSlopeX,l),oB(a.scaleSlopeY,l),mB(a.scaleDimension,Maa,"xy"))};
mD=function(a,b){var c=lD(b,iD(a,new hg(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=Ye(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=Ye(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e};
nD=function(a){return a?kD(a,function(a,c,d,e,f,k,l,m,n,t,u){return new jD(a,c,d,e,f,k,l,m,n,t,u)}):null};
oD=function(a,b,c,d,e,f,k,l,m,n,t,u,x){jD.call(this,a,b,c,d,e,l,m,n,t,u,x);this.F=f;this.G=k};
Naa=function(a){if(!a)return null;var b=oB(a.sx,0),c=oB(a.sy,0);return kD(a,function(a,e,f,k,l,m,n,t,u,x,H){return new oD(a,e,f,k,l,b,c,m,n,t,u,x,H)})};
Oaa=function(a,b,c,d){this.type=a;this.g=b;this.b=c;this.o=d};
Qaa=function(a){if(!a)return null;var b=mB(a.type,Paa,"rect"),c=qB(a.rectRegion,nD),d=qB(a.anchoredRegion,Naa);a=qB(a.shapelessRegion,nD);return new Oaa(b,c,d,a)};
pD=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};
Raa=function(a,b){this.g=a;this.b=b};
Saa=function(a,b){this.state=a;this.b=b};
qD=function(a){if(!a)return null;var b=mB(a.state,Taa);a=jB(a.ref);return b?new Saa(b,a):null};
Uaa=function(a,b,c,d){this.b=a||[];this.o=b||[];this.A=c;this.g=d;this.value=!1};
Vaa=function(a){if(!a)return null;var b=qB(a.condition,qD),c=qB(a.notCondition,qD),d=nB(a.show_delay,!1);a=nB(a.hide_delay,!1);return b||c?new Uaa(b,c,d,a):null};
Waa=function(a,b,c){D(a.b,qa(b,!1),c);D(a.o,qa(b,!0),c)};
rD=function(a,b,c,d,e,f,k,l,m,n,t,u,x,H,z){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=x;this.data=H;this.Sa=z};
Zaa=function(a){if(!a)return null;var b=jB(a.id),c=jB(a.author),d=mB(a.type,Xaa),e=mB(a.style,tD),f=lB(iB(a.TEXT)),k=lB(a.data),k=0!=k.length?Yf(k):{},l;var m=iB(a.segment);m?(jB(m.timeRelative),l=jB(m.spaceRelative),l=(m=qB(m.movingRegion,Qaa))?new Raa(l,m):null):l=null;var m=qB(a.action,Jaa),n=qB(a.trigger,Vaa),t=fD(iB(a.appearance));t||(t=fD({}));var u=mB(a.coordinate_system,Yaa,"video_relative"),x=nB(a.closeable,!0),H=lB(a.html_blob);a=lB(a.log_data);return b&&d?new rD(b,c,d,e,f,l,m,n,t,u,x,0,
H,k,a):null};
uD=function(a){return(a=$aa(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null};
wD=function(a){return vD(a,function(a){return"click"==a.b})};
vD=function(a,b){return Sh(a.A,b,void 0)};
aba=function(a,b,c){D(a.A,b,c)};
$aa=function(a,b){return fb(a.A,b,void 0)};
xD=function(a,b,c){D(a.F,b,c)};
bba=function(a,b){N(a.F,b,void 0)};
zD=function(a){return(a=yD(a))?pD(a):null};
yD=function(a){a.g?(a=a.g,a=a.b.length?a.b[0]:null):a=null;return a};
AD=function(a,b){var c=zD(a);return c&&b?hD(b,c.g,c.b?c.b:"xy"):1};
BD=function(a,b,c){dD.call(this,a,b,c);this.D=this.A=this.F=!1;this.C=5E3;this.b=null;this.Yg=L("div","iv-promo-contents");this.g=this.o=this.sc=null;this.B=new ce(function(){this.sc.setAttribute("aria-hidden",!0);$q(this.o,!1);$q(this.g,!0)},700,this)};
cba=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.ia().setAttribute("aria-hidden",!0);a.ia().setAttribute("aria-label",O("YTP_INVIDEO_PROMOTION_ARIA_LABEL"));a.ia().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.Bg(e,uD(a.annotation),a.annotation.id,a.annotation.Sa,null,c)}f=uD(a.annotation);a.sc=f?L("a",{href:sB(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.sc,
"iv-click-target");a.Bg(a.sc,uD(a.annotation),a.annotation.id,a.annotation.Sa,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.sc,"iv-click-target");a.Bg(a.sc,uD(a.annotation),a.annotation.id,a.annotation.Sa,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.O(c,"click",function(a){a.stopPropagation();jC(this.context.logger,this.annotation.Sa,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;this.sc=of("iv-promo-txt",this.Yg);a=of("iv-promo-button-container",this.Yg);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);
Cf(d,e,c);Ff(a);Gf(d,this.sc);ie(this.ia(),"iv-promo-with-button");this.Bg(d,uD(this.annotation),this.annotation.id,this.annotation.Sa)},a),m.appendChild(c),d.push("iv-promo-with-button")}k&&a.sc.appendChild(k);
l&&a.sc.appendChild(l);a.Yg.appendChild(a.sc);m&&a.Yg.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.O(a.g,"click",qa(a.Pl,5E3),a);k.appendChild(a.g);$q(a.g,!1);a.context.b.O(a.ia(),"mouseover",a.fy,a);a.context.b.O(a.ia(),"mouseout",a.ey,a);a.context.b.O(a.ia(),"touchend",qa(a.Pl,5E3),a);a.o=L("button",["iv-promo-close","ytp-button"]);a.o.title=O("YTP_CLOSE");a.context.b.O(a.o,"click",a.LG,a);k.appendChild(a.o);
ge(a.ia(),d);e&&Bf(a.ia(),e);Bf(a.ia(),a.Yg);Bf(a.ia(),k)};
CD=function(a){a.A||a.D||a.b||(J(a.ia(),"iv-promo-collapsed"),a.A=!0,a.B.start())};
DD=function(a){a.B.stop();a.A&&(ie(a.ia(),"iv-promo-collapsed"),a.A=!1,a.sc&&a.sc.removeAttribute("aria-hidden"),$q(a.g,!1),$q(a.o,!0))};
ED=function(a,b){a.b||(a.b=ae(function(){this.b&&(be(this.b),this.b=null);CD(this)},b,a))};
GD=function(a,b,c){this.b={};this.g=!1;this.B="ivTrigger:"+a;this.o=c;Waa(b,function(a,b){var c=FD(b.state,b.b);this.o.subscribe(c,w(this.A,this,c,a));this.b[c]=a},this)};
FD=function(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};
HD=function(a,b,c){this.o=a;this.annotation=b;this.b=c;this.g=null;this.A=this.isVisible=!1;dba(b,a)};
dba=function(a,b){bba(a,function(c){return new GD(a.id,c,b)})};
ID=function(a){og(a.o,"resize",a.Tt,a);og(a.o,"onVideoAreaChange",a.Mr,a)};
JD=function(a){a.g&&(a.g.stop(),a.g=null)};
KD=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
LD=function(){};
MD=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};
ND=function(){this.na=[];this.ra=[];this.Hc=[]};
OD=function(a,b,c){0==db(a.na)?a.Hc.length-=2:(a.na.push(0),a.ra.push(1));a.Hc.push(b,c);a.hc=a.wd=[b,c]};
PD=function(a,b,c,d){var e=a.hc[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+90)*Math.PI/180),f=a.hc[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+90)*Math.PI/180);a.na.push(3);a.ra.push(1);a.Hc.push(b,c,d,90,e,f);a.Eh=!1;a.hc=[e,f]};
fba=function(a,b){for(var c=a.Hc,d=0,e=0,f=a.na.length;e<f;e++){var k=a.na[e],l=eba[k]*a.ra[e];b(k,c.slice(d,d+l));d+=l}};
QD=function(a,b){this.G=a;this.H=null==b?1:b};
RD=function(a,b,c){this.o=a;this.b=b;this.g=null==c?1:c};
SD=function(){};
TD=function(a){I.call(this);this.G=a||lf();this.qa=null;this.hd=!1;this.b=null;this.C=void 0;this.D=this.J=this.A=null};
UD=function(a,b){if(a.hd)throw Error("Component already rendered");a.b||a.Ti();b?b.insertBefore(a.b,null):a.G.b.body.appendChild(a.b);a.A&&!a.A.hd||a.Rf()};
VD=function(a,b){a.J&&D(a.J,b,void 0)};
WD=function(a,b,c,d,e){TD.call(this,e);this.width=a;this.height=b;this.o=c||null;this.K=d||null};
gba=function(a){var b=a.Xf();return b?b.width/(a.o?new ef(a.o,a.K):a.Xf()).width:0};
XD=function(a,b){I.call(this);this.hh=a;this.Jl=b;this[Fc]=!1};
$D=function(a,b,c,d){XD.call(this,a,b);a=this.Jl;b=this.ia();c?(b.setAttribute("stroke",c.b),b.setAttribute("stroke-opacity",c.g),c=c.Xa(),v(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",(0,window.parseFloat)(c)/gba(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");this.fill=d;c=this.Jl;a=this.ia();if(d instanceof QD)a.setAttribute("fill",d.G),a.setAttribute("fill-opacity",d.H);else if(d instanceof MD){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=YD(c,"linearGradient",{x1:d.B,y1:d.D,x2:d.C,y2:d.F,gradientUnits:"userSpaceOnUse"}),f="stop-color:"+d.b;ha(d.o)&&(f+=";stop-opacity:"+d.o);f=YD(c,"stop",{offset:"0%",style:f});e.appendChild(f);f="stop-color:"+d.g;ha(d.A)&&(f+=";stop-opacity:"+d.A);d=YD(c,"stop",{offset:"100%",style:f});e.appendChild(d);e=ZD(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")};
aE=function(a,b){XD.call(this,a,b)};
bE=function(a,b,c,d){$D.call(this,a,b,c,d)};
cE=function(a,b){XD.call(this,a,b)};
dE=function(a,b,c,d){$D.call(this,a,b,c,d)};
eE=function(a,b,c,d,e){WD.call(this,a,b,c,d,e);this.g={};this.M=Bc&&!yc(526);this.H=new Am(this)};
YD=function(a,b,c){a=a.G.b.createElementNS("http://www.w3.org/2000/svg",b);c&&fE(a,c);return a};
fE=function(a,b){for(var c in b)a.setAttribute(c,b[c])};
gE=function(a,b,c,d){b=YD(a,"path",{d:hba(b)});c=new dE(b,a,c,d);a.B.ia().appendChild(c.ia())};
hba=function(a){var b=[];fba(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(" ")};
ZD=function(a,b,c){if(b in a.g)return a.g[b];var d="_svgdef_"+iba++;c.setAttribute("id",d);a.g[b]=d;a.F.appendChild(c);return d};
iE=function(){hE||(hE=new Zd(400),hE.start());return hE};
jE=function(){this.b=!1;this.B=this.g=null};
kE=function(a,b,c){a.g?(a.g.setSize(b,c),a.g.clear()):(b=new eE(b,c,void 0,void 0,void 0),a.g=b,a.g.Ti(),a.B=L("div"),b=a.g.ia(),a.B.appendChild(b));return a.g};
lE=function(a,b,c){var d=window.document.createElementNS("http://www.w3.org/2000/svg",a);b&&Qb(b,function(a,b){d.setAttribute(b,a)});
for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d};
mE=function(a,b){var c=":"+(SD.getInstance().b++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};
jba=function(a,b){var c=mE(a,lE("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=mE(a,lE("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},lE("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=mE(a,lE("feComposite",{"in":c,in2:b,operator:"in"}));return mE(a,lE("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))};
kba=function(a,b){var c=mE(a,lE("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=mE(a,lE("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=mE(a,lE("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=mE(a,lE("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=mE(a,lE("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=mE(a,lE("feComposite",{operator:"out","in":c,in2:d}));return mE(a,lE("feComposite",{operator:"over","in":b,in2:c}))};
lba=function(a,b){return b};
mba=function(a){var b=lE("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";D(a,function(a){a:{switch(a){case "bevel":a=jba;break a;case "dropshadow":a=kba;break a}a=lba}c=a(b,c)});
return b};
nba=function(a){a=he(a,function(a){return a in nE});
Cb(a,function(a,c){return nE[a]-nE[c]});
return a};
oba=function(a){return fb(a,function(a){return"dropshadow"==a})?new gg(0,7,7,0):new gg(0,0,0,0)};
oE=function(a,b,c){var d=new ND;OD(d,a.left+b+c,a.top+c);d.zb(a.left+a.width-b-c,a.top+c);PD(d,b,b,-90);d.zb(a.left+a.width-c,a.top+a.height-b-c);PD(d,b,b,0);d.zb(a.left+b+c,a.top+a.height-c);PD(d,b,b,90);d.zb(a.left+c,a.top+b+c);PD(d,b,b,180);d.close();return d};
pE=function(a,b,c,d){var e=a.G;e?a=new MD(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 QD(a.bgColor,d?Math.max(b,.9):b));return a};
qE=function(a,b){var c=ig(a),d=oba(b);ka(d)?(c.top-=d.top,c.right+=d.right,c.bottom+=d.bottom,c.left-=d.left):(c.top-=d,c.right+=Number(void 0),c.bottom+=Number(void 0),c.left-=Number(void 0));return new hg(c.left,c.top,c.right-c.left,c.bottom-c.top)};
rE=function(a,b,c){if(c.length&&(b=mf("g",void 0,b),b.length)){var d=nba(c);if(d){c="effects:"+(d?d.join("|"):"");var e=c in a.g?a.g[c]:null;e?a=e:(d=mba(d),a=0<d.childNodes.length?ZD(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};
sE=function(){jE.call(this);this.A=0};
pba=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"};
tE=function(){jE.call(this)};
uE=function(){jE.call(this)};
vE=function(){sE.call(this)};
wE=function(a,b){this.b=a;this.g=b||null};
lD=function(a,b){var c;c=a.g?mD(a.g,new wE(a.b)):a.b;var d=b.clone(),e=c.left;c=c.top;e instanceof cf?(d.left+=e.x,d.top+=e.y):(d.left+=e,ha(c)&&(d.top+=c));return d};
xE=function(a,b,c,d,e){this.b=a;this.V=b;this.C=c;this.ba=d;this.$=e;this.M=!1;this.D=new GA(this);this.N=this.B=this.F=this.K=this.g=null;this.W=!1;this.Z=this.H=this.J=null;this.Gm=new ym(this.cy,100,this);this.G=new ce(this.Np,500,this);this.S=this.o=this.A=null};
qba=function(a,b){var c=w(function(a,c,f){c=f?yE(this,c,w(f,this)):yE(this,c);this.D.O(b,a,c)},a);
c("mouseover","d",a.Ut);c("mouseout","c",a.Fe);c("click","a");c("touchend","a")};
rba=function(a){if(a.b.C){var b;vD(a.b,function(a){return"close"==a.type})?b=a.g:(a.A=L("div","annotation-close-button"),$q(a.A,!1),Gi(a.A,"annotation_id",a.b.id),a.g.appendChild(a.A),b=a.A);
var c=function(a){a.stopPropagation()};
a.D.O(b,"click",yE(a,"b",c));a.D.O(b,"touchend",yE(a,"b",c))}};
yE=function(a,b,c){return w(function(a){if(this.$)c&&c(a);else if(a.event.target instanceof window.Element){var e=a.event.target;$q(e,!1);try{var f=window.document.elementFromPoint(a.event.clientX,a.event.clientY);if(Wf(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{$q(e,!0)}}e=Yq(a.target);a=new cf(a.clientX,a.clientY);"c"==b&&e.contains(a)||this.ba.Wb(b,this.b)},a)};
EE=function(a){if(a.g||a.o){var b=zD(a.b);if(b){var c=zE(a);if(a.g){var b=mD(b,c),d=AE(BE(a.C));Vq(a.g,b.width,b.height);Kq(a.g,b.left,b.top);a.K=new hg(d.left+b.left,d.top+b.top,b.width,b.height);var e;e=(e=zD(a.b))&&d?gD(d,e.A,e.b?e.b:"xy"):1;var f=AD(a.b,d),d=a.b.b;d.F?d=d.F:(d="speech"==a.b.style?1.6:.8,d=new gg(d,d,d,d));d=new gg(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=AE(BE(a.C));var t=CE(a.C);kg(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=DE(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,Vq(a.B,m.width,m.height),Kq(a.B,m.left,m.top));a.A&&(u?b=new cf(u.left+u.width-
23-18,a.W?u.top+2:u.top+u.height-18-2):(u=DE(a,18,b,e,f),b=new cf(u.left,u.top),Vq(a.A,u.width,u.height)),Kq(a.A,b));a.N=new hg(a.K.left+u.left,a.K.top+u.top,u.width,u.height);a.J=a.D.O(BE(a.C),"mousemove",a.IG)}else a.B&&(u=e/f*d.height*4.2/100,u=new ef(u,u),"highlight"==a.b.type||"label"==a.b.style?(e=1.5*d.height/100,u=new hg(b.width-u.width-e,b.height-u.height-e,u.width,u.height)):u=new hg(b.width-u.width-3*d.height/100,(b.height-u.height)/2,u.width,u.height),Vq(a.B,u.width,u.height),Kq(a.B,u.left,
u.top)),a.A&&(u=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,Kq(a.A,u&&e?new cf(b.width-9,-9):u?new cf(b.width-9,45<b.height?9:b.height-9):e?new cf(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new cf(45<b.width?b.width-9-18:-9,b.height-9):new cf(-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=AE(BE(a.C));c.style.fontSize=360*b.textSize*AD(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=of("annotation-link-icon",a))?ar(b):!1;e=(d=of("annotation-close-button",a))?ar(d):!1;u&&$q(b,!1);e&&$q(d,!1);m=f="";if(l=of("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=fr(a);for(var t=5,x=Math.floor(k/2);x;)a.scrollHeight<=a.offsetHeight&&
a.scrollWidth<=a.offsetWidth?(t=n,n=Math.min(n+x,k)):n=Math.max(n-x,t),x=Math.floor(x/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&&$q(d,!0);u&&$q(b,!0)}}}};
DE=function(a,b,c,d,e){var f=0<e;b=new hg(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.W=!0);return b};
FE=function(a){return"label"!=a.b.style||a.o.b};
zE=function(a){var b;b=AE(BE(a.C));if("player_relative"==a.b.D){var c=BE(a.C).Da();b=new hg(-b.left,-b.top,c.width,c.height)}else b=new hg(0,0,b.width,b.height);return new wE(b,a.S?zD(a.S):null)};
GE=function(a,b){return b?new hg(a.x+b.left,a.y+b.top,b.width,b.height):null};
HE=function(a){eq.call(this,a);this.ca=!0;this.Ea="iv-module";this.logEvent="iv";this.J=0;this.o={};this.K={};this.G=new laa(a);a=sba;this.B=new nr(this);F(this,this.B);this.subscribe("onHideControls",this.SB,this);this.subscribe("onShowControls",this.kD,this);this.subscribe("presentingplayerstatechange",this.NC,this);this.subscribe("resize",this.zr,this);this.subscribe("d",this.yG,this);this.subscribe("c",this.Fe,this);this.subscribe("a",this.zA,this);this.subscribe("b",this.bB,this);this.subscribe("vast_info_card_add",
this.JD,this);this.S=L("DIV",[a.Sv,"html5-stop-propagation"]);this.V=L("DIV",a.tv);this.H=this.g=this.A=this.C=null;this.N=[]};
IE=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){R(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(IE(a,e))}return c};
JE=function(a,b,c){return!(a.loaded&&a.J==b&&a.b.getVideoData().videoId==c)};
uba=function(a,b){var c=tba(a,b);if(!c&&"marker"!=b.type)return null;xD(b,function(a){a=w(this.FD,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);
return new HD(a.W,b,c)};
vba=function(a,b){var c=HE.g(),d=null;switch(b.type){case "branding":if(R(a.b).ge)break;a.C.element.appendChild(c);d=new eD(c,KE(a),b);break;case "promotion":lr(a.b,c,4),d=new BD(c,KE(a),b)}d&&d.Fj();return d};
wba=function(a){var b=a.b.getVideoData();if(b.Jf){var c=R(a.b),d=c.J.remove(b.videoId);if(d){var e={format:"XML",pd:{}};c.experiments.aa("disable_iv_cors")||(e.method="POST",e.withCredentials=!0);"gaming"==c.b&&(e.pd.gaming="1");e.qc=w(function(a,b,c){JE(this,a,b)||(a=Qj(c)&&c.responseXML?c.responseXML:null)&&LE(this,a)},a,a.J,b.videoId);
vv()&&(e.qc=ME(a,e.qc));e.Lb={ic_only:"1"};NE(e,d);Vj(b.Jf,e)}}};
NE=function(a,b){a.method="POST";a.Lb=a.Lb||{};b.jf&&(a.Lb.ic_xml=b.jf);b.Fg&&(a.Lb.ic_track=b.Fg)};
xba=function(a){var b=new Q(["div"]);$q(b.element,!1);var c=new TC(a.b,b.element,KE(a));b.b(a.C.element);c.Fj();return c};
KE=function(a){a.H||(a.H=new Faa(new GA(a),R(a.b),a.b.getVideoData(),a.G,a.b,a.W));return a.H};
LE=function(a,b){for(var c=!1,d=b.getElementsByTagName("annotation"),e=0;e<d.length;e++){var f=IE(a,d[e]),k=null;try{k=Zaa(f)}catch(l){}k&&(HE.A(k)?(f=vba(a,k))&&(a.K[k.id]=f):HE.B(k)?(a.g||(a.g=xba(a)),"card"==k.type?zaa(a.g,k):Aaa(a.g,k),c=!0):(f=uba(a,k))&&(a.o[k.id]=f))}c&&XC(a.b);Qb(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)};
yba=function(a,b,c,d){d?OE(a,b,c):PE(a,b,c)};
PE=function(a,b,c){if(b=a.o[b])JD(b),c&&c.g?(a=w(a.Mp,a,b),b.g=new ce(a,2E3),b.g.start()):a.Mp(b)};
OE=function(a,b,c){if(b=a.o[b])JD(b),c&&c.A?(a=w(a.Gs,a,b),b.g=new ce(a,2E3),b.g.start()):a.Gs(b)};
QE=function(a,b,c){if("new"==b.target)return!1;var d=sB(b);if(!d)return!1;d=d.replace(/https?:\/\//g,"");if(!uB(d))return!1;d=Kj(d);if(d.list||d.p)return!1;b=vB(b);if(!b)return!1;if(c==b)return!0;a=R(a.b);return a.C&&a.ua?!0:!1};
tba=function(a,b){if(zba(b)){var c=b.C||vD(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});
return new xE(b,w(a.S.appendChild,a.S),a.b,a.W,c)}return null};
zba=function(a){if("highlight"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in tD)if(a.style==tD[b])return!0;return!1};
RE=function(a,b,c,d){a.U(FD(b,d),c,d)};
ME=function(a,b){return w(function(){if(!this.isDisposed()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=qa.apply(window,a);this.N.push(wv(b,void 0))}},a)};
SE=function(a){return!!a.g&&a.g.isAvailable()};
TE=function(a){SE(a);return!!a.g&&a.g.B};
UE=function(a,b,c,d){SE(a);a.g&&(c=!!c,b?p(d)?YC(a.g,d,c):YC(a.g,"YOUTUBE_DRAWER_AUTO_OPEN",c):a.g.Ii())};
VE=function(a,b,c){a.b.Pa(b?"cardsteasershow":"cardsteaserhide",c)};
WE=function(){Ui({YTP_TRANSLATE_MENU_ITEM:"Traduire les sous-titres",YTP_CONTRIBUTE_MENU_ITEM:"Ajouter des sous-titres",YTP_ASR_SETTINGS_LABEL:"Sous-titres automatiques",YTP_LANGUAGE_OFF:"D\u00e9sactiver",YTP_FONT_FAMILY:"Famille de polices",YTP_FONT_SIZE:"Taille de police",YTP_FONT_COLOR:"Couleur de la police",YTP_FONT_OPACITY:"Opacit\u00e9 de la police",YTP_BACKGROUND_COLOR:"Couleur de l'arri\u00e8re-plan",YTP_BACKGROUND_OPACITY:"Opacit\u00e9 de l'arri\u00e8re-plan",YTP_WINDOW_COLOR:"Couleur de la fen\u00eatre",
YTP_WINDOW_OPACITY:"Opacit\u00e9 de la fen\u00eatre",YTP_COLOR_WHITE:"Blanc",YTP_COLOR_YELLOW:"Jaune",YTP_COLOR_GREEN:"Vert",YTP_COLOR_CYAN:"Cyan",YTP_COLOR_BLUE:"Bleu",YTP_COLOR_MAGENTA:"Magenta",YTP_COLOR_RED:"Rouge",YTP_COLOR_BLACK:"Noir",YTP_FONT_FAMILY_MONO_SERIF:"Serif monospaced",YTP_FONT_FAMILY_PROP_SERIF:"Serif proportionnelle",YTP_FONT_FAMILY_MONO_SANS:"Sans-serif monospaced",YTP_FONT_FAMILY_PROP_SANS:"Sans-serif proportionnelle",YTP_FONT_FAMILY_CASUAL:"Casual",YTP_FONT_FAMILY_CURSIVE:"Cursive",
YTP_FONT_FAMILY_SMALL_CAPS:"Petites majuscules",YTP_CHAR_EDGE_STYLE:"Style de bordure des caract\u00e8res",YTP_EDGE_STYLE_NONE:"Aucun",YTP_EDGE_STYLE_RAISED:"Sur\u00e9lev\u00e9",YTP_EDGE_STYLE_DEPRESSED:"Surbaiss\u00e9",YTP_EDGE_STYLE_OUTLINE:"Soulign\u00e9",YTP_EDGE_STYLE_DROP_SHADOW:"Ombre projet\u00e9e",YTP_CLICK_FOR_SETTINGS:"Cliquez sur $GEAR_ICON pour acc\u00e9der aux param\u00e8tres."})};
XE=function(){jk.call(this);this.b={}};
YE=function(a,b,c){if(!a.b[b]&&(c.jf||c.Fg)){var d=a.b,e=c;Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.U("vast_info_card_add",b)}};
ZE=function(){var a=[],b=[];return{start:function(b){return a[b]},
end:function(a){return b[a]},
length:a.length}};
$E=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};
aF=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};
bF=function(a,b){var c=aF(a,b);return 0<=c?a.end(c):window.NaN};
cF=function(a){return a&&a.length?a.end(a.length-1):window.NaN};
dF=function(a,b){var c=bF(a,b);return 0<=c?c-b:0};
eF=function(){I.call(this);this.g=null;this.B=this.A=!1};
hF=function(a,b){var c="";b&&(fF(a,b),c=Aw(b));a.b.src&&""==c||(c&&a.b.src!=c&&gF(a,c),b&&b.b||a.load(),a.B||(a.addEventListener("volumechange",w(a.Zo,a)),a.B=!0))};
jF=function(a){a.b.ended&&a.seekTo(0);if(!a.b.src&&a.g){var b=Aw(a.g);gF(a,b);a.g.b||a.load()}a.play();iF&&7<=Nx&&jm(a,"playing",w(function(){Oi(w(this.np,this,this.getCurrentTime(),0),500)},a))};
fF=function(a,b){a.g&&a.g.Ia(b)||(a.g&&a.g.dispose(),a.g=b)};
xz=function(a){return dF(kF(a),a.getCurrentTime())};
lF=function(a){a.b.src&&(Uw&&0<a.getCurrentTime()&&a.seekTo(0),a.b.removeAttribute("src"),a.load(),a.g&&a.g.b&&fF(a,null))};
mF=function(a){var b=kF(a);return 0<cF(b)&&a.b.duration?bF(b,a.getCurrentTime()):0};
nF=function(a){var b=a.b.duration;return window.Infinity==b?1:b?mF(a)/b:0};
Aba=function(a,b,c){this.target=a;this.type=b;this.b=c||null};
oF=function(a){eF.call(this);this.b=a;this.o={}};
gF=function(a,b){var c=a.b.playbackRate;a.b.src=b;a.b.playbackRate=c};
kF=function(a){return a.b.buffered||ZE()};
pF=function(a,b){b?a.b.setAttribute("crossorigin","anonymous"):a.b.removeAttribute("crossorigin")};
qF=function(a,b,c){Eq(a.b,b,c)};
sF=function(){if(null==q("_lact",window)){var a=(0,window.parseInt)(Mi("LACT"),10),a=(0,window.isFinite)(a)?C()-Math.max(a,0):-1;g.ba("_lact",a,window);-1==a&&rF();hm(window.document,"keydown",rF);hm(window.document,"keyup",rF);hm(window.document,"mousedown",rF);hm(window.document,"mouseup",rF);$i("page-mouse",rF);$i("page-scroll",rF);$i("page-resize",rF)}};
rF=function(){null==q("_lact",window)&&(sF(),q("_lact",window));var a=C();g.ba("_lact",a,window);cj("USER_ACTIVE")};
tF=function(){var a=q("_lact",window);return null==a?-1:Math.max(C()-a,0)};
uF=function(a,b){this.g=a;this.b=b};
yF=function(a){a=a.responseText;if(!va(a,")]}'"))return vF(""),wF=new uF(""),"";a=JSON.parse(a.substr(4)).id;vF(a);wF=new uF(a);xF(18E5,2);return a};
zF=function(a){var b=Error("Unable to load /pagead/id");vF("");wF=new uF(void 0,b);0<a&&xF(12E4,a-1);throw b;};
xF=function(a,b){Oi(function(){var a=w(zF,aa,b);Gr("//googleads.g.doubleclick.net/pagead/id",AF).then(yF,a)},a)};
vF=function(a){g.ba("yt.www.ads.biscotti.lastId_",a,void 0)};
BF=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Gj(b||"","&");var c={};D(this.experimentIds,function(a){c[a]=!0});
this.experiments=c;this.o=!!c["9406444"];this.D=!!c["9405409"];this.F=!!c["9416855"];this.B=!!c["9406692"];this.A=!!c["9406693"]||!!c["9417210"]&&pu&&yc(8);this.bx=!0;this.enableAudioCast=!!c["9408394"];this.g=!!c["9414740"];this.G=!!c["9414672"];this.showEndToEndLatency=!!c["9416891"];this.H=!!c["9407182"]};
KF=function(a){E.call(this);a=ic(a);this.N={};this.experiments=new BF(a.fexp,a.fflags);this.forcedExperiments=a.forced_experiments||null;var b;try{b=window.document.location.toString()}catch(e){b=""}this.Ba=b;this.G=(this.C=Bba.test(this.Ba))?Zu("",a.loaderUrl):this.Ba;this.Ma=Ip(this.G);this.S=(this.pk=(this.Wc=Wu(!1,a.ssl_stream))||Wu(!1,a.ssl))?"https":"http";this.baseYtUrl=Fp(a.BASE_YT_URL)||Fp(this.Ba)||this.S+"://www.youtube.com/";"adunit"==a.el?CF.test(this.G)?this.wa="adunit":this.wa="embedded":
"embedded"==a.el||this.Ma?this.wa=Xu(this.wa,a.el,Cba):a.el&&(this.wa="embedded");sF();b=null;var c=a.ps,d=kb(DF,c);!c||d&&!this.Ma||(b=c);this.b=b;this.D=(this.Qb=kb(DF,this.b))&&"play"!=this.b;this.Cb=!this.D;this.g={};this.g.c=a.c||"web";this.g.cver=a.cver||"html5";this.g.cplayer="UNIPLAYER";this.ha=!(!Xt().defaultPlaybackRate||Cc&&!Lp("chrome")||Mx||EF||Lp("android")||Lp("silk"));this.isMobile=Wu("blazer"==this.b,a.is_html5_mobile_device);this.useMediaVolume="3"==this.o||this.isMobile||Wu(!1,
a.use_media_volume);if(b=!this.useMediaVolume)b=Xt(),c=b.muted,b.muted=!c,b=b.muted!=c;this.V=b;this.df=FF;(Mx||EF||pu)&&"blazer"!=this.b&&GF(this);this.Ka=Wu("adunit"!=this.wa&&"detailpage"!=this.wa&&!this.Qb,a.showinfo);this.Zb=Wu(!1,a.playsinline);b=this.isMobile&&HF&&2.3>=Qw;c=IF(this)||!b&&Wu("native"==this.b,a.use_native_controls)?"3":"1";this.o="0"!=a.controls?c:"0";this.useTabletControls=this.isMobile;this.color=Xu("red",a.color,Dba);this.$e="3"==this.o||Wu(!1,a.modestbranding)&&"red"==this.color;
Wu(!1,a.nologo)&&(c=this.G,Eba.test(c),Ip(c));this.W=0==this.G.indexOf(this.baseYtUrl);this.Xc=(c=!this.W&&"detailpage"!=this.wa&&!this.D&&!this.Qb)&&!this.$e&&"1"==this.o;this.ge="embedded"==this.wa&&c&&!this.Ka&&!this.Xc;this.If=this.af=b;this.K=EF?!1:!0;this.Xe=this.C||!1;this.$="detailpage"==this.wa?"":(this.G||a.post_message_origin||"").substring(0,128);this.widgetReferrer=Zu("",a.widget_referrer);b=this.experiments.aa("legacy_cast2")||Wu(!0,a.enablecastapi)||!this.Ma;this.A=!a.disableCast&&
b&&"1"==this.o&&!this.isMobile&&("detailpage"==this.wa||"embedded"==this.wa||"profilepage"==this.wa);this.jb=(this.M=Wu(!1,a.autoplay))||"detailpage"==this.wa;this.Ta=!this.isMobile&&!Sp()&&!Lp("nintendo 3ds")||Wu(!1,a.autoplayoverride);b=("detailpage"==this.wa||"adunit"==this.wa)&&"blazer"==this.b;this.Ca=!Wu(!0,a.fs);this.la=!this.Ca&&(b||Wh());this.Yc=Wu(!this.Qb,a.rel);this.Gf="adunit"!=this.wa;this.ba="profilepage"==this.wa;this.Ga="blazer"==this.b||"mweb-polymer"==this.b;switch(this.b){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.ca=b;this.Ib=Zu("",a.authuser);this.Hf=!!this.Ib&&Wu(!this.D,a.showwatchlater);this.Bb=Wu(!1,a.disablekb);this.pageId=Zu("",a.pageid);this.bf=bv(Cu,a.vq);this.cf=Zu("",a.playerapiid);this.ff=Wu(!0,a.canplaylive);this.We=Wu(this.Qb,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 ef(b,c))):b=null;this.ie=b;this.mute=this.Ma&&Wu(!1,a.mute);this.storeUserVolume=!this.mute&&Wu("0"!=this.o,a.store_user_volume);this.ef=Wu(!1,a.retryneterr)&&this.Ma;this.ke="3"==this.o?3:Xu(void 0,a.iv_load_policy,Rx);this.ua=Wu(!1,a.iv_allow_in_place_switch);this.Wa=Zu("",a.cc_lang_pref);this.da=Xu(void 0,a.cc_load_policy,Rx);this.ea=void 0==a.content_v?void 0:a.content_v.toString();this.Ye=void 0==a.framer?
void 0:a.framer.toString();this.ka=Zu("en_US",a.hl);this.region=Zu("US",a.cr);this.hostLanguage=Zu("en",a.host_language);this.Nb=Wu(!1,a.privembed);this.Ob="";this.ya=new wk;this.B=Wu(!0,a.deviceHasDisplay);this.bb=Yu(this.bb,a.ismb);JF(this,a);this.N=a;this.J=new XE;this.H=this.isMobile;b=a;b.innertube_api_key&&b.innertube_api_version&&this.g.c&&b.innertube_context_client_version&&this.hostLanguage&&this.region||this.experiments.aa("disable_innertube_config_reporting")||Si(Error("MISSING_INNERTUBE_CONFIG,api_key="+
b.innertube_api_key+",api_version="+b.innertube_api_version+",interface="+this.g.c+",context_client_version="+b.innertube_context_client_version+",host_language="+this.hostLanguage+",region="+this.region));this.Ze={apiaryHost:Zu("",b.apiary_host),Ok:Zu("",b.apiary_host_firstparty),gapiHintOverride:Wu(!1,b.gapi_hint_override),gapiHintParams:Zu("",b.gapi_hint_params),innertubeApiKey:Zu("",b.innertube_api_key),innertubeApiVersion:Zu("",b.innertube_api_version),qm:this.g.c,innertubeContextClientVersion:Zu("",
b.innertube_context_client_version),sm:this.hostLanguage,rm:this.region};this.Gc=void 0!=window.WebKitPlaybackTargetAvailabilityEvent;this.F=new Pw(this.experiments,this.B,"web"==this.g.c.toLowerCase().substr(0,3)||Op()||Pp());this.enableSafetyMode=Wu(!1,a.enable_safety_mode);this.ib="detailpage"==this.wa&&"blazer"!=this.b&&"mweb-polymer"!=this.b};
LF=function(a,b){a.tb=b.get("d",a.tb);a.Qa=b.get("f",a.Qa)};
JF=function(a,b){a.adFormat=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&ac(MF,c)&&ac(NF,c)?NF[c]+"_"+MF[c]:void 0);if(c){var d=c.match(/^(\d*)_((\d*)_?(\d*))$/);if(d&&5==d.length){var e=d[3],f=a.experiments.aa("disable_monetization_on_indisplay_playbacks"),d=!(1==d[1]&&8==e)&&(6==e&&!f||7==e||8==e||10==e);if(a.C||a.Ma||d)a.adFormat=c,a.N.adformat=b.adformat,d||(a.wa="adunit")}}if(c=b.video_id&&b.video_id!=a.Ob)a.Ob=b.video_id;(b.adpings||c)&&b.adpings&&Ij(b.adpings);a.Cb?(d=b.videostats_playback_base_url&&
b.videostats_playback_base_url.split("/")[2]||"s.youtube.com",a.experiments.H&&"s.youtube.com"==d&&(d="www.youtube.com")):d="video.google.com";a.je=d;a.he="//"+a.je+"/api/stats/qoe";if(b.feature||c)d=b.feature,a.ne=d,a.N.feature=d;if(b.referrer||c)d=b.referrer,a.referrer=d,a.N.referrer=d;if(b.q||c)a.searchQuery=b.q;for(var k in OF)c=OF[k],d=b[c],void 0!=d&&(a.g[c]=d);!a.pa&&b.cl&&(a.pa=+b.cl);a.userAge=Yu(a.userAge,b.user_age);a.userDisplayImage=Zu(a.userDisplayImage,b.user_display_image);Ox.test(a.userDisplayImage)||
(a.userDisplayImage="");a.userDisplayName=Zu(a.userDisplayName,b.user_display_name);a.userGender=Zu(a.userGender,b.user_gender);a.Z=Zu(a.Z,b.eventid);a.Z&&(Ov=a.Z);a.csiPageType=Zu(a.csiPageType,b.csi_page_type);a.Aa=Zu(a.Aa,b.csi_service_name);a.Ga=Wu(a.Ga,b.enablecsi);b.enabled_engage_types&&(a.ya=new wk(b.enabled_engage_types.split(",")));a.ua=Wu(a.ua,b.iv_allow_in_place_switch)};
OB=function(a,b,c){return b.Xd&&(a.experiments.aa("legacy_autoplay_flag")||"detailpage"!=a.wa||c||b.ej)};
PF=function(a,b,c){b={video_id:b,html5:1,page_subscribe:c?1:0};a.Ib&&(b.authuser=a.Ib);a.pageId&&(b.pageid=a.pageId);return Tg(a.baseYtUrl+"get_video_metadata",b)};
QF=function(a){var b=Kg(a.baseYtUrl);(a=Lg(a.baseYtUrl))&&(b+=":"+a);return"www.youtube-nocookie.com"==b?"www.youtube.com":b};
RF=function(a){return"gaming"==a.b?"gaming.youtube.com":QF(a)};
SF=function(a,b,c){return a.S+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
TF=function(a){if(a.Ne)a:{a=a.Ne;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};
kz=function(a){return"leanback"==a.wa||a.Qb||!a.Yc&&!a.ba?!1:!0};
Wy=function(a){return"detailpage"==a.wa&&"gaming"!=a.b};
IF=function(a){return EF&&!a.Zb||Sp()||Lp("nintendo 3ds")?!0:!1};
GF=function(a){return Rp()||"TV"==a.g.cplatform};
VF=function(a){return a.B&&Zl&&!UF&&!Uw};
ey=function(a){return VF(a)||a.B&&hu&&!UF&&yc(38)||a.B&&Cc&&!UF&&yc(27)||a.B&&WF&&!Tp()&&yc(11)};
XF=function(a){this.B=[];this.J=!1;this.C=a;this.F=[];this.G=[];Q.call(this,["div","caption-window",{id:"caption-window-"+a.id},["span","captions-text",{tabindex:0,"aria-live":"assertive"}]]);this.D=this.ma["captions-text"];this.ba=null!=this.D.style["box-decoration-break"]||null!=this.D.style["-webkit-box-decoration-break"];this.type=this.M=this.H=0;this.o=null};
YF=function(a){var b=1+.25*(a.Sf||0);if(0==a.offset||2==a.offset)b*=.8;return b};
ZF=function(a,b){var c={};if(null!=b.Zc||b.background){var d=null!=b.Zc?b.Zc:a.o.Fa.Zc,e=aD(b.background?b.background:a.o.Fa.background);c.background="rgba("+e[0]+","+e[1]+","+e[2]+","+d+")";a.ba&&(c["box-decoration-break"]="clone",c["border-radius"]=a.H/8+"px")}if(null!=b.Sf||null!=b.offset)c["font-size"]=a.M*YF(b)+"px",c["line-height"]="1.32em";d=1;if(b.color||null!=b.Ie)e=aD(b.color||a.o.Fa.color),d=null==b.Ie?a.o.Fa.Ie:b.Ie,e="rgba("+e[0]+","+e[1]+","+e[2]+","+d+")",c.color=e,c.fill=e;if(null!=
b.Pd&&0!=b.Pd){e="rgba(34, 34, 34, "+d+")";d="rgba(204, 204, 204, "+d+")";b.Uo&&(d=e=b.Uo);var f;switch(b.Pd){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=Np()&&Op()?"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.o.Fa.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.Bm&&(c["font-style"]="italic");b.fn&&(c["text-decoration"]="underline");b.Tl&&(c.visibility="hidden");return c};
$F=function(a){for(var b=1,c=0;c<a.length;c++){var d=a[c];v(d.text)&&(b+=d.text.split("\n").length-1,d.D||0==c||b++)}return b};
aG=function(a,b,c,d){a.J=d||a.J;var e,f=a.F[0];if(f&&c.background==f.background&&c.Zc==f.Zc&&!!c.Tl==!!f.Tl&&c.Pd==f.Pd){for(d=0;d<a.F.length;d++)if(hc(c,a.F[d])){e=a.G[d];break}if(!e){d={};for(var k in c)c[k]!=f[k]&&(d[k]=c[k]);e=window.document.createElement("span");Eq(e,ZF(a,d));a.G[0].appendChild(e);d=1}a.G.length=d;a.F.length=d}else a.G.length=0,a.F.length=0,e=window.document.createElement("span"),Eq(e,ZF(a,c)),a.D.appendChild(e);if(v(b.text)){k=b.text.split("\n");f=a.C.Ug.length;for(d=0;d<k.length;d++){var l=
0<d||0==a.B.length||!b.D,m=!f||a.B.length+1>=f||d+1<k.length;!l||0==a.B.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.F.push(c);a.G.push(e);a.B.push(b)}else e.appendChild(b.text)};
bG=function(a){a.J=!1;a.B=[];a.F=[];a.G=[];Df(a.D)};
Fba=function(){this.o=[];this.b=[];this.g=-1};
cG=function(a,b){return b?a.b.concat(a.o):a.b};
eG=function(a,b){switch(b.o){case "asr":dG(b,a.o);break;default:if(b.isDefault||0>a.g)a.g=a.b.length;dG(b,a.b)}};
dG=function(a,b){fb(b,w(a.Ia,a))||b.push(a)};
Gba=function(a,b){var c=eb(a.b,w(b.Ia,b));-1!=c&&(a.g=c)};
fG=function(a){this.mq=!!a;this.b=new Fba;this.B=[]};
Hba=function(a,b){return fb(cG(a.b,!0),function(a){return a.toString()==b})};
gG=function(a){fG.call(this,a.Ci);this.g=null;this.A=void 0;this.o=null;this.B=a.captionTranslationLanguages};
hG=function(){this.la=this.pa=!1;this.V=1;this.o=20971520;this.B=8388608;this.b=window.NaN;this.M=3145728;this.N=62914560;this.S=10485760;this.G=window.NaN;this.Ga=2.5;this.Ba=2;this.Aa=25;this.C=2097152;this.H=!1;this.D=1800;this.ba=2;this.g=1.15;this.A=1.05;this.ka=!0;this.liveChunkReadahead=3;this.Ta=Lp("xboxone")||Qp()||Mp();this.K=25;this.$=!1;this.Qa=Zl&&!0;this.Wa=!0;this.ea=this.Ka=this.F=!1;this.ya=.8;this.ha=this.ua=this.Ca=!1;this.ca=15;this.da=10;this.Ha=1.25;this.Z=this.W=this.Ya=!1;
this.J=0};
Iba=function(a,b){1080<b&&!a.pa&&(a.o=36700160,a.B=5242880,a.M=10485760,a.C=4194304,a.pa=!0);2160<b&&!a.la&&(a.o=104857600,a.la=!0)};
iG=function(){this.na=[]};
jG=function(a,b){E.call(this);this.F=b;this.D=new iG;this.o=!0;this.G=this.A=this.B=this.C=this.b=null;this.g=window.NaN};
Jba=function(a,b){a.C=b};
kG=function(a){var b;if(b=!a.o&&null!==a.b)b=a.b,b=b.b.Wh(b);return b&&!a.A&&!(a.b&&30<a.b.startTime-a.F.getCurrentTime())};
lG=function(a){a.isDisposed();var b;b=a.b;b=zs(b.b,b);if(!a.D.contains(b.b[0].A)){var c=is(vs(b));a.A=Vj(c,{format:"RAW",qc:w(a.H,a),withCredentials:!0});a.B=b;var c=a.D,d=a.B.b[0].A,e=Ab(c.na,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.na[e-1]&&e<c.na.length&&1==c.na[e]-d?(pb(c.na,e),pb(c.na,e-1)):0<e&&1==d-c.na[e-1]?c.na[e-1]=d:e<c.na.length&&1==c.na[e]-d?c.na[e]=d:(wb(c.na,e,0,d),wb(c.na,e+1,0,d)))}a.b=db(b.b)};
Kba=function(a){a.g=Pi(w(function(){kG(this)&&lG(this)},a),1E3);
kG(a)&&lG(a)};
mG=function(a,b){fG.call(this);this.o=a;this.g=new jG(new hG,b)};
nG=function(a){XF.call(this,a);this.type=1};
oG=function(a){XF.call(this,a);J(this.element,"ytp-caption-window-rollup");this.type=2;this.K=0;this.N=window.NaN;this.S=null;this.Z=this.W=void 0;this.$=new ce(this.aD,433,this);F(this,this.$)};
pG=function(a,b,c,d,e,f,k){bq.call(this,a,a+b,{priority:c});this.A=d;this.text=e;this.D=f||!1;this.o=k||null};
qG=function(a,b,c,d,e){bq.call(this,a,a+b,{priority:c});this.id=d;this.params=e;this.Ug=[]};
rG=function(a){return new qG(0,0x8000000000000,0,"0",a||{})};
sG=function(a,b,c,d){fG.call(this,d);c||(c=Kj(a).hl||"",c=c.split("_").join("-"));this.o=Mj(a,{hl:c});this.A=b;this.C={};this.g=null};
tG=function(){this.b=[];this.g=[]};
vG=function(a){tG.call(this);this.g.push(rG());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++)uG(a[b],this.b)};
uG=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=DA("<html>"+(a.firstChild&&a.firstChild.nodeValue||"")+"</html>");wG(c,d,k,e,f,l.firstChild,{},b)};
wG=function(a,b,c,d,e,f,k,l){switch(f.tagName){case "b":k.bold=!0;break;case "i":k.Bm=!0;break;case "u":k.fn=!0;break;case "font":var m=f.getAttribute("color");xG.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 pG(a,b,c,d,n.nodeValue,e||0<m,dc(k)?void 0:k));else{var t={};ra(t,k);wG(a,b,c,d,!0,n,t,l)}}};
yG=function(a){tG.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=rG());var f={};e&&(ra(f,e.params),e=e.params.Fa)&&(f.Fa={},ra(f.Fa,
e));d.getAttribute("rc")&&(f.xh=(0,window.parseInt)(d.getAttribute("rc"),10));d.getAttribute("cc")&&(f.bp=(0,window.parseInt)(d.getAttribute("cc"),10));d.getAttribute("ap")&&(e=(0,window.parseInt)(d.getAttribute("ap"),10),f.si=0>e||8<e?7:e);d.getAttribute("ah")&&(f.ij=(0,window.parseInt)(d.getAttribute("ah"),10));d.getAttribute("av")&&(f.Lj=(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.Eg=1,0==(0,window.parseInt)(d.getAttribute("pd"),10)&&(f.Eg=0));d.getAttribute("bc")&&(f.Fa||(f.Fa={}),f.Fa.backgroundColor=d.getAttribute("bc"));d.getAttribute("bo")&&(f.Fa||(f.Fa={}),f.Fa.Zc=(0,window.parseInt)(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(f.Fa||(f.Fa={}),f.Fa.color=d.getAttribute("fc"));d.getAttribute("sd")&&(f.WE=(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 qG(b,e,0,d,f)}else b=null}this.o[c]=b;this.g.push(b);break;case "text":for(c=this.b.length,uG(a,this.b);c<this.b.length;c++)b=this.b[c],(f=this.o[b.A])&&f.Ug.push(b)}a=a.nextSibling}0==this.g.length&&this.g.push(rG())};
GG=function(a,b){tG.call(this);a.firstChild.getAttribute("format");this.o=!!b;for(var c={vj:{},Rs:{},Ss:{}},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.vj,n=c,t=m,m={},u=t.getAttribute("p");u&&ra(m,n.vj[u]);n=zG(t,"b");null!=n&&(m.bold=n);n=zG(t,"i");null!=n&&(m.Bm=n);n=zG(t,"u");null!=n&&(m.fn=n);n=AG(t,"et");
null!=n&&(m.Pd=n);n=AG(t,"of");null!=n&&(m.offset=n);n=BG(t,"bc");null!=n&&(m.background=n);n=BG(t,"ec");null!=n&&(m.Uo=n);n=BG(t,"fc");null!=n&&(m.color=n);n=AG(t,"fs");void 0!=n&&0!=n&&(m.fontFamily=n);n=CG(t,"sz");void 0!=n&&(m.Sf=n/100-1);n=CG(t,"bo");void 0!=n&&(m.Zc=n/255);t=CG(t,"fo");void 0!=t&&(m.Ie=t/255);k[l]=m;break;case "ws":k=m.getAttribute("id");c.Ss[k]=DG(this,c,m);break;case "wp":k=m.getAttribute("id"),c.Rs[k]=EG(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=FG(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,x=k,u=[],H=CG(n,"t")||0,z=CG(n,"d")||0,G=n.getAttribute("w")||"0",S=!!zG(n,"a");x&&"\n"==x.text&&!S&&(S=!0);for(var x=S?6:5,P=t.vj[n.getAttribute("p")],ta=n.childNodes,ua=0;ua<ta.length;ua++){var Ja=ta[ua];if("s"==Ja.tagName){0<ua&&(S=!0);var cb=Ja,Ja=H,we=z,kk=G,lk=S,Tm=x,mk=cb.textContent?cb.textContent:"",nk=t.vj[cb.getAttribute("p")],cb=CG(cb,"t")||0,Ja=new pG(Ja+cb,we-cb,Tm,
kk,mk,lk,nk)}else Ja=new pG(H,z,x,G,n.textContent?n.textContent:"",S,P);u.push(Ja)}n=u;if(0<n.length)for(k=n[n.length-1],t=d[n[0].A],t||(t=FG(this,c,m,f--),this.g.push(t)),m=0;m<n.length;m++)u=n[m],n[m].A=t.id,t.Ug.push(u),this.b.push(u)}};
CG=function(a,b){var c=a.getAttribute(b);if(null!=c)return(0,window.parseFloat)(c)};
zG=function(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c};
AG=function(a,b){var c=CG(a,b);if(void 0!=c)return c};
BG=function(a,b){var c=a.getAttribute(b);if(null!=c)return xG.test(c),c};
DG=function(a,b,c){var d={},e=c.getAttribute("ws");e&&ra(d,b.Ss[e]);b=AG(c,"mh");null!=b&&(d.Hq=b);b=AG(c,"ju");null!=b&&(d.textAlign=b);b=AG(c,"pd");null!=b?d.Eg=b:a.o&&(d.Eg=1);a=BG(c,"wfc");null!=a&&(d.windowColor=a);c=CG(c,"wfo");void 0!=c&&(d.Jg=c/255);return d};
EG=function(a,b){var c={},d=b.getAttribute("wp");d&&ra(c,a.Rs[d]);d=AG(b,"ap");null!=d&&(c.si=d);d=CG(b,"cc");null!=d&&(c.bp=d);d=CG(b,"ah");null!=d&&(c.ij=d);d=CG(b,"rc");null!=d&&(c.xh=d);d=CG(b,"av");null!=d&&(c.Lj=d);return c};
FG=function(a,b,c,d){d=d||c.getAttribute("id")||"0";var e=CG(c,"t"),f=CG(c,"d")||0x8000000000000,k={};ra(k,EG(b,c));ra(k,DG(a,b,c));return new qG(e,f,0,d,k)};
KG=function(a,b){tG.call(this);this.g.push(rG());for(var c=a.split(Lba),d=1;d<c.length;d++){var e=c[d],f=b;if(""!=e&&0!=e.search(Mba)){var k=e.split(Nba),l=0,m=k[l++].match(HG);m||(m=k[l++].match(HG));m&&(e=IG(m[1],f)||0,f=(IG(m[3],f)||0)-e,k=k.slice(l).join("\n"),l=DA("<html>"+k+"</html>"),l.getElementsByTagName("parsererror").length?this.b.push(new pG(e,f,5,"0",k,!1)):JG(this,e,f,5,"0",!1,l.firstChild,{},this.b))}}};
JG=function(a,b,c,d,e,f,k,l,m){switch(k.tagName){case "b":l.bold=!0;break;case "i":l.Bm=!0;break;case "u":l.fn=!0}for(var n=0;n<k.childNodes.length;n++){var t=k.childNodes[n];if(3==t.nodeType)m.push(new pG(b,c,d,e,t.nodeValue,f||0<n,dc(l)?void 0:l));else{var u={};ra(u,l);JG(a,b,c,d,e,!0,t,u,m)}}};
IG=function(a,b){for(var c=a.split(":"),d=0,e=0;e<c.length;e++)d=60*d+(0,window.parseFloat)(c[e]);return 1E3*d+b};
Pba=function(a,b,c){if("WEBVTT"==a.substring(0,6))return new KG(a,c||0);a=DA(a);return a&&a.firstChild?"timedtext"==a.firstChild.tagName?3==(0,window.parseInt)(a.firstChild.getAttribute("format"),10)?(b=Oba.test(b.g),new GG(a,b)):new yG(a):new vG(a):new tG};
MG=function(a){eq.call(this,a,"subtitlesModuleData");this.Ea="captions";this.logEvent="cc";WE();this.ca=!0;this.$=this.ba=!1;this.T=R(a);this.B=null;this.J=BE(a);this.X=a;this.A={Fa:{}};this.C={Fa:{}};this.Z=[];this.N={};this.S={};this.ka=this.K=this.ea=!1;var b=a=this.g=this.o=this.G=this.H=null;LG(this)||(a=new ce(this.hn,0,this),F(this,a),b=new ce(this.xE,2E3,this),F(this,b));this.ha=a;this.pa=b;this.V=new nr(this);F(this,this.V);this.da=null};
LG=function(a){return"3"!=a.T.o?!1:!!a.X.app.o.b.textTracks};
NG=function(a,b){LG(a);if(b&&a.B.captionTracks.length){var c=a.b.Uh().No;if(2==c||3==c)return!0}if(1==a.T.da||1==a.B.ff||"alwayson"==a.B.zd("yt:cc")||LG(a))return!0;c=kq(a,"module-enabled");return null!=c?!!c:"on"==a.B.zd("yt:cc")};
OG=function(a){return LG(a)?!a.B.sa:a.B.captionTracks.length&&a.b.Uh().Oi?!0:NG(a,!0)};
QG=function(a){a.g&&a.g==a.o.te()&&PG(a);a.o.Em(w(a.Ir,a),!0,LG(a)?"vtt":void 0,a.b.Uh())};
SG=function(a){LG(a);a.o.te()&&RG(a,a.o.te())};
PG=function(a){a.g&&(a.g=null,LG(a)||(hq(a),a.Z=[],a.g=null,a.hn()),a.o.gn())};
RG=function(a,b,c){LG(a);!b||a.g&&b.Ia(a.g)||(null!=c&&(a.K=c),a.F?(a.g=b,TG(a),a.Qm("control_subtitles_set_track",wu(b))):(PG(a),a.g=b,a.o.Dm(b,w(a.Jr,a)),a.ba=!0,a.b.va("captionschanged",wu(b))))};
VG=function(a,b,c){b.migrated=!0;var d=UG.Fa;a.A={};ra(a.A,UG);a.A.Fa={};ra(a.A.Fa,d);a.C={Fa:{}};var e=b.backgroundOverride?a.C:a.A,f=b.background||d.background;xG.test(f);e.Fa.background=f;e=b.colorOverride?a.C:a.A;f=b.color||d.color;xG.test(f);e.Fa.color=f;e=b.windowColorOverride?a.C:a.A;f=b.windowColor||UG.windowColor;xG.test(f);e.windowColor=f;e=b.backgroundOpacityOverride?a.C:a.A;f=b.backgroundOpacity;null==f&&(f=d.Zc);e.Fa.Zc=f;e=b.fontSizeIncrementOverride?a.C:a.A;f=b.fontSizeIncrement;null==
f&&(f=d.Sf);e.Fa.Sf=f;e=b.textOpacityOverride?a.C:a.A;f=b.textOpacity;null==f&&(f=d.Ie);e.Fa.Ie=f;e=b.windowOpacityOverride?a.C:a.A;f=b.windowOpacity;null==f&&(f=UG.Jg);e.Jg=f;e=b.charEdgeStyleOverride?a.C:a.A;f=b.charEdgeStyle;null==f&&(f=d.Pd);e.Fa.Pd=f;e=b.fontFamilyOverride?a.C:a.A;f=b.fontFamily;null==f&&(f=d.fontFamily);e.Fa.fontFamily=f;a.Ms();c&&lq(a,"display-settings",b)};
WG=function(a){var b=UG.Fa,b={background:b.background,backgroundOpacity:b.Zc,charEdgeStyle:b.Pd,color:b.color,fontFamily:b.fontFamily,fontSizeIncrement:b.Sf,textOpacity:b.Ie,windowColor:UG.windowColor,windowOpacity:UG.Jg};a=kq(a,"display-settings");for(var c in a)null!=a[c]&&(b[c]=a[c]);return b};
XG=function(a,b,c){var d={};ra(d,kq(a,"display-settings"));ra(d,b);VG(a,d,c)};
ZG=function(a){if(a.loaded){if(!LG(a)){var b=a.pa;b.isActive()&&de(b)}lq(a,"module-enabled",!1);PG(a);YG(a.b);a.K=!1;a.F?(TG(a),a.Qm("control_subtitles_set_track")):a.b.va("captionschanged",{});LG(a)||SG(a)}};
Qba=function(a){return MG.prototype.rb(a)?new MG(a):null};
$G=function(a,b){LG(a);if(b&&!a.G){var c=rG({Eg:0});a.G=new XF(c);lr(a.b,a.G.element,4);var c=new pG(0,0,0,a.G.C.id,O("YTP_SAMPLE_SUBTITLES")),d=a.J.Da().width,e=AE(a.J,!0).height;a.G.Le(a.A,a.C,d,e,[c])}else!b&&a.G&&(a.G.dispose(),a.G=null)};
Rba=function(a,b){return a&&v(a)&&xG.test(a)?a:b};
Sba=function(a,b){return ha(a)&&!(0,window.isNaN)(a)?Math.max(0,Math.min(1,(0,window.parseFloat)(a))):b};
Tba=function(a,b){if(a&&v(a)){var c=aH.indexOf(a);return-1!=c?c:b}return b};
Uba=function(a,b){if(a&&v(a)){var c=bH.indexOf(a);return-1!=c?c:b}return b};
Vba=function(a,b){return ha(a)&&!(0,window.isNaN)(a)?Ye(a,-2,4):b};
TG=function(a){var b={};a.g&&(b=wu(a.g));a.b.va("captionschanged",b)};
Wba=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;Ox.test(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.g=a.ypc_item_url;this.videoId=a.ypc_vid};
cH=function(){yq.call(this,["div",["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["button",["ytp-drawer-close-button","ytp-button"]],["button",["ytp-drawer-open-button","ytp-button"]]]);var a=this.ma["ytp-drawer-close-button"];vh(a,Bh());var b=this.ma["ytp-drawer-open-button"];this.R(a,"click",this.B);this.R(b,"click",this.show);this.o=new ce(qa(ie,this.element,"ytp-drawer-closed"),0);F(this,this.o);this.xb(null);this.fa()};
dH=function(a,b,c){jk.call(this);this.A=0==c;this.g=new cH;this.g.subscribe("close-clicked",this.C,this);F(this,this.g);this.B=window.document.createElement("div");J(this.B,"html5-ypc-endscreen");this.o=new Q(["div","html5-ypc-module",["div","html5-ypc-action-heading","{{heading}}"],["div","html5-ypc-thumbnail","{{thumbnail_element}}"],["div","html5-ypc-title","{{title}}"],["div","html5-ypc-description","{{description}}"],["button",["html5-ypc-purchase","ytp-button"],"{{button_label}}"]]);F(this,
this.o);this.F=this.o.ma["html5-ypc-purchase"];this.o.R(this.F,"click",this.D,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.o.update({heading:b.heading,title:c,thumbnail_element:d,description:b.description,button_label:b.o});this.b(a)};
eH=function(a){a.A||(a.B.appendChild(a.o.element),a.g.xb(null),vq(a.B,"block"))};
Xba=function(a){a.A||a.g.show()};
fH=function(a){eq.call(this,a);this.logEvent=this.Ea="ypc";this.o=this.B=this.g=null;this.C=window.NaN;this.A=null};
Yba=function(a){return py(a.getVideoData(),"ypc_module")?new fH(a):null};
Zba=function(a,b,c){var d=1E4;c.A.hasOwnProperty("ypc_overlay_timeout")&&(d=(0,window.parseInt)(c.A.ypc_overlay_timeout,10));a.o=new dH(a.A.element,a.g,d);a.o.subscribe("ypcContentRequest",a.mB,a);a.o.subscribe("ypcModuleCloseClicked",a.jC,a);kz(b)&&(b=new bq(0x8000000000000,0x8000000000000,{priority:2}),a.qb([b]));Xba(a.o);Qi(a.C);a.C=Oi(w(function(){if(this.o){var a=this.o;a.A||a.g.fa()}},a),d)};
$ba=function(){var a=Ej("yt-player-volume")||{},b=a.volume;return{volume:(0,window.isNaN)(b)?100:Ye(Math.floor(b),0,100),muted:!!a.muted}};
gH=function(){return Ej("yt-player-quality")||"auto"};
iH=function(a,b,c){v(a)&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});b=a;c=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);b.videoId=c&&c[2]?c[2]:null;return hH(a)};
hH=function(a,b,c){if(ka(a)){b="endSeconds startSeconds mediaContentUrl suggestedQuality videoId two_stage_token".split(" ");c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}return{videoId:a,startSeconds:b,suggestedQuality:c}};
jH=function(a){this.b=window.Float32Array?new window.Float32Array(a):Array(a);this.g=a-1};
kH=function(a,b){a.g=(a.g+1)%a.b.length;a.b[a.g]=b};
aca=function(){this.A=new jH(50);this.g=null;this.B=this.o=0;this.b=[]};
bca=function(a,b){0!=a.b.length&&(b.B=a.b.length,b.F=$e(a.b,function(a,b){return a+b},0),b.D=db(a.b),b.H=Math.min.apply(Math,a.b),b.G=Math.max.apply(Math,a.b),a.b=[])};
cca=function(a,b){if(a.g&&!(b>=a.o&&b<a.B)){var c=a.g.qf(b);a.o=a.g.Qe(c);a.B=a.o+a.g.Pe(c);c=C()/1E3-cs(a.g,c);kH(a.A,c);a.b.push(c)}};
lH=function(a){this.B=Math.exp(Math.log(.5)/a);this.g=this.A=0};
dca=function(a,b){this.b=a;this.g=b;this.o=1};
oH=function(a,b,c,d){d/=a.o;var e=mH(a.b)+1/$y(a.b),f;f=Math.max(.9*(d-3),nH(a.b)+8192*e);c=f/e*a.g.ya/(b+c);c=Math.min(c,d);c=Math.max(a.g.Ba,Math.min(a.g.Aa,c));return Math.min(a.g.C,Math.max(65536,Math.ceil(c*b)))};
pH=function(a){var b=$y(a.b);a=1E-9+nH(a.b)+1048576*mH(a.b);return b*Math.min(1,1048576/(b*a))};
qH=function(a){return pH(a)/a.o};
rH=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
eca=function(a,b,c,d){this.S=a;this.F=b;this.C=c;this.G=d;this.o=this.J=this.b=null;this.B="i";this.K=-1;this.D=this.A=null;this.g=[];this.M=this.N=0;this.V=null;this.H=!1};
fca=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,sH(a,b),tH(a),a.o=uH(a),new rH(vH(a),a.o,c);var d=a.b.Ia(b);if("m"==a.B&&a.b.isLocked()&&d)return null;"r"!=c||d||(a.K=-1);sH(a,b);b=uH(a);if("r"==c&&b==a.o){if(d)return null;a.o=b;return new rH(vH(a),b,c)}a.B=c;wH(a);return null};
xH=function(a){return!!a.M&&9E4>=Dt()-a.M};
vH=function(a){yH(a);return a.A};
uH=function(a){yH(a);return a.D};
wH=function(a){a.o&&a.D&&zH(a,a.o.info)<zH(a,a.D.info)&&(a.H=a.H||a.D.info.video.width>1.6*a.o.info.video.width||"r"==a.B)};
AH=function(a){var b=a.B;a.B="a";a.K=Dt();a.H=!1;return new rH(a.J,a.o,b)};
yH=function(a){if(!(!a.b.isLocked()&&-1<a.K&&8E3>Dt()-a.K)){a.M&&!xH(a)&&(a.M=0,sH(a,a.b));tH(a);var b=qH(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.N,a.g.length-1),d=b/a.F.A-zH(a,a.A.info);0<c&&!(zH(a,a.g[c])<=d);c--);for(b=b/a.F.g-zH(a,a.A.info);c<a.g.length-1&&!(zH(a,a.g[c+1])>=b);c++);a.N=c;a.D=a.C.b[a.g[c].id];wH(a)}}};
sH=function(a,b){a.b=b;var c=a.G.videoInfos;if(!a.b.isLocked()&&(c=he(c,function(a){return zH(this,a)>this.F.G?!1:!this.C.b[a.id].A},a),xH(a))){var c=he(c,function(a){return a.id!=this.V.id},a),d=he(c,function(a){a=wr(a);
return"140"==a||"134"==a||"243"==a});
d.length&&(c=d)}c.length||(c=a.G.videoInfos);d=he(c,b.A,b);d.length||(d=[c[0]]);d.sort(w(function(a,b){return zH(this,a)-zH(this,b)},a));
for(c=1;c<d.length;c++){var e=d[c-1],f=d[c];e.video.width>f.video.width?(pb(d,c),c--):zH(a,e)*a.F.g>zH(a,f)&&(pb(d,c-1),c--)}a.g=d;Iba(a.F,d[d.length-1].video.pE)};
gca=function(a,b){if(b)a.A=a.C.b[b];else{var c=fb(a.G.b,function(a){return!!a.Rb&&a.Rb.isDefault}),c=c||a.G.b[0];
a.A=a.C.b[c.id]}tH(a)};
tH=function(a){if(!a.A.info.Rb&&(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=qH(a.S)/a.F.g;b=zH(a,a.A.info)+zH(a,a.g[b])>c}b&&(a.A=a.C.b[a.G.b[1].id])}};
hca=function(a){var b=a.F.A,c=qH(a.S)/b-zH(a,a.A.info),b=gb(a.g,function(a){return zH(this,a)<c},a);
0>b&&(b=0);a.N=b;a.D=a.C.b[a.g[b].id]};
zH=function(a,b){return a.F.Ca&&b.A?b.A:b.b};
ica=function(){this.b=this.g=0;this.o=[]};
BH=function(a,b){return(a[b]<<24)+(a[b+1]<<16)+(a[b+2]<<8)+a[b+3]};
CH=function(){this.b=this.g=!1};
jca=function(a,b){this.g=a;this.b=[];this.o=b};
DH=function(a){return a.b.length?a.b[0]:null};
EH=function(a){return a.b.length?a.b[a.b.length-1]:null};
kca=function(a){return Sh(a.b,function(a){return a.info.C})};
lca=function(a,b){if(b){var c=eb(a.b,function(a){return a.info.C});
-1!=c&&(a.b=vb(a.b,0,c+1))}else a.b=[]};
mca=function(a){if(!a.b.length)return 0;for(var b=a.b[0].o.length,c=1;c<a.b.length;c++)a.b[c].b!=a.b[c-1].b&&(b+=a.b[c].o.length);return b};
nca=function(a){return N(a.b,function(a){return a.info})};
FH=function(a,b){this.W=a;this.g=b;this.A=[];this.o=new jca(a,b);this.B=this.b=null;this.C=0;this.N=b.info.b;this.J=this.K=!1;this.G=new CH;this.F=null;this.D=0;this.H=b.tq()};
HH=function(a,b){a.A.push(b);a.b=db(b.info.b);a.C+=GH(b)};
KH=function(a){for(;a.A.length&&6==a.A[0].state;)IH(a,a.A.shift());a.A.length&&JH(a.A[0])&&!os(a.A[0].info.b[0])&&IH(a,a.A[0])};
IH=function(a,b){if(!b.N&&b.o){var c;c=a.C;b.N=!0;c=c-ws(b.info)+GH(b);a.C=c}if(JH(b)){c=b.o;var d=c.b;c.b=[];c.A=db(d).info;D(d,a.S,a)}};
LH=function(a){return!(!a.o.b.length||1!=DH(a.o).info.b.info.g||0!=DH(a.o).info.o)};
MH=function(a){var b=rt(DH(a.o)),c=ct(b);return(!c||c>b.byteLength)&&1==a.o.b.length};
OH=function(a,b,c){MH(a);var d=DH(a.o);a=NH(a);if(!a)return null;c=c||d.info.b.index.xl(d.info.A);return(b=Ss(a,c,b))?b:null};
QH=function(a){var b=DH(a.o),c=NH(a);if(c&&(c=ct(c)))if(c>rt(b).byteLength){var d=a.o.b[1];PH(a,b.range);PH(a,Wr(d.range.start,c-b.range.length))}else PH(a,Wr(b.range.start,c))};
NH=function(a){var b=DH(a.o),c=rt(b),d=ct(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=ct(new window.DataView(a.buffer));if(!d||d>a.byteLength)return null;c=new window.DataView(a.buffer.slice(0,d))}return c};
PH=function(a,b){for(var c=a.o,d=[],e;c.b.length;){if(c.b[0].range.end>b.end){var f;e=c.b[0];var k=b.end-c.b[0].range.start+1,k=Math.min(k,e.info.g);f=new ms(e.info.type,e.info.b,e.info.range,e.info.A,e.info.startTime,e.info.duration,e.info.o,k,!1);var l=Wr(e.range.start,k);f=new qt(f,e.b,l,e.o,e.B);k=new ms(e.info.type,e.info.b,e.info.range,e.info.A,e.info.startTime,e.info.duration,e.info.o+k,e.info.g-k,e.info.F);l=new Ur(l.end+1,e.range.end);e=new qt(k,e.b,l,e.o,!1);f=[f,e];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&&(D(d,a.V,a),c=db(d),a.o.b.length&&c.b==DH(a.o).b||(a.C-=c.o.length))};
TH=function(a,b){var c=RH(a,b);if(0<=c)return c;a.b=a.g.eh(b).b[0];SH(a)&&(a.B=null);a.F=null;a.D=0;return a.b.startTime};
oca=function(a,b){var c=a.o.b.length?EH(a.o):a.B;if(b&&c&&!c.C){for(var d=c.A,c=[],e=0;e<a.A.length;e++){var f=a.A[e];Sh(f.info.b,function(a){return a.A==d})?c.push(f):a.M(f)}a.A=c;
a.b=a.A.length?db(db(a.A).info.b):null}else UH(a)};
pca=function(a){a.C=0;D(a.A,function(a){this.C+=GH(a)},a);
a.C+=mca(a.o)};
VH=function(a,b){var c=!!a.g.info.video&&!!a.B&&!a.B.C,d=1<=b&&c;lca(a.o,d);a.K=d;oca(a,2<=b&&c);pca(a)};
WH=function(a){a.G.g||a.G.start();VH(a,0);SH(a)&&(a.B=null)};
SH=function(a){return!!a.B&&a.B.F};
XH=function(a){var b=[];a.B&&b.push(a.B);b=sb(b,nca(a.o));D(a.A,function(a){D(a.info.b,function(a){3!=a.type&&4!=a.type||b.push(a)})});
a.b&&!ns(a.b,db(b))&&b.push(a.b);return b};
YH=function(a){if(!a.b||!a.b.g)return!1;a=XH(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};
RH=function(a,b){if(YH(a)){var c;a:{c=XH(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};
ZH=function(a){return Sh(a.A,function(a){return 4<=a.state})};
$H=function(a){return!(!a.b||!a.g.jd()||a.b.b==a.g)};
aI=function(a){return $H(a)&&a.b.b.info.b<a.g.info.b};
UH=function(a){D(a.A,a.M,a);a.A=[];a.b=null};
bI=function(a){return!!a.b&&-1!=a.b.A&&a.b.A<a.g.index.Wf()};
cI=function(a){if(a.b){var b=EH(a.o);b&&3==b.info.type&&b.info.A>a.b.A&&(a.b=b.info)}};
qca=function(a,b){this.o=a;this.C=this.B=!1;this.length=b;this.g=0;this.b=[];if(1==this.o.length&&!this.o[0].range){var c=this.o,d;d=this.o[0];var e=Wr(0,this.length);d=new ms(d.type,d.b,e,d.A,d.startTime,d.duration,d.o,e.length,d.F);c[0]=d}this.A=null};
rca=function(a){var b=a.length-a.g;D(a.b,function(a){b+=a.range.length});
return b};
dI=function(a,b,c,d,e){this.status=0;this.F=this.g=null;this.H=d;this.C=c;this.K=e;this.o=[];this.D=null;this.B=this.b=0;this.qa=sca++;this.J=window.NaN;this.A=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then(Ni(w(this.sE,this)),Ni(w(this.hk,this)));C();this.G=!1;b()};
fI=function(a){a.o.push(a.D.subarray(0,a.b));a.b=0;a.D=a.G?null:new window.Uint8Array(eI(a))};
gI=function(a){a.A.read().then(Ni(w(a.XA,a)),Ni(w(a.hk,a)));var b=C();a.J=b};
eI=function(a){a=a.Pg();return Math.max(16384,.125*a)};
hI=function(a,b,c,d,e){this.status=0;this.g=null;this.o=this.A=!1;this.b=new window.XMLHttpRequest;this.b.open("GET",a);this.b.responseType="arraybuffer";this.b.withCredentials=!0;this.b.onreadystatechange=w(this.uG,this);this.B=d;this.D=c;this.C=e;a=Ni(w(this.sG,this));this.b.addEventListener("load",a,!1);this.b.addEventListener("error",a,!1);this.b.send();b();this.b.addEventListener("progress",Ni(w(this.tG,this)),!1)};
iI=function(a,b,c){this.A=a;this.info=b;this.timing=c;this.state=1;this.b=null;this.J=this.D=this.H=0;this.C=window.NaN;this.F=this.g=this.K=null;this.B=0;this.o=null;this.N=!1;this.G=null;this.S=window.NaN;this.M=0};
jI=function(a){var b;b=a.timing;b={rt:((C()-b.g)/1E3).toFixed(2),lb:b.b,pt:(b.K/1E3).toFixed(2),pb:b.H};b.shost=a.g?Or(a.g.b):"";b.rn=a.H.toString();a.B&&(b.rc=a.B.toString());410!=a.B&&500!=a.B&&503!=a.B||(b.isPotentialFormatUnavaliable="true");return b};
kI=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};
lI=function(a,b){a.state=b;if(5<=a.state){var c=a.timing;c.A&&(c.A=!1)}a.K&&a.K(a)};
mI=function(a){return Eg(a.info.b,function(a){return 3==a.type})};
nI=function(a){if(a.b){var b=a.b;a.b=null;b.Ht()}a=a.timing;a.A&&(a.A=!1)};
pI=function(a){var b=a.b.Se("content-type"),c=a.b.Pg();return(!oI(a)||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)};
JH=function(a){return 2<=a.state&&!!a.o&&!!a.o.b.length};
qI=function(a,b){oI(a)&&!a.b.Pg()&&(a.A.F=!1,a.A.ea=!1);if(b||oI(a)&&!pI(a)){if(!a.o){var c=b?a.b.tl():a.b.Pg();a.o=new qca(a.info.b,c)}for(;a.b.xq();)for(var c=a.o,d=a.b.Fs(),e=0,f=0,k=0;k<c.o.length;k++){var l=c.o[k];if(e+l.g<=c.g)e+=l.g;else{var m;var n=c;m=l;1==m.type?(n.B=!0,m=!1):3==m.type||4==m.type?(m=n.B&&!n.C,n.C=!0):m=!1;var n=c,t=l,u=c.g-e,x=f,H=d;m=m||l.b.Jt();var z=Math.min(t.g-u,H.length-x),u=new ms(t.type,t.b,t.range,t.A,t.startTime,t.duration,t.o+u,z,t.o+u+z==t.range.length&&t.F),
G=H.buffer,x=H.byteOffset+x,H=Wr(H.byteOffset,H.length);1==t.type?(G.slice?t=G.slice(x,z):(t=new window.Uint8Array(G,x,z),t=(new window.Uint8Array(t)).buffer),x=Wr(0,z)):(t=G,x=Wr(x,z));n.b.push(new qt(u,t,x,H,m));n=z;c.g+=n;f+=n;e+=l.g;if(f==d.length)break}}}};
GH=function(a){return a.o&&a.N?rca(a.o):ws(a.info)};
oI=function(a){return!!(a.A.F||a.A.ea&&a.b&&a.b instanceof dI)};
tca=function(a,b,c){this.o=a;this.H=b;this.M=c;this.b=this.C=this.g=window.NaN;this.G=this.J=this.A=!1;this.B=0;this.D=this.K=window.NaN};
tI=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&&rI(a.o,.05,e)):rI(a.o,d,e),a.G=!0)}else 8192<=c&&(sI(a.o,(b-a.g)/1E3),a.A=!0);a.C=b;a.b=c};
uI=function(a){var b=a.H-a.b,b=1E3*(b*a.F.tailDelay+b/a.F.byterate),c=C(),b=8192<=a.b?b+c:b+Math.max(c,a.g+1E3*a.F.delay);a.D=b};
vI=function(a,b,c,d){jk.call(this);this.F=a;this.A=b;this.B=c;this.o=this.g=null;this.J=new dca(a,b);this.b=null;this.D=new eca(this.J,b,this.B,d);this.C=this.ea=this.N=this.da=window.NaN;this.K=!1;this.H=window.NaN;this.ka=0;this.G=!1;this.la={};this.S="";this.Z=this.$=0;this.ha=b.Ka?new ica:null;this.ca=this.ba=window.NaN;this.pa=new lH(5);this.ua=w(function(a){this.A.Z&&(this.ld(!1,"qoe.avsync",a),this.A.Z=!1)},this)};
yI=function(a){0==a.C&&(a.g.g.o||wI(a,a.g,!0),a.o.g.o||wI(a,a.o,!0));a.seek(a.C);xI(a,"gv")};
AI=function(a){a.b&&a.b.b&&a.b.b.removeEventListener&&(a.b.b.removeEventListener("updateend",w(a.Uc,a),!1),a.b.g.removeEventListener("updateend",w(a.Uc,a),!1),a.b.b.removeEventListener("error",w(a.nj,a,!0),!1),a.b.g.removeEventListener("error",w(a.nj,a,!1),!1));a.b=null;a.G=!0;zI(a)};
BI=function(a){a.b&&Jw(a.b)&&AI(a)};
CI=function(a,b,c){if(!b.G.g||!c.remove)return!1;if(c.updating)return!0;if(!b.G.b&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.G.b=!0;b.G.reset();a.U("seekrequired");return!1};
FI=function(a,b,c){if(a.G&&(!a.A.J||!DI(a.F)))return!1;if(a.B.g){if(0<b.A.length)return!1;if(b.H)return!0}if(!b.b){if(!b.g.jd())return b.g.o||wI(a,b,!1),!1;TH(b,a.C)}var d=b.A.length+c.A.length;(ZH(b)||ZH(c)||a.B.isLive)&&--d;if(2<=d+1)return!1;d=b.b;4==d.type&&d.b.jd()&&(b.b=db(d.b.Bj(d)),d=b.b);if(!d.F&&!d.b.Wh(d)||d.b.info.audio&&4==d.type)a=!1;else if(aI(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=EI(a,b,!0);a.D.b.isLocked()||
(c=(Dt()-a.ka)/1E3,c=30+a.A.ba*c,b=Math.min(b,c));if(a.A.ha){var e=Dt();(0,window.isNaN)(a.ba)||(0,window.isNaN)(a.ca)||(c=a.ca+(e-a.ba)/1E3,b=Math.min(b,c));a.ba=e;a.ca=b}c=d>a.C+b}a=c?!1:!0}return a};
GI=function(a,b,c){if(!a.b||Iw(a.b)||Mw(a.b)){var d=a.C,e=a.J;c=oH(e,b.g.info.b,c.g.info.b,0);e=nH(e.b)+c*mH(e.b)+c/$y(e.b);a:{d+=Math.max(e,e+5-c/b.g.info.b);a=a.D.H;if(b.A.length){if(b.A[0].info.b[0].startTime<=d)break a;UH(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.o.length))}b.C=e-f;b.A.length?b.b=db(db(b.A).info.b):b.o.b.length?b.b=EH(b.o).info:b.b=b.B;a&&b.b&&d<b.b.startTime&&(b.F=null,b.D=0,b.b=b.g.eh(d,
!0).b[0])}}};
II=function(a,b,c){FI(a,b,c);var d=b.b;if(b.H)d=b.g.eh(window.Infinity);else if(b.b.b.jd()){!aI(b)||a.A.H||a.B.g||(GI(a,b,c),b.b||TH(b,a.C));var d=b.b,e=d.D-a.C,f=!d.range||0==d.g&&0==d.o?0:d.range.length-(d.o+d.g);$H(b)&&(aI(b)||e<=a.A.K)&&0==f&&(a.B.g?d.b=b.g:(f=d.startTime+vI.b,d.g&&(f+=d.duration),TH(b,f),d=b.b));d.b.Mf()?(c=oH(a.J,d.b.info.b,c.g.info.b,e),e=$H(b),c=Ct(d.b,d,c),c.range&&1<c.b.length&&(e?c=Ct(d.b,d,c.b[0].g):(e=c.b[c.b.length-1],f=e.g/c.range.length,!e.C&&.4>f&&(c=Ct(d.b,d,c.range.length-
e.g)))),d=c):d=zs(d.b,d)}else d.b.Mf()?(c=oH(a.J,b.g.info.b,c.g.info.b,0),d=Ct(d.b,d,c)):d=zs(d.b,d);HH(b,HI(a,d))};
HI=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=AH(c);break a}}else c.J=d;c=null}c&&a.U("videoformatchange",c)}c=ws(b);var d=a.F,e=a.J,f=Math.min(e.g.Ga,nH(e.b)),e=pH(e);c=new iI(a.A,b,new tca(d,c,c-f*e));d=w(a.ZC,a);c.isDisposed();c.K=d;c.start(Math.max(0,b.b[0].B-a.C));return c};
uca=function(a,b){var c=b.o.b;return Eg(c,function(a){return tt(a)},a)&&!(c[0]&&c[0].info.b.xm())};
vca=function(a,b){D(b.o.b,function(a){os(a.info)&&a.info.b.Hp(a);if(this.B.o&&3==a.info.type&&1==a.info.b.info.g&&0==a.info.o){var d;d=rt(a);if(d=Ms(d,0,1701671783)){bt(d);bt(d);at(d);at(d);at(d);at(d);var e=new window.Uint8Array(new window.ArrayBuffer(d.size-d.b)),f=new window.Uint8Array(d.data.buffer,d.offset+d.b,d.size-d.b);e.set(f);d.b=d.size;d=String.fromCharCode.apply(String,new window.Uint8Array(e.buffer));d=(d=Ks(d))?new Ls(d):null}else d=null;a.g=d;a.g&&this.B.g&&(b.M&&this.pa.b(1,b.M),a.info.A=
a.g.g,a.info.F=a.g.o);this.A.ua&&dt(rt(a),1701671783)}},a)};
JI=function(a){if((0,window.isNaN)(a.da)){var b=w(a.Uc,a);a.da=Oi(b,0)}};
KI=function(a){if((0,window.isNaN)(a.N)){var b=w(function(){this.N=window.NaN;this.Uc()},a);
a.N=Oi(b,1E3)}};
NI=function(a,b,c,d,e){if(c.updating)return!0;var f=DH(b.o);if(!f)return!1;!b.B||b.B.C||ps(b.B,f.info)||(b.B=null,Iw(a.b)&&c.abort(),c.b=null);var k=a.B.isLive&&wt(f),l=!a.B.o&&b.W.$&&LH(b);a.A.W&&a.B.o&&null!=c.b&&c.b==f.info.b.b&&0==f.info.o&&1==f.info.b.info.g&&(dt(rt(f),1836019574),dt(rt(f),1718909296),f.B=!1);if(!a.B.o||0==f.info.o)if(k=k||a.B.g||f.B,l||!k){if(k=f.info.b.b,c.b==k?k=!1:(LI(a,c,k),c.b=k,a.U("initsegment",c.b),k=c.updating),k)return!0}else c.b=null;k=EI(a,b,!1);k=a.C+k;null!==d&&
0<=d&&(k=Math.min(k,d));if(b.K)d=DH(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.g.$)break}m--;m=d.b[m];var n=m.range.end,t=m.info.D-k;if(d.o.Mf()&&d.o.info.audio&&0<=d.g.V&&t>d.g.V){k=Math.floor((k-m.info.B)/m.info.G*m.info.g);if(0==k){d=null;break a}n=m.range.start+k-1}d=new Ur(d.b[0].B?0:d.b[0].range.start,n)}if(!d)return!1;if(l){if(MH(b))return!1;if(k=OH(b,a.ua))return MI(a,c,new window.Uint8Array(k),
f,b)?(QH(b),!0):!1}k=new window.Uint8Array(f.b,d.start,d.length);if(a.ha&&f.info.b.info.video&&1==f.info.b.info.g&&(m=a.ha,n=k,0==f.info.o&&(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,x=t,H=n.length;if(u.g+7>=H){for(var z=u.g;z<H;z++)u.o.push(x.getUint8(z));u=!0}else{if(0<u.o.length){for(z=0;8>u.o.length;z++)u.o.push(x.getUint8(z));z=BH(u.o,0);x=BH(u.o,4);u.o=[]}else z=x.getUint32(u.b),x=x.getUint32(u.b+
4);if(1836019558==x||1836019574==x||1718909296==x||1936286840==x)u.g+=z,u.b=u.g;else if(1835295092==x)u.g+=z,u.b+=8;else{u.g=window.NaN;u=!0;break a}u=u.b>=H}}else a:if(u=m,H=t,x=n.length,u.b+5>=x){for(z=u.b;z<x;z++)u.o.push(H.getUint8(z));u=!0}else{if(0<u.o.length){for(z=0;6>u.o.length;z++)u.o.push(H.getUint8(z));z=BH(u.o,0);12==z&&6==u.o[4]&&45==u.o[5]&&H.setUint8(u.b+5,63);u.b+=z+4;u.o=[]}for(;u.b<u.g&&u.b+5<x;){z=H.getUint32(u.b);if(0>=z){u.g=window.NaN;u=!0;break a}12==z&&6==H.getUint8(u.b+4)&&
45==H.getUint8(u.b+5)&&H.setUint8(u.b+5,63);u.b+=z+4}u=u.b>=x}(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.J&&0==f.info.o&&0<f.info.startTime)ut(f,0);else if(a.B.o&&0==f.info.o){a:if(LH(b)&&!wt(DH(b.o))&&MH(b))e=!1;else{l=null===b.F?f.info.startTime:b.F;if(0==ut(f,l)){var G=rs(f.info);G.smst=1;a.ld(!0,"fmt.unparseable",G)}else if(n=vt(f),b.F=l+n,a.B.g&&f.info.b.info.video){n=new $r(f.info.A,
l,n,f.g.ingestionTime+(a.pa.o()||0),"sq/"+f.info.A);t=a.B;u=!1;for(G in t.b)n.b>t.b[G].index.Pb()&&(t.b[G].index.na.push(n),u=!0);u&&(G=f.g,G=G.b["Cuepoint-Type"]?new As((0,window.parseFloat)(G.b["Cuepoint-Playhead-Time-Sec"])||0,(0,window.parseFloat)(G.b["Cuepoint-Total-Duration-Sec"])||0,G.b["Cuepoint-Context"]):null)&&(G.Md+=l,l=a.B,l.F.push(G),l.U("cuepointsadded"))}G=0;f.info.b.info.video&&null!==e&&f.info.duration&&(l=1E3*(vt(f)-f.info.duration),e-=b.D+l,25<=Math.abs(e)&&(G=e/1E3));l=vt(f);
e=l+G;G&&!wt(f)&&(n=rs(f.info),n.deltaOffsetMs=1E3*(l-f.info.duration).toFixed(3),n.cumOffsetMs=b.D.toFixed(3),n.finalDurSecs=e.toFixed(3),a.ld(!1,"qoe.avsync",n));if(LH(b)&&!wt(DH(b.o))&&G&&0<e){if(b.D+=1E3*(l-f.info.duration+G),b.F+=G,G=new window.DataView(f.b),G=(G=Ts(G,1936286840))?G.data.getUint32(G.offset+16):window.NaN,(0,window.isNaN)(G)&&(G=f.info.b.b,l=new window.DataView(f.b),G=(l=Ts(l,1836476516))?Us(l):G?Vs(G):window.NaN),e=OH(b,r,e*G)){if(MI(a,c,new window.Uint8Array(e),f,b)){QH(b);
e=!0;break a}e=!1;break a}}else b.D+=1E3*(l-f.info.duration);e=null}if(null!=e)return e}if(!MI(a,c,k,f,b))return!1;b.J=!0;m?(ut(f,f.info.startTime),c.abort(),c.b=null,ts(f.info)):(PH(b,d),ts(b.B),$E(c.buffered));f.B&&(c.b=f.info.b.b,a.U("initsegment",c.b));return!0};
MI=function(a,b,c,d,e){b=LI(a,b,c);return 0!=b?(2!=b&&(d.info.b.info.video?(a=a.A,a.o=Math.floor(.5*a.o),a.N=Math.floor(.5*a.N),a.b=Math.floor(.5*a.b),a.C=Math.floor(.5*a.C)):(a=a.A,a.B=Math.floor(.5*a.B),a.S=Math.floor(.5*a.S),a.b=Math.floor(.5*a.b)),WH(e)),!1):!0};
LI=function(a,b,c){try{Mw(a.b)?b.appendBuffer(c):b.append(c)}catch(d){return 11==d.code?(a.ld(!1,"html5.invalidstate",{updating:""+ +b.updating,mrs:a.b.o.readyState}),2):22!=d.code&&0!=d.message.indexOf("Not enough storage")?(Si(d),4):1}return Jw(a.b)?3:0};
EI=function(a,b,c){if(a.A.J&&a.G)return a.A.J;var d=b.g.info.audio?a.A.B:a.A.o;!a.A.H&&a.D.b.isLocked()&&(d=Math.max(d,b.g.info.audio?a.A.S:a.A.N));c&&(d+=a.A.M);b=a.D.b.isLocked()?b.b?b.b.b.info.b:b.g.info.b:b.N;d/=b;0<a.A.b&&(d=Math.min(d,a.A.b));a.A.ha&&(c=$y(a.F),d=Math.min(d,a.A.K+a.A.ca+Math.max(b-Math.max(1-.4*a.A.Ha,0)*c,0)*a.A.da/b));return d};
OI=function(a){if(a.B.isLive){if(!a.g.g.index.Re())return window.NaN;var b=a.g.g.index.Wf(),c=a.g.g.index.Pb(),d=a.g.g.index;return 1>a.A.liveChunkReadahead?d.Qe(c)+d.Pe(c)-.2:d.Qe(Math.max(b,c-a.A.liveChunkReadahead+1))+.2}return Math.floor(Math.min(a.g.g.index.Og(),a.o.g.index.Og()))};
PI=function(a,b,c,d){if(b.g.jd())if(d){var e=bF(d.buffered,c),f=window.NaN,k=b.B;k&&(f=bF(d.buffered,k.b.index.Qe(k.A)));if(e==f&&YH(b))return c;d=RH(b,c);if(0<=d)return d;VH(b,b.g.Mf()?1:2);b.g.info.video&&b.B&&!b.B.C&&!kca(b.o)&&b.g.Mf()&&(d=b.B,b.o.b.length&&(d=EH(b.o).info),d=b.b||d,d=Ct(d.b,d,d.range.length-(d.g+d.o)),HH(b,HI(a,d)));if((0,window.isNaN)(e))return TH(b,c);TH(b,e+vI.b)}else TH(b,c);else b.g.o||wI(a,b,!1),0!=c&&UH(b);return c};
QI=function(a,b,c){b.g!=c&&(b.g=c,c.o||wI(a,b,!1))};
wI=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.up(d);D(c,function(a){if("f"!=a.b[0].b.info.o){var c=HI(this,a);!os(a.b[a.b.length-1])&&HH(b,c)}},a);
b.g.o=!0};
RI=function(a){if(!a.o.b)return"";a=Or(a.o.b.b.C.b);return a.substr(0,a.indexOf("."))};
xI=function(a,b,c){a.la[b]=c?window.performance.timing.navigationStart+c:Dt()};
zI=function(a){a.g&&VH(a.g,0);a.o&&VH(a.o,0)};
SI=function(a,b,c,d,e){E.call(this);this.B=a;this.H=b;this.F=c;this.A=d;this.b=e;this.sessionId="";this.g=this.G=this.C=this.D=null;this.o=new nr(this);F(this,this.o);this.A?(this.o.R(this.A,"message",this.mH),this.o.R(this.A,"keystatuseschange",this.VB)):this.b&&(or(this.o,this.b,["mskeymessage","webkitkeymessage"],this.ur),or(this.o,this.b,["mskeyerror","webkitkeyerror"],this.tr),or(this.o,this.b,["mskeyadded","webkitkeyadded"],this.sr))};
TI=function(a,b){E.call(this);this.g=a;this.b=b;this.C={};this.A=null;this.B=new nr(this);F(this,this.B);this.o=this.D=null};
UI=function(a){if(a.b.o)return a.b.o.createMediaKeys().then(Ni(w(function(a){this.D=a;this.g.setMediaKeys(a)},a)));
du(a.b)?a.o=new (cu())(a.b.g):eu(a.b)?(a.o=new (cu())(a.b.g),a.g.webkitSetMediaKeys(a.o)):wca(a);return null};
wca=function(a){or(a.B,a.g,["keymessage","webkitkeymessage"],a.pH);or(a.B,a.g,["keyerror","webkitkeyerror"],a.oH);or(a.B,a.g,["keyadded","webkitkeyadded"],a.nH)};
VI=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};
WI=function(){this.keys=[];this.values=[]};
xca=function(a){a.keys=[];a.values=[]};
XI=function(a,b){return gb(a.keys,function(a){return Gb(b,a)})};
YI=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};
yca=function(a){return N(a,function(a){a=a.toString(16);return 1<a.length?a:"0"+a}).join("")};
bJ=function(a,b){fa(a);ZI();for(var c=b?$I:aJ,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("")};
cJ=function(a){var b=[];zca(a,function(a){b.push(a)});
return b};
zca=function(a,b){function c(b){for(;d<a.length;){var c=a.charAt(d++),e=dJ[c];if(null!=e)return e;if(!A(c))throw Error("Unknown base64 encoding at char: "+c);}return b}
ZI();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))}};
ZI=function(){if(!aJ){aJ={};dJ={};$I={};for(var a=0;65>a;a++)aJ[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),dJ[aJ[a]]=a,$I[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(dJ["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}};
Aca=function(a,b,c){this.url=a;this.interval=b;this.b=c};
Bca=function(a,b,c){this.b=a;this.headers=b;this.message=c};
fJ=function(a,b,c,d,e,f){E.call(this);this.g=a;this.b=d;this.b.subscribe("oauthtoken",this.Kt,this);this.o={session_id:e};this.H=f;this.G=0;a=this.g.B;eu(this.g)&&(a=c.b.subarray(4),a=String.fromCharCode.apply(null,new window.Uint16Array(a.buffer,a.byteOffset,a.byteLength/2)).replace("skd://","https://"));eJ(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.U("licenseerror","drm.unavailable",!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),
k=null}if(this.A=k)b=this.A,c=this.wG,k=this.vG,b.D=this.xG,b.C=c,b.G=k,b.g=this,F(this,this.A)};
Cca=function(a,b){this.message=a;this.number=b;this.b=!1};
eJ=function(a,b){if(Dca.test(b)){for(var c in a.o)b=$g(b,c,a.o[c]);a.B=b}else gJ(a,"drm.net",!0,"t.u")};
gJ=function(a,b,c,d,e){a.isDisposed()||a.b.U("licenseerror",b,c,d,e);c&&a.dispose()};
hJ=function(a,b){this.b=a;this.contentType=b||null};
jJ=function(a,b,c,d,e,f){jk.call(this);a.addKey||a.webkitAddKey||cu()||iu(c);this.Z=c;this.D=a;this.b=b;this.V=!!f;this.subscribe("newlicense",this.tC,this);this.subscribe("newsession",this.uC,this);this.subscribe("sessionready",this.hD,this);this.S=e||Rv();this.H=null;this.o=new WI;this.g=[];this.B=iJ;this.G=new TI(a,b);F(this,this.G);this.A=null;du(b)&&(this.A=new TI(a,b),F(this,this.A));this.K=2;this.F=new nr(this);F(this,this.F);this.J=!1;this.M=null;this.C=!1;a=this.D;this.b.o?this.F.R(a,"encrypted",
this.AB):or(this.F,a,du(this.b)?["msneedkey"]:["needkey","webkitneedkey"],this.rC);(a=UI(this.G))?a.then(Ni(w(this.gC,this)),Ni(w(this.GA,this))):this.C=!0;this.A&&UI(this.A);this.N=d};
lJ=function(a,b,c){a.isDisposed()||du(a.b)==c||a.J&&"widevine"==a.b.b&&!a.N||(a.J=!0,a.o.get(b.b)||(a.g.push(b),1<a.g.length||a.C&&a.o.set(b.b,kJ(a,b))))};
kJ=function(a,b){a.o.get(b.b);var c=new fJ(a.b,a.G,b,a,a.S,a.V);c.Kt(a.H);"playready"==a.b.b&&a.Z.aa("playready_on_borg")&&(lc(c.o,{prob:"1"}),eJ(c,c.B));return c};
mJ=function(a){this.g={};this.g.c1a=w(this.B,this);this.g.c3a=w(this.C,this);this.g.c6a=w(this.A,this);(this.b=a)&&this.b.ha?this.o=Ij(this.b.ha):this.o=[]};
nJ=function(a,b,c,d){this.videoData=a;this.b=b;this.reason=c;this.g=d};
Eca=function(a,b){this.T=a;this.g=b;this.b=null;this.T.experiments.b("html5_auto_format_cap_on_battery")&&window.navigator.getBattery&&window.navigator.getBattery().then(w(function(a){this.b=a},this))};
oJ=function(a,b){return Du(Du(a.T.bf,b.Ah),b.Fh)};
qJ=function(a,b){var c=gH();return"auto"!=c?Au("auto",c,!1):pJ(a,b)};
pJ=function(a,b){if(GF(a.T)&&gx(a.T.F,ax))return Cu;var c;c=!!b.o.b;var d;IF(a.T)&&(d=window.screen&&window.screen.width?new ef(window.screen.width,window.screen.height):null);d||(d=a.T.ie?a.T.ie.clone():a.g.Da());(EF||rJ||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=Au("auto",e.quality,
!1)}else e=Cu;c=e.b;Rp()&&(c=Math.max(c,Er.hd1080));(Lp("armv7")||Lp("android"))&&!GF(a.T)&&yr(b.o.videoInfos[0])&&(c=Math.min(c,Er.large));d=a.T.experiments.b("html5_auto_format_cap_on_battery");f=1<b.o.videoInfos[0].video.projectionType;!d||a.T.ze||!a.b||a.b.charging||f||(c=Math.min(d,c));c=Math.max(c,Er.medium);e.b!=c&&(e=new zu(e.g,c,e.o));return e};
Fca=function(a){this.A=this.b=window.NaN;this.g=this.o=!1;this.B=!!a};
sJ=function(a,b){a.b=b;a.o=!0};
Az=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};
tJ=function(a){if(a.ym)return 4;var b=Rh("visibilityState",window.document);return b&&"visible"!=b?3:a.ze?2:a.zm?1:0};
Gca=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};
uJ=function(){this.endTime=this.startTime=-1;this.Wk="-";this.playbackRate=1;this.visibilityState=0;this.Sk=""};
vJ=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};
UB=function(a){return wJ(a)()};
wJ=function(a){if(!a.o){var b=qa(function(a){var b=Dt();a&&631152E6>=b&&(Si(Error("invalid yt.now value: "+b)),b=(new Date).getTime());return b},a.b.experiments.aa("html5_validate_yt_now"));
a.o=qa(function(a){return Math.round(b()-a)/1E3},b())}return a.o};
WB=function(a){var b=a.A();a=a.videoData;var c={};a.g&&(c.fmt=wr(a.g),a.B&&wr(a.B)!=wr(a.g)&&(c.afmt=wr(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.xi&&(c.infringe=1);a.Mg&&(c.splay=1);a.sa&&(c.live=a.oe?"dvr":"live");a.Xd&&(c.autoplay=1);a.Gf&&(c.sdetail=a.Gf);a.S&&(c.partnerid=a.S);a.osid&&(c.osid=a.osid);ra(b,c);return b};
zB=function(a){var b=new uJ;b.Wk=a.A().cc||"-";var c=a.b;b.playbackRate=c.Ne&&c.Ne.b.playbackRate||1;c=a.getVisibilityState();0!=c&&(b.visibilityState=c);a=a.F();a.Rb&&a.Rb.id&&"und"!=a.Rb.id&&(b.Sk=a.Rb.id);return b};
xJ=function(a,b){this.state=a;this.b=b};
cC=function(a,b){return T(a.state,b)&&!T(a.b,b)?1:!T(a.state,b)&&T(a.b,b)?-1:0};
yJ=function(a,b,c,d,e){jk.call(this);this.ua=new Fca(a.experiments.aa("html5_always_underrun_on_empty_buffer"));this.D=c;this.Ga=d;c=w(function(a,b){a=="crn_"+yJ.b&&zJ(this);e(a,b)},this);
this.C=new gB(w(this.getCurrentTime,this),w(this.HF,this),w(this.getPlayerState,this),c);F(this,this.C);this.ea=window.NaN;this.M=this.F=null;this.T=a;this.ha=new Eca(a,this.Ga);this.J=!1;this.G=this.B=null;this.Z=[];this.$=new CH;this.S=new CH;this.Bb=this.Aa=!1;this.ya=window.NaN;this.A=new uz;this.ka=[];this.H=b;this.ba=this.da=null;this.K=window.NaN;this.ca=new nr;F(this,this.ca);this.b=new Gx;this.g=null;this.V=window.NaN;this.o=null;this.jb=this.Ba=!1;this.pa=window.NaN;this.Ta=this.Wa=this.ib=
this.la=!1;this.Ca=this.bb=window.NaN;this.Nb=a.experiments.aa("html5_force_play_on_suspend_event");this.Ob=a.experiments.aa("html5_force_play_on_suspend_event_limited");this.N=null;this.Zb=this.T.experiments.aa("html5_playing_event_buffer_underrun");this.Ka=new jH(50);this.Cb=C();this.tb=!1};
AJ=function(a){vv()?xv(a.pa):Qi(a.pa)};
BJ=function(a){if(a.o){var b=a.o;if(!b.isDisposed()&&b.A){b.C="paused";var c=ZB(b);c.ea=!0;c.send();c=b.g;"PL"==c.o&&(c.o="N");var d=UB(c.b);IB(c,d,"vps",[c.o]);c.vg(d);Qi(b.B);b.dispose()}Ob(a.o);a.o=null}};
DJ=function(a){if(ly(a.b))return!0;CJ(a,"api.invalidparam",void 0,"invalidVideodata.1");return!1};
EJ=function(a,b){a.Aa=!!b;DJ(a)&&!a.$.g&&(a.$.start(),a.o&&a.o.Dg(),a.Yo())};
HJ=function(a){a.g&&hF(a.g);EJ(a);DJ(a)&&!T(a.A,128)&&(a.S.g||(a.S.start(),FJ(a,Bz(a.A,8)),oy(a.b)||FJ(a,Bz(a.A,1))),GJ(a))};
GJ=function(a){a.isDisposed();if(!a.S.b&&a.$.b&&!T(a.A,128)&&!a.Z.length&&(a.C.A||a.C.Dg(),!IJ(a))){if(a.B){var b=a.B;a.Bb=!!b.M&&!!b.V}a.S.b=!0;a.b.sa&&(a.seekTo(window.Infinity,!0),JJ(a,!0),a.T.experiments.aa("disable_live_background_seek_to_head")||3!=tJ(a.T)||(a.jb=!0));if(a.o){b=a.o;b.b.videoData.enableCardio&&b.b.videoData.enableCardioBeforePlayback&&(b.Dj("connected"),eC(b));if(b.b.videoData.sa){var b=b.g,c=b.b.videoData.b;c&&Ut(c)&&MB(b,"live-segment-"+Ut(c).toFixed(1));c=uy(b.b.videoData,
b.b.b.experiments);MB(b,"live-readahead-"+c)}$x(a.b)&&NB(a.o.g,"manifestless","1",void 0)}a.U("playbackready",a);cw("pbr",a.D.b)||a.D.g("pbr")}};
zJ=function(a,b){a.pauseVideo();var c;c=0==b?new uz:new uz(14);FJ(a,c)};
LJ=function(a,b,c,d){a.b.g=c;a.b.B=d||c;if(a.o){var e=a.b,f=pJ(a.ha,e),e=fb(e.o.videoInfos,w(f.A,f)),e=new nJ(a.b,c,b,e?wr(e):"");d&&"i"==b&&KJ(a,b,d);d=a.o.g;c=UB(d.b);IB(d,c,"vfs",[e.b.id,e.g,d.W,e.reason]);d.W=e.b.id;e=d.b.G();0<e.width&&0<e.height&&(e=[Math.round(e.width),Math.round(e.height)],f=window.devicePixelRatio||1,1<f&&e.push(f),IB(d,c,"view",e));IB(d,c,"vps",[d.o]);d.vg(c)}a.U("internalvideoformatchange",a.b,"m"==b)};
KJ=function(a,b,c){a.b.B=c;if(a.o){var d=a.o.g;c=new nJ(a.b,c,b,"");var e=UB(d.b);c.b.id!=d.H&&(IB(d,e,"afs",[c.b.id,d.H,c.reason]),d.H=c.b.id)}"i"!=b&&a.U("internalaudioformatchange",a.b,"m"==b)};
CJ=function(a,b,c,d){var e,f;Wb(Hca,c)?e=c:c?f=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:f||O(e),messageKey:e};FJ(a,yz(a.A,128,b));AJ(a);MJ(a);NJ(a)};
IJ=function(a){return!!a.Z.length||0<cB(a.C.b,-0x8000000000000).length};
OJ=function(a){a.T.experiments.aa("html5_crossorigin_video")&&a.g&&(a.b.yf||!a.b.o||a.b.o.b?pF(a.g,!1):pF(a.g,!0))};
QJ=function(a,b){a.g&&PJ(a);a.g=b;Ica(a);OJ(a)};
PJ=function(a){a.b&&a.T.experiments.aa("new_ended_replay")&&(a.b.startSeconds=a.getCurrentTime());a.G&&(a.G.dispose(),a.G=null);a.B&&(JI(a.B),a.B.G=!0);a.g&&(a.o&&a.$.g&&T(a.A,64)&&!a.b.re&&RJ(a),SJ(a),pr(a.ca),lF(a.g),a.g=null)};
WJ=function(a){if(!T(a.A,128))if(a.tb)a.tb=!1,TJ(a);else if(HJ(a),T(a.A,64)&&FJ(a,Bz(a.A,8)),a.S.b&&a.g)if(a.b.o){a.T.experiments.aa("new_ended_replay")&&T(a.A,2)&&a.seekTo(0,!0);if(a.b.sa){var b=a.getCurrentTime()<ky(a.b),c=qy(a.b)&&T(a.A,4);(b||c)&&a.seekTo(window.Infinity,!0);UJ(a)?JJ(a,!0):a.J&&a.seekTo(window.Infinity,!0)}if(a.b.o.b)b=VJ(a),a.B.resume();else{MJ(a);var b=a.b.rg.g(),c=a.b,d={};c.ba&&(d.ptk=c.ba,d.oid=c.We,d.ptchn=c.ne,d.pltype=c.Xe);ra(b.g,d);c=a.T.g;ra(b.g,{c:c.c,cver:c.cver})}(c=
a.g.g)&&c.Ia(b)?jF(a.g):Jca(a,b)}else b=a.b.sa&&!Zw()?"html5.unsupportedlive":"fmt.noneavailable",CJ(a,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1")};
XJ=function(a,b){SJ(a);MJ(a);b||VJ(a)};
ZJ=function(a){if(a.b.o){var b=YJ(a)||Cu;a=he(a.b.o.videoInfos,w(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};
$J=function(a){var b=Du(Du(oJ(a.ha,a.b),qJ(a.ha,a.b)),YJ(a)),c=a.T.experiments.b("html5_background_quality_cap"),d=a.T.experiments.b("html5_background_cap_idle_secs");a=!c||a.T.ve()/1E3<d?Cu:3==tJ(a.T)?new zu(0,c,!1):Cu;return Du(b,a)};
YJ=function(a){return a.b.pl?Cu:a.F?a.F.B:Vx(a.b)&&a.b.o.b&&Ft(a.b.b)?iJ:Cu};
aK=function(a,b,c){if(!a.isDisposed()&&!T(a.A,128)&&(c&&(a.b.Fh=c),Vx(a.b))){"m"==b&&c&&Bu(c)&&(b="a");c=$J(a);if(a.b.o.b){if(a.B&&"i"!=b){var d=a.B;d.isDisposed()||((c=fca(d.D,c,b))&&d.U("videoformatchange",c),QI(d,d.o,uH(d.D)),d.D.b.isLocked()&&"m"==b&&(WH(d.o),WH(d.g)),aI(d.o)&&GI(d,d.o,d.g),JI(d))}}else{d=a.b;a:{var e=a.b.M;if(c.b){for(var f=0;f<e.length;f++){var k=e[f].Lc,l=Er[k.video.quality];if((!c.o||"auto"!=k.video.quality)&&l<=c.b){c=e[f];break a}}c=e[e.length-1]}else c=e[0]}d.rg=c;LJ(a,
b,a.b.rg.Lc)}a.A.Va()&&WJ(a)}};
bK=function(a){Vt(a.b.b,{c:a.T.g.c,cver:a.T.g.cver});var b=a.T,c=a.b,d=new hG;b.experiments.aa("html5_use_tight_max_buffer_depth")&&(d.ha=!0,d.da=b.experiments.b("html5_tight_max_buffer_allowed_impaired_time")||d.da,d.Ha=b.experiments.b("html5_tight_max_buffer_allowed_bandwidth_stddevs")||d.Ha,d.ca=b.experiments.b("html5_tight_max_buffer_abr_avoidance_padding")||d.ca);d.ba=b.experiments.b("html5_throttle_rate")||d.ba;b.experiments.aa("html5_streaming_xhr")&&(d.F=!0);b.experiments.aa("dash_html5_timeouts_before_metadata")&&
(d.Ya=!0);d.J=b.experiments.b("html5_idle_preload_secs");d.Z=b.experiments.aa("html5_report_extended_parse_errors");if(Qp()||b.experiments.aa("dash_html5_safari8_workarounds"))d.$=!0;Qp()&&(d.V=-1);if(Lp("trident/")||Lp("edge/"))d.b=240;Bq&&(d.N=41943040);if(GF(b)||!Lw()){var e=b.experiments;d.o=8388608;d.B=524288;d.M=2097152;d.C=1048576;d.Ba=1.5;d.Aa=15;d.H=!Lw();d.ka=!1;Pp()&&!e.G&&(d.G=625E3);Op()&&(d.G=75E4);d.Ca=!0;d.g*=1.3;d.A*=1.3;d.W=!0}Rp()&&(e="CHROMECAST/ANCHOVY"==b.g.cmodel,d.o=20971520,
d.B=1572864,e&&(d.G=812500,d.D=1E3));d.Wa=b.B;d.liveChunkReadahead=uy(c,b.experiments);d.Ka=!b.experiments.aa("disable_fpa_sei_removal")&&Lp("windows nt")&&(ty(c)||by(c));$x(c)&&(d.Ga=.2);b.experiments.D&&(d.G=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.ya=c;b.experiments.aa("html5_strip_emsg")&&(d.ua=!0);b.experiments.aa("disable_html5_remove_extra_init")&&(d.W=!1);d.b=b.experiments.b("html5_max_buffer_duration")||
d.b;d.K=b.experiments.b("html5_max_buffer_health_for_downgrade")||d.K;a.da.b.g=$x(a.b)?.5:0;a.B=new vI(a.da,d,a.b.b,a.b.o);a.B.subscribe("initsegment",a.UB,a);a.B.subscribe("videoformatchange",a.cC,a);a.B.subscribe("audioformatchange",a.bC,a);a.B.subscribe("error",a.Ph,a);a.B.subscribe("seekrequired",a.CE,a);b=kb(a.Z,"spacecast")||a.Aa;d=a.En();d=d.Rb.isDefault?void 0:d;a.B.initialize(a.b.startSeconds,$J(a),b,d);a.b.probeUrl&&(a.B.S=a.b.probeUrl);if(a.Z.length||a.Aa)a.B.G=!0;a.Aa&&RJ(a);if(a.T.experiments.b("html5_background_quality_cap"))a:{a=
w(a.TD,a);if(window.document.visibilityState)b="visibilitychange";else{if(!window.document[Qh+"VisibilityState"])break a;b=Qh+"visibilitychange"}window.document.addEventListener(b,a,!1)}};
RJ=function(a){var b=new xJ(new uz(4),a.A);dC(a.o,b)};
MJ=function(a){a.B&&(a.B.dispose(),a.B=null);a.G&&(a.G.dispose(),a.G=null)};
VJ=function(a){a.G||(a.B?a.B.seek(a.getCurrentTime()):bK(a),a.G=new Ew(a.g.ia(),a.b.lengthSeconds,a.b.o.videoInfos[0].mimeType,a.b.o.b[0].mimeType,a.T.B),Fw(a.G,w(a.B.Rw,a.B)),Gw(a.G,w(function(a){CJ(this,"fmt.unplayable",void 0,"msi.1;ename."+a.name)},a)));
try{return Hw(a.G)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),CJ(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1"),null}};
TJ=function(a){Ux(a.b);!a.b.re&&a.b.fj||a.ib||(a.ib=!0,a.U("signatureexpired"))};
cK=function(a){return a.details.isPotentialFormatUnavaliable&&("net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode)};
NJ=function(a){a.g&&(a.g.pause(),SJ(a),MJ(a),a.b&&(a.b.startSeconds=a.getCurrentTime()),a.K=window.NaN,lF(a.g),T(a.A,128)||FJ(a,yz(a.A)))};
Kca=function(a){if(!a.g)return 0;if(qy(a.b))return 1;if(ry(a.b)){if(a.J)return 1;var b=a.g,c=kF(b),b=(0<cF(c)&&b.b.duration?c.end(c.length-1):0)-ky(a.b);a=dK(a,!0)-ky(a.b);return Math.max(0,Math.min(1,b/a))}return nF(a.g)};
eK=function(a,b){var c={};if(b){a.o?ra(c,SB(XB(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:$E(d.b.played||ZE()),vbu:$E(kF(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.gb(),vvol:d.b.volume};ra(c,d)}if(a.B){d=a.B;var e={lct:d.C.toFixed(3),lsk:d.K,lmf:d.D.b.isLocked(),lbw:$y(d.F).toFixed(3),lhd:nH(d.F).toFixed(3),ltd:(1E9*mH(d.F)).toFixed(3),
laa:d.g.B?ts(d.g.B):"",lva:d.o.B?ts(d.o.B):"",lar:d.g.b?ts(d.g.b):"",lvr:d.o.b?ts(d.o.b):"",lvh:RI(d)};d.b&&!Jw(d.b)&&(e.lab=$E(d.b.b.buffered),e.lvb=$E(d.b.g.buffered));ra(c,e)}c.state=a.A.g.toString(16);T(a.A,128)&&(c.debug_error=a.A.b);IJ(a)&&(c.preroll="1");a.b.Nh&&(c.ismb=a.b.Nh);a.b.isLowLatencyLiveStream&&(c.lowlatency="1");a.b.sa&&(a.b.b&&Ut(a.b.b)&&(c.segduration=Ut(a.b.b)),a.N&&(d=a.N.A,c.lat=d.b[d.g]||0))}c.debug_videoId=a.b.videoId;return c};
fK=function(a,b){a.U("internalvideodatachange",b||"dataupdated",a,a.b)};
Ica=function(a){D("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.ca.R(this.g,a,this.JF,this)},a);
a.T.Gc&&(a.ca.R(a.g,"webkitplaybacktargetavailabilitychanged",a.wA,a),a.ca.R(a.g,"webkitcurrentplaybacktargetiswirelesschanged",a.xA,a))};
gK=function(a){var b=a.getCurrentTime(),c=a.b;!cw("pbs",a.D.b)&&Tv.measure&&Tv.getEntriesByName&&(Tv.getEntriesByName("mark_nr")[0]?Uv("mark_nr"):Uv());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",wr(c.g)):a.D.info("fmt","-1");c.Ta&&a.D.info("yt_pre",a.Bb?"2":"1");a.T.ze&&a.D.info("yt_fs",
"1");a.D.info("cmt",b.toFixed(3));if(a.B){b=a.B;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.V),c.length&&(c=c[0],xI(b,"vri",c.fetchStart),xI(b,"vdns",c.domainLookupEnd),xI(b,"vreq",c.requestStart),xI(b,"fvb",c.responseStart),xI(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.M),c.length&&(c=c[0],xI(b,"ari",c.fetchStart),xI(b,"adns",c.domainLookupEnd),xI(b,"areq",c.requestStart),xI(b,"avb",c.responseStart),xI(b,"arc",c.responseEnd)));
var b=b.la,d;for(d in b)a.D.g(d,b[d])}};
Lca=function(a){if(a.ea&&a.g){var b=a.g.b.seekable||ZE();b.length&&b.end(0)>a.ea&&(a.g.b.currentTime=a.ea,a.ea=window.NaN,a.Qa=a.ca.R(a.g,"canplay",a.sB,a))}};
iK=function(a,b){if(a.g&&a.b){var c=a.getCurrentTime();if(c<ky(a.b)&&a.A.Va())a.seekTo(window.Infinity,!0);else{if(a.J){var d=dK(a,!1);if(c<d-hK(a)){if(a.A.Va()&&(a.b.oh||qy(a.b))){a.seekTo(window.Infinity,!0);return}a.b.sa&&JJ(a,!1)}}else a.b.sa&&UJ(a,c)&&JJ(a,!0);if(a.B&&(d=a.B,d.b)){d.resume();if(d.K&&!Jw(d.b)){var e=d.C<=c&&c<d.C+10,f=0<=aF(d.b.g.buffered,d.C+vI.b);e&&f&&(d.K=!1)}d.K||(d.C=c);KI(d)}5<c&&(a.b.startSeconds=c);(d=vv())?xv(a.pa):Qi(a.pa);!Fz(a.A)&&a.g.b.paused||T(a.A,128)||(e=w(a.my,
a),a.pa=0==(a.g.b.played||ZE()).length?d?wv(e,100):Oi(e,100):d?wv(e,500):Oi(e,500));a.b.Xj=c;!b&&a.A.Va()&&a.o&&(c=a.o,c.o.update(),oy(c.b.videoData)&&c.b.videoData.Bf&&!c.K&&CB(c.o)>=c.b.videoData.Bf&&(c.A&&c.b.videoData.Bf&&(d=XB(c,"delayplay"),d.Aa=!0,d.send(),c.K=!0),bC(c)),d=c.S,d.o||!d.b.Cb||d.b.Nb||!d.videoData.lengthSeconds?d=!1:(e=Math.min(.8*d.videoData.lengthSeconds,180),d=CB(d.A)>=e),d&&c.S.send());C()>a.Cb+1E3&&(a.Cb=C(),kH(a.Ka,xz(a.g)));a.U("progresssync",a,b)}}};
FJ=function(a,b){var c=a.A;if(b.g!=c.g||b.b!=c.b){c=new xJ(b,a.A);a.A=b;var d=!a.ka.length;a.ka.push(c);0>cC(c,8)&&(Qi(a.V),a.V=window.NaN,JJ(a,!1));0<cC(c,8)&&!a.b.re&&(0,window.isNaN)(a.V)&&(a.V=Oi(w(a.ir,a),15E3));0<cC(c,32)&&JJ(a,!1);if(T(c.state,2)&&ry(a.b)){var e=a.getCurrentTime();a.b.lengthSeconds!=e&&(a.b.lengthSeconds=e,fK(a));iK(a,!0)}0<cC(c,2)&&a.Um();a.T.experiments.aa("html5_check_for_reseek")&&0<cC(c,1)&&(a.Ca=Oi(w(a.yE,a),5E3));a.o&&dC(a.o,c);if(d)try{for(d=0;d<a.ka.length;d++){var c=
a.ka[d],f=a.C,e=c;if(f.A&&!f.D&&(f.be(),T(e.b,16))){var e=f,k=fB(e.b,Math.max(e.o-2E3,0));null!=k&&0x7ffffffffffff>k&&e.B.start()}a.U("statechange",c)}}finally{a.ka.length=0}}};
jK=function(a){T(a.A,2)||T(a.A,32)||(a.K=window.NaN)};
JJ=function(a,b){a.b.sa&&a.J!=b&&(a.J=b,a.U("liveviewshift",b))};
Jca=function(a,b){Mca(a,b);a.T.df?Oi(w(function(){jF(this.g)},a),0):jF(a.g)};
Mca=function(a,b){a.D.g("vta");hF(a.g,b);if(iy(a.b)&&iy(a.b)&&!a.F&&a.g){var c=a.b.F;if(c){var d=a.g.ia();a.F=new jJ(d,c,a.T.experiments,a.b.sa,a.b.drmSessionId,a.T.experiments.aa("html5_disable_drm_retry"));a.F.subscribe("newsession",a.sC,a);a.F.subscribe("licenseerror",a.XB,a);a.F.subscribe("qualitychange",a.YB,a);a.F.subscribe("heartbeatparams",a.IF,a);c=a.F;d=a.b.oauthToken;c.H=d;c.U("oauthtoken",d)}else CJ(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}a.G&&Av();Qi(a.V);
a.b.re||(a.V=Oi(w(a.ir,a),15E3))};
SJ=function(a){a.F&&(a.F.dispose(),a.F=null)};
dK=function(a,b){if(!a.g)return 0;if(!a.b.sa){var c=a.b;return c.b&&!(0,window.isNaN)(St(c.b))?St(c.b):c.lengthSeconds}if(b&&(a.J||qy(a.b)))return a.getCurrentTime();if(a.B)return c=OI(a.B),Math.max(c,ky(a.b))||0;c=a.g.b.seekable||ZE();return(1>c.length?window.NaN:c.end(c.length-1))||0};
UJ=function(a,b){void 0==b&&(b=a.getCurrentTime());return b>=dK(a,!1)-hK(a)};
hK=function(a){return a.b.b?(a.T.experiments.b("html5_allowable_liveness_drift_chunks")||2)*Ut(a.b.b):window.NaN};
lK=function(a,b){E.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.Fn);U(this,"loadVideoById",this.Hn);U(this,"cueVideoByUrl",this.MF);U(this,"loadVideoByUrl",this.XF);U(this,"playVideo",this.qd);U(this,"pauseVideo",this.pauseVideo);U(this,"stopVideo",this.fk);U(this,"clearVideo",this.KF);U(this,"getVideoBytesLoaded",this.SF);U(this,"getVideoBytesTotal",this.TF);U(this,"getVideoLoadedFraction",this.Gn);U(this,"getVideoStartBytes",
this.UF);U(this,"cuePlaylist",this.LF);U(this,"loadPlaylist",this.vt);U(this,"nextVideo",this.dk);U(this,"previousVideo",this.ek);U(this,"playVideoAt",this.In);U(this,"setShuffle",this.setShuffle);U(this,"setLoop",this.ZF);U(this,"getPlaylist",this.Sc);U(this,"getPlaylistIndex",this.QF);U(this,"getPlaylistId",this.ee);U(this,"loadModule",this.ck);U(this,"unloadModule",this.Bt);U(this,"setOption",this.Oe);U(this,"getOption",this.Db);U(this,"getOptions",this.Sh);U(this,"mute",this.mute);U(this,"unMute",
this.unMute);U(this,"isMuted",this.Tc);U(this,"setVolume",this.setVolume);U(this,"getVolume",this.Hb);U(this,"seekTo",this.seekTo);U(this,"getPlayerState",this.getPlayerState);U(this,"getPlaybackRate",this.PF);U(this,"setPlaybackRate",this.Th);U(this,"getAvailablePlaybackRates",this.Qh);U(this,"getPlaybackQuality",this.bk);U(this,"setPlaybackQuality",this.setPlaybackQuality);U(this,"getAvailableQualityLevels",this.tt);U(this,"getCurrentTime",this.getCurrentTime);U(this,"getDuration",this.Rh);U(this,
"addEventListener",this.addEventListener);U(this,"removeEventListener",this.removeEventListener);U(this,"getVideoUrl",this.getVideoUrl);U(this,"getDebugText",this.ak);U(this,"getVideoEmbedCode",this.ut);U(this,"getVideoData",this.getVideoData);U(this,"addCueRange",this.qt);U(this,"removeCueRange",this.wt);U(this,"setSize",this.setSize);U(this,"getApiInterface",this.NF);U(this,"destroy",this.destroy);U(this,"showVideoInfo",this.At);U(this,"hideVideoInfo",this.VF);kK(this,"getInternalApiInterface",
this.OF);kK(this,"getAdState",this.getAdState);kK(this,"isNotServable",this.WF);kK(this,"getUpdatedConfigurationData",this.RF);kK(this,"updateRemoteReceivers",this.aG);kK(this,"sendAbandonmentPing",this.YF);kK(this,"setAutonav",this.xt);kK(this,"setAutonavState",this.zt);kK(this,"setMinimized",this.$F);kK(this,"channelSubscribed",r);kK(this,"channelUnsubscribed",r)};
U=function(a,b,c){a.o[b]=w(c,a)};
kK=function(a,b,c){a.A[b]=w(c,a)};
mK=function(a,b){lK.call(this,a,b);U(this,"getPresentingPlayerType",this.getPresentingPlayerType);U(this,"addInfoCardXml",this.bG);U(this,"cueVideoByPlayerVars",this.cG);U(this,"loadVideoByPlayerVars",this.Jn);U(this,"preloadVideoByPlayerVars",this.Et);U(this,"seekBy",this.rd);U(this,"updatePlaylist",this.qG);U(this,"updateLastActiveTime",this.pG);U(this,"updateVideoData",this.rG);U(this,"getStoryboardFormat",this.hG);U(this,"getProgressState",this.Cf);U(this,"getHousebrandProperties",this.fG);U(this,
"setPlaybackQualityRange",this.Ft);U(this,"getCurrentPlaylistSequence",this.eG);U(this,"canPlayType",this.canPlayType);U(this,"sendVideoStatsEngageEvent",this.Ng);U(this,"setCardsVisible",this.Vh);U(this,"handleGlobalKeyDown",this.iG);U(this,"getAudioTrack",this.Uh);U(this,"setAudioTrack",this.Kn);U(this,"getAvailableAudioTracks",this.Ct);U(this,"getMaxPlaybackQuality",this.gG);U(this,"setSizeStyle",this.mG);U(this,"forceFrescaUpdate",this.dG);U(this,"setAutonav",this.xt);U(this,"setAutonavState",
this.zt);U(this,"showControls",this.oG);U(this,"hideControls",this.jG);U(this,"getVisibilityState",this.getVisibilityState);U(this,"shouldSendVisibilityState",this.nG);U(this,"getVideoContentRect",this.Dt);U(this,"setSafetyMode",this.lG);U(this,"setFauxFullscreen",this.JE);U(this,"cancelPlayback",this.Mo);U(this,"getVideoStats",this.Ap);U(this,"updateSubtitlesUserSettings",this.jn);U(this,"getSubtitlesUserSettings",this.El);U(this,"resetSubtitlesUserSettings",this.Zr);U(this,"isFastLoad",this.kG)};
nK=function(a,b){mK.call(this,a,b)};
Nca=function(a){(a=fq(a.app))&&XJ(a,!0)};
pK=function(a){return(a=oK(a.app.B,"endscreen"))?gz(a):!1};
qK=function(a){var b=oK(a.app.B,"endscreen");return b&&nz(b)?!0:(a=oK(a.app.B,"ypc"))&&a.rb()?!0:!1};
rK=function(a,b){a.Pa("autonavcancel",b)};
R=function(a){return a.app.T};
uA=function(a){var b=a.app;a=a.playerType;return 3==b.getPresentingPlayerType()?b.F.K:fq(b,a).getPlayerState()};
BE=function(a){return a.app.D};
sK=function(a){return a.app.N&&!a.La()||!!a.Sc()};
tK=function(a){if(a=oK(a.app.B,"captions"))a.K=!0,a.loaded?a.g&&a.g!=a.o.te()?ZG(a):a.Ir():a.load()};
Xy=function(a){if(Wh())if(a.La())(a=Th(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],window.document))&&a.call(window.document);else{a=BE(a).element;var b=Th(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],a);b&&b.call(a)}else a.va("onFullscreenToggled")};
uK=function(a){return(a=fq(a.app))?Fu(oJ(a.ha,a.b)):"unknown"};
vK=function(a){(a=a.app.B.g)?a.b?(a=a.b,a=a.b?a.b.Ef():{}):a={}:a={};return a};
wK=function(a,b){R(a).experiments.aa("ui_logging")&&oC(a,"controlclicked",{controlClicked:b})};
oC=function(a,b,c,d){var e=fq(a.app);c.event=b;a.La()&&(c.fs=1);c.ux=1;e.logEvent(c,d)};
XC=function(a){a.Pa("cardstatechange",Rz(a)&&xK(a)?1:0)};
Rz=function(a){return(a=oK(a.app.B,"iv-module"))?SE(a):!1};
xK=function(a){return(a=oK(a.app.B,"iv-module"))?TE(a):!1};
yK=function(a,b,c){(a=oK(a.app.B,"iv-module"))&&VE(a,b,c)};
YG=function(a){(a=fq(a.app))&&a.o&&BB(a.o.o)};
CE=function(a){a=a.app.ha;var b=BE(a.b).Da(),b=new hg(0,0,b.width,b.height);if(a.B.g&&!zK(a)){if(R(a.b).Ka){var c=AK(a)?69:48;b.top+=c;b.height-=c}a.o&&(b.height-=AK(a.o.b)?72:50)}return b};
wA=function(a,b){a.va("onFrescaStateChange",b);var c=fq(a.app);if(c&&b&&c.o){var c=c.o.g,d=b.hasActiveStream;IB(c,UB(c.b),"stream",[d?"A":"I"])}};
BK=function(a){return(a=oK(a.app.B,"fresca"))?!!a.B&&a.B.B.A:!1};
CK=function(a){var b=fq(a.app,1);if(!b)return!1;var c=b.getVideoData();return ly(c)&&!qy(c)&&2!=a.getPresentingPlayerType()&&(!IJ(b)||3==a.getPresentingPlayerType())};
DK=function(a){return a.app.da.play_pause||2==a.getPresentingPlayerType()?!0:!IJ(fq(a.app,1))};
EK=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=fq(d,a))c.C.Mh.apply(c.C,b),a&&d.getPresentingPlayerType()!=a||gq(d,"cuerangesremoved",b)};
lr=function(a,b,c){a=BE(a).element;var d=Bb(a.children,function(a){a=(0,window.parseInt)(a.getAttribute("data-layer"),10);return c-a||1});
0>d&&(d=-(d+1));Ef(a,b,d);b.setAttribute("data-layer",c)};
cz=function(a){if(!R(a).ib)return!1;var b=a.getVideoData();return!!b&&!b.ypcPreview&&!b.sa&&!kb(b.G,"ypc")&&!a.Sc()};
Oca=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.C=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.B=a.sessionData||{};this.H=a.targetTab;this.g=a.accessibilityStr;this.impressionUrls=a.impressionUrls;this.D=a.hoverUrls;this.clickUrls=a.clickUrls};
FK=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 Oca(a[b]))};
GK=function(a){eq.call(this,a);this.Ea="creatorendscreen";this.o=null;this.G=!1;this.A=null;this.g={};this.C={};this.B=null;this.H=!1;this.J=null};
Pca=function(a){return HK(a)?new GK(a):null};
HK=function(a){return IK(R(a).b)?!0:py(a.getVideoData(),"iv_endscreen_url")};
IK=function(a){return"creator-endscreen-editor"===a};
JK=function(a,b){hq(a);a.B&&(tq(a.B),a.B.dispose(),a.B=null);for(var c in a.g){var d=a.g[c];tq(d);d.dispose()}a.g={};a.C={};if((a.o=b)&&b.elements){c=[];d=new bq(b.startMs,0x7ffffffffffff,{id:"ytp-ce-in-endscreen"});c.push(d);a.B=new Q(["div","ytp-ce-shadow"]);lr(a.b,a.B.element,4);for(var e=0;e<b.elements.length;++e){var f=b.elements[e],d=(d={VIDEO:a.Zw,PLAYLIST:a.Yw,CHANNEL:a.Xw,WEBSITE:a.$w}[f.type])?d.call(a,f):null;a.g[f.id]=d;a.C[f.id]=f;lr(a.b,d.element,4);var k=new bq(f.startMs,f.endMs,{id:"ytp-ce-element-"+
f.id});c.push(k);Qca(a,d,f)}a.qb(c);a.Mn()}};
KK=function(a,b){var c=b.C.thumbnails;!IK(R(a.b).b)&&a.J&&b.o&&b.o.thumbnails&&(c=b.o.thumbnails);return c[c.length-1].url};
LK=function(a){return a?{style:"background-image: url("+a+")"}:{}};
Qca=function(a,b,c){b.O("mouseenter",w(a.Mt,a,c));b.O("mouseleave",w(a.Nt,a,c));b.O("click",w(a.$q,a,c));b.O("keypress",w(a.$q,a,c));b.O("focus",w(function(a,b){J(a.element,"ytp-ce-force-expand");this.Mt(b)},a,b,c));
b.O("blur",w(function(a,b){ie(a.element,"ytp-ce-force-expand");this.Nt(b)},a,b,c));
var d=w(function(a,b,c){c=If(c);D(c,function(c){d(c);Tf(c)&&(a.R(c,"focus",w(function(a,b){J(a.element,"ytp-ce-force-expand");MK(this,b.id,!0)},this,a,b)),a.R(c,"click",w(function(a,b){J(a.element,"ytp-ce-force-expand");
MK(this,b.id,!0);this.H=!0},this,a,b)),a.R(c,"blur",w(function(a,b){this.H?(this.H=!1,a.element.focus()):(ie(a.element,"ytp-ce-force-expand"),MK(this,b.id,!1))},this,a,b)))},this)},a,b,c);
d(b.element)};
MK=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)};
NK=function(a,b,c){function d(){k||(f++,f==e.length&&(l.stop(),c&&c()))}
if(!b||IK(R(a.b).b))c&&c();else{var e=Rca(a,b),f=0,k=!1,l=new ce(function(){k=!0},1E3,a);
l.start();for(a=0;a<e.length;a++)Vp(e[a],d)}};
Rca=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(Sca(b[e],c));return d};
Sca=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})};
Tca=function(a,b){var c=new window.Image;c.onload=w(function(){this.J=0<c.width&&0<c.height;b()},a);
c.onerror=w(function(){this.J=!1;b()},a);
c.src="data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};
OK=function(a){eq.call(this,a);this.Ea="heartbeat";this.logEvent="ypc_license";this.C=!1;this.B=0;this.A=!1;this.g=window.NaN;this.o=null};
PK=function(a){return py(a.getVideoData(),"ypc_license_checker_module")};
Uca=function(a){return PK(a)?new OK(a):null};
QK=function(a){var b=a.b.getVideoData();return iy(b)?!!a.o:!!b.heartbeatToken};
RK=function(a,b){if(!a.g&&a.C){var c=a.b.getVideoData();if(QK(a)||c.sa)c=b,void 0==c&&(c=a.A?a.o?1E3*a.o.interval:a.b.getVideoData().heartbeatInterval||6E4:1E3),a.g=Oi(w(a.EE,a),c)}};
SK=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"),CJ(a.b.app.g,"heartbeat",c,void 0)):RK(a)}};
TK=function(a){try{return Yf(a)}catch(b){return null}};
UK=function(a){a.B=0;a.g&&(Qi(a.g),a.g=window.NaN);a.A=!1};
VK=function(a){a=a.fmt_list;if(!a)return{};var b=[];D(a,function(a){a.itag&&(b[a.itag.toString()]=a)});
return b};
WK=function(a,b,c,d,e){if(!a)return null;var f=b.docid;b=VK(b);return f&&b?Vca(a,f,b,c,d,e):null};
Vca=function(a,b,c,d,e,f){d=N(d.split(","),Ij);var k=he(d,function(a){return!!c[a.itag]});
if(!k.length)return null;var l=Kg(a)||"",m=Lg(a),n={};D(k,function(a){if(a){var b=XK(a);b&&(n[b]=a)}});
var t=[];D(d,function(a){if(c[a.itag]){var d=ch(bh(oh(a.url),l),m),k=Ig(a.url),d=kh(kh(d,"orig_host",Gg(k[1],k[2],k[3],k[4])),"scid",b),z;for(z in f)d.b.get(z)||kh(d,z,f[z]);a.url=d.toString();z=c[a.itag];"clen"in a&&"byteLen"in z&&(a.clen=z.byteLen.toString());"init"in z&&"index"in z&&"init"in a&&"index"in a&&(a.init=z.init[0].toString()+"-"+z.init[1],a.index=z.index[0].toString()+"-"+z.index[1]);a.isAccelerated="1";e&&(a.isAcceleratedUiEnabled="1")}else if((z=XK(a))&&n[z])return;t.push(Rg(a))});
return t.join(",")};
XK=function(a){return a.quality?a.quality:a.quality_label||""};
Wca=function(a,b,c,d){var e=YK(b);e?(e.status="success-prefetch-1",c(e)):a&&!b?c({status:"success"}):a?(a=Nj([a,"v1/cache/videos",b,"metadata"].join("/"),d),Vj(a,{format:"JSON",method:"GET",timeout:2E3,$a:function(a,b){null==b&&(b={});b.status="success";c(b)},
onError:function(){c({status:"error"})},
bc:function(){var a=YK(b);a?(a.status="success-prefetch-2",c(a)):c({status:"timeout"})}})):c({status:"nodevice"})};
YK=function(a){var b=window.acceleratorMeta;return(b?b.docid:null)===a?b:null};
ZK=function(a){E.call(this);this.b=a};
$K=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};
Xca=function(a){function b(){throw Error("encoding error");}
null==a&&b();var c=a.content_profile_token||null;c&&!v(c)&&b();var d=a.device_id||null;d&&!v(d)&&b();var e=a.hostname;e&&v(e)||b();var f=a.status||0;f&&!ha(f)&&b();var k=a.last_probe_tstamp||null;null===k||ha(f)||b();var l=a.active||!1;ga(l)||b();a=!1!==a.ux;ga(a)||b();return new $K(e,f,l,a,c,d,k)};
Yca=function(a){var b=0,c=a.length,d={dc:-1640531527,Ic:-1640531527,c:314159265},e;for(e=c;12<=e;e-=12,b+=12)d.dc+=aL(a,b),d.Ic+=aL(a,b+4),d.c+=aL(a,b+8),bL(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.Ic+=aL(a,b+4);d.dc+=aL(a,b);break;case 7:d.Ic+=(a[b+6]&255)<<16;case 6:d.Ic+=(a[b+5]&255)<<8;case 5:d.Ic+=a[b+4]&255;case 4:d.dc+=aL(a,b);break;case 3:d.dc+=(a[b+2]&255)<<16;case 2:d.dc+=(a[b+1]&255)<<8;case 1:d.dc+=a[b+0]&255}return bL(d)};
bL=function(a){var b=a.dc,c=a.Ic,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.dc=b;a.Ic=c;return a.c=d};
aL=function(a,b){return cL(a[b+0])+(cL(a[b+1])<<8)+(cL(a[b+2])<<16)+(cL(a[b+3])<<24)};
cL=function(a){return 127<a?a-256:a};
dL=function(a){this.hash=a};
Zca=function(){var a=Ej("yt-accelerator-settings-meta");return null==a?null:new dL((0,window.isNaN)(a.h)?null:a.h)};
$ca=function(){return new Cd(function(a,b){"XSRF_TOKEN"in Ki?a():bj(function(){"XSRF_TOKEN"in Ki?a():b(Error("no XSRF token after init"))})})};
ada=function(a,b,c,d){var e=bg({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=Yca(YI(e+"v2"));
a=Zca();null!==a&&a.hash===f?c():(a=function(){var a={client_info:e};b&&(a.session_token=b);Vj("/accelerator_settings_ajax?action_update=1",{format:"JSON",method:"POST",Lb:a,timeout:3E4,$a:function(){var a=new dL(f);Dj("yt-accelerator-settings-meta",(0,window.isNaN)(a.hash)?{}:{h:a.hash},600);c()},
onError:function(a){d(a)},
bc:function(){d(Error("AJAX timeout"))}})},b?a():$ca().then(a,d))};
eL=function(a,b,c,d){this.status=a;this.contentProfileToken=b||null;this.deviceId=c||null;this.b=!1!==d;this.timestamp=Date.now()};
fL=function(a,b,c,d){E.call(this);this.o=tb(a);this.C=b;this.A=d||12E4;this.B=c||5E3;this.b=this.g=null;bda(this)};
cda=function(a,b){var c=Date.now(),d=a.A,e=!1,f=he(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:he(f,function(a){a=a.b;return null===a||c-a>=d})};
bda=function(a){if(!lb(a.o)){var b=function(c){a.g=null;a.b=dda(a,cda(a,c||!1));a.b.then(function(){a.b=null;a.g=Oi(b,a.A)})};
b(!0)}};
dda=function(a,b){var c=N(b,function(b){return eda(a,b)});
return Od(Kd(c),function(){N(c,function(a){a.cancel()})})};
eda=function(a,b){var c=null;return(new Cd(function(a){c=Vj("//"+b.hostname+"/v1/cache/summary",{format:"JSON",method:"GET",timeout:this.B,$a:function(b,c){var k=!c||!c.hasOwnProperty("ux")||!!c.ux;a(new eL(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 eL(k,c&&c.cs,c&&c.gcdid,l))},
bc:function(){a(new eL(3))}})},a)).then(function(a){this.C(b,a)},function(){null!==c&&(c.abort(),c=null)},a)};
gL=function(a,b){E.call(this);this.o="yt-accelerator-mutex-x-"+a;this.g="yt-accelerator-mutex-y-"+a;this.qa=b||Ra();this.b=0};
fda=function(a,b,c){var d=C()+100;return(new Cd(w(a.A,a,d))).then(function(a){try{b.call(c)}finally{Fj(this.g)}return a},function(a){this.b&&(Qi(this.b),this.b=0);
throw a;},a)};
hL=function(a,b){E.call(this);this.nc="yt-accelerator-master-"+a;this.qa=b||Ra();this.b=new gL("master-"+a,this.qa)};
gda=function(a,b){return fda(a.b,function(){var a=Ej(this.nc)||null;if(!a||a.id==this.qa||b&&5E3<C()-a.t)Dj(this.nc,{id:this.qa,t:C()},120);else throw Error(a.id);},a)};
iL=function(){this.b={};this.g={}};
jL=function(){var a=Ej("yt-accelerator-discover"),b=new iL;b.b=Sb(a&&a.addrmap||{},function(a){return Xca(a)});
b.g=a&&a.qparamsmap||{};return b};
kL=function(a){for(var b in a.b){var c=a.b[b];if(c.active)return c}return null};
lL=function(a,b){a.g=b};
hda=function(a){return{addrmap:Sb(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}};
nL=function(a,b,c,d){E.call(this);this.o=new hL("discover");this.A=0;this.g=null;this.b=jL();this.C=c;this.B=hm(window,"storage",w(this.uy,this));d?lL(this.b,Gj(d,"&")):lL(this.b,{});var e=0;if(!lb(a)){var f=Date.now();a=tb(a);Mb(a);D(a,function(a){if(!va(a,"dummy")){var b=this.b.b[a]||null;if(null===b){b=this.b;a=new $K(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&&!kL(this.b)&&((this.b.b[a[0]]||null).active=
!0,mL(this));
b&&(this.Eq(!0),this.A=Pi(w(this.Eq,this),6E4))};
ida=function(a){var b=Date.now(),c=[];D(Yb(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&&D(c,function(a){delete this.b.b[a.hostname]},a)};
mL=function(a){dc(a.b.b)?a.reset():Dj("yt-accelerator-discover",hda(a.b),259200);ada(Yb(a.b.b),a.C,function(){},function(){})};
oL=function(){E.call(this);this.g=this.b=null};
sL=function(a){eq.call(this,a);this.logEvent=this.Ea="spacecast";this.g=null;this.o={}};
jda=function(a){return a.getVideoData().spacecastModule?new sL(a):null};
tL=function(a){eq.call(this,a);this.Ea="ypc_clickwrap";this.logEvent="ypc-clickwrap";Ui({YTP_YPC_START_RENTAL_HEADER:"Voulez-vous commencer \u00e0 regarder cette location\u00a0?",YTP_YPC_START_RENTAL_BUTTON:"Commencer la lecture de la location"});this.o=this.g=null};
kda=function(a){return py(a.getVideoData(),"ypc_clickwrap_module")?new tL(a):null};
uL=function(a,b,c){this.G=0;this.D=a;this.B=b||.5;this.C=c||0;this.F="index";this.g=0;this.A=[]};
wL=function(a,b){vL(a,"value");var c=b*a.g,d=0,e=window.NaN;a.A.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});
return e};
vL=function(a,b){a.F!=b&&(a.F=b,Eb(a.A,b))};
xL=function(a){this.A=a;this.g=[]};
lda=function(a){this.b=a;this.D=this.F=0;this.g=-1;this.J=new jH(100);this.H=0;this.K=Dt();this.A=new uL(4,.6);this.C=new lH(4);this.B=0;this.G=new xL(this.b.b);this.M=new uL(this.b.b,.5,.1);this.b.o?this.o=new lH(this.b.b):this.o=new uL(this.b.b,.5,.1);a=Ej("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.C.b(1,+a.tailDelay);this.g=Dt()};
rI=function(a,b,c){b=Math.max(b,.05);a.o.b(b,c/b);yL(a)};
sI=function(a,b){a.A.b(1,b);-1<a.g&&3E4<Dt()-a.g&&zL(a)};
AL=function(a,b,c){(0,window.isNaN)(c)||(a.D+=c);(0,window.isNaN)(b)||(a.F+=b);a.G.b(b,c/b);yL(a)};
BL=function(a,b,c){b=Math.max(b,8192);a.C.b(1,c/b);-1<a.g&&3E4<Dt()-a.g&&zL(a)};
nH=function(a){a=a.A.o();a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)};
mH=function(a){return a.C.o()||0};
$y=function(a){var b=a.b.D&&a.B&&6E4>Dt()-a.B?a.M.o():a.o.o(),b=0<b?b:1;if(!a.b.C)return b;a=a.G.o();a=0<a?a:1;return a>2*b?(b+a)/2:b};
CL=function(a){var b={};b.delay=nH(a);b.tailDelay=mH(a);b.byterate=$y(a);return b};
zL=function(a){Dj("yt-player-bandwidth",CL(a),2592E3);a.g=Dt()};
yL=function(a){var b=Dt();a.K=b;500<b-a.H&&(kH(a.J,1/(1/$y(a)+mH(a))),a.H=b)};
DI=function(a){return 4E3<=Dt()-a.K};
mda=function(){this.b=17;this.A=13E4;this.B=.5;this.o=!1;this.C=!0;this.D=!1;this.g=0};
nda=function(a){var b=new mda;GF(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.bb&&(b.A=a.bb/8);b.b=a.experiments.b("html5_bandwidth_window_size")||b.b;a.experiments.aa("html5_use_server_bandwidth_estimate")&&(b.D=!0);return b};
DL=function(a){this.X=a;this.g=null;this.b=new hg(0,0,0,0);this.B=new ef(0,0);this.A=this.o=0;WF&&yc(11)&&(this.g=window.document.createElement("canvas").getContext("2d"),yc(12.10532)||(this.o=3))};
GL=function(a,b){if(null===a.g)return b;var c=new ef(b.videoWidth,b.videoHeight);if(!ff(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=EL(BE(a.X)),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?FL(a,b,0,0,a.b.width,a.b.top-1):FL(a,b,0,b.videoHeight-
a.b.top+1,a.b.width,a.b.top-1))&&--a.o:2<=a.b.left&&(a.A?FL(a,b,0,0,a.b.left-1,a.b.height):FL(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};
FL=function(a,b,c,d,e,f){e>=f?(d+=Math.random()*f|0,f=1):(c+=Math.random()*e|0,e=1);try{a.g.drawImage(b,c,d,e,f,c,d,e,f)}catch(k){if(!(k instanceof window.DOMException)||"IndexSizeError"!=k.name)throw k;}a=a.g.getImageData(c,d,e,f).data;for(b=0;b<a.length;b+=4)if(255<a[b]+a[b+1]+a[b+2]+a[b+3])return!0;return!1};
HL=function(a,b,c){this.F=b||!1;this.C=c||null;this.b="precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n gl_FragColor = texture2D(uSplr, vTexCrd);\n}";this.B=new DL(a)};
IL=function(a,b){HL.call(this,a);this.b="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 == 1) {\n anaglyph(vTexCrd.x, vTexCrd.y);\n }\n else if (mode == 0) {\n gl_FragColor = texture2D(uSplr, vec2(vTexCrd.x * 0.5, vTexCrd.y));\n }\n}";
this.D=b;this.A=null;this.g=1;this.o=!0};
JL=function(a,b){HL.call(this,a,!0,b);this.b="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.X=a;this.J=R(a).experiments.aa("white_noise_with_interval");this.G=R(a).experiments.b("white_noise_amount")||.05;this.H=R(a).experiments.b("white_noise_offset")||-.5;this.A=0};
KL=function(a,b){JL.call(this,a,b);this.b="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.g=null;this.D=!1};
LL=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
ML=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
NL=function(a){var b=a[0],c=a[1];a=a[2];return Math.sqrt(b*b+c*c+a*a)};
QL=function(a,b,c,d,e,f,k){this.B=f;this.D=k;this.C=Math.PI/2;this.b=OL(a);this.g=OL(a);this.o=OL(a);this.A=OL(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);PL(this,0,0);this.b.gain.value=1-this.B};
PL=function(a,b,c){a.g.gain.value=a.B*Math.sin(a.C-c)*Math.cos(a.D+b);a.o.gain.value=a.B*Math.sin(a.C-c)*Math.sin(a.D+b);a.A.gain.value=a.B*Math.cos(a.C-c)};
RL=function(a,b,c){this.b=a;this.o=c;this.A=this.g=null};
SL=function(a,b,c){RL.call(this,a,0,c);this.C=this.B=null};
TL=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}:{}};
UL=function(){this.b=new window.Float32Array(16);this.o=new window.Float32Array(16);this.g=new window.Float32Array(16);this.identity()};
VL=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};
WL=function(a){var b=new window.Float32Array(3),c=NL(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}};
oda=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],x=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==x&&++n;if(0!=x||m+1==c){for(;0<n;)--n,0==n%2?d[e++]=0:d[e++]=254,n>>=1;if(255==x||254==x)d[e++]=255;0!=x&&(d[e++]=x)}}return d.slice(0,e)};
pda=function(){this.C=this.F=this.g=this.D=this.o=0;this.B=new window.Float32Array(3);this.A=-1;this.b=[]};
XL=function(a,b){this.F=a;this.o=null;this.S=b;this.B=new UL;this.ba=this.$=this.ca=this.Ha=null;this.C=.872;this.V=this.Z=this.W=this.g=this.b=0;this.H=!0;this.A=this.D=0;this.G=new window.Float32Array(3);this.K=new DL(a);this.da=new pda};
YL=function(a,b){XL.call(this,a,b);this.N=null;this.J=0;this.M=!0};
ZL=function(a){jk.call(this);this.g=a;this.loaded=!1};
$L=function(a,b,c){this.D=c;this.A=BE(a).o;this.H=10;this.B=!0;this.S=this.M=this.W=this.o=this.g=null;this.V=b;this.b=null;this.X=a;this.C=new hg(0,0,0,0);this.J=!1;this.G=!0};
rda=function(a){a.g=window.document.createElement("canvas");if(!a.g)return 1;a.D.appendChild(a.g);try{a.o=a.g.getContext("webgl")||a.g.getContext("experimental-webgl")}catch(d){return 2}if(null==a.o)return 3;var b=qda(a);if(0!=b)return b;var b=a.o,c=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,c);b.bufferData(b.ARRAY_BUFFER,new window.Float32Array([-1,-1,0,1,-1,0,-1,1,0,1,1,0]),b.STATIC_DRAW);a.M=c;b=a.o;c=b.createTexture();b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,c);b.texParameteri(b.TEXTURE_2D,
b.TEXTURE_MIN_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE);a.W=c;b=a.o;b.clearColor(0,0,0,1);b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT);b.bindBuffer(b.ARRAY_BUFFER,a.M);b.vertexAttribPointer(a.N,3,b.FLOAT,!1,0,0);a.K();a.A.crossOrigin="use-credentials";return 0};
qda=function(a){var b=a.o,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.b.Gl());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.b.yl());b.compileShader(d);if(!b.getShaderParameter(d,b.COMPILE_STATUS))return 5;var e=b.createProgram();b.attachShader(e,c);if(1!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 6;b.attachShader(e,d);if(2!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 7;b.linkProgram(e);if(0==
b.getProgramParameter(e,b.LINK_STATUS))return 8;b.validateProgram(e);b.useProgram(e);if(0==b.getProgramParameter(e,b.VALIDATE_STATUS))return 9;a.N=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.N);a.S=e;a.b.Jd(b,a.S,a.D);return 0};
g.aM=function(a){ZL.call(this,a);this.o=new nr(this);F(this,this.o);this.A=new Q(["div","webgl"]);F(this,this.A);this.X=a;this.b=null;this.load()};
bM=function(a,b){if(a.b){var c=a.b;c.b&&c.b.Yh(b)}};
cM=function(a,b){E.call(this);this.G=b;this.g=null;this.b=[];this.F={};this.o={};this.A={};this.C=null;this.X=a;this.B=[];this.D=null};
dM=function(a){a.g&&(Ob(a.g),a.g=null);a.b=he(a.b,function(a){try{a.destroy()}catch(c){Si(c)}return!1},a)};
sda=function(a,b,c){eM(a);a.D=b;a.B=tb(c);D(a.b,function(a){0<=jb(c,a.Ea)&&(a.F=b,a.qj(!!a.F))})};
eM=function(a){D(a.B,function(a){if(a=oK(this,a))a.F=null,a.qj(!1)},a);
a.D=null;a.B=[]};
fM=function(a){a=oK(a,"iv-module");return!(!a||!a.loaded)};
gM=function(a,b){if(!b)return N(a.b,function(a){return a.Ea});
var c=oK(a,b);return c?c.Df():[]};
oK=function(a,b){return fb(a.b,function(a){return a.Ea==b})};
tda=function(a){var b={};D(a.b,function(a){ra(b,a.Xh())});
return b};
uda=function(a,b){if(a.G){for(var c=a.G+"webgl.js",d=window.document.getElementsByTagName("script"),e=!1,f,k=0;k<d.length;k++){var l=d[k];l.src==c&&(f=l)}f||(f=window.document.createElement("script"),e=!0);var m=w(function(){this.isDisposed()||b.call(this)},a),n=w(function(){this.isDisposed()||this.X.He("webgl")},a);
f.onload=qa(function(a){pd(m);a&&a()},f.onload);
f.onerror=qa(function(a){pd(n);a&&a()},f.onerror);
f.onreadystatechange=qa(function(a){switch(f.readyState){case "loaded":case "complete":pd(m,this)}a&&a()},f.onreadystatechange);
e&&(f.src=c,c=window.document.getElementsByTagName("head")[0]||window.document.body,c.insertBefore(f,c.firstChild),Nb(a,function(){f.parentNode&&f.parentNode.removeChild(f)}))}};
hM=function(a,b,c){this.b=b;this.g=c;this.B=a;this.o=!0};
iM=function(a,b){mc.call(this,"adError");this.o=a;this.b=b?b:null};
jM=function(a,b,c){mc.call(this,a);this.o=b;this.b=null!=c?c:null};
vda=function(a){this.b=a};
wda=function(){var a=kM();return lM(a,"disableExperiments")};
lM=function(a,b){if(ac(a.b,b)){var c=a.b[b];if(ga(c))return c}return!1};
xda=function(a){if(ac(a.b,"forceExperimentIds")){a=a.b.forceExperimentIds;var b=[],c=0;ea(a)&&D(a,function(a){ha(a)&&(b[c++]=a)});
return b}return null};
mM=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};
nM=function(){this.o="always";this.A=1;this.g=!1;this.C=!0;this.G=!1;this.D=!0;this.F=null};
kM=function(){var a=V;if(null==a.F){var b={},c=(new M(vf().location.href)).b;if(uh(c,"tcnfp"))try{b=Yf(c.get("tcnfp"))}catch(d){}a.F=new vda(b)}return a.F};
oM=function(a,b,c,d){this.qa=a;this.b=Ye(c||0,0,1);this.g=null!=d?d:!0};
pM=function(a){this.qa=a;this.g=new vg;this.b=null};
yda=function(a){var b=Math.random(),c=0,d=a.g.Ja();D(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}};
Ada=function(){this.g=null!=aa.G_testRunner;this.b=new vg;qM(this,31061770,.05);qM(this,31061771,.05);qM(this,31061772,.05);qM(this,31061773,.05);qM(this,31061774,.01);qM(this,31061775,.01);qM(this,41351016,.05);qM(this,41351017,.05);qM(this,41351020,.05);qM(this,41351021,.05);qM(this,41351088,.01);qM(this,41351089,.01);qM(this,136961001,.01);qM(this,136961002,.01);qM(this,420706008,.05);qM(this,420706009,.05);qM(this,231422001,.05);qM(this,231422002,.05);qM(this,420706002,.05);qM(this,420706003,
.05);qM(this,31061780,.01);qM(this,31061781,.01);qM(this,420706010,.01);qM(this,420706011,.01);zda(this);var a;a=kM();a=xda(a);null!=a&&(this.g=!1,rM(this,a.map(String)))};
tM=function(){sM||(sM=new Ada);return sM};
Bda=function(){var a=tM();D(a.b.Oa(),function(a){va(a,"FORCED_PUB_EXP_LAYER_")&&this.b.remove(a)},a)};
qM=function(a,b,c){A(B("GvnExternalLayer"))||(0,window.isNaN)(b)||0>=b||(b=new oM(b,0,c),uM(a,"GvnExternalLayer").g.set(b.getId(),b))};
zda=function(a){wda()||D(a.b.Ja(),function(a){yda(a)},a)};
rM=function(a,b,c){D(b,function(a){var b=Number(a);a="FORCED_PUB_EXP_LAYER_"+a;if(!((0,window.isNaN)(b)||0>=b||A(B(a)))){var f=null!=c?c:!0;uM(this,a).b=new oM(b,0,0,f)}},a)};
vM=function(a,b){return a.g?!1:Sh(a.b.Ja(),function(a){return!!a.b&&a.b.getId()==b})};
wM=function(){var a=[9418778,9417893,9417894,9417895];return tM().g?!1:Sh(a,function(a){return vM(tM(),a)})};
xM=function(a){if(a.g)return"";var b=[];D(a.b.Ja(),function(a){(a=a.b)&&a.g&&b.push(a.getId())});
return b.sort().join(",")};
uM=function(a,b){var c=a.b.get(b);null==c&&(c=new pM(b),a.b.set(b,c));return c};
yM=function(){tM();return wM()};
AM=function(a){return null!=a?zM(Cda,a):!1};
zM=function(a,b){try{var c=(new M(b)).g,c=c.replace(/^www./i,"");return Sh(a,function(a){return Dda(a,c)})}catch(d){return!1}};
Dda=function(a,b){if(A(B(b)))return!1;a=a.toLowerCase();b=b.toLowerCase();return"*."==a.substr(0,2)?(a=a.substr(2),a.length>b.length?!1:b.substr(-a.length)==a&&(b.length==a.length||"."==b.charAt(b.length-a.length-1))):a==b};
CM=function(a){var b=!1;BM(a,Eda)?b=!1:AM(a)?b=!0:"https:"==window.location.protocol&&(BM(a,Fda)||V.b())&&(b=!0);if(b){b=new M(a);if("https"==b.A)return a;ah(b,"https");return b.toString()}return a};
BM=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)};
DM=function(a){window.open(a,"_blank")};
FM=function(a,b,c){null!=a?(kh(a,"label",b),null!=c&&kh(a,"value",c.join(";")),a=a.toString()):a="";EM(a)};
EM=function(a,b,c,d,e){null!=a&&null!=b&&(a=yB(a,b));try{if(null!=c){b=a;var f=(c||{}).viewability||"na";if(A(B(f)))a=b;else{var k=new M(b);uh(k.b,"label")?(kh(k,"acvw",f),a=k.toString().replace(/%2C/g,",")):a=b}}a:{c=a;var l=c.length-11-2;if(!(-1==c.indexOf("URL_SIGNALS")||2048<=l||!e&&!window.Goog_AdSense_Lidar_getUrlSignalsArray))for(e=e||window.Goog_AdSense_Lidar_getUrlSignalsArray(),l={},f=0;f<e.length;++f){l.URL_SIGNALS=e[f];var m=yB(c,l);if(2048>m.length){a=m;break a}}a=c}}catch(t){}try{a=
CM(a);var n=!V.b()||vM(tM(),41351089);null!=d&&d?GM.xs(a,n):V.D?GM.ws(a,n):GM.rs(a,n)}catch(t){}};
HM=function(a,b){null!=a&&D(a,function(a){EM(a,b)})};
Gda=function(a,b){if(A(B(b)))return a;var c=new M(a),d=c.g;return null!=d&&wa(d,".g.doubleclick.net")?(kh(c,"ged",b),c.toString()):a};
IM=function(a,b){this.message=a;this.errorCode=b};
KM=function(a,b,c){return JM("adLoadError",a,b||null,vb(arguments,2))};
LM=function(a,b,c){return JM("adPlayError",a,b||null,vb(arguments,2))};
MM=function(a,b,c,d,e){var f=a.apply(null,sb([c,d],vb(arguments,3)));b.Y(new jM("log",null,f))};
JM=function(a,b,c,d){if(c instanceof hM)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 hM(a,b,e);a.A=c;return a};
NM=function(a,b,c,d){var e=LM.apply(null,sb([b,c],vb(arguments,3)));a.Y(new iM(e))};
PM=function(){return!OM()&&(sc("iPod")||sc("iPhone")||sc("Android")||sc("IEMobile"))};
OM=function(){return sc("iPad")||sc("Android")&&!sc("Mobile")||sc("Silk")};
QM=function(){return PM()||OM()};
SM=function(){return Hda&&!RM||Na(rc,"iPod")};
TM=function(){return SM()||RM};
WM=function(a){return UF&&UM(VM,a)};
UM=function(a,b){if(null==XM[b]){var c=YM(a);c?(c=c.replace(/_/g,"."),XM[b]=0<=Ua(c,b)):XM[b]=!1}return XM[b]};
YM=function(a){A(ZM)&&(a=a.exec(rc))&&(ZM=a[1]);return ZM};
$M=function(){var a=rc;return a?Na(a,"Nintendo WiiU"):!1};
aN=function(){var a;if(!(a=Na(rc,"CrKey")||Na(rc,"PlayStation")||Na(rc,"Roku")))if(a=rc){var b=Na(a,"AppleTV")||Na(a,"GoogleTV")||Na(a,"HbbTV")||Na(a,"NetCast.TV")||Na(a,"Opera TV")||Na(a,"POV_TV")||Na(a,"SMART-TV")||Na(a,"SmartTV");a=vM(tM(),420706011)?b||Na(a,"TV Store")||Na(a,"OMI/")||Na(a,"Presto")&&Na(a,"Linux")&&!Na(a,"X11")&&!Na(a,"Android")&&!Na(a,"Mobi"):b}else a=!1;return a||Na(rc,"Xbox")};
bN=function(){return SM()||UF&&!WM(4)||!V.b()&&aN()?!1:!0};
cN=function(){this.reset()};
dN=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};
eN=function(){this.g=this.b=null};
gN=function(){this.b=fN();this.G=-1;this.K=this.M=this.C=this.F=this.g=null;this.B=fN();this.A=null;this.S=this.H=this.J="";this.D=this.N=this.W=this.o=null;this.V=!1};
fN=function(){return Math.floor(4503599627370496*Math.random())};
hN=function(a){null==a.C&&(a.C=new cN);return a.C};
iN=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};
jN=function(){this.g=.01>Math.random();this.o=Math.floor(4503599627370496*Math.random())};
Ida=function(a,b){b.id="";var c=kN();b.c=a.o;b.domain=c.g;return b};
kN=function(){var a=vf(),b=window.document;return new M(a.parent==a?a.location.href:b.referrer)};
lN=function(){};
mN=function(){return Math.round(C()/1E3)};
Jda=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:mN()};
nN=function(a){for(var b=[],c=a=vf(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};
oN=function(){this.b={};this.g=0};
pN=function(a,b){this.B=a;this.o=!0;this.b=b};
qN=function(a,b){pN.call(this,String(a),b);this.A=a;this.b=!!b};
rN=function(a,b){pN.call(this,a,b)};
sN=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 rN("",new hg(c,b,Number(a[3])-c,Number(a[2])-b))}return new rN("",new hg(0,0,0,0))};
uN=function(){tN||(tN=new oN);return tN};
vN=function(a){var b=new hg(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new hg(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};
wN=function(a,b){var c=a.getBoundingClientRect(),d=Rq(a,b);return new hg(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))};
xN=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 hg(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 pN("vp",d));d&&0<d?(e=ig(b),f=ig(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;a.setItem(new qN(512,e));d&&0<d?(e=ig(b),f=ig(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;a.setItem(new qN(1024,
e));d&&0<d?(e=ig(b),f=ig(c),e=e.left>=f.left&&e.left<f.right):e=!1;a.setItem(new qN(2048,e));d&&0<d?(b=ig(b),c=ig(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new qN(4096,c))}};
Kda=function(){this.g=-1};
yN=function(){this.b={};return this};
zN=function(a,b){a.b.eb=gc(a.b,"eb",0)|b};
Lda=function(a,b){var c=0;$b(vf(),"ima","video","client","tagged")&&(c=1);var d;d=null;a&&(d=a());if(d){var e=d;d=uN();d.b={};var f=new qN(32,!0);f.o=!1;d.setItem(f);f=vf().document;f=f.webkitVisibilityState||f.mozVisibilityState||f.visibilityState||f.msVisibilityState||"";d.setItem(new qN(64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));var k;try{var l;var m=vf().top;try{l=!!m.location.href||""===m.location.href}catch(u){l=!1}if(l){var n=nN(e);k=n&&0!=n.length?"1":"0"}else k="2"}catch(u){k=
"2"}d.setItem(new qN(256,"2"==k));d.setItem(new qN(128,"1"==k));n=l=vf().top;"2"==k&&(n=vf());m=wN(e,n);d.setItem(new rN("er",m));var t;try{t=n.document&&!n.document.body?null:rf(n||window)}catch(u){t=null}t?(n=uf(lf(n.document).b),d.setItem(new qN(16384,!!n)),t=n?new hg(n.x,n.y,t.width,t.height):null):t=null;d.setItem(new rN("vi",t));if(t&&"1"==k){k=nN(e);e=[];for(n=0;n<k.length;n++)(f=wN(k[n],l))&&e.push(f);e.push(t);t=vN(e)}xN(d,m,t);d.g&&(k=mN()-d.g,d.setItem(new pN("ts",k)));d.g=mN()}else d=
uN(),d.b={},d.g=mN(),d.setItem(new qN(32,!1));this.o=d;this.b=new yN;this.b.set("ve",4);c&&zN(this.b,1);$b(vf(),"ima","video","client","crossdomainTag")&&zN(this.b,4);$b(vf(),"ima","video","client","sdkTag")&&zN(this.b,8);$b(vf(),"ima","video","client","jsTag")&&zN(this.b,2);b&&gc(b,"fullscreen",!1)&&zN(this.b,16);this.g=d=null;if(c&&(c=$b(vf(),"ima","video","client"),c.getEData)){this.g=c.getEData();if(c=$b(vf(),"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=sN(d).getValue(),k=sN(k).getValue(),e=null,c.getItem("er")&&(e=c.getItem("er").getValue(),e.top+=d.top,e.left+=d.left,c.setItem(new rN("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=vN(l),xN(c,e,d),c.setItem(new rN("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",mN()-Jda(d))};
Mda=function(a,b){try{var c=new Lda(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 x in u.b){var H=u.b[x];if(H instanceof qN)H.getValue()&&(f|=H.A);else{var z,G=u.b[x];(z=G.o?G.g():"")&&k.push(x+z)}}k.push("eb"+String(f));(t=k.join("_"))&&d.push(t);c.b.set("eb",e);return d.join("_")}catch(S){return"tle;"+Ma(S.name,12)+";"+Ma(S.message,40)}};
AN=function(a){try{return!!a&&null!=a.location.href&&qc(a,"foo")}catch(b){return!1}};
BN=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
Nda=function(){var a=aa;try{for(var b=null;b!=a;b=a,a=a.parent)switch(a.location.protocol){case "https:":return!0;case "http:":case "file:":return!1}}catch(c){}return!0};
Oda=function(){var a=CN;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""};
Pda=function(a,b){this.b=a;this.g=b};
DN=function(a,b){this.url=a;this.uq=!!b;this.depth=ha(void 0)?void 0:null};
FN=function(a){a=a?a:EN();for(var b=new DN(aa.location.href,!1),c=a.length-1,d=c;0<=d;--d){var e=a[d];if(e.url&&!e.uq){b=e;break}}d=null;e=a.length&&a[c].url;0!=b.depth&&e&&(d=a[c]);return new Pda(b,d)};
EN=function(){var a=aa,b=[],c,d=null;do{var e=a;AN(e)?(c=e.location.href,d=e.document&&e.document.referrer||null):(c=d,d=null);b.push(new DN(c||""));try{a=e.parent}catch(f){a=null}}while(a&&e!=a);a=0;for(e=b.length-1;a<=e;++a)b[a].depth=e-a;e=aa;if(e.location&&e.location.ancestorOrigins&&e.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)c=b[a],c.url||(c.url=e.location.ancestorOrigins[a-1]||"",c.uq=!0);return b};
GN=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)};
HN=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)};
IN=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=[]};
JN=function(a,b){var c={};c[a]=b;return[c]};
KN=function(a,b,c,d){a.b.push(b);a.g[b]=JN(c,d)};
Rda=function(a,b,c,d){b=b+"//"+c+d;var e=Qda(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=LN(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+""};
Qda=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};
LN=function(a,b,c,d,e){var f=[];BN(a,function(a,l){var m=MN(a,b,c,d,e);m&&f.push(l+"="+m)});
return f.join(b)};
MN=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(MN(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)(LN(a,b,c,d,e+1)):"...";return(0,window.encodeURIComponent)(String(a))};
ON=function(a,b,c,d){try{var e;c instanceof IN?e=c:(e=new IN,BN(c,function(a,b){var c=e,d=c.F++,f=JN(b,a);c.b.push(d);c.g[d]=f}));
if(Math.random()<(d||a.b)){var f=Rda(e,a.g,a.o,a.A+b+"&");NN(aa,f)}}catch(k){}};
NN=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);HN(d,"load",e);HN(d,"error",e)};
GN(d,"load",e);GN(d,"error",e)}d.src=b;a.google_image_requests.push(d)};
PN=function(a,b,c){this.o=a;this.B=b;this.g=c;this.A=this.b};
QN=function(a,b,c){this.message=a;this.fileName=b||"";this.lineNumber=c||-1};
SN=function(a,b,c,d,e){var f;try{f=c()}catch(m){var k=a.g;try{var l=RN(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};
UN=function(a,b,c,d){var e=TN;return function(){for(var f=[],k=0;k<arguments.length;++k)f[k]=arguments[k];return SN(e,a,function(){return b.apply(c,f)},d)}};
RN=function(a){return new QN(VN(a),a.fileName,a.lineNumber)};
VN=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};
WN=function(a,b,c,d){return UN(a,b,c,d)};
XN=function(a,b){return UN(a,b,void 0,void 0)};
Sda=function(){for(var a=W,b=a,c=0;a&&a!=a.parent;)a=a.parent,c++,AN(a)&&(b=a);return b};
YN=function(a){return{visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0};
$N=function(){var a;ZN.mozVisibilityState?a="mozvisibilitychange":ZN.webkitVisibilityState?a="webkitvisibilitychange":ZN.visibilityState&&(a="visibilitychange");return a};
aO=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")};
bO=function(a,b){var c=a||W;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new ef(-1,-1):b?(new ef(c.innerWidth,c.innerHeight)).round():rf(c||window).round()}catch(d){return new ef(-12245933,-12245933)}};
Tda=function(){var a=cO.getInstance().C,b=0<=dO?eO()-dO:-1,c=fO?eO()-gO:-1,d=0<=hO?eO()-hO:-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};
eO=function(){return(new Date).getTime()-Uda};
iO=function(){var a=L("div");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a};
jO=function(a){for(var b;a&&a!=a.parentElement;){if(a.style&&"none"==Gq(a,"display"))return!0;b=a;a=a.parentElement}if(b&&(a=jf(b))){var c,d;try{if(c=vf(a))d=c.frameElement}catch(e){return!1}if(c&&d&&c!=c.parent)return jO(d)}return!1};
mO=function(a){kO.e=-1;kO.i=6;kO.n=7;kO.t=8;if(!lO){var b=[];D(Zb(kO),function(a){b[kO[a]+1]=a});
var c=b.join("");lO=(c=a&&a[c])&&w(c,a)}return lO};
oO=function(){return rJ&&pu&&fu("6.0.1")&&0<=Ua(nO,"10.1")?!0:!1};
Vda=function(){this.D=[0,0,0,0,0];this.B=[0,0,0,0,0];this.g=[0,0,0,0,0];this.G=[0,0,0,0,0];this.o=this.H=this.F=this.A=-1;this.b=0;this.C=-1};
pO=function(a,b,c,d){c=UN(d||"osd_or_lidar::"+b,c,void 0,void 0);GN(a,b,c,void 0);return c};
qO=function(a,b){this.A=null;this.D=a;this.G=b||1;this.b="u"};
rO=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 cf(e,f),new cf(c-e,f),new cf(e,d-f),new cf(c-e,d-f)]):[new cf(e,0),new cf(0,f),new cf(e,d-1),new cf(c-1,f)];case 3:return[new cf(c-1,0),new cf(e,f),new cf(0,d-1)];default:return[new cf(e,f)]}};
sO=function(a,b){var c;try{c=b||a.A.getBoundingClientRect()}catch(e){c=new gg(0,0,0,0)}var d=rO(a,c);D(d,function(a){a.x+=c.left;a.y+=c.top});
return d};
tO=function(a,b){qO.call(this,a,b);this.g=[];this.F=!1;this.o=-1;this.B=this.C=0};
Wda=function(a,b,c){this.snapshot=a;this.g=b;this.b=c};
Xda=function(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Ua(nO,"11")&&c)||tf&&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=jf(b),k=[];if(e){var l=iO(),d=rO(a,d);D(d,function(a,b){var d=new uO("e",f,c,String(b));this.g.push(d);k.push(w(d.oq,d,l,a))},a);
Ef(b,l,0)}else d=sO(a,d),D(d,function(a,d){var e=new uO("e",f,c,String(d));this.g.push(e);k.push(w(e.nq,e,b,a))},a);
var m=!0;D(k,function(a){m=m&&a()});
m?(a.b="l",a.A=b,a.F=!e):(D(a.g,function(a){a.remove()}),a.g=[]);
return m};
Yda=function(a){if(a.A&&a.F){var b=sO(a);D(b,function(a,b){this.g[b]&&this.g[b].setPosition(a)},a)}};
vO=function(a){D(a.g,function(a){a.remove()});
a.g=[];a.b="d"};
cea=function(a){var b=C(),c=a.C?b-a.C:0,d=-1,e=N(a.g,function(a){return wO(a,b)});
4==a.g.length?d=a.D?Zda(e):$da(e):3==a.g.length?d=aea(e):1==a.g.length&&(d=[-1,0,1,2,3,5][wO(a.g[0],b)+1]);a.B=d==a.o?a.B+c:0;c=new Wda(d,a.o,c);a.o=d;a.C=b;bea(a,d);Yda(a);return c};
yO=function(a){var b=Kb(Vb(xO));D(a,function(a){0<=a&&++b[a]});
return b};
$da=function(a){a=yO(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};
aea=function(a){var b=yO(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};
Zda=function(a){a=yO(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};
bea=function(a,b){if(0==b&&zO(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"}};
zO=function(a){return"n"==a.b?!0:"l"==a.b&&3E3<=a.B};
uO=function(a,b,c,d){this.b=null;this.A=a;this.qa="e"==a?String(c)+"~"+String(d):"";this.g=[];this.o=-1;this.C=0;this.B=Kb(Vb(dea));this.D=Kb(Vb(xO));"e"==this.A&&(AO[this.qa]=w(this.vy,this));tf?(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="'+BO(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=eea(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.b=a};
eea=function(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}
var d=BO(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};
BO=function(a,b){var c=Sg("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.qa);"s"==a.A&&(c="//pagead2.googlesyndication.com/osd/hbts.swf");b&&(c=Sg(c,"delay","1"));return c};
wO=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.D[c+1];a.o=c}else{var d=Number(b),e=CO(a);fea(a,e,d);c=a.g[a.g.length-1];if(null===e){if(e=d=0,0<a.o||ha(c.Jj))e=d=2}else null===c.Jj||c.timeMs>=d?(d=10<=e?4:0,e=0):e>c.Jj?(c=(e-c.Jj)/(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};
CO=function(a){var b=null;try{b=a.b.fc()}catch(c){}return b};
fea=function(a,b,c){var d=c-1E3,e=a.g.length;D(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({Jj:b,timeMs:c})};
DO=function(){this.C=!0;this.g=new uO("s",ZN);this.B=!1;this.G=this.F=this.N=this.b=this.A=this.D=this.J=this.K=this.M=this.o=this.H=null};
EO=function(a,b){b!==a.b&&(a.b=b,a.M(b))};
FO=function(a){var b=CO(a.g);null===a.N&&null!==b&&null!==a.F&&(a.N=C()-a.F);return b};
GO=function(a){var b=a.H.getBoundingClientRect(),c;c=null!=a.J?a.J.clone():new cf(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};
HO=function(a){a.B&&(a.K=GO(a));a.g.setPosition(a.K);a.D=W.setTimeout(XN("osd_or_lidar::sfm_tpto",w(a.V,a)),125)};
gea=function(a){if(a.C){var b=w(function(){1===YN(ZN)?(this.A=null,HO(this)):(W.clearTimeout(this.D),EO(this,0))},a),c=$N();
if(c){var d=pO(ZN,c,b,"osd_or_lidar::sfm_pv");a.G=function(){HN(ZN,c,d);this.G=null}}a.C=!1;
a.b=null;b()}};
IO=function(a){a.C||(W.clearTimeout(a.D),null===a.G||a.G(),a.C=!0)};
JO=function(a,b){qO.call(this,a,b);this.g=[];this.B=this.F=null;this.o=!0;this.C=null};
hea=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?rO(a,c):sO(a,c);for(var d=0;d<c.length;++d){var e=c[d],f=new DO,k;k=f;var l=b,m=w(a.H,a),n=e;if(null===k.F){var t="DIV"==l.tagName||"INS"==l.tagName;k.B=!t;k.H=l;e=GO(k);if(null!=n){e=n;n=new cf(0,0);if(k.B){var u=k.H.getBoundingClientRect();n.x+=u.left;n.y+=u.top}k.J=new cf(e.x-n.x,e.y-n.y)}k.M=m;t?(k.o=iO(),Ef(l,k.o,0),l=k.g.oq(k.o,e)):l=k.g.nq(l,e);l?(k.F=C(),k.K=e,k=!0):(k.g.remove(),
k.o&&Ff(k.o),k=!1)}else k=!1;if(!k)return KO(a),a.b="c",!1;a.g.push(f)}a.B=C();a.b="l";return!0};
kea=function(a){var b=Kb(Vb(iea));D(a.g,function(a){null!=a.b&&0<=a.b&&++b[a.b]});
switch(a.G){case 4:return jea(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}};
jea=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};
LO=function(a){a.o&&null!==a.B&&"d"!=a.b&&(D(a.g,function(a){gea(a)}),a.b="r",a.o=!1)};
MO=function(a){a.o||(D(a.g,function(a){IO(a)}),a.o=!0)};
KO=function(a){MO(a);D(a.g,function(a){IO(a);a.g&&(a.g.remove(),a.g=null);a.o&&(Ff(a.o),a.o=null)});
a.g=[];a.b="d"};
cO=function(){this.B=!1;this.C=void 0;this.g=!AN(W.top);var a=EN();this.D=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?Kg(a[a.length-1].url)||"":"";this.o=this.A=this.b=null;this.F=0};
OO=function(a,b,c,d){this.position=NO.clone();this.td=0;this.g=new Vda;this.Bb=-2;this.If=(new Date).getTime();this.Ye=-1;this.ha=c;this.V=-1!=c;this.ca=-1;this.Xc=this.Yc=null;this.Hf=d;this.je=r;this.$e=function(){};
this.W=this.element=b;this.o=null;this.S=1;this.ua=!1;this.A=null;this.Zb=this.Ba=!1;this.ib=1;this.Xe=!0;this.Gf=cO.getInstance().F++};
lea=function(a,b,c,d,e){if(a.V){var f=W.innerWidth,k=W.innerHeight,l=new gg(Math.round(W.mozInnerScreenY),Math.round(W.mozInnerScreenX+f),Math.round(W.mozInnerScreenY+k),Math.round(W.mozInnerScreenX));c=new gg(W.screenY+d,W.screenX+c.width,W.screenY+c.height,W.screenX);e||(d=new gg(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.td=f*k);a.Ke(l,c,b,e,!0,!0)}};
nea=function(a,b,c){if(a.V){var d=mO(W&&W.document);if(d){c||PO(a,W,!0);if(a.Zb)var e=mea(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=uf(window.document),e=d(e-k.x,f-k.y)?.5:0,d=!1;a.Ke(a.position,e,b,c,!0,d)}}};
QO=function(a,b,c){var d;if(c(b))return b;for(;;){d=Math.floor((a+b)/2);if(d==a||d==b)return a;c(d)?a=d:b=d}};
mea=function(a,b){var c=uf(window.document),d=a.ib,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=QO(f,l,function(a){return!!b(e,a)}),k=QO(e,k,function(a){return!!b(a,f)});
else if(n)l=QO(f,l,function(a){return!!b(k,a)}),e=QO(k,e,function(a){return!!b(a,f)});
else if(t)f=QO(l,f,function(a){return!!b(e,a)}),k=QO(e,k,function(a){return!!b(a,l)});
else if(m)f=QO(l,f,function(a){return!!b(k,a)}),e=QO(k,e,function(a){return!!b(a,l)});
else{var u=Math.floor((e+k)/2),x=Math.floor((f+l)/2);if(!b(u,x))return 0;f=QO(x,f,function(a){return!!b(u,a)});
l=QO(x,l,function(a){return!!b(u,a)});
e=QO(u,e,function(a){return!!b(a,x)});
k=QO(u,k,function(a){return!!b(a,x)})}return(l-f)*(k-e)/c};
oea=function(a,b,c,d,e){a.V&&(d||PO(a,W,e),a.Ke(a.position,c,b,d,!1,!0))};
RO=function(a,b,c){a.V&&a.Ke(a.position,a.g.b,b,c,!0,!0)};
SO=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};
TO=function(a,b){a.S=3;if(!a.W||oO())return a.ua=!0,!1;var c=new tO(!1,a.S),d=Xda(c,a.W,String(a.Gf));d?(a.$e=b,a.o=c):a.ua=!0;return d};
VO=function(a,b){if(!a.element||!oO())return!1;a.S=3;var c=new JO(!1,a.S),d=hea(c,a.element,w(function(a){UO(this,eO(),!1,b,[0,.01,.5,1,.01,.3][a])},a));
d&&(a.A=c,LO(c));return d};
UO=function(a,b,c,d,e){a.V&&WO(a)&&(c?a.A&&MO(a.A):(PO(a,d,!0),a.A&&LO(a.A)),d=e||0,ha(e)||-1==a.g.o||(d=[1,.75,.5,.3,.01][a.g.o]||0),a.Ke(a.position,d,b,c,!1,!1),!a.Ae()||a.um()||a.A&&KO(a.A))};
WO=function(a){return null!==a.A&&"d"!=a.A.getStatus()};
PO=function(a,b,c){b=c?b:b.top;try{var d=NO.clone(),e=new cf(0,0);if(a.W){if(c||1!=a.Hf||!jO(a.W))d=a.W.getBoundingClientRect();e=Rq(a.W,b)}var f=e.x,k=e.y;a.position=new gg(Math.round(k),Math.round(f+(d.right-d.left)),Math.round(k+(d.bottom-d.top)),Math.round(f))}catch(l){a.position=NO.clone()}a.td=(a.position.bottom-a.position.top)*(a.position.right-a.position.left)};
XO=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
pea=function(a){a.o&&vO(a.o);a.A&&KO(a.A)};
qea=function(){this.b={};for(var a in YO)this.b[YO[a]]=0};
ZO=function(a,b){0==a.b[b]&&(a.b[b]=1)};
rea=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};
sea=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]};
$O=function(a,b,c){var d=a.H;fO||c||-1==a.g||(d+=b-a.g);return d};
tea=function(a){var b=a.C;a.C=0;return b};
uea=function(a){var b=a.B;a.B=0;return b};
vea=function(a){var b=a.o;a.o=0;return b};
aP=function(a,b,c,d){OO.call(this,0,b,c,d);this.G=new sea;this.Nb=[0,0,0,0,0];this.Cb=[0,0,0,0,0];this.Ya=[0,0,0,0,0];this.bb=this.Z=0;this.F={};this.D=new qea;this.ge={};this.wg=this.C="";this.af=!1;this.Ta=[];this.M=void 0;this.he=this.df=this.ef=this.Gc=!1;this.J=void 0;this.K=-1;this.da=this.H=this.ba=this.tb=void 0;this.ya=this.la=this.$=0;this.Ca=1>Math.random()?1:0;this.Qa=0;this.Ka=-1;this.Wc=!1;this.Aa=this.jb=0;this.ea=!1;this.Ha=this.Ob=this.Ga=this.pa=this.b=this.N=this.Ze=0;this.ka=-1;
this.ne=this.ke=0;this.cf=this.ie=this.ff=this.B=!1;this.We=0;this.bf=!1;this.Wa=r;b=cO.getInstance();PO(this,a,b.g)};
bP=function(a){return p(a)&&0<=a&&1>=a};
cP=function(a,b){var c=b-a.ha||1,d=1E4;p(a.K)&&-1!=a.K&&(d=Math.max(d,a.K/3));return c>d?1:c};
wea=function(a){var b=0;.5<=a.g.b&&(b+=1);bP(a.H)&&(b+=2);a.ea&&(b+=4);a.B&&(b+=8);-1!=a.ca&&(b+=16,1==a.ca&&(b+=32));a.da&&(b+=128);a.da&&0<a.g.b&&(b+=256);return b};
xea=function(a){a.Zb=!0;a.ib=2};
dP=function(a,b){ub(a.Ta,Kb(b-a.Ta.length+1));a.Ta[b]=XO(a.g.b,2)};
gP=function(a,b){var c=a.ge[b];if(null!=c)return c;if(a.Ba)return{"if":0};c=a.position.clone();c.round();var d=N(a.Ta,function(a){return 100*a|0}),e=cO.getInstance(),f=a.G,k={};
k["if"]=e.g?1:void 0;k.sdk=a.J?a.J:void 0;k.t=a.If;k.p=[c.top,c.left,c.bottom,c.right];k.tos=a.g.D;k.mtos=a.g.B;k.ps=void 0;k.pt=d;k.vht=$O(f,eO(),!!a.M);k.mut=f.G;k.a=a.H;k.ns=a.We;k.fs=a.B?1:0;k.ft=a.jb;k.at=f.F;k.as=f.D?1:0;k.atos=f.A;k.uac=a.Ze;k.vpt=a.Qa;k.is=wea(a);k.ic=rea(a.D);if("h"==a.J||"as"==a.J)k.gmm="2";"fully_viewable_audible_half_duration_impression"==b&&(k.std="csm");a.Zb&&(k.efpf=a.ib);a.o&&(k.swf=a.o.getStatus(),k.px=a.S);a.A&&(k.sfm=a.A.getStatus(),k.px=a.S);0<a.ne&&(k.nnut=a.ne);
k.tcm=a.Ca;k.nmt=a.Ob;k.bt=a.Ha;k.pst=a.ka;k.mmct=a.ke;k.vpaid=a.tb;k.dur=a.K;k.vmtime=a.la;k.vmtos=a.Nb;k.vmmtos=a.Cb;yea(a,b)&&(a.Ae()&&(k.dtos=tea(f),k.vmdtos=a.Z,a.Z=0,k.dav=uea(f),a.bb++,k.dtoss=a.bb),k.dat=vea(f),k.dft=a.Aa,a.Aa=0);!a.Ae()&&2E3<=a.Z&&(k.vmdtos=a.Z);e.o&&(k.ps=[e.o.width,e.o.height]);k.dom=e.D;a.ua&&(k.fmf="1",k.px=a.S);a.Gc&&(k.ven="1");a.ef&&(k.veh="1");a.N&&(k.vds=a.N);a.b&&(k.vmer=a.b);a.pa&&(k.vmmk=a.pa);a.Ga&&(k.vmiec=a.Ga);eP()?(k.c=XO(a.g.b,2),k.ss=XO(zea(a),2)):k.tth=
eO()-fP;k.mc=XO(a.g.C,2);k.lte=XO(a.Bb,2);return k};
zea=function(a){if(a.B)return 1;var b=W.screen.width*W.screen.height;return 0>=b?-1:a.td*a.g.b/b};
yea=function(a,b){if(kb(Aea,b))return!0;var c=a.F[b];return p(c)&&(a.F[b]=!0,!c)?!0:!1};
pP=function(){if(!hP){hP=!0;var a=aa.requestAnimationFrame||aa.webkitRequestAnimationFrame||aa.mozRequestAnimationFrame||aa.oRequestAnimationFrame||aa.msRequestAnimationFrame;if(!iP){var b;if(a){var c=UN("osd_or_lidar::throttled_scroll_raf_callback",jP,void 0,void 0);b=function(){a(function(){W.setTimeout(c,0)})}}else b=jP;
kP=new ym(UN("osd_or_lidar::throttled_scroll_timeout",b,void 0,void 0),100);b=w(kP.Yf,kP);iP=pO(W,"scroll",b,"osd_or_lidar::throttled_scroll")}if(!lP){if(a){var d=UN("osd_or_lidar::throttled_resize_raf_callback",mP,void 0,void 0);b=function(){a(function(){W.setTimeout(d,0)})}}else b=mP;
nP=new ym(UN("osd_or_lidar::throttled_resize_timeout",b,void 0,void 0),100);b=w(nP.Yf,nP);lP=pO(W,"resize",b,"osd_or_lidar::throttled_resize")}Bea();oP()}};
mP=function(){qP(!1);jP()};
jP=function(){rP(sP(),!1)};
Eea=function(){var a,b=cO.getInstance();tP&&(b.b=bO(W,tP));if(Cea)return a=new uP,a.G=!0,a;if(Dea)return a=new uP,a.B=!0,a;if(vP){a=wP;qP(!1);var c=cO.getInstance(),d=c.A,b=d.height-a;0>=b&&(b=d.height,a=0);c.b=new ef(d.width,b);b=new uP;b.D=!0;b.o=c.b;b.g=d;b.A=a;return b}if(xP)return a=new uP,a.C=!0,a;if(yP)return a=new uP,a.F=!0,a;if(zP)return a=new uP,a.H=!0,a;a:{var b=b.b,e=new uP;e.o=b;e.b=!1;if(null!=b&&-1!=b.width&&-1!=b.height&&-12245933!=b.width&&-12245933!=b.height){try{var f=tP,k=W||W,
k=k.top,c=b||bO(k,f),d=uf(lf(k.document).b);a=-1==c.width||-12245933==c.width?new gg(c.width,c.width,c.width,c.width):new gg(d.y,d.x+c.width,d.y+c.height,d.x)}catch(l){a=e;break a}e.J=a;e.b=!0}a=e}return a};
rP=function(a,b){var c;if(!AP)if(window.clearTimeout(BP),BP=null,0==a.length)b||CP();else{var d=Eea();try{var e=eO();if(d.B)for(c=0;c<a.length;c++)RO(a[c],e,b);else if(d.G)for(c=0;c<a.length;c++)RO(a[c],e,b);else if(d.D)for(c=0;c<a.length;c++)lea(a[c],e,d.g,d.A,b);else if(d.C)for(c=0;c<a.length;c++)nea(a[c],e,b);else if(d.F)D(a,function(a){if(b){if(a.o){var c=a.o;3<=c.o&&(c.o=3);a.g.o=-1}}else if(a.o&&"d"!=a.o.getStatus()){var c=cea(a.o),d=[0,0,0,0,0,.01,.5,1,.01,.3],e=d[c.snapshot+1];a.g.o=SO(d[c.g+
1]);a.Ke(a.position,e,a.ha+c.b,!1,!0,!1);!a.Ae()||a.um()||a.Xe||a.o&&vO(a.o);(c=2==c.snapshot||zO(a.o))||(c=a.o,c="f"==c.b&&3E3<=c.B);c&&(a.$e(a),a.Xe=!1,a.o&&vO(a.o))}});
else if(d.H)for(c=0;c<a.length;c++)UO(a[c],e,b,W);else if(d.b){var f=cO.getInstance();for(c=0;c<a.length;c++)oea(a[c],e,d.J,b,f.g)}++Fea}finally{b?D(a,function(a){a.g.b=0}):CP()}}};
Bea=function(){var a=oP,b=$N();b&&(DP=DP||pO(ZN,b,a,"osd_or_lidar::visibility"))};
oP=function(){var a=eP(),b=eO();a?(fO||(gO=b,D(EP,function(a){var d=a.G;d.H=$O(d,b,!!a.M)})),fO=!0,qP(!0)):(fO=!1,fP=b,D(EP,function(a){a.V&&(a.G.g=b)}));
rP(sP(),!a)};
eP=function(){if(Gea())return!0;var a=YN(W.document);return 1==a||0==a};
CP=function(){W&&(BP=W.setTimeout(XN("osd_or_lidar::psamp_to",function(){rP(sP(),!1)}),Tda()))};
Hea=function(a){return fb(EP,function(b){return b.C==a})};
sP=function(){return 0==EP.length?FP:0==FP.length?EP:sb(FP,EP)};
Iea=function(){var a=W.document;return a.body&&a.body.getBoundingClientRect?!0:!1};
qP=function(a){var b=cO.getInstance();b.b=bO(W,tP);if(!a){b.A=W&&W.outerWidth?new ef(W.outerWidth,W.outerHeight):new ef(-12245933,-12245933);var c;a=W;a.top!=a&&(a=a.top);var d=0,e=0,f=cO.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,x=m.offsetWidth;m.clientHeight!=
u&&(n=l.scrollHeight,t=l.scrollWidth,u=l.offsetHeight,x=l.offsetWidth);n>f.height?n>u?(d=n,e=t):(d=u,e=x):n<u?(d=n,e=t):(d=u,e=x)}c=new ef(e,d)}catch(H){c=new ef(-12245933,-12245933)}b.o=c}};
Jea=function(a,b){var c=!1;D(EP,function(b){b=VO(b,a);c=c||b});
(zP=c)&&D(EP,function(a){WO(a)||b(a)});
return c};
Kea=function(a){var b=!1;D(EP,function(c){c=TO(c,a);b=b||c});
(yP=b)&&D(EP,function(b){b.o||a(b)});
return b};
Lea=function(a){D(a,function(a){null==fb(EP,function(c){return c.element==a.element&&c.wg==a.wg})&&EP.push(a)})};
Gea=function(){return Sh(EP,function(a){return a.B})};
uP=function(){this.g=this.o=null;this.A=0;this.J=null;this.b=this.H=this.F=this.C=this.D=this.B=this.G=!1};
GP=function(){this.g=64;this.b=Array(4);this.B=Array(this.g);this.A=this.o=0;this.reset()};
HP=function(a,b,c){c||(c=0);var d=Array(16);if(v(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]+41291707