project-totopia/w-demo.com_capture/html_sources/유저1/user_메인페이지_files/base.js.다운로드

6769 lines
1.1 MiB
Plaintext
Raw Normal View History

2019-07-20 21:39:16 +00:00
var _yt_player={};(function(g){var window=this;var ba,da,la,ma,na,pa,oa,qa,ra,sa,ua,baa,caa,va,wa,daa,eaa,xa,ya,za,Aa,Ba,Ea,Ia,Ja,gaa,haa,Ta,Ua,iaa,jaa,ab,kaa,ib,jb,laa,pb,lb,maa,nb,naa,oaa,paa,ub,vb,Db,Eb,Gb,Jb,Mb,Nb,Pb,Tb,Vb,Wb,Zb,$b,fc,gc,ic,hc,kc,raa,lc,saa,taa,oc,pc,sc,tc,waa,vc,uc,Bc,Fc,Gc,Hc,zaa,Caa,Daa,Lc,Oc,Eaa,Faa,Nc,Qc,Iaa,Vc,Xc,Zc,bd,cd,dd,Laa,fd,gd,hd,id,Naa,jd,rd,ud,xd,Bd,Cd,Id,Jd,Md,Kd,Od,Pd,Vd,Saa,Yd,zd,de,be,ce,Qaa,ee,yd,Uaa,Vaa,me,he,qe,se,pe,te,we,xe,ye,ze,Ae,Be,Ce,De,Ee,Fe,Ge,He,Ie,Je,Me,Ne,Oe,Pe,Qe,Re,Se,Te,$e,We,af,Waa,bf,
cf,df,ef,Ze,ff,hf,gf,kf,lf,jf,mf,nf,Xaa,tf,Zaa,wf,xf,yf,Af,Ef,$aa,Bf,Hf,Of,Nf,bba,Df,Tf,Uf,Vf,Wf,Yf,cba,Zf,$f,dba,eg,gg,hg,jg,kg,mg,ng,og,rg,sg,eba,ug,xg,yg,tg,vg,ig,pg,gba,Bg,zg,Ag,Dg,fba,Cg,Hg,Ig,hba,iba,jba,Jg,Lg,Ng,Og,Pg,Ug,Vg,Wg,Xg,Yg,Zg,ah,ch,dh,fh,mba,hh,ih,lh,mh,nba,rh,sh,th,uh,wh,xh,yh,Eh,Ih,Jh,Kh,Nh,Mh,Oh,Gh,oba,Uh,Vh,Wh,pba,qba,Xh,Yh,ai,ci,bi,di,ei,sba,uba,vba,xba,gi,hi,ii,ji,ni,oi,ri,pi,Aba,qi,si,ti,vi,ui,wi,xi,Ai,Bba,Bi,Di,Ei,Cba,Gi,Ii,Li,Mi,Ni,Oi,Pi,Dba,Qi,Ri,Si,Ti,Ui,Vi,Wi,Xi,Yi,Zi,
Eba,$i,ej,fj,hj,gj,ij,jj,kj,lj,Gba,Hba,oj,Iba,qj,rj,pj,sj,tj,Jba,uj,Kba,vj,Lba,xj,Oba,yj,Bj,Cj,Dj,Ej,Pba,Gj,Hj,Jj,Kj,Lj,Mj,Nj,Qba,Pj,Qj,Rj,Sj,Tj,Uj,Wj,Vj,Sba,Tba,Xj,Yj,Zj,ak,bk,dk,ek,fk,gk,hk,ck,ik,jk,kk,lk,Uba,Vba,mk,nk,Wba,ok,pk,Xba,rk,Yba,sk,tk,uk,Zba,vk,wk,yk,Ak,Bk,Ck,Dk,Ek,xk,zk,aca,Fk,Gk,Jk,Kk,cca,Lk,dca,eca,Mk,Nk,fca,Ok,Qk,gca,Sk,hca,Tk,Uk,ica,Vk,jca,Wk,kca,Xk,Yk,Zk,lca,$k,al,bl,mca,cl,dl,el,fl,nca,hl,gl,oca,pca,jl,il,ml,nl,ll,qca,uca,tca,pl,vca,wca,xca,zca,yca,ql,rl,sl,Aca,ul,wl,Bca,Cca,Dca,
xl,yl,zl,Al,Eca,Bl,Cl,Fca,Dl,El,Hca,Fl,Hl,Gl,Il,Kl,Ll,Ml,Ol,Jca,Pl,Ica,Ql,Rl,Kca,Lca,Tl,Vl,Wl,Xl,Yl,Ul,bm,cm,Zl,dm,em,Mca,fm,gm,hm,im,jm,km,lm,mm,pm,Pca,om,Qca,qm,sm,nm,rm,tm,um,Sca,Tca,ym,zm,Am,vm,Bm,Cm,Uca,Rca,Vca,Wca,Xca,Fm,Dm,Yca,$ca,ada,Hm,Im,Jm,Lm,fda,bda,Pm,Qm,Rm,Sm,Tm,gda,Um,Vm,Wm,hda,ida,jda,Xm,kda,lda,Zm,oda,an,$m,bn,cn,dn,pda,qda,en,jn,hn,on,pn,rn,tda,un,wn,vn,rda,zn,Cn,vda,wda,xda,En,Dn,Gn,Hn,yda,Bda,Kn,In,zda,Ada,Mn,Cda,Ln,Fda,Eda,Nn,Rn,Sn,Tn,Un,Jda,Wn,Kda,Xn,Yn,$n,ao,bo,co,eo,fo,ho,
io,Lda,mo,no,Mda,Oda,yo,zo,Bo,Co,Jo,Ko,Lo,Mo,No,Oo,Po,Rda,Qda,Uo,Vo,Sda,Tda,$o,ap,bp,cp,Uda,fp,gp,hp,ip,kp,lp,mp,np,pp,qp,rp,sp,Wda,tp,up,vp,Zda,Yda,wp,xp,yp,zp,Ap,Cp,Ep,eea,cea,dea,hea,fea,gea,Fp,Hp,iea,Ip,jea,Jp,Lp,Np,Op,Pp,Kp,Mp,Sp,Rp,Tp,Up,lea,Wp,Yp,Zp,cq,aq,fq,nq,qq,pq,oea,pea,sq,uq,vq,qea,yq,wq,Bq,sea,Dq,Eq,Fq,Gq,Iq,Mq,Kq,Nq,Oq,Pq,Sq,Rq,tea,Uq,vea,wea,Zq,Yq,yea,$q,ar,zea,er,Aea,Bea,cr,gr,ir,jr,lr,mr,nr,pr,qr,sr,ur,vr,hr,yr,wr,Cea,Br,Ar,Dr,Er,Fr,Hr,Gr,Eea,Kr,Lr,Mr,Nr,Vr,Ur,Wr,Fea,Jea,ds,es,fs,
gs,Lea,Mea,ns,os,ps,ws,xs,As,zs,ys,Cs,Nea,Ls,Ns,Os,Ps,Ss,Ts,Oea,Qs,Rs,Vs,Xs,Ys,at,Zs,ct,bt,dt,Pea,gt,Gp,ht,Rea,pt,ot,Sea,ut,vt,xt,zt,At,Et,Tea,Lt,Nt,Kt,Mt,Uea,Qt,Rt,St,Ut,Vt,Wt,Xt,Yt,Zt,$t,au,bu,cu,du,eu,gu,fu,Vea,hu,iu,Xea,ku,nu,Yea,ju,ru,tu,pu,mu,uu,vu,ou,qu,wu,xu,yu,Wea,zu,Zea,Au,Bu,Cu,Iu,$ea,Eu,Ku,Mu,Pu,Lu,Ju,Qu,Su,Tu,afa,Uu,Vu,Du,Fu,Gu,Hu,Ou,Nu,Wu,Xu,Yu,$u,Zu,bfa,av,bv,cv,dv,cfa,fv,ev,hv,iv,jv,kv,lv,mv,ov,pv,qv,rv,dfa,tv,efa,ffa,gfa,hfa,vv,wv,xv,yv,zv,Av,Bv,Ev,Fv,Gv,Iv,Jv,Kv,Mv,Nv,Ov,Pv,Lv,qfa,
Qv,Rv,Sv,Tv,rfa,sfa,Vv,tfa,Xv,Wv,Yv,$v,aw,bw,cw,ew,ufa,fw,vfa,gw,jw,kw,lw,hw,ow,gv,pw,qw,rw,tw,uw,nw,vw,ww,xw,yw,zw,Aw,Bw,Cw,Ew,Fw,Dw,Gw,Hw,xfa,Iw,Jw,Kw,Lw,Mw,yfa,zfa,Dfa,Efa,Afa,Bfa,Cfa,Nw,Ow,Ffa,Qw,Rw,Sw,Tw,Uw,Gfa,Vw,Xw,Yw,Hfa,Ifa,Zw,$w,Jfa,Kfa,Lfa,ax,Mfa,ex,bx,hx,Nfa,Ofa,ix,Pfa,Qfa,jx,kx,Rfa,lx,mx,Sfa,Tfa,Ufa,nx,fx,Vfa,ox,px,rx,sx,tx,ux,vx,Wfa,wx,yx,zx,Ax,Bx,Cx,Dx,Gx,Hx,Ix,Jx,Kx,Lx,Xfa,Nx,Mx,Ox,Px,Qx,Rx,Sx,Yfa,ey,Tx,Zfa,dy,$fa,iy,jy,ky,ly,my,ny,py,qy,ry,sy,cga,ty,uy,vy,yy,wy,zy,Ay,By,dga,ega,Cy,
Ey,Dy,Fy,fga,Hy,Iy,Jy,Ky,Ly,My,Gy,Ny,Q,Oy,Py,Qy,Ry,Ty,hga,Uy,Vy,xz,S,yz,zz,Az,Bz,Cz,ez,qz,oz,wz,Fz,Jz,bz,az,$y,Lz,kz,nga,oga,pga,Nz,Oz,Qz,Rz,Sz,Tz,Pz,Uz,qga,Yz,$z,rga,aA,uga,wga,vga,cA,tga,sga,bA,dA,xga,eA,yga,Aga,zga,Bga,fA,Cga,gA,hA,Dga,Ega,iA,Gga,jA,Fga,lA,nA,oA,pA,qA,Hga,rA,Iga,Jga,mA,sA,tA,Kga,uA,wA,yA,AA,CA,BA,DA,EA,zA,FA,GA,Mga,HA,JA,KA,NA,MA,OA,PA,RA,Nga,XA,WA,QA,YA,Oga,ZA,$A,cB,jB,nB,oB,fB,qB,rB,pB,uB,iB,Uga,dB,hB,lB,mB,eB,aB,vB,bB,Vga,gB,xB,Xga,DB,Zga,GB,LB,HB,MB,$ga,NB,PB,QB,RB,OB,SB,aha,
TB,KB,XB,cha,bha,$B,aC,bC,dC,eC,IB,eha,fha,gha,hha,iha,jha,kha,lha,mha,nha,qha,rha,sha,uha,AB,vha,mC,WB,wha,qC,rC,tC,uC,FB,YB,EB,hC,fC,gC,CB,BB,vC,wC,yC,xC,zC,AC,BC,DC,EC,FC,GC,HC,IC,JC,KC,yha,NC,OC,QC,RC,SC,TC,UC,ZC,$C,aD,bD,dD,eD,fD,cD,kD,jD,lD,mD,oD,pD,zD,xD,AD,yD,BD,CD,ED,FD,GD,JD,LD,MD,ND,OD,PD,QD,RD,Aha,TD,SD,Bha,UD,YD,KD,$D,cE,dE,eE,fE,gE,jE,kE,iE,Cha,lE,mE,nE,pE,rE,Eha,xE,yE,zE,AE,Fha,Gha,vE,BE,CE,EE,FE,GE,HE,IE,JE,KE,LE,ME,DE,Hha,OE,NE,Iha,Jha,Kha,Lha,PE,QE,Mha,Nha,Oha,Pha,RE,Qha,Rha,Sha,
Tha,Uha,SE,TE,YE,XE,$E,UE,aF,bF,cF,VE,dF,WE,ZE,eF,jF,hF,iF,lF,fF,kF,gF,mF,nF,Wha,oF,pF,rF,sF,qF,uF,vF,tF,xF,Xha,wF,yF,zF,Yha,AF,BF,CF,$ha,IF,aia,JF,KF,LF,DF,EF,Zha,GF,HF,FF,MF,OF,QF,PF,RF,SF,TF,VF,UF,WF,$F,bG,cG,dG,fG,gG,aG,YF,XF,ZF,hG,iG,jG,kG,eG,lG,mG,nG,oG,cia,rG,qG,dia,pG,sG,tG,eia,hia,iia,jia,zG,AG,kia,BG,vG,uG,fia,wG,xG,gia,yG,lia,mia,CG,DG,nia,EG,oia,IG,FG,HG,GG,pia,qia,KG,ria,JG,LG,MG,NG,OG,PG,QG,RG,uia,tia,sia,SG,UG,VG,WG,YG,ZG,aH,bH,eH,dH,gH,xia,wia,hH,zia,yia,nH,Aia,mH,Bia,pH,qH,jH,lH,
oH,TG,kH,$G,via,rH,sH,iH,XG,Cia,tH,Dia,uH,vH,wH,xH,Eia,yH,zH,Fia,AH,BH,CH,DH,Gia,Hia,EH,FH,IH,Iia,Kia,JH,Lia,KH,LH,GH,Nia,MH,NH,OH,Oia,Pia,Qia,PH,HH,QH,RH,UH,XH,Sia,Ria,WH,ZH,VH,YH,TH,$H,Tia,Uia,aI,cI,bI,eI,Via,Wia,fI,gI,iI,jI,hI,kI,lI,mI,oI,rI,qI,sI,tI,Yia,uI,pI,vI,Zia,$ia,yI,AI,CI,BI,DI,EI,zI,xI,aja,II,cja,KI,MI,NI,LI,OI,GI,eja,PI,QI,HI,FI,RI,JI,dja,fja,bja,SI,UI,VI,TI,WI,gja,XI,YI,bJ,zJ,$I,dJ,AJ,BJ,EJ,CJ,ija,FJ,IJ,HJ,ZI,mJ,MJ,LJ,QJ,JJ,UJ,TJ,SJ,XJ,NJ,gD,$J,ZJ,aK,dK,hja,eJ,VJ,iK,kja,kK,hK,lja,lK,
mK,nK,mja,jK,pK,oK,eK,gK,rK,tJ,RJ,tK,sK,qK,nja,yJ,vK,GJ,cJ,wK,fK,yK,zK,AK,BK,uK,KJ,CK,WJ,cK,FK,LK,ZK,bL,gL,pja,hL,iL,qja,rja,jL,lL,nL,oL,pL,qL,sja,rL,sL,Y,tL,vL,wL,uL,xL,yL,zL,AL,tja,vja,uja,BL,wja,CL,DL,EL,FL,GL,HL,IL,JL,KL,xja,LL,ML,NL,OL,QL,RL,Aja,SL,PL,TL,UL,Cja,yja,VL,zja,WL,XL,YL,ZL,$L,dM,eM,Dja,fM,Eja,Fja,gM,kM,jM,hM,iM,Kja,lM,mM,eka,fka,gka,nM,pM,hka,qM,sM,rM,tM,vM,ika,jka,xM,DM,HM,IM,kka,zM,CM,EM,BM,GM,FM,LM,JM,KM,MM,AM,yM,NM,lka,OM,PM,RM,mka,SM,QM,TM,UM,VM,WM,XM,YM,nka,ZM,$M,aN,bN,cN,dN,
oka,eN,fN,gN,hN,iN,jN,kN,lN,mN,nN,oN,pN,qN,rN,sN,tN,uN,vN,wN,xN,yN,pka,zN,qka,uka,ska,tka,vka,wka,xka,AN,rka,BN,CN,DN,EN,FN,GN,HN,IN,JN,KN,LN,MN,NN,ON,PN,QN,RN,SN,TN,VN,WN,ZN,XN,YN,yka,$N,aO,cO,bO,dO,eO,fO,zka,Bka,Cka,iO,Dka,hO,gO,Aka,jO,kO,lO,Eka,mO,nO,oO,pO,qO,rO,sO,uO,Fka,wO,vO,Gka,Hka,xO,Ika,yO,Jka,Kka,zO,Mka,Lka,AO,Nka,BO,CO,DO,EO,FO,Z,GO,HO,Oka,KO,LO,MO,NO,PO,RO,Pka,QO,SO,TO,UO,VO,WO,XO,YO,ZO,$O,aP,Ska,bP,cP,dP,fP,gP,iP,eP,hP,Uka,jP,Vka,kP,lP,mP,nP,oP,Wka,pP,qP,Xka,rP,Yka,sP,tP,uP,Zka,vP,$ka,
wP,ala,yP,AP,BP,CP,bla,dla,ela,DP,fla,FP,hla,gla,jla,EP,GP,KP,HP,JP,IP,NP,OP,tO,ila,MP,QP,RP,kla,SP,TP,WP,ZP,$P,aQ,cQ,dQ,eQ,fQ,gQ,hQ,iQ,kQ,lQ,mQ,nQ,pQ,rQ,sQ,tQ,uQ,vQ,wQ,xQ,yQ,zQ,lla,AQ,BQ,CQ,DQ,EQ,FQ,HQ,IQ,JQ,mla,ola,pla,rla,qla,LQ,MQ,NQ,tla,OQ,PQ,QQ,RQ,SQ,TQ,UQ,xla,ula,wla,vla,VQ,WQ,yla,XQ,YQ,zla,Ala,Bla,Cla,ZQ,Dla,Ela,$Q,Hla,Gla,Ila,aR,bR,Jla,Kla,Lla,eR,Mla,Nla,Ola,Pla,fR,dR,hR,iR,jR,kR,lR,mR,nR,qR,rR,sR,tR,uR,Qla,vR,Rla,wR,xR,yR,zR,AR,BR,DR,CR,ER,FR,GR,HR,IR,JR,KR,Sla,Tla,LR,Ula,Vla,MR,Wla,NR,
OR,PR,Xla,QR,RR,SR,TR,Yla,Zla,ama,bma,WR,YR,UR,$la,VR,cma,ZR,$R,dma,aS,cS,bS,dS,eS,fS,gS,hS,jS,fma,kS,lS,mS,nS,oS,qS,rS,sS,tS,uS,vS,wS,xS,yS,zS,AS,BS,CS,ES,FS,HS,IS,JS,KS,MS,LS,OS,NS,jma,SS,TS,RS,VS,US,XS,WS,YS,ZS,aT,$S,bT,cT,dT,fT,eT,hT,kT,mT,nT,oT,pT,qT,rT,sT,uT,vT,wT,xT,yT,CT,AT,zT,BT,ET,DT,FT,GT,IT,LT,JT,OT,PT,QT,MT,RT,XT,ST,bU,cU,UT,gU,fU,$T,eU,WT,dU,hU,ZT,jU,kU,lU,mU,oma,sU,uU,vU,yU,zU,xU,CU,DU,EU,FU,GU,HU,JU,IU,KU,LU,MU,NU,PU,RU,QU,OU,SU,TU,VU,WU,XU,pma,YU,ZU,$U,aV,bV,qma,cV,dV,eV,fV,iV,hV,
jV,lV,mV,oV,nV,qV,rV,pV,tV,uV,wV,xV,rma,yV,zV,sma,AV,DV,FV,tma,GV,HV,KV,LV,HD,JV,OV,PV,QV,NV,SV,RV,TV,uma,UV,VV,WV,ZV,$V,YV,XV,bW,aW,cW,dW,eW,fW,gW,hW,iW,jW,kW,mW,lW,vma,oW,pW,qW,rW,sW,uW,wW,xW,yW,zW,wma,CW,DW,xma,EW,GW,HW,IW,AW,gT,LW,KW,MW,NW,HT,OW,yma,zma,PW,SW,TW,QW,UW,RW,WW,XW,VW,YW,ZW,aX,cX,bX,eX,Cma,fX,Dma,jX,gX,lX,mX,nX,dX,pX,hX,qX,oX,kX,fL,sX,Ema,Fma,Gma,vX,Hma,BX,zX,xX,yX,uX,wX,AX,CX,Jma,Ima,DX,HX,FX,IX,GX,JX,KX,Kma,LX,NX,OX,MX,QX,uM,RX,SX,oja,TX,UX,VX,WX,XX,YX,Mma,Lma,aY,cY,dY,cL,gY,Sma,
fY,dL,eY,kY,lY,mY,nY,oY,Qma,Rma,sY,rY,$X,wY,ZX,xY,yY,HK,zY,BY,qY,pY,EY,iY,kL,wM,iX,vY,EX,rX,GY,HY,DY,CY,JY,PK,PP,DD,KY,uY,LY,NY,jY,RK,FY,OY,PY,QY,RY,Pma,AY,SY,Oma,TY,aa,fa,UY,Jaa,Uc,Oa,faa;ba=function(a){return function(){return aa[a].apply(this,arguments)}};
g.ca=function(a,b){return aa[a]=b};
da=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
g.q=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:da(a)}};
g.ea=function(a){if(!(a instanceof Array)){a=g.q(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};
g.t=function(a,b){a.prototype=fa(b.prototype);a.prototype.constructor=a;if(ha)ha(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.bb=b.prototype};
la=function(a,b){if(b){for(var c=ia,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];f in c||(c[f]={});c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&ka(c,d,{configurable:!0,writable:!0,value:f})}};
ma=function(){ma=function(){};
ia.Symbol||(ia.Symbol=aaa)};
na=function(a,b){this.g=a;ka(this,"description",{configurable:!0,writable:!0,value:b})};
pa=function(){ma();var a=ia.Symbol.iterator;a||(a=ia.Symbol.iterator=ia.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&ka(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return oa(da(this))}});
pa=function(){}};
oa=function(a){pa();a={next:a};a[ia.Symbol.iterator]=function(){return this};
return a};
qa=function(){this.o=!1;this.i=null;this.u=void 0;this.g=1;this.D=this.A=0;this.l=null};
ra=function(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0};
sa=function(a,b){a.l={fD:b,wE:!0};a.g=a.A||a.D};
ua=function(a,b,c){a.g=c;return{value:b}};
baa=function(a){this.g=new qa;this.i=a};
caa=function(a,b){ra(a.g);var c=a.g.i;if(c)return va(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g["return"]);
a.g["return"](b);return wa(a)};
va=function(a,b,c,d){try{var e=b.call(a.g.i,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.o=!1,e;var f=e.value}catch(k){return a.g.i=null,sa(a.g,k),wa(a)}a.g.i=null;d.call(a.g,f);return wa(a)};
wa=function(a){for(;a.g.g;)try{var b=a.i(a.g);if(b)return a.g.o=!1,{value:b.value,done:!1}}catch(c){a.g.u=void 0,sa(a.g,c)}a.g.o=!1;if(a.g.l){b=a.g.l;a.g.l=null;if(b.wE)throw b.fD;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
daa=function(a){this.next=function(b){ra(a.g);a.g.i?b=va(a,a.g.i.next,b,a.g.B):(a.g.B(b),b=wa(a));return b};
this["throw"]=function(b){ra(a.g);a.g.i?b=va(a,a.g.i["throw"],b,a.g.B):(sa(a.g,b),b=wa(a));return b};
this["return"]=function(b){return caa(a,b)};
pa();this[Symbol.iterator]=function(){return this}};
eaa=function(a){function b(d){return a.next(d)}
function c(d){return a["throw"](d)}
return new Promise(function(d,e){function f(k){k.done?d(k.value):Promise.resolve(k.value).then(b,c).then(f,e)}
f(a.next())})};
xa=function(a){return eaa(new daa(new baa(a)))};
ya=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{Tw:e,wB:f}}return{Tw:-1,wB:void 0}};
za=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Aa=function(a,b){pa();a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};
return d.next()}};
d[Symbol.iterator]=function(){return d};
return d};
Ba=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Ca=function(a){return void 0!==a};
g.Da=function(a){return"string"==typeof a};
Ea=function(a){return"boolean"==typeof a};
g.Fa=function(a){return"number"==typeof a};
g.Ga=function(a,b,c){a=a.split(".");c=c||g.u;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&g.Ca(b)?c[d]=b:c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}};
g.w=function(a,b){for(var c=a.split("."),d=b||g.u,e=0;e<c.length;e++)if(d=d[c[e]],null==d)return null;return d};
g.Ha=function(){};
Ia=function(a){a.Yc=void 0;a.getInstance=function(){return a.Yc?a.Yc:a.Yc=new a}};
Ja=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b};
g.Ka=function(a){return"array"==Ja(a)};
g.La=function(a){var b=Ja(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Ma=function(a){return"function"==Ja(a)};
g.Na=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Pa=function(a){return a[Oa]||(a[Oa]=++faa)};
gaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
haa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.x=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.x=gaa:g.x=haa;return g.x.apply(null,arguments)};
g.Qa=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
g.Ra=function(a,b){for(var c in b)a[c]=b[c]};
g.Sa=function(a,b){function c(){}
c.prototype=b.prototype;a.bb=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.eR=function(d,e,f){for(var k=Array(arguments.length-2),l=2;l<arguments.length;l++)k[l-2]=arguments[l];return b.prototype[e].apply(d,k)}};
Ta=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Ta);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
Ua=function(a,b){for(var c=a.split("%s"),d="",e=c.length-1,f=0;f<e;f++)d+=c[f]+(f<b.length?b[f]:"%s");Ta.call(this,d+c[e])};
iaa=function(){};
g.Va=function(a){return a[a.length-1]};
jaa=function(a,b){for(var c=g.Da(a)?a.split(""):a,d=a.length-1;0<=d;--d)d in c&&b.call(void 0,c[d],d,a)};
g.Xa=function(a,b,c){b=g.Wa(a,b,c);return 0>b?null:g.Da(a)?a.charAt(b):a[b]};
g.Wa=function(a,b,c){for(var d=a.length,e=g.Da(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
g.Ya=function(a,b,c){for(var d=g.Da(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;return-1};
g.$a=function(a,b){return 0<=Za(a,b)};
ab=function(a){if(!g.Ka(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.cb=function(a,b){var c=Za(a,b),d;(d=0<=c)&&g.bb(a,c);return d};
g.bb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.eb=function(a,b){var c=g.Wa(a,b,void 0);0<=c&&g.bb(a,c)};
kaa=function(a,b){var c=0;jaa(a,function(d,e){b.call(void 0,d,e,a)&&g.bb(a,e)&&c++})};
g.fb=function(a){return Array.prototype.concat.apply([],arguments)};
g.gb=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[]};
ib=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.La(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}};
g.kb=function(a,b,c,d){Array.prototype.splice.apply(a,jb(arguments,1))};
jb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
laa=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=g.Na(f)?"o"+g.Pa(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};
g.ob=function(a,b,c){return lb(a,c||nb,!1,b)};
pb=function(a,b){return lb(a,b,!0,void 0,void 0)};
lb=function(a,b,c,d,e){for(var f=0,k=a.length,l;f<k;){var m=f+k>>1,n;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(k=m,l=!n)}return l?f:~f};
g.qb=function(a,b){a.sort(b||nb)};
maa=function(a,b){var c=nb;g.qb(a,function(d,e){return c(b(d),b(e))})};
g.rb=function(a,b){if(!g.La(a)||!g.La(b)||a.length!=b.length)return!1;for(var c=a.length,d=naa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
nb=function(a,b){return a>b?1:a<b?-1:0};
naa=function(a,b){return a===b};
g.sb=function(a,b,c){c=g.ob(a,b,c);0>c&&g.kb(a,-(c+1),0,b)};
g.tb=function(a,b,c){var d={};(0,g.y)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
oaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
paa=function(a,b){var c=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,c[0])};
ub=function(a,b){return 0==a.lastIndexOf(b,0)};
vb=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.wb=function(a){return/^[\s\xa0]*$/.test(a)};
Db=function(a,b){if(b)a=a.replace(xb,"&amp;").replace(yb,"&lt;").replace(zb,"&gt;").replace(Ab,"&quot;").replace(Bb,"&#39;").replace(Cb,"&#0;");else{if(!qaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(xb,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(yb,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(zb,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ab,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Bb,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Cb,"&#0;"))}return a};
Eb=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.Hb=function(a,b){for(var c=0,d=Fb(String(a)).split("."),e=Fb(String(b)).split("."),f=Math.max(d.length,e.length),k=0;0==c&&k<f;k++){var l=d[k]||"",m=e[k]||"";do{l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];if(0==l[0].length&&0==m[0].length)break;c=Gb(0==l[1].length?0:parseInt(l[1],10),0==m[1].length?0:parseInt(m[1],10))||Gb(0==l[2].length,0==m[2].length)||Gb(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
Gb=function(a,b){return a<b?-1:a>b?1:0};
Jb=function(a){return-1!=g.Ib.indexOf(a)};
g.Kb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Lb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Mb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
Nb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1};
g.Ob=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Pb=function(a){for(var b in a)return a[b]};
g.Qb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Rb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Sb=function(a,b){var c=g.La(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a};
Tb=function(a,b){return null!==a&&b in a};
g.Ub=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Vb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Wb=function(a,b){var c=Vb(a,b,void 0);return c&&a[c]};
g.Xb=function(a){for(var b in a)return!1;return!0};
g.Yb=function(a){for(var b in a)delete a[b]};
Zb=function(a,b){b in a&&delete a[b]};
$b=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.ac=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};
g.bc=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.cc=function(a){var b=Ja(a);if("object"==b||"array"==b){if(g.Ma(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=g.cc(a[c]);return b}return a};
g.ec=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<dc.length;f++)c=dc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
fc=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
gc=function(){return Jb("Firefox")||Jb("FxiOS")};
ic=function(){return Jb("Safari")&&!(hc()||Jb("Coast")||Jb("Opera")||Jb("Edge")||Jb("Edg/")||Jb("OPR")||gc()||Jb("Silk")||Jb("Android"))};
hc=function(){return(Jb("Chrome")||Jb("CriOS"))&&!Jb("Edge")};
g.jc=function(){return Jb("Android")&&!(hc()||gc()||Jb("Opera")||Jb("Silk"))};
kc=function(a){return function(){return a}};
raa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
lc=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
saa=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
taa=function(a,b){var c=0;return function(d){g.u.clearTimeout(c);var e=arguments;c=g.u.setTimeout(function(){a.apply(b,e)},50)}};
oc=function(a,b){this.g=a===mc&&b||"";this.i=nc};
pc=function(a){return a instanceof oc&&a.constructor===oc&&a.i===nc?a.g:"type_error:Const"};
g.qc=function(a){return new oc(mc,a)};
sc=function(){this.i="";this.l=rc};
tc=function(a){if(a instanceof sc&&a.constructor===sc&&a.l===rc)return a.i;Ja(a);return"type_error:TrustedResourceUrl"};
waa=function(a,b){var c=pc(a);if(!uaa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);var d=c.replace(vaa,function(e,f){if(!Object.prototype.hasOwnProperty.call(b,f))throw Error('Found marker, "'+f+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));var k=b[f];return k instanceof oc?pc(k):encodeURIComponent(String(k))});
return uc(d)};
vc=function(a){return uc(pc(a))};
uc=function(a){var b=new sc;b.i=a;return b};
g.xc=function(){this.i="";this.l=wc};
g.zc=function(a){return g.yc(a).toString()};
g.yc=function(a){if(a instanceof g.xc&&a.constructor===g.xc&&a.l===wc)return a.i;Ja(a);return"type_error:SafeUrl"};
g.Cc=function(a){if(a instanceof g.xc)return a;a="object"==typeof a&&a.Ef?a.ee():String(a);Ac.test(a)||(a="about:invalid#zClosurez");return Bc(a)};
g.Dc=function(a,b){if(a instanceof g.xc)return a;a="object"==typeof a&&a.Ef?a.ee():String(a);if(b&&/^data:/i.test(a)){var c=a.replace(/(%0A|%0D)/g,"");var d=c.match(xaa);d=d&&yaa.test(d[1]);c=Bc(d?c:"about:invalid#zClosurez");if(c.ee()==a)return c}Ac.test(a)||(a="about:invalid#zClosurez");return Bc(a)};
Bc=function(a){var b=new g.xc;b.i=a;return b};
Fc=function(){this.g="";this.i=Ec};
Gc=function(a){var b=new Fc;b.g=a;return b};
Hc=function(a){if(a instanceof g.xc)return'url("'+g.zc(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof oc?pc(a):zaa(String(a));if(/[{;}]/.test(a))throw new Ua("Value does not allow [{;}], got: %s.",[a]);return a};
zaa=function(a){var b=a.replace(Ic,"$1").replace(Ic,"$1").replace(Jc,"url");if(Aaa.test(b)){if(Baa.test(a))return"zClosurez";for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}if(!b||!c||!Caa(a))return"zClosurez"}else return"zClosurez";return Daa(a)};
Caa=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b};
Daa=function(a){return a.replace(Jc,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(k,l,m){f=l;return m});
b=g.Cc(d).ee();return c+f+b+f+e})};
Lc=function(){this.i="";this.o=Kc;this.l=null};
g.Mc=function(a){if(a instanceof Lc&&a.constructor===Lc&&a.o===Kc)return a.i;Ja(a);return"type_error:SafeHtml"};
Oc=function(a){if(a instanceof Lc)return a;var b="object"==typeof a,c=null;b&&a.Mq&&(c=a.g());return Nc(Db(b&&a.Ef?a.ee():String(a)),c)};
Eaa=function(a){function b(f){g.Ka(f)?(0,g.y)(f,b):(f=Oc(f),e.push(g.Mc(f).toString()),f=f.g(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=Oc(Pc),d=c.g(),e=[];(0,g.y)(a,b);return Nc(e.join(g.Mc(c).toString()),d)};
Faa=function(a){return Eaa(Array.prototype.slice.call(arguments))};
Nc=function(a,b){return Qc(a,b)};
Qc=function(a,b){var c=new Lc;c.i=a;c.l=b;return c};
g.Rc=function(a,b){pc(a);pc(a);return Qc(b,null)};
g.Sc=function(a,b){if(Gaa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.Mc(b)};
g.Tc=function(a,b){var c=b instanceof g.xc?b:g.Dc(b);a.href=g.yc(c)};
Iaa=function(a){var b=vc(Haa);a.src=tc(b).toString()};
Vc=function(a,b){a.src=tc(b);if(null===Uc)b:{var c=g.u.document;if((c=c.querySelector&&c.querySelector("script[nonce]"))&&(c=c.nonce||c.getAttribute("nonce"))&&Jaa.test(c)){Uc=c;break b}Uc=""}c=Uc;c&&a.setAttribute("nonce",c)};
g.Wc=function(a){return encodeURIComponent(String(a))};
Xc=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.Yc=function(a){return a=Db(a,void 0)};
Zc=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a};
g.$c=function(a,b){var c=g.Ca(void 0)?a.toFixed(void 0):String(a),d=c.indexOf(".");-1==d&&(d=c.length);return Kaa("0",Math.max(0,b-d))+c};
g.ad=function(a){return null==a?"":String(a)};
bd=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
cd=function(a){var b=Number(a);return 0==b&&g.wb(a)?NaN:b};
dd=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
g.ed=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};
Laa=function(a){var b=g.Da(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(c,d,e){return d+e.toUpperCase()})};
fd=function(){return Jb("iPhone")&&!Jb("iPod")&&!Jb("iPad")};
gd=function(){return fd()||Jb("iPad")||Jb("iPod")};
hd=function(a){hd[" "](a);return a};
id=function(a,b){try{return hd(a[b]),!0}catch(c){}return!1};
Naa=function(a,b){var c=Maa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
jd=function(){var a=g.u.document;return a?a.documentMode:void 0};
g.ld=function(a){return Naa(a,function(){return 0<=g.Hb(kd,a)})};
g.od=function(a){return Number(Oaa)>=a};
g.pd=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.qd=function(a,b){var c=a%b;return 0>c*b?c+b:c};
rd=function(a,b,c){return a+c*(b-a)};
g.sd=function(a){return a*Math.PI/180};
g.td=function(a,b){this.x=g.Ca(a)?a:0;this.y=g.Ca(b)?b:0};
ud=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.vd=function(a,b){this.width=a;this.height=b};
g.wd=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
xd=function(a){return a.width*a.height};
Bd=function(a){return a?new yd(zd(a)):Ad||(Ad=new yd)};
Cd=function(a,b){return g.Da(b)?a.getElementById(b):b};
g.Ed=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.Dd(document,"*",a,b)};
g.Fd=function(a,b){var c=b||document;if(c.getElementsByClassName)c=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;c=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.Dd(c,"*",a,b)[0]||null}return c||null};
g.Dd=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,k;k=a[f];f++)b==k.nodeName&&(d[e++]=k);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;k=a[f];f++)b=k.className,"function"==typeof b.split&&g.$a(b.split(/\s+/),c)&&(d[e++]=k);d.length=e;return d}return a};
Id=function(a,b){g.Kb(b,function(c,d){c&&"object"==typeof c&&c.Ef&&(c=c.ee());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Hd.hasOwnProperty(d)?a.setAttribute(Hd[d],c):ub(d,"aria-")||ub(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Jd=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.vd(a.clientWidth,a.clientHeight)};
Md=function(a){var b=Kd(a);a=a.parentWindow||a.defaultView;return g.Ld&&g.ld("10")&&a.pageYOffset!=b.scrollTop?new g.td(b.scrollLeft,b.scrollTop):new g.td(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Kd=function(a){return a.scrollingElement?a.scrollingElement:g.Nd||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Od=function(a){return a?a.parentWindow||a.defaultView:window};
g.Qd=function(a,b,c){var d=arguments,e=document,f=String(d[0]),k=d[1];if(!Paa&&k&&(k.name||k.type)){f=["<",f];k.name&&f.push(' name="',g.Yc(k.name),'"');if(k.type){f.push(' type="',g.Yc(k.type),'"');var l={};g.ec(l,k);delete l.type;k=l}f.push(">");f=f.join("")}f=e.createElement(f);k&&(g.Da(k)?f.className=k:g.Ka(k)?f.className=k.join(" "):Id(f,k));2<d.length&&Pd(e,f,d,2);return f};
Pd=function(a,b,c,d){function e(k){k&&b.appendChild(g.Da(k)?a.createTextNode(k):k)}
for(;d<c.length;d++){var f=c[d];!g.La(f)||g.Na(f)&&0<f.nodeType?e(f):(0,g.y)(Qaa(f)?g.gb(f):f,e)}};
g.Rd=function(a){return document.createElement(String(a))};
g.Sd=function(a){return document.createTextNode(String(a))};
g.Td=function(a,b){a.appendChild(b)};
g.Ud=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
Vd=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Wd=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Saa=function(a){return Raa&&void 0!=a.children?a.children:(0,g.Xd)(a.childNodes,function(b){return 1==b.nodeType})};
Yd=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a};
g.Zd=function(a){var b;if(Taa&&!(g.Ld&&g.ld("9")&&!g.ld("10")&&g.u.SVGElement&&a instanceof g.u.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Na(b)&&1==b.nodeType?b:null};
g.$d=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};
zd=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.ae=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else{g.Ud(a);var c=zd(a);a.appendChild(c.createTextNode(String(b)))}};
de=function(a){var b;if((b="A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!be(a)||ce(a)):be(a)&&ce(a))&&g.Ld){var c;!g.Ma(a.getBoundingClientRect)||g.Ld&&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};
be=function(a){return g.Ld&&!g.ld("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
ce=function(a){a=a.tabIndex;return g.Fa(a)&&0<=a&&32768>a};
Qaa=function(a){if(a&&"number"==typeof a.length){if(g.Na(a))return"function"==typeof a.item||"string"==typeof a.item;if(g.Ma(a))return"function"==typeof a.item}return!1};
g.fe=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return ee(a,function(f){return(!e||f.nodeName==e)&&(!c||g.Da(f.className)&&g.$a(f.className.split(/\s+/),c))},!0,d)};
ee=function(a,b,c,d){a&&!c&&(a=a.parentNode);for(c=0;a&&(null==d||c<=d);){if(b(a))return a;a=a.parentNode;c++}return null};
yd=function(a){this.g=a||g.u.document||document};
Uaa=function(a){return(0,g.ge)(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.ke=function(a,b){g.La(a);he();for(var c=b?ie:je,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,p=f>>2;f=(f&3)<<4|l>>4;l=(l&15)<<2|n>>6;n&=63;m||(n=64,k||(l=64));d.push(c[p],c[f],c[l],c[n])}return d.join("")};
g.le=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return g.ke(b,!0)};
Vaa=function(a){var b=[];me(a,function(c){b.push(c)});
return b};
g.ne=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):"="===a[b-1]&&(c="="===a[b-2]?c-2:c-1);var d=new Uint8Array(c),e=0;me(a,function(f){d[e++]=f});
return d.subarray(0,e)};
me=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=oe[n];if(null!=p)return p;if(!g.wb(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
he();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))}};
he=function(){if(!je){je={};oe={};ie={};for(var a=0;65>a;a++)je[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),oe[je[a]]=a,ie[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(oe["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}};
qe=function(a,b,c){this.i=null;this.A=this.B=this.g=this.l=this.o=0;this.u=!1;a&&pe(this,a,b,c)};
se=function(a,b,c){if(re.length){var d=re.pop();a&&pe(d,a,b,c);return d}return new qe(a,b,c)};
pe=function(a,b,c,d){b=b.constructor===Uint8Array?b:b.constructor===ArrayBuffer?new Uint8Array(b):b.constructor===Array?new Uint8Array(b):b.constructor===String?g.ne(b):new Uint8Array(0);a.i=b;a.o=g.Ca(c)?c:0;a.l=g.Ca(d)?a.o+d:a.i.length;a.g=a.o};
te=function(a){var b=a.i;var c=b[a.g+0];var d=c&127;if(128>c)return a.g+=1,d;c=b[a.g+1];d|=(c&127)<<7;if(128>c)return a.g+=2,d;c=b[a.g+2];d|=(c&127)<<14;if(128>c)return a.g+=3,d;c=b[a.g+3];d|=(c&127)<<21;if(128>c)return a.g+=4,d;c=b[a.g+4];d|=(c&15)<<28;if(128>c)return a.g+=5,d>>>0;a.g+=5;128<=b[a.g++]&&128<=b[a.g++]&&128<=b[a.g++]&&128<=b[a.g++]&&a.g++;return d};
we=function(a){this.g=se(a,void 0,void 0);this.u=this.g.g;this.i=this.l=-1;this.o=!1};
xe=function(a){var b=a.g;(b=b.g==b.l)||(b=a.o)||(b=a.g,b=b.u||0>b.g||b.g>b.l);if(b)return!1;a.u=a.g.g;b=te(a.g);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.o=!0,!1;a.l=b>>>3;a.i=c;return!0};
ye=function(a){switch(a.i){case 0:if(0!=a.i)ye(a);else{for(a=a.g;a.i[a.g]&128;)a.g++;a.g++}break;case 1:1!=a.i?ye(a):(a=a.g,a.g+=8);break;case 2:if(2!=a.i)ye(a);else{var b=te(a.g);a=a.g;a.g+=b}break;case 5:5!=a.i?ye(a):(a=a.g,a.g+=4);break;case 3:b=a.l;do{if(!xe(a)){a.o=!0;break}if(4==a.i){a.l!=b&&(a.o=!0);break}ye(a)}while(1)}};
ze=function(a){a=a.g;a:{for(var b,c=0,d,e=0;4>e;e++)if(b=a.i[a.g++],c|=(b&127)<<7*e,128>b){a.B=c>>>0;a.A=0;break a}b=a.i[a.g++];c|=(b&127)<<28;d=0|(b&127)>>4;if(128>b)a.B=c>>>0,a.A=d>>>0;else{for(e=0;5>e;e++)if(b=a.i[a.g++],d|=(b&127)<<7*e+3,128>b){a.B=c>>>0;a.A=d>>>0;break a}a.u=!0}}b=a.B;c=a.A;if(a=c&2147483648)b=~b+1>>>0,c=~c>>>0,0==b&&(c=c+1>>>0);b=4294967296*c+b;return a?-b:b};
Ae=function(a){var b=te(a.g);a=a.g;var c=a.i,d=a.g,e=d+b;b=[];for(var f="";d<e;){var k=c[d++];if(128>k)b.push(k);else if(192>k)continue;else if(224>k){var l=c[d++];b.push((k&31)<<6|l&63)}else if(240>k){l=c[d++];var m=c[d++];b.push((k&15)<<12|(l&63)<<6|m&63)}else if(248>k){l=c[d++];m=c[d++];var n=c[d++];k=(k&7)<<18|(l&63)<<12|(m&63)<<6|n&63;k-=65536;b.push((k>>10&1023)+55296,(k&1023)+56320)}8192<=b.length&&(f+=String.fromCharCode.apply(null,b),b.length=0)}c=f;if(8192>=b.length)b=String.fromCharCode.apply(null,
b);else{e="";for(f=0;f<b.length;f+=8192)k=jb(b,f,f+8192),e+=String.fromCharCode.apply(null,k);b=e}a.g=d;return c+b};
Be=function(a){var b=te(a.g);a=a.g;if(0>b||a.g+b>a.i.length)a.u=!0,b=new Uint8Array(0);else{var c=a.i.subarray(a.g,a.g+b);a.g+=b;b=c}return b};
Ce=function(){this.g=[]};
De=function(a,b){for(;127<b;)a.g.push(b&127|128),b>>>=7;a.g.push(b)};
Ee=function(a,b){a.g.push(b>>>0&255);a.g.push(b>>>8&255);a.g.push(b>>>16&255);a.g.push(b>>>24&255)};
Fe=function(){this.l=[];this.i=0;this.g=new Ce};
Ge=function(a,b){De(a.g,8*b+2);var c=a.g.end();a.l.push(c);a.i+=c.length;c.push(a.i);return c};
He=function(a,b){var c=b.pop();for(c=a.i+a.g.length()-c;127<c;)b.push(c&127|128),c>>>=7,a.i++;b.push(c);a.i++};
Ie=function(a){for(var b=new Uint8Array(a.i+a.g.length()),c=a.l,d=c.length,e=0,f=0;f<d;f++){var k=c[f];b.set(k,e);e+=k.length}c=a.g.end();b.set(c,e);a.l=[b];return b};
Je=function(a,b,c){if(null!=c&&null!=c)if(De(a.g,8*b),a=a.g,0<=c)De(a,c);else{for(b=0;9>b;b++)a.g.push(c&127|128),c>>=7;a.g.push(1)}};
Me=function(a,b,c){if(null!=c&&null!=c){De(a.g,8*b);a=a.g;var d=c;c=0>d;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295<b&&(b=0,d++,4294967295<d&&(d=0)));Ke=b;Le=d;c=Ke;for(b=Le;0<b||127<c;)a.g.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.g.push(c)}};
Ne=function(a,b,c){null!=c&&(De(a.g,8*b+1),a=a.g,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,Ke=b,Le=c,Ee(a,Ke),Ee(a,Le))};
Oe=function(a,b,c){if(null!=c){De(a.g,8*b+1);a=a.g;var d=c;d=(c=0>d?1:0)?-d:d;0===d?(Le=0<1/d?0:2147483648,Ke=0):isNaN(d)?(Le=2147483647,Ke=4294967295):1.7976931348623157E308<d?(Le=(c<<31|2146435072)>>>0,Ke=0):2.2250738585072014E-308>d?(d/=Math.pow(2,-1074),Le=(c<<31|d/4294967296)>>>0,Ke=d>>>0):(b=Math.floor(Math.log(d)/Math.LN2),1024==b&&(b=1023),d*=Math.pow(2,-b),Le=(c<<31|b+1023<<20|1048576*d&1048575)>>>0,Ke=4503599627370496*d>>>0);Ee(a,Ke);Ee(a,Le)}};
Pe=function(a,b,c){null!=c&&(De(a.g,8*b),a.g.g.push(c?1:0))};
Qe=function(a,b,c){if(null!=c){b=Ge(a,b);for(var d=a.g,e=0;e<c.length;e++){var f=c.charCodeAt(e);if(128>f)d.g.push(f);else if(2048>f)d.g.push(f>>6|192),d.g.push(f&63|128);else if(65536>f)if(55296<=f&&56319>=f&&e+1<c.length){var k=c.charCodeAt(e+1);56320<=k&&57343>=k&&(f=1024*(f-55296)+k-56320+65536,d.g.push(f>>18|240),d.g.push(f>>12&63|128),d.g.push(f>>6&63|128),d.g.push(f&63|128),e++)}else d.g.push(f>>12|224),d.g.push(f>>6&63|128),d.g.push(f&63|128)}He(a,b)}};
Re=function(a,b,c,d){null!=c&&(b=Ge(a,b),d(c,a),He(a,b))};
Se=function(a,b,c,d){if(null!=c)for(var e=0;e<c.length;e++){var f=Ge(a,b);d(c[e],a);He(a,f)}};
Te=function(){};
$e=function(a,b,c,d){a.g=null;b||(b=[]);a.B=void 0;a.o=-1;a.i=b;a:{if(b=a.i.length){--b;var e=a.i[b];if(!(null===e||"object"!=typeof e||g.Ka(e)||Ue&&e instanceof Uint8Array)){a.u=b-a.o;a.l=e;break a}}a.u=Number.MAX_VALUE}a.A={};if(c)for(b=0;b<c.length;b++)e=c[b],e<a.u?(e+=a.o,a.i[e]=a.i[e]||Ve):(We(a),a.l[e]=a.l[e]||Ve);if(d&&d.length)for(b=0;b<d.length;b++)Ze(a,d[b])};
We=function(a){var b=a.u+a.o;a.i[b]||(a.l=a.i[b]={})};
af=function(a,b){if(b<a.u){var c=b+a.o,d=a.i[c];return d===Ve?a.i[c]=[]:d}if(a.l)return d=a.l[b],d===Ve?a.l[b]=[]:d};
Waa=function(a){if(null==a||a instanceof Uint8Array)return a;if(g.Da(a))return g.ne(a);Ja(a);return null};
bf=function(a,b){var c=af(a,b);return null==c?0:c};
cf=function(a,b,c){b<a.u?a.i[b+a.o]=c:(We(a),a.l[b]=c)};
df=function(a,b,c){0!==c?cf(a,b,c):a.i[b+a.o]=null};
ef=function(a,b,c,d){(c=Ze(a,c))&&c!==b&&void 0!==d&&(a.g&&c in a.g&&(a.g[c]=void 0),cf(a,c,void 0));cf(a,b,d)};
Ze=function(a,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],k=af(a,f);null!=k&&(c=f,d=k,cf(a,f,void 0))}return c?(cf(a,c,d),c):0};
ff=function(a,b,c){a.g||(a.g={});if(!a.g[c]){var d=af(a,c);d&&(a.g[c]=new b(d))}return a.g[c]};
hf=function(a,b,c){gf(a,b,c);b=a.g[c];b==Ve&&(b=a.g[c]=[]);return b};
gf=function(a,b,c){a.g||(a.g={});if(!a.g[c]){for(var d=af(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.g[c]=e}};
kf=function(a,b,c){a.g||(a.g={});c=c||[];for(var d=[],e=0;e<c.length;e++)d[e]=jf(c[e]);a.g[b]=c;cf(a,b,d)};
lf=function(a){if(a.g)for(var b in a.g){var c=a.g[b];if(g.Ka(c))for(var d=0;d<c.length;d++)c[d]&&jf(c[d]);else c&&jf(c)}};
jf=function(a){lf(a);return a.i};
mf=function(a){if(g.Ka(a)){for(var b=Array(a.length),c=0;c<a.length;c++){var d=a[c];null!=d&&(b[c]="object"==typeof d?mf(d):d)}return b}if(Ue&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?mf(d):d);return b};
nf=function(a){for(var b=[],c=a=Od(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};
Xaa=function(a){var b=g.w("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if(g.Da(a))return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(f){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.u.$googDebugFname||b}catch(f){e="Not available",c=!0}return!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name?a:(b=a.message,null==b&&(a.constructor&&
a.constructor instanceof Function?(a.constructor.name?b=a.constructor.name:(b=a.constructor,of[b]?b=of[b]:(b=String(b),of[b]||(c=/function\s+([^\(]+)/m.exec(b),of[b]=c?c[1]:"[Anonymous]"),b=of[b])),b='Unknown Error of type "'+b+'"'):b="Unknown Error of unknown type"),{message:b,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:a.stack||"Not available"})};
g.A=function(){this.ib=this.ib;this.qh=this.qh};
g.B=function(a,b){g.pf(a,g.Qa(g.qf,b))};
g.pf=function(a,b){a.ib?g.Ca(void 0)?b.call(void 0):b():(a.qh||(a.qh=[]),a.qh.push(g.Ca(void 0)?(0,g.x)(b,void 0):b))};
g.qf=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.rf=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.La(d)?g.rf.apply(null,d):g.qf(d)}};
g.sf=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.wh=!1;this.tA=!0};
tf=function(a,b){g.sf.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.g=null;a&&this.init(a,b)};
g.vf=function(a){return!(!a||!a[g.uf])};
Zaa=function(a,b,c,d,e){this.listener=a;this.g=null;this.src=b;this.type=c;this.capture=!!d;this.Hm=e;this.key=++Yaa;this.Fi=this.Tl=!1};
wf=function(a){a.Fi=!0;a.listener=null;a.g=null;a.src=null;a.Hm=null};
xf=function(a){this.src=a;this.listeners={};this.g=0};
yf=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=g.cb(a.listeners[c],b);d&&(wf(b),0==a.listeners[c].length&&(delete a.listeners[c],a.g--));return d};
g.zf=function(a){var b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,wf(d[e]);delete a.listeners[c];a.g--}};
Af=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Fi&&f.listener==b&&f.capture==!!c&&f.Hm==d)return e}return-1};
g.Cf=function(a,b,c,d,e){if(d&&d.once)return Bf(a,b,c,d,e);if(g.Ka(b)){for(var f=0;f<b.length;f++)g.Cf(a,b[f],c,d,e);return null}c=Df(c);return g.vf(a)?a.da(b,c,g.Na(d)?!!d.capture:!!d,e):Ef(a,b,c,!1,d,e)};
Ef=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=g.Na(e)?!!e.capture:!!e,l=g.Ff(a);l||(a[Gf]=l=new xf(a));c=l.add(b,c,d,k,f);if(c.g)return c;d=$aa();c.g=d;d.src=a;d.listener=c;if(a.addEventListener)aba||(e=k),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Hf(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");If++;return c};
$aa=function(){var a=bba,b=Jf?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};
Bf=function(a,b,c,d,e){if(g.Ka(b)){for(var f=0;f<b.length;f++)Bf(a,b[f],c,d,e);return null}c=Df(c);return g.vf(a)?a.an(b,c,g.Na(d)?!!d.capture:!!d,e):Ef(a,b,c,!0,d,e)};
g.Kf=function(a,b,c,d,e){if(g.Ka(b))for(var f=0;f<b.length;f++)g.Kf(a,b[f],c,d,e);else d=g.Na(d)?!!d.capture:!!d,c=Df(c),g.vf(a)?a.Na(b,c,d,e):a&&(a=g.Ff(a))&&(b=a.Jj(b,c,d,e))&&g.Lf(b)};
g.Lf=function(a){if(g.Fa(a)||!a||a.Fi)return!1;var b=a.src;if(g.vf(b))return yf(b.te,a);var c=a.type,d=a.g;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Hf(c),d):b.addListener&&b.removeListener&&b.removeListener(d);If--;(c=g.Ff(b))?(yf(c,a),0==c.g&&(c.src=null,b[Gf]=null)):wf(a);return!0};
Hf=function(a){return a in Mf?Mf[a]:Mf[a]="on"+a};
Of=function(a,b,c,d){var e=!0;if(a=g.Ff(a))if(b=a.listeners[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.Fi&&(f=Nf(f,d),e=e&&!1!==f)}return e};
Nf=function(a,b){var c=a.listener,d=a.Hm||a.src;a.Tl&&g.Lf(a);return c.call(d,b)};
bba=function(a,b){if(a.Fi)return!0;if(!Jf){var c=b||g.w("window.event"),d=new tf(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);f=a.type;for(var k=c.length-1;!d.wh&&0<=k;k--){d.currentTarget=c[k];var l=Of(c[k],f,!0,d);e=e&&l}for(k=0;!d.wh&&k<c.length;k++)d.currentTarget=c[k],l=Of(c[k],f,!1,d),e=e&&l}return e}return Nf(a,new tf(b,
this))};
g.Ff=function(a){a=a[Gf];return a instanceof xf?a:null};
Df=function(a){if(g.Ma(a))return a;a[Pf]||(a[Pf]=function(b){return a.handleEvent(b)});
return a[Pf]};
g.Qf=function(){g.A.call(this);this.te=new xf(this);this.Z=this;this.H=null};
Tf=function(a,b,c,d){b=a.te.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var k=b[f];if(k&&!k.Fi&&k.capture==c){var l=k.listener,m=k.Hm||k.src;k.Tl&&yf(a.te,k);e=!1!==l.call(m,d)&&e}}return e&&0!=d.tA};
Uf=function(a,b){this.l=a;this.o=b;this.i=0;this.g=null};
Vf=function(a,b){a.o(b);100>a.i&&(a.i++,b.next=a.g,a.g=b)};
Wf=function(a){g.u.setTimeout(function(){throw a;},0)};
Yf=function(a,b){var c=a;b&&(c=(0,g.x)(a,b));!g.Ma(g.u.setImmediate)||g.u.Window&&g.u.Window.prototype&&!Jb("Edge")&&g.u.Window.prototype.setImmediate==g.u.setImmediate?(Xf||(Xf=cba()),Xf(c)):g.u.setImmediate(c)};
cba=function(){var a=g.u.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Jb("Presto")&&(a=function(){var e=document.createElement("IFRAME");e.style.display="none";Iaa(e);document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.write(g.Mc(Pc));e.close();var k="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.x)(function(m){if(("*"==l||m.origin==
l)&&m.data==k)this.port1.onmessage()},this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(k,l)}}});
if("undefined"!==typeof a&&!Jb("Trident")&&!Jb("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(g.Ca(c.next)){c=c.next;var e=c.Zu;c.Zu=null;e()}};
return function(e){d.next={Zu:e};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(e){var f=document.createElement("SCRIPT");
f.onreadystatechange=function(){f.onreadystatechange=null;f.parentNode.removeChild(f);f=null;e();e=null};
document.documentElement.appendChild(f)}:function(e){g.u.setTimeout(e,0)}};
Zf=function(){this.i=this.g=null};
$f=function(){this.next=this.scope=this.wf=null};
g.dg=function(a,b){ag||dba();bg||(ag(),bg=!0);cg.add(a,b)};
dba=function(){if(g.u.Promise&&g.u.Promise.resolve){var a=g.u.Promise.resolve(void 0);ag=function(){a.then(eg)}}else ag=function(){Yf(eg)}};
eg=function(){for(var a;a=cg.remove();){try{a.wf.call(a.scope)}catch(b){Wf(b)}Vf(fg,a)}bg=!1};
gg=function(a){a.prototype.$goog_Thenable=!0};
hg=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
jg=function(a,b){this.g=0;this.B=void 0;this.o=this.i=this.l=null;this.u=this.A=!1;if(a!=g.Ha)try{var c=this;a.call(b,function(d){ig(c,2,d)},function(d){ig(c,3,d)})}catch(d){ig(this,3,d)}};
kg=function(){this.next=this.context=this.onRejected=this.l=this.g=null;this.i=!1};
mg=function(a,b,c){var d=lg.get();d.l=a;d.onRejected=b;d.context=c;return d};
ng=function(a){if(a instanceof jg)return a;var b=new jg(g.Ha);ig(b,2,a);return b};
og=function(a){return new jg(function(b,c){c(a)})};
rg=function(a,b,c){pg(a,b,c,null)||g.dg(g.Qa(b,a))};
sg=function(a){return new jg(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],rg(e,b,c)})};
eba=function(a){return new jg(function(b,c){var d=a.length,e=[];if(d)for(var f=function(n,p){d--;e[n]=p;0==d&&b(e)},k=function(n){c(n)},l=0,m;l<a.length;l++)m=a[l],rg(m,g.Qa(f,l),k);
else b(e)})};
ug=function(a,b){var c=mg(b,b,void 0);c.i=!0;tg(a,c);return a};
xg=function(a,b){return vg(a,null,b,void 0)};
yg=function(a,b){if(0==a.g)if(a.l){var c=a.l;if(c.i){for(var d=0,e=null,f=null,k=c.i;k&&(k.i||(d++,k.g==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.g&&1==d?yg(c,b):(f?(d=f,d.next==c.o&&(c.o=d),d.next=d.next.next):zg(c),Ag(c,e,3,b)))}a.l=null}else ig(a,3,b)};
tg=function(a,b){a.i||2!=a.g&&3!=a.g||Bg(a);a.o?a.o.next=b:a.i=b;a.o=b};
vg=function(a,b,c,d){var e=mg(null,null,null);e.g=new jg(function(f,k){e.l=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){k(n)}}:f;
e.onRejected=c?function(l){try{var m=c.call(d,l);!g.Ca(m)&&l instanceof Cg?k(l):f(m)}catch(n){k(n)}}:k});
e.g.l=a;tg(a,e);return e.g};
ig=function(a,b,c){0==a.g&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.g=1,pg(c,a.F,a.H,a)||(a.B=c,a.g=b,a.l=null,Bg(a),3!=b||c instanceof Cg||fba(a,c)))};
pg=function(a,b,c,d){if(a instanceof jg)return tg(a,mg(b||g.Ha,c||null,d)),!0;if(hg(a))return a.then(b,c,d),!0;if(g.Na(a))try{var e=a.then;if(g.Ma(e))return gba(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
gba=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
function k(m){l||(l=!0,c.call(e,m))}
var l=!1;try{b.call(a,k,f)}catch(m){f(m)}};
Bg=function(a){a.A||(a.A=!0,g.dg(a.D,a))};
zg=function(a){var b=null;a.i&&(b=a.i,a.i=b.next,b.next=null);a.i||(a.o=null);return b};
Ag=function(a,b,c,d){if(3==c&&b.onRejected&&!b.i)for(;a&&a.u;a=a.l)a.u=!1;if(b.g)b.g.l=null,Dg(b,c,d);else try{b.i?b.l.call(b.context):Dg(b,c,d)}catch(e){Eg.call(null,e)}Vf(lg,b)};
Dg=function(a,b,c){2==b?a.l.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
fba=function(a,b){a.u=!0;g.dg(function(){a.u&&Eg.call(null,b)})};
Cg=function(a){Ta.call(this,a)};
g.Fg=function(a,b){g.Qf.call(this);this.Zc=a||1;this.jl=b||g.u;this.Tu=(0,g.x)(this.Mc,this);this.qx=(0,g.D)()};
g.Gg=function(a,b,c){if(g.Ma(a))c&&(a=(0,g.x)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.x)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.u.setTimeout(a,b||0)};
Hg=function(a,b){var c=null;return xg(new jg(function(d,e){c=g.Gg(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.u.clearTimeout(c);
throw d;})};
Ig=function(){return Math.round((0,g.D)()/1E3)};
hba=function(a){var b=window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing.domLoading?Math.round(window.performance.timing.domLoading/1E3):null;return null!=b?b:null!=a?a:Ig()};
iba=function(){this.i=-1};
g.Kg=function(a){var b=[];Jg(new jba,a,b);return b.join("")};
jba=function(){};
Jg=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(g.Ka(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),Jg(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),Lg(d,c),c.push(":"),Jg(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Lg(b,c);break;case "number":c.push(isFinite(b)&&
!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);}}};
Lg=function(a,b){b.push('"',a.replace(kba,function(c){var d=Mg[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Mg[c]=d);return d}),'"')};
Ng=function(a){this.g=a||{cookie:""}};
Og=function(a){a=(a.g.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Fb(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
Pg=function(a,b,c,d,e,f,k){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);k&&(l+="#"+k);return l};
g.Qg=function(a){return a?decodeURI(a):a};
g.Sg=function(a,b){return b.match(Rg)[a]||null};
g.Tg=function(a){return g.Qg(g.Sg(3,a))};
Ug=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null;if(0<=e){var k=c[d].substring(0,e);f=c[d].substring(e+1)}else k=c[d];b(k,f?Xc(f):"")}};
Vg=function(a){var b=a.indexOf("#");0>b&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.substr(0,c),d,a.substr(b)]};
Wg=function(a,b){return b?a?a+"&"+b:b:a};
Xg=function(a,b){if(!b)return a;var c=Vg(a);c[1]=Wg(c[1],b);return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Yg=function(a,b,c){if(g.Ka(b))for(var d=0;d<b.length;d++)Yg(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.Wc(b)))};
Zg=function(a,b){for(var c=[],d=b||0;d<a.length;d+=2)Yg(a[d],a[d+1],c);return c.join("&")};
g.$g=function(a){var b=[],c;for(c in a)Yg(c,a[c],b);return b.join("&")};
ah=function(a,b){var c=2==arguments.length?Zg(arguments[1],0):Zg(arguments,1);return Xg(a,c)};
g.bh=function(a,b){var c=g.$g(b);return Xg(a,c)};
ch=function(a,b,c){c=null!=c?"="+g.Wc(c):"";return Xg(a,b+c)};
dh=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};
fh=function(a,b){var c=a.search(eh),d=dh(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 Xc(a.substr(d,e-d))};
g.gh=function(a,b){for(var c=a.search(eh),d=0,e,f=[];0<=(e=dh(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(lba,"$1")};
mba=function(a,b){var c=Vg(a),d=c[1],e=[];d&&(0,g.y)(d.split("&"),function(f){var k=f.indexOf("=");b.hasOwnProperty(0<=k?f.substr(0,k):f)||e.push(f)});
c[1]=Wg(e.join("&"),g.$g(b));return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
hh=function(){this.g={};return this};
ih=function(a,b){a.g.eb=$b(a.g,"eb",0)|b};
g.kh=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
lh=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1};
mh=function(a,b,c){b instanceof g.td?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,g.Fa(c)&&(a.top+=c,a.bottom+=c));return a};
g.nh=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
g.oh=function(a){return new g.kh(a.top,a.left+a.width,a.top+a.height,a.left)};
g.ph=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};
g.qh=function(a){return new g.td(a.left,a.top)};
nba=function(){this.g={};this.i=0};
rh=function(a,b){this.u=a;this.l=!0;this.g=b};
sh=function(a,b){rh.call(this,String(a),b);this.o=a;this.g=!!b};
th=function(a,b){rh.call(this,a,b)};
uh=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 th("",new g.nh(c,b,Number(a[3])-c,Number(a[2])-b))}return new th("",new g.nh(0,0,0,0))};
wh=function(){vh||(vh=new nba);return vh};
xh=function(a,b){a.g[b.getName()]=b};
g.zh=function(a,b,c){if(g.Da(b))(b=yh(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=yh(c,d);f&&(c.style[f]=e)}};
yh=function(a,b){var c=Ah[b];if(!c){var d=dd(b);c=d;void 0===a.style[d]&&(d=(g.Nd?"Webkit":g.Bh?"Moz":g.Ld?"ms":g.Ch?"O":null)+Laa(d),void 0!==a.style[d]&&(c=d));Ah[b]=c}return c};
g.Dh=function(a,b){var c=a.style[dd(b)];return"undefined"!==typeof c?c:a.style[yh(a,b)]||""};
Eh=function(a,b){var c=zd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
g.Fh=function(a,b){return Eh(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Hh=function(a,b,c){if(b instanceof g.td){var d=b.x;b=b.y}else d=b,b=c;a.style.left=Gh(d,!1);a.style.top=Gh(b,!1)};
Ih=function(a){return new g.td(a.offsetLeft,a.offsetTop)};
Jh=function(a){try{var b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}g.Ld&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b};
Kh=function(a){if(g.Ld&&!g.od(8))return a.offsetParent;var b=zd(a),c=g.Fh(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=g.Fh(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null};
g.Lh=function(a){var b=zd(a),c=new g.td(0,0);var d=b?zd(b):document;d=!g.Ld||g.od(9)||"CSS1Compat"==Bd(d).g.compatMode?d.documentElement:d.body;if(a==d)return c;a=Jh(a);b=Md(Bd(b).g);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Nh=function(a,b){var c=new g.td(0,0),d=Od(zd(a));if(!id(d,"parent"))return c;var e=a;do{var f=d==b?g.Lh(e):Mh(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c};
g.Ph=function(a,b){var c=Oh(a),d=Oh(b);return new g.td(c.x-d.x,c.y-d.y)};
Mh=function(a){a=Jh(a);return new g.td(a.left,a.top)};
Oh=function(a){if(1==a.nodeType)return Mh(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.td(a.clientX,a.clientY)};
g.Rh=function(a,b,c){if(b instanceof g.vd)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");g.Qh(a,b);a.style.height=Gh(c,!0)};
Gh=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Qh=function(a,b){a.style.width=Gh(b,!0)};
g.Sh=function(a){var b=oba;if("none"!=g.Fh(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};
oba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Nd&&!b&&!c;return g.Ca(b)&&!d||!a.getBoundingClientRect?new g.vd(b,c):(a=Jh(a),new g.vd(a.right-a.left,a.bottom-a.top))};
g.Th=function(a,b){a.style.display=b?"":"none"};
Uh=function(a){var b=new g.nh(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new g.nh(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d<a.length;d++){a:{var 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};
Vh=function(a,b){var c=a.getBoundingClientRect(),d=Nh(a,b);return new g.nh(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))};
Wh=function(a,b,c){if(b&&c){a:{var d=Math.max(b.left,c.left);var e=Math.min(b.left+b.width,c.left+c.width);if(d<=e){var f=Math.max(b.top,c.top),k=Math.min(b.top+b.height,c.top+c.height);if(f<=k){d=new g.nh(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;xh(a,new rh("vp",d));d&&0<d?(e=g.oh(b),f=g.oh(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;xh(a,new sh(512,e));d&&0<d?(e=g.oh(b),f=g.oh(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;xh(a,new sh(1024,
e));d&&0<d?(e=g.oh(b),f=g.oh(c),e=e.left>=f.left&&e.left<f.right):e=!1;xh(a,new sh(2048,e));d&&0<d?(b=g.oh(b),c=g.oh(c),c=b.right<=c.right&&b.right>c.left):c=!1;xh(a,new sh(4096,c))}};
pba=function(a,b){var c=0;g.Sb(Od(),"ima","video","client","tagged")&&(c=1);var d=null;a&&(d=a());if(d){var e=d;d=wh();d.g={};var f=new sh(32,!0);f.l=!1;xh(d,f);f=Od().document;f=f.visibilityState||f.webkitVisibilityState||f.mozVisibilityState||f.msVisibilityState||"";xh(d,new sh(64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));try{var k=Od().top;try{var l=!!k.location.href||""===k.location.href}catch(r){l=!1}if(l){var m=nf(e);var n=m&&0!=m.length?"1":"0"}else n="2"}catch(r){n="2"}xh(d,
new sh(256,"2"==n));xh(d,new sh(128,"1"==n));m=l=Od().top;"2"==n&&(m=Od());k=Vh(e,m);xh(d,new th("er",k));try{var p=m.document&&!m.document.body?null:Jd(m||window)}catch(r){p=null}p?(m=Md(Bd(m.document).g),xh(d,new sh(16384,!!m)),p=m?new g.nh(m.x,m.y,p.width,p.height):null):p=null;xh(d,new th("vi",p));if(p&&"1"==n){n=nf(e);e=[];for(m=0;m<n.length;m++)(f=Vh(n[m],l))&&e.push(f);e.push(p);p=Uh(e)}Wh(d,k,p);d.i&&(n=Ig()-d.i,xh(d,new rh("ts",n)));d.i=Ig()}else d=wh(),d.g={},d.i=Ig(),xh(d,new sh(32,!1));
this.l=d;this.g=new hh;this.g.set("ve",4);c&&ih(this.g,1);g.Sb(Od(),"ima","video","client","crossdomainTag")&&ih(this.g,4);g.Sb(Od(),"ima","video","client","sdkTag")&&ih(this.g,8);g.Sb(Od(),"ima","video","client","jsTag")&&ih(this.g,2);b&&$b(b,"fullscreen",!1)&&ih(this.g,16);this.i=d=null;if(c&&(c=g.Sb(Od(),"ima","video","client"),c.getEData)){this.i=c.getEData();if(c=g.Sb(Od(),"ima","video","client","getLastSnapshotFromTop"))if(n=c())this.i.extendWithDataFromTopIframe(n.tagstamp,n.playstamp,n.lactstamp),
c=this.l,d=n.er,n=n.vi,d&&n&&(d=uh(d).getValue(),n=uh(n).getValue(),e=null,$b(c.g,"er",null)&&(e=$b(c.g,"er",null).getValue(),e.top+=d.top,e.left+=d.left,xh(c,new th("er",e))),$b(c.g,"vi",null)&&(p=$b(c.g,"vi",null).getValue(),p.top+=d.top,p.left+=d.left,l=[],l.push(p),l.push(d),l.push(n),d=Uh(l),Wh(c,e,d),xh(c,new th("vi",n))));a:{if(this.i){if(this.i.getTagLoadTimestamp){d=this.i.getTagLoadTimestamp();break a}if(this.i.getTimeSinceTagLoadSeconds){d=this.i.getTimeSinceTagLoadSeconds();break a}}d=
null}}this.g.set("td",Ig()-hba(d))};
qba=function(a,b){try{var c=new pba(a,b),d=[],e=Number(c.g.get("eb"));c.g.remove("eb");var f,k=c.g,l=[],m;for(m in k.g)l.push(m+k.g[m]);(f=l.join("_"))&&d.push(f);if(c.i){var n=c.i.serialize();n&&d.push(n)}var p,r=c.l;f=e;k=[];f||(f=0);for(var v in r.g){var z=r.g[v];if(z instanceof sh)z.getValue()&&(f|=z.o);else{var C,F=r.g[v];(C=F.l?F.i():"")&&k.push(v+C)}}k.push("eb"+String(f));(p=k.join("_"))&&d.push(p);c.g.set("eb",e);return d.join("_")}catch(E){return"tle;"+Zc(E.name,12)+";"+Zc(E.message,40)}};
g.Zh=function(a){g.Fa(a)?(this.date=Xh(a,0,1),Yh(this,1)):g.Na(a)?(this.date=Xh(a.getFullYear(),a.getMonth(),a.getDate()),Yh(this,a.getDate())):(this.date=new Date((0,g.D)()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Yh(this,a))};
Xh=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
Yh=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
ai=function(a){$h();return uc(a)};
ci=function(){return!bi()&&(Jb("iPod")||Jb("iPhone")||Jb("Android")||Jb("IEMobile"))};
bi=function(){return Jb("iPad")||Jb("Android")&&!Jb("Mobile")||Jb("Silk")};
di=function(a){try{return!!a&&null!=a.location.href&&id(a,"foo")}catch(b){return!1}};
ei=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
sba=function(){var a=[];ei(rba,function(b){a.push(b)});
return a};
uba=function(a){return(a=tba.exec(a))&&a[0]||""};
vba=function(){var a=fi;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};
xba=function(){var a=g.Rd("IFRAME").sandbox,b=a&&a.supports;if(!b)return{};var c={};(0,g.y)(wba(),function(d){b.call(a,d)&&(c[d]=!0)});
return c};
gi=function(a){return a?a.passive&&yba()?a:a.capture||!1:!1};
hi=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,gi(d)),!0):!1};
ii=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,gi(void 0))};
ji=function(a,b){a.google_image_requests||(a.google_image_requests=[]);var c=a.document.createElement("img");c.src=b;a.google_image_requests.push(c)};
ni=function(){if(ki&&!di(li)){var a="."+mi.domain;try{for(;2<a.split(".").length&&!di(li);)mi.domain=a=a.substr(a.indexOf(".")+1),li=window.parent}catch(b){}di(li)||(li=window)}return li};
oi=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};
ri=function(a){a=a||pi();for(var b=new qi(g.u.location.href,g.u,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&zba.test(f.url)&&(c=f);if(f.url&&!f.fr){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Aba(b,e,c)};
pi=function(){var a=g.u,b=[],c=null;do{var d=a;if(di(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new qi(e||"",d));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.u;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)e=b[a],e.url||(e.url=d.location.ancestorOrigins[a-1]||"",e.fr=!0);return b};
Aba=function(a,b,c){this.g=a;this.i=b;this.l=c};
qi=function(a,b,c){this.url=a;this.yd=b;this.fr=!!c;this.depth=g.Fa(void 0)?void 0:null};
si=function(){this.i="&";this.o=g.Ca(void 0)?void 0:"trn";this.u=!1;this.l={};this.A=0;this.g=[]};
ti=function(a,b){var c={};c[a]=b;return[c]};
vi=function(a,b,c,d,e){var f=[];ei(a,function(k,l){var m=ui(k,b,c,d,e);m&&f.push(l+"="+m)});
return f.join(b)};
ui=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(ui(a[k],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(vi(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
wi=function(a,b,c){a.g.push(b);a.l[b]=c};
xi=function(a,b,c,d){a.g.push(b);a.l[b]=ti(c,d)};
Ai=function(a,b,c){b=b+"//pagead2.googlesyndication.com"+c;var d=Bba(a)-c.length;if(0>d)return"";a.g.sort(function(p,r){return p-r});
c=null;for(var e="",f=0;f<a.g.length;f++)for(var k=a.g[f],l=a.l[k],m=0;m<l.length;m++){if(!d){c=null==c?k:c;break}var n=vi(l[m],a.i,",$");if(n){n=e+n;if(d>=n.length){d-=n.length;b+=n;e=a.i;break}else a.u&&(e=d,n[e-1]==a.i&&--e,b+=n.substr(0,e),e=a.i,d=0);c=null==c?k:c}}f="";a.o&&null!=c&&(f=e+a.o+"="+c);return b+f+""};
Bba=function(a){if(!a.o)return 4E3;var b=1,c;for(c in a.l)b=c.length>b?c.length:b;return 4E3-a.o.length-b-a.i.length-1};
Bi=function(a,b,c,d){if(Math.random()<(d||.01))try{if(c instanceof si)var e=c;else e=new si,ei(c,function(k,l){var m=e,n=m.A++;wi(m,n,ti(l,k))});
var f=Ai(e,a.g,"/pagead/gen_204?id="+b+"&");f&&ji(g.u,f)}catch(k){}};
g.Ci=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Di=function(){var a=g.u.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):(0,g.D)()};
Ei=function(){var a=void 0===a?g.u:a;return(a=a.performance)&&a.now?a.now():null};
Cba=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
Gi=function(a){this.events=[];this.i=a||g.u;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.g=Fi()||(null!=b?b:1>Math.random())};
Ii=function(a){a&&Hi&&Fi()&&(Hi.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Hi.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Li=function(){var a=Ji;this.o=Ki;this.l="jserror";this.i=!0;this.g=null;this.u=this.oi;this.Aa=void 0===a?null:a};
Mi=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};
Ni=function(a,b,c,d){if(d)c=a+("&"+b+"="+c);else{var e="&"+b+"=",f=a.indexOf(e);0>f?c=a+e+c:(f+=e.length,e=a.indexOf("&",f),c=0<=e?a.substring(0,f)+c+a.substring(e):a.substring(0,f)+c)}return 2E3<c.length?g.Ca(void 0)?Ni(a,b,void 0,d):a:c};
Oi=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.vd(b.innerWidth,b.innerHeight)).round():Jd(b||window).round()}catch(d){return new g.vd(-12245933,-12245933)}};
Pi=function(a,b,c){try{a&&(b=b.top);var d=Oi(a,b,void 0===c?!1:c),e=Md(Bd(b.document).g);if(-12245933==d.width){var f=d.width;var k=new g.kh(f,f,f,f)}else k=new g.kh(e.y,e.x+d.width,e.y+d.height,e.x);return k}catch(l){return new g.kh(-12245933,-12245933,-12245933,-12245933)}};
Dba=function(a){var b={};(0,g.y)(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null===e||c.g(e)||(b[d]=null):b[d]=c});
kaa(a,function(c){return null===b[c.event]})};
Qi=function(){this.Xa=0;this.g=!1;this.i=-1;this.hh=!1;this.Gc=0};
Ri=function(){this.g=null;this.i=!1};
Si=function(a){a.i=!0};
Ti=function(a){Ri.call(this);this.o=a};
Ui=function(){Ri.call(this)};
Vi=function(){this.g={};this.i=!0;this.l={}};
Wi=function(a,b,c){a.g[b]||(a.g[b]=new Ti(c));return a.g[b]};
Xi=function(a,b,c){(a=a.g[b])&&a.l(c)};
Yi=function(a,b){if(Tb(a.l,b))return a.l[b];var c=a.g[b];if(c)return c.getValue()};
Zi=function(a){var b={},c=g.Lb(a.g,function(d){return d.i});
g.Kb(c,function(d,e){var f=void 0!==a.l[e]?String(a.l[e]):d.i&&null!==d.g?String(d.g):"";0<f.length&&(b[e]=f)},a);
return b};
Eba=function(a){a=Zi(a);var b=[];g.Kb(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
$i=function(){return(0,g.D)()-Fba};
ej=function(a){var b=0<=aj?$i()-aj:-1,c=bj?$i()-cj:-1,d=0<=dj?$i()-dj:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var k=e[b];break}void 0===k&&(k=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:k};
fj=function(){};
hj=function(){if(!gj())throw Error();};
gj=function(){return!(!G||!G.performance)};
ij=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
jj=function(){};
kj=function(a,b){this.g=a;this.depth=b};
lj=function(a){function b(l,m){return null==l?m:l}
a=a||pi();var c=Math.max(a.length-1,0),d=ri(a);a=d.g;var e=d.i,f=d.l,k=[];f&&k.push(new kj([f.url,f.fr?2:0],b(f.depth,1)));e&&e!=f&&k.push(new kj([e.url,2],0));a.url&&a!=f&&k.push(new kj([a.url,0],b(a.depth,c)));d=(0,g.ge)(k,function(l,m){return k.slice(0,k.length-m)});
!a.url||(f||e)&&a!=f||(e=uba(a.url))&&d.push([new kj([e,1],b(a.depth,c))]);d.push([]);return(0,g.ge)(d,function(l){return Gba(c,l)})};
Gba=function(a,b){(0,g.mj)(b,function(e){return 0<=e.depth});
var c=nj(b,function(e,f){return Math.max(e,f.depth)},-1),d=oaa(c+2);
d[0]=a;(0,g.y)(b,function(e){return d[e.depth+1]=e.g});
return d};
Hba=function(){var a=lj();return(0,g.ge)(a,function(b){return ui(b)})};
oj=function(){this.i=new jj;this.g=gj()?new hj:new fj};
Iba=function(){pj();var a=G.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&g.Ma(G.setInterval)&&g.Ma(G.clearInterval)&&g.Ma(G.setTimeout)&&g.Ma(G.clearTimeout))};
qj=function(){pj();return Hba()};
rj=function(){};
pj=function(){return rj.getInstance().getContext()};
sj=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,di(a)&&(c=a,b=d);return{yd:c,level:b}};
tj=function(a){var b=a!==a.top,c=a.top===sj(a).yd;if(b&&c&&null!=a.top.mraid)return{Ln:a.top.mraid,vo:3};a=a.mraid;return null!=a?b?c?{Ln:a,vo:2}:{Ln:a,vo:1}:{Ln:a,vo:0}:null};
Jba=function(a){return(a=a.document)&&g.Ma(a.elementFromPoint)};
uj=function(a){$e(this,a,null,null)};
Kba=function(a){this.o=a;this.g=-1;this.i=this.l=0};
vj=function(a,b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];if(-1<a.g)return b.apply(null,g.ea(d));try{return a.g=a.o.g.now(),b.apply(null,g.ea(d))}finally{a.l+=a.o.g.now()-a.g,a.g=-1,a.i+=1}}};
Lba=function(a,b){this.i=a;this.l=b;this.g=new Kba(a)};
xj=function(){this.l=void 0;this.i=this.u=0;this.Sa="ns";this.o=-1;this.Ja=new Vi;Si(Wi(this.Ja,"mv",Mba));Wi(this.Ja,"omid",wj);Si(Wi(this.Ja,"epoh",wj));Si(Wi(this.Ja,"epph",wj));Si(Wi(this.Ja,"umt",wj));Si(Wi(this.Ja,"gmpd",wj));Si(Wi(this.Ja,"sel",wj));Si(Wi(this.Ja,"buvpe",wj));Si(Wi(this.Ja,"imams",wj));Si(Wi(this.Ja,"phel",wj));Si(Wi(this.Ja,"phell",wj));Si(Wi(this.Ja,"oseid",Nba));Si(Wi(this.Ja,"xdi",wj));Si(Wi(this.Ja,"amp",wj));Si(Wi(this.Ja,"prf",wj));Si(Wi(this.Ja,"uup",wj));Si(Wi(this.Ja,
"gtx",wj));Si(Wi(this.Ja,"mvp_lv",wj));Si(Wi(this.Ja,"roio",wj));this.g=new Lba(pj(),this.Ja)};
Oba=function(){var a="https:";G&&G.location&&"http:"===G.location.protocol&&(a="http:");this.i=a;this.g=.01};
yj=function(a,b,c,d){if(Math.random()<(d||a.g))try{if(c instanceof si)var e=c;else e=new si,ei(c,function(k,l){var m=e,n=m.A++;wi(m,n,ti(l,k))});
var f=Ai(e,a.i,"/pagead/gen_204?id="+b+"&");f&&pj().Tk(f)}catch(k){}};
Bj=function(){var a=zj;this.o=Aj;this.l="jserror";this.i=!0;this.g=null;this.u=this.oi;this.Aa=void 0===a?null:a};
Cj=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};
Dj=function(a){oi.call(this,Error(a),{message:a})};
Ej=function(){var a=ni();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||zj.disable())};
Pba=function(a){Fj.EA(function(b){(0,g.y)(a,function(c){c(b)})})};
Gj=function(a,b){return Fj.Mk(a,b,void 0)};
Hj=function(a,b,c,d){return Fj.aA(a,b,c,d)};
Jj=function(a,b,c,d){Fj.oi(a,b,c,d)};
Kj=function(a,b,c,d){var e=void 0===e?!1:e;c=Hj(d,c);hi(a,b,c,{capture:e});return c};
Lj=function(a){return new g.kh(a.top,a.right,a.bottom,a.left)};
Mj=function(a){var b=a.top||0,c=a.left||0;return new g.kh(b,c+(a.width||0),b+(a.height||0),c)};
Nj=function(a){return null!=a&&0<=a&&1>=a};
Qba=function(){var a=g.Ib;return a?(0,g.Oj)("AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;OMI/".split(";"),function(b){return Eb(a,b)})?!0:Eb(a,"Presto")&&Eb(a,"Linux")&&!Eb(a,"X11")&&!Eb(a,"Android")&&!Eb(a,"Mobi"):!1};
Pj=function(){this.F=!1;this.i=!di(G.top);this.D=bi()||ci();var a=pi();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.Tg(a[a.length-1].url)||"":"";this.g=new g.kh(0,0,0,0);this.u=new g.vd(0,0);this.l=new g.vd(0,0);this.A=new g.kh(0,0,0,0);this.B=0;this.H=!1;this.o=!(!G||!tj(G));this.update(G)};
Qj=function(a,b){b&&b.screen&&(a.u=new g.vd(b.screen.width,b.screen.height))};
Rj=function(a,b){var c=a.g?new g.vd(a.g.Me(),a.g.getHeight()):new g.vd(0,0);var d=b;d=void 0===d?G:d;null!==d&&d!=d.top&&(d=d.top);var e=0,f=0;try{var k=d.document,l=k.body,m=k.documentElement;if("CSS1Compat"==k.compatMode&&m.scrollHeight)e=m.scrollHeight!=c.height?m.scrollHeight:m.offsetHeight,f=m.scrollWidth!=c.width?m.scrollWidth:m.offsetWidth;else{var n=m.scrollHeight,p=m.scrollWidth,r=m.offsetHeight,v=m.offsetWidth;m.clientHeight!=r&&(n=l.scrollHeight,p=l.scrollWidth,r=l.offsetHeight,v=l.offsetWidth);
n>c.height?n>r?(e=n,f=p):(e=r,f=v):n<r?(e=n,f=p):(e=r,f=v)}var z=new g.vd(f,e)}catch(C){z=new g.vd(-12245933,-12245933)}a.l=z};
Sj=function(){var a=Pj.getInstance();if(0<a.B||a.H)return!0;a=pj().i.isVisible();var b=0===ij(mi);return a||b};
Tj=function(a,b){try{try{var c=Lj(a.getBoundingClientRect())}catch(m){c=new g.kh(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Nh(a,b),k=f.x,l=f.y;return new g.kh(Math.round(l),Math.round(k+d),Math.round(l+e),Math.round(k))}catch(m){return Rba.clone()}};
Uj=function(a,b){return a.left<=b.right&&b.left<=a.right&&a.top<=b.bottom&&b.top<=a.bottom?new g.kh(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left)):new g.kh(0,0,0,0)};
Wj=function(a,b){var c=Vj(b);return 0===c?0:Vj(a)/c};
Vj=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Sba=function(a,b){if(!a||!b)return!1;for(var c=0;null!==a&&100>c++;){if(a===b)return!0;try{if(a=g.Zd(a)||a){var d=zd(a),e=d&&Od(d),f=e&&e.frameElement;f&&(a=f)}}catch(k){break}}return!1};
Tba=function(a,b,c){if(!a||!b)return!1;b=mh(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=ni();di(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Jba(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=zd(c))&&b.defaultView&&b.defaultView.frameElement)&&Sba(b,a);d=a===c;a=!d&&a&&ee(a,function(e){return e===c});
return!(b||d||a)};
Xj=function(a,b,c,d){return Pj.getInstance().i?!1:0>=a.Me()||0>=a.getHeight()?!0:c&&d?Gj(208,function(){return Tba(a,b,c)}):!1};
Yj=function(a,b,c){var d=new g.kh(0,0,0,0);this.time=a;this.volume=null;this.i=b;this.g=d;this.l=c};
Zj=function(a,b,c,d,e,f,k,l){this.A=a;this.B=b;this.o=c;this.i=d;this.g=e;this.l=f;this.u=l};
ak=function(a){this.l=a;this.i=0;this.g=null};
bk=function(a,b,c){this.yd=a;this.X=void 0===c?"na":c;this.o=[];this.I=!1;this.g=new Yj(-1,!0,this);this.l=this;this.D=this.B=b;this.aa=this.Y=this.A=!1;this.P="uk";this.ib=!1};
dk=function(a,b){a.aa||(a.aa=!0,a.P=b,a.D=0,a.l==a&&(a.B=0,ck(a)))};
ek=function(a,b){g.$a(a.o,b)||(a.o.push(b),b.eh(a.l),b.Cf(a.g),b.df()&&(a.A=!0))};
fk=function(a){a=a.l;a.Kx();a.Jx();var b=Pj.getInstance();b.A=Pi(!1,a.yd,b.D);a.FF();a.g.g=a.yw()};
gk=function(a){a.A=a.o.length?(0,g.Oj)(a.o,function(b){return b.df()}):!1};
hk=function(a){var b=g.gb(a.o);(0,g.y)(b,function(c){c.Cf(a.g)})};
ck=function(a){var b=g.gb(a.o);(0,g.y)(b,function(c){c.eh(a.l)});
a.l!=a||hk(a)};
ik=function(a,b){var c;if(!(c=a.Y)){c=a.g;var d=a.A;c=!(b&&(void 0===d||!d||c.volume==b.volume)&&c.i==b.i&&lh(c.g,b.g))}a.g=b;c&&hk(a)};
jk=function(a,b,c,d){this.element=a;this.i=new g.kh(0,0,0,0);this.D=new g.kh(0,0,0,0);this.u=this.g=b;this.Ja=c;this.I=d;this.ib=!1;this.timestamp=-1;this.o=new Zj(b.g,this.element,this.i,new g.kh(0,0,0,0),0,0,$i(),0)};
kk=function(a){this.ib=!1;this.g=a};
lk=function(a,b,c){this.l=void 0===c?0:c;this.i=a;this.g=null==b?"":b};
Uba=function(a){switch(Math.trunc(a.l)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Vba=function(a,b){return new lk(a.i,a.g,a.l+b)};
mk=function(a,b){return a.l<b.l?!0:a.l>b.l?!1:a.i<b.i?!0:a.i>b.i?!1:typeof a.g<typeof b.g?!0:typeof a.g>typeof b.g?!1:a.g<b.g};
nk=function(){this.l=0;this.g=[];this.i=!1};
Wba=function(a,b){(0,g.y)(b.g,function(c){a.add(c.i,c.g,Uba(c))})};
ok=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;ei(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
pk=function(a){var b=Xba;a.i&&(g.qb(a.g,function(c,d){return mk(d,c)?1:mk(c,d)?-1:0}),a.i=!1);
return nj(a.g,function(c,d){var e=b(d);return""+c+(""!=c&&""!=e?"&":"")+e},"")};
Xba=function(a){var b=a.i;a=a.g;return""===a?b:Ea(a)?a?b:"":g.Ka(a)?0===a.length?b:b+"="+a.join():b+"="+(g.$a(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
rk=function(a){var b=void 0===b?!0:b;this.g=new nk;void 0!==a&&Wba(this.g,a);b&&this.g.add("v",qk,-16)};
Yba=function(a){var b=[],c=[];g.Kb(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d){g.Ka(d)&&(d=d.join(","));var f=[e,"=",d].join("");switch(e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":case "aio":case "nio":case "iem":b.unshift(f);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(f);break;default:b.push(f)}}});
return b.concat(c)};
sk=function(){if(qk&&"unreleased"!==qk)return qk};
tk=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=sk();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);pj().Tk(a)};
uk=function(){this.g=0};
Zba=function(a,b,c){(0,g.y)(a.l,function(d){var e=a.g;if(!d.g&&(d.l(b,c),d.o())){d.g=!0;var f=d.i(),k=new nk;k.add("id","av-js");k.add("type","verif");k.add("vtype",d.u);d=uk.getInstance();k.add("i",d.g++);k.add("adk",e);ok(k,f);e=new rk(k);tk(e)}})};
vk=function(){this.i=this.l=this.o=this.g=0};
wk=function(a){this.i=a=void 0===a?$ba:a;this.g=(0,g.ge)(this.i,function(){return new vk})};
yk=function(a,b){return xk(a,function(c){return c.g},void 0===b?!0:b)};
Ak=function(a,b){return zk(a,b,function(c){return c.g})};
Bk=function(a,b){return xk(a,function(c){return c.l},void 0===b?!0:b)};
Ck=function(a,b){return zk(a,b,function(c){return c.l})};
Dk=function(a,b){return zk(a,b,function(c){return c.i})};
Ek=function(a){(0,g.y)(a.g,function(b){b.i=0})};
xk=function(a,b,c){a=(0,g.ge)(a.g,function(d){return b(d)});
return c?a:aca(a)};
zk=function(a,b,c){var d=g.Ya(a.i,function(e){return b<=e});
return-1==d?0:c(a.g[d])};
aca=function(a){return(0,g.ge)(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Fk=function(){this.l=new wk;this.Y=new vk;this.I=this.B=-1;this.ga=1E3;this.oa=new wk([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.P=this.R=-1};
Gk=function(a,b){return Bk(a.l,void 0===b?!0:b)};
Jk=function(a,b,c){g.A.call(this);this.position=Hk.clone();this.gn=this.Am();this.rr=-2;this.fN=(0,g.D)();this.cB=-1;this.li=b;this.im=-1!=b;this.Ek=null;this.opacity=-1;this.EM=c;this.lB=this.hn=g.Ha;this.xj=this.element=a;this.Kf=!1;this.Sg={ks:null,hs:null};this.MA=!0;this.dl=null;this.ci=!1;xj.getInstance().u++;this.nx=0;this.Qb=this.mq();this.aB=-1;this.Sa=null;this.Oo=new g.kh(0,0,0,0);a=this.Ja=new Vi;Wi(a,"od",bca);Si(Wi(a,"opac",wj));Wi(a,"ue",wj);Wi(a,"ud",wj);Si(Wi(a,"gcm",wj));Si(Wi(a,
"cm",wj));Si(Wi(a,"sela",wj));Si(Wi(a,"sbeos",wj));Si(Wi(a,"prf",wj));Si(Wi(a,"mwt",wj));Si(Wi(a,"lcs",wj));Si(Wi(a,"roio",wj));if(a=this.element&&this.element.getAttribute)a=this.element,a=/-[a-z]/.test("googleAvInapp")?!1:g.Ik&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+g.ed("googleAvInapp")):!!a.getAttribute("data-"+g.ed("googleAvInapp"));a&&(Pj.getInstance().o=!0);1==this.EM?Xi(this.Ja,"od",1):Xi(this.Ja,"od",0)};
Kk=function(a,b){if(b!=a.ci){a.ci=b;var c=Pj.getInstance();b?c.B++:0<c.B&&c.B--}};
cca=function(a,b,c){var d=a.Qb.Gc,e=c?a.Qb.Xa:a.nx,f=a.Qd();a.Oo&&!lh(a.Oo,new g.kh(0,0,0,0))&&(e=mh(a.Oo.clone(),f.left,f.top));a.kl(f,e,b,c,!1,{},void 0,d)};
Lk=function(a,b){var c=b.create(a.xj,a.Ja,a);if(c=null!=c&&c.wr()?c:null)a.Sa=c};
dca=function(a,b,c){if(a.Sa){a.Sa.rf();var d=a.Sa.o,e=d.A,f=e.g;if(null!=d.i){var k=d.o;a.Ek=new g.td(k.left-f.left,k.top-f.top);a.Oo=d.i}f=a.Zk()?Math.max(d.g,d.l):d.g;k={};null!==e.volume&&(k.volume=e.volume);a.kl(a.Qd(),f,b,c,!1,k,void 0,d.u)}};
eca=function(a){if(a.im&&a.dl){var b=1==Yi(a.Ja,"od"),c=Pj.getInstance().g,d=a.dl,e=a.Sa?a.Sa.getName():xj.getInstance().Sa,f=new g.vd(c.Me(),c.getHeight());c=a.Zk();a={cN:e,Ek:a.Ek,uN:f,Zk:c,Xa:a.Qb.Xa,rN:b};if(b=d.i){b.rf();e=b.o;f=e.A.g;var k=null,l=null;null!=e.i&&f&&(k=e.o,k=new g.td(k.left-f.left,k.top-f.top),l=new g.vd(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.g,e.l):e.g;c={cN:b.getName(),Ek:k,uN:l,Zk:c,rN:!1,Xa:e}}else c=null;c&&Zba(d,a,c)}};
Mk=function(a,b,c,d){if(d)a.position=d;else{b=c?b:b.top;a.position=Hk.clone();try{a.xj&&(a.position=Tj(a.xj,b))}catch(e){}}};
Nk=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
fca=function(a,b){xj.getInstance();if(b=void 0===b?g.Ha:b)a.lB=b};
Ok=function(){};
Qk=function(a){if(a instanceof Ok)return a;if("function"==typeof a.nf)return a.nf(!1);if(g.La(a)){var b=0,c=new Ok;c.next=function(){for(;;){if(b>=a.length)throw Pk;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
g.Rk=function(a,b,c){if(g.La(a))try{(0,g.y)(a,b,c)}catch(d){if(d!==Pk)throw d;}else{a=Qk(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==Pk)throw d;}}};
gca=function(a){if(g.La(a))return g.gb(a);a=Qk(a);var b=[];g.Rk(a,function(c){b.push(c)});
return b};
Sk=function(){this.o=this.g=this.l=this.i=this.u=0};
hca=function(a){var b={};var c=(0,g.D)()-a.u;b=(b.ptlt=c,b);(c=a.i)&&(b.pnk=c);(c=a.l)&&(b.pnc=c);(c=a.o)&&(b.pnmm=c);(a=a.g)&&(b.pns=a);return b};
Tk=function(){Qi.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.l=-1};
Uk=function(a){return Nj(a.volume)&&.1<=a.volume};
ica=function(){var a={};this.i=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a);this.g={};for(var b in this.i)0<this.i[b][1]&&(this.g[b]=0);this.l=0};
Vk=function(a,b){var c=a.i[b],d=c[1];a.l+=c[0];0<d&&0==a.g[b]&&(a.g[b]=1)};
jca=function(a){return Wk(a,g.Rb(a.i))};
Wk=function(a,b){var c=0,d;for(d in a.g)g.$a(b,d)&&1==a.g[d]&&(c+=a.i[d][1],a.g[d]=2);return c};
kca=function(a){var b=0,c;for(c in a.g){var d=a.g[c];if(1==d||2==d)b+=a.i[c][1]}return b};
Xk=function(){this.g=this.i=0};
Yk=function(){Fk.call(this);this.g=new vk;this.aa=this.F=this.M=0;this.D=-1;this.ea=new vk;this.u=new vk;this.i=new wk;this.A=this.o=-1;this.H=new vk;this.ga=2E3;this.T=new Xk;this.Z=new Xk;this.X=new Xk};
Zk=function(a,b,c){var d=a.aa;bj||c||-1==a.D||(d+=b-a.D);return d};
lca=function(){this.g=!1};
$k=function(a,b){this.g=!1;this.o=a;this.D=b;this.i=0};
al=function(a,b){if(a.l(b)){var c=a.D.report(a.o,b);a.i|=c;return 0==c}return!1};
bl=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;Jk.call(this,b,c,d);this.Y=0;this.o={};this.yc=new ica;this.yB={};this.gc="";this.Cg=null;this.ab=!1;this.g=[];this.kh=e;this.B=f;this.u=null;this.A=-1;this.ea=this.H=void 0;this.I=this.R=0;this.T=-1;this.ga=this.Ca=!1;this.Wi=this.Ya=0;this.ma=!1;this.Ia=this.Qa=-1;this.P=this.D=this.i=0;this.jb=this.Z=-1;this.Ra=0;this.Ea=new wk;this.aa=this.na=this.X=0;this.xa=-1;this.wa=0;this.F=!1;this.Cc=0;this.ya=!1;this.oa=g.Ha;this.M=[this.Am()];
this.tb=2;b=Pj.getInstance();Mk(this,a,b.i);this.Eh={};this.Eh.pause="p";this.Eh.resume="r";this.Eh.skip="s";this.Eh.mute="m";this.Eh.unmute="um";this.Eh.exitfullscreen="ef";this.l=null};
mca=function(a,b,c){a.Cc=1;a.o={};a.o.firstquartile=!1;a.o.midpoint=!1;a.o.thirdquartile=!1;a.o.complete=!1;a.o.pause=!1;a.o.skip=!1;a.o.viewable_impression=!1;a.Y=0;c||(a.qd().D=b)};
cl=function(a){0!=a.Cc&&(a.Cc=3)};
dl=function(a){return g.Ca(a)?Number(a)?Nk(a,3):0:a};
el=function(a,b){var c;null!=b&&b<a.M.length?c=b:c=a.M.length-1;return a.M[c]};
fl=function(a){var b=!!Yi(xj.getInstance().Ja,"umt");return a.H||!b&&!a.ea?0:1};
nca=function(a,b){(0,g.Oj)(a.B,function(c){return c.o==b.o})||a.B.push(b)};
hl=function(a,b,c){return 15E3<=b?!0:a.Ca?(void 0===c?0:c)?!0:gl(a.A)?b>=a.A/2:gl(a.T)?b>=a.T:!1:!1};
gl=function(a){return 1==Yi(xj.getInstance().Ja,"gmpd")?0<a:-1!=a};
oca=function(a){var b={},c=Pj.getInstance();b.insideIframe=c.i;b.unmeasurable=a.Kf;b.position=a.Qd();b.exposure=a.Qb.Xa;b.documentSize=c.l;b.viewportSize=new g.vd(c.g.Me(),c.g.getHeight());null!=a.l&&(b.presenceData=a.l);b.screenShare=a.Qb.Gc;return b};
pca=function(a){var b=Nk(a.Qb.Xa,2),c=a.yc.l,d=a.Qb,e=el(a),f=dl(e.o),k=dl(e.A),l=dl(d.volume),m=Nk(e.B,2),n=Nk(e.I,2),p=Nk(d.Xa,2),r=Nk(e.R,2),v=Nk(e.P,2);d=Nk(d.Gc,2);a=a.Qd().clone();a.round();e=Gk(e,!1);return{tN:b,Yj:c,jn:f,dn:k,mj:l,kn:m,en:n,Xa:p,ln:r,fn:v,Gc:d,position:a,Mn:e}};
jl=function(a,b){il(a.g,b,function(){return{tN:0,Yj:void 0,jn:-1,dn:-1,mj:-1,kn:-1,en:-1,Xa:-1,ln:-1,fn:-1,Gc:-1,position:void 0,Mn:[]}});
a.g[b]=pca(a)};
il=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
ml=function(a,b,c){var d=a.yB[b];if(null!=d)return d;d=qca(a,b);var e=Vb(kl,function(f){return f==b});
c=ll(a,d,d,c,rca[kl[e]]);"fully_viewable_audible_half_duration_impression"==b&&(c.std="csm",c.ic=Wk(a.yc,["gdr"]));return c};
nl=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
ll=function(a,b,c,d,e){if(a.Kf)return{"if":0};var f=a.Qd().clone();f.round();var k=Pj.getInstance(),l=xj.getInstance(),m=a.qd(),n={};n["if"]=k.i?1:void 0;n.sdk=a.u?a.u:void 0;n.t=a.fN;n.p=[f.top,f.left,f.bottom,f.right];n.tos=yk(m.l,!1);n.mtos=Gk(m);n.mcvt=m.Y.l;n.ps=void 0;f=Zk(m,$i(),2==a.Cc);n.vht=f;n.mut=m.ea.l;n.a=dl(a.Qb.volume);n.mv=dl(m.A);n.fs=a.ci?1:0;n.ft=m.H.g;n.at=m.u.g;n.as=.1<=m.o?1:0;n.atos=yk(m.i);n.ssb=yk(m.oa,!1);n.amtos=Bk(m.i);n.uac=a.Ya;n.vpt=m.g.g;"nio"==l.Sa&&(n.nio=1,n.avms=
"nio");n.gmm="4";n.gdr=hl(a,m.g.g,!0)?1:0;n.efpf=a.tb;0<a.wa&&(n.nnut=a.wa);n.tcm=fl(a);n.nmt=a.na;n.bt=a.aa;n.pst=a.xa;n.vpaid=a.H;n.dur=a.A;n.vmtime=a.R;n.is=a.yc.l;1<=a.g.length&&(n.i0=a.g[0].Yj,n.a0=[a.g[0].mj],n.c0=[a.g[0].Xa],n.ss0=[a.g[0].Gc],f=a.g[0].position,n.p0=f?[f.top,f.left,f.bottom,f.right]:void 0);2<=a.g.length&&(n.i1=a.g[1].Yj,n.a1=nl(a.g[1].jn,a.g[1].mj,a.g[1].dn),n.c1=nl(a.g[1].kn,a.g[1].Xa,a.g[1].en),n.ss1=nl(a.g[1].ln,a.g[1].Gc,a.g[1].fn),f=a.g[1].position,n.p1=f?[f.top,f.left,
f.bottom,f.right]:void 0,n.mtos1=a.g[1].Mn);3<=a.g.length&&(n.i2=a.g[2].Yj,n.a2=nl(a.g[2].jn,a.g[2].mj,a.g[2].dn),n.c2=nl(a.g[2].kn,a.g[2].Xa,a.g[2].en),n.ss2=nl(a.g[2].ln,a.g[2].Gc,a.g[2].fn),f=a.g[2].position,n.p2=f?[f.top,f.left,f.bottom,f.right]:void 0,n.mtos2=a.g[2].Mn);4<=a.g.length&&(n.i3=a.g[3].Yj,n.a3=nl(a.g[3].jn,a.g[3].mj,a.g[3].dn),n.c3=nl(a.g[3].kn,a.g[3].Xa,a.g[3].en),n.ss3=nl(a.g[3].ln,a.g[3].Gc,a.g[3].fn),f=a.g[3].position,n.p3=f?[f.top,f.left,f.bottom,f.right]:void 0,n.mtos3=a.g[3].Mn);
n.cs=kca(a.yc);b&&(n.ic=jca(a.yc),n.dvpt=m.g.i,n.dvs=Dk(m.l,.5),n.dfvs=Dk(m.l,1),n.davs=Dk(m.i,.5),n.dafvs=Dk(m.i,1),c&&(m.g.i=0,Ek(m.l),Ek(m.i)),a.jh()&&(n.dtos=m.M,n.dav=m.F,n.dtoss=a.Y+1,c&&(m.M=0,m.F=0,a.Y++)),n.dat=m.u.i,n.dft=m.H.i,c&&(m.u.i=0,m.H.i=0));n.ps=[k.l.width,k.l.height];n.bs=[k.g.Me(),k.g.getHeight()];n.scs=[k.u.width,k.u.height];n.dom=k.domain;a.Wi&&(n.vds=a.Wi);if(0<a.B.length||a.kh)b=g.gb(a.B),a.kh&&b.push(a.kh),n.pings=(0,g.ge)(b,function(p){return p.toString()});
b=(0,g.ge)((0,g.Xd)(a.B,function(p){return p.u()}),function(p){return p.getId()});
laa(b);n.ces=b;a.i&&(n.vmer=a.i);a.D&&(n.vmmk=a.D);a.P&&(n.vmiec=a.P);n.avms=a.Sa?a.Sa.getName():xj.getInstance().Sa;a.Sa&&g.ec(n,a.Sa.yf());"exc"==l.Sa&&(n.femt=a.Z,n.femvt=a.jb,n.emc=a.Ra,n.emb=yk(a.Ea,!1),n.emuc=a.X,n.avms="exc");d?(n.c=Nk(a.Qb.Xa,2),n.ss=Nk(a.Qb.Gc,2)):n.tth=$i()-ol;n.mc=Nk(m.I,2);n.nc=Nk(m.B,2);n.mv=dl(m.A);n.nv=dl(m.o);n.lte=Nk(a.rr,2);d=el(a,e);Gk(m);n.qmtos=Gk(d);n.qnc=Nk(d.B,2);n.qmv=dl(d.A);n.qnv=dl(d.o);n.qas=.1<=d.o?1:0;n.qi=a.gc;n.avms||(n.avms="geo");n.psm=m.T.g;n.psv=
m.T.getValue();n.psfv=m.Z.getValue();n.psa=m.X.getValue();l=Eba(l.Ja);l.length&&(n.veid=l);a.l&&g.ec(n,hca(a.l));return n};
qca=function(a,b){if(g.$a(sca,b))return!0;var c=a.o[b];return g.Ca(c)?(a.o[b]=!0,!c):!1};
uca=function(){this.g={};var a=Od();pl(this,a,document);var b=tca();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)pl(this,c,c.document);pl(this,a.top,a.top.document)}}catch(d){}};
tca=function(){var a=document.documentElement;try{if(!di(Od().top))return"2";var b=[],c=Od(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}};
pl=function(a,b,c){Kj(c,"mousedown",function(){return vca(a)},301);
Kj(b,"scroll",function(){return wca(a)},302);
Kj(c,"touchmove",function(){return xca(a)},303);
Kj(c,"mousemove",function(){return yca(a)},304);
Kj(c,"keydown",function(){return zca(a)},305)};
vca=function(a){g.Kb(a.g,function(b){1E5<b.l||++b.l})};
wca=function(a){g.Kb(a.g,function(b){1E5<b.g||++b.g})};
xca=function(a){g.Kb(a.g,function(b){1E5<b.g||++b.g})};
zca=function(a){g.Kb(a.g,function(b){1E5<b.i||++b.i})};
yca=function(a){g.Kb(a.g,function(b){1E5<b.o||++b.o})};
ql=function(){this.g=[];this.i=[]};
rl=function(a,b){return g.Xa(a.g,function(c){return c.gc==b})};
sl=function(a,b){return b?g.Xa(a.g,function(c){return c.element==b}):null};
Aca=function(a,b){return g.Xa(a.i,function(c){return 2==c.fe()&&c.gc==b})};
ul=function(){var a=tl;return 0==a.g.length?a.i:0==a.i.length?a.g:g.fb(a.i,a.g)};
wl=function(a,b){var c=1==b.fe()?a.g:a.i,d=g.Wa(c,function(e){return e==b});
return-1!=d?(c.splice(d,1),b.Sa&&b.Sa.mn(),b.dispose(),!0):!1};
Bca=function(a){var b=tl;if(wl(b,a)){switch(a.fe()){case 0:var c=function(){return null};
case 2:c=function(){return Aca(b,a.gc)};
break;case 1:c=function(){return rl(b,a.gc)}}for(var d=c();d;d=c())wl(b,d)}};
Cca=function(a,b){var c=tl,d=(0,g.Xd)(a,(void 0===b?0:b)?function(e){return!rl(c,e.gc)}:function(e){return!sl(c,e.element)});
c.g.push.apply(c.g,g.ea(d))};
Dca=function(a){var b=tl,c=[];(0,g.y)(a,function(d){(0,g.Oj)(b.g,function(e){return e.element===d.element&&e.gc===d.gc})||(b.g.push(d),c.push(d))})};
xl=function(){this.g=this.i=null};
yl=function(a,b){function c(d,e){a.g=null;b(d,e)}
if(null==a.i)return!1;a.g=g.Xa(a.i,function(d){return null!=d&&d.Oi()&&d.init(c)});
a.g&&fk(a.g.g);return null!=a.g};
zl=function(a,b,c,d){jk.call(this,a,b,c,d)};
Al=function(a){a=Eca(a);kk.call(this,a.length?a[a.length-1]:new bk(G,0));this.l=a;this.o=g.Ha;this.i=null};
Eca=function(a){if(!a.length)return[];a=(0,g.Xd)(a,function(c){return null!=c&&c.Oi()});
for(var b=1;b<a.length;b++)ek(a[b-1],a[b]);return a};
Bl=function(a,b,c,d){jk.call(this,a,b,c,d);this.H=this.F=null};
Cl=function(a,b){try{if(b.length){a.F||(a.F=$i());var c=Fca(b);a.i=Lj(c.boundingClientRect);var d=Lj(c.intersectionRect);a.D=mh(d,a.i.left-d.left,a.i.top-d.top)}}catch(e){a.mn(),Jj(299,e)}};
Fca=function(a){return nj(a,function(b,c){return b.time>c.time?b:c},a[0])};
Dl=function(a,b,c,d){Bl.call(this,a,b,c,d);this.A=this.B=this.l=null};
El=function(a){return a.l&&a.l.takeRecords?a.l.takeRecords():[]};
Hca=function(a){if(!a.element)return!1;var b=a.element,c=a.g.yd,d=xj.getInstance();a.l=new c.IntersectionObserver(vj(d.g.g,function(e){return Cl(a,e)}),Gca);
1==Yi(d.Ja,"roio")&&(d=function(){a.l.unobserve(b);a.l.observe(b);Cl(a,El(a))},c.ResizeObserver?(a.B=new c.ResizeObserver(d),a.B.observe(b)):c.MutationObserver&&(a.A=new g.u.MutationObserver(d),a.A.observe(b,{attributes:!0,
childList:!0,characterData:!0,subtree:!0})));a.l.observe(b);Cl(a,El(a));return!0};
Fl=function(a){a=void 0===a?G:a;kk.call(this,new bk(a,2))};
Hl=function(){var a=Gl();bk.call(this,G.top,a,"geo")};
Gl=function(){xj.getInstance();var a=Pj.getInstance();return a.i||a.o?0:2};
Il=function(){};
g.Jl=function(a,b,c){g.A.call(this);this.l=null!=c?(0,g.x)(a,c):a;this.Zc=b;this.i=(0,g.x)(this.FD,this);this.g=[]};
Kl=function(a){a.Aa=g.Gg(a.i,a.Zc);a.l.apply(null,a.g)};
Ll=function(){this.done=!1;this.g={AC:0,Hu:0,Rs:0,Lv:0,Pq:-1};this.H=this.o=this.B=this.u=this.D=null;this.I=!1;this.i=null;this.R=0;this.l=new ak(this)};
Ml=function(){var a=xj.getInstance().Sa;return"nio"===a||"aio"===a||"omid"===a};
Ol=function(){var a=Nl;if(!a.I){a.I=!0;if(!a.D&&!Ml()){var b=Hj(137,function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];return a.A.apply(a,g.ea(d))});
a.u=new g.Jl(b,100);a.D=Kj(G,"scroll",function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];null!==a.u&&a.u.Sj.apply(a.u,g.ea(d))},138)}a.B||Ml()||(b=Hj(140,function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];
return a.A.apply(a,g.ea(d))}),a.o=new g.Jl(b,100),a.B=Kj(G,"resize",function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];
null!==a.o&&a.o.Sj.apply(a.o,g.ea(d))},141));
Ica(a,function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];return a.F.apply(a,g.ea(d))});
a.F()}};
Jca=function(){Il.getInstance();var a=xl.getInstance();null!=a.g&&a.g.g?fk(a.g.g):Pj.getInstance().update(G)};
Pl=function(a,b,c){if(!a.done&&(a.l.cancel(),0!=b.length)){a.i=null;try{Jca();var d=$i(),e=xj.getInstance();e.o=d;if(null!=xl.getInstance().g)for(e=0;e<b.length;e++)dca(b[e],d,c);else switch(e.Sa){case "exc":for(e=0;e<b.length;e++)cca(b[e],d,c);break;case "nis":for(e=0;e<b.length;e++)g.Ca(void 0)?b[e].Ho(void 0):b[e].Ax(d);break;case "gsv":for(e=0;e<b.length;e++)g.Ca(void 0)?b[e].Hw(void 0):b[e].zx(d)}for(e=0;e<b.length;e++)eca(b[e]);a.g.Rs+=$i()-d;++a.g.Lv}finally{c?(0,g.y)(b,function(f){f.Qb.Xa=
0}):a.l.schedule()}}};
Ica=function(a,b){if(!a.H){var c=Hj(142,b);pj();var d;mi.visibilityState?d="visibilitychange":mi.mozVisibilityState?d="mozvisibilitychange":mi.webkitVisibilityState&&(d="webkitvisibilitychange");d&&hi(mi,d,c,{capture:!1})&&(a.H=c)}};
Ql=function(){var a=xl.getInstance();if(null!=a.g){var b=a.g;(0,g.y)(ul(),function(c){return Lk(c,b)})}};
Rl=function(a,b){var c=a.R;bj&&(c+=b-cj);return c};
Kca=function(a){var b=Nl;a=void 0===a?function(){return{}}:a;
Fj.FA("av-js");Aj.g=.01;Pba([function(c){var d=xj.getInstance(),e={};e=(e.bin=d.i,e.type="error",e);d=Zi(d.Ja);if(!b.i){var f=G.document,k=0<=aj?$i()-aj:-1,l=$i();-1==b.g.Pq&&(k=l);var m=Pj.getInstance(),n=xj.getInstance(),p=Zi(n.Ja),r=ul();try{if(0<r.length){var v=m.g;v&&(p.bs=[v.Me(),v.getHeight()]);var z=m.l;z&&(p.ps=[z.width,z.height]);G.screen&&(p.ss=[G.screen.width,G.screen.height])}else p.url=encodeURIComponent(G.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=k;p.pt=aj;p.bin=n.i;switch(xj.getInstance().Sa){case "iem":p.iem=1;break;case "aio":p.aio=1;break;case "nio":p.nio=1}void 0!==G.google_osd_load_pub_page_exp&&(p.olpp=G.google_osd_load_pub_page_exp);p.deb=[1,b.g.AC,b.g.Hu,b.g.Rs,b.g.Lv,b.g.Pq,0,b.l.i].join("-");p.tvt=Rl(b,l);m.o&&(p.inapp=1);if(null!==G&&G!=G.top){0<r.length&&(p.iframe_loc=encodeURIComponent(G.location.href.substring(0,512)));var C=m.A;p.is=[C.Me(),C.getHeight()]}}catch(F){p.error=1}b.i=p}v=g.bc(b.i);C=xj.getInstance().g;
1==Yi(C.l,"prf")?(z=new uj,f=C.g,k=0,-1<f.g&&(k=f.o.g.now()-f.g),df(z,1,f.l+k),f=C.g,df(z,5,-1<f.g?f.i+1:f.i),df(z,2,C.i.g.l()),df(z,3,C.i.g.i()),df(z,4,C.i.g.g()),C={},f=new Fe,k=af(z,1),k=null==k?k:+k,k=null==k?0:k,0!==k&&Oe(f,1,k),k=bf(z,2),0!==k&&Me(f,2,k),k=bf(z,3),0!==k&&Me(f,3,k),k=bf(z,4),0!==k&&Me(f,4,k),k=bf(z,5),0!==k&&Je(f,5,k),z=Ie(f),z=(C.pf=g.ke(z),C)):z={};g.ec(v,z);g.ec(c,e,d,v,a());if(e=sk())d={},g.ec(c,(d.v=encodeURIComponent(e),d))}])};
Lca=function(){var a=Sl||G;if(!a)return"";var b=[];if(!a.location||!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")};
Tl=function(a){return function(b){return!g.Ca(b[a])&&g.Ca(0)?0:b[a]}};
Vl=function(){var a=[0,2,4];return function(b){b=b.tos;if(g.Ka(b)){for(var c=Array(b.length),d=0;d<b.length;d++)c[d]=0<d?c[d-1]+b[d]:b[d];return g.Ca(a)?Ul(c,a):c}}};
Wl=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?function(){return!0}:d;
return function(e){var f=e[a];if(g.Ka(f)&&d(e))return Ul(f,b,c)}};
Xl=function(a,b){return function(c){return b(c)?c[a]:void 0}};
Yl=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c]===b.e||!g.Ca(a[c])&&!b.hasOwnProperty("e"))return!0;return!1}};
Ul=function(a,b,c){return void 0===c||c?(0,g.Xd)(a,function(d,e){return g.$a(b,e)}):(0,g.ge)(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(k,l){return k+l},0)})};
bm=function(a,b){var c={sv:"765",cb:"j"};c.nas=tl.g.length;c.msg=a;if(g.Ca(b)){var d=Zl(b);d&&(c.e=am[d])}return c};
cm=function(a){return ub(a,"custom_metric_viewable")};
Zl=function(a){var b=cm(a)?"custom_metric_viewable":a.toLowerCase();return Vb(kl,function(c){return c==b})};
dm=function(a,b){$k.call(this,a,b)};
em=function(){this.i=this.o=this.A=this.u=this.l=this.g=""};
Mca=function(){};
fm=function(a,b,c,d,e){var f={};if(g.Ca(a))if(null!=b)for(var k in b){var l=b[k];k in Object.prototype||null!=l&&(g.Ma(l)?f[k]=l(a):f[k]=a[l])}else g.ec(f,a);g.Ca(c)&&g.ec(f,c);a=pk(ok(new nk,f));0<a.length&&g.Ca(d)&&g.Ca(e)&&(e=e(a),a+="&"+d+"="+e);return a};
gm=function(){};
hm=function(a,b,c){jk.call(this,null,a,b,c)};
im=function(a,b,c){jk.call(this,null,a,b,c)};
jm=function(a){var b=g.w("ima.bridge.getNativeViewability"),c=Yi(a.Ja,"queryid");g.Ma(b)&&c&&b(c,function(d){var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.i=Mj(d.opt_nativeViewBounds||{});var k=a.g.g;k.g=f?Nca.clone():Mj(e);a.timestamp=d.opt_nativeTime||-1;Pj.getInstance().g=k.g;d=d.opt_nativeVolume;void 0!==d&&(k.volume=d)})};
km=function(a){a=void 0===a?G:a;kk.call(this,new bk(a,2))};
lm=function(){bk.call(this,G,2,"mraid");var a=this;this.T=0;this.R=this.M=!1;this.F=null;this.u=0;this.H=-1;this.i=null;var b=tj(this.yd);b&&(this.i=b.Ln,this.H=b.vo);this.i&&!g.Ob(Oca,function(c){return g.Ma(a.i[c])})&&(this.i=null,this.H=-1);
this.g.g=new g.kh(0,0,0,0)};
mm=function(a,b,c){a.Ii("removeEventListener",b,c)};
pm=function(a){"loading"===a.Ii("getState")?(Pca(a),a.Ii("addEventListener","ready",nm)):om(a)};
Pca=function(a){0==a.u&&(a.u=pj().setTimeout(Hj(293,function(){a.u=-1;mm(a,"ready",nm);Jj(539,Error());a.F="rt";dk(a,"w")}),500))};
om=function(a){a.u=-1;g.Da(a.i.AFMA_LIDAR)?(a.M=!0,Qca(a)):(a.F="nc",dk(a,"w"))};
Qca=function(a){a.R=!1;pj().setTimeout(Hj(524,function(){a.R||(qm(a),Jj(540,Error()),a.F="mt",dk(a,"w"))}),500);
g.Ca(a.i.AFMA_LIDAR_EXP_1)&&(a.i.AFMA_LIDAR_EXP_1=!0);a.Ii("addEventListener",a.i.AFMA_LIDAR,rm)};
qm=function(a){mm(a,a.i.AFMA_LIDAR,rm);a.M=!1};
sm=function(a,b){if("loading"===a.Ii("getState"))return new g.vd(-1,-1);var c=a.Ii(b);if(!c)return new g.vd(-1,-1);var d=parseInt(c.width,10);c=parseInt(c.height,10);return isNaN(d)||isNaN(c)?new g.vd(-1,-1):new g.vd(d,c)};
nm=function(){try{var a=lm.getInstance();0<a.u&&pj().clearTimeout(a.u);mm(a,"ready",nm);om(a)}catch(b){Jj(541,b)}};
rm=function(a,b){try{var c=lm.getInstance();c.R=!0;var d=a?new g.kh(a.y,a.x+a.width,a.y+a.height,a.x):new g.kh(0,0,0,0);var e=$i(),f=Sj();var k=new Yj(e,f,c);k.g=d;k.volume=b;ik(c,k)}catch(l){Jj(542,l)}};
tm=function(){this.u=this.I=!1;this.g=null;this.l=new gm;this.i=null;var a={};this.H=(a.start=this.fE,a.firstquartile=this.aE,a.midpoint=this.cE,a.thirdquartile=this.gE,a.complete=this.YD,a.pause=this.As,a.resume=this.sA,a.skip=this.eE,a.viewable_impression=this.qg,a.mute=this.Ti,a.unmute=this.Ti,a.fullscreen=this.bE,a.exitfullscreen=this.ZD,a.fully_viewable_audible_half_duration_impression=this.qg,a.measurable_impression=this.qg,a.abandon=this.As,a.engagedview=this.qg,a.impression=this.qg,a.creativeview=
this.qg,a.progress=this.Ti,a.custom_metric_viewable=this.qg,a.bufferstart=this.As,a.bufferfinish=this.sA,a);a={};this.R=(a.overlay_resize=this.dE,a.abandon=this.Iq,a.close=this.Iq,a.collapse=this.Iq,a.overlay_unmeasurable_impression=function(b){return ml(b,"overlay_unmeasurable_impression",Sj())},a.overlay_viewable_immediate_impression=function(b){return ml(b,"overlay_viewable_immediate_impression",Sj())},a.overlay_unviewable_impression=function(b){return ml(b,"overlay_unviewable_impression",Sj())},
a.overlay_viewable_end_of_session_impression=function(b){return ml(b,"overlay_viewable_end_of_session_impression",Sj())},a);
xj.getInstance().i=3;Rca(this);this.o=!1};
um=function(a,b,c,d){b=a.ho(null,d,!0,b);b.u=c;b.hn=function(e){a.Hq(e)};
Cca([b],a.o);return b};
Sca=function(){var a=[];Pj.getInstance();var b=xj.getInstance();"exc"!=b.Sa&&a.push(Hl.getInstance());Yi(b.Ja,"mvp_lv")&&a.push(lm.getInstance());return[new km,new Al(a)]};
Tca=function(a){if(!a.I){a.I=!0;try{var b=$i(),c=xj.getInstance(),d=Pj.getInstance();aj=b;"o"!==a.g&&(Sl=sj(G).yd);var e=1!==Yi(xj.getInstance().Ja,"imams")&&"nis"===c.Sa;if("gsv"!==c.Sa&&!e)if(Iba()){Nl.g.Hu=0;Nl.g.Pq=$i()-b;var f=Sca(),k=xl.getInstance();k.i=f;yl(k,function(){vm()})?Nl.done||(Ql(),ek(k.g.g,a),Ol()):d.i&&"exc"!==c.Sa?vm():Ol()}else wm=!0}catch(l){throw tl.reset(),l;
}}};
ym=function(a){Nl.l.cancel();xm=a;Nl.done=!0};
zm=function(a){var b=xj.getInstance();if(a.g)return a.g;var c=xl.getInstance().g;if(c)switch(c.getName()){case "nis":a.g="n"}else switch(b.Sa){case "nis":a.g="n";break;case "gsv":a.g="m"}a.g||(a.g="h");return a.g};
Am=function(a,b,c){if(null==a.i)return b.Wi|=4,!1;a=a.i.report(c,b);b.Wi|=a;return 0==a};
vm=function(){var a=[new Fl(G)],b=xl.getInstance();b.i=a;yl(b,function(){ym("i")})?Nl.done||(Ql(),Ol()):ym("i")};
Bm=function(a,b,c){if(!b.ab){var d=ml(b,"start",Sj());a=a.l.g(d).g;var e={};e.r=c;e.v="765v";Ug(a,function(f,k){return e[f]="mtos"==f||"tos"==f?k:encodeURIComponent(k)});
c=Lca();Ug(c,function(f,k){return e[f]=encodeURIComponent(k)});
e.id="lidarvf";c="//pagead2.googlesyndication.com/pagead/gen_204?"+pk(ok(new nk,e));tk(c);b.ab=!0}};
Cm=function(a,b,c){Pl(Nl,[a],!Sj());jl(a,c);4!=c&&il(a.M,c,a.Am);return ml(a,b,Sj())};
Uca=function(a,b,c){if(0==b.Cc){"i"!=xm&&(Nl.done=!1);var d=xl.getInstance();null!=d.g&&Lk(b,d.g);fca(b,function(e){for(var f=[],k=0;k<arguments.length;++k)f[k-0]=arguments[k];return a.XD.apply(a,g.ea(f))});
b.element&&Il.getInstance();c=g.Ca(c)?c.opt_nativeTime:void 0;dj=c=g.Fa(c)?c:$i();b.im=!0;d=Sj();mca(b,c,d);Pl(Nl,[b],!d)}};
Rca=function(a){Kca(function(){var b=Dm();null!=a.g&&(b.sdk=a.g);b.avms=xj.getInstance().Sa;return b})};
Vca=function(a,b,c,d){if(a.o)var e=rl(tl,b);else e=sl(tl,c),null!==e&&e.gc!==b&&(a.wj(e),e=null);e||(b=a.ho(c,$i(),!1,b),(c=xl.getInstance().g)&&Lk(b,c),b.hn=(0,g.x)(a.Hq,a),0==tl.i.length&&(xj.getInstance().l=79463069),Dca([b]),Ol(),e=b,e.u=zm(a),d&&(e.Cg=d));return e};
Wca=function(a,b){b.D=0;for(var c in Em)null==a[c]&&(b.D|=Em[c]);Fm(a,"currentTime");Fm(a,"duration")};
Xca=function(a){(0,g.y)(tl.g,function(b){3==b.Cc&&a.wj(b)})};
Fm=function(a,b){var c=a[b];g.Ca(c)&&0<c&&(a[b]=Math.floor(1E3*c))};
Dm=function(){var a=Pj.getInstance(),b={};return b.sv="765",b["if"]=a.i?"1":"0",b.nas=String(tl.g.length),b};
Yca=function(){this.g=void 0;this.i=!1;this.l=0;this.o=-1;this.u="tos"};
$ca=function(a){try{var b=a.split(",");return b.length>g.Rb(Zca).length?null:nj(b,function(c,d){var e=d.toLowerCase().split("=");if(2!=e.length||!g.Ca(Gm[e[0]])||!Gm[e[0]](e[1]))throw Error("Entry ("+e[0]+", "+e[1]+") is invalid.");c[e[0]]=e[1];return c},{})}catch(c){return null}};
ada=function(a,b){if(void 0==a.g)return 0;switch(a.u){case "mtos":return a.i?Ck(b.i,a.g):Ck(b.l,a.g);case "tos":return a.i?Ak(b.i,a.g):Ak(b.l,a.g)}return 0};
Hm=function(a,b,c,d){$k.call(this,b,d);this.B=a;this.A=c};
Im=function(a){$k.call(this,"fully_viewable_audible_half_duration_impression",a)};
Jm=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
Lm=function(a){return!!(1<<a&Km)};
fda=function(){try{bda()}catch(d){}var a="a=1&b="+Km+"&",b=[],c=99;(0,g.y)(cda,function(d,e){var f=!1;try{f=d(G)}catch(k){}b[e/32>>>0]|=f<<e%32});
(0,g.y)(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
c=105;(0,g.y)(dda,function(d){var e="false";try{e=d(G)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
(0,g.y)(eda,function(d){var e="";try{e=g.le(d(G))}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
bda=function(){if(!Mm){var a=function(){Nm=!0;G.document.removeEventListener("webdriver-evaluate",a,!0)};
G.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){Om=!0;G.document.removeEventListener("webdriver-evaluate-response",b,!0)};
G.document.addEventListener("webdriver-evaluate-response",b,!0);Mm=!0}};
Pm=function(){this.i=64;this.g=Array(4);this.u=Array(this.i);this.o=this.l=0;this.reset()};
Qm=function(a,b,c){c||(c=0);var d=Array(16);if(g.Da(b))for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.g[0];c=a.g[1];e=a.g[2];var f=a.g[3];var k=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^
b))+d[3]+3250441966&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+
(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(k<<5&4294967295|
k>>>27);k=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(k<<20&4294967295|
k>>>12);k=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(k<<14&4294967295|
k>>>18);k=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^
b^c)+d[7]+4139469664&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[12]+3873151461&4294967295;
f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+
(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[13]+1309151649&4294967295;
c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.g[0]=a.g[0]+b&4294967295;a.g[1]=a.g[1]+(e+(k<<21&4294967295|k>>>11))&4294967295;a.g[2]=a.g[2]+e&4294967295;a.g[3]=a.g[3]+f&4294967295};
Rm=function(){this.i=null};
Sm=function(a){return function(b){var c=new Pm;c.update(b+a);return Uaa(c.digest()).slice(-8)}};
Tm=function(a,b){this.i=a;this.l=b};
gda=function(a){var b=cm(a)?"custom_metric_viewable":a;a=Vb(kl,function(c){return c==b});
return am[a]};
Um=function(a,b,c){Tm.call(this,a,b);this.o=c};
Vm=function(){tm.call(this);this.A=void 0;this.F=null;this.B=!1;this.D={};this.l=new Rm};
Wm=function(){var a=Vm.getInstance(),b="h"==zm(a)||"b"==zm(a),c="exc"!=xj.getInstance().Sa;b&&c&&(a.B=!0,a.F=new uca)};
hda=function(a,b,c){c=c.opt_configurable_tracking_events;if(null!=a.i&&g.Ka(c)){var d=a.i;Dba(c);(0,g.y)(c,function(e){var f=(0,g.ge)(e.gR,function(k){var l=$ca(k);if(null==l)k=null;else if(k=new Yca,null!=l.visible&&(k.g=l.visible/100),null!=l.audible&&(k.i=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=vb(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(k.l=l,k.o=-1):(k.l=-1,k.o=l);k.u=void 0===m?"tos":m}return k});
(0,g.Oj)(f,function(k){return null==k})||nca(b,new Hm(e.id,e.event,f,d))})}};
ida=function(){var a=xl.getInstance().g,b="";a&&(b=a.getName());a=xj.getInstance();return"exc"===a.Sa||"nis"===a.Sa||"nis"===b};
jda=function(a,b,c){var d=rl(tl,b);d||(d=c.opt_nativeTime||-1,d=um(a,b,zm(a),d),c.opt_osdId&&(d.Cg=c.opt_osdId));return d};
Xm=function(a,b,c){var d=rl(tl,b);d||(d=um(a,b,"n",c.opt_nativeTime||-1),d.F=Pj.getInstance().F);return d};
kda=function(a,b){var c=rl(tl,b);c||(c=um(a,b,"h",-1));return c};
lda=function(a){var b=xj.getInstance();switch(zm(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":if("exc"==b.Sa)return"ima.bridge.triggerExternalActivityEvent";case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
Zm=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.ec(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.l.g(bm("ol",d));if(g.Ca(d))if(c=Zl(d),g.Ca(c))if(wm)b=bm("ue",d);else if(b=a.Oj(b,e))if(a.o&&3==b.Cc)b="stopped";else{b:{Tca(a);"i"==xm&&(b.Kf=!0,a.Vs(b));c=e.opt_fullscreen;g.Ca(c)&&Kk(b,!!c);var f;if(c=!Pj.getInstance().o&&!(Eb(g.Ib,"CrKey")||Eb(g.Ib,"PlayStation")||Eb(g.Ib,"Roku")||Qba()||Eb(g.Ib,"Xbox")))pj(),c=0===ij(mi);if(f=c){switch(b.fe()){case 1:Bm(a,b,"pv");break;
case 2:a.Os(b)}ym("pv")}c=d.toLowerCase();!f&&g.$a(mda,c)&&Uca(a,b,e);0!=b.Cc&&g.$a(nda,c)&&!b.Kf&&!a.u&&b.kh&&(f=b.kh,f.g||(f.g=al(f,b)));(f=b.Eh[c])&&Vk(b.yc,f);switch(b.fe()){case 1:var k=cm(c)?a.H.custom_metric_viewable:a.H[c];break;case 2:k=a.R[c]}if(k&&(d=k.call(a,b,e,d),g.Ca(d))){e=bm(void 0,c);g.ec(e,d);d=e;break b}d=void 0}3==b.Cc&&(a.o?b.Sa&&b.Sa.mn():a.wj(b));b=d}else b=bm("nf",d);else b=void 0;else wm?b=bm("ue"):(b=a.Oj(b,e))?(d=bm(),g.ec(d,ll(b,!0,!1,!1)),b=d):b=bm("nf");return g.Da(b)?
a.o&&"stopped"===b?Ym:a.l.g(void 0):a.l.g(b)};
oda=function(a,b,c){a=Pj.getInstance();if(a.F!=b){a.F=b;var d=(0,g.Oj)(tl.g,function(e){return e.ya});
(0,g.y)(tl.g,function(e){b||d||(e.li=c);e.F=b;e.ya=!1})}};
an=function(a,b){var c;if(b.Cg&&$m(a)){var d=a.D[b.Cg];d?c=function(f,k){d.l(f,k)}:null!==d&&Jj(379,Error())}else c=g.w("ima.common.triggerViewabilityMeasurementUpdate");
if(g.Ma(c)){var e=oca(b);e.nativeVolume=a.A;c(b.gc,e)}};
$m=function(a){return"exc"==xj.getInstance().Sa||"h"!=zm(a)&&zm(a),!1};
bn=function(a){var b={};return b.viewability=a.g,b.googleViewability=a.l,b.moatInit=a.u,b.moatViewability=a.A,b.integralAdsViewability=a.o,b.doubleVerifyViewability=a.i,b};
cn=function(a,b,c){c=void 0===c?{}:c;a=Zm(Vm.getInstance(),b,c,a);return bn(a)};
dn=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"file"!==a&&"android-app"!==a&&"chrome-search"!==a&&"app"!==a)throw Error("Invalid URI scheme in origin: "+a);c="";var d=b.indexOf(":");if(-1!=d){var e=
b.substring(d+1);b=b.substring(0,d);if("http"===a&&"80"!==e||"https"===a&&"443"!==e)c=":"+e}return a+"://"+b+c};
pda=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(r){for(var v=k,z=0;64>z;z+=4)v[z/4]=r[z]<<24|r[z+1]<<16|r[z+2]<<8|r[z+3];for(z=16;80>z;z++)r=v[z-3]^v[z-8]^v[z-14]^v[z-16],v[z]=(r<<1|r>>>31)&4294967295;r=e[0];var C=e[1],F=e[2],E=e[3],K=e[4];for(z=0;80>z;z++){if(40>z)if(20>z){var R=E^C&(F^E);var V=1518500249}else R=C^F^E,V=1859775393;else 60>z?(R=C&F|E&(C|F),V=2400959708):(R=C^F^E,V=3395469782);R=((r<<5|r>>>27)&4294967295)+R+K+V+v[z]&4294967295;K=E;E=F;F=(C<<30|C>>>2)&4294967295;C=r;r=R}e[0]=e[0]+r&4294967295;e[1]=e[1]+C&4294967295;e[2]=
e[2]+F&4294967295;e[3]=e[3]+E&4294967295;e[4]=e[4]+K&4294967295}
function c(r,v){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var z=[],C=0,F=r.length;C<F;++C)z.push(r.charCodeAt(C));r=z}v||(v=r.length);z=0;if(0==n)for(;z+64<v;)b(r.slice(z,z+64)),z+=64,p+=64;for(;z<v;)if(f[n++]=r[z++],p++,64==n)for(n=0,b(f);z+64<v;)b(r.slice(z,z+64)),z+=64,p+=64}
function d(){var r=[],v=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var z=63;56<=z;z--)f[z]=v&255,v>>>=8;b(f);for(z=v=0;5>z;z++)for(var C=24;0<=C;C-=8)r[v++]=e[z]>>C&255;return r}
for(var e=[],f=[],k=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,YC:function(){for(var r=d(),v="",z=0;z<r.length;z++)v+="0123456789ABCDEF".charAt(Math.floor(r[z]/16))+"0123456789ABCDEF".charAt(r[z]%16);return v}}};
qda=function(a,b,c){var d=[],e=[];if(1==(g.Ka(c)?2:1))return e=[b,a],(0,g.y)(d,function(l){e.push(l)}),en(e.join(" "));
var f=[],k=[];(0,g.y)(c,function(l){k.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];(0,g.y)(d,function(l){e.push(l)});
a=en(e.join(" "));a=[c,a];0==k.length||a.push(k.join(""));return a.join("_")};
en=function(a){var b=pda();b.update(a);return b.YC().toLowerCase()};
g.fn=function(){var a=[],b=dn(String(g.u.location.href)),c=g.u.__OVERRIDE_SID;null==c&&(c=(new Ng(document)).get("SID"));if(c&&(b=(c=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:"))?g.u.__SAPISID:g.u.__APISID,null==b&&(b=(new Ng(document)).get(c?"SAPISID":"APISID")),b)){c=c?"SAPISIDHASH":"APISIDHASH";var d=String(g.u.location.href);return d&&b&&c?[c,qda(dn(d),b,a||null)].join(" "):null}return null};
g.gn=function(a,b){this.i={};this.g=[];this.Jg=this.Da=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)if(a instanceof g.gn)for(c=a.Pd(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
jn=function(a){if(a.Da!=a.g.length){for(var b=0,c=0;b<a.g.length;){var d=a.g[b];hn(a.i,d)&&(a.g[c++]=d);b++}a.g.length=c}if(a.Da!=a.g.length){var e={};for(c=b=0;b<a.g.length;)d=a.g[b],hn(e,d)||(a.g[c++]=d,e[d]=1),b++;a.g.length=c}};
hn=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.kn=function(a,b){this.g=this.D=this.o="";this.u=null;this.A=this.i="";this.B=!1;var c;a instanceof g.kn?(this.B=g.Ca(b)?b:a.B,g.ln(this,a.o),this.D=a.D,g.mn(this,a.g),g.nn(this,a.u),this.i=a.i,on(this,a.l.clone()),this.A=a.A):a&&(c=String(a).match(Rg))?(this.B=!!b,g.ln(this,c[1]||"",!0),this.D=pn(c[2]||""),g.mn(this,c[3]||"",!0),g.nn(this,c[4]),this.i=pn(c[5]||"",!0),on(this,c[6]||"",!0),this.A=pn(c[7]||"")):(this.B=!!b,this.l=new g.qn(null,this.B))};
g.ln=function(a,b,c){a.o=c?pn(b,!0):b;a.o&&(a.o=a.o.replace(/:$/,""))};
g.mn=function(a,b,c){a.g=c?pn(b,!0):b};
g.nn=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.u=b}else a.u=null};
on=function(a,b,c){b instanceof g.qn?(a.l=b,rda(a.l,a.B)):(c||(b=rn(b,sda)),a.l=new g.qn(b,a.B))};
g.sn=function(a,b,c){a.l.set(b,c)};
g.tn=function(a){return a instanceof g.kn?a.clone():new g.kn(a,void 0)};
pn=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
rn=function(a,b,c){return g.Da(a)?(a=encodeURI(a).replace(b,tda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
tda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
g.qn=function(a,b){this.Da=this.g=null;this.i=a||null;this.l=!!b};
un=function(a){a.g||(a.g=new g.gn,a.Da=0,a.i&&Ug(a.i,function(b,c){a.add(Xc(b),c)}))};
wn=function(a,b){un(a);b=vn(a,b);return hn(a.g.i,b)};
g.xn=function(a,b,c){a.remove(b);0<c.length&&(a.i=null,a.g.set(vn(a,b),g.gb(c)),a.Da=a.Da+c.length)};
vn=function(a,b){var c=String(b);a.l&&(c=c.toLowerCase());return c};
rda=function(a,b){b&&!a.l&&(un(a),a.i=null,a.g.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.xn(this,e,c))},a));
a.l=b};
g.yn=function(a){g.A.call(this);this.i=a;this.g={}};
zn=function(a,b,c,d,e,f){if(g.Ka(c))for(var k=0;k<c.length;k++)zn(a,b,c[k],d,e,f);else{b=Bf(b,c,d||a.handleEvent,e,f||a.i||a);if(!b)return a;a.g[b.key]=b}return a};
g.An=function(a){g.Kb(a.g,function(b,c){this.g.hasOwnProperty(c)&&g.Lf(b)},a);
a.g={}};
g.Bn=function(a,b){return a.replace(uda,function(c,d){try{var e=$b(b,d);if(null==e)return c;e=e.toString();if(""==e||!g.wb(g.ad(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
Cn=function(a){g.sf.call(this,a)};
vda=function(a){this.g=a};
wda=function(){var a=Dn();a:{if(Tb(a.g,"disableExperiments")&&(a=a.g.disableExperiments,Ea(a)))break a;a=!1}return a};
xda=function(a){if(Tb(a.g,"forceExperimentIds")){a=a.g.forceExperimentIds;var b=[],c=0;g.Ka(a)&&(0,g.y)(a,function(d){g.Fa(d)&&(b[c++]=d)});
return b}return null};
En=function(){this.g=!1;this.i=!0;this.l=null;try{lj(void 0)}catch(a){}};
Dn=function(){var a=Fn;if(null==a.l){var b={};var c=(new g.kn(Od().location.href)).l;if(wn(c,"tcnfp"))try{b=JSON.parse(c.get("tcnfp"))}catch(d){}a.l=new vda(b)}return a.l};
Gn=function(a,b,c){this.i=a;this.g=g.pd(b||0,0,1);this.l=null!=c?c:!0};
Hn=function(a){this.l=a;this.i=new g.gn;this.g=null};
yda=function(a){var b=Math.random(),c=0,d=a.i.Bc();(0,g.y)(d,function(l){c+=l.g},a);
var e=1<c?c:1;a.g=null;for(var f=0,k=0;k<d.length;++k)if(f+=d[k].g,f/e>=b){a.g=d[k];break}};
Bda=function(){this.i=null!=g.u.G_testRunner;this.g=new g.gn;Fn.g||(In(this,"GvnExternalLayer",31061774,.01),In(this,"GvnExternalLayer",31061775,.01),In(this,"GvnExternalLayer",41351088,.01),In(this,"GvnExternalLayer",41351089,.01),In(this,"GvnExternalLayer",420706008,.05),In(this,"GvnExternalLayer",420706009,.05),In(this,"GvnExternalLayer",41351073,.01),In(this,"GvnExternalLayer",41351074,.01),In(this,"GvnExternalLayer",41351075,.01),In(this,"GvnExternalLayer",634360101,0),In(this,"GvnExternalLayer",
634360102,0),In(this,"GvnExternalLayer",21592080,.1),In(this,"GvnExternalLayer",21592081,.1),In(this,"GvnExternalLayer",413051059,.05),In(this,"GvnExternalLayer",413051060,.05),In(this,"GvnExternalLayer",324123E3,.05),In(this,"GvnExternalLayer",324123001,.05),In(this,"GvnExternalLayer",420706068,.01),In(this,"GvnExternalLayer",420706069,.01),In(this,"GvnExternalLayer",324123020,.01),In(this,"GvnExternalLayer",324123021,.01));In(this,"ActiveViewExternalLayer",953563515,.01);In(this,"ActiveViewExternalLayer",
953563516,.01);In(this,"ActiveViewExternalLayer",953563517,.01);zda(this);var a=Dn();a=xda(a);null!=a&&(this.i=!1,Ada(this,a.map(String)))};
Kn=function(){Jn||(Jn=new Bda);return Jn};
In=function(a,b,c,d){g.wb(g.ad(b))||isNaN(c)||0>=c||(c=new Gn(c,d),Ln(a,b).i.set(c.getId(),c))};
zda=function(a){wda()||(0,g.y)(a.g.Bc(),function(b){yda(b)},a)};
Ada=function(a,b){(0,g.y)(b,function(c){var d=Number(c);c="FORCED_PUB_EXP_LAYER_"+c;isNaN(d)||0>=d||g.wb(g.ad(c))||(Ln(this,c).g=new Gn(d,0,!0))},a)};
Mn=function(a,b){return a.i?!1:(0,g.Oj)(a.g.Bc(),function(c){return!!c.g&&c.g.getId()==b})};
Cda=function(){var a=Kn();if(a.i)return"";var b=[];(0,g.y)(a.g.Bc(),function(c){(c=c.g)&&c.l&&b.push(c.getId())});
return b.sort().join(",")};
Ln=function(a,b){var c=a.g.get(b);null==c&&(c=new Hn(b),a.g.set(b,c));return c};
Fda=function(a){try{var b=(new g.kn(a)).g;b=b.replace(/^www./i,"");return(0,g.Oj)(Dda,function(c){return Eda(c,b)})}catch(c){return!1}};
Eda=function(a,b){if(g.wb(g.ad(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};
Nn=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)};
Rn=function(a,b,c,d){null!=a&&null!=b&&(a=g.Bn(a,b));try{if(null!=c){b=a;var e=(c||{}).viewability||"na";if(g.wb(g.ad(e)))a=b;else{var f=new g.kn(b);wn(f.l,"label")?(g.sn(f,"acvw",e),a=f.toString().replace(/%2C/g,",")):a=b}}a:{c=a;e=void 0;var k=c.length-11-2;if(!(-1==c.indexOf("URL_SIGNALS")||2048<=k||!e&&!window.Goog_AdSense_Lidar_getUrlSignalsArray))for(e=e||window.Goog_AdSense_Lidar_getUrlSignalsArray(),k={},f=0;f<e.length;++f){k.URL_SIGNALS=e[f];var l=g.Bn(c,k);if(2048>l.length){a=l;break a}}a=
c}}catch(r){}try{l=a;k=!1;Nn(l,Gda)?k=!1:null!=l&&Fda(l)?k=!0:"https:"==window.location.protocol&&(Nn(l,Hda)||Fn.g)&&(k=!0);if(k){var m=new g.kn(l);"https"==m.o?a=l:(g.ln(m,"https"),a=m.toString())}else a=l;var n=Kn(),p=!Fn.g||Mn(n,41351089);m=!1;Fn.g||!Mn(Kn(),634360102)||(m=!0);null!=d&&d?On.CA(a,p):Fn.i?On.PM(a,p,m):On.Tk(a,p,m)}catch(r){}};
Sn=function(a){return(a=a.exec(g.Ib))?a[1]:""};
Tn=function(a){return 0<=g.Hb(Ida,a)};
Un=function(){this.g=null;this.l="";this.i=null};
Jda=function(){var a="h."+Vn.l;null!=Vn.i&&(a+="/n."+Vn.i,null!=Vn.g&&(a+="/"+Vn.g));return a};
Wn=function(){this.g=.01>Math.random();this.i=Math.floor(4503599627370496*Math.random())};
Kda=function(a,b){b.id="ima_html5";var c=Xn();b.c=a.i;b.domain=c.g;return b};
Xn=function(){var a=Od(),b=document;return new g.kn(a.parent==a?a.location.href:b.referrer)};
Yn=function(){g.Qf.call(this);this.g=new g.gn;this.i=null;this.ca=new g.yn(this);g.B(this,this.ca);this.o=null;this.l=-1};
$n=function(){null!=Zn||(Zn=new Yn);return Zn};
ao=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;$n().dispatchEvent(new Cn("measurable_impression",null,c))};
bo=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;$n().dispatchEvent(new Cn("viewable_impression",null,c))};
co=function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;$n().dispatchEvent(new Cn("externalActivityEvent",null,d))};
eo=function(a){if(a=a.match(/[\d]+/g))a.length=3};
fo=function(){g.Qf.call(this);this.g=null;this.ca=new g.yn(this);g.B(this,this.ca);this.A=new g.gn;this.u=new g.gn;this.i=!1;this.l=null};
ho=function(){null!=go||(go=new fo);return go};
io=function(a){if(g.Ma(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.g.send("activityMonitor","pageSignals",b)}};
Lda=function(a,b,c){var d=b?a.u.get(b):Fn.o;a={};null!=c&&(a.fullscreen=c);c="";try{c=qba(function(){return d},a)}catch(e){c="sdktle;"+Zc(e.name,12)+";"+Zc(e.message,40)}return c};
g.jo=function(){};
g.ko=function(a,b){var c=a.g(b);return-1==(0==c?null:c)?"rtl":"ltr"};
mo=function(a,b){var c="key_"+a+":"+b,d=lo[c];if(void 0===d||0>d)lo[c]=0;else if(0==d)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');};
no=function(a){if(a.classList)return a.classList;a=a.className;return g.Da(a)&&a.match(/\S+/g)||[]};
g.oo=function(a,b){return a.classList?a.classList.contains(b):g.$a(no(a),b)};
g.H=function(a,b){a.classList?a.classList.add(b):g.oo(a,b)||(a.className+=0<a.className.length?" "+b:b)};
g.po=function(a,b){if(a.classList)(0,g.y)(b,function(e){g.H(a,e)});
else{var c={};(0,g.y)(no(a),function(e){c[e]=!0});
(0,g.y)(b,function(e){c[e]=!0});
a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}};
g.qo=function(a,b){a.classList?a.classList.remove(b):g.oo(a,b)&&(a.className=(0,g.Xd)(no(a),function(c){return c!=b}).join(" "))};
g.ro=function(a,b){a.classList?(0,g.y)(b,function(c){g.qo(a,c)}):a.className=(0,g.Xd)(no(a),function(c){return!g.$a(b,c)}).join(" ")};
g.I=function(a,b,c){c?g.H(a,b):g.qo(a,b)};
Mda=function(){if(!g.Ld)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.so=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;$h();a=Qc(a,null);return b.parseFromString(g.Mc(a),"application/xml")}if(Nda){b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
g.to=function(){g.Qf.call(this);this.g=0;this.endTime=this.startTime=null};
Oda=function(a,b){g.Ka(b)||(b=[b]);var c=(0,g.ge)(b,function(d){return g.Da(d)?d:d.property+" "+d.duration+"s "+d.timing+" "+d.delay+"s"});
g.zh(a,"transition",c.join(","))};
yo=function(a,b,c,d,e){g.to.call(this);this.i=a;this.B=b;this.F=c;this.u=d;this.D=g.Ka(e)?e:[e]};
zo=function(a,b,c,d){return new yo(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
g.Ao=function(a,b,c){g.A.call(this);this.g=null;this.o=!1;this.A=a;this.u=c;this.i=b||window;this.l=(0,g.x)(this.CD,this)};
Bo=function(a){a=a.i;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
Co=function(a){a=a.i;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.J=function(a,b,c){g.A.call(this);this.g=a;this.Zc=b||0;this.i=c;this.l=(0,g.x)(this.Cw,this)};
g.Do=function(a,b){a.isActive()||a.start(b)};
g.Eo=function(a){a.stop();a.Cw()};
g.Fo=function(a){a.isActive()&&g.Eo(a)};
g.Go=function(){};
g.Ho=function(a){return":"+(a.g++).toString(36)};
g.Io=function(a){g.Qf.call(this);this.M=a||Bd();this.P=null;this.fh=!1;this.i=null;this.u=void 0;this.A=this.D=this.F=null};
Jo=function(a,b){a.D&&(0,g.y)(a.D,b,void 0)};
Ko=function(a,b){this.type=a;this.label=b};
Lo=function(a){new Ko(a,1)};
Mo=function(a){new Ko(a,2)};
No=function(a){new Ko(a,3)};
Oo=function(){};
Po=function(){};
g.Qo=function(a){if(!a.i&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof 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 ActiveXObject(d),a.i=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.i};
Rda=function(a){var b=Pda++,c={SE:{id:b,wf:a.measure,context:void 0},YH:{id:b,wf:a.oR,context:void 0},state:{},args:void 0,Pm:!1};return function(){0<arguments.length?(c.args||(c.args=[]),c.args.length=0,c.args.push.apply(c.args,arguments),c.args.push(c.state)):c.args&&0!=c.args.length?(c.args[0]=c.state,c.args.length=1):c.args=[c.state];c.Pm||(c.Pm=!0,Ro[So].push(c));To||(To=!0,window.requestAnimationFrame(Qda))}};
Qda=function(){To=!1;var a=Ro[So],b=a.length;So=(So+1)%2;for(var c,d=0;d<b;++d){c=a[d];var e=c.SE;c.Pm=!1;e.wf&&e.wf.apply(e.context,c.args)}for(d=0;d<b;++d)c=a[d],e=c.YH,c.Pm=!1,e.wf&&e.wf.apply(e.context,c.args),c.state={};a.length=0};
Uo=function(a,b,c,d,e,f,k,l){this.g=a;this.B=b;this.l=c;this.u=d;this.o=e;this.A=f;this.i=k;this.D=l};
Vo=function(a,b){if(0==b)return a.g;if(1==b)return a.i;var c=rd(a.g,a.l,b),d=rd(a.l,a.o,b),e=rd(a.o,a.i,b);c=rd(c,d,b);d=rd(d,e,b);return rd(c,d,b)};
Sda=function(a,b){var c=(b-a.g)/(a.i-a.g);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,k=0;8>k;k++){f=Vo(a,c);var l=(Vo(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else f<b?d=c:e=c,c-=(f-b)/l}for(k=0;1E-6<Math.abs(f-b)&&8>k;k++)f<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),f=Vo(a,c);return c};
g.Wo=function(a,b,c){this.o=a;this.u=b;this.g=this.l=a;this.A=c||0};
g.Xo=function(a){a.g=Math.min(a.u,2*a.g);a.l=Math.min(a.u,a.g+(a.A?Math.round(a.A*(Math.random()-.5)*2*a.g):0));a.i++};
g.Yo=function(a){g.A.call(this);this.u=1;this.l=[];this.o=0;this.g=[];this.i={};this.A=!!a};
Tda=function(a,b,c){g.dg(function(){a.apply(b,c)})};
g.Zo=function(a){this.g=a};
$o=function(a){this.g=a};
ap=function(a){this.data=a};
bp=function(a){return!g.Ca(a)||a instanceof ap?a:new ap(a)};
cp=function(a){this.g=a};
g.dp=function(a){var b=a.creation;a=a.expiration;return!!a&&a<(0,g.D)()||!!b&&b>(0,g.D)()};
g.ep=function(a){this.g=a};
Uda=function(){};
fp=function(){};
gp=function(a){this.g=a};
hp=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.g=a};
ip=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.g=a};
kp=function(a,b){this.i=a;this.g=null;if(g.Ld&&!g.od(9)){jp||(jp=new g.gn);this.g=jp.get(a);this.g||(b?this.g=document.getElementById(b):(this.g=document.createElement("userdata"),this.g.addBehavior("#default#userData"),document.body.appendChild(this.g)),jp.set(a,this.g));try{this.g.load(this.i)}catch(c){this.g=null}}};
lp=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Vda[b]})};
mp=function(a){try{a.g.save(a.i)}catch(b){throw"Storage mechanism: Quota exceeded";}};
np=function(a,b){this.i=a;this.g=b+"::"};
g.op=function(a){var b=new hp;return b.isAvailable()?a?new np(b,a):b:null};
pp=function(a,b){this.g=a;this.i=b};
qp=function(a){this.g=[];if(a)a:{if(a instanceof qp){var b=a.Pd();a=a.Bc();if(0>=this.g.length){for(var c=this.g,d=0;d<b.length;d++)c.push(new pp(b[d],a[d]));break a}}else b=g.Rb(a),a=g.Qb(a);for(d=0;d<b.length;d++)rp(this,b[d],a[d])}};
rp=function(a,b,c){var d=a.g;d.push(new pp(b,c));b=d.length-1;a=a.g;for(c=a[b];0<b;)if(d=b-1>>1,a[d].g>c.g)a[b]=a[d],b=d;else break;a[b]=c};
sp=function(){qp.call(this)};
Wda=function(a){this.cv=a};
tp=function(a,b,c){this.o=a;this.i=b;this.g=c||[];this.Lh=new Map};
up=function(a){$e(this,a,Xda,null)};
vp=function(a){$e(this,a,null,null)};
Zda=function(a,b){var c=hf(a,vp,1);0<c.length&&Se(b,1,c,Yda)};
Yda=function(a,b){var c=af(a,1);null!=c&&Oe(b,1,c);c=af(a,2);null!=c&&Me(b,2,c)};
wp=function(a){$e(this,a,$da,null)};
xp=function(a){$e(this,a,null,aea)};
yp=function(a){$e(this,a,null,null)};
zp=function(a){$e(this,a,null,null)};
Ap=function(a){$e(this,a,bea,null)};
Cp=function(a){$e(this,a,null,Bp)};
Ep=function(a){$e(this,a,null,Dp)};
eea=function(a,b){var c=ff(a,yp,1);null!=c&&Re(b,1,c,cea);c=ff(a,zp,2);null!=c&&Re(b,2,c,dea)};
cea=function(a,b){var c=af(a,1);null!=c&&Qe(b,1,c);c=af(a,2);null!=c&&Qe(b,2,c);c=af(a,3);null!=c&&Pe(b,3,c)};
dea=function(a,b){var c=af(a,1);null!=c&&Qe(b,1,c);c=af(a,2);null!=c&&Qe(b,2,c);c=af(a,3);null!=c&&Je(b,3,c);c=af(a,4);null!=c&&Pe(b,4,c)};
hea=function(a,b){var c=hf(a,Cp,1);0<c.length&&Se(b,1,c,fea);c=ff(a,Ep,2);null!=c&&Re(b,2,c,gea)};
fea=function(a,b){var c=af(a,1);null!=c&&Qe(b,1,c);c=af(a,2);null!=c&&Je(b,2,c);c=af(a,3);null!=c&&Pe(b,3,c)};
gea=function(a,b){var c=af(a,1);null!=c&&Me(b,1,c);c=af(a,2);null!=c&&Oe(b,2,c);c=ff(a,up,3);null!=c&&Re(b,3,c,Zda)};
Fp=function(a,b){tp.call(this,a,3,b)};
Hp=function(){this.H=new Gp;this.i=new Map;this.B=new Set;this.l=0;this.o=100;this.flushInterval=3E4;this.g=new g.Fg(this.flushInterval);this.g.da("tick",this.u,!1,this)};
iea=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
Ip=function(){this.i=[];this.g=-1};
jea=function(a){-1==a.g&&(a.g=nj(a.i,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.g};
Jp=function(a,b){this.u=[];this.R=a;this.I=b||null;this.o=this.g=!1;this.l=void 0;this.F=this.M=this.B=!1;this.A=0;this.i=null;this.D=0};
Lp=function(a,b,c){a.g=!0;a.l=c;a.o=!b;Kp(a)};
Np=function(a){if(a.g){if(!a.F)throw new Mp(a);a.F=!1}};
Op=function(a,b,c){a.u.push([b,c,void 0]);a.g&&Kp(a)};
Pp=function(a){return(0,g.Oj)(a.u,function(b){return g.Ma(b[1])})};
Kp=function(a){if(a.A&&a.g&&Pp(a)){var b=a.A,c=Qp[b];c&&(g.u.clearTimeout(c.g),delete Qp[b]);a.A=0}a.i&&(a.i.D--,delete a.i);b=a.l;for(var d=c=!1;a.u.length&&!a.B;){var e=a.u.shift(),f=e[0],k=e[1];e=e[2];if(f=a.o?k:f)try{var l=f.call(e||a.I,b);g.Ca(l)&&(a.o=a.o&&(l==b||a.isError(l)),a.l=b=l);if(hg(b)||"function"===typeof g.u.Promise&&b instanceof g.u.Promise)d=!0,a.B=!0}catch(m){b=m,a.o=!0,Pp(a)||(c=!0)}}a.l=b;d&&(l=(0,g.x)(a.H,a,!0),d=(0,g.x)(a.H,a,!1),b instanceof Jp?(Op(b,l,d),b.M=!0):b.then(l,
d));c&&(b=new Rp(b),Qp[b.g]=b,a.A=b.g)};
Mp=function(){Ta.call(this)};
Sp=function(){Ta.call(this)};
Rp=function(a){this.g=g.u.setTimeout((0,g.x)(this.l,this),0);this.i=a};
Tp=function(a){$e(this,a,kea,null)};
Up=function(a){$e(this,a,null,null)};
lea=function(a,b){for(;xe(b)&&4!=b.i;)switch(b.l){case 1:var c=Be(b);cf(a,1,c);break;case 2:c=Be(b);cf(a,2,c);break;case 3:c=Be(b);cf(a,3,c);break;case 4:c=Be(b);cf(a,4,c);break;case 5:c=te(b.g);cf(a,5,c);break;default:ye(b)}return a};
Wp=function(a){var b=arguments;if(1<b.length)Vp[b[0]]=b[1];else{b=b[0];for(var c in b)Vp[c]=b[c]}};
g.Xp=function(a,b){return a in Vp?Vp[a]:b};
Yp=function(a){return g.Xp(a,void 0)};
Zp=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.L(b)}}:a};
g.L=function(a,b,c,d,e){var f=g.w("yt.logging.errors.log");f?f(a,b,c,d,e):(f=g.Xp("ERRORS",[]),f.push([a,b,c,d,e]),Wp("ERRORS",f))};
g.$p=function(a){g.L(a,"WARNING",void 0,void 0,void 0)};
g.bq=function(a,b,c){a&&(a.dataset?a.dataset[aq(b)]=String(c):a.setAttribute("data-"+b,c))};
cq=function(a){return a?a.dataset?a.dataset[aq("loaded")]:a.getAttribute("data-loaded"):null};
aq=function(a){return dq[a]||(dq[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
g.eq=function(a,b){g.Ma(a)&&(a=Zp(a));return window.setTimeout(a,b)};
fq=function(a,b){g.Ma(a)&&(a=Zp(a));return window.setInterval(a,b)};
g.gq=function(a){window.clearTimeout(a)};
g.lq=function(a,b,c){var d=g.hq();if(d){var e=d.subscribe(a,function(){var f=arguments;var k=function(){iq[e]&&b.apply(c||window,f)};
try{g.jq[a]?k():g.eq(k,0)}catch(l){g.L(l)}},c);
iq[e]=!0;kq[a]||(kq[a]=[]);kq[a].push(e);return e}return 0};
nq=function(a,b){var c=g.lq(a,function(d){b.apply(void 0,arguments);g.mq(c)},void 0);
return c};
g.mq=function(a){var b=g.hq();b&&(g.Fa(a)?a=[a]:g.Da(a)&&(a=[parseInt(a,10)]),(0,g.y)(a,function(c){b.unsubscribeByKey(c);delete iq[c]}))};
g.oq=function(a,b){var c=g.hq();return c?c.publish.apply(c,arguments):!1};
qq=function(a){var b=g.hq();if(b)if(b.clear(a),a)pq(a);else for(var c in kq)pq(c)};
g.hq=function(){return g.w("ytPubsubPubsubInstance")};
pq=function(a){kq[a]&&(a=kq[a],(0,g.y)(a,function(b){iq[b]&&delete iq[b]}),a.length=0)};
g.rq=function(a,b,c){c=void 0===c?null:c;if(window.spf){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(mea,""),c=c.replace(nea,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else oea(a,b,c)};
oea=function(a,b,c){c=void 0===c?null:c;var d=sq(a),e=document.getElementById(d),f=e&&cq(e),k=e&&!f;f?b&&b():(b&&(f=g.lq(d,b),b=""+g.Pa(b),tq[b]=f),k||(e=pea(a,d,function(){cq(e)||(g.bq(e,"loaded","true"),g.oq(d),g.eq(g.Qa(qq,d),0))},c)))};
pea=function(a,b,c,d){d=void 0===d?null:d;var e=g.Rd("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)};
e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}};
d&&e.setAttribute("nonce",d);Vc(e,ai(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
sq=function(a){var b=document.createElement("a");g.Tc(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+bd(a)};
uq=function(){this.Td=!1;this.g=null};
vq=function(a,b,c){try{a.g=new window.botguard.bg(b)}catch(d){g.$p(d)}c&&c(b)};
qea=function(){};
g.xq=function(a,b){return wq(a,1,b)};
yq=function(){};
g.zq=function(){return!!g.w("yt.scheduler.instance")};
wq=function(a,b,c){isNaN(c)&&(c=void 0);var d=g.w("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.eq(a,c||0)};
g.Aq=function(a){if(!isNaN(a)){var b=g.w("yt.scheduler.instance.cancelJob");b?b(a):g.gq(a)}};
Bq=function(a){var b=g.w("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
sea=function(){if("1"!=g.Sb(g.Xp("PLAYER_CONFIG",{}),"args","privembed")){var a=function(){Cq=!0;"google_ad_status"in window?Wp("DCLKSTAT",1):Wp("DCLKSTAT",2)};
g.rq("//static.doubleclick.net/instream/ad_status.js",a);rea.push(g.xq(function(){if(!(Cq||"google_ad_status"in window)){if(a){var b=""+g.Pa(a);(b=tq[b])&&g.mq(b)}Cq=!0;Wp("DCLKSTAT",3)}},5E3))}};
Dq=function(){return g.w("yt.ads.biscotti.lastId_")||""};
Eq=function(a){g.Ga("yt.ads.biscotti.lastId_",a,void 0)};
Fq=function(a){a=a.split("&");for(var b={},c=0,d=a.length;c<d;c++){var e=a[c].split("=");if(1==e.length&&e[0]||2==e.length)try{var f=Xc(e[0]||""),k=Xc(e[1]||"");f in b?g.Ka(b[f])?ib(b[f],k):b[f]=[b[f],k]:b[f]=k}catch(m){var l=Error("Error decoding URL component");l.params="key: "+e[0]+", value: "+e[1];"q"==e[0]?g.$p(l):g.L(l)}}return b};
Gq=function(a){var b=[];g.Kb(a,function(c,d){var e=g.Wc(d),f;g.Ka(c)?f=c:f=[c];(0,g.y)(f,function(k){""==k?b.push(e):b.push(e+"="+g.Wc(k))})});
return b.join("&")};
g.Hq=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Fq(a)};
Iq=function(a){a=a.split(",");return a=a.map(function(b){return g.Hq(b)})};
g.Jq=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),g.Hq(1<a.length?a[1]:a[0])):{}};
g.Lq=function(a,b){return Kq(a,b||{},!0)};
Mq=function(a,b){return Kq(a,b||{},!1)};
Kq=function(a,b,c){var d=a.split("#",2);a=d[0];d=1<d.length?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=g.Hq(e[1]||"");for(var f in b)if(c||!Tb(e,f))e[f]=b[f];return g.bh(a,e)+d};
Nq=function(a){if(!b)var b=window.location.href;var c=g.Sg(1,a),d=g.Tg(a);c&&d?(a=a.match(Rg),b=b.match(Rg),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Tg(b)==d&&(Number(g.Sg(4,b))||null)==(Number(g.Sg(4,a))||null):!0;return a};
Oq=function(){if(!a)var a=document.location.href;a=g.Sg(1,a);return null!==a&&"https"==a};
Pq=function(a){a=g.Tg(a);a=null===a?null:a.split(".").reverse();return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Sq=function(a){var b=Qq;a=void 0===a?Dq():a;b=Object.assign(Rq(b),tea(b));b.ca_type="image";a&&(b.bid=a);return b};
Rq=function(a){var b={};b.dt=uea;b.flash="0";a:{try{var c=a.g.top.location.href}catch(f){a=2;break a}a=c?c===a.i.location.href?0:1:2}b=(b.frm=a,b);b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?G:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!G.navigator&&"unknown"!==typeof G.navigator.javaEnabled&&!!G.navigator.javaEnabled&&G.navigator.javaEnabled();G.screen&&(b.u_h=G.screen.height,b.u_w=G.screen.width,b.u_ah=G.screen.availHeight,b.u_aw=G.screen.availWidth,b.u_cd=G.screen.colorDepth);
G.navigator&&G.navigator.plugins&&(b.u_nplug=G.navigator.plugins.length);G.navigator&&G.navigator.mimeTypes&&(b.u_nmime=G.navigator.mimeTypes.length);return b};
tea=function(a){var b=a.g;try{var c=b.screenX;var d=b.screenY}catch(m){}try{var e=b.outerWidth;var f=b.outerHeight}catch(m){}try{var k=b.innerWidth;var l=b.innerHeight}catch(m){}b=[b.screenLeft,b.screenTop,c,d,b.screen?b.screen.availWidth:void 0,b.screen?b.screen.availTop:void 0,e,f,k,l];c=Oi(!1,a.g.top);d={};e=new Ip;g.u.SVGElement&&g.u.document.createElementNS&&e.set(0);f=xba();f["allow-top-navigation-by-user-activation"]&&e.set(1);f["allow-popups-to-escape-sandbox"]&&e.set(2);g.u.crypto&&g.u.crypto.subtle&&
e.set(3);g.u.TextDecoder&&g.u.TextEncoder&&e.set(4);e=jea(e);return d.bc=e,d.bih=c.height,d.biw=c.width,d.brdim=b.join(),d.vis=ij(a.i),d.wgl=!!G.WebGLRenderingContext,d};
Uq=function(a,b){var c=g.Tq(a);return void 0===c&&void 0!==b?b:Number(c||0)};
g.Tq=function(a){return g.Xp("EXPERIMENT_FLAGS",{})[a]};
vea=function(){if(!Vq)return null;var a=Vq();return"open"in a?a:null};
g.Wq=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}};
wea=function(a,b){b=void 0===b?{}:b;var c=Nq(a),d=!!g.Tq("web_ajax_ignore_global_headers_if_set"),e;for(e in Xq){var f=g.Xp(Xq[e]);!f||!c&&!Yq(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||Yq(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=-(new Date).getTimezoneOffset();(g.Tq("pass_biscotti_id_in_header_ajax")||g.Tq("pass_biscotti_id_in_header_ajax_tv"))&&(c||Yq(a,"X-YouTube-Ad-Signals"))&&(b["X-YouTube-Ad-Signals"]=Gq(Sq(void 0)));return b};
Zq=function(a,b){var c=g.Tg(a),d=g.Qg(g.Sg(5,a));d=(c=c&&c.endsWith("youtube.com"))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=g.Hq(b),f={};(0,g.y)(xea,function(k){e[k]&&(f[k]=e[k])});
return Mq(a,f)};
Yq=function(a,b){var c=g.Xp("CORS_HEADER_WHITELIST")||{},d=g.Tg(a);return d?(c=c[d])?g.$a(c,b):!1:!0};
yea=function(a,b){if(window.fetch&&"XML"!=b.format){var c={method:b.method||"GET",credentials:"same-origin"};b.headers&&(c.headers=b.headers);a=$q(a,b);var d=ar(a,b);d&&(c.body=d);b.withCredentials&&(c.credentials="include");var e=!1,f;fetch(a,c).then(function(k){if(!e){e=!0;f&&g.gq(f);var l=k.ok,m=function(n){n=n||{};var p=b.context||g.u;l?b.onSuccess&&b.onSuccess.call(p,n,k):b.onError&&b.onError.call(p,n,k);b.ed&&b.ed.call(p,n,k)};
"JSON"==(b.format||"JSON")&&(l||400<=k.status&&500>k.status)?k.json().then(m,function(){m(null)}):m(null)}});
b.fz&&0<b.timeout&&(f=g.eq(function(){e||(e=!0,g.gq(f),b.fz.call(b.context||g.u))},b.timeout))}else g.br(a,b)};
g.br=function(a,b){var c=b.format||"JSON";a=$q(a,b);var d=ar(a,b),e=!1,f,k=cr(a,function(l){if(!e){e=!0;f&&g.gq(f);var m=g.Wq(l),n=null,p=400<=l.status&&500>l.status,r=500<=l.status&&600>l.status;if(m||p||r)n=zea(c,l,b.fR);if(m)a:if(l&&204==l.status)m=!0;else{switch(c){case "XML":m=0==parseInt(n&&n.return_code,10);break a;case "RAW":m=!0;break a}m=!!n}n=n||{};p=b.context||g.u;m?b.onSuccess&&b.onSuccess.call(p,l,n):b.onError&&b.onError.call(p,l,n);b.ed&&b.ed.call(p,l,n)}},b.method,d,b.headers,b.responseType,
b.withCredentials);
b.ne&&0<b.timeout&&(f=g.eq(function(){e||(e=!0,k.abort(),g.gq(f),b.ne.call(b.context||g.u,k))},b.timeout));
return k};
$q=function(a,b){b.lR&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.Xp("XSRF_FIELD_NAME",void 0),d=b.ud;d&&(d[c]&&delete d[c],a=g.Lq(a,d));return a};
ar=function(a,b){var c=g.Xp("XSRF_FIELD_NAME",void 0),d=g.Xp("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.wb,k=Yp("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.Rv||g.Tg(a)&&!b.withCredentials&&g.Tg(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.wb&&b.wb[k]||(f||(f={}),f[c]=d);f&&g.Da(e)&&(e=g.Hq(e),g.ec(e,f),e=b.Rz&&"JSON"==b.Rz?JSON.stringify(e):g.$g(e));f=e||f&&!g.Xb(f);!dr&&f&&"POST"!=b.method&&(dr=!0,g.L(Error("AJAX request with postData should use POST")));
return e};
zea=function(a,b,c){var d=null;switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=JSON.parse(a));break;case "XML":if(b=(b=b.responseXML)?Aea(b):null)d={},(0,g.y)(b.getElementsByTagName("*"),function(e){d[e.tagName]=Bea(e)})}c&&er(d);
return d};
er=function(a){if(g.Na(a))for(var b in a)"html_content"==b||vb(b,"_html")?a[b]=g.Rc(g.qc("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):er(a[b])};
Aea=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
Bea=function(a){var b="";(0,g.y)(a.childNodes,function(c){b+=c.nodeValue});
return b};
g.fr=function(a,b){b.method="POST";b.wb||(b.wb={});g.br(a,b)};
cr=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Zp(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=vea();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.Tq("debug_forward_web_query_parameters")&&(a=Zq(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);k&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=wea(a,e))for(var n in e)m.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(c=!1);c&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
m.send(d);return m};
gr=function(){var a=/Chrome\/(\d+)/.exec(g.Ib);return a?parseFloat(a[1]):NaN};
ir=function(){return hr("android")&&hr("chrome")&&!(hr("trident/")||hr("edge/"))};
jr=function(){return hr("armv7")||hr("aarch64")||hr("android")};
g.kr=function(){return hr("cobalt")};
lr=function(){return hr("cobalt")&&hr("appletv")};
mr=function(){return hr("(ps3; leanback shell)")||hr("ps3")&&g.kr()};
nr=function(){return hr("(ps4; leanback shell)")||hr("ps4")&&g.kr()};
g.or=function(){return g.kr()&&(hr("ps4 vr")||hr("ps4 pro vr"))};
pr=function(){var a=/WebKit\/([0-9]+)/.exec(g.Ib);return!!(a&&600<=parseInt(a[1],10))};
qr=function(){return hr("iemobile")||hr("windows phone")&&hr("edge")};
sr=function(){return rr&&hr("applewebkit")&&!hr("version")&&(!hr("safari")||hr("gsa/"))};
ur=function(){return g.tr&&hr("version/")};
vr=function(){return hr("smart-tv")&&hr("samsung")};
hr=function(a){var b=g.Ib;return b?0<=b.toLowerCase().indexOf(a):!1};
g.xr=function(a,b,c,d,e){e=void 0===e?"":e;a&&(c&&!g.kr()?a&&(a=g.zc(g.Cc(a)),"about:invalid#zClosurez"===a?a="":(a=g.Mc(Oc(a)).toString(),a=g.Wc(g.Kg(a))),g.wb(a)||(a=g.Qd("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),zd(a).body.appendChild(a))):e?cr(a,b,"POST",e,d):g.Xp("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d?cr(a,b,"GET","",d):((c=Vp.EXPERIMENT_FLAGS)&&c.web_use_beacon_api_for_ad_click_server_pings&&-1!=g.Qg(g.Sg(5,a)).indexOf("/aclk")&&"1"===fh(a,
"ae")&&"1"===fh(a,"act")?wr(a)?(b&&b(),c=!0):c=!1:c=!1,c||Cea(a,b)))};
yr=function(a,b,c){c=void 0===c?"":c;wr(a,c)?b&&b():g.xr(a,b,void 0,void 0,c)};
wr=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
Cea=function(a,b){var c=new Image,d=""+Dea++;zr[d]=c;c.onload=c.onerror=function(){b&&zr[d]&&b();delete zr[d]};
c.src=a};
Br=function(a,b){var c=g.bc(b),d;return xg(new jg(function(e,f){c.onSuccess=function(k){g.Wq(k)?e(k):f(new Ar("Request failed, status="+k.status,"net.badstatus",k))};
c.onError=function(k){f(new Ar("Unknown request error","net.unknown",k))};
c.ne=function(k){f(new Ar("Request timed out","net.timeout",k))};
d=g.br(a,c)}),function(e){e instanceof Cg&&d.abort();
return og(e)})};
g.Cr=function(a,b,c,d){function e(k,l,m){return xg(k,function(n){return 0>=l||403===n.lh.status?og(new Ar("Request retried too many times","net.retryexhausted",n.lh)):f(m).then(function(){return e(Br(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(k){return new jg(function(l){setTimeout(l,k)})}
return e(Br(a,b),c-1,d)};
Ar=function(a,b,c){Ta.call(this,a+", errorCode="+b);this.errorCode=b;this.lh=c;this.name="PromiseAjaxError"};
Dr=function(a){this.l=void 0===a?null:a;this.i=0;this.g=null};
Er=function(a){var b=new Dr;a=void 0===a?null:a;b.i=2;b.g=void 0===a?null:a;return b};
Fr=function(a){var b=new Dr;a=void 0===a?null:a;b.i=1;b.g=void 0===a?null:a;return b};
Hr=function(a){Ta.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Gr;this.isTimeout=a instanceof Ar&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Cg};
Gr=function(){Ta.call(this,"Biscotti ID is missing from server")};
Eea=function(){if("1"===g.Sb(g.Xp("PLAYER_CONFIG",{}),"args","privembed"))return og(Error("Biscotti ID is not available in private embed mode"));Ir||(Ir=xg(Br("//googleads.g.doubleclick.net/pagead/id",Jr).then(Kr),function(a){return Lr(2,a)}));
return Ir};
Kr=function(a){a=a.responseText;if(!ub(a,")]}'"))throw new Gr;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new Gr;a=a.id;Eq(a);Ir=Fr(a);Mr(18E5,2);return a};
Lr=function(a,b){var c=new Hr(b);Eq("");Ir=Er(c);0<a&&Mr(12E4,a-1);throw c;};
Mr=function(a,b){g.eq(function(){xg(Br("//googleads.g.doubleclick.net/pagead/id",Jr).then(Kr,function(c){return Lr(b,c)}),g.Ha)},a)};
Nr=function(){try{var a=g.w("yt.ads.biscotti.getId_");return a?a():Eea()}catch(b){return og(b)}};
Vr=function(){g.gq(Or);g.gq(Pr);Pr=0;if(!g.Xb(Sr)){for(var a in Sr){var b=Tr[a];b&&(Fea(a,b),delete Sr[a])}g.Xb(Sr)||Ur()}};
Ur=function(){g.Tq("web_gel_timeout_cap")&&!Pr&&(Pr=g.eq(Vr,3E4));g.gq(Or);Or=g.eq(Vr,g.Xp("LOGGING_BATCH_TIMEOUT",Uq("web_gel_debounce_ms",1E4)))};
Wr=function(a,b){b=void 0===b?"":b;Sr[a]=Sr[a]||{};Sr[a][b]=Sr[a][b]||[];return Sr[a][b]};
Fea=function(a,b){var c=Gea[a],d=Xr[a]||{};Xr[a]=d;var e=Math.round(g.M());for(n in Sr[a]){var f=g.cc({context:g.Yr(b.g)});f[c]=Wr(a,n);d.dispatchedEventCount=d.dispatchedEventCount||0;d.dispatchedEventCount+=f[c].length;var k=Zr[n];if(k)a:{var l=n;if(k.videoId)var m="VIDEO";else if(k.playlistId)m="PLAYLIST";else break a;f.credentialTransferTokenTargetId=k;f.context=f.context||{};f.context.user=f.context.user||{};f.context.user.credentialTransferTokens=[{token:l,scope:m}]}delete Zr[n];f.requestTimeMs=
e;if(k=Yp("EVENT_ID"))m=(g.Xp("BATCH_CLIENT_COUNTER",void 0)||0)+1,m>Hea&&(m=1),Wp("BATCH_CLIENT_COUNTER",m),k={serializedEventId:k,clientCounter:m},f.serializedClientEventId=k,$r&&as&&g.Tq("log_gel_rtt_web")&&(f.previousBatchInfo={serializedClientEventId:$r,roundtripMs:as}),$r=k,as=0;g.bs(b,a,f,{retry:Iea.has(a),onSuccess:(0,g.x)(Jea,this,g.M())})}if(d.previousDispatchMs){c=e-d.previousDispatchMs;var n=d.diffCount||0;d.averageTimeBetweenDispatchesMs=n?(d.averageTimeBetweenDispatchesMs*n+c)/(n+1):
c;d.diffCount=n+1}d.previousDispatchMs=e};
Jea=function(a){as=Math.round(g.M()-a)};
ds=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=cs+"VisibilityState";if(b in a)return a[b]};
es=function(a,b){var c;(0,g.Oj)(a,function(d){c=b[d];return!!c});
return c};
fs=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.changedTouches=this.touches=null;try{a=a||window.event;if(!a)return;this.event=a}catch(c){return}for(var b in a)b in Kea||(this[b]=a[b]);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.metaKey=a.metaKey;this.g=a.pageX;this.i=a.pageY};
gs=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.g=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.i=a.clientY+b}};
Lea=function(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Vb(hs,function(e){var f=Ea(e[4])&&e[4]==!!d,k=g.Na(e[4])&&g.Na(d)&&g.ac(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||k)})};
g.ks=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Lea(a,b,c,d);if(e)return e;e=++is.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var k=f?function(l){l=new fs(l);if(!ee(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new fs(l);
l.currentTarget=a;return c.call(a,l)};
k=Zp(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),js()||Ea(d)?a.addEventListener(b,k,d):a.addEventListener(b,k,!!d.capture)):a.attachEvent("on"+b,k);hs[e]=[a,b,c,k,d];return e};
Mea=function(a,b,c,d){var e=a||document;return g.ks(e,b,function(f){var k=ee(f.target,function(l){return l===e||d(l)},!0);
k&&k!==e&&!k.disabled&&(f.currentTarget=k,c.call(k,f))})};
g.ls=function(a){a&&("string"==typeof a&&(a=[a]),(0,g.y)(a,function(b){if(b in hs){var c=hs[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?js()||Ea(c)?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete hs[b]}}))};
g.ms=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
ns=function(a){a=a||window.event;if(a.composedPath&&g.Ma(a.composedPath))var b=a.composedPath();else a.path&&(b=a.path);return b&&b.length?b[0]:g.ms(a)};
os=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};
ps=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&(g.Fa(b)||(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),g.Fa(c)||(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));return new g.td(b,c)};
g.qs=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.rs=function(a){a=a||window.event;return!1===a.returnValue||a.Yw&&a.Yw()};
g.ts=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
g.us=function(a,b,c,d){return Mea(a,b,c,function(e){return g.oo(e,d)})};
g.vs=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.ks(a,b,function(){g.ls(e);c.apply(a,arguments)},d)};
ws=function(a){for(var b in hs)hs[b][0]==a&&g.ls(b)};
xs=function(a){this.D=a;this.g=null;this.o=0;this.u=null;this.l=0;this.i=[];for(a=0;4>a;a++)this.i.push(0);this.Ta=0;this.B=g.ks(window,"mousemove",(0,g.x)(this.H,this));this.F=fq((0,g.x)(this.A,this),25)};
As=function(){var a={},b=void 0===a.pE?!0:a.pE;a=void 0===a.tM?!1:a.tM;if(null==g.w("_lact",window)){var c=parseInt(g.Xp("LACT"),10);c=isFinite(c)?(0,g.D)()-Math.max(c,0):-1;g.Ga("_lact",c,window);g.Ga("_fact",c,window);-1==c&&ys();g.ks(document,"keydown",ys);g.ks(document,"keyup",ys);g.ks(document,"mousedown",ys);g.ks(document,"mouseup",ys);b&&(a?g.ks(window,"touchmove",function(){zs("touchmove",200)},{passive:!0}):(g.ks(window,"resize",function(){zs("resize",200)}),g.ks(window,"scroll",function(){zs("scroll",
200)})));
new xs(function(){zs("mouse",100)});
g.ks(document,"touchstart",ys,{passive:!0});g.ks(document,"touchend",ys,{passive:!0})}};
zs=function(a,b){Bs[a]||(Bs[a]=!0,g.xq(function(){ys();Bs[a]=!1},b))};
ys=function(){null==g.w("_lact",window)&&As();var a=(0,g.D)();g.Ga("_lact",a,window);-1==g.w("_fact",window)&&g.Ga("_fact",a,window);(a=g.w("ytglobal.ytUtilActivityCallback_"))&&a()};
Cs=function(){var a=g.w("_lact",window),b;null==a?b=-1:b=Math.max((0,g.D)()-a,0);return b};
g.Es=function(a,b,c,d){d=void 0===d?{}:d;var e={};e.eventTimeMs=Math.round(d.timestamp||g.M());e[a]=b;e.context={lastActivityMs:String(d.timestamp?-1:Cs())};g.Tq("log_sequence_info_on_gel_web")&&d.xh&&(a=e.context,b=d.xh,Ds[b]=b in Ds?Ds[b]+1:0,a.sequence={index:Ds[b],groupKey:b},d.dD&&delete Ds[d.xh]);(d=d.uj)?(a={},d.videoId?a.videoId=d.videoId:d.playlistId&&(a.playlistId=d.playlistId),Zr[d.token]=a,d=Wr("log_event",d.token)):d=Wr("log_event");d.push(e);c&&(Tr.log_event=new c);d.length>=(Uq("web_logging_max_batch")||
100)?Vr():Ur()};
g.Yr=function(a){a={client:{hl:a.Vq,gl:a.Uq,clientName:a.Sq,clientVersion:a.Tq,configInfo:a.sE}};var b=window.devicePixelRatio;b&&1!=b&&(a.client.screenDensityFloat=String(b));g.Xp("DELEGATED_SESSION_ID")&&!g.Tq("pageid_as_header_web")&&(a.user={onBehalfOfUser:g.Xp("DELEGATED_SESSION_ID")});return a};
Nea=function(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||g.Xp("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.dR||g.Xp("AUTHORIZATION"))||(a?b="Bearer "+g.w("gapi.auth.getToken")().bR:b=g.fn());b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.Xp("SESSION_INDEX",0),g.Tq("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.Xp("DELEGATED_SESSION_ID")));return d};
g.Js=function(a,b,c,d){Fs.set(""+a,b,c,"/",void 0===d?"youtube.com":d,!1)};
g.Ks=function(a,b,c){Fs.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
Ls=function(){var a;(a=g.op("yt.innertube"))||(a=new kp("yt.innertube"),a=a.isAvailable()?a:null);this.g=a?new cp(a):null;this.i=document.domain||window.location.hostname};
g.Ms=function(a){this.g=a||{Qq:Yp("INNERTUBE_API_KEY"),Rq:Yp("INNERTUBE_API_VERSION"),sE:g.Xp("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Sq:g.Xp("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),Tq:Yp("INNERTUBE_CONTEXT_CLIENT_VERSION"),Vq:Yp("INNERTUBE_CONTEXT_HL"),Uq:Yp("INNERTUBE_CONTEXT_GL"),Lm:Yp("INNERTUBE_HOST_OVERRIDE")||"",tE:!!g.Xp("INNERTUBE_USE_THIRD_PARTY_AUTH",!1)}};
g.bs=function(a,b,c,d){!g.Xp("VISITOR_DATA")&&.01>Math.random()&&g.L(Error("Missing VISITOR_DATA when sending innertube request."),"WARNING");c={headers:{"Content-Type":"application/json"},method:"POST",wb:c,Rz:"JSON",ne:function(){d.ne()},
fz:d.ne,onSuccess:function(k,l){if(d.onSuccess)d.onSuccess(l)},
qR:function(k){if(d.onSuccess)d.onSuccess(k)},
onError:function(k,l){if(d.onError)d.onError(l)},
pR:function(k){if(d.onError)d.onError(k)},
timeout:d.timeout,withCredentials:!0};var e="",f=a.g.Lm;f&&(e=f);f=Nea(a.g.tE||!1,e,d);Object.assign(c.headers,f);c.headers.Authorization&&!e&&(c.headers["x-origin"]=window.location.origin);a=g.Lq(""+e+("/youtubei/"+a.g.Rq+"/"+b),{alt:"json",key:a.g.Qq});try{g.Tq("use_fetch_for_op_xhr")?yea(a,c):g.fr(a,c)}catch(k){if("InvalidAccessError"==k)g.L(Error("An extension is blocking network request."),"WARNING");else throw k;}};
Ns=function(a,b,c){c=void 0===c?{}:c;var d=g.Ms;g.Xp("ytLoggingEventsDefaultDisabled",!1)&&g.Ms==g.Ms&&(d=null);g.Es(a,b,d,c)};
Os=function(a){"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==a&&Ns("adsClientStateChange",{adsClientEvent:{eventType:a}})};
Ps=function(a){var b=es(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],a);b&&b.call(a)};
Ss=function(a){var b;Qs()?Rs()==a&&(b=document):b=a;b&&(a=es(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))&&a.call(b)};
Ts=function(a){return g.Xa(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Oea=function(){var a=document;return g.Xa(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
Qs=function(){return!!es(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
Rs=function(){var a=es(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);return a?a:null};
g.Us=function(a){g.A.call(this);this.P=[];this.uc=a||this};
Vs=function(a,b,c,d){for(var e=0;e<c.length;e++)a.K(b,c[e],d)};
g.Ws=function(a){for(;a.P.length;){var b=a.P.pop();b.target.removeEventListener(b.name,b.Vl)}};
g.N=function(a){a=void 0===a?!1:a;g.A.call(this);this.Nb=new g.Yo(a);g.B(this,this.Nb)};
Xs=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
Ys=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.$s=function(a,b,c,d){g.N.call(this);this.l=!!b;this.A=a;this.F=c||a;this.D=!!d;this.g=new g.Us(this);g.B(this,this.g);this.u=this.B=null;this.o=this.i=!1;b&&(g.Nd&&a.setAttribute("draggable","true"),a.style.touchAction="none");Zs(this)};
at=function(a,b,c){a.g.K(a.F,b,c,void 0,!a.l)};
Zs=function(a){a.u=null;a.B=null;at(a,bt("over"),a.Ex);at(a,"touchstart",a.yr);a.l&&at(a,bt("down"),a.VH)};
ct=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.B)return d}return null};
bt=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
dt=function(a){a=a||{};var b={enablejsapi:1},c={};this.url=a.url||"";this.args=a.args||g.bc(b);this.assets=a.assets||{};this.attrs=a.attrs||g.bc(c);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||{}};
Pea=function(a){a instanceof dt||(a=new dt(a));return a};
gt=function(a,b){var c=c||{};c.name=g.Xp("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.Xp("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);var d=a,e=void 0===b?"ERROR":b;e=void 0===e?"ERROR":e;var f=window&&window.yterr||!1;if(d&&f&&!(5<=et)){if(g.Tq("console_log_js_exceptions")){f=d;var k=[];k.push("Name: "+f.name);k.push("Message: "+f.message);f.hasOwnProperty("params")&&k.push("Error Params: "+JSON.stringify(f.params));k.push("File name: "+f.fileName);k.push("Stacktrace: "+f.stack);window.console.log(k.join("\n"),
f)}f=d.stacktrace;k=d.columnNumber;if(d.hasOwnProperty("params")){var l=String(JSON.stringify(d.params));c.params=l.substr(0,500)}d=Xaa(d);f=f||d.stack;l=d.lineNumber.toString();isNaN(l)||isNaN(k)||(l=l+":"+k);window.yterr&&g.Ma(window.yterr)&&window.yterr(d);if(!(ft[d.message]||0<=f.indexOf("/YouTubeCenter.js")||0<=f.indexOf("/mytube.js"))){e={ud:{a:"logerror",t:"jserror",type:d.name,msg:d.message.substr(0,250),line:l,level:e,"client.name":c.name},wb:{url:g.Xp("PAGE_NAME",window.location.href),file:d.fileName},
method:"POST"};c.version&&(e["client.version"]=c.version);f&&(e.wb.stack=f);for(var m in c)e.wb["client."+m]=c[m];if(c=g.Xp("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(var n in c)e.wb[n]=c[n];g.br(g.Xp("ECATCHER_REPORT_HOST","")+"/error_204",e);ft[d.message]=!0;et++}}};
Gp=function(){};
ht=function(a){this.wd=a};
g.it=function(a){return new ht({trackingParams:a})};
Rea=function(a){var b=Qea++;return new ht({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
g.jt=function(a){var b={};void 0!==a.wd.trackingParams?b.trackingParams=a.wd.trackingParams:(b.veType=a.wd.veType,null!=a.wd.veCounter&&(b.veCounter=a.wd.veCounter),null!=a.wd.elementIndex&&(b.elementIndex=a.wd.elementIndex));void 0!==a.wd.dataElement&&(b.dataElement=g.jt(a.wd.dataElement));void 0!==a.wd.youtubeData&&(b.youtubeData=a.wd.youtubeData);return b};
g.lt=function(a,b,c,d){b={csn:a,parentVe:g.jt(b),childVes:(0,g.ge)(c,function(f){return g.jt(f)})};
c=g.q(c);for(var e=c.next();!e.done;e=c.next())e=g.jt(e.value),(g.Xb(e)||!e.trackingParams&&!e.veType)&&gt(Error("Child VE logged with no data"),"WARNING");d={uj:d,xh:a};"UNDEFINED_CSN"==a?g.kt("visualElementAttached",b,d):g.Es("visualElementAttached",b,g.Ms,d)};
g.mt=function(a,b){var c={csn:a,ve:g.jt(b),eventType:1},d={uj:void 0,xh:a};"UNDEFINED_CSN"==a?g.kt("visualElementShown",c,d):g.Es("visualElementShown",c,g.Ms,d)};
g.nt=function(a,b){var c={csn:a,ve:g.jt(b),gestureType:"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"},d={uj:void 0,xh:a};"UNDEFINED_CSN"==a?g.kt("visualElementGestured",c,d):g.Es("visualElementGestured",c,g.Ms,d)};
g.kt=function(a,b,c){a={sR:a,payload:b,options:c};(b=g.Xp("INTERACTIONS_LOGGER_QUEUE",void 0))?b.push(a):Wp("INTERACTIONS_LOGGER_QUEUE",[a])};
pt=function(a,b){var c=Object.keys(a).join("");ot("info_"+c+"_"+b)||(a.clientActionNonce=b,Ns("latencyActionInfo",a))};
ot=function(a){qt[a]=qt[a]||{count:0};var b=qt[a];b.count++;b.time=g.M();rt||(rt=wq(Sea,0,5E3));if(5<b.count){if(6==b.count&&1>1E5*Math.random()){b=0==a.indexOf("info")?"WARNING":"ERROR";var c=Error("CSI data exceeded logging limit with key");c.params=a;gt(c,b)}return!0}return!1};
Sea=function(){var a=g.M(),b;for(b in qt)6E4<a-qt[b].time&&delete qt[b];rt=0};
ut=function(){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new 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++){c=(0,g.D)();for(var d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(tt)for(b=1,c=0;c<tt.length;c++)a[b%16]=a[b%16]^a[(b-1)%16]/4^tt.charCodeAt(c),b++;return a};
vt=function(){for(var a=ut(),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.wt=function(){return(0,g.ge)(ut(),function(a){return(a&15).toString(16)}).join("")};
xt=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
zt=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
At=function(a){return g.Xp(zt(void 0===a?0:a),void 0)};
g.Bt=function(){var a=At(0),b;a?b=new ht({veType:a,youtubeData:void 0}):b=null;return b};
g.Ct=function(a){a=void 0===a?0:a;var b=g.Xp(xt(a));b||0!=a||(g.Tq("kevlar_client_side_screens")?b="UNDEFINED_CSN":b=g.Xp("EVENT_ID"));return b?b:null};
Et=function(a,b,c){c=void 0===c?0:c;if(a!==g.Xp(xt(c))||b!==g.Xp(zt(c)))Wp(xt(c),a),Wp(zt(c),b),0==c&&(b=function(){setTimeout(function(){a&&g.Es("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Dt,clientScreenNonce:a},g.Ms)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b())};
g.Ht=function(a,b,c){var d=c&&0<c?c:0;c=d?(0,g.D)()+1E3*d:0;if((d=d?(0,g.Ft)():(0,g.Gt)())&&window.JSON){g.Da(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.It=function(a){var b=(0,g.Gt)(),c=(0,g.Ft)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if(!g.Da(d))try{d=c.get(a)}catch(e){}if(!g.Da(d))return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
g.Jt=function(){return g.It("yt-remote-session-screen-id")};
Tea=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!Kt(a)||c.some(function(e){return!Kt(e)}))throw Error("Only objects may be merged.");
c=g.q(c);for(d=c.next();!d.done;d=c.next())Lt(a,d.value)};
Lt=function(a,b){for(var c in b)if(Kt(b[c])){if(c in a&&!Kt(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Lt(a[c],b[c])}else if(Mt(b[c])){if(c in a&&!Mt(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Nt(a[c],b[c])}else a[c]=b[c];return a};
Nt=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,Kt(d)?a.push(Lt({},d)):Mt(d)?a.push(Nt([],d)):a.push(d);return a};
Kt=function(a){return"object"===typeof a&&!Array.isArray(a)};
Mt=function(a){return"object"===typeof a&&Array.isArray(a)};
Uea=function(){Ot=g.M()};
Qt=function(a){var b=g.Xp("BG_I",null),c=g.Xp("BG_IU",null),d=g.Xp("BG_P",null);d&&(Pt.Td?0:!Ot||72E5<g.M()-Ot)&&(b||c)&&Pt.initialize(b,c,d,Uea,a)};
Rt=function(a){a=void 0===a?{}:a;a=void 0===a?{}:a;return Pt.g?Pt.g.invoke(void 0,void 0,a):null};
St=function(a,b,c,d,e,f,k,l){this.duration=c;this.endTime=b+c;this.ingestionTime=d;this.zb=a;this.sourceURL=e;this.startTime=b;this.i=k||0;this.range=f||null;this.g=l||!1};
g.Tt=function(){this.segments=[]};
Ut=function(a,b){if(b>a.sb())a.segments=[];else{var c=g.Wa(a.segments,function(d){return d.zb>=b},a);
0<c&&a.segments.splice(0,c)}};
Vt=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.g=e?0:8;this.dataOffset=this.offset+this.g;this.i=e};
Wt=function(a){var b=a.data.getUint8(a.offset+a.g);a.g+=1;return b};
Xt=function(a){var b=a.data.getUint16(a.offset+a.g);a.g+=2;return b};
Yt=function(a){var b=a.data.getInt32(a.offset+a.g);a.g+=4;return b};
Zt=function(a){var b=a.data.getUint32(a.offset+a.g);a.g+=4;return b};
$t=function(a){var b=a.data;var c=a.offset+a.g;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.g+=8;return b};
au=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.g;c<a.size&&a.data.getUint8(a.offset+c)!=b;)++c;var d=new Uint8Array(a.data.buffer,a.offset+a.g,c-a.g);a.g=Math.min(c+1,a.size);return String.fromCharCode.apply(String,d)};
bu=function(a){this.data=new DataView(new ArrayBuffer(a));this.g=0};
cu=function(a,b){a.data.setInt32(a.g,b);a.g+=4};
du=function(a,b){for(var c=0;c+4<=b.size;)cu(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.g++,b.data.getUint8(b.offset+c++))};
eu=function(a,b,c,d,e,f){this.g=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.i=f};
gu=function(a,b,c){this.g=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.o=void 0===c?null:c;this.i=fu(this,"Sequence-Number");this.D=fu(this,"Segment-Count");this.F=this.g["Segment-Durations-Ms"]||"";this.ingestionTime=fu(this,"Ingestion-Walltime-Us")/1E6;this.l=(fu(this,"First-Frame-Time-Us")+fu(this,"First-Frame-Uncertainty-Us"))/1E6;this.B=fu(this,"Target-Duration-Us")/1E6;this.A="T"==this.g["Stream-Finished"];this.u="T"==this.g.Streamable};
fu=function(a,b){return parseInt(a.g[b],10)||0};
Vea=function(a,b){this.g=a;this.duration=b};
hu=function(a,b,c,d,e){this.i=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;this.g=e;e.getUint32(4)};
iu=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};
Xea=function(a,b,c){var d=ju(a,0,1836019558);if(!d)return null;var e=ju(a,d.dataOffset,1835427940),f=ju(a,d.dataOffset,1953653094),k=Wea(a,d.dataOffset);if(!e||!f)return null;var l=ju(a,f.dataOffset,1952868452),m=ju(a,f.dataOffset,1953658222),n=ju(a,f.dataOffset,1952867444);if(!l||!m||!n)return null;var p=ju(a,f.dataOffset,1935763823),r=ju(a,f.dataOffset,1935763834),v=0;if(p){v=Yt(p);var z=Yt(p);if(0!=v||1!=z)return null;v=Yt(p)}z=ju(a,f.dataOffset,1935828848);f=ju(a,f.dataOffset,1936158820);var C=
Yt(l),F=Yt(l),E=C&2,K=C&1?$t(l):0,R=E?Yt(l):0,V=C&8?Yt(l):0,ta=C&16?Yt(l):0,db=C&32?Yt(l):0;C=Yt(m);var ue=C&1,Xe=C&4,ve=C&256;l=C&512;var vl=C&1024,md=C&2048;C=Yt(m);var fH=ue?Yt(m):0,Pn=Xe?Yt(m):0;ue=[];for(var Qr=[],qg=[],Ij=[],Ex=0,nd=0,jh=0;jh<C;jh++){var Fx=ve?Yt(m):V;l&&ue.push(Yt(m));var Ye=db;Xe&&0==jh?Ye=Pn:vl&&(Ye=Yt(m));Qr.push(Ye);Ye=md?Yt(m):0;0==jh&&(Ex=Ye);qg.push(nd+Ye);Ij.push(jh);nd+=Fx}1<=Math.abs(nd-b)&&c({flaw:"segDurMismatch",dts:nd.toFixed(),seg:b.toFixed()});g.qb(Ij,function(Rr,
Qn){return qg[Rr]-qg[Qn]});
c=[];for(nd=0;nd<C;nd++)c[Ij[nd]]=nd;nd=E?4:0;db=16*C;Xe=nj(k,function(Rr,Qn){return Rr+Qn.size},0);
ve=68+nd+n.size+db+(p?p.size:0)+(r?r.size:0)+(z?z.size:0)+(f?f.size:0)+Xe;V=ve-d.size;m=new bu(ve+d.offset);d.offset&&m.jg(a,0,d.offset);cu(m,ve);cu(m,1836019558);du(m,e);cu(m,ve-24-Xe);cu(m,1953653094);cu(m,16+nd);cu(m,1952868452);cu(m,131072|(E?2:0));cu(m,F);E&&cu(m,R);du(m,n);cu(m,20+db);cu(m,1953658222);cu(m,16781057);cu(m,C);cu(m,K+fH+V);for(a=nd=0;a<C;a++)e=c[a],d=Math.round(b*e/C),e=Math.round(b*(e+1)/C)-d,d=d-nd+Ex,cu(m,e),cu(m,l?ue[a]:ta),cu(m,Qr[a]),cu(m,d),nd+=e;p&&(cu(m,p.size),cu(m,1935763823),
cu(m,0),cu(m,1),cu(m,v+V));r&&du(m,r);z&&du(m,z);f&&du(m,f);b=g.q(k);for(k=b.next();!k.done;k=b.next())du(m,k.value);return m.data.buffer};
ku=function(a,b){var c=ju(a.data,a.dataOffset,1952868452),d=ju(a.data,a.dataOffset,1953658222),e=Yt(c);Yt(c);e&2&&Yt(c);c=e&8?Yt(c):0;var f=Yt(d),k=f&1;e=f&4;var l=f&256,m=f&512,n=f&1024;f&=2048;var p=Zt(d);k&&Yt(d);e&&Yt(d);for(var r=k=0;r<p;r++){var v=l?Yt(d):c;m&&Yt(d);e&&0==r||!n||Yt(d);f&&Yt(d);k+=v}return k/b};
nu=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.lu(a,0,1836476516))?mu(a):NaN};
Yea=function(a){var b=g.lu(a,0,1937011556);if(!b)return null;b=ju(a,b.dataOffset+8,1635148593);if(!b)return null;var c=ju(a,b.dataOffset+78,1936995172),d=ju(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),Wt(c)){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var e=c=null,f=null;if(d=ju(a,d.dataOffset,1886547818)){var k=ju(a,d.dataOffset,1886546020),l=ju(a,d.dataOffset,2037673328);if(!l&&(l=ju(a,d.dataOffset,1836279920),!l))return null;k&&(k.skip(4),c=
Yt(k)/65536,f=Yt(k)/65536,e=Yt(k)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new hu(b,c,f,e,a)}return null};
ju=function(a,b,c){for(;ou(a,b);){var d=pu(a,b);if(d.type==c)return d;b+=d.size}return null};
g.lu=function(a,b,c){for(;ou(a,b);){var d=pu(a,b);if(d.type==c)return d;b=qu(d.type)?b+8:b+d.size}return null};
ru=function(a,b){if(a.data.getUint8(a.dataOffset)){var c=a.data,d=a.dataOffset+4;c.setUint32(d,Math.floor(b/4294967296));c.setUint32(d+4,b&4294967295)}else a.data.setUint32(a.dataOffset+4,b)};
tu=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;return 4294967296*b.getUint32(a)+b.getUint32(a+4)}return a.data.getUint32(a.dataOffset+4)};
pu=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new Vt(a,b,c,d)};
mu=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
uu=function(a){a=new Vt(a.data,a.offset,a.size,a.type,a.i);var b=Wt(a);a.skip(7);var c=Zt(a);if(0==b){b=Zt(a);var d=Zt(a)}else b=$t(a),d=$t(a);a.skip(2);for(var e=Xt(a),f=[],k=[],l=0;l<e;l++){var m=Zt(a);f.push(m);k.push(Zt(a));a.skip(4)}return{xt:c,bD:b,Wv:d,Ls:f,fl:k}};
vu=function(a){return a.data.getUint32(a.dataOffset+8)};
ou=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;c=a.getUint32(b+4);if(1635148593==c||1635148611==c||1937126244==c||1936995172==c)return!0;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(97>d||122<d)return!1}return!0};
qu=function(a){return 1701082227==a||1836019558==a||1836019574==a||1835297121==a||1835626086==a||1937007212==a||1953653094==a||1953653099==a||1836475768==a};
wu=function(a){return(a=ju(a,0,1836019558))?a.offset+a.size:null};
xu=function(a,b){for(var c=ju(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=ju(a,c.offset+c.size,b)}};
yu=function(a){for(var b=g.lu(a,0,1701082227);b;){var c=b;c.type=1936419184;c.data.setUint32(c.offset+4,1936419184);b=g.lu(a,b.offset+b.size,1701082227)}};
Wea=function(a,b){for(var c=[];ou(a,b);){var d=pu(a,b);1886614376==d.type&&c.push(d);b+=d.size}return c};
zu=function(a,b){for(var c=0,d=[];ou(a,c);){var e=pu(a,c);e.type==b&&d.push(e);c=qu(e.type)?c+8:c+e.size}return d};
Zea=function(a,b){var c=g.lu(a,0,1937011556),d=g.lu(a,0,1953654136);if(!c||!d||2<=a.getUint32(c.offset+12))return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.lu(e,0,1937011556);if(!f)return null;d=e.getUint32(f.dataOffset+8);var k=e.getUint32(f.dataOffset+12);if(1701733217!=k&&1701733238!=k)return null;k=new bu(a.byteLength+d);k.jg(a,0,c.offset+12);cu(k,2);k.jg(a,c.offset+16,c.size-16);k.jg(e,e.byteOffset+f.dataOffset+8,d);k.jg(a,c.offset+c.size,a.byteLength-(c.offset+c.size));c=g.q([1836019574,
1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.lu(a,0,e.value),k.data.setUint32(e.offset,e.size+d);d=g.lu(k.data,0,1953654136);k.data.setUint32(d.offset+16,2);return k.data};
Au=function(a){return String.fromCharCode.apply(null,a)};
Bu=function(a,b){this.i=a;this.g=0;this.l=b||0};
Cu=function(a){return a.g>=a.i.byteLength};
Iu=function(a,b,c){var d=new Bu(c);if(!Du(d,a))return!1;d=Eu(d);if(!Fu(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.l+d.g;var e=Gu(d,!0);d=a+(d.l+d.g-b)+e;d=9<d?Hu(d-9,8):Hu(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
$ea=function(a){var b=new Bu(a);Ju(b);if(Du(b,[408125543,374648427,174,224]))b=Eu(b);else return null;for(var c=a=null;!Cu(b);){var d=Gu(b,!1);if(21432==d)switch(Ku(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320==d?c=Eu(b):Lu(b)}if(!c)return null;for(var e,f=d=b=null;!Cu(c);)switch(Gu(c,!1)){case 30321:if(3!=Ku(c))return null;break;case 30324:b=Mu(c);break;case 30323:f=Mu(c);break;case 30325:d=Mu(c);break;case 30322:e=Gu(c,!0);e=Nu(c,e);e=new DataView(e.buffer,e.byteOffset,
e.byteLength);break;default:Lu(c)}return e?new hu(a,b,f,d,e):null};
Eu=function(a){var b=Gu(a,!0),c=a.i.byteOffset+a.g;c=new DataView(a.i.buffer,c,Math.min(b,a.i.buffer.byteLength-c));c=new Bu(c,a.l+a.g);a.g+=b;return c};
Ku=function(a){for(var b=Gu(a,!0),c=Ou(a),d=1;d<b;d++)c=256*c+Ou(a);return c};
Mu=function(a){var b=Gu(a,!0),c=0;4==b?c=a.i.getFloat32(a.g):8==b&&(c=a.i.getFloat64(a.g));a.g+=b;return c};
Pu=function(a){var b=Gu(a,!0);return Au(Nu(a,b))};
Lu=function(a){var b=Gu(a,!0);a.g+=b};
Ju=function(a){var b=a.g;a.g=0;var c=!1;try{Fu(a,440786851)&&(a.g=0,Fu(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.g=0,c=!1,g.$p(d);else throw d;}a.g=b;return c};
Qu=function(a){var b=a.g,c={vt:1E6,wt:1E9,duration:0,Ss:0,Rk:0};if(!Fu(a,408125543))return a.g=b,null;c.Ss=Gu(a,!0);c.Rk=a.l+a.g;if(Fu(a,357149030))for(var d=Eu(a);!Cu(d);){var e=Gu(d,!1);2807729==e?c.vt=Ku(d):2807730==e?c.wt=Ku(d):17545==e?c.duration=Mu(d):Lu(d)}else return a.g=b,null;a.g=b;return c};
Su=function(a,b,c){var d=a.g,e=[];if(!Fu(a,475249515))return a.g=d,null;for(var f=Eu(a);Fu(f,187);){var k=Eu(f);if(Fu(k,179)){var l=Ku(k);if(Fu(k,183)){k=Eu(k);for(var m=b;Fu(k,241);)m=Ku(k)+b;e.push({Rg:m,hm:l})}}}if(0<e.length&&c==e[0].Rg)for(Ru&&g.$p(Error("opus_oboe")),b=0;b<e.length;b++)e[b].Rg+=1;a.g=d;return e};
Tu=function(a){var b=a.g;a.g=0;var c=1E6;Du(a,[408125543,357149030,2807729])&&(c=Ku(a));a.g=b;return c};
afa=function(a,b){var c=a.g;a.g=0;if(!Uu(a)||!Fu(a,160))return a.g=c,NaN;Gu(a,!0);var d=a.g;if(!Fu(a,161))return a.g=c,NaN;Gu(a,!0);Ou(a);var e=Ou(a)<<8|Ou(a);a.g=d;if(!Fu(a,155))return a.g=c,NaN;d=Ku(a);a.g=c;return(e+d)*b/1E9};
Uu=function(a){if(!Vu(a)||!Fu(a,524531317))return!1;Gu(a,!0);return!0};
Vu=function(a){if(Ju(a)){if(!Fu(a,408125543))return!1;Gu(a,!0)}return!0};
Du=function(a,b){for(var c=0;c<b.length;c++){if(!Fu(a,b[c]))return!1;c!=b.length-1&&Gu(a,!0)}return!0};
Fu=function(a,b,c){c=void 0===c?!1:c;if(Cu(a))return!1;for(var d=a.g;Gu(a,!1)!=b;)if(Lu(a),d=a.g,Cu(a))return!1;c&&(a.g=d);return!0};
Gu=function(a,b){var c=Ou(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+Ou(a);return c}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+Ou(a),d*=128;return b?c-d:c};
Hu=function(a,b){b||(b=Math.ceil(Math.log(a+2)/Math.log(2)/7));for(var c=1<<8-b,d=[];d.length<b-1;)d.unshift(a%256),a=Math.floor(a/256);d.unshift(a|c);return d};
Ou=function(a){return a.i.getUint8(a.g++)};
Nu=function(a,b){var c=new Uint8Array(a.i.buffer,a.i.byteOffset+a.g,b);a.g+=b;return c};
Wu=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
Xu=function(a){a=a.split("-");return 2==a.length&&(a=new Wu(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null};
Yu=function(a,b){return new Wu(a,a+b-1)};
$u=function(a,b,c,d,e,f,k,l,m,n,p){this.g=b;this.range=c;this.type=a;this.B="";this.i=-1;this.B=d;this.i=0<=e?e:-1;this.startTime=f||0;this.duration=k||0;this.l=l||0;this.La=0<=m?m:this.range?this.range.length:NaN;this.u=!!n;a=this.range?this.l+this.La==this.range.length:void 0===p?!!this.La:p;this.o=a;this.range?(this.A=this.startTime+this.duration*this.l/this.range.length,this.F=this.duration*this.La/this.range.length,this.D=this.A+this.F):Zu(this);this.H=[]};
Zu=function(a){a.A=a.startTime;a.F=a.duration;a.D=a.A+a.F};
bfa=function(a,b,c){var d=!(!b||b.g!=a.g||b.type!=a.type||b.i!=a.i);return c?d&&!!b&&(a.range&&b.range?b.range.end==a.range.end:b.range==a.range)&&b.l+b.La==a.l+a.La:d};
av=function(a){return 1==a.type||2==a.type};
bv=function(a,b,c){return c||a.g==b.g?a.range&&b.range?a.range.start+a.l+a.La==b.range.start+b.l:a.i==b.i?a.l+a.La==b.l:a.i+1==b.i&&0==b.l&&a.o:!1};
cv=function(a,b){return bv(a,b)||1E-6>=Math.abs(a.D-b.A)||a.i+1==b.i&&0==b.l&&a.o?!0:!1};
dv=function(a){return a.i+(a.o?1:0)};
cfa=function(a){1==a.length||(0,g.mj)(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new Wu(a[0].range.start+a[0].l,b.range.start+b.l+b.La-1)};
fv=function(a){var b="";g.Kb(ev(a),function(c,d){b+=d+"="+c+","});
return b.slice(0,-1)};
ev=function(a){var b={};b.itag=gv(a.g.info);b.type=a.type;b.seg=String(a.i);a.range&&(b.range=""+(a.range.start+a.l)+"-"+(a.range.start+a.l+a.La-1));b.time=""+a.A.toFixed(1)+"-"+(a.A+a.F).toFixed(1);b.off=String(a.l);b.len=String(a.La);a.o&&(b.end="1");a.u&&(b.eos="1");return b};
hv=function(a,b,c,d){return new $u(a.type,a.g,a.range,"reslice_"+a.B,a.i,a.startTime,a.duration,b,c,d&&a.u,d)};
iv=function(a,b){var c=b.i;a.B="updateWithEmsg";a.i=c;b.A&&(a.u=b.A)};
jv=function(a,b){var c=b.zb;a.B="updateWithSegmentInfo";a.i=c;if(a.startTime!=b.startTime||a.duration!=b.duration)a.startTime=b.startTime,a.duration=b.duration,Zu(a)};
kv=function(a,b,c,d){this.info=a;this.g=b;this.range=c;this.l=null;this.i=d};
lv=function(a){return a.range?new DataView(a.g,a.range.start,a.range.length):new DataView(a.g)};
mv=function(a,b){b=(void 0===b?0:b)||a.range.end+1;if(a.g.slice)return new Uint8Array(a.g.slice(a.range.start,b));var c=new Uint8Array(a.g,a.range.start,b);return new Uint8Array(c)};
ov=function(a){if(g.nv(a.info.g.info)){var b=a.info.g.g;for(var c=NaN,d=NaN,e=0,f=new DataView(a.g);ou(f,e);){var k=pu(f,e);1936286840==k.type?d=vu(k):1836476516==k.type?d=mu(k):1952867444==k.type&&isNaN(c)&&(c=tu(k));e=qu(k.type)?e+8:e+k.size}!d&&b&&(d=nu(b));b=c/d}else b=new Bu(lv(a)),c=a.i?b:new Bu(new DataView(a.info.g.g.buffer)),d=Tu(c),c=b.g,b.g=0,Uu(b)?Fu(b,231)?(d=Ku(b)*d/1E9,b.g=c,b=d):(b.g=c,b=NaN):(b.g=c,b=NaN);return b||a.info.A};
pv=function(a){if(g.nv(a.info.g.info)){var b=0;var c=new DataView(a.g);c=zu(c,1936286840);c=g.q(c);for(var d=c.next();!d.done;d=c.next())d=uu(d.value),b+=d.fl[0]/d.xt;b=b||NaN;if(!(0<=b))a:{b=a.info.g.g;c=0;d=new DataView(a.g);for(var e,f=0;ou(d,c);){var k=pu(d,c);if(1836476516==k.type)e=mu(k);else if(1836019558==k.type){!e&&b&&(e=nu(b));if(!e){b=NaN;break a}var l=ju(k.data,k.dataOffset,1953653094);f+=ku(l,e)}c=qu(k.type)?c+8:c+k.size}b=f||NaN}}else e=new Bu(new DataView(a.g)),b=a.i?e:new Bu(new DataView(a.info.g.g.buffer)),
b=afa(e,Tu(b));return b||a.info.F};
qv=function(a){var b;if(g.nv(a.info.g.info)){var c=lv(a);if(b=ju(c,0,1701671783)){b.skip(4);c=au(b,0);au(b,0);Zt(b);Zt(b);Zt(b);Zt(b);var d=au(b);b=b.offset;c=(d=iu(d))?new gu(d,c,b):null}else c=null}else{c=new Bu(lv(a));b=c.g;c.g=0;var e=d=null;if(Du(c,[408125543,307544935,29555,26568]))for(var f=Eu(c);!Cu(f);){var k=Gu(f,!1);17543==k?e=iu(Pu(f)):17827==k?d=Pu(f):Lu(f)}c.g=b;c=e?new gu(e,d):null}a.l=c};
rv=function(a){var b=a.info.g.info;a=lv(a);g.nv(b)?xu(a,1701671783):2==b.containerType&&Iu([408125543],307544935,a)};
dfa=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Fq(b||"");var c={};(0,g.y)(this.experimentIds,function(d){c[d]=!0});
this.experiments=c;this.g=!!c["9414740"]};
g.O=function(a,b){return"true"==a.flags[b]};
g.P=function(a,b){return parseFloat(a.flags[b])||0};
tv=function(a,b){var c=a.flags[b];return c?c.toString():""};
g.uv=function(){this.Tt=this.Rt=!1;this.kB=2;this.u=20971520;this.B=8388608;this.o=120;this.ma=3145728;this.T=62914560;this.na=10485760;this.xB=this.xa=0;this.F=NaN;this.Hh=0;this.hj=this.Du=2;this.Ya=3;this.ij=!1;this.eu=2;this.Ra=25;this.Y=2097152;this.du=1048576;this.Z=!1;this.H=1800;this.hd=5;this.Qc=10;this.P=15;this.Xb=1;this.i=1.15;this.l=1.05;this.AB=8;this.KB=!0;this.ab=!1;this.ju=!0;this.D=!1;this.fu=.8;this.Qa=!1;this.au=!0;this.R=this.Pl=!1;this.vA=25;this.XC=this.cu=!1;this.wa=6;this.Nn=
this.oa=!1;this.Gh=.5;this.fj=this.Lb=!1;this.kd=0;this.Bl=this.aa=!1;this.Ad=0;this.Oc=!1;this.Bu=2;this.Ia=5E3;this.ga=this.X=!1;this.I=.5;this.Sb=2;this.Rb=this.xu=0;this.yu=1.5;this.zu=this.mf=.5;this.Mb=this.iA=!1;this.uc=15;this.kA=1;this.iu=this.Pt=this.Ca=this.Fl=!1;this.WA=0;this.mu=this.Cl=this.Zt=this.Rm=this.lf=this.ou=this.Yt=this.Wt=this.Qt=!1;this.om=1;this.sm=0;this.Il=this.M=this.g=!1;this.hf=0;this.kf=this.Hl=this.zd=this.El=this.ku=this.tb=this.uh=this.Dl=this.Cu=this.Gl=this.ya=
this.Ry=this.ej=this.Eu=this.jf=this.Ea=this.vu=this.ld=this.jb=this.zl=!1;this.A="";this.yC=1048576;this.Km=this.BB=this.Wb=!1;this.jd=46800;this.gu=this.gj=this.DB=this.Al=this.Yb=this.Sm=this.ea=this.Wf=!1};
efa=function(a,b){1080<b.ua().Tb&&!a.Rt&&(a.u=36700160,a.B=5242880,a.ma=10485760,a.Y=4194304,a.Rt=!0);2160<b.ua().Tb&&!a.Tt&&(a.u=104857600,a.F=13107200,a.Tt=!0);a.du=Math.max(65536,Math.min(a.Y,5*b.g))};
ffa=function(a){a.B=Math.floor(.8*a.B);a.na=Math.floor(.8*a.na);a.o=Math.floor(.8*a.o)};
gfa=function(a){a.u=Math.floor(.8*a.u);a.T=Math.floor(.8*a.T);a.o=Math.floor(.8*a.o)};
hfa=function(){this.l=this.g=this.i=this.started=this.o=0};
vv=function(a,b){a[b]||(a[b]=new hfa);return a[b]};
wv=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.$p(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
xv=function(a){return(a=ifa.exec(a))?a[0]:""};
yv=function(a){var b=void 0===b?!1:b;return wv(jfa.test(a),a,b,"Nielsen OCR URL")};
zv=function(a){var b=void 0===b?!1:b;return wv(kfa.test(a),a,b,"Active View 3rd Party Integration URL")};
Av=function(a){var b=void 0===b?!1:b;return wv(lfa.test(a),a,b,"Google/YouTube Brand Lift URL")};
Bv=function(a){var b=void 0===b?!1:b;return wv(mfa.test(a),a,b,"Trusted Stream URL")};
g.Cv=function(a){var b=void 0===b?!1:b;return wv(nfa.test(a),a,b,"Trusted Image URL")};
g.Dv=function(a){var b=void 0===b?!1:b;return wv(ofa.test(a),a,b,"Trusted Promoted Video Domain URL")};
Ev=function(a,b){b=void 0===b?!1:b;return wv(pfa.test(a),a,b,"Captions URL")};
Fv=function(a){a=new g.kn(a);g.ln(a,document.location.protocol);g.mn(a,document.location.hostname);document.location.port&&g.nn(a,document.location.port);return a.toString()};
Gv=function(a){a=new g.kn(a);g.ln(a,document.location.protocol);return a.toString()};
Iv=function(a){a=a.split("");Hv.pZ(a,70);Hv.GE(a,2);Hv.pZ(a,47);Hv.GE(a,2);Hv.pZ(a,31);Hv.GE(a,1);return a.join("")};
Jv=function(a){this.o=a;this.A=this.i=this.u="";this.g={};this.l=""};
Kv=function(a){a.l||(a.l=qfa(a));return a.l};
Mv=function(a){Lv(a);return a.A};
Nv=function(a){Lv(a);return"local"==a.u};
Ov=function(a){Lv(a);return Nb(a.g,function(b){return null!==b})};
Pv=function(a){Lv(a);if("/videoplayback"!=a.i){var b=a.clone();b.set("playerfallback","1");return b}var c=Kv(a);b=new g.kn(c);var d=a.get("fvip");a=decodeURIComponent(a.get("mn")||"").split(",");if(d&&a&&1<a.length&&a[1])return c=b.g.replace(/^[^.]*/,""),g.mn(b,"r"+d+"---"+a[1]+c),b=new Jv(b.toString()),b.set("fallback_count","1"),b;d=b.g.match("\\.a1\\.googlevideo\\.com$");b.g.match("\\.googlevideo\\.com$")?(g.mn(b,"redirector.googlevideo.com"),c=b.toString()):b.g.match("r[1-9].*\\.c\\.youtube\\.com$")?
(g.mn(b,"www.youtube.com"),c=b.toString()):c=Fv(c);b=new Jv(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
Lv=function(a){if(a.o){if(!Bv(a.o)&&!a.o.startsWith("local"))throw Error("Untrusted URL: "+a.o);var b=g.tn(a.o);a.u=b.o;a.A=b.g+(null!=b.u?":"+b.u:"");var c=b.i;if(0==c.indexOf("/videoplayback"))a.i="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.i=c.substr(0,e),c=c.substr(e+1)):(a.i=c,c="")}else a.i=c,c="";d=a.g;a.g=Qv(c);g.Ra(a.g,Rv(b.l.toString()));g.Ra(a.g,d);"index.m3u8"==a.g.file&&(delete a.g.file,a.i+="/file/index.m3u8");
a.o="";a.l=""}};
qfa=function(a){Lv(a);var b=a.u+(a.u?"://":"//")+a.A+a.i;if(Ov(a)){var c=[];g.Kb(a.g,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
Qv=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Sv(c,a[b],a[b+1]);return c};
Rv=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Sv(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
Sv=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};
Tv=function(a){this.g=a;this.i={};this.l=""};
rfa=function(a,b){var c=b.indexOf("?");if(0<c){var d=Rv(b.substr(c+1));g.Kb(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}c=Qv(b);g.Kb(c,function(e,f){this.set(f,e)},a)};
g.Uv=function(a){a.l||(a.l=sfa(a));return a.l};
sfa=function(a){var b=Kv(a.g),c=[];g.Kb(a.i,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=Ov(a.g)?"&":"?";return b+a+d};
Vv=function(a,b){var c=new Jv(b),d=c.get("req_id");d&&a.set("req_id",d);g.Kb(a.i,function(e,f){c.set(f,null)});
return c};
tfa=function(a){this.o=a.clone();this.i=a;this.l=null;this.u=this.g=0};
Xv=function(a,b,c){var d=vv(c,Mv(a.i));if(d.i>=b.Bu||1<=d.g)if(a=Wv(a),c=vv(c,Mv(a)),c.i+c.g<=d.i+d.g)return!0;return!1};
Wv=function(a){a.l||(a.l=Pv(a.o));return a.l};
Yv=function(a){return 1<a.g?a.u+1E3*Math.pow(1.6,a.g-1)<g.M():!0};
g.Zv=function(a,b,c){b.g===a.i&&(a.i=Vv(b,c));b.g===a.l&&(a.l=Vv(b,c))};
$v=function(a,b){this.i=a[0].g.o;this.o=b||"";this.g=a;this.range=this.g[0].range&&0<this.g[0].La?cfa(this.g):null;this.u=this.l=NaN;this.A=this.requestId=null};
aw=function(a){return!av(a.g[a.g.length-1])};
bw=function(a){return av(a.g[0])};
cw=function(a){return 4==a.g[a.g.length-1].type};
g.dw=function(a,b,c,d){/http[s]?:\/\//.test(a.o)?b=new Tv(new Jv(a.o)):(b=null===a.A?Xv(a.i,b,c):a.A,c=a.i,b=b?Wv(c):c.i,b=new Tv(b),a.o&&rfa(b,a.o));(d=d||a.range)&&b.set("range",d.toString());a.requestId&&b.set("req_id",a.requestId);isNaN(a.l)||b.set("headm",a.l.toString());isNaN(a.u)||b.set("mffa",a.u+"ms");return b};
ew=function(a){if(a.range)return a.range.length;a=a.g[0];return Math.round(a.F*a.g.info.g)};
ufa=function(a,b,c){return a.range?new Wu(a.range.start+b,a.range.end):Yu(b,c)};
fw=function(a,b,c){this.sampleRate=a||0;this.g=b||0;this.spatialAudioType=c||0};
vfa=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
gw=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
jw=function(a,b,c,d,e,f,k,l,m,n){this.width=a;this.height=b;this.quality=f||hw(a,b);this.Tb=g.iw[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&0!=d&&1!=d?0:e;this.projectionType=d?2==d&&2==e?3:d:0;(a=k)||(a=g.iw[this.quality],0==a?a="\uc790\ub3d9":(b=this.fps,c=this.projectionType,a=a+(2==c||3==c||4==c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));this.qualityLabel=a;this.g=l||"";this.primaries=m||"";this.streamType=n||0;this.isAccelerated=!1};
kw=function(a){return 1280<=a.width||720<=a.height};
lw=function(a){return"smpte2084"==a.g||"arib-std-b67"==a.g};
hw=function(a,b){for(var c=Math.max(a,b),d=Math.min(a,b),e=mw[0],f=0;f<mw.length;f++){var k=mw[f],l=g.iw[k];if(c>=1.3*Math.floor(16*l/9)||d>=1.3*l)return e;e=k}return"tiny"};
ow=function(a,b,c,d,e,f,k,l,m){this.id=a;this.containerType=nw(b);this.mimeType=b;this.g=k||0;this.u=l||0;this.audio=void 0===c?null:c;this.video=void 0===d?null:d;this.kb=void 0===e?null:e;this.captionTrack=void 0===m?null:m;this.l=void 0===f?null:f;this.i=wfa[gv(this)]||"";this.o=null};
gv=function(a){return a.id.split(";",1)[0]};
pw=function(a){return"9"==a.i||"("==a.i||"9h"==a.i||"(h"==a.i};
qw=function(a){return"9h"==a.i||"(h"==a.i};
g.nv=function(a){return 1==a.containerType};
rw=function(a){return"application/x-mpegURL"==a.mimeType};
tw=function(a){return/(opus|vorbis|mp4a|dtse|ac-3|ec-3)/.test(a)};
uw=function(a){return a.includes("vtt")||a.includes("text/mp4")};
nw=function(a){return 0<=a.indexOf("/mp4")?1:0<=a.indexOf("/webm")?2:0<=a.indexOf("/x-flv")?3:0<=a.indexOf("/vtt")?4:0};
vw=function(a,b,c,d,e){var f=new fw;b in g.iw||(b="small");d&&e?(e=parseInt(e,10),d=parseInt(d,10)):(e=g.iw[b],d=Math.round(16*e/9));b=new jw(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new ow(c,a,f,b)};
ww=function(a,b,c){this.info=b;this.initRange=c||null;this.F=this.g=null;this.B=!1;this.u=null;this.I=0;this.o=new tfa(a);this.l=null;this.R=NaN;this.A=null};
xw=function(a,b){a.info&&a.info.video&&4==a.info.video.projectionType&&!a.l&&(g.nv(a.info)?a.l=Yea(b):2==a.info.containerType&&(a.l=$ea(b)))};
yw=function(a,b,c,d,e,f){f=void 0===f?0:f;ww.call(this,a,b,d);this.index=e||new g.Tt;this.D=f;this.M=c;this.H=!0;if(this.i=!c)this.B=!0};
zw=function(){return!("function"!=typeof window.fetch||!window.ReadableStream)};
Aw=function(a){if(a.Hj())return!1;a=a.rd("content-type");return"audio/mp4"==a||"video/mp4"==a};
Bw=function(a){return a.g?a.R&&a.D&&zw()?3:2:a.M?-1:1};
Cw=function(a,b,c,d,e){e=void 0===e?Infinity:e;this.segments=[];this.g=a;this.A=void 0===b?0:b;this.i=void 0===c?!1:c;this.l=-1;this.u=void 0===d?0:d;this.B=e;this.o=null};
Ew=function(a,b,c){b=Dw(a,b);return 0<=b&&(c||!a.segments[b].g)};
Fw=function(a){return a.segments.length?a.segments[a.segments.length-1]:null};
Dw=function(a,b){return g.ob(a.segments,{zb:b},function(c,d){return c.zb-d.zb})};
Gw=function(a,b,c){return new St(b,Math.max(0,c.startTime-(c.zb-b)*a.g),a.g,0,"sq/"+b,void 0,void 0,!0)};
Hw=function(a,b,c,d,e,f,k){d=void 0===d?!1:d;e=void 0===e?14400:e;f=void 0===f?0:f;k=void 0===k?Infinity:k;yw.call(this,a,b,"",void 0,void 0,c);this.index=new Cw(c||0,e,d,f,k)};
xfa=function(a,b,c,d,e){this.zb=a;this.g=b;this.durationSecs=c;this.i=d||NaN;this.l=e||NaN};
Iw=function(a,b,c){for(;a;a=a.parentNode)if(a.attributes&&(!c||a.nodeName==c)){var d=a.getAttribute(b);if(d)return d}return""};
Jw=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};
Kw=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)};
Lw=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
Mw=function(){this.g=[];this.i=null;this.u=0;this.o=[];this.l=!1;this.A=""};
yfa=function(a){var b=a.o;a.o=[];return b};
zfa=function(){this.o=[];this.g=null;this.i={};this.l={}};
Dfa=function(a,b,c){var d=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.q(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.parentNode.parentNode,k=null;"Period"==f.nodeName?k=Afa(a):"AdaptationSet"==f.nodeName?k=Bfa(a,f.attributes.id?f.attributes.id.value:f.attributes.mimetype.value):"Representation"==f.nodeName&&(k=Cfa(a,f.attributes.id.value));if(null==k)return;k.update(e,c);ib(d,yfa(k))}ib(a.o,d);maa(a.o,function(l){return 1E3*l.g+l.i})};
Efa=function(a){a.g&&(a.g.g=[]);g.Kb(a.i,function(b){b.g=[]});
g.Kb(a.l,function(b){b.g=[]})};
Afa=function(a){a.g||(a.g=new Mw);return a.g};
Bfa=function(a,b){a.i[b]||(a.i[b]=new Mw);return a.i[b]};
Cfa=function(a,b){a.l[b]||(a.l[b]=new Mw);return a.l[b]};
Nw=function(a,b,c,d,e){ww.call(this,a,b,d||void 0);this.index=new g.Tt;this.indexRange=e;this.i=c};
Ow=function(a,b,c){var d=a.index.qq(b),e=a.index.Kc(b),f=a.index.getDuration(b),k;c?f=k=0:0<a.info.g&&(k=a.info.g*f);a=new $u(3,a,null,"otfCreateRequestInfoForSegment",b,e,f,0,k,b==a.index.sb()&&0<k);return new $v([a],d)};
Ffa=function(a,b){if(!a.index.Eb()){for(var c=[],d=b.D,e=b.F.split(",").filter(function(r){return 0<r.length}),f=0,k=0,l=0,m=/^(\d+)/,n=/r=(\d+)/,p=0;p<d;p++){if(0>=l)if(l=e.shift(),k=(k=m.exec(l))?+k[1]/1E3:0)l=(l=n.exec(l))?+l[1]:0,l+=1;
else return;c.push(new St(p,f,k,NaN,"sq/"+(p+1)));f+=k;l--}a.index.append(c)}};
g.Pw=function(){this.Da=0;this.g=new Float64Array(128);this.i=new Float64Array(128);this.o=1;this.l=!1};
Qw=function(a){if(a.g.length<a.Da+1){var b=2*a.g.length;b+=2;var c=a.g;a.g=new Float64Array(b+1);var d=a.i;a.i=new Float64Array(b+1);for(b=0;b<a.Da+1;b++)a.g[b]=c[b],a.i[b]=d[b]}};
Rw=function(a,b,c,d,e,f,k){k=void 0===k?{}:k;ww.call(this,a,b,c||void 0);this.indexRange=d;this.D=null;this.index=new g.Pw;this.i=e;this.lastModified=f;this.H=k};
Sw=function(a,b,c,d){for(var e=[];b<=a.index.sb();b++){var f=a.index,k=b;f=Yu(f.wn(k),k+1<f.Da||f.l?f.g[k+1]-f.g[k]:-1);k=a.index.Kc(b);var l=a.index.getDuration(b),m=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+m);e.push(new $u(3,a,f,"getRequestInfoForRange_",b,k,l,m,n,b==a.index.sb()&&m+n==f.length));if(f.start+m+n>=c+d)break}return new $v(e)};
Tw=function(){this.length=1};
Uw=function(){this.buffered=new Tw};
Gfa=function(a,b){return Vw(function(c,d){return g.Cr(c,d,4,1E3)},a,b)};
g.Ww=function(a){var b;a.responseType&&"text"!=a.responseType?"arraybuffer"==a.responseType&&(b=Au(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0==b.indexOf("https://")?b:""};
Vw=function(a,b,c){return a(b,c).then(function(d){var e=g.Ww(d);return e?Vw(a,e,c):d})};
Xw=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.N.call(this);this.T=this.duration=0;this.isLive=this.l=!1;this.B=0;this.ek=this.Te=!1;this.I=g.M();this.D=Infinity;this.g={};this.sourceUrl=a||"";this.A=this.M=0;this.u=null;this.Z=!!b&&g.O(b,"html5_live_nonzero_first_segment_start_time");this.i=!1;this.R=[];this.ga=!!b&&g.O(b,"html5_live_self_init_segments");this.o=null;this.oa=c;this.X=!b||!g.O(b,"html5_manifest_without_credentials");this.F=0;this.P=!!b&&g.O(b,"disable_html5_manifest_namespace_redux");
this.aa="";this.H=NaN;this.Y=b&&g.O(b,"disable_html5_duration_caching")?Infinity:10};
Yw=function(a){return Nb(a.g,function(b){return!!b.info.l})};
Hfa=function(a){return Nb(a.g,function(b){return uw(b.info.mimeType)})};
Ifa=function(a){return g.Ob(a.g,function(b){return b.info.video?b.Wn():!0})};
Zw=function(a){return Nb(a.g,function(b){return Nv(b.o.i)})};
$w=function(a,b){a.g[b.info.id]=b};
Jfa=function(a,b,c,d){c=void 0===c?0:c;var e=new Xw("",d,!1);e.duration=c||0;(0,g.y)(a,function(f){var k=ax(f,b,e.duration),l=Xu(f.init),m=Xu(f.index),n=parseInt(f.clen,10),p=bx(f.url,f.sp,f.s),r=parseInt(f.lmt,10);p&&$w(e,new Rw(p,k,l,m,n,r,f))});
return e};
Kfa=function(a,b,c,d){c=void 0===c?0:c;var e=new Xw("",d,!1);e.duration=c||0;(0,g.y)(a,function(f){var k=ax(f,b,e.duration),l=bx(f.url,f.sp,f.s);if(!g.nv(k)){var m=d&&g.O(d,"html5_manifestless_vp9_otf"),n=d&&g.O(d,"html5_otf_webm_audio_killswitch");if(!m||!k.xe()&&n)return}l&&(k.video&&3==k.video.streamType?$w(e,new Nw(l,k,"sq/0",null,null)):(m=Xu(f.init),f=Xu(f.index),$w(e,new Nw(l,k,"",m,f))))});
e.ek=!0;return e};
Lfa=function(a,b,c,d){var e=new Xw("",d,!0);(0,g.y)(a,function(f){var k=ax(f,c),l=bx(f.url,f.sp,f.s),m=parseInt(f.target_duration_sec,10);f=parseInt(f.max_dvr_duration_sec,10)||14400;var n=parseInt(l.get("mindsq"),10)||parseInt(l.get("min_sq"),10)||0,p=parseInt(l.get("maxdsq"),10)||parseInt(l.get("max_sq"),10)||Infinity;e.B=e.B||n;var r=!uw(k.mimeType);l&&$w(e,new Hw(l,k,m,d&&g.O(d,"html5_manifestless_interpolate")&&r,f,n,p))});
e.l=!b;e.Te=!0;e.i=!0;e.isLive=!b;return e};
ax=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);var k=null;f=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){k=(a.size||"640x360").split("x");k=new jw(+k[0],+k[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries,+a.stream_type);var l=k;null===cx&&(cx=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99"'));
if((cx||dx)&&('video/webm; codecs="vp9"'==d||'video/webm; codecs="vp9.2"'==d)){var m="00",n="08",p="01",r="01",v="01";'video/webm; codecs="vp9.2"'==d&&(m="02",n="10","bt2020"==l.primaries&&(v=p="09"),"smpte2084"==l.g&&(r="16"),"arib-std-b67"==l.g&&(r="18"));d='video/webm; codecs="'+["vp09",m,"51",n,"01",p,r,v].join(".")+'"'}}m=l=null;tw(d)&&(l=new fw(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type),a.name&&(m=new gw(a.name,a.audio_track_id,"1"==a.isDefault)));a.caption_display_name&&
a.caption_vss_id&&a.caption_language_code&&(f=new vfa(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));n=parseInt(a.bitrate,10)/8;p=parseInt(a.clen,10);c=c&&p?p/c:0;p=null;if(b&&a.drm_families)for(p={},a=g.q(a.drm_families.split(",")),r=a.next();!r.done;r=a.next())r=r.value,p[r]=b[r];return new ow(e,d,l,k,m,p,n,c,f)};
Mfa=function(a){return(0,g.Oj)(a,function(b){return 3==+b.stream_type})?3:0};
ex=function(a,b){return a.u?jb(a.u.o,b):a.R.length?jb(a.R,b):[]};
bx=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new Jv(a);a.set("alr","yes");c&&a.set(b,encodeURIComponent(Iv(decodeURIComponent(c))));return a};
hx=function(a,b){var c=Iw(b,"id");c=c.replace(":",";");var d=Iw(b,"mimeType"),e=Iw(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=parseInt(Iw(b,"bandwidth"),10)/8;var f=parseInt(Jw(b,"BaseURL").getAttribute(fx(a,"contentLength")),10);f=a.duration&&f?f/a.duration:0;var k=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){k=parseInt(Iw(b,"width"),10);var l=parseInt(Iw(b,"height"),10),m=parseInt(Iw(b,"frameRate"),10),n=Nfa(Iw(b,fx(a,"projectionType")));a:switch(Iw(b,fx(a,"stereoLayout"))){case "layout_left_right":var p=
1;break a;case "layout_top_bottom":p=2;break a;default:p=0}Iw(b,"video_level");k=new jw(k,l,m,n,p,void 0,void 0,void 0,void 0)}m=l=null;if(tw(d))if(l=parseInt(Iw(b,"audioSamplingRate"),10),m=parseInt(Iw(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10),n=Ofa(Iw(b,fx(a,"spatialAudioType"))),l=new fw(l,m,n),m=Iw(b,"lang")||"und",n=Jw(b,"Role")){var r=Iw(n,"value")||"";Tb(gx,r)?(n=m+"."+gx[r],p="main"==r,m=Iw(b,fx(a,"langName"))||m+" - "+r,m=new gw(m,n,p)):m=null}else m=null;p=null;
if(n=Jw(b,"ContentProtection"))if(g.kr())if((p=n.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==p.value)for(p={},n=n.firstChild;null!=n;n=n.nextSibling)"yt:SystemURL"==n.nodeName&&(p[n.attributes.type.value]=n.textContent.trim());else p=null;else if((p=n.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==p.textContent)for(p={},n=n.firstChild;null!=n;n=n.nextSibling)"SystemURL"==n.localName&&"http://youtube.com/yt/2012/10/10"==n.namespaceURI&&(p[n.attributes.type.textContent]=
n.textContent.trim());else p=null;return new ow(c,d,l,k,m,p,e,f)};
Nfa=function(a){switch(a){case "equirectangular":return 2;case "equirectangular_threed_top_bottom":return 3;case "mesh":return 4;case "rectangular":return 1;default:return 0}};
Ofa=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return 1;case "spatial_audio_type_ambisonics_quad":return 2;case "spatial_audio_type_foa_with_non_diegetic":return 3;default:return 0}};
ix=function(a,b){b=void 0===b?"":b;a.A=1;a.I=g.M();return xg(Gfa(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.X}).then((0,g.x)(a.KD,a)),(0,g.x)(a.MD,a))};
Pfa=function(a,b,c){return ix(new Xw(a,b,c),a)};
Qfa=function(a,b,c){var d=a.getAttribute("media"),e=null;c||(a=a.getAttribute("mediaRange"),null!=a&&(0<=parseInt(a.split("-")[1],10)?e=Xu(a):d=d+"?range="+a));return new St(b.zb,b.g,b.durationSecs,b.i,d,e,b.l)};
jx=function(a){return a.isLive&&g.M()-a.I>=a.D};
kx=function(a){var b=a.D;isFinite(b)&&(jx(a)?a.Nx():(b=Math.max(0,a.I+b-g.M()),a.o||(a.o=new g.J(a.Nx,b,a),g.B(a,a.o)),a.o.start(b)))};
Rfa=function(a){a=a.g;for(var b in a){var c=a[b].index;if(c.Eb())return c.sb()+1}return 0};
lx=function(a){if(!isNaN(a.H))return a.H;var b=a.g,c;for(c in b){var d=b[c].index;if(d.Eb()){b=0;for(c=d.we();c<=d.sb();c++)b+=d.getDuration(c);b/=d.Uh();b=.5*Math.round(b/.5);d.Uh()>a.Y&&(a.H=b);return b}if(a.isLive&&(d=b[c],d.D))return d.D}return NaN};
mx=function(a,b){for(var c in a.g){var d=a.g[c].index;if(d.Eb()){var e=d.Le(b),f=d.Dr(e);if(f)return f+b-d.Kc(e)}}return NaN};
Sfa=function(a,b){var c=Wb(a.g,function(e){return e.index.Eb()});
if(!c)return NaN;c=c.index;var d=c.Le(b);return c.Kc(d)==b?b:d<c.sb()?c.Kc(d+1):NaN};
Tfa=function(a,b){g.Kb(a.g,function(c){g.Kb(b,function(d,e){var f=c.o;f.i.set(e,d);f.o.set(e,d);f.l&&f.l.set(e,d)})})};
Ufa=function(a,b,c){var d=!1,e;for(e in a.g){var f=uw(a.g[e].info.mimeType)||a.g[e].info.xe();c==f&&(f=a.g[e].index,Ew(f,b.zb)||(f.Mx(b),d=!0))}return d};
nx=function(a,b,c){for(var d in a.g){var e=uw(a.g[d].info.mimeType)||a.g[d].info.xe();if(c==e){e=a.g[d].index;var f=Dw(e,b);0<=f&&e.segments.splice(f,1)}}};
fx=function(a,b){return a.P?"yt:"+b:a.aa+":"+b};
Vfa=function(a){return g.Xa(Object.values(a.g),function(b){return b.info.l&&b.info.video?480<b.info.video.Tb&&"H"==b.info.i:!1})};
ox=function(){var a=g.w("yt.player.utils.videoElement_");a||(a=g.Rd("VIDEO"),g.Ga("yt.player.utils.videoElement_",a,void 0));return a};
px=function(a){var b=ox();return!!(b&&b.canPlayType&&b.canPlayType(a))};
rx=function(a){if(/opus/.test(a)&&(g.qx&&!Tn("38")||g.qx&&hr("crkey")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!nr())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!px(a)};
sx=function(){var a=ox();return!!a.webkitSupportsPresentationMode&&g.Ma(a.webkitSetPresentationMode)};
tx=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
ux=function(){var a=ox();try{var b=a.muted;a.muted=!b;return a.muted!=b}catch(c){}return!1};
vx=function(a,b){this.g=a;this.i=b;this.l=0;Object.defineProperty(this,"timestampOffset",{get:this.xN,set:this.BN});Object.defineProperty(this,"buffered",{get:this.vN})};
Wfa=function(){this.length=0};
wx=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.g=a;this.i=NaN;this.l=0;Object.defineProperty(this,"duration",{get:this.wN,set:this.AN});Object.defineProperty(this,"readyState",{get:this.yN});this.g.addEventListener("webkitsourceclose",(0,g.x)(this.zN,this),!0)};
g.xx=function(a,b,c){this.errorCode=a;this.g=b;this.details=c||{}};
yx=function(a){var b;for(b in a){var c=(""+a[b]).replace(/[:,=]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""};
zx=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
Ax=function(a,b,c){b=void 0===b?",":b;c=void 0===c?0:c;var d=[];if(a)for(c=c&&c<a.length?a.length-c:0;c<a.length;c++)d.push(a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3));return d.join(b)};
Bx=function(a,b){if(!a)return-1;try{for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c}catch(d){}return-1};
Cx=function(a,b){if(!a)return NaN;var c=Bx(a,b);return 0<=c?a.end(c):NaN};
Dx=function(a){return a&&a.length?a.end(a.length-1):NaN};
Gx=function(a,b){var c=Cx(a,b);return 0<=c?c-b:0};
Hx=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;f++)a.end(f)<b||a.start(f)>c||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return zx(d,e)};
Ix=function(a,b){g.N.call(this);var c=this;this.g=a;this.u=b;this.A=this.i=this.o=null;this.l=function(d){return c.N(d.type,c)};
this.supports(3)&&(this.g.addEventListener("updateend",this.l),this.g.addEventListener("error",this.l))};
Jx=function(a,b,c,d){g.N.call(this);var e=this;this.g=a;this.F={error:function(){!e.fa()&&e.isActive()&&e.N("error",e)},
updateend:function(){!e.fa()&&e.isActive()&&e.N("updateend",e)}};
Xs(this.g,this.F);this.i=b;this.D=c;this.u=0;this.o=Infinity;this.A=0;this.B=this.l=d};
Kx=function(a,b){this.g=a;this.i=!!b;this.l=!1};
Lx=function(a,b){b=void 0===b?!1:b;g.A.call(this);this.u=new g.Us(this);g.B(this,this.u);this.i=this.g=null;this.l=a;var c=this.l;c=c.sG?c.g.webkitMediaSourceURL:window.URL.createObjectURL(c);this.kk=new Kx(c,!0);this.A=b;this.o=null;Vs(this.u,this.l,["sourceopen","webkitsourceopen"],this.AL);Vs(this.u,this.l,["sourceclose","webkitsourceclose"],this.zL)};
Xfa=function(a,b){Mx(a)?g.dg(function(){return b(a)}):a.o=b};
Nx=function(a,b){try{a.l.duration=b}catch(c){}};
Mx=function(a){try{return"open"==a.l.readyState}catch(b){return!1}};
Ox=function(a){try{return"closed"==a.l.readyState}catch(b){return!0}};
Px=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
Qx=function(a){return a.g?!!a.g.supports(0):Px()};
Rx=function(a,b,c,d){if(!a.g||!a.i)return null;var e=a.g.isView()?a.g.g:a.g,f=a.i.isView()?a.i.g:a.i,k=new Lx(a.l,!0);k.kk=a.kk;e=new Jx(e,b,c,d);b=new Jx(f,b,c,d);k.g=e;k.i=b;g.B(k,e);g.B(k,b);Mx(a)||a.g.ro(a.g.Ib());return k};
Sx=function(a,b,c){this.g=a;this.B=b;this.D=void 0===c?!1:c;this.o=!!g.w("cast.receiver.platform.canDisplayType");a=g.w("cast.receiver.platform.getValue");this.i=!this.o&&a&&a("max-video-resolution-vpx")||null;this.l={};this.A=!1;this.u=!0};
Yfa=function(a,b){var c=gv(b);if("0"===c)return!0;var d=b.mimeType;if("1"==b.i&&a.A||b.video&&(lw(b.video)||"bt2020"==b.video.primaries)&&!(24<window.screen.pixelDepth||Tx(a,Ux))||"338"===c&&!(g.qx?Tn(53):g.Vx&&Tn(64)&&g.O(a.g,"html5_firefox_ambisonic_opus")))return!1;var e={};b.video&&(b.video.width&&(e[Wx.name]=b.video.width),b.video.height&&(e[Xx.name]=b.video.height),b.video.fps&&(e[Yx.name]=b.video.fps),b.video.g&&(e[Ux.name]=b.video.g),b.g&&(e[Zx.name]=8*b.g),"("==b.i&&(e[$x.name]="subsample"),
2==b.video.projectionType||3==b.video.projectionType||4==b.video.projectionType)&&(e[ay.name]="true");b.audio&&b.audio.g&&(e[by.name]=b.audio.g);for(var f in cy){var k=cy[f],l;if(l=e[k.name])(l=k==Ux&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=g.O(a.g,"html5_ignore_h264_framerate_cap")&&k==Yx&&("H"==l.i||"h"==l.i)),l=!(l||k==ay&&!g.O(a.g,"html5_decode_to_texture_cap"));if(l)if(Tx(a,k))if(a.i){if(a.i[k.name]<e[k.name])return!1}else d=d+"; "+k.name+"="+e[k.name];else if(qw(b)&&k==Ux)return!1}!g.O(a.g,
"disable_html5_cast_hdcp_filter2")&&a.o&&b.video&&1080<b.video.Tb&&b.l&&(d+="; hdcp=2.2");return"227"===c&&!g.O(a.g,"html5_enable_1080p_hq_cenc")||("561"===c||"562"===c)&&!g.O(a.g,"html5_enable_4k_hq_enc")?!1:dy(a,d)};
ey=function(){var a=ir()&&!Tn(29),b=hr("google tv")&&hr("chrome")&&!Tn(30),c=lr();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
g.fy=function(a){return!(!a.canPlayType(ox(),"application/x-mpegURL")&&!ey())};
Tx=function(a,b){b.name in a.l||(a.l[b.name]=Zfa(a,b));return a.l[b.name]};
Zfa=function(a,b){if(a.i)return!!a.i[b.name];if(b==Zx&&g.O(a.g,"html5_ignore_bad_bitrates")&&dy(a,'video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!dy(a,'video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b==gy)return dy(a,"video/mp4; codecs="+b.valid)&&!dy(a,"video/mp4; codecs="+b.Qe);if(b.video){var c='video/webm; codecs="vp9"';dy(a,c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"',dy(a,c)||(c='audio/mp4; codecs="mp4a.40.2"');
return dy(a,c+"; "+b.name+"="+b.valid)&&!dy(a,c+"; "+b.name+"="+b.Qe)};
dy=function(a,b){return a.o?window.cast.receiver.platform.canDisplayType(b):rx(b)};
$fa=function(a){return g.hy||vr()&&!a?!1:!0};
iy=function(a){this.xf=a};
jy=function(a,b,c){if(c)return Er();var d={};c=ox();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.Od().mimeType)){var f=e.xf.ua().quality;d[f]&&2!=d[f].Od().containerType||(d[f]=e)}var k=[];d.auto&&k.push(d.auto);(0,g.y)(mw,function(l){(l=d[l])&&k.push(l)});
return k.length?Fr(k):Er()};
ky=function(a,b,c,d){this.i=a||0;this.g=b||0;this.l=c;this.reason=d};
ly=function(a,b){return a.i==b.i&&a.g==b.g&&a.l==b.l&&a.reason==b.reason};
my=function(a,b,c,d){return new ky(g.iw[a]||0,g.iw[b]||0,c,d)};
ny=function(a){var b=g.iw.auto;return a.i==b&&a.g==b};
py=function(a,b){if(b.l&&ny(b))return oy;if(b.l||ny(a))return b;if(a.l||ny(b))return a;var c=a.i&&b.i?Math.max(a.i,b.i):a.i||b.i,d=a.g&&b.g?Math.min(a.g,b.g):a.g||b.g;c=Math.min(c,d);return c==a.i&&d==a.g?a:new ky(c,d,!1,d==a.g?a.reason:b.reason)};
qy=function(a){var b=a.g||a.i;return Wb(aga,function(c){return g.iw[c]==b})||"auto"};
ry=function(a,b){var c=g.iw[b];return a.i<=c&&(!a.g||a.g>=c)};
sy=function(){g.N.call(this);this.Ba={}};
cga=function(){var a=g.It("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.pd(Math.floor(b),0,100),muted:!!a.muted}};
ty=function(a){g.Ht("yt-player-bandwidth",a,2592E3)};
uy=function(){return g.It("yt-player-quality")||"auto"};
vy=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
yy=function(a,b,c){var d=wy();a=vy(a,b);0<+d[a]&&(c=Math.min(+d[a],c));d[a]!=c&&(d[a]=c,g.Ht("yt-player-performance-cap",d,604800))};
wy=function(){return g.It("yt-player-performance-cap")||{}};
zy=function(a){g.Ht("yt-player-watch-later-pending",a)};
Ay=function(){return g.It("yt-player-headers-readable")||!1};
By=function(a){g.Ht("yt-player-playback-on-reload",a)};
dga=function(){this.i=0;this.A=this.bandwidthEstimate=this.u=this.l=this.o=NaN;this.g=""};
ega=function(){this.o=2048;this.g=17;this.l=13E4;this.B=.5;this.i=!1;this.u=0;this.A=!1};
Cy=function(a){this.u=Math.exp(Math.log(.5)/a);this.l=this.o=0};
Ey=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.I=b;this.l=Math.round(a*this.I);this.u=Array(this.l);for(a=0;a<this.l;a++)this.u[a]=Infinity;this.H=Dy(this);this.o=0;this.A=!1;this.D=!0;this.B=c;this.F=d};
Dy=function(a){for(var b=Array(a.l),c=0;c<a.l;c++)b[c]=c;return b};
Fy=function(a,b){if(!a.A&&0==a.o)return 0;a.D&&(g.qb(a.H,function(c,d){return a.u[c]-a.u[d]}),a.D=!1);
return a.u[a.H[Math.round(b*((a.A?a.l:a.o)-1))]]||0};
fga=function(a){this.policy=a;this.F=this.H=0;this.u=-1;this.D=this.l=g.M();this.B=new Ey(4,1,.6,.4);this.o=new Ey(10,1,.5,.4);this.g=a.i?new Cy(a.g):new Ey(a.g,20,.5,.4);this.A=new Ey(5,1,.25);this.i=new Ey(30,1,.5);a=g.It("yt-player-bandwidth")||{};this.g.i(this.policy.B,0<a.byterate?a.byterate:this.policy.l);0<a.delay&&this.B.i(1,Math.min(+a.delay,2));0<a.stall&&this.o.i(1,+a.stall);0<a.init&&(this.D=Math.min(a.init,this.D));this.u=g.M()};
Hy=function(a,b,c){b=Math.max(b,a.policy.o);a.o.i(1,c/b);Gy(a)};
Iy=function(a){a=a.B.g();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
Jy=function(a,b,c){isNaN(c)||(a.F+=c);isNaN(b)||(a.H+=b)};
Ky=function(a){a=a.g.g();return 0<a?a:1};
Ly=function(a){var b=Ky(a);b=1/((a.o.g()||0)+1/b);a=a.A.g();return Math.max(b,0<a?a:1)};
My=function(a){var b={};b.delay=Iy(a);b.stall=a.o.g()||0;b.byterate=Ky(a);b.init=a.D;return b};
Gy=function(a){-1<a.u&&3E4<g.M()-a.u&&(ty(My(a)),a.u=g.M())};
Ny=function(a){return 4E3<=g.M()-a.l};
Q=function(a,b){return void 0==b?a:"1"==b||"True"==b?!0:!1};
Oy=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
Py=function(a,b){return void 0==b?a:Number(b)};
Qy=function(a,b){return void 0==b?a:b.toString()};
Ry=function(a,b){if(b){if("fullwidth"==a)return Infinity;if("fullheight"==a)return 0}if(a){var c=a.match(gga);if(c){var d=parseFloat(c[2]);if(0<d)return parseFloat(c[1])/d}}return NaN};
Ty=function(){this.g=g.Xp("ALT_PREF_COOKIE_NAME","PREF");var a=Fs.get(""+this.g,void 0);if(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(Sy[d]=c.toString())}}};
hga=function(){Ty.getInstance();var a="f"+(Math.floor(140/31)+1);a=void 0!==Sy[a]?Sy[a].toString():null;return!!(((null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null)||0)&65536)};
Uy=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
Vy=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
xz=function(a){g.A.call(this);a=g.bc(a);this.Ya=this.na="";this.jb=Qy("",a.csp_nonce);this.experiments=new dfa(a.fexp,a.fflags);this.xa=a.forced_experiments||null;try{var b=document.location.toString()}catch(f){b=""}this.Lb=b;this.Xb=(b=window.location.ancestorOrigins)?Array.from(b):[];this.loaderUrl=(this.i=Q(!1,a.is_embed))?Qy("",a.loaderUrl):this.Lb;this.vb=iga.test(this.loaderUrl);b=this.loaderUrl;var c=void 0===c?!1:c;this.Il=wv(jga.test(b),b,c,"Trusted Ad Domain URL");this.oa=Q(!1,a.privembed);
this.protocol=0==this.Lb.indexOf("http:")?"http":"https";this.B=xv(a.BASE_YT_URL||"")||xv(this.Lb)||this.protocol+"://www.youtube.com/";c=a.el;b="detailpage";"adunit"==c?b=this.i?"embedded":"detailpage":"embedded"==c||this.vb?b=Oy(b,c,kga):c&&(b="embedded");this.T=b;As();c=null;b=a.ps;var d=g.$a(Wy,b);!b||d&&!this.vb||(c=b);this.playerStyle=c;this.H=(this.Kb=g.$a(Wy,this.playerStyle))&&"play"!=this.playerStyle&&"jamboard"!=this.playerStyle;this.Hl=!this.H;c={};this.deviceParams=(c.c=a.c||"web",c.cver=
a.cver||"html5",c.cplayer="UNIPLAYER",c);this.R=Q(!1,a.disableplaybackui);if(c=!this.R)ox().defaultPlaybackRate?Xy||g.tr||Yy?(c=g.Vx&&Tn("20")||g.qx&&Tn("4")||g.Ch&&Tn("11"))||(c=/WebKit\/([0-9]+)/.exec(g.Ib),c=!!(c&&602<=parseInt(c[1],10))):c=!(g.Ch&&!hr("chrome")||Xy||hr("android")||hr("silk")):c=!1;this.wa=c;this.g=Q("blazer"==this.playerStyle,a.is_html5_mobile_device);this.g?c=!0:(c=parseInt((0,g.D)()/1E3,10),b=Ty.getInstance(),c=S(this,"block_desktop_background_playback_with_mobile_cookie")&&
b&&c>parseInt(b.get("dhmu",c.toString()),10));this.Gl=c;this.ea="3"==this.l||this.g||Q(!1,a.use_media_volume);this.M=ux();this.sm=g.Zy;c=Q(!1,a.is_dni);this.uc=Q(!1,a.opt_out_deprecation);this.u=S(this,"embed_new_info_bar")&&$y(this)&&!this.uc;this.Hh=S(this,"embed_api_deprecation")&&$y(this)&&!c&&!this.uc||Q(!az(this)&&!bz(this)&&!this.Kb,a.showinfo);this.mf=Q(!1,a.playsinline);b=this.g&&cz&&0<dz&&2.3>=dz;d=this.g;d=ez(this)||!b&&Q(d,a.use_native_controls)?"3":"1";this.l="0"!=a.controls?d:"0";this.ld=
this.g;this.color=Oy("red",a.color,lga);this.Pl="3"==this.l||Q(!1,a.modestbranding)&&"red"==this.color;this.ga=!this.i;this.ej=(d=!this.ga&&!bz(this)&&!this.H&&!this.Kb&&!az(this))&&!this.Pl&&"1"==this.l;this.fj=g.fz(this)&&d&&"0"==this.l&&!this.ej;this.Nn=this.om=b;this.gj=gz&&!g.ld(601)?!1:!0;this.Fl=this.i||!1;this.ya=bz(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=Qy("",a.widget_referrer);this.Mb=(!this.vb||Q(!0,a.enablecastapi))&&"1"==this.l&&!this.g&&
(bz(this)||g.fz(this)||g.hz(this))&&!g.iz(this);this.Sm=tx()||sx();this.kd=!this.g&&!hr("nintendo wiiu")&&!hr("nintendo 3ds")||Q(!1,a.autoplayoverride);this.Qc=Q(!1,a.mutedautoplay)&&!1;b=(bz(this)||az(this))&&"blazer"==this.playerStyle;this.Rb=!Q(!0,a.fs);this.X=!this.Rb&&(b||Qs());this.Al=S(this,"uniplayer_block_pip")&&ir()&&Tn(58)&&!ur();this.Ea=S(this,"embed_api_deprecation")&&$y(this)&&!c&&!this.uc||Q(!this.Kb,a.rel);this.Rm=Q(!1,a.co_rel);this.A=g.O(this.experiments,"embeds_use_parent_target_for_anchor_tags")&&
ur&&0<dz&&4.4>=dz?"_top":"_blank";this.Ia=g.hz(this);this.hd="blazer"==this.playerStyle;switch(this.playerStyle){case "blogger":c="bl";break;case "gmail":c="gm";break;case "books":c="gb";break;case "docs":c="gd";break;case "google-live":c="gl";break;case "play":c="gp";break;case "chat":c="hc";break;case "hangouts-meet":c="hm";break;case "photos-edu":case "picasaweb":c="pw";break;default:c="yt"}this.Y=c;this.lc=Qy("",a.authuser);this.Ah=(this.i&&!this.oa||!!this.lc)&&Q(!this.H,this.vb?a.showwatchlater:
void 0);this.tb=Q(!1,a.disablekb);this.Ad=Qy("",a.ecver);this.loop=Q(!1,a.loop);this.pageId=Qy("",a.pageid);this.Km=Q(!0,a.canplaylive);this.Cl=Q(this.Kb,a.ss);(c=a.video_container_override)?(b=c.split("x"),2!=b.length?c=null:(c=parseInt(b[0],10),b=parseInt(b[1],10),c=isNaN(c)||isNaN(b)||0>=c*b?null:new g.vd(c,b))):c=null;this.hj=c;this.mute=Q(!1,a.mute);this.jd=!this.mute&&Q("0"!=this.l,a.store_user_volume);this.Zf="3"==this.l?3:Oy(void 0,a.iv_load_policy,jz);this.dg=Qy("",a.cc_lang_pref);c=Oy(2,
a.cc_load_policy,jz);"3"==this.l&&2==c&&(c=3);this.eg=c;this.Yb=Qy("en_US",a.hl);this.region=Qy("US",a.cr);this.jf=Qy("en",a.host_language);this.zl=!this.oa&&Math.random()<g.P(this.experiments,"web_player_api_logging_fraction");this.F=!this.oa;this.hf=new Set;this.deviceHasDisplay=Q(!0,a.deviceHasDisplay);this.Ff=Py(this.Ff,a.ismb);c=a;tv(this.experiments,"html5_qoe_intercept")?c=tv(this.experiments,"html5_qoe_intercept"):this.Hl?(c=c.vss_host||"s.youtube.com",S(this,"www_for_videostats")&&"s.youtube.com"==
c&&(c=kz(this.B)||"www.youtube.com")):c="video.google.com";this.ij=c;this.Sf(a);this.I=new sy;g.B(this,this.I);this.D=this.g&&!S(this,"enable_svg_mode_on_embed_mobile");this.Wb={Qq:Qy("",a.innertube_api_key),Rq:Qy("",a.innertube_api_version),Sq:this.deviceParams.c,Tq:Qy("",a.innertube_context_client_version),Vq:this.jf,Uq:this.region,Lm:""};this.Gh=void 0!=window.WebKitPlaybackTargetAvailabilityEvent;this.o=new Sx(this.experiments,S(this,"html5_force_hfr_support")?!0:oz(this)||mr()||nr()||qz(this),
g.qx&&56<=gr()||qz(this));c=new ega;g.uz(this)&&(c.i=!0,c.B=.1);g.O(this.experiments,"html5_ewma_bandwidth_estimator")&&(c.i=!0);g.O(this.experiments,"html5_pctile_bandwidth_estimator")&&(c.i=!1);this.Ff&&(c.l=this.Ff/8);c.g=g.P(this.experiments,"html5_bandwidth_window_size")||c.g;c.A=g.O(this.experiments,"html5_dont_predict_end_time_in_past");this.schedule=new fga(c);this.enableSafetyMode=Q(!1,a.enable_safety_mode);this.Qa=Q(this.R?!1:bz(this)&&"blazer"!=this.playerStyle,a.allow_autonav);this.Ca=
Q(!1,a.send_visitor_id_header)||this.experiments.g;this.cg=!1;this.Wf=oy;this.Oc=g.M();this.Z=0;this.ce=!1;this.Bl=Q(!1,"docs"==this.playerStyle?a.disable_native_context_menu:void 0);this.El=oz(this)&&S(this,"enable_skip_intro_button");this.embedConfig=Qy("",a.embed_config);this.kf=!1;this.Sb=Q(!1,a.full_window);this.Dl=Q(!1,a.embedding_app);this.ma=!g.vz(this)&&!wz(this)&&!g.iz(this);this.livingRoomAppMode=a.living_room_app_mode;this.transparentBackground=!1;this.useFastSizingOnWatchDefault=!0;this.showMiniplayerUiWhenMinimized=
this.externalFullscreen=this.showMiniplayerButton=!1;if(S(this,"fill_web_player_context_config")&&a.player_response&&(c=JSON.parse(a.player_response).playerConfig))var e=c.webPlayerContextConfig;e&&!S(this,"web_player_context_config_dark")?(a=e,this.transparentBackground=!!a.transparentBackground,this.useFastSizingOnWatchDefault=!!a.useFastSizingOnWatchDefault,this.showMiniplayerButton=!!a.showMiniplayerButton,this.externalFullscreen=!!a.externalFullscreen,this.showMiniplayerUiWhenMinimized=!!a.showMiniplayerUiWhenMinimized):
(this.transparentBackground=Q(!1,a.transparent_background),this.useFastSizingOnWatchDefault=Q(!0,a.use_fast_sizing_on_watch_default),this.showMiniplayerButton=Q(!1,a.show_miniplayer_button),this.externalFullscreen=Q(!1,a.external_fullscreen),this.showMiniplayerUiWhenMinimized=Q(!1,a.use_miniplayer_ui),S(this,"fill_web_player_context_config")&&!S(this,"web_player_context_config_dark")&&!S(this,"html5_log_missing_web_player_context_config_killswitch")&&this.transparentBackground&&g.$p(Error("WebPlayerContextConfig is missing.")))};
S=function(a,b){return g.O(a.experiments,b)};
yz=function(a,b){return!a.Kb&&ir()&&Tn(55)&&"3"==a.l&&!b};
zz=function(a){a=kz(a.B);return"www.youtube-nocookie.com"==a?"www.youtube.com":a};
Az=function(a){return g.iz(a)?"music.youtube.com":zz(a)};
Bz=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
Cz=function(a){return bz(a)&&!g.vz(a)};
ez=function(a){return gz&&!a.mf||hr("nintendo wiiu")||hr("nintendo 3ds")?!0:!1};
g.iz=function(a){return"music-embed"==a.playerStyle};
g.uz=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"==a.deviceParams.cplatform};
qz=function(a){return"CHROMECAST ULTRA/STEAK"==a.deviceParams.cmodel||"CHROMECAST/STEAK"==a.deviceParams.cmodel};
g.Dz=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
oz=function(a){return"web"==a.deviceParams.c.toLowerCase().substr(0,3)};
wz=function(a){return"WEB_KIDS"==a.deviceParams.c};
g.vz=function(a){return"WEB_UNPLUGGED"==a.deviceParams.c};
g.Ez=function(a){return g.vz(a)||"TV_UNPLUGGED_CAST"==a.deviceParams.c||"TVHTML5_UNPLUGGED"==a.deviceParams.c};
Fz=function(a){return"WEB_REMIX"==a.deviceParams.c};
g.Iz=function(a){return(a.deviceHasDisplay&&g.qx&&!rr&&"3"!==a.l?g.tr?a.i&&g.ld(51):!0:!1)||(a.deviceHasDisplay&&g.Vx&&!rr&&"3"!==a.l?g.tr?a.i&&g.ld(48):g.ld(38):!1)||(a.deviceHasDisplay&&g.Ch&&!rr&&"3"!==a.l?g.tr?a.i&&g.ld(37):g.ld(27):!1)||a.deviceHasDisplay&&g.Gz&&!qr()&&g.ld(11)||a.deviceHasDisplay&&g.Hz&&g.ld("604.4")};
Jz=function(a){if(g.fz(a)&&cz)return!1;if(g.Vx){if(!g.ld(47)||!g.ld(52)&&g.ld(51))return!1}else if(g.Hz)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
bz=function(a){return"detailpage"==a.T};
g.fz=function(a){return"embedded"==a.T};
g.Kz=function(a){return"leanback"==a.T};
az=function(a){return"adunit"==a.T||"gvn"==a.playerStyle};
g.hz=function(a){return"profilepage"==a.T};
$y=function(a){return a.i&&g.fz(a)&&!az(a)&&!a.Kb};
Lz=function(a){if(!a.P)return"";var b=a.P.split("/");if(5==b.length)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(8==b.length)return b.splice(7,0,"s20-c"),b.join("/");if(9==b.length)return b[7]+="-s20-c",b.join("/");b=Error("Profile image not a FIFE URL.");b.params=a.P;g.$p(b);return a.P};
g.Mz=function(a){var b=Az(a);!S(a,"yt_embeds_disable_new_error_lozenge_url")&&mga.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
kz=function(a){var b=g.Tg(a);return(a=Number(g.Sg(4,a))||null)?b+":"+a:b};
nga=function(){this.H=this.M=this.g=this.u=this.l=this.o=this.D=this.B=!1;this.F=!0;this.i=0;this.R=!1;this.I=Infinity;this.A=!1};
oga=function(a){if(a.D)return["f"];var b="19 9h 9 h 8 (h ( H *".split(" ");a.R&&b.unshift("1");a.g&&b.unshift("h");return b};
pga=function(a){var b=["o","a","v","A","V"];a.l&&(b=["m","M"].concat(b));a.u&&(b=["meac3","MEAC3","mac3","MAC3"].concat(b));a.B&&(b=["so","sa"].concat(b));a.M&&b.unshift("a");a.o&&b.unshift("ah");return b};
Nz=function(a){if(Tx(a.o,gy)&&Tx(a.o,Xx)&&Tx(a.o,Zx))return 8192;try{try{var b=+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(d){b=0}if(b)return b}catch(d){}b=g.P(a.experiments,"html5_av1_thresh");var c=g.P(a.experiments,"html5_av1_thresh_lcc");c&&2>=navigator.hardwareConcurrency&&(b=c);(c=g.P(a.experiments,"html5_av1_thresh_hcc"))&&4<navigator.hardwareConcurrency&&(b=c);(a=g.P(a.experiments,"html5_av1_thresh_arm"))&&jr()&&(b=a);(a=+wy()[vy("1",30)]||0)&&(b=Math.min(b,
a));return b};
Oz=function(a,b,c,d){this.flavor=a;this.g=b;this.o=c;this.u=d;this.l={};this.mg=this.i=null;this.lm=this.nm=-1;this.pl=null;this.A=!!d&&g.O(d,"edge_nonprefixed_eme")};
Qz=function(a){return a.A?!1:!a.i&&!!Pz()&&"com.microsoft.playready"==a.g};
Rz=function(a){return"com.microsoft.playready"==a.g};
Sz=function(a){return g.hy&&"com.microsoft.playready"==a.g&&!!navigator.requestMediaKeySystemAccess};
Tz=function(a){return!a.i&&!!Pz()&&"com.apple.fps.1_0"==a.g};
Pz=function(){var a=window.MSMediaKeys;pr()&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null};
Uz=function(a){return navigator.requestMediaKeySystemAccess?g.qx?Tn("45"):g.hy||g.Ld?g.O(a,"edge_nonprefixed_eme"):g.Vx?Tn("47"):!g.O(a,"html5_disable_nonprefixed_eme_for_other"):!1};
qga=function(a,b){var c=lr(),d=c?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&d.unshift("com.youtube.widevine.l3");return c?d:a?[].concat(g.ea(d),g.ea(Vz.playready)):[].concat(g.ea(Vz.playready),g.ea(d))};
g.Wz=function(a){a=void 0===a?{}:a;this.i=a.languageCode||"";this.l=a.languageName||null;this.o=a.kind||"";this.u=a.name||null;this.H=a.id||null;this.B=a.is_servable||!1;this.D=a.is_translateable||!1;this.F=a.url||null;this.A=a.vss_id||"";this.isDefault=a.is_default||!1;this.g=a.translationLanguage||null};
g.Xz=function(a){var b=a.l||"",c=[b];"asr"==a.o&&-1==b.indexOf("(")&&c.push(" (\uc790\ub3d9 \uc790\ub9c9)");a.u&&c.push(" - "+a.u);a.g&&c.push(" >> "+a.g.languageName);return c.join("")};
Yz=function(a,b){this.id=a;this.kb=b;this.captionTracks=[];this.qm=this.Vp=this.g=null;this.Gp="UNKNOWN"};
$z=function(a,b,c){this.videoInfos=a;this.g=b||null;this.audioTracks=[];this.i=c||null;if(Zz){if(this.g){var d={};(0,g.y)(this.g,(0,g.x)(function(e){if(e.kb&&!d[e.id]){var f=new Yz(e.id,e.kb);d[e.id]=f;this.audioTracks.push(f)}},this))}}else rga(this)};
rga=function(a){if(a.g)for(var b=new Set,c=g.q(a.g),d=c.next();!d.done;d=c.next())if(d=d.value,d.kb&&!b.has(d.kb.id)){var e=new Yz(d.id,d.kb);b.add(d.kb.id);a.audioTracks.push(e)}};
aA=function(a,b,c){var d={},e;for(e in c.g){var f=c.g[e],k=gv(f.info);""==f.info.i||("304"==k||"266"==k)&&a.F||a.H&&"h"==f.info.i&&f.info.video&&1080<f.info.video.Tb||!Yfa(b,f.info)||(d[f.info.i]=d[f.info.i]||[],d[f.info.i].push(f.info))}c=g.q(Object.keys(d));for(e=c.next();!e.done;e=c.next())e=e.value,d[e]&&d[e][0].xe()&&(d[e]=sga(a,d[e]),d[e]=tga(b,d[e]));return g.Lb(d,function(l){return!!l.length})};
uga=function(a,b,c){var d={};g.Kb(b,function(e,f){var k=e.filter(function(l){if(l.l){var m;if(m=c&&l.l[c.flavor]&&c.l[l.mimeType])(l="("!=l.i&&"(h"!=l.i)||(l=Tx(a,$x)||a.D),m=l;l=m?!0:!1}else l=!0;return l});
k.length&&(d[f]=k)});
return d};
wga=function(a,b,c,d){function e(m){return!!f[m]}
var f=aA(a,b,c);if(0<a.i&&f["9"]&&f["1"]){var k=Math.min(a.i,bA(f["1"])),l=f["1"].filter(function(m){return m.ua().Tb<=k});
l=f["9"].filter(function(m){return m.ua().Tb>k}).concat(l);
l.length&&(f["19"]=l)}Yw(c)&&(f=uga(b,f,d));b=oga(a);d=pga(a);b=g.Xa(b,e);d=g.Xa(d,e);if(!b||!d)return Er();"9"==b&&f.h&&(l=bA(f["9"]),bA(f.h)>1.5*l&&(b="h"),c.Te&&!$fa(a.A)&&(b="h"));a=f[b];c=f[d];if(!a.length)return Er();cA(a,c);return Fr(new $z(a,c,vga(f,b,d)))};
vga=function(a,b,c){var d=a.h;"f"==b&&(d=a[b]);var e=a.a;b=a[b]!=d;a=a[c]!=e;return d&&e&&(b||a)?(cA(d,e),new $z(d,e)):null};
cA=function(a,b){g.qb(a,function(c,d){return d.ua().height*d.ua().width-c.ua().height*c.ua().width||d.g-c.g});
g.qb(b,function(c,d){return d.g-c.g})};
tga=function(a,b){var c=nj(b,function(d,e){return 32<e.ua().fps?Math.min(d,e.ua().width):d},Infinity);
Infinity>c&&(b=a.u&&(a.B||Tx(a,Yx))?(0,g.Xd)(b,function(d){return 32<d.ua().fps||d.ua().width<c}):(0,g.Xd)(b,function(d){return!(32<d.ua().fps)}));
mr()&&(b=(0,g.Xd)(b,function(d){return"299"!=gv(d)}));
return b};
sga=function(a,b){return b=(0,g.Xd)(b,function(c){return c.ua().Tb<=a.I})};
bA=function(a){return nj(a,function(b,c){return Math.max(b,c.ua().Tb)},0)};
dA=function(a,b,c,d){g.A.call(this);this.g=[];this.i={};this.o={};this.A=null;this.u=b;this.B=!1;this.l=[];this.ll=d;xga(this,a,!c)};
xga=function(a,b,c){for(var d in b)for(var e=g.q(b[d]),f=e.next();!f.done;f=e.next()){f=f.value;if(!f.l)return;for(var k in f.l){if(!Vz[k])return;for(var l=g.q(Vz[k]),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=a.i[m]||new Oz(k,m,f.l[k],a.u),a.o[k]=a.o[k]||{},a.o[k][f.mimeType]=!0}}lr()&&(a.i["com.youtube.fairplay"]=new Oz("fairplay","com.youtube.fairplay","",a.u),a.o.fairplay={"audio/mp4":!0,"video/mp4":!0});a.g=qga(c,a.ll).filter(function(n){return!!a.i[n]})};
eA=function(a){if(!a.fa())if(0==a.g.length)a.A(a.l);else{var b=a.g[0],c=a.i[b],d={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};Rz(c)&&(d.initDataTypes=["keyids","cenc"]);for(var e in a.o[c.flavor]){var f=0==e.indexOf("audio/"),k=f?d.audioCapabilities:d.videoCapabilities;"widevine"!=c.flavor||a.B?k.push({contentType:e}):f?k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(k.push({contentType:e,robustness:"HW_SECURE_ALL"}),k.push({contentType:e,robustness:"SW_SECURE_DECODE"}))}navigator.requestMediaKeySystemAccess(b,
[d]).then(Zp((0,g.x)(a.F,a,c)),Zp((0,g.x)(a.D,a)))}};
yga=function(a,b){function c(f){b.l[f.contentType]=!0}
if(Rz(b)){var d=ox(),e;for(e in a.o[b.flavor])b.l[e]=!!d.canPlayType(e)}else d=b.i.getConfiguration(),d.audioCapabilities&&d.audioCapabilities.forEach(c),d.videoCapabilities&&d.videoCapabilities.forEach(c)};
Aga=function(a){if(Pz()&&g.Hz)a.l.push(new Oz("fairplay","com.apple.fps.1_0","",a.u));else{var b=zga(),c=g.Xa(a.g,function(d){var e=a.i[d],f=!1,k=!1,l;for(l in a.o[e.flavor])b(l,d)&&(e.l[l]=!0,f=f||0==l.indexOf("audio/"),k=k||0==l.indexOf("video/"));return f&&k});
c&&a.l.push(a.i[c]);a.g=[]}a.A(a.l)};
zga=function(){var a=Pz();if(a){var b=a.isTypeSupported;return function(c,d){return b(d,c)}}return(a=ox())&&(a.addKey||a.webkitAddKey)?(0,g.x)(a.canPlayType,a):function(){return!1}};
Bga=function(a,b,c,d,e,f,k,l,m,n){this.itag=a;this.url=b;this.codecs=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=l||null;this.g=m||"";this.kb=void 0===n?null:n};
fA=function(a){for(var b={},c=0,d=a.length;c<d;++c){var e=a[c],f=e.type.match(/codecs="([^"]*)"/);f=f?f[1]:"";var k=null;e.audio_track_id&&(k=new gw(e.name,e.audio_track_id,!!e.is_default));e=new Bga(e.itag,e.url,f,+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,e.drm_families,k);b[e.itag]=b[e.itag]||[];b[e.itag].push(e)}return b};
Cga=function(a,b,c){this.l=a;this.g=b;this.u=0;this.i="";this.o=c};
gA=function(a,b,c){a.o&&(b=g.bh(b,{cpn:a.o}));c&&(b=g.bh(b,{paired:c}));return b};
hA=function(a,b){var c=a.itag.toString();b&&(c+=b.itag.toString());return c};
Dga=function(a,b,c){var d="#EXT-X-MEDIA:TYPE=AUDIO,",e="YES",f="audio";if(b.kb){f=b.kb;var k=f.getId().split(".")[0];k&&(d+='LANGUAGE="'+k+'",');a.i||f.getIsDefault()||(e="NO");f=f.getName()}k="";c&&(k=c.itag.toString());a=gA(a,b.url,k);return d=d+('NAME="'+f+'",DEFAULT='+(e+',AUTOSELECT=YES,GROUP-ID="'))+(hA(b,c)+'",URI="'+(a+'"'))};
Ega=function(a){for(var b=[],c=[],d=0,e=a.g.length;d<e;++d){var f=a.g[d];f.bitrate<=a.u?b.push(f):c.push(f)}b.sort(function(k,l){return l.bitrate-k.bitrate});
c.sort(function(k,l){return k.bitrate-l.bitrate});
a.g=b.concat(c)};
iA=function(a,b,c){this.xf=a;this.i=b;this.g=null;this.l=c};
Gga=function(a,b,c,d,e){if(!(rr||pr()||lr()))return Er();var f=Fga(c),k=fA(c);if(!k)return Er();c={};var l=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),m;c=[];var n=[],p=[],r=g.P(a.experiments,"html5_hls_min_video_height"),v;for(v in k)if(!g.O(a.experiments,"html5_disable_drm_hfr_1080")||"383"!=v&&"373"!=v){var z=g.q(k[v]);for(m=z.next();!m.done;m=z.next()){var C=m.value;if(C.width){if(!(C.height<r)){var F=k[C.audioItag];if(F&&(c.push(C),m="fairplay"==C.g?l:null,p.push(jA(F,[C],
e,C.itag,C.width,C.height,C.fps,f,void 0,void 0,m)),!E||C.width*C.height*C.fps>E.width*E.height*E.fps))var E=C}}else n.push(C)}}m=p.reduce(function(K,R){return R.xf.Mm()&&K},!0)?l:null;
d=Math.max(d,g.P(a.experiments,"html5_hls_initial_bitrate"));E=E||{};p.push(jA(n,c,e,"93",void 0===E.width?0:E.width,void 0===E.height?0:E.height,void 0===E.fps?0:E.fps,f,"auto",d,m));return jy(a.o,p,yz(a,b))};
jA=function(a,b,c,d,e,f,k,l,m,n,p){d=new ow(d,"application/x-mpegURL",new fw,new jw(e,f,k,null,void 0,m),void 0,p);a=new Cga(a,b,c);a.u=n?n:1369843;return new iA(d,a,l)};
Fga=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN};
lA=function(){return xa(function(a){kA||(kA=new Promise(function(b,c){var d=indexedDB.open("yt-player-local-media",2);d.onerror=c;d.onsuccess=function(e){return b(e.target.result)};
d.onupgradeneeded=function(e){e=e.target.result;e.createObjectStore("index");e.createObjectStore("media")}}));
return a["return"](kA)})};
nA=function(a,b,c){var d;return xa(function(e){if(1==e.g)return ua(e,lA(),2);d=e.u;return e["return"](mA(d.transaction(a,"readwrite").objectStore(a).put(c,b)))})};
oA=function(a,b){var c;return xa(function(d){if(1==d.g)return ua(d,lA(),2);c=d.u;return d["return"](mA(c.transaction(a).objectStore(a).get(b)))})};
pA=function(){var a=window.localStorage&&window.localStorage["yt-player-lv"];return a?a.split(","):[]};
qA=function(a,b,c,d){var e;xa(function(f){e=a+"-"+b.id+"-"+c;return f["return"](nA("media",e,d))})};
Hga=function(a,b,c){var d,e;xa(function(f){d=a+(b?":v":":a");e=nA("index",d,c);b&&(e=e.then(function(){var k=pA();k.includes(a)||(k.push(a),window.localStorage["yt-player-lv"]=k.join(","))}));
return f["return"](e)})};
rA=function(a){return!!a&&pA().includes(a)};
Iga=function(a){return xa(function(b){return b["return"](Promise.all([oA("index",a+":a"),oA("index",a+":v")]).then(function(c){return c.join(",")}))})};
Jga=function(a,b,c){return xa(function(d){return d["return"](oA("media",a+"-"+b+"-"+c))})};
mA=function(a){return new Promise(function(b,c){a.onsuccess=function(){return b(a.result)};
a.onerror=function(){return c()}})};
sA=function(a,b){this.xf=a;this.g=b};
tA=function(a,b){this.xf=a;this.g=b};
Kga=function(a){var b=[];(0,g.y)(a,function(c){if(c.url){var d=vw(c.type,"medium","0");b.push(new tA(d,c.url))}});
return b};
uA=function(a){if(a){var b=[],c;for(c in a)Lga.has(c)||b.push(c);b.length&&(b.sort(),g.L(Error("Unknown house brand player vars: "+b.join(",")),"WARNING"))}};
g.vA=function(a,b,c,d){this.dd=new Set;this.F=a;this.H=b;a=c.split("#");this.A=parseInt(a[0],10);this.u=parseInt(a[1],10);this.l=parseInt(a[2],10);this.columns=parseInt(a[3],10);this.rows=parseInt(a[4],10);this.g=parseInt(a[5],10);this.o=a[6];this.B=a[7];this.I=d};
wA=function(a,b){var c=a.H;c=c.replace("$N",a.o);c=c.replace("$L",a.F.toString());c=c.replace("$M",b.toString());a.B&&(c=g.bh(c,{sigh:a.B}));return Gv(c)};
g.xA=function(a,b){b>=a.Qr()&&a.zk();var c=Math.floor(b/(a.columns*a.rows)),d=a.columns*a.rows,e=b%d,f=e%a.columns;e=Math.floor(e/a.columns);var k=a.zk()+1-d*c;if(k<a.columns){var l=k;d=1}else l=a.columns,d=k<d?Math.ceil(k/a.columns):a.rows;return{url:wA(a,c),column:f,columns:l,row:e,rows:d,gs:a.A*l,es:a.u*d}};
yA=function(a){g.N.call(this);this.o=new sp;this.i=null;this.D=new Set;this.B=a||""};
AA=function(a,b,c){for(c=zA(a,c);0<=c;){var d=a.g[c];if(d.Eb(Math.floor(b/(d.columns*d.rows)))&&(d=g.xA(d,b)))return d;c--}return g.xA(a.g[0],b)};
CA=function(a,b,c){c=zA(a,c);for(var d,e;0<=c;c--)if(d=a.g[c],e=Math.floor(b/(d.columns*d.rows)),!d.Eb(e)){d=a;var f=c,k=f+"-"+e;d.D.has(k)||(d.D.add(k),rp(d.o,f,{tx:f,Ny:e}))}BA(a)};
BA=function(a){if(!a.i&&!a.o.isEmpty()){var b=a.o.remove(),c=new Image;a.B&&(c.crossOrigin=a.B);c.src=wA(a.g[b.tx],b.Ny);c.onload=(0,g.x)(a.F,a,b.tx,b.Ny);a.i=c}};
DA=function(a,b,c,d){d=void 0===d?!1:d;yA.call(this,c);this.isLive=d;this.g=this.l(a,b);this.u=new Map;1<this.g.length&&this.g[0].isDefault()&&this.g.splice(0,1)};
EA=function(a,b,c){return(a=a.g[b])?a.Gn(c):-1};
zA=function(a,b){var c=a.u.get(b);if(c)return c;c=a.g.length;for(var d=0;d<c;d++)if(a.g[d].A>=b)return a.u.set(b,d),d;a.u.set(b,c-1);return c-1};
FA=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.vA.call(this,a,b,c,0);this.i=null;this.D=d?3:0};
GA=function(a,b,c){DA.call(this,a,0,void 0,b);for(a=0;a<this.g.length;a++)this.g[a].KA(c)};
Mga=function(a){return navigator.mediaCapabilities?HA(a.videoInfos).then(function(){return a},function(){return a}):Fr(a)};
HA=function(a){var b=navigator.mediaCapabilities;if(!b||null!=a[0].o)return Fr(a);var c=(0,g.ge)(a,function(d){return b&&b.decodingInfo({type:"media-source",video:d.video?{contentType:d.mimeType,width:d.video.width||640,height:d.video.height||360,bitrate:8*d.g||1E6,framerate:d.video.fps||30}:null})});
return eba(c).then(function(d){for(var e=0;e<d.length;e++)a[e].o=d[e].smooth;return a},function(){return a})};
JA=function(a){var b={},c;for(c in IA){var d=a[IA[c]];d&&(b[c]=d)}return b};
KA=function(a,b){var c={},d;for(d in IA){var e=b?b+d:d;e=a[e+"_webp"]||a[e];g.Cv(e)&&(c[IA[d]]=e)}return c};
NA=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url});
a.sort(function(l,m){return l.width-m.width||l.height-m.height});
for(var c in LA)for(var d=parseInt(c,10),e=LA[d],f=g.q(a),k=f.next();!k.done;k=f.next())if(k=k.value,k.width>=d){d=MA(k.url);g.Cv(d)&&(b[e]=d);break}(c=a.pop())&&1280<=c.width&&(c=MA(c.url),g.Cv(c)&&(b["maxresdefault.jpg"]=c));return b};
MA=function(a){return a.startsWith("//")?"https:"+a:a};
OA=function(a,b){this.version=a;this.args=b};
PA=function(a,b){this.topic=a;this.g=b};
RA=function(a,b){var c=QA();c&&c.publish.call(c,a.toString(),a,b)};
Nga=function(a,b){var c=SA,d=QA();if(!d)return 0;var e=d.subscribe(c.toString(),function(f,k){var l=g.w("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(TA[e])try{if(k&&c instanceof PA&&c!=f)try{var m=c.g,n=k;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Jg){var p=new m;m.Jg=p.version}var r=m.Jg}catch(v){}if(!r||n.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{k=Reflect.construct(m,
g.gb(n.args))}catch(v){throw v.message="yt.pubsub2.Data.deserialize(): "+v.message,v;}}catch(v){throw v.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+c.toString()+": "+v.message,v;}a.call(b||window,k)}catch(v){g.L(v)}},UA[c.toString()]?g.zq()?g.xq(l):g.eq(l,0):l())});
TA[e]=!0;VA[c.toString()]||(VA[c.toString()]=[]);VA[c.toString()].push(e);return e};
XA=function(a,b){var c=Nga(function(d){a.apply(b,arguments);WA(c)},b);
return c};
WA=function(a){var b=QA();b&&(g.Fa(a)&&(a=[a]),(0,g.y)(a,function(c){b.unsubscribeByKey(c);delete TA[c]}))};
QA=function(){return g.w("ytPubsub2Pubsub2Instance")};
YA=function(){var a=g.Xp("TIMING_TICK_EXPIRATION");a||(a={},Wp("TIMING_TICK_EXPIRATION",a));return a};
Oga=function(){var a=YA(),b;for(b in a)g.Aq(a[b]);Wp("TIMING_TICK_EXPIRATION",{})};
ZA=function(a,b){OA.call(this,1,arguments)};
$A=function(a,b){OA.call(this,1,arguments);this.g=a};
cB=function(a){aB(a);Pga();bB(!1,a);a||(g.Xp("TIMING_ACTION")&&Wp("PREVIOUS_ACTION",g.Xp("TIMING_ACTION")),Wp("TIMING_ACTION",""))};
jB=function(a,b,c,d){c=c?c:a;dB("c",c);cB(c);if(d||g.Tq("custom_csi_timeline_use_gel"))eB(c).useGel=!0;Wp(c+"TIMING_AFT_KEYS",b);Wp(c+"TIMING_ACTION",a);fB("c",c);gB(c)&&(a={},a.actionType=Qga[Yp((c||"")+"TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN",b=hB(c),pt(a,b));g.Ga("ytglobal.timing"+(c||"")+"ready_",!0,void 0);iB(c)};
nB=function(a,b,c){if(!b&&"_"!=a[0]){var d=a;kB.mark&&(ub(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),kB.mark(d))}d=lB(c);var e=b||g.M();d[a]&&(d["_"+a]=d["_"+a]||[d[a]],d["_"+a].push(e));d[a]=e;e=YA();var f=e[a];f&&(g.Aq(f),e[a]=0);mB(c)["tick_"+a]=b;c||b||g.M();gB(c)?(e=hB(c),"_start"==a?ot("baseline_"+e)||Ns("latencyActionBaselined",{clientActionNonce:e},{timestamp:b}):ot("tick_"+a+"_"+e)||Ns("latencyActionTicked",{tickName:a,clientActionNonce:e},{timestamp:b}),b=!0):b=!1;b||iB(c);return d[a]};
oB=function(a){var b="above_the_fold";kB&&kB.measure&&(ub(b,"measure_")||(b="measure_"+b),a?kB.measure(b,a):kB.measure(b))};
fB=function(a,b){pB("yt_sts",a,b);nB("_start",void 0,b)};
qB=function(a,b){var c=lB(b);return a in c};
rB=function(a){qB("_start","video_to_ad")&&!qB(a,"video_to_ad")&&nB(a,void 0,"video_to_ad")};
pB=function(a,b,c){eB(c).info[a]=b;if(gB(c))if(mB(c)["info_"+a]=b,a in sB){var d=sB[a];g.$a(Rga,d)&&(b=!!b);a in tB&&(b=tB[a]+b.toUpperCase());a={};d=d.split(".");for(var e=a,f=0;f<d.length-1;f++)e[d[f]]=e[d[f]]||{},e=e[d[f]];e[d[d.length-1]]=b;gB(c)&&(b=eB(c),"gelInfo"in b||(b.gelInfo={}),Tea(b.gelInfo,a),c=hB(c),pt(a,c))}else g.$a(Sga,a)||(c=Error("Unknown label logged with GEL CSI"),c.params=a,g.$p(c))};
uB=function(a){var b=lB(a);if(b.aft)return b.aft;a=g.Xp((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 NaN};
iB=function(a){if(!vB(a)){var b=g.Xp((a||"")+"TIMING_ACTION",void 0),c=lB(a);if(g.w("ytglobal.timing"+(a||"")+"ready_")&&b&&c._start&&(b=uB(a)))if(wB||(RA(Tga,new ZA(Math.round(b-c._start),a)),wB=!0),a)xB(a);else{b=!0;var d=g.Xp("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&xB(a)}}};
Uga=function(){switch(ds()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3}return-1};
dB=function(a,b){if(!vB(b)){var c=g.Xp("CSI_SERVICE_NAME","youtube");g.Xp((b||"")+"TIMING_ACTION",void 0)&&c&&(nB("aa",void 0,b),pB("ap",1,b),pB("yt_fss",a,b),xB(b))}};
hB=function(a){var b=eB(a).nonce;b||(b=vt(),eB(a).nonce=b);return b};
lB=function(a){return eB(a).tick};
mB=function(a){a=eB(a);"gel"in a||(a.gel={});return a.gel};
eB=function(a){return g.w("ytcsi."+(a||"")+"data_")||aB(a)};
aB=function(a){var b={tick:{},info:{}};g.Ga("ytcsi."+(a||"")+"data_",b,void 0);return b};
vB=function(a){return!!g.w("yt.timing."+(a||"")+"pingSent_")};
bB=function(a,b){g.Ga("yt.timing."+(b||"")+"pingSent_",a,void 0)};
Vga=function(a){var b=lB(a),c=b.pbr,d=b.vc;b=b.pbs;return c&&d&&b&&c<d&&d<b&&1==eB(a).info.yt_pvis};
gB=function(a){return!!g.Tq("csi_on_gel")||!!eB(a).useGel};
xB=function(a){Oga();if(!gB(a)){var b=lB(a),c=eB(a).info,d=b._start;for(k in b)if(ub(k,"_")&&g.Ka(b[k])){var e=k.slice(1);if(e in Wga){var f=(0,g.ge)(b[k],function(p){return Math.round(p-d)});
c["all_"+e]=f.join()}delete b[k]}f=g.Xp("CSI_SERVICE_NAME","youtube");var k={v:2,s:f,action:g.Xp((a||"")+"TIMING_ACTION",void 0)};e=pB.srt;void 0!==b.srt&&delete c.srt;if(c.h5jse){var l=window.location.protocol+g.w("ytplayer.config.assets.js");(l=kB.getEntriesByName?kB.getEntriesByName(l)[0]:null)?c.h5jse=Math.round(c.h5jse-l.responseEnd):delete c.h5jse}b.aft=uB(a);Vga(a)&&"youtube"==f&&(pB("yt_lt","hot_bg",a),f=b.vc,l=b.pbs,delete b.aft,c.aft=Math.round(l-f));for(var m in c)"_"!=m.charAt(0)&&(k[m]=
c[m]);b.ps=g.M();m={};f=[];for(var n in b)"_"!=n.charAt(0)&&(l=Math.round(b[n]-d),m[n]=l,f.push(n+"."+l));k.rt=f.join(",");(b=g.w("ytdebug.logTiming"))&&b(k,m);Xga(k,!!c.ap,a);RA(SA,new $A(m.aft+(e||0),a))}};
Xga=function(a,b,c){if(g.Tq("debug_csi_data")){var d=g.w("yt.timing.csiData");d||(d=[],g.Ga("yt.timing.csiData",d,void 0));d.push({page:location.href,time:new Date,args:a})}d="";for(var e in a)d+="&"+e+"="+a[e];a="/csi_204?"+d.substring(1);window.navigator&&window.navigator.sendBeacon&&b?yr(a):g.xr(a);bB(!0,c)};
g.yB=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.q(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
g.zB=function(a,b){g.N.call(this);this.Oa=a;this.adModule=!1;this.lj=this.adaptiveFormats="";this.Mp=null;this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.backgroundable=!1;this.Ld="";this.Ll=this.Kl=!1;this.mx=null;this.Ng=this.aj=this.Pc=this.tl=this.Uc=this.Qm=!1;this.Pk=NaN;this.author="";this.kg=0;this.Bp=this.Iv=this.Ep=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.gg=this.qj="";this.contentCheckOk=!1;this.se=0;this.jm=this.zj=!1;this.endSeconds=
0;this.mg=null;this.fq="";this.Td=!1;this.Ff=this.gh=0;this.tp=this.pipable=this.fi=!1;this.Hz=0;this.sa=this.bk=this.he=this.Zq=this.rh=!1;this.mr="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.Om=this.hx=this.hi=!1;this.latencyClass="UNKNOWN";this.isMdxPlayback=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.cf=0;this.reloadReason="";this.jr=this.kx=this.tg=!1;this.keywords={};this.Tm="";this.Um=0;this.Io=!1;this.liveChunkReadahead=NaN;
this.qr=0;this.hk=null;this.ni=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.Fc=[];this.Vd=void 0;this.racyCheckOk=!1;this.oo=0;this.va=null;this.autonavState=1;this.ce=this.kt=!1;this.yo=this.sg=this.startSeconds=0;this.Ko=this.Uu=this.vB=oy;this.Qi=this.suggestions=null;this.qt=!1;this.hlsFormats=this.Vi=this.expandedSubtitle=this.eq=this.subtitle=this.title="";this.bn=this.xo=this.xd=this.Qf=this.Wd=this.Sk=this.Jm=null;this.Xi="vvt";this.Mt=null;this.EB=
"";this.ul=NaN;this.Xo=this.So=this.Ro=this.Qo=this.Po=this.Wo=this.sl=this.Vo=this.Uo=this.To="";this.vl=null;this.pA=!1;this.Rc={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.Ow=this.Nw=NaN;this.Ci=this.ji=this.Mg=this.Wq=this.Pw=!1;this.Aw="";this.no=this.Qs=this.zw=0;this.bx=!1;this.uo=!0;this.ff={};this.captionTracks=[];this.Dp=[];this.Xu=0;this.Yu=[];this.Wl=!1;this.chapterMarkers=[];this.vj=new Yz("und",new gw("Default","und",!0));this.kr=0;this.Ji=this.oA=!1;this.cd=
null;this.Di=[];this.Kg=[];this.Ht=this.Hs="";this.slotPosition=-1;this.breakType=0;this.yA=new g.J(this.zA,5E3,this);g.B(this,this.yA);this.uq=0;this.Bw=!0;this.gd=this.ol=this.Ka=this.yj=null;this.Yq=this.ll=this.NA=this.ih=this.Hf=!1;this.Ww=this.Xw=NaN;this.defraggedFromSubfragments=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.uh=this.It=this.Jt=!1;this.interstitials=[];this.Pb=this.ar=!1;this.tf="#cc181e";this.Nk="";this.isVisualizerEligible=!1;this.hc="";this.ie=this.Vw=
!1;this.Oy=this.rl="";this.Qz=this.ys=this.Xq=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.vx=Q(!1,b?b.limited_state:void 0);this.showShareButton=!0;this.al=!1;this.Pi=this.Ah=!0;this.Em=!1;this.errorDetail="";this.Ph=this.errorReason=this.errorCode=null;this.mM=!this.ra("web_player_response_error_details_killswitch");this.nM=!this.ra("web_player_response_error_message_killswitch");this.Iz=!this.ra("web_player_response_overlay_parsing_killswitch");
this.Un=!this.ra("web_player_response_live_playback_parsing_killswitch");this.Jz=!this.ra("web_player_response_thumbnail_parsing_killswitch");this.Kz=this.ra("web_player_watch_next_response_parsing");this.ra("web_player_ux_module_wait")&&this.Oa.ma&&this.Fc.push("ux");this.Xp=!1;this.Is={};this.Uk(b)};
DB=function(a,b){b=b||{};if(a.Kz){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}c&&(a.ol=c);if(a.ol){c=a.ol.contents;var e;if(c){if((e=c.singleColumnWatchNextResults)&&e.autoplay&&e.autoplay.autoplay&&!e.playlist){var f=e.autoplay.autoplay.sets;e={};d={};var k=null;if(f){for(var l=g.q(f),m=l.next();!m.done;m=l.next())if((m=m.value.autoplayVideoRenderer)&&m.compactVideoRenderer){k=m.compactVideoRenderer;break}(f=f[0].autoplayVideo)&&(f=f.clickTrackingParams)&&
(e.itct=f)}else e.feature="related-auto";if(k){d.autonav="1";d.video_id=k.videoId;if(f=k.shortBylineText)d.author=g.yB(f);if(k=k.title)d.title=g.yB(k)}d.endscreen_autoplay_session_data=g.$g(e);a.suggestions=[d]}e=c.twoColumnWatchNextResults}c=a.ol.playerOverlays;if(c&&(c=c.playerOverlayRenderer)){if(d=c.endScreen)if(d=d.watchNextEndScreenRenderer)var n=d.results;if(d=c.videoDetails)var p=d.embeddedPlayerOverlayVideoDetailsRenderer;g.fz(a.Oa)&&(a.Ah=!!c.addToMenu);AB(a,c.shareButton)}!n&&e&&(c=e.endScreen&&
e.endScreen.endScreen)&&(n=c.results);if(p){c=b;if(d=p.channelThumbnail)if(d=d.thumbnails)if(d=d[0])c.profile_picture=d.url;if(d=p.channelThumbnailEndpoint&&p.channelThumbnailEndpoint.channelThumbnailEndpoint)if(d=d.urlEndpoint&&d.urlEndpoint.urlEndpoint)c.channel_path=d.url;if(d=p.collapsedRenderer)if(d=d.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){if(k=d.title)c.title=g.yB(k);if(d=d.subtitle)c.subtitle=g.yB(d)}if(p=p.expandedRenderer)if(p=p.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(d=
p.title)c.expanded_title=g.yB(d);if(d=p.subtitle)c.expanded_subtitle=g.yB(d);if(p=p.subscribeButton)if(p=p.subscribeButtonRenderer)c.ucid=p.channelId,c.subscribed=p.subscribed,a.Pi=!!p.notificationPreferenceToggleButton}}if(n){e=e||null;p=Py(0,b.autoplay_count);c=[];k=!0;n=g.q(n);for(d=n.next();!d.done;d=n.next()){l=d.value;f=void 0;d=null;if(l.endScreenVideoRenderer){l=l.endScreenVideoRenderer;m=l.title;d={id:l.videoId,length_seconds:l.lengthInSeconds};var r=l.shortBylineText;r&&(d.author=g.yB(r));
if(r=l.shortViewCountText)d.short_view_count_text=g.yB(r);m&&(d.title=g.yB(m),(m=m.accessibility)&&(m=m.accessibilityData)&&m.label&&(d.aria_label=m.label));if(m=l.navigationEndpoint)f=m.clickTrackingParams;if(m=l.thumbnailOverlays)for(m=g.q(m),r=m.next();!r.done;r=m.next())if((r=r.value.thumbnailOverlayTimeStatusRenderer)&&"LIVE"==r.style){d.live_playback="1";break}l=NA(l.thumbnail);Object.assign(d,JA(l))}else if(l.endScreenPlaylistRenderer){l=l.endScreenPlaylistRenderer;f=l.navigationEndpoint;if(!f)continue;
d=f.watchEndpoint;if(!d)continue;d=d.videoId;d={list:l.playlistId,video_id:d,playlist_length:l.videoCount,thumbnail_ids:d};if(m=l.title)d.playlist_title=g.yB(m);if(m=l.shortBylineText)d.playlist_author=g.yB(m);f=f.clickTrackingParams;l=NA(l.thumbnail);Object.assign(d,JA(l))}d&&(d.session_data=g.$g({itct:f}),k?(k={autonav:1,playnext:p},d.list&&(k.autoplay="1"),e&&(f=e.autoplay)&&(f=f.autoplay)&&(f=f.sets)&&(f=f[0])&&(f=f.autoplayVideo)&&(f=f.clickTrackingParams)&&(k.itct=f),k.itct||(k.feature="related-auto"),
d.endscreen_autoplay_session_data=g.$g(k),c.splice(0,0,d),k=!1):c.push(d))}a.suggestions=c}}}if(n=b.iv_invideo_url)a.Ld=Gv(n);a.Kl=Q(a.Kl,b.iv_ads_only);a.Ll=Q(a.Ll,b.iv_allow_in_place_switch);if(n=b.cta_conversion_urls)a.Nu=n;a.isPharma=Q(a.isPharma,b.is_pharma);a.author=Qy(a.author,b.author);a.qj=BB(b.ttsurl)||a.qj;a.Ep=Q(a.Ep,b.cc_asr);a.gg=Qy(a.gg,b.channel_path);a.channelBanner=Qy(a.channelBanner,b.channel_banner);a.videoCountText=Qy(a.videoCountText,b.video_count_text);a.autonavState=Oy(a.autonavState,
b.autonav_state,Yga);a.clientPlaybackNonce=Qy(a.clientPlaybackNonce,b.cpn);a.subscribed=Q(a.subscribed,b.subscribed);a.shortViewCount=Qy(a.shortViewCount,b.short_view_count_text);a.title=Qy(a.title,b.title);a.subtitle=Qy(a.subtitle,b.subtitle);a.eq=Qy(a.eq,b.expanded_title);a.expandedSubtitle=Qy(a.expandedSubtitle,b.expanded_subtitle);a.lj=Qy(a.lj,b.aria_label);a.bj=Qy(a.bj,b.ypc_preview);a.Nt=Qy(a.Nt,b.ypc_origin);a.rl=Qy(a.rl,b.ypc_clickwrap_message);a.paygated=Q(a.paygated,b.paygated);a.pA=Q(a.pA,
b.requires_purchase);a.showShareButton=!Q(!a.showShareButton,b.ss);a.Ah=Q(a.Ah,b.showwatchlater);a.Pi=Q(a.Pi,b.shownotifybutton);a.al=Q(a.al,b.copy_share);if(n=b.keywords)a.keywords=CB(n.split(","));!a.Kz&&(n=b.rvs)&&(a.suggestions=Iq(n));a.contentCheckOk=Q(a.contentCheckOk,"1"==b.cco);a.racyCheckOk=Q(a.racyCheckOk,"1"==b.rco);a.isLivingRoomDeeplink=Q(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=Qy(a.oauthToken,b.oauth_token);a.Tm=Qy(a.Tm,b.kpt);a.visitorData=Qy(a.visitorData,b.visitor_data);
if(n=b.session_data)a.Cb=Fq(n);if(n=b.endscreen_autoplay_session_data)a.Pv=Fq(n);a.Ov=Qy(a.Ov,b.endscreen_ad_tracking_data);a.zB=Q(a.zB,b.wait_for_vast_info_cards_xml);a.mt=Q(a.mt,b.suppress_creator_endscreen);a.jx=Q(a.jx,b.is_trueview_action);a.pg=Qy(a.pg,b.wpid);a.fB=Qy(a.fB,b.tracking_list)};
Zga=function(a){if(!a||!a.adPlacements)return!1;a=g.q(a.adPlacements);for(var b=a.next();!b.done;b=a.next())if(b=b.value.adPlacementRenderer,null!=b&&"AD_PLACEMENT_KIND_START"==(b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind))return!0;return!1};
GB=function(a){var b=a.ie,c=!!a.ia&&(a.ia.If()||a.ia.Jf()||a.ia.Df()),d=a.Oa,e=!!a.ia&&a.ia.Te,f=a.It;a.isAd();var k=a.ek(),l=EB(a,"html5_samsung_vp9_live"),m=new nga;m.D=FB(a);m.o=f&&d.vb;hr("windows nt 5.1")&&!g.Vx&&(m.g=!0);c&&cz&&6>=dz&&(m.g=!0);if(a=c)a=S(d,"disable_html5_ambisonic_audio")||!(g.Iz(d)||S(d,"html5_enable_spherical")||S(d,"html5_enable_spherical3d"))?!1:Jz(d);a&&(m.B=!0);b&&(m.g=!0,m.M=!0);k&&!g.O(d.experiments,"html5_otf_prefer_vp9")&&(m.g=!0);g.O(d.experiments,"html5_enable_aac51")&&
Tx(d.o,by)&&(m.l=!0);!g.O(d.experiments,"html5_enable_ac3")&&Tx(d.o,by)&&(m.u=!0);!g.O(d.experiments,"html5_kaios_hd_killswitch")&&Yy&&(m.I=480);if(e||c)m.F=!1;m.H=!1;b=Nz(d);0<b&&2160>b&&window.SourceBuffer&&SourceBuffer.prototype.changeType&&(m.i=b);2160<=b&&(m.R=!0);m.A=l;return m};
LB=function(a,b){var c;(c=!b)||(c=!(!HB(a)&&a.adaptiveFormats));if(c)return!1;c=IB(a,b);var d=a.Mp,e=a.lengthSeconds,f=a.sa,k=a.hi,l=a.Oa.experiments,m=Mfa(c);c=f||k?Lfa(c,k,d,l):3==m&&JB?Kfa(c,d,e,l):Jfa(c,d,e,l);0<IB(a,b).length&&(d=IB(a,b)[0],d.url&&d.sp&&d.s&&(d=bx(d.url,d.sp,d.s),d=parseInt(d.get("max_sq"),10)||Infinity,isFinite(d)&&(a.hx=!0)));if(d=c.i)d=!(a.ra("html5_manifestless_vp9")||!$ga(c));if(d)return c.dispose(),!1;KB(a,c);c.l&&c.subscribe("cuepointsadded",a.hv,a);Yw(c)&&(a.ji=!0);return!0};
HB=function(a){return lr()&&!MB(a)};
MB=function(a){return(a.ra("html5_enable_tvos_dash")||EB(a,"html5_enable_tvos_dash_dogfood"))&&MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
$ga=function(a){return a.i&&rx('video/webm; codecs="vp9"')&&Nb(a.g,function(b){return pw(b.info)})};
NB=function(a){return!(!a.ia||!a.ia.i)};
PB=function(a){if(!(a.va&&a.va.videoInfos.length&&g.nv(a.va.videoInfos[0])&&NB(a))||g.kr()&&!a.ra("html5_streaming_xhr_try_cobalt")||g.hy&&!a.ra("html5_streaming_xhr_try_edge"))return!1;var b=a.ra("html5_streaming_response_mediastream_rewrite_v2"),c="ULTRALOW"==a.latencyClass;a=21530001==OB(a);return b||c||a};
QB=function(a){if(!PB(a))return!1;var b="ULTRALOW"==a.latencyClass||21530001==OB(a);return a.ra("html5_live_benchmark_incremental_parsing")&&!b||!zw()||!window.AbortController&&!b?!1:!0};
RB=function(a){var b=NB(a),c=QB(a);return a.hasSubfragmentedFmp4&&b?c&&zw()?3:2:a.defraggedFromSubfragments&&b?-1:1};
OB=function(a){return a.isLowLatencyLiveStream&&void 0!=a.ia&&5<=lx(a.ia)?21530001:a.liveExperimentalContentId};
SB=function(a){return lr()&&MB(a)?!1:!ey()||a.Iv?!0:!1};
aha=function(a){a.Td=!0;a.Mg=!1;if(a.ra("mweb_hoffline")&&a.adaptiveFormats&&!a.Nd&&rA(a.videoId))Iga(a.videoId).then(function(d){return LB(a,d)},function(){return LB(a,a.adaptiveFormats)}).then(function(){return TB(a)});
else{Bv(a.Nd)||g.L(Error("DASH MPD Origin invalid: "+a.Nd),"WARNING");var b=a.Nd,c=g.P(a.Oa.experiments,"dash_manifest_version")||4;b=g.bh(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.bh(b,{pacing:0}));Pfa(b,a.Oa.experiments,a.sa).then(a.dJ,a.cJ,a);UB("mrs")}};
g.VB=function(a){if(!a.gd)return null;var b=null!=a.gd.latitudeE7&&null!=a.gd.longitudeE7?a.gd.latitudeE7+","+a.gd.longitudeE7:",";return b+=","+(a.gd.clientPermissionState||0)+","+(a.gd.locationRadiusMeters||"")+","+(a.gd.locationOverrideToken||"")};
TB=function(a){a.fa()||(a.Td=!1,a.N("dataloaded"))};
KB=function(a,b){a.ia=b;g.B(a,b);WB(a)&&a.Fc.push("webgl");a.ia.isLive||(a.sa=!1);var c=b.sourceUrl.split("/");-1!=c.indexOf("manifest_duration")&&(a.hk=parseInt(c[c.indexOf("manifest_duration")+1],10))};
XB=function(a){return a.Mp?!0:a.ra("web_player_content_protection_manifest_killswitch")?!1:!!a.ia&&Yw(a.ia)};
cha=function(a,b){if(a.fa())return Er();a.va=null;a.Wd=null;a.Qf=null;var c=a.Oa.deviceParams.c;a.ra("disable_rqs")||(a.Hf=/^rq/.test(a.clientPlaybackNonce)||/^r/.test(a.clientPlaybackNonce)&&/UNPLUGGED/.test(c)||YB(a));return bha(a,b).then(void 0,(0,g.x)(a.PE,a,b)).then(void 0,(0,g.x)(a.RE,a)).then(void 0,(0,g.x)(a.QE,a)).then(function(){if(a.ra("html5_probe_media_capabilities")&&a.va)return Mga(a.va).then(a.ht,void 0,a)})};
bha=function(a,b){var c=b||SB(a);if(a.ia&&!c){if(FB(a)&&(c=a.ia,!c.g["0"])){var d=new ow("0","fakesb",void 0,new jw(0,0,0,void 0,void 0,"auto"),null,null,1);c.g["0"]=a.sa?new yw(new Jv("http://www.youtube.com/videoplayback"),d,"fake"):new Rw(new Jv("http://www.youtube.com/videoplayback"),d,new Wu(0,0),new Wu(0,0),0,NaN)}return wga(GB(a),a.Oa.o,a.ia,a.cd).then(a.ht,void 0,a)}return Er()};
g.ZB=function(a){return HB(a)&&a.mg?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.za&&a.za.l||null};
$B=function(a){var b=a.Ka&&a.Ka.paidContentOverlay&&a.Ka.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.yB(b.text):a.lM};
aC=function(a){var b=a.Ka&&a.Ka.paidContentOverlay&&a.Ka.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?cd(b.durationMs):a.Hz};
bC=function(a){var b="";if(a.mr)return a.mr;a.sa&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.cC=function(a,b){return g.Da(a.keywords[b])?a.keywords[b]:null};
dC=function(a){return!!(a.Nd||a.adaptiveFormats||a.Vi||a.Qi||a.hlsvp)};
eC=function(a){var b=g.$a(a.Fc,"ypc");a.bj&&(b=!1);return a.isValid()&&!a.Td&&(dC(a)||g.$a(a.Fc,"fresca")||g.$a(a.Fc,"heartbeat")||b)};
IB=function(a,b,c){b=Iq(b);var d={};c&&(0,g.y)(c.split(","),function(e){(e=e.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[e[1]]={width:e[2],height:e[3]})});
(0,g.y)(b,function(e){var f=d[e.itag];f&&(e.width=f.width,e.height=f.height)},a);
return b};
eha=function(a,b){var c=b[0];if(c&&(c=c.playerAnnotationsUrlsRenderer)){c.adsOnly&&(a.Kl=!0);c.allowInPlaceSwitch&&(a.Ll=!0);var d=c.loadPolicy;d&&(a.Zf=dha[d]);if(c=c.invideoUrl)a.Ld=Gv(c);a.Qm=!0}};
fha=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;var c=b.playerAttestationRenderer.challenge;null!=c&&(a.Jh=c)};
gha=function(a,b){a.captionTracks=[];b.captionTracks&&(0,g.y)(b.captionTracks,function(c){var d=BB(c.baseUrl);d&&(c=new g.Wz({is_translateable:!!c.isTranslatable,languageCode:c.languageCode,languageName:c.name&&g.yB(c.name),url:d,vss_id:c.vssId,kind:c.kind}),this.captionTracks.push(c))},a);
a.Dp=b.audioTracks||[];a.Xu=b.defaultAudioTrackIndex||0;a.Yu=b.translationLanguages?(0,g.ge)(b.translationLanguages,function(c){return{languageCode:c.languageCode,languageName:g.yB(c.languageName)}}):[];
a.Wl=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
hha=function(a,b,c){if(a.mM){var d=b.errorScreen;if(!(d&&(d.playerLegacyDesktopYpcOfferRenderer||d.playerLegacyDesktopYpcTrailerRenderer||d.ypcTrailerRenderer)||c&&c.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(b.status))){if(a.nM)if(a.Em=!0,a.errorCode="150",c=d&&d.playerErrorMessageRenderer){if(d=c.reason)a.errorReason=g.yB(d);if(c=c.subreason)a.Ph=g.yB(c)}else a.errorReason=b.reason||null;c=b.status;"LOGIN_REQUIRED"==c?a.errorDetail="1":"CONTENT_CHECK_REQUIRED"==c?a.errorDetail=
"2":"AGE_CHECK_REQUIRED"==c?(b=(b=b.errorScreen)&&b.playerKavRenderer,a.errorDetail=b&&b.kavUrl?"4":"3"):a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}};
iha=function(a,b){var c=b.heartbeatToken;c&&(a.drmSessionId=b.drmSessionId||"",a.heartbeatToken=c,a.Nw=parseInt(b.intervalMilliseconds,10),a.Ow=parseInt(b.maxRetries,10),a.Pw=!!b.softFailOnError,a.Wq=!!b.useInnertubeHeartbeatsForDrm,a.tl=!0)};
jha=function(a,b){var c=b.playerLegacyMulticameraRenderer;c&&(c=c.metadataList)&&(a.Oy=c,a.Kg=Iq(c))};
kha=function(a,b){if(a.Iz){var c=b.playerControlsOverlayRenderer;c&&(c=c.controlBgHtml,null!=c&&(a.tf=c,a.Pb=!0))}};
lha=function(a,b){var c=b.backgroundability;c&&c.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);(c=b.pictureInPicture)&&c.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);b.playableInEmbed&&(a.allowEmbed=!0);var d=b.ypcClickwrap;d&&(c=d.playerLegacyDesktopYpcClickwrapRenderer,d=d.ypcRentalActivationRenderer,c?(a.rl=c.durationMessage||"",a.aj=!0):d&&(c=d.durationMessage,a.rl=c?g.yB(c):"",a.aj=!0))};
mha=function(a,b,c){var d=fC(b.googleRemarketingUrl);d&&(a.googleRemarketingUrl=d);if(d=fC(b.youtubeRemarketingUrl))a.youtubeRemarketingUrl=d;if(d=fC(b.ptrackingUrl)){d=gC(d);var e=d.oid;e&&(a.Mz=e);if(e=d.pltype)a.Nz=e;if(e=d.ptchn)a.Lz=e;if(d=d.ptk)a.Vn=encodeURIComponent(d)}if(d=fC(b.ppvRemarketingUrl))a.ppvRemarketingUrl=d;if(d=fC(b.qoeUrl)){d=g.Jq(d);for(var f in d)e=d[f],d[f]=g.Ka(e)?e.join(","):e;if(f=d.cat)a.Nk=f;if(f=d.live)a.mr=f}if(f=fC(b.remarketingUrl))if(a.remarketingUrl=f,f=gC(f),f.foc_id&&
(a.Rc.focEnabled=!0),f=f.data)a.Rc.rmktEnabled=!0,f.engaged&&(a.Rc.engaged="1");if(f=fC(b.videostatsPlaybackUrl)){f=gC(f);if(d=f.adformat)c.adformat=d;if(c=f.autoplay)a.rh="1"==c;if(c=f.autonav)a.fi="1"==c;if(c=f.delay)a.se=cd(c);if(c=f.ei)a.eventId=c;a.ra("web_player_el_adunit_autoplay_killswitch")||"adunit"!=f.el||(a.rh=!0);if(c=f.feature)a.Ei=c;if(c=f.list)a.playlistId=c;if(c=f.of)a.zs=c;if(c=f.osid)a.osid=c;if(c=f.referrer)a.referrer=c;if(c=f.sdetail)a.fo=c;if(c=f.ssrt)a.Xk="1"==c;if(c=f.subscribed)a.subscribed=
"1"==c,a.Rc.subscribed=c;if(c=f.upt)a.Eo=c;if(c=f.vm)a.videoMetadata=c;if(c=f.wpid)a.pg=c}b.promotedPlaybackTracking&&(b=b.promotedPlaybackTracking,b.startUrls&&(a.Zn=b.startUrls[0]),b.firstQuartileUrls&&(a.Es=b.firstQuartileUrls[0]),b.secondQuartileUrls&&(a.Fs=b.secondQuartileUrls[0]),b.thirdQuartileUrls&&(a.Gs=b.thirdQuartileUrls[0]),b.completeUrls&&(a.Ds=b.completeUrls[0]))};
nha=function(a,b){var c=b.audioConfig;if(c){var d=c.loudnessDb;null!=d&&(a.Pk=d);c.audioMuted&&(a.Ng=!0);c.muteOnStart&&(a.Ng=!0)}if(c=b.fairPlayConfig){if(d=c.certificate)a.mg=hC(d);d=parseInt(c.keyRotationPeriodMs,10);0<d&&(a.nm=d);c=parseInt(c.keyPrefetchMarginMs,10);0<c&&(a.lm=c)}if(c=b.playbackStartConfig){a.Qz=parseInt(c.startSeconds,10);if(d=c.liveUtcStartSeconds)a.liveUtcStartSeconds=parseInt(d,10);if(c=c.startPosition){if(d=c.utcTimeMillis)a.liveUtcStartSeconds=.001*parseInt(d,10);if(c=c.streamTimeMillis)a.yo=
.001*parseInt(c,10)}}else if(c=b.skippableSegmentsConfig){if(d=c.introSkipDurationMs)a.Xq=parseInt(d,10)/1E3;if(c=c.outroSkipDurationMs)a.ys=parseInt(c,10)/1E3}if(d=b.skippableIntroConfig)c=parseInt(d.startMs,10),d=parseInt(d.endMs,10),isNaN(c)||isNaN(d)||(a.Xw=c,a.Ww=d);if(c=b.streamSelectionConfig)a.Ff=parseInt(c.maxBitrate,10);(c=b.visualizerConfig)&&c.isVisualizerEligible&&(a.isVisualizerEligible=!0);if(c=b.vrConfig)a.ih="1"==c.partialSpherical;if(c=b.webDrmConfig){c.skipWidevine&&(a.NA=!0);if(d=
c.widevineServiceCert)a.pl=hC(d);c.useCobaltWidevine&&(a.ll=!0)}if(c=b.mediaCommonConfig)if(c=c.dynamicReadaheadConfig)a.maxReadAheadMediaTimeMs=c.maxReadAheadMediaTimeMs||NaN,a.minReadAheadMediaTimeMs=c.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=c.readAheadGrowthRateMs||NaN};
qha=function(a,b,c){if(a.ra("web_player_response_streaming_data_cipher")){var d=b.adaptiveFormats;if(d){var e=[];d=g.q(d);for(var f=d.next();!f.done;f=d.next()){var k=f.value;f=k.indexRange;var l=k.initRange;f={itag:k.itag,url:k.url,index:f.start+"-"+f.end,bitrate:k.bitrate,init:l.start+"-"+l.end,type:k.mimeType,clen:k.contentLength,lmt:k.lastModified,xtags:k.xtags};if(l=k.audioTrack){var m=l.displayName;m&&(f.name=m,f.audio_track_id=l.id,l.audioIsDefault&&(f.isDefault="1"))}if(l=k.captionTrack)f.caption_display_name=
l.displayName,f.caption_vss_id=l.vssId,f.caption_language_code=l.languageCode,f.caption_kind=l.kind;(l=k.cipher)?(l=g.Hq(l),f.sp=l.sp,f.s=l.s,f.url=l.url):f.url=k.url;l=k.width;m=k.height;null!=l&&null!=m&&(f.size=l+"x"+m);(l=k.fps)&&(f.fps=l);(l=k.type)&&(f.stream_type=l);(l=k.projectionType)&&(f.projection_type=l);(l=k.stereoLayout)&&(f.stereo_layout=l);(l=k.spatialAudioType)&&(f.spatial_audio_type=l);if(m=k.drmFamilies){l=[];m=g.q(m);for(var n=m.next();!n.done;n=m.next())l.push(iC[n.value]);f.drm_families=
l.join(",")}(l=k.qualityLabel)&&(f.quality_label=l);(l=k.targetDurationSec)&&(f.target_duration_sec=l);(l=k.maxDvrDurationSec)&&(f.max_dvr_duration_sec=l);(l=k.audioSampleRate)&&(f.audio_sample_rate=l);(l=k.audioChannels)&&(f.audio_channels=l);if(k=k.colorInfo)(l=k.primaries)&&(l=oha[l])&&(f.primaries=l),(k=k.transferCharacteristics)&&(k=pha[k])&&(f.eotf=k);e.push(g.$g(f))}a.adaptiveFormats=e.join(",")}if(d=b.formats){e=[];k=g.q(d);for(f=k.next();!f.done;f=k.next())f=f.value,e.push(f.itag+"/"+f.width+
"x"+f.height);a.fq=e.join(",");e=[];d=g.q(d);for(f=d.next();!f.done;f=d.next()){f=f.value;k={itag:f.itag,type:f.mimeType,quality:f.quality};(l=f.url)&&(k.url=l);if(l=f.cipher)l=g.Hq(l),k.sp=l.sp,k.s=l.s,k.url=l.url;f.stereo3d&&(k.stereo3d=1);e.push(g.$g(k))}a.Vi=e.join(",")}}if(f=b.hlsFormats){e={};if(c&&(c=c.audioPairingConfig)&&c.pairs)for(c=g.q(c.pairs),d=c.next();!d.done;d=c.next())d=d.value,e[d.videoItag]=d.audioItag;c={};d=g.q(f);for(k=d.next();!k.done;k=d.next())k=k.value,c[k.itag]=k.bitrate;
d=[];f=g.q(f);for(k=f.next();!k.done;k=f.next()){l=k.value;k={itag:l.itag,type:l.mimeType,url:l.url,bitrate:l.bitrate,width:l.width,height:l.height,fps:l.fps};if(m=l.audioTrack)if(n=m.displayName)k.name=n,k.audio_track_id=m.id,m.audioIsDefault&&(k.is_default="1");if(l.drmFamilies){m=[];n=g.q(l.drmFamilies);for(var p=n.next();!p.done;p=n.next())m.push(iC[p.value]);k.drm_families=m.join(",")}l=e[l.itag];m=c[l];l&&m&&(k.audio_itag=l,k.bitrate+=m);d.push(g.$g(k))}a.hlsFormats=d.join(",")}if((c=b.licenseInfos)&&
0<c.length){e={};d=g.q(c);for(f=d.next();!f.done;f=d.next())k=f.value,f=k.drmFamily,k=k.url,f&&k&&(e[iC[f]]=k);a.Mp=e;if(c=c[0].drmParams)a.drmParams=c}if(c=b.dashManifestUrl)a.Nd=g.bh(c,{cpn:a.clientPlaybackNonce});if(c=b.hlsManifestUrl)a.hlsvp=c;if(b=b.probeUrl)a.probeUrl=Gv(g.bh(b,{cpn:a.clientPlaybackNonce}))};
rha=function(a,b){var c=b.videoId;c&&(a.videoId=c);if(c=b.title)a.title=c;if(c=b.lengthSeconds)a.lengthSeconds=parseInt(c,10);if(c=b.keywords)a.keywords=CB(c);if(c=b.channelId)a.Uf=c;if(c=b.author)a.author=c;if(c=b.isCrawlable)a.he=c;if(c=b.musicVideoType)a.musicVideoType=c;c=b.isLive;null!=c&&(a.sa=c,a.isPremiere=!!c&&!b.isLiveContent);a.Jz&&(c=b.thumbnail)&&(a.ff=NA(c))};
sha=function(a,b){if(b.playerLegacyDesktopYpcTrailerRenderer){var c=b.playerLegacyDesktopYpcTrailerRenderer;a.Xo=c.trailerVideoId||"";var d=(d=b.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&d.ypcTrailerRenderer}else if(b.playerLegacyDesktopYpcOfferRenderer)c=b.playerLegacyDesktopYpcOfferRenderer;else if(b.ypcTrailerRenderer){d=b.ypcTrailerRenderer;var e=d.fullVideoMessage;a.sl=e?g.yB(e):""}c&&(a.Ro=c.itemTitle||"",c.itemUrl&&(a.So=c.itemUrl),c.itemBuyUrl&&(a.Po=c.itemBuyUrl),a.Qo=c.itemThumbnail||
"",a.Vo=c.offerHeadline||"",a.Uo=c.offerDescription||"",a.Wo=c.offerId||"",a.To=c.offerButtonText||"",a.Mt=c.offerButtonFormattedText||null,a.ul=c.overlayDurationMsec||NaN,a.sl=c.fullVideoMessage||"",a.Pc=!0);d&&(c=d.playerVars,a.vl=c?g.Hq(c):null,a.Pc=!0)};
uha=function(a,b,c,d){if(a.Un)if(b.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0),b.isPostLiveDvr)a.hi=!0;else{var e=!1;if(b.isLive){d.livestream="1";a.allowLiveDvr=b.isLiveDvrEnabled?ey()?!0:jC&&5>kC?!1:!0:!1;a.oe=27;b.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);if(e=b.latencyClass)a.latencyClass=tha[e]||"UNKNOWN";a.zj=!0;if(b=b.liveChunkReadahead)a.liveChunkReadahead=b;if(c=c&&c.livePlayerConfig)if(c.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0),c.defraggedFromSubfragments&&
(a.defraggedFromSubfragments=!0),c=c.liveExperimentalContentId)a.liveExperimentalContentId=parseInt(c,10);e=!0}else b.isUpcoming&&(e=!0);e&&(a.sa=!0,d.adformat&&"8"!=d.adformat.split("_")[1]||(a.ra("live_fresca_v2")?a.Fc.push("heartbeat"):(a.Uc=!0,a.Fc.push("fresca"))),a.tl=!0,a.jm=!0)}};
AB=function(a,b){a.showShareButton=!!b;if(b){var c=b.buttonRenderer&&b.buttonRenderer.navigationEndpoint;c&&(a.al=!!c.copyTextEndpoint)}};
vha=function(a,b){var c=b.thumbnailPreviewRenderer;if(a.Iz){var d=c.controlBgHtml;null!=d&&(a.tf=d,a.Pb=!0);a.Jz&&(d=c.defaultThumbnail)&&(a.ff=NA(d))}a.Ah=!!c.addToWatchLaterButton;AB(a,c.shareButton)};
g.lC=function(a){return a.sa&&!a.allowLiveDvr};
mC=function(a){return a.sa&&a.allowLiveDvr};
WB=function(a){return a.Jf()||a.If()||a.di()||a.Df()};
wha=function(a){a.va=a.va.i};
g.nC=function(a){if(a.mt)return null;var b=a.mx;b||(b=a.Ka&&a.Ka.endscreen&&a.Ka.endscreen.endscreenUrlRenderer&&a.Ka.endscreen.endscreenUrlRenderer.url);return b||null};
g.oC=function(a){return a.mt?null:a.Ka&&a.Ka.endscreen&&a.Ka.endscreen.endscreenRenderer||null};
g.pC=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.Oa.T};
qC=function(a){if(a.isAd()&&a.videoId!=a.Oa.na)return a.Oa.na};
rC=function(a){return a.rh||"detailpage"==g.pC(a)};
g.sC=function(a){return rC(a)?"detailpage"==g.pC(a)?a.fi||0<a.cf:!0:!1};
tC=function(a){return a.oauthToken||a.Oa.Ya};
uC=function(a){var b=1,c=g.P(a.Oa.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);return Math.min(1,Math.pow(10,-a.Pk/20))||b};
FB=function(a){return!a.Oa.deviceHasDisplay||a.Jt&&a.Oa.vb};
YB=function(a){return a.ra("disable_rqs")?!1:EB(a,"html5_high_res_logging")};
EB=function(a,b){return a.ra(b)?!0:(a.Is.fflags||"").includes(b+"=true")};
hC=function(a){try{return g.ne(a)}catch(b){return null}};
fC=function(a){return a&&a.baseUrl||""};
gC=function(a){a=g.Jq(a);for(var b in a){var c=a[b];a[b]=g.Ka(c)?c[0]:c}return a};
CB=function(a){var b={};(0,g.y)(a,function(c){var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0});
return b};
BB=function(a){if(a){if(Ev(a))return a;a=Fv(a);if(Ev(a,!0))return a}return""};
vC=function(a,b){var c={};this.i=(c.c1a=(0,g.x)(this.u,this),c.c3a=(0,g.x)(this.A,this),c.c6a=(0,g.x)(this.o,this),c);this.O=a;this.l=!!b;this.O&&this.O.Jh?this.g=g.Hq(this.O.Jh):this.g=[]};
wC=function(a){return a.l?!!Pt.g:(a=g.w("yt.abuse.player.botguardInitialized"))&&a()};
yC=function(a,b,c){g.Da(a)&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});b=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);a.videoId=b&&b[2]?b[2]:null;return xC(a)};
xC=function(a,b,c){if(g.Na(a)){b=["endSeconds","startSeconds","mediaContentUrl","suggestedQuality","videoId"];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}};
zC=function(a,b,c,d){if(g.Na(a)&&!g.Ka(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};g.Da(a)&&16==a.length?b.list="PL"+a:b.playlist=a;return b};
AC=function(){};
BC=function(a,b){a.Fh&&null!=b&&b.g==a.Fh.g||(a.Fh&&a.Fh.dispose(),a.Fh=b)};
g.CC=function(a){a=void 0===a?!1:a;g.A.call(this);this.u=this.l=this.o=null;this.I=a;this.F=this.D=!1;this.B=new g.Qf;g.B(this,this.B)};
DC=function(a){a=a.Bm();return 1>a.length?NaN:a.end(a.length-1)};
EC=function(a,b){a.o&&null!=b&&b.g==a.o.g||(a.o&&a.o.dispose(),a.o=b)};
FC=function(a){return Gx(a.ue(),a.getCurrentTime())};
GC=function(a){var b=a.ue();return 0<Dx(b)&&a.getDuration()?Cx(b,a.getCurrentTime()):0};
HC=function(a){var b=a.ue();return 0<Dx(b)&&a.getDuration()?b.end(b.length-1):0};
IC=function(a){var b=a.getDuration();return Infinity==b?1:b?GC(a)/b:0};
JC=function(a){switch(a.We()){case 2:return"progressive.net.retryexhausted";case 3:return"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
KC=function(a,b,c){g.sf.call(this,b,a);this.g=c||null};
g.LC=function(a){g.CC.call(this);this.g=a;this.i={}};
g.MC=function(a){return(a=xha[a.toString()])?a:"LICENSE"};
yha=function(a){this.o=this.g=NaN;this.l=this.i=!1;this.u=void 0===a?!1:a};
NC=function(a,b){return b>a.g+(a.u?.001:0)&&b<a.g+5};
OC=function(a,b,c,d){if(d=1<d)a.l=!0;if(a.i)b!=a.g&&(a.i=!1);else if(0<b&&a.g==b)return c-a.o>(d||!a.l?1500:400);a.g=b;a.o=c;return!1};
g.PC=function(a,b){this.g=a||64;this.i=void 0===b?null:b};
QC=function(a,b){return OC(a,b.getCurrentTime(),g.M(),FC(b))};
RC=function(a,b,c){return b==a.g&&c==a.i||void 0!=b&&(b&128&&!c||b&2&&b&16)?a:new g.PC(b,c)};
SC=function(a,b){return RC(a,a.g|b)};
TC=function(a,b){return RC(a,a.g&~b)};
UC=function(a,b,c){return RC(a,(a.g|b)&~c)};
g.T=function(a,b){return!!(a.g&b)};
g.VC=function(a,b){return b.g==a.g&&b.i==a.i};
g.WC=function(a){return g.T(a,8)&&!g.T(a,512)&&!g.T(a,64)&&!g.T(a,2)};
g.XC=function(a){return g.T(a,8)&&!g.T(a,2)&&!g.T(a,1024)};
g.YC=function(a){return g.T(a,1)&&!g.T(a,2)};
ZC=function(a){return g.T(a,128)?-1:g.T(a,2)?0:g.T(a,64)?-1:g.T(a,1)&&!g.T(a,32)?3:g.T(a,8)?1:g.T(a,4)?2:-1};
$C=function(a){this.i=window.Float32Array?new Float32Array(a):Array(a);this.l=this.g=a-1};
aD=function(a){return a.i[a.g]||0};
bD=function(){g.A.call(this);this.l={};this.g={};this.i=new g.J(this.o,250,this);g.B(this,this.i)};
dD=function(a,b,c,d){a.l[b]=c;a.g[b]=new cD(!!d)};
eD=function(a,b){if(a.g[b]){var c=a.g[b].g;for(var d=[];c.l!=c.g;)c.l=(c.l+1)%c.i.length,d.push(c.i[c.l]);c=d}else c=[];return c};
fD=function(a,b){return a.g[b]?aD(a.g[b].g):0};
cD=function(a){this.l=a;this.g=new $C(100);this.i=NaN};
kD=function(a){var b=g.U(a),c=a.getVideoData(),d=a.i,e=d.app.u,f=e.ha(),k=b.tq(),l=b.X,m=8*fD(l,"bandwidth")/1024,n=fD(l,"networkactivity")/1024,p=fD(l,"bufferhealth");if(b.B){var r=b.O.useInnertubeDrmService()?"IT/":"";r+=b.B.g.Od()+"/"+qy(gD(b));r+="/"+b.B.Od()}else r="";var v=b.getPlayerState().g.toString(16);var z=e.getCurrentTime().toFixed(2),C=Ax(e.ue(),",",3);v="s:"+v+" t:"+z+" b:"+C+" ";e.fk()&&(v+="S");e.yg()&&(v+="P");e.Se()&&(v+="E");e=g.Dz();d=g.hD(d).qE;z=c.va&&!c.va.g?"display:none":
"";if((C=c.clientPlaybackNonce)&&16==C.length){for(var F=0,E="",K=0;10>K;K++)if(F=(F<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(C.charAt(K)),4==K%5){for(var R="",V=0;6>V;V++)R="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(F&31)+R,F>>=5;E+=R}C=E.substr(0,4)+" "+E.substr(4,4)+" "+E.substr(8,4)}else C="";m={video_id_and_cpn:c.videoId+" / "+C,codecs:"",dims_and_frames:"",bandwidth_kbps:m.toFixed(0)+" Kbps",buffer_health_seconds:p.toFixed(2)+" s",drm_style:r?"":"display:none",
drm:r,debug_info:v,bandwidth_style:z,network_activity_style:z,network_activity_bytes:n.toFixed(0)+" KB",shader_info:d,shader_info_style:d?"":"display:none",playback_categories:""};n=f.clientWidth+"x"+f.clientHeight+(1<e?"*"+e.toFixed(2):"");p="-";k.totalVideoFrames&&(p=(k.droppedVideoFrames||0)+" dropped of "+k.totalVideoFrames);m.dims_and_frames=n+" / "+p;a=a.P.getVolume();k=uC(c);a=Math.round(a)+"% / "+Math.round(a*k)+"%";k=c.Pk.toFixed(1);isFinite(k)&&(a+=" (content loudness "+k+"dB)");m.volume=
a;m.resolution=f.videoWidth+"x"+f.videoHeight;if(a=c.za)if(f=a.video)k=f.fps,1<k&&(m.resolution+="@"+k),(k=g.iD(b))&&k.video&&(m.resolution+=" / "+k.video.width+"x"+k.video.height,1<k.video.fps&&(m.resolution+="@"+k.video.fps)),m.codecs=jD(a),!c.Zb||a.audio&&a.video||(m.codecs+=" / "+jD(c.Zb)),f.g||f.primaries?(a=f.g||"unknown","smpte2084"==a?a+=" (PQ)":"arib-std-b67"==a&&(a+=" (HLG)"),m.color=a+" / "+(f.primaries||"unknown"),m.color_style=""):m.color_style="display:none";f=c.sa;a=c.hi;m.live_mode_style=
f||a?"":"display:none";m.live_latency_style=f?"":"display:none";if(a)m.live_mode="Post-Live"+(NB(c)?" Manifestless":"");else if(f){a=fD(l,"livelatency");m.live_latency_secs=a.toFixed(2)+"s";f=NB(c)?"Manifestless, ":"";k="Uncertain";if(0<=a&&120>a)if(c.latencyClass&&"UNKNOWN"!=c.latencyClass)switch(c.latencyClass){case "NORMAL":k="Optimized for Normal Latency";break;case "LOW":k="Optimized for Low Latency";break;case "ULTRALOW":k="Optimized for Ultra Low Latency";break;default:k="Unknown Latency Setting"}else k=
c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";f+=k;(c=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(f+=", seq "+c.sequence);m.live_mode=f}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples=eD(l,"bandwidth");m.network_activity_samples=eD(l,"networkactivity");m.live_latency_samples=eD(l,"livelatency");m.buffer_health_samples=eD(l,"bufferhealth");return m};
jD=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+gv(a)+")":gv(a)};
lD=function(){return"ytp-id-"+zha++};
g.nD=function(a){g.A.call(this);this.i={};this.Ya={};this.element=mD(this,a)};
mD=function(a,b,c){c=c||"svg"==b.C;if(c){var d=document.createElementNS("http://www.w3.org/2000/svg",b.C);g.Gz&&(b.L||(b.L={}),b.L.focusable="false")}else d=g.Rd(b.C);var e;if(e=b.G){if(e=oD(a,d,"class",e))pD(a,d,"class",e),a.i[e]=d}else if(e=b.W){for(var f=0;f<e.length;f++)a.i[e[f]]=d;pD(a,d,"class",e.join(" "))}if(e=b.V)c=oD(a,d,"child",e),null!=c&&d.appendChild(g.Sd(c));else if(e=b.J)for(var k=f=0;k<e.length;k++){var l=e[k];if(l)if(g.Da(l))l=oD(a,d,"child",l),null!=l&&d.appendChild(g.Sd(l));else if(l.element)d.appendChild(l.element);
else{var m=l;l=mD(a,m,c);d.appendChild(l);m.Ga&&(m=lD(),l.id=m,l=document.createElementNS("http://www.w3.org/2000/svg","use"),l.setAttribute("class","ytp-svg-shadow"),l.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+m),Vd(d,l,f++))}}if(b=b.L){c=d;for(var n in b)e=b[n],null!=e&&pD(a,c,n,g.Da(e)?oD(a,c,n,e):e)}return d};
g.qD=function(a){g.Wd(a.element)};
oD=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.Ya[d]=[b,c],null):d};
pD=function(a,b,c,d){if("child"==c){g.Ud(b);if(!g.Ka(d)||g.Na(d)&&g.Da(d.C))d=[d];c=[];for(var e=0;e<d.length;e++){var f=d[e];if(null!=f){var k=f.nodeType;if(1==k||3==k)c.push(f);else if(g.Na(f)&&g.Da(f.C))c.push(mD(a,f));else if(f.element)c.push(f.element);else if(g.Da(f)&&-1!=f.indexOf("\n"))for(f=f.split("\n"),k=0;k<f.length;k++)0<k&&c.push(g.Rd("BR")),c.push(g.Sd(f[k]));else c.push(g.Sd(f))}}for(a=0;a<c.length;a++)b.appendChild(c[a])}else"style"==c?b.style.cssText=d?d:"":null===d?b.removeAttribute(c):
(a=d.toString(),rD&&"href"==c&&(a=g.zc(g.Cc(a))),b.setAttribute(c,a))};
g.W=function(a){g.nD.call(this,a);this.jd="";this.oa=!0;this.R=!1;this.aa=[]};
g.sD=function(a,b){b?a.show():a.hide()};
g.tD=function(a){g.W.call(this,a);this.Y=new g.N;g.B(this,this.Y)};
g.vD=function(a,b,c,d){g.tD.call(this,a);this.priority=b;c&&g.uD(this,c);d&&this.ob(d)};
g.wD=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{C:c?"a":"div",W:b,L:a,J:[{C:"div",G:"ytp-menuitem-label",V:"{{label}}"},{C:"div",G:"ytp-menuitem-content",V:"{{content}}"}]}};
g.uD=function(a,b){a.updateValue("label",b)};
zD=function(a,b){g.A.call(this);var c=this;this.app=a;this.g=!0;this.o=null;this.A={};this.D={};this.l={};this.F=[];this.B={};this.u={};this.i=null;this.I=new Set;this.playerType=b;xD(this,"cueVideoById",this.cueVideoById);xD(this,"loadVideoById",this.loadVideoById);xD(this,"cueVideoByUrl",this.cueVideoByUrl);xD(this,"loadVideoByUrl",this.loadVideoByUrl);xD(this,"playVideo",this.playVideo);xD(this,"pauseVideo",this.pauseVideo);xD(this,"stopVideo",this.stopVideo);xD(this,"clearVideo",this.clearVideo);
xD(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);xD(this,"getVideoBytesTotal",this.getVideoBytesTotal);xD(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);xD(this,"getVideoStartBytes",this.getVideoStartBytes);xD(this,"cuePlaylist",this.cuePlaylist);xD(this,"loadPlaylist",this.loadPlaylist);xD(this,"nextVideo",this.nextVideo);xD(this,"previousVideo",this.previousVideo);xD(this,"playVideoAt",this.playVideoAt);xD(this,"setShuffle",this.setShuffle);xD(this,"setLoop",this.setLoop);xD(this,
"getPlaylist",this.getPlaylist);xD(this,"getPlaylistIndex",this.getPlaylistIndex);xD(this,"getPlaylistId",this.getPlaylistId);xD(this,"loadModule",this.loadModule);xD(this,"unloadModule",this.unloadModule);xD(this,"setOption",this.setOption);xD(this,"getOption",this.getOption);xD(this,"getOptions",this.getOptions);xD(this,"mute",this.mute);xD(this,"unMute",this.unMute);xD(this,"isMuted",this.isMuted);xD(this,"setVolume",this.setVolume);xD(this,"getVolume",this.getVolume);xD(this,"seekTo",this.seekTo);
xD(this,"getPlayerState",this.getPlayerState);xD(this,"getPlaybackRate",this.getPlaybackRate);xD(this,"setPlaybackRate",this.setPlaybackRate);xD(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);xD(this,"getPlaybackQuality",this.getPlaybackQuality);xD(this,"setPlaybackQuality",this.setPlaybackQuality);xD(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);xD(this,"getCurrentTime",this.getCurrentTime);xD(this,"getDuration",this.getDuration);xD(this,"addEventListener",this.addEventListener);
xD(this,"removeEventListener",this.removeEventListener);xD(this,"getDebugText",this.getDebugText);xD(this,"getVideoData",this.getVideoData);xD(this,"addCueRange",this.addCueRange);xD(this,"removeCueRange",this.removeCueRange);xD(this,"setSize",this.setSize);xD(this,"getApiInterface",this.getApiInterface);xD(this,"destroy",this.destroy);xD(this,"showVideoInfo",this.showVideoInfo);xD(this,"hideVideoInfo",this.hideVideoInfo);xD(this,"isVideoInfoVisible",this.isVideoInfoVisible);xD(this,"getSphericalProperties",
this.getSphericalProperties);xD(this,"setSphericalProperties",this.setSphericalProperties);this.app.g.Kb||(xD(this,"getVideoEmbedCode",this.getVideoEmbedCode),xD(this,"getVideoUrl",this.getVideoUrl));xD(this,"getMediaReferenceTime",this.getMediaReferenceTime);yD(this,"getInternalApiInterface",this.getInternalApiInterface);yD(this,"getAdState",this.getAdState);yD(this,"sendAbandonmentPing",this.sendAbandonmentPing);yD(this,"setLoopRange",this.setLoopRange);yD(this,"getLoopRange",this.getLoopRange);
g.O(this.app.g.experiments,"web_player_autonav_api_killswitch")||yD(this,"setAutonavState",this.setAutonavState);g.O(this.app.g.experiments,"web_player_autonav_api_killswitch")||yD(this,"setAutonav",this.setAutonav);yD(this,"isNotServable",this.isNotServable);yD(this,"channelSubscribed",this.channelSubscribed);yD(this,"channelUnsubscribed",this.channelUnsubscribed);yD(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);yD(this,"togglePictureInPicture",this.togglePictureInPicture);yD(this,
"enqueueVideoByPlayerVars",function(d){return c.enqueueVideoByPlayerVars(d)});
yD(this,"clearQueue",this.clearQueue);yD(this,"isFastLoad",function(){return!1});
yD(this,"handleExternalCall",this.handleExternalCall);yD(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);yD(this,"getStatsForNerds",this.getStatsForNerds);yD(this,"setScreenLayer",this.setScreenLayer)};
xD=function(a,b,c){a.A[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)};
yD(a,b,c);a.F.push(b)};
AD=function(a,b,c){a.D[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)};
yD(a,b,c);a.F.push(b)};
yD=function(a,b,c){a.l[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)}};
BD=function(a){a.i||(a.i={},g.Ra(a.i,a.A),g.Ra(a.i,a.D),a.i.addEventListener=(0,g.x)(a.iD,a),a.i.removeEventListener=(0,g.x)(a.jD,a));return a.i};
CD=function(a,b,c){g.O(a.app.g.experiments,"web_player_gel_logging_killswitch")||Ns(b,c)};
ED=function(a,b,c){b=g.pd(Math.floor(b),0,100);isFinite(b)&&DD(a.app,{volume:b,muted:a.isMuted()},c)};
FD=function(a,b){DD(a.app,{muted:!0,volume:a.getVolume()},b)};
GD=function(a,b){DD(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.ID=function(a){return(a=HD(a.app.o))?a.mk:null};
JD=function(){this.endTime=this.startTime=-1;this.Fp="-";this.playbackRate=1;this.visibilityState=0;this.xp="";this.volume=this.connectionType=this.cg=0;this.muted=!1};
LD=function(a){this.i=a;this.F=!1;this.g=0;this.u=-1;this.I=this.i.pd().volume;this.H=this.i.pd().muted;this.A=NaN;this.l=0;this.Wa=[];this.o=KD(this.i);this.B=this.D=0};
MD=function(a){a.o.startTime=a.l;a.o.endTime=a.g;a.Wa.length&&g.Va(a.Wa).isEmpty()?a.Wa[a.Wa.length-1]=a.o:a.Wa.length&&a.o.isEmpty()||a.Wa.push(a.o);a.D+=a.g-a.l;a.o=KD(a.i);a.l=a.g};
ND=function(a){return a.D+a.i.g()-a.l};
OD=function(a){a.Wa.length&&a.g==a.l||MD(a);var b=a.Wa;a.Wa=[];return b};
PD=function(a,b,c){c-=a.A;return b==a.g&&.5<c};
QD=function(a,b,c,d){this.rb=b;this.segments=[];this.experimentIds=[];this.adQueryId=null;this.tg=this.X=this.isFinal=this.Ca=this.I=this.autoplay=this.autonav=!1;this.ga="yt";this.i=this.o=null;this.P=!1;this.l="watchtime"==c;this.A="playback"==c;this.M="delayplay"==c;this.R="atr"==c;this.Ea="engage"==c;this.Ji=!1;this.ma=this.R?"/api/stats/"+c:"//"+b.ij+"/api/stats/"+c;d&&(this.X=d.fs,d.rtn&&(this.i=d.rtn),this.l?(this.playerState=d.state,0<d.rti&&(this.o=d.rti)):(this.Ia=d.mos,this.Ra=d.volume,
d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview&&(this.ea=d.inview),d.size&&(this.oa=d.size));this.deviceParams=g.bc(b.deviceParams);this.xa=b.ya;this.experimentIds=b.experiments.experimentIds;this.Y=b.Yb;this.ga=b.Y;this.region=b.region;this.userAge=b.userAge;this.Z=b.lf;this.ab=Cs();this.Ji=b.Ca;this.B=tC(a);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=g.sC(a);this.autonav=a.fi||this.autonav;this.contentVideoId=qC(a);this.clientPlaybackNonce=a.clientPlaybackNonce;
this.I=a.Pb;a.nl&&(this.H=a.nl,this.wa=a.Xi);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.kg=a.kg;this.se=a.se;a.za&&(this.na=gv(a.za),a.Zb&&gv(a.Zb)!=this.na&&(this.F=gv(a.Zb)));a.ia&&Zw(a.ia)&&(this.offlineDownloadUserChoice="1");this.ya=g.pC(a);this.tg=a.tg;this.gh=a.gh;if(b=bC(a))this.Qa=b;this.ni=a.ni;this.oe=a.oe;this.eventId=a.eventId;this.playlistId=a.fB||a.playlistId;this.fo=a.fo;this.Be=a.Be;this.Ce=a.Ce;this.Xk=a.Xk;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=
a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.zs=a.zs;this.referrer=a.referrer;this.Ei=a.Ms||a.Ei;this.Si=a.Si;this.Eo=a.Eo;this.pg=a.pg};
RD=function(a,b){var c=a.B&&Oq(),d=a.Ji&&!!a.visitorData;if(!c&&!d)return null;var e={};c&&(e.Authorization="Bearer "+a.B);d&&(e["X-Goog-Visitor-Id"]=a.visitorData);return{headers:e,withCredentials:!0,ed:b}};
Aha=function(a,b,c,d){b.cmt=b.len;b.lact="0";d=d();d=d.toFixed(3);b.rt=(1*d).toString();a=g.bh(a,b);c?g.br(a,c):g.xr(a)};
TD=function(a){var b={ns:a.ga,el:a.ya,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.g(a.kg),ei:a.eventId,fmt:a.na,fs:a.X?"1":"0",rt:a.g(a.Ya),of:a.zs,adformat:a.adFormat,content_v:a.contentVideoId,euri:a.xa,lact:a.ab,live:a.Qa,cl:"257652704",mos:a.Ia,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.Ra};a.adQueryId&&(b.aqi=a.adQueryId);a.subscribed&&(b.subscribed="1");g.Ra(b,a.deviceParams);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.I&&(b.dni="1");
a.isFinal&&(b["final"]="1");a.tg&&(b.splay="1");a.se&&(b.delay=a.se);a.Y&&(b.hl=a.Y);a.region&&(b.cr=a.region);g.Ca(a.userAge)&&a.Z&&(b.uga=a.Z+a.userAge);g.Ca(a.aa)&&(b.len=a.g(a.aa));!a.l&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.i&&(b.rtn=a.g(a.i));a.Ei&&(b.feature=a.Ei);a.playlistId&&(b.list=a.playlistId);a.Be&&(b.ctrl=a.Be);a.Ce&&(b.ytr=a.Ce);a.Xk&&(b.ssrt="1");a.F&&(b.afmt=a.F);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.T&&(b.lio=a.g(a.T));
a.l?(b.idpj=a.gh,b.ldpj=a.ni,null!=a.o&&(b.rti=a.g(a.o))):g.Ca(a.adType)&&(b.at=a.adType);a.oa&&(a.A||a.M)&&(b.size=a.oa);null!=a.ea&&(a.A||a.M)&&(b.inview=a.g(a.ea));a.l&&(b.volume=SD(a,(0,g.ge)(a.segments,function(d){return d.volume})),b.muted=SD(a,(0,g.ge)(a.segments,function(d){return d.muted?1:0})),b.st=SD(a,(0,g.ge)(a.segments,function(d){return d.startTime})),b.et=SD(a,(0,g.ge)(a.segments,function(d){return d.endTime})),(0,g.Oj)(a.segments,function(d){return 1!=d.playbackRate})&&(b.rate=SD(a,
(0,g.ge)(a.segments,function(d){return d.playbackRate}))));
(0,g.Oj)(a.segments,function(d){return 0!=d.visibilityState})&&(b.vis=SD(a,(0,g.ge)(a.segments,function(d){return d.visibilityState})));
(0,g.Oj)(a.segments,function(d){return 0!=d.connectionType})&&(b.conn=SD(a,(0,g.ge)(a.segments,function(d){return d.connectionType})));
(0,g.Oj)(a.segments,function(d){return 0!=d.cg})&&(b.blo=SD(a,(0,g.ge)(a.segments,function(d){return d.cg})));
(0,g.Oj)(a.segments,function(d){return"-"!=d.Fp})&&(b.cc=(0,g.ge)(a.segments,function(d){return d.Fp}).join(","));
if((0,g.Oj)(a.segments,function(d){return!!d.xp})){var c="au";
a.A&&(c="au_d");b[c]=(0,g.ge)(a.segments,function(d){return d.xp}).join(",")}Oq()&&a.H&&(b.ctt=a.H,b.cttype=a.wa,b.mdx_environment=a.mdxEnvironment);
a.Ea&&(b.etype=g.Ca(a.u)?a.u:0);a.Si&&(b.uoo=a.Si);a.Eo&&(b.upt=a.Eo);a.pg&&(b.wpid=a.pg);return b};
SD=function(a,b){return(0,g.ge)(b,a.g).join(",")};
Bha=function(a,b,c,d,e,f,k,l,m,n,p,r,v){this.videoData=a;this.rb=b;this.pd=c;this.o=d;this.g=e;this.l=f;this.B=k;this.getAudioTrack=l;this.getPlaybackRate=m;this.u=n;this.getVisibilityState=p;this.A=r||function(){};
this.i=null;this.D=v||function(){}};
g.VD=function(a){return UD(a)()};
UD=function(a){if(!a.i){var b=g.Qa(function(c){var d=g.M();c&&631152E6>=d&&(g.L(Error("invalid yt.global.now value: "+d)),d=(new Date).getTime()+2);return d},g.O(a.rb.experiments,"html5_validate_yt_now"));
a.i=g.Qa(function(c){return Math.round(b()-c)/1E3},b());
a.D()}return a.i};
g.WD=function(a){var b=a.pd();g.Ra(b,a.videoData.pd());return b};
YD=function(a){if(navigator.connection&&navigator.connection.type)return XD[navigator.connection.type]||XD.other;if(g.uz(a.rb)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
KD=function(a){var b=new JD;b.Fp=a.pd().cc||"-";b.playbackRate=a.getPlaybackRate();var c=a.getVisibilityState();0!=c&&(b.visibilityState=c);a.rb.cg&&(b.cg=1);c=a.getAudioTrack();c.kb&&c.kb.id&&"und"!=c.kb.id&&(b.xp=c.kb.id);b.connectionType=YD(a);b.volume=a.pd().volume;b.muted=a.pd().muted;return b};
g.ZD=function(a,b){this.state=a;this.g=b};
$D=function(a,b){return g.T(a.state,b)&&!g.T(a.g,b)?1:!g.T(a.state,b)&&g.T(a.g,b)?-1:0};
g.aE=function(a,b){return 0<$D(a,b)};
g.bE=function(a,b){return a.B+"timedtext_video?ref=player&v="+b.videoId};
cE=function(a){g.A.call(this);this.g=a;this.i=new LD(a);this.u="paused";this.A=NaN;this.F=[10,10,10,40];this.H=this.D=0;this.P=this.M=this.aa=this.T=this.R=this.I=this.l=!1;this.o=NaN};
dE=function(a,b,c){var d=g.VD(a.g);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.F[a.D];a.D+1<a.F.length&&a.D++;c+=e;d=1E3*(c-d);a.A=g.eq((0,g.x)(a.Y,a,c,b),d);return c};
eE=function(a,b){var c=g.WD(a.g);g.Ra(c,{state:a.u});c=new QD(a.g.videoData,a.g.rb,b,c);c.kg=a.g.g();a.g.videoData.sa||(c.aa=a.g.o());if(a.g.videoData.ia){var d=mx(a.g.videoData.ia,c.kg);d&&(c.T=d-c.kg)}c.Ya=g.VD(a.g);c.segments=[KD(a.g)];return c};
fE=function(a,b){var c=eE(a,"watchtime");c.segments=b;c.kg=a.i.g;return c};
gE=function(a){a.i.update();return fE(a,OD(a.i))};
jE=function(a){a.g.videoData.remarketingUrl&&!a.T&&(g.hE(a,a.g.videoData.remarketingUrl),a.T=!0);a.g.videoData.youtubeRemarketingUrl&&!a.aa&&(g.hE(a,a.g.videoData.youtubeRemarketingUrl),a.aa=!0);a.g.videoData.googleRemarketingUrl&&!a.M&&(g.hE(a,a.g.videoData.googleRemarketingUrl),a.M=!0);a.g.videoData.ppvRemarketingUrl&&!a.P&&(g.hE(a,a.g.videoData.ppvRemarketingUrl),a.P=!0);iE(a)};
kE=function(a){a.o=fq((0,g.x)(a.B,a,"heartbeat"),3E4)};
iE=function(a){a.g.videoData.Rc.eventLabel=g.pC(a.g.videoData);a.g.videoData.Rc.playerStyle=a.g.rb.playerStyle;a.g.videoData.ao&&(a.g.videoData.Rc.feature="pyv");a.g.videoData.Rc.vid=a.g.videoData.videoId;var b=a.g.videoData.Rc;a=a.g.videoData;a=a.isAd()||!!a.ao;b.isAd=a};
Cha=function(a){var b=eE(a,"engage");b.u=1;a=UD(a.g);return g.Qa(Aha,b.ma,TD(b),RD(b),a)};
g.hE=function(a,b,c){a.g.rb.Ca&&a.g.videoData.visitorData&&Nq(b)?g.br(b,{ed:c,headers:{"X-Goog-Visitor-Id":a.g.videoData.visitorData}}):g.xr(b,c)};
lE=function(a,b){zD.call(this,a,b);var c=this;this.g=!1;AD(this,"getPresentingPlayerType",this.getPresentingPlayerType);AD(this,"addInfoCardXml",this.addInfoCardXml);AD(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);AD(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);AD(this,"preloadVideoByPlayerVars",function(d,e,f,k){return c.preloadVideoByPlayerVars(d,e,f,k)});
AD(this,"seekBy",this.seekBy);AD(this,"updatePlaylist",this.updatePlaylist);AD(this,"updateLastActiveTime",this.updateLastActiveTime);AD(this,"updateVideoData",this.updateVideoData);AD(this,"canPlayType",this.canPlayType);AD(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);AD(this,"setCardsVisible",this.setCardsVisible);g.O(this.app.g.experiments,"web_player_autonav_api_killswitch")&&(AD(this,"setAutonav",this.setAutonav),AD(this,"setAutonavState",this.setAutonavState));AD(this,"showControls",
this.showControls);AD(this,"hideControls",this.hideControls);AD(this,"setSafetyMode",this.setSafetyMode);AD(this,"cancelPlayback",this.cancelPlayback);AD(this,"isInline",this.isInline);AD(this,"isAtLiveHead",this.isAtLiveHead);AD(this,"setInline",this.setInline);AD(this,"getVideoAspectRatio",this.getVideoAspectRatio);AD(this,"getPreferredQuality",this.getPreferredQuality);AD(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);AD(this,"onAdUxClicked",this.onAdUxClicked);AD(this,"getPlayerResponse",
this.getPlayerResponse);AD(this,"getStoryboardFormat",this.getStoryboardFormat);AD(this,"getStoryboardFrame",this.getStoryboardFrame);AD(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);AD(this,"getStoryboardLevel",this.getStoryboardLevel);AD(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);AD(this,"getProgressState",this.getProgressState);AD(this,"getAudioTrack",this.gD);AD(this,"setAudioTrack",this.setAudioTrack);AD(this,"getAvailableAudioTracks",this.hD);AD(this,
"getMaxPlaybackQuality",this.getMaxPlaybackQuality);AD(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);AD(this,"setUserEngagement",this.setUserEngagement);AD(this,"getVideoContentRect",this.getVideoContentRect);AD(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);AD(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);AD(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);AD(this,"setMinimized",this.setMinimized);AD(this,"setBlackout",
this.setBlackout);AD(this,"getVisibilityState",this.getVisibilityState);AD(this,"setFauxFullscreen",this.setFauxFullscreen);AD(this,"toggleFullscreen",this.toggleFullscreen);AD(this,"getVideoStats",this.getVideoStats);AD(this,"getPlayerSize",this.getPlayerSize);AD(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);AD(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);AD(this,"setInternalSize",this.setInternalSize);AD(this,"getHousebrandProperties",this.getHousebrandProperties);AD(this,
"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);AD(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);AD(this,"getCurrentBroadcastId",this.getCurrentBroadcastId);AD(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);AD(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);AD(this,"setSizeStyle",this.setSizeStyle);AD(this,"forceFrescaUpdate",this.forceFrescaUpdate);AD(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);AD(this,"setGlobalCrop",this.setGlobalCrop);
AD(this,"wakeUpControls",this.wakeUpControls);AD(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);AD(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);AD(this,"toggleSubtitles",this.toggleSubtitles)};
mE=function(a){a=(a=HD(a.app.o))?a.mk:null;return a?(a=a.ww())?a.I:null:null};
nE=function(a,b){this.l=a;this.g=b||null;this.i=!1};
pE=function(a,b,c){var d=g.fz(b.Oa)&&b.Oa.kd&&rC(b);if(b.Oa.hd&&(bz(b.Oa)||g.Kz(b.Oa)||d)&&!a.i){a.i=!0;g.Xp("TIMING_ACTION")||Wp("TIMING_ACTION",a.l.zd);a.l.ab&&Wp("CSI_SERVICE_NAME",a.l.ab);if(a.g){b=a.g.Z;for(var e in b)UB(e,b[e],"");e=a.g.X;for(var f in e)oE(f,e[f],"");f=a.g;f.Z={};f.X={}}oE("yt_pvis",Uga(),"");oE("yt_pt","html5","");c&&!qB("pbs","")&&UB("pbs",c,"");a=a.l;!g.Kz(a)&&!bz(a)&&qB("_start","")&&xB("")}};
g.qE=function(a,b,c){g.A.call(this);this.start=a;this.end=b;this.u=Dha++;a=c||{};this.A=a.id||"";this.B=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.namespace=a.namespace||"";this.color="";if(b=a.color)b=b.toString(16),this.color="#"+Array(7-b.length).join("0")+b;this.i=null;this.tooltip=a.tooltip;this.icons=a.icons?a.icons.filter(function(d){return(0,g.mj)(d.thumbnails,function(e){return g.Cv(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
rE=function(a){return-0x8000000000000==a?"BEFORE_MEDIA_START":0==a?"MEDIA_START":0x7ffffffffffff==a?"MEDIA_END":0x8000000000000==a?"AFTER_MEDIA_END":a.toString()};
Eha=function(a,b){switch(a.style){case "ytp-chapter-marker":return b?8:5;case "ytp-ad-progress":return 6;case "ytp-time-marker":return Number.POSITIVE_INFINITY;default:return 0}};
g.sE=function(a,b){return a.start-b.start||a.B-b.B||a.u-b.u};
g.tE=function(a){return"crn_"+a};
g.uE=function(a,b){this.type=a||"";this.id=b||""};
g.wE=function(a,b){g.N.call(this);this.Oa=a;this.startSeconds=0;this.QA=!1;this.Ta=0;this.title="";this.wg=0;this.Ba=[];this.ik=this.dd=!1;this.Cb=this.Pv=this.Ok=null;var c=b.session_data;c&&(this.Cb=Fq(c));this.views=0;this.HC=0!=b.fetch;this.Fd=[];this.Ta=Math.max(0,b.index||0);this.loop=!!b.loop;this.startSeconds=parseInt(b.startSeconds,10)||0;this.XH="1"==b.mob;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author=b.author||b.playlist_author||"";this.ff={};b.video_id&&
(this.Ba[this.Ta]=b);if(c=b.api)"string"==typeof c&&16==c.length?b.list="PL"+c:b.playlist=c;this.Xm=0;if(c=b.list)switch(b.listType){case "user_uploads":this.ik||(this.listId=new g.uE("UU","PLAYER_"+c),vE(this,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:c}));break;case "user_favorites":this.ik||(this.listId=new g.uE("FL","PLAYER_"+c),vE(this,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:c}));break;case "search":Fha(this,c);break;default:var d=b.playlist_length;
d&&(this.wg=parseInt(d,0));this.listId=new g.uE(c.substr(0,2),c.substr(2));(c=b.video)?(this.Ba=c.slice(0),this.dd=!0):Gha(this)}else b.playlist&&(c=b.playlist.toString().split(","),0<this.Ta&&(this.Ba=[]),c.forEach(function(e){e&&this.Ba.push({video_id:e})},this),this.wg=this.Ba.length,c=this.Ba.map(function(e){return e.video_id}),vE(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:c.join(",")}),this.dd=!0);
this.setShuffle(!!b.shuffle);if(c=b.suggestedQuality)this.quality=c;this.ff=KA(b,"playlist_");this.ZA=(c=b.thumbnail_ids)?c.split(","):[]};
xE=function(a){return!!(a.playlist||a.list||a.api)};
yE=function(a){var b=a.Ta+1;return b>=a.wg?0:b};
zE=function(a){var b=a.Ta-1;return 0>b?a.wg-1:b};
AE=function(a,b){a.Ta=g.pd(b,0,a.wg-1);a.startSeconds=0};
Fha=function(a,b){if(!a.ik){a.listId=new g.uE("SR",b);var c={search_query:b};a.XH&&(c.mob="1");vE(a,"/search_ajax?style=json&embeddable=1",c)}};
Gha=function(a){if(!a.ik){var b=b||a.listId;b={list:b};var c=a.ua();c&&c.videoId&&(b.v=c.videoId);vE(a,"/list_ajax?style=json&action_get_list=1",b)}};
vE=function(a,b,c){a.HC&&g.br(g.bh(b,c),{format:"JSON",onSuccess:(0,g.x)(function(d,e){BE(this,e)},a),
onError:(0,g.x)(function(){this.N("error")},a)})};
BE=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;var c=b.loop;c&&(a.loop=c);c=a.ua();a.Ba=[];b.video.forEach(function(e){e&&(e.video_id=e.encrypted_id,this.Ba.push(e))},a);
a.wg=a.Ba.length;var d=b.index;d?a.Ta=d:a.Ej(c);a.setShuffle(!1);a.ik=!1;a.dd=!0;a.Xm++;a.Ok&&a.Ok()}};
CE=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
EE=function(a,b){this.P=a;this.aa=b;this.g=new DE(0,0,null);this.o=8;this.l=[];this.B=[];this.u=this.F=NaN;this.M=this.i=this.H=0;this.A=NaN;this.T=0;this.R=!1;this.D=null;this.I=0};
FE=function(a){return{startTime:a.A/a.i,duration:a.M/a.i}};
GE=function(a){a.A=NaN;a.M=0;a.D=null;a.I=0};
HE=function(a){return!isNaN(a.u)&&a.i?a.u/a.i:a.T};
IE=function(a,b,c){var d=b.getUint32(c);b=b.getUint32(c+4);a.g=new DE(b,d,a.g);return 8};
JE=function(a){a.i&&!isNaN(a.F)&&(a.u=Math.floor(a.F*a.i),a.F=NaN)};
KE=function(a){return 0==a.g.type||1836019574==a.g.type||1952867444==a.g.type||1936286840==a.g.type||1953653094==a.g.type||1836019558==a.g.type||1836476516==a.g.type};
LE=function(a,b,c){for(var d=c;d<b.byteLength;d++)a.l.push(b.getUint8(d));0<c&&a.B.push(new DataView(b.buffer,b.byteOffset,c))};
ME=function(a,b,c){return new Vt(b,c,a.g.size,a.g.type,!0)};
DE=function(a,b,c){this.type=a;this.size=b;this.parent=c;this.offset=this.version=0};
Hha=function(a,b){this.B=a;this.u=b;this.A=a.yC;this.o=new Uint8Array(this.A);this.l=this.i=0;this.g=null;this.D=[];this.F=this.H=null};
OE=function(a,b){if(1==b.info.type)a.H=Yu(0,b.range.length);else if(2==b.info.type){if(!a.g||1!=a.g.type)return;a.F=Yu(a.l*a.A+a.i,b.range.length)}else if(3==b.info.type){if(3==a.g.type&&!bv(a.g,b.info)&&(a.D=[],b.info.i!=dv(a.g)||0!=b.info.l))return;if(b.info.o)a.D.map(function(c){return NE(a,c)}),a.D=[];
else{a.D.push(b);a.g=b.info;return}}NE(a,b);a.g=b.info;Iha(a)};
NE=function(a,b){for(var c=0;c<b.range.length;){var d=Math.min(b.range.length-c,a.o.byteLength-a.i),e=new Uint8Array(b.g,b.range.start+c,d);a.o.set(e,a.i);a.i+=d;c+=d;a.i==a.o.length&&(qA(a.B.A,a.u.info,a.l,a.o),a.o=new Uint8Array(a.A),a.i=0,a.l+=1)}};
Iha=function(a){if(a.g&&a.g.u){if(a.i){var b=new Uint8Array(a.o.buffer,0,a.i);qA(a.B.A,a.g.g.info,a.l,b)}b=g.bc(a.u.H);b.url="local://localhost/videoplayback?"+Gq({lmt:a.u.lastModified,docid:a.B.A,fmtid:a.u.info.id,csz:a.A,clen:a.l*a.A+a.i});b.lmt=""+a.u.lastModified;b.init=a.H.toString();b.index=a.F.toString();b=Gq(b);Hga(a.B.A,!!a.u.info.video,b)}};
Jha=function(a){for(var b=new Uint8Array(0),c=new DataView(a.buffer,a.byteOffset,a.length),d=0;d<a.length-8;){var e=c.getUint32(d);if(1>=e)break;var f=c.getUint32(d+4);if(1836019574==f)d+=8;else{if(1886614376==f){f=a.subarray(d,d+e);var k=new Uint8Array(b.length+f.length);k.set(b);k.set(f,b.length);b=k}d+=e}}return b};
Kha=function(a){a=zu(a,1886614376);(0,g.y)(a,function(b){return!b.i});
return(0,g.ge)(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
Lha=function(a){var b=nj(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
(0,g.y)(a,function(e){c.set(e,d);d+=e.length});
return c};
PE=function(a){return g.ke(a,!0).replace(/[\.]{1,2}$/,"")};
QE=function(a,b,c,d){var e=this;this.i=a;a=Xu(this.i.get("range")||"");if(!a)throw Error("bad range");this.o=a;this.u=c;this.status=0;this.response=null;this.g=[];this.dd=0;this.l="";Mha(this).then(d,function(f){e.l=""+f||"unknown_err";d()});
b()};
Mha=function(a){var b,c,d,e,f,k,l,m,n,p,r,v,z;return xa(function(C){if(1==C.g){a.status=200;b=a.i.get("docid");c=a.i.get("fmtid");d=+a.i.get("csz");if(!b||!c||!d)throw Error("Invalid local URL");e=a.o;f=Math.floor(e.start/d);k=Math.floor(e.end/d);l=f}if(5!=C.g)return l<=k?C=ua(C,Jga(b,c,l),5):(C.g=0,C=void 0),C;m=C.u;n=l*d;p=(l+1)*d;r=Math.max(0,e.start-n);v=Math.min(e.end+1,p)-(r+n);z=new Uint8Array(m.buffer,r,v);a.g.push(z);a.dd+=v;a.dd<e.length&&a.u((0,g.D)(),a.dd);l++;C.g=2})};
Nha=function(a,b){this.i=a;this.A=this.u=!1;this.length=b?b:0;this.l=0;this.g=[];this.o=null;this.length?1!=this.i.length||this.i[0].La||(this.i[0].La=this.length):1==this.i.length||(0,g.mj)(this.i,function(c){return!!c.range})};
Oha=function(a){var b=a.length-a.l;(0,g.y)(a.g,function(c){b+=c.range.length});
return b};
Pha=function(a,b){this.i=a;this.g=b};
RE=function(a,b){if(0>b)return!0;var c=a.g.sb();return b<c||b==c&&!a.i.M||b==c&&(c=Fw(a.g))&&b==c.zb?!0:!1};
Qha=function(a,b,c){if(!RE(a,b))return 0;if(!a.i.g||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.g.sb();return b<c||b==c&&(a=Fw(a.g))&&b==a.zb&&!a.g?2:1};
Rha=function(a,b,c,d){if(RE(a,b))return d;b=0;a.i.g&&(b=.2);return c+1E3*(a.g.g+b)};
Sha=function(a,b,c,d,e){b=Qha(a,b,e);if(2==b)return d;c=b?d:c+1E3*a.g.g;a.i.g&&(c+=1E3*a.g.g);return c};
Tha=function(a){this.A=a;this.o=NaN;this.u=[];this.l=this.g=this.i=0};
Uha=function(a,b,c,d,e){this.wa=null;this.i=a;this.xa=b;this.ya=c;this.R=d;this.B=e;this.Z=this.g=NaN;this.na=0;this.T=this.ga=this.l=this.A=NaN;this.ea=this.oa=this.o=!1;this.u=0;this.X=My(this.i);this.Y=NaN;this.I=this.F=Infinity;this.M=NaN;this.ma=!1;this.H=this.P=NaN;this.D=this.aa=null};
SE=function(a){return{rt:((0,g.D)()-a.g).toFixed(),lb:a.l.toFixed(),pt:(1E3*a.Y).toFixed(),pb:a.xa.toFixed(),stall:(1E3*a.u).toFixed(),elbowTime:(a.Z-a.g).toFixed(),elbowBytes:a.na.toFixed()}};
TE=function(a){a.H||(a.H=a.wa(),3==a.H&&(a.aa=new Tha(a.i)));return a.H};
YE=function(a,b,c,d){var e=(b-a.A)/1E3,f=c-a.l,k=TE(a);if(3==k&&f){var l=a.aa;l.u.push({cn:f,nt:isNaN(l.o)?NaN:d-l.o,tR:d});l.o=d}a.o?1==k&&0<f&&(.2<e||1024>f?(a.u+=e,.2<e&&XE(a,.05,f)):XE(a,e,f),a.ea=!0):UE(a,c)&&(1==k&&(d=(b-a.g)/1E3,VE(a)||WE(a)||(k=a.i,k.B.i(1,d),Gy(k))),a.Z=b,a.na=c,a.o=!0);WE(a)||Jy(a.i,e,f);a.A=b;a.l=c};
XE=function(a,b,c){if(!WE(a)){b=Math.max(b,.05);a=a.i;var d=void 0;a.g.i(void 0===d?b:d,c/b);a.l=g.M()}};
$E=function(a,b,c){c=Math.round(c/1024);a.D&&a.D.push(ZE(b-a.ga,c-a.T));a.ga=b;a.T=c};
UE=function(a,b){return b?a.B&&1!=TE(a)?!0:b>=a.i.policy.o:!1};
aF=function(a){return UE(a,a.l)};
bF=function(a){a.M=a.g+1E3*a.X.delay;a.ma=!1};
cF=function(a,b){var c=a.R.g[0].i;a.F=Math.min(a.F,Rha(a.B,c,a.g,b));a.I=Math.min(a.I,Sha(a.B,c,a.g,b,a.R.l));a.F<=a.g?bF(a):(a.M=a.F,a.ma=!0)};
VE=function(a){a.B&&cF(a,(0,g.D)());return a.ma};
dF=function(a,b){b=void 0===b?(0,g.D)():b;if(a.B){cF(a,b);var c=a.H?a.B?1!=TE(a):!1:a.F!=a.I;if(c){if(c=a.I,b<c){a.P=a.I;return}}else c=a.F;c=Math.max(c,a.M)}else c=a.M;var d=a.xa-a.l;0>d&&a.i.policy.A&&(d=0);d=1E3*(d*a.X.stall+d/a.X.byterate);d=aF(a)?d+b:d+Math.max(b,c);a.P=d};
WE=function(a){return Nv(a.R.i.i)};
ZE=function(a,b){for(var c="";4095<a;)c+=ZE(4095,0),a-=4095;for(;4095<b;)c+=ZE(a,4095),b-=4095,a=0;return c+("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))};
eF=function(a,b,c,d,e,f){this.status=0;this.I=this.response=null;this.aa=d;this.P=c;this.Y=e;this.u=f;this.o=[];this.l=null;this.i=this.g=0;Vha++;this.A=null;this.B=this.u.Wf&&window.AbortController?new AbortController:null;c={method:"GET",credentials:"include"};this.B&&(c.signal=this.B.signal);a=new Request(a,c);fetch(a).then(Zp((0,g.x)(this.xM,this)),Zp((0,g.x)(this.Ox,this)));(0,g.D)();this.M=this.D=this.F=this.H=!1;this.R="";this.T=new g.J(this.Js,50,this);b()};
jF=function(a,b){a.i+=b.length;var c=b.length;var d=fF(a)?1:Math.max(gF(a)/2,16384);c=c>=d;d=b.length+a.g>gF(a);a.M?((c||d)&&0!==a.g&&hF(a),c?a.o.push(b):iF(a,b)):(iF(a,b),a.i>=(fF(a)?1:16384)&&hF(a))};
hF=function(a){a.M=!0;a.o.push(a.l.subarray(0,a.g));a.g=0;a.l=a.H?null:new Uint8Array(gF(a))};
iF=function(a,b){if(b.length+a.g>gF(a)){var c=new Uint8Array(a.g+b.length);c.set(a.l,0);a.l=c}a.l.set(b,a.g);a.g+=b.length};
lF=function(a){if(!a.D){a.H=!0;if(kF(a)&&!a.o.length&&!a.g&&!a.F&&a.i){Aw(a);if(!a.l||8>a.l.length)a.l=new Uint8Array(8);var b=new DataView(a.l.buffer,0,8);b.setUint32(0,8);b.setUint32(4,1936419184);a.g=8;a.i+=8}a.aa()}};
fF=function(a){return a.u.Mb&&a.u.g&&Aw(a)};
kF=function(a){return a.u.lf&&a.u.g&&Aw(a)};
gF=function(a){a=a.Hj()||0;return Math.max(16384,.125*a)};
mF=function(a,b,c,d,e){this.status=0;this.response=null;this.i=this.o=!1;this.l=NaN;this.g=new XMLHttpRequest;this.g.open("GET",a);this.g.responseType="arraybuffer";this.g.withCredentials=!0;this.g.onreadystatechange=(0,g.x)(this.JF,this);this.u=d;this.B=c;this.A=e;a=Zp((0,g.x)(this.HF,this));this.g.addEventListener("load",a,!1);this.g.addEventListener("error",a,!1);this.g.send();b();this.g.addEventListener("progress",Zp((0,g.x)(this.IF,this)),!1)};
nF=function(a,b,c,d){this.o=a;this.info=b;this.timing=c;this.T=d;this.state=1;this.g=this.aa=null;this.B=this.M=0;this.P=new g.J(this.DM,a.H,this);this.u=this.i=this.D=null;this.A=0;this.I=this.l=null;this.R=0;this.Y=this.H=!1;this.F=this.o.Ca&&(cw(this.info)||bw(this.info))};
Wha=function(a,b){a.D=b};
oF=function(a){var b=SE(a.timing);b.shost=a.i?Mv(a.i.g):"";b.rn=a.M.toString();a.A&&(b.rc=a.A.toString());b.itag=""+gv(a.info.g[0].g.info);b.ml=""+ +a.info.g[0].g.sc();b.sq=""+a.info.g[0].i;if(a.i){var c=a.i.g;Lv(c);var d=decodeURIComponent(c.get("mn")||"").split(",");b.ifi=""+ +("/videoplayback"==c.i&&1<d.length&&!!d[1])}410!=a.A&&500!=a.A&&503!=a.A||(b.fmt_unav="true");a.g&&a.g.yn()&&(b.msg=a.g.yn());return b};
pF=function(a){a.i&&Mv(a.i.g);return vv(a.T,a.i?Mv(a.i.g):"")};
rF=function(a){if("net.timeout"==a.u){var b=a.timing,c=(0,g.D)();if(!WE(b)){c=c>b.g&&4E12>c?c:(0,g.D)();$E(b,c,1024*b.T);var d=(c-b.g)/1E3;if(2!=TE(b))if(aF(b))b.u+=(c-b.A)/1E3,Hy(b.i,b.l,b.u);else{if(!VE(b)&&!WE(b)){var e=b.i;e.B.i(1,d);Gy(e)}b.Z=c}e=b.i;var f=b.Y,k=bw(b.R);e.A.i(d,b.l/d);e.l=g.M();k||e.i.i(1,d-f);Jy(b.i,(c-b.A)/1E3,0)}}else(0,g.D)();"net.nocontent"!=a.u&&("net.timeout"==a.u||"net.connect"==a.u?(b=pF(a),b.i+=1):(b=pF(a),b.g+=1),a.info.i.g++);qF(a,7)};
sF=function(a){if(1==a.state)return!0;a=pF(a);return 100>a.i&&6>a.g};
qF=function(a,b){a.state=b;if(5<=a.state){var c=a.timing;c.o&&(c.o=!1)}a.D&&a.D(a)};
uF=function(a,b){if(b){var c=pF(a);c.l+=1}tF(a);a.u="net.timeout";rF(a)};
vF=function(a){return(0,g.mj)(a.info.g,function(b){return 3==b.type})};
tF=function(a){if(a.g){var b=a.g;a.g=null;b.abort()}a=a.timing;a.o&&(a.o=!1)};
xF=function(a){var b=a.g.rd("content-type"),c=a.g.Hj();(b=(!wF(a)||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c))&&wF(a)&&fF(a.g);return b};
Xha=function(a,b){var c=(0,g.x)(a.eM,a),d=(0,g.x)(a.hM,a),e=(0,g.x)(a.gM,a),f=(0,g.x)(a.fM,a);return Nv(a.i.g)?new QE(a.i,d,e,c):a.o.D&&(a.o.iu&&!isNaN(a.info.l)&&a.info.l>a.o.WA?0:zw()&&vF(a))?new eF(b,d,e,c,f,a.o):new mF(b,d,e,c,f)};
wF=function(a){return a.g?a.g.lt():!1};
yF=function(a){return 2<=a.state&&!!a.l&&!!a.l.g.length};
zF=function(a,b){if(b||wF(a)&&!xF(a)){if(!a.l){if(wF(a))a.info.range&&(c=a.info.range.length);else var c=a.g.xn();a.l=new Nha(a.info.g,c)}for(;a.g.ug();){c=a.l;for(var d=a.g.jt(),e=b&&!a.g.ug(),f=0,k=0,l=g.q(c.i),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.La<=c.l)f+=m.La;else{var n=c,p=m;if(1==p.type){n.u=!0;var r=!1}else 3==p.type||4==p.type?(p=n.u&&!n.A,n.A=!0,r=p):r=!1;n=c;var v=c.l-f,z=k;p=d;r=r||m.g.Gx();var C=p.length-z;m.range&&(C=Math.min(m.La-v,C));v=hv(m,m.l+v,C,m.range?m.l+
v+C==m.range.length:!!e);z=Yu(p.byteOffset+z,C);n.g.push(new kv(v,p.buffer,z,r));n=C;c.l+=n;k+=n;f+=m.La;if(k==d.length)break}}}};
Yha=function(a){if(!a.o.g||!isNaN(a.info.l)&&0<a.info.l)return!1;if(!a.g||!a.g.bi())return!0;if(!Aw(a.g))return!1;if(isNaN(a.info.l)){var b=a.g.rd("x-head-seqnum");if(b&&parseInt(b,10)>a.info.g[0].i)return!1}return!0};
AF=function(a,b,c){g.N.call(this);this.B=0;this.o=a;this.i=[];this.l=null;this.u=b;this.aa=c;this.A=this.H=NaN;this.D=null;this.Y=(0,g.x)(function(d){this.o.au&&(this.N("timestamprewrite",d),this.o.au=!1)},this);
this.T=this.R=this.M=this.g=null;this.P=!1;this.I=this.F=null;this.o.A&&(this.I=new Hha(this.o,this.u));this.o.R&&(this.g=new EE(this.o,this.aa))};
BF=function(a){return a.i.length?a.i[0]:null};
CF=function(a){return a.i.length?a.i[a.i.length-1]:null};
$ha=function(a,b,c){b=Zha(a,b,c);(0,g.y)(b,function(d){a.i.push(d);a.I&&OE(a.I,d)})};
IF=function(a,b){try{if(1==b.info.type){var c=lv(b);if(!a.o.Zt&&qw(b.info.g.info)&&"bt2020"==b.info.g.info.ua().primaries){var d=new Bu(c);if(Du(d,[408125543,374648427,174,224,21936,21937])){var e=d.l+d.g;129==c.getUint8(e)&&1==c.getUint8(e+1)&&c.setUint8(e+1,9)}}DF(b);b.info.g.info.xe()&&xw(b.info.g,c);EF(b);FF(a,b)&&(qv(b),rv(b));if(a.u.info.audio&&g.nv(b.info.g.info))if(a.o.Hl){var f=lv(b),k=g.lu(f,0,1701606260),l=g.lu(f,0,1836476516);if(k&&l){k.skip(2);var m=Xt(k),n=Zt(k);c=[];d=[];e=[];f=[];
if(m)for(m=0;m<n;++m)c.push($t(k)),d.push($t(k)),e.push(Xt(k)),f.push(Xt(k));else for(m=0;m<n;++m)c.push(Yt(k)),d.push(Yt(k)),e.push(Xt(k)),f.push(Xt(k));var p=c;var r=d;var v=mu(l);var z=new Vea(r[0]/v,p[0]/v)}else z=null;if(p=z)g.nv(b.info.g.info)&&yu(lv(b)),a.N("gaplessinfo",p)}else g.nv(b.info.g.info)&&yu(lv(b))}b.info.g.Gm(b);GF(a,b)}catch(C){g.L(C),p=ev(b.info),p.hms="1",HF(a,p)}a.I&&OE(a.I,b)};
aia=function(a){var b=a.i.reduce(function(c,d){return c+d.range.length},0);
a.l&&(b+=a.l.range.length);return b};
JF=function(a){return(0,g.ge)(a.i,function(b){return b.info})};
KF=function(a,b){a.P=!1;a.F&&!a.o.ld&&a.N("placeholderrollback",a.F);a.F=null;if(a.g){var c=isNaN(a.A)?b.info.g[0].range?b.info.g[0].A:isNaN(a.g.A)?HE(a.g):FE(a.g).startTime:a.A;a.g.reset();a.R=a.T;a.A=c}a.M=null};
LF=function(a){return a.g?HE(a.g):a.H||0};
DF=function(a){var b=a.info.g.info;pw(b)&&!qw(b)&&(a=lv(a),Ju(new Bu(a)),Iu([408125543,374648427,174,224],21936,a))};
EF=function(a){2==a.info.g.info.containerType&&a.info.xe()&&(a=lv(a),Ju(new Bu(a)),Iu([408125543,374648427,174,224],30320,a)&&Iu([408125543,374648427,174,224],21432,a))};
Zha=function(a,b,c){var d={};if(!c.verify(d)||c.info.g.dr()){var e=Object.assign(d,ev(c.info));e.verification="1";HF(a,e)}c.i&&c.info.xe()&&xw(c.info.g,lv(c));c.info.o&&(a.T=c.info);if(!a.u.ae()){var f=a.M;f&&iv(c.info,f);var k=c;!a.R||(a.o.Bl?bv(a.R,k.info,!0):cv(a.R,k.info))||(a.g&&a.g.reset(),a.H=NaN,a.B=0);a.R=k.info;if(a.g)b:{var l;if(!(l=!isNaN(a.A))){var m=a.g;l=!(!isNaN(m.u)||!isNaN(m.F))}if(l){var n=a.g,p=MF(a,k);n.F=p;JE(n);a.A=NaN}var r=lv(k),v=a.g.process(r),z;if(z=k.info.o){var C=a.g;
z=!(0==C.g.type&&!C.l.length)}if(z&&!a.o.Cl){var F=ev(k.info);F.partialbox="1";HF(a,F)}var E=b.timing,K=!!k.info.l&&1936286840!=v&&!(a.o.lf&&1936419184==v),R=k.info.o;if(3==TE(E)){var V=E.aa;if(V.u.length){var ta=V.u.shift(),db=ta.nt;K||(ta.cn-=Math.min(ta.cn,1500),ta.nt=0);V.i+=ta.cn;V.g+=ta.nt;V.l+=isNaN(db)?0:db;if(R){if(!(0>=V.g)){var ue=V.A,Xe=V.g/1E3,ve=V.l/1E3;ve=void 0===ve?Xe:ve;ue.g.i(ve,V.i/Xe);ue.l=g.M()}V.g=0;V.i=0;V.l=0}}}if(a.o.ou&&a.o.g){if(!a.g.R&&!k.info.o){var vl=null;break b}}else if(isNaN(a.g.A)){vl=
null;break b}var md=a.g,fH=k.info.g.info;if(md.B.length){md.R=!1;for(var Pn=0,Qr=g.q(md.B),qg=Qr.next();!qg.done;qg=Qr.next())Pn+=qg.value.byteLength;if(!md.D||md.D.length-md.I<Pn)md.D=new Uint8Array(Math.max(Pn,md.P.sm+Math.round(fH.g*md.P.om))),md.I=0;var Ij=md.I,Ex=Ij,nd=g.q(md.B);for(qg=nd.next();!qg.done;qg=nd.next()){var jh=qg.value;md.D.set(new Uint8Array(jh.buffer,jh.byteOffset,jh.byteLength),Ij);Ij+=jh.byteLength}md.B.length=0;md.I=Ij;var Fx=new DataView(md.D.buffer,Ex,Pn)}else Fx=null;var Ye=
Fx;if(Ye){var Rr=Yu(Ye.byteOffset,Ye.byteLength),Qn=k.info.l+k.info.La-a.g.l.length-Ye.byteLength,Gja=hv(k.info,Qn,Ye.byteLength,k.info.o);vl=new kv(Gja,Ye.buffer,Rr,k.i&&!Qn)}else vl=null}else{var lz;a.o.jb?lz=a.aa(ov(k),1):lz=MF(a,k);a.A=NaN;var N_=lz;if(g.nv(k.info.g.info)){for(var O_=k.info.g.g,P_=new DataView(k.g),uo=NaN,iJ=NaN,Gs=0;ou(P_,Gs);){var yi=pu(P_,Gs);isNaN(uo)&&(1936286840==yi.type?uo=vu(yi):1836476516==yi.type&&(uo=mu(yi)));if(1952867444==yi.type){!uo&&O_&&(uo=nu(O_));var Q_=tu(yi);
isNaN(iJ)&&(iJ=Math.round(N_*uo)-Q_);ru(yi,Q_+iJ)}Gs=qu(yi.type)?Gs+8:Gs+yi.size}var mz=!0}else{var zi=new Bu(new DataView(k.g));var Hja=k.i?zi:new Bu(new DataView(k.info.g.g.buffer));var Hs=N_,Ija=Tu(Hja),Jja=zi.g;zi.g=0;if(Uu(zi)&&Fu(zi,231)){var R_=Gu(zi,!0);Hs=Math.floor(1E9*Hs/Ija);if(Math.ceil(Math.log(Hs)/Math.log(2)/8)>R_)mz=!1;else{for(var jJ=R_-1;0<=jJ;jJ--)zi.i.setUint8(zi.g+jJ,Hs&255),Hs>>>=8;zi.g=Jja;mz=!0}}else mz=!1}if(mz)a.H=lz+pv(k);else{var S_=ev(k.info);S_.smst="1";HF(a,S_)}vl=
k}var T_=vl;if(!T_)return[];c=T_;FF(a,c)&&(qv(c),rv(c),c.l&&(a.M=c?c.l:null,a.P=!!a.g,iv(c.info,c.l),iv(a.R,c.l),!c.info.g.g&&c.i&&c.l.o&&(c.info.g.g=mv(c,c.l.o))));c.i&&(DF(c),EF(c));var kJ=c,Gd=a.M;if(Gd){if(kJ.info.o){a.P=!1;a.F=null;if(a.g){var U_=FE(a.g);GE(a.g);var lJ=U_.startTime;var V_=U_.duration}else lJ=ov(kJ),V_=pv(kJ);var W_=new St(Gd.i,lJ,V_,Gd.ingestionTime,"sq/"+Gd.i,void 0,void 0,!1);a.N("segmentinfo",W_);var nz;if(nz=Gd.g["Cuepoint-Type"]?new eu(NF?parseFloat(Gd.g["Cuepoint-Playhead-Time-Sec"])||
0:-(parseFloat(Gd.g["Cuepoint-Playhead-Time-Sec"])||0),parseFloat(Gd.g["Cuepoint-Total-Duration-Sec"])||0,Gd.g["Cuepoint-Context"],Gd.g["Cuepoint-Identifier"]||"",bia[Gd.g["Cuepoint-Event"]||""]||"unknown",parseFloat(Gd.g["Cuepoint-Playhead-Time-Sec"])||0):null)nz.g+=lJ,a.N("cuepoint",nz,Gd.i);var X_=W_}else{if(a.P&&a.g&&!isNaN(a.g.A)){var Lja=FE(a.g).startTime;var nJ=new St(Gd.i,Lja,Gd.B,Gd.ingestionTime,"sq/"+Gd.i,void 0,void 0,!0);a.F=nJ;a.N("placeholderinfo",nJ);a.P=!1;var Y_=nJ}else Y_=null;
X_=Y_}var Z_=X_}else Z_=null;var oJ=Z_;var $_=c;if(a.o.iA)if(oJ){jv($_.info,oJ);for(var a0=g.q(b.info.g),pJ=a0.next();!pJ.done;pJ=a0.next())jv(pJ.value,oJ)}else a.F&&jv($_.info,a.F);c.info.o&&(a.M=null);GF(a,c)}if(a.o.ju&&!a.u.ae()&&OF(a,c)&&3==c.info.type&&c.info.duration&&!a.o.R){var b0=c;a.B+=1E3*(pv(b0)-b0.info.duration);if(a.D&&Math.abs(a.B-a.D.B)>=a.o.vA){var $l=c,qJ=(a.D.B-a.B)/1E3,c0=pv($l)+qJ,Mja=new DataView($l.g),d0=g.lu(Mja,0,1936286840);var rJ=d0?vu(d0):NaN;if(isNaN(rJ)){var e0=$l.info.g.g,
Nja=new DataView($l.g),f0=g.lu(Nja,0,1836476516);rJ=f0?mu(f0):e0?nu(e0):NaN}var pz=PF(a,$l,c0*rJ);if(pz&&pz.length){var sJ=ev($l.info);sJ.fds=c0.toFixed(3);sJ.com=a.B.toFixed(3);a.N("timestamprewrite",sJ);a.H+=qJ;a.B+=1E3*qJ}return pz?pz:QF(a,$l)}}if(a.o.ab&&a.u.ae()&&OF(a,c)){var rz=c,Oja=rz.info.g.index.hq(rz.info.i),h0=PF(a,rz,Oja);var i0=h0?h0:QF(a,rz)}else{if(a.u.A&&a.u.ae()&&c.info.i==c.info.g.index.sb()&&OF(a,c)){var sz=c;var j0=RF(a,sz);if(j0){var Rf=g.lu(j0,0,1953658222);if(Rf){Rf.skip(1);
var vo=Wt(Rf)<<16|Xt(Rf),Pja=vo&1,Qja=vo&4;if(vo&256){var Rja=vo&512,Sja=vo&1024,Tja=vo&2048,k0=Zt(Rf);if(!(2>k0)){Pja&&Rf.skip(4);Qja&&Rf.skip(4);var Uja=Zt(Rf);Rf.skip((k0-1)*(4+(Rja?4:0)+(Sja?4:0)+(Tja?4:0))-4);Rf.data.setUint32(Rf.offset+Rf.g,Uja)}}}var uJ=[];a.l&&a.l!=sz&&(uJ.push(a.l),a.l=null);uJ.push(sz);var l0=uJ}else l0=null;var m0=l0;var n0=m0?m0:QF(a,sz)}else{var tz=c;if(a.D&&a.D.u.A&&tz.info.xe()&&!(a.getDuration()>=a.D.getDuration())&&a.u.ae()&&tz.info.i==tz.info.g.index.sb()&&OF(a,
tz)){var Is=c,Vja=a.D.getDuration()-a.getDuration();var vJ=RF(a,Is);if(vJ){var wo=1+Vja/Is.info.duration,wg=g.lu(vJ,0,1952868452),Sf=g.lu(vJ,0,1953658222);if(wg&&Sf){wg.skip(1);var wJ=Wt(wg)<<16|Xt(wg);wg.skip(4);wJ&1&&wg.skip(8);wJ&2&&wg.skip(4);if(wJ&8){var Wja=wg.g,o0=Zt(wg);wg.data.setUint32(wg.offset+Wja,1<wo?Math.ceil(o0*wo):Math.floor(o0*wo))}Sf.skip(1);var xo=Wt(Sf)<<16|Xt(Sf);if(xo&256){var Xja=xo&1,Yja=xo&4,Zja=xo&512,$ja=xo&1024,aka=xo&2048,bka=Zt(Sf);Xja&&Sf.skip(4);Yja&&Sf.skip(4);for(var cka=
(Zja?4:0)+($ja?4:0)+(aka?4:0),p0=0;p0<bka;p0++){var dka=Sf.g,q0=Zt(Sf);Sf.data.setUint32(Sf.offset+dka,1<wo?Math.ceil(q0*wo):Math.floor(q0*wo));Sf.skip(cka)}}}var xJ=[];a.l&&a.l!=Is&&(xJ.push(a.l),a.l=null);xJ.push(Is);var r0=xJ}else r0=null;var s0=r0;var t0=s0?s0:QF(a,Is)}else t0=[c];n0=t0}i0=n0}return i0};
GF=function(a,b){if(a.u.info.l)if(2==b.info.g.info.containerType){var c=new Bu(lv(b));if(Du(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=Gu(c,!0);c=16!=d?null:Nu(c,d)}else c=null;c&&(b.info.g.F={type:"webm",key:c})}else b.info.H=Kha(lv(b)),c=Lha(b.info.H),0<c.length&&(b.info.g.F={type:"cenc",key:c})};
HF=function(a,b){a.N("error",b||{})};
FF=function(a,b){return!a.u.ae()&&0==b.info.l&&(g.nv(b.info.g.info)||2==b.info.g.info.containerType)};
MF=function(a,b){var c;isNaN(a.A)?isNaN(a.H)?c=b.info.startTime:c=a.H:c=a.A;return c};
OF=function(a,b){return!(0!=b.info.l&&!a.l)&&g.nv(b.info.g.info)};
QF=function(a,b){if(a.l&&a.l!=b){var c=[a.l,b];a.l=null;return c}return[]};
PF=function(a,b,c){var d=RF(a,b);if(!d)return null;c=Xea(d,c,a.Y);if(!c)return null;d=wu(d);a.l&&(d-=a.l.range.length,a.l=null);var e=Math.min(d,b.info.La);a=new $u(b.info.type,b.info.g,b.info.range,"splitSlice1_"+b.info.B,b.info.i,b.info.startTime,b.info.duration,b.info.l,e,!1,!1);d=Yu(b.range.start,e);a=new kv(a,b.g,d,b.i);e=new $u(b.info.type,b.info.g,b.info.range,"splitSlice2_"+b.info.B,b.info.i,b.info.startTime,b.info.duration,b.info.l+e,b.info.La-e,b.info.u,b.info.o);d=new Wu(d.end+1,b.range.end);
b=new kv(e,b.g,d,!1);b=[a,b];b[0].g=c;b[0].range=Yu(0,c.byteLength);a=b[0];c=new DataView(c);c=!!ju(c,0,1836019574);a.i=c;return b};
RF=function(a,b){if(a.l){var c=a.l,d=new Uint8Array(c.range.length+b.range.length);d.set(new Uint8Array(c.g,c.range.start,c.range.length));d.set(new Uint8Array(b.g,b.range.start,b.range.length),c.range.length);c=new DataView(d.buffer);wu(c);return c}c=lv(b);if((d=wu(c))&&d<c.byteLength)return c;a.l=b;return null};
SF=function(a,b,c){this.R=a;this.g=b;this.o=[];this.l=new AF(a,b,c);this.i=this.A=null;this.I=0;this.F=b.info.g;this.H=0;this.B=b.ck();this.u=-1;this.D=this.B?0:NaN};
TF=function(a){return a.A&&a.A.lq()};
VF=function(a){for(;a.o.length&&6==a.o[0].state;){var b=a.o.shift();UF(a,b);var c=b.timing;a.I=(c.A-c.g)/1E3;a.R.Yb&&b.dispose()}a.o.length&&yF(a.o[0])&&!bw(a.o[0].info)&&UF(a,a.o[0])};
UF=function(a,b){if(yF(b)){b.H=!0;var c=b.l,d=c.g;c.g=[];c.o=g.Va(d).info;c=g.q(d);for(d=c.next();!d.done;d=c.next())WF(a,b,d.value)}};
WF=function(a,b,c){switch(c.info.type){case 1:case 2:IF(a.l,c);break;case 4:var d=c.info.g.Hx(c);c=c.info;var e=a.i;e&&e.g==c.g&&e.type==c.type&&(c.range&&e.range?e.range.start==c.range.start&&e.range.end==c.range.end:e.range==c.range)&&e.i==c.i&&e.l==c.l&&e.La==c.La&&(a.i=g.Va(d).info);d=g.q(d);for(c=d.next();!c.done;c=d.next())WF(a,b,c.value);break;case 3:$ha(a.l,b,c)}};
$F=function(a,b,c,d){d=void 0===d?!1:d;if(c){var e=Cx(c.oc(),b),f=NaN,k=TF(a);k&&(f=Cx(c.oc(),k.g.index.Kc(k.i)));if(e==f&&a.i&&a.i.La&&XF(YF(a),0))return b}a=ZF(a,b,d);return 0<=a?a:NaN};
bG=function(a,b){a.g.sc();var c=ZF(a,b);if(0<=c)return c;c=a.l;c.I?(c=c.I,c=c.g&&3==c.g.type?c.g.startTime:0):c=Infinity;b=Math.min(b,c);a.i=a.g.zf(b).g[0];aG(a)&&a.A&&a.A.abort();a.H=0;return a.i.startTime};
cG=function(a){var b=0;(0,g.y)(a.o,function(c){var d=b;c=c.l&&c.l.length?Oha(c.l):ew(c.info);b=d+c},a);
return b+=aia(a.l)};
dG=function(a,b){if(!a.A)return 0;var c=TF(a);return c&&c.u?c.D:Gx(a.A.oc(),b)};
fG=function(a){eG(a);a.l.i=[]};
gG=function(a,b){var c;for(c=0;c<a.o.length&&b!==a.o[c];c++);if(c==a.o.length)b.H&&KF(a.l,b),b.dispose();else{for(;c<a.o.length;){var d=a.o.pop();d.H&&KF(a.l,d);d.dispose()}3==b.info.g[0].type?(b.l&&b.l.o?(c=b.l.o,c=new $u(c.type,c.g,c.range,"getEmptyStubAfter_"+c.B,c.i,c.startTime+c.duration,0,c.l+c.La,0,!1)):(c=b.info.g[0],c=new $u(c.type,c.g,c.range,"getEmptyStubBefore_"+c.B,c.i,c.startTime,0,c.l,0,!1)),a.i=c):a.i=null}};
aG=function(a){if(!a.R.gj&&"f"==a.g.info.i)return!0;a=TF(a);return!!a&&a.u};
YF=function(a){var b=[],c=TF(a);c&&b.push(c);b=g.fb(b,JF(a.l));(0,g.y)(a.o,function(d){(0,g.y)(d.info.g,function(e){d.H&&(b=(0,g.Xd)(b,function(f){return!(f.g!=e.g?0:f.range&&e.range?f.range.start+f.l>=e.range.start+e.l&&f.range.start+f.l+f.La<=e.range.start+e.l+e.La:f.i==e.i&&f.l>=e.l&&(f.l+f.La<=e.l+e.La||e.o))}));
3!=e.type&&4!=e.type||b.push(e)})});
a.i&&!bfa(a.i,g.Va(b),a.i.g.ae())&&b.push(a.i);return b};
XF=function(a,b){if(!a.length)return!1;for(var c=b+1;c<a.length;c++)if(!cv(a[c-1],a[c]))return!1;return!0};
ZF=function(a,b,c){c=void 0===c?!1:c;if(!a.i||!a.i.La)return NaN;a=YF(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var k=a[f];if(k.A<=b)if(d)e=f;else if(k.startTime+k.duration>=b){b=f;break a}}b=e}return 0>b?NaN:XF(a,c?b:0)?a[b].startTime:NaN};
hG=function(a){return(0,g.Oj)(a.o,function(b){return 4<=b.state})};
iG=function(a){return!(!a.i||a.i.g==a.g)};
jG=function(a){return iG(a)&&a.g.sc()&&a.i.g.info.g<a.g.info.g};
kG=function(a,b,c){var d=CF(a.l);return(a=d?d.info:TF(a))&&!a.u?a.D>b&&a.D<b+c:!1};
eG=function(a){(0,g.y)(a.o,function(b){b.H&&KF(this.l,b);b.dispose()},a);
a.o=[];a.i=null};
lG=function(a){return!!a.i&&-1!=a.i.i&&a.i.i<a.g.index.we()};
mG=function(a){var b=a.i;b&&-1==b.i&&(a=CF(a.l))&&3==a.info.type&&(a=a.info.i,b.B="updateLastSliceRequested",b.i=a)};
nG=function(a){return(0,g.Oj)(a.o,function(b){return b.F})};
oG=function(a,b){this.i=a;this.g=b;this.l=1};
cia=function(a,b){var c=Math.min(2.5,Iy(a.i)),d=pG(a);return b-c*d};
rG=function(a,b,c,d,e){e=void 0===e?!1:e;a.g.Wb&&(d=Math.abs(d));d/=a.l;var f=1/Ly(a.i);var k=.9*(d-a.g.Ya);k=Math.max(k,Iy(a.i)+a.i.policy.o*f);c=k/f*a.g.fu/(b+c);a.g.ij&&(d-=a.g.Ya);c=Math.min(c,d);a.g.uc&&e&&(c=Math.max(c,a.g.uc));return qG(a,c,b)};
qG=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.g.eu*c),Math.min(Math.min(a.g.Y,a.g.Ra*c),Math.ceil(b*c))))};
dia=function(a,b){var c=qG(a,b.video?a.g.Du:a.g.hj,b.g);return a.g.Hh&&b.video?Math.max(c,a.g.Hh):c};
pG=function(a){var b=Ly(a.i);if(a.g.Pl)return b;var c=a.g.du,d=1E-9+Iy(a.i);b*=Math.min(1,c/(b*d));a.g.Gh&&(c=((Fy(a.i.i,.98)||0)-1)/2,c=Math.max(0,Math.min(1,c)),b*=1-a.g.Gh*c);return b};
sG=function(a){return pG(a)/a.l};
tG=function(){this.i=this.l=0;this.u={}};
eia=function(a,b,c,d){this.P=a;this.B=b;this.A=c;this.D=d;this.o=oy;this.u=this.H=null;this.R=-1;this.i=this.l=null;this.g=[];this.M={};this.F=0;this.I=this.aa=!1;this.T=0};
hia=function(a,b,c){uG(a,b);fia(a,c);a.H=a.l;gia(a);a.u=a.i;return vG(a)};
iia=function(a,b){if(ly(a.o,b))return null;if("m"==b.reason&&b.isLocked())return uG(a,b),a.F=a.g.length-1,wG(a),xG(a),a.I=a.I||a.u!=a.i,a.u=a.i,new CE(a.l,a.u,b.reason);"r"==b.reason&&(a.R=-1);uG(a,b);xG(a);if("r"==b.reason&&a.i==a.u)return new CE(a.l,a.i,b.reason);if(a.u&&a.i&&yG(a,a.u.info)<yG(a,a.i.info)){var c=a.o.reason;a.aa=a.aa||"r"==c||"u"==c||"v"==c}return null};
jia=function(a,b){if(b.info.video){if(a.u!=b)return a.u=b,vG(a)}else a.H=b;return null};
zG=function(a,b){b.R=g.M();a.R=-1;uG(a,a.o)};
AG=function(a){for(var b=g.M()-6E4,c=g.q(a.D.videoInfos),d=c.next();!d.done;d=c.next())if(a.A.g[d.value.id].R>b)return!0;return!1};
kia=function(a){return new CE(a.H,a.u,a.o.reason)};
BG=function(a){return a.o.isLocked()};
vG=function(a){a.R=g.M();a.aa=!1;return new CE(a.H,a.u,a.o.reason)};
uG=function(a,b){a.o=b;var c=a.D.videoInfos;if(!BG(a)){var d=g.M()-6E4;c=(0,g.Xd)(c,function(l){if(l.g>this.B.F)return!1;l=this.A.g[l.id];return l.R>d?!1:4<l.o.g||4<l.I||l.u?!1:!0},a);
if(AG(a)){var e=(0,g.Xd)(c,function(l){l=gv(l);return"140"==l||"134"==l||"243"==l});
e.length&&(c=e)}}c.length||(c=a.D.videoInfos);e=(0,g.Xd)(c,b.o,b);e.length||(e=[c[0]]);e.sort((0,g.x)(function(l,m){return yG(this,l)-yG(this,m)},a));
for(c=1;c<e.length;c++){var f=e[c-1],k=e[c];f.video.width>k.video.width?(g.bb(e,c),c--):yG(a,f)*a.B.i>yG(a,k)&&(g.bb(e,c-1),c--)}c=e[e.length-1];a.g=e;efa(a.B,c)};
fia=function(a,b){if(b)a.l=a.A.g[b];else{var c=g.Xa(a.D.g,function(d){return!!d.kb&&d.kb.isDefault});
c=c||a.D.g[0];a.l=a.A.g[c.id]}wG(a)};
wG=function(a){if(!a.l||!a.B.A)if(!a.l||!a.l.info.kb)if(a.l=a.A.g[a.D.g[0].id],1<a.D.g.length){if(a.B.uh)var b=!0;else if(a.o.isLocked())b=240>a.o.g;else{for(b=0;b+1<a.g.length&&"tiny"==a.g[b].ua().quality;)b++;var c=sG(a.P)/a.B.i;b=yG(a,a.l.info)+yG(a,a.g[b])>c}b&&(a.l=a.A.g[a.D.g[1].id])}};
xG=function(a){if(!a.i||!a.B.A)if(BG(a))a.i=a.A.g[a.g[a.g.length-1].id];else{for(var b=Math.min(a.F,a.g.length-1),c=sG(a.P),d=yG(a,a.l.info),e=c/a.B.l-d;0<b&&!(yG(a,a.g[b])<=e);b--);for(c=c/a.B.i-d;b<a.g.length-1&&!(yG(a,a.g[b+1])>=c);b++);a.i=a.A.g[a.g[b].id];a.F=b}};
gia=function(a){var b=a.B.l,c=sG(a.P)/b-yG(a,a.l.info);b=g.Ya(a.g,function(d){return yG(this,d)<c},a);
0>b&&(b=0);a.F=b;a.i=a.A.g[a.g[b].id]};
yG=function(a,b){if(!a.M[b.id]){var c=a.A.g[b.id].index.qw(a.T,15);c=b.u&&a.u&&a.u.index.Eb()?c||b.u:c||b.g;a.M[b.id]=c}return a.M[b.id]};
lia=function(a,b){var c=Wb(a.A.g,function(d){return gv(d.info)==b});
if(!c)throw Error("Itag "+b+" from server not known.");return c};
mia=function(a){var b=[];if("s"==a.o.reason||"m"==a.o.reason)return b;var c=!1;if(Ifa(a.A)){for(var d=Math.max(0,a.F-2);d<a.F;d++){var e=gv(a.g[d]);kw(a.g[d].ua())||(c=!0);b.push(e)}b.reverse();if(!c&&a.B.Pt)for(d=Math.max(0,a.F-3);0<=d&&!c;d--)kw(a.g[d].ua())||(c=!0,b.push(gv(a.g[d])))}return b};
CG=function(a,b,c,d){this.i=a;this.A=b;this.u=d;this.o=c;this.g=0};
DG=function(a,b,c,d){g.N.call(this);this.g=a;this.P=b;this.M=c;this.I=d;this.R=NaN;this.l=this.F=this.u=null;this.i=this.B=this.D=this.A=NaN;this.o=!1;this.H=NaN};
nia=function(a,b,c,d){return a.ga&&a.Ea&&3==Bw(a)?new DG(a,b,c,d):null};
EG=function(a,b){if(a.g.vu){var c=b.info.g;if(0>=c)a.H=NaN;else{var d=Ly(a.P),e=b.index.g;c=Math.max(1,d/c);a.H=Math.round(1E3*Math.max(((c-1)*e+a.g.I)/c,e-a.g.Sb))}}};
oia=function(a,b){var c=(0,g.D)()/1E3,d=c-a.A,e=c-a.D,f=e>=a.g.mf,k=!1;if(f){var l=0;!isNaN(b)&&b>a.B&&(l=b-a.B,a.B=b);l/e<a.g.yu&&(k=!0);a.D=c}c=d>=a.g.Sb&&!a.o;if(!f&&!c&&FG(a,b))return NaN;c&&(a.o=!0);a:{d=k;c=(0,g.D)()/1E3-(a.M.g()||0)-a.F.l-a.g.I;f=a.l.startTime;c=f+c;if(d){if(isNaN(b)){GG(a,NaN,"n",b);f=NaN;break a}d=b-a.g.Rb;d<c&&(c=d)}else a.o&&(d=c+a.g.I-a.R+a.g.zu,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.g.Rb))),c=d);f=c=Math.max(c,f)}a.i=f;if(isNaN(a.i))return HG(a),NaN;if(!k&&FG(a,b))return IG(a,
b),NaN;if(a.i<=a.l.startTime)return GG(a,NaN,"y",b),HG(a),NaN;if(!a.I(a.i,!1))return!IG(a,b)&&k&&(GG(a,NaN,"t",b),HG(a)),NaN;k=a.i;GG(a,k,"s",b);HG(a);return k};
IG=function(a,b){return a.I(a.i,!0)?!1:(GG(a,NaN,"ns",b),HG(a),!0)};
FG=function(a,b){return isNaN(b)?!0:isNaN(a.i)?!1:b<a.i+(a.o?a.g.Rb:a.g.xu)};
HG=function(a){a.u=null;a.F=null;a.l=null;a.A=NaN;a.D=NaN;a.B=NaN;a.i=NaN;a.o=!1};
GG=function(a,b,c,d){var e=oF(a.u);e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.i).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.A).toFixed(0);e.ssr_n=(0,g.D)().toFixed(0);e.ssr_f=(1E3*a.F.l).toFixed(0);e.ssr_fa=a.o?"1":"0";e.ssr_o=(1E3*a.M.g()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.l.g.index;Ew(b,a.l.i,!0)&&(e.ssr_ist=(1E3*b.Kc(a.l.i)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.l.i)).toFixed(0));e=yx(e);a.N("ctmp","ssr",e,!1)};
pia=function(){this.g=[];this.i=g.sE};
qia=function(a,b,c){var d=[];for(b=JG(a,b);b<a.g.length;++b){var e=a.g[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
KG=function(a,b){for(var c=[],d=g.q(a.g),e=d.next();!e.done&&!(e=e.value,e.contains(b)&&c.push(e),e.start>b);e=d.next());return c};
ria=function(a){return a.g.slice(JG(a,0x7ffffffffffff),a.g.length)};
JG=function(a,b){var c=pb(a.g,function(d){return b-d.start||1});
return 0>c?-(c+1):c};
LG=function(a,b){for(var c=NaN,d=g.q(a.g),e=d.next();!e.done;e=d.next())if(e=e.value,e.contains(b)&&(isNaN(c)||e.end<c)&&(c=e.end),e.start>b&&(isNaN(c)||e.start<c)){c=e.start;break}return c};
MG=function(a,b){if(1<b.length&&b.length>a.g.length)a.g=a.g.concat(b),a.g.sort(a.i);else for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,!a.g.length||0<a.i(d,a.g[a.g.length-1])?a.g.push(d):g.sb(a.g,d,a.i)};
NG=function(a,b,c,d){g.A.call(this);this.o=NaN;this.A=this.B=this.started=!1;this.R=a;this.I=b;this.D=c;this.F=d;this.H=new g.J(this.i,250,this);g.B(this,this.H);this.u=new g.J(this.i,0,this);g.B(this,this.u);this.l=[];this.g=new pia};
OG=function(a){return a.fa()?[]:a.g.g};
PG=function(a,b){var c=(0,g.Xd)(OG(a),function(d){return d.namespace==b});
a.removeCueRange.apply(a,c);return c};
QG=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.l.indexOf(e)&&(a.l.push(e),c.push([1,e]))}return c};
RG=function(a,b){var c=[];if(!b.length)return c;b.sort(g.sE);for(var d=0;d<b.length;d++){var e=b[d];a.l.splice(a.l.indexOf(e),1);c.push([2,e])}return c};
uia=function(a){if(a.started&&!a.fa()){a.u.stop();var b=a.D();g.T(b,32)&&a.H.start();for(var c=sia(a),d=g.T(b,2),e=[],f=[],k=0;k<a.l.length;k++){var l=a.l[k];l.active&&(d?0x8000000000000>l.end:!l.contains(c))&&f.push(l)}e=e.concat(RG(a,f));if(d){b=KG(a.g,0x7ffffffffffff);var m=b.filter(function(p){return 0x8000000000000>p.end});
var n=ria(a.g)}else b=a.o<=c&&g.WC(b)&&!g.T(b,16)&&!g.T(b,32)?qia(a.g,a.o,c):KG(a.g,c);e=e.concat(QG(a,b));m&&(e=e.concat(RG(a,m)));n&&(e=e.concat(QG(a,n)));a.o=c;tia(a,e)}};
tia=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[1];1==d[0]?(e.i&&e.i.N("onEnter",e),a.F(g.tE(e.namespace),e)):(e.i&&e.i.N("onExit",e),a.F("crx_"+e.namespace,e))}};
sia=function(a){return g.T(a.D(),2)?0x8000000000000:1E3*a.R()};
SG=function(){var a=this;this.g=this.i=iaa;this.l=new jg(function(b,c){a.i=b;a.g=c})};
UG=function(a,b,c,d,e,f,k){g.N.call(this);var l=this;this.P=a;this.g=b;this.u=c;this.ga=new tG;this.Ra=k||null;this.F=new oG(a,b);this.B=new eia(this.F,b,this.u,d);a=hia(this.B,e,f&&f.id);this.o=new SF(this.g,a.audio,(0,g.x)(this.Ou,this));this.i=new SF(this.g,a.video,(0,g.x)(this.Ou,this));TG(this,this.o);TG(this,this.i);this.i.l.D=this.o.l;this.M=this.i.B;this.l=null;this.xa={updateend:this.GF,error:this.wI};this.Z=new g.J(this.Xe,0,this);g.B(this,this.Z);this.na=new g.J(this.Xe,1E3,this);g.B(this,
this.na);this.jb=new g.J(this.Xe,void 0,this);g.B(this,this.jb);this.Ia=new g.J(this.Xe,1E4,this);g.B(this,this.Ia);this.A=NaN;this.R=!1;this.I=NaN;this.Ea=0;this.Y=this.aa=this.H=!1;this.ma="";this.wa=new Cy(5);this.oa={};this.Ca=NaN;this.ya=this.M=!1;(this.D=nia(this.g,this.P,this.wa,function(m,n){if(l.i.g.sc()&&l.o.g.sc()&&l.l&&l.l.i&&l.l.g)if(n&&l.u.i&&(-1==l.i.u||-1==l.o.u))var p=!0;else p=$F(l.i,m,l.l.i,n),isNaN(p)?p=!1:(p=$F(l.o,l.g.Ea?m:p,l.l.g,n),p=isNaN(p)?!1:!0);else p=!1;return p}))&&
this.D.subscribe("ctmp",this.Dc,this);
this.Ya=NaN;this.ea=this.Qa=null;this.T=NaN;this.X=0;this.tb=this.ab=!1};
VG=function(a,b){b=b||a.i&&a.i.i&&a.i.i.startTime||a.A;var c=a.i;var d=a.B;var e=d.i&&d.i.index.Le(b)||0;d.T!=e&&(d.M={},d.T=e,uG(d,d.o));e=!BG(d)&&-1<d.R&&g.M()-d.R<1E3*d.B.AB;var f=d.i&&3*yG(d,d.i.info)<sG(d.P);if(!e||f)wG(d),xG(d),d.I=d.I||d.i!=d.u;d.i&&!d.i.index.Eb()&&(d.T=-1);d=d.i;c.g!=d&&(c.g=d);c=a.o;d=a.B.l;c.g!=d&&(c.g=d)};
WG=function(a){a.l&&a.l.g&&a.l.i&&(Ys(a.l.g,a.xa,a),Ys(a.l.i,a.xa,a));a.o.A=null;a.i.A=null;a.l=null};
YG=function(a){WG(a);if(a.g.zd){var b=a.ab;a.H=!0;a.aa=b}else a.H=!0,a.aa=!1;XG(a)};
ZG=function(a){a.l&&Ox(a.l)&&YG(a)};
aH=function(a,b,c){if(a.H&&(!Ny(a.P)||a.aa))return!1;if(a.u.i){if(0<b.o.length&&b.i&&-1==b.i.i||b.o.length>=a.g.kA&&!a.g.Lb||!a.g.Qt&&0<b.o.length&&!a.g.g)return!1;if(b.B)return!a.u.isLive||!isNaN(a.Ca)}if(nG(b))return!1;if(!(b.i||a.u.i&&a.g.Lb&&b.B)){if(!b.g.sc())return!1;bG(b,a.A)}var d=b.o.length+c.o.length;(hG(b)||hG(c)||a.u.isLive&&(!a.g.Lb||!b.o.length))&&--d;if(d+1>=a.g.kB)return!1;d=b.i;if(!d)return!0;if(!Yv(d.g.o))return!1;4==d.type&&d.g.sc()&&(b.i=g.Va(d.g.lo(d)),d=b.i);if(!d.u&&!d.g.Lf(d)||
d.g.info.audio&&4==d.type)return!1;if(jG(b)&&!a.g.Z)return!0;if(!(c=d.u||cG(b)&&cG(b)+cG(c)>a.g.ma||!!(c.i&&!c.i.u&&c.i.D<d.D)&&(!a.u.i||c.i&&c.i.D&&d.D)&&!a.M)&&(c=3==d.type)){d=d.D;c=$G(a,b,!0);if(!BG(a.B)&&0<a.g.P){var e=(g.M()-a.Ea)/1E3;c=Math.min(c,a.g.P+a.g.Xb*e)}c=a.A+c;a.g.Ad&&(e=via(a)+a.g.Ad,e<c&&(a.Dc("mrl","ori."+c+";mod."+e,!0),a.g.Km&&(a.Ea=g.M()),c=e));c=d>c}return c||a.g.DB&&(a=b.A)&&a.isLocked()?!1:!0};
bH=function(a,b,c){if((!a.l||Mx(a.l)||Qx(a.l))&&!a.R&&a.B.aa){var d=a.A;a=a.F;c=rG(a,b.g.info.g,c.g.info.g,0);var e=Iy(a.i)+c/Ly(a.i);d+=Math.max(e,e+a.g.Qc-c/b.g.info.g);a:{if(b.o.length){if(b.o[0].info.g[0].startTime<=d)break a;eG(b)}a=b.l;for(c=a.i.length-1;0<=c;c--)a.i[c].info.startTime>d&&a.i.pop();b.o.length?b.i=g.Va(g.Va(b.o).info.g):b.l.i.length?b.i=CF(b.l).info:b.i=TF(b);b.i&&d<b.i.startTime&&(b.H=0,b.i=b.g.zf(d,!0).g[0])}}};
eH=function(a,b,c){if(aH(a,b,c)){if(b.B){if(a.u.isLive){var d=a.u.B?b.g.si(a.u.B,!1):b.g.zf(Infinity);d.l=a.Ca}else d=b.g.si(0,!0);a.D?0==d.l&&(d.u=a.D.H):d.u=a.Ya}else if(d=b.i,d.g.sc()){!jG(b)||a.g.Z||a.u.i||(bH(a,b,c),b.i||bG(b,a.A));d=b.i;var e=d.D-a.A,f=!d.range||0==d.La&&0==d.l?0:d.range.length-(d.l+d.La),k=d.g;if(iG(b)&&b.g.sc()){var l=Math.min(15,.5*$G(a,b,!0));l=jG(b)||e<=l}else l=!1;l&&0==f&&(a.u.i?k=b.g:(k=d.startTime+cH,d.La&&(k+=d.duration),bG(b,k),d=b.i,k=d.g));k.ae()?(f=a.B,e=rG(a.F,
k.info.g,c.g.info.g,e,0<f.g.length&&0==f.F&&a.Y),c=a.g.ej?iG(b):iG(b)&&b.g.sc(),e=d.g.mh(d,e),e.range&&1<e.g.length&&(c||e.i.g||a.g.Sm&&e.g[0].g!=d.g?e=d.g.mh(d,e.g[0].La):(c=e.g[e.g.length-1],k=c.La/e.range.length,!c.o&&.4>k&&(e=d.g.mh(d,e.range.length-c.La)))),d=e):(0>d.i&&(c=ev(d),c.pr=""+b.o.length,a.R&&(c.sk="1"),a.Dc("nosq",d.B+";"+yx(c))),d=k.pi(d))}else d.g.ae()?(c=rG(a.F,b.g.info.g,c.g.info.g,0),d=d.g.mh(d,c)):d=d.g.pi(d);a=dH(a,d);b.o.push(a);b.i=g.Va(a.info.g)}};
dH=function(a,b){3==b.g[b.g.length-1].type&&gH(a,jia(a.B,b.g[0].g));var c=ew(b);c=new Uha(a.P,c,cia(a.F,c),b,a.Qa);a.g.Nn&&(c.D=[]);var d=new nF(a.g,b,c,a.oa);c.wa=function(){return Yha(d)?d.o.Il&&window.performance&&window.performance.now&&d.g&&d.g.bi()&&wF(d)&&fF(d.g)?d.info.g[0].g.info.video?3:4:2:1};
Wha(d,(0,g.x)(a.XK,a));3==b.g.length&&1==b.g[0].type&&2==b.g[1].type&&4==b.g[2].type&&b.g[0].g.info.video&&(d.aa=mia(a.B));d.start(Math.max(0,b.g[0].A-a.A));return d};
gH=function(a,b){b&&a.N("videoformatchange",b)};
xia=function(a,b){var c=b.info.g[0].g,d=c.info.video?a.i:a.o;wia(a,d,b);bw(b.info)&&!aw(b.info)&&((0,g.y)(b.l.g,function(e){IF(d.l,e)}),a.g.Fl||a.N("metadata",c))};
wia=function(a,b,c){if(a.u.i&&b&&(b.B&&(wF(c),b.B=!1),c.R&&a.wa.i(1,c.R),b=c.g?parseInt(c.g.rd("X-Head-Seqnum"),10):null)){a=a.u;for(var d in a.g)c=a.g[d].index,c.i&&(c.l=Math.max(c.l,b))}};
hH=function(a,b,c){a:{b=b.info;var d=a.g.Yt,e=null,f=b.g[0];if(b.range)e=Yu(b.range.start,Math.min(4096,b.range.length));else if(d){if(b.o&&0<=b.o.indexOf("/range/")||"1"==b.i.o.get("defrag")||"1"==b.i.o.get("otf")){c=null;break a}e=Yu(0,4096)}else if(f.g.info.video){c=null;break a}b=new $u(5,f.g,e,"createProbeRequestInfo_"+f.B,f.i);b=new $v([b]);b.A=c;c=b}c&&dH(a,c)};
zia=function(a){var b=-1!=a.i.u,c=-1!=a.o.u;if(!b||!c)if(b=!b&&BF(a.i.l),c=!c&&BF(a.o.l),b||c){c=b?a.i:a.o;b=b?a.o:a.i;var d=BF(c.l).info.i;if(-1!=b.u&&b.u!=d&&(iH(a,!1,"qoe.avsync",{start:"1",target:String(b.u),actual:String(d)}),!a.g.El)){nx(a.u,d,c==a.i);yia(c,b.u);return}c.u=d;c.D=NaN;if(-1!=b.u){var e=Math.max(b.g.index.Kc(b.u),c.g.index.Kc(c.u));a.ea&&(a.ea.resolve(e+.1),a.ea=null);g.dg(function(){return jH(a,e)})}}};
yia=function(a,b){fG(a);bG(a,Infinity);var c=a.D;a.l.A=c;a.D=c;c=a.i;c.B="correctTrack_";c.i=b-1};
nH=function(a){var b=a.l.g,c=a.l.i;a.o.g.A&&kH(b,a.o.g.A);if(Aia(a)){if(a.g.fj){if(!b.Wg()){var d=BF(a.o.l);d&&lH(a,b,d)}c.Wg()||(b=BF(a.i.l))&&lH(a,c,b)}}else{if(a.D){d=a.D;var e=a.o,f=Dx(a.l.i.oc());if(d.u)d=oia(d,f);else{if(f=BF(e.l)){var k=f.l;k&&k.u&&k.l&&(e=e.o.length?e.o[0]:null)&&3<=e.state&&7!=e.state&&0==e.info.l&&wF(e)&&(d.u=e,d.F=k,d.l=f.info,d.A=(0,g.D)()/1E3,d.D=d.A,d.B=d.l.startTime)}d=NaN}d&&a.N("seekplayerrequired",d,!0)}if(d=mH(a,a.i,c,null))e=a.ga,e.l||(e.l=(0,g.D)(),e.Mc("vda"),
rB("vda"),e.i&&Bq(4));e=BF(a.i.l);a.g.ea&&!d&&e&&(a.tb||a.Dc("sbp",a.l.i.fb({ns:fv(e.info)})),a.tb=!0);if(a.l&&!Ox(a.l)){c=Cx(c.oc(),a.A+cH);if(!isNaN(c)||aG(a.i)||!b.oc().length||a.g.aa){if(aG(a.i)||a.g.aa)c=NaN;if(b=mH(a,a.o,b,c))c=a.ga,c.i||(c.i=(0,g.D)(),c.Mc("ada"),rB("ada"),c.l&&Bq(4));d=d||b}!a.fa()&&a.l&&(!a.g.tb&&aG(a.i)&&aG(a.o)&&Mx(a.l)&&!a.l.Sd()&&(b=TF(a.o).g,b==a.u.g[b.info.id]&&(b=a.l,Mx(b)&&b.l.endOfStream(),b=a.P,ty(My(b)),b.u=g.M())),d&&!Qx(a.l)&&g.Do(a.Z))}}};
Aia=function(a){if(a.g.ya)return!1;var b;if(!(b=nG(a.i))&&(b=a.R)){b=a.F;var c=a.i,d=a.o;if(0==c.o.length&&0==d.o.length)b=!0;else{var e=0,f=JF(c.l).concat(JF(d.l));f=g.q(f);for(var k=f.next();!k.done;k=f.next())e+=k.value.La;c=c.g.info.g+d.g.info.g;e/=c;b=10<e?!0:10>c*(10-e)/sG(b)}(b=!b)||(b=a.i,b=0<b.o.length&&1==b.l.i.length&&BF(b.l).info.F<b.I)}if(b)return!0;if(!a.Y||!a.g.wa||10>a.A||360<a.i.g.info.ua().Tb)return!1;b=kG(a.i,a.A,a.g.wa)||kG(a.o,a.A,a.g.wa);return(0<a.i.o.length||0<a.o.o.length||
aH(a,a.i,a.o)||aH(a,a.o,a.i))&&b};
mH=function(a,b,c,d){if(c.Sd())return!0;var e=BF(b.l);if(!e||!c.Cp())return!1;var f=e.info,k=TF(b);!k||k.o||bv(k,f)||c.abort();c.Et(f.g.info.containerType,f.g.info.mimeType);if(f=a.g.Qa&&a.u.l&&0==e.info.l&&(g.nv(e.info.g.info)||a.g.Eu)){if(null==c.Wg()){f=TF(b);if(!(k=!f||f.g!=e.info.g)){b:if(f=f.H,k=e.info.H,f.length!=k.length)f=!1;else{for(var l=0;l<f.length;l++)if(!g.rb(f[l],k[l])){f=!1;break b}f=!0}k=!f}f=k}else f=c.Wg()!=e.info.g.g;f=!f}f&&(g.nv(e.info.g.info)?(xu(lv(e),1836019574),xu(lv(e),
1718909296)):(f=new Bu(lv(e)),Vu(f),Fu(f,524531317,!0),e.range=new Wu(f.l+f.g,e.range.end)),e.i=!1);a.g.kf&&e.i&&(e.i=!1);f=a.D&&!!a.D.u&&b.g.info.audio;if(!(a.u.l&&0!=e.info.l||(a.u.i||e.i)&&!f)&&lH(a,c,e))return!0;if(f)return!1;f=$G(a,b,!1);f=a.A+f;null!==d&&0<=d&&(f=Math.min(f,d));d=f;f=b.l;if(!f.i.length||f.i[0].info.A>=d)d=null;else{for(k=1;k<f.i.length&&!(l=f.i[k].g!=f.i[k-1].g,f.i[k].info.A>d||l||f.o.ab);k++);d=f.i.slice(0,k)}if(!d)return!1;f=e.i?0:e.range.start;f=new Uint8Array(e.g,f,d[d.length-
1].range.end-f+1);if(!Bia(a,c,f,d,b))return!1;c=b.l;for(f=0;f<d.length;f++)c.i.shift();(0,g.y)(d,b.M,b);e.i&&(b=e.info.g.F)&&a.N("newDrmInfo",b.type,b.key);return!0};
Bia=function(a,b,c,d,e){var f=d[0];d=(0,g.ge)(d,function(k){return k.info});
a.g.ea&&a.Dc("sba",b.fb({as:fv(f.info)}));c=oH(a,b,c,d,f.i?f.info.g.g:null);if("s"==c)return!0;a.g.gu||(b.abort(),fG(e));if("i"==c||"x"==c)return pH(a,"checked",c,f.info),!1;if("q"==c&&(f.info.xe()?gfa(a.g):ffa(a.g),b.supports(2)&&!b.Sd()&&!a.l.isView())){e=!1;c=b.oc();for(d=0;!e&&d<c.length;d++)c.start(d)>f.info.D&&(b.remove(c.start(d),c.end(c.length-1)),e=!0);a=Math.max(0,Math.min(a.A,f.info.startTime)-5);!e&&a&&b.remove(0,a);return!1}a.N("reattachrequired");return!1};
pH=function(a,b,c,d){var e="fmt.unplayable";"i"==c&&(e="html5.invalidstate");if("x"==c||"m"==c)e="fmt.unparseable",d.g.u=e,d.g.info.video&&!AG(a.B)&&zG(a.B,d.g);d=ev(d);d.mrs=a.l.l.readyState;d.origin=b;d.reason=c;iH(a,"i"!=c,e,d)};
qH=function(a,b,c){Ufa(a.u,b,c)&&c&&g.dg(function(){if(a.ya)a.ya=!1,jH(a,b.startTime);else{var d=b.startTime;if(!a.fa()&&a.g.X&&a.M&&-1!=a.i.u&&-1!=a.o.u){var e=a.g.ku?0:.1;a.A<d||a.A>d+b.duration+e?3>a.X?(a.X++,a.seek(a.A)):(a.Dc("iterativeSeeking","incomplete;count."+a.X,!1),a.X=0,a.M=!1,a.N("seekplayerrequired",d+.1,!0)):(a.Dc("iterativeSeeking","done;count."+a.X,!1),a.X=0,a.M=!1)}}})};
jH=function(a,b){!a.fa()&&a.g.X&&a.M&&-1!=a.i.u&&-1!=a.o.u&&(a.M=!1,a.N("seekplayerrequired",b+.1,!0))};
lH=function(a,b,c){c.info.g.sc();var d=c.info.g.g;if(null==d||b.Wg()==d)return!1;var e=d,f=b.wm();if(a.g.kf&&f&&b.isView()&&g.nv(c.info.g.info)){var k=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=Zea(k,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Dc("fenc","1")}d=oH(a,b,e,null,d);if("s"!=d)return pH(a,"sepInit",d,c.info),!0;(c=c.info.g.F)&&a.N("newDrmInfo",c.type,c.key);return b.Sd()};
oH=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(11==f.code)return"i";if(12==f.code)return"x";if(22!=f.code&&0!=f.message.indexOf("Not enough storage"))return g.L(f),"u";a.g.Oc&&(b=Ax(b.oc()).replace(/,/g,"_"),a.Dc("quex","br."+b+";e."+f));return"q"}return Ox(a.l)?"m":"s"};
TG=function(a,b){b.l.subscribe("error",a.RJ,a);b.l.subscribe("timestamprewrite",a.WJ,a);var c=(0,g.x)(a.TJ,a,b);b.l.subscribe("placeholderinfo",c,void 0);c=(0,g.x)(a.UJ,a,b);b.l.subscribe("placeholderrollback",c,void 0);c=(0,g.x)(a.VJ,a,b);b.l.subscribe("segmentinfo",c,void 0);c=a.SJ.bind(a);b.l.subscribe("gaplessinfo",c,void 0);b==a.i&&b.l.subscribe("cuepoint",a.QJ,a)};
kH=function(a,b){var c=0+b.duration,d=-b.g;0==a.tm()&&c==a.gq()||a.Ws(0,c);d!=a.Ib()&&a.ro(d)};
$G=function(a,b,c){if(a.H)return 1;var d=b.g.info.audio?a.g.B:a.g.u;!a.g.Z&&BG(a.B)&&(d=Math.max(d,b.g.info.audio?a.g.na:a.g.T));c&&(d+=a.g.ma);var e=BG(a.B)?b.i?b.i.g.info.g:b.g.info.g:b.F;d/=e;0<a.g.xa&&a.l&&Mx(a.l)&&(b=b.g.info.video?a.l.i:a.l.g)&&!b.Sd()&&(e=Bx(b.oc(),a.A),0<=e&&(b=a.A-b.oc().start(e),d+=Math.max(0,Math.min(b-a.g.xa,a.g.xB))));0<a.g.o&&(d=Math.min(d,a.g.o));a.g.kd&&c&&!BG(a.B)&&(c=a.B,c=yG(c,g.Va(c.g))+yG(c,c.D.g[0]),c=a.g.kd*(c/pG(a.F)),c<d&&15>c&&a.Dc("bwcapped","1",!0),c=Math.max(c,
15),d=Math.min(d,c));return d};
via=function(a){if(!a.Ra)return Infinity;var b=(0,g.Xd)(OG(a.Ra),function(d){return"ad"==d.namespace});
b=g.q(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.A)return c.start/1E3;return Infinity};
rH=function(a,b,c){if(!a.g.sc())return 0!=b&&eG(a),b;var d=$F(a,b,c);if(!isNaN(d))return d;fG(a);return c&&(c=Cx(c.oc(),b),!isNaN(c))?(bG(a,c+cH),b):bG(a,b)};
sH=function(a,b,c,d){c.sc()||c.B||!Yv(c.o)||(d=c.Th(d?dia(a.F,c.info):0),(0,g.y)(d,function(e){if("f"!=e.g[0].g.info.i){var f=dH(this,e);aw(e)&&(b.o.push(f),b.i=g.Va(f.info.g))}},a),c.B=!0)};
iH=function(a,b,c,d){a.fa()||(d=new g.xx(c,b,d),g.Pa(a),yx(d.details),a.N("error",d),"html5.invalidstate"!=c&&"fmt.unplayable"!=d.errorCode&&"fmt.unparseable"!=c&&b&&a.dispose())};
XG=function(a){fG(a.o);fG(a.i)};
Cia=function(a,b){var c=b.info.video?a.i:a.o;null!=c&&sH(a,c,b,!1)};
tH=function(a){a=a?a.o.length?a.o[0]:null:null;return!!a&&2<=a.state&&!(5<=a.state)};
Dia=function(a,b,c){this.url=a;this.interval=b;this.g=c};
uH=function(){g.N.apply(this,arguments)};
vH=function(a,b,c){this.initData=a;this.contentType=(void 0===b?"":b)||null;this.isPrefetch=void 0===c?!1:c;this.g=this.cryptoPeriodIndex=NaN;this.i=[]};
wH=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376==d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var k=d.getUint32(c+28);f+=16*k+4}var l=d.getUint32(c+f-4);try{var m=new we(b.subarray(c+f,c+f+l)),n=new Tp;for(f=m;xe(f)&&4!=f.i;)switch(f.l){case 2:var p=Be(f),r=p;af(n,2).push(r);break;case 4:p=Be(f);cf(n,4,p);break;case 7:p=te(f.g);cf(n,7,p);break;case 9:p=te(f.g);cf(n,9,p);break;case 10:p=te(f.g);cf(n,
10,p);break;case 11:p=ze(f);cf(n,11,p);break;case 12:p=te(f.g);cf(n,12,p);break;case 13:r=p=Be(f);af(n,13).push(r);break;case 14:p=new Up;r=f;var v=p,z=lea,C=r.g.l,F=te(r.g),E=r.g.g+F;r.g.l=E;z(v,r);r.g.g=E;r.g.l=C;r=n;v=p;z=Up;gf(r,z,14);var K=r.g[14];K||(K=r.g[14]=[]);var R=v?v:new z,V=af(r,14);K.push(R);V.push(jf(R));break;case 15:p=Ae(f);cf(n,15,p);break;case 1:p=ze(f);cf(n,1,p);break;case 3:p=Ae(f);cf(n,3,p);break;case 5:p=Ae(f);cf(n,5,p);break;case 6:p=Ae(f);cf(n,6,p);break;case 8:p=Be(f);cf(n,
8,p);break;default:ye(f)}f=n;if(null!=f){var ta=f;break a}}catch(db){}}c+=e}ta=null}catch(db){ta=null}}if(null!=ta)for(b=af(ta,7),null!=b&&(a.cryptoPeriodIndex=b),b=af(ta,10),null!=b&&0<b&&(a.g=b),ta=af(ta,2),ta=!ta.length||ta[0]instanceof Uint8Array?ta:(0,g.ge)(ta,Waa),ta=g.q(ta),b=ta.next();!b.done;b=ta.next())a.i.push(PE(b.value))};
xH=function(a,b,c,d){uH.call(this);var e=this;this.l=-1;this.g={};this.o=new g.J(this.u,0,this);g.B(this,this.o);this.i=new g.J(function(){e.fa()||(e.o.start(Math.random()*c),e.i.start(b))},a,this);
g.B(this,this.i);d.subscribe("fairplay_next_need_key_info",this.A,this)};
Eia=function(a,b,c){a=a.match(Rg);for(var d=[],e=g.q(a[6].split("&")),f=e.next();!f.done;f=e.next())f=f.value,0==f.indexOf("cpi=")?d.push("cpi="+b):0==f.indexOf("ek=")?d.push("ek="+g.Wc(c)):d.push(f);a[6]="?"+d.join("&");b="skd://"+a.slice(2).join("");a=2*b.length;c=new Uint8Array(a+4);c[0]=a%256;c[1]=(a-c[0])/256;for(a=0;a<b.length;++a)c[2*a+4]=b.charCodeAt(a);return c};
yH=function(a,b){this.statusCode=a;this.errorMessage=null;this.message=b;this.l=this.i=this.g=this.heartbeatParams=null};
zH=function(a){var b=Au(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(-1==c)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null==e)return null;e=e[1];isFinite(e)&&(e=String(e));e=g.Da(e)?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=iu(b.slice(d+2));if(null==b)return null;a=new yH(e,a.subarray(c+4));0!=a.statusCode&&(a.errorMessage=g.MC(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new Dia(c,parseInt(b["Heartbeat-Interval-Secs"],
10)||60,parseInt(b["Heartbeat-Num-Retries"],10)||4);if(c=b["Authorized-Format-Types"])a.g=c.split(",");if(c=b["Key-Ids"])a.i=Fia(c);a.l=b["Next-Key-Id"];return a};
Fia=function(a){if(!a)return{};var b={};(0,g.y)(a.split(";"),function(c){c=c.split(",");2==c.length&&(b[c[1]]=c[0])});
return b};
AH=function(a,b,c,d){g.A.call(this);this.message=a;this.number=b;this.l=c;this.g=d;this.i=new g.Wo(5E3,2E4,.2)};
BH=function(a,b,c,d,e){g.A.call(this);this.A=a;this.H=b;this.F=c;this.g=d;this.i=e;this.sessionId="";this.D=this.B=this.o=this.u=null;this.ca=new g.Us(this);g.B(this,this.ca);this.g?(this.ca.K(this.g,"message",this.OF),this.ca.K(this.g,"keystatuseschange",this.PF),this.g.closed&&this.g.closed.then(Zp((0,g.x)(this.XI,this)),null)):this.i&&(Vs(this.ca,this.i,["mskeymessage","webkitkeymessage"],this.rz),Vs(this.ca,this.i,["mskeyerror","webkitkeyerror"],this.qz),Vs(this.ca,this.i,["mskeyadded","webkitkeyadded"],
this.pz))};
CH=function(a,b){g.A.call(this);this.i=a;this.g=b;this.A={};this.o=null;this.ca=new g.Us(this);g.B(this,this.ca);this.l=this.u=null};
DH=function(a){if(a.g.i)return a.g.i.createMediaKeys().then(Zp(function(b){a.fa()||(a.u=b,a.i.setMediaKeys(b))}));
Qz(a.g)?a.l=new (Pz())(a.g.g):Tz(a.g)?(a.l=new (Pz())(a.g.g),a.i.webkitSetMediaKeys(a.l)):Gia(a);return null};
Gia=function(a){Vs(a.ca,a.i,["keymessage","webkitkeymessage"],a.SF);Vs(a.ca,a.i,["keyerror","webkitkeyerror"],a.RF);Vs(a.ca,a.i,["keyadded","webkitkeyadded"],a.QF)};
Hia=function(a){return"widevine"==a.g.flavor&&a.g.pl&&a.u.setServerCertificate?a.u.setServerCertificate(a.g.pl):null};
EH=function(a,b){var c=b.subarray(4);c=String.fromCharCode.apply(null,new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2)).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e<c.length;e+=2)d+=String.fromCharCode(parseInt(c.substr(e,2),16));c=a.g.mg;e=new ArrayBuffer(2*d.length);for(var f=new Uint16Array(e),k=0;k<d.length;k++)f[k]=d.charCodeAt(k);d=new Uint8Array(e);e=0;k=new ArrayBuffer(b.byteLength+4+d.byteLength+4+c.byteLength);f=new Uint8Array(k);k=new DataView(k);f.set(b);e+=b.byteLength;k.setUint32(e,
d.length,!0);e+=4;f.set(d,e);e+=d.length;k.setUint32(e,c.byteLength,!0);f.set(c,e+4);return f};
FH=function(a,b){var c=a.A[b.sessionId];!c&&a.o&&(c=a.o,a.o=null,c.sessionId=b.sessionId,a.A[b.sessionId]=c);return c};
IH=function(a,b,c,d,e,f){g.A.call(this);this.O=a;this.i=a.cd;this.Nb=e;this.l=b;this.cryptoPeriodIndex=d.cryptoPeriodIndex||NaN;this.aa=f;this.A=Iia(this);this.A.session_id=f;this.D=!0;"playready"==this.i.flavor&&(a=parseInt(tv(b.experiments,"playready_first_play_expiration"),10),!isNaN(a)&&0<=a&&(this.A.mfpe=""+a),g.O(b.experiments,"html5_playready_keystatuses_killswitch")||(this.D=!1));"fairplay"==this.i.flavor?(a=d.initData.subarray(4),a=String.fromCharCode.apply(null,new Uint16Array(a.buffer,
a.byteOffset,a.byteLength/2)).replace("skd://","https://")):a=this.i.o;g.O(this.l.experiments,"enable_shadow_yttv_channels")&&(a=new g.kn(a),document.location.origin&&document.location.origin.includes("green")?g.mn(a,"web-green-qa.youtube.com"):g.mn(a,"www.youtube.com"),a=a.toString());e=a=this.F=a;var k=void 0===k?!1:k;wv(Jia.test(e),e,k,"Drm Licensor URL")||GH(this,"drm.net",!0,"t.x");for(var l in this.A)k=l,e=this.A[l],a=ch(g.gh(a,k),k,e);this.P=a;this.M=g.O(b.experiments,"html5_use_drm_retry");
this.R=0;this.B=this.H=!1;UB("drm_gk_s");try{var m=c.createSession(d)}catch(n){b="t.g",n instanceof DOMException&&(b+=";c."+n.code),this.Nb.N("licenseerror","drm.unavailable",!0,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),m=null}if(this.o=m)b=this.o,c=this.LF,l=this.KF,m=this.NF,b.u=this.MF,b.o=c,b.B=l,b.D=m,b.l=this,g.B(this,this.o);this.T=d.i;this.u=[];this.g={};this.I=NaN;HH(this,"lcsct"+d.cryptoPeriodIndex)};
Iia=function(a){var b={};g.ec(b,a.l.deviceParams);b.cpn=a.O.clientPlaybackNonce;var c=["23775802"].filter(function(d){return a.l.experiments.experiments[d]});
0<c.length&&(b.fexp=c.join());a.O.gf&&(b.vvt=a.O.gf,a.O.mdxEnvironment&&(b.mdx_environment=a.O.mdxEnvironment));a.l.lc&&(b.authuser=a.l.lc);a.l.pageId&&(b.pageid=a.l.pageId);isNaN(a.cryptoPeriodIndex)||(b.cpi=a.cryptoPeriodIndex);return b};
Kia=function(a){var b={};g.ec(b,a.A);return b};
JH=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=(new DOMParser).parseFromString(b,"text/xml");return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(Vaa(a.childNodes[0].data)):null:null};
Lia=function(a,b){HH(a,"sdpvrq");if("widevine"!=a.i.flavor)GH(a,"drm.provision",!0,"e.flavor;f."+a.i.flavor+";l."+b.byteLength);else{var c={cpn:a.O.clientPlaybackNonce};g.ec(c,a.l.deviceParams);c=g.bh("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);var d={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:Au(b)}),responseType:"arraybuffer"};g.Cr(c,d,3,500).then(Zp(function(e){if(!a.fa()){e=
new Uint8Array(e.response);var f=Au(e);try{var k=JSON.parse(f)}catch(l){}k&&k.signedResponse?(a.Nb.N("ctmp","provisioning",""),a.o&&a.o.update(e)):(k=k&&k.error&&k.error.message,e="e.parse",k&&(e+=";m."+k),GH(a,"drm.provision",!0,e))}}),Zp(function(e){a.fa()||GH(a,"drm.provision",!0,"e."+e.errorCode+";c."+(e.lh&&e.lh.status))}))}};
KH=function(a){var b;if(b=a.D&&null!=a.o)a=a.o,b=!(!a.g||!a.g.keyStatuses);return b};
LH=function(a,b){UB("drm_net_s");if(a.O.useInnertubeDrmService()){var c=new g.Ms(a.l.Wb),d={context:g.Yr(c.g)};d.drmSystem=Mia[a.i.flavor];d.videoId=a.O.videoId;d.cpn=a.O.clientPlaybackNonce;d.sessionId=a.aa;d.licenseRequest=g.ke(b.message);d.drmParams=a.O.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e={onSuccess:(0,g.x)(b.B,b),onError:(0,g.x)(b.A,b)};g.bs(c,"player/get_drm_license",d,e)}else c=a.P,d=a.O.oauthToken,e={format:"RAW",method:"POST",
postBody:b.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:(0,g.x)(b.u,b),onError:(0,g.x)(b.o,b)},d&&(c=ch(g.gh(c,"access_token"),"access_token",d)),g.br(c,e)};
GH=function(a,b,c,d,e){a.fa()||a.Nb.N("licenseerror",b,c,d,e);c&&a.dispose()};
Nia=function(a,b){var c=b.i.getValue();c=new g.J(function(){return LH(a,b)},c);
g.B(a,c);c.start();g.Xo(b.i);HH(a,"rtyrq")};
MH=function(a){return g.$a(a,"UHD2")?"highres":g.$a(a,"UHD1")?"hd2160":g.$a(a,"HD")?"hd1080":g.$a(a,"HD720")?"hd720":"large"};
NH=function(a,b){if(!KH(a)&&Sz(a.i)&&!b)return"large";var c=[],d=!0;if(KH(a))for(var e in a.g)"usable"==a.g[e].status&&c.push(a.g[e].type),"unknown"!=a.g[e].status&&(d=!1);if(!KH(a)||d)c=a.u;return MH(c)};
OH=function(a){var b=a[0];a[0]=a[3];a[3]=b;b=a[1];a[1]=a[2];a[2]=b;b=a[4];a[4]=a[5];a[5]=b;b=a[6];a[6]=a[7];a[7]=b};
Oia=function(a){if(KH(a)){var b=[],c;for(c in a.g)b.push.apply(b,[c,a.g[c].type,a.g[c].status]);a=b.join(";")}else a=a.u.join(";");return a};
Pia=function(a,b,c,d){a=new Uint8Array(a);if(a=JH(a))a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=mba(c,d),g.Cr(c,a,3,500).then(function(e){e=new Uint8Array(e.response);(e=zH(e))&&e.message&&b.update(e.message)})};
Qia=function(a){switch(a){case "highres":case "hd2880":return"UHD2";case "hd2160":case "hd1440":return"UHD1";case "hd1080":case "hd720":return"HD";case "large":case "medium":case "small":case "light":case "tiny":return"SD";default:return""}};
PH=function(a,b){for(var c in a.g)if("usable"==a.g[c].status&&a.g[c].type==b)return!0;return!1};
HH=function(a,b){YB(a.O)&&a.Nb.N("ctmp","drmlog",b)};
QH=function(){this.keys=[];this.values=[]};
RH=function(a,b,c){uH.call(this);var d=this;this.o=a;this.l=b;this.g=[];this.i=new g.J(function(){var e=d.g.shift().info;a:{var f=e.cryptoPeriodIndex;if(isNaN(f)&&0<d.l.values.length)f=!0;else{for(var k=g.q(d.l.values),l=k.next();!l.done;l=k.next())if(l.value.cryptoPeriodIndex==f){f=!0;break a}f=!1}}f||d.N("rotated_need_key_info_ready",e);0<d.g.length&&(e=d.g[0].time-(0,g.D)(),d.i.start(Math.max(0,e)))},0);
g.B(this,this.i);c.subscribe("widevine_set_need_key_info",this.u,this)};
UH=function(a,b,c){g.N.call(this);a&&(a.addKey||a.webkitAddKey)||Pz()||Uz(c.experiments);this.D=a;this.O=b;this.g=b.cd;this.o=c;this.subscribe("newlicense",this.kK,this);this.subscribe("newsession",this.lK,this);this.subscribe("sessionready",this.nL,this);this.subscribe("keystatuseschange",this.TF,this);this.subscribe("hdentitled",this.uJ,this);this.ga=b.drmSessionId||g.wt();this.i=new QH;this.T=null;this.l=[];this.B="fairplay"==this.g.flavor?oy:g.O(this.o.experiments,"html5_drm_start_from_null_constraint")?
oy:SH;this.I=null;this.F=new CH(a,this.g);g.B(this,this.F);this.u=null;Qz(this.g)&&(this.u=new CH(a,this.g),g.B(this,this.u));this.X=2;this.ca=new g.Us(this);g.B(this,this.ca);this.Z=this.aa=!1;this.Y=null;this.R=!1;a=this.D;this.g.i?this.ca.K(a,"encrypted",this.jJ):Vs(this.ca,a,Qz(this.g)?["msneedkey"]:["needkey","webkitneedkey"],this.iK);(a=DH(this.F))?a.then(Zp((0,g.x)(this.PJ,this)),Zp((0,g.x)(this.zI,this))):(TH(this,"mdkrdy"),this.R=!0);this.u&&DH(this.u);this.oa=!!this.O.cd&&"widevine"==this.O.cd.flavor&&
!this.O.sa&&(g.O(this.o.experiments,"html5_skip_widevine_innertube_drm_heartbeats")||!this.O.Wq);this.H=this.P=this.M=!1;a:{a=this.g;b=this.o.experiments;c=this.i;switch(a.flavor){case "fairplay":if(c=/\sCobalt\/(\S+)\s/.exec(g.Ib)){b=[];c=g.q(c[1].split("."));for(var d=c.next();!d.done;d=c.next())d=parseInt(d.value,10),0<=d&&b.push(d);b=parseFloat(b.join("."))}else b=NaN;19.2999<b?(b=a.nm,a=a.lm,a>=b&&(a=.75*b),c=.5*(b-a),a=new xH(c,b,b-c-a,this)):a=null;break a;case "widevine":a=new RH(g.O(b,"disable_license_delay"),
c,this);break a}a=null}if(this.A=a)g.B(this,this.A),this.A.subscribe("rotated_need_key_info_ready",this.Lu,this);TH(this,"cks"+this.g.Od())};
XH=function(a,b,c){a.Z=!0;0!=a.l.length&&a.O.va&&a.O.va.g?VH(a):WH(a,new vH(b,c))};
Sia=function(a,b){if(Qz(a.g)&&!a.M){var c=Jha(b);if(0!=c.length){var d=new vH(c);a.M=!0;navigator.requestMediaKeySystemAccess("com.microsoft.playready",[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}]).then(function(e){e.createMediaKeys().then(function(f){Ria(a,f,d)})},null)}}};
Ria=function(a,b,c){var d=b.createSession(),e=a.i.values[0],f=Kia(e);d.addEventListener("message",function(k){Pia(k.message,d,a.g.o,f)});
d.addEventListener("keystatuseschange",function(){d.keyStatuses.forEach(function(k,l){"usable"==l&&(a.P=!0,YH(a,NH(e,a.P)))})});
d.generateRequest("cenc",c.initData)};
WH=function(a,b){a.fa()||(TH(a,"initd"+b.initData.length+"ct"+b.contentType),a.aa&&a.oa||(a.aa=!0,"widevine"==a.g.flavor?(wH(b),a.N("widevine_set_need_key_info",b)):a.Lu(b)))};
ZH=function(a){a.fa()||(a.R=!0,TH(a,"onmdkrdy"),VH(a))};
VH=function(a){if(a.Z&&a.R&&!a.H){for(;a.l.length;){var b=a.l[0];if(a.i.get(b.initData))if("fairplay"==a.g.flavor)a.i.remove(b.initData);else{a.l.shift();continue}wH(b);break}if(a.l.length){b=a.l[0];a.i.get(b.initData);a.H=!0;var c=new IH(a.O,a.o,a.F,b,a,a.ga);a.i.set(b.initData,c)}}};
YH=function(a,b){var c=my("auto",b,!1,"l");if(g.O(a.o.experiments,"html5_drm_start_from_null_constraint")){if(ly(a.B,c))return}else if(ry(a.B,b))return;a.B=c;a.N("qualitychange");TH(a,"updtlq"+b)};
TH=function(a,b){YB(a.O)&&a.Nb.N("ctmp","drmlog",b)};
$H=function(a,b,c,d){this.videoData=a;this.g=b;this.reason=c;this.i=d};
Tia=function(a,b){this.videoData=a;this.va=b};
Uia=function(a,b,c){return cha(b,c).then(function(){return(S(a,"disable_index_range_auth")||!b.Im||!b.va.g||b.Te()||b.ek()?0:/&init=0-0&/.test(b.adaptiveFormats))?Er(new g.xx("auth",!0,{init:"1"})):Fr(new Tia(b,b.va))},function(d){d instanceof Error&&g.$p(d);
d=b.sa&&!g.fy(a.o)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.Nd,f18:""+ +(0<=b.Vi.indexOf("itag=18")),c18:""+ +px('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f43:""+ +(0<=b.Vi.indexOf("itag=43")),c43:""+ +px('video/webm; codecs="vp8.0, vorbis"')};b.ia&&(e.f133=""+ +!!b.ia.g["133"],e.f140=""+ +!!b.ia.g["140"],e.c140=""+ +rx('audio/mp4; codecs="mp4a.40.2"'),e.f242=""+ +!!b.ia.g["242"],e.c242=""+ +rx('video/webm; codecs="vp9"'));return new g.xx(d,
!0,e)})};
aI=function(a,b){g.N.call(this);this.g=a;this.I=b;this.H=this.A=this.B=this.l=this.i=this.u=this.F=this.o=0;this.D=1};
cI=function(a,b,c){g.uz(a.g)&&(c=py(c,bI(a,b)));return c};
bI=function(a,b){if(g.uz(a.g)&&Tx(a.g.o,Xx))var c=b.va.videoInfos[0].ua().Tb;else{var d=!!b.va.g;ez(a.g)&&(c=window.screen&&window.screen.width?new g.vd(window.screen.width,window.screen.height):null);c||(c=a.g.hj?a.g.hj.clone():a.I.getPlayerSize());if(gz||dI||d){d=c;var e=g.Dz(),f=g.Fa(void 0)?void 0:e;d.width*=e;d.height*=f}var k=b.va.videoInfos;if(k.length){d=.85;e=k[0].ua();4!=e.projectionType&&2!=e.projectionType&&3!=e.projectionType||cz||(d=.45);e=k[0];f=e.ua();k=g.q(k);for(var l=k.next();!l.done&&
!(e=f=l.value,f=f.ua(),null===c||f.width*d<c.width&&f.height*d<c.height);l=k.next());c=my("auto","93"==gv(e)?hw(f.width,f.height):f.quality,!1,"r")}else c=oy;c=c.g}c&&(c=Math.max(c,360));return new ky(0,c,!1,"r")};
eI=function(a,b){var c;a:if((c=b.va)&&c.videoInfos.length&&null!=c.videoInfos[0].o){for(var d=g.q(c.videoInfos),e=d.next();!e.done;e=d.next())if(e=e.value,e.o){c=e.ua().Tb;break a}c=c.videoInfos[0].ua().Tb}else c=0;jr()&&!g.uz(a.g)&&pw(b.va.videoInfos[0])&&(c=Math.min(c,g.iw.large));return new ky(0,c,!1,"o")};
Via=function(a){var b,c,d,e;return xa(function(f){if(1==f.g){if(!a.va.g)return f["return"]();b=a.va.videoInfos;return ua(f,HA(b),2)}c=g.q(b);for(d=c.next();!d.done;d=c.next())e=d.value,!1===e.o&&yy(e.i,e.ua().fps,e.ua().Tb-1);f.g=0})};
Wia=function(a,b,c){if(!b||!c||!b.videoData.za)return!1;var d=g.P(a.g.experiments,"html5_df_downgrade_thresh"),e=a.ra("html5_log_media_perf_info"),f=g.P(a.g.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>g.M()-a.u?0:e||0<d||0<f))return!1;a.u=g.M();c=c.un();if(!c)return!1;var k=c.droppedVideoFrames-a.A,l=c.totalVideoFrames-a.H;a.A=c.droppedVideoFrames;a.H=c.totalVideoFrames;e&&b.videoData.Hf&&a.N("ctmp","ddf","dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames);e=60<l?k/l:0;0<e&&
(a.B=e);a.l=0<f&&60*e>f?a.l+1:0;if(!d||g.uz(a.g)||!fI(a,b))return!1;a.i=e>d?a.i+1:0;if(3!=a.i)return!1;gI(a,b.videoData.za);a.N("ctmp","dfd",hI());return!0};
fI=function(a,b){if(a.ra("html5_restore_perf_cap"))return!0;if(!b.videoData.za)return!1;if("1"==b.videoData.za.i)return!0;var c=a.g.g?240:360;return b.videoData.za.ua().Tb>c};
gI=function(a,b){var c=b.ua().Tb-1;yy(b.i,b.ua().fps,c);a.g.Wf=new ky(0,c,!1,"b")};
iI=function(a,b){if(a.ra("html5_restore_perf_cap")){for(var c=0,d=a.g.g?240:360,e=g.q(b.va.videoInfos),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.i,l=f.ua().fps;k=+wy()[vy(k,l)]||0;f=f.ua().Tb;if(!k||Math.max(k,d)>=f){c=f;break}}return new ky(0,c,!1,"b")}return a.g.Wf};
jI=function(a,b){a.ra("html5_log_media_perf_info")&&(a.N("ctmp","perfdb",hI()),a.N("ctmp","hwc",""+navigator.hardwareConcurrency,!0),b&&a.N("ctmp","mcdb",b.va.videoInfos.filter(function(c){return!1===c.o}).map(function(c){return gv(c)}).join("-")))};
hI=function(){var a=Mb(wy(),function(b){return""+b});
return yx(a)};
kI=function(a,b){g.A.call(this);this.g=a;this.R=b;this.l=-1;this.I=!1;this.o=-1;this.i=new g.PC;this.D=this.B=this.H=0;this.A=new g.J(this.u,6E4,this);g.B(this,this.A);this.F=!1};
lI=function(a){0<=a.l||(3==a.g.getVisibilityState()?a.I=!0:(a.l=g.VD(a.g),a.A.start()))};
mI=function(a){if(!(0>a.o)){var b=g.VD(a.g),c=b-a.H;a.H=b;8==a.i.g?a.B+=c:g.YC(a.i)&&!g.T(a.i,16)&&(a.D+=c)}};
oI=function(a){g.A.call(this);var b=this;this.g=a;this.i={};this.M=1;this.X=NaN;this.l="N";this.A=this.ma=this.ga=this.Y=this.o=0;this.P=this.na="";this.Z=0;this.wa=-1;this.ea=1;this.I=this.R=0;this.aa=this.H=!1;this.xa=[];this.B=null;this.D=this.T=this.F=!1;(a=navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.B=c});
g.nI(this,0,"vps",["N"])};
g.nI=function(a,b,c,d){var e=a.i[c];e||(e=[],a.i[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
rI=function(a,b){b=0<=b?b:g.VD(a.g);var c=a.g.l();if(!isNaN(a.oa)&&!isNaN(c.l)){var d=c.l-a.oa;0<d&&g.nI(a,b,"bwm",[d,(c.u-a.Ca).toFixed(3)])}a.oa=c.l;a.Ca=c.u;isNaN(c.bandwidthEstimate)||g.nI(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.g.videoData.Hf&&c.g&&pI(a,"bwinfo",c.g);a.B&&g.nI(a,b,"bat",[a.B.level,a.B.charging?"1":"0"]);d=a.g.getVisibilityState();a.wa!=d&&(g.nI(a,b,"vis",[d]),a.wa=d);g.nI(a,b,"cmt",[a.g.g().toFixed(3)]);(d=YD(a.g))&&d!=a.Z&&(g.nI(a,b,"conn",[d]),a.Z=d);qI(a,b,c)};
qI=function(a,b,c){if(!isNaN(c.i)){var d=c.i;c.o<d&&(d=c.o);g.nI(a,b,"bh",[d.toFixed(3)])}};
sI=function(a){var b=0,c;for(c in a.i)b+=c.length+nj(a.i[c],function(d,e){return d+e.length},0);
1E3<b&&(new g.J(a.u,0,a)).start()};
tI=function(a,b,c,d){var e=a.g.g();c=[c,e.toFixed(3)];d&&c.push(d);g.nI(a,b,"error",c);a.D=!0};
Yia=function(a,b){if(g.T(b,128))return"ER";if(g.T(b,512))return"SU";if(g.T(b,16)||g.T(b,32))return"S";var c=Xia[ZC(b)];g.uz(a.g.rb)&&"B"==c&&3==a.g.getVisibilityState()&&(c="SU");"B"==c&&g.T(b,4)&&(c="PB");return c};
uI=function(a,b){var c=a.i.cat||[];c.push(b);a.i.cat=c};
pI=function(a,b,c,d){var e=a.i.ctmp||[],f=-1!=a.xa.indexOf(b);f||a.xa.push(b);d&&f||(!g.O(a.g.rb.experiments,"html5_censor_ctmp_killswitch")&&/[^a-zA-Z0-9;.!_-]/.test(c)&&(c=c.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_")),d||(c="t."+(1E3*g.VD(a.g)).toFixed()+";"+c),e.push(b+":"+c),a.i.ctmp=e,sI(a))};
vI=function(a){g.A.call(this);var b=this;this.o=a;this.l=this.g=this.i=null;this.o.videoData.isValid()&&!this.o.videoData.Qi&&(this.i=new cE(a),g.B(this,this.i),this.g=new oI(a),g.B(this,this.g));g.O(a.rb.experiments,"html5_health_to_qoe")&&(this.l=new kI(a,function(c){b.g&&pI(b.g,"h5h",c,void 0)}),g.B(this,this.l))};
g.wI=function(a){a.i&&MD(a.i.i)};
Zia=function(a){return a.i?Cha(a.i):function(){}};
$ia=function(a){this.o=new $C(50);this.g=null;this.l=this.i=0;this.u=a};
yI=function(a,b,c){g.N.call(this);var d=new aja;"ULTRALOW"==a.latencyClass&&(d.o=!1);a.bk?d.i=3:g.lC(a)&&(d.i=2);g.O(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!=a.latencyClass||(d.A=!0);var e=RB(a);d.u=2==e||-1==e;d.u&&(d.H++,21530001==OB(a)&&(d.B=g.P(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(hr("trident/")||hr("edge/"))e=g.P(b,"html5_platform_minimum_readahead_seconds")||3,d.l=Math.max(d.l,e);g.P(b,"html5_minimum_readahead_seconds")&&(d.l=g.P(b,"html5_minimum_readahead_seconds"));
g.P(b,"html5_maximum_readahead_seconds")&&(d.D=g.P(b,"html5_maximum_readahead_seconds"));g.O(b,"html5_force_adaptive_readahead")&&(d.o=!0);g.P(b,"html5_allowable_liveness_drift_chunks")&&(d.g=g.P(b,"html5_allowable_liveness_drift_chunks"));g.P(b,"html5_readahead_ratelimit")&&(d.F=g.P(b,"html5_readahead_ratelimit"));switch(OB(a)){case 21530001:d.g=(d.g+1)/5,"LOW"==a.latencyClass&&(d.g*=2),d.I=g.O(b,"html5_live_smoothly_extend_max_seekable_time")}this.g=d;this.O=a;this.F=c;this.l=[];this.u=0;this.o=
!0;this.A=1!=this.g.i;this.B=!1;this.D=0;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.bk&&b--;a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||b++;switch(OB(a)){case 21530001:b=1;break;case 2153E4:b=2}this.g.u&&b++;this.i=xI(this,b)};
AI=function(a,b){var c=a.i;(void 0===b?0:b)&&a.g.I&&3==RB(a.O)&&--c;return zI(a)*c};
CI=function(a,b){var c=BI(a);var d=a.g.g;a.B||(d=Math.max(d-1,0));d*=zI(a);return b>=c-d};
BI=function(a){return Math.max(a.F()-AI(a,!0),a.O.Ab())};
DI=function(a,b,c){b=CI(a,b);c||b?b&&(a.o=!0):a.o=!1;a.A=2==a.g.i||3==a.g.i&&a.o};
EI=function(a,b){var c=CI(a,b);a.B!=c&&a.N("livestatusshift",c);a.B=c};
zI=function(a){return a.O.ia?lx(a.O.ia)||5:5};
xI=function(a,b){b=Math.max(Math.max(a.g.H,Math.ceil(a.g.l/zI(a))),b);return Math.min(Math.min(8,Math.floor(a.g.D/zI(a))),b)};
aja=function(){this.H=1;this.l=0;this.D=Infinity;this.F=0;this.o=!0;this.g=2;this.i=1;this.u=!1;this.B=NaN;this.I=this.A=!1};
II=function(a,b){g.N.call(this);var c=this;this.Z=b;var d={};this.Y=(d.seekplayerrequired=this.KM,d.videoformatchange=this.tG,d);this.ra("html5_unrewrite_timestamps")&&(this.Y.timestamp=this.VM);this.O=a;this.ga=null;this.ma=new bja(b);this.X=new g.Us;g.B(this,this.X);this.F=this.l=this.u=this.g=null;this.i=NaN;this.B=0;this.A=null;this.R=NaN;this.D=this.H=null;this.aa=this.I=!1;this.oa=new g.J(function(){var e={tgt:c.i};c.u&&g.Ra(e,c.u.fb());c.g&&g.Ra(e,c.g.fb());if(isFinite(c.i)&&0<c.i&&c.g&&FI(c)){var f=
c.g.getCurrentTime(),k=c.i-c.o,l=!c.ra("html5_reseek_element_killswitch")&&(f<c.i-10||f>c.i+10);if(!f||l)c.g.seekTo(k),e.elem="1"}if(f=c.u)f=c.u,f=tH(f.i)||tH(f.o);f||c.N("ctmp","seektimeout",yx(e))},1E4);
g.B(this,this.oa);this.P=new g.J(function(){c.I=!0;GI(c)});
g.B(this,this.P);this.na=new g.J(function(){return HI(c)});
g.B(this,this.na);this.o=0;this.M=!0;this.T=!1;this.ea=0};
cja=function(a,b){a.ga=b;a.O.sa&&(a.F=new $ia(function(){a:{if(a.ga&&a.ga.va.g){if(NB(a.O)&&a.u){var d=a.u.wa.g()||0;break a}if(a.O.ia){d=a.O.ia.F;break a}}d=0}return d}),a.l=new yI(a.O,a.Z.experiments,function(){return a.qc(!0)}));
var c=a.ma.g&&a.O.isAd();a.O.startSeconds&&isFinite(a.O.startSeconds)&&1E9<a.O.startSeconds||c||(a.B=a.B||a.O.startSeconds||0)};
KI=function(a,b){g.Ws(a.X);(a.g=b)?(dja(a),HI(a)):JI(a)};
MI=function(a,b){a.u&&Ys(a.u,a.Y,a);(a.u=b)?(Xs(b,a.Y,a),LI(a,!0)):JI(a)};
NI=function(a){return!!a.l&&a.l.A};
LI=function(a,b){if(a.l&&a.u){var c=!1;if(b)c=!0;else if(a.O.isLowLatencyLiveStream||"LOW"==a.O.latencyClass||"ULTRALOW"==a.O.latencyClass)if(c=a.l,c.l.length){var d=c.i;b:{if(c.l.length){if(1<Math.min.apply(null,c.l)){var e=xI(c,c.i-1);break b}if(c.g.o){e=xI(c,c.i+1);break b}}e=c.i}c.i=e;if(d=d!=c.i)c.l=[],c.u=0;c=d}else c=!1;c&&a.N("livereadaheadchanged",AI(a.l));c=a.u;d=a.l.i;e=a.l;e=(e.i-1+e.g.g)*zI(e);var f=a.l.g.B;c.Ca=Math.max(d-1,0);c.D&&(c.D.R=e);c.Ya=f}};
OI=function(a){return a.O.sa&&!!a.O.va&&!a.O.va.g};
GI=function(a){eja(a).then(void 0,function(){JI(a)});
PI(a).then(function(b){a.D&&(a.D.resolve(b),a.N("seekend"));JI(a)},function(){JI(a)});
a.oa.start();a.N("seekstart")};
eja=function(a){if(!a.H)if(a.u)if(isFinite(a.i))a.H=a.u.seek(a.i-a.o);else{var b=a.u;XG(b);b.D&&EG(b.D,b.i.g);var c=Math.max(LF(b.i.l),LF(b.o.l)),d=b.i;d.B=!0;d.u=-1;bG(d,Infinity);d.l.A=c;d.D=c;d=b.o;d.B=!0;d.u=-1;bG(d,Infinity);d.l.A=c;d.D=c;d=b.u;for(var e in d.g)Ut(d.g[e].index,Infinity);b.g.X&&(b.M=!0,b.ya=!0);b.A=c;b.R=!0;g.Do(b.Z);b.ea=new SG;a.H=b.ea;a.i=a.u.getCurrentTime()+a.o}else a.H=ng(a.i-a.o);return a.H};
PI=function(a){var b=a.A;b||(a.A=new SG,b=a.A,HI(a));return b};
QI=function(a,b,c){return isNaN(b)?NaN:g.pd(b,a.Ab(),a.qc(c))};
HI=function(a){if(a.A)if(!a.ra("html5_nondash_live_seek_killswitch")&&OI(a)&&a.g&&0<a.g.je()&&0<DC(a.g)&&(a.i=QI(a,a.i,!1)),!a.g||!FI(a))a.na.start(750);else if(!isNaN(a.i)&&isFinite(a.i)&&a.R!=a.i-a.o){var b=a.g.getCurrentTime()-a.i;if(Math.abs(b)<=a.ea)RI(a);else if(a.T&&a.g.getCurrentTime()>=a.i)RI(a);else if(!a.O.sa&&a.i>=a.qc()-.1)a.i=a.qc(),a.A.resolve(a.qc()),a.N("ended");else try{a.g.seekTo(a.i-a.o),a.R=a.i-a.o,a.B=a.i}catch(c){}}};
FI=function(a){if(!a.g||0==a.g.je()||0<a.g.We())return!1;var b=0<a.g.getCurrentTime();if(0<=a.i){var c=a.g.Bm();if(c.length||!b)return 0<=Bx(c,a.i-a.o)}return b};
RI=function(a){a.A&&a.A.resolve(a.g.getCurrentTime())};
JI=function(a){a.i=NaN;a.R=NaN;a.A=null;a.H=null;a.D=null;a.I=!1;a.aa=!1;a.T=!1;a.ea=0;a.oa.stop();a.P.stop()};
dja=function(a){if(a.g)for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.X.K(a.g,c.value,function(d){switch(d.type){case "seeking":d=a.g.getCurrentTime()+a.o;if(!a.A||a.aa&&d!=a.i)a.A=new SG,a.R=d,a.seekTo(d,!0),a.aa=!0;break;case "seeked":RI(a);break;case "loadedmetadata":if(a.M){d="ss.";var e=0;if((mC(a.O)||a.O.liveUtcStartSeconds)&&(a.O.liveUtcStartSeconds||a.O.startSeconds&&isFinite(a.O.startSeconds)&&1E9<a.O.startSeconds)&&a.O.ia){e=a.O.liveUtcStartSeconds||
a.O.sg;d="utc.";var f=a.qc();var k=a.qc();k=mx(a.O.ia,k-a.o);e=f-k+e}else a.O.ia&&a.O.ia.i&&a.O.sg?e=a.O.sg+a.Ib():a.ra("html5_unrewrite_timestamps")&&a.O.yo&&(e=a.O.yo);e?(a.seekTo(e),a.N("ctmp","startSeconds",d+e),a.M=!1):a.O.sg&&a.N("ctmp","startSeconds","ss."+(a.O.sg+a.Ib()));d=!!e}else d=!1;a.ra("html5_nondash_live_seek_killswitch")&&!d&&OI(a)&&(a.i=isFinite(a.i)?g.pd(a.i,a.Ab(),a.qc()):a.qc());case "progress":HI(a)}})};
fja=function(a){if(!a.g)return 0;if(mC(a.O)){var b=HC(a.g)+a.o-a.Ab();a=a.qc()-a.Ab();return Math.max(0,Math.min(1,b/a))}return IC(a.g)};
bja=function(a){this.i=g.O(a.experiments,"html5_live_smoothly_extend_max_seekable_time");this.g=!g.O(a.experiments,"html5_ignore_start_seconds_for_ads_killswitch")};
SI=function(){var a=ds();return!(!a||"visible"==a)};
UI=function(a){var b=TI();b&&document.addEventListener(b,a,!1)};
VI=function(a){var b=TI();b&&document.removeEventListener(b,a,!1)};
TI=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[cs+"VisibilityState"])return"";a=cs+"visibilitychange"}return a};
WI=function(){g.N.call(this);this.l=0;this.o=this.i=this.g=this.u=!1;this.A=(0,g.x)(this.yi,this);UI(this.A);this.B=this.getVisibilityState(this.i,this.isFullscreen(),this.g,this.isInline(),this.o)};
gja=function(a,b){a.i!=b&&(a.i=b,a.yi())};
XI=function(a,b){a.o!=b&&(a.o=b,a.yi())};
YI=function(){this.i=this.g=!1};
bJ=function(a,b,c,d,e,f,k){g.N.call(this);var l=this;this.o=a;this.wa=new yha(this.ra("html5_min_has_advanced"));this.T=c;this.Ya=d;this.hf=f;this.I=k;c=(0,g.x)(function(m,n){m!=g.tE("endcr")||g.T(this.i,32)||ZI(this);e(m,n)},this);
this.H=new NG((0,g.x)(this.getCurrentTime,this),(0,g.x)(this.getPlaybackRate,this),(0,g.x)(this.getPlayerState,this),c,a);g.B(this,this.H);this.B=null;this.ab=[];this.P=null;this.R=new aI(a,this.Ya);g.B(this,this.R);this.R.subscribe("ctmp",this.Ma,this);this.Sb=!0;this.D=this.l=null;this.M=[];this.aa=new YI;this.F=this.ma=null;this.Y=new YI;this.ya=null;this.jf=this.oa=!1;this.jb=NaN;this.i=new g.PC;this.tb=[];this.Ra=b;this.na=new g.Us;g.B(this,this.na);this.O=new g.zB(a);$I(this,function(){return{}});
this.g=null;this.ea=new g.J((0,g.x)(this.HJ,this),15E3);g.B(this,this.ea);this.kd=this.xa=!1;this.ga=NaN;this.Ea=!1;this.Mb=new g.J(this.Us,4500,this);g.B(this,this.Mb);this.Wb=this.Ca=!1;this.Xb=NaN;this.X=new bD;g.B(this,this.X);dD(this.X,"bufferhealth",function(){var m=l.A;return m.g?FC(m.g):0});
dD(this.X,"bandwidth",(0,g.x)(this.rD,this));dD(this.X,"networkactivity",(0,g.x)(this.vD,this),!0);dD(this.X,"livelatency",(0,g.x)(this.pw,this));dD(this.X,"rawlivelatency",(0,g.x)(this.tw,this));this.X.start();this.Qc=!1;this.Rb=!0;this.uc=NaN;this.Oc=this.Wf=!1;this.Qa=1;this.Ia=(0,g.x)(this.eF,this);UI(this.Ia);this.I.subscribe("visibilitystatechange",this.Ia);this.kf=this.Ad=this.zd=0;hja(this);this.Z=null;this.ld=!1;this.hd=[];this.Yb=this.lf=0;this.jd=this.mf=!1;this.Lb=new g.J(function(){g.aJ(l,
"ad.rebuftimeout","RETRYABLE_ERROR","vps."+l.i.g.toString(16))});
g.B(this,this.Lb)};
zJ=function(a,b,c,d){d=void 0===d?!0:d;a.M.length=0;a.ma=null;a.aa.reset();a.Y.reset();a.xa=!1;a.uc=NaN;a.Sb=!0;a.ya=null;a.g&&a.g.stopVideo();cJ(a);dJ(a);eJ(a);g.Aq(a.ga);a.X.clear();g.qf(a.O);if(2==a.Ra||a.o.Il)b.kx=!0;var e=a.o.i;var f=a.o.vb,k;(k=b.Hs)||(k=(k=b.Ht)&&Tb(fJ,k)&&Tb(gJ,k)?gJ[k]+"_"+fJ[k]:void 0);if(k){var l=k.match(hJ);if(l&&5==l.length){if(l=k.match(hJ)){var m=parseInt(l[3],10),n=[7,8,10,5,6];l=!(1==parseInt(l[1],10)&&8==m)&&0<=n.indexOf(m)}else l=!1;e=e||f||l?k:null}else e=null}else e=
null;e&&(b.adFormat=e);2==a.Ra&&(b.rh=!0);if(a.I.isFullscreen()||a.o.i)e=g.It("yt-player-autonavstate"),b.autonavState=e||(a.o.i?2:a.O.autonavState);a.Rb=d;a.O=b;a.O.subscribe("dataupdated",a.TL,a);a.O.subscribe("dataloaded",a.Kp,a);a.O.subscribe("dataloaderror",a.lk,a);a.O.subscribe("onStatusFail",a.SL,a);mJ(a,b);$I(a,c);a.Ea=!1;tJ(a,"newdata");yJ(a,new g.PC);b=a.A;a=a.O;JI(b);b.O=a;b.l=null;b.F=null;b.o=0;b.B=0;b.M=!0};
$I=function(a,b){var c=new Bha(a.O,a.o,b,(0,g.x)(a.getDuration,a),(0,g.x)(a.getCurrentTime,a),(0,g.x)(a.yD,a),(0,g.x)(a.Ya.getPlayerSize,a.Ya),(0,g.x)(a.getAudioTrack,a),(0,g.x)(a.getPlaybackRate,a),(0,g.x)(a.tq,a),a.hf,(0,g.x)(a.LD,a),function(){UB("qoes",void 0,"")});
a.u=new vI(c)};
dJ=function(a){var b=a.u;b.l&&b.l.u();if(b.i){var c=b.i;if(!c.fa()&&c.l){c.u="paused";var d=gE(c);d.isFinal=!0;d.send();g.gq(c.o);c.dispose()}}b.g&&(c=b.g,g.O(c.g.rb.experiments,"html5_stopVideo_ping_block_killswitch")||c.D)&&("PL"==c.l&&(c.l="N"),d=g.VD(c.g),g.nI(c,d,"vps",[c.l]),c.u(d));b.dispose();g.qf(a.u)};
AJ=function(a){return a.g&&a.g.xg()?a.g.ha():null};
BJ=function(a){if(a.O.isValid())return!0;g.aJ(a,"api.invalidparam",void 0,"invalidVideodata.1");return!1};
EJ=function(a,b){a.oa=void 0===b?!1:b;if(!BJ(a)||a.aa.g)CJ(a)&&a.aa.g&&!a.aa.isFinished()&&!a.oa&&a.Kp();else{a.aa.start();var c=a.u;g.VD(c.o);if(c.g){c=c.g;c.g.videoData.Nk&&uI(c,c.g.videoData.Nk);c.g.videoData.Ci?uI(c,"prefetch"):(c.i.user_intent=["0"],c.F=!0);c.g.videoData.cf&&(pI(c,"reload",c.g.videoData.reloadReason),pI(c,"reloadcount",c.g.videoData.cf.toString()));c.g.videoData.bk&&uI(c,"monitor");c.g.videoData.sa&&uI(c,"live");c.g.videoData.Be&&pI(c,"ctrl",c.g.videoData.Be,!0);c.g.videoData.Ce&&
pI(c,"ytp",c.g.videoData.Ce,!0);if(c.g.videoData.mA){var d=c.g.videoData.mA.replace(/,/g,".");pI(c,"ytrexp",d,!0)}c.g.videoData.chapterMarkers.length&&uI(c,"chaptermarkers");if(!g.O(c.g.rb.experiments,"html5_disable_gpu_reporting")){var e=c.g.rb.experiments;d=c.g.videoData;e=g.O(e,"enable_white_noise")||g.O(e,"enable_webgl_noop")||g.O(e,"enable_gpu_logging");var f=d.di()||d.If()||d.Jf()||d.Df(),k=d.va&&"1"==g.Va(d.va.videoInfos).i&&/^g/.test(d.clientPlaybackNonce);d=/^gp/.test(d.clientPlaybackNonce);
(e||f||d||k)&&(d=(0,g.DJ)())&&(c.i.gpu=[d])}c.X=fq((0,g.x)(c.u,c),1E4)}a.Kp()}};
CJ=function(a){return g.O(a.o.experiments,"tvhtml5_disable_live_prefetch")&&g.uz(a.o)&&a.O.sa};
ija=function(a){g.T(a.i,128)||(a.O.Eb(),a.Rb=!0,4!=a.Ra&&(a.M=g.gb(a.O.Fc)),dC(a.O)?(FJ(a).then(function(){a.fa()||(a.oa&&GJ(a),mJ(a,a.O),a.aa.i=!0,tJ(a,"dataloaded"),a.Y.g?HJ(a):a.oa&&yJ(a,SC(SC(a.i,512),1)),jI(a.R,a.F))}),a.Ma("loudness",""+a.O.Pk.toFixed(3),!0)):tJ(a,"dataloaded"))};
FJ=function(a){eJ(a);a.F=null;var b=Uia(a.o,a.O,a.I.i);a.ma=b;a.ma.then((0,g.x)(a.vK,a),(0,g.x)(a.wK,a));return b};
IJ=function(a){a.g&&a.g.pe();EJ(a);BJ(a)&&!g.T(a.i,128)&&(a.Y.g||(a.Y.start(),yJ(a,SC(SC(a.i,8),1))),HJ(a))};
HJ=function(a){if(!a.Y.isFinished()&&a.aa.isFinished()&&!g.T(a.i,128)&&!a.M.length){if(!a.H.started){var b=a.H;b.started=!0;b.i()}if(!JJ(a)){a.l&&(b=a.l.ga,a.jf=!!b.g&&!!b.o);a.Y.isFinished()||(a.Y.i=!0);!a.O.sa||0<a.O.sg&&!NB(a.O)||(a.seekTo(Infinity,!0),KJ(a,"readying"),a.I.isBackground()&&(a.kd=!0));b=a.u;if(b.i){var c=b.i;c.g.videoData.zj&&c.g.videoData.jm&&(c.B("connected"),kE(c))}b.g&&(b=b.g,b.g.videoData.sa&&(c=b.g.videoData.ia,NB(b.g.videoData)&&uI(b,"manifestless"),c&&lx(c)&&uI(b,"live-segment-"+
lx(c).toFixed(1))));a.N("playbackready",a);qB("pbr","")||(UB("pbr",void 0,""),rB("pbr"))}}};
ZI=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.g&&a.g.pause();b=b?new g.PC(14):new g.PC;yJ(a,b)};
mJ=function(a,b){if(b.endSeconds&&b.endSeconds>b.startSeconds){var c=b.endSeconds;a.P&&(a.removeCueRange(a.P),a.P=null);a.P=new g.qE(1E3*c,0x7ffffffffffff);a.P.namespace="endcr";a.addCueRange(a.P)}};
MJ=function(a,b,c,d){a.O.za=c;d&&LJ(a,b,d);var e=g.iD(a);d=a.u;e=new $H(a.O,c,b,e?gv(e):"");if(d.g){c=d.g;d=g.VD(c.g);g.nI(c,d,"vfs",[e.g.id,e.i,c.na,e.reason]);c.na=e.g.id;e=c.g.B();if(0<e.width&&0<e.height){e=[Math.round(e.width),Math.round(e.height)];var f=g.Dz();1<f&&e.push(f);g.nI(c,d,"view",e)}c.T||(c.g.videoData.Hf&&uI(c,"rqs"),c.g.videoData.ia&&Zw(c.g.videoData.ia)&&(c.i.preload=["1"]));c.T=!0;c.D=!0;g.nI(c,d,"vps",[c.l]);c.u(d)}c=a.R;c.o=0;c.i=0;a.N("internalvideoformatchange",a.O,"m"==b)};
g.iD=function(a){var b=NJ(a);return ny(b)||!a.F?null:g.Xa(a.F.va.videoInfos,(0,g.x)(b.o,b))};
LJ=function(a,b,c){if(c!=a.O.Zb){var d=!a.O.Zb;a.O.Zb=c;"m"!=b&&(b=d?"i":"a");var e=a.u;c=new $H(a.O,c,b,"");if(e.g){e=e.g;var f=g.VD(e.g);c.g.id!=e.P&&(g.nI(e,f,"afs",[c.g.id,e.P,c.reason]),e.P=c.g.id)}d||a.N("internalaudioformatchange",a.O,"m"==b)}};
g.aJ=function(a,b,c,d,e,f){var k,l;g.Ub(jja,c)?k=c:c?l=c:k="GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:e,errorMessage:l||g.OJ[k]||"",bq:k,Ph:f||"",jA:d};tJ(a,"dataloaderror");yJ(a,RC(a.i,128,b));g.Aq(a.ga);eJ(a);g.PJ(a)};
QJ=function(a,b){a.M=a.M.filter(function(c){return b!=c});
a.Y.g&&HJ(a)};
JJ=function(a){var b;(b=!!a.M.length)||(a=a.H.g.g[0],b=!!a&&-0x8000000000000>=a.start);return b};
UJ=function(a,b){if(a.g&&b.ha()==a.g.ha()&&(b.isView()||a.g.isView())){if(b.isView()||!a.g.isView())g.Ws(a.na),a.g=b,RJ(a),KI(a.A,a.g)}else{a.g&&SJ(a);if(!a.i.isError()){var c=TC(a.i,512);g.T(c,8)&&!g.T(c,2)&&(c=SC(c,1));yJ(a,c)}a.g=b;a.g.setLoop(a.Oc);a.g.setPlaybackRate(a.Qa);RJ(a);TJ(a);KI(a.A,a.g)}};
TJ=function(a){if(g.O(a.o.experiments,"html5_prewarm_mse")&&ey()&&Px()&&a.g)try{a.g.Yn()}catch(b){}};
SJ=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;if(a.g){var d=a.getCurrentTime();0<d&&(a.A.B=d);KI(a.A,null);VJ(a);a.l&&(g.Do(a.l.Z),WJ(a,c));a.ea.stop();if(a.g){!a.Y.g||a.i.isError()||g.T(a.i,2)||yJ(a,SC(a.i,512));g.Ws(a.na);if(b||!a.g.isView())a.g.stopVideo(),cJ(a);a.g=null}}};
XJ=function(a){if(!a.F)return[];var b=cI(a.R,a.F,gD(a,!0));b=b||oy;a=(0,g.Xd)(a.F.va.videoInfos,(0,g.x)(b.o,b));b=[];for(var c={},d=0;d<a.length;d++){var e=a[d].ua();c[e.quality]||(b.push(e),c[e.quality]=!0)}return b};
NJ=function(a){if(a.F){var b=a.R;var c=a.F,d=gD(a);a=a.I.isBackground();var e=my("auto",uy(),!1,"s"),f=g.O(b.g.experiments,"html5_break_sticky")&&/^i/.test(c.videoData.clientPlaybackNonce);if(ny(e)||f){e=py(bI(b,c),eI(b,c));f=0;!b.g.g||g.fz(b.g)||qr()||g.O(b.g.experiments,"mweb_uniplayer_auto_quality")||g.O(b.g.experiments,"hls_for_vod")||(f=g.iw.medium);var k=g.P(b.g.experiments,"html5_default_quality_cap");if(k){var l=!!c.va.g&&!c.videoData.Be,m=g.P(b.g.experiments,"html5_quality_cap_min_age_secs");
l&&m&&(l=b.g.schedule.D,l=g.M()-l>1E3*m);l&&(f=f?Math.min(f,k):k)}if(m=k=g.P(b.g.experiments,"html5_hfr_quality_cap"))a:{m=c.va;if(m.g)for(m=g.q(m.videoInfos),l=m.next();!l.done;l=m.next())if(32<l.value.ua().fps){m=!0;break a}m=!1}m&&(f=f?Math.min(f,k):k);(k=g.P(b.g.experiments,"html5_live_quality_cap"))&&c.videoData.sa&&(f=f?Math.min(f,k):k);f=new ky(0,f,!1,"d");e=py(e,f);f=g.P(b.g.experiments,"html5_background_quality_cap");k=g.P(b.g.experiments,"html5_background_cap_idle_secs");a=!f||"auto"!=uy()||
Cs()/1E3<k?oy:a?new ky(0,f,!1,"v"):oy;a=py(e,a);e=(e=g.P(b.g.experiments,"html5_autonav_quality_cap"))&&c.videoData.fi?new ky(0,e,!1,"e"):oy;a=py(py(py(a,e),iI(b,c)),c.videoData.vB);e=new ky(0,0,!1,"o");1<b.D&&(e=new ky(0,480,!0,"o"));e=py(a,e)}g.O(b.g.experiments,"html5_ignore_sticky_for_medcap")&&(e=py(e,eI(b,c)));b=py(py(py(c.videoData.Ko,e),c.videoData.Uu),d)}else b=oy;return b};
gD=function(a,b){if(a.B){var c=a.B;var d=void 0===b?!1:b;d=void 0===d?!1:d;c=!g.O(c.o.experiments,"html5_drm_entitled_qualitycap_on_edge_killswitch")&&d&&c.I?c.I:c.B}else c=a.O.Im()&&a.O.ia&&Yw(a.O.ia)?g.O(a.o.experiments,"html5_drm_start_from_null_constraint")?oy:SH:oy;a.jd&&(c=py(c,YJ));return c};
$J=function(a){if(!a.fa()&&!g.T(a.i,128)&&a.O.va){if(a.O.va.g)ZJ(a);else{var b=NJ(a),c=a.O;a:{var d=a.O.Qf;if(b.g){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.Od(),l=g.iw[k.ua().quality];if((!b.l||"auto"!=k.ua().quality)&&l<=b.g){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.Wd=d;MJ(a,b.reason,a.O.Wd.Od())}g.WC(a.i)&&(a.A.M=!1,a.playVideo())}};
ZJ=function(a){if(a.O.va&&a.O.va.g){var b=NJ(a),c=a.O.za;if(c&&"1"==c.i){var d=Nz(a.o);if(d&&d<c.ua().Tb){FJ(a);return}}if(a.l&&(a=a.l,!a.fa()&&!ly(a.B.o,b)&&a.i)){var e=a.B.o;gH(a,iia(a.B,b));VG(a);c=BG(a.B)&&"m"==b.reason&&a.B.I;d=a.g.zl&&"l"==b.reason&&iG(a.i);b=("b"==b.reason||"o"==b.reason)&&e.g>b.g;c||d||b?a.N("reattachrequired"):(jG(a.i)&&bH(a,a.i,a.o),g.Do(a.Z))}}};
aK=function(a){a.ra("html5_nonblocking_media_capabilities")?ZJ(a):$J(a)};
dK=function(a){Tfa(a.O.ia,{cpn:a.O.clientPlaybackNonce,c:a.o.deviceParams.c,cver:a.o.deviceParams.cver});var b=a.o,c=a.O,d=new g.uv;d.ku=S(b,"html5_seek_accuracy_allowance_killswitch");d.Cu=S(b,"html5_unrewrite_timestamps");S(b,"html5_streaming_xhr")&&(d.D=!0);S(b,"html5_streaming_debug")&&(d.D=!0,d.R=!0);g.P(b.experiments,"html5_max_av_sync_drift")&&(d.vA=g.P(b.experiments,"html5_max_av_sync_drift"));g.P(b.experiments,"html5_min_secs_between_format_selections")&&(d.AB=g.P(b.experiments,"html5_min_secs_between_format_selections"));
d.Lb=S(b,"html5_stop_overlapping_requests");d.xa=g.P(b.experiments,"html5_min_readbehind_secs");d.xB=g.P(b.experiments,"html5_min_readbehind_cap_secs");g.uz(b)&&(d.xa=g.P(b.experiments,"tvhtml5_min_readbehind_secs"));d.fj=S(b,"html5_append_init_while_paused");d.kd=g.P(b.experiments,"html5_max_readahead_bandwidth_cap");d.aa=S(b,"html5_disable_audio_append_cap");d.Bl=S(b,"html5_disable_non_contiguous");d.Ad=g.P(b.experiments,"html5_post_interrupt_readahead");d.Oc=S(b,"html5_log_quota_exceeded");d.I=
g.P(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");d.Sb=g.P(b.experiments,"html5_subsegment_readahead_timeout_secs");d.xu=g.P(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.Rb=g.P(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.yu=g.P(b.experiments,"html5_subsegment_readahead_min_load_speed");d.mf=g.P(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.zu=g.P(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");
d.Mb=S(b,"html5_streaming_xhr_optimize_lengthless_mp4");d.Ca=S(b,"html5_peak_shave");d.Pt=S(b,"html5_peak_shave_always_include_sd");d.iu=S(b,"html5_restrict_streaming_xhr_on_sqless_requests");d.WA=g.P(b.experiments,"html5_max_headm_for_streaming_xhr");d.Qt=S(b,"html5_pipeline_manifestless_allow_nonstreaming");d.Wt=S(b,"html5_prefer_server_bwe3");d.Hh=1024*g.P(b.experiments,"html5_video_tbd_min_kb");d.Yt=S(b,"html5_probe_live_using_range");d.ou=S(b,"html5_streaming_xhr_buffer_mdat");d.lf=S(b,"html5_streaming_xhr_no_mp4_holdback_chunk");
d.Rm=S(b,"html5_last_slice_transition");d.Cl=S(b,"html5_disable_incomplete_incremental_parse_error");d.mu=S(b,"html5_store_xhr_headers_readable");d.om=g.P(b.experiments,"html5_incremental_parser_buffer_duration_secs");d.sm=g.P(b.experiments,"html5_incremental_parser_buffer_extra_bytes");d.Il=S(b,"html5_enable_packet_train_response_rate");var e=g.P(b.experiments,"html5_probe_secondary_during_timeout_miss_count");e&&(d.hf=e,d.Bu=1);d.Ia=g.P(b.experiments,"html5_probe_primary_delay_base_ms")||d.Ia;S(b,
"html5_drm_start_from_null_constraint")&&(d.zl=!0);d.ld=S(b,"html5_no_placeholder_rollbacks");d.vu=S(b,"html5_subsegment_readahead_enable_mffa");d.Ea=S(b,"html5_platform_whitelisted_for_frame_accurate_seeks");d.jf=S(b,"html5_reattach_on_stuck");d.Eu=S(b,"html5_webm_init_skipping");d.ej=S(b,"html5_adaptation_fix");d.Ya=g.P(b.experiments,"html5_request_size_padding_secs")||d.Ya;d.ij=S(b,"html5_clamp_with_padding");d.Ry=S(b,"html5_log_timestamp_offset");d.Gl=S(b,"html5_disable_new_live_flags");d.Dl=
S(b,"html5_disable_incremental_traf_timescale");d.El=S(b,"html5_disable_manifestless_sqless_sync");d.Hl=S(b,"html5_gapless_audio");d.aa=S(b,"html5_no_audio_append_cap");d.Wb=S(b,"html5_abs_buffer_health");d.Km=S(b,"html5_interruption_resets_seeked_time");d.jd=g.P(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.jd;d.Wf=S(b,"html5_use_streaming_xhr_abort_support");d.Sm=S(b,"html5_limit_adaptation_requests");d.Yb=S(b,"html5_explicitly_dispose_xhr");d.Al=S(b,"html5_delay_streaming_reads");
d.DB=S(b,"html5_gapless_no_requests_after_lock");S(b,"html5_media_common_config_killswitch")||(d.o=c.maxReadAheadMediaTimeMs/1E3||d.o,e=b.schedule,e.g.g()==e.policy.l?d.P=10:d.P=c.minReadAheadMediaTimeMs/1E3||d.P,d.Xb=c.readAheadGrowthRateMs/1E3||d.Xb);pr()&&(d.ab=!0);g.Bh&&(d.T=41943040);d.Z=!Px();g.uz(b)||!Px()?(e=b.experiments,d.u=8388608,d.B=524288,d.hj=5,d.ma=2097152,d.Y=1048576,d.eu=1.5,d.Ra=15,d.KB=!1,d.F=4587520,mr()&&(d.F=786432),d.i*=1.1,d.l*=1.1,d.Qa=!0,d.T=d.u,d.na=d.B,d.zd=g.O(e,"persist_disable_player_preload_on_tv")||
g.O(e,"persist_disable_player_preload_on_tv_for_living_room")||!1):b.g&&(d.i*=1.3,d.l*=1.3);g.qx&&hr("crkey")&&(e="CHROMECAST/ANCHOVY"==b.deviceParams.cmodel,d.u=20971520,d.B=1572864,e&&(d.F=812500,d.H=1E3,d.Du=5,d.Y=2097152));!S(b,"html5_disable_firefox_init_skipping")&&g.Vx&&(d.Qa=!0);if(NB(c)){d.Pl=!0;d.ju=!1;d.jb=S(b,"html5_shrink_live_timestamps");d.X=d.jb||S(b,"html5_manifestless_synchronized");if("ULTRALOW"==c.latencyClass||"LOW"==c.latencyClass&&!S(b,"html5_disable_low_pipeline"))d.kA=2,d.kB=
4;d.g=c.hasSubfragmentedFmp4;d.M=c.defraggedFromSubfragments}c.isAd()&&(d.wa=0,d.uc=0);PB(c)&&(d.R=!0);QB(c)&&(d.R=!0,d.D=!0);d.ga=S(b,"html5_enable_subsegment_readahead_v3")||S(b,"html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"==c.latencyClass;d.iA=NB(c);d.oa=c.Hf;d.Nn=d.oa&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||YB(c));/^pp/.test(c.clientPlaybackNonce)&&(d.XC=!0,d.cu=!0);vr()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!S(b,"html5_disable_move_pssh_to_moov")&&Yw(c.ia)&&
(d.Qa=!1);Yw(c.ia)&&(d.jf=!1);if(c.sa){e=lx(c.ia);var f=g.P(b.experiments,"html5_live_abr_head_miss_fraction"),k=g.P(b.experiments,"html5_live_abr_repredict_fraction");f&&e&&(d.hd=Math.min(e*f,d.hd));k&&e&&(d.H=Math.min(1E3*e*k,d.H))}f=0;S(b,"html5_live_use_alternate_bandwidth_window_sizes")&&(f=b.schedule.policy.g,c.sa&&(f=g.P(b.experiments,"ULTRALOW"==c.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":c.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||
f));e=b.schedule;e.policy.u=NB(c)?.5:0;if(!e.policy.i&&f&&(e=e.g,f=Math.round(f*e.I),f!=e.l)){k=Array(f);var l=Math.min(f,e.A?e.l:e.o),m=e.o-l;0>m&&(m+=e.l);for(var n=0;n<l;++n)k[n]=e.u[(m+n)%e.l];for(;n<f;++n)k[n]=Infinity;e.l=f;e.u=k;e.o=l%f;e.A=l==f;e.D=!0;e.H=Dy(e)}d.ya=S(b,"html5_disable_new_live_flags")?c.ia.l:c.sa;switch(OB(c)){case 21530001:d.BB=S(b,"html5_live_smoothly_extend_max_seekable_time");d.Mb=!0;d.ga=!0;"LOW"==c.latencyClass?d.I=g.P(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):
"ULTRALOW"==c.latencyClass&&(d.I=g.P(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.ld=!0;break;case 2153E4:d.Mb=!0,d.ga=!1}d.uh=c.uh;d.tb=c.ie;YB(c)&&(d.ea=!0,d.Oc=!0);c.ie&&!Yw(c.ia)&&S(b,"html5_hack_gapless_init")&&(d.kf=!0);(e=g.P(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.ie&&c.isAd()&&(d.i*=e,d.l*=e);c.ra("mweb_hoffline")&&c.adaptiveFormats&&c.Xp&&c.Oa.vb&&(d.A=c.videoId,d.aa=!0,d.Wb=!0);c=g.P(b.experiments,"html5_deadzone_multiplier")||1;(e=g.P(b.experiments,
"html5_sticky_reduces_discount_by"))&&"auto"!=uy()&&(c-=e);d.i*=c;d.l*=c;if(c=g.P(b.experiments,"html5_request_sizing_multiplier"))d.fu=c;d.Qc=g.P(b.experiments,"html5_min_upgrade_health")||d.Qc;Tx(b.o,Zx)&&(d.F=NaN);d.Ra=g.P(b.experiments,"html5_request_size_max_secs")||d.Ra;d.Fl=S(b,"killswitch_metadata_events");"auto"!=uy()&&(d.Gh=0);d.Zt=S(b,"html5_rec_2020_matrix_correction_killswitch");c=d.ya&&!S(b,"html5_pause_appends_killswitch");d.ya=c||S(b,"html5_never_pause_appends");S(b,"html5_prefer_low_quality_audio")&&
(Yy||bK)&&(d.uh=!0);S(b,"html5_disable_vod_timestamp_rewriting")&&(d.ab=!1);b=b.experiments;g.O(b,"html5_reset_on_append_error_killswitch")&&(d.gu=!0);g.O(b,"html5_audio_only_eos_fix_killswitch")&&(d.gj=!0);b=a.getAudioTrack();b=b.kb.isDefault?void 0:b;a.l=new UG(a.o.schedule,d,a.O.ia,a.O.va,NJ(a),b,a.H);a.l.subscribe("newDrmInfo",a.jK,a);a.l.subscribe("videoformatchange",a.cF,a);a.l.subscribe("audioformatchange",a.JJ,a);a.l.subscribe("error",a.lk,a);a.l.subscribe("ctmp",a.Ma,a);a.l.subscribe("reattachrequired",
a.GM,a);a.l.subscribe("metadata",a.lz,a);a.l.subscribe("constraint",a.RL,a);a.l.subscribe("timestamp",a.OE,a);d=cK(a)?!0:a.oa&&CJ(a);a.l.initialize(a.getCurrentTime(),NJ(a),d);a.O.probeUrl&&(a.l.ma=a.O.probeUrl);(a.M.length||a.oa)&&WJ(a,!1);MI(a.A,a.l);a.ab=[]};
hja=function(a){a.A=new II(a.O,a.o);a.A.subscribe("seekto",function(b,c){a.A.B=b;var d=a.wa;d.g=b;d.i=!0;c||eK(a);a.P&&b>a.O.endSeconds&&isFinite(b)&&(a.removeCueRange(a.P),a.P=null);b<fK(a)-.01&&(d=TC(a.i,2),g.T(d,8)&&(d=TC(d,4)),yJ(a,d));a.N("SEEK_TO",a,b)});
a.A.subscribe("seekstart",function(){return gK(a)});
a.A.subscribe("seekend",function(){return a.N("SEEK_COMPLETE")});
a.A.subscribe("ended",function(){return ZI(a)});
a.A.subscribe("ctmp",a.Ma,a);a.A.subscribe("livereadaheadchanged",function(b){var c=a.u;c.g&&(c=c.g,g.nI(c,g.VD(c.g),"lra",[b]),pI(c,"live-readahead-seconds",b.toString()))})};
eJ=function(a){a.l&&(a.l.dispose(),a.l=null,MI(a.A,null));VJ(a)};
VJ=function(a){a.D&&(a.l&&YG(a.l),a.D.dispose(),a.D=null)};
iK=function(a){if(a.D)return a.D.kk;a.ra("html5_disable_loader_reorder")&&hK(a);kja(a);return a.D?a.D.kk:null};
kja=function(a){if(a.ra("html5_application_media_source"))a.N("requestmediasource",a);else{try{var b=a.g.pn()}catch(c){if(jK(a,"html5.missingapi",{updateMs:"1"}))return;g.L(c,"WARNING");c.message="window.URL object overwritten by external code";window.setTimeout(function(){throw c;},0);
g.aJ(a,"html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1")}kK(a,b)}};
kK=function(a,b){a.ra("html5_disable_loader_reorder")||hK(a);a.D=b;Xfa(a.D,function(c){try{if(a.D&&(!c||a.D==c)){var d=a.getDuration();!d&&NB(a.O)&&(d=3600);a.D.isView()?(c=d,c>a.D.getDuration()&&Nx(a.D,c)):Nx(a.D,d);var e=a.l,f=a.D;WG(e);if(!f.g&&!f.i){var k=e.i.g.info.mimeType,l=e.o.g.info.mimeType,m=new Ix("fakesb"==l?new Uw:f.l.addSourceBuffer(l),nw(l)),n=new Ix("fakesb"==k?new Uw:f.l.addSourceBuffer(k),nw(k));f.g=m;f.i=n;g.B(f,m);g.B(f,n)}e.i.A=f.i;e.o.A=f.g;e.l=f;e.resume();Xs(f.g,e.xa,e);Xs(f.i,
e.xa,e);e.g.Ry&&e.Dc("toff",""+f.g.supports(1),!0);e.Xe();a.N("mediasourceattached")}}catch(p){g.L(p,"WARNING"),a.lk(new g.xx("fmt.unplayable",!0,{msi:"1",ename:p.name}))}})};
hK=function(a){a.l?a.l.seek(a.getCurrentTime()-a.Ib()):dK(a)};
lja=function(a){return 403==a.details.rc?(a=a.errorCode,"net.badstatus"==a||"manifest.net.retryexhausted"==a):!1};
lK=function(a){return a.Ca||"yt"!=a.o.Y?!1:a.O.ce?10>a.O.cf:!a.O.cf};
mK=function(a){a.Ca||(a.Ca=!0,a.N("signatureexpired"))};
nK=function(a){return"net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode&&!!a.details.fmt_unav};
mja=function(a,b){if(a.g&&("fmt.unplayable"==b.errorCode||"html5.invalidstate"==b.errorCode)){var c=a.g.We();b.details.merr=c?c.toString():"0";b.details.msg=a.g.nk()}};
jK=function(a,b,c){if(a.uc+3E4>(0,g.D)())return!a.O.ce&&(a.o.Z+=1,10<a.o.Z)?(c.exiled=""+a.o.Z,a.u.onError("qoe.start15s",yx(c)),a.N("playbackstalledatstart"),!0):!1;a.uc=(0,g.D)();var d=a.O;d=d.Wd?d.Wd.jw()<Date.now()/1E3+1800:!1;c.e=b;a.D&&(c.msopened=""+ +!!a.D.g);d&&(c.staleprog="1");a.u.onError("qoe.restart",yx(c));if(d&&lK(a))return mK(a),!0;hr("philips")&&oK(a);b=!1;(c=a.O.za)&&"1"==c.i?b=a.o.o.A=!0:a.l?(c=a.l,d=(d=TF(c.i)||c.i.i)?d.g:c.i.g,d.I+=1,zG(c.B,d)):a.O.Wd&&a.O.Wd.Ts();pK(a,b);return!0};
pK=function(a,b){b=void 0===b?!1:b;xa(function(c){if(1==c.g)return a.l&&a.l.fa()&&eJ(a),a.N("newelementrequired"),b?c=ua(c,FJ(a),2):(c.g=2,c=void 0),c;g.T(a.i,8)&&a.playVideo();c.g=0})};
oK=function(a){if("GAME_CONSOLE"!=a.o.deviceParams.cplatform)try{window.close()}catch(b){}};
g.PJ=function(a,b){b=void 0===b?!1:b;a.g&&(a.g.stopVideo(),cJ(a),eJ(a),TJ(a),g.T(a.i,128)||(b?yJ(a,UC(a.i,4,8)):yJ(a,RC(a.i))),a.o.I.remove(a.O.videoId))};
eK=function(a){g.T(a.i,32)||(yJ(a,SC(a.i,32)),g.T(a.i,8)&&a.pauseVideo(!0),a.N("beginseeking",a));qK(a)};
gK=function(a){g.T(a.i,32)?(yJ(a,UC(a.i,16,32)),a.N("endseeking",a)):a.ra("html5_sync_seeking_state")&&!g.T(a.i,2)&&yJ(a,SC(a.i,16))};
rK=function(a){if(a.O.ia)return mx(a.O.ia,a.getCurrentTime()-a.Ib());if((!a.ra("html5_disable_limit_ingestion_tvos")||lr())&&a.g){var b=a.g.tn();if(b&&(b=b.getTime(),!isNaN(b)))return b/1E3+a.getCurrentTime()}return NaN};
tJ=function(a,b){a.N("internalvideodatachange",void 0===b?"dataupdated":b,a,a.O)};
RJ=function(a){(0,g.y)("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.na.K(this.g,b,this.dF,this)},a);
a.o.Gh&&a.g.xg()&&(a.na.K(a.g,"webkitplaybacktargetavailabilitychanged",a.oI,a),a.na.K(a.g,"webkitcurrentplaybacktargetiswirelesschanged",a.pI,a))};
tK=function(a){window.clearInterval(a.jb);a.ea.stop();a.O.ce=!0;a.o.ce=!0;a.o.Z=0;sK(a);g.T(a.i,8)&&yJ(a,TC(a.i,65));var b=a.u;if(b.i){var c=b.i;if(!c.l){g.O(c.g.rb.experiments,"disable_embedpage_playback_logging")||16623!=c.g.videoData.oo||g.$p(Error("Playback for EmbedPage"));var d=eE(c,"playback");c.F=[10+c.g.videoData.gh,10,10,40+c.g.videoData.ni-c.g.videoData.gh,40];var e=c.i;window.clearInterval(e.B);e.B=NaN;e.B=fq((0,g.x)(e.update,e),100);e.A=g.VD(e.i);e.o=KD(e.i);d.i=dE(c,!0);d.send();c.g.videoData.Vn&&
(d=c.g.rb,e=c.g.videoData,e={html5:"1",video_id:e.videoId,cpn:e.clientPlaybackNonce,ei:e.eventId,ptk:e.Vn,oid:e.Mz,ptchn:e.Lz,pltype:e.Nz,content_v:qC(e)},d=g.bh(d.B+"ptracking",e),g.hE(c,d));c.g.videoData.zj&&(c.B("playback"),c.o||kE(c));c.g.videoData.se||jE(c);c.l=!0;c=c.i;c.g=c.i.g();c.A=g.VD(c.i);!(0==c.l&&5>c.g)&&2<c.g-c.l&&(c.l=c.g);c.F=!0}}b.l&&(b=b.l,c=g.VD(b.g),b.o=c,b.H=c);g.Do(a.Mb);a.N("playbackstarted");g.zq()&&((a=g.w("yt.scheduler.instance.clearPriorityThreshold"))?a():Bq(0))};
sK=function(a){var b=a.getCurrentTime(),c=a.O;!qB("pbs","")&&kB.measure&&kB.getEntriesByName&&(kB.getEntriesByName("mark_nr")[0]?oB("mark_nr"):oB());c.videoId&&a.T.info("docid",c.videoId);c.eventId&&a.T.info("ei",c.eventId);c.clientPlaybackNonce&&a.T.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.T.info("start",c.startSeconds.toString());a.g&&a.g.yg()&&a.T.info("paused",1);c.za?a.T.info("fmt",gv(c.za)):a.T.info("fmt","-1");c.Ci&&a.T.info("yt_pre",a.jf?"2":"1");a.I.isFullscreen()&&a.T.info("yt_fs",
"1");a.T.info("cmt",b.toFixed(3));if(a.l){a=a.l.ga;window&&window.performance&&window.performance.getEntriesByName&&(b=window.performance.getEntriesByName(a.o),b.length&&(b=b[0],a.Mc("vri",b.fetchStart),a.Mc("vdns",b.domainLookupEnd),a.Mc("vreq",b.requestStart),a.Mc("fvb",b.responseStart),a.Mc("vrc",b.responseEnd)),b=window.performance.getEntriesByName(a.g),b.length&&(b=b[0],a.Mc("ari",b.fetchStart),a.Mc("adns",b.domainLookupEnd),a.Mc("areq",b.requestStart),a.Mc("avb",b.responseStart),a.Mc("arc",
b.responseEnd)));a=a.u;for(var d in a)UB(d,a[d],"")}};
qK=function(a,b){b=void 0===b?!1:b;if(a.g&&a.O){var c=a.A,d=g.WC(a.i),e=c.getCurrentTime(),f=c.isAtLiveHead(e);if(c.F&&f){var k=c.F;if(k.g&&!(e>=k.i&&e<k.l)){var l=k.g.Le(e);-1!=l&&(k.i=k.g.Kc(l),k.l=k.i+k.g.getDuration(l),l=(0,g.D)()/1E3-k.g.Dr(l),l-=k.u(),k.o.add(l))}}c.l&&(f&&(f=c.l,k=c.g?FC(c.g):0,f.u++,3>f.u||(0,g.D)()-f.D<f.g.F||(f.D=(0,g.D)(),f.l.push(k),50<f.l.length&&f.l.shift())),f=c.l,DI(f,e,void 0===d?!0:d),EI(f,e),d&&(d=c.l,!CI(d,e)&&d.A?(d.g.A&&(d.g.g=Math.max(d.g.g+1,10)),e=Infinity):
e=e<d.O.Ab()?Math.min(d.O.Ab()+10,BI(d)):NaN,isNaN(e)||c.seekTo(e,!0)));c=a.getCurrentTime();!a.l||g.T(a.i,4)&&g.lC(a.O)||(e=a.l,d=c,e.l&&e.l.i&&(d-=!isNaN(e.T)&&e.g.Cu?e.T:0,e.A!=d&&e.resume(),e.R&&!Ox(e.l)&&(f=e.A<=d&&d<e.A+10,k=e.l.i.oc(),k=0<=Bx(k,e.A+cH),f&&k&&(e.R=!1)),e.R||(e.A=d),g.Do(e.na)));5<c&&(a.A.B=c);(e=g.zq())?g.Aq(a.ga):g.gq(a.ga);!g.YC(a.i)&&a.g.yg()||g.T(a.i,128)||(d=(0,g.x)(a.VD,a),0==a.g.Vh().length?a.ga=e?g.xq(d,100):g.eq(d,100):a.ga=e?g.xq(d,500):g.eq(d,500));a.O.kg=c;if(!b&&
g.WC(a.i)&&(c=a.u,c.i&&(c=c.i,c.i.update(),c.g.videoData.Eb()&&c.g.videoData.se&&c.l&&!c.R&&ND(c.i)>=c.g.videoData.se&&(c.l&&c.g.videoData.se&&(e=eE(c,"delayplay"),e.Ca=!0,e.send(),c.R=!0),jE(c))),a.O.sa&&(0,g.D)()>a.kf+6283&&(!a.isAtLiveHead()||a.O.ia&&jx(a.O.ia)||(c=a.u,c.g&&(c=c.g,d=c.g.l(),e=g.VD(c.g),qI(c,e,d),d=d.A,isNaN(d)||g.nI(c,e,"e2el",[d.toFixed(3)]))),g.Ez(a.o)&&a.Ma("rawlat","l."+fD(a.X,"rawlivelatency").toFixed(3)),a.kf=(0,g.D)()),a.O.za&&rw(a.O.za)&&(c=AJ(a))&&c.videoHeight!=a.Yb&&
(a.Yb=c.videoHeight,a.ra("html5_log_hls_video_height_change_as_format_change")&&a.O.Wd&&"auto"==a.O.Wd.xf.ua().quality&&a.O.Qf)))for(c=g.q(a.O.Qf),e=c.next();!e.done;e=c.next())if(e=e.value,e.getHeight()==a.Yb&&"auto"!=e.xf.ua().quality){MJ(a,"a",e.Od());break}Wia(a.R,a.F,a.g)&&aK(a);c=a.R;e=a.O.za;0>=g.P(c.g.experiments,"hfr_dropped_framerate_fallback_threshold")||!(e&&e.ua()&&32<e.ua().fps)?c=!1:3<=c.l?(c.l=0,c=!0):c=!1;c&&nja(a);a.N("progresssync",a,b)}};
nja=function(a){a.u.onError("qoe.restart","droprate."+a.R.B);a.o.o.u=!1;FJ(a).then(function(){return GJ(a)})};
yJ=function(a,b){if(!g.VC(a.i,b)){var c=new g.ZD(b,a.i);a.i=b;var d=!a.tb.length;a.tb.push(c);var e=a.g&&a.g.fk();if(g.aE(c,1)&&!g.T(c.g,16)&&!e&&g.T(a.i,8)&&!g.T(a.i,64)&&a.l&&(a.l.Y=!0,uK(a),a.g&&5<=FC(a.g))){e=a.R;var f=a.F;fI(e,f)&&f.videoData.za?(6E4<(0,g.D)()-e.F&&(e.o=0),e.o++,e.F=(0,g.D)(),4!=e.o?e=!1:(gI(e,f.videoData.za),e=!0)):e=!1;e&&aK(a)}(e=g.P(a.o.experiments,"html5_ad_timeout_ms"))&&a.O.isAd()&&g.T(b,1)&&(g.T(b,8)||g.T(b,16))?a.Lb.start(e):a.Lb.stop();(0>$D(c,8)||g.aE(c,1024))&&a.ea.stop();
!g.aE(c,8)||a.O.ce||g.T(c.state,1024)||a.ea.start();g.T(c.state,8)&&0>$D(c,16)&&!g.T(c.state,32)&&!g.T(c.state,2)&&a.playVideo();g.T(c.state,2)&&mC(a.O)&&(e=a.getCurrentTime(),a.O.lengthSeconds!=e&&(a.O.lengthSeconds=e,tJ(a)),qK(a,!0));g.aE(c,2)&&(a.Us(),uK(a));a.O.ia&&a.O.sa&&!a.mf&&(0>$D(c,8)?(e=a.O.ia,e.o&&e.o.stop()):g.aE(c,8)&&a.O.ia.resume());e=a.u;e.i&&(f=e.i,f.fa()||(g.T(c.state,2)?(f.u="paused",g.aE(c,2)&&f.l&&gE(f).send()):g.T(c.state,8)?(f.u="playing",f.l&&isNaN(f.A)&&dE(f,!1)):f.u="paused",
f.o&&g.T(c.state,128)&&(f.B("error-100"),g.gq(f.o))));if(e.g){f=e.g;var k=c.state,l=g.VD(f.g),m=Yia(f,c.state);if(m!=f.l){if(!(l<f.o)){if("PL"==f.l)f.I+=l-f.o;else if("B"==f.l&&f.H){f.H=!1;var n=g.P(f.g.rb.experiments,"html5_disable_last_state_change")?f.o:f.Y;f.R+=l-n;!f.aa&&10<=f.R&&180>=f.I&&(f.g.A(),f.i.qoealert=["1"],f.aa=!0)}"B"!=m||"PL"!=f.l&&"PB"!=f.l||(f.H=!0);f.o=l}"B"==m&&"PL"==f.l||f.g.videoData.Hf?rI(f,l):g.nI(f,l,"cmt",[f.g.g().toFixed(3)]);g.nI(f,l,"vps",[m]);f.l=m;f.Y=l;f.o=l;f.D=
!0}m=k.i;g.T(k,128)&&m&&tI(f,l,m.errorCode,m.jA);(g.T(k,2)||g.T(k,128))&&f.u(l);g.T(k,8)&&f.g.videoData.Ci&&!f.F&&(f.i.user_intent=[g.VD(f.g).toString()],f.F=!0);sI(f)}e.l&&(e=e.l,mI(e),e.i=c.state,!(g.aE(c,1024)||g.aE(c,2048)||g.aE(c,512)||g.aE(c,4))||0<=e.o||(e.l=-1,e.A.stop()),c.state.isError()&&e.u());if(d&&!a.fa())try{for(var p=g.q(a.tb),r=p.next();!r.done;r=p.next()){var v=r.value,z=a.H;c=v;if(z.started&&(z.i(),g.T(c.g,16))){c=z;var C=LG(c.g,Math.max(c.o-2E3,0));!isNaN(C)&&0x7ffffffffffff>C&&
c.u.start()}a.N("statechange",v)}}finally{a.tb.length=0}}};
vK=function(a,b){g.T(a.i,128)||(yJ(a,UC(a.i,1028,9)),a.Ma("dompaused",b),a.N("onDompaused"))};
GJ=function(a){if(!a.g||!a.O.va)return!1;var b=null;a.O.va.g?(b=iK(a),a.l.resume()):(eJ(a),a.O.Wd&&(b=a.O.Wd.qk()));var c=b;var d=a.g.qn();b=!1;d&&null!=c&&c.g==d.g||(UB("vta",void 0,""),rB("vta"),0<a.getCurrentTime()&&(b=a.getCurrentTime(),a.A.B=b),a.g.pe(c),a.D&&Bq(4),!a.O.ce&&g.XC(a.i)&&a.ea.start(),b=!0);g.T(a.i,2)||(c=a.A,c.D||!(0<c.B)||c.g&&0<c.g.getCurrentTime()||c.seekTo(c.B));a:if(c=b,g.ZB(a.O)&&a.g)if((d=a.O.cd)&&a.g.xg()){var e=a.g.ha();if(a.B)if(e!=a.B.ha())cJ(a);else if(c&&"fairplay"==
d.flavor&&!lr())cJ(a);else break a;a.B=new UH(e,a.O,a.o);a.B.subscribe("licenseerror",a.zJ,a);a.B.subscribe("qualitychange",a.BJ,a);a.B.subscribe("heartbeatparams",a.aF,a);a.B.subscribe("keystatuseschange",a.bF,a);a.B.subscribe("hdproberequired",a.AJ,a);a.B.subscribe("ctmp",a.Ma,a);c=g.q(a.ab);for(d=c.next();!d.done;d=c.next())d=d.value,WH(a.B,new vH(d.info,d.type));a.ab=[]}else g.aJ(a,"fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return b};
cJ=function(a){a.B&&(a.B.dispose(),a.B=null)};
wK=function(a,b){b=void 0===b?!1:b;return a.O.sa&&(a.isAtLiveHead()&&(a.ra("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.T(a.i,4))||NI(a.A)||g.lC(a.O))?a.getCurrentTime():fK(a,b)};
fK=function(a,b){return a.A.qc(void 0===b?!1:b)};
g.xK=function(a,b){(a.Sb=b)||a.ea.stop();if(a.O.ia)if(b)a.O.ia.resume();else{var c=a.O.ia;c.o&&c.o.stop()}g.O(a.o.experiments,"html5_suspend_loader")&&a.l&&(b?a.l.resume():WJ(a,!0));g.O(a.o.experiments,"html5_fludd_suspend")&&(g.T(a.i,2)||b?g.T(a.i,512)&&b&&yJ(a,TC(a.i,512)):yJ(a,SC(a.i,512)));c=a.u;c.g&&(c=c.g,g.nI(c,g.VD(c.g),"stream",[b?"A":"I"]))};
yK=function(a){return a.g?a.g.nn():a.Oc};
zK=function(a){a.g&&(a.D?(cJ(a),VJ(a),iK(a)):(a.O.Wd&&a.O.Wd.Ts(),a.g.stopVideo()),a.playVideo())};
AK=function(a,b){g.O(a.o.experiments,"html5_log_rebuffer_reason")&&a.Ma("bufreason","r."+b+";lact."+Cs())};
BK=function(a,b){if(a.O.Hf){var c=g.P(a.o.experiments,"html5_log_rebuffer_events");if(c&&a.g){var d=a.g.fb();d.rt=g.VD(a.u.o).toFixed(3);d.e=b.substr(0,3);a.hd[a.lf++%c]=yx(d)}}};
uK=function(a){if(a.O.Hf){for(var b=g.q(a.hd),c=b.next();!c.done;c=b.next())a.Ma("vpe",c.value);a.hd=[];a.lf=0}};
KJ=function(a,b){a.Ma("seekreason",b)};
CK=function(a){if(hr("cobalt")&&hr("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Ma("nxdock",""+ +b)}};
WJ=function(a,b){var c=a.l,d=b||cK(a);c.H=!0;c.aa=d};
cK=function(a){var b=a.ra("disable_prefetch_when_ad_pending_for_living_room")&&g.uz(a.o),c=a.ra("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.$a(a.M,"ad")};
g.DK=function(a,b){lE.call(this,a,b);this.H=null};
g.EK=function(a){return a.app.o};
FK=function(a){a=g.EK(a);var b=a.H;return b&&b.Wk()?!0:a.Vk()||g.iz(g.X(a.g))};
g.GK=function(a,b){3==a.getPresentingPlayerType()?a.N("mdxautoplaycancel"):a.N("autonavcancel",b)};
g.X=function(a){return a.app.g};
g.IK=function(a,b){return HK(a.app,b||a.playerType)};
g.JK=function(a){return a.app.D};
LK=function(a){var b=g.KK(g.EK(a));return a.app.M&&!a.isFullscreen()||3==a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Oe()||!!a.getPlaylist()};
g.MK=function(a,b){var c=a.playerType;(c=g.U(a.app,void 0===c?1:c))&&ZI(c,b)};
g.NK=function(a){var b={};a=XJ(g.U(a.app));a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.quality]=c;return b};
g.hD=function(a){return(a=g.EK(a).u)?a.Cm():{}};
g.OK=function(a,b){var c=g.ID(a);if(c)return c.Hr(b);c=a.app.D.getPlayerSize();return new g.nh(0,0,c.width,c.height)};
g.QK=function(a,b,c){PK(a.app,b,c||a.playerType)};
g.SK=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=g.U(d,a))c.H.removeCueRange.apply(c.H,b),a&&d.getPresentingPlayerType()!=a||RK(d,"cuerangesremoved",b)};
g.TK=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=g.U(d,a))b=PG(c.H,b),a&&d.getPresentingPlayerType()!=a||RK(d,"cuerangesremoved",b)};
g.UK=function(a,b,c){c=void 0===c?a.playerType:c;(a=g.U(a.app,c))&&QJ(a,b)};
g.VK=function(a){a=(a=a.getVideoData())&&a.za;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!=a.mimeType};
g.WK=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.Nd)};
g.XK=function(a,b,c){a=g.JK(a).element;var d=pb(a.children,function(e){e=parseInt(e.getAttribute("data-layer"),10);return c-e||1});
0>d&&(d=-(d+1));Vd(a,b,d);b.setAttribute("data-layer",c)};
g.YK=function(a){var b=g.X(a);if(!b.Qa)return!1;var c=a.getVideoData();if(!c||3==a.getPresentingPlayerType())return!1;var d=!c.isLiveDefaultBroadcast||g.O(b.experiments,"allow_poltergust_autoplay");d=c.sa&&(!g.O(b.experiments,"allow_live_autoplay")||!d);var e=!!a.getPlaylist();g.O(b.experiments,"player_allow_autonav_after_playlist")&&(e=(a=a.getPlaylist())&&a.hasNext());return!c.bj&&!d&&!g.$a(c.Fc,"ypc")&&!e};
ZK=function(a,b,c,d){g.X(a).F&&oja(a.app.T,b,c,d)};
g.$K=function(a,b){g.X(a).F&&a.app.T.click(b)};
g.aL=function(a,b,c){if(g.X(a).F&&(a=a.app.T,a.g.has(b),c?a.i.add(b):a.i["delete"](b),c&&!a.l.has(b))){c=g.Ct();var d=b.visualElement;c&&d&&g.mt(c,d);a.l.add(b)}};
bL=function(a,b){return g.X(a).F?a.app.T.g.has(b):!1};
g.eL=function(a,b){if(a.app.getPresentingPlayerType()==b){var c=a.app,d=g.U(c,b);d&&(d!=c.l?cL(c,c.l):dL(c))}};
gL=function(a,b,c){c=void 0===c?Infinity:c;b=void 0===b?-1:b;c=void 0===c?Infinity:c;fL(a.app.na,void 0===b?-1:b,c)};
pja=function(a){if(!a.ra("html5_inline_video_quality_survey"))return!1;var b=g.U(a.app);if(!b)return!1;var c=b.getVideoData();if(!c.za||!c.za.video||1080>c.za.video.Tb||c.Vw)return!1;var d=/^qsa/.test(c.clientPlaybackNonce),e="r";0<=c.za.id.indexOf(";")&&(d=/^[a-p]/.test(c.clientPlaybackNonce),e="x");a.ra("html5_inline_video_quality_survey_always")&&(d=!0,e="a");return d?(b.Ma("iqss",e,!0),!0):!1};
hL=function(a,b){document.requestStorageAccess().then(a,b)};
iL=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
qja=function(){var a=null;Nr().then(function(b){return a=b},function(b){return a=iL(b)});
return a};
rja=function(){var a=Hg(1E3,"NO_BID");return ug(xg(sg([Nr(),a]),iL),function(){return a.cancel()})};
jL=function(a){this.g=a;this.l=g.P(g.X(a).experiments,"bulleit_get_midroll_info_timeout_ms")||8E3;this.o=this.i=1};
lL=function(a,b,c,d){c=void 0===c?{}:c;var e=c.SC,f=c.Sc,k=void 0===c.bB?0:c.bB;d=void 0===d?"":d;c=a.g.getVideoData(1);var l={AD_BLOCK:a.i++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:g.X(a.g).Qa?hga()?3:2:1,CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*kL(a.g.app),LACT:Cs(),LIVE_INDEX:e?a.o++:1,LIVE_TARGETING_CONTEXT:e&&e.context?e.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:a.g.getVisibilityState(),TSLA:k,P_H:g.JK(a.g).getPlayerSize().height,
P_W:g.JK(a.g).getPlayerSize().width},m=Rq(Qq);Object.keys(m).forEach(function(n){null!=m[n]&&(l[n.toUpperCase()]=m[n].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={abv:"45"};(e=g.X(a.g).xa)&&Pq(b)&&(d.forced_experiments=e);b=Mq(g.Bn(b,l),d);d=b.split("?");if(2!=d.length)return og(Error("Invalid AdBreakInfo URL"));e=g.q(d);d=e.next().value;f=e.next().value;e={};c.oauthToken&&Oq()&&(e.Authorization="Bearer "+c.oauthToken);if(f=(c=g.Hq(f))&&c.post_data)k=g.Hq(c.post_data),Object.assign(c,k),delete c.post_data;return f?Br(d,{Rv:!0,format:"RAW",headers:e,method:"POST",wb:c,timeout:a.l,withCredentials:!0}):Br(b,{Rv:!0,format:"RAW",headers:e,
method:"GET",timeout:a.l,withCredentials:!0})};
g.mL=function(a){g.N.call(this);this.player=a;this.loaded=!1};
nL=function(a,b,c,d){this.o=a;this.g=null;this.l=b;this.i=0;this.A=void 0===c?!1:c;this.visible=!0;this.u=void 0===d?!1:d};
oL=function(a,b,c,d,e){g.qE.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.l=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.g=!1;this.o=null};
pL=function(a){return"AD_PLACEMENT_KIND_START"==a.l};
qL=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.l};
sja=function(a){return a.end-a.start};
rL=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new g.Ci(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new g.Ci(Math.max(0,b.o-b.i),0x7ffffffffffff):new g.Ci(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.o);if(c&&(d=a,a=Math.max(0,a-b.i),a==d))break;return new g.Ci(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return a=
b.g,d=1E3*a.g,c?d<b.l?new g.Ci(d-4E3,d):new g.Ci(Math.floor(b.l+Math.random()*Math.max(0,d-b.l-1E4)),d):new g.Ci(d,d+(0<a.durationSecs?1E3*a.durationSecs:5E3))}return null};
sL=function(a,b,c){b=void 0===b?null:b;c=void 0===c?{}:c;this.id=Y(a);this.componentType=a;this.macros=c;this.renderer=b};
Y=function(a){return a+g.Ho(g.Go.getInstance())};
tL=function(a,b,c){this.id=c;this.content=a;this.actionType=b};
vL=function(){g.A.call(this);var a=this;this.g={};uL(this,"commandExecutorCommand",function(b,c,d){b.commands&&a.vf(b.commands,c,d)});
uL(this,"clickTrackingParams",function(){})};
wL=function(a,b){return uL(a,b.g(),function(c,d,e){b.i(c,d,e)})};
uL=function(a,b,c){if(a.g[b])return g.L(Error("Extension name "+b+" already registered")),function(){};
a.g[b]=c;return function(){delete a.g[b]}};
xL=function(a,b,c,d,e){e=void 0===e?{}:e;if(a=a.g[b])try{a(c[b],d,e)}catch(f){g.L(f)}else g.L(Error("Unhandled field "+b))};
yL=function(a){this.l=a};
zL=function(a){this.l=a};
AL=function(a,b){this.g=a;this.R=b||{};this.D=String(Math.floor(1E9*Math.random()));this.A={};this.I=0};
tja=function(a){this.l=a;this.i={};this.g=ci()?500:g.uz(g.X(a))?1E3:2500};
vja=function(a,b){if(!b.length)return null;var c=b.filter(function(d){if(!d.mimeType)return!1;d.mimeType in a.i||(a.i[d.mimeType]=a.l.canPlayType(d.mimeType));return a.i[d.mimeType]?!!d.mimeType&&"application/x-mpegurl"==d.mimeType.toLowerCase()||!!d.mimeType&&"application/dash+xml"==d.mimeType.toLowerCase()||"PROGRESSIVE"==d.delivery:!1});
return uja(a,c)};
uja=function(a,b){for(var c=null,d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.minBitrate,k=e.maxBitrate;f>a.g||k<a.g||c&&!(f<c.minBitrate)||(c=e)}if(!c)for(c=null,d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.maxBitrate,k=e.minBitrate,f>a.g||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&k<c.minBitrate&&(c=e));if(!c)for(c=null,d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.minBitrate,k=e.maxBitrate,f<a.g||(!c||f<c.minBitrate?c=e:c&&f==c.minBitrate&&k>c.maxBitrate&&(c=e));return c};
BL=function(a,b){this.g=a;this.i=b.length;this.adBreakLengthSeconds=b.reduce(function(e,f){return e+f},0);
for(var c=0,d=a+1;d<b.length;d++)c+=b[d];this.adBreakRemainingLengthSeconds=c};
wja=function(a){a=a.pings;if(!a)return{};var b={};b.impression=a.impressionPings||[];b.error=a.errorPings||[];b.mute=a.mutePings||[];b.unmute=a.unmutePings||[];b.pause=a.pausePings||[];b.rewind=a.rewindPings||[];b.resume=a.resumePings||[];b.skip=a.skipPings||[];b.close=a.closePings||[];b.progress=a.progressPings||[];b.clickthrough=a.clickthroughPings||[];b.fullscreen=a.fullscreenPings||[];b.active_view_viewable=a.activeViewViewablePings||[];b.active_view_measurable=a.activeViewMeasurablePings||[];
b.active_view_fully_viewable_audible_half_duration=a.activeViewFullyViewableAudibleHalfDurationPings||[];b.end_fullscreen=a.endFullscreenPings||[];b.channel_clickthrough=a.channelClickthroughPings||[];b.abandon=a.abandonPings||[];b.start=a.startPings||[];b.first_quartile=a.firstQuartilePings||[];b.midpoint=a.secondQuartilePings||[];b.third_quartile=a.thirdQuartilePings||[];b.complete=a.completePings||[];return b};
CL=function(a,b,c){AL.call(this,a,wja(a));this.isPostroll="AD_PLACEMENT_KIND_END"===c;this.o=new BL(0,[]);this.B=this.T=null;this.Y=b;this.P=[];this.l={};this.aa=null;this.i=0;this.F=this.H=this.u=null;a=this.g.skipOffsetMilliseconds||0;0<a&&(this.aa=a);this.l=g.Hq(this.g.playerVars||"");if(a=this.g.external)this.P=a.mediaFiles||[],a=a.durationMilliseconds,g.Fa(a)&&(this.i=a/1E3,this.l.length_seconds=this.i.toString()),(a=vja(this.Y,this.P))?(this.H=a.uri,a=a.mimeType,this.l.url_encoded_third_party_media=
"url="+encodeURIComponent(this.H)+"&type="+encodeURIComponent(a)):this.F=Error("Nonplayable third party ad media file.");else if(this.u=this.l.video_id,this.T=this.l.ucid||null,this.i=Py(this.i,this.l.length_seconds),this.l.cta_conversion_urls)try{this.l.cta_conversion_urls=JSON.parse(this.l.cta_conversion_urls)}catch(d){g.L(d)}this.B=this.g.clickthroughEndpoint||null;this.o=new BL(0,[this.i])};
DL=function(a){var b=a.l||{};1<a.o.i&&(b.slot_pos=a.o.g);b.autoplay="1";return b};
EL=function(a){return 0<a.i&&7.05>=a.i};
FL=function(){this.g=[];this.l=null;this.o=!0;this.i=0};
GL=function(a,b){b&&a.g.push(b)};
HL=function(a){if(!a)return[];var b=[];a=g.q(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.q(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
IL=function(a){if(!a)return[];var b=[];a.forEach(function(c){c.command.loggingUrls.forEach(function(d){b.push({baseUrl:d.baseUrl,offsetMilliseconds:c.adVideoOffset.milliseconds})})});
return b};
JL=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
KL=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
xja=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=HL(a.impressionCommands)||[];b.error=HL(a.errorCommands)||[];b.mute=HL(a.muteCommands)||[];b.unmute=HL(a.unmuteCommands)||[];b.pause=HL(a.pauseCommands)||[];b.rewind=HL(a.rewindCommands)||[];b.resume=HL(a.resumeCommands)||[];b.skip=HL(a.skipCommands)||[];b.close=HL(a.closeCommands)||[];b.clickthrough=HL(a.clickthroughCommands)||[];b.fullscreen=HL(a.fullscreenCommands)||[];b.active_view_viewable=HL(a.activeViewViewableCommands)||
[];b.active_view_measurable=HL(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=HL(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=HL(a.endFullscreenCommands)||[];b.channel_clickthrough=HL(a.channelClickthroughCommands)||[];b.abandon=HL(a.abandonCommands)||[];b.progress=IL(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=IL(a.progressCommands.filter(function(c){return KL(c)&&1E-6>=Math.abs(JL(c)-0)}));
b.first_quartile=IL(a.progressCommands.filter(function(c){return KL(c)&&1E-6>=Math.abs(JL(c)-.25)}));
b.midpoint=IL(a.progressCommands.filter(function(c){return KL(c)&&1E-6>=Math.abs(JL(c)-.5)}));
b.third_quartile=IL(a.progressCommands.filter(function(c){return KL(c)&&1E-6>=Math.abs(JL(c)-.75)}));
b.complete=IL(a.progressCommands.filter(function(c){return KL(c)&&1E-6>=Math.abs(JL(c)-1)}));
return b};
LL=function(a,b){b=void 0===b?!0:b;AL.call(this,a,xja(a));this.l=b;this.i=a.questions?a.questions.reduce(function(c,d){var e=d.instreamSurveyAdSingleSelectQuestionRenderer||d.instreamSurveyAdMultiSelectQuestionRenderer;return e?c+(e.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:c},0):0};
ML=function(a,b,c,d){this.id=b;this.H=a.placementStartPings||[];this.F=a.placementEndPings||[];this.i=d.g;b=a.config&&a.config.adPlacementConfig;if(!b)throw Error("Malformed AdPlacementRenderer: missing AdPlacementConfig");var e=a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer||{};this.l=(this.o=e.getAdBreakUrl||"")?0:2;d.i=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=rL(b,d);if(null==f)d=new oL(b,new g.Ci(-1,-1),!1,"adcuerange:invalid",
2),d.g=!0,d=[null,d];else{e=g.Ho(g.Go.getInstance());var k=d.A||d.g;f=new oL(b,f,d.visible&&!k,"adcuerange:"+e,2);k=null;if(d.g||0<d.i){var l=rL(b,d,!0);l&&(k=new oL(b,l,!1,"prefetch:"+e,d.u?3:2),f.o=k,k.o=f)}d=[k,f]}this.R=d[0];this.I=d[1];this.g=c;this.B=!1;this.A={};this.D={};this.u=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
NL=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.ub().l||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.ub().l};
OL=function(a){return"AD_PLACEMENT_KIND_START"==a.ub().l};
QL=function(a){var b={};yja(a,b);zja(b);b.LACT=PL(function(){return Cs().toString()});
b.VIS=PL(function(){return a.getVisibilityState().toString()});
b.SDKV="h.3.0";b.VOL=PL(function(){return Math.round(a.getVolume()).toString()});
b.VED="";return b};
RL=function(a){var b=Object.assign({},{});b.MIDROLL_POS=NL(a)?PL(kc(Math.round(a.ub().start/1E3).toString())):PL(kc("0"));return b};
Aja=function(a){var b={};b.SLOT_POS=PL(kc(a.o.g.toString()));return b};
SL=function(a,b){var c=b&&-1!=b.indexOf("load_timeout")?"402":"400",d={};return d.YT_ERROR_CODE=a.toString(),d.ERRORCODE=c,d.ERROR_MSG=b,d};
PL=function(a){return{toString:function(){return a()}}};
TL=function(a){for(var b={},c=g.q(Bja),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
UL=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c={};Object.assign.apply(Object,[c].concat(g.ea(b)));return c};
Cja=function(a,b,c){function d(l,m){var n=b[m];n&&(f[l]=n)}
function e(l,m){var n=b[m];n&&(f[l]=k(n))}
if(!b||g.Xb(b))return a;var f=Object.assign({},a),k=c?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
yja=function(a,b){b.CPN=PL(function(){var c;(c=a.getVideoData(1))?c=c.clientPlaybackNonce:(g.L(Error("Video data is null."),"WARNING"),c=null);return c});
b.AD_MT=PL(function(){return VL(a,2)});
b.MT=PL(function(){return VL(a,1)});
b.P_H=PL(function(){return g.JK(a).getPlayerSize().height.toString()});
b.P_W=PL(function(){return g.JK(a).getPlayerSize().width.toString()});
b.PV_H=PL(function(){return g.JK(a).getVideoContentRect().height.toString()});
b.PV_W=PL(function(){return g.JK(a).getVideoContentRect().width.toString()})};
VL=function(a,b){var c=1E3*a.getCurrentTime(b);return Math.round(Math.max(0,c)).toString()};
zja=function(a){a.CONN=PL(kc("0"));a.WT=PL(function(){return Date.now().toString()})};
WL=function(a,b){this.g=a;this.l=Oq();if(this.i=g.O(b,"use_legacy_ping_service_for_bulleit_living_room")){Fn.g=!0;var c=Fn,d=!g.kr();c.i=d}};
XL=function(a){this.l=a};
YL=function(a){this.l=a};
ZL=function(){};
$L=function(a,b){var c=void 0===c?!0:c;var d=g.Xp("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.Tg(window.location.href);e&&d.push(e);e=g.Tg(a);if(g.$a(d,e)||!e&&ub(a,"/"))if(g.Tq("autoescape_tempdata_url")&&(d=document.createElement("a"),g.Tc(d,a),a=d.href),a&&(d=a.match(Rg),d=Pg(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e)))if(c&&(b.itct||b.ved)&&(b.csn=b.csn||g.Ct()),f){var f=parseInt(f,10);isFinite(f)&&0<f&&(c="ST-"+bd(d).toString(36),d=b?g.$g(b):"",g.Js(c,d,f||5))}else f=
"ST-"+bd(d).toString(36),c=b?g.$g(b):"",g.Js(f,c,5)};
g.aM=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;d=d.location;a=g.bh(a,b)+c;a=a instanceof g.xc?a:g.Dc(a);d.href=g.yc(a)};
g.bM=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.Xp("EVENT_ID");d&&(b.ei||(b.ei=d));b&&$L(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.aM(a))};
g.cM=function(a,b,c){c&&$L(a,c);c=g.Cc(a);c=g.zc(c);a!=c&&g.$p(Error("Unsafe window.open URL: "+a));a=c;window.open(a,b||bd(a).toString(36))};
dM=function(){};
eM=function(a){g.A.call(this);this.g=a;this.i=Dja(this)};
Dja=function(a){var b=new vL;g.B(a,b);[new yL(a.g.DC),new zL(a.g.EC),new XL(a.g.Kk),new ZL,new dM].forEach(function(c){return wL(b,c)});
g.O(a.g.experiments,"enable_mute_ad_endpoint_resolution_on_bulleit")?wL(b,new YL(a.g.ZH)):uL(b,"muteAdEndpoint",function(){});
["adInfoDialogEndpoint","adFeedbackEndpoint"].forEach(function(c){return uL(b,c,function(){})});
return b};
fM=function(a){this.i=a;this.g=null};
Eja=function(a){return gM(a).then(function(){return new jg(function(b,c){var d=hM();(d=d?iM(d):null)&&"adSizes"in d[0]?b((0,g.ge)(d[0].adSizes,function(e){return new g.vd(e.adWidth,e.adHeight)})):c(Error("No slots registered with GPT services"))})})};
Fja=function(a){!jM()&&a.g?a.g.cancel():gM(a).then(function(){return kM(null,300,60)})};
gM=function(a){if(null==a.g){var b=a.i/200,c=function(d){if(!jM()){if(0>=d)throw Error("Timed out while waiting for GPT services");return Hg(200).then(function(){return c(d-1)})}};
a.g=ng().then(function(){return c(b)})}return a.g};
kM=function(a,b,c){var d=Hg(5E3).then(function(){throw Error("Timed out while waiting for GPT set companion");}),e=new jg(function(f,k){var l=hM();
if(l){var m=iM(l);if(m&&0!=m.length){var n={};n.slotId=m[0].slotId;n.adContent="<div></div>";n.adWidth=b;n.adHeight=c;n.friendlyIframeRendering=!1;n.onAdContentSet=function(p){var r=g.Ca(p.firstElementChild)?p.firstElementChild:Yd(p.firstChild);r||(r=g.Rd("div"),p.appendChild(r));a&&r.appendChild(a);f()};
(l=l.googleSetCompanionAdContents)?l([n]):k(Error("Missing googleSetCompanionAdContents API"))}else k(Error("No slots registered with GPT services"))}else k(Error("Failed to find GPT services"))});
return sg([e,d])};
jM=function(){var a=hM();if(!a)return!1;a=iM(a);return g.Ka(a)&&0!=a.length?null!=Cd(document,"google_companion_ad_div"):!1};
hM=function(){var a=Od();return g.w("googletag.cmd",a)?a:null};
iM=function(a){a=void 0!==a.googleGetCompanionAdSlots?Zp(a.googleGetCompanionAdSlots)():void 0;return void 0!==a&&0<a.length?a:null};
Kja=function(){this.url=null;this.height=this.width=0;this.adInfoRenderer=this.impressionTrackingUrls=this.clickTrackingUrls=null};
lM=function(){this.contentVideoId=null;this.macros={};this.imageCompanionAdRenderer=this.iframeCompanionRenderer=null};
mM=function(a,b){this.i=a;this.g=b};
eka=function(a){return a.g?Eja(a.g):og("GPT is not enalbed")};
fka=function(a){var b=new mM(a.ba,a.yE?null:new fM(a.GD));return{tD:function(){return b}}};
gka=function(a){switch(a){case "fully_viewable_audible_half_duration_impression":return"h";case "measurable_impression":return"c";case "overlay_unmeasurable_impression":return"i";case "overlay_unviewable_impression":return"j";case "overlay_viewable_end_of_session_impression":return"k";case "overlay_viewable_immediate_impression":return"l";case "viewable_impression":return"q";default:return null}};
nM=function(){g.N.call(this);var a=this;this.g={};g.pf(this,function(){return Object.keys(a.g).forEach(function(b){return delete a.g[b]})})};
pM=function(){null===oM&&(oM=new nM,Vm.getInstance().g="b",Wm());return oM};
hka=function(a,b){Object.keys(a.g).forEach(function(c){a.g[c]===b&&delete a.g[c]})};
qM=function(a){g.A.call(this);var b=this;this.i=a;this.g=null;g.pf(this,function(){return b.g=null})};
sM=function(a){return rM(a)&&1==a.getPlayerState(2)};
rM=function(a){a=a.yb();return void 0!==a&&2==a.getPlayerType()};
tM=function(a){a=g.X(a);return oz(a)&&!g.Ez(a)&&"desktop-polymer"==a.playerStyle};
vM=function(a,b){var c=g.X(a);ez(c)||"3"!=c.l||(c=g.JK(a),ez(c.app.g),c.B=!b,uM(c))};
ika=function(a){switch(a){case "abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "complete":return"complete";case "end_fullscreen":return"exitfullscreen";case "first_quartile":return"firstquartile";case "fullscreen":return"fullscreen";case "impression":return"impression";case "midpoint":return"midpoint";
case "mute":return"mute";case "pause":return"pause";case "progress":return"progress";case "resume":return"resume";case "skip":return"skip";case "start":return"start";case "third_quartile":return"thirdquartile";case "unmute":return"unmute"}return null};
jka=function(a){this.g=a;var b=Vm.getInstance();a=wM(a.app);b.o!==a&&((b.o=a)||Xca(b))};
xM=function(a,b,c,d,e,f,k){f=void 0===f?new WL(d.getVideoData(),g.X(d).experiments):f;k=void 0===k?!1:k;g.A.call(this);this.i=a;this.H=b;this.l=c;this.g=d;this.D=e;this.u=f;this.B=Array.from(this.i.R.progress||[]);this.B.sort(function(l,m){return l.offsetMilliseconds-m.offsetMilliseconds});
this.o={Xt:.25,pu:.5,wu:.75};this.A=null;this.F=k};
DM=function(a,b,c){!yM(a)&&0<c&&(zM(a,b),AM(a)?BM(a,b,c):CM(a,b,c))};
HM=function(a){if(AM(a)){var b=a.g.getCurrentTime(2,!1);EM(a,"impression",b,0)}else FM(a,"impression");FM(a,"start");yM(a)||a.g.isFullscreen()&&GM(a,"fullscreen")};
IM=function(a,b){yM(a)||(AM(a)?(zM(a,0,!0),BM(a,b,b)):(zM(a,0,!0),CM(a,0,0,!0)),FM(a,"complete"))};
kka=function(a,b){b&&b.forEach(function(c){c.baseUrl&&a.u.send(c.baseUrl,JM(a),{})})};
zM=function(a,b,c){for(c=void 0===c?!1:c;a.i.I<a.B.length;){var d=KM(a,"progress"),e=a.B[a.i.I];if(e.offsetMilliseconds<=1E3*b||c)(e=e.baseUrl)&&a.u.send(e,JM(a),d),a.i.I++;else break}};
CM=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.o.Xt||d)&&FM(a,"first_quartile");(b>=c*a.o.pu||d)&&FM(a,"midpoint");(b>=c*a.o.wu||d)&&FM(a,"third_quartile")};
EM=function(a,b,c,d){if(null==a.A){if(c<d||1<c-d)return}else if(a.A>d||d>c)return;FM(a,b)};
BM=function(a,b,c){if(0<c&&0<b){var d=g.IK(a.g,a.g.getPresentingPlayerType());g.T(d,16)||g.T(d,32)||(EM(a,"first_quartile",b,c*a.o.Xt),EM(a,"midpoint",b,c*a.o.pu),EM(a,"third_quartile",b,c*a.o.wu))}a.A=b};
GM=function(a,b){if(g.O(g.X(a.g).experiments,"mark_event_reported_before_send_for_bulleit")){a.i.A[b]=!0;for(var c=KM(a,b),d=g.q(a.i.R[b]||[]),e=d.next();!e.done;e=d.next())(e=e.value.baseUrl)&&a.u.send(e,JM(a),c)}else{c=KM(a,b);d=g.q(a.i.R[b]||[]);for(e=d.next();!e.done;e=d.next())(e=e.value.baseUrl)&&a.u.send(e,JM(a),c);a.i.A[b]=!0}};
FM=function(a,b){a.i.A.hasOwnProperty(b)||GM(a,b)};
LM=function(a,b){return a.i.A.hasOwnProperty(b)};
JM=function(a){for(var b={},c=QL(a.g),d=g.q(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b[e]=c[e].toString();return Object.assign(b,a.l)};
KM=function(a,b){var c=a.H;var d=a.i;if(d.ak()){var e=ika(b);if(null==e)d={};else{var f;(f=d.M()())||(f=(f=c.g)&&f.yb?(f=f.yb())&&2==f.getPlayerType()?AJ(f):null:null);f?(c={opt_adElement:f,opt_fullscreen:c.g.isFullscreen()},d=cn(e,d.D,c)):d={}}}else d={};return d?Object.assign({},d):{}};
MM=function(a,b){if(!g.O(g.X(a.g).experiments,"disable_vss2_engage_for_bulleit"))switch(b){case "action-companion":case "shopping-companion":case "image-companion":case "videowall-companion":if(2==a.g.getPresentingPlayerType())a.g.sendVideoStatsEngageEvent(1,void 0,2);else if(a.D){var c=a.D.g;c&&c()}else g.L(Error("trackCompanionEngagement is called butcompanionEngagementHandler is null"),"ERROR")}};
AM=function(a){return!g.O(g.X(a.g).experiments,"html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.F};
yM=function(a){return AM(a)&&!LM(a,"impression")};
NM=function(a){return AM(a)&&LM(a,"seek")};
lka=function(a){this.g=a};
OM=function(a,b,c,d,e,f){f=void 0===f?0:f;g.N.call(this);this.ba=a;this.g=d;this.l=e;this.l.g[b.D]=this;this.l.subscribe("c",this.bA,this);this.l.subscribe("h",this.cA,this);this.l.subscribe("i",this.dA,this);this.l.subscribe("j",this.eA,this);this.l.subscribe("k",this.fA,this);this.l.subscribe("l",this.gA,this);this.l.subscribe("q",this.hA,this);this.u=b;this.H=[];this.macros=c;this.A=!1;a=new lka(g.X(this.ba));0==f||1==f&&(g.Ez(a.g)||a.g.g||g.uz(a.g)||wz(a.g)||!g.Hz)?f=!0:(f=g.Fd("video-ads"),f=
null!=f&&"none"!=Eh(f,"display"));this.R=!f};
PM=function(a){a.R?a.Ob("ui_unstable"):a.Vb()};
RM=function(a,b){ib(a.H,b);QM(a,b,1)};
mka=function(a,b){var c=[];(0,g.y)(b,function(d){0<=g.Wa(this.H,function(e){return e.componentType==d.componentType})?c.push(d):g.L(Error("Cannot find UX Component "+d.componentType+" to modify"),"WARNING")},a);
QM(a,c,2)};
SM=function(a){a=a.g;a.l=UL(a.l,SL(0,"No playable media files can be selected"));FM(a,"error")};
QM=function(a,b,c){0!=b.length&&(b=(0,g.ge)(b,function(d){return new tL(d,c,d.id)}),a.N("onAdUxUpdate",b))};
TM=function(a){return(a=a.ba.getVideoData(2))&&a.clientPlaybackNonce||""};
UM=function(){AL.apply(this,arguments)};
VM=function(a,b){sL.call(this,"action-companion",a,b)};
WM=function(a,b,c,d,e){OM.call(this,a,b,c,d,e);this.i=null};
XM=function(a,b,c){return g.O(g.X(a.ba).experiments,"ignore_video_data_current_ad_check")?!0:(a=c.renderer)&&a.adVideoId==b.videoId};
YM=function(a,b,c){if(c.renderer.actionButton||b.he){var d=c.renderer,e=d.iconImage&&d.iconImage.thumbnail&&d.iconImage.thumbnail.thumbnails||null;e&&e.length&&g.wb(g.ad(e[0].url))&&(e[0].url=b.Vd);(e=d.bannerImage&&d.bannerImage.thumbnail&&d.bannerImage.thumbnail.thumbnails||null)&&e.length&&g.wb(g.ad(e[0].url))&&(e[0].url=b.channelBanner);e=d.headline;null!=e&&g.wb(g.ad(e.text))&&(e.text=b.author);c.renderer.actionButton||(d.description&&(d.description.text=b.videoCountText),d.navigationEndpoint&&
d.navigationEndpoint.urlEndpoint&&(d.navigationEndpoint.urlEndpoint.url=b.gg));RM(a,[c])}};
nka=function(a){var b={};b.abandon=a.abandonCommands&&HL(a.abandonCommands.commands)||[];return b};
ZM=function(a){AL.call(this,a,nka(a))};
$M=function(a,b){sL.call(this,"ad-action-interstitial",a,b)};
aN=function(a,b,c,d,e,f){OM.call(this,a,b,c,d,e,1);this.o=b;this.i=b.g.durationMilliseconds||0;this.Aa=null;this.B=f};
bN=function(a){AL.call(this,a);this.i=g.Hq(this.g.playerVars||"")};
cN=function(){AL.apply(this,arguments)};
dN=function(){AL.apply(this,arguments)};
oka=function(a){a=a.impressionUrls;var b={};a&&(b.impression=a);return b};
eN=function(a){AL.call(this,a,oka(a))};
fN=function(){AL.apply(this,arguments)};
gN=function(){AL.apply(this,arguments)};
hN=function(){AL.apply(this,arguments)};
iN=function(){AL.apply(this,arguments)};
jN=function(){AL.apply(this,arguments)};
kN=function(){AL.apply(this,arguments)};
lN=function(a,b,c,d,e,f,k,l,m,n,p,r,v,z){this.P=a;this.B=b;this.A=c;this.H=d;this.I=e;this.F=f;this.u=k;this.i=l;this.D=m;this.g=n;this.M=p;this.R=r;this.o=v;this.l=z};
mN=function(a,b,c,d,e,f){OM.call(this,a,b,c,d,e);var k=this;this.B=b;this.i=new g.J(function(){k.Ob("load_timeout")},1E4);
g.B(this,this.i);this.D=f;this.o=new g.Us(this);g.B(this,this.o)};
nN=function(a){sL.call(this,"ad-message",a)};
oN=function(a,b,c,d,e){OM.call(this,a,b,c,d,e);var f=this;this.B=b;this.D=b.g.durationMs||0;this.i=this.o=0;this.F=function(){var k=f.ba.getProgressState().current;k<f.o?f.Ic():k>f.i&&f.Jc()}};
pN=function(a,b){b.SLOT_POS="1";sL.call(this,"backfill-mpu-companion",a,b)};
qN=function(a,b,c,d,e){OM.call(this,a,b,c,d,e)};
rN=function(a,b,c,d,e){OM.call(this,a,b,c,d,e)};
sN=function(a,b){sL.call(this,"invideo-overlay",a,b)};
tN=function(a,b){sL.call(this,"invideo-overlay-as-cta",a,b)};
uN=function(a,b,c,d,e){OM.call(this,a,b,c,d,e);this.i=b};
vN=function(a,b){sL.call(this,"persisting-overlay",a,b)};
wN=function(a,b,c,d,e){OM.call(this,a,b,c,d,e);this.i=b};
xN=function(a){return a?g.yB(a):null};
yN=function(a){if(!a||!a.loggingUrls)return[];a=a.loggingUrls.map(function(b){return b.baseUrl});
return 0===a.length?[]:a};
pka=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
zN=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
qka=function(a,b,c,d,e,f){this.l=a;this.i=b;this.g=c;this.o=d;this.A=e;this.u=f};
uka=function(a,b,c){var d=rka();c&&(d.adNextParams=c);if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":ska(a,d,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":tka(a,d,b.adInfoRenderer.adHoverTextButtonRenderer)}d.isBumper=EL(a.g)&&!d.isSkippable;d.isPostroll=a.g.isPostroll;a.g.isSkippable();b=a.g.u;c=a.g.getVideoUrl();b?d.videoId=b:c&&(d.videoUrl=c);if(b=(b=a.g.B)&&
b.urlEndpoint)d.clickThroughUrl=b.url||"";d.sendAdsPing=function(e){a.u.send(e,a.i,{})};
return d};
ska=function(a,b,c){b.isSkippable=!0;b.skipTime=c.skipOffsetMilliseconds?Math.floor(c.skipOffsetMilliseconds/1E3):0;if(c.skippableRenderer)switch(Object.keys(c.skippableRenderer)[0]){case "skipButtonRenderer":var d=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var e=d.adRendererCommands&&d.adRendererCommands.clickCommand;e&&g.O(g.X(a.A).experiments,"enable_on_skip_command_for_bulleit_living_room")?AN(a,e):a.o.bh()};
b.skipShown=function(){AN(a,d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
tka=function(a,b,c){if(c.button&&c.button.buttonRenderer&&c.button.buttonRenderer.serviceEndpoint&&c.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint){var d=c.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint.dialog;d&&d.adInfoDialogRenderer&&(vka(a,b,d.adInfoDialogRenderer),b.whyThisAdInfo.menuTitle=xN(c.hoverText)||"",d.adInfoDialogRenderer.muteAdRenderer&&(c=d.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&wka(a,b,c))}};
vka=function(a,b,c){var d=xN(c.confirmLabel)||"",e=xN(c.title)||"",f=c.adReasons?c.adReasons.map(function(k){return xN(k)||""}):[];
b.whyThisAdInfo={closeButton:d,menuTitle:"",targetingReasonHeader:e,targetingReasons:f,adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};b.whyThisAdClicked=function(){AN(a,c.impressionEndpoints)};
b.whyThisAdClosed=function(){AN(a,c.confirmServiceEndpoint)}};
wka=function(a,b,c){if(c.navigationEndpoint&&c.navigationEndpoint.adFeedbackEndpoint&&c.navigationEndpoint.adFeedbackEndpoint.content){var d=c.navigationEndpoint.adFeedbackEndpoint.content.adFeedbackRenderer;if(d){var e={goneText:"",questionText:"",undoText:"",hoverText:xN(c.text)||"",surveyOptions:[]};b.muteAdInfo=e;c=yN(c.navigationEndpoint);var f=zN(c[1]),k=[zN(c[0])];(c=pka(d))&&k.push(c);var l=!1;b.muteAdClicked=function(){l=!0;AN(a,f)};
b.muteAd=function(){l||AN(a,f);l=!1;AN(a,k)};
xka(b,d)}}};
xka=function(a,b){a.muteAdInfo.goneText=xN(b.title)||"";a.muteAdInfo.questionText=xN(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=xN(b.undoRenderer.buttonRenderer.text)||"");for(var c=a.muteAdInfo.surveyOptions,d=g.q(b.reasons||[]),e=d.next();!e.done;e=d.next()){var f=e.value;e=xN(f.reason)||"";f=yN(f.endpoint);c.push({label:e,url:f[0]})}};
AN=function(a,b){b&&(g.Ka(b)?b.forEach(function(c){return a.l.Ha(c,a.i)}):a.l.Ha(b,a.i))};
rka=function(){return{adNextParams:"",adSystem:0,attributionInfo:null,clickThroughUrl:"",isBumper:!1,isPostroll:!1,isSkippable:!1,muteAdInfo:null,skipTime:0,videoId:"",videoUrl:"",whyThisAdInfo:null,muteAd:function(){},
muteAdClicked:function(){},
sendAdsPing:function(){},
skip:function(){},
skipShown:function(){},
whyThisAdClicked:function(){},
whyThisAdClosed:function(){}}};
BN=function(a,b){sL.call(this,"pla-shelf",a,b)};
CN=function(a,b,c,d,e){OM.call(this,a,b,UL(c,{TRIGGER_TYPE:"YOUTUBE_SHELF_SHOW"}),d,e);this.i=b};
DN=function(a,b){sL.call(this,"shopping-companion",a,b)};
EN=function(a,b,c,d,e){OM.call(this,a,b,c,d,e)};
FN=function(a){sL.call(this,"survey",a);this.g=!1};
GN=function(a,b,c,d,e,f){OM.call(this,a,b,c,d,e,2);var k=this;this.o=b;this.i=null;this.ca=new g.Us;g.B(this,this.ca);g.O(g.X(this.ba).experiments,"enable_survey_termination_on_resize")&&this.ca.K(this.ba,"resize",function(){return k.Va()});
this.B=f};
HN=function(a,b){sL.call(this,"survey-interstitial",a,b)};
IN=function(a,b,c,d,e){OM.call(this,a,b,c,d,e,2);this.i=b};
JN=function(a){sL.call(this,"ad-text-interstitial",a)};
KN=function(a,b,c,d,e,f){OM.call(this,a,b,c,d,e);this.o=b;this.i=b.g.durationMilliseconds||0;this.Aa=null;this.B=f};
LN=function(a,b){g.A.call(this);this.o=Math.max(0,a);this.l=this.i=0;this.u=b;this.g=null};
MN=function(a){a.g&&(a.g.stop(),a.g.dispose(),a.g=null)};
NN=function(){sL.call(this,"ad-attribution-bar");this.adPodPositionInfoString=null;this.adPodPosition=0;this.adPodLength=1;this.adBreakLengthSeconds=0;this.adBadgeText=null;this.adBreakRemainingLengthSeconds=0;this.adVideoId=null};
ON=function(a){a=void 0===a?null:a;sL.call(this,"ad-channel-thumbnail");this.channelIconThumbnailUrl=a};
PN=function(a){a=void 0===a?null:a;sL.call(this,"ad-title");this.videoTitle=a};
QN=function(a){a=void 0===a?null:a;sL.call(this,"advertiser-name");this.channelName=a};
RN=function(a){sL.call(this,"player-overlay",a)};
SN=function(a){sL.call(this,"skip-button",a)};
TN=function(a){sL.call(this,"visit-advertiser",a);var b={};var c=a.text;a=a.navigationEndpoint;null!=c&&null!=c.runs&&null!=a?(b.runs=[g.bc(c.runs[0])],b.runs[0].navigationEndpoint=a):(b={text:"\uad11\uace0\uc8fc \uc0ac\uc774\ud2b8 \ubc29\ubb38"},a&&(b.navigationEndpoint=a),b={runs:[b]});this.visitAdvertiserLabel=b};
g.UN=function(a,b){var c={},d;for(d in b)c.Yo=b[d],a=a.replace(new RegExp("\\$"+d,"gi"),function(e){return function(){return e.Yo}}(c)),c={Yo:c.Yo};
return a};
VN=function(a,b,c,d,e,f,k,l,m){OM.call(this,a,b,c,d,e,1);var n=this;this.i=b;this.B=k;this.Z=g.O(g.X(a).experiments,"bulleit_use_video_end_cuerange_for_completion");this.T=g.O(g.X(a).experiments,"bulleit_publish_external_playback_events");this.M=new g.Us(this);g.B(this,this.M);this.D=new g.J(function(){n.Ob("load_timeout")},g.O(g.X(a).experiments,"use_variable_load_timeout")?g.P(g.X(a).experiments,"variable_load_timeout_ms"):1E4);
g.B(this,this.D);this.o=null;g.O(g.X(a).experiments,"enable_bulleit_buffer_timer")&&(this.o=new LN(g.O(g.X(a).experiments,"use_variable_buffer_timeout")?g.P(g.X(a).experiments,"variable_buffer_timeout_ms"):15E3,function(){n.Ob("buffer_timeout")}),g.B(this,this.o));
this.X=!g.O(g.X(a).experiments,"bulleit_unstarted_event_killswitch");this.F=!1;this.Y=m(this);this.aa=f;this.I=l;this.P=!1};
WN=function(a){var b=new NN;b.adBadgeText="\uad11\uace0";var c=a.i.o;1<c.i&&(b.adPodPositionInfoString=g.UN("$AD_INDEX/$ADS_COUNT",{AD_INDEX:String(c.g+1),ADS_COUNT:String(c.i)}));b.adBreakLengthSeconds=c.adBreakLengthSeconds;b.adBreakRemainingLengthSeconds=c.adBreakRemainingLengthSeconds;b.adPodPosition=c.g+1;b.adPodLength=c.i;if(a=a.i.u)b.adVideoId=a;return b};
ZN=function(a){var b=a.i.g,c=b.playerOverlay&&b.playerOverlay.instreamAdPlayerOverlayRenderer;c||(c={});var d=g.X(a.ba);if(g.Ez(d)&&!c.skipOrPreviewRenderer){var e=a.ba.getDuration(2);isFinite(e)&&33<e&&!a.i.isSkippable()&&!g.Ez(d)&&g.L(Error("Instream ad is skippable by length, but was was marked nonskippable. adLengthSecs:"+(e+", IVAR: "+JSON.stringify(b))),"ERROR");d={};a.i.isSkippable()&&!EL(a.i)?d.skipAdRenderer=XN(a):d.adPreviewRenderer=YN(a,!1,EL(a.i));c.skipOrPreviewRenderer=d}c.skipOrPreviewRenderer&&
g.Xb(c.skipOrPreviewRenderer)&&g.L(Error("IAPOR.skipOrPreview was filled, but empty. IVAR: "+JSON.stringify(b)),"ERROR");return c};
XN=function(a){var b={preskipRenderer:{}};b.preskipRenderer.adPreviewRenderer=YN(a,!0,!1);b.skippableRenderer={};a=b.skippableRenderer;var c={message:{}};c.message.text="\uad11\uace0 \uac74\ub108\ub6f0\uae30";a.skipButtonRenderer=c;return b};
YN=function(a,b,c){var d=a.ba.getVideoData(1),e={};if(b||c){var f={},k={};c=c?g.UN("\ub3d9\uc601\uc0c1\uc774 $TIME_REMAINING \ud6c4\uc5d0 \uc2dc\uc791\ub429\ub2c8\ub2e4.",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"}):g.UN("$TIME_REMAINING \ud6c4 \uad11\uace0 \uac74\ub108\ub6f0\uae30 \uac00\ub2a5",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"});k.text=c;k.isTemplated=!0;f.templatedAdText=k;e.templatedCountdown=f}else f={},k=g.UN("\uad11\uace0 \ud6c4\uc5d0 \ub3d9\uc601\uc0c1\uc774 \uc7ac\uc0dd\ub428",
{NEW_LINE:"\n"}),f.text=k,f.isTemplated=!1,e.staticPreview=f;b&&(e.durationMilliseconds=5E3);e.thumbnail={};b=e.thumbnail;f={};f.url=Bz(g.X(a.ba),d.videoId,"mqdefault.jpg");f.width=320;f.height=180;b.thumbnail={thumbnails:[f]};return e};
yka=function(a){function b(E,K){var R=a.rM,V=Object.assign({},{});V.FINAL=PL(kc("1"));V.SLOT_POS=PL(kc("0"));return UL(R,TL(V),K)}
function c(E){return{create:function(K,R){var V=b(K,R),ta=a.Bo(K,V);V=E(K,V,ta);g.B(V,ta);return V}}}
var d=c(function(E,K,R){return new uN(a.ba,E,K,R,a.Tc)}),e=c(function(E,K,R){return new rN(a.ba,E,K,R,a.Tc)}),f=c(function(E,K,R){return new EN(a.ba,E,K,R,a.Tc)}),k=c(function(E,K,R){return new GN(a.ba,E,K,R,a.Tc,a.ka)}),l=c(function(E,K,R){return new CN(a.ba,E,K,R,a.Tc)}),m=c(function(E,K,R){return new qN(a.ba,E,K,R,a.Tc)}),n=c(function(E,K,R){return new aN(a.ba,E,K,R,a.Tc,a.ka)}),p=c(function(E,K,R){return new wN(a.ba,E,K,R,a.Tc)}),r=c(function(E,K,R){return new WM(a.ba,E,K,R,a.Tc)}),v=c(function(E,
K,R){return new KN(a.ba,E,K,R,a.Tc,a.ka)}),z=c(function(E,K,R){return new IN(a.ba,E,K,R,a.Tc)}),C=c(function(E,K,R){return new oN(a.ba,E,K,R,a.Tc,a.ka)}),F=c(function(E,K,R){return new mN(a.ba,E,K,R,a.Tc,a.ka)});
this.g=new lN({create:function(E,K){var R=UL(b(E,K),TL(Aja(E))),V=a.Bo(E,R),ta=new VN(a.ba,E,R,V,a.Tc,a.QC,a.ka,a.ac,function(db){return new qka(a.ka,R,E,db,a.ba,a.Kk)});
g.B(ta,V);return ta}},d,e,f,k,l,m,n,p,r,v,z,C,F)};
$N=function(a){this.i=a;this.g={}};
aO=function(a){a=void 0===a?null:a;g.N.call(this,!0);this.i=a;this.o=-Infinity;this.l={};this.g=null};
cO=function(a){null!==a.g&&(bO(a,a.g),a.g=null);a.i=null};
bO=function(a,b){b>=a.i.end||(a.i.end=b,a.N("Shortened the latest cuerange",b))};
dO=function(a){g.A.call(this);this.g=[];var b=a.subscribe("Shortened the latest cuerange",this.i,this);g.pf(this,function(){a.Mf(b)})};
eO=function(a){g.A.call(this);this.g=new dO(a.kM);g.B(this,this.g);this.i=new $N(a.UC)};
fO=function(){AL.apply(this,arguments)};
zka=function(a,b,c){this.l=a;this.g=b;this.i=c;this.o=a.getCurrentTime()};
Bka=function(a,b){var c=void 0===c?Date.now():c;if(a.i)for(var d=a.g.clientPlaybackNonce,e=g.q(b),f=e.next();!f.done;f=e.next()){f=f.value;var k=c;gO({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:Aka(f.event),cuepointId:f.identifier,totalCueDurationMs:1E3*f.durationSecs,playheadTimeMs:f.i,cueStartTimeMs:1E3*f.g,cuepointReceivedTimeMs:k,contentCpn:d}});"unknown"===f.event&&hO("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",d);f=f.g+f.i/1E3;f>a.o&&a.l.getCurrentTime()>f&&hO("DAI_ERROR_TYPE_LATE_CUEPOINT",
d)}};
Cka=function(a,b,c){a.i&&gO({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.g.clientPlaybackNonce}})};
iO=function(a,b){a.i&&gO({driftRecoveryInfo:{contentCpn:a.g.clientPlaybackNonce,cueIdentifier:b.cueIdentifier||void 0,driftRecoveryMs:b.driftRecoveryMs.toString(),breakDurationMs:Math.round(b.wx-b.Oz).toString(),driftFromHeadMs:Math.round(1E3*kL(a.l.app)).toString()}})};
Dka=function(a,b){a.i&&gO({adTrimmingInfo:{contentCpn:a.g.clientPlaybackNonce,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.GC}})};
hO=function(a,b){gO({daiStateTrigger:{errorType:a,contentCpn:b}})};
gO=function(a){Ns("adsClientStateChange",a)};
Aka=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START"}};
jO=function(a){this.i=a;this.aa=(a=!g.O(g.X(this.i).experiments,"html5_ad_csi_tracker_initialization_killswitch"))?g.X(this.i).deviceParams.c:g.Xp("INNERTUBE_CLIENT_NAME",void 0);this.Y=a?g.X(this.i).deviceParams.cver:g.Xp("INNERTUBE_CLIENT_VERSION",void 0);this.P=a?g.X(this.i).deviceParams.cbrand:"";this.T=a?g.X(this.i).deviceParams.cmodel:"";this.H="AD_PLACEMENT_KIND_UNKNOWN";this.u=this.F=this.B=this.A=null;this.g="unknown_type";this.I=!0;this.R=this.l=this.D=!1;this.M="vod";this.o=null};
kO=function(a){a.A=null;a.B=null;a.F=null;a.u=null;a.o=null;a.H="AD_PLACEMENT_KIND_UNKNOWN";a.g="unknown_type";a.D=!1;a.l=!1};
lO=function(a){a.l=!1;a=g.O(g.X(a.i).experiments,"ad_to_video_use_gel");jB("ad_to_video",["pbresume"],void 0,a)};
Eka=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"1";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"2";case "AD_PLACEMENT_KIND_END":return"3";default:return"unknown"}};
mO=function(a){this.g=a};
nO=function(a){a=[a,a.o].filter(function(d){return!!d});
for(var b=g.q(a),c=b.next();!c.done;c=b.next())c.value.g=!0;return a};
oO=function(a,b){var c=a.g;g.dg(function(){g.SK(c.g,b,1);for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,c.B["delete"](e),c.u["delete"](e)})};
pO=function(a,b,c,d,e,f,k,l){g.N.call(this);this.kc=a;this.ba=b;this.P=g.O(g.X(b).experiments,"bulleit_terminate_ad_when_ending_with_commands");this.g=d;this.u=this.g.g instanceof AL?this.g.g:null;this.i=null;this.I=!1;this.A=c;this.H=(a=b.getVideoData(1))&&a.sa||!1;this.M=0;this.T=!1;this.aa=g.O(g.X(b).experiments,"abort_ad_on_browser_autoplay_blocked");this.re=e;this.Nh=f;this.Xf=k;this.R=!1;this.ac=l};
qO=function(a){if(rM(a.ba)){var b=a.ba.getVideoData(2);(b=a.g.D[b.hc]||null)?(!a.i||a.i&&a.i.u!==b)&&a.Vb(b):a.yk()}else 1===a.ba.getPresentingPlayerType()&&a.i&&a.yk()};
rO=function(a){(a=a.baseUrl)&&g.xr(a,void 0,On.ir(a))};
sO=function(a,b){var c=a.A,d=a.g.ub().l,e=a.bw(),f=a.dw();var k=a.isLiveStream()?"live":"vod";kO(c);var l=c.i.getVideoData(1),m=c.i.getVideoData(2);l&&(c.A=l.clientPlaybackNonce,c.F=l.videoId);m&&(c.B=m.clientPlaybackNonce,c.u=m.videoId,c.o=m.adFormat);c.H=d;0>=f?kO(c):(c.g=c.I?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",c.M=k,c.R=e+1==f,c.D=!0,c.D&&(oE("c",c.aa,c.g),oE("cver",c.Y,c.g),g.O(g.X(c.i).experiments,"html5_ad_csi_tracker_initialization_killswitch")||(oE("cbrand",c.P,c.g),
oE("cmodel",c.T,c.g)),oE("yt_pt","html5",c.g),oE("yt_pre","2",c.g),oE("yt_abt",Eka(c.H),c.g),c.A&&oE("cpn",c.A,c.g),c.F&&oE("docid",c.F,c.g),c.B&&oE("ad_cpn",c.B,c.g),c.u&&oE("ad_docid",c.u,c.g),oE("yt_vst",c.M,c.g),c.o&&oE("ad_at",c.o,c.g)))};
uO=function(a,b){b=void 0===b?!1:b;tO(a.kc,a.g.ub(),a);!b&&g.O(g.X(a.ba).experiments,"enable_client_monitoring_for_bulleit_adplacement_schedule")&&Os("ADS_CLIENT_EVENT_TYPE_ADPLACEMENT_SCHEDULED");a.ac&&!a.g.B&&(Fka(a,a.ew()),a.g.B=!0)};
Fka=function(a,b){for(var c=vO(a),d=a.g.ub().start,e=[],f=g.q(b),k=f.next();!k.done;k=f.next()){k=k.value;if(c<=d)break;var l=wO(k);e.push({jR:k.u,rR:(1E3*k.i).toString(),xR:l.toString()});l=d+l;var m=Math.min(l,c);if(!Gka(a,k,d,m)||l!==m)break;d=l}c=b.reduce(function(n,p){return n+wO(p)},0);
Cka(a.re,sja(a.g.ub()),c);Dka(a.re,{cueIdentifier:a.g.i&&a.g.i.identifier,GC:e})};
wO=function(a){var b=1E3*a.i;return 0<parseInt(a.g.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.g.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.g.trimmedMaxNonSkippableAdDurationMs,10):b};
vO=function(a){var b=a.g.ub().end;var c=a.Nh;a=a.g.ub().start;var d=g.ob(c.g,a);0<=d?c=a:(a=-d-1,c=a>=c.g.length||c.g[a]>b?null:c.g[a]);return Math.min(b,null===c?Infinity:c)};
Gka=function(a,b,c,d){c=a.Xf.create(b,TL(RL(a.g))).Qv(c,d);if(!c)return!1;a.g.D[c]=b;return!0};
Hka=function(a){if(a.T)return function(c){c.seekTo(Infinity,!0)};
var b=Math.floor((0,g.D)()/1E3)-a.M;return function(c){c.seekTo(c.getCurrentTime()+b,!0)}};
xO=function(a,b,c,d){this.g=a;this.i=b;this.l=c;this.o=d};
Ika=function(a){return yO(a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer.getAdBreakUrl||"")};
yO=function(a){if(!a)return!1;a=fh(a,"post_data");if(!a)return!1;try{var b=decodeURIComponent(a)}catch(c){return g.L(c),!1}return b?b.split("&").some(function(c){c=c.split("=");return 1<c.length&&"pat"==c[0]}):!1};
Jka=function(a){return a&&a.renderer&&a.renderer.invideoOverlayAdRenderer?!0:!1};
Kka=function(a){if(a&&a.config&&a.config.adPlacementConfig&&a.renderer){var b=a.config.adPlacementConfig;a=a.renderer.backfillMpuCompanionAdRenderer;return!(!("AD_PLACEMENT_KIND_START"==b.kind||"AD_PLACEMENT_KIND_MILLISECONDS"==b.kind&&b.adTimeOffset&&"0"==b.adTimeOffset.offsetStartMilliseconds)||!a)}return!1};
zO=function(a,b,c,d,e){g.N.call(this);this.i=a;this.u=b;this.B=g.O(g.X(b).experiments,"bulleit_gmi_assume_empty_is_throttled");this.A=c;this.g=d;this.l=!1;this.o=e;Lka(this)};
Mka=function(a,b){var c=null,d={isEmpty:!0,ix:!1,rp:[]};try{c=JSON.parse(b.response)}catch(f){return b.response&&(c=b.response,c.startsWith("GIF89")||(f.params=c.substr(0,256),g.$p(f))),d}if(!c)return d;if(c&&c.adThrottled)return d.ix=!0,d;c=c.playerAds;if(!c||!c.length)return d;c=c.map(function(f){return f.adPlacementRenderer}).filter(function(f){return f&&null!=f.renderer});
if(0==c.length)return d;if(0<a.g.ub().end){var e=a.g.ub().end.toString();c.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==f.kind&&"-1"==f.adTimeOffset.offsetEndMilliseconds&&f.adTimeOffset.offsetEndMilliseconds!=e&&(f.adTimeOffset.offsetEndMilliseconds=e)})}d.rp=c;
d.isEmpty=!1;return d};
Lka=function(a){[a.g.R,a.g.ub()].filter(function(b){return null!=b}).forEach(function(b){tO(a.i,b,a)});
g.O(g.X(a.u).experiments,"enable_client_monitoring_for_bulleit_adplacement_schedule")&&Os("ADS_CLIENT_EVENT_TYPE_ADPLACEMENT_SCHEDULED")};
AO=function(a,b,c){g.W.call(this,a);this.ba=b;this.o=c;this.u=Nka(this)};
Nka=function(a){var b=a.ba;if(b){a=function(d){return{toString:function(){return d()}}};
var c={};c.AD_MT=a(function(){return Math.round(Math.max(0,1E3*b.getCurrentTime(2))).toString()});
c.MT=a(function(){return Math.round(Math.max(0,1E3*b.getCurrentTime(1))).toString()});
c.P_H=a(function(){return b.getPlayerSize().height.toString()});
c.PV_H=c.P_H;c.P_W=a(function(){return b.getPlayerSize().width.toString()});
c.PV_W=c.P_W;c.CONN="0";c.WT=a(function(){return(0,g.D)().toString()});
c.LACT=a(function(){return Cs().toString()});
c.VIS=a(function(){return b.getVisibilityState().toString()});
c.VOL=a(function(){return b.getVolume().toString()});
return c}return{}};
BO=function(a){g.A.call(this);this.D=a};
CO=function(a){BO.call(this,!0);this.g=a};
DO=function(a,b){function c(f){return{toString:f}}
var d={},e=a.getVideoData();d.CPN=c(function(){return e&&e.clientPlaybackNonce||null});
d.ASR=c(function(){return e&&e.adSafetyReason||null});
d.EI=c(function(){return e&&e.eventId||null});
d.AD_CPN=c(function(){return b.Z});
d.AD_MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(2))).toString()});
d.MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1))).toString()});
d.P_H=c(function(){return a.getPlayerSize().height.toString()});
d.PV_H=d.P_H;d.P_W=c(function(){return a.getPlayerSize().width.toString()});
d.PV_W=d.P_W;d.CONN="0";d.WT=c(function(){return Date.now().toString()});
d.LACT=c(function(){return Cs().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
EO=function(a,b){g.A.call(this);var c=this;this.l=[];this.B=!1;this.i=0;this.u=this.A=this.o=!1;this.H=null;var d=(0,g.x)(a,b);this.g=new g.J(function(){return d(c.H)},300);
g.B(this,this.g);this.F=this.D=Infinity};
FO=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.l.includes(d.identifier))return!0}return!1};
Z=function(a,b,c,d,e){e=void 0===e?null:e;g.tD.call(this,c);this.api=a;this.ka=b;this.macros={};this.componentType=d;this.D=null;this.xa=e;this.ga=null;this.Ca=new CO(this.element);g.B(this,this.Ca);this.wa=this.K(this.element,"click",this.onClick);this.P=[];this.M=new EO(this.onClick,this);g.B(this,this.M);this.Ia=!1;this.F=null};
GO=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.$p(Error("Got null or undefined adText object")),"";var c=g.ad(a.text);if(!a.isTemplated)return c;if(null==b)return g.$p(Error("Missing required parameters for a templated message")),c;for(var d=g.q(Object.entries(b)),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;c=c.replace("{"+e+"}",f)}return c};
HO=function(a){a=void 0===a?null:a;return null!=a&&(a=a.thumbnail,null!=a&&null!=a.thumbnails&&0!=a.thumbnails.length&&null!=a.thumbnails[0].url)?g.ad(a.thumbnails[0].url):""};
Oka=function(a){a=void 0===a?null:a;return null!=a&&(a=a.thumbnail,null!=a&&null!=a.thumbnails&&0!=a.thumbnails.length&&null!=a.thumbnails[0].width&&null!=a.thumbnails[0].height)?new g.vd(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.vd(0,0)};
KO=function(a,b,c){var d=a.api;g.X(d).F&&g.IO(d.app.T,b,a);a=a.api;g.X(a).F&&g.JO(a.app.T,b,c)};
LO=function(a,b,c){bL(a.api,b)&&g.aL(a.api,b,c)};
MO=function(a,b){b=void 0===b?null:b;var c=g.X(a.api);if(c=!(0<a.P.length)&&c.g)if(c=g.O(g.X(a.api).experiments,"use_touch_events_for_bulleit_mweb"))c=(c=a.api)&&g.O(g.X(c).experiments,"mweb_enable_skippables_on_jio_phone")&&(Yy||bK)?!1:"ontouchstart"in document.documentElement&&(ci()||bi());c&&(a.Na(a.wa),b&&a.Na(b),a.P=[a.K(a.element,"touchstart",a.IH,a),a.K(a.element,"touchmove",a.HH,a),a.K(a.element,"touchend",a.GH,a)])};
NO=function(){g.A.call(this);var a=this;this.g=new Map;this.i=g.us(document.body,"click",function(b){if(b.target&&(b=a.g.get(b.target))&&b)for(var c=0;c<b.length;c++)g.xr(b[c],void 0,void 0)},"ytp-ad-has-logging-urls")};
PO=function(){null==OO&&(OO=new NO);return OO};
RO=function(a,b){if(a.simpleText){a:{var c=a.simpleText;if(b){var d=QO(c);if(d){c=g.Qd("SPAN",null,d);break a}}c=g.Sd(c)}return c}c=[];if(a.runs)for(d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(Pka(e,b))}return 1==c.length?c[0]:g.Qd("SPAN",null,c)};
Pka=function(a,b){var c=null,d=a.text;b&&(d=QO(d)||d);a.bold&&(c=g.Qd("B",null,c||d));a.italics&&(c=g.Qd("I",null,c||d));a.strikethrough&&(c=g.Qd("STRIKE",null,c||d));if(a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint){var e=a.navigationEndpoint.urlEndpoint;c=g.Qd("A",null,c||d);g.Tc(c,e.url);"TARGET_NEW_WINDOW"==e.target&&(c.target="_blank");if(e=a.navigationEndpoint.loggingUrls)e=e.map(function(f){return f.baseUrl}),PO().register(c,e),g.H(c,"ytp-ad-has-logging-urls")}return c||g.Qd("SPAN",
null,d)};
QO=function(a){a=a.split(/(?:\r\n|\r|\n)/g);if(1<a.length){for(var b=[a[0]],c=1;c<a.length;c++)b.push(g.Qd("BR")),b.push(a[c]);return b}return null};
SO=function(a){BO.call(this,a);this.A=new g.N;g.B(this,this.A)};
TO=function(a,b,c){g.A.call(this);this.Bb=a;this.jj=b;this.view=c();g.B(this,this.view);this.l=null;this.i=[];this.macros={};this.o=!1;this.hide()};
UO=function(a){for(var b={},c=g.q(Object.entries(DO(a.Bb,a.jj))),d=c.next();!d.done;d=c.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;b[d]=e.toString()}Object.assign(b,a.macros);return b};
VO=function(a){g.N.call(this);this.o=a;this.i=new g.W({C:"div",G:"ytp-ad-info-dialog-confirm-container",J:[{C:"button",G:"ytp-ad-info-dialog-confirm-button",V:"{{content}}"}]});g.B(this,this.i);this.i.hide();this.l=new g.W({C:"div",G:"ytp-ad-info-dialog-title",V:"{{content}}"});g.B(this,this.l);this.l.hide();this.g=new g.W({C:"div",G:"ytp-ad-info-dialog-relative-container",J:[{C:"div",G:"ytp-ad-info-dialog-form",J:[this.l,{C:"ul",G:"ytp-ad-info-dialog-ad-reasons"},{C:"div",G:"ytp-ad-info-dialog-message",
V:"{{content}}"},this.i]}]});g.B(this,this.g);this.g.hide();this.ca=new g.Us(this);g.B(this,this.ca)};
WO=function(a){return a.g.i["ytp-ad-info-dialog-ad-reasons"]};
XO=function(a){return a?RO(a):null};
YO=function(a){SO.call(this,!1);var b=this;this.g=new VO(a.ha());g.B(this,this.g);a={};for(var c=g.q(Object.values(Qka)),d=c.next();!d.done;a={wl:a.wl},d=c.next())a.wl=d.value,this.g.subscribe(a.wl,function(e){return function(){return b.dispatchEvent({type:e.wl})}}(a))};
ZO=function(a,b,c){TO.call(this,a,b,function(){return new Rka.OB(c)});
this.ca=new g.Us(this);g.B(this,this.ca);this.g=null;this.md()};
$O=function(a,b){Z.call(this,a,b,{C:"div",G:"ytp-out-of-player-ad-info",J:[{C:"div",G:"ytp-out-of-player-hover-container"},{C:"div",G:"ytp-out-of-player-ad-info-button-container",J:[{C:"button",W:["ytp-out-of-player-ad-info-button"],J:[{C:"span",G:"ad-info-icon"}]}]}]},"watch-ad-info-hover-button");this.l=this.i["ytp-out-of-player-hover-container"];this.u=this.i["ytp-out-of-player-ad-info-button-container"];this.A=this.i["ytp-out-of-player-ad-info-button"];this.qe=new ZO(this.api,this.ka,new CO(this.u));
g.B(this,this.qe);this.o=new g.Us(this);g.B(this,this.o);this.Kq();this.qe.Ih(new CO(this.element));this.o.K(this.A,"mouseenter",this.EF);this.o.K(this.A,"mouseleave",this.Kq);this.o.K(this.u,"click",this.DF);this.hide()};
aP=function(a,b,c){AO.call(this,{C:"div",G:"videowall-companion-container",J:[{C:"iframe",G:"videowall-companion",L:{marginwidth:"0",marginheight:"0",hspace:"0",vspace:"0",frameborder:"0",scrolling:"no",src:c.iframeUrl}}]},a,b);var d=this;this.l=c;var e=this.i["videowall-companion"];g.Rh(e,c.iframeWidth||300,c.iframeHeight||250);this.xc=new $O(a,b);g.B(this,this.xc);this.xc.g(this.element,0);this.l.adInfoRenderer&&this.l.adInfoRenderer.adHoverTextButtonRenderer?this.xc.init(Y("watch-ad-info-hover-button"),
this.l.adInfoRenderer.adHoverTextButtonRenderer,{}):g.L(Error("VideowallIframeCompanionAdRenderer has no ad info renderer."));e&&this.K(e,"load",function(){d.vf(c.impressionCommands);var f=Ska(e);f&&d.K(f,"click",function(k){g.$d(d.xc.element,k.target)||(d.vf(d.l.onClickCommands),d.ba.onAdUxClicked("videowall-companion"))})})};
Ska=function(a){try{var b=a.contentDocument||a.contentWindow.document;return b&&b.body}catch(c){return g.L(c),null}};
bP=function(){fO.apply(this,arguments)};
cP=function(a){return a.length?(0,g.ge)(a[0].loggingUrls||[],function(b){return b.baseUrl}):[]};
dP=function(a,b,c,d,e,f,k){OM.call(this,b,d.g,e,f,k);this.I=c;this.B=d;this.i=d.g;this.F=a;this.o=this.D=null;a=this.B.ub();a.visible=!1;tO(this.F,a,this);g.O(g.X(this.ba).experiments,"enable_client_monitoring_for_bulleit_adplacement_schedule")&&Os("ADS_CLIENT_EVENT_TYPE_ADPLACEMENT_SCHEDULED")};
fP=function(a,b,c,d,e,f,k,l){pO.call(this,a,b,c,d,e,f,k,l);this.o=d.g;this.B=-1;this.D=this.l=null;this.F=eP(this.nq())};
gP=function(a){var b=a.o.l;b&&(a.l=a.Xf.create(b,TL(RL(a.g))),a.l.subscribe("onAdUxUpdate",a.gy,a),PM(a.l))};
iP=function(a,b){a.B++;var c=hP(a);c.length&&c[0].length?a.Vb(c[0][void 0===b?0:b]):a.uf()};
eP=function(a){return a?Tka.some(function(b){return a instanceof b}):!1};
hP=function(a){return 0>=a.B?a.o.g:a.o.g.slice(a.B)};
Uka=function(a){this.g=new xO(function(b){b=new pO(a.kc,a.ba,a.Hv(),b,a.re,a.Nh,a.Xf,a.ac);uO(b);return b},function(b){return new zO(a.kc,a.ba,a.BC,b,a.re)},function(b){var c=a.Bo(b.g);
b=new dP(a.kc,a.ba,a.RC,b,a.bN,c,a.Tc);g.B(b,c);return b},function(b){b=new fP(a.kc,a.ba,a.Hv(),b,a.re,a.Nh,a.Xf,a.ac);
uO(b);return b})};
jP=function(a,b,c,d){d=Vka(c,d);var e={C:"div"};d&&(e={C:"div",G:"image-companion",J:[{C:"img",L:{src:d.url,border:"0",style:"cursor:pointer;"}}]});AO.call(this,e,a,b);this.l=c;this.xc=new $O(a,b);g.B(this,this.xc);this.xc.g(this.element,0);this.l.adInfoRenderer&&this.l.adInfoRenderer.adHoverTextButtonRenderer?this.xc.init(Y("watch-ad-info-hover-button"),this.l.adInfoRenderer.adHoverTextButtonRenderer,{}):g.L(Error("ImageCompanionAdRenderer has no ad info renderer."));if(a=this.i["image-companion"])void 0!==
d.width&&void 0!==d.height&&g.Rh(a,d.width,d.height),this.da("click",this.A,this),this.vf(c.impressionCommands)};
Vka=function(a,b){if(!a.image||!a.image.thumbnail)return null;var c=a.image.thumbnail;return null==c.thumbnails?null:g.Xa(c.thumbnails||[],function(d){return d.width==b.width&&d.height==b.height})};
kP=function(a){fO.call(this,a);this.i=(0,g.ge)((a.image&&a.image.thumbnail?a.image.thumbnail.thumbnails:null)||[],function(b){return new g.vd(b.width,b.height)})};
lP=function(a,b){FL.call(this);a.adStart&&a.adStart.adMessageRenderer&&GL(this,[new cN(a.adStart.adMessageRenderer)]);if(a.linearAds)for(var c=[],d=g.q(a.linearAds),e=d.next();!e.done;e=d.next())e=e.value,e.instreamVideoAdRenderer?(e=b(e.instreamVideoAdRenderer),GL(this,[e]),c.push(e.i)):e.adActionInterstitialRenderer?(e=new ZM(e.adActionInterstitialRenderer),GL(this,[e])):e.adIntroRenderer&&(e=new bN(e.adIntroRenderer),GL(this,[e]),this.i=1),this.g.filter(function(f){return f.some(function(k){return k instanceof
CL})}).forEach(function(f,k){for(var l=g.q(f),m=l.next();!m.done;m=l.next())if(m=m.value,m instanceof CL){var n=new BL(k,c);
m.o=n}})};
mP=function(a,b){FL.call(this);if(a.renderers){for(var c=[],d=g.q(a.renderers),e=d.next();!e.done;e=d.next())e=e.value,e.instreamVideoAdRenderer&&(e=b(e.instreamVideoAdRenderer),GL(this,[e]),c.push(e.i));this.g.forEach(function(f,k){for(var l=g.q(f),m=l.next();!m.done;m=l.next())if(m=m.value,m instanceof CL){var n=new BL(k,c);m.o=n}})}};
nP=function(a,b,c){FL.call(this);this.u=g.O(c,"use_full_player_survey_interstitial_on_web");c=a.persistingOverlay;var d=a.adVideoStart;c&&c.persistingAdOverlayRenderer?c=new gN(c.persistingAdOverlayRenderer):d&&d.surveyTextInterstitialRenderer&&!this.u?(this.o=!1,c=new jN(d.surveyTextInterstitialRenderer)):c=null;this.l=c;c=a.adVideoStart;null==c?c=null:c.adActionInterstitialRenderer?(this.i=1,c=[new ZM(c.adActionInterstitialRenderer)]):c=c.adTextInterstitialRenderer?[new kN(c.adTextInterstitialRenderer)]:
c.adMessageRenderer?[new cN(c.adMessageRenderer)]:c.surveyTextInterstitialRenderer&&this.u?[new jN(c.surveyTextInterstitialRenderer)]:null;GL(this,c);a:{if(c=a.linearAd){if(c.instreamVideoAdRenderer){b=[b(c.instreamVideoAdRenderer)];break a}if(c.instreamSurveyAdRenderer){b=[new LL(c.instreamSurveyAdRenderer,!(this.l instanceof jN))];break a}}b=null}GL(this,b);(a=a.adVideoEnd)?a.adActionInterstitialRenderer?(this.i=1,a=[new ZM(a.adActionInterstitialRenderer)]):a=null:a=null;GL(this,a)};
oP=function(a,b){this.i=a;this.g=b};
Wka=function(a){var b=new WL(a.Np,a.experiments);return{oq:function(){return b}}};
pP=function(a){this.g=a};
qP=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind,k=e?a.g.create(e,f):null;return new ML(b,c,k,d)}catch(l){g.L(l)}};
Xka=function(a){var b=new pP(a.CC);return{Zv:function(){return b}}};
rP=function(a){g.A.call(this);this.g=a;this.l=new jka(a.ba);this.i=new qM(a.ba);g.B(this,this.i)};
Yka=function(a){return function(){return new jO(a.g.ba)}};
sP=function(a){return function(b,c){return new xM(b,a.l,c,a.g.ba,a.i,a.g.Kk,a.g.ac)}};
tP=function(a){g.A.call(this);var b=this;this.i=a;this.g=null;g.pf(this,function(){return b.g=null});
var c=Ts(a);if(c){var d=function(){b.g&&b.g(!!Rs())};
this.i.addEventListener(c,d);g.pf(this,function(){b.i.removeEventListener(c,d)})}};
uP=function(a){g.A.call(this);this.g=a};
Zka=function(a){var b=window.document;return g.Ez(g.X(a))?new tP(b):new uP(a)};
vP=function(a){g.A.call(this);this.g=new zka(a.ba,a.Np,a.ac)};
$ka=function(a){this.o=a;a=g.X(a).experiments;this.l=g.O(a,"enable_html5_midroll_tsla_update")||g.O(a,"enable_html5_midroll_tsla_update_for_living_room");this.i=!1;this.g=-1};
wP=function(a){a.g=(0,g.D)()/1E3;if(!a.i||a.l)g.xr(g.X(a.o).B+"mac_204?action_fcts=1"),a.i=!0};
ala=function(a){return 0<a.g?Math.ceil((0,g.D)()/1E3-a.g):0};
yP=function(a){xP=a&&a.data};
AP=function(a){zP=a&&a.data};
BP=function(){xP=null};
CP=function(a,b){g.N.call(this);var c=this;this.g=a;this.Z=null;this.ya=b;var d=this.g.getVideoData().getPlayerResponse()||{};this.l=d.playerConfig&&d.playerConfig.daiConfig&&d.playerConfig.daiConfig.enableDai||!1;this.wa=fka({GD:3E4,yE:tM(a),ba:a}).tD();this.o=null;this.R=saa(function(){c.g.fa()||g.UK(c.g,"ad")});
this.i=null;this.u=new Map;d=g.X(this.g).experiments;var e=Wka({Np:a.getVideoData(),experiments:d}),f=new rP({Kk:e.oq(),ba:a,ac:this.l});g.B(this,f);this.B=new Set;this.P=-1;this.M=[];this.D=null;this.F=new Map;this.T=new $ka(a);this.H=new Set;this.ca=new g.Us(this);g.B(this,this.ca);this.A=new g.Us(this);g.B(this,this.A);this.Y=this.na=this.X=!1;this.aa=null;this.I=g.Ez(g.X(a));var k=new eM({experiments:d,Kk:e.oq(),DC:this,EC:this,ZH:this});g.B(this,k);this.Ea=k.i;k=new vP({Np:this.g.getVideoData(1),
hR:this,rb:g.X(this.g),ac:this.l,ba:this.g});g.B(this,k);this.xa=k.g;k=new aO;k.subscribe("Identified a new cuerange",this.mz,this);k.subscribe("Shortened the latest cuerange",this.yJ,this);g.B(this,k);var l=new eO({kM:k,UC:this});g.B(this,l);this.oa=g.O(d,"html5_dai_assume_unordered_cuepoints")?l.i:k;this.ea=l.g;var m=fc(TL(QL(this.g)));e=new yka({ka:this,QC:f.i,Tc:pM(),Kk:e.oq(),ba:this.g,rM:m,Bo:sP(f),ac:this.l});this.Ca=(new Uka({BC:this.ya,Xf:e.g,kc:this,RC:this.wa,Tc:pM(),Hv:Yka(f),re:this.xa,
Nh:this.ea,ba:this.g,bN:m,Bo:function(n){return sP(f)(n,m)},
ac:this.l})).g;this.ga=Xka({CC:new oP(new tja(a),d)}).Zv();this.ma=Zka(this.g);g.B(this,this.ma);this.Ia=g.Kz(g.X(this.g))?g.O(g.X(a).experiments,"align_ad_to_video_player_lifecycle_for_bulleit_living_room"):g.O(g.X(a).experiments,"align_ad_to_video_player_lifecycle_for_bulleit")};
bla=function(a){return a&&a.adPlacements?a.adPlacements.map(function(b){return b.adPlacementRenderer}).filter(function(b){return b&&null!=b.renderer}):[]};
dla=function(a){if(!a.some(Ika))return null;var b=a.findIndex(Kka),c=null;-1!=b&&(c=a[b],a.splice(b,1));return c};
ela=function(a,b){return b.filter(function(c){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)?(!a.l&&g.Ez(g.X(a.g))&&a.g.getVideoData(1).Te()||(a.D=c),!1):!0})};
DP=function(a,b){a.F=new Map;return b.filter(function(c){return"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)&&c.elementId?(a.F.set(c.elementId,c),!1):!0})};
fla=function(a,b){return b.every(function(c){c=a.u.get(c);return null==c?(g.L(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof zO?!1:c instanceof pO?!c.Ze():!0})};
FP=function(a){var b=gla(a);if(0<b.length){fla(a,b)&&a.R();var c=g.P(g.X(a.g).experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.I&&g.uz(g.X(a.g))?(c=new g.J(function(){EP(a,b)},c),g.B(a,c),c.start()):g.dg(function(){EP(a,b)})}else a.R()};
hla=function(a,b){if(!b)return{};var c=!!a.i&&a.i||null;c?(c=c.i,c=c.u.ak()?KM(c.g,b):{}):c={};return c};
gla=function(a){for(var b=[],c=g.q(a.B),d=c.next();!d.done;d=c.next())d=d.value,pL(d)&&b.push(d);c=g.q(b);for(d=c.next();!d.done;d=c.next())a.B["delete"](d.value);return b};
jla=function(a,b,c){c=void 0===c?null:c;b=a.ga.create(b,ila(a),a.M.length,c);a.M=a.M.concat(b);return b};
EP=function(a,b){if(!a.fa())for(var c=g.q(b),d=c.next();!d.done;d=c.next())a.En(d.value)};
GP=function(a,b,c){c=void 0===c?null:c;a.aa=dla(b);kla(a,b);b=jla(a,b,c);return 0==b.length?null:b.map(function(d){return a.Ca.create(d)})};
KP=function(a,b){b.gi()?(g.qf(a.o),a.o=b):((b.gk()||b.u instanceof LL)&&a.o&&a.o.ub().start<b.ub().start&&HP(a),b.gx()&&(a.i&&IP(a,a.l),a.i=b,b.Ze()&&JP(a)))};
HP=function(a){var b=a.wa;if(b.g)b.g&&Fja(b.g);else{var c=b.i.getVideoData(1);b.i.la("updateKevlarOrC3Companion",{contentVideoId:c&&c.videoId})}g.qf(a.o);a.o=null};
JP=function(a){a.X||(a.A.K(a.g,"presentingplayerstatechange",a.zG),a.A.K(a.g,"internalAbandon",a.dI),a.A.K(a.g,"progresssync",a.WL),a.A.K(a.g,"onVolumeChange",a.BG),a.A.K(a.ma,"fullscreentoggled",a.yG),a.X=!0);g.po(a.g.getRootNode(),["ad-showing","ad-interrupting"]);a.l||g.LP(a.g.app,2)};
IP=function(a,b,c){var d=!!a.i&&a.i||null,e=d&&d.Ze()&&(rM(a.g)||a.l);d=b&&d&&d.reset()||null;a.i&&MP(a,a.i);a.i=null;a.P=-1;e&&NP(a,c);a.Y||a.R();b&&d&&(d.ub().g=!1,uO(d,!0))};
NP=function(a,b){g.Ws(a.A);a.X=!1;g.ro(a.g.getRootNode(),["ad-showing","ad-interrupting"]);a.l||(a.Ia?(a.Y||a.R(),OP(a),a.g.cueVideoByPlayerVars({},2)):(a.g.cueVideoByPlayerVars({},2),OP(a)));b&&b(a.g)};
OP=function(a){if(a.na)!a.I&&g.uz(g.X(a.g))&&(g.O(g.X(a.g).experiments,"release_player_on_abandon_for_bulleit_living_room")||g.O(g.X(a.g).experiments,"release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&g.eL(a.g,2);else if(g.eL(a.g,2),!a.I){var b=g.IK(a.g);g.T(b,4)&&!g.T(b,2)&&a.g.playVideo()}};
tO=function(a,b,c){if(b instanceof oL){if(a.I&&qL(b)&&g.T(g.IK(a.g),64)&&!a.l){var d=1E3*a.g.getCurrentTime()||0;d!=b.start&&b.contains(d)&&(b.g=!0)}a.u.has(b)?g.L(Error(b.toString()+" has already been seen")):(a.B.add(b),a.u.set(b,c),pL(b)||g.QK(a.g,[b],1))}else g.L(Error("Should use AdCueRange instead of CueRange"))};
ila=function(a){var b=1E3*a.g.getDuration(1);return new nL(b,1E3*a.g.getCurrentTime()||0,a.g.getVideoData(1).Te(),g.O(g.X(a.g).experiments,"enforce_cuerange_priority_on_web"))};
MP=function(a,b){for(var c=a.u,d=g.q(c),e=d.next();!e.done;e=d.next()){e=g.q(e.value);var f=e.next().value;if(e.next().value==b){c["delete"](f);break}}g.qf(b)};
QP=function(a,b){var c=a.g.app;1==b&&(UB("vr",void 0,""),c.wa||(c.wa=XA(c.cz,c)),sK(c.A),pE(c.ea,c.A.getVideoData(),PP(c)));var d=c.g;(g.Kz(d)&&d.vb||g.vz(d))&&(wM(c)||c.i.la("onAdStateChange",b));switch(b){case 1:a.P=1;break;case 0:a.P=0}};
RP=function(a){return rM(a.g)&&a.i.gk()};
kla=function(a,b){if(g.O(g.X(a.g).experiments,"enable_client_monitoring_for_bulleit_adplacement_schedule"))for(var c=0;c<b.length;c++)Os("ADS_CLIENT_EVENT_TYPE_ADPLACEMENTRENDERER_RECEIVED")};
SP=function(a){return a&&a.thumbnails&&0!=(a.thumbnails||null).length&&a.thumbnails[0].url?g.ad(a.thumbnails[0].url):""};
TP=function(a,b,c,d){d=void 0===d?!1:d;Z.call(this,a,b,{C:"img",G:"ytp-ad-image"},"ad-image",void 0===c?null:c);this.l=d;this.hide()};
g.VP=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-cast-desktop-on"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,L:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
WP=function(){return{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",L:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.XP=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-chevron-back"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},J:[{C:"path",L:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.YP=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-chevron-forward"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},J:[{C:"path",L:{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"}}]}};
ZP=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-clip-clear"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},J:[{C:"path",L:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{C:"path",L:{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"}}]}};
$P=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-clip-end"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},J:[{C:"path",Ga:!0,L:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
aQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-clip-start"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},J:[{C:"path",Ga:!0,L:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.bQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-close"]}:{C:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{C:"path",L:{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"}}]}};
cQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-dislike"]}:{C:"svg",L:{viewBox:"0 0 24 24"},J:[{C:"path",L:{d:"M0 0h24v24H0z",fill:"none"}},{C:"path",L:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
dQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-error-exclamation"]}:{C:"svg",L:{fill:"#fff",viewBox:"0 0 48 48"},J:[{C:"path",L:{d:"M0 0h48v48H0V0z",fill:"none"}},{C:"path",L:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.3"}}]}};
eQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-forward-five-seconds"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}};
fQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-like"]}:{C:"svg",L:{viewBox:"0 0 24 24"},J:[{C:"path",L:{d:"M0 0h24v24H0z",fill:"none"}},{C:"path",L:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
gQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-link"]}:{C:"svg",L:{height:"100%",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",L:{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"}}]}};
hQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-loop-range"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},J:[{C:"path",Ga:!0,L:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
iQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-next"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.jQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-notifications-active"]}:{C:"svg",L:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},J:[{C:"path",L:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
kQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-pause"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
lQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-pip"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,L:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
mQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-play"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{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"}}]}};
nQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-prev"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.oQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-replay"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
pQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-rewind-five-seconds"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}};
g.qQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-settings"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,L:{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"}}]}};
rQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-stop"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
sQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-subtitles"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,L:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]}};
tQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-volume-high"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,L:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",fill:"#fff"}}]}};
uQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-volume-low"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,L:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}};
vQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-volume-muted"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
wQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-watermark"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"M 16.68,.99 C 13.55,1.03 7.02,1.16 4.99,1.68 c -1.49,.4 -2.59,1.6 -2.99,3 -0.69,2.7 -0.68,8.31 -0.68,8.31 0,0 -0.01,5.61 .68,8.31 .39,1.5 1.59,2.6 2.99,3 2.69,.7 13.40,.68 13.40,.68 0,0 10.70,.01 13.40,-0.68 1.5,-0.4 2.59,-1.6 2.99,-3 .69,-2.7 .68,-8.31 .68,-8.31 0,0 .11,-5.61 -0.68,-8.31 -0.4,-1.5 -1.59,-2.6 -2.99,-3 C 29.11,.98 18.40,.99 18.40,.99 c 0,0 -0.67,-0.01 -1.71,0 z m 72.21,.90 0,21.28 2.78,0 .31,-1.37 .09,0 c .3,.5 .71,.88 1.21,1.18 .5,.3 1.08,.40 1.68,.40 1.1,0 1.99,-0.49 2.49,-1.59 .5,-1.1 .81,-2.70 .81,-4.90 l 0,-2.40 c 0,-1.6 -0.11,-2.90 -0.31,-3.90 -0.2,-0.89 -0.5,-1.59 -1,-2.09 -0.5,-0.4 -1.10,-0.59 -1.90,-0.59 -0.59,0 -1.18,.19 -1.68,.49 -0.49,.3 -1.01,.80 -1.21,1.40 l 0,-7.90 -3.28,0 z m -49.99,.78 3.90,13.90 .18,6.71 3.31,0 0,-6.71 3.87,-13.90 -3.37,0 -1.40,6.31 c -0.4,1.89 -0.71,3.19 -0.81,3.99 l -0.09,0 c -0.2,-1.1 -0.51,-2.4 -0.81,-3.99 l -1.37,-6.31 -3.40,0 z m 29.59,0 0,2.71 3.40,0 0,17.90 3.28,0 0,-17.90 3.40,0 c 0,0 .00,-2.71 -0.09,-2.71 l -9.99,0 z m -53.49,5.12 8.90,5.18 -8.90,5.09 0,-10.28 z m 89.40,.09 c -1.7,0 -2.89,.59 -3.59,1.59 -0.69,.99 -0.99,2.60 -0.99,4.90 l 0,2.59 c 0,2.2 .30,3.90 .99,4.90 .7,1.1 1.8,1.59 3.5,1.59 1.4,0 2.38,-0.3 3.18,-1 .7,-0.7 1.09,-1.69 1.09,-3.09 l 0,-0.5 -2.90,-0.21 c 0,1 -0.08,1.6 -0.28,2 -0.1,.4 -0.5,.62 -1,.62 -0.3,0 -0.61,-0.11 -0.81,-0.31 -0.2,-0.3 -0.30,-0.59 -0.40,-1.09 -0.1,-0.5 -0.09,-1.21 -0.09,-2.21 l 0,-0.78 5.71,-0.09 0,-2.62 c 0,-1.6 -0.10,-2.78 -0.40,-3.68 -0.2,-0.89 -0.71,-1.59 -1.31,-1.99 -0.7,-0.4 -1.48,-0.59 -2.68,-0.59 z m -50.49,.09 c -1.09,0 -2.01,.18 -2.71,.68 -0.7,.4 -1.2,1.12 -1.49,2.12 -0.3,1 -0.5,2.27 -0.5,3.87 l 0,2.21 c 0,1.5 .10,2.78 .40,3.78 .2,.9 .70,1.62 1.40,2.12 .69,.5 1.71,.68 2.81,.78 1.19,0 2.08,-0.28 2.78,-0.68 .69,-0.4 1.09,-1.09 1.49,-2.09 .39,-1 .49,-2.30 .49,-3.90 l 0,-2.21 c 0,-1.6 -0.2,-2.87 -0.49,-3.87 -0.3,-0.89 -0.8,-1.62 -1.49,-2.12 -0.7,-0.5 -1.58,-0.68 -2.68,-0.68 z m 12.18,.09 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.18,-0.70 -0.18,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .18,2.39 .68,3.09 .49,.7 1.21,1 2.21,1 1.4,0 2.48,-0.69 3.18,-2.09 l .09,0 .31,1.78 2.59,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 17.31,0 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.21,-0.70 -0.21,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .21,2.39 .71,3.09 .5,.7 1.18,1 2.18,1 1.39,0 2.51,-0.69 3.21,-2.09 l .09,0 .28,1.78 2.62,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 20.90,2.09 c .4,0 .58,.11 .78,.31 .2,.3 .30,.59 .40,1.09 .1,.5 .09,1.21 .09,2.21 l 0,1.09 -2.5,0 0,-1.09 c 0,-1 -0.00,-1.71 .09,-2.21 0,-0.4 .11,-0.8 .31,-1 .2,-0.3 .51,-0.40 .81,-0.40 z m -50.49,.12 c .5,0 .8,.18 1,.68 .19,.5 .28,1.30 .28,2.40 l 0,4.68 c 0,1.1 -0.08,1.90 -0.28,2.40 -0.2,.5 -0.5,.68 -1,.68 -0.5,0 -0.79,-0.18 -0.99,-0.68 -0.2,-0.5 -0.31,-1.30 -0.31,-2.40 l 0,-4.68 c 0,-1.1 .11,-1.90 .31,-2.40 .2,-0.5 .49,-0.68 .99,-0.68 z m 39.68,.09 c .3,0 .61,.10 .81,.40 .2,.3 .27,.67 .37,1.37 .1,.6 .12,1.51 .12,2.71 l .09,1.90 c 0,1.1 .00,1.99 -0.09,2.59 -0.1,.6 -0.19,1.08 -0.49,1.28 -0.2,.3 -0.50,.40 -0.90,.40 -0.3,0 -0.51,-0.08 -0.81,-0.18 -0.2,-0.1 -0.39,-0.29 -0.59,-0.59 l 0,-8.5 c .1,-0.4 .29,-0.7 .59,-1 .3,-0.3 .60,-0.40 .90,-0.40 z"}}]}};
xQ=function(){return g.UP?{C:"div",W:["ytp-icon","ytp-icon-youtube-logo-redirect"]}:{C:"svg",L:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{C:"path",L:{d:"M0 0h24v24H0V0z",fill:"none"}},{C:"path",L:{d:"M21.58 7.19c-.23-.86-.91-1.54-1.77-1.77C18.25 5 12 5 12 5s-6.25 0-7.81.42c-.86.23-1.54.91-1.77 1.77C2 8.75 2 12 2 12s0 3.25.42 4.81c.23.86.91 1.54 1.77 1.77C5.75 19 12 19 12 19s6.25 0 7.81-.42c.86-.23 1.54-.91 1.77-1.77C22 15.25 22 12 22 12s0-3.25-.42-4.81zM10 15V9l5.2 3-5.2 3z"}}]}};
yQ=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{C:"svg",L:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},J:[{C:"path",L:{d:"M0 0h48v48H0z",fill:"none"}},{C:"path",L:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]};case "CHECK_BOX":return g.UP?{C:"div",W:["ytp-icon","ytp-icon-check-box"]}:{C:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},
J:[{C:"path",L:{d:"M0 0h24v24H0z",fill:"none"}},{C:"path",L:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return g.UP?{C:"div",W:["ytp-icon","ytp-icon-check-box-outline-blank"]}:{C:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{C:"path",L:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},
{C:"path",L:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.bQ();case "INFO_OUTLINE":return{C:"svg",L:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},J:[{C:"path",L:{d:"M0 0h48v48H0z",fill:"none"}},{C:"path",L:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]};case "REMOVE_CIRCLE":return{C:"svg",L:{fill:"#fff",height:"100%",version:"1.1",
viewBox:"0 0 24 24",width:"100%"},J:[{C:"path",L:{d:"M0 0h24v24H0z",fill:"none"}},{C:"path",L:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return iQ();case "LIKE":return fQ();case "DISLIKE":return cQ();default:return g.L(Error("Unexpected icon "+a),"WARNING"),null}};
zQ=function(a,b,c,d,e){c=void 0===c?[]:c;e=void 0===e?!1:e;Z.call(this,a,b,{C:"button",W:["ytp-ad-button"].concat(c)},void 0===d?"button":d);this.l=this.o=this.A=null;this.B=e;this.hide()};
lla=function(a){var b=null;null!=a.l&&(b=[a.l.serviceEndpoint,a.l.navigationEndpoint].filter(function(c){return null!=c}),a.l.command&&g.O(g.X(a.api).experiments,"use_button_command_field_for_web_survey_interstitial"));
return b||[]};
AQ=function(a,b,c,d,e){Z.call(this,a,b,c,d);this.l=e;g.B(this,this.l);this.ea=this.A=-1};
BQ=function(a){a.l&&-1===a.A&&(a.A=a.l.subscribe("s",a.Dg,a),a.ea=a.l.subscribe("r",a.vh,a),a.Dg())};
CQ=function(a){null!=a.l&&-1!==a.A&&(a.l.Mf(a.A),a.l.Mf(a.ea),a.ea=-1,a.A=-1)};
DQ=function(a,b,c){AQ.call(this,a,b,{C:"div",G:"ytp-ad-timed-pie-countdown-container",J:[{C:"svg",G:"ytp-ad-timed-pie-countdown",L:{viewBox:"0 0 20 20"},J:[{C:"circle",G:"ytp-ad-timed-pie-countdown-inner",L:{r:"5",cx:"10",cy:"10"}},{C:"circle",G:"ytp-ad-timed-pie-countdown-outer",L:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c);this.u=this.i["ytp-ad-timed-pie-countdown-inner"];this.o=Math.ceil(10*3.14);this.hide()};
EQ=function(a,b,c,d){Z.call(this,a,b,{C:"div",G:"ytp-ad-text"},void 0===d?"ad-text":d,void 0===c?null:c);this.l=null;this.hide()};
FQ=function(a,b){b&&g.ae(a.element,GO(a.l,b))};
g.GQ=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?null:f;g.A.call(this);this.l=a;c||a.hide();this.A=b;this.B=null==d?b:d;this.o=f;this.u=e;this.g=null;this.i=new g.J(this.Go,0,this);g.B(this,this.i)};
HQ=function(a,b){var c=a.l.element;b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")};
IQ=function(a,b,c,d){AQ.call(this,a,b,{C:"div",G:"ytp-ad-preview-slot"},"ad-preview",c);var e=this;this.Z=-1;this.o=new g.tD({C:"span",G:"ytp-ad-preview-container"});g.B(this,this.o);this.u=new EQ(this.api,this.ka,"ytp-ad-preview-text");g.B(this,this.u);this.u.g(this.o.element);this.T=new g.tD({C:"span",G:"ytp-ad-preview-image"});g.B(this,this.T);this.B=new TP(this.api,this.ka);g.B(this,this.B);this.B.g(this.T.element);this.T.g(this.o.element);this.o.g(this.element);this.H=new g.GQ(this.o,400,!1,
100,function(){return e.hide()});
g.B(this,this.H);this.I=0;this.X=!1;this.ma=d;this.hide()};
JQ=function(a,b,c,d,e){e=void 0===e?0:e;g.A.call(this);this.l=a;this.i=!1;this.D=d;this.u=!1;this.g=null;0<b&&(this.g=new g.J(this.Pu,b,this),g.B(this,this.g));this.o=new g.J(this.Pu,c,this);g.B(this,this.o);this.B=zo(this.l,e,1,d);g.B(this,this.B);this.A=zo(this.l,0,d,1);g.B(this,this.A);this.ca=new g.Us;g.B(this,this.ca)};
mla=function(){if(!KQ){KQ=new Hp;var a=Uq("client_streamz_web_flush_count",-1);-1!==a&&(KQ.o=a);a=Uq("client_streamz_web_flush_interval_seconds",-1);-1!==a&&(KQ.flushInterval=1E3*a)}this.g=KQ;this.g.A("/client_streamz/youtube/video_ads/visibility_error",{Tv:3,Sv:"element_name"},{Tv:3,Sv:"error_reason"})};
ola=function(){this.g=nla};
pla=function(){this.g=new ola};
rla=function(a,b,c,d){d=void 0===d?0:d;var e=!1;Rda({measure:function(){if(!e){var f=[];b.hidden&&f.push("hidden");"none"===Eh(b,"display")&&f.push("display:none");var k=Eh(b,"visibility");"hidden"!==k&&"collapse"!==k||f.push("visibility:"+k);k=b.getBoundingClientRect();k.width||k.height||f.push("boundingClientRect:0");k=0;for(var l=b;l;){if("0"===Eh(l,"opacity")){f.push("opacity:0@level"+k);break}if(g.oo(l,"video-ads")||g.oo(l,"ytp-ad-module"))break;k+=1;l=l.parentElement}if(0<f.length&&(k=d,f=f.join(","),
a.g.g().g.D("/client_streamz/youtube/video_ads/visibility_error",c,f),0<k&&Math.random()<k)){k=["id","class","style","hidden","aria-hidden"];l=[];for(var m=b;m;){for(var n={tagName:m.tagName},p={},r=g.q(k),v=r.next();!v.done;v=r.next())v=v.value,m.hasAttribute(v)&&(p[v]=m.getAttribute(v));g.Xb(p)||(n.attributes=p);l.push(n);m=m.parentElement}k=qla(l);g.L(Error("vis_check_error_reason: "+f+", dump: "+k))}}}})();
return function(){return e=!0}};
qla=function(a){return JSON.stringify(a.map(function(b){var c=[b.tagName];b.attributes&&c.push(b.attributes);return c}))};
LQ=function(a,b,c){c=void 0===c?0:c;return rla(sla(),a,b,c)};
MQ=function(a,b,c){AQ.call(this,a,b,{C:"div",G:"ytp-ad-skip-button-slot"},"skip-button",c);var d=this;this.H=null;this.ya=!1;this.u=new g.tD({C:"span",W:["ytp-ad-skip-button-container"]});g.B(this,this.u);this.u.g(this.element);this.o=this.B=null;this.T=new g.GQ(this.u,500,!1,100,function(){return d.hide()});
g.B(this,this.T);this.ma=null;this.Z=!1;this.X=new JQ(this.u.element,15E3,5E3,.5,.5);g.B(this,this.X);this.na=new g.J(function(){var e=g.X(d.api).experiments;g.O(e,"enable_visibility_check_for_skip_button_in_bulleit")&&(d.I=LQ(d.o.element,"skip-button-ad-text",g.P(e,"visibility_error_html_dump_sample_rate")))},3E3);
g.B(this,this.na);this.I=null;this.hide()};
NQ=function(a){a.na.stop();a.I&&(a.I(),a.I=null)};
tla=function(a){a=a.H&&a.H.adRendererCommands;return(a&&a.clickCommand&&a.clickCommand.commandExecutorCommand&&a.clickCommand.commandExecutorCommand.commands||[]).some(function(b){return b.adLifecycleCommand||b.adPlayerControlsCommand})};
OQ=function(a,b,c){c=void 0===c?!0:c;g.N.call(this);this.u=b;this.A=new g.Us(this);g.B(this,this.A);this.i=a;this.Aa=new g.Fg(100);g.B(this,this.Aa);this.A.K(this.Aa,"tick",this.EH);this.o={seekableStart:0,seekableEnd:a/1E3,current:0};this.l=!1;this.g=0;c&&this.start()};
PQ=function(a,b){Z.call(this,a,b,{C:"div",G:"ytp-ad-action-interstitial",L:{tabindex:"0"},J:[{C:"div",G:"ytp-ad-action-interstitial-background-container"},{C:"div",G:"ytp-ad-action-interstitial-slot",J:[{C:"div",G:"ytp-ad-action-interstitial-card",J:[{C:"div",G:"ytp-ad-action-interstitial-image-container"},{C:"div",G:"ytp-ad-action-interstitial-headline-container"},{C:"div",G:"ytp-ad-action-interstitial-description-container"},{C:"div",G:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial");this.ma=this.i["ytp-ad-action-interstitial-image-container"];this.B=new TP(this.api,this.ka,"ytp-ad-action-interstitial-image");g.B(this,this.B);this.B.g(this.ma);this.ea=this.i["ytp-ad-action-interstitial-headline-container"];this.T=new EQ(this.api,this.ka,"ytp-ad-action-interstitial-headline");g.B(this,this.T);this.T.g(this.ea);this.Z=this.i["ytp-ad-action-interstitial-description-container"];this.I=new EQ(this.api,this.ka,"ytp-ad-action-interstitial-description");g.B(this,
this.I);this.I.g(this.Z);this.ya=this.i["ytp-ad-action-interstitial-background-container"];this.H=new TP(this.api,this.ka,"ytp-ad-action-interstitial-background",!0);g.B(this,this.H);this.H.g(this.ya);this.na=this.i["ytp-ad-action-interstitial-action-button-container"];this.o=this.A=this.u=this.l=null;this.ca=new g.Us;g.B(this,this.ca);this.X=null;this.hide()};
QQ=function(a){var b=g.Fd("html5-video-player");b&&g.I(b,"ytp-ad-display-override",a)};
RQ=function(a,b){Z.call(this,a,b,{C:"div",G:"ytp-ad-text-interstitial"},"ad-text-interstitial");this.o=this.i["ytp-ad-text-interstitial"];this.l=new EQ(this.api,this.ka,"ytp-ad-text-interstitial-message");g.B(this,this.l);this.l.g(this.o);this.hide()};
SQ=function(a){var b=g.Fd("html5-video-player");b&&g.I(b,"ytp-ad-display-override",a)};
TQ=function(a,b,c,d,e,f){d=void 0===d?!1:d;e=void 0===e?[]:e;Z.call(this,a,b,{C:"span",W:["ytp-ad-hover-text-button"].concat(e)},void 0===f?"ad-hover-text-button":f);this.button=this.o=null;this.B=d;this.A=c;this.hide()};
UQ=function(a,b){Z.call(this,a,b,{C:"div",G:"ytp-ad-feedback-dialog-background",J:[{C:"div",G:"ytp-ad-feedback-dialog-container",J:[{C:"div",G:"ytp-ad-feedback-dialog-form",J:[{C:"div",G:"ytp-ad-feedback-dialog-title",J:[{C:"span",V:"{{title}}"}]},{C:"span",G:"ytp-ad-info-dialog-feedback-options-title",V:"{{reasonsTitle}}"},{C:"div",G:"ytp-ad-info-dialog-feedback-options"},{C:"div",G:"ytp-ad-feedback-dialog-confirm-container",J:[{C:"button",G:"ytp-ad-feedback-dialog-cancel-button",V:"{{cancelLabel}}"},
{C:"button",G:"ytp-ad-feedback-dialog-confirm-button",V:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog");this.u=[];this.l=null;this.A=this.i["ytp-ad-feedback-dialog-cancel-button"];this.B=this.i["ytp-ad-feedback-dialog-confirm-button"];this.H=this.i["ytp-ad-info-dialog-feedback-options"];this.I=this.i["ytp-ad-feedback-dialog-title"];this.o=null;this.hide()};
xla=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.l=new zQ(a.api,a.ka,["ytp-ad-feedback-dialog-close-button"],"button"),g.B(a,a.l),a.l.init(Y("button"),c,a.macros),a.l.da("click",a.Ly,a),a.l.g(a.element));b.title&&(c=g.yB(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.yB(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&ula(a,b.reasons);b.cancelLabel&&(c=g.yB(b.cancelLabel),a.updateValue("cancelLabel",c),g.ks(a.A,"click",function(){return a.Ly()}));
b.confirmLabel&&(c=g.yB(b.confirmLabel),a.updateValue("confirmLabel",c),g.ks(a.B,"click",function(){return vla(a)}));
b.undoRenderer&&wla(a,b.undoRenderer)};
ula=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=e.reason;null==d?g.$p(Error("AdFeedbackReason.reason was not set.")):(e=e.endpoint,null==e?g.$p(Error("AdFeedbackReason.endpoint was not set.")):(d=new VQ(d,e),g.B(a,d),a.H.appendChild(d.ha()),a.u.push(d)))}};
wla=function(a,b){var c=b&&b.buttonRenderer||null;c&&(c.serviceEndpoint?(a.o=new zQ(a.api,a.ka,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.B(a,a.o),a.o.init(Y("ad-feedback-undo-mute-button"),c,a.macros),a.o.da("click",a.PL,a),a.o.g(a.I)):g.$p(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint.")))};
vla=function(a){var b=a.u.filter(function(c){return c.isChecked()});
0!==b.length&&(a.ka.Ha(b[0].i,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button"),a.N("w"),a.hide())};
VQ=function(a,b){this.i=b;this.g=new g.tD({C:"label",G:"ytp-ad-feedback-dialog-reason-label",J:[{C:"input",G:"ytp-ad-feedback-dialog-reason-input",L:{type:"radio",name:"feedback-reason-group"}},{C:"span",G:"ytp-ad-feedback-dialog-reason-text",V:g.yB(a)}]});this.l=this.g.i["ytp-ad-feedback-dialog-reason-input"]};
WQ=function(a,b,c,d){c=void 0===c?[]:c;d=void 0===d?"confirm-dialog":d;Z.call(this,a,b,{C:"div",W:["ytp-ad-confirm-dialog-background"],J:[{C:"div",G:"ytp-ad-confirm-dialog-container",J:[{C:"div",W:["ytp-ad-confirm-dialog"].concat(c),J:[{C:"div",G:"ytp-ad-confirm-dialog-title",V:"{{title}}"},{C:"div",G:"ytp-ad-confirm-dialog-messages"},{C:"div",G:"ytp-ad-confirm-dialog-confirm-container",J:[{C:"button",G:"ytp-ad-confirm-dialog-cancel-button",V:"{{cancelLabel}}"},{C:"button",G:"ytp-ad-confirm-dialog-confirm-button",
V:"{{confirmLabel}}"}]}]}]},{C:"button",W:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],J:[{C:"span",G:"ytp-ad-button-icon",J:[g.bQ()]}]}]},d);this.o=this.i["ytp-ad-confirm-dialog-close-overlay-button"];this.u=this.i["ytp-ad-confirm-dialog-cancel-button"];this.B=this.i["ytp-ad-confirm-dialog-confirm-button"];this.A=this.i["ytp-ad-confirm-dialog-messages"];this.ca=new g.Us;g.B(this,this.ca);this.l=null;this.hide()};
yla=function(a,b){if(b.title){var c=g.yB(b.title);a.updateValue("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=RO(d.value),a.A.appendChild(d)}b.cancelLabel&&(c=g.yB(b.cancelLabel),a.updateValue("cancelLabel",c),a.ca.K(a.u,"click",function(e){return a.rs(e)}));
b.confirmLabel&&(c=g.yB(b.confirmLabel),a.updateValue("confirmLabel",c),a.ca.K(a.B,"click",function(e){return a.us(e)}));
a.ca.K(a.o,"click",function(e){return a.ts(e)})};
XQ=function(a,b){WQ.call(this,a,b,[],"ad-mute-confirm-dialog")};
YQ=function(a,b,c){Z.call(this,a,b,{C:"div",G:"ytp-ad-info-dialog-background",J:[{C:"div",G:"ytp-ad-info-dialog-container",J:[{C:"div",G:"ytp-ad-info-dialog-form",J:[{C:"div",G:"ytp-ad-info-dialog-title",V:"{{title}}"},{C:"ul",G:"ytp-ad-info-dialog-ad-reasons"},{C:"div",G:"ytp-ad-info-dialog-message"},{C:"div",G:"ytp-ad-info-dialog-mute-container"},{C:"div",G:"ytp-ad-info-dialog-confirm-container",J:[{C:"button",G:"ytp-ad-info-dialog-confirm-button",V:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog");
this.l=this.o=null;this.T=this.i["ytp-ad-info-dialog-confirm-button"];this.ea=this.i["ytp-ad-info-dialog-mute-container"];this.Z=this.i["ytp-ad-info-dialog-message"];this.H=this.i["ytp-ad-info-dialog-ad-reasons"];this.A=this.u=null;this.X=c;this.B=null;this.I=!1;this.hide()};
zla=function(a){(a.B&&a.B.impressionEndpoints||[]).forEach(function(b){return a.ka.Ha(b,a.macros)})};
Ala=function(a,b){var c=b.content&&b.content.adFeedbackRenderer||null;c&&(a.o=new UQ(a.api,a.ka),g.B(a,a.o),a.o.init(Y("ad-feedback-dialog"),c,a.macros),a.o.g(a.X),a.o.subscribe("w",function(){return a.N("y")}))};
Bla=function(a,b){var c=b.content&&b.content.confirmDialogRenderer||null;c&&(a.A=new XQ(a.api,a.ka),g.B(a,a.A),a.A.init(Y("ad-mute-confirm-dialog"),c,a.macros),a.A.g(a.X),a.A.subscribe("x",function(){return a.N("y")}))};
Cla=function(a){a.l&&a.l.da("click",a.My,a);g.ks(a.T,"click",function(){return a.My()})};
ZQ=function(a,b,c,d){TQ.call(this,a,b,void 0===d?!0:d,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.l=null;this.u=c;this.hide()};
Dla=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.L(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.l=new YQ(a.api,a.ka,a.u),g.B(a,a.l),a.l.init(Y("ad-info-dialog"),b,c),a.l.g(a.u),a.l.subscribe("z",function(){return a.N("B")}),a.l.subscribe("y",function(){return a.N("A")}))};
Ela=function(a,b,c){null==a.button?g.L(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null,null==b?a.o&&g.H(a.o.element,"ytp-ad-info-hover-text-long"):(Dla(a,b,c),a.o&&g.H(a.o.element,"ytp-ad-info-hover-text-short"),a.button.da("click",function(){a.l&&!a.l.Fa()&&(a.l.show(),a.api.onAdUxClicked("ad-info-icon-button"))})))};
$Q=function(a,b){Z.call(this,a,b,{C:"div",W:["ytp-ad-player-overlay-flyout-cta","ytp-ad-overlay-as-flyout-cta"],J:[{C:"div",W:["ytp-flyout-cta","ytp-flyout-cta-inactive"],J:[{C:"div",G:"ytp-flyout-cta-icon-container"},{C:"div",G:"ytp-flyout-cta-body",J:[{C:"div",G:"ytp-flyout-cta-text-container",J:[{C:"div",G:"ytp-flyout-cta-headline-container"},{C:"div",G:"ytp-flyout-cta-description-container"},{C:"div",G:"ytp-flyout-cta-url-container"}]},{C:"div",G:"ytp-flyout-cta-action-container",J:[{C:"div",
G:"ytp-flyout-cta-ad-controls-container",J:[{C:"div",G:"ytp-ad-overlay-ad-info-button-container"},{C:"div",G:"ytp-ad-overlay-close-container",J:[{L:{title:"Close"},C:"button",G:"ytp-ad-overlay-close-button",J:[yQ(Fla)]}]}]},{C:"div",G:"ytp-ad-overlay-as-flyout-cta-action-button-container"}]}]}]}]},"invideo-overlay-as-cta");var c=this;(this.T="tall"===tv(g.X(this.api).experiments,"render_enhanced_overlays_as_ctas_for_desktop_style"))&&g.H(this.element,"ytp-flyout-cta-body-tall");this.u=null;this.l=
g.Fd("ytp-flyout-cta",this.element);this.ea=new TP(this.api,this.ka,"ytp-flyout-cta-icon");g.B(this,this.ea);this.ea.g(this.i["ytp-flyout-cta-icon-container"]);this.Z=new EQ(this.api,this.ka,"ytp-flyout-cta-headline");g.B(this,this.Z);this.Z.g(this.i["ytp-flyout-cta-headline-container"]);this.B=null;this.T&&(this.B=new EQ(this.api,this.ka,"ytp-flyout-cta-description"),g.B(this,this.B),this.B.g(this.i["ytp-flyout-cta-description-container"]));this.na=new EQ(this.api,this.ka,"ytp-flyout-cta-description");
g.B(this,this.na);this.na.g(this.i["ytp-flyout-cta-url-container"]);this.o=new zQ(this.api,this.ka,["ytp-flyout-cta-action-button"]);g.B(this,this.o);this.o.g(this.i["ytp-ad-overlay-as-flyout-cta-action-button-container"]);this.Qa=g.Fd("ytp-flyout-cta-ad-controls-container",this.element);this.I=this.H=null;this.X=!1;this.A=null;this.Ra=g.Fd("ytp-ad-overlay-close-container",this.l);this.ya=new g.J(function(){g.qo(c.l,"ytp-flyout-cta-inactive")},1E3);
this.ma=0;this.Ea=[];this.hide()};
Hla=function(a,b,c){if(!b.image||!b.image.thumbnail)return g.L(Error("InvideoOverlayAdRenderer has no image.")),!1;var d=GO(b.title);if(!b.title||g.wb(d))return g.L(Error("InvideoOverlayAdRenderer has no title AdText.")),!1;if(a.T&&!b.description)return g.L(Error("Tall InvideoOverlayAdRenderer has no description AdText.")),!1;if(!b.displayUrl)return g.L(Error("InvideoOverlayAdRenderer has no displayUrl AdText.")),!1;d=b.navigationEndpoint||b.imageNavigationEndpoint;if(!d)return g.L(Error("InvideoOverlayAdRenderer has no valid navigation endpoint.")),
!1;a.Ea=g.gb([d].concat(a.u&&a.u.onClickCommands||[]));a.A=g.Fd("ytp-ad-overlay-ad-info-button-container",a.l);Gla(a,c);a.ea.init(Y("ad-image"),b.image,a.macros);a.Z.init(Y("ad-text"),b.title,a.macros);a.T&&a.B&&b.description&&a.B.init(Y("ad-text"),b.description,a.macros);a.na.init(Y("ad-text"),b.displayUrl,a.macros);a.o.init(Y("button"),{text:{simpleText:"VISIT SITE"}},a.macros);a.K(a.l,"mouseover",function(){a.ma++});
a.K(a.Ra,"click",a.MH);KO(a,a.l,b.trackingParams||null);LO(a,a.l,!0);return!0};
Gla=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.L(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else{var d=g.Fd("video-ads ytp-ad-module")||null;if(null==d)g.L(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.H=new g.tD({C:"div",G:"ytp-ad-overlay-ad-info-dialog-container"}),g.B(a,a.H),a.H.g(d),d=new ZQ(a.api,a.ka,a.H.element,!1),g.B(a,d),d.init(Y("ad-info-hover-text-button"),c,a.macros),a.A){d.g(a.A,
0);d.subscribe("B",a.KH,a);d.subscribe("A",a.NH,a);a.K(a.A,"click",a.LH);var e=g.Fd("ytp-ad-button",d.element);a.K(e,"click",a.JH);a.I=d;c.hoverText&&(c=g.yB(c.hoverText),Id(a.I.element,{title:c}))}else g.L(Error("Ad info button container within overlay ad was not present."))}}else g.$p(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
Ila=function(a){return a.u&&a.u.closeButton&&a.u.closeButton.buttonRenderer&&(a=a.u.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
aR=function(a,b){var c=a.api.getRootNode();g.I(c,"ytp-ad-overlay-open",b);g.I(c,"ytp-ad-overlay-closed",!b)};
bR=function(a,b){Z.call(this,a,b,{C:"div",G:"ytp-ad-overlay-slot",J:[{C:"div",G:"ytp-ad-overlay-container"}]},"invideo-overlay");this.H=[];this.A=this.ma=null;var c=this.i["ytp-ad-overlay-container"];this.Z=new JQ(c,45E3,6E3,.3,.4);g.B(this,this.Z);this.T=new g.J(this.clear,45E3,this);g.B(this,this.T);this.u=Jla(this);g.B(this,this.u);this.u.g(c);this.o=Kla(this);g.B(this,this.o);this.o.g(c);this.l=Lla(this);g.B(this,this.l);this.l.g(c);this.na=this.X=null;this.ea=!1;this.B=null;this.I=0;this.hide()};
Jla=function(a){var b=new g.tD({C:"div",G:"ytp-ad-text-overlay",J:[{C:"div",G:"ytp-ad-overlay-ad-info-button-container"},{C:"div",G:"ytp-ad-overlay-close-container",J:[{C:"button",G:"ytp-ad-overlay-close-button",J:[yQ(cR)]}]},{C:"div",G:"ytp-ad-overlay-title",V:"{{title}}"},{C:"div",G:"ytp-ad-overlay-desc",V:"{{description}}"},{C:"div",W:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],V:"{{displayUrl}}"}]});a.K(b.i["ytp-ad-overlay-title"],"click",function(c){return dR(a,b.element,c)});
a.K(b.i["ytp-ad-overlay-link"],"click",function(c){return dR(a,b.element,c)});
a.K(b.i["ytp-ad-overlay-close-container"],"click",a.ds);b.hide();return b};
Kla=function(a){var b=new g.tD({C:"div",W:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],J:[{C:"div",G:"ytp-ad-overlay-ad-info-button-container"},{C:"div",G:"ytp-ad-overlay-close-container",J:[{C:"button",G:"ytp-ad-overlay-close-button",J:[yQ(cR)]}]},{C:"div",G:"ytp-ad-overlay-text-image",J:[{C:"img",L:{src:"{{imageUrl}}"}}]},{C:"div",G:"ytp-ad-overlay-title",V:"{{title}}"},{C:"div",G:"ytp-ad-overlay-desc",V:"{{description}}"},{C:"div",W:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
V:"{{displayUrl}}"}]});a.K(b.i["ytp-ad-overlay-title"],"click",function(c){return dR(a,b.element,c)});
a.K(b.i["ytp-ad-overlay-link"],"click",function(c){return dR(a,b.element,c)});
a.K(b.i["ytp-ad-overlay-close-container"],"click",a.ds);a.K(b.i["ytp-ad-overlay-text-image"],"click",a.EL);b.hide();return b};
Lla=function(a){var b=new g.tD({C:"div",G:"ytp-ad-image-overlay",J:[{C:"div",G:"ytp-ad-overlay-ad-info-button-container"},{C:"div",G:"ytp-ad-overlay-close-container",J:[{C:"button",G:"ytp-ad-overlay-close-button",J:[yQ(cR)]}]},{C:"div",G:"ytp-ad-overlay-image",J:[{C:"img",L:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.K(b.i["ytp-ad-overlay-image"],"click",function(c){return dR(a,b.element,c)});
a.K(b.i["ytp-ad-overlay-close-container"],"click",a.ds);b.hide();return b};
eR=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.L(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else{var d=g.Fd("video-ads ytp-ad-module")||null;null==d?g.L(Error("Could not locate the root ads container element to attach the ad info dialog.")):(a.X=new g.tD({C:"div",G:"ytp-ad-overlay-ad-info-dialog-container"}),g.B(a,a.X),a.X.g(d),d=new ZQ(a.api,a.ka,a.X.element,!1),g.B(a,d),d.init(Y("ad-info-hover-text-button"),c,a.macros),a.B?(d.g(a.B,0),d.subscribe("B",
a.PH,a),d.subscribe("A",a.RH,a),a.K(a.B,"click",a.QH),c=g.Fd("ytp-ad-button",d.element),a.K(c,"click",a.OH),a.na=d):g.L(Error("Ad info button container within overlay ad was not present.")))}}else g.$p(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
Mla=function(a){return a.A&&a.A.closeButton&&a.A.closeButton.buttonRenderer&&(a=a.A.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
Nla=function(a,b){if(fR(a,gR))return!1;var c=GO(b.title),d=GO(b.description);if(g.wb(c)||g.wb(d))return!1;KO(a,a.u.element,b.trackingParams||null);a.u.updateValue("title",GO(b.title));a.u.updateValue("description",GO(b.description));a.u.updateValue("displayUrl",GO(b.displayUrl));b.navigationEndpoint&&ib(a.H,b.navigationEndpoint);a.u.show();a.Z.start();LO(a,a.u.element,!0);a.K(a.api,"resize",function(){return a.Va(gR)});
a.K(a.u.element,"mouseover",function(){a.I++});
return!0};
Ola=function(a,b){if(fR(a,gR))return!1;var c=GO(b.title),d=GO(b.description);if(g.wb(c)||g.wb(d))return!1;KO(a,a.o.element,b.trackingParams||null);a.o.updateValue("title",GO(b.title));a.o.updateValue("description",GO(b.description));a.o.updateValue("displayUrl",GO(b.displayUrl));a.o.updateValue("imageUrl",HO(b.image));b.navigationEndpoint&&ib(a.H,b.navigationEndpoint);a.ma=b.imageNavigationEndpoint||null;a.o.show();a.Z.start();LO(a,a.o.element,!0);a.K(a.api,"resize",function(){return a.Va(gR)});
a.K(a.o.element,"mouseover",function(){a.I++});
return!0};
Pla=function(a,b){var c=Oka(b.image),d=c;c.width<gR.width&&(d=gR);if(0==c.width||0==c.height||fR(a,d))return!1;KO(a,a.l.element,b.trackingParams||null);a.l.updateValue("imageUrl",HO(b.image));a.l.updateValue("width",c.width);a.l.updateValue("height",c.height);b.navigationEndpoint&&ib(a.H,b.navigationEndpoint);g.zh(a.l.i["ytp-ad-image-overlay"],"max-width",c.width+"px");a.l.show();LO(a,a.l.element,!0);a.T.start();a.K(a.api,"resize",function(){return a.Va(c)});
a.K(a.l.element,"mouseover",function(){a.I++;a.T.stop()});
a.K(a.l.element,"mouseout",function(){a.T.start()});
return!0};
fR=function(a,b){var c=g.JK(a.api).getPlayerSize();return b.width>c.width||b.height>c.height};
dR=function(a,b,c){var d=g.bc(a.macros),e=g.Sh(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Ph(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
d.NX={toString:function(){return f.x.toString()}};
d.I_Y={toString:function(){return f.y.toString()}};
d.NY={toString:function(){return f.y.toString()}};
d.NM={toString:function(){return a.I.toString()}};
a.H.forEach(function(k){return a.ka.Ha(k,d)});
a.api.pauseVideo()};
hR=function(a,b){var c=a.api.getRootNode();g.I(c,"ytp-ad-overlay-open",b);g.I(c,"ytp-ad-overlay-closed",!b)};
iR=function(a,b,c){AQ.call(this,a,b,{C:"div",G:"ytp-ad-message-overlay",J:[{C:"div",G:"ytp-ad-message-slot"}]},"ad-message",c);var d=this;this.T=-1;this.X=this.i["ytp-ad-message-slot"];this.u=new g.tD({C:"span",G:"ytp-ad-message-container"});this.u.g(this.X);g.B(this,this.u);this.o=new EQ(this.api,this.ka,"ytp-ad-message-text");g.B(this,this.o);this.o.g(this.u.element);this.H=new g.GQ(this.u,400,!1,100,function(){return d.hide()});
g.B(this,this.H);this.B=0;this.I=!1;this.hide()};
jR=function(a,b){var c=a.api.getRootNode();g.I(c,"ytp-ad-overlay-open",b);g.I(c,"ytp-ad-overlay-closed",!b)};
kR=function(a,b,c,d){d=void 0===d?!1:d;Z.call(this,a,b,{C:"div",G:"ytp-ad-seek-ad-slot"},"seek-ad");this.I=null;this.T=0;this.u=this.A=this.l=this.o=null;this.B=c;g.B(this,this.B);this.H=null;this.X=!1;this.Z=d;this.hide()};
lR=function(a,b,c){AQ.call(this,a,b,{C:"div",G:"ytp-ad-skip-ad-slot"},"skip-ad",c);this.H=!1;this.B=0;this.u=this.o=null;this.hide()};
mR=function(a,b){a.H||(a.H=!0,a.o&&(b?a.o.H.hide():a.o.hide()),b?a.u.af():a.u.show())};
nR=function(a,b,c){Z.call(this,a,b,{C:"div",G:"ytp-ad-persisting-overlay",J:[{C:"div",G:"ytp-ad-persisting-overlay-skip"}]},"persisting-overlay");this.o=this.i["ytp-ad-persisting-overlay-skip"];this.l=c;g.B(this,this.l);this.hide()};
g.oR=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);var f="";0<c&&(f+=c+":",10>d&&(f+="0"));if(0<c||0<d)f+=d+":",10>e&&(f+="0");f+=e+":";10>b&&(f+="0");f+=b;return 0<=a?f:"-"+f};
g.pR=function(a){return(!g.Fa(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};
qR=function(a,b,c){AQ.call(this,a,b,{C:"span",G:"ytp-ad-duration-remaining"},"ad-duration-remaining",c);this.o=null;this.hide()};
rR=function(a,b){EQ.call(this,a,b,"ytp-video-ad-top-bar-title","ad-title")};
sR=function(a,b,c){AQ.call(this,a,b,{C:"div",W:["ytp-flyout-cta","ytp-flyout-cta-inactive"],J:[{C:"div",G:"ytp-flyout-cta-icon-container"},{C:"div",G:"ytp-flyout-cta-body",J:[{C:"div",G:"ytp-flyout-cta-text-container",J:[{C:"div",G:"ytp-flyout-cta-headline-container"},{C:"div",G:"ytp-flyout-cta-description-container"}]},{C:"div",G:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c);this.H=new TP(this.api,this.ka,"ytp-flyout-cta-icon");g.B(this,this.H);this.H.g(this.i["ytp-flyout-cta-icon-container"]);
this.B=new EQ(this.api,this.ka,"ytp-flyout-cta-headline");g.B(this,this.B);this.B.g(this.i["ytp-flyout-cta-headline-container"]);this.u=new EQ(this.api,this.ka,"ytp-flyout-cta-description");g.B(this,this.u);this.u.g(this.i["ytp-flyout-cta-description-container"]);this.o=new zQ(this.api,this.ka,["ytp-flyout-cta-action-button"]);g.B(this,this.o);this.o.g(this.i["ytp-flyout-cta-action-button-container"]);this.I=null;this.T=0;this.hide()};
tR=function(a,b,c,d){c=void 0===c?[]:c;d=void 0===d?"toggle-button":d;var e=Y("ytp-ad-toggle-button-input");Z.call(this,a,b,{C:"div",W:["ytp-ad-toggle-button"].concat(c),J:[{C:"label",G:"ytp-ad-toggle-button-label",L:{"for":e},J:[{C:"span",G:"ytp-ad-toggle-button-icon",J:[{C:"span",G:"ytp-ad-toggle-button-untoggled-icon",V:"{{untoggledIconTemplateSpec}}"},{C:"span",G:"ytp-ad-toggle-button-toggled-icon",V:"{{toggledIconTemplateSpec}}"}]},{C:"input",G:"ytp-ad-toggle-button-input",L:{id:e,type:"checkbox"}},
{C:"span",G:"ytp-ad-toggle-button-text",V:"{{buttonText}}"},{C:"span",G:"ytp-ad-toggle-button-tooltip",V:"{{tooltipText}}"}]}]},d);this.u=this.i["ytp-ad-toggle-button"];this.l=this.i["ytp-ad-toggle-button-input"];this.X=this.i["ytp-ad-toggle-button-icon"];this.B=this.i["ytp-ad-toggle-button-untoggled-icon"];this.A=this.i["ytp-ad-toggle-button-toggled-icon"];this.T=this.i["ytp-ad-toggle-button-text"];this.o=null;this.H=!1;this.I=null;this.hide()};
uR=function(a){a.H&&(a.isToggled()?(g.Th(a.B,!1),g.Th(a.A,!0)):(g.Th(a.B,!0),g.Th(a.A,!1)))};
Qla=function(a,b){var c=null;a.o&&(c=(b?[a.o.defaultServiceEndpoint,a.o.defaultNavigationEndpoint]:[a.o.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
vR=function(a,b,c){Z.call(this,a,b,{C:"div",G:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",void 0===c?null:c);var d=this;this.l=null;this.u=new tR(this.api,this.ka,["ytp-ad-instream-user-sentiment-like-button"]);g.B(this,this.u);this.u.g(this.element);this.o=new tR(this.api,this.ka,["ytp-ad-instream-user-sentiment-dislike-button"]);g.B(this,this.o);this.o.g(this.element);this.A=new g.GQ(this,400,!1,500,function(){return d.hide()});
g.B(this,this.A);this.B=null;this.hide()};
Rla=function(a,b){a.u.init(Y("toggle-button"),a.l.likeButton.toggleButtonRenderer,b);a.o.init(Y("toggle-button"),a.l.dislikeButton.toggleButtonRenderer,b);a.B=a.K(a.element,"change",a.Ky)};
wR=function(a,b){zQ.call(this,a,b,["ytp-ad-visit-advertiser-button"],"visit-advertiser");this.u=null};
xR=function(a,b,c){c=void 0===c?!1:c;Z.call(this,a,b,{C:"span",G:"ytp-ad-simple-ad-badge"},"simple-ad-badge");this.l=c;this.hide()};
yR=function(a,b){this.i=a;this.g=b};
zR=function(a,b){return a.i+b*a.getLength()};
AR=function(a,b,c){if(!a.getLength())return null!=c?c:Infinity;a=(b-a.i)/a.getLength();return g.pd(a,0,1)};
BR=function(a,b){g.tD.call(this,{C:"div",G:"ytp-ad-persistent-progress-bar-container",J:[{C:"div",G:"ytp-ad-persistent-progress-bar"}]});this.u=a;this.o=b;g.B(this,this.o);this.D=this.i["ytp-ad-persistent-progress-bar"];this.l=-1;this.K(a,"presentingplayerstatechange",this.B);this.hide();this.B()};
DR=function(a,b,c){Z.call(this,a,b,{C:"div",G:"ytp-ad-player-overlay",J:[{C:"div",G:"ytp-ad-player-overlay-flyout-cta"},{C:"div",G:"ytp-ad-player-overlay-instream-info"},{C:"div",G:"ytp-ad-player-overlay-skip-or-preview"},{C:"div",G:"ytp-ad-player-overlay-progress-bar"},{C:"div",G:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay");this.B=this.i["ytp-ad-player-overlay-flyout-cta"];this.o=this.i["ytp-ad-player-overlay-instream-info"];this.A=null;if(CR(this)){a=g.Qd("div");g.H(a,"ytp-ad-player-overlay-top-bar-gradients");
b=this.o;b.parentNode&&b.parentNode.insertBefore(a,b);if((b=this.api.getVideoData(2))&&b.he&&b.title){var d=new rR(this.api,this.ka);d.g(a);d.init(Y("ad-title"),{text:b.title},this.macros);g.B(this,d)}this.A=a}this.u=this.i["ytp-ad-player-overlay-skip-or-preview"];this.I=this.i["ytp-ad-player-overlay-progress-bar"];this.H=this.i["ytp-ad-player-overlay-instream-user-sentiment"];this.l=c;g.B(this,this.l);this.hide()};
CR=function(a){a=g.X(a.api);return Fz(a)&&a.g};
ER=function(a,b){Z.call(this,a,b,{C:"div",G:"ytp-ad-survey-answer"},"survey-answer");this.o=this.i["ytp-ad-survey-answer"];this.l=null;this.u="";this.hide()};
FR=function(a,b){Z.call(this,a,b,{C:"div",G:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above");this.o=this.i["ytp-ad-survey-none-of-the-above"];this.l=null;this.hide()};
GR=function(a,b){zQ.call(this,a,b,["ytp-ad-survey-submit-button"],"survey-submit")};
HR=function(a,b,c){Z.call(this,a,b,{C:"div",G:"ytp-ad-survey-player-overlay",J:[{C:"div",G:"ytp-ad-survey-player-overlay-instream-info"},{C:"div",G:"ytp-ad-survey-player-overlay-skip-preview-submit",J:[{C:"div",G:"ytp-ad-survey-player-overlay-skip-or-preview"},{C:"div",G:"ytp-ad-survey-player-overlay-submit"}]},{C:"div",G:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay");this.B=this.i["ytp-ad-survey-player-overlay-instream-info"];this.o={};this.H=this.i["ytp-ad-survey-player-overlay-skip-or-preview"];
this.l=null;this.I=this.i["ytp-ad-survey-player-overlay-submit"];this.u=null;this.A=c;g.B(this,this.A);this.hide()};
IR=function(a,b,c,d){Z.call(this,a,b,{C:"div",G:"ytp-ad-survey-question",J:[{C:"div",W:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{C:"div",W:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{C:"div",W:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{C:"div",G:"ytp-ad-survey-question-background"}]},c);this.question=this.i["ytp-ad-survey-question"];this.ea=this.i["ytp-ad-survey-question-background"];this.T=this.i["ytp-ad-survey-question-text"];
this.answers=this.i["ytp-ad-survey-answers"];this.I=this.i["ytp-ad-survey-question-player-overlay"];this.B=null;this.u=[];this.l=null;this.A=(0,g.D)();this.Z=d};
JR=function(a,b,c){var d=new ER(a.api,a.ka);d.g(a.answers);d.init(Y("survey-answer"),b,c);a.u.push(d)};
KR=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&SP(c)||"",g.wb(c)?g.$p(Error("Found ThumbnailDetails without valid image URL")):g.zh(a.ea,"backgroundImage","url("+c+")"));Sla(a,b)}else g.L(Error("addCommonComponents() needs to be called before starting countdown."))};
Sla=function(a,b){if(null==b.durationMilliseconds||void 0==b.durationMilliseconds||0==b.durationMilliseconds)g.L(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.A=(0,g.D)();a.l=new OQ(b.durationMilliseconds,a.ka,a.Z);g.B(a,a.l);if(b.timeoutCommands){var c=b.timeoutCommands;a.l.subscribe("r",function(){c.forEach(function(e){return a.ka.Ha(e,a.macros)})})}if(a.l&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=
new HR(a.api,a.ka,a.l);
d.g(a.I);d.init(Y("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.B=d;g.B(a,d);a.lA()}catch(e){g.L(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.L(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.l&&b.durationMilliseconds&&0<b.durationMilliseconds?(d=new BR(a.api,a.l),d.g(a.I),g.B(a,d)):g.L(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
Tla=function(a){function b(c){return{toString:function(){return c()}}}
a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return(0,g.D)()-a.A})};
LR=function(a,b,c){IR.call(this,a,b,"survey-question-multi-select",c);this.o=null;this.X=[];this.H=null;this.hide()};
Ula=function(a,b,c){a.o=new FR(a.api,a.ka);a.o.g(a.answers);a.o.init(Y("survey-none-of-the-above"),b,c)};
Vla=function(a){a.u.forEach(function(b){b.l.toggleButton(!1)});
MR(a,!0)};
MR=function(a,b){var c=a.B,d=Wla(a),e=b;e=void 0===e?!1:e;c.l&&(d?c.l.hide():c.l.show(),e&&c.l instanceof lR&&!c.l.H&&mR(c.l,!1));c.u&&(d?c.u.show():c.u.hide())};
Wla=function(a){return a.u.some(function(b){return b.l.isToggled()})||a.o.l.isToggled()};
NR=function(a,b,c){IR.call(this,a,b,"survey-question-single-select",c);this.hide()};
OR=function(a,b){Z.call(this,a,b,{C:"div",G:"ytp-ad-survey",J:[{C:"div",G:"ytp-ad-survey-title"},{C:"div",G:"ytp-ad-survey-questions"}]},"survey");this.u=this.i["ytp-ad-survey-title"];this.o=this.i["ytp-ad-survey-questions"];this.l=[];this.hide()};
PR=function(a,b){var c=g.O(g.X(a).experiments,"use_full_player_survey_interstitial_on_web");Z.call(this,a,b,c?{C:"div",G:"ytp-ad-survey-interstitial-fp",J:[{C:"div",G:"ytp-ad-survey-interstitial-contents",J:[{C:"div",G:"ytp-ad-survey-interstitial-logo-fp",J:[{C:"div",G:"ytp-ad-survey-interstitial-logo-image"}]},{C:"div",G:"ytp-ad-survey-interstitial-text-fp"}]}]}:{C:"div",G:"ytp-ad-survey-interstitial",J:[{C:"div",G:"ytp-ad-survey-interstitial-modal",J:[{C:"div",G:"ytp-ad-survey-interstitial-contents",
J:[{C:"div",G:"ytp-ad-survey-interstitial-text"},{C:"div",G:"ytp-ad-survey-interstitial-logo",J:[{C:"div",G:"ytp-ad-survey-interstitial-logo-image"}]}]},{C:"div",G:"ytp-ad-survey-interstitial-action"}]}]},"survey-interstitial");this.o=c;this.T=g.O(g.X(a).experiments,"use_button_command_field_for_web_survey_interstitial");this.B=this.o?null:this.i["ytp-ad-survey-interstitial-action"];this.I=this.o?this.i["ytp-ad-survey-interstitial-fp"]:this.i["ytp-ad-survey-interstitial"];this.X=this.i["ytp-ad-survey-interstitial-contents"];
this.l=null;this.H=this.o?null:this.i["ytp-ad-survey-interstitial-modal"];this.ea=this.o?this.i["ytp-ad-survey-interstitial-text-fp"]:this.i["ytp-ad-survey-interstitial-text"];this.Z=this.i["ytp-ad-survey-interstitial-logo-image"];this.A=null;this.u=new g.GQ(this,500,!1,300);g.B(this,this.u)};
Xla=function(a,b,c){var d=a.o?{adLifecycleCommand:{action:"END_LINEAR_AD"}}:{adPlayerControlsCommand:{action:"AD_PLAYER_CONTROLS_ACTION_RESUME"}};c=c.dismissCommands;a.o&&!a.T&&c.push(d);var e=b.target==a.I;b=a.l.element.contains(b.target);if(e||b)a.u.hide(),e?c.forEach(function(f){return a.ka.Ha(f,a.macros)}):!a.T&&b&&a.ka.Ha(d,a.macros)};
QR=function(a,b){var c=b&&SP(b)||"";g.wb(c)?g.$p(Error("Found ThumbnailDetails without valid image URL")):a.style.cssText+='background-image: url("'+c+'");'};
RR=function(a){var b=g.Fd("html5-video-player");b&&g.I(b,"ytp-ad-display-override",a)};
SR=function(a,b){Z.call(this,a,b,{C:"div",G:"iv-website-companion",J:[{C:"div",G:"iv-website-companion-block",J:[{C:"div",G:"iv-website-companion-icon"},{C:"div",G:"iv-website-companion-text",J:[{C:"div",G:"iv-website-companion-desc",J:[{C:"span",W:["yt-badge","yt-badge-ad"],V:"{{adBadgeText}}"}]}]}]}]},"action-companion");this.I=this.i["iv-website-companion"];this.u=new TP(this.api,this.ka,"iv-website-companion-banner");g.B(this,this.u);this.u.g(this.I,0);this.X=new TP(this.api,this.ka);g.B(this,
this.u);this.X.g(this.i["iv-website-companion-icon"]);this.B=new EQ(this.api,this.ka,"iv-website-companion-header");g.B(this,this.B);this.B.g(this.i["iv-website-companion-text"],0);this.A=new EQ(this.api,this.ka,"iv-website-companion-domain");g.B(this,this.A);this.A.g(this.i["iv-website-companion-desc"]);this.o=new zQ(this.api,this.ka,["iv-website-companion-action","yt-uix-button-size-default","yt-uix-button-primary"]);g.B(this,this.o);this.o.g(this.i["iv-website-companion-block"]);this.xc=new $O(this.api,
this.ka);g.B(this,this.xc);this.xc.g(this.I,0);this.H=null;this.T=[];this.ca=new g.Us;g.B(this,this.ca);this.Z=new fM(3E4);this.l=null;this.hide()};
TR=function(){g.A.call(this);this.o=this.i=this.u=this.g=this.A=this.l=null};
Yla=function(a,b){return UR(a).then(function(c){c&&g.Ma(c.promotionShelfShow)&&c.promotionShelfShow(b)})};
Zla=function(a){UR(a).then(function(b){b&&g.Ma(b.promotionShelfClear)&&b.promotionShelfClear()})};
ama=function(a){window.google_ad_output="html";window.google_ad_height="250";window.google_ad_format="300x250_as";window.google_container_id="google_companion_ad_div";return UR(a).then(function(b){return $la(a,b)}).then(function(b){b();
return VR(a)})};
bma=function(a){return UR(a).then(function(b){b.loadAfc();return VR(a)})};
WR=function(){return g.w("yt.www.watch.ads")};
YR=function(){return g.w("window.google_show_companion_ad")};
UR=function(a){if(a.fa())throw Error("Object is disposed");if(!a.l){var b=WR();a.l=b?ng(b):(new jg(function(c){a.A=nq("watchAdsInit",c)})).then(WR)}return a.l};
$la=function(a,b){if(a.fa())throw Error("Object is disposed");if(!a.g){var c=YR();cma(c,b.getGlobals)?a.g=ng(c):a.g=(new jg(function(d){a.u=nq("showCompanionAdLoaded",d)})).then(YR)}return a.g};
VR=function(a){if(a.fa())throw Error("Object is disposed");a.i||(ZR()?ng():a.i=new jg(function(b,c){a.o=new g.J(function(){ZR()?b():c()},2E3,a);
a.o.start()}));
return a.i};
cma=function(a,b){if(!g.Ma(a)||!g.Ma(b))return!1;var c=b();return!(!c||!c.length)};
ZR=function(){var a=Cd(document,"google_companion_ad_div");return a?(a=g.Ca(a.firstElementChild)?a.firstElementChild:Yd(a.firstChild))&&"IFRAME"==a.tagName?-1!=a.src.indexOf("youtube.com%2Fad_frame"):!1:!1};
$R=function(a,b){Z.call(this,a,b,{C:"div"},"backfill-mpu-companion");this.o=new TR;g.B(this,this.o);this.l=null};
dma=function(a,b){(b.noAdEndpoints||[]).forEach(function(c){return a.ka.Ha(c,a.macros)})};
aS=function(){g.W.call(this,{C:"div",G:"ad-carousel",J:[{C:"div",G:"ad-carousel-clip",J:[{C:"ul",W:["ad-carousel-list","ad-carousel-list-animation"]}]}]});var a=this.i["ad-carousel"];this.u=new g.W({C:"button",W:["ad-carousel-nav-button","ad-carousel-nav-prev"],L:{type:"button",onclick:"return false;"},J:[{C:"span",W:["ad-carousel-prev-icon","yt-uix-tooltip","yt-sprite"],L:{"data-tooltip-text":"Prev",title:"Prev"}}]});g.B(this,this.u);this.u.da("click",this.D,this);this.u.g(a);this.o=new g.W({C:"button",
W:["ad-carousel-nav-button","ad-carousel-nav-next"],L:{type:"button",onclick:"return false;"},J:[{C:"span",W:["ad-carousel-next-icon","yt-uix-tooltip","yt-sprite"],L:{"data-tooltip-text":"Next",title:"Next"}}]});g.B(this,this.o);this.o.da("click",this.B,this);this.o.g(a);this.A=this.i["ad-carousel-list"];this.l=0;this.Ba=[]};
cS=function(a){a.A&&g.zh(a.A,"left",(2>a.Ba.length?0:-a.l*a.Ba[1].element.clientWidth)+"px");g.sD(a.u,0<a.l);g.sD(a.o,a.l<a.Ba.length-bS(a))};
bS=function(a){return 2>a.Ba.length?1:Math.round((a.element.clientWidth-a.Ba[0].element.clientWidth)/a.Ba[1].element.clientWidth)+1};
dS=function(){SO.call(this,!0);this.Cd=new aS};
eS=function(){SO.call(this,!1);this.i=new g.W({C:"div",G:"iv-btp-card",J:[{C:"a",G:"iv-btp-card-content",J:[{C:"div",V:"{{cards}}"}]}]});g.B(this,this.i);var a={C:"div",G:"iv-btp-card-merchant",J:[{C:"span",G:"iv-btp-card-merchant-text",V:"{{merchant}}"}]};this.o=new g.nD({C:"div",W:["iv-btp-small-card","yt-uix-hovercard-target"],L:{"data-position":"bottomright","data-orientation":"vertical"},J:[{C:"div",W:["iv-btp-card-image","yt-uix-hovercard-anchor"],V:"{{image}}"},{C:"div",G:"iv-btp-card-info",
J:[{C:"span",G:"iv-btp-card-action",V:"{{price}}"},a]},{C:"div",W:["yt-uix-hovercard-content","iv-btp-hovercard"],V:"{{hovercard}}"}]});g.B(this,this.o);this.g=new g.nD({C:"div",G:"iv-btp-large-card",J:[{C:"div",G:"iv-btp-card-image",J:[{C:"span"},{C:"div",G:"iv-btp-card-image-aligned",V:"{{image}}"}]},{C:"div",G:"iv-btp-card-info",J:[{C:"div",G:"iv-btp-card-text-box",J:[{C:"div",G:"iv-btp-card-text-valign",J:[{C:"div",W:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-card-headline"],V:"{{headline}}"}]}]},
{C:"span",G:"iv-btp-card-action",V:"{{price}}"},a,{C:"div",V:"{{review}}"}]}]});g.B(this,this.g);this.l=new g.nD({C:"div",G:"iv-btp-hovercard-text-box",J:[{C:"a",J:[{C:"div",W:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-hovercard-headline"],V:"{{headline}}"}]},{C:"div",G:"iv-btp-hovercard-info",J:[{C:"span",G:"iv-btp-hovercard-action",V:"{{price}}"},a]},{C:"div",V:"{{review}}"}]});g.B(this,this.l);this.u=new g.nD({C:"div",G:"iv-btp-card-review",J:[{C:"div",G:"iv-btp-card-rating",J:[{C:"span",G:"iv-btp-card-rating-bg",
J:[{C:"span",G:"iv-btp-card-rating-fg"}]}]},{C:"span",G:"iv-btp-card-reviews",V:"{{reviewText}}"}]});g.B(this,this.u);this.o.updateValue("hovercard",this.l);this.i.updateValue("cards",[this.o,this.g]);this.md()};
fS=function(a,b,c){c=c?RO(c):null;a.updateValue(b,c)};
gS=function(a,b){TO.call(this,a,b,function(){return new ema.gp});
this.g=null;this.md()};
hS=function(){SO.call(this,!0);this.g=new g.W({C:"div",G:"iv-btp-companion",J:[{C:"div",G:"iv-btp-block-clicks"},{C:"div",G:"iv-btp-attribution",J:[{C:"span",G:"iv-btp-title",V:"{{shopText}}"},{C:"div",G:"ad-info-container",J:[{C:"span",G:"iv-btp-sponsored",V:"{{sponsoredText}}"},{C:"button",G:"ad-info-icon"}]}]}]});g.B(this,this.g);this.l=this.g.i["iv-btp-block-clicks"];this.i=new TR;g.B(this,this.i);this.o=Yla(this.i,this.g.element);this.md()};
jS=function(a,b){TO.call(this,a,b,function(){return new iS.sC});
this.ca=new g.Us(this);g.B(this,this.ca);this.oh=[];this.Zd=null;this.Cd=new iS.bp;g.B(this,this.Cd);this.view.append(this.Cd);this.qe=new iS.NB(a,b,new CO(this.Hc().g.i["ad-info-icon"]));g.B(this,this.qe);this.qe.Ih(this.view);this.md()};
fma=function(a){var b=a.Hc();g.Th(b.l,!0);sg([a.Zd,Hg(1E3)]).then(function(){g.Th(b.l,!1)})};
kS=function(){SO.call(this,!0);var a=this;this.o=this.i=0;this.g=new g.W({C:"div",G:"iv-cards-slider",J:[{C:"div",G:"iv-cards-slider-body",J:[{C:"ul",G:"iv-cards-slider-list"}]},{C:"button",W:["iv-cards-slider-button","iv-cards-slider-prev"],L:{type:"button",onclick:";return false;"},J:[{C:"span",W:["iv-cards-slider-prev-icon","yt-sprite"]}]},{C:"button",W:["iv-cards-slider-button","iv-cards-slider-next"],L:{type:"button",onclick:";return false;"},J:[{C:"span",W:["iv-cards-slider-next-icon","yt-sprite"]}]}]});
this.B=g.Fd("iv-cards-slider-list",this.g.element);if(this.l=g.Fd("iv-cards-slider-prev",this.g.element))this.g.K(this.l,"click",function(){a.dispatchEvent({type:"prevbuttonclick"})}),g.Th(this.l,!1);
(this.u=g.Fd("iv-cards-slider-next",this.g.element))&&this.g.K(this.u,"click",function(){a.dispatchEvent({type:"nextbuttonclick"})});
g.B(this,this.g)};
lS=function(a){a.B.style.left=125*-a.i+"px";a.l&&g.Th(a.l,0<a.i);a.u&&g.Th(a.u,a.i<a.o-3)};
mS=function(){SO.call(this,!0);this.g=new g.W({C:"div",G:"iv-cards-companion",J:[{C:"div",G:"iv-cards-attribution",J:[{C:"span",W:["yt-badge","yt-badge-ad"],V:"{{adBadgeText}}"},{C:"a",G:"ad-companion-clickthrough",L:{target:"_blank"},V:"{{shopText}}"}]},{C:"div",V:"{{content}}"}]});g.B(this,this.g);this.i=new fM(3E4);this.l=this.i.showCompanion(this.g.element,300,250);this.md()};
nS=function(){SO.call(this,!1);this.g=new g.W({C:"li",G:"iv-cards-slider-item",J:[{C:"div",G:"iv-cards-slider-unit",J:[{C:"a",J:[{C:"div",G:"iv-cards-slider-image",V:"{{image}}"},{C:"span",W:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-cards-slider-text"],V:"{{headline}}"},{C:"span",G:"iv-cards-slider-action",V:"{{price}}"}]}]}]});g.B(this,this.g);this.md()};
oS=function(a,b){TO.call(this,a,b,function(){return new gma.gp});
var c=this;this.g=null;this.Hc().addEventListener("offerclick",function(){return c.onClick()})};
qS=function(a,b){TO.call(this,a,b,function(){return new pS.VB});
this.ca=new g.Us(this);g.B(this,this.ca);this.lv=[];this.ls=null;this.oh=[];this.Zd=null;this.fg=new pS.bp;g.B(this,this.fg);this.view.append(this.fg);this.xc=new $O(a,b);g.B(this,this.xc);Vd(this.view.ha(),this.xc.element,0);this.md()};
rS=function(a,b){b=void 0===b?2:b;g.N.call(this);this.g=a;this.i=new g.Us(this);g.B(this,this.i);this.u=hma;this.l=null;this.i.K(this.g,"presentingplayerstatechange",this.FH);this.l=this.i.K(this.g,"progresssync",this.Iy);this.o=b;1===this.o&&this.Iy()};
sS=function(a,b,c){switch(a){case "invideo-overlay":return new bR(b,c);case "invideo-overlay-as-cta":return new $Q(b,c);case "persisting-overlay":return new nR(b,c,new rS(b));case "player-overlay":return new DR(b,c,new rS(b));case "pla-shelf":return new jS(b,c);case "shopping-companion":return new qS(b,c);case "survey":return new OR(b,c);case "backfill-mpu-companion":return new $R(b,c);case "ad-action-interstitial":return new PQ(b,c);case "action-companion":return new SR(b,c);case "ad-text-interstitial":return new RQ(b,
c);case "survey-interstitial":return new PR(b,c);case "ad-message":return new iR(b,c,new rS(b,1));default:return null}};
tS=function(a){g.Us.call(this);this.Bb=a;this.K(this.Bb,"onAdUxUpdate",this.A)};
uS=function(a,b){tS.call(this,a);this.l=b;this.g=new Map;g.B(this,PO())};
vS=function(a,b){tS.call(this,a);this.g=b};
wS=function(a,b,c){(b=b.adRendererCommands&&b.adRendererCommands.impressionCommand)&&a.Ha(b,c)};
xS=function(a,b){tS.call(this,a);this.l=a;this.u=b;this.g={};var c=new g.W({C:"div",W:["video-ads","ytp-ad-module"]});g.B(this,c);g.O(g.X(this.l).experiments,"mweb_enable_skippables_on_jio_phone")&&(Yy||bK)&&g.H(c.element,"ytp-ads-tiny-mode");this.o=new CO(c.element);g.B(this,this.o);g.XK(this.l,c.element,4);g.B(this,PO())};
yS=function(a,b){var c=$b(a.g,b.id,null);null!=c||g.$p(Error("Component not found for element id: "+b.id));return c||null};
zS=function(a){g.mL.call(this,a);var b=this;this.g=null;this.created=!1;var c=g.X(a);!oz(c)||g.vz(c)||wz(c)||(c=function(){return b.g},g.B(this,new xS(a,c)),g.B(this,tM(a)?new vS(a,c):new uS(a,c)))};
AS=function(a,b,c,d){g.N.call(this);this.i=a;this.R=(0,g.x)(b,null);this.g=0;this.A=!1;this.o=new g.td(NaN,NaN);this.ca=new g.Us(this);g.B(this,this.ca);b=d?4E3:3E3;this.D=new g.J(g.Qa(this.Fb,1,!1),b,this);g.B(this,this.D);this.F=new g.J(g.Qa(this.Fb,2,!1),b,this);g.B(this,this.F);this.I=new g.J(g.Qa(this.Fb,512,!1),0,this);g.B(this,this.I);this.P=c&&0<c.Kg.length?5E3:3E3;d||(this.l=this.ca.K(a,"mouseover",this.Rr),this.ca.K(a,"mousemove",this.EG),this.ca.K(a,"mouseleave",this.WH));g.Bh?this.ca.K(a,
"keypress",this.BE):this.ca.K(a,"focusin",this.kD);this.u=this.ca.K(a,"mousedown",this.iy);this.B=this.ca.K(a,"touchstart",this.ky,void 0,!0);this.M=null;this.Fb(640,!0)};
BS=function(a){a.Fb(4,!1);a.H&&(a.ca.Na(a.H),a.H=null,a.l=a.ca.K(a.i,"mouseover",a.Rr));a.l&&(a.ca.Na(a.l),a.l=a.ca.K(a.i,"mouseover",a.Rr))};
CS=function(a){var b=g.X(a),c=a.getVideoData(),d=["ytp-large-play-button","ytp-button"];if(c.Pb&&c.tf)var e=b.D?[{C:"div",G:"ytp-large-play-button-circle",L:{style:"background-color: "+c.tf}},g.UP?{C:"div",W:["ytp-icon","ytp-icon-dni-large-play-button"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"4 -6 60 60",width:"100%"},J:[{C:"path",L:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}}]}]:[g.UP?{C:"div",W:["ytp-icon","ytp-icon-dni-large-lozenge-play-button"]}:{C:"svg",L:{height:"100%",
version:"1.1",viewBox:"0 0 68 48",width:"100%"},J:[{C:"path",G:"ytp-dni-large-play-button-bg",L:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{C:"path",L:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];
else b.D&&!b.Kb?e=[g.UP?{C:"div",W:["ytp-icon","ytp-icon-large-play-button-hover"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},J:[{C:"path",G:"ytp-large-play-button-bg",L:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#f00"}},{C:"path",L:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:(b.g&&d.push("ytp-touch-device"),e=[b.Kb?g.UP?{C:"div",W:["ytp-icon","ytp-icon-house-brand-large-play-button"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},J:[{C:"path",G:"ytp-large-play-button-bg",L:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{C:"path",L:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:g.UP?{C:"div",W:["ytp-icon","ytp-icon-large-play-button"]}:{C:"svg",L:{height:"100%",
version:"1.1",viewBox:"0 0 68 48",width:"100%"},J:[{C:"path",G:"ytp-large-play-button-bg",L:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{C:"path",L:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]);var f=
["ytp-cued-thumbnail-overlay"];(g.O(b.experiments,"web_player_contain_thumbnail")||b.Kb&&!g.O(b.experiments,"web_player_housebrand_contain_killswitch"))&&f.push("ytp-exp-contain-thumbnail");g.W.call(this,{C:"div",W:f,J:[{C:"div",G:"ytp-cued-thumbnail-overlay-image"},{C:"button",W:d,L:{"aria-label":"\uc7ac\uc0dd"},J:e}]});c.Pb&&c.tf&&!b.D&&this.i["ytp-dni-large-play-button-bg"].setAttribute("fill",c.tf);this.A=new g.Us(this);g.B(this,this.A);this.l=a;this.D=this.i["ytp-cued-thumbnail-overlay-image"];
this.B=this.i["ytp-large-play-button"];this.u=new g.GQ(this,250);g.B(this,this.u);this.o=new g.J(this.oy,0,this);g.B(this,this.o);this.oy();this.K(a,"presentingplayerstatechange",this.QG);this.K(a,"ypcStateChanged",this.jM);bz(g.X(a))&&this.K(a,"videoplayerreset",this.PG)};
g.DS=function(a,b){return xE(b)?(b.fetch=0,new g.wE(a,b)):new g.zB(a,b)};
ES=function(a){g.A.call(this);this.u=a;this.o=new Uo(0,0,.4,0,.2,1,1,1);this.i=new g.Ao(this.l,window,this);g.B(this,this.i)};
FS=function(a){var b=!g.X(a).Rb&&3!=a.getPresentingPlayerType();return a.isFullscreen()||b};
g.GS=function(a,b,c,d){if((void 0===c||!c)&&g.pR(a))return g.qs(a),!0;b.pauseVideo();a=a.currentTarget.getAttribute("href");g.bM(a,d,!0);return!1};
HS=function(a,b,c){if(Cz(g.X(b))&&2!=b.getPresentingPlayerType()){if(g.pR(c))return b.isFullscreen()&&!g.X(b).externalFullscreen&&b.toggleFullscreen(),g.qs(c),!0}else{var d=g.pR(c);d&&b.pauseVideo();g.bM(a,void 0,!0);d&&(g.cM(a),g.qs(c))}return!1};
IS=function(){return{C:"div",G:"ytp-spinner-container",J:[{C:"div",G:"ytp-spinner-rotator",J:[{C:"div",G:"ytp-spinner-left",J:[{C:"div",G:"ytp-spinner-circle"}]},{C:"div",G:"ytp-spinner-right",J:[{C:"div",G:"ytp-spinner-circle"}]}]}]}};
JS=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
KS=function(a,b,c){a=g.X(a);return g.O(a.experiments,"desktop_player_button_tooltip_with_shortcut")&&!a.tb?g.UN("$DESCRIPTION($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
MS=function(a){g.W.call(this,{C:"div",G:"ytp-related-on-error-overlay"});this.P=this.u=0;this.o=a;this.Y=new g.Us(this);g.B(this,this.Y);a=g.X(a);this.B=[];this.l=[];this.D=0;this.Z=a.i;this.M=new g.W({C:"h2",G:"ytp-related-title",V:"{{title}}"});g.B(this,this.M);this.M.g(this.element);this.F=new g.W({C:"div",G:"ytp-suggestions"});g.B(this,this.F);this.F.g(this.element);this.I=new g.W({C:"button",W:["ytp-button","ytp-previous"],L:{"aria-label":"\uc774\uc804\uc758 \ucd94\ucc9c \ub3d9\uc601\uc0c1 \ubcf4\uae30"},
J:[g.XP()]});g.B(this,this.I);this.I.g(this.element);this.I.da("click",this.jH,this);this.ga=new ES((0,g.x)(this.yy,this));g.B(this,this.ga);this.X=this.A=0;this.T=!0;for(var b=0;16>b;b++){var c=new g.W({C:"a",G:"ytp-suggestion-link",L:{href:"{{link}}",target:a.A,"aria-label":"{{aria_label}}"},J:[{C:"div",G:"ytp-suggestion-image",J:[{C:"div",L:{"data-is-live":"{{is_live}}"},G:"ytp-suggestion-duration",V:"{{duration}}"}]},{C:"div",G:"ytp-suggestion-title",L:{title:"{{hover_title}}"},V:"{{title}}"},
{C:"div",G:"ytp-suggestion-author",V:"{{views_or_author}}"}]});g.B(this,c);c.g(this.F.element);var d=c.i["ytp-suggestion-link"];g.zh(d,"transitionDelay",b/20+"s");this.Y.K(d,"click",g.Qa(this.kH,b));this.B.push(c)}this.H=new g.W({C:"button",W:["ytp-button","ytp-next"],L:{"aria-label":"\ub354 \ub9ce\uc740 \ucd94\ucc9c \ub3d9\uc601\uc0c1 \ubcf4\uae30"},J:[g.YP()]});g.B(this,this.H);this.H.g(this.element);this.H.da("click",this.iH,this);this.Y.K(this.o,"videodatachange",this.wy);LS(this,g.JK(this.o).getPlayerSize());
this.wy();this.show()};
LS=function(a,b,c){var d=g.X(a.o),e=16/9,f=650<=b.width,k=480>b.width||290>b.height,l=Math.min(a.l.length,a.B.length);if(150>=Math.min(b.width,b.height)||0==l||!d.Ea)a.hide();else{var m;if(f){var n=m=28;a.u=16}else n=m=8,a.u=8;if(k){var p=6;f=14;var r=12;k=24;d=12}else p=8,f=18,r=16,k=36,d=16;b=b.width-(48+m+n);m=Math.ceil(b/150);m=Math.min(3,m);m=b/m-a.u;n=Math.floor(m/e);n+100>c&&50<m&&(n=Math.max(c,50/e),m=Math.ceil(b/(e*(n-100)+a.u)),m=b/m-a.u,n=Math.floor(m/e));50>m?a.hide():a.show();for(c=0;c<
l;c++){e=a.B[c];var v=e.i["ytp-suggestion-image"];v.style.width=m+"px";v.style.height=n+"px";e.i["ytp-suggestion-title"].style.width=m+"px";e.i["ytp-suggestion-author"].style.width=m+"px";e=e.i["ytp-suggestion-duration"];e.style.display=e&&100>m?"none":""}l=f+p+r+4;a.P=l+d+(n-k)/2;a.F.element.style.height=n+l+"px";a.X=m;a.D=b;a.A=0;a.yy(0);NS(a)}};
OS=function(a,b){var c=g.pd(b,a.D-a.l.length*(a.X+a.u),0);a.ga.start(a.A,c,1E3);a.A=c;NS(a)};
NS=function(a){a.H.element.style.bottom=a.P+"px";a.I.element.style.bottom=a.P+"px";var b=a.A,c=a.D-a.l.length*(a.X+a.u);g.I(a.element,"ytp-scroll-min",0<=b);g.I(a.element,"ytp-scroll-max",b<=c)};
jma=function(a){for(var b=0;b<a.l.length;b++){var c=b,d=a.l[b].ua();c=a.B[c];var e=d.shortViewCount?d.shortViewCount:d.author,f=g.bh(d.Wh(),{feature:"player_embedded_uturn"});c.element.style.display="";var k=c.i["ytp-suggestion-title"];PS.test(d.title)?k.dir="rtl":QS.test(d.title)&&(k.dir="ltr");k=c.i["ytp-suggestion-author"];PS.test(e)?k.dir="rtl":QS.test(e)&&(k.dir="ltr");k=void 0;d.sa?k="\uc2e4\uc2dc\uac04":k=d.lengthSeconds?g.oR(d.lengthSeconds):"";c.update({views_or_author:e,duration:k,link:f,
hover_title:d.title,title:d.title,aria_label:d.lj||null,is_live:d.sa});c=c.i["ytp-suggestion-image"];d=d.Ac();c.style.backgroundImage=d?"url("+d+")":""}for(;b<a.B.length;b++)a.B[b].element.style.display="none";NS(a)};
SS=function(a,b){g.W.call(this,{C:"canvas",G:"ytp-tv-static"});this.o=this.element.getContext("2d");this.height=this.width=NaN;this.H=null;this.I=this.M=this.A=this.u=0;this.B=-75;this.l=new g.Ao(this.F,void 0,this);g.B(this,this.l);this.D=new g.J(this.l.Qj,75,this.l);g.B(this,this.D);RS(this,a,b)};
TS=function(a){for(var b=Math.floor(.6*a),c=b;c<a;++c){for(var d=!1,e=2;e<Math.sqrt(c);e++){if(!(c%e)){d=!1;break}d=!0}if(d)return c}return b};
RS=function(a,b,c){if(b&&c){a.width=a.element.width=b;a.height=a.element.height=c;var d=g.Rd("CANVAS");d.width=b;d.height=c;for(var e=d.getContext("2d"),f=e.getImageData(0,0,b,c),k=b*c,l=0;l<k;l++){var m=4*l;f.data[m]=f.data[m+1]=f.data[m+2]=Math.floor(35*Math.random());f.data[m+3]=255}e.putImageData(f,0,0);a.H=d;a.M=TS(b);a.I=TS(c/10);a.o.scale(1.5,1.5);a.o.fillStyle="rgba(255, 255, 255, 0.02)"}};
VS=function(a){var b=g.X(a),c=b.i;if(c){var d=new MS(a);b={C:"div",W:["ytp-error","ytp-related-on-error"],L:{role:"alert"},J:[{C:"div",G:"ytp-error-content",J:[{C:"div",G:"ytp-error-icon-container",J:[dQ()]},{C:"div",G:"ytp-error-content-wrap",J:[{C:"div",G:"ytp-error-content-wrap-reason",V:"{{content}}"},{C:"div",G:"ytp-error-content-wrap-subreason",V:"{{subreason}}"}]}]},{C:"div",G:"ytp-small-redirect",J:[{C:"a",G:"ytp-small-redirect-link",L:{href:g.Mz(b),target:b.A,"aria-label":"YouTube\ub97c \ubc29\ubb38\ud558\uc5ec \ub354 \ub9ce\uc740 \ub3d9\uc601\uc0c1 \uac80\uc0c9"},
J:[xQ()]}]},d]}}else b={C:"div",W:["ytp-error"],L:{role:"alert"},J:[{C:"div",G:"ytp-error-content",J:[{C:"div",G:"ytp-error-content-wrap",V:"{{content}}"}]}]};g.W.call(this,b);this.A=c;this.l=a;(this.u=d)&&g.B(this,this.u);this.B=[];if(!this.A)try{this.o=new SS(1,1),g.B(this,this.o),this.o.g(this.element,0)}catch(e){}g.I(this.element,"ytp-controls-on-error",LK(this.l));this.D=1;US(this,g.JK(this.l).getPlayerSize())};
US=function(a,b){WS(a,function(c){RS(c,b.width,b.height)});
a.A&&(XS(a,b),g.I(a.element,"related-on-error-overlay-visible",!a.u.isHidden()))};
XS=function(a,b){a.i["ytp-error-content"].style.paddingTop="0px";var c=a.i["ytp-error-content"],d=c.clientHeight;LS(a.u,b,b.height-d);if(g.X(a.l).D){var e=dQ(),f=g.UP?{C:"div",W:["ytp-icon","ytp-icon-youtube-logo-redirect-large"]}:{C:"svg",L:{fill:"#fff",viewBox:"0 0 24 24"},J:[{C:"path",L:{d:"M0 0h24v24H0V0z",fill:"none"}},{C:"path",L:{d:"M21.58 7.19c-.23-.86-.91-1.54-1.77-1.77C18.25 5 12 5 12 5s-6.25 0-7.81.42c-.86.23-1.54.91-1.77 1.77C2 8.75 2 12 2 12s0 3.25.42 4.81c.23.86.91 1.54 1.77 1.77C5.75 19 12 19 12 19s6.25 0 7.81-.42c.86-.23 1.54-.91 1.77-1.77C22 15.25 22 12 22 12s0-3.25-.42-4.81zM10 15V9l5.2 3-5.2 3z"}}]},
k=1;480>b.width||290>b.height?(e={C:"div",W:["ytp-icon","ytp-icon-error-exclamation-small"]},f=xQ(),k=0):650<=b.width&&(e={C:"div",W:["ytp-icon","ytp-icon-error-exclamation-large"]},f=g.UP?{C:"div",W:["ytp-icon","ytp-icon-youtube-logo-redirect-extra-large"]}:{C:"svg",L:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{C:"path",L:{d:"M0 0h24v24H0V0z",fill:"none"}},{C:"path",L:{d:"M21.58 7.19c-.23-.86-.91-1.54-1.77-1.77C18.25 5 12 5 12 5s-6.25 0-7.81.42c-.86.23-1.54.91-1.77 1.77C2 8.75 2 12 2 12s0 3.25.42 4.81c.23.86.91 1.54 1.77 1.77C5.75 19 12 19 12 19s6.25 0 7.81-.42c.86-.23 1.54-.91 1.77-1.77C22 15.25 22 12 22 12s0-3.25-.42-4.81zM10 15V9l5.2 3-5.2 3z"}}]},
k=2);if(k!==a.D){e={"ytp-error-icon-container":e,"ytp-small-redirect":f};f=g.q(Object.keys(e));for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=a.i[l];g.Ud(m);(new g.W(e[l])).g(m)}a.D=k}}c.style.paddingTop=(b.height-a.u.element.clientHeight)/2-d/2+"px"};
WS=function(a,b){if(a.o)try{b.call(a,a.o)}catch(c){a.o.dispose(),a.o=null}};
YS=function(a){a=a.split(kma);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({C:"br"}),b.push(d[e]);c<a.length&&b.push({C:"a",L:{href:a[c],target:a[c+1]},V:a[c+2]})}return{C:"span",J:b}};
ZS=function(a,b,c,d,e,f,k){k=void 0===k?!0:k;e||(e=g.X(a.l).i);a=a.l.getVideoData();b=g.UN(g.OJ[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({C:"h2",V:f});d.push(b[0]);k&&d.push({C:"br"});d.push({C:"a",L:{href:c,target:e?"_blank":null},V:b[2]});d.push(b[4]);return{C:"span",J:d}};
aT=function(a){g.Us.call(this);this.g=a;this.l=new Set;this.i=navigator.mediaSession;$S(this,"play",function(){a.playVideo()});
$S(this,"pause",function(){a.pauseVideo()});
$S(this,"seekbackward",function(){a.seekBy(-5*a.getPlaybackRate())});
$S(this,"seekforward",function(){a.seekBy(5*a.getPlaybackRate())});
this.K(a,"videodatachange",this.u);this.K(a,"presentingplayerstatechange",this.o);this.u()};
$S=function(a,b,c){a.i.setActionHandler(b,c?(0,g.x)(c,a):null);a.l.add(b)};
bT=function(a){g.W.call(this,{C:"div",G:"ytp-paid-content-overlay",L:{"aria-live":"assertive","aria-atomic":"true"}});this.H=new g.W({C:"div",W:["ytp-button","ytp-paid-content-overlay-text"]});g.B(this,this.H);this.H.g(this.element);this.I=a;this.o=null;this.D=!1;this.A=new g.GQ(this.H,250,!1,100);g.B(this,this.A);this.B=this.l=null;this.u={};this.F=0;this.K(a,"videodatachange",this.T);this.K(a,"presentingplayerstatechange",this.P)};
cT=function(a,b){var c=$B(b),d=aC(b);a.l?b.videoId&&b.videoId!=a.o&&(g.Fo(a.l),a.o=b.videoId,c=a.u[b.videoId]||0,a.D=!!d&&3E3>c):c&&d&&(a.l=new g.J(a.M,d,a),g.B(a,a.l),g.ae(g.Fd("ytp-paid-content-overlay-text",a.element),c))};
dT=function(a,b){a.l&&g.T(b,8)&&a.D&&(a.D=!1,a.A.show(),a.F=(0,g.D)(),a.l.start())};
fT=function(a){g.W.call(this,{C:"div",G:"ytp-spinner",J:[IS(),{C:"div",G:"ytp-spinner-message",V:"\uc7a0\uc2dc \ud6c4 \uc7ac\uc0dd\uc774 \uc2dc\uc791\ub418\uc9c0 \uc54a\uc73c\uba74 \uae30\uae30\ub97c \ub2e4\uc2dc \uc2dc\uc791\ud574 \ubcf4\uc138\uc694."}]});this.u=this.i["ytp-spinner-message"];this.o=a;this.l=new g.J(this.show,500,this);g.B(this,this.l);this.K(a,"presentingplayerstatechange",this.A);this.K(a,"onFrescaStateChange",this.B);this.K(a,"playbackstalledatstart",this.D);eT(this,g.IK(a))};
eT=function(a,b){if(g.T(b,128))var c=0;else!(c=g.T(b,16))&&(c=g.T(b,1))&&(c=g.EK(a.o).Uc,c=!(c&&c.loaded));c?a.l.start():a.hide()};
hT=function(a,b){g.W.call(this,{C:"button",W:["ytp-airplay-button","ytp-button"],L:{title:"AirPlay"},V:"{{icon}}"});this.l=a;this.da("click",this.u);this.K(a,"airplayactivechange",this.o);this.K(a,"airplayavailabilitychange",this.o);this.o();g.pf(this,gT(b.Za(),this.element))};
g.jT=function(a){g.tD.call(this,{C:"div",G:"ytp-gradient-bottom"});this.o=g.Rd("CANVAS");this.o.width=1;this.l=this.o.getContext("2d");this.u=NaN;this.A=g.iz(g.X(a));g.iT(this,g.JK(a).getPlayerSize().height)};
g.iT=function(a,b){if(a.l){var c=Math.floor(b*(a.A?1:.4));c=Math.max(c,47);var d=c+2;if(a.u!=d){a.u=d;a.o.height=d;a.l.clearRect(0,0,1,d);var e=a.l.createLinearGradient(0,2,0,2+c);if(a.A)e.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),e.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),e.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var f=c-42;e.addColorStop(0,"rgba(0, 0, 0, 0)");e.addColorStop(f/c,"rgba(0, 0, 0, 0.3)");e.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.l.fillStyle=e;a.l.fillRect(0,2,1,c);a.element.style.height=
d+"px";a.element.style.backgroundImage="url("+a.o.toDataURL()+")"}}};
kT=function(a,b,c,d,e){var f=b.es/b.rows,k=Math.min(c/(b.gs/b.columns),d/f),l=b.gs*k,m=b.es*k;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,r=-b.column*n,v=-b.row*p;e&&45>=f&&(p-=1/k);n-=2/k;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+r+"px "+v+"px/"+l+"px "+m+"px"};
g.lT=function(a){g.W.call(this,{C:"div",G:"ytp-storyboard-framepreview",J:[{C:"div",G:"ytp-storyboard-framepreview-img"}]});this.D=this.i["ytp-storyboard-framepreview-img"];this.l=a;this.xd=null;this.A=NaN;this.o=new g.Us(this);g.B(this,this.o);this.u=new g.GQ(this,100);g.B(this,this.u);this.K(this.l,"presentingplayerstatechange",this.F)};
mT=function(a,b){var c=!!a.xd;a.xd=b;a.xd?(c||(a.o.K(a.l,"videodatachange",function(){mT(a,a.l.de())}),a.o.K(a.l,"progresssync",a.H),a.o.K(a.l,"appresize",a.B)),a.A=NaN,nT(a),a.u.show(200)):(c&&g.Ws(a.o),a.u.hide(),a.u.stop())};
nT=function(a){var b=a.l.getCurrentTime(),c=g.JK(a.l).getPlayerSize(),d=zA(a.xd,c.width);b=EA(a.xd,d,b);b!=a.A&&(a.A=b,CA(a.xd,b,c.width),b=AA(a.xd,b,c.width),kT(a.D,b,c.width,c.height))};
oT=function(a,b){g.W.call(this,{C:"button",W:["ytp-fullerscreen-edu-button","ytp-button"],J:[{C:"div",W:["ytp-fullerscreen-edu-text"],V:"\uc2a4\ud06c\ub864\ud574\uc11c \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uae30"},{C:"div",W:["ytp-fullerscreen-edu-chevron"],J:[g.UP?{C:"div",W:["ytp-icon","ytp-icon-chevron-down"]}:{C:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{C:"path",L:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});ZK(a,this.element,this,61214);
this.l=a;this.D=b;this.A=new g.GQ(this,250,void 0,100);g.B(this,this.A);this.B=this.u=!1;this.K(a,"fullscreentoggled",this.o);this.K(a,"presentingplayerstatechange",this.o);this.da("click",this.F);this.o()};
pT=function(a,b,c,d){d=void 0===d?!1:d;g.tD.call(this,b);this.X=a;this.ga=d;this.I=null;this.H=new g.Us(this);g.B(this,this.H);this.T=new g.GQ(this,c,!0,void 0,null,(0,g.x)(this.nD,this));g.B(this,this.T);this.l=null};
qT=function(a){a.l&&(document.activeElement&&g.$d(a.element,document.activeElement)&&(de(a.l),a.l.focus()),a.l.removeAttribute("aria-expanded"),a.l=null);g.Ws(a.H);a.I=null};
rT=function(a){return a.Fa()&&4!=a.T.g};
g.tT=function(a,b){g.W.call(this,{C:"button",W:["ytp-fullscreen-button","ytp-button"],L:{title:"{{title}}"},V:"{{icon}}"});this.o=a;this.B=b;this.l=null;this.u=gT(b.Za(),this.element);this.A=new g.J(this.NC,2E3,this);g.B(this,this.A);this.K(a,"fullscreentoggled",this.GA);this.K(a,"presentingplayerstatechange",this.qy);this.da("click",this.SG);if(Qs()){var c=g.JK(this.o);this.K(c,Oea(),this.hz);this.K(c,Ts(document),this.TG)}g.X(a).X||sT(this);this.qy();this.GA(a.isFullscreen())};
sT=function(a){if(!a.l){var b=(null!=es(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"\uc804\uccb4 \ud654\uba74\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4. $BEGIN_LINK\uc790\uc138\ud788 \uc54c\uc544\ubcf4\uae30$END_LINK":"\ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c \uc804\uccb4 \ud654\uba74\uc744 \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. $BEGIN_LINK\uc790\uc138\ud788 \uc54c\uc544\ubcf4\uae30$END_LINK").split(/\$(BEGIN|END)_LINK/);
a.l=new pT(a.o,{C:"div",W:["ytp-popup","ytp-generic-popup"],L:{role:"alert",tabindex:"0"},J:[b[0],{C:"a",L:{href:"https://support.google.com/youtube/answer/6276924",target:g.X(a.o).A},V:b[2]},b[4]]},100,!0);a.l.hide();g.B(a,a.l);a.l.subscribe("show",(0,g.x)(a.B.Aj,a.B,a.l));g.XK(a.o,a.l.element,4);a.element.setAttribute("aria-disabled",!0);a.element.setAttribute("aria-haspopup",!0);(0,a.u)();a.u=null}};
uT=function(a,b){g.W.call(this,{C:"button",W:["ytp-miniplayer-button","ytp-button"],L:{title:"{{title}}"},J:[lQ()]});this.l=a;this.o=!1;this.da("click",this.A);this.K(a,"fullscreentoggled",this.u);this.updateValue("title",KS(a,"\uc18c\ud615 \ud50c\ub808\uc774\uc5b4","i"));g.pf(this,gT(b.Za(),this.element));ZK(a,this.element,this,62946);this.u()};
vT=function(a){var b={C:"div",G:"ytp-multicam-menu",L:{role:"dialog"},J:[{C:"div",G:"ytp-multicam-menu-header",J:[{C:"div",G:"ytp-multicam-menu-title",J:["\uce74\uba54\ub77c \uc804\ud658",{C:"button",W:["ytp-multicam-menu-close","ytp-button"],L:{"aria-label":"\ub2eb\uae30"},J:[g.bQ()]}]}]},{C:"div",G:"ytp-multicam-menu-items"}]};pT.call(this,a,b,250);this.A=new g.Us(this);g.B(this,this.A);this.K(this.i["ytp-multicam-menu-close"],"click",this.nb);this.o=a;this.Ba=this.i["ytp-multicam-menu-items"];
this.u=[];this.hide()};
wT=function(a,b,c){g.W.call(this,{C:"button",W:["ytp-multicam-button","ytp-button"],L:{title:"\uce74\uba54\ub77c \uc804\ud658","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},J:[g.UP?{C:"div",W:["ytp-icon","ytp-icon-switch-camera"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,L:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});this.B=a;this.u=!1;this.l=b.Za();this.A=new g.J(this.F,400,this);g.B(this,this.A);this.da("click",(0,g.x)(c.Ge,c,this.element,!1));this.K(a,"presentingplayerstatechange",g.Qa(this.o,!1));this.K(a,"videodatachange",this.D);this.o(!0);g.pf(this,gT(this.l,this.element))};
xT=function(){g.A.call(this);this.u=null;this.o=this.g=0;this.l=new g.Ao(this.i,null,this);g.B(this,this.l)};
yT=function(a,b){if("path"==b.C)return b.L.d;if(b.J)for(var c=0;c<b.J.length;c++){var d=b.J[c];if(d&&!g.Da(d)&&(d=yT(a,d)))return d}};
CT=function(a,b,c){c=yT(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=lD();b=b.getElementsByTagName("use");for(var k=0;k<b.length;k++)b[k].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=zT(e),m=zT(c);AT(a,function(n){d.setAttribute("d",BT(l,m,n))},200)};
AT=function(a,b,c){a.u=b;a.o=g.M();a.g=c;a.i()};
zT=function(a){var b=[];a=a.match(lma);for(var c=0;c<a.length;c++){var d=parseFloat(a[c]);b.push(isNaN(d)?a[c]:d)}return b};
BT=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d=g.Fa(f)?d+(f+(b[e]-f)*c):d+f}return d};
ET=function(a,b){var c=g.X(a);g.W.call(this,{C:"button",W:["ytp-mute-button","ytp-button"],L:c.M?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},V:"{{icon}}"});this.updateValue("icon",vQ());this.l=a;this.Z=b.Za();this.F=this.I=this.H=this.P=NaN;this.D=[];this.B=[];this.A=!1;g.X(this.l).D||(this.o=new g.nD({C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"defs",J:[{C:"clipPath",L:{id:"ytp-svg-volume-animation-mask"},J:[{C:"path",
L:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{C:"path",L:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{C:"path",G:"ytp-svg-volume-animation-mover",L:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{C:"clipPath",L:{id:"ytp-svg-volume-animation-slash-mask"},J:[{C:"path",G:"ytp-svg-volume-animation-mover",L:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{C:"path",Ga:!0,W:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],L:{"clip-path":"url(#ytp-svg-volume-animation-mask)",
d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{C:"path",Ga:!0,W:["ytp-svg-fill","ytp-svg-volume-animation-hider"],L:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]}),g.B(this,this.o),this.T=this.o.i["ytp-svg-volume-animation-speaker"],this.ma=this.T.getAttribute("d"),this.D=g.Ed("ytp-svg-volume-animation-mover",this.o.element),this.B=
g.Ed("ytp-svg-volume-animation-hider",this.o.element));this.u=null;this.Y=new xT;g.B(this,this.Y);this.M=new xT;g.B(this,this.M);this.da("click",this.ga);this.K(a,"appresize",this.jc);this.K(a,"onVolumeChange",this.ea);var d=null;c.M?g.pf(this,gT(b.Za(),this.element)):(d="\ud604\uc7ac \uc0ac\uc6a9 \uc911\uc778 \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c \ubcfc\ub968 \ubcc0\uacbd\uc744 \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. $BEGIN_LINK\uc790\uc138\ud788 \uc54c\uc544\ubcf4\uae30$END_LINK".split(/\$(BEGIN|END)_LINK/),
d=new pT(a,{C:"span",W:["ytp-popup","ytp-generic-popup"],L:{tabindex:"0"},J:[d[0],{C:"a",L:{href:"https://support.google.com/youtube/?p=noaudio",target:c.A},V:d[2]},d[4]]},100,!0),g.B(this,d),d.hide(),d.subscribe("show",(0,g.x)(b.Aj,b,d)),g.XK(a,d.element,4));this.X=d;ZK(a,this.element,this,28662);this.jc(g.JK(a).getPlayerSize());DT(this,a.getVolume(),a.isMuted())};
DT=function(a,b,c){var d=c?0:b/100,e=g.X(a.l);if(e.D)d=0==d?vQ():0<d&&.5>d?uQ():tQ(),d!=a.u&&(a.updateValue("icon",d),a.u=d);else{b=0==d?1:50<b?1:0;if(a.H!=b){var f=a.P;isNaN(f)?FT(a,b):AT(a.Y,(0,g.x)(function(l){FT(this,f+(this.H-f)*l)},a),250);
a.H=b}d=0==d?1:0;if(a.F!=d){var k=a.I;isNaN(k)?GT(a,d):AT(a.M,(0,g.x)(function(l){GT(this,k+(this.F-k)*l)},a),250);
a.F=d}}e.M&&(e=KS(a.l,"\uc74c\uc18c\uac70","m"),d=KS(a.l,"\uc74c\uc18c\uac70 \ud574\uc81c","m"),c=c?d:e,a.updateValue("title",c),a.updateValue("label",c),HT(a.Z))};
FT=function(a,b){a.P=b;var c=a.ma;b&&(c+=BT(mma,nma,b));a.T.setAttribute("d",c)};
GT=function(a,b){a.I=b;for(var c=20*b,d=0;d<a.D.length;d++)a.D[d].setAttribute("transform","translate("+c+", "+c+")");var e;1==b?e=vQ():e=a.o;for(c=0;c<a.B.length;c++)a.B[c].style.display=0==b?"none":"";e!=a.u&&(a.updateValue("icon",e),a.u=e)};
IT=function(a,b){g.W.call(this,{C:"button",W:["ytp-pip-button","ytp-button"],L:{title:"{{title}}"},J:[lQ()]});this.l=a;this.updateValue("title","\ud654\uba74 \uc18d \ud654\uba74");this.da("click",this.o);g.pf(this,gT(b.Za(),this.element))};
g.KT=function(a,b){g.W.call(this,{C:"button",W:["ytp-play-button","ytp-button"],L:{title:"{{title}}","aria-label":"{{label}}"},V:"{{icon}}"});this.l=a;this.o=null;this.B=b.Za();this.u=new xT;g.B(this,this.u);this.K(a,"fullscreentoggled",this.A);this.K(a,"presentingplayerstatechange",this.D);this.K(a,"videodatachange",this.A);JT(this,g.IK(a));this.da("click",this.F,this);g.pf(this,gT(b.Za(),this.element))};
LT=function(a){switch(a){case 1:return mQ();case 2:return kQ();case 3:return g.oQ();case 4:return rQ();default:return null}};
JT=function(a,b){var c=g.lC(a.l.getVideoData()),d=!1;if(g.XC(b))var e=c?4:2;else g.T(b,2)?(e=3,d=c):e=1;a.element.disabled=d;if(a.o!=e){c=null;switch(e){case 2:c=KS(a.l,"\uc77c\uc2dc\uc911\uc9c0","k");break;case 3:c="\ub2e4\uc2dc\ubcf4\uae30";break;case 1:c=KS(a.l,"\uc7ac\uc0dd","k");break;case 4:c="\uc2e4\uc2dc\uac04 \uc7ac\uc0dd \uc911\uc9c0"}3==e?a.update({title:c,label:null,icon:LT(e)}):(a.update({title:c,label:c}),(c=LT(e))&&a.o&&3!=a.o&&!g.X(a.l).D?CT(a.u,a.element,c):a.updateValue("icon",c));
HT(a.B);a.o=e}};
g.NT=function(a,b,c){if(c){var d="ytp-next-button";var e=iQ()}else d="ytp-prev-button",e=nQ();g.W.call(this,{C:"a",W:[d,"ytp-button"],L:{title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},J:[e]});this.l=a;this.I=b.Za();this.o=c;this.u=this.O=null;this.H=!1;this.D=this.F=this.A=null;this.B=!1;this.K(a,"fullscreentoggled",this.Ai);this.K(a,"videodatachange",
this.Ai);this.K(a,"onPlaylistUpdate",this.Ai);this.o||this.K(a,"appresize",this.jc);this.K(a,"mdxpreviousnextchange",function(){MT(this);this.jc()});
this.Ai()};
OT=function(a){a.u&&a.u.unsubscribe("shuffle",a.Ai,a)};
PT=function(a){return!!a.u&&!a.o&&!!a.O&&!a.O.sa&&3<=a.l.getCurrentTime()&&2!=a.l.getPresentingPlayerType()};
QT=function(a){var b=g.KK(g.EK(a.l));return b?a.o?b.hasNext():b.Oe():!1};
MT=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=g.X(a.l),d=LK(a.l),e=a.o&&g.YK(a.l),f=QT(a),k=a.o&&5==a.l.getPresentingPlayerType(),l=KS(a.l,"\ub2e4\uc74c","SHIFT+n"),m=KS(a.l,"\uc774\uc804","SHIFT+p");if(k)b.title="\ub3d9\uc601\uc0c1 \uc2dc\uc791";else if(a.B)b.title="\ub2e4\uc2dc\ubcf4\uae30";else if(d){var n=null;a.u&&(n=a.u.ua(a.o?yE(a.u):zE(a.u)));if(n){if(n.videoId){var p=a.u.listId;b.url=c.getVideoUrl(n.videoId,p?p.toString():void 0)}b.text=n.title;b.duration=
n.lengthSeconds?g.oR(n.lengthSeconds):null;b.preview=n.Ac("mqdefault.jpg")}b.title=a.o?l:m}else e&&(a.O&&a.O.suggestions&&a.O.suggestions.length&&(c=g.DS(c,a.O.suggestions[0]),b.url=c.Wh(),b.text=c.title,b.duration=c instanceof g.zB?g.oR(c.lengthSeconds):null,b.preview=c.Ac("mqdefault.jpg")),b.title=l);b.disabled=!e&&!d&&!f&&!k;a.update(b);a.H=!!b.url;e||d||a.B||f||k?a.A||(a.A=gT(a.I,a.element),a.F=a.da("click",a.eH,a)):a.A&&(a.A(),a.A=null,a.Na(a.F),a.F=null);HT(a.I)};
RT=function(){this.i=this.position=this.o=this.g=this.u=this.l=this.width=NaN};
g.TT=function(a,b){g.tD.call(this,{C:"div",G:"ytp-progress-bar-container",L:{"aria-disabled":"true"},J:[{C:"div",W:["ytp-progress-bar",g.X(a).g?"ytp-mobile":""],L:{tabindex:"0",role:"slider","aria-label":"\ud0d0\uc0c9 \uc2ac\ub77c\uc774\ub354","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},J:[{C:"div",G:"ytp-progress-bar-padding"},{C:"div",G:"ytp-progress-list",J:[{C:"div",W:["ytp-play-progress","ytp-swatch-background-color"]},
{C:"div",G:"ytp-load-progress"},{C:"div",G:"ytp-hover-progress"},{C:"div",G:"ytp-clip-start-exclude"},{C:"div",G:"ytp-clip-end-exclude"},{C:"div",G:"ytp-ad-progress-list"},{C:"div",G:"ytp-marker-crenellation-list"},{C:"div",G:"ytp-marker-progress-list"}]},{C:"div",G:"ytp-marker-icons"},{C:"div",G:"ytp-scrubber-container",J:[{C:"div",W:["ytp-scrubber-button","ytp-swatch-background-color"],J:[{C:"div",G:"ytp-scrubber-pull-indicator"}]}]}]},{C:"div",G:"ytp-bound-time-left",V:"{{boundTimeLeft}}"},{C:"div",
G:"ytp-bound-time-right",V:"{{boundTimeRight}}"},{C:"div",G:"ytp-clip-start",L:{title:"{{clipstarttitle}}"},V:"{{clipstarticon}}"},{C:"div",G:"ytp-clip-end",L:{title:"{{clipendtitle}}"},V:"{{clipendicon}}"}]});this.l=a;this.ma=b.Za();this.jb=!1;this.A=this.Ca=0;this.X=1;this.Yb=this.I=0;this.u=null;this.M=this.Ea=0;this.uc=this.i["ytp-ad-progress-list"];this.Oc=this.i["ytp-marker-progress-list"];this.Qc=this.i["ytp-marker-icons"];this.Mb=this.i["ytp-marker-crenellation-list"];this.T={};this.ya={};
this.P={};this.na=[];this.Z=Infinity;var c=b.Za();this.wa=this.i["ytp-clip-end"];g.pf(this,gT(c,this.wa));this.Ia=new g.$s(this.wa,!0);g.B(this,this.Ia);this.Ia.subscribe("hoverstart",this.az,this);this.Ia.subscribe("hoverend",this.Zy,this);this.K(this.wa,"click",this.jo);this.Lb=this.i["ytp-clip-end-exclude"];this.hd=this.i["ytp-clip-start-exclude"];this.ga=0;this.xa=this.i["ytp-clip-start"];g.pf(this,gT(c,this.xa));this.Qa=new g.$s(this.xa,!0);g.B(this,this.Qa);this.Qa.subscribe("hoverstart",this.az,
this);this.Qa.subscribe("hoverend",this.Zy,this);this.K(this.xa,"click",this.jo);this.kd=this.i["ytp-load-progress"];this.ea=0;this.ld=this.i["ytp-play-progress"];this.Sb=this.i["ytp-hover-progress"];this.H=0;this.Xb=this.i["ytp-progress-bar"];this.B=null;this.zd=this.i["ytp-scrubber-button"];this.Ad=this.i["ytp-scrubber-container"];this.Ra=new g.td;this.Rb=new RT;this.o=new yR(0,0);this.F=null;this.D=this.ab=!1;this.Wb=null;this.tb=new g.Us(this);g.B(this,this.tb);this.K(a,"presentingplayerstatechange",
this.gH);this.K(a,"videodatachange",this.uy);this.K(a,"videoplayerreset",this.SD);this.K(a,"cuerangesadded",this.rB);this.K(a,"cuerangesremoved",this.BM);this.K(a,"cuerangemarkersupdated",this.rB);this.K(a,"looprangechange",this.pB);ST(this,a.getVideoData(),!0);this.pB(a.getLoopRange())};
XT=function(a){if(a.A){var b=a.l.getProgressState(),c=new yR(b.seekableStart,b.seekableEnd),d=AR(c,b.loaded,0);b=AR(c,b.current,0);var e=a.o.i!=c.i||a.o.g!=c.g;a.o=c;UT(a,b,d);e&&g.VT(a);WT(a)}};
ST=function(a,b,c){c=void 0===c?!1:c;var d=!!b&&b.isValid();a.ab=d&&b.allowLiveDvr;ZT(a,a.l.fc());c&&(d?(c=b.clipEnd,a.ga=b.clipStart,a.Z=c,$T(a),UT(a,a.H,a.ea)):a.jo(),g.aU(a.ma));XT(a)};
bU=function(a,b,c,d){b=g.pd(b,0,a.D?60:40);a.I=b;var e=a.X,f=Math.max(a.o.getLength()/a.A,1);a.X=b/(a.D?60:40)*(f-1)+1;b=a.A*a.X;a.M=g.pd(d*b-c,0,b-a.A);e!=a.X&&g.VT(a)};
g.VT=function(a){var b=cU(a),c=-b.l/b.g,d=(-b.l+b.width)/b.g,e=Saa(a.Mb),f=0;if(a.I>.2*(a.D?60:40)){var k=c*(a.o.getLength()/60),l=d*(a.o.getLength()/60);for(k=Math.ceil(k);k<l;k++){var m=e[f];m||(m=g.Rd("DIV"),a.Mb.appendChild(m));f++;m.className=0==k%60?"ytp-60m-progress":0==k%30?"ytp-30m-progress":0==k%15?"ytp-15m-progress":"ytp-1m-progress";var n=(60*k/a.o.getLength()-c)*b.g;m.style.left=n+"px"}}b=a.ab?a.o.g:0;a.update({boundTimeLeft:g.oR(zR(a.o,c)-b),boundTimeRight:g.oR(zR(a.o,d)-b)});for(c=
e.length-1;c>=f;c--)g.Wd(e[c]);a.element.style.height=a.I+(a.D?8:5)+"px";a.N("height-change",a.I);a.zd.style.height=a.I+(a.D?20:13)+"px";for(var p in a.T)dU(a,p);eU(a);$T(a);UT(a,a.H,a.ea)};
cU=function(a){var b=a.Ra.x,c=a.A*a.X;b=g.pd(b,0,a.A);a.Rb.update(b,a.A,-a.M,-(c-a.M-a.A));return a.Rb};
UT=function(a,b,c){a.H=b;a.ea=c;var d=cU(a),e=a.o.g,f=zR(a.o,a.H);a.update({ariamin:Math.floor(a.o.i),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:g.UN("$PLAY_PROGRESS/$DURATION",{PLAY_PROGRESS:g.oR(f),DURATION:g.oR(e)})});e=a.ga;f=a.Z;a.F&&2!=a.l.getPresentingPlayerType()&&(e=a.F.startTimeMs/1E3,f=a.F.endTimeMs/1E3);e=AR(a.o,e,0);var k=AR(a.o,f,1);f=g.pd(b,e,k);c=g.pd(c,e,k);g.zh(a.Ad,"transform","translateX("+(b*d.g+d.l)+"px)");fU(a,a.ld,d,e,f);fU(a,a.kd,d,e,c)};
gU=function(a,b,c){b=Math.max(c*b.g+b.l,0);a.style.left=b+"px";return b};
fU=function(a,b,c,d,e,f){f=void 0===f?!1:f;gU(b,c,d);d=g.pd((e-d)*c.g+c.l,0,c.width);f||g.X(a.l).g?b.style.width=d+"px":g.zh(b,"transform","scalex("+(c.width?d/c.width:0)+")")};
$T=function(a){var b=!!a.F&&2!=a.l.getPresentingPlayerType(),c=a.ga,d=a.Z;b&&a.F&&(c=a.F.startTimeMs/1E3,d=a.F.endTimeMs/1E3);var e=c>a.o.i,f=0<a.o.g&&d<a.o.g;g.I(a.element,"ytp-loop-range-enabled",b);g.I(a.element,"ytp-clip-start-enabled",e);g.I(a.element,"ytp-clip-end-enabled",f);b=e?AR(a.o,c,0):0;d=f?AR(a.o,d,1):1;a.xa.style.left=Math.round(1E3*b)/10+"%";a.wa.style.left=Math.round(1E3*d)/10+"%";a.hd.style.width=Math.round(1E3*b)/10+"%";a.Lb.style.left=Math.round(1E3*d)/10+"%";a.Lb.style.width=
Math.round(1E3*(1-d))/10+"%"};
eU=function(a){for(var b=0;b<a.na.length;b++){for(var c=a.P[a.na[b].getId()],d=Number(c.getAttribute("data-left"))-24,e=!1,f=b-1;0<=f;f--){var k=a.P[a.na[f].getId()];if("none"!=k.style.display){Number(k.getAttribute("data-left"))>d&&(e=!0);break}}c.style.display=e?"none":""}};
WT=function(a){var b=cU(a);fU(a,a.Sb,b,a.H,b.i);g.I(a.Sb,"ytp-hover-progress-light",b.i>a.H)};
dU=function(a,b){var c=a.T[b],d=a.ya[b],e=cU(a),f=AR(a.o,c.start/1E3,0),k=Eha(c,a.D),l=k/e.width;switch(c.style){case "ytp-chapter-marker":var m=f+l/2;f-=l/2;d.style.borderRadius=k+"px";break;default:m=AR(a.o,c.end/1E3,1),l!=Number.POSITIVE_INFINITY&&(f=g.pd(f,0,m-l)),m=Math.min(m,f+l)}c.color&&(d.style.background=c.color);fU(a,d,e,f,m,!0);(c=a.P[b])&&c.setAttribute("data-left",gU(c,e,f))};
hU=function(a,b){var c=b.getId();if(a.T[c]==b){g.Wd(a.ya[c]);delete a.T[c];delete a.ya[c];var d=a.P[c];d&&(g.Wd(d),delete a.P[c],c=a.na,d=g.ob(c,b,g.sE),0<=d&&g.bb(c,d))}};
ZT=function(a,b){b?a.B||(a.element.removeAttribute("aria-disabled"),a.B=new g.$s(a.Xb,!0),a.B.subscribe("hovermove",a.GK,a),a.B.subscribe("hoverend",a.FK,a),a.B.subscribe("dragstart",a.EK,a),a.B.subscribe("dragmove",a.IK,a),a.B.subscribe("dragend",a.HK,a),a.Wb=a.da("keydown",a.hH)):a.B&&(a.element.setAttribute("aria-disabled",!0),a.Na(a.Wb),a.B.cancel(),a.B.dispose(),a.B=null)};
g.iU=function(a){var b=2*a.A*g.Dz();return 1E3*a.o.getLength()/a.l.getPlaybackRate()/b};
jU=function(a,b){var c=g.wD({role:"menuitemcheckbox","aria-checked":"false"});g.vD.call(this,c,b,a,{C:"div",G:"ytp-menuitem-toggle-checkbox"});this.o=!1;this.da("click",this.I)};
kU=function(a,b){a.o=b;a.element.setAttribute("aria-checked",a.o)};
lU=function(a,b){jU.call(this,"\ud2b9\uc218\ud6a8\uacfc",5);this.A=b;this.u=a;this.l=!1;this.K(a,"videodatachange",this.B);this.K(a,"onApiChange",this.B);this.subscribe("select",this.D,this);this.B()};
mU=function(a,b,c,d,e){var f={C:"div",G:"ytp-panel"};if(c){var k="ytp-panel-title";var l={C:"div",G:"ytp-panel-header",J:[{C:"button",W:["ytp-button",k],J:[c]}]};if(e){var m="ytp-panel-options";l.J.push({C:"button",W:["ytp-button",m],J:[d]})}f.J=[l]}g.tD.call(this,f);this.X=b;b.g(this.element);this.ea=!1;c&&(this.K(this.i[k],"click",this.na),this.ea=!0,e&&this.K(this.i[m],"click",e));b.subscribe("size-change",this.ma,this);this.K(a,"fullscreentoggled",this.ma)};
g.nU=function(a,b,c,d,e){b=void 0===b?null:b;var f={role:"menu"};b&&(f.id=b);b=new g.tD({C:"div",G:"ytp-panel-menu",L:f});mU.call(this,a,b,c,d,e);this.D=b;g.B(this,this.D);this.Ba=[]};
g.oU=function(a,b,c){if(void 0===c?0:c)a.Ba.push(b),a.D.element.appendChild(b.element);else{c=g.ob(a.Ba,b,oma);if(0<=c)return;c=~c;g.kb(a.Ba,c,0,b);Vd(a.D.element,b.element,c)}b.subscribe("size-change",a.Z,a);a.D.N("size-change")};
g.pU=function(a,b){b.unsubscribe("size-change",a.Z,a);a.fa()||(g.cb(a.Ba,b),a.D.element.removeChild(b.element),a.D.N("size-change"))};
g.qU=function(a){for(var b=g.q(a.Ba),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.Z,a);a.Ba=[];g.Ud(a.D.element);a.D.N("size-change")};
oma=function(a,b){return b.priority-a.priority};
g.rU=function(a,b,c,d,e,f){var k=g.wD({"aria-haspopup":"true"});g.vD.call(this,k,b,a);this.o=d;this.H=!1;this.D=null;this.u={};this.F=new g.nU(c,void 0,a,e,f);g.B(this,this.F);this.da("keydown",this.lH);this.da("click",this.open)};
sU=function(a){if(a.D){var b=a.u[a.D];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.D=null}};
g.tU=function(a,b){g.qU(a.F);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.u[f],l=f==a.D;l&&(d=!0);k&&k.priority==-e?(l=a,g.uD(l.u[f],l.ze(f,!0)),delete a.u[f]):k=a.Ap(f,-e,l);c[f]=k;g.oU(a.F,k,!0)}d||(a.D=null);for(var m in a.u)a.u[m].dispose();a.u=c};
uU=function(a,b){g.rU.call(this,"\uc624\ub514\uc624 \ud2b8\ub799",2,a,b);this.l=a;this.I=new g.W({C:"div",J:[{C:"span",V:"\uc624\ub514\uc624 \ud2b8\ub799"},{C:"span",G:"ytp-menuitem-label-count",V:"{{content}}"}]});g.uD(this,this.I);this.M={};this.K(a,"videodatachange",this.B);this.K(a,"onPlaybackAudioChange",this.B);this.B()};
vU=function(a,b){jU.call(this,"\uc790\ub3d9\uc7ac\uc0dd",6);this.D=b;this.l=a;this.A=!1;this.u=[];this.K(a,"presentingplayerstatechange",this.B);this.subscribe("select",this.H,this);this.B()};
g.wU=function(a,b){pT.call(this,a,{C:"div",W:["ytp-popup",b||null]},100,!0);this.u=[];this.size=new g.vd(0,0);this.B=this.D=null;this.M=this.P=0;this.da("keydown",this.WG)};
yU=function(a){g.Rh(a.element,a.P||"100%",a.M||"100%");var b=xU(a);b.element.style.minWidth="250px";b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.X.element.style.height="";var c=g.Sh(b.element);c.width+=1;c.height+=1;b.element.style.width=c.width+"px";b.element.style.height=c.height+"px";b.element.style.maxWidth="";b.element.style.maxHeight="";var d=0;b.ea&&(d=g.Sh(b.i["ytp-panel-header"]).height);b.X.element.style.height=c.height-
d+"px";d=b.element;var e=d.scrollWidth-d.clientWidth;0<d.offsetWidth-d.clientWidth&&0<e&&(c.width+=e,b.element.style.width=c.width+"px");a.size=c};
g.AU=function(a,b){var c=a.u[a.u.length-1];a.u.push(b);zU(a,c,b)};
g.BU=function(a){var b=a.u.pop(),c=a.u[0];a.u=[c];zU(a,b,c,!0)};
zU=function(a,b,c,d){CU(a);xU(a);g.oo(c.element,"ytp-panel-animate-back")||g.oo(c.element,"ytp-panel-animate-forward");b&&(b.unsubscribe("size-change",a.Ui,a),b.unsubscribe("back",a.Gd,a));c.subscribe("size-change",a.Ui,a);c.subscribe("back",a.Gd,a);if(a.Fa()){g.H(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.g(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;yU(a);g.Rh(a.element,e);a.D=new g.J(g.Qa(a.ZM,b,c,d),20,a);a.D.start()}else c.g(a.element),
b&&g.qD(b)};
xU=function(a){return a.u[a.u.length-1]};
CU=function(a){a.D&&g.Eo(a.D);a.B&&g.Eo(a.B)};
DU=function(a,b){g.rU.call(this,"\ud488\uc9c8",1,a,b);g.H(this.F.element,"ytp-quality-menu");this.l=a;this.B={};this.A="unknown";this.K(a,"videodatachange",this.Bk);this.K(a,"videoplayerreset",this.Bk);this.K(a,"onPlaybackQualityChange",this.vy);this.Bk()};
EU=function(a,b,c){a=a.B[b];var d=g.iw[b];c={C:"span",W:c,J:[]};c.J.push(a?a.qualityLabel:d?d+"p":"\uc790\ub3d9");var e;"highres"==b?e="8K":"hd2880"==b?e="5K":"hd2160"==b?e="4K":0==b.indexOf("hd")&&(e="HD");e&&(c.J.push(" "),c.J.push({C:"sup",G:"ytp-swatch-color",V:e}));return c};
FU=function(a,b,c){g.W.call(this,{C:"button",W:["ytp-button","ytp-settings-button"],L:{"aria-haspopup":"true","aria-owns":lD(),title:"\uc124\uc815"},J:[g.qQ()]});this.u=c;this.l=a;this.A=!0;this.da("click",this.B);this.K(a,"onPlaybackQualityChange",this.o);this.K(a,"videodatachange",this.o);this.K(a,"webglsettingschanged",this.o);this.K(a,"appresize",this.jc);g.pf(this,gT(b.Za(),this.element));this.o();this.jc(g.JK(a).getPlayerSize())};
GU=function(a,b){a.A=!!b;a.jc(g.JK(a.l).getPlayerSize())};
HU=function(a,b,c,d,e,f,k){g.W.call(this,{C:"div",G:"ytp-slider-section",L:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},J:[{C:"div",G:"ytp-slider",J:[{C:"div",G:"ytp-slider-handle"}]}]});this.minimumValue=c;this.maximumValue=d;this.B=this.maximumValue-this.minimumValue;this.I=e;this.M=f;this.P=this.i["ytp-slider-section"];this.o=this.i["ytp-slider"];this.T=this.i["ytp-slider-handle"];this.H=
a;this.D=b;this.l=k?k:c;this.F=new g.$s(this.o,!0);g.B(this,this.F);this.F.subscribe("dragmove",this.uL,this);this.K(this.element,"keydown",this.xL);this.K(this.element,"wheel",this.gK);this.yh(this.l);this.updateValue("minvalue",this.minimumValue);this.updateValue("maxvalue",this.maximumValue)};
JU=function(a){var b=a.getAvailablePlaybackRates(),c=a.getPlaybackRate();HU.call(this,.05,.05,b[0],b[b.length-1],150,20,c);g.H(this.o,"ytp-speedslider");this.A=a;this.u=g.Rd("P");g.H(this.u,"ytp-speedslider-text");a=this.u;b=this.o;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);this.Y=taa(this.X,this);IU(this);this.K(this.A,"onPlaybackRateChange",this.Z)};
IU=function(a){a.u.innerText=KU(a,a.l)+"x"};
KU=function(a,b){var c=parseFloat(g.pd(b,a.minimumValue,a.maximumValue).toFixed(2)),d=Math.floor(100*(c+.001)%5+2E-15),e=c;0!=d&&(e=c-.01*d);return parseFloat(e.toFixed(2))};
LU=function(a){g.tD.call(this,{C:"div",G:"ytp-speedslider-component"});this.l=new JU(a);this.element.appendChild(this.l.element)};
MU=function(a){mU.call(this,a,new LU(a),"\ub9de\ucda4\uc124\uc815")};
NU=function(a,b){g.rU.call(this,"\uc7ac\uc0dd \uc18d\ub3c4",4,a,b,"\ub9de\ucda4\uc124\uc815",function(){return g.AU(b,new MU(a))});
this.l=a;this.M=null;this.I=this.l.getAvailablePlaybackRates();this.B=this.A=null;this.K(a,"presentingplayerstatechange",this.Ay);this.Ay()};
PU=function(a,b){var c=OU(b);a.u[c]?a.le(c):b==a.B&&a.A&&(a.le(a.A),a.ob(b.toString()))};
RU=function(a){g.tU(a,a.I.map(OU));a.A=null;a.B=null;var b=a.l.getPlaybackRate();a.I.includes(b)||(QU(a,b),g.rU.prototype.Lc.call(a,a.A))};
QU=function(a,b){a.B=b;a.A=g.UN("\ub9de\ucda4 \uc124\uc815($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});var c=a.I.map(OU);c.unshift(a.A);g.tU(a,c)};
OU=function(a){return a.toString()};
SU=function(a){var b=null;try{b=a.toLocaleString("ko",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
TU=function(a,b,c,d){var e=new g.nU(b,void 0,"\ub3d9\uc601\uc0c1 \uc7ac\uc815\uc758");g.rU.call(this,d.text||"",a,b,c,"\ub3d9\uc601\uc0c1 \uc7ac\uc815\uc758",function(){return g.AU(c,e)});
g.H(this.element,"ytp-subtitles-options-menu-item");this.I=d.option.toString();a=d.options;this.M=g.tb(a,this.Ey,this);this.B=e;g.B(this,this.B);b=new g.vD({C:"div",G:"ytp-menuitemtitle",V:"\ub3d9\uc601\uc0c1\uc5d0\uc11c \uc9c0\uc815\ud55c \uacbd\uc6b0 \ub2e4\ub978 \uc790\ub9c9 \uc2a4\ud0c0\uc77c\uc744 \ud5c8\uc6a9\ud569\ub2c8\ub2e4."},0);g.B(this,b);g.oU(this.B,b,!0);this.A=new g.vD({C:"div",G:"ytp-menuitem",L:{role:"menuitemradio",tabindex:"0"},J:[{C:"div",G:"ytp-menuitem-label",V:"\uc0ac\uc6a9"}]},
-1);g.B(this,this.A);g.oU(this.B,this.A,!0);this.K(this.A.element,"click",g.Qa(this.Fy,!0));this.l=new g.vD({C:"div",G:"ytp-menuitem",L:{role:"menuitemradio",tabindex:"0"},J:[{C:"div",G:"ytp-menuitem-label",V:"\uc0ac\uc6a9 \uc548\ud568"}]},-2);g.B(this,this.l);g.oU(this.B,this.l,!0);this.K(this.l.element,"click",g.Qa(this.Fy,!1));g.tU(this,(0,g.ge)(a,this.Ey))};
VU=function(a,b){g.nU.call(this,a,void 0,"\uc635\uc158");this.l={};for(var c=0;c<g.UU.length;c++){var d=g.UU[c],e=new TU(-c,a,b,d);g.B(this,e);e.subscribe("settingChange",this.o,this);this.l[d.option.toString()]=e;g.oU(this,e,!0)}c=new g.vD(g.wD(),-g.UU.length,"\uc7ac\uc124\uc815");g.B(this,c);c.da("click",(0,g.x)(this.o,this,"reset",!0));g.oU(this,c,!0)};
WU=function(a,b){for(var c in b){var d=a.l[c];if(d){var e=b[c].toString(),f=!!b[c+"Override"];d.u[e]&&(d.le(e),d.A.element.setAttribute("aria-checked",!f),d.l.element.setAttribute("aria-checked",f))}}};
XU=function(a,b){g.rU.call(this,"\uc790\ub3d9 \ubc88\uc5ed",0,a,b);this.l={}};
pma=function(a,b){a.l=g.tb(b,a.A,a);g.tU(a,(0,g.ge)(b,a.A))};
YU=function(a,b){var c=new VU(a,b);g.rU.call(this,"\uc790\ub9c9",3,a,b,"\uc635\uc158",function(){return g.AU(b,c)});
this.l=a;this.B={};this.M=new g.J(g.Qa(this.Dy,!1),3E3,this);g.B(this,this.M);this.P=new g.W({C:"div",J:[{C:"span",V:"\uc790\ub9c9"},{C:"span",G:"ytp-menuitem-label-count",V:"{{content}}"}]});g.B(this,this.P);g.uD(this,this.P);this.A=new XU(a,b);g.B(this,this.A);this.A.subscribe("select",this.xH,this);this.I=c;g.B(this,this.I);this.I.subscribe("settingChange",this.wH,this);b.subscribe("show",this.pL,this);this.K(a,"videodatachange",this.Ck);this.K(a,"onApiChange",this.Ck);this.K(a,"onCaptionsTrackListChanged",
this.Ck);this.K(a,"captionschanged",this.Ck);this.Ck()};
ZU=function(a){g.wU.call(this,a,"ytp-settings-menu");this.o=a;this.A=new g.nU(a);g.B(this,this.A);this.F=null;this.Z=!1;this.hide();g.AU(this,this.A)};
$U=function(a){if(!a.Z){a.Z=!0;var b=new DU(a.o,a);g.B(a,b);b=new YU(a.o,a);g.B(a,b);b=new lU(a.o,a);g.B(a,b);g.X(a.o).wa&&(b=new NU(a.o,a),g.B(a,b));g.X(a.o).Qa&&(b=new vU(a.o,a),g.B(a,b));b=new uU(a.o,a);g.B(a,b);GU(a.F,a.A.Ba.length)}};
aV=function(a,b){$U(a);g.oU(a.A,b);GU(a.F,a.A.Ba.length)};
bV=function(a,b){a.Fa()&&1>=a.A.Ba.length&&a.hide();g.pU(a.A,b);GU(a.F,a.A.Ba.length)};
qma=function(a,b){a.F=b;a.element.id=b.element.getAttribute("aria-owns")};
cV=function(a,b,c){g.W.call(this,{C:"button",G:"ytp-button",L:{title:"TV\uc5d0\uc11c \uc7ac\uc0dd","aria-haspopup":"true"},V:"{{icon}}"});this.l=a;this.A=c;this.u=null;this.K(a,"onMdxReceiversChange",this.o);this.K(a,"presentingplayerstatechange",this.o);this.K(a,"appresize",this.o);this.o();this.da("click",this.B,this);g.pf(this,gT(b.Za(),this.element))};
dV=function(a,b){g.W.call(this,{C:"button",W:["ytp-size-button","ytp-button"],L:{title:"{{title}}"},V:"{{icon}}"});this.l=a;this.A=b.Za();this.u=null;this.B=new xT;g.B(this,this.B);this.K(a,"sizestylechange",this.o);this.K(a,"fullscreentoggled",this.o);this.K(a,"presentingplayerstatechange",this.o);this.o();this.da("click",this.D);g.pf(this,gT(this.A,this.element))};
eV=function(a,b){g.W.call(this,{C:"button",W:["ytp-subtitles-button","ytp-button"],L:{"aria-pressed":"{{pressed}}",title:KS(a,"\uc790\ub9c9","c")},J:[sQ()]});this.o=a;this.K(a,"videodatachange",this.l);this.K(a,"appresize",this.l);this.K(a,"onApiChange",this.l);this.K(a,"onCaptionsTrackListChanged",this.l);this.K(a,"captionschanged",this.l);this.l();this.da("click",this.u);g.pf(this,gT(b.Za(),this.element))};
g.gV=function(a,b){g.W.call(this,{C:"div",W:["ytp-time-display","notranslate"],J:[{C:"span",G:"ytp-time-current",V:"{{currenttime}}"},{C:"span",G:"ytp-time-separator",V:" / "},{C:"span",G:"ytp-time-duration",V:"{{duration}}"}]});this.l=new g.W({C:"button",W:["ytp-live-badge","ytp-button"],L:{disabled:"true"},V:"{{content}}"});this.l.ob("\uc2e4\uc2dc\uac04");g.B(this,this.l);this.l.g(this.element);this.u=a;this.I=b.Za();this.o=null;this.A=!1;this.F=null;this.H=!1;this.D=this.B=null;this.da("click",
this.M);this.K(a,"presentingplayerstatechange",this.Nc);this.K(a,"appresize",this.Nc);this.K(a,"videodatachange",this.P);var c=a.getVideoData();c&&fV(this,c);this.Nc()};
fV=function(a,b){a.A=b.sa;a.H=b.isPremiere;g.I(a.element,"ytp-live",a.A)};
iV=function(a,b,c){g.W.call(this,{C:"div",G:"ytp-volume-panel",L:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},J:[{C:"div",G:"ytp-volume-slider",J:[{C:"div",G:"ytp-volume-slider-handle"}]}]});this.l=a;this.D=b;this.P=c;this.I=!1;this.F=b.ec();this.Y=this.A=0;this.T=this.i["ytp-volume-slider"];this.X=this.i["ytp-volume-slider-handle"];this.H=new g.$s(this.T,!0);g.B(this,this.H);this.H.subscribe("dragstart",this.wL,
this);this.H.subscribe("dragmove",this.vL,this);this.H.subscribe("dragend",this.tL,this);this.M=null;this.o=this.u=this.B=!1;this.K(a,"onVolumeChange",this.BH);this.K(a,"appresize",this.jc);this.K(a,"fullscreentoggled",this.yH);this.K(a,"onShowControls",this.jv);this.K(a,"onHideControls",this.jv);this.K(this.element,"keydown",this.yL);this.K(this.element,"focus",g.Qa(this.Gy,!0));this.K(this.element,"blur",g.Qa(this.Gy,!1));this.jc(g.JK(a).getPlayerSize());hV(this,a.getVolume(),a.isMuted())};
hV=function(a,b,c){var d=Math.floor(b),e=d+"% \ubcfc\ub968"+(c?" \uc74c\uc18c\uac70\ub428":"");c=c?0:b/100;a.updateValue("valuenow",d);a.updateValue("valuetext",e);a.X.style.left=(a.F?60:40)*c+"px";a.A=b};
jV=function(a,b,c,d,e){var f=a.u||a.B||a.o||a.I;a.u=b;a.B=c;a.o=d;a.I=e;b=a.u||a.B||a.o||a.I;f!=b&&(b?a.M=a.K(a.element,"wheel",a.zH):(a.Na(a.M),a.M=null),g.I(a.P,"ytp-volume-slider-active",b))};
g.kV=function(a,b){var c=g.X(a),d=Az(c);0==d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],f=g.iz(c);f&&e.push("ytp-youtube-music-button");g.W.call(this,{C:"a",W:e,L:{href:"{{url}}",target:c.A,title:g.UN("$WEBSITE\uc5d0\uc11c \ubcf4\uae30",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},J:[f?g.UP?{C:"div",W:["ytp-icon","ytp-icon-youtube-music-logo"]}:{C:"svg",L:{viewBox:"0 0 77 20"},J:[{C:"g",L:{fill:"none"},J:[{C:"path",L:{d:"M27.71 3.30a3.53 3.53 0 0 0-2.49-2.49c-2.19-.59-11.00-.59-11.00-.59s-8.81 0-11.00.59A3.53 3.53 0 0 0 .71 3.30c-.59 2.20-.59 6.8-.59 6.8s0 4.59.59 6.8a3.53 3.53 0 0 0 2.49 2.49c2.19.59 11.00.59 11.00.59s8.81 0 11.00-.59a3.53 3.53 0 0 0 2.49-2.49c.59-2.20.59-6.8.59-6.8s-.00-4.59-.59-6.8z",
fill:"red"}},{C:"path",L:{d:"M11.39 14.34l7.32-4.23-7.32-4.24zM40.69 7.88c-.50 2.56-.88 5.69-1.08 6.98h-.14c-.16-1.33-.54-4.44-1.06-6.97l-1.29-6.28h-3.92v16.95h2.43V4.60l.24 1.30 2.47 12.66h2.43L43.21 5.91l.26-1.31v13.97h2.43V1.62h-3.96L40.7 7.88zm11.80 8.14c-.22.46-.70.78-1.19.78-.56 0-.78-.44-.78-1.53V6.19h-2.78v9.25c0 2.28.74 3.33 2.39 3.33 1.12 0 2.03-.50 2.66-1.71h.06l.24 1.51h2.17V6.19h-2.78v9.84h.00zm8.15-4.94c-.90-.66-1.47-1.11-1.47-2.08 0-.68.32-1.07 1.08-1.07.78 0 1.04.54 1.06 2.40l2.33-.1c.18-3.01-.80-4.26-3.36-4.26-2.37 0-3.54 1.07-3.54 3.27 0 2 .96 2.91 2.53 4.1 1.35 1.05 2.13 1.63 2.13 2.48 0 .64-.40 1.09-1.10 1.09-.82 0-1.31-.78-1.18-2.16l-2.35.04c-.36 2.56.66 4.06 3.40 4.06 2.39 0 3.64-1.11 3.64-3.33.00-2.02-1.00-2.82-3.18-4.44zm4.71-4.88h2.66v12.38h-2.66zm1.35-4.88c-1.02 0-1.51.38-1.51 1.71 0 1.37.48 1.71 1.51 1.71 1.04 0 1.51-.34 1.51-1.71 0-1.27-.46-1.71-1.51-1.71zm10.25 12.80l-2.43-.12c0 2.18-.24 2.88-1.06 2.88s-.96-.78-.96-3.35V11.12c0-2.48.16-3.27.98-3.27.76 0 .96.74.96 3.05l2.41-.16c.16-1.92-.08-3.23-.82-3.98-.54-.54-1.37-.80-2.51-.80-2.7 0-3.80 1.45-3.80 5.53v1.73c0 4.20.94 5.55 3.70 5.55 1.17 0 1.97-.24 2.51-.76.78-.73 1.08-1.98 1.02-3.90z",
fill:"#fff"}}]}]}:g.UP?{C:"div",W:["ytp-icon","ytp-icon-logo"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.1
this.l=a;this.o=!1;ZK(a,this.element,this,28666);this.da("click",this.A);this.K(a,"videodatachange",this.u);this.u();g.pf(this,gT(b.Za(),this.element))};
lV=function(a,b,c){g.Us.call(this);var d=this,e=g.X(a);this.l=a;this.o=b;this.oa=NaN;this.ga=null;this.M=c;this.M.subscribe("autohideupdate",this.Cy,this);c=!g.IK(a).isCued();var f;g.iz(e)||g.O(g.X(a).experiments,"html5_player_dynamic_bottom_gradient")?this.ea=f=new g.jT(a):f=new g.W({C:"div",G:"ytp-gradient-bottom"});g.B(this,f);g.XK(a,f.element,8);this.aa=new g.GQ(f,250,c,100);g.B(this,this.aa);this.i=new g.W({C:"div",G:"ytp-chrome-bottom",J:[{C:"div",G:"ytp-chrome-controls"}]});g.B(this,this.i);
g.XK(a,this.i.element,8);this.T=new g.GQ(this.i,250,c,100);g.B(this,this.T);this.Y=this.i.element.children[0];this.g=new ZU(a);g.pf(this.g,function(){a.H==d.g&&(a.H=null)});
g.B(this,this.g);a.H=this.g;g.XK(a,this.g.element,6);this.g.subscribe("show",this.qN,this);this.g.subscribe("show",(0,g.x)(b.it,b,this.g));this.B=new g.TT(a,b);g.B(this,this.B);this.B.g(this.i.element,0);c=new g.lT(a);g.B(this,c);g.XK(a,c.element,4);c=new g.nD({C:"div",G:"ytp-left-controls"});g.B(this,c);c.g(this.Y);f=new g.NT(a,b,!1);g.B(this,f);f.g(c.element);e.R||(f=new g.KT(a,b),g.B(this,f),f.g(c.element));f=new g.NT(a,b,!0);g.B(this,f);f.g(c.element);var k=new g.W({C:"span"});g.B(this,k);k.g(c.element);
if(!e.ea&&(this.A=new ET(a,b),g.B(this,this.A),this.A.g(k.element),e.M)){f=new iV(a,b,this.i.element);g.B(this,f);f.g(k.element);k=new g.$s(k.element);g.B(this,k);var l=(0,g.x)(f.HA,f,!0);k.subscribe("hoverstart",l);k=new g.$s(c.element);g.B(this,k);f=(0,g.x)(f.HA,f,!1);k.subscribe("hoverend",f)}this.X=new g.gV(a,b);g.B(this,this.X);this.X.g(c.element);c=new g.nD({C:"div",G:"ytp-right-controls"});g.B(this,c);c.g(this.Y);this.I=null;g.O(e.experiments,"external_fullscreen_with_edu")&&e.externalFullscreen&&
Cz(e)&&(this.I=new oT(a,b),g.B(this,this.I),this.I.g(c.element));f=new eV(a,b);g.B(this,f);f.g(c.element);f=new FU(a,b,this.g);g.B(this,f);qma(this.g,f);f.g(c.element);f=new vT(a);g.B(this,f);g.XK(a,f.element,5);f.subscribe("show",(0,g.x)(b.Ug,b,f));f=new wT(a,b,f);g.B(this,f);f.g(c.element);f=a.getVideoData();if(e.ej||f.Pb&&"1"==e.l)this.D=new g.kV(a,b),g.B(this,this.D),this.D.g(c.element);e.showMiniplayerButton&&!g.O(g.X(a).experiments,"web_player_pip")&&(this.u=new uT(a,b),g.B(this,this.u),this.u.g(c.element));
this.R=new IT(a,b);g.B(this,this.R);this.R.g(c.element);f.kt||this.R.hide();e.Sb||(f=new dV(a,b),g.B(this,f),f.g(c.element));e.Mb&&(f=new cV(a,b,this.g),g.B(this,f),f.g(c.element));e.Gh&&(e=new hT(a,b),g.B(this,e),e.g(c.element));this.Z=new g.tT(a,b);g.B(this,this.Z);this.Z.g(c.element);this.F=new g.Ao(this.uH,null,this);g.B(this,this.F);this.H=null;this.K(a,"appresize",this.Va);this.K(a,"fullscreentoggled",this.Va);this.K(a,"presentingplayerstatechange",this.Xr);this.K(a,"videodatachange",this.vH);
this.Va()};
mV=function(a,b){g.IK(a.l).isCued()||b?b&&(a.T.hide(),a.aa.hide(),a.A&&a.A.qb(!1),a.D&&a.D.qb(!1),a.u&&a.u.qb(!1),a.o.Za().sf(a.ha())):b||(a.T.show(),a.aa.show(),a.A&&a.A.qb(!0),a.D&&a.D.qb(!0),a.u&&a.u.qb(!0),a.Cy())};
oV=function(a){var b=g.JK(a.l).getPlayerSize().width;return Math.max(b-2*nV(a),100)};
nV=function(a){var b=a.o.ec();return 12*(a.l.getVideoData().Pb?0:b?2:1)};
qV=function(a){var b=tv(g.X(a).experiments,"mweb_muted_autoplay_animation"),c=[],d=[];"none"!=b&&(c.push("ytp-unmute-animated"),d.push({C:"div",W:["ytp-unmute-box"]}),"expand"==b?c.push("ytp-unmute-expand"):"shrink"==b&&c.push("ytp-unmute-shrink"));pT.call(this,a,{C:"button",W:["ytp-unmute","ytp-popup","ytp-button"].concat(c),J:[{C:"div",G:"ytp-unmute-inner",J:[{C:"div",W:["ytp-unmute-icon"],J:[g.UP?{C:"div",W:["ytp-icon","ytp-icon-volume-muted-dark"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{C:"div",W:["ytp-unmute-text"],V:"\ud0ed\ud558\uc5ec \uc74c\uc18c\uac70 \ud574\uc81c"}].concat(d)}]},100);this.o=a;this.u=this.A=!1;ZK(this.o,this.element,this,51663);this.K(a,"mutedautoplaychange",this.B,this);this.K(a,"presentingplayerstatechange",this.D);this.da("click",this.onClick,this);a=a.isMutedByMutedAutoplay();g.sD(this,a);a&&pV(this)};
rV=function(a){a.A||(a.A=!0,g.$K(a.o,a.element))};
pV=function(a){a.u||(a.u=!0,g.aL(a.o,a.element,!0))};
g.sV=function(a){g.Us.call(this);var b=g.X(a),c=g.JK(a);this.api=a;this.Yb=!1;this.D=null;this.Sb=!1;this.Rb=new g.J(this.CI,0,this);g.B(this,this.Rb);this.ga=new CS(a);g.B(this,this.ga);g.XK(a,this.ga.element,4);var d=ir()&&67<=gr();if(!hr("tizen")&&!Yy&&!d){var e=new fT(a);g.B(this,e);e=e.element;g.XK(a,e,4)}d=a.getVideoData();this.i=new AS(c,(0,g.x)(this.HG,this),d,b.ld);g.B(this,this.i);this.i.subscribe("autohideupdate",this.Fk,this);var f=new bT(a);g.B(this,f);g.XK(a,f.element,4);this.Ca=new qV(a);
g.B(this,this.Ca);g.XK(this.api,this.Ca.element,2);this.Wb=this.api.isMutedByMutedAutoplay();this.K(a,"mutedautoplaychange",this.IG);this.xa=new g.J(this.Hn,200,this);g.B(this,this.xa);this.Ya=d.videoId;this.o=null;this.Lb=!1;this.Mb=null;this.Ea=[];d=a.getRootNode();d.setAttribute("aria-label","YouTube \ub3d9\uc601\uc0c1 \ud50c\ub808\uc774\uc5b4");switch(b.color){case "white":g.H(d,"ytp-color-white")}g.iz(b)&&g.H(d,"ytp-music-player");!g.O(g.X(a).experiments,"disable_mediasession2")&&navigator.mediaSession&&
!navigator.mediaSession.metadata&&navigator.mediaSession.setActionHandler&&(d=new aT(a),g.B(this,d));this.T=null;this.K(a,"appresize",this.zi);this.K(a,"presentingplayerstatechange",this.BK);this.K(a,"videodatachange",this.ly);this.K(a,"videoplayerreset",this.yK);this.K(a,"autonavvisibility",this.Tf,this);this.K(a,"sizestylechange",this.Tf,this);g.O(g.X(a).experiments,"player_minimized_controls_killswitch")&&this.K(a,"minimized",this.Kd,this);this.K(a,"onFrescaStateChange",this.Kd,this);this.K(c,
"click",this.bL,this);this.K(c,"dblclick",this.cL,this);b.X&&(this.K(c,"gesturechange",this.dL,this),this.K(c,"gestureend",this.eL,this));this.na=[c.u,this.ga.element];e&&this.na.push(e)};
tV=function(a){return g.O(g.X(a.api).experiments,"player_minimized_controls_killswitch")?a.api.app.F.g:!1};
uV=function(a,b){if(!b)return!1;var c=a.api.app.u;if(c.xg()&&(c=c.ha())&&g.$d(c,b))return c.controls;for(c=0;c<a.na.length;c++)if(g.$d(a.na[c],b))return!1;return g.oo(b,"ytp-player-content")||g.oo(b,"html5-endscreen")||b==a.api.getRootNode()?!1:!0};
wV=function(a){return 2==a.api.getPresentingPlayerType()&&g.JK(a.api).B&&g.X(a.api).g&&vV&&11<=kC};
xV=function(a,b){if(!uV(a,ns(b))&&(a.i.Fb(2,!0),g.pR(b)&&!g.X(a.api).R))if(a.Qh())g.qs(b);else{var c=g.IK(a.api);g.T(c,2)&&FK(a.api)||a.my(c);if(!g.X(a.api).X||c.isCued()||g.T(c,1024)){var d=a.api.app.Ca;CD(a.api,"embedsShouldRequestStorageAccessResult",{result:!!d,returnsUndefined:void 0===d});var e=g.T(c,2048);d&&(c.isCued()||e)?(CD(a.api,"embedsRequestStorageAccessState",{isCued:c.isCued(),isAutoplayBlocked:e}),rma(a)):(!d||c.isCued()&&e||CD(a.api,"embedsRequestStorageAccessFailedState",{state:c.g}),
a.Hn())}else a.xa.isActive()?(a.Sw(),a.xa.stop()):a.xa.start()}};
rma=function(a){hL(function(){CD(a.api,"embedsRequestStorageAccessResult",{resolved:!0});By(!0);Vr();window.location.reload()},function(){CD(a.api,"embedsRequestStorageAccessResult",{resolved:!1});
a.Hn()})};
yV=function(a,b){if(g.pR(b)&&a.api.isMutedByMutedAutoplay()){a.api.unMute();2==a.api.getPresentingPlayerType()&&a.api.playVideo();var c=g.IK(a.api);!g.T(c,4)||g.T(c,8)||g.T(c,2)||a.Hn();return!0}return!1};
zV=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
sma=function(a){if(AV(a))return!1;var b=a.api.getVideoData();if(b.vx)return!1;var c=!!a.Ya&&!a.api.Re();if(2==a.api.getPresentingPlayerType())return a=g.EK(a.api).o,c&&(null===a.g?c=!1:(c=a.g,c=(a=c.g.getVideoData(2))?a.he&&!c.I:!1)),c;var d=g.X(a.api);if(!a.T){var e;b.yj?(e=b.yj.embedPreview)?(e=e.thumbnailPreviewRenderer,e=e.videoDetails&&e.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):e=null:e=null;a.T=e}return!$y(d)||g.O(d.experiments,"embed_hide_info_bar_killswitch")||!b.Pb||
a.T&&a.T.collapsedRenderer&&a.T.expandedRenderer?g.O(d.experiments,"embed_api_deprecation")&&b.Pb&&5==a.api.app.R?c:c&&(d.Hh||a.api.isFullscreen()||d.Sb):!1};
AV=function(a){var b=g.X(a.api),c=g.T(g.IK(a.api),128);return b.i&&c&&!a.api.isFullscreen()&&!LK(a.api)};
g.BV=function(a,b){return uw(a.info.mimeType)?b?gv(a.info)==b:!0:!1};
g.CV=function(a,b){if(null!=a.ia&&g.Ez(g.X(b))&&!a.ia.i&&null!=a.ia.g.rawcc)return!0;if(!a.Te())return!1;var c=!!a.ia&&a.ia.i&&Object.values(a.ia.g).some(function(e){return g.BV(e,"386")}),d=!!a.ia&&!a.ia.i&&Hfa(a.ia);
return c||d};
DV=function(a,b,c){g.A.call(this);this.ma=b;this.na=c;this.P=this.F=this.Uc=this.I=this.D=this.l=this.aa=this.Pc=this.u=this.H=this.i=null;this.X={};this.Z={};this.ea=null;this.g=a;this.T=this.ga=this.Y=this.B=this.R=this.A=this.M=this.o=null;this.oa=g.O(g.X(a).experiments,"web_player_defer_modules")};
g.EV=function(a){var b=g.X(a.g);if(g.Kz(b)||b.Kb||!b.Ea&&!b.Ia)return!1;var c=a.g.getPresentingPlayerType();if(2==c)return!1;if(3==c)return g.O(b.experiments,"desktop_enable_autoplay");a=a.g.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||g.O(b.experiments,"allow_poltergust_autoplay");return!(a.sa&&(!g.O(b.experiments,"allow_live_autoplay")||!c))};
FV=function(a){a.oa&&(a.Rp(),a.Pp(),a.Qp())};
tma=function(a){var b=a.g.getVideoData(),c=g.X(a.g).experiments,d=g.or(),e=g.O(c,"enable_spherical_kabuki");a=g.Iz(g.X(a.g));if(b.Df())return d||e||a||g.O(c,"html5_enable_spherical");if(b.If())return a||d||e||g.O(c,"html5_enable_spherical");if(b.Jf())return a||d||g.O(c,"html5_enable_spherical3d");if(b.di())return a||g.O(c,"html5_enable_anaglyph3d")||!1;d=b.za&&b.za.video&&lw(b.za.video);return a&&!g.ZB(b)&&!b.isVisualizerEligible&&!d&&(g.O(c,"enable_webgl_noop")||g.O(c,"html5_enable_bicubicsharp")||
g.O(c,"html5_enable_smartsharp"))};
GV=function(a){g.O(g.X(a.g).experiments,"web_player_ux_module_wait")&&a.F&&g.UK(a.g,"ux")};
HV=function(a){if(a=a.g.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
KV=function(a,b,c,d){try{if(d){var e=g.IV[b];if(e)return new e(a.g);"creatorendscreen"==b?JV(a,"annotations_module",c):JV(a,b,c)}else g.UK(a.g,b)}catch(f){g.UK(a.g,b),g.L(f)}return null};
LV=function(a,b,c){a.i&&(c||a.i.Gb(b))&&(g.qf(a.i),a.i=null);a.H&&(c||a.H.Gb(b))&&(g.qf(a.H),a.H=null);a.u&&(c||a.u.Gb(b))&&(g.qf(a.u),a.u=null);a.Pc&&(c||a.Pc.Gb(b))&&(g.qf(a.Pc),a.Pc=null);a.aa&&(c||a.aa.Gb(b))&&(g.qf(a.aa),a.aa=null);a.l&&(c||a.l.Gb(b))&&(g.qf(a.l),a.l=null);a.D&&(c||a.D.Gb(b))&&(g.qf(a.D),a.D=null);a.I&&(c||a.I.Gb(b))&&(g.qf(a.I),a.I=null);a.Uc&&(c||a.Uc.Gb(b))&&(g.qf(a.Uc),a.Uc=null);a.A&&(c||a.A.Gb(b))&&(g.qf(a.A),a.A=null);a.R&&(c||a.R.Gb(b))&&(g.qf(a.R),a.R=null);a.T&&(c||
a.T.Gb(b))&&(g.qf(a.T),a.T=null);a.B&&(c||a.B.Gb(b))&&(g.qf(a.B),a.B=null);a.M&&(c||a.M.Gb(b))&&(g.qf(a.M),a.M=null);a.o&&(c||a.o.Gb(b))&&(g.qf(a.o),a.o=null);a.F&&(c||a.F.Gb(b))&&(g.qf(a.F),a.F=null);a.P&&(c||a.P.Gb(b))&&(g.qf(a.P),a.P=null)};
g.KK=function(a){return g.X(a.g).Mb?a.R:null};
HD=function(a){return g.X(a.g).ma?a.F:null};
JV=function(a,b,c){if(a.ma){for(var d=a.ma+b+".js",e=document.getElementsByTagName("SCRIPT"),f=!1,k,l=0;l<e.length;l++){var m=e[l];if(m.src==d||m.getAttribute("data-original-src")==d)k=m}k||(k=g.Rd("SCRIPT"),k.setAttribute("data-original-src",d),f=!0);var n=function(){a.fa()||c.call(a)},p=function(){a.fa()||g.UK(a.g,b)};
k.onload=g.Qa(function(r){Yf(n);r&&r()},k.onload);
k.onerror=g.Qa(function(r){if(.01>Math.random()){var v=Error("Unable to load player module");v.params=b+".js from "+d+" on "+(document.location&&document.location.origin)+".";g.L(v)}Yf(p);r&&r()},k.onerror);
k.onreadystatechange=g.Qa(function(r){switch(k.readyState){case "loaded":case "complete":Yf(n,this)}r&&r()},k.onreadystatechange);
f&&((e=g.X(a.g).jb)&&k.setAttribute("nonce",e),Vc(k,ai(d)),e=document.getElementsByTagName("HEAD")[0]||document.body,e.insertBefore(k,e.firstChild),g.pf(a,function(){k.parentNode&&k.parentNode.removeChild(k);g.IV[b]=null;"annotations_module"==b&&(g.IV.creatorendscreen=null)}))}};
g.MV=function(a){g.W.call(this,{C:"div",J:[{C:"div",G:"ytp-bezel-text-wrapper",J:[{C:"div",G:"ytp-bezel-text",V:"{{title}}"}]},{C:"div",G:"ytp-bezel",L:{role:"status","aria-label":"{{label}}"},J:[{C:"div",G:"ytp-bezel-icon",V:"{{icon}}"}]}]});this.u=new g.J(this.show,10,this);g.B(this,this.u);this.l=new g.J(this.hide,500,this);g.B(this,this.l);this.o=a;this.hide()};
OV=function(a,b){if(b)g.T(g.IK(a.o),64)||NV(a,mQ(),"\uc7ac\uc0dd");else{var c=a.o.getVideoData();c.sa&&!c.allowLiveDvr?NV(a,rQ(),"\uc2e4\uc2dc\uac04 \uc7ac\uc0dd \uc911\uc9c0"):NV(a,kQ(),"\uc77c\uc2dc\uc911\uc9c0")}};
PV=function(a,b,c){if(0>=b){c=vQ();b="\uc74c\uc18c\uac70\ub428";var d=0}else c=c?uQ():tQ(),d=Math.floor(b),b=d+"\ubcfc\ub968";NV(a,c,b,d+"%")};
QV=function(a,b){var c=b?g.UP?{C:"div",W:["ytp-icon","ytp-icon-fast-rewind"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:g.UP?{C:"div",W:["ytp-icon","ytp-icon-fast-forward"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]},d=a.o.getPlaybackRate(),
e=g.UN("\uc18d\ub3c4 $RATE",{RATE:String(d)});NV(a,c,e,d+"x")};
NV=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.Fo(a.l);a.u.start();a.updateValue("title",d);g.I(a.element,"ytp-bezel-text-hide",!d)};
SV=function(a,b,c){g.W.call(this,{C:"button",W:["ytp-button","ytp-cards-button"],L:{"aria-label":"\uce74\ub4dc \ubcf4\uae30","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.X(a).u)},J:[{C:"span",G:"ytp-cards-button-icon-default",J:[{C:"div",G:"ytp-cards-button-icon",J:[g.UP?{C:"div",W:["ytp-icon","ytp-icon-info-card"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{C:"div",G:"ytp-cards-button-title",V:"\uc815\ubcf4"}]},{C:"span",G:"ytp-cards-button-icon-shopping",J:[{C:"div",G:"ytp-cards-button-icon",J:[g.UP?{C:"div",W:["ytp-icon","ytp-icon-shopping-card"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",G:"ytp-svg-shadow",L:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{C:"path",G:"ytp-svg-fill",L:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{C:"path",G:"ytp-svg-shadow-fill",L:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{C:"div",
G:"ytp-cards-button-title",V:"\uc1fc\ud551"}]}]});this.o=a;this.A=b;this.l=null;this.u=new g.GQ(this,250,!0,100);g.B(this,this.u);g.I(c,"ytp-show-cards-title",g.X(a).u);this.hide();this.da("click",this.B);this.da("mouseover",this.D);RV(this,!0)};
RV=function(a,b){b?a.l=gT(a.A.Za(),a.element):(a.l(),a.l=null)};
TV=function(a,b,c){g.W.call(this,{C:"div",G:"ytp-cards-teaser",J:[{C:"div",G:"ytp-cards-teaser-box"},{C:"div",G:"ytp-cards-teaser-text",J:[{C:"span",G:"ytp-cards-teaser-label",V:"{{text}}"}]}]});var d=this;this.o=a;this.T=b;this.D=new g.GQ(this,250,!1,250);g.B(this,this.D);this.B=c;this.l=null;this.I=new g.J(this.fK,300,this);g.B(this,this.I);this.H=new g.J(this.cK,2E3,this);g.B(this,this.H);this.P=new g.jo;this.F=[];this.u=null;this.M=new g.J(function(){d.element.style.margin=0},250);
g.B(this,this.M);this.A=null;this.K(c.element,"mouseover",this.ny);this.K(c.element,"mouseout",this.Bg);this.K(a,"cardsteasershow",this.DL);this.K(a,"cardsteaserhide",this.Ak);this.K(a,"cardstatechange",this.oB);this.K(a,"presentingplayerstatechange",this.oB);this.K(a,"appresize",this.Sr);this.K(a,"onShowControls",this.Sr);this.K(a,"onHideControls",this.OC);this.da("click",this.dN);this.da("mouseenter",this.JG)};
uma=function(a,b){a.updateValue("text",b.teaserText);a.element.setAttribute("dir",g.ko(a.P,b.teaserText));a.D.show();a.u=new g.J(function(){g.H(this.o.getRootNode(),"ytp-cards-teaser-shown");this.Sr()},0,a);
a.u.start();RV(a.B,!1);a.l=new g.J(a.Ak,580+b.durationMs,a);a.l.start();a.F.push(a.da("mouseover",a.ny,a));a.F.push(a.da("mouseout",a.Bg,a))};
UV=function(a){var b=g.wD({"aria-haspopup":"true"});g.vD.call(this,b,a);this.da("keydown",this.l)};
VV=function(a,b){a.element.setAttribute("aria-haspopup",b)};
WV=function(a,b,c){var d={};b&&(d.v=b);c&&(d.list=c);a={name:a,locale:void 0,feature:void 0};for(var e in d)a[e]=d[e];d=g.bh("/sharing_services",a);g.xr(d)};
ZV=function(a,b,c,d){g.nU.call(this,a);this.l=a;this.M=c;this.P=d;this.A=new UV(8);g.B(this,this.A);g.oU(this,this.A,!0);this.A.da("click",this.tJ,this);ZK(a,this.A.element,this.A,28659);this.u=new UV(7);g.B(this,this.u);g.oU(this,this.u,!0);this.u.da("click",this.sJ,this);ZK(a,this.u.element,this.u,28660);this.o=new UV(6);g.B(this,this.o);g.oU(this,this.o,!0);this.o.da("click",this.qJ,this);ZK(a,this.o.element,this.o,28658);this.B=new jU("\uc5f0\uc18d \uc7ac\uc0dd",5);g.B(this,this.B);g.oU(this,
this.B,!0);this.B.da("click",this.MJ,this);ZK(a,this.B.element,this.B,28661);this.T=new g.vD(g.wD({href:"{{href}}",target:g.X(a).A},void 0,!0),4,"\uc7ac\uc0dd \ubb38\uc81c\ud574\uacb0");g.B(this,this.T);g.oU(this,this.T,!0);this.T.da("click",this.UK,this);this.I=new UV(3);g.B(this,this.I);g.oU(this,this.I,!0);this.I.da("click",this.pJ,this);b=new g.vD(g.wD(),2,"\uc804\ubb38 \ud1b5\uacc4\n");g.B(this,b);g.oU(this,b,!0);b.da("click",this.rL,this);this.H=new g.tD({C:"div",W:["ytp-copytext","ytp-no-contextmenu"],
L:{draggable:"false",tabindex:"1"},V:"{{text}}"});g.B(this,this.H);this.H.da("click",this.bJ,this);this.ga=new mU(a,this.H);g.B(this,this.ga);this.F=null;b=document.queryCommandSupported&&document.queryCommandSupported("copy");g.qx&&g.ld(43)&&(b=!0);g.Vx&&!g.ld(41)&&(b=!1);b&&(this.F=new g.W({C:"textarea",G:"ytp-html5-clipboard",L:{readonly:""}}),g.B(this,this.F),this.F.g(this.element));this.K(a,"loopchange",this.kz);this.K(a,"videodatachange",this.NG);XV(this);YV(this,this.l.getVideoData())};
$V=function(a,b){if(a.F){var c=a.F.element;c.value=b;c.select();try{var d=document.execCommand("copy")}catch(e){}}d?a.M.nb():(a.H.ob(b,"text"),g.AU(a.M,a.ga),JS(a.H.element),a.F&&(a.F=null,XV(a)));return d};
YV=function(a,b){var c=g.X(a.l),d=2==a.l.getPresentingPlayerType(),e=!d||b.he;e=!c.H&&!!b.videoId&&e;"play"!=c.playerStyle?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.za&&(c.fmt=gv(b.za)),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.oe&&(c.partnerid=b.oe),c=g.bh("//support.google.com/googleplay/",c));g.sD(a.o,e&&b.allowEmbed);g.sD(a.A,e);g.sD(a.u,e&&!b.sa);a.T.ob(c,"href");g.sD(a.B,!b.sa&&
!d)};
XV=function(a){var b=!!a.F;g.uD(a.I,b?"\ub514\ubc84\uadf8 \uc815\ubcf4 \ubcf5\uc0ac":"\ub514\ubc84\uadf8 \uc815\ubcf4 \ud655\uc778");VV(a.I,!b);g.uD(a.o,b?"\uc18c\uc2a4 \ucf54\ub4dc \ubcf5\uc0ac":"\uc18c\uc2a4 \ucf54\ub4dc \ud655\uc778");VV(a.o,!b);g.uD(a.A,b?"\ub3d9\uc601\uc0c1 URL \ubcf5\uc0ac":"\ub3d9\uc601\uc0c1 URL \ud655\uc778");VV(a.A,!b);g.uD(a.u,b?"\ud604\uc7ac \uc2dc\uac04\uc5d0 \ub3d9\uc601\uc0c1 URL \ubcf5\uc0ac":"\ud604\uc7ac \uc2dc\uac04\uc758 \ub3d9\uc601\uc0c1 URL \ud655\uc778");VV(a.u,
!b)};
bW=function(a,b,c){g.wU.call(this,a);this.o=a;this.ea=b;this.Z=c;this.F=new g.Us(this);g.B(this,this.F);this.A=null;ZK(a,this.element,this,28656);g.H(this.element,"ytp-contextmenu");aW(this);this.hide()};
aW=function(a){g.Ws(a.F);"gvn"!=g.X(a.o).playerStyle&&a.F.K(g.JK(a.o),"contextmenu",a.aJ)};
cW=function(a){a.o.isFullscreen()?g.XK(a.o,a.element,9):a.g(document.body)};
dW=function(a,b,c,d,e,f){g.Us.call(this);this.g=a;this.D=c;this.A=d;this.i=e;this.B=f;this.u=new g.J(g.Qa(this.ry,!1),1E3,this);g.B(this,this.u);this.l="";this.o=g.O(g.X(this.g).experiments,"migrate_player_shortcuts_to_global_killswitch");a=g.Qa(this.Zs,!1);this.K(b,"mousedown",a);this.K(c.element,"mousedown",a);this.K(b,"keydown",this.Kw);this.K(c.element,"keydown",this.Kw);this.K(b,"keyup",this.Lw);this.K(c.element,"keyup",this.Lw)};
eW=function(a,b,c,d){var e=g.EK(a.g).i;if(e&&e.loaded){e=a.g.getSubtitlesUserSettings();for(var f,k=0;k<g.UU.length;k++){var l=g.UU[k];if(l.option==b){f=l.options;break}}var m;for(k=0;k<f.length;k++)f[k].option==e[b]&&(m=k);if(d)if(c){if(0==m)return}else if(m==f.length-1)return;d={};d[b]=f[(m+(c?f.length-1:1))%f.length].option;a.g.updateSubtitlesUserSettings(d);a.ry(!0);a.u.start()}};
fW=function(a,b){a.g.fc();if(g.T(g.IK(a.g),4)){var c=a.g.getVideoData().za;c&&(c=c.video)&&a.g.seekBy(b/(c.fps||30))}};
gW=function(a,b){var c={C:"div",G:"ytp-overflow-panel",L:{id:lD(),role:"dialog"},J:[{C:"div",G:"ytp-overflow-panel-content",J:[{C:"div",G:"ytp-overflow-panel-control-buttons",V:"{{buttons}}"}]},{C:"button",W:["ytp-overflow-panel-close","ytp-button"],L:{title:"\ub2eb\uae30"},J:[g.bQ()]}]};pT.call(this,a,c,250);this.B=a;this.A=b.Za();this.o=[];this.D=this.i["ytp-overflow-panel-content"];this.u=this.i["ytp-overflow-panel-close"];this.K(this.u,"click",this.nb);g.pf(this,gT(this.A,this.u));this.da("click",
this.VG);this.K(a,"videoplayerreset",this.hide);this.K(a,"fullscreentoggled",this.UG);this.hide()};
hW=function(a,b){a.o.includes(b)||(a.o.push(b),a.updateValue("buttons",a.o))};
iW=function(a,b){for(var c=g.q(a.o),d=c.next();!d.done;d=c.next())d.value.qb(b)};
jW=function(a,b,c){g.W.call(this,{C:"button",W:["ytp-button","ytp-overflow-button"],L:{title:"\ub354\ubcf4\uae30","aria-haspopup":"true","aria-owns":c.element.id},J:[{C:"div",G:"ytp-overflow-icon",J:[g.UP?{C:"div",W:["ytp-icon","ytp-icon-more-vert"]}:{C:"svg",L:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},J:[{C:"path",L:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var d=
this;this.u=a;this.B=b;this.l=!1;this.A=b.Za();ZK(a,this.element,this,16499);this.K(a,"appresize",this.o);this.K(a,"fullscreentoggled",this.o);this.o();g.pf(this,gT(this.A,this.element));this.da("click",function(){g.$K(a,d.element);c.Ge(d.element,!1)})};
kW=function(a,b){g.W.call(this,{C:"div",G:"ytp-pause-overlay"});this.l=a;this.Z=b;this.u=new g.Us(this);g.B(this,this.u);this.T=new g.GQ(this,1E3,!1,100);g.B(this,this.T);var c=g.X(a);"0"==c.l&&g.H(a.getRootNode(),"ytp-pause-overlay-controls-hidden");this.B=[];this.o=[];this.D=0;this.ga=c.i;this.X=!1;this.na=0;this.P=new g.W({C:"h2",G:"ytp-related-title",V:"{{title}}"});g.B(this,this.P);this.P.g(this.element);this.F=new g.W({C:"div",G:"ytp-suggestions"});g.B(this,this.F);this.F.g(this.element);this.M=
new g.W({C:"button",W:["ytp-button","ytp-previous"],L:{"aria-label":"\uc774\uc804\uc758 \ucd94\ucc9c \ub3d9\uc601\uc0c1 \ubcf4\uae30"},J:[g.XP()]});g.B(this,this.M);this.M.g(this.element);this.M.da("click",this.YG,this);var d=g.qx||g.Ch?{style:"will-change: opacity"}:null;this.ea=new ES((0,g.x)(this.ty,this));g.B(this,this.ea);for(var e=this.ma=this.Y=this.A=0;16>e;e++){var f=new g.W({C:"a",G:"ytp-suggestion-link",L:{href:"{{link}}",target:c.A,"aria-label":"{{aria_label}}"},J:[{C:"div",G:"ytp-suggestion-image"},
{C:"div",G:"ytp-suggestion-overlay",L:d,J:[{C:"div",G:"ytp-suggestion-title",V:"{{title}}"},{C:"div",G:"ytp-suggestion-author",V:"{{author_and_views}}"},{C:"div",L:{"data-is-live":"{{is_live}}"},G:"ytp-suggestion-duration",V:"{{duration}}"}]}]});g.B(this,f);f.g(this.F.element);var k=f.i["ytp-suggestion-link"];g.zh(k,"transitionDelay",e/20+"s");this.u.K(k,"click",g.Qa(this.ZG,e));this.B.push(f)}this.I=new g.W({C:"button",W:["ytp-button","ytp-next"],L:{"aria-label":"\ub354 \ub9ce\uc740 \ucd94\ucc9c \ub3d9\uc601\uc0c1 \ubcf4\uae30"},
J:[g.YP()]});g.B(this,this.I);this.I.g(this.element);this.I.da("click",this.XG,this);c=new g.W({C:"button",W:["ytp-button","ytp-collapse"],L:{"aria-label":"\ub2eb\uae30"},J:[g.UP?{C:"div",W:["ytp-icon","ytp-icon-small-close"]}:{C:"svg",L:{height:"100%",viewBox:"0 0 16 16",width:"100%"},J:[{C:"path",L:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}]});g.B(this,c);c.g(this.element);c.da("click",this.TI,this);this.H=new g.W({C:"button",W:["ytp-button","ytp-expand"],V:"\ub3d9\uc601\uc0c1 \ub354\ubcf4\uae30"});
g.B(this,this.H);this.H.g(this.element);this.H.da("click",this.UI,this);this.u.K(this.l,"appresize",this.Va);this.u.K(this.l,"fullscreentoggled",this.aH);this.u.K(this.l,"presentingplayerstatechange",this.bH);this.u.K(this.l,"videodatachange",this.cH);this.Va(g.JK(this.l).getPlayerSize())};
mW=function(a,b){var c=g.pd(b,a.D-a.o.length*(a.Y+8),0);a.ea.start(a.A,c,1E3);a.A=c;lW(a)};
lW=function(a){var b=a.Z.ec();b=a.ma/2+(b?32:16);a.I.element.style.bottom=b+"px";a.M.element.style.bottom=b+"px";b=a.A;var c=a.D-a.o.length*(a.Y+8);g.I(a.element,"ytp-scroll-min",0<=b);g.I(a.element,"ytp-scroll-max",b<=c)};
vma=function(a){for(var b=0;b<a.o.length;b++){var c=a.o[b].ua(),d=a.B[b],e=c.shortViewCount?c.author+" \u2022 "+c.shortViewCount:c.author;d.element.style.display="";nW.test(c.title)&&(d.i["ytp-suggestion-title"].dir="rtl");nW.test(e)&&(d.i["ytp-suggestion-author"].dir="rtl");var f=void 0;c.sa?f="\uc2e4\uc2dc\uac04":f=c.lengthSeconds?g.oR(c.lengthSeconds):"";d.update({author_and_views:e,duration:f,link:c.Wh(),title:c.title,aria_label:c.lj||null,is_live:c.sa});d=d.i["ytp-suggestion-image"];c=c.Ac();
d.style.backgroundImage=c?"url("+c+")":""}for(;b<a.B.length;b++)a.B[b].element.style.display="none";lW(a)};
oW=function(a,b,c){var d=b.ua(c),e=g.X(a),f=d.Ac("default.jpg");g.W.call(this,{C:"a",W:["ytp-video-menu-item","ytp-button"],L:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},J:[{C:"div",G:"ytp-video-menu-item-index",V:String(c+1)},{C:"div",G:"ytp-video-menu-item-now-playing",V:"\u25b6"},{C:"div",G:"ytp-video-menu-item-thumbnail",L:{style:f?"background-image: url("+f+");":null}},{C:"div",G:"ytp-video-menu-item-title",V:d.title},{C:"div",G:"ytp-video-menu-item-author",
V:d.author}]});this.l=a;this.Ta=c;this.da("click",this.o)};
pW=function(a){pT.call(this,a,{C:"div",G:"ytp-playlist-menu",L:{role:"dialog",id:lD()},J:[{C:"div",G:"ytp-playlist-menu-header",J:[{C:"div",G:"ytp-playlist-menu-title",J:[{C:"a",G:"ytp-playlist-menu-title-name",L:{href:"{{playlisturl}}"},V:"{{title}}"},{C:"button",W:["ytp-playlist-menu-close","ytp-button"],L:{"aria-label":"\ub2eb\uae30"},J:[g.bQ()]}]},{C:"div",G:"ytp-playlist-menu-subtitle",V:"{{subtitle}}"}]},{C:"div",G:"ytp-playlist-menu-items",L:{role:"menu"}}]},250);this.K(this.i["ytp-playlist-menu-close"],
"click",this.nb);this.K(this.i["ytp-playlist-menu-title-name"],"click",this.GL);this.u=a;this.A=this.F=this.o=null;this.Ba=this.i["ytp-playlist-menu-items"];this.D=new g.Us(this);g.B(this,this.D);this.B=[];this.hide()};
qW=function(a,b){if(a.o!=b)if(a.o&&a.o.unsubscribe("shuffle",a.ko,a),a.o=b,a.F=null,b){b.subscribe("shuffle",a.ko,a);var c=b.author,d=c?"\uc791\uc131\uc790: $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",e={CURRENT_POSITION:String(b.Ta+1),PLAYLIST_LENGTH:String(b.getLength())};c&&(e.AUTHOR=c);a.update({title:b.title,subtitle:g.UN(d,e),playlisturl:a.u.getVideoUrl(!0)});a.ko()}else a.Fa()&&a.hide();else a.o&&a.ko()};
rW=function(a,b,c){g.W.call(this,{C:"button",W:["ytp-playlist-menu-button","ytp-button"],L:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"\uc7ac\uc0dd\ubaa9\ub85d"},J:[{C:"div",G:"ytp-playlist-menu-button-icon",J:[g.UP?{C:"div",W:["ytp-icon","ytp-icon-playlist"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,L:{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"}}]}]},{C:"div",G:"ytp-playlist-menu-button-text",V:"{{text}}"}]});var d=this;this.o=a;this.l=null;this.A=b.Za();this.D=!1;ZK(a,this.element,this,70344);this.K(a,"videodatachange",this.B);this.K(a,"onPlaylistUpdate",this.B);this.K(a,"presentingplayerstatechange",this.u);this.K(a,"appresize",this.u);this.hide();this.B();g.pf(this,gT(this.A,this.element));this.da("click",function(){g.$K(a,d.element);c.Ge(d.element,!1)})};
sW=function(a,b){g.W.call(this,{C:"button",W:["ytp-replay-button","ytp-button"],L:{title:"\ub2e4\uc2dc\ubcf4\uae30"},J:[g.oQ()]});this.l=a;this.K(a,"presentingplayerstatechange",this.u);this.da("click",this.o,this);var c=g.IK(a);g.sD(this,g.T(c,2));gT(b.Za(),this.element)};
g.tW=function(a,b){var c=lD(),d=g.X(a);c={C:"div",G:"ytp-share-panel",L:{id:lD(),role:"dialog","aria-labelledby":c},J:[{C:"div",G:"ytp-share-panel-inner-content",J:[{C:"div",G:"ytp-share-panel-title",L:{id:c},V:"\uacf5\uc720"},{C:"a",W:["ytp-share-panel-link","ytp-no-contextmenu"],L:{href:"{{link}}",target:d.A,title:"\ub9c1\ud06c \uacf5\uc720","aria-label":"{{shareLinkWithUrl}}"},V:"{{linkText}}"},{C:"label",G:"ytp-share-panel-include-playlist",J:[{C:"input",G:"ytp-share-panel-include-playlist-checkbox",
L:{type:"checkbox",checked:!0}},"\uc7ac\uc0dd\ubaa9\ub85d \ud3ec\ud568"]},{C:"div",G:"ytp-share-panel-loading-spinner",J:[IS()]},{C:"div",G:"ytp-share-panel-service-buttons",V:"{{buttons}}"},{C:"div",G:"ytp-share-panel-error",V:"\uacf5\uc720 \uc815\ubcf4\ub97c \uac00\uc838\uc624\ub294 \uc911\uc5d0 \uc624\ub958\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4. \ub098\uc911\uc5d0 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694."}]},{C:"button",W:["ytp-share-panel-close","ytp-button"],L:{title:"\ub2eb\uae30"},
J:[g.bQ()]}]};pT.call(this,a,c,250);this.o=a;this.u=b.Za();this.A=[];this.M=this.i["ytp-share-panel-inner-content"];this.D=this.i["ytp-share-panel-close"];this.K(this.D,"click",this.nb);g.pf(this,gT(this.u,this.D));this.F=this.i["ytp-share-panel-include-playlist-checkbox"];this.K(this.F,"click",this.zy);this.B=this.i["ytp-share-panel-link"];g.pf(this,gT(this.u,this.B));this.da("click",this.oH);this.K(a,"videoplayerreset",this.hide);this.K(a,"fullscreentoggled",this.nH);this.hide()};
uW=function(a){for(var b=g.q(a.A),c=b.next();!c.done;c=b.next())c=c.value,g.qD(c),g.qf(c);a.A=[]};
g.vW=function(a,b,c,d){g.W.call(this,{C:"button",W:["ytp-button","ytp-share-button"],L:{title:"{{title-attr}}","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.X(a).u)},J:[{C:"div",G:"ytp-share-icon",V:"{{icon}}"},{C:"div",G:"ytp-share-title",V:"\uacf5\uc720"}]});this.l=a;this.A=b;this.B=d;this.F=c;this.o=!1;ZK(a,this.element,this,28664);this.da("click",this.D);this.K(a,"videodatachange",this.u);this.K(a,"appresize",this.u);this.u();g.I(d,"ytp-show-share-title",g.X(a).u);
g.pf(this,gT(b.Za(),this.element))};
wW=function(a){pT.call(this,a,{C:"button",W:["ytp-skip-intro-button","ytp-popup","ytp-button"],J:[{C:"div",G:"ytp-skip-intro-button-text",V:"\uc18c\uac1c \uac74\ub108\ub6f0\uae30"}]},100);var b=this;this.o=a;this.D=!1;this.B=new g.J(function(){return b.hide()},5E3);
g.B(this,this.B);this.u=this.A=NaN;this.P=function(){return b.show()};
this.M=function(){return b.hide()};
this.F=this.Z.bind(this);this.K(this.o,"videodatachange",function(c,d){if("dataloaded"==c)if(b.A=d.Xw,b.u=d.Ww,isNaN(b.A)||isNaN(b.u))b.D&&(g.TK(b.o,"intro"),b.o.removeEventListener(g.tE("intro"),b.P),b.o.removeEventListener("crx_intro",b.M),b.o.removeEventListener("onShowControls",b.F),b.hide(),b.D=!1);else{b.o.addEventListener(g.tE("intro"),b.P);b.o.addEventListener("crx_intro",b.M);b.o.addEventListener("onShowControls",b.F);var e=new g.qE(b.A,b.u,{priority:7,namespace:"intro"});g.QK(b.o,[e]);b.D=
!0}});
this.K(this.element,"click",function(){b.o.seekTo(b.u/1E3)});
this.hide()};
xW=function(a,b){g.W.call(this,{C:"button",W:["ytp-button","ytp-title-notifications"],L:{"aria-pressed":"{{pressed}}"},J:[{C:"div",G:"ytp-title-notifications-on",L:{title:"\ubaa8\ub4e0 \uc0c8 \ub3d9\uc601\uc0c1\uc5d0 \ub300\ud55c \uc54c\ub9bc\uc744 \ub354 \uc774\uc0c1 \ubc1b\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.","aria-label":"\uad6c\ub3c5 \uc54c\ub9bc"},J:[g.jQ()]},{C:"div",G:"ytp-title-notifications-off",L:{title:"\ubaa8\ub4e0 \uc0c8 \ub3d9\uc601\uc0c1\uc5d0 \ub300\ud55c \uc54c\ub9bc\uc744 \ubc1b\uc2b5\ub2c8\ub2e4.",
"aria-label":"\uad6c\ub3c5 \uc54c\ub9bc"},J:[g.UP?{C:"div",W:["ytp-icon","ytp-icon-notifications-inactive"]}:{C:"svg",L:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},J:[{C:"path",L:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.o=a;ZK(a,this.element,this,36927);this.u=b;this.l=!1;this.da("click",
this.A,this);this.updateValue("pressed",!1)};
yW=function(a,b){a.l=b;a.element.classList.toggle("ytp-notifications-enabled",a.l);g.br("/subscription_ajax?action_update_subscription_preferences=1",{method:"POST",wb:{channel_id:a.u,receive_all_updates:!a.l}})};
zW=function(a,b,c){return b?a.B+"subscription_ajax":c?"/subscription_service":""};
g.BW=function(a,b,c,d,e,f,k,l,m,n,p,r,v){v=void 0===v?null:v;f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var z=g.X(r);if(p){c={href:p,"aria-label":"\ucc44\ub110 \uad6c\ub3c5"};if(g.fz(z)||g.hz(z))c.target=z.A;g.W.call(this,{C:"div",W:["ytp-button","ytp-sb"],J:[{C:"a",G:"ytp-sb-subscribe",L:c,J:[{C:"div",G:"ytp-sb-text",J:[{C:"div",G:"ytp-sb-icon"},a]},b?{C:"div",G:"ytp-sb-count",V:b}:""]}]});f&&
g.H(this.element,"ytp-sb-classic")}else{p=z.aa&&g.fz(z)&&!g.O(z.experiments,"subscribe_tooltip_killswitch");g.W.call(this,{C:"div",W:["ytp-button","ytp-sb"],J:[{C:"div",G:"ytp-sb-subscribe",L:p?{title:g.UN("$USER_NAME(\uc73c)\ub85c \uad6c\ub3c5",{USER_NAME:z.aa}),"aria-label":"\ucc44\ub110 \uad6c\ub3c5","data-tooltip-image":Lz(z),"data-tooltip-opaque":String(z.u)}:{"aria-label":"\ucc44\ub110 \uad6c\ub3c5"},J:[{C:"div",G:"ytp-sb-text",J:[{C:"div",G:"ytp-sb-icon"},a]},b?{C:"div",G:"ytp-sb-count",V:b}:
""]},{C:"div",G:"ytp-sb-unsubscribe",L:p?{title:g.UN("\uad6c\ub3c5\ud55c \uacc4\uc815: $USER_NAME",{USER_NAME:z.aa}),"aria-label":"\ucc44\ub110 \uad6c\ub3c5 \ucde8\uc18c","data-tooltip-image":Lz(z),"data-tooltip-opaque":String(z.u)}:{"aria-label":"\ucc44\ub110 \uad6c\ub3c5 \ucde8\uc18c"},J:[{C:"div",G:"ytp-sb-text",J:[{C:"div",G:"ytp-sb-icon"},c]},d?{C:"div",G:"ytp-sb-count",V:d}:""]}]});var C=this;this.l=k;this.u=v;var F=this.i["ytp-sb-subscribe"],E=this.i["ytp-sb-unsubscribe"];f&&g.H(this.element,
"ytp-sb-classic");if(e){l&&g.H(this.element,"ytp-sb-subscribed");var K=function(){var V=C.l;if(m||n){var ta=g.X(r);var db="c="+V+"&u="+ta.lc;if(g.O(ta.experiments,"embeds_botguard_with_subscribe_killswitch"))db="";else{var ue="",Xe=null;if(g.O(ta.experiments,"web_player_inline_botguard"))Pt.g&&(Xe=Rt);else{var ve=g.w("yt.abuse.player.botguardInitialized");ve&&ve()&&(Xe=g.w("yt.abuse.player.invokeBotguard"))}Xe&&(ue=Xe(db));db=ue}g.br(zW(ta,!!m,!!n),m?{method:"POST",ud:{action_create_subscription_to_channel:1,
c:V},wb:{feature:m,silo_name:null,r2b:db},withCredentials:!0}:n?{method:"POST",ud:{action_subscribe:1},wb:{channel_ids:V,itct:n}}:{});r.la("SUBSCRIBE",V)}E.focus();E.removeAttribute("aria-hidden");F.setAttribute("aria-hidden",!0)},R=function(){var V=C.l;
if(m||n)g.br(zW(g.X(r),!!m,!!n),m?{method:"POST",ud:{action_remove_subscriptions:1},wb:{c:V,silo_name:null,feature:m},withCredentials:!0}:n?{method:"POST",ud:{action_unsubscribe:1},wb:{channel_ids:V,itct:n}}:{}),r.la("UNSUBSCRIBE",V);F.focus();F.removeAttribute("aria-hidden");E.setAttribute("aria-hidden",!0)};
this.K(F,"click",K);this.K(E,"click",R);this.K(F,"keypress",function(V){13==V.keyCode&&K(V)});
this.K(E,"keypress",function(V){13==V.keyCode&&R(V)});
this.K(r,"SUBSCRIBE",this.A);this.K(r,"UNSUBSCRIBE",this.B);this.u&&p&&(this.o=this.u.Za(),AW(this.o),g.pf(this,gT(this.o,F)),g.pf(this,gT(this.o,E)))}else g.H(F,"ytp-sb-disabled"),g.H(E,"ytp-sb-disabled")}};
wma=function(a,b){var c=CW(null,"wl_button",b);if(c=window.open(c,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes",!0)){var d=g.lq("LOGGED_IN",function(e){g.mq(g.Xp("LOGGED_IN_PUBSUB_KEY",void 0));Wp("LOGGED_IN",!0);a(e)});
Wp("LOGGED_IN_PUBSUB_KEY",d);c.moveTo((screen.width-800)/2,(screen.height-600)/2)}};
CW=function(a,b,c){var d="/signin?context=popup";c&&(d=document.location.protocol+"//"+c+d);c=document.location.protocol+"//"+document.domain+"/post_login";a&&(c=ah(c,"mode",a));a=ah(d,"next",c);b&&(a=ah(a,"feature",b));return a};
DW=function(a,b,c){c=void 0===c?!1:c;var d=g.X(a);g.W.call(this,{C:"div",G:"ytp-title-channel",J:[{C:"div",G:"ytp-title-beacon"},{C:"a",G:"ytp-title-channel-logo",L:{href:"{{channelLink}}",target:d.A,"aria-label":"{{channelLogoLabel}}"}},{C:"div",G:"ytp-title-expanded-overlay",J:[{C:"div",G:"ytp-title-expanded-heading",J:[{C:"h2",G:"ytp-title-expanded-title",J:[{C:"a",V:"{{expandedTitle}}",L:{href:"{{channelTitleLink}}",target:d.A}}]},{C:"h3",G:"ytp-title-expanded-subtitle",V:"{{expandedSubtitle}}"}]}]}]});
this.l=a;this.T=b;this.o=this.i["ytp-title-channel"];this.u=this.i["ytp-title-channel-logo"];this.H=this.i["ytp-title-expanded-overlay"];this.B=this.D=this.A=null;this.M=c;ZK(a,this.u,this,36925);this.M&&xma(this)};
xma=function(a){var b=g.X(a.l).lc?null:CW(),c=a.l.getVideoData(),d=new g.BW("\uad6c\ub3c5",null,"\uad6c\ub3c5\uc911",null,!0,!1,c.Uf,c.subscribed,"channel_avatar",null,b,a.l,a.T);a.A=d;g.B(a,d);d.g(a.H);ZK(a.l,d.element,a,36926);d.hide();var e=new xW(a.l,c.Uf);a.D=e;g.B(a,e);e.g(a.H);e.hide();a.K(a.l,"SUBSCRIBE",function(){c.Pi&&e.show()});
a.K(a.l,"UNSUBSCRIBE",function(){c.Pi&&(e.hide(),yW(e,!1))});
g.X(a.l).g?a.K(a.u,"click",function(f){EW(a)&&(f.preventDefault(),a.o.classList.contains("ytp-title-expanded")?a.I():a.P());g.$K(a.l,a.u)}):(a.K(a.o,"mouseenter",a.P),a.K(a.o,"mouseleave",a.I),a.K(a.u,"click",function(){g.$K(a.l,a.u)}));
a.K(d.element,"click",function(){g.$K(a.l,d.element)});
a.B=new g.J(function(){a.o.classList.contains("ytp-title-expanded")&&(d.hide(),g.aL(a.l,d.element,!1),e.hide(),g.aL(a.l,e.element,!1),a.o.classList.remove("ytp-title-expanded"),a.o.classList.add("ytp-title-show-collapsed"))},500);
g.B(a,a.B);a.K(a.o,FW,function(){a.o.classList.remove("ytp-title-show-collapsed");a.o.classList.remove("ytp-title-show-expanded")});
a.K(a.l,"onHideControls",a.F);a.K(a.l,"appresize",a.F);a.K(a.l,"fullscreentoggled",a.F)};
EW=function(a){var b=a.l.getPlayerSize();return a.M&&524<=b.width};
GW=function(a,b){var c=a.l.getVideoData(),d=g.bh(g.Mz(g.X(a.l))+c.gg,{feature:"embeds_subscribe_title"}),e=c.gg,f=c.Vd,k=c.author;e=void 0===e?"":e;f=void 0===f?"":f;k=void 0===k?"":k;b?(e=g.Mz(g.X(a.l))+e,a.u.style.backgroundImage="url("+f+")",a.updateValue("channelLink",e),a.updateValue("channelLogoLabel",g.UN("$CHANNEL_NAME\uc758 \uc0ac\uc9c4 \uc774\ubbf8\uc9c0",{CHANNEL_NAME:k})),g.H(a.l.getRootNode(),"ytp-title-enable-channel-logo"),g.aL(a.l,a.u,!0)):(g.qo(a.l.getRootNode(),"ytp-title-enable-channel-logo"),
g.aL(a.l,a.u,!1));a.A&&(a.A.l=c.Uf);a.updateValue("expandedTitle",c.eq);a.updateValue("channelTitleLink",d);a.updateValue("expandedSubtitle",c.expandedSubtitle)};
HW=function(a,b){g.W.call(this,{C:"div",G:"ytp-title",J:[{C:"div",G:"ytp-title-text",J:[{C:"a",W:["ytp-title-link","yt-uix-sessionlink"],L:{target:g.X(a).A,href:"{{url}}","data-sessionlink":"feature=player-title"},V:"{{title}}"},{C:"div",G:"ytp-title-subtext",J:[{C:"a",G:"ytp-title-channel-name",L:{href:"{{channelLink}}",target:"_blank"},V:"{{channelName}}"}]}]}]});this.l=a;this.u=null;this.B=this.i["ytp-title-link"];this.o=new DW(a,b,g.X(a).u);this.o.g(this.element,0);g.B(this,this.o);ZK(a,this.element,
this,23851);this.K(a,"videodatachange",this.A);this.K(a,"videoplayerreset",this.A);this.A()};
IW=function(a){GW(a.o,!1);a.updateValue("channelLink","");a.updateValue("channelName","")};
g.JW=function(a,b){var c=g.JK(a).getPlayerSize();g.W.call(this,{C:"div",J:[{C:"div",G:"ytp-tooltip-bg",J:[{C:"div",G:"ytp-tooltip-duration",V:"{{duration}}"}]},{C:"div",G:"ytp-tooltip-text-wrapper",J:[{C:"div",G:"ytp-tooltip-image"},{C:"div",G:"ytp-tooltip-title",V:"{{title}}"},{C:"span",G:"ytp-tooltip-text",V:"{{text}}"}]}]});this.Y=a;this.wa=b;this.M=g.X(a);this.na=this.M.g;this.H=this.i["ytp-tooltip-bg"];this.xa=this.i["ytp-tooltip-image"];this.X=(0,g.x)(this.bK,this);this.D=(0,g.x)(this.eK,this);
this.Z=(0,g.x)(this.Pe,this);this.l=null;this.I=new g.GQ(this,100);g.B(this,this.I);this.o=null;this.T=!1;this.u=null;this.B=NaN;this.F="";this.ea=c.width;this.P=!0;this.A=1;this.ga=new g.J(this.HE,250,this);g.B(this,this.ga);this.ma=new g.J(this.Pe,5E3,this);g.B(this,this.ma)};
AW=function(a){a.element.setAttribute("aria-live","polite")};
g.aU=function(a){1==a.o&&a.Pe()};
gT=function(a,b){if(a.na)return g.Ha;b.addEventListener("mouseover",a.D);g.O(a.M.experiments,"show_tooltip_on_tab_killswitch")||b.addEventListener("focus",a.D);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return(0,g.x)(function(){this.l==b&&this.Pe();b.removeEventListener("mouseover",this.D);g.O(this.M.experiments,"show_tooltip_on_tab_killswitch")||b.removeEventListener("focus",this.D)},a)};
LW=function(a,b,c){if(a.o)if(3==a.o)a.Pe();else return;KW(a,b,3,c)};
KW=function(a,b,c,d){if(b&&!b.hasAttribute)a=Error("showElementTooltip_ called with non-element."),a.params=b.toString(),g.L(a);else{isNaN(a.B)||(a.B=NaN,a.H.style.background="");a.l=b;a.T=!!d;d?a.F=d:(a.F=b.getAttribute("title"),b.removeAttribute("title"));a.element.className="ytp-tooltip";if(d=b.getAttribute("data-tooltip-image"))a.xa.style.backgroundImage="url("+d+")";g.I(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.I(a.element,"ytp-tooltip-opaque",!!b);
a.o=c;a.Y.addEventListener("appresize",a.Z);a.P&&(MW(a),a.I.show(0))}};
MW=function(a){var b;a.l&&(b=a.l.getAttribute("data-tooltip-text"));if(b&&!a.T){a.updateValue("text",b);var c=a.l.getAttribute("data-duration");a.update({title:a.F,duration:c});var d=a.l.getAttribute("data-preview"),e=160*a.A,f=90*a.A,k=160*a.A,l=90*a.A;a.H.style.width=e+"px";a.H.style.height=f+"px";a.H.style.backgroundImage=d?"url("+d+")":"";a.H.style.backgroundPosition=(e-k)/2+"px "+(f-l)/2+"px";a.H.style.backgroundSize=k+"px "+l+"px";g.po(a.element,["ytp-text-detail","ytp-preview"]);g.I(a.element,
"ytp-has-duration",!!c)}else a.updateValue("text",a.F),g.ro(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);3==a.o?a.element.setAttribute("role","status"):a.element.removeAttribute("role");NW(a,!!b)};
NW=function(a,b,c,d){a.element.style.maxWidth=b?"":Math.min(a.ea,300*a.A)+"px";a.wa.Lk(a.element,a.l,c,1==a.o,d);a.element.style.top?g.H(a.element,"ytp-bottom"):a.element.style.bottom&&g.H(a.element,"ytp-top");3==a.o&&a.ma.start()};
HT=function(a){a.l&&!a.T&&a.l.hasAttribute("title")&&(a.F=a.l.getAttribute("title"),a.l.removeAttribute("title"),a.P&&MW(a))};
OW=function(a,b){g.I(a.element,"ytp-preview",0<=b);if(!(0>b||b==a.B)){a.B=b;var c=160*a.A,d=160*a.A,e=AA(a.u,a.B,c);kT(a.H,e,c,d,!0);a.ga.start()}};
yma=function(a,b,c){PW("add_to_watch_later_list",a,b,c)};
zma=function(a,b,c){PW("delete_from_watch_later_list",a,b,c)};
PW=function(a,b,c,d){g.br(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",ud:{feature:b.feature||null,authuser:b.lc||null,pageid:b.pageId||null},wb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.uR||null,add_to_playlists:b.cR||null,plid:g.Xp("PLAYBACK_ID")||null},context:b.context,onError:b.onError,onSuccess:function(e,f){b.onSuccess.call(this,e,f)},
ed:b.ed,withCredentials:!!d})};
SW=function(a,b,c){g.W.call(this,{C:"button",W:["ytp-watch-later-button","ytp-button"],L:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.X(a).u)},J:[{C:"div",G:"ytp-watch-later-icon",V:"{{icon}}"},{C:"div",G:"ytp-watch-later-title",V:"\ub098\uc911\uc5d0 \uc2dc\uccad\ud558\uae30"}]});this.l=a;this.F=b;this.B=b.Za();AW(this.B);this.D=null;this.A=this.u=this.o=!1;ZK(a,this.element,this,28665);this.da("click",this.CH,this);this.K(a,"videoplayerreset",this.DH);this.K(a,
"appresize",this.jc);this.K(a,"videodatachange",this.jc);this.jc();a=g.X(this.l);var d=g.It("yt-player-watch-later-pending");a.i&&d?(zy(),QW(this,d.videoId)):RW(this,2);g.I(c,"ytp-show-watch-later-title",a.u);g.pf(this,gT(b.Za(),this.element))};
TW=function(a,b){wma(function(){zy({videoId:b});window.location.reload()},zz(g.X(a.l)))};
QW=function(a,b){if(!a.u){a.u=!0;RW(a,3);var c=g.X(a.l);(a.o?zma:yma)({videoIds:b,lc:c.lc,pageId:c.pageId,onError:a.ZL,onSuccess:a.o?a.aM:a.YL,context:a},c.B,!0)}};
UW=function(a,b){RW(a,4,b);g.X(a.l).vb&&a.l.la("WATCH_LATER_ERROR",b)};
RW=function(a,b,c){var d=g.X(a.l),e=a.F.vg()&&g.O(d.experiments,"embeds_enable_new_smallmode")&&d.u;if(b!=a.D){switch(b){case 3:var f=IS();break;case 1:f=WP();break;case 2:f=d.D&&e?{C:"div",W:["ytp-icon","ytp-icon-watch-later-large"]}:g.UP?{C:"div",W:["ytp-icon","ytp-icon-watch-later"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};
break;case 4:f=g.O(d.experiments,"watch_later_icon_change_killswitch")?g.UP?{C:"div",W:["ytp-icon","ytp-icon-alert"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:g.UP?{C:"div",W:["ytp-icon","ytp-icon-warning"]}:{C:"svg",L:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,L:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",f);a.D=b}c?a.update({title:c,image:null}):d.aa?(b={USER_NAME:d.aa},a.update({title:a.o?g.UN("$USER_NAME(\uc73c)\ub85c \ucd94\uac00\ud588\uc2b5\ub2c8\ub2e4.",b):g.UN("\ub098\uc911\uc5d0 $USER_NAME(\uc73c)\ub85c \ubcf4\uae30",b),image:Lz(d)})):a.update({title:"\ub098\uc911\uc5d0 \uc2dc\uccad\ud558\uae30",image:null});
HT(a.B)};
WW=function(a){var b=g.X(a);g.W.call(this,{C:"a",W:["ytp-watermark","yt-uix-sessionlink"],L:{target:b.A,href:"{{url}}","aria-label":g.UN("$WEBSITE\uc5d0\uc11c \ubcf4\uae30",{WEBSITE:Az(b)}),"data-sessionlink":"feature=player-watermark"},J:[wQ()]});this.l=a;this.o=null;this.u=!1;ZK(a,this.element,this,76758);this.K(a,"videodatachange",this.A);this.K(a,"presentingplayerstatechange",this.D);this.K(a,"appresize",this.Va);VW(this,g.IK(a));this.A();this.Va(g.JK(a).getPlayerSize())};
XW=function(a,b){return!!(g.O(b.experiments,"embeds_enable_smaller_watermark_on_mobile")&&480>a.width)};
VW=function(a,b){var c=!g.T(b,2);g.sD(a,c);g.aL(a.l,a.element,c)};
YW=function(a){g.sV.call(this,a);var b=this,c=g.JK(a),d=g.X(a),e=d.u;this.ma=g.O(d.experiments,"embeds_enable_new_smallmode")&&e;this.Ra=48;this.Qa=69;d.i&&d.u&&(g.H(a.getRootNode(),"ytp-embed"),this.Ra=60,this.Qa=89);e&&g.H(a.getRootNode(),"ytp-embed-playlist");this.ma&&g.H(a.getRootNode(),"ytp-embeds-smallmode");this.Y=null;this.H=[];this.I=new g.MV(a);g.B(this,this.I);g.XK(a,this.I.element,4);var f=new g.W({C:"div",G:"ytp-gradient-top"});g.B(this,f);g.XK(a,f.element,1);this.tb=new g.GQ(f,250,!0,
100);g.B(this,this.tb);this.l=new g.W({C:"div",G:"ytp-chrome-top"});g.B(this,this.l);g.XK(a,this.l.element,1);this.jb=new g.GQ(this.l,250,!0,100);g.B(this,this.jb);this.Z=[];this.F=new g.JW(a,this);g.B(this,this.F);g.XK(a,this.F.element,4);d.i&&d.Ea&&(this.Xb=new kW(a,this),g.B(this,this.Xb),g.XK(a,this.Xb.element,4));f=new pW(a);g.B(this,f);g.XK(a,f.element,5);f.subscribe("show",(0,g.x)(this.Ug,this,f));this.Z.push(f);this.X=new rW(a,this,f);g.B(this,this.X);e||this.X.g(this.l.element);this.ab=new HW(a,
this);g.B(this,this.ab);this.ab.g(this.l.element);f=new g.nD({C:"div",G:"ytp-chrome-top-buttons"});g.B(this,f);f.g(this.l.element);this.ya=f;var k=g.O(d.experiments,"embed_info_bar_top_right_subscribe")&&d.i;k||(this.B=new SW(a,this,this.l.element),g.B(this,this.B),this.B.g(f.element));k||(k=new g.tW(a,this),g.B(this,k),g.XK(a,k.element,5),k.subscribe("show",(0,g.x)(this.Ug,this,k)),this.Z.push(k),this.A=new g.vW(a,this,k,this.l.element),g.B(this,this.A),this.A.g(f.element));d.El&&(k=new wW(a),g.B(this,
k),g.XK(a,k.element,4));e&&this.X.g(f.element);this.aa=new SV(a,this,this.l.element);g.B(this,this.aa);this.aa.g(f.element);e=new TV(a,this,this.aa);g.B(this,e);e.g(f.element);this.ma&&(this.u=new gW(a,this),g.B(this,this.u),g.XK(a,this.u.element,5),this.u.subscribe("show",function(){b.Ug(b.u,rT(b.u))}),this.Z.push(this.u),this.wa=new jW(a,this,this.u),g.B(this,this.wa),this.wa.g(f.element));
(this.g="1"==d.l?new lV(a,this,this.i):null)&&g.B(this,this.g);"3"==d.l&&(e=new sW(a,this),g.B(this,e),g.XK(a,e.element,8));this.R=new bW(a,this,this.I);g.B(this,this.R);this.R.subscribe("show",this.mB,this);this.Ia=!1;d.fj&&(e=new WW(a),g.B(this,e),g.XK(a,e.element,7));e=new BR(a,new rS(a));g.B(this,e);g.XK(a,e.element,4);this.ea=new g.W({C:"div",L:{tabindex:"0"}});this.ea.da("focus",this.lD,this);g.B(this,this.ea);this.oa=new g.W({C:"div",L:{tabindex:"0"}});this.oa.da("focus",this.mD,this);g.B(this,
this.oa);(this.M=d.ld?null:new dW(a,c,this.R,this.i,this.I,(0,g.x)(this.Qh,this)))&&g.B(this,this.M);this.na.push(this.I.element);this.K(a,"fullscreentoggled",this.KG);this.K(a,"offlineslatestatechange",this.oK,this);this.K(a,"cardstatechange",this.Kd,this)};
ZW=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=Eh(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=ZW(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d};
g.$W=function(a){g.mL.call(this,a);this.load()};
aX=function(){this.g=[];this.i=[];this.l=[]};
cX=function(a,b,c){c=g.Rd(c?"AUDIO":"VIDEO");g.Ra(c,Ama);g.ks(c,"loadeddata",(0,g.x)(c.MC,c));gz&&6<=kC&&g.ks(c,"webkitbeginfullscreen",(0,g.x)(c.play,c));a.i.push(c);b?a.l.push(c):bX(a,c);return c};
bX=function(a,b){g.$a(a.i,b)&&!g.$a(a.g,b)&&(b.pe(),g.cb(a.l,b)||a.g.push(b))};
eX=function(a,b,c){g.A.call(this);var d=this;this.g=a;this.P=b;c.getPlayerType();this.l=c;this.B=new Map;this.i=[];this.o=this.F=null;this.R=NaN;this.D=this.u=null;this.I=new g.J(function(){dX(d,d.R)});
g.B(this,this.I);this.H=[];this.M=new g.J(function(){var e=d.H.pop();e&&(d.g.preloadVideoByPlayerVars(e.playerVars,e.playerType,NaN,"",e.hc,!0),d.H.length&&g.Do(d.M,4500))});
g.B(this,this.M);this.A=new g.Us(this);g.B(this,this.A);this.A.K(this.g,g.tE("childplayback"),this.uG);this.A.K(this.g,"onQueuedVideoLoaded",this.LK);this.A.K(this.g,"presentingplayerstatechange",this.vG)};
Cma=function(a,b,c,d,e){var f=a.l;e=void 0==e?d+c:e;if(d>e)return"";var k=1E3*f.Ab();if(d<k)return"";k=1E3*f.getDuration();if(e>k)return"";var l;k=g.q(a.i);for(var m=k.next();!m.done;m=k.next()){m=m.value;if(d>=m.nd&&d<m.td||e<=m.td&&e>m.nd||e==m.nd)return"";d==m.td&&(l=m)}k="childplayback_"+Bma++;m={Sc:fX(c,!0),Ri:Infinity,target:null};var n={hc:k,playerVars:b,playerType:2,durationMs:c,nd:d,td:e,lg:m};a.i=a.i.concat(n).sort(function(v,z){return v.nd-z.nd});
l?gX(a,l,{Sc:fX(l.durationMs,!0),Ri:Infinity,target:n}):(b={Sc:fX(d,!1),Ri:d,target:n},a.B.set(b.Sc,b),f.addCueRange(b.Sc));b=g.O(a.P.experiments,"html5_gapless_preloading");if(a.l==a.g.yb()&&(f=1E3*f.getCurrentTime(),f>=n.nd&&f<n.td)){var p=a.g.yb().getPlayerState(),r=f-n.nd;Yf(function(){hX(a,n,r/1E3,p)});
b=!1}b&&(a.H.unshift(n),g.Do(a.M,0));return k};
fX=function(a,b){return new g.qE(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
Dma=function(a,b,c,d){a.o=d;iX(a.g.app,a.l,c,void 0===b?0:b)};
jX=function(a,b,c,d){a.o=d;d=b.hc;var e=b.playerVars,f=b.playerType;a.F=b;a.g.enqueueVideoByPlayerVars(e,f,c,d)};
gX=function(a,b,c){var d=b.lg;b.lg=c;kX(a,b)&&(c=a.g.yb(),d.Sc==a.o&&lX(a),c.removeCueRange(d.Sc),c.addCueRange(b.lg.Sc));d.Sc.dispose()};
lX=function(a){a.F=null;a.o=null;!a.g.app.Ea.g||a.g.clearQueue()};
mX=function(a,b){kX(a,b);return b.td==b.nd+b.durationMs?b.nd+1E3*a.g.yb().getCurrentTime():b.td};
nX=function(a,b){for(var c=0,d=g.q(a.i),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.nd/1E3+c,k=f+e.durationMs/1E3;if(f>b)break;if(k>b)return{Lp:e,os:b-f};c=k-e.td/1E3}return{Lp:null,os:b-c}};
dX=function(a,b){var c=a.D||a.g.yb().getPlayerState();oX(a,!0);var d=nX(a,b),e=d.Lp;d=d.os;var f=e&&!kX(a,e)||!e&&a.l!=a.g.yb(),k=1E3*d;k=a.o&&a.o.start<=k&&k<=a.o.end;!f&&k||lX(a);e?hX(a,e,d,c):pX(a,d,c)};
pX=function(a,b,c){var d=a.l;if(d!=a.g.yb()){var e=d.getPlayerType();g.LP(a.g.app,e)}d.seekTo(b,!0);qX(a,c)};
hX=function(a,b,c,d){var e=kX(a,b);if(!e){g.LP(a.g.app,b.playerType);var f=new g.zB(a.P,b.playerVars);f.hc=b.hc;f.ie=!0;rX(a.g.app,f,b.playerType,void 0)}f=a.g.yb();e||f.addCueRange(b.lg.Sc);f.seekTo(c,!0);qX(a,d)};
qX=function(a,b){var c=a.g.yb(),d=c.getPlayerState();g.XC(b)&&!g.XC(d)?c.playVideo():g.T(b,4)&&!g.T(d,4)&&c.pauseVideo()};
oX=function(a,b){a.R=NaN;a.I.stop();a.u&&b&&gK(a.u);a.D=null;a.u=null};
kX=function(a,b){var c=a.g.yb();return!!c&&c.getVideoData().hc==b.hc};
fL=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.q(a.B),k=f.next();!k.done;k=f.next()){var l=g.q(k.value);k=l.next().value;l=l.next().value;l.Ri>=d&&l.target&&l.target.td<=e&&(a.l.removeCueRange(k),l.Sc.dispose(),a.B["delete"](k))}d=b;e=c;f=[];k=g.q(a.i);for(l=k.next();!l.done;l=k.next())if(l=l.value,l.nd>=d&&l.td<=e){var m=a;m.F==l&&lX(m);kX(m,l)&&g.eL(m.g,l.playerType);l.lg.Sc.dispose()}else f.push(l);a.i=f;d=nX(a,b/1E3);b=d.Lp;d=d.os;b&&(d*=1E3,sX(a,b,d,b.td==b.nd+
b.durationMs?b.nd+d:b.td));nX(a,c/1E3)};
sX=function(a,b,c,d){b.durationMs=c;b.td=d;d={Sc:fX(c,!0),Ri:c,target:null};gX(a,b,d);kX(a,b)&&1E3*a.g.yb().getCurrentTime()>c&&(b=mX(a,b)/1E3,c=a.g.yb().getPlayerState(),pX(a,b,c))};
Ema=function(){this.g=this.M=this.D=this.A=!1;this.H=0;this.R=!1;this.u=0;this.F=this.B=this.l=!0;this.o=this.P=!1;this.I=!0;this.i=0};
Fma=function(a){var b=new Ema;b.A=g.O(a.experiments,"html5_pseudo_gapless");b.D=g.O(a.experiments,"html5_gapless_disable_preload_at_finish");b.M=g.O(a.experiments,"html5_gaplesstransition_error_new_elem");b.g=g.O(a.experiments,"html5_gapless_allow_late_transitions");b.H=g.P(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.R=g.O(a.experiments,"html5_full_gapless_content_resume");b.u=g.P(a.experiments,"html5_gapless_max_played_ranges");g.O(a.experiments,"html5_gapless_error_check_killswitch2")&&
(b.l=!1);g.O(a.experiments,"html5_gapless_channel_count_check_killswitch")&&(b.B=!1);g.O(a.experiments,"html5_gapless_encryption_upgrade_check_killswitch")&&(b.F=!1);b.P=g.O(a.experiments,"html5_gapless_trim_readbehind");b.o=g.O(a.experiments,"html5_gapless_manage_live_readahead");b.i=g.P(a.experiments,"html5_gapless_seek_tolerance_secs");b.i&&(b.I=!1);return b};
g.tX=function(a,b,c,d){d=void 0===d?!1:d;g.CC.call(this);this.g=a;this.i=b;this.A=c;this.H=d};
Gma=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(a.l&&c.getPlayerState().isError())return"player-error";if(!a.g){if(b.getCurrentTime()>(d-3E3)/1E3)return"too-close"}else if(b.getCurrentTime()>d/1E3+1)return"in-the-past";if(f.sa&&!isFinite(d))return"live-infinite";if(a.u&&((b=b.g)&&b.isView()&&(b=b.g),b&&b.Vh().length>a.u))return"played-ranges";if(a.g&&!e.va)return null;if(!e.va.g||!f.va.g)return"non-dash";if(e.va.videoInfos[0].containerType!=f.va.videoInfos[0].containerType)return"container";
if(g.ZB(f)&&g.ZB(e))return"content-protection";f=f.va.g[0].audio;e=e.va.g[0].audio;return f.sampleRate==e.sampleRate||g.qx?a.B&&(f.g||2)!=(e.g||2)?"channel-count":null:"sample-rate"};
vX=function(a,b,c,d){g.A.call(this);var e=this;this.l=a;this.i=b;this.g=c;this.A=this.u=null;this.R=d-1E3*b.Ib();this.F=-1;this.H=!1;this.B=new SG;this.B.then(void 0,function(){});
this.I=new g.J(function(){return uX(e,"timeout")},1E4);
g.B(this,this.I);this.D=this.l.A&&!!(!a.R&&c.getCurrentTime()||isFinite(d));this.o={status:0,error:null}};
Hma=function(a){var b,c,d,e,f,k;return xa(function(l){if(1==l.g){if(!a.l.g)return 5!=a.o.status?l=l["return"](Promise.resolve("nonsense")):(l.g=2,l=void 0),l;a.I.start();return ua(l,a.B,2)}b=a.i.g;if(b.Se())return uX(a,"ended_in_finishTransition"),l["return"](Promise.reject());if(a.g.D!=a.A)return uX(a,"next_reloaded"),l["return"](Promise.reject());c=wX(a);d=c.Qy;e=c.Py;SJ(a.i,!1,a.l.D);f=xX(b,d,e,a.g.getVideoData().sa);UJ(a.g,f);a.D&&(a.g.seekTo(a.g.getCurrentTime()+.001,!0,void 0,!0,!1,a.l.i),f.play());
k=b.fb();k.cpn=a.i.getVideoData().clientPlaybackNonce;k.st=""+d;k.et=""+e;a.g.Ma("gapless",yx(k));a.i.Ma("gaplessTo",a.g.getVideoData().clientPlaybackNonce);g.dg(function(){!a.g.getVideoData().ce&&g.XC(a.g.getPlayerState())&&tK(a.g)});
yX(a,6);a.dispose();return l["return"](Promise.resolve())})};
BX=function(a){if(a.g.getVideoData().va){kK(a.g,a.A);yX(a,3);zX(a);var b=AX(a),c=b.LA;b=b.WM;c.subscribe("updateend",a.xi,a);b.subscribe("updateend",a.xi,a);a.xi(c);a.xi(b)}};
zX=function(a){a.i.unsubscribe("internalvideodatachange",a.Lg,a);a.g.unsubscribe("internalvideodatachange",a.Lg,a);a.i.unsubscribe("mediasourceattached",a.Lg,a);a.g.unsubscribe("statechange",a.ey,a)};
xX=function(a,b,c,d){return new g.tX(a.isView()?a.g:a,b,c,d)};
yX=function(a,b){b<=a.o.status||(a.o={status:b,error:null},5==b&&a.B.resolve(void 0))};
uX=function(a,b){if(!a.fa()&&!a.isFinished()){var c=4<=a.o.status;a.o={status:Infinity,error:b};if(a.i&&a.g){var d=a.g.getVideoData().clientPlaybackNonce;a.i.Ma("gaplessError","cpn."+d+";msg."+b);a.l.M&&(d=a.i,d.O.ie=!1,c&&pK(d),d.l&&(c=d.l,c.g.tb=!1,c.l&&nH(c)))}a.B.reject(void 0);a.dispose()}};
wX=function(a){var b=a.i.g;b=b.isView()?b.i:0;var c=a.i.getVideoData().sa?Infinity:wK(a.i,!0);c=Math.min(a.R/1E3,c)+b;var d=a.D?100:0;a=c-a.g.getCurrentTime()+a.g.Ib()+d;return{WC:b,Qy:a,VC:c,Py:Infinity}};
AX=function(a){return{LA:a.u.g.g,WM:a.u.i.g}};
CX=function(a){g.A.call(this);var b=this;this.l=a;this.B=this.i=this.g=null;this.F=!1;this.A=null;this.o=Fma(g.X(this.l));this.u=null;this.D=function(){return g.dg(function(){return Ima(b)})}};
Jma=function(a,b,c,d){d=void 0===d?0:d;a.g&&DX(a);a.A=new SG;a.g=b;var e=c,f=a.l.yb(),k=f.getVideoData().sa?Infinity:1E3*wK(f,!0);e>k&&(e=k-a.o.H,a.F=!0);f.getCurrentTime()>=e/1E3?a.D():(a.i=f,a.l.addEventListener(g.tE("vqueued"),a.D),e=isFinite(e)||e/1E3>a.i.getDuration()?e:0x8000000000000,a.B=new g.qE(e,0x8000000000000,{namespace:"vqueued"}),a.i.addCueRange(a.B));f=d/=1E3;e=b.getVideoData().ia;if(d&&e&&a.i){k=d;var l=0;a.o.o&&b.getVideoData().sa&&(f=Math.min(c/1E3,wK(a.i,!0)),l=Math.max(0,f-a.i.getCurrentTime()),
k=Math.min(d,wK(b)+l));f=Sfa(e,k)||d;f!=d&&a.g.Ma("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+k))}b=f;a.g.getVideoData().Ci=!0;a.g.getVideoData().ie=!0;EJ(a.g,!0);d="";a.i&&(d=g.VD(a.i.u.o),e=a.i.getVideoData().clientPlaybackNonce,d="crt."+(1E3*d).toFixed()+";cpn."+e);a.g.Ma("queued",d);0!=b&&(d=a.o.o,a.o.i&&(b+=.01),a.g.seekTo(b,!0,void 0,d,a.o.I,a.o.i));a.u=new vX(a.o,a.l.yb(),a.g,c);c=a.u;Infinity!=c.o.status&&(yX(c,1),c.i.subscribe("internalvideodatachange",c.Lg,c),c.g.subscribe("internalvideodatachange",
c.Lg,c),c.i.subscribe("mediasourceattached",c.Lg,c),c.g.subscribe("statechange",c.ey,c),c.Lg());return a.A};
Ima=function(a){var b,c;return xa(function(d){switch(d.g){case 1:if(a.fa()||!a.A)return d["return"]();a.F&&ZI(a.l.yb(),!0,!1);if(!a.u){d.g=2;break}b=Hma(a.u);if(!a.o.g){d.g=2;break}d.A=4;return ua(d,b,6);case 6:d.g=2;d.A=0;break;case 4:d.A=0,d.l=null;case 2:EX(a.l.app,a.g);var e=a.g.getPlayerType();g.LP(a.l.app,e);a.l.playVideo();c=a.A;DX(a);return d["return"](c.resolve(void 0))}})};
DX=function(a){a.i&&(a.l.removeEventListener(g.tE("vqueued"),a.D),a.i.removeCueRange(a.B),a.B.dispose(),a.i=null,a.B=null);if(a.u){if(!a.u.isFinished()){var b=a.u;Infinity!=b.o.status&&uX(b,"Canceled")}a.u=null}a.A=null;a.g=null;a.F=!1};
HX=function(a,b){g.A.call(this);var c=this;this.o=a||NaN;this.l=b||null;this.i=new g.J(function(){FX(c);GX(c)});
g.B(this,this.i);this.g=[]};
FX=function(a){var b=g.M();a.g.forEach(function(c){c.expire<b&&IX(a,c,!0)});
a.g=(0,g.Xd)(a.g,function(c){return!(c.expire<b)})};
IX=function(a,b,c){c&&a.l&&a.l(b.value)};
GX=function(a){a.i.stop();var b=Infinity;for(var c=g.q(a.g),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&(b=Math.max(b-(0,g.D)(),0),a.i.start(b))};
JX=function(a){g.A.call(this);this.i=null;for(var b=[],c=0;100>=c;c++)b.push(c/100);b={threshold:b};(this.g=window.IntersectionObserver?new IntersectionObserver((0,g.x)(this.l,this),b):null)&&this.g.observe(a)};
KX=function(a){var b=a.g;g.W.call(this,{C:"div",W:["html5-video-player"],L:{tabindex:"-1",id:a.ya.attrs.id},J:[{C:"div",G:"html5-video-container",L:{"data-layer":"0"}}]});b.transparentBackground&&this.In("ytp-transparent");g.bq(this.element,"version",a.ya.assets.js);this.app=a;this.u=this.i["html5-video-container"];this.o=new g.nh(0,0,0,0);this.l=null;this.F=new g.nh(0,0,0,0);this.I=this.T=this.P=NaN;this.B=!1;this.H=NaN;this.M=!1;this.D=null;this.addEventListener=(0,g.x)(this.element.addEventListener,
this.element);this.removeEventListener=(0,g.x)(this.element.removeEventListener,this.element);this.dispatchEvent=function(){};
this.Y=(0,g.x)(function(){this.element.focus()},this);
Cz(b)&&"blazer"!=b.playerStyle&&window.matchMedia&&(this.Z="desktop-polymer"==b.playerStyle?[{query:window.matchMedia("(max-width: 656px)"),size:new g.vd(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.vd(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.vd(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.vd(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.vd(854,480)},{query:window.matchMedia("(min-width: 1000px)"),
size:new g.vd(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.vd(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.vd(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.vd(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.vd(640,360)}]);this.X=b.useFastSizingOnWatchDefault;this.A=new g.vd(NaN,NaN);Kma(this);this.K(a.i,"mutedautoplaychange",this.MG)};
Kma=function(a){var b=a.app.i,c=(0,g.x)(a.hE,a),d=(0,g.x)(a.iE,a),e=(0,g.x)(a.LG,a),f=(0,g.x)(a.UD,a);b.addEventListener("initializingmode",c);b.addEventListener("videoplayerreset",d);b.addEventListener("videodatachange",e);b.addEventListener("presentingplayerstatechange",f);g.pf(a,function(){b.removeEventListener("initializingmode",c);b.removeEventListener("videoplayerreset",d);b.removeEventListener("videodatachange",e);b.removeEventListener("presentingplayerstatechange",f)})};
LX=function(a){a.l&&(a.l.removeEventListener("focus",a.Y),g.Wd(a.l),a.l=null)};
NX=function(a){var b=g.O(a.app.g.experiments,"html5_aspect_from_adaptive_format"),c=g.U(a.app);if(c=c?c.getVideoData():null){if(c.If()||c.Jf()||c.Df())return 16/9;if(b&&c.Im()&&c.va.g)return b=c.va.videoInfos[0].video,MX(b.width,b.height)}return(a=a.l)?MX(a.videoWidth,a.videoHeight):b?16/9:NaN};
OX=function(a,b,c,d){var e=c;isNaN(a.I)?isNaN(a.T)||(e=a.T):e=a.I;a=MX(b.width,b.height);isFinite(e)||(e=Math.max(c,a));var f;e>a?f={width:b.width,height:b.width/e,aspectRatio:e}:e<a?f={width:b.height*e,height:b.height,aspectRatio:e}:f={width:b.width,height:b.height,aspectRatio:a};d||isNaN(c)||(c>e?f.width=f.height*c:c<e&&(f.height=f.width/c),f.aspectRatio=c);return f};
MX=function(a,b){return 1>Math.abs(PX*b-a)||1>Math.abs(PX/a-b)?PX:a/b};
QX=function(a){if(1==a.app.R)return!1;if(6==a.app.R)return!0;var b=g.U(a.app);if(!b||JJ(b))return!1;var c=g.IK(a.app.i);a=!g.T(c,2)||!g.O(a.app.g.experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().ie;b=g.T(c,1024);return c&&a&&!b&&!c.isCued()};
uM=function(a){var b="3"==a.app.g.l&&!a.B&&QX(a)&&!a.app.Qa;a.l.controls=b;a.l.tabIndex=b?0:-1;b?a.l.removeEventListener("focus",a.Y):g.O(a.app.g.experiments,"disable_focus_redirect")||a.l.addEventListener("focus",a.Y)};
RX=function(a){var b=a.getPlayerSize(),c=1,d=!1,e=OX(a,b,a.getVideoAspectRatio()),f=qr();if(QX(a)){var k=NX(a);var l=isNaN(k)||g.hy||dI&&g.Hz;rr&&!g.ld(601)?k=e.aspectRatio:l=l||"3"==a.app.g.l;l?l=new g.nh(0,0,b.width,b.height):(c=e.aspectRatio/k,l=new g.nh((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1==c&&g.Hz&&(k=l.width-b.height*k,0<k&&(l.width+=k,l.height+=k)));f&&(a.l.style.display="");a.M=!0}else l=-b.height,rr?l*=window.devicePixelRatio:g.Gz&&(l-=window.screen.height),l=
new g.nh(0,l,b.width,b.height),f&&(a.l.style.display="none"),a.M=!1;g.ph(a.F,l)||(a.F=l,g.vz(a.app.g)?(a.l.style.setProperty("width",l.width+"px","important"),a.l.style.setProperty("height",l.height+"px","important")):g.Rh(a.l,new g.vd(l.width,l.height)),g.Hh(a.l,g.qh(l)),d=!0);b=new g.nh((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);g.ph(a.o,b)||(a.o=b,d=!0);g.zh(a.l,"transform",1==c?"":"scaleX("+c+")");return d};
SX=function(){this.o=g.Ct();this.g=new Set;this.l=new Set;this.i=new Set};
oja=function(a,b,c,d){a.g.has(b);a.g.add(b);d=Rea(d);b.visualElement=d;var e=g.Ct(),f=g.Bt();e&&f&&g.lt(e,f,[d],void 0);g.pf(c,function(){TX(a,b)})};
g.IO=function(a,b,c){a.g.has(b);a.g.add(b);g.pf(c,function(){TX(a,b)})};
TX=function(a,b){a.g.has(b);a.g["delete"](b);a.l["delete"](b);a.i["delete"](b)};
UX=function(a){if(a.o!=g.Ct()){var b=g.Ct(),c=g.Bt();if(b&&c){a.o=b;for(var d=g.q(a.g),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&!e.wd.trackingParams&&e.wd.veType&&g.lt(b,c,[e],void 0)}if(b)for(a=g.q(a.i),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&!c.wd.trackingParams&&c.wd.veType&&g.mt(b,c)}};
g.JO=function(a,b,c){a.g.has(b);c&&(b.visualElement=g.it(c))};
VX=function(a,b,c,d,e){g.W.call(this,{C:"div",G:"ytp-horizonchart"});this.o=Math.round(a/c);this.H=b;this.B=c;this.D=d;this.F=e;this.Ta=0;this.element.style.width=this.o*this.B+"px";this.element.style.height=this.H+"em";this.l=-1;this.A=this.u=null};
WX=function(a,b){if(-1==a.l){try{var c=g.Rd("CANVAS");a.u=c.getContext("2d")}catch(m){}if(a.u){var d=a.o*a.B;a.A=c;a.A.width=d;a.A.style.width=d+"px";a.element.appendChild(a.A)}else for(a.B=Math.floor(a.B/4),a.o*=4,c=0;c<a.B;c++)d=g.Rd("SPAN"),d.style.width=a.o+"px",d.style.left=a.o*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!=a.l&&(a.l=c,a.u&&(c=1<(window.devicePixelRatio||1)?2:1,a.A.height=a.l*c,a.A.style.height=a.l+"px",a.u.scale(1,c)));c=g.q(b);for(var e=c.next();!e.done;e=
c.next()){d=a;var f=a.Ta,k=e.value;for(e=0;e+2<d.D.length&&d.D[e+1]<k;)e++;k=Math.min(1,(k-d.D[e])/(d.D[e+1]-d.D[e]));if(d.u)d.u.fillStyle=d.F[e],d.u.fillRect(f*d.o,0,d.o,d.l),d.u.fillStyle=d.F[e+1],d.u.fillRect(f*d.o,d.l*(1-k),d.o,d.l);else{f=d.element.children[f];var l=window.devicePixelRatio||1;k=Math.min(d.l,Math.round(d.l*k*l)/l)||0;f.style.height=k+"px";f.style.backgroundColor=d.F[e+1];f.style.borderTop="solid "+(d.l-k)+"px "+d.F[e]}a.Ta=(a.Ta+1)%a.B}c=a.Ta;a.u?a.u.clearRect(c*a.o,0,a.o,a.l):
(c=a.element.children[c],c.style.height="0px",c.style.borderTop="")};
XX=function(a){var b=null;b={C:"button",W:["html5-video-info-panel-close","ytp-button"],L:{title:"close"},V:"[x]"};g.W.call(this,{C:"div",G:"html5-video-info-panel",J:[b,{C:"div",G:"html5-video-info-panel-content",J:[{C:"div",J:[{C:"div",V:"Video ID / sCPN"},{C:"span",V:"{{video_id_and_cpn}}"}]},{C:"div",J:[{C:"div",V:"Viewport / Frames"},{C:"span",V:"{{dims_and_frames}}"}]},{C:"div",J:[{C:"div",V:"Current / Optimal Res"},{C:"span",V:"{{resolution}}"}]},{C:"div",J:[{C:"div",V:"Volume / Normalized"},
{C:"span",V:"{{volume}}"}]},{C:"div",J:[{C:"div",V:"Codecs"},{C:"span",V:"{{codecs}}"}]},{C:"div",L:{style:"{{shader_info_style}}"},J:[{C:"div",V:"Shader Info"},{C:"span",V:"{{shader_info}}"}]},{C:"div",L:{style:"{{color_style}}"},J:[{C:"div",V:"Color"},{C:"span",V:"{{color}}"}]},{C:"div",L:{style:"{{drm_style}}"},J:[{C:"div",V:"Protected"},{C:"span",V:"{{drm}}"}]},{C:"div",L:{style:"{{bandwidth_style}}"},J:[{C:"div",V:"Connection Speed"},{C:"span",J:[{C:"span",V:"{{bandwidth_chart}}"},{C:"span",
V:"{{bandwidth_kbps}}"}]}]},{C:"div",L:{style:"{{network_activity_style}}"},J:[{C:"div",V:"Network Activity"},{C:"span",J:[{C:"span",V:"{{network_activity_chart}}"},{C:"span",V:"{{network_activity_bytes}}"}]}]},{C:"div",J:[{C:"div",V:"Buffer Health"},{C:"span",J:[{C:"span",V:"{{buffer_health_chart}}"},{C:"span",V:"{{buffer_health_seconds}}"}]}]},{C:"div",L:{style:"{{live_latency_style}}"},J:[{C:"div",V:"Live Latency"},{C:"span",J:[{C:"span",V:"{{live_latency_chart}}"},{C:"span",V:"{{live_latency_secs}}"}]}]},
{C:"div",L:{style:"{{live_mode_style}}"},J:[{C:"div",V:"Live Mode"},{C:"span",V:"{{live_mode}}"}]},{C:"div",L:{style:"{{playback_categories_style}}"},J:[{C:"div",V:"Playback Categories"},{C:"span",V:"{{playback_categories}}"}]},{C:"div",J:[{C:"div",V:"Mystery Text"},{C:"span",V:"{{debug_info}}"}]}]}]});b&&this.K(this.i["html5-video-info-panel-close"],"click",this.hide);b=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];var c="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" "),
d=b.map(function(e){return e/4});
this.o=new VX(300,1,150,b,c);g.B(this,this.o);this.updateValue("bandwidth_chart",this.o);this.A=new VX(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.B(this,this.A);this.updateValue("live_latency_chart",this.A);this.u=new VX(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.B(this,this.u);this.updateValue("buffer_health_chart",this.u);this.B=new VX(300,1,150,d,c);g.B(this,this.B);this.updateValue("network_activity_chart",
this.B);this.l=new g.J(this.Zr,500,this);g.B(this,this.l);this.D=a};
YX=function(a,b){g.A.call(this);var c=this;this.ya=Pea(b);var d=this.ya.args||{};this.g=new xz(d);g.B(this,this.g);g.O(this.g.experiments,"html5_vp9_new_mime")&&void 0!=navigator.mediaCapabilities&&(dx=!0);g.O(this.g.experiments,"html5_manifestless_otf_killswitch")&&(JB=!1);g.O(this.g.experiments,"html5_disable_subtract_cuepoint_offset")&&(NF=!0);g.O(this.g.experiments,"web_player_sanitize_href_killswitch")&&(rD=!1);g.O(this.g.experiments,"html5_log_opus_oboe_killswitch")&&(Ru=!1);g.O(this.g.experiments,
"html5_audiotrack_refactor_killswitch")&&(Zz=!0);this.Ad=Q(bz(this.g)&&!0,d.enablesizebutton);this.Xb=Q(!1,d.player_wide);this.F=new WI;g.B(this,this.F);this.M=!1;this.M=Q(!1,d.external_list);this.H=new g.Us(this);g.B(this,this.H);this.aa=null;this.X=new g.Yo;g.B(this,this.X);this.ga=new g.Yo;g.B(this,this.ga);this.T=new SX;this.i=new g.DK(this);g.B(this,this.i);this.P=new g.DK(this,1);g.B(this,this.P);this.D=new KX(this);g.B(this,this.D);this.R=1;this.Lb={};this.I=this.g.jd?cga():{volume:100,muted:this.g.mute};
this.ma=this.g.vb?new lE(this,1):new zD(this,1);g.B(this,this.ma);this.u=null;this.uc={};d={};this.Mb=(d.internalvideodatachange=this.vI,d.playbackready=this.xI,d.playbackstarted=this.yI,d.statechange=this.UE,d.signatureexpired=this.sL,d);this.o=Lma(this);this.Yb=new g.Us(this);g.B(this,this.Yb);this.ea=new nE(this.g,this.o);this.l=Mma(this);d={};this.ld=(d.airplayactivechange=this.mI,d.airplayavailabilitychange=this.nI,d.beginseeking=this.GI,d.endseeking=this.kJ,d.internalAbandon=this.wJ,d.internalaudioformatchange=
this.AI,d.internalvideodatachange=this.zr,d.internalvideoformatchange=this.UL,d.liveviewshift=this.FJ,d.playbackstalledatstart=this.BL,d.progresssync=this.JK,d.onLoadProgress=this.GJ,d.SEEK_COMPLETE=this.XE,d.SEEK_TO=this.jL,d.onVideoProgress=this.ZE,d.onLoadedMetadata=this.IJ,d.onDompaused=this.hJ,d.playbackready=this.xK,d.statechange=this.Gz,d.connectionissue=this.ZI,d.newelementrequired=this.nz,d.heartbeatparams=this.VE,d.videoelementevent=this.YE,d.drmoutputrestricted=this.iJ,d.requestmediasource=
this.WK,d);this.oa=new g.Us(this);g.B(this,this.oa);this.A=null;this.Ya=new HX(g.uz(this.g)?3:10,function(e){e!=g.U(c,e.getPlayerType())&&(Nma("c","prefetch_"+e.getVideoData().videoId),e.dispose())});
g.B(this,this.Ya);this.Rb=this.Sb=-1;this.tb=new g.J(this.D.ye,16,this.D);g.B(this,this.tb);this.jb=!1;this.xa=!0;this.Ia=this.ab=this.B=null;this.hd=!1;this.Wb=this.kd=null;this.wa=0;this.Qa=this.Ra=!1;this.Z=null;this.jd=!1;this.Qc=!0;this.Ca=void 0;Oma(this);this.na=new eX(this.i,this.g,this.l);this.zd=null;this.Ea=new CX(this.i);g.B(this,this.Ea);this.H.K(this.i,g.tE("appapi"),this.tI);this.H.K(this.i,"crx_appapi",this.uI);this.H.K(this.i,g.tE("appad"),this.Ty);this.H.K(this.i,"crx_appad",this.Ty);
this.H.K(this.i,"crx_applooprange",this.LJ);this.H.K(this.i,"presentingplayerstatechange",this.WE);this.H.K(this.i,"resize",this.YK);this.D.g(Cd(document,a));this.H.K(this.i,"offlineslatestatechange",this.nK);this.Oc=Pma(this,this.D.element);g.B(this,this.Oc);this.Y=null;g.UP=this.g.D;this.g.ma&&(g.IV.ux=g.$W);Qma(this);UB("fs",void 0,"");Rma(this);this.g.ma?this.o.Av():g.iz(g.X(this.o.g))&&this.o.Tp();g.IV.ad=zS;.001>Math.random()&&(this.ra("web_player_sentinel_is_uniplayer")||g.$p(Error("Player flag missing: web_player_sentinel_is_uniplayer")))};
Mma=function(a){var b=new bJ(a.g,1,a.ea,a.D,(0,g.x)(a.X.N,a.X),(0,g.x)(a.i.getVisibilityState,a.i),a.F);b.setPlaybackRate(a.g.i?1:ZX(a,parseFloat(g.It("yt-player-playback-rate"))||1));Xs(b,a.Mb,a);return b};
Lma=function(a){var b="",c=a.ya.assets;c=c?c.js||"":"";0==c.indexOf("//")&&(c=a.g.protocol+":"+c);"/base.js"==c.substr(-8)&&(b=c.substr(0,c.length-8)+"/");!g.O(a.g.experiments,"web_player_module_url_debug_killswitch")&&(c=Error().stack)&&(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))&&(c=c[1],c.includes(b)||g.L(Error("Player module URL mismatch: "+(c+" vs "+b+".")),"WARNING"));b=new DV(a.i,b,a);c={};a=(c.destroyed=(0,g.x)(a.sI,a),c);b.ea=a;return b};
aY=function(a,b){var c=a.isVideoInfoVisible();a.aa||(a.aa=new XX(a),g.B(a,a.aa),g.XK(a.i,a.aa.element,4));g.sD(a.aa,b);$X(a)&&c!=b&&g.KK(a.o).zt();c=a.A;b&&c&&c.Ma("sfn","1",!0)};
cY=function(a){var b=bY.getTag(!0,!a.g.deviceHasDisplay);a.u=new g.LC(b);g.B(a,a.u);a.A&&UJ(a.A,a.u);try{a.g.ea?(a.Ia&&a.H.Na(a.Ia),a.Ia=a.H.K(a.u,"volumechange",a.XJ)):(a.u.setVolume(a.I.volume/100),a.u.Li(a.I.muted))}catch(d){var c="setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_"));g.aJ(a.l,"html5.missingapi","UNSUPPORTED_DEVICE",c,void 0);return}g.Ws(a.oa);Sma(a);c=a.D;c.l=b;c.B=!1;c.l.parentNode||Vd(c.u,c.l,0);c.F=new g.nh(0,0,0,0);RX(c);uM(c);g.H(c.l,"video-stream");g.H(c.l,"html5-main-video");
b=c.app.g;b.Rb&&c.l.setAttribute("data-no-fullscreen",!0);b.mf&&(c.l.setAttribute("webkit-playsinline",""),c.l.setAttribute("playsinline",""));b.om&&c.l&&c.K(c.l,"click",c.l.play,c.l);try{a.u.pe()}catch(d){c="activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")),g.aJ(a.l,"html5.missingapi","UNSUPPORTED_DEVICE",c,void 0)}};
dY=function(a){a.u&&(a.Ia&&(a.H.Na(a.Ia),a.Ia=null),g.Ws(a.oa),a.A&&SJ(a.A,!0),LX(a.D),a.u.xg()&&bY.releaseTag(a.u.ha()),a.u=null)};
g.LP=function(a,b){var c=g.U(a,b);c||(c=eY(a,b),fY(a,c));cL(a,c)};
cL=function(a,b){if(a.A!=b){var c=null;a.A&&(c=a.A.getPlayerState(),LV(a.o,3),RK(a,"cuerangesremoved",OG(a.A.H)||[]),a.Ea&&!b.isGapless()&&a.A.isGapless()&&a.u&&a.u.stopVideo(),dL(a));fY(a,b);a.A=b;a.u&&UJ(b,a.u);Xs(b,a.ld,a);a.zr("newdata",b,b.getVideoData());c&&!g.VC(c,b.getPlayerState())&&a.Gz(new g.ZD(b.getPlayerState(),c));b.aa.isFinished()&&a.zr("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().za)&&c.video)&&a.i.la("onPlaybackQualityChange",c.quality);RK(a,"cuerangesadded",OG(a.A.H)||
[]);a.ra("web_player_play_dompaused_presenting_killswitch")?g.XC(b.getPlayerState())?b.playVideo():g.T(b.getPlayerState(),2)&&gY(a):(c=b.getPlayerState(),g.T(c,2)?gY(a):g.T(c,8)&&b.playVideo())}};
gY=function(a){if(a.B&&g.fz(a.g)&&g.hY(a)){var b=g.O(a.g.experiments,"html5_player_autonav_logging");a.nextVideo(!1,b);b=!0}else b=!1;b||((b=a.l.g)&&b.Cj(),g.O(a.g.experiments,"web_player_state_on_player_change_killswitch")||iY(a,ZC(HK(a))))};
Sma=function(a){var b=a.u;sx()?a.oa.K(b,"webkitpresentationmodechanged",a.gL):tx()&&(a.oa.K(b,"enterpictureinpicture",function(){XI(a.F,!0)}),a.oa.K(b,"leavepictureinpicture",function(){XI(a.F,!1)}));
!a.ra("web_player_ios_vis2_killswitch")&&gz&&(a.oa.K(b,"webkitbeginfullscreen",function(){jY(a,1)}),a.oa.K(b,"webkitendfullscreen",function(){jY(a,0)}))};
fY=function(a,b){if(b!=a.l){var c=b.getPlayerType();a.uc[c]=b}};
dL=function(a){var b;if(b=a.Z)b=a.u,b=!!b&&b==a.Z.l;b&&(dY(a),cY(a));a.A&&(SJ(a.A),Ys(a.A,a.ld,a));a.A=null};
g.U=function(a,b){return b?1==b?a.l:a.uc[b]||null:a.A};
eY=function(a,b){var c=a.ea;2==b&&(c=new nE(a.g));return new bJ(a.g,b,c,a.D,(0,g.x)(a.X.N,a.X),(0,g.x)(a.i.getVisibilityState,a.i),a.F)};
kY=function(a,b){return wM(a,b)?a.l:b};
lY=function(a,b){var c=a.A;return c&&b==a.l&&wM(a,b)&&wM(a,c)?c:b};
mY=function(a){var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.o;if(!d.o)try{HV(d)?(d.o=new zS(d.na.P),d.o&&d.o.create()):g.UK(d.g,"ad")}catch(e){g.UK(d.g,"ad"),g.L(e)}d.Tp();d.qv();d.yv();d.oa&&c?g.UK(d.g,"endscreen"):d.Rp();d.Dv();d.Fv();d.Ev();d.oa&&c?(g.UK(d.g,"annotations_module"),g.UK(d.g,"creatorendscreen")):(d.Pp(),d.Qp());d.vv();d.tv();d.wv();d.Sp();d.zv();d.xv();d.Gv();d.Cv();GV(d);c&&rC(b)?a.Yb.K(a.i,"presentingplayerstatechange",a.CK):FV(a.o);a.i.N("videoready",b)};
nY=function(a){return a.l.getVideoData()};
oY=function(a){a=nY(a);a.isValid();return rC(a)};
Qma=function(a){var b=new g.zB(a.g,a.ya.args);g.Jt()&&b.Fc.push("remote");b.isValid()&&(zJ(a.l,b,(0,g.x)(a.pd,a)),!g.O(a.g.experiments,"html5_delay_initial_loading")&&oY(a)&&(a.g.kd||a.g.Qc)&&EJ(a.l))};
Rma=function(a){var b=a.D,c=b.app.g;c.gj||b.In("tag-pool-enabled");c.Kb&&b.In("house-brand");"gvn"==c.playerStyle&&(b.In("ytp-gvn"),b.element.style.backgroundColor="transparent");c.ga&&(b.H=g.lq("yt-dom-content-change",b.ye,b));b.K(window,"resize",b.ye,b);b=a.ma;b.o=a.D.element;for(var d in b.l)b.o[d]=b.l[d];(d=Ts(a.D.element))&&a.H.K(a.D,d,a.oJ);a.H.K(window,"resize",a.ZK);b=a.ya.args;cY(a);d=nY(a);a.i.la("onVolumeChange",a.I);if(b&&xE(b))if((c=Cz(a.g))&&!a.M&&(b.fetch=0),pY(a,b),c&&!a.M)qY(a);else if(!d.isValid())a.B.onReady((0,g.x)(a.On,
a));cL(a,a.l);if(!g.T(a.l.getPlayerState(),128)){b=a.g.deviceHasDisplay;try{var e=rx('video/mp4; codecs="avc1.42001E"')||rx('video/webm; codecs="vp9"');var f=(rx('audio/mp4; codecs="mp4a.40.2"')||rx('audio/webm; codecs="opus"'))&&(e||!b)||px('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(k){f="html5.missingapi"}"fmt.noneavailable"==f?g.aJ(a.l,"html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1",void 0):"html5.missingapi"==f?g.aJ(a.l,f,"UNSUPPORTED_DEVICE",
"nocanplaymedia.1",void 0):d&&d.isValid()&&oY(a)&&(a.g.kd||a.g.Qc)?rY(a):g.It("yt-player-playback-on-reload")?(CD(a.ma,"embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.g.lc}),By(!1),rY(a)):g.Kz(a.g)||sY(a);a.ra("web_player_inline_botguard")&&(Qt(a.g.jb),sea())}};
sY=function(a){a.i.N("initializingmode");g.tY(a,2);a.o.Sp()};
rY=function(a){if(g.T(a.l.getPlayerState(),128))return!1;oY(a)&&a.g.Qc&&(bY.hasTags(void 0)&&a.Qa?(DD(a,{muted:!1,volume:a.I.volume},!1),uY(a,!1)):bY.hasTags(void 0)||a.I.muted||(DD(a,{muted:!0,volume:a.I.volume},!1),uY(a,!0)));vY(a,1,a.l.getVideoData(),!1);a.i.N("initializingmode");cL(a,a.l);g.tY(a,3);var b;if(!(b=!a.g.gj)){if(b=a.Z)b=a.u,b=!!b&&b==a.Z.l;b=b&&a.hd}b&&(dY(a),cY(a),UJ(a.l,a.u));IJ(a.l);if(g.T(a.l.getPlayerState(),128))return!1;iY(a,3);return a.hd=!0};
$X=function(a){a=g.KK(a.o);return!!a&&a.loaded};
wY=function(a,b){a.A==a.l&&yK(a.A)!=b&&(a.A.setLoop(b),a.i.N("loopchange",b))};
ZX=function(a,b){var c=a.i.getAvailablePlaybackRates();b=parseFloat(b.toFixed(2));var d=c[0];c=c[c.length-1];b<=d||(b>=c?d=c:(d=Math.floor(100*b+.001)%5,d=0==d?b:Math.floor(100*(b-.01*d)+.001)/100));return d};
xY=function(a,b){var c=g.U(a,b);return c?wM(a,c)?(c=kY(a,c),rK(c)-c.getCurrentTime()+a.getCurrentTime(b)):rK(c):0};
yY=function(a,b,c){if(wM(a,c)){c=c.getVideoData();a=a.na;for(var d=g.q(a.i),e=d.next();!e.done;e=d.next())if(e=e.value,c.hc==e.hc){b+=e.nd/1E3;break}d=b;a=g.q(a.i);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.hc==e.hc)break;var f=e.nd/1E3;if(f<b)d+=e.durationMs/1E3+f-e.td/1E3;else break}return d}return b};
HK=function(a,b){return 3==a.getPresentingPlayerType()?g.KK(a.o).rk:g.U(a,b).getPlayerState()};
zY=function(a,b){return 3==a.getPresentingPlayerType()?ZC(g.KK(a.o).rk):2!=b||wM(a)?a.Sb:a.Rb};
BY=function(a){AY(a);wY(a,!1);a.setLoopRange(null);a.Lb={};var b=a.ea;if(b.g){var c=b.g;c.Z={};c.X={}}b.i=!1;b=a.na;a=a.l;a.getPlayerType();oX(b,!1);fL(b);b.l=a};
qY=function(a){var b=CY();if(b)if(b.list){if(a.B&&a.B.getPlaylistId()==b.list)if(0<=b.index){var c=b.video;a.i.isFullscreen()&&((c=c[a.B.Ta])&&c.encrypted_id!=a.B.ua().videoId||(b.index=a.B.Ta));BE(a.B,b);a.ab&&DY(a,a.ab)}else a.ab=null}else a.Zl()};
pY=function(a,b){a.B&&(a.B.unsubscribe("error",a.Zl,a),g.qf(a.B),a.B=null);b&&(a.M&&(b.fetch=0),a.B=new g.wE(a.g,b),a.B.subscribe("error",a.Zl,a))};
EY=function(a,b,c,d){b in a.Lb||(c=new g.qE(c,d,{id:b,priority:1,namespace:"appad"}),a.l.addCueRange(c),a.Lb[b]=c)};
g.tY=function(a,b){b!=a.R&&(2!=b||1!=a.getPresentingPlayerType()&&!g.O(a.g.experiments,"web_player_app_state_fix_killswitch")||(iY(a,-1),iY(a,5)),a.R=b,a.i.N("appstatechange",b))};
iY=function(a,b){if(a.A){var c=a.A.getPlayerType();if(2==c&&!wM(a)){a.Rb!=b&&(a.Rb=b,a.i.la("onAdStateChange",b));return}if(2==c&&wM(a)||5==c||6==c||7==c)if(-1==b||0==b||5==b)return}a.Sb!=b&&(a.Sb=b,a.i.la("onStateChange",b))};
kL=function(a){var b=g.U(a,void 0);if(b){a=kY(a,b);b=fK(a);var c=a.getCurrentTime(),d;(d=!a.O.sa)||(d=a.A,d=!(d.l&&d.l.o));a=d||NI(a.A)||isNaN(b)||isNaN(c)?0:Math.max(0,b-c)}else a=0;return a};
wM=function(a,b){var c=b||a.A,d;if(d=!g.O(a.g.experiments,"web_player_continuous_timeline_killswitch")&&c)a:if(d=a.na,c=c.getVideoData(),c==d.l.getVideoData()&&d.i.length)d=!0;else{d=g.q(d.i);for(var e=d.next();!e.done;e=d.next())if(c.hc==e.value.hc){d=!0;break a}d=!1}return d?!0:!1};
iX=function(a,b,c,d){d=void 0===d?0:d;if(!a.ra("html5_continuous_liveness_killswitch")){var e=g.U(a);e&&(kY(a,e).mf=!0)}Jma(a.Ea,b,c,d).then(function(){a.i.la("onQueuedVideoLoaded")},function(){})};
vY=function(a,b,c,d){if(!f){var e=b+"_"+c.videoId+"_"+c.hc;var f=a.Ya.get(e);if(!f)return null;a.Ya.remove(e);if(g.T(f.getPlayerState(),128))return f.dispose(),null}if(f==g.U(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!=c.oauthToken)return null;d||EX(a,f);return f};
EX=function(a,b){var c=b.getPlayerType();b!=g.U(a,c)&&(1==b.getPlayerType()?(b.getVideoData().autonavState=a.l.getVideoData().autonavState,Ys(a.l,a.Mb,a),c=a.l.getPlaybackRate(),a.l.dispose(),a.l=b,a.l.setPlaybackRate(c),Xs(b,a.Mb,a),BY(a)):(c=g.U(a,c))&&c.dispose(),a.A.getPlayerType()==b.getPlayerType()?cL(a,b):fY(a,b))};
rX=function(a,b,c,d){qB("_start","")||(fB("p",""),a.ea.info("srt",0));var e=vY(a,c||a.A.getPlayerType(),b,!1);e&&UB("pfp",void 0,"prefetch_"+b.videoId);if(!e){e=g.U(a,c);if(!e)return!1;a.tb.stop();FY(a,4,c);zJ(e,b,(0,g.x)(a.pd,a),d)}e==a.l&&(a.g.Ya=b.oauthToken);if(!BJ(e))return!1;a.jb&&(e.Ca=!1,a.jb=!1);if(e==a.l)return g.tY(a,1),rY(a);IJ(e);return!0};
GY=function(a,b,c){c=g.U(a,c);b&&c==a.l&&(c.getVideoData().tg=!0)};
HY=function(a,b,c){var d=g.U(a,c);d&&(FY(a,4,c),zJ(d,b,(0,g.x)(a.pd,a)),d==a.l&&(g.tY(a,1),sY(a)))};
g.IY=function(a,b,c,d,e,f){if(!b&&!d)throw Error("Playback source is invalid");bz(a.g)||g.Ez(a.g)?(c=c||{},c.lact=Cs(),c.vis=a.i.getVisibilityState(),a.i.la("onPlayVideo",{videoId:b,watchEndpoint:f,sessionData:c,listId:d})):(c=a.ea,c.g&&(f=c.g,f.Z={},f.X={}),c.i=!1,a.ea.reset(),b={video_id:b},e&&(b.autoplay="1"),e&&(b.autonav="1"),d?(b.list=d,a.loadPlaylist(b)):a.loadVideoByPlayerVars(b,1))};
g.hY=function(a){if(a.i.isMutedByMutedAutoplay())return!1;if(3==a.getPresentingPlayerType())return!0;Cz(a.g)&&!a.M&&qY(a);return!(!a.B||!a.B.hasNext())};
DY=function(a,b){var c=g.w(b);if(c){var d=CY();d&&d.list&&c();a.ab=null}else a.ab=b};
CY=function(){var a=g.w("yt.www.watch.lists.getState");return a?a():null};
JY=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"==f?(b.style="ytp-chapter-marker",b.visible=!0):isNaN(e)||("ad"==f?b.style="ytp-ad-progress":(b.style="ytp-time-marker",b.color=e),b.visible=!0);PK(a,[new g.qE(1E3*c,1E3*d,b)],1);return!0};
PK=function(a,b,c){var d=g.U(a,c);d&&(d=d.H,d.i(),MG(d.g,b),d.o=NaN,d.i(),c&&a.getPresentingPlayerType()!=c||RK(a,"cuerangesadded",b))};
PP=function(a){var b=g.M(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)};
DD=function(a,b,c){a.g.M&&(a.I=b,b.muted||uY(a,!1),c&&a.g.jd&&!a.g.ea&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.Ht("yt-player-volume",c),g.Ht("yt-player-volume",c,2592E3))),KY(a),c=g.qx&&a.u&&!a.u.Vc(),!a.g.ea||c)&&(b=g.bc(b),a.g.jd||(b.unstorable=!0),a.i.la("onVolumeChange",b))};
KY=function(a){var b=a.getVideoData();if(!b.Ng){b=a.g.ea?1:uC(b);var c=a.u;c.setVolume(a.I.volume*b/100);c.Li(a.I.muted)}};
uY=function(a,b){b!=a.Qa&&(a.Qa=b,a.i.N("mutedautoplaychange",b))};
LY=function(a){var b=Rs();return b&&(b==a.D.element||a.u&&b==a.u.ha())?b:null};
NY=function(a,b){var c=window.screen&&window.screen.orientation;if(g.O(a.g.experiments,"lock_fullscreen2")&&c&&c.lock&&(!g.qx||!MY))if(b){var d=0==c.type.indexOf("portrait"),e=a.D.getVideoAspectRatio(),f=d;1>e?f=!0:1<e&&(f=!1);if(!a.Ra||f!=d){if(c=c.lock(f?"portrait":"landscape"))c["catch"](g.Ha);a.Ra=!0}}else a.Ra&&(a.Ra=!1,c.unlock())};
jY=function(a,b){var c=!!b,d=!!a.F.l!=c,e=a.F;e.l!=b&&(e.l=b,e.yi());a.ra("html5_media_fullscreen")&&!c&&a.u&&Rs()==a.u.ha()&&a.u.Cj();a.D.ye();d&&UB("fsc",void 0,"");d&&(a.i.N("fullscreentoggled",c),d=nY(a),c={fullscreen:c,videoId:d.Nt||d.videoId,time:a.getCurrentTime()},a.P.getPlaylistId()&&(c.listId=a.P.getPlaylistId()),a.i.la("onFullscreenChange",c))};
RK=function(a,b,c){a.i.N(b,c);var d=g.uz(a.g)||g.vz(a.g)||Fz(a.g);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.i.la(e,c)}};
FY=function(a,b,c){WA(a.wa);a.wa=0;var d=g.U(a,c);d&&1!=a.R&&2!=a.R&&(d==a.A&&LV(a.o,b),1==c&&(g.O(a.g.experiments,"html5_stop_video_in_cancel_playback")&&d.stopVideo(),AY(a)),g.PJ(d),RK(a,"cuerangesremoved",OG(d.H)||[]),d.H.reset(),a.Ea&&d.isGapless()&&(SJ(d,!0),UJ(d,a.u)))};
OY=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var k=g.U(a,e);if(!k||(2!=k.getPlayerType()||wM(a,k)||f)&&!g.lC(k.getVideoData()))3==a.getPresentingPlayerType()?g.KK(a.o).bf("control_seek",b,c):a.seekTo(b,c,d,e)};
PY=function(a,b,c,d){if(!(a.jb||a.ra("html5_only_reload_for_yt_killswitch")&&"yt"!=a.g.Y)){c&&(dY(a),cY(a));a.jb=!0;c=g.U(a);c.Ca=!0;c.Ma("reloading","reason."+b);var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.sa||(f.start=c.getCurrentTime(),f.resume="1");e.gf&&(f.vvt=e.gf);e.nl&&(f.vss_credentials_token=e.nl,f.vss_credentials_token_type=e.Xi);e.oauthToken&&(f.oauth_token=e.oauthToken);f.autoplay=1;f.reload_count=e.cf+1;f.reload_reason=b;e.Si&&(f.unplugged_partner_opt_out=
e.Si);a.loadVideoByPlayerVars(f,void 0,d)}};
QY=function(a,b){nY(a).autonavState=b;g.Ht("yt-player-autonavstate",b);a.i.N("autonavchange",b)};
RY=function(a){var b=a.getVideoData().Ng,c=a.g.cg,d=a.u;b||c?d.Wp():(d.Yp(),DD(a,a.I))};
Pma=function(a,b){return g.O(a.g.experiments,"html5_enable_embedded_player_visibility_signals")&&a.g.i?new JX(b):null};
AY=function(a){(a=a.o.o)&&a.created&&a.destroy()};
SY=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.q(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Eh(a,d);b.hidden=!!a.hidden};
Oma=function(a){var b=a.g,c=document.requestStorageAccess&&document.hasStorageAccess;g.O(b.experiments,"embeds_enable_request_storage_access_safari_itp")&&c&&b.i?sr()||b.oa?(CD(a.ma,"embedsStorageAccessNotChecked",{isIosWebview:sr(),isPemPlayer:b.oa}),a.Ca=!1):document.hasStorageAccess().then(function(d){CD(a.ma,"embedsHasStorageAccessResult",{hasCookieAccess:d,resultedInError:!1});a.Ca=!d},function(d){CD(a.ma,"embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.$p(Error("Embeds ITP Error: "+d));a.Ca=!1}):a.Ca=!1};
TY=function(a,b,c){for(var d in b)a[c+d]=b[d];return a};
aa=[];fa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b};
if("function"==typeof Object.setPrototypeOf)UY=Object.setPrototypeOf;else{var VY;a:{var Tma={a:!0},WY={};try{WY.__proto__=Tma;VY=WY.a;break a}catch(a){}VY=!1}UY=VY?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
var ha=UY,ia="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,ka="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
la("Promise",function(a){function b(k){this.i=0;this.l=void 0;this.g=[];var l=this.o();try{k(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.g=null}
function d(k){return k instanceof b?k:new b(function(l){l(k)})}
if(a)return a;c.prototype.i=function(k){if(null==this.g){this.g=[];var l=this;this.l(function(){l.u()})}this.g.push(k)};
var e=ia.setTimeout;c.prototype.l=function(k){e(k,0)};
c.prototype.u=function(){for(;this.g&&this.g.length;){var k=this.g;this.g=[];for(var l=0;l<k.length;++l){var m=k[l];k[l]=null;try{m()}catch(n){this.o(n)}}}this.g=null};
c.prototype.o=function(k){this.l(function(){throw k;})};
b.prototype.o=function(){function k(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:k(this.H),reject:k(this.u)}};
b.prototype.H=function(k){if(k===this)this.u(new TypeError("A Promise cannot resolve to itself"));else if(k instanceof b)this.I(k);else{a:switch(typeof k){case "object":var l=null!=k;break a;case "function":l=!0;break a;default:l=!1}l?this.F(k):this.A(k)}};
b.prototype.F=function(k){var l=void 0;try{l=k.then}catch(m){this.u(m);return}"function"==typeof l?this.R(l,k):this.A(k)};
b.prototype.u=function(k){this.B(2,k)};
b.prototype.A=function(k){this.B(1,k)};
b.prototype.B=function(k,l){if(0!=this.i)throw Error("Cannot settle("+k+", "+l+"): Promise already settled in state"+this.i);this.i=k;this.l=l;this.D()};
b.prototype.D=function(){if(null!=this.g){for(var k=0;k<this.g.length;++k)f.i(this.g[k]);this.g=null}};
var f=new c;b.prototype.I=function(k){var l=this.o();k.Ul(l.resolve,l.reject)};
b.prototype.R=function(k,l){var m=this.o();try{k.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(k,l){function m(v,z){return"function"==typeof v?function(C){try{n(v(C))}catch(F){p(F)}}:z}
var n,p,r=new b(function(v,z){n=v;p=z});
this.Ul(m(k,n),m(l,p));return r};
b.prototype["catch"]=function(k){return this.then(void 0,k)};
b.prototype.Ul=function(k,l){function m(){switch(n.i){case 1:k(n.l);break;case 2:l(n.l);break;default:throw Error("Unexpected state: "+n.i);}}
var n=this;null==this.g?f.i(m):this.g.push(m)};
b.resolve=d;b.reject=function(k){return new b(function(l,m){m(k)})};
b.race=function(k){return new b(function(l,m){for(var n=g.q(k),p=n.next();!p.done;p=n.next())d(p.value).Ul(l,m)})};
b.all=function(k){var l=g.q(k),m=l.next();return m.done?d([]):new b(function(n,p){function r(C){return function(F){v[C]=F;z--;0==z&&n(v)}}
var v=[],z=0;do v.push(void 0),z++,d(m.value).Ul(r(v.length-1),p),m=l.next();while(!m.done)})};
return b});
na.prototype.toString=function(){return this.g};
var aaa=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new na("jscomp_symbol_"+(c||"")+"_"+b++,c)}
var b=0;return a}();
qa.prototype.B=function(a){this.u=a};
qa.prototype["return"]=function(a){this.l={"return":a};this.g=this.D};
la("Array.prototype.findIndex",function(a){return a?a:function(b,c){return ya(this,b,c).Tw}});
la("Array.prototype.find",function(a){return a?a:function(b,c){return ya(this,b,c).wB}});
la("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=za(this,b,"endsWith");b+="";void 0===c&&(c=d.length);for(var e=Math.max(0,Math.min(c|0,d.length)),f=b.length;0<f&&0<e;)if(d[--e]!=b[--f])return!1;return 0>=f}});
la("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=za(this,b,"startsWith");b+="";for(var e=d.length,f=b.length,k=Math.max(0,Math.min(c|0,d.length)),l=0;l<f&&k<e;)if(d[k++]!=b[l++])return!1;return l>=f}});
la("String.prototype.repeat",function(a){return a?a:function(b){var c=za(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
la("Array.prototype.keys",function(a){return a?a:function(){return Aa(this,function(b){return b})}});
la("Array.prototype.values",function(a){return a?a:function(){return Aa(this,function(b,c){return c})}});
var Uma="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ba(d,e)&&(a[e]=d[e])}return a};
la("Object.assign",function(a){return a||Uma});
la("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
la("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
la("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
la("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length,f=c||0;for(0>f&&(f=Math.max(f+e,0));f<e;f++){var k=d[f];if(k===b||Object.is(k,b))return!0}return!1}});
la("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==za(this,b,"includes").indexOf(b,c||0)}});
la("WeakMap",function(a){function b(l){this.g=(k+=Math.random()+1).toString();if(l){l=g.q(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
function c(){}
function d(l){if(!Ba(l,f)){var m=new c;ka(l,f,{value:m})}}
function e(l){var m=Object[l];m&&(Object[l]=function(n){if(n instanceof c)return n;d(n);return m(n)})}
if(function(){if(!a||!Object.seal)return!1;try{var l=Object.seal({}),m=Object.seal({}),n=new a([[l,2],[m,3]]);if(2!=n.get(l)||3!=n.get(m))return!1;n["delete"](l);n.set(m,4);return!n.has(l)&&4==n.get(m)}catch(p){return!1}}())return a;
var f="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var k=0;b.prototype.set=function(l,m){d(l);if(!Ba(l,f))throw Error("WeakMap key fail: "+l);l[f][this.g]=m;return this};
b.prototype.get=function(l){return Ba(l,f)?l[f][this.g]:void 0};
b.prototype.has=function(l){return Ba(l,f)&&Ba(l[f],this.g)};
b.prototype["delete"]=function(l){return Ba(l,f)&&Ba(l[f],this.g)?delete l[f][this.g]:!1};
return b});
la("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.g;return oa(function(){if(n){for(;n.head!=l.g;)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++k,f.set(m,n)):n="p_"+m;var p=l.i[n];if(p&&Ba(l.i,n))for(var r=0;r<p.length;r++){var v=p[r];if(m!==m&&v.key!==v.key||m===v.key)return{id:n,list:p,index:r,od:v}}return{id:n,list:p,index:-1,od:void 0}}
function e(l){this.i={};this.g=b();this.size=0;if(l){l=g.q(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.q([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(r){return!1}}())return a;
pa();var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this.i[n.id]=[]);n.od?n.od.value=m:(n.od={next:this.g,previous:this.g.previous,head:this.g,key:l,value:m},n.list.push(n.od),this.g.previous.next=n.od,this.g.previous=n.od,this.size++);return this};
e.prototype["delete"]=function(l){l=d(this,l);return l.od&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.i[l.id],l.od.previous.next=l.od.next,l.od.next.previous=l.od.previous,l.od.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.i={};this.g=this.g.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).od};
e.prototype.get=function(l){return(l=d(this,l).od)&&l.value};
e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
e.prototype.keys=function(){return c(this,function(l){return l.key})};
e.prototype.values=function(){return c(this,function(l){return l.value})};
e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var k=0;return e});
la("Set",function(a){function b(c){this.g=new Map;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.q([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(k){return!1}}())return a;
pa();b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};
b.prototype["delete"]=function(c){c=this.g["delete"](c);this.size=this.g.size;return c};
b.prototype.clear=function(){this.g.clear();this.size=0};
b.prototype.has=function(c){return this.g.has(c)};
b.prototype.entries=function(){return this.g.entries()};
b.prototype.values=function(){return this.g.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};
return b});
la("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var k=0;!(f=b.next()).done;)e.push(c.call(d,f.value,k++))}else for(f=b.length,k=0;k<f;k++)e.push(c.call(d,b[k],k));return e}});
la("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ba(b,d)&&c.push(b[d]);return c}});
var Vma=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=fa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}();
la("Reflect.construct",function(){return Vma});
la("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
la("WeakSet",function(a){function b(c){this.g=new WeakMap;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e["delete"](c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
b.prototype.add=function(c){this.g.set(c,!0);return this};
b.prototype.has=function(c){return this.g.has(c)};
b.prototype["delete"]=function(c){return this.g["delete"](c)};
return b});
la("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ba(b,d)&&c.push([d,b[d]]);return c}});
la("Number.parseInt",function(a){return a||parseInt});
la("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
g.XY=g.XY||{};g.u=this||self;Jaa=/^[\w+/_-]+[=]{0,2}$/;Uc=null;Oa="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.D=Date.now||function(){return+new Date};g.Sa(Ta,Error);Ta.prototype.name="CustomError";var Ad;g.Sa(Ua,Ta);Ua.prototype.name="AssertionError";var Za,nj;Za=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(g.Da(a))return g.Da(b)&&1==b.length?a.indexOf(b,0):-1;
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.Wma=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
0>c&&(c=Math.max(0,a.length+c));if(g.Da(a))return g.Da(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.y=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=g.Da(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.Xd=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,k=g.Da(a)?a.split(""):a,l=0;l<d;l++)if(l in k){var m=k[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.ge=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=g.Da(a)?a.split(""):a,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));
return e};
nj=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.y)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
g.Oj=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=g.Da(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;
return!1};
g.mj=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=g.Da(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};var Fb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},xb=/&/g,yb=/</g,zb=/>/g,Ab=/"/g,Bb=/'/g,Cb=/\x00/g,qaa=/[\x00&<>"']/;a:{var YY=g.u.navigator;if(YY){var ZY=YY.userAgent;if(ZY){g.Ib=ZY;break a}}g.Ib=""};var dc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var Xma={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};oc.prototype.Ef=!0;oc.prototype.ee=function(){return this.g};
oc.prototype.toString=function(){return"Const{"+this.g+"}"};
var nc={},mc={},Haa=g.qc("");var Yma=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),nW=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]"),QS=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),
PS=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]"),Zma=/^http:\/\/.*/,$ma=/\s+/,ana=/[\d\u06f0-\u06f9]/;sc.prototype.Ef=!0;sc.prototype.ee=function(){return this.i.toString()};
sc.prototype.Mq=!0;sc.prototype.g=function(){return 1};
var vaa=/%{(\w+)}/g,uaa=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,rc={};g.xc.prototype.Ef=!0;g.xc.prototype.ee=function(){return this.i.toString()};
g.xc.prototype.Mq=!0;g.xc.prototype.g=function(){return 1};
var yaa=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))(?:;\w+=(?:\w+|"[\w;=]+"))*$/i,xaa=/^data:([^,]*);base64,[a-z0-9+\/]+=*$/i,Ac=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,wc={};Bc("about:blank");Fc.prototype.Ef=!0;var Ec={};Fc.prototype.ee=function(){return this.g};
var bna=Gc(""),Aaa=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,Jc=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Ic=RegExp("\\b(hsl|hsla|rgb|rgba|matrix|calc|minmax|fit-content|repeat|(rotate|scale|translate)(X|Y|Z|3d)?)\\([-+*/0-9a-z.%\\[\\], ]+\\)","g"),Baa=/\/\*/;Lc.prototype.Mq=!0;Lc.prototype.g=function(){return this.l};
Lc.prototype.Ef=!0;Lc.prototype.ee=function(){return this.i.toString()};
var $Y=/^[a-zA-Z0-9-]+$/,cna={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},dna={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Kc={};Qc("<!DOCTYPE html>",0);var Pc=Qc("",0);Qc("<br>",0);var Gaa=lc(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.Mc(Pc);return!b.parentElement});var Kaa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};hd[" "]=g.Ha;var dI,MY,aZ,bZ,ena,Xy,Yy,bK,cZ;g.Ch=Jb("Opera");g.Ld=Jb("Trident")||Jb("MSIE");g.hy=Jb("Edge");g.Gz=g.hy||g.Ld;g.Bh=Jb("Gecko")&&!(Eb(g.Ib,"WebKit")&&!Jb("Edge"))&&!(Jb("Trident")||Jb("MSIE"))&&!Jb("Edge");g.Nd=Eb(g.Ib,"WebKit")&&!Jb("Edge");dI=Jb("Macintosh");MY=Jb("Windows");g.tr=Jb("Android");aZ=fd();bZ=Jb("iPad");ena=Jb("iPod");Xy=gd();Yy=Eb(g.Ib,"KaiOS");bK=Eb(g.Ib,"GAFP");
a:{var dZ="",eZ=function(){var a=g.Ib;if(g.Bh)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.hy)return/Edge\/([\d\.]+)/.exec(a);if(g.Ld)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Nd)return/WebKit\/(\S+)/.exec(a);if(g.Ch)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
eZ&&(dZ=eZ?eZ[1]:"");if(g.Ld){var fZ=jd();if(null!=fZ&&fZ>parseFloat(dZ)){cZ=String(fZ);break a}}cZ=dZ}var kd=cZ,Maa={},gZ;gZ=g.u.document&&g.Ld?jd():void 0;var Oaa=gZ;var Paa=!g.Ld||g.od(9),Raa=!g.Bh&&!g.Ld||g.Ld&&g.od(9)||g.Bh&&g.ld("1.9.1"),Taa=g.Ld||g.Ch||g.Nd;g.td.prototype.clone=function(){return new g.td(this.x,this.y)};
g.td.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.td.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.td.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};g.h=g.vd.prototype;g.h.clone=function(){return new g.vd(this.width,this.height)};
g.h.aspectRatio=function(){return this.width/this.height};
g.h.isEmpty=function(){return!xd(this)};
g.h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var Hd={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.h=yd.prototype;g.h.ha=function(){return Cd(this.g,void 0)};
g.h.getElementsByTagName=function(a,b){return(b||this.g).getElementsByTagName(String(a))};
g.h.createElement=function(a){return this.g.createElement(String(a))};
g.h.appendChild=g.Td;g.h.append=function(a,b){Pd(zd(a),a,arguments,1)};
g.h.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.h.removeNode=g.Wd;g.h.contains=g.$d;var gz,jC;g.Vx=gc();gz=fd()||Jb("iPod");jC=Jb("iPad");g.Zy=g.jc();g.qx=hc();g.Hz=ic()&&!gd();var je=null,oe=null,ie=null;var Ke=0,Le=0;var re=[];qe.prototype.clone=function(){return se(this.i,this.o,this.l-this.o)};
qe.prototype.clear=function(){this.i=null;this.g=this.l=this.o=0;this.u=!1};
qe.prototype.reset=function(){this.g=this.o};we.prototype.reset=function(){this.g.reset();this.i=this.l=-1};Ce.prototype.length=function(){return this.g.length};
Ce.prototype.end=function(){var a=this.g;this.g=[];return a};Fe.prototype.reset=function(){this.l=[];this.g.end();this.i=0};var Ue="function"==typeof Uint8Array,Ve=[];Te.prototype.toString=function(){lf(this);return this.i.toString()};
Te.prototype.clone=function(){return new this.constructor(mf(jf(this)))};g.u.console&&"function"===typeof g.u.console.log&&(0,g.x)(g.u.console.log,g.u.console);var of={};var Jf=!g.Ld||g.od(9),fna=g.Ld&&!g.ld("9"),aba=function(){if(!g.u.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{g.u.addEventListener("test",g.Ha,b),g.u.removeEventListener("test",g.Ha,b)}catch(c){}return a}();g.A.prototype.ib=!1;g.A.prototype.fa=function(){return this.ib};
g.A.prototype.dispose=function(){this.ib||(this.ib=!0,this.U())};
g.A.prototype.U=function(){if(this.qh)for(;this.qh.length;)this.qh.shift()()};g.sf.prototype.stopPropagation=function(){this.wh=!0};
g.sf.prototype.preventDefault=function(){this.defaultPrevented=!0;this.tA=!1};var FW;FW=g.Nd?"webkitAnimationEnd":g.Ch?"oanimationend":"animationend";g.Sa(tf,g.sf);var gna={2:"touch",3:"pen",4:"mouse"};
tf.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;e?g.Bh&&(id(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==
a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=g.Da(a.pointerType)?a.pointerType:gna[a.pointerType]||"";this.state=a.state;this.g=a;a.defaultPrevented&&this.preventDefault()};
tf.prototype.stopPropagation=function(){tf.bb.stopPropagation.call(this);this.g.stopPropagation?this.g.stopPropagation():this.g.cancelBubble=!0};
tf.prototype.preventDefault=function(){tf.bb.preventDefault.call(this);var a=this.g;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,fna)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Yaa;g.uf="closure_listenable_"+(1E6*Math.random()|0);Yaa=0;xf.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.g++);var k=Af(a,b,d,e);-1<k?(b=a[k],c||(b.Tl=!1)):(b=new Zaa(b,this.src,f,!!d,e),b.Tl=c,a.push(b));return b};
xf.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Af(e,b,c,d);return-1<b?(wf(e[b]),g.bb(e,b),0==e.length&&(delete this.listeners[a],this.g--),!0):!1};
xf.prototype.Jj=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Af(a,b,c,d));return-1<e?a[e]:null};var Gf="closure_lm_"+(1E6*Math.random()|0),Mf={},If=0,Pf="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Sa(g.Qf,g.A);g.Qf.prototype[g.uf]=!0;g.h=g.Qf.prototype;g.h.ct=function(a){this.H=a};
g.h.addEventListener=function(a,b,c,d){g.Cf(this,a,b,c,d)};
g.h.removeEventListener=function(a,b,c,d){g.Kf(this,a,b,c,d)};
g.h.dispatchEvent=function(a){var b=this.H;if(b){var c=[];for(var d=1;b;b=b.H)c.push(b),++d}b=this.Z;d=a.type||a;if(g.Da(a))a=new g.sf(a,b);else if(a instanceof g.sf)a.target=a.target||b;else{var e=a;a=new g.sf(d,b);g.ec(a,e)}e=!0;if(c)for(var f=c.length-1;!a.wh&&0<=f;f--){var k=a.currentTarget=c[f];e=Tf(k,d,!0,a)&&e}a.wh||(k=a.currentTarget=b,e=Tf(k,d,!0,a)&&e,a.wh||(e=Tf(k,d,!1,a)&&e));if(c)for(f=0;!a.wh&&f<c.length;f++)k=a.currentTarget=c[f],e=Tf(k,d,!1,a)&&e;return e};
g.h.U=function(){g.Qf.bb.U.call(this);this.te&&g.zf(this.te);this.H=null};
g.h.da=function(a,b,c,d){return this.te.add(String(a),b,!1,c,d)};
g.h.an=function(a,b,c,d){return this.te.add(String(a),b,!0,c,d)};
g.h.Na=function(a,b,c,d){this.te.remove(String(a),b,c,d)};
g.h.Jj=function(a,b,c,d){return this.te.Jj(String(a),b,c,d)};Uf.prototype.get=function(){if(0<this.i){this.i--;var a=this.g;this.g=a.next;a.next=null}else a=this.l();return a};var Xf;var fg=new Uf(function(){return new $f},function(a){a.reset()});
Zf.prototype.add=function(a,b){var c=fg.get();c.set(a,b);this.i?this.i.next=c:this.g=c;this.i=c};
Zf.prototype.remove=function(){var a=null;this.g&&(a=this.g,this.g=this.g.next,this.g||(this.i=null),a.next=null);return a};
$f.prototype.set=function(a,b){this.wf=a;this.scope=b;this.next=null};
$f.prototype.reset=function(){this.next=this.scope=this.wf=null};var ag,bg=!1,cg=new Zf;kg.prototype.reset=function(){this.context=this.onRejected=this.l=this.g=null;this.i=!1};
var lg=new Uf(function(){return new kg},function(a){a.reset()});
jg.prototype.then=function(a,b,c){return vg(this,g.Ma(a)?a:null,g.Ma(b)?b:null,c)};
gg(jg);jg.prototype.cancel=function(a){0==this.g&&g.dg(function(){var b=new Cg(a);yg(this,b)},this)};
jg.prototype.F=function(a){this.g=0;ig(this,2,a)};
jg.prototype.H=function(a){this.g=0;ig(this,3,a)};
jg.prototype.D=function(){for(var a;a=zg(this);)Ag(this,a,this.g,this.B);this.A=!1};
var Eg=Wf;g.Sa(Cg,Ta);Cg.prototype.name="cancel";g.Sa(g.Fg,g.Qf);g.h=g.Fg.prototype;g.h.enabled=!1;g.h.Aa=null;g.h.setInterval=function(a){this.Zc=a;this.Aa&&this.enabled?(this.stop(),this.start()):this.Aa&&this.stop()};
g.h.Mc=function(){if(this.enabled){var a=(0,g.D)()-this.qx;0<a&&a<.8*this.Zc?this.Aa=this.jl.setTimeout(this.Tu,this.Zc-a):(this.Aa&&(this.jl.clearTimeout(this.Aa),this.Aa=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.h.start=function(){this.enabled=!0;this.Aa||(this.Aa=this.jl.setTimeout(this.Tu,this.Zc),this.qx=(0,g.D)())};
g.h.stop=function(){this.enabled=!1;this.Aa&&(this.jl.clearTimeout(this.Aa),this.Aa=null)};
g.h.U=function(){g.Fg.bb.U.call(this);this.stop();delete this.jl};var Mg={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},kba=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;g.h=Ng.prototype;g.h.isEnabled=function(){return navigator.cookieEnabled};
g.h.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');g.Ca(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date((0,g.D)()+1E3*c)).toUTCString();this.g.cookie=a+"="+b+e+d+c+f};
g.h.get=function(a,b){for(var c=a+"=",d=(this.g.cookie||"").split(";"),e=0,f;e<d.length;e++){f=Fb(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
g.h.remove=function(a,b,c){var d=g.Ca(this.get(a));this.set(a,"",0,b,c);return d};
g.h.Pd=function(){return Og(this).keys};
g.h.Bc=function(){return Og(this).values};
g.h.isEmpty=function(){return!this.g.cookie};
g.h.clear=function(){for(var a=Og(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Fs=new Ng("undefined"==typeof document?null:document);var Rg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,eh=/#|$/,lba=/[?&]($|#)/;hh.prototype.remove=function(a){Zb(this.g,a)};
hh.prototype.set=function(a,b){this.g[a]=b};
hh.prototype.get=function(a){return $b(this.g,a,null)};g.h=g.kh.prototype;g.h.Me=function(){return this.right-this.left};
g.h.getHeight=function(){return this.bottom-this.top};
g.h.clone=function(){return new g.kh(this.top,this.right,this.bottom,this.left)};
g.h.contains=function(a){return this&&a?a instanceof g.kh?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};g.h=g.nh.prototype;g.h.clone=function(){return new g.nh(this.left,this.top,this.width,this.height)};
g.h.contains=function(a){return a instanceof g.td?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.h.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.h.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.h.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var vh=null;rh.prototype.getName=function(){return this.u};
rh.prototype.getValue=function(){return this.g};
rh.prototype.i=function(){return String(this.g)};
g.Sa(sh,rh);sh.prototype.i=function(){return this.g?"1":"0"};
g.Sa(th,rh);th.prototype.i=function(){return this.g?Math.round(this.g.top)+"."+Math.round(this.g.left)+"."+(Math.round(this.g.top)+Math.round(this.g.height))+"."+(Math.round(this.g.left)+Math.round(this.g.width)):""};var Ah={};new g.Fg(200);var qk;qk=["av.key","js","unreleased"].slice(-1)[0];var mi=document,G=window;g.hZ={Vt:["BC","AD"],Ut:["Before Christ","Anno Domini"],hu:"JFMAMJJASOND".split(""),ru:"JFMAMJJASOND".split(""),ep:"January February March April May June July August September October November December".split(" "),jp:"January February March April May June July August September October November December".split(" "),hp:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),kp:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),pp:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
mp:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ip:"Sun Mon Tue Wed Thu Fri Sat".split(" "),lp:"Sun Mon Tue Wed Thu Fri Sat".split(" "),kC:"SMTWTFS".split(""),tu:"SMTWTFS".split(""),qu:["Q1","Q2","Q3","Q4"],lu:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Zo:["AM","PM"],yl:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],np:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],St:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],cj:6,Au:[5,6],dj:5};
g.hZ={Vt:["BC","AD"],Ut:["\uae30\uc6d0\uc804","\uc11c\uae30"],hu:"1\uc6d4 2\uc6d4 3\uc6d4 4\uc6d4 5\uc6d4 6\uc6d4 7\uc6d4 8\uc6d4 9\uc6d4 10\uc6d4 11\uc6d4 12\uc6d4".split(" "),ru:"1\uc6d4 2\uc6d4 3\uc6d4 4\uc6d4 5\uc6d4 6\uc6d4 7\uc6d4 8\uc6d4 9\uc6d4 10\uc6d4 11\uc6d4 12\uc6d4".split(" "),ep:"1\uc6d4 2\uc6d4 3\uc6d4 4\uc6d4 5\uc6d4 6\uc6d4 7\uc6d4 8\uc6d4 9\uc6d4 10\uc6d4 11\uc6d4 12\uc6d4".split(" "),jp:"1\uc6d4 2\uc6d4 3\uc6d4 4\uc6d4 5\uc6d4 6\uc6d4 7\uc6d4 8\uc6d4 9\uc6d4 10\uc6d4 11\uc6d4 12\uc6d4".split(" "),
hp:"1\uc6d4 2\uc6d4 3\uc6d4 4\uc6d4 5\uc6d4 6\uc6d4 7\uc6d4 8\uc6d4 9\uc6d4 10\uc6d4 11\uc6d4 12\uc6d4".split(" "),kp:"1\uc6d4 2\uc6d4 3\uc6d4 4\uc6d4 5\uc6d4 6\uc6d4 7\uc6d4 8\uc6d4 9\uc6d4 10\uc6d4 11\uc6d4 12\uc6d4".split(" "),pp:"\uc77c\uc694\uc77c \uc6d4\uc694\uc77c \ud654\uc694\uc77c \uc218\uc694\uc77c \ubaa9\uc694\uc77c \uae08\uc694\uc77c \ud1a0\uc694\uc77c".split(" "),mp:"\uc77c\uc694\uc77c \uc6d4\uc694\uc77c \ud654\uc694\uc77c \uc218\uc694\uc77c \ubaa9\uc694\uc77c \uae08\uc694\uc77c \ud1a0\uc694\uc77c".split(" "),
ip:"\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0".split(""),lp:"\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0".split(""),kC:"\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0".split(""),tu:"\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0".split(""),qu:["1\ubd84\uae30","2\ubd84\uae30","3\ubd84\uae30","4\ubd84\uae30"],lu:["\uc81c 1/4\ubd84\uae30","\uc81c 2/4\ubd84\uae30","\uc81c 3/4\ubd84\uae30","\uc81c 4/4\ubd84\uae30"],Zo:["\uc624\uc804","\uc624\ud6c4"],yl:["y\ub144 M\uc6d4 d\uc77c EEEE","y\ub144 M\uc6d4 d\uc77c",
"y. M. d.","yy. M. d."],np:["a h\uc2dc m\ubd84 s\ucd08 zzzz","a h\uc2dc m\ubd84 s\ucd08 z","a h:mm:ss","a h:mm"],St:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],cj:6,Au:[5,6],dj:5};g.h=g.Zh.prototype;g.h.Vv=g.hZ.cj;g.h.Xv=g.hZ.dj;g.h.clone=function(){var a=new g.Zh(this.date);a.Vv=this.Vv;a.Xv=this.Xv;return a};
g.h.getFullYear=function(){return this.date.getFullYear()};
g.h.getMonth=function(){return this.date.getMonth()};
g.h.getDate=function(){return this.date.getDate()};
g.h.getTime=function(){return this.date.getTime()};
g.h.getDay=function(){return this.date.getDay()};
g.h.getUTCFullYear=function(){return this.date.getUTCFullYear()};
g.h.getUTCMonth=function(){return this.date.getUTCMonth()};
g.h.getUTCDate=function(){return this.date.getUTCDate()};
g.h.getUTCHours=function(){return this.date.getUTCHours()};
g.h.getUTCMinutes=function(){return this.date.getUTCMinutes()};
g.h.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
g.h.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
g.h.add=function(a){if(a.g||a.months){var b=this.getMonth()+a.months+12*a.g,c=this.getFullYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);a:{switch(b){case 1:var d=0!=c%4||0==c%100&&0!=c%400?28:29;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.date.setDate(1);this.date.setFullYear(c);this.date.setMonth(b);this.date.setDate(d)}a.days&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.days),this.date.setDate(1),this.date.setFullYear(a.getFullYear()),
this.date.setMonth(a.getMonth()),this.date.setDate(a.getDate()),Yh(this,a.getDate()))};
g.h.toString=function(){return[this.getFullYear(),g.$c(this.getMonth()+1,2),g.$c(this.getDate(),2)].join("")+""};
g.h.valueOf=function(){return this.date.valueOf()};var $h=g.Ha;var tba=/https?:\/\/[^\/]+/,rba={QN:"allow-forms",RN:"allow-modals",SN:"allow-orientation-lock",TN:"allow-pointer-lock",UN:"allow-popups",VN:"allow-popups-to-escape-sandbox",WN:"allow-presentation",XN:"allow-same-origin",YN:"allow-scripts",ZN:"allow-top-navigation",aO:"allow-top-navigation-by-user-activation"},wba=lc(function(){return sba()});var yba=lc(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.u.addEventListener("test",null,b)}catch(c){}return a});var Nba={dQ:1,SQ:2,KP:3};var ki=!!window.google_async_iframe_id,li=ki&&window.parent||window;var zba=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/;g.Ci.prototype.clone=function(){return new g.Ci(this.start,this.end)};
g.Ci.prototype.getLength=function(){return this.end-this.start};var iZ=null;var Hi=g.u.performance,hna=!!(Hi&&Hi.mark&&Hi.measure&&Hi.clearMarks),Fi=lc(function(){var a;if(a=hna){var b;if(null===iZ){iZ="";try{a="";try{a=g.u.top.location.hash}catch(c){a=g.u.location.hash}a&&(iZ=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=iZ;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
Gi.prototype.disable=function(){this.g=!1;this.events!=this.i.google_js_reporting_queue&&(Fi()&&(0,g.y)(this.events,Ii),this.events.length=0)};
Gi.prototype.start=function(a,b){if(!this.g)return null;var c=Ei()||Di();c=new Cba(a,b,c);var d="goog_"+c.label+"_"+c.uniqueId+"_start";Hi&&Fi()&&Hi.mark(d);return c};
Gi.prototype.end=function(a){if(this.g&&g.Fa(a.value)){var b=Ei()||Di();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Hi&&Fi()&&Hi.mark(b);!this.g||2048<this.events.length||this.events.push(a)}};g.h=Li.prototype;g.h.EA=function(a){this.g=a};
g.h.FA=function(a){this.l=a};
g.h.IA=function(a){this.i=a};
g.h.Mk=function(a,b,c){try{if(this.Aa&&this.Aa.g){var d=this.Aa.start(a.toString(),3);var e=b();this.Aa.end(d)}else e=b()}catch(k){b=this.i;try{Ii(d);var f=new oi(k,{message:Mi(k)});b=this.u(a,f,void 0,c)}catch(l){this.oi(217,l)}if(!b)throw k;}return e};
g.h.aA=function(a,b,c,d){var e=this;return function(f){for(var k=[],l=0;l<arguments.length;++l)k[l-0]=arguments[l];return e.Mk(a,function(){return b.apply(c,k)},d)}};
g.h.oi=function(a,b,c,d,e){e=e||this.l;try{var f=new si;f.u=!0;xi(f,1,"context",a);b.error&&b.meta&&b.id||(b=new oi(b,{message:Mi(b)}));b.msg&&xi(f,2,"msg",b.msg.substring(0,512));var k=b.meta||{};if(this.g)try{this.g(k)}catch(m){}if(d)try{d(k)}catch(m){}wi(f,3,[k]);var l=ri();l.i&&xi(f,4,"top",l.i.url||"");xi(f,5,"url",l.g.url||"");Bi(this.o,e,f,c)}catch(m){try{Bi(this.o,e,{context:"ecmserr",rctx:a,msg:Mi(m),url:l&&l.g.url},c)}catch(n){}}return this.i};var Ki,jZ,kZ=ni(),Ji=new Gi(kZ);Ki=new function(){var a=void 0===a?G:a;this.g="http:"===a.location.protocol?"http:":"https:"};
jZ=new Li;"complete"==kZ.document.readyState?kZ.google_measure_js_timing||Ji.disable():Ji.g&&hi(kZ,"load",function(){kZ.google_measure_js_timing||Ji.disable()});var ina=[0,2,1],lZ=null;document.addEventListener&&document.addEventListener("mousedown",function(a){lZ=a},!0);
window.mb=function(a){if(a){var b;if(b=window.event||lZ){var c;(c=b.which?1<<ina[b.which-1]:b.button)&&b.shiftKey&&(c|=8);c&&b.altKey&&(c|=16);c&&b.ctrlKey&&(c|=32);b=c}else b=null;b&&(window.css?window.css(a.id,"mb",b,void 0,void 0):a&&(a.href=Ni(a.href,"mb",b,void 0)))}};var bca={NONE:0,KO:1};Qi.prototype.isVisible=function(){return this.hh?.3<=this.Xa:.5<=this.Xa};var wj={zO:0,RO:1},Mba={NONE:0,wP:1,WO:2};Ri.prototype.getValue=function(){return this.g};
g.t(Ti,Ri);Ti.prototype.l=function(a){null===this.g&&g.Ub(this.o,a)&&(this.g=a)};
g.t(Ui,Ri);Ui.prototype.l=function(a){null===this.g&&g.Da(a)&&(this.g=a)};Vi.prototype.disable=function(){this.i=!1};
Vi.prototype.enable=function(){this.i=!0};
Vi.prototype.isEnabled=function(){return this.i};
Vi.prototype.reset=function(){this.g={};this.i=!0;this.l={}};var Fba=(0,g.D)(),cj=-1,aj=-1,ol,dj=-1,bj=!1;fj.prototype.now=function(){return 0};
fj.prototype.i=function(){return 0};
fj.prototype.l=function(){return 0};
fj.prototype.g=function(){return 0};g.t(hj,fj);hj.prototype.now=function(){return gj()&&G.performance.now?G.performance.now():fj.prototype.now.call(this)};
hj.prototype.i=function(){return gj()&&G.performance.memory?G.performance.memory.totalJSHeapSize||0:fj.prototype.i.call(this)};
hj.prototype.l=function(){return gj()&&G.performance.memory?G.performance.memory.usedJSHeapSize||0:fj.prototype.l.call(this)};
hj.prototype.g=function(){return gj()&&G.performance.memory?G.performance.memory.jsHeapSizeLimit||0:fj.prototype.g.call(this)};jj.prototype.isVisible=function(){return 1===ij(mi)};g.h=oj.prototype;g.h.setInterval=function(a,b){return G.setInterval(a,b)};
g.h.clearInterval=function(a){G.clearInterval(a)};
g.h.setTimeout=function(a,b){return G.setTimeout(a,b)};
g.h.clearTimeout=function(a){G.clearTimeout(a)};
g.h.Tk=function(a){var b=ni()||G;ji(b,a)};
Ia(oj);rj.prototype.getContext=function(){if(!this.g){if(!G)throw Error("Context has not been set and window is undefined.");this.g=oj.getInstance()}return this.g};
Ia(rj);g.Sa(uj,Te);xj.prototype.Cs=function(a){if(g.Da(a)&&0!=a.length){var b=this.Ja;if(b.i){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=d[0];d=1<d.length?parseInt(d[1],10):1;isNaN(d)||(e=b.g[e])&&e.l(d)}}}};
Ia(xj);g.h=Bj.prototype;g.h.EA=function(a){this.g=a};
g.h.FA=function(a){this.l=a};
g.h.IA=function(a){this.i=a};
g.h.Mk=function(a,b,c){var d=this;return vj(xj.getInstance().g.g,function(){try{if(d.Aa&&d.Aa.g){var e=d.Aa.start(a.toString(),3);var f=b();d.Aa.end(e)}else f=b()}catch(m){var k=d.i;try{Ii(e);var l=new Dj(Cj(m));k=d.u(a,l,void 0,c)}catch(n){d.oi(217,n)}if(!k)throw m;}return f})()};
g.h.aA=function(a,b,c,d){var e=this;return vj(xj.getInstance().g.g,function(f){for(var k=[],l=0;l<arguments.length;++l)k[l-0]=arguments[l];return e.Mk(a,function(){return b.apply(c,k)},d)})};
g.h.oi=function(a,b,c,d,e){e=e||this.l;try{var f=new si;f.u=!0;xi(f,1,"context",a);b.error&&b.meta&&b.id||(b=new Dj(Cj(b)));b.msg&&xi(f,2,"msg",b.msg.substring(0,512));var k=b.meta||{};if(this.g)try{this.g(k)}catch(m){}if(d)try{d(k)}catch(m){}wi(f,3,[k]);var l=ri();l.i&&xi(f,4,"top",l.i.url||"");xi(f,5,"url",l.g.url||"");yj(this.o,e,f,c)}catch(m){try{yj(this.o,e,{context:"ecmserr",rctx:a,msg:Cj(m),url:l&&l.g.url},c)}catch(n){}}return this.i};
g.t(Dj,oi);var Aj,Fj,zj=new Gi(ni());(function(){Aj=new Oba;Fj=new Bj;var a=ni();a&&a.document&&("complete"==a.document.readyState?Ej():zj.g&&hi(a,"load",function(){Ej()}))})();if(mi&&mi.URL){var mZ,fi=mi.URL;mZ=!!fi&&0<vba().length;Fj.IA(!mZ)};var Em={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},kl={qC:"start",ZB:"firstquartile",iC:"midpoint",tC:"thirdquartile",SB:"complete",hC:"metric",PAUSE:"pause",mC:"resume",pC:"skip",vC:"viewable_impression",jC:"mute",uC:"unmute",aC:"fullscreen",YB:"exitfullscreen",RB:"bufferstart",QB:"bufferfinish",bC:"fully_viewable_audible_half_duration_impression",gC:"measurable_impression",LB:"abandon",XB:"engagedview",eC:"impression",TB:"creativeview",fC:"loaded",gQ:"progress",CLOSE:"close",
xO:"collapse",TP:"overlay_resize",UP:"overlay_unmeasurable_impression",VP:"overlay_unviewable_impression",XP:"overlay_viewable_immediate_impression",WP:"overlay_viewable_end_of_session_impression",UB:"custom_metric_viewable"},mda="start firstquartile midpoint thirdquartile resume loaded".split(" "),nda=["start","firstquartile","midpoint","thirdquartile"],sca=["abandon"],am={UNKNOWN:-1,qC:0,ZB:1,iC:2,tC:3,SB:4,hC:5,PAUSE:6,mC:7,pC:8,vC:9,jC:10,uC:11,aC:12,YB:13,bC:14,gC:15,LB:16,XB:17,eC:18,TB:19,
fC:20,UB:21,RB:22,QB:23};g.Ik=!g.Ld&&!ic();Pj.prototype.update=function(a){a&&a.document&&(this.A=Pi(!1,a,this.D),this.g=Pi(!0,a,this.D),Rj(this,a),Qj(this,a))};
Ia(Pj);var Rba=new g.kh(0,0,0,0);Zj.prototype.ha=function(){return this.B};ak.prototype.cancel=function(){pj().clearTimeout(this.g);this.g=null};
ak.prototype.schedule=function(){var a=this,b=pj(),c=xj.getInstance().g.g;this.g=b.setTimeout(vj(c,Hj(143,function(){a.i++;a.l.uA()})),ej(xj.getInstance().l))};g.h=bk.prototype;g.h.Oi=function(){return this.Je()};
g.h.Je=function(){return!1};
g.h.initialize=function(){this.I=!0};
g.h.Ij=function(){return this.P};
g.h.getName=function(){return this.l==this?this.X:this.l.getName()};
g.h.yf=function(){return{}};
g.h.Af=function(){return this.B};
g.h.Jx=function(){var a=Pj.getInstance();a.g=Pi(!0,this.yd,a.D)};
g.h.Kx=function(){Qj(Pj.getInstance(),this.yd)};
g.h.FF=function(){Rj(Pj.getInstance(),this.yd)};
g.h.yw=function(){return this.g.g};
g.h.uA=function(){};
g.h.eh=function(a){var b=this.B,c=a.Af();this.l=c<this.D?this:a;this.B=this.l!=this?c:this.D;this.B!=b&&ck(this)};
g.h.Cf=function(a){this.l!=this&&ik(this,a)};
g.h.df=function(){return this.A};
g.h.dispose=function(){this.ib=!0};
g.h.fa=function(){return this.ib};g.h=jk.prototype;g.h.wr=function(){return!0};
g.h.mn=function(){};
g.h.Rl=function(){this.element&&(this.i=Tj(this.element,this.g.yd))};
g.h.Vu=function(){this.D=this.g.g.g};
g.h.rf=function(){this.Rl();this.o=new Zj(this.g.g,this.element,this.i,this.o.i,this.o.g,this.o.l,$i(),this.o.u)};
g.h.dispose=function(){if(!this.fa()){var a=this.g;g.cb(a.o,this);a.A&&this.df()&&gk(a);this.ib=!0}};
g.h.fa=function(){return this.ib};
g.h.yf=function(){return this.u.yf()};
g.h.Af=function(){return this.u.Af()};
g.h.Ij=function(){return this.u.Ij()};
g.h.eh=function(a){this.u=a;this.I.eh(this)};
g.h.Cf=function(){this.rf()};
g.h.df=function(){return this.I.df()};g.h=kk.prototype;g.h.Af=function(){return this.g.Af()};
g.h.Ij=function(){return this.g.Ij()};
g.h.create=function(a,b,c){var d=null;this.g&&(d=this.vr(a,b,c),ek(this.g,d));return d};
g.h.Oi=function(){return this.Je()};
g.h.Je=function(){return!1};
g.h.init=function(){return!0};
g.h.dispose=function(){this.ib=!0};
g.h.fa=function(){return this.ib};
g.h.yf=function(){return{}};nk.prototype.add=function(a,b,c){++this.l;var d=this.l/4096;this.g.push(Vba(new lk(a,b,c),d));this.i=!0;return this};rk.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=pk(this.g);0<b.length&&(a+="?"+b);return a};Ia(uk);vk.prototype.update=function(a,b,c){a&&(this.g+=b,this.i+=b,this.o+=b,this.l=Math.max(this.l,this.o));if(void 0===c?!a:c)this.o=0};var $ba=[1,.75,.5,.3,0];wk.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.i.length;e++){var k=this.i[e],l=0<b&&b>=k;k=!(0<a&&a>=k)||c;this.g[e].update(f&&l,d,!f||k)}};Fk.prototype.update=function(a,b,c,d){this.B=-1!=this.B?Math.min(this.B,b.Xa):b.Xa;this.I=Math.max(this.I,b.Xa);this.R=-1!=this.R?Math.min(this.R,b.Gc):b.Gc;this.P=Math.max(this.P,b.Gc);this.oa.update(b.Gc,c.Gc,b.g,a,d);this.l.update(b.Xa,c.Xa,b.g,a,d);c=d||c.hh!=b.hh?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.g;this.Y.update(c,a,b)};
Fk.prototype.jh=function(){return this.Y.l>=this.ga};var Hk=new g.kh(0,0,0,0);g.t(Jk,g.A);g.h=Jk.prototype;g.h.U=function(){this.element&&(this.Sg.ks&&(ii(this.element,"mouseover",this.Sg.ks),this.Sg.ks=null),this.Sg.hs&&(ii(this.element,"mouseout",this.Sg.hs),this.Sg.hs=null));this.dl&&this.dl.dispose();this.Sa&&this.Sa.dispose();delete this.gn;delete this.hn;delete this.lB;delete this.element;delete this.xj;delete this.Sg;delete this.dl;delete this.Sa;delete this.Ja;g.A.prototype.U.call(this)};
g.h.Qd=function(){return this.Sa?this.Sa.i:this.position};
g.h.Cs=function(a){xj.getInstance().Cs(a)};
g.h.Cf=function(){};
g.h.eh=function(){};
g.h.df=function(){return!1};
g.h.Am=function(){return new Fk};
g.h.qd=function(){return this.gn};
g.h.Ax=function(){};
g.h.zx=function(){};
g.h.Hw=function(){};
g.h.Ho=function(){};
g.h.kl=function(a,b,c,d,e,f,k,l){f=void 0===f?{}:f;k=void 0===k?this.xw(c,f):k;l=void 0===l?-1:l;if(!this.Kf){g.Fa(b)||(this.Ek=new g.td(a.left-b.left,a.top-b.top));if(this.im){f=this.zp(a,b,d,f,l);e=e&&this.Qb.Xa>=(this.hh()?.3:.5);this.Gt(k,f,e);this.li=c;0<f.Xa&&-1===this.aB&&(this.aB=c);-1==this.cB&&this.jh()&&(this.cB=c);if(-2==this.rr)try{a:{var m=g.Fa(b)?null:b;if(a&&a!=Hk&&0!=Vj(this.Qd())){var n=Pj.getInstance();if(!m){if(!n.g){var p=-1;break a}m=new g.kh(0,n.g.Me(),n.g.getHeight(),0)}p=
m.Me&&0<m.Me()&&m.getHeight&&0<m.getHeight()?this.tj(a,m):-1}else p=-1}this.rr=p}catch(r){Jj(207,r)}this.Qb=f;d&&(this.Qb.Xa=0)}this.hn(this)}};
g.h.Gt=function(a,b,c){this.qd().update(a,b,this.Qb,c)};
g.h.mq=function(){return new Qi};
g.h.zp=function(a,b,c,d,e){e=void 0===e?-1:e;d=this.mq();d.g=c;c=pj().i;c=0===ij(mi)?-1:c.isVisible()?0:1;d.i=c;if(g.Fa(b))d.Xa=this.tj(b),d.Gc=e;else{d.Xa=this.tj(a,b);var f;0<=e?f=e:f=d.Xa*Vj(a)/(G.screen.height*G.screen.width);d.Gc=f}d.hh=this.hh();return d};
g.h.xw=function(a){if(-1==this.li)return 0;a=a-this.li||1;return 1E4<a?1:a};
g.h.tj=function(a,b){if(0===this.opacity&&1===Yi(this.Ja,"opac"))return 0;if(g.Fa(a))return a;var c=Uj(a,b),d=1==Yi(this.Ja,"od");if(0>=Vj(this.Qd())||Xj(c,b,this.xj,d))return 0;d=Vj(c)/Vj(this.Qd());c=Wj(c,b);return this.Zk()?Math.max(d,c):d};
g.h.hh=function(){return!1};
g.h.Zk=function(){return!1};
g.h.fe=function(){return 0};
g.h.jh=function(){return this.gn.jh()};var Pk="StopIteration"in g.u?g.u.StopIteration:{message:"StopIteration",stack:""};Ok.prototype.next=function(){throw Pk;};
Ok.prototype.nf=function(){return this};g.t(Tk,Qi);Xk.prototype.getValue=function(){return this.i};
Xk.prototype.update=function(a,b){32<=a||(this.g&1<<a&&!b?this.i&=~(1<<a):this.g&1<<a||!b||(this.i|=1<<a),this.g|=1<<a)};g.t(Yk,Fk);
Yk.prototype.update=function(a,b,c,d){if(!b.paused){Fk.prototype.update.call(this,a,b,c,d);var e=Uk(b)&&Uk(c),f=.5<=(d?Math.min(b.Xa,c.Xa):c.Xa);Nj(b.volume)&&(this.o=-1!=this.o?Math.min(this.o,b.volume):b.volume,this.A=Math.max(this.A,b.volume));f&&(this.M+=a,this.F+=e?a:0);this.i.update(b.Xa,c.Xa,b.g,a,d,e);this.g.update(!0,a);this.u.update(e,a);this.H.update(c.fullscreen,a);this.ea.update(e&&!f,a);a=Math.floor(b.l/1E3);this.T.update(a,b.isVisible());this.Z.update(a,1<=b.Xa);this.X.update(a,Uk(b))}};g.t($k,lca);$k.prototype.l=function(){return!0};
$k.prototype.u=function(){return!1};
$k.prototype.getId=function(){var a=this,b=Vb(kl,function(c){return c==a.o});
return am[b].toString()};
$k.prototype.toString=function(){var a="";this.u()&&(a+="c");this.g&&(a+="s");0<this.i&&(a+=":"+this.i);return this.getId()+a};var jna=new g.kh(0,0,0,0),nZ={},rca=(nZ.firstquartile=0,nZ.midpoint=1,nZ.thirdquartile=2,nZ.complete=3,nZ);g.t(bl,Jk);g.h=bl.prototype;g.h.df=function(){return!0};
g.h.Ax=function(a){var b=this,c=a-this.Qa;this.ma&&1E3>=c||(c=g.w("ima.bridge.getNativeViewability"),g.Ma(c)&&(c(this.gc,function(d){b.ma=!1;b.F&&(b.ya=!0);g.Xb(d)&&b.wa++;b.Ho(d)}),this.ma=!0,this.Qa=a))};
g.h.zx=function(a){var b=xj.getInstance();a-this.Ia>ej(b.l)&&(a=g.w("ima.admob.getViewability"),g.Ma(a)&&a(this.gc))};
g.h.Hw=function(a){this.Ia=$i();this.Ho(a)};
g.h.Ho=function(a){var b=a.opt_nativeViewBounds||{},c=a.opt_nativeViewVisibleBounds||{},d=a.opt_nativeTime||-1,e=a.opt_nativeVolume;b=new g.kh(b.top||0,b.left+b.width||0,b.top+b.height||0,b.left||0);a=a.opt_nativeViewHidden?jna.clone():new g.kh(c.top||0,c.left+c.width||0,c.top+c.height||0,c.left||0);c=void 0;if("n"==this.u||"ml"==this.u)c={volume:e};e=c;e=void 0===e?{}:e;this.position=b;this.kl(b,a,d,!1,!0,e)};
g.h.kl=function(a,b,c,d,e,f,k,l){var m=this;f=void 0===f?{}:f;var n=this.oa(this)||{};g.ec(n,f);this.A=n.duration||this.A;this.H=n.isVpaid||this.H;this.ea=n.isYouTube||this.ea;Jk.prototype.kl.call(this,a,b,c,d,e,n,k,l);(1!=Yi(xj.getInstance().Ja,"buvpe")||this.kh&&this.kh.g)&&(0,g.y)(this.B,function(p){p.g||(p.g=al(p,m))})};
g.h.Gt=function(a,b,c){Jk.prototype.Gt.call(this,a,b,c);el(this).update(a,b,this.Qb,c);this.ga=Uk(this.Qb)&&Uk(b);-1==this.T&&this.Ca&&(this.T=this.qd().g.g);this.yc.l=0;a=this.Qb;b=this.jh();.5<=a.Xa&&Vk(this.yc,"vs");b&&Vk(this.yc,"vw");Nj(a.volume)&&Vk(this.yc,"am");this.ga&&Vk(this.yc,"a");this.ci&&Vk(this.yc,"f");-1!=a.i&&(Vk(this.yc,"bm"),1==a.i&&Vk(this.yc,"b"));this.ga&&b&&Vk(this.yc,"avw");0<a.Xa&&Vk(this.yc,"pv");hl(this,this.qd().g.g,!0)&&Vk(this.yc,"gdr");2E3<=Ck(this.qd().l,1)&&Vk(this.yc,
"pmx")};
g.h.Am=function(){return new Yk};
g.h.qd=function(){return this.gn};
g.h.mq=function(){return new Tk};
g.h.zp=function(a,b,c,d,e){a=Jk.prototype.zp.call(this,a,b,c,d,void 0===e?-1:e);a.fullscreen=this.ci;a.paused=2==this.Cc;a.volume=d.volume;Nj(a.volume)||(this.Ya++,b=this.Qb,Nj(b.volume)&&(a.volume=b.volume));d=d.currentTime;a.l=g.Ca(d)&&0<=d?d:-1;return a};
g.h.xw=function(a,b){var c=g.Ca(b.currentTime)?b.currentTime:this.R;if(-1==this.li||2==this.Cc)var d=0;else{d=a-this.li||1;var e=1E4;g.Ca(this.A)&&-1!=this.A&&(e=Math.max(e,this.A/3));d=d>e?1:d}e=c-this.R;var f=0;0<=e?(this.I+=d,this.aa+=Math.max(d-e,0),f=Math.min(e,this.I)):this.na+=Math.abs(e);0!=e&&(this.I=0);-1==this.xa&&0<e&&(this.xa=0<=dj?$i()-dj:-1);this.R=c;return 1==fl(this)?f:d};
g.h.tj=function(a,b){return this.F?0:this.ci?1:Jk.prototype.tj.call(this,a,b)};
g.h.fe=function(){return 1};
g.h.getDuration=function(){return this.A};var kna=(0,g.D)();ql.prototype.reset=function(){this.g=[];this.i=[]};
Ia(ql);var tl=ql.getInstance();Ia(xl);g.t(zl,jk);g.h=zl.prototype;g.h.Zw=function(a){var b=1==Yi(this.Ja,"od");return Xj(a,this.D,this.element,b)};
g.h.Wu=function(){var a=this.g.g;this.timestamp=-1===a.time?$i():a.time};
g.h.rf=function(){this.Wu();this.Rl();this.Vu();var a=Uj(this.i,this.D);var b=a.top>=a.bottom||a.left>=a.right?new g.kh(0,0,0,0):a;a=this.g.g;var c=0,d=0,e=0;0<(this.i.bottom-this.i.top)*(this.i.right-this.i.left)&&(this.Zw(b)?b=new g.kh(0,0,0,0):(c=Pj.getInstance().u,e=new g.kh(0,c.height,c.width,0),c=Wj(b,this.i),d=Wj(b,Pj.getInstance().g),e=Wj(b,e)));b=b.top>=b.bottom||b.left>=b.right?new g.kh(0,0,0,0):mh(b,-this.i.left,-this.i.top);this.o=new Zj(a,this.element,this.i,b,c,d,0,e)};
g.h.getName=function(){return this.u.getName()};
g.h.Cf=function(a){if(!this.element){var b=Pj.getInstance().A;this.i=b?b:new g.kh(0,0,0,0)}jk.prototype.Cf.call(this,a)};g.t(Al,kk);g.h=Al.prototype;g.h.getName=function(){return(this.i?this.i:this.g).getName()};
g.h.yf=function(){return(this.i?this.i:this.g).yf()};
g.h.Af=function(){return(this.i?this.i:this.g).Af()};
g.h.init=function(a){this.o=a;(0,g.y)(this.l,function(b){return b.initialize()});
ek(this.g,this);return!0};
g.h.dispose=function(){(0,g.y)(this.l,function(a){a.dispose()});
kk.prototype.dispose.call(this)};
g.h.Oi=function(){return(0,g.Oj)(this.l,function(a){return a.Oi()})};
g.h.Je=function(){return(0,g.Oj)(this.l,function(a){return a.Je()})};
g.h.vr=function(a,b,c){return new zl(a,this.g,b,c)};
g.h.eh=function(a){0==a.Af()&&this.o(a.Ij(),this)};
g.h.Cf=function(a){this.i=a.l};
g.h.df=function(){return!1};g.t(Bl,zl);g.h=Bl.prototype;g.h.wr=function(){var a=this;this.H||(this.H=$i());if(Gj(298,function(){return Hca(a)}))return!0;
dk(this.g,"msf");return!1};
g.h.Rl=function(){};
g.h.Zw=function(){return!1};
g.h.Vu=function(){};
g.h.yf=function(){var a={};return Object.assign(this.g.yf(),(a.niot_obs=this.H,a.niot_cbk=this.F,a))};var Gca={threshold:[0,.3,.5,.75,1]};g.t(Dl,Bl);Dl.prototype.getName=function(){return"nio"};
Dl.prototype.mn=function(){if(this.l&&this.element)try{this.l.unobserve(this.element),this.B?(this.B.unobserve(this.element),this.B=null):this.A&&(this.A.disconnect(),this.A=null)}catch(a){}};
Dl.prototype.rf=function(){var a=El(this);0<a.length&&Cl(this,a);Bl.prototype.rf.call(this)};g.t(Fl,kk);Fl.prototype.getName=function(){return"nio"};
Fl.prototype.Je=function(){return"exc"!==xj.getInstance().Sa&&!Pj.getInstance().o&&null!=this.g.yd.IntersectionObserver};
Fl.prototype.vr=function(a,b,c){return new Dl(a,this.g,b,c)};g.t(Hl,bk);Hl.prototype.yw=function(){return Pj.getInstance().g};
Hl.prototype.Je=function(){this.D=Gl();return 2==this.D};
Ia(Hl);Ia(Il);g.Sa(g.Jl,g.A);g.h=g.Jl.prototype;g.h.Xh=!1;g.h.Tj=0;g.h.Aa=null;g.h.Sj=function(a){this.g=arguments;this.Aa||this.Tj?this.Xh=!0:Kl(this)};
g.h.stop=function(){this.Aa&&(g.u.clearTimeout(this.Aa),this.Aa=null,this.Xh=!1,this.g=[])};
g.h.pause=function(){this.Tj++};
g.h.resume=function(){this.Tj--;this.Tj||!this.Xh||this.Aa||(this.Xh=!1,Kl(this))};
g.h.U=function(){g.Jl.bb.U.call(this);this.stop()};
g.h.FD=function(){this.Aa=null;this.Xh&&!this.Tj&&(this.Xh=!1,Kl(this))};Ll.prototype.A=function(){Pl(this,ul(),!1)};
Ll.prototype.uA=function(){Pl(this,ul(),!1)};
Ll.prototype.F=function(){var a=Sj(),b=$i();a?(bj||(cj=b,(0,g.y)(tl.g,function(c){var d=c.qd();d.aa=Zk(d,b,1!=c.Cc)})),bj=!0):(this.R=Rl(this,b),bj=!1,ol=b,(0,g.y)(tl.g,function(c){c.im&&(c.qd().D=b)}));
Pl(this,ul(),!a)};
Ia(Ll);var Nl=Ll.getInstance();var Sl=null,xm="",wm=!1;var oZ=Yl([void 0,1,2,3,4,8,16]),pZ=Yl([void 0,4,8,16]),lna={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Xl("p0",pZ),p1:Xl("p1",pZ),p2:Xl("p2",pZ),p3:Xl("p3",pZ),tos:"tos",mtos:"mtos",mtos1:Wl("mtos1",[0,2,4],!1,pZ),mtos2:Wl("mtos2",[0,2,4],!1,pZ),mtos3:Wl("mtos3",[0,2,4],!1,pZ),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Xl("a0",pZ),a1:Xl("a1",pZ),a2:Xl("a2",pZ),a3:Xl("a3",pZ),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",vpt:"vpt",gmm:"gmm",std:"std",
efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:Xl("c0",pZ),c1:Xl("c1",pZ),c2:Xl("c2",pZ),c3:Xl("c3",pZ),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Xl("qmtos",oZ),qnc:Xl("qnc",oZ),qmv:Xl("qmv",oZ),qnv:Xl("qnv",oZ),raf:"raf",rafc:"rafc",lte:"lte",
ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:Xl("ss0",pZ),ss1:Xl("ss1",pZ),ss2:Xl("ss2",pZ),ss3:Xl("ss3",pZ),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids"},mna={c:Tl("c"),at:"at",atos:Wl("atos",[0,2,4]),ta:function(a,b){return function(c){if(!g.Ca(c[a]))return b}}("tth",
"1"),
a:"a",dur:"dur",p:"p",tos:Vl(),j:"dom",mtos:Wl("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:Tl("ss"),vsv:kc("w2"),t:"t"},nna={atos:"atos",amtos:"amtos",avt:Wl("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:Tl("ss"),t:"t"},ona={a:"a",tos:Vl(),at:"at",c:Tl("c"),mtos:Wl("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:kc("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},pna={tos:Vl(),at:"at",c:Tl("c"),mtos:Wl("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:kc("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",
qmpt:Wl("qmtos",[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if(g.Fa(d))return(0,g.ge)(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};g.t(dm,$k);dm.prototype.l=function(a){return a.qd().jh()};g.t(gm,Mca);gm.prototype.g=function(a){var b=new em;b.g=fm(a,lna);b.l=fm(a,nna);return b};var Nca=new g.kh(0,0,0,0);g.t(hm,zl);g.h=hm.prototype;g.h.wr=function(){jm(this);return!0};
g.h.Cf=function(){zl.prototype.rf.call(this)};
g.h.Wu=function(){};
g.h.Rl=function(){};
g.h.rf=function(){jm(this);zl.prototype.rf.call(this)};g.t(im,hm);im.prototype.getName=function(){return"nis"};g.t(km,kk);km.prototype.Oi=function(){return 1===Yi(xj.getInstance().Ja,"imams")&&this.Je()};
km.prototype.getName=function(){return"nis"};
km.prototype.Je=function(){var a=Pj.getInstance();xj.getInstance();return a.o&&!1};
km.prototype.vr=function(a,b,c){return new im(this.g,b,c)};var Oca={NN:"addEventListener",YO:"getMaxSize",ZO:"getScreenSize",aP:"getState",bP:"getVersion",mQ:"removeEventListener"};g.t(lm,bk);g.h=lm.prototype;g.h.Je=function(){return null!=this.i};
g.h.yf=function(){var a={};this.T&&(a.mraid=this.T);this.M&&(a.mlc=1);this.H&&(a.mtop=this.H);this.F&&(a.mse=this.F);return a};
g.h.Ii=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];try{return this.i[a].apply(this.i,c)}catch(e){Jj(538,e,.01,function(f){f.method=a})}};
g.h.initialize=function(){var a=this;if(!this.I){this.I=!0;a:switch(this.H){case 0:case 3:var b=!0;break a;default:b=!1}b?(Pj.getInstance().H=!0,this.yd.document.readyState&&"complete"==this.yd.document.readyState?pm(this):Kj(this.yd,"load",function(){pj().setTimeout(Hj(292,function(){return pm(a)}),100)},292)):dk(this,"i")}};
g.h.Jx=function(){var a=Pj.getInstance(),b=sm(this,"getMaxSize");a.g=new g.kh(0,b.width,b.height,0)};
g.h.Kx=function(){Pj.getInstance().u=sm(this,"getScreenSize")};
g.h.dispose=function(){qm(this);bk.prototype.dispose.call(this)};
Ia(lm);g.h=tm.prototype;g.h.wj=function(a){Kk(a,!1);Bca(a)};
g.h.Oj=function(){};
g.h.ho=function(a,b,c,d){this.i||(this.i=this.Bv());b=c?b:-1;a=null==this.i||this.u?new bl(G,a,b,7):new bl(G,a,b,7,new $k("measurable_impression",this.i),this.wq());a.gc=d;d=a.Ja;d.g.queryid||(d.g.queryid=new Ui);Xi(a.Ja,"queryid",a.gc);a.Cs("");return a};
g.h.wq=function(){return[new dm("viewable_impression",this.i)]};
g.h.eh=function(a){switch(a.Af()){case 0:if(a=xl.getInstance().g)a=a.g,g.cb(a.o,this),a.A&&this.df()&&gk(a);vm();break;case 2:Ol()}};
g.h.Cf=function(){};
g.h.df=function(){return!1};
g.h.XD=function(a,b){a.Kf=!0;switch(a.fe()){case 1:Bm(this,a,b);break;case 2:this.Os(a)}this.Vs(a)};
g.h.fE=function(a){jl(a,0);return ml(a,"start",Sj())};
g.h.Ti=function(a,b,c){Pl(Nl,[a],!Sj());return this.qg(a,b,c)};
g.h.qg=function(a,b,c){return ml(a,c,Sj())};
g.h.aE=function(a){return Cm(a,"firstquartile",1)};
g.h.cE=function(a){a.Ca=!0;return Cm(a,"midpoint",2)};
g.h.gE=function(a){return Cm(a,"thirdquartile",3)};
g.h.YD=function(a){var b=Cm(a,"complete",4);cl(a);return b};
g.h.sA=function(a,b,c){b=Sj();if(2==a.Cc&&!b){var d=$i();a.qd().D=d}Pl(Nl,[a],!b);2==a.Cc&&(a.Cc=1);return ml(a,c,b)};
g.h.eE=function(a,b){var c=this.Ti(a,b||{},"skip");cl(a);return c};
g.h.bE=function(a,b){Kk(a,!0);return this.Ti(a,b||{},"fullscreen")};
g.h.ZD=function(a,b){Kk(a,!1);return this.Ti(a,b||{},"exitfullscreen")};
g.h.As=function(a,b,c){b=a.qd();var d=$i();b.aa=Zk(b,d,1!=a.Cc);Pl(Nl,[a],!Sj());1==a.Cc&&(a.Cc=2);return ml(a,c,Sj())};
g.h.dE=function(a){Pl(Nl,[a],!Sj());return a.i()};
g.h.Iq=function(a){Pl(Nl,[a],!Sj());this.nA(a);cl(a);return a.i()};
g.h.Hq=function(){};
g.h.Os=function(){};
g.h.nA=function(){};
g.h.Bx=function(){};
g.h.Vs=function(){};
g.h.Bv=function(){};var Zca={SO:"visible",cO:"audible",EQ:"time",FQ:"timetype"},Gm={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},
audible:function(a){return"0"==a||"1"==a},
timetype:function(a){return"mtos"==a||"tos"==a},
time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};g.t(Hm,$k);Hm.prototype.getId=function(){return this.B};
Hm.prototype.u=function(){return!0};
Hm.prototype.l=function(a){var b=a.qd(),c=a.getDuration();return(0,g.Oj)(this.A,function(d){if(void 0!=d.g)var e=ada(d,b);else b:{switch(d.u){case "mtos":e=d.i?b.u.l:b.g.g;break b;case "tos":e=d.i?b.u.g:b.g.g;break b}e=0}0==e?d=!1:(d=-1!=d.l?d.l:g.Ca(c)&&0<c?d.o*c:-1,d=-1!=d&&e>=d);return d})};g.t(Im,$k);Im.prototype.l=function(a){var b=Ak(a.qd().i,1);return hl(a,b)};var Km=(0,g.D)(),Mm=!1,Nm=!1,Om=!1,cda=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return Lm(0)},
function(a){return!!a.ActiveXObject},
function(a){return!!a.chrome},
function(a){return!!a.navigator.serviceWorker},
function(a){return!!a.opera},
function(a){return!!a.sidebar},
function(){return!+"\v1"},
function(){return Lm(1)},
function(a){return!a.ActiveXObject},
function(a){return"-ms-ime-align"in a.document.documentElement.style},
function(a){return"-ms-scroll-limit"in a.document.documentElement.style},
function(a){return"-webkit-font-feature-settings"in a.document.body.style},
function(){return Lm(2)},
function(a){return"ActiveXObject"in a},
function(a){return"MozAppearance"in a.document.documentElement.style},
function(a){return"_phantom"in a},
function(a){return"callPhantom"in a},
function(a){return"content"in a.document.createElement("template")},
function(a){return"getEntriesByType"in a.performance},
function(){return Lm(3)},
function(a){return"image-rendering"in a.document.body.style},
function(a){return"object-fit"in a.document.body.style},
function(a){return"open"in a.document.createElement("details")},
function(a){return"orientation"in a.screen},
function(a){return"performance"in a},
function(a){return"shape-image-threshold"in a.document.body.style},
function(){return Lm(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return Nm},
function(){return Om},
function(){return Lm(5)},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="-webkit-min-content";a.style.width="min-content";return"1px"!=a.style.width},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="calc(1px - 1px)";a.style.width="-webkit-calc(1px - 1px)";return"1px"!=a.style.width},
function(){var a=!1;eval('var DummyFunction1 = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{DummyFunction1()}catch(b){a=!0}return a},
function(){var a=!1;try{DummyFunction2()}catch(b){a=!0}return a},
function(){return!1},
function(){return Lm(6)},
function(a){var b=a.document.createElement("canvas");b.width=b.height=1;b=b.getContext("2d");b.globalCompositeOperation="multiply";b.fillStyle="rgb(0,255,255)";b.fillRect(0,0,1,1);b.fill();b.fillStyle="rgb(255,255,0)";b.fillRect(0,0,1,1);b.fill();b=b.getImageData(0,0,1,1).data;return b[0]==b[2]&&b[1]==b[3]||Jm(a.navigator.vibrate)},
function(a){a=a.document.createElement("canvas");a.width=a.height=1;a=a.getContext("2d");a.globalCompositeOperation="multiply";a.fillStyle="rgb(0,255,255)";a.fillRect(0,0,1,1);a.fill();a.fillStyle="rgb(255,255,0)";a.fillRect(0,0,1,1);a.fill();a=a.getImageData(0,0,1,1).data;return a[0]==a[2]&&a[1]==a[3]},
function(a){a=a.document.createElement("div");return Jm(a.matches)},
function(a){a=a.document.createElement("input");a.setAttribute("type","range");return"text"!==a.type},
function(a){return a.CSS.supports("image-rendering","pixelated")},
function(a){return a.CSS.supports("object-fit","contain")},
function(){return Lm(7)},
function(a){return a.CSS.supports("object-fit","inherit")},
function(a){return a.CSS.supports("shape-image-threshold","0.9")},
function(a){return a.CSS.supports("word-break","keep-all")},
function(){return eval("1 == [for (item of [1,2,3]) item][0]")},
function(a){return Jm(a.CSS.supports)},
function(){return Jm(Intl.Collator)},
function(a){return Jm(a.document.createElement("dialog").show)},
function(){return Lm(8)},
function(a){return Jm(a.document.createElement("div").animate([{transform:"scale(1)",easing:"ease-in"},{transform:"scale(1.3)",easing:"ease-in"}],{duration:1300,iterations:1}).reverse)},
function(a){return Jm(a.document.createElement("div").animate)},
function(a){return Jm(a.document.documentElement.webkitRequestFullScreen)},
function(a){return Jm(a.navigator.getBattery)},
function(a){return Jm(a.navigator.permissions.query)},
function(){return!1},
function(){return Lm(9)},
function(){return Jm(webkitRequestAnimationFrame)},
function(a){return Jm(a.BroadcastChannel.call)},
function(a){return Jm(a.FontFace)},
function(a){return Jm(a.Gamepad)},
function(){return Lm(10)},
function(a){return Jm(a.MutationEvent)},
function(a){return Jm(a.MutationObserver)},
function(a){return Jm(a.crypto.getRandomValues)},
function(a){return Jm(a.document.body.createShadowRoot)},
function(a){return Jm(a.document.body.webkitCreateShadowRoot)},
function(a){return Jm(a.fetch)},
function(){return Lm(11)},
function(a){return Jm(a.navigator.serviceWorker.register)},
function(a){return Jm(a.navigator.webkitGetGamepads)},
function(a){return Jm(a.speechSynthesis.speak)},
function(a){return Jm(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return Lm(12)},
function(a){return a.CSS.supports("cursor","grab")},
function(a){return a.CSS.supports("cursor","zoom-in")},
function(a){return a.CSS.supports("image-orientation","270deg")},
function(){return Lm(13)},
function(a){return a.CSS.supports("position","sticky")},
function(a){return void 0===a.document.createElement("style").scoped},
function(a){return a.performance.getEntriesByType("resource")instanceof Array},
function(){return"undefined"==typeof InstallTrigger},
function(){return"object"==typeof(new Intl.Collator).resolvedOptions()},
function(a){return"boolean"==typeof a.navigator.onLine},
function(){return Lm(14)},
function(a){return"undefined"==typeof a.navigator.yR},
function(a){return"number"==typeof a.performance.now()},
function(){return 0==(new Uint16Array(1))[0]},
function(a){return-1==a.ActiveXObject.toString().indexOf("native")},
function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],dda=[function(a){a=a.document.createElement("div");
var b=null,c=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];try{a.style.behavior="url(#default#clientcaps)"}catch(e){}for(var d=0;d<c.length;d++){try{b=a.getComponentVersion(c[d],"componentid").replace(/,/g,".")}catch(e){}if(b)return b.split(".")[0]}return!1},
function(){return(new Date).getTimezoneOffset()},
function(a){return(a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth)/(a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight)},
function(a){return(a.outerWidth||a.document&&a.document.body&&a.document.body.offsetWidth)/(a.outerHeight||a.document&&a.document.body&&a.document.body.offsetHeight)},
function(a){return a.screen.availWidth/a.screen.availHeight},
function(a){return a.screen.width/a.screen.height}],eda=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.Sa(Pm,iba);Pm.prototype.reset=function(){this.g[0]=1732584193;this.g[1]=4023233417;this.g[2]=2562383102;this.g[3]=271733878;this.o=this.l=0};
Pm.prototype.update=function(a,b){g.Ca(b)||(b=a.length);for(var c=b-this.i,d=this.u,e=this.l,f=0;f<b;){if(0==e)for(;f<=c;)Qm(this,a,f),f+=this.i;if(g.Da(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.i){Qm(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.i){Qm(this,d);e=0;break}}this.l=e;this.o+=b};
Pm.prototype.digest=function(){var a=Array((56>this.l?this.i:2*this.i)-this.l);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.o;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.g[b]>>>d&255;return a};g.t(Rm,gm);Rm.prototype.g=function(a){var b=gm.prototype.g.call(this,a);var c=Km=(0,g.D)();var d=Lm(5);c=(Nm?!d:d)?c|2:c&-3;d=Lm(2);c=(Om?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.i||(this.i=fda());b.u=this.i;b.A=fm(a,mna,c,"h",Sm("kArwaWEsTs"));b.o=fm(a,ona,{},"h",Sm("b96YPMzfnx"));b.i=fm(a,pna,{},"h",Sm("yb8Wev6QDg"));return b};Tm.prototype.report=function(a,b){var c=this.g(b);if(g.Ma(c)){var d={};d=(d.sv="765",d.cb="j",d.e=gda(a),d);var e=ml(b,a,Sj());g.ec(d,e);b.yB[a]=e;d=2==b.fe()?Yba(d).join("&"):this.l.g(d).g;try{return c(b.gc,d,a),0}catch(f){return 2}}else return 1};
Tm.prototype.g=function(){return g.w(this.i)};g.t(Um,Tm);Um.prototype.g=function(a){if(!a.Cg)return Tm.prototype.g.call(this,a);var b=this.o[a.Cg];if(b)return function(c,d,e){b.i(c,d,e)};
Jj(393,Error());return null};g.t(Vm,tm);g.h=Vm.prototype;g.h.Oj=function(a,b){var c=this,d=xj.getInstance(),e=xl.getInstance();if(null!=e.g)switch(e.g.getName()){case "nis":var f=Xm(this,a,b)}else switch(d.Sa){case "nis":f=Xm(this,a,b);break;case "gsv":f=jda(this,a,b);break;case "exc":f=kda(this,a)}f||(b.opt_overlayAdElement?f=void 0:b.opt_adElement?f=Vca(this,a,b.opt_adElement,b.opt_osdId):f=rl(tl,a)||void 0);f&&1==f.fe()&&(f.oa==g.Ha&&(f.oa=function(k){return c.Bx(k)}),hda(this,f,b));
return f};
g.h.Bx=function(a){a.i=0;a.P=0;if("h"==a.u||"n"==a.u){if(ida())var b=g.w("ima.bridge.getVideoMetadata");else if(a.Cg&&$m(this)){var c=this.D[a.Cg];c?b=function(e){return c.g(e)}:null!==c&&Jj(379,Error())}else b=g.w("ima.common.getVideoMetadata");
if(g.Ma(b))try{var d=b(a.gc)}catch(e){a.i|=4}else a.i|=2}else if("b"==a.u)if(b=g.w("ytads.bulleit.getVideoMetadata"),g.Ma(b))try{d=b(a.gc)}catch(e){a.i|=4}else a.i|=2;else if("ml"==a.u)if(b=g.w("ima.common.getVideoMetadata"),g.Ma(b))try{d=b(a.gc)}catch(e){a.i|=4}else a.i|=2;else a.i|=1;a.i||(g.Ca(d)?null===d?a.i|=16:g.Xb(d)?a.i|=32:null!=d.errorCode&&(a.P=d.errorCode,a.i|=64):a.i|=8);null!=d||(d={});Wca(d,a);Nj(d.volume)&&Nj(this.A)&&(d.volume*=this.A);return d};
g.h.Bv=function(){if($m(this))return new Um("ima.common.triggerExternalActivityEvent",this.l,this.D);var a=lda(this);return null!=a?new Tm(a,this.l):null};
g.h.wq=function(){var a=this.i,b=tm.prototype.wq.call(this);b.push(new Im(a));return b};
g.h.Os=function(a){!a.g&&a.Kf&&Am(this,a,"overlay_unmeasurable_impression")&&(a.g=!0)};
g.h.nA=function(a){a.MA&&(a.jh()?Am(this,a,"overlay_viewable_end_of_session_impression"):Am(this,a,"overlay_unviewable_impression"),a.MA=!1)};
g.h.Hq=function(a){this.u&&1==a.fe()&&an(this,a)};
g.h.Vs=function(a){this.u&&1==a.fe()&&an(this,a)};
g.h.ho=function(a,b,c,d){a=tm.prototype.ho.call(this,a,b,c,d);this.B&&(b=this.F,null==a.l&&(a.l=new Sk),b.g[a.gc]=a.l,a.l.u=kna);return a};
g.h.wj=function(a){a&&1==a.fe()&&this.B&&delete this.F.g[a.gc];return tm.prototype.wj.call(this,a)};
Ia(Vm);var Ym=new em;Ym.u="stopped";Ym.g="stopped";Ym.l="stopped";Ym.A="stopped";Ym.o="stopped";Ym.i="stopped";Object.freeze(Ym);var qna=Hj(193,cn,void 0,Dm);g.Ga("Goog_AdSense_Lidar_sendVastEvent",qna,void 0);var rna=Hj(194,function(a,b){b=void 0===b?{}:b;var c=Zm(Vm.getInstance(),a,b);return bn(c)});
g.Ga("Goog_AdSense_Lidar_getViewability",rna,void 0);var sna=Hj(195,function(){return qj()});
g.Ga("Goog_AdSense_Lidar_getUrlSignalsArray",sna,void 0);var tna=Hj(196,function(){return g.Kg(qj())});
g.Ga("Goog_AdSense_Lidar_getUrlSignalsList",tna,void 0);var uea=(new Date).getTime();g.h=g.gn.prototype;g.h.Bc=function(){jn(this);for(var a=[],b=0;b<this.g.length;b++)a.push(this.i[this.g[b]]);return a};
g.h.Pd=function(){jn(this);return this.g.concat()};
g.h.isEmpty=function(){return 0==this.Da};
g.h.clear=function(){this.i={};this.Jg=this.Da=this.g.length=0};
g.h.remove=function(a){return hn(this.i,a)?(delete this.i[a],this.Da--,this.Jg++,this.g.length>2*this.Da&&jn(this),!0):!1};
g.h.get=function(a,b){return hn(this.i,a)?this.i[a]:b};
g.h.set=function(a,b){hn(this.i,a)||(this.Da++,this.g.push(a),this.Jg++);this.i[a]=b};
g.h.forEach=function(a,b){for(var c=this.Pd(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.h.clone=function(){return new g.gn(this)};
g.h.nf=function(a){jn(this);var b=0,c=this.Jg,d=this,e=new Ok;e.next=function(){if(c!=d.Jg)throw Error("The map has changed since the iterator was created");if(b>=d.g.length)throw Pk;var f=d.g[b++];return a?f:d.i[f]};
return e};g.kn.prototype.toString=function(){var a=[],b=this.o;b&&a.push(rn(b,qZ,!0),":");var c=this.g;if(c||"file"==b)a.push("//"),(b=this.D)&&a.push(rn(b,qZ,!0),"@"),a.push(g.Wc(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.u,null!=c&&a.push(":",String(c));if(c=this.i)this.g&&"/"!=c.charAt(0)&&a.push("/"),a.push(rn(c,"/"==c.charAt(0)?una:vna,!0));(c=this.l.toString())&&a.push("?",c);(c=this.A)&&a.push("#",rn(c,wna));return a.join("")};
g.kn.prototype.resolve=function(a){var b=this.clone(),c=!!a.o;c?g.ln(b,a.o):c=!!a.D;c?b.D=a.D:c=!!a.g;c?g.mn(b,a.g):c=null!=a.u;var d=a.i;if(c)g.nn(b,a.u);else if(c=!!a.i){if("/"!=d.charAt(0))if(this.g&&!this.i)d="/"+d;else{var e=b.i.lastIndexOf("/");-1!=e&&(d=b.i.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=ub(e,"/");e=e.split("/");for(var f=[],k=0;k<e.length;){var l=e[k++];"."==l?d&&k==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=
f[0])&&f.pop(),d&&k==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.i=d:c=""!==a.l.toString();c?on(b,a.l.clone()):c=!!a.A;c&&(b.A=a.A);return b};
g.kn.prototype.clone=function(){return new g.kn(this)};
var qZ=/[#\/\?@]/g,vna=/[#\?:]/g,una=/[#\?]/g,sda=/[#\?@]/g,wna=/#/g;g.h=g.qn.prototype;g.h.add=function(a,b){un(this);this.i=null;a=vn(this,a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.Da=this.Da+1;return this};
g.h.remove=function(a){un(this);a=vn(this,a);return hn(this.g.i,a)?(this.i=null,this.Da=this.Da-this.g.get(a).length,this.g.remove(a)):!1};
g.h.clear=function(){this.g=this.i=null;this.Da=0};
g.h.isEmpty=function(){un(this);return 0==this.Da};
g.h.forEach=function(a,b){un(this);this.g.forEach(function(c,d){(0,g.y)(c,function(e){a.call(b,e,d,this)},this)},this)};
g.h.Pd=function(){un(this);for(var a=this.g.Bc(),b=this.g.Pd(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.h.Bc=function(a){un(this);var b=[];if(g.Da(a))wn(this,a)&&(b=g.fb(b,this.g.get(vn(this,a))));else{a=this.g.Bc();for(var c=0;c<a.length;c++)b=g.fb(b,a[c])}return b};
g.h.set=function(a,b){un(this);this.i=null;a=vn(this,a);wn(this,a)&&(this.Da=this.Da-this.g.get(a).length);this.g.set(a,[b]);this.Da=this.Da+1;return this};
g.h.get=function(a,b){if(!a)return b;var c=this.Bc(a);return 0<c.length?String(c[0]):b};
g.h.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var a=[],b=this.g.Pd(),c=0;c<b.length;c++){var d=b[c],e=g.Wc(d);d=this.Bc(d);for(var f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+g.Wc(d[f]));a.push(k)}}return this.i=a.join("&")};
g.h.clone=function(){var a=new g.qn;a.i=this.i;this.g&&(a.g=this.g.clone(),a.Da=this.Da);return a};var On={cC:5E3,dC:15E3,nu:"://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),lC:/\bocr\b/,Op:0,Rf:{},PM:function(a,b,c){a&&(On.ir(a)?On.CA(a,b):On.Tk(a,b,c))},
ir:function(a){if(g.wb(g.ad(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.kn(a)}catch(c){return null!=g.Xa(On.nu,function(d){return 0<a.search(d)})}return b.A.match(On.lC)?!0:null!=g.Xa(On.nu,function(c){return null!=a.match(c)})},
CA:function(a,b){if(a&&(a=On.uD(a),!g.wb(a))){var c='javascript:"<body><img src=\\""+'+a+'+"\\"></body>"';b?On.fx(function(d){On.AA(d?c:'javascript:"<body><object data=\\""+'+a+'+"\\" type=\\"text/html\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):On.AA(c)}},
AA:function(a){var b=g.Qd("IFRAME",{src:a,style:"display:none"});a=zd(b).body;var c=g.Gg(function(){g.Lf(d);g.Wd(b)},On.dC);
var d=Bf(b,["load","error"],function(){g.Gg(function(){g.u.clearTimeout(c);g.Wd(b)},On.cC)});
a.appendChild(b)},
fx:function(a,b){var c=On.Rf.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1;c=function(e,f){delete On.Rf[f];d||(d=!0,null!=On.Rf.imageLoadingEnabled||(On.Rf.imageLoadingEnabled=e),a(e))};
b?b(c):On.IE(c)}},
IE:function(a){var b=new Image,c=""+On.Op++;On.Rf[c]=b;b.onload=function(){clearTimeout(d);a(!0,c)};
var d=setTimeout(function(){a(!1,c)},300);
b.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},
OM:function(a){if(a){var b=g.Rd("OBJECT");b.data=a;b.width="1";b.height="1";b.style.visibility="hidden";var c=""+On.Op++;On.Rf[c]=b;b.onload=b.onerror=function(){delete On.Rf[c]};
document.body.appendChild(b)}},
BA:function(a){if(a){var b=new Image,c=""+On.Op++;On.Rf[c]=b;b.onload=b.onerror=function(){delete On.Rf[c]};
b.src=a}},
Tk:function(a,b,c){if(a){if(c)try{if(g.u.navigator&&g.u.navigator.sendBeacon&&g.u.navigator.sendBeacon(a,""))return}catch(d){}b?On.fx(function(d){d?On.BA(a):On.OM(a)}):On.BA(a)}},
uD:function(a){a=g.zc(g.Cc(a));if("about:invalid#zClosurez"===a)return"";a=g.Mc(Oc(a)).toString();return g.Wc(g.Kg(a))}};g.Sa(g.yn,g.A);var rZ=[];g.h=g.yn.prototype;g.h.da=function(a,b,c,d){g.Ka(b)||(b&&(rZ[0]=b.toString()),b=rZ);for(var e=0;e<b.length;e++){var f=g.Cf(a,b[e],c||this.handleEvent,d||!1,this.i||this);if(!f)break;this.g[f.key]=f}return this};
g.h.an=function(a,b,c,d){return zn(this,a,b,c,d)};
g.h.Na=function(a,b,c,d,e){if(g.Ka(b))for(var f=0;f<b.length;f++)this.Na(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Na(d)?!!d.capture:!!d,e=e||this.i||this,c=Df(c),d=!!d,b=g.vf(a)?a.Jj(b,c,d,e):a?(a=g.Ff(a))?a.Jj(b,c,d,e):null:null,b&&(g.Lf(b),delete this.g[b.key])};
g.h.U=function(){g.yn.bb.U.call(this);g.An(this)};
g.h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var uda=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.Sa(Cn,g.sf);En.prototype.getPlayerType=function(){return""};
var Fn=new En;Gn.prototype.getId=function(){return this.i};Hn.prototype.getId=function(){return this.l};var Jn=null;var Dda=["*.youtu.be","*.youtube.com"],Hda="ad.doubleclick.net bid.g.doubleclick.net corp.google.com ggpht.com google.co.uk google.com googleads.g.doubleclick.net googleads4.g.doubleclick.net googleadservices.com googlesyndication.com googleusercontent.com gstatic.com gvt1.com prod.google.com pubads.g.doubleclick.net s0.2mdn.net static.doubleclick.net static.doubleclick.net surveys.g.doubleclick.net youtube.com ytimg.com".split(" "),Gda=["c.googlesyndication.com"];var Ida=function(){if(g.Vx)return Sn(/Firefox\/([0-9.]+)/);if(g.Ld||g.hy||g.Ch)return kd;if(g.qx)return gd()?Sn(/CriOS\/([0-9.]+)/):Sn(/Chrome\/([0-9.]+)/);if(g.Hz&&!gd())return Sn(/Version\/([0-9.]+)/);if(gz||jC){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Ib);if(a)return a[1]+"."+a[2]}else if(g.Zy)return(a=Sn(/Android\s+([0-9.]+)/))?a:Sn(/Version\/([0-9.]+)/);return""}();var Vn=new Un;Un.prototype.clear=function(){this.g=null;this.l="";this.i=null};Ia(Wn);Wn.prototype.report=function(a,b,c){if(this.g||c){b=b||{};b.lid=a;b.sdkv=Jda();a=Cda();g.wb(g.ad(a))||(b.e=a);b=Kda(this,b);var d=new g.kn("http://pagead2.googlesyndication.com/pagead/gen_204");g.Kb(b,function(e,f){g.sn(d,f,null!=e?"boolean"==typeof e?e?"t":"f":""+e:"")},this);
a=Xn();g.ln(d,a.o);Rn(d.toString())}};
Wn.prototype.isLoggingEnabled=function(){return this.g};g.Sa(Yn,g.Qf);var Zn=null;Yn.prototype.destroy=function(){this.ca.Na(this.i,"activityMonitor",this.u);this.i=null};
Yn.prototype.u=function(a){var b=a.g();switch(a.i()){case "appStateChanged":oda(Vm.getInstance(),b.appState,b.nativeTime);break;case "externalActivityEvent":co(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":ao(b.queryId,b.viewabilityString);break;case "viewableImpression":bo(b.queryId,b.viewabilityString);break;case "engagementData":b=b.engagementString;$n().o=b;$n().l=(0,g.D)();break;case "viewability":a=b.eventId;window.clearTimeout(a);var c=this.g.get(a);c&&(this.g.remove(a),
c(b.viewabilityData));break;case "viewabilityMeasurement":var d=Vm.getInstance(),e=b.queryId;b=b.viewabilityData;c=xj.getInstance();a=Pj.getInstance();if("exc"==c.Sa){d.A=b.nativeVolume;c=b.exposure||0;var f=b.unmeasurable;d=d.Oj(e,{});null!=b.presenceData&&(null===d.l&&(d.l=new Sk),g.ec(d.l,b.presenceData));-1==d.Z&&(d.Z=$i(),d.jb=d.qd().g.g);d.X+=f?1:0;d.Ra++;d.Ea.update(c,c,!1,1,!1);e=b.insideIframe;g.Ca(e)&&0==e&&(a.i=!1);d.Kf=f||d.Kf;b.position&&Mk(d,G,a.i,new g.kh(b.position.top,b.position.right,
b.position.bottom,b.position.left));b.documentSize&&(a.l=new g.vd(b.documentSize.width,b.documentSize.height));b.viewportSize&&(a.g=new g.kh(0,b.viewportSize.width,b.viewportSize.height,0));b=b.screenShare;d.Qb.Xa=g.pd(c,0,1);d.nx=d.Qb.Xa;d.Qb.Gc=g.pd(b,0,1)}break;case "engagement":a=b.eventId,window.clearTimeout(a),c=this.g.get(a),Wn.getInstance().isLoggingEnabled()&&(d=-1,this.A&&(d=(0,g.D)()-this.A),e=!1,c||(e=!0),Tb(b,"loggingId")&&Wn.getInstance().report(43,{step:"receivedResponse",time:(0,g.D)(),
timeout:e,logid:b.loggingId,timediff:d})),c&&(this.g.remove(a),c(b.engagementString))}};
g.Ga("ima.bridge.getNativeViewability",function(a,b){$n();b({})},void 0);
g.Ga("ima.bridge.getVideoMetadata",function(){var a=($n(),null);return g.Ma(a)?a():{}},void 0);
g.Ga("ima.bridge.triggerViewEvent",bo,void 0);g.Ga("ima.bridge.triggerMeasurableEvent",ao,void 0);g.Ga("ima.bridge.triggerExternalActivityEvent",co,void 0);var sZ=!1;
(function(){if(navigator.plugins&&navigator.plugins.length){var a=navigator.plugins["Shockwave Flash"];if(a&&(sZ=!0,a.description)){eo(a.description);return}if(navigator.plugins["Shockwave Flash 2.0"]){sZ=!0;return}}if(navigator.mimeTypes&&navigator.mimeTypes.length&&(a=navigator.mimeTypes["application/x-shockwave-flash"],sZ=!(!a||!a.enabledPlugin))){eo(a.enabledPlugin.description);return}if("undefined"!=typeof ActiveXObject){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");sZ=!0;eo(b.GetVariable("$version"));
return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");sZ=!0;return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),sZ=!0,eo(b.GetVariable("$version"))}catch(c){}}})();g.Sa(fo,g.Qf);var go=null;fo.prototype.destroy=function(){this.ca.Na(this.g,"activityMonitor",this.o);this.i=!1;this.A.clear()};
fo.prototype.U=function(){this.destroy();fo.bb.U.call(this)};
fo.prototype.init=function(a){if(!this.i){if(this.g=a||null)this.ca.da(this.g,"activityMonitor",this.o),io(this);if(!(g.u.ima&&g.u.ima.video&&g.u.ima.video.client&&g.u.ima.video.client.tagged)){g.Ga("ima.video.client.sdkTag",!0,void 0);var b=g.u.document;a=b.createElement("script");var c=b.location.protocol;"http:"!=c&&"https:"!=c&&(c="");a.src=c+"//s0.2mdn.net/instream/video/client.js";a.async=!0;a.type="text/javascript";b=b.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}(a=Fn.g)||
(a=!1);a||(Vm.getInstance().u=!0);this.l=(g.Ma(null),null);Wm();this.i=!0}};
fo.prototype.o=function(a){var b=a.g(),c=b.queryId,d={};d.eventId=b.eventId;switch(a.i()){case "getPageSignals":io(this);break;case "reportVastEvent":a=b.vastEvent;var e=b.osdId,f={};f.opt_fullscreen=b.isFullscreen;b.isOverlay&&(f.opt_bounds=b.overlayBounds);if(this.i)if(this.l)c=this.l(a,c,f);else{b=f||{};if(e=e?this.u.get(e):Fn.o){if(null==b.opt_fullscreen){if(null==e)f=!1;else if((aZ&&!bZ||Eb(g.Ib,"iPod"))&&null!=e.webkitDisplayingFullscreen)f=e.webkitDisplayingFullscreen;else{f=window.screen.availWidth||
window.screen.width;var k=window.screen.availHeight||window.screen.height;var l=g.Ma(e.getBoundingClientRect)&&g.$d(zd(e),e)?e.getBoundingClientRect():{left:e.offsetLeft,top:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight};f=0>=f-l.width&&42>=k-l.height}b.opt_fullscreen=f}null!=b.opt_adElement||(b.opt_adElement=e)}c=jZ.Mk(471,g.Qa(cn,a,c,b),void 0)||{}}else c={};d.viewabilityData=c;this.g.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":c={},c.eventId=b.eventId,e=b.osdId,d=
null,Tb(b,"isFullscreen")&&(d=b.isFullscreen),Tb(b,"loggingId")&&(a=b.loggingId,c.loggingId=a,Wn.getInstance().report(43,{step:"beforeLookup",logid:a,time:(0,g.D)()},!0)),c.engagementString=Lda(this,e,d),this.g.send("activityMonitor","engagement",c)}};
g.Ga("ima.common.getVideoMetadata",function(a){a=ho().A.get(a);return g.Ma(a)?a():{}},void 0);
g.Ga("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=ho().g;d?d.send("activityMonitor","viewableImpression",c):ho().dispatchEvent(new Cn("viewable_impression",null,c))},void 0);
g.Ga("ima.common.triggerViewabilityMeasurementUpdate",function(a,b){var c=ho().g,d={};d.queryId=a;d.viewabilityData=b;c&&c.send("activityMonitor","viewabilityMeasurement",d)},void 0);
g.Ga("ima.common.triggerMeasurableEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=ho().g;d?d.send("activityMonitor","measurableImpression",c):ho().dispatchEvent(new Cn("measurable_impression",null,c))},void 0);
g.Ga("ima.common.triggerExternalActivityEvent",function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;(a=ho().g)?a.send("activityMonitor","externalActivityEvent",d):ho().dispatchEvent(new Cn("externalActivityEvent",null,d))},void 0);
ho();g.jo.prototype.g=function(a){var b=0,c=0,d=!1;a=a.split($ma);for(var e=0;e<a.length;e++){var f=a[e];PS.test(f)?(b++,c++):Zma.test(f)?d=!0:Yma.test(f)?c++:ana.test(f)&&(d=!0)}return 0==c?d?1:0:.4<b/c?-1:1};
g.jo.prototype.mark=function(){return""};var lo={};var xna=g.Ld?vc(g.qc('javascript:""')):vc(g.qc("about:blank"));tc(xna);var yna=g.Ld?vc(g.qc('javascript:""')):vc(g.qc("javascript:undefined"));tc(yna);mo("a","");mo("a","fixedDirectionality");mo("a","redesign2014q4");mo("b","");mo("b","redesign2014q4");mo("b","forcedlinebreak");mo("b","postroll");mo("b","postrollforcedlinebreak");var Nda=g.Ld&&Mda();g.Sa(g.to,g.Qf);g.to.prototype.o=function(){this.be("begin")};
g.to.prototype.l=function(){this.be("end")};
g.to.prototype.ed=function(){this.be("finish")};
g.to.prototype.be=function(a){this.dispatchEvent(a)};var zna=lc(function(){if(g.Ld)return g.ld("10.0");var a=g.Rd("DIV"),b=g.Nd?"-webkit":g.Bh?"-moz":g.Ld?"-ms":g.Ch?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!$Y.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in dna)throw Error("Tag name <div> is not allowed for SafeHtml.");c=null;var d="";if(b)for(n in b){if(!$Y.test(n))throw Error('Invalid attribute name "'+n+'".');var e=b[n];if(null!=e){var f=n;var k=e;if(k instanceof oc)k=
pc(k);else if("style"==f.toLowerCase()){e=void 0;if(!g.Na(k))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof k+" given: "+k);if(!(k instanceof Fc)){var l="";for(e in k){if(!/^[-_a-zA-Z0-9]+$/.test(e))throw Error("Name allows only [-_a-zA-Z0-9], got: "+e);var m=k[e];null!=m&&(m=g.Ka(m)?(0,g.ge)(m,Hc).join(" "):Hc(m),l+=e+":"+m+";")}k=l?Gc(l):bna}k instanceof Fc&&k.constructor===Fc&&k.i===Ec?e=k.g:(Ja(k),e="type_error:SafeStyle");k=e}else{if(/^on/i.test(f))throw Error('Attribute "'+
f+'" requires goog.string.Const value, "'+k+'" given.');if(f.toLowerCase()in cna)if(k instanceof sc)k=tc(k).toString();else if(k instanceof g.xc)k=g.zc(k);else if(g.Da(k))k=g.Cc(k).ee();else throw Error('Attribute "'+f+'" on tag "div" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+k+'" given.');}k.Ef&&(k=k.ee());f=f+'="'+Db(String(k))+'"';d+=" "+f}}var n="<div"+d;d=void 0;null!=d?g.Ka(d)||(d=[d]):d=[];!0===Xma.div?n+=">":(c=Faa(d),n+=">"+g.Mc(c).toString()+"</div>",c=c.g());(b=
b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Qc(n,c);g.Sc(a,b);return""!=g.Dh(a.firstChild,"transition")});g.Sa(yo,g.to);g.h=yo.prototype;g.h.play=function(){if(1==this.g)return!1;this.o();this.be("play");this.startTime=(0,g.D)();this.g=1;if(zna())return g.zh(this.i,this.F),this.A=g.Gg(this.qM,void 0,this),!0;this.xq(!1);return!1};
g.h.qM=function(){g.Sh(this.i);Oda(this.i,this.D);g.zh(this.i,this.u);this.A=g.Gg((0,g.x)(this.xq,this,!1),1E3*this.B)};
g.h.stop=function(){1==this.g&&this.xq(!0)};
g.h.xq=function(a){g.zh(this.i,"transition","");g.u.clearTimeout(this.A);g.zh(this.i,this.u);this.endTime=(0,g.D)();this.g=0;a?this.be("stop"):this.ed();this.l()};
g.h.U=function(){this.stop();yo.bb.U.call(this)};
g.h.pause=function(){};g.Sa(g.Ao,g.A);g.h=g.Ao.prototype;g.h.start=function(){this.stop();this.o=!1;var a=Bo(this),b=Co(this);a&&!b&&this.i.mozRequestAnimationFrame?(this.g=g.Cf(this.i,"MozBeforePaint",this.l),this.i.mozRequestAnimationFrame(null),this.o=!0):this.g=a&&b?a.call(this.i,this.l):this.i.setTimeout(raa(this.l),20)};
g.h.Qj=function(){this.isActive()||this.start()};
g.h.stop=function(){if(this.isActive()){var a=Bo(this),b=Co(this);a&&!b&&this.i.mozRequestAnimationFrame?g.Lf(this.g):a&&b?b.call(this.i,this.g):this.i.clearTimeout(this.g)}this.g=null};
g.h.isActive=function(){return null!=this.g};
g.h.CD=function(){this.o&&this.g&&g.Lf(this.g);this.g=null;this.A.call(this.u,(0,g.D)())};
g.h.U=function(){this.stop();g.Ao.bb.U.call(this)};g.Sa(g.J,g.A);g.h=g.J.prototype;g.h.Rj=0;g.h.U=function(){g.J.bb.U.call(this);this.stop();delete this.g;delete this.i};
g.h.start=function(a){this.stop();this.Rj=g.Gg(this.l,g.Ca(a)?a:this.Zc)};
g.h.stop=function(){this.isActive()&&g.u.clearTimeout(this.Rj);this.Rj=0};
g.h.isActive=function(){return 0!=this.Rj};
g.h.Cw=function(){this.Rj=0;this.g&&this.g.call(this.i)};(function(){if(MY){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Ib))?a[1]:"0"}return dI?(a=/10[_.][0-9_.]+/,(a=a.exec(g.Ib))?a[0].replace(/_/g,"."):"10"):g.tr?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Ib))?a[1]:""):aZ||bZ||ena?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Ib))?a[1].replace(/_/g,"."):""):""})();Ia(g.Go);g.Go.prototype.g=0;g.Sa(g.Io,g.Qf);g.h=g.Io.prototype;g.h.oE=g.Go.getInstance();g.h.getId=function(){return this.P||(this.P=g.Ho(this.oE))};
g.h.ha=function(){return this.i};
g.h.ct=function(a){if(this.F&&this.F!=a)throw Error("Method not supported");g.Io.bb.ct.call(this,a)};
g.h.Dq=ba(0);g.h.Bj=function(){Jo(this,function(a){a.fh&&a.Bj()});
this.u&&g.An(this.u);this.fh=!1};
g.h.U=function(){this.fh&&this.Bj();this.u&&(this.u.dispose(),delete this.u);Jo(this,function(a){a.dispose()});
this.i&&g.Wd(this.i);this.F=this.i=this.A=this.D=null;g.Io.bb.U.call(this)};
g.h.removeChild=function(a,b){if(a){var c=g.Da(a)?a:a.getId();a=this.A&&c?$b(this.A,c)||null:null;if(c&&a){Zb(this.A,c);g.cb(this.D,a);b&&(a.Bj(),a.i&&g.Wd(a.i));c=a;if(null==c)throw Error("Unable to set parent component");c.F=null;g.Io.bb.ct.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};vc(g.qc("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf"));vc(g.qc("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf"));new ArrayBuffer(0);Lo("d");Mo("d");No("d");Lo("f");Mo("f");No("f");Lo("i");Mo("i");No("i");Lo("j");Mo("j");No("j");No("j");Lo("u");Mo("u");No("u");Lo("v");Mo("v");No("v");No("v");Lo("b");Mo("b");No("b");Lo("e");Mo("e");No("e");Lo("s");Mo("s");No("s");Lo("B");Mo("B");No("B");Lo("x");Mo("x");No("x");Lo("y");Mo("y");No("y");No("y");Lo("g");Mo("g");No("g");Lo("h");Mo("h");No("h");No("h");Lo("n");Mo("n");No("n");Lo("o");Mo("o");No("o");No("o");vc(g.qc("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf"));vc(g.qc("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf"));Oo.prototype.g=null;Oo.prototype.getOptions=function(){var a;(a=this.g)||(a={},g.Qo(this)&&(a[0]=!0,a[1]=!0),a=this.g=a);return a};g.Sa(Po,Oo);g.tZ=new Po;new g.gn;vc(g.qc("https://www.youtube.com/iframe_api"));var uZ=[];g.Ga("onYouTubeIframeAPIReady",function(){(0,g.y)(uZ,function(a){a()});
ab(uZ)},window);(function(){for(var a=["ms","moz","webkit","o"],b=0,c;c=a[b]&&!g.u.requestAnimationFrame;++b)g.u.requestAnimationFrame=g.u[c+"RequestAnimationFrame"],g.u.cancelAnimationFrame=g.u[c+"CancelAnimationFrame"]||g.u[c+"CancelRequestAnimationFrame"];if(!g.u.requestAnimationFrame){var d=0;g.u.requestAnimationFrame=function(e){var f=(new Date).getTime(),k=Math.max(0,16-(f-d));d=f+k;return g.u.setTimeout(function(){e(f+k)},k)};
g.u.cancelAnimationFrame||(g.u.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var Ro=[[],[]],So=0,To=!1,Pda=0;Uo.prototype.clone=function(){return new Uo(this.g,this.B,this.l,this.u,this.o,this.A,this.i,this.D)};g.Wo.prototype.i=0;g.Wo.prototype.reset=function(){this.g=this.l=this.o;this.i=0};
g.Wo.prototype.getValue=function(){return this.l};g.Sa(g.Yo,g.A);g.h=g.Yo.prototype;g.h.subscribe=function(a,b,c){var d=this.i[a];d||(d=this.i[a]=[]);var e=this.u;this.g[e]=a;this.g[e+1]=b;this.g[e+2]=c;this.u=e+3;d.push(e);return e};
g.h.unsubscribe=function(a,b,c){if(a=this.i[a]){var d=this.g;if(a=g.Xa(a,function(e){return d[e+1]==b&&d[e+2]==c}))return this.ah(a)}return!1};
g.h.ah=function(a){var b=this.g[a];if(b){var c=this.i[b];0!=this.o?(this.l.push(a),this.g[a+1]=g.Ha):(c&&g.cb(c,a),delete this.g[a],delete this.g[a+1],delete this.g[a+2])}return!!b};
g.h.N=function(a,b){var c=this.i[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.A)for(e=0;e<c.length;e++){var k=c[e];Tda(this.g[k+1],this.g[k+2],d)}else{this.o++;try{for(e=0,f=c.length;e<f;e++)k=c[e],this.g[k+1].apply(this.g[k+2],d)}finally{if(this.o--,0<this.l.length&&0==this.o)for(;c=this.l.pop();)this.ah(c)}}return 0!=e}return!1};
g.h.clear=function(a){if(a){var b=this.i[a];b&&((0,g.y)(b,this.ah,this),delete this.i[a])}else this.g.length=0,this.i={}};
g.h.U=function(){g.Yo.bb.U.call(this);this.clear();this.l.length=0};g.Zo.prototype.set=function(a,b){g.Ca(b)?this.g.set(a,g.Kg(b)):this.g.remove(a)};
g.Zo.prototype.get=function(a){try{var b=this.g.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.Zo.prototype.remove=function(a){this.g.remove(a)};g.Sa($o,g.Zo);$o.prototype.set=function(a,b){$o.bb.set.call(this,a,bp(b))};
$o.prototype.i=function(a){a=$o.bb.get.call(this,a);if(!g.Ca(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
$o.prototype.get=function(a){if(a=this.i(a)){if(a=a.data,!g.Ca(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Sa(cp,$o);cp.prototype.set=function(a,b,c){if(b=bp(b)){if(c){if(c<(0,g.D)()){cp.prototype.remove.call(this,a);return}b.expiration=c}b.creation=(0,g.D)()}cp.bb.set.call(this,a,b)};
cp.prototype.i=function(a,b){var c=cp.bb.i.call(this,a);if(c)if(!b&&g.dp(c))cp.prototype.remove.call(this,a);else return c};g.Sa(g.ep,cp);g.Sa(fp,Uda);fp.prototype.clear=function(){var a=gca(this.nf(!0)),b=this;(0,g.y)(a,function(c){b.remove(c)})};g.Sa(gp,fp);g.h=gp.prototype;g.h.isAvailable=function(){if(!this.g)return!1;try{return this.g.setItem("__sak","1"),this.g.removeItem("__sak"),!0}catch(a){return!1}};
g.h.set=function(a,b){try{this.g.setItem(a,b)}catch(c){if(0==this.g.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.h.get=function(a){a=this.g.getItem(a);if(!g.Da(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.g.removeItem(a)};
g.h.nf=function(a){var b=0,c=this.g,d=new Ok;d.next=function(){if(b>=c.length)throw Pk;var e=c.key(b++);if(a)return e;e=c.getItem(e);if(!g.Da(e))throw"Storage mechanism: Invalid value was encountered";return e};
return d};
g.h.clear=function(){this.g.clear()};
g.h.key=function(a){return this.g.key(a)};g.Sa(hp,gp);g.Sa(ip,gp);g.Sa(kp,fp);var Vda={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},jp=null;g.h=kp.prototype;g.h.isAvailable=function(){return!!this.g};
g.h.set=function(a,b){this.g.setAttribute(lp(a),b);mp(this)};
g.h.get=function(a){a=this.g.getAttribute(lp(a));if(!g.Da(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.g.removeAttribute(lp(a));mp(this)};
g.h.nf=function(a){var b=0,c=this.g.XMLDocument.documentElement.attributes,d=new Ok;d.next=function(){if(b>=c.length)throw Pk;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if(!g.Da(e))throw"Storage mechanism: Invalid value was encountered";return e};
return d};
g.h.clear=function(){for(var a=this.g.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);mp(this)};g.Sa(np,fp);np.prototype.set=function(a,b){this.i.set(this.g+a,b)};
np.prototype.get=function(a){return this.i.get(this.g+a)};
np.prototype.remove=function(a){this.i.remove(this.g+a)};
np.prototype.nf=function(a){var b=this.i.nf(!0),c=this,d=new Ok;d.next=function(){for(var e=b.next();e.substr(0,c.g.length)!=c.g;)e=b.next();return a?e.substr(c.g.length):c.i.get(e)};
return d};pp.prototype.getValue=function(){return this.i};
pp.prototype.clone=function(){return new pp(this.g,this.i)};g.h=qp.prototype;g.h.remove=function(){var a=this.g,b=a.length,c=a[0];if(!(0>=b)){if(1==b)ab(a);else{a[0]=a.pop();a=0;b=this.g;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2;f=k<d&&b[k].g<b[f].g?k:f;if(b[f].g>e.g)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.h.Bc=function(){for(var a=this.g,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.h.Pd=function(){for(var a=this.g,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].g);return b};
g.h.clone=function(){return new qp(this)};
g.h.isEmpty=function(){return 0==this.g.length};
g.h.clear=function(){ab(this.g)};g.Sa(sp,qp);g.h=tp.prototype;g.h.RM=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.Lh.set(this.Lx(c),[new Wda(a)])};
g.h.hw=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=this.Lx(b);return this.Lh.has(b)?this.Lh.get(b):void 0};
g.h.sD=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return(b=this.hw(b))&&b.length?b[0]:void 0};
g.h.clear=function(){this.Lh.clear()};
g.h.Lx=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return b?b.join(","):"key"};g.Sa(up,Te);g.Sa(vp,Te);var Xda=[1];g.Sa(wp,Te);g.Sa(xp,Te);g.Sa(yp,Te);g.Sa(zp,Te);g.Sa(Ap,Te);g.Sa(Cp,Te);g.Sa(Ep,Te);var $da=[3,6,4],aea=[[1,2]],bea=[1],Bp=[[1,2,3]],Dp=[[1,2,3]];g.t(Fp,tp);Fp.prototype.l=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=0;var e=this.sD(c);e&&(d=e.cv);this.RM(d+a,c)};Hp.prototype.u=function(){var a=this.i.values();a=[].concat(g.ea(a)).filter(function(b){return b.Lh.size});
a.length&&this.H.flush(a);iea(a);this.l=0;this.g.enabled&&this.g.stop()};
Hp.prototype.A=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.i.has(a)||this.i.set(a,new Fp(a,c))};
Hp.prototype.D=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.F.apply(this,[a,1].concat(g.ea(c)))};
Hp.prototype.F=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];(e=this.B.has(a)?void 0:this.i.get(a))&&e instanceof Fp&&(e.l(b,d),this.g.enabled||this.g.start(),this.l++,this.l>=this.o&&this.u())};Ip.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.i[a]!=b&&(this.i[a]=b,this.g=-1)};
Ip.prototype.get=function(a){return!!this.i[a]};/*
Portions of this code are from MochiKit, received by
The Closure Authors under the MIT license. All other code is Copyright
2005-2009 The Closure Authors. All Rights Reserved.
*/
Jp.prototype.cancel=function(a){if(this.g)this.l instanceof Jp&&this.l.cancel();else{if(this.i){var b=this.i;delete this.i;a?b.cancel(a):(b.D--,0>=b.D&&b.cancel())}this.R?this.R.call(this.I,this):this.F=!0;this.g||(a=new Sp(this),Np(this),Lp(this,!1,a))}};
Jp.prototype.H=function(a,b){this.B=!1;Lp(this,a,b)};
Jp.prototype.Vl=function(a){Np(this);Lp(this,!0,a)};
Jp.prototype.then=function(a,b,c){var d,e,f=new jg(function(k,l){d=k;e=l});
Op(this,d,function(k){k instanceof Sp?f.cancel():e(k)});
return f.then(a,b,c)};
gg(Jp);Jp.prototype.isError=function(a){return a instanceof Error};
g.Sa(Mp,Ta);Mp.prototype.message="Deferred has already fired";Mp.prototype.name="AlreadyCalledError";g.Sa(Sp,Ta);Sp.prototype.message="Deferred was canceled";Sp.prototype.name="CanceledError";Rp.prototype.l=function(){delete Qp[this.g];throw this.i;};
var Qp={};/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
*/
g.Sa(Tp,Te);g.Sa(Up,Te);var kea=[2,13,14];g.M=window.ytcsi&&window.ytcsi.now?window.ytcsi.now:window.performance&&window.performance.timing&&window.performance.now?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};var Vp=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.Ga("yt.config_",Vp,void 0);var dq={};var Ana=g.w("ytPubsubPubsubInstance")||new g.Yo;g.Yo.prototype.subscribe=g.Yo.prototype.subscribe;g.Yo.prototype.unsubscribeByKey=g.Yo.prototype.ah;g.Yo.prototype.publish=g.Yo.prototype.N;g.Yo.prototype.clear=g.Yo.prototype.clear;g.Ga("ytPubsubPubsubInstance",Ana,void 0);var iq=g.w("ytPubsubPubsubSubscribedKeys")||{};g.Ga("ytPubsubPubsubSubscribedKeys",iq,void 0);var kq=g.w("ytPubsubPubsubTopicToKeys")||{};g.Ga("ytPubsubPubsubTopicToKeys",kq,void 0);g.jq=g.w("ytPubsubPubsubIsSynchronous")||{};
g.Ga("ytPubsubPubsubIsSynchronous",g.jq,void 0);var mea=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,nea=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,tq={};uq.prototype.initialize=function(a,b,c,d,e){var f=this;b?(this.Td=!0,g.rq(b,function(){f.Td=!1;if(window.botguard)vq(f,c,d);else{var k=sq(b),l=document.getElementById(k);l&&(qq(k),l.parentNode.removeChild(l));k=Error("Unable to load Botguard");k.params="from "+b;g.$p(k)}},e)):a&&(eval(a),window.botguard?vq(this,c,d):g.$p(Error("Unable to load Botguard from JS")))};
uq.prototype.dispose=function(){this.g=null};g.t(yq,qea);yq.prototype.start=function(){var a=g.w("yt.scheduler.instance.start");a&&a()};
yq.prototype.pause=function(){var a=g.w("yt.scheduler.instance.pause");a&&a()};
Ia(yq);yq.getInstance();var rea=[],Cq=!1;var Qq=new function(){var a=window.document;this.g=window;this.i=a};
g.Ga("yt.ads_.signals_.getAdSignalsString",function(a){return Gq(Sq(a))},void 0);(0,g.D)();var Vq=g.Ca(XMLHttpRequest)?function(){return new XMLHttpRequest}:g.Ca(ActiveXObject)?function(){return new ActiveXObject("Microsoft.XMLHTTP")}:null;var Xq={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},xea="app debugcss debugjs expflag force_ad_params force_viral_ad_response_params forced_experiments internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" "),
dr=!1;var rr=gz||jC;var zr={},Dea=0;g.t(Ar,Ta);Dr.prototype.then=function(a,b,c){return this.l?this.l.then(a,b,c):1===this.i&&a?(a=a.call(c,this.g),hg(a)?a:Fr(a)):2===this.i&&b?(a=b.call(c,this.g),hg(a)?a:Er(a)):this};
Dr.prototype.getValue=function(){return this.g};
gg(Dr);g.t(Hr,Ta);Hr.prototype.name="BiscottiError";g.t(Gr,Ta);Gr.prototype.name="BiscottiMissingError";var Jr={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Ir=null;var Hea=Math.pow(2,16)-1,$r=null,as=0,Gea={log_event:"events",log_interaction:"interactions"},vZ=Object.create(null);vZ.log_event="GENERIC_EVENT_LOGGING";vZ.log_interaction="INTERACTION_LOGGING";var Iea=new Set(["log_event"]),Tr={},Or=0,Pr=0,Sr=g.w("ytLoggingTransportLogPayloadsQueue_")||{};g.Ga("ytLoggingTransportLogPayloadsQueue_",Sr,void 0);var Zr=g.w("ytLoggingTransportTokensToCttTargetIds_")||{};g.Ga("ytLoggingTransportTokensToCttTargetIds_",Zr,void 0);
var Xr=g.w("ytLoggingTransportDispatchedStats_")||{};g.Ga("ytLoggingTransportDispatchedStats_",Xr,void 0);g.Ga("ytytLoggingTransportCapturedTime_",g.w("ytLoggingTransportCapturedTime_")||{},void 0);var Bna=0,cs=g.Nd?"webkit":g.Bh?"moz":g.Ld?"ms":g.Ch?"o":"";g.Ga("ytDomDomGetNextId",g.w("ytDomDomGetNextId")||function(){return++Bna},void 0);var Kea={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};fs.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
fs.prototype.Yw=function(){return this.event?!1===this.event.returnValue:!1};
fs.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
fs.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var hs=g.w("ytEventsEventsListeners")||{};g.Ga("ytEventsEventsListeners",hs,void 0);var is=g.w("ytEventsEventsCounter")||{count:0};g.Ga("ytEventsEventsCounter",is,void 0);var Cna=lc(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),js=lc(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});g.Sa(xs,g.A);xs.prototype.H=function(a){g.Ca(a.g)||gs(a);var b=a.g;g.Ca(a.i)||gs(a);this.g=new g.td(b,a.i)};
xs.prototype.Qd=function(){return this.g||new g.td};
xs.prototype.A=function(){if(this.g){var a=g.M();if(0!=this.o){var b=this.u,c=this.g,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.o);this.i[this.Ta]=.5<Math.abs((d-this.l)/this.l)?1:0;for(c=b=0;4>c;c++)b+=this.i[c]||0;3<=b&&this.D();this.l=d}this.o=a;this.u=this.g;this.Ta=(this.Ta+1)%4}};
xs.prototype.U=function(){window.clearInterval(this.F);g.ls(this.B)};var Bs={};var Ds=g.w("ytLoggingGelSequenceIdObj_")||{};g.Ga("ytLoggingGelSequenceIdObj_",Ds,void 0);Ls.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.g)try{this.g.set(a,b,(0,g.D)()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Kg(b))}catch(f){return}else e=escape(b);g.Js(a,e,c,this.i)};
Ls.prototype.get=function(a,b){var c=void 0,d=!this.g;if(!d)try{c=this.g.get(a)}catch(e){d=!0}if(d&&(c=Fs.get(""+a,void 0))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
Ls.prototype.remove=function(a){this.g&&this.g.remove(a);g.Ks(a,"/",this.i)};new Ls;g.t(g.Us,g.A);g.Us.prototype.K=function(a,b,c,d,e){c=Zp((0,g.x)(c,d||this.uc));c={target:a,name:b,Vl:c};var f;e&&Cna()&&(f={passive:!0});a.addEventListener(b,c.Vl,f);this.P.push(c);return c};
g.Us.prototype.Na=function(a){for(var b=0;b<this.P.length;b++)if(this.P[b]==a){this.P.splice(b,1);a.target.removeEventListener(a.name,a.Vl);break}};
g.Us.prototype.U=function(){g.Ws(this);g.A.prototype.U.call(this)};g.Sa(g.N,g.A);g.N.prototype.subscribe=function(a,b,c){return this.fa()?0:this.Nb.subscribe(a,b,c)};
g.N.prototype.unsubscribe=function(a,b,c){return this.fa()?!1:this.Nb.unsubscribe(a,b,c)};
g.N.prototype.Mf=function(a){return this.fa()?!1:this.Nb.ah(a)};
g.N.prototype.N=function(a,b){return this.fa()?!1:this.Nb.N.apply(this.Nb,arguments)};g.t(g.$s,g.N);g.h=g.$s.prototype;g.h.cancel=function(){this.o&&(this.o=!1,this.N("dragend",0,0,null));this.i&&(this.i=!1,this.N("hoverend",0,0,null),g.Ws(this.g),Zs(this))};
g.h.Ex=function(a){g.Ws(this.g);at(this,bt("move"),this.Cx);at(this,bt("out"),this.Dx);at(this,"touchstart",this.yr);this.l&&at(this,bt("down"),this.xr);var b=g.ms(a);a=ps(a);this.i=!0;this.N("hoverstart",a.x,a.y,b);this.N("hovermove",a.x,a.y,b)};
g.h.Cx=function(a){var b=g.ms(a);a=ps(a);if(this.u){var c=this.u;this.u=null;if(os(c)==b&&ud(ps(c),a))return}this.N("hovermove",a.x,a.y,b)};
g.h.Dx=function(a){var b=ps(a),c=os(a);c&&g.$d(this.A,c)?(this.u=a,this.N("hovermove",b.x,b.y,c)):(g.Ws(this.g),Zs(this),this.i=!1,this.N("hoverend",b.x,b.y,c))};
g.h.VH=function(a){this.Ex(a);this.xr(a)};
g.h.xr=function(a){if(!g.Fa(a.button)||0==a.button){g.Ws(this.g);this.g.K(document,bt("move"),this.UH);this.g.K(document,bt("up"),this.TE);var b=g.ms(a);if(g.Nd)at(this,"dragstart",this.ZC);else if(g.qs(a),(g.Gz||g.Bh)&&b)a:{for(var c=b;c;){if(de(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.o=!0;a=ps(a);this.N("dragstart",a.x,a.y,b);this.N("dragmove",a.x,a.y,b)}};
g.h.ZC=function(a){g.qs(a)};
g.h.UH=function(a){var b=g.ms(a);b==document&&(b=null);a=ps(a);this.N("hovermove",a.x,a.y,b);this.N("dragmove",a.x,a.y,b)};
g.h.TE=function(a){g.Ws(this.g);this.o=!1;var b=ns(a),c=g.ms(a);a=ps(a);b&&g.$d(this.A,b)?(at(this,bt("move"),this.Cx),at(this,bt("out"),this.Dx),at(this,bt("down"),this.xr),at(this,"touchstart",this.yr),this.N("dragend",a.x,a.y,c)):(Zs(this),this.i=!1,this.N("dragend",a.x,a.y,c),this.N("hoverend",a.x,a.y,c))};
g.h.yr=function(a){var b=a.changedTouches[0];b&&(g.Ws(this.g),at(this,"touchmove",this.hN),at(this,"touchend",this.Fx),at(this,"touchcancel",this.Fx),this.B=b.identifier,a=g.ms(a),this.i||(this.i=!0,this.N("hoverstart",b.pageX,b.pageY,a)),this.N("hovermove",b.pageX,b.pageY,a),this.l&&(this.o=!0,this.N("dragstart",b.pageX,b.pageY,a),this.N("dragmove",b.pageX,b.pageY,a)))};
g.h.hN=function(a){var b=ct(this,a);b&&(this.l&&g.qs(a),a=g.ms(a),this.N("hovermove",b.pageX,b.pageY,a),this.l&&this.N("dragmove",b.pageX,b.pageY,a))};
g.h.Fx=function(a){var b=ct(this,a);if(b){g.Ws(this.g);Zs(this);this.i=!1;var c=g.ms(a);this.l&&(this.D||g.qs(a),this.o=!1,this.N("dragend",b.pageX,b.pageY,c));this.N("hoverend",b.pageX,b.pageY,c)}};
g.h.U=function(){this.l&&(g.Nd&&this.A.removeAttribute("draggable"),this.A.style.touchAction="");g.Ws(this.g);g.N.prototype.U.call(this)};dt.prototype.clone=function(){var a=new dt,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==Ja(c)?a[b]=g.bc(c):a[b]=c}return a};var ft={},et=0;Gp.prototype.flush=function(a){a=void 0===a?[]:a;if(g.Tq("enable_client_streamz_web")){a=g.q(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;b=new wp;cf(b,1,c.o);for(var d=c,e=[],f=0;f<d.g.length;f++)e.push(d.g[f].Sv);cf(b,3,e||[]);d=[];e=[];f=g.q(c.Lh.keys());for(var k=f.next();!k.done;k=f.next())e.push(k.value.split(","));for(f=0;f<e.length;f++){k=e[f];var l=c.i;for(var m=c.hw(k)||[],n=[],p=0;p<m.length;p++){var r=m[p];r=r&&r.cv;var v=new Ep;switch(l){case 3:ef(v,1,Dp[0],Number(r));break;
case 2:ef(v,2,Dp[0],Number(r))}n.push(v)}l=n;for(m=0;m<l.length;m++){r=l[m];p=n=new Ap;p.g||(p.g={});v=r?jf(r):r;p.g[2]=r;cf(p,2,v);p=k;r=[];v=c;for(var z=[],C=0;C<v.g.length;C++)z.push(v.g[C].Tv);v=z;for(z=0;z<v.length;z++){C=v[z];var F=p[z],E=new Cp;switch(C){case 3:ef(E,1,Bp[0],String(F));break;case 2:ef(E,2,Bp[0],Number(F));break;case 1:ef(E,3,Bp[0],"true"==F)}r.push(E)}kf(n,1,r);d.push(n)}}kf(b,4,d);d=c=new Fe;e=af(b,1);null!=e&&Qe(d,1,e);e=af(b,5);null!=e&&Ne(d,5,e);e=ff(b,xp,2);null!=e&&Re(d,
2,e,eea);e=af(b,3);if(0<e.length&&null!=e)for(f=0;f<e.length;f++)Qe(d,3,e[f]);e=af(b,6);if(0<e.length&&null!=e)for(f=0;f<e.length;f++)Ne(d,6,e[f]);e=hf(b,Ap,4);0<e.length&&Se(d,4,e,hea);b=Ie(c);b={serializedIncrementBatch:g.ke(b,!1)};Ns("streamzIncremented",b)}}};ht.prototype.toString=function(){return JSON.stringify(g.jt(this))};
var Qea=1;var qt=g.w("ytLoggingLatencyUsageStats_")||{};g.Ga("ytLoggingLatencyUsageStats_",qt,void 0);var rt=0;var tt=(0,g.D)().toString();var Dt=g.w("ytLoggingTimeDocumentNonce_")||vt();g.Ga("ytLoggingTimeDocumentNonce_",Dt,void 0);g.Ga("yt_logging_screen.getRootVeType",At,void 0);g.Ga("yt_logging_screen.getCurrentCsn",g.Ct,void 0);g.Ga("yt_logging_screen.setCurrentScreen",Et,void 0);var KQ;g.Ft=lc(function(){var a=new hp;return a.isAvailable()?new g.ep(a):null});
g.Gt=lc(function(){var a=new ip;return a.isAvailable()?new g.ep(a):null});var Pt=new uq,Ot=0;var Yga={HO:1,MO:2,PAUSED:3};g.h=g.Tt.prototype;g.h.Mx=function(a){this.segments.push(a)};
g.h.getDuration=function(a){return(a=this.ng(a))?a.duration:0};
g.h.hq=function(a){return this.getDuration(a)};
g.h.we=function(){return this.segments.length?this.segments[0].zb:-1};
g.h.Dr=function(a){return(a=this.ng(a))?a.ingestionTime:NaN};
g.h.sb=function(){return this.segments.length?this.segments[this.segments.length-1].zb:-1};
g.h.Sh=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.h.Ab=function(){return this.segments[0].startTime};
g.h.Uh=function(){return this.segments.length};
g.h.wn=function(){return 0};
g.h.Le=function(a){return(a=this.Fj(a))?a.zb:-1};
g.h.qq=function(a){return(a=this.ng(a))?a.sourceURL:""};
g.h.Kc=function(a){return(a=this.ng(a))?a.startTime:0};
g.h.Dm=ba(2);g.h.Eb=function(){return 0<this.segments.length};
g.h.ng=function(a){a=g.ob(this.segments,new St(a,0,0,0,""),function(b,c){return b.zb-c.zb});
return 0<=a?this.segments[a]:null};
g.h.Fj=function(a){a=g.ob(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return 0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.h.append=function(a){if(0!=a.length)if(a=g.gb(a),0==this.segments.length)this.segments=a;else{var b=this.segments.length?g.Va(this.segments).endTime:0,c=a[0].zb-this.sb();1<c&&ab(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}};
g.h.qw=function(){return 0};Vt.prototype.skip=function(a){this.g+=a};bu.prototype.jg=function(a,b,c){(new Uint8Array(this.data.buffer,this.g,c)).set(new Uint8Array(a.buffer,b+a.byteOffset,c));this.g+=c};var wZ={},Dna=(wZ.predictStart="predictStart",wZ.start="start",wZ["continue"]="continue",wZ.stop="stop",wZ),bia={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};var NF=!1;var Ru=!0;Wu.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};$u.prototype.Mm=function(){return this.g.info.Mm()};
$u.prototype.xe=function(){return!!this.g.info.video};kv.prototype.verify=function(a){if(this.info.La!=this.range.length)return a.slength=this.info.La.toString(),a.range=this.range.length.toString(),!1;if(1==this.info.g.info.containerType){if(8>this.info.La||4==this.info.type)return!0;var b=lv(this),c=b.getUint32(0,!1);b=b.getUint32(4,!1);a.infotype=this.info.type.toString();a.slicesize=c.toString();a.boxtype=b.toString();if(2==this.info.type)return c==this.info.La&&1936286840==b;if(3==this.info.type&&0==this.info.l)return 1836019558==b||1936286840==
b||1937013104==b||1718909296==b||1701671783==b||1936419184==b}else if(2==this.info.g.info.containerType){if(4>this.info.La||4==this.info.type)return!0;c=lv(this).getUint32(0,!1);a.ebm=c.toString();if(3==this.info.type&&0==this.info.l)return 524531317==c||440786851==c}return!0};var kfa=/^https?:\/\/([^.]*\.moatads\.com\/|e[0-9]+\.yt\.srs\.doubleverify\.com|pagead2\.googlesyndication\.com\/pagead\/gen_204\?id=yt3p&sr=1&|pm\.adsafeprotected\.com\/youtube|pm\.test-adsafeprotected\.com\/youtube|youtube[0-9]+\.moatpixel\.com\/)/,ifa=/^http:\/\/0\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.l2gfe\.[a-z0-9_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|^https:\/\/([a-z]+\.)?[a-z0-9\-]{1,63}\.demos\.corp\.google\.com\/|^https?:\/\/((?:uytfe\.corp|dev-uytfe\.corp|uytfe\.sandbox)\.google\.com\/|([-\w]*www[-\w]*\.|[-\w]*web[-\w]*\.|[-\w]*canary[-\w]*\.|[-\w]*dev[-\w]*\.|[-\w]{1,3}\.)+youtube(-nocookie|kids)?\.com\/|([A-Za-z0-9-]{1,63}\.)*(youtube\.googleapis\.com)(:[0-9]+)?\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.c\.googlers\.com(:[0-9]+)?\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|(tv|tv-green-qa|tv-release-qa)\.youtube\.com\/|[A-Za-z0-9]+(-v6)?\.prod\.google\.com(:[0-9]+)?\/|m?web-ppg\.corp\.google\.com\/|play\.google\.com\/)/,
lfa=/^https?:\/\/(www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/slav)/,pfa=/^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com\/(?!url\b)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|c\.googlers\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|plus\.google\.com|mail\.google\.com|youtube\.com|youtube\-nocookie\.com|youtubekids\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b))/,Jia=/^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com\/(?!url\b)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|c\.googlers\.com|borg\.google\.com|prod\.google\.com|youtube\.com|youtubekids\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b))/,
nfa=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com\/(?!url\b)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|plus\.google\.com|video\.google\.com|youtube\.com|ytimg\.com|ytimg\.sandbox\.google\.com|chat\.google\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b)|s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/)/,
jfa=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/,ofa=/^https?:\/\/(googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion))|www\.youtube\.com\/pagead\/conversion)/,mfa=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com\/(?!url\b)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|play\.google\.com|prod\.google\.com|lh3\.photos\.google\.com|plus\.google\.com|mail\.google\.com|youtube\.com|xfx7\.com|yt\.akamaized\.net|chat\.google\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b)|([A-Za-z0-9-]{1,63}\.)*c\.lh3(-d[a-gz])?\.(googleusercontent|photos\.google)\.com\/.*$)/,
jga=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.com|c\.googlers\.com|borg\.google\.com|googleads\.g\.doubleclick\.net|prod\.google\.com|static\.doubleclick\.net|static\.googleadsserving\.cn|studioapi\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubekids\.com|ytimg\.com|ytimg\.sandbox\.google\.com)(:[0-9]+)?\/|lightbox-(demos|builder)\.appspot\.com\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer)/,
iga=/^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com\/(?!url\b)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleads\.g\.doubleclick\.net|googleplex\.com|play\.google\.com|prod\.google\.com|photos\.google\.com|get\.google\.com|class\.photos\.google\.com|plus\.google\.com|books\.googleusercontent\.com|blogger\.com|mail\.google\.com|play\-books\-internal\-sandbox\.googleusercontent\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubekids\.com|vevo\.com|jamboard\.google\.com|chat\.google\.com|meet\.google\.com|crowdsource\.google\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b)|(www\.|encrypted\.)?google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))\/(search|webhp)\?|lightbox-(demos|builder)\.appspot\.com\/|s0\.2mdn\.net\/instream\/html5\/native\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris)/,
xZ=/^(https\:\/\/googleads\.g\.doubleclick\.net|https\:\/\/play\.google\.com|https\:\/\/photos\.google\.com|https\:\/\/get\.google\.com|https\:\/\/class\.photos\.google\.com|https\:\/\/plus\.google\.com|https\:\/\/mail\.google\.com|https\:\/\/talkgadget\.google\.com|https\:\/\/jamboard\.google\.com|https\:\/\/chat\.google\.com|https\:\/\/crowdsource\.google\.com)$|^http:\/\/0\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?$|^http:\/\/[A-Za-z0-9]+(-v6)?\.prod\.google\.com(:[0-9]+)?$|^https:\/\/((staging|stream|today)\.)?meet\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)*youtube\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sandbox\.google\.com$|^https:\/\/(books|play-books-internal-sandbox)\.googleusercontent\.com$|^https:\/\/(draft|www|(www\.)?daily\.alpha|(www\.)?weekly\.alpha|(www\.)?dev\.sandbox|(www\.)?autopush\.sandbox|(www\.)?restore\.sandbox)\.blogger\.com$|^https?:\/\/(((docs|m|sing|ss|sss|www)\.)?drive\.google\.com$|([A-Za-z0-9-]{1,63}\.)*corp\.google\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\.)*googleplex\.com(:[0-9]+)?$|(www\.|encrypted\.)google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))$|docs\.google\.com$|imasdk\.googleapis\.com$|lightbox-(demos|builder)\.appspot\.com$|s[01](qa)?\.2mdn\.net$|survey\.g\.doubleclick\.net$|www\.gstatic\.com$)/;var Hv={jk:function(a){a.reverse()},
GE:function(a,b){a.splice(0,b)},
pZ:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}};Jv.prototype.set=function(a,b){this.g[a]!==b&&(this.g[a]=b,this.l="")};
Jv.prototype.get=function(a){Lv(this);return this.g[a]||null};
Jv.prototype.clone=function(){var a=new Jv(this.o);a.u=this.u;a.i=this.i;a.A=this.A;a.g=g.bc(this.g);a.l=this.l;return a};Tv.prototype.set=function(a,b){this.g.get(a);this.i[a]=b;this.l=""};
Tv.prototype.get=function(a){return this.i[a]||this.g.get(a)};var Wx={name:"width",video:!0,valid:640,Qe:99999},Xx={name:"height",video:!0,valid:360,Qe:99999},Yx={name:"framerate",video:!0,valid:30,Qe:9999},Zx={name:"bitrate",video:!0,valid:3E5,Qe:2E9},Ux={name:"eotf",video:!0,valid:"bt709",Qe:"catavision"},by={name:"channels",video:!1,valid:2,Qe:99},$x={name:"cryptoblockformat",video:!0,valid:"subsample",Qe:"invalidformat"},ay={name:"decode-to-texture",video:!0,valid:"false",Qe:"nope"},gy={name:"codecs",video:!0,valid:"av01.0.05M.08",Qe:"av99.0.05M.08"},cy=
{WQ:Wx,iP:Xx,VO:Yx,jO:Zx,NO:Ux,vO:by,AO:$x,EO:ay,hO:gy};var wfa={0:"f",160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",304:"h",305:"h",140:"a",141:"ah",327:"sa",258:"m",380:"mac3",328:"meac3",161:"H",142:"H",143:"H",144:"H",222:"H",223:"H",145:"H",224:"H",225:"H",146:"H",226:"H",227:"H",147:"H",384:"H",376:"H",385:"H",377:"H",149:"A",261:"M",381:"MAC3",329:"MEAC3",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",271:"9",313:"9",272:"9",302:"9",303:"9",308:"9",315:"9",330:"9h",331:"9h",332:"9h",333:"9h",334:"9h",335:"9h",
336:"9h",337:"9h",171:"v",338:"so",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",279:"(",280:"(",317:"(",318:"(",273:"(",274:"(",357:"(",358:"(",275:"(",359:"(",360:"(",276:"(",314:"(",561:"(",277:"(",362:"(h",363:"(h",364:"(h",365:"(h",366:"(h",367:"(h",368:"(h",562:"(h",394:"1",395:"1",396:"1",397:"1",398:"1",399:"1",400:"1",401:"1",402:"1",386:"3",387:"w",406:"6"};gw.prototype.getName=function(){return this.name};
gw.prototype.getId=function(){return this.id};
gw.prototype.getIsDefault=function(){return this.isDefault};
gw.prototype.toString=function(){return this.name};
gw.prototype.getName=gw.prototype.getName;gw.prototype.getId=gw.prototype.getId;gw.prototype.getIsDefault=gw.prototype.getIsDefault;var aga={fO:"auto",GQ:"tiny",CP:"light",wQ:"small",IP:"medium",AP:"large",hP:"hd720",dP:"hd1080",eP:"hd1440",fP:"hd2160",gP:"hd2880",mP:"highres",UNKNOWN:"unknown"};var yZ;yZ={};g.iw=(yZ.auto=0,yZ.tiny=144,yZ.light=144,yZ.small=240,yZ.medium=360,yZ.large=480,yZ.hd720=720,yZ.hd1080=1080,yZ.hd1440=1440,yZ.hd2160=2160,yZ.hd2880=2880,yZ.highres=4320,yZ);var mw="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");ow.prototype.ua=function(){return this.video};
ow.prototype.Mm=function(){return!!this.l};
ow.prototype.xe=function(){return!!this.video};g.h=ww.prototype;g.h.ae=function(){};
g.h.ck=function(){};
g.h.dr=function(){return!1};
g.h.sc=function(){return!!this.g&&this.index.Eb()};
g.h.Lf=function(){};
g.h.Gx=function(){return!1};
g.h.Th=function(){};
g.h.mh=function(){};
g.h.pi=function(){};
g.h.zf=function(){};
g.h.Gm=function(){};
g.h.Hx=function(a){return[a]};
g.h.lo=function(a){return[a]};
g.h.Wn=function(){};
g.h.xm=function(){};g.t(yw,ww);g.h=yw.prototype;g.h.ae=function(){return!1};
g.h.ck=function(){return!1};
g.h.Gx=function(){return this.i};
g.h.Th=function(){if(this.i)return[];var a=new $u(1,this,this.initRange,"getMetadataRequestInfos");return[new $v([a],this.M)]};
g.h.mh=function(){return null};
g.h.pi=function(a){this.Lf(a);return this.si(a.o?a.i+1:a.i,!1)};
g.h.zf=function(a,b){b=void 0===b?!1:b;var c=this.index.Le(a);b&&(c=Math.min(this.index.sb(),c+1));return this.si(c,!0)};
g.h.Gm=function(a){this.g=new Uint8Array(lv(a).buffer)};
g.h.dr=function(){return!1};
g.h.Lf=function(a){return 0==a.La?!0:this.index.sb()>a.i&&this.index.we()<=a.i+1};
g.h.update=function(a,b,c){this.index.append(a);Ut(this.index,c);this.H=b};
g.h.sc=function(){return this.i?!0:ww.prototype.sc.call(this)};
g.h.si=function(a,b){var c=this.index.qq(a),d=this.index.Kc(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.g?this.info.g*e:1E3;d=new $u(3,this,null,"liveCreateRequestInfoForSegment",a,d,e,0,f,a==this.index.sb()&&!this.H&&0<f);return new $v([d],c)};
g.h.xm=function(){return this.i?0:this.initRange.length};
g.h.Wn=function(){return!1};g.t(Cw,g.Tt);g.h=Cw.prototype;g.h.we=function(){return this.i?this.segments.length?this.Fj(this.Ab()).zb:-1:g.Tt.prototype.we.call(this)};
g.h.Ab=function(){if(!this.i)return g.Tt.prototype.Ab.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Va(this.segments).endTime-this.A,0);return 0<this.u&&this.Fj(a).zb<this.u?this.ng(this.u).startTime:a};
g.h.Sh=function(){if(!this.segments.length)return g.Tt.prototype.Sh.call(this);var a=this.sb();a=!this.i||a<=this.segments[this.segments.length-1].zb?this.segments[this.segments.length-1]:Gw(this,a,this.segments[this.segments.length-1]);return null!=this.o&&a.g&&3==this.o?a.startTime:a.endTime};
g.h.Uh=function(){return this.i?this.segments.length?this.sb()-this.we()+1:0:g.Tt.prototype.Uh.call(this)};
g.h.sb=function(){return Math.min(this.B,Math.max(g.Tt.prototype.sb.call(this),this.l))};
g.h.Mx=function(a){var b=Dw(this,a.zb);0<=b?this.segments[b]=a:this.segments.splice(-(b+1),0,a)};
g.h.Fj=function(a){if(!this.i)return g.Tt.prototype.Fj.call(this,a);if(!this.segments.length)return null;var b=g.ob(this.segments,{startTime:a},function(d,e){return d.startTime-e.startTime}),c=this.segments[0<=b?b:Math.max(-(b+2),0)];
return c.startTime+c.duration>a&&c.startTime<=a?c:-1==b?Gw(this,Math.max(c.zb-Math.ceil((c.startTime-a)/this.g),0),c):Gw(this,c.zb+Math.ceil((a-c.endTime)/this.g),c)};
g.h.ng=function(a){if(!this.i)return g.Tt.prototype.ng.call(this,a);if(!this.segments.length)return null;var b=Dw(this,a);return 0<=b?this.segments[b]:Gw(this,a,this.segments[Math.max(-(b+2),0)])};g.t(Hw,yw);g.h=Hw.prototype;g.h.ck=function(){return!0};
g.h.sc=function(){return!0};
g.h.Lf=function(a){return!a.u};
g.h.Th=function(){return[]};
g.h.zf=function(a,b){if(g.Fa(a)&&!isFinite(a)){var c=new $u(3,this,null,"mlLiveGetReqInfoStubForTime",-1,void 0,this.D,void 0,this.D*this.info.g);return new $v([c],"")}return yw.prototype.zf.call(this,a,b)};
g.h.si=function(a,b){if(Ew(this.index,a))return yw.prototype.si.call(this,a,b);var c=this.index.Kc(a),d=b?0:this.D*this.info.g;c=new $u(3,this,null,"mlLiveCreateReqInfoForSeg",a,c,void 0,void 0,d,a==this.index.sb()&&!this.H&&0<d,!b);return new $v([c],0<=a?"sq/"+a:"")};Mw.prototype.update=function(a,b){var c=void 0;this.i&&(c=this.i);var d=new Mw,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+Iw(a,"timescale")||1,k=(+e[0].getAttribute("t")||0)/f,l=+Iw(a,"startNumber")||0;var m=k;var n=+Iw(a,"presentationTimeOffset")||0;m=c?c.g+c.durationSecs:b?m-n/f:0;n=Date.parse(Lw(Iw(a,"yt:segmentIngestTime")))/1E3;d.l="SegmentTemplate"==a.parentNode.tagName;d.l&&(d.A=Iw(a,"media"));var p=c?l-c.zb:1;d.u=0<p?0:-p+1;e=g.q(e);for(p=e.next();!p.done;p=e.next()){p=
p.value;for(var r=+p.getAttribute("d")/f,v=(+p.getAttribute("yt:sid")||0)/f,z=+p.getAttribute("r")||0,C=0;C<=z;C++)if(c&&l<=c.zb)l++;else{var F=new xfa(l,m,r,n+v,k);d.g.push(F);var E=F.g;F=p.getAttribute("yt:cuepointTimeOffset");var K=p.getAttribute("yt:cuepointDuration");if(F&&K){F=parseFloat(F);E=(NF?+F/f:-F/f)+E;K=parseFloat(K)/f;var R=p.getAttribute("yt:cuepointContext")||null,V=p.getAttribute("yt:cuepointIdentifier");var ta=p.getAttribute("yt:cuepointEvent");ta=Dna[ta]||"unknown";F=new eu(E,
K,R,V,ta,F)}else F=null;F&&d.o.push(F);l++;m+=r;k+=r;n+=r+v}}d.g.length&&(d.i=g.Va(d.g))}this.u=d.u;this.i=d.i||this.i;ib(this.g,d.g);ib(this.o,d.o);this.l=d.l;this.A=d.A};g.t(Nw,ww);g.h=Nw.prototype;g.h.ae=function(){return!1};
g.h.ck=function(){return!1};
g.h.Th=function(){if(this.i){var a=new $u(1,this,null,"otfInit");return[new $v([a],this.i)]}a=new $u(1,this,this.initRange,"otfInitInfo");var b=new $u(2,this,this.indexRange,"otfIndexInfo");return[new $v([a,b])]};
g.h.mh=function(){return null};
g.h.pi=function(a){this.Lf(a);return Ow(this,dv(a),!1)};
g.h.zf=function(a,b){b=void 0===b?!1:b;var c=this.index.Le(a);b&&(c=Math.min(this.index.sb(),c+1));return Ow(this,c,!0)};
g.h.Gm=function(a){if(1==a.info.type)this.g||(a.l&&"http://youtube.com/streaming/otf/durations/112015"==a.l.uri&&Ffa(this,a.l),this.g=mv(a));else if(2==a.info.type)if(g.nv(this.info)){if(!this.index.Eb()&&(a=g.lu(lv(a),0,1936286840))){var b=[],c=uu(a);a=c.Ls.length;var d=c.xt,e=c.Ls,f=c.fl;c=this.indexRange.end+c.Wv+1;for(var k=0,l=0;l<a;l++){var m=f[l]/d,n=e[l];b.push(new St(l,k,m,NaN,"range/"+c+"-"+(c+n-1)));k+=m;c+=n}this.index.append(b)}}else if(2==this.info.containerType&&this.g&&(d=new Bu(new DataView(this.g.buffer)),
b=Qu(d))&&(d=new Bu(lv(a)),a=Su(d,b.Rk,this.indexRange.end))){d=[];e=b.vt/b.wt;f=a.length-1;for(c=0;c<f;c++)k=a[c],l=a[c+1],m=k.hm*e,d.push(new St(c,m,l.hm*e-m,NaN,"range/"+k.Rg+"-"+(l.Rg-1)));c=a[f].hm*e;d.push(new St(f,c,b.duration*e-c,NaN,"range/"+a[f].Rg+"-"+(b.Ss+b.Rk)));this.index.append(d)}};
g.h.Lf=function(a){return 0==a.La?!0:this.index.sb()>a.i&&this.index.we()<=a.i+1};
g.h.xm=function(){return this.initRange&&this.indexRange?this.initRange.length+this.indexRange.length:0};
g.h.Wn=function(){return!1};g.h=g.Pw.prototype;g.h.wn=function(a){return this.g[a]};
g.h.Kc=function(a){return this.i[a]/this.o};
g.h.Dm=ba(1);g.h.Dr=function(){return NaN};
g.h.getDuration=function(a){a=this.hq(a);return 0<=a?a/this.o:-1};
g.h.hq=function(a){return a+1<this.Da||this.l?this.i[a+1]-this.i[a]:-1};
g.h.we=function(){return 0};
g.h.sb=function(){return this.Da-1};
g.h.Sh=function(){return this.l?this.i[this.Da]/this.o:NaN};
g.h.Ab=function(){return 0};
g.h.Uh=function(){return this.Da};
g.h.qq=function(){return""};
g.h.Le=function(a){a=g.ob(this.i.subarray(0,this.Da),a*this.o);return 0<=a?a:Math.max(0,-a-2)};
g.h.Eb=function(){return 0<=this.sb()};
g.h.qw=function(a,b){if(a>=this.sb())return 0;for(var c=0,d=this.Kc(a)+b,e=a;e<this.sb()&&d>this.Kc(e);e++)c=Math.max(c,(e+1<this.Da||this.l?this.g[e+1]-this.g[e]:-1)/this.getDuration(e));return c};
g.h.cap=function(a,b){Qw(this);this.l=!0;this.i[this.Da]=b;this.g[this.Da]=a};g.t(Rw,ww);g.h=Rw.prototype;g.h.Th=function(a){var b=new $u(1,this,this.initRange,"initInfo"),c=new $u(2,this,this.indexRange,"indexInfo"),d=[],e=[b];bv(b,c)?e.push(c):(d.push(new $v([c])),a=0);isNaN(this.i)&&(a=0);b=e[e.length-1];a=Math.min(a,this.i-(b.range.end-e[0].range.start+1));0<a&&(a=Yu(b.range.end+1,a),e.push(new $u(4,this,a,"tbdRange")));d.push(new $v(e));return d};
g.h.Gm=function(a){if(1==a.info.type){if(this.g)return;this.g=mv(a)}else if(2==a.info.type){if(this.D||0<=this.index.sb())return;if(g.nv(this.info)){var b=this.index,c=lv(a);a=a.info.range.start;var d=g.lu(c,0,1936286840);c=uu(d);b.o=c.xt;var e=c.bD;b.g[0]=c.Wv+a+d.size;b.i[0]=e;b.l=!0;a=c.fl.length;for(d=0;d<a;d++){e=b;var f=c.Ls[d],k=c.fl[d];e.Da++;Qw(e);e.g[e.Da]=e.g[e.Da-1]+f;e.i[e.Da]=e.i[e.Da-1]+k}}else this.D=lv(a)}if(2==this.info.containerType&&this.g&&this.D){c=new DataView(this.g.buffer);
b=this.index;a=this.D;d=this.indexRange.end;e=new Bu(c);c=Qu(e);if(null!=c&&(b.o=c.wt/c.vt,e=new Bu(a),a=Su(e,c.Rk,d),null!=a)){a=g.q(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.Rg,f=f.hm,Qw(d),d.g[d.Da]=e,d.i[d.Da]=f,d.Da++;b.cap(c.Ss+c.Rk,c.duration)}this.D=null}};
g.h.Hx=function(a){for(var b=this.lo(a.info),c=[],d=a.i,e=0;e<b.length;e++){var f=Yu(b[e].range.start+b[e].l-a.info.range.start+a.range.start,b[e].La);c.push(new kv(b[e],a.g,f,d));d=!1}return c};
g.h.lo=function(a){for(var b=0;b<this.index.sb()&&a.range.start>=this.index.wn(b+1);)b++;return Sw(this,b,a.range.start,a.range.length).g};
g.h.Lf=function(a){return this.sc()?!0:isNaN(this.i)?!1:a.range.end+1<this.i};
g.h.mh=function(a,b){this.Lf(a);if(!this.sc()){var c=Yu(a.range.end+1,b);c.end+1>this.i&&(c=new Wu(c.start,this.i-1));c=[new $u(4,a.g,c,"getNextRequestInfoByLength")];return new $v(c)}4==a.type&&(c=this.lo(a),a=c[c.length-1]);c=0;var d=a.range.start+a.l+a.La;3==a.type&&(c=a.i,d==a.range.end+1&&(c+=1));return Sw(this,c,d,b)};
g.h.pi=function(){return null};
g.h.zf=function(a,b){var c=this.index.Le(a);b&&(c=Math.min(this.index.sb(),c+1));return Sw(this,c,this.index.wn(c),0)};
g.h.dr=function(){var a;if(a=this.sc()&&!isNaN(this.i))a=this.index,a=(a.l?a.g[a.Da]:-1)!=this.i;return a};
g.h.ae=function(){return!0};
g.h.ck=function(){return!1};
g.h.xm=function(){return this.indexRange.length+this.initRange.length};
g.h.Wn=function(){return this.indexRange&&this.initRange&&this.initRange.end+1==this.indexRange.start?!0:!1};Tw.prototype.start=function(){return 0};
Tw.prototype.end=function(){return Infinity};g.h=Uw.prototype;g.h.addEventListener=function(){};
g.h.removeEventListener=function(){};
g.h.dispatchEvent=function(){return!1};
g.h.abort=function(){};
g.h.remove=function(){};
g.h.appendBuffer=function(){};g.t(Xw,g.N);g.h=Xw.prototype;g.h.If=function(){return Nb(this.g,function(a){return a.info.video?2==a.info.video.projectionType:!1})};
g.h.Jf=function(){return Nb(this.g,function(a){return a.info.video?3==a.info.video.projectionType:!1})};
g.h.Df=function(){return Nb(this.g,function(a){return a.info.video?4==a.info.video.projectionType:!1})};
g.h.di=function(){return Nb(this.g,function(a){return a.info.video?1==a.info.video.stereoLayout:!1})};
g.h.oM=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Te=this.l=!0;this.u||(this.u=new zfa);Dfa(this.u,a,this.Z);this.N("refresh");for(a=0;a<b.length;a++){var c=hx(this,b[a]),d=this.isLive&&g.nv(c)&&this.ga;if(!this.g[c.id]){var e=bx(Jw(b[a],"BaseURL").textContent),f=Jw(b[a],"Initialization"),k=Iw(f,"sourceURL");f=Xu(Iw(f,"range"));d&&(k="",f=void 0);this.g[c.id]=new yw(e,c,k,null===
f?void 0:f)}c=this.g[c.id];e=Iw(b[a],"id","AdaptationSet");e=""!=e?e:Iw(b[a],"mimetype","AdaptationSet");k=this.u;e=k.l[c.info.id]||k.i[e]||k.g||null;k=e.g;if(e.l)for(d=[],k=g.q(k),f=k.next();!f.done;f=k.next()){f=f.value;for(var l=c.info.id,m=8*c.info.g,n=f.zb,p=f.g,r=e.A.split("$$"),v=0;v<r.length;v++)r[v]=r[v].replace("$RepresentationID$",l),r[v]=r[v].replace("$Number$",n.toString()),r[v]=r[v].replace("$Bandwidth$",m.toString()),r[v]=r[v].replace("$Time$",p.toString());d.push(new St(f.zb,f.g,f.durationSecs,
f.i,r.join("$"),null,f.l))}else{e=jb(Jw(b[a],"SegmentList").getElementsByTagName("SegmentURL"),e.u);f=[];for(l=0;l<e.length;l++)f.push(Qfa(e[l],k[l],d));d=f}c.update(d,this.isLive,this.T)}Efa(this.u);return!0}this.duration=Kw(Iw(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){k=b[a];c=hx(this,k);e=Jw(k,"BaseURL");d=bx(e.textContent);f=Jw(k,"SegmentBase");k=Xu(f.attributes.indexRange.value);f=Xu(f.getElementsByTagName("Initialization")[0].attributes.range.value);e=parseInt(e.getAttribute(fx(this,
"contentLength")),10);c=new Rw(d,c,f,k,e,NaN);if(!c){b=!1;break a}$w(this,c)}b=!0}return b};
g.h.KD=function(a){if(this.fa())return this;this.M=a.status;a=a.responseText;a=(new DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.D=1E3*Kw(Iw(a,"minimumUpdatePeriod"))||Infinity;if(!this.P){var b;a:{if(a.attributes)for(b=0;b<a.attributes.length;b++)if("http://youtube.com/yt/2012/10/10"==a.attributes[b].value){b=a.attributes[b].name.split(":")[1];break a}b=""}this.aa=b}this.isLive=Infinity>this.D&&this.oa;this.T=parseInt(Iw(a,fx(this,"earliestMediaSequence")),10)||0;
if(b=Date.parse(Lw(Iw(a,fx(this,"mpdResponseTime")))))this.F=((0,g.D)()-b)/1E3;this.isLive&&0>=a.getElementsByTagName("SegmentTimeline").length||(0,g.mj)(a.getElementsByTagName("Period"),this.oM,this);this.A=2;this.N("loaded");kx(this);return this};
g.h.MD=function(a){this.M=a.lh.status;this.A=3;this.N("loaderror");return og(a.lh)};
g.h.Nx=function(){if(1!=this.A&&!this.fa()){var a=g.bh(this.sourceUrl,{start_seq:Rfa(this).toString()});xg(ix(this,a),function(){})}};
g.h.resume=function(){kx(this)};
g.h.qc=function(){var a=this.g,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],k=f.index;k.Eb()&&(f.A&&(b=!0),k=k.Sh(),f.info.audio&&(isNaN(c)||k<c)?c=k:f.info.xe()&&(isNaN(d)||k<d)&&(d=k))}return b?c:Math.min(c,d)};
g.h.Ab=function(){var a=this.g,b;for(b in a){var c=a[b].index;if(c.Eb())return c.Ab()}return 0};
var cx=null,dx=!1,JB=!0,gx={commentary:1,alternate:2,dub:3,main:4};var lga={RED:"red",UQ:"white"};var kga={PN:"adunit",FO:"detailpage",JO:"editpage",LO:"embedded",BP:"leanback",eQ:"previewpage",fQ:"profilepage",NQ:"unplugged",bQ:"playlistoverview",yQ:"sponsorshipsoffer"};g.h=vx.prototype;g.h.append=function(a){this.g.webkitSourceAppend(this.i,a)};
g.h.abort=function(){this.g.webkitSourceAbort(this.i)};
g.h.vN=function(){return this.g.webkitSourceState==this.g.SOURCE_CLOSED?new Wfa:this.g.webkitSourceBuffered(this.i)};
g.h.xN=function(){return this.l};
g.h.BN=function(a){this.l=a;this.g.webkitSourceTimestampOffset(this.i,a)};g.h=wx.prototype;g.h.addEventListener=function(a,b,c){this.g.addEventListener(a,b,c)};
g.h.removeEventListener=function(a,b,c){this.g.removeEventListener(a,b,c)};
g.h.sG=function(){return this.g.webkitMediaSourceURL};
g.h.addSourceBuffer=function(a){var b=(this.l++).toString();this.g.webkitSourceAddId(b,a);a=new vx(this.g,b);this.sourceBuffers.push(a);return a};
g.h.removeSourceBuffer=function(a){for(var b=0;b<this.sourceBuffers.length;b++)if(a===this.sourceBuffers[b]){this.g.webkitSourceRemoveId(a.i);for(a=b+1;a<this.sourceBuffers.length;a++)this.sourceBuffers[a-1]=this.sourceBuffers[a];this.sourceBuffers.pop();break}};
g.h.yN=function(){switch(this.g.webkitSourceState){case this.g.SOURCE_CLOSED:return"closed";case this.g.SOURCE_OPEN:return"open";case this.g.SOURCE_ENDED:return"ended"}return""};
g.h.endOfStream=function(){this.g.webkitSourceEndOfStream(this.g.EOS_NO_ERROR)};
g.h.zN=function(){ab(this.sourceBuffers)};
g.h.wN=function(){return this.i};
g.h.AN=function(a){this.i=a;this.g.webkitSourceSetDuration&&this.g.webkitSourceSetDuration(a)};g.t(Ix,g.N);g.h=Ix.prototype;g.h.appendBuffer=function(a,b,c){c&&(this.i=c);if(b)for(c=0;c<b.length;c++){var d=b[c];d.Mm()&&(this.A=this.i);this.o=d}this.supports(0)?this.g.appendBuffer(a):this.g.append(a)};
g.h.abort=function(){try{this.g.abort()}catch(a){}this.i=this.o=null};
g.h.remove=function(a,b){this.g.remove(a,b)};
g.h.tm=function(){return this.g.appendWindowStart};
g.h.gq=function(){return this.g.appendWindowEnd};
g.h.Ws=function(a,b){a>this.tm()?(this.g.appendWindowEnd=b,this.g.appendWindowStart=a):(this.g.appendWindowStart=a,this.g.appendWindowEnd=b)};
g.h.ro=function(a){this.supports(1)&&(this.g.timestampOffset=a)};
g.h.Ib=function(){return this.supports(1)?this.g.timestampOffset:0};
g.h.oc=function(){try{return this.g.buffered}catch(a){return zx([],[])}};
g.h.Sd=function(){return this.g.updating};
g.h.Wg=function(){return this.i};
g.h.wm=function(){return this.A};
g.h.Et=function(a,b){this.u!=a&&(this.supports(4),this.g.changeType(b));this.u=a};
g.h.lq=function(){return this.o};
g.h.isView=function(){return!1};
g.h.supports=function(a){switch(a){case 1:return void 0!=this.g.timestampOffset;case 0:return!!this.g.appendBuffer;case 2:return!!this.g.remove;case 3:return!!this.g.removeEventListener;case 4:return!!this.g.changeType;default:return!1}};
g.h.Cp=function(){return!this.Sd()};
g.h.isLocked=function(){return!1};
g.h.fb=function(a){a.to=""+this.g.timestampOffset;a.up=""+ +this.Sd();a.aw=(this.g.appendWindowStart||0).toFixed(3)+"-"+(this.g.appendWindowEnd||Infinity).toFixed(3);try{a.bu=Ax(this.g.buffered)}catch(b){}return yx(a)};
g.h.U=function(){this.supports(3)&&(this.g.removeEventListener("updateend",this.l),this.g.removeEventListener("error",this.l));g.N.prototype.U.call(this)};g.t(Jx,g.N);g.h=Jx.prototype;g.h.appendBuffer=function(a,b,c){if(this.g.tm()!=this.u+this.i||this.g.gq()!=this.o+this.i||this.g.Ib()!=this.A+this.i)this.g.supports(1),this.g.Ws(this.u+this.i,this.o+this.i),this.g.ro(this.A+this.i);this.g.appendBuffer(a,b,c)};
g.h.abort=function(){this.g.abort()};
g.h.remove=function(a,b){this.g.remove(a+this.i,b+this.i)};
g.h.Ws=function(a,b){this.u=a;this.o=b};
g.h.tm=function(){return this.u};
g.h.gq=function(){return this.o};
g.h.ro=function(a){this.A=a};
g.h.Ib=function(){return this.A};
g.h.oc=function(){return Hx(this.g.oc(),this.i,this.D)};
g.h.Sd=function(){return this.g.Sd()};
g.h.Wg=function(){return this.g.Wg()};
g.h.wm=function(){return this.g.wm()};
g.h.Et=function(a,b){return this.g.Et(a,b)};
g.h.supports=function(a){return this.g.supports(a)};
g.h.lq=function(){return this.g.lq()};
g.h.isView=function(){return!0};
g.h.Cp=function(){return this.g.Cp()?this.l:!1};
g.h.isLocked=function(){return this.B&&!this.l};
g.h.fb=function(a){return this.g.fb(a)+(";vw."+this.i+"-"+this.D)};
g.h.U=function(){Ys(this.g,this.F);g.N.prototype.U.call(this)};
g.h.isActive=function(){return this.l};
g.h.setActive=function(a){this.l=a;this.B=this.B||this.l};Kx.prototype.dispose=function(){if(!this.l){if(this.i)try{URL.revokeObjectURL(this.g)}catch(a){}this.l=!0}};
Kx.prototype.fa=function(){return this.l};g.t(Lx,g.A);g.h=Lx.prototype;g.h.getDuration=function(){return this.l.duration};
g.h.isView=function(){return this.A};
g.h.Sd=function(){return!!(this.g&&this.g.Sd()||this.i&&this.i.Sd())};
g.h.AL=function(){!this.fa()&&Mx(this)&&this.o&&(this.o(this),this.o=null)};
g.h.zL=function(){this.dispose()};var zZ={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},AZ;a:{var BZ=g.Ib;BZ=BZ.toLowerCase();if(-1!=BZ.indexOf("android")){var CZ=BZ.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(CZ){var DZ=parseFloat(CZ[1]);if(100>DZ){AZ=DZ;break a}}var EZ=BZ.match("("+g.Rb(zZ).join("|")+")");AZ=EZ?zZ[EZ[0]]:0}else AZ=void 0}var dz=AZ,cz=0<=dz;Sx.prototype.canPlayType=function(a,b){var c=a.canPlayType?a.canPlayType(b):!1;rr?c=c||Ena[b]:2.2==dz?c=c||Fna[b]:ir()&&(c=c||Gna[b]);return!!c};
var Fna={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Gna={"application/x-mpegURL":"maybe"},Ena={"application/x-mpegURL":"maybe"};g.h=iy.prototype;g.h.Od=function(){return this.xf};
g.h.qk=function(){return null};
g.h.jw=function(){var a=this.qk();return a?+g.Jq(a.g).expire:NaN};
g.h.Ts=function(){};
g.h.getHeight=function(){return this.xf.ua().height};ky.prototype.isLocked=function(){return this.l&&!!this.i&&this.i==this.g};
ky.prototype.o=function(a){return a.video?ry(this,a.video.quality):!1};
var YJ=my("auto","hd1080",!1,"l"),SH=my("auto","large",!1,"l"),oy=my("auto","auto",!1,"p");my("small","auto",!1,"p");var jz={DP:1,EP:2,FP:3};g.t(sy,g.N);sy.prototype.add=function(a,b){!this.Ba[a]&&(b.Xl||b.Yl||b.At)&&(this.Ba[a]=fc(b),this.N("vast_info_card_add",a))};
sy.prototype.remove=function(a){var b=this.get(a);delete this.Ba[a];return b};
sy.prototype.get=function(a){return this.Ba[a]||null};
sy.prototype.isEmpty=function(){return g.Xb(this.Ba)};Cy.prototype.i=function(a,b){var c=Math.pow(this.u,a);this.l=b*(1-c)+c*this.l;this.o+=a};
Cy.prototype.g=function(){return this.l/(1-Math.pow(this.u,this.o))};Ey.prototype.i=function(a,b){var c=Math.min(this.l,Math.max(1,Math.round(a*this.I)));c+this.o>=this.l&&(this.A=!0);for(;c--;)this.u[this.o]=b,this.o=(this.o+1)%this.l;this.D=!0};
Ey.prototype.g=function(){return this.F?(Fy(this,this.B-this.F)+Fy(this,this.B)+Fy(this,this.B+this.F))/3:Fy(this,this.B)};var gga=/^([0-9\.]+):([0-9\.]+)$/;var Sy=g.w("ytglobal.prefsUserPrefsPrefs_")||{};g.Ga("ytglobal.prefsUserPrefsPrefs_",Sy,void 0);g.h=Ty.prototype;g.h.get=function(a,b){Vy(a);Uy(a);var c=void 0!==Sy[a]?Sy[a].toString():null;return null!=c?c:b?b:""};
g.h.set=function(a,b){Vy(a);Uy(a);if(null==b)throw Error("ExpectedNotNull");Sy[a]=b.toString()};
g.h.remove=function(a){Vy(a);Uy(a);delete Sy[a]};
g.h.save=function(){g.Js(this.g,this.dump(),63072E3)};
g.h.clear=function(){g.Yb(Sy)};
g.h.dump=function(){var a=[],b;for(b in Sy)a.push(b+"="+encodeURIComponent(String(Sy[b])));return a.join("&")};
Ia(Ty);var Wy="blogger books docs google-live play chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" ");g.t(xz,g.A);
xz.prototype.Sf=function(a){this.na=Qy(this.na,a.video_id);this.Ra=Qy(this.Ra,a.eventid);for(var b in FZ){var c=FZ[b],d=a[c];void 0!=d&&(this.deviceParams[c]=d)}this.userAge=Py(this.userAge,a.user_age);this.P=Qy(this.P,a.user_display_image);g.Cv(this.P)||(this.P="");this.aa=Qy(this.aa,a.user_display_name);this.lf=Qy(this.lf,a.user_gender);this.zd=Qy(this.zd,a.csi_page_type);this.ab=Qy(this.ab,a.csi_service_name);this.hd=Q(this.hd,a.enablecsi);if(a=a.enabled_engage_types)this.hf=new Set(a.split(","))};
xz.prototype.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=Az(this);d&&"www.youtube.com"==c?d="https://youtu.be/"+a:g.vz(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,rr&&(a=Dq())&&(b.ebc=a));return g.bh(d,b)};
xz.prototype.getVideoEmbedCode=function(a,b,c){var d="https://"+Az(this)+"/embed/"+a;c&&(d=g.bh(d,{list:c}));a=!S(this,"enable_responsive_embed_snippet");S(this,"embed_snippet_includes_version")&&(d=g.bh(d,{ecver:a?"1":"2"}));c=b.width;b=b.height;a?(a=g.Yc(d),b='<iframe width="'+c+'" height="'+b+'" src="'+a+'" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'):(a=Math.round(360*c/b),b='<div style="position:relative;height:0;padding-bottom:'+
Math.round(1E4*b/c)/100+'%"><iframe src="'+g.Yc(d)+'" style="position:absolute;width:100%;height:100%;left:0" width="'+a+'" height="360" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>');return b};
var FZ={kO:"cbrand",lO:"cbr",mO:"cbrver",sP:"c",vP:"cver",uP:"ctheme",tP:"cplayer",JP:"cmodel",MP:"cnetwork",RP:"cos",SP:"cosver",YP:"cplatform"},mga=["www.youtube-nocookie.com","youtube.googleapis.com"];Oz.prototype.clone=function(a){return new Oz(this.flavor,a,this.o,this.u)};
Oz.prototype.fb=function(){return{flavor:this.flavor,keySystem:this.g}};
Oz.prototype.Od=function(){switch(this.g){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.apple.fps.1_0":return"FPA";default:return this.g}};
var GZ={},Vz=(GZ.playready=["com.youtube.playready","com.microsoft.playready"],GZ.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],GZ);g.h=g.Wz.prototype;g.h.getId=function(){return this.H};
g.h.getName=function(){return this.u};
g.h.toString=function(){return this.i+": "+g.Xz(this)+" - "+this.A};
g.h.Br=ba(3);g.h.isValid=function(){return!(!this.i||this.g&&!this.g.languageCode)};Yz.prototype.getLanguageInfo=function(){return this.kb};
Yz.prototype.toString=function(){return this.kb.name};
Yz.prototype.getLanguageInfo=Yz.prototype.getLanguageInfo;$z.prototype.getAvailableAudioTracks=function(){return this.audioTracks};
var Zz=!1;g.t(dA,g.A);dA.prototype.D=function(){(this.B=!this.B&&"widevine"==this.i[this.g[0]].flavor)||this.g.shift();eA(this)};
dA.prototype.F=function(a,b){this.fa()||(a.i=b,yga(this,a),this.l.push(a),g.O(this.u,"html5_drm_fallback_to_playready_on_retry")||this.ll?(this.g.shift(),eA(this)):this.A(this.l))};g.t(iA,iy);iA.prototype.jw=function(){return this.l};
iA.prototype.qk=function(){if(!this.g||this.g.fa()){var a=this.i;Ega(a);var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={};a:if(a.i)var d=a.i;else{d=g.q(a.l);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.kb&&e.kb.getIsDefault()){d=e.kb.getId();break a}d=""}e=0;for(var f=a.l.length;e<f;++e){var k=a.l[e];k.kb&&k.kb.getId()!=d||(c[k.itag]=k)}d=0;for(e=a.g.length;d<e;++d)f=a.g[d],b.push(Dga(a,c[f.audioItag],f));d=0;for(e=a.g.length;d<e;++d){f=a.g[d];k=a;var l=b,m=c[f.audioItag];l.push("#EXT-X-STREAM-INF:BANDWIDTH="+
(f.bitrate+m.bitrate)+',CODECS="'+(f.codecs+","+m.codecs+'",RESOLUTION=')+(f.width+"x"+f.height+',AUDIO="')+(hA(m,f)+'",CLOSED-CAPTIONS=NONE'));l.push(gA(k,f.url,""))}a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(b.join("\n"));this.g=new Kx(a)}return this.g};var kA=null;g.t(sA,iy);sA.prototype.qk=function(){return new Kx(Kv(this.g))};
sA.prototype.Ts=function(){this.g=Pv(this.g)};g.t(tA,iy);tA.prototype.qk=function(){return new Kx(this.g)};var Lga=new Set("BASE_URL BASE_YT_URL abd adformat allow_embed authuser autoplay captions_load_policy cc_load_policy cc3_module dash dashmpd disable_native_context_menu docid el enable_cardio enablecastapi enablepostapi end errorcode fmt_list fmt_stream_map forcenewui hl hlsdvr hlsrange hlsvp html5 invite iurl iurlhq iurlmq length_seconds live_playback nohtml5 origin override_hl partnerid pipable playsinline plid postid ps public reason rel reload_count reload_reason reportabuseurl resume start status streaminglib_load_policy streaminglib_preroll t timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoid videoId wmode".split(" "));var Hna={UNKNOWN:"UNKNOWN",NORMAL:"NORMAL",GP:"LOW",MQ:"ULTRALOW"};g.h=g.vA.prototype;g.h.getHeight=function(){return this.u};
g.h.nw=ba(4);g.h.jq=function(){return this.l};
g.h.isDefault=function(){return-1!=this.o.indexOf("default")};
g.h.Eb=function(a){return this.dd.has(a)};
g.h.Gn=function(a){var b=this.jq()-1;return g.pd(0==this.g?Math.round(a*this.l/this.I):Math.round(1E3*a/this.g),0,b)};
g.h.zk=function(){return this.l-1};
g.h.Qr=function(){return this.l?0:-1};
g.h.KA=function(){};g.t(yA,g.N);yA.prototype.F=function(a,b){this.i=this.i.onload=null;var c=this.g[a];c.dd.add(b);BA(this);var d=c.columns*c.rows;var e=b*d;c=Math.min(e+d-1,c.jq()-1);e=[e,c];this.N("l",e[0],e[1])};
yA.prototype.U=function(){this.i&&(this.i=this.i.onload=null);g.N.prototype.U.call(this)};g.t(DA,yA);DA.prototype.l=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.A(f-1,e,d[f],b);180>k.getHeight()&&c.push(k)}return c};
DA.prototype.A=function(a,b,c,d){return new g.vA(a,b,c,d)};g.t(FA,g.vA);g.h=FA.prototype;g.h.jq=function(){return this.i.Uh()};
g.h.Gn=function(a){var b=this.rows*this.columns*this.D,c=this.i,d=c.sb();a=c.Le(a);return a>d-b?-1:a};
g.h.zk=function(){return this.i.sb()};
g.h.Qr=function(){return this.i.we()};
g.h.KA=function(a){this.i=a};g.t(GA,DA);GA.prototype.l=function(a,b){return DA.prototype.l.call(this,"$N|"+a,b)};
GA.prototype.A=function(a,b,c){return new FA(a,b,c,this.isLive)};var IA={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},LA={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};PA.prototype.toString=function(){return this.topic};var Ina=g.w("ytPubsub2Pubsub2Instance")||new g.Yo;g.Yo.prototype.subscribe=g.Yo.prototype.subscribe;g.Yo.prototype.unsubscribeByKey=g.Yo.prototype.ah;g.Yo.prototype.publish=g.Yo.prototype.N;g.Yo.prototype.clear=g.Yo.prototype.clear;g.Ga("ytPubsub2Pubsub2Instance",Ina,void 0);var TA=g.w("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ga("ytPubsub2Pubsub2SubscribedKeys",TA,void 0);var VA=g.w("ytPubsub2Pubsub2TopicToKeys")||{};g.Ga("ytPubsub2Pubsub2TopicToKeys",VA,void 0);
var UA=g.w("ytPubsub2Pubsub2IsAsync")||{};g.Ga("ytPubsub2Pubsub2IsAsync",UA,void 0);g.Ga("ytPubsub2Pubsub2SkipSubKey",null,void 0);var kB=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{};g.t(ZA,OA);g.t($A,OA);var Tga=new PA("aft-recorded",ZA),SA=new PA("timing-sent",$A);var Wga={vc:!0},HZ={},sB=(HZ.ad_allowed="adTypesAllowed",HZ.yt_abt="adBreakType",HZ.ad_cpn="adClientPlaybackNonce",HZ.ad_docid="adVideoId",HZ.yt_ad_an="adNetworks",HZ.ad_at="adType",HZ.browse_id="browseId",HZ.p="httpProtocol",HZ.t="transportProtocol",HZ.cpn="clientPlaybackNonce",HZ.cseg="creatorInfo.creatorSegment",HZ.csn="clientScreenNonce",HZ.docid="videoId",HZ.is_continuation="isContinuation",HZ.is_nav="isNavigation",HZ.b_p="kabukiInfo.browseParams",HZ.is_prefetch="kabukiInfo.isPrefetch",HZ.is_secondary_nav=
"kabukiInfo.isSecondaryNav",HZ.prev_browse_id="kabukiInfo.prevBrowseId",HZ.query_source="kabukiInfo.querySource",HZ.voz_type="kabukiInfo.vozType",HZ.yt_lt="loadType",HZ.mver="creatorInfo.measurementVersion",HZ.yt_ad="isMonetized",HZ.nr="webInfo.navigationReason",HZ.ncnp="webInfo.nonPreloadedNodeCount",HZ.prt="playbackRequiresTap",HZ.pis="playerInfo.playerInitializedState",HZ.paused="playerInfo.isPausedOnLoad",HZ.yt_pt="playerType",HZ.fmt="playerInfo.itag",HZ.yt_pl="watchInfo.isPlaylist",HZ.yt_pre=
"playerInfo.preloadType",HZ.yt_ad_pr="prerollAllowed",HZ.pa="previousAction",HZ.yt_red="isRedSubscriber",HZ.st="serverTimeMs",HZ.aq="tvInfo.appQuality",HZ.br_trs="tvInfo.bedrockTriggerState",HZ.label="tvInfo.label",HZ.is_mdx="tvInfo.isMdx",HZ.preloaded="tvInfo.isPreloaded",HZ.query="unpluggedInfo.query",HZ.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",HZ.yt_vst="videoStreamType",HZ.vph="viewportHeight",HZ.vpw="viewportWidth",HZ.yt_vis="isVisible",HZ),Sga="ap c cver cbrand cmodel ei srt yt_fss yt_li plid all_vc vpil vpni vpst yt_eil vpni2 vpil2 icrc icrt pa GetHome_rid GetBrowse_rid GetPlayer_rid GetSearch_rid GetWatchNext_rid cmt d_vpct d_vpnfi d_vpni pc pfa pfeh pftr prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis yt_ref yt_sts".split(" "),
Qga={ad_to_ad:"LATENCY_ACTION_AD_TO_AD",ad_to_video:"LATENCY_ACTION_AD_TO_VIDEO",app_startup:"LATENCY_ACTION_APP_STARTUP",browse:"LATENCY_ACTION_BROWSE",channels:"LATENCY_ACTION_CHANNELS",channel:"LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD","channel.analytics":"LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS","channel.comments":"LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS","channel.copyright":"LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT","channel.monetization":"LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION","channel.translations":"LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",
"channel.videos":"LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",chips:"LATENCY_ACTION_CHIPS",embed:"LATENCY_ACTION_EMBED",home:"LATENCY_ACTION_HOME",library:"LATENCY_ACTION_LIBRARY",live:"LATENCY_ACTION_LIVE",prebuffer:"LATENCY_ACTION_PREBUFFER",prefetch:"LATENCY_ACTION_PREFETCH",results:"LATENCY_ACTION_RESULTS",search:"LATENCY_ACTION_RESULTS",search_ui:"LATENCY_ACTION_SEARCH_UI",search_zero_state:"LATENCY_ACTION_SEARCH_ZERO_STATE",tenx:"LATENCY_ACTION_TENX",video_to_ad:"LATENCY_ACTION_VIDEO_TO_AD",watch:"LATENCY_ACTION_WATCH",
"watch,watch7":"LATENCY_ACTION_WATCH","watch,watch7_html5":"LATENCY_ACTION_WATCH","watch,watch7ad":"LATENCY_ACTION_WATCH","watch,watch7ad_html5":"LATENCY_ACTION_WATCH",wn_comments:"LATENCY_ACTION_LOAD_COMMENTS","video.analytics":"LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS","video.comments":"LATENCY_ACTION_CREATOR_VIDEO_COMMENTS","video.edit":"LATENCY_ACTION_CREATOR_VIDEO_EDIT","video.translations":"LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS","video.video_editor":"LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",
"video.video_editor_async":"LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC","video.monetization":"LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION"},Rga="isContinuation isNavigation kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "),IZ={},tB=(IZ.mver="MEASUREMENT_VERSION_",IZ.pis="PLAYER_INITIALIZED_STATE_",IZ.yt_pt="LATENCY_PLAYER_",IZ.pa="LATENCY_ACTION_",
IZ.yt_vst="VIDEO_STREAM_TYPE_",IZ),wB=!1,Pga=(0,g.x)(kB.clearResourceTimings||kB.webkitClearResourceTimings||kB.mozClearResourceTimings||kB.msClearResourceTimings||kB.oClearResourceTimings||g.Ha,kB),oE=pB,Nma=dB,UB=nB;var JZ;var KZ=g.Ib,LZ=KZ.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!LZ||2>LZ.length)JZ=void 0;else{var MZ=KZ.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);JZ=MZ&&6==MZ.length?Number(MZ[5].replace("_",".")):0}var kC=JZ,vV=0<=kC;vV&&0<=g.Ib.search("Safari")&&g.Ib.search("Version");var NZ={},dha=(NZ.ALWAYS=1,NZ.BY_REQUEST=3,NZ);g.t(g.zB,g.N);g.h=g.zB.prototype;g.h.Sf=function(a,b){b?(this.Uk(a),eC(this)&&TB(this)):(DB(this,a),this.N("dataupdated"))};
g.h.Uk=function(a){a=a||{};var b=a.status;null!=b&&(this.Em="fail"==b);b=a.errordetail;null!=b&&(this.errorDetail=b);b=a.errorcode;null!=b&&(this.errorCode=b);b=a.reason;null!=b&&(this.errorReason=b);b=a.subreason;null!=b&&(this.Ph=b);this.clientPlaybackNonce||(this.clientPlaybackNonce=a.cpn||vt());b=a.raw_embedded_player_response;if(!b){var c=a.embedded_player_response;c&&(b=JSON.parse(c))}b&&(this.yj=b);this.yj&&(b=this.yj.embedPreview)&&vha(this,b);b=a.raw_player_response;b||(c=a.player_response)&&
(b=JSON.parse(c));b&&(this.Ka=b);if(this.Ka){(b=this.Ka.annotations)&&eha(this,b);(b=this.Ka.attestation)&&fha(this,b);(b=this.Ka.heartbeatParams)&&iha(this,b);(b=this.Ka.multicamera)&&jha(this,b);(b=this.Ka.overlay)&&kha(this,b);if(b=this.Ka.playabilityStatus)lha(this,b),(c=b.errorScreen)&&sha(this,c);(c=this.Ka.playbackTracking)&&mha(this,c,a);(c=this.Ka.playerConfig)&&nha(this,c);var d=this.Ka.streamingData;d&&qha(this,d,c||null);!this.ra("web_player_response_playback_tracking_killswitch")&&(d=
this.Ka.trackingParams)&&(this.Gf=d);if(d=this.Ka.videoDetails)rha(this,d),uha(this,d,c||null,a);b&&hha(this,b,d||null);if(b=this.Ka.interstitialPods)for(b=g.q(b),c=b.next();!c.done;c=b.next())switch(d=c.value,c=d.interstitials.map(function(e){return(e=e.playerVars)&&Object.assign({is_yto_interstitial:!0},g.Hq(e))})[0],d.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":this.interstitials=this.interstitials.concat({time:0,
playerVars:c,No:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":this.interstitials=this.interstitials.concat({time:0x7ffffffffffff,playerVars:c,No:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":d=parseInt(d.podConfig.timeToInsertAtMillis,10),this.interstitials=this.interstitials.concat({time:d,playerVars:c,No:0==d?5:7})}this.Ld&&this.eventId&&(this.Ld=Mq(this.Ld,{ei:this.eventId}));(b=this.Ka.captions)&&b.playerCaptionsTracklistRenderer&&gha(this,b.playerCaptionsTracklistRenderer);
this.Ka.chapterMarkers&&(this.chapterMarkers=this.Ka.chapterMarkers)}b=a.hlsdvr;null!=b&&(this.allowLiveDvr="1"==b?ey()?!0:jC&&5>kC?!1:!0:!1);this.adQueryId=a.ad_query_id||null;this.adSafetyReason=a.encoded_ad_safety_reason||null;this.FC=a.agcid||null;this.Iu=a.ad_id||null;this.Ku=a.ad_sys||null;this.Nv=a.encoded_ad_playback_context||null;this.Ng=Q(this.Ng,a.infringe||a.muted);this.authKey=a.authkey;this.lc=a.authuser;this.zj=Q(this.zj,a.enable_cardio);this.jm=Q(this.jm,a.enable_cardio_before_playback);
this.endSeconds=Py(this.endSeconds,this.ys||a.end||a.endSeconds);this.Gf=Qy(this.Gf,a.itct);this.Zq=Q(this.Zq,a.noiba);this.bk="1"==a.livemonitor;this.Om=Q(this.Om,a.is_live_destination);this.sa=Q(this.sa,a.live_playback);!this.Un&&(this.hi="1"==a.post_live_playback,this.isLiveDefaultBroadcast="1"==a.live_default_broadcast,this.isLowLatencyLiveStream="1"==a.is_low_latency_live_stream,b=a.latency_class)&&(this.latencyClass=Oy("UNKNOWN",b,Hna));this.isMdxPlayback=Q(this.isMdxPlayback,a.mdx);if(b=a.mdx_control_mode)this.mdxControlMode=
g.Fa(b)?b:cd(b);this.Yq=Q(this.Yq,a.is_inline_playback_no_ad);this.cf=Py(this.cf,a.reload_count);this.reloadReason=Qy(this.reloadReason,a.reload_reason);this.uo=Q(this.uo,a.show_content_thumbnail);this.jr=Q(this.jr,a.utpsa);this.qt=Q(this.qt,a.third_party_remapped_ad);this.cycToken=a.cyc||null;this.dB=a.tkn||null;b=KA(a);0<Object.keys(b).length&&(this.ff=b);this.gf=Qy(this.gf,a.vvt);this.mdxEnvironment=Qy(this.mdxEnvironment,a.mdx_environment);this.cI=a.osig;this.eventId||(this.eventId=a.eventid);
this.osid||(this.osid=a.osid);this.playlistId=Qy(this.playlistId,a.list);this.Vz=a.pyv_view_beacon_url;this.Xz=a.pyv_quartile25_beacon_url;this.Yz=a.pyv_quartile50_beacon_url;this.Zz=a.pyv_quartile75_beacon_url;this.Wz=a.pyv_quartile100_beacon_url;if(b=a.remarketing_url)this.remarketingUrl=b;if(b=a.ppv_remarketing_url)this.ppvRemarketingUrl=b;b=a.session_data;!this.Ms&&b&&(this.Ms=Fq(b).feature);this.ax=1==Py(this.ax?1:0,a.is_fling);this.vnd=Py(this.vnd,a.vnd);this.Gj=Qy(this.Gj,a.force_ads_url);
this.Be=Qy(this.Be,a.ctrl);this.Ce=Qy(this.Ce,a.ytr);this.gm=a.ytrcc;this.mA=a.ytrexp;this.Hs=Qy(this.Hs,a.adformat);this.Ht=Qy(this.Ht,a.attrib);this.slotPosition=Py(this.slotPosition,a.slot_pos);this.breakType=a.break_type;this.Xk=Q(this.Xk,a.ssrt);this.videoId=a.docid||a.video_id||a.videoId||a.id||this.videoId;this.nl=Qy(this.nl,a.vss_credentials_token);this.Xi=Qy(this.Xi,a.vss_credentials_token_type);this.Jt=Q(this.Jt,a.audio_only);this.It=Q(this.It,a.aac_high);this.uh=Q(this.uh,a.prefer_low_quality_audio);
this.Pb||(this.Pb=Q(!1,a.is_dni),this.tf=Qy(this.tf,a.dni_color));this.Nk=Qy(this.Nk,a.qoe_cat);this.Xp=Q(this.Xp,a.download_media);this.ie=Q(this.ie,a.prefer_gapless);Zga(this.Ka)&&(this.adModule=!0,this.Fc.push("ad"));if(b=a.adaptive_fmts)this.adaptiveFormats=b;if(b=a.allow_embed)this.allowEmbed="1"==b;if(b=a.backgroundable)this.backgroundable="1"==b;if(b=a.autonav)this.fi="1"==b;if(b=a.autoplay)this.rh="1"==b;if(b=a.iv_load_policy)this.Zf=Oy(this.Zf,b,jz);if(b=a.cc_lang_pref)this.dg=Qy(b,this.dg);
if(b=a.cc_load_policy)this.eg=Oy(this.eg,b,jz);if(b=a.cached_load)this.Bp=Q(this.Bp,b);"0"==a.dash&&(this.Iv=!0);if(b=a.dashmpd)this.Nd=g.bh(b,{cpn:this.clientPlaybackNonce});if(b=a.delay)this.se=cd(b);b=this.ys||a.end;void 0!=b&&(this.clipEnd=Py(this.clipEnd,b));if(b=a.fmt_list)this.fq=b;a.fresca_preroll&&this.Fc.push("fresca");a.heartbeat_preroll&&this.Fc.push("heartbeat");if(this.ra("web_player_client_jitter_killswitch")){if(b=a.idpj)this.gh=cd(b);if(b=a.ldpj)this.ni=cd(b)}else this.gh=-Math.floor(10*
Math.random()),this.ni=-Math.floor(40*Math.random());if(b=a.is_listed)this.he=Q(this.he,b);if(b=a.pipable)this.pipable=Q(this.pipable,b);this.kt=(this.tp=this.pipable&&this.Oa.Sm)&&(!this.Oa.showMiniplayerButton||this.ra("web_player_pip"));if(b=a.paid_content_overlay_duration_ms)this.Hz=cd(b);if(b=a.paid_content_overlay_text)this.lM=b;if(b=a.url_encoded_fmt_stream_map)this.Vi=b;if(b=a.hls_formats)this.hlsFormats=b;if(b=a.hlsvp)this.hlsvp=b;if(b=a.length_seconds)this.lengthSeconds=g.Da(b)?cd(b):b;
!this.Un&&(b=a.live_chunk_readahead)&&(this.liveChunkReadahead=Py(this.liveChunkReadahead,b));if(b=a.live_start_walltime)this.qr=g.Fa(b)?b:cd(b);if(b=a.live_manifest_duration)this.hk=g.Fa(b)?b:cd(b);if(b=a.player_params)this.playerParams=b;if(b=a.partnerid)this.oe=Py(this.oe,b);if(b=a.probe_url)this.probeUrl=Gv(g.bh(b,{cpn:this.clientPlaybackNonce}));if(b=a.profile_picture)this.Vd=Qy(b,this.Vd);(b=a.pyv_billable_url)&&g.Dv(b)&&(this.ao=b);(b=a.pyv_conv_url)&&g.Dv(b)&&(this.bo=b);if(b=a.video_masthead_ad_quartile_urls)this.Zn=
b.quartile_0_url,this.Es=b.quartile_25_url,this.Fs=b.quartile_50_url,this.Gs=b.quartile_75_url,this.Ds=b.quartile_100_url;0<this.startSeconds||(this.sg=this.startSeconds=Py(this.startSeconds,this.Qz||this.Xq||a.start||a.startSeconds));b=a.live_utc_start;null!=b&&(this.liveUtcStartSeconds=parseInt(b,10));if(b=a.utc_start_millis)this.liveUtcStartSeconds=.001*parseInt(b,10);if(b=a.stream_time_start_millis)this.yo=.001*parseInt(b,10);b=this.Xq||a.start;void 0==b||"1"==a.resume||this.sa||(this.clipStart=
Py(this.clipStart,b));if(b=a.url_encoded_third_party_media)this.Qi=Iq(b);if(b=a.ypc_offer_button_formatted_text)c=JSON.parse(b),this.Mt=null!=c?c:null,this.EB=b;if(b=a.ypc_offer_button_text)this.To=b;if(b=a.ypc_offer_description)this.Uo=b;if(b=a.ypc_offer_headline)this.Vo=b;if(b=a.ypc_full_video_message)this.sl=b;if(b=a.ypc_offer_id)this.Wo=b;if(b=a.ypc_buy_url)this.Po=b;if(b=a.ypc_item_thumbnail)this.Qo=b;if(b=a.ypc_item_title)this.Ro=b;if(b=a.ypc_item_url)this.So=b;if(b=a.ypc_vid)this.Xo=b;a.ypc_overlay_timeout&&
(this.ul=parseInt(a.ypc_overlay_timeout,10));if(b=a.ypc_trailer_player_vars)this.vl=g.Hq(b);this.Uf=Qy(this.Uf,a.ucid);(0,g.y)("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(e){a[e]&&(this.Rc[e]=a[e])},this);
this.Rc.focEnabled=Q(this.Rc.focEnabled,a.focEnabled);this.Rc.rmktEnabled=Q(this.Rc.rmktEnabled,a.rmktEnabled);this.xo=a.storyboard_spec||null;this.bn=a.live_storyboard_spec||null;this.mx=a.iv_endscreen_url||null;this.Qm=Q(this.Qm,a.iv3_module);this.Uc=Q(this.Uc,a.fresca_module);this.tl=Q(this.tl,a.ypc_license_checker_module);this.Pc=Q(this.Pc,a.ypc_module);this.aj=Q(this.aj,a.ypc_clickwrap_module);this.Pc&&this.Fc.push("ypc");this.aj&&this.Fc.push("ypc_clickwrap");this.Is=a;DB(this,a);SB(this)?HB(this)&&
(this.sa&&this.Nd?this.Mg=!0:this.mg&&(this.ji=!0)):this.ra("mweb_hoffline")&&this.adaptiveFormats&&rA(this.videoId)?this.Mg=!0:!LB(this,this.adaptiveFormats)&&this.Nd&&(this.Mg=!0);if(b=a.adpings)this.Ju=b?g.Hq(b):null;if(b=a.feature)this.Ei=b;if(b=a.referrer)this.referrer=b;this.clientScreenNonce=Qy(this.clientScreenNonce,a.csn);this.oo=Py(this.oo,a.root_ve_type);this.Um=Py(this.Um,a.kids_age_up_mode);this.Io=Q(this.Io,a.upg_content_filter_mode);if(b=a.unplugged_location_info)this.gd=b;if(b=a.unplugged_partner_opt_out)this.Si=
Qy("",b);void 0!=a.home_group_info&&(this.homeGroupInfo=a.home_group_info);this.Zj=Qy(this.Zj,a.internal_ip_override);this.Un||(this.hasSubfragmentedFmp4=Q(this.hasSubfragmentedFmp4,a.sfmp4),this.defraggedFromSubfragments=Q(this.defraggedFromSubfragments,a.dfs),this.liveExperimentalContentId=Py(this.liveExperimentalContentId,a.live_experimental_content_id));this.ar=!!a.is_yto_interstitial;(this.interstitials.length||this.ar)&&this.Fc.push("yto")};
g.h.ra=function(a){return g.O(this.Oa.experiments,a)};
g.h.fc=function(){return!this.sa||this.allowLiveDvr};
g.h.Im=function(){return!!(this.va&&this.va.videoInfos&&this.va.videoInfos.length)};
g.h.CE=function(a){for(var b=g.q(a),c=b.next();!c.done;c=b.next())switch(c=c.value,c.flavor){case "fairplay":c.mg=this.mg;c.nm=this.nm;c.lm=this.lm;break;case "widevine":c.pl=this.pl}this.Di=a;0<this.Di.length&&(this.cd=this.Di[0]);TB(this)};
g.h.dJ=function(a){this.fa()||(KB(this,a),a.l&&a.subscribe("refresh",this.dz,this),UB("mrc"),Yw(a)&&(this.ji=!0),TB(this))};
g.h.cJ=function(a){this.fa()||(this.Td=!1,this.N("dataloaderror",new g.xx("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
g.h.dz=function(){this.fa()||(this.ia.l||this.ia.unsubscribe("refresh",this.dz,this),this.hv())};
g.h.hv=function(){var a=ex(this.ia,this.kr);0<a.length&&(this.N("cuepointupdated",a),this.kr+=a.length)};
g.h.PE=function(a){if(a&&this.hlsvp)return Er();if(this.hlsFormats){a=IB(this,this.hlsFormats);if(rr||pr()||lr()){var b=fA(a);if(b){var c=[],d={};for(l in b)for(var e=g.q(b[l]),f=e.next();!f.done;f=e.next()){var k=f.value;k.kb&&(f=k.kb.getId(),d[f]||(k=new Yz(f,k.kb),d[f]=k,c.push(k)))}var l=0<c.length?c:null}else l=null}else l=null;this.Jm=l;l=this.ra("html5_hls_cpn_killswitch")?"":this.clientPlaybackNonce;return Gga(this.Oa,this.isAd(),a,this.Ff,l).then(this.gt,void 0,this)}return Er()};
g.h.RE=function(){if(this.Qi&&this.kx){var a=this.Oa;var b=this.isAd(),c=Kga(this.Qi);a=jy(a.o,c,yz(a,b)).then(this.gt,void 0,this)}else a=Er();return a};
g.h.QE=function(){var a=IB(this,this.Vi,this.fq);if(this.hlsvp){var b=this.hlsvp;var c=this.Ff,d={cpn:this.clientPlaybackNonce};-1==b.indexOf("/ibw/")&&(d.ibw=c?String(c):"1369843");b={url:g.bh(b,d),type:"application/x-mpegURL",quality:"auto",itag:"93"};a.push(b)}b=this.Oa;c=this.isAd();d={cpn:this.clientPlaybackNonce,c:this.Oa.deviceParams.c,cver:this.Oa.deviceParams.cver};this.Vn&&(d.ptk=this.Vn,d.oid=this.Mz,d.ptchn=this.Lz,d.pltype=this.Nz);var e=[];a=g.q(a);for(var f=a.next();!f.done;f=a.next()){var k=
f.value;if(k.url){f=new Jv(k.url);k.s&&f.set(k.sp,encodeURIComponent(Iv(decodeURIComponent(k.s))));for(var l in d)f.set(l,d[l]);k=vw(k.type,k.quality,k.itag,k.width,k.height);e.push(new sA(k,f))}}return jy(b.o,e,yz(b,c)).then(this.gt,void 0,this)};
g.h.ht=function(a){this.va=a;a=this.getAvailableAudioTracks();a=a.concat(this.vj);for(var b=0;b<this.Dp.length;b++)for(var c=this.Dp[b],d=0;d<a.length;d++){var e=a[d],f=e.kb.id==c.audioTrackId;if(e.kb.isDefault&&b==this.Xu||f){if(c.captionTrackIndices)for(f=0;f<c.captionTrackIndices.length;f++)e.captionTracks[f]=this.captionTracks[c.captionTrackIndices[f]];g.Ca(c.defaultCaptionTrackIndex)&&(e.Vp=this.captionTracks[c.defaultCaptionTrackIndex]);g.Ca(c.forcedCaptionTrackIndex)&&(e.qm=this.captionTracks[c.forcedCaptionTrackIndex]);
e.Gp=c.visibility||"UNKNOWN"}}if(!this.ra("html5_playbackmanager_infocheck_killswitch")&&this.cd&&this.va&&this.va.videoInfos&&!(0>=this.va.videoInfos.length)&&(a=rw(this.va.videoInfos[0]),a!=("fairplay"==this.cd.flavor)))for(b=g.q(this.Di),c=b.next();!c.done;c=b.next())if(c=c.value,a==("fairplay"==c.flavor)){this.cd=c;break}};
g.h.gt=function(a){this.Qf=a;this.ht(new $z((0,g.ge)(this.Qf,function(b){return b.Od()})))};
g.h.pd=function(){var a={};this.za&&(a.fmt=gv(this.za),this.Zb&&gv(this.Zb)!=gv(this.za)&&(a.afmt=gv(this.Zb)));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Ng&&(a.infringe=1);this.tg&&(a.splay=1);var b=bC(this);b&&(a.live=b);this.rh&&(a.autoplay=1);this.fo&&(a.sdetail=this.fo);this.oe&&(a.partnerid=this.oe);this.osid&&(a.osid=this.osid);return a};
g.h.de=function(){if(!this.xd)if(this.Ka&&this.Ka.storyboards){var a=this.Ka.storyboards,b=a.playerStoryboardSpecRenderer;b&&b.spec?this.xd=new DA(b.spec,this.lengthSeconds):(a=a.playerLiveStoryboardSpecRenderer)&&a.spec&&this.ia&&(b=Pb(this.ia.g).index)&&(this.xd=new GA(a.spec,this.ia.isLive,b))}else this.xo?this.xd=new DA(this.xo,this.lengthSeconds):this.bn&&this.ia&&(a=Pb(this.ia.g).index)&&(this.xd=new GA(this.bn,this.ia.isLive,a));return this.xd};
g.h.getStoryboardFormat=function(){if(this.Ka&&this.Ka.storyboards){var a=this.Ka.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.xo||this.bn};
g.h.qc=function(){return this.ia&&!isNaN(this.ia.qc())?this.ia.qc():NB(this)?0:this.lengthSeconds};
g.h.Ab=function(){return this.ia&&!isNaN(this.ia.Ab())?this.ia.Ab():0};
g.h.getPlaylistSequenceForTime=function(a){if(this.ia&&this.za){var b=this.ia.g[this.za.id];if(!b)return null;var c=b.index.Le(a);b=b.index.Kc(c);return{sequence:c,iR:Math.floor(1E3*(a-b))}}return null};
g.h.isValid=function(){return!this.fa()&&!(!this.videoId&&!this.Qi)};
g.h.Eb=function(){return eC(this)&&!this.Mg&&!this.ji};
g.h.zA=function(){var a={format:"RAW",method:"GET",withCredentials:this.oA},b={};this.Ji&&this.visitorData&&(b["X-Goog-Visitor-Id"]=this.visitorData);var c=tv(this.Oa.experiments,"debug_dapper_trace_id");c&&(b["X-Google-DapperTraceInfo"]=c);0<Object.keys(b).length&&(a.headers=b);0<this.uq&&(a.timeout=this.uq);b=this.Aw;0<this.no&&(b=Mq(b,{playerretry:this.no}));this.Ci&&(b=Mq(b,{preload:1}));this.Bw?Vw(Br,b,a).then(Zp(this.iz),Zp(this.rJ),this):(a.context=this,a.onSuccess=this.iz,a.onError=this.Gq,
g.br(b,a));UB("vir");rB("vir");this.zw=g.M()};
g.h.Ac=function(a){if(30==this.oe)return(a=this.ff["default.jpg"])?a:this.videoId?g.bh("//docs.google.com/vt",{id:this.videoId,authuser:this.lc,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.ff[a];return b||this.Oa.H||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:Bz(this.Oa,this.videoId,a)};
g.h.iz=function(a){if(!this.fa()){var b=a.responseText;b?(this.Td=!1,a=g.Hq(b),this.bx&&uA(a),this.Em=!1,this.Uk(a),this.Em?this.N("onStatusFail",a):(UB("virc"),rB("virc"),eC(this)?TB(this):this.N("dataloaderror",new g.xx("manifest.net.retryexhausted",!0,{successButUnplayable:"1"})))):this.Gq(a)}};
g.h.rJ=function(a){this.Gq(a.lh)};
g.h.Gq=function(a){if(!this.fa()){a=a?a.status:-1;var b=this.no>=this.Qs||400==a||429==a,c=200<a?"manifest.net.badstatus":"manifest.net.connect",d=((g.M()-this.zw)/1E3).toFixed(3);d={backend:"gvi",rc:a,rt:d};429==a?c="auth":b&&this.Qs?c="manifest.net.retryexhausted":b||(this.no++,this.yA.start());this.N("dataloaderror",new g.xx(c,b,d))}};
g.h.Te=function(){return this.sa||this.hi||this.hx||!(!this.liveUtcStartSeconds||!this.hk)};
g.h.ek=function(){return!!this.ia&&(this.ia.ek||!this.hi&&!this.sa&&this.ia.l)};
g.h.getAvailableAudioTracks=function(){return this.va?0<this.va.getAvailableAudioTracks().length?this.va.getAvailableAudioTracks():this.Jm||[]:[]};
g.h.getAudioTrack=function(){var a=this;if(this.Zb&&!rw(this.Zb))return g.Xa(this.getAvailableAudioTracks(),function(d){return d.id==a.Zb.id})||this.vj;
if(this.Jm){if(!this.Sk)for(var b=g.q(this.Jm),c=b.next();!c.done;c=b.next())if(c=c.value,c.kb.getIsDefault()){this.Sk=c;break}return this.Sk||this.vj}return this.vj};
g.h.getPlayerResponse=function(){return this.Ka};
g.h.getPlaylistId=function(){return null};
g.h.ua=function(){return this};
g.h.Wh=function(){return this.Oa.getVideoUrl(this.videoId)};
g.h.If=function(){return!!this.ia&&this.ia.If()};
g.h.Jf=function(){return!!this.ia&&this.ia.Jf()};
g.h.Df=function(){return!!this.ia&&this.ia.Df()};
g.h.di=function(){return!!this.ia&&this.ia.di()};
g.h.isAd=function(){return!!this.adFormat};
g.h.Vk=function(){return this.Pc};
g.h.useInnertubeDrmService=function(){return!!(this.cd&&"widevine"==this.cd.flavor&&this.Ka&&this.Ka.playerConfig&&this.Ka.playerConfig.webDrmConfig&&this.Ka.playerConfig.webDrmConfig.useInnertubeDrmService)};
var OZ={},oha=(OZ.COLOR_PRIMARIES_BT709="bt709",OZ.COLOR_PRIMARIES_BT2020="bt2020",OZ),PZ={},pha=(PZ.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",PZ.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",PZ.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",PZ.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",PZ),QZ={},iC=(QZ.FAIRPLAY="fairplay",QZ.PLAYREADY="playready",QZ.WIDEVINE="widevine",QZ),RZ={},tha=(RZ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",RZ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL=
"NORMAL",RZ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",RZ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",RZ);vC.prototype.u=function(){if(!wC(this))return null;var a="";this.O&&this.O.Jh&&(a=this.O.Jh+("&r1b="+this.O.clientPlaybackNonce));var b={};a=(b.atr_challenge=a,b);return(a=this.l?Rt(a):g.w("yt.abuse.player.invokeBotguard")(a))?"r1a="+a:null};
vC.prototype.A=function(a){return"r3a="+Math.floor(this.O.lengthSeconds%cd(a.c3a))};
vC.prototype.o=function(a){a=cd(a.c);var b=this.l?parseInt(g.Xp("DCLKSTAT",0),10):(b=g.w("yt.abuse.dclkstatus.checkDclkStatus"))?b():NaN;return"r6a="+(a^b)};var PX=16/9,SZ=[.25,.5,.75,1,1.25,1.5,1.75,2],Jna=SZ.concat([3,4,5,6,7,8,9,10,15]);var TZ={},UZ=(TZ["api.invalidparam"]=2,TZ.auth=150,TZ["drm.auth"]=150,TZ["heartbeat.net"]=150,TZ["heartbeat.servererror"]=150,TZ["heartbeat.stop"]=150,TZ["html5.unsupportedads"]=5,TZ["fmt.noneavailable"]=5,TZ["fmt.decode"]=5,TZ["fmt.unplayable"]=5,TZ["html5.missingapi"]=5,TZ["html5.unsupportedlive"]=5,TZ["drm.unavailable"]=5,TZ);var Kna=vV&&4>kC?.1:0,Ama=new AC;g.h=AC.prototype;g.h.Fh=null;g.h.pe=function(a){var b="";a&&(BC(this,a),b=a.g);this.src&&""==b||(b&&this.src!=b&&(this.src=b),a&&a.i||this.load())};
g.h.getDuration=function(){return this.duration||0};
g.h.getCurrentTime=function(){return this.currentTime||0};
g.h.MC=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};g.t(g.CC,g.A);g.h=g.CC.prototype;g.h.Ch=ba(7);g.h.qn=function(){return this.o};
g.h.pe=function(a){var b="";a&&(EC(this,a),b=a.g);this.Vc()&&""==b||(b&&this.Vc()!=b&&(this.vn(b),this.l&&(this.l.dispose(),this.l=null)),a&&a.i||this.load(),this.F||(this.addEventListener("volumechange",this.kv),this.F=!0))};
g.h.Yn=function(){if(!this.l||this.l.fa()){var a=this.ha();a=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new wx(a);a=new Lx(a);this.pe(a.kk);this.l=a}};
g.h.pn=function(){this.I||(this.u=null);if(this.u)return this.u;this.Yn();var a=this.l;this.l=null;return this.u=a};
g.h.playVideo=function(){this.Se()&&this.seekTo(0);!this.Vc()&&this.o&&(g.L(Error("playVideo without src")),this.vn(this.o.g),this.o.i||this.load());var a=this.play();!a&&vV&&7<=kC&&g.vs(this,"playing",(0,g.x)(function(){g.eq((0,g.x)(this.Yv,this,this.getCurrentTime(),0),500)},this));
return a};
g.h.Yv=function(a,b){this.yg()||this.getCurrentTime()>a||10<b||(this.play(),g.eq((0,g.x)(this.Yv,this,this.getCurrentTime(),b+1),500))};
g.h.seekTo=function(a){0<this.je()&&(vV&&4>kC&&(a=Math.max(.1,a)),this.po(a))};
g.h.stopVideo=function(){!this.l&&this.Vc()&&(rr&&0<this.getCurrentTime()&&this.seekTo(0),this.Ns(),this.load(),EC(this,null))};
g.h.fb=function(){try{return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Ax(this.Vh(),",",3),vbu:Ax(this.ue()),vpa:""+ +this.yg(),vsk:""+ +this.fk(),ven:""+ +this.Se(),vpr:""+this.getPlaybackRate(),vrs:""+this.je(),vns:""+this.zm(),vec:""+this.We(),vvol:""+this.getVolume()}}catch(a){return{}}};
g.h.addEventListener=function(a,b){this.B.da(a,b,!1,this);this.Zp(a)};
g.h.removeEventListener=function(a,b){this.B.Na(a,b,!1,this)};
g.h.dispatchEvent=function(a){return this.B.dispatchEvent(a)};
g.h.Yp=function(){this.D=!1};
g.h.Wp=function(){this.D=!0;this.Li(!0)};
g.h.kv=function(){this.D&&!this.ym()&&this.Li(!0)};
g.h.U=function(){this.F&&this.removeEventListener("volumechange",this.kv);this.u&&this.u.dispose();this.l&&this.l.dispose();g.A.prototype.U.call(this)};g.t(KC,g.sf);KC.prototype.preventDefault=function(){g.sf.prototype.preventDefault.call(this);this.g&&this.g.preventDefault()};
KC.prototype.stopPropagation=function(){g.sf.prototype.stopPropagation.call(this);this.g&&this.g.stopPropagation()};g.t(g.LC,g.CC);g.h=g.LC.prototype;g.h.xg=function(){return!0};
g.h.isView=function(){return!1};
g.h.ha=function(){return this.g};
g.h.Vc=function(){return this.g.src};
g.h.vn=function(a){var b=this.getPlaybackRate();this.g.src=a;this.setPlaybackRate(b)};
g.h.Ns=function(){this.g.removeAttribute("src")};
g.h.getPlaybackRate=function(){try{return 0<=this.g.playbackRate?this.g.playbackRate:1}catch(a){return 1}};
g.h.setPlaybackRate=function(a){this.getPlaybackRate()!=a&&(this.g.playbackRate=a);return a};
g.h.nn=function(){return this.g.loop};
g.h.setLoop=function(a){this.g.loop=a};
g.h.canPlayType=function(a,b){return this.g.canPlayType(a,b)};
g.h.yg=function(){return this.g.paused};
g.h.fk=function(){return this.g.seeking};
g.h.Se=function(){return this.g.ended};
g.h.ym=function(){return this.g.muted};
g.h.Li=function(a){ux();this.g.muted=a};
g.h.Vh=function(){return this.g.played||zx([],[])};
g.h.ue=function(){try{var a=this.g.buffered}catch(b){}return a||zx([],[])};
g.h.Bm=function(){return this.g.seekable||zx([],[])};
g.h.tn=function(){return this.g.getStartDate?this.g.getStartDate():null};
g.h.getCurrentTime=function(){return this.g.currentTime};
g.h.po=function(a){this.g.currentTime=a};
g.h.getDuration=function(){return this.g.duration};
g.h.load=function(){var a=this.g.playbackRate;this.g.load&&this.g.load();this.g.playbackRate=a};
g.h.pause=function(){this.g.pause()};
g.h.play=function(){var a=this.g.play();return a&&a.then?a:null};
g.h.je=function(){return this.g.readyState};
g.h.zm=function(){return this.g.networkState};
g.h.We=function(){return this.g.error?this.g.error.code:null};
g.h.nk=function(){return this.g.error?this.g.error.message:""};
g.h.un=function(){var a={};if(this.g){if(this.g.getVideoPlaybackQuality)return this.g.getVideoPlaybackQuality();this.g.webkitDecodedFrameCount&&(a.totalVideoFrames=this.g.webkitDecodedFrameCount,a.droppedVideoFrames=this.g.webkitDroppedFrameCount)}return a};
g.h.ri=function(){return!!this.g.webkitCurrentPlaybackTargetIsWireless};
g.h.Cr=function(){return!!this.g.webkitShowPlaybackTargetPicker()};
g.h.togglePictureInPicture=function(){tx()?this.g!=window.document.pictureInPictureElement?this.g.requestPictureInPicture():window.document.exitPictureInPicture():sx()&&this.g.webkitSetPresentationMode("picture-in-picture"==this.g.webkitPresentationMode?"inline":"picture-in-picture")};
g.h.Qd=function(){return Ih(this.g)};
g.h.pk=function(){return g.Sh(this.g)};
g.h.setSize=function(a){return g.Rh(this.g,a)};
g.h.getVolume=function(){return this.g.volume};
g.h.setVolume=function(a){ux();this.g.volume=a};
g.h.Zp=function(a){if(!this.i[a]){var b=(0,g.x)(this.BF,this);this.g.addEventListener(a,b);this.i[a]=b}};
g.h.BF=function(a){this.dispatchEvent(new KC(this,a.type,a))};
g.h.setAttribute=function(a,b){this.g.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.g.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.g.hasAttribute(a)};
g.h.kj=ba(9);g.h.il=ba(11);g.h.Ch=ba(6);g.h.sj=ba(13);g.h.Cj=function(){Ss(this.g)};
g.h.Mj=function(a){return g.Dh(this.g,a)};
g.h.U=function(){for(var a in this.i)this.g.removeEventListener(a,this.i[a]);g.CC.prototype.U.call(this)};var jja,VZ,xha;
jja={bO:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",dO:"AUTHENTICATION_MALFORMED",eO:"AUTHENTICATION_MISSING",iO:"BAD_REQUEST",oO:"CAST_SESSION_DEVICE_MISMATCHED",pO:"CAST_SESSION_VIDEO_MISMATCHED",qO:"CAST_TOKEN_EXPIRED",rO:"CAST_TOKEN_FAILED",sO:"CAST_TOKEN_MALFORMED",tO:"CGI_PARAMS_MALFORMED",uO:"CGI_PARAMS_MISSING",GO:"DEVICE_FALLBACK",OO:"GENERIC_WITH_LINK_AND_CPN",PO:"LICENSE",QO:"VIDEO_UNAVAILABLE",UO:"FORMAT_UNAVAILABLE",XO:"GEO_FAILURE",nP:"HTML5_AUDIO_RENDERER_ERROR",oP:"GENERIC_WITHOUT_LINK",
pP:"HTML5_FLASH_DEPRECATED",qP:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",rP:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",xP:"INVALID_DRM_MESSAGE",iQ:"PURCHASE_NOT_FOUND",jQ:"PURCHASE_REFUNDED",nQ:"RENTAL_EXPIRED",pQ:"RETRYABLE_ERROR",sQ:"SERVER_ERROR",AQ:"STOPPED_BY_ANOTHER_PLAYBACK",BQ:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",CQ:"STREAMING_NOT_ALLOWED",DQ:"STREAM_LICENSE_NOT_FOUND",IQ:"TOO_MANY_REQUESTS",JQ:"TOO_MANY_REQUESTS_WITH_LINK",KQ:"TOO_MANY_STREAMS_PER_ENTITLEMENT",LQ:"TOO_MANY_STREAMS_PER_USER",
OQ:"UNSUPPORTED_DEVICE",PQ:"VIDEO_FORBIDDEN",QQ:"VIDEO_NOT_FOUND"};VZ={};
g.OJ=(VZ.ALREADY_PINNED_ON_A_DEVICE="\uc800\uc791\uad8c \ubcf4\uc720\uc790\uac00 \ud5c8\uc6a9\ud55c \ucd5c\ub300 \uae30\uae30 \uac1c\uc218\ub9cc\ud07c \ub3d9\uc601\uc0c1\uc744 \ub2e4\uc6b4\ub85c\ub4dc\ud588\uc2b5\ub2c8\ub2e4. \uc774 \uae30\uae30\uc5d0\uc11c \ub3d9\uc601\uc0c1\uc744 \uc7ac\uc0dd\ud558\ub824\uba74 \uba3c\uc800 \ub2e4\ub978 \uae30\uae30\uc5d0\uc11c \ub3d9\uc601\uc0c1\uc744 \uace0\uc815 \ud574\uc81c\ud574\uc57c \ud569\ub2c8\ub2e4.",VZ.DEVICE_FALLBACK="\uc774 \uae30\uae30\uc5d0\uc11c\ub294 \ubcfc \uc218 \uc5c6\ub294 \ub3d9\uc601\uc0c1\uc785\ub2c8\ub2e4.",
VZ.GENERIC_WITH_LINK_AND_CPN="\uc624\ub958\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4. \ub098\uc911\uc5d0 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694. \uc7ac\uc0dd ID\ub294 $CPN\uc785\ub2c8\ub2e4. $BEGIN_LINK\uc790\uc138\ud788 \uc54c\uc544\ubcf4\uae30$END_LINK",VZ.LICENSE="\ub3d9\uc601\uc0c1\uc5d0 \ub77c\uc774\uc120\uc2a4\ub97c \ubd80\uc5ec\ud558\ub294 \uc911\uc5d0 \uc624\ub958\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4.",VZ.VIDEO_UNAVAILABLE="\ub3d9\uc601\uc0c1 \uc2dc\uccad \ubd88\uac00",
VZ.FORMAT_UNAVAILABLE="\uc120\ud0dd\ud55c \ud488\uc9c8\ub85c \uc2dc\uccad\ud560 \uc218 \uc5c6\ub294 \ub3d9\uc601\uc0c1\uc785\ub2c8\ub2e4. \uc7a0\uc2dc \ud6c4 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694.",VZ.GEO_FAILURE="\ud604\uc7ac \uac70\uc8fc \uad6d\uac00\uc5d0\uc11c \uc774 \ub3d9\uc601\uc0c1\uc744 \ubcfc \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.",VZ.HTML5_AUDIO_RENDERER_ERROR="\uc624\ub514\uc624 \ub80c\ub354\uae30 \uc624\ub958\uc785\ub2c8\ub2e4. \ucef4\ud4e8\ud130\ub97c \ub2e4\uc2dc \uc2dc\uc791\ud558\uc138\uc694.",
VZ.GENERIC_WITHOUT_LINK="\uc624\ub958\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4. \ub098\uc911\uc5d0 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694.",VZ.HTML5_FLASH_DEPRECATED="\ud50c\ub798\uc2dc \ub3d9\uc601\uc0c1\uc774 \ub354 \uc774\uc0c1 \uc9c0\uc6d0\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \ucd5c\uc801\uc758 \ud658\uacbd\uc5d0\uc11c \uc2dc\uccad\ud558\ub824\uba74 \ube0c\ub77c\uc6b0\uc800\ub97c \ucd5c\uc2e0 \ubc84\uc804\uc73c\ub85c \uc5c5\uadf8\ub808\uc774\ub4dc\ud558\uc138\uc694. $BEGIN_LINK\uc790\uc138\ud788 \uc54c\uc544\ubcf4\uae30$END_LINK",
VZ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="\uc774 \ub3d9\uc601\uc0c1 \ud615\uc2dd\uc740 \uc9c0\uc6d0\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.",VZ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="\ud604\uc7ac \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c \uc778\uc2dd\ud560 \uc218 \uc788\ub294 \ub3d9\uc601\uc0c1 \ud615\uc2dd\uc774 \uc5c6\uc2b5\ub2c8\ub2e4. $BEGIN_LINK\uc5ec\uae30\ub97c \ud074\ub9ad\ud558\uc5ec HTML5 \ub3d9\uc601\uc0c1\uc5d0 \ub300\ud55c \uc790\uc8fc \ubb3b\ub294 \uc9c8\ubb38(FAQ)\uc744 \ucc38\uc870\ud558\uc138\uc694.$END_LINK",
VZ.INVALID_DRM_MESSAGE="DRM \uc2dc\uc2a4\ud15c \uad00\ub828 \uba54\uc2dc\uc9c0\uac00 \uc798\ubabb\ub418\uc5c8\uc2b5\ub2c8\ub2e4.",VZ.PURCHASE_NOT_FOUND="\uc774 \ub3d9\uc601\uc0c1\uc740 \uc720\ub8cc\uc785\ub2c8\ub2e4.",VZ.PURCHASE_REFUNDED="\ub3d9\uc601\uc0c1 \uad6c\ub9e4\uac00 \ud658\ubd88\ub418\uc5c8\uc2b5\ub2c8\ub2e4.",VZ.RENTAL_EXPIRED="\uc774 \ub3d9\uc601\uc0c1\uc758 \ub300\uc5ec \uae30\uac04\uc774 \ub9cc\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4.",VZ.CAST_SESSION_DEVICE_MISMATCHED="\ube0c\ub85c\ub4dc\uce90\uc2a4\ud2b8 \uc138\uc158\uc5d0 \uc788\ub294 \uae30\uae30\uac00 \uc694\uccad\ub41c \uae30\uae30\uc640 \uc77c\uce58\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.",
VZ.CAST_SESSION_VIDEO_MISMATCHED="\ube0c\ub85c\ub4dc\uce90\uc2a4\ud2b8 \uc138\uc158\uc5d0 \uc788\ub294 \ub3d9\uc601\uc0c1\uc774 \uc694\uccad\ub41c \ub3d9\uc601\uc0c1\uacfc \uc77c\uce58\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.",VZ.CAST_TOKEN_FAILED="\ube0c\ub85c\ub4dc\uce90\uc2a4\ud2b8 \uc138\uc158\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4. \uc0c8\ub85c\uace0\uce68\ud558\uac70\ub098 \ub098\uc911\uc5d0 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694.",VZ.CAST_TOKEN_EXPIRED="\ube0c\ub85c\ub4dc\uce90\uc2a4\ud2b8 \uc138\uc158\uc774 \ub9cc\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc0c8\ub85c\uace0\uce68\ud574 \uc8fc\uc138\uc694.",
VZ.CAST_TOKEN_MALFORMED="\uc798\ubabb\ub41c \ube0c\ub85c\ub4dc\uce90\uc2a4\ud2b8 \uc138\uc158\uc785\ub2c8\ub2e4. \uc0c8\ub85c\uace0\uce68\ud558\uac70\ub098 \ub098\uc911\uc5d0 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694.",VZ.SERVER_ERROR="\ub0b4\ubd80 \uc11c\ubc84 \uc624\ub958\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4. \ub098\uc911\uc5d0 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694.",VZ.STOPPED_BY_ANOTHER_PLAYBACK="\uac19\uc740 \uacc4\uc815\uc73c\ub85c \ub2e4\ub978 \uc704\uce58\uc5d0\uc11c \uc774 \ub3d9\uc601\uc0c1\uc744 \uc7ac\uc0dd\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uacc4\uc18d \uc2dc\uccad\ud558\ub824\uba74 \ud398\uc774\uc9c0\ub97c \uc0c8\ub85c\uace0\uce68\ud558\uc138\uc694.",
VZ.STREAM_LICENSE_NOT_FOUND="\ub3d9\uc601\uc0c1 \uc7ac\uc0dd\uc774 \uc911\ub2e8\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694.",VZ.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="\uc9c0\ub09c 24\uc2dc\uac04 \ub3d9\uc548 \uc0ac\uc6a9\ub41c \uae30\uae30/IP \uc8fc\uc18c\uac00 \ub108\ubb34 \ub9ce\uc2b5\ub2c8\ub2e4.",VZ.STREAMING_NOT_ALLOWED="\uc774 \ub3d9\uc601\uc0c1\uc774 \ub2e4\ub978 \uae30\uae30\uc5d0 \uace0\uc815\ub418\uc5b4 \uc788\uc5b4 \uc7ac\uc0dd\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.",
VZ.RETRYABLE_ERROR="\uc77c\uc2dc\uc801\uc778 \uc11c\ubc84 \uc624\ub958\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4. \ub098\uc911\uc5d0 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694.",VZ.TOO_MANY_REQUESTS="\uc774 \ub3d9\uc601\uc0c1\uc744 \uc2dc\uccad\ud558\ub824\uba74 \ub85c\uadf8\uc778\ud558\uc138\uc694.",VZ.TOO_MANY_REQUESTS_WITH_LINK="YouTube\uc5d0\uc11c \uc774 \ub3d9\uc601\uc0c1\uc744 \uc2dc\uccad\ud558\ub824\uba74 $BEGIN_LINK\uc5ec\uae30\ub97c \ud074\ub9ad$END_LINK\ud558\uc138\uc694.",VZ.TOO_MANY_STREAMS_PER_USER=
"\ud558\ub098\uc758 \uacc4\uc815\uc73c\ub85c \ub108\ubb34 \ub9ce\uc740 \ub3d9\uc601\uc0c1\uc744 \uc7ac\uc0dd\ud558\uace0 \uc788\uae30 \ub54c\ubb38\uc5d0 \uc7ac\uc0dd\uc774 \uc911\ub2e8\ub418\uc5c8\uc2b5\ub2c8\ub2e4.",VZ.TOO_MANY_STREAMS_PER_ENTITLEMENT="\ub108\ubb34 \ub9ce\uc740 \uae30\uae30\uc5d0\uc11c \uc774 \ub3d9\uc601\uc0c1\uc744 \uc7ac\uc0dd\ud588\uae30 \ub54c\ubb38\uc5d0 \uc7ac\uc0dd\uc774 \uc911\ub2e8\ub418\uc5c8\uc2b5\ub2c8\ub2e4.",VZ.UNSUPPORTED_DEVICE="\uc774 \uae30\uae30\uc5d0\uc11c\ub294 \uc7ac\uc0dd\uc774 \uc9c0\uc6d0\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.",
VZ.VIDEO_FORBIDDEN="\uc774 \ub3d9\uc601\uc0c1\uc5d0 \ub300\ud55c \uc561\uc138\uc2a4\uac00 \uae08\uc9c0\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.",VZ.VIDEO_NOT_FOUND="\ub3d9\uc601\uc0c1\uc744 \ucc3e\uc744 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.",VZ);
xha={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",
5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};g.DJ=lc(function(){var a="";try{var b=g.Rd("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.PC.prototype.isCued=function(){return g.T(this,64)&&!g.T(this,8)&&!g.T(this,4)};
g.PC.prototype.isError=function(){return g.T(this,128)};
g.PC.prototype.toString=function(){return"PSt."+this.g.toString(16)};$C.prototype.add=function(a){this.g=(this.g+1)%this.i.length;this.i[this.g]=a};
$C.prototype.clear=function(){for(var a=this.i.length,b=0;b<a;b++)this.i[b]=0;this.l=this.g=this.i.length-1};g.t(bD,g.A);bD.prototype.start=function(){this.i.start()};
bD.prototype.stop=function(){this.i.stop()};
bD.prototype.clear=function(){for(var a in this.g)this.g[a].clear()};
bD.prototype.o=function(){for(var a in this.l)this.g[a].update(this.l[a]());this.i.start()};
cD.prototype.update=function(a){this.l?(this.g.add(a-this.i||0),this.i=a):this.g.add(a)};
cD.prototype.clear=function(){this.g.clear();this.i=0};var zha=1;g.t(g.nD,g.A);g.nD.prototype.g=function(a,b){g.Fa(b)?Vd(a,this.element,b):a.appendChild(this.element)};
g.nD.prototype.update=function(a){for(var b in a)this.updateValue(b,a[b])};
g.nD.prototype.updateValue=function(a,b){var c=this.Ya["{{"+a+"}}"];c&&pD(this,c[0],c[1],b)};
g.nD.prototype.U=function(){this.i={};this.Ya={};g.qD(this);g.A.prototype.U.call(this)};
var rD=!0;g.t(g.W,g.nD);g.h=g.W.prototype;g.h.ob=function(a,b){this.updateValue(b||"content",a)};
g.h.show=function(){this.oa||(this.element.style.display=this.jd,this.oa=!0)};
g.h.hide=function(){this.oa&&(this.element.style.display="none",this.oa=!1)};
g.h.qb=function(a){this.R=a};
g.h.Fa=function(){return this.oa};
g.h.da=function(a,b,c){return this.K(this.element,a,b,c)};
g.h.K=function(a,b,c,d){c=(0,g.x)(c,d||this);d={target:a,type:b,listener:c};this.aa.push(d);a.addEventListener(b,c);return d};
g.h.Na=function(a){for(var b=0;b<this.aa.length;b++)if(this.aa[b]==a){a=this.aa.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
g.h.focus=function(){de(this.element);this.element.focus()};
g.h.U=function(){for(;this.aa.length;){var a=this.aa.pop();a.target.removeEventListener(a.type,a.listener)}g.nD.prototype.U.call(this)};g.t(g.tD,g.W);g.tD.prototype.subscribe=function(a,b,c){return this.Y.subscribe(a,b,c)};
g.tD.prototype.unsubscribe=function(a,b,c){return this.Y.unsubscribe(a,b,c)};
g.tD.prototype.Mf=function(a){return this.Y.Mf(a)};
g.tD.prototype.N=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return this.Y.N.apply(this.Y,[a].concat(g.ea(c)))};g.t(g.vD,g.tD);g.vD.prototype.updateValue=function(a,b){g.tD.prototype.updateValue.call(this,a,b);this.N("size-change")};g.t(zD,g.A);g.h=zD.prototype;
g.h.handleExternalCall=function(a,b,c){var d=this.A[a];if(!d&&(d=this.D[a])){var e=c&&xZ.test(c);!g.O(this.app.g.experiments,"web_player_2mdn_api_killswitch")&&/^https?:\/\/s[01](qa)?\.2mdn\.net$/.test(c)&&(e=!1);if(!e)throw Error('API call from an untrusted origin: "'+c+'"');}e=this.app.g;e.zl&&!this.I.has(a)&&(this.I.add(a),CD(this,"webPlayerApiCalled",{callerUrl:e.loaderUrl,methodName:a,origin:c||void 0,playerStyle:e.playerStyle||void 0}));if(d){if(!g.O(this.app.g.experiments,"player_injection_reporting_killswitch")){c=
!1;e=g.q(b);for(var f=e.next();!f.done;f=e.next())if(String(f.value).includes("javascript:")){c=!0;break}c&&g.$p(Error('Dangerous call to "'+a+'" with ['+b+"]."))}return d.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.h.isExternalMethodAvailable=function(a,b){return this.A[a]?!0:!!(this.D[a]&&b&&xZ.test(b))};
g.h.getBandwidthEstimate=function(){return Ly(this.app.g.schedule)};
g.h.reportPlaybackIssue=function(){var a=g.U(this.app);a&&a.lk(new g.xx("feedback",!1,{gpu:(0,g.DJ)()}))};
g.h.getApiInterface=function(){return this.F.slice()};
g.h.getInternalApiInterface=function(){return g.Rb(this.l)};
g.h.addEventListener=function(a,b){if(g.Da(b)){var c=function(){g.w(b).apply(window,arguments)};
this.B[b]=c}else c=b;this.app.ga.subscribe(a,c)};
g.h.iD=function(a,b){var c=this,d=g.Da(b)?a+b:a+g.Pa(b);if(!this.u[d]){var e;g.Da(b)?e=function(){g.w(b).apply(window,arguments)}:e=b;
var f=function(k){e({target:c.i,data:k})};
this.u[d]=f;this.app.ga.subscribe(a,f)}};
g.h.removeEventListener=function(a,b){if(g.Da(b)){var c=this.B[b];Zb(this.B,b);b=c}this.app.ga.unsubscribe(a,b)};
g.h.jD=function(a,b){var c=g.Da(b)?a+b:a+g.Pa(b),d=this.u[c];d&&(this.app.ga.unsubscribe(a,d),Zb(this.u,c))};
g.h.getPlayerState=function(){return zY(this.app)};
g.h.seekTo=function(a,b,c){this.g&&GY(this.app,!0,this.playerType);OY(this.app,a,b,c,this.playerType)};
g.h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.h.getMediaReferenceTime=function(){var a=xY(this.app,this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.h.getDuration=function(){return this.app.getDuration(this.playerType)};
g.h.getVolume=function(){return this.app.I.volume};
g.h.setVolume=function(a){ED(this,a)};
g.h.isMuted=function(){return this.app.I.muted};
g.h.mute=function(){FD(this)};
g.h.unMute=function(){GD(this)};
g.h.playVideo=function(){this.g&&GY(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();2!=a||wM(this.app)?3==a?g.KK(this.app.o).bf("control_play"):this.app.playVideo(a):(a=this.app.o.o)&&a.bf("control_play")};
g.h.pauseVideo=function(){var a=this.app.getPresentingPlayerType();2!=a||wM(this.app)?3==a?g.KK(this.app.o).bf("control_pause"):this.app.pauseVideo(a):(a=this.app.o.o)&&a.bf("control_pause")};
g.h.stopVideo=function(){var a=this.app;a.g.ga&&a.i.N("pageTransition");a.stopVideo()};
g.h.clearVideo=function(){};
g.h.getPlaybackRate=function(){return g.U(this.app,1).getPlaybackRate()};
g.h.setPlaybackRate=function(a){g.Fa(a)&&this.app.setPlaybackRate(a)};
g.h.getAvailablePlaybackRates=function(){var a=this.app.g;a.wa?(a=a.Xb[0],a="https://admin.youtube.com"==a||"https://viacon.corp.google.com"==a?Jna:SZ):a=[1];return a};
g.h.getPlaybackQuality=function(){var a=g.U(this.app,this.playerType);return a?a.getPlaybackQuality():"unknown"};
g.h.setPlaybackQuality=function(){};
g.h.getAvailableQualityLevels=function(){var a=g.U(this.app,this.playerType);return a?(a=(0,g.ge)(XJ(a),function(b){return b.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.h.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.h.getVideoBytesTotal=function(){return 1};
g.h.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.h.getVideoStartBytes=function(){return 0};
g.h.setSize=function(){this.app.D.ye()};
g.h.channelSubscribed=function(){this.la("SUBSCRIBE",nY(this.app).Uf)};
g.h.channelUnsubscribed=function(){this.la("UNSUBSCRIBE",nY(this.app).Uf)};
g.h.getStatsForNerds=function(){return kD(this.app)};
g.h.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.h.confirmYpcRental=function(){var a=g.U(this.app,this.playerType);a&&QJ(a,"ypc_clickwrap")};
g.h.setHomeGroupInfo=function(a){this.app.g.homeGroupInfo=a};
g.h.setLivingRoomAppMode=function(a){this.app.g.livingRoomAppMode=a};
g.h.setEnablePrivacyFilter=function(a){this.app.g.enablePrivacyFilter=a};
g.h.isPictureInPictureAllowed=function(){return nY(this.app).tp};
g.h.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.h.loadModule=function(a){"captions"==a&&(a=this.app.o.i)&&!a.loaded&&a.load()};
g.h.unloadModule=function(a){"captions"==a&&(a=this.app.o.i)&&a.loaded&&a.mN()};
g.h.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(xC(a,b,c),this.playerType),this.g&&GY(this.app,a,this.playerType))};
g.h.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(xC(a,b,c),this.playerType)};
g.h.loadVideoByUrl=function(a,b,c){a=yC(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.g&&GY(this.app,a,this.playerType)};
g.h.cueVideoByUrl=function(a,b,c){a=yC(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.h.getVideoUrl=function(){var a=this.app.g;if(a.H)return"";var b=nY(this.app),c=void 0;b.sa||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.h.getDebugText=function(){return this.app.getDebugText()};
g.h.getVideoEmbedCode=function(){var a=this.app.g;return a.H?"":a.getVideoEmbedCode(nY(this.app).videoId,this.app.D.getPlayerSize(),this.getPlaylistId()||void 0)};
g.h.addCueRange=function(a,b,c){return JY(this.app,a,b,c)};
g.h.removeCueRange=function(a){a:{for(var b=this.app,c=OG(b.l.H)||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.l.removeCueRange(e);RK(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
g.h.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.g&&GY(this.app,!0,this.playerType)};
g.h.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.h.nextVideo=function(){this.app.nextVideo();this.g&&GY(this.app,!0,this.playerType)};
g.h.previousVideo=function(){this.app.previousVideo();this.g&&GY(this.app,!0,this.playerType)};
g.h.playVideoAt=function(a){this.app.playVideoAt(a);this.g&&GY(this.app,!0,this.playerType)};
g.h.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.h.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.h.getPlaylist=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.getLength();c++){var d=a.ua(c);d&&b.push(d.videoId)}return b};
g.h.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.Ta:-1};
g.h.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.o;return"captions"==a?(a=d.i)&&a.zc(b,c):null};
g.h.getOption=function(a,b,c){return this.setOption(a,b,c)};
g.h.getOptions=function(a){var b=this.app.o;return"captions"==a?(b=b.i)&&b.getOptions():a?null:(a=[],b.i&&a.push("captions"),a)};
g.h.getVideoData=function(){var a={},b=g.U(this.app,this.playerType);if(b&&(b=b.getVideoData(),a.video_id=b.videoId,a.author=b.author,a.title=b.title,b.za&&b.za.video)){a.video_quality=b.za.video.quality;b=b.za.video;var c=[];32<b.fps&&c.push("hfr");lw(b)&&c.push("hdr");"bt2020"==b.primaries&&c.push("wcg");a.video_quality_features=c}if(b=this.getPlaylistId())a.list=b;return a};
g.h.showVideoInfo=function(){aY(this.app,!0)};
g.h.hideVideoInfo=function(){aY(this.app,!1)};
g.h.isVideoInfoVisible=function(){return this.app.isVideoInfoVisible()};
g.h.getAdState=function(){return this.app.getAdState()};
g.h.isNotServable=function(a){if(a!=this.app.ya.args.video_id)return!1;var b=(a=(a=g.U(this.app,1))?a.getPlayerState():null)?a.i:null;return!!(a&&b&&g.T(a,128)&&5==UZ[b.errorCode])};
g.h.getSphericalProperties=function(){var a=this.app.o.u;return a?2==this.playerType?{}:a.getSphericalProperties():{}};
g.h.setSphericalProperties=function(a){if(a&&2!=this.playerType){var b=this.app.o.u;b&&b.setSphericalProperties(a,!0)}};
g.h.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.h.clearQueue=function(){this.app.clearQueue()};
g.h.destroy=function(){this.app.dispose()};
g.h.sendAbandonmentPing=function(){var a=g.U(this.app);a&&a.sendAbandonmentPing()};
g.h.setAutonavState=function(a){QY(this.app,a)};
g.h.setAutonav=function(a){this.setAutonavState(a?2:1)};
g.h.setLoopRange=function(a){this.app.setLoopRange(a)};
g.h.getLoopRange=function(){return this.app.getLoopRange()};
g.h.N=function(a,b){for(var c=1;c<arguments.length;++c);this.app.g.vb&&("videodatachange"==a||"resize"==a||"cardstatechange"==a)&&this.app.ga.N.apply(this.app.ga,arguments);this.app.X.N.apply(this.app.X,arguments)};
g.h.la=function(a,b){this.app.ga.N.apply(this.app.ga,arguments);this.app.X.N.apply(this.app.X,arguments)};
g.h.U=function(){if(this.o){for(var a in this.l)this.o[a]=null;this.o=null}this.u={};this.B={};g.A.prototype.U.call(this)};JD.prototype.isEmpty=function(){return this.endTime==this.startTime};LD.prototype.update=function(){if(this.F){var a=this.i.g()||0,b=g.VD(this.i);if(a!=this.g||PD(this,a,b)){var c;if(!(c=a<this.g||a-this.g>b-this.A+2||PD(this,a,b))){var d=this.i.pd();c=d.volume;var e=c!=this.I;d=d.muted;d!=this.H?(this.H=d,c=!0):(!e||0<=this.u||(this.I=c,this.u=b),c=b-this.u,0<=this.u&&2<c?(this.u=-1,c=!0):c=!1)}c&&(MD(this),this.l=a);this.A=b;this.g=a}}};QD.prototype.send=function(a){if(!this.P){var b=TD(this);b=g.bh(this.ma,b);if(this.R)this.D&&(a=RD(this)||{},a.method="POST",a.wb={atr:this.D},this.Ji&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),g.br(b,a));else{var c=RD(this,a);c?g.br(b,c):g.xr(b,a)}this.P=!0}};
QD.prototype.g=function(a){void 0==a&&(a=NaN);return(1*a.toFixed(3)).toString()};var XD={other:1,none:2,wifi:3,cellular:7};var Lna=new Set(["embed_config","home_group_info"]);g.t(cE,g.A);cE.prototype.Y=function(a,b){if(!this.fa()){this.A=NaN;this.i.update();var c=OD(this.i),d=fE(this,c);b&&(d.o=a);var e=g.O(this.g.rb.experiments,"html5_expanded_max_vss_pings")?1E3:400;e=this.H>e;!(1<c.length)&&c[0].isEmpty()||e||(d.i=dE(this,!0,a));d.send();this.H++}};
cE.prototype.B=function(a){var b=this.g.rb,c=this.g.videoData,d={ns:b.Y,el:g.pC(c),eurl:b.ya,fmt:c.za?gv(c.za):0,html5:1,list:c.playlistId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.playerStyle,noflv:1,st:this.g.g(),video_id:c.videoId,metric:a};g.sC(c)&&(d.autoplay="1");"heartbeat"==a&&(d.tpmt=ND(this.i));g.Ra(d,b.deviceParams);g.hE(this,g.bh(g.O(b.experiments,"cardio_base_url_killswitch")?(b.g?b.protocol+"://www.youtube.com/":b.B)+"live_204":b.B+"live_204",d))};
cE.prototype.U=function(){g.A.prototype.U.call(this);g.gq(this.A);this.A=NaN;var a=this.i;window.clearInterval(a.B);a.B=NaN;g.gq(this.o)};
cE.prototype.fb=function(){return TD(eE(this,"playback"))};var WZ={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(WZ).reduce(function(a,b){a[WZ[b]]=b;return a},{});
var XZ={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(XZ).reduce(function(a,b){a[XZ[b]]=b;return a},{});
var YZ={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(YZ).reduce(function(a,b){a[YZ[b]]=b;return a},{});g.t(lE,zD);g.h=lE.prototype;g.h.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType();2==a&&wM(this.app)&&(a=1);return a};
g.h.addCueRange=function(a,b,c,d,e){return JY(this.app,a,b,c,d,e)};
g.h.addInfoCardXml=function(a,b,c){this.app.g.I.add(a,{Yl:b,At:c})};
g.h.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.h.getPlayerState=function(a){return zY(this.app,a)};
g.h.loadVideoByPlayerVars=function(a,b,c,d){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d)};
g.h.preloadVideoByPlayerVars=function(a,b,c,d,e,f){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e,void 0===f?!1:f)};
g.h.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.h.previousVideo=function(a){this.app.previousVideo(a)};
g.h.seekBy=function(a,b,c){OY(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.h.seekTo=function(a,b,c,d){OY(this.app,a,b,c,d||this.playerType)};
g.h.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!=a.list)if(g.O(this.app.g.experiments,"player_enable_playback_playlist_change"))c=!0;else return;g.O(this.app.g.experiments,"kevlar_frontend_video_list_actions")&&void 0!==a.external_list&&(this.app.M=Q(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.Ta])&&c.encrypted_id!=b.ua().videoId||(a.index=b.Ta)):pY(this.app,{list:a.list,index:a.index,playlist_length:d.length});BE(this.app.getPlaylist(),
a);this.la("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.h.updateLastActiveTime=function(){ys()};
g.h.updateVideoData=function(a,b){var c=g.U(this.app,this.playerType||1);c&&c.getVideoData().Sf(a,b)};
g.h.getPlayerResponse=function(){var a=g.U(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.h.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.h.getStoryboardFrame=function(a,b){var c=this.app.de();if(!c)return null;c=c.g[b];return c?(c=g.xA(c,a))?{column:c.column,columns:c.columns,height:c.height,row:c.row,rows:c.rows,url:c.url,width:c.width}:null:null};
g.h.getStoryboardFrameIndex=function(a,b){var c=this.app.de();if(!c)return-1;c=c.g[b];if(!c)return-1;g.O(this.app.g.experiments,"web_player_api_storyboard_timestamp_killswitch")||(a-=this.Ib());return c.Gn(a)};
g.h.getStoryboardLevel=function(a){var b=this.app.de();return b?(b=b.g[a])?{index:a,intervalMs:b.g,maxFrameIndex:b.zk(),minFrameIndex:b.Qr()}:null:null};
g.h.getNumberOfStoryboardLevels=function(){var a=this.app.de();return a?a.g.length:0};
g.h.Ib=function(){var a=g.U(this.app,void 0);return a?a.Ib():0};
g.h.getHousebrandProperties=function(){var a=this.app.g;return{Kb:a.Kb,vb:a.vb}};
g.h.getVideoData=function(){var a=zD.prototype.getVideoData.call(this)||{},b=g.U(this.app,this.playerType);b&&(b=b.getVideoData(),a.backgroundable=b.backgroundable,a.eventId=b.eventId,a.cpn=b.clientPlaybackNonce,a.isLive=b.sa,a.allowLiveDvr=b.allowLiveDvr,a.itct=b.Gf,a.paidContentOverlayText=$B(b),a.paidContentOverlayDurationMs=aC(b),null!=b.liveUtcStartSeconds&&(a.liveUtcStartSeconds=b.liveUtcStartSeconds),b.ia&&Zw(b.ia)&&(a.usingLocalMedia="true"));return a};
g.h.getCurrentTime=function(a,b){return a?this.app.getCurrentTime(a,b):zD.prototype.getCurrentTime.call(this)};
g.h.getDuration=function(a,b){return a?this.app.getDuration(a,b):zD.prototype.getDuration.call(this)};
g.h.getProgressState=function(a){if(3==this.getPresentingPlayerType())return g.KK(this.app.o).getProgressState();var b=this.app.getVideoData(),c=(g.U(this.app,a)||g.U(this.app)).getPlayerType(),d=this.getCurrentTime(a);a=this.getDuration(a);var e=xY(this.app,c),f=this.app.isAtLiveHead(c);var k=this.app;var l=g.U(k,void 0);if(l){l=lY(k,l);var m=NaN;l.g&&(m=GC(l.g));m=0<=m?m:l.getCurrentTime();k=yY(k,m,l)}else k=0;l=this.app.Ab(c);m=this.app;(c=g.U(m,c))?(c=kY(m,c),c=yY(m,wK(c),c)):c=0;return{allowSeeking:this.app.fc(),
clipEnd:b.clipEnd,clipStart:b.clipStart,current:d,displayedStart:-1,duration:a,ingestionTime:e,isAtLiveHead:f,loaded:k,seekableStart:l,seekableEnd:c}};
g.h.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.h.canPlayType=function(a){return this.app.canPlayType(a)};
g.h.getPreferredQuality=function(){var a=g.U(this.app);return a?a.getPreferredQuality():"unknown"};
g.h.setPlaybackQualityRange=function(a,b){var c=g.U(this.app,this.playerType);if(c){var d=my(a,b||a,!0,"m");c.O.Ko=d;if(c.F){var e=c.F;if(e.va.g){var f=g.iw[uy()];e=e.va.videoInfos[0].ua().Tb;f>e&&0!=e&&d.g==e||g.Ht("yt-player-quality",qy(d),2592E3)}}$J(c)}};
g.h.getCurrentPlaylistSequence=function(){return g.U(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.h.getPlaylistSequenceForTime=function(a){return g.U(this.app).getPlaylistSequenceForTime(a)};
g.h.getCurrentBroadcastId=function(){var a=this.app.o.Uc;return a?a.gw():null};
g.h.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.h.setCardsVisible=function(a,b,c){var d=this.app.o.l;d&&d.Bd()&&d.setCardsVisible(a,b,c)};
g.h.handleGlobalKeyDown=function(a,b,c,d,e){var f=g.ID(this);f&&f.handleGlobalKeyDown(a,void 0===b?!1:b,void 0===c?!1:c,void 0===d?!1:d,void 0===e?!1:e)};
g.h.handleGlobalKeyUp=function(a,b,c,d,e){var f=g.ID(this);f&&f.handleGlobalKeyUp(a,void 0===b?!1:b,void 0===c?!1:c,void 0===d?!1:d,void 0===e?!1:e)};
g.h.gD=function(){return this.getAudioTrack()};
g.h.getAudioTrack=function(){var a=g.U(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().vj};
g.h.setAudioTrack=function(a){3==this.getPresentingPlayerType()&&g.KK(this.app.o).bf("control_set_audio_track",a);var b=g.U(this.app,this.playerType);if(b&&!b.fa()&&!g.T(b.i,128))if(b.O.va.g)b.l.setAudioTrack(a);else{a:{var c=b.O;if(c.Zb&&!rw(c.Zb)||a==c.Sk||!c.Qf||0>=c.Qf.length)c=!1;else{for(var d=g.q(c.Qf),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof iA)){c=!1;break a}var f=a.kb.getId();e.i&&(e.i.i=f,e.g=null)}c.Sk=a;c=!0}}c&&(b.N("internalaudioformatchange",b.O,!0),GJ(b)&&b.Ma("hlsaudio",
a.id))}};
g.h.hD=function(){return this.getAvailableAudioTracks()};
g.h.getAvailableAudioTracks=function(){return g.U(this.app,this.playerType).getAvailableAudioTracks()};
g.h.getMaxPlaybackQuality=function(){var a=g.U(this.app,this.playerType);return a&&a.getVideoData().za?qy(a.F?cI(a.R,a.F,gD(a)):oy):"unknown"};
g.h.getUserPlaybackQualityPreference=function(){var a=g.U(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.h.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.h.forceFrescaUpdate=function(){var a=this.app.o.Uc;a&&a.oD()};
g.h.showControls=function(){var a=g.ID(this);a&&a.showControls(!0)};
g.h.hideControls=function(){var a=g.ID(this);a&&a.showControls(!1)};
g.h.getVisibilityState=function(){var a=this.app.g;a=this.app.F.g&&!g.O(a.experiments,"kevlar_miniplayer_disable_vis");return this.app.getVisibilityState(this.ri(),this.isFullscreen()||ez(this.app.g),a,this.isInline(),this.app.F.o)};
g.h.isFullscreen=function(){return this.app.isFullscreen()};
g.h.isInline=function(){return this.app.isInline()};
g.h.ri=function(){var a=g.U(this.app,this.playerType);return!!a&&a.I.i};
g.h.shouldSendVisibilityState=function(){return!0};
g.h.getVideoContentRect=function(a){a=this.app.D.getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.h.setSafetyMode=function(a){this.app.g.enableSafetyMode=a};
g.h.setUserEngagement=function(a){this.app.g.kf!=a&&(this.app.g.kf=a,(a=g.U(this.app,this.playerType))&&$J(a))};
g.h.setFauxFullscreen=function(a){Qs();jY(this.app,a?2:0)};
g.h.toggleFullscreen=function(){var a=this.app.g;a.externalFullscreen?this.isFullscreen()?Ss(window.document.documentElement):Ps(window.document.documentElement):Qs()?this.isFullscreen()?Ss(LY(this.app)):g.O(a.experiments,"web_player_fullscreen_video_killswitch")||"3"!=a.l?Ps(this.app.D.element):(a=this.app.u.ha())&&Ps(a):this.la("onFullscreenToggled",this.isFullscreen())};
g.h.cancelPlayback=function(){var a=this.app.o.o;a&&a.created&&a.destroy();(a=g.U(this.app))&&a.stopVideo();(a=this.app.o.H)&&a.vE()&&g.GK(this.app.P,!0)};
g.h.stopVideo=function(){var a=this.app.g;!g.O(a.experiments,"disable_new_pause_state3")&&Cz(a)&&"blazer"!=a.playerStyle?this.cancelPlayback():zD.prototype.stopVideo.call(this)};
g.h.getVideoStats=function(){return g.U(this.app,this.playerType).fb(!0)};
g.h.toggleSubtitles=function(){var a=this.app.o.i;a&&a.gN()};
g.h.updateSubtitlesUserSettings=function(a){this.app.o.i.tB(a,!0)};
g.h.getSubtitlesUserSettings=function(){var a=this.app.o.i;return a?a.BD():null};
g.h.resetSubtitlesUserSettings=function(){this.app.o.i.HM()};
g.h.isAtLiveHead=function(a){return this.app.isAtLiveHead(void 0,void 0===a?!0:a)};
g.h.setMinimized=function(a){this.app.setMinimized(a)};
g.h.setInline=function(a){this.app.setInline(a)};
g.h.getDebugText=function(a){return this.app.getDebugText(a)};
g.h.setSphericalProperties=function(a){if(a){var b=this.app.o.u;b&&b.setSphericalProperties(a,!0)}};
g.h.getSphericalProperties=function(){var a=this.app.o.u;return a?a.getSphericalProperties():{}};
g.h.setBlackout=function(a){this.app.setBlackout(a)};
g.h.onAdUxClicked=function(a){this.N("aduxclicked",a)};
g.h.setVolume=function(a,b){ED(this,a,b)};
g.h.mute=function(a){FD(this,a)};
g.h.unMute=function(a){GD(this,a)};
g.h.isMutedByMutedAutoplay=function(){return this.app.Qa};
g.h.loadModule=function(a){if("annotations_module"==a){var b=this.app.o.l;b&&!b.loaded&&b.load()}zD.prototype.loadModule.call(this,a)};
g.h.unloadModule=function(a){if("annotations_module"==a){var b=this.app.o.l;b&&b.loaded&&b.unload()}zD.prototype.unloadModule.call(this,a)};
g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.o;switch(a){case "ad":return(a=d.o)&&a.zc&&a.zc(b,c);case "kids":return(a=wz(g.X(d.g))?d.A:null)&&a.zc(b,c);case "remote":return(a=g.KK(d))&&a.zc(b,c);case "unplugged":return(a=g.vz(g.X(d.g))?d.B:null)&&a.zc(b,c);case "annotations_module":return(a=d.l)&&a.zc(b,c);case "creatorendscreen":return(a=d.D)&&a.zc(b,c)}return zD.prototype.setOption.call(this,a,b,c)};
g.h.getOptions=function(a){var b=this.app.o;switch(a){case "ad":return(b=b.o)&&b.getOptions&&b.getOptions();case "remote":return(b=g.KK(b))&&b.getOptions();case "annotations_module":return(b=b.l)&&b.getOptions();case "creatorendscreen":return(b=b.D)&&b.getOptions();case "unplugged":return(b=g.vz(g.X(b.g))?b.B:null)&&b.getOptions();case "kids":return(b=wz(g.X(b.g))?b.A:null)&&b.getOptions()}if(!a){a=zD.prototype.getOptions.call(this);if(!a)return a;b.o&&a.push("ad");g.KK(b)&&a.push("remote");b.l&&
a.push("annotations_module");b.D&&a.push("creatorendscreen");g.vz(g.X(b.g))&&b.B&&a.push("unplugged");wz(g.X(b.g))&&b.A&&a.push("kids");return a}return zD.prototype.getOptions.call(this,a)};
g.h.getPlayerSize=function(){var a=this.app.D.getPlayerSize();return{width:a.width,height:a.height}};
g.h.setGlobalCrop=function(a){this.app.D.setGlobalCrop(a)};
g.h.wakeUpControls=function(){var a=g.ID(this);a&&a.Ir()};
g.h.getVideoAspectRatio=function(){return this.app.D.getVideoAspectRatio()};
g.h.setUseFastSizingOnWatch=function(a){this.app.D.setUseFastSizingOnWatch(a)};
g.h.setInternalSize=function(a,b){this.app.D.setInternalSize(new g.vd(a,b))};
g.h.updateFullerscreenEduButtonVisibility=function(a){var b=mE(this);b&&(b.u=a,b.o())};
g.h.updateFullerscreenEduButtonSubtleModeState=function(a){var b=mE(this);b&&(g.I(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.B&&(b.element.setAttribute("title","\uc2a4\ud06c\ub864\ud574\uc11c \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uae30"),g.pf(b,gT(b.D.Za(),b.element)),b.B=!0))};nE.prototype.reset=function(){cB("")};
nE.prototype.info=function(a,b){oE(a,b,"")};g.t(g.qE,g.A);g.qE.prototype.getId=function(){return this.A};
g.qE.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.A+"}["+rE(this.start)+", "+rE(this.end)+"]"};
g.qE.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a==this.end&&this.start==this.end)&&(null==b||a<b&&b<=this.end)};
var Dha=1;g.qE.prototype.getId=g.qE.prototype.getId;g.uE.prototype.toString=function(){return this.type+this.id};g.t(g.wE,g.N);g.h=g.wE.prototype;g.h.hasNext=function(a){return this.loop||!!a||this.Ta+1<this.wg};
g.h.Oe=function(a){return this.loop||!!a||0<=this.Ta-1};
g.h.ua=function(a,b,c){a=void 0!=a?a:this.Ta;a=this.Ba&&a in this.Ba?this.Ba[this.Fd[a]]:null;var d=null;a&&(b&&(a.autoplay="1"),c&&(a.autonav="1"),d=new g.zB(this.Oa,a),g.B(this,d),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
g.h.setShuffle=function(a){this.QA=a;a=this.Fd&&null!=this.Fd[this.Ta]?this.Fd[this.Ta]:this.Ta;this.Fd=[];for(var b=0;b<this.Ba.length;b++)this.Fd.push(b);this.Ta=a;this.Xm++;if(this.QA){a=this.Fd[this.Ta];for(b=1;b<this.Fd.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.Fd[b];this.Fd[b]=this.Fd[c];this.Fd[c]=d}for(b=0;b<this.Fd.length;b++)this.Fd[b]==a&&(this.Ta=b);this.Xm++}this.N("shuffle")};
g.h.Ac=function(a){a=a||"hqdefault.jpg";var b=this.ff[a];if(b||this.Oa.H||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a)return b;if(this.ZA.length)return Bz(this.Oa,this.ZA[0],a)};
g.h.getLength=function(){return this.wg};
g.h.Ej=function(a){if(a&&(a=a.videoId,!this.Ba[this.Ta]||this.Ba[this.Ta].video_id!=a))for(var b=0;b<this.Ba.length;b++)if(this.Ba[b].video_id==a){this.Ta=b;break}};
g.h.onReady=function(a){this.Ok=a;this.dd&&g.eq(this.Ok,0)};
g.h.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.h.Wh=function(){return this.Oa.getVideoUrl(this.ua().videoId,this.getPlaylistId())};
g.h.U=function(){this.Ok=null;g.rf(this.Ba);g.N.prototype.U.call(this)};EE.prototype.reset=function(){this.T=HE(this);GE(this);this.g=new DE(0,0,null);this.o=8;this.l=[];this.B=[];this.u=this.F=NaN;this.i=this.H=0;this.R=!1};
EE.prototype.process=function(a){var b=!1;if(this.l.length){if(KE(this)&&this.l.length+a.byteLength<this.o)return LE(this,a,0),0;b=this.l.length;var c=new Uint8Array(b+a.byteLength);c.set(this.l,0);c.set(new Uint8Array(a.buffer,a.byteOffset,a.byteLength),b);this.l=[];a=new DataView(c.buffer);b=!0}for(var d=c=0;c<a.byteLength;){var e=a.byteLength-c,f=NaN;if(KE(this)){if(e<this.o)return LE(this,a,c),0;switch(this.g.type){case 0:f=IE(this,a,c);b||0!=c||(d=this.g.type);break;case 1836019574:case 1836019558:f=
IE(this,a,c);break;case 1953653094:e=a;f=c;if(!this.H){var k=this.P.Dl?this.i:1;this.H=ku(ME(this,e,f),k)}f=IE(this,e,f);break;case 1836476516:this.i=mu(ME(this,a,c));JE(this);f=this.g.size-8;break;case 1952867444:e=void 0;isNaN(this.u)||(f=ME(this,a,c),this.P.jb?e=this.aa(tu(f),this.i):e=this.u,ru(f,e),isNaN(this.A)&&(this.A=e),this.u+=this.H,this.M+=this.H);f=this.g.size-8;break;case 1936286840:e=ME(this,a,c),f=uu(e).fl[0],this.i=vu(e),JE(this),this.H=f,f=this.g.size-8}}else f=Math.min(this.o,e);
this.g.offset+=f;this.o-=f;c+=f;if(0==this.o){for(;0!=this.g.type&&this.g.offset==this.g.size&&this.g.parent;)1835295092==this.g.type&&(this.R=!0),this.g.parent.offset+=this.g.size,this.g=this.g.parent;switch(this.g.type){case 0:case 1836019574:case 1836019558:case 1953653094:this.o=8;break;default:this.o=this.g.size-8}}}0<a.byteLength&&this.B.push(a);return d};g.h=QE.prototype;g.h.rd=function(){return""};
g.h.abort=function(){};
g.h.bi=function(){return!0};
g.h.Hj=function(){return this.o.length};
g.h.xn=function(){return this.dd};
g.h.Jq=function(){return!!this.g.length};
g.h.ug=function(){return!!this.g.length};
g.h.jt=function(){return this.g.shift()};
g.h.Er=function(){return this.g[0]};
g.h.lt=function(){return!0};
g.h.Ks=function(){return!!this.l};
g.h.yn=function(){return this.l};var Vha=0;g.h=eF.prototype;g.h.xM=function(a){this.status=a.status;a.ok?(this.A=a.body.getReader(),this.D?this.A.cancel("Cancelling"):(this.I=a.headers,this.Y(),this.l=new Uint8Array(gF(this)),this.Js())):lF(this)};
g.h.RI=function(a){if(!this.D){var b;window.performance&&window.performance.now&&(b=window.performance.now());var c=(0,g.D)(),d=a.value?a.value:null;(0,g.D)();a.done?(this.A=null,lF(this)):(kF(this)?(jF(this,d),this.P(c,this.i,b)):(this.P(c,this.i+d.length,b),jF(this,d)),this.u.Al?g.Do(this.T):this.Js())}};
g.h.Js=function(){this.A.read().then(Zp((0,g.x)(this.RI,this)),Zp((0,g.x)(this.Ox,this)));(0,g.D)()};
g.h.Ox=function(a){this.R=""+a;this.F=!0;lF(this)};
g.h.rd=function(a){return this.I.get(a)};
g.h.bi=function(){return!!this.I};
g.h.xn=function(){return this.i};
g.h.Hj=function(){return+this.rd("content-length")};
g.h.Jq=function(){return 200<=this.status&&300>this.status&&!!this.i};
g.h.ug=function(){return!!this.o.length||(this.H||kF(this))&&0<this.g};
g.h.jt=function(){this.ug();this.o.length||hF(this);return this.o.shift()};
g.h.Er=function(){this.ug();this.o.length||hF(this);return this.o[0]};
g.h.abort=function(){this.A&&this.A.cancel("Cancelling");this.B&&this.B.abort();this.T.dispose();this.D=!0};
g.h.lt=function(){return!0};
g.h.Ks=function(){return this.F};
g.h.yn=function(){return this.R};g.h=mF.prototype;g.h.HF=function(){if(!this.i){this.status=this.g.status;try{this.response=this.g.response,this.l=this.response.byteLength}catch(a){}this.o=!0;this.u()}};
g.h.JF=function(){2==this.g.readyState&&this.A()};
g.h.IF=function(a){this.i||(this.status=this.g.status,this.B(a.timeStamp,a.loaded))};
g.h.bi=function(){return 2<=this.g.readyState};
g.h.rd=function(a){try{return this.g.getResponseHeader(a)}catch(b){return g.L(b),""}};
g.h.Hj=function(){return+this.rd("content-length")};
g.h.xn=function(){return this.l};
g.h.Jq=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
g.h.ug=function(){return this.o&&!!this.response&&!!this.response.byteLength};
g.h.jt=function(){this.ug();var a=this.response;this.response=null;return new Uint8Array(a)};
g.h.Er=function(){this.ug();return new Uint8Array(this.response)};
g.h.abort=function(){this.i=!0;this.g.abort()};
g.h.lt=function(){return!1};
g.h.Ks=function(){return!1};
g.h.yn=function(){return""};g.h=nF.prototype;g.h.start=function(a){qF(this,2);this.M=++nF.g;this.l?(this.I=ufa(this.info,this.l.l,this.l.length),this.i=g.dw(this.info,this.o,this.T,this.I)):(this.I=this.info.range,this.i=g.dw(this.info,this.o,this.T));var b=!1;if(this.o.Ca&&2>this.info.i.g&&this.F){var c=this.i.get("aitags");if(c&&(cw(this.info)||bw(this.info))&&this.aa&&"auto"==uy()&&Ay()){var d=Xc(c).split(","),e=[];(0,g.y)(this.aa,function(f){g.$a(d,f)&&e.push(f)});
0<e.length&&(this.i.set("altitags",g.Wc(e.join(","))),b=!0)}}b||(this.F=!1);this.i.set("rn",this.M.toString());0<=a&&this.i.set("rbuf",(1E3*a).toFixed().toString());a=g.Uv(this.i);try{this.o.Yb&&tF(this),this.g=Xha(this,a)}catch(f){this.u="net.ssl";rF(this);return}0<this.o.H&&this.P.start()};
g.h.hM=function(){this.B=0;this.info.i.u=g.M();var a=pF(this);a.o=g.M();a.started+=1;a=this.timing;a.g=(0,g.D)();a.A=a.g;a.l=0;a.ga=a.g;a.T=0;a.D&&(a.D=[]);a.oa=!1;a.ea=!1;a.u=0;a.X=My(a.i);a.F=Infinity;a.I=Infinity;bF(a);dF(a,a.g);a.Y=(a.P-a.g)/1E3;a.H=NaN;a.aa=null};
g.h.gM=function(a,b,c){if(!this.fa()&&this.g){this.A=this.g.status;zF(this,!1);var d=this.timing;a=a>d.g&&4E12>a?a:(0,g.D)();$E(d,a,b);50>a-d.A&&aF(d)&&3!=TE(d)||YE(d,a,b,c);b=this.timing;b.l>b.ya&&UE(b,b.l)&&4>this.state?qF(this,4):wF(this)&&yF(this)&&qF(this,Math.max(3,this.state))}};
g.h.fM=function(){if(!this.fa()&&this.g){if(!this.R&&this.g.bi()&&this.g.rd("X-Walltime-Ms")){var a=parseInt(this.g.rd("X-Walltime-Ms"),10);this.R=((0,g.D)()-a)/1E3}this.g.bi()&&this.g.rd("X-Restrict-Formats-Hint")&&this.o.mu&&!Ay()&&g.Ht("yt-player-headers-readable",!0,2592E3)}};
g.h.eM=function(){var a=this.g;if(!this.fa()&&a){this.P.stop();this.A=a.status;var b=!1;if(400<=a.status)b=!0,this.u="net.badstatus";else if(a.Jq()){var c="";xF(this)&&(c=a.Er(),2048<c.length?c="":(c=Au(c),c=Bv(c)?c:""));if(c){a=pF(this);g.M();a.started=0;a.i=0;a.g=0;a=this.info;var d=this.i;g.Zv(a.i,d,c);a.requestId=d.get("req_id");qF(this,5)}else if(c=a.xn(),(d=!!this.I&&this.I.length)&&d!=c||a.Ks())b=!0,this.u="net.closed";else{zF(this,!0);var e=vF(this)?a.rd("X-Bandwidth-Est"):0;if(a=vF(this)?
a.rd("X-Bandwidth-Est3"):0)this.Y=!0,this.o.Wt&&(e=a);a=this.timing;d=(0,g.D)();e=e?parseInt(e,10):0;if(!a.oa){a.oa=!0;if(!WE(a)){d=d>a.g&&4E12>d?d:(0,g.D)();$E(a,d,c);YE(a,d,c);var f=TE(a);if(2==f&&e)XE(a,a.l/e,a.l);else if(2==f||1==f)e=(d-a.g)/1E3,(e<=a.i.policy.u||!a.i.policy.u)&&!a.ea&&aF(a)&&XE(a,e,c),aF(a)&&Hy(a.i,c,a.u);c=a.i;d=(d-a.g)/1E3;e=a.Y;f=bw(a.R);c.A.i(d,a.l/d);c.l=g.M();f||c.i.i(1,d-e)}a.o&&(a.o=!1)}a=pF(this);g.M();a.started=0;a.i=0;a.g=0;this.info.i.g=0;qF(this,6)}}else b=!0,this.u=
204==a.status?"net.nocontent":"net.connect";b&&rF(this)}};
g.h.DM=function(){if(!this.fa()){var a=(0,g.D)(),b=!1;aF(this.timing)?(a=this.timing.P,dF(this.timing),this.timing.P-a>=.8*this.o.H?(this.B++,b=5<=this.B):this.B=0):(b=this.timing,b.B&&cF(b,(0,g.D)()),a-=b.M,this.o.hf&&0<a&&(this.B+=1),b=a>1E3*this.o.hd);this.B&&this.D&&this.D(this);b?uF(this,!1):this.P.start()}};
g.h.fa=function(){return-1==this.state};
g.h.dispose=function(){bw(this.info)&&6!=this.state&&(this.info.g[0].g.B=!1);qF(this,-1);this.D=null;this.P.dispose();tF(this)};
nF.DEBUG=!1;nF.g=0;g.t(AF,g.N);AF.prototype.getDuration=function(){return this.u.index.Sh()};SF.prototype.M=function(a){a=a.info;a.g.info.g>=this.F&&(this.F=a.g.info.g)};
SF.prototype.getDuration=function(){return this.g.index.Sh()};oG.prototype.setPlaybackRate=function(a){this.l=Math.max(1,a)};
oG.prototype.getPlaybackRate=function(){return this.l};tG.prototype.ua=function(){this.Mc("gv")};
tG.prototype.Mc=function(a,b){this.u[a]=b?window.performance.timing.navigationStart+b:g.M()};CG.prototype.send=function(){g.br(this.i,{format:"RAW",responseType:"arraybuffer",timeout:1E4,ed:this.l,ne:this.l,context:this});this.g=g.M()};
CG.prototype.l=function(a){var b={rc:a.status,lb:a.response?a.response.byteLength:0,rt:((g.M()-this.g)/1E3).toFixed(3),shost:g.Tg(this.i),trigger:this.A};204==a.status||a.response?this.o&&this.o(yx(b)):this.u(new g.xx("pathprobe.net",!1,b))};g.t(DG,g.N);g.t(NG,g.A);NG.prototype.removeCueRange=function(a){if(!this.fa()){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){g.cb(this.l,c);var d=this.g,e=d.g;c=g.ob(e,c,d.i);0<=c&&g.bb(e,c)}}this.i()}};
NG.prototype.reset=function(){this.started=!1;this.u.stop();this.g.g=[];this.l=[];this.i()};
NG.prototype.i=function(){this.A=!0;if(!this.B){for(var a=3;this.A&&a;)this.A=!1,this.B=!0,uia(this),this.B=!1,a--;g.WC(this.D())&&(a=LG(this.g,this.o),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.o)/this.I(),this.u.start(a)))}};
NG.prototype.U=function(){this.l=[];this.g.g=[];g.A.prototype.U.call(this)};SG.prototype.then=function(a,b){return this.l.then(a,b)};
SG.prototype.resolve=function(a){this.i(a)};
SG.prototype.reject=function(a){this.g(a)};g.t(UG,g.N);g.h=UG.prototype;
g.h.initialize=function(a,b,c){a=a||0;this.N("videoformatchange",kia(this.B));if(this.u.i){if(this.g.BB){b=Bw(this.g);for(var d in this.u.g)this.u.g[d].index.o=b}this.Qa=new Pha(this.g,this.i.g.index)}this.D&&EG(this.D,this.i.g);this.g.D&&zw()&&this.Dc("streaming","ac."+(this.g.Wf&&!!window.AbortController),!0);this.A=this.u.i?0:a;c?(this.g.zd?(this.ab=c,this.H=!0,this.aa=c):(this.H=!0,this.aa=!1),g.Do(this.na)):(a=0==this.A,sH(this,this.i,this.i.g,a),sH(this,this.o,this.o.g,a),this.seek(this.A),
this.ga.ua())};
g.h.resume=function(){if(this.H||this.Y)this.aa=this.Y=this.H=!1,this.Xe()};
g.h.setAudioTrack=function(a){if(!this.fa()){var b=this.B;b.l=b.A.g[a.id];b.H=b.l;this.N("audioformatchange",new CE(b.H,b.u,"m"));this.N("reattachrequired")}};
g.h.setPlaybackRate=function(a){a!=this.F.getPlaybackRate()&&this.F.setPlaybackRate(a)};
g.h.XK=function(a){var b=this.g.hf;if(!(!(b&&2<=a.state)||5<=a.state||a.B<b||Xv(a.info.i,this.g,this.oa))){b=this.oa;var c=Mv(Wv(a.info.i));b=vv(b,c);b.g||b.i||b.started||hH(this,a,!0)}if(!this.fa()&&3<=a.state){b=this.ga;var d=a.info.g[0].g;c=!b.o&&d.info.video;d=!b.g&&d.info.audio;5==a.state?c?b.Mc("vrr"):d&&b.Mc("arr"):6==a.state?c?(b.o=a.i?g.Uv(a.i):"",Bq(4)):d&&(b.g=a.i?g.Uv(a.i):""):4==a.state&&c&&Bq(4);5<=a.state&&(this.g.oa&&(b=SE(a.timing),c=a.timing,b={rn:a.M.toString(),rt:b.rt,pt:b.pt,
stall:b.stall,elt:b.elbowTime,elb:b.elbowBytes,rqd:c.D?c.D.join(""):""},c=b.rqd,delete b.rqd,c&&this.Dc("rqd",yx({rn:b.rn,d:c})),this.Dc("rqs",yx(b))),a.Y&&this.Dc("sbwe3","1",!0));if(5==a.state)a.start(Math.max(0,a.info.g[0].A-this.A));else if(5<=a.state&&5==a.info.g[0].type)6==a.state&&(b=(a.info.g[0].g.info.video?this.i:this.o).o[0]||null)&&b.B&&uF(b,!0),a.dispose();else{if(this.g.Ca&&a.F&&4<=a.state&&5!=a.state)if(b=a.g?a.g.rd("X-Response-Itag"):null){b=lia(this.B,b);c=a.info.range.length-b.xm();
b.B=!0;a.info.g[0].g.B=!1;d=b.Th(c)[0];a.info=d;if(a.l){c=a.l;d=d.g;c.i=d;for(var e=0;e<c.g.length;e++)c.g[e].info=d[e],c.g[e].range=d[e].range}a.F=!1;c=this.i;c.g!=b&&(c.g=b);c=this.i;c.i&&(c.i.g=b);this.N("constraint",b.info.ua().quality);(c=a.g?a.g.rd("X-Segment-Lmt"):null)&&b instanceof Rw&&(isNaN(b.lastModified)||b.lastModified==c||gG(this.i,a))}else a.F=!1;6==a.state||this.g.D&&3<=a.state&&!(5<=a.state)?xia(this,a):7==a.state&&(b=a.info.g[0].g,sF(a)?(c=(b.info.video&&1<b.o.g||410==a.A||500==
a.A||503==a.A)&&!AG(this.B),d=oF(a),e=b.info.video?this.i:this.o,c&&(d.stun="1"),iH(this,!1,a.u,d),this.fa()||(c&&zG(this.B,b),this.g.jf&&1==a.info.g.length&&0<a.info.g[0].l&&b!=e.g&&this.Y?this.N("reattachrequired"):(gG(e,a),this.Xe()))):(iH(this,!1,a.u,oF(a)),bw(a.info)?(b.u=a.u,this.Xe()):iH(this,!0,"net.retryexhausted",{})));this.Xe();this.g.Ia&&5<=a.state&&sF(a)&&Xv(a.info.i,this.g,this.oa)&&(b=this.oa,c=Mv(a.info.i.i),b=vv(b,c),c=b.started+=b.l,c=this.g.Ia*Math.pow(1.6,c),b.g||b.o+c>g.M()||
hH(this,a,!1))}}};
g.h.Xe=function(){ZG(this);if(this.l&&Mx(this.l)&&!this.l.Sd()){var a=TF(this.i);a=this.g.Rm&&a&&a.u;this.u.isLive&&!a?isNaN(this.I)?(this.I=this.A+3600,Nx(this.l,this.I)):this.I<=this.A+1800&&(this.I=Math.max(this.I+1800,this.A+3600),Nx(this.l,this.I)):this.l.isView()||(a=Math.max(this.o.getDuration(),this.i.getDuration()),(!isFinite(this.I)||this.I!=a)&&0<a&&(Nx(this.l,a),this.I=a))}if(!this.fa())if(jx(this.u)&&3==this.u.A)iH(this,!0,"manifest.net.retryexhausted",{rc:this.u.M.toString()});else if(this.u.l&&
(lG(this.i)||lG(this.o)))XG(this),this.N("seekplayerrequired",Infinity);else if(ZG(this),VF(this.i),!this.fa()&&(VF(this.o),!this.fa())){this.u.i&&(mG(this.i),mG(this.o),zia(this),(a=BF(this.i.l))&&a.l&&(a=a.l.u&&!this.g.M,this.Dc(a==this.g.g?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.g.g?"1":"0")+";dfs."+(this.g.M?"1":"0"),!0)));this.l&&nH(this);VG(this);sH(this,this.i,this.i.g,!1);sH(this,this.o,this.o.g,!1);a=this.o.g.u;var b=this.i.g.u;if(a||b){var c="net.retryexhausted";if("fmt.unparseable"==
a||"fmt.unparseable"==b)c="fmt.unparseable";iH(this,!0,c,{metadata:"1",video:this.i.g.u||"",audio:this.o.g.u||""})}else eH(this,this.i,this.o),eH(this,this.o,this.i),this.g.KB&&this.ma&&!this.H&&Ny(this.P)&&(a=this.ma,b=(0,g.x)(this.N,this,"error"),c=this.g.cu?(0,g.x)(this.Dc,this,"pathprobe"):null,(new CG(a,"cms",c,b)).send(),this.ma=""),this.g.Gl&&this.u.l&&g.Do(this.na),this.D&&(a=this.D,a.u?(b=a.D+a.g.mf,a.o||(b=Math.min(b,a.A+a.g.Sb)),a=Math.max(0,1E3*b-(0,g.D)())):a=NaN,isNaN(a)||g.Do(this.jb,
a)),g.Do(this.Ia)}};
g.h.GF=function(a){this.g.ea&&this.l&&this.Dc("sbu",a.fb({a:""+ +(a==this.l.g)}));this.Xe()};
g.h.wI=function(a){if(this.l){a=TF(a==this.l.g?this.o:this.i);var b=void 0;a&&(b=ev(a));iH(this,!0,"fmt.unplayable",b)}};
g.h.RJ=function(a){iH(this,!0,"fmt.unparseable",a)};
g.h.SJ=function(a){this.o.g.A=a;this.l&&kH(this.l.g,a)};
g.h.WJ=function(a){iH(this,!1,"qoe.avsync",a)};
g.h.TJ=function(a,b){this.u.i&&qH(this,b,a==this.i)};
g.h.UJ=function(a,b){this.u.i&&nx(this.u,b.zb,a==this.i)};
g.h.VJ=function(a,b){this.u.i&&qH(this,b,a==this.i)};
g.h.QJ=function(a,b){if(this.i.g.index.sb()<=b){a.g+=isNaN(this.T)?0:this.T;var c=this.u;c.R.push(a);c.N("cuepointsadded")}};
g.h.seek=function(a){if(this.fa())return og();if(this.i.B||this.o.B)return ng();ZG(this);this.Ea=g.M();VG(this,a);var b=this.i.i,c=rH(this.i,a,this.l&&this.l.i),d=rH(this.o,this.g.Ea?a:c,this.l&&this.l.g);this.A=Math.max(a,c,d);this.R=!0;this.u.i&&this.g.X&&(c=this.i.i.i,Ew(this.i.g.index,c)||b&&b.i==c||(this.M=!0));this.l&&this.l.g&&this.l.i&&(this.l.g.isLocked()||this.l.i.isLocked())&&this.N("reattachrequired");g.Do(this.Z);return ng(a)};
g.h.getCurrentTime=function(){return this.A};
g.h.U=function(){YG(this);eG(this.o);eG(this.i);g.N.prototype.U.call(this)};
g.h.fb=function(){var a=TF(this.o),b=TF(this.i);a={lct:this.A.toFixed(3),lsk:this.R,lmf:BG(this.B),lbw:Ky(this.P).toFixed(3),lhd:Iy(this.P).toFixed(3),lst:(1E9*(this.P.o.g()||0)).toFixed(3),laa:a?fv(a):"",lva:b?fv(b):"",lar:this.o.i?fv(this.o.i):"",lvr:this.i.i?fv(this.i.i):""};this.l&&!Ox(this.l)&&this.l.g&&this.l.i&&(a.lab=Ax(this.l.g.oc()),a.lvb=Ax(this.l.i.oc()));return a};
g.h.Dc=function(a,b,c){this.N("ctmp",a,b,void 0===c?!1:c)};
g.h.Ou=function(a,b){var c=a/b;isNaN(this.T)&&(this.T=c-Math.min(c,this.g.jd),this.N("timestamp",this.T));return(c-this.T)*b};
var cH=2/24;g.t(uH,g.N);g.t(xH,uH);xH.prototype.A=function(a,b){if(a&&b){var c=1*fh(a,"cpi")+1;isNaN(c)||0>=c||c<this.l?(this.o.stop(),this.i.stop(),this.l=-1,this.g={}):(c>this.l&&(this.l=c,g.Xb(this.g)||(this.g={},this.o.stop(),this.i.stop())),this.g[b]=a,g.Do(this.i))}};
xH.prototype.u=function(){for(var a in this.g)this.N("rotated_need_key_info_ready",new vH(Eia(this.g[a],this.l,a),"fairplay",!0));this.g={}};var ZZ={},Mna=(ZZ.DRM_TRACK_TYPE_AUDIO="AUDIO",ZZ.DRM_TRACK_TYPE_SD="SD",ZZ.DRM_TRACK_TYPE_HD="HD",ZZ.DRM_TRACK_TYPE_UHD1="UHD1",ZZ);g.t(AH,g.A);AH.prototype.u=function(a){this.fa()||(0!=a.status&&a.response?(UB("drm_net_r"),a=new Uint8Array(a.response),(a=zH(a))?this.l(a):this.g(this,"drm.net","t.p")):this.o(a))};
AH.prototype.o=function(a){this.fa()||this.g(this,a.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+a.status)};
AH.prototype.B=function(a){if(!this.fa()){UB("drm_net_r");a:{var b="LICENSE_STATUS_OK"==a.status?0:9999,c=null;try{c=g.ne(a.license)}catch(n){}if(0!=b||c){c=new yH(b,c);0!=b&&a.reason&&(c.errorMessage=a.reason);if(a.authorizedFormats){b={};for(var d=[],e={},f=g.q(a.authorizedFormats),k=f.next();!k.done;k=f.next()){k=k.value;var l=Mna[k.trackType];if(l){"HD"==l&&a.isHd720&&(l="HD720");b[l]||(d.push(l),b[l]=!0);var m=null;try{m=g.ne(k.keyId)}catch(n){}if(!m){a=null;break a}e[PE(m)]=l}}c.g=d;c.i=e}a=
c}else a=null}a?this.l(a):this.g(this,"drm.net","t.p;p.i")}};
AH.prototype.A=function(a){this.fa()||(a=a.error,this.g(this,"drm.net.badstatus","t.r;p.i;c."+a.code+";s."+a.status))};g.t(BH,g.A);g.h=BH.prototype;g.h.OF=function(a){if(this.u){var b=a.messageType||"license-request";this.u.call(this.l,new Uint8Array(a.message),b)}};
g.h.PF=function(){this.D&&this.D.call(this.l,this.g.keyStatuses)};
g.h.Vy=function(a,b){g.L(b);if(this.o){var c=a;b instanceof DOMException&&(c+=";n."+b.name+";m."+b.message);this.o.call(this.l,c)}};
g.h.XI=function(){this.fa()||hr("xboxone")&&this.o&&this.o.call(this.l,"closed")};
g.h.rz=function(a){this.u&&this.u.call(this.l,a.message,"license-request")};
g.h.qz=function(a){if(this.o){if(this.i){var b=this.i.error.code;a=this.i.error.systemCode}else b=a.errorCode&&a.errorCode.code,a=a.systemCode;this.o.call(this.l,"t.prefixedKeyError;c."+b+";sc."+a)}};
g.h.pz=function(){this.B&&this.B.call(this.l)};
g.h.update=function(a){if(this.g)return this.g.update(a).then(null,Zp((0,g.x)(this.Vy,this,"t.update")));this.i?this.i.update(a):this.A.addKey?this.A.addKey(this.H.g,a,this.F,this.sessionId):this.A.webkitAddKey(this.H.g,a,this.F,this.sessionId);return Fr()};
g.h.U=function(){this.g&&this.g.close();this.A=null;g.A.prototype.U.call(this)};g.t(CH,g.A);g.h=CH.prototype;
g.h.createSession=function(a){var b=a.initData;if(this.g.i){var c=this.u.createSession();"com.youtube.fairplay"==this.g.g&&(b=EH(this,b));b=c.generateRequest(a.contentType,b);c=new BH(null,null,null,c,null);b.then(null,Zp((0,g.x)(c.Vy,c,"t.generateRequest")));return c}if(Qz(this.g)){c=new Uint8Array(270);for(a=0;135>a;a++)c[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);b=this.l.createSession("video/mp4",
b,c);return new BH(null,null,null,null,b)}if(Tz(this.g))return b=EH(this,b),b=this.l.createSession("video/mp4",b),new BH(null,null,null,null,b);this.i.generateKeyRequest?this.i.generateKeyRequest(this.g.g,b):this.i.webkitGenerateKeyRequest(this.g.g,b);return this.o=new BH(this.i,this.g,b,null,null)};
g.h.SF=function(a){var b=FH(this,a);b&&b.rz(a)};
g.h.RF=function(a){var b=FH(this,a);b&&b.qz(a)};
g.h.QF=function(a){var b=FH(this,a);b&&b.pz(a)};
g.h.U=function(){g.A.prototype.U.call(this);delete this.i};var $Z={},Mia=($Z.widevine="DRM_SYSTEM_WIDEVINE",$Z.fairplay="DRM_SYSTEM_FAIRPLAY",$Z.playready="DRM_SYSTEM_PLAYREADY",$Z);g.t(IH,g.A);g.h=IH.prototype;
g.h.MF=function(a,b){if(!this.fa()){HH(this,"onkmtyp"+b);if(!g.O(this.l.experiments,"html5_provisioning_killswitch"))switch(b){case "license-request":case "license-renewal":case "license-release":break;case "individualization-request":Lia(this,a);return;default:this.Nb.N("ctmp","message_type","t."+b+";l."+a.byteLength)}this.H||(UB("drm_gk_f"),this.H=!0,this.Nb.N("newsession",this));if(Rz(this.i)){var c=JH(a);if(!c)return;a=c}if("fairplay"==this.i.flavor){c=g.ke(a);for(var d=new Uint8Array(c.length),
e=0;e<c.length;e++)d[e]=c.charCodeAt(e);a=d}c=new AH(a,++this.R,(0,g.x)(this.DJ,this),(0,g.x)(this.CJ,this));g.B(this,c);LH(this,c)}};
g.h.KF=function(){this.fa()||(HH(this,"onkyadd"),this.B||(this.Nb.N("sessionready"),this.B=!0))};
g.h.NF=function(a){var b=this;this.fa()||(a.forEach(function(c,d){var e=Rz(b.i)?d:c,f=new Uint8Array(Rz(b.i)?c:d);Rz(b.i)&&OH(f);var k=PE(f);OH(f);f=PE(f);b.g[k]?b.g[k].status=e:b.g[f]?b.g[f].status=e:b.g[k]={type:"",status:e}}),HH(this,"onksch"),this.Nb.N("keystatuseschange",this))};
g.h.LF=function(a){this.fa()||GH(this,"drm.keyerror",!0,a)};
g.h.DJ=function(a){if(!this.fa())if(HH(this,"onlcsrsp"),0!=a.statusCode)GH(this,"drm.auth",!0,"t.f;c."+a.statusCode,a.errorMessage||void 0);else{UB("drm_kr_s");a.heartbeatParams&&this.Nb.N("newlicense",a.heartbeatParams);if(a.g&&(this.u=a.g,!KH(this)))if(Sz(this.i)){var b=MH(this.u);480<g.iw[b]&&this.Nb.N("hdentitled",this)}else this.Nb.N("keystatuseschange",this);a.i&&(this.g=Mb(a.i,function(c){return{type:c,status:"unknown"}}));
Tz(this.i)&&(a.message=g.ne(Au(a.message)));this.o&&(HH(this,"updtks"),this.o.update(a.message).then(function(){UB("drm_kr_f")}));
this.B&&(this.I=g.M());"fairplay"==this.i.flavor&&this.Nb.N("fairplay_next_need_key_info",this.F,a.l)}};
g.h.CJ=function(a,b,c){if(!this.fa()){var d=!1;if(3<=a.i.i||this.M&&36E4<g.M()-this.I)d=!0,b="drm.net.retryexhausted";HH(this,"onlcsrqerr"+b+c);GH(this,b,d,c);(this.M&&this.B?0:!d&&this.R==a.number)&&Nia(this,a)}};
g.h.U=function(){g.A.prototype.U.call(this)};
g.h.fb=function(){var a={requestedKeyIds:this.T,cryptoPeriodIndex:this.cryptoPeriodIndex};this.o&&(a.keyStatuses=this.g);return a};
g.h.Od=function(){var a=this.u.join();if(KH(this)){var b=[],c;for(c in this.g)"usable"!=this.g[c].status&&b.push(this.g[c].type);a+="/UKS:"+b}return a+="/"+this.cryptoPeriodIndex};QH.prototype.get=function(a){a=this.Ej(a);return-1!=a?this.values[a]:null};
QH.prototype.remove=function(a){a=this.Ej(a);-1!=a&&(this.keys.splice(a,1),this.values.splice(a,1))};
QH.prototype.set=function(a,b){var c=this.Ej(a);-1!=c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
QH.prototype.Ej=function(a){return g.Ya(this.keys,function(b){return g.rb(a,b)})};g.t(RH,uH);RH.prototype.u=function(a){var b=(0,g.D)(),c;if(!(c=this.o)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c))for(var d=g.q(this.l.values),e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}c=!1}c=!c}c?c=0:(c=a.g,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.g.push({time:b+c,info:a});g.Do(this.i,c)};g.t(UH,g.N);g.h=UH.prototype;g.h.ha=function(){return this.D};
g.h.jJ=function(a){TH(this,"onecpt");XH(this,new Uint8Array(a.initData),a.initDataType)};
g.h.iK=function(a){TH(this,"onndky");XH(this,a.initData,a.contentType)};
g.h.PJ=function(){var a=this;if(!this.fa())if(!g.O(this.o.experiments,"html5_drm_set_server_cert")||g.uz(this.o)&&!g.kr())ZH(this);else{var b=Hia(this.F);b?b.then(Zp(function(c){YB(a.O)&&a.N("ctmp","ssc",c)}),Zp(function(c){a.N("ctmp","ssce","n."+c.name+";m."+c.message)})).then(Zp(function(){return ZH(a)})):ZH(this)}};
g.h.zI=function(a){if(!this.fa()){g.L(a);var b="t.a";a instanceof DOMException&&(b+=";n."+a.name+";m."+a.message);this.N("licenseerror","drm.unavailable",!0,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
g.h.Lu=function(a){this.l.push(a);VH(this)};
g.h.kK=function(a){this.fa()||(TH(this,"onnelcswhb"),a&&!this.Y&&(this.Y=a,this.N("heartbeatparams",a)))};
g.h.lK=function(){this.fa()||(TH(this,"newlcssn"),this.l.shift(),this.H=!1,VH(this))};
g.h.nL=function(){if(Qz(this.g)&&(TH(this,"onsnrdy"),this.X--,0==this.X)){var a=this.u;a.i.msSetMediaKeys(a.l)}};
g.h.TF=function(a){this.fa()||(TH(this,"onksch"),YH(this,NH(a,this.P)))};
g.h.uJ=function(){this.fa()||this.M||!Sz(this.g)||(TH(this,"onhdet"),this.I=YJ,this.N("hdproberequired"),this.N("qualitychange"))};
g.h.U=function(){this.g.i&&this.D.setMediaKeys(null);this.D=null;this.l=[];for(var a=g.q(this.i.values),b=a.next();!b.done;b=a.next())b.value.dispose();a=this.i;a.keys=[];a.values=[];this.T&&(this.T.dispose(),this.T=null);g.N.prototype.U.call(this)};
g.h.fb=function(){for(var a={systemInfo:this.g.fb(),sessions:[]},b=g.q(this.i.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.fb());return a};
g.h.Od=function(){return 0>=this.i.values.length?"no session":this.i.values[0].Od()+(this.A?"/KR":"")};g.t(aI,g.N);aI.prototype.setPlaybackRate=function(a){this.D=a};
aI.prototype.ra=function(a){return g.O(this.g.experiments,a)};g.t(kI,g.A);kI.prototype.u=function(){if(!(this.F||0>this.l)){mI(this);var a=g.VD(this.g)-this.l,b="n";g.YC(this.i)&&(b="b");g.T(this.i,16)&&(b="s");a=0>this.o?a:this.o-this.l;var c=this.g.rb.Oc+36E5<g.M();b={badState:b,started:0<=this.o,playTime:this.B,rebufferTime:this.D,joinLatency:a,fatalError:this.i.isError(),isAd:this.g.videoData.isAd(),live:bC(this.g.videoData),drm:!!g.ZB(this.g.videoData),gapless:this.g.videoData.ie,muted:c};this.R(yx(b));this.F=!0;this.dispose()}};
kI.prototype.U=function(){this.F||this.u();g.A.prototype.U.call(this)};g.t(oI,g.A);
oI.prototype.u=function(a){if(!this.fa()&&(a=0<=a?a:g.VD(this.g),-1<["PL","B","S"].indexOf(this.l)&&(!g.Xb(this.i)||a>=this.o+30)&&(g.nI(this,a,"vps",[this.l]),this.o=a),!g.Xb(this.i))){rI(this,a);var b=a,c=this.g.u(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.ga,k=e&&!this.ma;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount","df."+d+";tf."+c.totalVideoFrames);else(0<f||k)&&g.nI(this,b,"df",[f]);this.ga=d;this.ma=e;!g.O(this.g.rb.experiments,"disable_webgl_reporting")&&0<
this.A&&(g.nI(this,a,"glf",[this.A]),this.A=0);a={event:"streamingstats"};this.g.videoData.za&&(a.fmt=gv(this.g.videoData.za),(b=this.g.videoData.Zb)&&gv(b)!=a.fmt&&(a.afmt=gv(b)));a.cpn=this.g.videoData.clientPlaybackNonce;a.ei=this.g.videoData.eventId;a.el=g.pC(this.g.videoData);a.docid=this.g.videoData.videoId;a.ns=this.g.rb.Y;a.fexp=this.g.rb.experiments.experimentIds.toString();a.cl="257652704";this.g.videoData.adFormat&&(a.adformat=this.g.videoData.adFormat);(b=bC(this.g.videoData))&&(a.live=
b);XB(this.g.videoData)&&(a.drm=1);a.seq=this.M++;if(!g.O(this.g.rb.experiments,"html5_prevent_qoe_spam_killswitch")&&(7E3==this.M&&g.L(Error("Sent over 7000 pings"),"WARNING"),7E3<=this.M))return;g.ec(a,this.g.rb.deviceParams);b=g.bh("//"+this.g.rb.ij+"/api/stats/qoe",a);a=c="";for(var l in this.i)null==this.i[l]?g.L(Error("Stats report key has invalid value: "+l),"WARNING"):(d="&"+l+"="+this.i[l].join(","),100<d.length?a+=d:c+=d);l=b+c;a=a.replace(/ /g,"%20");b=tC(this.g.videoData);c=this.g.videoData.visitorData;
d=b&&Oq();e=c&&this.g.rb.Ca;d||e?(f={},d&&(f.Authorization="Bearer "+b),e&&(f["X-Goog-Visitor-Id"]=c),g.br(l,{headers:f,withCredentials:!0,method:"POST",postBody:a})):yr(l,void 0,a);this.i={}}};
oI.prototype.ya=function(){if(this.g.videoData.cd){var a=this.g.videoData.cd;uI(this,"drm-"+a.flavor);uI(this,"eme-"+(a.i?"final":Qz(a)?"ms":"com.youtube.fairplay"==a.g?"ytfp":Tz(a)?"safarifp":"nonfinal"))}};
oI.prototype.onError=function(a,b){var c=g.VD(this.g);tI(this,c,a,b);rI(this,c);sI(this)};
oI.prototype.U=function(){g.A.prototype.U.call(this);window.clearInterval(this.X)};
var a_={},Xia=(a_[5]="N",a_[-1]="N",a_[3]="B",a_[0]="EN",a_[2]="PA",a_[1]="PL",a_);g.t(vI,g.A);vI.prototype.onError=function(a,b){if(this.g)this.g.onError(a,b)};
vI.prototype.fb=function(){return this.i?this.i.fb():{}};g.t(yI,g.N);g.t(II,g.N);g.h=II.prototype;g.h.getCurrentTime=function(){return!isNaN(this.i)&&isFinite(this.i)?this.i:this.g&&FI(this)?this.g.getCurrentTime()+this.o:this.B||0};
g.h.isAtLiveHead=function(a){if(!this.l)return!1;void 0==a&&(a=this.getCurrentTime());return CI(this.l,a)};
g.h.seekTo=function(a,b,c,d,e,f){b=void 0===b?!0:b;c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?0:f;var k=a,l=!isFinite(k)||k>=this.qc();this.l&&(l=CI(this.l,k));(l=l||!g.lC(this.O))||this.N("ctmp","seeknotallowed",k+";"+this.qc());if(!l)return this.A&&(this.A=null,PI(this)),ng(this.getCurrentTime());if(a==this.i&&this.I)return this.D;this.I&&JI(this);this.D||(this.D=new SG);a&&!isFinite(a)&&LI(this,!1);k=a;OI(this)&&!(this.g&&0<this.g.je()&&0<DC(this.g))||!isFinite(k)&&NB(this.O)||
(a=QI(this,a,c));a&&!isFinite(a)&&LI(this,!1);this.ra("html5_seek_resumetime_killswitch")||(this.B=a);this.T=e;this.ea=f;this.i=a;this.l&&(c=this.l,e=a,DI(c,e,!1),EI(c,e));this.N("seekto",a,b);if(this.D||this.ra("html5_seek_removed_el_killswitch"))b?(this.I=!0,GI(this)):d&&this.P.start(d);return this.D};
g.h.qc=function(a){if(!this.O.sa)return this.O.qc();if(this.O&&this.O.va&&this.O.va.g){if(!a&&this.l)return BI(this.l);a=this.O.qc();this.ma.i&&this.g&&(a=Math.max(a,HC(this.g)));return a+this.o}this.g?lr()?(a=this.g.tn().getTime(),a=isNaN(a)?0:Math.max(((0,g.D)()-a)/1E3-30,0)):a=DC(this.g)+this.o||this.o:a=this.o;return a};
g.h.Ab=function(){return this.O?this.O.Ab()+this.o:this.o};
g.h.U=function(){MI(this,null);g.N.prototype.U.call(this)};
g.h.KM=function(a,b){b=void 0===b?!1:b;this.seekTo(a+this.Ib(),!0,b)};
g.h.VM=function(a){this.o=a};
g.h.Ib=function(){return this.o};
g.h.tG=function(a){this.F&&(this.F.g=a.audio.index)};
g.h.ra=function(a){return this.Z&&g.O(this.Z.experiments,a)};g.t(WI,g.N);g.h=WI.prototype;g.h.getVisibilityState=function(a,b,c,d,e){return a?4:SI()?3:b?2:c?1:d?5:e?7:0};
g.h.setMinimized=function(a){this.g!=a&&(this.g=a,this.yi())};
g.h.setInline=function(a){this.u!=a&&(this.u=a,this.yi())};
g.h.isFullscreen=function(){return 0!=this.l};
g.h.isInline=function(){return this.u};
g.h.isBackground=function(){return SI()};
g.h.yi=function(){this.N("visibilitychange");var a=this.getVisibilityState(this.i,this.isFullscreen(),this.g,this.isInline(),this.o);a!=this.B&&this.N("visibilitystatechange");this.B=a};
g.h.U=function(){VI(this.A);g.N.prototype.U.call(this)};var fJ={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},gJ={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},hJ=/^(\d*)_((\d*)_?(\d*))$/;YI.prototype.isFinished=function(){return this.i};
YI.prototype.start=function(){this.g=!0};
YI.prototype.reset=function(){this.i=this.g=!1};g.t(bJ,g.N);g.h=bJ.prototype;g.h.U=function(){window.clearInterval(this.jb);VI(this.Ia);this.I.unsubscribe("visibilitystatechange",this.Ia);dJ(this);eJ(this);g.Aq(this.ga);SJ(this);this.A&&(this.A.dispose(),delete this.A);delete this.F;g.qf(this.O);this.P=null;this.Ea=!1;g.N.prototype.U.call(this)};
g.h.getVideoData=function(){return this.O};
g.h.Kp=function(){if(this.O.Eb())ija(this);else if(this.O.Mg||this.O.ji){if(!this.oa||!CJ(this))if(this.O.Mg)aha(this.O);else{var a=this.u;a.g&&(a=a.g,uI(a,"protected"),a.g.videoData.cd?a.ya():a.g.videoData.subscribe("dataloaded",a.ya,a));a=this.O;a.mg||a.ia&&Yw(a.ia);var b={};a.ia&&(b=aA(GB(a),a.Oa.o,a.ia));var c=a.Oa.experiments,d=a.NA;var e=a.ll?(a.ra("html5_enable_tvos_widevine")||EB(a,"html5_enable_tvos_widevine_dogfood"))&&lr()?MB(a):EB(a,"html5_enable_androidtv_cobalt_widevine")&&hr("cobalt")&&
hr("android")?!0:!1:!1;b=new dA(b,c,d,e);g.B(a,b);a.ji=!1;a.Td=!0;a=(0,g.x)(a.CE,a);b.A=a;b.l=[];Uz(b.u)?eA(b):Aga(b)}}else if(!this.O.Td&&this.Rb){a=this.o;c=this.O;var f=this.Ya.getPlayerSize(),k=this.hf();this.I.isFullscreen();b=window.location.search;if(38==c.oe&&"books"==a.playerStyle)a=c.videoId.indexOf(":"),a=g.bh("//play.google.com/books/volumes/"+c.videoId.slice(0,a)+"/content/media",{aid:c.videoId.slice(a+1),sig:c.cI});else if(30==c.oe&&"docs"==a.playerStyle)a=g.bh("https://docs.google.com/get_video_info",
{docid:c.videoId,authuser:c.lc,authkey:c.authKey,eurl:a.ya});else if(33==c.oe&&"google-live"==a.playerStyle)a=g.bh("//google-liveplayer.appspot.com/get_video_info",{key:c.videoId});else{d={html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,eurl:a.ya,ps:a.playerStyle,el:g.pC(c),hl:a.Yb,list:c.playlistId,agcid:c.FC,aqi:c.adQueryId,sts:18088,lact:Cs()};g.Ra(d,a.deviceParams);a.Ad&&(d.ecver=a.Ad);a.xa&&(d.forced_experiments=a.xa);c.gf?(d.vvt=c.gf,c.mdxEnvironment&&(d.mdx_environment=c.mdxEnvironment)):
tC(c)&&(d.access_token=tC(c));c.adFormat&&(d.adformat=c.adFormat);0<=c.slotPosition&&(d.slot_pos=c.slotPosition);c.breakType&&(d.break_type=c.breakType);null!=c.Iu&&(d.ad_id=c.Iu);null!=c.Ku&&(d.ad_sys=c.Ku);null!=c.Nv&&(d.encoded_ad_playback_context=c.Nv);c.qt&&(d.tpra="1");a.dg&&(d.cc_lang_pref=a.dg);a.eg&&2!=a.eg&&(d.cc_load_policy=a.eg);a.mute&&(d.mute=a.mute);c.Zf&&2!=a.Zf&&(d.iv_load_policy=c.Zf);c.Gf&&(d.itct=c.Gf);g.sC(c)&&(d.autoplay="1");c.fi&&(d.autonav="1");c.Zq&&(d.noiba="1");c.isMdxPlayback&&
(d.mdx="1",d.ytr=c.Ce);c.mdxControlMode&&(d.mdx_control_mode=c.mdxControlMode);c.gm&&(d.ytrcc=c.gm);c.jr&&(d.utpsa="1");c.ax&&(d.is_fling="1");c.Yq&&(d.mute="1");c.vnd&&(d.vnd=c.vnd);c.Gj&&(d.force_ad_params=3===c.Gj.split("|").length?c.Gj:"||"+c.Gj);f.width&&(d.width=f.width);f.height&&(d.height=f.height);c.tg&&(d.splay="1");c.bj&&(d.ypc_preview="1");qC(c)&&(d.content_v=qC(c));c.bk&&(d.livemonitor=1);a.lc&&(d.authuser=a.lc);a.pageId&&(d.pageid=a.pageId);a.Ra&&(d.ei=a.Ra);a.i&&(d.iframe="1");c.contentCheckOk&&
(d.cco="1");c.racyCheckOk&&(d.rco="1");a.vb&&c.qr&&(d.live_start_walltime=c.qr);a.vb&&c.hk&&(d.live_manifest_duration=c.hk);a.vb&&c.playerParams&&(d.player_params=c.playerParams);a.vb&&c.cycToken&&(d.cyc=c.cycToken);a.vb&&c.dB&&(d.tkn=c.dB);0!=k&&(d.vis=k);a.enableSafetyMode&&(d.enable_safety_mode="1");c.Tm&&(d.kpt=c.Tm);c.Um&&(d.kids_age_up_mode=c.Um);c.Io&&(d.upg_content_filter_mode="1");a.widgetReferrer&&(d.widget_referrer=a.widgetReferrer.substring(0,128));(f=a.Dl)&&(d.embedding_app=f);(f=g.VB(c))&&
(d.uloc=f);c.Zj&&(d.internalipoverride=c.Zj);a.vb&&c.pg&&(d.wpid=c.pg);a.embedConfig&&(d.embed_config=a.embedConfig);a.Rm&&(d.co_rel="1");0<a.Xb.length&&(d.ancestor_origins=Array.from(a.Xb).join(","));void 0!=a.homeGroupInfo?d.home_group_info=a.homeGroupInfo:void 0!=c.homeGroupInfo&&(d.home_group_info=c.homeGroupInfo);void 0!=a.livingRoomAppMode&&(d.living_room_app_mode=a.livingRoomAppMode);a.enablePrivacyFilter&&(d.enable_privacy_filter="1");c.isLivingRoomDeeplink&&(d.is_living_room_deeplink="1");
for(e in d)!Lna.has(e)&&d[e]&&512<d[e].length&&(g.L(Error("GVI param too long: "+e)),d[e]="");c=a.B;g.vz(a)&&g.O(a.experiments,"hardwire_web_unplugged_get_video_info_to_tv")&&(c=xv(c.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.B);c=g.bh(c+"get_video_info",d);!g.O(a.experiments,"web_player_gvi_sticky_params_killswitch")&&b&&(c=Zq(c,b));a=c}b=2;this.O.isAd()&&(b=0);c=this.O;d=this.o.Ca;e=this.o.Kb;c.fa()||(c.Aw=a,c.Qs=b,c.Ji=d,c.bx=e,c.oA=!c.ra("disable_gvi_cors"),c.uq=g.P(c.Oa.experiments,"html5_get_video_info_timeout_ms")||
0,c.Bw=c.ra("html5_get_video_info_promiseajax"),c.Td=!0,c.zA())}};
g.h.vK=function(a){var b=this;this.fa()||a.videoData.fa()||(this.F=a,cja(this.A,this.F),!this.O.sa||0<this.O.sg&&!NB(this.O)||(this.seekTo(fK(this),!0),KJ(this,"playbackData")),this.O.va.g&&(this.l?g.$p(Error("Duplicated Loader")):dK(this)),$J(this),this.ra("html5_nonblocking_media_capabilities")&&Via(a).then(function(){aK(b);jI(b.R,b.F)}))};
g.h.wK=function(a){this.fa()||(a instanceof g.xx?this.I.isBackground()?(vK(this,"vp_none_avail"),this.ma=null,this.aa.reset()):(this.aa.i=!0,g.aJ(this,a.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",yx(a.details))):g.L(a))};
g.h.sendAbandonmentPing=function(){g.T(this.getPlayerState(),128)||(this.N("internalAbandon"),this.ra("web_player_atr_on_abandon_killswitch")||this.Us(),dJ(this),g.Aq(this.ga))};
g.h.getPlayerState=function(){return this.i};
g.h.getPlayerType=function(){return this.Ra};
g.h.getPreferredQuality=function(){if(this.F){var a=this.R;var b=this.F,c=py(b.videoData.Ko,b.videoData.Uu);"auto"!=uy()||(c=py(c,iI(a,b)));a=qy(c)}else a="auto";return a};
g.h.isGapless=function(){return!!this.g&&this.g.isView()};
g.h.playVideo=function(){var a=this,b,c,d;return xa(function(e){if(1==e.g){if(g.T(a.i,128))return e["return"]();if(a.Qc)return a.Qc=!1,mK(a),e["return"]();var f=a.u;f.l&&lI(f.l);IJ(a);g.T(a.i,64)&&yJ(a,SC(a.i,8));a.Y.isFinished()&&a.g?a.F||!a.ma?(e.g=2,e=void 0):e=ua(e,a.ma,2):e=e["return"]();return e}if(!a.O.va)return b=a.O.sa&&!g.fy(a.o.o)?"html5.unsupportedlive":XB(a.O)?"fmt.unplayable":"fmt.noneavailable",g.$p(Error("selectableFormats")),g.aJ(a,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),
e["return"]();if(a.I.i&&a.O.va.g)return FJ(a),e["return"]();if(a.O.sa){c=a.getCurrentTime()<a.Ab()-15;d=g.lC(a.O)&&g.T(a.i,4);if(c||d)d?(a.seekTo(Infinity,!0),KJ(a,"unpauseLiveOnly")):(a.seekTo(a.Ab(),!0),KJ(a,"outOfWindow"));!a.isAtLiveHead(void 0,!0)&&NI(a.A)&&(a.seekTo(Infinity,!0),KJ(a,"peggedToLive"));if(f=g.T(a.i,256)&&a.O.ce)f=a.A,f=f.I&&!isFinite(f.i);if(f)return yJ(a,UC(a.i,8,4)),e["return"]()}if(GJ(a))return a.o.sm?g.eq((0,g.x)(a.Bs,a),0):a.Bs(),e["return"]();a.Bs();e.g=0})};
g.h.GM=function(){VJ(this);var a=this.O.ia&&Yw(this.O.ia),b=this.g&&this.g.isView();a||b?(this.l&&(a=this.l,a.g.tb=!1,a.l&&nH(a)),pK(this)):(yJ(this,SC(this.i,16)),GJ(this),g.XC(this.i)&&this.playVideo())};
g.h.getUserPlaybackQualityPreference=function(){return this.O.va&&!this.O.va.g?qy(this.O.Ko):uy()};
g.h.getAvailableAudioTracks=function(){return this.O.getAvailableAudioTracks()};
g.h.getAudioTrack=function(){return this.O.getAudioTrack()};
g.h.eF=function(){var a=this.u;g.wI(a);a.l&&(a=a.l,a.I&&0>a.l&&3!=a.g.getVisibilityState()&&lI(a));g.P(this.o.experiments,"html5_background_quality_cap")&&this.l&&aK(this);this.o.Gl&&!this.O.backgroundable&&this.g&&!this.I.i&&(this.I.isBackground()&&this.g.qn()?(this.Ma("bgmobile","suspend"),g.PJ(this,!0)):this.I.isBackground()||GJ(this)&&this.Ma("bgmobile","resume"))};
g.h.jK=function(a,b){this.B?WH(this.B,new vH(b,a)):this.ab.push({type:a,info:b})};
g.h.lz=function(){g.hy&&this.Z&&this.Z.g&&this.B&&(Sia(this.B,this.Z.g),this.Z=null)};
g.h.RL=function(a){this.O.vB=my("auto",a,!1,"u");aK(this)};
g.h.cF=function(a){MJ(this,a.reason,a.video.info,a.audio.info)};
g.h.JJ=function(a){LJ(this,a.reason,a.audio.info)};
g.h.lk=function(a){var b=this;mja(this,a);if("html5.invalidstate"!=a.errorCode&&"fmt.unplayable"!=a.errorCode&&"fmt.unparseable"!=a.errorCode||!jK(this,a.errorCode,a.details)){var c=/^pp/.test(this.O.clientPlaybackNonce);if(lja(a)){a.details.sts="18088";if(lK(this)){g.T(this.i,4)||g.T(this.i,512)?(this.Qc=!0,eJ(this)):(a.g&&(a.details.e=a.errorCode,a.errorCode="qoe.restart",a.g=!1),this.u.onError(a.errorCode,yx(a.details)),mK(this));return}a:if(!(6048E5>g.M()-this.o.Oc)){try{window.location.reload(!0);
break a}catch(f){}this.ra("tvhtml5_retire_old_players")&&g.uz(this.o)&&oK(this)}}if(nK(a)&&this.O.va&&this.O.va.i)this.u.onError(a.errorCode,yx(a.details)),this.Ma("highrepfallback","1",!0),!this.ra("html5_hr_logging_killswitch")&&/^hr/.test(this.O.clientPlaybackNonce)&&btoa&&this.Ma("afmts",btoa(this.O.adaptiveFormats),!0),wha(this.O),cJ(this),eJ(this),iK(this),this.playVideo();else if(a.g){c=this.l?this.l.B.o:null;if(nK(a)&&c&&c.isLocked())var d="FORMAT_UNAVAILABLE";else if(!this.ra("web_player_gvi_captcha_redirect_killswitch")&&
!this.o.Kb&&"auth"==a.errorCode&&429==a.details.rc){d="TOO_MANY_REQUESTS";var e="6"}g.aJ(this,a.errorCode,d,yx(a.details),e)}else this.u.onError(a.errorCode,yx(a.details)),c&&"manifest.net.connect"==a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.O.clientPlaybackNonce+"&t="+g.M(),(new CG(a,"manifest",function(f){b.Wf=!0;b.Ma("pathprobe",f)},function(f){return b.u.onError(f.errorCode,yx(f.details))})).send())}};
g.h.pauseVideo=function(a){a=void 0===a?!1:a;if((g.T(this.i,64)||g.T(this.i,2))&&!a)if(g.T(this.i,8))yJ(this,UC(this.i,4,8));else return;if(this.g||g.O(this.o.experiments,"html5_pause_video_fix"))g.T(this.i,128)||(a?yJ(this,SC(this.i,256)):yJ(this,UC(this.i,4,8))),this.g&&this.g.pause(),g.lC(this.O)&&this.l&&WJ(this,!1)};
g.h.stopVideo=function(){this.pauseVideo();this.l&&(WJ(this,!1),XG(this.l))};
g.h.seekTo=function(a,b,c,d,e,f){a=void 0===a?0:a;b=void 0===b?!1:b;d=void 0===d?!1:d;e=void 0===e?!1:e;f=void 0===f?0:f;g.T(this.i,2)&&GJ(this);this.A.seekTo(a,b,d,c,e,f)};
g.h.getCurrentTime=function(){return this.A.getCurrentTime()};
g.h.getPlaylistSequenceForTime=function(a){return this.O.getPlaylistSequenceForTime(a-this.Ib())};
g.h.getDuration=function(){return this.O.lengthSeconds?this.O.lengthSeconds+this.Ib():fK(this)?fK(this):0};
g.h.yD=function(){var a=new dga;if(this.l){var b=this.o.schedule;a.l=b.F;a.u=b.H;a.bandwidthEstimate=Ly(b);a.g="d."+Iy(b).toFixed(2)+";st."+(1E9*(b.o.g()||0)).toFixed(2)+";bw."+b.g.g().toFixed(0)+";abw."+b.A.g().toFixed(0)+";v50."+Fy(b.i,.5).toFixed(2)+";v92."+Fy(b.i,.92).toFixed(2)+";v96."+Fy(b.i,.96).toFixed(2)+";v98."+Fy(b.i,.98).toFixed(2);b=this.l;if(b.l&&!Ox(b.l)&&(a.i=dG(b.i,b.A),a.o=dG(b.o,b.A),b.g.oa)){var c=cG(b.i),d=cG(b.o),e=Ax(b.l.i.oc(),"_"),f=Ax(b.l.g.oc(),"_");a.g=(a.g||"")+(";lvq."+
c+";laq."+d+";lvb."+e+";lab."+f)}a.bandwidthEstimate=pG(b.F)}else this.g&&(a.i=FC(this.g));a.A=this.pw();return a};
g.h.fb=function(a){var b={};if(void 0===a?0:a){g.Ra(b,this.u.fb());this.g&&(g.Ra(b,this.g.fb()),g.Ra(b,this.tq()));this.l&&g.Ra(b,this.l.fb());this.B&&(b.drm=this.B.fb());b.state=this.i.g.toString(16);g.T(this.i,128)&&(b.debug_error=this.i.i);JJ(this)&&(b.prerolls=this.M.join(","));this.O.Ff&&(b.ismb=this.O.Ff);"UNKNOWN"!=this.O.latencyClass&&(b.latency_class=this.O.latencyClass);this.O.isLowLatencyLiveStream&&(b.lowlatency="1");this.O.sa&&(this.O.ia&&lx(this.O.ia)&&(b.segduration=lx(this.O.ia)),
a=this.A,b.lat=a.F?aD(a.F.o):0,b.liveutcstart=this.O.liveUtcStartSeconds);b.relative_loudness=this.O.Pk.toFixed(3);if(a=g.iD(this))b.optimal_format=a.ua().qualityLabel;b.user_qual=uy()}b.debug_videoId=this.O.videoId;return b};
g.h.addCueRange=function(a){var b=this.H;a=[a];b.i();MG(b.g,a);b.o=NaN;b.i()};
g.h.removeCueRange=function(a){this.H.removeCueRange(a)};
g.h.TL=function(){tJ(this)};
g.h.SL=function(){g.aJ(this,"auth",unescape(this.O.errorReason),this.O.errorDetail||"sec."+this.O.errorCode,this.O.errorDetail,this.O.Ph||void 0)};
g.h.togglePictureInPicture=function(){this.g&&this.g.togglePictureInPicture()};
g.h.dF=function(a){var b=a.target.Vc();if(this.g&&this.g.Vc()&&this.g.Vc()==b){BK(this,a.type);switch(a.type){case "error":var c=JC(this.g)||"";if("capability.changed"==c){FJ(this);return}if(0<this.g.We()&&jK(this,c,{msg:this.g.nk()}))return;if(this.I.isBackground()&&4==this.g.We()){g.PJ(this);vK(this,"unplayable");return}break;case "durationchange":c=this.g.getDuration();(!this.D||isFinite(c)&&0<c)&&1!=c&&this.O.lengthSeconds!=c&&(this.O.lengthSeconds=c,tJ(this));break;case "ratechange":this.l&&
this.l.setPlaybackRate(this.g.getPlaybackRate());c=this.H;c.started=!0;c.i();var d=this.u;c=this.getPlaybackRate();if(d.g){d=d.g;var e=g.VD(d.g);c&&c!=d.ea&&(g.nI(d,e,"rate",[c]),d.ea=c);d.u(e)}break;case "loadedmetadata":CK(this),this.N("onLoadedMetadata");case "loadstart":window.clearInterval(this.jb);this.Jp()||(this.jb=fq((0,g.x)(this.Jp,this),100));break;case "progress":case "suspend":qK(this);this.N("onLoadProgress",this,this.g?g.lC(this.O)?1:mC(this.O)?this.isAtLiveHead()||NI(this.A)?1:fja(this.A):
IC(this.g):0);break;case "playing":UB("plev",void 0,"");rB("plev");this.kd&&(this.kd=!1,this.isAtLiveHead()||(this.seekTo(Infinity,!0),KJ(this,"onPlaying")));break;case "timeupdate":c=this.g&&!this.g.getCurrentTime();d=this.g&&0==this.g.je();if(c&&(!this.xa||d))return;this.xa=this.xa||!!this.g.getCurrentTime();this.Jp();qK(this);if(!this.g||this.g.Vc()!=b)return;this.N("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.g.Vh().length&&0==this.g.ue().length&&0<this.g.getCurrentTime()&&
5>this.g.getCurrentTime()&&this.l)return;break;case "resize":CK(this);this.O.za&&"auto"==this.O.za.ua().quality&&this.N("internalvideoformatchange",this.O,!1);break;case "pause":if(this.ld&&g.T(this.i,8)&&!g.T(this.i,1024)&&0==this.getCurrentTime()&&g.Hz){vK(this,"safari_autoplay_disabled");return}}if(this.g&&this.g.Vc()==b){this.N("videoelementevent",a);b=this.i;if(!g.T(b,128)){c=this.wa;e=this.g;var f=this.o.experiments;d=b.g;e=e?e:a.target;var k=e.getCurrentTime();if(!g.T(b,64)||"ended"!=a.type&&
"pause"!=a.type){var l=e.Se()||1<k&&1.1>Math.abs(k-e.getDuration());k="ended"==a.type||"waiting"==a.type||"timeupdate"==a.type&&!g.T(b,4)&&!NC(c,k);if("pause"==a.type&&e.Se()||l&&k)0<e.zm()&&e.Vc()&&(d=14);else switch(a.type){case "error":JC(e)&&(d|=128);break;case "pause":g.T(b,256)?(d^=256)||(d=64):g.T(b,32)||g.T(b,2)||g.T(b,4)||(d=4,g.T(b,1)&&g.T(b,8)&&(d|=1));break;case "playing":d=(d|8)&-3077;f&&g.O(f,"html5_playing_clears_unstarted_killswitch")||(d&=-65);NC(c,e.getCurrentTime())&&(d&=-2);g.T(b,
1)&&QC(c,e)&&(d|=1);break;case "seeking":d|=16;g.T(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.T(b,2)||(d|=1);QC(c,e);break;case "timeupdate":f=g.T(b,16),l=g.T(b,4),(g.T(b,8)||f)&&!l&&NC(c,e.getCurrentTime())&&(d=8),QC(c,e)&&(d|=1)}}c=d;d=null;if(c&128)if(l=a.target,d=JC(l)){e="GENERIC_WITHOUT_LINK";f="mediaElem.1";if(l=l.nk())f+=";msg."+l,/AUDIO_RENDERER/.test(l)&&(e="HTML5_AUDIO_RENDERER_ERROR");.001>Math.random()&&(f+=";gpu."+(0,g.DJ)());d={errorCode:d,errorMessage:g.OJ[e]||
"",bq:e,jA:f}}else d=null;b=RC(b,c,d)}!g.T(this.i,1)&&g.T(b,1)&&AK(this,"evt_"+a.type);yJ(this,b)}}};
g.h.oI=function(a){a="available"==a.g.availability;a!=this.Wb&&(this.Wb=a,this.N("airplayavailabilitychange"))};
g.h.pI=function(){var a=this,b=g.M();if(isNaN(this.Xb)||!(2E3>b-this.Xb)){var c=this.g.ri();this.Xb=b;c!=this.I.i&&(gja(this.I,c),FJ(this).then(function(){return GJ(a)}));
this.N("airplayactivechange")}};
g.h.Jp=function(){var a=this.g;a&&this.xa&&!this.O.ce&&!qB("vfp","")&&2<=a.je()&&!a.Se()&&0<Dx(a.ue())&&UB("vfp",void 0,"");return(a=this.g)&&!this.O.ce&&0<a.getDuration()&&(!qB("pbp","")&&a.yg()&&2<=a.je()&&0<Dx(a.ue())&&UB("pbp",void 0,""),a=a.getCurrentTime(),NC(this.wa,a))?(tK(this),!0):!1};
g.h.VD=function(){if(this.g&&!g.T(this.i,128)){this.O.Hf&&g.P(this.o.experiments,"html5_log_rebuffer_events")&&BK(this,"pfx");var a=this.getCurrentTime(),b=FC(this.g),c=g.T(this.i,8),d=NC(this.wa,a),e=!1;if(this.ra("html5_progress_fix_fix")||c&&!d)e=OC(this.wa,a,g.M(),b);c&&d?yJ(this,TC(this.i,1)):c&&e?(c=this.getDuration(),!this.O.sa&&c&&1.1>Math.abs(c-a)?this.g.nn()?this.seekTo(0,!0):ZI(this):this.ra("html5_reseek_in_pfx")&&1.1<b&&8==this.i.g?(this.Ma("reseek","pfx.1"),this.seekTo(a+.1,!0)):(this.ra("html5_reseek_in_pfx_cfl")&&
1.1<b&&8==this.i.g&&this.Ma("pfx","cfl.1"),g.YC(this.i)||AK(this,"progress_fix"),yJ(this,SC(this.i,1)))):g.T(this.i,4)&&g.YC(this.i)&&5<FC(this.g)&&yJ(this,TC(this.i,1));qK(this)}};
g.h.rD=function(){return this.l?pG(this.l.F):Ly(this.o.schedule)};
g.h.vD=function(){return this.o.schedule.F};
g.h.pw=function(){return this.isAtLiveHead()&&g.WC(this.i)?this.tw():NaN};
g.h.tw=function(){if(!this.O.sa||!this.O.ia||!this.l)return NaN;var a=NB(this.O)?this.l.wa.g()||0:this.O.ia.F;return(0,g.D)()/1E3-rK(this)-a};
g.h.LD=function(){this.O.sa||this.N("connectionissue")};
g.h.Bs=function(){var a=this;if(this.ya=this.g.playVideo()){var b=this.ya;b.then(void 0,function(c){if(!(g.T(a.i,4)||g.T(a.i,256)||a.ya!=b||c&&"AbortError"==c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);yJ(a,SC(a.i,2048));vK(a,d);a.ld=!0}})}};
g.h.zJ=function(a,b,c,d){d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"==a&&this.B&&1<this.B.i.keys.length&&96>this.zd)a="drm.sessionlimitexhausted",b=!1;else if(this.ra("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"==a&&2>this.Ad&&(this.Ad++,cJ(this),1<this.O.Di.length&&(this.O.cd=this.O.Di[1]),jK(this,a,{detail:c})))return;if(b)g.aJ(this,a,d,c);else this.u.onError(a,c);"drm.sessionlimitexhausted"==a&&(this.Ma("retrydrm","s"),this.zd++,zK(this))};
g.h.BJ=function(){var a=this,b=g.P(this.o.experiments,"html5_license_constraint_delay"),c=vr();b&&c?(b=new g.J(function(){$J(a);tJ(a)},b),g.B(this,b),b.start()):($J(this),tJ(this))};
g.h.AJ=function(){var a=this;g.hy&&(this.Z=Vfa(this.O.ia))&&(this.Z.g?g.dg(function(){a.lz()}):Cia(this.l,this.Z))};
g.h.aF=function(a){this.N("heartbeatparams",a)};
g.h.bF=function(a){this.Ma("keystatuses",Oia(a));var b="auto";this.O.za&&(b=this.O.za.ua().quality);a:{b=Qia(void 0===b?"auto":b);for(d in a.g)if("output-restricted"==a.g[d].status){var c=a.g[d].type;if(""==b||"AUDIO"==c||b==c){var d=!0;break a}}d=!1}!d||PH(a,"AUDIO")&&PH(a,"SD")||(this.jd?this.N("drmoutputrestricted"):(this.jd=!0,this.Ma("retrydrm","o"),ZJ(this),zK(this)))};
g.h.HJ=function(){if(!this.O.ce&&this.g&&!this.I.isBackground()){var a="0";0<this.g.je()&&5<=FC(this.g)&&this.O.va&&this.O.va.g&&(yJ(this,SC(this.i,1)),AK(this,"load_soft_timeout"),this.N("playbackstalledatstart"),a="1");uK(this);if(this.ra("html5_new_video_qoe_restart_info_killswitch"))a={restartmsg:a},JJ(this)&&(a.prerolls=this.M.join(",")),this.l&&g.Ra(a,this.l.fb()),this.g&&g.Ra(a,this.g.fb());else{var b=this.O.va;a={restartmsg:a,mfmt:this.O.Im()?"0":"1",mdrm:b&&b.videoInfos&&b.videoInfos.length&&
b.videoInfos[0].l&&!this.B?"1":"0",mfmtinfo:this.O.za?"0":"1",prerolls:JJ(this)?this.M.join(","):"0"};b=[this.l,this.g].filter(function(d){return!!d});
b=g.q(b);for(var c=b.next();!c.done;c=b.next())g.Ra(a,c.value.fb())}this.u.onError("qoe.start15s",yx(a));this.N("loadsofttimeout")}};
g.h.Us=function(){if(!this.Ea){var a=new vC(this.O,this.ra("web_player_inline_botguard"));if("c1a"in a.g&&!wC(a))g.Do(this.Mb);else{if(a.O&&a.O.Jh){var b=[a.O.Jh];for(d in a.i)if(a.g[d]&&a.i[d]){var c=a.i[d](a.g);c&&b.push(c)}a=b.join("&")}else a=null;if(a){b=this.u;if(b.i&&(b=b.i,!b.I)){var d=eE(b,"atr");d.D=a;d.send();b.I=!0}this.Ea=!0}}}};
g.h.Ab=function(){return this.A.Ab()};
g.h.Ib=function(){return this.A?this.A.Ib():0};
g.h.setPlaybackRate=function(a){var b=this.O.va&&this.O.va.videoInfos&&32<this.O.va.videoInfos[0].ua().fps&&g.uz(this.o);this.Qa!=a&&b&&(this.R.setPlaybackRate(a),ZJ(this));this.Qa=a;this.g&&this.g.setPlaybackRate(a)};
g.h.getPlaybackRate=function(){return this.Qa};
g.h.getPlaybackQuality=function(){var a="unknown";if(this.O.za&&(a=this.O.za.ua().quality,"auto"==a&&this.g)){var b=AJ(this);b&&0<b.videoHeight&&(a=hw(b.videoWidth,b.videoHeight))}return a};
g.h.sendVideoStatsEngageEvent=function(a,b){var c=this.u;c.i?(c=eE(c.i,"engage"),c.u=a,c.send(b)):b&&b()};
g.h.isAtLiveHead=function(a,b){return this.O.sa&&(this.Sb||(void 0===b?0:b))?this.A.isAtLiveHead(a):!1};
g.h.tq=function(){return this.g?this.g.un():{}};
g.h.setLoop=function(a){this.Oc=a;this.g&&this.g.setLoop(a)};
g.h.OE=function(a){this.ra("html5_unrewrite_timestamps")&&this.Ma("timestamp",a.toString())};
g.h.Ma=function(a,b,c){var d=this.u;d.g&&pI(d.g,a,b,void 0===c?!1:c)};
g.h.ra=function(a){return g.O(this.o.experiments,a)};g.t(g.DK,lE);g.h=g.DK.prototype;g.h.getPlayerType=function(){return this.playerType};
g.h.Re=function(){var a=g.EK(this).H;return!!a&&a.Re()};
g.h.getRootNode=function(){return g.JK(this).element};
g.h.getPlaylist=function(){return this.app.getPlaylist()};
g.h.getVideoData=function(a){return(a=g.U(this.app,a||this.playerType))&&a.getVideoData()};
g.h.de=function(a){return this.app.de(a||this.playerType)};
g.h.isWidescreen=function(){return this.app.isWidescreen()};
g.h.playVideo=function(a){3==this.getPresentingPlayerType()?g.KK(this.app.o).bf("control_play"):this.app.playVideo(a)};
g.h.stopVideo=function(a){g.U(this.app,a).stopVideo()};
g.h.addEventListener=function(a,b){this.app.X.subscribe(a,b)};
g.h.removeEventListener=function(a,b){this.app.X.unsubscribe(a,b)};
g.h.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.h.getDebugText=function(a){return this.app.getDebugText(a)};
g.h.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2==e;if(d&&f||3==e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var k;a||d.sa||(k=Math.floor(this.getCurrentTime(e)));return this.app.g.getVideoUrl(d.videoId,f?void 0:this.getPlaylistId()||void 0,k,b,c)};
g.h.Bd=function(){var a=g.EK(this).l;return!!a&&a.Bd()};
g.h.Ie=function(){var a=g.EK(this).l;return!!a&&a.Ie()};
g.h.setCardsVisible=function(a,b,c){var d=g.EK(this).l;d&&d.setCardsVisible(a,b,c)};
g.h.Ki=ba(14);g.h.dk=function(){var a=g.EK(this).I;return!!a&&a.dk()};
g.h.fc=function(){if(g.X(this).R)return!1;var a=g.U(this.app,1);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.lC(b)||2==this.getPresentingPlayerType()&&!wM(this.app)||JJ(a)&&3!=this.getPresentingPlayerType()?!1:!0};
g.h.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c||this.playerType,b)};
g.h.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.h.setVolume=function(a){a=g.pd(a,0,100);DD(this.app,{volume:a,muted:this.isMuted()},!0)};
g.h.mute=function(){DD(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.h.unMute=function(){DD(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.h.getBandwidthEstimate=function(){return Ly(g.X(this).schedule)};
g.h.yb=function(){return g.U(this.app)};
g.h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
g.h.clearQueue=function(){this.app.clearQueue()};
g.h.ra=function(a){return g.O(g.X(this).experiments,a)};jL.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return lL(this,a,b);var d=1===this.i;d&&UB("a_bid_s",void 0,"");var e=qja();if(null!==e)return d&&UB("a_bid_f",void 0,""),lL(this,a,b,e);e=rja();d&&ug(e,function(){UB("a_bid_f",void 0,"")});
return e.then(function(f){return lL(c,a,b,f)})};var Nna={oQ:"replaceUrlMacros",yP:"isExternalShelfAllowedFor"};g.Sa(g.mL,g.N);g.h=g.mL.prototype;g.h.init=function(){};
g.h.load=function(){this.loaded=!0};
g.h.unload=function(){this.loaded=!1};
g.h.zc=function(){};
g.h.Gb=function(){return!0};
g.h.U=function(){this.loaded&&this.unload();g.mL.bb.U.call(this)};
g.h.fb=function(){return{}};
g.h.getOptions=function(){return[]};g.t(oL,g.qE);g.t(vL,g.A);vL.prototype.U=function(){this.g={};g.A.prototype.U.call(this)};
vL.prototype.vf=function(a,b,c){var d=this;c=void 0===c?{}:c;a.forEach(function(e){return d.Ha(e,b,c)})};
vL.prototype.Ha=function(a,b,c){var d=this;c=void 0===c?{}:c;a.loggingUrls&&xL(this,"loggingUrls",a,b,c);Object.keys(a).filter(function(e){return"loggingUrls"!==e}).forEach(function(e){return xL(d,e,a,b,c)})};yL.prototype.g=function(){return"adLifecycleCommand"};
yL.prototype.i=function(a){var b=this;switch(a.action){case "START_LINEAR_AD":g.dg(function(){var c=b.l,d=a.playAdIndex||0;c.i&&c.i.Ze()&&c.i.hy(d)});
break;case "END_LINEAR_AD":g.dg(function(){var c=b.l;c.i&&c.i.Ze()&&c.i.Nr()});
break;case "END_LINEAR_AD_PLACEMENT":g.dg(function(){var c=b.l;c.i&&c.i.Ze()&&c.i.yk()});
break;case "FILL_ABOVE_FEED_SLOT":g.dg(function(){if(a.elementId){var c=b.l,d=c.F.get(a.elementId);d&&(c=GP(c,[d]))&&0!=c.length&&c[0].xk()}});
break;case "CLEAR_ABOVE_FEED_SLOT":g.dg(function(){HP(b.l)})}};zL.prototype.g=function(){return"adPlayerControlsCommand"};
zL.prototype.i=function(a){switch(a.action){case "AD_PLAYER_CONTROLS_ACTION_SEEK_TO_END":var b=this.l;b=RP(b)?b.g.getDuration(2):0;if(0>=b)break;this.l.seekTo(g.pd(b-(Number(a.seekOffsetMilliseconds)||0)/1E3,0,b));break;case "AD_PLAYER_CONTROLS_ACTION_RESUME":this.l.resume()}};AL.prototype.ak=function(){return!1};
AL.prototype.M=function(){return function(){return null}};g.t(CL,AL);g.h=CL.prototype;g.h.bd=function(){return!0};
g.h.Ec=function(){return!1};
g.h.isSkippable=function(){return null!=this.aa};
g.h.getVideoUrl=function(){return this.H};
g.h.ak=function(){return!0};g.t(LL,AL);LL.prototype.bd=function(){return!0};
LL.prototype.Ec=function(){return!1};
LL.prototype.ak=function(){return!0};
LL.prototype.M=function(){return function(){return g.Fd("video-ads")}};ML.prototype.ub=function(){return this.I};
ML.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.ub().l};var Bja=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];WL.prototype.send=function(a,b,c){try{var d=a.match(Rg);if("https"===d[1])var e=a;else d[1]="https",e=Pg("https",d[2],d[3],d[4],d[5],d[6],d[7]);var f=this.i?Fn.i:On.ir(e),k=g.Bn(e,Cja(b,c,f));a=void 0;Pq(e)&&(k=ch(k,"abv","45"),this.g&&tC(this.g)&&this.l&&(a={Authorization:"Bearer "+tC(this.g)}));this.i?Rn(k,b,void 0,f):g.xr(k,void 0,f,a)}catch(l){}};XL.prototype.g=function(){return"loggingUrls"};
XL.prototype.i=function(a,b,c){c=void 0===c?{}:c;a=g.q(a);for(var d=a.next();!d.done;d=a.next())d=d.value,d.baseUrl&&this.l.send(d.baseUrl,b,c)};YL.prototype.g=function(){return"muteAdEndpoint"};
YL.prototype.i=function(a){var b=this;switch(a.type){case "SKIP":g.dg(function(){var c=b.l;c.i&&c.i.Ze()&&c.i.yk()})}};ZL.prototype.g=function(){return"pingingEndpoint"};
ZL.prototype.i=function(){};dM.prototype.g=function(){return"urlEndpoint"};
dM.prototype.i=function(a,b){if(a.url){var c=g.Bn(a.url,b);g.cM(c)}};g.t(eM,g.A);fM.prototype.showCompanion=function(a,b,c){return gM(this).then(function(){return kM(a,b,c)})};mM.prototype.showCompanion=function(a,b){b.contentVideoId||(b.contentVideoId=a);this.i.la("updateKevlarOrC3Companion",b)};var oM=null;g.t(nM,g.N);g.Ga("ytads.bulleit.getVideoMetadata",function(a){var b=pM();return b.g.hasOwnProperty(a)?b.g[a].fy():{}},void 0);
g.Ga("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=pM();c=gka(c);null!==c&&d.N(c,{queryId:a,viewabilityString:b})},void 0);g.t(qM,g.A);g.t(xM,g.A);g.t(OM,g.N);g.h=OM.prototype;g.h.fy=function(){return{}};
g.h.mo=function(){};
g.h.gb=function(a){this.Qg();this.N(a)};
g.h.Mw=function(){};
g.h.Qg=function(){QM(this,this.H,3);this.H=[]};
g.h.getDuration=function(){return this.ba.getDuration(2,!1)};
g.h.Xj=function(){var a=this.g;yM(a)||!LM(a,"impression")&&!LM(a,"start")||LM(a,"abandon")||LM(a,"complete")||LM(a,"skip")||(AM(a)?GM(a,"pause"):FM(a,"pause"))};
g.h.Zh=function(){this.R?g.O(g.X(this.ba).experiments,"bulleit_add_post_play_adblock_error")&&this.Ob("ui_unstable"):this.A||this.Jb()};
g.h.Jc=function(){IM(this.g,this.getDuration())};
g.h.Ic=function(){var a=this.g;!LM(a,"impression")||LM(a,"skip")||LM(a,"complete")||GM(a,"abandon")};
g.h.bh=function(){var a=this.g;if(AM(a))var b=!1;else b=g.X(a.g),b=g.uz(b)&&!g.Ez(b)&&g.O(g.X(a.g).experiments,"ensure_only_one_ads_termination_ping_for_bulleit_living_room")||g.O(g.X(a.g).experiments,"ensure_only_one_ads_termination_ping_for_bulleit")?!0:!1;b?!LM(a,"impression")||LM(a,"abandon")||LM(a,"complete")||FM(a,"skip"):FM(a,"skip")};
g.h.Jb=function(){if(!this.A){var a=TM(this);this.g.l.AD_CPN=a;HM(this.g);this.A=!0}};
g.h.Ob=function(a){a=a||"";var b="",c="",d="";rM(this.ba)&&(b=g.IK(this.ba,2).g,this.ba.app.u&&(c=this.ba.app.u.je(),null!=this.ba.app.u.We()&&(d=this.ba.app.u.We())));var e=this.g;e.l=UL(e.l,SL(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));FM(e,"error")};
g.h.ai=function(){};
g.h.bA=function(){this.N("c")};
g.h.cA=function(){this.N("h")};
g.h.dA=function(){this.N("i")};
g.h.eA=function(){this.N("j")};
g.h.fA=function(){this.N("k")};
g.h.gA=function(){this.N("l")};
g.h.hA=function(){this.N("q")};
g.h.dispose=function(){this.fa()||(this.Qg(),this.l.unsubscribe("c",this.bA,this),this.l.unsubscribe("h",this.cA,this),this.l.unsubscribe("i",this.dA,this),this.l.unsubscribe("j",this.eA,this),this.l.unsubscribe("k",this.fA,this),this.l.unsubscribe("l",this.gA,this),this.l.unsubscribe("q",this.hA,this),hka(this.l,this),g.N.prototype.dispose.call(this))};
g.h.Qv=function(){return""};g.t(UM,AL);UM.prototype.bd=function(){return!1};
UM.prototype.Ec=function(){return!0};g.t(VM,sL);g.t(WM,OM);WM.prototype.Vb=function(){var a=this,b=new VM(this.u.g,this.macros),c=this.ba.getVideoData(2);c&&c.Vd&&XM(this,c,b)?YM(this,c,b):(this.i=function(d,e,f){e&&2==f&&XM(a,e,b)&&e.Vd&&(a.i&&(a.ba.removeEventListener("videodatachange",a.i),a.i=null),YM(a,e,b))},this.ba.addEventListener("videodatachange",this.i))};
WM.prototype.ai=function(a){MM(this.g,a)};
WM.prototype.U=function(){this.i&&(this.ba.removeEventListener("videodatachange",this.i),this.i=null);OM.prototype.U.call(this)};g.t(ZM,AL);ZM.prototype.bd=function(){return!0};
ZM.prototype.Ec=function(){return!1};g.t($M,sL);g.t(aN,OM);g.h=aN.prototype;g.h.Vb=function(){0<this.i&&this.Jb()};
g.h.Jb=function(){var a=this;this.Aa=new g.J(function(){a.Jc();for(var b=g.q(a.o.g.completionCommands||[]),c=b.next();!c.done;c=b.next())a.B.Ha(c.value,a.macros);a.gb("f")},this.i,this);
g.B(this,this.Aa);this.Aa.start();RM(this,[new $M(this.o.g,this.macros)]);OM.prototype.Jb.call(this)};
g.h.Ic=function(){OM.prototype.Ic.call(this);this.gb("a")};
g.h.Jc=function(){OM.prototype.Jc.call(this)};
g.h.gb=function(a){this.Aa&&this.Aa.stop();OM.prototype.gb.call(this,a)};g.t(bN,AL);bN.prototype.bd=function(){return!0};
bN.prototype.Ec=function(){return!1};g.t(cN,AL);cN.prototype.bd=function(){return!0};
cN.prototype.Ec=function(){return!1};g.t(dN,AL);dN.prototype.bd=function(){return!1};
dN.prototype.Ec=function(){return!0};g.t(eN,AL);eN.prototype.bd=function(){return!1};
eN.prototype.Ec=function(){return!0};g.t(fN,AL);fN.prototype.bd=function(){return!0};
fN.prototype.Ec=function(){return!0};g.t(gN,AL);gN.prototype.bd=function(){return!0};
gN.prototype.Ec=function(){return!1};g.t(hN,AL);hN.prototype.bd=function(){return!1};
hN.prototype.Ec=function(){return!0};g.t(iN,AL);iN.prototype.bd=function(){return!1};
iN.prototype.Ec=function(){return!0};g.t(jN,AL);jN.prototype.bd=function(){return!0};
jN.prototype.Ec=function(){return!1};g.t(kN,AL);kN.prototype.bd=function(){return!0};
kN.prototype.Ec=function(){return!1};lN.prototype.create=function(a,b){return a instanceof CL?this.P.create(a,b):a instanceof fN?this.B.create(a,b):a instanceof eN?this.A.create(a,b):a instanceof iN?this.H.create(a,b):a instanceof LL?this.I.create(a,b):a instanceof hN?this.F.create(a,b):a instanceof dN?this.u.create(a,b):a instanceof ZM?this.i.create(a,b):a instanceof gN?this.D.create(a,b):a instanceof UM?this.g.create(a,b):a instanceof kN?this.M.create(a,b):a instanceof jN?this.R.create(a,b):a instanceof cN?this.o.create(a,b):a instanceof
bN?this.l.create(a,b):null};g.t(mN,OM);g.h=mN.prototype;g.h.Ic=function(){OM.prototype.Ic.call(this);this.gb("a")};
g.h.Xj=function(){OM.prototype.Xj.call(this);this.N("m",2)};
g.h.Zh=function(){OM.prototype.Zh.call(this);this.N("n",1)};
g.h.Jb=function(){OM.prototype.Jb.call(this);this.i.stop();this.o.K(this.ba,g.tE("bltplayback"),this.CG);var a=new g.qE(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.QK(this.ba,[a],2);this.N("n",1)};
g.h.Jc=function(){OM.prototype.Jc.call(this);this.gb("f")};
g.h.Ob=function(a){OM.prototype.Ob.call(this,a);this.gb("g")};
g.h.Vb=function(){vM(this.ba,!1);var a=this.B.i||{};a.autoplay="1";this.ba.cueVideoByPlayerVars(a,2);this.i.start();this.ba.playVideo(2);this.ba.la("onAdIntroStateChange",1)};
g.h.gb=function(a){this.i.stop();vM(this.ba,!0);"a"!=a&&wP(this.D.T);"a"!=a&&this.ba.la("onAdComplete");this.ba.la("onAdEnd");this.N(a);this.ba.la("onAdIntroStateChange",0)};
g.h.CG=function(a){"bltcompletion"==a.getId()&&(g.TK(this.ba,"bltplayback",2),IM(this.g,this.getDuration()))};g.t(nN,sL);g.t(oN,OM);g.h=oN.prototype;g.h.Vb=function(){0>=this.D&&(g.L(Error("durationMs was specified incorrectly with a value of: "+this.D)),this.Jc());this.Jb();this.ba.addEventListener("progresssync",this.F)};
g.h.Ic=function(){OM.prototype.Ic.call(this);this.gb("b")};
g.h.Jb=function(){OM.prototype.Jb.call(this);this.o=Math.floor(this.ba.getCurrentTime());this.i=this.o+this.D/1E3;RM(this,[new nN(this.B.g)]);var a=this.ba.getVideoData(1);a=a&&a.clientPlaybackNonce||"";var b=g.Ct();b&&Ns("adNotify",{clientScreenNonce:b,adMediaTimeSec:this.i,timeToAdBreakSec:Math.ceil(this.i-this.o),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(this.B.g.videoAdBreakOffsetMs/1E3)});g.T(g.IK(this.ba,1),512)&&(a=(a=this.ba.getVideoData(1))&&a.clientPlaybackNonce||"",(b=g.Ct())&&
Ns("adNotifyFailure",{clientScreenNonce:b,adMediaTimeSec:this.i,timeToAdBreakSec:Math.ceil(this.i-this.o),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(this.B.g.videoAdBreakOffsetMs/1E3)}),this.Jc())};
g.h.Jc=function(){OM.prototype.Jc.call(this);this.gb("f")};
g.h.Ob=function(a){OM.prototype.Ob.call(this,a);this.gb("g")};
g.h.gb=function(a){this.ba.removeEventListener("progresssync",this.F);this.Qg();this.N(a)};
g.h.dispose=function(){this.ba.removeEventListener("progresssync",this.F);OM.prototype.dispose.call(this)};g.t(pN,sL);g.t(qN,OM);qN.prototype.Vb=function(){var a=new pN(this.u.g,this.macros);RM(this,[a])};g.t(rN,OM);rN.prototype.Vb=function(){var a=TM(this);this.g.l.AD_CPN=a;HM(this.g)};g.t(sN,sL);g.t(tN,sL);g.t(uN,OM);uN.prototype.Vb=function(){var a;if(a=g.O(g.X(this.ba).experiments,"render_enhanced_overlays_as_ctas_for_desktop"))a=this.i.g,a=a.contentSupportedRenderer?!!a.contentSupportedRenderer.enhancedTextOverlayAdContentRenderer:!1;a?(a=new tN(this.i.g,this.macros),RM(this,[a])):(a=new sN(this.i.g,this.macros),RM(this,[a]))};g.t(vN,sL);g.t(wN,OM);wN.prototype.Vb=function(){this.Jb()};
wN.prototype.Jb=function(){RM(this,[new vN(this.i.g,this.macros)]);OM.prototype.Jb.call(this)};
wN.prototype.Ob=function(a){OM.prototype.Ob.call(this,a);this.gb("g")};g.t(BN,sL);g.t(CN,OM);CN.prototype.Vb=function(){var a=new BN(this.i.g,this.macros);RM(this,[a])};g.t(DN,sL);g.t(EN,OM);EN.prototype.Vb=function(){var a=new DN(this.u.g,this.macros);RM(this,[a])};
EN.prototype.ai=function(a){MM(this.g,a)};g.t(FN,sL);g.t(GN,OM);g.h=GN.prototype;g.h.Va=function(){450>g.JK(this.ba).getPlayerSize().width&&(g.Ws(this.ca),this.Ic())};
g.h.Vb=function(){this.Jb()};
g.h.mo=function(){this.i&&!g.O(g.X(this.ba).experiments,"use_full_player_survey_interstitial_on_web")&&(this.i.g=!0,mka(this,[this.i]))};
g.h.Jb=function(){this.i=new FN(this.o.g);this.i.g=this.o.l;RM(this,[this.i]);OM.prototype.Jb.call(this)};
g.h.getDuration=function(){return this.o.i};
g.h.Ic=function(){OM.prototype.Ic.call(this);this.gb("a")};
g.h.bh=function(){OM.prototype.bh.call(this);this.gb("f")};
g.h.Ob=function(a){OM.prototype.Ob.call(this,a);this.gb("g")};
g.h.gb=function(a){this.Qg();"a"!=a&&wP(this.B.T);this.N(a)};
g.h.ai=function(a){switch(a){case "skip-button":this.bh();break;case "survey-submit":this.gb("f")}};g.t(HN,sL);g.t(IN,OM);IN.prototype.Vb=function(){this.Jb()};
IN.prototype.Jb=function(){RM(this,[new HN(this.i.g,this.macros)]);OM.prototype.Jb.call(this)};
IN.prototype.Ic=function(){OM.prototype.Ic.call(this);this.gb("a")};
IN.prototype.Ob=function(a){OM.prototype.Ob.call(this,a);this.gb("g")};g.t(JN,sL);g.t(KN,OM);g.h=KN.prototype;g.h.Vb=function(){0<this.i&&this.Jb()};
g.h.Jb=function(){this.Aa=new g.J(this.Jc,this.i,this);g.B(this,this.Aa);this.Aa.start();RM(this,[new JN(this.o.g)]);OM.prototype.Jb.call(this)};
g.h.Jc=function(){OM.prototype.Jc.call(this);this.gb("f");for(var a=g.q(this.o.g.completeCommands||[]),b=a.next();!b.done;b=a.next())this.B.Ha(b.value,this.macros)};
g.h.Ic=function(){OM.prototype.Ic.call(this);this.gb("a")};
g.h.Ob=function(a){OM.prototype.Ob.call(this,a);this.gb("g")};
g.h.gb=function(a){this.Aa&&this.Aa.stop();OM.prototype.gb.call(this,a)};g.t(LN,g.A);LN.prototype.start=function(){this.fa()||this.g||(this.l=(0,g.D)(),this.g=new g.J(this.u,Math.max(0,this.o-this.i),this),g.B(this,this.g),this.g.start())};
LN.prototype.stop=function(){this.g&&(this.l=this.i=0,MN(this))};
LN.prototype.pause=function(){this.g&&(this.i+=(0,g.D)()-this.l,MN(this))};
LN.prototype.U=function(){MN(this);g.A.prototype.U.call(this)};g.t(NN,sL);g.t(ON,sL);g.t(PN,sL);g.t(QN,sL);g.t(RN,sL);g.t(SN,sL);g.t(TN,sL);g.t(VN,OM);g.h=VN.prototype;g.h.fy=function(){return{currentTime:this.ba.getCurrentTime(2,!1),duration:this.i.i,isPlaying:sM(this.ba),isVpaid:!1,isYouTube:!0,volume:this.ba.getVolume()/100}};
g.h.Vb=function(){if(this.i.F)SM(this),this.gb("g");else{var a=this.i.g.legacyInfoCardVastExtension,b=this.i.u;a&&b&&g.X(this.ba).I.add(b,{Xl:a});try{var c=this.i.g.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp){var d=c.siub,e=c.scs,f=c.bgp;a=window;var k="//pagead2.googlesyndication.com/bg/"+g.Yc(c.bgub)+".js",l=a.document;c={};e&&(c._scs_=e);c._bgu_=k;c._bgp_=f;c._li_="v_h.3.0.0.0";var m=a.GoogleTyFxhY;m&&"function"==typeof m.push||(m=a.GoogleTyFxhY=[]);m.push(c);var n=Bd(l).createElement("SCRIPT");
n.type="text/javascript";n.async=!0;var p=waa(g.qc("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.Yc(d)+".js"});Vc(n,p);l.getElementsByTagName("head")[0].appendChild(n)}}catch(r){g.L(r)}vM(this.ba,!1);d=DL(this.i);e=g.X(this.ba);g.O(g.X(this.ba).experiments,"disable_force_iv_load_policy_on_bulleit")||(d.iv_load_policy=e.g||g.uz(e)||g.Ez(e)?3:1);f=this.ba.getVideoData();f.Be&&(d.ctrl=f.Be);f.Ce&&(d.ytr=f.Ce);f.gm&&(d.ytrcc=f.gm);f.isMdxPlayback&&(d.mdx="1");g.O(g.X(this.ba).experiments,"send_vss_credential_player_vars")&&
d.vvt&&(d.vss_credentials_token=d.vvt,f.Xi&&(d.vss_credentials_token_type=f.Xi),f.mdxEnvironment&&(d.mdx_environment=f.mdxEnvironment));this.X&&this.N("p",-1);if(Fz(e)||g.uz(e))e=ZN(this),e=uka(this.Y,e,this.i.g.adNextParams||""),e.attributionInfo=WN(this),this.ba.la("onAdInfoChange",e);this.I?this.D.start():(this.ba.cueVideoByPlayerVars(d,2),this.D.start(),this.ba.playVideo(2))}};
g.h.Xj=function(){OM.prototype.Xj.call(this);this.N("m",2)};
g.h.Zh=function(){OM.prototype.Zh.call(this);this.N("n",1)};
g.h.Jb=function(){OM.prototype.Jb.call(this);this.D.stop();if(this.Z){this.M.K(this.ba,g.tE("bltplayback"),this.DG);var a=new g.qE(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.QK(this.ba,[a],2)}a=this.B;var b=this.ba.getVideoData(2);a.Z=b?b.clientPlaybackNonce:null;a=[];var c=g.X(this.ba);b=this.ba.getVideoData(2);if(Fz(c)||g.uz(c)){var d=b&&b.he?{channelId:b.Uf,channelThumbnailUrl:b.Vd||"",channelTitle:b.author,videoTitle:b.title,channelVideoCount:0,
showAdInfoIcon:!1,whyThisAdInfo:null,muteAdInfo:null}:null;d&&this.ba.la("onAdMetadataAvailable",d)}g.uz(c)||(g.Ez(c)&&!this.B.g.getVideoData(1).Te()&&(b&&b.videoId&&b.he&&b.videoId==this.i.u&&(c=b.title,d=b.author,b=b.Vd,c&&d&&b?b=[new PN(c),new ON(b),new QN(d)]:(g.L(Error("Channel metadata contains null for "+(c?d?"channel icon thumbnail.":"channel name.":"video title."),"WARNING")),b=[]),RM(this,b)),a.push(WN(this)),b=this.i.B,null==b?b=null:(c={},b.urlEndpoint&&(c.url=b.urlEndpoint.url,c.target=
"TARGET_NEW_WINDOW"),b=new TN({navigationEndpoint:{urlEndpoint:c}})),b&&a.push(b),this.i.isSkippable()&&!EL(this.i)&&(b=ZN(this),(b=b.skipOrPreviewRenderer&&b.skipOrPreviewRenderer.skipAdRenderer)||(b=XN(this)),a.push(new SN(b)))),b=ZN(this),a.push(new RN(b)),RM(this,a));this.ba.isMuted()&&(a=this.g,b=this.ba.isMuted(),AM(a)||FM(a,b?"mute":"unmute"));this.N("n",1);this.T&&this.ba.la("onAdStart");a=this.aa;b=this.i.u||"";(c=a.i.yb())&&c.getVideoData().videoId===b?a.g=Zia(c.u):a.g=null;a=g.q(this.i.g.impressionCommands||
[]);for(b=a.next();!b.done;b=a.next())this.B.Ha(b.value,this.macros)};
g.h.DG=function(a){"bltcompletion"==a.getId()&&(g.TK(this.ba,"bltplayback",2),IM(this.g,this.getDuration()))};
g.h.Jc=function(){OM.prototype.Jc.call(this);this.gb("f");for(var a=g.q(this.i.g.completeCommands||[]),b=a.next();!b.done;b=a.next())this.B.Ha(b.value,this.macros);this.P=!0};
g.h.Ic=function(){OM.prototype.Ic.call(this);this.gb("a")};
g.h.bh=function(){OM.prototype.bh.call(this);this.gb("f")};
g.h.Ob=function(a){OM.prototype.Ob.call(this,a);this.gb("g")};
g.h.gb=function(a){this.D.stop();this.o&&this.o.stop();this.Qg();vM(this.ba,!0);"a"!=a&&wP(this.B.T);this.T&&("a"!=a&&this.ba.la("onAdComplete"),this.ba.la("onAdEnd"));this.N(a)};
g.h.Qg=function(){OM.prototype.Qg.call(this);var a=g.X(this.ba);(Fz(a)||g.uz(a))&&(g.O(a.experiments,"enable_wta_for_unplugged_mdx")||g.Ez(a)&&g.uz(a))&&this.ba.la("onAdInfoChange",null)};
g.h.mo=function(){this.lx&&this.ba.playVideo()};
g.h.Mw=function(a){this.o&&(g.YC(a.state)?this.o.start():this.o.pause());g.O(g.X(this.ba).experiments,"enable_reset_for_seek_ad_for_web")&&!this.I&&!this.P&&g.T(a.state,16)&&3<this.ba.getCurrentTime(2,!1)&&OY(this.ba.app,0,!0,void 0,2,!0)};
g.h.lx=function(){return 2==this.ba.getPlayerState(2)};
g.h.ai=function(a){var b=this.g;if(!g.O(g.X(b.g).experiments,"disable_vss2_engage_for_bulleit")&&rM(b.g))switch(a){case "ad-title":b.g.sendVideoStatsEngageEvent(14,void 0,2);break;case "ad-channel-thumbnail":case "advertiser-name":b.g.sendVideoStatsEngageEvent(15,void 0,2);break;case "visit-advertiser":b.g.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-confirm-button":case "ad-feedback-dialog-close-button":case "ad-feedback-dialog-confirm-button":g.O(g.X(this.ba).experiments,
"enable_mute_ad_endpoint_resolution_on_bulleit")||this.gb("f");break;case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.F||this.mo();break;case "ad-info-icon-button":(this.F=this.lx())||this.ba.pauseVideo();break;case "ad-channel-thumbnail":case "advertiser-name":a=g.X(this.ba).protocol+"://"+zz(g.X(this.ba))+"/channel/"+this.i.T;g.cM(a);break;case "ad-title":this.ba.pauseVideo();g.cM(this.ba.getVideoUrl());break;case "visit-advertiser":this.ba.pauseVideo();
a=g.X(this.ba);if(g.O(a.experiments,"send_visit_advertiser_click_tracking_in_component")&&!g.Ez(a))break;g.Ez(a)&&(a=this.i.B)&&(kka(this.g,a.loggingUrls||null),a.urlEndpoint&&a.urlEndpoint.url&&g.cM(a.urlEndpoint.url));a=this.g;yM(a)||GM(a,"clickthrough");break;case "skip-button":this.bh()}};
g.h.Qv=function(a,b){if(this.i.F)return SM(this),this.gb("g"),"";if(!Number.isFinite(a))return g.L(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.L(Error("Start time is not earlier than end time")),"";var c=1E3*this.i.i,d=DL(this.i);d=Cma(this.ba.app.na,d,c,a,b);if(a+c>b){c=b-a;for(var e=this.ba.app.na,f=void 0,k,l=g.q(e.i),m=l.next();!m.done;m=l.next())if(m=m.value,m.hc==d){k=m;break}k&&(void 0==f&&(f=k.td),sX(e,k,c,f))}return d};
g.h.dispose=function(){sM(this.ba)&&!this.I&&this.ba.stopVideo(2);OM.prototype.dispose.call(this)};$N.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.identifier;var c=this.g[b];c?b=c:(c={Mh:null,rx:-Infinity},b=this.g[b]=c);c=a.g+a.i/1E3;if(!(c<b.rx)){b.rx=c;if(b.Mh){if(c<b.Mh.end){a:{c=b.Mh;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.durationSecs;a=a<c.start?null:c.end<=a?null:a}if(null!==a){b.Mh.end=a;b=this.i;c=1E3*a;b.i&&b.i.Co(c);
for(var d=g.q(b.u.values()),e=d.next();!e.done;e=d.next())e.value.Co(c);b.ea.i(a)}return}b.Mh=null}a:if(c=a.g+a.durationSecs,c=0>=c?null:c,null===c)a=null;else{switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}d=Math.max(a.g,0);a={TC:new g.Ci(d,c),uE:new eu(d,c-d,a.context,a.identifier,a.event,a.i)}}a&&(c=a.uE,b.Mh=a.TC,this.i.mz(c))}};
$N.prototype.updateTime=function(){};g.t(aO,g.N);
aO.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.g+a.i/1E3;if(!(b<this.o)){this.o=b;if(this.i){if(b<this.i.end&&(null===this.g||b-1<this.g)){a:{switch(a.event){case "start":case "continue":this.g=a.g+a.i/1E3+5;break;case "stop":this.g=null;break;case "predictStart":break a;default:break a}bO(this,this.i.start+a.durationSecs)}return}cO(this)}a:if(b=a.g+a.durationSecs,b=0>=b?null:b,null!==
b){switch(a.event){case "start":case "continue":if(this.l.hasOwnProperty(a.identifier))break a;break;case "predictStart":case "stop":break a;default:break a}var c=Math.max(a.g,0);this.i=new g.Ci(c,b);a=new eu(c,b-c,a.context,a.identifier,a.event,a.i);this.l[a.identifier]=null;this.g=a.g+a.i/1E3+5;this.N("Identified a new cuerange",a)}}};
aO.prototype.updateTime=function(a){this.i&&(this.i.end<=a||!(null===this.g||a<this.g))&&cO(this)};g.t(dO,g.A);dO.prototype.i=function(a){g.sb(this.g,1E3*a)};g.t(eO,g.A);g.t(fO,AL);jO.prototype.reset=function(){return new jO(this.i)};g.t(pO,g.N);g.h=pO.prototype;g.h.Ze=function(){var a=this.g;return a.g instanceof CL||a.g instanceof LL||a.g instanceof FL};
g.h.wk=function(){return this.g.g.Ec()};
g.h.ub=function(){return this.g.ub()};
g.h.Fn=function(){return OL(this.g)};
g.h.Mr=function(){return NL(this.g)};
g.h.Eq=function(a){if(!pL(a)){this.H&&(this.T=this.ba.isAtLiveHead(),this.M=Math.ceil((0,g.D)()/1E3));var b=new mO(this.kc);a=nO(a);oO(b,a)}this.xk()};
g.h.gi=function(){return this.u instanceof iN||this.u instanceof dN||this.u instanceof UM||this.u instanceof fO};
g.h.gx=function(){return!(this.u instanceof hN)&&!this.gi()};
g.h.gk=function(){return this.u instanceof CL};
g.h.xk=function(){KP(this.kc,this);if(!this.g.A.hasOwnProperty("ad_placement_start")){for(var a=g.q(this.g.H),b=a.next();!b.done;b=a.next())rO(b.value);this.g.A.ad_placement_start=!0}a=this.A;a.l=!1;a=g.O(g.X(a.i).experiments,"video_to_ad_use_gel")||!1;jB("video_to_ad",["apbs"],void 0,a);this.Pz()};
g.h.Pz=function(){this.u?this.Vb(this.u):this.uf()};
g.h.ph=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;QP(this.kc,0);this.uf(a,b)};
g.h.Sy=function(){this.ph()};
g.h.eI=function(){FM(this.i.g,"active_view_measurable")};
g.h.fI=function(){var a=this.i.g;yM(a)||NM(a)||FM(a,"active_view_fully_viewable_audible_half_duration")};
g.h.gI=function(){};
g.h.hI=function(){};
g.h.iI=function(){};
g.h.jI=function(){};
g.h.lI=function(){var a=this.i.g;yM(a)||NM(a)||FM(a,"active_view_viewable")};
g.h.ew=function(){return this.gk()?[this.nq()]:[]};
g.h.Pr=function(a){if(null!==this.i){this.R||(a=new g.ZD(a.state,new g.PC),this.R=!0);this.i.Mw(a);var b=a.state;if(this.aa&&g.T(b,1024))this.i.Ob("dom_paused");else if(g.aE(a,2))b=this.A,b.R?lO(b):(b.l=!1,jB("ad_to_ad",["apbs"],void 0,!0)),this.i.Jc();else{var c=a;(g.O(g.X(this.ba).experiments,"html5_bulleit_handle_gained_playing_state")?g.WC(c.state)&&!g.WC(c.g):g.WC(c.state))?(b=this.A,b.D&&!b.l&&(b.I=!1,b.l=!0,"ad_to_video"!=b.g&&UB("apbs",void 0,b.g)),this.i.Zh()):b.isError()?this.i.Ob(b.i.errorCode):
g.aE(a,4)&&(this.I||this.i.Xj())}if(g.aE(a,16)&&(b=this.i.g,!yM(b))){c=b.i;if(c.ak()){c=c.D;var d=void 0===d?{}:d;(d=Vm.getInstance().Oj(c,d))&&cl(d)}b.i.A.seek=!0}0>$D(a,4)&&!(0>$D(a,2))&&(d=this.i.g,yM(d)||(AM(d)?GM(d,"resume"):FM(d,"resume")));!g.O(g.X(this.ba).experiments,"html5_dai_handle_suspended_state_killswitch")&&this.ac&&g.aE(a,512)&&!g.YC(a.state)&&lO(this.A)}};
g.h.hy=function(){};
g.h.resume=function(){this.i&&this.i.mo()};
g.h.Nr=function(){this.P?this.i&&this.i.gb("f"):this.Ze()&&this.uf()};
g.h.yk=function(){this.Nr()};
g.h.gy=function(a){var b=this.kc;b.l&&g.O(g.X(b.g).experiments,"html5_bulleit_dai_publish_ad_ux_killswitch")||b.g.la("onAdUxUpdate",a)};
g.h.onAdUxClicked=function(a){this.i.ai(a)};
g.h.bw=function(){return 0};
g.h.dw=function(){return 1};
g.h.Co=function(a){this.ac&&this.g.B&&this.g.ub().start<=a&&a<vO(this)&&gL(this.ba,a,this.g.ub().end)};
g.h.Vb=function(a){g.qf(this.i);this.i=a=this.Xf.create(a,TL(RL(this.g)));a.subscribe("a",g.Qa(this.ph,!0),this);a.subscribe("b",g.Qa(this.ph,!0,!0),this);a.subscribe("c",this.eI,this);a.subscribe("f",this.ph,this);a.subscribe("g",this.Sy,this);a.subscribe("h",this.fI,this);a.subscribe("i",this.gI,this);a.subscribe("j",this.hI,this);a.subscribe("k",this.iI,this);a.subscribe("l",this.jI,this);a.subscribe("m",this.Or,this);a.subscribe("n",this.Or,this);a.subscribe("p",this.Or,this);a.subscribe("onAdUxUpdate",
this.gy,this);a.subscribe("q",this.lI,this);PM(a);sO(this,!1)};
g.h.uf=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.I=!0;g.qf(this.i);if(a)var c=!1;else this.ac?(c=this.ba.getCurrentTime(2,!0),c=1>=Math.abs(c-this.g.ub().end/1E3)):c=!0;if(c&&!this.g.A.hasOwnProperty("ad_placement_end")){c=g.q(this.g.F);for(var d=c.next();!d.done;d=c.next())rO(d.value);this.g.A.ad_placement_end=!0}c=this.g.u;null!==c&&(iO(this.re,{cueIdentifier:this.g.i&&this.g.i.identifier,driftRecoveryMs:c,Oz:this.g.ub().start,wx:vO(this)}),this.g.u=null);b||this.ac?IP(this.kc,!0):
this.H&&this.Mr()&&this.gk()?IP(this.kc,!1,Hka(this)):IP(this.kc,!1);sO(this,!0)};
g.h.Or=function(a){QP(this.kc,a)};
g.h.nq=function(){return this.u};
g.h.isLiveStream=function(){return this.H};
g.h.reset=function(){return new pO(this.kc,this.ba,this.A.reset(),this.g,this.re,this.Nh,this.Xf,this.ac)};
g.h.U=function(){g.qf(this.i);this.i=null;g.N.prototype.U.call(this)};xO.prototype.create=function(a){return(a.g instanceof FL?this.o:a.g instanceof fO?this.l:""===a.o?this.g:this.i)(a)};g.t(zO,g.N);g.h=zO.prototype;g.h.ub=function(){return this.g.ub()};
g.h.Fn=function(){return OL(this.g)};
g.h.Mr=function(){return NL(this.g)};
g.h.gi=function(){return!1};
g.h.wk=function(){return!1};
g.h.onAdUxClicked=function(){};
g.h.Eq=function(a){var b=this;if(!g.O(g.X(this.u).experiments,"ensure_only_one_resolved_midroll_response_on_web")||1!==this.g.l&&2!==this.g.l){var c=[];this.Fn()||(c=nO(a));this.g.l=1;ug(this.A.fetch(this.g.o,{SC:this.g.i||void 0,Sc:this.g.ub(),bB:ala(this.i.T)}).then(function(d){if(!b.fa()){var e=c;d=Mka(b,d);var f=b.o;f.i&&d.isEmpty&&hO("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.g.clientPlaybackNonce);d.ix||!yO(b.g.o)&&d.isEmpty&&b.B||(b.g.l=2,oO(new mO(b.i),e),yO(b.g.o)&&(f=b.i,e=f.aa,f.aa=null,e&&
(d.rp.some(Jka)&&(e.renderer.backfillMpuCompanionAdRenderer.type="BACKFILL_MPU_TYPE_AFV"),f=b.i,e=[e],e=DP(f,e),GP(f,e),b.l=!0)),d.isEmpty||(e=b.i,d=d.rp,d=DP(e,d),GP(e,d)))}},function(){oO(new mO(b.i),c);
var d=b.o;d.i&&hO("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.g.clientPlaybackNonce)}),function(){2!==b.g.l&&(b.g.l=0);
(b.Fn()||b.l)&&FP(b.i)})}};
g.h.xk=function(){};
g.h.Co=function(){};g.t(AO,g.W);AO.prototype.vf=function(a){var b=this;if(a=void 0===a?null:a){var c=this.u;a.forEach(function(d){return b.o.Ha(d,c)})}};
AO.prototype.Ha=function(a){(a=void 0===a?null:a)&&this.o.Ha(a,this.u)};g.t(BO,g.A);BO.prototype.append=function(a){if(!this.D)throw Error("This does not support the append operation");this.Ml(a.ha())};
BO.prototype.Ml=function(a){this.ha().appendChild(a)};
g.t(CO,BO);CO.prototype.ha=function(){return this.g};g.t(EO,g.A);var b_=new WeakSet;g.t(Z,g.tD);g.h=Z.prototype;g.h.Ih=function(a){a.append(this.Ca)};
g.h.bind=function(a){if(this.ga)this.Jn(a);else if(a.renderer){var b=Object.assign({},DO(this.api,this.ka),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.h.init=function(a,b,c){this.ga=a;this.element.setAttribute("id",this.ga);this.xa&&g.H(this.element,this.xa);this.F=b&&b.adRendererCommands;this.macros=c;this.D=b.trackingParams||null;null!=this.D&&KO(this,this.element,this.D)};
g.h.Jn=function(){};
g.h.clear=function(){};
g.h.hide=function(){g.tD.prototype.hide.call(this);null!=this.D&&LO(this,this.element,!1)};
g.h.show=function(){g.tD.prototype.show.call(this);if(!this.Ia){this.Ia=!0;var a=this.F&&this.F.impressionCommand;a&&this.ka.Ha(a,this.macros,null)}null!=this.D&&LO(this,this.element,!0)};
g.h.onClick=function(a){if(this.D&&!b_.has(a)){var b=this.element;bL(this.api,b)&&this.Fa()&&g.$K(this.api,b);b_.add(a)}(a=this.F&&this.F.clickCommand)&&this.ka.Ha(a,this.macros,this.iw())};
g.h.iw=function(){return null};
g.h.IH=function(a){var b=this.M;b.B=!0;b.i=a.touches.length;b.g.isActive()&&(b.g.stop(),b.u=!0);a=a.touches;b.A=FO(b,a)||1!=a.length;var c=a.item(0);b.A||!c?(b.D=Infinity,b.F=Infinity):(b.D=c.clientX,b.F=c.clientY);for(c=b.l.length=0;c<a.length;c++){var d=a.item(c);b.l.push(d.identifier)}};
g.h.HH=function(a){var b=this.M;a=a.changedTouches.item(0);var c;if(c=gd()){c=g.Ib;var d="";Jb("Windows")?(d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0"):gd()?(d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".")):Jb("Macintosh")?(d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10"):Eb(g.Ib,"KaiOS")?(d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1]):Jb("Android")?(d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1]):Jb("CrOS")&&(d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
d=(c=d.exec(c))&&c[1]);c=!(0<=g.Hb(d||"",8))}if(c||a&&Math.pow(a.clientX-b.D,2)+Math.pow(a.clientY-b.F,2)>Math.pow(5,2))b.o=!0};
g.h.GH=function(a){if(this.M){var b=this.M,c=a.changedTouches;c&&b.B&&1==b.i&&!b.o&&!b.u&&!b.A&&FO(b,c)&&(b.H=a,b.g.start());b.i=a.touches.length;0===b.i&&(b.B=!1,b.o=!1,b.l.length=0);b.u=!1}};
g.h.U=function(){this.clear(null);this.Na(this.wa);for(var a=g.q(this.P),b=a.next();!b.done;b=a.next())this.Na(b.value);g.tD.prototype.U.call(this)};g.t(NO,g.A);NO.prototype.U=function(){this.i&&g.ls(this.i);this.g.clear();OO=null;g.A.prototype.U.call(this)};
NO.prototype.register=function(a,b){b&&this.g.set(a,b)};
var OO=null;g.t(SO,BO);SO.prototype.addEventListener=function(a,b){this.A.subscribe(a,b)};
SO.prototype.removeEventListener=function(a,b){this.A.unsubscribe(a,b)};
SO.prototype.dispatchEvent=function(a){this.A.N(a.type,a)};g.t(TO,g.A);g.h=TO.prototype;g.h.Ih=function(a){a.append(this.view)};
g.h.bind=function(a){var b=a.renderer,c=b.trackingParams;if(this.l&&this.l!=c)throw Error("Cannot re-bind presenter with new tracking params");if(c){this.l=c;var d=this.view,e=this.Bb,f=d.ha();g.X(e).F&&g.IO(e.app.T,f,d);g.X(e).F&&g.JO(e.app.T,f,c)}this.i=b.impressionEndpoints||[];this.macros=Object.assign({},a.macros);return this.nj(a)};
g.h.Fa=function(){return this.o};
g.h.show=function(){this.view.show();this.o=!0;var a=this.Bb,b=this.view.ha();bL(a,b)&&g.aL(a,b,!0);this.vf(this.i);this.i=[]};
g.h.hide=function(){this.Lq();this.o=!1;var a=this.Bb,b=this.view.ha();bL(a,b)&&g.aL(a,b,!1)};
g.h.Lq=function(){this.view.hide()};
g.h.onClick=function(a){a=void 0===a?{}:a;this.Jk(a);if(this.Fa()){a=this.Bb;var b=this.view.ha();bL(a,b)&&g.$K(a,b)}};
g.h.Ha=function(a){this.jj.Ha(a,UO(this))};
g.h.vf=function(a){var b=this,c=UO(this);a.forEach(function(d){return b.jj.Ha(d,c)})};g.t(VO,g.N);g.h=VO.prototype;g.h.ha=function(){return this.g.element};
g.h.show=function(){if(!this.g.Fa()){this.ca.K(document,"click",this.CF);this.g.show();var a=this.ha(),b=g.Sh(Kh(this.o)).width,c=g.Sh(this.o),d=Ih(this.o);a.style.top=d.y+c.height+"px";a.style.right=b-d.x-c.width+"px"}};
g.h.hide=function(){this.g.Fa()&&(this.g.hide(),g.Ws(this.ca))};
g.h.setTitle=function(a){a?this.l.show():this.l.hide();this.l.ob(XO(a))};
g.h.CF=function(a){this.g.Fa()&&(a=a.target,g.$d(this.o,a)||(g.$d(this.i.i["ytp-ad-info-dialog-confirm-button"],a)?this.N("confirmClick"):g.$d(this.g.element,a)||this.N("externalClick")))};
var Qka={yO:"confirmClick",TO:"externalClick"};g.t(YO,SO);YO.prototype.setTitle=function(a){this.g.setTitle(a)};
YO.prototype.show=function(){this.g.show()};
YO.prototype.hide=function(){this.g.hide()};
YO.prototype.ha=function(){return this.g.ha()};var Rka={OB:YO},Ona=["confirmClick","externalClick"];g.t(ZO,TO);g.h=ZO.prototype;g.h.nj=function(a){var b=this.Hc();a=a.renderer;var c=b.g,d=a.confirmLabel||null;d?c.i.show():c.i.hide();c.i.ob(XO(d));b.setTitle(a.title||null);b.g.g.ob(XO(a.dialogMessage||null));g.Ud(WO(b.g));c=g.q(a.adReasons||[]);for(d=c.next();!d.done;d=c.next())d=d.value,WO(b.g).appendChild(g.Qd("li",null,XO(d)));this.g=a.confirmServiceEndpoint||null;return Promise.resolve()};
g.h.Lq=function(){TO.prototype.Lq.call(this);this.g&&(this.Ha(this.g),this.g=null)};
g.h.Jk=function(a){switch(a.type){case "confirmClick":case "externalClick":this.hide()}};
g.h.Hc=function(){return this.view};
g.h.md=function(){function a(e){return b.onClick(e)}
for(var b=this,c=g.q(Ona),d=c.next();!d.done;d=c.next())this.ca.K(this.view,d.value,a)};g.t($O,Z);g.h=$O.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);(a=(a=b.button&&b.button.buttonRenderer&&b.button.buttonRenderer.navigationEndpoint&&b.button.buttonRenderer.navigationEndpoint.adInfoDialogEndpoint)&&a.dialog&&a.dialog.adInfoDialogRenderer)?(b.hoverText?(b=RO(b.hoverText),Vd(this.l,b,0)):this.l=null,this.qe.bind({renderer:a,macros:c}),this.show()):g.L(Error("adInfoDialogRenderer is missing in AdHoverTextButtonRenderer"))};
g.h.Kq=function(){this.l&&g.Th(this.l,!1)};
g.h.EF=function(){this.qe.Fa()||this.l&&g.Th(this.l,!0)};
g.h.DF=function(){this.qe.show();this.Kq()};
g.h.clear=function(){this.hide()};g.t(aP,AO);g.t(bP,fO);g.h=bP.prototype;g.h.bd=function(){return!1};
g.h.Ec=function(){return!0};
g.h.ow=function(){var a=this.g,b=new Kja;b.url=a.iframeUrl||null;b.width=a.iframeWidth||0;b.height=a.iframeHeight||0;b.impressionTrackingUrls=cP(a.impressionCommands||[]);b.clickTrackingUrls=cP(a.onClickCommands||[]);b.adInfoRenderer=a.adInfoRenderer||null;a=new lM;a.iframeCompanionRenderer=b;return a};
g.h.mw=function(){return[new g.vd(300,60)]};
g.h.uv=function(a,b){return new aP(a,b,this.g)};g.t(dP,OM);g.h=dP.prototype;g.h.Eq=function(a){if(!pL(a)){var b=new mO(this.F);a=nO(a);oO(b,a)}this.xk()};
g.h.xk=function(){var a=this;if(this.i instanceof bP){var b=this.ba.getVideoData(2);if(!b||b.Td||null==this.i.g||this.i.g.adVideoId!=b.videoId){this.o=function(c,d,e){d&&2==e&&null!=a.i.g&&a.i.g.adVideoId==d.videoId&&(a.o&&(a.ba.removeEventListener("videodatachange",a.o),a.o=null),d.he&&PM(a))};
this.ba.addEventListener("videodatachange",this.o);return}if(!b.he)return}PM(this)};
g.h.Vb=function(){var a=this;KP(this.F,this);if(tM(this.ba)){var b=this.ba.getVideoData(1),c=this.i.ow();null!=c&&(c.macros=Object.assign({},this.macros),this.I.showCompanion(b.videoId,c))}else{var d=this.i.mw();eka(this.I).then(function(e){a:{if(d&&e){e=g.q(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var k=g.q(d),l=k.next();!l.done;l=k.next())if(l=l.value,l.width==f.width&&l.height==f.height){e=l;break a}}}e=null}e&&(f=a.i.uv(a.ba,a.F,e),null!=f&&(g.B(a,f),k=a.I,k.g&&k.g.showCompanion(f.element,
e.width,e.height)))})}if(this.i instanceof bP){this.D=function(e){var f;
if(f=e.data)try{f=Pq(e.source.document.location.origin)}catch(l){f=!1}if(f)if(f=a.i.g,"companion-setup-complete"==e.data)try{e.source.postMessage(JSON.stringify(f),"*");var k=e.source.frameElement;k.parentNode.style.cssText="";k.width=String(f.iframeWidth);k.height=String(f.iframeHeight)}catch(l){g.$p(l)}else"pause-video"==e.data&&a.ba.pauseVideo()};
try{window.addEventListener("message",this.D)}catch(e){g.L(e)}}};
g.h.onAdUxClicked=function(a){MM(this.g,a)};
g.h.ub=function(){return this.B.ub()};
g.h.Fn=function(){return OL(this.B)};
g.h.Mr=function(){return NL(this.B)};
g.h.gi=function(){return!0};
g.h.wk=function(){return this.B.g.Ec()};
g.h.Co=function(){};
g.h.U=function(){if(this.D)try{window.removeEventListener("message",this.D),this.D=null}catch(a){g.L(a)}this.o&&(this.ba.removeEventListener("videodatachange",this.o),this.o=null);OM.prototype.U.call(this)};var Tka=Object.freeze([ZM,bN,LL,jN,kN,CL]);g.t(fP,pO);g.h=fP.prototype;g.h.ew=function(){return this.o.g.map(function(a){return a[0]})};
g.h.gx=function(){for(var a=g.q(hP(this)),b=a.next();!b.done;b=a.next())if(b.value.some(function(c){return c.bd()}))return!0;
return!1};
g.h.gk=function(){return this.D instanceof CL||this.D instanceof bN};
g.h.Pz=function(){this.ac?rM(this.ba)&&qO(this):(this.o.o||gP(this),iP(this))};
g.h.Vb=function(a){if(g.O(g.X(this.ba).experiments,"enable_composite_ad_player_presentation_for_bulleit")){var b=eP(a);this.D&&b&&this.F!==b&&(b?JP(this.kc):NP(this.kc),this.F=b)}this.D=a;this.ac&&(this.B=this.o.g.findIndex(function(c){return c.some(function(d){return d===a})}));
pO.prototype.Vb.call(this,a)};
g.h.uf=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.l&&(g.qf(this.l),this.l=null);pO.prototype.uf.call(this,a,b)};
g.h.yk=function(){this.P&&(this.B=this.o.g.length,this.l&&this.l.gb("f"),this.i&&this.i.gb("f"));this.uf()};
g.h.hy=function(a){iP(this,a)};
g.h.Nr=function(){this.ph()};
g.h.Pr=function(a){pO.prototype.Pr.call(this,a);a=a.state;g.T(a,2)&&this.l?this.l.Jc():g.WC(a)?(null==this.l&&gP(this),this.l&&this.l.Zh()):a.isError()&&this.l&&this.l.Ob(a.i.errorCode)};
g.h.ph=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.ac||(QP(this.kc,0),a?this.uf(a,b):iP(this))};
g.h.Sy=function(){1==this.o.i?this.uf():this.ph()};
g.h.onAdUxClicked=function(a){pO.prototype.onAdUxClicked.call(this,a);this.l&&this.l.ai(a)};
g.h.nq=function(){var a=hP(this);return a.length&&a[0].length?a[0][0]:null};
g.h.U=function(){g.qf(this.l);this.l=null;pO.prototype.U.call(this)};
g.h.Ze=function(){return g.O(g.X(this.ba).experiments,"enable_composite_ad_player_presentation_for_bulleit")?this.F:pO.prototype.Ze.call(this)};
g.h.wk=function(){return this.o.g.every(function(a){return a.every(function(b){return b.Ec()})})};
g.h.reset=function(){return new fP(this.kc,this.ba,this.A.reset(),this.g,this.re,this.Nh,this.Xf,this.ac)};
g.h.bw=function(){return this.B};
g.h.dw=function(){return this.o.g.length};g.t(jP,AO);jP.prototype.A=function(a){g.$d(this.xc.element,a.target)||(g.qs(a),this.vf(this.l.onClickCommands),this.Ha(this.l.clickthroughEndpoint),this.ba.onAdUxClicked("image-companion"),this.ba.pauseVideo())};g.t(kP,fO);g.h=kP.prototype;g.h.bd=function(){return!1};
g.h.Ec=function(){return!0};
g.h.ow=function(){var a=new lM;a.imageCompanionAdRenderer=this.g;return a};
g.h.mw=function(){return this.i};
g.h.uv=function(a,b,c){return new jP(a,b,this.g,c)};g.t(lP,FL);g.t(mP,FL);g.t(nP,FL);oP.prototype.create=function(a,b){function c(K){return new CL(K,d.i,b||"AD_PLACEMENT_KIND_UNKNOWN")}
var d=this,e=a.instreamVideoAdRenderer,f=a.clientForecastingAdRenderer,k=a.invideoOverlayAdRenderer,l=a.videowallIframeCompanionAdRenderer,m=a.imageCompanionAdRenderer,n=a.instreamSurveyAdRenderer,p=a.plaShelfRenderer,r=a.sandwichedLinearAdRenderer,v=a.shoppingCompanionCarouselRenderer,z=a.backfillMpuCompanionAdRenderer,C=a.actionCompanionAdRenderer,F=a.multipleInstreamVideoAdRenderer,E=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new eN(f):null!=k?new fN(k):null!=l?new bP(l):
null!=m?new kP(m):null!=n?new LL(n):null!=r?new nP(r,c,this.g):null!=F?new mP(F,c):null!=p?new hN(p):null!=v?new iN(v):null!=z?new dN(z):null!=C?new UM(C):null!=E?new lP(E,c):null};pP.prototype.create=function(a,b,c,d){d=void 0===d?null:d;var e=[];c=void 0===c?0:c;if(d){d=g.q(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var k=b,l=new nL(k.o,k.l,k.A,k.u),m=k.g;m&&(l.g=new eu(m.g,m.durationSecs,m.context,m.identifier,m.event,m.i));k.i&&(l.i=k.i);l.visible=k.visible;k=l;k.g=f;e.push(qP(this,a[0],c,k));c++}}else for(a=g.q(a),d=a.next();!d.done;d=a.next())e.push(qP(this,d.value,c,b)),c++;return e};g.t(rP,g.A);g.t(tP,g.A);tP.prototype.addEventListener=function(a,b){this.g=b};
tP.prototype.removeEventListener=function(){this.g=null};
g.t(uP,g.A);uP.prototype.addEventListener=function(a,b,c){this.g.addEventListener(a,b,c)};
uP.prototype.removeEventListener=function(a,b){this.g.removeEventListener(a,b)};g.t(vP,g.A);var xP=null,zP=null;g.Ga("yt.www.ads.eventcache.getLastCompanionData",function(){return xP},void 0);
g.Ga("yt.www.ads.eventcache.getLastPlaShelfData",function(){return zP},void 0);g.t(CP,g.N);g.h=CP.prototype;
g.h.init=function(){var a=this.g.getVideoData();if(a.Bp||g.Xp("SERVED_VIA_SPF_HISTORY"))g.O(g.X(this.g).experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?this.R():FP(this);else{if(tM(this.g)){var b=BD(this.g);b.addEventListener("updateKevlarOrC3Companion",yP);b.addEventListener("onPlaShelfInfoCardsReady",AP);window.addEventListener("yt-navigate-start",BP)}this.ca.K(this.g,"applicationplayerstatechange",this.wG);this.ca.K(this.g,g.tE("ad"),this.En,this);this.ca.K(this.g,"crx_ad",
this.xG,this);this.ca.K(this.g,"aduxclicked",this.kI);this.ca.K(this.g,"videodatachange",this.AG);b=a.getPlayerResponse()||{};b=bla(b);b=ela(this,b);b=DP(this,b);0<b.length&&GP(this,b);this.D&&(a.subscribe("cuepointupdated",this.ws,this),this.l&&a.ia&&this.ws(ex(a.ia,0)));FP(this);g.dg(this.oN,this)}};
g.h.U=function(){this.Y=!0;g.Ws(this.ca);this.D&&this.g.getVideoData(1).unsubscribe("cuepointupdated",this.ws,this);if(tM(this.g)){var a=BD(this.g);a.removeEventListener("updateKevlarOrC3Companion",yP);a.removeEventListener("onPlaShelfInfoCardsReady",AP);window.removeEventListener("yt-navigate-start",BP);xP=null}a=g.q(this.u.values());for(var b=a.next();!b.done;b=a.next())MP(this,b.value);IP(this,!1);this.B.clear();this.M=[];this.H.clear();g.qf(this.o);this.o=null;g.qf(this.F);this.F=new Map;this.u.clear();
g.N.prototype.U.call(this)};
g.h.En=function(a){if(!a.g&&(!qL(a)||a.contains(1E3*this.g.getCurrentTime()||0))){var b=g.IK(this.g);g.T(b,32)||g.T(b,16)?this.H.add(a):(b=this.u.get(a))?((this.l?0:g.O(g.X(this.g).experiments,"enable_eviction_protection_for_bulleit"))?b.gi()&&this.o?this.o.wk():!b.gi()&&this.i?this.i.wk():1:1)?b.Eq(a):a.g=!0:(b=Error("coordinator not found"),b.params=a.toString(),g.L(b))}};
g.h.xG=function(a){a.g&&(a.g=!1);this.H["delete"](a)};
g.h.ws=function(a){Bka(this.xa,a);if(null==this.D)g.L(Error("Dynamically inserted ad was requested, but no cuepoint AdPlacementRenderer was present to fulfill the request."));else if(this.l){a=g.q(a);for(var b=a.next();!b.done;b=a.next())this.oa.reduce(b.value)}else 0!=(this.g.getCurrentTime()||0)&&(a=a.filter(function(c){return"start"==c.event}),GP(this,[this.D],a))};
g.h.mz=function(a){GP(this,[this.D],[a])};
g.h.yJ=function(a){gL(this.g,1E3*a)};
g.h.bf=function(a){switch(a){case "control_play":RP(this)&&this.g.yb().playVideo();break;case "control_pause":RP(this)&&(g.T(g.IK(this.g,2),64)||this.g.yb().pauseVideo())}};
g.h.zG=function(a){this.i&&this.i.Pr(a)};
g.h.wG=function(a){0>$D(a,16)&&(this.H.forEach(this.En,this),this.H.clear())};
g.h.AG=function(){if(this.i){var a=this.i;a.ac&&qO(a)}if(this.l){a=1E3*this.g.getCurrentTime();for(var b=g.q(this.u.keys()),c=b.next();!c.done;c=b.next())if(c=c.value,c.start<=a&&a<c.end){this.En(c);break}}};
g.h.WL=function(){var a=null;this.l&&(a=this.g.getCurrentTime(),this.oa.updateTime(a));if(rM(this.g)&&this.i){var b=this.g.getCurrentTime(2,!1),c=this.i,d=c.i;d.A&&DM(d.g,b,d.getDuration());if(null!==a&&(b=c.g.u,!(null===b||g.O(g.X(c.ba).experiments,"html5_dai_drift_recovery_killswitch")||(d=c.g.ub().start,1E3*a<d+b)))){c.g.u=null;var e=vO(c),f=Math.min(a+kL(c.ba.app),e/1E3),k=c.g.i&&c.g.i.identifier;a<f?(c.ba.seekTo(f),c=c.re,a*=1E3,f*=1E3,c.i&&gO({driftRecoveryInfo:{contentCpn:c.g.clientPlaybackNonce,
cueIdentifier:k||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(e-d).toString(),driftFromHeadMs:Math.round(1E3*kL(c.l.app)).toString(),appliedDriftRecoveryMs:Math.round(a-d).toString(),destinationMs:Math.round(f-d).toString()}})):iO(c.re,{cueIdentifier:k,driftRecoveryMs:b,Oz:d,wx:e})}}};
g.h.dI=function(){this.na=!0;this.i&&this.i.i.Ic()};
g.h.kI=function(a){if(this.i)this.i.onAdUxClicked(a);if(this.o)this.o.onAdUxClicked(a)};
g.h.BG=function(){if(2==this.g.getPresentingPlayerType()&&this.i){var a=this.i.i,b=a.g;a=a.ba.isMuted();AM(b)||FM(b,a?"mute":"unmute")}};
g.h.yG=function(a){if(this.i){var b=this.i.i.g;yM(b)||GM(b,a?"fullscreen":"end_fullscreen")}};
g.h.oN=function(){for(var a=[],b=g.q(this.B),c=b.next();!c.done;c=b.next())c=c.value,pL(c)||a.push(c);c=this.g;b=c.app;(c=c.playerType)&&b.getPresentingPlayerType()!=c||RK(b,"cuerangemarkersupdated",a)};
g.h.Nc=function(a){if(this.i){var b=this.i.i;b.A&&DM(b.g,a,b.getDuration())}};
g.h.seekTo=function(a){RP(this)&&this.g.yb().seekTo(a,!0)};
g.h.resume=function(){this.i&&this.i.resume()};
g.h.Ha=function(a,b,c){this.Ea.Ha(a,b,hla(this,void 0===c?null:c))};
g.h.Zv=function(){return this.ga};g.t(TP,Z);TP.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&SP(a)||"";g.wb(b)?(g.O(g.X(this.api).experiments,"web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.$p(Error("Found AdImage without valid image URL")):(this.l?g.zh(this.element,"backgroundImage","url("+b+")"):Id(this.element,{src:b}),Id(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
TP.prototype.clear=function(){this.hide()};g.t(zQ,Z);
zQ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.l=b;if(null==b.text&&null==b.icon)g.$p(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.H(this.element,a);null!=b.text&&(a=g.yB(b.text),g.wb(a)||(this.element.setAttribute("aria-label",a),this.A=new g.tD({C:"span",G:"ytp-ad-button-text",V:a}),g.B(this,this.A),this.A.g(this.element)));null!=b.icon&&(b=yQ(b.icon),null!=
b&&(this.o=new g.tD({C:"span",G:"ytp-ad-button-icon",J:[b]}),g.B(this,this.o)),this.B?Vd(this.element,this.o.element,0):this.o.g(this.element))}};
zQ.prototype.clear=function(){this.hide()};
zQ.prototype.onClick=function(a){var b=this;Z.prototype.onClick.call(this,a);lla(this).forEach(function(c){return b.ka.Ha(c,b.macros)});
this.api.onAdUxClicked(this.componentType)};var hma={seekableStart:0,seekableEnd:1,current:0};g.t(AQ,Z);AQ.prototype.clear=function(){this.dispose()};g.t(DQ,AQ);g.h=DQ.prototype;g.h.init=function(a,b,c){AQ.prototype.init.call(this,a,b,c);g.zh(this.u,"stroke-dasharray","0 "+this.o);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){CQ(this);AQ.prototype.hide.call(this)};
g.h.show=function(){BQ(this);AQ.prototype.show.call(this)};
g.h.vh=function(){this.hide()};
g.h.Dg=function(){if(this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&g.zh(this.u,"stroke-dasharray",a.current/a.seekableEnd*this.o+" "+this.o)}};g.t(EQ,Z);EQ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.l=b;this.isTemplated()||g.ae(this.element,GO(this.l));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?SP(a):"",c=this.api.getVideoData()&&this.api.getVideoData().uo,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}this.show()};
EQ.prototype.isTemplated=function(){return this.l.isTemplated||!1};
EQ.prototype.clear=function(){this.hide()};g.t(g.GQ,g.A);g.h=g.GQ.prototype;g.h.show=function(a){1!=this.g&&2!=this.g&&(4==this.g&&this.Go(),5==this.g?(this.l.show(),this.g=null,this.i.stop(),this.o&&this.o()):this.l.Fa()||(HQ(this,!0),this.g=1,a?this.i.start(a):this.Go()))};
g.h.hide=function(){4!=this.g&&(1==this.g||2==this.g?(this.l.hide(),this.g=null,this.i.stop()):this.l.Fa()&&(HQ(this,!0),this.g=4,this.i.start(this.B)))};
g.h.Go=function(){switch(this.g){case 1:this.l.show();this.g=2;this.i.start(10);break;case 2:HQ(this,!1);this.g=3;this.i.start(this.A);break;case 3:this.g=null;this.o&&this.o();break;case 4:this.l.hide();HQ(this,!1);this.g=5;this.i.start(0);break;case 5:this.g=null,this.u&&this.u()}};
g.h.stop=function(){for(;null!=this.g&&5!=this.g;)this.i.stop(),this.Go()};
g.h.U=function(){this.l.fa()||this.l.element.removeAttribute("aria-hidden");g.A.prototype.U.call(this)};g.t(IQ,AQ);g.h=IQ.prototype;
g.h.init=function(a,b,c){AQ.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;g.Fa(a)&&0>a&&g.L(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.ma&&g.H(this.o.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.I=null==a||0===a?this.l.Hy():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.u.init(Y("ad-text"),d,c);this.api.getVideoData()&&this.api.getVideoData().uo&&
b.thumbnail?this.B.init(Y("ad-image"),b.thumbnail,c):this.T.hide()};
g.h.af=function(){this.H.show(100);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){this.o.hide();this.u.hide();this.B.hide();CQ(this);AQ.prototype.hide.call(this)};
g.h.show=function(){BQ(this);this.o.show();this.u.show();this.B.show();AQ.prototype.show.call(this)};
g.h.vh=function(){this.hide()};
g.h.Dg=function(){if(null!=this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.X&&a>=this.I?(g.O(g.X(this.api).experiments,"enable_pubsub_for_skip_transition_bulleit")||this.H.hide(),this.X=!0,this.N("t")):this.u&&this.u.isTemplated()&&(a=Math.max(0,Math.ceil((this.I-a)/1E3)),a!=this.Z&&(FQ(this.u,{TIME_REMAINING:String(a)}),this.Z=a)))}};g.t(JQ,g.A);g.h=JQ.prototype;g.h.U=function(){this.reset();g.A.prototype.U.call(this)};
g.h.reset=function(){g.Ws(this.ca);this.u=!1;this.g&&this.g.stop();this.o.stop();this.i&&(this.i=!1,this.A.play())};
g.h.start=function(){this.reset();this.ca.K(this.l,"mouseover",this.dK,this);this.ca.K(this.l,"mouseout",this.aK,this);this.g?this.g.start():(this.u=this.i=!0,g.zh(this.l,{opacity:this.D}))};
g.h.dK=function(){this.i&&(this.i=!1,this.A.play());this.o.stop();this.g&&this.g.stop()};
g.h.aK=function(){this.u?this.o.start():this.g&&this.g.start()};
g.h.Pu=function(){this.i||(this.i=!0,this.B.play(),this.u=!0)};var nla=lc(function(){return new mla}),sla=lc(function(){return new pla});g.t(MQ,AQ);g.h=MQ.prototype;
g.h.init=function(a,b,c){AQ.prototype.init.call(this,a,b,c);this.H=b;this.ya=tla(this);!b||g.Xb(b)?g.L(Error("SkipButtonRenderer was not specified or empty.")):!b.message||g.Xb(b.message)?g.L(Error("SkipButtonRenderer.message was not specified or empty.")):(a={iconType:"SKIP_NEXT"},b=yQ(a),null==b?g.L(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.B=new g.tD({C:"button",W:["ytp-ad-skip-button","ytp-button"],J:[{C:"span",G:"ytp-ad-skip-button-icon",
J:[b]}]}),g.B(this,this.B),this.B.g(this.u.element),this.o=new EQ(this.api,this.ka,"ytp-ad-skip-button-text"),this.o.init(Y("ad-text"),this.H.message,c),g.B(this,this.o),Vd(this.B.element,this.o.element,0)),g.O(g.X(this.api).experiments,"bulleit_use_touch_events_for_skip")&&MO(this))};
g.h.af=function(){this.T.show();this.show()};
g.h.clear=function(){this.X.reset();this.hide()};
g.h.hide=function(){this.u.hide();this.o&&this.o.hide();CQ(this);AQ.prototype.hide.call(this);NQ(this)};
g.h.onClick=function(a){if(null!=this.B&&(a&&g.qs(a),AQ.prototype.onClick.call(this,a),this.N("u"),!this.ya))this.api.onAdUxClicked(this.componentType)};
g.h.iw=function(){return"skip"};
g.h.show=function(){this.X.start();this.u.show();this.o&&this.o.show();BQ(this);AQ.prototype.show.call(this);g.Do(this.na)};
g.h.vh=function(){this.Z=!0;this.N("v")};
g.h.Dg=function(){!this.Z&&this.ma&&1E3*this.l.getProgressState().current>=this.ma&&(this.Z=!0,this.N("v"))};g.t(OQ,g.N);g.h=OQ.prototype;g.h.Hy=function(){return this.i};
g.h.start=function(){this.l||(this.l=!0,this.Aa.start())};
g.h.stop=function(){this.l&&(this.l=!1,this.Aa.stop())};
g.h.EH=function(){this.g+=100;var a=!1;this.g>this.i&&(this.g=this.i,this.Aa.stop(),a=!0);this.o={seekableStart:0,seekableEnd:this.i/1E3,current:this.g/1E3};this.u&&this.u.Nc(this.o.current);this.N("s");a&&this.N("r")};
g.h.getProgressState=function(){return this.o};g.t(PQ,Z);g.h=PQ.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&b.actionButton.buttonRenderer)if(a=b.durationMilliseconds||0,!g.Fa(a)||0>=a)g.L(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=e&&0<e.length&&
g.wb(g.ad(e[0].url))&&(e[0].url=d.Vd);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.wb(g.ad(e[0].url))&&(e[0].url=d.Ac());e=b.headline;null!=e&&g.wb(g.ad(e.text))&&(e.text=d.author)}this.B.init(Y("ad-image"),b.image,c);this.T.init(Y("ad-text"),b.headline,c);this.I.init(Y("ad-text"),b.description,c);this.H.init(Y("ad-image"),b.backgroundImage,c);this.l=new zQ(this.api,this.ka,["ytp-ad-action-interstitial-action-button"]);g.B(this,this.l);this.l.g(this.na);this.l.init(Y("button"),
b.actionButton.buttonRenderer,c);this.X=b.navigationEndpoint;g.X(this.api).g||(this.ca.K(this.ma,"click",this.cq,this),this.ca.K(this.ea,"click",this.cq,this),this.ca.K(this.Z,"click",this.cq,this));this.o=new OQ(a);g.B(this,this.o);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.o&&(this.A=new MQ(this.api,this.ka,this.o),g.B(this,this.A),this.A.g(this.element),this.A.init(Y("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.o&&(this.u=
new IQ(this.api,this.ka,this.o,!1),g.B(this,this.u),this.u.g(this.element),this.u.init(Y("ad-preview"),a,c));(b=b.countdownRenderer)&&b.timedPieCountdownRenderer&&this.o&&(c=new DQ(this.api,this.ka,this.o),g.B(this,c),c.g(this.element),c.init(Y("timed-pie-countdown"),b.timedPieCountdownRenderer,this.macros));this.show();this.element.focus()}else g.L(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.L(Error("AdActionInterstitialRenderer has no button."));else g.L(Error("AdActionInterstitialRenderer has no background AdImage."));
else g.L(Error("AdActionInterstitialRenderer has no description AdText."));else g.L(Error("AdActionInterstitialRenderer has no headline AdText."));else g.L(Error("AdActionInterstitialRenderer has no image."))};
g.h.clear=function(){g.Ws(this.ca);this.hide()};
g.h.show=function(){QQ(!0);this.l&&this.l.show();this.A&&this.A.show();this.u&&this.u.show();Z.prototype.show.call(this)};
g.h.hide=function(){QQ(!1);this.l&&this.l.hide();this.A&&this.A.hide();this.u&&this.u.hide();Z.prototype.hide.call(this)};
g.h.cq=function(){this.X&&this.ka.Ha(this.X,this.macros)};g.t(RQ,Z);g.h=RQ.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.text?(a=b.durationMilliseconds||0,!g.Fa(a)||0>=a?g.L(Error("durationMilliseconds was specified incorrectly in AdTextInterstitialRenderer with a value of: "+a)):(this.l.init(Y("ad-text"),b.text,c),this.show())):g.L(Error("AdTextInterstitialRenderer has no message AdText."))};
g.h.clear=function(){this.hide()};
g.h.show=function(){SQ(!0);Z.prototype.show.call(this)};
g.h.hide=function(){SQ(!1);Z.prototype.hide.call(this)};
g.h.onClick=function(){};g.t(TQ,Z);
TQ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.L(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new zQ(this.api,this.ka),g.B(this,this.button),this.button.init(Y("button"),b,this.macros),this.button.g(this.element),this.B&&!g.oo(this.button.element,"ytp-ad-clickable")&&g.H(this.button.element,"ytp-ad-clickable"),a&&(this.o=new g.tD({C:"div",G:"ytp-ad-hover-text-container"}),this.A&&
(b=new g.tD({C:"div",G:"ytp-ad-hover-text-callout"}),b.g(this.o.element),g.B(this,b)),g.B(this,this.o),this.o.g(this.element),b=RO(a),Vd(this.o.element,b,0)),this.show())};
TQ.prototype.hide=function(){this.button&&this.button.hide();this.o&&this.o.hide();Z.prototype.hide.call(this)};
TQ.prototype.show=function(){this.button&&this.button.show();Z.prototype.show.call(this)};g.t(UQ,Z);g.h=UQ.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.L(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.$p(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.$p(Error("AdFeedbackRenderer.title was not set.")),xla(this,b)):g.L(Error("AdFeedbackRenderer.reasons were not set."))};
g.h.clear=function(){ws(this.A);ws(this.B);this.u.length=0;this.hide()};
g.h.hide=function(){this.l&&this.l.hide();this.o&&this.o.hide();Z.prototype.hide.call(this)};
g.h.show=function(){this.l&&this.l.show();this.o&&this.o.show();Z.prototype.show.call(this)};
g.h.Ly=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button");this.N("w");this.hide()};
g.h.PL=function(){this.hide()};
VQ.prototype.ha=function(){return this.g.element};
VQ.prototype.isChecked=function(){return this.l.checked};g.t(WQ,Z);g.h=WQ.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.l=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.L(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.L(Error("ConfirmDialogRenderer.cancelLabel was not set.")):yla(this,b):g.L(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.h.clear=function(){g.Ws(this.ca);this.hide()};
g.h.ts=function(){this.hide()};
g.h.rs=function(){var a=this.l.cancelEndpoint;a&&this.ka.Ha(a,this.macros);this.hide()};
g.h.us=function(){var a=this.l.confirmNavigationEndpoint||this.l.confirmEndpoint;a&&this.ka.Ha(a,this.macros);this.hide()};g.t(XQ,WQ);XQ.prototype.ts=function(a){WQ.prototype.ts.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
XQ.prototype.rs=function(a){WQ.prototype.rs.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
XQ.prototype.us=function(a){WQ.prototype.us.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.N("x")};g.t(YQ,Z);g.h=YQ.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.B=b;if(null==b.dialogMessage&&null==b.title)g.L(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.$p(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.l=new zQ(this.api,this.ka,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.B(this,this.l),this.l.init(Y("button"),
a,this.macros),this.l.g(this.element);b.title&&(a=g.yB(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=RO(a[c]);if(!g.wb(d.textContent)){var e=g.Qd("LI");e.appendChild(d);this.H.appendChild(e)}}else g.Th(this.H,!1);b.dialogMessage&&(a=RO(b.dialogMessage,!0),this.Z.appendChild(a));b.confirmLabel&&(a=g.yB(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=(b=b.muteAdRenderer)&&b.buttonRenderer||null)&&(a=b.navigationEndpoint&&b.navigationEndpoint.adFeedbackEndpoint||
null,c=b.navigationEndpoint&&b.navigationEndpoint.confirmDialogEndpoint||null,null==a&&null==c?g.$p(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?Ala(this,a):c&&Bla(this,c),this.u=new zQ(this.api,this.ka,["ytp-ad-info-dialog-mute-button"],"button",!0),g.B(this,this.u),this.u.init(Y("button"),b,this.macros),this.u.da("click",this.SH,this),this.u.g(this.ea)));Cla(this)}};
g.h.clear=function(){ws(this.T);this.hide()};
g.h.hide=function(){this.o?this.o.hide():this.A&&this.A.hide();this.l&&this.l.hide();this.u&&this.u.hide();Z.prototype.hide.call(this)};
g.h.show=function(){this.l&&this.l.show();this.u&&this.u.show();this.I||(zla(this),this.I=!0);Z.prototype.show.call(this)};
g.h.My=function(){this.B&&this.B.confirmServiceEndpoint&&this.ka.Ha(this.B.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button");this.N("z");this.hide()};
g.h.SH=function(){var a=this.o?this.o:this.A;a&&!a.Fa()&&(this.hide(),a.show())};g.t(ZQ,TQ);ZQ.prototype.init=function(a,b,c){TQ.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(Ela(this,a,c),this.show())};
ZQ.prototype.hide=function(){this.button&&this.button.hide();this.l&&this.l.hide();TQ.prototype.hide.call(this)};
ZQ.prototype.show=function(){this.button&&this.button.show();TQ.prototype.show.call(this)};
ZQ.prototype.clear=function(){this.hide()};var Fla={iconType:"CLOSE"};g.t($Q,Z);g.h=$Q.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.u=b;(a=b.contentSupportedRenderer&&b.contentSupportedRenderer.enhancedTextOverlayAdContentRenderer)&&Hla(this,a,b.adInfoRenderer)&&(aR(this,!0),this.show(),this.ya.start())};
g.h.onClick=function(a){var b=this;if(!g.$d(this.Qa,a.target)){Z.prototype.onClick.call(this,a);var c=g.bc(this.macros),d=g.Sh(this.l);c.AW={toString:function(){return d.width.toString()}};
c.AH={toString:function(){return d.height.toString()}};
var e=g.Ph(a,this.l).floor();c.I_X={toString:function(){return e.x.toString()}};
c.NX={toString:function(){return e.x.toString()}};
c.I_Y={toString:function(){return e.y.toString()}};
c.NY={toString:function(){return e.y.toString()}};
c.NM={toString:function(){return b.ma.toString()}};
this.Ea.forEach(function(f){return b.ka.Ha(f,c)});
this.api.pauseVideo()}};
g.h.clear=function(){aR(this,!1);this.ma=0;LO(this,this.l,!1);this.ya.stop();this.hide();this.dispose()};
g.h.show=function(){this.o&&this.o.show();Z.prototype.show.call(this)};
g.h.hide=function(){this.o&&this.o.hide();Z.prototype.hide.call(this)};
g.h.MH=function(){var a=this;Ila(this).forEach(function(b){return a.ka.Ha(b,a.macros)});
this.clear()};
g.h.JH=function(){this.X=2==this.api.getPlayerState(1);this.api.pauseVideo()};
g.h.KH=function(){this.X||2!=this.api.getPlayerState(1)||this.api.playVideo()};
g.h.NH=function(){this.X||2!=this.api.getPlayerState(1)||this.api.playVideo();this.clear()};
g.h.LH=function(a){if(this.I){var b=g.Fd("ytp-ad-button",this.I.element);a.target===this.A&&b&&b.click()}};var cR={iconType:"CLOSE"},gR=new g.vd(320,63);g.t(bR,Z);g.h=bR.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.A=b;this.H=g.gb(this.A.onClickCommands||[]);if(a=this.A.contentSupportedRenderer)a=this.A.contentSupportedRenderer,b=this.A.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.B=g.Fd("ytp-ad-overlay-ad-info-button-container",this.u.element),eR(this,b),a=Nla(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.B=g.Fd("ytp-ad-overlay-ad-info-button-container",this.o.element),eR(this,b),a=Ola(this,a.enhancedTextOverlayAdContentRenderer)):
a.imageOverlayAdContentRenderer?(this.B=g.Fd("ytp-ad-overlay-ad-info-button-container",this.l.element),eR(this,b),a=Pla(this,a.imageOverlayAdContentRenderer)):(g.L(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),hR(this,!0))};
g.h.Va=function(a){fR(this,a)&&this.clear()};
g.h.clear=function(){hR(this,!1);this.Z.reset();this.I=0;this.u.hide();LO(this,this.u.element,!1);this.o.hide();LO(this,this.o.element,!1);this.l.hide();LO(this,this.l.element,!1);this.hide();this.dispose()};
g.h.EL=function(){this.ma&&this.ka.Ha(this.ma,this.macros);this.api.pauseVideo()};
g.h.ds=function(){var a=this;Mla(this).forEach(function(b){return a.ka.Ha(b,a.macros)});
this.clear()};
g.h.OH=function(){this.ea=2==this.api.getPlayerState(1);this.api.pauseVideo()};
g.h.PH=function(){this.ea||2!=this.api.getPlayerState(1)||this.api.playVideo()};
g.h.RH=function(){this.ea||2!=this.api.getPlayerState(1)||this.api.playVideo();this.clear()};
g.h.QH=function(a){a.target===this.B&&g.Fd("ytp-ad-button",this.na.element).click()};g.t(iR,AQ);g.h=iR.prototype;g.h.init=function(a,b,c){AQ.prototype.init.call(this,a,b,c);a=b.durationMs;g.Fa(a)&&0>=a&&g.L(Error("durationMs was specified incorrectly in AdMessageRenderer with a value of: "+a));a=b.durationMs;this.B=null==a||0===a?0:a+1E3*this.l.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.o.init(Y("ad-text"),d,c);this.o.g(this.u.element);this.H.show(100);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){jR(this,!1);AQ.prototype.hide.call(this);this.u.hide();this.o.hide();CQ(this)};
g.h.show=function(){jR(this,!0);AQ.prototype.show.call(this);BQ(this);this.u.show();this.o.show()};
g.h.vh=function(){this.hide()};
g.h.Dg=function(){if(null!=this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.I&&a>=this.B?(this.H.hide(),this.I=!0):this.o&&this.o.isTemplated()&&(a=Math.max(0,Math.ceil((this.B-a)/1E3)),a!=this.T&&(FQ(this.o,{TIME_REMAINING:String(a)}),this.T=a)))}};g.t(kR,Z);g.h=kR.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.I=b;a=this.I.seekableDurationMilliseconds;this.T=g.Fa(a)?a:5E3;var d=b&&b.preSeekRenderer&&b.preSeekRenderer.adPreviewRenderer||null,e=b&&b.seekableRenderer&&b.seekableRenderer.skipButtonRenderer||null;if(null==e)g.L(Error("SeekableRenderer was not set in SeekAdRenderer."));else if(a=b&&b.notSeekedRenderer&&b.notSeekedRenderer.skipButtonRenderer||null,null==a)g.L(Error("NotSeekedRenderer was not set in SeekAdRenderer."));else if(b&&b.postSeekRenderer&&
b.postSeekRenderer.adPreviewRenderer||b&&b.postSeekRenderer&&b.postSeekRenderer.skipButtonRenderer){d&&(this.o=new IQ(this.api,this.ka,this.B,!1),this.o.init(Y("ad-preview"),d,c),this.o.subscribe("t",this.AK,this),g.B(this,this.o),this.o.g(this.element),this.o.af());this.l=new MQ(this.api,this.ka,this.B);this.l.init(Y("skip-button"),e,c);this.l.subscribe("u",this.kL,this);d=this.T;this.o&&(d+=this.o.I);this.l.ma=d;this.l.subscribe("v",this.lL,this);g.B(this,this.l);this.l.g(this.element);null==this.o&&
this.l.af();this.A=new MQ(this.api,this.ka,this.B);this.A.init(Y("skip-button"),a,c);g.B(this,this.A);this.A.g(this.element);a:{b=b.postSeekRenderer;if(b.adPreviewRenderer){b=b.adPreviewRenderer;a=this.B;if(this.Z){a=b.durationMilliseconds;if(null==a||0==a){g.L(Error("durationMilliseconds must be specified for persistingAdPreviewRenderer"));break a}this.H=new OQ(a,this.ka,!1);g.B(this,this.H);a=this.H}this.u=new IQ(this.api,this.ka,a,!1);this.u.init(Y("ad-preview"),b,c)}else b.skipButtonRenderer&&
(this.u=new MQ(this.api,this.ka,this.B),this.u.init(Y("skip-button"),b.skipButtonRenderer,c));g.B(this,this.u);this.u.g(this.element)}this.show()}else g.L(Error("PostSeekRenderer was not set in SeekAdRenderer."))};
g.h.show=function(){this.o?this.o.show():this.l&&!this.l.Fa()&&this.l.show();Z.prototype.show.call(this)};
g.h.clear=function(){this.o&&this.o.clear();this.l&&this.l.clear();this.A&&this.A.clear();this.u&&this.u.clear();Z.prototype.hide.call(this)};
g.h.hide=function(){this.o&&this.o.hide();this.l&&this.l.hide();this.A&&this.A.hide();this.u&&this.u.hide();Z.prototype.hide.call(this)};
g.h.AK=function(){this.o&&this.o.H.hide();this.l&&this.l.af()};
g.h.kL=function(){this.X=!0;if(this.l){var a=this.l;a.T.hide();NQ(a)}this.u&&(this.H&&this.H.start(),this.u.af())};
g.h.lL=function(){if(!this.X){if(this.l){var a=this.l;a.T.hide();NQ(a)}this.A&&this.A.af()}};g.t(lR,AQ);g.h=lR.prototype;
g.h.init=function(a,b,c){AQ.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.Xb(a)?null:a){this.B=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==tv(g.X(this.api).experiments,"preskip_button_style_ads_backend")&&oz(g.X(this.api));this.o=new IQ(this.api,this.ka,this.l,d);this.o.init(Y("preskip-component"),a,c);this.o.af();g.B(this,this.o);this.o.g(this.element);g.O(g.X(this.api).experiments,
"enable_pubsub_for_skip_transition_bulleit")&&this.o.subscribe("t",this.DK,this)}else b.skipOffsetMilliseconds&&(this.B=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Xb(b)?null:b;null==b?g.L(Error("SkipButtonRenderer was not set in player response.")):(this.u=new MQ(this.api,this.ka,this.l),this.u.init(Y("skip-button"),b,c),g.B(this,this.u),this.u.g(this.element),this.show())};
g.h.show=function(){this.H&&this.u?this.u.show():this.o&&this.o.show();BQ(this);AQ.prototype.show.call(this)};
g.h.vh=function(){};
g.h.clear=function(){this.o&&this.o.clear();this.u&&this.u.clear();CQ(this);AQ.prototype.hide.call(this)};
g.h.hide=function(){this.o&&this.o.hide();this.u&&this.u.hide();CQ(this);AQ.prototype.hide.call(this)};
g.h.DK=function(){mR(this,!0)};
g.h.Dg=function(){g.O(g.X(this.api).experiments,"enable_pubsub_for_skip_transition_bulleit")?this.o||1E3*this.l.getProgressState().current>=this.B&&mR(this,!0):1E3*this.l.getProgressState().current>=this.B&&mR(this,!0)};g.t(nR,Z);nR.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.skipAd&&(a=b.skipAd,a.seekAdRenderer?(b=new kR(this.api,this.ka,this.l,!0),b.g(this.o),b.init(Y("seek-ad"),a.seekAdRenderer,this.macros),g.B(this,b)):a.skipAdRenderer&&(b=new lR(this.api,this.ka,this.l),b.g(this.o),b.init(Y("skip-button"),a.skipAdRenderer,this.macros),g.B(this,b)));this.show()};g.t(qR,AQ);g.h=qR.prototype;g.h.init=function(a,b,c){AQ.prototype.init.call(this,a,b,c);if(b.templatedCountdown){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.$p(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.o=new EQ(this.api,this.ka);this.o.init(Y("ad-text"),a,{});this.o.g(this.element);g.B(this,this.o)}this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){CQ(this);AQ.prototype.hide.call(this)};
g.h.vh=function(){this.hide()};
g.h.Dg=function(){if(null!=this.l){var a=this.l.getProgressState();if(null!=a&&null!=a.current&&this.o){a=(this.l instanceof OQ?a.seekableEnd:this.api.getDuration(2))-a.current;var b=g.oR(a);FQ(this.o,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.h.show=function(){BQ(this);AQ.prototype.show.call(this)};g.t(rR,EQ);rR.prototype.onClick=function(a){EQ.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.t(sR,AQ);g.h=sR.prototype;
g.h.init=function(a,b,c){AQ.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.actionButton&&b.actionButton.buttonRenderer&&b.actionButton.buttonRenderer.navigationEndpoint){a=this.api.getVideoData(2);if(null!=a)if(b.image&&b.image.thumbnail){var d=b.image.thumbnail.thumbnails;null!=d&&0<d.length&&g.wb(g.ad(d[0].url))&&(d[0].url=a.Vd)}else g.L(Error("FlyoutCtaRenderer does not have image.thumbnail."),"WARNING");this.H.init(Y("ad-image"),b.image,c);this.B.init(Y("ad-text"),
b.headline,c);this.u.init(Y("ad-text"),b.description,c);this.o.init(Y("button"),b.actionButton.buttonRenderer,c);this.I=b.actionButton.buttonRenderer.navigationEndpoint;this.show();this.T=b.startMs||0;BQ(this)}else g.L(Error("FlyoutCtaRenderer has no valid action button."));else g.L(Error("FlyoutCtaRenderer has no description AdText."));else g.L(Error("FlyoutCtaRenderer has no headline AdText."));else g.L(Error("FlyoutCtaRenderer has no image."))};
g.h.onClick=function(a){AQ.prototype.onClick.call(this,a);this.api.pauseVideo();!g.$d(this.o.element,a.target)&&this.I&&this.ka.Ha(this.I,this.macros)};
g.h.Dg=function(){if(this.l){var a=this.l.getProgressState();a&&a.current&&1E3*a.current>=this.T&&(CQ(this),g.qo(this.element,"ytp-flyout-cta-inactive"))}};
g.h.vh=function(){this.clear()};
g.h.clear=function(){this.hide()};
g.h.show=function(){this.o&&this.o.show();AQ.prototype.show.call(this)};
g.h.hide=function(){this.o&&this.o.hide();AQ.prototype.hide.call(this)};g.t(tR,Z);g.h=tR.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.o=b;if(null==b.defaultText&&null==b.defaultIcon)g.L(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.L(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.H(this.u,a)}a={};b.defaultText?
(c=g.yB(b.defaultText),g.wb(c)||(a.buttonText=c,this.l.setAttribute("aria-label",c))):g.Th(this.T,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip);b.defaultIcon?(c=yQ(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.H=!0,c=yQ(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.Th(this.B,!0),g.Th(this.A,!1)),g.Th(this.l,!1)):g.Th(this.X,!1);g.Xb(a)||this.update(a);b.isToggled&&(g.H(this.u,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));
uR(this);this.I=this.K(this.element,"change",this.Jy);g.O(g.X(this.api).experiments,"bulleit_use_touch_events_for_magpie")&&MO(this,this.I);this.show()}};
g.h.onClick=function(a){0<this.P.length&&(this.toggleButton(!this.isToggled()),this.Jy());Z.prototype.onClick.call(this,a)};
g.h.Jy=function(){var a=this;g.I(this.u,"ytp-ad-toggle-button-toggled",this.isToggled());Qla(this,this.isToggled()).forEach(function(b){return a.ka.Ha(b,a.macros)});
if(this.isToggled())this.api.onAdUxClicked("toggle-button");uR(this)};
g.h.clear=function(){this.hide()};
g.h.toggleButton=function(a){g.I(this.u,"ytp-ad-toggle-button-toggled",a);this.l.checked=a;uR(this)};
g.h.isToggled=function(){return this.l.checked};g.t(vR,Z);g.h=vR.prototype;g.h.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);this.l=b;this.l.rectangle&&(Rla(this,c),g.O(g.X(this.api).experiments,"bulleit_use_touch_events_for_magpie")&&MO(this,this.B),this.A.show(100),this.show(),(this.l&&this.l.impressionCommands||[]).forEach(function(e){return d.ka.Ha(e,d.macros)}))};
g.h.clear=function(){this.hide()};
g.h.hide=function(){this.u.hide();this.o.hide();Z.prototype.hide.call(this)};
g.h.show=function(){this.u.show();this.o.show();Z.prototype.show.call(this)};
g.h.Ky=function(){var a=this.element,b=!g.oo(a,"ytp-ad-instream-user-sentiment-selected");g.I(a,"ytp-ad-instream-user-sentiment-selected",b);this.l.postMessageAction&&this.api.la("onYtShowToast",this.l.postMessageAction);this.A.hide()};
g.h.onClick=function(a){0<this.P.length&&this.Ky();Z.prototype.onClick.call(this,a)};g.t(wR,zQ);
wR.prototype.init=function(a,b,c){zQ.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.yB(b.text),a=!g.wb(a));a?null==b.navigationEndpoint?g.$p(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.$p(Error("Button style was not a link-style type in renderer,")):(g.O(g.X(this.api).experiments,"bulleit_use_touch_events_for_visit_advertiser")&&MO(this),this.show(),b=g.X(this.api).experiments,g.O(b,"enable_visibility_check_for_visit_advertiser_in_bulleit")&&(this.u=
LQ(this.element,"visit_advertiser",g.P(b,"visibility_error_html_dump_sample_rate")))):g.$p(Error("No visit advertiser text was present in the renderer."))};
wR.prototype.hide=function(){zQ.prototype.hide.call(this);this.u&&(this.u(),this.u=null)};g.t(xR,Z);xR.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);a=b.text;g.wb(GO(a))?g.$p(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.l&&(b=g.X(this.api),b=a.text+" "+(b&&b.g?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new EQ(this.api,this.ka),a.init(Y("simple-ad-badge"),b,c),a.g(this.element),g.B(this,a)),this.show())};
xR.prototype.clear=function(){this.hide()};yR.prototype.getLength=function(){return this.g-this.i};g.t(BR,g.tD);BR.prototype.A=function(){var a=this.o.getProgressState();a=AR(new yR(a.seekableStart,a.seekableEnd),a.current,0);this.D.style.width=100*a+"%"};
BR.prototype.B=function(){g.vz(g.X(this.u))||(2==this.u.getPresentingPlayerType()?-1===this.l&&(this.show(),this.l=this.o.subscribe("s",this.A,this),this.A()):-1!==this.l&&(this.hide(),this.o.Mf(this.l),this.l=-1))};g.t(DR,Z);
DR.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.seekAdRenderer?(c=new kR(this.api,this.ka,this.l),c.g(this.u),c.init(Y("seek-ad"),a.seekAdRenderer,this.macros),g.B(this,c)):a.skipAdRenderer?(c=new lR(this.api,this.ka,this.l),c.g(this.u),c.init(Y("skip-button"),a.skipAdRenderer,this.macros),g.B(this,c)):a.adPreviewRenderer&&(c=new IQ(this.api,this.ka,this.l,!1),c.g(this.u),c.init(Y("ad-preview"),a.adPreviewRenderer,this.macros),
c.af(),g.B(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=new vR(this.api,this.ka),c.g(this.H),c.init(Y("instream-user-sentiment"),a,this.macros),g.B(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new sR(this.api,this.ka,this.l),g.B(this,c),c.g(this.B),c.init(Y("flyout-cta"),a.flyoutCtaRenderer,this.macros)));b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"\uad11\uace0",isTemplated:!1}}),
c=new xR(this.api,this.ka,!0),g.B(this,c),c.g(this.o),c.init(Y("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),c=new qR(this.api,this.ka,this.l),g.B(this,c),c.g(this.o),c.init(Y("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(a=b.adInfoRenderer,a.adHoverTextButtonRenderer&&(c=new ZQ(this.api,this.ka,this.element),g.B(this,
c),c.g(this.o),c.init(Y("ad-info-hover-text-button"),a.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(a=CR(this)&&this.A?this.A:this.o))&&(c=new wR(this.api,this.ka),g.B(this,c),c.g(a),c.init(Y("visit-advertiser"),b.buttonRenderer,this.macros));(b=g.X(this.api))&&!ez(b)&&"3"==b.l&&(b=new BR(this.api,this.l),b.g(this.I),g.B(this,b));this.show()};
DR.prototype.clear=function(){this.hide()};g.t(ER,Z);
ER.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.u=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new zQ(this.api,this.ka,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.g(this.o),a.init(Y("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.l=new tR(this.api,this.ka,["ytp-ad-survey-answer-toggle-button"]),this.l.g(this.o),g.B(this,this.l),this.l.init(Y("survey-answer-button"),
b.answer.toggleButtonRenderer,c));this.show()};
ER.prototype.clear=function(){this.hide()};g.t(FR,Z);FR.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.l=new tR(this.api,this.ka,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.l.g(this.o),this.l.init(Y("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.t(GR,zQ);GR.prototype.init=function(a,b,c){zQ.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.yB(b.text),a=!g.wb(b));a||g.$p(Error("No submit text was present in the renderer."))};
GR.prototype.onClick=function(a){this.N("C");zQ.prototype.onClick.call(this,a)};g.t(HR,Z);
HR.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.o=c;if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new lR(this.api,this.ka,this.A),c.g(this.H),c.init(Y("skip-button"),a,this.o),g.B(this,c),this.l=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new IQ(this.api,this.ka,this.A,!1),c.g(this.H),c.init(Y("ad-preview"),a,this.o),c.af(),g.B(this,c),this.l=c);null==this.l&&g.L(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new GR(this.api,this.ka),c.g(this.I),c.init(Y("survey-submit"),a,this.o),g.B(this,c),this.u=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new xR(this.api,this.ka,!0),c.g(this.B),c.init(Y("simple-ad-badge"),a,this.o),g.B(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new qR(this.api,this.ka,this.A),c.g(this.B),c.init(Y("ad-duration-remaining"),a,this.o),g.B(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&
(a=new ZQ(this.api,this.ka,this.element),g.B(this,a),a.g(this.B),a.init(Y("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
HR.prototype.clear=function(){this.hide()};g.t(IR,Z);IR.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);Tla(this)};
IR.prototype.show=function(){this.A=(0,g.D)();Z.prototype.show.call(this)};
IR.prototype.lA=function(){};
IR.prototype.Jn=function(a){a instanceof FN&&a.g&&(this.l.start(),this.A=(0,g.D)())};g.t(LR,IR);g.h=LR.prototype;g.h.init=function(a,b,c){var d=this;IR.prototype.init.call(this,a,b,c);b.questionText&&g.ae(this.T,g.yB(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&JR(d,e.instreamSurveyAdAnswerRenderer,c)});
this.H=new Set(this.u.map(function(e){return e.l.l}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&Ula(this,a,c);b.surveyAdQuestionCommon?KR(this,b.surveyAdQuestionCommon):g.L(Error("SurveyAdQuestionCommon was not sent.MultiSelectQuestionRenderer: "+JSON.stringify(b)));b.submitEndpoints&&(this.X=b.submitEndpoints);this.K(this.element,"change",this.TH);this.show()};
g.h.lA=function(){MR(this,!1);this.B.u.subscribe("C",this.CL,this)};
g.h.TH=function(a){a.target==this.o.l.l?Vla(this):this.H.has(a.target)&&(this.o.l.toggleButton(!1),MR(this,!0))};
g.h.CL=function(){var a=this,b=this.u.reduce(function(d,e){var f=e.u;e.l&&e.l.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.X.map(function(d){if(!d.loggingUrls)return d;
d=g.cc(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=ch(e.baseUrl,b));return e});
return d});
c&&c.forEach(function(d){return a.ka.Ha(d,a.macros)})};
g.h.clear=function(){g.O(g.X(this.api).experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.t(NR,IR);NR.prototype.init=function(a,b,c){var d=this;IR.prototype.init.call(this,a,b,c);b.questionText&&g.ae(this.T,g.yB(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&JR(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?KR(this,b.surveyAdQuestionCommon):g.L(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
NR.prototype.clear=function(){g.O(g.X(this.api).experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.t(OR,Z);
OR.prototype.init=function(a,b,c,d){var e=this;Z.prototype.init.call(this,a,b,c);null!=d&&d instanceof FN&&(b.titleText&&g.ae(this.u,g.yB(b.titleText)),b.questions.forEach(function(f){if(f.instreamSurveyAdSingleSelectQuestionRenderer){f=f.instreamSurveyAdSingleSelectQuestionRenderer;var k=new NR(e.api,e.ka,d.g);k.g(e.o);k.init(Y("survey-question-single-select"),f,c);e.l.push(k);g.B(e,k)}else f.instreamSurveyAdMultiSelectQuestionRenderer&&(f=f.instreamSurveyAdMultiSelectQuestionRenderer,k=new LR(e.api,
e.ka,d.g),k.g(e.o),k.init(Y("survey-question-multi-select"),f,c),e.l.push(k),g.B(e,k))}),this.show())};
OR.prototype.Jn=function(a){this.l.forEach(function(b){return b.Jn(a)})};
OR.prototype.clear=function(){g.O(g.X(this.api).experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.t(PR,Z);
PR.prototype.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if(!g.Fa(a)||0>a)g.L(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&b.ctaButton.buttonRenderer)if(b.brandImage)if(b.backgroundImage&&b.backgroundImage.thumbnailLandscapePortraitRenderer&&b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape){this.o?QR(this.I,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape):this.H&&
QR(this.H,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);QR(this.Z,b.brandImage);g.ae(this.ea,g.yB(b.text));this.o?(this.l=new zQ(this.api,this.ka,["ytp-ad-survey-interstitial-action-button-fp"]),g.B(this,this.l),this.l.g(this.X)):this.B&&(this.l=new zQ(this.api,this.ka,["ytp-ad-survey-interstitial-action-button"]),g.B(this,this.l),this.l.g(this.B));this.l.init(Y("button"),b.ctaButton.buttonRenderer,c);this.l.show();var e=b.timeoutCommands;this.A=new OQ(1E3*a);this.A.subscribe("r",
function(){d.u.hide();e.forEach(function(f){return d.ka.Ha(f,c)});
d.o&&d.ka.Ha({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)});
g.B(this,this.A);this.K(this.element,"click",function(f){return Xla(d,f,b)});
this.u.show(100);b.impressionCommands&&b.impressionCommands.forEach(function(f){return d.ka.Ha(f,c)})}else g.L(Error("SurveyTextInterstitialRenderer has no landscape background image."));
else g.L(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.L(Error("SurveyTextInterstitialRenderer has no button."));else g.L(Error("SurveyTextInterstitialRenderer has no text."));else g.L(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
PR.prototype.clear=function(){this.hide()};
PR.prototype.show=function(){RR(!0);Z.prototype.show.call(this)};
PR.prototype.hide=function(){RR(!1);Z.prototype.hide.call(this)};g.t(SR,Z);g.h=SR.prototype;
g.h.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);this.l&&(this.l.cancel(),this.l=null);this.l=new jg(g.Ha);b.bannerImage?b.iconImage?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?b.navigationEndpoint?(b.adInfoRenderer&&b.adInfoRenderer.adHoverTextButtonRenderer?this.xc.init(Y("watch-ad-info-hover-button"),b.adInfoRenderer.adHoverTextButtonRenderer,c):g.L(Error("ActionCompanionAdRenderer has no ad info renderer.")),this.u.init(Y("ad-image"),b.bannerImage,
c),this.X.init(Y("ad-image"),b.iconImage,c),this.B.init(Y("ad-text"),b.headline,c),this.A.init(Y("ad-text"),b.description,c),this.o.init(Y("button"),b.actionButton.buttonRenderer,c),g.ae(this.i["yt-badge-ad"],"\uad11\uace0"),this.T=b.impressionCommands||[],this.H=b.navigationEndpoint,this.ca.K(this.element,"click",this.hK,this),Promise.race([this.l,this.Z.showCompanion(this.element,300,250)]).then(function(){return d.show()})):g.L(Error("ActionCompanionAdRenderer has no navigation endpoint.")):g.L(Error("ActionCompanionAdRenderer has no button.")):
g.L(Error("ActionCompanionAdRenderer has no description string.")):g.L(Error("ActionCompanionAdRenderer has no headline string.")):g.L(Error("ActionCompanionAdRenderer has no icon image.")):g.L(Error("ActionCompanionAdRenderer has no banner image."))};
g.h.clear=function(){g.Ws(this.ca);this.hide()};
g.h.show=function(){var a=this;this.o.show();Z.prototype.show.call(this);this.T.forEach(function(b){return a.ka.Ha(b,a.macros)})};
g.h.hide=function(){this.o.hide();Z.prototype.hide.call(this)};
g.h.hK=function(a){a=a.target;g.$d(this.xc.element,a)||(this.H&&!g.$d(this.o.element,a)&&this.ka.Ha(this.H,this.macros),this.api.onAdUxClicked("action-companion"),this.api.pauseVideo())};
g.h.U=function(){this.l&&(this.l.cancel(),this.l=null);Z.prototype.U.call(this)};g.t(TR,g.A);TR.prototype.U=function(){this.A&&g.mq(this.A);this.l&&(this.l.cancel(),this.l=null);this.u&&g.mq(this.u);this.g&&(this.g.cancel(),this.g=null);this.i&&(this.i.cancel(),this.i=null);this.o&&(this.o.stop(),this.o=null);g.A.prototype.U.call(this)};g.t($R,Z);$R.prototype.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);this.l&&(this.l.cancel(),this.l=null);this.l=new jg(g.Ha);"BACKFILL_MPU_TYPE_AFV"==b.type?Promise.race([this.l,ama(this.o)]).then(function(){d.show()}):"BACKFILL_MPU_TYPE_AFC"==b.type&&Promise.race([this.l,
bma(this.o)]).then(function(){d.show()},function(e){e instanceof Cg||dma(d,b)})};
$R.prototype.U=function(){this.l&&(this.l.cancel(),this.l=null);Z.prototype.U.call(this)};g.t(aS,g.W);aS.prototype.clear=function(){for(var a=g.q(this.Ba),b=a.next();!b.done;b=a.next())g.qf(b.value);this.Ba=[]};
aS.prototype.D=function(a){g.qs(a);this.l=Math.max(0,this.l-bS(this));cS(this)};
aS.prototype.B=function(a){g.qs(a);this.l=Math.min(this.Ba.length-1,this.l+bS(this));cS(this)};
aS.prototype.U=function(){this.clear();g.W.prototype.U.call(this)};g.t(dS,SO);g.h=dS.prototype;g.h.ha=function(){return this.Cd.element};
g.h.Ml=function(a){var b=this.Cd,c=new g.W({C:"li",G:"ad-carousel-listitem",J:[{C:"div",G:"ad-carousel-item"}]});c.i["ad-carousel-item"].appendChild(a);b.Ba.push(c);b.A.appendChild(c.element)};
g.h.show=function(){this.Cd.show()};
g.h.hide=function(){this.Cd.hide()};
g.h.clear=function(){this.Cd.clear()};var Pna={ON:"adinfoclick",OP:"offerclick",PP:"offernavclick"};g.t(eS,SO);eS.prototype.show=function(){this.i.show()};
eS.prototype.hide=function(){this.i.hide()};
eS.prototype.md=function(){var a=this;this.i.da("click",function(){a.dispatchEvent({type:"offerclick"})});
for(var b=g.q((this.i.element||document).getElementsByTagName("A")),c=b.next();!c.done;c=b.next())this.i.K(c.value,"click",function(){a.dispatchEvent({type:"offernavclick"})})};
eS.prototype.ha=function(){return this.i.element};var ema={gp:eS};g.t(gS,TO);
gS.prototype.nj=function(a){var b=this.Hc();a=a.renderer;this.g=a.clickthroughEndpoint||null;var c=a.headline||null;fS(b.l,"headline",c);fS(b.g,"headline",c);c=a.merchant||null;fS(b.o,"merchant",c);fS(b.l,"merchant",c);fS(b.g,"merchant",c);c=a.priceText||null;fS(b.o,"price",c);fS(b.l,"price",c);fS(b.g,"price",c);c=(c=a.image&&0<a.image.thumbnails.length?a.image.thumbnails[0].url||null:null)?{C:"img",L:{src:c}}:null;b.o.updateValue("image",c);b.g.updateValue("image",c);a.rating?(c=a.reviewText||null,
g.Qh(b.u.element,Math.floor(100*a.rating/5)+"%"),fS(b.u,"reviewText",c),b.l.updateValue("review",b.u),b.g.updateValue("review",b.u)):(b.l.updateValue("review",null),b.g.updateValue("review",null));this.show();return Promise.resolve()};
gS.prototype.md=function(){for(var a=this,b=g.q(Object.values(Pna)),c=b.next();!c.done;c=b.next())this.Hc().addEventListener(c.value,function(d){return a.onClick(d)})};
gS.prototype.Jk=function(a){switch(void 0===a.type?void 0:a.type){case "offernavclick":this.g&&this.Ha(this.g)}};
gS.prototype.Hc=function(){return this.view};g.t(hS,SO);g.h=hS.prototype;g.h.ha=function(){return this.g.element};
g.h.show=function(){this.g.show()};
g.h.hide=function(){this.g.hide()};
g.h.md=function(){var a=this;this.g.da("click",function(b){g.$d(a.g.i["ad-info-icon"],b.target)&&a.dispatchEvent({type:"adinfoclick"})})};
g.h.U=function(){Zla(this.i);SO.prototype.U.call(this)};var iS={NB:ZO,sC:hS,fp:gS,bp:dS};g.t(jS,TO);g.h=jS.prototype;g.h.Hc=function(){return this.view};
g.h.nj=function(a){var b=this;this.pj();this.Zd=new jg(g.Ha);return Promise.race([this.Zd,this.Hc().o]).then(function(){return b.yp(a.renderer)})};
g.h.yp=function(a){var b=this.Hc(),c=a.shopText||null;c=c?RO(c):null;b.g.updateValue("shopText",c);c=(c=a.sponsoredText||null)?RO(c):null;b.g.updateValue("sponsoredText",c);a.adInfoButton?this.qe.bind({renderer:a.adInfoButton.buttonRenderer.navigationEndpoint.adInfoDialogEndpoint.dialog.adInfoDialogRenderer,macros:this.macros}):this.qe.bind({renderer:{dialogMessage:a.adInfoText},macros:this.macros});a=a.itemList.horizontalListRenderer||null;this.rj();this.Cd.clear();a=g.q(a&&a.items||[]);for(b=a.next();!b.done;b=
a.next())b=b.value.plaShelfItemRenderer,c=new iS.fp(this.Bb,this.jj),this.oh.push(c),c.Ih(this.Cd),c.bind({renderer:b,macros:this.macros});cS(this.Cd.Cd);fma(this);this.show()};
g.h.md=function(){var a=this;this.ca.K(this.Bb,"appresize",this.Va);this.ca.K(this.view,"adinfoclick",function(b){return a.onClick(b)})};
g.h.Va=function(){cS(this.Cd.Cd)};
g.h.Jk=function(a){"adinfoclick"==a.type&&this.qe.show()};
g.h.pj=function(){this.Zd&&(this.Zd.cancel(),this.Zd=null)};
g.h.rj=function(){g.rf(this.oh);this.oh=[]};
g.h.U=function(){this.pj();this.rj();TO.prototype.U.call(this)};g.t(kS,SO);g.h=kS.prototype;g.h.ha=function(){return this.g.element};
g.h.Ml=function(a){this.o++;this.B.appendChild(a);lS(this)};
g.h.show=function(){this.g.show()};
g.h.hide=function(){this.g.hide()};
g.h.clear=function(){this.o=0;g.Ud(this.B)};
g.h.scrollLeft=function(){this.i=Math.max(0,this.i-1);lS(this)};
g.h.U=function(){SO.prototype.U.call(this)};g.t(mS,SO);g.h=mS.prototype;g.h.ha=function(){return this.g.element};
g.h.show=function(){this.g.show()};
g.h.hide=function(){this.g.hide()};
g.h.Ml=function(a){this.g.ob(a)};
g.h.md=function(){var a=this;this.g.da("click",function(){a.dispatchEvent({type:"companionclick"})});
var b=g.Fd("ad-companion-clickthrough",this.g.element);b&&this.g.K(b,"click",function(){a.dispatchEvent({type:"shoptextclick"})})};
g.h.U=function(){SO.prototype.U.call(this);g.qf(this.i)};g.t(nS,SO);nS.prototype.show=function(){this.g.show()};
nS.prototype.hide=function(){this.g.hide()};
nS.prototype.md=function(){var a=this;this.g.da("click",function(){a.dispatchEvent({type:"offerclick"})})};
nS.prototype.ha=function(){return this.g.element};var gma={gp:nS};g.t(oS,TO);oS.prototype.nj=function(a){var b=this.Hc();a=a.renderer;this.g=a.clickthroughEndpoint||null;var c=a.headline||null;c&&g.ae(b.g.i["iv-cards-slider-text"],g.yB(c));(c=a.priceText||null)&&g.ae(b.g.i["iv-cards-slider-action"],g.yB(c));a=a.image&&0<a.image.thumbnails.length?a.image.thumbnails[0].url||null:null;b.g.updateValue("image",a?{C:"img",L:{src:a}}:null);this.show();return Promise.resolve()};
oS.prototype.Jk=function(){this.g&&this.Ha(this.g)};
oS.prototype.Hc=function(){return this.view};var pS={VB:mS,fp:oS,bp:kS};g.t(qS,TO);g.h=qS.prototype;g.h.Hc=function(){return this.view};
g.h.nj=function(a){var b=this;this.pj();this.Zd=new jg(g.Ha);return Promise.race([this.Zd,this.Hc().l]).then(function(){return b.yp(a.renderer)})};
g.h.yp=function(a){this.lv=a.clickTrackingEndpoints||[];this.ls=a.clickToAdvSiteEndpoint||null;var b=this.Hc(),c=a.adBadgeText||null;c&&g.ae(b.g.i["yt-badge-ad"],g.yB(c));(c=a.shopText||null)&&g.ae(b.g.i["ad-companion-clickthrough"],g.yB(c));a.adInfoRenderer&&a.adInfoRenderer.adHoverTextButtonRenderer?this.xc.init(Y("watch-ad-info-hover-button"),a.adInfoRenderer.adHoverTextButtonRenderer,this.macros):g.L(Error("ShoppingCompanionCarouselRenderer has no ad info renderer."));a=a.itemList.horizontalListRenderer||
null;this.rj();this.fg.clear();a=g.q(a&&a.items||[]);for(b=a.next();!b.done;b=a.next())b=b.value.shoppingCompanionCarouselItemRenderer,c=new pS.fp(this.Bb,this.jj),this.oh.push(c),c.Ih(this.fg),c.bind({renderer:b,macros:this.macros});this.show()};
g.h.md=function(){function a(c){return b.onClick(c)}
var b=this;this.Hc().addEventListener("shoptextclick",a);this.Hc().addEventListener("companionclick",a);this.fg.addEventListener("nextbuttonclick",a);this.fg.addEventListener("prevbuttonclick",a)};
g.h.Jk=function(a){switch(void 0===a.type?void 0:a.type){case "companionclick":this.vf(this.lv);this.Bb.onAdUxClicked("shopping-companion");this.Bb.pauseVideo();break;case "nextbuttonclick":a=this.fg;a.i=Math.min(a.o-3,a.i+1);lS(a);break;case "prevbuttonclick":this.fg.scrollLeft();break;case "shoptextclick":this.ls&&this.Ha(this.ls)}};
g.h.rj=function(){g.rf(this.oh);this.oh=[]};
g.h.pj=function(){this.Zd&&(this.Zd.cancel(),this.Zd=null)};
g.h.U=function(){this.pj();this.rj();TO.prototype.U.call(this)};g.t(rS,g.N);g.h=rS.prototype;g.h.Hy=function(){return 1E3*this.g.getDuration(this.o)};
g.h.stop=function(){this.l&&this.i.Na(this.l)};
g.h.Iy=function(){var a=this.g.getProgressState(this.o);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:a.current};this.N("s")};
g.h.getProgressState=function(){return this.u};
g.h.FH=function(a){g.aE(a,2)&&this.N("r")};g.t(tS,g.Us);tS.prototype.A=function(a){if(Array.isArray(a)){a=g.q(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof tL&&this.i(b)}};var Qna=["pla-shelf","shopping-companion","backfill-mpu-companion","action-companion"];g.t(uS,tS);uS.prototype.i=function(a){var b=a.id,c=a.content,d=c.componentType;if(Qna.includes(d)){var e=this.l();switch(a.actionType){case 1:if(this.g.has(b))break;a=sS(d,this.Bb,e);if(!a){g.$p(Error("Unable to create component with type: "+d));break}this.g.set(b,a);case 2:b=this.g.get(b);if(!b)break;b.bind(c);break;case 3:if(c=this.g.get(b))c.dispose(),this.g["delete"](b)}}};
uS.prototype.U=function(){g.rf([].concat(g.ea(this.g.values())))};g.t(vS,tS);
vS.prototype.i=function(a){var b=a.content;switch(b.componentType){case "pla-shelf":switch(a.actionType){case 1:case 2:this.Bb.la("onPlaShelfInfoCardsReady",{renderer:b.renderer,macros:b.macros});break;case 3:this.Bb.la("onPlaShelfInfoCardsReady",{})}break;case "shopping-companion":switch(a.actionType){case 1:case 2:a=this.Bb.getVideoData(1);this.Bb.la("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,macros:b.macros});break;case 3:this.Bb.la("updateKevlarOrC3Companion",{})}break;
case "action-companion":switch(a.actionType){case 1:case 2:a=this.Bb.getVideoData(1);this.Bb.la("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,macros:b.macros});break;case 3:this.Bb.la("updateKevlarOrC3Companion",{})}break;case "backfill-mpu-companion":switch(a.actionType){case 1:case 2:if(!b.renderer)break;var c=this.g(),d=Object.assign({},DO(this.Bb,c),b.macros);a=this.Bb.getVideoData(1);a={contentVideoId:a&&a.videoId,backfillMpuCompanionAdRenderer:b.renderer};
"BACKFILL_MPU_TYPE_AFV"==b.renderer.type?wS(c,b.renderer,d):"BACKFILL_MPU_TYPE_AFC"==b.renderer.type&&(a.afcMpu={logImpression:function(){c.fa()||wS(c,b.renderer,d)},
logNoAd:function(){c.fa()||(b.renderer.noAdEndpoints||[]).forEach(function(e){return c.Ha(e,d)})}});
this.Bb.la("updateKevlarOrC3Companion",a);break;case 3:this.Bb.la("updateKevlarOrC3Companion",{})}}};var Rna="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["pla-shelf","shopping-companion","backfill-mpu-companion","action-companion"]);g.t(xS,tS);
xS.prototype.i=function(a){var b=a.id,c=a.content;if(c){var d=c.componentType;if(!Rna.includes(d))switch(a.actionType){case 1:a=this.u();a=sS(d,this.l,a);if(!a){g.$p(Error("No UI component returned from ComponentFactory for type: "+d));break}Tb(this.g,b)?g.$p(Error("Ad UI component already registered: "+b)):this.g[b]=a;a.bind(c);a.Ih(this.o);break;case 2:b=yS(this,a);if(null==b)break;b.bind(c);break;case 3:c=yS(this,a),null!=c&&(g.qf(c),Tb(this.g,b)?Zb(this.g,b):g.$p(Error("Ad UI component does not exist: "+
b)))}}};
xS.prototype.U=function(){g.rf(Object.values(this.g));this.g={};tS.prototype.U.call(this)};g.t(zS,g.mL);g.h=zS.prototype;g.h.create=function(){this.load();this.created=!0};
g.h.load=function(){g.mL.prototype.load.call(this);this.player.getRootNode().classList.add("ad-created");var a=new jL(this.player);this.g=new CP(this.player,a);this.g.init()};
g.h.destroy=function(){this.unload();this.created=!1};
g.h.unload=function(){g.mL.prototype.unload.call(this);this.player.getRootNode().classList.remove("ad-created");var a=this.g;this.g=null;a.dispose()};
g.h.Gb=function(){return!1};
g.h.bf=function(a){null!==this.g&&this.g.bf(a)};
g.h.getAdState=function(){return this.g?this.g.P:-1};
g.h.Pj=function(){return{}};
g.h.getOptions=function(){return Object.values(Nna)};
g.h.zc=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":var c=b;if(c.url){var d=QL(this.player);Object.assign(d,c.additionalMapping);this.g&&!d.AD_CPN&&(d.AD_CPN=this.g.Z);c=g.Bn(c.url,d)}else c=null;return c;case "isExternalShelfAllowedFor":a:if(b.playerResponse){c=b.playerResponse.adPlacements||[];for(d=0;d<c.length;d++){var e=c[d];if(e.adPlacementRenderer&&e.adPlacementRenderer.renderer&&e.adPlacementRenderer.renderer.plaShelfRenderer){c=!1;break a}}c=!0}else c=!1;return c;default:return null}};g.t(AS,g.N);g.h=AS.prototype;g.h.EG=function(a){a=ps(a);if(!ud(a,this.o)){var b=2;this.A&&(b|=8);this.o=a;this.Fb(b,!0)}};
g.h.WH=function(){this.A&&this.Fb(8,!0);this.Fb(2,!1)};
g.h.Rr=function(a){var b=ps(a);ud(b,this.o)||(this.o=b,(a=g.ms(a))&&this.R(a)&&(this.Fb(4,!0),this.ca.Na(this.l),this.l=this.ca.K(this.i,"mouseover",this.jy),this.H=this.ca.K(this.i,"mouseout",this.jy)))};
g.h.jy=function(a){a=os(a);a&&this.R(a)||(this.o=new g.td(NaN,NaN),BS(this))};
g.h.BE=function(){this.Fb(1,!0)};
g.h.kD=function(a){a=g.ms(a);a instanceof Element&&!(0<a.tabIndex)||this.Fb(1,!0)};
g.h.iy=function(){this.A=!0;this.ca.Na(this.u);this.u=this.ca.K(document,"mouseup",this.FG)};
g.h.FG=function(){this.A=!1;this.Fb(8,!1);this.ca.Na(this.u);this.u=this.ca.K(this.i,"mousedown",this.iy)};
g.h.ky=function(a){if(a=(a=a.changedTouches)&&a[0])this.M=a.identifier,this.ca.Na(this.B),this.B=this.ca.K(this.i,"touchend",this.GG,void 0,!0),this.Fb(1024,!0)};
g.h.GG=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier==this.M){var d=c;break}}d&&(this.ca.Na(this.B),this.B=this.ca.K(this.i,"touchstart",this.ky,void 0,!0),this.Fb(1024,!1))};
g.h.Fb=function(a,b){var c=!this.g;b?(this.g|=a,a&1&&this.D.start(),a&2&&this.F.start()):(this.g&=~a,a&1&&this.D.stop(),a&2&&this.F.stop(),a&512&&this.I.stop());this.g&512&&!(this.g&128)&&g.Do(this.I,this.P);var d=!this.g;c!=d&&this.N("autohideupdate",d)};
g.h.toString=function(){return g.N.prototype.toString.call(this)};g.t(CS,g.W);g.h=CS.prototype;g.h.show=function(){var a=this;this.Fa()||(this.A.K(this.l,"videodatachange",function(){return g.Do(a.o)}),this.A.K(this.l,"videoplayerreset",function(){return g.Do(a.o)}));
g.W.prototype.show.call(this)};
g.h.hide=function(){this.A&&g.Ws(this.A);g.W.prototype.hide.call(this)};
g.h.QG=function(a){var b=g.X(this.l);g.O(b.experiments,"disable_new_pause_state3")&&Cz(b)&&(a=a.state.isCued()&&!a.g.isCued()||LK(this.l)&&g.T(a.state,2),g.zh(this.element,"transition-delay",a?"2s":""));g.Do(this.o)};
g.h.jM=function(){g.Do(this.o)};
g.h.PG=function(){this.u.stop();this.hide();g.Do(this.o)};
g.h.oy=function(){var a=g.IK(this.l);if(3==this.l.getPresentingPlayerType()&&(g.WC(a)||g.T(a,4)))var b=!0;else(b=g.EK(this.l).Pc)&&b.Tn?b=!0:(b=g.X(this.l),b=g.T(a,2)&&FK(this.l)&&b.Ia?!0:!1);b?(b=!0,this.B.style.display="none"):(this.B.style.display="",a.isCued()&&2!=this.l.getPresentingPlayerType()?b=!0:(b=!g.O(g.X(this.l).experiments,"disable_new_pause_state3"),b=!(!g.T(a,2)||FK(this.l)||b&&g.hY(this.l.app))||g.T(a,1024)?!0:!1));b?(this.u.show(),a=this.l.getVideoData(),this.pN(this.l.getPlaylist(),
a)):(this.u.hide(),g.T(a,1)||this.u.stop())};
g.h.pN=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];if(!this.l.getVideoData().vx){b=g.q(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof g.zB&&!c.videoId)){var d=g.JK(this.l).getPlayerSize();var e=g.Dz(),f=d.width*e;e*=d.height;if(1280<f||720<e)if(d=c.Ac("maxresdefault.jpg"))break;if(640<f||480<e)if(d=c.Ac("maxresdefault.jpg"))break;if(320<f||180<e)if(d=c.Ac("sddefault.jpg")||c.Ac("hqdefault.jpg")||c.Ac("mqdefault.jpg"))break;if(d=c.Ac("default.jpg"))break}this.D.style.backgroundImage=
d?"url("+d+")":""}};g.t(ES,g.A);ES.prototype.start=function(a,b,c){this.g=a;this.D=b;this.A=c;this.B=g.M();this.l()};
ES.prototype.l=function(){var a=g.M()-this.B;var b=this.o;a=Sda(b,a/this.A);if(0==a)b=b.B;else if(1==a)b=b.D;else{var c=rd(b.B,b.u,a),d=rd(b.u,b.A,a);b=rd(b.A,b.D,a);c=rd(c,d,a);d=rd(d,b,a);b=rd(c,d,a)}b=g.pd(b,0,1);this.u((this.D-this.g)*b+this.g);1>b&&this.i.start()};g.t(MS,g.W);g.h=MS.prototype;g.h.hide=function(){this.T=!0;g.W.prototype.hide.call(this)};
g.h.show=function(){this.T=!1;g.W.prototype.show.call(this)};
g.h.isHidden=function(){return this.T};
g.h.iH=function(){OS(this,this.A-this.D)};
g.h.jH=function(){OS(this,this.A+this.D)};
g.h.kH=function(a,b){var c=this.l[a],d=c.Cb;if(g.GS(b,this.o,this.Z,d||void 0)){var e=c.ua().videoId;c=c.getPlaylistId();g.IY(this.o.app,e,d,c,void 0,void 0)}};
g.h.wy=function(){var a=this,b=this.o.getVideoData(),c=g.X(this.o);this.Z=b.Pb?!1:c.i;if(b.suggestions){var d=(0,g.Xd)(b.suggestions,function(e){return e&&!e.list});
this.l=(0,g.ge)(d,function(e){e=g.DS(c,e);g.B(a,e);return e})}else this.l.length=0;
jma(this);b.Pb?this.M.update({title:g.UN("$DNI_RELATED_CHANNEL\uc758 \ub3d9\uc601\uc0c1 \ub354\ubcf4\uae30",{DNI_RELATED_CHANNEL:b.author})}):this.M.update({title:"YouTube\uc5d0\uc11c \ub3d9\uc601\uc0c1 \ub354\ubcf4\uae30"})};
g.h.yy=function(a){this.F.element.scrollLeft=-a};g.t(SS,g.W);SS.prototype.show=function(){g.W.prototype.show.call(this);this.F()};
SS.prototype.F=function(){var a=1-1/1.5;this.u=(this.u+this.M)%(this.width*a);this.A=(this.A+this.I)%(this.height*a);this.o.drawImage(this.H,-1*this.u,-1*this.A);this.o.fillRect(0,this.B,this.width,75);this.B=(this.B+75+7)%this.height-75;this.l.isActive()||g.Do(this.D)};
SS.prototype.hide=function(){this.l.stop();this.D.stop();g.W.prototype.hide.call(this)};g.t(VS,g.W);VS.prototype.show=function(){g.W.prototype.show.call(this);WS(this,function(a){a.show()});
this.A&&XS(this,g.JK(this.l).getPlayerSize())};
VS.prototype.hide=function(){g.W.prototype.hide.call(this);WS(this,function(a){a.hide()})};
VS.prototype.F=function(a){if(g.GS(a,this.l,!Cz(g.X(this.l)))){a={as3:!1,html5:!0,player:!0,cpn:this.l.getVideoData().clientPlaybackNonce};var b=this.l;b.la("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:a});b.isFullscreen()&&b.toggleFullscreen()}};
var kma=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.t(aT,g.Us);aT.prototype.u=function(){this.o();var a=this.g.getVideoData();if(a.isValid()){var b=[];g.X(this.g).H||b.push({src:a.Ac("mqdefault.jpg"),sizes:"320x180"});this.i.metadata=new MediaMetadata({title:a.title,artist:a.author,artwork:b});a=LK(this.g);if(this.l.has("nexttrack")!=a){var c=b=null;a&&(b=(0,g.x)(function(){this.g.nextVideo()},this),c=(0,g.x)(function(){this.g.previousVideo()},this));
$S(this,"nexttrack",b);$S(this,"previoustrack",c)}}};
aT.prototype.o=function(){var a=g.IK(this.g);a=a.isError()?"none":g.XC(a)?"playing":"paused";this.i.playbackState=a};
aT.prototype.U=function(){this.i.playbackState="none";this.i.metadata=null;for(var a=g.q(this.l),b=a.next();!b.done;b=a.next())$S(this,b.value,null);g.Us.prototype.U.call(this)};g.t(bT,g.W);bT.prototype.T=function(a,b){cT(this,b);this.B&&dT(this,this.B)};
bT.prototype.P=function(a){var b=this.I.getVideoData();this.o!=b.videoId&&cT(this,b);this.l&&dT(this,a.state);this.B=a.state};
bT.prototype.M=function(){this.A.hide();this.o&&(this.u[this.o]=(this.u[this.o]||0)+((0,g.D)()-this.F));this.F=0};g.t(fT,g.W);fT.prototype.hide=function(){this.l.stop();this.u.style.display="none";g.W.prototype.hide.call(this)};
fT.prototype.A=function(a){eT(this,a.state)};
fT.prototype.B=function(){eT(this,g.IK(this.o))};
fT.prototype.D=function(){this.u.style.display="block"};g.t(hT,g.W);hT.prototype.u=function(){var a=g.U(this.l.app);a&&a.g&&a.g.Cr()};
hT.prototype.o=function(){var a=g.U(this.l.app);g.sD(this,!!a&&a.Wb);this.updateValue("icon",this.l.ri()?g.UP?{C:"div",W:["ytp-icon","ytp-icon-airplay-on"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,L:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
g.UP?{C:"div",W:["ytp-icon","ytp-icon-airplay-off"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.t(g.jT,g.tD);g.jT.prototype.U=function(){this.l=null;g.tD.prototype.U.call(this)};g.t(g.lT,g.W);g.lT.prototype.F=function(a){g.T(a.state,32)?mT(this,this.l.de()):this.Fa()&&(g.T(a.state,16)||g.T(a.state,1))||this.u.hide()};
g.lT.prototype.H=function(){var a=g.IK(this.l);(g.T(a,32)||g.T(a,16))&&nT(this)};
g.lT.prototype.B=function(){this.A=NaN;nT(this)};
g.lT.prototype.hide=function(){this.xd&&mT(this,null);g.W.prototype.hide.call(this)};g.t(oT,g.W);oT.prototype.F=function(){g.$K(this.l,this.element);this.l.la("onFullerscreenEduClicked")};
oT.prototype.o=function(){this.l.isFullscreen()?this.u?this.A.hide():this.A.show():this.hide();g.aL(this.l,this.element,this.l.isFullscreen()&&!this.u)};g.t(pT,g.tD);g.h=pT.prototype;g.h.show=function(){var a=rT(this);g.tD.prototype.show.call(this);this.ga&&(this.H.K(window,"blur",this.nb),this.H.K(document,"click",this.fH));a||this.N("show",!0)};
g.h.hide=function(){var a=rT(this);g.tD.prototype.hide.call(this);qT(this);a&&this.N("show",!1)};
g.h.sd=function(a,b){this.l=a;this.T.show();b?(this.I||(this.I=this.H.K(this.X,"appresize",this.Mu)),this.Mu()):this.I&&(this.H.Na(this.I),this.I=null)};
g.h.nD=function(){this.l&&(this.l.getAttribute("aria-haspopup"),this.l.setAttribute("aria-expanded",!0),g.O(g.X(this.X).experiments,"embeds_enable_new_playlist_killswitch")?document.activeElement&&g.$d(this.l,document.activeElement)&&this.focus():this.focus())};
g.h.Mu=function(){g.ID(this.X).Lk(this.element,this.l)};
g.h.nb=function(){var a=rT(this);qT(this);this.T.hide();a&&this.N("show",!1)};
g.h.Ge=function(a,b){rT(this)?this.nb():this.sd(a,b)};
g.h.fH=function(a){var b=ns(a);b&&(g.$d(this.element,b)||this.l&&g.$d(this.l,b)||!g.pR(a))||this.nb()};g.t(g.tT,g.W);g.h=g.tT.prototype;g.h.SG=function(){g.X(this.o).X?this.o.toggleFullscreen():this.l.Ge(this.element,!0)};
g.h.hz=function(){sT(this);this.l.sd(this.element,!0)};
g.h.TG=function(){Rs()==this.o.getRootNode()?this.A.start():(this.A.stop(),this.l&&this.l.hide())};
g.h.NC=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=.9*window.screen.width,b=.9*window.screen.height,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!=a>b){var e=c;c=d;d=e}a>c&&b>d&&this.hz()}};
g.h.qy=function(){g.sD(this,FS(this.o))};
g.h.GA=function(a){if(a){var b=g.UP?{C:"div",W:["ytp-icon","ytp-icon-full-screen-close"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"g",G:"ytp-fullscreen-button-corner-2",J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{C:"g",G:"ytp-fullscreen-button-corner-3",J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{C:"g",G:"ytp-fullscreen-button-corner-0",J:[{C:"path",Ga:!0,G:"ytp-svg-fill",
L:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{C:"g",G:"ytp-fullscreen-button-corner-1",J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=KS(this.o,"\uc804\uccb4\ud654\uba74 \uc885\ub8cc","f");document.activeElement==this.element&&this.o.getRootNode().focus()}else b=g.UP?{C:"div",W:["ytp-icon","ytp-icon-full-screen"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"g",G:"ytp-fullscreen-button-corner-0",J:[{C:"path",Ga:!0,
G:"ytp-svg-fill",L:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{C:"g",G:"ytp-fullscreen-button-corner-1",J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{C:"g",G:"ytp-fullscreen-button-corner-2",J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{C:"g",G:"ytp-fullscreen-button-corner-3",J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=KS(this.o,"\uc804\uccb4\ud654\uba74",
"f");this.updateValue("icon",b);this.updateValue("title",this.l?null:a);HT(this.B.Za())};
g.h.U=function(){this.l||(this.u(),this.u=null);g.W.prototype.U.call(this)};g.t(uT,g.W);uT.prototype.A=function(){this.l.la("onCollapseMiniplayer");g.$K(this.l,this.element)};
uT.prototype.u=function(){this.o=!this.l.isFullscreen();g.sD(this,this.o);g.aL(this.l,this.element,this.o&&this.R)};
uT.prototype.qb=function(a){g.W.prototype.qb.call(this,a);g.aL(this.l,this.element,this.o&&a)};g.t(vT,pT);g.h=vT.prototype;g.h.show=function(){var a=this.Fa();pT.prototype.show.call(this);a||(this.A.K(this.o,"presentingplayerstatechange",this.Tr),this.A.K(this.o,"videodatachange",this.Tr),this.Tr())};
g.h.hide=function(){this.A&&(g.Ws(this.A),pT.prototype.hide.call(this))};
g.h.Tr=function(){var a=this.o.getVideoData(),b=a.Kg,c;for(c=0;c<b.length;c++){var d=this.u[c];d||(d=new g.W({C:"button",W:["ytp-multicam-menu-item","ytp-button"],L:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},J:[{C:"div",G:"ytp-multicam-menu-item-title",V:"{{cameraName}}"}]}),d.da("click",g.Qa(this.VI,c),this),d.g(this.Ba),this.u[c]=d);var e=b[c],f=e.id;if(f!=d.element.getAttribute("data-id")){var k=e.thumbnail_url;!k&&f&&(k=Bz(g.X(this.o),f,"default.jpg"));d.element.style.backgroundImage=
k?"url("+k+")":""}d.update({cameraName:e.title,videoId:f,selected:f==a.videoId?!0:null})}for(;c<this.u.length;)this.u.pop().dispose();c=g.IK(this.o);a=b.length||!a.Eb();g.XC(c)||g.T(c,4)||a||!rT(this)||this.Ge()};
g.h.VI=function(a){var b=this.o.getVideoData(),c=this.o;a=b.Kg[a];b=g.U(c.app,1).getVideoData();var d=c.getCurrentTime();a.id==b.videoId?g.U(c.app)!=g.U(c.app,1)&&(g.LP(c.app,1),b.sa||c.seekTo(d)):(g.LP(c.app,4),c.app.loadVideoByPlayerVars({videoId:a.id,title:b.title,start:b.sa?null:d,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:b.Oy}}}},4))};
g.h.focus=function(){for(var a=this.o.getVideoData(),b=a.Kg,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.u[c].focus();break}};
g.h.U=function(){g.rf(this.u);pT.prototype.U.call(this)};g.t(wT,g.W);wT.prototype.D=function(a){this.o("newdata"==a)};
wT.prototype.o=function(a){var b=this.B.getVideoData(),c=b.Kg,d=g.IK(this.B);d=(g.XC(d)||g.T(d,4))&&0<c.length;g.sD(this,d);a&&(this.u=!0);if(d){this.u&&g.Do(this.A);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id==b.videoId){a=c[e].title;d=g.UN("$CAMERA_COUNT\ub300 \uc911 $CAMERA_INDEX\ubc88 \ud45c\uc2dc \uc911",{CAMERA_INDEX:String(e+1),CAMERA_COUNT:String(c.length)})+"\n";break}this.update({text:d+a,preview:b.Ac("default.jpg")});HT(this.l)}else this.A.stop()};
wT.prototype.F=function(){LW(this.l,this.element,"\ucd94\uac00 \uce74\uba54\ub77c \uc0ac\uc6a9 \uac00\ub2a5");this.u=!1};g.t(xT,g.A);xT.prototype.i=function(){var a=g.M()-this.o;a=a<this.g?a/this.g:1;this.u(Vo(Sna,a));1>a&&this.l.start()};
var Sna=new Uo(0,0,.4,0,.2,1,1,1),lma=/[0-9.-]+|[^0-9.-]+/g;g.t(ET,g.W);ET.prototype.jc=function(a){this.A=300<=a.width;g.sD(this,this.A);g.aL(this.l,this.element,this.A&&this.R)};
ET.prototype.ga=function(){g.X(this.l).M?this.l.isMuted()?this.l.unMute():this.l.mute():this.X.Ge(this.element,!0);g.$K(this.l,this.element)};
ET.prototype.ea=function(a){DT(this,a.volume,a.muted)};
ET.prototype.qb=function(a){g.W.prototype.qb.call(this,a);g.aL(this.l,this.element,this.A&&a)};
var mma=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],nma=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.t(IT,g.W);IT.prototype.o=function(){this.l.togglePictureInPicture()};g.t(g.KT,g.W);g.KT.prototype.D=function(a){JT(this,a.state)};
g.KT.prototype.A=function(){g.I(this.element,"ytp-play-button-playlist",LK(this.l))};
g.KT.prototype.F=function(){g.XC(g.IK(this.l))?this.l.pauseVideo():this.l.playVideo()};g.t(g.NT,g.W);g.h=g.NT.prototype;g.h.Ai=function(){OT(this);this.D&&(this.Na(this.D),this.D=null);this.O=this.l.getVideoData(1);if(this.u=this.l.getPlaylist())this.u.subscribe("shuffle",this.Ai,this),this.D=this.K(this.l,"progresssync",this.dH);this.B=PT(this);MT(this);this.jc(g.JK(this.l).getPlayerSize())};
g.h.jc=function(a){a=void 0===a?g.JK(this.l).getPlayerSize():a;var b=LK(this.l)||this.o&&g.YK(this.l)||QT(this);g.sD(this,b&&(this.o||400<=a.width))};
g.h.eH=function(a){var b=!0;this.H?b=g.GS(a,this.l):g.qs(a);b&&(this.o&&5==this.l.getPresentingPlayerType()?this.l.N("ytoprerollinternstitialnext"):this.o?this.l.nextVideo(!0):this.B?this.l.seekTo(0):this.l.previousVideo(!0))};
g.h.dH=function(){var a=PT(this);a!=this.B&&(this.B=a,MT(this))};
g.h.U=function(){this.A&&(this.A(),this.A=null);OT(this);g.W.prototype.U.call(this)};RT.prototype.update=function(a,b,c,d){this.width=b;this.l=c;this.u=d;this.g=b-c-d;this.position=g.pd(a,c,c+this.g);this.o=this.position-c;this.i=this.o/this.g};g.t(g.TT,g.tD);g.h=g.TT.prototype;g.h.Nc=function(){XT(this);var a=this.l.getCurrentTime();(a<this.ga||a>this.Z)&&this.jo()};
g.h.hH=function(a){if(!g.rs(a)){var b=!1;switch(g.ts(a)){case 36:this.l.seekTo(0);b=!0;break;case 35:this.l.seekTo(Infinity);b=!0;break;case 34:this.l.seekBy(-60);b=!0;break;case 33:this.l.seekBy(60);b=!0;break;case 38:this.l.seekBy(5);b=!0;break;case 40:this.l.seekBy(-5),b=!0}b&&g.qs(a)}};
g.h.QI=function(a){switch(g.ts(a)){case 13:this.l.seekTo(Number(a.currentTarget.getAttribute("data-position")))}};
g.h.uy=function(a,b){ST(this,b,"newdata"==a)};
g.h.SD=function(){this.uy("newdata",this.l.getVideoData())};
g.h.gH=function(a){this.B&&!g.T(a.state,32)&&3!=this.l.getPresentingPlayerType()&&this.B.cancel()};
g.h.pB=function(a){(this.F=a)?(this.updateValue("clipstarticon",hQ()),this.updateValue("clipendicon",hQ()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",aQ()),this.updateValue("clipendicon",$P()),this.updateValue("clipstarttitle","\uc804\uccb4 \ub3d9\uc601\uc0c1 \ubcf4\uae30"),this.updateValue("clipendtitle","\uc804\uccb4 \ub3d9\uc601\uc0c1 \ubcf4\uae30"));$T(this);UT(this,this.H,this.ea)};
g.h.GK=function(a,b,c){var d=g.Lh(this.element),e=cU(this).g,f=c?c.getAttribute("data-tooltip"):void 0,k=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;k&&(a=AR(this.o,Number(c.getAttribute("data-position")),0)*e+g.Lh(this.Xb).x);this.Ra.x=a-d.x;this.Ra.y=b-d.y;a=cU(this);c=zR(this.o,a.i);b=f||g.oR(this.ab?c-this.o.g:c);a=a.position+this.Ca;c=g.O(g.X(this.l).experiments,"web_player_storyboard_timestamp_killswitch")?c:c-this.l.Ib();d=this.ma;f=!!f;l=l?parseInt(l,
10):0;d.na||(3==d.o&&d.Pe(),1!=d.o&&(d.element.className="ytp-tooltip ytp-bottom",d.o=1,d.P&&d.I.show(),d.u=d.Y.de(),d.u&&d.u.subscribe("l",d.gz,d)),d.update({text:b,title:""}),g.I(d.element,"ytp-text-detail",!!f),b=-1,d.u&&(b=zA(d.u,160*d.A),b=EA(d.u,b,c)),OW(d,b),NW(d,!!f,a,l));g.I(this.l.getRootNode(),"ytp-progress-bar-hover",!g.T(g.IK(this.l),64));WT(this)};
g.h.FK=function(){g.aU(this.ma);g.qo(this.l.getRootNode(),"ytp-progress-bar-hover")};
g.h.EK=function(a,b){this.u&&(this.u.dispose(),this.u=null);this.Yb=b;this.l.seekTo(zR(this.o,cU(this).i),!1);g.H(this.element,"ytp-drag");(this.jb=g.XC(g.IK(this.l)))&&this.l.pauseVideo()};
g.h.HK=function(){this.Ea=0;g.qo(this.element,"ytp-pull-ui");g.qo(this.element,"ytp-pulling");this.u&&(this.u.dispose(),this.u=null);0<this.I&&(this.u=new g.Ao((0,g.x)(this.IC,this,g.M(),this.I,cU(this).position)),this.u.start());if(g.T(g.IK(this.l),32)||3==this.l.getPresentingPlayerType())this.l.seekTo(zR(this.o,cU(this).i)),g.qo(this.element,"ytp-drag"),this.jb&&!g.T(g.IK(this.l),2)&&this.l.playVideo()};
g.h.IC=function(a,b,c){a=1-Math.pow(1-(g.M()-a)/200,3);c+=a*(this.H*this.A-c);if(0>a||1<a)a=1;bU(this,(1-a)*b,c,this.H);1>a&&this.u.start()};
g.h.IK=function(a,b){var c=!1,d=!1,e=cU(this);3600<=this.o.getLength()&&(bU(this,this.Yb-b-10,e.position,e.i),d=!0,c=this.I>.1*(this.D?60:40),e=cU(this));g.I(this.element,"ytp-pull-ui",d);c&&g.H(this.element,"ytp-pulling");c=0;e.l&&0>=e.position?c=-1:e.u&&e.position>=e.width&&(c=1);this.Ea!=c&&(this.Ea=c,this.u&&(this.u.dispose(),this.u=null),c&&(this.u=new g.Ao((0,g.x)(this.JM,this,g.M(),this.M)),this.u.start()));this.l.seekTo(zR(this.o,e.i),!1)};
g.h.JM=function(a,b){var c=this.A*(this.X-1);this.M=g.pd(b+this.Ea*(g.M()-a)*.3,0,c);g.VT(this);this.l.seekTo(zR(this.o,cU(this).i),!1);0<this.M&&this.M<c&&this.u.start()};
g.h.az=function(){this.F||(this.updateValue("clipstarticon",ZP()),this.updateValue("clipendicon",ZP()),g.H(this.element,"ytp-clip-hover"))};
g.h.Zy=function(){this.F||(this.updateValue("clipstarticon",aQ()),this.updateValue("clipendicon",$P()),g.qo(this.element,"ytp-clip-hover"))};
g.h.jo=function(){this.ga=0;this.Z=Infinity;$T(this);UT(this,this.H,this.ea)};
g.h.rB=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.T[c]){var d=g.Rd("DIV");("ytp-chapter-marker"==b.style||b.tooltip)&&d.setAttribute("data-position",b.start/1E3);b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);b.icons&&d.setAttribute("data-offset-y",-12-24*b.icons.length);this.T[c]=b;this.ya[c]=d;if(b.icons&&b.icons.length){for(var e=g.Rd("DIV"),f=g.q(b.icons),k=f.next();!k.done;k=f.next()){k=k.value;var l=g.Rd("IMG");l.src=k.thumbnails[0].url;
l.setAttribute("data-position",b.start/1E3);b.tooltip&&l.setAttribute("data-tooltip",b.tooltip);l.setAttribute("data-offset-y",-12-24*b.icons.length);l.setAttribute("tabindex",0);k.accessibility&&k.accessibility.accessibilityData&&k.accessibility.accessibilityData.label&&(l.alt=k.accessibility.accessibilityData.label);this.tb.K(l,"keydown",this.QI,void 0,!0);e.appendChild(l)}e.className="ytp-marker-icon";g.sb(this.na,b,g.sE);this.P[c]=e;this.Qc.appendChild(e)}d.className=b.style;dU(this,c);"ytp-chapter-marker"==
b.style?this.Oc.appendChild(d):g.O(g.X(this.l).experiments,"disable_ad_markers_on_content_progress_bar")||this.uc.appendChild(d)}}else hU(this,b);eU(this)};
g.h.BM=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())hU(this,b.value);eU(this)};
g.h.U=function(){ZT(this,!1);g.tD.prototype.U.call(this)};g.t(jU,g.vD);jU.prototype.I=function(){kU(this,!this.o);this.N("select",this.o)};
jU.prototype.getValue=function(){return this.o};g.t(lU,jU);lU.prototype.B=function(){g.EK(this.u).l&&3!=this.u.getPresentingPlayerType()?this.l||(aV(this.A,this),this.l=!0):this.l&&(bV(this.A,this),this.l=!1);var a=g.EK(this.u).l;kU(this,!!a&&a.loaded)};
lU.prototype.D=function(a){a?this.u.loadModule("annotations_module"):this.u.unloadModule("annotations_module")};
lU.prototype.U=function(){this.l&&bV(this.A,this);jU.prototype.U.call(this)};g.t(mU,g.tD);mU.prototype.ma=function(){this.N("size-change")};
mU.prototype.focus=function(){this.X.focus()};
mU.prototype.na=function(){this.N("back")};g.t(g.nU,mU);g.nU.prototype.Z=function(){this.D.N("size-change")};
g.nU.prototype.focus=function(){for(var a=0,b=0;b<this.Ba.length;b++)if("true"==this.Ba[b].element.getAttribute("aria-checked")){a=b;break}this.Ba[a].focus()};g.t(g.rU,g.vD);g.h=g.rU.prototype;g.h.open=function(){g.AU(this.o,this.F)};
g.h.le=function(a){sU(this);this.u[a].element.setAttribute("aria-checked",!0);this.ob(this.ze(a));this.D=a};
g.h.Ap=function(a,b,c){b=new g.vD({C:"div",W:["ytp-menuitem"],L:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},J:[{C:"div",W:["ytp-menuitem-label"],V:"{{label}}"}]},b,this.ze(a,!0));b.da("click",(0,g.x)(this.mH,this,a));return b};
g.h.enable=function(a){this.H?a||(this.H=!1,this.Bi(!1)):a&&(this.H=!0,this.Bi(!0))};
g.h.Bi=function(a){a?aV(this.o,this):bV(this.o,this)};
g.h.Lc=function(a){this.N("select",a)};
g.h.mH=function(a){this.Lc(a)};
g.h.ze=function(a){return a.toString()};
g.h.lH=function(a){g.rs(a)||39!=g.ts(a)||(this.open(),g.qs(a))};
g.h.U=function(){this.H&&bV(this.o,this);g.vD.prototype.U.call(this);for(var a in this.u)this.u[a].dispose()};g.t(uU,g.rU);uU.prototype.B=function(){var a=this.l.getAvailableAudioTracks();1<a.length?(g.tU(this,(0,g.ge)(a,this.A)),this.M=g.tb(a,this.A,this),this.I.ob(a.length?" ("+a.length+")":""),this.N("size-change"),this.le(this.A(this.l.getAudioTrack())),this.enable(!0)):this.enable(!1)};
uU.prototype.Lc=function(a){g.rU.prototype.Lc.call(this,a);this.l.setAudioTrack(this.M[a]);this.o.Gd()};
uU.prototype.A=function(a){return a.toString()};g.t(vU,jU);vU.prototype.B=function(){var a=this.l.getPresentingPlayerType();if(2!=a&&3!=a&&g.YK(this.l))this.A||(aV(this.D,this),this.A=!0,this.u.push(this.K(this.l,"videodatachange",this.B)),this.u.push(this.K(this.l,"videoplayerreset",this.B)),this.u.push(this.K(this.l,"onPlaylistUpdate",this.B)),this.u.push(this.K(this.l,"autonavchange",this.F)),a=this.l.getVideoData(),this.F(a.autonavState));else if(this.A){bV(this.D,this);this.A=!1;a=g.q(this.u);for(var b=a.next();!b.done;b=a.next())this.Na(b.value)}};
vU.prototype.F=function(a){kU(this,1!=a)};
vU.prototype.H=function(a){var b=this.l;a=a?2:1;b.app.i.la("onAutonavChangeRequest",1!=a);a&&QY(b.app,a)};
vU.prototype.U=function(){this.A&&bV(this.D,this);jU.prototype.U.call(this)};g.t(g.wU,pT);g.h=g.wU.prototype;g.h.show=function(){pT.prototype.show.call(this);this.Ui()};
g.h.hide=function(){pT.prototype.hide.call(this);1<this.u.length&&g.BU(this)};
g.h.Ui=function(){CU(this);this.Fa()&&(yU(this),g.Rh(this.element,this.size))};
g.h.Gd=function(){var a=this.u.pop(),b=xU(this);zU(this,a,b,!0)};
g.h.ZM=function(a,b,c){this.D.dispose();this.D=null;g.H(this.element,"ytp-popup-animating");c?(g.H(a.element,"ytp-panel-animate-forward"),g.qo(b.element,"ytp-panel-animate-back")):(g.H(a.element,"ytp-panel-animate-back"),g.qo(b.element,"ytp-panel-animate-forward"));g.Rh(this.element,this.size);this.B=new g.J(g.Qa(this.qI,a,b),250,this);this.B.start()};
g.h.qI=function(a){g.qo(this.element,"ytp-popup-animating");g.qD(a);g.ro(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);this.B.dispose();this.B=null};
g.h.WG=function(a){if(!g.rs(a))switch(g.ts(a)){case 27:this.nb();g.qs(a);break;case 37:1<this.u.length&&this.Gd();g.qs(a);break;case 39:g.qs(a)}};
g.h.focus=function(){xU(this).focus()};
g.h.U=function(){pT.prototype.U.call(this);this.D&&this.D.dispose();this.B&&this.B.dispose()};g.t(DU,g.rU);g.h=DU.prototype;g.h.Bk=function(){var a=this.l.getPresentingPlayerType();if(2!=a&&3!=a&&(this.B=g.NK(this.l),a=this.l.getAvailableQualityLevels(),g.VK(this.l)&&g.WK(this.l)&&a.unshift("missing-qualities"),pja(this.l)&&a.unshift("inline-survey"),g.tU(this,a),a.length)){this.vy();this.enable(!0);return}this.enable(!1)};
g.h.vy=function(){var a=this.l.getPreferredQuality();this.u[a]&&(this.A=this.l.getPlaybackQuality(),this.le(a),"auto"==a&&this.ob(this.ze(a)))};
g.h.Lc=function(a){"missing-qualities"!=a&&(g.rU.prototype.Lc.call(this,a),this.l.setPlaybackQuality(a),this.o.nb(),this.Bk())};
g.h.Ap=function(a,b,c){var d=this;if("inline-survey"!=a)return g.rU.prototype.Ap.call(this,a,b,c);a=[{C:"span",V:"\ub9c8\uc74c\uc5d0 \ub4dc\uc2dc\ub098\uc694?"}];c={};for(var e=g.q([!0,!1]),f=e.next();!f.done;c={xl:c.xl},f=e.next())c.xl=f.value,f=new g.W({C:"span",G:"ytp-menuitem-inline-survey-response",J:[c.xl?fQ():cQ()],L:{tabindex:"0",role:"button"}}),f.da("click",function(k){return function(){var l=g.U(d.l.app);l&&(l.Ma("iqsr",""+ +k.xl),l.getVideoData().Vw=!0);d.o.nb();d.Bk()}}(c)),a.push(f);
return new g.vD({C:"div",G:"ytp-menuitem",L:{"aria-disabled":!0},J:[{C:"div",W:["ytp-menuitem-label"],J:a}]},b)};
g.h.ze=function(a,b){b=void 0===b?!1:b;if("missing-qualities"==a)return{C:"a",L:{href:"https://support.google.com/youtube/?p=missing_quality",target:g.X(this.l).A},V:"\ud45c\uc2dc\ub418\uc9c0 \uc54a\ub294 \uc635\uc158\uc774 \uc788\ub098\uc694?"};if("inline-survey"==a)return"";var c=[EU(this,a)],d=this.l.getPreferredQuality();b||"auto"!=d||"auto"!=a||(c.push(" "),c.push(EU(this,this.A,["ytp-menu-label-secondary"])));return{C:"div",J:c}};g.t(FU,g.W);FU.prototype.jc=function(a){g.sD(this,this.A&&400<=a.width)};
FU.prototype.B=function(){if(this.u.Fa())this.u.nb();else{var a=g.EK(this.l).i;a&&!a.loaded&&(a.zc("tracklist",{includeAsr:!0}).length||a.load());this.u.sd(this.element)}};
FU.prototype.o=function(){var a=this.l;if(a=(a=g.U(a.app,a.playerType))?!!(a.O.za&&a.O.za.video&&lw(a.O.za.video)):!1)g.I(this.element,"ytp-hdr-quality-badge",a);else{a=this.l.getPresentingPlayerType();var b=2!=a&&3!=a,c=g.hD(this.l),d=b&&!!g.EK(this.l).u;a=d&&1==c.displayMode;c=d&&2==c.displayMode;b=(d=a||c)||!b?null:this.l.getPlaybackQuality();g.I(this.element,"ytp-hd-quality-badge","hd720"==b||"hd1080"==b||"hd1440"==b);g.I(this.element,"ytp-4k-quality-badge","hd2160"==b);g.I(this.element,"ytp-5k-quality-badge",
"hd2880"==b);g.I(this.element,"ytp-8k-quality-badge","highres"==b);g.I(this.element,"ytp-3d-badge-grey",d&&a);g.I(this.element,"ytp-3d-badge",d&&c)}};g.t(HU,g.W);g.h=HU.prototype;g.h.xL=function(a){if(!g.rs(a)){switch(g.ts(a)){case 37:case 40:var b=-this.H;break;case 39:case 38:b=this.H;break;default:return}this.yh(this.l+b);g.qs(a)}};
g.h.gK=function(a){var b=this.l;b+=0>(a.deltaX||-a.deltaY)?-this.D:this.D;this.yh(b);g.qs(a)};
g.h.uL=function(a){a=(a-g.Lh(this.o).x)/this.I*this.B+this.minimumValue;this.yh(a)};
g.h.yh=function(a,b){b=void 0===b?"":b;var c=g.pd(a,this.minimumValue,this.maximumValue);""==b&&(b=c.toString());this.updateValue("valuenow",c);this.updateValue("valuetext",b);this.T.style.left=(c-this.minimumValue)/this.B*(this.I-this.M)+"px";this.l=c};
g.h.focus=function(){this.P.focus()};g.t(JU,HU);JU.prototype.X=function(){this.A.setPlaybackRate(this.l,!0)};
JU.prototype.yh=function(a){HU.prototype.yh.call(this,a,KU(this,a).toString());this.u&&(IU(this),this.Y())};
JU.prototype.Z=function(){var a=this.A.getPlaybackRate();KU(this,this.l)!=a&&(this.yh(a),IU(this))};g.t(LU,g.tD);LU.prototype.focus=function(){this.l.focus()};g.t(MU,mU);g.t(NU,g.rU);g.h=NU.prototype;g.h.ze=function(a){return"1"==a?"\ubcf4\ud1b5":a.toLocaleString()};
g.h.Ay=function(){var a=this.l.getPresentingPlayerType();this.enable(2!=a&&3!=a);RU(this)};
g.h.Bi=function(a){g.rU.prototype.Bi.call(this,a);a?(this.M=this.K(this.l,"onPlaybackRateChange",this.pH),RU(this),PU(this,this.l.getPlaybackRate())):(this.Na(this.M),this.M=null)};
g.h.pH=function(a){var b=this.l.getPlaybackRate();this.I.includes(b)||QU(this,b);PU(this,a)};
g.h.Lc=function(a){g.rU.prototype.Lc.call(this,a);a==this.A?this.l.setPlaybackRate(this.B,!0):this.l.setPlaybackRate(parseFloat(a),!0);this.o.Gd()};var c_,d_;c_=[{option:"#fff",text:"\ud770\uc0c9"},{option:"#ff0",text:"\ub178\ub780\uc0c9"},{option:"#0f0",text:"\ub179\uc0c9"},{option:"#0ff",text:"\uccad\ub85d\uc0c9"},{option:"#00f",text:"\ud30c\ub780\uc0c9"},{option:"#f0f",text:"\uc790\ud64d\uc0c9"},{option:"#f00",text:"\ube68\uac04\uc0c9"},{option:"#080808",text:"\uac80\uc740\uc0c9"}];d_=[{option:0,text:SU(0)},{option:.25,text:SU(.25)},{option:.5,text:SU(.5)},{option:.75,text:SU(.75)},{option:1,text:SU(1)}];
g.UU=[{option:"fontFamily",text:"\uae00\uaf34 \ubaa8\uc74c",options:[{option:1,text:"\uace0\uc815 \ub108\ube44 Serif"},{option:2,text:"\ube44\ub840 \ub108\ube44 Serif"},{option:3,text:"\uace0\uc815 \ub108\ube44 Sans-Serif"},{option:4,text:"\ube44\ub840 \ub108\ube44 Sans-Serif"},{option:5,text:"\uce90\uc8fc\uc5bc"},{option:6,text:"\ud544\uae30\uccb4"},{option:7,text:"\uc791\uc740 \ub300\ubb38\uc790"}]},{option:"color",text:"\uae00\uaf34 \uc0c9\uc0c1",options:c_},{option:"fontSizeIncrement",text:"\uae00\uaf34 \ud06c\uae30",
options:[{option:-2,text:SU(.5)},{option:-1,text:SU(.75)},{option:0,text:SU(1)},{option:1,text:SU(1.5)},{option:2,text:SU(2)},{option:3,text:SU(3)},{option:4,text:SU(4)}]},{option:"background",text:"\ubc30\uacbd \uc0c9\uc0c1",options:c_},{option:"backgroundOpacity",text:"\ubc30\uacbd \ubd88\ud22c\uba85\ub3c4",options:d_},{option:"windowColor",text:"\ucc3d \uc0c9\uc0c1",options:c_},{option:"windowOpacity",text:"\ucc3d \ubd88\ud22c\uba85\ub3c4",options:d_},{option:"charEdgeStyle",text:"\uae00\uc790 \ud14c\ub450\ub9ac \uc2a4\ud0c0\uc77c",
options:[{option:0,text:"\uc5c6\uc74c"},{option:4,text:"\uadf8\ub9bc\uc790"},{option:1,text:"\ub192\uc784"},{option:2,text:"\ub0ae\ucda4"},{option:3,text:"\uc724\uacfd\uc120"}]},{option:"textOpacity",text:"\uae00\uaf34 \ubd88\ud22c\uba85\ub3c4",options:[{option:.25,text:SU(.25)},{option:.5,text:SU(.5)},{option:.75,text:SU(.75)},{option:1,text:SU(1)}]}];g.t(TU,g.rU);g.h=TU.prototype;g.h.le=function(a){g.rU.prototype.le.call(this,a)};
g.h.Ey=function(a){return a.option.toString()};
g.h.getOption=function(a){return this.M[a]};
g.h.ze=function(a){return this.getOption(a).text||""};
g.h.Lc=function(a){g.rU.prototype.Lc.call(this,a);this.N("settingChange",this.I,this.M[a].option)};
g.h.Fy=function(a){this.N("settingChange",this.I+"Override",!a);this.o.Gd()};g.t(VU,g.nU);VU.prototype.o=function(a,b){this.N("settingChange",a,b)};g.t(XU,g.rU);XU.prototype.A=function(a){return a.languageCode};
XU.prototype.ze=function(a){return this.l[a].languageName||""};
XU.prototype.Lc=function(a){this.N("select",a);g.BU(this.o)};g.t(YU,g.rU);g.h=YU.prototype;g.h.Yr=function(a){return g.Xb(a)?"__off__":a.displayName};
g.h.ze=function(a){return"__off__"==a?"\uc0ac\uc6a9 \uc548\ud568":"__translate__"==a?"\uc790\ub3d9 \ubc88\uc5ed":"__contribute__"==a?"\uc790\ub9c9 \ucd94\uac00":("__off__"==a?{}:this.B[a]).displayName};
g.h.Lc=function(a){"__translate__"==a?this.A.open():"__contribute__"==a?(this.l.pauseVideo(),this.l.isFullscreen()&&this.l.toggleFullscreen(),a=g.bE(g.X(this.l),this.l.getVideoData()),g.cM(a)):(this.l.setOption("captions","track","__off__"==a?{}:this.B[a]),g.rU.prototype.Lc.call(this,a),this.o.Gd())};
g.h.Ck=function(){var a=this.l.getOptions();a=a&&-1!=a.indexOf("captions");var b=this.l.getVideoData();b=b&&b.Wl;if(a||b){if(a){var c=this.l.getOption("captions","track");var d=this.l.getOption("captions","tracklist",{includeAsr:!0});var e=this.l.getOption("captions","translationLanguages");this.B=g.tb(d,this.Yr,this);var f=(0,g.ge)(d,this.Yr);if(e.length&&!g.Xb(c)){var k=c.translationLanguage;if(k&&k.languageName){var l=k.languageName;k=e.findIndex(function(m){return m.languageName==l});
paa(e,k)}pma(this.A,e);f.push("__translate__")}e=this.Yr(c)}else this.B={},f=[],e="__off__";f.unshift("__off__");this.B.__off__={};b&&f.unshift("__contribute__");this.B[e]||(this.B[e]=c,f.push(e));g.tU(this,f);this.le(e);c&&c.translationLanguage?this.A.le(this.A.A(c.translationLanguage)):sU(this.A);a&&WU(this.I,this.l.getSubtitlesUserSettings());this.P.ob(d&&d.length?" ("+d.length+")":"");this.N("size-change");this.enable(!0)}else this.enable(!1)};
g.h.Dy=function(a){this.l.setOption("captions","sampleSubtitles",a)};
g.h.xH=function(a){var b=this.l.getOption("captions","track");b=g.bc(b);b.translationLanguage=this.A.l[a];this.l.setOption("captions","track",b)};
g.h.wH=function(a,b){if("reset"==a)this.l.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.l.updateSubtitlesUserSettings(c)}this.Dy(!0);this.M.start();WU(this.I,this.l.getSubtitlesUserSettings())};
g.h.pL=function(a){a||g.Fo(this.M)};
g.h.U=function(){g.Fo(this.M);g.rU.prototype.U.call(this)};g.t(ZU,g.wU);ZU.prototype.sd=function(a){$U(this);0<this.A.Ba.length&&g.wU.prototype.sd.call(this,a)};
ZU.prototype.show=function(){g.wU.prototype.show.call(this);g.H(this.o.getRootNode(),"ytp-settings-shown")};
ZU.prototype.hide=function(){g.wU.prototype.hide.call(this);g.qo(this.o.getRootNode(),"ytp-settings-shown")};g.t(cV,g.W);
cV.prototype.o=function(){var a=!1;this.l.getOptions().includes("remote")&&(a=1<this.l.getOption("remote","receivers").length);g.sD(this,a&&400<=g.JK(this.l).getPlayerSize().width);var b=1;a&&this.l.getOption("remote","casting")&&(b=2);if(this.u!=b){this.u=b;switch(b){case 1:this.updateValue("icon",g.UP?{C:"div",W:["ytp-icon","ytp-icon-cast-desktop-off"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,L:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",fill:"#fff"}}]});
break;case 2:this.updateValue("icon",g.VP())}g.I(this.element,"ytp-remote-button-active",!!this.l.getOption("remote","casting"))}};
cV.prototype.B=function(){if(this.l.getOption("remote","quickCast"))this.l.setOption("remote","quickCast",!0);else{var a=this.A,b=this.element;if(rT(a))a.nb();else{$U(a);a:{var c=g.q(a.A.Ba);for(var d=c.next();!d.done;d=c.next())if(d=d.value,0==d.priority){c=d;break a}c=null}c&&(c.open(),a.sd(b));a.sd(b)}}};g.t(dV,g.W);dV.prototype.D=function(){var a=this.l.app;a.i.la("SIZE_CLICKED",!a.Xb)};
dV.prototype.o=function(){g.sD(this,this.l.app.Ad&&!this.l.isFullscreen()&&3!=this.l.getPresentingPlayerType());if(this.Fa()){var a=this.l.isWidescreen();if(this.u!=a){var b=a?g.UP?{C:"div",W:["ytp-icon","ytp-icon-default-view"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,L:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:g.UP?{C:"div",W:["ytp-icon","ytp-icon-theater-mode"]}:{C:"svg",L:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,L:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};g.X(this.l).D||null==this.u?this.updateValue("icon",b):CT(this.B,this.element,b);this.u=a;b=KS(this.l,"\uae30\ubcf8 \ubcf4\uae30","t");var c=KS(this.l,"\uc601\ud654\uad00 \ubaa8\ub4dc","t");this.updateValue("title",a?b:c);HT(this.A)}}};g.t(eV,g.W);eV.prototype.u=function(){this.o.toggleSubtitles()};
eV.prototype.l=function(){var a=!!g.EK(this.o).i;g.sD(this,a&&300<=g.JK(this.o).getPlayerSize().width);a&&this.updateValue("pressed",!!this.o.getOption("captions","track").displayName)};g.t(g.gV,g.W);
g.gV.prototype.Nc=function(){var a=g.JK(this.u).getPlayerSize().width,b=350<=a&&(!this.A||!g.T(g.IK(this.u),64));g.sD(this,b);g.I(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.u.getProgressState();b&&(b=g.oR(a.current),this.B!=b&&(this.updateValue("currenttime",b),this.B=b),b=g.oR(a.duration),this.D!=b&&(this.updateValue("duration",b),this.D=b));this.A&&(a=a.isAtLiveHead,this.F!=a&&(this.F=a,this.Nc(),b=this.l.element,b.disabled=a,g.O(g.X(this.u).experiments,"enable_live_premiere_web_player_indicator")&&this.l.ob(this.H?
"\ucd5c\ucd08 \uacf5\uac1c":"\uc2e4\uc2dc\uac04"),a?this.o&&(this.o(),this.o=null,b.removeAttribute("title")):(b.title="\uc2e4\uc2dc\uac04 \ubc29\uc1a1\uc73c\ub85c \uac74\ub108\ub701\ub2c8\ub2e4.",this.o=gT(this.I,this.l.element))))};
g.gV.prototype.P=function(a,b){fV(this,b);this.Nc()};
g.gV.prototype.M=function(a){a.target==this.l.element&&(this.u.seekTo(Infinity),this.u.playVideo())};
g.gV.prototype.U=function(){this.o&&this.o();g.W.prototype.U.call(this)};g.t(iV,g.W);g.h=iV.prototype;g.h.yH=function(){var a=this.D.ec();this.F!=a&&(this.F=a,hV(this,this.l.getVolume(),this.l.isMuted()))};
g.h.jc=function(a){g.sD(this,350<=a.width)};
g.h.yL=function(a){if(!g.rs(a)){var b=g.ts(a),c=null;37==b?c=this.A-5:39==b?c=this.A+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=g.pd(c,0,100),0==c?this.l.mute():(this.l.isMuted()&&this.l.unMute(),this.l.setVolume(c)),g.qs(a))}};
g.h.zH=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.l.setVolume(this.A+(0>b?-10:10)):this.l.setVolume(this.A+g.pd(b/10,-10,10));g.qs(a)};
g.h.wL=function(){jV(this,this.u,!0,this.o,this.D.ii());this.Y=this.A;this.l.isMuted()&&this.l.unMute()};
g.h.vL=function(a){a-=g.Lh(this.T).x;this.l.setVolume(100*g.pd(a/(this.F?78:52),0,1))};
g.h.tL=function(){jV(this,this.u,!1,this.o,this.D.ii());0==this.A&&(this.l.mute(),this.l.setVolume(this.Y))};
g.h.BH=function(a){hV(this,a.volume,a.muted)};
g.h.jv=function(){jV(this,this.u,this.B,this.o,this.D.ii())};
g.h.Gy=function(a){jV(this,this.u,this.B,a,this.D.ii())};
g.h.HA=function(a){g.I(this.element,"ytp-volume-control-hover",a);jV(this,a,this.B,this.o,this.D.ii())};
g.h.U=function(){g.W.prototype.U.call(this);g.qo(this.P,"ytp-volume-slider-active")};g.t(g.kV,g.W);g.kV.prototype.u=function(){this.o=!!this.l.getVideoData().videoId;g.sD(this,this.o);g.aL(this.l,this.element,this.o&&this.R);if(this.o){var a=this.l.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",a)}};
g.kV.prototype.A=function(a){var b=this.l.getVideoUrl(!g.pR(a),!1,!0,!0);HS(b,this.l,a);g.$K(this.l,this.element)};
g.kV.prototype.qb=function(a){g.W.prototype.qb.call(this,a);g.aL(this.l,this.element,this.o&&a)};g.t(lV,g.Us);g.h=lV.prototype;g.h.Wr=function(){this.B.Nc();this.X.Nc()};
g.h.Cy=function(){this.Xr();this.M.g?this.Wr():g.aU(this.B.ma)};
g.h.uH=function(){this.Wr();this.F.start()};
g.h.Xr=function(){var a=!g.X(this.l).g&&300>g.iU(this.B)&&g.WC(g.IK(this.l))&&!!window.requestAnimationFrame,b=!a;this.M.g||(a=b=!1);b?this.H||(this.H=this.K(this.l,"progresssync",this.Wr)):this.H&&(this.Na(this.H),this.H=null);a?this.F.isActive()||this.F.start():this.F.stop()};
g.h.qN=function(a){var b=this.o.Za();a=!a;if(null!=b.o)if(a)switch(b.o){case 3:case 2:MW(b);b.I.show();break;default:b.I.show()}else b.I.hide();b.P=a};
g.h.Va=function(){var a=this.o.ec(),b=g.JK(this.l).getPlayerSize(),c=nV(this),d=Math.max(b.width-2*c,100);if(this.oa!=b.width||this.ga!=a){this.oa=b.width;this.ga=a;var e=oV(this);this.i.element.style.width=e+"px";this.i.element.style.left=c+"px";var f=this.B;f.Ca=c;f.A=e;f.D=a;g.VT(f);this.o.Za().ea=e}c=this.g;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-(this.o.ec()?72:50))));c.P=Math.min(570*(a?1.5:1),d);c.M=e;c.Ui();this.Xr();g.O(g.X(this.l).experiments,"html5_player_dynamic_bottom_gradient")&&
g.iT(this.ea,b.height)};
g.h.vH=function(){var a=this.l.getVideoData();this.Y.style.background=a.Pb?a.tf:"";g.sD(this.R,a.kt)};
g.h.ha=function(){return this.i.element};g.t(qV,pT);qV.prototype.B=function(a){a?(pV(this),this.sd()):(this.u&&rV(this),this.nb())};
qV.prototype.D=function(a){this.o.isMutedByMutedAutoplay()&&g.aE(a,2)&&this.nb()};
qV.prototype.onClick=function(){this.o.unMute();rV(this)};g.t(g.sV,g.Us);g.h=g.sV.prototype;g.h.init=function(){var a=g.IK(this.api);this.Mi(a);this.Tf();this.zi()};
g.h.ly=function(a,b){if(this.Ya!=b.videoId){this.Ya=b.videoId;var c=this.i;c.P=b&&0<b.Kg.length?5E3:3E3;c.Fb(512,!0);this.Tf()}};
g.h.yK=function(){this.ly("newdata",this.api.getVideoData())};
g.h.Fg=function(){var a=this.api.Bd()&&this.api.Ie();tV(this);(a=AV(this)||this.Sb||a)||(a=g.EK(this.api).Uc,a=!!a&&a.gr());return a||this.Wb||tV(this)};
g.h.Kd=function(){var a=!this.Fg();g.I(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.h.HG=function(a){if(!g.$d(this.api.getRootNode(),a))return!1;for(;a&&!de(a);)a=a==this.api.getRootNode()?null:g.Zd(a);return!!a};
g.h.Fk=function(a){var b=this.api.getRootNode();g.I(b,"ytp-autohide",a);g.I(b,"ytp-autohide-active",!0);this.Rb.start(a?250:100);a&&(this.Lb=!1,g.qo(b,"ytp-touch-mode"));b=this.api;a=!a;b.la("onVideoAreaChange");b.la(a?"onShowControls":"onHideControls")};
g.h.CI=function(){var a=this.api.getRootNode();g.I(a,"ytp-autohide-active",!1)};
g.h.fL=function(a){wV(this)&&xV(this,a);var b=rT(this.Ca);Xy&&yV(this,a)?b&&g.qs(a):(this.i.g||uV(this,ns(a))||rT(this.Ca)||(g.IK(this.api).isCued(),g.qs(a)),this.Lb=!0,g.H(this.api.getRootNode(),"ytp-touch-mode"),this.i.Fb(2,!0))};
g.h.bL=function(a){yV(this,a)||wV(this)||xV(this,a)};
g.h.Sw=function(){};
g.h.my=function(){};
g.h.Hn=function(){var a=g.IK(this.api);g.T(a,2)&&FK(this.api)||(g.XC(a)?this.api.pauseVideo():(this.api.app.jd=!0,this.api.playVideo(),document.activeElement==this.ga.B&&this.api.getRootNode().focus()))};
g.h.cL=function(a){uV(this,ns(a))||(a=g.X(this.api),(a.X||g.O(a.experiments,"player_fullscreen_disabled_killswitch"))&&3!=this.api.getPresentingPlayerType()&&this.api.toggleFullscreen())};
g.h.dL=function(a){zV(this,.3,a.scale);g.qs(a)};
g.h.eL=function(a){zV(this,.1,a.scale)};
g.h.zi=function(){var a=g.JK(this.api).getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;g.qx&&BS(this.i);g.I(b,"ytp-fullscreen",this.api.isFullscreen());g.I(b,"ytp-large-width-mode",c);g.I(b,"ytp-small-mode",this.vg());g.I(b,"ytp-big-mode",this.ec());this.o&&US(this.o,a)};
g.h.BK=function(a){this.Mi(a.state);this.Tf()};
g.h.Tf=function(){var a=sma(this);this.D!=a&&(this.D=a,g.I(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.h.Mi=function(a){var b;if(!(b=a.isCued())){if(b=!g.O(g.X(this.api).experiments,"web_player_preroll_hide_controls_killswitch")){b=this.api;var c=void 0===c?b.playerType:c;b=(c=g.U(b.app,c))?JJ(c):!0}b=b&&3!=this.api.getPresentingPlayerType()}c=b;c!=this.isCued&&(this.isCued=c,this.Mb&&this.Na(this.Mb),this.Mb=this.K(g.JK(this.api),"touchstart",this.fL,void 0,c));this.i.Fb(128,!(g.WC(a)&&!g.T(a,32)||this.api.dk()));b=3==this.api.getPresentingPlayerType();this.i.Fb(256,b);b=this.api.getRootNode();
if(g.T(a,2))var d=["ended-mode"];else d=[],g.T(a,8)?d.push("playing-mode"):g.T(a,4)&&d.push("paused-mode"),g.T(a,1)&&!g.T(a,32)&&d.push("buffering-mode"),g.T(a,32)&&d.push("seeking-mode"),g.T(a,64)&&d.push("unstarted-mode");g.rb(this.Ea,d)||(g.ro(b,this.Ea),this.Ea=d,g.po(b,d));d=g.X(this.api);var e=g.T(a,2);g.I(b,"ytp-hide-controls",("3"==d.l?!e:"1"!=d.l)||c);g.I(b,"ytp-native-controls","3"==d.l&&!c&&!e);if(g.T(a,128)){this.o||(this.o=new VS(this.api),g.B(this,this.o),g.XK(this.api,this.o.element,
4));c=this.o;b=a.i;for(a=0;a<c.B.length;a++)c.Na(c.B[a]);c.B=[];d=b.bq;a=g.X(c.l);"play"!=a.playerStyle||"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=d&&"UNSUPPORTED_DEVICE"!=d||(d="HTML5_FLASH_DEPRECATED");if("GENERIC_WITHOUT_LINK"!=d||a.Kb)"TOO_MANY_REQUESTS"==d?(a=c.l.getVideoData(),c.ob(ZS(c,"TOO_MANY_REQUESTS_WITH_LINK",a.Wh(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=d||a.Kb?"HTML5_FLASH_DEPRECATED"==d?c.ob(ZS(c,"HTML5_FLASH_DEPRECATED","//support.google.com/googleplay/answer/2844198#movies",
!1,!0,"\ub3d9\uc601\uc0c1 \uc2dc\uccad \ubd88\uac00")):(c.ob(YS(b.errorMessage)),c.A&&b.Ph&&c.ob(YS(b.Ph),"subreason")):c.ob(ZS(c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK","//www.youtube.com/supported_browsers"));else if(b=g.X(c.l).jf,d="//support.google.com/youtube/?p=player_error1",b&&(d=g.bh(d,{hl:b})),c.ob(ZS(c,"GENERIC_WITH_LINK_AND_CPN",d,!0)),a.ga&&!a.i)for(a=(0,g.x)(c.F,c),b=c.element.getElementsByTagName("a"),d=0;d<b.length;d++)e=c.K(b[d],"click",a),c.B.push(e);this.o.show()}else this.o&&
(this.o.dispose(),this.o=null)};
g.h.Qh=function(){return this.api.Bd()&&this.api.Ie()?(this.api.setCardsVisible(!1,!1),!0):this.api.Re()?(g.GK(this.api,!0),!0):!1};
g.h.IG=function(a){this.Wb=a;this.Kd()};
g.h.ec=function(){return!1};
g.h.vg=function(){return!this.ec()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.h.ii=function(){return this.Lb};
g.h.An=function(){return null};
g.h.Hr=function(){var a=g.JK(this.api).getPlayerSize();return new g.nh(0,0,a.width,a.height)};
g.h.handleGlobalKeyDown=function(){return!1};
g.h.handleGlobalKeyUp=function(){return!1};
g.h.Lk=function(){};
g.h.showControls=function(a){if(void 0!=a){var b=g.JK(this.api);ez(b.app.g);b.B=!a;uM(b)}};
g.h.Ir=function(){};
g.h.ww=function(){return null};g.Tna=.0035*.006;g.IV={};var Una=[2,5];var e_=!1,f_=!1;g.lq("showCompanionAdLoaded",function(){if(f_){var a=g.w("window.google_show_companion_ad");var b=g.w("yt.www.watch.ads.getGlobals");g.Ma(a)&&g.Ma(b)?(b=b(),b=!(!b||!b.length)):b=!1;b?a():f_=!0;f_=!1}});
g.lq("watchAdsInit",function(){if(e_){e_=!1;var a=g.w("yt.www.watch.ads.loadAfc");g.Ma(a)?a():e_=!0}});new function(){this.g=g.Fa(void 0)?void 0:null;if(g.$a(Una,1)){if(!g.Fa(this.g)||0>this.g)throw Error("Must have valid offset");}else if(null!==this.g)throw Error("Must not have offset");};g.t(DV,g.A);g.h=DV.prototype;g.h.yv=function(){if(!this.i){var a=this.yv;if("lb3"==g.X(this.g).playerStyle)var b=!1;else b=this.g.getVideoData(),b=!!b.qj||!!b.captionTracks.length||g.CV(b,this.g);(a=KV(this,"captions",a,b))&&!this.i&&(this.i=a,a.Wk()&&a.load(),this.g.la("onApiChange"))}};
g.h.Rp=function(){this.H=this.H||KV(this,"endscreen",this.Rp,g.EV(this))};
g.h.Dv=function(){this.u=KV(this,"webgl",this.Dv,tma(this))};
g.h.Vk=function(){return this.g.getVideoData().Vk()};
g.h.Fv=function(){(this.Pc=this.Pc||KV(this,"ypc",this.Fv,this.Vk()))&&this.Pc.load()};
g.h.Ev=function(){var a;if(!(a=this.aa)){a=this.Ev;var b=this.g.getVideoData();a=KV(this,"ypc_clickwrap",a,b.aj&&!b.ar)}this.aa=a};
g.h.vv=function(){var a=!this.I;this.I=this.I||KV(this,"heartbeat",this.vv,this.g.getVideoData().tl);a&&this.I&&this.g.N("offlineslatestatechange")};
g.h.Pp=function(){if(!this.l){var a=this.Pp;var b=g.X(this.g);var c=this.g.getVideoData();b=c.jx||"3"==b.l?!1:b.I.isEmpty()&&"annotation-editor"!=b.playerStyle&&"live-dashboard"!=b.playerStyle?g.O(b.experiments,"disable_new_iv_module_create_logic")?c.Qm:!!c.Ld:!0;if(this.l=KV(this,"annotations_module",a,b)){a=this.l;for(var d in this.ea)b=d,a.subscribe(b,this.ea[b]);this.g.la("onApiChange")}}};
g.h.tv=function(){this.Uc=this.Uc||KV(this,"fresca",this.tv,this.g.getVideoData().Uc)};
g.h.Sp=function(){this.R||(this.R=KV(this,"remote",this.Sp,g.X(this.g).Mb))&&this.R.create()};
g.h.Tp=function(){this.ga||(this.ga=KV(this,"music",this.Tp,g.iz(g.X(this.g))))&&this.ga.init()};
g.h.zv=function(){this.B||(this.B=KV(this,"unplugged",this.zv,g.vz(g.X(this.g))))&&this.B.init()};
g.h.wv=function(){this.A||(this.A=KV(this,"kids",this.wv,wz(g.X(this.g))))&&this.A.init()};
g.h.Av=function(){GV(this);!this.F&&(this.F=KV(this,"ux",this.Av,g.X(this.g).ma))&&(this.F.init(),this.g.la("onApiChange"))};
g.h.xv=function(){this.Y||(this.Y=KV(this,"miniplayer",this.xv,g.X(this.g).showMiniplayerUiWhenMinimized))&&this.Y.init()};
g.h.qv=function(){var a;if(!(a=this.M)){a=this.qv;var b=g.X(this.g);b=g.O(b.experiments,"web_player_show_music_in_this_video")&&"desktop-polymer"==b.playerStyle;a=KV(this,"attribution",a,b)}(this.M=a)&&this.M.pe()};
g.h.Qp=function(){if(!this.D){var a=this.Qp;var b=g.X(this.g);"3"==b.l?b=!1:"creator-endscreen-editor"==b.playerStyle?b=!0:(b=this.g.getVideoData(),b=!!b&&(!!g.nC(b)||!!g.oC(b)));(this.D=KV(this,"creatorendscreen",a,b))&&this.g.la("onApiChange")}};
g.h.Gv=function(){(this.P=this.P||KV(this,"yto",this.Gv,!!this.g.getVideoData().Fc.includes("yto")))&&this.P.init()};
g.h.Cv=function(){var a=this.Cv;var b=g.X(this.g);b=this.g.getVideoData().isVisualizerEligible&&Jz(b)&&g.O(b.experiments,"web_player_music_visualizer")&&"desktop-polymer"==b.playerStyle&&g.Iz(b)&&!(g.hy&&!g.ld(42));(this.T=KV(this,"visualizer",a,b))&&this.T.pe()};
g.h.Pj=function(){var a={};this.i&&g.Ra(a,this.i.Pj());return a};
g.h.U=function(){g.A.prototype.U.call(this);LV(this,1,!0)};g.t(g.MV,g.W);g.MV.prototype.show=function(){g.W.prototype.show.call(this);g.Do(this.l)};
g.MV.prototype.hide=function(){this.u.stop();g.W.prototype.hide.call(this)};g.t(SV,g.W);SV.prototype.U=function(){this.l&&this.l();g.W.prototype.U.call(this)};
SV.prototype.D=function(){g.oq("iv-button-mouseover")};
SV.prototype.B=function(a){this.o.Bd();var b=g.oo(this.o.getRootNode(),"ytp-cards-teaser-shown");g.oq("iv-teaser-clicked",b);a=0==a.screenX&&0==a.screenY;this.o.setCardsVisible(!this.o.Ie(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.t(TV,g.W);g.h=TV.prototype;g.h.oB=function(){this.o.Bd()&&this.o.Ie()&&this.Fa()&&4!=this.D.g&&this.Ak()};
g.h.dN=function(){this.Ak();g.oq("iv-teaser-clicked",!!this.l);this.o.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.h.JG=function(){g.oq("iv-teaser-mouseover");this.l&&this.l.stop()};
g.h.DL=function(a){this.l||!a||this.o.Ie()||this.u&&this.u.isActive()||(uma(this,a),g.oq("iv-teaser-shown"))};
g.h.Sr=function(){if(g.X(this.o).u&&this.Fa()){var a=this.B.element.offsetLeft,b=g.Fd("ytp-cards-button-icon"),c=this.o.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.B.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.h.OC=function(){g.X(this.o).u&&this.T.vg()&&this.Fa()&&this.M.start()};
g.h.ny=function(){this.H.stop();this.l&&this.l.isActive()&&this.I.start()};
g.h.Bg=function(){this.I.stop();this.l&&!this.l.isActive()&&this.H.start()};
g.h.fK=function(){this.l&&this.l.stop()};
g.h.cK=function(){this.Ak()};
g.h.Ak=function(){!this.l||this.A&&this.A.isActive()||(g.oq("iv-teaser-hidden"),this.D.hide(),g.qo(this.o.getRootNode(),"ytp-cards-teaser-shown"),this.A=new g.J(function(){for(var a=g.q(this.F),b=a.next();!b.done;b=a.next())this.Na(b.value);this.F=[];this.l&&(this.l.dispose(),this.l=null);RV(this.B,!0)},330,this),this.A.start())};
g.h.U=function(){var a=this.o.getRootNode();a&&g.qo(a,"ytp-cards-teaser-shown");g.rf(this.u,this.A,this.l);g.W.prototype.U.call(this)};g.t(UV,g.vD);UV.prototype.l=function(a){g.rs(a)||39!=g.ts(a)||(this.element.click(),g.qs(a))};g.t(ZV,g.nU);g.h=ZV.prototype;g.h.bJ=function(){JS(this.H.element)};
g.h.pJ=function(){$V(this,this.l.getDebugText(!0))&&NV(this.P,WP())};
g.h.qJ=function(){$V(this,this.l.getVideoEmbedCode())&&NV(this.P,g.UP?{C:"div",W:["ytp-icon","ytp-icon-code"]}:{C:"svg",L:{height:"100%",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",L:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]});g.$K(this.l,this.o.element);WV("EMBED",this.l.getVideoData().videoId,this.l.getPlaylistId()||void 0)};
g.h.tJ=function(){$V(this,this.l.getVideoUrl(!0,!0))&&NV(this.P,gQ());g.$K(this.l,this.A.element);WV("COPY_PASTE",this.l.getVideoData().videoId,this.l.getPlaylistId()||void 0)};
g.h.sJ=function(){$V(this,this.l.getVideoUrl(!1,!0))&&NV(this.P,gQ());g.$K(this.l,this.u.element);WV("COPY_PASTE",this.l.getVideoData().videoId,this.l.getPlaylistId()||void 0)};
g.h.kz=function(a){kU(this.B,a)};
g.h.MJ=function(){var a=this.B.getValue();wY(this.l.app,a);this.M.nb();g.$K(this.l,this.B.element)};
g.h.UK=function(a){this.l.reportPlaybackIssue();if(g.GS(a,this.l,!Cz(g.X(this.l)))){a=this.l;var b={as3:!1,html5:!0,player:!0};b=b||{};var c=a.getVideoStats().debug_error;c&&(b.player_error=c.errorCode,b.player_error_details=c.errorDetail);b.debug_text=a.getDebugText(!0);a.la("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.M.nb()};
g.h.rL=function(){this.l.showVideoInfo();this.M.nb()};
g.h.NG=function(a,b){YV(this,b)};
g.h.qb=function(a){g.nU.prototype.qb.call(this,a);g.aL(this.l,this.o.element,a);g.aL(this.l,this.A.element,a);g.aL(this.l,this.u.element,a);g.aL(this.l,this.B.element,a)};g.t(bW,g.wU);g.h=bW.prototype;g.h.show=function(){this.A||(this.A=new ZV(this.o,this.ea,this,this.Z),g.B(this,this.A),g.AU(this,this.A));this.A.kz(yK(this.o.app.A));g.wU.prototype.show.call(this);g.aL(this.o,this.element,!0);this.A.qb(!0)};
g.h.hide=function(){aW(this);g.wU.prototype.hide.call(this);g.aL(this.o,this.element,!1);this.A&&this.A.qb(!1)};
g.h.aJ=function(a){var b=ns(a);if(!(this.Fa()||b&&(g.fe(b,"a")||g.fe(b,null,"ytp-no-contextmenu",void 0)))){g.qs(a);cW(this);b=this.o.getVideoData();g.I(this.element,"ytp-dni",b.Pb);this.element.style.left="";this.element.style.top="";a=ps(a);a.x++;a.y++;this.sd();var c=document.body;b=new g.kh(0,Infinity,Infinity,0);var d=Bd(c);for(var e=d.g.body,f=d.g.documentElement,k=Kd(d.g);c=Kh(c);)if(!(g.Ld&&0==c.clientWidth||g.Nd&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=g.Fh(c,"overflow")){var l=
g.Lh(c),m=new g.td(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,l.y);b.right=Math.min(b.right,l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=k.scrollLeft;k=k.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,k);d=d.g;d=Jd(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,k+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();
d&&(k=a,e=b,f=5,65==(f&65)&&(k.x<d.left||k.x>=d.right)&&(f&=-2),132==(f&132)&&(k.y<d.top||k.y>=d.bottom)&&(f&=-5),k.x<d.left&&f&1&&(k.x=d.left),f&16&&(c=k.x,k.x<d.left&&(k.x=d.left),k.x+e.width>d.right&&(e.width=Math.min(d.right-k.x,c+e.width-d.left),e.width=Math.max(e.width,0))),k.x+e.width>d.right&&f&1&&(k.x=Math.max(d.right-e.width,d.left)),k.y<d.top&&f&4&&(k.y=d.top),f&32&&(c=k.y,k.y<d.top&&(k.y=d.top),k.y+e.height>d.bottom&&(e.height=Math.min(d.bottom-k.y,c+e.height-d.top),e.height=Math.max(e.height,
0))),k.y+e.height>d.bottom&&f&4&&(k.y=Math.max(d.bottom-e.height,d.top)));d=new g.nh(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Hh(this.element,g.qh(d));g.Ws(this.F);this.F.K(document,"contextmenu",this.gJ);this.F.K(this.o,"fullscreentoggled",this.OG);this.F.K(this.o,"pageTransition",this.rK)}};
g.h.gJ=function(a){if(!g.rs(a)){var b=ns(a);g.$d(this.element,b)||this.nb();g.X(this.o).Bl&&g.qs(a)}};
g.h.OG=function(){this.nb();cW(this)};
g.h.rK=function(){this.nb()};g.t(dW,g.Us);g.h=dW.prototype;
g.h.Kw=function(a){var b=!1,c=g.ts(a),d=ns(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=g.X(this.g);g.rs(a)?(e=!1,k=!0):l.tb&&(e=!1);if(9==c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"==d.tagName||"A"==d.tagName||"INPUT"==d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!=m&&"button"!=m&&0!=m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"==d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),d=38==
c?d.previousSibling:d.nextSibling,"slider"==m?b=!0:e&&("option"==m?(d&&"option"==d.getAttribute("role")&&d.focus(),f=b=!0):m&&0==m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0==d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 37:this.g.fc()&&this.o&&(NV(this.i,pQ()),this.g.seekBy(-5*this.g.getPlaybackRate()),k=f=!0);break;case 39:this.g.fc()&&this.o&&(NV(this.i,eQ()),this.g.seekBy(5*this.g.getPlaybackRate()),k=f=!0);break;case 38:f=Math.min(this.g.getVolume()+
5,100);PV(this.i,f,!1);this.g.setVolume(f);k=f=!0;break;case 40:f=Math.max(this.g.getVolume()-5,0);PV(this.i,f,!0);this.g.setVolume(f);k=f=!0;break;case 36:this.g.fc()&&(this.g.seekTo(0),k=f=!0);break;case 35:this.g.fc()&&(this.g.seekTo(Infinity),k=f=!0)}}b&&this.Zs(!0);(b||k)&&this.A.Fb(2,!0);(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey))&&g.qs(a);l.vb&&(a={keyCode:g.ts(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.rs(a),fullscreen:this.g.isFullscreen()},
this.g.la("onKeyPress",a))};
g.h.Lw=function(a){this.handleGlobalKeyUp(g.ts(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)};
g.h.handleGlobalKeyUp=function(a){var b=!1,c=g.EK(this.g).u;c&&(c=c.Gg)&&c.Fa()&&(c.Jw(a),b=!0);9==a&&(this.Zs(!0),b=!0);return b};
g.h.handleGlobalKeyDown=function(a,b){var c=!1,d=g.X(this.g);if(d.tb)return c;var e=g.EK(this.g).u;if(e&&(e=e.Gg)&&e.Fa())switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:c=e.Iw(a)}if(!d.Kb&&!c)if(c=String.fromCharCode(a).toLowerCase(),this.l+=c,0=="awesome".indexOf(this.l)){if(c=!0,7==this.l.length){e=this.g.getRootNode();var f=!g.oo(e,"ytp-color-party");g.I(e,"ytp-color-party",f)}}else this.l=c,c=0=="awesome".indexOf(this.l);if(!c){switch(a){case 80:b&&!d.R&&(NV(this.i,
nQ(),"\uc774\uc804"),this.g.previousVideo(),c=!0);break;case 78:b&&!d.R&&(NV(this.i,iQ(),"\ub2e4\uc74c"),this.g.nextVideo(),c=!0);break;case 74:this.g.fc()&&(NV(this.i,g.UP?{C:"div",W:["ytp-icon","ytp-icon-rewind-ten-seconds"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.g.seekBy(-10*this.g.getPlaybackRate()),c=!0);break;case 76:this.g.fc()&&(NV(this.i,g.UP?{C:"div",W:["ytp-icon","ytp-icon-forward-ten-seconds"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.g.seekBy(10*this.g.getPlaybackRate()),c=!0);break;case 37:this.g.fc()&&!this.o&&(NV(this.i,pQ()),this.g.seekBy(-5*this.g.getPlaybackRate()),c=!0);break;case 39:this.g.fc()&&!this.o&&(NV(this.i,eQ()),this.g.seekBy(5*this.g.getPlaybackRate()),c=!0);break;case 77:this.g.isMuted()?(this.g.unMute(),PV(this.i,this.g.getVolume(),!1)):(this.g.mute(),PV(this.i,0,!0));c=!0;break;case 32:case 75:d.R||(c=!g.XC(g.IK(this.g)),OV(this.i,c),c?this.g.playVideo():this.g.pauseVideo(),c=!0);break;case 190:b?d.wa&&
(c=this.g.getPlaybackRate(),this.g.setPlaybackRate(c+.25,!0),QV(this.i,!1),c=!0):this.g.fc()&&(fW(this,1),c=!0);break;case 188:b?d.wa&&(c=this.g.getPlaybackRate(),this.g.setPlaybackRate(c-.25,!0),QV(this.i,!0),c=!0):this.g.fc()&&(fW(this,-1),c=!0);break;case 70:FS(this.g)&&(this.g.toggleFullscreen(),c=!0);break;case 27:this.B()&&(c=!0)}if("3"!=d.l)switch(a){case 67:g.EK(this.g).i&&(d=this.g.getOption("captions","track"),this.g.toggleSubtitles(),d=!d||d&&!d.displayName?"\uc790\ub9c9 \uc0ac\uc6a9 \uc911":
"\uc790\ub9c9 \uc0ac\uc6a9 \uc911\uc9c0",NV(this.i,sQ(),d),c=!0);break;case 79:eW(this,"textOpacity");break;case 87:eW(this,"windowOpacity");break;case 187:case 61:eW(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:eW(this,"fontSizeIncrement",!0,!0)}var k;48<=a&&57>=a?k=a-48:96<=a&&105>=a&&(k=a-96);null!=k&&this.g.fc()&&(d=this.g.getProgressState(),this.g.seekTo(k/10*(d.seekableEnd-d.seekableStart)+d.seekableStart),c=!0);c&&this.A.Fb(2,!0)}return c};
g.h.Zs=function(a){g.I(this.g.getRootNode(),"ytp-probably-keyboard-focus",a);g.I(this.D.element,"ytp-probably-keyboard-focus",a)};
g.h.ry=function(a){g.EK(this.g).i&&this.g.setOption("captions","sampleSubtitles",a)};
g.h.U=function(){g.Fo(this.u);g.Us.prototype.U.call(this)};g.t(gW,pT);g.h=gW.prototype;g.h.VG=function(a){a=ns(a);g.$d(this.element,a)&&(g.$d(this.D,a)||g.$d(this.u,a)||this.Ge())};
g.h.nb=function(){pT.prototype.nb.call(this);this.A.sf(this.element)};
g.h.show=function(){this.Fa()&&this.B.N("OVERFLOW_PANEL_OPENED");pT.prototype.show.call(this);iW(this,!0)};
g.h.hide=function(){pT.prototype.hide.call(this);iW(this,!1)};
g.h.UG=function(a){!a&&rT(this)&&this.Ge()};
g.h.focus=function(){0<this.o.length&&this.o[0]&&this.o[0].focus()};g.t(jW,g.W);jW.prototype.o=function(){this.l=this.B.vg();g.I(this.element,"ytp-overflow-button-visible",this.l);this.l&&HT(this.A);g.aL(this.u,this.element,this.l&&this.R)};
jW.prototype.qb=function(a){g.W.prototype.qb.call(this,a);g.aL(this.u,this.element,this.l&&a)};
jW.prototype.U=function(){g.W.prototype.U.call(this);g.qo(this.element,"ytp-overflow-button-visible")};g.t(kW,g.W);g.h=kW.prototype;g.h.hide=function(){g.qo(this.l.getRootNode(),"ytp-expand-pause-overlay");g.W.prototype.hide.call(this)};
g.h.TI=function(){this.X=!0;g.qo(this.l.getRootNode(),"ytp-expand-pause-overlay");this.H.focus()};
g.h.UI=function(){this.X=!1;g.H(this.l.getRootNode(),"ytp-expand-pause-overlay")};
g.h.XG=function(){mW(this,this.A-this.D)};
g.h.YG=function(){mW(this,this.A+this.D)};
g.h.ZG=function(a,b){if(1E3>g.M()-this.na)g.qs(b),document.activeElement.blur();else{var c=this.o[a],d=c.Cb;if(g.GS(b,this.l,this.ga,d||void 0)){var e=c.ua().videoId;c=c.getPlaylistId();g.IY(this.l.app,e,d,c,void 0,void 0)}}};
g.h.aH=function(){this.Va(g.JK(this.l).getPlayerSize())};
g.h.bH=function(a){if(!(g.T(a.state,1)||g.T(a.state,16)||g.T(a.state,32))){var b=!g.O(g.X(this.l).experiments,"embeds_disable_pauseoverlay_on_autoplay_blocked_killswitch")&&g.T(a.state,2048);!g.T(a.state,4)||g.T(a.state,2)||b?this.T.hide():this.o.length&&(this.X||(g.H(this.l.getRootNode(),"ytp-expand-pause-overlay"),lW(this)),this.T.show(),this.na=g.M())}};
g.h.Va=function(a){var b=16/9,c=this.Z.ec();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));c=(a-8*c)/c;b=Math.floor(c/b);for(var d=0;d<this.B.length;d++){var e=this.B[d].i["ytp-suggestion-image"];e.style.width=c+"px";e.style.height=b+"px"}this.F.element.style.height=b+"px";this.Y=c;this.ma=b;this.D=a;this.A=0;this.ty(0);lW(this)};
g.h.cH=function(){var a=this,b=g.X(this.l),c=this.l.getVideoData();this.ga=c.Pb?!1:b.i;if(c.suggestions){var d=(0,g.Xd)(c.suggestions,function(e){return e&&!e.list});
this.o=(0,g.ge)(d,function(e){e=g.DS(b,e);g.B(a,e);return e})}else this.o.length=0;
vma(this);c.Pb?this.P.update({title:g.UN("$DNI_RELATED_CHANNEL\uc758 \ub3d9\uc601\uc0c1 \ub354\ubcf4\uae30",{DNI_RELATED_CHANNEL:c.author})}):this.P.update({title:"\ub3d9\uc601\uc0c1 \ub354\ubcf4\uae30"})};
g.h.ty=function(a){this.F.element.scrollLeft=-a};g.t(oW,g.W);oW.prototype.o=function(a){g.GS(a,this.l)&&this.l.playVideoAt(this.Ta)};g.t(pW,pT);g.h=pW.prototype;g.h.show=function(){pT.prototype.show.call(this);this.D.K(this.u,"videodatachange",this.Ur);this.D.K(this.u,"onPlaylistUpdate",this.Ur);this.Ur()};
g.h.hide=function(){pT.prototype.hide.call(this);g.Ws(this.D);qW(this,null)};
g.h.Ur=function(){qW(this,this.u.getPlaylist())};
g.h.ko=function(){var a=this.o.Xm;if(a==this.F)this.A.element.setAttribute("aria-checked",!1),this.A=this.B[this.o.Ta];else{for(var b=g.q(this.B),c=b.next();!c.done;c=b.next())c.value.dispose();b=this.o.getLength();this.B=[];for(c=0;c<b;c++){var d=new oW(this.u,this.o,c);this.B.push(d);d.g(this.Ba)}this.A=this.B[this.o.Ta];this.F=a}this.A&&this.A.element.setAttribute("aria-checked",!0)};
g.h.GL=function(a){var b=this.u.getVideoUrl(!0);HS(b,this.u,a)};
g.h.focus=function(){this.A.focus()};
g.h.U=function(){this.hide();pT.prototype.U.call(this)};g.t(rW,g.W);rW.prototype.u=function(){var a=g.X(this.o).u;g.I(this.element,"ytp-playlist-menu-button-tiny",400>g.JK(this.o).getPlayerSize().width&&!a);this.l&&2!=this.o.getPresentingPlayerType()?(this.update({text:g.UN("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.l.Ta+1),PLAYLIST_LENGTH:String(this.l.getLength())}),title:g.UN("\uc7ac\uc0dd\ubaa9\ub85d: $PLAYLIST_NAME",{PLAYLIST_NAME:this.l.title})}),this.Fa()||(this.show(),HT(this.A)),this.D=!0):this.Fa()&&(this.hide(),HT(this.A))};
rW.prototype.qb=function(a){g.W.prototype.qb.call(this,a);g.aL(this.o,this.element,this.D&&a)};
rW.prototype.B=function(){this.l&&this.l.unsubscribe("shuffle",this.u,this);(this.l=this.o.getPlaylist())&&this.l.subscribe("shuffle",this.u,this);this.u()};g.t(sW,g.W);sW.prototype.u=function(a){g.sD(this,g.T(a.state,2))};
sW.prototype.o=function(){g.IK(this.l);this.l.playVideo()};g.t(g.tW,pT);g.h=g.tW.prototype;g.h.oH=function(a){a=ns(a);g.$d(this.M,a)||g.$d(this.D,a)||this.Ge()};
g.h.nb=function(){pT.prototype.nb.call(this);this.u.sf(this.element)};
g.h.show=function(){var a=this.Fa();pT.prototype.show.call(this);this.zy();a||this.o.la("onSharePanelOpened")};
g.h.zy=function(){g.H(this.element,"ytp-share-panel-loading");g.qo(this.element,"ytp-share-panel-fail");var a=this.o.getVideoData(),b=this.o.getPlaylistId(),c=b&&this.F.checked;g.I(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=g.X(this.o);e.lc&&(d.authuser=e.lc);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);g.br(g.X(this.o).B+"share_ajax",{method:"GET",onError:(0,g.x)(this.PA,this),onSuccess:(0,g.x)(function(f,k){if(k){if(!this.fa()){g.qo(this.element,
"ytp-share-panel-loading");uW(this);for(var l=k.links,m=0,n=0;n<l.length&&2>m;n++){var p=l[n];a:switch(p.img){case "facebook":var r=g.UP?{C:"div",W:["ytp-icon","ytp-icon-share-facebook"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},J:[{C:"rect",L:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{C:"path",L:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":r=g.UP?{C:"div",W:["ytp-icon","ytp-icon-share-twitter"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},J:[{C:"rect",L:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{C:"path",L:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:r=null}r&&(r=new g.W({C:"a",W:["ytp-share-panel-service-button","ytp-button"],L:{href:p.url,target:"_blank",title:p.sname},J:[r]}),r.da("click",g.Qa(this.mL,p.url)),g.pf(r,gT(this.u,r.element)),this.A.push(r),m++)}l=new g.W({C:"a",W:["ytp-share-panel-service-button","ytp-button"],J:[{C:"span",G:"ytp-share-panel-service-button-more",J:[g.UP?{C:"div",W:["ytp-icon","ytp-icon-share-more"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},J:[{C:"rect",
L:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{C:"path",L:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],L:{href:k.more,target:"_blank",title:"\ub354\ubcf4\uae30"}});l.da("click",(0,g.x)(this.ZJ,this,k.more));g.pf(l,gT(this.u,l.element));this.A.push(l);this.updateValue("buttons",this.A)}}else this.PA(null,null)},this),
ud:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);this.updateValue("link",a);this.updateValue("linkText",a);this.updateValue("shareLinkWithUrl",g.UN("$URL \ub9c1\ud06c \uacf5\uc720",{URL:a}));JS(this.B)};
g.h.PA=function(){g.qo(this.element,"ytp-share-panel-loading");g.H(this.element,"ytp-share-panel-fail")};
g.h.mL=function(a,b){if(g.pR(b)){var c=void 0===c?{}:c;c.target=c.target||"YouTube";c.width=c.width||"600";c.height=c.height||"600";c||(c={});var d=window;var e=a instanceof g.xc?a:g.Cc("undefined"!=typeof a.href?a.href:String(a));var f=c.target||a.target,k=[];for(l in c)switch(l){case "width":case "height":case "top":case "left":k.push(l+"="+c[l]);break;case "target":case "noopener":case "noreferrer":break;default:k.push(l+"="+(c[l]?1:0))}var l=k.join(",");gd()&&d.navigator&&d.navigator.standalone&&
f&&"_self"!=f?(l=d.document.createElement("A"),g.Tc(l,e),l.setAttribute("target",f),c.noreferrer&&l.setAttribute("rel","noreferrer"),c=document.createEvent("MouseEvent"),c.initMouseEvent("click",!0,!0,d,1),l.dispatchEvent(c),d={}):c.noreferrer?(d=d.open("",f,l),c=g.zc(e),d&&(g.Gz&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),d.opener=null,c=g.Rc(g.qc("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.Yc(c)+
'">'),d.document.write(g.Mc(c)),d.document.close())):(d=d.open(g.zc(e),f,l))&&c.noopener&&(d.opener=null);if(c=d)c.opener||(c.opener=window),c.focus();g.qs(b)}};
g.h.ZJ=function(a,b){HS(a,this.o,b)&&this.o.la("SHARE_CLICKED")};
g.h.nH=function(a){!a&&rT(this)&&this.Ge()};
g.h.focus=function(){this.B.focus()};
g.h.U=function(){pT.prototype.U.call(this);uW(this)};g.t(g.vW,g.W);g.vW.prototype.D=function(){var a=g.X(this.l),b=this.l.getVideoData(),c=this.l.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);if(b.al){b=g.Rd("TEXTAREA");b.textContent=a;document.body.appendChild(b);b.focus();b.select();try{document.execCommand("copy")}catch(d){}document.body.removeChild(b)}else navigator.share?navigator.share({title:b.title,url:a}):(this.A.Qh(),this.F.Ge(this.element,!1));g.$K(this.l,this.element)};
g.vW.prototype.u=function(){var a=g.X(this.l),b=this.l.getVideoData(),c=this.A.vg()&&g.O(a.experiments,"embeds_enable_new_smallmode")&&a.u;b.al?(c=c&&a.D?{C:"div",W:["ytp-icon","ytp-icon-share-copylink-large"]}:g.UP?{C:"div",W:["ytp-icon","ytp-icon-share-copylink"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]},
this.updateValue("title-attr","\ub3d9\uc601\uc0c1 \ub9c1\ud06c \ubcf5\uc0ac")):(c=c&&a.D?{C:"div",W:["ytp-icon","ytp-icon-sharrow-large"]}:g.UP?{C:"div",W:["ytp-icon","ytp-icon-sharrow"]}:{C:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{C:"path",Ga:!0,G:"ytp-svg-fill",L:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]},
this.updateValue("title-attr","\uacf5\uc720"));this.updateValue("icon",c);a=a.Cl&&2!=this.l.getPresentingPlayerType()||!b.showShareButton;c=g.JK(this.l).getPlayerSize().width;this.o=!!b.videoId&&300<=c&&!a;g.I(this.B,"ytp-share-button-visible",this.o);g.aL(this.l,this.element,this.o&&this.R)};
g.vW.prototype.qb=function(a){g.W.prototype.qb.call(this,a);g.aL(this.l,this.element,this.o&&a)};
g.vW.prototype.U=function(){g.W.prototype.U.call(this);g.qo(this.B,"ytp-share-button-visible")};g.t(wW,pT);wW.prototype.show=function(){pT.prototype.show.call(this);this.B.start()};
wW.prototype.hide=function(){pT.prototype.hide.call(this);this.B.stop()};
wW.prototype.Z=function(){var a=this.o.getCurrentTime();a>this.A/1E3&&a<this.u/1E3&&this.show()};g.t(xW,g.W);xW.prototype.A=function(){g.$K(this.o,this.element);yW(this,!this.l)};g.t(g.BW,g.W);g.BW.prototype.A=function(){g.H(this.element,"ytp-sb-subscribed")};
g.BW.prototype.B=function(){g.qo(this.element,"ytp-sb-subscribed")};g.Ga("yt.pubsub.publish",g.oq,void 0);g.t(DW,g.W);DW.prototype.F=function(){this.o.classList.remove("ytp-title-show-collapsed");this.o.classList.remove("ytp-title-show-expanded");this.o.classList.remove("ytp-title-expanded")};
DW.prototype.P=function(){if(EW(this)){this.B&&this.B.stop();this.A&&(this.A.show(),g.aL(this.l,this.A.element,!0));var a=this.l.getVideoData();this.D&&a.Pi&&a.subscribed&&(this.D.show(),g.aL(this.l,this.D.element,!0));this.o.classList.add("ytp-title-expanded");this.o.classList.add("ytp-title-show-expanded")}};
DW.prototype.I=function(){this.B&&this.B.start()};g.t(HW,g.W);HW.prototype.D=function(a){g.$K(this.l,this.element);var b=this.l.getVideoUrl(!g.pR(a),!1,!0);HS(b,this.l,a)};
HW.prototype.A=function(){var a=this.l.getVideoData(),b=g.X(this.l);this.updateValue("title",a.title);IW(this);if(2==this.l.getPresentingPlayerType()){var c=this.l.getVideoData(),d=!!c.videoId&&!!c.he&&!!c.author&&!!c.gg&&!!c.Vd;d?(GW(this.o,d),this.updateValue("channelLink",c.gg),this.updateValue("channelName",c.author)):IW(this)}else b.u&&(c=this.l.getVideoData(),(c=!!c.videoId&&!!c.gg&&!!c.Vd)?GW(this.o,c):IW(this));c=b.externalFullscreen||!this.l.isFullscreen()&&b.Sb;g.I(this.B,"ytp-title-fullerscreen-link",
c);b.H||!a.videoId||c?this.u&&(this.updateValue("url",null),this.Na(this.u),this.u=null):(this.updateValue("url",this.l.getVideoUrl(!0)),this.u||(this.u=this.K(this.B,"click",this.D)))};g.t(g.JW,g.W);g.h=g.JW.prototype;g.h.eK=function(a){3==this.o&&this.Pe();(a=a.currentTarget)&&1==a.nodeType&&!this.o&&(a.removeEventListener("mouseover",this.D),a.addEventListener("mouseout",this.X),g.O(this.M.experiments,"show_tooltip_on_tab_killswitch")||(a.removeEventListener("focus",this.D),a.addEventListener("blur",this.X)),KW(this,a,2))};
g.h.bK=function(a){(a=os(a))&&g.$d(this.l,a)||this.Pe()};
g.h.gz=function(a,b){if(a<=this.B&&this.B<=b){var c=this.B;this.B=NaN;OW(this,c)}};
g.h.HE=function(){CA(this.u,this.B,160*this.A)};
g.h.Pe=function(){switch(this.o){case 2:this.l.removeEventListener("mouseout",this.X),this.l.addEventListener("mouseover",this.D),g.O(this.M.experiments,"show_tooltip_on_tab_killswitch")||(this.l.removeEventListener("blur",this.X),this.l.addEventListener("focus",this.D));case 3:3==this.o&&this.ma.stop();this.Y.removeEventListener("appresize",this.Z);this.T||this.l.setAttribute("title",this.F);this.F="";this.l=null;break;case 1:this.u&&(this.u.unsubscribe("l",this.gz,this),this.u=null),this.Y.removeEventListener("videoready",
this.Z),this.ga.stop()}this.o=null;this.P&&this.I.hide()};
g.h.sf=function(a){if(this.l)for(var b=0;b<arguments.length;b++)g.$d(arguments[b],this.l)&&this.Pe()};
g.h.U=function(){null!=this.o&&this.Pe();g.W.prototype.U.call(this)};g.t(SW,g.W);g.h=SW.prototype;g.h.jc=function(){var a=this.l.getPlayerSize(),b=g.X(this.l),c=this.l.getVideoData();this.A=b.Ah&&300<=a.width&&!c.isAd()&&c.Ah;g.sD(this,this.A);g.aL(this.l,this.element,this.A&&this.R)};
g.h.YL=function(){this.o=!0;this.u=!1;RW(this,1);g.X(this.l).g&&LW(this.B,this.element);g.X(this.l).vb&&this.l.la("WATCH_LATER_VIDEO_ADDED")};
g.h.CH=function(){var a=this;g.$K(this.l,this.element);var b=g.X(this.l),c=this.l.getVideoData().videoId;b.lc?QW(this,c):this.l.app.Ca?hL(function(){CD(a.l,"embedsItpWatchLaterResult",{accepted:!0});Vr();TW(a,c)},function(){CD(a.l,"embedsItpWatchLaterResult",{accepted:!1});
UW(a,"\ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c \ucfe0\ud0a4\ub97c \ucc28\ub2e8\ud558\uc5ec \uc800\uc7a5\ud558\uc9c0 \ubabb\ud588\uc2b5\ub2c8\ub2e4.")}):TW(this,c)};
g.h.ZL=function(a,b){this.u=!1;var c="\uc624\ub958\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4. \ub098\uc911\uc5d0 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694.";b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);UW(this,c)};
g.h.aM=function(){this.u=this.o=!1;RW(this,2);g.X(this.l).vb&&this.l.la("WATCH_LATER_VIDEO_REMOVED")};
g.h.DH=function(){this.u=this.o=!1;RW(this,2)};
g.h.qb=function(a){g.W.prototype.qb.call(this,a);g.aL(this.l,this.element,this.A&&a)};g.t(WW,g.W);WW.prototype.D=function(a){VW(this,a.state)};
WW.prototype.A=function(){if(this.l.getVideoData().videoId){var a=this.l.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",a);this.o||(this.o=this.da("click",this.B))}else this.o&&(this.updateValue("url",null),this.Na(this.o),this.o=null)};
WW.prototype.B=function(a){var b=this.l.getVideoUrl(!g.pR(a),!1,!0,!0);HS(b,this.l,a);g.$K(this.l,this.element)};
WW.prototype.Va=function(a){var b=g.X(this.l),c=XW(a,b);if(c&&!this.u||!c&&this.u)a=XW(a,b)&&b.D?{C:"div",W:["ytp-icon","ytp-icon-watermark-small"]}:wQ(),a=new g.W(a),b=this.i["ytp-watermark"],g.I(b,"ytp-watermark-small",c),g.Ud(b),a.g(b),this.u=c};g.t(YW,g.sV);g.h=YW.prototype;g.h.Za=function(){return this.F};
g.h.ww=function(){return this.g};
g.h.Ug=function(a,b){b?this.Y=a:this.Y=null;this.Kd()};
g.h.Aj=function(a,b){if(b)this.H.push(a);else for(var c=this.H.length;0<=c;c--)if(this.H[c]==a){this.H.splice(c,1);break}this.i.Fb(64,0<this.H.length)};
g.h.Fg=function(){this.api.Bd()&&this.api.Ie();tV(this);return!!this.Y||g.sV.prototype.Fg.call(this)};
g.h.Kd=function(){var a=!this.Fg(),b=a&&this.api.Bd()&&!g.T(g.IK(this.api),2);a?(this.jb.show(),this.tb.show()):(this.jb.hide(),this.tb.hide(),this.F.sf(this.l.element));b?(this.aa.u.show(),g.oq("iv-button-shown")):(b=this.aa,g.oq("iv-button-hidden"),b.u.hide());this.g&&mV(this.g,!a);g.sV.prototype.Kd.call(this)};
g.h.Lk=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Sh(a);d=d||this.g&&g.$d(this.g.ha(),b);if(null==c||!d){var k=g.Sh(b);var l=g.Ph(b,this.api.getRootNode());null==c&&(c=l.x+k.width/2)}c-=f.width/2;d?(k=nV(this.g),l=oV(this.g),b=g.JK(this.api).getPlayerSize().height,c=g.pd(c,k,k+l-f.width),f=b-(this.g.o.ec()?72:50)-f.height):g.$d(this.l.element,b)?(k=g.JK(this.api).getPlayerSize().width,c=g.pd(c,12,k-f.width-12),f=this.ec()?this.Qa:this.Ra,"gvn"==g.X(this.api).playerStyle&&
(f+=20),g.X(this.api).u&&(f-=this.ec()?26:18)):(b=g.JK(this.api).getPlayerSize(),c=g.pd(c,12,b.width-f.width-12),f=l.y>(b.height-k.height)/2?l.y-f.height-12:l.y+k.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
g.h.Fk=function(a){a&&(this.F.sf(this.l.element),this.g&&this.F.sf(this.g.ha()));g.sV.prototype.Fk.call(this,a)};
g.h.Hr=function(a){var b=g.JK(this.api).getPlayerSize();b=new g.nh(0,0,b.width,b.height);if(a||this.i.g&&!this.Fg())g.X(this.api).Hh&&(a=this.ec()?this.Qa:this.Ra,b.top+=a,b.height-=a),this.g&&(b.height-=this.g.o.ec()?72:50);return b};
g.h.KG=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube \ub3d9\uc601\uc0c1 \ud50c\ub808\uc774\uc5b4 \uc804\uccb4\ud654\uba74 \ubaa8\ub4dc"),g.X(this.api).externalFullscreen||(b.parentElement.insertBefore(this.ea.element,b),b.parentElement.insertBefore(this.oa.element,b.nextSibling))):g.L(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube \ub3d9\uc601\uc0c1 \ud50c\ub808\uc774\uc5b4"),g.qD(this.ea),g.qD(this.oa));this.zi();this.Tf()};
g.h.ec=function(){return this.api.isFullscreen()||!1};
g.h.showControls=function(a){this.Sb=!a;this.Kd()};
g.h.zi=function(){var a=this.ec();this.F.A=a?1.5:1;g.I(this.R.element,"ytp-big-mode",a);this.Kd();if(this.ma)if(this.vg())this.B&&hW(this.u,this.B),this.A&&hW(this.u,this.A);else{a=this.u;for(var b=g.q(a.o),c=b.next();!c.done;c=b.next())g.qD(c.value);a.o=[];this.B&&!g.$d(this.ya.element,this.B.element)&&this.B.g(this.ya.element,0);this.A&&!g.$d(this.ya.element,this.A.element)&&this.A.g(this.ya.element,1)}this.Tf();g.sV.prototype.zi.call(this)};
g.h.Tf=function(){g.sV.prototype.Tf.call(this);var a=this.ma&&this.vg();g.aL(this.api,this.ab.element,!!this.D);this.X&&this.X.qb(!!this.D);a?this.wa&&this.wa.qb(!!this.D):(this.A&&this.A.qb(!!this.D),this.B&&this.B.qb(!!this.D));if(!this.D)for(this.F.sf(this.l.element),a=0;a<this.Z.length;a++){var b=this.Z[a];rT(b)&&b.nb()}};
g.h.Mi=function(a){this.g&&mV(this.g,this.Fg());this.Kd();g.sV.prototype.Mi.call(this,a)};
g.h.oK=function(){this.api.dk()&&this.i.Fb(128,!1)};
g.h.handleGlobalKeyDown=function(a,b,c,d,e){return this.M?this.M.handleGlobalKeyDown(a,b,c,d,e):!1};
g.h.handleGlobalKeyUp=function(a,b,c,d,e){return this.M?this.M.handleGlobalKeyUp(a,b,c,d,e):!1};
g.h.Qh=function(){return this.R.Fa()?(this.R.nb(),!0):this.H.length?(this.H[this.H.length-1].nb(),!0):this.Y?(this.Y.nb(),!0):g.sV.prototype.Qh.call(this)};
g.h.it=function(a,b){this.Yb=b;this.Aj(a,b);this.mB()};
g.h.mB=function(){var a=this.Yb||rT(this.R);this.Ia!=a&&(this.Ia=a,this.api.la("onAutonavPauseRequest",this.Ia))};
g.h.lD=function(){ZW(this,this.api.getRootNode(),!0).focus()};
g.h.mD=function(){ZW(this,this.api.getRootNode(),!1).focus()};
g.h.An=function(){return this.g&&this.g.g};
g.h.Ir=function(){this.i.Fb(2,!0)};
g.h.Sw=function(){this.I.hide()};
g.h.my=function(a){OV(this.I,!g.XC(a))};g.t(g.$W,g.mL);g.$W.prototype.Gb=function(){return!1};
g.$W.prototype.init=function(){var a=g.X(this.player);Fz(a)&&a.g?this.mk=new g.sV(this.player):this.mk=new YW(this.player);g.B(this,this.mk);this.mk.init();g.UK(this.player,"ux")};Ia(aX);var bY=g.w("ytPlayerUtilsVideoTagPoolInstance")||aX.getInstance();g.Ga("ytPlayerUtilsVideoTagPoolInstance",bY,void 0);g.h=aX.prototype;g.h.Uv=function(a){if(!(this.g.length>=a)){a-=this.g.length;for(var b=0;b<a;b++)cX(this)}};
g.h.AD=function(a,b){if(this.g.length)return this.g.pop();var c=cX(this,a,b);a||g.cb(this.g,c);return c};
g.h.zM=function(a){a&&g.$a(this.i,a)&&(a.src&&(rr&&0<a.readyState&&(a.currentTime=Math.max(Kna,0)),a.removeAttribute("src"),a.load(),a.Fh&&a.Fh.i&&BC(a,null)),ws(a),g.cb(this.i,a),g.cb(this.l,a))};
g.h.jE=function(a){return this.g.length>=(a||1)};
g.h.zC=function(){for(var a=this.l.length-1;0<=a;a--)bX(this,this.l[a]);this.g.length==this.i.length&&4<=this.g.length||(4>this.i.length?this.Uv(4):(this.g=[],(0,g.y)(this.i,function(b){bX(this,b)},this)))};
aX.prototype.fillPool=aX.prototype.Uv;aX.prototype.getTag=aX.prototype.AD;aX.prototype.releaseTag=aX.prototype.zM;aX.prototype.hasTags=aX.prototype.jE;aX.prototype.activateTags=aX.prototype.zC;g.t(eX,g.A);g.h=eX.prototype;g.h.uG=function(a){if(this.l==this.g.yb()){var b=this.B.get(a);jX(this,b.target,b.Ri,a)}else{b=this.i.find(function(e){return e.lg.Sc==a});
var c=b.lg,d=c.target;c=c.Ri;d?jX(this,d,c,a):Dma(this,b.td,c,a)}};
g.h.LK=function(){var a=this.F;lX(this);a&&(kX(this,a),this.g.yb().addCueRange(a.lg.Sc))};
g.h.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)dX(this,a);else{b=this.g.yb();var d=b==this.u?this.D:null;oX(this,!1);this.R=a;null!=c&&this.I.start(c);b&&(this.D=d||b.getPlayerState(),eK(b),this.u=b)}};
g.h.vG=function(a){var b=this;if(g.aE(a,128)){var c=this.i.find(function(d){return kX(b,d)});
c&&(lX(this),a=new g.PC(8),c=mX(this,c)/1E3,pX(this,c,a))}};
g.h.U=function(){oX(this,!1);fL(this);g.A.prototype.U.call(this)};
var Bma=0;g.t(g.tX,g.CC);g.h=g.tX.prototype;g.h.isView=function(){return!0};
g.h.Vh=function(){return Hx(this.g.Vh(),this.i,this.A)};
g.h.ue=function(){return Hx(this.g.ue(),this.i,this.A)};
g.h.Bm=function(){return Hx(this.g.Bm(),this.i,this.A)};
g.h.getCurrentTime=function(){return this.g.getCurrentTime()-this.i};
g.h.po=function(a){this.g.po(a+this.i)};
g.h.getDuration=function(){return isFinite(this.A)&&!this.H?this.A-this.i:this.g.getDuration()-this.i};
g.h.play=function(){this.g.getCurrentTime()<this.i&&this.g.po(this.i);return this.g.play()};
g.h.fb=function(){var a=g.CC.prototype.fb.call(this);a.view=this.i+"-"+this.A;return a};
g.h.addEventListener=function(a,b){this.g.addEventListener(a,b)};
g.h.removeEventListener=function(a,b){this.g.removeEventListener(a,b)};
g.h.qn=function(){return this.g.qn()};
g.h.pe=function(a){this.g.pe(a)};
g.h.Yn=function(){this.g.Yn()};
g.h.pn=function(){return this.g.pn()};
g.h.playVideo=function(){return this.g.playVideo()};
g.h.Yp=function(){this.g.Yp()};
g.h.Wp=function(){this.g.Wp()};
g.h.xg=function(){return this.g.xg()};
g.h.ha=function(){return this.g.ha()};
g.h.Vc=function(){return this.g.Vc()};
g.h.vn=function(a){this.g.vn(a)};
g.h.Ns=function(){this.g.Ns()};
g.h.getPlaybackRate=function(){return this.g.getPlaybackRate()};
g.h.setPlaybackRate=function(a){return this.g.setPlaybackRate(a)};
g.h.nn=function(){return this.g.nn()};
g.h.setLoop=function(a){this.g.setLoop(a)};
g.h.canPlayType=function(a,b){return this.g.canPlayType(a,b)};
g.h.yg=function(){return this.g.yg()};
g.h.fk=function(){return this.g.fk()};
g.h.Se=function(){return this.g.Se()};
g.h.ym=function(){return this.g.ym()};
g.h.Li=function(a){this.g.Li(a)};
g.h.tn=function(){return this.g.tn()};
g.h.load=function(){this.g.load()};
g.h.pause=function(){this.g.pause()};
g.h.je=function(){return this.g.je()};
g.h.zm=function(){return this.g.zm()};
g.h.We=function(){return this.g.We()};
g.h.nk=function(){return this.g.nk()};
g.h.un=function(){return this.g.un()};
g.h.ri=function(){return this.g.ri()};
g.h.Cr=function(){return this.g.Cr()};
g.h.togglePictureInPicture=function(){this.g.togglePictureInPicture()};
g.h.Qd=function(){return this.g.Qd()};
g.h.pk=function(){return this.g.pk()};
g.h.setSize=function(a){return this.g.setSize(a)};
g.h.getVolume=function(){return this.g.getVolume()};
g.h.setVolume=function(a){this.g.setVolume(a)};
g.h.setAttribute=function(a,b){this.g.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.g.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.g.hasAttribute(a)};
g.h.kj=ba(8);g.h.il=ba(10);g.h.Ch=ba(5);g.h.sj=ba(12);g.h.Cj=function(){this.g.Cj()};
g.h.Mj=function(a){return this.g.Mj(a)};
g.h.stopVideo=function(){this.g.stopVideo()};
g.h.Zp=function(a){this.g.Zp(a)};g.t(vX,g.A);g.h=vX.prototype;g.h.isFinished=function(){return 6==this.o.status};
g.h.getStatus=function(){return this.o};
g.h.Lg=function(){var a=this.i.getVideoData(),b=this.g.getVideoData(),c;if((c=a.va&&(b.va||this.l.g))&&!(c=!this.l.g||!a.ia)){c=a.ia;for(var d=!1,e=!1,f=g.q(Object.values(c.g)),k=f.next();!k.done;k=f.next())k=k.value,k.info.audio&&k.index.Eb()&&(d=!0),k.info.video&&k.index.Eb()&&(e=!0);c.g["0"]&&(e=!0);c=d&&e}if(c){f=wX(this);c=f.WC;e=f.Qy;d=f.VC;f=f.Py;if(!this.H){k=(1E3*this.g.getCurrentTime()).toFixed();var l=this.i.getCurrentTime();l=(1E3*(d-c-l)).toFixed();a=+a.isAd();this.g.Ma("glrem","nst."+
k+";rem."+l+";ca."+a);this.H=!0}(a=Gma(this.l,this.i,this.g,this.R))?uX(this,"cannot_apply_"+a):2==this.o.status?BX(this):(a=this.i.D)&&(a.g||a.i)&&(!Mx(a)&&g.kr()?uX(this,"mse_closed"):this.l.F&&b.ia&&Yw(b.ia)&&a.i&&!a.i.wm()?uX(this,"encr_upgrade"):(b=this.i.g,b.Se()?uX(this,"elem_ended"):0>e?uX(this,"next_player_future"):(this.F=d,this.u=Rx(a,c,d,!0),this.A=Rx(a,e,f,!1),a=this.g.getVideoData().clientPlaybackNonce,this.i.Ma("gaplessPrep","cpn."+a),kK(this.i,this.u),UJ(this.i,xX(b,c,d,this.i.getVideoData().sa)),
yX(this,2),BX(this))))}};
g.h.xi=function(a){var b=AX(this),c=(b=a==b.LA)?this.u.g:this.u.i,d=b?this.A.g:this.A.i;if(c.isActive()&&!d.isActive()){var e=this.F;a=a.oc();if(0<=Bx(a,e-.01)){yX(this,4);c.setActive(!1);this.g.Ma("sbh","1");if(this.D&&this.l.P&&(a=this.i.getCurrentTime()-10,0<a)){this.g.Ma("sbr",d.fb({tt:e,a:""+ +b}));try{c.remove(0,a)}catch(f){this.g.Ma("sbrf","e."+f.name)}}d.setActive(!0)}b=this.A.i;this.A.g.isActive()&&b.isActive()&&yX(this,5)}};
g.h.U=function(){zX(this);if(this.u){var a=this.u.i;this.u.g.g.unsubscribe("updateend",this.xi,this);a.g.unsubscribe("updateend",this.xi,this)}g.A.prototype.U.call(this)};
g.h.ey=function(a){this.l.l&&g.aE(a,128)&&uX(this,"player-error-event")};g.t(CX,g.A);CX.prototype.clearQueue=function(){this.A&&this.A.reject("Queue cleared");DX(this)};
CX.prototype.U=function(){DX(this);g.A.prototype.U.call(this)};g.t(HX,g.A);HX.prototype.get=function(a){FX(this);var b=this.g.find(function(c){return c.key==a});
return b?b.value:null};
HX.prototype.set=function(a,b,c){this.remove(a,!0);FX(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=g.M()+c);for(this.g.push(a);this.g.length>this.o;)c=this.g.shift(),IX(this,c,!0);GX(this)};
HX.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.g.find(function(d){return d.key==a});
c&&(IX(this,c,b),g.eb(this.g,function(d){return d.key==a}),GX(this))};
HX.prototype.U=function(){var a=this;g.A.prototype.U.call(this);this.g.forEach(function(b){IX(a,b,!0)});
this.g=[]};g.t(JX,g.A);JX.prototype.l=function(a){this.i=a[a.length-1].intersectionRatio};
JX.prototype.U=function(){g.A.prototype.U.call(this);this.i=null;this.g&&this.g.disconnect()};g.Vna=lc(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});g.t(KX,g.W);g.h=KX.prototype;g.h.hE=function(){this.F=new g.nh(0,0,0,0);this.o=new g.nh(0,0,0,0)};
g.h.In=function(a){g.po(this.element,arguments)};
g.h.ye=function(){if(this.l){var a=this.getPlayerSize();if(!a.isEmpty()){var b=this.o;b=!g.wd(a,new g.vd(b.width,b.height));var c=RX(this);b&&(this.o.width=a.width,this.o.height=a.height);a=this.app.g;(c||b||a.ga)&&this.app.i.N("resize",this.getPlayerSize())}}};
g.h.LG=function(a,b){this.updateVideoData(b)};
g.h.iE=function(a){a.getVideoData()&&this.updateVideoData(a.getVideoData())};
g.h.updateVideoData=function(a){if(this.l){var b=this.app.g;rr&&(this.l.setAttribute("x-webkit-airplay","allow"),a.title?this.l.setAttribute("title",a.title):this.l.removeAttribute("title"));WB(a)?this.l.setAttribute("disableremoteplayback",""):this.l.removeAttribute("disableremoteplayback");this.l.setAttribute("controlslist","nodownload");b.Nn&&a.videoId&&(this.l.poster=a.Ac("default.jpg"))}b=g.cC(a,"yt:bgcolor");this.u.style.backgroundColor=b?b:"";this.P=Ry(g.cC(a,"yt:stretch"));this.T=Ry(g.cC(a,
"yt:crop"),!0);g.I(this.element,"ytp-dni",a.Pb);this.ye()};
g.h.setGlobalCrop=function(a){this.I=Ry(a,!0);this.ye()};
g.h.getPlayerSize=function(){var a=this.app.g,b=this.app.P.isFullscreen();if(b&&ir())return new g.vd(window.outerWidth,window.outerHeight);if(b||a.Fl){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.D&&this.D.media==a||(this.D=window.matchMedia(a));var c=this.D&&this.D.matches}if(c)return new g.vd(window.innerWidth,window.innerHeight)}else{if(!isNaN(this.A.width)&&!isNaN(this.A.height))return this.A.clone();if(this.Z&&this.X&&!this.app.isWidescreen())for(a=
0;a<this.Z.length;a++)if(b=this.Z[a],b.query.matches)return new g.vd(b.size.width,b.size.height)}return new g.vd(this.element.clientWidth,this.element.clientHeight)};
g.h.getVideoAspectRatio=function(){return isNaN(this.P)?NX(this):this.P};
g.h.getVideoContentRect=function(a){var b=this.getPlayerSize();a=OX(this,b,this.getVideoAspectRatio(),a);return new g.nh((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.h.UD=function(){this.l&&uM(this);QX(this)!=this.M&&this.ye()};
g.h.MG=function(){uM(this)};
g.h.setUseFastSizingOnWatch=function(a){this.X!=a&&(this.X=a,this.ye())};
g.h.setInternalSize=function(a){g.wd(this.A,a)||(this.A=a,this.ye())};
g.h.U=function(){this.H&&g.mq(this.H);LX(this);g.W.prototype.U.call(this)};SX.prototype.click=function(a){this.g.has(a);this.i.has(a);var b=g.Ct();b&&a.visualElement&&g.nt(b,a.visualElement)};g.t(VX,g.W);g.t(XX,g.W);g.h=XX.prototype;g.h.show=function(){g.W.prototype.show.call(this);this.Zr()};
g.h.hide=function(){g.W.prototype.hide.call(this);this.l.stop()};
g.h.stop=function(){this.l.stop()};
g.h.start=function(){this.l.isActive()||this.Zr()};
g.h.Zr=function(){var a=g.M(),b=kD(this.D);WX(this.o,b.bandwidth_samples);WX(this.B,b.network_activity_samples);WX(this.A,b.live_latency_samples);WX(this.u,b.buffer_health_samples);this.update(b);a=25<g.M()-a?5E3:500;this.l.start(a)};g.t(YX,g.A);g.h=YX.prototype;g.h.getVisibilityState=function(a,b,c,d,e){return this.F.getVisibilityState(a,b,c,d,e)};
g.h.isVideoInfoVisible=function(){return!(!this.aa||!this.aa.Fa())};
g.h.xI=function(){$X(this)||g.tY(this,5)};
g.h.xK=function(a){$X(this)||(KY(this),g.XC(a.getPlayerState())&&this.playVideo())};
g.h.canPlayType=function(a){return px(a)};
g.h.getVideoData=function(){return this.A.getVideoData()};
g.h.getVideoLoadedFraction=function(a){return(a=(a=g.U(this,a))?a.g:null)?IC(a):0};
g.h.pd=function(){var a=this.o.Pj(),b=this.o.o;b&&g.Ra(a,b.Pj());a.fs=this.i.isFullscreen();a.volume=Math.round(this.P.getVolume());a.mos=this.P.isMuted()?1:0;if(g.O(this.g.experiments,"html5_enable_embedded_player_visibility_signals")&&this.g.i&&(this.Oc&&(b=this.Oc,b=null==b.i?null:Math.round(100*b.i)/100,null!=b&&(a.inview=b)),b=this.D.getPlayerSize(),0<b.height&&0<b.width)){b=[Math.round(b.height),Math.round(b.width)];var c=g.Dz();1<c&&b.push(c);a.size=b.join(":")}return a};
g.h.setLoopRange=function(a){var b=!1;!!this.Y!==!!a?b=!0:this.Y&&a&&(b=this.Y.start!==a.startTimeMs||this.Y.end!==a.endTimeMs);b&&(PG(this.l.H,"applooprange"),b=null,a&&(b=new g.qE(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),!this.Y&&b&&(this.l.seekTo(b.start/1E3,!0),this.l.playVideo()),this.l.addCueRange(b)),this.Y=b,this.i.N("looprangechange",a))};
g.h.getLoopRange=function(){return this.Y?{startTimeMs:this.Y.start,endTimeMs:this.Y.end}:null};
g.h.setPlaybackRate=function(a,b){if(!isNaN(a)){var c=ZX(this,a);this.l.getPlaybackRate()!=c&&(this.l.setPlaybackRate(c),b&&!this.g.i&&g.Ht("yt-player-playback-rate",c),this.i.la("onPlaybackRateChange",c))}};
g.h.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3==this.getPresentingPlayerType())return g.KK(this.o).getCurrentTime();var c=g.U(this,a);return c?b?(c=lY(this,c),yY(this,c.getCurrentTime(),c)):c.getCurrentTime():0};
g.h.getDuration=function(a,b){var c=g.U(this,a);return c?void 0===b||b?(c=kY(this,c),yY(this,c.getDuration(),c)):c.getDuration():0};
g.h.Ab=function(a){a=g.U(this,a);if(!a)return 0;a=kY(this,a);return yY(this,a.Ab(),a)};
g.h.getDebugText=function(a){var b=this.l.fb(a);if(this.A&&this.A!=this.l&&(b=TY(b,this.A.fb(a),"ad_"),a)){var c=b;var d={};var e=Cd(document,"movie_player");e&&(d.bounds=e.getBoundingClientRect(),d["class"]=e.className);e={};var f=g.Fd("video-ads");f?(SY(f,e),e.html=f.outerHTML):e.missing=1;f={};var k=g.Fd("videoAdUiSkipContainer"),l=g.Fd("ytp-ad-skip-button-container"),m=k||l;m?(SY(m,f),f.ima=k?1:0,f.bulleit=l?1:0):f.missing=1;k={};k.player=d;k.videoAds=e;k.skipButton=f;d=JSON.stringify(k);c.ad_skipBtnDbgInfo=
d}a&&this.u&&(b["0sz"]=0==xd(this.u.pk()),b.op=this.u.Mj("opacity"),c=this.u.Qd().y+this.u.pk().height,b.yof=0>=c,b.dis=this.u.Mj("display"));(a=a?(0,g.DJ)():null)&&(b.gpu=a);b.cgr=!0;b.debug_playbackQuality=this.P.getPlaybackQuality();b.debug_date=(new Date).toString();delete b.uga;delete b.q;(a=this.o.Uc)&&(b=TY(b,a.fb(),"fresca_"));return JSON.stringify(b,null,2)};
g.h.getPresentingPlayerType=function(){return 1==this.R?1:$X(this)?3:g.U(this).getPlayerType()};
g.h.YE=function(a){switch(a.type){case "loadedmetadata":qB("fvb","")||UB("fvb",void 0,"");rB("fvb");this.tb.start();break;case "loadstart":qB("gv","")||UB("gv",void 0,"");rB("gv");break;case "progress":case "timeupdate":!qB("l2s","")&&2<=Dx(a.target.ue())&&UB("l2s",void 0,"");break;case "playing":g.Gz&&this.tb.start();if(g.uz(this.g))a=!1;else{var b=this.o.u;a="none"==this.u.Mj("display")||0==xd(this.u.pk());var c=QX(this.D),d=this.A.getVideoData(),e=!this.ra("web_player_music_reload_hidden_killswitch")&&
Fz(this.g);d=FB(d);b=!c||b||e||d||this.g.cg;a=a&&!b}a&&(this.A.Ma("hidden","1",!0),this.getVideoData().cf||(this.ra("html5_new_elem_on_hidden")?(this.getVideoData().cf=1,this.nz(null),this.A.playVideo()):PY(this,"hidden",!0)))}};
g.h.GJ=function(a,b){this.i.la("onLoadProgress",b)};
g.h.BL=function(){this.i.N("playbackstalledatstart")};
g.h.ZE=function(a,b){if(!this.ra("web_player_continuous_video_progress_killswitch")){var c=lY(this,a);b=yY(this,c.getCurrentTime(),c)}this.i.la("onVideoProgress",b)};
g.h.hJ=function(){this.i.la("onDompaused")};
g.h.JK=function(){this.P.N("progresssync")};
g.h.UE=function(a){if(1==this.getPresentingPlayerType()){g.aE(a,1)&&!g.T(a.state,64)&&nY(this).sa&&this.l.isAtLiveHead()&&1<this.i.getPlaybackRate()&&this.setPlaybackRate(1,!0);g.aE(a,2)&&gY(this);if(g.T(a.state,128)){var b=a.state;FY(this,5);b=b.i;this.i.la("onError",UZ[b.errorCode]||5);this.i.la("onDetailedError",{errorCode:b.errorCode,errorDetail:b.errorDetail,message:b.errorMessage,nR:b.bq});6048E5<g.M()-this.g.Oc&&this.i.la("onReloadRequired")}g.WC(a.state)&&!g.YC(a.state)&&!qB("pbresume","ad_to_video")&&
qB("_start","ad_to_video")&&(b=this.getVideoData(),oE("cpn",b.clientPlaybackNonce,"ad_to_video"),b.videoId&&oE("docid",b.videoId,"ad_to_video"),UB("pbresume",void 0,"ad_to_video"));this.i.N("applicationplayerstatechange",a)}};
g.h.Gz=function(a){3!=this.getPresentingPlayerType()&&this.i.N("presentingplayerstatechange",a)};
g.h.WE=function(a){iY(this,ZC(a.state));g.T(a.state,1024)&&this.i.isMutedByMutedAutoplay()&&(DD(this,{muted:!1,volume:this.I.volume},!1),uY(this,!1))};
g.h.CK=function(a){g.WC(a.state)&&!g.YC(a.state)&&(FV(this.o),g.Ws(this.Yb))};
g.h.vI=function(a){"newdata"==a&&BY(this)};
g.h.AI=function(){this.i.la("onPlaybackAudioChange",this.i.getAudioTrack().kb.name)};
g.h.UL=function(a){var b=this.A.getVideoData();a==b&&this.i.la("onPlaybackQualityChange",a.za.ua().quality)};
g.h.zr=function(a,b,c){this.ra("html5_app_oauth_update_killswitch")||b!=this.l||(this.g.Ya=c.oauthToken);if("newdata"==a)LV(this.o,2),this.i.N("videoplayerreset",b);else{if(!this.u)return;if("dataloaded"==a)if(this.A==this.l){if(c.Oa.Sf(c.Is),!this.l.getPlayerState().isError()){var d=$X(this);nY(this).Eb();d&&g.tY(this,6);mY(this);d||(d=this.o.o)&&!d.created&&HV(this.o)&&d.create()}}else mY(this);if(1==b.getPlayerType()&&(this.g.M&&RY(this),this.getVideoData().sa&&!this.g.Km&&g.aJ(this.l,"html5.unsupportedlive",
"DEVICE_FALLBACK",void 0,void 0),c.Eb())){if(c.ao||c.Zn||c.Rc.focEnabled||c.Rc.rmktEnabled||this.getVideoData().Ju)d=this.getVideoData(),EY(this,"part2viewed",1,0x8000000000000),EY(this,"engagedview",Math.max(1,1E3*d.se),0x8000000000000),d.sa||(d=1E3*d.lengthSeconds,EY(this,"videoplaytime25",.25*d,d),EY(this,"videoplaytime50",.5*d,d),EY(this,"videoplaytime75",.75*d,d),EY(this,"videoplaytime100",d,0x8000000000000),EY(this,"conversionview",d,0x8000000000000));if(c.chapterMarkers.length&&g.O(this.g.experiments,
"enable_player_chapter_markers")){d=this.getVideoData();for(var e=[],f=0;f<d.chapterMarkers.length;f++){var k=d.chapterMarkers[f].playerChapterMarkerRenderer;if(k){var l={id:"__chapterMarker"+f+"__",style:"ytp-chapter-marker",visible:!0,namespace:"appchaptermarker"};k.color&&(l.color=k.color);k.tooltip&&(l.tooltip=k.tooltip);k.icons&&(l.icons=k.icons);var m=k.startTimeMs;e.push(new g.qE(m,k.endTimeMs||m,l))}}PK(this,e,1)}}this.i.N("videodatachange",a,c,b.getPlayerType())}this.g.vb&&this.i.la("onVideoDataChange",
{type:a,playertype:b.getPlayerType()});b==this.l&&(a=c.getPlayerResponse())&&(a=a.clipConfig)&&a.startTimeMs&&a.endTimeMs&&this.setLoopRange({startTimeMs:parseInt(a.startTimeMs,10),endTimeMs:parseInt(a.endTimeMs,10)});a=c.clientScreenNonce;c=c.oo;a&&c?(b=this.T,a!=g.Ct()&&(Et(a,c),UX(b))):UX(this.T)};
g.h.Zl=function(){pY(this,null);this.i.la("onPlaylistUpdate")};
g.h.Ty=function(a){var b=a.getId(),c=nY(this);if("part2viewed"==b)c.Vz&&g.xr(c.Vz),c.Zn&&g.xr(c.Zn);else if("conversionview"==b){var d=this.l.u;d.i&&iE(d.i)}else"engagedview"==b&&g.xr(c.ao);if(c.bo){d=c.bo;var e={label:a.getId()};if(g.O(this.g.experiments,"send_pyv_ad_mt_and_abandon_pings")){var f=1E3*this.getCurrentTime();e.ad_mt=Math.round(Math.max(0,f)).toString()}d=g.Lq(d,e);g.xr(d)}switch(b){case "videoplaytime25":c.Es&&g.xr(c.Es);c.Xz&&g.xr(c.Xz);break;case "videoplaytime50":c.Fs&&g.xr(c.Fs);
c.Yz&&g.xr(c.Yz);break;case "videoplaytime75":c.Gs&&g.xr(c.Gs);c.Zz&&g.xr(c.Zz);break;case "videoplaytime100":c.Ds&&g.xr(c.Ds),c.Wz&&g.xr(c.Wz)}(b=this.getVideoData().Ju)&&b[a.getId()]&&(c=b[a.getId()],g.xr(c,void 0,zv(c)||Av(c)||yv(c)),b=b[a.getId()+"gaia"],g.xr(b,void 0,zv(b)||Av(b)||yv(b)));this.l.removeCueRange(a)};
g.h.LJ=function(){var a=this.l.getPlayerState();g.WC(a)&&!g.T(a,16)&&!g.T(a,32)||g.T(a,2)&&this.Y.end/1E3>this.l.getDuration()-1?this.l.seekTo(this.Y.start/1E3,!0):this.setLoopRange(null)};
g.h.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.U(this,a);if(!c)return!1;var d=kY(this,c);c=lY(this,c);return d==c||this.ra("html5_continuous_liveness_killswitch")?d.isAtLiveHead(void 0,b):d.isAtLiveHead(yY(this,c.getCurrentTime(),c),!0)};
g.h.seekTo=function(a,b,c,d){b=0!=b;if(d=g.U(this,d))2==this.R&&rY(this),wM(this,d)?this.na.seekTo(a,b,c):d.seekTo(a,b,c)};
g.h.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.h.XE=function(){this.i.la("SEEK_COMPLETE")};
g.h.jL=function(a,b){var c=a.getVideoData();if(1==this.R||2==this.R)c.startSeconds=b;2==this.R?rY(this):this.i.la("SEEK_TO",b)};
g.h.mI=function(){this.i.N("airplayactivechange")};
g.h.nI=function(){this.i.N("airplayavailabilitychange")};
g.h.GI=function(){this.i.N("beginseeking")};
g.h.kJ=function(){this.i.N("endseeking")};
g.h.getStoryboardFormat=function(a){return(a=g.U(this,a))?kY(this,a).getVideoData().getStoryboardFormat():null};
g.h.de=function(a){return(a=g.U(this,a))?kY(this,a).getVideoData().de():null};
g.h.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;wM(this);a=new g.zB(this.g,a);d&&(a.hc=d);c=void 0===c?Infinity:c;b=b||this.A.getPlayerType();var e;g.O(this.g.experiments,"html5_gapless_preloading")&&(e=vY(this,b,a,!0));e||(e=eY(this,b),zJ(e,a,(0,g.x)(this.pd,this)));iX(this,e,c)};
g.h.clearQueue=function(){this.Ea.clearQueue()};
g.h.loadVideoByPlayerVars=function(a,b,c,d){this.g.Kb&&uA(a);var e=new g.zB(this.g,a);c||(a&&xE(a)?(Cz(this.g)&&!this.M&&(a.fetch=0),pY(this,a)):this.B&&pY(this,null),a&&(this.M=Q(!1,a.external_list)),Cz(this.g)&&!this.M&&qY(this));return rX(this,e,b,d)};
g.h.preloadVideoByPlayerVars=function(a,b,c,d,e,f){b=void 0===b?1:b;c=void 0===c?NaN:c;d=void 0===d?"":d;e=void 0===e?"":e;f=void 0===f?!1:f;var k=b+"_"+(a.docid||a.video_id||a.videoId||a.id||null)+"_"+e,l;if(!(l=this.Ya.get(k))&&(l=this.A)){l=this.A.getPlayerType();var m=this.A.getVideoData().videoId,n=this.A.getVideoData().hc;l=k==l+"_"+m+"_"+n}l||(this.g.Kb&&uA(a),a=new g.zB(this.g,a),e&&(a.hc=e),f&&(a.ie=!0),e=b+"_"+a.videoId+"_"+a.hc,a.Ci=!0,f=eY(this,b),zJ(f,a,(0,g.x)(this.pd,this)),!g.O(this.g.experiments,
"unplugged_tvhtml5_video_preload_no_dryrun")&&1==b&&"TVHTML5_UNPLUGGED"==this.g.deviceParams.c||EJ(f,!0),this.Ya.set(e,f,c||3600),c="prefetch_"+a.videoId,jB("prefetch",["pfp"],c),oE("docid",a.videoId,c),oE("plt",b,c),oE("c",this.g.deviceParams.c,c),oE("cver",this.g.deviceParams.cver,c),d&&oE("pftr",d,c))};
g.h.setMinimized=function(a){this.F.setMinimized(a);a=this.o;(a=g.X(a.g).showMiniplayerUiWhenMinimized?a.Y:null)&&(this.F.g?a.load():a.unload());this.i.N("minimized")};
g.h.setInline=function(a){this.F.setInline(a)};
g.h.gL=function(){"picture-in-picture"==this.u.ha().webkitPresentationMode?XI(this.F,!0):XI(this.F,!1)};
g.h.togglePictureInPicture=function(){var a=g.U(this);a&&a.togglePictureInPicture()};
g.h.cueVideoByPlayerVars=function(a,b){this.g.Kb&&uA(a);if(a&&xE(a)){this.xa=!0;pY(this,a);var c=this.B.ua();if(c&&c.isValid())HY(this,c,b);else this.B.onReady((0,g.x)(this.On,this))}else b||(b=this.getPresentingPlayerType()),1==b&&this.Zl(),HY(this,new g.zB(this.g,a),b)};
g.h.cuePlaylist=function(a,b,c,d){this.xa=!0;a=zC(a,b,c,d);pY(this,a);this.B.onReady((0,g.x)(this.On,this))};
g.h.loadPlaylist=function(a,b,c,d){this.xa=!1;a=zC(a,b,c,d);pY(this,a);this.B.onReady((0,g.x)(this.On,this))};
g.h.On=function(){var a=this.B.ua();if(a){var b=this.getVideoData();b.rh||!this.xa?(b=b.tg,a=rX(this,a),b&&GY(this,a)):HY(this,a)}this.i.la("onPlaylistUpdate")};
g.h.nextVideo=function(a,b){var c=this,d=this.l.getVideoData().suggestions;if(g.YK(this.i)&&d){d=(0,g.ge)(d,function(f){return g.DS(c.g,f)});
d=d[0];var e=b?d.Pv:d.Cb;g.IY(this,d.ua().videoId,e,d.getPlaylistId(),b)}else this.M?this.i.la("onPlaylistNext"):3==this.getPresentingPlayerType()?g.KK(this.o).nextVideo():this.B&&(Cz(this.g)&&!this.i.isFullscreen()?DY(this,"yt.www.watch.lists.next"):(this.B.hasNext(a)&&AE(this.B,yE(this.B)),this.B.dd?(d=b&&g.O(this.g.experiments,"html5_player_autonav_logging"),rX(this,this.B.ua(void 0,b,d),1)):this.xa=!1))};
g.h.previousVideo=function(a){this.M?this.i.la("onPlaylistPrevious"):3==this.getPresentingPlayerType()?g.KK(this.o).Xn():this.B&&(Cz(this.g)&&!this.i.isFullscreen()?DY(this,"yt.www.watch.lists.prev"):(this.B.Oe(a)&&AE(this.B,zE(this.B)),this.B.dd?rX(this,this.B.ua(),1):this.xa=!1))};
g.h.playVideoAt=function(a){this.M?this.i.la("onPlaylistIndex",a):this.B&&(this.B.dd?rX(this,this.B.ua(a),1):this.xa=!1,AE(this.B,a))};
g.h.getPlaylist=function(){return this.B};
g.h.tI=function(a){this.i.la("onCueRangeEnter",a.getId())};
g.h.uI=function(a){this.i.la("onCueRangeExit",a.getId())};
g.h.yI=function(){this.getPresentingPlayerType();this.wa||(this.wa=XA(this.cz,this));pE(this.ea,this.A.getVideoData(),PP(this));oY(this)&&this.g.i&&"embedded"==g.pC(nY(this))&&this.Qc&&.01>Math.random()&&CD(this.ma,"autoplayTriggered",{intentional:this.jd});this.Qc=!1;var a=g.Ct(this.zd||(this.F.g?3:0));if(a){var b={cpn:this.getVideoData().clientPlaybackNonce,csn:a};if(g.O(this.g.experiments,"web_playback_associated_ve")&&null!=this.getVideoData().Gf){var c=g.it(this.getVideoData().Gf);g.mt(a,c);
b.playbackVe=g.jt(c)}CD(this.ma,"playbackAssociated",b)}this.ra("web_player_inline_botguard")&&(a=this.getVideoData().botguardData)&&(Wp("BG_I",a.interpreterScript),Wp("BG_IU",a.interpreterUrl),Wp("BG_P",a.program),Qt(this.g.jb))};
g.h.wJ=function(){this.P.N("internalAbandon");this.ra("html5_ad_module_cleanup_killswitch")||AY(this)};
g.h.cz=function(a){a=a.g;if(!isNaN(a)&&0<a&&this.l){var b=this.l.u;b.g&&0<a&&(b.g.i.aft=[a])}};
g.h.sI=function(){this.g.vb&&this.A?this.i.la("onApiChange",this.A.getPlayerType()):this.i.la("onApiChange")};
g.h.XJ=function(){var a=this.u;a={volume:g.pd(Math.floor(100*a.getVolume()),0,100),muted:a.ym()};a.muted||uY(this,!1);this.I=g.bc(a);this.i.la("onVolumeChange",a)};
g.h.oJ=function(){jY(this,LY(this)?1:0);var a=Rs();NY(this,!!a&&g.$d(this.D.element,a))};
g.h.isFullscreen=function(){return this.F.isFullscreen()};
g.h.ZK=function(){2!=this.F.l&&jY(this,LY(this)?1:0);this.g.Al&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.u&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.u.Cj()};
g.h.FJ=function(a){3!=this.getPresentingPlayerType()&&this.i.N("liveviewshift",a)};
g.h.playVideo=function(a){if(a=g.U(this,a))2==this.R?rY(this):g.O(this.g.experiments,"html5_restore_userreload_killswitch")&&a.getPlayerState().isError()?PY(this,"user"):(null!=this.aa&&this.aa.Fa()&&this.aa.start(),g.T(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.h.pauseVideo=function(a){(a=g.U(this,a))&&a.pauseVideo()};
g.h.stopVideo=function(){var a=this.l.getVideoData(),b=new g.zB(this.g,{video_id:a.Nt||a.videoId,oauth_token:a.oauthToken});g.O(this.g.experiments,"html5_stopVideo_copy_thumbs_killswitch")||(b.ff=g.bc(a.ff));this.ra("web_player_stop_video_cancel_presenting_killswitch")||FY(this,6);HY(this,b,1);null!=this.aa&&this.aa.stop()};
g.h.sendVideoStatsEngageEvent=function(a,b,c){(b=g.U(this,b))&&this.g.hf.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.h.updatePlaylist=function(){qY(this);this.i.la("onPlaylistUpdate")};
g.h.setSizeStyle=function(a,b){this.Ad=a;this.Xb=b;this.i.N("sizestylechange",a,b);this.D.ye()};
g.h.isWidescreen=function(){return this.Xb};
g.h.isInline=function(){return this.F.isInline()};
g.h.getAdState=function(){if(!this.ra("web_player_mdx_ad_killswitch")&&3==this.getPresentingPlayerType())return g.KK(this.o).getAdState();if(!wM(this)){var a=this.o.o;if(a)return a.getAdState()}return-1};
g.h.YK=function(a){var b=this.D.getVideoContentRect();g.ph(this.kd,b)||(this.kd=b,this.A&&$J(this.A),this.l&&this.l!=this.A&&$J(this.l),1==this.F.l&&this.Ra&&NY(this,!0));this.Wb&&g.wd(this.Wb,a)||(this.i.N("appresize",a),this.Wb=a)};
g.h.fc=function(){return this.P.fc()};
g.h.sL=function(){this.getPresentingPlayerType();PY(this,"signature",void 0,!0)};
g.h.nz=function(){dY(this);cY(this)};
g.h.WK=function(a){kK(a,this.u.pn())};
g.h.ZI=function(){this.i.la("CONNECTION_ISSUE")};
g.h.VE=function(a){this.i.N("heartbeatparams",a)};
g.h.setBlackout=function(a){this.g.cg=a;this.A&&(g.wI(this.A.u),this.g.M&&RY(this))};
g.h.nK=function(){var a=g.U(this);a&&g.xK(a,!this.i.dk())};
g.h.IJ=function(){this.i.la("onLoadedMetadata")};
g.h.iJ=function(){this.i.la("onDrmOutputRestricted")};
g.h.U=function(){this.o.dispose();this.na.dispose();this.l.dispose();dY(this);g.rf(g.Qb(this.uc),this.B);WA(this.wa);this.wa=0;g.A.prototype.U.call(this)};
g.h.ra=function(a){return g.O(this.g.experiments,a)};
g.h.setScreenLayer=function(a){this.zd=a};
var g_={};g.Ga("yt.player.Application.create",function(a,b){try{var c=g.Da(a)?a:"player"+g.Pa(a),d=g_[c];if(d){try{d.dispose()}catch(f){g.L(f)}g_[c]=null}var e=new YX(a,b);g.pf(e,function(){g_[c]=null});
return g_[c]=e}catch(f){throw g.L(f),f.stack;}},void 0);
var h_=g.w("ytcsi.tick");h_&&h_("pe");})(_yt_player);