File: /www/wwwroot/www.yndqf.com/ceshi/index_files/base.js
var _yt_player={};(function(g){var window=this;/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var ba,da,aaa,ka,na,qa,oa,ra,sa,ta,va,wa,xa,caa,ya,za,Aa,Ba,Ca,daa,Ea,Fa,Ga,Ha,Ja,La,Ma,gaa,haa,iaa,Wa,Xa,jaa,kaa,laa,maa,eb,naa,lb,nb,oaa,tb,qb,paa,rb,qaa,raa,saa,yb,taa,Ab,uaa,vaa,Eb,Fb,Gb,Hb,Lb,Nb,Ob,Wb,Zb,$b,dc,ec,yaa,fc,gc,oc,pc,rc,Cc,Dc,Ec,Ic,Gc,Caa,Faa,Gaa,Haa,Mc,Nc,Pc,Oc,Sc,Vc,Iaa,Jaa,Uc,Xc,Kaa,bd,cd,dd,ed,id,kd,Naa,md,od,sd,td,ud,vd,wd,xd,yd,Ad,Cd,Dd,Fd,Gd,Paa,Hd,Id,Jd,Kd,Raa,Ld,Sd,Ud,Xd,be,ce,he,ie,le,je,ne,pe,oe,ye,Zd,Ee,Ce,De,Uaa,Fe,Yd,Xaa,He,Ie,Yaa,Oe,Qe,$aa,Re,Se,Te,Ue,We,Ye,aba,Ve,
df,ef,af,hf,gf,cba,Ze,Xe,lf,mf,nf,of,qf,eba,sf,tf,fba,yf,Af,Cf,Df,Ff,Gf,Hf,Jf,Kf,gba,Mf,Of,Pf,Lf,Nf,Bf,If,iba,Sf,Qf,Rf,Uf,hba,Tf,Yf,$f,jba,kba,lba,mba,nba,oba,pba,qba,rba,gg,cg,kg,mg,jg,ng,og,pg,qg,rg,sg,tg,ug,vg,wg,xg,yg,zg,Ag,Bg,Eg,Fg,Gg,Hg,Ig,Jg,Kg,Lg,Qg,Og,Rg,sba,Sg,Tg,Ug,Vg,Pg,Wg,Yg,Xg,$g,ah,Zg,bh,ch,dh,eh,fh,gh,hh,ih,lh,nh,mh,oh,ph,vba,xba,yba,Aba,rh,sh,th,vh,wh,Ch,Dh,Gh,Hh,Ih,Lh,Kh,Mh,Eh,Bba,Xh,Yh,Zh,Cba,$h,ai,bi,ci,di,ei,fi,Dba,gi,hi,ii,Eba,Fba,ji,li,ki,ni,oi,ri,pi,Hba,qi,si,ti,vi,ui,wi,Iba,
xi,Kba,Jba,Lba,Ai,Mba,Ci,Di,Ei,Bi,Fi,Nba,Gi,Oba,Ii,Sba,Ji,Ki,Li,Mi,Tba,Oi,Qi,Ti,Wi,Yi,Vi,Ui,Zi,Uba,$i,aj,bj,cj,dj,Wba,ij,jj,Yba,kj,lj,mj,nj,oj,Zba,qj,rj,sj,tj,vj,uj,$ba,aca,bca,wj,xj,yj,zj,Bj,Cj,Dj,Ej,Fj,Aj,Gj,Hj,Ij,cca,dca,Jj,Kj,eca,Lj,Mj,fca,Oj,gca,Pj,Qj,Rj,hca,Sj,Tj,Vj,Xj,Yj,Zj,ak,bk,Uj,Wj,jca,ck,dk,fk,gk,hk,ik,nca,oca,pca,jk,lk,qca,rca,sca,nk,ok,tca,pk,uca,qk,vca,rk,sk,tk,wca,uk,wk,xk,yk,zk,Ak,Bk,Ck,Dk,xca,yca,Ek,zca,Gk,Fk,Jk,Kk,Ik,Aca,Eca,Dca,Mk,Fca,Gca,Hca,Jca,Ica,Kca,Nk,Pk,Rk,Sk,Tk,Mca,Xk,
Yk,Nca,Oca,Zk,$k,al,bl,Pca,cl,dl,Qca,el,fl,Sca,gl,hl,Tca,jl,kl,ml,nl,ol,ql,rl,tl,ul,il,vl,xl,wl,yl,zl,Bl,Vca,Cl,Uca,Dl,El,Wca,Xca,Gl,Il,Jl,Kl,Ll,Hl,Ol,Pl,Ml,Yca,$ca,ada,Rl,Sl,Tl,Ul,bda,Vl,Wl,Xl,Yl,Zl,$l,am,bm,em,dm,dda,eda,fm,hm,cm,gm,cda,im,jm,gda,hda,ida,jda,nm,om,pm,km,qm,rm,fda,kda,lda,mda,um,sm,vm,xm,rda,nda,sda,Bm,Cm,Dm,Em,Fm,vk,tda,Gm,Hm,uda,vda,wda,xda,yda,Jm,Km,Lm,Mm,Nm,Om,Bda,Cda,Pm,Tm,Sm,Ym,Zm,an,Fda,$m,cn,en,dn,Dda,hn,kn,ln,Kda,Jda,mn,nn,on,pn,qn,sn,un,Qda,Oda,Pda,Tda,Rda,Sda,vn,Uda,yn,
zn,Xda,Wda,Gn,Hn,In,Yda,On,Pn,$da,Qn,Rn,eea,aea,Yn,Zn,$n,kea,co,eo,fo,go,lea,jo,ko,lo,mo,oo,po,qo,ro,to,uo,xo,yo,zo,oea,pea,Bo,Co,Fo,Do,Go,Io,Jo,Ho,qea,Mo,Po,rea,Zo,Yo,uea,vea,ap,jp,ip,fp,yea,xea,Cp,Bp,vp,Bea,Ep,Fp,Gp,Hp,Eea,Fea,Op,Pp,Qp,Wp,Xp,Gea,Zp,aq,Yp,dq,gq,fq,eq,iq,nq,oq,pq,qq,wq,uq,xq,yq,zq,Cq,Bq,Hea,Jea,Eq,Kea,Iq,Hq,Mea,Jq,Kq,Nea,Oq,Oea,Pea,Mq,Qea,Qq,Rq,Rea,Uq,Wq,Zq,Sea,cr,er,fr,Tea,ir,Vea,lr,kr,Wea,nr,qr,rr,sr,ur,tr,Yea,xr,yr,zr,Ar,Br,Dr,Fr,Gr,Hr,Er,bfa,$ea,Ir,Lr,Mr,efa,Jr,Kr,Or,Qr,Rr,Ur,
Sr,Wr,Vr,Xr,ffa,Zr,$r,Zf,bs,ds,fs,gs,hs,js,hfa,ns,os,ps,rs,ifa,xs,ws,qs,ys,Cs,kfa,ag,Ps,Os,Rs,Ns,Qs,lfa,Ts,mfa,nfa,ofa,qfa,Us,pfa,Vs,Ws,Xs,Ys,at,bt,rfa,et,ft,gt,ct,kt,jt,lt,mt,ot,pt,qt,it,rt,ut,tfa,wt,ufa,xt,zt,vfa,Bt,wfa,xfa,yfa,zfa,Afa,Ct,Bfa,Cfa,At,vt,Dfa,Et,Ft,Ht,Efa,It,Jt,Kt,Lt,Ffa,Mt,Nt,Ot,Pt,Qt,Rt,St,Tt,Ut,Vt,Wt,Xt,Yt,Zt,$t,Gfa,bu,cu,au,du,eu,fu,gu,hu,Hfa,wu,iu,Ifa,vu,Jfa,Au,Bu,Cu,Du,Eu,Fu,Hu,Iu,Ju,Lu,Ku,Mu,Ou,Ru,Lfa,Su,Yu,Zu,av,bv,cv,dv,ev,fv,gv,hv,Mfa,iv,jv,lv,mv,kv,Nfa,nv,ov,qv,tv,Ofa,uv,
yv,wv,rv,zv,vv,xv,Av,Bv,Cv,Pfa,Dv,Ev,Fv,Gv,Mv,Qfa,Iv,Ov,Qv,Tv,Sv,Kv,Pv,Nv,Rfa,Uv,Wv,Xv,Sfa,Yv,Zv,Hv,Jv,Lv,Rv,$v,aw,bw,dw,cw,Tfa,ew,fw,gw,hw,iw,Ufa,kw,jw,lw,mw,nw,ow,pw,qw,rw,tw,uw,vw,ww,xw,yw,zw,Aw,Bw,Cw,Dw,Fw,Ew,Gw,Hw,Iw,Jw,Kw,Vfa,Wfa,Mw,Ow,Pw,Rw,Tw,Uw,Ww,Xw,Yw,Zw,$w,bx,cx,dx,ex,ax,aga,fx,gx,hx,ix,cga,dga,jx,ega,lx,fga,kx,mx,ox,px,qx,sx,gga,tx,ux,vx,wx,xx,yx,Ax,zx,Bx,hga,Cx,Dx,Ex,Fx,Gx,iga,jga,nga,oga,kga,lga,mga,Hx,Ix,pga,Kx,Lx,Mx,qga,Px,Qx,rga,sga,Rx,Sx,tga,uga,vga,Tx,wga,Yx,Ux,ay,xga,yga,by,zga,
Aga,cy,dy,Bga,ey,fy,Cga,Dga,Zx,Ega,gy,Fga,Gga,hy,Hga,Iga,iy,jy,ky,ly,my,ny,oy,py,qy,sy,ry,ty,Jga,vy,wy,yy,zy,Ay,By,Cy,Dy,Kga,S,Ey,Fy,Gy,Hy,Iy,fz,gz,jz,kz,Ty,Yy,bz,az,ez,nz,pz,tz,Qy,Py,vz,$y,Rga,Sga,Tga,xz,yz,Az,Bz,Cz,Dz,Ez,zz,Fz,Uga,Hz,Iz,Xga,Zga,Yga,Kz,Wga,Vga,Jz,Lz,$ga,Mz,aha,cha,bha,dha,Nz,Oz,eha,fha,gha,Pz,Qz,iha,Rz,hha,Sz,Tz,jha,kha,Uz,Wz,Xz,$z,Zz,lha,bA,cA,nha,oha,pha,qha,rha,sha,tha,eA,uha,vha,wha,xha,yha,zha,Gha,Hha,Iha,Kha,iA,jA,Lha,lA,mA,nA,pA,qA,kA,rA,oA,tA,uA,wA,vA,xA,yA,AA,BA,CA,DA,GA,
EA,JA,FA,KA,MA,Qha,NA,PA,RA,SA,TA,Rha,UA,XA,WA,ZA,$A,VA,aB,bB,fB,cB,gB,Vha,mB,Xha,oB,pB,sB,Wha,Yha,tB,vB,wB,uB,hB,Zha,xB,rB,AB,$ha,CB,DB,EB,GB,HB,qB,Uha,jB,Tha,iB,KB,zB,aia,PB,QB,RB,SB,kB,TB,nB,IB,UB,lB,eB,hA,gA,dA,YB,XB,ZB,U,$B,bC,cC,dC,hC,gC,jC,kC,nC,cia,sC,tC,uC,vC,dia,eia,wC,xC,yC,AC,BC,CC,fia,DC,EC,FC,GC,HC,gia,IC,JC,MC,NC,OC,PC,QC,TC,iia,VC,WC,ZC,$C,jia,bD,dD,cD,kia,aD,lia,mia,nia,oia,pia,qia,eD,ria,sia,tia,fD,gD,kD,jD,mD,hD,nD,oD,pD,iD,qD,lD,rD,sD,uD,tD,vD,wD,xia,xD,yD,zD,yia,FD,GD,ED,ID,CD,
HD,AD,zia,KD,JD,LD,Aia,MD,BD,Bia,ND,OD,PD,QD,RD,SD,TD,UD,aE,XD,Cia,cE,dE,YD,ZD,WD,$D,VD,bE,hE,gE,fE,jE,kE,lE,mE,oE,nE,pE,qE,rE,vE,xE,yE,zE,AE,CE,DE,wE,tE,sE,uE,EE,FE,GE,HE,BE,IE,JE,KE,LE,NE,ME,Eia,OE,PE,QE,RE,SE,Hia,Gia,UE,VE,TE,WE,XE,YE,Iia,Lia,Mia,Nia,dF,eF,Oia,fF,Pia,$E,ZE,Jia,gF,aF,bF,Kia,cF,Qia,Ria,hF,iF,Sia,jF,Tia,nF,kF,mF,lF,Uia,Via,pF,Wia,oF,qF,rF,sF,tF,uF,vF,wF,xF,Zia,Yia,Xia,$ia,yF,aja,uia,via,bja,CF,dja,DF,EF,FF,HF,JF,LF,MF,OF,fja,hja,ija,jja,NF,QF,RF,kja,SF,WF,lja,VF,YF,ZF,UF,XF,zF,cja,
TF,KF,eja,mja,AF,$F,IF,GF,nja,aG,oja,bG,cG,pja,dG,eG,fG,qja,gG,hG,iG,jG,kG,rja,sja,lG,tja,uja,mG,oG,xja,wja,vja,zja,qG,Aja,rG,sG,pG,Cja,tG,uG,vG,Dja,wG,xG,yG,nG,zG,Eja,AG,BG,EG,HG,IG,Gja,Fja,FG,KG,GG,JG,DG,LG,Hja,Ija,MG,OG,NG,QG,Jja,Kja,SG,TG,VG,RG,Lja,UG,WG,XG,YG,aH,bH,dH,fH,gH,hH,iH,Mja,kH,mH,oH,nH,pH,qH,rH,Oja,sH,lH,tH,uH,vH,wH,xH,yH,zH,AH,BH,Qja,DH,CH,HH,IH,JH,KH,LH,OH,PH,QH,NH,Sja,MH,RH,Tja,Uja,TH,UH,VH,Vja,XH,ZH,aI,$H,bI,cI,YH,WH,Wja,dI,fI,gI,eI,hI,Xja,iI,lI,kI,nI,mI,jI,Yja,sI,$ja,uI,wI,xI,
yI,pI,vI,zI,qI,bka,AI,BI,rI,CI,tI,aka,cka,oI,Zja,DI,EI,GI,HI,II,FI,dka,JI,KI,eka,LI,MI,NI,OI,PI,QI,RI,SI,TI,UI,VI,WI,XI,YI,fka,gka,ZI,$I,hka,aJ,bJ,cJ,dJ,ika,eJ,fJ,gJ,jka,lka,kka,mka,rka,nka,oka,pka,hJ,ska,qka,tka,lJ,vJ,jJ,nJ,wJ,xJ,AJ,yJ,vka,wka,yka,BJ,EJ,DJ,iJ,sJ,JJ,HJ,NJ,FJ,QJ,PJ,UJ,KJ,TJ,XJ,WJ,ZJ,aK,uka,oJ,RJ,gK,Aka,iK,fK,Bka,jK,kK,mK,nK,Cka,hK,eK,lK,bK,dK,pK,tJ,OJ,rK,qK,tK,sK,oK,Dka,uJ,vK,CJ,mJ,Eka,wK,cK,yK,zK,AK,BK,uK,GJ,CK,YJ,SJ,$J,xka,EK,DK,FK,GK,HK,JK,Fka,Gka,KK,NK,cL,dL,Kka,uL,vL,zL,Nka,EL,
Mka,FL,Oka,BL,GL,HL,IL,JL,eC,KL,bL,ML,OL,QL,PL,Qka,Rka,Ska,TL,Tka,ZL,XL,VL,WL,SL,UL,YL,$L,Vka,Uka,aM,eM,Yka,fM,Xka,gM,dM,hM,jM,iM,gja,lM,$ka,nM,ala,rM,oM,tM,uM,vM,kM,xM,pM,yM,wM,sM,BM,AM,mM,EM,CM,FM,DM,KM,bla,NM,dla,OM,QM,RM,PM,TM,UM,VM,WM,Ika,Jka,XM,YM,$M,cN,dN,eN,gN,hN,jN,lN,mN,nN,pN,qN,rN,sN,vN,wN,xN,yN,zN,AN,BN,Hka,CN,DN,EN,FN,GN,HN,IN,ela,JN,KN,MN,ON,QN,PN,RN,SN,TN,XN,YN,ZN,bO,cO,gO,jO,kO,oO,pO,qO,mO,sO,tO,vO,wO,fla,DO,EO,CO,HO,JO,LO,MO,NO,PO,OO,QO,RO,SO,TO,VO,XO,WO,UO,YO,ZO,$O,aP,cP,dP,eP,gla,
gP,fP,hP,iP,hla,lP,mP,qP,oP,nP,pP,rP,sP,tP,vP,wP,xP,zP,AP,BP,jla,DP,EP,FP,GP,HP,KP,IP,LP,MP,NP,OP,PP,QP,RP,SP,TP,VP,WP,XP,bQ,cQ,$P,dQ,ZP,hQ,kQ,lQ,jQ,gQ,iQ,fQ,aQ,eQ,nQ,oQ,qQ,tQ,sQ,rQ,vQ,wQ,yQ,xQ,BQ,nla,ola,DQ,CQ,FQ,GQ,EQ,IQ,KQ,LQ,MQ,qla,NQ,OQ,pla,PQ,QQ,UQ,VQ,SQ,XQ,WQ,YQ,sla,ZQ,bR,eR,fR,gR,tla,kR,hR,iR,lR,mR,nR,oR,rR,sR,qR,pR,uR,wR,yR,zR,AR,BR,CR,DR,GR,FR,JR,$N,NR,QR,PR,RR,MR,rO,LR,SR,TR,ula,UR,VR,WR,YR,ZR,aS,bS,cS,eS,vla,wla,fS,iS,gS,jS,kS,lS,mS,nS,yla,pS,rS,zla,qS,sS,Bla,uS,vS,wS,DS,Ila,FS,Dla,$Q,
Cla,IS,KS,LS,rL,OS,Jla,MS,sL,CS,SS,TS,VS,WS,YS,Gla,Hla,cT,bT,aT,HS,gT,hT,GS,iT,jT,Kla,PK,kT,mT,$S,ZS,pT,qT,QS,rT,qM,fT,bM,zM,tT,uT,oT,nT,xT,eL,zT,aC,AT,eT,BT,DT,RS,NS,sT,ET,FT,GT,HT,Fla,lT,xS,IT,Ela,JT,KT,MM,LT,MT,Ola,NT,Pla,Qla,OT,PT,Rla,QT,RT,ST,TT,Tla,UT,WT,VT,XT,$T,Vla,ZT,Ula,aU,bU,cU,dU,eU,fU,gU,hU,iU,jU,kU,lU,Wla,mU,Xla,Yla,nU,rU,qU,oU,pU,Zla,sU,tU,$la,ama,uU,bma,dma,cma,vU,wU,ema,xU,yU,zU,AU,BU,CU,DU,EU,FU,GU,fma,HU,IU,JU,KU,MU,NU,OU,PU,ima,QU,LU,RU,SU,kma,gma,TU,hma,lma,UU,WU,mma,XU,YU,ZU,
aV,$U,bV,cV,dV,nma,eV,kV,oV,pV,oma,gV,jV,lV,iV,nV,mV,sV,qV,rV,tV,hV,fV,uV,pma,Y,vV,xV,yV,wV,zV,AV,BV,CV,DV,EV,qma,FV,GV,HV,IV,JV,KV,LV,MV,rma,NV,OV,PV,QV,RV,SV,TV,UV,VV,WV,XV,YV,ZV,$V,aW,bW,cW,dW,eW,fW,gW,sma,hW,iW,kW,lW,jW,tma,uma,vma,mW,nW,wma,xma,oW,pW,qW,rW,zma,Bma,Ama,yma,uW,tW,vW,Cma,wW,xW,yW,zW,AW,BW,CW,DW,EW,FW,GW,HW,IW,JW,KW,NW,LW,SW,MW,TW,WW,UW,VW,XW,Ema,YW,ZW,$W,Fma,aX,Gma,Ima,Jma,dX,Kma,cX,bX,Hma,eX,fX,gX,Lma,hX,iX,kX,lX,mX,nX,oX,qX,Mma,sX,rX,Nma,Oma,tX,vX,wX,yX,uX,xX,zX,Qma,Pma,AX,BX,
Rma,CX,DX,EX,FX,GX,Z,HX,IX,Sma,JX,KX,LX,MX,OX,QX,Tma,PX,RX,SX,UX,TX,VX,WX,XX,YX,ZX,Wma,$X,aY,Yma,bY,cY,dY,fY,gY,eY,$ma,hY,ana,iY,jY,kY,lY,bna,mY,cna,nY,oY,dna,pY,ena,qY,rY,sY,fna,tY,uY,vY,wY,yY,AY,CY,EY,FY,GY,JY,gna,KY,LY,hna,NY,jna,ina,lna,MY,OY,RY,PY,QY,TY,SY,nna,ona,pX,kna,VY,jX,IY,UY,WY,sW,mna,XY,YY,ZY,$Y,pna,aZ,bZ,cZ,dZ,eZ,fZ,gZ,hZ,iZ,rna,sna,una,tna,wna,jZ,xna,kZ,lZ,yna,mZ,zna,Ana,Cna,Bna,Dna,Ena,Fna,nZ,Gna,oZ,pZ,Kna,Hna,Jna,Ina,Lna,qZ,Mna,rZ,sZ,Nna,Ona,Pna,Qna,tZ,Rna,Sna,uZ,Vna,Una,Wna,Xna,
vZ,wZ,Yna,Zna,$na,zZ,aoa,boa,coa,doa,AZ,yZ,eoa,CZ,foa,DZ,EZ,FZ,GZ,HZ,IZ,JZ,KZ,goa,LZ,hoa,MZ,NZ,OZ,ioa,PZ,QZ,RZ,SZ,TZ,joa,loa,koa,moa,UZ,noa,ooa,VZ,poa,WZ,XZ,YZ,qoa,roa,soa,ZZ,$Z,b_,a_,c_,d_,toa,e_,f_,voa,g_,yoa,zoa,Aoa,xoa,h_,Boa,j_,Coa,Doa,k_,l_,m_,Eoa,n_,Foa,o_,q_,Hoa,Ioa,r_,s_,Joa,t_,u_,Koa,w_,x_,y_,Moa,z_,A_,B_,C_,Ooa,E_,F_,Poa,H_,D_,G_,Roa,Uoa,I_,Zoa,K_,$oa,N_,bpa,P_,R_,Q_,cpa,dpa,epa,fpa,hpa,gpa,O_,apa,X_,U_,Y_,T_,Z_,V_,J_,ipa,S_,M_,$_,a0,b0,W_,L_,kpa,c0,mpa,lpa,d0,e0,f0,g0,h0,i0,j0,k0,l0,m0,
n0,o0,p0,q0,r0,s0,t0,u0,v0,w0,npa,opa,ppa,x0,y0,z0,A0,B0,C0,spa,D0,tpa,upa,vpa,wpa,xpa,E0,ypa,zpa,Apa,Bpa,Cpa,Dpa,F0,Epa,Fpa,Gpa,G0,Hpa,Ipa,Jpa,Kpa,H0,Lpa,Mpa,I0,J0,K0,Opa,Rpa,L0,Qpa,Spa,Ppa,Tpa,Upa,Xpa,Wpa,M0,$pa,Zpa,Ypa,aqa,N0,O0,P0,Q0,Npa,bqa,R0,S0,T0,U0,V0,W0,X0,Y0,cqa,Z0,dqa,$0,eqa,fqa,gqa,a1,hqa,iqa,b1,jqa,c1,d1,e1,kqa,f1,g1,h1,i1,lqa,mqa,j1,k1,Vpa,nqa,pqa,rqa,sqa,tqa,uqa,oqa,qqa,vqa,l1,wqa,xqa,yqa,m1,zqa,n1,o1,Aqa,p1,Bqa,Cqa,PW,QW,RW,q1,OW,Qoa,HY,r1,s1,Dqa,Dma,t1,Eqa,qpa,u1,Fqa,Gqa,rpa,w1,
v1,x1,Kqa,y1,Jqa,z1,Lqa,Nqa,Mqa,Qqa,Sqa,D1,E1,aa,fa,F1,eaa,ad,Ra,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.r=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.Fb=b.prototype};
aaa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ka=function(){ka=function(){};
la.Symbol||(la.Symbol=baa)};
na=function(a,b){this.o=a;ma(this,"description",{configurable:!0,writable:!0,value:b})};
qa=function(){ka();var a=la.Symbol.iterator;a||(a=la.Symbol.iterator=la.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&ma(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return oa(da(this))}});
qa=function(){}};
oa=function(a){qa();a={next:a};a[la.Symbol.iterator]=function(){return this};
return a};
ra=function(){this.C=!1;this.w=null;this.u=void 0;this.o=1;this.G=this.B=0;this.A=null};
sa=function(a){if(a.C)throw new TypeError("Generator is already running");a.C=!0};
ta=function(a,b){a.A={Ow:b,WF:!0};a.o=a.B||a.G};
g.ua=function(a,b,c){a.o=c;return{value:b}};
va=function(a,b){a.o=b;a.B=0};
wa=function(a){a.B=0;var b=a.A.Ow;a.A=null;return b};
xa=function(a){this.o=new ra;this.u=a};
caa=function(a,b){sa(a.o);var c=a.o.w;if(c)return ya(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.o["return"]);
a.o["return"](b);return za(a)};
ya=function(a,b,c,d){try{var e=b.call(a.o.w,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.o.C=!1,e;var f=e.value}catch(k){return a.o.w=null,ta(a.o,k),za(a)}a.o.w=null;d.call(a.o,f);return za(a)};
za=function(a){for(;a.o.o;)try{var b=a.u(a.o);if(b)return a.o.C=!1,{value:b.value,done:!1}}catch(c){a.o.u=void 0,ta(a.o,c)}a.o.C=!1;if(a.o.A){b=a.o.A;a.o.A=null;if(b.WF)throw b.Ow;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
Aa=function(a){this.next=function(b){sa(a.o);a.o.w?b=ya(a,a.o.w.next,b,a.o.F):(a.o.F(b),b=za(a));return b};
this["throw"]=function(b){sa(a.o);a.o.w?b=ya(a,a.o.w["throw"],b,a.o.F):(ta(a.o,b),b=za(a));return b};
this["return"]=function(b){return caa(a,b)};
qa();this[Symbol.iterator]=function(){return this}};
Ba=function(a,b){var c=new Aa(new xa(b));ha&&ha(c,a.prototype);return c};
Ca=function(a,b){if(b){for(var c=la,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&&ma(c,d,{configurable:!0,writable:!0,value:f})}};
daa=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())})};
g.Da=function(a){return daa(new Aa(new xa(a)))};
Ea=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{Ox:e,IC:f}}return{Ox:-1,IC:void 0}};
Fa=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+""};
Ga=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Ha=function(a,b){qa();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};
g.Ia=function(a,b,c){a=a.split(".");c=c||g.v;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
Ja=function(a){return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&eaa.test(a)?a:""};
g.w=function(a,b){for(var c=a.split("."),d=b||g.v,e=0;e<c.length;e++)if(d=d[c[e]],null==d)return null;return d};
g.Ka=function(){};
La=function(a){a.Ad=void 0;a.getInstance=function(){return a.Ad?a.Ad:a.Ad=new a}};
Ma=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.Na=function(a){return"array"==Ma(a)};
g.Oa=function(a){var b=Ma(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Pa=function(a){return"function"==Ma(a)};
g.Qa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Sa=function(a){return Object.prototype.hasOwnProperty.call(a,Ra)&&a[Ra]||(a[Ra]=++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.Ta=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.Ua=function(a,b){for(var c in b)a[c]=b[c]};
g.Va=function(a,b){function c(){}
c.prototype=b.prototype;a.Fb=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Je=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)}};
iaa=function(a,b){if(!a||/[?&]dsh=1(&|$)/.test(a))return null;if(/[?&]ae=1(&|$)/.test(a)){var c=/[?&]adurl=([^&]+)/.exec(a);if(!c)return null;var d=b?c.index:a.length;try{return{WD:a.slice(0,d)+"&act=1"+a.slice(d),EE:decodeURIComponent(c[1])}}catch(f){return null}}if(/[?&]ae=2(&|$)/.test(a)){c=a;d="";if(b){var e=a.indexOf("&adurl=");0<e&&(c=a.slice(0,e),d=a.slice(e))}return{WD:c+"&act=1"+d,EE:c+"&dct=1"+d}}return null};
Wa=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Wa);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
Xa=function(a,b){Wa.call(this,jaa(a,b))};
jaa=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");return d+c[e]};
kaa=function(){};
laa=function(a){var b=a.url,c=a.qT;this.B=!!a.ZO;this.u=iaa(b,c);a=/[?&]dsh=1(&|$)/.test(b);this.w=!a&&/[?&]ae=1(&|$)/.test(b);this.A=!a&&/[?&]ae=2(&|$)/.test(b);this.o=/[?&]adurl=([^&]*)/.exec(b)};
g.Ya=function(a){return a[a.length-1]};
maa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.$a=function(a,b,c){b=g.Za(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
g.Za=function(a,b,c){for(var d=a.length,e="string"===typeof 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.ab=function(a,b,c){var d=a.length,e="string"===typeof a?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
g.cb=function(a,b){return 0<=bb(a,b)};
g.db=function(a){return 0==a.length};
eb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.gb=function(a,b){var c=bb(a,b),d;(d=0<=c)&&g.fb(a,c);return d};
g.fb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.ib=function(a,b){var c=g.Za(a,b,void 0);0<=c&&g.fb(a,c)};
naa=function(a,b){var c=0;maa(a,function(d,e){b.call(void 0,d,e,a)&&g.fb(a,e)&&c++})};
g.jb=function(a){return Array.prototype.concat.apply([],arguments)};
g.kb=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[]};
lb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Oa(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.pb=function(a,b,c,d){Array.prototype.splice.apply(a,nb(arguments,1))};
nb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
oaa=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=g.Qa(f)?"o"+g.Sa(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};
g.sb=function(a,b,c){return qb(a,c||rb,!1,b)};
tb=function(a,b){return qb(a,b,!0,void 0,void 0)};
qb=function(a,b,c,d,e){for(var f=0,k=a.length,l;f<k;){var m=f+(k-f>>>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-1};
g.ub=function(a,b){a.sort(b||rb)};
paa=function(a,b){var c=rb;g.ub(a,function(d,e){return c(b(d),b(e))})};
g.vb=function(a,b){if(!g.Oa(a)||!g.Oa(b)||a.length!=b.length)return!1;for(var c=a.length,d=qaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
rb=function(a,b){return a>b?1:a<b?-1:0};
qaa=function(a,b){return a===b};
g.wb=function(a,b,c){c=g.sb(a,b,c);0>c&&g.pb(a,-(c+1),0,b)};
g.xb=function(a,b,c){var d={};(0,g.y)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
raa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
saa=function(a,b){var c=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,c[0])};
yb=function(a){return function(){return a}};
g.zb=function(a){return a};
taa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Ab=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
uaa=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
vaa=function(a,b){var c=0;return function(d){g.v.clearTimeout(c);var e=arguments;c=g.v.setTimeout(function(){a.apply(b,e)},50)}};
g.Cb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Db=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Eb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
Fb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1};
Gb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Hb=function(a){for(var b in a)return a[b]};
g.Ib=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Jb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Kb=function(a,b){var c=g.Oa(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a};
Lb=function(a,b){return null!==a&&b in a};
g.Mb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Nb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Ob=function(a,b){var c=Nb(a,b,void 0);return c&&a[c]};
g.Pb=function(a){for(var b in a)return!1;return!0};
g.Qb=function(a){for(var b in a)delete a[b]};
g.Rb=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0};
g.Sb=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.Tb=function(a){var b=Ma(a);if("object"==b||"array"==b){if(g.Pa(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=g.Tb(a[c]);return b}return a};
g.Vb=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<Ub.length;f++)c=Ub[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
Wb=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
Zb=function(a,b){this.o=a===Xb&&b||"";this.u=Yb};
$b=function(a){return a instanceof Zb&&a.constructor===Zb&&a.u===Yb?a.o:"type_error:Const"};
g.ac=function(a){return new Zb(Xb,a)};
dc=function(a,b){this.u=a===bc&&b||"";this.w=cc};
ec=function(a){if(a instanceof dc&&a.constructor===dc&&a.w===cc)return a.u;Ma(a);return"type_error:TrustedResourceUrl"};
yaa=function(a,b){var c=$b(a);if(!waa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);var d=c.replace(xaa,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 Zb?$b(k):encodeURIComponent(String(k))});
return new dc(bc,d)};
fc=function(a,b){return 0==a.lastIndexOf(b,0)};
gc=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.hc=function(a){return/^[\s\xa0]*$/.test(a)};
oc=function(a,b){if(b)a=a.replace(ic,"&").replace(jc,"<").replace(kc,">").replace(lc,""").replace(mc,"'").replace(nc,"�");else{if(!zaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ic,"&"));-1!=a.indexOf("<")&&(a=a.replace(jc,"<"));-1!=a.indexOf(">")&&(a=a.replace(kc,">"));-1!=a.indexOf('"')&&(a=a.replace(lc,"""));-1!=a.indexOf("'")&&(a=a.replace(mc,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(nc,"�"))}return a};
pc=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.sc=function(a,b){for(var c=0,d=qc(String(a)).split("."),e=qc(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=rc(0==l[1].length?0:parseInt(l[1],10),0==m[1].length?0:parseInt(m[1],10))||rc(0==l[2].length,0==m[2].length)||rc(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
rc=function(a,b){return a<b?-1:a>b?1:0};
g.wc=function(a,b){this.u=a===uc&&b||"";this.w=vc};
g.xc=function(a){if(a instanceof g.wc&&a.constructor===g.wc&&a.w===vc)return a.u;Ma(a);return"type_error:SafeUrl"};
g.zc=function(a){if(a instanceof g.wc)return a;a="object"==typeof a&&a.tg?a.xe():String(a);yc.test(a)||(a="about:invalid#zClosurez");return new g.wc(uc,a)};
g.Ac=function(a,b){if(a instanceof g.wc)return a;a="object"==typeof a&&a.tg?a.xe():String(a);if(b&&/^data:/i.test(a)){var c=a.replace(/(%0A|%0D)/g,"");var d=c.match(Aaa);d=d&&Baa.test(d[1]);c=new g.wc(uc,d?c:"about:invalid#zClosurez");if(c.xe()==a)return c}yc.test(a)||(a="about:invalid#zClosurez");return new g.wc(uc,a)};
Cc=function(){this.o="";this.u=Bc};
Dc=function(a){if(a instanceof Cc&&a.constructor===Cc&&a.u===Bc)return a.o;Ma(a);return"type_error:SafeStyle"};
Ec=function(a){var b=new Cc;b.o=a;return b};
Ic=function(a){var b="",c;for(c in a){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var d=a[c];null!=d&&(d=Array.isArray(d)?(0,g.Fc)(d,Gc).join(" "):Gc(d),b+=c+":"+d+";")}return b?Ec(b):Hc};
Gc=function(a){if(a instanceof g.wc)return'url("'+g.xc(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof Zb?$b(a):Caa(String(a));if(/[{;}]/.test(a))throw new Xa("Value does not allow [{;}], got: %s.",[a]);return a};
Caa=function(a){var b=a.replace(Jc,"$1").replace(Jc,"$1").replace(Kc,"url");if(Daa.test(b)){if(Eaa.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||!Faa(a))return"zClosurez"}else return"zClosurez";return Gaa(a)};
Faa=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};
Gaa=function(a){return a.replace(Kc,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(k,l,m){f=l;return m});
b=g.zc(d).xe();return c+f+b+f+e})};
Haa=function(a){function b(d){Array.isArray(d)?(0,g.y)(d,b):c+=Dc(d)}
var c="";(0,g.y)(arguments,b);return c?Ec(c):Hc};
Mc=function(a){return-1!=g.Lc.indexOf(a)};
Nc=function(){return Mc("Firefox")||Mc("FxiOS")};
Pc=function(){return Mc("Safari")&&!(Oc()||Mc("Coast")||Mc("Opera")||Mc("Edge")||Mc("Edg/")||Mc("OPR")||Nc()||Mc("Silk")||Mc("Android"))};
Oc=function(){return(Mc("Chrome")||Mc("CriOS"))&&!Mc("Edge")};
g.Qc=function(){return Mc("Android")&&!(Oc()||Nc()||Mc("Opera")||Mc("Silk"))};
Sc=function(){this.u="";this.A=Rc;this.w=null};
g.Tc=function(a){if(a instanceof Sc&&a.constructor===Sc&&a.A===Rc)return a.u;Ma(a);return"type_error:SafeHtml"};
Vc=function(a){if(a instanceof Sc)return a;var b="object"==typeof a,c=null;b&&a.qs&&(c=a.o());return Uc(oc(b&&a.tg?a.xe():String(a)),c)};
Iaa=function(a){function b(f){Array.isArray(f)?(0,g.y)(f,b):(f=Vc(f),e.push(g.Tc(f).toString()),f=f.o(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=Vc(Wc),d=c.o(),e=[];(0,g.y)(a,b);return Uc(e.join(g.Tc(c).toString()),d)};
Jaa=function(a){return Iaa(Array.prototype.slice.call(arguments))};
Uc=function(a,b){return Xc(a,b)};
Xc=function(a,b){var c=new Sc;c.u=a;c.w=b;return c};
g.Yc=function(a,b){$b(a);$b(a);return Xc(b,null)};
Kaa=function(a){var b=g.ac("Output of CSS sanitizer");$b(b);$b(b);return Ec(a)};
g.Zc=function(a,b){if(Laa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.Tc(b)};
g.$c=function(a,b){var c=b instanceof g.wc?b:g.Ac(b);a.href=g.xc(c)};
bd=function(a,b){a.src=ec(b);var c;(c=a.ownerDocument&&a.ownerDocument.defaultView)&&c!=g.v?c=Ja(c.document):(null===ad&&(ad=Ja(g.v.document)),c=ad);c&&a.setAttribute("nonce",c)};
cd=function(a,b,c,d){a=a instanceof g.wc?a:g.Ac(a);b=b||g.v;c=c instanceof Zb?$b(c):c||"";return b.open(g.xc(a),c,d,void 0)};
dd=function(a){return encodeURIComponent(String(a))};
ed=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.fd=function(a){return a=oc(a,void 0)};
g.gd=function(a,b){var c=String(a),d=c.indexOf(".");-1==d&&(d=c.length);return Maa("0",Math.max(0,b-d))+c};
g.hd=function(a){return null==a?"":String(a)};
id=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
g.jd=function(a){var b=Number(a);return 0==b&&g.hc(a)?NaN:b};
kd=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
g.ld=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};
Naa=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
md=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};
od=function(a){return a?decodeURI(a):a};
g.qd=function(a,b){return b.match(pd)[a]||null};
g.rd=function(a){return od(g.qd(3,a))};
sd=function(a){a=a.match(pd);return md(null,null,null,null,a[5],a[6],a[7])};
td=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?ed(f):"")}};
ud=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)]};
vd=function(a,b){return b?a?a+"&"+b:b:a};
wd=function(a,b){if(!b)return a;var c=ud(a);c[1]=vd(c[1],b);return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
xd=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)xd(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+dd(b)))};
yd=function(a,b){for(var c=[],d=b||0;d<a.length;d+=2)xd(a[d],a[d+1],c);return c.join("&")};
g.zd=function(a){var b=[],c;for(c in a)xd(c,a[c],b);return b.join("&")};
Ad=function(a,b){var c=2==arguments.length?yd(arguments[1],0):yd(arguments,1);return wd(a,c)};
g.Bd=function(a,b){var c=g.zd(b);return wd(a,c)};
Cd=function(a,b,c){c=null!=c?"="+dd(c):"";return wd(a,b+c)};
Dd=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};
Fd=function(a,b){var c=a.search(Ed),d=Dd(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 ed(a.substr(d,e-d))};
Gd=function(a,b){for(var c=a.search(Ed),d=0,e,f=[];0<=(e=Dd(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(Oaa,"$1")};
Paa=function(a,b){var c=ud(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]=vd(e.join("&"),g.zd(b));return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Hd=function(){return Mc("iPhone")&&!Mc("iPod")&&!Mc("iPad")};
Id=function(){return Hd()||Mc("iPad")||Mc("iPod")};
Jd=function(a){Jd[" "](a);return a};
Kd=function(a,b){try{return Jd(a[b]),!0}catch(c){}return!1};
Raa=function(a,b){var c=Qaa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
Ld=function(){var a=g.v.document;return a?a.documentMode:void 0};
g.Nd=function(a){return Raa(a,function(){return 0<=g.sc(Md,a)})};
g.Od=function(a){return Number(Saa)>=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};
g.Rd=function(a,b,c){return a+c*(b-a)};
Sd=function(a,b){return 1E-6>=Math.abs(a-b)};
g.Td=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==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};
be=function(a){return a?new Yd(Zd(a)):ae||(ae=new Yd)};
ce=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.ee=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.de(document,"*",a,b)};
g.fe=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.de(c,"*",a,b)[0]||null}return c||null};
g.de=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.cb(b.split(/\s+/),c)&&(d[e++]=k);d.length=e;return d}return a};
he=function(a,b){g.Cb(b,function(c,d){c&&"object"==typeof c&&c.tg&&(c=c.xe());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:ge.hasOwnProperty(d)?a.setAttribute(ge[d],c):fc(d,"aria-")||fc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
ie=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.Vd(a.clientWidth,a.clientHeight)};
le=function(a){var b=je(a);a=a.parentWindow||a.defaultView;return g.ke&&g.Nd("10")&&a.pageYOffset!=b.scrollTop?new g.Td(b.scrollLeft,b.scrollTop):new g.Td(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
je=function(a){return a.scrollingElement?a.scrollingElement:g.me||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
ne=function(a){return a?a.parentWindow||a.defaultView:window};
g.qe=function(a,b,c){var d=arguments,e=document,f=String(d[0]),k=d[1];if(!Taa&&k&&(k.name||k.type)){f=["<",f];k.name&&f.push(' name="',g.fd(k.name),'"');if(k.type){f.push(' type="',g.fd(k.type),'"');var l={};g.Vb(l,k);delete l.type;k=l}f.push(">");f=f.join("")}f=oe(e,f);k&&("string"===typeof k?f.className=k:Array.isArray(k)?f.className=k.join(" "):he(f,k));2<d.length&&pe(e,f,d,2);return f};
pe=function(a,b,c,d){function e(k){k&&b.appendChild("string"===typeof k?a.createTextNode(k):k)}
for(;d<c.length;d++){var f=c[d];!g.Oa(f)||g.Qa(f)&&0<f.nodeType?e(f):(0,g.y)(Uaa(f)?g.kb(f):f,e)}};
g.re=function(a){return oe(document,a)};
oe=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.se=function(a){return document.createTextNode(String(a))};
g.te=function(a,b){a.appendChild(b)};
g.ue=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.ve=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.we=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
ye=function(a){return Vaa&&void 0!=a.children?a.children:(0,g.xe)(a.childNodes,function(b){return 1==b.nodeType})};
g.ze=function(a){var b;if(Waa&&!(g.ke&&g.Nd("9")&&!g.Nd("10")&&g.v.SVGElement&&a instanceof g.v.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Qa(b)&&1==b.nodeType?b:null};
g.Ae=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.Be=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.ue(a);var c=Zd(a);a.appendChild(c.createTextNode(String(b)))}};
Ee=function(a){var b;"A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?b=!a.disabled&&(!Ce(a)||De(a)):b=Ce(a)&&De(a);if(b&&g.ke){var c;!g.Pa(a.getBoundingClientRect)||g.ke&&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};
Ce=function(a){return g.ke&&!g.Nd("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
De=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Uaa=function(a){if(a&&"number"==typeof a.length){if(g.Qa(a))return"function"==typeof a.item||"string"==typeof a.item;if(g.Pa(a))return"function"==typeof a.item}return!1};
g.Ge=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Fe(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.cb(f.className.split(/\s+/),c))},!0,d)};
Fe=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.o=a||g.v.document||document};
Xaa=function(a){this.ow=a};
He=function(a,b,c){this.A=a;this.u=b;this.o=c||[];this.nj=new Map};
Ie=function(a,b){He.call(this,a,3,b)};
g.A=function(){this.tb=this.tb;this.Ri=this.Ri};
g.C=function(a,b){g.Je(a,g.Ta(g.Ke,b))};
g.Je=function(a,b){a.tb?b():(a.Ri||(a.Ri=[]),a.Ri.push(b))};
g.Ke=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.Le=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Oa(d)?g.Le.apply(null,d):g.Ke(d)}};
g.Me=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.o=!1};
Yaa=function(a){var b=g.w("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof 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.v.$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,Ne[b]?b=Ne[b]:(b=String(b),Ne[b]||(c=/function\s+([^\(]+)/m.exec(b),Ne[b]=c?c[1]:"[Anonymous]"),b=Ne[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"})};
Oe=function(a,b){g.Me.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=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.u=null;a&&this.init(a,b)};
Qe=function(a){return!(!a||!a[Pe])};
$aa=function(a,b,c,d,e){this.listener=a;this.o=null;this.src=b;this.type=c;this.capture=!!d;this.co=e;this.key=++Zaa;this.mk=this.pn=!1};
Re=function(a){a.mk=!0;a.listener=null;a.o=null;a.src=null;a.co=null};
Se=function(a){this.src=a;this.listeners={};this.o=0};
Te=function(a,b){var c=b.type;c in a.listeners&&g.gb(a.listeners[c],b)&&(Re(b),0==a.listeners[c].length&&(delete a.listeners[c],a.o--))};
Ue=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.mk&&f.listener==b&&f.capture==!!c&&f.co==d)return e}return-1};
We=function(a,b,c,d,e){if(d&&d.once)return Ve(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)We(a,b[f],c,d,e);return null}c=Xe(c);return Qe(a)?a.ka(b,c,g.Qa(d)?!!d.capture:!!d,e):Ye(a,b,c,!1,d,e)};
Ye=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=g.Qa(e)?!!e.capture:!!e,l=Ze(a);l||(a[$e]=l=new Se(a));c=l.add(b,c,d,k,f);if(c.o)return c;d=aba();c.o=d;d.src=a;d.listener=c;if(a.addEventListener)bba||(e=k),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(af(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");bf++;return c};
aba=function(){var a=cba,b=cf?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};
Ve=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ve(a,b[f],c,d,e);return null}c=Xe(c);return Qe(a)?a.Ls(b,c,g.Qa(d)?!!d.capture:!!d,e):Ye(a,b,c,!0,d,e)};
df=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)df(a,b[f],c,d,e);else d=g.Qa(d)?!!d.capture:!!d,c=Xe(c),Qe(a)?a.Za(b,c,d,e):a&&(a=Ze(a))&&(b=a.rl(b,c,d,e))&&ef(b)};
ef=function(a){if("number"!==typeof a&&a&&!a.mk){var b=a.src;if(Qe(b))Te(b.u,a);else{var c=a.type,d=a.o;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(af(c),d):b.addListener&&b.removeListener&&b.removeListener(d);bf--;(c=Ze(b))?(Te(c,a),0==c.o&&(c.src=null,b[$e]=null)):Re(a)}}};
af=function(a){return a in ff?ff[a]:ff[a]="on"+a};
hf=function(a,b,c,d){var e=!0;if(a=Ze(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.mk&&(f=gf(f,d),e=e&&!1!==f)}return e};
gf=function(a,b){var c=a.listener,d=a.co||a.src;a.pn&&ef(a);return c.call(d,b)};
cba=function(a,b){if(a.mk)return!0;if(!cf){var c=b||g.w("window.event"),d=new Oe(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.o&&0<=k;k--){d.currentTarget=c[k];var l=hf(c[k],f,!0,d);e=e&&l}for(k=0;!d.o&&k<c.length;k++)d.currentTarget=c[k],l=hf(c[k],f,!1,d),e=e&&l}return e}return gf(a,new Oe(b,
this))};
Ze=function(a){a=a[$e];return a instanceof Se?a:null};
Xe=function(a){if(g.Pa(a))return a;a[jf]||(a[jf]=function(b){return a.handleEvent(b)});
return a[jf]};
g.kf=function(){g.A.call(this);this.u=new Se(this);this.ga=this;this.ba=null};
lf=function(a,b,c,d){b=a.u.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.mk&&k.capture==c){var l=k.listener,m=k.co||k.src;k.pn&&Te(a.u,k);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
mf=function(a,b){this.w=a;this.A=b;this.u=0;this.o=null};
nf=function(a,b){a.A(b);100>a.u&&(a.u++,b.next=a.o,a.o=b)};
of=function(a){g.v.setTimeout(function(){throw a;},0)};
qf=function(a,b){var c=a;b&&(c=(0,g.x)(a,b));c=dba(c);!g.Pa(g.v.setImmediate)||g.v.Window&&g.v.Window.prototype&&!Mc("Edge")&&g.v.Window.prototype.setImmediate==g.v.setImmediate?(pf||(pf=eba()),pf(c)):g.v.setImmediate(c)};
eba=function(){var a=g.v.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Mc("Presto")&&(a=function(){var e=g.re("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();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&&!Mc("Trident")&&!Mc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.lw;c.lw=null;e()}};
return function(e){d.next={lw:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.v.setTimeout(e,0)}};
sf=function(){this.u=this.o=null};
tf=function(){this.next=this.scope=this.mg=null};
g.xf=function(a,b){uf||fba();vf||(uf(),vf=!0);wf.add(a,b)};
fba=function(){if(g.v.Promise&&g.v.Promise.resolve){var a=g.v.Promise.resolve(void 0);uf=function(){a.then(yf)}}else uf=function(){qf(yf)}};
yf=function(){for(var a;a=wf.remove();){try{a.mg.call(a.scope)}catch(b){of(b)}nf(zf,a)}vf=!1};
Af=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
Cf=function(a){this.o=0;this.F=void 0;this.A=this.u=this.w=null;this.B=this.C=!1;if(a!=g.Ka)try{var b=this;a.call(void 0,function(c){Bf(b,2,c)},function(c){Bf(b,3,c)})}catch(c){Bf(this,3,c)}};
Df=function(){this.next=this.context=this.onRejected=this.w=this.o=null;this.u=!1};
Ff=function(a,b,c){var d=Ef.get();d.w=a;d.onRejected=b;d.context=c;return d};
Gf=function(a){if(a instanceof Cf)return a;var b=new Cf(g.Ka);Bf(b,2,a);return b};
Hf=function(a){return new Cf(function(b,c){c(a)})};
Jf=function(a,b,c){If(a,b,c,null)||g.xf(g.Ta(b,a))};
Kf=function(a){return new Cf(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],Jf(e,b,c)})};
gba=function(a){return new Cf(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],Jf(m,g.Ta(f,l),k);
else b(e)})};
Mf=function(a,b){var c=Ff(b,b,void 0);c.u=!0;Lf(a,c);return a};
Of=function(a,b){return Nf(a,null,b,void 0)};
Pf=function(a,b){if(0==a.o)if(a.w){var c=a.w;if(c.u){for(var d=0,e=null,f=null,k=c.u;k&&(k.u||(d++,k.o==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.o&&1==d?Pf(c,b):(f?(d=f,d.next==c.A&&(c.A=d),d.next=d.next.next):Qf(c),Rf(c,e,3,b)))}a.w=null}else Bf(a,3,b)};
Lf=function(a,b){a.u||2!=a.o&&3!=a.o||Sf(a);a.A?a.A.next=b:a.u=b;a.A=b};
Nf=function(a,b,c,d){var e=Ff(null,null,null);e.o=new Cf(function(f,k){e.w=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);void 0===m&&l instanceof Tf?k(l):f(m)}catch(n){k(n)}}:k});
e.o.w=a;Lf(a,e);return e.o};
Bf=function(a,b,c){0==a.o&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.o=1,If(c,a.I,a.P,a)||(a.F=c,a.o=b,a.w=null,Sf(a),3!=b||c instanceof Tf||hba(a,c)))};
If=function(a,b,c,d){if(a instanceof Cf)return Lf(a,Ff(b||g.Ka,c||null,d)),!0;if(Af(a))return a.then(b,c,d),!0;if(g.Qa(a))try{var e=a.then;if(g.Pa(e))return iba(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
iba=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)}};
Sf=function(a){a.C||(a.C=!0,g.xf(a.G,a))};
Qf=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.A=null);return b};
Rf=function(a,b,c,d){if(3==c&&b.onRejected&&!b.u)for(;a&&a.B;a=a.w)a.B=!1;if(b.o)b.o.w=null,Uf(b,c,d);else try{b.u?b.w.call(b.context):Uf(b,c,d)}catch(e){Vf.call(null,e)}nf(Ef,b)};
Uf=function(a,b,c){2==b?a.w.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
hba=function(a,b){a.B=!0;g.xf(function(){a.B&&Vf.call(null,b)})};
Tf=function(a){Wa.call(this,a)};
g.Wf=function(a,b){g.kf.call(this);this.Bd=a||1;this.Jm=b||g.v;this.ew=(0,g.x)(this.md,this);this.ky=(0,g.G)()};
g.Xf=function(a,b,c){if(g.Pa(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.v.setTimeout(a,b||0)};
Yf=function(a,b){var c=null;return Of(new Cf(function(d,e){c=g.Xf(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.v.clearTimeout(c);
throw d;})};
$f=function(){this.P=new Zf;this.A=new Map;this.G=new Set;this.B=0;this.C=100;this.flushInterval=3E4;this.u=new g.Wf(this.flushInterval);this.u.ka("tick",this.F,!1,this)};
jba=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
kba=function(){this.o=ag();this.o.o("/client_streamz/youtube/web/network/one_platform_requests",{kg:3,jg:"request_url"})};
lba=function(){this.o=ag();this.o.o("/client_streamz/youtube/web/network/one_platform_redirects",{kg:2,jg:"response_code"},{kg:3,jg:"request_url"},{kg:3,jg:"response_url"})};
mba=function(a,b,c,d){a.o.w("/client_streamz/youtube/web/network/one_platform_redirects",b,c,d)};
nba=function(){this.o=ag();this.o.o("/client_streamz/youtube/web/network/one_platform_request_success",{kg:3,jg:"request_url"})};
oba=function(){this.o=ag();this.o.o("/client_streamz/youtube/web/network/one_platform_request_failed",{kg:2,jg:"response_code"},{kg:3,jg:"request_url"})};
pba=function(){this.o=ag();this.o.o("/client_streamz/youtube/video_ads/visibility_error",{kg:3,jg:"element_name"},{kg:3,jg:"error_reason"})};
qba=function(a){return(0,g.Fc)(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.eg=function(a,b){g.Oa(a);void 0===b&&(b=0);cg();for(var c=dg[b],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.fg=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.eg(b,3)};
rba=function(a){var b=[];gg(a,function(c){b.push(c)});
return b};
g.hg=function(a){!g.ke||g.Nd("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):-1!="=.".indexOf(a[b-1])&&(c=-1!="=.".indexOf(a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;gg(a,function(f){d[e++]=f});
return d.subarray(0,e)};
gg=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=ig[n];if(null!=p)return p;if(!g.hc(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
cg();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))}};
cg=function(){if(!ig){ig={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));dg[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===ig[f]&&(ig[f]=e)}}}};
kg=function(a,b,c){this.u=null;this.o=this.w=this.A=0;this.B=!1;a&&jg(this,a,b,c)};
mg=function(a,b,c){if(lg.length){var d=lg.pop();a&&jg(d,a,b,c);return d}return new kg(a,b,c)};
jg=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.hg(b):new Uint8Array(0);a.u=b;a.A=void 0!==c?c:0;a.w=void 0!==d?a.A+d:a.u.length;a.o=a.A};
ng=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.u[a.o++],c|=(b&127)<<7*e;128<=b&&(b=a.u[a.o++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.u[a.o++],d|=(b&127)<<7*e+3;if(128>b){a=c>>>0;b=d>>>0;if(d=b&2147483648)a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0);a=4294967296*b+(a>>>0);return d?-a:a}a.B=!0};
og=function(a){var b=a.u;var c=b[a.o+0];var d=c&127;if(128>c)return a.o+=1,d;c=b[a.o+1];d|=(c&127)<<7;if(128>c)return a.o+=2,d;c=b[a.o+2];d|=(c&127)<<14;if(128>c)return a.o+=3,d;c=b[a.o+3];d|=(c&127)<<21;if(128>c)return a.o+=4,d;c=b[a.o+4];d|=(c&15)<<28;if(128>c)return a.o+=5,d>>>0;a.o+=5;128<=b[a.o++]&&128<=b[a.o++]&&128<=b[a.o++]&&128<=b[a.o++]&&a.o++;return d};
pg=function(a){this.o=mg(a,void 0,void 0);this.B=this.o.o;this.u=this.w=-1;this.A=!1};
qg=function(a){var b=a.o;(b=b.o==b.w)||(b=a.A)||(b=a.o,b=b.B||0>b.o||b.o>b.w);if(b)return!1;a.B=a.o.o;b=og(a.o);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.A=!0,!1;a.w=b>>>3;a.u=c;return!0};
rg=function(a){switch(a.u){case 0:if(0!=a.u)rg(a);else{for(a=a.o;a.u[a.o]&128;)a.o++;a.o++}break;case 1:1!=a.u?rg(a):(a=a.o,a.o+=8);break;case 2:if(2!=a.u)rg(a);else{var b=og(a.o);a=a.o;a.o+=b}break;case 5:5!=a.u?rg(a):(a=a.o,a.o+=4);break;case 3:b=a.w;do{if(!qg(a)){a.A=!0;break}if(4==a.u){a.w!=b&&(a.A=!0);break}rg(a)}while(1);break;default:a.A=!0}};
sg=function(a){var b=og(a.o);a=a.o;var c=a.u,d=a.o,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=nb(b,f,f+8192),e+=String.fromCharCode.apply(null,k);b=e}a.o=d;return c+b};
tg=function(a){var b=og(a.o);a=a.o;if(0>b||a.o+b>a.u.length)a.B=!0,b=new Uint8Array(0);else{var c=a.u.subarray(a.o,a.o+b);a.o+=b;b=c}return b};
ug=function(){this.o=[]};
vg=function(a,b){for(;127<b;)a.o.push(b&127|128),b>>>=7;a.o.push(b)};
wg=function(a,b){a.o.push(b>>>0&255);a.o.push(b>>>8&255);a.o.push(b>>>16&255);a.o.push(b>>>24&255)};
xg=function(){this.w=[];this.u=0;this.o=new ug};
yg=function(a,b){vg(a.o,8*b+2);var c=a.o.end();a.w.push(c);a.u+=c.length;c.push(a.u);return c};
zg=function(a,b){var c=b.pop();for(c=a.u+a.o.length()-c;127<c;)b.push(c&127|128),c>>>=7,a.u++;b.push(c);a.u++};
Ag=function(a){for(var b=new Uint8Array(a.u+a.o.length()),c=a.w,d=c.length,e=0,f=0;f<d;f++){var k=c[f];b.set(k,e);e+=k.length}c=a.o.end();b.set(c,e);a.w=[b];return b};
Bg=function(a,b,c){if(null!=c&&null!=c)if(vg(a.o,8*b),a=a.o,0<=c)vg(a,c);else{for(b=0;9>b;b++)a.o.push(c&127|128),c>>=7;a.o.push(1)}};
Eg=function(a,b,c){if(null!=c&&null!=c){vg(a.o,8*b);a=a.o;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)));Cg=b;Dg=d;c=Cg;for(b=Dg;0<b||127<c;)a.o.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.o.push(c)}};
Fg=function(a,b,c){null!=c&&(vg(a.o,8*b+1),a=a.o,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,Cg=b,Dg=c,wg(a,Cg),wg(a,Dg))};
Gg=function(a,b,c){if(null!=c){vg(a.o,8*b+1);a=a.o;var d=c;d=(c=0>d?1:0)?-d:d;if(0===d)Dg=0<1/d?0:2147483648,Cg=0;else if(isNaN(d))Dg=2147483647,Cg=4294967295;else if(1.7976931348623157E308<d)Dg=(c<<31|2146435072)>>>0,Cg=0;else if(2.2250738585072014E-308>d)d/=Math.pow(2,-1074),Dg=(c<<31|d/4294967296)>>>0,Cg=d>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022<b;)e*=2,b--;d*=Math.pow(2,-b);Dg=(c<<31|b+1023<<20|1048576*d&1048575)>>>0;Cg=4503599627370496*d>>>0}wg(a,Cg);wg(a,
Dg)}};
Hg=function(a,b,c){null!=c&&(vg(a.o,8*b),a.o.o.push(c?1:0))};
Ig=function(a,b,c){if(null!=c){b=yg(a,b);for(var d=a.o,e=0;e<c.length;e++){var f=c.charCodeAt(e);if(128>f)d.o.push(f);else if(2048>f)d.o.push(f>>6|192),d.o.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.o.push(f>>18|240),d.o.push(f>>12&63|128),d.o.push(f>>6&63|128),d.o.push(f&63|128),e++)}else d.o.push(f>>12|224),d.o.push(f>>6&63|128),d.o.push(f&63|128)}zg(a,b)}};
Jg=function(a,b,c,d){null!=c&&(b=yg(a,b),d(c,a),zg(a,b))};
Kg=function(a,b,c,d){if(null!=c)for(var e=0;e<c.length;e++){var f=yg(a,b);d(c[e],a);zg(a,f)}};
Lg=function(){};
Qg=function(a,b,c,d){a.o=null;b||(b=[]);a.F=void 0;a.A=-1;a.u=b;a:{if(b=a.u.length){--b;var e=a.u[b];if(!(null===e||"object"!=typeof e||Array.isArray(e)||Mg&&e instanceof Uint8Array)){a.B=b-a.A;a.w=e;break a}}a.B=Number.MAX_VALUE}a.C={};if(c)for(b=0;b<c.length;b++)e=c[b],e<a.B?(e+=a.A,a.u[e]=a.u[e]||Ng):(Og(a),a.w[e]=a.w[e]||Ng);if(d&&d.length)for(b=0;b<d.length;b++)Pg(a,d[b])};
Og=function(a){var b=a.B+a.A;a.u[b]||(a.w=a.u[b]={})};
Rg=function(a,b){if(b<a.B){var c=b+a.A,d=a.u[c];return d===Ng?a.u[c]=[]:d}if(a.w)return d=a.w[b],d===Ng?a.w[b]=[]:d};
sba=function(a){if(null==a||a instanceof Uint8Array)return a;if("string"===typeof a)return g.hg(a);Ma(a);return null};
Sg=function(a,b){var c=Rg(a,b);return null==c?0:c};
Tg=function(a,b,c){b<a.B?a.u[b+a.A]=c:(Og(a),a.w[b]=c);return a};
Ug=function(a,b,c){0!==c?Tg(a,b,c):b<a.B?a.u[b+a.A]=null:(Og(a),delete a.w[b]);return a};
Vg=function(a,b,c,d){(c=Pg(a,c))&&c!==b&&void 0!==d&&(a.o&&c in a.o&&(a.o[c]=void 0),Tg(a,c,void 0));Tg(a,b,d)};
Pg=function(a,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],k=Rg(a,f);null!=k&&(c=f,d=k,Tg(a,f,void 0))}return c?(Tg(a,c,d),c):0};
Wg=function(a,b,c){a.o||(a.o={});if(!a.o[c]){var d=Rg(a,c);d&&(a.o[c]=new b(d))}return a.o[c]};
Yg=function(a,b,c){Xg(a,b,c);b=a.o[c];b==Ng&&(b=a.o[c]=[]);return b};
Xg=function(a,b,c){a.o||(a.o={});if(!a.o[c]){for(var d=Rg(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.o[c]=e}};
$g=function(a,b,c){a.o||(a.o={});c=c||[];for(var d=[],e=0;e<c.length;e++)d[e]=Zg(c[e]);a.o[b]=c;Tg(a,b,d)};
ah=function(a){if(a.o)for(var b in a.o){var c=a.o[b];if(g.Na(c))for(var d=0;d<c.length;d++)c[d]&&Zg(c[d]);else c&&Zg(c)}};
Zg=function(a){ah(a);return a.u};
bh=function(a){if(Array.isArray(a)){for(var b=Array(a.length),c=0;c<a.length;c++){var d=a[c];null!=d&&(b[c]="object"==typeof d?bh(d):d)}return b}if(Mg&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?bh(d):d);return b};
ch=function(a){this.o=a||{cookie:""}};
dh=function(a){a=(a.o.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=qc(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}};
eh=function(a){return a?a.passive&&tba()?a:a.capture||!1:!1};
fh=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,eh(d)),!0):!1};
gh=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,eh(void 0))};
g.jh=function(a){"number"===typeof a?(this.date=hh(a,0,1),ih(this,1)):g.Qa(a)?(this.date=hh(a.getFullYear(),a.getMonth(),a.getDate()),ih(this,a.getDate())):(this.date=new Date((0,g.G)()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),ih(this,a))};
hh=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
ih=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
lh=function(a){kh();return new dc(bc,a)};
nh=function(){return!mh()&&(Mc("iPod")||Mc("iPhone")||Mc("Android")||Mc("IEMobile"))};
mh=function(){return Mc("iPad")||Mc("Android")&&!Mc("Mobile")||Mc("Silk")};
oh=function(a){try{return!!a&&null!=a.location.href&&Kd(a,"foo")}catch(b){return!1}};
ph=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
vba=function(){var a=[];ph(uba,function(b){a.push(b)});
return a};
xba=function(a){return(a=wba.exec(a))&&a[0]||""};
yba=function(){var a=qh;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""};
Aba=function(){var a=g.re("IFRAME"),b={};(0,g.y)(zba(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
rh=function(a,b){var c=void 0;return new (c||(c=Promise))(function(d,e){function f(m){try{l(b.next(m))}catch(n){e(n)}}
function k(m){try{l(b["throw"](m))}catch(n){e(n)}}
function l(m){m.done?d(m.value):(new c(function(n){n(m.value)})).then(f,k)}
l((b=b.apply(a,void 0)).next())})};
sh=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
th=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,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a};
g.uh=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
vh=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.xh=function(a,b,c){if("string"===typeof b)(b=wh(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=wh(c,d);f&&(c.style[f]=e)}};
wh=function(a,b){var c=yh[b];if(!c){var d=kd(b);c=d;void 0===a.style[d]&&(d=(g.me?"Webkit":zh?"Moz":g.ke?"ms":g.Ah?"O":null)+Naa(d),void 0!==a.style[d]&&(c=d));yh[b]=c}return c};
g.Bh=function(a,b){var c=a.style[kd(b)];return"undefined"!==typeof c?c:a.style[wh(a,b)]||""};
Ch=function(a,b){var c=Zd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
Dh=function(a,b){return Ch(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Fh=function(a,b,c){if(b instanceof g.Td){var d=b.x;b=b.y}else d=b,b=c;a.style.left=Eh(d,!1);a.style.top=Eh(b,!1)};
Gh=function(a){return new g.Td(a.offsetLeft,a.offsetTop)};
Hh=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
Ih=function(a){if(g.ke&&!g.Od(8))return a.offsetParent;var b=Zd(a),c=Dh(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=Dh(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.Jh=function(a){var b=Zd(a),c=new g.Td(0,0);var d=b?Zd(b):document;d=!g.ke||g.Od(9)||"CSS1Compat"==be(d).o.compatMode?d.documentElement:d.body;if(a==d)return c;a=Hh(a);b=le(be(b).o);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Lh=function(a,b){var c=new g.Td(0,0),d=ne(Zd(a));if(!Kd(d,"parent"))return c;var e=a;do{var f=d==b?g.Jh(e):Kh(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.Nh=function(a,b){var c=Mh(a),d=Mh(b);return new g.Td(c.x-d.x,c.y-d.y)};
Kh=function(a){a=Hh(a);return new g.Td(a.left,a.top)};
Mh=function(a){if(1==a.nodeType)return Kh(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=Eh(c,!0)};
Eh=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Qh=function(a,b){a.style.width=Eh(b,!0)};
g.Sh=function(a){var b=Bba;if("none"!=Dh(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};
Bba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.me&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Hh(a),new g.Vd(a.right-a.left,a.bottom-a.top)):new g.Vd(b,c)};
g.Th=function(a,b){a.style.display=b?"":"none"};
Xh=function(){if(Uh&&!oh(Vh)){var a="."+Wh.domain;try{for(;2<a.split(".").length&&!oh(Vh);)Wh.domain=a=a.substr(a.indexOf(".")+1),Vh=window.parent}catch(b){}oh(Vh)||(Vh=window)}return Vh};
Yh=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():ie(b||window).round()}catch(d){return new g.Vd(-12245933,-12245933)}};
Zh=function(a,b,c){try{a&&(b=b.top);var d=Yh(a,b,void 0===c?!1:c),e=le(be(b.document).o);if(-12245933==d.width){var f=d.width;var k=new sh(f,f,f,f)}else k=new sh(e.y,e.x+d.width,e.y+d.height,e.x);return k}catch(l){return new sh(-12245933,-12245933,-12245933,-12245933)}};
Cba=function(a){var b={};(0,g.y)(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.u(e)||(b[d]=null)):b[d]=c});
naa(a,function(c){return null===b[c.event]})};
$h=function(){this.ub=0;this.o=!1;this.u=-1;this.xi=!1;this.Vd=0};
ai=function(){this.u=null;this.o=!1};
bi=function(a){ai.call(this);this.w=a};
ci=function(){ai.call(this)};
di=function(){ai.call(this)};
ei=function(){this.o={};this.u=!0;this.w={}};
fi=function(a,b,c){a.o[b]||(a.o[b]=new bi(c));return a.o[b]};
Dba=function(a){a.o.queryid||(a.o.queryid=new di)};
gi=function(a,b,c){(a=a.o[b])&&a.setValue(c)};
hi=function(a,b){if(Lb(a.w,b))return a.w[b];var c=a.o[b];if(c)return c.getValue()};
ii=function(a){var b={},c=g.Db(a.o,function(d){return d.o});
g.Cb(c,function(d,e){var f=void 0!==a.w[e]?String(a.w[e]):d.o&&null!==d.u?String(d.u):"";0<f.length&&(b[e]=f)},a);
return b};
Eba=function(a){a=ii(a);var b=[];g.Cb(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
Fba=function(){this.o=this.Ah=null};
ji=function(){};
li=function(){if(!ki())throw Error();};
ki=function(){return!(!mi||!mi.performance)};
ni=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
oi=function(){};
ri=function(a){a=a||pi();for(var b=new qi(g.v.location.href,g.v,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Gba.test(f.url)&&(c=f);if(f.url&&!f.Cs){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Hba(b,e,c)};
pi=function(){var a=g.v,b=[],c=null;do{var d=a;if(oh(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.v;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.Cs=!0);return b};
Hba=function(a,b,c){this.o=a;this.u=b;this.w=c};
qi=function(a,b,c){this.url=a;this.Dd=b;this.Cs=!!c;this.depth=null};
si=function(){this.w="&";this.A=!1;this.u={};this.B=0;this.o=[]};
ti=function(a,b){var c={};c[a]=b;return[c]};
vi=function(a,b,c,d,e){var f=[];ph(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,d){a.o.push(b);a.u[b]=ti(c,d)};
Iba=function(a){var b=1,c;for(c in a.u)b=c.length>b?c.length:b;return 3997-b-a.w.length-1};
xi=function(a,b){this.o=a;this.depth=b};
Kba=function(){function a(l,m){return null==l?m:l}
var b=pi(),c=Math.max(b.length-1,0),d=ri(b);b=d.o;var e=d.u,f=d.w,k=[];f&&k.push(new xi([f.url,f.Cs?2:0],a(f.depth,1)));e&&e!=f&&k.push(new xi([e.url,2],0));b.url&&b!=f&&k.push(new xi([b.url,0],a(b.depth,c)));d=(0,g.Fc)(k,function(l,m){return k.slice(0,k.length-m)});
!b.url||(f||e)&&b!=f||(e=xba(b.url))&&d.push([new xi([e,1],a(b.depth,c))]);d.push([]);return(0,g.Fc)(d,function(l){return Jba(c,l)})};
Jba=function(a,b){(0,g.yi)(b,function(e){return 0<=e.depth});
var c=(0,g.zi)(b,function(e,f){return Math.max(e,f.depth)},-1),d=raa(c+2);
d[0]=a;(0,g.y)(b,function(e){return d[e.depth+1]=e.o});
return d};
Lba=function(){var a=Kba();return(0,g.Fc)(a,function(b){return ui(b)})};
Ai=function(){this.u=new oi;this.o=ki()?new li:new ji};
Mba=function(){Bi();var a=mi.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&g.Pa(mi.setInterval)&&g.Pa(mi.clearInterval)&&g.Pa(mi.setTimeout)&&g.Pa(mi.clearTimeout))};
Ci=function(a){Bi();var b=Xh()||mi;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)};
Di=function(){Bi();return Lba()};
Ei=function(){};
Bi=function(){return Ei.getInstance().getContext()};
Fi=function(a){Qg(this,a,null,null)};
Nba=function(a){this.A=a;this.o=-1;this.u=this.w=0};
Gi=function(a,b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];if(-1<a.o)return b.apply(null,g.ea(d));try{return a.o=a.A.o.now(),b.apply(null,g.ea(d))}finally{a.w+=a.A.o.now()-a.o,a.o=-1,a.u+=1}}};
Oba=function(a,b){this.u=a;this.w=b;this.o=new Nba(a)};
Ii=function(){this.w=void 0;this.o=this.C=0;this.B=-1;this.Wa=new ei;fi(this.Wa,"mv",Pba).o=!0;fi(this.Wa,"omid",Hi);fi(this.Wa,"epoh",Hi).o=!0;fi(this.Wa,"epph",Hi).o=!0;fi(this.Wa,"umt",Hi).o=!0;fi(this.Wa,"phel",Hi).o=!0;fi(this.Wa,"phell",Hi).o=!0;fi(this.Wa,"oseid",Qba).o=!0;var a=this.Wa;a.o.sloi||(a.o.sloi=new ci);a.o.sloi.o=!0;fi(this.Wa,"xdi",Hi).o=!0;fi(this.Wa,"amp",Hi).o=!0;fi(this.Wa,"prf",Hi).o=!0;fi(this.Wa,"gtx",Hi).o=!0;fi(this.Wa,"mvp_lv",Hi).o=!0;fi(this.Wa,"eocm",Hi).o=!0;fi(this.Wa,
"pnl",Rba).o=!0;this.u=new Oba(Bi(),this.Wa);this.A=!1};
Sba=function(){var a="https:";mi&&mi.location&&"http:"===mi.location.protocol&&(a="http:");this.u=a;this.o=.01;this.w=Math.random()};
Ji=function(a,b,c,d,e){if((d?a.w:Math.random())<(e||a.o))try{if(c instanceof si)var f=c;else f=new si,ph(c,function(l,m){var n=f,p=n.B++,t=ti(m,l);n.o.push(p);n.u[p]=t});
var k=f.jc(a.u,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&","");k&&Ci(k)}catch(l){}};
Ki=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};
Li=function(){var a=g.v.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):(0,g.G)()};
Mi=function(){var a=void 0===a?g.v:a;return(a=a.performance)&&a.now?a.now():null};
Tba=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
Oi=function(){var a=Xh();this.events=[];this.u=a||g.v;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.o=Ni()||(null!=b?b:1>Math.random())};
Qi=function(a){a&&Pi&&Ni()&&(Pi.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Pi.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Ti=function(){var a=Ri;this.B=Si;this.A="jserror";this.w=!0;this.o=null;this.C=this.u;this.Fa=void 0===a?null:a};
Wi=function(a,b,c,d){return Gi(Ii.getInstance().u.o,function(){try{if(a.Fa&&a.Fa.o){var e=a.Fa.start(b.toString(),3);var f=c();a.Fa.end(e)}else f=c()}catch(m){var k=a.w;try{Qi(e);var l=new Ui(Vi(m));k=a.C(b,l,void 0,d)}catch(n){a.u(217,n)}if(!k)throw m;}return f})()};
Yi=function(a,b,c){var d=Xi;return Gi(Ii.getInstance().u.o,function(e){for(var f=[],k=0;k<arguments.length;++k)f[k-0]=arguments[k];return Wi(d,a,function(){return b.apply(void 0,f)},c)})};
Vi=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};
Ui=function(a){Ki.call(this,Error(a),{message:a})};
Zi=function(){var a=Xh();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||Ri.disable())};
Uba=function(a){Xi.o=function(b){(0,g.y)(a,function(c){c(b)})}};
$i=function(a,b){return Wi(Xi,a,b,void 0)};
aj=function(a,b){return Yi(a,b,void 0)};
bj=function(a,b){Ji(Si,a,b,"jserror"!=a,void 0)};
cj=function(a,b,c,d){Xi.u(a,b,c,d)};
dj=function(){return Date.now()-Vba};
Wba=function(){var a=Ii.getInstance().w,b=0<=ej?dj()-ej:-1,c=fj?dj()-gj:-1,d=0<=hj?dj()-hj:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];cj(637,Error(),.001);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};
ij=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,oh(a)&&(c=a,b=d);return{Dd:c,level:b}};
jj=function(a){var b=a!==a.top,c=a.top===ij(a).Dd,d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),Gb(Xba,function(k){return g.Pa(f[k])})||(e=1));
return{Ze:f,compatibility:e,DO:d}};
Yba=function(a){return(a=a.document)&&g.Pa(a.elementFromPoint)};
kj=function(a,b,c,d){var e=void 0===e?!1:e;c=Yi(d,c,void 0);fh(a,b,c,{capture:e})};
lj=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
mj=function(a){return new sh(a.top,a.right,a.bottom,a.left)};
nj=function(a){var b=a.top||0,c=a.left||0;return new sh(b,c+(a.width||0),b+(a.height||0),c)};
oj=function(a){return null!=a&&0<=a&&1>=a};
Zba=function(){var a=g.Lc;return a?pj("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return pc(a,b)})||pc(a,"OMI/")&&!pc(a,"XiaoMi/")?!0:pc(a,"Presto")&&pc(a,"Linux")&&!pc(a,"X11")&&!pc(a,"Android")&&!pc(a,"Mobi"):!1};
qj=function(){this.w=!oh(mi.top);this.isMobileDevice=mh()||nh();var a=pi();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.rd(a[a.length-1].url)||"":"";this.o=new sh(0,0,0,0);this.A=new g.Vd(0,0);this.B=new g.Vd(0,0);this.F=new sh(0,0,0,0);this.C=0;this.G=!1;this.u=!(!mi||!jj(mi).Ze);this.update(mi)};
rj=function(a,b){b&&b.screen&&(a.A=new g.Vd(b.screen.width,b.screen.height))};
sj=function(a,b){var c=a.o?new g.Vd(a.o.Zc(),a.o.getHeight()):new g.Vd(0,0);var d=b;d=void 0===d?mi: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,t=m.offsetHeight,u=m.offsetWidth;m.clientHeight!=t&&(n=l.scrollHeight,p=l.scrollWidth,t=l.offsetHeight,u=l.offsetWidth);
n>c.height?n>t?(e=n,f=p):(e=t,f=u):n<t?(e=n,f=p):(e=t,f=u)}var z=new g.Vd(f,e)}catch(B){z=new g.Vd(-12245933,-12245933)}a.B=z};
tj=function(){var a=qj.getInstance();if(0<a.C||a.G)return!0;a=Bi().u.isVisible();var b=0===ni(Wh);return a||b};
vj=function(a,b){var c=uj(b);return 0===c?0:uj(a)/c};
uj=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
$ba=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.ze(a)||a){var d=Zd(a),e=d&&ne(d),f=e&&e.frameElement;f&&(a=f)}}catch(k){break}}return!1};
aca=function(a,b,c){if(!a||!b)return!1;b=th(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Xh();oh(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Yba(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Zd(c))&&b.defaultView&&b.defaultView.frameElement)&&$ba(b,a);d=a===c;a=!d&&a&&Fe(a,function(e){return e===c});
return!(b||d||a)};
bca=function(a,b,c,d){return qj.getInstance().w?!1:0>=a.Zc()||0>=a.getHeight()?!0:c&&d?$i(208,function(){return aca(a,b,c)}):!1};
wj=function(a,b,c){var d=new sh(0,0,0,0);this.time=a;this.volume=null;this.w=b;this.o=d;this.u=c};
xj=function(a,b,c,d,e,f,k){this.F=a;this.C=b;this.B=c;this.o=d;this.A=e;this.u=f;this.w=k};
yj=function(a){this.w=a;this.u=0;this.o=null};
zj=function(a,b,c){this.Dd=a;this.ba=void 0===c?"na":c;this.A=[];this.I=!1;this.w=new wj(-1,!0,this);this.o=this;this.F=b;this.P=this.Z=this.G=!1;this.U="uk";this.tb=!1;this.B=!0};
Bj=function(a,b,c){if(!a.P||(void 0===c?0:c))a.P=!0,a.U=b,a.F=0,a.o!=a||Aj(a)};
Cj=function(a,b){g.cb(a.A,b)||(a.A.push(b),b.Cj(a.o),b.ph(a.w),b.Mf()&&(a.G=!0))};
Dj=function(a){a=a.o;a.Oy();a.Ny();var b=qj.getInstance();b.F=Zh(!1,a.Dd,b.isMobileDevice);a.fH();a.w.o=a.wx()};
Ej=function(a){a.G=a.A.length?pj(a.A,function(b){return b.Mf()}):!1};
Fj=function(a){var b=g.kb(a.A);(0,g.y)(b,function(c){c.ph(a.w)})};
Aj=function(a){var b=g.kb(a.A);(0,g.y)(b,function(c){c.Cj(a.o)});
a.o!=a||Fj(a)};
Gj=function(a,b,c,d){this.element=a;this.o=new sh(0,0,0,0);this.B=new sh(0,0,0,0);this.u=b;this.Wa=c;this.P=d;this.tb=!1;this.timestamp=-1;this.A=new xj(b.w,this.o,new sh(0,0,0,0),0,0,dj(),0)};
Hj=function(a){this.tb=!1;this.o=a;this.A=g.Ka};
Ij=function(a,b,c){this.w=void 0===c?0:c;this.u=a;this.o=null==b?"":b};
cca=function(a){switch(Math.trunc(a.w)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
dca=function(a,b){return new Ij(a.u,a.o,a.w+b)};
Jj=function(a,b){return a.w<b.w?!0:a.w>b.w?!1:a.u<b.u?!0:a.u>b.u?!1:typeof a.o<typeof b.o?!0:typeof a.o>typeof b.o?!1:a.o<b.o};
Kj=function(){this.w=0;this.o=[];this.u=!1};
eca=function(a,b){(0,g.y)(b.o,function(c){a.add(c.u,c.o,cca(c))})};
Lj=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;ph(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
Mj=function(a){var b=fca;a.u&&(g.ub(a.o,function(c,d){return Jj(d,c)?1:Jj(c,d)?-1:0}),a.u=!1);
return(0,g.zi)(a.o,function(c,d){var e=b(d);return""+c+(""!=c&&""!=e?"&":"")+e},"")};
fca=function(a){var b=a.u;a=a.o;return""===a?b:"boolean"===typeof a?a?b:"":g.Na(a)?0===a.length?b:b+"="+a.join():b+"="+(g.cb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Oj=function(a){var b=void 0===b?!0:b;this.o=new Kj;void 0!==a&&eca(this.o,a);b&&this.o.add("v",Nj,-16)};
gca=function(a){var b=[],c=[];g.Cb(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d){g.Na(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":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)};
Pj=function(){if(Nj&&"unreleased"!==Nj)return Nj};
Qj=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Pj();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);Ci(a)};
Rj=function(){this.o=0};
hca=function(a,b,c){(0,g.y)(a.w,function(d){var e=a.o;if(!d.o&&(d.w(b,c),d.A())){d.o=!0;var f=d.u(),k=new Kj;k.add("id","av-js");k.add("type","verif");k.add("vtype",d.B);d=Rj.getInstance();k.add("i",d.o++);k.add("adk",e);Lj(k,f);e=new Oj(k);Qj(e)}})};
Sj=function(){this.u=this.w=this.A=this.o=0};
Tj=function(a){this.u=a=void 0===a?ica:a;this.o=(0,g.Fc)(this.u,function(){return new Sj})};
Vj=function(a,b){return Uj(a,function(c){return c.o},void 0===b?!0:b)};
Xj=function(a,b){return Wj(a,b,function(c){return c.o})};
Yj=function(a,b){return Uj(a,function(c){return c.w},void 0===b?!0:b)};
Zj=function(a,b){return Wj(a,b,function(c){return c.w})};
ak=function(a,b){return Wj(a,b,function(c){return c.u})};
bk=function(a){(0,g.y)(a.o,function(b){b.u=0})};
Uj=function(a,b,c){a=(0,g.Fc)(a.o,function(d){return b(d)});
return c?a:jca(a)};
Wj=function(a,b,c){var d=g.ab(a.u,function(e){return b<=e});
return-1==d?0:c(a.o[d])};
jca=function(a){return(0,g.Fc)(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
ck=function(){this.u=new Tj;this.ba=new Sj;this.L=this.F=-1;this.ga=1E3;this.ma=new Tj([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.V=this.R=-1};
dk=function(a,b){return Yj(a.u,void 0===b?!0:b)};
fk=function(a,b,c){g.A.call(this);this.position=kca.clone();this.Ho=this.Vn();this.Os=-2;this.LO=Date.now();this.lC=-1;this.Il=b;this.yo=null;this.En=!1;this.ip=null;this.opacity=-1;this.iO=c;this.xC=this.Ps=g.Ka;this.Nd=new Fba;this.Nd.Ah=a;this.Nd.o=a;this.Mj=!1;this.gi={Ot:null,Nt:null};this.aC=!0;this.Gm=null;this.Fj=!1;Ii.getInstance().C++;this.ie=this.Nr();this.kC=-1;this.Ib=null;a=this.Wa=new ei;fi(a,"od",lca);fi(a,"opac",Hi).o=!0;fi(a,"sbeos",Hi).o=!0;fi(a,"prf",Hi).o=!0;fi(a,"mwt",Hi).o=
!0;fi(a,"iogeo",Hi);fi(a,"osddt",Hi).o=!0;fi(a,"nrl",Hi).o=!0;fi(a,"nrls",mca).o=!0;(a=this.Nd.Ah)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(g.ek&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+g.ld("googleAvInapp")):a.getAttribute("data-"+g.ld("googleAvInapp")))&&(qj.getInstance().u=!0);1==this.iO?gi(this.Wa,"od",1):gi(this.Wa,"od",0)};
gk=function(a,b){if(b!=a.Fj){a.Fj=b;var c=qj.getInstance();b?c.C++:0<c.C&&c.C--}};
hk=function(a,b){if(a.Ib){if(b.getName()===a.Ib.getName())return;a.Ib.dispose();a.Ib=null}var c=b.create(a.Nd.o,a.Wa,a.Mf());if(c=null!=c&&c.Xs()?c:null)a.Ib=c};
ik=function(a,b,c){if(!a.yo||-1==a.Il||-1===b.u||-1===a.yo.u)return 0;a=b.u-a.yo.u;return a>c?0:a};
nca=function(a,b,c){if(a.Ib){a.Ib.cg();var d=a.Ib.A,e=d.F,f=e.o;if(null!=d.B){var k=d.C;a.ip=new g.Td(k.left-f.left,k.top-f.top)}f=a.Kp()?Math.max(d.o,d.A):d.o;k={};null!==e.volume&&(k.volume=e.volume);e=1===hi(a.Wa,"osddt");var l=a.Ib.getName();switch(l){case "aio":case "iem":case "exc":case "geo":case "gsv":case "mraid":case "nis":case "nio":case "omid":e=!0;break;case "a100":case "na":e=!0;break;default:e||-1!=a.Il||bj("av-js",{strategy_name:l,bin:Ii.getInstance().o})}e?(e=a.qx(d),a.yo=d,a.xa(f,
b,c,!1,k,e,d.w)):a.xa(f,b,c,!1,k,a.Tr(b),d.w)}};
oca=function(a){if(a.En&&a.Gm){var b=1==hi(a.Wa,"od"),c=qj.getInstance().o,d=a.Gm,e=a.Ib?a.Ib.getName():"ns",f=new g.Vd(c.Zc(),c.getHeight());c=a.Kp();a={HO:e,ip:a.ip,dP:f,Kp:c,ub:a.ie.ub,aP:b};if(b=d.u){b.cg();e=b.A;f=e.F.o;var k=null,l=null;null!=e.B&&f&&(k=e.C,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.o,e.A):e.o;c={HO:b.getName(),ip:k,dP:l,Kp:c,aP:!1,ub:e}}else c=null;c&&hca(d,a,c)}};
pca=function(a,b,c){b&&(a.Ps=b);c&&(a.xC=c)};
jk=function(){};
lk=function(a){if(a instanceof jk)return a;if("function"==typeof a.Yf)return a.Yf(!1);if(g.Oa(a)){var b=0,c=new jk;c.next=function(){for(;;){if(b>=a.length)throw kk;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
g.mk=function(a,b,c){if(g.Oa(a))try{(0,g.y)(a,b,c)}catch(d){if(d!==kk)throw d;}else{a=lk(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==kk)throw d;}}};
qca=function(a){if(g.Oa(a))return g.kb(a);a=lk(a);var b=[];g.mk(a,function(c){b.push(c)});
return b};
rca=function(){this.A=this.o=this.w=this.u=this.B=0};
sca=function(a){var b={};var c=(0,g.G)()-a.B;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.w)&&(b.pnc=c);(c=a.A)&&(b.pnmm=c);(a=a.o)&&(b.pns=a);return b};
nk=function(){$h.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.w=-1};
ok=function(a){return oj(a.volume)&&.1<=a.volume};
tca=function(){var a={};this.u=(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.avs=[64,0],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.o={};for(var b in this.u)0<this.u[b][1]&&(this.o[b]=0);this.w=0};
pk=function(a,b){var c=a.u[b],d=c[1];a.w+=c[0];0<d&&0==a.o[b]&&(a.o[b]=1)};
uca=function(a){return qk(a,g.Jb(a.u))};
qk=function(a,b){var c=0,d;for(d in a.o)g.cb(b,d)&&1==a.o[d]&&(c+=a.u[d][1],a.o[d]=2);return c};
vca=function(a){var b=0,c;for(c in a.o){var d=a.o[c];if(1==d||2==d)b+=a.u[c][1]}return b};
rk=function(){this.o=this.u=0};
sk=function(){ck.call(this);this.w=new Sj;this.Z=this.I=this.U=0;this.G=-1;this.oa=new Sj;this.B=new Sj;this.o=new Tj;this.C=this.A=-1;this.P=new Sj;this.ga=2E3;this.aa=new rk;this.da=new rk;this.ha=new rk};
tk=function(a,b,c){var d=a.Z;fj||c||-1==a.G||(d+=b-a.G);return d};
wca=function(){this.o=!1};
uk=function(a,b){this.o=!1;this.A=a;this.G=b;this.u=0};
wk=function(a,b){if(a.w(b)){var c=vk(a.G,a.A,b);a.u|=c;return 0==c}return!1};
xk=function(a,b,c,d){Gj.call(this,a,b,c,d)};
yk=function(a,b,c){Gj.call(this,null,a,b,c);this.F=a.isActive();this.C=0};
zk=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;fk.call(this,b,c,d);this.rr=0;this.Nf={};this.yc=new tca;this.KC={};this.jd="";this.jk=null;this.oa=!1;this.o=[];this.Bi=e;this.C=f;this.A=null;this.w=-1;this.Z=this.G=void 0;this.I=this.L=0;this.V=-1;this.ga=this.da=!1;this.U=this.F=this.u=this.Ck=this.ma=0;new Tj;this.aa=this.ba=0;this.ha=-1;this.Cc=0;this.P=g.Ka;this.R=[this.Vn()];this.ua=2;this.hj={};this.hj.pause="p";this.hj.resume="r";this.hj.skip="s";this.hj.mute="m";this.hj.unmute=
"um";this.hj.exitfullscreen="ef";this.B=null};
Ak=function(a){0!=a.Cc&&(a.Cc=3)};
Bk=function(a){return void 0===a?a:Number(a)?lj(a,3):0};
Ck=function(a,b){var c;null!=b&&b<a.R.length?c=b:c=a.R.length-1;return a.R[c]};
Dk=function(a){var b=!!hi(Ii.getInstance().Wa,"umt");return a.G||!b&&!a.Z?0:1};
xca=function(a,b){var c=a.Tr(b),d=a.P(a)||{};d=void 0!==d.currentTime?d.currentTime:a.L;var e=d-a.L,f=0;0<=e?(a.I+=c,a.aa+=Math.max(c-e,0),f=Math.min(e,a.I)):a.ba+=Math.abs(e);0!=e&&(a.I=0);-1==a.ha&&0<e&&(a.ha=0<=hj?dj()-hj:-1);a.L=d;return f};
yca=function(a,b){pj(a.C,function(c){return c.A==b.A})||a.C.push(b)};
Ek=function(a,b,c){return 15E3<=b?!0:a.da?(void 0===c?0:c)?!0:0<a.w?b>=a.w/2:0<a.V?b>=a.V:!1:!1};
zca=function(a){var b=lj(a.ie.ub,2),c=a.yc.w,d=a.ie,e=Ck(a),f=Bk(e.A),k=Bk(e.C),l=Bk(d.volume),m=lj(e.F,2),n=lj(e.L,2),p=lj(d.ub,2),t=lj(e.R,2),u=lj(e.V,2);d=lj(d.Vd,2);a=a.jh().clone();a.round();e=dk(e,!1);return{cP:b,Dl:c,Io:f,Eo:k,Qk:l,Jo:m,Fo:n,ub:p,Ko:t,Go:u,Vd:d,position:a,hp:e}};
Gk=function(a,b){Fk(a.o,b,function(){return{cP:0,Dl:void 0,Io:-1,Eo:-1,Qk:-1,Jo:-1,Fo:-1,ub:-1,Ko:-1,Go:-1,Vd:-1,position:void 0,hp:[]}});
a.o[b]=zca(a)};
Fk=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Jk=function(a,b,c){var d=a.KC[b];if(null!=d)return d;d=Aca(a,b);var e=Nb(Hk,function(f){return f==b});
c=Ik(a,d,d,c,Bca[Hk[e]]);"fully_viewable_audible_half_duration_impression"==b&&(c.std="csm",c.ic=qk(a.yc,["gdr"]));return c};
Kk=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Ik=function(a,b,c,d,e){if(a.Mj)return{"if":0};var f=a.jh().clone();f.round();var k=qj.getInstance(),l=Ii.getInstance(),m=a.Pd(),n=a.Ib?a.Ib.getName():"ns",p={};p["if"]=k.w?1:void 0;p.sdk=a.A?a.A:void 0;p.t=a.LO;p.p=[f.top,f.left,f.bottom,f.right];p.tos=Vj(m.u,!1);p.mtos=dk(m);p.mcvt=m.ba.w;p.ps=void 0;p.vht=tk(m,dj(),2==a.Cc);p.mut=m.oa.w;p.a=Bk(a.ie.volume);p.mv=Bk(m.C);p.fs=a.Fj?1:0;p.ft=m.P.o;p.at=m.B.o;p.as=.1<=m.A?1:0;p.atos=Vj(m.o);p.ssb=Vj(m.ma,!1);p.amtos=Yj(m.o);p.uac=a.ma;p.vpt=m.w.o;"nio"==
n&&(p.nio=1,p.avms="nio");p.gmm="4";p.gdr=Ek(a,m.w.o,!0)?1:0;p.efpf=a.ua;if("gsv"==n||"nis"==n)f=a.Ib,0<f.C&&(p.nnut=f.C);p.tcm=Dk(a);p.nmt=a.ba;p.bt=a.aa;p.pst=a.ha;p.vpaid=a.G;p.dur=a.w;p.vmtime=a.L;p.is=a.yc.w;1<=a.o.length&&(p.i0=a.o[0].Dl,p.a0=[a.o[0].Qk],p.c0=[a.o[0].ub],p.ss0=[a.o[0].Vd],f=a.o[0].position,p.p0=f?[f.top,f.left,f.bottom,f.right]:void 0);2<=a.o.length&&(p.i1=a.o[1].Dl,p.a1=Kk(a.o[1].Io,a.o[1].Qk,a.o[1].Eo),p.c1=Kk(a.o[1].Jo,a.o[1].ub,a.o[1].Fo),p.ss1=Kk(a.o[1].Ko,a.o[1].Vd,a.o[1].Go),
f=a.o[1].position,p.p1=f?[f.top,f.left,f.bottom,f.right]:void 0,p.mtos1=a.o[1].hp);3<=a.o.length&&(p.i2=a.o[2].Dl,p.a2=Kk(a.o[2].Io,a.o[2].Qk,a.o[2].Eo),p.c2=Kk(a.o[2].Jo,a.o[2].ub,a.o[2].Fo),p.ss2=Kk(a.o[2].Ko,a.o[2].Vd,a.o[2].Go),f=a.o[2].position,p.p2=f?[f.top,f.left,f.bottom,f.right]:void 0,p.mtos2=a.o[2].hp);4<=a.o.length&&(p.i3=a.o[3].Dl,p.a3=Kk(a.o[3].Io,a.o[3].Qk,a.o[3].Eo),p.c3=Kk(a.o[3].Jo,a.o[3].ub,a.o[3].Fo),p.ss3=Kk(a.o[3].Ko,a.o[3].Vd,a.o[3].Go),f=a.o[3].position,p.p3=f?[f.top,f.left,
f.bottom,f.right]:void 0,p.mtos3=a.o[3].hp);p.cs=vca(a.yc);b&&(p.ic=uca(a.yc),p.dvpt=m.w.u,p.dvs=ak(m.u,.5),p.dfvs=ak(m.u,1),p.davs=ak(m.o,.5),p.dafvs=ak(m.o,1),c&&(m.w.u=0,bk(m.u),bk(m.o)),a.zi()&&(p.dtos=m.U,p.dav=m.I,p.dtoss=a.rr+1,c&&(m.U=0,m.I=0,a.rr++)),p.dat=m.B.u,p.dft=m.P.u,c&&(m.B.u=0,m.P.u=0));p.ps=[k.B.width,k.B.height];p.bs=[k.o.Zc(),k.o.getHeight()];p.scs=[k.A.width,k.A.height];p.dom=k.domain;a.Ck&&(p.vds=a.Ck);if(0<a.C.length||a.Bi)b=g.kb(a.C),a.Bi&&b.push(a.Bi),p.pings=(0,g.Fc)(b,
function(t){return t.toString()});
b=(0,g.Fc)((0,g.xe)(a.C,function(t){return t.B()}),function(t){return t.getId()});
oaa(b);p.ces=b;a.u&&(p.vmer=a.u);a.F&&(p.vmmk=a.F);a.U&&(p.vmiec=a.U);p.avms=a.Ib?a.Ib.getName():"ns";a.Ib&&g.Vb(p,a.Ib.gh());d?(p.c=lj(a.ie.ub,2),p.ss=lj(a.ie.Vd,2)):p.tth=dj()-Lk;p.mc=lj(m.L,2);p.nc=lj(m.F,2);p.mv=Bk(m.C);p.nv=Bk(m.A);p.lte=lj(a.Os,2);d=Ck(a,e);dk(m);p.qmtos=dk(d);p.qnc=lj(d.F,2);p.qmv=Bk(d.C);p.qnv=Bk(d.A);p.qas=.1<=d.A?1:0;p.qi=a.jd;p.avms||(p.avms="geo");p.psm=m.aa.o;p.psv=m.aa.getValue();p.psfv=m.da.getValue();p.psa=m.ha.getValue();l=Eba(l.Wa);l.length&&(p.veid=l);a.B&&g.Vb(p,
sca(a.B));return p};
Aca=function(a,b){if(g.cb(Cca,b))return!0;var c=a.Nf[b];return void 0!==c?(a.Nf[b]=!0,!c):!1};
Eca=function(){this.o={};var a=ne();Mk(this,a,document);var b=Dca();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Mk(this,c,c.document);Mk(this,a.top,a.top.document)}}catch(d){}};
Dca=function(){var a=document.documentElement;try{if(!oh(ne().top))return"2";var b=[],c=ne(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"}};
Mk=function(a,b,c){kj(c,"mousedown",function(){return Fca(a)},301);
kj(b,"scroll",function(){return Gca(a)},302);
kj(c,"touchmove",function(){return Hca(a)},303);
kj(c,"mousemove",function(){return Ica(a)},304);
kj(c,"keydown",function(){return Jca(a)},305)};
Fca=function(a){g.Cb(a.o,function(b){1E5<b.w||++b.w})};
Gca=function(a){g.Cb(a.o,function(b){1E5<b.o||++b.o})};
Hca=function(a){g.Cb(a.o,function(b){1E5<b.o||++b.o})};
Jca=function(a){g.Cb(a.o,function(b){1E5<b.u||++b.u})};
Ica=function(a){g.Cb(a.o,function(b){1E5<b.A||++b.A})};
g.Ok=function(a){var b=[];Nk(new Kca,a,b);return b.join("")};
Kca=function(){};
Nk=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),Nk(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),Pk(d,c),c.push(":"),Nk(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Pk(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);}}};
Pk=function(a,b){b.push('"',a.replace(Lca,function(c){var d=Qk[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Qk[c]=d);return d}),'"')};
Rk=function(){this.o=[];this.u=[]};
Sk=function(a,b){return g.$a(a.o,function(c){return c.jd==b})};
Tk=function(a,b){return b?g.$a(a.o,function(c){return c.Nd.Ah==b}):null};
Mca=function(a,b){return g.$a(a.u,function(c){return 2==c.wf()&&c.jd==b})};
Xk=function(){var a=Uk;return 0==a.o.length?a.u:0==a.u.length?a.o:g.jb(a.u,a.o)};
Yk=function(a,b){var c=1==b.wf()?a.o:a.u,d=g.Za(c,function(e){return e==b});
return-1!=d?(c.splice(d,1),b.Ib&&b.Ib.Ul(),b.dispose(),!0):!1};
Nca=function(a){var b=Uk;if(Yk(b,a)){switch(a.wf()){case 0:var c=function(){return null};
case 2:c=function(){return Mca(b,a.jd)};
break;case 1:c=function(){return Sk(b,a.jd)}}for(var d=c();d;d=c())Yk(b,d)}};
Oca=function(a,b){var c=Uk,d=(0,g.xe)(a,(void 0===b?0:b)?function(e){return!Sk(c,e.jd)}:function(e){return!Tk(c,e.Nd.Ah)});
c.o.push.apply(c.o,g.ea(d))};
Zk=function(a){var b=Uk,c=[];(0,g.y)(a,function(d){pj(b.o,function(e){return e.Nd.Ah===d.Nd.Ah&&e.jd===d.jd})||(b.o.push(d),c.push(d))})};
$k=function(){this.o=this.u=null};
al=function(a,b){function c(d,e){b(d,e)}
if(null==a.u)return!1;a.o=g.$a(a.u,function(d){return null!=d&&d.wy()});
a.o&&(a.o.init(c)?Dj(a.o.o):b(a.o.o.uj(),a.o));return null!=a.o};
bl=function(a){a=Pca(a);Hj.call(this,a.length?a[a.length-1]:new zj(mi,0));this.w=a;this.u=null};
Pca=function(a){if(!a.length)return[];a=(0,g.xe)(a,function(c){return null!=c&&c.Py()});
for(var b=1;b<a.length;b++)Cj(a[b-1],a[b]);return a};
cl=function(a,b,c,d){Gj.call(this,a,b,c,d);this.I=this.G=null};
dl=function(a,b){try{if(b.length){a.G||(a.G=dj());var c=Qca(b),d=Lh(a.element,a.u.o.Dd),e=d.x,f=d.y;a.o=new sh(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var k=mj(c.intersectionRect);a.B=th(k,a.o.left-k.left,a.o.top-k.top)}}catch(l){a.Ul(),cj(299,l)}};
Qca=function(a){return(0,g.zi)(a,function(b,c){return b.time>c.time?b:c},a[0])};
el=function(a,b,c,d){cl.call(this,a,b,c,d);this.C=this.F=this.w=null};
fl=function(a){return a.w&&a.w.takeRecords?a.w.takeRecords():[]};
Sca=function(a){if(!a.element)return!1;var b=a.element,c=a.u.o.Dd,d=Ii.getInstance().u.o;a.w=new c.IntersectionObserver(Gi(d,function(e){return dl(a,e)}),Rca);
d=Gi(d,function(){a.w.unobserve(b);a.w.observe(b);dl(a,fl(a))});
c.ResizeObserver?(a.F=new c.ResizeObserver(d),a.F.observe(b)):c.MutationObserver&&(a.C=new g.v.MutationObserver(d),a.C.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.w.observe(b);dl(a,fl(a));return!0};
gl=function(){var a=/Chrome\/(\d+)/.exec(g.Lc);return a?parseFloat(a[1]):NaN};
hl=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Lc);if(!a)return NaN;var b=[];a=g.q(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),0<=c&&b.push(c);return parseFloat(b.join("."))};
Tca=function(){var a=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Lc);return a?a[1]:""};
jl=function(){return il("android")&&il("chrome")&&!(il("trident/")||il("edge/"))};
kl=function(){return il("armv7")||il("aarch64")||il("android")};
g.ll=function(){return il("cobalt")};
ml=function(){return il("cobalt")&&il("appletv")};
nl=function(){return il("(ps3; leanback shell)")||il("ps3")&&g.ll()};
ol=function(){return il("(ps4; leanback shell)")||il("ps4")&&g.ll()};
g.pl=function(){return g.ll()&&(il("ps4 vr")||il("ps4 pro vr"))};
ql=function(){var a=/WebKit\/([0-9]+)/.exec(g.Lc);return!!(a&&600<=parseInt(a[1],10))};
rl=function(){return il("iemobile")||il("windows phone")&&il("edge")};
tl=function(){return sl&&il("applewebkit")&&!il("version")&&(!il("safari")||il("gsa/"))};
ul=function(){return il("smart-tv")&&il("samsung")};
il=function(a){var b=g.Lc;return b?0<=b.toLowerCase().indexOf(a):!1};
vl=function(a){a=void 0===a?mi:a;Hj.call(this,new zj(a,2))};
xl=function(){var a=wl();zj.call(this,mi.top,a,"geo")};
wl=function(){Ii.getInstance();var a=qj.getInstance();return a.w||a.u?0:2};
yl=function(){};
zl=function(){this.done=!1;this.o={KD:0,Pv:0,LT:0,Iw:0,us:-1,jE:0,iE:0,kE:0};this.B=null;this.C=!1;this.u=null;this.F=0;this.w=new yj(this)};
Bl=function(){var a=Al;a.C||(a.C=!0,Uca(a,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.A.apply(a,g.ea(c))}),a.A())};
Vca=function(){yl.getInstance();var a=$k.getInstance();null!=a.o&&a.o.o?Dj(a.o.o):qj.getInstance().update(mi)};
Cl=function(a,b,c){if(!a.done&&(a.w.cancel(),0!=b.length)){a.u=null;try{Vca();var d=dj(),e=Ii.getInstance();e.B=d;if(null!=$k.getInstance().o)for(e=0;e<b.length;e++)nca(b[e],d,c);else bj("",{strategy_not_selected:1,bin:e.o});for(d=0;d<b.length;d++)oca(b[d]);++a.o.Iw}finally{c?(0,g.y)(b,function(f){f.ie.ub=0}):a.w.schedule()}}};
Uca=function(a,b){if(!a.B){var c=Yi(142,b,void 0);Bi();var d;Wh.visibilityState?d="visibilitychange":Wh.mozVisibilityState?d="mozvisibilitychange":Wh.webkitVisibilityState&&(d="webkitvisibilitychange");d&&fh(Wh,d,c,{capture:!1})&&(a.B=c)}};
Dl=function(){var a=$k.getInstance();if(null!=a.o){var b=a.o;(0,g.y)(Xk(),function(c){return hk(c,b)})}};
El=function(a,b){var c=a.F;fj&&(c+=b-gj);return c};
Wca=function(a){var b=Al;a=void 0===a?function(){return{}}:a;
Xi.A="av-js";Si.o=.01;Uba([function(c){var d=Ii.getInstance(),e={};e=(e.bin=d.o,e.type="error",e);d=ii(d.Wa);if(!b.u){var f=mi.document,k=0<=ej?dj()-ej:-1,l=dj();-1==b.o.us&&(k=l);var m=qj.getInstance(),n=Ii.getInstance(),p=ii(n.Wa),t=Xk();try{if(0<t.length){var u=m.o;u&&(p.bs=[u.Zc(),u.getHeight()]);var z=m.B;z&&(p.ps=[z.width,z.height]);mi.screen&&(p.ss=[mi.screen.width,mi.screen.height])}else p.url=encodeURIComponent(mi.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=k;p.pt=ej;p.bin=n.o;void 0!==mi.google_osd_load_pub_page_exp&&(p.olpp=mi.google_osd_load_pub_page_exp);p.deb=[1,b.o.KD,b.o.Pv,b.o.Iw,b.o.us,0,b.w.u,b.o.jE,b.o.iE,b.o.kE].join("-");p.tvt=El(b,l);m.u&&(p.inapp=1);if(null!==mi&&mi!=mi.top){0<t.length&&(p.iframe_loc=encodeURIComponent(mi.location.href.substring(0,512)));var B=m.F;p.is=[B.Zc(),B.getHeight()]}}catch(D){p.error=1}b.u=p}u=g.Sb(b.u);z=Ii.getInstance().u;1==hi(z.w,"prf")?(B=new Fi,f=z.o,k=0,-1<f.o&&(k=f.A.o.now()-f.o),B=Ug(B,1,
f.w+k),f=z.o,B=Ug(B,5,-1<f.o?f.u+1:f.u),B=Ug(B,2,z.u.o.w()),B=Ug(B,3,z.u.o.u()),B=Ug(B,4,z.u.o.o()),z={},f=new xg,k=Rg(B,1),k=null==k?k:+k,k=null==k?0:k,0!==k&&Gg(f,1,k),k=Sg(B,2),0!==k&&Eg(f,2,k),k=Sg(B,3),0!==k&&Eg(f,3,k),k=Sg(B,4),0!==k&&Eg(f,4,k),k=Sg(B,5),0!==k&&Bg(f,5,k),B=Ag(f),z=(z.pf=g.eg(B),z)):z={};g.Vb(u,z);g.Vb(c,e,d,u,a());if(e=Pj())d={},g.Vb(c,(d.v=encodeURIComponent(e),d))}])};
Xca=function(){var a=Fl||mi;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("&")};
Gl=function(a){return function(b){return void 0===b[a]?0:b[a]}};
Il=function(){var a=[0,2,4];return function(b){b=b.tos;if(g.Na(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 void 0!==a?Hl(c,a):c}}};
Jl=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.Na(f)&&d(e))return Hl(f,b,c)}};
Kl=function(a,b){return function(c){return b(c)?c[a]:void 0}};
Ll=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c]===b.e||void 0===a[c]&&!b.hasOwnProperty("e"))return!0;return!1}};
Hl=function(a,b,c){return void 0===c||c?(0,g.xe)(a,function(d,e){return g.cb(b,e)}):(0,g.Fc)(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)})};
Ol=function(a,b){var c={sv:"862",cb:"j"};c.nas=Uk.o.length;c.msg=a;if(void 0!==b){var d=Ml(b);d&&(c.e=Nl[d])}return c};
Pl=function(a){return fc(a,"custom_metric_viewable")};
Ml=function(a){var b=Pl(a)?"custom_metric_viewable":a.toLowerCase();return Nb(Hk,function(c){return c==b})};
Yca=function(){this.o=void 0;this.u=!1;this.w=0;this.A=-1;this.B="tos"};
$ca=function(a){try{var b=a.split(",");return b.length>g.Jb(Zca).length?null:(0,g.zi)(b,function(c,d){var e=d.toLowerCase().split("=");if(2!=e.length||void 0===Ql[e[0]]||!Ql[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.o)return 0;switch(a.B){case "mtos":return a.u?Zj(b.o,a.o):Zj(b.u,a.o);case "tos":return a.u?Xj(b.o,a.o):Xj(b.u,a.o)}return 0};
Rl=function(a,b,c,d){uk.call(this,b,d);this.F=a;this.C=c};
Sl=function(a){uk.call(this,"fully_viewable_audible_half_duration_impression",a)};
Tl=function(a,b){uk.call(this,a,b)};
Ul=function(){this.u=this.A=this.C=this.B=this.w=this.o=""};
bda=function(){};
Vl=function(a,b,c,d,e){var f={};if(void 0!==a)if(null!=b)for(var k in b){var l=b[k];k in Object.prototype||null!=l&&(g.Pa(l)?f[k]=l(a):f[k]=a[l])}else g.Vb(f,a);void 0!==c&&g.Vb(f,c);a=Mj(Lj(new Kj,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
Wl=function(){};
Xl=function(a,b,c){yk.call(this,a,b,c)};
Yl=function(a){a=void 0===a?mi:a;Hj.call(this,new zj(a,2))};
Zl=function(a,b,c){yk.call(this,a,b,c)};
$l=function(a){a=void 0===a?mi:a;Hj.call(this,new zj(a,2))};
am=function(){zj.call(this,mi,2,"mraid");this.V=0;this.L=this.R=!1;this.C=null;this.u=jj(this.Dd);this.w.o=new sh(0,0,0,0);this.aa=!1};
bm=function(a,b,c){a.Mh("addEventListener",b,c)};
em=function(a){Ii.getInstance().A=!!a.Mh("isViewable");bm(a,"viewableChange",cda);"loading"===a.Mh("getState")?bm(a,"ready",cm):dm(a)};
dm=function(a){"string"===typeof a.u.Ze.AFMA_LIDAR?(a.R=!0,dda(a)):(a.u.compatibility=3,a.C="nc",Bj(a,"w"))};
dda=function(a){a.L=!1;var b=1==hi(Ii.getInstance().Wa,"rmmt"),c=!!a.Mh("isViewable");(b?!c:1)&&Bi().setTimeout(aj(524,function(){a.L||(fm(a),cj(540,Error()),a.C="mt",Bj(a,"w"))}),500);
eda(a);bm(a,a.u.Ze.AFMA_LIDAR,gm)};
eda=function(a){var b=1==hi(Ii.getInstance().Wa,"sneio"),c=void 0!==a.u.Ze.AFMA_LIDAR_EXP_1,d=void 0!==a.u.Ze.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.Ze.AFMA_LIDAR_EXP_2=!0);c&&(a.u.Ze.AFMA_LIDAR_EXP_1=!b)};
fm=function(a){a.Mh("removeEventListener",a.u.Ze.AFMA_LIDAR,gm);a.R=!1};
hm=function(a,b){if("loading"===a.Mh("getState"))return new g.Vd(-1,-1);var c=a.Mh(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)};
cm=function(){try{var a=am.getInstance();a.Mh("removeEventListener","ready",cm);dm(a)}catch(b){cj(541,b)}};
gm=function(a,b){try{var c=am.getInstance();c.L=!0;var d=a?new sh(a.y,a.x+a.width,a.y+a.height,a.x):new sh(0,0,0,0);var e=dj(),f=tj();var k=new wj(e,f,c);k.o=d;k.volume=b;c.ph(k)}catch(l){cj(542,l)}};
cda=function(a){var b=Ii.getInstance(),c=am.getInstance();a&&!b.A&&(b.A=!0,c.aa=!0,c.C&&Bj(c,"w",!0))};
im=function(){this.I=!1;this.o=null;this.w=new Wl;this.u=null;var a={};this.F=(a.start=this.IF,a.firstquartile=this.DF,a.midpoint=this.FF,a.thirdquartile=this.JF,a.complete=this.BF,a.pause=this.Yt,a.resume=this.QB,a.skip=this.HF,a.viewable_impression=this.kh,a.mute=this.yk,a.unmute=this.yk,a.fullscreen=this.EF,a.exitfullscreen=this.CF,a.fully_viewable_audible_half_duration_impression=this.kh,a.measurable_impression=this.kh,a.abandon=this.Yt,a.engagedview=this.kh,a.impression=this.kh,a.creativeview=
this.kh,a.progress=this.yk,a.custom_metric_viewable=this.kh,a.bufferstart=this.Yt,a.bufferfinish=this.QB,a);a={};this.P=(a.overlay_resize=this.GF,a.abandon=this.hs,a.close=this.hs,a.collapse=this.hs,a.overlay_unmeasurable_impression=function(b){return Jk(b,"overlay_unmeasurable_impression",tj())},a.overlay_viewable_immediate_impression=function(b){return Jk(b,"overlay_viewable_immediate_impression",tj())},a.overlay_unviewable_impression=function(b){return Jk(b,"overlay_unviewable_impression",tj())},
a.overlay_viewable_end_of_session_impression=function(b){return Jk(b,"overlay_viewable_end_of_session_impression",tj())},a);
Ii.getInstance().o=3;fda(this);this.A=!1};
jm=function(a,b,c,d){b=a.tm(null,d,!0,b);b.A=c;Oca([b],a.A);return b};
gda=function(a,b,c){Cba(b);var d=a.u;(0,g.y)(b,function(e){var f=(0,g.Fc)(e.o,function(k){var l=$ca(k);if(null==l)k=null;else if(k=new Yca,null!=l.visible&&(k.o=l.visible/100),null!=l.audible&&(k.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=gc(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(k.w=l,k.A=-1):(k.w=-1,k.A=l);k.B=void 0===m?"tos":m}return k});
pj(f,function(k){return null==k})||yca(c,new Rl(e.id,e.event,f,d))})};
hda=function(a){a=a.u;return[new Tl("viewable_impression",a),new Sl(a)]};
ida=function(){var a=[];qj.getInstance();var b=Ii.getInstance();a.push(xl.getInstance());hi(b.Wa,"mvp_lv")&&a.push(am.getInstance());b=[new Yl,new $l];b.push(new bl(a));b.push(new vl(mi));return b};
jda=function(a){if(!a.I){a.I=!0;try{var b=dj(),c=Ii.getInstance(),d=qj.getInstance();ej=b;c.w=79463069;"o"!==a.o&&(Fl=ij(mi).Dd);if(Mba()){Al.o.Pv=0;Al.o.us=dj()-b;var e=ida(),f=$k.getInstance();f.u=e;al(f,function(){km()})?Al.done||(Dl(),Cj(f.o.o,a),Bl()):d.w?km():Bl()}else lm=!0}catch(k){throw Uk.reset(),k;
}}};
nm=function(a){Al.w.cancel();mm=a;Al.done=!0};
om=function(a){if(a.o)return a.o;var b=$k.getInstance().o;if(b)switch(b.getName()){case "nis":a.o="n";break;case "gsv":a.o="m"}a.o||(a.o="h");return a.o};
pm=function(a,b,c){if(null==a.u)return b.Ck|=4,!1;a=vk(a.u,c,b);b.Ck|=a;return 0==a};
km=function(){var a=[new vl(mi)],b=$k.getInstance();b.u=a;al(b,function(){nm("i")})?Al.done||(Dl(),Bl()):nm("i")};
qm=function(a,b,c){if(!b.oa){var d=Jk(b,"start",tj());a=a.w.o(d).o;var e={id:"lidarv"};e.r=c;e.v="862v";td(a,function(f,k){return e[f]="mtos"==f||"tos"==f?k:encodeURIComponent(k)});
c=Xca();td(c,function(f,k){return e[f]=encodeURIComponent(k)});
c="//pagead2.googlesyndication.com/pagead/gen_204?"+Mj(Lj(new Kj,e));Qj(c);b.oa=!0}};
rm=function(a,b,c){Cl(Al,[a],!tj());Gk(a,c);4!=c&&Fk(a.R,c,a.Vn);return Jk(a,b,tj())};
fda=function(a){Wca(function(){var b=sm();null!=a.o&&(b.sdk=a.o);var c=$k.getInstance();null!=c.o&&(b.avms=c.o.getName());return b})};
kda=function(a,b,c,d){if(a.A)var e=Sk(Uk,b);else e=Tk(Uk,c),null!==e&&e.jd!==b&&(a.Zk(e),e=null);e||(b=a.tm(c,dj(),!1,b),0==Uk.u.length&&(Ii.getInstance().w=79463069),Zk([b]),e=b,e.A=om(a),d&&(e.jk=d));return e};
lda=function(a,b){b.F=0;for(var c in tm)null==a[c]&&(b.F|=tm[c]);um(a,"currentTime");um(a,"duration")};
mda=function(a){(0,g.y)(Uk.o,function(b){3==b.Cc&&a.Zk(b)})};
um=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
sm=function(){var a=qj.getInstance(),b={};return b.sv="862",b["if"]=a.w?"1":"0",b.nas=String(Uk.o.length),b};
vm=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
xm=function(a){return!!(1<<a&wm)};
rda=function(){try{nda()}catch(d){}var a="a=1&b="+wm+"&",b=[],c=99;(0,g.y)(oda,function(d,e){var f=!1;try{f=d(mi)}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)(pda,function(d){var e="false";try{e=d(mi)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
(0,g.y)(qda,function(d){var e="";try{e=g.fg(d(mi))}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
nda=function(){if(!ym){var a=function(){zm=!0;mi.document.removeEventListener("webdriver-evaluate",a,!0)};
mi.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){Am=!0;mi.document.removeEventListener("webdriver-evaluate-response",b,!0)};
mi.document.addEventListener("webdriver-evaluate-response",b,!0);ym=!0}};
sda=function(){this.u=-1};
Bm=function(){this.u=64;this.o=Array(4);this.B=Array(this.u);this.A=this.w=0;this.reset()};
Cm=function(a,b,c){c||(c=0);var d=Array(16);if("string"===typeof 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.o[0];c=a.o[1];e=a.o[2];var f=a.o[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.o[0]=a.o[0]+b&4294967295;a.o[1]=a.o[1]+(e+(k<<21&4294967295|k>>>11))&4294967295;a.o[2]=a.o[2]+e&4294967295;a.o[3]=a.o[3]+f&4294967295};
Dm=function(){this.u=null};
Em=function(a){return function(b){var c=new Bm;c.update(b+a);return qba(c.digest()).slice(-8)}};
Fm=function(a,b){this.u=a;this.w=b};
vk=function(a,b,c){var d=a.o(c);if(g.Pa(d)){var e={};e=(e.sv="862",e.cb="j",e.e=tda(b),e);var f=Jk(c,b,tj());g.Vb(e,f);c.KC[b]=f;a=2==c.wf()?gca(e).join("&"):a.w.o(e).o;try{return d(c.jd,a,b),0}catch(k){return 2}}else return 1};
tda=function(a){var b=Pl(a)?"custom_metric_viewable":a;a=Nb(Hk,function(c){return c==b});
return Nl[a]};
Gm=function(a,b,c){Fm.call(this,a,b);this.A=c};
Hm=function(){im.call(this);this.C=null;this.B=!1;this.G={};this.w=new Dm};
uda=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.u&&g.Na(c)&&gda(a,c,b)};
vda=function(a,b,c){var d=Sk(Uk,b);d||(d=c.opt_nativeTime||-1,d=jm(a,b,om(a),d),c.opt_osdId&&(d.jk=c.opt_osdId));return d};
wda=function(a,b,c){var d=Sk(Uk,b);d||(d=jm(a,b,"n",c.opt_nativeTime||-1));return d};
xda=function(a,b){var c=Sk(Uk,b);c||(c=jm(a,b,"h",-1));return c};
yda=function(a){Ii.getInstance();switch(om(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
Jm=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Vb(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.w.o(Ol("ol",d));if(void 0!==d)if(void 0!==Ml(d))if(lm)b=Ol("ue",d);else if(jda(a),"i"==mm)b=Ol("i",d),b["if"]=0;else if(b=a.Yn(b,e))if(a.A&&3==b.Cc)b="stopped";else{b:{"i"==mm&&(b.Mj=!0,a.vu());c=e.opt_fullscreen;void 0!==c&&gk(b,!!c);var f;if(c=!qj.getInstance().u)(c=pc(g.Lc,"CrKey")||pc(g.Lc,"PlayStation")||pc(g.Lc,"Roku")||Zba()||pc(g.Lc,"Xbox"))||(c=g.Lc,c=pc(c,"AppleTV")||
pc(c,"Apple TV")||pc(c,"CFNetwork")||pc(c,"tvOS")),c||(c=g.Lc,c=pc(c,"sdk_google_atv_x86")||pc(c,"Android TV")),c=!c;c&&(Bi(),c=0===ni(Wh));if(f=c){switch(b.wf()){case 1:qm(a,b,"pv");break;case 2:a.nu(b)}nm("pv")}c=d.toLowerCase();if(!f&&g.cb(zda,c)&&0==b.Cc){"i"!=mm&&(Al.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;hj=f="number"===typeof f?f:dj();b.En=!0;var k=tj();b.Cc=1;b.Nf={};b.Nf.firstquartile=!1;b.Nf.midpoint=!1;b.Nf.thirdquartile=!1;b.Nf.complete=!1;b.Nf.pause=!1;b.Nf.skip=!1;b.Nf.viewable_impression=
!1;b.rr=0;k||(b.Pd().G=f);Cl(Al,[b],!k)}0!=b.Cc&&g.cb(Ada,c)&&!b.Mj&&b.Bi&&(f=b.Bi,f.o||(f.o=wk(f,b)));(f=b.hj[c])&&pk(b.yc,f);switch(b.wf()){case 1:var l=Pl(c)?a.F.custom_metric_viewable:a.F[c];break;case 2:l=a.P[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=Ol(void 0,c);g.Vb(e,d);d=e;break b}d=void 0}3==b.Cc&&(a.A?b.Ib&&b.Ib.Ul():a.Zk(b));b=d}else b=Ol("nf",d);else b=void 0;else lm?b=Ol("ue"):(b=a.Yn(b,e))?(d=Ol(),g.Vb(d,Ik(b,!0,!1,!1)),b=d):b=Ol("nf");return"string"===typeof b?a.A&&"stopped"===b?
Im:a.w.o(void 0):a.w.o(b)};
Km=function(a){return Ii.getInstance(),"h"!=om(a)&&om(a),!1};
Lm=function(a){var b={};return b.viewability=a.o,b.googleViewability=a.w,b.moatInit=a.B,b.moatViewability=a.C,b.integralAdsViewability=a.A,b.doubleVerifyViewability=a.u,b};
Mm=function(a,b,c){c=void 0===c?{}:c;a=Jm(Hm.getInstance(),b,c,a);return Lm(a)};
Nm=function(a,b){b=void 0===b?!1:b;var c=Hm.getInstance().Yn(a,{});c?Ak(c):b&&(c=Hm.getInstance().tm(null,dj(),!1,a),c.Cc=3,Zk([c]))};
Om=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&&"chrome-untrusted"!==a&&"chrome"!==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};
Bda=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(t){for(var u=k,z=0;64>z;z+=4)u[z/4]=t[z]<<24|t[z+1]<<16|t[z+2]<<8|t[z+3];for(z=16;80>z;z++)t=u[z-3]^u[z-8]^u[z-14]^u[z-16],u[z]=(t<<1|t>>>31)&4294967295;t=e[0];var B=e[1],D=e[2],E=e[3],F=e[4];for(z=0;80>z;z++){if(40>z)if(20>z){var I=E^B&(D^E);var ia=1518500249}else I=B^D^E,ia=1859775393;else 60>z?(I=B&D|E&(B|D),ia=2400959708):(I=B^D^E,ia=3395469782);I=((t<<5|t>>>27)&4294967295)+I+F+ia+u[z]&4294967295;F=E;E=D;D=(B<<30|B>>>2)&4294967295;B=t;t=I}e[0]=e[0]+t&4294967295;e[1]=e[1]+B&4294967295;
e[2]=e[2]+D&4294967295;e[3]=e[3]+E&4294967295;e[4]=e[4]+F&4294967295}
function c(t,u){if("string"===typeof t){t=unescape(encodeURIComponent(t));for(var z=[],B=0,D=t.length;B<D;++B)z.push(t.charCodeAt(B));t=z}u||(u=t.length);z=0;if(0==n)for(;z+64<u;)b(t.slice(z,z+64)),z+=64,p+=64;for(;z<u;)if(f[n++]=t[z++],p++,64==n)for(n=0,b(f);z+64<u;)b(t.slice(z,z+64)),z+=64,p+=64}
function d(){var t=[],u=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var z=63;56<=z;z--)f[z]=u&255,u>>>=8;b(f);for(z=u=0;5>z;z++)for(var B=24;0<=B;B-=8)t[u++]=e[z]>>B&255;return t}
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,qE:function(){for(var t=d(),u="",z=0;z<t.length;z++)u+="0123456789ABCDEF".charAt(Math.floor(t[z]/16))+"0123456789ABCDEF".charAt(t[z]%16);return u}}};
Cda=function(a,b,c){var d=[],e=[];if(1==(g.Na(c)?2:1))return e=[b,a],(0,g.y)(d,function(l){e.push(l)}),Pm(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=g.db(f)?[c,b,a]:[f.join(":"),c,b,a];(0,g.y)(d,function(l){e.push(l)});
a=Pm(e.join(" "));a=[c,a];g.db(k)||a.push(k.join(""));return a.join("_")};
Pm=function(a){var b=Bda();b.update(a);return b.qE().toLowerCase()};
g.Qm=function(){var a=[],b=Om(String(g.v.location.href)),c;(c=g.v.__SAPISID||g.v.__APISID||g.v.__OVERRIDE_SID)?c=!0:(c=new ch(document),c=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID"),c=!!c);if(c&&(c=(b=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:"))?g.v.__SAPISID:g.v.__APISID,c||(c=new ch(document),c=c.get(b?"SAPISID":"APISID")||c.get("__Secure-3PAPISID")),c)){b=b?"SAPISIDHASH":"APISIDHASH";var d=String(g.v.location.href);return d&&c&&b?[b,Cda(Om(d),c,a||
null)].join(" "):null}return null};
g.Rm=function(a,b){this.u={};this.o=[];this.Rh=this.w=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.Rm)for(c=a.te(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Tm=function(a){if(a.w!=a.o.length){for(var b=0,c=0;b<a.o.length;){var d=a.o[b];Sm(a.u,d)&&(a.o[c++]=d);b++}a.o.length=c}if(a.w!=a.o.length){var e={};for(c=b=0;b<a.o.length;)d=a.o[b],Sm(e,d)||(a.o[c++]=d,e[d]=1),b++;a.o.length=c}};
Sm=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Um=function(a,b){this.o=this.G=this.B="";this.A=null;this.C=this.u="";this.F=!1;var c;a instanceof g.Um?(this.F=void 0!==b?b:a.F,g.Vm(this,a.B),this.G=a.G,g.Wm(this,a.o),g.Xm(this,a.A),this.u=a.u,Ym(this,a.w.clone()),this.C=a.C):a&&(c=String(a).match(pd))?(this.F=!!b,g.Vm(this,c[1]||"",!0),this.G=Zm(c[2]||""),g.Wm(this,c[3]||"",!0),g.Xm(this,c[4]),this.u=Zm(c[5]||"",!0),Ym(this,c[6]||"",!0),this.C=Zm(c[7]||"")):(this.F=!!b,this.w=new $m(null,this.F))};
g.Vm=function(a,b,c){a.B=c?Zm(b,!0):b;a.B&&(a.B=a.B.replace(/:$/,""))};
g.Wm=function(a,b,c){a.o=c?Zm(b,!0):b};
g.Xm=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.A=b}else a.A=null};
Ym=function(a,b,c){b instanceof $m?(a.w=b,Dda(a.w,a.F)):(c||(b=an(b,Eda)),a.w=new $m(b,a.F))};
g.bn=function(a){return a instanceof g.Um?a.clone():new g.Um(a,void 0)};
Zm=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
an=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Fda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
Fda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
$m=function(a,b){this.u=this.o=null;this.w=a||null;this.A=!!b};
cn=function(a){a.o||(a.o=new g.Rm,a.u=0,a.w&&td(a.w,function(b,c){a.add(ed(b),c)}))};
en=function(a,b){cn(a);b=dn(a,b);return Sm(a.o.u,b)};
g.fn=function(a,b,c){a.remove(b);0<c.length&&(a.w=null,a.o.set(dn(a,b),g.kb(c)),a.u=a.u+c.length)};
dn=function(a,b){var c=String(b);a.A&&(c=c.toLowerCase());return c};
Dda=function(a,b){b&&!a.A&&(cn(a),a.w=null,a.o.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.fn(this,e,c))},a));
a.A=b};
hn=function(a){if(g.hc(g.hd(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Um(a)}catch(c){return null!=g.$a(gn,function(d){return 0<a.search(d)})}return b.C.match(Gda)?!0:null!=g.$a(gn,function(c){return null!=a.match(c)})};
g.jn=function(a,b){return a.replace(Hda,function(c,d){try{var e=null!==b&&d in b?b[d]:void 0;if(null==e)return c;e=e.toString();if(""==e||!g.hc(g.hd(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
kn=function(a){Qg(this,a,Ida,null)};
ln=function(a){Qg(this,a,null,null)};
Kda=function(a,b){var c=Yg(a,ln,1);0<c.length&&Kg(b,1,c,Jda)};
Jda=function(a,b){var c=Rg(a,1);null!=c&&Gg(b,1,c);c=Rg(a,2);null!=c&&Eg(b,2,c)};
mn=function(a){Qg(this,a,Lda,null)};
nn=function(a){Qg(this,a,null,Mda)};
on=function(a){Qg(this,a,null,null)};
pn=function(a){Qg(this,a,null,null)};
qn=function(a){Qg(this,a,Nda,null)};
sn=function(a){Qg(this,a,null,rn)};
un=function(a){Qg(this,a,null,tn)};
Qda=function(a,b){var c=Wg(a,on,1);null!=c&&Jg(b,1,c,Oda);c=Wg(a,pn,2);null!=c&&Jg(b,2,c,Pda)};
Oda=function(a,b){var c=Rg(a,1);null!=c&&Ig(b,1,c);c=Rg(a,2);null!=c&&Ig(b,2,c);c=Rg(a,3);null!=c&&Hg(b,3,c)};
Pda=function(a,b){var c=Rg(a,1);null!=c&&Ig(b,1,c);c=Rg(a,2);null!=c&&Ig(b,2,c);c=Rg(a,3);null!=c&&Bg(b,3,c);c=Rg(a,4);null!=c&&Hg(b,4,c)};
Tda=function(a,b){var c=Yg(a,sn,1);0<c.length&&Kg(b,1,c,Rda);c=Wg(a,un,2);null!=c&&Jg(b,2,c,Sda)};
Rda=function(a,b){var c=Rg(a,1);null!=c&&Ig(b,1,c);c=Rg(a,2);null!=c&&Bg(b,2,c);c=Rg(a,3);null!=c&&Hg(b,3,c)};
Sda=function(a,b){var c=Rg(a,1);null!=c&&Eg(b,1,c);c=Rg(a,2);null!=c&&Gg(b,2,c);c=Wg(a,kn,3);null!=c&&Jg(b,3,c,Kda)};
vn=function(){this.u=[];this.o=-1};
Uda=function(a){-1==a.o&&(a.o=(0,g.zi)(a.u,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.o};
g.wn=function(a,b,c){g.A.call(this);this.o=null;this.A=!1;this.C=a;this.B=c;this.u=b||window;this.w=(0,g.x)(this.dF,this)};
g.xn=function(a){a.isActive()||a.start()};
yn=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
zn=function(a){a=a.u;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.H=function(a,b,c){g.A.call(this);this.o=a;this.Bd=b||0;this.u=c;this.w=(0,g.x)(this.zx,this)};
g.An=function(a,b){a.isActive()||a.start(b)};
g.Bn=function(a){a.stop();a.zx()};
g.Cn=function(a){a.isActive()&&g.Bn(a)};
Xda=function(a){var b=Vda++,c={rG:{id:b,mg:a.measure,context:void 0},EJ:{id:b,mg:a.zT,context:void 0},state:{},args:void 0,so:!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.so||(c.so=!0,Dn[En].push(c));Fn||(Fn=!0,window.requestAnimationFrame(Wda))}};
Wda=function(){Fn=!1;var a=Dn[En],b=a.length;En=(En+1)%2;for(var c,d=0;d<b;++d){c=a[d];var e=c.rG;c.so=!1;e.mg&&e.mg.apply(e.context,c.args)}for(d=0;d<b;++d)c=a[d],e=c.EJ,c.so=!1,e.mg&&e.mg.apply(e.context,c.args),c.state={};a.length=0};
Gn=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
Hn=function(a){return a.classList?a.classList:Gn(a).match(/\S+/g)||[]};
In=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Jn=function(a,b){return a.classList?a.classList.contains(b):g.cb(Hn(a),b)};
g.J=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Jn(a,b)){var c=Gn(a);In(a,c+(0<c.length?" "+b:b))}};
g.Kn=function(a,b){if(a.classList)(0,g.y)(b,function(f){g.J(a,f)});
else{var c={};(0,g.y)(Hn(a),function(f){c[f]=!0});
(0,g.y)(b,function(f){c[f]=!0});
var d="",e;for(e in c)d+=0<d.length?" "+e:e;In(a,d)}};
g.Ln=function(a,b){a.classList?a.classList.remove(b):g.Jn(a,b)&&In(a,(0,g.xe)(Hn(a),function(c){return c!=b}).join(" "))};
g.Mn=function(a,b){a.classList?(0,g.y)(b,function(c){g.Ln(a,c)}):In(a,(0,g.xe)(Hn(a),function(c){return!g.cb(b,c)}).join(" "))};
g.K=function(a,b,c){c?g.J(a,b):g.Ln(a,b)};
g.Nn=function(){g.kf.call(this);this.o=0;this.endTime=this.startTime=null};
Yda=function(a,b){Array.isArray(b)||(b=[b]);var c=(0,g.Fc)(b,function(d){return"string"===typeof d?d:d.property+" "+d.duration+"s "+d.timing+" "+d.delay+"s"});
g.xh(a,"transition",c.join(","))};
On=function(a,b,c,d,e){g.Nn.call(this);this.w=a;this.C=b;this.G=c;this.A=d;this.F=Array.isArray(e)?e:[e]};
Pn=function(a,b,c,d){return new On(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
$da=function(a){a=qc(a);if(""==a)return null;var b=String(a.substr(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in Zda))return null}return a};
Qn=function(a){var b=g.v.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Rn=function(a,b,c,d){if(a)return a.apply(b,d);if(g.ke&&10>document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)};
eea=function(a){if(!a)return Hc;var b=document.createElement("div").style,c=aea(a);(0,g.y)(c,function(d){var e=g.me&&d in bea?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");fc(e,"--")||fc(e,"var")||(d=Rn(cea,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[d])||"",d=$da(d),null!=d&&Rn(dea,b,b.setProperty?"setProperty":"setAttribute",[e,d]))});
return Kaa(b.cssText||"")};
aea=function(a){g.Oa(a)?a=g.kb(a):(a=g.Jb(a),g.gb(a,"cssText"));return a};
g.Tn=function(a){var b,c=b=0,d=!1;a=a.split(fea);for(var e=0;e<a.length;e++){var f=a[e];g.Sn.test(f)?(b++,c++):gea.test(f)?d=!0:hea.test(f)?c++:iea.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.Un=function(a,b,c,d,e,f,k,l){this.o=a;this.B=b;this.w=c;this.C=d;this.A=e;this.F=f;this.u=k;this.G=l};
g.Vn=function(a,b){if(0==b)return a.o;if(1==b)return a.u;var c=g.Rd(a.o,a.w,b),d=g.Rd(a.w,a.A,b),e=g.Rd(a.A,a.u,b);c=g.Rd(c,d,b);d=g.Rd(d,e,b);return g.Rd(c,d,b)};
g.Wn=function(a,b,c){this.A=a;this.B=b;this.o=this.w=a;this.C=c||0};
g.Xn=function(a){a.o=Math.min(a.B,2*a.o);a.w=Math.min(a.B,a.o+(a.C?Math.round(a.C*(Math.random()-.5)*2*a.o):0));a.u++};
Yn=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Zn=function(a){return(a=a.exec(g.Lc))?a[1]:""};
$n=function(a){return 0<=g.sc(jea,a)};
g.ao=function(a){g.A.call(this);this.B=1;this.w=[];this.A=0;this.o=[];this.u={};this.C=!!a};
kea=function(a,b,c){g.xf(function(){a.apply(b,c)})};
g.bo=function(a){this.o=a};
co=function(a){this.o=a};
eo=function(a){this.data=a};
fo=function(a){return void 0===a||a instanceof eo?a:new eo(a)};
go=function(a){this.o=a};
g.ho=function(a){var b=a.creation;a=a.expiration;return!!a&&a<(0,g.G)()||!!b&&b>(0,g.G)()};
g.io=function(a){this.o=a};
lea=function(){};
jo=function(){};
ko=function(a){this.o=a};
lo=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.o=a};
mo=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.o=a};
oo=function(a,b){this.u=a;this.o=null;if(g.ke&&!g.Od(9)){no||(no=new g.Rm);this.o=no.get(a);this.o||(b?this.o=document.getElementById(b):(this.o=document.createElement("userdata"),this.o.addBehavior("#default#userData"),document.body.appendChild(this.o)),no.set(a,this.o));try{this.o.load(this.u)}catch(c){this.o=null}}};
po=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return mea[b]})};
qo=function(a){try{a.o.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
ro=function(a,b){this.u=a;this.o=b+"::"};
g.so=function(a){var b=new lo;return b.isAvailable()?a?new ro(b,a):b:null};
to=function(a,b){this.o=a;this.u=b};
uo=function(a){this.o=[];if(a)a:{if(a instanceof uo){var b=a.te();a=a.Gd();if(0>=this.o.length){for(var c=this.o,d=0;d<b.length;d++)c.push(new to(b[d],a[d]));break a}}else b=g.Jb(a),a=g.Ib(a);for(d=0;d<b.length;d++)g.vo(this,b[d],a[d])}};
g.vo=function(a,b,c){var d=a.o;d.push(new to(b,c));b=d.length-1;a=a.o;for(c=a[b];0<b;)if(d=b-1>>1,a[d].o>c.o)a[b]=a[d],b=d;else break;a[b]=c};
g.wo=function(){uo.call(this)};
xo=function(){};
yo=function(a){Qg(this,a,nea,null)};
zo=function(a){Qg(this,a,null,null)};
oea=function(a,b){for(;qg(b)&&4!=b.u;)switch(b.w){case 1:var c=tg(b);Tg(a,1,c);break;case 2:c=tg(b);Tg(a,2,c);break;case 3:c=tg(b);Tg(a,3,c);break;case 4:c=tg(b);Tg(a,4,c);break;case 5:c=og(b.o);Tg(a,5,c);break;default:rg(b)}return a};
pea=function(a){a=a.split("");var b=[1802965553,-503046481,448243304,a,1692354953,397846027,975193137,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(-d).reverse().forEach(function(e){c.unshift(e)})},
-1233295729,499050464,983944519,1507989473,549466587,null,328375912,113045303,-1253674768,-720707123,544456240,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(0,1,c.splice(d,1,c[0])[0])},
function(c,d){c.push(d)},
a,function(c){c.reverse()},
-2015376587,391481561,-635988325,1273141621,function(c,d){for(var e=64,f=[];++e-f.length-32;){switch(e){case 58:e-=14;case 91:case 92:case 93:continue;case 123:e=47;case 94:case 95:case 96:continue;case 46:e=95}f.push(String.fromCharCode(e))}c.forEach(function(k,l,m){this.push(m[l]=f[(f.indexOf(k)-f.indexOf(this[l])+l-32+e--)%f.length])},d.split(""))},
713886167,"finally",function(c,d){d=(d%c.length+c.length)%c.length;var e=c[0];c[0]=c[d];c[d]=e},
function(c){for(var d=c.length;d;)c.push(c.splice(--d,1)[0])},
-537211543,-1035169046,1516560434,1743264979,-1253674768,function(c,d){for(var e=64,f=[];++e-f.length-32;)switch(e){case 58:e=96;continue;case 91:e=44;break;case 65:e=47;continue;case 46:e=153;case 123:e-=58;default:f.push(String.fromCharCode(e))}c.forEach(function(k,l,m){this.push(m[l]=f[(f.indexOf(k)-f.indexOf(this[l])+l-32+e--)%f.length])},d.split(""))},
null,-537211543,null,-722273537,"llO8U9",a,959331794,1160519039,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(-d).reverse().forEach(function(e){c.unshift(e)})},
-305560972,function(c,d){for(d=(d%c.length+c.length)%c.length;d--;)c.unshift(c.pop())},
-1652456343,function(c,d){d=(d%c.length+c.length)%c.length;var e=c[0];c[0]=c[d];c[d]=e},
1108668045];b[13]=b;b[38]=b;b[40]=b;b[46](b[21],b[35]);b[22](b[3]);b[50](b[43],b[47]);b[48](b[13],b[41]);b[11](b[1],b[16]);b[46](b[12],b[31]);b[20](b[17],b[13]);b[22](b[47],b[43]);b[22](b[17],b[36]);b[22](b[47],b[10]);b[4](b[39],b[35]);b[20](b[39],b[0]);b[3](b[28],b[29]);b[19](b[28],b[25]);b[21](b[38],b[48]);b[3](b[20],b[33]);b[46](b[0],b[31]);b[46](b[36],b[22]);b[31](b[0],b[30]);b[43](b[33],b[41]);b[44](b[33]);b[43](b[51],b[18]);b[19](b[33],b[9]);b[50](b[3],b[42]);b[19](b[15],b[5]);b[44](b[33]);
b[6](b[51],b[20]);b[20](b[29],b[50]);b[20](b[29],b[38]);b[33](b[39],b[18]);b[48](b[23],b[10]);b[42](b[41]);b[16](b[33],b[31]);b[16](b[51],b[49]);b[44](b[36],b[38]);b[41](b[11],b[24]);b[30](b[11],b[3]);b[29](b[11],b[12]);b[29](b[50],b[45]);return a.join("")};
Bo=function(a){var b=arguments,c=Ao;1<b.length?c[b[0]]=b[1]:1===b.length&&Object.assign(c,b[0])};
g.L=function(a,b){return a in Ao?Ao[a]:b};
Co=function(a){var b=Ao.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.Eo=function(a){a=Do(a);return"string"===typeof a&&"false"===a?!1:!!a};
Fo=function(a,b){var c=Do(a);return void 0===c&&void 0!==b?b:Number(c||0)};
Do=function(a){var b=g.L("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.L("EXPERIMENT_FLAGS",{})[a]};
Go=function(){var a=[],b=g.L("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.L("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
Io=function(a,b,c){a&&(a.dataset?a.dataset[Ho(b)]=String(c):a.setAttribute("data-"+b,c))};
Jo=function(a){return a?a.dataset?a.dataset[Ho("loaded")]:a.getAttribute("data-loaded"):null};
Ho=function(a){return Ko[a]||(Ko[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
qea=function(a){Lo.forEach(function(b){return b(a)})};
Mo=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.M(b),qea(b)}}:a};
g.M=function(a,b,c,d){var e=g.w("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.L("ERRORS",[]),e.push([a,"ERROR",b,c,d]),Bo("ERRORS",e))};
g.No=function(a){var b=g.w("yt.logging.errors.log");b?b(a,"WARNING",void 0,void 0,void 0):(b=g.L("ERRORS",[]),b.push([a,"WARNING",void 0,void 0,void 0]),Bo("ERRORS",b))};
g.Oo=function(a,b){g.Pa(a)&&(a=Mo(a));return window.setTimeout(a,b)};
Po=function(a,b){g.Pa(a)&&(a=Mo(a));return window.setInterval(a,b)};
g.Qo=function(a){window.clearTimeout(a)};
g.Vo=function(a,b,c){var d=g.Ro();if(d){var e=d.subscribe(a,function(){var f=arguments;var k=function(){So[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.To[a]?k():g.Oo(k,0)}catch(l){g.M(l)}},c);
So[e]=!0;Uo[a]||(Uo[a]=[]);Uo[a].push(e);return e}return 0};
rea=function(a){var b=g.Vo("watchAdsInit",function(c){a.apply(void 0,arguments);g.Wo(b)},void 0);
return b};
g.Wo=function(a){var b=g.Ro();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),(0,g.y)(a,function(c){b.unsubscribeByKey(c);delete So[c]}))};
g.Xo=function(a,b){var c=g.Ro();return c?c.publish.apply(c,arguments):!1};
Zo=function(a){var b=g.Ro();if(b)if(b.clear(a),a)Yo(a);else for(var c in Uo)Yo(c)};
g.Ro=function(){return g.w("ytPubsubPubsubInstance")};
Yo=function(a){Uo[a]&&(a=Uo[a],(0,g.y)(a,function(b){So[b]&&delete So[b]}),a.length=0)};
g.$o=function(a,b,c){c=void 0===c?null:c;if(window.spf&&spf.script){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(sea,""),c=c.replace(tea,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else uea(a,b,c)};
uea=function(a,b,c){c=void 0===c?null:c;var d=ap(a),e=document.getElementById(d),f=e&&Jo(e),k=e&&!f;f?b&&b():(b&&(f=g.Vo(d,b),b=""+g.Sa(b),bp[b]=f),k||(e=vea(a,d,function(){Jo(e)||(Io(e,"loaded","true"),g.Xo(d),g.Oo(g.Ta(Zo,d),0))},c)))};
vea=function(a,b,c,d){d=void 0===d?null:d;var e=g.re("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);bd(e,lh(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
ap=function(a){var b=document.createElement("a");g.$c(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+id(a)};
jp=function(){g.Qo(cp);g.Qo(dp);dp=0;ep&&ep.isReady()?(fp(gp),"log_event"in hp&&fp(Object.entries(hp.log_event)),gp.clear(),delete hp.log_event):ip()};
ip=function(){g.Eo("web_gel_timeout_cap")&&!dp&&(dp=g.Oo(jp,6E4));g.Qo(cp);var a=g.L("LOGGING_BATCH_TIMEOUT",Fo("web_gel_debounce_ms",1E4));g.Eo("shorten_initial_gel_batch_timeout")&&kp&&(a=wea);cp=g.Oo(jp,a)};
fp=function(a){var b=ep,c=Math.round((0,g.N)());a=g.q(a);for(var d=a.next();!d.done;d=a.next()){var e=g.q(d.value);d=e.next().value;var f=e.next().value;e=g.Tb(g.lp(b));e.events=f;(f=mp[d])&&xea(e,d,f);delete mp[d];yea(e,c);g.np(b,"log_event",e,{retry:!0,onSuccess:function(){op=Math.round((0,g.N)()-c)}});
kp=!1}};
yea=function(a,b){a.requestTimeMs=String(b);g.Eo("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);var c=g.L("EVENT_ID",void 0);if(c){var d=g.L("BATCH_CLIENT_COUNTER",void 0)||0;!d&&g.Eo("web_client_counter_random_seed")&&(d=Math.floor(Math.random()*pp/2));d++;d>pp&&(d=1);Bo("BATCH_CLIENT_COUNTER",d);c={serializedEventId:c,clientCounter:String(d)};a.serializedClientEventId=c;qp&&op&&g.Eo("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:qp,roundtripMs:String(op)});qp=
c;op=0}};
xea=function(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]};
Cp=function(){if(g.Eo("use_typescript_transport"))jp();else if(g.Qo(rp),g.Qo(sp),sp=0,!g.Pb(tp)){for(var a in tp){var b=up[a];if(b&&b.isReady()){var c=void 0,d=a,e=zea[d],f=Math.round((0,g.N)());for(c in tp[d]){var k=g.Tb(g.lp(b));k[e]=vp(d,c);var l=wp[c];if(l)a:{var m=k,n=c;if(l.videoId)var p="VIDEO";else if(l.playlistId)p="PLAYLIST";else break a;m.credentialTransferTokenTargetId=l;m.context=m.context||{};m.context.user=m.context.user||{};m.context.user.credentialTransferTokens=[{token:n,scope:p}]}delete wp[c];
l=k;l.requestTimeMs=f;g.Eo("unsplit_gel_payloads_in_logs")&&(l.unsplitGelPayloadsInLogs=!0);if(p=g.L("EVENT_ID",void 0))m=g.L("BATCH_CLIENT_COUNTER",void 0)||0,!m&&g.Eo("web_client_counter_random_seed")&&(m=Math.floor(Math.random()*xp/2)),m++,m>xp&&(m=1),Bo("BATCH_CLIENT_COUNTER",m),p={serializedEventId:p,clientCounter:m},l.serializedClientEventId=p,yp&&zp&&g.Eo("log_gel_rtt_web")&&(l.previousBatchInfo={serializedClientEventId:yp,roundtripMs:zp}),yp=p,zp=0;g.np(b,d,k,{retry:Aea.has(d),onSuccess:g.Ta(Bea,
(0,g.N)())})}delete tp[a];Ap=!1}}g.Pb(tp)||Bp()}};
Bp=function(){g.Eo("web_gel_timeout_cap")&&!sp&&(sp=g.Oo(Cp,6E4));g.Qo(rp);var a=g.L("LOGGING_BATCH_TIMEOUT",Fo("web_gel_debounce_ms",1E4));g.Eo("shorten_initial_gel_batch_timeout")&&Ap&&(a=Cea);rp=g.Oo(Cp,a)};
vp=function(a,b){b=void 0===b?"":b;tp[a]=tp[a]||{};tp[a][b]=tp[a][b]||[];return tp[a][b]};
Bea=function(a){zp=Math.round((0,g.N)()-a)};
Ep=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Dp+"VisibilityState";if(b in a)return a[b]};
Fp=function(a,b){var c;pj(a,function(d){c=b[d];return!!c});
return c};
Gp=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{if(a=a||window.event){this.event=a;for(var b in a)b in Dea||(this[b]=a[b]);this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;if(d)try{d=d.nodeName?
d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;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.o=a.pageX;this.u=a.pageY}}catch(e){}};
Hp=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.o=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.u=a.clientY+b}};
Eea=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 Nb(Ip,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,k=g.Qa(e[4])&&g.Qa(d)&&g.Rb(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||k)})};
g.Lp=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Eea(a,b,c,d);if(e)return e;e=++Jp.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var k=f?function(l){l=new Gp(l);if(!Fe(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Gp(l);
l.currentTarget=a;return c.call(a,l)};
k=Mo(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Kp()||"boolean"===typeof d?a.addEventListener(b,k,d):a.addEventListener(b,k,!!d.capture)):a.attachEvent("on"+b,k);Ip[e]=[a,b,c,k,d];return e};
Fea=function(a,b,c,d){var e=a||document;return g.Lp(e,b,function(f){var k=Fe(f.target,function(l){return l===e||d(l)},!0);
k&&k!==e&&!k.disabled&&(f.currentTarget=k,c.call(k,f))})};
g.Mp=function(a){a&&("string"==typeof a&&(a=[a]),(0,g.y)(a,function(b){if(b in Ip){var c=Ip[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Kp()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Ip[b]}}))};
g.Np=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
Op=function(a){a=a||window.event;var b;a.composedPath&&g.Pa(a.composedPath)?b=a.composedPath():b=a.path;return b&&b.length?b[0]:g.Np(a)};
Pp=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};
Qp=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&("number"!==typeof b&&(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),"number"!==typeof c&&(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));return new g.Td(b,c)};
g.Rp=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.Sp=function(a){a=a||window.event;return!1===a.returnValue||a.Yx&&a.Yx()};
g.Tp=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
g.Up=function(a,b,c,d){return Fea(a,b,c,function(e){return g.Jn(e,d)})};
g.Vp=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.Lp(a,b,function(){g.Mp(e);c.apply(a,arguments)},d)};
Wp=function(a){for(var b in Ip)Ip[b][0]==a&&g.Mp(b)};
Xp=function(a){this.I=a;this.o=null;this.B=0;this.C=null;this.A=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.w=0;this.G=g.Lp(window,"mousemove",(0,g.x)(this.L,this));this.P=Po((0,g.x)(this.F,this),25)};
Gea=function(){};
Zp=function(a,b){return Yp(a,0,b)};
g.$p=function(a,b){return Yp(a,1,b)};
aq=function(){};
g.bq=function(){return!!g.w("yt.scheduler.instance")};
Yp=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.Oo(a,c||0)};
g.cq=function(a){if(!isNaN(a)){var b=g.w("yt.scheduler.instance.cancelJob");b?b(a):g.Qo(a)}};
dq=function(a){var b=g.w("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
gq=function(){var a={},b=void 0===a.QF?!0:a.QF;a=void 0===a.SN?!1:a.SN;if(null==g.w("_lact",window)){var c=parseInt(g.L("LACT"),10);c=isFinite(c)?(0,g.G)()-Math.max(c,0):-1;g.Ia("_lact",c,window);g.Ia("_fact",c,window);-1==c&&eq();g.Lp(document,"keydown",eq);g.Lp(document,"keyup",eq);g.Lp(document,"mousedown",eq);g.Lp(document,"mouseup",eq);b&&(a?g.Lp(window,"touchmove",function(){fq("touchmove",200)},{passive:!0}):(g.Lp(window,"resize",function(){fq("resize",200)}),g.Lp(window,"scroll",function(){fq("scroll",
200)})));
new Xp(function(){fq("mouse",100)});
g.Lp(document,"touchstart",eq,{passive:!0});g.Lp(document,"touchend",eq,{passive:!0})}};
fq=function(a,b){hq[a]||(hq[a]=!0,g.$p(function(){eq();hq[a]=!1},b))};
eq=function(){null==g.w("_lact",window)&&(gq(),g.w("_lact",window));var a=(0,g.G)();g.Ia("_lact",a,window);-1==g.w("_fact",window)&&g.Ia("_fact",a,window);(a=g.w("ytglobal.ytUtilActivityCallback_"))&&a()};
iq=function(){var a=g.w("_lact",window),b;null==a?b=-1:b=Math.max((0,g.G)()-a,0);return b};
g.mq=function(a,b,c,d){d=void 0===d?{}:d;var e={};e.eventTimeMs=Math.round(d.timestamp||(0,g.N)());e[a]=b;e.context={lastActivityMs:String(d.timestamp?-1:iq())};g.Eo("log_sequence_info_on_gel_web")&&d.Wi&&(a=e.context,b=d.Wi,jq[b]=b in jq?jq[b]+1:0,a.sequence={index:jq[b],groupKey:b},d.wE&&delete jq[d.Wi]);d=d.Wk;g.Eo("use_typescript_transport")?(a="",d&&(a={},d.videoId?a.videoId=d.videoId:d.playlistId&&(a.playlistId=d.playlistId),mp[d.token]=a,a=d.token),d=gp.get(a)||[],gp.set(a,d),d.push(e),c&&
(ep=new c),c=Fo("web_logging_max_batch")||100,e=(0,g.N)(),d.length>=c?jp():10<=e-kq&&(ip(),kq=e)):(d?(a={},d.videoId?a.videoId=d.videoId:d.playlistId&&(a.playlistId=d.playlistId),wp[d.token]=a,d=vp("log_event",d.token)):d=vp("log_event"),d.push(e),c&&(up.log_event=new c),c=Fo("web_logging_max_batch")||100,e=(0,g.N)(),d.length>=c?Cp():10<=e-lq&&(Bp(),lq=e))};
nq=function(){return g.w("yt.ads.biscotti.lastId_")||""};
oq=function(a){g.Ia("yt.ads.biscotti.lastId_",a,void 0)};
pq=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=ed(e[0]||""),k=ed(e[1]||"");f in b?g.Na(b[f])?lb(b[f],k):b[f]=[b[f],k]:b[f]=k}catch(m){if("q"!=e[0]){var l=Error("Error decoding URL component");l.params={key:e[0],value:e[1]};g.M(l)}}}return b};
qq=function(a){var b=[];g.Cb(a,function(c,d){var e=dd(d),f;g.Na(c)?f=c:f=[c];(0,g.y)(f,function(k){""==k?b.push(e):b.push(e+"="+dd(k))})});
return b.join("&")};
g.rq=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return pq(a)};
g.sq=function(a){a=a.split(",");return a=a.map(function(b){return g.rq(b)})};
g.tq=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),g.rq(1<a.length?a[1]:a[0])):{}};
g.vq=function(a,b){return uq(a,b||{},!0)};
wq=function(a,b){return uq(a,b||{},!1)};
uq=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.rq(e[1]||"");for(var f in b)if(c||!Lb(e,f))e[f]=b[f];return g.Bd(a,e)+d};
xq=function(a){if(!b)var b=window.location.href;var c=g.qd(1,a),d=g.rd(a);c&&d?(a=a.match(pd),b=b.match(pd),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.rd(b)==d&&(Number(g.qd(4,b))||null)==(Number(g.qd(4,a))||null):!0;return a};
yq=function(a){a||(a=document.location.href);a=g.qd(1,a);return null!==a&&"https"==a};
zq=function(a){a=g.rd(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Cq=function(a){var b=Aq;a=void 0===a?nq():a;b=Object.assign(Bq(b),Hea(b));b.ca_type="image";a&&(b.bid=a);return b};
Bq=function(a){var b={};b.dt=Iea;b.flash="0";a:{try{var c=a.o.top.location.href}catch(f){a=2;break a}a=c?c===a.u.location.href?0:1:2}b=(b.frm=a,b);b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?mi:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!mi.navigator&&"unknown"!==typeof mi.navigator.javaEnabled&&!!mi.navigator.javaEnabled&&mi.navigator.javaEnabled();mi.screen&&(b.u_h=mi.screen.height,b.u_w=mi.screen.width,b.u_ah=mi.screen.availHeight,b.u_aw=mi.screen.availWidth,b.u_cd=
mi.screen.colorDepth);mi.navigator&&mi.navigator.plugins&&(b.u_nplug=mi.navigator.plugins.length);mi.navigator&&mi.navigator.mimeTypes&&(b.u_nmime=mi.navigator.mimeTypes.length);return b};
Hea=function(a){var b=a.o;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=Yh(!1,a.o.top);d={};e=new vn;g.v.SVGElement&&g.v.document.createElementNS&&e.set(0);f=Aba();f["allow-top-navigation-by-user-activation"]&&e.set(1);f["allow-popups-to-escape-sandbox"]&&e.set(2);g.v.crypto&&g.v.crypto.subtle&&
e.set(3);g.v.TextDecoder&&g.v.TextEncoder&&e.set(4);e=Uda(e);return d.bc=e,d.bih=c.height,d.biw=c.width,d.brdim=b.join(),d.vis=ni(a.u),d.wgl=!!mi.WebGLRenderingContext,d};
Jea=function(){if(!Dq)return null;var a=Dq();return"open"in a?a:null};
g.Fq=function(a){switch(Eq(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Eq=function(a){return a&&"status"in a?a.status:-1};
Kea=function(a,b){b=void 0===b?{}:b;var c=xq(a),d=g.Eo("web_ajax_ignore_global_headers_if_set"),e;for(e in Gq){var f=g.L(Gq[e]);!f||!c&&!Hq(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||Hq(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());(c||Hq(a,"X-YouTube-Time-Zone"))&&(d="undefined"!=typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone:null)&&(b["X-YouTube-Time-Zone"]=d);if(c||Hq(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=qq(Cq(void 0));
return b};
Iq=function(a,b){var c=g.rd(a),d=od(g.qd(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=g.rq(b),f={};(0,g.y)(Lea,function(k){e[k]&&(f[k]=e[k])});
return wq(a,f)};
Hq=function(a,b){var c=g.L("CORS_HEADER_WHITELIST")||{},d=g.rd(a);return d?(c=c[d])?g.cb(c,b):!1:!0};
Mea=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=Jq(a,b);var d=Kq(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.Qo(f);var l=k.ok,m=function(n){n=n||{};var p=b.context||g.v;l?b.onSuccess&&b.onSuccess.call(p,n,k):b.onError&&b.onError.call(p,n,k);b.Fc&&b.Fc.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.sA&&0<b.timeout&&(f=g.Oo(function(){e||(e=!0,g.Qo(f),b.sA.call(b.context||g.v))},b.timeout))}else g.Lq(a,b)};
g.Lq=function(a,b){var c=b.format||"JSON";a=Jq(a,b);var d=Kq(a,b),e=!1,f,k=Mq(a,function(l){if(!e){e=!0;f&&g.Qo(f);var m=g.Fq(l),n=null,p=400<=l.status&&500>l.status,t=500<=l.status&&600>l.status;if(m||p||t)n=Nea(c,l,b.mT);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.v;m?b.onSuccess&&b.onSuccess.call(p,l,n):b.onError&&b.onError.call(p,l,n);b.Fc&&b.Fc.call(p,l,n)}},b.method,d,b.headers,b.responseType,
b.withCredentials);
b.Td&&0<b.timeout&&(f=g.Oo(function(){e||(e=!0,k.abort(),g.Qo(f),b.Td.call(b.context||g.v,k))},b.timeout));
return k};
Jq=function(a,b){b.pT&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.L("XSRF_FIELD_NAME",void 0),d=b.Zd;d&&(d[c]&&delete d[c],a=g.vq(a,d));return a};
Kq=function(a,b){var c=g.L("XSRF_FIELD_NAME",void 0),d=g.L("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.rb,k=g.L("XSRF_FIELD_NAME",void 0),l;b.headers&&(l=b.headers["Content-Type"]);b.zr||g.rd(a)&&!b.withCredentials&&g.rd(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.rb&&b.rb[k]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=g.rq(e),g.Vb(e,f),e=b.nB&&"JSON"==b.nB?JSON.stringify(e):g.zd(e));f=e||f&&!g.Pb(f);!Nq&&f&&"POST"!=b.method&&(Nq=!0,g.M(Error("AJAX request with postData should use POST")));
return e};
Nea=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)?Oea(b):null)d={},(0,g.y)(b.getElementsByTagName("*"),function(e){d[e.tagName]=Pea(e)})}c&&Oq(d);
return d};
Oq=function(a){if(g.Qa(a))for(var b in a)"html_content"==b||gc(b,"_html")?a[b]=g.Yc(g.ac("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Oq(a[b])};
Oea=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
Pea=function(a){var b="";(0,g.y)(a.childNodes,function(c){b+=c.nodeValue});
return b};
g.Pq=function(a,b){b.method="POST";b.rb||(b.rb={});g.Lq(a,b)};
Mq=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Mo(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=Jea();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.Eo("debug_forward_web_query_parameters")&&(a=Iq(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=Kea(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};
Qea=function(){for(var a={},b=g.q(Object.entries(g.rq(g.L("DEVICE","")))),c=b.next();!c.done;c=b.next()){var d=g.q(c.value);c=d.next().value;d=d.next().value;"cbrand"===c?a.deviceMake=d:"cmodel"===c?a.deviceModel=d:"cbr"===c?a.browserName=d:"cbrver"===c?a.browserVersion=d:"cos"===c?a.osName=d:"cosver"===c?a.osVersion=d:"cplatform"===c&&(a.platform=d)}return a};
Qq=function(){return"INNERTUBE_API_KEY"in Ao&&"INNERTUBE_API_VERSION"in Ao};
Rq=function(){return{innertubeApiKey:g.L("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.L("INNERTUBE_API_VERSION",void 0),Sx:g.L("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Hj:g.L("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Cl:g.L("INNERTUBE_CONTEXT_HL",void 0),Bl:g.L("INNERTUBE_CONTEXT_GL",void 0),mo:g.L("INNERTUBE_HOST_OVERRIDE",void 0)||"",Ux:!!g.L("INNERTUBE_USE_THIRD_PARTY_AUTH",!1)}};
Rea=function(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||g.L("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.Yv||g.L("AUTHORIZATION"))||(a?b="Bearer "+g.w("gapi.auth.getToken")().kT:b=g.Qm());b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.L("SESSION_INDEX",0),g.Eo("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.L("DELEGATED_SESSION_ID")));return d};
g.Tq=function(a,b,c,d,e){Sq.set(""+a,b,{sy:c,path:"/",domain:void 0===d?"youtube.com":d,pO:void 0===e?!1:e})};
Uq=function(a){return Sq.get(""+a,void 0)};
g.Vq=function(a,b,c){Sq.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
Wq=function(){var a;(a=g.so("yt.innertube"))||(a=new oo("yt.innertube"),a=a.isAvailable()?a:null);this.o=a?new go(a):null;this.u=document.domain||window.location.hostname};
g.Xq=function(a){this.o=null;a?this.o=a:Qq()&&(this.o=Rq())};
g.lp=function(a){a=a.o||Rq();a={client:{hl:a.Cl,gl:a.Bl,clientName:a.Hj,clientVersion:a.innertubeContextClientVersion,configInfo:a.Sx}};var b=window.devicePixelRatio;b&&1!=b&&(a.client.screenDensityFloat=String(b));b=g.L("EXPERIMENTS_TOKEN","");""!==b&&(a.client.experimentsToken=b);b=Go();0<b.length&&(a.request={internalExperimentFlags:b});g.L("DELEGATED_SESSION_ID")&&!g.Eo("pageid_as_header_web")&&(a.user={onBehalfOfUser:g.L("DELEGATED_SESSION_ID")});g.Eo("enable_device_forwarding_from_xhr_client")&&
(a.client=Object.assign(a.client,Qea()));return{context:a}};
g.np=function(a,b,c,d){!g.L("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&g.No(Error("Missing VISITOR_DATA when sending innertube request."));c={headers:{"Content-Type":"application/json"},method:"POST",rb:c,nB:"JSON",Td:function(){d.Td()},
sA:d.Td,onSuccess:function(k,l){if(d.onSuccess)d.onSuccess(l)},
CT:function(k){if(d.onSuccess)d.onSuccess(k)},
onError:function(k,l){if(d.onError)d.onError(l)},
BT:function(k){if(d.onError)d.onError(k)},
timeout:d.timeout,withCredentials:!0};var e="",f=a.o.mo;f&&(e=f);f=Rea(a.o.Ux||!1,e,d);Object.assign(c.headers,f);c.headers.Authorization&&!e&&(c.headers["x-origin"]=window.location.origin);a=g.vq(""+e+("/youtubei/"+a.o.innertubeApiVersion+"/"+b),{alt:"json",key:a.o.innertubeApiKey});try{g.Eo("use_fetch_for_op_xhr")?Mea(a,c):g.Pq(a,c)}catch(k){if("InvalidAccessError"==k)g.No(Error("An extension is blocking network request."));else throw k;}};
g.Yq=function(a,b,c){c=void 0===c?{}:c;var d=g.Xq;g.L("ytLoggingEventsDefaultDisabled",!1)&&g.Xq==g.Xq&&(d=null);g.mq(a,b,d,c)};
Zq=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=Error.call(this,a);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.args=[].concat(g.ea(c))};
Sea=function(a){g.$q(a)};
g.ar=function(a){g.$q(a,"WARNING")};
g.$q=function(a,b,c,d,e){e=void 0===e?{}:e;e.name=c||g.L("INNERTUBE_CONTEXT_CLIENT_NAME",1);e.version=d||g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);c=e||{};b=void 0===b?"ERROR":b;b=void 0===b?"ERROR":b;d=window&&window.yterr||!1;if(a&&d&&!(5<=br)&&(g.Eo("console_log_js_exceptions")&&(d=[],d.push("Name: "+a.name),d.push("Message: "+a.message),a.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(a.params)),d.push("File name: "+a.fileName),d.push("Stacktrace: "+a.stack),window.console.log(d.join("\n"),
a)),0!==a.o)){d=a.u;e=a.columnNumber;if(a.args&&a.args.length)for(var f=0,k=0;k<a.args.length;k++){var l=a.args[k],m="params."+k;f+=m.length;if(l)if(Array.isArray(l))for(var n=c,p=0;p<l.length&&!(l[p]&&(f+=cr(p,l[p],m,n),500<f));p++);else if("object"===typeof l)for(n in n=void 0,p=c,l){if(l[n]&&(f+=cr(n,l[n],m,p),500<f))break}else c[m]=String(JSON.stringify(l)).substring(0,500),f+=c[m].length;else c[m]=String(JSON.stringify(l)).substring(0,500),f+=c[m].length;if(500<=f)break}else if(a.hasOwnProperty("params"))if(l=
a.params,"object"===typeof a.params)for(k in m=0,l){if(l[k]&&(f="params."+k,n=String(JSON.stringify(l[k])).substr(0,500),c[f]=n,m+=f.length+n.length,500<m))break}else c.params=String(JSON.stringify(l)).substr(0,500);a=Yaa(a);(d=d||a.stack)||(d="Not available");l={stackTrace:d};a.fileName&&(l.filename=a.fileName);k=a.lineNumber.toString();isNaN(k)||!e||isNaN(e)||(l.lineNumber=Number(k),l.columnNumber=Number(e),k=k+":"+e);window.yterr&&g.Pa(window.yterr)&&(a.params=c,window.yterr(a));if(!(dr.has(a.message)||
0<=d.indexOf("/YouTubeCenter.js")||0<=d.indexOf("/mytube.js"))){if(g.Eo("kevlar_gel_error_routing")){m=b;e={level:"ERROR_LEVEL_UNKNOWN",message:a.message};"ERROR"===m?e.level="ERROR_LEVEL_ERROR":"WARNING"===m&&(e.level="ERROR_LEVEL_WARNNING");l={isObfuscated:!0,browserStackInfo:l};m={pageUrl:window.location.href,kvPairs:[]};f=g.q(Object.keys(c));for(n=f.next();!n.done;n=f.next())n=n.value,m.kvPairs.push({key:"client."+n,value:String(c[n])});g.Yq("clientError",{errorMetadata:m,stackTrace:l,logMessage:e});
Cp()}b={Zd:{a:"logerror",t:"jserror",type:a.name,msg:a.message.substr(0,250),line:k,level:b,"client.name":c.name},rb:{url:g.L("PAGE_NAME",window.location.href),file:a.fileName},method:"POST"};c.version&&(b["client.version"]=c.version);if(b.rb){d&&(b.rb.stack=d);d=g.q(Object.keys(c));for(e=d.next();!e.done;e=d.next())e=e.value,b.rb["client."+e]=c[e];if(c=g.L("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(d=g.q(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.rb[e]=c[e];c=g.L("SERVER_NAME",
void 0);d=g.L("SERVER_VERSION",void 0);c&&d&&(b.rb["server.name"]=c,b.rb["server.version"]=d)}g.Lq(g.L("ECATCHER_REPORT_HOST","")+"/error_204",b);dr.add(a.message);br++}}};
cr=function(a,b,c,d){c+="."+a;a=String(JSON.stringify(b)).substr(0,500);d[c]=a;return c.length+a.length};
er=function(){this.pc=!1;this.o=null};
fr=function(a,b,c,d){if(d)try{a.o=new window.botguard.bg(b,c?function(){return c(b)}:g.Ka)}catch(e){g.ar(e)}else{try{a.o=new window.botguard.bg(b)}catch(e){g.ar(e)}c&&c(b)}};
Tea=function(a){var b=gr;a=void 0===a?{}:a;return b.o?Promise.race([new Promise(function(c){setTimeout(c,Fo("botguard_async_snapshot_timeout_ms",2E3),null)}),
new Promise(function(c){b.o.invoke(c,!0,a)})]):Promise.resolve(null)};
ir=function(){if("1"!=g.Kb(g.L("PLAYER_CONFIG",{}),"args","privembed")){var a=function(){hr=!0;"google_ad_status"in window?Bo("DCLKSTAT",1):Bo("DCLKSTAT",2)};
g.$o("//static.doubleclick.net/instream/ad_status.js",a);Uea.push(g.$p(function(){if(!(hr||"google_ad_status"in window)){if(a){var b=""+g.Sa(a);(b=bp[b])&&g.Wo(b)}hr=!0;Bo("DCLKSTAT",3)}},5E3))}};
g.jr=function(a,b,c,d,e){e=void 0===e?"":e;a&&(c&&!g.ll()?a&&(a=g.xc(g.zc(a)),"about:invalid#zClosurez"===a?a="":(a=g.Tc(Vc(a)).toString(),a=dd(g.Ok(a))),g.hc(a)||(a=g.qe("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),Zd(a).body.appendChild(a))):e?Mq(a,b,"POST",e,d):g.L("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d?Mq(a,b,"GET","",d):Vea(a,b)||Wea(a,b))};
Vea=function(a,b){if(!Co("web_use_beacon_api_for_ad_click_server_pings"))return!1;if(Co("use_sonic_js_library_for_v4_support")){a:{try{var c=new laa({url:a,ZO:!0});if(c.B?c.w&&c.o&&c.o[1]||c.A:c.u){var d=od(g.qd(5,a));var e=!(!d||!d.endsWith("/aclk")||"1"!==Fd(a,"ri"));break a}}catch(f){}e=!1}if(!e)return!1}else if(e=od(g.qd(5,a)),!e||-1==e.indexOf("/aclk")||"1"!==Fd(a,"ae")||"1"!==Fd(a,"act"))return!1;return kr(a)?(b&&b(),!0):!1};
lr=function(a,b,c){c=void 0===c?"":c;kr(a,c)?b&&b():g.jr(a,b,void 0,void 0,c)};
kr=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
Wea=function(a,b){var c=new Image,d=""+Xea++;mr[d]=c;c.onload=c.onerror=function(){b&&mr[d]&&b();delete mr[d]};
c.src=a};
g.or=function(a,b){var c=g.Sb(b),d;return Of(new Cf(function(e,f){c.onSuccess=function(k){g.Fq(k)?e(k):f(new nr("Request failed, status="+Eq(k),"net.badstatus",k))};
c.onError=function(k){f(new nr("Unknown request error","net.unknown",k))};
c.Td=function(k){f(new nr("Request timed out","net.timeout",k))};
d=g.Lq(a,c)}),function(e){e instanceof Tf&&d.abort();
return Hf(e)})};
g.pr=function(a,b,c,d){function e(k,l,m){return Of(k,function(n){return 0>=l||403===Eq(n.Ei)?Hf(new nr("Request retried too many times","net.retryexhausted",n.Ei)):f(m).then(function(){return e(g.or(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(k){return new Cf(function(l){setTimeout(l,k)})}
return e(g.or(a,b),c-1,d)};
nr=function(a,b,c){Wa.call(this,a+", errorCode="+b);this.errorCode=b;this.Ei=c;this.name="PromiseAjaxError"};
qr=function(){this.u=0;this.o=null};
rr=function(a){var b=new qr;a=void 0===a?null:a;b.u=2;b.o=void 0===a?null:a;return b};
sr=function(a){var b=new qr;a=void 0===a?null:a;b.u=1;b.o=void 0===a?null:a;return b};
ur=function(a){Wa.call(this,a.message||a.description||a.name);this.isMissing=a instanceof tr;this.isTimeout=a instanceof nr&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Tf};
tr=function(){Wa.call(this,"Biscotti ID is missing from server")};
Yea=function(){if("1"===g.Kb(g.L("PLAYER_CONFIG",{}),"args","privembed"))return Hf(Error("Biscotti ID is not available in private embed mode"));vr||(vr=Of(g.or("//googleads.g.doubleclick.net/pagead/id",wr).then(xr),function(a){return yr(2,a)}));
return vr};
xr=function(a){a=a.responseText;if(!fc(a,")]}'"))throw new tr;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new tr;a=a.id;oq(a);vr=sr(a);zr(18E5,2);return a};
yr=function(a,b){var c=new ur(b);oq("");vr=rr(c);0<a&&zr(12E4,a-1);throw c;};
zr=function(a,b){g.Oo(function(){Of(g.or("//googleads.g.doubleclick.net/pagead/id",wr).then(xr,function(c){return yr(b,c)}),g.Ka)},a)};
Ar=function(){try{var a=g.w("yt.ads.biscotti.getId_");return a?a():Yea()}catch(b){return Hf(b)}};
Br=function(a){Zea||g.Yq("adsClientStateChange",{adsClientEvent:{eventType:a}})};
Dr=function(){this.o=g.L("ALT_PREF_COOKIE_NAME","PREF");var a=Uq(this.o);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])&&(Cr[d]=c.toString())}}};
Fr=function(a,b){return!!((Er("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
Gr=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
Hr=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
Er=function(a){a=void 0!==Cr[a]?Cr[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
bfa=function(){var a=void 0===a?window.location.href:a;if(g.Eo("kevlar_disable_theme_param"))return null;var b=od(g.qd(5,a));if($ea(b))return"USER_INTERFACE_THEME_DARK";a=g.tq(a).theme;return afa.get(a)||null};
$ea=function(a){var b=cfa.map(function(c){return c.toLowerCase()});
return!g.Eo("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:dfa.hasOwnProperty(a)&&!g.Eo("desktop_themeable_vulcan")};
Ir=function(a){a.requestFullscreen?a.requestFullscreen(void 0):a.webkitRequestFullscreen?a.webkitRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen():a.webkitEnterFullscreen&&a.webkitEnterFullscreen()};
Lr=function(a){var b;Jr()?Kr()==a&&(b=document):b=a;b&&(a=Fp(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))&&a.call(b)};
Mr=function(a){return g.$a(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
efa=function(){var a=document;return g.$a(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
Jr=function(){return!!Fp(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
Kr=function(a){a=void 0===a?!1:a;var b=Fp(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
g.Nr=function(a){g.A.call(this);this.Z=[];this.Md=a||this};
Or=function(a,b,c,d){for(var e=0;e<c.length;e++)a.K(b,c[e],d)};
g.Pr=function(a){for(;a.Z.length;){var b=a.Z.pop();b.target.removeEventListener(b.name,b.Eb)}};
g.O=function(a){a=void 0===a?!1:a;g.A.call(this);this.Kh=new g.ao(a);g.C(this,this.Kh)};
Qr=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
Rr=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.Tr=function(a,b,c,d){g.O.call(this);this.w=!!b;this.C=a;this.I=c||a;this.G=!!d;this.o=new g.Nr(this);g.C(this,this.o);this.B=this.F=null;this.A=this.u=!1;b&&(g.me&&a.setAttribute("draggable","true"),a.style.touchAction="none");Sr(this)};
Ur=function(a,b,c){a.o.K(a.I,b,c,void 0,!a.w)};
Sr=function(a){a.B=null;a.F=null;Ur(a,Vr("over"),a.Hy);Ur(a,"touchstart",a.Ts);a.w&&Ur(a,Vr("down"),a.CJ)};
Wr=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.F)return d}return null};
Vr=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
Xr=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Sb(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Sb(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||{}};
ffa=function(a){a instanceof Xr||(a=new Xr(a));return a};
Zr=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.G)();for(var d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(Yr)for(b=1,c=0;c<Yr.length;c++)a[b%16]=a[b%16]^a[(b-1)%16]/4^Yr.charCodeAt(c),b++;return a};
$r=function(){for(var a=Zr(),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.as=function(){return(0,g.Fc)(Zr(),function(a){return(a&15).toString(16)}).join("")};
Zf=function(){};
bs=function(a){this.Ld=a};
g.cs=function(a){return new bs({trackingParams:a})};
ds=function(a){var b=gfa++;return new bs({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
g.es=function(a){var b={};void 0!==a.Ld.trackingParams?b.trackingParams=a.Ld.trackingParams:(b.veType=a.Ld.veType,void 0!==a.Ld.veCounter&&(b.veCounter=a.Ld.veCounter),void 0!==a.Ld.elementIndex&&(b.elementIndex=a.Ld.elementIndex));void 0!==a.Ld.dataElement&&(b.dataElement=g.es(a.Ld.dataElement));void 0!==a.Ld.youtubeData&&(b.youtubeData=a.Ld.youtubeData);return b};
fs=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
gs=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
hs=function(a){return g.L(gs(void 0===a?0:a),void 0)};
g.is=function(a){a=hs(void 0===a?0:a);var b;a?b=new bs({veType:a,youtubeData:void 0}):b=null;return b};
js=function(){var a=g.L("csn-to-ctt-auth-info");a||(a={},Bo("csn-to-ctt-auth-info",a));return a};
g.ks=function(a){a=void 0===a?0:a;var b=g.L(fs(a));if(!b&&!g.L("USE_CSN_FALLBACK",!0))return null;b||0!=a||(g.Eo("kevlar_client_side_screens")||g.Eo("c3_client_side_screens")?b="UNDEFINED_CSN":b=g.L("EVENT_ID"));return b?b:null};
hfa=function(a,b,c){var d=js();(c=g.ks(c))&&delete d[c];b&&(d[a]=b)};
g.ls=function(a){return js()[a]};
ns=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.L(fs(c))||b!==g.L(gs(c)))if(hfa(a,d,c),Bo(fs(c),a),Bo(gs(c),b),0==c||g.Eo("web_screen_associated_all_layers"))b=function(){setTimeout(function(){a&&g.mq("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:ms,clientScreenNonce:a},g.Xq)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
os=function(a,b){this.version=a;this.args=b};
ps=function(a,b){this.topic=a;this.o=b};
rs=function(a,b){var c=qs();c&&c.publish.call(c,a.toString(),a,b)};
ifa=function(a,b,c){var d=qs();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,k){var l=g.w("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(ts[e])try{if(k&&a instanceof ps&&a!=f)try{var m=a.o,n=k;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Rh){var p=new m;m.Rh=p.version}var t=m.Rh}catch(u){}if(!t||n.version!=t)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{k=Reflect.construct(m,
g.kb(n.args))}catch(u){throw u.message="yt.pubsub2.Data.deserialize(): "+u.message,u;}}catch(u){throw u.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+u.message,u;}b.call(c||window,k)}catch(u){g.M(u)}},us[a.toString()]?g.bq()?g.$p(l):g.Oo(l,0):l())});
ts[e]=!0;vs[a.toString()]||(vs[a.toString()]=[]);vs[a.toString()].push(e);return e};
xs=function(a,b,c){var d=ifa(a,function(e){b.apply(c,arguments);ws(d)},c);
return d};
ws=function(a){var b=qs();b&&("number"===typeof a&&(a=[a]),(0,g.y)(a,function(c){b.unsubscribeByKey(c);delete ts[c]}))};
qs=function(){return g.w("ytPubsub2Pubsub2Instance")};
ys=function(a){os.call(this,1,arguments);this.csn=a};
g.As=function(a,b,c,d){c={csn:b,parentVe:g.es(c),childVes:(0,g.Fc)(d,function(f){return g.es(f)})};
d=g.q(d);for(var e=d.next();!e.done;e=d.next())e=g.es(e.value),(g.Pb(e)||!e.trackingParams&&!e.veType)&&g.$q(Error("Child VE logged with no data"),"WARNING",void 0,void 0,void 0);d={Wk:g.ls(b),Wi:b};"UNDEFINED_CSN"==b?g.zs("visualElementAttached",c,d):a?g.mq("visualElementAttached",c,a,d):g.Yq("visualElementAttached",c,d)};
g.Bs=function(a,b){var c=g.Eo("use_default_events_client")?void 0:g.Xq,d={csn:a,ve:g.es(b),eventType:1},e={Wk:g.ls(a),Wi:a};"UNDEFINED_CSN"==a?g.zs("visualElementShown",d,e):c?g.mq("visualElementShown",d,c,e):g.Yq("visualElementShown",d,e)};
Cs=function(a,b,c){c={csn:b,ve:g.es(c),gestureType:"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"};var d={Wk:g.ls(b),Wi:b};"UNDEFINED_CSN"==b?g.zs("visualElementGestured",c,d):a?g.mq("visualElementGestured",c,a,d):g.Yq("visualElementGestured",c,d)};
g.zs=function(a,b,c){Ds.push({payloadName:a,payload:b,options:c});Es||(Es=xs(jfa,kfa))};
kfa=function(a){if(Ds){for(var b=g.q(Ds),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,g.mq(c.payloadName,c.payload,null,c.options));Ds.length=0}Es=0};
g.Fs=function(a,b,c){g.As(g.Eo("use_default_events_client")?void 0:g.Xq,a,b,[c])};
g.Gs=function(a,b){Cs(g.Eo("use_default_events_client")?void 0:g.Xq,a,b)};
ag=function(){if(!Hs){Hs=new $f;var a=Fo("client_streamz_web_flush_count",-1);-1!==a&&(Hs.C=a)}return Hs};
g.Ks=function(a,b,c){var d=c&&0<c?c:0;c=d?(0,g.G)()+1E3*d:0;if((d=d?(0,g.Is)():(0,g.Js)())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.Ls=function(a){var b=(0,g.Js)(),c=(0,g.Is)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if("string"!==typeof d)try{d=c.get(a)}catch(e){}if("string"!==typeof d)return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
g.Ms=function(){return g.Ls("yt-remote-session-screen-id")};
Ps=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!Ns(a)||c.some(function(e){return!Ns(e)}))throw Error("Only objects may be merged.");
c=g.q(c);for(d=c.next();!d.done;d=c.next())Os(a,d.value);return a};
Os=function(a,b){for(var c in b)if(Ns(b[c])){if(c in a&&!Ns(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Os(a[c],b[c])}else if(Qs(b[c])){if(c in a&&!Qs(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Rs(a[c],b[c])}else a[c]=b[c];return a};
Rs=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,Ns(d)?a.push(Os({},d)):Qs(d)?a.push(Rs([],d)):a.push(d);return a};
Ns=function(a){return"object"===typeof a&&!Array.isArray(a)};
Qs=function(a){return"object"===typeof a&&Array.isArray(a)};
lfa=function(){Ss=(0,g.N)()};
Ts=function(a){a=void 0===a?{}:a;var b=gr;a=void 0===a?{}:a;return b.o?b.o.invoke(void 0,void 0,a):null};
mfa=function(a){a=void 0===a?{}:a;return Tea(a)};
nfa=function(a,b){var c=this;this.videoData=a;this.w=b;var d={};this.u=(d.c1a=function(){if(Us(c)){var e="";c.videoData&&c.videoData.Ie&&(e=c.videoData.Ie+("&r1b="+c.videoData.clientPlaybackNonce));var f={};e=(f.atr_challenge=e,f);e=(e=c.w?Ts(e):g.w("yt.abuse.player.invokeBotguard")(e))?"r1a="+e:null}else e=null;return e},d.c3a=function(e){return"r3a="+Math.floor(c.videoData.lengthSeconds%Number(e.c3a)).toString()},d.c6a=function(e){e=Number(e.c);
var f=c.w?parseInt(g.L("DCLKSTAT",0),10):(f=g.w("yt.abuse.dclkstatus.checkDclkStatus"))?f():NaN;return"r6a="+(e^f)},d);
this.videoData&&this.videoData.Ie?this.o=g.rq(this.videoData.Ie):this.o={}};
ofa=function(a){if(a.videoData&&a.videoData.Ie){for(var b=[a.videoData.Ie],c=g.q(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,a.o[d]&&a.u[d]&&(d=a.u[d](a.o))&&b.push(d);return b.join("&")}return null};
qfa=function(a){var b={};Object.assign(b,a.u);"c1b"in a.o&&(b.c1a=function(){return pfa(a)});
if(a.videoData&&a.videoData.Ie){for(var c=[a.videoData.Ie],d=g.q(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.o[e]&&b[e]&&(e=b[e](a.o))&&c.push(e);return new Promise(function(f){Promise.all(c).then(function(k){f(k.filter(function(l){return!!l}).join("&"))})})}return Promise.resolve(null)};
Us=function(a){return a.w?!!gr.o:(a=g.w("yt.abuse.player.botguardInitialized"))&&a()};
pfa=function(a){if(!Us(a))return Promise.resolve(null);var b="";a.videoData&&a.videoData.Ie&&(b=a.videoData.Ie+("&r1b="+a.videoData.clientPlaybackNonce));a={};var c=(a.atr_challenge=b,a);return new Promise(function(d){mfa(c).then(function(e){e?d("r1a="+e):d(null)})})};
Vs=function(a,b,c){this.errorCode=a;this.o=b;this.details=c||{}};
Ws=function(a){var b;for(b in a){var c=(""+a[b]).replace(/[:,=]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""};
Xs=function(a){var b=void 0===b?!1:b;if(a instanceof Vs)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.$q(a):g.ar(a);return new Vs(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
Ys=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.Zs=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.o=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null};
g.$s=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (\u81ea\u52a8\u751f\u6210\u7684\u5b57\u5e55)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")};
at=function(a,b){this.id=a;this.sb=b;this.captionTracks=[];this.Ln=this.qr=this.o=null;this.Yq="UNKNOWN"};
bt=function(a,b,c){this.sampleRate=a||0;this.o=b||0;this.spatialAudioType=c||0};
rfa=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
et=function(a,b,c,d,e,f,k,l,m,n){this.width=a;this.height=b;this.quality=f||ct(a,b);this.fc=g.dt[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.dt[this.quality],0==a?a="\u81ea\u52a8":(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.o=l||"";this.primaries=m||"";this.streamType=n||0;this.isAccelerated=!1};
ft=function(a){return 1280<=a.width||720<=a.height};
gt=function(a){return"smpte2084"==a.o||"arib-std-b67"==a.o};
ct=function(a,b){for(var c=Math.max(a,b),d=Math.min(a,b),e=ht[0],f=0;f<ht.length;f++){var k=ht[f],l=g.dt[k];if(c>=1.3*Math.floor(16*l/9)||d>=1.3*l)return e;e=k}return"tiny"};
kt=function(a,b,c,d,e,f,k,l,m){this.id=a;this.containerType=it(b);this.mimeType=b;this.o=k||0;this.w=l||0;this.audio=void 0===c?null:c;this.video=void 0===d?null:d;this.sb=void 0===e?null:e;this.captionTrack=void 0===m?null:m;this.zc=void 0===f?null:f;this.u=sfa[jt(this)]||"";this.A=!0};
jt=function(a){return a.id.split(";",1)[0]};
lt=function(a){return"9"==a.u||"("==a.u||"9h"==a.u||"(h"==a.u};
mt=function(a){return"9h"==a.u||"(h"==a.u};
g.nt=function(a){return 1==a.containerType};
ot=function(a){return"application/x-mpegURL"==a.mimeType};
pt=function(a){return/(opus|vorbis|mp4a|dtse|ac-3|ec-3)/.test(a)};
qt=function(a){return a.includes("vtt")||a.includes("text/mp4")};
it=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};
rt=function(a,b,c,d,e){var f=new bt;b in g.dt||(b="small");d&&e?(e=parseInt(e,10),d=parseInt(d,10)):(e=g.dt[b],d=Math.round(16*e/9));b=new et(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/"/g,'"'));return new kt(c,a,f,b)};
ut=function(){return g.Da(function(a){tt||(tt=new Promise(function(b,c){var d=indexedDB.open("yt-player-local-media",3);d.onerror=function(e){"VersionError"==e.target.error.name?(e=indexedDB.open("yt-player-local-media"),e.onsuccess=function(f){return void b(f.target.result)},e.onerror=c):c()};
d.onsuccess=function(e){var f=e.target.result;f.onversionchange=function(){f.close();tt=null};
b(f)};
d.onupgradeneeded=function(e){var f=e.target.result;2>e.oldVersion&&(f.createObjectStore("index"),f.createObjectStore("media"));3>e.oldVersion&&f.createObjectStore("metadata")}}));
return a["return"](tt)})};
tfa=function(a){var b;return g.Da(function(c){if(1==c.o)return g.ua(c,ut(),2);b=c.u;return c["return"](vt(b.transaction("media").objectStore("media").get(a)))})};
wt=function(a,b){var c,d;return g.Da(function(e){c=IDBKeyRange.bound(b+"|",b+"~");d=a.objectStore("index").getAll(c);return e["return"](new Promise(function(f,k){d.onsuccess=function(l){return void f(l.target.result.join(","))};
d.onerror=k}))})};
ufa=function(){var a;return g.Da(function(b){if(1==b.o)return tt?b=g.ua(b,tt,3):(b.o=2,b=void 0),b;2!=b.o&&(a=b.u,a.close(),tt=null);return b["return"](new Promise(function(c,d){var e=indexedDB.deleteDatabase("yt-player-local-media");e.onsuccess=function(){return void c()};
e.onerror=function(){return void d()}}))})};
xt=function(a){window.localStorage["yt-player-lv"]=a.join(",")};
zt=function(){var a=window.localStorage&&window.localStorage["yt-player-lv"];return a?a.split(","):[]};
vfa=function(a,b){var c,d;g.Da(function(e){if(1==e.o)return g.ua(e,ut(),2);c=e.u;d=c.transaction(["metadata"],"readwrite");d.objectStore("metadata").put(b,a);return e["return"](new Promise(function(f,k){d.oncomplete=function(){return void f()};
d.onabort=k}))})};
Bt=function(a,b,c,d,e){var f,k,l,m,n,p,t;return g.Da(function(u){if(1==u.o)return f=""+a+"|"+b.id+"|"+c,k=At(a,b.isVideo()),l=At(a,!b.isVideo()),g.ua(u,ut(),2);m=u.u;n=m.transaction(["index","media"],"readwrite");n.objectStore("media").put(d,f);n.objectStore("index").put(e,k);t=(p=!!e&&-1==e.indexOf("dlt"))?n.objectStore("index").get(l):null;return u["return"](new Promise(function(z,B){n.oncomplete=function(){var D=2,E;if(E=p&&t)E=t.result,E=!!E&&-1==E.indexOf("dlt");E&&(D=1,E=zt(),E.includes(a)||
(E.push(a),xt(E)));z(D)};
n.onabort=B}))})};
wfa=function(a,b,c){var d,e,f;g.Da(function(k){if(1==k.o)return d=At(a,b),g.ua(k,ut(),2);e=k.u;f=e.transaction("index","readwrite");f.objectStore("index").put(c,d);return k["return"](new Promise(function(l,m){f.oncomplete=function(){return void l()};
f.onabort=m}))})};
xfa=function(a){var b,c;return g.Da(function(d){if(1==d.o)return g.ua(d,ut(),2);b=d.u;c=b.transaction("index");return d["return"](wt(c,a))})};
yfa=function(a,b,c){return g.Da(function(d){return d["return"](tfa(""+a+"|"+b+"|"+c))})};
zfa=function(a){var b,c;return g.Da(function(d){if(1==d.o)return g.ua(d,ut(),2);b=d.u;c=b.transaction(["index","metadata"]);return d["return"](Ct(c,a))})};
Afa=function(){var a,b;return g.Da(function(c){if(1==c.o)return g.ua(c,ut(),2);a=c.u;b=a.transaction(["index","metadata"]);return c["return"](Promise.all(zt().map(function(d){return Ct(b,d)})))})};
Ct=function(a,b){var c,d,e,f,k,l,m,n;return g.Da(function(p){if(1==p.o)return c=vt(a.objectStore("metadata").get(b)),g.ua(p,wt(a,b),2);if(3!=p.o){d=p.u;e={videoId:b,totalSize:0,downloadedSize:0,status:0,details:null};if(!d.length)return p["return"](e);f=g.sq(d);k=g.q(f);for(l=k.next();!l.done;l=k.next())m=l.value,e.totalSize+=parseInt(m.mket,10)*parseInt(m.avbr,10),e.downloadedSize+=m.hasOwnProperty("dlt")?(parseInt(m.dlt,10)||0)*parseInt(m.avbr,10):parseInt(m.mket,10)*parseInt(m.avbr,10);e.downloadedSize>=
e.totalSize?(e.downloadedSize=e.totalSize,e.status=1):e.status=2;n=e;return g.ua(p,c,3)}n.details=p.u||null;return p["return"](e)})};
Bfa=function(a){var b,c,d,e,f;return g.Da(function(k){if(1==k.o)return b=zt(),b.includes(a)&&(c=b.filter(function(l){return l!=a}),xt(c)),g.ua(k,ut(),2);
d=k.u;e=d.transaction(["index","media"],"readwrite");f=IDBKeyRange.bound(a+"|",a+"~");return k["return"](new Promise(function(l,m){e.objectStore("index")["delete"](f);e.objectStore("media")["delete"](f);e.oncomplete=function(){return void l()};
e.onabort=m}))})};
Cfa=function(){return g.Da(function(a){delete window.localStorage["yt-player-lv"];return a["return"](ufa())})};
At=function(a,b){return""+a+"|"+(b?"v":"a")};
vt=function(a){return new Promise(function(b,c){a.onsuccess=function(){return void b(a.result)};
a.onerror=c})};
Dfa=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=pq(b||"");var c={};(0,g.y)(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.P=function(a,b){return"true"==a.flags[b]};
g.Q=function(a,b){return parseFloat(a.flags[b])||0};
g.Dt=function(a,b){var c=a.flags[b];return c?c.toString():""};
Et=function(){var a=g.w("yt.player.utils.videoElement_");a||(a=g.re("VIDEO"),g.Ia("yt.player.utils.videoElement_",a,void 0));return a};
Ft=function(a){var b=Et();return!!(b&&b.canPlayType&&b.canPlayType(a))};
Ht=function(a){if(/opus/.test(a)&&(g.Gt&&!$n("38")||g.Gt&&il("crkey")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!ol())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!Ft(a)};
Efa=function(a){try{var b=Ht('video/mp4; codecs="avc1.42001E"')||Ht('video/webm; codecs="vp9"');return(Ht('audio/mp4; codecs="mp4a.40.2"')||Ht('audio/webm; codecs="opus"'))&&(b||!a)||Ft('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
It=function(){var a=Et();return!!a.webkitSupportsPresentationMode&&g.Pa(a.webkitSetPresentationMode)};
Jt=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
Kt=function(){var a=Et();try{var b=a.muted;a.muted=!b;return a.muted!=b}catch(c){}return!1};
Lt=function(a,b){this.o=a;this.u=b;this.w=0;Object.defineProperty(this,"timestampOffset",{get:this.hP,set:this.lP});Object.defineProperty(this,"buffered",{get:this.fP})};
Ffa=function(){this.length=0};
Mt=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.o=a;this.u=NaN;this.w=0;Object.defineProperty(this,"duration",{get:this.gP,set:this.kP});Object.defineProperty(this,"readyState",{get:this.iP});this.o.addEventListener("webkitsourceclose",(0,g.x)(this.jP,this),!0)};
Nt=function(){this.length=1};
Ot=function(){this.buffered=new Nt};
Pt=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
Qt=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)};
Rt=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};
St=function(a,b){return 0<=Rt(a,b)};
Tt=function(a,b){if(!a)return NaN;var c=Rt(a,b);return 0<=c?a.end(c):NaN};
Ut=function(a){return a&&a.length?a.end(a.length-1):NaN};
Vt=function(a,b){var c=Tt(a,b);return 0<=c?c-b:0};
Wt=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 Pt(d,e)};
Xt=function(a,b,c){g.O.call(this);var d=this;this.o=a;this.I=b;this.G=c;this.P=this.w=this.B=null;this.C=0;this.A=function(e){return d.S(e.type,d)};
this.supports(3)&&(this.o.addEventListener("updateend",this.A),this.o.addEventListener("error",this.A));this.L=0;this.F=Pt([],[]);this.u=!1};
Yt=function(a,b,c,d){g.O.call(this);var e=this;this.o=a;this.I={error:function(){!e.ea()&&e.isActive()&&e.S("error",e)},
updateend:function(){!e.ea()&&e.isActive()&&e.S("updateend",e)}};
Qr(this.o,this.I);this.u=b;this.G=c;this.C=0;this.B=Infinity;this.A=0;this.F=this.w=d};
Zt=function(a,b){this.o=a;this.u=void 0===b?!1:b;this.w=!1};
$t=function(a,b){b=void 0===b?!1:b;g.A.call(this);this.B=new g.Nr(this);g.C(this,this.B);this.u=this.o=null;this.w=a;var c=this.w;c=c.BI?c.o.webkitMediaSourceURL:window.URL.createObjectURL(c);this.Nl=new Zt(c,!0);this.C=b;this.A=null;Or(this.B,this.w,["sourceopen","webkitsourceopen"],this.dN);Or(this.B,this.w,["sourceclose","webkitsourceclose"],this.cN)};
Gfa=function(a,b){au(a)?g.xf(function(){return b(a)}):a.A=b};
bu=function(a,b){try{a.w.duration=b}catch(c){}};
cu=function(a){return!!a.o||!!a.u};
au=function(a){try{return"open"==a.w.readyState}catch(b){return!1}};
du=function(a){try{return"closed"==a.w.readyState}catch(b){return!0}};
eu=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
fu=function(a){return a.o?!!a.o.supports(0):eu()};
gu=function(a,b,c,d){if(!a.o||!a.u)return null;var e=a.o.isView()?a.o.o:a.o,f=a.u.isView()?a.u.o:a.u,k=new $t(a.w,!0);k.Nl=a.Nl;e=new Yt(e,b,c,d);b=new Yt(f,b,c,d);k.o=e;k.u=b;g.C(k,e);g.C(k,b);au(a)||a.o.Jp(a.o.Bb());return k};
hu=function(a,b,c){this.o=a;this.P=b;this.L=void 0===c?!1:c;this.C=!!g.w("cast.receiver.platform.canDisplayType");b=g.w("cast.receiver.platform.getValue");this.u=!this.C&&b&&b("max-video-resolution-vpx")||null;this.B={};this.G=!1;this.I=new Set;this.F=!0;this.w=!g.P(a,"html5_disable_protected_hdr");this.A=!1};
Hfa=function(a,b){var c=jt(b);if("0"===c)return!0;var d=b.mimeType;if(g.P(a.o,"html5_disable_codec_on_platform_errors")){if(a.I.has(b.u))return!1}else if("1"==b.u&&a.G)return!1;var e;if(e=b.video&&(gt(b.video)||"bt2020"==b.video.primaries))e=!(iu(a,ju)||(g.P(a.o,"html5_hdr_matchmedia_killswitch")?24<window.screen.pixelDepth:24<window.screen.pixelDepth&&window.matchMedia&&window.matchMedia("(color-gamut: p3)").matches));if(e||"338"===c&&!(g.Gt?$n(53):g.ku&&$n(64)))return!1;e={};b.video&&(b.video.width&&
(e[lu.name]=b.video.width),b.video.height&&(e[mu.name]=b.video.height),b.video.fps&&(e[nu.name]=b.video.fps),b.video.o&&(e[ju.name]=b.video.o),b.o&&(e[ou.name]=8*b.o),"("==b.u&&(e[pu.name]="subsample"),2==b.video.projectionType||3==b.video.projectionType||4==b.video.projectionType)&&(e[qu.name]="true");b.audio&&b.audio.o&&(e[ru.name]=b.audio.o);a.A&<(b)&&(e[tu.name]="allowed");for(var f in uu){var k=uu[f],l;if(l=e[k.name])(l=k==ju&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=g.P(a.o,"html5_ignore_h264_framerate_cap")&&
k==nu&&("H"==l.u||"h"==l.u)),l=!(l||k==qu&&!g.P(a.o,"html5_decode_to_texture_cap"));if(l)if(iu(a,k))if(a.u){if(a.u[k.name]<e[k.name])return!1}else d=d+"; "+k.name+"="+e[k.name];else if(mt(b)&&k==ju)return!1}!g.P(a.o,"disable_html5_cast_hdcp_filter2")&&a.C&&b.video&&1080<b.video.fc&&b.zc&&(d+="; hdcp=2.2");return"227"===c&&!g.P(a.o,"html5_enable_1080p_hq_cenc")||("585"===c||"588"===c||"583"===c||"586"===c||"584"===c||"587"===c||"591"===c||"592"===c)&&!g.P(a.o,"html5_enable_new_hvc_enc")?!1:vu(a,d)};
wu=function(){var a=jl()&&!$n(29),b=il("google tv")&&il("chrome")&&!$n(30),c=ml();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
g.xu=function(a,b){b=void 0===b?!1:b;return wu()||!b&&a.canPlayType(Et(),"application/x-mpegURL")?!0:!1};
iu=function(a,b){b.name in a.B||(a.B[b.name]=Ifa(a,b));return a.B[b.name]};
Ifa=function(a,b){if(a.u)return!!a.u[b.name];if(b==ou&&g.P(a.o,"html5_ignore_bad_bitrates")&&vu(a,'video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!vu(a,'video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b==yu)return vu(a,"video/mp4; codecs="+b.valid)&&!vu(a,"video/mp4; codecs="+b.Re);if(b.video){var c='video/webm; codecs="vp9"';vu(a,c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"',vu(a,c)||(c='audio/mp4; codecs="mp4a.40.2"');
return vu(a,c+"; "+b.name+"="+b.valid)&&!vu(a,c+"; "+b.name+"="+b.Re)};
vu=function(a,b){return a.C?window.cast.receiver.platform.canDisplayType(b):Ht(b)};
Jfa=function(a){return g.zu||ul()&&!a?!1:!0};
Au=function(a){this.ng=a};
Bu=function(a,b,c){if(c)return rr();var d={};c=Et();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.ge().mimeType)){var f=e.ng.va().quality;if(!d[f]||d[f].ge().Bc())d[f]=e}var k=[];d.auto&&k.push(d.auto);(0,g.y)(ht,function(l){(l=d[l])&&k.push(l)});
return k.length?sr(k):rr()};
Cu=function(a,b,c,d){this.u=a||0;this.o=b||0;this.w=c;this.reason=d};
Du=function(a,b){return a.u==b.u&&a.o==b.o&&a.w==b.w&&a.reason==b.reason};
Eu=function(a,b,c,d){return new Cu(g.dt[a]||0,g.dt[b]||0,c,d)};
Fu=function(a){var b=g.dt.auto;return a.u==b&&a.o==b};
Hu=function(a,b){if(b.w&&Fu(b))return Gu;if(b.w||Fu(a))return b;if(a.w||Fu(b))return a;var c=a.u&&b.u?Math.max(a.u,b.u):a.u||b.u,d=a.o&&b.o?Math.min(a.o,b.o):a.o||b.o;c=Math.min(c,d);return c==a.u&&d==a.o?a:new Cu(c,d,!1,d==a.o?a.reason:b.reason)};
Iu=function(a){var b=a.o||a.u;return Ob(Kfa,function(c){return g.dt[c]==b})||"auto"};
Ju=function(a,b){var c=g.dt[b];return a.u<=c&&(!a.o||a.o>=c)};
Lu=function(a,b,c){"string"===typeof a&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});a:{if((b=a.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}a.videoId=b;return Ku(a)};
Ku=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};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};
Mu=function(a,b,c,d){if(g.Qa(a)&&!g.Na(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};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
Ou=function(){var a="ytp-id-"+Nu.toString();Nu++;return a};
g.Pu=function(a){g.A.call(this);this.o={};this.Pa={};this.element=this.createElement(a)};
g.Qu=function(a){g.we(a.element)};
Ru=function(a,b,c,d){if("{{"===d.substr(0,2))a.Pa[d]=[b,c];else return d};
Lfa=function(a,b){var c=[];if(!b)return c;for(var d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,null!=e){var f=e.nodeType;1===f||3===f?c.push(e):e&&"string"===typeof e.D?c.push(a.createElement(e)):e.element?c.push(e.element):"string"===typeof e&&-1!==e.indexOf("\n")?e.split("\n").forEach(function(k,l){0<l&&c.push(g.re("BR"));c.push(g.se(k))}):c.push(g.se(e))}return c};
Su=function(a,b,c,d){if("child"===c){g.ue(b);var e;void 0===d?e=void 0:!g.Na(d)||d&&"string"===typeof d.D?e=[d]:e=d;c=Lfa(a,e);c=g.q(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.xh(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.xc(g.zc(a))),b.setAttribute(c,a))};
g.R=function(a){g.Pu.call(this,a);this.ha=!0;this.P=!1;this.listeners=[]};
g.Tu=function(a,b){b?a.show():a.hide()};
g.Uu=function(a){g.R.call(this,a);this.aa=new g.O;g.C(this,this.aa)};
g.Wu=function(a,b,c,d){g.Uu.call(this,a);this.priority=b;c&&g.Vu(this,c);d&&this.ob(d)};
g.Xu=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{D:c?"a":"div",Y:b,O:a,J:[{D:"div",H:"ytp-menuitem-icon",W:"{{icon}}"},{D:"div",H:"ytp-menuitem-label",W:"{{label}}"},{D:"div",H:"ytp-menuitem-content",W:"{{content}}"}]}};
Yu=function(a,b){a.la("icon",b)};
g.Vu=function(a,b){a.la("label",b)};
Zu=function(a,b,c,d,e,f,k,l){this.duration=c;this.endTime=b+c;this.ingestionTime=d;this.Ka=a;this.u=e;this.startTime=b;this.o=k||0;this.range=f||null;this.pending=l||!1};
g.$u=function(){this.segments=[]};
av=function(a,b){if(b>a.gb())a.segments=[];else{var c=g.Za(a.segments,function(d){return d.Ka>=b},a);
0<c&&a.segments.splice(0,c)}};
bv=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.o=e?0:8;this.dataOffset=this.offset+this.o;this.u=e};
cv=function(a){var b=a.data.getUint8(a.offset+a.o);a.o+=1;return b};
dv=function(a){var b=a.data.getUint16(a.offset+a.o);a.o+=2;return b};
ev=function(a){var b=a.data.getInt32(a.offset+a.o);a.o+=4;return b};
fv=function(a){var b=a.data.getUint32(a.offset+a.o);a.o+=4;return b};
gv=function(a){var b=a.data;var c=a.offset+a.o;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.o+=8;return b};
hv=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.o;c<a.size&&a.data.getUint8(a.offset+c)!=b;)++c;var d=new Uint8Array(a.data.buffer,a.offset+a.o+a.data.byteOffset,c-a.o);a.o=Math.min(c+1,a.size);return String.fromCharCode.apply(String,d)};
Mfa=function(a){this.data=new DataView(new ArrayBuffer(a));this.o=0};
iv=function(a,b,c,d){(new Uint8Array(a.data.buffer,a.o,d)).set(new Uint8Array(b.buffer,c+b.byteOffset,d));a.o+=d};
jv=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.o=f};
lv=function(a,b){this.o=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.u=kv(this,"Sequence-Number");this.F=kv(this,"Segment-Count");this.G=this.o["Segment-Durations-Ms"]||"";this.ingestionTime=kv(this,"Ingestion-Walltime-Us")/1E6;this.w=(kv(this,"First-Frame-Time-Us")+kv(this,"First-Frame-Uncertainty-Us"))/1E6;this.Fe=kv(this,"Target-Duration-Us")/1E6;this.C="T"==this.o["Stream-Finished"];this.A="T"==this.o.Streamable;this.cryptoPeriodIndex=kv(this,"Crypto-Period-Index");
this.B=kv(this,"Crypto-Period-Seconds")};
mv=function(a){return parseInt(a.o["Start-Media-Time-Us"],10)/1E6||0};
kv=function(a,b){return parseInt(a.o[b],10)||0};
Nfa=function(a,b){this.o=a;this.duration=b};
nv=function(a,b,c,d,e){this.u=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;this.o=e;e.getUint32(4)};
ov=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};
qv=function(a,b){var c=g.pv(a,0,1952868452),d=g.pv(a,0,1953658222);if(c&&d){c.skip(1);var e=cv(c)<<16|dv(c);c.skip(4);e&1&&c.skip(8);e&2&&c.skip(4);if(e&8){e=c.o;var f=fv(c);c.data.setUint32(c.offset+e,1<b?Math.ceil(f*b):Math.floor(f*b))}d.skip(1);c=cv(d)<<16|dv(d);if(c&256){e=c&1;f=c&4;var k=c&512,l=c&1024,m=c&2048;c=fv(d);e&&d.skip(4);f&&d.skip(4);e=(k?4:0)+(l?4:0)+(m?4:0);for(f=0;f<c;f++)k=d.o,l=fv(d),d.data.setUint32(d.offset+k,1<b?Math.ceil(l*b):Math.floor(l*b)),d.skip(e)}}};
tv=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.pv(a,0,1836476516))?rv(a):NaN};
Ofa=function(a){var b=g.pv(a,0,1937011556);if(!b)return null;b=uv(a,b.dataOffset+8,1635148593);if(!b)return null;var c=uv(a,b.dataOffset+78,1936995172),d=uv(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),cv(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=uv(a,d.dataOffset,1886547818)){var k=uv(a,d.dataOffset,1886546020),l=uv(a,d.dataOffset,2037673328);if(!l&&(l=uv(a,d.dataOffset,1836279920),!l))return null;k&&(k.skip(4),c=
ev(k)/65536,f=ev(k)/65536,e=ev(k)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new nv(b,c,f,e,a)}return null};
uv=function(a,b,c){for(;vv(a,b);){var d=wv(a,b);if(d.type==c)return d;b+=d.size}return null};
g.pv=function(a,b,c){for(;vv(a,b);){var d=wv(a,b);if(d.type==c)return d;b=xv(d.type)?b+8:b+d.size}return null};
yv=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)};
wv=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new bv(a,b,c,d)};
rv=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
zv=function(a){a=new bv(a.data,a.offset,a.size,a.type,a.u);var b=cv(a);a.skip(7);var c=fv(a);if(0==b){b=fv(a);var d=fv(a)}else b=gv(a),d=gv(a);a.skip(2);for(var e=dv(a),f=[],k=[],l=0;l<e;l++){var m=fv(a);f.push(m);k.push(fv(a));a.skip(4)}return{Tp:c,tE:b,Tw:d,mu:f,Pp:k}};
vv=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};
xv=function(a){return 1701082227==a||1836019558==a||1836019574==a||1835297121==a||1835626086==a||1937007212==a||1953653094==a||1953653099==a||1836475768==a};
Av=function(a){a.skip(4);var b=hv(a,0),c=hv(a,0),d=fv(a),e=fv(a),f=fv(a),k=fv(a),l=hv(a);return{oO:b,value:c,Tp:d,FT:e,oT:f,id:k,uy:l,offset:a.offset}};
Bv=function(a,b){for(var c=uv(a,0,b);c;)c.markAsSkip(),c=uv(a,c.offset+c.size,b)};
Cv=function(a,b){for(var c=0,d=[];vv(a,c);){var e=wv(a,c);e.type==b&&d.push(e);c=xv(e.type)?c+8:c+e.size}return d};
Pfa=function(a,b){var c=g.pv(a,0,1937011556),d=g.pv(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.pv(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 Mfa(a.byteLength+d);iv(k,a,0,c.offset+12);k.data.setInt32(k.o,2);k.o+=4;iv(k,a,c.offset+16,c.size-16);iv(k,e,e.byteOffset+f.dataOffset+8,d);iv(k,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.pv(a,0,e.value),k.data.setUint32(e.offset,e.size+d);d=g.pv(k.data,0,1953654136);k.data.setUint32(d.offset+16,2);return k.data};
Dv=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
Ev=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a[c]);return String.fromCharCode.apply(null,b)};
Fv=function(a,b){this.u=a;this.o=0;this.w=b||0};
Gv=function(a){return a.o>=a.u.byteLength};
Mv=function(a,b,c){var d=new Fv(c);if(!Hv(d,a))return!1;d=Iv(d);if(!Jv(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.w+d.o;var e=Kv(d,!0);d=a+(d.w+d.o-b)+e;d=9<d?Lv(d-9,8):Lv(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
Qfa=function(a){var b=new Fv(a);Nv(b);if(Hv(b,[408125543,374648427,174,224]))b=Iv(b);else return null;for(var c=a=null;!Gv(b);){var d=Kv(b,!1);if(21432==d)switch(Ov(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320==d?c=Iv(b):Pv(b)}if(!c)return null;for(var e,f=d=b=null;!Gv(c);)switch(Kv(c,!1)){case 30321:if(3!=Ov(c))return null;break;case 30324:b=Qv(c);break;case 30323:f=Qv(c);break;case 30325:d=Qv(c);break;case 30322:e=Kv(c,!0);e=Rv(c,e);e=new DataView(e.buffer,e.byteOffset,
e.byteLength);break;default:Pv(c)}return e?new nv(a,b,f,d,e):null};
Iv=function(a){var b=Kv(a,!0),c=a.u.byteOffset+a.o;c=new DataView(a.u.buffer,c,Math.min(b,a.u.buffer.byteLength-c));c=new Fv(c,a.w+a.o);a.o+=b;return c};
Ov=function(a){for(var b=Kv(a,!0),c=Sv(a),d=1;d<b;d++)c=256*c+Sv(a);return c};
Qv=function(a){var b=Kv(a,!0),c=0;4==b?c=a.u.getFloat32(a.o):8==b&&(c=a.u.getFloat64(a.o));a.o+=b;return c};
Tv=function(a){var b=Kv(a,!0);return Ev(Rv(a,b))};
Sv=function(a){return a.u.getUint8(a.o++)};
Kv=function(a,b){var c=Sv(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+Sv(a);return c}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+Sv(a),d*=128;return b?c-d:c};
Pv=function(a){var b=Kv(a,!0);a.o+=b};
Nv=function(a){var b=a.o;a.o=0;var c=!1;try{Jv(a,440786851)&&(a.o=0,Jv(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.o=0,c=!1,g.No(d);else throw d;}a.o=b;return c};
Rfa=function(a){if(!Jv(a,440786851,!0))return null;var b=a.o;Kv(a,!1);var c=Kv(a,!0)+a.o-b;a.o=b+c;if(!Jv(a,408125543,!1))return null;Kv(a,!0);if(!Jv(a,357149030,!0))return null;var d=a.o;Kv(a,!1);var e=Kv(a,!0)+a.o-d;a.o=d+e;if(!Jv(a,374648427,!0))return null;var f=a.o;Kv(a,!1);var k=Kv(a,!0)+a.o-f,l=new Uint8Array(c+12+e+k),m=new DataView(l.buffer);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.u.buffer,
a.u.byteOffset+d,e),c+12);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+f,k),c+12+e);return l};
Uv=function(a){var b=a.o,c={Ju:1E6,Ku:1E9,duration:0,ru:0,xm:0};if(!Jv(a,408125543))return a.o=b,null;c.ru=Kv(a,!0);c.xm=a.w+a.o;if(Jv(a,357149030))for(var d=Iv(a);!Gv(d);){var e=Kv(d,!1);2807729==e?c.Ju=Ov(d):2807730==e?c.Ku=Ov(d):17545==e?c.duration=Qv(d):Pv(d)}else return a.o=b,null;a.o=b;return c};
Wv=function(a,b,c){var d=a.o,e=[];if(!Jv(a,475249515))return a.o=d,null;for(var f=Iv(a);Jv(f,187);){var k=Iv(f);if(Jv(k,179)){var l=Ov(k);if(Jv(k,183)){k=Iv(k);for(var m=b;Jv(k,241);)m=Ov(k)+b;e.push({fi:m,Bn:l})}}}if(0<e.length&&c==e[0].fi)for(Vv&&g.No(Error("opus_oboe")),b=0;b<e.length;b++)e[b].fi+=1;a.o=d;return e};
Xv=function(a){var b=a.o;a.o=0;var c=1E6;Hv(a,[408125543,357149030,2807729])&&(c=Ov(a));a.o=b;return c};
Sfa=function(a,b){var c=a.o;a.o=0;if(160!=a.u.getUint8(a.o)&&!Yv(a)||!Jv(a,160))return a.o=c,NaN;Kv(a,!0);var d=a.o;if(!Jv(a,161))return a.o=c,NaN;Kv(a,!0);Sv(a);var e=Sv(a)<<8|Sv(a);a.o=d;if(!Jv(a,155))return a.o=c,NaN;d=Ov(a);a.o=c;return(e+d)*b/1E9};
Yv=function(a){if(!Zv(a)||!Jv(a,524531317))return!1;Kv(a,!0);return!0};
Zv=function(a){if(Nv(a)){if(!Jv(a,408125543))return!1;Kv(a,!0)}return!0};
Hv=function(a,b){for(var c=0;c<b.length;c++){if(!Jv(a,b[c]))return!1;c!=b.length-1&&Kv(a,!0)}return!0};
Jv=function(a,b,c){c=void 0===c?!1:c;if(Gv(a))return!1;for(var d=a.o;Kv(a,!1)!=b;)if(Pv(a),d=a.o,Gv(a))return!1;c&&(a.o=d);return!0};
Lv=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};
Rv=function(a,b){var c=new Uint8Array(a.u.buffer,a.u.byteOffset+a.o,b);a.o+=b;return c};
$v=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
aw=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);return isNaN(b)||isNaN(c)?null:2===a.length&&(a=new $v(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null};
bw=function(a,b){return new $v(a,a+b-1)};
dw=function(a,b,c,d,e,f,k,l,m,n,p){this.o=b;this.range=c;this.type=a;this.F="";this.u=-1;this.F=d;this.u=0<=e?e:-1;this.startTime=f||0;this.duration=k||0;this.w=l||0;this.Na=0<=m?m:this.range?this.range.length:NaN;this.C=!!n;a=this.range?this.w+this.Na==this.range.length:void 0===p?!!this.Na:p;this.A=a;this.range?(this.G=this.startTime+this.duration*this.w/this.range.length,this.I=this.duration*this.Na/this.range.length,this.B=this.G+this.I):cw(this);this.P=[]};
cw=function(a){a.G=a.startTime;a.I=a.duration;a.B=a.G+a.I};
Tfa=function(a,b,c){var d=!(!b||b.o!=a.o||b.type!=a.type||b.u!=a.u);return c?d&&!!b&&(a.range&&b.range?b.range.end==a.range.end:b.range==a.range)&&b.w+b.Na==a.w+a.Na:d};
ew=function(a){return 1==a.type||2==a.type};
fw=function(a){return 3==a.type||6==a.type};
gw=function(a,b){return a.o==b.o?a.range&&b.range?a.range.start+a.w+a.Na==b.range.start+b.w:a.u==b.u?a.w+a.Na==b.w:a.u+1==b.u&&0==b.w&&a.A:!1};
hw=function(a,b){return gw(a,b)||Sd(a.B,b.G)||a.u+1==b.u&&0==b.w&&a.A?!0:!1};
iw=function(a){return a.u+(a.A?1:0)};
Ufa=function(a){1==a.length||(0,g.yi)(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new $v(a[0].range.start+a[0].w,b.range.start+b.w+b.Na-1)};
kw=function(a){a=jw(a);var b="";g.Cb(a,function(c,d){b+=d+"="+c+","});
return b.slice(0,-1)};
jw=function(a){var b={};b.itag=jt(a.o.info);b.type=a.type;b.seg=String(a.u);a.range&&(b.range=""+(a.range.start+a.w)+"-"+(a.range.start+a.w+a.Na-1));b.time=""+a.G.toFixed(1)+"-"+(a.G+a.I).toFixed(1);b.off=String(a.w);b.len=String(a.Na);a.A&&(b.end="1");a.C&&(b.eos="1");return b};
lw=function(a,b){var c=b.u;a.F="updateWithEmsg";a.u=c;b.C&&(a.C=b.C)};
mw=function(a,b){var c=b.Ka;a.F="updateWithSegmentInfo";a.u=c;if(a.startTime!=b.startTime||a.duration!=b.duration)a.startTime=b.startTime,a.duration=b.duration,cw(a)};
nw=function(a){var b=this;a=void 0===a?[]:a;this.o=[];this.w=this.u=0;this.A=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
ow=function(a,b){if(0===a.o.length)return!1;var c=a.o[a.o.length-1];return c&&c.buffer===b.buffer&&c.byteOffset+c.length===b.byteOffset};
pw=function(a,b){for(var c=g.q(b.o),d=c.next();!d.done;d=c.next())a.append(d.value)};
qw=function(a){a.A=void 0;a.u=0;a.w=0};
rw=function(a,b,c){a.isFocused(b);return b-a.w+c<=a.o[a.u].length};
tw=function(a){if(!a.A){var b=a.o[a.u];a.A=new DataView(b.buffer,b.byteOffset,b.length)}return a.A};
uw=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!rw(a,b,c)){var d=a.u,e=a.w;a.focus(b+c-1);e=new Uint8Array(a.w+a.o[a.u].length-e);for(var f=0,k=d;k<=a.u;k++)e.set(a.o[k],f),f+=a.o[k].length;a.o.splice(d,a.u-d+1,e);qw(a);a.focus(b)}d=a.o[a.u];return new DataView(d.buffer,d.byteOffset+b-a.w,c)};
vw=function(a,b,c){a=uw(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
ww=function(a){a=vw(a,0,-1);var b=new Uint8Array(a.length);b.set(a);return b};
xw=function(a,b){a.focus(b);return a.o[a.u][b-a.w]};
yw=function(a,b){a.focus(b);return rw(a,b,4)?tw(a).getUint32(b-a.w):256*(256*(256*xw(a,b)+xw(a,b+1))+xw(a,b+2))+xw(a,b+3)};
zw=function(a,b,c){this.info=a;this.o=b instanceof nw?b:new nw([b]);this.o.getLength();this.w=c;this.u=null;this.A=-1;this.B=0};
Aw=function(a){return uw(a.o)};
Bw=function(a,b){if(1!=a.info.o.info.containerType||0!=a.info.w||!a.info.A)return!0;for(var c=Aw(a),d=0,e=0;d+4<c.byteLength;){e=c.getUint32(d);if(!e)return!1;d+=e}return d!==c.byteLength?(b&&(b.lastboxlen=e.toString(),4<=c.byteLength&&(b.lastbytes=c.getUint32(c.byteLength-4).toString()),b.boxlen=d.toString(),b.bytelen=c.byteLength.toString()),!1):!0};
Cw=function(a,b,c){var d;if(!(d=!gw(a.info,b.info)||a.info.A)){if(c=void 0===c?!1:c)c=b.o,c=!(c.o.length?ow(a.o,c.o[0]):1);d=c}if(d)return null;c=new dw(a.info.type,a.info.o,a.info.range,a.info.F,a.info.u,a.info.startTime,a.info.duration,a.info.w,a.info.Na,a.info.C,a.info.A);d=b.info;c.Na+=d.Na;c.range&&(c.I+=d.I);c.B=d.B;c.A=d.A;c.C=c.C||d.C;d=new nw;pw(d,a.o);pw(d,b.o);c=new zw(c,d,a.w);c.u=b.u||a.u;if(a=c.info.range)a=c.o,a=!(1===a.o.length&&0<a.o[0].byteOffset);a&&(c.w=!1);return c};
Dw=function(a){g.nt(a.info.o.info)||a.info.o.info.Bc();if(-1!=a.A)return a.A;if(a.u&&mv(a.u))return a.A=mv(a.u),a.A;if(g.nt(a.info.o.info)){var b=Aw(a);for(var c=a.info.o.o,d=NaN,e=NaN,f=0;vv(b,f);){var k=wv(b,f);1936286840==k.type?e=k.data.getUint32(k.dataOffset+8):1836476516==k.type?e=rv(k):1952867444==k.type&&isNaN(d)&&(d=yv(k));f=xv(k.type)?f+8:f+k.size}!e&&c&&(e=tv(c));b=d/e}else b=new Fv(Aw(a)),c=a.w?b:new Fv(new DataView(a.info.o.o.buffer)),d=Xv(c),c=b.o,b.o=0,Yv(b)?Jv(b,231)?(d=Ov(b)*d/1E9,
b.o=c,b=d):(b.o=c,b=NaN):(b.o=c,b=NaN);a.A=b||a.info.G;return a.A};
Fw=function(a,b){0<a.B&&(b-=a.B);var c=Dw(a)+b;Ew(a,c);a.B=b};
Ew=function(a,b){g.nt(a.info.o.info)||a.info.o.info.Bc();a.A=b;if(g.nt(a.info.o.info)){for(var c=Aw(a),d=a.info.o.o,e=NaN,f=NaN,k=0;vv(c,k);){var l=wv(c,k);isNaN(e)&&(1936286840==l.type?e=l.data.getUint32(l.dataOffset+8):1836476516==l.type&&(e=rv(l)));if(1952867444==l.type){!e&&d&&(e=tv(d));var m=yv(l);isNaN(f)&&(f=Math.round(b*e)-m);m+=f;if(l.data.getUint8(l.dataOffset)){var n=l.data,p=l.dataOffset+4;n.setUint32(p,Math.floor(m/4294967296));n.setUint32(p+4,m&4294967295)}else l.data.setUint32(l.dataOffset+
4,m)}k=xv(l.type)?k+8:k+l.size}return!0}c=new Fv(Aw(a));e=a.w?c:new Fv(new DataView(a.info.o.o.buffer));d=b;f=Xv(e);e=c.o;c.o=0;if(Yv(c)&&Jv(c,231))if(k=Kv(c,!0),d=Math.floor(1E9*d/f),Math.ceil(Math.log(d)/Math.log(2)/8)>k)c=!1;else{for(f=k-1;0<=f;f--)c.u.setUint8(c.o+f,d&255),d>>>=8;c.o=e;c=!0}else c=!1;return c};
Gw=function(a){g.nt(a.info.o.info)||a.info.o.info.Bc();if(a.u&&6==a.info.type)return a.u.Fe;if(g.nt(a.info.o.info)){var b=Aw(a);var c=0;b=Cv(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=zv(d.value),c+=d.Pp[0]/d.Tp;c=c||NaN;if(!(0<=c))a:{c=Aw(a);b=a.info.o.o;d=0;for(var e,f=0;vv(c,d);){var k=wv(c,d);if(1836476516==k.type)e=rv(k);else if(1836019558==k.type){!e&&b&&(e=tv(b));if(!e){c=NaN;break a}var l=uv(k.data,k.dataOffset,1953653094),m=e,n=uv(l.data,l.dataOffset,1952868452);l=uv(l.data,
l.dataOffset,1953658222);var p=ev(n);ev(n);p&2&&ev(n);n=p&8?ev(n):0;var t=ev(l),u=t&1;p=t&4;var z=t&256,B=t&512,D=t&1024;t&=2048;var E=fv(l);u&&ev(l);p&&ev(l);for(var F=u=0;F<E;F++){var I=z?ev(l):n;B&&ev(l);p&&0==F||!D||ev(l);t&&ev(l);u+=I}f+=u/m}d=xv(k.type)?d+8:d+k.size}c=f||NaN}}else e=new Fv(Aw(a)),c=a.w?e:new Fv(new DataView(a.info.o.o.buffer)),c=Sfa(e,Xv(c));return c||a.info.I};
Hw=function(a){var b=Aw(a);var c=(c=g.pv(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.o.o,c=(b=g.pv(b,0,1836476516))?rv(b):a?tv(a):NaN);return c};
Iw=function(a){if(!a.u){g.nt(a.info.o.info)||a.info.o.info.Bc();if(g.nt(a.info.o.info)){var b=Aw(a),c=uv(b,0,1701671783);if(c){var d=Av(c);var e=d.oO;d=ov(d.uy);if(b=uv(b,c.offset+c.size,1701671783)){b=Av(b);for(var f in b)if(c=ov(b.uy),d&&c)for(var k in c)d[k]=c[k]}e=d?new lv(d,e):null}else e=null}else{e=new Fv(Aw(a));f=e.o;e.o=0;d=k=null;if(Hv(e,[408125543,307544935,29555,26568]))for(b=Iv(e);!Gv(b);)c=Kv(b,!1),17543==c?d=ov(Tv(b)):17827==c?k=Tv(b):Pv(b);e.o=f;e=d?new lv(d,k):null}a.u=e}};
Jw=function(){this.o=!1;this.u=0;this.nd=!1};
Kw=function(a,b){var c=void 0===b?{}:b,d=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.Ej?!1:c.Ej;var e=new Jw;e.o=a.fa("html5_streaming_xhr_no_mp4_holdback_chunk");e.u=g.Q(a.experiments,"html5_time_based_consolidation_ms");e.nd=d||c;return e};
g.Lw=function(){this.A=new Jw;this.HB=this.EB=!1;this.Jn=2;this.C=20971520;this.F=8388608;this.B=120;this.ya=3145728;this.V=62914560;this.za=10485760;this.Pn=this.Ca=0;this.G=NaN;this.Xf=0;this.Uh=this.Dv=2;this.Md=3;this.PC=2;this.aa=2097152;this.NC=1048576;this.da=!1;this.I=1800;this.Ic=5;this.Mc=10;this.U=15;this.ac=1;this.o=1.15;this.u=1.05;this.wo=!0;this.ba=!1;this.XC=.8;this.Zm=this.Sa=!1;this.Aa=6;this.cn=this.oa=!1;this.Wf=.5;this.pe=0;this.Rg=this.Ua=!1;this.od=this.Kc=0;this.Av=2;this.Ma=
5E3;this.pd=0;this.ma=!1;this.P=.5;this.qb=2;this.jb=this.xv=0;this.yv=1.5;this.zv=this.Uf=.5;this.sc=15;this.hn=1;this.fv=this.Sz=this.Ia=!1;this.Dn=0;this.Xm=this.fg=this.vv=this.JC=this.bn=this.uC=this.iC=this.Xz=!1;this.qd=0;this.hv=this.dn=this.qv=this.Xb=!1;this.Hc=0;this.Vc=this.Z=this.RB=this.Ih=this.L=this.yb=this.Ha=this.en=this.Ev=this.rd=this.ha=this.wv=this.Uc=this.lv=!1;this.Wm=!0;this.oe=!1;this.w="";this.wD=1048576;this.an=this.lo=this.Qb=this.R=!1;this.Jc=46800;this.Pa=this.cv=this.Sg=
this.vo=this.qc=this.ua=!1;this.Cv=!0;this.ga=this.Mk=this.MC=this.dv=this.Vf=this.Lk=this.Kk=this.tv=!1;this.Wb=0;this.Ym=""};
Vfa=function(a,b){1080<b.va().fc&&!a.EB&&(a.C=36700160,a.F=5242880,a.ya=10485760,a.aa=4194304,a.EB=!0);2160<b.va().fc&&!a.HB&&(a.C=104857600,a.G=13107200,a.HB=!0);a.NC=Math.max(65536,Math.min(a.aa,5*b.o))};
Wfa=function(){this.w=this.o=this.u=this.started=this.A=0};
Mw=function(a,b){a[b]||(a[b]=new Wfa);return a[b]};
Ow=function(a){a=a.split("");Nw.m9(a,17);Nw.td(a,3);Nw.u4(a,26);return a.join("")};
Pw=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.ar(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
Rw=function(a,b,c){return b&&b.test(a)||Qw&&c&&c.test(a)?!0:!1};
Tw=function(a){return(a=Sw&&Sw.exec(a))?a[0]:""};
Uw=function(a){var b=void 0===b?!1:b;return Pw(Rw(a,Xfa,null),a,b,"Trusted Stream URL")};
g.Vw=function(a){var b=void 0===b?!1:b;return Pw(Rw(a,Yfa,null),a,b,"Trusted Image URL")};
Ww=function(a){var b=void 0===b?!1:b;return Pw(Rw(a,Zfa,null),a,b,"Trusted Promoted Video Domain URL")};
Xw=function(a,b){b=void 0===b?!1:b;return Pw(Rw(a,$fa,null),a,b,"Captions URL")};
Yw=function(a){a=new g.Um(a);g.Vm(a,document.location.protocol);g.Wm(a,document.location.hostname);document.location.port&&g.Xm(a,document.location.port);return a.toString()};
Zw=function(a){a=new g.Um(a);g.Vm(a,document.location.protocol);return a.toString()};
$w=function(a){this.u=a;this.A=this.path=this.w="";this.o={};this.url=""};
bx=function(a){ax(a);return a.A};
cx=function(a){ax(a);return"local"===a.w};
dx=function(a){ax(a);return Fb(a.o,function(b){return null!==b})};
ex=function(a){ax(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=a.jc();b=new g.Um(c);var d=a.get("fvip");a=decodeURIComponent(a.get("mn")||"").split(",");if(d&&a&&1<a.length&&a[1])return c=b.o.replace(/^[^.]*/,""),g.Wm(b,"r"+d+"---"+a[1]+c),b=new $w(b.toString()),b.set("fallback_count","1"),b;d=b.o.match("\\.a1\\.googlevideo\\.com$");b.o.match("\\.googlevideo\\.com$")?(g.Wm(b,"redirector.googlevideo.com"),c=b.toString()):b.o.match("r[1-9].*\\.c\\.youtube\\.com$")?
(g.Wm(b,"www.youtube.com"),c=b.toString()):c=Yw(c);b=new $w(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
ax=function(a){if(a.u){if(!Uw(a.u)&&!a.u.startsWith("local"))throw Error("Untrusted URL: "+a.u);var b=g.bn(a.u);a.w=b.B;a.A=b.o+(null!=b.A?":"+b.A:"");var c=b.u;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.o;a.o=fx(c);g.Ua(a.o,gx(b.w.toString()));g.Ua(a.o,d);"index.m3u8"===a.o.file&&(delete a.o.file,a.path+=
"/file/index.m3u8");a.u="";a.url=""}};
aga=function(a){ax(a);var b=a.w+(a.w?"://":"//")+a.A+a.path;if(dx(a)){var c=[];g.Cb(a.o,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
fx=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&hx(c,a[b],a[b+1]);return c};
gx=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?hx(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
hx=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};
ix=function(a){this.Je=a;this.o={};this.url=""};
cga=function(a,b){var c=b.indexOf("?");if(0<c){var d=gx(b.substr(c+1));g.Cb(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}c=fx(b);g.Cb(c,function(e,f){this.set(f,e)},a)};
dga=function(a){var b=a.Je.jc(),c=[];g.Cb(a.o,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=dx(a.Je)?"&":"?";return b+a+d};
jx=function(a,b){var c=new $w(b),d=c.get("req_id");d&&a.set("req_id",d);g.Cb(a.o,function(e,f){c.set(f,null)});
return c};
ega=function(a){this.A=a.clone();this.o=a;this.w=null;this.B=this.u=0};
lx=function(a,b,c){var d=Mw(c,bx(a.o));if(d.u>=b.Av||1<=d.o)if(a=kx(a),c=Mw(c,bx(a)),c.u+c.o<=d.u+d.o)return!0;return!1};
fga=function(a,b){var c=b?kx(a):a.o;return new ix(c)};
kx=function(a){a.w||(a.w=ex(a.A));return a.w};
mx=function(a){return 1<a.u?a.B+1E3*Math.pow(1.6,a.u-1)<(0,g.N)():!0};
g.nx=function(a,b,c){b.Je===a.o&&(a.o=jx(b,c));b.Je===a.w&&(a.w=jx(b,c))};
ox=function(a,b){this.u=a[0].o.u;this.w=b||"";this.B="";this.o=a;this.range=this.o[0].range&&0<this.o[0].Na?Ufa(this.o):null;this.A=this.yd=NaN;this.C=this.requestId=null};
px=function(a){return!ew(a.o[a.o.length-1])};
qx=function(a){return 4==a.o[a.o.length-1].type};
g.rx=function(a,b,c,d){if(a.B)var e=new ix(new $w(a.B));else/http[s]?:\/\//.test(a.w)?e=new ix(new $w(a.w)):(b=null===a.C?lx(a.u,b,c):a.C,e=fga(a.u,b),a.w&&cga(e,a.w));(d=d||a.range)&&e.set("range",d.toString());a.requestId&&e.set("req_id",a.requestId);isNaN(a.yd)||e.set("headm",a.yd.toString());isNaN(a.A)||e.set("mffa",a.A+"ms");a.F&&g.Cb(a.F,function(f,k){e.set(k,f)});
return e};
sx=function(a){if(a.range)return a.range.length;a=a.o[0];return Math.round(a.I*a.o.info.o)};
gga=function(a,b,c){return a.range?new $v(a.range.start+b,a.range.end):bw(b,c)};
tx=function(a,b,c,d){this.info=b;this.initRange=c||null;this.indexRange=d||null;this.o=null;this.B=!1;this.C=null;this.I=0;this.u=new ega(a);this.A=null;this.P=NaN;this.w=null};
ux=function(a,b,c,d,e,f){f=void 0===f?0:f;tx.call(this,a,b,d);this.index=e||new g.$u;this.Fe=f;this.R=c;this.G=!0;if(this.F=!c)this.B=!0};
vx=function(){return!("function"!==typeof window.fetch||!window.ReadableStream)};
wx=function(a){if(a.ol())return!1;a=a.fd("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
xx=function(a){return a.A.nd||a.A.nd?a.ba&&vx()?3:2:a.fg?-1:1};
yx=function(a){var b=void 0===a?{}:a;a=void 0===b.Fe?0:b.Fe;var c=void 0===b.Wv?!1:b.Wv,d=void 0===b.vr?0:b.vr,e=void 0===b.Id?0:b.Id,f=void 0===b.Ag?Infinity:b.Ag,k=void 0===b.ty?0:b.ty;b=void 0===b.ze?!1:b.ze;this.segments=[];this.o=a;this.C=d;this.u=c;this.w=-1;this.B=e;this.I=f;this.A=null;this.G=k;this.F=b};
Ax=function(a,b,c){b=zx(a,b);return 0<=b&&(c||!a.segments[b].pending)};
zx=function(a,b){return tb(a.segments,function(c){return b-c.Ka})};
Bx=function(a,b,c){c=void 0===c?{}:c;ux.call(this,a,b,"",void 0,void 0,c.Fe||0);this.index=new yx(c);this.L=c.vr||-1;this.U=c.ze||!1};
hga=function(a,b,c,d,e){this.Ka=a;this.startSecs=b;this.durationSecs=c;this.o=d||NaN;this.u=e||NaN};
Cx=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""};
Dx=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};
Ex=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(Number(b[2])|0)+60*(Number(b[4])|0)+(Number(b[6])|0):Number(a)|0};
Fx=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
Gx=function(){this.o=[];this.u=null;this.B=0;this.A=[];this.w=!1;this.C="";this.F=0};
iga=function(a){var b=a.A;a.A=[];return b};
jga=function(){this.A=[];this.o=null;this.u={};this.w={}};
nga=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=kga(a):"AdaptationSet"==f.nodeName?k=lga(a,f.attributes.id?f.attributes.id.value:f.attributes.mimetype.value):"Representation"==f.nodeName&&(k=mga(a,f.attributes.id.value));if(null==k)return;k.update(e,c);lb(d,iga(k))}lb(a.A,d);paa(a.A,function(l){return 1E3*l.startSecs+l.o})};
oga=function(a){a.o&&(a.o.o=[]);g.Cb(a.u,function(b){b.o=[]});
g.Cb(a.w,function(b){b.o=[]})};
kga=function(a){a.o||(a.o=new Gx);return a.o};
lga=function(a,b){a.u[b]||(a.u[b]=new Gx);return a.u[b]};
mga=function(a,b){a.w[b]||(a.w[b]=new Gx);return a.w[b]};
Hx=function(a,b,c,d,e){tx.call(this,a,b,d||void 0,e||void 0);this.index=new g.$u;this.F=c};
Ix=function(a,b,c){var d=a.index.Pr(b),e=a.index.gd(b),f=a.index.getDuration(b),k;c?f=k=0:0<a.info.o&&(k=a.info.o*f);c=b==a.index.gb()&&0<k;a=new dw(3,a,null,"otfCreateRequestInfoForSegment",b,e,f,0,k,c);return new ox([a],d)};
pga=function(a,b){if(!a.index.Gb()){for(var c=[],d=b.F,e=b.G.split(",").filter(function(t){return 0<t.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 Zu(p,f,k,NaN,"sq/"+(p+1)));f+=k;l--}a.index.append(c)}};
g.Jx=function(){this.o=0;this.u=new Float64Array(128);this.w=new Float64Array(128);this.B=1;this.A=!1};
Kx=function(a){if(a.u.length<a.o+1){var b=2*a.u.length;b+=2;var c=a.u;a.u=new Float64Array(b+1);var d=a.w;a.w=new Float64Array(b+1);for(b=0;b<a.o+1;b++)a.u[b]=c[b],a.w[b]=d[b]}};
Lx=function(a,b,c,d,e,f){tx.call(this,a,b,c||void 0,d||void 0);this.G=null;this.index=new g.Jx;this.F=e;this.lastModified=f};
Mx=function(a,b,c,d){for(var e=[];b<=a.index.gb();b++){var f=a.index,k=b;f=bw(f.Xo(k),k+1<f.o||f.A?f.u[k+1]-f.u[k]:-1);k=a.index.gd(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),p=b==a.index.gb()&&m+n==f.length;e.push(new dw(3,a,f,"getRequestInfoForRange_",b,k,l,m,n,p));if(f.start+m+n>=c+d)break}return new ox(e)};
qga=function(a,b){return g.Nx(function(c,d){return g.pr(c,d,4,1E3)},a,b)};
g.Ox=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=Ev(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
g.Nx=function(a,b,c){return a(b,c).then(function(d){var e=g.Ox(d);return e?g.Nx(a,e,c):d})};
Px=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.O.call(this);this.aa=this.duration=0;this.ze=this.Z=this.isLive=this.w=!1;this.Ag=this.Id=0;this.Hl=this.Df=!1;this.P=(0,g.N)();this.F=Infinity;this.o={};this.sourceUrl=a||"";this.C=this.R=0;this.B=null;this.ga=!!b&&g.P(b,"html5_live_nonzero_first_segment_start_time");this.u=!1;this.L=[];this.ma=!!b&&g.P(b,"html5_live_self_init_segments");this.A=null;this.oa=c;this.da=!b||!g.P(b,"html5_manifest_without_credentials");this.G=
0;this.V=!!b&&g.P(b,"disable_html5_manifest_namespace_redux");this.ba="";this.I=NaN;this.ha=b&&g.P(b,"disable_html5_duration_caching")?Infinity:10;this.U=0};
Qx=function(a){return Fb(a.o,function(b){return!!b.info.zc})};
rga=function(a){return Fb(a.o,function(b){return qt(b.info.mimeType)})};
sga=function(a){return Gb(a.o,function(b){return b.info.video?b.tp():!0})};
Rx=function(a){return Fb(a.o,function(b){return cx(b.u.o)})};
Sx=function(a,b){a.o[b.info.id]=b};
tga=function(a,b,c,d){c=void 0===c?0:c;var e=new Px("",d,!1);e.duration=c||0;(0,g.y)(a,function(f){var k=Tx(f,b,e.duration),l=aw(f.init),m=aw(f.index),n=parseInt(f.clen,10),p=Ux(f.url,f.sp,f.s,d);f=parseInt(f.lmt,10);p&&Sx(e,new Lx(p,k,l,m,n,f))});
return e};
uga=function(a,b,c,d){c=void 0===c?0:c;var e=new Px("",d,!1);e.duration=c||0;(0,g.y)(a,function(f){var k=Tx(f,b,e.duration),l=Ux(f.url,f.sp,f.s,d);if(!g.nt(k)){var m=d&&g.P(d,"html5_manifestless_vp9_otf"),n=d&&g.P(d,"html5_otf_webm_audio_killswitch");if(!m||!k.isVideo()&&n)return}l&&(k.video&&3==k.video.streamType?Sx(e,new Hx(l,k,"sq/0",null,null)):(m=aw(f.init),f=aw(f.index),Sx(e,new Hx(l,k,"",m,f))))});
e.Hl=!0;return e};
vga=function(a,b,c,d){var e=new Px("",d,!0);(0,g.y)(a,function(f){var k=Tx(f,c),l=Ux(f.url,f.sp,f.s,d),m=parseInt(f.target_duration_sec,10)||5;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.Id=e.Id||n;e.Ag=e.Ag||p;var t=!qt(k.mimeType),u=d&&g.Q(d,"html5_manifestless_max_segment_history");l&&Sx(e,new Bx(l,k,{Fe:m,Wv:t,vr:f,Id:n,Ag:p,ty:u,ze:b}))});
e.w=!b;e.Df=!0;e.u=!0;e.isLive=!b;e.ze=b;e.Z=!!e.Id&&!!e.Ag&&isFinite(e.Ag);return e};
Tx=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 et(+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===Vx&&(Vx=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((Vx||Wx)&&('video/webm; codecs="vp9"'==d||'video/webm; codecs="vp9.2"'==d)){var m="00",n="08",p="01",t="01",u="01";'video/webm; codecs="vp9.2"'==d&&(m="02",n="10","bt2020"==l.primaries&&(u=p="09"),"smpte2084"==l.o&&(t="16"),"arib-std-b67"==l.o&&(t="18"));d=["vp09",m,"51",n,"01",p,t,u].join(".");Xx&&(d+=".00");d='video/webm; codecs="'+d+'"'}}m=l=null;pt(d)&&(l=new bt(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type),a.name&&(m=new Ys(a.name,a.audio_track_id,"1"==a.isDefault)));
a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(f=new rfa(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(",")),t=a.next();!t.done;t=a.next())t=t.value,p[t]=b[t];return new kt(e,d,l,k,m,p,n,c,f)};
wga=function(a){return pj(a,function(b){return 3==+b.stream_type})?3:0};
Yx=function(a,b){return a.B?nb(a.B.A,b):a.L.length?nb(a.L,b):[]};
Ux=function(a,b,c,d){b=void 0===b?"":b;c=void 0===c?"":c;a=new $w(a);a.set("alr","yes");c&&(c=Ow(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));d&&g.P(d,"html5_enable_hancedenay_iphersay")&&(d=a.get("n"))&&(d=pea(d),a.set("n",d));return a};
ay=function(a,b){var c=Cx(b,"id");c=c.replace(":",";");var d=Cx(b,"mimeType"),e=Cx(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=parseInt(Cx(b,"bandwidth"),10)/8;var f=parseInt(Dx(b,"BaseURL").getAttribute(Zx(a,"contentLength")),10);f=a.duration&&f?f/a.duration:0;var k=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){k=parseInt(Cx(b,"width"),10);var l=parseInt(Cx(b,"height"),10),m=parseInt(Cx(b,"frameRate"),10),n=xga(Cx(b,Zx(a,"projectionType")));a:switch(Cx(b,Zx(a,"stereoLayout"))){case "layout_left_right":var p=
1;break a;case "layout_top_bottom":p=2;break a;default:p=0}Cx(b,"video_level");k=new et(k,l,m,n,p,void 0,void 0,void 0,void 0)}m=l=null;if(pt(d))if(l=parseInt(Cx(b,"audioSamplingRate"),10),m=parseInt(Cx(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10),n=yga(Cx(b,Zx(a,"spatialAudioType"))),l=new bt(l,m,n),m=Cx(b,"lang")||"und",n=Dx(b,"Role")){var t=Cx(n,"value")||"";Lb($x,t)?(n=m+"."+$x[t],p="main"==t,m=Cx(b,Zx(a,"langName"))||m+" - "+t,m=new Ys(m,n,p)):m=null}else m=null;p=null;
if(n=Dx(b,"ContentProtection"))if(g.ll())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 kt(c,d,l,k,m,p,e,f)};
xga=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}};
yga=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}};
by=function(a,b){b=void 0===b?"":b;a.C=1;a.P=(0,g.N)();return Of(qga(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.da}).then((0,g.x)(a.lF,a)),(0,g.x)(a.oF,a))};
zga=function(a,b,c){return by(new Px(a,b,c),a)};
Aga=function(a,b,c){var d=a.getAttribute("media"),e=null;c||(a=a.getAttribute("mediaRange"),null!=a&&(c=a.split("-"),0<=parseInt(c[1],10)?e=aw(a):d=d+"?range="+a));return new Zu(b.Ka,b.startSecs,b.durationSecs,b.o,d,e,b.u)};
cy=function(a){return a.isLive&&(0,g.N)()-a.P>=a.F};
dy=function(a){var b=a.F;isFinite(b)&&(cy(a)?a.refresh():(b=Math.max(0,a.P+b-(0,g.N)()),a.A||(a.A=new g.H(a.refresh,b,a),g.C(a,a.A)),a.A.start(b)))};
Bga=function(a){a=a.o;for(var b in a){var c=a[b].index;if(c.Gb())return c.gb()+1}return 0};
ey=function(a){if(!isNaN(a.I))return a.I;var b=a.o,c;for(c in b){var d=b[c].index;if(d.Gb()){b=0;for(c=d.Pe();c<=d.gb();c++)b+=d.getDuration(c);b/=d.xj();b=.5*Math.round(b/.5);d.xj()>a.ha&&(a.I=b);return b}if(a.isLive&&(d=b[c],d.Fe))return d.Fe}return NaN};
fy=function(a,b){for(var c in a.o){var d=a.o[c].index;if(d.Gb()){var e=d.Qe(b),f=d.jt(e);if(f)return f+b-d.gd(e)}}return NaN};
Cga=function(a,b){var c=Ob(a.o,function(e){return e.index.Gb()});
if(!c)return NaN;c=c.index;var d=c.Qe(b);return c.gd(d)==b?b:d<c.gb()?c.gd(d+1):NaN};
Dga=function(a,b){g.Cb(a.o,function(c){g.Cb(b,function(d,e){var f=c.u;f.o.set(e,d);f.A.set(e,d);f.w&&f.w.set(e,d)})})};
Zx=function(a,b){return a.V?"yt:"+b:a.ba+":"+b};
Ega=function(a){return g.$a(Object.values(a.o),function(b){return b.info.zc&&b.info.video?480<b.info.video.fc&&"H"==b.info.u:!1})};
gy=function(){g.O.call(this);this.o={}};
Fga=function(){this.o=0};
Gga=function(a,b){this.o=new Uint8Array(a.buffer,0,16);this.u=new Uint8Array(a.buffer,16);this.encryptedClientKey=b};
hy=function(a){try{return g.hg(a)}catch(b){return null}};
Hga=function(a){try{var b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?hy(b.clientKey):null;var c=b.encryptedClientKey?hy(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.N)():null;a&&c&&d&&(this.o=new Gga(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=hy(b.onesieUstreamerConfig));this.baseUrl=b.baseUrl}};
Iga=function(){var a=g.Ls("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.Pd(Math.floor(b),0,100),muted:!!a.muted}};
iy=function(a){g.Ks("yt-player-bandwidth",a,2592E3)};
jy=function(a){if(a=void 0===a?0:a)try{var b=JSON.parse(window.localStorage["yt-player-quality"]);if((0,g.N)()-b.creation>1E3*a)return"auto"}catch(c){}return g.Ls("yt-player-quality")||"auto"};
ky=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
ly=function(){return g.Ls("yt-player-performance-cap")||{}};
my=function(a){g.Ks("yt-player-watch-later-pending",a)};
ny=function(){return g.Ls("yt-player-headers-readable")||!1};
oy=function(a){g.Ks("yt-player-playback-on-reload",a)};
py=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
qy=function(a){this.u=this.A=0;this.alpha=Math.exp(Math.log(.5)/a)};
sy=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.A=!1;this.C=!0;this.u=Math.round(a*this.resolution);this.values=Array(this.u);for(a=0;a<this.u;a++)this.values[a]=Infinity;this.G=ry(this);this.B=c;this.F=d};
ry=function(a){for(var b=Array(a.u),c=0;c<a.u;c++)b[c]=c;return b};
ty=function(a,b){if(!a.A&&0===a.valueIndex)return 0;a.C&&(g.ub(a.G,function(c,d){return a.values[c]-a.values[d]}),a.C=!1);
return a.values[a.G[Math.round(b*((a.A?a.u:a.valueIndex)-1))]]||0};
Jga=function(a){var b=new Fga;this.policy=a;this.P=b;this.G=this.L=0;this.A=-1;this.C=this.F=uy();this.B=new sy(4,1,.6,.4);this.o=new sy(10,1,.5,.4);this.u=a.u?new qy(a.o):new sy(a.o,20,.5,.4);this.I=new sy(5,1,.25);this.w=new sy(30,1,.5);a=g.Ls("yt-player-bandwidth")||{};this.u.w(this.policy.A,0<a.byterate?a.byterate:this.policy.w);0<a.delay&&this.B.w(1,Math.min(+a.delay,2));0<a.stall&&this.o.w(1,+a.stall);0<a.init&&(this.C=Math.min(a.init,this.C));this.A=uy()};
vy=function(a,b,c,d,e,f){f=void 0===f?!1:f;a.I.w(b,c/b);f||(a.F=uy());e||a.w.w(1,b-d)};
wy=function(a){a=a.B.o();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
yy=function(a,b,c){isNaN(c)||(a.G+=c);isNaN(b)||(a.L+=b)};
zy=function(a){a=a.u.o();return 0<a?a:1};
Ay=function(a){var b=zy(a);b=1/((a.o.o()||0)+1/b);a=a.I.o();return Math.max(b,0<a?a:1)};
By=function(a){return{delay:wy(a),stall:a.o.o()||0,byterate:zy(a),init:a.C}};
Cy=function(a){-1<a.A&&3E4<uy()-a.A&&(iy(By(a)),a.A=uy())};
Dy=function(a){return 4E3<=uy()-a.F};
Kga=function(){this.o=17;this.w=13E4;this.A=.5;this.u=!1};
S=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
Ey=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
Fy=function(a,b){return void 0===b||null===b?a:Number(b)};
Gy=function(a,b){return void 0===b||null===b?a:b.toString()};
Hy=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}if(a){var c=a.match(Lga);if(c){var d=Number(c[2]);c=Number(c[1]);if(!isNaN(d)&&!isNaN(c)&&0<d)return c/d}}return NaN};
Iy=function(a){var b=a.docid||a.video_id||a.videoId||a.id;return b?b:(a=a.raw_player_response)&&a.videoDetails&&a.videoDetails.videoId||null};
fz=function(a,b){g.A.call(this);a=a?g.Sb(a):{};this.yb=this.Ca="";this.qd=Gy("",a.csp_nonce);this.experiments=new Dfa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.Ia=b?b.serializedForcedExperimentIds:a.forced_experiments||void 0;Qw=this.fa("web_player_deprecated_uvr_killswitch");try{var c=document.location.toString()}catch(m){c=""}this.Xb=c;this.Hc=(c=window.location.ancestorOrigins)?Array.from(c):[];this.u=S(!1,a.is_embed);this.deviceParams={};b&&b.device?(c=b.device,
c.brand&&(this.deviceParams.cbrand=c.brand),c.browser&&(this.deviceParams.cbr=c.browser),c.browserVersion&&(this.deviceParams.cbrver=c.browserVersion),this.deviceParams.c=c.interfaceName||"WEB",this.deviceParams.cver=c.interfaceVersion||"html5",c.interfaceTheme&&(this.deviceParams.ctheme=c.interfaceTheme),this.deviceParams.cplayer=c.interfacePlayerType||"UNIPLAYER",c.model&&(this.deviceParams.cmodel=c.model),c.network&&(this.deviceParams.cnetwork=c.network),c.os&&(this.deviceParams.cos=c.os),c.osVersion&&
(this.deviceParams.cosver=c.osVersion),c.platform&&(this.deviceParams.cplatform=c.platform)):(this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER");this.loaderUrl=this.u||"TVHTML5_SIMPLY_EMBEDDED_PLAYER"==this.deviceParams.c&&a.loaderUrl?Gy("",a.loaderUrl):this.Xb;this.w=Rw(this.loaderUrl,Mga,null);c=this.loaderUrl;var d=void 0===d?!1:d;this.en=Pw(Rw(c,Nga,null),c,d,"Trusted Ad Domain URL");this.ba=S(!1,a.privembed);this.protocol=0==this.Xb.indexOf("http:")?
"http":"https";this.G=Tw((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||Tw(this.Xb)||this.protocol+"://www.youtube.com/";d=b?b.eventLabel:a.el;c="detailpage";"adunit"==d?c=this.u?"embedded":"detailpage":"embedded"==d||this.w?c=Ey(c,d,Oga):d&&(c="embedded");this.aa=c;gq();d=null;c=b?b.playerStyle:a.ps;var e=g.cb(Jy,c);!c||e&&!this.w||(d=c);this.playerStyle=d;this.P=(this.B=g.cb(Jy,this.playerStyle))&&"area120-boutique"!=this.playerStyle&&"play"!=this.playerStyle&&"jamboard"!=this.playerStyle;this.dn=
!this.P;this.L=S(!1,a.disableplaybackui);if(d=!this.L||!this.fa("web_player_disable_ui_speed_killswitch"))Et().defaultPlaybackRate?Ky||g.Ly||My?(d=g.ku&&$n("20")||g.Gt&&$n("4")||g.Ah&&$n("11"))||(d=/WebKit\/([0-9]+)/.exec(g.Lc),d=!!(d&&602<=parseInt(d[1],10))):d=!(g.Ah&&!il("chrome")||Ky||il("android")||il("silk")):d=!1;this.Ha=d;this.o=S("blazer"==this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.o?d=!0:(d=parseInt((0,g.G)()/1E3,10),c=Dr.getInstance(),d=this.fa("block_desktop_background_playback_with_mobile_cookie")&&
c&&d>parseInt(c.get("dhmu",d.toString()),10));this.cn=d;this.ua="3"==this.controlsType||this.o||S(!1,a.use_media_volume);this.R=Kt();this.Pn=g.Ny;this.Uf=S(!1,a.opt_out_deprecation);var f;b?void 0!=b.hideInfo&&(f=!b.hideInfo):f=a.showinfo;this.Sg=g.Oy(this)&&!this.Uf||S(!Py(this)&&!Qy(this)&&!this.B,f);this.Vf=b?!!b.mobileIphoneSupportsInlinePlayback:S(!1,a.playsinline);f=this.o&&Ry&&0<Sy&&2.3>=Sy;d=b?b.useNativeControls:a.use_native_controls;c=this.o;d=Ty(this)||!f&&S(c,d)?"3":"1";this.controlsType=
"0"!=(b?b.controlsType:a.controls)?d:"0";this.Ua=this.o;this.color=Ey("red",a.color,Pga);this.Dn="3"==this.controlsType||S(!1,a.modestbranding)&&"red"==this.color;this.ma=!this.u;this.Uh=(d=!this.ma&&!Qy(this)&&!this.P&&!this.B&&!Py(this))&&!this.Dn&&"1"==this.controlsType;this.Aa=g.Uy(this)&&d&&"0"==this.controlsType&&!this.Uh;this.wo=this.Jn=f;this.Kk=Vy&&!g.Nd(601)?!1:!0;this.bn=this.u||!1;this.Pa=Qy(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=Gy("",
a.widget_referrer);this.ac=(!this.w||S(!0,a.enablecastapi))&&"1"==this.controlsType&&!this.o&&(Qy(this)||g.Uy(this)||g.Wy(this))&&!g.Xy(this)&&!Yy(this);this.vo=Jt()||It();f=b?!!b.supportsAutoplayOverride:S(!1,a.autoplayoverride);this.Uc=!this.o&&!il("nintendo wiiu")&&!il("nintendo 3ds")||f;f=b?!!b.enableMutedAutoplay:S(!1,a.mutedautoplay);d=this.fa("embeds_enable_muted_autoplay")&&g.Oy(this);this.Vc=f&&d&&this.R&&!Ty(this);f=(Qy(this)||Py(this))&&"blazer"==this.playerStyle;this.qc=b?!!b.disableFullscreen:
!S(!0,a.fs);this.da=!this.qc&&(f||Jr());this.Xm=this.fa("uniplayer_block_pip")&&jl()&&$n(58)&&!(g.Ly&&il("version/"));f=g.Oy(this)&&!this.Uf;var k;b?void 0!=b.disableRelatedVideos&&(k=!b.disableRelatedVideos):k=a.rel;this.za=f||S(!this.B,k);this.Rg=S(!1,a.co_rel);this.C=g.Ly&&il("version/")&&0<Sy&&4.4>=Sy?"_top":"_blank";this.Sa=g.Wy(this);this.Kc="blazer"==this.playerStyle;switch(this.playerStyle){case "blogger":k="bl";break;case "gmail":k="gm";break;case "books":k="gb";break;case "docs":k="gd";
break;case "duo":k="gu";break;case "google-live":k="gl";break;case "google-one":k="go";break;case "play":k="gp";break;case "chat":k="hc";break;case "hangouts-meet":k="hm";break;case "photos-edu":case "picasaweb":k="pw";break;default:k="yt"}this.V=k;this.Nc=Gy("",a.authuser);var l;b?void 0!=b.disableWatchLater&&(l=!b.disableWatchLater):l=a.showwatchlater;this.Ph=(this.u&&!this.ba||!!this.Nc)&&S(!this.P,this.w?l:void 0);this.Wb=b?!!b.disableKeyboardControls:S(!1,a.disablekb);this.rd=Gy("",a.ecver);
this.loop=S(!1,a.loop);this.pageId=Gy("",a.pageid);this.lo=S(!0,a.canplaylive);this.vg=S(!1,a.livemonitor);this.disableSharing=S(this.B,b?b.disableSharing:a.ss);(l=a.video_container_override)?(k=l.split("x"),2!==k.length?l=null:(l=Number(k[0]),k=Number(k[1]),l=isNaN(l)||isNaN(k)||0>=l*k?null:new g.Vd(l,k))):l=null;this.Lk=l;this.mute=b?!!b.startMuted:S(!1,a.mute);this.Mc=!this.mute&&S("0"!=this.controlsType,a.store_user_volume);l=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy=
"3"==this.controlsType?3:Ey(void 0,l,Zy);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":Gy("",a.cc_lang_pref);l=Ey(2,a.cc_load_policy,Zy);"3"==this.controlsType&&2==l&&(l=3);this.Yg=l;this.Ic=b?b.hl||"en_US":Gy("en_US",a.hl);this.region=b?b.contentRegion||"US":Gy("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":Gy("en",a.host_language);this.Wm=!this.ba&&Math.random()<g.Q(this.experiments,"web_player_api_logging_fraction");this.Z=!this.ba;this.Md=new Set;this.deviceHasDisplay=
S(!0,a.deviceHasDisplay);this.rh=Fy(this.rh,a.ismb);l=a;g.Dt(this.experiments,"html5_qoe_intercept")?l=g.Dt(this.experiments,"html5_qoe_intercept"):this.dn?(l=l.vss_host||"s.youtube.com",this.fa("www_for_videostats")&&"s.youtube.com"==l&&(l=$y(this.G)||"www.youtube.com")):l="video.google.com";this.Mk=l;this.Yd(a,!0);this.I=new gy;g.C(this,this.I);this.F=this.o&&!this.fa("enable_svg_mode_on_embed_mobile");l=b?b.innertubeApiKey:Gy("",a.innertube_api_key);k=b?b.innertubeApiVersion:Gy("",a.innertube_api_version);
f=b?b.innertubeContextClientVersion:Gy("",a.innertube_context_client_version);this.ug={innertubeApiKey:g.L("INNERTUBE_API_KEY",void 0)||l,innertubeApiVersion:g.L("INNERTUBE_API_VERSION",void 0)||k,Sx:g.L("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Hj:this.deviceParams.c,innertubeContextClientVersion:g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0)||f,Cl:this.hostLanguage,Bl:this.region,mo:g.L("INNERTUBE_HOST_OVERRIDE",void 0)||"",Ux:!!g.L("INNERTUBE_USE_THIRD_PARTY_AUTH",!1)};this.Xf=void 0!=window.WebKitPlaybackTargetAvailabilityEvent;
this.A=new hu(this.experiments,this.fa("html5_force_hfr_support")?!0:az(this)||nl()||ol()||bz(this),g.Gt&&g.Nd(56)||g.ku&&g.Nd(54)||bz(this));l=this.rh;k=this.experiments;f=new Kga;g.cz(this)&&(f.u=!0,f.A=.1);g.P(k,"html5_ewma_bandwidth_estimator")&&(f.u=!0);g.P(k,"html5_pctile_bandwidth_estimator")&&(f.u=!1);l&&(f.w=l/8);f.o=g.Q(k,"html5_bandwidth_window_size")||f.o;this.schedule=new Jga(f);this.enableSafetyMode=S(!1,a.enable_safety_mode);this.jb=S(this.L?!1:Qy(this)&&"blazer"!=this.playerStyle,
a.allow_autonav);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:S(!1,a.send_visitor_id_header);this.Xg=!1;this.Wf=Gu;this.oa=(0,g.N)();this.ga=0;this.se=!1;this.Ym=S(!1,"docs"==this.playerStyle?a.disable_native_context_menu:void 0);this.an=az(this)&&this.fa("enable_skip_intro_button");this.embedConfig=Gy("",a.embed_config);this.oe=!1;this.sc=S(!1,a.full_window);this.Zm=S(!1,a.embedding_app);this.ya=!g.dz(this)&&!ez(this)&&!g.Xy(this)&&!Yy(this);this.livingRoomAppMode=a.living_room_app_mode;this.transparentBackground=
b?!!b.transparentBackground:S(!1,a.transparent_background);this.useFastSizingOnWatchDefault=S(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default);this.showMiniplayerButton=b?!!b.showMiniplayerButton:S(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:S(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:S(!1,a.use_miniplayer_ui);this.showBackButton=S(!1,a.showbackbutton);this.Ma=!1;this.hn=1E-4>Math.random();
this.Jc=a.onesie_hot_config?new Hga(a.onesie_hot_config):void 0;this.isTectonic=!!a.isTectonic};
gz=function(a,b){return!a.B&&jl()&&$n(55)&&"3"==a.controlsType&&!b};
g.hz=function(a){a=$y(a.G);return"www.youtube-nocookie.com"==a?"www.youtube.com":a};
g.iz=function(a){return g.Xy(a)?"music.youtube.com":g.hz(a)};
jz=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
kz=function(a){return Qy(a)&&!g.dz(a)};
Ty=function(a){return Vy&&!a.Vf||il("nintendo wiiu")||il("nintendo 3ds")?!0:!1};
Yy=function(a){return"area120-boutique"==a.playerStyle};
g.Xy=function(a){return"music-embed"==a.playerStyle};
g.cz=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"==a.deviceParams.cplatform};
bz=function(a){return"CHROMECAST ULTRA/STEAK"==a.deviceParams.cmodel||"CHROMECAST/STEAK"==a.deviceParams.cmodel};
g.lz=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
az=function(a){return"web"==a.deviceParams.c.toLowerCase().substr(0,3)};
g.mz=function(a){return"WEB"==a.deviceParams.c};
ez=function(a){return"WEB_KIDS"==a.deviceParams.c};
g.dz=function(a){return"WEB_UNPLUGGED"==a.deviceParams.c};
nz=function(a){return"TVHTML5_UNPLUGGED"==a.deviceParams.c};
g.oz=function(a){return g.dz(a)||"TV_UNPLUGGED_CAST"==a.deviceParams.c||nz(a)};
pz=function(a){return"WEB_REMIX"==a.deviceParams.c};
g.sz=function(a){return(a.deviceHasDisplay&&g.Gt&&!sl&&"3"!==a.controlsType?g.Ly?a.u&&g.Nd(51):!0:!1)||(a.deviceHasDisplay&&g.ku&&!sl&&"3"!==a.controlsType?g.Ly?a.u&&g.Nd(48):g.Nd(38):!1)||(a.deviceHasDisplay&&g.Ah&&!sl&&"3"!==a.controlsType?g.Ly?a.u&&g.Nd(37):g.Nd(27):!1)||a.deviceHasDisplay&&g.qz&&!rl()&&g.Nd(11)||a.deviceHasDisplay&&g.rz&&g.Nd("604.4")};
tz=function(a){if(g.Uy(a)&&Ry)return!1;if(g.ku){if(!g.Nd(47)||!g.Nd(52)&&g.Nd(51))return!1}else if(g.rz)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
Qy=function(a){return"detailpage"==a.aa};
g.Uy=function(a){return"embedded"==a.aa};
g.uz=function(a){return"leanback"==a.aa};
Py=function(a){return"adunit"==a.aa||"gvn"==a.playerStyle};
g.Wy=function(a){return"profilepage"==a.aa};
g.Oy=function(a){return a.u&&g.Uy(a)&&!Py(a)&&!a.B};
vz=function(a){if(!a.U)return"";var b=a.U.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("/");g.ar(new Zq("Profile image not a FIFE URL.",a.U));return a.U};
g.wz=function(a){var b=g.iz(a);!a.fa("yt_embeds_disable_new_error_lozenge_url")&&Qga.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
$y=function(a){var b=g.rd(a);return(a=Number(g.qd(4,a))||null)?b+":"+a:b};
Rga=function(){this.R=this.aa=this.o=this.A=this.u=this.B=this.C=this.P=this.I=!1;this.L=!0;this.w=0;this.V=!1;this.U=Infinity;this.G=!1;this.Z=!0;this.F=!1};
Sga=function(a){if(a.P)return["f"];var b="19 9h 9 h 8 (h ( H *".split(" ");a.V&&b.unshift("1");a.o&&b.unshift("h");return b};
Tga=function(a){var b=["o","a","v","A","V"];a.B&&(b=["m","M"].concat(b));a.u&&(b=["mac3","MAC3"].concat(b));a.A&&(b=["meac3","MEAC3"].concat(b));a.I&&(b=["so","sa"].concat(b));a.aa&&b.unshift("a");a.C&&b.unshift("ah");return b};
xz=function(a){if(iu(a.A,yu)&&iu(a.A,mu)&&iu(a.A,ou))return 8192;try{var b=py();if(b)return b}catch(d){}b=g.Q(a.experiments,"html5_av1_thresh");var c=g.Q(a.experiments,"html5_av1_thresh_lcc");c&&2>=navigator.hardwareConcurrency&&(b=c);(c=g.Q(a.experiments,"html5_av1_thresh_hcc"))&&4<navigator.hardwareConcurrency&&(b=c);(a=g.Q(a.experiments,"html5_av1_thresh_arm"))&&kl()&&(b=a);(a=+ly()[ky("1",30)]||0)&&(b=Math.min(b,a));(a=+ly()[ky("1",60)]||0)&&(b=Math.min(b,a));return b};
yz=function(a,b,c,d){this.flavor=a;this.o=b;this.u=c;this.B=d;this.w={};this.Oe=this.keySystemAccess=null;this.Hn=this.In=-1;this.Nm=null;this.C=!!d&&g.P(d,"edge_nonprefixed_eme");this.A=d?g.Dt(d,"html5_hdcp_probing_stream_url"):""};
Az=function(a){return a.C?!1:!a.keySystemAccess&&!!zz()&&"com.microsoft.playready"==a.o};
Bz=function(a){return"com.microsoft.playready"==a.o};
Cz=function(a){return g.zu&&"com.microsoft.playready"==a.o&&!!navigator.requestMediaKeySystemAccess};
Dz=function(a){return!a.keySystemAccess&&!!zz()&&"com.apple.fps.1_0"==a.o};
Ez=function(a){return"fairplay"===a.flavor};
zz=function(){var a=window.MSMediaKeys;ql()&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null};
Fz=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.Gt)return $n("45");if(g.zu||g.ke)return g.P(a,"edge_nonprefixed_eme");if(g.ku)return $n("47");if(g.rz){var b=g.Q(a,"html5_safari_desktop_eme_min_version");if(b)return $n(b)}return!g.P(a,"html5_disable_nonprefixed_eme_for_other")};
Uga=function(a,b,c){c=void 0===c?"":c;var d=ml(),e=d?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(e.unshift("com.youtube.widevine.l3"),d&&c&&e.unshift("com.youtube.widevine.forcehdcp"));return d?e:a?[].concat(g.ea(e),g.ea(Gz.playready)):[].concat(g.ea(Gz.playready),g.ea(e))};
Hz=function(a,b,c){this.videoInfos=a;this.o=b||null;this.audioTracks=[];this.u=c||null;if(this.o)for(a=new Set,b=g.q(this.o),c=b.next();!c.done;c=b.next())if(c=c.value,c.sb&&!a.has(c.sb.id)){var d=new at(c.id,c.sb);a.add(c.sb.id);this.audioTracks.push(d)}};
Iz=function(a,b,c){var d={},e;for(e in c.o){var f=c.o[e],k=jt(f.info);""==f.info.u||("304"==k||"266"==k)&&a.L||a.R&&"h"==f.info.u&&f.info.video&&1080<f.info.video.fc||!Hfa(b,f.info)||"(h"==f.info.u&&!b.w||(k="MAC3"==f.info.u||"MEAC3"==f.info.u||"M"==f.info.u,c.isLive&&k&&!a.F||(d[f.info.u]=d[f.info.u]||[],d[f.info.u].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].isVideo()&&(d[e]=Vga(a,d[e]),d[e]=Wga(b,d[e]));return g.Db(d,function(l){return!!l.length})};
Xga=function(a,b,c){var d={};g.Cb(b,function(e,f){var k=e.filter(function(l){var m;if(m=l.zc&&c&&l.zc[c.flavor]&&c.w[l.mimeType])(l="("!=l.u&&"(h"!=l.u)||(l=iu(a,pu)||a.L),m=l;return m?!0:!1});
k.length&&(d[f]=k)});
return d};
Zga=function(a,b,c,d){function e(t){return!!f[t]}
var f=Iz(a,b,c),k=f["9h"]?"9h":"9";if(0<a.w&&f[k]&&f["1"]){var l=Math.min(a.w,Jz(f["1"])),m=Jz(f[k]),n=function(t){return t<=l||t>m},p=f["1"].filter(function(t){return n(t.va().fc)});
p=f[k].filter(function(t){return!n(t.va().fc)}).concat(p);
p.length&&(f["19"]=p)}Qx(c)&&(f=Xga(b,f,d));b=Sga(a);d=Tga(a);b=g.$a(b,e);d=g.$a(d,e);if(!b||!d)return rr();a.Z&&"1"==b&&f[k]&&(p=Jz(f["1"]),Jz(f[k])>p&&(b=k));"9"==b&&f.h&&(k=Jz(f["9"]),Jz(f.h)>1.5*k&&(b="h"),c.Df&&!Jfa(a.G)&&(b="h"));a=f[b];c=f[d];if(!a.length)return rr();Kz(a,c);return sr(new Hz(a,c,Yga(f,b,d)))};
Yga=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)?(Kz(d,e),new Hz(d,e)):null};
Kz=function(a,b){g.ub(a,function(c,d){return d.va().height*d.va().width-c.va().height*c.va().width||d.o-c.o});
g.ub(b,function(c,d){return d.o-c.o})};
Wga=function(a,b){var c=(0,g.zi)(b,function(d,e){return 32<e.va().fps?Math.min(d,e.va().width):d},Infinity);
Infinity>c&&(b=a.F&&(a.P||iu(a,nu))?(0,g.xe)(b,function(d){return 32<d.va().fps||d.va().width<c}):(0,g.xe)(b,function(d){return!(32<d.va().fps)}));
nl()&&(b=(0,g.xe)(b,function(d){return"299"!=jt(d)}));
return b};
Vga=function(a,b){return b=(0,g.xe)(b,function(c){return c.va().fc<=a.U})};
Jz=function(a){return(0,g.zi)(a,function(b,c){return Math.max(b,c.va().fc)},0)};
Lz=function(a,b,c,d){g.A.call(this);this.o=[];this.u={};this.A={};this.C=null;this.B=b;this.F=!1;this.w=[];this.G=d;$ga(this,a,!c)};
$ga=function(a,b,c){for(var d in b)for(var e=g.q(b[d]),f=e.next();!f.done;f=e.next())if(f=f.value,f.zc)for(var k in f.zc)if(Gz[k])for(var l=g.q(Gz[k]),m=l.next();!m.done;m=l.next())m=m.value,a.u[m]=a.u[m]||new yz(k,m,f.zc[k],a.B),a.A[k]=a.A[k]||{},a.A[k][f.mimeType]=!0;ml()&&(a.u["com.youtube.fairplay"]=new yz("fairplay","com.youtube.fairplay","",a.B),a.A.fairplay={"audio/mp4":!0,"video/mp4":!0});a.o=Uga(c,a.G,g.Dt(a.B,"html5_hdcp_probing_stream_url")).filter(function(n){return!!a.u[n]})};
Mz=function(a){if(!a.ea())if(0==a.o.length)a.C(a.w);else{var b=a.o[0],c=a.u[b],d={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};Bz(c)&&(d.initDataTypes=["keyids","cenc"]);for(var e in a.A[c.flavor]){var f=0==e.indexOf("audio/"),k=f?d.audioCapabilities:d.videoCapabilities;"widevine"!=c.flavor||a.F?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(Mo((0,g.x)(a.P,a,c)),Mo((0,g.x)(a.I,a)))}};
aha=function(a,b){function c(f){b.w[f.contentType]=!0}
if(Bz(b)){var d=Et(),e;for(e in a.A[b.flavor])b.w[e]=!!d.canPlayType(e)}else d=b.keySystemAccess.getConfiguration(),d.audioCapabilities&&d.audioCapabilities.forEach(c),d.videoCapabilities&&d.videoCapabilities.forEach(c)};
cha=function(a){if(zz()&&g.rz)a.w.push(new yz("fairplay","com.apple.fps.1_0","",a.B));else{var b=bha(),c=g.$a(a.o,function(d){var e=a.u[d],f=!1,k=!1,l;for(l in a.A[e.flavor])b(l,d)&&(e.w[l]=!0,f=f||0==l.indexOf("audio/"),k=k||0==l.indexOf("video/"));return f&&k});
c&&a.w.push(a.u[c]);a.o=[]}a.C(a.w)};
bha=function(){var a=zz();if(a){var b=a.isTypeSupported;return function(c,d){return b(d,c)}}return(a=Et())&&(a.addKey||a.webkitAddKey)?(0,g.x)(a.canPlayType,a):function(){return!1}};
dha=function(a,b,c){this.w=a;this.u=b;this.cpn=c;this.A=0;this.o=""};
Nz=function(a,b,c){a.cpn&&(b=g.Bd(b,{cpn:a.cpn}));c&&(b=g.Bd(b,{DT:c}));return b};
Oz=function(a,b){var c=a.itag.toString();null!==b&&(c+=b.itag.toString());return c};
eha=function(a,b,c){var d="#EXT-X-MEDIA:TYPE=AUDIO,",e="YES",f="audio";if(b.sb){f=b.sb;var k=f.getId().split(".")[0];k&&(d+='LANGUAGE="'+k+'",');a.o||f.getIsDefault()||(e="NO");f=f.getName()}k="";null!==c&&(k=c.itag.toString());a=Nz(a,b.url,k);return d=d+('NAME="'+f+'",DEFAULT='+(e+',AUTOSELECT=YES,GROUP-ID="'))+(Oz(b,c)+'",URI="'+(a+'"'))};
fha=function(a){for(var b=[],c=[],d=g.q(a.u),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.A?b.push(e):c.push(e);b.sort(function(f,k){return k.bitrate-f.bitrate});
c.sort(function(f,k){return f.bitrate-k.bitrate});
a.u=b.concat(c)};
gha=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.fps=f;this.bitrate=k;this.sb=void 0===n?null:n;this.audioItag=l||null;this.zc=m||""};
Pz=function(a){var b={};a=g.q(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.type.match(/codecs="([^"]*)"/);d=d?d[1]:"";var e=null;c.audio_track_id&&(e=new Ys(c.name,c.audio_track_id,!!c.is_default));c=new gha(c.itag,c.url,d,+c.width,+c.height,+c.fps,+c.bitrate,c.audio_itag,c.drm_families,e);b[c.itag]=b[c.itag]||[];b[c.itag].push(c)}return b};
Qz=function(a,b,c){this.ng=a;this.u=b;this.o=null;this.w=c};
iha=function(a,b,c,d,e){if(!(sl||ql()||ml()))return rr();var f=hha(c),k=Pz(c);if(!k)return rr();c={};var l=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),m;c=[];var n=[],p=[],t=g.Q(a.experiments,"html5_hls_min_video_height"),u;for(u in k)if(!g.P(a.experiments,"html5_disable_drm_hfr_1080")||"383"!=u&&"373"!=u){var z=g.q(k[u]);for(m=z.next();!m.done;m=z.next()){var B=m.value;if(B.width){if(!(B.height<t)){var D=k[B.audioItag];if(D&&(c.push(B),m="fairplay"==B.zc?l:null,p.push(Rz(D,
[B],e,B.itag,B.width,B.height,B.fps,f,void 0,void 0,m)),!E||B.width*B.height*B.fps>E.width*E.height*E.fps))var E=B}}else n.push(B)}}m=p.reduce(function(F,I){return I.ng.po()&&F},!0)?l:null;
d=Math.max(d,g.Q(a.experiments,"html5_hls_initial_bitrate"));E=E||{};p.push(Rz(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 Bu(a.A,p,gz(a,b))};
Rz=function(a,b,c,d,e,f,k,l,m,n,p){d=new kt(d,"application/x-mpegURL",new bt,new et(e,f,k,null,void 0,m),void 0,p);a=new dha(a,b,c);a.A=n?n:1369843;return new Qz(d,a,l)};
hha=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};
Sz=function(a,b){this.ng=a;this.o=b};
Tz=function(a,b){this.ng=a;this.o=b};
jha=function(a){var b=[];(0,g.y)(a,function(c){if(c.url){var d=rt(c.type,"medium","0");b.push(new Tz(d,c.url))}});
return b};
kha=function(a){return navigator.mediaCapabilities?Uz(a.videoInfos).then(function(){return a},function(){return a}):sr(a)};
Uz=function(a){var b=navigator.mediaCapabilities;if(!b)return sr(a);var c=a.map(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.o||1E6,framerate:d.video.fps||30}:null})});
return gba(c).then(function(d){for(var e=0;e<d.length;e++)a[e].A=d[e].smooth;return a},function(){return a})};
Wz=function(a){for(var b={},c=g.q(Object.keys(Vz)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[Vz[d]];e&&(b[d]=e)}return b};
Xz=function(a,b){for(var c={},d=g.q(Object.keys(Vz)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.Vw(f)&&(c[Vz[e]]=f)}return c};
$z=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=g.q(Object.keys(Yz)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Yz[e];for(var f=g.q(a),k=f.next();!k.done;k=f.next())if(k=k.value,k.width>=e){e=Zz(k.url);g.Vw(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Zz(a.url),g.Vw(a)&&(b["maxresdefault.jpg"]=a));return b};
Zz=function(a){return a.startsWith("//")?"https:"+a:a};
g.T=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.aA=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];d.text&&b.push(lha(d))}return 1==b.length?b[0]:g.qe("SPAN",null,b)};
lha=function(a){var b=null,c=a.text;a.bold&&(b=g.qe("B",null,b||c));a.italics&&(b=g.qe("I",null,b||c));a.strikethrough&&(b=g.qe("STRIKE",null,b||c));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(a=a.navigationEndpoint.urlEndpoint,b=g.qe("A",null,b||c),g.$c(b,a.url),"TARGET_NEW_WINDOW"==a.target&&(b.target="_blank"));return b||g.qe("SPAN",null,c)};
bA=function(a){return a&&a.baseUrl||""};
cA=function(a){a=g.tq(a);for(var b in a){var c=a[b];a[b]=g.Na(c)?c[0]:c}return a};
nha=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())if(d=d.value.playerAnnotationsUrlsRenderer){d.adsOnly&&(a.fn=!0);d.allowInPlaceSwitch&&(a.Pq=!0);if(c=d.loadPolicy)a.annotationsLoadPolicy=mha[c];if(c=d.invideoUrl)a.be=Zw(c);a.Gs=!0;break}};
oha=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;var c=b.playerAttestationRenderer.challenge;null!=c&&(a.Ie=c)};
pha=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.q(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=dA(d.baseUrl);if(!e)return;d=new g.Zs({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.T(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.Vq=b.audioTracks||[];a.jw=b.defaultAudioTrackIndex||0;a.kw=b.translationLanguages?(0,g.Fc)(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.T(f.languageName)}}):
[];
a.sn=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
qha=function(a,b,c){var d=b.errorScreen;if(!(d&&(d.playerLegacyDesktopYpcOfferRenderer||d.playerLegacyDesktopYpcTrailerRenderer||d.ypcTrailerRenderer)||c&&c.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(b.status))){a.errorCode="150";if(c=d&&d.playerErrorMessageRenderer){if(d=c.reason)a.errorReason=g.T(d);if(c=c.subreason)a.eh=g.T(c),a.Mn=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"}};
rha=function(a,b){var c=b.heartbeatToken;c&&(a.drmSessionId=b.drmSessionId||"",a.heartbeatToken=c,a.Kx=parseInt(b.intervalMilliseconds,10),a.Lx=parseInt(b.maxRetries,10),a.Mx=!!b.softFailOnError,a.Tx=!!b.useInnertubeHeartbeatsForDrm,a.Rm=!0)};
sha=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.interstitials.map(function(l){var m=l.unserializedPlayerResponse;if(m&&!a.fa("web_player_unserialized_interstitial_killswitch"))return{is_yto_interstitial:!0,raw_player_response:m};if(l=l.playerVars)return Object.assign({is_yto_interstitial:!0},g.rq(l))});
e=g.q(e);for(var f=e.next();!f.done;f=e.next())switch(f=f.value,d.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:f,gq:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:f,gq:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var k=parseInt(d.podConfig.timeToInsertAtMillis,10);a.interstitials=a.interstitials.concat({time:k,
playerVars:f,gq:0==k?5:7})}}};
tha=function(a,b){var c=b.find(function(d){return!(!d||!d.tooltipRenderer)});
c&&(a.tooltipRenderer=c.tooltipRenderer)};
eA=function(a,b){b.subscribeCommand&&(a.subscribeCommand=b.subscribeCommand);b.unsubscribeCommand&&(a.unsubscribeCommand=b.unsubscribeCommand);b.addToWatchLaterCommand&&(a.addToWatchLaterCommand=b.addToWatchLaterCommand);b.removeFromWatchLaterCommand&&(a.removeFromWatchLaterCommand=b.removeFromWatchLaterCommand);b.getSharePanelCommand&&(a.getSharePanelCommand=b.getSharePanelCommand)};
uha=function(a,b){var c=b.playerLegacyMulticameraRenderer;c&&(c=c.metadataList)&&(a.Qz=c,a.Wh=g.sq(c))};
vha=function(a,b){var c=b.playerControlsOverlayRenderer;if(c){var d=c.controlBgHtml;null!=d?(a.gg=d,a.lc=!0):(a.gg="",a.lc=!1);c.mutedAutoplay?(c=c.mutedAutoplay.playerMutedAutoplayOverlayRenderer)&&c.endScreen&&(c=c.endScreen.playerMutedAutoplayEndScreenRenderer)&&c.text&&(a.Rz=g.T(c.text)):a.mutedAutoplay=!1}};
wha=function(a,b){var c=b.backgroundability;c&&c.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);if(c=b.contextParams)a.contextParams=c;(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.Pm=c.durationMessage||"",a.Fk=!0):d&&(c=d.durationMessage,a.Pm=c?g.T(c):"",a.Fk=!0))};
xha=function(a,b,c){var d=bA(b.googleRemarketingUrl);d&&(a.googleRemarketingUrl=d);if(d=bA(b.youtubeRemarketingUrl))a.youtubeRemarketingUrl=d;if(d=bA(b.ptrackingUrl)){d=cA(d);var e=d.oid;e&&(a.iB=e);if(e=d.pltype)a.jB=e;if(e=d.ptchn)a.hB=e;if(d=d.ptk)a.rp=encodeURIComponent(d)}if(d=bA(b.ppvRemarketingUrl))a.ppvRemarketingUrl=d;if(d=bA(b.qoeUrl)){d=g.tq(d);for(var f in d)e=d[f],d[f]=g.Na(e)?e.join(","):e;if(f=d.cat)a.qm=f;if(f=d.live)a.Ms=f}if(f=bA(b.remarketingUrl)){a.remarketingUrl=f;d=cA(f);d.foc_id&&
(a.Pc.focEnabled=!0);if(d=d.data)a.Pc.rmktEnabled=!0,d.engaged&&(a.Pc.engaged="1");d=a.Pc;e=f.match(pd);d.baseUrl=md(e[1],null,e[3],e[4])+od(g.qd(5,f))}if(f=bA(b.videostatsPlaybackUrl)){f=cA(f);if(d=f.adformat)c.adformat=d;if(c=f.autoplay)a.Eg="1"==c;if(c=f.autonav)a.Kj="1"==c;if(c=f.delay)a.Me=g.jd(c);if(c=f.ei)a.eventId=c;"adunit"==f.el&&(a.Eg=!0);if(c=f.feature)a.sm=c;if(c=f.list)a.playlistId=c;if(c=f.of)a.Xt=c;if(c=f.osid)a.osid=c;if(c=f.referrer)a.referrer=c;if(c=f.sdetail)a.zp=c;if(c=f.sourceid)a.GT=
c;if(c=f.ssrt)a.Cm="1"==c;if(c=f.subscribed)a.subscribed="1"==c,a.Pc.subscribed=c;if(c=f.uga)a.userGenderAge=c;if(c=f.upt)a.Xp=c;if(c=f.vm)a.videoMetadata=c}b.promotedPlaybackTracking&&(b=b.promotedPlaybackTracking,b.startUrls&&(a.vp=b.startUrls[0],a.wp=b.startUrls),b.firstQuartileUrls&&(a.fu=b.firstQuartileUrls[0],a.gu=b.firstQuartileUrls),b.secondQuartileUrls&&(a.hu=b.secondQuartileUrls[0],a.iu=b.secondQuartileUrls),b.thirdQuartileUrls&&(a.ju=b.thirdQuartileUrls[0],a.ku=b.thirdQuartileUrls),b.completeUrls&&
(a.du=b.completeUrls[0],a.eu=b.completeUrls))};
yha=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value)if(d=d.playerLegacyDesktopWatchAdsRenderer)if(d=d.playerAdParams){"1"==d.autoplay&&(a.Eg=!0);a.adSafetyReason=d.encodedAdSafetyReason||null;void 0!=d.showContentThumbnail&&(a.Dm=!!d.showContentThumbnail);c.enabled_engage_types=d.enabledEngageTypes;break}};
zha=function(a,b){var c=b.daiConfig;c&&c.enableDai&&(a.Mb=!0);if(c=b.audioConfig){var d=c.loudnessDb;null!=d&&(a.wm=d);c.audioMuted&&(a.Zh=!0);c.muteOnStart&&(a.Zh=!0)}(c=b.playbackEndConfig)&&(c=c.endSeconds)&&a.mutedAutoplay&&(a.endSeconds=c);if(c=b.fairPlayConfig){if(d=c.certificate)a.Oe=hy(d);d=parseInt(c.keyRotationPeriodMs,10);0<d&&(a.In=d);c=parseInt(c.keyPrefetchMarginMs,10);0<c&&(a.Hn=c)}if(c=b.playbackStartConfig){a.au=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.Op=.001*parseInt(c,10)}}else if(c=b.skippableSegmentsConfig){if(d=c.introSkipDurationMs)a.ws=parseInt(d,10)/1E3;if(c=c.outroSkipDurationMs)a.Wt=parseInt(c,10)/1E3}if(d=b.skippableIntroConfig)c=parseInt(d.startMs,10),d=parseInt(d.endMs,10),isNaN(c)||isNaN(d)||(a.Wx=c,a.Vx=d);if(c=b.streamSelectionConfig)a.rh=parseInt(c.maxBitrate,10);(c=b.visualizerConfig)&&c.isVisualizerEligible&&
(a.isVisualizerEligible=!0);if(c=b.vrConfig)a.yi="1"==c.partialSpherical;if(c=b.webDrmConfig){c.skipWidevine&&(a.bC=!0);if(d=c.widevineServiceCert)a.Nm=hy(d);c.useCobaltWidevine&&(a.useCobaltWidevine=!0);c.startWithNoQualityConstraint&&(a.al=!0)}if(c=b.mediaCommonConfig)if(c=c.dynamicReadaheadConfig)a.maxReadAheadMediaTimeMs=c.maxReadAheadMediaTimeMs||NaN,a.minReadAheadMediaTimeMs=c.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=c.readAheadGrowthRateMs||NaN};
Gha=function(a,b,c){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?f.start+"-"+f.end:"0-0",bitrate:k.bitrate,init:l?l.start+"-"+l.end:"0-0",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||k.signatureCipher)?(l=g.rq(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=Aha[l]);(l=k.projectionType)&&(f.projection_type=Bha[l]);(l=k.stereoLayout)&&(f.stereo_layout=Cha[l]);(l=k.spatialAudioType)&&(f.spatial_audio_type=Dha[l]);if(m=k.drmFamilies){l=[];m=g.q(m);for(var n=m.next();!n.done;n=m.next())l.push(fA[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=Eha[l])&&(f.primaries=l),(k=k.transferCharacteristics)&&(k=Fha[k])&&(f.eotf=k);e.push(g.zd(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.Fr=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||f.signatureCipher)l=g.rq(l),k.sp=l.sp,k.s=l.s,k.url=l.url;f.stereo3d&&(k.stereo3d=1);e.push(g.zd(k))}a.Bk=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(fA[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.zd(k))}a.hlsFormats=
d.join(",")}if((e=b.licenseInfos)&&0<e.length){c={};e=g.q(e);for(d=e.next();!d.done;d=e.next())f=d.value,d=f.drmFamily,f=f.url,d&&f&&(c[fA[d]]=f);a.zc=c}if(c=b.drmParams)a.drmParams=c;if(c=b.dashManifestUrl)a.fe=g.Bd(c,{cpn:a.clientPlaybackNonce});if(c=b.hlsManifestUrl)a.hlsvp=c;if(b=b.probeUrl)a.probeUrl=Zw(g.Bd(b,{cpn:a.clientPlaybackNonce}))};
Hha=function(a,b,c){var d=b.videoId;d&&(a.videoId=d,c.video_id||(c.video_id=d));a.fa("web_player_uid_killswitch")||(d=b.channelId)&&(a.Pc.uid=d.substr(2));if(d=b.title)a.title=d,c.title||(c.title=d);if(d=b.lengthSeconds)a.lengthSeconds=parseInt(d,10),c.length_seconds||(c.length_seconds=d);if(d=b.keywords)a.keywords=gA(d);if(d=b.channelId)a.Og=d,c.ucid||(c.ucid=d);if(d=b.viewCount)a.GB=parseInt(d,10);if(d=b.author)a.author=d,c.author||(c.author=d);if(c=b.isCrawlable)a.isListed=c;if(c=b.musicVideoType)a.musicVideoType=
c;c=b.isLive;null!=c&&(a.sa=c,a.isPremiere=!!c&&!b.isLiveContent);if(b=b.thumbnail)a.ff=$z(b)};
Iha=function(a,b){if(b.playerLegacyDesktopYpcTrailerRenderer){var c=b.playerLegacyDesktopYpcTrailerRenderer;a.qq=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.Qm=e?g.T(e):""}c&&(a.jq=c.itemTitle||"",c.itemUrl&&(a.kq=c.itemUrl),c.itemBuyUrl&&(a.hq=c.itemBuyUrl),a.iq=c.itemThumbnail||
"",a.nq=c.offerHeadline||"",a.mq=c.offerDescription||"",a.oq=c.offerId||"",a.lq=c.offerButtonText||"",a.Zu=c.offerButtonFormattedText||null,a.Sm=c.overlayDurationMsec||NaN,a.Qm=c.fullVideoMessage||"",a.jj=!0);d&&((c=d.unserializedPlayerResponse)&&!a.fa("web_player_unserialized_ypc_killswitch")?a.Gk={raw_player_response:c}:(c=d.playerVars,a.Gk=c?g.rq(c):null),a.jj=!0)};
Kha=function(a,b,c,d){b.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);if(b.isPostLiveDvr)a.ze=!0;else{var e=!1;if(a.vg)a.allowLiveDvr=hA(!0),a.sa=!0;else if(b.isLive){d.livestream="1";a.allowLiveDvr=hA(!!b.isLiveDvrEnabled);a.Ee=27;b.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);if(e=b.latencyClass)a.latencyClass=Jha[e]||"UNKNOWN";a.dl=!0;if(b=b.liveChunkReadahead)a.liveChunkReadahead=b;if(c=c&&c.livePlayerConfig)if(c.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0),c.hasSubfragmentedWebm&&
(a.Ej=!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.fa("live_fresca_v2")?a.Rc.push("heartbeat"):(a.On=!0,a.Rc.push("fresca"))),a.Rm=!0,a.Fn=!0)}};
iA=function(a,b){os.call(this,1,arguments)};
jA=function(a,b){os.call(this,1,arguments);this.o=a};
Lha=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
lA=function(a){var b=kA(a);if(b.aft)return b.aft;a=g.L((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};
mA=function(a){return!!g.w("yt.timing."+(a||"")+"pingSent_")};
nA=function(a,b){g.Ia("yt.timing."+(b||"")+"pingSent_",a,void 0)};
pA=function(a){return g.w("ytcsi."+(a||"")+"data_")||oA(a)};
qA=function(a){a=pA(a);a.info||(a.info={});return a.info};
kA=function(a){a=pA(a);a.tick||(a.tick={});return a.tick};
rA=function(a){var b=pA(a).nonce;b||(b=$r(),pA(a).nonce=b);return b};
oA=function(a){var b={tick:{},info:{}};g.Ia("ytcsi."+(a||"")+"data_",b,void 0);return b};
tA=function(a){var b=kA(a||""),c=lA(a);c&&!sA&&(rs(Mha,new iA(Math.round(c-b._start),a)),sA=!0)};
uA=function(){var a=g.w("ytcsi.debug");a||(a=[],g.Ia("ytcsi.debug",a,void 0),g.Ia("ytcsi.reference",{},void 0));return a};
wA=function(a){a=a||"";var b=vA();if(b[a])return b[a];var c=uA(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d};
vA=function(){var a=g.w("ytcsi.reference");if(a)return a;uA();return g.w("ytcsi.reference")};
xA=function(){this.o=0};
yA=function(){xA.o||(xA.o=new xA);return xA.o};
AA=function(a,b){zA[b]=zA[b]||{count:0};var c=zA[b];c.count++;c.time=(0,g.N)();a.o||(a.o=Zp(function(){var d=(0,g.N)(),e;for(e in zA)zA[e]&&6E4<d-zA[e].time&&delete zA[e];a&&(a.o=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new Zq("CSI data exceeded logging limit with key",b),0===b.indexOf("info")?g.ar(c):g.$q(c)),!0):!1};
BA=function(a){return!!g.L("FORCE_CSI_ON_GEL",!1)||g.Eo("csi_on_gel")||!!pA(a).useGel};
CA=function(a){a=pA(a);if(!("gel"in a))a.gel={gelTicks:{},gelInfos:{}};else if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}return a.gel};
DA=function(a){oA(a);Nha();nA(!1,a);a||(g.L("TIMING_ACTION")&&Bo("PREVIOUS_ACTION",g.L("TIMING_ACTION")),Bo("TIMING_ACTION",""))};
GA=function(a,b){EA("yt_sts",a,b);FA("_start",void 0,b)};
EA=function(a,b,c){if(null!==b)if(qA(c)[a]=b,BA(c)){var d=b;b=CA(c);if(b.gelInfos)b.gelInfos["info_"+a]=!0;else{var e={};b.gelInfos=(e["info_"+a]=!0,e)}if(a in HA){if(a.match("_rid")){var f=a.split("_rid")[0];a="REQUEST_ID"}b=HA[a];g.cb(Oha,b)&&(d=!!d);a in IA&&"string"===typeof d&&(d=IA[a]+d.toUpperCase());a=d;d=b.split(".");for(var k=e={},l=0;l<d.length-1;l++){var m=d[l];k[m]={};k=k[m]}k[d[d.length-1]]="requestIds"===b?[{id:a,endpoint:f}]:a;b=Ps({},e)}else g.cb(Pha,a)||g.ar(new Zq("Unknown label logged with GEL CSI",
a)),b=void 0;b&&JA(b,c)}else wA(c||"").info[a]=b};
JA=function(a,b){if(BA(b)){var c=wA(b||"");Ps(c.info,a);c=CA(b);"gelInfos"in c||(c.gelInfos={});Ps(c.gelInfos,a);c=rA(b);yA().info(a,c)}};
FA=function(a,b,c){var d=kA(c);if(g.Eo("use_first_tick")&&KA(a,c))return d[a];if(!b&&"_"!==a[0]){var e=a;LA.mark&&(fc(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),LA.mark(e))}e=b||(0,g.N)();d[a]=e;e=CA(c);e.gelTicks&&(e.gelTicks["tick_"+a]=!0);c||b||(0,g.N)();if(BA(c)){wA(c||"").tick[a]=b||(0,g.N)();e=rA(c);if("_start"===a){var f=yA();AA(f,"baseline_"+e)||g.Yq("latencyActionBaselined",{clientActionNonce:e},{timestamp:b})}else yA().tick(a,e,b);tA(c);e=!0}else e=!1;e||(MA(c),wA(c||"").tick[a]=b||(0,g.N)());
return d[a]};
KA=function(a,b){var c=kA(b);return a in c};
MA=function(a){if(!mA(a)){var b=g.L((a||"")+"TIMING_ACTION",void 0),c=kA(a);if(g.w("ytglobal.timing"+(a||"")+"ready_")&&b&&KA("_start")&&lA(a))if(tA(a),a)NA(a);else{b=!0;var d=g.L("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&NA(a)}}};
Qha=function(){switch(Ep()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
NA=function(a){if(!BA(a)){var b=kA(a),c=qA(a),d=b._start,e=g.L("CSI_SERVICE_NAME","youtube"),f={v:2,s:e,action:g.L((a||"")+"TIMING_ACTION",void 0)},k=c.srt;void 0!==b.srt&&delete c.srt;b.aft=lA(a);var l=kA(a),m=l.pbr,n=l.vc;l=l.pbs;m&&n&&l&&m<n&&n<l&&qA(a).yt_pvis&&"youtube"===e&&(EA("yt_lt","hot_bg",a),e=b.vc,m=b.pbs,delete b.aft,c.aft=Math.round(m-e));for(var p in c)"_"!==p.charAt(0)&&(f[p]=c[p]);b.ps=(0,g.N)();p={};e=[];for(var t in b)"_"!==t.charAt(0)&&(m=Math.round(b[t]-d),p[t]=m,e.push(t+"."+
m));f.rt=e.join(",");b=!!c.ap;g.Eo("debug_csi_data")&&(c=g.w("yt.timing.csiData"),c||(c=[],g.Ia("yt.timing.csiData",c,void 0)),c.push({page:location.href,time:new Date,args:f}));c="";for(var u in f)f.hasOwnProperty(u)&&(c+="&"+u+"="+f[u]);f="/csi_204?"+c.substring(1);window.navigator&&window.navigator.sendBeacon&&b?lr(f):g.jr(f);nA(!0,a);rs(OA,new jA(p.aft+(Number(k)||0),a))}};
PA=function(a){if(!BA(a)&&!mA(a)){var b=g.L("CSI_SERVICE_NAME","youtube");g.L((a||"")+"TIMING_ACTION",void 0)&&b&&(FA("aa",void 0,a),EA("ap",1,a),EA("yt_fss","c",a),NA(a))}};
RA=function(a,b,c){var d=(c=c?c:a)||"",e=vA();e[d]&&delete e[d];var f=uA(),k={timerName:d,info:{},tick:{},span:{}};f.push(k);e[d]=k;wA(c||"").info.actionType=a;PA(c);DA(c);pA(c).useGel=!0;Bo(c+"TIMING_AFT_KEYS",b);Bo(c+"TIMING_ACTION",a);GA("c",c);BA(c)&&(a={actionType:QA[g.L((c||"")+"TIMING_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN",previousAction:QA[g.L("PREVIOUS_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN"},b=rA(c),yA().info(a,b));g.Ia("ytglobal.timing"+(c||"")+"ready_",!0,void 0);MA(c)};
SA=function(a){var b="above_the_fold";LA&&LA.measure&&(fc(b,"measure_")||(b="measure_"+b),a?LA.measure(b,a):LA.measure(b))};
TA=function(a){KA("_start","video_to_ad")&&!KA(a,"video_to_ad")&&FA(a,void 0,"video_to_ad")};
Rha=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.ustreamerConfig=hy(a.ustreamerConfig))};
UA=function(a){g.O.call(this);this.o=null;this.w=new g.wo;this.o=null;this.C=new Set;this.F=a||""};
XA=function(a,b,c){c=VA(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.Gb(e)){d=a;var f=c,k=f+"-"+e;d.C.has(k)||(d.C.add(k),g.vo(d.w,f,{my:f,Pz:e}))}WA(a)};
WA=function(a){if(!a.o&&!a.w.isEmpty()){var b=a.w.remove(),c=document.createElement("img");a.F&&(c.crossOrigin=a.F);c.src=a.levels[b.my].jc(b.Pz);c.onload=(0,g.x)(a.I,a,b.my,b.Pz);a.o=c}};
g.YA=function(a,b,c,d){this.level=a;this.B=b;this.loaded=new Set;this.level=a;this.B=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.w=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.o=Math.floor(Number(a[5]));this.A=a[6];this.signature=a[7];this.videoLength=d};
ZA=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;UA.call(this,c);this.isLive=d;this.G=!!e;this.levels=this.u(a,b);this.A=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
$A=function(a,b,c){return(a=a.levels[b])?a.Vo(c):-1};
VA=function(a,b){var c=a.A.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].Zc()>=b)return a.A.set(b,d),d;a.A.set(b,c-1);return c-1};
aB=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.YA.call(this,a,b,c,0);this.u=null;this.C=d?3:0};
bB=function(a,b,c,d){ZA.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].Wy(c)};
g.dB=function(a,b){g.O.call(this);this.Oa=a;this.adModule=!1;this.Pk=this.adaptiveFormats="";this.zc=null;this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.backgroundable=!1;this.be="";this.Pq=this.fn=!1;this.iy=null;this.Zh=this.Fk=this.jj=this.Rm=this.On=this.Gs=!1;this.wm=NaN;this.author="";this.bh=0;this.mn=this.Fw=this.Wq=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.rf=this.Sk="";this.contentCheckOk=!1;this.Me=0;this.Fn=this.dl=!1;this.endSeconds=
0;this.Oe=null;this.Fr="";this.pc=!1;this.rh=this.Gj=0;this.Nq=this.pipable=this.Kj=!1;this.gB=0;this.sa=this.vg=this.isPrivate=this.isListed=this.zs=this.mutedAutoplay=this.Eg=!1;this.Ms="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.qo=this.uo=this.ze=!1;this.latencyClass="UNKNOWN";this.Mb=this.isMdxPlayback=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.Jf=0;this.reloadReason="";this.Fs=this.fy=this.sh=!1;this.keywords={};this.Ef="";
this.xo=0;this.Mm=!1;this.liveChunkReadahead=NaN;this.Ns=0;this.Ll=null;this.Ml=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.Rc=[];this.Jd=void 0;this.racyCheckOk=!1;this.Gp=0;this.wa=null;this.autonavState=1;this.se=this.Du=!1;this.Op=this.qh=this.startSeconds=0;this.cq=this.gw=this.HC=Gu;this.vk=this.suggestions=null;this.Iu=!1;this.hlsFormats=this.Bk=this.expandedSubtitle=this.jl=this.subtitle=this.title="";this.Ao=this.Np=this.Dk=this.Gg=this.le=this.ym=
this.ko=null;this.Th="vvt";this.Zu=null;this.QC="";this.Sm=NaN;this.qq=this.kq=this.jq=this.iq=this.hq=this.oq=this.Qm=this.nq=this.mq=this.lq="";this.Gk=null;this.NB=!1;this.Pc={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.Lx=this.Kx=NaN;this.Ui=this.Nj=this.Yh=this.Tx=this.Mx=!1;this.Dm=!0;this.ff={};this.captionTracks=[];this.Vq=[];this.jw=0;this.kw=[];this.sn=!1;this.Yk=new at("und",new Ys("Default","und",!0));this.Hs=0;this.wc=null;this.lk=[];this.Wh=[];this.Uu=this.rm=
"";this.slotPosition=-1;this.breakType=0;this.Pg=this.Da=this.Jw=this.bl=this.vf=null;this.tr=!1;this.Tc=null;this.ys=this.al=this.useCobaltWidevine=this.bC=this.yi=this.wg=!1;this.Vx=this.Wx=NaN;this.defraggedFromSubfragments=this.Ej=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.Ih=this.Wu=this.ij=!1;this.interstitials=[];this.lc=this.As=!1;this.qm=this.Rz=this.gg="";this.isVisualizerEligible=!1;this.pp=null;this.Db="";this.Cf=this.Rx=!1;this.Qz=this.Pm="";this.au=this.Wt=
this.ws=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Fm=!1;this.uk=this.Ph=!0;this.errorDetail=this.userGenderAge="";this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.eh=this.errorReason=this.errorCode=null;this.yn=this.xn="";this.oj=void 0;this.fa("web_player_ux_module_wait")&&this.Oa.ya&&this.Rc.push("ux");this.ur=this.sj=
!1;this.mB={};cB(this,b)};
fB=function(a,b){a.Pw=Gy(a.Pw,b.fflags);var c=b.iv_invideo_url;c&&(a.be=Zw(c));a.fn=S(a.fn,b.iv_ads_only);a.Pq=S(a.Pq,b.iv_allow_in_place_switch);a.isPharma=S(a.isPharma,b.is_pharma);a.author=Gy(a.author,b.author);a.Sk=dA(b.ttsurl)||a.Sk;a.Wq=S(a.Wq,b.cc_asr);a.rf=Gy(a.rf,b.channel_path);a.channelBanner=Gy(a.channelBanner,b.channel_banner);a.videoCountText=Gy(a.videoCountText,b.video_count_text);a.autonavState=Ey(a.autonavState,b.autonav_state,Sha);a.clientPlaybackNonce=Gy(a.clientPlaybackNonce,b.cpn);
a.subscribed=S(a.subscribed,b.subscribed);a.GB=Fy(a.GB,b.view_count);a.shortViewCount=Gy(a.shortViewCount,b.short_view_count_text);a.title=Gy(a.title,b.title);a.subtitle=Gy(a.subtitle,b.subtitle);a.jl=Gy(a.jl,b.expanded_title);a.expandedSubtitle=Gy(a.expandedSubtitle,b.expanded_subtitle);a.Pk=Gy(a.Pk,b.aria_label);a.ypcPreview=Gy(a.ypcPreview,b.ypc_preview);a.av=Gy(a.av,b.ypc_origin);a.Pm=Gy(a.Pm,b.ypc_clickwrap_message);a.paygated=S(a.paygated,b.paygated);a.NB=S(a.NB,b.requires_purchase);a.showShareButton=
!S(!a.showShareButton,b.ss);a.Ph=S(a.Ph,b.showwatchlater);a.uk=S(a.uk,b.shownotifybutton);a.Fm=S(a.Fm,b.copy_share);if(c=b.keywords)a.keywords=gA(c.split(","));if(c=b.rvs)a.suggestions=g.sq(c);a.contentCheckOk=S(a.contentCheckOk,"1"==b.cco);a.racyCheckOk=S(a.racyCheckOk,"1"==b.rco);a.isLivingRoomDeeplink=S(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=Gy(a.oauthToken,b.oauth_token);a.Ef=Gy(a.Ef,b.kpt);a.visitorData=Gy(a.visitorData,b.visitor_data);if(c=b.session_data)a.Ob=pq(c);if(c=
b.endscreen_autoplay_session_data)a.Mw=pq(c);a.Gn=Gy(a.Gn,b.endscreen_ad_tracking_data);a.LC=S(a.LC,b.wait_for_vast_info_cards_xml);a.Fu=S(a.Fu,b.suppress_creator_endscreen);a.ey=S(a.ey,b.is_trueview_action);a.pC=Gy(a.pC,b.tracking_list);a.xn=Gy(a.xn,b.clip);a.yn=Gy(a.yn,b.clipt);eB(a,b)};
cB=function(a,b){b=b||{};var c=b.errordetail;null!=c&&(a.errorDetail=c);c=b.errorcode;null!=c?a.errorCode=c:"fail"==b.status&&(a.errorCode="150");c=b.reason;null!=c&&(a.errorReason=c);c=b.subreason;null!=c&&(a.eh=c);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||$r());a.vg=S(a.Oa.vg,b.livemonitor);c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.vf=c);a.vf&&((c=a.vf.embedPreview)&&Tha(a,b,c),a.vf.playabilityStatus&&(a.bl=a.vf.playabilityStatus,
Uha(a)));c=b.raw_player_response;c||(d=b.player_response)&&(c=JSON.parse(d));c&&(a.Da=c);if(a.Da){(c=a.Da.annotations)&&nha(a,c);(c=a.Da.attestation)&&oha(a,c);(c=a.Da.heartbeatParams)&&rha(a,c);(c=a.Da.messages)&&tha(a,c);(c=a.Da.multicamera)&&uha(a,c);(c=a.Da.overlay)&&vha(a,c);if(c=a.Da.playabilityStatus)wha(a,c),(d=c.errorScreen)&&Iha(a,d);(d=a.Da.playbackTracking)&&xha(a,d,b);(d=a.Da.playerAds)&&yha(a,d,b);(d=a.Da.playerConfig)&&zha(a,d);var e=a.Da.streamingData;e&&Gha(a,e,d||null);if(e=a.Da.trackingParams)a.zf=
e;if(e=a.Da.videoDetails)if(Hha(a,e,b),Kha(a,e,d||null,b),d=e.isPrivate)a.isPrivate=S(a.isPrivate,d);c&&qha(a,c,e||null);(c=a.Da.interstitialPods)&&sha(a,c);a.be&&a.eventId&&(a.be=wq(a.be,{ei:a.eventId}));(c=a.Da.captions)&&c.playerCaptionsTracklistRenderer&&pha(a,c.playerCaptionsTracklistRenderer);a.oj=a.Da.clipConfig;a.oj&&null!=a.oj.startTimeMs&&(a.au=.001*parseInt(a.oj.startTimeMs,10));a.fa("web_player_include_innertube_commands")&&a.Da&&a.Da.playerConfig&&a.Da.playerConfig.webPlayerConfig&&a.Da.playerConfig.webPlayerConfig.webPlayerActionsPorting&&
eA(a,a.Da.playerConfig.webPlayerConfig.webPlayerActionsPorting)}gB(a,b);b.queue_info&&(a.queueInfo=b.queue_info);c=b.hlsdvr;null!=c&&(a.allowLiveDvr=hA("1"==c));a.adQueryId=b.ad_query_id||null;a.adSafetyReason||(a.adSafetyReason=b.encoded_ad_safety_reason||null);a.SD=b.agcid||null;a.Qv=b.ad_id||null;a.Sv=b.ad_sys||null;a.Lw=b.encoded_ad_playback_context||null;a.Zh=S(a.Zh,b.infringe||b.muted);a.authKey=b.authkey;a.Nc=b.authuser;a.mutedAutoplay=S(a.mutedAutoplay,b&&b.playmuted)&&a.fa("embeds_enable_muted_autoplay");
a.dl=S(a.dl,b.enable_cardio);a.Fn=S(a.Fn,b.enable_cardio_before_playback);a.endSeconds=Fy(a.endSeconds,a.Wt||b.end||b.endSeconds);a.zf=Gy(a.zf,b.itct);a.zs=S(a.zs,b.noiba);a.qo=S(a.qo,b.is_live_destination);a.sa=S(a.sa,b.live_playback);a.isMdxPlayback=S(a.isMdxPlayback,b.mdx);if(c=b.mdx_control_mode)a.mdxControlMode="number"===typeof c?c:g.jd(c);a.ys=S(a.ys,b.is_inline_playback_no_ad);a.Jf=Fy(a.Jf,b.reload_count);a.reloadReason=Gy(a.reloadReason,b.reload_reason);a.Dm=S(a.Dm,b.show_content_thumbnail);
a.Fs=S(a.Fs,b.utpsa);a.Iu=S(a.Iu,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.mC=b.tkn||null;c=Xz(b);0<Object.keys(c).length&&(a.ff=c);a.ae=Gy(a.ae,b.vvt);a.mdxEnvironment=Gy(a.mdxEnvironment,b.mdx_environment);a.JJ=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=Gy(a.playlistId,b.list);a.rB=b.pyv_view_beacon_url;a.uB=b.pyv_quartile25_beacon_url;a.vB=b.pyv_quartile50_beacon_url;a.wB=b.pyv_quartile75_beacon_url;a.tB=b.pyv_quartile100_beacon_url;if(c=b.remarketing_url)a.remarketingUrl=
c;if(c=b.ppv_remarketing_url)a.ppvRemarketingUrl=c;c=b.session_data;!a.IB&&c&&(a.IB=pq(c).feature);a.ay=1==Fy(a.ay?1:0,b.is_fling);a.vnd=Fy(a.vnd,b.vnd);a.nl=Gy(a.nl,b.force_ads_url);a.Kf=Gy(a.Kf,b.ctrl);a.Lf=Gy(a.Lf,b.ytr);a.An=b.ytrcc;a.KB=b.ytrexp;a.rm=Gy(a.rm,b.adformat);a.Uu=Gy(a.Uu,b.attrib);a.slotPosition=Fy(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Cm=S(a.Cm,b.ssrt);a.videoId=Iy(b)||a.videoId;a.Sh=Gy(a.Sh,b.vss_credentials_token);a.Th=Gy(a.Th,b.vss_credentials_token_type);a.ij=
S(a.ij,b.audio_only);a.Wu=S(a.Wu,b.aac_high);a.Ih=S(a.Ih,b.prefer_low_quality_audio);a.qm=Gy(a.qm,b.qoe_cat);a.sj=S(a.sj,b.download_media);a.ur=S(a.ur,b.download_media_in_bg);a.Cf=S(a.Cf,b.prefer_gapless);Vha(a.Da)&&(a.adModule=!0,a.Rc.push("ad"));if(c=b.adaptive_fmts)a.adaptiveFormats=c;if(c=b.allow_embed)a.allowEmbed="1"==c;if(c=b.backgroundable)a.backgroundable="1"==c;if(c=b.autonav)a.Kj="1"==c;if(c=b.autoplay)a.Eg="1"==c;if(c=b.iv_load_policy)a.annotationsLoadPolicy=Ey(a.annotationsLoadPolicy,
c,Zy);if(c=b.cc_lang_pref)a.captionsLanguagePreference=Gy(c,a.captionsLanguagePreference);if(c=b.cc_load_policy)a.Yg=Ey(a.Yg,c,Zy);if(c=b.cached_load)a.mn=S(a.mn,c);"0"==b.dash&&(a.Fw=!0);if(c=b.dashmpd)a.fe=g.Bd(c,{cpn:a.clientPlaybackNonce});if(c=b.delay)a.Me=g.jd(c);c=a.Wt||b.end;void 0!=c&&(a.clipEnd=Fy(a.clipEnd,c));if(c=b.fmt_list)a.Fr=c;b.fresca_preroll&&a.Rc.push("fresca");b.heartbeat_preroll&&a.Rc.push("heartbeat");a.Gj=-Math.floor(10*Math.random());a.Ml=-Math.floor(40*Math.random());if(c=
b.is_listed)a.isListed=S(a.isListed,c);if(c=b.is_private)a.isPrivate=S(a.isPrivate,c);if(c=b.pipable)a.pipable=S(a.pipable,c);a.Nq=a.pipable&&a.Oa.vo;a.Du=a.Nq&&(!a.Oa.showMiniplayerButton||a.fa("web_player_pip"));if(c=b.paid_content_overlay_duration_ms)a.gB=g.jd(c);if(c=b.paid_content_overlay_text)a.LN=c;if(c=b.url_encoded_fmt_stream_map)a.Bk=c;if(c=b.hls_formats)a.hlsFormats=c;if(c=b.hlsvp)a.hlsvp=c;if(c=b.length_seconds)a.lengthSeconds="string"===typeof c?g.jd(c):c;if(c=b.live_start_walltime)a.Ns=
"number"===typeof c?c:g.jd(c);if(c=b.live_manifest_duration)a.Ll="number"===typeof c?c:g.jd(c);if(c=b.player_params)a.playerParams=c;if(c=b.partnerid)a.Ee=Fy(a.Ee,c);if(c=b.probe_url)a.probeUrl=Zw(g.Bd(c,{cpn:a.clientPlaybackNonce}));if(c=b.profile_picture)a.Jd=Gy(c,a.Jd);(c=b.pyv_billable_url)&&Ww(c)&&(a.pm=c);(c=b.pyv_conv_url)&&Ww(c)&&(a.sB=c);eB(a,b);0<a.startSeconds||(a.startSeconds=Fy(a.startSeconds,a.au||a.ws||b.start||b.startSeconds),a.qh=a.startSeconds);c=b.live_utc_start;null!=c&&(a.liveUtcStartSeconds=
parseInt(c,10));if(c=b.utc_start_millis)a.liveUtcStartSeconds=.001*parseInt(c,10);if(c=b.stream_time_start_millis)a.Op=.001*parseInt(c,10);c=a.ws||b.start;void 0==c||"1"==b.resume||a.sa||(a.clipStart=Fy(a.clipStart,c));if(c=b.url_encoded_third_party_media)a.vk=g.sq(c);if(c=b.ypc_offer_button_formatted_text)d=JSON.parse(c),a.Zu=null!=d?d:null,a.QC=c;if(c=b.ypc_offer_button_text)a.lq=c;if(c=b.ypc_offer_description)a.mq=c;if(c=b.ypc_offer_headline)a.nq=c;if(c=b.ypc_full_video_message)a.Qm=c;if(c=b.ypc_offer_id)a.oq=
c;if(c=b.ypc_buy_url)a.hq=c;if(c=b.ypc_item_thumbnail)a.iq=c;if(c=b.ypc_item_title)a.jq=c;if(c=b.ypc_item_url)a.kq=c;if(c=b.ypc_vid)a.qq=c;b.ypc_overlay_timeout&&(a.Sm=parseInt(b.ypc_overlay_timeout,10));if(c=b.ypc_trailer_player_vars)a.Gk=g.rq(c);if(c=b.ypc_original_itct)a.nP=c;a.Og=Gy(a.Og,b.ucid);(0,g.y)("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(f){b[f]&&(this.Pc[f]=b[f])},a);
a.Pc.focEnabled=S(a.Pc.focEnabled,b.focEnabled);a.Pc.rmktEnabled=S(a.Pc.rmktEnabled,b.rmktEnabled);a.Np=b.storyboard_spec||null;a.Ao=b.live_storyboard_spec||null;a.iy=b.iv_endscreen_url||null;a.Gs=S(a.Gs,b.iv3_module);a.On=S(a.On,b.fresca_module);a.Rm=S(a.Rm,b.ypc_license_checker_module);a.jj=S(a.jj,b.ypc_module);a.Fk=S(a.Fk,b.ypc_clickwrap_module);a.jj&&a.Rc.push("ypc");a.Fk&&a.Rc.push("ypc_clickwrap");a.mB={video_id:b.video_id,eventid:b.eventid,cbrand:b.cbrand,cbr:b.cbr,cbrver:b.cbrver,c:b.c,cver:b.cver,
ctheme:b.ctheme,cplayer:b.cplayer,cmodel:b.cmodel,cnetwork:b.cnetwork,cos:b.cos,cosver:b.cosver,cplatform:b.cplatform,user_age:b.user_age,user_display_image:b.user_display_image,user_display_name:b.user_display_name,user_gender:b.user_gender,csi_page_type:b.csi_page_type,csi_service_name:b.csi_service_name,enablecsi:b.enablecsi,enabled_engage_types:b.enabled_engage_types};fB(a,b);hB(a)?Wha(a):Xha(a);if(c=b.adpings)a.Rv=c?g.rq(c):null;if(c=b.feature)a.sm=c;if(c=b.referrer)a.referrer=c;a.clientScreenNonce=
Gy(a.clientScreenNonce,b.csn);a.Gp=Fy(a.Gp,b.root_ve_type);a.xo=Fy(a.xo,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.Mm=S(a.Mm,b.upg_content_filter_mode);if(c=b.unplugged_location_info)a.Tc=c;if(c=b.unplugged_partner_opt_out)a.xk=Gy("",c);a.tr=S(a.tr,b.disable_watch_next);a.El=Gy(a.El,b.internal_ip_override);a.As=!!b.is_yto_interstitial;(a.interstitials.length||a.As)&&a.Rc.push("yto")};
gB=function(a,b){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}if(c){a.Pg=c;a.fa("embedded_player_watch_next_parse_killswitch")||(c=a.Pg.playerOverlays)&&c.playerOverlayRenderer&&(c=c.playerOverlayRenderer,c.videoDetails&&c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer&&iB(a,b,c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer));c=a.Pg.contents;var e;if(c){if(e=c.singleColumnWatchNextResults){var f=Fy(0,b.autoplay_count);if(e.autoplay&&e.autoplay.autoplay&&
!e.playlist){var k=e.autoplay.autoplay.sets;e={};d={};var l=null;if(k){for(var m=g.q(k),n=m.next();!n.done;n=m.next())if((n=n.value.autoplayVideoRenderer)&&n.compactVideoRenderer){l=n.compactVideoRenderer;break}if(k=k[0].autoplayVideo)(k=k.clickTrackingParams)&&(e.itct=k),e.autonav="1",e.playnext=String(f)}else e.feature="related-auto";if(l){d.autonav="1";d.video_id=l.videoId;if(f=l.shortBylineText)d.author=g.T(f);if(f=l.title)d.title=g.T(f)}d.endscreen_autoplay_session_data=g.zd(e);a.suggestions=
[d]}}e=c.twoColumnWatchNextResults}c=a.Pg.playerOverlays;if(c&&(c=c.playerOverlayRenderer)){if(d=c.endScreen)if(d=d.watchNextEndScreenRenderer)var p=d.results;if(d=c.videoDetails){var t=d.embeddedPlayerOverlayVideoDetailsRenderer;if(d=d.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.Cr=d.title,a.Br=d.byline}if(d=c.actions)for(d=g.q(d),f=d.next();!f.done;f=d.next())f=f.value,f.likeButtonRenderer&&(a.likeButtonRenderer=f.likeButtonRenderer);g.Uy(a.Oa)&&(a.Ph=!!c.addToMenu);jB(a,c.shareButton)}!p&&
e&&(c=e.endScreen&&e.endScreen.endScreen)&&(p=c.results);e&&(c=e.desktopOverlay&&e.desktopOverlay.desktopOverlayConfigRenderer)&&(c.suppressShareButton&&(a.showShareButton=!1),c.suppressWatchLaterButton&&(a.Ph=!1));t&&iB(a,b,t);if(p){t=e||null;e=Fy(0,b.autoplay_count);c=[];f=!0;p=g.q(p);for(d=p.next();!d.done;d=p.next()){k=d.value;l=void 0;d=null;if(k.endScreenVideoRenderer){k=k.endScreenVideoRenderer;m=k.title;d={id:k.videoId,length_seconds:k.lengthInSeconds};if(n=k.shortBylineText)d.author=g.T(n);
if(n=k.shortViewCountText)d.short_view_count_text=g.T(n);m&&(d.title=g.T(m),(m=m.accessibility)&&(m=m.accessibilityData)&&m.label&&(d.aria_label=m.label));if(m=k.navigationEndpoint)l=m.clickTrackingParams;if(m=k.thumbnailOverlays)for(m=g.q(m),n=m.next();!n.done;n=m.next())if((n=n.value.thumbnailOverlayTimeStatusRenderer)&&"LIVE"==n.style){d.live_playback="1";break}k=$z(k.thumbnail);k=Wz(k);k.iurlmq&&(k={iurlmq:k.iurlmq,iurlhq:k.iurlmq});Object.assign(d,k)}else if(k.endScreenPlaylistRenderer){k=k.endScreenPlaylistRenderer;
l=k.navigationEndpoint;if(!l)continue;d=l.watchEndpoint;if(!d)continue;d=d.videoId;d={list:k.playlistId,video_id:d,playlist_length:k.videoCount,thumbnail_ids:d};if(m=k.title)d.playlist_title=g.T(m);if(m=k.shortBylineText)d.playlist_author=g.T(m);l=l.clickTrackingParams;k=$z(k.thumbnail);Object.assign(d,Wz(k))}d&&(d.session_data=g.zd({itct:l}),f?(f={autonav:1,playnext:e},d.list&&(f.autoplay="1"),t&&(l=t.autoplay)&&(l=l.autoplay)&&(l=l.sets)&&(l=l[0])&&(l=l.autoplayVideo)&&(l=l.clickTrackingParams)&&
(f.itct=l),f.itct||(f.feature="related-auto"),d.endscreen_autoplay_session_data=g.zd(f),c.splice(0,0,d),f=!1):c.push(d))}a.suggestions=c}a.Pg.currentVideoThumbnail&&(a.ff=$z(a.Pg.currentVideoThumbnail))}};
Vha=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};
mB=function(a){var b=a.Cf,c=!!a.ia&&(a.ia.xg()||a.ia.yg()||a.ia.sg()),d=a.Oa,e=!!a.ia&&a.ia.Df,f=kB(a),k=a.Wu;a.isAd();var l=a.Hl(),m=lB(a,"html5_samsung_vp9_live"),n=new Rga;n.P=f;n.C=k&&d.w;il("windows nt 5.1")&&!g.ku&&(n.o=!0);c&&Ry&&6>=Sy&&(n.o=!0);if(f=c)f=d.fa("disable_html5_ambisonic_audio")||!(g.sz(d)||d.fa("html5_enable_spherical")||d.fa("html5_enable_spherical3d"))?!1:tz(d);f&&(n.I=!0);b&&(n.o=!0,n.aa=!0);l&&!g.P(d.experiments,"html5_otf_prefer_vp9")&&(n.o=!0);iu(d.A,ru)&&(g.P(d.experiments,
"html5_enable_aac51")&&(n.B=!0),g.P(d.experiments,"html5_enable_ac3")&&(n.u=!0),g.P(d.experiments,"html5_enable_eac3")&&(n.A=!0));!g.P(d.experiments,"html5_kaios_hd_killswitch")&&My&&(n.U=480);if(e||c)n.L=!1;n.R=!1;b=xz(d);0<b&&2160>b&&window.SourceBuffer&&SourceBuffer.prototype.changeType&&(n.w=b);2160<=b&&(n.V=!0);py()&&(n.Z=!1);n.G=m;ml()&&a.Da&&a.Da.playerConfig&&a.Da.playerConfig.webPlayerConfig&&a.Da.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(n.u=!0,n.A=!0);a.sa&&(m=a.Mb&&a.Oa.fa("html5_enable_audio_51_for_live_dai"),
a=!a.Mb&&a.Oa.fa("html5_enable_audio_51_for_live_non_dai"),n.F=m||a);return n};
Xha=function(a){nB(a)?a.Yh=!0:!oB(a,a.adaptiveFormats)&&a.fe&&(a.Yh=!0)};
oB=function(a,b){var c;(c=!b)||(c=!(!pB(a)&&a.adaptiveFormats));if(c)return!1;c=qB(b);var d=a.zc;var e=a.lengthSeconds,f=a.sa,k=a.ze,l=a.Oa.experiments,m=wga(c);d=f||k?vga(c,k,d,l):3==m?uga(c,d,e,l):tga(c,d,e,l);0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=Ux(c.url,c.sp,c.s,a.Oa.experiments),c=parseInt(c.get("max_sq"),10)||Infinity,isFinite(c)&&(a.uo=!0)));if(c=d.u)c=!(a.fa("html5_manifestless_vp9")||a.fa("html5_manifestless_vp9_normal_latency")&&(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||
!Yha(d));if(c)return d.dispose(),!1;rB(a,d);d.w&&d.subscribe("cuepointsadded",a.tw,a);Qx(d)&&(a.Nj=!0);return!0};
pB=function(a){return ml()&&!sB(a)};
sB=function(a){return lB(a,"html5_enable_tvos_dash_dogfood")||a.fa("html5_enable_tvos_dash")&&MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
Wha=function(a){pB(a)&&(a.sa&&a.fe?a.Yh=!0:a.Oe&&(a.Nj=!0))};
Yha=function(a){return a.u&&Ht('video/webm; codecs="vp9"')&&Fb(a.o,function(b){return lt(b.info)})};
tB=function(a){return!(!a.ia||!a.ia.u)};
vB=function(a){if(!vx())return!1;if(a.fa("html5_streaming_debug"))return!0;if(g.zu)return!1;if(g.ll()){var b=hl();if(16<=b&&17>b)return!1}return!tB(a)||"ULTRALOW"!=a.latencyClass&&21530001!=uB(a)?window.AbortController?a.fa("html5_streaming_xhr")||a.fa("html5_streaming_xhr_manifestless")&&tB(a)?!0:!1:!1:!0};
wB=function(a){var b=tB(a),c=vB(a);return(a.hasSubfragmentedFmp4||a.Ej)&&b?c&&vx()?3:2:a.defraggedFromSubfragments&&b?-1:1};
uB=function(a){return a.isLowLatencyLiveStream&&void 0!=a.ia&&5<=ey(a.ia)?21530001:a.liveExperimentalContentId};
hB=function(a){return ml()&&sB(a)?!1:!wu()||a.Fw?!0:!1};
Zha=function(a){a.pc=!0;a.Yh=!1;if(!a.fe&&nB(a))xfa(a.videoId).then(function(d){return oB(a,d)},function(){return oB(a,a.adaptiveFormats)}).then(function(){return xB(a)});
else{Uw(a.fe)||g.ar(new Zq("DASH MPD Origin invalid: ",a.fe));var b=a.fe,c=g.Q(a.Oa.experiments,"dash_manifest_version")||4;b=g.Bd(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Bd(b,{pacing:0}));zga(b,a.Oa.experiments,a.sa).then(a.FK,a.EK,a);FA("mrs",void 0,void 0)}};
g.yB=function(a){if(!a.Tc)return null;var b=null!=a.Tc.latitudeE7&&null!=a.Tc.longitudeE7?a.Tc.latitudeE7+","+a.Tc.longitudeE7:",";return b+=","+(a.Tc.clientPermissionState||0)+","+(a.Tc.locationRadiusMeters||"")+","+(a.Tc.locationOverrideToken||"")};
xB=function(a){a.ea()||(a.pc=!1,a.S("dataloaded"))};
rB=function(a,b){a.ia=b;g.C(a,b);zB(a)&&a.Rc.push("webgl");a.ia.isLive||(a.sa=!1);var c=b.sourceUrl.split("/");-1!=c.indexOf("manifest_duration")&&(a.Ll=parseInt(c[c.indexOf("manifest_duration")+1],10))};
AB=function(a){return a.zc?!0:a.fa("web_player_content_protection_manifest_killswitch")?!1:!!a.ia&&Qx(a.ia)};
$ha=function(a,b){var c=b||hB(a);if(a.ia&&!c){if(kB(a)){c=a.ia;var d=a.sa;if(!c.o["0"]){var e=new kt("0","fakesb",void 0,new et(0,0,0,void 0,void 0,"auto"),null,null,1);c.o["0"]=d?new ux(new $w("http://www.youtube.com/videoplayback"),e,"fake"):new Lx(new $w("http://www.youtube.com/videoplayback"),e,new $v(0,0),new $v(0,0),0,NaN)}}lB(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.Oa.A.A=!0);return Zga(mB(a),a.Oa.A,a.ia,a.wc).then(a.Bu,void 0,a)}return rr()};
g.BB=function(a){return pB(a)&&a.Oe?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.Ba&&a.Ba.zc||null};
CB=function(a){var b=a.Da&&a.Da.paidContentOverlay&&a.Da.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.T(b.text):a.LN};
DB=function(a){var b=a.Da&&a.Da.paidContentOverlay&&a.Da.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?g.jd(b.durationMs):a.gB};
EB=function(a){var b="";if(a.Ms)return a.Ms;a.sa&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.FB=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
GB=function(a){return!!(a.fe||a.adaptiveFormats||a.Bk||a.vk||a.hlsvp)};
HB=function(a){var b=g.cb(a.Rc,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.pc&&(GB(a)||g.cb(a.Rc,"fresca")||g.cb(a.Rc,"heartbeat")||b)};
qB=function(a,b){var c=g.sq(a),d={};if(b)for(var e=g.q(b.split(",")),f=e.next();!f.done;f=e.next())(f=f.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[f[1]]={width:f[2],height:f[3]});e=g.q(c);for(f=e.next();!f.done;f=e.next()){f=f.value;var k=d[f.itag];k&&(f.width=k.width,f.height=k.height)}return c};
Uha=function(a){if(IB(a)&&(a.errorDetail="0",a.bl)){var b=a.bl.embeddedPlayerErrorMessageRenderer;b&&(a.Jw=b)}};
jB=function(a,b){a.showShareButton=!!b;if(b){var c=b.buttonRenderer&&b.buttonRenderer.navigationEndpoint;c&&(a.Fm=!!c.copyTextEndpoint)}};
Tha=function(a,b,c){c=c.thumbnailPreviewRenderer;var d=c.controlBgHtml;null!=d?(a.gg=d,a.lc=!0):(a.gg="",a.lc=!1);if(d=c.defaultThumbnail)a.ff=$z(d);a.fa("web_player_embedded_details_parsing_killswitch")||(d=c.videoDetails&&c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer)&&iB(a,b,d);if(b=c.videoDetails&&c.videoDetails.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.Cr=b.title,a.Br=b.byline,b.musicVideoType&&(a.musicVideoType=b.musicVideoType);a.Ph=!!c.addToWatchLaterButton;jB(a,c.shareButton);
c.playButton&&c.playButton.buttonRenderer&&c.playButton.buttonRenderer.navigationEndpoint&&(b=c.playButton.buttonRenderer.navigationEndpoint,b.watchEndpoint&&(b=b.watchEndpoint,b.watchEndpointSupportedOnesieConfig&&b.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig&&(a.pp=new Rha(b.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig))));a.fa("web_player_include_innertube_commands")&&c.webPlayerActionsPorting&&eA(a,c.webPlayerActionsPorting)};
iB=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);if(d=c.channelThumbnailEndpoint&&c.channelThumbnailEndpoint.channelThumbnailEndpoint)if(d=d.urlEndpoint&&d.urlEndpoint.urlEndpoint)b.channel_path=d.url;if(d=c.collapsedRenderer)if(d=d.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){var e=d.title;e&&(b.title=g.T(e));if(d=d.subtitle)b.subtitle=g.T(d)}if(c=c.expandedRenderer)if(c=c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(d=c.title)b.expanded_title=
g.T(d);if(d=c.subtitle)b.expanded_subtitle=g.T(d);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.uk=!!c.notificationPreferenceToggleButton}};
g.JB=function(a){return a.sa&&!a.allowLiveDvr};
KB=function(a){return a.sa&&a.allowLiveDvr};
zB=function(a){return a.yg()||a.xg()||a.Jj()||a.sg()};
aia=function(a){a.wa=a.wa.u};
g.LB=function(a){if(a.Fu)return null;var b=a.iy;b||(b=a.Da&&a.Da.endscreen&&a.Da.endscreen.endscreenUrlRenderer&&a.Da.endscreen.endscreenUrlRenderer.url);return b||null};
g.MB=function(a){return a.Fu?null:a.Da&&a.Da.endscreen&&a.Da.endscreen.endscreenRenderer||null};
g.NB=function(a){return a.Da&&a.Da.cards&&a.Da.cards.cardCollectionRenderer||null};
g.OB=function(a){if(!a.Da||!a.Da.annotations)return null;a=g.q(a.Da.annotations);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.playerAnnotationsExpandedRenderer&&b.playerAnnotationsExpandedRenderer.featuredChannel)return b.playerAnnotationsExpandedRenderer;return null};
PB=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.Oa.aa};
QB=function(a){return a.fa("video_masthead_inline_autoplay_history_fix")?a.Eg||"detailpage"==PB(a)||"adunit"==PB(a)||a.mutedAutoplay:a.Eg||"detailpage"==PB(a)||a.mutedAutoplay};
RB=function(a){if(QB(a)){if("detailpage"==PB(a))return a.Kj||0<a.Jf;if("adunit"!=PB(a)||!a.pm)return!0}return!1};
SB=function(a){var b=1,c=g.Q(a.Oa.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);return Math.min(1,Math.pow(10,-a.wm/20))||b};
kB=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"==a.Oa.deviceParams.c&&"MUSIC"==a.Oa.deviceParams.ctheme;!a.ij&&(pz(a.Oa)||c)&&b.includes(a.musicVideoType)&&(a.ij=!0);if(b=g.ll())b=/Starboard\/([0-9]+)/.exec(g.Lc),b=10>(b?parseInt(b[1],10):NaN);if(c=!a.ij)c=a.Oa,c="TVHTML5_CAST"==c.deviceParams.c||"TVHTML5"==c.deviceParams.c&&c.deviceParams.cver.startsWith("6.20130725");c&&"MUSIC"==a.Oa.deviceParams.ctheme&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===
a.musicVideoType,c=a.fa("cast_prefer_audio_only_for_atv_and_uploads")&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.ij=!0);return!a.Oa.deviceHasDisplay||a.ij&&a.Oa.w};
TB=function(a){return!!(a.fa("mweb_hoffline")&&a.adaptiveFormats&&a.sj&&a.Oa.w)};
nB=function(a){var b;if(b=a.fa("mweb_hoffline")&&a.adaptiveFormats)b=a.videoId,b=!!b&&zt().includes(b);return!(!b||a.sj)};
IB=function(a){return(a=a.bl)&&a.showError?a.showError:!1};
UB=function(a){return a.fa("disable_rqs")?!1:lB(a,"html5_high_res_logging")};
lB=function(a,b){return a.fa(b)?!0:(a.Pw||"").includes(b+"=true")};
eB=function(a,b){var c=b.video_masthead_ad_quartile_urls;c&&(a.vp=c.quartile_0_url,a.fu=c.quartile_25_url,a.hu=c.quartile_50_url,a.ju=c.quartile_75_url,a.du=c.quartile_100_url,a.wp=c.quartile_0_urls,a.gu=c.quartile_25_urls,a.iu=c.quartile_50_urls,a.ku=c.quartile_75_urls,a.eu=c.quartile_100_urls)};
hA=function(a){return a?wu()?!0:VB&&5>WB?!1:!0:!1};
gA=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};
dA=function(a){if(a){if(Xw(a))return a;a=Yw(a);if(Xw(a,!0))return a}return""};
YB=function(a,b){g.A.call(this);var c=this;this.app=a;this.o=!0;this.A=null;this.C={};this.G={};this.w={};this.I=[];this.F={};this.B={};this.u=null;this.L=new Set;this.playerType=b;XB(this,"cueVideoById",this.cueVideoById);XB(this,"loadVideoById",this.loadVideoById);XB(this,"cueVideoByUrl",this.cueVideoByUrl);XB(this,"loadVideoByUrl",this.loadVideoByUrl);XB(this,"playVideo",this.playVideo);XB(this,"pauseVideo",this.pauseVideo);XB(this,"stopVideo",this.stopVideo);XB(this,"clearVideo",this.clearVideo);
XB(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);XB(this,"getVideoBytesTotal",this.getVideoBytesTotal);XB(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);XB(this,"getVideoStartBytes",this.getVideoStartBytes);XB(this,"cuePlaylist",this.cuePlaylist);XB(this,"loadPlaylist",this.loadPlaylist);XB(this,"nextVideo",this.nextVideo);XB(this,"previousVideo",this.previousVideo);XB(this,"playVideoAt",this.playVideoAt);XB(this,"setShuffle",this.setShuffle);XB(this,"setLoop",this.setLoop);XB(this,
"getPlaylist",this.getPlaylist);XB(this,"getPlaylistIndex",this.getPlaylistIndex);XB(this,"getPlaylistId",this.getPlaylistId);XB(this,"loadModule",this.loadModule);XB(this,"unloadModule",this.unloadModule);XB(this,"setOption",this.setOption);XB(this,"getOption",this.getOption);XB(this,"getOptions",this.getOptions);XB(this,"mute",this.mute);XB(this,"unMute",this.unMute);XB(this,"isMuted",this.isMuted);XB(this,"setVolume",this.setVolume);XB(this,"getVolume",this.getVolume);XB(this,"seekTo",this.seekTo);
XB(this,"getPlayerState",this.getPlayerState);XB(this,"getPlaybackRate",this.getPlaybackRate);XB(this,"setPlaybackRate",this.setPlaybackRate);XB(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);XB(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
XB(this,"setPlaybackQuality",this.setPlaybackQuality);XB(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);XB(this,"getCurrentTime",this.getCurrentTime);XB(this,"getDuration",this.getDuration);XB(this,"addEventListener",this.addEventListener);XB(this,"removeEventListener",this.removeEventListener);XB(this,"getDebugText",this.getDebugText);XB(this,"getVideoData",function(){return c.getVideoData()});
XB(this,"addCueRange",this.addCueRange);XB(this,"removeCueRange",this.removeCueRange);XB(this,"setSize",this.setSize);XB(this,"getApiInterface",this.getApiInterface);XB(this,"destroy",this.destroy);XB(this,"showVideoInfo",this.showVideoInfo);XB(this,"hideVideoInfo",this.hideVideoInfo);XB(this,"isVideoInfoVisible",this.isVideoInfoVisible);XB(this,"getSphericalProperties",this.getSphericalProperties);XB(this,"setSphericalProperties",this.setSphericalProperties);this.app.M().B||(XB(this,"getVideoEmbedCode",
this.getVideoEmbedCode),XB(this,"getVideoUrl",this.getVideoUrl));XB(this,"getMediaReferenceTime",this.getMediaReferenceTime);U(this,"getInternalApiInterface",this.getInternalApiInterface);U(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);U(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);U(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);U(this,"getAdState",this.getAdState);U(this,"sendAbandonmentPing",this.sendAbandonmentPing);U(this,"setLoopRange",this.setLoopRange);
U(this,"getLoopRange",this.getLoopRange);U(this,"setAutonavState",this.setAutonavState);U(this,"seekToLiveHead",this.seekToLiveHead);U(this,"seekToStreamTime",this.seekToStreamTime);U(this,"getStreamTimeOffset",this.getStreamTimeOffset);U(this,"getVideoData",this.getVideoData);U(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);U(this,"deleteLocalMediaById",this.deleteLocalMediaById);U(this,"deleteAllLocalMedia",this.deleteAllLocalMedia);U(this,"fetchLocalMedia",this.fetchLocalMedia);U(this,
"fetchLocalMediaById",this.fetchLocalMediaById);U(this,"getLocalMediaInfoById",this.getLocalMediaInfoById);U(this,"getAllLocalMediaInfo",this.getAllLocalMediaInfo);U(this,"getAppState",this.getAppState);U(this,"addInfoCardXml",this.addInfoCardXml);U(this,"updateLastActiveTime",this.updateLastActiveTime);U(this,"setBlackout",this.setBlackout);U(this,"setUserEngagement",this.setUserEngagement);U(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);U(this,"setFauxFullscreen",this.setFauxFullscreen);
U(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);U(this,"getPresentingPlayerType",this.getPresentingPlayerType);U(this,"canPlayType",this.canPlayType);U(this,"updatePlaylist",this.updatePlaylist);U(this,"updateVideoData",this.updateVideoData);U(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);U(this,"setCardsVisible",this.setCardsVisible);U(this,"setSafetyMode",this.setSafetyMode);U(this,"isInline",this.isInline);U(this,"setInline",this.setInline);U(this,"isAtLiveHead",
this.isAtLiveHead);U(this,"getVideoAspectRatio",this.getVideoAspectRatio);U(this,"getPreferredQuality",this.getPreferredQuality);U(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);U(this,"onAdUxClicked",this.onAdUxClicked);U(this,"setAutonav",this.setAutonav);U(this,"isNotServable",this.isNotServable);U(this,"channelSubscribed",this.channelSubscribed);U(this,"channelUnsubscribed",this.channelUnsubscribed);U(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);U(this,"togglePictureInPicture",
this.togglePictureInPicture);U(this,"supportsGaplessAudio",this.supportsGaplessAudio);U(this,"enqueueVideoByPlayerVars",function(d){return c.enqueueVideoByPlayerVars(d)});
U(this,"clearQueue",this.clearQueue);U(this,"isFastLoad",function(){return!1});
U(this,"getPlayerResponse",this.getPlayerResponse);U(this,"getStoryboardFrame",this.getStoryboardFrame);U(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);U(this,"getStoryboardLevel",this.getStoryboardLevel);U(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);U(this,"getAudioTrack",this.yE);U(this,"setAudioTrack",this.setAudioTrack);U(this,"getAvailableAudioTracks",this.zE);U(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);U(this,"getUserPlaybackQualityPreference",
this.getUserPlaybackQualityPreference);U(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);U(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);U(this,"setMinimized",this.setMinimized);U(this,"handleExternalCall",this.handleExternalCall);U(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);U(this,"getStatsForNerds",this.getStatsForNerds);U(this,"setScreenLayer",this.setScreenLayer);U(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);U(this,
"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);U(this,"forceFrescaUpdate",this.forceFrescaUpdate);U(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);U(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);U(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);U(this,"setGlobalCrop",this.setGlobalCrop);U(this,"getVisibilityState",this.getVisibilityState);U(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);
U(this,"setInternalSize",this.setInternalSize)};
XB=function(a,b,c){a.C[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)};
a.w.hasOwnProperty(b)||U(a,b,c);a.I.push(b)};
ZB=function(a,b,c){a.G[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)};
a.w.hasOwnProperty(b)||U(a,b,c);a.I.push(b)};
U=function(a,b,c){a.w[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)}};
$B=function(a){a.u||(a.u={},g.Ua(a.u,a.C),g.Ua(a.u,a.G),a.u.addEventListener=(0,g.x)(a.AE,a),a.u.removeEventListener=(0,g.x)(a.BE,a));return a.u};
bC=function(a,b,c){b=g.Pd(Math.floor(b),0,100);isFinite(b)&&aC(a.app,{volume:b,muted:a.isMuted()},c)};
cC=function(a,b){aC(a.app,{muted:!0,volume:a.getVolume()},b)};
dC=function(a,b){aC(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.fC=function(a){var b=eC(a.app.A);if(b)return b.chrome;a=a.app.A;return(a=g.Xy(a.o.M())?a.u.get("music"):null)?a.w:null};
hC=function(a,b){YB.call(this,a,b);var c=this;this.o=!1;ZB(this,"cueVideoByPlayerVars",function(d,e){for(var f=[],k=1;k<arguments.length;++k)f[k-1]=arguments[k];c.cueVideoByPlayerVars.apply(c,[gC(c,d)].concat(g.ea(f)))});
ZB(this,"loadVideoByPlayerVars",function(d,e){for(var f=[],k=1;k<arguments.length;++k)f[k-1]=arguments[k];c.loadVideoByPlayerVars.apply(c,[gC(c,d)].concat(g.ea(f)))});
ZB(this,"preloadVideoByPlayerVars",function(d,e,f,k){return c.preloadVideoByPlayerVars(gC(c,d),e,f,k)});
ZB(this,"seekBy",this.seekBy);ZB(this,"mutedAutoplay",this.mutedAutoplay);ZB(this,"showControls",this.showControls);ZB(this,"hideControls",this.hideControls);ZB(this,"cancelPlayback",this.cancelPlayback);ZB(this,"getProgressState",this.getProgressState);ZB(this,"getStoryboardFormat",this.getStoryboardFormat);ZB(this,"getVideoContentRect",this.getVideoContentRect);ZB(this,"toggleFullscreen",this.toggleFullscreen);ZB(this,"isFullscreen",this.isFullscreen);ZB(this,"getVideoStats",this.getVideoStats);
ZB(this,"getPlayerSize",this.getPlayerSize);ZB(this,"toggleSubtitles",this.toggleSubtitles);ZB(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);ZB(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);ZB(this,"setSizeStyle",this.setSizeStyle);ZB(this,"wakeUpControls",this.wakeUpControls)};
gC=function(a,b){if(!a.fa("web_player_tapi_vars_log_killswitch")){var c=Object.keys(b).filter(function(f){return!iC.includes(f)});
0<c.length&&(c.sort(),c=new Zq("b/151451059",c),g.ar(c))}c={};for(var d=g.q(iC),e=d.next();!e.done;e=d.next())e=e.value,b.hasOwnProperty(e)&&(c[e]=b[e]);return c};
jC=function(a,b){this.w=a;this.timerName="";this.u=!1;this.o=b||null;this.u=!1};
kC=function(a,b,c){var d=g.Uy(b.Oa)&&b.Oa.Uc&&QB(b);if(b.Oa.Kc&&(Qy(b.Oa)||g.uz(b.Oa)||d)&&!a.u){a.u=!0;g.L("TIMING_ACTION")||Bo("TIMING_ACTION",a.w.pd);a.w.Qb&&Bo("CSI_SERVICE_NAME",a.w.Qb);if(a.o){b=a.o.A;d=g.q(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,FA(e,b[e],a.timerName);b=a.o.w;d=g.q(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,EA(e,b[e],a.timerName);b=a.o;b.A={};b.w={}}EA("yt_pvis",Qha(),a.timerName);EA("yt_pt","html5",a.timerName);c&&!KA("pbs",a.timerName)&&
a.tick("pbs",c);c=a.w;!g.uz(c)&&!Qy(c)&&KA("_start",a.timerName)&&NA(a.timerName)}};
g.mC=function(a,b,c){this.start=a;this.end=b;this.active=!0;this.color="";this.A=bia++;a=c||{};this.id=a.id||"";this.priority=a.priority||7;this.visible=a.visible||!1;this.style=a.style||lC.AD_MARKER;this.namespace=a.namespace||"";if(b=a.color)b=b.toString(16),this.color="#"+Array(7-b.length).join("0")+b;this.tooltip=a.tooltip;this.icons=a.icons?a.icons.filter(function(d){return(0,g.yi)(d.thumbnails,function(e){return g.Vw(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
nC=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
cia=function(a,b){switch(a.style){case lC.CHAPTER_MARKER:return b?8:5;case lC.AD_MARKER:return 6;case lC.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.oC=function(a,b){return a.start-b.start||a.priority-b.priority||a.A-b.A};
g.pC=function(a){return"crn_"+a};
g.qC=function(a,b){this.type=a||"";this.id=b||""};
g.rC=function(a,b){g.O.call(this);this.u=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.pc=this.loaded=!1;this.Ob=this.Mw=this.o=null;this.views=0;this.order=[];this.ff={};this.w=0;var c=b.session_data;c&&(this.Ob=pq(c));this.B=0!==b.fetch;this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.C="1"===b.mob;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author=
b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(c=b.api)"string"===typeof c&&16===c.length?b.list="PL"+c:b.playlist=c;if(c=b.list)switch(b.listType){case "user_uploads":this.pc||(this.listId=new g.qC("UU","PLAYER_"+c),this.loadPlaylist("/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:c}));break;case "user_favorites":g.P(a.experiments,"embeds_disable_user_favoriates_playlist_killswitch")&&!this.pc&&(this.listId=new g.qC("FL","PLAYER_"+c),this.loadPlaylist("/list_ajax?style=json&action_get_favorited_by_user=1",
{username:c}));break;case "search":dia(this,c);break;default:var d=b.playlist_length;d&&(this.length=Number(d)||0);this.listId=new g.qC(c.substr(0,2),c.substr(2));(c=b.video)?(this.items=c.slice(0),this.loaded=!0):eia(this)}else if(b.playlist){c=b.playlist.toString().split(",");0<this.index&&(this.items=[]);c=g.q(c);for(d=c.next();!d.done;d=c.next())(d=d.value)&&this.items.push({video_id:d});this.length=this.items.length;c=this.items.map(function(e){return e.video_id});
this.loadPlaylist("/list_ajax?style=json&action_get_templist=1",{video_ids:c.join(",")});this.loaded=!0}this.setShuffle(!!b.shuffle);if(c=b.suggestedQuality)this.quality=c;this.ff=Xz(b,"playlist_");this.A=(c=b.thumbnail_ids)?c.split(","):[]};
sC=function(a){return!!(a.playlist||a.list||a.api)};
tC=function(a){var b=a.index+1;return b>=a.length?0:b};
uC=function(a){var b=a.index-1;return 0>b?a.length-1:b};
vC=function(a,b){a.index=g.Pd(b,0,a.length-1);a.startSeconds=0};
dia=function(a,b){if(!a.pc){a.listId=new g.qC("SR",b);var c={search_query:b};a.C&&(c.mob="1");a.loadPlaylist("/search_ajax?style=json&embeddable=1",c)}};
eia=function(a){if(!a.pc){var b=b||a.listId;b={list:b};var c=a.va();c&&c.videoId&&(b.v=c.videoId);a.loadPlaylist("/list_ajax?style=json&action_get_list=1",b)}};
wC=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.va();a.items=[];for(var d=g.q(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(d=b.index)?a.index=d:a.findIndex(c);a.setShuffle(!1);a.pc=!1;a.loaded=!0;a.w++;a.o&&a.o()}};
xC=function(a,b){a.o=b;a.loaded&&g.Oo(a.o,0)};
yC=function(){};
g.zC=function(){g.A.call(this);this.w=null;this.F=this.C=!1;this.B=new g.kf;g.C(this,this.B)};
AC=function(a){a=a.tl();return 1>a.length?NaN:a.end(a.length-1)};
BC=function(a,b){a.w&&null!==b&&b.o===a.w.o||(a.w&&a.w.dispose(),a.w=b)};
CC=function(a){return Vt(a.Fd(),a.getCurrentTime())};
fia=function(a,b){if(0==a.je()||0<a.Xe())return!1;var c=0<a.getCurrentTime();if(0<=b){var d=a.tl();if(d.length||!c)return St(d,b)}return c};
DC=function(a){var b=a.Fd();return 0<Ut(b)&&a.getDuration()?Tt(b,a.getCurrentTime()):0};
EC=function(a){var b=a.Fd();return 0<Ut(b)&&a.getDuration()?b.end(b.length-1):0};
FC=function(a){var b=a.getDuration();return Infinity==b?1:b?DC(a)/b:0};
GC=function(a){switch(a.Xe()){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}};
HC=function(a,b,c){g.Me.call(this,b,a);this.u=c||null};
gia=function(){this.A=this.o=NaN;this.w=this.u=!1};
IC=function(a,b){return b>a.o+.001&&b<a.o+5};
JC=function(a,b,c,d){if(d=1<d)a.w=!0;if(a.u)b!=a.o&&(a.u=!1);else if(0<b&&a.o==b)return c-a.A>(d||!a.w?1500:400);a.o=b;a.A=c;return!1};
g.KC=function(a){return(a=hia[a.toString()])?a:"LICENSE"};
g.LC=function(a,b){this.o=a||64;this.u=void 0===b?null:b};
MC=function(a,b){return JC(a,b.getCurrentTime(),(0,g.N)(),CC(b))};
NC=function(a,b,c){return b==a.o&&c==a.u||void 0!=b&&(b&128&&!c||b&2&&b&16)?a:new g.LC(b,c)};
OC=function(a,b){return NC(a,a.o|b)};
PC=function(a,b){return NC(a,a.o&~b)};
QC=function(a,b,c){return NC(a,(a.o|b)&~c)};
g.V=function(a,b){return!!(a.o&b)};
g.RC=function(a,b){return b.o==a.o&&b.u==a.u};
g.SC=function(a){return g.V(a,8)&&!g.V(a,2)&&!g.V(a,1024)};
TC=function(a){return a.ab()&&!g.V(a,16)&&!g.V(a,32)};
iia=function(a){return g.V(a,8)&&g.V(a,16)};
g.UC=function(a){return g.V(a,1)&&!g.V(a,2)};
VC=function(a){return g.V(a,128)?-1:g.V(a,2)?0:g.V(a,64)?-1:g.V(a,1)&&!g.V(a,32)?3:g.V(a,8)?1:g.V(a,4)?2:-1};
WC=function(a,b){this.o=a;this.w=b;this.u=null;this.A=[];this.B=!1};
g.XC=function(a){a.u||(a.u=a.o.createMediaElementSource(a.w.ib()));return a.u};
g.YC=function(a){for(var b;0<a.A.length;)(b=a.A.pop())&&b.disconnect();a.u&&a.u.disconnect()};
ZC=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
$C=function(){var a=this;this.u=this.w=kaa;this.o=new Cf(function(b,c){a.w=b;a.u=c})};
jia=function(a,b){this.F=a;this.u=b;this.B=a.wD;this.C=new Uint8Array(this.B);this.A=this.w=0;this.o=null;this.G=[];this.P=this.L=null;this.I=new $C;var c=aD(this);wfa(this.F.w,!!this.u.info.video,c)};
bD=function(a){return!!a.o&&a.o.C};
dD=function(a,b){if(!bD(a)){if(1==b.info.type)a.L=bw(0,b.o.getLength());else if(2==b.info.type){if(!a.o||1!=a.o.type)return;a.P=bw(a.A*a.B+a.w,b.o.getLength())}else if(3==b.info.type){if(3==a.o.type&&!gw(a.o,b.info)&&(a.G=[],b.info.u!=iw(a.o)||0!=b.info.w))return;if(b.info.A)a.G.map(function(c){return cD(a,c)}),a.G=[];
else{a.G.push(b);a.o=b.info;return}}a.o=b.info;cD(a,b);kia(a)}};
cD=function(a,b){for(var c=0,d=vw(b.o);c<d.length;){var e=Math.min(d.length-c,a.C.byteLength-a.w),f=new Uint8Array(d.buffer,d.byteOffset+c,e);a.C.set(f,a.w);a.w+=e;c+=e;if(a.w==a.C.length){if(b.info===a.o&&bD(a)&&c===d.length)break;e=aD(a);Bt(a.F.w,a.u.info,a.A,a.C,e);a.C=new Uint8Array(a.B);a.w=0;a.A+=1}}};
kia=function(a){if(bD(a)){var b=new Uint8Array(a.C.buffer,0,a.w),c=lia(a);Bt(a.F.w,a.o.o.info,a.A,b,c).then(function(d){return a.I.resolve(d)})}};
aD=function(a){a={itag:a.u.info.id,dlt:Math.round(a.o?a.o.B:0),mket:Math.round(a.u.index.hh()),avbr:Math.round(a.u.info.w),csz:a.B,lmt:a.u.lastModified};return qq(a)};
lia=function(a){var b={lmt:a.u.lastModified,docid:a.F.w,fmtid:a.u.info.id,type:a.u.info.mimeType.split(";")[0],csz:a.B,clen:a.A*a.B+a.w};b="local://localhost/videoplayback?"+qq(b);a={itag:jt(a.u.info),type:a.u.info.mimeType,bitrate:8*a.u.info.o,lmt:""+a.u.lastModified,init:a.L.toString(),index:a.P.toString(),mket:Math.round(a.u.index.hh()).toString(),avbr:Math.round(a.u.info.w).toString(),url:b};return qq(a)};
mia=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};
nia=function(a){a=Cv(a,1886614376);(0,g.y)(a,function(b){return!b.u});
return(0,g.Fc)(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
oia=function(a){var b=(0,g.zi)(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};
pia=function(a,b){this.w=a;this.F=this.C=!1;this.length=b?b:0;this.u=0;this.A=null;this.o=[];this.B=null;this.length?1!=this.w.length||this.w[0].Na||(this.w[0].Na=this.length):1==this.w.length||(0,g.yi)(this.w,function(c){return!!c.range})};
qia=function(a){return a.length-a.u+a.o.reduce(function(b,c){return b+c.o.getLength()},0)};
eD=function(a,b,c,d){var e=this;this.yh=a;this.u=c;this.loaded=this.status=0;this.error="";a=aw(this.yh.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.o=new nw;ria(this).then(d,function(f){e.error=""+f||"unknown_err";d()});
b()};
ria=function(a){return rh(a,function c(){var d=this,e,f,k,l,m,n,p,t,u,z,B,D,E;return Ba(c,function(F){if(1==F.o){d.status=200;e=d.yh.get("docid");f=d.yh.get("fmtid");k=+(d.yh.get("csz")||0);if(!e||!f||!k)throw Error("Invalid local URL");l=d.range;m=Math.floor(l.start/k);n=Math.floor(l.end/k);p=m}if(5!=F.o)return p<=n?F=g.ua(F,yfa(e,f,p),5):(F.o=0,F=void 0),F;t=F.u;u=p*k;z=(p+1)*k;B=Math.max(0,l.start-u);D=Math.min(l.end+1,z)-(B+u);E=new Uint8Array(t.buffer,B,D);d.o.append(E);d.loaded+=D;d.loaded<
l.length&&d.u((0,g.G)(),d.loaded);p++;F.o=2})})};
sia=function(a){this.schedule=a;this.o=NaN;this.u=[];this.totalBytes=0};
tia=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.ee?!1:e.ee;var f=void 0===e.Bf?!1:e.Bf,k=void 0===e.wi?!1:e.wi,l=e.Ff,m=e.Ka;e=e.yd;this.V=null;this.U=this.o=NaN;this.ga=0;this.L=this.aa=this.u=this.A=NaN;this.ha=this.Z=this.isActive=!1;this.w=0;this.R=NaN;this.G=this.C=Infinity;this.P=NaN;this.da=!1;this.F=this.I=NaN;this.B=this.ba=void 0;this.ee=d;this.Bf=f;this.wi=k;this.Ff=l;this.Ka=m;this.yd=e;this.schedule=a;this.ma=b;this.oa=c;this.snapshot=By(this.schedule)};
fD=function(a){return{rt:((0,g.G)()-a.o).toFixed(),lb:a.u.toFixed(),pt:(1E3*a.R).toFixed(),pb:a.ma.toFixed(),stall:(1E3*a.w).toFixed(),elbowTime:(a.U-a.o).toFixed(),elbowBytes:a.ga.toFixed()}};
gD=function(a){!a.F&&a.V&&(a.F=a.V(),3===a.F&&(a.ba=new sia(a.schedule)));return a.F};
kD=function(a,b,c,d){var e=(b-a.A)/1E3,f=c-a.u,k=gD(a);if(3===k&&f){var l=a.ba;l.u.push({vT:f,PT:isNaN(l.o)?NaN:d-l.o,ET:d});l.o=d}a.isActive?1===k&&0<f&&(.2<e||1024>f?(a.w+=e,.2<e&&jD(a,.05,f)):jD(a,e,f),a.ha=!0):hD(a,c)&&(1===k&&(d=(b-a.o)/1E3,iD(a)||a.Bf||(k=a.schedule,k.B.w(1,d),Cy(k))),a.U=b,a.ga=c,a.isActive=!0);a.Bf||yy(a.schedule,e,f);a.A=b;a.u=c};
jD=function(a,b,c){if(!a.Bf){b=Math.max(b,.05);var d=a.schedule,e=b;a=a.wi;a=void 0===a?!1:a;d.u.w(void 0===b?e:b,c/e);a||(d.F=uy())}};
mD=function(a,b,c){c=Math.round(c/1024);a.B&&a.B.push(lD(b-a.aa,c-a.L));a.aa=b;a.L=c};
hD=function(a,b){return b?a.Ff&&1!==gD(a)?!0:2048<=b:!1};
nD=function(a){return hD(a,a.u)};
oD=function(a){a.P=a.o+1E3*a.snapshot.delay;a.da=!1};
pD=function(a,b){a.Ff&&void 0!==a.Ka&&void 0!==a.yd&&(a.C=Math.min(a.C,uia(a.Ff,a.Ka,a.o,b)),a.G=Math.min(a.G,via(a.Ff,a.Ka,a.o,b,a.yd)),a.C<=a.o?oD(a):(a.P=a.C,a.da=!0))};
iD=function(a){a.Ff&&pD(a,(0,g.G)());return a.da};
qD=function(a,b){b=void 0===b?(0,g.G)():b;if(a.Ff){pD(a,b);var c=a.F?a.Ff?1!==gD(a):!1:a.C!==a.G;if(c){if(c=a.G,b<c){a.I=a.G;return}}else c=a.C;c=Math.max(c,a.P)}else c=a.P;var d=a.ma-a.u;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=nD(a)?d+b:d+Math.max(b,c);a.I=d};
lD=function(a,b){for(var c="";4095<a;)c+=lD(4095,0),a-=4095;for(;4095<b;)c+=lD(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))};
rD=function(a,b,c,d,e,f,k){var l=void 0===k?{}:k;k=void 0===l.method?"GET":l.method;var m=l.headers,n=l.body;l=void 0===l.credentials?"include":l.credentials;this.R=c;this.L=d;this.U=e;this.policy=f;this.status=0;this.response=void 0;this.P=!1;this.u=0;this.G=NaN;this.aborted=this.C=this.I=!1;this.errorMessage="";this.method=k;this.headers=m;this.body=n;this.credentials=l;this.o=new nw;this.id=wia++;this.A=window.AbortController?new AbortController:void 0;this.start(a);this.startTime=Date.now();b()};
sD=function(a){a.w.read().then(a.uK.bind(a),a.onError.bind(a)).then(void 0,g.M)};
uD=function(a){if(!a.ea()){a.I=!0;if(tD(a)&&!a.o.getLength()&&!a.C&&a.u){wx(a);var b=new Uint8Array(8),c=new DataView(b.buffer);c.setUint32(0,8);c.setUint32(4,1936419184);a.o.append(b);a.u+=b.length}a.L()}};
tD=function(a){var b=a.fd("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.o&&a.policy.nd&&wx(a)&&b};
vD=function(a,b,c,d,e){var f=this;this.status=0;this.ea=this.w=!1;this.u=NaN;this.o=new XMLHttpRequest;this.o.open("GET",a);this.o.responseType="arraybuffer";this.o.withCredentials=!0;this.o.onreadystatechange=function(){2===f.o.readyState&&f.C()};
this.A=d;this.B=c;this.C=e;a=Mo(function(){if(!f.ea){f.status=f.o.status;try{f.response=f.o.response,f.u=f.response.byteLength}catch(k){}f.w=!0;f.A()}});
this.o.addEventListener("load",a,!1);this.o.addEventListener("error",a,!1);this.o.send();b();this.o.addEventListener("progress",Mo(function(k){f.ea||(f.status=f.o.status,f.B(k.timeStamp,k.loaded))}),!1)};
wD=function(a,b,c,d){this.u=a;this.info=b;this.timing=c;this.Z=d;this.state=1;this.o=this.ba=null;this.F=this.R=0;this.V=new g.H(this.hO,a.I,this);this.B=this.A=this.G=null;this.C=0;this.L=this.w=null;this.U=0;this.da=this.P=!1;this.I=this.u.Ia&&(qx(this.info)||this.info.ee());this.ha=!1;this.aa=null};
xia=function(a,b){a.ea();a.G=b};
xD=function(a){return a.A?bx(a.A.Je):""};
yD=function(a){var b=fD(a.timing);b.shost=xD(a);b.rn=a.R.toString();a.C&&(b.rc=a.C.toString());b.itag=""+jt(a.info.o[0].o.info);b.ml=""+ +a.info.o[0].o.dd();b.sq=""+a.info.o[0].u;if(a.A){var c=a.A.Je;ax(c);var d=decodeURIComponent(c.get("mn")||"").split(",");b.ifi=""+ +("/videoplayback"===c.path&&1<d.length&&!!d[1])}410!=a.C&&500!=a.C&&503!=a.C||(b.fmt_unav="true");a.o&&a.o.Uj()&&(b.msg=a.o.Uj());a.ha&&(b.smb="1");a.w&&(a=a.w.o,a.length&&Bw(a[0],b));return b};
zD=function(a){xD(a);return Mw(a.Z,xD(a))};
yia=function(a,b){if(400<=b.status)return a.B="net.badstatus",7;if(!b.eo())return a.B=204==b.status?"net.nocontent":"net.connect",7;var c="";if(AD(a)){var d=b.Qs();2048>=d.getLength()&&(c=vw(d),c=Ev(c),c=Uw(c)?c:"")}if(c){d=zD(a);(0,g.N)();d.started=0;d.u=0;d.o=0;d=a.info;var e=a.A;g.nx(d.u,e,c);d.requestId=e.get("req_id");return 5}c=b.No();if((d=!!a.L&&a.L.length)&&d!=c||b.lu())return a.B="net.closed",7;BD(a,!0);if(a.u.Cv&&!d&&a.w&&(d=a.w.o,d.length&&!Bw(d[0])))return a.B="net.closed",7;var f=CD(a)?
b.fd("X-Bandwidth-Est"):0;if(d=CD(a)?b.fd("X-Bandwidth-Est3"):0)a.da=!0,a.u.iC&&(f=d);d=a.timing;e=(0,g.G)();f=f?parseInt(f,10):0;if(!d.Z){d.Z=!0;if(!d.Bf){e=e>d.o&&4E12>e?e:(0,g.G)();mD(d,e,c);kD(d,e,c);var k=gD(d);if(2===k&&f)jD(d,d.u/f,d.u);else if(2===k||1===k)f=(e-d.o)/1E3,(f<=d.schedule.P.o||!d.schedule.P.o)&&!d.ha&&nD(d)&&jD(d,f,c),nD(d)&&(f=d.schedule,c=Math.max(c,2048),f.o.w(1,d.w/c),Cy(f));vy(d.schedule,(e-d.o)/1E3,d.u,d.R,d.ee,d.wi)}d.isActive&&(d.isActive=!1)}c=zD(a);(0,g.N)();c.started=
0;c.u=0;c.o=0;a.info.u.u=0;(0,g.N)()<DD+3E5||!a.A||cx(a.A.Je)||!(c=xD(a))||0>c.indexOf("googlevideo.com")||(g.Ks("yt-player-bandaid-host",{TN:c},432E3),DD=(0,g.N)());return 6};
FD=function(a){if("net.timeout"==a.B){var b=a.timing,c=(0,g.G)();if(!b.Bf){c=c>b.o&&4E12>c?c:(0,g.G)();mD(b,c,1024*b.L);var d=(c-b.o)/1E3;if(2!==gD(b))if(nD(b)){b.w+=(c-b.A)/1E3;var e=b.schedule,f=b.u;f=Math.max(f,2048);e.o.w(1,b.w/f);Cy(e)}else iD(b)||b.Bf||(e=b.schedule,e.B.w(1,d),Cy(e)),b.U=c;vy(b.schedule,d,b.u,b.R,b.ee,b.wi);yy(b.schedule,(c-b.A)/1E3,0)}}else(0,g.G)();"net.nocontent"!=a.B&&("net.timeout"==a.B||"net.connect"==a.B?(b=zD(a),b.u+=1):(b=zD(a),b.o+=1),a.info.u.u++);ED(a,7)};
GD=function(a){a.ea();if(1==a.state)return!0;a=zD(a);return 100>a.u&&6>a.o};
ED=function(a,b){a.state=b;if(5<=a.state)if(a.u.qc)HD(a);else{var c=a.timing;c.isActive&&(c.isActive=!1)}a.G&&a.G(a)};
ID=function(a,b){if(b){var c=zD(a);c.w+=1}HD(a);a.B="net.timeout";FD(a)};
CD=function(a){return(0,g.yi)(a.info.o,function(b){return 3==b.type})};
HD=function(a){if(a.o){var b=a.o;a.o=null;b.abort()}a=a.timing;a.isActive&&(a.isActive=!1)};
AD=function(a){var b=a.o.fd("content-type"),c=a.o.ol();return(!JD(a)||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)};
zia=function(a,b){var c=(0,g.x)(a.QH,a),d=(0,g.x)(a.HN,a),e=(0,g.x)(a.RH,a),f=(0,g.x)(a.GN,a);return cx(a.A.Je)?new eD(a.A,d,e,c):KD(a)?new rD(b,d,e,c,f,a.u.A):new vD(b,d,e,c,f)};
KD=function(a){return a.u.ba?a.u.fv&&!isNaN(a.info.yd)&&a.info.yd>a.u.Dn?!1:vx():!1};
JD=function(a){return a.o?a.o.Rp():!1};
LD=function(a){return 2>a.state||!a.w?!1:a.w.o.length||a.u.ga&&a.o&&a.o.Se()?!0:!1};
Aia=function(a){MD(a);return a.w.o};
MD=function(a){a.u.ga&&a.o&&a.o.Se()&&BD(a,!1)};
BD=function(a,b){if(b||JD(a)&&!AD(a)){if(!a.w){if(JD(a))a.info.range&&(c=a.info.range.length);else var c=a.o.No();a.w=new pia(a.info.o,c)}for(;a.o.Se();)a:{c=a.w;var d=a.o.Oo(),e=b&&!a.o.Se();c.A&&(pw(c.A,d),d=c.A,c.A=null);for(var f=0,k=0,l=g.q(c.w),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.Na<=c.u)f+=m.Na;else{d.getLength();if(ew(m)&&!e&&c.u+d.getLength()-k<f+m.Na){c.A=d.split(k).dj;break a}var n=c.u-f;var p=c,t=m;if(1==t.type){p.C=!0;var u=!1}else 3==t.type||4==t.type?(t=p.C&&!p.F,
p.F=!0,u=t):u=!1;p=c;var z=m,B=n;t=k;var D=d;n=u||m.o.Jy()&&!n;var E=!!e;u=D.getLength()-t;z.range&&(u=Math.min(z.Na-B,u));E=z.range?z.w+B+u==z.range.length:E;z=new dw(z.type,z.o,z.range,"reslice_"+z.F,z.u,z.startTime,z.duration,z.w+B,u,E&&z.C,E);B=u;t=D.split(t).dj.split(B).ho;p.o.push(new zw(z,t,n));p=u;c.u+=p;k+=p;f+=m.Na;if(k==d.getLength())break}d.getLength()}}};
Bia=function(a){if(!a.u.A.nd||!isNaN(a.info.yd)&&0<a.info.yd)return!1;if(!a.o||!a.o.Dj())return!0;if(!wx(a.o))return!1;if(isNaN(a.info.yd)){var b=a.o.fd("x-head-seqnum");if(b&&parseInt(b,10)>a.info.o[0].u)return!1}return!0};
ND=function(a,b,c){this.initData=a;this.contentType=(void 0===b?"":b)||null;this.isPrefetch=void 0===c?!1:c;this.o=this.cryptoPeriodIndex=NaN;this.u=[];this.Bc=!1};
OD=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 pg(b.subarray(c+f,c+f+l)),n=new yo;for(f=m;qg(f)&&4!=f.u;)switch(f.w){case 2:var p=tg(f),t=p;Rg(n,2).push(t);break;case 4:p=tg(f);Tg(n,4,p);break;case 7:p=og(f.o);Tg(n,7,p);break;case 9:p=og(f.o);Tg(n,9,p);break;case 10:p=og(f.o);Tg(n,
10,p);break;case 11:p=ng(f.o);Tg(n,11,p);break;case 12:p=og(f.o);Tg(n,12,p);break;case 13:t=p=tg(f);Rg(n,13).push(t);break;case 14:p=new zo;t=f;var u=p,z=oea,B=t.o.w,D=og(t.o),E=t.o.o+D;t.o.w=E;z(u,t);t.o.o=E;t.o.w=B;t=n;u=p;z=zo;Xg(t,z,14);var F=t.o[14];F||(F=t.o[14]=[]);var I=u?u:new z,ia=Rg(t,14);F.push(I);ia.push(Zg(I));break;case 15:p=sg(f);Tg(n,15,p);break;case 1:p=ng(f.o);Tg(n,1,p);break;case 3:p=sg(f);Tg(n,3,p);break;case 5:p=sg(f);Tg(n,5,p);break;case 6:p=sg(f);Tg(n,6,p);break;case 8:p=tg(f);
Tg(n,8,p);break;default:rg(f)}f=n;if(null!=f){var pa=f;break a}}catch(tc){}}c+=e}pa=null}catch(tc){pa=null}}if(null!=pa)for(b=Rg(pa,7),a.cryptoPeriodIndex||null==b||(a.cryptoPeriodIndex=b),b=Rg(pa,10),null!=b&&0<b&&!a.Bc&&a.o!=b&&(a.o=b),pa=Rg(pa,2),pa=!pa.length||pa[0]instanceof Uint8Array?pa:(0,g.Fc)(pa,sba),pa=g.q(pa),b=pa.next();!b.done;b=pa.next())a.u.push(g.eg(b.value,4))};
PD=function(a){this.o=a;this.offset=0};
QD=function(a){if(a.offset>=a.o.getLength())throw Error();return xw(a.o,a.offset++)};
RD=function(a,b){var c=QD(a);if(1===c){c=-1;for(var d=0;7>d;d++){var e=QD(a);-1===c&&255!==e&&(c=0);-1<c&&(c=256*c+e)}return c}d=128;for(e=0;6>e&&d>c;e++)c=256*c+QD(a),d*=128;return b?c:c-d};
SD=function(a,b,c){g.O.call(this);var d=this;this.A=a;this.u=[];this.o=null;this.L=-1;this.G=0;this.U=NaN;this.I=0;this.w=b;this.ga=c;this.B=NaN;this.aa=0;this.ba=-1;this.F=this.P=this.ha=this.Z=this.C=this.R=null;this.A.w&&(this.F=new jia(this.A,this.w),this.F.I.o.then(function(e){1==e&&d.S("localmediacomplete",e)}));
this.da=!1;this.V=0};
TD=function(a){return a.u.length?a.u[0]:null};
UD=function(a){return a.u.length?a.u[a.u.length-1]:null};
aE=function(a,b,c){a.Z&&!hw(a.Z,c.info)&&(a.B=NaN,a.aa=0,a.ba=-1);a.Z=c.info;a.w=c.info.o;0==c.info.w?VD(a):!a.w.ce()&&a.C&&lw(c.info,a.C);a.o?(c=Cw(a.o,c),a.o=c):a.o=c;a:{c=g.nt(a.o.info.o.info);if(3!=a.o.info.type){if(!a.o.info.A)break a;6==a.o.info.type?WD(a,b,a.o):XD(a,a.o);a.o=null}for(;a.o;){var d=a.o.o.getLength();if(0>=a.L&&0==a.G){var e=a.o.o,f=-1,k=-1;if(c){for(var l=0;l+8<e.getLength();){var m=yw(e,l),n=yw(e,l+4);l+=m||1;if(1836019558===n)f=l;else if(1835295092===n){k=l;break}}0>k&&(f=
-1)}else{e=new PD(e);for(m=l=!1;;){n=e.offset;var p=e;try{var t=RD(p,!0),u=RD(p,!1);var z=t;var B=u}catch(E){B=z=-1}p=z;var D=B;if(0>p)break;if(408125543!==p)if(524531317===p)l=!0,0<=D&&(k=e.offset+D,m=!0);else{if(l&&(160===p||163===p)&&(0>f&&(f=n),m))break;163===p&&(f=Math.max(0,f),k=e.offset+D);if(160===p){0>f&&(k=f=e.offset+D);break}e.skip(D)}}0>f&&(k=-1)}if(0>f)break;a.L=f;a.G=k-f}if(a.L>d)break;a.L?(d=YD(a,a.L),d.w&&!a.w.ce()&&ZD(a,d),WD(a,b,d),$D(a,d),a.L=0):a.G&&(d=YD(a,0>a.G?Infinity:a.G),
a.G-=d.o.getLength(),$D(a,d))}}a.o&&a.o.info.A&&($D(a,a.o),a.o=null)};
XD=function(a,b){!a.w.ce()&&0==b.info.w&&(g.nt(b.info.o.info)||b.info.o.info.Bc())&&Iw(b);if(1==b.info.type)try{ZD(a,b),bE(a,b)}catch(d){g.M(d);var c=jw(b.info);c.hms="1";a.S("error",c||{})}b.info.o.bo(b);a.F&&dD(a.F,b)};
Cia=function(a){var b=a.u.reduce(function(c,d){return c+d.o.getLength()},0);
a.o&&(b+=a.o.o.getLength());return b};
cE=function(a){return(0,g.Fc)(a.u,function(b){return b.info})};
dE=function(a){a.P&&!a.A.Uc&&a.S("placeholderrollback",a.P);a.P=null;a.C=null;a.Z=a.ha;a.B-=a.I;VD(a)};
YD=function(a,b){var c=a.o,d=Math.min(b,c.o.getLength());if(d==c.o.getLength())return a.o=null,c;c.o.getLength();d=Math.min(d,c.info.Na);var e=c.o.split(d),f=e.ho;e=e.dj;var k=new dw(c.info.type,c.info.o,c.info.range,c.info.F,c.info.u,c.info.startTime,c.info.duration,c.info.w,d,!1,!1);f=new zw(k,f,c.w);c=new dw(c.info.type,c.info.o,c.info.range,c.info.F,c.info.u,c.info.startTime,c.info.duration,c.info.w+d,c.info.Na-d,c.info.C,c.info.A);c=new zw(c,e,!1);c=[f,c];a.o=c[1];return c[0]};
ZD=function(a,b){b.o.getLength();var c=Aw(b);if(!a.A.JC&&mt(b.info.o.info)&&"bt2020"==b.info.o.info.va().primaries){var d=new Fv(c);Hv(d,[408125543,374648427,174,224,21936,21937])&&(d=d.w+d.o,129==c.getUint8(d)&&1==c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.o.info;lt(d)&&!mt(d)&&(d=Aw(b),Nv(new Fv(d)),Mv([408125543,374648427,174,224],21936,d));b.info.o.info.isVideo()&&(d=b.info.o,d.info&&d.info.video&&4==d.info.video.projectionType&&!d.A&&(g.nt(d.info)?d.A=Ofa(c):d.info.Bc()&&(d.A=Qfa(c))));b.info.o.info.Bc()&&
b.info.isVideo()&&(c=Aw(b),Nv(new Fv(c)),Mv([408125543,374648427,174,224],30320,c)&&Mv([408125543,374648427,174,224],21432,c));if(a.w.info.audio&&g.nt(b.info.o.info)){d=Aw(b);c=g.pv(d,0,1701606260);var e=g.pv(d,0,1836476516);if(c&&e){c.skip(2);var f=dv(c),k=fv(c);d=[];var l=[],m=[],n=[];if(f)for(f=0;f<k;++f)d.push(gv(c)),l.push(gv(c)),m.push(dv(c)),n.push(dv(c));else for(f=0;f<k;++f)d.push(ev(c)),l.push(ev(c)),m.push(dv(c)),n.push(dv(c));c=rv(e);c=new Nfa(l[0]/c,d[0]/c)}else c=null;if(c){if(g.nt(b.info.o.info))for(d=
Aw(b),l=g.pv(d,0,1701082227);l;)l.markAsSkip(),l=g.pv(d,l.offset+l.size,1701082227);a.da=!0;a.A.Wm&&a.S("gaplessinfo",c)}}a.w.ce()||b.info.o.o||b.info.o.indexRange||(g.nt(b.info.o.info)?(c=Aw(b),(d=uv(c,0,1836019574))?(d=d.offset+d.size,l=new Uint8Array(d),l.set(new Uint8Array(c.buffer,c.byteOffset,d)),c=l):c=null):c=Rfa(new Fv(Aw(b))),c&&(b.info.o.o=c))};
WD=function(a,b,c){if(a.w.ce()){if(a.da&&a.w.ce()&&c.info.u==c.info.o.index.gb()&&(b=Aw(c),b=g.pv(b,0,1953658222))){b.skip(1);var d=cv(b)<<16|dv(b),e=d&1,f=d&4;if(d&256){var k=d&512,l=d&1024;d&=2048;var m=fv(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=fv(b),b.skip((m-1)*(4+(k?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.o,e))}}if(b=a.R&&!!a.R.w.w)if(b=c.info.isVideo())b=Hw(c),k=a.R,eE?(l=1/b,b=fE(a,b)>=fE(k)+l):b=a.getDuration()>=k.getDuration(),b=!b;b&&a.w.ce()&&c.info.u==c.info.o.index.gb()&&(b=
a.R,eE?(l=Hw(c),k=1/l,l=fE(a,l),b=fE(b)+k-l):b=b.getDuration()-a.getDuration(),b=1+b/c.info.duration,qv(Aw(c),b))}else{k=!1;a.C||(Iw(c),c.u&&(a.C=c.u,k=!0,lw(c.info,c.u),e=c.info.o.info,d=Aw(c),g.nt(e)?Bv(d,1701671783):e.Bc()&&Mv([408125543],307544935,d)));if(d=e=Gw(c))d=c.info.o.info.Bc()&&160==xw(c.o,0);if(d)a.I+=e,a.B=l+e;else{if(a.A.qv){if(l=f=a.ga(Dw(c),1),0<=a.B&&6!=c.info.type){f-=a.B;m=f-a.aa;d=c.info.u;1E-4<Math.abs(m)&&(a.A.dn&&a.S("avsyncissue",{audio:""+ +!!a.w.info.audio,sq:d.toFixed(),
totalDrift:(1E3*f).toFixed(),segDrift:(1E3*m).toFixed()}),a.ba=d);m=0;if(a.A.hv&&(a.A.Hc&&f>a.A.Hc||(l=a.B),a.A.lv&&a.R&&!a.w.info.audio&&g.nt(c.info.o.info))){var n=a.R;var p=n.ba;n=n.aa;var t=.02<Math.abs(n-f);(d==p||d>p&&d>a.ba)&&t&&(d=Math.max(.95,Math.min(1.05,(e-(n-f))/e)),qv(Aw(c),d),d=Gw(c),m=e-d,e=d)}a.aa=f+m}}else isNaN(a.B)?f=c.info.startTime:f=a.B,l=f;Ew(c,l)?(isNaN(a.U)&&(a.U=l),a.I+=e,a.B=l+e):(l=jw(c.info),l.smst="1",a.S("error",l||{}))}if(k&&a.C){k=gE(a,!0);mw(c.info,k);a.o&&mw(a.o.info,
k);b=g.q(b.info.o);for(l=b.next();!l.done;l=b.next())mw(l.value,k);(c.info.A||a.o&&a.o.info.A)&&6!=c.info.type||(a.P=k,a.S("placeholderinfo",k),hE(a))}}bE(a,c);a.V&&Fw(c,a.V)};
$D=function(a,b){if(b.info.A){a.ha=b.info;if(a.C){var c=gE(a,!1);a.S("segmentinfo",c);a.P||hE(a);a.P=null}VD(a)}a.F&&dD(a.F,b);if(c=UD(a))if(c=Cw(c,b,a.A.Kk)){a.u.pop();a.u.push(c);return}a.u.push(b)};
VD=function(a){a.o=null;a.L=-1;a.G=0;a.C=null;a.U=NaN;a.I=0;a.P=null};
bE=function(a,b){if(a.w.info.zc){if(b.info.o.info.Bc()){var c=new Fv(Aw(b));if(Hv(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=Kv(c,!0);c=16!=d?null:Rv(c,d)}else c=null;d="webm"}else b.info.P=nia(Aw(b)),c=oia(b.info.P),d="cenc";c&&c.length&&(c=new ND(c,d),c.Bc=b.info.o.info.Bc(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),a.A.Mk&&b.u&&b.u.B&&(c.o=b.u.B),a.S("needkeyinfo",c))}};
hE=function(a){var b=a.C,c;b.o["Cuepoint-Type"]?c=new jv(iE?parseFloat(b.o["Cuepoint-Playhead-Time-Sec"])||0:-(parseFloat(b.o["Cuepoint-Playhead-Time-Sec"])||0),parseFloat(b.o["Cuepoint-Total-Duration-Sec"])||0,b.o["Cuepoint-Context"],b.o["Cuepoint-Identifier"]||"",Dia[b.o["Cuepoint-Event"]||""]||"unknown",1E3*(parseFloat(b.o["Cuepoint-Playhead-Time-Sec"])||0)):c=null;c&&(c.startSecs+=a.U,a.S("cuepoint",c,b.u))};
gE=function(a,b){var c=a.C;if(c.o["Stitched-Video-Id"]||c.o["Stitched-Video-Duration-Us"]||c.o["Stitched-Video-Start-Frame-Index"]){c.o["Stitched-Video-Id"]&&c.o["Stitched-Video-Id"].split(",");var d=[];if(c.o["Stitched-Video-Duration-Us"])for(var e=g.q(c.o["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),f=e.next();!f.done;f=e.next())d.push((parseInt(f.value,10)||0)/1E6);d=[];if(c.o["Stitched-Video-Start-Frame-Index"])for(e=g.q(c.o["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1)),
f=e.next();!f.done;f=e.next())d.push(parseInt(f.value,10)||0)}return new Zu(c.u,a.U,b?c.Fe:a.I,c.ingestionTime,"sq/"+c.u,void 0,void 0,b)};
fE=function(a,b){b=void 0===b?0:b;var c=b?Math.round(a.V*b)/b:a.V;a.w.w&&c&&(c+=a.w.w.o);return c+a.getDuration()};
jE=function(a,b){0>b||(a.u.forEach(function(c){return Fw(c,b)}),a.V=b)};
kE=function(a,b,c){this.U=a;this.o=b;this.A=[];this.w=new SD(a,b,c);this.u=this.F=null;this.R=0;this.P=b.info.o;this.L=0;this.G=b.Gl();this.C=-1;this.B=this.G;this.I=!1};
lE=function(a,b){b&&eE&&jE(a.w,b.Qr());a.F=b};
mE=function(a){return a.F&&a.F.Mr()};
oE=function(a){for(;a.A.length&&6==a.A[0].state;){var b=a.A.shift();nE(a,b);b=b.timing;a.R=(b.A-b.o)/1E3}a.A.length&&LD(a.A[0])&&!a.A[0].info.ee()&&nE(a,a.A[0])};
nE=function(a,b){if(LD(b)){b.P=!0;MD(b);var c=b.w,d=c.o;c.o=[];c.B=g.Ya(d).info;c=g.q(d);for(d=c.next();!d.done;d=c.next())pE(a,b,d.value)}};
pE=function(a,b,c){switch(c.info.type){case 1:case 2:XD(a.w,c);break;case 4:var d=c.info.o.Ky(c);c=c.info;var e=a.u;e&&e.o==c.o&&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.u==c.u&&e.w==c.w&&e.Na==c.Na&&(a.u=g.Ya(d).info);d=g.q(d);for(c=d.next();!c.done;c=d.next())pE(a,b,c.value);break;case 3:aE(a.w,b,c);break;case 6:aE(a.w,b,c),a.u=c.info}};
qE=function(a){return TD(a.w)};
rE=function(a,b){var c=b.info;c.o.info.o>=a.P&&(a.P=c.o.info.o)};
vE=function(a,b,c){c=void 0===c?!1:c;if(a.F){var d=a.F.wd(),e=Tt(d,b),f=NaN,k=mE(a);k&&(f=Tt(d,k.o.index.gd(k.u)));if(e==f&&a.u&&a.u.Na&&sE(tE(a),0))return b}a=uE(a,b,c);return 0<=a?a:NaN};
xE=function(a,b){a.o.dd();var c=uE(a,b);if(0<=c)return c;c=a.w;c.F?(c=c.F,c=c.o&&3==c.o.type?c.o.startTime:0):c=Infinity;b=Math.min(b,c);a.u=a.o.og(b).o[0];wE(a)&&a.F&&a.F.abort();a.L=0;return a.u.startTime};
yE=function(a){a.G=!0;a.B=!0;a.C=-1;xE(a,Infinity)};
zE=function(a){var b=0;(0,g.y)(a.A,function(c){var d=b;c=c.w&&c.w.length?qia(c.w):sx(c.info);b=d+c},a);
return b+=Cia(a.w)};
AE=function(a,b){if(!a.F)return 0;var c=mE(a);if(c&&c.C)return c.B;c=a.F.wd(!0);return Vt(c,b)};
CE=function(a){BE(a);a=a.w;a.u=[];VD(a)};
DE=function(a,b){var c;for(c=0;c<a.A.length&&b!==a.A[c];c++);if(c==a.A.length)b.P&&dE(a.w),b.dispose();else{for(;c<a.A.length;){var d=a.A.pop();d.P&&dE(a.w);d.dispose()}fw(b.info.o[0])?(b.w&&b.w.B?(c=b.w.B,c=new dw(c.type,c.o,c.range,"getEmptyStubAfter_"+c.F,c.u,c.startTime+c.duration,0,c.w+c.Na,0,!1)):(c=b.info.o[0],c=new dw(c.type,c.o,c.range,"getEmptyStubBefore_"+c.F,c.u,c.startTime,0,c.w,0,!1)),a.u=c):a.u=null}};
wE=function(a){var b;!(b=!a.U.Sg&&"f"==a.o.info.u)&&(b=a.U.R)&&(b=a.w,b=!!b.F&&bD(b.F));return b?!0:(a=mE(a))?a.C&&a.A:!1};
tE=function(a){var b=[],c=mE(a);c&&b.push(c);b=g.jb(b,cE(a.w));(0,g.y)(a.A,function(d){(0,g.y)(d.info.o,function(e){d.P&&(b=(0,g.xe)(b,function(f){return!(f.o!=e.o?0:f.range&&e.range?f.range.start+f.w>=e.range.start+e.w&&f.range.start+f.w+f.Na<=e.range.start+e.w+e.Na:f.u==e.u&&f.w>=e.w&&(f.w+f.Na<=e.w+e.Na||e.A))}));
(fw(e)||4==e.type)&&b.push(e)})});
a.u&&!Tfa(a.u,g.Ya(b),a.u.o.ce())&&b.push(a.u);return b};
sE=function(a,b){if(!a.length)return!1;for(var c=b+1;c<a.length;c++)if(!hw(a[c-1],a[c]))return!1;return!0};
uE=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.Na)return NaN;a=tE(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.G<=b)if(d)e=f;else if(k.startTime+k.duration>=b){b=f;break a}}b=e}return 0>b?NaN:sE(a,c?b:0)?a[b].startTime:NaN};
EE=function(a){return pj(a.A,function(b){return 4<=b.state})};
FE=function(a){return!(!a.u||a.u.o==a.o)};
GE=function(a){return FE(a)&&a.o.dd()&&a.u.o.info.o<a.o.info.o};
HE=function(a,b,c){var d=UD(a.w);return(a=d?d.info:mE(a))&&!a.C?a.B>b&&a.B<b+c:!1};
BE=function(a){(0,g.y)(a.A,function(b){b.P&&dE(this.w);b.dispose()},a);
a.A=[];a.u=null};
IE=function(a){return!!a.u&&-1!=a.u.u&&a.u.u<a.o.index.Pe()};
JE=function(a){var b=a.u;b&&-1==b.u&&(a=UD(a.w))&&fw(a.info)&&(a=a.info.u,b.F="updateLastSliceRequested",b.u=a)};
KE=function(a){return pj(a.A,function(b){return b.I})};
LE=function(a,b){this.u=a;this.o=b;this.w=1};
NE=function(a,b,c,d,e){e=void 0===e?!1:e;a.o.Qb&&(d=Math.abs(d));d/=a.w;var f=1/Ay(a.u);var k=.9*(d-a.o.Md);k=Math.max(k,wy(a.u)+2048*f);c=k/f*a.o.XC/(b+c);c=Math.min(c,d);a.o.sc&&e&&(c=Math.max(c,a.o.sc));return ME(a,c,b)};
ME=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.o.PC*c),Math.min(Math.min(a.o.aa,31*c),Math.ceil(b*c))))};
Eia=function(a,b){var c=ME(a,b.video?a.o.Dv:a.o.Uh,b.o);return a.o.Xf&&b.video?Math.max(c,a.o.Xf):c};
OE=function(a){var b=Ay(a.u);if(a.o.Zm)return b;var c=a.o.NC,d=1E-9+wy(a.u);b*=Math.min(1,c/(b*d));a.o.Wf&&(c=((ty(a.u.w,.98)||0)-1)/2,c=Math.max(0,Math.min(1,c)),b*=1-a.o.Wf*c);return b};
PE=function(a){return OE(a)/a.w};
QE=function(a,b,c,d){g.O.call(this);this.A=0;this.u=b;this.o=c;this.B=a;this.I=d;this.C=0;this.F=this.B.u&&!this.B.ze;this.w=!1;this.G=null};
RE=function(a,b){var c=a.o.index,d=a.u.u;Ax(c,d)||b&&b.u==d?(a.B=!Ax(c,d),a.I=!Ax(c,d)):(a.B=!0,a.I=!0)};
SE=function(a,b,c){if(!a.o.dd())return 0!=b&&BE(a),b;var d=vE(a,b);if(!isNaN(d))return d;CE(a);return c&&(c=Tt(c.wd(),b),!isNaN(c))?(xE(a,c+Fia),b):xE(a,b)};
Hia=function(a,b,c,d){if(a.w&&a.A){var e=Gia(a,b,c);if(-1!=e){a.u.B=!1;a.o.B=!1;a.F=!0;g.xf(function(){TE(a,"seekreason","behindMinSq");UE(a,e)});
return}}c?a.u.I=!1:a.o.I=!1;0<=vE(a.u,a.A)&&0<=vE(a.o,a.A)?((a.u.B||a.o.B)&&TE(a,"iterativeSeeking","done;count."+a.C,!1),a.u.B=!1,a.o.B=!1):d&&g.xf(function(){if(a.F||!a.I.L)a.I.Vf?VE(a):c&&UE(a,b.startTime);else{var f=b.startTime,k=b.duration,l=c?a.u.B:a.o.B;l=!a.ea()&&l;var m=-1!=a.u.C&&-1!=a.o.C,n=!a.u.I&&!a.o.I;l&&m&&n&&(a.A>=f&&a.A<f+k+.1?((c?a.u:a.o).B=!1,a.u.B||a.o.B||(TE(a,"iterativeSeeking","done;count."+a.C,!1),a.C=0)):8>a.C?(a.C++,TE(a,"iterativeSeeking","inprogress;count."+a.C+";target."+
a.A+";actual."+f+";duration."+k+";isVideo."+c,!1),a.seek(a.A)):(TE(a,"iterativeSeeking","incomplete;count."+a.C+";target."+a.A+";actual."+f,!1),a.C=0,a.u.B=!1,a.o.B=!1,a.S("seekplayerrequired",f+.1,!0)))}})};
Gia=function(a,b,c){if(!a.w)return-1;c=(c?a.u:a.o).o.index;var d=c.Qe(a.A);return(Ax(c,a.B.Id)||b.Ka==a.B.Id)&&d<a.B.Id?a.B.Ab():-1};
UE=function(a,b){!a.ea()&&a.F&&-1!=a.u.C&&-1!=a.o.C&&(a.F=!1,a.S("seekplayerrequired",b+.1,a.I.Vf))};
VE=function(a){var b=-1!=a.u.C,c=-1!=a.o.C;if(!b||!c)if(b=!b&&qE(a.u),c=!c&&qE(a.o),b||c)if(c=b?a.u:a.o,b=b?a.o:a.u,c.C=qE(c).info.u,-1!=b.C){var d=Math.max(b.o.index.gd(b.C),c.o.index.gd(c.C));TE(a,"seekreason","initManifestlessSync");g.xf(function(){return UE(a,d)});
a.G&&(a.G.resolve(d+.1),a.G=null)}};
TE=function(a,b,c,d){a.S("ctmp",b,c,void 0===d?!1:d)};
WE=function(){this.u=this.w=0;this.B={}};
XE=function(a,b,c){g.O.call(this);this.u=this.o=null;this.A=!1;this.w=0;this.B=b;this.F=a;this.C=c;this.C.w.subscribe("cuepoint",this.G,this)};
YE=function(a,b){if(a.o){a.u=null;a.A=!1;var c=b.startTime+a.w-a.o.ud.startSecs;0>=c||(c=new jv(a.o.ud.startSecs-(a.B.yb&&!isNaN(a.w)?a.w:0),c,a.o.ud.context,a.o.ud.identifier,"stop",a.o.ud.o+1E3*b.duration),a.S("ctmp","cuepointdiscontinuity","segNum."+b.Ka,!1),a.G(c,b.Ka))}};
Iia=function(a,b,c,d){this.V=a;this.F=b;this.C=c;this.G=d;this.A=Gu;this.B=this.P=null;this.R=-1;this.u=this.w=null;this.o=[];this.U={};this.I=0;this.L=this.Z=!1;this.aa=0};
Lia=function(a,b,c){ZE(a,b);Jia(a,c);a.P=a.w;Kia(a);a.B=a.u;return $E(a)};
Mia=function(a,b){if(Du(a.A,b))return null;if("m"==b.reason&&b.isLocked())return ZE(a,b),a.I=a.o.length-1,aF(a),bF(a),a.L=a.L||a.B!=a.u,a.B=a.u,new ZC(a.w,a.B,b.reason);"r"==b.reason&&(a.R=-1);ZE(a,b);bF(a);if("r"==b.reason&&a.u==a.B)return new ZC(a.w,a.u,b.reason);if(a.B&&a.u&&cF(a,a.B.info)<cF(a,a.u.info)){var c=a.A.reason;a.Z=a.Z||"r"==c||"u"==c||"v"==c}return null};
Nia=function(a,b){if(b.info.video){if(a.B!=b)return a.B=b,$E(a)}else a.P=b;return null};
dF=function(a,b){b.P=(0,g.N)();a.R=-1;ZE(a,a.A)};
eF=function(a){for(var b=(0,g.N)()-6E4,c=g.q(a.G.videoInfos),d=c.next();!d.done;d=c.next())if(a.C.o[d.value.id].P>b)return!0;return!1};
Oia=function(a){return new ZC(a.P,a.B,a.A.reason)};
fF=function(a){return a.A.isLocked()};
Pia=function(a){return 0<a.o.length&&0==a.I};
$E=function(a){a.R=(0,g.N)();a.Z=!1;return new ZC(a.P,a.B,a.A.reason)};
ZE=function(a,b){a.A=b;var c=a.G.videoInfos;if(!fF(a)){var d=(0,g.N)()-6E4;c=(0,g.xe)(c,function(l){if(l.o>this.F.G)return!1;l=this.C.o[l.id];return l.P>d?!1:4<l.u.u||4<l.I||l.C?!1:!0},a);
if(eF(a)){var e=(0,g.xe)(c,function(l){l=jt(l);return"140"==l||"134"==l||"243"==l});
e.length&&(c=e)}}c.length||(c=a.G.videoInfos);e=(0,g.xe)(c,b.A,b);e.length||(e=[c[0]]);e.sort((0,g.x)(function(l,m){return cF(this,l)-cF(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.fb(e,c),c--):cF(a,f)*a.F.o>cF(a,k)&&(g.fb(e,c-1),c--)}c=e[e.length-1];a.o=e;Vfa(a.F,c)};
Jia=function(a,b){if(b)a.w=a.C.o[b];else{var c=g.$a(a.G.o,function(d){return!!d.sb&&d.sb.isDefault});
c=c||a.G.o[0];a.w=a.C.o[c.id]}aF(a)};
gF=function(a,b){for(var c=0;c+1<a.o.length&&"tiny"==a.o[c].va().quality;)c++;var d=PE(a.V)/a.F.o;return cF(a,b.info)+cF(a,a.o[c])>d};
aF=function(a){if(!a.w||!a.F.w)if(!a.w||!a.w.info.sb)if(a.w=a.C.o[a.G.o[0].id],1<a.G.o.length){var b=!1;if(a.F.Ih){if(b=!0,a.F.RB){var c=g.Za(a.G.o,function(d){return"250"===jt(d)});
0<=c&&(a.w=a.C.o[a.G.o[c].id],b=gF(a,a.w))}}else b=a.A.isLocked()?240>a.A.o:gF(a,a.w);b&&(a.w=a.C.o[g.Ya(a.G.o).id])}};
bF=function(a){if(!a.u||!a.F.w)if(fF(a))a.u=360>=a.A.o?a.C.o[a.o[0].id]:a.C.o[g.Ya(a.o).id];else{for(var b=Math.min(a.I,a.o.length-1),c=PE(a.V),d=cF(a,a.w.info),e=c/a.F.u-d;0<b&&!(cF(a,a.o[b])<=e);b--);for(c=c/a.F.o-d;b<a.o.length-1&&!(cF(a,a.o[b+1])>=c);b++);a.u=a.C.o[a.o[b].id];a.I=b}};
Kia=function(a){var b=a.F.u,c=PE(a.V)/b-cF(a,a.w.info);b=g.ab(a.o,function(d){return cF(this,d)<c},a);
0>b&&(b=0);a.I=b;a.u=a.C.o[a.o[b].id]};
cF=function(a,b){if(!a.U[b.id]){var c=a.C.o[b.id].index.ox(a.aa,15);c=b.w&&a.B&&a.B.index.Gb()?c||b.w:c||b.o;a.U[b.id]=c}c=a.U[b.id];a.F.pe&&b.video&&b.video.fc>a.F.pe&&(c*=1.5);return c};
Qia=function(a,b){var c=Ob(a.C.o,function(d){return jt(d.info)==b});
if(!c)throw Error("Itag "+b+" from server not known.");return c};
Ria=function(a){var b=[];if("m"==a.A.reason||"s"==a.A.reason)return b;var c=!1;if(sga(a.C)){for(var d=Math.max(0,a.I-2);d<a.I;d++){var e=jt(a.o[d]);ft(a.o[d].va())||(c=!0);b.push(e)}b.reverse();if(!c&&a.F.Sz)for(d=Math.max(0,a.I-3);0<=d&&!c;d--)ft(a.o[d].va())||(c=!0,b.push(jt(a.o[d])))}return b};
hF=function(a,b,c,d){this.o=a;this.C=b;this.B=d;this.A=c;this.w=0};
iF=function(a,b,c,d){g.O.call(this);this.o=a;this.V=b;this.U=c;this.L=d;this.R=NaN;this.w=this.I=this.B=null;this.u=this.F=this.G=this.C=NaN;this.A=!1;this.P=NaN};
Sia=function(a,b,c,d){return a.ma&&a.ha&&3==xx(a)?new iF(a,b,c,d):null};
jF=function(a,b){if(a.o.wv){var c=b.info.o;if(0>=c)a.P=NaN;else{var d=Ay(a.V),e=b.index.o;c=Math.max(1,d/c);a.P=Math.round(1E3*Math.max(((c-1)*e+a.o.P)/c,e-a.o.qb))}}};
Tia=function(a,b){var c=(0,g.G)()/1E3,d=c-a.C,e=c-a.G,f=e>=a.o.Uf,k=!1;if(f){var l=0;!isNaN(b)&&b>a.F&&(l=b-a.F,a.F=b);l/e<a.o.yv&&(k=!0);a.G=c}c=d>=a.o.qb&&!a.A;if(!f&&!c&&kF(a,b))return NaN;c&&(a.A=!0);a:{d=k;c=(0,g.G)()/1E3-(a.U.o()||0)-a.I.w-a.o.P;f=a.w.startTime;c=f+c;if(d){if(isNaN(b)){lF(a,NaN,"n",b);f=NaN;break a}d=b-a.o.jb;d<c&&(c=d)}else a.A&&(d=c+a.o.P-a.R+a.o.zv,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.o.jb))),c=d);f=c=Math.max(c,f)}a.u=f;if(isNaN(a.u))return mF(a),NaN;if(!k&&kF(a,b))return nF(a,
b),NaN;if(a.u<=a.w.startTime)return lF(a,NaN,"y",b),mF(a),NaN;if(!a.L(a.u,!1))return!nF(a,b)&&k&&(lF(a,NaN,"t",b),mF(a)),NaN;k=a.u;lF(a,k,"s",b);mF(a);return k};
nF=function(a,b){return a.L(a.u,!0)?!1:(lF(a,NaN,"ns",b),mF(a),!0)};
kF=function(a,b){return isNaN(b)?!0:isNaN(a.u)?!1:b<a.u+(a.A?a.o.jb:a.o.xv)};
mF=function(a){a.B=null;a.I=null;a.w=null;a.C=NaN;a.G=NaN;a.F=NaN;a.u=NaN;a.A=!1};
lF=function(a,b,c,d){var e=yD(a.B);e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.u).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.C).toFixed(0);e.ssr_n=(0,g.G)().toFixed(0);e.ssr_f=(1E3*a.I.w).toFixed(0);e.ssr_fa=a.A?"1":"0";e.ssr_o=(1E3*a.U.o()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.w.o.index;Ax(b,a.w.u,!0)&&(e.ssr_ist=(1E3*b.gd(a.w.u)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.w.u)).toFixed(0));e=Ws(e);a.S("ctmp","ssr",e,!1)};
Uia=function(){this.u=g.oC;this.o=[]};
Via=function(a,b,c){var d=[];for(b=oF(a,b);b<a.o.length;++b){var e=a.o[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
pF=function(a,b){for(var c=[],d=g.q(a.o),e=d.next();!e.done&&!(e=e.value,e.contains(b)&&c.push(e),e.start>b);e=d.next());return c};
Wia=function(a){return a.o.slice(oF(a,0x7ffffffffffff),a.o.length)};
oF=function(a,b){var c=tb(a.o,function(d){return b-d.start||1});
return 0>c?-(c+1):c};
qF=function(a,b){for(var c=NaN,d=g.q(a.o),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};
rF=function(a,b){if(1<b.length&&b.length>a.o.length)a.o=a.o.concat(b),a.o.sort(a.u);else for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,!a.o.length||0<a.u(d,a.o[a.o.length-1])?a.o.push(d):g.wb(a.o,d,a.u)};
sF=function(a,b,c,d){g.A.call(this);this.L=a;this.R=b;this.G=c;this.I=d;this.A=NaN;this.C=this.F=this.started=!1;this.w=[];this.P=new g.H(this.u,250,this);g.C(this,this.P);this.B=new g.H(this.u,0,this);g.C(this,this.B);this.o=new Uia};
tF=function(a,b){if(!a.ea()){for(var c=g.q(b),d=c.next();!d.done;d=c.next())if(d=d.value){var e=a.w.indexOf(d);0<=e&&a.w.splice(e,1);var f=a.o;e=f.o;d=g.sb(e,d,f.u);0<=d&&g.fb(e,d)}a.u()}};
uF=function(a){return a.ea()?[]:a.o.o};
vF=function(a,b){var c=uF(a).filter(function(d){return d.namespace===b});
tF(a,c);return c};
wF=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.w.indexOf(e)&&(a.w.push(e),c.push([1,e]))}return c};
xF=function(a,b){var c=[];if(!b.length)return c;b.sort(g.oC);for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,a.w.splice(a.w.indexOf(e),1),c.push([2,e]);return c};
Zia=function(a){if(a.started&&!a.ea()){a.B.stop();var b=a.G();g.V(b,32)&&a.P.start();for(var c=Xia(a),d=g.V(b,2),e=[],f=[],k=g.q(a.w),l=k.next();!l.done;l=k.next())l=l.value,l.active&&(d?0x8000000000000>l.end:!l.contains(c))&&f.push(l);e=e.concat(xF(a,f));k=f=null;d?(b=pF(a.o,0x7ffffffffffff),f=b.filter(function(m){return 0x8000000000000>m.end}),k=Wia(a.o)):b=a.A<=c&&TC(b)?Via(a.o,a.A,c):pF(a.o,c);
e=e.concat(wF(a,b));f&&(e=e.concat(xF(a,f)));k&&(e=e.concat(wF(a,k)));a.A=c;Yia(a,e)}};
Yia=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]?a.I(g.pC(e.namespace),e):a.I("crx_"+e.namespace,e)}};
Xia=function(a){return g.V(a.G(),2)?0x8000000000000:1E3*a.L()};
$ia=function(a){a=void 0===a?{}:a;var b=a.nd,c=a.Im,d=a.gb,e=a.vj;this.fg=a.fg;this.nd=b;this.Im=c;this.gb=d;this.vj=e};
yF=function(a,b){if(0>b)return!0;var c=a.gb();return b<c||b===c&&!a.fg||b===c&&(c=a.vj())&&b===c.Ka?!0:!1};
aja=function(a,b,c){if(!yF(a,b))return 0;if(!a.nd||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.gb();return b<c||b===c&&(a=a.vj())&&b===a.Ka&&!a.pending?2:1};
uia=function(a,b,c,d){if(yF(a,b))return d;b=0;a.nd&&(b=.2);return c+1E3*(a.Im+b)};
via=function(a,b,c,d,e){b=aja(a,b,e);if(2===b)return d;c=b?d:c+1E3*a.Im;a.nd&&(c+=1E3*a.Im);return c};
bja=function(){this.u=0;this.C=this.B=this.w=this.A=NaN;this.o="";this.bandwidthEstimate=NaN};
CF=function(a,b,c,d,e,f,k){g.O.call(this);var l=this;this.R=a;this.o=b;this.B=c;this.da=new WE;this.Sa=k||null;this.P=new LE(a,b);this.F=new Iia(this.P,b,this.B,d);a=Lia(this.F,e,f&&f.id);this.A=new kE(this.o,a.audio,(0,g.x)(this.Xv,this));this.u=new kE(this.o,a.video,(0,g.x)(this.Xv,this));zF(this,this.A);zF(this,this.u);this.u.w.R=this.A.w;this.w=null;this.ua={updateend:this.PH,error:this.cK};this.ba=new g.H(this.Gf,0,this);g.C(this,this.ba);this.Ca=new g.H(this.Gf,1E3,this);g.C(this,this.Ca);this.qb=
new g.H(this.Gf,void 0,this);g.C(this,this.qb);this.Ma=new g.H(this.Gf,1E4,this);g.C(this,this.Ma);this.L=this.C=NaN;this.Aa=0;this.ha=this.ya=this.aa=!1;this.ma="";this.oa=new qy(5);this.ga={};this.za=NaN;(this.G=Sia(this.o,this.R,this.oa,function(m,n){return AF(l,m,n)}))&&this.G.subscribe("ctmp",this.Dc,this);
this.I=new QE(this.B,this.u,this.A,this.o);g.C(this,this.I);this.V=new XE(this.B,this.o,this.u);g.C(this,this.V);this.V.subscribe("ctmp",this.Dc,this);cja(this,this.I);this.Ua=NaN;this.Ha=null;this.Z=NaN;this.yb=this.jb=!1;this.Pa=0;this.U=!1};
dja=function(a){var b=a.u.o.index;a.Ha=new $ia({fg:a.o.fg,nd:a.o.A.nd,Im:b.o,gb:function(){return b.gb()},
vj:function(){return b.vj()}})};
DF=function(a,b){b=b||a.u&&a.u.u&&a.u.u.startTime||a.C;var c=a.u;var d=a.F;var e=d.u&&d.u.index.Qe(b)||0;d.aa!=e&&(d.U={},d.aa=e,ZE(d,d.A));e=!fF(d)&&-1<d.R&&8E3>(0,g.N)()-d.R;var f=d.u&&3*cF(d,d.u.info)<PE(d.V);if(!e||f)aF(d),bF(d),d.L=d.L||d.u!=d.B;d.u&&!d.u.index.Gb()&&(d.aa=-1);d=d.u;c.o!=d&&(c.o=d);c=a.A;d=a.F.w;c.o!=d&&(c.o=d)};
EF=function(a,b){a.ya=b;a.U||(a.aa=!0)};
FF=function(a){a.w&&a.w.o&&a.w.u&&(Rr(a.w.o,a.ua,a),Rr(a.w.u,a.ua,a));lE(a.A,null);lE(a.u,null);a.w=null};
HF=function(a,b){b=void 0===b?!1:b;FF(a);b?a.U=!0:a.o.Vc?EF(a,a.jb):EF(a,!1);GF(a)};
JF=function(a){a.w&&du(a.w)&&(HF(a),a.o.dv&&IF(a,!0,"fmt.unplayable",{unexpected:1}))};
LF=function(a,b,c){if(a.aa&&(!Dy(a.R)||a.ya)||a.o.R&&!Dy(a.R))return!1;if(a.B.u){if(0<b.A.length&&b.u&&-1==b.u.u||b.A.length>=a.o.hn&&!a.o.Ua||!a.o.Xz&&0<b.A.length&&!a.o.A.nd)return!1;if(b.G)return!a.B.isLive||!isNaN(a.za)}if(KE(b))return!1;if(!(b.u||a.B.u&&a.o.Ua&&b.G)){if(!b.o.dd())return!1;xE(b,a.C)}var d=b.A.length+c.A.length;(EE(b)||EE(c)||a.B.isLive&&(!a.o.Ua||!b.A.length))&&--d;if(d+1>=a.o.Jn)return!1;d=b.u;if(!d)return!0;if(!mx(d.o.u))return!1;4==d.type&&d.o.dd()&&(b.u=g.Ya(d.o.Fp(d)),d=
b.u);if(!d.C&&!d.o.Bg(d)||d.o.info.audio&&4==d.type)return!1;if(GE(b)&&!a.o.da)return!0;if(d.C||zE(b)&&zE(b)+zE(c)>a.o.ya)return!1;var e=!b.B&&!c.B,f=b==a.u&&a.U;!(c=!!(c.u&&!c.u.C&&c.u.B<d.B)&&(!a.B.u||c.u&&c.u.B&&d.B)&&e&&!f||a.o.L&&!b.B&&c.B)&&(c=fw(d))&&(d=d.B,c=a.V,c=c.o?c.o.ud:null,a.U&&c?c=c.startSecs+c.durationSecs:(c=KF(a,b,!0),!fF(a.F)&&0<a.o.U&&(e=((0,g.N)()-a.Aa)/1E3,c=Math.min(c,a.o.U+a.o.ac*e)),c=a.C+c,a.o.od&&(e=eja(a)+a.o.od,e<c&&(a.Dc("mrl","ori."+c+";mod."+e,!0),a.o.an&&(a.Aa=(0,g.N)()),
c=e))),c=d>c);return c||a.o.vo&&(a=b.F)&&a.isLocked()?!1:!0};
MF=function(a,b,c){if((!a.w||au(a.w)||fu(a.w))&&!a.I.w&&a.F.Z){var d=a.C;a=a.P;c=NE(a,b.o.info.o,c.o.info.o,0);var e=wy(a.u)+c/Ay(a.u);d+=Math.max(e,e+a.o.Mc-c/b.o.info.o);a:{if(b.A.length){if(b.A[0].info.o[0].startTime<=d)break a;BE(b)}a=b.w;for(c=a.u.length-1;0<=c;c--)a.u[c].info.startTime>d&&a.u.pop();b.A.length?b.u=g.Ya(g.Ya(b.A).info.o):b.w.u.length?b.u=UD(b.w).info:b.u=mE(b);b.u&&d<b.u.startTime&&(b.L=0,b.u=b.o.og(d,!0).o[0])}}};
OF=function(a,b,c){if(LF(a,b,c))if(c=fja(a,b,c),a.o.tv&&a.B.u&&!b.G&&0>c.o[0].u)a.Dc("invalidsq",kw(c.o[0]));else{if(a.Ia){var d=gja(a.Ia.o,c.o[0].G,c.o[0].o.info.id);d&&(c.B=d)}a.o.Lk&&-1!=c.o[0].u&&c.o[0].u<a.B.Id&&(c=b.o.Ii(a.B.Id,!1));a=NF(a,c);b.A.push(a);b.u=g.Ya(a.info.o)}};
fja=function(a,b,c){if(b.G){if(a.B.isLive){var d=a.B.Id&&a.B.Z?b.o.Ii(a.B.Id,!1):b.o.og(Infinity);d.yd=a.za}else d=b.o.Ii(0,!1);a.G?0==d.yd&&(d.A=a.G.P):d.A=a.Ua;return d}d=b.u;if(!d.o.dd())return d.o.ce()?(a=NE(a.P,b.o.info.o,c.o.info.o,0),a=d.o.Gi(d,a)):a=d.ih(),a;!GE(b)||a.o.da||a.B.u||(MF(a,b,c),b.u||xE(b,a.C));d=b.u;var e=d.B-a.C,f=!d.range||0==d.Na&&0==d.w?0:d.range.length-(d.w+d.Na),k=d.o;hja(a,b,e)&&0==f&&(a.B.u?k=b.o:(k=d.startTime+PF,d.Na&&(k+=d.duration),xE(b,k),d=b.u,k=d.o));k.ce()?(c=
NE(a.P,k.info.o,c.o.info.o,e,Pia(a.F)&&a.ha),d=ija(d,c,FE(b))):(0>d.u&&(c=jw(d),c.pr=""+b.A.length,a.I.w&&(c.sk="1"),a.Dc("nosq",d.F+";"+Ws(c))),d=k.ih(d));a.U&&d.o.forEach(function(l){l.type=6});
return d};
hja=function(a,b,c){if(!FE(b)||!b.o.dd())return!1;a=Math.min(15,.5*KF(a,b,!0));return GE(b)||c<=a};
ija=function(a,b,c){b=a.o.Gi(a,b);if(b.range&&1<b.o.length)if(c||b.u.u||b.o[0].o!=a.o)b=a.o.Gi(a,b.o[0].Na);else{c=b.o[b.o.length-1];var d=c.Na/b.range.length;!c.A&&.4>d&&(b=a.o.Gi(a,b.range.length-c.Na))}return b};
jja=function(a,b){var c=sx(b),d=a.P;var e=Math.min(2.5,wy(d.u));d=OE(d);e=c-e*d;d=ew(b.o[0]);var f=cx(b.u.o),k=a.o.R,l;a.Ha?l={ee:d,Bf:f,wi:k,Ff:a.Ha,Ka:b.o[0].u,yd:b.yd}:l={ee:d,Bf:f,wi:k};return new tia(a.R,c,e,l)};
NF=function(a,b){fw(b.o[b.o.length-1])&&QF(a,Nia(a.F,b.o[0].o));var c=jja(a,b);a.o.cn&&(c.B=[]);var d=new wD(a.o,b,c,a.ga);c.V=function(){var e;if(Bia(d)){if(e=d.u.Xm&&!(!window.performance||!window.performance.now)&&d.o&&d.o.Dj()&&JD(d))e=d.o,e=e.policy.nd&&wx(e);e=e?d.info.o[0].o.info.video?3:4:2}else e=1;return e};
xia(d,(0,g.x)(a.CM,a));3==b.o.length&&1==b.o[0].type&&2==b.o[1].type&&4==b.o[2].type&&b.o[0].o.info.video&&(d.ba=Ria(a.F));a.U&&(d.ha=!0);d.start(Math.max(0,b.o[0].G-a.C));return d};
QF=function(a,b){b&&a.S("videoformatchange",b)};
RF=function(a,b){var c=b.info.o[0].o,d=c.info.video?a.u:a.A;kja(a,d,b);b.info.ee()&&!px(b.info)&&((0,g.y)(Aia(b),function(e){XD(d.w,e)}),a.S("metadata",c));
oE(d);return!!qE(d)};
kja=function(a,b,c){if(a.B.u&&b&&(b.G&&(c.ea(),5<=c.state||JD(c)||LD(c),b.G=!1),c.U&&a.oa.w(1,c.U),c.o&&(c.aa=parseInt(c.o.fd("X-Head-Seqnum"),10)),b=c.aa)){a=a.B;for(var d in a.o)c=a.o[d].index,c.u&&(c.w=Math.max(c.w,b))}};
SF=function(a,b,c){a:{b=b.info;var d=a.o.uC,e=null,f=b.o[0];if(b.range)e=bw(b.range.start,Math.min(4096,b.range.length));else if(d){if(b.w&&0<=b.w.indexOf("/range/")||"1"==b.u.A.get("defrag")||"1"==b.u.A.get("otf")){c=null;break a}e=bw(0,4096)}else if(f.o.info.video){c=null;break a}d=new dw(5,f.o,e,"createProbeRequestInfo_"+f.F,f.u);b=new ox([d],b.w);b.C=c;c=b}c&&NF(a,c)};
WF=function(a){var b=a.w.o,c=a.w.u;a.A.o.w&&TF(a,b,a.A.o.w);if(lja(a)){if(a.o.Rg){if(!b.ni()){var d=qE(a.A);d&&UF(a,b,d)}c.ni()||(b=qE(a.u))&&UF(a,c,b)}}else{if(a.G){d=a.G;var e=a.A,f=Ut(a.w.u.wd());if(d.B)d=Tia(d,f);else{if(f=qE(e)){var k=f.u;k&&k.A&&k.w&&(e=e.A.length?e.A[0]:null)&&3<=e.state&&7!=e.state&&0==e.info.yd&&JD(e)&&(d.B=e,d.I=k,d.w=f.info,d.C=(0,g.G)()/1E3,d.G=d.C,d.F=d.w.startTime)}d=NaN}d&&a.S("seekplayerrequired",d,!0)}d=!1;VF(a,a.u,c)&&(d=!0,c=a.da,c.w||(c.w=(0,g.G)(),c.md("vda"),
TA("vda"),c.u&&dq(4)));c=qE(a.u);a.o.ua&&!d&&c&&(a.yb||a.Dc("sbp",a.w.u.Xa({ns:kw(c.info)})),a.yb=!0);a.w&&!du(a.w)&&(VF(a,a.A,b)&&(b=a.da,b.u||(b.u=(0,g.G)(),b.md("ada"),TA("ada"),b.w&&dq(4)),d=!0),!a.ea()&&a.w&&(!a.o.Z&&wE(a.u)&&wE(a.A)&&au(a.w)&&!a.w.Sd()&&(b=mE(a.A).o,b==a.B.o[b.info.id]&&(b=a.w,au(b)&&b.w.endOfStream(),b=a.R,iy(By(b)),b.A=uy())),d&&!fu(a.w)&&g.An(a.ba)))}};
lja=function(a){if(a.o.Ha)return!1;var b;if(!(b=KE(a.u))&&(b=a.I.w)){b=a.P;var c=a.u,d=a.A;if(0==c.A.length&&0==d.A.length)b=!0;else{var e=0,f=cE(c.w).concat(cE(d.w));f=g.q(f);for(var k=f.next();!k.done;k=f.next())e+=k.value.Na;c=c.o.info.o+d.o.info.o;e/=c;b=10<e?!0:10>c*(10-e)/PE(b)}(b=!b)||(b=a.u,b=0<b.A.length&&1==b.w.u.length&&TD(b.w).info.I<b.R)}if(b)return!0;if(!a.ha||!a.o.Aa||10>a.C||360<a.u.o.info.va().fc)return!1;b=HE(a.u,a.C,a.o.Aa)||HE(a.A,a.C,a.o.Aa);return(0<a.u.A.length||0<a.A.A.length||
LF(a,a.u,a.A)||LF(a,a.A,a.u))&&b};
VF=function(a,b,c){if(c.Sd())return!0;if(!c.Uq())return!1;var d=qE(b);if(!d||6==d.info.type)return!1;var e=d.info,f=mE(b);!f||f.A||gw(f,e)||c.abort();c.Ru(e.o.info.containerType,e.o.info.mimeType);if(e=a.o.Sa&&a.B.w&&0==d.info.w&&(g.nt(d.info.o.info)||a.o.Ev)){if(null==c.ni()){e=mE(b);if(!(f=!e||e.o!=d.info.o)){b:if(e=e.P,f=d.info.P,e.length!=f.length)e=!1;else{for(var k=0;k<e.length;k++)if(!g.vb(e[k],f[k])){e=!1;break b}e=!0}f=!e}e=f}else e=c.ni(),f=d.info.o.o,e=e!==f&&!g.vb(e,f);e=!e}e&&(g.nt(d.info.o.info)?
(Bv(Aw(d),1836019574),Bv(Aw(d),1718909296)):(e=new Fv(Aw(d)),Zv(e),Jv(e,524531317,!0),d.o=d.o.split(e.w+e.o).dj),d.w=!1);a.o.oe&&d.w&&(d.w=!1);e=a.G&&!!a.G.B&&b.o.info.audio;f=a.B.u||d.w;if(!(a.B.w&&0!=d.info.w||f&&!e)&&UF(a,c,d))return!0;if(e)return!1;e=a.C+KF(a,b,!1);if(!(e=d.info.G>e)){a:if(a.o.ua&&a.Dc("sba",c.Xa({as:kw(d.info)})),e=d.w?d.info.o.o:null,f=vw(d.o),d.w&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=XF(a,c,f,d.info,e),"s"==e)var l=!0;else{a.o.cv||(c.abort(),CE(b));if("i"==
e||"x"==e)YF(a,"checked",e,d.info);else{if("q"==e&&(d.info.isVideo()?(e=a.o,e.C=Math.floor(.8*e.C),e.V=Math.floor(.8*e.V),e.B=Math.floor(.8*e.B)):(e=a.o,e.F=Math.floor(.8*e.F),e.za=Math.floor(.8*e.za),e.B=Math.floor(.8*e.B)),c.supports(2)&&!c.Sd()&&!a.w.isView())){e=!1;f=c.wd();try{for(k=0;!e&&k<f.length;k++)f.start(k)>d.info.B&&(c.remove(f.start(k),f.end(f.length-1)),e=!0);var m=Math.max(0,Math.min(a.C,d.info.startTime)-5);!e&&m&&c.remove(0,m);l=!1;break a}catch(n){}}a.S("reattachrequired")}l=!1}e=
!l}if(e)return!1;b.w.u.shift();rE(b,d);return!0};
YF=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"==c||"m"==c?(e="fmt.unparseable",d.o.C=e,d.o.info.video&&!eF(a.F)&&dF(a.F,d.o)):"i"==c&&(15>a.Pa?(a.Pa++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=jw(d);d.mrs=a.w.w.readyState;d.origin=b;d.reason=c;IF(a,f,e,d)};
ZF=function(a,b,c){if(c){var d=a.V;if(d.B.Pa){var e=d.o&&d.u&&d.o.Ka==d.u.Ka-1;e=d.o&&e&&"stop"!=d.o.ud.event&&"predictStart"!=d.o.ud.event;d.u&&d.u.Ka<b.Ka&&(e?YE(d,d.u):d.A=!0);d.u=b}}d=a.B;e=!1;for(var f in d.o){var k=qt(d.o[f].info.mimeType)||d.o[f].info.isVideo();c==k&&(k=d.o[f].index,Ax(k,b.Ka)||(k.bz(b),e=!0))}Hia(a.I,b,c,e)};
UF=function(a,b,c){c.info.o.dd();var d=c.info.o.o;if(null==d||b.ni()==d)return!1;var e=d,f=b.Rn();if(a.o.oe&&f&&b.isView()&&g.nt(c.info.o.info)){var k=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=Pfa(k,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Dc("fenc","1")}d=XF(a,b,e,null,d);return"s"!=d?(YF(a,"sepInit",d,c.info),!0):b.Sd()};
XF=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.M(f),"u";b=Qt(b.wd()).replace(/,/g,"_");a.Dc("quex","br."+b+";e."+f);return"q"}return du(a.w)?"m":"s"};
zF=function(a,b){b.w.subscribe("needkeyinfo",a.IJ,a);b.w.subscribe("error",a.tL,a);b.w.subscribe("avsyncissue",a.sL,a);var c=(0,g.x)(a.wL,a,b);b.w.subscribe("placeholderinfo",c,void 0);c=(0,g.x)(a.xL,a,b);b.w.subscribe("placeholderrollback",c,void 0);c=(0,g.x)(a.yL,a,b);b.w.subscribe("segmentinfo",c,void 0);c=a.uL.bind(a);b.w.subscribe("gaplessinfo",c,void 0);c=a.vL.bind(a);b.w.subscribe("localmediacomplete",c,void 0)};
cja=function(a,b){b.subscribe("seekplayerrequired",function(c,d){a.U||a.S("seekplayerrequired",c,d)});
b.subscribe("ctmp",function(c,d){a.Dc(c,d,!1)});
b.subscribe("error",function(c,d,e){IF(a,c,d,e)});
b.subscribe("setcurrenttime",function(c){a.C=c})};
TF=function(a,b,c){var d=0+c.duration;c=-c.o;0==b.Qn()&&d==b.Hr()||b.wu(0,d);c!=b.Bb()&&(b.Jp(c),eE&&jE(a.A.w,b.Qr()))};
KF=function(a,b,c){if(a.aa)return 1;var d=b.o.info.audio?a.o.F:a.o.C;!a.o.da&&fF(a.F)&&(d=Math.max(d,b.o.info.audio?a.o.za:a.o.V));c&&(d+=a.o.ya);var e=fF(a.F)?b.u?b.u.o.info.o:b.o.info.o:b.P;d/=e;0<a.o.Ca&&a.w&&au(a.w)&&(b=b.o.info.video?a.w.u:a.w.o)&&!b.Sd()&&(b=b.wd(),e=Rt(b,a.C),0<=e&&(b=a.C-b.start(e),d+=Math.max(0,Math.min(b-a.o.Ca,a.o.Pn))));0<a.o.B&&(d=Math.min(d,a.o.B));a.o.Kc&&c&&!fF(a.F)&&(c=a.F,c=cF(c,g.Ya(c.o))+cF(c,c.G.o[0]),c=a.o.Kc*(c/OE(a.P)),c<d&&15>c&&a.Dc("bwcapped","1",!0),c=
Math.max(c,15),d=Math.min(d,c));return d};
eja=function(a){if(!a.Sa)return Infinity;var b=(0,g.xe)(uF(a.Sa),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.C)return c.start/1E3;return Infinity};
mja=function(a,b){var c=tE(a.u).find(function(d){return d.startTime>=b&&AF(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime:0};
AF=function(a,b,c){if(!(a.u.o.dd()&&a.A.o.dd()&&a.w&&a.w.u&&a.w.o))return!1;if(c&&a.B.u&&(-1==a.u.C||-1==a.A.C))return!0;var d=vE(a.u,b,c);if(isNaN(d))return!1;a=vE(a.A,a.o.ha?b:d,c);return isNaN(a)?!1:!0};
$F=function(a,b,c,d){c.dd()||c.B||!mx(c.u)||(d=c.wj(d?Eia(a.P,c.info):0),(0,g.y)(d,function(e){if("f"!=e.o[0].o.info.u){var f=NF(this,e);px(e)&&(b.A.push(f),b.u=g.Ya(f.info.o))}},a),c.B=!0)};
IF=function(a,b,c,d){a.ea()||(d=new Vs(c,b,d),g.Sa(a),Ws(d.details),a.S("error",d),"html5.invalidstate"!=c&&"fmt.unplayable"!=d.errorCode&&"fmt.unparseable"!=c&&b&&a.dispose())};
GF=function(a){CE(a.A);CE(a.u)};
nja=function(a,b){var c=b.info.video?a.u:a.A;null!=c&&$F(a,c,b,!1)};
aG=function(a){this.o=a};
oja=function(a,b,c){this.url=a;this.interval=b;this.o=c};
bG=function(){g.O.apply(this,arguments)};
cG=function(a,b,c,d){bG.call(this);var e=this;this.w=-1;this.o={};this.A=new g.H(this.B,0,this);g.C(this,this.A);this.u=new g.H(function(){e.ea()||(e.A.start(Math.random()*c),e.u.start(b))},a,this);
g.C(this,this.u);d.subscribe("fairplay_next_need_key_info",this.C,this)};
pja=function(a,b,c){a=a.match(pd);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="+dd(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};
dG=function(a){a=a.subarray(4);return String.fromCharCode.apply(null,new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2))};
eG=function(a,b){this.statusCode=a;this.errorMessage=null;this.message=b;this.nextFairplayKeyId=this.u=this.o=this.heartbeatParams=null};
fG=function(a){var b=Ev(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="string"===typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=ov(b.slice(d+2));if(null==b)return null;a=new eG(e,a.subarray(c+4));0!=a.statusCode&&(a.errorMessage=g.KC(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new oja(c,parseInt(b["Heartbeat-Interval-Secs"],
10)||60,parseInt(b["Heartbeat-Num-Retries"],10)||4);if(c=b["Authorized-Format-Types"])a.o=c.split(",");if(c=b["Key-Ids"])a.u=qja(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
qja=function(a){if(!a)return{};a=a.split(";");var b={};(0,g.y)(a,function(c){c=c.split(",");2==c.length&&(b[c[1]]=c[0])});
return b};
gG=function(a,b,c,d){g.A.call(this);this.message=a;this.number=b;this.w=c;this.o=d;this.u=new g.Wn(5E3,2E4,.2)};
hG=function(a,b,c,d,e){g.A.call(this);this.F=a;this.L=b;this.P=c;this.o=d;this.u=e;this.sessionId="";this.I=this.G=this.A=this.C=null;this.B=new g.Nr(this);g.C(this,this.B);this.o?(this.B.K(this.o,"message",this.WH),this.B.K(this.o,"keystatuseschange",this.XH),this.o.closed&&this.o.closed.then(Mo((0,g.x)(this.zK,this)),null)):this.u&&(Or(this.B,this.u,["mskeymessage","webkitkeymessage"],this.LA),Or(this.B,this.u,["mskeyerror","webkitkeyerror"],this.KA),Or(this.B,this.u,["mskeyadded","webkitkeyadded"],
this.JA))};
iG=function(a,b,c,d,e,f){a.C=b;a.A=c;a.G=d;a.I=e;a.w=f};
jG=function(a,b){g.A.call(this);this.u=a;this.o=b;this.F={};this.A=null;this.B=new g.Nr(this);g.C(this,this.B);this.w=this.C=null};
kG=function(a){if(a.o.keySystemAccess)return a.o.keySystemAccess.createMediaKeys().then(Mo(function(b){a.ea()||(a.C=b,a.u.setMediaKeys(b))}));
Az(a.o)?a.w=new (zz())(a.o.o):Dz(a.o)?(a.w=new (zz())(a.o.o),a.u.webkitSetMediaKeys(a.w)):rja(a);return null};
rja=function(a){Or(a.B,a.u,["keymessage","webkitkeymessage"],a.aI);Or(a.B,a.u,["keyerror","webkitkeyerror"],a.ZH);Or(a.B,a.u,["keyadded","webkitkeyadded"],a.YH)};
sja=function(a){return"widevine"==a.o.flavor&&a.o.Nm&&a.C.setServerCertificate?a.C.setServerCertificate(a.o.Nm):null};
lG=function(a,b){var c=a.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=d;d=new ArrayBuffer(2*c.length);e=new Uint16Array(d);for(var f=0;f<c.length;f++)e[f]=c.charCodeAt(f);c=new Uint8Array(d);d=0;f=new ArrayBuffer(a.byteLength+4+c.byteLength+4+b.byteLength);e=new Uint8Array(f);f=new DataView(f);e.set(a);d+=a.byteLength;f.setUint32(d,
c.length,!0);d+=4;e.set(c,d);d+=c.length;f.setUint32(d,b.byteLength,!0);e.set(b,d+4);return e};
tja=function(a,b){var c=lG(b,a.o.Oe);c=a.w.createSession("video/mp4",c);return new hG(null,null,null,null,c)};
uja=function(a,b){for(var c=new Uint8Array(270),d=0;135>d;d++)c[2*d]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);c=a.w.createSession("video/mp4",b,c);return new hG(null,null,null,null,c)};
mG=function(a,b){var c=a.F[b.sessionId];!c&&a.A&&(c=a.A,a.A=null,c.sessionId=b.sessionId,a.F[b.sessionId]=c);return c};
oG=function(a,b,c,d){g.O.call(this);this.T=a;this.u=a.wc;this.w=b;this.ba=c;this.cryptoPeriodIndex=c.cryptoPeriodIndex||NaN;this.da=d;this.B=vja(this);this.B.session_id=d;this.I=!0;"widevine"==this.u.flavor&&(this.B.hdr="1");"playready"==this.u.flavor&&(a=parseInt(g.Dt(b.experiments,"playready_first_play_expiration"),10),!isNaN(a)&&0<=a&&(this.B.mfpe=""+a),g.P(b.experiments,"html5_playready_keystatuses_killswitch")||(this.I=!1),g.P(b.experiments,"html5_playready_enable_non_persist_license")&&(this.B.pst=
"0"));a=Ez(this.u)?dG(c.initData).replace("skd://","https://"):this.u.u;g.P(this.w.experiments,"enable_shadow_yttv_channels")&&(a=new g.Um(a),document.location.origin&&document.location.origin.includes("green")?g.Wm(a,"web-green-qa.youtube.com"):g.Wm(a,"www.youtube.com"),a=a.toString());this.G=a;this.aa=Fd(this.G,"ek")||"";this.V=g.P(b.experiments,"html5_use_drm_retry");this.U=0;this.F=this.P=!1;this.A=null;this.ha=c.u;this.C=[];this.L=!1;this.o={};this.R=NaN;nG(this,"sessioninit"+c.cryptoPeriodIndex)};
xja=function(a,b){nG(a,"createkeysession");FA("drm_gk_s",void 0,void 0);a.Z=wja(a);try{a.A=b.createSession(a.ba,function(d){return nG(a,d)})}catch(d){var c="t.g";
d instanceof DOMException&&(c+=";c."+d.code);a.S("licenseerror","drm.unavailable",!0,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.A&&(iG(a.A,a.UH,a.TH,a.SH,a.VH,a),g.C(a,a.A))};
wja=function(a){var b=a.G,c=b;var d=void 0===d?!1:d;Pw(Rw(c,yja,null),c,d,"Drm Licensor URL")||pG(a,"drm.net",!0,"t.x");for(var e in a.B)c=e,d=a.B[e],b=Cd(Gd(b,c),c,d);return b};
vja=function(a){var b={};g.Vb(b,a.w.deviceParams);b.cpn=a.T.clientPlaybackNonce;var c=["23883098"].filter(function(d){return a.w.experiments.experiments[d]});
0<c.length&&(b.fexp=c.join());a.T.ae&&(b.vvt=a.T.ae,a.T.mdxEnvironment&&(b.mdx_environment=a.T.mdxEnvironment));a.w.Nc&&(b.authuser=a.w.Nc);a.w.pageId&&(b.pageid=a.w.pageId);isNaN(a.cryptoPeriodIndex)||(b.cpi=a.cryptoPeriodIndex);g.P(a.w.experiments,"html5_send_device_type_in_drm_license_request")&&(c=Tca())&&(b.cdt=c);return b};
zja=function(a){var b={};g.Vb(b,a.B);return b};
qG=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(rba(a.childNodes[0].data)):null:null};
Aja=function(a,b){nG(a,"sdpvrq");if("widevine"!=a.u.flavor)pG(a,"drm.provision",!0,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.T.clientPlaybackNonce};g.Vb(c,a.w.deviceParams);c=g.Bd("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:Ev(b)}),responseType:"arraybuffer"};g.pr(c,d,3,500).then(Mo(function(e){if(!a.ea()){e=
new Uint8Array(e.response);var f=Ev(e);try{var k=JSON.parse(f)}catch(l){}k&&k.signedResponse?(a.S("ctmp","drminfo","provisioning"),a.A&&a.A.update(e)):(k=k&&k.error&&k.error.message,e="e.parse",k&&(e+=";m."+k),pG(a,"drm.provision",!0,e))}}),Mo(function(e){a.ea()||pG(a,"drm.provision",!0,"e."+e.errorCode+";c."+(e.Ei&&e.Ei.status))}))}};
rG=function(a){var b;if(b=a.I&&null!=a.A)a=a.A,b=!(!a.o||!a.o.keyStatuses);return b};
sG=function(a,b){FA("drm_net_s",void 0,void 0);if(a.T.useInnertubeDrmService()){var c=new g.Xq(a.w.ug),d=g.lp(c);d.drmSystem=Bja[a.u.flavor];d.videoId=a.T.videoId;d.cpn=a.T.clientPlaybackNonce;d.sessionId=a.da;d.licenseRequest=g.eg(b.message);d.drmParams=a.T.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);if(d.context&&d.context.client){var e=a.w.deviceParams;e&&(d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=
e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver);d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.T.ae&&(d.context.user.credentialTransferTokens=[{token:a.T.ae,scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.T.mdxEnvironment||d.context.request.mdxEnvironment;a.T.Ef&&(d.context.user.kidsParent={oauthToken:a.T.Ef});if(Ez(a.u)){e=a.aa;for(var f=[],k=0;k<e.length;k+=2)f.push(parseInt(e.substring(k,k+2),16));
d.fairplayKeyId=g.eg(f)}e=a.T.Qd();f={onSuccess:(0,g.x)(b.F,b),onError:(0,g.x)(b.C,b)};e&&(f.Yv="Bearer "+e);g.np(c,"player/get_drm_license",d,f)}else pG(a,"drm.net",!0,"t.r;ic.0")}else c=a.Z,d=a.T.oauthToken,e={format:"RAW",method:"POST",postBody:b.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:(0,g.x)(b.B,b),onError:(0,g.x)(b.A,b)},d&&(c=Cd(Gd(c,"access_token"),"access_token",d)),g.Lq(c,e)};
pG=function(a,b,c,d,e){a.ea()||a.S("licenseerror",b,c,d,e);c&&a.dispose()};
Cja=function(a,b){var c=b.u.getValue();c=new g.H(function(){return sG(a,b)},c);
g.C(a,c);c.start();g.Xn(b.u);nG(a,"rtyrq")};
tG=function(a){return g.cb(a,"UHD2")?"highres":g.cb(a,"UHD1")?"hd2160":g.cb(a,"HD")?"hd1080":g.cb(a,"HD720")?"hd720":"large"};
uG=function(a,b){if(!rG(a)&&Cz(a.u)&&!b)return"large";var c=[],d=!0;if(rG(a))for(var e in a.o)"usable"==a.o[e].status&&c.push(a.o[e].type),"unknown"!=a.o[e].status&&(d=!1);if(!rG(a)||d)c=a.C;return tG(c)};
vG=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};
Dja=function(a){if(rG(a)){var b=[],c;for(c in a.o)b.push.apply(b,[c,a.o[c].type,a.o[c].status]);a=b.join(";")}else a=a.C.join(";");return a};
wG=function(a,b,c,d,e){var f;"playready"===e?f=qG(a):"fairplay"==e&&(f=Dv(g.eg(a)));f&&(a={format:"RAW",method:"POST",postBody:f,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Paa(c,d),g.pr(c,a,3,500).then(function(k){k=new Uint8Array(k.response);(k=fG(k))&&k.message&&b.update(k.message)}))};
xG=function(a,b,c){a:{switch(b){case "highres":case "hd2880":b="UHD2";break;case "hd2160":case "hd1440":b="UHD1";break;case "hd1080":case "hd720":b="HD";break;case "large":case "medium":case "small":case "light":case "tiny":b="SD";break;default:c="";break a}c&&(b+="HDR");c=b}for(var d in a.o)if("output-restricted"==a.o[d].status&&(b=a.o[d].type,""==c||"AUDIO"==b||c==b))return!0;return!1};
yG=function(a,b){for(var c in a.o)if("usable"==a.o[c].status&&a.o[c].type==b)return!0;return!1};
nG=function(a,b){UB(a.T)&&a.S("ctmp","drmlog",b)};
zG=function(a,b){g.A.call(this);this.o=g.re("video");this.u=null;this.w=new yz("fairplay","com.youtube.fairplay","",b);this.w.Oe=a;this.A=[];this.B=new g.Nr(this);g.C(this,this.B);Eja(this)};
Eja=function(a){var b,c;g.Da(function(d){if(1==d.o){if(!a.o)return d["return"]();g.xh(a.o,{position:"absolute",width:"1px",height:"1px",display:"block"});a.o.src=a.w.A;document.body.appendChild(a.o);a.B.K(a.o,"encrypted",a.C);b=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}];return g.ua(d,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",b),2)}c=d.u;a.w.keySystemAccess=c;a.u=new jG(a.o,
a.w);g.C(a,a.u);kG(a.u);d.o=0})};
AG=function(){this.keys=[];this.values=[]};
BG=function(a,b,c){bG.call(this);var d=this;this.A=a;this.w=b;this.o=[];this.u=new g.H(function(){var e=d.o.shift().info;a:{var f=e.cryptoPeriodIndex;if(isNaN(f)&&0<d.w.values.length)f=!0;else{for(var k=g.q(d.w.values),l=k.next();!l.done;l=k.next())if(l.value.cryptoPeriodIndex==f){f=!0;break a}f=!1}}f||d.S("rotated_need_key_info_ready",e);0<d.o.length&&(e=d.o[0].time-(0,g.G)(),d.u.start(Math.max(0,e)))},0);
g.C(this,this.u);c.subscribe("widevine_set_need_key_info",this.B,this)};
EG=function(a,b,c){g.O.call(this);a&&(a.addKey||a.webkitAddKey)||zz()||Fz(c.experiments);this.P=a;this.T=b;this.o=b.wc;this.u=c;this.ua=b.drmSessionId||g.as();this.w=new AG;this.ha=null;this.C=new AG;this.I=new AG;this.A=[];b=g.P(this.u.experiments,"html5_drm_initial_constraint_from_config")?this.T.al:g.P(this.u.experiments,"html5_drm_start_from_null_constraint");this.G="fairplay"==this.o.flavor?Gu:b?Gu:CG;this.U=null;this.L=new jG(a,this.o);g.C(this,this.L);this.B=null;Az(this.o)&&(this.B=new jG(a,
this.o),g.C(this,this.B));this.ma=2;this.aa=new g.Nr(this);g.C(this,this.aa);this.oa=this.da=!1;this.ga=null;this.V=!1;a=this.P;this.o.keySystemAccess?this.aa.K(a,"encrypted",this.bI):Or(this.aa,a,Az(this.o)?["msneedkey"]:["needkey","webkitneedkey"],this.ML);(a=kG(this.L))?a.then(Mo((0,g.x)(this.rL,this)),Mo((0,g.x)(this.fK,this))):(DG(this,"mdkrdy"),this.V=!0);this.B&&kG(this.B);this.R=this.ba=this.Z=!1;a:{a=this.o;b=this.u.experiments;c=this.w;switch(a.flavor){case "fairplay":19.2999<hl()?(b=a.In,
a=a.Hn,a>=b&&(a=.75*b),c=.5*(b-a),a=new cG(c,b,b-c-a,this)):a=null;break a;case "widevine":a=new BG(g.P(b,"disable_license_delay"),c,this);break a}a=null}if(this.F=a)g.C(this,this.F),this.F.subscribe("rotated_need_key_info_ready",this.Tv,this);DG(this,"cks"+this.o.ge());a=this.o;"com.youtube.widevine.forcehdcp"===a.o&&a.A&&(this.ya=new zG(this.T.Oe,this.u.experiments),g.C(this,this.ya))};
HG=function(a,b,c){a.oa=!0;c=new ND(b,c);g.P(a.u.experiments,"html5_eme_loader_sync")?(a.C.get(b)||a.C.set(b,c),FG(a,c)):0!=a.A.length&&a.T.wa&&a.T.wa.o?GG(a):FG(a,c)};
IG=function(a,b){DG(a,"onneedkeyinfo");g.P(a.u.experiments,"html5_eme_loader_sync")&&(a.I.get(b.initData)||a.I.set(b.initData,b));FG(a,b)};
Gja=function(a,b){if(Az(a.o)&&!a.Z){var c=mia(b);if(0!=c.length){var d=new ND(c);a.Z=!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){Fja(a,f,d)})},null)}}};
Fja=function(a,b,c){var d=b.createSession(),e=a.w.values[0],f=zja(e);d.addEventListener("message",function(k){k=new Uint8Array(k.message);wG(k,d,a.o.u,f,"playready")});
d.addEventListener("keystatuseschange",function(){d.keyStatuses.forEach(function(k,l){"usable"==l&&(a.ba=!0,JG(a,uG(e,a.ba)))})});
d.generateRequest("cenc",c.initData)};
FG=function(a,b){if(!a.ea()){DG(a,"onInitData_");if(g.P(a.u.experiments,"html5_eme_loader_sync")&&a.T.wa&&a.T.wa.o){var c=a.I.get(b.initData),d=a.C.get(b.initData);if(!c||!d)return;b=c;c=b.initData;a.C.remove(c);a.I.remove(c)}DG(a,"initd"+b.initData.length+"ct"+b.contentType);"widevine"==a.o.flavor?a.da&&!a.T.sa||g.P(a.u.experiments,"vp9_drm_live")&&a.T.sa&&b.Bc||(a.da=!0,c=b.o,OD(b),c&&!b.Bc&&b.o!=c&&a.S("ctmp","cpsmm","emsg."+c+";pssh."+b.o),a.S("widevine_set_need_key_info",b)):a.Tv(b)}};
KG=function(a){a.ea()||(a.V=!0,DG(a,"onmdkrdy"),GG(a))};
GG=function(a){if(a.oa&&a.V&&!a.R){for(;a.A.length;){var b=a.A[0];if(a.w.get(b.initData))if("fairplay"==a.o.flavor)a.w.remove(b.initData);else{a.A.shift();continue}OD(b);break}if(a.A.length){b=a.A[0];a.w.get(b.initData);a.R=!0;var c=new oG(a.T,a.u,b,a.ua);a.w.set(b.initData,c);c.subscribe("ctmp",a.hA,a);c.subscribe("hdentitled",a.vA,a);c.subscribe("keystatuseschange",a.cz,a);c.subscribe("licenseerror",a.dz,a);c.subscribe("newlicense",a.FA,a);c.subscribe("newsession",a.HA,a);c.subscribe("sessionready",
a.XA,a);c.subscribe("fairplay_next_need_key_info",a.rA,a);xja(c,a.L)}}};
JG=function(a,b){var c=Eu("auto",b,!1,"l");if(g.P(a.u.experiments,"html5_drm_initial_constraint_from_config")?a.T.al:g.P(a.u.experiments,"html5_drm_start_from_null_constraint")){if(Du(a.G,c))return}else if(Ju(a.G,b))return;a.G=c;a.S("qualitychange");DG(a,"updtlq"+b)};
DG=function(a,b){UB(a.T)&&a.Kh.S("ctmp","drmlog",b)};
LG=function(a,b,c,d){this.videoData=a;this.o=b;this.reason=c;this.u=d};
Hja=function(a,b){this.videoData=a;this.wa=b};
Ija=function(a,b,c){return b.jn(c).then(function(){return(a.fa("disable_index_range_auth")||!b.fo||!b.wa.o||b.Df()||b.Hl()?0:/(&|,|^)init=0-0(&|,|$)/.test(b.adaptiveFormats))?rr(new Vs("auth",!0,{init:"1"})):sr(new Hja(b,b.wa))},function(d){d instanceof Error&&g.No(d);
d=b.sa&&!g.xu(a.A)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.fe,f18:""+ +(0<=b.Bk.indexOf("itag=18")),c18:""+ +Ft('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f43:""+ +(0<=b.Bk.indexOf("itag=43")),c43:""+ +Ft('video/webm; codecs="vp8.0, vorbis"')};b.ia&&(e.f133=""+ +!!b.ia.o["133"],e.f140=""+ +!!b.ia.o["140"],e.c140=""+ +Ht('audio/mp4; codecs="mp4a.40.2"'),e.f242=""+ +!!b.ia.o["242"],e.c242=""+ +Ht('video/webm; codecs="vp9"'));return new Vs(d,
!0,e)})};
MG=function(a,b){g.O.call(this);this.o=a;this.L=b;this.P=this.C=this.F=this.w=this.u=this.B=this.I=this.A=0;this.G=1};
OG=function(a,b,c){!g.P(a.o.experiments,"html5_tv_ignore_capable_constraint")&&g.cz(a.o)&&(c=Hu(c,NG(a,b)));return c};
NG=function(a,b){if(g.cz(a.o)&&iu(a.o.A,mu))var c=b.wa.videoInfos[0].va().fc;else{var d=!!b.wa.o;Ty(a.o)&&(c=window.screen&&window.screen.width?new g.Vd(window.screen.width,window.screen.height):null);c||(c=a.o.Lk?a.o.Lk.clone():a.L.getPlayerSize());if(Vy||PG||d){d=c;var e=g.lz();d.width*=e;d.height*=e}kB(b.videoData)||TB(b.videoData);var f=b.wa.videoInfos;if(f.length){d=.85;e=f[0].va();4!=e.projectionType&&2!=e.projectionType&&3!=e.projectionType||Ry||(d=.45);e=f[0];var k=e.va();f=g.q(f);for(var l=
f.next();!l.done&&!(e=k=l.value,k=k.va(),null===c||k.width*d<c.width&&k.height*d<c.height);l=f.next());c="93"==jt(e)?ct(k.width,k.height):k.quality;c=Eu("auto",c,!1,"r")}else c=Gu;c=c.o}c&&(c=Math.max(c,360));return new Cu(0,c,!1,"r")};
QG=function(a,b){var c;a:if((c=b.wa)&&c.videoInfos.length){for(var d=g.q(c.videoInfos),e=d.next();!e.done;e=d.next())if(e=e.value,e.A){c=e.va().fc;break a}c=c.videoInfos[0].va().fc}else c=0;kl()&&!g.cz(a.o)&<(b.wa.videoInfos[0])&&(c=Math.min(c,g.dt.large));return new Cu(0,c,!1,"o")};
Jja=function(a){var b;return g.Da(function(c){if(!a.wa.o)return c["return"]();b=a.wa.videoInfos;return c["return"](Uz(b))})};
Kja=function(a,b,c,d){if(!b||!c||!b.videoData.Ba)return!1;var e=g.Q(a.o.experiments,"html5_df_downgrade_thresh"),f=RG(a,"html5_log_media_perf_info"),k=g.Q(a.o.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.N)()-a.B?0:f||0<e||0<k))return!1;a.B=(0,g.N)();c=c.Sl();if(!c)return!1;var l=c.droppedVideoFrames-a.C,m=c.totalVideoFrames-a.P;a.C=c.droppedVideoFrames;a.P=c.totalVideoFrames;f&&b.videoData.wg&&a.S("ctmp","ddf","dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames);if(RG(a,
"html5_ignore_background_dfd")&&d)return a.u=0,a.w=0,!1;d=60<m?l/m:0;0<d&&(a.F=d);a.w=0<k&&60*d>k?a.w+1:0;if(!e||g.cz(a.o)||!SG(a,b))return!1;a.u=d>e?a.u+1:0;if(3!=a.u)return!1;TG(a,b.videoData.Ba);a.S("ctmp","dfd",UG());return!0};
SG=function(a,b){if(RG(a,"html5_restore_perf_cap_redux"))return!0;if(!b.videoData.Ba)return!1;if("1"==b.videoData.Ba.u)return!0;var c=a.o.o?240:360;return b.videoData.Ba.va().fc>c};
TG=function(a,b){var c=b.va().fc-1,d=b.u,e=b.va().fps,f=c,k=ly();d=ky(d,e);0<+k[d]&&(f=Math.min(+k[d],f));k[d]!=f&&(k[d]=f,g.Ks("yt-player-performance-cap",k,604800));a.o.Wf=new Cu(0,c,!1,"b")};
VG=function(a,b){if(RG(a,"html5_restore_perf_cap_redux")){if(!b.wa.o)return Gu;for(var c=0,d=a.o.o?240:360,e=g.q(b.wa.videoInfos),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.u,l=f.va().fps;k=+ly()[ky(k,l)]||0;f=f.va().fc;if(!k||Math.max(k,d)>=f){c=f;break}}return new Cu(0,c,!1,"b")}return a.o.Wf};
RG=function(a,b){return g.P(a.o.experiments,b)};
Lja=function(a,b){RG(a,"html5_log_media_perf_info")&&(a.S("ctmp","perfdb",UG()),a.S("ctmp","hwc",""+navigator.hardwareConcurrency,!0),b&&a.S("ctmp","mcdb",b.wa.videoInfos.filter(function(c){return!1===c.A}).map(function(c){return jt(c)}).join("-")))};
UG=function(){var a=Eb(ly(),function(b){return""+b});
return Ws(a)};
WG=function(){this.endTime=this.startTime=-1;this.Xq="-";this.playbackRate=1;this.visibilityState=0;this.Rq="";this.volume=this.connectionType=this.Xg=0;this.muted=!1;this.clipId="-"};
XG=function(a,b,c,d,e,f,k,l,m,n,p,t,u){this.videoData=a;this.o=b;this.Xc=c;this.B=d;this.u=e;this.A=f;this.G=k;this.getAudioTrack=l;this.getPlaybackRate=m;this.C=n;this.getVisibilityState=p;this.F=t||function(){};
this.w=null;this.I=u||function(){}};
g.ZG=function(a){return YG(a)()};
YG=function(a){if(!a.w){var b=g.Ta(function(c){var d=(0,g.N)();c&&631152E6>=d&&(g.M(Error("invalid coreTime.now value: "+d)),d=(new Date).getTime()+2);return d},g.P(a.o.experiments,"html5_validate_yt_now"));
a.w=g.Ta(function(c){return Math.round(b()-c)/1E3},b());
a.I()}return a.w};
aH=function(a){if(navigator.connection&&navigator.connection.type)return $G[navigator.connection.type]||$G.other;if(g.cz(a.o)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
bH=function(a){var b=new WG;b.Xq=a.Xc().cc||"-";b.playbackRate=a.getPlaybackRate();var c=a.getVisibilityState();0!=c&&(b.visibilityState=c);a.o.Xg&&(b.Xg=1);c=a.getAudioTrack();c.sb&&c.sb.id&&"und"!=c.sb.id&&(b.Rq=c.sb.id);b.connectionType=aH(a);b.volume=a.Xc().volume;b.muted=a.Xc().muted;b.clipId=a.Xc().clipid||"-";return b};
g.cH=function(a,b){this.state=a;this.Gh=b};
dH=function(a,b){return g.V(a.state,b)&&!g.V(a.Gh,b)?1:!g.V(a.state,b)&&g.V(a.Gh,b)?-1:0};
g.eH=function(a,b){return 0<dH(a,b)};
fH=function(a,b){g.A.call(this);this.u=a;this.aa=b;this.w=-1;this.R=!1;this.A=-1;this.o=new g.LC;this.L=this.V=this.U=this.G=this.F=this.P=0;this.B=new g.H(this.C,6E4,this);g.C(this,this.B);this.I=!1};
gH=function(a){0<=a.w||(3==a.u.getVisibilityState()?a.R=!0:(a.w=g.ZG(a.u),a.B.start()))};
hH=function(a){if(!(0>a.A)){var b=g.ZG(a.u),c=b-a.P;a.P=b;8==a.o.o?a.F+=c:g.UC(a.o)&&!g.V(a.o,16)&&(a.G+=c)}};
iH=function(a){var b=g.Dt(a.o.experiments,"web_player_ipp_canary_type_for_logging");if("control"==b)return"HTML5_PLAYER_CANARY_TYPE_CONTROL";if("experiment"==b)return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";a=a.o.experiments.experimentIds;return a.includes("21561000")?"HTML5_PLAYER_CANARY_TYPE_SMALL_EXPERIMENT":a.includes("21561001")?"HTML5_PLAYER_CANARY_TYPE_SMALL_CONTROL":"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"};
Mja=function(a){return(!a.fa("html5_health_to_gel")||a.o.oa+36E5<(0,g.N)())&&(a.fa("html5_health_to_gel_canary_killswitch")||a.o.oa+36E5<(0,g.N)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"==iH(a))?a.fa("html5_health_to_qoe"):!0};
kH=function(a){g.A.call(this);var b=this;this.o=a;this.u={};this.V=1;this.ma=NaN;this.w="N";this.F=this.Aa=this.ua=this.da=this.C=0;this.aa=this.Ca="";this.oa=0;this.Ha=-1;this.za=1;this.R=this.U=0;this.ba=this.L=!1;this.Ma=[];this.G=null;this.I=this.Z=this.A=!1;this.B=-1;this.ga=!1;this.Ia=new g.H(this.yF,750,this);g.C(this,this.Ia);(a=navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.G=c});
g.jH(this,0,"vps",["N"])};
g.jH=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
mH=function(a,b){var c=a.o.u();g.jH(a,b,"cmt",[c.toFixed(3)]);if(a.P&&1E3*c>a.P.Wz+100){var d=a.P;a.ha=1E3*b-d.mO-(1E3*c-d.Wz)-d.cO;lH(a,"gllat","l."+a.ha.toFixed());delete a.P}};
oH=function(a,b){b=0<=b?b:g.ZG(a.o);var c=a.o.A();if(!isNaN(a.ya)&&!isNaN(c.w)){var d=c.w-a.ya;0<d&&g.jH(a,b,"bwm",[d,(c.B-a.Pa).toFixed(3)])}a.ya=c.w;a.Pa=c.B;isNaN(c.bandwidthEstimate)||g.jH(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.o.videoData.wg&&c.o&&lH(a,"bwinfo",c.o);a.G&&g.jH(a,b,"bat",[a.G.level,a.G.charging?"1":"0"]);d=a.o.getVisibilityState();a.Ha!=d&&(g.jH(a,b,"vis",[d]),a.Ha=d);mH(a,b);(d=aH(a.o))&&d!=a.oa&&(g.jH(a,b,"conn",[d]),a.oa=d);nH(a,b,c)};
nH=function(a,b,c){if(!isNaN(c.u)){var d=c.u;c.A<d&&(d=c.A);g.jH(a,b,"bh",[d.toFixed(3)])}};
pH=function(a){var b=0,c;for(c in a.u)b+=c.length+(0,g.zi)(a.u[c],function(d,e){return d+e.length},0);
96E3<b&&(new g.H(a.nk,0,a)).start()};
qH=function(a,b,c,d){var e=a.o.u();c=[c,e.toFixed(3)];d&&c.push(d);g.jH(a,b,"error",c);a.I=!0};
rH=function(a){!a.o.fa("html5_qoe_user_intent_match_health")||0<=a.B||(a.o.o.Ma||3!=a.o.getVisibilityState()?a.B=g.ZG(a.o):a.ga=!0)};
Oja=function(a,b){if(g.V(b,128))return"ER";if(g.V(b,512))return"SU";if(g.V(b,16)||g.V(b,32))return"S";var c=Nja[VC(b)];g.cz(a.o.o)&&"B"==c&&3==a.o.getVisibilityState()&&(c="SU");"B"==c&&g.V(b,4)&&(c="PB");return c};
sH=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
lH=function(a,b,c,d){var e=a.u.ctmp||[],f=-1!=a.Ma.indexOf(b);f||a.Ma.push(b);if(!d||!f){!a.o.fa("html5_censor_ctmp_killswitch")&&/[^a-zA-Z0-9;.!_-]/.test(c)&&(c=c.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));if(!d){var k=1E3*g.ZG(a.o);c="t."+k.toFixed()+";"+c}Pja(b,c);e.push(b+":"+c);a.u.ctmp=e;pH(a);return k}};
tH=function(a){this.u=a;this.P=!1;this.o=0;this.C=-1;this.R=this.u.Xc().volume;this.L=this.u.Xc().muted;this.F=NaN;this.w=0;this.A=[];this.B=bH(this.u);this.G=this.I=0};
uH=function(a){a.B.startTime=a.w;a.B.endTime=a.o;a.A.length&&g.Ya(a.A).isEmpty()?a.A[a.A.length-1]=a.B:a.A.length&&a.B.isEmpty()||a.A.push(a.B);a.I+=a.o-a.w;a.B=bH(a.u);a.w=a.o};
vH=function(a){return a.I+a.u.u()-a.w};
wH=function(a){a.A.length&&a.o==a.w||uH(a);var b=a.A;a.A=[];return b};
xH=function(a,b,c){c-=a.F;return b==a.o&&.5<c};
yH=function(a,b,c,d){var e={},f={};xq(a)&&yq()&&(b&&(f["X-Goog-Visitor-Id"]=b),c&&(f.Authorization="Bearer "+c),b||c)&&(e.withCredentials=!0);0<Object.keys(f).length&&(e.headers=f);d&&(e.Fc=d);return 0<Object.keys(e).length?e:null};
zH=function(a,b,c,d){yq()&&c.token&&(a=g.Bd(a,{ctt:c.token,cttype:c.nC,mdx_environment:c.mdxEnvironment}));b?(c=g.tq(a),Object.keys(c).includes("cpn"),g.Lq(a,b)):g.jr(a,d)};
AH=function(a,b,c,d){this.ga=b;this.segments=[];this.experimentIds=[];this.adQueryId=null;this.sh=this.Z=this.isFinal=this.Ca=this.U=this.autoplay=this.autonav=!1;this.ua="yt";this.u=this.A=null;this.ba=!1;this.w="watchtime"==c;this.F="playback"==c;this.aa="delayplay"==c;this.V="atr"==c;this.Ha="engage"==c;this.G=!1;this.I=this.V?"/api/stats/"+c:"//"+b.Mk+"/api/stats/"+c;d&&(this.Z=d.fs,d.rtn&&(this.u=d.rtn),this.w?(this.playerState=d.state,0<d.rti&&(this.A=d.rti)):(this.Ia=d.mos,this.Pa=d.volume,
d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview&&(this.za=d.inview),d.size&&(this.ya=d.size));this.deviceParams=g.Sb(b.deviceParams);this.Aa=b.Pa;this.experimentIds=b.experiments.experimentIds;this.ma=b.Ic;this.ua=b.V;this.region=b.region;this.userAge=b.userAge;this.oa=b.pe;this.Ua=iq();this.G=b.sendVisitorIdHeader;this.accessToken=a.Qd();this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=RB(a);this.autonav=a.Kj||this.autonav;this.contentVideoId=a.ki();this.clientPlaybackNonce=
a.clientPlaybackNonce;this.U=a.lc;a.Sh&&(this.B=a.Sh,this.R=a.Th);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.bh=a.bh;this.Me=a.Me;a.Ba&&(this.videoFormat=jt(a.Ba),a.Ub&&jt(a.Ub)!=this.videoFormat&&(this.L=jt(a.Ub)));a.ia&&Rx(a.ia)&&(this.offlineDownloadUserChoice="1");this.eventLabel=PB(a);this.sh=a.sh;this.Gj=a.Gj;if(b=EB(a))this.Ma=b;this.Ml=a.Ml;this.Ee=a.Ee;this.eventId=a.eventId;this.playlistId=a.pC||a.playlistId;this.zp=a.zp;this.Kf=a.Kf;this.Lf=a.Lf;this.Cm=a.Cm;this.subscribed=
a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.Xt=a.Xt;this.referrer=a.referrer;this.sm=a.IB||a.sm;this.xk=a.xk;this.Xp=a.Xp;this.userGenderAge=a.userGenderAge};
BH=function(a,b){if(a.ga.fa("web_player_logging_net_killswitch")){var c=a.accessToken&&yq(),d=a.G&&!!a.visitorData;if(!c&&!d)return null;var e={};c&&(e.Authorization="Bearer "+a.accessToken);d&&(e["X-Goog-Visitor-Id"]=a.visitorData);return{headers:e,withCredentials:!0,Fc:b}}return yH(a.I,a.G?a.visitorData:void 0,a.accessToken,b)};
Qja=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.Bd(a,b);c?g.Lq(a,c):g.jr(a)};
DH=function(a){var b={ns:a.ua,el:a.eventLabel,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.o(a.bh),ei:a.eventId,fmt:a.videoFormat,fs:a.Z?"1":"0",rt:a.o(a.Sa),of:a.Xt,adformat:a.adFormat,content_v:a.contentVideoId,euri:a.Aa,lact:a.Ua,live:a.Ma,cl:"311052436",mos:a.Ia,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.Pa};a.adQueryId&&(b.aqi=a.adQueryId);a.subscribed&&(b.subscribed="1");g.Ua(b,a.deviceParams);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay="1");
a.U&&(b.dni="1");a.isFinal&&(b["final"]="1");a.sh&&(b.splay="1");a.Me&&(b.delay=a.Me);a.ma&&(b.hl=a.ma);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.oa&&(b.uga=a.oa+a.userAge);void 0!==a.da&&(b.len=a.o(a.da));!a.w&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.u&&(b.rtn=a.o(a.u));a.sm&&(b.feature=a.sm);a.playlistId&&(b.list=a.playlistId);a.Kf&&(b.ctrl=a.Kf);a.Lf&&(b.ytr=a.Lf);a.Cm&&(b.ssrt="1");a.L&&(b.afmt=a.L);a.offlineDownloadUserChoice&&
(b.ODUC=a.offlineDownloadUserChoice);a.ha&&(b.lio=a.o(a.ha));a.w?(b.idpj=a.Gj,b.ldpj=a.Ml,null!=a.A&&(b.rti=a.o(a.A))):void 0!==a.adType&&(b.at=a.adType);a.ya&&(a.F||a.aa)&&(b.size=a.ya);null!=a.za&&(a.F||a.aa)&&(b.inview=a.o(a.za));a.w&&(b.volume=CH(a,(0,g.Fc)(a.segments,function(d){return d.volume})),b.muted=CH(a,(0,g.Fc)(a.segments,function(d){return d.muted?1:0})),b.st=CH(a,(0,g.Fc)(a.segments,function(d){return d.startTime})),b.et=CH(a,(0,g.Fc)(a.segments,function(d){return d.endTime})),pj(a.segments,
function(d){return 1!==d.playbackRate})&&(b.rate=CH(a,(0,g.Fc)(a.segments,function(d){return d.playbackRate}))));
pj(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=CH(a,(0,g.Fc)(a.segments,function(d){return d.visibilityState})));
pj(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=CH(a,(0,g.Fc)(a.segments,function(d){return d.connectionType})));
pj(a.segments,function(d){return 0!==d.Xg})&&(b.blo=CH(a,(0,g.Fc)(a.segments,function(d){return d.Xg})));
pj(a.segments,function(d){return"-"!==d.Xq})&&(b.cc=(0,g.Fc)(a.segments,function(d){return d.Xq}).join(","));
pj(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=(0,g.Fc)(a.segments,function(d){return d.clipId}).join(","));
if(pj(a.segments,function(d){return!!d.Rq})){var c="au";
a.F&&(c="au_d");b[c]=(0,g.Fc)(a.segments,function(d){return d.Rq}).join(",")}yq()&&a.B&&(b.ctt=a.B,b.cttype=a.R,b.mdx_environment=a.mdxEnvironment);
a.Ha&&(b.etype=void 0!==a.C?a.C:0);a.xk&&(b.uoo=a.xk);a.Xp&&(b.upt=a.Xp);return b};
CH=function(a,b){return(0,g.Fc)(b,a.o).join(",")};
g.EH=function(a,b,c,d,e,f){if(38===b.Ee&&"books"===a.playerStyle)return f=b.videoId.indexOf(":"),g.Bd("//play.google.com/books/volumes/"+b.videoId.slice(0,f)+"/content/media",{aid:b.videoId.slice(f+1),sig:b.JJ});if(30===b.Ee&&"docs"===a.playerStyle)return g.Bd("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.Nc,authkey:b.authKey,eurl:a.Pa});if(33===b.Ee&&"google-live"===a.playerStyle)return g.Bd("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});g.P(a.experiments,
"log_invalid_namespame_killswitch")||"yt"===a.V||g.$q(Error("getVideoInfoUrl for invalid namespace: "+a.V));e=18394;a.fa("ipp_signature_cipher_killswitch")||(e=g.L("STS",void 0)?g.L("STS",void 0):e);e={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Pa,ps:a.playerStyle,el:PB(b),hl:a.Ic,list:b.playlistId,agcid:b.SD,aqi:b.adQueryId,sts:e,lact:iq()};g.Ua(e,a.deviceParams);a.rd&&(e.ecver=a.rd);a.Ia&&(e.forced_experiments=a.Ia);b.ae?(e.vvt=b.ae,b.mdxEnvironment&&(e.mdx_environment=b.mdxEnvironment)):
b.Qd()&&(e.access_token=b.Qd());b.adFormat&&(e.adformat=b.adFormat);0<=b.slotPosition&&(e.slot_pos=b.slotPosition);b.breakType&&(e.break_type=b.breakType);null!==b.Qv&&(e.ad_id=b.Qv);null!==b.Sv&&(e.ad_sys=b.Sv);null!==b.Lw&&(e.encoded_ad_playback_context=b.Lw);b.Iu&&(e.tpra="1");a.captionsLanguagePreference&&(e.cc_lang_pref=a.captionsLanguagePreference);a.Yg&&2!==a.Yg&&(e.cc_load_policy=a.Yg);a.mute&&(e.mute=a.mute);b.annotationsLoadPolicy&&2!==a.annotationsLoadPolicy&&(e.iv_load_policy=b.annotationsLoadPolicy);
b.Gn&&(e.endscreen_ad_tracking=b.Gn);var k=a.I.get(b.videoId);k&&k.Lm&&(e.ic_track=k.Lm);b.zf&&(e.itct=b.zf);RB(b)&&(e.autoplay="1");b.mutedAutoplay&&(e.mutedautoplay=b.mutedAutoplay);b.Kj&&(e.autonav="1");b.zs&&(e.noiba="1");b.isMdxPlayback&&(e.mdx="1",e.ytr=b.Lf);b.mdxControlMode&&(e.mdx_control_mode=b.mdxControlMode);b.An&&(e.ytrcc=b.An);b.Fs&&(e.utpsa="1");b.ay&&(e.is_fling="1");b.ys&&(e.mute="1");b.vnd&&(e.vnd=b.vnd);b.nl&&(k=3===b.nl.split("|").length,e.force_ad_params=k?b.nl:"||"+b.nl);b.Ui&&
(e.preload=b.Ui);c.width&&(e.width=c.width);c.height&&(e.height=c.height);b.sh&&(e.splay="1");b.ypcPreview&&(e.ypc_preview="1");b.ki()&&(e.content_v=b.ki());b.vg&&(e.livemonitor=1);a.Nc&&(e.authuser=a.Nc);a.pageId&&(e.pageid=a.pageId);a.qb&&(e.ei=a.qb);a.u&&(e.iframe="1");b.contentCheckOk&&(e.cco="1");b.racyCheckOk&&(e.rco="1");a.w&&b.Ns&&(e.live_start_walltime=b.Ns);a.w&&b.Ll&&(e.live_manifest_duration=b.Ll);a.w&&b.playerParams&&(e.player_params=b.playerParams);a.w&&b.cycToken&&(e.cyc=b.cycToken);
a.w&&b.mC&&(e.tkn=b.mC);0!==d&&(e.vis=d);a.enableSafetyMode&&(e.enable_safety_mode="1");b.Ef&&(e.kpt=b.Ef);b.xo&&(e.kids_age_up_mode=b.xo);b.kidsAppInfo&&(e.kids_app_info=b.kidsAppInfo);b.Mm&&(e.upg_content_filter_mode="1");a.widgetReferrer&&(e.widget_referrer=a.widgetReferrer.substring(0,128));(c=a.Zm)&&(e.embedding_app=c);(c=g.yB(b))&&(e.uloc=c);b.El&&(e.internalipoverride=b.El);a.embedConfig&&(e.embed_config=a.embedConfig);a.Rg&&(e.co_rel="1");0<a.Hc.length&&(e.ancestor_origins=Array.from(a.Hc).join(","));
void 0!==a.homeGroupInfo&&(e.home_group_info=a.homeGroupInfo);void 0!==a.livingRoomAppMode&&(e.living_room_app_mode=a.livingRoomAppMode);a.enablePrivacyFilter&&(e.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(e.is_living_room_deeplink="1");b.xn&&b.yn&&(e.clip=b.xn,e.clipt=b.yn);b.tr&&(e.disable_watch_next="1");for(var l in e)!Rja.has(l)&&e[l]&&512<String(e[l]).length&&(g.$q(Error("GVI param too long: "+l)),e[l]="");b=a.G;g.dz(a)&&(b=Tw(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.G);a=g.Bd(b+
"get_video_info",e);f&&(a=Iq(a,f));return a};
g.FH=function(a,b){return a.G+"timedtext_video?ref=player&v="+b.videoId};
g.GH=function(a,b){a.feature=b;return a};
HH=function(a){g.A.call(this);this.o=a;this.u=new tH(a);this.B="paused";this.C=NaN;this.I=[10,10,10,40];this.P=this.G=0;this.V=this.U=this.Z=this.aa=this.R=this.L=this.w=!1;this.A=NaN};
IH=function(a,b,c){var d=g.ZG(a.o);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.I[a.G];a.G+1<a.I.length&&a.G++;c+=e;d=1E3*(c-d);a.C=g.Oo((0,g.x)(a.ba,a,c,b),d);return c};
JH=function(a,b){var c=a.o,d=c.Xc();g.Ua(d,c.videoData.Xc());g.Ua(d,{state:a.B});c=new AH(a.o.videoData,a.o.o,b,d);c.bh=a.o.u();a.o.videoData.sa||(c.da=a.o.B());a.o.videoData.ia&&(d=fy(a.o.videoData.ia,c.bh))&&(c.ha=d-c.bh);c.Sa=g.ZG(a.o);c.segments=[bH(a.o)];return c};
KH=function(a,b){var c=JH(a,"watchtime");c.segments=b;c.bh=a.u.o;return c};
LH=function(a){a.u.update();return KH(a,wH(a.u))};
OH=function(a){a.o.videoData.remarketingUrl&&!a.aa&&(MH(a,a.o.videoData.remarketingUrl),a.aa=!0);a.o.videoData.youtubeRemarketingUrl&&!a.Z&&(MH(a,a.o.videoData.youtubeRemarketingUrl),a.Z=!0);a.o.videoData.googleRemarketingUrl&&!a.U&&(MH(a,a.o.videoData.googleRemarketingUrl),a.U=!0);a.o.videoData.ppvRemarketingUrl&&!a.V&&(MH(a,a.o.videoData.ppvRemarketingUrl),a.V=!0);NH(a)};
PH=function(a){a.A=Po((0,g.x)(a.F,a,"heartbeat"),3E4)};
QH=function(a,b,c){a.L||(c||(c=JH(a,"atr")),c.P=b,c.send(),a.L=!0)};
NH=function(a){a.o.videoData.Pc.eventLabel=PB(a.o.videoData);a.o.videoData.Pc.playerStyle=a.o.o.playerStyle;a.o.videoData.pm&&(a.o.videoData.Pc.feature="pyv");a.o.videoData.Pc.vid=a.o.videoData.videoId;var b=a.o.videoData.Pc;a=a.o.videoData;a=a.isAd()||!!a.pm;b.isAd=a};
Sja=function(a){var b=JH(a,"engage");b.C=1;a=YG(a.o);return g.Ta(Qja,b.I,DH(b),BH(b),a)};
MH=function(a,b){if(a.o.o.fa("web_player_logging_net_killswitch"))a.o.o.sendVisitorIdHeader&&a.o.videoData.visitorData&&xq(b)?g.Lq(b,{Fc:void 0,headers:{"X-Goog-Visitor-Id":a.o.videoData.visitorData}}):g.jr(b,void 0);else{var c=a.o.videoData.Qd();c=yH(b,a.o.o.sendVisitorIdHeader?a.o.videoData.visitorData:void 0,c,void 0);zH(b,c,{token:a.o.videoData.Sh,nC:a.o.videoData.Th,mdxEnvironment:a.o.videoData.mdxEnvironment},void 0)}};
RH=function(a){g.A.call(this);var b=this;this.A=a;this.w=this.o=this.u=null;this.A.videoData.isValid()&&!this.A.videoData.vk&&(this.u=new HH(a),g.C(this,this.u),this.o=new kH(a),g.C(this,this.o));Mja(a)&&(this.w=new fH(a,function(c){b.o&&lH(b.o,"h5h",c,void 0)}),g.C(this,this.w))};
g.SH=function(a){a.u&&uH(a.u.u)};
Tja=function(a,b){a.u&&QH(a.u,b)};
Uja=function(a){if(!a.u)return null;var b=JH(a.u,"atr");return function(c){a.u&&QH(a.u,c,b)}};
TH=function(a){return a.u?Sja(a.u):function(){}};
UH=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.u=this.o=a-1};
VH=function(a){return a.data[a.o]||0};
Vja=function(a){this.A=new UH(50);this.o=null;this.w=this.u=0;this.B=a};
XH=function(a,b,c){g.O.call(this);var d=new Wja;"ULTRALOW"==a.latencyClass&&(d.A=!1);a.vg?d.u=3:g.JB(a)&&(d.u=2);g.P(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!=a.latencyClass||(d.C=!0);var e=wB(a);d.B=2==e||-1==e;d.B&&(d.P++,21530001==uB(a)&&(d.F=g.Q(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(il("trident/")||il("edge/"))e=g.Q(b,"html5_platform_minimum_readahead_seconds")||3,d.w=Math.max(d.w,e);g.Q(b,"html5_minimum_readahead_seconds")&&(d.w=g.Q(b,"html5_minimum_readahead_seconds"));
g.Q(b,"html5_maximum_readahead_seconds")&&(d.G=g.Q(b,"html5_maximum_readahead_seconds"));g.P(b,"html5_force_adaptive_readahead")&&(d.A=!0);g.Q(b,"html5_allowable_liveness_drift_chunks")&&(d.o=g.Q(b,"html5_allowable_liveness_drift_chunks"));g.Q(b,"html5_readahead_ratelimit")&&(d.I=g.Q(b,"html5_readahead_ratelimit"));switch(uB(a)){case 21530001:d.o=(d.o+1)/5,"LOW"==a.latencyClass&&(d.o*=2),d.L=g.P(b,"html5_live_smoothly_extend_max_seekable_time")}this.o=d;this.T=a;this.I=c;this.w=[];this.B=0;this.A=
!0;this.C=1!=this.o.u;this.F=!1;this.G=0;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.vg&&b--;a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||b++;switch(uB(a)){case 21530001:b=1;break;case 2153E4:b=2}this.o.B&&b++;this.u=WH(this,b)};
ZH=function(a,b){var c=a.u;(void 0===b?0:b)&&a.o.L&&3==wB(a.T)&&--c;return YH(a)*c};
aI=function(a,b){var c=$H(a);var d=a.o.o;a.F||(d=Math.max(d-1,0));d*=YH(a);return b>=c-d};
$H=function(a){return Math.max(a.I()-ZH(a,!0),a.T.Ab())};
bI=function(a,b,c){b=aI(a,b);c||b?b&&(a.A=!0):a.A=!1;a.C=2==a.o.u||3==a.o.u&&a.A};
cI=function(a,b){var c=aI(a,b);a.F!=c&&a.S("livestatusshift",c);a.F=c};
YH=function(a){return a.T.ia?ey(a.T.ia)||5:5};
WH=function(a,b){b=Math.max(Math.max(a.o.P,Math.ceil(a.o.w/YH(a))),b);return Math.min(Math.min(8,Math.floor(a.o.G/YH(a))),b)};
Wja=function(){this.P=1;this.w=0;this.G=Infinity;this.I=0;this.A=!0;this.o=2;this.u=1;this.B=!1;this.F=NaN;this.L=this.C=!1};
dI=function(){var a=Ep();return!(!a||"visible"===a)};
fI=function(a){var b=eI();b&&document.addEventListener(b,a,!1)};
gI=function(a){var b=eI();b&&document.removeEventListener(b,a,!1)};
eI=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Dp+"VisibilityState"])return"";a=Dp+"visibilitychange"}return a};
hI=function(){g.O.call(this);this.w=0;this.A=this.B=this.u=this.o=this.C=!1;this.F=(0,g.x)(this.Li,this);fI(this.F);this.G=this.getVisibilityState(this.u,this.isFullscreen(),this.o,this.isInline(),this.B,this.A)};
Xja=function(a,b){a.u!=b&&(a.u=b,a.Li())};
iI=function(a,b){a.B!=b&&(a.B=b,a.Li())};
lI=function(a,b,c){g.A.call(this);this.B=a;this.G=b;this.U=c;this.A=new g.LC;this.u=this.w=null;this.I=this.P=this.o=0;this.F=new g.H(this.V,1001,this);g.C(this,this.F);this.ha=new jI({delayMs:g.Q(this.B.experiments,"html5_seek_timeout_delay_ms")});this.R=new jI({delayMs:g.Q(this.B.experiments,"html5_long_rebuffer_threshold_ms")});this.da=kI(this,"html5_seek_set_cmt");this.Z=kI(this,"html5_seek_jiggle_cmt");this.ba=kI(this,"html5_seek_new_elem");this.L=kI(this,"html5_decoder_freeze_timeout");this.aa=
kI(this,"html5_reload_element_long_rebuffer");this.C={}};
kI=function(a,b){var c=g.Q(a.B.experiments,b+"_delay_ms"),d=g.P(a.B.experiments,b+"_cfl");return new jI({delayMs:c,yw:d})};
nI=function(a,b,c,d,e,f,k){Yja(b,c)?(d=mI(a,b),d.wn=k,d.wdup=a.C[e]?"1":"0",a.G("qoeerror",e,d),a.C[e]=!0,b.F||f()):(b.B&&b.u&&!b.C?(f=(0,g.N)(),d?b.o||(b.o=f):b.o=0,c=!d&&f-b.u>b.B,f=b.o&&f-b.o>b.G||c?b.C=!0:!1):f=!1,f&&(f=mI(a,b),f.wn=k,f.we=e,f.wsuc=""+ +d,k=Ws(f),a.G("ctmp","workaroundReport",k),d&&(b.reset(),a.C[e]=!1)))};
mI=function(a,b){var c=b.Xa();a.o&&(c.stt=a.o.toFixed(3));a.u&&Object.assign(c,a.u.Xa());a.w&&Object.assign(c,a.w.Xa());return c};
jI=function(a){a=void 0===a?{}:a;var b=void 0===a.fO?1E3:a.fO,c=void 0===a.gO?3E4:a.gO,d=void 0===a.yw?!1:a.yw;this.A=void 0===a.delayMs?0:a.delayMs;this.G=b;this.B=c;this.F=d;this.reset()};
Yja=function(a,b){if(!a.A||a.u)return!1;if(!b)return a.reset(),!1;var c=(0,g.N)();if(!a.w)a.w=c;else if(c-a.w>a.A)return a.u=c,!0;return!1};
sI=function(a,b,c){g.O.call(this);var d=this;this.U=b;this.T=a;this.V=new Zja(b);this.Aa=c;this.P=new lI(this.U,(0,g.x)(this.S,this),this.Aa);a={};this.Z=(a.seekplayerrequired=this.qO,a.videoformatchange=this.CI,a);oI(this,"html5_unrewrite_timestamps")?this.Z.timestamp=this.yO:this.Z.timestamp=this.xO;this.ua=null;this.ma=new g.Nr;g.C(this,this.ma);this.I=this.u=this.B=this.o=null;this.w=NaN;this.F=0;this.C=null;this.ba=NaN;this.G=this.L=null;this.ga=this.R=!1;this.aa=new g.H(function(){return pI(d,
!1)},this.V.o);
g.C(this,this.aa);this.da=new g.H(function(){d.R=!0;qI(d)});
g.C(this,this.da);this.Ca=new g.H(function(){return rI(d)});
g.C(this,this.Ca);this.oa=this.A=0;this.ha=!0;this.ya=0;this.za=NaN};
$ja=function(a,b){a.ua=b;a.T.sa&&(a.I=new Vja(function(){a:{if(a.ua&&a.ua.wa.o){if(tB(a.T)&&a.B){var c=a.B.oa.o()||0;break a}if(a.T.ia){c=a.T.ia.G;break a}}c=0}return c}),a.u=new XH(a.T,a.U.experiments,function(){return a.tc(!0)}));
a.T.startSeconds&&isFinite(a.T.startSeconds)&&1E9<a.T.startSeconds||(a.F=a.F||a.T.startSeconds||0)};
uI=function(a,b){g.Pr(a.ma);(a.o=b)?(aka(a),rI(a)):tI(a);var c=a.P;(c.w=b)&&g.An(c.F)};
wI=function(a,b){a.B&&Rr(a.B,a.Z,a);(a.B=b)?(Qr(b,a.Z,a),vI(a,!0)):tI(a);a.P.u=b};
xI=function(a){return a.getCurrentTime()-a.Bb()};
yI=function(a){return!!a.u&&a.u.C};
pI=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!aI(c,d)&&c.C?(c.o.C&&(c.o.o=Math.max(c.o.o+1,10)),c=Infinity):c=d<c.T.Ab()?Math.min(c.T.Ab()+10,$H(c)):NaN;if(!isNaN(c)){if(oI(a,"html5_in_buffer_ptl")&&a.B&&b){d=a.aa.isActive();var e=$H(a.u);if((e=mja(a.B,e-a.Bb()))&&!d){a.V.o&&a.aa.start();a.S("ctmp","inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(e+a.Bb()));a.seekTo(e+a.Bb());return}}oI(a,"html5_peg_to_live_logging")&&a.S("ctmp","ptl","cmt."+a.getCurrentTime()+";seekTo"+(c+a.Bb()));
a.seekTo(c)}}};
vI=function(a,b){if(a.u&&a.B){var c=!1;if(b)c=!0;else if(a.T.isLowLatencyLiveStream||"LOW"==a.T.latencyClass||"ULTRALOW"==a.T.latencyClass)if(c=a.u,c.w.length){var d=c.u;b:{if(c.w.length){if(1<Math.min.apply(null,c.w)){var e=WH(c,c.u-1);break b}if(c.o.A){e=WH(c,c.u+1);break b}}e=c.u}c.u=e;if(d=d!=c.u)c.w=[],c.B=0;c=d}else c=!1;c&&a.S("livereadaheadchanged",ZH(a.u));c=a.B;d=a.u.u;e=a.u;e=(e.u-1+e.o.o)*YH(e);var f=a.u.o.F;c.za=Math.max(d-1,0);c.G&&(c.G.R=e);c.Ua=f}};
zI=function(a){return a.T.sa&&!!a.T.wa&&!a.T.wa.o};
qI=function(a){bka(a).then(void 0,function(){tI(a)});
AI(a).then(function(b){a.G&&(a.G.resolve(b),a.S("seekend"));tI(a)},function(){tI(a)});
a.S("seekstart")};
bka=function(a){if(!a.L)if(a.B)if(isFinite(a.w))a.L=a.B.seek(a.w-a.A);else{var b=a.B;GF(b);b.G&&jF(b.G,b.u.o);g.An(b.ba);b=b.I;var c=Math.max(b.u.w.B||0,b.o.w.B||0);yE(b.u);yE(b.o);var d=b.B,e;for(e in d.o)av(d.o[e].index,Infinity);b.B.u&&(b.F=!0);b.S("setcurrenttime",c);b.w=!0;b.G=new $C;a.L=b.G;a.w=a.B.getCurrentTime()+a.A}else a.L=Gf(a.w-a.A);return a.L};
AI=function(a){var b=a.C;b||(a.C=new $C,b=a.C,rI(a));return b};
BI=function(a,b,c){return isNaN(b)?NaN:g.Pd(b,a.Ab(),a.tc(c))};
rI=function(a){if(a.C)if(!oI(a,"html5_nondash_live_seek_killswitch")&&zI(a)&&a.o&&0<a.o.je()&&0<AC(a.o)&&(a.w=BI(a,a.w,!1)),!a.o||!CI(a))a.Ca.start(750);else if(!isNaN(a.w)&&isFinite(a.w)&&a.ba!=a.w-a.A){var b=a.o.getCurrentTime()-a.w;if(Math.abs(b)<=a.ya)a.C&&a.C.resolve(a.o.getCurrentTime());else if(!a.T.sa&&a.w>=a.tc()-.1)a.w=a.tc(),a.C.resolve(a.tc()),a.S("ended");else try{var c=a.w-a.A;a.o.seekTo(c);a.P.o=c;a.ba=c;a.F=a.w}catch(d){}}};
CI=function(a){if(!a.o||0==a.o.je()||0<a.o.Xe())return!1;var b=0<a.o.getCurrentTime();if(0<=a.w){var c=a.o.tl();if(c.length||!b)return St(c,a.w-a.A)}return b};
tI=function(a){a.w=NaN;a.ba=NaN;a.C=null;a.L=null;a.G=null;a.R=!1;a.ga=!1;a.ya=0;a.aa.stop();a.da.stop()};
aka=function(a){if(a.o){for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.ma.K(a.o,c.value,function(d){switch(d.type){case "seeking":d=a.o.getCurrentTime()+a.A;if(!a.C||a.ga&&d!=a.w){a.C=new $C;a.ba=d;var e=a.o.getCurrentTime();a.P.o=e;a.seekTo(d);a.ga=!0}break;case "seeked":a.C&&a.C.resolve(a.o.getCurrentTime());break;case "loadedmetadata":if(a.ha){d="ss.";e=0;if((KB(a.T)||a.T.liveUtcStartSeconds)&&(a.T.liveUtcStartSeconds||a.T.startSeconds&&isFinite(a.T.startSeconds)&&
1E9<a.T.startSeconds)&&a.T.ia){e=a.T.liveUtcStartSeconds||a.T.qh;d="utc.";var f=a.tc();var k=a.tc();k=fy(a.T.ia,k-a.A);e=f-k+e}else a.T.ia&&a.T.ia.u&&a.T.qh?(d="mss.",e=a.T.qh+a.Bb()):oI(a,"html5_unrewrite_timestamps")&&a.T.Op&&(d="stss.",e=a.T.Op);e?(a.seekTo(e),a.S("ctmp","startSeconds",d+e),a.ha=!1):a.T.qh&&a.S("ctmp","startSeconds",d+(a.T.qh+a.Bb()));d=!!e}else d=!1;oI(a,"html5_nondash_live_seek_killswitch")&&!d&&zI(a)&&(a.w=isFinite(a.w)?g.Pd(a.w,a.Ab(),a.tc()):a.tc());case "progress":rI(a)}});
a.G||a.F||a.V.w||!a.o.Dp()||a.seekTo(.01)}};
cka=function(a){if(!a.o)return 0;if(KB(a.T)){var b=EC(a.o)+a.A-a.Ab();a=a.tc()-a.Ab();return Math.max(0,Math.min(1,b/a))}return FC(a.o)};
oI=function(a,b){return a.U&&g.P(a.U.experiments,b)};
Zja=function(a){this.o=g.Q(a.experiments,"html5_in_buffer_ptl_timeout_ms");this.u=g.P(a.experiments,"html5_live_smoothly_extend_max_seekable_time");this.A=a.fa("html5_seek_over_discontinuities");this.w=a.fa("html5_requires_seek_for_playback_at_zero_killswitch")};
DI=function(){this.o=this.started=!1};
EI=function(){g.A.call(this);this.w={};this.o={};this.u=new g.H(this.A,250,this);g.C(this,this.u)};
GI=function(a,b,c,d){a.w[b]=c;a.o[b]=new FI(void 0===d?!1:d)};
HI=function(a,b){if(a.o[b]){var c=a.o[b].buffer;for(var d=[];c.u!==c.o;)c.u=(c.u+1)%c.data.length,d.push(c.data[c.u]);c=d}else c=[];return c};
II=function(a,b){return a.o[b]?VH(a.o[b].buffer):0};
FI=function(a){this.u=a;this.o=NaN;this.buffer=new UH(100)};
dka=function(a,b,c){var d,e,f,k,l,m;return g.Da(function(n){if(1==n.o)return d=window.crypto.subtle,e={name:"HMAC",hash:{name:"SHA-256"}},f=["sign"],g.ua(n,d.importKey("raw",a,e,!1,f),2);if(3!=n.o)return k=n.u,l=new Uint8Array(b.length+c.length),l.set(b),l.set(c,b.length),g.ua(n,d.sign("HMAC",k,l),3);m=n.u;return n["return"](new Uint8Array(m))})};
JI=function(a,b,c){var d,e,f,k,l,m;return g.Da(function(n){if(1==n.o)return d=window.crypto.subtle,e={name:"AES-CTR"},f=["encrypt"],g.ua(n,d.importKey("raw",a,e,!1,f),2);if(3!=n.o)return k=n.u,l={name:"AES-CTR",counter:c,length:128},g.ua(n,d.encrypt(l,k,b),3);m=n.u;return n["return"](new Uint8Array(m))})};
KI=function(a){this.o=a;a=new Uint8Array(16);window.crypto.getRandomValues(a);this.u=a};
eka=function(a,b){return g.Da(function(c){return c["return"](dka(a.o.u,b,a.u))})};
LI=function(){this.o=0;this.w=void 0;this.u=new Uint8Array(4096);this.view=new DataView(this.u.buffer)};
MI=function(a,b){var c=a.o+b;if(!(a.u.length>=c)){for(var d=2*a.u.length;d<c;)d*=2;c=new Uint8Array(d);c.set(a.u);a.u=c;a.view=new DataView(a.u.buffer)}};
NI=function(a,b){if(268435455<b){MI(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.o,c&127|128),c>>=7,a.o+=1;b=Math.floor(b/268435456)}for(MI(a,4);127<b;)a.view.setUint8(a.o,b&127|128),b>>=7,a.o+=1;a.view.setUint8(a.o,b);a.o+=1};
OI=function(a,b,c){NI(a,b<<3|2);b=c.length;NI(a,b);MI(a,b);a.u.set(c,a.o);a.o+=b};
PI=function(a,b,c){a.w||(a.w=new TextEncoder);c=a.w.encode(c);OI(a,b,c)};
QI=function(a){return new Uint8Array(a.u.buffer,0,a.o)};
RI=function(a){var b=a.gl,c=a.deviceId,d=a.userAgent,e=a.clientName,f=a.clientVersion;this.u=a.hl;this.C=b;this.B=c;this.F=d;this.w=e;this.A=f};
SI=function(a){var b=a.encryptedClientKey,c=a.iv,d=a.hmac;this.w=a.encryptedOnesiePlayerRequest;this.u=b;this.B=c;this.A=d};
TI=function(){};
UI=function(a){this.u=a.client};
VI=function(a){this.u=a;this.A=this.o=0;this.w=-1};
WI=function(a){var b=xw(a.u,a.o);++a.o;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=xw(a.u,a.o),++a.o,d*=128,c+=(b&127)*d;return c};
XI=function(a,b){for(a.A=b;a.o+1<=a.u.totalLength;){var c=a.w;0>c&&(c=WI(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.w=c;break}switch(e){case 0:WI(a);break;case 1:a.o+=8;break;case 2:c=WI(a);a.o+=c;break;case 5:a.o+=4}}return!1};
YI=function(a,b){var c=void 0===c?null:c;if(!XI(a,b))return c;c=WI(a);var d=vw(a.u,a.o,c);a.o+=c;return d};
fka=function(a){this.iv=YI(new VI(a),5)};
gka=function(a){a=new VI(a);var b=-1;b=void 0===b?0:b;this.o=XI(a,1)?WI(a):b;0===this.o&&(a=YI(a,4),this.u=new fka(new nw([a])))};
ZI=function(a){var b=a.videoId;this.u=a.TF;this.w=b};
$I=function(a){var b=a.httpHeaders,c=a.postBody;this.w=a.url;this.u=b;this.A=c};
hka=function(a){this.body=YI(new VI(a),4)};
aJ=function(a){this.u=a.vE};
bJ=function(a,b){if(b+1<=a.totalLength){var c=xw(a,b);c=128>c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)c=xw(a,b++);else if(2===c){c=xw(a,b++);var d=xw(a,b++);c=(c&63)+64*d}else if(3===c){c=xw(a,b++);d=xw(a,b++);var e=xw(a,b++);c=(c&31)+32*(d+256*e)}else if(4===c){c=xw(a,b++);d=xw(a,b++);e=xw(a,b++);var f=xw(a,b++);c=(c&15)+16*(d+256*(e+256*f))}else c=b+1,a.focus(c),rw(a,c,4)?c=tw(a).getUint32(c-a.w,!0):(d=xw(a,c+2)+256*xw(a,c+3),c=xw(a,c)+256*(xw(a,
c+1)+256*d)),b+=5;return[c,b]};
cJ=function(a){this.o=new nw;this.u=a};
dJ=function(a){var b=g.q(bJ(a.o,0));var c=b.next().value;var d=b.next().value;d=g.q(bJ(a.o,d));b=d.next().value;d=d.next().value;!(0>c||0>b)&&d+b<=a.o.totalLength&&(d=a.o.split(d).dj.split(b),b=d.ho,d=d.dj,a.u(c,b),a.o=d,dJ(a))};
ika=function(a){var b,c;a:{var d,e=a.M().Jc;if(e){var f=null===(c=g.Ls("yt-player-bandaid-host"))||void 0===c?void 0:c.TN;if(f&&e.baseUrl){c=new $w("https://"+f+e.baseUrl);if(e=null===(d=a.pp)||void 0===d?void 0:d.urlQueryOverride)for(d=gx(e),d=g.q(Object.entries(d)),e=d.next();!e.done;e=d.next())f=g.q(e.value),e=f.next().value,f=f.next().value,c.set(e,f);if(!c.get("id")){e=hy(a.videoId);d=[];if(e)for(e=g.q(e),f=e.next();!f.done;f=e.next())d.push(f.value.toString(16).padStart(2,"0"));d=d.join("");
if(!d){c=void 0;break a}c.set("id",d)}break a}}c=void 0}!c&&(null===(b=a.pp)||void 0===b?0:b.url)&&(c=new $w(a.pp.url));if(!c)return"";c.set("ack","1");c.set("cpn",a.clientPlaybackNonce);c.set("opr","1");c.set("pvi","135");c.set("pai","140");c.set("oad","0");c.set("ovd","0");c.set("oaad","0");c.set("oavd","0");return c.jc()};
eJ=function(a,b){var c=this;this.T=a;this.u=b;this.A=new KI(a.M().Jc.o);this.P=new cJ(function(d,e){switch(d){case 10:var f=new gka(e);switch(f.o){case 5:c.u.tick("orfb");break;case 0:c.G=f.u.iv}c.F=f.o;break;case 11:switch(c.F){case 0:jka(c,e)}c.F=null}});
this.w=new $C;this.C=!1;this.B=new g.H(this.I,3E4,this)};
fJ=function(a,b){a.w.reject(b);a.B.stop();a.u.tick("ore");a.o&&a.o.abort()};
gJ=function(a){for(;a.o.Se();){var b=a.o.Oo();a.P.feed(b)}};
jka=function(a,b){var c,d,e,f;g.Da(function(k){if(1==k.o)return a.u.tick("orpr"),a.C=!0,c=vw(b),g.ua(k,a.A.decrypt(c,a.G),2);d=k.u;e=new hka(new nw([d]));f=e.body;a.Da=(new TextDecoder).decode(f);a.w.resolve(a.Da);a.B.stop();k.o=0})};
lka=function(a){var b,c;return g.Da(function(d){if(1==d.o)return g.ua(d,kka(a),2);b=d.u;c={vE:b};return d["return"](new aJ(c))})};
kka=function(a){var b,c,d,e,f;return g.Da(function(k){if(1==k.o)return g.ua(k,mka(a),2);if(3!=k.o)return b=k.u,c=a.A.o.encryptedClientKey,d=a.A.u,g.ua(k,eka(a.A,b),3);e=k.u;f={encryptedOnesiePlayerRequest:b,encryptedClientKey:c,iv:d,hmac:e};return k["return"](new SI(f))})};
mka=function(a){var b,c,d;return g.Da(function(e){switch(e.o){case 1:var f=a.T.M().ug;f="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player?key="+f.innertubeApiKey;var k=[];k.push(new TI);var l=a.T.M().ug,m=l.Cl,n=l.Bl,p=g.Lc;switch(l.Hj){case "TVHTML5":var t=7;break;default:t=56}b=new $I({url:f,httpHeaders:k,postBody:new ZI({TF:new UI({client:new RI({hl:m,gl:n,deviceId:"Rory",userAgent:p,clientName:t,clientVersion:l.innertubeContextClientVersion})}),videoId:a.T.videoId})});
e.B=2;return g.ua(e,a.A.encrypt(b.o()),4);case 4:c=e.u;va(e,3);break;case 2:return wa(e),d=new Vs("onesie.request.encrypt",!1),e["return"](Promise.reject(d));case 3:return e["return"](c)}})};
rka=function(a,b,c,d){a.ea();a.pc=!0;return nka(a.M())?oka(a).then(function(){return pka(a,d)}).then(function(){qka(a)})["catch"](function(e){e=Xs(e);
if(e.o)return Promise.reject(e);c(e);return hJ(a,b,c)}):hJ(a,b,c)};
nka=function(a){return g.P(a.experiments,"html5_onesie")&&g.P(a.experiments,"html5_onesie_player_config")&&"yt"===a.V?!0:!1};
oka=function(a){a=a.M().Jc;if(!a||!a.o)return Promise.reject(new Vs("onesie.unavailable.hotconfig",!1,{key:"0"}));a={};window.fetch||(a.fetch="0");window.TextEncoder&&window.TextDecoder||(a.text="0");window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey||(a.crypto="0");window.Uint8Array||(a.uint8="0");return 0<Object.keys(a).length?(a.onesie="0",Promise.reject(new Vs("html5.missingapi",!1,a))):Promise.resolve()};
pka=function(a,b){return rh(this,function d(){var e,f,k,l,m;return Ba(d,function(n){if(1==n.o)return e=new eJ(a,b),g.ua(n,e.fetch(),2);f=n.u;k={player_response:f};a.pc=!1;a.Yd(k,!0);if(HB(a))return n["return"](Promise.resolve());l={};a.errorCode?(l.ec=a.errorCode,l.ed=a.errorDetail,l.es=a.eh||""):l.successButUnplayable="1";m=new Vs("onesie.response",!1,l);return n["return"](Promise.reject(m))})})};
hJ=function(a,b,c){return rh(this,function e(){var f,k,l,m,n,p,t,u,z;return Ba(e,function(B){switch(B.o){case 1:f=function(){return!0},k=function(D){D=Xs(D);
if(D.o)return Promise.reject(D);c(D);return!1},m=(l=a.isAd())?1:3,n=0;
case 2:if(!(n<m)){B.o=4;break}p=b;if(!(0<n)){B.o=5;break}return g.ua(B,Yf(5E3),6);case 6:t={playerretry:n},l||(t.recover="embedded"),p=wq(b,t);case 5:return g.ua(B,ska(a,p).then(f,k),7);case 7:if(u=B.u)return B["return"]();n++;B.o=2;break;case 4:z=l?"auth":"manifest.net.retryexhausted";if(!l&&1E-4>Math.random())try{g.ar(new Zq("b/152131571",btoa(b)))}catch(D){}return B["return"](Promise.reject(new Vs(z,!0,{backend:"gvi"})))}})})};
ska=function(a,b){return rh(this,function d(){var e,f,k,l,m,n,p,t,u,z,B,D;return Ba(d,function(E){if(1==E.o)return e=a.M(),f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},k={},e.sendVisitorIdHeader&&a.visitorData&&(k["X-Goog-Visitor-Id"]=a.visitorData),(l=g.Dt(e.experiments,"debug_dapper_trace_id"))&&(k["X-Google-DapperTraceInfo"]=l),(m=g.Dt(e.experiments,"debug_sherlog_username"))&&(k["X-Youtube-Sherlog-Username"]=m),0<Object.keys(k).length&&(f.headers=k),n=(0,g.N)(),p=function(F){if(!a.ea()){F=
F?F.status:-1;var I=400===F||429===F,ia=((0,g.N)()-n).toFixed();ia={backend:"gvi",rc:""+F,rt:ia};var pa="manifest.net.connect";429===F?pa="auth":200<F&&(pa="manifest.net.badstatus");return Promise.reject(new Vs(pa,I,ia))}},t=function(F){return p(F.Ei)},g.ua(E,g.Nx(g.or,b,f).then(void 0,t),2);
u=E.u;if(!u||!u.responseText)return E["return"](p(u));a.pc=!1;z=g.rq(u.responseText);a.Yd(z,!0);if(a.errorCode)return B={ec:a.errorCode,ed:a.errorDetail,es:a.eh||""},E["return"](Promise.reject(new Vs("auth",!0,B)));if(!a.pc&&!HB(a))return D=a.isAd()?"auth":"manifest.net.retryexhausted",E["return"](Promise.reject(new Vs(D,!0,{successButUnplayable:"1"})));E.o=0})})};
qka=function(a){var b=new g.Xq(a.M().ug),c=g.lp(b);c.videoId=a.videoId;g.np(b,"next",c,{onSuccess:function(d){a.Yd({raw_watch_next_response:d},!1)},
onError:function(){}})};
tka=function(a,b,c,d){function e(){FA("virc",void 0,void 0);TA("virc")}
FA("vir",void 0,void 0);TA("vir");a=rka(a,b,c,d);a.then(e,e);return a};
lJ=function(a,b,c,d,e,f,k){g.O.call(this);var l=this;this.A=a;this.Ha=new gia;this.I=c;this.Qb=d;this.Uf=f;this.L=k;this.R=new sF((0,g.x)(this.getCurrentTime,this),(0,g.x)(this.getPlaybackRate,this),(0,g.x)(this.getPlayerState,this),function(m,n){m!=g.pC("endcr")||g.V(l.u,32)||iJ(l);e(m,n,l.Ia)});
g.C(this,this.R);this.F=null;this.za=new AG;this.aa=null;this.U=new MG(a,this.Qb);g.C(this,this.U);this.U.subscribe("ctmp",this.Qa,this);this.Hc=!0;this.G=this.w=null;this.V=[];this.Z=new DI;this.P=this.ya=null;this.ba=new DI;this.Pa=null;this.Vf=this.ma=!1;this.Wb=NaN;this.rd=new g.H(this.jN,500,this);g.C(this,this.rd);this.u=new g.LC;this.Xb=[];this.Ia=b;this.Aa=new g.Nr;g.C(this,this.Aa);this.T=new g.dB(a);jJ(this,function(){return{}});
this.o=null;this.oa=new g.H((0,g.x)(this.jL,this),15E3);g.C(this,this.oa);a=g.Q(this.A.experiments,"html5_source_buffer_attach_delay_time")||15E3;this.qd=new g.H((0,g.x)(this.bN,this),a);g.C(this,this.qd);this.Rg=0;this.od=this.Ma=!1;this.ga=NaN;this.ua=!1;this.Ca=0;this.qc=new g.H(this.uu,4500,this);g.C(this,this.qc);this.Ic=this.Sa=!1;this.Ua=NaN;this.ha=new EI;g.C(this,this.ha);GI(this.ha,"bufferhealth",function(){var m=l.C;return m.o?CC(m.o):0});
GI(this.ha,"bandwidth",(0,g.x)(this.NE,this));GI(this.ha,"networkactivity",(0,g.x)(this.VE,this),!0);GI(this.ha,"livelatency",(0,g.x)(this.nx,this));GI(this.ha,"rawlivelatency",(0,g.x)(this.sx,this));this.ha.start();this.pd=!1;this.sc=!0;this.jb=NaN;this.Kc=this.Uh=!1;this.yb=1;this.qb=(0,g.x)(this.LG,this);fI(this.qb);this.L.subscribe("visibilitystatechange",this.qb);this.Wf=this.pe=this.oe=0;uka(this);g.C(this,this.C);this.da=null;this.Md=!1;this.Uc=[];this.Jc=this.Xf=0;this.Vc=this.Sg=!1;this.ac=
new g.H(function(){g.kJ(l,"ad.rebuftimeout","RETRYABLE_ERROR","vps."+l.u.o.toString(16))});
g.C(this,this.ac);this.Mc=null};
vJ=function(a,b,c,d){d=void 0===d?!0:d;a.V.length=0;a.ya=null;a.Z.reset();a.ba.reset();a.Ma=!1;a.jb=NaN;a.Hc=!0;a.Pa=null;a.o&&a.o.stopVideo();mJ(a);nJ(a);oJ(a);g.cq(a.ga);a.ha.clear();g.Ke(a.T);if(2==a.Ia||a.A.en)b.fy=!0;var e=a.A.u;var f=a.A.w,k;(k=b.rm)||(k=(k=b.Uu)&&pJ.hasOwnProperty(k)&&qJ.hasOwnProperty(k)?qJ[k]+"_"+pJ[k]:void 0);if(k){var l=k.match(rJ);if(l&&5===l.length){if(l=k.match(rJ)){var m=Number(l[3]),n=[7,8,10,5,6];l=!(1===Number(l[1])&&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.Ia&&(b.Eg=!0);if(a.L.isFullscreen()||a.A.u)e=g.Ls("yt-player-autonavstate"),b.autonavState=e||(a.A.u?2:a.T.autonavState);a.sc=d;a.T=b;a.T.subscribe("dataupdated",a.wN,a);a.T.subscribe("dataloaded",a.fr,a);a.T.subscribe("dataloaderror",a.Fi,a);sJ(a,b);jJ(a,c);a.ua=!1;a.Ca=0;tJ(a,"newdata");uJ(a,new g.LC);c=a.C;d=a.T;tI(c);c.T=d;c.u=null;c.I=null;c.A=0;c.oa=0;c.F=0;c.ha=!0;c.P.dispose();c.P=new lI(c.U,(0,g.x)(c.S,c),c.Aa);IB(b)&&(b=a.T.errorDetail,
c=a.T.bl,g.kJ(a,"auth",unescape(c.reason),b,b,c.subreason||void 0))};
jJ=function(a,b){!a.B||a.B.ea();var c=new XG(a.T,a.A,b,(0,g.x)(a.getDuration,a),(0,g.x)(a.getCurrentTime,a),(0,g.x)(a.YE,a),(0,g.x)(a.Qb.getPlayerSize,a.Qb),(0,g.x)(a.getAudioTrack,a),(0,g.x)(a.getPlaybackRate,a),(0,g.x)(a.Sr,a),a.Uf,(0,g.x)(a.mF,a),function(){return a.I.tick("qoes")});
a.B=new RH(c)};
nJ=function(a){var b=a.B;b.w&&b.w.C();if(b.u){var c=b.u;if(!c.ea()&&c.w){c.B="paused";var d=LH(c);d.isFinal=!0;d.send();g.Qo(c.A);c.dispose()}}b.o&&(c=b.o,c.o.fa("html5_stopVideo_ping_block_killswitch")||c.I)&&("PL"==c.w&&(c.w="N"),d=g.ZG(c.o),g.jH(c,d,"vps",[c.w]),c.o.fa("html5_qoe_user_intent_match_health")&&!c.A&&(0<=c.B&&(c.u.user_intent=[c.B.toString()]),c.A=!0),c.nk(d));b.dispose();g.Ke(a.B)};
wJ=function(a){return a.o&&a.o.Bh()?a.o.ib():null};
xJ=function(a){if(a.T.isValid())return!0;g.kJ(a,"api.invalidparam",void 0,"invalidVideodata.1");return!1};
AJ=function(a,b){a.ma=void 0===b?!1:b;if(!xJ(a)||a.Z.started)yJ(a)&&a.Z.started&&!a.Z.isFinished()&&!a.ma&&a.fr();else{a.Z.start();var c=a.B;g.ZG(c.A);if(c.o){c=c.o;c.o.videoData.qm&&sH(c,c.o.videoData.qm);c.o.videoData.Ui?sH(c,"prefetch"):c.o.fa("html5_qoe_user_intent_match_health")||(c.u.user_intent=["0"],c.A=!0);c.o.videoData.Jf&&lH(c,"reload","r."+c.o.videoData.reloadReason+";ct."+c.o.videoData.Jf);c.o.videoData.vg&&sH(c,"monitor");c.o.videoData.sa&&sH(c,"live");c.o.videoData.Kf&&lH(c,"ctrl",
c.o.videoData.Kf,!0);if(c.o.videoData.Lf){var d=c.o.videoData.Lf.replace(/,/g,"_");lH(c,"ytp",d,!0)}c.o.videoData.KB&&(d=c.o.videoData.KB.replace(/,/g,"."),lH(c,"ytrexp",d,!0));if(!g.P(c.o.o.experiments,"html5_disable_gpu_reporting")){var e=c.o.o.experiments;d=c.o.videoData;e=g.P(e,"enable_white_noise")||g.P(e,"enable_webgl_noop")||g.P(e,"enable_gpu_logging");var f=d.Jj()||d.xg()||d.yg()||d.sg(),k=d.wa&&"1"==g.Ya(d.wa.videoInfos).u&&/^g/.test(d.clientPlaybackNonce);d=/^gp/.test(d.clientPlaybackNonce);
(e||f||d||k)&&(d=(0,g.zJ)())&&(c.u.gpu=[d])}c.ma=Po((0,g.x)(c.nk,c),1E4)}a.fr()}};
yJ=function(a){return g.P(a.A.experiments,"tvhtml5_disable_live_prefetch")&&g.cz(a.A)&&a.T.sa};
vka=function(a){var b=a.T,c=g.EH(a.A,a.T,a.Qb.getPlayerSize(),a.Uf(),a.L.isFullscreen(),window.location.search);tka(a.T,c,function(d){return a.Fi(d)},a.I).then(void 0,function(d){a.T!=b||b.ea()||(d=Xs(d),"auth"==d.errorCode&&a.T.errorDetail?g.kJ(a,"auth",unescape(a.T.errorReason),Ws(d.details),a.T.errorDetail,a.T.eh||void 0):a.Fi(d))})};
wka=function(a,b){a.w?a.w.Ia=new aG(b):a.Mc=b};
yka=function(a){g.V(a.u,128)||(a.T.Gb(),a.sc=!0,4!=a.Ia&&(a.V=g.kb(a.T.Rc)),GB(a.T)?(BJ(a).then(function(){a.ea()||(a.ma&&CJ(a),sJ(a,a.T),a.Z.o=!0,tJ(a,"dataloaded"),a.ba.started?DJ(a):a.ma&&uJ(a,OC(OC(a.u,512),1)),Lja(a.U,a.P))}),a.Qa("loudness",""+a.T.wm.toFixed(3),!0),xka(a)):tJ(a,"dataloaded"))};
BJ=function(a){oJ(a);a.P=null;var b=Ija(a.A,a.T,a.L.u);a.ya=b;a.ya.then((0,g.x)(a.aM,a),(0,g.x)(a.bM,a));return b};
EJ=function(a){a.o&&a.o.Vj();AJ(a);xJ(a)&&!g.V(a.u,128)&&(a.ba.started||(a.ba.start(),uJ(a,OC(OC(a.u,8),1))),DJ(a))};
DJ=function(a){a.ea();if(!a.ba.isFinished()&&a.Z.isFinished()&&!g.V(a.u,128)&&!a.V.length){if(!a.R.started){var b=a.R;b.started=!0;b.u()}if(!FJ(a)){a.w&&(b=a.w.da,a.Vf=!!b.o&&!!b.A);a.ba.isFinished()||(a.ba.o=!0);!a.T.sa||0<a.T.qh&&!tB(a.T)||(a.seekTo(Infinity),GJ(a,"readying"),a.L.isBackground()&&(a.od=!0));b=a.B;if(b.u){var c=b.u;c.o.videoData.dl&&c.o.videoData.Fn&&(c.F("connected"),PH(c))}b.o&&(b=b.o,b.o.videoData.sa&&(c=b.o.videoData.ia,tB(b.o.videoData)&&sH(b,"manifestless"),c&&ey(c)&&sH(b,"live-segment-"+
ey(c).toFixed(1))));a.S("playbackready",a);KA("pbr",a.I.timerName)||(a.I.tick("pbr"),TA("pbr"))}}};
iJ=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.o&&a.o.pause();b=b?new g.LC(14):new g.LC;uJ(a,b)};
sJ=function(a,b){if(b.endSeconds&&b.endSeconds>b.startSeconds){var c=b.endSeconds;a.aa&&(a.removeCueRange(a.aa),a.aa=null);a.aa=new g.mC(1E3*c,0x7ffffffffffff);a.aa.namespace="endcr";a.addCueRange(a.aa)}};
JJ=function(a,b,c,d){a.T.Ba=c;d&&HJ(a,b,d);var e=(d=g.IJ(a))?jt(d):"";d=a.B;e=new LG(a.T,c,b,e);if(d.o){c=d.o;d=g.ZG(c.o);g.jH(c,d,"vfs",[e.o.id,e.u,c.Ca,e.reason]);c.Ca=e.o.id;e=c.o.G();if(0<e.width&&0<e.height){e=[Math.round(e.width),Math.round(e.height)];var f=g.lz();1<f&&e.push(f);g.jH(c,d,"view",e)}c.Z||(c.o.videoData.wg&&sH(c,"rqs"),c.o.videoData.ia&&Rx(c.o.videoData.ia)&&(c.u.preload=["1"]));c.Z=!0;c.I=!0;g.jH(c,d,"vps",[c.w]);c.nk(d)}c=a.U;c.A=0;c.u=0;a.S("internalvideoformatchange",a.T,"m"==
b)};
g.IJ=function(a){var b=KJ(a);return Fu(b)||!a.P?null:g.$a(a.P.wa.videoInfos,(0,g.x)(b.A,b))};
HJ=function(a,b,c){if(c!=a.T.Ub){var d=!a.T.Ub;a.T.Ub=c;"m"!=b&&(b=d?"i":"a");var e=a.B;c=new LG(a.T,c,b,"");if(e.o){e=e.o;var f=g.ZG(e.o);c.o.id!=e.aa&&(g.jH(e,f,"afs",[c.o.id,e.aa,c.reason]),e.aa=c.o.id)}d||a.S("internalaudioformatchange",a.T,"m"==b)}};
g.kJ=function(a,b,c,d,e,f){var k,l;g.Mb(zka,c)?k=c:c?l=c:k="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+parseInt(g.L("DCLKSTAT",0),10));b={errorCode:b,errorDetail:e,errorMessage:l||g.LJ[k]||"",yr:k,eh:f||"",FB:d};tJ(a,"dataloaderror");uJ(a,NC(a.u,128,b));g.cq(a.ga);oJ(a);g.MJ(a)};
NJ=function(a,b){a.V=a.V.filter(function(c){return b!=c});
a.ba.started&&DJ(a)};
FJ=function(a){var b;(b=!!a.V.length)||(a=a.R.o.o[0],b=!!a&&-0x8000000000000>=a.start);return b};
QJ=function(a,b){if(a.o&&b.ib()==a.o.ib()&&(b.isView()||a.o.isView())){if(b.isView()||!a.o.isView())g.Pr(a.Aa),a.o=b,OJ(a),uI(a.C,a.o)}else{a.o&&PJ(a);if(!a.u.isError()){var c=PC(a.u,512);g.V(c,8)&&!g.V(c,2)&&(c=OC(c,1));b.isView()&&(c=PC(c,64));uJ(a,c)}a.o=b;a.o.setLoop(a.Kc);a.o.setPlaybackRate(a.yb);OJ(a);uI(a.C,a.o)}};
PJ=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;if(a.o){var d=a.getCurrentTime();0<d&&(a.C.F=d);uI(a.C,null);RJ(a);a.w&&(g.An(a.w.ba),SJ(a,c));a.oa.stop();if(a.o){!a.ba.started||a.u.isError()||g.V(a.u,2)||uJ(a,OC(a.u,512));g.Pr(a.Aa);if(b||!a.o.isView())a.o.stopVideo(),mJ(a);a.o=null}}};
UJ=function(a){if(!a.P)return[];var b=OG(a.U,a.P,TJ(a,!0));b=b||Gu;a=(0,g.xe)(a.P.wa.videoInfos,(0,g.x)(b.A,b));b=[];for(var c={},d=0;d<a.length;d++){var e=a[d].va();c[e.quality]||(b.push(e),c[e.quality]=!0)}return b};
KJ=function(a){if(a.P){var b=a.U;var c=a.P,d=TJ(a);a=a.L.isBackground();var e=jy(g.Q(b.o.experiments,"html5_sticky_duration_cap_secs"));e=Eu("auto",e,!1,"s");var f=g.P(b.o.experiments,"html5_break_sticky")&&/^i/.test(c.videoData.clientPlaybackNonce);if(Fu(e)||f){e=Hu(NG(b,c),QG(b,c));f=0;!b.o.o||g.Uy(b.o)||rl()||g.P(b.o.experiments,"mweb_uniplayer_auto_quality")||g.P(b.o.experiments,"hls_for_vod")||(f=g.dt.medium);var k=g.Q(b.o.experiments,"html5_default_quality_cap");if(k){var l=!!c.wa.o;!RG(b,"html5_quality_cap_include_cast")&&
c.videoData.Kf&&(l=!1);!RG(b,"html5_quality_cap_include_drm")&&c.videoData.zc&&(l=!1);var m=g.Q(b.o.experiments,"html5_quality_cap_min_age_secs");l&&m&&(l=b.o.schedule.C,l=(0,g.N)()-l>1E3*m);l&&(f=f?Math.min(f,k):k)}if(m=k=g.Q(b.o.experiments,"html5_hfr_quality_cap"))a:{m=c.wa;if(m.o)for(m=g.q(m.videoInfos),l=m.next();!l.done;l=m.next())if(32<l.value.va().fps){m=!0;break a}m=!1}m&&(f=f?Math.min(f,k):k);(k=g.Q(b.o.experiments,"html5_live_quality_cap"))&&c.videoData.sa&&(f=f?Math.min(f,k):k);f=new Cu(0,
f,!1,"d");e=Hu(e,f);f=g.Q(b.o.experiments,"html5_background_quality_cap");k=g.Q(b.o.experiments,"html5_background_cap_idle_secs");a=!f||"auto"!=jy()||iq()/1E3<k?Gu:a?new Cu(0,f,!1,"v"):Gu;a=Hu(e,a);e=(e=g.Q(b.o.experiments,"html5_autonav_quality_cap"))&&c.videoData.Kj?new Cu(0,e,!1,"e"):Gu;a=Hu(Hu(Hu(a,e),VG(b,c)),c.videoData.HC);e=new Cu(0,0,!1,"o");1<b.G&&(e=new Cu(0,480,!0,"o"));e=Hu(a,e)}g.P(b.o.experiments,"html5_ignore_sticky_for_medcap")&&(e=Hu(e,QG(b,c)));b=Hu(Hu(Hu(c.videoData.cq,e),c.videoData.gw),
d)}else b=Gu;return b};
TJ=function(a,b){if(a.F){var c=a.F;var d=void 0===b?!1:b;d=void 0===d?!1:d;c=!g.P(c.u.experiments,"html5_drm_entitled_qualitycap_on_edge_killswitch")&&d&&c.U?c.U:c.G}else c=a.T.fo()&&a.T.ia&&Qx(a.T.ia)?(g.P(a.A.experiments,"html5_drm_initial_constraint_from_config")?a.T.al:g.P(a.A.experiments,"html5_drm_start_from_null_constraint"))?Gu:CG:Gu;a.Vc&&(c=Hu(c,VJ));return c};
XJ=function(a){if(!a.ea()&&!g.V(a.u,128)&&a.T.wa){if(a.T.wa.o)WJ(a);else{var b=KJ(a),c=a.T;a:{var d=a.T.Gg;if(b.o){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.ge(),l=g.dt[k.va().quality];if((!b.w||"auto"!=k.va().quality)&&l<=b.o){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.le=d;JJ(a,b.reason,a.T.le.ge())}a.u.ab()&&(a.C.ha=!1,a.playVideo())}};
WJ=function(a){if(a.T.wa&&a.T.wa.o){var b=KJ(a),c=a.T.Ba;if(c&&"1"==c.u){var d=xz(a.A);if(d&&d<c.va().fc){BJ(a);return}}if(a.w&&(a=a.w,!a.ea()&&!Du(a.F.A,b)&&a.u)){var e=a.F.A;QF(a,Mia(a.F,b));DF(a);c=fF(a.F)&&"m"==b.reason&&a.F.L;d=a.o.Xb&&"l"==b.reason&&FE(a.u);b=("b"==b.reason||"o"==b.reason)&&e.o>b.o;c||d||b?a.S("reattachrequired"):(GE(a.u)&&MF(a,a.u,a.A),g.An(a.ba))}}};
ZJ=function(a){YJ(a,"html5_nonblocking_media_capabilities")?WJ(a):XJ(a)};
aK=function(a){Dga(a.T.ia,{cpn:a.T.clientPlaybackNonce,c:a.A.deviceParams.c,cver:a.A.deviceParams.cver});var b=a.A,c=a.T,d=new g.Lw,e=Kw(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Ej:c.Ej});d.A=e;d.Vf=b.fa("html5_unify_sqless_flow");d.L=b.fa("html5_accurate_seeking_redux");d.yb=b.fa("html5_unrewrite_timestamps");d.Ua=b.fa("html5_stop_overlapping_requests");d.Ca=g.Q(b.experiments,"html5_min_readbehind_secs");d.Pn=g.Q(b.experiments,"html5_min_readbehind_cap_secs");g.cz(b)&&(d.Ca=g.Q(b.experiments,
"tvhtml5_min_readbehind_secs"));d.Rg=b.fa("html5_append_init_while_paused");d.Kc=g.Q(b.experiments,"html5_max_readahead_bandwidth_cap");d.od=g.Q(b.experiments,"html5_post_interrupt_readahead");d.P=g.Q(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");d.qb=g.Q(b.experiments,"html5_subsegment_readahead_timeout_secs");d.xv=g.Q(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.jb=g.Q(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.yv=
g.Q(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Uf=g.Q(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.zv=g.Q(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Ia=b.fa("html5_peak_shave");d.Sz=b.fa("html5_peak_shave_always_include_sd");d.fv=b.fa("html5_restrict_streaming_xhr_on_sqless_requests");d.Dn=g.Q(b.experiments,"html5_max_headm_for_streaming_xhr");d.Xz=b.fa("html5_pipeline_manifestless_allow_nonstreaming");d.iC=b.fa("html5_prefer_server_bwe3");
d.Xf=1024*g.Q(b.experiments,"html5_video_tbd_min_kb");d.uC=b.fa("html5_probe_live_using_range");d.bn=b.fa("html5_last_slice_transition");d.vv=b.fa("html5_store_xhr_headers_readable");d.Xm=b.fa("html5_enable_packet_train_response_rate");if(e=g.Q(b.experiments,"html5_probe_secondary_during_timeout_miss_count"))d.qd=e,d.Av=1;d.Ma=g.Q(b.experiments,"html5_probe_primary_delay_base_ms")||d.Ma;d.Uc=b.fa("html5_no_placeholder_rollbacks");d.wv=b.fa("html5_subsegment_readahead_enable_mffa");b.fa("html5_allow_video_keyframe_without_audio")&&
(d.ha=!0);d.rd=b.fa("html5_reattach_on_stuck");d.Ev=b.fa("html5_webm_init_skipping");d.Md=g.Q(b.experiments,"html5_request_size_padding_secs")||d.Md;d.en=b.fa("html5_log_timestamp_offset");d.Qb=b.fa("html5_abs_buffer_health");d.an=b.fa("html5_interruption_resets_seeked_time");d.Jc=g.Q(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.Jc;d.qc=b.fa("html5_explicitly_dispose_xhr");d.vo=b.fa("html5_gapless_no_requests_after_lock");d.pd=g.Q(b.experiments,"html5_probe_primary_failure_factor");
d.tv=b.fa("html5_skip_invalid_sq");d.dv=b.fa("html5_restart_on_unexpected_detach");d.dn=b.fa("html5_log_live_discontinuity");d.hv=b.fa("html5_rewrite_manifestless_for_continuity");d.Hc=g.Q(b.experiments,"html5_max_drift_per_track_secs");d.lv=b.fa("html5_rewrite_manifestless_for_sync");d.pe=g.Q(b.experiments,"html5_static_abr_resolution_shelf");d.Kk=!b.fa("html5_encourage_array_coalescing");d.Mk=b.fa("html5_crypto_period_secs_from_emsg");d.ga=b.fa("html5_defer_slicing");d.Wb=g.Q(b.experiments,"html5_buffer_health_to_defer_slice_processing");
b.fa("html5_media_common_config_killswitch")||(d.B=c.maxReadAheadMediaTimeMs/1E3||d.B,e=b.schedule,e.u.o()===e.policy.w?d.U=10:d.U=c.minReadAheadMediaTimeMs/1E3||d.U,d.ac=c.readAheadGrowthRateMs/1E3||d.ac);zh&&(d.V=41943040);d.da=!eu();g.cz(b)||!eu()?(e=b.experiments,d.C=8388608,d.F=524288,d.Uh=5,d.ya=2097152,d.aa=1048576,d.PC=1.5,d.wo=!1,d.G=4587520,nl()&&(d.G=786432),d.o*=1.1,d.u*=1.1,d.Sa=!0,d.V=d.C,d.za=d.F,d.Vc=g.P(e,"persist_disable_player_preload_on_tv")||g.P(e,"persist_disable_player_preload_on_tv_for_living_room")||
!1):b.o&&(d.o*=1.3,d.u*=1.3);g.Gt&&il("crkey")&&(e="CHROMECAST/ANCHOVY"==b.deviceParams.cmodel,d.C=20971520,d.F=1572864,e&&(d.G=812500,d.I=1E3,d.Dv=5,d.aa=2097152));!b.fa("html5_disable_firefox_init_skipping")&&g.ku&&(d.Sa=!0);b.supportsGaplessAudio()||(d.Wm=!1);My&&(d.Ih=!0);if(tB(c)){d.Zm=!0;d.qv=!0;if("ULTRALOW"==c.latencyClass||"LOW"==c.latencyClass&&!b.fa("html5_disable_low_pipeline"))d.hn=2,d.Jn=4;d.fg=c.defraggedFromSubfragments;c.Mb&&(d.Pa=!0);g.JB(c)&&(d.L=!1);d.Lk=g.oz(b)}c.isAd()&&(d.Aa=
0,d.sc=0);vB(c)&&(d.ba=!0);d.ma=b.fa("html5_enable_subsegment_readahead_v3")||b.fa("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"==c.latencyClass;d.oa=c.wg;d.cn=d.oa&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||UB(c));ul()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.fa("html5_disable_move_pssh_to_moov")&&Qx(c.ia)&&(d.Sa=!1);Qx(c.ia)&&(d.rd=!1);if(c.sa){e=ey(c.ia);var f=g.Q(b.experiments,"html5_live_abr_head_miss_fraction"),k=g.Q(b.experiments,"html5_live_abr_repredict_fraction");
f&&e&&(d.Ic=Math.min(e*f,d.Ic));k&&e&&(d.I=Math.min(1E3*e*k,d.I))}f=0;b.fa("html5_live_use_alternate_bandwidth_window_sizes")&&(f=b.schedule.policy.o,c.sa&&(f=g.Q(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.P.o=tB(c)?.5:0;if(!e.policy.u&&f&&(e=e.u,f=Math.round(f*e.resolution),f!==e.u)){k=Array(f);var l=Math.min(f,e.A?e.u:
e.valueIndex),m=e.valueIndex-l;0>m&&(m+=e.u);for(var n=0;n<l;++n)k[n]=e.values[(m+n)%e.u];for(;n<f;++n)k[n]=Infinity;e.u=f;e.values=k;e.valueIndex=l%f;e.A=l===f;e.C=!0;e.G=ry(e)}d.Ha=c.sa;switch(uB(c)){case 21530001:d.lo=b.fa("html5_live_smoothly_extend_max_seekable_time");d.ma=!0;"LOW"==c.latencyClass?d.P=g.Q(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"==c.latencyClass&&(d.P=g.Q(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Uc=!0;break;case 2153E4:d.ma=
!1}d.Ih=d.Ih||c.Ih;d.Z=c.Cf;UB(c)&&(d.ua=!0);c.Cf&&!Qx(c.ia)&&b.fa("html5_hack_gapless_init")&&(d.oe=!0);(e=g.Q(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.Cf&&c.isAd()&&(d.o*=e,d.u*=e);TB(c)&&(d.w=c.videoId,d.Qb=!0,TB(c)&&c.ur&&(d.R=!0));b.fa("html5_drm_initial_constraint_from_config")?d.Xb=c.al:d.Xb=b.fa("html5_drm_start_from_null_constraint");c=g.Q(b.experiments,"html5_deadzone_multiplier")||1;(e=g.Q(b.experiments,"html5_sticky_reduces_discount_by"))&&"auto"!=jy()&&(c-=e);d.o*=c;
d.u*=c;if(c=g.Q(b.experiments,"html5_request_sizing_multiplier"))d.XC=c;d.Mc=g.Q(b.experiments,"html5_min_upgrade_health")||d.Mc;iu(b.A,ou)&&(d.G=NaN);b.A.A&&(d.Ym="; "+tu.name+"=allowed");"auto"!=jy()&&(d.Wf=0);d.JC=b.fa("html5_rec_2020_matrix_correction_killswitch");c=d.Ha&&!b.fa("html5_pause_appends_killswitch");d.Ha=c||b.fa("html5_never_pause_appends");g.P(b.experiments,"html5_prefer_low_quality_audio_means_64k")&&My&&(d.RB=!0);b=b.experiments;g.P(b,"html5_validate_lengthless_slices_killswitch")&&
(d.Cv=!1);g.P(b,"html5_reset_on_append_error_killswitch")&&(d.cv=!0);g.P(b,"html5_audio_only_eos_fix_killswitch")&&(d.Sg=!0);g.P(b,"html5_reject_promise_if_seeking_to_head_killswitch")&&(d.MC=!0);b=a.getAudioTrack();b=b.sb.isDefault?void 0:b;c=a.za;c.keys=[];c.values=[];a.w=new CF(a.A.schedule,d,a.T.ia,a.T.wa,KJ(a),b,a.R);a.w.subscribe("needkeyinfo",a.GA,a);a.w.subscribe("newDrmInfo",a.NL,a);a.w.subscribe("videoformatchange",a.JG,a);a.w.subscribe("audioformatchange",a.lL,a);a.w.subscribe("error",
a.Fi,a);a.w.subscribe("ctmp",a.Qa,a);a.w.subscribe("reattachrequired",a.kO,a);a.w.subscribe("metadata",a.yA,a);a.w.subscribe("constraint",a.uN,a);a.w.subscribe("timestamp",a.nG,a);a.w.subscribe("localmediacomplete",a.mL,a);d=$J(a)?!0:a.ma&&yJ(a);a.w.initialize(a.getCurrentTime(),KJ(a),d);a.T.probeUrl&&(a.w.ma=a.T.probeUrl);(a.V.length||a.ma)&&SJ(a,!1);wI(a.C,a.w);a.Mc&&(a.w.Ia=new aG(a.Mc))};
uka=function(a){a.C=new sI(a.T,a.A,a.L);a.C.subscribe("seekto",function(b,c){a.C.F=b;var d=a.Ha;d.o=b;d.u=!0;c||bK(a);a.aa&&b>a.T.endSeconds&&isFinite(b)&&(a.removeCueRange(a.aa),a.aa=null);b<cK(a)-.01&&(d=PC(a.u,2),g.V(d,8)&&(d=PC(d,4)),uJ(a,d));a.S("SEEK_TO",a,b)});
a.C.subscribe("seekstart",function(){return dK(a)});
a.C.subscribe("seekend",function(){return a.S("SEEK_COMPLETE")});
a.C.subscribe("newmediaelementrequired",function(){return eK(a)});
a.C.subscribe("ended",function(){return iJ(a)});
a.C.subscribe("ctmp",a.Qa,a);a.C.subscribe("qoeerror",a.aO,a);a.C.subscribe("livereadaheadchanged",function(b){var c=a.B;c.o&&(c=c.o,g.jH(c,g.ZG(c.o),"lra",[b]),lH(c,"live-readahead-seconds",b.toString()))})};
oJ=function(a){a.w&&(a.w.dispose(),a.w=null,wI(a.C,null));RJ(a)};
RJ=function(a){if(a.G){if(a.w){var b=tB(a.T)&&a.T.Mb&&!a.T.isAd();HF(a.w,b)}a.G.dispose();a.G=null}};
gK=function(a){if(a.G)return a.G.Nl;YJ(a,"html5_disable_loader_reorder")&&fK(a);Aka(a);return a.G?a.G.Nl:null};
Aka=function(a){if(YJ(a,"html5_application_media_source"))a.S("requestmediasource",a);else{var b=g.Q(a.A.experiments,"html5_source_buffer_attach_retry_limit")||0;a.Rg<b&&a.qd.start();try{var c=a.o.Qo()}catch(d){if(hK(a,"html5.missingapi",{updateMs:"1"}))return;g.ar(d);d.message="window.URL object overwritten by external code";window.setTimeout(function(){throw d;},0);
g.kJ(a,"html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1")}iK(a,c)}};
iK=function(a,b){YJ(a,"html5_disable_loader_reorder")||fK(a);a.G=b;Gfa(a.G,function(c){try{if(a.G&&(!c||a.G==c)){var d=a.getDuration();!d&&tB(a.T)&&(d=g.Q(a.A.experiments,"html5_manifestless_media_source_duration")||3600);a.G.isView()?(c=d,c>a.G.getDuration()&&bu(a.G,c)):bu(a.G,d);var e=a.w,f=a.G;e.U&&(GF(e),e.U=!1);FF(e);if(!cu(f)){var k=e.u.o.info.mimeType+e.o.Ym,l=e.A.o.info.mimeType,m=new Xt("fakesb"==l?new Ot:f.w.addSourceBuffer(l),it(l),!1),n=new Xt("fakesb"==k?new Ot:f.w.addSourceBuffer(k),
it(k),!0);f.o=m;f.u=n;g.C(f,m);g.C(f,n)}lE(e.u,f.u);lE(e.A,f.o);e.w=f;e.resume();Qr(f.o,e.ua,e);Qr(f.u,e.ua,e);e.o.en&&1E-4>=Math.random()&&e.Dc("toff",""+f.o.supports(1),!0);e.Gf();a.S("mediasourceattached");a.qd.stop()}}catch(p){g.ar(p),a.Fi(new Vs("fmt.unplayable",!0,{msi:"1",ename:p.name}))}})};
fK=function(a){a.w?Of(a.w.seek(a.getCurrentTime()-a.Bb()),function(){}):aK(a)};
Bka=function(a){return 403==a.details.rc?(a=a.errorCode,"net.badstatus"==a||"manifest.net.retryexhausted"==a):!1};
jK=function(a){return a.Sa||"yt"!=a.A.V?!1:a.T.se?25>a.T.Jf:!a.T.Jf};
kK=function(a){a.Sa||(a.Sa=!0,a.S("signatureexpired"))};
mK=function(a,b){try{window.location.reload(!0);a.B.onError("qoe.restart",Ws({detail:"pr."+b}));return}catch(c){}YJ(a,"tvhtml5_retire_old_players")&&g.cz(a.A)&&lK(a)};
nK=function(a){return"net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode&&!!a.details.fmt_unav};
Cka=function(a,b){if(a.o&&("fmt.unplayable"==b.errorCode||"html5.invalidstate"==b.errorCode)){var c=a.o.Xe();b.details.merr=c?c.toString():"0";b.details.msg=a.o.Wj()}};
hK=function(a,b,c){var d=g.Q(a.A.experiments,"html5_error_cooldown_in_ms")||3E4;if(a.jb+d>(0,g.G)())return!a.T.se&&(a.A.ga+=1,10<a.A.ga)?(c.exiled=""+a.A.ga,a.B.onError("qoe.start15s",Ws(c)),a.S("playbackstalledatstart"),!0):!1;a.jb=(0,g.G)();d=a.T;d=d.le?d.le.gx()<Date.now()/1E3+1800:!1;c.e=b;a.G&&(c.msopened=""+ +!!a.G.o);d&&(c.staleprog="1");a.B.onError("qoe.restart",Ws(c));if(d&&jK(a))return kK(a),!0;il("philips")&&lK(a);b=!1;c=a.T.Ba;!YJ(a,"html5_disable_codec_on_platform_errors")&&c&&"1"==c.u?
(a.A.A.disableAv1(),b=!0):a.w?(c=a.w,d=(d=mE(c.u)||c.u.u)?d.o:c.u.o,d.I+=1,dF(c.F,d)):a.T.le&&a.T.le.tu();eK(a,b);return!0};
eK=function(a,b){b=void 0===b?!1:b;return g.Da(function(c){if(1==c.o)return a.w&&a.w.ea()&&oJ(a),a.S("newelementrequired"),b?c=g.ua(c,BJ(a),2):(c.o=2,c=void 0),c;g.V(a.u,8)&&a.playVideo();c.o=0})};
lK=function(a){if("GAME_CONSOLE"!=a.A.deviceParams.cplatform)try{window.close()}catch(b){}};
g.MJ=function(a,b){b=void 0===b?!1:b;a.o&&(a.o.stopVideo(),mJ(a),oJ(a),g.V(a.u,128)||(b?uJ(a,QC(a.u,4,8)):uJ(a,NC(a.u))),a.A.I.remove(a.T.videoId))};
bK=function(a){g.V(a.u,32)||(uJ(a,OC(a.u,32)),g.V(a.u,8)&&a.pauseVideo(!0),a.S("beginseeking",a));oK(a)};
dK=function(a){g.V(a.u,32)?(uJ(a,QC(a.u,16,32)),a.S("endseeking",a)):YJ(a,"html5_sync_seeking_state")&&!g.V(a.u,2)&&uJ(a,OC(a.u,16))};
pK=function(a){if(a.T.ia)return fy(a.T.ia,a.getCurrentTime()-a.Bb());if((!YJ(a,"html5_disable_limit_ingestion_tvos")||ml())&&a.o){var b=a.o.So();if(b&&(b=b.getTime(),!isNaN(b)))return b/1E3+a.getCurrentTime()}return NaN};
tJ=function(a,b){a.S("internalvideodatachange",void 0===b?"dataupdated":b,a,a.T)};
OJ=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.Aa.K(this.o,b,this.KG,this)},a);
a.A.Xf&&a.o.Bh()&&(a.Aa.K(a.o,"webkitplaybacktargetavailabilitychanged",a.VJ,a),a.Aa.K(a.o,"webkitcurrentplaybacktargetiswirelesschanged",a.WJ,a))};
rK=function(a){YJ(a,"html5_enable_timeupdate_timeout")&&!a.T.sa&&qK(a)&&a.rd.start()};
qK=function(a){if(!a.o)return!1;var b=a.o.getCurrentTime();a=a.o.getDuration();return!!(1<b&&b>a-.3)};
tK=function(a){window.clearInterval(a.Wb);a.oa.stop();a.T.se=!0;a.A.se=!0;a.A.ga=0;sK(a);g.V(a.u,8)&&uJ(a,PC(a.u,65));var b=a.B;if(b.u){var c=b.u;if(!c.w){g.P(c.o.o.experiments,"disable_embedpage_playback_logging")||16623!=c.o.videoData.Gp||g.No(Error("Playback for EmbedPage"));var d=JH(c,"playback");c.I=[10+c.o.videoData.Gj,10,10,40+c.o.videoData.Ml-c.o.videoData.Gj,40];var e=c.u;window.clearInterval(e.G);e.G=NaN;e.G=Po((0,g.x)(e.update,e),100);e.F=g.ZG(e.u);e.B=bH(e.u);d.u=IH(c,!0);d.send();c.o.videoData.rp&&
(d=c.o.o,e=c.o.videoData,e={html5:"1",video_id:e.videoId,cpn:e.clientPlaybackNonce,ei:e.eventId,ptk:e.rp,oid:e.iB,ptchn:e.hB,pltype:e.jB,content_v:e.ki()},d=g.Bd(d.G+"ptracking",e),MH(c,d));c.o.videoData.dl&&(c.F("playback"),c.A||PH(c));c.o.videoData.Me||OH(c);c.w=!0;c=c.u;c.o=c.u.u();c.F=g.ZG(c.u);!(0==c.w&&5>c.o)&&2<c.o-c.w&&(c.w=c.o);c.P=!0}}b.w&&(b=b.w,c=g.ZG(b.u),0>b.w&&(b.w=c,b.B.start()),b.A=c,b.P=c);g.An(a.qc);a.S("playbackstarted");g.bq()&&((a=g.w("yt.scheduler.instance.clearPriorityThreshold"))?
a():dq(0))};
sK=function(a){var b=a.getCurrentTime(),c=a.T;!KA("pbs",a.I.timerName)&&LA.measure&&LA.getEntriesByName&&(LA.getEntriesByName("mark_nr")[0]?SA("mark_nr"):SA());c.videoId&&a.I.info("docid",c.videoId);c.eventId&&a.I.info("ei",c.eventId);c.clientPlaybackNonce&&a.I.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.I.info("start",c.startSeconds.toString());a.o&&a.o.Ch()&&a.I.info("paused",1);c.Ba?a.I.info("fmt",jt(c.Ba)):a.I.info("fmt","-1");c.Ui&&a.I.info("yt_pre",a.Vf?"2":"1");a.L.isFullscreen()&&
a.I.info("yt_fs","1");a.I.info("cmt",b.toFixed(3));if(a.w){b=a.w.da;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.A),c.length&&(c=c[0],b.md("vri",c.fetchStart),b.md("vdns",c.domainLookupEnd),b.md("vreq",c.requestStart),b.md("fvb",c.responseStart),b.md("vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.o),c.length&&(c=c[0],b.md("ari",c.fetchStart),b.md("adns",c.domainLookupEnd),b.md("areq",c.requestStart),b.md("avb",c.responseStart),
b.md("arc",c.responseEnd)));b=b.B;for(var d in b)a.I.tick(d,b[d])}};
oK=function(a,b){b=void 0===b?!1:b;if(a.o&&a.T){var c=a.C,d=a.u.ab(),e=c.getCurrentTime(),f=c.isAtLiveHead(e);if(c.I&&f){var k=c.I;if(k.o&&!(e>=k.u&&e<k.w)){var l=k.o.Qe(e);-1!=l&&(k.u=k.o.gd(l),k.w=k.u+k.o.getDuration(l),l=(0,g.G)()/1E3-k.o.jt(l),l-=k.B(),k.A.add(l))}}c.u&&(f&&(f=c.u,k=c.o?CC(c.o):0,f.B++,3>f.B||(0,g.G)()-f.G<f.o.I||(f.G=(0,g.G)(),f.w.push(k),50<f.w.length&&f.w.shift())),f=c.u,bI(f,e,void 0===d?!0:d),cI(f,e),d&&pI(c,!0));c=a.getCurrentTime();!a.w||g.V(a.u,4)&&g.JB(a.T)||(d=a.w,e=
c,d.w&&d.w.u&&(e-=!isNaN(d.Z)&&d.o.yb?d.Z:0,d.C!=e&&d.resume(),d.I.w&&!du(d.w)&&(f=d.C<=e&&e<d.C+10,k=St(d.w.u.wd(),d.C+PF),f&&k&&(d.I.w=!1)),d.I.w||(d.C=e),g.An(d.Ca)));5<c&&(a.C.F=c);(d=g.bq())?g.cq(a.ga):g.Qo(a.ga);!g.UC(a.u)&&a.o.Ch()||g.V(a.u,128)||(e=(0,g.x)(a.wF,a),0==a.o.yj().length?a.ga=d?g.$p(e,100):g.Oo(e,100):a.ga=d?g.$p(e,500):g.Oo(e,500));a.T.bh=c;if(!b&&a.u.ab()&&(c=a.B,c.u&&(c=c.u,c.u.update(),c.o.videoData.Gb()&&c.o.videoData.Me&&c.w&&!c.R&&vH(c.u)>=c.o.videoData.Me&&(c.w&&c.o.videoData.Me&&
(d=JH(c,"delayplay"),d.Ca=!0,d.send(),c.R=!0),OH(c))),a.T.sa&&(0,g.G)()>a.Wf+6283&&(!a.isAtLiveHead()||a.T.ia&&cy(a.T.ia)||(c=a.B,c.o&&(c=c.o,e=c.o.A(),d=g.ZG(c.o),nH(c,d,e),e=e.C,isNaN(e)||g.jH(c,d,"e2el",[e.toFixed(3)]))),g.oz(a.A)&&a.Qa("rawlat","l."+II(a.ha,"rawlivelatency").toFixed(3)),a.Wf=(0,g.G)()),a.T.Ba&&ot(a.T.Ba)&&(c=wJ(a))&&c.videoHeight!=a.Jc&&(a.Jc=c.videoHeight,YJ(a,"html5_log_hls_video_height_change_as_format_change")&&a.T.le&&"auto"==a.T.le.ng.va().quality&&a.T.Gg)))for(c=g.q(a.T.Gg),
d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()==a.Jc&&"auto"!=d.ng.va().quality){JJ(a,"a",d.ge());break}Kja(a.U,a.P,a.o,a.L.isBackground())&&ZJ(a);c=a.U;d=a.T.Ba;0>=g.Q(c.o.experiments,"hfr_dropped_framerate_fallback_threshold")||!(d&&d.va()&&32<d.va().fps)?c=!1:3<=c.w?(c.w=0,c=!0):c=!1;c&&Dka(a);a.S("progresssync",a,b)}};
Dka=function(a){a.B.onError("qoe.restart","droprate."+a.U.F);a.A.A.F=!1;BJ(a).then(function(){return CJ(a)})};
uJ=function(a,b){if(!g.RC(a.u,b)){var c=new g.cH(b,a.u);a.u=b;var d=!a.Xb.length;a.Xb.push(c);var e=a.o&&a.o.Tl();if(g.eH(c,1)&&!g.V(c.Gh,16)&&!e&&g.V(a.u,8)&&!g.V(a.u,64)&&a.w&&(a.w.ha=!0,uK(a),a.o&&5<=CC(a.o))){e=a.U;var f=a.P;SG(e,f)&&f.videoData.Ba?(6E4<(0,g.G)()-e.I&&(e.A=0),e.A++,e.I=(0,g.G)(),4!=e.A?e=!1:(TG(e,f.videoData.Ba),e=!0)):e=!1;e&&ZJ(a)}(e=g.Q(a.A.experiments,"html5_ad_timeout_ms"))&&a.T.isAd()&&g.V(b,1)&&(g.V(b,8)||g.V(b,16))?a.ac.start(e):a.ac.stop();(0>dH(c,8)||g.eH(c,1024))&&
a.oa.stop();!g.eH(c,8)||a.T.se||g.V(c.state,1024)||a.oa.start();g.V(c.state,8)&&0>dH(c,16)&&!g.V(c.state,32)&&!g.V(c.state,2)&&a.playVideo();g.V(c.state,2)&&KB(a.T)&&(e=a.getCurrentTime(),a.T.lengthSeconds!=e&&(a.T.lengthSeconds=e,tJ(a)),oK(a,!0));g.eH(c,2)&&(a.uu(!0),uK(a));g.eH(c,128)&&uK(a);a.T.ia&&a.T.sa&&!a.Sg&&(0>dH(c,8)?(e=a.T.ia,e.A&&e.A.stop()):g.eH(c,8)&&a.T.ia.resume());e=a.C;e.P.A=c.state;if(f=e.o)f=8==c.Gh.o&&TC(c.state)&&g.UC(c.state)&&e.V.A;if(f){f=e.o.getCurrentTime();var k=e.o.Fd();
var l=oI(e,"manifestless_post_live_ufph")||oI(e,"manifestless_post_live")?Rt(k,Math.max(f-3.5,0)):Rt(k,f-3.5);0<=l&&f>k.end(l)-1.1&&l+1<k.length&&11>k.start(l+1)-k.end(l)&&(l=k.start(l+1)+.2,.2>Math.abs(e.za-l)||(e.S("ctmp","seekover","b."+Qt(k,"_")+";cmt."+f),e.za=l,e.seekTo(l,{Al:!0})))}e=a.B;if(g.eH(c,1024)||g.eH(c,2048)||g.eH(c,512)||g.eH(c,4))e.w&&(f=e.w,0<=f.A||(f.w=-1,f.B.stop())),e.o&&(f=e.o,f.o.fa("html5_qoe_user_intent_match_health")&&!f.A&&(f.B=-1));e.u&&(f=e.u,f.ea()||(g.V(c.state,2)?
(f.B="paused",g.eH(c,2)&&f.w&&LH(f).send()):g.V(c.state,8)?(f.B="playing",f.w&&isNaN(f.C)&&IH(f,!1)):f.B="paused",f.A&&g.V(c.state,128)&&(f.F("error-100"),g.Qo(f.A))));if(e.o){f=e.o;k=c.state;l=g.ZG(f.o);var m=Oja(f,c.state);if(m!=f.w){if(!(l<f.C)){if("PL"==f.w)f.R+=l-f.C;else if("B"==f.w&&f.L){f.L=!1;var n=g.Q(f.o.o.experiments,"html5_disable_last_state_change")?f.C:f.da;f.U+=l-n;!f.ba&&10<=f.U&&180>=f.R&&(f.o.F(),f.u.qoealert=["1"],f.ba=!0)}"B"!=m||"PL"!=f.w&&"PB"!=f.w||(f.L=!0);f.C=l}"B"==m&&"PL"==
f.w||f.o.videoData.wg?oH(f,l):mH(f,l);"PL"===m&&g.An(f.Ia);g.jH(f,l,"vps",[m]);f.w=m;f.da=l;f.C=l;f.I=!0}m=k.u;g.V(k,128)&&m&&qH(f,l,m.errorCode,m.FB);(g.V(k,2)||g.V(k,128))&&f.nk(l);f.o.fa("html5_qoe_user_intent_match_health")?k.ab()&&!f.A&&(0<=f.B&&(f.u.user_intent=[f.B.toString()]),f.A=!0):g.V(k,8)&&f.o.videoData.Ui&&!f.A&&(f.u.user_intent=[l.toString()],f.A=!0);pH(f)}e.w&&(e=e.w,hH(e),e.o=c.state,0<=e.A&&g.eH(c,16)&&e.L++,c.state.isError()&&e.C());if(d&&!a.ea())try{for(var p=g.q(a.Xb),t=p.next();!t.done;t=
p.next()){var u=t.value,z=a.R;c=u;if(z.started&&(z.u(),g.V(c.Gh,16))){c=z;var B=qF(c.o,Math.max(c.A-2E3,0));!isNaN(B)&&0x7ffffffffffff>B&&c.B.start()}a.S("statechange",u)}}finally{a.Xb.length=0}}};
vK=function(a,b){g.V(a.u,128)||(uJ(a,QC(a.u,1028,9)),a.Qa("dompaused",b),a.S("onDompaused"))};
CJ=function(a){if(!a.o||!a.T.wa)return!1;var b=null;a.T.wa.o?(b=gK(a),a.w.resume()):(oJ(a),a.T.le&&(b=a.T.le.Wl()));var c=b;var d=a.o.Ro();b=!1;d&&null!==c&&c.o===d.o||(a.I.tick("vta"),TA("vta"),0<a.getCurrentTime()&&(b=a.getCurrentTime(),a.C.F=b),a.o.Vj(c),a.G&&dq(4),!a.T.se&&g.SC(a.u)&&a.oa.start(),b=!0);g.V(a.u,2)||(c=a.C,c.G||!(0<c.F)||c.o&&0<c.o.getCurrentTime()||c.seekTo(c.F));a:if(c=b,g.BB(a.T)&&a.o)if((d=a.T.wc)&&a.o.Bh()){var e=a.o.ib();if(a.F)if(e!=a.F.P)mJ(a);else if(c&&"fairplay"==d.flavor&&
!ml())mJ(a);else break a;a.F=new EG(e,a.T,a.A);a.F.subscribe("licenseerror",a.IG,a);a.F.subscribe("qualitychange",a.dL,a);a.F.subscribe("heartbeatparams",a.GG,a);a.F.subscribe("keystatuseschange",a.HG,a);a.F.subscribe("hdproberequired",a.cL,a);a.F.subscribe("ctmp",a.Qa,a);c=g.q(a.za.keys);for(d=c.next();!d.done;d=c.next())d=a.za.get(d.value),IG(a.F,d);YJ(a,"html5_eme_loader_sync")||(a=a.za,a.keys=[],a.values=[])}else g.kJ(a,"fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return b};
mJ=function(a){a.F&&(a.F.dispose(),a.F=null)};
Eka=function(a){a.A.A.w=!1;a.B.onError("qoe.restart",Ws({e:"fmt.noneavailable",detail:"hdr"}));BJ(a).then(function(){return CJ(a)})};
wK=function(a,b){b=void 0===b?!1:b;return a.T.sa&&(a.isAtLiveHead()&&(YJ(a,"html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.V(a.u,4))||yI(a.C)||g.JB(a.T))?a.getCurrentTime():cK(a,b)};
cK=function(a,b){return a.C.tc(void 0===b?!1:b)};
g.xK=function(a,b){(a.Hc=b)||a.oa.stop();if(a.T.ia)if(b)a.T.ia.resume();else{var c=a.T.ia;c.A&&c.A.stop()}g.P(a.A.experiments,"html5_suspend_loader")&&a.w&&(b?a.w.resume():SJ(a,!0));g.P(a.A.experiments,"html5_fludd_suspend")&&(g.V(a.u,2)||b?g.V(a.u,512)&&b&&uJ(a,PC(a.u,512)):uJ(a,OC(a.u,512)));c=a.B;c.o&&(c=c.o,g.jH(c,g.ZG(c.o),"stream",[b?"A":"I"]))};
yK=function(a){return a.o?a.o.Po():a.Kc};
zK=function(a){a.o&&(a.G?(mJ(a),RJ(a),gK(a)):(a.T.le&&a.T.le.tu(),a.o.stopVideo()),a.playVideo())};
AK=function(a,b){g.P(a.A.experiments,"html5_log_rebuffer_reason")&&a.Qa("bufreason","r."+b+";lact."+iq())};
BK=function(a,b){if(a.T.wg){var c=g.Q(a.A.experiments,"html5_log_rebuffer_events");if(c&&a.o){var d=a.o.Xa();d.rt=g.ZG(a.B.A).toFixed(3);d.e=b.substr(0,3);a.Uc[a.Xf++%c]=Ws(d)}}};
uK=function(a){if(a.T.wg){for(var b=g.q(a.Uc),c=b.next();!c.done;c=b.next())a.Qa("vpe",c.value);a.Uc=[];a.Xf=0}};
GJ=function(a,b){a.Qa("seekreason",b)};
CK=function(a){if(il("cobalt")&&il("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Qa("nxdock",""+ +b)}};
YJ=function(a,b){return g.P(a.A.experiments,b)};
SJ=function(a,b){EF(a.w,b||$J(a))};
$J=function(a){var b=YJ(a,"disable_prefetch_when_ad_pending_for_living_room")&&g.cz(a.A),c=YJ(a,"disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.cb(a.V,"ad")};
xka=function(a){if(lB(a.T,"html5_set_debugging_opt_in")&&(a=Dr.getInstance(),!Fr(0,183))){var b="f"+(Math.floor(183/31)+1),c=Er(b)||0;c|=268435456;0==c?delete Cr[b]:(c=c.toString(16),Cr[b]=c.toString());a.save()}};
EK=function(){this.o={};var a=Uq("CONSISTENCY");a&&DK(this,{encryptedTokenJarContents:a})};
DK=function(a,b){if(b.encryptedTokenJarContents&&(a.o[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.o[b.encryptedTokenJarContents]},1E3*c);
g.Tq("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
FK=function(a){var b=g.L("INNERTUBE_CONTEXT");if(!b)return g.$q(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};b=g.Tb(b);b.client||(b.client={});var c=b.client;c.screenWidthPoints=window.innerWidth;c.screenHeightPoints=window.innerHeight;c.screenPixelDensity=Math.round(window.devicePixelRatio)||1;c.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var d=void 0===d?!1:d;Dr.getInstance();var e=Fr(0,165)?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";g.Eo("kevlar_apply_prefers_color_theme")&&
(e=Fr(0,165)?"USER_INTERFACE_THEME_DARK":Fr(0,174)?"USER_INTERFACE_THEME_LIGHT":window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT");d=d?e:bfa()||e;c.userInterfaceTheme=d;(d=Uq("EXPERIMENTS_DEBUG"))?c.experimentsToken="ZERO"===d?"GgIQAQ%3D%3D":d:delete c.experimentsToken;c=Go();EK.o||(EK.o=new EK);d=g.Ib(EK.o.o);b.request=Object.assign(Object.assign({},b.request),
{internalExperimentFlags:c,consistencyTokenJars:d});c=Fr(Dr.getInstance(),58);b.user=Object.assign({},b.user);c&&(b.user.enableSafetyMode=c);if(c=g.L("DELEGATED_SESSION_ID"))b.user.onBehalfOfUser=c;if(c=g.ks())b.clientScreenNonce=c;a&&(b.clickTracking={clickTrackingParams:a});return b};
GK=function(a,b,c){this.o=a;this.w=b;this.u=c};
HK=function(a,b,c,d){GK.o=new GK(a,b,d)};
JK=function(a,b){var c=void 0===c?IK:c;a:{var d,e;if((null===(d=b.signalServiceEndpoint)||void 0===d?0:d.signal)&&a.o.CO&&(d=a.o.CO[b.signalServiceEndpoint.signal])){var f=new d;break a}if((null===(e=b.continuationCommand)||void 0===e?0:e.request)&&a.o.hE&&(e=a.o.hE[b.continuationCommand.request])){f=new e;break a}for(f in b)if(a.o.ir[f]&&(e=a.o.ir[f])){f=new e;break a}f=void 0}if(!f)return a.u(new Zq("Error: No request builder found for command.",b)),Gf({});e={context:FK(b.clickTrackingParams)};
(d=f.u(b))?f.o(e,d):(g.$q(new Zq("Error: Failed to create Request from Command.",b)),e=void 0);if(!e)return a.u(new Zq("Error: Failed to build request for command.",b)),Gf({});var k;var l;(d=null===(l=null===(k=b.commandMetadata)||void 0===k?void 0:k.webCommandMetadata)||void 0===l?void 0:l.apiUrl)?(k=wq(d,{key:g.L("INNERTUBE_API_KEY")}),(l=g.L("INNERTUBE_HOST_OVERRIDE"))&&(k=String(l)+String(sd(k)))):k=void 0;return k?Fka(a,e,k,c,f.w()):(a.u(new Zq("Error: No API URL provided for command (yaqs/6180475663155200).",
b)),Gf({}))};
Fka=function(a,b,c,d,e){d=void 0===d?IK:d;var f=JSON.stringify(b),k=xq(c)?"same-origin":"cors",l=xq(c)?"same-origin":"include";return Gka().then(function(m){m={method:"POST",mode:k,headers:m,body:f};g.Eo("op_credentials_killswitch")||(m.credentials=l);var n;e&&(n=Object.assign({IT:c,JT:m,identity:d,requestTime:(0,g.N)()},e));return a.w.fetch(c,m,n)}).then(function(m){return Gf(m)})};
Gka=function(){return Hka().then(function(a){a=Object.assign({"Content-Type":"application/json","X-Goog-Visitor-Id":g.L("VISITOR_DATA")},a);return Gf(a)})};
KK=function(a){hC.call(this,a);this.P=null};
g.LK=function(a){return a.app.A};
g.MK=function(a){a=g.LK(a).u.get("endscreen");return!!a&&a.Cy()};
NK=function(a){a=g.LK(a);var b=a.u.get("endscreen");return b&&b.Dy()?!0:a.Bm()||g.Xy(a.o.M())};
g.OK=function(a,b){3==a.getPresentingPlayerType()?a.S("mdxautoplaycancel"):a.S("autonavcancel",b)};
g.QK=function(a,b){return PK(a.app,b)};
g.RK=function(a){return a.app.I};
g.TK=function(a){var b=g.SK(g.LK(a));return a.app.ba&&!a.isFullscreen()||3==a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Ey()||!!a.getPlaylist()};
g.UK=function(a,b,c){a.app.w.Fi(new Vs(b,!1,c))};
g.VK=function(a){var b={};a=UJ(g.W(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.XK=function(a){return(a=g.WK(g.LK(a)))?a.yG():{}};
g.ZK=function(a){a=g.YK(g.LK(a));return!!a&&a.Ql()};
g.$K=function(a){a=g.YK(g.LK(a));return!!a&&a.By()};
g.aL=function(a,b,c){var d=g.fC(a);if(d)return d.nt(b,c);a=a.app.I.getPlayerSize();return new g.uh(0,0,a.width,a.height)};
cL=function(a){a=bL(g.LK(a));return!!a&&a.tG()};
dL=function(a){a=g.LK(a).u.get("heartbeat");return!!a&&a.uG()};
g.fL=function(a,b,c){eL(a.app,b,c)};
g.gL=function(a,b,c){(a=g.W(a.app,c))&&NJ(a,b)};
g.hL=function(a){a=(a=a.getVideoData())&&a.Ba;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!=a.mimeType};
g.iL=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.fe)};
g.jL=function(a,b,c){a=g.RK(a).element;var d=tb(a.children,function(e){e=parseInt(e.getAttribute("data-layer"),10);return c-e||1});
0>d&&(d=-(d+1));g.ve(a,b,d);b.setAttribute("data-layer",c)};
g.kL=function(a){var b=a.M();if(!b.jb)return!1;var c=a.getVideoData();if(!c||3==a.getPresentingPlayerType())return!1;var d=!c.isLiveDefaultBroadcast||g.P(b.experiments,"allow_poltergust_autoplay");d=c.sa&&(!g.P(b.experiments,"allow_live_autoplay")||!d);var e=c.sa&&g.P(b.experiments,"allow_live_autoplay_on_mweb"),f=!!a.getPlaylist();g.P(b.experiments,"player_allow_autonav_after_playlist")&&(f=(a=a.getPlaylist())&&a.hasNext());return!c.ypcPreview&&(!d||e)&&!g.cb(c.Rc,"ypc")&&!f};
g.lL=function(a,b,c,d){a.M().Z&&Ika(a.app.oa,b,c,d)};
g.mL=function(a,b,c){a.M().Z&&Jka(a.app.oa,b,c)};
g.nL=function(a,b,c){a.M().Z&&(a.app.oa.o.has(b),c&&(b.visualElement=g.cs(c)))};
g.oL=function(a,b){a.M().Z&&a.app.oa.click(b)};
g.pL=function(a,b,c){if(a.M().Z&&(a=a.app.oa,a.o.has(b),c?a.u.add(b):a.u["delete"](b),c&&!a.A.has(b))){c=g.ks();var d=b.visualElement;c&&d&&g.Bs(c,d);a.A.add(b)}};
g.qL=function(a,b){return a.M().Z?a.app.oa.o.has(b):!1};
g.tL=function(a,b){if(a.app.getPresentingPlayerType()==b){var c=a.app,d=g.W(c,b);d&&(d!=c.w?rL(c,c.w):sL(c))}};
Kka=function(a){if(!a.fa("html5_inline_video_quality_survey"))return!1;var b=g.W(a.app);if(!b)return!1;var c=b.getVideoData();if(!c.Ba||!c.Ba.video||1080>c.Ba.video.fc||c.Rx)return!1;var d=/^qsa/.test(c.clientPlaybackNonce),e="r";0<=c.Ba.id.indexOf(";")&&(d=/^[a-p]/.test(c.clientPlaybackNonce),e="x");a.fa("html5_inline_video_quality_survey_always")&&(d=!0,e="a");return d?(b.Qa("iqss",e,!0),!0):!1};
uL=function(a,b){document.requestStorageAccess().then(a,b)};
vL=function(a){if(a){var b=[],c;for(c in a)Lka.has(c)||b.push(c);b.length&&(b.sort(),g.ar(new Zq("Unknown house brand player vars:",b)))}};
g.wL=function(a){g.O.call(this);this.loaded=!1;this.player=a};
g.xL=function(a,b){return qt(a.info.mimeType)?b?jt(a.info)===b:!0:!1};
g.yL=function(a,b){if(null!=a.ia&&g.oz(b.M())&&!a.ia.u&&null!=a.ia.o.rawcc)return!0;if(!a.Df())return!1;var c=!!a.ia&&a.ia.u&&Object.values(a.ia.o).some(function(e){return g.xL(e,"386")}),d=!!a.ia&&!a.ia.u&&rga(a.ia);
return c||d};
zL=function(a,b){g.A.call(this);this.F=b;this.u=new Map;this.w={};this.A={};this.C=null;this.o=a;this.B=g.P(a.M().experiments,"web_player_defer_modules")};
g.AL=function(a){return a.u.get("captions")};
Nka=function(a,b){switch(b){case "ad":return BL(a);case "annotations_module":var c=a.o.M();if(Yy(c))c=!1;else{var d=a.o.getVideoData();c=d.ey||"3"==c.controlsType?!1:c.I.isEmpty()&&"annotation-editor"!=c.playerStyle&&"live-dashboard"!=c.playerStyle?!!d.be||!!g.NB(d)||!!g.OB(d):!0}return c;case "attribution":return c=a.o.M(),g.P(c.experiments,"web_player_show_music_in_this_video")&&"desktop-polymer"==c.playerStyle;case "creatorendscreen":return c=a.o.M(),"3"==c.controlsType?c=!1:"creator-endscreen-editor"==
c.playerStyle?c=!0:(c=a.o.getVideoData(),c=!!c&&(!!g.LB(c)||!!g.MB(c))),c;case "embed":return g.Oy(a.o.M());case "endscreen":return g.CL(a);case "fresca":return a.o.getVideoData().On;case "heartbeat":return a.o.getVideoData().Rm;case "kids":return ez(a.o.M());case "remote":return a.o.M().ac;case "miniplayer":return a.o.M().showMiniplayerUiWhenMinimized;case "music":return g.Xy(a.o.M());case "captions":return"lb3"==a.o.M().playerStyle?c=!1:(c=a.o.getVideoData(),c=!!c.Sk||!!c.captionTracks.length||
g.yL(c,a.o)),c;case "unplugged":return g.dz(a.o.M());case "ux":return a.o.M().ya;case "visualizer":return g.DL(a);case "webgl":return Mka(a);case "ypc":return a.Bm();case "ypc_clickwrap":return c=a.o.getVideoData(),c.Fk&&!c.As;case "yto":return!!a.o.getVideoData().Rc.includes("yto");default:return g.$q(Error("Module descriptor "+b+" does not match")),!1}};
EL=function(a){a.B&&(a.sd("endscreen"),a.kr(),a.sd("creatorendscreen",void 0,!0))};
g.CL=function(a){var b=a.o.M();if(g.uz(b)||b.B||!b.za&&!b.Sa)return!1;var c=a.o.getPresentingPlayerType();if(2==c)return!1;if(3==c)return g.P(b.experiments,"desktop_enable_autoplay");a=a.o.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||g.P(b.experiments,"allow_poltergust_autoplay");c=a.sa&&(!g.P(b.experiments,"allow_live_autoplay")||!c);b=a.sa&&g.P(b.experiments,"allow_live_autoplay_on_mweb");return!c||b};
g.WK=function(a){return a.u.get("webgl")};
Mka=function(a){var b=a.o.getVideoData(),c=a.o.M().experiments,d=g.pl(),e=g.P(c,"enable_spherical_kabuki");a=g.sz(a.o.M());if(b.sg())return d||e||a||g.P(c,"html5_enable_spherical");if(b.xg())return a||d||e||g.P(c,"html5_enable_spherical");if(b.yg())return a||d||g.P(c,"html5_enable_spherical3d");if(b.Jj())return a||g.P(c,"html5_enable_anaglyph3d")||!1;d=b.Ba&&b.Ba.video&>(b.Ba.video);return a&&!g.BB(b)&&!b.isVisualizerEligible&&!d&&(g.P(c,"enable_webgl_noop")||g.P(c,"html5_enable_bicubicsharp")||
g.P(c,"html5_enable_smartsharp"))};
FL=function(a){g.P(a.o.M().experiments,"web_player_ux_module_wait")&&a.u.get("ux")&&g.gL(a.o,"ux")};
Oka=function(a){FL(a);a.sd("ux",void 0,!0)};
BL=function(a){if(a=a.o.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
g.DL=function(a){var b=a.o.M();return a.o.getVideoData().isVisualizerEligible&&tz(b)&&g.P(b.experiments,"web_player_music_visualizer")&&"desktop-polymer"==b.playerStyle&&g.sz(b)&&!(g.zu&&!g.Nd(42))};
GL=function(a,b,c){for(var d=g.q(a.u),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;(f=f.next().value)&&(c||f.Pf(b))&&(g.Ke(f),a.u["delete"](e))}};
HL=function(a){return a.u.get("ad")};
IL=function(a){return ez(a.o.M())?a.u.get("kids"):null};
g.SK=function(a){return a.o.M().ac?a.u.get("remote"):null};
JL=function(a){return g.dz(a.o.M())?a.u.get("unplugged"):null};
eC=function(a){return a.o.M().ya?a.u.get("ux"):null};
g.YK=function(a){return a.u.get("annotations_module")};
KL=function(a){return a.u.get("creatorendscreen")};
bL=function(a){return a.u.get("fresca")};
ML=function(a,b,c){if(a.F){for(var d=a.F+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.re("SCRIPT"),k.setAttribute("data-original-src",d),f=!0);var n=function(){a.ea()||c.call(a)},p=function(){a.ea()||g.gL(a.o,b)};
k.onload=g.Ta(function(t){qf(n);t&&t()},k.onload);
k.onerror=g.Ta(function(t){if(.01>Math.random()){var u=new Zq("Unable to load player module",b+".js from "+d+" on "+(document.location&&document.location.origin)+".");g.$q(u)}qf(p);t&&t()},k.onerror);
k.onreadystatechange=g.Ta(function(t){switch(k.readyState){case "loaded":case "complete":qf(n,this)}t&&t()},k.onreadystatechange);
f&&((e=a.o.M().qd)&&k.setAttribute("nonce",e),bd(k,lh(d)),e=document.getElementsByTagName("HEAD")[0]||document.body,e.insertBefore(k,e.firstChild),g.Je(a,function(){k.parentNode&&k.parentNode.removeChild(k);g.LL[b]=null;"annotations_module"==b&&(g.LL.creatorendscreen=null)}))}};
g.NL=function(a){g.zC.call(this);this.o=a;this.u={}};
OL=function(){this.o=[];this.u=[];this.w=[]};
QL=function(a,b,c){c=g.re(c?"AUDIO":"VIDEO");g.Ua(c,Pka);g.Lp(c,"loadeddata",(0,g.x)(c.u,c));Vy&&6<=WB&&g.Lp(c,"webkitbeginfullscreen",(0,g.x)(c.play,c));a.u.push(c);b?a.w.push(c):PL(a,c);return c};
PL=function(a,b){g.cb(a.u,b)&&!g.cb(a.o,b)&&(b.src||b.load(),g.gb(a.w,b)||a.o.push(b))};
Qka=function(){this.u=200;this.o=12};
Rka=function(a){var b=new Qka;b.u=g.Q(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.o=g.Q(a.experiments,"html5_gapless_max_played_ranges");return b};
g.RL=function(a,b,c,d){d=void 0===d?!1:d;g.zC.call(this);this.o=a;this.u=b;this.A=c;this.G=d};
Ska=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";if(xI(b.C)>d/1E3+1)return"in-the-past";if(f.sa&&!isFinite(d))return"live-infinite";if(a.o&&((b=b.o)&&b.isView()&&(b=b.o),b&&b.yj().length>a.o&&g.BB(e)))return"played-ranges";if(!e.wa)return null;if(!e.wa.o||!f.wa.o)return"non-dash";if(e.wa.videoInfos[0].containerType!=f.wa.videoInfos[0].containerType)return"container";if(g.BB(f)&&g.BB(e))return"content-protection";a=f.wa.o[0].audio;
e=e.wa.o[0].audio;return a.sampleRate==e.sampleRate||g.Gt?(a.o||2)!=(e.o||2)?"channel-count":null:"sample-rate"};
TL=function(a,b,c,d){g.A.call(this);var e=this;this.R=a;this.o=b;this.u=c;this.B=this.A=null;this.F=d-1E3*b.Bb();this.G=-1;this.I=!1;this.C=new $C;this.C.then(void 0,function(){});
this.P=new g.H(function(){return SL(e,"timeout")},1E4);
g.C(this,this.P);this.L=isFinite(d);this.w={status:0,error:null}};
Tka=function(a){var b,c,d,e,f,k;return g.Da(function(l){if(1==l.o){if(a.ea())return l["return"](Promise.reject(Error(a.w.error||"disposed")));a.P.start();return g.ua(l,a.C,2)}b=a.o.o;if(b.Af())return SL(a,"ended_in_finishTransition"),l["return"](Promise.reject(Error(a.w.error)));if(!a.B||!au(a.B))return SL(a,"next_mse_closed"),l["return"](Promise.reject(Error(a.w.error)));if(a.u.G!=a.B)return SL(a,"next_mse_mismatch"),l["return"](Promise.reject(Error(a.w.error)));c=UL(a);d=c.Vz;e=c.Uz;PJ(a.o,!1,!0);
f=VL(b,d,e,!a.u.getVideoData().isAd());QJ(a.u,f);a.L&&(a.u.seekTo(a.u.getCurrentTime()+.001,{Al:!0,Lu:3}),f.play());k=b.Xa();k.cpn=a.o.getVideoData().clientPlaybackNonce;k.st=""+d;k.et=""+e;a.u.Qa("gapless",Ws(k));a.o.Qa("gaplessTo",a.u.getVideoData().clientPlaybackNonce);g.xf(function(){!a.u.getVideoData().se&&g.SC(a.u.getPlayerState())&&tK(a.u)});
WL(a,6);a.dispose();return l["return"](Promise.resolve())})};
ZL=function(a){if(a.u.getVideoData().wa){iK(a.u,a.B);WL(a,3);XL(a);var b=YL(a),c=b.ZB;b=b.zO;c.subscribe("updateend",a.bk,a);b.subscribe("updateend",a.bk,a);a.bk(c);a.bk(b)}};
XL=function(a){a.o.unsubscribe("internalvideodatachange",a.Xh,a);a.u.unsubscribe("internalvideodatachange",a.Xh,a);a.o.unsubscribe("mediasourceattached",a.Xh,a);a.u.unsubscribe("statechange",a.rz,a)};
VL=function(a,b,c,d){return new g.RL(a.isView()?a.o:a,b,c,d)};
WL=function(a,b){b<=a.w.status||(a.w={status:b,error:null},5==b&&a.C.resolve(void 0))};
SL=function(a,b){if(!a.ea()&&!a.isFinished()){var c=4<=a.w.status&&"player-reload-after-handoff"!==b;a.w={status:Infinity,error:b};if(a.o&&a.u){var d=a.u.getVideoData().clientPlaybackNonce;a.o.Qa("gaplessError","cpn."+d+";msg."+b);d=a.o;d.T.Cf=!1;c&&eK(d);d.w&&(c=d.w,c.o.Z=!1,c.w&&WF(c))}a.C.reject(void 0);a.dispose()}};
UL=function(a){var b=a.o.o;b=b.isView()?b.u:0;var c=a.o.getVideoData().sa?Infinity:wK(a.o,!0);c=Math.min(a.F/1E3,c)+b;var d=a.L?100:0;a=c-xI(a.u.C)+d;return{pE:b,Vz:a,oE:c,Uz:Infinity}};
YL=function(a){return{ZB:a.A.o.o,zO:a.A.u.o}};
$L=function(a){g.A.call(this);var b=this;this.w=a;this.C=this.u=this.o=null;this.G=!1;this.B=null;this.I=Rka(this.w.M());this.A=null;this.F=function(){return g.xf(function(){return Uka(b)})}};
Vka=function(a,b,c,d){d=void 0===d?0:d;a.o&&aM(a);a.B=new $C;a.o=b;var e=c,f=a.w.kb(),k=f.getVideoData().sa?Infinity:1E3*wK(f,!0);e>k&&(e=k-a.I.u,a.G=!0);f.getCurrentTime()>=e/1E3?a.F():(a.u=f,a.w.addEventListener(g.pC("vqueued"),a.F),e=isFinite(e)||e/1E3>a.u.getDuration()?e:0x8000000000000,a.C=new g.mC(e,0x8000000000000,{namespace:"vqueued"}),a.u.addCueRange(a.C));f=d/=1E3;e=b.getVideoData().ia;if(d&&e&&a.u){k=d;var l=0;b.getVideoData().sa&&(f=Math.min(c/1E3,wK(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),
k=Math.min(d,wK(b)+l));f=Cga(e,k)||d;f!=d&&a.o.Qa("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+k))}b=f;a.o.getVideoData().Ui=!0;a.o.getVideoData().Cf=!0;AJ(a.o,!0);d="";a.u&&(d=g.ZG(a.u.B.A),e=a.u.getVideoData().clientPlaybackNonce,d="crt."+(1E3*d).toFixed()+";cpn."+e);a.o.Qa("queued",d);0!=b&&a.o.seekTo(b+.01,{Al:!0,Lu:3});a.A=new TL(a.I,a.w.kb(),a.o,c);c=a.A;Infinity!=c.w.status&&(WL(c,1),c.o.subscribe("internalvideodatachange",c.Xh,c),c.u.subscribe("internalvideodatachange",c.Xh,c),c.o.subscribe("mediasourceattached",
c.Xh,c),c.u.subscribe("statechange",c.rz,c),c.o.subscribe("newelementrequired",c.EA,c),c.Xh());return a.B};
Uka=function(a){var b,c,d;return g.Da(function(e){switch(e.o){case 1:if(a.ea()||!a.B||!a.o)return e["return"]();a.G&&iJ(a.w.kb(),!0,!1);b=null;if(!a.A){e.o=2;break}e.B=3;return g.ua(e,Tka(a.A),5);case 5:va(e,2);break;case 3:b=c=wa(e);case 2:bM(a.w.app,a.o);var f=a.o.getPlayerType();g.cM(a.w.app,f);a.w.playVideo();b&&(f=a.o,f.Qa("newelem",b.message),eK(f));d=a.B;aM(a);return e["return"](d.resolve(void 0))}})};
aM=function(a){a.u&&(a.w.removeEventListener(g.pC("vqueued"),a.F),a.u.removeCueRange(a.C),a.u=null,a.C=null);if(a.A){if(!a.A.isFinished()){var b=a.A;Infinity!=b.w.status&&SL(b,"Canceled")}a.A=null}a.B=null;a.o=null;a.G=!1};
eM=function(a,b,c){g.A.call(this);var d=this;this.A=a;this.P=b;c.getPlayerType();this.u=c;wka(this.u,this);this.F=new Map;this.o=[];this.G=NaN;this.B=this.w=null;this.C=new g.H(function(){dM(d,d.G)});
g.C(this,this.C);this.I=new g.Nr(this);g.C(this,this.I);this.I.K(this.A,g.pC("childplayback"),this.L)};
Yka=function(a,b,c,d,e){var f=a.u;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.o);for(var m=k.next();!m.done;m=k.next()){m=m.value;if(d>=m.Jb&&d<m.Nb||e<=m.Nb&&e>m.Jb||e==m.Jb)return"";d==m.Nb&&(l=m)}k="childplayback_"+Wka++;m={Pb:fM(c,!0),Ge:Infinity,target:null};var n=b.raw_player_response;if(!n&&!g.P(a.P.experiments,"web_player_parse_ad_response_killswitch")){var p=b.player_response;p&&(n=JSON.parse(p))}b={Db:k,playerVars:b,
playerType:2,durationMs:c,Jb:d,Nb:e,Ne:m,playerResponse:n};a.o=a.o.concat(b).sort(function(t,u){return t.Jb-u.Jb});
l?Xka(l,{Pb:fM(l.durationMs,!0),Ge:Infinity,target:b}):(d={Pb:fM(d,!1),Ge:d,target:b},a.F.set(d.Pb,d),f.addCueRange(d.Pb));return k};
fM=function(a,b){return new g.mC(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
Xka=function(a,b){a.Ne=b};
gM=function(a,b){for(var c=0,d=g.q(a.o),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.Jb/1E3+c,k=f+e.durationMs/1E3;if(f>b)break;if(k>b)return{di:e,Pi:b-f};c=k-e.Nb/1E3}return{di:null,Pi:b-c}};
dM=function(a,b){var c=a.B||a.A.kb().getPlayerState();hM(a,!0);var d=gM(a,b).Pi;a.u.seekTo(d);d=a.A.kb();var e=d.getPlayerState();g.SC(c)&&!g.SC(e)?d.playVideo():g.V(c,4)&&!g.V(e,4)&&d.pauseVideo()};
hM=function(a,b){a.G=NaN;a.C.stop();a.w&&b&&dK(a.w);a.B=null;a.w=null};
jM=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.F),k=f.next();!k.done;k=f.next()){var l=g.q(k.value);k=l.next().value;l=l.next().value;l.Ge>=d&&l.target&&l.target.Nb<=e&&(a.u.removeCueRange(k),a.F["delete"](k))}d=b;e=c;f=[];k=g.q(a.o);for(l=k.next();!l.done;l=k.next())l=l.value,(l.Jb<d||l.Nb>e)&&f.push(l);a.o=f;d=gM(a,b/1E3);b=d.di;d=d.Pi;b&&(d*=1E3,iM(b,d,b.Jb+d));gM(a,c/1E3)};
iM=function(a,b,c){a.durationMs=b;a.Nb=c;b={Pb:fM(b,!0),Ge:b,target:null};a.Ne=b};
gja=function(a,b,c){a=gM(a,b).di;var d=c.toString().split(";")[0];return a&&a.playerResponse&&a.playerResponse.streamingData&&(c=a.playerResponse.streamingData.adaptiveFormats)&&(c=c.find(function(e){return e.itag==d}))&&c.url?c.url:null};
lM=function(a,b,c){g.A.call(this);var d=this;this.o=a;this.C=b;c.getPlayerType();this.w=c;this.G=new Map;this.u=[];this.A=this.P=null;this.U=NaN;this.I=this.B=null;this.R=new g.H(function(){kM(d,d.U)});
g.C(this,this.R);this.L=[];this.V=new g.H(function(){var e=d.L.pop();if(e){var f=e.Db,k=e.playerVars;e=e.playerType;k.prefer_gapless=!0;d.o.preloadVideoByPlayerVars(k,e,NaN,"",f);d.L.length&&g.An(d.V,4500)}});
g.C(this,this.V);this.F=new g.Nr(this);g.C(this,this.F);this.F.K(this.o,g.pC("childplayback"),this.II);this.F.K(this.o,"onQueuedVideoLoaded",this.rM);this.F.K(this.o,"presentingplayerstatechange",this.JI)};
$ka=function(a,b,c,d,e){var f=a.w;e=void 0==e?d+c:e;if(d>e)return mM(a,"e.enterAfterReturn enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var k=1E3*f.Ab();if(d<k)return mM(a,"e.enterBeforeMinSeekable enterTimeMs="+d+"is less than parentMinSeekableTimeMs="+k),"";k=1E3*f.getDuration();if(e>k)return mM(a,"e.returnAfterDuration parentReturnTimeMs="+e+" is greater than parentDurationMs="+k),"";var l;k=g.q(a.u);for(var m=k.next();!m.done;m=k.next()){m=m.value;if(d>=m.Jb&&d<m.Nb)return mM(a,
"e.overlappingEnter"),"";if(e<=m.Nb&&e>m.Jb)return mM(a,"e.overlappingReturn"),"";if(e==m.Jb)return mM(a,"e.outOfOrder"),"";d==m.Nb&&(l=m)}k="childplayback_"+Zka++;m={Pb:nM(c,!0),Ge:Infinity,target:null};var n={Db:k,playerVars:b,playerType:2,durationMs:c,Jb:d,Nb:e,Ne:m};a.u=a.u.concat(n).sort(function(u,z){return u.Jb-z.Jb});
l?oM(a,l,{Pb:nM(l.durationMs,!0),Ge:a.C.fa("timeline_manager_transition_killswitch")?Infinity:l.Ne.Ge,target:n}):(b={Pb:nM(d,!1),Ge:d,target:n},a.G.set(b.Pb,b),f.addCueRange(b.Pb));b=g.P(a.C.experiments,"html5_gapless_preloading");if(a.w==a.o.kb()&&(f=1E3*f.getCurrentTime(),f>=n.Jb&&f<n.Nb)){var p=a.o.kb().getPlayerState(),t=f-n.Jb;qf(function(){pM(a,n,t/1E3,p)});
b=!1}b&&(a.L.unshift(n),g.An(a.V,0));return k};
nM=function(a,b){return new g.mC(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
ala=function(a,b,c,d){a.A=d;qM(a.o.app,a.w,c,void 0===b?0:b)};
rM=function(a,b,c,d){a.A=d;d=b.Db;var e=b.playerVars,f=b.playerType;a.P=b;a.o.enqueueVideoByPlayerVars(e,f,c,d)};
oM=function(a,b,c){var d=b.Ne;b.Ne=c;sM(a,b)&&(c=a.o.kb(),d.Pb==a.A&&tM(a),c.removeCueRange(d.Pb),c.addCueRange(b.Ne.Pb))};
tM=function(a){a.P=null;a.A=null;!a.o.app.Ia.o||a.o.clearQueue()};
uM=function(a,b){sM(a,b)||mM(a,"e.childPlaybackIsNotPresenting");return b.Nb==b.Jb+b.durationMs?b.Jb+1E3*a.o.kb().getCurrentTime():b.Nb};
vM=function(a,b){for(var c=0,d=g.q(a.u),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.Jb/1E3+c,k=f+e.durationMs/1E3;if(f>b)break;if(k>b)return{di:e,Pi:b-f};c=k-e.Nb/1E3}return{di:null,Pi:b-c}};
kM=function(a,b){var c=a.I||a.o.kb().getPlayerState();wM(a,!0);if(g.P(a.C.experiments,"html5_playbacktimeline_seektoinf_killswitch")||isFinite(b))var d=b;else d=a.w.C,d=d.u?$H(d.u):Infinity;var e=vM(a,d);d=e.di;e=e.Pi;var f=d&&!sM(a,d)||!d&&a.w!=a.o.kb(),k=1E3*e;k=a.A&&a.A.start<=k&&k<=a.A.end;!f&&k||tM(a);d?pM(a,d,e,c):xM(a,e,c)};
xM=function(a,b,c){var d=a.w;if(d!=a.o.kb()){var e=d.getPlayerType();g.cM(a.o.app,e)}d.seekTo(b);yM(a,c)};
pM=function(a,b,c,d){var e=sM(a,b);if(!e){g.cM(a.o.app,b.playerType);b.playerVars.prefer_gapless=!0;var f=new g.dB(a.C,b.playerVars);f.Db=b.Db;zM(a.o.app,f,b.playerType,void 0)}f=a.o.kb();e||f.addCueRange(b.Ne.Pb);f.seekTo(c);yM(a,d)};
yM=function(a,b){var c=a.o.kb(),d=c.getPlayerState();g.SC(b)&&!g.SC(d)?c.playVideo():g.V(b,4)&&!g.V(d,4)&&c.pauseVideo()};
wM=function(a,b){a.U=NaN;a.R.stop();a.B&&b&&dK(a.B);a.I=null;a.B=null};
sM=function(a,b){var c=a.o.kb();return!!c&&c.getVideoData().Db==b.Db};
BM=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.G),k=f.next();!k.done;k=f.next()){var l=g.q(k.value);k=l.next().value;l=l.next().value;l.Ge>=d&&l.target&&l.target.Nb<=e&&(a.w.removeCueRange(k),a.G["delete"](k))}d=b;e=c;f=[];k=g.q(a.u);for(l=k.next();!l.done;l=k.next())if(l=l.value,l.Jb>=d&&l.Nb<=e){var m=a;m.P==l&&tM(m);sM(m,l)&&g.tL(m.o,l.playerType)}else f.push(l);a.u=f;d=vM(a,b/1E3);b=d.di;d=d.Pi;b&&(d*=1E3,AM(a,b,d,b.Nb==b.Jb+b.durationMs?b.Jb+d:b.Nb));vM(a,
c/1E3)};
AM=function(a,b,c,d){b.durationMs=c;b.Nb=d;d={Pb:nM(c,!0),Ge:c,target:null};oM(a,b,d);sM(a,b)&&1E3*a.o.kb().getCurrentTime()>c&&(b=uM(a,b)/1E3,c=a.o.kb().getPlayerState(),xM(a,b,c))};
mM=function(a,b){a.w.Qa("timelineerror",b)};
EM=function(a,b){g.A.call(this);var c=this;this.data=[];this.w=a||NaN;this.u=b||null;this.o=new g.H(function(){CM(c);DM(c)});
g.C(this,this.o)};
CM=function(a){var b=(0,g.N)();a.data.forEach(function(c){c.expire<b&&FM(a,c,!0)});
a.data=(0,g.xe)(a.data,function(c){return!(c.expire<b)})};
FM=function(a,b,c){c&&a.u&&a.u(b.value)};
DM=function(a){a.o.stop();var b=Infinity;for(var c=g.q(a.data),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.G)(),0),a.o.start(b))};
g.GM=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={rq:c.rq},e=d.next())e=e.value,c.rq=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.rq}}(c));
return a};
g.HM=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){var k="";0<d&&(k+=" "+d+" \u5929");if(0<d||0<e)k+=" "+e+" \u5c0f\u65f6";d=(k+(" "+f+" \u5206\u949f ")+(c+" \u79d2")).trim()}else{k="";0<d&&(k+=d+":",10>e&&(k+="0"));if(0<d||0<e)k+=e+":",10>f&&(k+="0");k+=f+":";10>c&&(k+="0");d=k+c}return 0<=a?d:"-"+d};
g.IM=function(a){return(!("button"in a)||"number"!==typeof a.button||0===a.button)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)};
g.JM=function(a,b){return sC(b)?(b.fetch=0,new g.rC(a,b)):new g.dB(a,b)};
KM=function(a){g.A.call(this);this.u=null;for(var b=[],c=0;100>=c;c++)b.push(c/100);b={threshold:b};(this.o=window.IntersectionObserver?new IntersectionObserver((0,g.x)(this.w,this),b):null)&&this.o.observe(a)};
bla=function(a,b){Io(a,"version",b)};
NM=function(a){var b=a.M();g.R.call(this,{D:"div",Y:["html5-video-player"],O:{tabindex:"-1",id:a.Qb?a.Qb.rootElementId:a.ya.attrs.id},J:[{D:"div",H:g.LM.VIDEO_CONTAINER,O:{"data-layer":"0"}}]});b.transparentBackground&&this.fm("ytp-transparent");"0"==b.controlsType&&this.fm("ytp-hide-controls");b.fa("web_wn_macro_markers")&&g.J(this.element,"ytp-exp-marker-tooltip");bla(this.element,MM(a));this.app=a;this.A=this.o[g.LM.VIDEO_CONTAINER];this.w=new g.uh(0,0,0,0);this.u=null;this.G=new g.uh(0,0,0,0);
this.L=this.V=this.U=NaN;this.C=!1;this.I=NaN;this.R=!1;this.F=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.aa=(0,g.x)(function(){this.element.focus()},this);
kz(b)&&"blazer"!=b.playerStyle&&window.matchMedia&&(this.ba="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.Z=b.useFastSizingOnWatchDefault;this.B=new g.Vd(NaN,NaN);dla(this);this.K(a.u,"onMutedAutoplayChange",this.UI)};
dla=function(a){var b=a.app.u,c=(0,g.x)(a.KF,a),d=(0,g.x)(a.LF,a),e=(0,g.x)(a.TI,a),f=(0,g.x)(a.vF,a);b.addEventListener("initializingmode",c);b.addEventListener("videoplayerreset",d);b.addEventListener("videodatachange",e);b.addEventListener("presentingplayerstatechange",f);g.Je(a,function(){b.removeEventListener("initializingmode",c);b.removeEventListener("videoplayerreset",d);b.removeEventListener("videodatachange",e);b.removeEventListener("presentingplayerstatechange",f)})};
OM=function(a){a.u&&(a.u.removeEventListener("focus",a.aa),g.we(a.u),a.u=null)};
QM=function(a){var b=g.P(a.app.M().experiments,"html5_aspect_from_adaptive_format"),c=g.W(a.app);if(c=c?c.getVideoData():null){if(c.xg()||c.yg()||c.sg())return 16/9;if(b&&c.fo()&&c.wa.o)return b=c.wa.videoInfos[0].video,PM(b.width,b.height)}return(a=a.u)?PM(a.videoWidth,a.videoHeight):b?16/9:NaN};
RM=function(a,b,c,d){var e=c;isNaN(a.L)?isNaN(a.V)||(e=a.V):e=a.L;a=PM(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};
PM=function(a,b){return 1>Math.abs(SM*b-a)||1>Math.abs(SM/a-b)?SM:a/b};
TM=function(a){if(1==a.app.getAppState())return!1;if(6==a.app.getAppState())return!0;var b=g.W(a.app);if(!b||FJ(b))return!1;var c=g.QK(a.app.u);a=!g.V(c,2)||!g.P(a.app.M().experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Cf;b=g.V(c,1024);return c&&a&&!b&&!c.isCued()};
UM=function(a){var b="3"==a.app.M().controlsType&&!a.C&&TM(a)&&!a.app.Pa||!1;a.u.controls=b;a.u.tabIndex=b?0:-1;b?a.u.removeEventListener("focus",a.aa):g.P(a.app.M().experiments,"disable_focus_redirect")||a.u.addEventListener("focus",a.aa)};
VM=function(a){var b=a.getPlayerSize(),c=1,d=!1,e=RM(a,b,a.getVideoAspectRatio()),f=rl();if(TM(a)){var k=QM(a);var l=isNaN(k)||g.zu||PG&&g.rz;sl&&!g.Nd(601)?k=e.aspectRatio:l=l||"3"==a.app.M().controlsType;l?l=new g.uh(0,0,b.width,b.height):(c=e.aspectRatio/k,l=new g.uh((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1==c&&g.rz&&(k=l.width-b.height*k,0<k&&(l.width+=k,l.height+=k)));f&&(a.u.style.display="");a.R=!0}else l=-b.height,sl?l*=window.devicePixelRatio:g.qz&&(l-=window.screen.height),
l=new g.uh(0,l,b.width,b.height),f&&(a.u.style.display="none"),a.R=!1;vh(a.G,l)||(a.G=l,g.dz(a.app.M())?(a.u.style.setProperty("width",l.width+"px","important"),a.u.style.setProperty("height",l.height+"px","important")):g.Rh(a.u,new g.Vd(l.width,l.height)),g.Fh(a.u,new g.Td(l.left,l.top)),d=!0);b=new g.uh((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);vh(a.w,b)||(a.w=b,d=!0);g.xh(a.u,"transform",1==c?"":"scaleX("+c+")");return d};
WM=function(){this.w=g.ks();this.o=new Set;this.A=new Set;this.u=new Set};
Ika=function(a,b,c,d){a.o.has(b);a.o.add(b);d=ds(d);b.visualElement=d;var e=g.ks(),f=g.is();e&&f&&g.Fs(e,f,d);g.Je(c,function(){XM(a,b)})};
Jka=function(a,b,c){a.o.has(b);a.o.add(b);g.Je(c,function(){XM(a,b)})};
XM=function(a,b){a.o.has(b);a.o["delete"](b);a.A["delete"](b);a.u["delete"](b)};
YM=function(a){if(a.w!=g.ks())if("UNDEFINED_CSN"==a.w)a.w=g.ks();else{var b=g.ks(),c=g.is();if(b&&c){a.w=b;for(var d=g.q(a.o),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&!e.Ld.trackingParams&&e.Ld.veType&&g.Fs(b,c,e)}if(b)for(a=g.q(a.u),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&!c.Ld.trackingParams&&c.Ld.veType&&g.Bs(b,c)}};
g.ZM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-cast-desktop-on"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,O:{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"}}]}};
$M=function(){return{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",O:{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.aN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-chevron-back"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},J:[{D:"path",O:{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.bN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-chevron-forward"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},J:[{D:"path",O:{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"}}]}};
cN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-clip-clear"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},J:[{D:"path",O:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{D:"path",O:{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"}}]}};
dN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-clip-end"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},J:[{D:"path",La:!0,O:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
eN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-clip-start"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},J:[{D:"path",La:!0,O:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.fN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-close"]}:{D:"svg",O:{height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{D:"path",O:{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"}}]}};
gN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-code"]}:{D:"svg",O:{height:"100%",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",O:{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"}}]}};
hN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-dislike"]}:{D:"svg",O:{viewBox:"0 0 24 24"},J:[{D:"path",O:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",O:{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"}}]}};
g.iN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-error-exclamation"]}:{D:"svg",O:{fill:"#fff",viewBox:"0 0 48 48"},J:[{D:"path",O:{d:"M0 0h48v48H0V0z",fill:"none"}},{D:"path",O:{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"}}]}};
jN=function(){return{D:"svg",O:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},J:[{D:"path",O:{d:"M0 0h48v48H0z",fill:"none"}},{D:"path",O:{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"}}]}};
g.kN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-like"]}:{D:"svg",O:{viewBox:"0 0 24 24"},J:[{D:"path",O:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",O:{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"}}]}};
lN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-link"]}:{D:"svg",O:{height:"100%",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",O:{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"}}]}};
mN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-loop-range"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},J:[{D:"path",La:!0,O:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
nN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-next"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{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.oN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-notifications-active"]}:{D:"svg",O:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},J:[{D:"path",O:{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"}}]}};
pN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-pause"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
qN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-pip"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,O:{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"}}]}};
rN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-play"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{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"}}]}};
sN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-prev"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.tN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-replay"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{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"}}]}};
g.uN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-settings"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,O:{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"}}]}};
vN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-stop"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
wN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-subtitles"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,O:{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"}}]}};
xN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-volume-high"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,O:{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"}}]}};
yN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-volume-low"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,O:{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"}}]}};
zN=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-volume-muted"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{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"}}]}};
AN=function(){};
BN=function(){AN.o||(AN.o=new AN);return AN.o};
Hka=function(){var a={},b=g.Qm();b&&(a.Authorization=b,a["X-Goog-AuthUser"]=g.L("SESSION_INDEX",0),a["X-Origin"]=g.L("INNERTUBE_HOST_OVERRIDE",window.location.origin));return Gf(a)};
CN=function(){};
DN=function(){};
EN=function(){};
FN=function(){};
GN=function(){};
HN=function(){this.A=new kba;this.u=new lba;this.w=new nba;this.o=new oba};
IN=function(){HN.o||(HN.o=new HN);return HN.o};
ela=function(a,b,c){var d=b.json();b.redirected?mba(a.u,b.status,c,od(g.qd(5,b.url))):b.ok?a.w.o.w("/client_streamz/youtube/web/network/one_platform_request_success",c):(a.o.o.w("/client_streamz/youtube/web/network/one_platform_request_failed",b.status,c),d.then(function(e){g.ar(new Zq("Error: API fetch failed",b.status,b.url,e))}));
return d};
JN=function(a,b,c,d){g.O.call(this);this.w=a;this.U=(0,g.x)(b,null);this.u=0;this.F=!1;this.B=new g.Td(NaN,NaN);this.o=new g.Nr(this);g.C(this,this.o);b=d?4E3:3E3;this.I=new g.H(g.Ta(this.Sb,1,!1),b,this);g.C(this,this.I);this.P=new g.H(g.Ta(this.Sb,2,!1),b,this);g.C(this,this.P);this.R=new g.H(g.Ta(this.Sb,512,!1),0,this);g.C(this,this.R);this.aa=c&&0<c.Wh.length?5E3:3E3;d||(this.A=this.o.K(a,"mouseover",this.Ct),this.o.K(a,"mousemove",this.KI),this.o.K(a,"mouseleave",this.DJ));zh?this.o.K(a,"keypress",
this.dG):this.o.K(a,"focusin",this.FE);this.C=this.o.K(a,"mousedown",this.zz);this.G=this.o.K(a,"touchstart",this.Bz,void 0,!0);this.V=null;this.Sb(640,!0)};
KN=function(a){a.Sb(4,!1);a.L&&(a.o.Za(a.L),a.L=null,a.A=a.o.K(a.w,"mouseover",a.Ct));a.A&&(a.o.Za(a.A),a.A=a.o.K(a.w,"mouseover",a.Ct))};
g.LN=function(a,b,c,d,e,f){g.A.call(this);this.element=a;this.state=null;c||a.hide();this.w=b;this.A=void 0===d?b:d;this.o=f;this.u=e;this.delay=new g.H(this.Zp,0,this);g.C(this,this.delay)};
MN=function(a,b){var c=a.element.element;b?c.setAttribute("aria-hidden","true"):c.removeAttribute("aria-hidden")};
g.NN=function(a){g.R.call(this,{D:"button",Y:["ytp-large-play-button","ytp-button"],O:{"aria-label":"\u64ad\u653e"},J:["{{largePlayButtonChildren}}"]});this.api=a;this.K(a,"videodatachange",this.xa);this.xa()};
ON=function(a){var b=a.M(),c=["ytp-cued-thumbnail-overlay"];(g.P(b.experiments,"web_player_contain_thumbnail")||b.B)&&c.push("ytp-exp-contain-thumbnail");g.R.call(this,{D:"div",Y:c,J:[{D:"div",H:"ytp-cued-thumbnail-overlay-image"}]});b=this.o["ytp-cued-thumbnail-overlay"];c=new g.NN(a);g.C(this,c);c.ca(b);this.B=new g.Nr(this);g.C(this,this.B);this.u=a;this.F=this.o["ytp-cued-thumbnail-overlay-image"];this.C=c;this.A=new g.LN(this,250);g.C(this,this.A);this.w=new g.H(this.Dz,0,this);g.C(this,this.w);
this.Dz();this.K(a,"appresize",this.WI);this.K(a,"presentingplayerstatechange",this.XI);this.K(a,"ypcStateChanged",this.JN);Qy(a.M())&&this.K(a,"videoplayerreset",this.EM)};
QN=function(a){g.Nr.call(this);this.o=a;this.w=new Set;this.u=navigator.mediaSession;PN(this,"play",function(){a.playVideo()});
PN(this,"pause",function(){a.pauseVideo()});
PN(this,"seekbackward",function(){a.seekBy(-5*a.getPlaybackRate())});
PN(this,"seekforward",function(){a.seekBy(5*a.getPlaybackRate())});
this.K(a,"videodatachange",this.B);this.K(a,"presentingplayerstatechange",this.A);this.B()};
PN=function(a,b,c){a.u.setActionHandler(b,c?(0,g.x)(c,a):null);a.w.add(b)};
RN=function(a){g.R.call(this,{D:"div",H:"ytp-paid-content-overlay",O:{"aria-live":"assertive","aria-atomic":"true"}});this.I=new g.R({D:"div",Y:["ytp-button","ytp-paid-content-overlay-text"]});g.C(this,this.I);this.I.ca(this.element);this.L=a;this.w=null;this.F=!1;this.B=new g.LN(this.I,250,!1,100);g.C(this,this.B);this.C=this.u=null;this.A={};this.G=0;this.K(a,"videodatachange",this.V);this.K(a,"presentingplayerstatechange",this.U)};
SN=function(a,b){var c=CB(b),d=DB(b);a.u?b.videoId&&b.videoId!=a.w&&(g.Cn(a.u),a.w=b.videoId,c=a.A[b.videoId]||0,a.F=!!d&&3E3>c):c&&d&&(a.u=new g.H(a.R,d,a),g.C(a,a.u),g.Be(g.fe("ytp-paid-content-overlay-text",a.element),c))};
TN=function(a,b){a.u&&g.V(b,8)&&a.F&&(a.F=!1,a.Zb(),a.u.start())};
g.VN=function(a){g.R.call(this,{D:"div",H:"ytp-gradient-bottom"});this.w=g.re("CANVAS");this.w.width=1;this.u=this.w.getContext("2d");this.A=NaN;this.B=g.Xy(a.M());g.UN(this,g.RK(a).getPlayerSize().height)};
g.UN=function(a,b){if(a.u){var c=Math.floor(b*(a.B?1:.4));c=Math.max(c,47);var d=c+2;if(a.A!=d){a.A=d;a.w.height=d;a.u.clearRect(0,0,1,d);var e=a.u.createLinearGradient(0,2,0,2+c);if(a.B)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.u.fillStyle=e;a.u.fillRect(0,2,1,c);a.element.style.height=
d+"px";a.element.style.backgroundImage="url("+a.w.toDataURL()+")"}}};
g.WN=function(a,b,c,d){d=void 0===d?!1:d;g.Uu.call(this,b);this.ba=a;this.ga=d;this.I=null;this.G=new g.Nr(this);g.C(this,this.G);this.U=new g.LN(this,c,!0,void 0,void 0,(0,g.x)(this.IE,this));g.C(this,this.U);this.u=null};
XN=function(a){a.u&&(document.activeElement&&g.Ae(a.element,document.activeElement)&&(Ee(a.u),a.u.focus()),a.u.removeAttribute("aria-expanded"),a.u=null);g.Pr(a.G);a.I=null};
YN=function(a){return a.Ga()&&4!==a.U.state};
ZN=function(a){var b={D:"div",H:"ytp-multicam-menu",O:{role:"dialog"},J:[{D:"div",H:"ytp-multicam-menu-header",J:[{D:"div",H:"ytp-multicam-menu-title",J:["\u5207\u6362\u6444\u50cf\u673a",{D:"button",Y:["ytp-multicam-menu-close","ytp-button"],O:{"aria-label":"\u5173\u95ed"},J:[g.fN()]}]}]},{D:"div",H:"ytp-multicam-menu-items"}]};g.WN.call(this,a,b,250);this.B=new g.Nr(this);g.C(this,this.B);this.K(this.o["ytp-multicam-menu-close"],"click",this.eb);this.w=a;this.C=this.o["ytp-multicam-menu-items"];
this.A=[];this.hide()};
bO=function(a,b,c){g.R.call(this,{D:"button",Y:["ytp-multicam-button","ytp-button"],O:{title:"\u5207\u6362\u6444\u50cf\u673a","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-switch-camera"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,O:{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.C=a;this.A=!1;this.u=b.bb();$N(this.u);this.B=new g.H(this.G,400,this);g.C(this,this.B);this.ka("click",(0,g.x)(c.gf,c,this.element,!1));this.K(a,"presentingplayerstatechange",g.Ta(this.w,!1));this.K(a,"videodatachange",this.F);this.w(!0);g.Je(this,g.aO(this.u,this.element))};
cO=function(a,b){var c=void 0===c?!0:c;var d=g.L("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.rd(window.location.href);e&&d.push(e);e=g.rd(a);if(g.cb(d,e)||!e&&fc(a,"/"))if(g.Eo("autoescape_tempdata_url")&&(d=document.createElement("a"),g.$c(d,a),a=d.href),a&&(d=sd(a),e=d.indexOf("#"),d=0>e?d:d.substr(0,e)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.ks()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&(c=b,d="ST-"+id(d).toString(36),c=c?g.zd(c):"",g.Tq(d,c,f||5))}else f=b,c="ST-"+id(d).toString(36),
f=f?g.zd(f):"",g.Tq(c,f,5)};
g.dO=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.Bd(a,b)+c;a=a instanceof g.wc?a:g.Ac(a);d.href=g.xc(a)};
g.eO=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.L("EVENT_ID");d&&(b.ei||(b.ei=d));b&&cO(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.dO(a))};
g.fO=function(a,b,c){c&&cO(a,c);c=g.zc(a);c=g.xc(c);a!=c&&g.No(Error("Unsafe window.open URL: "+a));a=c;window.open(a,b||id(a).toString(36))};
gO=function(a){var b=!a.M().qc&&3!=a.getPresentingPlayerType();return a.isFullscreen()||b};
g.hO=function(a,b,c,d){if((void 0===c||!c)&&g.IM(a))return g.Rp(a),!0;b.pauseVideo();a=a.currentTarget.getAttribute("href");g.eO(a,d,!0);return!1};
g.iO=function(a,b,c){if(kz(b.M())&&2!=b.getPresentingPlayerType()){if(g.IM(c))return b.isFullscreen()&&!b.M().externalFullscreen&&b.toggleFullscreen(),g.Rp(c),!0}else{var d=g.IM(c);d&&b.pauseVideo();g.eO(a,void 0,!0);d&&(g.fO(a),g.Rp(c))}return!1};
jO=function(){return{D:"div",H:"ytp-spinner-container",J:[{D:"div",H:"ytp-spinner-rotator",J:[{D:"div",H:"ytp-spinner-left",J:[{D:"div",H:"ytp-spinner-circle"}]},{D:"div",H:"ytp-spinner-right",J:[{D:"div",H:"ytp-spinner-circle"}]}]}]}};
kO=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
g.lO=function(a,b,c){a=a.M();return g.P(a.experiments,"desktop_player_button_tooltip_with_shortcut")&&!a.Wb?g.GM("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.nO=function(a,b,c){if(c){var d="ytp-next-button";var e=nN()}else d="ytp-prev-button",e=sN();g.R.call(this,{D:"a",Y:[d,"ytp-button"],O:{role:"button",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.u=a;this.L=b.bb();this.A=c;this.w=this.T=null;this.I=!1;this.F=this.G=this.B=null;this.C=!1;this.K(a,"fullscreentoggled",this.dk);this.K(a,
"videodatachange",this.dk);this.K(a,"onPlaylistUpdate",this.dk);this.A||this.K(a,"appresize",this.Rf);this.K(a,"mdxpreviousnextchange",function(){mO(this);this.Rf()});
this.dk()};
oO=function(a){a.w&&a.w.unsubscribe("shuffle",a.dk,a)};
pO=function(a){return!!a.w&&!a.A&&!!a.T&&!a.T.sa&&3<=a.u.getCurrentTime()&&2!=a.u.getPresentingPlayerType()};
qO=function(a){var b=g.SK(g.LK(a.u));return b?a.A?b.hasNext():b.Ey():!1};
mO=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=a.u.M(),d=!0;g.P(c.experiments,"player_allow_autonav_after_playlist")&&(d=a.w&&a.w.hasNext());d=g.TK(a.u)&&(!a.A||d);var e=a.A&&g.kL(a.u),f=qO(a),k=a.A&&5==a.u.getPresentingPlayerType(),l=g.lO(a.u,"\u4e0b\u4e00\u4e2a","SHIFT+n"),m=g.lO(a.u,"\u4e0a\u4e00\u4e2a","SHIFT+p");if(k)b.title="\u5f00\u59cb\u64ad\u653e\u89c6\u9891";else if(a.C)b.title="\u91cd\u653e";else if(d){var n=null;a.w&&(n=a.w.va(a.A?tC(a.w):uC(a.w)));if(n){if(n.videoId){var p=
a.w.listId;b.url=c.getVideoUrl(n.videoId,p?p.toString():void 0)}b.text=n.title;b.duration=n.lengthSeconds?g.HM(n.lengthSeconds):null;b.preview=n.uc("mqdefault.jpg")}b.title=a.A?l:m}else e&&(a.T&&a.T.suggestions&&a.T.suggestions.length&&(c=g.JM(c,a.T.suggestions[0]),b.url=c.lh(),b.text=c.title,b.duration=c instanceof g.dB?g.HM(c.lengthSeconds):null,b.preview=c.uc("mqdefault.jpg")),b.title=l);b.disabled=!e&&!d&&!f&&!k;a.update(b);a.I=!!b.url;e||d||a.C||f||k?a.B||(a.B=g.aO(a.L,a.element),a.G=a.ka("click",
a.ZI,a)):a.B&&(a.B(),a.B=null,a.Za(a.G),a.G=null);rO(a.L)};
sO=function(a,b,c){g.R.call(this,{D:"button",Y:["ytp-button","ytp-settings-button"],O:{"aria-haspopup":"true","aria-owns":Ou(),title:"\u8bbe\u7f6e","data-tooltip-target-id":"ytp-settings-button"},J:[g.uN()]});this.A=c;this.u=a;this.B=!0;this.ka("click",this.C);this.K(a,"onPlaybackQualityChange",this.w);this.K(a,"videodatachange",this.w);this.K(a,"webglsettingschanged",this.w);this.K(a,"appresize",this.Rf);g.Je(this,g.aO(b.bb(),this.element));g.lL(this.u,this.element,this,28663);this.w();this.Rf(g.RK(a).getPlayerSize())};
tO=function(a,b){a.B=!!b;a.Rf(g.RK(a.u).getPlayerSize())};
g.uO=function(a,b){var c=g.Xu({role:"menuitemcheckbox","aria-checked":"false"});g.Wu.call(this,c,b,a,{D:"div",H:"ytp-menuitem-toggle-checkbox"});this.w=!1;this.ka("click",this.L)};
vO=function(a,b){g.uO.call(this,"\u81ea\u52a8\u64ad\u653e",6);this.F=b;this.u=a;this.B=!1;this.A=[];this.K(a,"presentingplayerstatechange",this.C);this.subscribe("select",this.I,this);this.C()};
wO=function(a,b,c,d,e){var f={D:"div",H:"ytp-panel"};if(c){var k="ytp-panel-title";var l={D:"div",H:"ytp-panel-header",J:[{D:"button",Y:["ytp-button",k],J:[c]}]};if(e){var m="ytp-panel-options";l.J.unshift({D:"button",Y:["ytp-button",m],J:[d]})}f.J=[l]}g.Uu.call(this,f);this.ba=b;b.ca(this.element);this.ma=!1;c&&(this.K(this.o[k],"click",this.ua),this.ma=!0,e&&this.K(this.o[m],"click",e));b.subscribe("size-change",this.oa,this);this.K(a,"fullscreentoggled",this.oa)};
g.xO=function(a,b,c,d,e){b=void 0===b?null:b;var f={role:"menu"};b&&(f.id=b);b=new g.Uu({D:"div",H:"ytp-panel-menu",O:f});wO.call(this,a,b,c,d,e);this.G=b;g.C(this,this.G);this.w=[]};
g.yO=function(a,b,c){if(void 0===c?0:c)a.w.push(b),a.G.element.appendChild(b.element);else{c=g.sb(a.w,b,fla);if(0<=c)return;c=~c;g.pb(a.w,c,0,b);g.ve(a.G.element,b.element,c)}b.subscribe("size-change",a.da,a);a.G.S("size-change")};
g.zO=function(a,b){b.unsubscribe("size-change",a.da,a);a.ea()||(g.gb(a.w,b),a.G.element.removeChild(b.element),a.G.S("size-change"))};
g.AO=function(a){for(var b=g.q(a.w),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.da,a);a.w=[];g.ue(a.G.element);a.G.S("size-change")};
fla=function(a,b){return b.priority-a.priority};
g.BO=function(a,b){g.WN.call(this,a,{D:"div",Y:["ytp-popup",b||null]},100,!0);this.w=[];this.size=new g.Vd(0,0);this.C=this.F=null;this.L=this.R=0;this.ka("keydown",this.YI)};
DO=function(a){g.Rh(a.element,a.R||"100%",a.L||"100%");var b=CO(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.ba.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.ma&&(d=g.Sh(b.o["ytp-panel-header"]).height);b.ba.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.FO=function(a,b){var c=a.w[a.w.length-1];a.w.push(b);EO(a,c,b)};
g.GO=function(a){var b=a.w.pop(),c=a.w[0];a.w=[c];EO(a,b,c,!0)};
EO=function(a,b,c,d){HO(a);CO(a);g.Jn(c.element,"ytp-panel-animate-back")||g.Jn(c.element,"ytp-panel-animate-forward");b&&(b.unsubscribe("size-change",a.zk,a),b.unsubscribe("back",a.Hf,a));c.subscribe("size-change",a.zk,a);c.subscribe("back",a.Hf,a);if(a.Ga()){g.J(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.ca(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;DO(a);g.Rh(a.element,e);a.F=new g.H(g.Ta(a.EO,b,c,d),20,a);a.F.start()}else c.ca(a.element),
b&&g.Qu(b)};
CO=function(a){return a.w[a.w.length-1]};
HO=function(a){a.F&&g.Bn(a.F);a.C&&g.Bn(a.C)};
g.IO=function(a,b,c,d,e,f){var k=g.Xu({"aria-haspopup":"true"});g.Wu.call(this,k,b,a);this.u=d;this.I=!1;this.C=null;this.w={};this.F=new g.xO(c,void 0,a,e,f);g.C(this,this.F);this.ka("keydown",this.bJ);this.ka("click",this.open)};
JO=function(a){if(a.C){var b=a.w[a.C];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.C=null}};
g.KO=function(a,b){g.AO(a.F);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.w[f],l=f==a.C;l&&(d=!0);k&&k.priority==-e?(l=a,g.Vu(l.w[f],l.Ye(f,!0)),delete a.w[f]):k=a.Tq(f,-e,l);c[f]=k;g.yO(a.F,k,!0)}d||(a.C=null);for(var m in a.w)a.w[m].dispose();a.w=c};
LO=function(a,b){g.IO.call(this,"\u753b\u8d28",1,a,b);g.J(this.F.element,"ytp-quality-menu");this.A=a;this.G={};this.B="unknown";this.K(a,"videodatachange",this.gm);this.K(a,"videoplayerreset",this.gm);this.K(a,"onPlaybackQualityChange",this.OA);this.gm()};
MO=function(a,b,c){a=a.G[b];var d=g.dt[b];c={D:"span",Y:c,J:[]};c.J.push(a?a.qualityLabel:d?d+"p":"\u81ea\u52a8");var e;"highres"==b?e="8K":"hd2880"==b?e="5K":"hd2160"==b?e="4K":0==b.indexOf("hd")&&"hd720"!=b&&(e="HD");e&&(c.J.push(" "),c.J.push({D:"sup",H:"ytp-swatch-color",W:e}));return c};
NO=function(a,b,c,d,e,f,k){g.R.call(this,{D:"div",H:"ytp-slider-section",O:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},J:[{D:"div",H:"ytp-slider",J:[{D:"div",H:"ytp-slider-handle"}]}]});this.minimumValue=c;this.maximumValue=d;this.C=this.maximumValue-this.minimumValue;this.L=e;this.R=f;this.V=this.o["ytp-slider-section"];this.w=this.o["ytp-slider"];this.U=this.o["ytp-slider-handle"];this.I=
a;this.G=b;this.u=k?k:c;this.F=new g.Tr(this.w,!0);g.C(this,this.F);this.F.subscribe("dragmove",this.fJ,this);this.K(this.element,"keydown",this.gJ);this.K(this.element,"wheel",this.eJ);this.Xi(this.u);this.la("minvalue",this.minimumValue);this.la("maxvalue",this.maximumValue)};
PO=function(a){var b=a.getAvailablePlaybackRates(),c=a.getPlaybackRate();NO.call(this,.05,.05,b[0],b[b.length-1],150,20,c);g.J(this.w,"ytp-speedslider");this.B=a;this.A=g.re("P");g.J(this.A,"ytp-speedslider-text");a=this.A;b=this.w;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);this.aa=vaa(this.Z,this);OO(this);this.K(this.B,"onPlaybackRateChange",this.ba)};
OO=function(a){a.A.textContent=QO(a,a.u)+"x"};
QO=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))};
RO=function(a){g.Uu.call(this,{D:"div",H:"ytp-speedslider-component"});this.u=new PO(a);g.C(this,this.u);this.element.appendChild(this.u.element)};
SO=function(a){var b=new RO(a);wO.call(this,a,b,"\u81ea\u5b9a\u4e49");g.C(this,b)};
TO=function(a,b){var c=new SO(a);g.IO.call(this,"\u64ad\u653e\u901f\u5ea6",4,a,b,"\u81ea\u5b9a\u4e49",function(){return g.FO(b,c)});
g.C(this,c);this.A=a;this.R=null;this.L=this.A.getAvailablePlaybackRates();this.G=this.B=null;this.K(a,"presentingplayerstatechange",this.Fz);this.Fz()};
VO=function(a,b){var c=UO(b);a.w[c]?a.Cb(c):b==a.G&&a.B&&(a.Cb(a.B),a.ob(b.toString()))};
XO=function(a){g.KO(a,a.L.map(UO));a.B=null;a.G=null;var b=a.A.getPlaybackRate();a.L.includes(b)||(WO(a,b),g.IO.prototype.hd.call(a,a.B))};
WO=function(a,b){a.G=b;a.B=g.GM("\u81ea\u5b9a\u4e49 ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});var c=a.L.map(UO);c.unshift(a.B);g.KO(a,c)};
UO=function(a){return a.toString()};
YO=function(a,b){g.uO.call(this,"\u6ce8\u91ca",5);this.N=a;this.A=b;this.u=!1;this.K(a,"videodatachange",this.xa);this.K(a,"onApiChange",this.xa);this.subscribe("select",this.B,this);this.xa()};
ZO=function(a,b){g.IO.call(this,"\u97f3\u8f68",2,a,b);this.N=a;this.tracks={};this.A=new g.R({D:"div",J:[{D:"span",W:"\u97f3\u8f68"},{D:"span",H:"ytp-menuitem-label-count",W:"{{content}}"}]});g.C(this,this.A);g.Vu(this,this.A);this.K(a,"videodatachange",this.xa);this.K(a,"onPlaybackAudioChange",this.xa);this.xa()};
$O=function(a){var b=null;try{b=a.toLocaleString("zh-CN",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
aP=function(a,b,c,d){var e=new g.xO(b,void 0,"\u89c6\u9891\u66ff\u6362");g.IO.call(this,d.text||"",a,b,c,"\u89c6\u9891\u66ff\u6362",function(){return g.FO(c,e)});
g.J(this.element,"ytp-subtitles-options-menu-item");this.L=d.option.toString();a=d.options;this.R=g.xb(a,this.Hz,this);this.G=e;g.C(this,this.G);b=new g.Wu({D:"div",H:"ytp-menuitemtitle",W:"\u5728\u89c6\u9891\u6307\u5b9a\u7684\u5b57\u5e55\u6837\u5f0f\u4e0e\u7528\u6237\u8bbe\u7f6e\u7684\u6837\u5f0f\u4e0d\u540c\u65f6\uff0c\u5141\u8bb8\u4f7f\u7528\u89c6\u9891\u6307\u5b9a\u7684\u6837\u5f0f\u3002"},0);g.C(this,b);g.yO(this.G,b,!0);this.B=new g.Wu({D:"div",H:"ytp-menuitem",O:{role:"menuitemradio",tabindex:"0"},
J:[{D:"div",H:"ytp-menuitem-label",W:"\u5f00\u542f"}]},-1);g.C(this,this.B);g.yO(this.G,this.B,!0);this.K(this.B.element,"click",g.Ta(this.Iz,!0));this.A=new g.Wu({D:"div",H:"ytp-menuitem",O:{role:"menuitemradio",tabindex:"0"},J:[{D:"div",H:"ytp-menuitem-label",W:"\u5173\u95ed"}]},-2);g.C(this,this.A);g.yO(this.G,this.A,!0);this.K(this.A.element,"click",g.Ta(this.Iz,!1));g.KO(this,(0,g.Fc)(a,this.Hz))};
cP=function(a,b){g.xO.call(this,a,void 0,"\u9009\u9879");this.u={};for(var c=0;c<g.bP.length;c++){var d=g.bP[c],e=new aP(-c,a,b,d);g.C(this,e);e.subscribe("settingChange",this.A,this);this.u[d.option.toString()]=e;g.yO(this,e,!0)}c=new g.Wu(g.Xu(),-g.bP.length,"\u91cd\u7f6e");g.C(this,c);c.ka("click",(0,g.x)(this.A,this,"reset",!0));g.yO(this,c,!0)};
dP=function(a,b){for(var c in b){var d=a.u[c];if(d){var e=b[c].toString(),f=!!b[c+"Override"];d.w[e]&&(d.Cb(e),d.B.element.setAttribute("aria-checked",!f),d.A.element.setAttribute("aria-checked",f))}}};
eP=function(a,b){g.IO.call(this,"\u81ea\u52a8\u7ffb\u8bd1",0,a,b);this.A={}};
gla=function(a,b){a.A=g.xb(b,a.B,a);g.KO(a,(0,g.Fc)(b,a.B))};
gP=function(a,b){g.IO.call(this,"\u5b57\u5e55",3,a,b,"\u9009\u9879",function(){g.FO(b,c.B)});
var c=this;this.N=a;this.tracks={};this.G=new g.H(function(){fP(c,!1)},3E3);
this.A=new eP(this.N,this.u);this.B=new cP(this.N,this.u);this.L=new g.R({D:"div",J:[{D:"span",W:"\u5b57\u5e55"},{D:"span",H:"ytp-menuitem-label-count",W:"{{content}}"}]});g.C(this,this.G);g.C(this,this.L);g.Vu(this,this.L);g.C(this,this.A);this.A.subscribe("select",this.JH,this);g.C(this,this.B);this.B.subscribe("settingChange",this.IH,this);b.subscribe("show",this.WM,this);this.K(a,"videodatachange",this.xa);this.K(a,"onApiChange",this.xa);this.K(a,"onCaptionsTrackListChanged",this.xa);this.K(a,
"captionschanged",this.xa);this.xa()};
fP=function(a,b){a.N.setOption("captions","sampleSubtitles",b)};
hP=function(a){g.BO.call(this,a,"ytp-settings-menu");this.A=a;this.B=new g.xO(a);g.C(this,this.B);this.V=null;this.Z=!1;this.hide();g.FO(this,this.B)};
iP=function(a){if(!a.Z){a.Z=!0;var b=new LO(a.A,a);g.C(a,b);b=new gP(a.A,a);g.C(a,b);b=new YO(a.A,a);g.C(a,b);a.A.M().Ha&&(b=new TO(a.A,a),g.C(a,b));a.A.M().jb&&(b=new vO(a.A,a),g.C(a,b));b=new ZO(a.A,a);g.C(a,b);tO(a.V,a.B.w.length)}};
g.jP=function(a,b){iP(a);g.yO(a.B,b);tO(a.V,a.B.w.length)};
g.kP=function(a,b){a.Ga()&&1>=a.B.w.length&&a.hide();g.zO(a.B,b);tO(a.V,a.B.w.length)};
hla=function(a,b){a.V=b;a.element.id=b.element.getAttribute("aria-owns")};
lP=function(){g.A.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.wn(this.o,null,this);g.C(this,this.delay)};
mP=function(a,b){if("path"===b.D)return b.O.d;if(b.J)for(var c=0;c<b.J.length;c++){var d=b.J[c];if(d&&"string"!==typeof d&&(d=mP(a,d)))return d}};
qP=function(a,b,c){c=mP(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=Ou();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=nP(e),m=nP(c);oP(a,function(n){d.setAttribute("d",pP(l,m,n))},200)};
oP=function(a,b,c){a.u=b;a.startTime=(0,g.N)();a.duration=c;a.o()};
nP=function(a){var b=[];a=a.match(ila);for(var c=0;c<a.length;c++){var d=" "===a[c]?NaN:Number(a[c]);b.push(isNaN(d)?a[c]:d)}return b};
pP=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d="number"===typeof f?d+(f+(b[e]-f)*c):d+f}return d};
rP=function(a,b){g.R.call(this,{D:"button",Y:["ytp-size-button","ytp-button"],O:{title:"{{title}}"},W:"{{icon}}"});this.u=a;this.B=b.bb();this.A=null;this.C=new lP;g.C(this,this.C);this.K(a,"sizestylechange",this.w);this.K(a,"fullscreentoggled",this.w);this.K(a,"presentingplayerstatechange",this.w);this.w();this.ka("click",this.F);g.Je(this,g.aO(this.B,this.element))};
sP=function(a,b){g.R.call(this,{D:"button",Y:["ytp-subtitles-button","ytp-button"],O:{"aria-pressed":"{{pressed}}",title:g.lO(a,"\u5b57\u5e55","c")},J:[wN()]});this.w=a;this.K(a,"videodatachange",this.u);this.K(a,"appresize",this.u);this.K(a,"onApiChange",this.u);this.K(a,"onCaptionsTrackListChanged",this.u);this.K(a,"captionschanged",this.u);this.u();this.ka("click",this.A);g.Je(this,g.aO(b.bb(),this.element))};
g.uP=function(a,b,c){c=void 0===c?350:c;g.R.call(this,{D:"div",Y:["ytp-time-display","notranslate"],J:[{D:"span",H:"ytp-time-current",W:"{{currenttime}}"},{D:"span",H:"ytp-time-separator",W:" / "},{D:"span",H:"ytp-time-duration",W:"{{duration}}"}]});this.A=new g.R({D:"button",Y:["ytp-live-badge","ytp-button"],O:{disabled:"true"},W:"{{content}}"});this.A.ob("\u76f4\u64ad");g.C(this,this.A);this.A.ca(this.element);this.u=a;this.R=c;this.U=b.bb();this.B=null;this.C=!1;this.I=null;this.L=!1;this.G=this.F=
null;this.ka("click",this.V);this.K(a,"presentingplayerstatechange",this.w);this.K(a,"appresize",this.w);this.K(a,"videodatachange",this.aa);(a=a.getVideoData())&&tP(this,a);this.w()};
tP=function(a,b){a.C=b.sa&&!b.vg;a.L=b.isPremiere;g.K(a.element,"ytp-live",a.C)};
vP=function(a,b){g.R.call(this,{D:"button",Y:["ytp-airplay-button","ytp-button"],O:{title:"AirPlay"},W:"{{icon}}"});var c=this;this.N=a;this.ka("click",this.onClick);this.K(a,"airplayactivechange",this.xa);this.K(a,"airplayavailabilitychange",this.xa);this.xa();g.Je(this,function(){return g.aO(b.bb(),c.element)})};
wP=function(a,b,c){g.R.call(this,{D:"div",Y:["ytp-chapter-container"],J:[{D:"div",H:"ytp-chapter-title",J:[{D:"span",O:{"aria-hidden":"true"},H:"ytp-chapter-title-prefix",W:"\u2022"},{D:"span",W:"{{title}}"}]}]});this.N=a;this.w=c;this.u=""};
xP=function(a,b,c,d,e){var f=b.fp/b.rows,k=Math.min(c/(b.gp/b.columns),d/f),l=b.gp*k,m=b.fp*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,t=-b.column*n,u=-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+") "+t+"px "+u+"px/"+l+"px "+m+"px"};
g.yP=function(a){g.R.call(this,{D:"div",H:"ytp-storyboard-framepreview",J:[{D:"div",H:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.o["ytp-storyboard-framepreview-img"];this.w=null;this.A=NaN;this.events=new g.Nr(this);this.u=new g.LN(this,100);g.C(this,this.events);g.C(this,this.u);this.K(this.api,"presentingplayerstatechange",this.F)};
zP=function(a,b){var c=!!a.w;a.w=b;a.w?(c||(a.events.K(a.api,"videodatachange",function(){zP(a,a.api.ue())}),a.events.K(a.api,"progresssync",a.G),a.events.K(a.api,"appresize",a.B)),a.A=NaN,AP(a),a.u.show(200)):(c&&g.Pr(a.events),a.u.hide(),a.u.stop())};
AP=function(a){var b=a.w,c=a.api.getCurrentTime(),d=g.RK(a.api).getPlayerSize(),e=VA(b,d.width);c=$A(b,e,c);c!==a.A&&(a.A=c,XA(b,c,d.width),b=b.mi(c,d.width),xP(a.C,b,d.width,d.height))};
BP=function(a,b){g.R.call(this,{D:"button",Y:["ytp-fullerscreen-edu-button","ytp-button"],J:[{D:"div",Y:["ytp-fullerscreen-edu-text"],W:"\u6eda\u52a8\u6d4f\u89c8\u8be6\u60c5"},{D:"div",Y:["ytp-fullerscreen-edu-chevron"],J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-chevron-down"]}:{D:"svg",O:{height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{D:"path",O:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.u=a;this.C=b;this.A=new g.LN(this,250,void 0,100);this.B=this.w=
!1;g.lL(a,this.element,this,61214);this.C=b;g.C(this,this.A);this.K(a,"fullscreentoggled",this.xa);this.K(a,"presentingplayerstatechange",this.xa);this.ka("click",this.onClick);this.xa()};
jla=function(a,b){g.K(a.element,"ytp-fullerscreen-edu-button-subtle",b);b&&!a.B&&(a.element.setAttribute("title","\u6eda\u52a8\u6d4f\u89c8\u8be6\u60c5"),g.Je(a,function(){return g.aO(a.C.bb(),a.element)}),a.B=!0)};
g.CP=function(a,b){g.R.call(this,{D:"button",Y:["ytp-fullscreen-button","ytp-button"],O:{title:"{{title}}"},W:"{{icon}}"});this.N=a;this.u=b;this.message=null;this.w=g.aO(this.u.bb(),this.element);this.A=new g.H(this.ZD,2E3,this);g.C(this,this.A);this.K(a,"fullscreentoggled",this.Xy);this.K(a,"presentingplayerstatechange",this.xa);this.ka("click",this.onClick);if(Jr()){var c=g.RK(this.N);this.K(c,efa(),this.uA);this.K(c,Mr(document),this.DH)}a.M().da||this.disable();this.xa();this.Xy(a.isFullscreen())};
DP=function(a,b){g.R.call(this,{D:"button",Y:["ytp-miniplayer-button","ytp-button"],O:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},J:[qN()]});var c=this;this.N=a;this.visible=!1;this.ka("click",this.onClick);this.K(a,"fullscreentoggled",this.xa);this.la("title",g.lO(a,"\u8ff7\u4f60\u64ad\u653e\u5668","i"));g.Je(this,function(){return g.aO(b.bb(),c.element)});
g.lL(a,this.element,this,62946);this.xa()};
EP=function(a,b){g.R.call(this,{D:"button",Y:["ytp-mute-button","ytp-button"],O:a.M().R?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},W:"{{icon}}"});var c=this;this.N=a;this.u=null;this.C=this.I=this.F=this.R=NaN;this.U=this.G=null;this.B=[];this.A=[];this.visible=!1;this.w=null;var d=this.N.M();this.la("icon",zN());this.tooltip=b.bb();d.F||(this.u=new g.Pu({D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"defs",J:[{D:"clipPath",
O:{id:"ytp-svg-volume-animation-mask"},J:[{D:"path",O:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{D:"path",O:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{D:"path",H:"ytp-svg-volume-animation-mover",O:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{D:"clipPath",O:{id:"ytp-svg-volume-animation-slash-mask"},J:[{D:"path",H:"ytp-svg-volume-animation-mover",O:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{D:"path",La:!0,Y:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],
O:{"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"}},{D:"path",La:!0,Y:["ytp-svg-fill","ytp-svg-volume-animation-hider"],O:{"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.C(this,this.u),this.G=this.u.o["ytp-svg-volume-animation-speaker"],this.U=this.G.getAttribute("d"),this.B=g.ee("ytp-svg-volume-animation-mover",
this.u.element),this.A=g.ee("ytp-svg-volume-animation-hider",this.u.element));this.V=new lP;g.C(this,this.V);this.L=new lP;g.C(this,this.L);this.ka("click",this.IL);this.K(a,"appresize",this.Yy);this.K(a,"onVolumeChange",this.EH);var e=null;d.R?g.Je(this,function(){return g.aO(b.bb(),c.element)}):(e="\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u5141\u8bb8\u66f4\u6539\u97f3\u91cf\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK".split(/\$(BEGIN|END)_LINK/),e=new g.WN(a,{D:"span",
Y:["ytp-popup","ytp-generic-popup"],O:{tabindex:"0"},J:[e[0],{D:"a",O:{href:"https://support.google.com/youtube/?p=noaudio",target:d.C},W:e[2]},e[4]]},100,!0),g.C(this,e),e.hide(),e.subscribe("show",(0,g.x)(b.fl,b,e)),g.jL(a,e.element,4));this.message=e;g.lL(a,this.element,this,28662);this.Yy(g.RK(a).getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
FP=function(a,b){a.R=b;var c=a.U;b&&(c+=pP(kla,lla,b));a.G.setAttribute("d",c)};
GP=function(a,b){a.I=b;for(var c=20*b,d=0;d<a.B.length;d++)a.B[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=zN():e=a.u;for(c=0;c<a.A.length;c++)a.A[c].style.display=0===b?"none":"";e!==a.w&&(a.la("icon",e),a.w=e)};
HP=function(a,b){g.R.call(this,{D:"button",Y:["ytp-pip-button","ytp-button"],O:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},J:[qN()]});var c=this;this.N=a;this.la("title","\u753b\u4e2d\u753b");this.ka("click",this.onClick);g.Je(this,function(){return g.aO(b.bb(),c.element)})};
g.JP=function(a,b){g.R.call(this,{D:"button",Y:["ytp-play-button","ytp-button"],O:{title:"{{title}}","aria-label":"{{label}}"},W:"{{icon}}"});var c=this;this.N=a;this.u=null;this.transition=new lP;this.tooltip=b.bb();g.C(this,this.transition);this.K(a,"fullscreentoggled",this.w);this.K(a,"presentingplayerstatechange",this.A);this.K(a,"videodatachange",this.w);IP(this,g.QK(a));this.ka("click",this.B,this);g.Je(this,function(){return g.aO(b.bb(),c.element)})};
KP=function(a){switch(a){case 1:return rN();case 2:return pN();case 3:return g.tN();case 4:return vN();default:return null}};
IP=function(a,b){var c=g.JB(a.N.getVideoData()),d=!1;if(g.SC(b))var e=c?4:2;else g.V(b,2)?(e=3,d=c):e=1;a.element.disabled=d;if(a.u!==e){c=null;switch(e){case 2:c=g.lO(a.N,"\u6682\u505c","k");break;case 3:c="\u91cd\u653e";break;case 1:c=g.lO(a.N,"\u64ad\u653e","k");break;case 4:c="\u505c\u6b62\u76f4\u64ad"}3===e?a.update({title:c,label:null,icon:KP(e)}):(a.update({title:c,label:c}),(c=KP(e))&&a.u&&3!==a.u&&!a.N.M().F?qP(a.transition,a.element,c):a.la("icon",c));rO(a.tooltip);a.u=e}};
LP=function(a,b){this.u=a;this.o=b};
MP=function(a,b){return a.u+b*a.getLength()};
NP=function(a,b,c){if(!a.getLength())return null!=c?c:Infinity;a=(b-a.u)/a.getLength();return g.Pd(a,0,1)};
OP=function(){g.R.call(this,{D:"div",H:"ytp-chapter-hover-container",J:[{D:"div",H:"ytp-progress-bar-padding"},{D:"div",H:"ytp-progress-list",J:[{D:"div",Y:["ytp-play-progress","ytp-swatch-background-color"]},{D:"div",H:"ytp-load-progress"},{D:"div",H:"ytp-hover-progress"},{D:"div",H:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.width=0;this.C=this.o["ytp-ad-progress-list"];this.A=this.o["ytp-load-progress"];this.B=this.o["ytp-play-progress"];this.w=this.o["ytp-hover-progress"];
this.u=this.o["ytp-chapter-hover-container"]};
PP=function(a,b){g.xh(a.u,"width",b)};
QP=function(a,b){g.xh(a.u,"margin-right",b+"px")};
RP=function(a,b){return"PLAY_PROGRESS"===b?a.B:"LOAD_PROGRESS"===b?a.A:a.w};
SP=function(){this.u=this.position=this.A=this.o=this.B=this.w=this.width=NaN};
g.UP=function(a,b){g.Uu.call(this,{D:"div",H:"ytp-progress-bar-container",O:{"aria-disabled":"true"},J:[{D:"div",Y:["ytp-progress-bar",a.M().o?"ytp-mobile":""],O:{tabindex:"0",role:"slider","aria-label":"\u64ad\u653e\u6ed1\u5757","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},J:[{D:"div",H:"ytp-chapters-container"},{D:"div",H:"ytp-marker-crenellation-list"},{D:"div",H:"ytp-clip-start-exclude"},{D:"div",H:"ytp-clip-end-exclude"},
{D:"div",H:"ytp-scrubber-container",J:[{D:"div",Y:["ytp-scrubber-button","ytp-swatch-background-color"],J:[{D:"div",H:"ytp-scrubber-pull-indicator"}]}]}]},{D:"div",H:"ytp-bound-time-left",W:"{{boundTimeLeft}}"},{D:"div",H:"ytp-bound-time-right",W:"{{boundTimeRight}}"},{D:"div",H:"ytp-clip-start",O:{title:"{{clipstarttitle}}"},W:"{{clipstarticon}}"},{D:"div",H:"ytp-clip-end",O:{title:"{{clipendtitle}}"},W:"{{clipendicon}}"}]});var c=this;this.api=a;this.Ua=!1;this.B=this.Wb=0;this.Z=1;this.Xb=this.L=
0;this.C=null;this.U=this.Aa=0;this.ua=this.o["ytp-marker-crenellation-list"];this.V={};this.za={};this.clipEnd=Infinity;this.ma=this.o["ytp-clip-end"];this.Ha=new g.Tr(this.ma,!0);this.jb=this.o["ytp-clip-end-exclude"];this.qc=this.o["ytp-clip-start-exclude"];this.clipStart=0;this.oa=this.o["ytp-clip-start"];this.Ia=new g.Tr(this.oa,!0);this.F=this.da=0;this.Qb=this.o["ytp-progress-bar"];this.Ca=this.o["ytp-chapters-container"];this.u=[];this.ba=-1;this.Ma=g.Q(this.api.M().experiments,"web_macro_markers_snapping_threshold");
this.ga=this.R=0;this.G=null;this.ac=this.o["ytp-scrubber-button"];this.sc=this.o["ytp-scrubber-container"];this.ya=new g.Td;this.qb=new SP;this.w=new LP(0,0);this.I=null;this.A=this.Sa=!1;this.yb=null;this.tooltip=b.bb();g.Je(this,function(){g.aO(c.tooltip,c.ma)});
g.C(this,this.Ha);this.Ha.subscribe("hoverstart",this.jA,this);this.Ha.subscribe("hoverend",this.iA,this);this.K(this.ma,"click",this.Ap);g.Je(this,function(){g.aO(c.tooltip,c.oa)});
g.C(this,this.Ia);this.Ia.subscribe("hoverstart",this.jA,this);this.Ia.subscribe("hoverend",this.iA,this);this.K(this.oa,"click",this.Ap);TP(this);this.api.M().fa("web_wn_macro_markers")&&this.K(a,"resize",this.Qu);this.K(a,"presentingplayerstatechange",this.GH);this.K(a,"videodatachange",this.Jx);this.K(a,"videoplayerreset",this.tF);this.K(a,"cuerangesadded",this.DC);this.K(a,"cuerangesremoved",this.dO);this.K(a,"cuerangemarkersupdated",this.DC);this.K(a,"onLoopRangeChange",this.CC);this.updateVideoData(a.getVideoData(),
!0);this.CC(a.getLoopRange())};
TP=function(a){if(0===a.u.length){var b=new OP;a.u.push(b);g.C(a,b);b.ca(a.Ca,0)}for(;1<a.u.length;)a.u.pop().dispose();PP(a.u[0],"100%");a.u[0].startTime=0;a.u[0].title=""};
VP=function(a){var b=[];a.playerOverlays&&(a=a.playerOverlays.playerOverlayRenderer)&&(a=a.decoratedPlayerBarRenderer)&&(a=a.decoratedPlayerBarRenderer)&&(a=a.playerBar)&&(a=a.chapteredPlayerBarRenderer)&&a.chapters&&(b=a.chapters);return b};
WP=function(a,b){var c=0,d=!1,e=a.u.length,f=1E3*a.w.o;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.B){for(var k=a.B-(a.A?3:2)*a.R,l=0===a.ga?3:k*a.ga,m=g.q(a.u),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.u[c].startTime;c<e-1&&(m=a.u[c+1].startTime-a.u[c].startTime,QP(a.u[c],a.A?3:2));a.api.M().fa("web_wn_macro_markers")&&g.K(a.u[c].u,"ytp-exp-chapter-hover-container",1<a.u.length);n=(0===f?0:m/f*k)+a.u[c].width;if(n>l)a.u[c].width=n;else{a.u[c].width=0;var p=
a,t=c,u=p.u[t-1];void 0!==u&&0<u.width?u.width+=n:t<p.u.length-1&&(p.u[t+1].width+=n);QP(p.u[t],0);b&&(a.R--,m/f>a.ga&&(a.ga=m/f),d=!0)}c++}}return d};
g.YP=function(a){XP(a);var b=a.api.getCurrentTime();(b<a.clipStart||b>a.clipEnd)&&a.Ap()};
XP=function(a){if(a.B){var b=a.api.getProgressState(),c=new LP(b.seekableStart,b.seekableEnd),d=NP(c,b.loaded,0);b=NP(c,b.current,0);var e=a.w.u!==c.u||a.w.o!==c.o;a.w=c;ZP(a,b,d);e&&$P(a);aQ(a)}};
bQ=function(a,b,c){return c>=a.u.length?!1:Math.abs(b-a.u[c].startTime/1E3)/a.w.o*(a.B-(a.A?3:2)*a.R)<a.Ma};
cQ=function(a,b,c,d){b=g.Pd(b,0,a.A?60:40);a.L=b;var e=a.Z,f=Math.max(a.w.getLength()/a.B,1);a.Z=b/(a.A?60:40)*(f-1)+1;b=a.B*a.Z;a.U=g.Pd(d*b-c,0,b-a.B);e!==a.Z&&$P(a)};
$P=function(a){var b=dQ(a),c=-b.w/b.o,d=(-b.w+b.width)/b.o,e=ye(a.ua),f=0;if(a.L>.2*(a.A?60:40)){var k=c*(a.w.getLength()/60),l=d*(a.w.getLength()/60);for(k=Math.ceil(k);k<l;k++){var m=e[f];m||(m=g.re("DIV"),a.ua.appendChild(m));f++;0===k%60?In(m,"ytp-60m-progress"):0===k%30?In(m,"ytp-30m-progress"):0===k%15?In(m,"ytp-15m-progress"):In(m,"ytp-1m-progress");var n=(60*k/a.w.getLength()-c)*b.o;m.style.left=n+"px"}}b=a.Sa?a.w.o:0;a.update({boundTimeLeft:g.HM(MP(a.w,c)-b),boundTimeRight:g.HM(MP(a.w,d)-
b)});for(c=e.length-1;c>=f;c--)g.we(e[c]);a.element.style.height=a.L+(a.A?8:5)+"px";a.S("height-change",a.L);a.ac.style.height=a.L+(a.A?20:13)+"px";e=g.q(Object.keys(a.V));for(f=e.next();!f.done;f=e.next())eQ(a,f.value);fQ(a);ZP(a,a.F,a.da)};
dQ=function(a){var b=a.ya.x,c=a.B*a.Z;b=g.Pd(b,0,a.B);a.qb.update(b,a.B,-a.U,-(c-a.U-a.B));return a.qb};
ZP=function(a,b,c){a.F=b;a.da=c;var d=dQ(a),e=a.w.o,f=MP(a.w,a.F),k=g.GM("$PLAY_PROGRESS/$DURATION",{PLAY_PROGRESS:g.HM(f,!0),DURATION:g.HM(e,!0)});if(a.api.M().fa("web_wn_macro_markers")){var l=gQ(a,1E3*f);k=(l=a.u[l].title)?l+" "+k:k}a.update({ariamin:Math.floor(a.w.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:k});e=a.clipStart;f=a.clipEnd;a.I&&2!==a.api.getPresentingPlayerType()&&(e=a.I.startTimeMs/1E3,f=a.I.endTimeMs/1E3);e=NP(a.w,e,0);k=NP(a.w,f,1);f=g.Pd(b,e,k);c=g.Pd(c,e,k);k=
b*d.o+d.w;if(a.api.M().fa("web_wn_macro_markers")){k=b*a.w.o*1E3;l=-1;for(var m=g.q(a.u),n=m.next();!n.done;n=m.next())n=n.value,k>n.startTime&&0<n.width&&l++;k=b*(d.o-(a.A?3:2)*a.R)+(a.A?3:2)*(0>l?0:l)+d.w}g.xh(a.sc,"transform","translateX("+k+"px)");a.api.M().fa("web_wn_macro_markers")?(hQ(a,d,e,f,"PLAY_PROGRESS"),hQ(a,d,e,c,"LOAD_PROGRESS")):(iQ(a,a.u[0].B,d,e,f),iQ(a,a.u[0].A,d,e,c))};
hQ=function(a,b,c,d,e){var f=a.u.length;b=b.o-a.R*(a.A?3:2);var k=c*b;b*=d;d=jQ(a,k);c=jQ(a,b);k=Math.max(k-kQ(a,d),0);for(var l=d;l<f;l++)RP(a.u[l],e).style.left=d===l?k+"px":"0";for(f=d;f<c;f++)l=a.u[f].width,lQ(a,RP(a.u[f],e),f===d?l-k:l,l);f=a.u[c].width;b=g.Pd(b-kQ(a,c),0,f);d===c&&(b-=k);lQ(a,RP(a.u[c],e),b,f);f=a.u.length;for(c+=1;c<f;c++)lQ(a,RP(a.u[c],e),0,a.u[c].width);for(c=0;c<d;c++)lQ(a,RP(a.u[c],e),0,a.u[c].width)};
kQ=function(a,b){if(b>=a.u.length)return a.B;for(var c=0,d=0;d<b;)c+=a.u[d].width,d++;return c};
lQ=function(a,b,c,d,e){e||a.api.M().o?b.style.width=c+"px":g.xh(b,"transform","scalex("+(d?c/d:0)+")")};
jQ=function(a,b,c){var d=0;if(void 0===c?0:c){c=b;for(var e=a.u.length,f=0,k=g.q(a.u),l=k.next();!l.done;l=k.next())if(l=l.value,0!==l.width)if(b>l.width)b-=l.width,b-=a.A?3:2,f++;else break;b=c-(f===e?e-1:f)*(a.A?3:2)}c=g.q(a.u);for(e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.u.length?d-1:d};
gQ=function(a,b){for(var c=0,d=g.q(a.u),e=d.next();!(e.done||e.value.startTime>b);e=d.next())c++;return 0===c?c:c-1};
iQ=function(a,b,c,d,e,f){b.style.left=Math.max(d*c.o+c.w,0)+"px";lQ(a,b,g.Pd((e-d)*c.o+c.w,0,c.width),c.width,void 0===f?!1:f)};
g.mQ=function(a,b,c,d){a.Wb=b;a.B=c;a.A=d;$P(a);a.api.M().fa("web_wn_macro_markers")&&1===a.u.length&&(a.u[0].width=c||0)};
fQ=function(a){var b=!!a.I&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.I?(c=a.I.startTimeMs/1E3,d=a.I.endTimeMs/1E3):(e=c>a.w.u,f=0<a.w.o&&d<a.w.o);g.K(a.element,"ytp-loop-range-enabled",b);g.K(a.element,"ytp-clip-start-enabled",e);g.K(a.element,"ytp-clip-end-enabled",f);b=e?NP(a.w,c,0):0;d=f?NP(a.w,d,1):1;a.oa.style.left=Math.round(1E3*b)/10+"%";a.ma.style.left=Math.round(1E3*d)/10+"%";a.qc.style.width=Math.round(1E3*b)/10+"%";a.jb.style.left=Math.round(1E3*d)/10+
"%";a.jb.style.width=Math.round(1E3*(1-d))/10+"%"};
aQ=function(a){var b=dQ(a);if(a.api.M().fa("web_wn_macro_markers")){hQ(a,b,a.F,Math.max(b.u,a.F),"HOVER_PROGRESS");var c=b.o-(a.A?3:2)*a.R,d=jQ(a,a.F*c);c=jQ(a,b.u*c);for(var e=d;e<=c;)g.K(a.u[e].w,"ytp-hover-progress-light",b.u>a.F),e++;g.K(a.ac,"ytp-scrubber-button-hover",d===c&&1<a.u.length)}else iQ(a,a.u[0].w,b,a.F,b.u),g.K(a.u[0].w,"ytp-hover-progress-light",b.u>a.F)};
eQ=function(a,b){var c=a.V[b],d=a.za[b],e=dQ(a),f=NP(a.w,c.start/1E3,0),k=cia(c,a.A)/e.width;var l=NP(a.w,c.end/1E3,1);k!==Number.POSITIVE_INFINITY&&(f=g.Pd(f,0,l-k));l=Math.min(l,f+k);c.color&&(d.style.background=c.color);iQ(a,d,e,f,l,!0)};
nQ=function(a,b){var c=b.getId();a.V[c]===b&&(g.we(a.za[c]),delete a.V[c],delete a.za[c])};
oQ=function(a,b){b?a.G||(a.element.removeAttribute("aria-disabled"),a.G=new g.Tr(a.Qb,!0),a.G.subscribe("hovermove",a.lM,a),a.G.subscribe("hoverend",a.kM,a),a.G.subscribe("dragstart",a.jM,a),a.G.subscribe("dragmove",a.nM,a),a.G.subscribe("dragend",a.mM,a),a.yb=a.ka("keydown",a.HH)):a.G&&(a.element.setAttribute("aria-disabled","true"),a.Za(a.yb),a.G.cancel(),a.G.dispose(),a.G=null)};
g.pQ=function(a){var b=2*a.B*g.lz();return 1E3*a.w.getLength()/a.api.getPlaybackRate()/b};
qQ=function(a,b,c){g.R.call(this,{D:"button",H:"ytp-button",O:{title:"\u5728\u7535\u89c6\u4e0a\u64ad\u653e","aria-haspopup":"true"},W:"{{icon}}"});var d=this;this.N=a;this.w=c;this.u=null;this.K(a,"onMdxReceiversChange",this.xa);this.K(a,"presentingplayerstatechange",this.xa);this.K(a,"appresize",this.xa);this.xa();this.ka("click",this.A,this);g.Je(this,function(){return g.aO(b.bb(),d.element)})};
tQ=function(a,b,c){g.R.call(this,{D:"div",H:"ytp-volume-panel",O:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},J:[{D:"div",H:"ytp-volume-slider",J:[{D:"div",H:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.w=b;this.G=c;this.I=!1;this.U=this.volume=0;this.L=null;this.B=this.u=this.A=!1;this.w=b;this.G=c;this.C=b.kc();this.R=this.o["ytp-volume-slider"];this.V=this.o["ytp-volume-slider-handle"];this.F=
new g.Tr(this.R,!0);g.C(this,this.F);this.F.subscribe("dragstart",this.aN,this);this.F.subscribe("dragmove",this.MH,this);this.F.subscribe("dragend",this.ZM,this);this.K(a,"onVolumeChange",this.OH);this.K(a,"appresize",this.Zy);this.K(a,"fullscreentoggled",this.KH);this.K(a,"onShowControls",this.uw);this.K(a,"onHideControls",this.uw);this.K(this.element,"keydown",this.NH);this.K(this.element,"focus",function(){rQ(d,d.u,d.A,!0,d.w.Ji())});
this.K(this.element,"blur",function(){rQ(d,d.u,d.A,!1,d.w.Ji())});
this.Zy(g.RK(a).getPlayerSize());sQ(this,a.getVolume(),a.isMuted())};
sQ=function(a,b,c){var d=Math.floor(b),e=d+"% \u97f3\u91cf"+(c?" \u5df2\u9759\u97f3":"");c=c?0:b/100;a.la("valuenow",d);a.la("valuetext",e);a.V.style.left=(a.C?60:40)*c+"px";a.volume=b};
rQ=function(a,b,c,d,e){var f=a.u||a.A||a.B||a.I;a.u=b;a.A=c;a.B=d;a.I=e;b=a.u||a.A||a.B||a.I;f!==b&&(b?a.L=a.K(a.element,"wheel",a.LH):(a.Za(a.L),a.L=null),g.K(a.G,"ytp-volume-slider-active",b))};
g.uQ=function(a,b){var c=a.M(),d=g.iz(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],f=g.Xy(c);f&&e.push("ytp-youtube-music-button");g.R.call(this,{D:"a",Y:e,O:{href:"{{url}}",target:c.C,title:g.GM("\u5728 $WEBSITE \u4e0a\u89c2\u770b",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},J:[f?g.X?{D:"div",Y:["ytp-icon","ytp-icon-youtube-music-logo"]}:{D:"svg",O:{viewBox:"0 0 77 20"},J:[{D:"g",O:{fill:"none"},J:[{D:"path",O:{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"}},{D:"path",O:{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.X?{D:"div",Y:["ytp-icon","ytp-icon-logo"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{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.17 16.31 48.39 16.22 48.63 16.22 z "}}]}]});
var k=this;this.api=a;this.visible=!1;g.lL(a,this.element,this,28666);this.ka("click",this.onClick);this.K(a,"videodatachange",this.u);this.K(a,"onLoopRangeChange",this.u);this.u();g.Je(this,function(){return g.aO(b.bb(),k.element)})};
vQ=function(a,b,c){g.Nr.call(this);var d=this,e=a.M();this.w=a;this.A=b;this.oa=NaN;this.ma=null;this.aa=c;this.aa.subscribe("autohideupdate",this.Gz,this);c=!g.QK(a).isCued();var f;g.Xy(e)||g.P(a.M().experiments,"html5_player_dynamic_bottom_gradient")?this.ua=f=new g.VN(a):f=new g.R({D:"div",H:"ytp-gradient-bottom"});g.C(this,f);g.jL(a,f.element,8);this.ha=new g.LN(f,250,c,100);g.C(this,this.ha);this.u=new g.R({D:"div",H:"ytp-chrome-bottom",J:[{D:"div",H:"ytp-chrome-controls"}]});g.C(this,this.u);
g.jL(a,this.u.element,8);this.ba=new g.LN(this.u,250,c,100);g.C(this,this.ba);this.R=this.u.element.children[0];this.o=new hP(a);g.Je(this.o,function(){a.P==d.o&&(a.P=null)});
g.C(this,this.o);a.P=this.o;g.jL(a,this.o.element,6);this.o.subscribe("show",this.VO,this);this.o.subscribe("show",(0,g.x)(b.Cu,b,this.o));this.B=new g.UP(a,b);g.C(this,this.B);this.B.ca(this.u.element,0);c=new g.yP(a);g.C(this,c);g.jL(a,c.element,4);c=new g.Pu({D:"div",H:"ytp-left-controls"});g.C(this,c);c.ca(this.R);f=new g.nO(a,b,!1);g.C(this,f);f.ca(c.element);e.L||(f=new g.JP(a,b),g.C(this,f),f.ca(c.element));f=new g.nO(a,b,!0);g.C(this,f);f.ca(c.element);var k=new g.R({D:"span"});g.C(this,k);
k.ca(c.element);if(!e.ua&&(this.F=new EP(a,b),g.C(this,this.F),this.F.ca(k.element),e.R)){f=new tQ(a,b,this.u.element);g.C(this,f);f.ca(k.element);k=new g.Tr(k.element);g.C(this,k);var l=(0,g.x)(f.XB,f,!0);k.subscribe("hoverstart",l);k=new g.Tr(c.element);g.C(this,k);f=(0,g.x)(f.XB,f,!1);k.subscribe("hoverend",f)}this.da=new g.uP(a,b);g.C(this,this.da);this.da.ca(c.element);c=new g.Pu({D:"div",H:"ytp-right-controls"});g.C(this,c);c.ca(this.R);g.P(a.M().experiments,"web_wn_macro_markers")&&(this.V=
new wP(a,b,this.B),g.C(this,this.V),this.V.ca(this.R));this.L=null;g.P(e.experiments,"external_fullscreen_with_edu")&&e.externalFullscreen&&kz(e)&&(this.L=new BP(a,b),g.C(this,this.L),this.L.ca(c.element));f=new sP(a,b);g.C(this,f);f.ca(c.element);f=new sO(a,b,this.o);g.C(this,f);hla(this.o,f);f.ca(c.element);f=new ZN(a);g.C(this,f);g.jL(a,f.element,5);f.subscribe("show",(0,g.x)(b.ji,b,f));f=new bO(a,b,f);g.C(this,f);f.ca(c.element);f=a.getVideoData();if(e.Uh||f.lc&&"1"==e.controlsType)this.G=new g.uQ(a,
b),g.C(this,this.G),this.G.ca(c.element);e.showMiniplayerButton&&!g.P(a.M().experiments,"web_player_pip")&&(this.C=new DP(a,b),g.C(this,this.C),this.C.ca(c.element));this.U=new HP(a,b);g.C(this,this.U);this.U.ca(c.element);f.Du||this.U.hide();e.sc||(f=new rP(a,b),g.C(this,f),f.ca(c.element));e.ac&&(f=new qQ(a,b,this.o),g.C(this,f),f.ca(c.element));e.Xf&&(e=new vP(a,b),g.C(this,e),e.ca(c.element));this.ga=new g.CP(a,b);g.C(this,this.ga);this.ga.ca(c.element);this.I=new g.wn(this.jJ,null,this);g.C(this,
this.I);this.P=null;this.K(a,"appresize",this.Kt);this.K(a,"fullscreentoggled",this.Kt);this.K(a,"presentingplayerstatechange",this.Lt);this.K(a,"videodatachange",this.kJ);this.Kt()};
wQ=function(a,b){g.QK(a.w).isCued()||b?b&&(a.ba.hide(),a.ha.hide(),a.F&&a.F.Va(!1),a.G&&a.G.Va(!1),a.C&&a.C.Va(!1),a.A.bb().qf(a.u.element)):b||(a.ba.show(),a.ha.show(),a.F&&a.F.Va(!0),a.G&&a.G.Va(!0),a.C&&a.C.Va(!0),a.Gz())};
yQ=function(a){var b=g.RK(a.w).getPlayerSize().width;return Math.max(b-2*xQ(a),100)};
xQ=function(a){var b=a.A.kc();return 12*(a.w.getVideoData().lc?0:b?2:1)};
g.zQ=function(a){g.R.call(this,{D:"div",Y:["ytp-error"],O:{role:"alert"},J:[{D:"div",H:"ytp-error-content",J:[{D:"div",H:"ytp-error-icon-container",J:[g.iN()]},{D:"div",H:"ytp-error-content-wrap",J:[{D:"div",H:"ytp-error-content-wrap-reason",W:"{{content}}"},{D:"div",H:"ytp-error-content-wrap-subreason",W:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.AQ=function(a){a=a.split(mla);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({D:"br"}),b.push(d[e]);c<a.length&&b.push({D:"a",O:{href:a[c],target:a[c+1]},W:a[c+2]})}return{D:"span",J:b}};
BQ=function(a,b,c,d,e,f,k){d=void 0===d?!1:d;e=void 0===e?!1:e;k=void 0===k?!0:k;e||(e=a.api.M().u);a=a.api.getVideoData();b=g.GM(g.LJ[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({D:"h2",W:f});d.push(b[0]);k&&d.push({D:"br"});d.push({D:"a",O:{href:c,target:e?"_blank":null},W:b[2]});d.push(b[4]);return{D:"span",J:d}};
nla=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.K(c[d],"click",b);a.keys.push(e)}};
ola=function(a){for(var b=0;b<a.keys.length;b++)a.Za(a.keys[b]);a.keys=[]};
DQ=function(a){g.R.call(this,{D:"div",H:"ytp-spinner",J:[jO(),{D:"div",H:"ytp-spinner-message",W:"\u5982\u679c\u7a0d\u540e\u6ca1\u6709\u5f00\u59cb\u64ad\u653e\uff0c\u8bf7\u5c1d\u8bd5\u91cd\u65b0\u542f\u52a8\u8bbe\u5907\u3002"}]});this.api=a;this.message=this.o["ytp-spinner-message"];this.u=new g.H(this.show,500,this);g.C(this,this.u);this.K(a,"presentingplayerstatechange",this.w);this.K(a,"onFrescaStateChange",this.A);this.K(a,"playbackstalledatstart",this.B);CQ(this,g.QK(a))};
CQ=function(a,b){if(g.V(b,128))var c=0;else!(c=g.V(b,16))&&(c=g.V(b,1))&&(c=bL(g.LK(a.api)),c=!(c&&c.loaded));c?a.u.start():a.hide()};
FQ=function(a){var b=g.Dt(a.M().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{D:"div",Y:["ytp-unmute-icon"],J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-volume-muted-dark"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{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"}}]}]},
{D:"div",Y:["ytp-unmute-text"],W:"\u70b9\u6309\u53d6\u6d88\u9759\u97f3"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({D:"div",Y:["ytp-unmute-box"],J:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.WN.call(this,a,{D:"button",Y:["ytp-unmute","ytp-popup","ytp-button"].concat(c),J:[{D:"div",H:"ytp-unmute-inner",J:d}]},100);this.seen=this.w=!1;this.api=a;g.lL(this.api,this.element,this,51663);this.K(a,"onMutedAutoplayChange",this.C,this);this.K(a,"presentingplayerstatechange",
this.B);this.ka("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.Oy(this.api.M());g.Tu(this,a);a&&EQ(this);this.A=a};
GQ=function(a){a.w||(a.w=!0,g.oL(a.api,a.element))};
EQ=function(a){a.seen||(a.seen=!0,g.pL(a.api,a.element,!0))};
g.HQ=function(a){g.Nr.call(this);var b=this,c=a.M(),d=g.RK(a);this.api=a;this.rd=!1;this.C=null;this.Wb=!1;this.Vc=new g.H(this.iK,0,this);g.C(this,this.Vc);g.Xy(c)||(this.aa=new ON(a),g.C(this,this.aa),g.jL(a,this.aa.element,4));if(pla()){var e=new DQ(a);g.C(this,e);e=e.element;g.jL(a,e,4)}var f=a.getVideoData();this.u=new JN(d,(0,g.x)(this.NI,this),f,c.Ua);g.C(this,this.u);this.u.subscribe("autohideupdate",this.im,this);var k=new RN(a);g.C(this,k);g.jL(a,k.element,4);this.Sa=new FQ(a);g.C(this,
this.Sa);g.jL(this.api,this.Sa.element,2);this.ac=this.api.isMutedByMutedAutoplay();this.K(a,"onMutedAutoplayChange",this.OI);this.Pa=new g.H(this.Up,200,this);g.C(this,this.Pa);this.qc=f.videoId;this.B=null;this.Kc=!1;this.Mc=this.Uc=null;this.pd=NaN;this.Jc=this.da=!1;this.ua=0;this.qd=new g.H(function(){b.ua=0},350);
g.C(this,this.qd);this.Ca=new g.H(this.nF.bind(this),350,this);g.C(this,this.Ca);this.Ua=[];f=a.getRootNode();f.setAttribute("aria-label","YouTube \u89c6\u9891\u64ad\u653e\u5668");switch(c.color){case "white":g.J(f,"ytp-color-white")}g.Xy(c)&&g.J(f,"ytp-music-player");!g.P(a.M().experiments,"disable_mediasession2")&&navigator.mediaSession&&!navigator.mediaSession.metadata&&navigator.mediaSession.setActionHandler&&(f=new QN(a),g.C(this,f));this.K(a,"appresize",this.Oi);this.K(a,"presentingplayerstatechange",
this.QI);this.K(a,"videodatachange",this.Cz);this.K(a,"videoplayerreset",this.eM);this.K(a,"autonavvisibility",this.Ng,this);this.K(a,"sizestylechange",this.Ng,this);this.K(a,"onFrescaStateChange",this.ne,this);this.K(d,"click",this.IM,this);this.K(d,"dblclick",this.JM,this);c.da&&(this.K(d,"gesturechange",this.KM,this),this.K(d,"gestureend",this.LM,this));this.R=[d.A];this.aa&&this.R.push(this.aa.element);e&&this.R.push(e)};
IQ=function(a,b){if(!b)return!1;var c=a.api.app.B;if(c.Bh()&&(c=c.ib())&&g.Ae(c,b))return c.controls;for(c=0;c<a.R.length;c++)if(g.Ae(a.R[c],b))return!1;return g.Jn(b,"ytp-player-content")||g.Jn(b,"html5-endscreen")||b==a.api.getRootNode()?!1:!0};
KQ=function(a){return!!(2==a.api.getPresentingPlayerType()&&g.RK(a.api).C&&a.api.M().o&&JQ&&11<=WB)};
LQ=function(a,b){return!IQ(a,Op(b))&&g.IM(b)};
MQ=function(a){a.u.Sb(2,!0);if(!a.api.M().L&&!a.hg()){var b=g.QK(a.api);g.V(b,2)&&NK(a.api)||a.Et(b);if(!a.api.M().da||b.isCued()||g.V(b,1024)){var c=a.api.app.Ha;g.Yq("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.V(b,2048);c&&(b.isCued()||d)?(g.Yq("embedsRequestStorageAccessState",{isCued:b.isCued(),isAutoplayBlocked:d}),qla(a)):(!c||b.isCued()&&d||g.Yq("embedsRequestStorageAccessFailedState",{state:b.o}),a.Up())}else a.Pa.isActive()?(a.jo(),a.Pa.stop()):
a.Pa.start()}};
qla=function(a){uL(function(){g.Yq("embedsRequestStorageAccessResult",{resolved:!0});oy(!0);Cp();window.location.reload()},function(){g.Yq("embedsRequestStorageAccessResult",{resolved:!1});
a.Up()})};
NQ=function(a,b){if(g.IM(b)&&a.api.isMutedByMutedAutoplay()){a.api.unMute();2==a.api.getPresentingPlayerType()&&a.api.playVideo();var c=g.QK(a.api);!g.V(c,4)||g.V(c,8)||g.V(c,2)||a.Up();return!0}return!1};
OQ=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
pla=function(){var a=jl()&&67<=gl();return!il("tizen")&&!My&&!a&&!0};
PQ=function(a,b){g.Uu.call(this,{D:"div",H:"ytp-ad-persistent-progress-bar-container",J:[{D:"div",H:"ytp-ad-persistent-progress-bar"}]});this.A=a;this.w=b;g.C(this,this.w);this.F=this.o["ytp-ad-persistent-progress-bar"];this.u=-1;this.K(a,"presentingplayerstatechange",this.C);this.hide();this.C()};
QQ=function(a,b){b=void 0===b?2:b;g.O.call(this);this.o=a;this.u=new g.Nr(this);g.C(this,this.u);this.B=rla;this.A=null;this.u.K(this.o,"presentingplayerstatechange",this.mJ);this.A=this.u.K(this.o,"progresssync",this.Kz);this.w=b;1===this.w&&this.Kz()};
g.RQ=function(a){g.R.call(this,{D:"div",J:[{D:"div",H:"ytp-bezel-text-wrapper",J:[{D:"div",H:"ytp-bezel-text",W:"{{title}}"}]},{D:"div",H:"ytp-bezel",O:{role:"status","aria-label":"{{label}}"},J:[{D:"div",H:"ytp-bezel-icon",W:"{{icon}}"}]}]});this.A=new g.H(this.show,10,this);g.C(this,this.A);this.u=new g.H(this.hide,500,this);g.C(this,this.u);this.w=a;this.hide()};
g.TQ=function(a,b){if(b)g.V(g.QK(a.w),64)||SQ(a,rN(),"\u64ad\u653e");else{var c=a.w.getVideoData();c.sa&&!c.allowLiveDvr?SQ(a,vN(),"\u505c\u6b62\u76f4\u64ad"):SQ(a,pN(),"\u6682\u505c")}};
UQ=function(a,b,c){if(0>=b){c=zN();b="\u5df2\u9759\u97f3";var d=0}else c=c?yN():xN(),d=Math.floor(b),b=d+"\u97f3\u91cf";SQ(a,c,b,d+"%")};
VQ=function(a,b){var c=b?g.X?{D:"div",Y:["ytp-icon","ytp-icon-fast-rewind"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{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.X?{D:"div",Y:["ytp-icon","ytp-icon-fast-forward"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{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.w.getPlaybackRate(),
e=g.GM("\u64ad\u653e\u901f\u5ea6\u4e3a $RATE",{RATE:String(d)});SQ(a,c,e,d+"x")};
SQ=function(a,b,c,d){d=void 0===d?"":d;a.la("label",void 0===c?"":c);a.la("icon",b);g.Cn(a.u);a.A.start();a.la("title",d);g.K(a.element,"ytp-bezel-text-hide",!d)};
XQ=function(a,b,c){g.R.call(this,{D:"button",Y:["ytp-button","ytp-cards-button"],O:{"aria-label":"\u663e\u793a\u4fe1\u606f\u5361","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.Oy(a.M()))},J:[{D:"span",H:"ytp-cards-button-icon-default",J:[{D:"div",H:"ytp-cards-button-icon",J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-info-card"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{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"}}]}]},
{D:"div",H:"ytp-cards-button-title",W:"\u4fe1\u606f"}]},{D:"span",H:"ytp-cards-button-icon-shopping",J:[{D:"div",H:"ytp-cards-button-icon",J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-shopping-card"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",H:"ytp-svg-shadow",O:{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"}},{D:"path",H:"ytp-svg-fill",O:{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"}},{D:"path",H:"ytp-svg-shadow-fill",O:{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"}}]}]},{D:"div",
H:"ytp-cards-button-title",W:"\u8d2d\u7269"}]}]});this.N=a;this.B=b;this.A=c;this.u=null;this.w=new g.LN(this,250,!0,100);g.C(this,this.w);g.K(this.A,"ytp-show-cards-title",g.Oy(a.M()));this.hide();this.ka("click",this.onClicked);this.ka("mouseover",this.C);WQ(this,!0)};
WQ=function(a,b){b?a.u=g.aO(a.B.bb(),a.element):(a.u=a.u,a.u(),a.u=null)};
YQ=function(a,b,c){g.R.call(this,{D:"div",H:"ytp-cards-teaser",J:[{D:"div",H:"ytp-cards-teaser-box"},{D:"div",H:"ytp-cards-teaser-text",J:[{D:"span",H:"ytp-cards-teaser-label",W:"{{text}}"}]}]});var d=this;this.w=a;this.U=b;this.F=new g.LN(this,250,!1,250);g.C(this,this.F);this.C=c;this.u=null;this.L=new g.H(this.GL,300,this);g.C(this,this.L);this.I=new g.H(this.DL,2E3,this);g.C(this,this.I);this.G=[];this.A=null;this.R=new g.H(function(){d.element.style.margin=0},250);
g.C(this,this.R);this.B=null;this.K(c.element,"mouseover",this.AA);this.K(c.element,"mouseout",this.zA);this.K(a,"cardsteasershow",this.gN);this.K(a,"cardsteaserhide",this.em);this.K(a,"cardstatechange",this.AC);this.K(a,"presentingplayerstatechange",this.AC);this.K(a,"appresize",this.Ft);this.K(a,"onShowControls",this.Ft);this.K(a,"onHideControls",this.bE);this.ka("click",this.JO);this.ka("mouseenter",this.RI)};
sla=function(a,b){a.la("text",b.teaserText);a.element.setAttribute("dir",g.Tn(b.teaserText));a.F.show();a.A=new g.H(function(){g.J(this.w.getRootNode(),"ytp-cards-teaser-shown");this.Ft()},0,a);
a.A.start();WQ(a.C,!1);a.u=new g.H(a.em,580+b.durationMs,a);a.u.start();a.G.push(a.ka("mouseover",a.AA,a));a.G.push(a.ka("mouseout",a.zA,a))};
ZQ=function(a,b,c){return b?a.G+"subscription_ajax":c?"/subscription_service":""};
g.aR=function(a,b,c,d,e,f,k,l,m,n,p,t,u){u=void 0===u?null:u;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=t.M();if(p){c={href:p,"aria-label":"\u8ba2\u9605\u9891\u9053"};if(g.Uy(z)||g.Wy(z))c.target=z.C;g.R.call(this,{D:"div",Y:["ytp-button","ytp-sb"],J:[{D:"a",H:"ytp-sb-subscribe",O:c,J:[{D:"div",H:"ytp-sb-text",J:[{D:"div",H:"ytp-sb-icon"},a]},b?{D:"div",H:"ytp-sb-count",W:b}:""]}]});f&&g.J(this.element,
"ytp-sb-classic")}else{p=z.ha&&g.Uy(z)&&!g.P(z.experiments,"subscribe_tooltip_killswitch");g.R.call(this,{D:"div",Y:["ytp-button","ytp-sb"],J:[{D:"div",H:"ytp-sb-subscribe",O:p?{title:g.GM("\u4ee5$USER_NAME\u7684\u8eab\u4efd\u8ba2\u9605",{USER_NAME:z.ha}),"aria-label":"\u8ba2\u9605\u9891\u9053","data-tooltip-image":vz(z),"data-tooltip-opaque":String(g.Oy(z)),tabindex:"0",role:"button"}:{"aria-label":"\u8ba2\u9605\u9891\u9053"},J:[{D:"div",H:"ytp-sb-text",J:[{D:"div",H:"ytp-sb-icon"},a]},b?{D:"div",
H:"ytp-sb-count",W:b}:""]},{D:"div",H:"ytp-sb-unsubscribe",O:p?{title:g.GM("\u4ee5\u201c$USER_NAME\u201d\u7684\u8eab\u4efd\u8ba2\u9605",{USER_NAME:z.ha}),"aria-label":"\u9000\u8ba2\u9891\u9053","data-tooltip-image":vz(z),"data-tooltip-opaque":String(g.Oy(z)),tabindex:"0",role:"button"}:{"aria-label":"\u9000\u8ba2\u9891\u9053"},J:[{D:"div",H:"ytp-sb-text",J:[{D:"div",H:"ytp-sb-icon"},c]},d?{D:"div",H:"ytp-sb-count",W:d}:""]}]});var B=this;this.u=k;this.A=u;var D=this.o["ytp-sb-subscribe"],E=this.o["ytp-sb-unsubscribe"];
f&&g.J(this.element,"ytp-sb-classic");if(e){l&&g.J(this.element,"ytp-sb-subscribed");var F=function(){var ia=B.u;if(m||n){var pa=t.M();var tc={c:ia};if(g.P(pa.experiments,"embeds_botguard_with_subscribe_killswitch"))tc="";else{var nd;gr.o&&(nd=Ts(tc));tc=nd||""}g.P(pa.experiments,"web_player_innertube_subscription_update")?(pa=t.getVideoData(),JK($Q(t.app),pa.subscribeCommand)):g.Lq(ZQ(pa,!!m,!!n),m?{method:"POST",Zd:{action_create_subscription_to_channel:1,c:ia},rb:{feature:m,silo_name:null,r2b:tc},
withCredentials:!0}:n?{method:"POST",Zd:{action_subscribe:1},rb:{channel_ids:ia,itct:n}}:{});t.na("SUBSCRIBE",ia)}E.focus();E.removeAttribute("aria-hidden");D.setAttribute("aria-hidden",!0)},I=function(){var ia=B.u;
if(m||n){var pa=t.M();g.P(pa.experiments,"web_player_innertube_subscription_update")?(pa=t.getVideoData(),JK($Q(t.app),pa.unsubscribeCommand)):g.Lq(ZQ(pa,!!m,!!n),m?{method:"POST",Zd:{action_remove_subscriptions:1},rb:{c:ia,silo_name:null,feature:m},withCredentials:!0}:n?{method:"POST",Zd:{action_unsubscribe:1},rb:{channel_ids:ia,itct:n}}:{});t.na("UNSUBSCRIBE",ia)}D.focus();D.removeAttribute("aria-hidden");E.setAttribute("aria-hidden",!0)};
this.K(D,"click",F);this.K(E,"click",I);this.K(D,"keypress",function(ia){13==ia.keyCode&&F(ia)});
this.K(E,"keypress",function(ia){13==ia.keyCode&&I(ia)});
this.K(t,"SUBSCRIBE",this.B);this.K(t,"UNSUBSCRIBE",this.C);this.A&&p&&(this.w=this.A.bb(),$N(this.w),g.Je(this,g.aO(this.w,D)),g.Je(this,g.aO(this.w,E)))}else g.J(D,"ytp-sb-disabled"),g.J(E,"ytp-sb-disabled")}};
g.cR=function(a,b,c){b=bR(null,b,c);if(b=window.open(b,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes",!0))c=g.Vo("LOGGED_IN",function(d){g.Wo(g.L("LOGGED_IN_PUBSUB_KEY",void 0));Bo("LOGGED_IN",!0);a(d)}),Bo("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
bR=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=Ad(c,"mode",a));a=Ad(d,"next",c);b&&(a=Ad(a,"feature",b));return a};
eR=function(a,b){g.R.call(this,{D:"button",Y:[dR.BUTTON,dR.TITLE_NOTIFICATIONS],O:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},J:[{D:"div",H:dR.TITLE_NOTIFICATIONS_ON,O:{title:"\u505c\u6b62\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5","aria-label":"\u53d1\u9001\u8ba2\u9605\u5185\u5bb9\u901a\u77e5"},J:[g.oN()]},{D:"div",H:dR.TITLE_NOTIFICATIONS_OFF,O:{title:"\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5","aria-label":"\u53d1\u9001\u8ba2\u9605\u5185\u5bb9\u901a\u77e5"},
J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-notifications-inactive"]}:{D:"svg",O:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},J:[{D:"path",O:{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.api=a;this.channelId=b;this.u=!1;g.lL(a,this.element,this,36927);this.ka("click",this.onClick,this);this.la("pressed",
!1);this.la("label","\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5")};
fR=function(a,b){a.u=b;a.element.classList.toggle(dR.NOTIFICATIONS_ENABLED,a.u);g.Lq("/subscription_ajax?action_update_subscription_preferences=1",{method:"POST",rb:{channel_id:a.channelId,receive_all_updates:!a.u}})};
gR=function(a,b){var c=a.M();g.R.call(this,{D:"div",H:"ytp-title-channel",J:[{D:"div",H:"ytp-title-beacon"},{D:"a",H:"ytp-title-channel-logo",O:{href:"{{channelLink}}",target:c.C,"aria-label":"{{channelLogoLabel}}"}},{D:"div",H:"ytp-title-expanded-overlay",J:[{D:"div",H:"ytp-title-expanded-heading",J:[{D:"h2",H:"ytp-title-expanded-title",J:[{D:"a",W:"{{expandedTitle}}",O:{href:"{{channelTitleLink}}",target:c.C,tabIndex:"{{channelTitleFocusable}}"}}]},{D:"h3",H:"ytp-title-expanded-subtitle",W:"{{expandedSubtitle}}"}]}]}]});
this.u=a;this.aa=b;this.w=this.o["ytp-title-channel"];this.B=this.o["ytp-title-channel-logo"];this.U=this.o["ytp-title-expanded-overlay"];this.F=this.C=this.A=null;this.V=g.Oy(c);g.lL(a,this.B,this,36925);this.V&&tla(this);this.K(a,"videodatachange",this.L);this.K(a,"videoplayerreset",this.L);this.L()};
tla=function(a){var b=a.u.M(),c=a.u.getVideoData();if(!b.ba){var d=b.Nc?null:bR(),e=new g.aR("\u8ba2\u9605",null,"\u5df2\u8ba2\u9605",null,!0,!1,c.Og,c.subscribed,"channel_avatar",null,d,a.u,a.aa);a.A=e;g.C(a,e);e.ca(a.U);g.lL(a.u,e.element,a,36926);e.hide();a.K(e.element,"click",function(){g.oL(a.u,e.element)});
var f=new eR(a.u,c.Og);a.C=f;g.C(a,f);f.ca(a.U);f.hide();a.K(a.u,"SUBSCRIBE",function(){c.uk&&f.show()});
a.K(a.u,"UNSUBSCRIBE",function(){c.uk&&(f.hide(),fR(f,!1))})}a.la("channelTitleFocusable","-1");
b.o?a.K(a.B,"click",function(k){hR(a)&&(k.preventDefault(),iR(a)?a.G():a.I());g.oL(a.u,a.B)}):(a.K(a.w,"mouseenter",a.I),a.K(a.w,"mouseleave",a.G),a.K(a.w,"focusin",a.I),a.K(a.w,"focusout",function(k){a.w.contains(k.relatedTarget)||a.G()}),a.K(a.B,"click",function(){g.oL(a.u,a.B)}));
a.F=new g.H(function(){iR(a)&&(a.A&&(a.A.hide(),g.pL(a.u,a.A.element,!1)),a.C&&(a.C.hide(),g.pL(a.u,a.C.element,!1)),a.w.classList.remove("ytp-title-expanded"),a.w.classList.add("ytp-title-show-collapsed"))},500);
g.C(a,a.F);a.K(a.w,jR,function(){kR(a)});
a.K(a.u,"onHideControls",a.R);a.K(a.u,"appresize",a.R);a.K(a.u,"fullscreentoggled",a.R)};
kR=function(a){a.w.classList.remove("ytp-title-show-collapsed");a.w.classList.remove("ytp-title-show-expanded")};
hR=function(a){var b=a.u.getPlayerSize();return a.V&&524<=b.width};
iR=function(a){return a.w.classList.contains("ytp-title-expanded")};
lR=function(a){g.R.call(this,{D:"div",H:"ytp-doubletap-ui",J:[{D:"div",H:"ytp-doubletap-static-circle",J:[{D:"div",H:"ytp-doubletap-ripple"}]},{D:"div",H:"ytp-doubletap-overlay-a11y"},{D:"div",H:"ytp-doubletap-seek-info-container",J:[{D:"div",H:"ytp-doubletap-arrows-container",J:[{D:"span",H:"ytp-doubletap-base-arrow"},{D:"span",H:"ytp-doubletap-base-arrow"},{D:"span",H:"ytp-doubletap-base-arrow"}]},{D:"div",H:"ytp-doubletap-tooltip",J:[{D:"div",H:"ytp-doubletap-tooltip-label",W:"{{seekTime}}"}]}]}]});
this.w=a;this.A=new g.H(this.show,10,this);g.C(this,this.A);this.u=new g.H(this.hide,700,this);g.C(this,this.u);this.hide()};
mR=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.Bd("/sharing_services",a);g.jr(d)};
nR=function(a){var b=g.Xu({"aria-haspopup":"true"});g.Wu.call(this,b,a);this.ka("keydown",this.u)};
oR=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
rR=function(a,b,c,d){g.xO.call(this,a);this.u=a;this.U=c;this.Z=d;this.F=new g.uO("\u5faa\u73af\u64ad\u653e",7);g.C(this,this.F);g.yO(this,this.F,!0);this.F.ka("click",this.oL,this);g.lL(a,this.F.element,this.F,28661);this.C=new nR(6);g.C(this,this.C);g.yO(this,this.C,!0);this.C.ka("click",this.YK,this);g.lL(a,this.C.element,this.C,28659);this.B=new nR(5);g.C(this,this.B);g.yO(this,this.B,!0);this.B.ka("click",this.XK,this);g.lL(a,this.B.element,this.B,28660);this.A=new nR(4);g.C(this,this.A);g.yO(this,
this.A,!0);this.A.ka("click",this.WK,this);g.lL(a,this.A.element,this.A,28658);this.R=new nR(3);g.C(this,this.R);g.yO(this,this.R,!0);this.R.ka("click",this.VK,this);this.V=new g.Wu(g.Xu({href:"{{href}}",target:a.M().C},void 0,!0),2,"\u6392\u67e5\u64ad\u653e\u95ee\u9898");g.C(this,this.V);g.yO(this,this.V,!0);this.V.ka("click",this.AM,this);b=new g.Wu(g.Xu(),1,"\u8be6\u7ec6\u7edf\u8ba1\u4fe1\u606f");g.C(this,b);g.yO(this,b,!0);b.ka("click",this.XM,this);this.L=new g.Uu({D:"div",Y:["ytp-copytext",
"ytp-no-contextmenu"],O:{draggable:"false",tabindex:"1"},W:"{{text}}"});g.C(this,this.L);this.L.ka("click",this.DK,this);this.ga=new wO(a,this.L);g.C(this,this.ga);this.I=null;c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.Gt&&g.Nd(43)&&(c=!0);g.ku&&!g.Nd(41)&&(c=!1);c&&(this.I=new g.R({D:"textarea",H:"ytp-html5-clipboard",O:{readonly:""}}),g.C(this,this.I),this.I.ca(this.element));Yu(this.F,g.X?{D:"div",Y:["ytp-icon","ytp-icon-repeat"]}:{D:"svg",O:{fill:"none",height:"24",
viewBox:"0 0 24 24",width:"24"},J:[{D:"path",O:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});Yu(this.R,g.X?{D:"div",Y:["ytp-icon","ytp-icon-bug-report"]}:{D:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{D:"path",O:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
fill:"white","fill-rule":"evenodd"}}]});Yu(this.V,g.X?{D:"div",Y:["ytp-icon","ytp-icon-help-outline"]}:{D:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{D:"path",O:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
fill:"white","fill-rule":"evenodd"}}]});Yu(b,jN());this.K(a,"loopchange",this.xA);this.K(a,"videodatachange",this.VI);pR(this);qR(this,this.u.getVideoData())};
sR=function(a,b){if(a.I){var c=a.I.element;c.value=b;c.select();try{var d=document.execCommand("copy")}catch(e){}}d?a.U.eb():(a.L.ob(b,"text"),g.FO(a.U,a.ga),kO(a.L.element),a.I&&(a.I=null,pR(a)));return d};
qR=function(a,b){var c=a.u.M(),d=2==a.u.getPresentingPlayerType(),e=!d||b.isListed;e=!c.P&&!!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.Ba&&(c.fmt=jt(b.Ba)),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.Ee&&(c.partnerid=b.Ee),c=g.Bd("//support.google.com/googleplay/",c));g.Tu(a.A,e&&b.allowEmbed);g.Tu(a.C,e);g.Tu(a.B,e&&!b.sa);a.V.ob(c,"href");g.Tu(a.F,
!b.sa&&!d)};
pR=function(a){var b=!!a.I;g.Vu(a.R,b?"\u590d\u5236\u8c03\u8bd5\u4fe1\u606f":"\u83b7\u53d6\u8c03\u8bd5\u4fe1\u606f");oR(a.R,!b);g.Vu(a.A,b?"\u590d\u5236\u5d4c\u5165\u4ee3\u7801":"\u83b7\u53d6\u5d4c\u5165\u4ee3\u7801");oR(a.A,!b);g.Vu(a.C,b?"\u590d\u5236\u89c6\u9891\u7f51\u5740":"\u83b7\u53d6\u89c6\u9891\u7f51\u5740");oR(a.C,!b);g.Vu(a.B,b?"\u590d\u5236\u5f53\u524d\u65f6\u95f4\u7684\u89c6\u9891\u7f51\u5740":"\u83b7\u53d6\u5728\u64ad\u89c6\u9891\u7684\u7f51\u5740");oR(a.B,!b);Yu(a.A,b?gN():null);Yu(a.C,
b?lN():null);Yu(a.B,b?lN():null)};
g.tR=function(){g.Nr.apply(this,arguments)};
g.vR=function(a,b,c){g.BO.call(this,a);this.N=a;this.Z=b;this.V=c;this.B=new g.tR(this);this.A=null;g.C(this,this.B);g.lL(a,this.element,this,28656);g.J(this.element,"ytp-contextmenu");uR(this);this.hide()};
uR=function(a){g.Pr(a.B);"gvn"!==a.N.M().playerStyle&&a.B.K(g.RK(a.N),"contextmenu",a.CK)};
wR=function(a){a.N.isFullscreen()?g.jL(a.N,a.element,9):a.ca(document.body)};
g.xR=function(a,b,c,d,e,f){g.Nr.call(this);this.o=a;this.F=c;this.B=d;this.u=e;this.C=f;this.A=new g.H(g.Ta(this.Ez,!1),1E3,this);g.C(this,this.A);this.w="";a=g.Ta(this.zu,!1);this.K(b,"mousedown",a);this.K(c.element,"mousedown",a);this.K(b,"keydown",this.Hx);this.K(c.element,"keydown",this.Hx);this.K(b,"keyup",this.Ix);this.K(c.element,"keyup",this.Ix)};
yR=function(a,b,c,d){var e=g.AL(g.LK(a.o));if(e&&e.loaded){e=a.o.getSubtitlesUserSettings();for(var f,k=0;k<g.bP.length;k++){var l=g.bP[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.o.updateSubtitlesUserSettings(d);a.Ez(!0);a.A.start()}};
zR=function(a,b){a.o.Qc();if(g.V(g.QK(a.o),4)){var c=a.o.getVideoData().Ba;c&&(c=c.video)&&a.o.seekBy(b/(c.fps||30))}};
AR=function(a,b,c){var d=b.va(c),e=a.M(),f=d.uc("default.jpg");g.R.call(this,{D:"a",Y:["ytp-video-menu-item","ytp-button"],O:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},J:[{D:"div",H:"ytp-video-menu-item-index",W:String(c+1)},{D:"div",H:"ytp-video-menu-item-now-playing",W:"\u25b6"},{D:"div",H:"ytp-video-menu-item-thumbnail",O:{style:f?"background-image: url("+f+");":void 0}},{D:"div",H:"ytp-video-menu-item-title",W:d.title},{D:"div",
H:"ytp-video-menu-item-author",W:d.author}]});this.api=a;this.index=c;this.ka("click",this.onClick)};
BR=function(a){g.WN.call(this,a,{D:"div",H:"ytp-playlist-menu",O:{role:"dialog",id:Ou()},J:[{D:"div",H:"ytp-playlist-menu-header",J:[{D:"div",H:"ytp-playlist-menu-title",J:[{D:"a",H:"ytp-playlist-menu-title-name",O:{href:"{{playlisturl}}"},W:"{{title}}"},{D:"button",Y:["ytp-playlist-menu-close","ytp-button"],O:{"aria-label":"\u5173\u95ed"},J:[g.fN()]}]},{D:"div",H:"ytp-playlist-menu-subtitle",W:"{{subtitle}}"}]},{D:"div",H:"ytp-playlist-menu-items",O:{role:"menu"}}]},250);this.api=a;this.selected=
this.A=this.playlist=null;this.items=this.o["ytp-playlist-menu-items"];this.w=new g.Nr(this);this.playlistData=[];this.K(this.o["ytp-playlist-menu-close"],"click",this.eb);this.K(this.o["ytp-playlist-menu-title-name"],"click",this.kN);g.C(this,this.w);this.hide()};
CR=function(a,b,c){g.R.call(this,{D:"button",Y:["ytp-playlist-menu-button","ytp-button"],O:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"\u64ad\u653e\u5217\u8868"},J:[{D:"div",H:"ytp-playlist-menu-button-icon",J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-playlist"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,O:{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"}}]}]},{D:"div",H:"ytp-playlist-menu-button-text",W:"{{text}}"}]});var d=this;this.w=a;this.u=null;this.B=b.bb();this.F=!1;g.lL(a,this.element,this,70344);this.K(a,"videodatachange",this.C);this.K(a,"onPlaylistUpdate",this.C);this.K(a,"presentingplayerstatechange",this.A);this.K(a,"appresize",this.A);this.hide();this.C();g.Je(this,g.aO(this.B,this.element));this.ka("click",function(){g.oL(a,d.element);c.gf(d.element,!1)})};
DR=function(a,b,c){g.R.call(this,{D:"div",H:"ytp-promotooltip-wrapper",J:[{D:"div",H:"ytp-promotooltip-container",J:[{D:"div",H:"ytp-promotooltip-content",J:[{D:"div",H:"ytp-promotooltip-title",W:"{{title}}"},{D:"div",H:"ytp-promotooltip-details",W:"{{details}}"}]},{D:"div",H:"ytp-promotooltip-buttons",J:[{D:"div",H:"ytp-promotooltip-dismiss-button",W:"{{dismissButtonText}}"},{D:"div",H:"ytp-promotooltip-accept-button",W:"{{acceptButtonText}}"}]}]},{D:"div",H:"ytp-promotooltip-pointer"}]});this.u=
a;this.R=b;this.F=c;this.A=null;this.U=this.o["ytp-promotooltip-title"];this.I=this.o["ytp-promotooltip-details"];this.G=this.o["ytp-promotooltip-accept-button"];this.L=this.o["ytp-promotooltip-dismiss-button"];this.w=!1;g.Tu(this,this.w);this.K(c,"onShowControls",this.C);this.K(c,"onHideControls",this.B)};
g.ER=function(a,b){var c=Ou(),d=a.M();c={D:"div",H:"ytp-share-panel",O:{id:Ou(),role:"dialog","aria-labelledby":c},J:[{D:"div",H:"ytp-share-panel-inner-content",J:[{D:"div",H:"ytp-share-panel-title",O:{id:c},W:"\u5206\u4eab"},{D:"a",Y:["ytp-share-panel-link","ytp-no-contextmenu"],O:{href:"{{link}}",target:d.C,title:"\u5206\u4eab\u94fe\u63a5","aria-label":"{{shareLinkWithUrl}}"},W:"{{linkText}}"},{D:"label",H:"ytp-share-panel-include-playlist",J:[{D:"input",H:"ytp-share-panel-include-playlist-checkbox",
O:{type:"checkbox",checked:!0}},"\u5305\u62ec\u64ad\u653e\u5217\u8868"]},{D:"div",H:"ytp-share-panel-loading-spinner",J:[jO()]},{D:"div",H:"ytp-share-panel-service-buttons",W:"{{buttons}}"},{D:"div",H:"ytp-share-panel-error",W:"\u68c0\u7d22\u5206\u4eab\u4fe1\u606f\u65f6\u51fa\u9519\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002"}]},{D:"button",Y:["ytp-share-panel-close","ytp-button"],O:{title:"\u5173\u95ed"},J:[g.fN()]}]};g.WN.call(this,a,c,250);this.w=a;this.A=b.bb();this.B=[];this.R=this.o["ytp-share-panel-inner-content"];
this.C=this.o["ytp-share-panel-close"];this.K(this.C,"click",this.eb);g.Je(this,g.aO(this.A,this.C));this.L=this.o["ytp-share-panel-include-playlist-checkbox"];this.K(this.L,"click",this.Ht);this.F=this.o["ytp-share-panel-link"];g.Je(this,g.aO(this.A,this.F));this.ka("click",this.XL);this.K(a,"videoplayerreset",this.hide);this.K(a,"fullscreentoggled",this.dJ);this.K(a,"onLoopRangeChange",this.Ht);this.hide()};
GR=function(a,b){if(!a.ea()){g.Ln(a.element,"ytp-share-panel-loading");FR(a);for(var c=b.links||b.shareTargets,d=0,e=0;e<c.length&&2>d;e++){var f=c[e];a:switch(f.img||f.iconId){case "facebook":var k=g.X?{D:"div",Y:["ytp-icon","ytp-icon-share-facebook"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},J:[{D:"rect",O:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",O:{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":k=g.X?{D:"div",Y:["ytp-icon","ytp-icon-share-twitter"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},J:[{D:"rect",O:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",O:{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:k=null}k&&(k=new g.R({D:"a",Y:["ytp-share-panel-service-button","ytp-button"],O:{href:f.url,target:"_blank",title:f.sname||f.serviceName},J:[k]}),k.ka("click",g.Ta(a.UM,f.url)),g.Je(k,g.aO(a.A,k.element)),a.B.push(k),d++)}c=b.more||b.moreLink;d=new g.R({D:"a",Y:["ytp-share-panel-service-button","ytp-button"],J:[{D:"span",H:"ytp-share-panel-service-button-more",J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-share-more"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 38 38",
width:"100%"},J:[{D:"rect",O:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",O:{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"}}]}]}],O:{href:c,target:"_blank",title:"\u66f4\u591a\u9009\u9879"}});d.ka("click",(0,g.x)(a.AL,a,c));g.Je(d,g.aO(a.A,d.element));a.B.push(d);a.la("buttons",a.B)}};
FR=function(a){for(var b=g.q(a.B),c=b.next();!c.done;c=b.next())c=c.value,g.Qu(c),g.Ke(c);a.B=[]};
g.HR=function(a,b,c,d){d=void 0===d?240:d;var e=a.M();g.R.call(this,{D:"button",Y:["ytp-button","ytp-share-button"],O:{title:"\u5206\u4eab","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.Oy(e))},J:[{D:"div",H:"ytp-share-icon",W:"{{icon}}"},{D:"div",H:"ytp-share-title",W:"\u5206\u4eab"}]});this.u=a;this.B=b;this.I=c;this.F=d;this.w=!1;this.C=b.bb();g.lL(a,this.element,this,28664);this.ka("click",this.G);this.K(a,"videodatachange",this.A);this.K(a,"videoplayerreset",
this.A);this.K(a,"appresize",this.A);this.K(a,"presentingplayerstatechange",this.A);this.A();g.K(this.element,"ytp-show-share-title",g.Oy(e)&&!g.Xy(e));g.Je(this,g.aO(this.C,this.element))};
JR=function(a){g.WN.call(this,a,{D:"button",Y:["ytp-skip-intro-button","ytp-popup","ytp-button"],J:[{D:"div",H:"ytp-skip-intro-button-text",W:"\u8df3\u8fc7\u4ecb\u7ecd"}]},100);var b=this;this.w=a;this.F=!1;this.C=new g.H(function(){return b.hide()},5E3);
g.C(this,this.C);this.A=this.B=NaN;this.V=function(){return b.show()};
this.R=function(){return b.hide()};
this.L=this.Z.bind(this);this.K(this.w,"videodatachange",function(c,d){if("dataloaded"==c)if(b.B=d.Wx,b.A=d.Vx,isNaN(b.B)||isNaN(b.A))b.F&&(g.IR(b.w.app,"intro",void 0),b.w.removeEventListener(g.pC("intro"),b.V),b.w.removeEventListener("crx_intro",b.R),b.w.removeEventListener("onShowControls",b.L),b.hide(),b.F=!1);else{b.w.addEventListener(g.pC("intro"),b.V);b.w.addEventListener("crx_intro",b.R);b.w.addEventListener("onShowControls",b.L);var e=new g.mC(b.B,b.A,{priority:7,namespace:"intro"});g.fL(b.w,
[e]);b.F=!0}});
this.K(this.element,"click",function(){b.w.seekTo(b.A/1E3)});
this.hide()};
g.KR=function(a,b){var c=g.RK(a).getPlayerSize();g.R.call(this,{D:"div",J:[{D:"div",H:"ytp-tooltip-text-wrapper",J:[{D:"div",H:"ytp-tooltip-image"},{D:"div",H:"ytp-tooltip-title",W:"{{title}}"},{D:"span",H:"ytp-tooltip-text",W:"{{text}}"}]},{D:"div",H:"ytp-tooltip-bg",J:[{D:"div",H:"ytp-tooltip-duration",W:"{{duration}}"}]}]});this.U=a;this.ua=b;this.R=a.M();this.oa=this.R.o;this.I=this.o["ytp-tooltip-bg"];this.ya=this.o["ytp-tooltip-image"];this.za=this.o["ytp-tooltip-text"];this.title=this.o["ytp-tooltip-title"];
this.Z=(0,g.x)(this.CL,this);this.F=(0,g.x)(this.FL,this);this.ba=(0,g.x)(this.yf,this);this.u=null;this.L=new g.LN(this,100);g.C(this,this.L);this.w=null;this.aa=!1;this.A=null;this.C=NaN;this.G="";this.ga=c.width;this.V=!0;this.B=1;this.da=new g.H(this.hG,250,this);g.C(this,this.da);this.ma=new g.H(this.yf,5E3,this);g.C(this,this.ma);Ky&&(c=this.o["ytp-tooltip-text"],c.setAttribute("role","text"),c.setAttribute("aria-live","polite"))};
$N=function(a){a.element.setAttribute("aria-live","polite")};
NR=function(a,b,c,d,e,f,k){a.oa||(3==a.w&&a.yf(),1!=a.w&&(In(a.element,"ytp-tooltip ytp-bottom"),a.w=1,a.V&&a.L.show(),a.A&&a.A.dispose(),a.A=a.U.ue(),a.A&&a.A.subscribe("l",a.tA,a)),a.update({text:d,title:k?k:""}),g.P(a.U.M().experiments,"web_wn_macro_markers")&&g.K(a.za,"ytp-tooltip-text-no-title",1===a.w&&!k),g.K(a.element,"ytp-text-detail",!!e),d=-1,a.A&&(d=VA(a.A,160*a.B),g.P(a.R.experiments,"web_l3_storyboard")&&4==a.A.levels.length&&(d=a.A.levels.length-1),d=$A(a.A,d,c)),LR(a,d),MR(a,!!e,b,
f))};
g.OR=function(a){1==a.w&&a.yf()};
g.aO=function(a,b){if(a.oa)return g.Ka;b.addEventListener("mouseover",a.F);g.P(a.R.experiments,"show_tooltip_on_tab_killswitch")||b.addEventListener("focus",a.F);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return(0,g.x)(function(){this.u==b&&this.yf();b.removeEventListener("mouseover",this.F);g.P(this.R.experiments,"show_tooltip_on_tab_killswitch")||b.removeEventListener("focus",this.F)},a)};
QR=function(a,b,c){if(a.w)if(3==a.w)a.yf();else return;PR(a,b,3,c)};
PR=function(a,b,c,d){if(b&&!b.hasAttribute)a=new Zq("showElementTooltip_ called with non-element.",b.toString()),g.$q(a);else{isNaN(a.C)||(a.C=NaN,a.I.style.background="");a.u=b;a.aa=!!d;d?a.G=d:(a.G=b.getAttribute("title"),b.removeAttribute("title"));In(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.ya.style.backgroundImage="url("+d+")";g.K(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.K(a.element,"ytp-tooltip-opaque",!!b);a.w=c;a.U.addEventListener("appresize",
a.ba);a.V&&(RR(a),a.L.show(0))}};
RR=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.aa){a.la("text",b);var c=a.u.getAttribute("data-duration");a.update({title:a.G,duration:c});var d=a.u.getAttribute("data-preview"),e=160*a.B,f=90*a.B,k=160*a.B,l=90*a.B;a.I.style.width=e+"px";a.I.style.height=f+"px";a.I.style.backgroundImage=d?"url("+d+")":"";a.I.style.backgroundPosition=(e-k)/2+"px "+(f-l)/2+"px";a.I.style.backgroundSize=k+"px "+l+"px";g.Kn(a.element,["ytp-text-detail","ytp-preview"]);g.K(a.element,"ytp-has-duration",
!!c)}else a.la("text",a.G),g.Mn(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);MR(a,!!b)};
MR=function(a,b,c,d){a.element.style.maxWidth=b?"":Math.min(a.ga,300*a.B)+"px";a.ua.kk(a.element,a.u,c,1==a.w,d);a.element.style.top?g.J(a.element,"ytp-bottom"):a.element.style.bottom&&g.J(a.element,"ytp-top");3==a.w&&a.ma.start()};
rO=function(a){a.u&&!a.aa&&a.u.hasAttribute("title")&&(a.G=a.u.getAttribute("title"),a.u.removeAttribute("title"),a.V&&RR(a))};
LR=function(a,b){g.K(a.element,"ytp-preview",0<=b);if(!(0>b||b==a.C)){a.C=b;var c=160*a.B,d=160*a.B,e=a.A.mi(a.C,c);xP(a.I,e,c,d,!0);a.da.start()}};
SR=function(a){g.R.call(this,{D:"button",Y:["ytp-button","ytp-back-button"],J:[{D:"div",H:"ytp-arrow-back-icon",J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-arrow-back"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},J:[{D:"path",O:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",La:!0,O:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.N=a;g.Tu(this,a.M().showBackButton);this.ka("click",this.onClick)};
TR=function(a,b){g.R.call(this,{D:"button",Y:["ytp-button","ytp-copylink-button"],O:{title:"{{title-attr}}","data-tooltip-opaque":String(g.Oy(a.M()))},J:[{D:"div",H:"ytp-copylink-icon",W:"{{icon}}"},{D:"div",H:"ytp-copylink-title",W:"\u590d\u5236\u94fe\u63a5",O:{"aria-hidden":"true"}}]});var c=this;this.api=a;this.u=b;this.visible=!1;this.tooltip=this.u.bb();var d=a.M();$N(this.tooltip);g.K(this.element,"ytp-show-copylink-title",g.Oy(d)&&!g.Xy(d));g.lL(a,this.element,this,86570);this.ka("click",this.onClick);
this.K(a,"videodatachange",this.xa);this.K(a,"videoplayerreset",this.xa);this.K(a,"appresize",this.xa);this.xa();g.Je(this,function(){return g.aO(c.tooltip,c.element)})};
ula=function(a){a.la("icon",$M());QR(a.tooltip,a.element,"\u94fe\u63a5\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f");var b=a.ka("mouseleave",function(){a.Za(b);a.xa();a.tooltip.qf()})};
UR=function(a,b,c){g.R.call(this,{D:"button",Y:["ytp-button","ytp-overflow-button"],O:{title:"\u66f4\u591a","aria-haspopup":"true","aria-owns":c.element.id},J:[{D:"div",H:"ytp-overflow-icon",J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-more-vert"]}:{D:"svg",O:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},J:[{D:"path",O:{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.N=a;this.u=b;this.visible=!1;this.tooltip=this.u.bb();g.lL(a,this.element,this,16499);this.K(a,"appresize",this.xa);this.K(a,"fullscreentoggled",this.xa);this.K(a,"presentingplayerstatechange",this.xa);this.xa();g.Je(this,function(){return g.aO(d.tooltip,d.element)});
this.ka("click",function(){g.oL(a,d.element);c.gf(d.element,!1)})};
VR=function(a,b){g.WN.call(this,a,{D:"div",H:"ytp-overflow-panel",O:{id:Ou(),role:"dialog"},J:[{D:"div",H:"ytp-overflow-panel-content",J:[{D:"div",H:"ytp-overflow-panel-action-buttons",W:"{{buttons}}"}]},{D:"button",Y:["ytp-overflow-panel-close","ytp-button"],O:{title:"\u5173\u95ed"},J:[g.fN()]}]},250);var c=this;this.N=a;this.actionButtons=[];this.tooltip=b.bb();this.w=this.o["ytp-overflow-panel-content"];this.closeButton=this.o["ytp-overflow-panel-close"];this.K(this.closeButton,"click",this.eb);
g.Je(this,function(){return g.aO(c.tooltip,c.closeButton)});
this.ka("click",this.WL);this.K(a,"videoplayerreset",this.hide);this.K(a,"fullscreentoggled",this.FH);this.hide()};
WR=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.la("buttons",a.actionButtons))};
YR=function(a,b){for(var c=g.q(a.actionButtons),d=c.next();!d.done;d=c.next())d.value.Va(b)};
ZR=function(a,b){g.R.call(this,{D:"button",Y:["ytp-replay-button","ytp-button"],O:{title:"\u91cd\u653e"},J:[g.tN()]});this.N=a;this.K(a,"presentingplayerstatechange",this.u);this.ka("click",this.onClick,this);var c=g.QK(a);g.Tu(this,g.V(c,2));g.aO(b.bb(),this.element)};
aS=function(a){g.R.call(this,{D:"div",H:$R.TITLE,J:[{D:"div",H:$R.TEXT,J:[{D:"a",Y:[$R.LINK,$R.SESSIONLINK],O:{target:a.M().C,href:"{{url}}","data-sessionlink":"feature=player-title"},W:"{{title}}"},{D:"div",H:$R.SUBTEXT,J:[{D:"a",H:$R.CHANNEL_NAME,O:{href:"{{channelLink}}",target:"_blank"},W:"{{channelName}}"}]}]}]});this.api=a;this.u=null;this.link=this.o[$R.LINK];g.lL(a,this.element,this,23851);this.K(a,"videodatachange",this.xa);this.K(a,"videoplayerreset",this.xa);this.xa()};
bS=function(a){a.la("channelLink","");a.la("channelName","")};
cS=function(){};
eS=function(a,b){var c={commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",url:"/service_ajax",sendPost:!0}},playlistEditEndpoint:{playlistId:"WL",actions:b}},d={list_id:"WL"};dS||(HK({ir:{playlistEditEndpoint:FN,subscribeEndpoint:DN,unsubscribeEndpoint:EN,modifyChannelNotificationPreferenceEndpoint:cS}},IN(),BN(),Sea),dS=GK.o);c=JK(dS,c);Mf(c.then(function(e){if(e&&"STATUS_SUCCEEDED"===e.status){if(a.onSuccess)a.onSuccess({},d)}else if(a.onError)a.onError({},d)}),function(){a.Fc&&
a.Fc({},d)})};
vla=function(a,b,c){g.Eo("web_classic_playlist_one_platform_update")?eS(a,[{addedVideoId:a.videoIds,action:"ACTION_ADD_VIDEO"}]):fS("add_to_watch_later_list",a,b,c)};
wla=function(a,b,c){g.Eo("web_classic_playlist_one_platform_update")?eS(a,[{removedVideoId:a.videoIds,action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID"}]):fS("delete_from_watch_later_list",a,b,c)};
fS=function(a,b,c,d){g.Lq(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",Zd:{feature:b.feature||null,authuser:b.Nc||null,pageid:b.pageId||null},rb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.HT||null,add_to_playlists:b.lT||null,plid:g.L("PLAYBACK_ID")||null},context:b.context,onError:b.onError,onSuccess:function(e,f){b.onSuccess.call(this,e,f)},
Fc:b.Fc,withCredentials:!!d})};
g.hS=function(a,b){g.R.call(this,{D:"button",Y:["ytp-watch-later-button","ytp-button"],O:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.Oy(a.M()))},J:[{D:"div",H:"ytp-watch-later-icon",W:"{{icon}}"},{D:"div",H:"ytp-watch-later-title",W:"\u7a0d\u540e\u89c2\u770b"}]});var c=this;this.N=a;this.A=b;this.icon=null;this.visible=this.w=this.u=!1;this.tooltip=b.bb();$N(this.tooltip);g.lL(a,this.element,this,28665);this.ka("click",this.onClick,this);this.K(a,"videoplayerreset",
this.DM);this.K(a,"appresize",this.Wo);this.K(a,"videodatachange",this.Wo);this.K(a,"presentingplayerstatechange",this.Wo);this.Wo();var d=this.N.M(),e=g.Ls("yt-player-watch-later-pending");d.u&&e?(my(),gS(this,e.videoId)):this.xa(2);g.K(this.element,"ytp-show-watch-later-title",g.Oy(d));g.Je(this,function(){return g.aO(b.bb(),c.element)})};
iS=function(a,b){g.cR(function(){my({videoId:b});window.location.reload()},"wl_button",g.hz(a.N.M()))};
gS=function(a,b){if(!a.w)if(a.w=!0,a.xa(4),g.P(a.N.M().experiments,"web_player_innertube_playlist_update")){var c=a.N.getVideoData();c=a.u?c.removeFromWatchLaterCommand:c.addToWatchLaterCommand;var d=$Q(a.N.app),e=a.u?a.fB.bind(a):a.eB.bind(a);JK(d,c).then(e,a.CN.bind(a))}else c=a.N.M(),(a.u?wla:vla)({videoIds:b,Nc:c.Nc,pageId:c.pageId,onError:a.BN,onSuccess:a.u?a.fB:a.eB,context:a},c.G,!0)};
jS=function(a,b){a.xa(5,b);a.N.M().w&&a.N.na("WATCH_LATER_ERROR",b)};
kS=function(a,b){var c=a.N.M(),d=a.A.Rd()&&g.Oy(c);!c.F||2!==b&&3!==b||(b=d?3:2);if(b!==a.icon){switch(b){case 4:var e=jO();break;case 1:e=$M();break;case 2:e=g.X?{D:"div",Y:["ytp-icon","ytp-icon-watch-later"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{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 3:e={D:"div",Y:["ytp-icon","ytp-icon-watch-later-large"]};break;case 5:e=g.P(c.experiments,"watch_later_iconchange_killswitch")?g.X?{D:"div",Y:["ytp-icon","ytp-icon-alert"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{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.X?{D:"div",Y:["ytp-icon","ytp-icon-warning"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,O:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.la("icon",e);a.icon=b}};
lS=function(a){g.HQ.call(this,a);var b=this,c=g.RK(a),d=a.M(),e=a.getVideoData();this.ga=g.Oy(d);this.Qb=48;this.yb=69;this.ga&&(g.J(a.getRootNode(),"ytp-embed"),g.J(a.getRootNode(),"ytp-embed-playlist"),this.Qb=60,this.yb=89);this.vf=e&&e.vf;this.oa=null;this.U=[];this.V=new g.RQ(a);g.C(this,this.V);g.jL(a,this.V.element,4);this.Xb=new lR(a);g.C(this,this.Xb);g.jL(a,this.Xb.element,4);e=new g.R({D:"div",H:"ytp-gradient-top"});g.C(this,e);g.jL(a,e.element,1);this.Ic=new g.LN(e,250,!0,100);g.C(this,
this.Ic);this.A=new g.R({D:"div",H:"ytp-chrome-top"});g.C(this,this.A);g.jL(a,this.A.element,1);this.Hc=new g.LN(this.A,250,!0,100);g.C(this,this.Hc);this.Aa=[];this.L=new g.KR(a,this);g.C(this,this.L);g.jL(a,this.L.element,4);e=new BR(a);g.C(this,e);g.jL(a,e.element,5);e.subscribe("show",(0,g.x)(this.ji,this,e));this.Aa.push(e);this.ya=new CR(a,this,e);g.C(this,this.ya);d.showBackButton&&(this.od=new SR(a),g.C(this,this.od),this.od.ca(this.A.element));this.ga||this.ya.ca(this.A.element);this.qb=
new gR(a,this);this.qb.ca(this.A.element);g.C(this,this.qb);this.sc=new aS(a,this);g.C(this,this.sc);this.sc.ca(this.A.element);e=new g.Pu({D:"div",H:"ytp-chrome-top-buttons"});g.C(this,e);e.ca(this.A.element);this.ha=e;this.I=new g.hS(a,this);g.C(this,this.I);this.I.ca(e.element);var f=new g.ER(a,this);g.C(this,f);g.jL(a,f.element,5);f.subscribe("show",(0,g.x)(this.ji,this,f));this.Aa.push(f);this.G=new g.HR(a,this,f);g.C(this,this.G);this.G.ca(e.element);this.F=new TR(a,this);g.C(this,this.F);this.F.ca(e.element);
d.an&&(f=new JR(a),g.C(this,f),g.jL(a,f.element,4));this.ga&&this.ya.ca(e.element);this.ma=new XQ(a,this,this.A.element);g.C(this,this.ma);this.ma.ca(e.element);f=new YQ(a,this,this.ma);g.C(this,f);f.ca(e.element);this.w=new VR(a,this);g.C(this,this.w);g.jL(a,this.w.element,5);this.w.subscribe("show",function(){b.ji(b.w,YN(b.w))});
this.Aa.push(this.w);this.Ma=new UR(a,this,this.w);g.C(this,this.Ma);this.Ma.ca(e.element);(this.o="1"==d.controlsType?new vQ(a,this,this.u):null)&&g.C(this,this.o);"3"==d.controlsType&&(e=new ZR(a,this),g.C(this,e),g.jL(a,e.element,8));this.P=new g.vR(a,this,this.V);g.C(this,this.P);this.P.subscribe("show",this.yC,this);this.jb=!1;e=new PQ(a,new QQ(a));g.C(this,e);g.jL(a,e.element,4);this.Ia=new g.R({D:"div",O:{tabindex:"0"}});this.Ia.ka("focus",this.GE,this);g.C(this,this.Ia);this.Ha=new g.R({D:"div",
O:{tabindex:"0"}});this.Ha.ka("focus",this.HE,this);g.C(this,this.Ha);(this.ba=d.Ua?null:new g.xR(a,c,this.P,this.u,this.V,(0,g.x)(this.hg,this)))&&g.C(this,this.ba);this.R.push(this.V.element);this.za=null;this.K(a,"fullscreentoggled",this.SI);this.K(a,"offlineslatestatechange",this.QL,this);this.K(a,"cardstatechange",this.ne,this)};
mS=function(a){var b=a.api.M(),c=g.V(g.QK(a.api),128);return b.u&&c&&!a.api.isFullscreen()};
nS=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=Ch(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=nS(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.oS=function(a){g.wL.call(this,a);this.chrome=null;this.load()};
yla=function(a){a&&"web"!==a&&xla.includes(a)};
pS=function(a,b,c){this.api=a;this.player=b;this.o=[];this.player.subscribe("localmediacomplete",this.u,this);this.w=c};
rS=function(a,b){var c=zla(a,{videoId:b,download_media:!0,download_media_in_bg:!0,start:Infinity});c.subscribe("dataloaded",function(){return void qS(c)});
vJ(a.player,c,a.w);AJ(a.player,!1)};
zla=function(a,b){return new g.dB(a.player.M(),b)};
qS=function(a){if((a=a.getPlayerResponse())&&a.videoDetails&&a.videoDetails.videoId){var b=a.videoDetails;a={videoId:a.videoDetails.videoId,title:b.title,lengthSeconds:b.lengthSeconds,thumbnail:b.thumbnail,viewCount:b.viewCount,author:b.author};vfa(a.videoId,a)}};
sS=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+jt(a)+")":jt(a)};
Bla=function(a,b){if(g.ll())return null;var c=Ala();if(!c)return g.UK(a,"html5.webaudio",{name:"null context"}),null;if("string"===typeof c)return g.UK(a,"html5.webaudio",{name:c}),null;if(!c.createMediaElementSource)return g.UK(a,"html5.webaudio",{name:"missing createMediaElementSource"}),null;if("suspended"===c.state){var d=function(e){"suspended"===c.state&&g.SC(e.state)&&c.resume().then(function(){a.removeEventListener("presentingplayerstatechange",d);tS=!1},null)};
tS||(a.addEventListener("presentingplayerstatechange",d),tS=!0)}return new WC(c,b)};
uS=function(a,b,c,d,e){g.R.call(this,{D:"div",H:"ytp-horizonchart"});this.F=b;this.sampleCount=c;this.B=d;this.C=e;this.index=0;this.heightPx=-1;this.A=this.w=null;this.u=Math.round(a/c);this.element.style.width=this.u*this.sampleCount+"px";this.element.style.height=this.F+"em"};
vS=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.re("CANVAS"),a.w=c.getContext("2d")}catch(e){}if(a.w){var d=a.u*a.sampleCount;a.A=c;a.A.width=d;a.A.style.width=d+"px";a.element.appendChild(a.A)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.u*=4,c=0;c<a.sampleCount;c++)d=g.re("SPAN"),d.style.width=a.u+"px",d.style.left=a.u*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.w&&(c=1<(window.devicePixelRatio||1)?2:1,a.A.height=a.heightPx*c,a.A.style.height=
a.heightPx+"px",a.w.scale(1,c)));c=g.q(b);for(d=c.next();!d.done;d=c.next())a.setValue(a.index,d.value),a.index=(a.index+1)%a.sampleCount;c=a.index;a.w?a.w.clearRect(c*a.u,0,a.u,a.heightPx):(c=a.element.children[c],c.style.height="0px",c.style.borderTop="")};
wS=function(a){var b=null;b={D:"button",Y:["html5-video-info-panel-close","ytp-button"],O:{title:"close"},W:"[x]"};g.R.call(this,{D:"div",H:"html5-video-info-panel",J:[b,{D:"div",H:"html5-video-info-panel-content",J:[{D:"div",J:[{D:"div",W:"Video ID / sCPN"},{D:"span",W:"{{video_id_and_cpn}}"}]},{D:"div",J:[{D:"div",W:"Viewport / Frames"},{D:"span",W:"{{dims_and_frames}}"}]},{D:"div",J:[{D:"div",W:"Current / Optimal Res"},{D:"span",W:"{{resolution}}"}]},{D:"div",J:[{D:"div",W:"Volume / Normalized"},
{D:"span",W:"{{volume}}"}]},{D:"div",J:[{D:"div",W:"Codecs"},{D:"span",W:"{{codecs}}"}]},{D:"div",O:{style:"{{shader_info_style}}"},J:[{D:"div",W:"Shader Info"},{D:"span",W:"{{shader_info}}"}]},{D:"div",O:{style:"{{color_style}}"},J:[{D:"div",W:"Color"},{D:"span",W:"{{color}}"}]},{D:"div",O:{style:"{{drm_style}}"},J:[{D:"div",W:"Protected"},{D:"span",W:"{{drm}}"}]},{D:"div",O:{style:"{{bandwidth_style}}"},J:[{D:"div",W:"Connection Speed"},{D:"span",J:[{D:"span",W:"{{bandwidth_chart}}"},{D:"span",
W:"{{bandwidth_kbps}}"}]}]},{D:"div",O:{style:"{{network_activity_style}}"},J:[{D:"div",W:"Network Activity"},{D:"span",J:[{D:"span",W:"{{network_activity_chart}}"},{D:"span",W:"{{network_activity_bytes}}"}]}]},{D:"div",J:[{D:"div",W:"Buffer Health"},{D:"span",J:[{D:"span",W:"{{buffer_health_chart}}"},{D:"span",W:"{{buffer_health_seconds}}"}]}]},{D:"div",O:{style:"{{live_latency_style}}"},J:[{D:"div",W:"Live Latency"},{D:"span",J:[{D:"span",W:"{{live_latency_chart}}"},{D:"span",W:"{{live_latency_secs}}"}]}]},
{D:"div",O:{style:"{{live_mode_style}}"},J:[{D:"div",W:"Live Mode"},{D:"span",W:"{{live_mode}}"}]},{D:"div",O:{style:"{{playback_categories_style}}"},J:[{D:"div",W:"Playback Categories"},{D:"span",W:"{{playback_categories}}"}]},{D:"div",J:[{D:"div",W:"Mystery Text"},{D:"span",W:"{{debug_info}}"}]},{D:"div",O:{style:"{{release_style}}"},J:[{D:"div",W:"Player Release"},{D:"span",W:"{{release_name}}"}]}]}]});b&&this.K(this.o["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.u=new uS(300,1,150,b,c);g.C(this,this.u);this.la("bandwidth_chart",this.u);this.A=new uS(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.C(this,this.A);this.la("live_latency_chart",this.A);this.w=new uS(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.C(this,this.w);this.la("buffer_health_chart",this.w);this.B=new uS(300,1,150,d,c);g.C(this,this.B);this.la("network_activity_chart",this.B);this.delay=new g.H(this.xa,
500,this);g.C(this,this.delay);this.C=a};
DS=function(a,b,c){g.A.call(this);var d=this;this.ya=ffa(b||{});this.Qb=c;b=this.ya.args||{};this.o=new fz(b,c);g.C(this,this.o);g.P(this.o.experiments,"html5_vp9_new_mime")&&void 0!=navigator.mediaCapabilities&&(Wx=!0);Xx=xS(this,"html5_vp9_mime_full_range_flag");g.P(this.o.experiments,"html5_disable_subtract_cuepoint_offset")&&(iE=!0);g.P(this.o.experiments,"html5_log_opus_oboe_killswitch")&&(Vv=!1);g.P(this.o.experiments,"html5_skip_empty_load")&&(yS=!0);zS=g.P(this.o.experiments,"html5_ios_force_seek_to_zero_on_stop");
AS=g.P(this.o.experiments,"html5_ios7_force_play_on_stall");BS=g.P(this.o.experiments,"html5_ios4_seek_above_zero");g.P(this.o.experiments,"html5_mediastream_applies_timestamp_offset")&&(eE=!0);this.oe=S(Qy(this.o)&&!0,b.enablesizebutton);this.Ic=S(!1,b.player_wide);this.G=new hI;g.C(this,this.G);this.ba=!1;this.setIsExternalPlaylist(b.external_list);this.V=new g.Nr(this);g.C(this,this.V);this.aa=null;this.ha=new g.ao;g.C(this,this.ha);this.ga=new g.ao;g.C(this,this.ga);this.oa=new WM;this.sc=null;
this.u=new KK(this);g.C(this,this.u);this.I=new NM(this);g.C(this,this.I);this.Z=1;this.Wb={};this.R=this.o.Mc?Iga():{volume:100,muted:this.o.mute};this.qd=this.o.w?new hC(this,1):new YB(this,1);g.C(this,this.qd);this.B=null;this.Kc={};c={};this.Xb=(c.internalvideodatachange=this.bK,c.playbackready=this.dK,c.playbackstarted=this.eK,c.statechange=this.BG,c.signatureexpired=this.YM,c);this.A=Cla(this);this.Jc=new g.Nr(this);g.C(this,this.Jc);this.P=new jC(this.o,this.A);this.w=Dla(this);c={};this.rd=
(c.airplayactivechange=this.TJ,c.airplayavailabilitychange=this.UJ,c.beginseeking=this.lK,c.endseeking=this.QK,c.internalAbandon=this.aL,c.internalaudioformatchange=this.gK,c.internalvideodatachange=this.Us,c.internalvideoformatchange=this.xN,c.liveviewshift=this.hL,c.playbackstalledatstart=this.eN,c.progresssync=this.oM,c.onLoadProgress=this.iL,c.SEEK_COMPLETE=this.SM,c.SEEK_TO=this.TM,c.onVideoProgress=this.FG,c.onLoadedMetadata=this.kL,c.onDompaused=this.JK,c.playbackready=this.dM,c.statechange=
this.dB,c.connectionissue=this.BK,c.newelementrequired=this.DA,c.heartbeatparams=this.CG,c.videoelementevent=this.EG,c.drmoutputrestricted=this.PK,c.requestmediasource=this.BM,c);this.ua=new g.Nr(this);g.C(this,this.ua);this.C=null;c=10;g.cz(this.o)&&(c=3);nz(this.o)&&(c=g.Q(this.o.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Ua=new EM(c,function(e){if(e!=g.W(d,e.getPlayerType())){var f="prefetch_"+e.getVideoData().videoId;PA(f);e.dispose()}});
g.C(this,this.Ua);this.ac=this.qc=-1;this.yb=new g.H(this.I.Ce,16,this.I);g.C(this,this.yb);this.qb=!1;this.Ca=!0;this.Ma=this.jb=this.F=null;this.Uc=!1;this.Hc=this.od=null;this.Aa=0;this.Pa=this.Sa=!1;this.da=null;this.Vc=!1;this.pd=!0;this.Ha=void 0;Ela(this);this.za=new lM(this.u,this.o,this.w);this.U=g.P(this.o.experiments,"web_player_halftime_dai")?new eM(this.u,this.o,this.w):null;this.Md=null;this.Ia=new $L(this.u);g.C(this,this.Ia);yla(this.o.deviceParams.c);this.V.K(this.u,g.pC("appapi"),
this.ZJ);this.V.K(this.u,"crx_appapi",this.aK);this.V.K(this.u,g.pC("appad"),this.bA);this.V.K(this.u,"crx_appad",this.bA);this.V.K(this.u,"crx_applooprange",this.qu);this.V.K(this.u,"presentingplayerstatechange",this.DG);this.V.K(this.u,"resize",this.FM);this.I.ca(ce(a));this.V.K(this.u,"offlineslatestatechange",this.PL);this.Mc=Fla(this,this.I.element);g.C(this,this.Mc);this.L=null;g.X=this.o.F;this.o.ya&&(g.LL.ux=g.oS);Gla(this);this.P.tick("fs");Hla(this);this.o.ya&&Oka(this.A);g.Xy(this.A.o.M())&&
this.A.sd("music");g.Oy(this.A.o.M())&&this.A.sd("embed");xS(this,"web_player_sentinel_is_uniplayer")||g.No(Error("Player flag missing: web_player_sentinel_is_uniplayer"));this.pe=Ila(this);this.ma=null;xS(this,"mweb_hoffline")&&(this.ma=new pS(this.u,CS(this,1),function(){return d.Xc()}))};
Ila=function(a){function b(c){if(-1!==c.stack.indexOf("player"))(a.C||a.w).B.onError("player.exception",Ws({n:c.name,m:c.message}))}
Lo.push(b);return function(){var c=Lo.indexOf(b);-1!==c&&Lo.splice(c,1)}};
FS=function(a,b,c){var d=this;try{var e="string"===typeof a?a:"player"+g.Sa(a),f=ES[e];if(f){try{f.dispose()}catch(l){g.M(l)}ES[e]=null}var k=new DS(a,b,c);g.Je(k,function(){ES[e]=null;d.pe&&d.pe()});
return ES[e]=k}catch(l){throw g.M(l),l.stack;}};
Dla=function(a){var b=new lJ(a.o,1,a.P,a.I,(0,g.x)(a.ha.S,a.ha),(0,g.x)(a.u.getVisibilityState,a.u),a.G);b.setPlaybackRate(a.o.u?1:GS(a,parseFloat(g.Ls("yt-player-playback-rate"))||1));Qr(b,a.Xb,a);return b};
$Q=function(a){a.sc||(HK({ir:{subscribeEndpoint:DN,unsubscribeEndpoint:EN,playlistEditEndpoint:FN,webPlayerShareEntityServiceEndpoint:GN}},IN(),BN(),g.M),a.sc=GK.o);return a.sc};
Cla=function(a){var b="",c=MM(a);0==c.indexOf("//")&&(c=a.o.protocol+":"+c);"/base.js"==c.substr(-8)&&(b=c.substr(0,c.length-8)+"/");if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.No(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new zL(a.u,b);c={};a=(c.destroyed=(0,g.x)(a.YJ,a),c);b.C=a;return b};
IS=function(a,b){var c=a.isVideoInfoVisible();a.aa||(a.aa=new wS(a.u),g.C(a,a.aa),g.jL(a.u,a.aa.element,4));g.Tu(a.aa,b);HS(a)&&c!=b&&g.SK(a.A).wG();c=a.C;b&&c&&c.Qa("sfn","1",!0)};
KS=function(a){var b=JS.getTag(!0,!a.o.deviceHasDisplay);a.B=new g.NL(b);g.C(a,a.B);a.C&&QJ(a.C,a.B);try{a.o.ua?(a.Ma&&a.V.Za(a.Ma),a.Ma=a.V.K(a.B,"volumechange",a.zL)):xS(a,"web_player_mute_then_volume_killswitch")?(a.B.setVolume(a.R.volume/100),a.B.Nh(a.R.muted)):(a.B.Nh(a.R.muted),a.B.setVolume(a.R.volume/100))}catch(d){var c="setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_"));g.kJ(a.w,"html5.missingapi","UNSUPPORTED_DEVICE",c,void 0);return}g.Pr(a.ua);Jla(a);c=a.I;c.u=b;c.C=!1;c.u.parentNode||
g.ve(c.A,c.u,0);c.G=new g.uh(0,0,0,0);VM(c);UM(c);g.J(c.u,"video-stream");g.J(c.u,g.LM.MAIN_VIDEO);b=c.app.M();b.qc&&c.u.setAttribute("data-no-fullscreen",!0);b.Vf&&(c.u.setAttribute("webkit-playsinline",""),c.u.setAttribute("playsinline",""));b.Jn&&c.u&&c.K(c.u,"click",c.u.play,c.u);try{a.B.Vj()}catch(d){c="activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")),g.kJ(a.w,"html5.missingapi","UNSUPPORTED_DEVICE",c,void 0)}};
LS=function(a){if(a.B){a.Ma&&(a.V.Za(a.Ma),a.Ma=null);g.Pr(a.ua);a.C&&PJ(a.C,!0);OM(a.I);a.B.Bh()&&JS.releaseTag(a.B.ib());if(!xS(a,"html5_unset_src_on_remove_killswitch"))try{a.B.Bp()}catch(b){}a.B=null}};
g.cM=function(a,b){var c=g.W(a,b);c||(c=CS(a,b),MS(a,c));rL(a,c)};
rL=function(a,b){if(a.C!=b){var c=null;a.C&&(c=a.C.getPlayerState(),GL(a.A,3),NS(a,"cuerangesremoved",uF(a.C.R)||[]),a.Ia&&!b.isGapless()&&a.C.isGapless()&&a.B&&a.B.stopVideo(),sL(a));MS(a,b);a.C=b;a.B&&QJ(b,a.B);Qr(b,a.rd,a);a.Us("newdata",b,b.getVideoData());c&&!g.RC(c,b.getPlayerState())&&a.dB(new g.cH(b.getPlayerState(),c));b.Z.isFinished()&&a.Us("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().Ba)&&c.video)&&a.u.na("onPlaybackQualityChange",c.quality);NS(a,"cuerangesadded",uF(a.C.R)||
[]);c=b.getPlayerState();g.V(c,2)?OS(a):g.V(c,8)&&b.playVideo()}};
OS=function(a){if(a.F&&g.Uy(a.o)&&g.PS(a)){var b=g.P(a.o.experiments,"html5_player_autonav_logging");a.nextVideo(!1,b);b=!0}else b=!1;b||((b=a.w.o)&&b.il(),QS(a,VC(PK(a))))};
Jla=function(a){var b=a.B;It()?a.ua.K(b,"webkitpresentationmodechanged",a.PM):Jt()&&(a.ua.K(b,"enterpictureinpicture",function(){iI(a.G,!0)}),a.ua.K(b,"leavepictureinpicture",function(){iI(a.G,!1)}));
Vy&&(a.ua.K(b,"webkitbeginfullscreen",function(){RS(a,3)}),a.ua.K(b,"webkitendfullscreen",function(){RS(a,0)}))};
MS=function(a,b){if(b!=a.w){var c=b.getPlayerType();a.Kc[c]=b}};
sL=function(a){var b;if(b=a.da)b=a.B,b=!!b&&b===a.da.w;b&&(LS(a),KS(a));a.C&&(PJ(a.C),Rr(a.C,a.rd,a));a.C=null};
g.W=function(a,b){return b?1==b?a.w:a.Kc[b]||null:a.C};
CS=function(a,b){var c=a.P;2==b&&(c=new jC(a.o));return new lJ(a.o,b,c,a.I,(0,g.x)(a.ha.S,a.ha),(0,g.x)(a.u.getVisibilityState,a.u),a.G)};
SS=function(a,b){return a.Mb(b)?a.w:b};
TS=function(a,b){var c=a.C;return c&&b==a.w&&a.Mb(b)&&a.Mb(c)?c:b};
VS=function(a){var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.A,e;for(e in US){var f=US[e];switch(f){case "embed":case "kids":case "remote":case "miniplayer":case "music":case "unplugged":d.sd(f);break;case "attribution":case "fresca":case "ypc":case "ypc_clickwrap":case "yto":case "visualizer":case "webgl":d.sd(f,void 0,!1,!0);break;case "captions":d.sd(f,void 0,!0)}}d.zw();d.B&&c?g.gL(d.o,"endscreen"):d.sd("endscreen");d.B&&c?(g.gL(d.o,"annotations_module"),g.gL(d.o,"creatorendscreen")):(d.kr(),
d.sd("creatorendscreen",void 0,!0));d.Bw();FL(d);c&&QB(b)?a.Jc.K(a.u,"presentingplayerstatechange",a.gM):EL(a.A);a.u.S("videoready",b)};
WS=function(a){return a.w.getVideoData()};
g.XS=function(a,b){var c=g.W(a,1);c&&iJ(c,b)};
YS=function(a){a=WS(a);a.isValid();return QB(a)};
Gla=function(a){var b=new g.dB(a.o,a.ya.args);g.Ms()&&b.Rc.push("remote");b.isValid()&&(vJ(a.w,b,(0,g.x)(a.Xc,a)),!g.P(a.o.experiments,"html5_delay_initial_loading")&&YS(a)&&(a.o.Uc||a.o.Vc)&&AJ(a.w))};
Hla=function(a){Kla(a);var b=a.ya.args;KS(a);var c=WS(a);a.u.na("onVolumeChange",a.R);if(b&&sC(b)){var d=kz(a.o);d&&!a.ba&&(b.fetch=0);ZS(a,b);d&&!a.ba?$S(a):c.isValid()||xC(a.F,(0,g.x)(a.kp,a))}rL(a,a.w);g.V(a.w.getPlayerState(),128)||(b=Efa(a.o.deviceHasDisplay),"fmt.noneavailable"==b?g.kJ(a.w,"html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1",void 0):"html5.missingapi"==b?g.kJ(a.w,b,"UNSUPPORTED_DEVICE","nocanplaymedia.1",void 0):c&&c.isValid()&&YS(a)&&(a.o.Uc||a.o.Vc)?aT(a):
g.Ls("yt-player-playback-on-reload")?(g.Yq("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.o.Nc}),oy(!1),aT(a)):g.uz(a.o)||bT(a),xS(a,"web_player_inline_botguard")&&(g.mz(a.o)?(Zp(function(){cT(a)}),Zp(function(){ir()})):(cT(a),ir())))};
cT=function(a){var b=g.L("BG_I",null),c=g.L("BG_IU",null),d=g.L("BG_P",null),e=a.getVideoData().Ie||"";a=a.o.qd;e=e?"c1b"in g.rq(e):!1;d&&(gr.pc?0:!Ss||72E5<(0,g.N)()-Ss)&&(b||c)&&gr.initialize(b,c,d,lfa,a,e)};
bT=function(a){a.u.S("initializingmode");g.dT(a,2);a.A.sd("remote");g.P(a.o.experiments,"player_cued_miniplayer_module_killswitch")||a.A.sd("miniplayer")};
aT=function(a){if(g.V(a.w.getPlayerState(),128))return!1;YS(a)&&a.o.Vc&&(JS.hasTags(void 0)&&a.Pa?(aC(a,{muted:!1,volume:a.R.volume},!1),eT(a,!1)):JS.hasTags(void 0)||a.R.muted||(aC(a,{muted:!0,volume:a.R.volume},!1),eT(a,!0)));fT(a,1,a.w.getVideoData(),!1);a.u.S("initializingmode");rL(a,a.w);g.dT(a,3);var b;if(!(b=!a.o.Kk)){if(b=a.da)b=a.B,b=!!b&&b===a.da.w;b=b&&a.Uc}b&&(LS(a),KS(a),QJ(a.w,a.B));EJ(a.w);if(g.V(a.w.getPlayerState(),128))return!1;QS(a,3);return a.Uc=!0};
HS=function(a){a=g.SK(a.A);return!!a&&a.loaded};
gT=function(a,b){a.C==a.w&&yK(a.C)!=b&&(a.C.setLoop(b),a.u.S("loopchange",b))};
hT=function(a,b){if(!a.L)return!1;var c=.001*a.L.startTimeMs,d=.001*a.L.endTimeMs;return Sd(b,c)||Sd(b,d)||b>=c&&b<=d};
GS=function(a,b){var c=a.u.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};
iT=function(a,b){var c=g.W(a,b);return c?a.Mb(c)?(c=SS(a,c),pK(c)-c.getCurrentTime()+a.getCurrentTime(b)):pK(c):0};
jT=function(a,b,c){if(a.Mb(c)){c=c.getVideoData();if(a.U){a=a.U;for(var d=g.q(a.o),e=d.next();!e.done;e=d.next())if(e=e.value,c.Db==e.Db){b+=e.Jb/1E3;break}d=b;a=g.q(a.o);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Db==e.Db)break;var f=e.Jb/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Nb/1E3;else break}c=d}else{a=a.za;d=g.q(a.u);for(e=d.next();!e.done;e=d.next())if(e=e.value,c.Db==e.Db){b+=e.Jb/1E3;break}d=b;a=g.q(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Db==e.Db)break;f=e.Jb/1E3;if(f<b)d+=
e.durationMs/1E3+f-e.Nb/1E3;else break}c=d}return c}return b};
Kla=function(a){var b=a.I;b.ea();var c=b.app.M();c.Kk||b.fm("tag-pool-enabled");c.B&&b.fm(g.LM.HOUSE_BRAND);"gvn"==c.playerStyle&&(b.fm("ytp-gvn"),b.element.style.backgroundColor="transparent");c.ma&&(b.I=g.Vo("yt-dom-content-change",b.Ce,b));g.P(c.experiments,"web_player_ios_mweb_resizing")&&b.K(window,"orientationchange",b.Ce,b);b.K(window,"resize",b.Ce,b);b=a.qd;b.A=a.I.element;for(var d in b.w)b.A[d]=b.w[d];(d=Mr(a.I.element))&&a.V.K(a.I,d,a.UK);a.V.K(window,"resize",a.GM)};
PK=function(a,b){return 3==a.getPresentingPlayerType()?g.SK(a.A).F:g.W(a,b).getPlayerState()};
kT=function(a,b){return 3==a.getPresentingPlayerType()?VC(g.SK(a.A).F):2!=b||a.Mb()?a.qc:a.ac};
mT=function(a){lT(a);gT(a,!1);a.setLoopRange(null);a.Wb={};var b=a.P;if(b.o){var c=b.o;c.A={};c.w={}}b.u=!1;a.U?(b=a.U,a=a.w,a.getPlayerType(),hM(b,!1),jM(b),b.u=a):(b=a.za,a=a.w,1!=a.getPlayerType()&&mM(b,"e.invalidParentVideoPlayerType"),wM(b,!1),BM(b),b.w=a)};
$S=function(a){var b=nT();if(b)if(b.list){if(a.F&&a.F.getPlaylistId()==b.list)if(0<=b.index){var c=b.video;a.u.isFullscreen()&&((c=c[a.F.index])&&c.encrypted_id!=a.F.va().videoId||(b.index=a.F.index));wC(a.F,b);a.jb&&oT(a,a.jb)}else a.jb=null}else a.vn()};
ZS=function(a,b){a.F&&(a.F.unsubscribe("error",a.vn,a),g.Ke(a.F),a.F=null);b&&(a.ba&&(b.fetch=0),a.F=new g.rC(a.o,b),a.F.subscribe("error",a.vn,a))};
pT=function(a,b,c,d){b in a.Wb||(c=new g.mC(c,d,{id:b,priority:1,namespace:"appad"}),a.w.addCueRange(c),a.Wb[b]=c)};
qT=function(a,b){if(!(b in a))return!1;var c=a[b];g.Na(c)||(c=[c]);c.forEach(function(d){var e=void 0===e?!1:e;if(!(e=Pw(Rw(d,Lla,null),d,e,"Active View 3rd Party Integration URL"))){var f=void 0===f?!1:f;e=Pw(Rw(d,Mla,null),d,f,"Google/YouTube Brand Lift URL")}if(!(f=e)){var k=void 0===k?!1:k;f=Pw(Rw(d,Nla,null),d,k,"Nielsen OCR URL")}g.jr(d,void 0,f)});
return!0};
g.dT=function(a,b){b!=a.Z&&(2==b&&1==a.getPresentingPlayerType()&&(QS(a,-1),QS(a,5)),a.Z=b,a.u.S("appstatechange",b))};
QS=function(a,b){if(a.C){var c=a.C.getPlayerType();if(2==c&&!a.Mb()){a.ac!=b&&(a.ac=b,a.u.na("onAdStateChange",b));return}if(2==c&&a.Mb()||5==c||6==c||7==c)if(-1==b||0==b||5==b)return}a.qc!=b&&(a.qc=b,a.u.na("onStateChange",b))};
rT=function(a){var b=g.W(a,void 0);if(b){a=SS(a,b);b=cK(a);var c=a.getCurrentTime(),d;(d=!a.T.sa)||(d=a.C,d=!(d.u&&d.u.A));a=d||yI(a.C)||isNaN(b)||isNaN(c)?0:Math.max(0,b-c)}else a=0;return a};
qM=function(a,b,c,d){d=void 0===d?0:d;var e=g.W(a);e&&(SS(a,e).Sg=!0);Vka(a.Ia,b,c,d).then(function(){a.u.na("onQueuedVideoLoaded")},function(){})};
fT=function(a,b,c,d){if(!f){var e=b+"_"+c.videoId+"_"+c.Db;var f=a.Ua.get(e);if(!f)return null;a.Ua.remove(e);if(g.V(f.getPlayerState(),128))return f.dispose(),null}if(f==g.W(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!=c.oauthToken)return null;d||bM(a,f);return f};
bM=function(a,b){var c=b.getPlayerType();b!=g.W(a,c)&&(1==b.getPlayerType()?(b.getVideoData().autonavState=a.w.getVideoData().autonavState,Rr(a.w,a.Xb,a),c=a.w.getPlaybackRate(),a.w.dispose(),a.w=b,a.w.setPlaybackRate(c),Qr(b,a.Xb,a),mT(a)):(c=g.W(a,c))&&c.dispose(),a.C.getPlayerType()==b.getPlayerType()?rL(a,b):MS(a,b))};
zM=function(a,b,c,d){KA("_start",a.P.timerName)||(GA("p",a.P.timerName),a.P.info("srt",0));var e=fT(a,c||a.C.getPlayerType(),b,!1);e&&FA("pfp",void 0,"prefetch_"+b.videoId);if(!e){e=g.W(a,c);if(!e)return!1;a.yb.stop();sT(a,4,c);vJ(e,b,(0,g.x)(a.Xc,a),d)}e==a.w&&(a.o.yb=b.oauthToken);if(!xJ(e))return!1;a.qb&&(e.Sa=!1,a.qb=!1);if(e==a.w)return g.dT(a,1),aT(a);EJ(e);return!0};
tT=function(a,b,c){c=g.W(a,c);b&&c==a.w&&(c.getVideoData().sh=!0)};
uT=function(a,b,c){var d=g.W(a,c);if(d){sT(a,4,c);vJ(d,b,(0,g.x)(a.Xc,a));if(2==c&&a.w&&(c=a.w.B,c.o)){c=c.o;var e=b.clientPlaybackNonce,f=b.rm||"";b=b.breakType||0;g.jH(c,g.ZG(c.o),"ad_playback",[e,f,b])}d==a.w&&(g.dT(a,1),bT(a))}};
g.vT=function(a,b,c,d,e,f){if(!b&&!d)throw Error("Playback source is invalid");if(Qy(a.o)||g.oz(a.o))return c=c||{},c.lact=iq(),c.vis=a.u.getVisibilityState(),a.u.na("onPlayVideo",{videoId:b,watchEndpoint:f,sessionData:c,listId:d}),!1;c=a.P;c.o&&(f=c.o,f.A={},f.w={});c.u=!1;a.P.reset();b={video_id:b};e&&(b.autoplay="1");e&&(b.autonav="1");d?(b.list=d,a.loadPlaylist(b)):a.loadVideoByPlayerVars(b,1);return!0};
g.PS=function(a){if(a.u.isMutedByMutedAutoplay())return!1;if(3==a.getPresentingPlayerType())return!0;kz(a.o)&&!a.ba&&$S(a);return!(!a.F||!a.F.hasNext())};
oT=function(a,b){var c=g.w(b);if(c){var d=nT();d&&d.list&&c();a.jb=null}else a.jb=b};
nT=function(){var a=g.w("yt.www.watch.lists.getState");return a?a():null};
g.wT=function(a){if(!a.B||!a.B.Bh())return null;var b=a.B;if(a.da){var c=a.da;c.w?c.w!==b&&(g.YC(c),c.w=b,c.u=null):c.w=b}else a.da=Bla(a.u,b),a.da&&g.C(a,a.da);return a.da};
xT=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"==f?(b.style=lC.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"==f?b.style=lC.AD_MARKER:(b.style=lC.TIME_MARKER,b.color=e),b.visible=!0);eL(a,[new g.mC(1E3*c,1E3*d,b)],1);return!0};
eL=function(a,b,c){var d=g.W(a,c);d&&(d=d.R,d.u(),rF(d.o,b),d.A=NaN,d.u(),c&&a.getPresentingPlayerType()!=c||NS(a,"cuerangesadded",b))};
g.yT=function(a,b,c){var d=g.W(a,c);d&&(tF(d.R,b),c&&a.getPresentingPlayerType()!=c||NS(a,"cuerangesremoved",b))};
g.IR=function(a,b,c){var d=g.W(a,c);d&&(b=vF(d.R,b),c&&a.getPresentingPlayerType()!=c||NS(a,"cuerangesremoved",b))};
zT=function(a){var b=(0,g.N)(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)};
aC=function(a,b,c){a.o.R&&(a.R=b,b.muted||eT(a,!1),c&&a.o.Mc&&!a.o.ua&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.Ks("yt-player-volume",c),g.Ks("yt-player-volume",c,2592E3))),AT(a),c=g.Gt&&a.B&&!a.B.Yc(),!a.o.ua||c)&&(b=g.Sb(b),a.o.Mc||(b.unstorable=!0),a.u.na("onVolumeChange",b))};
AT=function(a){var b=a.getVideoData();if(!b.Zh){b=a.o.ua?1:SB(b);var c=a.B;xS(a,"web_player_mute_then_volume_killswitch")?(c.setVolume(a.R.volume*b/100),c.Nh(a.R.muted)):(c.Nh(a.R.muted),c.setVolume(a.R.volume*b/100))}};
eT=function(a,b){b!=a.Pa&&(a.Pa=b,a.u.na("onMutedAutoplayChange",b))};
BT=function(a){var b=Kr(!xS(a,"web_player_fullscreen_shadow_killswitch"));return b&&(b==a.I.element||a.B&&b==a.B.ib())?b:null};
DT=function(a,b){var c=window.screen&&window.screen.orientation;if(g.P(a.o.experiments,"lock_fullscreen2")&&c&&c.lock&&(!g.Gt||!CT))if(b){var d=0==c.type.indexOf("portrait"),e=a.I.getVideoAspectRatio(),f=d;1>e?f=!0:1<e&&(f=!1);if(!a.Sa||f!=d){if(c=c.lock(f?"portrait":"landscape"))c["catch"](g.Ka);a.Sa=!0}}else a.Sa&&(a.Sa=!1,c.unlock())};
RS=function(a,b){var c=!!b,d=!!a.G.w!=c,e=a.G;e.w!=b&&(e.w=b,e.Li());xS(a,"html5_media_fullscreen")&&!c&&a.B&&BT(a)==a.B.ib()&&a.B.il();a.I.Ce();d&&a.P.tick("fsc");d&&(a.u.S("fullscreentoggled",c),d=WS(a),c={fullscreen:c,videoId:d.av||d.videoId,time:a.getCurrentTime()},a.u.getPlaylistId()&&(c.listId=a.u.getPlaylistId()),a.u.na("onFullscreenChange",c))};
NS=function(a,b,c){a.u.S(b,c);var d=g.cz(a.o)||g.dz(a.o)||pz(a.o);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.u.na(e,c)}};
sT=function(a,b,c){ws(a.Aa);a.Aa=0;var d=g.W(a,c);d&&1!=a.Z&&2!=a.Z&&(d==a.C&&GL(a.A,b),1==c&&(g.P(a.o.experiments,"html5_stop_video_in_cancel_playback")&&d.stopVideo(),lT(a)),g.MJ(d),NS(a,"cuerangesremoved",uF(d.R)||[]),d.R.reset(),a.Ia&&d.isGapless()&&(PJ(d,!0),QJ(d,a.B)))};
ET=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var k=g.W(a,e);if(!k||(2!=k.getPlayerType()||a.Mb(k)||f)&&!g.JB(k.getVideoData()))3==a.getPresentingPlayerType()?g.SK(a.A).Rl("control_seek",b,c):(k==a.w&&a.L&&!hT(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
FT=function(a,b,c,d){if(!a.qb){c&&(LS(a),KS(a));a.qb=!0;c=g.W(a);c.Sa=!0;c.Qa("reloading","reason."+b);var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.sa?tB(e)&&g.oz(a.o)&&(f.live_utc_start=pK(c),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.ae&&(f.vvt=e.ae);e.Sh&&(f.vss_credentials_token=e.Sh,f.vss_credentials_token_type=e.Th);e.oauthToken&&(f.oauth_token=e.oauthToken);f.autoplay=1;f.reload_count=e.Jf+1;f.reload_reason=b;e.xk&&(f.unplugged_partner_opt_out=e.xk);
a.loadVideoByPlayerVars(f,void 0,d)}};
GT=function(a,b){WS(a).autonavState=b;g.Ks("yt-player-autonavstate",b);a.u.S("autonavchange",b)};
HT=function(a){var b=a.getVideoData().Zh,c=a.o.Xg,d=a.B;b||c?d.sr():(d.wr(),aC(a,a.R))};
Fla=function(a,b){return g.P(a.o.experiments,"html5_enable_embedded_player_visibility_signals")&&a.o.u?new KM(b):null};
lT=function(a){(a=HL(a.A))&&a.created&&a.destroy()};
xS=function(a,b){return g.P(a.o.experiments,b)};
IT=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]=Ch(a,d);b.hidden=!!a.hidden};
Ela=function(a){var b=a.o,c=document.requestStorageAccess&&document.hasStorageAccess;g.P(b.experiments,"embeds_enable_request_storage_access_safari_itp")&&g.rz&&c&&b.u?tl()||b.ba?(g.Yq("embedsStorageAccessNotChecked",{isIosWebview:tl(),isPemPlayer:b.ba}),a.Ha=!1):document.hasStorageAccess().then(function(d){g.Yq("embedsHasStorageAccessResult",{hasCookieAccess:d,resultedInError:!1});a.Ha=!d},function(d){g.Yq("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.No(Error("Embeds ITP Error: "+d));a.Ha=!1}):a.Ha=!1};
JT=function(a,b){var c=void 0;if(g.cz(a.o)&&zq(b)&&yq(b)){var d=a.getVideoData().Qd();d&&(c={Authorization:"Bearer "+d})}g.jr(b,void 0,void 0,c)};
KT=function(a,b){b.forEach(function(c){JT(a,c)})};
MM=function(a){return a.Qb?a.Qb.jsUrl:a.ya.assets&&a.ya.assets.js?a.ya.assets.js:""};
LT=function(a){a=(a=eC(a.A))?a.chrome:null;return a?(a=a.vx())?a.L:null:null};
MT=function(a,b,c){for(var d in b)a[c+d]=b[d];return a};
Ola=function(){};
NT=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
Pla=function(){var a=null;Ar().then(function(b){return a=b},function(b){return a=NT(b)});
return a};
Qla=function(){var a=Yf(1E3,"NO_BID");return Mf(Of(Kf([Ar(),a]),NT),function(){return a.cancel()})};
OT=function(a){this.o=a;this.A=g.Q(a.M().experiments,"bulleit_get_midroll_info_timeout_ms")||8E3;this.w=this.u=1};
PT=function(a,b,c,d){c=void 0===c?{}:c;var e=c.hi,f=c.Pb,k=void 0===c.wk?0:c.wk;d=void 0===d?"":d;c=a.o.getVideoData(1);var l=a.o.M().od,m={AD_BLOCK:a.u++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:a.o.M().jb?Fr(Dr.getInstance(),140)?3:2:1,CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*rT(a.o.app),LACT:iq(),LIVE_INDEX:e?a.w++: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.o.getVisibilityState(),
TSLA:k,P_H:g.RK(a.o).getPlayerSize().height,P_W:g.RK(a.o).getPlayerSize().width,YT_REMOTE:l?l.join(","):""},n=Bq(Aq);Object.keys(n).forEach(function(p){null!=n[p]&&(m[p.toUpperCase()]=n[p].toString())});
""!==d&&(m.BISCOTTI_ID=d);d={};(l=a.o.M().Ia)&&zq(b)&&(d.forced_experiments=l);g.P(a.o.M().experiments,"get_midroll_info_wexit")&&(e=Rla(a,b,{hi:e,Pb:f,wk:k}),d.rpc_data=JSON.stringify(e));b=wq(g.jn(b,m),d);e=b.split("?");if(2!=e.length)return Hf(Error("Invalid AdBreakInfo URL"));f=g.q(e);e=f.next().value;d=f.next().value;f={};c.oauthToken&&yq()&&(f.Authorization="Bearer "+c.oauthToken);c=g.rq(d);d=a.o.M();return g.P(d.experiments,"get_midroll_info_wexit")?g.or(b,{zr:!0,format:"RAW",headers:f,method:"POST",
rb:c,timeout:a.A,withCredentials:!0}):g.oz(d)?g.or(e,{zr:!0,format:"RAW",headers:f,method:"POST",rb:c,timeout:a.A,withCredentials:!0}):g.or(b,{zr:!0,format:"RAW",headers:f,method:"GET",timeout:a.A,withCredentials:!0})};
Rla=function(a,b,c){var d=c.hi,e=c.Pb,f=void 0===c.wk?0:c.wk;c=iq().toString();var k=Uq("dkv");e=e?Math.round(e.start):0;var l=1E3*(d?d.durationSecs:0);f=0>=f||g.P(a.o.M().experiments,"stop_use_time_since_last_ad_service")?0:Math.ceil(f);var m=a.u,n=g.RK(a.o).getPlayerSize().height,p=g.RK(a.o).getPlayerSize().width,t=d&&d.context||"",u=rT(a.o.app)?1E3*rT(a.o.app):0,z=a.o.M().od;z=z?z.join(","):"";d=d?a.w:1;var B=a.o.getVideoData(1).clientPlaybackNonce,D=b.match(/[&\?]token=(\w*)/);D=null!=D&&2<=D.length?
D[1]:"";var E=b.match(/[&\?]video_id=(\w*)/);E=null!=E&&2<=E.length?E[1]:"";b=b.match(/[&\?]mt=(\d*)/);b=null!=b&&2<=b.length?Number(b[1]):0;b=isNaN(b)?0:b;var F=g.hz(a.o.M()),I=new Ola;I.clientName=a.o.M().ug.Hj.toString();I.host=F;I.o=void 0;var ia=Sla.includes(F)?void 0:Uq("PREF"),pa=FK();return{adBreakRequest:{videoId:E,adBlock:m,params:D,breakIndex:d,breakLengthMs:l.toString(),breakPositionMs:e.toString(),clientPlaybackNonce:B,driftFromHeadMs:u.toString(),liveTargetingParams:t,topLevelDomain:F,
isProxyAdTagRequest:!1,context:pa},adsCookie:k,clientInfo:I,lact:c,mediaTimeMs:b,timeSinceLastAdSeconds:f,vis:a.o.getVisibilityState(),playerHeightPixels:n,playerWidthPixels:p,ytRemote:z,prefCookie:ia}};
QT=function(a,b,c){this.w=a;this.ud=null;this.u=b;this.o=0;this.wb=void 0===c?!1:c;this.visible=!0};
RT=function(a,b,c,d,e){g.mC.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.u=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.o=!1;this.w=null};
ST=function(a){return"AD_PLACEMENT_KIND_START"==a.u};
TT=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.u};
Tla=function(a){return a.end-a.start};
UT=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Yn(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Yn(Math.max(0,b.w-b.o),0x7ffffffffffff):new Yn(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.w);if(c&&(d=a,a=Math.max(0,a-b.o),a==d))break;return new Yn(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return a=
b.ud,d=1E3*a.startSecs,c?d<b.u?new Yn(d-4E3,d):new Yn(Math.floor(b.u+Math.random()*Math.max(0,d-b.u-1E4)),d):new Yn(d,d+(0<a.durationSecs?1E3*a.durationSecs:5E3))}return null};
WT=function(a,b,c){b=void 0===b?null:b;c=void 0===c?{}:c;this.id=VT(a);this.componentType=a;this.macros=c;this.renderer=b};
VT=function(a){return a+(":"+(xo.getInstance().o++).toString(36))};
XT=function(a,b,c){this.id=c;this.content=a;this.actionType=b};
$T=function(){g.A.call(this);var a=this;this.o={};ZT(this,"commandExecutorCommand",function(b,c,d){b.commands&&Ula(a,b.commands,c,d)});
ZT(this,"clickTrackingParams",function(){})};
Vla=function(a,b){return ZT(a,b.o(),function(c,d,e){b.Ea(c,d,e)})};
ZT=function(a,b,c){a.ea();if(a.o[b])return g.M(Error("Extension name "+b+" already registered")),function(){};
a.o[b]=c;return function(){delete a.o[b]}};
Ula=function(a,b,c,d){d=void 0===d?{}:d;a.ea();b.forEach(function(e){return a.executeCommand(e,c,d)})};
aU=function(a,b,c,d,e){e=void 0===e?{}:e;if(a=a.o[b])try{a(c[b],d,e)}catch(f){g.M(f)}else c=Error("Unhandled field"),c.params=b,g.M(c)};
bU=function(a,b,c){this.u=a;this.A=b;this.w=c};
cU=function(a){this.u=a};
dU=function(a){this.u=a};
eU=function(a){this.N=a};
fU=function(a){this.u=a};
gU=function(a){this.o=a;yq()};
hU=function(a){this.u=a};
iU=function(a){this.u=a};
jU=function(){};
kU=function(){};
lU=function(a){g.A.call(this);this.o=a;this.u=Wla(this)};
Wla=function(a){var b=new $T;g.C(a,b);[new bU(a.o.ND,a.o.OD,a.o.Kb),new cU(a.o.PD),new dU(a.o.RD),new eU(a.o.N),new hU(a.o.Hh),new iU(a.o.FJ),new fU(a.o.aE),new jU,new kU].forEach(function(c){return Vla(b,c)});
["adInfoDialogEndpoint","adFeedbackEndpoint"].forEach(function(c){return ZT(b,c,function(){})});
return b};
mU=function(a){this.u=a;this.o=null};
Xla=function(a){return nU(a).then(function(){return new Cf(function(b,c){var d=oU();(d=d?pU(d):null)&&"adSizes"in d[0]?b((0,g.Fc)(d[0].adSizes,function(e){return new g.Vd(e.adWidth,e.adHeight)})):c(Error("No slots registered with GPT services"))})})};
Yla=function(a){!qU()&&a.o?a.o.cancel():nU(a).then(function(){return rU(null,300,60)})};
nU=function(a){if(null==a.o){var b=a.u/200,c=function(d){if(!qU()){if(0>=d)throw Error("Timed out while waiting for GPT services");return Yf(200).then(function(){return c(d-1)})}};
a.o=Gf().then(function(){return c(b)})}return a.o};
rU=function(a,b,c){var d=Yf(5E3).then(function(){throw Error("Timed out while waiting for GPT set companion");}),e=new Cf(function(f,k){var l=oU();
if(l){var m=pU(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){if(void 0!==p.firstElementChild)var t=p.firstElementChild;else for(t=p.firstChild;t&&1!=t.nodeType;)t=t.nextSibling;t||(t=g.re("div"),p.appendChild(t));a&&t.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 Kf([e,d])};
qU=function(){var a=oU();if(!a)return!1;a=pU(a);return g.Na(a)&&0!=a.length?null!=ce("google_companion_ad_div"):!1};
oU=function(){var a=ne();return g.w("googletag.cmd",a)?a:null};
pU=function(a){a=void 0!==a.googleGetCompanionAdSlots?Mo(a.googleGetCompanionAdSlots)():void 0;return void 0!==a&&0<a.length?a:null};
Zla=function(){this.url=null;this.height=this.width=0;this.adInfoRenderer=this.impressionTrackingUrls=this.clickTrackingUrls=null};
sU=function(){this.contentVideoId=null;this.macros={};this.imageCompanionAdRenderer=this.iframeCompanionRenderer=null};
tU=function(a,b){this.u=a;this.o=b};
$la=function(a){return a.o?Xla(a.o):Hf("GPT is not enalbed")};
ama=function(a){var b=new tU(a.N,az(a.N.M())&&!a.ZF?new mU(a.hF):null);return{PE:function(){return b}}};
uU=function(a,b){this.o=a;this.Z=b||{};this.F=String(Math.floor(1E9*Math.random()));this.G={};this.L=0};
bma=function(a){this.w=a;this.u={};this.o=nh()?500:g.cz(a.M())?1E3:2500};
dma=function(a,b){if(!b.length)return null;var c=b.filter(function(d){if(!d.mimeType)return!1;d.mimeType in a.u||(a.u[d.mimeType]=a.w.canPlayType(d.mimeType));return a.u[d.mimeType]?!!d.mimeType&&"application/x-mpegurl"==d.mimeType.toLowerCase()||!!d.mimeType&&"application/dash+xml"==d.mimeType.toLowerCase()||"PROGRESSIVE"==d.delivery:!1});
return cma(a,c)};
cma=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.o||k<a.o||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.o||(!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.o||(!c||f<c.minBitrate?c=e:c&&f==c.minBitrate&&k>c.maxBitrate&&(c=e));return c};
vU=function(a,b){this.o=a;this.u=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;this.w=null};
wU=function(a){return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",a.activeViewMeasurablePings||
[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",a.firstQuartilePings||[]],["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]]])};
ema=function(a){return(a=a.pings)?Object.fromEntries(wU(a)):{}};
xU=function(a,b,c){uU.call(this,a,ema(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.ba=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.A=new vU(0,[]);this.C=this.V=null;this.ha=b;this.U=[];this.w={};this.aa=null;this.u=0;this.I=this.P=this.B=null;b=this.o.skipOffsetMilliseconds||0;0<b&&(this.aa=b);this.w=g.rq(this.o.playerVars||"");if(b=this.o.external)this.U=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.u=b/1E3,this.w.length_seconds=this.u.toString()),(b=dma(this.ha,
this.U))?(this.P=b.uri,b=b.mimeType,this.w.url_encoded_third_party_media="url="+encodeURIComponent(this.P)+"&type="+encodeURIComponent(b)):this.I=Error("Nonplayable third party ad media file.");else if(this.B=this.w.video_id,this.V=this.w.ucid||null,this.u=Fy(this.u,this.w.length_seconds),this.w.cta_conversion_urls)try{this.w.cta_conversion_urls=JSON.parse(this.w.cta_conversion_urls)}catch(d){g.M(d)}this.C=this.o.clickthroughEndpoint||null;this.A=new vU(0,[this.u])};
yU=function(a){var b=a.w||{};1<a.A.u&&(b.slot_pos=a.A.o);b.autoplay="1";return b};
zU=function(a){return 0<a.u&&7.05>=a.u};
AU=function(){uU.apply(this,arguments)};
BU=function(){this.o=[];this.w=null;this.u=0};
CU=function(a,b){b&&a.o.push(b)};
DU=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};
EU=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};
FU=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
GU=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
fma=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=DU(a.impressionCommands)||[];b.error=DU(a.errorCommands)||[];b.mute=DU(a.muteCommands)||[];b.unmute=DU(a.unmuteCommands)||[];b.pause=DU(a.pauseCommands)||[];b.rewind=DU(a.rewindCommands)||[];b.resume=DU(a.resumeCommands)||[];b.skip=DU(a.skipCommands)||[];b.close=DU(a.closeCommands)||[];b.clickthrough=DU(a.clickthroughCommands)||[];b.fullscreen=DU(a.fullscreenCommands)||[];b.active_view_viewable=DU(a.activeViewViewableCommands)||
[];b.active_view_measurable=DU(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=DU(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=DU(a.endFullscreenCommands)||[];b.channel_clickthrough=DU(a.channelClickthroughCommands)||[];b.abandon=DU(a.abandonCommands)||[];b.progress=EU(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=EU(a.progressCommands.filter(function(c){return GU(c)&&Sd(FU(c),0)}));
b.first_quartile=EU(a.progressCommands.filter(function(c){return GU(c)&&Sd(FU(c),.25)}));
b.midpoint=EU(a.progressCommands.filter(function(c){return GU(c)&&Sd(FU(c),.5)}));
b.third_quartile=EU(a.progressCommands.filter(function(c){return GU(c)&&Sd(FU(c),.75)}));
b.complete=EU(a.progressCommands.filter(function(c){return GU(c)&&Sd(FU(c),1)}));
return b};
HU=function(a){uU.call(this,a,fma(a));this.u=a.questions?a.questions.reduce(function(b,c){var d=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer;return d?b+(d.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0};
IU=function(a,b,c,d){this.id=b;this.P=a.placementStartPings||[];this.I=a.placementEndPings||[];this.u=d.ud;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.w=(this.C=e.getAdBreakUrl||"")?0:2;d.o=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=UT(b,d);if(null==f)d=new RT(b,new Yn(-1,-1),!1,"adcuerange:invalid",
2),d.o=!0,d=[null,d];else{e=":"+(xo.getInstance().o++).toString(36);var k=d.wb||d.ud;f=new RT(b,f,d.visible&&!k,"adcuerange:"+e,2);k=null;if(d.ud||0<d.o)if(d=UT(b,d,!0))k=new RT(b,d,!1,"prefetch:"+e,3),f.w=k,k.w=f;d=[k,f]}this.R=d[0];this.L=d[1];this.o=c;this.F=!1;this.B={};this.G={};this.A=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
JU=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.xb().u||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.xb().u};
KU=function(a){return"AD_PLACEMENT_KIND_START"==a.xb().u};
MU=function(a){var b={};gma(a,b);hma(b);b.LACT=LU(function(){return iq().toString()});
b.VIS=LU(function(){return a.getVisibilityState().toString()});
b.SDKV="h.3.0";b.VOL=LU(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
b.VED="";return b};
NU=function(a){var b=Object.assign({},{});b.MIDROLL_POS=JU(a)?LU(yb(Math.round(a.xb().start/1E3).toString())):LU(yb("0"));return b};
OU=function(a){var b={};if(!a.kind)return g.$q(Error("AdPlacementConfig without kind")),b;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.$q(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=LU(yb(Math.round(g.jd(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=LU(yb("0"));return b};
PU=function(){var a=Object.assign({},{});a.FINAL=LU(yb("1"));a.SLOT_POS=LU(yb("0"));return a};
ima=function(a){var b={};b.SLOT_POS=LU(yb(a.A.o.toString()));return b};
QU=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};
LU=function(a){return{toString:function(){return a()}}};
RU=function(a){for(var b={},c=g.q(jma),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
SU=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};
kma=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.Pb(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};
gma=function(a,b){b.CPN=LU(function(){var c;(c=a.getVideoData(1))?c=c.clientPlaybackNonce:(g.ar(Error("Video data is null.")),c=null);return c});
b.AD_MT=LU(function(){return TU(a,2)});
b.MT=LU(function(){return TU(a,1)});
b.P_H=LU(function(){return g.RK(a).getPlayerSize().height.toString()});
b.P_W=LU(function(){return g.RK(a).getPlayerSize().width.toString()});
b.PV_H=LU(function(){return g.RK(a).getVideoContentRect().height.toString()});
b.PV_W=LU(function(){return g.RK(a).getVideoContentRect().width.toString()})};
TU=function(a,b){var c=1E3*a.getCurrentTime(b,!1);return Math.round(Math.max(0,c)).toString()};
hma=function(a){a.CONN=LU(yb("0"));a.WT=LU(function(){return Date.now().toString()})};
lma=function(a){switch(a){case "fully_viewable_audible_half_duration_impression":return"j";case "measurable_impression":return"e";case "overlay_unmeasurable_impression":return"k";case "overlay_unviewable_impression":return"l";case "overlay_viewable_end_of_session_impression":return"m";case "overlay_viewable_immediate_impression":return"n";case "viewable_impression":return"s";default:return null}};
UU=function(){g.O.call(this);var a=this;this.o={};g.Je(this,function(){return Object.keys(a.o).forEach(function(b){return delete a.o[b]})})};
WU=function(){if(null===VU){VU=new UU;Hm.getInstance().o="b";var a=Hm.getInstance(),b="h"==om(a)||"b"==om(a),c=!(Ii.getInstance(),!1);b&&c&&(a.B=!0,a.C=new Eca)}return VU};
mma=function(a,b,c){a.o[b]=c};
XU=function(){};
YU=function(a){this.o=a};
ZU=function(a){g.A.call(this);var b=this;this.u=a;this.o=null;g.Je(this,function(){return b.o=null})};
aV=function(a){return $U(a)&&1==a.getPlayerState(2)};
$U=function(a){a=a.kb();return void 0!==a&&2==a.getPlayerType()};
bV=function(a){a=a.M();return az(a)&&!g.oz(a)&&"desktop-polymer"==a.playerStyle};
cV=function(a,b){var c=a.M();Ty(c)||"3"!=c.controlsType||(c=g.RK(a),Ty(c.app.M()),c.C=!b,UM(c))};
dV=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};
nma=function(a){this.o=a;var b=Hm.getInstance();a=a.Mb();b.A!==a&&((b.A=a)||mda(b))};
eV=function(a,b,c,d,e,f,k){f=void 0===f?new gU(new YU(d.getVideoData(1))):f;k=void 0===k?!1:k;g.A.call(this);this.u=a;this.I=b;this.w=c;this.o=d;this.G=e;this.C=f;this.F=Array.from(this.u.Z.progress||[]);this.F.sort(function(l,m){return l.offsetMilliseconds-m.offsetMilliseconds});
this.A={ov:.25,Gv:.5,Lv:.75};this.B=null;this.P=k};
kV=function(a,b,c){!fV(a)&&0<c&&(gV(a,b),hV(a)?iV(a,b,c):jV(a,b,c))};
oV=function(a){if(hV(a)){var b=a.o.getCurrentTime(2,!1);lV(a,"impression",b,0)}else mV(a,"impression");mV(a,"start");fV(a)||a.o.isFullscreen()&&nV(a,"fullscreen")};
pV=function(a,b){fV(a)||(hV(a)?(gV(a,0,!0),iV(a,b,b)):(gV(a,0,!0),jV(a,0,0,!0)),mV(a,"complete"))};
oma=function(a,b){b&&b.forEach(function(c){c.baseUrl&&a.C.send(c.baseUrl,qV(a),{})})};
gV=function(a,b,c){for(c=void 0===c?!1:c;a.u.L<a.F.length;){var d=rV(a,"progress"),e=a.F[a.u.L];if(e.offsetMilliseconds<=1E3*b||c)(e=e.baseUrl)&&a.C.send(e,qV(a),d),a.u.L++;else break}};
jV=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.A.ov||d)&&mV(a,"first_quartile");(b>=c*a.A.Gv||d)&&mV(a,"midpoint");(b>=c*a.A.Lv||d)&&mV(a,"third_quartile")};
lV=function(a,b,c,d){if(null==a.B){if(c<d||1<c-d)return}else if(a.B>d||d>c)return;mV(a,b)};
iV=function(a,b,c){if(0<c&&0<b){var d=g.QK(a.o,a.o.getPresentingPlayerType());g.V(d,16)||g.V(d,32)||(lV(a,"first_quartile",b,c*a.A.ov),lV(a,"midpoint",b,c*a.A.Gv),lV(a,"third_quartile",b,c*a.A.Lv))}a.B=b};
nV=function(a,b){for(var c=rV(a,b),d=g.q(a.u.Z[b]||[]),e=d.next();!e.done;e=d.next())(e=e.value.baseUrl)&&a.C.send(e,qV(a),c);a.u.G[b]=!0};
mV=function(a,b){a.u.G.hasOwnProperty(b)||nV(a,b)};
sV=function(a,b){return a.u.G.hasOwnProperty(b)};
qV=function(a){for(var b={},c=MU(a.o),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.w)};
rV=function(a,b){var c=a.I;var d=a.u;if(d.Fl()){var e=dV(b);if(null==e)d={};else{var f;(f=d.R()())||(f=(f=c.o)&&f.kb?(f=f.kb())&&2==f.getPlayerType()?wJ(f):null:null);f?(c={opt_adElement:f,opt_fullscreen:c.o.isFullscreen()},d=Mm(e,d.F,c)):d={}}}else d={};return d?Object.assign({},d):{}};
tV=function(a,b){switch(b){case "action-companion":case "shopping-companion":case "image-companion":case "videowall-companion":case "ads-engagement-panel":if(2==a.o.getPresentingPlayerType())a.o.sendVideoStatsEngageEvent(1,void 0,2);else if(a.G){var c=a.G.o;c&&c()}else g.M(Error("trackCompanionEngagement is called butcompanionEngagementHandler is null"),"ERROR")}};
hV=function(a){return!g.P(a.o.M().experiments,"html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.P};
fV=function(a){return hV(a)&&!sV(a,"impression")};
uV=function(a){return hV(a)&&sV(a,"seek")};
pma=function(a){this.o=a};
Y=function(a,b,c,d,e,f){f=void 0===f?0:f;g.O.call(this);this.N=a;this.o=d;this.w=e;this.w.o[b.F]=this;this.w.subscribe("e",this.xB,this);this.w.subscribe("j",this.yB,this);this.w.subscribe("k",this.zB,this);this.w.subscribe("l",this.AB,this);this.w.subscribe("m",this.BB,this);this.w.subscribe("n",this.CB,this);this.w.subscribe("s",this.DB,this);this.F=b;this.V=[];this.macros=c;this.G=!1;a=new pma(this.N.M());0==f||1==f&&(a.o.o||g.oz(a.o)||g.cz(a.o)||ez(a.o)||!g.rz)?f=!0:(f=g.fe("video-ads"),f=null!=
f&&"none"!=Ch(f,"display"));this.aa=!f};
vV=function(a){a.aa?a.Vb("ui_unstable"):a.dc()};
xV=function(a,b){lb(a.V,b);wV(a,b,1)};
yV=function(a){a=a.o;a.w=SU(a.w,QU(0,"No playable media files can be selected"));mV(a,"error")};
wV=function(a,b,c){0!=b.length&&(b=(0,g.Fc)(b,function(d){return new XT(d,c,d.id)}),a.S("onAdUxUpdate",b))};
zV=function(a){return(a=a.N.getVideoData(2))&&a.clientPlaybackNonce||""};
AV=function(){uU.apply(this,arguments)};
BV=function(a,b){WT.call(this,"action-companion",a,b)};
CV=function(a,b,c,d,e){Y.call(this,a,b,c,d,e);this.u=null};
DV=function(a,b){var c=b.renderer;return c&&c.adVideoId==a.videoId};
EV=function(a,b,c){if(!g.P(a.N.M().experiments,"populate_companion_metadata_from_vms_html5")){if(!c.renderer.actionButton&&!b.isListed)return;var d=c.renderer,e=d.iconImage&&d.iconImage.thumbnail&&d.iconImage.thumbnail.thumbnails||null;e&&e.length&&g.hc(g.hd(e[0].url))&&(e[0].url=b.Jd);(e=d.bannerImage&&d.bannerImage.thumbnail&&d.bannerImage.thumbnail.thumbnails||null)&&e.length&&g.hc(g.hd(e[0].url))&&(e[0].url=b.channelBanner);e=d.headline;null!=e&&g.hc(g.hd(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.rf))}xV(a,[c])};
qma=function(a){var b={};b.abandon=a.abandonCommands&&DU(a.abandonCommands.commands)||[];return b};
FV=function(a){uU.call(this,a,qma(a))};
GV=function(a,b){WT.call(this,"ad-action-interstitial",a,b)};
HV=function(a,b,c,d,e,f){Y.call(this,a,b,c,d,e,1);this.A=b;this.u=b.o.durationMilliseconds||0;this.Fa=null;this.B=f};
IV=function(a,b){WT.call(this,"ad-choice-interstitial",a,b)};
JV=function(a,b,c,d,e){Y.call(this,a,b,c,d,e,1);this.u=b};
KV=function(a){uU.call(this,a);this.u=g.rq(this.o.playerVars||"")};
LV=function(){uU.apply(this,arguments)};
MV=function(){uU.apply(this,arguments)};
rma=function(a){a=a.impressionUrls;var b={};a&&(b.impression=a);return b};
NV=function(a){uU.call(this,a,rma(a))};
OV=function(){uU.apply(this,arguments)};
PV=function(){uU.apply(this,arguments)};
QV=function(){uU.apply(this,arguments)};
RV=function(){uU.apply(this,arguments)};
SV=function(){uU.apply(this,arguments)};
TV=function(){uU.apply(this,arguments)};
UV=function(a,b,c,d,e,f,k,l,m,n,p,t,u,z,B){this.aa=a;this.G=b;this.F=c;this.L=d;this.R=e;this.P=f;this.u=k;this.I=l;this.o=m;this.V=n;this.U=p;this.w=t;this.B=u;this.A=z;this.C=B};
VV=function(a,b,c,d,e,f){Y.call(this,a,b,c,d,e);var k=this;this.B=b;this.u=new g.H(function(){k.Vb("load_timeout")},1E4);
g.C(this,this.u);this.C=f;this.A=new g.Nr(this);g.C(this,this.A)};
WV=function(a){WT.call(this,"ad-message",a)};
XV=function(a,b,c,d,e){Y.call(this,a,b,c,d,e);var f=this;this.B=b;this.C=b.o.durationMs||0;this.A=this.u=0;this.I=function(){var k=f.N.getProgressState().current;k<f.u?f.Ac():k>f.A&&f.bd()}};
YV=function(a,b){WT.call(this,"ads-engagement-panel",a,b)};
ZV=function(a,b,c,d,e){Y.call(this,a,b,c,d,e)};
$V=function(a,b,c,d,e){Y.call(this,a,b,c,d,e)};
aW=function(a,b){WT.call(this,"invideo-overlay",a,b)};
bW=function(a,b){WT.call(this,"invideo-overlay-as-cta",a,b)};
cW=function(a,b,c,d,e){Y.call(this,a,b,c,d,e);this.u=b};
dW=function(a,b){WT.call(this,"persisting-overlay",a,b)};
eW=function(a,b,c,d,e){Y.call(this,a,b,c,d,e);this.u=b};
fW=function(a){return a?g.T(a):null};
gW=function(a){if(!a)return[];a=a.loggingUrls;if(!a)return[];a=a.map(function(b){return b.baseUrl});
return 0===a.length?[]:a};
sma=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
hW=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
iW=function(a,b,c,d,e,f){this.u=a;this.w=b;this.o=MU(d);if(f)for(a=g.q(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.o[b]=f[b];this.A=c;this.C=d;this.B=e};
kW=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?jW(a,e):a.A.oh()};
b.skipShown=function(){jW(a,d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
lW=function(a,b,c){if(c.button&&c.button.buttonRenderer&&(!c.button.buttonRenderer.command||!c.button.buttonRenderer.command.adInfoDialogChoiceEndpoint)&&c.button.buttonRenderer.serviceEndpoint&&c.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint){var d=c.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint.dialog;d&&d.adInfoDialogRenderer&&(tma(a,b,d.adInfoDialogRenderer),b.whyThisAdInfo.menuTitle=fW(c.hoverText)||"",d.adInfoDialogRenderer.muteAdRenderer&&(c=d.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
uma(a,b,c))}};
jW=function(a,b){if(b){var c=mW(a);g.Na(b)?b.forEach(function(d){return a.u.executeCommand(d,c)}):a.u.executeCommand(b,c)}};
tma=function(a,b,c){var d=fW(c.confirmLabel)||"",e=fW(c.title)||"",f=c.adReasons?c.adReasons.map(function(k){return fW(k)||""}):[];
b.whyThisAdInfo={closeButton:d,menuTitle:"",targetingReasonHeader:e,targetingReasons:f,adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};b.whyThisAdClicked=function(){jW(a,c.impressionEndpoints)};
b.whyThisAdClosed=function(){jW(a,c.confirmServiceEndpoint)}};
uma=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:fW(c.text)||"",surveyOptions:[]};b.muteAdInfo=e;c=gW(c.navigationEndpoint);var f=hW(c[1]),k=[hW(c[0])];(c=sma(d))&&k.push(c);var l=!1;b.muteAdClicked=function(){l=!0;jW(a,f)};
b.muteAd=function(){l||jW(a,f);l=!1;jW(a,k)};
vma(b,d)}}};
vma=function(a,b){a.muteAdInfo.goneText=fW(b.title)||"";a.muteAdInfo.questionText=fW(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=fW(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=fW(f.reason)||"";f=gW(f.endpoint);c.push({label:e,url:f[0]})}};
mW=function(a){if(g.P(a.C.M().experiments,"dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.w;for(var b={},c=g.q(Object.keys(a.o)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.o[d].toString();return Object.assign(b,a.w)};
nW=function(){return{adNextParams:"",adSystem:0,attributionInfo:null,clickThroughUrl:"",executeCommand:function(){},
instreamAdPlayerOverlayRenderer:null,instreamSurveyAdRenderer:null,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(){}}};
wma=function(a,b,c,d,e,f){this.o=c;this.u=new iW(a,b,d,e,f)};
xma=function(a,b,c){var d=nW();d.instreamAdPlayerOverlayRenderer=b;c&&(d.adNextParams=c);d.executeCommand=function(e){jW(a.u,e)};
if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":kW(a.u,d,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":lW(a.u,d,b.adInfoRenderer.adHoverTextButtonRenderer)}d.isBumper=zU(a.o)&&!d.isSkippable;d.isPostroll=a.o.isPostroll;a.o.isSkippable();b=a.o.B;c=a.o.getVideoUrl();b?d.videoId=b:c&&(d.videoUrl=c);if(b=(b=a.o.C)&&b.urlEndpoint)d.clickThroughUrl=b.url||"";d.sendAdsPing=
function(e){a.u.sendAdsPing(e)};
return d};
oW=function(a,b){WT.call(this,"pla-shelf",a,b)};
pW=function(a,b,c,d,e){Y.call(this,a,b,SU(c,{TRIGGER_TYPE:"YOUTUBE_SHELF_SHOW"}),d,e);this.u=b};
qW=function(a,b){WT.call(this,"shopping-companion",a,b)};
rW=function(a,b,c,d,e){Y.call(this,a,b,c,d,e)};
zma=function(a,b,c,d,e,f){this.o=new iW(a,b,c,d,e,yma(f))};
Bma=function(a,b){var c=nW();c.instreamSurveyAdRenderer=b;c.executeCommand=function(e){jW(a.o,e)};
var d=Ama(b);if(d.skipOrPreviewRenderer)switch(Object.keys(d.skipOrPreviewRenderer)[0]){case "skipAdRenderer":kW(a.o,c,d.skipOrPreviewRenderer.skipAdRenderer)}if(d.adInfoRenderer)switch(Object.keys(d.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":lW(a.o,c,d.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(e){a.o.sendAdsPing(e)};
return c};
Ama=function(a){var b={};if(!a.questions||0===a.questions.length)return b;a=(a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer||a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon;return(a=a.instreamAdPlayerOverlay&&a.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)?a:b};
yma=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=LU(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=LU(a);return b};
uW=function(a,b,c){g.O.call(this,!0);var d=this;this.C=b;this.B=c;this.u=a;this.Fa=new g.Wf(200);this.Fa.ka("tick",function(){var e=Date.now(),f=e-d.A;d.A=e;d.o+=f;d.o>=d.u&&(d.o=d.u,d.Fa.stop());e=d.o/1E3;d.B&&sW(d.B,e);tW(d,{current:e,duration:d.u/1E3})});
g.C(this,this.Fa);this.o=0;this.w=null;g.Je(this,function(){d.w=null});
this.A=0};
tW=function(a,b){a.C.na("onAdPlaybackProgress",b);a.w=b};
vW=function(a){WT.call(this,"survey",a)};
Cma=function(a,b,c){var d=b.M();return g.P(b.M().experiments,"enable_external_player_ad_playback_progress_html5")&&g.cz(d)?new uW(1E3*a.u,b,c):null};
wW=function(a,b,c,d,e,f,k){Y.call(this,a,b,c,d,e,1);var l=this;this.B=b;this.A=new g.Nr;g.C(this,this.A);this.A.K(this.N,"resize",function(){450>g.RK(l.N).getPlayerSize().width&&(g.Pr(l.A),l.Ac())});
this.P=f;this.C=0;this.I=k(this,function(){return""+(Date.now()-l.C)});
if(this.u=Cma(b,a,f))g.C(this,this.u),this.A.K(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&(m=l.B.o,(m=m.questions&&m.questions[0])?(m=(m=m.instreamSurveyAdMultiSelectQuestionRenderer||m.instreamSurveyAdSingleSelectQuestionRenderer)&&m.surveyAdQuestionCommon,jW(l.I.o,m&&m.timeoutCommands)):g.$q(Error("Expected a survey question in InstreamSurveyAdRenderer.")))})};
xW=function(a,b){WT.call(this,"survey-interstitial",a,b)};
yW=function(a,b,c,d,e){Y.call(this,a,b,c,d,e,1);this.u=b};
zW=function(a){WT.call(this,"ad-text-interstitial",a)};
AW=function(a,b,c,d,e,f){Y.call(this,a,b,c,d,e);this.A=b;this.u=b.o.durationMilliseconds||0;this.Fa=null;this.B=f};
BW=function(a,b){g.A.call(this);this.A=Math.max(0,a);this.w=this.u=0;this.B=b;this.o=null};
CW=function(a){a.o&&(a.o.stop(),a.o.dispose(),a.o=null)};
DW=function(){WT.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=this.adBreakEndSeconds=null};
EW=function(a){a=void 0===a?null:a;WT.call(this,"ad-channel-thumbnail");this.channelIconThumbnailUrl=a};
FW=function(a){a=void 0===a?null:a;WT.call(this,"ad-title");this.videoTitle=a};
GW=function(a){a=void 0===a?null:a;WT.call(this,"advertiser-name");this.channelName=a};
HW=function(a){WT.call(this,"player-overlay",a)};
IW=function(a){WT.call(this,"skip-button",a)};
JW=function(a){WT.call(this,"visit-advertiser",a);var b={};var c=a.text;a=a.navigationEndpoint;null!=c&&null!=c.runs&&null!=a?(b.runs=[g.Sb(c.runs[0])],b.runs[0].navigationEndpoint=a):(b={text:"\u8bbf\u95ee\u5e7f\u544a\u4e3b\u7f51\u7ad9"},a&&(b.navigationEndpoint=a),b={runs:[b]});this.visitAdvertiserLabel=b};
KW=function(a,b,c,d,e,f,k,l,m,n,p){Y.call(this,a,b,c,d,e,1);var t=this;this.R=n;this.u=b;this.B=k;this.Z=new g.Nr(this);g.C(this,this.Z);this.I=new g.H(function(){t.Vb("load_timeout")},g.P(a.M().experiments,"use_variable_load_timeout")?g.Q(a.M().experiments,"variable_load_timeout_ms"):1E4);
g.C(this,this.I);this.A=null;g.P(a.M().experiments,"enable_bulleit_buffer_timer")&&(this.A=new BW(g.P(a.M().experiments,"use_variable_buffer_timeout")?g.Q(a.M().experiments,"variable_buffer_timeout_ms"):15E3,function(){t.Vb("buffer_timeout")}),g.C(this,this.A));
this.ga=!g.P(a.M().experiments,"bulleit_unstarted_event_killswitch");this.L=!1;this.da=m(this);this.ha=f;this.P=l;this.C=p;this.U=this.ba=!1};
NW=function(a,b){LW(a)&&a.U&&(a.U=!1,Dma(a.R,MW(a),b))};
LW=function(a){return null!==a.R&&(OW(a.C)||PW(a.C)||QW(a.C)||RW(a.C))};
SW=function(a){return(a=a.N.getVideoData(2))?a.clientPlaybackNonce:""};
MW=function(a){if(a=a.u.o.elementId)return a;g.$q(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
TW=function(a){var b=new DW;b.adBadgeText="\u5e7f\u544a";var c=a.u.A;1<c.u&&(b.adPodPositionInfoString=g.GM("$AD_INDEX / $ADS_COUNT",{AD_INDEX:String(c.o+1),ADS_COUNT:String(c.u)}));b.adBreakLengthSeconds=c.adBreakLengthSeconds;b.adBreakRemainingLengthSeconds=c.adBreakRemainingLengthSeconds;b.adPodPosition=c.o+1;b.adPodLength=c.u;null!==c.w&&(b.adBreakEndSeconds=c.w/1E3);if(a=a.u.B)b.adVideoId=a;return b};
WW=function(a){var b=a.u.o,c=b.playerOverlay&&b.playerOverlay.instreamAdPlayerOverlayRenderer;c||(c={});var d=a.N.M();if(g.oz(d)&&!c.skipOrPreviewRenderer){var e=a.N.getDuration(2);isFinite(e)&&33<e&&!a.u.isSkippable()&&!g.oz(d)&&g.$q(new Zq("Instream ad is skippable by length, but was was marked nonskippable.",{adLengthSecs:e,IVAR:b}));d={};a.u.isSkippable()&&!zU(a.u)?d.skipAdRenderer=UW(a):d.adPreviewRenderer=VW(a,!1,zU(a.u));c.skipOrPreviewRenderer=d}c.skipOrPreviewRenderer&&g.Pb(c.skipOrPreviewRenderer)&&
g.$q(new Zq("IAPOR.skipOrPreview was filled, but empty.",b));return c};
UW=function(a){var b={preskipRenderer:{}};b.preskipRenderer.adPreviewRenderer=VW(a,!0,!1);b.skippableRenderer={};a=b.skippableRenderer;var c={message:{}};c.message.text="\u8df3\u8fc7\u5e7f\u544a";a.skipButtonRenderer=c;return b};
VW=function(a,b,c){var d=a.N.getVideoData(1),e={};if(b||c){var f={},k={};c=c?g.GM("\u89c6\u9891\u5c06\u5728 $TIME_REMAINING \u79d2\u540e\u5f00\u59cb\u64ad\u653e",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"}):g.GM("\u60a8\u53ef\u4ee5\u5728 $TIME_REMAINING \u79d2\u540e\u8df3\u8f6c\u5230\u89c6\u9891",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"});k.text=c;k.isTemplated=!0;f.templatedAdText=k;e.templatedCountdown=f}else f={},k=g.GM("\u89c6\u9891\u5c06\u5728\u5e7f\u544a\u7ed3\u675f\u540e\u64ad\u653e",
{NEW_LINE:"\n"}),f.text=k,f.isTemplated=!1,e.staticPreview=f;b&&(e.durationMilliseconds=5E3);e.thumbnail={};b=e.thumbnail;f={};f.url=jz(a.N.M(),d.videoId,"mqdefault.jpg");f.width=320;f.height=180;b.thumbnail={thumbnails:[f]};return e};
XW=function(a){return g.P(a.experiments,"disable_ad_info_event_for_music_web")?g.cz(a):pz(a)||g.cz(a)};
Ema=function(a){function b(E,F){return SU(a.QN,RU(PU()),F)}
function c(E){return null==E?{create:function(){return null}}:{create:function(F,I){var ia=b(F,I),pa=a.Km(F,ia);
ia=E(F,ia,pa);g.C(ia,pa);return ia}}}
var d=c(function(E,F,I){return new cW(a.N,E,F,I,a.Wc)}),e=c(function(E,F,I){return new $V(a.N,E,F,I,a.Wc)}),f=c(function(E,F,I){return new rW(a.N,E,F,I,a.Wc)}),k=c(function(E,F,I){return new pW(a.N,E,F,I,a.Wc)}),l=c(function(E,F,I){return new HV(a.N,E,F,I,a.Wc,a.ra)}),m=c(function(E,F,I){return new eW(a.N,E,F,I,a.Wc)}),n=c(function(E,F,I){return new CV(a.N,E,F,I,a.Wc)}),p=c(function(E,F,I){return new AW(a.N,E,F,I,a.Wc,a.ra)}),t=c(function(E,F,I){return new yW(a.N,E,F,I,a.Wc)}),u=c(function(E,F,I){return new JV(a.N,
E,F,I,a.Wc)}),z=c(function(E,F,I){return new XV(a.N,E,F,I,a.Wc,a.ra)}),B=c(function(E,F,I){return new VV(a.N,E,F,I,a.Wc,a.ra)}),D=c(function(E,F,I){return new ZV(a.N,E,F,I,a.Wc)});
this.o=new UV({create:function(E,F){var I=SU(b(E,F),RU(ima(E))),ia=a.Km(E,I),pa=new KW(a.N,E,I,ia,a.Wc,a.dE,a.ra,a.wb,function(tc){return new wma(a.ra,I,E,tc,a.N,a.Hh)},a.zg,a.Kb);
g.C(pa,ia);return pa}},d,e,f,{create:function(E,F){var I=a.Km(E,F),ia=new wW(a.N,E,F,I,a.Wc,a.ra,function(pa,tc){return new zma(a.ra,F,pa,a.N,a.Hh,tc)});
g.C(ia,I);return ia}},k,l,m,n,p,t,u,z,B,D)};
YW=function(a){this.u=a;this.o={}};
ZW=function(){this.o=[]};
$W=function(a,b,c){var d=g.sb(a.o,b);if(0<=d)return b;b=-d-1;return b>=a.o.length||a.o[b]>c?null:a.o[b]};
Fma=function(a){this.u=new ZW;this.o=new YW(a.nE)};
aX=function(){uU.apply(this,arguments)};
Gma=function(a,b,c){this.w=a;this.o=b;this.u=c;this.A=a.getCurrentTime()};
Ima=function(a,b){var c=void 0===c?Date.now():c;if(a.u)for(var d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=c,k=a.o;bX({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:Hma(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.o,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:f,contentCpn:k}});"unknown"===e.event&&cX("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.o);e=e.startSecs+e.o/1E3;e>a.A&&a.w.getCurrentTime()>e&&cX("DAI_ERROR_TYPE_LATE_CUEPOINT",
a.o)}};
Jma=function(a,b,c){a.u&&bX({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.o}})};
dX=function(a,b){a.u&&bX({driftRecoveryInfo:{contentCpn:a.o,cueIdentifier:b.cueIdentifier||void 0,driftRecoveryMs:b.driftRecoveryMs.toString(),breakDurationMs:Math.round(b.py-b.kB).toString(),driftFromHeadMs:Math.round(1E3*rT(a.w.app)).toString()}})};
Kma=function(a,b){a.u&&bX({adTrimmingInfo:{contentCpn:a.o,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.UD}})};
cX=function(a,b){bX({daiStateTrigger:{errorType:a,contentCpn:b}})};
bX=function(a){g.Yq("adsClientStateChange",a)};
Hma=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"}};
eX=function(a){this.u=a;this.Z=(a=!g.P(this.u.M().experiments,"html5_ad_csi_tracker_initialization_killswitch"))?this.u.M().deviceParams.c:g.L("INNERTUBE_CLIENT_NAME",void 0);this.ba=a?this.u.M().deviceParams.cver:g.L("INNERTUBE_CLIENT_VERSION",void 0);this.V=a?this.u.M().deviceParams.cbrand:"";this.aa=a?this.u.M().deviceParams.cmodel:"";this.P="AD_PLACEMENT_KIND_UNKNOWN";this.B=this.I=this.C=this.F=null;this.o="unknown_type";this.L=!0;this.R=this.w=this.G=!1;this.U="vod";this.A=null};
fX=function(a){a.F=null;a.C=null;a.I=null;a.B=null;a.A=null;a.P="AD_PLACEMENT_KIND_UNKNOWN";a.o="unknown_type";a.G=!1;a.w=!1};
gX=function(a){a.w=!1;RA("ad_to_video",["pbresume"],void 0)};
Lma=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"}};
hX=function(a){this.o=a};
iX=function(a){a=[a,a.w].filter(function(d){return!!d});
for(var b=g.q(a),c=b.next();!c.done;c=b.next())c.value.o=!0;return a};
kX=function(a,b){var c=a.o;g.xf(function(){return jX(c,b,1)})};
lX=function(a,b,c,d,e,f,k,l){g.O.call(this);this.xc=a;this.N=b;this.o=d;this.B=this.o.o instanceof uU?this.o.o:null;this.u=null;this.L=!1;this.F=c;this.P=(a=b.getVideoData(1))&&a.sa||!1;this.U=0;this.V=!1;this.aa=g.P(b.M().experiments,"abort_ad_on_browser_autoplay_blocked");this.Le=e;this.qj=f;this.Tg=k;this.R=!1;this.wb=l};
mX=function(a){if($U(a.N)){var b=a.N.getVideoData(2);(b=a.o.G[b.Db]||null)?(!a.u||a.u&&a.u.F!==b)&&a.dc(b):a.ep()}else 1===a.N.getPresentingPlayerType()&&a.u&&a.ep()};
nX=function(a){(a=a.baseUrl)&&g.jr(a,void 0,hn(a))};
oX=function(a,b){var c=a.F,d=a.o.xb().u,e=a.Xw(),f=a.Zw();var k=a.isLiveStream()?"live":"vod";fX(c);var l=c.u.getVideoData(1),m=c.u.getVideoData(2);l&&(c.F=l.clientPlaybackNonce,c.I=l.videoId);m&&(c.C=m.clientPlaybackNonce,c.B=m.videoId,c.A=m.adFormat);c.P=d;0>=f?fX(c):(c.o=c.L?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",c.U=k,c.R=e+1==f,c.G=!0,c.G&&(EA("c",c.Z,c.o),EA("cver",c.ba,c.o),g.P(c.u.M().experiments,"html5_ad_csi_tracker_initialization_killswitch")||(EA("cbrand",c.V,c.o),EA("cmodel",
c.aa,c.o)),EA("yt_pt","html5",c.o),EA("yt_pre","2",c.o),d=Lma(c.P),EA("yt_abt",d,c.o),c.F&&EA("cpn",c.F,c.o),c.I&&EA("docid",c.I,c.o),c.C&&EA("ad_cpn",c.C,c.o),c.B&&EA("ad_docid",c.B,c.o),EA("yt_vst",c.U,c.o),c.A&&EA("ad_at",c.A,c.o)))};
qX=function(a,b){b=void 0===b?!1:b;pX(a.xc,a.o.xb(),a);b||Br("ADS_CLIENT_EVENT_TYPE_ADPLACEMENT_SCHEDULED");a.wb&&!a.o.F&&(Mma(a,a.ax()),a.o.F=!0)};
Mma=function(a,b){for(var c=rX(a),d=a.o.xb().start,e=[],f=g.q(b),k=f.next();!k.done;k=f.next()){k=k.value;if(c<=d)break;var l=sX(k);e.push({externalVideoId:k.B,originalMediaDurationMs:(1E3*k.u).toString(),trimmedMediaDurationMs:(parseInt(k.o.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);k.A.w=c;if(!Nma(a,k,d,m)||l!==m)break;d=l}c=b.reduce(function(n,p){return n+sX(p)},0);
Jma(a.Le,Tla(a.o.xb()),c);Kma(a.Le,{cueIdentifier:a.o.u&&a.o.u.identifier,UD:e})};
sX=function(a){var b=1E3*a.u;return 0<parseInt(a.o.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.o.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.o.trimmedMaxNonSkippableAdDurationMs,10):b};
rX=function(a){var b=a.o.xb().end;a=$W(a.qj,a.o.xb().start,b);return Math.min(b,null===a?Infinity:a)};
Nma=function(a,b,c,d){var e=a.Tg.create(b,RU(NU(a.o)));c=e.Nw(c,d);g.Ke(e);if(!c)return!1;a.o.G[c]=b;return!0};
Oma=function(a){if(a.V)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor((0,g.G)()/1E3)-a.U;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
tX=function(a,b,c,d){this.o=a;this.u=b;this.w=c;this.A=d};
vX=function(){this.o=new Map;if(g.Eo("c3_client_side_screens")){var a=ds(49980),b=ds(49981);g.Ia("historyVes",{backButtonVe:a,forwardButtonVe:b},void 0);uX(this,a);uX(this,b)}};
wX=function(){vX.o||(vX.o=new vX);return vX.o};
yX=function(a,b){xX(a,g.cs(b))};
uX=function(a,b){a.o.set(b,void 0);"UNDEFINED_CSN"===g.ks(void 0)||xX(a,b)};
xX=function(a,b){var c=g.ks(void 0),d=g.is(void 0);c&&d&&g.As(a.client,c,d,[b])};
zX=function(a,b,c,d,e){g.O.call(this);this.u=a;this.w=b;this.B=c;this.o=d;this.A=e;Pma(this)};
Qma=function(a,b){var c=null,d={isEmpty:!0,dy:!1,Ug:[]};try{c=JSON.parse(b.response)}catch(f){return b.response&&(c=b.response,c.startsWith("GIF89")||(f.params=c.substr(0,256),g.No(f))),d}if(!c)return d;g.P(a.w.M().experiments,"html5_enable_visual_element_logging_for_deferred_ads")&&c&&c.trackingParams&&yX(wX(),c.trackingParams);if(c&&c.adThrottled)return d.dy=!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(g.db(c))return d;if(0<a.o.xb().end){var e=a.o.xb().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.Ug=c;
d.isEmpty=!1;return d};
Pma=function(a){[a.o.R,a.o.xb()].filter(function(b){return null!=b}).forEach(function(b){pX(a.u,b,a)});
Br("ADS_CLIENT_EVENT_TYPE_ADPLACEMENT_SCHEDULED")};
AX=function(a,b,c){g.R.call(this,a);this.N=b;this.A=c;this.B=Rma(this)};
BX=function(a,b){b=void 0===b?null:b;a.ea();if(b){var c=a.B;b.forEach(function(d){return a.A.executeCommand(d,c)})}};
Rma=function(a){var b=a.N;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.G)().toString()});
c.LACT=a(function(){return iq().toString()});
c.VIS=a(function(){return b.getVisibilityState().toString()});
c.VOL=a(function(){return b.getVolume().toString()});
return c}return{}};
CX=function(a){g.A.call(this);this.G=a};
DX=function(a){CX.call(this,!0);this.o=a};
EX=function(a,b){function c(f){return{toString:f}}
var d={},e=a.getVideoData(1);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.ga});
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 iq().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
FX=function(a,b){g.A.call(this);var c=this;this.w=[];this.F=!1;this.u=0;this.B=this.C=this.A=!1;this.P=null;var d=(0,g.x)(a,b);this.o=new g.H(function(){return d(c.P)},300);
g.C(this,this.o);this.I=this.G=Infinity};
GX=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.w.includes(d.identifier))return!0}return!1};
Z=function(a,b,c,d,e){e=void 0===e?null:e;g.Uu.call(this,c);this.api=a;this.ra=b;this.macros={};this.componentType=d;this.F=null;this.ya=e;this.da=null;this.Aa=new DX(this.element);g.C(this,this.Aa);this.ua=this.K(this.element,"click",this.onClick);this.U=[];this.R=new FX(this.onClick,this);g.C(this,this.R);this.Ha=!1;this.G=null};
HX=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.No(Error("Got null or undefined adText object")),"";var c=g.hd(a.text);if(!a.isTemplated)return c;if(null==b)return g.No(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};
IX=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.db(a.thumbnails)||null==a.thumbnails[0].url)?"":g.hd(a.thumbnails[0].url)};
Sma=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.db(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.Vd(0,0):new g.Vd(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
JX=function(a,b,c){g.mL(a.api,b,a);g.nL(a.api,b,c)};
KX=function(a,b,c){g.qL(a.api,b)&&g.pL(a.api,b,c)};
LX=function(a,b){b=void 0===b?null:b;var c=a.api.M();!(0<a.U.length)&&c.o&&g.P(a.api.M().experiments,"use_touch_events_for_bulleit_mweb")&&(My?0:"ontouchstart"in document.documentElement&&(nh()||mh()))&&(a.Za(a.ua),b&&a.Za(b),a.U=[a.K(a.element,"touchstart",a.pJ,a),a.K(a.element,"touchmove",a.oJ,a),a.K(a.element,"touchend",a.nJ,a)])};
MX=function(){g.A.call(this);var a=this;this.o=new Map;this.u=g.Up(document.body,"click",function(b){if(b.target&&(b=a.o.get(b.target))&&b)for(var c=0;c<b.length;c++)g.jr(b[c],void 0,void 0)},"ytp-ad-has-logging-urls")};
OX=function(){null==NX&&(NX=new MX);return NX};
QX=function(a,b){if(a.simpleText){a:{var c=a.simpleText;if(b){var d=PX(c);if(d){c=g.qe("SPAN",null,d);break a}}c=g.se(c)}return c}c=[];if(a.runs)for(d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(Tma(e,b))}return 1==c.length?c[0]:g.qe("SPAN",null,c)};
Tma=function(a,b){var c=null,d=a.text;b&&(d=PX(d)||d);a.bold&&(c=g.qe("B",null,c||d));a.italics&&(c=g.qe("I",null,c||d));a.strikethrough&&(c=g.qe("STRIKE",null,c||d));if(a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint){var e=a.navigationEndpoint.urlEndpoint;c=g.qe("A",null,c||d);g.$c(c,e.url);"TARGET_NEW_WINDOW"==e.target&&(c.target="_blank");if(e=a.navigationEndpoint.loggingUrls)e=e.map(function(f){return f.baseUrl}),OX().register(c,e),g.J(c,"ytp-ad-has-logging-urls")}return c||g.qe("SPAN",
null,d)};
PX=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.qe("BR")),b.push(a[c]);return b}return null};
RX=function(a){CX.call(this,a);this.C=new g.O;g.C(this,this.C)};
SX=function(a,b,c){g.A.call(this);this.o=a;this.A=b;this.view=c();g.C(this,this.view);this.P=null;this.I=[];this.macros={};this.R=!1;this.hide()};
UX=function(a,b){var c=TX(a);b.forEach(function(d){return a.A.executeCommand(d,c)})};
TX=function(a){for(var b={},c=g.q(Object.entries(EX(a.o,a.A))),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};
VX=function(a){g.O.call(this);this.A=a;this.u=new g.R({D:"div",H:"ytp-ad-info-dialog-confirm-container",J:[{D:"button",H:"ytp-ad-info-dialog-confirm-button",W:"{{content}}"}]});g.C(this,this.u);this.u.hide();this.w=new g.R({D:"div",H:"ytp-ad-info-dialog-title",W:"{{content}}"});g.C(this,this.w);this.w.hide();this.o=new g.R({D:"div",H:"ytp-ad-info-dialog-relative-container",J:[{D:"div",H:"ytp-ad-info-dialog-form",J:[this.w,{D:"ul",H:"ytp-ad-info-dialog-ad-reasons"},{D:"div",H:"ytp-ad-info-dialog-message",
W:"{{content}}"},this.u]}]});g.C(this,this.o);this.o.hide();this.B=new g.Nr(this);g.C(this,this.B)};
WX=function(a){return a.o.o["ytp-ad-info-dialog-ad-reasons"]};
XX=function(a){return a?QX(a):null};
YX=function(a){RX.call(this,!1);var b=this;this.o=new VX(a.ib());g.C(this,this.o);a={};for(var c=g.q(Object.values(Uma)),d=c.next();!d.done;a={Tm:a.Tm},d=c.next())a.Tm=d.value,this.o.subscribe(a.Tm,function(e){return function(){return b.dispatchEvent({type:e.Tm})}}(a))};
ZX=function(a,b,c){SX.call(this,a,b,function(){return new Vma.aD(c)});
this.w=new g.Nr(this);g.C(this,this.w);this.u=null;Wma(this)};
Wma=function(a){function b(e){return a.onClick(e)}
for(var c=g.q(Xma),d=c.next();!d.done;d=c.next())a.w.K(a.view,d.value,b)};
$X=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-out-of-player-ad-info",J:[{D:"div",H:"ytp-out-of-player-hover-container"},{D:"div",H:"ytp-out-of-player-ad-info-button-container",J:[{D:"button",Y:["ytp-out-of-player-ad-info-button"],J:[{D:"span",H:"ad-info-icon"}]}]}]},"watch-ad-info-hover-button");this.u=this.o["ytp-out-of-player-hover-container"];this.B=this.o["ytp-out-of-player-ad-info-button-container"];this.C=this.o["ytp-out-of-player-ad-info-button"];this.w=new ZX(this.api,this.ra,new DX(this.B));
g.C(this,this.w);this.A=new g.Nr(this);g.C(this,this.A);this.ks();(new DX(this.element)).append(this.w.view);this.A.K(this.C,"mouseenter",this.eH);this.A.K(this.C,"mouseleave",this.ks);this.A.K(this.B,"click",this.dH);this.hide()};
aY=function(a,b,c){AX.call(this,{D:"div",H:"videowall-companion-container",J:[{D:"iframe",H:"videowall-companion",O:{marginwidth:"0",marginheight:"0",hspace:"0",vspace:"0",frameborder:"0",scrolling:"no",src:c.iframeUrl}}]},a,b);var d=this;this.w=c;var e=this.o["videowall-companion"];g.Rh(e,c.iframeWidth||300,c.iframeHeight||250);this.u=new $X(a,b);g.C(this,this.u);this.u.ca(this.element,0);this.w.adInfoRenderer&&this.w.adInfoRenderer.adHoverTextButtonRenderer?this.u.init(VT("watch-ad-info-hover-button"),
this.w.adInfoRenderer.adHoverTextButtonRenderer,{}):g.M(Error("VideowallIframeCompanionAdRenderer has no ad info renderer."));e&&this.K(e,"load",function(){BX(d,c.impressionCommands);var f=Yma(e);f&&d.K(f,"click",function(k){d.ea();g.Ae(d.u.element,k.target)||(BX(d,d.w.onClickCommands),d.N.onAdUxClicked("videowall-companion"))})})};
Yma=function(a){try{var b=a.contentDocument||a.contentWindow.document;return b&&b.body}catch(c){return g.M(c),null}};
bY=function(){aX.apply(this,arguments)};
cY=function(a){return a.length?(0,g.Fc)(a[0].loggingUrls||[],function(b){return b.baseUrl}):[]};
dY=function(a,b,c,d,e,f,k){Y.call(this,b,d.o,e,f,k);this.P=c;this.B=d;this.u=d.o;this.I=a;this.A=this.C=null;a=this.B.xb();a.visible=!1;pX(this.I,a,this);Br("ADS_CLIENT_EVENT_TYPE_ADPLACEMENT_SCHEDULED")};
fY=function(a,b,c,d,e,f,k,l){lX.call(this,a,b,c,d,e,f,k,l);this.A=d.o;this.C=-1;this.G=this.w=null;this.I=eY(this.Wn())};
gY=function(a){a.C++;var b=a.Wn();b?a.dc(b):a.dh()};
eY=function(a){return a?Zma.some(function(b){return a instanceof b}):!1};
$ma=function(a){this.o=new tX(function(b){b=new lX(a.xc,a.N,a.Dw(),b,a.Le,a.qj,a.Tg,a.wb);qX(b);return b},function(b){return new zX(a.xc,a.N,a.Jq,b,a.Le)},function(b){var c=a.Km(b.o);
b=new dY(a.xc,a.N,a.eE,b,a.GO,c,a.Wc);g.C(b,c);return b},function(b){b=new fY(a.xc,a.N,a.Dw(),b,a.Le,a.qj,a.Tg,a.wb);
qX(b);return b})};
hY=function(a,b,c,d){d=ana(c,d);var e={D:"div"};d&&(e={D:"div",H:"image-companion",J:[{D:"img",O:{src:d.url,border:"0",style:"cursor:pointer;"}}]});AX.call(this,e,a,b);this.u=c;this.w=new $X(a,b);g.C(this,this.w);this.w.ca(this.element,0);this.u.adInfoRenderer&&this.u.adInfoRenderer.adHoverTextButtonRenderer?this.w.init(VT("watch-ad-info-hover-button"),this.u.adInfoRenderer.adHoverTextButtonRenderer,{}):g.M(Error("ImageCompanionAdRenderer has no ad info renderer."));if(a=this.o["image-companion"])void 0!==
d.width&&void 0!==d.height&&g.Rh(a,d.width,d.height),this.ka("click",this.C,this),BX(this,c.impressionCommands)};
ana=function(a,b){if(!a.image||!a.image.thumbnail)return null;var c=a.image.thumbnail;return null==c.thumbnails?null:g.$a(c.thumbnails||[],function(d){return d.width==b.width&&d.height==b.height})};
iY=function(a){aX.call(this,a);this.u=(0,g.Fc)((a.image&&a.image.thumbnail?a.image.thumbnail.thumbnails:null)||[],function(b){return new g.Vd(b.width,b.height)})};
jY=function(a,b){BU.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Yq("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),CU(this,new LV(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),CU(this,e),c.push(e.u)):e.adActionInterstitialRenderer?(e=new FV(e.adActionInterstitialRenderer),CU(this,e)):e.adIntroRenderer&&(e=new KV(e.adIntroRenderer),
CU(this,e),this.u=1),this.o.filter(function(f){return f instanceof xU}).forEach(function(f,k){if(f instanceof xU){var l=new vU(k,c);
f.A=l}})};
kY=function(a,b){BU.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),CU(this,e),c.push(e.u));this.o.forEach(function(f,k){if(f instanceof xU){var l=new vU(k,c);f.A=l}})}};
lY=function(a,b){BU.call(this);var c=a.persistingOverlay;this.w=c&&c.persistingAdOverlayRenderer?new PV(c.persistingAdOverlayRenderer):null;CU(this,bna(this,a.adVideoStart));a:{if(c=a.linearAd){if(c.instreamVideoAdRenderer){c=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){c=new HU(c.instreamSurveyAdRenderer);break a}}c=null}CU(this,c);(c=a.adVideoEnd)?c.adActionInterstitialRenderer?(this.u=1,c=new FV(c.adActionInterstitialRenderer)):c=null:c=null;CU(this,c)};
bna=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.u=1,new FV(b.adActionInterstitialRenderer)):b.adTextInterstitialRenderer?new TV(b.adTextInterstitialRenderer):b.adMessageRenderer?(g.Yq("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new LV(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new SV(b.surveyTextInterstitialRenderer):null};
mY=function(a,b){this.u=a;this.o=b};
cna=function(a){var b=new YU(a.gE),c=new gU(b);return{KE:function(){return b},
Or:function(){return c}}};
nY=function(a,b){this.u=a;this.o=b};
oY=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,k=e?a.u.create(e,f):null;return new IU(b,c,k,d)}catch(l){g.M(l)}};
dna=function(a){var b=new nY(a.LD,a.Kb);return{Ww:function(){return b}}};
pY=function(a){g.A.call(this);this.o=a;this.w=new nma(a.N);this.u=new ZU(a.N);g.C(this,this.u)};
ena=function(a){return function(){return new eX(a.o.N)}};
qY=function(a){return function(b,c){return new eV(b,a.w,c,a.o.N,a.u,a.o.Hh,a.o.wb)}};
rY=function(a){g.A.call(this);var b=this;this.u=a;this.o=null;g.Je(this,function(){return b.o=null});
var c=Mr(a);if(c){var d=function(){b.o&&b.o(!!Kr())};
this.u.addEventListener(c,d);g.Je(this,function(){b.u.removeEventListener(c,d)})}};
sY=function(a){g.A.call(this);this.o=a};
fna=function(a){var b=window.document;return g.oz(a.M())?new rY(b):new sY(a)};
tY=function(a){g.A.call(this);this.o=new Gma(a.N,a.contentCpn,a.wb)};
uY=function(a){this.u=a;this.o=-1};
vY=function(a){g.P(a.u.M().experiments,"stop_use_time_since_last_ad_service")||(a.o=(0,g.G)()/1E3,g.jr(a.u.M().G+"mac_204?action_fcts=1"))};
wY=function(a){return g.P(a.u.M().experiments,"stop_use_time_since_last_ad_service")?0:0<a.o?Math.ceil((0,g.G)()/1E3-a.o):0};
yY=function(a){xY=a&&a.data};
AY=function(a){zY=a&&a.data};
CY=function(a){BY=a&&a.data};
EY=function(a){DY=a&&a.data};
FY=function(){DY=BY=xY=null};
GY=function(a){a.addEventListener("updateKevlarOrC3Companion",yY);a.addEventListener("onPlaShelfInfoCardsReady",AY);a.addEventListener("updateEngagementPanelAction",CY);a.addEventListener("changeEngagementPanelVisibility",EY);window.addEventListener("yt-navigate-start",FY)};
JY=function(a,b,c,d){g.O.call(this);var e=this;this.o=a;this.ga=null;this.Ma=b;this.oa=d.QD;this.Ia=d.MD;this.F=d.Kb;b=this.o.getVideoData(1).getPlayerResponse()||{};this.w=!HY(this.F)&&b.playerConfig&&b.playerConfig.daiConfig&&b.playerConfig.daiConfig.enableDai||!1;this.Ca=ama({hF:3E4,ZF:bV(a),N:a}).PE();this.A=null;this.R=uaa(function(){e.o.ea()||g.gL(e.o,"ad",1)});
this.u=null;this.C=new Map;b=this.o.M().experiments;var f=cna({gE:a.getVideoData(1)}),k=new pY({Hh:f.Or(),N:a,wb:this.w});g.C(this,k);this.G=new Set;this.Z=-1;this.aa=[];this.I=null;this.L=new Map;this.ba=c;this.U=new Set;this.B=new g.Nr(this);g.C(this,this.B);this.P=new g.Nr(this);g.C(this,this.P);this.ha=this.Aa=this.da=!1;this.V=g.oz(a.M());c=new lU({experiments:b,ND:this,OD:this.Ia,PD:f.KE(),RD:this,aE:this,FJ:this,Hh:f.Or(),N:this.o,Kb:this.F});g.C(this,c);this.Sa=c.u;c=new tY({contentCpn:IY(this).clientPlaybackNonce,
nT:this,wb:this.w,N:this.o});g.C(this,c);this.Ha=c.o;c=new Fma({nE:this});this.ua=c.o;this.ya=c.u;var l=Wb(RU(MU(this.o)));d=new Ema({ra:this,dE:k.u,Wc:WU(),Hh:f.Or(),N:this.o,QN:l,Km:qY(k),wb:this.w,zg:d.zg,Kb:this.F});this.Pa=(new $ma({Jq:this.Ma,Tg:d.o,xc:this,eE:this.Ca,Wc:WU(),Dw:ena(k),Le:this.Ha,qj:this.ya,N:this.o,GO:l,Km:function(m){return qY(k)(m,l)},
wb:this.w})).o;this.ma=dna({LD:new mY(new bma(a),b),Kb:this.F}).Ww();this.za=fna(this.o);g.C(this,this.za);this.Ua=g.uz(this.o.M())?g.P(this.o.M().experiments,"align_ad_to_video_player_lifecycle_for_bulleit_living_room"):g.P(this.o.M().experiments,"align_ad_to_video_player_lifecycle_for_bulleit")};
gna=function(a){return a&&a.adPlacements?a.adPlacements.map(function(b){return b.adPlacementRenderer}).filter(function(b){return b&&null!=b.renderer}):[]};
KY=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.w&&g.oz(a.o.M())&&IY(a).Df()||(a.I=c),!1):!0})};
LY=function(a,b){a.L=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.L.set(c.elementId,c),!1):!0})};
hna=function(a,b){return b.every(function(c){c=a.C.get(c);return null==c?(g.M(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof zX?!1:c instanceof lX?!c.Ni():!0})};
NY=function(a){var b=ina(a);if(0<b.length){hna(a,b)&&a.R();var c=g.Q(a.o.M().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.V&&g.cz(a.o.M())?(c=new g.H(function(){MY(a,b)},c),g.C(a,c),c.start()):g.xf(function(){MY(a,b)})}else a.R()};
jna=function(a,b){if(!b)return{};var c=!!a.u&&a.u||null;c?(c=c.u,c=c.F.Fl()?rV(c.o,b):{}):c={};return c};
ina=function(a){for(var b=[],c=g.q(a.G),d=c.next();!d.done;d=c.next())d=d.value,ST(d)&&b.push(d);c=g.q(b);for(d=c.next();!d.done;d=c.next())a.G["delete"](d.value);return b};
lna=function(a,b,c){c=void 0===c?null:c;b=a.ma.create(b,kna(a),a.aa.length,c);a.aa=a.aa.concat(b);return b};
MY=function(a,b){if(!a.ea())for(var c=g.q(b),d=c.next();!d.done;d=c.next())a.Zl(d.value)};
OY=function(a,b,c){c=void 0===c?null:c;mna(b);b=lna(a,b,c);return 0==b.length?null:b.map(function(d){return a.Pa.create(d)})};
RY=function(a,b){b.Lj()?(g.Ke(a.A),a.A=b):((b.uh()||b.dm())&&a.A&&a.A.xb().start<b.xb().start&&PY(a),b.by()&&QY(a,b))};
PY=function(a){var b=a.Ca;if(b.o)b.o&&Yla(b.o);else{var c=b.u.getVideoData(1);b.u.na("updateKevlarOrC3Companion",{contentVideoId:c&&c.videoId})}g.Ke(a.A);a.A=null};
QY=function(a,b){a.u&&SY(a,a.w);a.u=b;b.Ni()&&TY(a)};
TY=function(a){a.da||(a.P.K(a.o,"presentingplayerstatechange",a.FI),a.P.K(a.o,"internalAbandon",a.KJ),a.P.K(a.o,"progresssync",a.yN),a.P.K(a.o,"onVolumeChange",a.zN),a.P.K(a.za,"fullscreentoggled",a.DI),a.da=!0);g.J(a.o.getRootNode(),"ad-showing");a.w||(g.J(a.o.getRootNode(),"ad-interrupting"),g.P(a.o.M().experiments,"enable_html5_teal_ad_badge")&&bV(a.o)&&g.J(a.o.getRootNode(),"ad-teal-design"),g.cM(a.o.app,2))};
SY=function(a,b,c){var d=!!a.u&&a.u||null,e=d&&d.Ni()&&($U(a.o)||a.w);d=b&&d&&d.reset()||null;a.u&&UY(a,a.u);a.u=null;a.Z=-1;e&&nna(a,c);a.ha||a.R();b&&d&&(d.xb().o=!1,qX(d,!0))};
nna=function(a,b){g.Pr(a.P);a.da=!1;g.Ln(a.o.getRootNode(),"ad-showing");a.w||(a.Ua?(a.ha||a.R(),ona(a),a.o.cueVideoByPlayerVars({},2)):(a.o.cueVideoByPlayerVars({},2),ona(a)),g.Ln(a.o.getRootNode(),"ad-interrupting"),g.P(a.o.M().experiments,"enable_html5_teal_ad_badge")&&g.Ln(a.o.getRootNode(),"ad-teal-design"));b&&b(a.o)};
ona=function(a){if(a.Aa)!a.V&&g.cz(a.o.M())&&(g.P(a.o.M().experiments,"release_player_on_abandon_for_bulleit_living_room")||g.P(a.o.M().experiments,"release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&g.tL(a.o,2);else if(g.tL(a.o,2),!a.V){var b=g.QK(a.o,1);g.V(b,4)&&!g.V(b,2)&&a.o.playVideo()}};
pX=function(a,b,c){if(b instanceof RT){if(a.V&&TT(b)&&g.V(g.QK(a.o,1),64)&&!a.w){var d=VY(a);d!=b.start&&b.contains(d)&&(b.o=!0)}a.C.has(b)?g.M(Error(b.toString()+" has already been seen")):(a.G.add(b),a.C.set(b,c),ST(b)||g.fL(a.o,[b],1))}else g.M(Error("Should use AdCueRange instead of CueRange"))};
kna=function(a){var b=1E3*a.o.getDuration(1);return new QT(b,VY(a),g.P(a.o.M().experiments,"enable_upg_processed_dvr_dai")?a.w:IY(a).Df())};
VY=function(a){return 1E3*a.o.getCurrentTime(g.P(a.o.M().experiments,"bulleit_explicitly_use_content_video_ms_for_cue_range")?1:void 0)||0};
jX=function(a,b,c){g.yT(a.o.app,b,c);b=g.q(b);for(c=b.next();!c.done;c=b.next())c=c.value,a.G["delete"](c),a.C["delete"](c)};
IY=function(a){return a.o.getVideoData(1)};
UY=function(a,b){for(var c=a.C,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.Ke(b)};
WY=function(a,b){var c=a.o.app;1==b&&(c.P.tick("vr"),c.Aa||(c.Aa=xs(OA,c.lA,c)),sK(c.C),kC(c.P,c.C.getVideoData(),zT(c)));var d=c.o;(g.uz(d)&&d.w||g.dz(d))&&(c.Mb()||c.u.na("onAdStateChange",b));switch(b){case 1:a.Z=1;break;case 0:a.Z=0}};
sW=function(a,b){if(a.u){var c=a.u;c.u&&(c=c.u,c.G&&kV(c.o,b,c.getDuration()))}};
mna=function(a){for(var b=0;b<a.length;b++)Br("ADS_CLIENT_EVENT_TYPE_ADPLACEMENTRENDERER_RECEIVED")};
XY=function(a){return a&&a.thumbnails&&!g.db(a.thumbnails||null)&&a.thumbnails[0].url?g.hd(a.thumbnails[0].url):""};
YY=function(a,b,c,d){d=void 0===d?!1:d;Z.call(this,a,b,{D:"img",H:"ytp-ad-image"},"ad-image",void 0===c?null:c);this.u=d;this.hide()};
ZY=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{D:"svg",O:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},J:[{D:"path",O:{d:"M0 0h48v48H0z",fill:"none"}},{D:"path",O:{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.X?{D:"div",Y:["ytp-icon","ytp-icon-check-box"]}:{D:"svg",O:{height:"100%",viewBox:"0 0 24 24",width:"100%"},
J:[{D:"path",O:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",O:{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.X?{D:"div",Y:["ytp-icon","ytp-icon-check-box-outline-blank"]}:{D:"svg",O:{height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{D:"path",O:{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"}},
{D:"path",O:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.fN();case "INFO_OUTLINE":return jN();case "REMOVE_CIRCLE":return{D:"svg",O:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},J:[{D:"path",O:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",O:{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 nN();case "LIKE":return g.kN();case "DISLIKE":return hN();default:return g.ar(new Zq("Unexpected icon:",
a)),null}};
$Y=function(a,b,c,d,e,f){c=void 0===c?[]:c;e=void 0===e?!1:e;c={D:"button",Y:["ytp-ad-button"].concat(c)};null!=f&&(c.O={tabindex:f});Z.call(this,a,b,c,void 0===d?"button":d);this.u=this.w=this.B=null;this.C=e;this.hide()};
pna=function(a){var b=null;null!=a.u&&(b=[a.u.serviceEndpoint,a.u.navigationEndpoint].filter(function(c){return null!=c}),a.u.command&&(b=b.concat(a.u.command)));
return b||[]};
aZ=function(a,b,c,d,e){Z.call(this,a,b,c,d);this.u=e;g.C(this,this.u);this.Z=this.B=-1};
bZ=function(a){a.u&&-1===a.B&&(a.B=a.u.subscribe("b",a.Jh,a),a.Z=a.u.subscribe("a",a.Vi,a),a.Jh())};
cZ=function(a){null!=a.u&&-1!==a.B&&(a.u.Dh(a.B),a.u.Dh(a.Z),a.Z=-1,a.B=-1)};
dZ=function(a,b,c,d){d=void 0===d?!1:d;aZ.call(this,a,b,{D:"div",H:"ytp-ad-timed-pie-countdown-container",J:[{D:"svg",H:"ytp-ad-timed-pie-countdown",O:{viewBox:"0 0 20 20"},J:[{D:"circle",H:"ytp-ad-timed-pie-countdown-background",O:{r:10,cx:"10",cy:"10"}},{D:"circle",H:"ytp-ad-timed-pie-countdown-inner",O:{r:5,cx:"10",cy:"10"}},{D:"circle",H:"ytp-ad-timed-pie-countdown-outer",O:{r:10,cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c);this.A=this.o["ytp-ad-timed-pie-countdown-inner"];this.w=Math.ceil(10*
Math.PI);this.C=d;this.hide()};
eZ=function(a,b,c,d){Z.call(this,a,b,{D:"div",H:"ytp-ad-text"},void 0===d?"ad-text":d,void 0===c?null:c);this.u=null;this.hide()};
fZ=function(a,b){b&&g.Be(a.element,HX(a.u,b))};
gZ=function(a,b,c,d){aZ.call(this,a,b,{D:"div",H:"ytp-ad-preview-slot"},"ad-preview",c);var e=this;this.ga=-1;this.w=new g.Uu({D:"span",H:"ytp-ad-preview-container"});g.C(this,this.w);this.A=new eZ(this.api,this.ra,"ytp-ad-preview-text");g.C(this,this.A);this.A.ca(this.w.element);this.I=new g.Uu({D:"span",H:"ytp-ad-preview-image"});g.C(this,this.I);this.C=new YY(this.api,this.ra);g.C(this,this.C);this.C.ca(this.I.element);this.I.ca(this.w.element);this.w.ca(this.element);this.L=new g.LN(this.w,400,
!1,100,function(){return e.hide()});
g.C(this,this.L);this.V=0;this.ba=!1;this.ma=d;this.hide()};
hZ=function(a){a.L.show(100);a.show()};
iZ=function(a,b,c,d,e){e=void 0===e?0:e;g.A.call(this);this.w=a;this.u=!1;this.I=d;this.C=!1;this.o=null;0<b&&(this.o=new g.H(this.Zv,b,this),g.C(this,this.o));this.A=new g.H(this.Zv,c,this);g.C(this,this.A);this.G=Pn(this.w,e,1,d);g.C(this,this.G);this.F=Pn(this.w,0,d,1);g.C(this,this.F);this.B=new g.Nr;g.C(this,this.B)};
rna=function(){this.o=qna};
sna=function(){this.o=new rna};
una=function(a,b,c,d){d=void 0===d?0:d;var e=!1;Xda({measure:function(){if(!e){var f=[];b.hidden&&f.push("hidden");"none"===Ch(b,"display")&&f.push("display:none");var k=Ch(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"===Ch(l,"opacity")){f.push("opacity:0@level"+k);break}if(g.Jn(l,"video-ads")||g.Jn(l,"ytp-ad-module"))break;k+=1;l=l.parentElement}if(0<f.length&&(k=d,f=f.join(","),
a.o.o().o.w("/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={},t=g.q(k),u=t.next();!u.done;u=t.next())u=u.value,m.hasAttribute(u)&&(p[u]=m.getAttribute(u));g.Pb(p)||(n.attributes=p);l.push(n);m=m.parentElement}k=tna(l);g.M(Error("vis_check_error_reason: "+f+", dump: "+k))}}}})();
return function(){return e=!0}};
tna=function(a){return JSON.stringify(a.map(function(b){var c=[b.tagName];b.attributes&&c.push(b.attributes);return c}))};
wna=function(a,b,c){c=void 0===c?0:c;return una(vna(),a,b,c)};
jZ=function(a,b,c){aZ.call(this,a,b,{D:"div",H:"ytp-ad-skip-button-slot"},"skip-button",c);var d=this;this.I=null;this.ga=!1;this.A=new g.Uu({D:"span",Y:["ytp-ad-skip-button-container"]});g.C(this,this.A);this.A.ca(this.element);this.w=this.C=null;this.ma=new g.LN(this.A,500,!1,100,function(){return d.hide()});
g.C(this,this.ma);this.V=new iZ(this.A.element,15E3,5E3,.5,.5);g.C(this,this.V);this.ba=new g.H(function(){var e=d.api.M().experiments;g.P(e,"enable_visibility_check_for_skip_button_in_bulleit")&&(d.L=wna(d.w.element,"skip-button-ad-text",g.Q(e,"visibility_error_html_dump_sample_rate")))},3E3);
g.C(this,this.ba);this.L=null;this.hide()};
xna=function(a){a=a.I&&a.I.adRendererCommands;return(a&&a.clickCommand&&a.clickCommand.commandExecutorCommand&&a.clickCommand.commandExecutorCommand.commands||[]).some(function(b){return b.adLifecycleCommand||b.adPlayerControlsCommand})};
kZ=function(a,b){g.O.call(this);this.B=b;this.C=new g.Nr(this);g.C(this,this.C);this.u=a;this.Fa=new g.Wf(100);g.C(this,this.Fa);this.C.K(this.Fa,"tick",this.lJ);this.A={seekableStart:0,seekableEnd:a/1E3,current:0};this.w=!1;this.o=0;this.start()};
lZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-action-interstitial",O:{tabindex:"0"},J:[{D:"div",H:"ytp-ad-action-interstitial-background-container"},{D:"div",H:"ytp-ad-action-interstitial-slot",J:[{D:"div",H:"ytp-ad-action-interstitial-card",J:[{D:"div",H:"ytp-ad-action-interstitial-image-container"},{D:"div",H:"ytp-ad-action-interstitial-headline-container"},{D:"div",H:"ytp-ad-action-interstitial-description-container"},{D:"div",H:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial");this.oa=this.o["ytp-ad-action-interstitial-image-container"];this.I=new YY(this.api,this.ra,"ytp-ad-action-interstitial-image");g.C(this,this.I);this.I.ca(this.oa);this.ma=this.o["ytp-ad-action-interstitial-headline-container"];this.Z=new eZ(this.api,this.ra,"ytp-ad-action-interstitial-headline");g.C(this,this.Z);this.Z.ca(this.ma);this.ga=this.o["ytp-ad-action-interstitial-description-container"];this.V=new eZ(this.api,this.ra,"ytp-ad-action-interstitial-description");g.C(this,
this.V);this.V.ca(this.ga);this.Ca=this.o["ytp-ad-action-interstitial-background-container"];this.L=new YY(this.api,this.ra,"ytp-ad-action-interstitial-background",!0);g.C(this,this.L);this.L.ca(this.Ca);this.za=this.o["ytp-ad-action-interstitial-action-button-container"];this.w=this.B=this.A=this.u=null;this.C=new g.Nr;g.C(this,this.C);this.ba=null;this.hide()};
yna=function(a){var b=g.fe("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
mZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-choice-interstitial",J:[{D:"div",H:"ytp-ad-choice-interstitial-main-content",J:[{D:"div",H:"ytp-ad-choice-interstitial-head-title"},{D:"div",H:"ytp-ad-choice-interstitial-button-container"}]}]},"ad-choice-interstitial");this.B=this.A=this.u=this.w=null;this.C=new g.LN(this,0,!1,0);g.C(this,this.C);this.hide()};
zna=function(a,b){var c=XY(b)||"";g.hc(c)?g.No(Error("Found ThumbnailDetails without valid image URL")):g.xh(a,"backgroundImage","url("+c+")")};
Ana=function(a){switch(a){case 0:case 1:return a;default:return g.M(Error("AdChoiceInterstitialRenderer received an invalid value for default button choice index (i.e., not 0 or 1): "+a)),1}};
Cna=function(a,b,c,d){if(2!==b.length)return!1;a.u=Bna(a,b[0],c,0===d);a.u.show();a.A=Bna(a,b[1],c,1===d);a.A.show();return!0};
Bna=function(a,b,c,d){var e=a.o["ytp-ad-choice-interstitial-button-container"],f=d?1:2,k=["ytp-ad-choice-interstitial-button"],l=g.P(a.api.M().experiments,"self_podding_highlighted_button_blue")?"ytp-ad-choice-interstitial-button-highlight-blue":"ytp-ad-choice-interstitial-button-highlight",m=g.P(a.api.M().experiments,"self_podding_highlight_non_default_button");d&&k.push("ytp-ad-choice-interstitial-button-default");d===!m&&k.push(l);d=new $Y(a.api,a.ra,k,"button",!1,f);g.C(a,d);d.init(VT("button"),
b,a.macros);d.ca(e);d.element.style.width=8*c+32+"px";return d};
Dna=function(a,b){var c=8*b+32,d=a.o["ytp-ad-choice-interstitial-button-container"];190<c?(d.classList.add("ytp-ad-choice-interstitial-button-container-stacked"),d.style.width=c+"px"):(d.classList.remove("ytp-ad-choice-interstitial-button-container-stacked"),d.style.width="")};
Ena=function(a,b,c,d){a.w=new kZ(d);a.w.subscribe("a",function(){a.C.hide();for(var e=g.q(b),f=e.next();!f.done;f=e.next())a.ra.executeCommand(f.value,c)});
g.C(a,a.w)};
Fna=function(a,b,c){var d=a.o["ytp-ad-choice-interstitial"];a.B=new dZ(a.api,a.ra,a.w,!0);g.C(a,a.B);a.B.init(VT("timed-pie-countdown"),b,c);a.B.ca(d)};
nZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-text-interstitial"},"ad-text-interstitial");this.w=this.o["ytp-ad-text-interstitial"];this.u=new eZ(this.api,this.ra,"ytp-ad-text-interstitial-message");g.C(this,this.u);this.u.ca(this.w);this.hide()};
Gna=function(a){var b=g.fe("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
oZ=function(a,b,c,d,e,f){d=void 0===d?!1:d;e=void 0===e?[]:e;Z.call(this,a,b,{D:"span",Y:["ytp-ad-hover-text-button"].concat(e)},void 0===f?"ad-hover-text-button":f);this.button=this.w=null;this.C=d;this.B=c;this.hide()};
pZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-feedback-dialog-background",J:[{D:"div",H:"ytp-ad-feedback-dialog-container",J:[{D:"div",H:"ytp-ad-feedback-dialog-form",O:{role:"dialog",tabindex:"-1"},J:[{D:"div",H:"ytp-ad-feedback-dialog-title",J:[{D:"span",W:"{{title}}"}]},{D:"span",H:"ytp-ad-info-dialog-feedback-options-title",W:"{{reasonsTitle}}"},{D:"div",H:"ytp-ad-info-dialog-feedback-options"},{D:"div",H:"ytp-ad-feedback-dialog-confirm-container",J:[{D:"button",H:"ytp-ad-feedback-dialog-cancel-button",
W:"{{cancelLabel}}"},{D:"button",H:"ytp-ad-feedback-dialog-confirm-button",W:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog");this.A=[];this.u=null;this.B=this.o["ytp-ad-feedback-dialog-cancel-button"];this.I=this.o["ytp-ad-feedback-dialog-confirm-button"];this.L=this.o["ytp-ad-info-dialog-feedback-options"];this.V=this.o["ytp-ad-feedback-dialog-title"];this.C=this.w=null;this.hide()};
Kna=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.u=new $Y(a.api,a.ra,["ytp-ad-feedback-dialog-close-button"],"button"),g.C(a,a.u),a.u.init(VT("button"),c,a.macros),a.u.ka("click",a.Nz,a),a.u.ca(a.element));b.title&&(c=g.T(b.title),a.la("title",c));b.reasonsTitle&&(c=g.T(b.reasonsTitle),a.la("reasonsTitle",c));b.reasons&&Hna(a,b.reasons);b.cancelLabel&&(c=g.T(b.cancelLabel),a.la("cancelLabel",c),g.Lp(a.B,"click",function(){return a.Nz()}));
b.confirmLabel&&(c=g.T(b.confirmLabel),a.la("confirmLabel",c),g.Lp(a.I,"click",function(){return Ina(a)}));
b.undoRenderer&&Jna(a,b.undoRenderer)};
Hna=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.No(Error("AdFeedbackReason.reason was not set.")):(e=e.endpoint,null==e?g.No(Error("AdFeedbackReason.endpoint was not set.")):(d=new Lna(d,e),g.C(a,d),a.L.appendChild(d.o.element),a.A.push(d)))}};
Jna=function(a,b){var c=b&&b.buttonRenderer||null;c&&(c.serviceEndpoint?(a.w=new $Y(a.api,a.ra,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.C(a,a.w),a.w.init(VT("ad-feedback-undo-mute-button"),c,a.macros),a.w.ka("click",a.tN,a),a.w.ca(a.V)):g.No(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint.")))};
Ina=function(a){var b=a.A.filter(function(c){return c.isChecked()});
0!==b.length&&(a.ra.executeCommand(b[0].u,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button"),a.S("w"),a.hide())};
Lna=function(a,b){this.u=b;this.o=new g.Uu({D:"label",H:"ytp-ad-feedback-dialog-reason-label",J:[{D:"input",H:"ytp-ad-feedback-dialog-reason-input",O:{type:"radio",name:"feedback-reason-group"}},{D:"span",H:"ytp-ad-feedback-dialog-reason-text",W:g.T(a)}]});this.w=this.o.o["ytp-ad-feedback-dialog-reason-input"]};
qZ=function(a,b,c,d){c=void 0===c?[]:c;d=void 0===d?"confirm-dialog":d;Z.call(this,a,b,{D:"div",Y:["ytp-ad-confirm-dialog-background"],J:[{D:"div",H:"ytp-ad-confirm-dialog-container",J:[{D:"div",Y:["ytp-ad-confirm-dialog"].concat(c),O:{role:"dialog",tabindex:"-1"},J:[{D:"div",H:"ytp-ad-confirm-dialog-title",W:"{{title}}"},{D:"div",H:"ytp-ad-confirm-dialog-messages"},{D:"div",H:"ytp-ad-confirm-dialog-confirm-container",J:[{D:"button",H:"ytp-ad-confirm-dialog-cancel-button",W:"{{cancelLabel}}"},{D:"button",
H:"ytp-ad-confirm-dialog-confirm-button",W:"{{confirmLabel}}"}]}]}]},{D:"button",Y:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],J:[{D:"span",H:"ytp-ad-button-icon",J:[g.fN()]}]}]},d);this.C=this.o["ytp-ad-confirm-dialog-close-overlay-button"];this.B=this.o["ytp-ad-confirm-dialog-cancel-button"];this.L=this.o["ytp-ad-confirm-dialog-confirm-button"];this.I=this.o["ytp-ad-confirm-dialog-messages"];this.A=null;this.u=new g.Nr;g.C(this,this.u);this.w=null;this.hide()};
Mna=function(a,b){if(b.title){var c=g.T(b.title);a.la("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=QX(d.value),a.I.appendChild(d)}b.cancelLabel&&(c=g.T(b.cancelLabel),a.la("cancelLabel",c),a.u.K(a.B,"click",function(e){return a.Qt(e)}));
b.confirmLabel&&(c=g.T(b.confirmLabel),a.la("confirmLabel",c),a.u.K(a.L,"click",function(e){return a.St(e)}));
a.u.K(a.C,"click",function(e){return a.Rt(e)})};
rZ=function(a,b){qZ.call(this,a,b,[],"ad-mute-confirm-dialog")};
sZ=function(a,b,c){Z.call(this,a,b,{D:"div",H:"ytp-ad-info-dialog-background",J:[{D:"div",H:"ytp-ad-info-dialog-container",J:[{D:"div",H:"ytp-ad-info-dialog-form",O:{role:"dialog",tabindex:"-1"},J:[{D:"div",H:"ytp-ad-info-dialog-title",W:"{{title}}"},{D:"ul",H:"ytp-ad-info-dialog-ad-reasons"},{D:"div",H:"ytp-ad-info-dialog-message"},{D:"div",H:"ytp-ad-info-dialog-mute-container"},{D:"div",H:"ytp-ad-info-dialog-confirm-container",J:[{D:"button",H:"ytp-ad-info-dialog-confirm-button",W:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog");this.u=this.w=null;this.I=this.o["ytp-ad-info-dialog-confirm-button"];this.ma=this.o["ytp-ad-info-dialog-mute-container"];this.ga=this.o["ytp-ad-info-dialog-message"];this.V=this.o["ytp-ad-info-dialog-ad-reasons"];this.B=this.A=null;this.ba=c;this.C=null;this.Z=!1;this.L=null;this.hide()};
Nna=function(a){(a.C&&a.C.impressionEndpoints||[]).forEach(function(b){return a.ra.executeCommand(b,a.macros)})};
Ona=function(a,b){var c=b.content&&b.content.adFeedbackRenderer||null;c&&(a.w=new pZ(a.api,a.ra),g.C(a,a.w),a.w.init(VT("ad-feedback-dialog"),c,a.macros),a.w.ca(a.ba),a.w.subscribe("w",function(){return a.S("y")}))};
Pna=function(a,b){var c=b.content&&b.content.confirmDialogRenderer||null;c&&(a.B=new rZ(a.api,a.ra),g.C(a,a.B),a.B.init(VT("ad-mute-confirm-dialog"),c,a.macros),a.B.ca(a.ba),a.B.subscribe("x",function(){return a.S("y")}))};
Qna=function(a){a.u&&a.u.ka("click",a.Oz,a);g.Lp(a.I,"click",function(){return a.Oz()})};
tZ=function(a,b,c,d){oZ.call(this,a,b,void 0===d?!0:d,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.u=null;this.A=c;this.hide()};
Rna=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.M(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.u=new sZ(a.api,a.ra,a.A),g.C(a,a.u),a.u.init(VT("ad-info-dialog"),b,c),a.u.ca(a.A),a.u.subscribe("z",function(){return a.S("B")}),a.u.subscribe("y",function(){return a.S("A")}))};
Sna=function(a,b,c){null==a.button?g.M(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null,null==b?a.w&&g.J(a.w.element,"ytp-ad-info-hover-text-long"):(Rna(a,b,c),a.w&&g.J(a.w.element,"ytp-ad-info-hover-text-short"),a.button.ka("click",function(){a.u&&!a.u.Ga()&&(a.u.show(),a.api.onAdUxClicked("ad-info-icon-button"))})))};
uZ=function(a,b){Z.call(this,a,b,{D:"div",Y:["ytp-ad-player-overlay-flyout-cta","ytp-ad-overlay-as-flyout-cta"],J:[{D:"div",Y:["ytp-flyout-cta","ytp-flyout-cta-inactive"],J:[{D:"div",H:"ytp-flyout-cta-icon-container"},{D:"div",H:"ytp-flyout-cta-body",J:[{D:"div",H:"ytp-flyout-cta-text-container",J:[{D:"div",H:"ytp-flyout-cta-headline-container"},{D:"div",H:"ytp-flyout-cta-description-container"},{D:"div",H:"ytp-flyout-cta-url-container"}]},{D:"div",H:"ytp-flyout-cta-action-container",J:[{D:"div",
H:"ytp-flyout-cta-ad-controls-container",J:[{D:"div",H:"ytp-ad-overlay-ad-info-button-container"},{D:"div",H:"ytp-ad-overlay-close-container",J:[{O:{title:"Close"},D:"button",H:"ytp-ad-overlay-close-button",J:[ZY(Tna)]}]}]},{D:"div",H:"ytp-ad-overlay-as-flyout-cta-action-button-container"}]}]}]}]},"invideo-overlay-as-cta");var c=this;(this.V="tall"===g.Dt(this.api.M().experiments,"render_enhanced_overlays_as_ctas_for_desktop_style"))&&g.J(this.element,"ytp-flyout-cta-body-tall");this.A=null;this.u=
g.fe("ytp-flyout-cta",this.element);this.ga=new YY(this.api,this.ra,"ytp-flyout-cta-icon");g.C(this,this.ga);this.ga.ca(this.o["ytp-flyout-cta-icon-container"]);this.ba=new eZ(this.api,this.ra,"ytp-flyout-cta-headline");g.C(this,this.ba);this.ba.ca(this.o["ytp-flyout-cta-headline-container"]);this.C=null;this.V&&(this.C=new eZ(this.api,this.ra,"ytp-flyout-cta-description"),g.C(this,this.C),this.C.ca(this.o["ytp-flyout-cta-description-container"]));this.oa=new eZ(this.api,this.ra,"ytp-flyout-cta-description");
g.C(this,this.oa);this.oa.ca(this.o["ytp-flyout-cta-url-container"]);this.w=new $Y(this.api,this.ra,["ytp-flyout-cta-action-button"]);g.C(this,this.w);this.w.ca(this.o["ytp-ad-overlay-as-flyout-cta-action-button-container"]);this.Ia=g.fe("ytp-flyout-cta-ad-controls-container",this.element);this.L=this.I=null;this.Z=!1;this.B=null;this.Ma=g.fe("ytp-ad-overlay-close-container",this.u);this.za=new g.H(function(){g.Ln(c.u,"ytp-flyout-cta-inactive")},1E3);
this.ma=0;this.Ca=[];this.hide()};
Vna=function(a,b,c){if(!b.image||!b.image.thumbnail)return g.M(Error("InvideoOverlayAdRenderer has no image.")),!1;var d=HX(b.title);if(!b.title||g.hc(d))return g.M(Error("InvideoOverlayAdRenderer has no title AdText.")),!1;if(a.V&&!b.description)return g.M(Error("Tall InvideoOverlayAdRenderer has no description AdText.")),!1;if(!b.displayUrl)return g.M(Error("InvideoOverlayAdRenderer has no displayUrl AdText.")),!1;d=b.navigationEndpoint||b.imageNavigationEndpoint;if(!d)return g.M(Error("InvideoOverlayAdRenderer has no valid navigation endpoint.")),
!1;a.Ca=g.kb([d].concat(a.A&&a.A.onClickCommands||[]));a.B=g.fe("ytp-ad-overlay-ad-info-button-container",a.u);Una(a,c);a.ga.init(VT("ad-image"),b.image,a.macros);a.ba.init(VT("ad-text"),b.title,a.macros);a.V&&a.C&&b.description&&a.C.init(VT("ad-text"),b.description,a.macros);a.oa.init(VT("ad-text"),b.displayUrl,a.macros);a.w.init(VT("button"),{text:{simpleText:"VISIT SITE"}},a.macros);a.K(a.u,"mouseover",function(){a.ma++});
a.K(a.Ma,"click",a.tJ);JX(a,a.u,b.trackingParams||null);KX(a,a.u,!0);return!0};
Una=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.M(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else{var d=g.fe("video-ads ytp-ad-module")||null;if(null==d)g.M(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.I=new g.Uu({D:"div",H:"ytp-ad-overlay-ad-info-dialog-container"}),g.C(a,a.I),a.I.ca(d),d=new tZ(a.api,a.ra,a.I.element,!1),g.C(a,d),d.init(VT("ad-info-hover-text-button"),c,a.macros),a.B){d.ca(a.B,
0);d.subscribe("B",a.rJ,a);d.subscribe("A",a.uJ,a);a.K(a.B,"click",a.sJ);var e=g.fe("ytp-ad-button",d.element);a.K(e,"click",a.qJ);a.L=d;c.hoverText&&(c=g.T(c.hoverText),he(a.L.element,{title:c}))}else g.M(Error("Ad info button container within overlay ad was not present."))}}else g.No(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
Wna=function(a){return a.A&&a.A.closeButton&&a.A.closeButton.buttonRenderer&&(a=a.A.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
Xna=function(a,b){var c=a.api.getRootNode();g.K(c,"ytp-ad-overlay-open",b);g.K(c,"ytp-ad-overlay-closed",!b)};
vZ=function(a){return g.P(a.M().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
wZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-overlay-slot",J:[{D:"div",H:"ytp-ad-overlay-container"}]},"invideo-overlay");this.I=[];this.B=this.ma=null;var c=this.o["ytp-ad-overlay-container"];this.ba=new iZ(c,45E3,6E3,.3,.4);g.C(this,this.ba);vZ(this.api)||(this.V=new g.H(this.clear,45E3,this),g.C(this,this.V));this.A=Yna(this);g.C(this,this.A);this.A.ca(c);this.w=Zna(this);g.C(this,this.w);this.w.ca(c);this.u=$na(this);g.C(this,this.u);this.u.ca(c);this.oa=this.Z=null;this.ga=!1;this.C=null;
this.L=0;this.hide()};
Yna=function(a){var b=new g.Uu({D:"div",H:"ytp-ad-text-overlay",J:[{D:"div",H:"ytp-ad-overlay-ad-info-button-container"},{D:"div",H:"ytp-ad-overlay-close-container",J:[{D:"button",H:"ytp-ad-overlay-close-button",J:[ZY(xZ)]}]},{D:"div",H:"ytp-ad-overlay-title",W:"{{title}}"},{D:"div",H:"ytp-ad-overlay-desc",W:"{{description}}"},{D:"div",Y:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],W:"{{displayUrl}}"}]});a.K(b.o["ytp-ad-overlay-title"],"click",function(c){return yZ(a,b.element,c)});
a.K(b.o["ytp-ad-overlay-link"],"click",function(c){return yZ(a,b.element,c)});
a.K(b.o["ytp-ad-overlay-close-container"],"click",a.Mt);b.hide();return b};
Zna=function(a){var b=new g.Uu({D:"div",Y:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],J:[{D:"div",H:"ytp-ad-overlay-ad-info-button-container"},{D:"div",H:"ytp-ad-overlay-close-container",J:[{D:"button",H:"ytp-ad-overlay-close-button",J:[ZY(xZ)]}]},{D:"div",H:"ytp-ad-overlay-text-image",J:[{D:"img",O:{src:"{{imageUrl}}"}}]},{D:"div",H:"ytp-ad-overlay-title",W:"{{title}}"},{D:"div",H:"ytp-ad-overlay-desc",W:"{{description}}"},{D:"div",Y:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
W:"{{displayUrl}}"}]});a.K(b.o["ytp-ad-overlay-title"],"click",function(c){return yZ(a,b.element,c)});
a.K(b.o["ytp-ad-overlay-link"],"click",function(c){return yZ(a,b.element,c)});
a.K(b.o["ytp-ad-overlay-close-container"],"click",a.Mt);a.K(b.o["ytp-ad-overlay-text-image"],"click",a.hN);b.hide();return b};
$na=function(a){var b=new g.Uu({D:"div",H:"ytp-ad-image-overlay",J:[{D:"div",H:"ytp-ad-overlay-ad-info-button-container"},{D:"div",H:"ytp-ad-overlay-close-container",J:[{D:"button",H:"ytp-ad-overlay-close-button",J:[ZY(xZ)]}]},{D:"div",H:"ytp-ad-overlay-image",J:[{D:"img",O:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.K(b.o["ytp-ad-overlay-image"],"click",function(c){return yZ(a,b.element,c)});
a.K(b.o["ytp-ad-overlay-close-container"],"click",a.Mt);b.hide();return b};
zZ=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.M(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else{var d=g.fe("video-ads ytp-ad-module")||null;null==d?g.M(Error("Could not locate the root ads container element to attach the ad info dialog.")):(a.Z=new g.Uu({D:"div",H:"ytp-ad-overlay-ad-info-dialog-container"}),g.C(a,a.Z),a.Z.ca(d),d=new tZ(a.api,a.ra,a.Z.element,!1),g.C(a,d),d.init(VT("ad-info-hover-text-button"),c,a.macros),a.C?(d.ca(a.C,0),
d.subscribe("B",a.wJ,a),d.subscribe("A",a.zJ,a),a.K(a.C,"click",a.xJ),c=g.fe("ytp-ad-button",d.element),a.K(c,"click",a.vJ),a.oa=d):g.M(Error("Ad info button container within overlay ad was not present.")))}}else g.No(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
aoa=function(a){return a.B&&a.B.closeButton&&a.B.closeButton.buttonRenderer&&(a=a.B.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
boa=function(a,b){if(AZ(a,BZ)||a.api.app.G.o)return!1;var c=HX(b.title),d=HX(b.description);if(g.hc(c)||g.hc(d))return!1;JX(a,a.A.element,b.trackingParams||null);a.A.la("title",HX(b.title));a.A.la("description",HX(b.description));a.A.la("displayUrl",HX(b.displayUrl));b.navigationEndpoint&&lb(a.I,b.navigationEndpoint);a.A.show();a.ba.start();KX(a,a.A.element,!0);vZ(a.api)||(a.K(a.api,"resize",function(){AZ(a,BZ)&&a.clear()}),a.K(a.api,"minimized",a.yJ));
a.K(a.A.element,"mouseover",function(){a.L++});
return!0};
coa=function(a,b){if(AZ(a,BZ)||a.api.app.G.o)return!1;var c=HX(b.title),d=HX(b.description);if(g.hc(c)||g.hc(d))return!1;JX(a,a.w.element,b.trackingParams||null);a.w.la("title",HX(b.title));a.w.la("description",HX(b.description));a.w.la("displayUrl",HX(b.displayUrl));a.w.la("imageUrl",IX(b.image));b.navigationEndpoint&&lb(a.I,b.navigationEndpoint);a.ma=b.imageNavigationEndpoint||null;a.w.show();a.ba.start();KX(a,a.w.element,!0);vZ(a.api)||a.K(a.api,"resize",function(){AZ(a,BZ)&&a.clear()});
a.K(a.w.element,"mouseover",function(){a.L++});
return!0};
doa=function(a,b){if(a.api.app.G.o)return!1;var c=Sma(b.image),d=c;c.width<BZ.width&&(d=BZ);if(0==c.width||0==c.height||AZ(a,d))return!1;JX(a,a.u.element,b.trackingParams||null);a.u.la("imageUrl",IX(b.image));a.u.la("width",c.width);a.u.la("height",c.height);b.navigationEndpoint&&lb(a.I,b.navigationEndpoint);g.xh(a.u.o["ytp-ad-image-overlay"],"max-width",c.width+"px");a.u.show();KX(a,a.u.element,!0);vZ(a.api)||(a.V.start(),a.K(a.api,"resize",function(){AZ(a,c)&&a.clear()}));
a.K(a.u.element,"mouseover",function(){a.L++;vZ(a.api)?a.api.S("aduxmouseover","invideo-overlay"):a.V.stop()});
a.K(a.u.element,"mouseout",function(){vZ(a.api)?a.api.S("aduxmouseout","invideo-overlay"):a.V.start()});
return!0};
AZ=function(a,b){var c=g.RK(a.api).getPlayerSize();return b.width>c.width||b.height>c.height};
yZ=function(a,b,c){var d=g.Sb(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.Nh(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.L.toString()}};
a.I.forEach(function(k){return a.ra.executeCommand(k,d)});
a.api.pauseVideo()};
eoa=function(a,b){var c=a.api.getRootNode();g.K(c,"ytp-ad-overlay-open",b);g.K(c,"ytp-ad-overlay-closed",!b)};
CZ=function(a,b,c){aZ.call(this,a,b,{D:"div",H:"ytp-ad-message-overlay",J:[{D:"div",H:"ytp-ad-message-slot"}]},"ad-message",c);var d=this;this.V=-1;this.ba=this.o["ytp-ad-message-slot"];this.A=new g.Uu({D:"span",H:"ytp-ad-message-container"});this.A.ca(this.ba);g.C(this,this.A);this.w=new eZ(this.api,this.ra,"ytp-ad-message-text");g.C(this,this.w);this.w.ca(this.A.element);this.I=new g.LN(this.A,400,!1,100,function(){return d.hide()});
g.C(this,this.I);this.C=0;this.L=!1;this.hide()};
foa=function(a,b){var c=a.api.getRootNode();g.K(c,"ytp-ad-overlay-open",b);g.K(c,"ytp-ad-overlay-closed",!b)};
DZ=function(a,b,c){aZ.call(this,a,b,{D:"div",H:"ytp-ad-skip-ad-slot"},"skip-ad",c);this.I=!1;this.C=0;this.A=this.w=null;this.hide()};
EZ=function(a,b){if(!a.I)if(a.I=!0,a.w&&(b?a.w.L.hide():a.w.hide()),b){var c=a.A;c.ma.show();c.show()}else a.A.show()};
FZ=function(a,b,c){Z.call(this,a,b,{D:"div",H:"ytp-ad-persisting-overlay",J:[{D:"div",H:"ytp-ad-persisting-overlay-skip"}]},"persisting-overlay");this.w=this.o["ytp-ad-persisting-overlay-skip"];this.u=c;g.C(this,this.u);this.hide()};
GZ=function(a,b,c){aZ.call(this,a,b,{D:"span",H:"ytp-ad-duration-remaining"},"ad-duration-remaining",c);this.w=null;this.hide()};
HZ=function(a,b){eZ.call(this,a,b,"ytp-video-ad-top-bar-title","ad-title")};
IZ=function(a,b,c){aZ.call(this,a,b,{D:"div",Y:["ytp-flyout-cta","ytp-flyout-cta-inactive"],J:[{D:"div",H:"ytp-flyout-cta-icon-container"},{D:"div",H:"ytp-flyout-cta-body",J:[{D:"div",H:"ytp-flyout-cta-text-container",J:[{D:"div",H:"ytp-flyout-cta-headline-container"},{D:"div",H:"ytp-flyout-cta-description-container"}]},{D:"div",H:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c);this.I=new YY(this.api,this.ra,"ytp-flyout-cta-icon");g.C(this,this.I);this.I.ca(this.o["ytp-flyout-cta-icon-container"]);
this.C=new eZ(this.api,this.ra,"ytp-flyout-cta-headline");g.C(this,this.C);this.C.ca(this.o["ytp-flyout-cta-headline-container"]);this.A=new eZ(this.api,this.ra,"ytp-flyout-cta-description");g.C(this,this.A);this.A.ca(this.o["ytp-flyout-cta-description-container"]);this.w=new $Y(this.api,this.ra,["ytp-flyout-cta-action-button"]);g.C(this,this.w);this.w.ca(this.o["ytp-flyout-cta-action-button-container"]);this.L=null;this.V=0;this.hide()};
JZ=function(a,b,c,d){c=void 0===c?[]:c;d=void 0===d?"toggle-button":d;var e=VT("ytp-ad-toggle-button-input");Z.call(this,a,b,{D:"div",Y:["ytp-ad-toggle-button"].concat(c),J:[{D:"label",H:"ytp-ad-toggle-button-label",O:{"for":e},J:[{D:"span",H:"ytp-ad-toggle-button-icon",O:{role:"button","aria-label":"{{tooltipText}}"},J:[{D:"span",H:"ytp-ad-toggle-button-untoggled-icon",W:"{{untoggledIconTemplateSpec}}"},{D:"span",H:"ytp-ad-toggle-button-toggled-icon",W:"{{toggledIconTemplateSpec}}"}]},{D:"input",
H:"ytp-ad-toggle-button-input",O:{id:e,type:"checkbox"}},{D:"span",H:"ytp-ad-toggle-button-text",W:"{{buttonText}}"},{D:"span",H:"ytp-ad-toggle-button-tooltip",W:"{{tooltipText}}"}]}]},d);this.A=this.o["ytp-ad-toggle-button"];this.u=this.o["ytp-ad-toggle-button-input"];this.L=this.o["ytp-ad-toggle-button-icon"];this.C=this.o["ytp-ad-toggle-button-untoggled-icon"];this.B=this.o["ytp-ad-toggle-button-toggled-icon"];this.Z=this.o["ytp-ad-toggle-button-text"];this.w=null;this.I=!1;this.V=null;this.hide()};
KZ=function(a){a.I&&(a.isToggled()?(g.Th(a.C,!1),g.Th(a.B,!0)):(g.Th(a.C,!0),g.Th(a.B,!1)))};
goa=function(a,b){var c=null;a.w&&(c=(b?[a.w.defaultServiceEndpoint,a.w.defaultNavigationEndpoint]:[a.w.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
LZ=function(a,b,c){Z.call(this,a,b,{D:"div",H:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",void 0===c?null:c);var d=this;this.u=null;this.A=new JZ(this.api,this.ra,["ytp-ad-instream-user-sentiment-like-button"]);g.C(this,this.A);this.A.ca(this.element);this.w=new JZ(this.api,this.ra,["ytp-ad-instream-user-sentiment-dislike-button"]);g.C(this,this.w);this.w.ca(this.element);this.B=new g.LN(this,400,!1,500,function(){return d.hide()});
g.C(this,this.B);this.C=null;this.hide()};
hoa=function(a,b){a.A.init(VT("toggle-button"),a.u.likeButton.toggleButtonRenderer,b);a.w.init(VT("toggle-button"),a.u.dislikeButton.toggleButtonRenderer,b);a.C=a.K(a.element,"change",a.Mz)};
MZ=function(a,b){$Y.call(this,a,b,["ytp-ad-visit-advertiser-button"],"visit-advertiser");this.A=null};
NZ=function(a,b,c){c=void 0===c?!1:c;Z.call(this,a,b,{D:"span",H:"ytp-ad-simple-ad-badge"},"simple-ad-badge");this.u=c;this.hide()};
OZ=function(a,b,c){Z.call(this,a,b,{D:"div",H:"ytp-ad-player-overlay",J:[{D:"div",H:"ytp-ad-player-overlay-flyout-cta"},{D:"div",H:"ytp-ad-player-overlay-instream-info"},{D:"div",H:"ytp-ad-player-overlay-skip-or-preview"},{D:"div",H:"ytp-ad-player-overlay-progress-bar"},{D:"div",H:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay");this.C=this.o["ytp-ad-player-overlay-flyout-cta"];this.w=this.o["ytp-ad-player-overlay-instream-info"];this.A=null;if(ioa(this)){a=g.qe("div");g.J(a,"ytp-ad-player-overlay-top-bar-gradients");
b=this.w;b.parentNode&&b.parentNode.insertBefore(a,b);if((b=this.api.getVideoData(2))&&b.isListed&&b.title){var d=new HZ(this.api,this.ra);d.ca(a);d.init(VT("ad-title"),{text:b.title},this.macros);g.C(this,d)}this.A=a}this.B=this.o["ytp-ad-player-overlay-skip-or-preview"];this.L=this.o["ytp-ad-player-overlay-progress-bar"];this.I=this.o["ytp-ad-player-overlay-instream-user-sentiment"];this.u=c;g.C(this,this.u);this.hide()};
ioa=function(a){a=a.api.M();return pz(a)&&a.o};
PZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-survey-answer"},"survey-answer");this.w=this.o["ytp-ad-survey-answer"];this.u=null;this.A="";this.hide()};
QZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above");this.w=this.o["ytp-ad-survey-none-of-the-above"];this.u=null;this.hide()};
RZ=function(a,b){$Y.call(this,a,b,["ytp-ad-survey-submit-button"],"survey-submit")};
SZ=function(a,b,c){Z.call(this,a,b,{D:"div",H:"ytp-ad-survey-player-overlay",J:[{D:"div",H:"ytp-ad-survey-player-overlay-instream-info"},{D:"div",H:"ytp-ad-survey-player-overlay-skip-preview-submit",J:[{D:"div",H:"ytp-ad-survey-player-overlay-skip-or-preview"},{D:"div",H:"ytp-ad-survey-player-overlay-submit"}]},{D:"div",H:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay");this.C=this.o["ytp-ad-survey-player-overlay-instream-info"];this.w={};this.I=this.o["ytp-ad-survey-player-overlay-skip-or-preview"];
this.u=null;this.L=this.o["ytp-ad-survey-player-overlay-submit"];this.A=null;this.B=c;g.C(this,this.B);this.hide()};
TZ=function(a,b,c){Z.call(this,a,b,{D:"div",H:"ytp-ad-survey-question",J:[{D:"div",Y:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{D:"div",Y:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{D:"div",Y:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{D:"div",H:"ytp-ad-survey-question-background"}]},c);this.question=this.o["ytp-ad-survey-question"];this.ba=this.o["ytp-ad-survey-question-background"];this.V=this.o["ytp-ad-survey-question-text"];
this.answers=this.o["ytp-ad-survey-answers"];this.L=this.o["ytp-ad-survey-question-player-overlay"];this.C=null;this.A=[];this.u=null;this.B=(0,g.G)()};
joa=function(a,b,c){var d=new PZ(a.api,a.ra);d.ca(a.answers);d.init(VT("survey-answer"),b,c);a.A.push(d)};
loa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&XY(c)||"",g.hc(c)?g.No(Error("Found ThumbnailDetails without valid image URL")):g.xh(a.ba,"backgroundImage","url("+c+")"));koa(a,b)}else g.M(Error("addCommonComponents() needs to be called before starting countdown."))};
koa=function(a,b){if(null==b.durationMilliseconds||void 0==b.durationMilliseconds||0==b.durationMilliseconds)g.M(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.B=(0,g.G)();a.u=new kZ(b.durationMilliseconds,a.ra);g.C(a,a.u);if(b.timeoutCommands){var c=b.timeoutCommands;a.u.subscribe("a",function(){c.forEach(function(e){return a.ra.executeCommand(e,a.macros)})})}if(a.u&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=
new SZ(a.api,a.ra,a.u);
d.ca(a.L);d.init(VT("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.C=d;g.C(a,d);a.JB()}catch(e){g.M(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.M(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.u&&b.durationMilliseconds&&0<b.durationMilliseconds?(d=new PQ(a.api,a.u),d.ca(a.L),g.C(a,d)):g.M(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
moa=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.G)()-a.B})};
UZ=function(a,b){TZ.call(this,a,b,"survey-question-multi-select");this.w=null;this.Z=[];this.I=null;this.hide()};
noa=function(a,b,c){a.w=new QZ(a.api,a.ra);a.w.ca(a.answers);a.w.init(VT("survey-none-of-the-above"),b,c)};
ooa=function(a){a.A.forEach(function(b){b.u.toggleButton(!1)});
VZ(a,!0)};
VZ=function(a,b){var c=a.C,d=poa(a),e=b;e=void 0===e?!1:e;c.u&&(d?c.u.hide():c.u.show(),e&&c.u instanceof DZ&&!c.u.I&&EZ(c.u,!1));c.A&&(d?c.A.show():c.A.hide())};
poa=function(a){return a.A.some(function(b){return b.u.isToggled()})||a.w.u.isToggled()};
WZ=function(a,b){TZ.call(this,a,b,"survey-question-single-select");this.hide()};
XZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-survey",J:[{D:"div",H:"ytp-ad-survey-questions"}]},"survey");this.u=this.o["ytp-ad-survey-questions"];this.w=[];this.hide()};
YZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-survey-interstitial",J:[{D:"div",H:"ytp-ad-survey-interstitial-contents",J:[{D:"div",H:"ytp-ad-survey-interstitial-logo",J:[{D:"div",H:"ytp-ad-survey-interstitial-logo-image"}]},{D:"div",H:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial");this.B=this.o["ytp-ad-survey-interstitial"];this.C=this.o["ytp-ad-survey-interstitial-contents"];this.u=null;this.L=this.o["ytp-ad-survey-interstitial-text"];this.I=this.o["ytp-ad-survey-interstitial-logo-image"];
this.A=null;this.w=new g.LN(this,500,!1,300);g.C(this,this.w)};
qoa=function(a,b,c){c=c.dismissCommands;var d=b.target==a.B;b=a.u.element.contains(b.target);if(d||b)a.w.hide(),d&&c.forEach(function(e){return a.ra.executeCommand(e,a.macros)})};
roa=function(a,b){var c=b&&XY(b)||"";if(g.hc(c))g.No(Error("Found ThumbnailDetails without valid image URL"));else{var d=a.style.cssText;if(g.ke&&10>document.documentMode)d=new Cc;else{var e=document;"function"===typeof HTMLTemplateElement&&(e=g.re("TEMPLATE").content.ownerDocument);e=e.implementation.createHTMLDocument("").createElement("DIV");e.style.cssText=d;d=eea(e.style)}c=Haa(d,Ic({"background-image":'url("'+c+'")'}));a.style.cssText=Dc(c)}};
soa=function(a){var b=g.fe("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
ZZ=function(a,b){Z.call(this,a,b,{D:"div",H:"iv-website-companion",J:[{D:"div",H:"iv-website-companion-block",J:[{D:"div",H:"iv-website-companion-icon"},{D:"div",H:"iv-website-companion-text",J:[{D:"div",H:"iv-website-companion-desc",J:[{D:"span",Y:["yt-badge","yt-badge-ad"],W:"{{adBadgeText}}"}]}]}]}]},"action-companion");this.Z=this.o["iv-website-companion"];this.A=new YY(this.api,this.ra,"iv-website-companion-banner");g.C(this,this.A);this.A.ca(this.Z,0);this.ga=new YY(this.api,this.ra);g.C(this,
this.A);this.ga.ca(this.o["iv-website-companion-icon"]);this.L=new eZ(this.api,this.ra,"iv-website-companion-header");g.C(this,this.L);this.L.ca(this.o["iv-website-companion-text"],0);this.C=new eZ(this.api,this.ra,"iv-website-companion-domain");g.C(this,this.C);this.C.ca(this.o["iv-website-companion-desc"]);this.w=new $Y(this.api,this.ra,["iv-website-companion-action","yt-uix-button-size-default","yt-uix-button-primary"]);g.C(this,this.w);this.w.ca(this.o["iv-website-companion-block"]);this.B=new $X(this.api,
this.ra);g.C(this,this.B);this.B.ca(this.Z,0);this.V=null;this.ba=[];this.I=new g.Nr;g.C(this,this.I);this.ma=new mU(3E4);this.u=null;this.hide()};
$Z=function(){g.R.call(this,{D:"div",H:"ad-carousel",J:[{D:"div",H:"ad-carousel-clip",J:[{D:"ul",Y:["ad-carousel-list","ad-carousel-list-animation"]}]}]});var a=this.o["ad-carousel"];this.B=new g.R({D:"button",Y:["ad-carousel-nav-button","ad-carousel-nav-prev"],O:{type:"button",onclick:"return false;"},J:[{D:"span",Y:["ad-carousel-prev-icon","yt-uix-tooltip","yt-sprite"],O:{"data-tooltip-text":"Prev",title:"Prev"}}]});g.C(this,this.B);this.B.ka("click",this.G,this);this.B.ca(a);this.A=new g.R({D:"button",
Y:["ad-carousel-nav-button","ad-carousel-nav-next"],O:{type:"button",onclick:"return false;"},J:[{D:"span",Y:["ad-carousel-next-icon","yt-uix-tooltip","yt-sprite"],O:{"data-tooltip-text":"Next",title:"Next"}}]});g.C(this,this.A);this.A.ka("click",this.F,this);this.A.ca(a);this.C=this.o["ad-carousel-list"];this.w=0;this.u=[]};
b_=function(a){a.C&&g.xh(a.C,"left",(2>a.u.length?0:-a.w*a.u[1].element.clientWidth)+"px");g.Tu(a.B,0<a.w);g.Tu(a.A,a.w<a.u.length-a_(a))};
a_=function(a){return 2>a.u.length?1:Math.round((a.element.clientWidth-a.u[0].element.clientWidth)/a.u[1].element.clientWidth)+1};
c_=function(){RX.call(this,!0);this.o=new $Z};
d_=function(){RX.call(this,!1);this.u=new g.R({D:"div",H:"iv-btp-card",J:[{D:"a",H:"iv-btp-card-content",J:[{D:"div",W:"{{cards}}"}]}]});g.C(this,this.u);var a={D:"div",H:"iv-btp-card-merchant",J:[{D:"span",H:"iv-btp-card-merchant-text",W:"{{merchant}}"}]};this.A=new g.Pu({D:"div",Y:["iv-btp-small-card","yt-uix-hovercard-target"],O:{"data-position":"bottomright","data-orientation":"vertical"},J:[{D:"div",Y:["iv-btp-card-image","yt-uix-hovercard-anchor"],W:"{{image}}"},{D:"div",H:"iv-btp-card-info",
J:[{D:"span",H:"iv-btp-card-action",W:"{{price}}"},a]},{D:"div",Y:["yt-uix-hovercard-content","iv-btp-hovercard"],W:"{{hovercard}}"}]});g.C(this,this.A);this.o=new g.Pu({D:"div",H:"iv-btp-large-card",J:[{D:"div",H:"iv-btp-card-image",J:[{D:"span"},{D:"div",H:"iv-btp-card-image-aligned",W:"{{image}}"}]},{D:"div",H:"iv-btp-card-info",J:[{D:"div",H:"iv-btp-card-text-box",J:[{D:"div",H:"iv-btp-card-text-valign",J:[{D:"div",Y:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-card-headline"],W:"{{headline}}"}]}]},
{D:"span",H:"iv-btp-card-action",W:"{{price}}"},a,{D:"div",W:"{{review}}"}]}]});g.C(this,this.o);this.w=new g.Pu({D:"div",H:"iv-btp-hovercard-text-box",J:[{D:"a",J:[{D:"div",Y:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-hovercard-headline"],W:"{{headline}}"}]},{D:"div",H:"iv-btp-hovercard-info",J:[{D:"span",H:"iv-btp-hovercard-action",W:"{{price}}"},a]},{D:"div",W:"{{review}}"}]});g.C(this,this.w);this.B=new g.Pu({D:"div",H:"iv-btp-card-review",J:[{D:"div",H:"iv-btp-card-rating",J:[{D:"span",H:"iv-btp-card-rating-bg",
J:[{D:"span",H:"iv-btp-card-rating-fg"}]}]},{D:"span",H:"iv-btp-card-reviews",W:"{{reviewText}}"}]});g.C(this,this.B);this.A.la("hovercard",this.w);this.u.la("cards",[this.A,this.o]);toa(this)};
toa=function(a){a.u.ka("click",function(){a.dispatchEvent({type:"offerclick"})});
for(var b=g.q((a.u.element||document).getElementsByTagName("A")),c=b.next();!c.done;c=b.next())a.u.K(c.value,"click",function(){a.dispatchEvent({type:"offernavclick"})})};
e_=function(a,b,c){c=c?QX(c):null;a.la(b,c)};
f_=function(a,b){SX.call(this,a,b,function(){return new uoa.zq});
this.u=null;voa(this)};
voa=function(a){for(var b=g.q(Object.values(woa)),c=b.next();!c.done;c=b.next())a.view.addEventListener(c.value,function(d){return a.onClick(d)})};
g_=function(){g.A.call(this);this.w=this.A=this.u=this.B=this.o=null};
yoa=function(a,b){return xoa(a).then(function(c){c&&g.Pa(c.promotionShelfShow)&&c.promotionShelfShow(b)})};
zoa=function(a){xoa(a).then(function(b){b&&g.Pa(b.promotionShelfClear)&&b.promotionShelfClear()})};
Aoa=function(){return g.w("yt.www.watch.ads")};
xoa=function(a){if(a.ea())throw Error("Object is disposed");if(!a.o){var b=Aoa();a.o=b?Gf(b):(new Cf(function(c){a.B=rea(c)})).then(Aoa)}return a.o};
h_=function(){RX.call(this,!0);this.o=new g.R({D:"div",H:"iv-btp-companion",J:[{D:"div",H:"iv-btp-block-clicks"},{D:"div",H:"iv-btp-attribution",J:[{D:"span",H:"iv-btp-title",W:"{{shopText}}"},{D:"div",H:"ad-info-container",J:[{D:"span",H:"iv-btp-sponsored",W:"{{sponsoredText}}"},{D:"button",H:"ad-info-icon"}]}]}]});g.C(this,this.o);this.w=this.o.o["iv-btp-block-clicks"];this.u=new g_;g.C(this,this.u);this.A=yoa(this.u,this.o.element);Boa(this)};
Boa=function(a){a.o.ka("click",function(b){g.Ae(a.o.o["ad-info-icon"],b.target)&&a.dispatchEvent({type:"adinfoclick"})})};
j_=function(a,b){SX.call(this,a,b,function(){return new i_.BD});
this.L=new g.Nr(this);g.C(this,this.L);this.F=[];this.u=null;this.w=new i_.uq;g.C(this,this.w);this.view.append(this.w);this.C=new i_.ZC(a,b,new DX(this.view.o.o["ad-info-icon"]));g.C(this,this.C);this.view.append(this.C.view);Coa(this)};
Coa=function(a){a.L.K(a.o,"appresize",a.U);a.L.K(a.view,"adinfoclick",function(b){return a.onClick(b)})};
Doa=function(a){var b=a.view;g.Th(b.w,!0);Kf([a.u,Yf(1E3)]).then(function(){g.Th(b.w,!1)})};
k_=function(){RX.call(this,!0);var a=this;this.A=this.u=0;this.o=new g.R({D:"div",H:"iv-cards-slider",J:[{D:"div",H:"iv-cards-slider-body",J:[{D:"ul",H:"iv-cards-slider-list"}]},{D:"button",Y:["iv-cards-slider-button","iv-cards-slider-prev"],O:{type:"button",onclick:";return false;"},J:[{D:"span",Y:["iv-cards-slider-prev-icon","yt-sprite"]}]},{D:"button",Y:["iv-cards-slider-button","iv-cards-slider-next"],O:{type:"button",onclick:";return false;"},J:[{D:"span",Y:["iv-cards-slider-next-icon","yt-sprite"]}]}]});
this.F=g.fe("iv-cards-slider-list",this.o.element);if(this.w=g.fe("iv-cards-slider-prev",this.o.element))this.o.K(this.w,"click",function(){a.dispatchEvent({type:"prevbuttonclick"})}),g.Th(this.w,!1);
(this.B=g.fe("iv-cards-slider-next",this.o.element))&&this.o.K(this.B,"click",function(){a.dispatchEvent({type:"nextbuttonclick"})});
g.C(this,this.o)};
l_=function(a){a.F.style.left=125*-a.u+"px";a.w&&g.Th(a.w,0<a.u);a.B&&g.Th(a.B,a.u<a.A-3)};
m_=function(){RX.call(this,!0);this.o=new g.R({D:"div",H:"iv-cards-companion",J:[{D:"div",H:"iv-cards-attribution",J:[{D:"span",Y:["yt-badge","yt-badge-ad"],W:"{{adBadgeText}}"},{D:"a",H:"ad-companion-clickthrough",O:{target:"_blank"},W:"{{shopText}}"}]},{D:"div",W:"{{content}}"}]});g.C(this,this.o);this.u=new mU(3E4);this.w=this.u.showCompanion(this.o.element,300,250);Eoa(this)};
Eoa=function(a){a.o.ka("click",function(){a.dispatchEvent({type:"companionclick"})});
var b=g.fe("ad-companion-clickthrough",a.o.element);b&&a.o.K(b,"click",function(){a.dispatchEvent({type:"shoptextclick"})})};
n_=function(){RX.call(this,!1);this.o=new g.R({D:"li",H:"iv-cards-slider-item",J:[{D:"div",H:"iv-cards-slider-unit",J:[{D:"a",J:[{D:"div",H:"iv-cards-slider-image",W:"{{image}}"},{D:"span",Y:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-cards-slider-text"],W:"{{headline}}"},{D:"span",H:"iv-cards-slider-action",W:"{{price}}"}]}]}]});g.C(this,this.o);Foa(this)};
Foa=function(a){a.o.ka("click",function(){a.dispatchEvent({type:"offerclick"})})};
o_=function(a,b){SX.call(this,a,b,function(){return new Goa.zq});
var c=this;this.u=null;this.view.addEventListener("offerclick",function(){return c.onClick()})};
q_=function(a,b){SX.call(this,a,b,function(){return new p_.hD});
this.V=new g.Nr(this);g.C(this,this.V);this.U=[];this.L=null;this.C=[];this.w=null;this.u=new p_.uq;g.C(this,this.u);this.view.append(this.u);this.F=new $X(a,b);g.C(this,this.F);g.ve(this.view.ib(),this.F.element,0);Hoa(this)};
Hoa=function(a){function b(c){return a.onClick(c)}
a.view.addEventListener("shoptextclick",b);a.view.addEventListener("companionclick",b);a.u.addEventListener("nextbuttonclick",b);a.u.addEventListener("prevbuttonclick",b)};
Ioa=function(a,b,c){switch(a){case "invideo-overlay":a=new wZ(b,c);break;case "invideo-overlay-as-cta":a=new uZ(b,c);break;case "persisting-overlay":a=new FZ(b,c,new QQ(b));break;case "player-overlay":a=new OZ(b,c,new QQ(b));break;case "pla-shelf":a=new j_(b,c);break;case "shopping-companion":a=new q_(b,c);break;case "survey":a=new XZ(b,c);break;case "ad-action-interstitial":a=new lZ(b,c);break;case "action-companion":a=new ZZ(b,c);break;case "ad-text-interstitial":a=new nZ(b,c);break;case "survey-interstitial":a=
new YZ(b,c);break;case "ad-choice-interstitial":a=new mZ(b,c);break;case "ad-message":a=new CZ(b,c,new QQ(b,1));break;default:return null}return a};
r_=function(a){g.Nr.call(this);this.o=a;this.K(this.o,"onAdUxUpdate",this.F)};
s_=function(a,b){r_.call(this,a);this.A=b;this.u=new Map;g.C(this,OX())};
Joa=function(a,b){WT.call(this,"image-companion",a,b)};
t_=function(a){r_.call(this,a)};
u_=function(a,b){r_.call(this,a);this.A=a;this.C=b;this.u={};var c=new g.R({D:"div",Y:["video-ads","ytp-ad-module"]});g.C(this,c);My&&g.J(c.element,"ytp-ads-tiny-mode");this.B=new DX(c.element);g.C(this,this.B);g.jL(this.A,c.element,4);g.C(this,OX())};
Koa=function(a,b){var c=a.u;var d=b.id;c=null!==c&&d in c?c[d]:null;null==c&&g.No(Error("Component not found for element id: "+b.id));return c||null};
w_=function(a,b,c,d){d=void 0===d?{}:d;b&&(d.slot=b?", slot: "+(v_.debug>=v_[Loa.debug.qD]?b.slotId+" |":"")+" "+b.Ya:"");c&&(d.layout=c?", layout: "+(v_.debug>=v_[Loa.debug.qD]?c.layoutId+" |":"")+" "+c.layoutType:"");a=new Zq("[H5 Ads Control Flow] "+a,d);g.$q(a)};
x_=function(a){g.A.call(this);var b=this;this.u=a;this.o=null;g.Je(this,function(){g.Ke(b.o);b.o=null})};
y_=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.Ja.o.has(c.value))return!1;return!0};
Moa=function(a){switch(a){case 0:return!0;case 1:return!1;case 2:return!1;default:return!1}};
z_=function(a){var b=new Map;a.forEach(function(c){b.set(c.o(),c)});
this.o=b};
A_=function(a,b){var c=a.o.get(b);if(void 0!==c)return c.get()};
B_=function(a){return Array.from(a.o.keys())};
C_=function(a){g.A.call(this);this.Kb=a;this.o=.1>Math.random();this.eventCount=0};
Ooa=function(a){var b;return(null===(b=Noa.get(a))||void 0===b?void 0:b.Qp)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
E_=function(a,b,c){D_(a,b,void 0,void 0,c)};
F_=function(a,b,c,d){D_(a,b,void 0,void 0,c,d?d:void 0)};
Poa=function(a,b,c,d){g.P(a.Kb.N.M().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs")&&D_(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,b,d?d:void 0,c)};
H_=function(a,b,c,d,e,f,k,l){a=a.o||Qoa(a.Kb);return{adClientDataEntry:{slotData:G_(a,{slotId:b,Ya:c,vb:d,ld:e,Kg:[],Jg:[],Ja:new z_([])}),layoutData:Roa(a,{layoutId:f,layoutType:k,vb:l,Ae:[],Ve:[],Ue:[],hf:new Map,Ja:new z_([]),vi:{}})}}};
D_=function(a,b,c,d,e,f,k){if(g.P(a.Kb.N.M().experiments,"html5_enable_ads_client_monitoring_log")&&!g.P(a.Kb.N.M().experiments,"html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var l=a.o||Qoa(a.Kb);b={eventType:b,eventOrder:++a.eventCount};var m=g.Q(a.Kb.N.M().experiments,"html5_experiment_id_label");m=0<m?{html5ExperimentContext:{ytExperimentId:m}}:void 0;if(c||e||f||m){var n={};e&&(n.slotData=G_(l,e));f&&(n.layoutData=Roa(l,f));k&&(e={type:Soa.get(k.trigger.triggerType)||
"TRIGGER_TYPE_UNSPECIFIED",category:Toa.get(k.category)||"TRIGGER_CATEGORY_UNSPECIFIED"},n.triggerData=e);c&&(n.opportunityData=Uoa(a,l,c,d));m&&(n.externalContext=m);b.adClientData=n}g.Yq("adsClientStateChange",{adsClientEvent:b})}};
G_=function(a,b){var c={type:Voa.get(b.Ya)||"SLOT_TYPE_UNSPECIFIED",controlFlowManagerLayer:Woa.get(b.vb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};if(a){c.debugData={slotId:b.slotId};c.debugData.entryTriggerData=[];for(var d=g.q(b.ld),e=d.next();!e.done;e=d.next()){e=e.value;var f={type:Soa.get(e.triggerType)||"TRIGGER_TYPE_UNSPECIFIED"};"trigger_type_layout_id_entered"===e.triggerType&&(f.layoutIdEnteredTriggerData={enteredLayoutId:e.u});c.debugData.entryTriggerData.push(f)}}return c};
Roa=function(a,b){var c={type:Xoa.get(b.layoutType)||"LAYOUT_TYPE_UNSPECIFIED",controlFlowManagerLayer:Woa.get(b.vb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
Uoa=function(a,b,c,d){c={opportunityType:Yoa.get(c)||"OPPORTUNITY_TYPE_UNSPECIFIED"};b&&d&&(c.debugData={slots:(0,g.Fc)(d,function(e){return G_(b,e)},a)});
return c};
I_=function(a,b,c){g.A.call(this);this.u=b;this.Ra=c;this.o=a(this,this,this,this,this);g.C(this,this.o);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.C(this,b.value)};
Zoa=function(a,b,c){F_(a.Ra,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.q(a.u);for(b=a.next();!b.done;b=a.next())b.value.Si(c)};
K_=function(a,b,c){if(null!=J_(a.o,b)){F_(a.Ra,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.u);for(var d=a.next();!d.done;d=a.next())d.value.Ci(b,c)}};
$oa=function(a,b,c){F_(a.Ra,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.u);for(var d=a.next();!d.done;d=a.next())d.value.Ci(b,c)};
N_=function(a,b,c,d){if(null!=J_(a.o,b)){F_(a.Ra,Ooa(d),b,c);d=J_(a.o,b);null!=d.layout&&d.layout.layoutId===c.layoutId&&("rendering_stop_requested"!==d.o&&L_(d.slot,d.o,"onLayoutExited"),d.o="entered");d=g.q(a.u);for(var e=d.next();!e.done;e=d.next())e.value.Di(b,c);(d=M_(a.o,b))&&c.layoutId===d.layoutId&&apa(a,b,!1)}};
bpa=function(a,b,c,d){F_(a.Ra,Ooa(d),b,c);a=g.q(a.u);for(d=a.next();!d.done;d=a.next())d.value.Di(b,c)};
P_=function(a,b,c,d){w_(d.toString(),b,c);O_(a,b,!0)};
R_=function(a,b){if(null!=J_(a.o,b)){J_(a.o,b).mj=!1;var c=Q_,d=J_(a.o,b),e=[].concat(g.ea(d.F));eb(d.F);c(a,e)}};
Q_=function(a,b){b.sort(function(k,l){return k.category===l.category?k.trigger.o.localeCompare(l.trigger.o):k.category-l.category});
for(var c=new Map,d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,null!=J_(a.o,e.slot))if(J_(a.o,e.slot).mj)J_(a.o,e.slot).F.push(e);else{Poa(a.Ra,e.slot,e,e.layout);var f=c.get(e.category);f||(f=[]);f.push(e);c.set(e.category,f)}d=g.q((new Map([[0,"normal"],[1,"skipped"],[2,"muted"]])).entries());for(e=d.next();!e.done;e=d.next())f=g.q(e.value),e=f.next().value,f=f.next().value,(e=c.get(e))&&cpa(a,e,f);(d=c.get(3))&&dpa(a,d);(d=c.get(4))&&epa(a,d);(c=c.get(5))&&fpa(a,c)};
cpa=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&S_(a.o,d.slot)&&gpa(a,d.slot,d.layout,c)};
dpa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())O_(a,d.value.slot,!1)};
epa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;a:switch(J_(a.o,d.slot).B){case "not_filled":var e=!0;break a;default:e=!1}e&&(E_(a.Ra,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",d.slot),a.o.Er(d.slot))}};
fpa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;E_(a.Ra,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",d.slot);try{var e=a.o,f=d.slot,k=J_(e,f);if(!k)throw new T_("Got enter request for unknown slot");if(!k.w)throw new T_("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==k.o)throw new T_("Tried to enter a slot from stage: "+k.o);if(U_(k))throw new T_("Got enter request for already active slot");for(var l=g.q(V_(e,f.Ya).values()),m=l.next();!m.done;m=l.next()){var n=
m.value;if(k!==n&&U_(n))throw new T_("Trying to enter a slot when a slot of same type is already active. Its status: "+n.o);}}catch(z){w_(z.toString(),d.slot,d.layout);O_(a,d.slot,!0);continue}d=J_(a.o,d.slot);"scheduled"!==d.o&&L_(d.slot,d.o,"enterSlot");d.o="enter_requested";var p=d.w;d=p.Eb;p=p.slot;if(null!=J_(d.o,p)){E_(d.Ra,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",p);var t=J_(d.o,p);"enter_requested"!==t.o&&L_(t.slot,t.o,"onSlotEntered");t.o="entered";t=g.q(d.u);for(var u=t.next();!u.done;u=t.next())u.value.Rj(p);
hpa(d,p)}}};
hpa=function(a,b){var c;if(null!=J_(a.o,b)&&U_(J_(a.o,b))&&M_(a.o,b)&&!S_(a.o,b)){F_(a.Ra,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=M_(a.o,b))&&void 0!==c?c:void 0);var d=J_(a.o,b);"entered"!==d.o&&L_(d.slot,d.o,"enterLayoutForSlot");d.o="rendering";d.u.startRendering(d.layout)}};
gpa=function(a,b,c,d){if(null!=J_(a.o,b)){var e=a.Ra,f;var k=(null===(f=Noa.get(d))||void 0===f?void 0:f.Cp)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";F_(e,k,b,c);a=J_(a.o,b);"rendering"!==a.o&&L_(a.slot,a.o,"exitLayout");a.o="rendering_stop_requested";a.u.aj(c,d)}};
O_=function(a,b,c){if(null!=J_(a.o,b)){if(a.o.Ds(b)||a.o.Bs(b))if(J_(a.o,b).A=!0,!c)return;if(U_(J_(a.o,b)))J_(a.o,b).A=!0,apa(a,b,c);else{if(a.o.Es(b)){J_(a.o,b).A=!0;if(null!=J_(a.o,b)){E_(a.Ra,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b);var d=J_(a.o,b).C,e=d.Eb,f=d.slot;d=new T_("Got CancelSlotFulfilling request for "+d.slot.Ya+" in DirectFulfillmentAdapter.");w_(d.toString(),f);O_(e,f,!0)}if(!c)return}c=M_(a.o,b);E_(a.Ra,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);e=
J_(a.o,b);f=g.q(b.ld);for(d=f.next();!d.done;d=f.next()){d=d.value;var k=e.L.get(d.o);k&&(k.kf(d),e.L["delete"](d.o))}f=g.q(b.Kg);for(d=f.next();!d.done;d=f.next())if(d=d.value,k=e.I.get(d.o))k.kf(d),e.I["delete"](d.o);f=g.q(b.Jg);for(d=f.next();!d.done;d=f.next())if(d=d.value,k=e.G.get(d.o))k.kf(d),e.G["delete"](d.o);void 0!==e.layout&&(f=e.layout,W_(e,f.Ae),W_(e,f.Ve),W_(e,f.Ue));e.C=void 0;e.w=void 0;void 0!==e.u&&(e.u.Mo(),e.u=void 0);e=a.o;J_(e,b)&&(e=V_(e,b.Ya))&&e["delete"](b.slotId);E_(a.Ra,
"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.q(a.u);for(e=a.next();!e.done;e=a.next())e=e.value,e.ik(b),c&&e.gk(b,c)}}};
apa=function(a,b,c){if(null!=J_(a.o,b)&&U_(J_(a.o,b))){var d=M_(a.o,b);if(d&&S_(a.o,b))gpa(a,b,d,c?"error":"abandoned");else{E_(a.Ra,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=J_(a.o,b);if(!e)throw new T_("Cannot exit slot it is unregistered");"enter_requested"!==e.o&&"entered"!==e.o&&"rendering"!==e.o&&L_(e.slot,e.o,"exitSlot");e.o="exit_requested";if(void 0===e.w)throw e.o="scheduled",new T_("Cannot exit slot because adapter is not defined");var f=e.w,k=f.Eb,l=f.slot;if(null!=J_(k.o,
l)){E_(k.Ra,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",l);var m=J_(k.o,l);"exit_requested"!==m.o&&L_(m.slot,m.o,"onSlotExited");m.o="scheduled";for(var n=g.q(k.u),p=n.next();!p.done;p=n.next())p.value.Sj(l);null!=J_(k.o,l)&&J_(k.o,l).A&&O_(k,l,!1)}}catch(t){w_(t.toString(),b)}}}};
X_=function(a){this.slot=a;this.L=new Map;this.I=new Map;this.G=new Map;this.P=new Map;this.u=this.layout=this.w=this.C=void 0;this.mj=this.A=!1;this.F=[];this.o="not_scheduled";this.B="not_filled"};
U_=function(a){return"enter_requested"===a.o||a.isActive()};
Y_=function(a){Wa.call(this,"Layout error: "+a)};
T_=function(a){Wa.call(this,"Slot error: "+a)};
Z_=function(a,b,c,d,e){g.A.call(this);this.Kd=a;this.w=b;this.B=c;this.A=d;this.u=e;this.o=new Map};
V_=function(a,b){var c=a.o.get(b);return c?c:new Map};
J_=function(a,b){return V_(a,b.Ya).get(b.slotId)};
ipa=function(a){var b=[];a.o.forEach(function(c){c=g.q(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
S_=function(a,b){var c=J_(a,b),d;if(d=void 0!==c.layout)a:switch(c.o){case "rendering":case "rendering_stop_requested":d=!0;break a;default:d=!1}return d};
M_=function(a,b){var c=J_(a,b);return void 0!==c.layout?c.layout:null};
$_=function(a,b,c){if(g.db(c))throw new T_("No "+jpa.get(b)+" triggers found for slot.");c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Kd.gj.get(d.triggerType))throw new T_("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
a0=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Kd.gj.get(d.triggerType))throw new Y_("No trigger adapter registered for "+jpa.get(b)+" trigger of type: "+d.triggerType);};
b0=function(a,b,c,d){d=g.q(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Kd.gj.get(e.triggerType);f.bf(c,e,b.slot,b.layout?b.layout:null);b.P.set(e.o,f)}};
W_=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.P.get(d.o);e&&(e.kf(d),a.P["delete"](d.o))}};
L_=function(a,b,c){w_("Slot stage was "+b+" when calling method "+c,a)};
kpa=function(a){return c0(a.KN).concat(c0(a.gj)).concat(c0(a.Gr)).concat(c0(a.Eu)).concat(c0(a.Ks))};
c0=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Ij&&b.push(c);return b};
mpa=function(a){g.A.call(this);this.o=a;this.u=lpa(this)};
lpa=function(a){var b=new I_(function(c,d,e,f){return new Z_(a.o.Kd,c,d,e,f)},new Set(kpa(a.o.Kd).concat(a.o.listeners)),a.o.Ra);
g.C(a,b);return b};
d0=function(a){this.value=a};
e0=function(a){this.value=a};
f0=function(a){this.value=a};
g0=function(){d0.apply(this,arguments)};
h0=function(a){this.value=a};
i0=function(a){this.value=a};
j0=function(a){this.value=a};
k0=function(){d0.apply(this,arguments)};
l0=function(a){this.value=a};
m0=function(a){this.value=a};
n0=function(a){this.value=a};
o0=function(a){this.value=a};
p0=function(a){this.value=a};
q0=function(a){this.value=a};
r0=function(a){this.value=a};
s0=function(a){this.value=a};
t0=function(a){this.value=a};
u0=function(a){this.value=a};
v0=function(a){this.value=a};
w0=function(a){this.value=a};
npa=function(a,b){this.Eb=a;this.slot=b};
opa=function(){};
ppa=function(){};
x0=function(a,b,c,d){g.O.call(this);this.Eb=a;this.slot=b;this.layout=c;this.o=d;this.u=[]};
y0=function(a,b,c,d,e,f){this.w=a;this.Hb=b;this.oc=d;this.layoutId=e;this.o=new Set;this.u={adPlacementConfig:c,sG:void 0===f?null:f}};
z0=function(){return["metadata_type_ad_placement_config"]};
A0=function(a,b){var c=qpa(a.oc,a.layoutId,b);a.w.has(b)&&a.w.get(b)&&a.w.get(b).forEach(function(d){if(d=d.baseUrl){var e=a.Hb;e.Hh.send(d,rpa(e,a.u),c)}});
a.o.add(b)};
B0=function(a,b){a.o.has(b)||A0(a,b)};
C0=function(a,b,c,d,e,f,k,l,m,n,p){x0.call(this,a,b,c,d);this.Hb=e;this.A=f;this.Hd=k;this.F=l;this.G=m;this.C=n;this.Ij=!0;this.w=null;this.I=A_(this.layout.Ja,"metadata_type_ad_video_id");a=this.A;a.u.add(this);g.C(a,this);a=A_(this.layout.Ja,"metadata_type_ad_placement_config");this.B=new y0(c.hf,e,a,p,c.layoutId)};
spa=function(a,b){return y_(b,["metadata_type_ad_video_id"],["layout_type_media"])&&a.I===A_(b.Ja,"metadata_type_ad_video_id")?!0:!1};
D0=function(a,b,c,d,e,f,k,l){C0.call(this,a,b,c,d,e,f,k,"metadata_type_action_companion_ad_renderer",function(m,n){return new BV(m,n)},"action-companion",l)};
tpa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_ad_video_id"];z0().forEach(function(b){a.push(b)});
return{sf:a,xh:["layout_type_companion_with_action_button"]}};
upa=function(a,b,c,d,e,f,k,l){C0.call(this,a,b,c,d,e,f,k,"metadata_type_image_companion_ad_renderer",function(m,n){return new Joa(m,n)},"image-companion",l)};
vpa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_ad_video_id"];z0().forEach(function(b){a.push(b)});
return{sf:a,xh:["layout_type_companion_with_image"]}};
wpa=function(a,b,c,d,e,f,k,l){C0.call(this,a,b,c,d,e,f,k,"metadata_type_shopping_companion_carousel_renderer",function(m,n){return new qW(m,n)},"shopping-companion",l)};
xpa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_ad_video_id"];z0().forEach(function(b){a.push(b)});
return{sf:a,xh:["layout_type_companion_with_shopping"]}};
E0=function(a,b){return y_(a,b.sf,b.xh)?!0:!1};
ypa=function(a,b,c,d,e){this.He=a;this.Hb=b;this.u=c;this.Hd=d;this.oc=e};
zpa=function(a,b,c,d,e,f){this.Eb=a;this.slot=b;this.layout=c;this.Hb=d;this.nm=e;a=A_(this.layout.Ja,"metadata_type_ad_placement_config");this.o=new y0(c.hf,this.Hb,a,f,c.layoutId)};
Apa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];z0().forEach(function(b){a.push(b)});
return{sf:a,xh:["layout_type_forecasting"]}};
Bpa=function(a,b,c){this.Hb=a;this.nm=b;this.oc=c};
Cpa=function(a,b,c,d,e){this.He=a;this.Hb=b;this.u=c;this.Hd=d;this.oc=e};
Dpa=function(a,b,c,d,e,f,k,l,m){this.Eb=a;this.slot=b;this.layout=c;this.Cd=d;this.Fg=e;this.uf=f;this.nb=k;this.w=l;this.u=m;this.o=null;this.driftRecoveryMs=A_(c.Ja,"metadata_type_drift_recovery_ms")||null};
F0=function(a){var b=A_(a.layout.Ja,"metadata_type_layout_enter_ms");return a.u.reduce(function(c,d){return c+1E3*A_(d.layout.Ja,"metadata_type_video_length_seconds")},b)};
Epa=function(a,b){return null==b?null:a.u.find(function(c){return c.layout.layoutId===b})||null};
Fpa=function(a,b,c,d,e,f,k,l,m){this.Eb=a;this.slot=b;this.layout=c;this.Fg=d;this.o=e;this.nb=f;this.fj=k;this.oc=l;this.Cd=m;this.u=null};
Gpa=function(a,b,c,d){var e=A_(a.layout.Ja,"metadata_type_video_length_seconds");0>=e||0>=c||g.V(b,16)||g.V(b,32)||(G0(c,.25*e,d)&&B0(a.o,"first_quartile"),G0(c,.5*e,d)&&B0(a.o,"midpoint"),G0(c,.75*e,d)&&B0(a.o,"third_quartile"))};
G0=function(a,b,c){return a<b?!1:null!==c?c<=b:a<=b+1};
Hpa=function(a,b,c,d,e,f,k){this.Cd=a;this.Fg=b;this.nb=c;this.Hb=d;this.fj=e;this.uf=f;this.oc=k};
Ipa=function(a,b){this.slot=a;this.layout=b};
Jpa=function(){var a=["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback"];z0().forEach(function(b){a.push(b)});
return{sf:a,xh:["layout_type_media_layout_player_overlay"]}};
Kpa=function(){};
H0=function(a,b,c,d,e,f,k){x0.call(this,a,b,c,d);this.nb=e;this.Hb=f;this.Hd=k;this.w=!1;this.A=A_(this.layout.Ja,"metadata_type_linked_player_bytes_layout_id")};
Lpa=function(a,b,c,d){this.He=a;this.nb=b;this.Hb=c;this.Hd=d};
Mpa=function(a){this.w=a.cG?new Kpa:new Lpa(a.He,a.nb,a.Hb,a.Hd);this.o=new ypa(a.He,a.Hb,a.Uv,a.Hd,a.oc);this.A=new Cpa(a.He,a.Hb,a.Uv,a.Hd,a.oc);this.u=new Bpa(a.Hb,a.nm,a.oc);this.B=new Hpa(a.Cd,a.Fg,a.nb,a.Hb,a.fj,a.uf,a.oc)};
I0=function(a,b,c,d){g.A.call(this);this.B=a;this.A=b;this.opportunityType=c;this.Ra=d};
J0=function(a,b){D_(a.Ra,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a.opportunityType,void 0);var c=a.B.A(b);D_(a.Ra,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",a.opportunityType,c);if(c.length){var d=a.A();c=g.q(c);for(var e=c.next();!e.done;e=c.next())a:{var f=d;e=e.value;E_(f.Ra,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",e);try{var k=f.o;if(g.hc(e.slotId))throw new T_("Slot ID was empty");if(J_(k,e))throw new T_("Duplicate registration for slot.");if(!k.Kd.Gr.has(e.Ya))throw new T_("No fulfillment adapter factory registered for slot of type: "+
e.Ya);if(!k.Kd.Eu.has(e.Ya))throw new T_("No SlotAdapterFactory registered for slot of type: "+e.Ya);$_(k,5,e.ld);$_(k,4,e.Kg);$_(k,3,e.Jg);var l=f.o,m=V_(l,e.Ya);if(J_(l,e))throw new T_("Duplicate slots not supported");m.set(e.slotId,new X_(e));l.o.set(e.Ya,m)}catch(Vk){w_(Vk.toString(),e);break a}f.o.mj(e);try{for(var n=f.o,p=J_(n,e),t=g.q(e.ld),u=t.next();!u.done;u=t.next()){var z=u.value,B=n.Kd.gj.get(z.triggerType);B&&(B.bf(5,z,e,null),p.L.set(z.o,B))}for(var D=g.q(e.Kg),E=D.next();!E.done;E=
D.next()){var F=E.value,I=n.Kd.gj.get(F.triggerType);I&&(I.bf(4,F,e,null),p.I.set(F.o,I))}for(var ia=g.q(e.Jg),pa=ia.next();!pa.done;pa=ia.next()){var tc=pa.value,nd=n.Kd.gj.get(tc.triggerType);nd&&(nd.bf(3,tc,e,null),p.G.set(tc.o,nd))}var Bb=void 0,ob=void 0;n.Kd.Gr.get(e.Ya).get();var $d=n.w,rf=e,Oh={sf:["metadata_type_fulfilled_layout"]};b:{var Ph=Oh.Ya;if(Ph&&Ph!==rf.Ya)ob=!1;else{for(var bg=g.q(Oh.sf),Wk=bg.next();!Wk.done;Wk=bg.next())if(!rf.Ja.o.has(Wk.value)){ob=!1;break b}ob=!0}}if(ob)Bb=
new npa($d,rf);else throw new T_("Unsupported slot with type: "+rf.Ya+" and client metadata: "+B_(rf.Ja)+" in DefaultFulfillmentAdapterFactory.");p.C=Bb;n.Kd.Eu.get(e.Ya).get();p.w=new Npa(n.B,e)}catch(Vk){w_(Vk.toString(),e);O_(f,e,!0);break a}E_(f.Ra,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",e);Bb=J_(f.o,e);"not_scheduled"!==Bb.o&&L_(Bb.slot,Bb.o,"onSlotScheduled");Bb.o="scheduled";Bb=g.q(f.u);for(ob=Bb.next();!ob.done;ob=Bb.next())ob.value.Tj(e);R_(f,e)}}};
K0=function(a,b,c){I0.call(this,a,b,"opportunity_type_ad_placement_renderers_response_received",c)};
Opa=function(a,b,c,d){this.Eb=a;this.Kb=c;this.w=d;this.u=new Map;this.o=function(e){return function(f){return H_(b,e.slotId,e.Ya,e.vb,e.ld,f.layoutId,f.layoutType,f.vb)}}};
Rpa=function(a,b,c){if(b=Ppa(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=Qpa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.no=c)}else w_("InstreamVideoAdRenderer without externalVideoId")}};
L0=function(a,b,c,d,e,f){a=Qpa(a,d);a.Lq=b;a.Vh=c;a.Kq=e;a.Vk=f};
Qpa=function(a,b){a.u.has(b)||a.u.set(b,{instreamVideoAdRenderer:void 0,no:void 0,Vh:void 0,adVideoId:b,Kq:void 0,Lq:void 0,Vk:void 0});return a.u.get(b)};
Spa=function(a,b){return void 0===a.Vk?!1:void 0===a.instreamVideoAdRenderer?(w_("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1):void 0===a.Kq?(w_("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1):void 0===a.no||void 0===a.Vh||a.no!==a.Vh&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==a.Vh?!1:void 0===a.instreamVideoAdRenderer.elementId?(w_("InstreamVideoAdRenderer has no elementId, kind: "+(a.no+", matching APSR kind: "+
a.Vh+". APR count: "+b.Ug.length+". isAdBreakResponse: "+b.oo)),!1):"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===a.Vh&&void 0===a.Lq?(w_("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1):!0};
Ppa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&a.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer;return c?(b.push(c),b):a.instreamVideoAdRenderer?(b.push(a.instreamVideoAdRenderer),b):a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds?(a.linearAdSequenceRenderer.linearAds.forEach(function(d){d.instreamVideoAdRenderer&&b.push(d.instreamVideoAdRenderer)}),b):null};
Tpa=function(a){var b,c,d,e=null===(b=a.config)||void 0===b?void 0:b.adPlacementConfig,f=null===(d=null===(c=a.config)||void 0===c?void 0:c.adPlacementConfig)||void 0===d?void 0:d.kind;a=a.renderer;return!!(e&&f&&a)};
Upa=function(a){var b,c;return void 0!==(null===(c=null===(b=a.renderer)||void 0===b?void 0:b.adBreakServiceRenderer)||void 0===c?void 0:c.getAdBreakUrl)};
Xpa=function(a,b){var c=a.config.adPlacementConfig,d=(c.adTimeOffset||{}).offsetStartMilliseconds;if(void 0===d)throw new TypeError("Expected start offset");d=Number(d);if(isNaN(d))throw new TypeError("Expected valid start offset");var e=(a.renderer.linearAdSequenceRenderer||{}).linearAds;if(null===e||void 0===e||!e.length)throw new TypeError("Expected linear ads");var f=d,k=0;e=e.map(function(l){var m=l.instreamVideoAdRenderer;if(!m)throw new TypeError("Expected instream video ad renderer");if(!m.playerVars)throw new TypeError("Expected player vars in url encoded string");
l=g.rq(m.playerVars);var n=Number(l.length_seconds);if(isNaN(n))throw new TypeError("Expected valid length seconds in player vars");var p=f,t=k,u=Number(m.trimmedMaxNonSkippableAdDurationMs);n=isNaN(u)?n:Math.min(n,u/1E3);f+=1E3*n;k++;m=m.pings?wU(m.pings):new Map;u=$r();var z={layoutId:u,layoutType:"layout_type_media",vb:"adapter"};return{layoutId:u,layoutType:"layout_type_media",hf:m,Ae:[],Ve:[],Ue:[],vb:"adapter",Ja:new z_([new q0(n),new r0(l),new s0(p),new t0(t)]),vi:b(z)}});
return Vpa(d,e,c,new Map([["ad_placement_start",a.placementStartPings||[]],["ad_placement_end",a.placementEndPings||[]]]),Wpa(a),b)};
Wpa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
M0=function(a,b,c,d,e,f,k,l){I0.call(this,a,b,"opportunity_type_live_stream_break_signal",c);var m=this;this.Cd=d;this.u=e;this.uf=f;this.nb=k;this.w=l;this.o=null;d.addListener(this);g.Je(this,function(){d.removeListener(m)});
f.addListener(this);g.Je(this,function(){f.removeListener(m)})};
$pa=function(a,b,c){var d=a.nb.N.getCurrentTime(1,!1);d=Ypa(c,d);a.w.schedule({contentCpn:b.contentCpn,DE:new Yn(1E3*d.start,1E3*d.end),XN:null,execute:function(){return Zpa(a,b,c)}})};
Zpa=function(a,b,c){var d=b.contentCpn,e=b.adPlacementRenderer.renderer.adBreakServiceRenderer.getAdBreakUrl,f=b.Uk;return rh(a,function l(){var m=this,n,p;return Ba(l,function(t){if(1==t.o)return g.ua(t,m.u.fetch({YO:e,hi:c,lE:aqa(c)}),2);n=t.u;2<=n.length&&w_("Unexpected "+n.length+" ad placement renderers");n.length||w_("Expected ad placement renderer");p={Ug:n,Mq:n,contentCpn:d,Uk:f,oo:!0,wb:!0};J0(m,p);t.o=0})})};
Ypa=function(a,b){var c=a.startSecs+a.durationSecs;return a.startSecs<=b?new Yn(a.startSecs-4,c):new Yn(Math.floor(b+Math.random()*Math.max(0,a.startSecs-b-10)),c)};
aqa=function(a){var b=1E3*a.startSecs;return new g.mC(b,b+1E3*a.durationSecs)};
N0=function(a,b){g.A.call(this);var c=this;this.qe=a;this.o=new Map;b.addListener(this);g.Je(this,function(){b.removeListener(c)})};
O0=function(a,b,c,d,e){I0.call(this,a,c,"opportunity_type_player_bytes_media_layout_entered",e);this.o=b;this.Kb=d;this.Ij=!0};
P0=function(a,b){this.Ra=a;this.Vk=b};
Q0=function(){g.A.apply(this,arguments);this.Ij=!0;this.o=new Map};
Npa=function(a,b){this.Eb=a;this.slot=b};
bqa=function(){};
R0=function(a,b){this.o=a;this.u=b;this.triggerType="trigger_type_layout_id_entered"};
S0=function(a,b){this.o=a;this.B=b;this.triggerType="trigger_type_layout_id_exited"};
T0=function(a,b){this.o=a;this.B=b;this.Ya="slot_type_player_bytes";this.layoutType="layout_type_media";this.triggerType="trigger_type_on_different_layout_id_entered"};
U0=function(a){this.o=$r();this.w=a;this.triggerType="trigger_type_slot_id_entered"};
V0=function(a){this.o=$r();this.B=a;this.triggerType="trigger_type_slot_id_exited"};
W0=function(a){this.o=$r();this.A=a;this.triggerType="trigger_type_slot_id_scheduled"};
X0=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
Y0=function(a){g.A.call(this);this.o=a;this.Ij=!0;this.u=new Map;this.B=new Set;this.A=new Set;this.C=new Set;this.w=new Set};
cqa=function(a,b){this.o=a;this.layoutId=b;this.triggerType="trigger_type_close_requested"};
Z0=function(){g.A.call(this);this.o=new Map};
dqa=function(a,b){this.o=a;this.u=b;this.triggerType="trigger_type_before_content_video_id_started"};
$0=function(a,b){g.A.call(this);var c=this;this.w=a;this.o=new Map;b.addListener(this);g.Je(this,function(){b.removeListener(c)})};
eqa=function(a,b){for(var c=[],d=g.q(a.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.u===b&&c.push(e);return c};
fqa=function(a){this.o=$r();this.visible=a;this.triggerType="trigger_type_after_content_video_id_ended"};
gqa=function(a,b,c){this.o=a;this.u=b;this.visible=c;this.triggerType="trigger_type_media_time_range"};
a1=function(a,b){g.A.call(this);this.w=a;this.qe=b;this.o=new Map};
hqa=function(){this.o=$r();this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED"};
iqa=function(){this.o=$r();this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED"};
b1=function(a,b){var c;g.A.call(this);var d=this;this.A=a;this.u=new Map;this.w=new Map;this.o=null;b.addListener(this);g.Je(this,function(){b.removeListener(d)});
this.o=(null===(c=b.Cn)||void 0===c?void 0:c.slotId)||null};
jqa=function(a,b){for(var c=[],d=g.q(a.values()),e=d.next();!e.done;e=d.next())e=e.value,e.slot.slotId===b&&c.push(e);return c};
c1=function(a){this.o=$r();this.layoutId=a;this.triggerType="trigger_type_on_layout_self_exit_requested"};
d1=function(a,b){this.o=a;this.slotId=b;this.triggerType="trigger_type_on_element_self_enter_requested"};
e1=function(a){g.A.call(this);this.A=a;this.Ij=!0;this.w=new Map;this.u=this.o=null};
kqa=function(a,b){for(var c=[],d=g.q(a.w.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof c1&&e.trigger.layoutId===b&&Moa(e.category)&&c.push(e);c.length&&Q_(a.A(),c)};
f1=function(a,b){this.o=a;this.contentVideoId=b;this.triggerType="trigger_type_on_new_playback_after_content_video_id"};
g1=function(a,b){g.A.call(this);var c=this;this.u=a;this.Cd=b;this.o=new Map;b.addListener(this);g.Je(this,function(){b.removeListener(c)})};
h1=function(a){this.o=$r();this.durationMs=45E3;this.layoutId=a;this.triggerType="trigger_type_time_relative_to_layout_enter"};
i1=function(a){g.A.call(this);this.A=a;this.Ij=!0;this.u=new Map;this.o=new Map;this.w=new Map};
lqa=function(a){g.A.call(this);this.A=new Y0(a.Qh);g.C(this,this.A);this.o=new e1(a.Qh);g.C(this,this.o);this.w=new b1(a.Qh,a.Cd);g.C(this,this.w);this.F=new g1(a.Qh,a.Cd);g.C(this,this.F);this.C=new $0(a.Qh,a.fE);g.C(this,this.C);this.u=new a1(a.Qh,a.qe);g.C(this,this.u);this.G=new i1(a.Qh);g.C(this,this.G);this.B=new Z0(a.Qh);g.C(this,this.B)};
mqa=function(){};
j1=function(a,b,c,d,e,f,k){var l=$r(),m={layoutId:l,layoutType:a,vb:"core"},n=new Map;f?(0===f.length&&w_("Companion Ad Renderer with no impression Pings"),n.set("impression",f)):w_("Companion Ad Renderer without impression Pings field");return{layoutId:l,layoutType:a,hf:n,Ae:[new c1(l),new T0($r(),d)],Ve:[],Ue:[],vb:"core",Ja:new z_([b,new k0(c),new j0(e)]),vi:k(m)}};
k1=function(a,b,c,d,e){var f={layoutId:a,layoutType:b,vb:"core"};return{layoutId:a,layoutType:b,hf:new Map,Ae:[],Ve:[new cqa($r(),a)],Ue:[],vb:"core",Ja:new z_([new g0(c),new j0(d)]),vi:e(f)}};
Vpa=function(a,b,c,d,e,f){b.every(function(m){return y_(m,[],["layout_type_media"])})||w_("Unexpect subLayout type for DAI composite layout");
var k=$r(),l={layoutId:k,layoutType:"layout_type_composite_player_bytes",vb:"core"};return{layoutId:k,layoutType:"layout_type_composite_player_bytes",hf:d,Ae:[new hqa],Ve:[],Ue:[],vb:"core",Ja:new z_([new s0(a),new p0(b),new j0(c),new v0(e)]),vi:f(l)}};
nqa=function(a,b,c){var d=$r();b=[new R0($r(),b)];var e={slotId:d,Ya:"slot_type_in_player",vb:"core",ld:b};return{slotId:d,Ya:"slot_type_in_player",ld:b,Kg:[new U0(d)],Jg:[new f1($r(),a),new V0(d)],vb:"core",Ja:new z_([new w0(c(e))])}};
pqa=function(a,b,c){var d=oqa(a,b);if(d&&(a=$r(),d=[d],c=c({slotId:a,Ya:"slot_type_in_player",vb:"core",ld:d})))return{slotId:a,Ya:"slot_type_in_player",ld:d,Kg:[new U0(a)],Jg:[new f1($r(),b),new V0(a)],vb:"core",Ja:new z_([new w0(c)])}};
rqa=function(a,b,c,d){var e=$r();return qqa(e,a,new R0($r(),c),b,d)};
sqa=function(a,b,c,d){return qqa(b,a,new d1($r(),b),c,d)};
tqa=function(a,b){var c=$r(),d=[new iqa],e={slotId:c,Ya:"slot_type_player_bytes",vb:"core",ld:d};return{slotId:c,Ya:"slot_type_player_bytes",ld:d,Kg:[new W0(c)],Jg:[new f1($r(),a)],vb:"core",Ja:new z_([new w0(b(e))])}};
uqa=function(a,b,c){var d=$r();if(a=oqa(a,b)){a=[a];var e={slotId:d,Ya:"slot_type_forecasting",vb:"core",ld:a};return{slotId:d,Ya:"slot_type_forecasting",ld:a,Kg:[new U0(d)],Jg:[new V0(d),new f1($r(),b)],vb:"core",Ja:new z_([new w0(c(e))])}}};
oqa=function(a,b){var c,d,e=!a.hideCueRangeMarker;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new dqa($r(),b);case "AD_PLACEMENT_KIND_MILLISECONDS":if(null===(c=a.adTimeOffset)||void 0===c||!c.offsetStartMilliseconds){w_("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");break}if(null===(d=a.adTimeOffset)||void 0===d||!d.offsetEndMilliseconds){w_("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");break}var f=Number(a.adTimeOffset.offsetStartMilliseconds),k=Number(a.adTimeOffset.offsetEndMilliseconds);
if(isNaN(f)||isNaN(k)||f>=k){w_("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be > startMs.");break}return new gqa($r(),new Yn(f,k),e);case "AD_PLACEMENT_KIND_END":return new fqa(e);default:w_("Cannot construct entry trigger from AdPlacementKind: "+(a.kind+"."))}};
qqa=function(a,b,c,d,e){c=[c];var f={slotId:a,Ya:b,vb:"core",ld:c};return{slotId:a,Ya:b,ld:c,Kg:[new U0(a)],Jg:[new f1($r(),d),new V0(a)],vb:"core",Ja:new z_([new w0(e(f))])}};
vqa=function(){this.o=new Map};
l1=function(a,b,c){g.A.call(this);this.w=a;this.zg=b;this.Ra=c;this.o=this.u=null;this.zg.addListener(this)};
wqa=function(a){g.A.call(this);this.o=new l1(a.CE,a.fG,a.Ra);g.C(this,this.o)};
xqa=function(a,b,c){this.Jq=a;this.o=b;this.Kb=c};
yqa=function(a,b,c){var d=null;try{d=JSON.parse(a.response)}catch(f){return a.response&&(b=a.response,b.startsWith("GIF89")||(f.params=b.substr(0,256),g.ar(f))),[]}if(!d)return[];a=d;g.P(c.N.M().experiments,"html5_enable_visual_element_logging_for_deferred_ads")&&a&&a.trackingParams&&yX(wX(),a.trackingParams);if(a.adThrottled)return[];c=a.playerAds;if(!c||!c.length)return[];c=c.map(function(f){return f.adPlacementRenderer}).filter(function(f){return!(!f||!f.renderer)});
if(!c.length)return[];if(0<b.end){var e=b.end.toString();c.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===f.kind&&f.adTimeOffset&&"-1"===f.adTimeOffset.offsetEndMilliseconds&&f.adTimeOffset.offsetEndMilliseconds!==e&&(f.adTimeOffset.offsetEndMilliseconds=e)})}return c};
m1=function(a){g.A.call(this);this.N=a;this.listeners=[];this.o=new g.Nr(this);g.C(this,this.o);this.o.K(this.N,"aduxclicked",this.onAdUxClicked);this.o.K(this.N,"aduxmouseover",this.hH);this.o.K(this.N,"aduxmouseout",this.gH);this.o.K(this.N,"muteadaccepted",this.RJ)};
zqa=function(a,b,c){b=(0,g.Fc)(b,function(d){return new XT(d,c,d.id)});
a.N.na("onAdUxUpdate",b)};
n1=function(a){this.o=a;this.listeners=[]};
o1=function(a,b){g.A.call(this);var c=this;this.N=a;this.listeners=[];this.o=new Set;this.w=[];this.A=new YW(this);this.u=new ZW;b.addListener(this);g.Je(this,function(){b.removeListener(c)});
Aqa(this)};
Aqa=function(a){var b,c=a.N.getVideoData(1);c.subscribe("cuepointupdated",a.Ty,a);a.o.clear();c=(null===(b=c.ia)||void 0===b?void 0:Yx(b,0))||[];var d=g.q(c);for(c=d.next();!c.done;c=d.next())a.o.add(c.value);a.w.length=0;d=g.q(a.o);for(c=d.next();!c.done;c=d.next())a.A.reduce(c.value)};
p1=function(a){g.A.call(this);this.N=a;this.o=new Map;this.u=new g.Nr(this);g.C(this,this.u);this.u.K(this.N,g.pC("ad"),this.w,this);this.u.K(this.N,"crx_ad",this.A,this)};
Bqa=function(a,b,c,d){g.mC.call(this,b,c,{id:a,namespace:"ad",priority:2,visible:d})};
Cqa=function(a){this.N=a};
PW=function(a){return g.P(a.N.M().experiments,"html5_enable_companion_with_action_on_above_feed_slot")};
QW=function(a){return g.P(a.N.M().experiments,"html5_enable_companion_with_image_on_above_feed_slot")};
RW=function(a){return g.P(a.N.M().experiments,"html5_enable_companion_with_shopping_on_above_feed_slot")};
q1=function(a){return g.P(a.N.M().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
OW=function(a){var b=(g.mz(a.N.M())||a.N.M().o||"WEB_EMBEDDED_PLAYER"==a.N.M().deviceParams.c||ez(a.N.M()))&&g.P(a.N.M().experiments,"html5_enable_video_overlay_on_inplayer_slot");a=g.cz(a.N.M())&&g.P(a.N.M().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_tv");return b||a};
Qoa=function(a){return g.P(a.N.M().experiments,"html5_force_debug_data_for_client_tmp_logs")};
HY=function(a){return g.P(a.N.M().experiments,"html5_pacf_enable_dai")};
r1=function(a){return g.P(a.N.M().experiments,"html5_enable_forecasting_in_pacf")};
s1=function(){this.listeners=[]};
Dqa=function(a,b,c,d,e){a.listeners.forEach(function(f){if(f.o)w_(f.o.layoutId===b?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event.");else{var k=$r();f.u={slotId:k,Ya:"slot_type_player_bytes",ld:[],Kg:[],Jg:[],vb:"surface",Ja:new z_([])};var l=[],m=c.B||"";m&&l.push(new k0(m));(m=(m=c.o)&&m.playerOverlay&&m.playerOverlay.instreamAdPlayerOverlayRenderer)&&l.push(new m0(m));c.o.adNextParams&&l.push(new f0(c.o.adNextParams||""));l.push(new l0(d));l.push(new o0(e));
l.push(new j0(c.ba));f.o={layoutId:b,layoutType:"layout_type_media",hf:new Map,Ae:[],Ve:[],Ue:[],vb:"surface",Ja:new z_(l),vi:H_(f.Ra,k,"slot_type_player_bytes","surface",[],b,"layout_type_media","surface")};Zoa(f.w(),f.u,f.o);$oa(f.w(),f.u,f.o)}})};
Dma=function(a,b,c){a.listeners.forEach(function(d){if(d.o&&d.o.layoutId===b){var e="c"===c?"abandoned":"normal";bpa(d.w(),d.u,d.o,e);d.u=null;d.o=null}else w_("Received AD_ENDED for unknown layout")})};
t1=function(a,b){this.nb=a;this.N=b;this.o=new Map;WU().subscribe("e",this.w,this);WU().subscribe("j",this.u,this);WU().subscribe("s",this.A,this)};
Eqa=function(a,b,c,d){d=void 0===d?null:d;a.o.has(b)?w_("Unexpected registration of layout in LidarApi"):(a.o.set(b,d),mma(WU(),b,{pl:function(){return{currentTime:a.nb.N.getCurrentTime(2,!1),duration:c,ab:2===a.nb.getPresentingPlayerType()&&1===g.QK(a.nb.N,2),sT:!1,tT:!0,volume:a.nb.isMuted()?0:a.nb.getVolume()/100}}}))};
qpa=function(a,b,c){if(!a.o.has(b))return{};if("seek"===c)return a=g.P(a.N.M().experiments,"html5_dai_enable_active_view_creating_completed_adblock"),Nm(b,a),{};c=dV(c);if(null===c)return{};var d=a.N.kb();d=d&&2===d.getPlayerType()&&wJ(d);if(!d)return{};a={opt_adElement:d,opt_fullscreen:a.nb.isFullscreen()};return Mm(c,b,a)};
u1=function(a){this.o=a};
Fqa=function(a){var b=void 0===b?new gU(new u1(function(){var c=a.getVideoData(1);return c?c.Qd():""})):b;
this.N=a;this.Hh=b};
Gqa=function(a){if(a=a.N.kb())if(a=TH(a.B))return a;return function(){}};
rpa=function(a,b){var c={},d={},e={};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},RU(MU(a.N))),(c.FINAL="1",c)),RU(OU(b.adPlacementConfig))),(d.SLOT_POS=(b.sG||0).toString(),d)),void 0!==b.adCpn?(e.AD_CPN=b.adCpn,e):{})};
w1=function(a,b){g.A.call(this);this.N=a;this.fj=b;this.listeners=[];var c=new g.tR(this);g.C(this,c);c.K(a,"videodatachange",this.vN);this.Cn=v1(this);this.contentCpn=v1(this,1).clientPlaybackNonce};
v1=function(a,b){var c=a.N.getVideoData(b);return c?a.jn(c):null};
x1=function(a){g.A.call(this);this.N=a;this.listeners=[];var b=new g.Nr(this);g.C(this,b);b.K(a,"progresssync",this.pM);b.K(a,"presentingplayerstatechange",this.hM);b.K(a,"fullscreentoggled",this.iH);b.K(a,"minimized",this.jH);b.K(a,"resize",this.kH)};
Kqa=function(a,b,c){function d(){return u}
g.A.call(this);var e=new m1(a);g.C(this,e);var f=new x1(a);g.C(this,f);var k=new Fqa(a);this.zg=new s1;this.u=new Cqa(a);var l=new vqa,m=new w1(a,l);g.C(this,m);var n=new o1(a,m);g.C(this,n);b=new xqa(b,c,this.u);c=new p1(a);g.C(this,c);var p=new t1(f,a);this.Ra=new C_(this.u);g.C(this,this.Ra);this.C=new Q0;g.C(this,this.C);var t=new mqa,u=null,z=new Opa({Tt:function(E){D.Tt(E)}},this.Ra,this.u,a.M().o?"slot_type_below_player":"slot_type_above_feed"),B=new N0(c,m),D=new M0(z,d,this.Ra,m,b,n,f,B);
g.C(this,D);this.G=g.cz(a.M())?new O0(new P0(this.Ra,t.o),Hqa,d,this.u,this.Ra):new O0(new P0(this.Ra,t.o),Iqa,d,this.u,this.Ra);g.C(this,this.G);this.A=new K0(z,d,this.Ra);g.C(this,this.A);this.B=new n1(this.A);this.o=new lqa({Qh:d,Cd:m,fE:this.B,qe:c});g.C(this,this.o);this.w=new Mpa({cG:g.cz(a.M()),He:e,nb:f,Hb:k,Uv:d,Hd:this.C,nm:this.o.o,Cd:m,Fg:a,fj:l,uf:n,oc:p});this.F=new mpa({Kd:Jqa(this,D),listeners:[this.C],Ra:this.Ra,AT:this.B,uT:y1(this)});g.C(this,this.F);u=this.F.u;a=new wqa({fG:this.zg,
CE:d,Ra:this.Ra});g.C(this,a)};
y1=function(a){return{QD:a.A,MD:a.o.o,zg:a.zg,Kb:a.u}};
Jqa=function(a,b){var c=new x_(function(){return new bqa}),d=new x_(function(){return new ppa}),e=a.o.A;
return{KN:new Map([["opportunity_type_player_bytes_media_layout_entered",a.G],["opportunity_type_ad_placement_renderers_response_received",a.A],["opportunity_type_live_stream_break_signal",b]]),Gr:new Map([["slot_type_in_player",d],["slot_type_above_feed",d],["slot_type_below_player",d],["slot_type_forecasting",d],["slot_type_player_bytes",d]]),gj:new Map([["trigger_type_on_layout_self_exit_requested",a.o.o],["trigger_type_on_element_self_enter_requested",a.o.o],["trigger_type_on_new_playback_after_content_video_id",
a.o.F],["trigger_type_slot_id_entered",e],["trigger_type_slot_id_exited",e],["trigger_type_slot_id_scheduled",e],["trigger_type_layout_id_entered",e],["trigger_type_layout_id_exited",e],["trigger_type_on_different_layout_id_entered",e],["trigger_type_before_content_video_id_started",a.o.C],["trigger_type_media_time_range",a.o.u],["trigger_type_after_content_video_id_ended",a.o.u],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",a.o.w],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",a.o.w],["trigger_type_close_requested",
a.o.B],["trigger_type_time_relative_to_layout_enter",a.o.G]]),Eu:new Map([["slot_type_in_player",c],["slot_type_above_feed",c],["slot_type_below_player",c],["slot_type_forecasting",c],["slot_type_player_bytes",c]]),Ks:new Map([["slot_type_in_player",new x_(function(){return a.w.w})],
["slot_type_above_feed",new x_(function(){return a.w.o})],
["slot_type_below_player",new x_(function(){return a.w.A})],
["slot_type_forecasting",new x_(function(){return a.w.u})],
["slot_type_player_bytes",new x_(function(){return a.w.B})]])}};
z1=function(a){g.wL.call(this,a);var b=this;this.o=null;this.w=new OT(this.player);this.A=new uY(this.player);this.u=new Kqa(this.player,this.w,this.A);g.C(this,this.u);this.created=!1;var c=a.M();!az(c)||g.dz(c)||ez(c)||(c=function(){return b.o},g.C(this,new u_(a,c)),g.C(this,bV(a)?new t_(a,c):new s_(a,c)))};
Lqa=function(a,b){if(null!==a.o){var c=a.o;switch(b){case "control_play":c.u&&(c=c.u,c.uh()?c.N.kb().playVideo():c.dm()&&c.u.rg());break;case "control_pause":c.u&&(c=c.u,c.uh()?c.N.kb().pauseVideo():c.dm()&&c.u.nh())}}};
Nqa=function(a,b){var c={kn:[],qp:[]};if(!a||!a.adPlacements)return c;var d=a.adPlacements.map(function(k){return k.adPlacementRenderer}),e=a.playerConfig&&a.playerConfig.daiConfig&&a.playerConfig.daiConfig.enableDai||!1;
d=g.q(d);for(var f=d.next();!f.done;f=d.next())(f=f.value)&&null!=f.renderer&&(Mqa(f.renderer,b,e)?c.qp.push(f):c.kn.push(f));return c};
Mqa=function(a,b,c){return null!=a.actionCompanionAdRenderer?PW(b):null!=a.imageCompanionAdRenderer?QW(b):null!=a.shoppingCompanionCarouselRenderer?RW(b):null!=a.invideoOverlayAdRenderer?q1(b):null!=a.clientForecastingAdRenderer?r1(b):null!=a.adBreakServiceRenderer?HY(b)&&c:!1};
g.A1=function(a){if(!Oqa.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Pqa,"#$1$1$2$2$3$3"));a=a.toLowerCase();a=parseInt(a.substr(1),16);return[a>>16,a>>8&255,a&255]};
Qqa=function(){if(!g.ke)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.B1=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;kh();a=Xc(a,null);return b.parseFromString(g.Tc(a),"application/xml")}if(Rqa){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.C1=function(a){g.A.call(this);this.u=a;this.o={}};
Sqa=function(a,b,c,d,e,f){if(Array.isArray(c))for(var k=0;k<c.length;k++)Sqa(a,b,c[k],d,e,f);else{b=Ve(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.o[b.key]=b}return a};
g.Tqa=function(a){g.Cb(a.o,function(b,c){this.o.hasOwnProperty(c)&&ef(b)},a);
a.o={}};
D1=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
E1=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
aa=[];fa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b};
if("function"==typeof Object.setPrototypeOf)F1=Object.setPrototypeOf;else{var G1;a:{var Uqa={a:!0},Vqa={};try{Vqa.__proto__=Uqa;G1=Vqa.a;break a}catch(a){}G1=!1}F1=G1?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ha=F1,ma="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;
a[b]=c.value;return a},la=aaa(this);
na.prototype.toString=function(){return this.o};
var baa=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}();
ra.prototype.F=function(a){this.u=a};
ra.prototype["return"]=function(a){this.A={"return":a};this.o=this.G};
Ca("Promise",function(a){function b(k){this.u=0;this.w=void 0;this.o=[];var l=this.A();try{k(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.o=null}
function d(k){return k instanceof b?k:new b(function(l){l(k)})}
if(a)return a;c.prototype.u=function(k){if(null==this.o){this.o=[];var l=this;this.w(function(){l.B()})}this.o.push(k)};
var e=la.setTimeout;c.prototype.w=function(k){e(k,0)};
c.prototype.B=function(){for(;this.o&&this.o.length;){var k=this.o;this.o=[];for(var l=0;l<k.length;++l){var m=k[l];k[l]=null;try{m()}catch(n){this.A(n)}}}this.o=null};
c.prototype.A=function(k){this.w(function(){throw k;})};
b.prototype.A=function(){function k(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:k(this.P),reject:k(this.B)}};
b.prototype.P=function(k){if(k===this)this.B(new TypeError("A Promise cannot resolve to itself"));else if(k instanceof b)this.L(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.I(k):this.C(k)}};
b.prototype.I=function(k){var l=void 0;try{l=k.then}catch(m){this.B(m);return}"function"==typeof l?this.R(l,k):this.C(k)};
b.prototype.B=function(k){this.F(2,k)};
b.prototype.C=function(k){this.F(1,k)};
b.prototype.F=function(k,l){if(0!=this.u)throw Error("Cannot settle("+k+", "+l+"): Promise already settled in state"+this.u);this.u=k;this.w=l;this.G()};
b.prototype.G=function(){if(null!=this.o){for(var k=0;k<this.o.length;++k)f.u(this.o[k]);this.o=null}};
var f=new c;b.prototype.L=function(k){var l=this.A();k.qn(l.resolve,l.reject)};
b.prototype.R=function(k,l){var m=this.A();try{k.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(k,l){function m(u,z){return"function"==typeof u?function(B){try{n(u(B))}catch(D){p(D)}}:z}
var n,p,t=new b(function(u,z){n=u;p=z});
this.qn(m(k,n),m(l,p));return t};
b.prototype["catch"]=function(k){return this.then(void 0,k)};
b.prototype.qn=function(k,l){function m(){switch(n.u){case 1:k(n.w);break;case 2:l(n.w);break;default:throw Error("Unexpected state: "+n.u);}}
var n=this;null==this.o?f.u(m):this.o.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).qn(l,m)})};
b.all=function(k){var l=g.q(k),m=l.next();return m.done?d([]):new b(function(n,p){function t(B){return function(D){u[B]=D;z--;0==z&&n(u)}}
var u=[],z=0;do u.push(void 0),z++,d(m.value).qn(t(u.length-1),p),m=l.next();while(!m.done)})};
return b});
Ca("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ea(this,b,c).Ox}});
Ca("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Fa(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}});
Ca("Array.prototype.find",function(a){return a?a:function(b,c){return Ea(this,b,c).IC}});
Ca("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Fa(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}});
Ca("String.prototype.repeat",function(a){return a?a:function(b){var c=Fa(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}});
Ca("WeakMap",function(a){function b(m){this.o=(l+=Math.random()+1).toString();if(m){m=g.q(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!Ga(m,k)){var n=new c;ma(m,k,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p["delete"](m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(t){return!1}}())return a;
var k="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!Ga(m,k))throw Error("WeakMap key fail: "+m);m[k][this.o]=n;return this};
b.prototype.get=function(m){return d(m)&&Ga(m,k)?m[k][this.o]:void 0};
b.prototype.has=function(m){return d(m)&&Ga(m,k)&&Ga(m[k],this.o)};
b.prototype["delete"]=function(m){return d(m)&&Ga(m,k)&&Ga(m[k],this.o)?delete m[k][this.o]:!1};
return b});
Ca("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.o;return oa(function(){if(n){for(;n.head!=l.o;)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.u[n];if(p&&Ga(l.u,n))for(var t=0;t<p.length;t++){var u=p[t];if(m!==m&&u.key!==u.key||m===u.key)return{id:n,list:p,index:t,Ed:u}}return{id:n,list:p,index:-1,Ed:void 0}}
function e(l){this.u={};this.o=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(t){return!1}}())return a;
qa();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.u[n.id]=[]);n.Ed?n.Ed.value=m:(n.Ed={next:this.o,previous:this.o.previous,head:this.o,key:l,value:m},n.list.push(n.Ed),this.o.previous.next=n.Ed,this.o.previous=n.Ed,this.size++);return this};
e.prototype["delete"]=function(l){l=d(this,l);return l.Ed&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.u[l.id],l.Ed.previous.next=l.Ed.next,l.Ed.next.previous=l.Ed.previous,l.Ed.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.u={};this.o=this.o.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).Ed};
e.prototype.get=function(l){return(l=d(this,l).Ed)&&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});
Ca("Array.prototype.keys",function(a){return a?a:function(){return Ha(this,function(b){return b})}});
Ca("Set",function(a){function b(c){this.o=new Map;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.o.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;
qa();b.prototype.add=function(c){c=0===c?0:c;this.o.set(c,c);this.size=this.o.size;return this};
b.prototype["delete"]=function(c){c=this.o["delete"](c);this.size=this.o.size;return c};
b.prototype.clear=function(){this.o.clear();this.size=0};
b.prototype.has=function(c){return this.o.has(c)};
b.prototype.entries=function(){return this.o.entries()};
b.prototype.values=function(){return this.o.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.o.forEach(function(f){return c.call(d,f,f,e)})};
return b});
Ca("Array.prototype.values",function(a){return a?a:function(){return Ha(this,function(b,c){return c})}});
var Wqa="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)Ga(d,e)&&(a[e]=d[e])}return a};
Ca("Object.assign",function(a){return a||Wqa});
Ca("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}});
Ca("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}});
Ca("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}});
Ca("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ga(b,d)&&c.push([d,b[d]]);return c}});
Ca("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
Ca("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}});
Ca("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Fa(this,b,"includes").indexOf(b,c||0)}});
var Xqa=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}}();
Ca("Reflect.construct",function(){return Xqa});
Ca("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ga(b,d)&&c.push(b[d]);return c}});
Ca("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Fa(this,null,"padStart"),e=b-d.length,f=void 0!==c?String(c):" ";return(0<e&&f?f.repeat(Math.ceil(e/f.length)).substring(0,e):"")+d}});
Ca("Object.fromEntries",function(a){return a?a:function(b){var c={};qa();if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});
Ca("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
Ca("WeakSet",function(a){function b(c){this.o=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.o.set(c,!0);return this};
b.prototype.has=function(c){return this.o.has(c)};
b.prototype["delete"]=function(c){return this.o["delete"](c)};
return b});
Ca("Number.parseInt",function(a){return a||parseInt});
Ca("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
g.H1=g.H1||{};g.v=this||self;eaa=/^[\w+/_-]+[=]{0,2}$/;ad=null;Ra="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.G=Date.now||function(){return+new Date};g.Va(Wa,Error);Wa.prototype.name="CustomError";var ae;g.Va(Xa,Wa);Xa.prototype.name="AssertionError";var bb,pj;bb=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.Yqa=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("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);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="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.xe=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="string"===typeof 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.Fc=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="string"===typeof a?a.split(""):a,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));
return e};
g.zi=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};
pj=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;
return!1};
g.yi=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="string"===typeof 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 Ub="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var Zqa={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};Zb.prototype.tg=!0;Zb.prototype.xe=function(){return this.o};
var Yb={},Xb={};var hea,gea,fea,iea;hea=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]");g.$qa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.ara=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]");
g.Sn=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]");gea=/^http:\/\/.*/;fea=/\s+/;iea=/[\d\u06f0-\u06f9]/;dc.prototype.tg=!0;dc.prototype.xe=function(){return this.u.toString()};
dc.prototype.qs=!0;dc.prototype.o=function(){return 1};
var xaa=/%{(\w+)}/g,waa=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,cc={},bc={};var qc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},ic=/&/g,jc=/</g,kc=/>/g,lc=/"/g,mc=/'/g,nc=/\x00/g,zaa=/[\x00&<>"']/;g.wc.prototype.tg=!0;g.wc.prototype.xe=function(){return this.u.toString()};
g.wc.prototype.qs=!0;g.wc.prototype.o=function(){return 1};
var Baa=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,Aaa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,yc=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,vc={},uc={};Cc.prototype.tg=!0;var Bc={};Cc.prototype.xe=function(){return this.o};
var Hc=Ec(""),Daa=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,Kc=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Jc=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?)\\([-+*/0-9a-z.%\\[\\], ]+\\)","g"),Eaa=/\/\*/;a:{var bra=g.v.navigator;if(bra){var cra=bra.userAgent;if(cra){g.Lc=cra;break a}}g.Lc=""};Sc.prototype.qs=!0;Sc.prototype.o=function(){return this.w};
Sc.prototype.tg=!0;Sc.prototype.xe=function(){return this.u.toString()};
var dra=/^[a-zA-Z0-9-]+$/,era={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},fra={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Rc={},I1=new Sc;I1.u=g.v.trustedTypes?g.v.trustedTypes.emptyHTML:"";I1.w=0;var Wc=I1;var Laa=Ab(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.Tc(Wc);return!b.parentElement});var Maa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var pd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Ed=/#|$/,Oaa=/[?&]($|#)/;Jd[" "]=g.Ka;var zh,PG,CT,gra,hra,ira,Ky,My,J1;g.Ah=Mc("Opera");g.ke=Mc("Trident")||Mc("MSIE");g.zu=Mc("Edge");g.qz=g.zu||g.ke;zh=Mc("Gecko")&&!(pc(g.Lc,"WebKit")&&!Mc("Edge"))&&!(Mc("Trident")||Mc("MSIE"))&&!Mc("Edge");g.me=pc(g.Lc,"WebKit")&&!Mc("Edge");PG=Mc("Macintosh");CT=Mc("Windows");g.Ly=Mc("Android");gra=Hd();hra=Mc("iPad");ira=Mc("iPod");Ky=Id();My=pc(g.Lc,"KaiOS");
a:{var K1="",L1=function(){var a=g.Lc;if(zh)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.zu)return/Edge\/([\d\.]+)/.exec(a);if(g.ke)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.me)return/WebKit\/(\S+)/.exec(a);if(g.Ah)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
L1&&(K1=L1?L1[1]:"");if(g.ke){var M1=Ld();if(null!=M1&&M1>parseFloat(K1)){J1=String(M1);break a}}J1=K1}var Md=J1,Qaa={},N1;if(g.v.document&&g.ke){var jra=Ld();N1=jra?jra:parseInt(Md,10)||void 0}else N1=void 0;var Saa=N1;try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var Taa=!g.ke||g.Od(9),Vaa=!zh&&!g.ke||g.ke&&g.Od(9)||zh&&g.Nd("1.9.1");g.ke&&g.Nd("9");var Waa=g.ke||g.Ah||g.me;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 ge={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.getElementsByTagName=function(a,b){return(b||this.o).getElementsByTagName(String(a))};
g.h.createElement=function(a){return oe(this.o,a)};
g.h.appendChild=g.te;g.h.append=function(a,b){pe(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.we;g.h.contains=g.Ae;g.h=He.prototype;g.h.tO=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.nj.set(this.Qy(c),[new Xaa(a)])};
g.h.dx=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=this.Qy(b);return this.nj.has(b)?this.nj.get(b):void 0};
g.h.OE=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return(b=this.dx(b))&&b.length?b[0]:void 0};
g.h.clear=function(){this.nj.clear()};
g.h.Qy=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return b?b.join(","):"key"};g.r(Ie,He);Ie.prototype.w=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=0;var e=this.OE(c);e&&(d=e.ow);this.tO(d+a,c)};g.A.prototype.tb=!1;g.A.prototype.ea=function(){return this.tb};
g.A.prototype.dispose=function(){this.tb||(this.tb=!0,this.X())};
g.A.prototype.X=function(){if(this.Ri)for(;this.Ri.length;)this.Ri.shift()()};g.Me.prototype.stopPropagation=function(){this.o=!0};
g.Me.prototype.preventDefault=function(){this.defaultPrevented=!0};var Ne={};var cf=!g.ke||g.Od(9),kra=g.ke&&!g.Nd("9");!g.me||g.Nd("528");zh&&g.Nd("1.9b")||g.ke&&g.Nd("8")||g.Ah&&g.Nd("9.5")||g.me&&g.Nd("528");zh&&!g.Nd("8")||g.ke&&g.Nd("9");var bba=function(){if(!g.v.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{g.v.addEventListener("test",g.Ka,b),g.v.removeEventListener("test",g.Ka,b)}catch(c){}return a}();var jR;jR=g.me?"webkitAnimationEnd":g.Ah?"oanimationend":"animationend";g.Va(Oe,g.Me);var lra={2:"touch",3:"pen",4:"mouse"};
Oe.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?zh&&(Kd(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="string"===typeof a.pointerType?a.pointerType:lra[a.pointerType]||"";this.state=a.state;this.u=a;a.defaultPrevented&&this.preventDefault()};
Oe.prototype.stopPropagation=function(){Oe.Fb.stopPropagation.call(this);this.u.stopPropagation?this.u.stopPropagation():this.u.cancelBubble=!0};
Oe.prototype.preventDefault=function(){Oe.Fb.preventDefault.call(this);var a=this.u;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,kra)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Pe="closure_listenable_"+(1E6*Math.random()|0),Zaa=0;Se.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.o++);var k=Ue(a,b,d,e);-1<k?(b=a[k],c||(b.pn=!1)):(b=new $aa(b,this.src,f,!!d,e),b.pn=c,a.push(b));return b};
Se.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Ue(e,b,c,d);return-1<b?(Re(e[b]),g.fb(e,b),0==e.length&&(delete this.listeners[a],this.o--),!0):!1};
Se.prototype.rl=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Ue(a,b,c,d));return-1<e?a[e]:null};var $e="closure_lm_"+(1E6*Math.random()|0),ff={},bf=0,jf="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Va(g.kf,g.A);g.kf.prototype[Pe]=!0;g.h=g.kf.prototype;g.h.addEventListener=function(a,b,c,d){We(this,a,b,c,d)};
g.h.removeEventListener=function(a,b,c,d){df(this,a,b,c,d)};
g.h.dispatchEvent=function(a){var b=this.ba;if(b){var c=[];for(var d=1;b;b=b.ba)c.push(b),++d}b=this.ga;d=a.type||a;if("string"===typeof a)a=new g.Me(a,b);else if(a instanceof g.Me)a.target=a.target||b;else{var e=a;a=new g.Me(d,b);g.Vb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.o&&0<=f;f--){var k=a.currentTarget=c[f];e=lf(k,d,!0,a)&&e}a.o||(k=a.currentTarget=b,e=lf(k,d,!0,a)&&e,a.o||(e=lf(k,d,!1,a)&&e));if(c)for(f=0;!a.o&&f<c.length;f++)k=a.currentTarget=c[f],e=lf(k,d,!1,a)&&e;return e};
g.h.X=function(){g.kf.Fb.X.call(this);if(this.u){var a=this.u,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,Re(d[e]);delete a.listeners[c];a.o--}}this.ba=null};
g.h.ka=function(a,b,c,d){return this.u.add(String(a),b,!1,c,d)};
g.h.Ls=function(a,b,c,d){return this.u.add(String(a),b,!0,c,d)};
g.h.Za=function(a,b,c,d){this.u.remove(String(a),b,c,d)};
g.h.rl=function(a,b,c,d){return this.u.rl(String(a),b,c,d)};mf.prototype.get=function(){if(0<this.u){this.u--;var a=this.o;this.o=a.next;a.next=null}else a=this.w();return a};var pf,dba=g.zb;var zf=new mf(function(){return new tf},function(a){a.reset()});
sf.prototype.add=function(a,b){var c=zf.get();c.set(a,b);this.u?this.u.next=c:this.o=c;this.u=c};
sf.prototype.remove=function(){var a=null;this.o&&(a=this.o,this.o=this.o.next,this.o||(this.u=null),a.next=null);return a};
tf.prototype.set=function(a,b){this.mg=a;this.scope=b;this.next=null};
tf.prototype.reset=function(){this.next=this.scope=this.mg=null};var uf,vf=!1,wf=new sf;Df.prototype.reset=function(){this.context=this.onRejected=this.w=this.o=null;this.u=!1};
var Ef=new mf(function(){return new Df},function(a){a.reset()});
Cf.prototype.then=function(a,b,c){return Nf(this,g.Pa(a)?a:null,g.Pa(b)?b:null,c)};
Cf.prototype.$goog_Thenable=!0;Cf.prototype.cancel=function(a){if(0==this.o){var b=new Tf(a);g.xf(function(){Pf(this,b)},this)}};
Cf.prototype.I=function(a){this.o=0;Bf(this,2,a)};
Cf.prototype.P=function(a){this.o=0;Bf(this,3,a)};
Cf.prototype.G=function(){for(var a;a=Qf(this);)Rf(this,a,this.o,this.F);this.C=!1};
var Vf=of;g.Va(Tf,Wa);Tf.prototype.name="cancel";g.Va(g.Wf,g.kf);g.h=g.Wf.prototype;g.h.enabled=!1;g.h.Fa=null;g.h.setInterval=function(a){this.Bd=a;this.Fa&&this.enabled?(this.stop(),this.start()):this.Fa&&this.stop()};
g.h.md=function(){if(this.enabled){var a=(0,g.G)()-this.ky;0<a&&a<.8*this.Bd?this.Fa=this.Jm.setTimeout(this.ew,this.Bd-a):(this.Fa&&(this.Jm.clearTimeout(this.Fa),this.Fa=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.h.start=function(){this.enabled=!0;this.Fa||(this.Fa=this.Jm.setTimeout(this.ew,this.Bd),this.ky=(0,g.G)())};
g.h.stop=function(){this.enabled=!1;this.Fa&&(this.Jm.clearTimeout(this.Fa),this.Fa=null)};
g.h.X=function(){g.Wf.Fb.X.call(this);this.stop();delete this.Jm};$f.prototype.F=function(){var a=this.A.values();a=[].concat(g.ea(a)).filter(function(b){return b.nj.size});
a.length&&this.P.flush(a);jba(a);this.B=0;this.u.enabled&&this.u.stop()};
$f.prototype.o=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.A.has(a)||this.A.set(a,new Ie(a,c))};
$f.prototype.w=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.I.apply(this,[a,1].concat(g.ea(c)))};
$f.prototype.I=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];(e=this.G.has(a)?void 0:this.A.get(a))&&e instanceof Ie&&(e.w(b,d),this.u.enabled||this.u.start(),this.B++,this.B>=this.C&&this.F())};var Vy,VB;g.ku=Nc();Vy=Hd()||Mc("iPod");VB=Mc("iPad");g.Ny=g.Qc();g.Gt=Oc();g.rz=Pc()&&!Id();var dg={},ig=null;var Cg=0,Dg=0;var lg=[];kg.prototype.clone=function(){return mg(this.u,this.A,this.w-this.A)};
kg.prototype.clear=function(){this.u=null;this.o=this.w=this.A=0;this.B=!1};
kg.prototype.reset=function(){this.o=this.A};pg.prototype.reset=function(){this.o.reset();this.u=this.w=-1};ug.prototype.length=function(){return this.o.length};
ug.prototype.end=function(){var a=this.o;this.o=[];return a};xg.prototype.reset=function(){this.w=[];this.o.end();this.u=0};var Mg="function"==typeof Uint8Array,Ng=[];Lg.prototype.toString=function(){ah(this);return this.u.toString()};
Lg.prototype.clone=function(){return new this.constructor(bh(Zg(this)))};var Nj;Nj=["av.key","js","unreleased"].slice(-1)[0];var Wh=document,mi=window;g.h=ch.prototype;g.h.isEnabled=function(){return navigator.cookieEnabled};
g.h.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.KT;d=c.pO||!1;var f=c.domain||void 0;var k=c.path||void 0;var l=c.sy}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";k=k?";path="+k:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date((0,g.G)()+1E3*l)).toUTCString();this.o.cookie=a+"="+b+c+k+l+d+(null!=e?";samesite="+
e:"")};
g.h.get=function(a,b){for(var c=a+"=",d=(this.o.cookie||"").split(";"),e=0,f;e<d.length;e++){f=qc(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=void 0!==this.get(a);this.set(a,"",{sy:0,path:b,domain:c});return d};
g.h.te=function(){return dh(this).keys};
g.h.Gd=function(){return dh(this).values};
g.h.isEmpty=function(){return!this.o.cookie};
g.h.clear=function(){for(var a=dh(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Sq=new ch("undefined"==typeof document?null:document);var tba=Ab(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.v.addEventListener("test",null,b)}catch(c){}return a});g.O1={kv:["BC","AD"],jv:["Before Christ","Anno Domini"],Bv:"JFMAMJJASOND".split(""),Iv:"JFMAMJJASOND".split(""),xq:"January February March April May June July August September October November December".split(" "),Cq:"January February March April May June July August September October November December".split(" "),Aq:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Dq:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Hq:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Fq:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Bq:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Eq:"Sun Mon Tue Wed Thu Fri Sat".split(" "),vD:"SMTWTFS".split(""),Jv:"SMTWTFS".split(""),Hv:["Q1","Q2","Q3","Q4"],Fv:["1st quarter","2nd quarter","3rd quarter","4th quarter"],tq:["AM","PM"],Vm:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],Gq:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],gv:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Ik:6,Mv:[5,6],Jk:5};
g.O1={kv:["\u516c\u5143\u524d","\u516c\u5143"],jv:["\u516c\u5143\u524d","\u516c\u5143"],Bv:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),Iv:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),xq:"\u4e00\u6708 \u4e8c\u6708 \u4e09\u6708 \u56db\u6708 \u4e94\u6708 \u516d\u6708 \u4e03\u6708 \u516b\u6708 \u4e5d\u6708 \u5341\u6708 \u5341\u4e00\u6708 \u5341\u4e8c\u6708".split(" "),Cq:"\u4e00\u6708 \u4e8c\u6708 \u4e09\u6708 \u56db\u6708 \u4e94\u6708 \u516d\u6708 \u4e03\u6708 \u516b\u6708 \u4e5d\u6708 \u5341\u6708 \u5341\u4e00\u6708 \u5341\u4e8c\u6708".split(" "),
Aq:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),Dq:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),Hq:"\u661f\u671f\u65e5 \u661f\u671f\u4e00 \u661f\u671f\u4e8c \u661f\u671f\u4e09 \u661f\u671f\u56db \u661f\u671f\u4e94 \u661f\u671f\u516d".split(" "),Fq:"\u661f\u671f\u65e5 \u661f\u671f\u4e00 \u661f\u671f\u4e8c \u661f\u671f\u4e09 \u661f\u671f\u56db \u661f\u671f\u4e94 \u661f\u671f\u516d".split(" "),
Bq:"\u5468\u65e5 \u5468\u4e00 \u5468\u4e8c \u5468\u4e09 \u5468\u56db \u5468\u4e94 \u5468\u516d".split(" "),Eq:"\u5468\u65e5 \u5468\u4e00 \u5468\u4e8c \u5468\u4e09 \u5468\u56db \u5468\u4e94 \u5468\u516d".split(" "),vD:"\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split(""),Jv:"\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split(""),Hv:["1\u5b63\u5ea6","2\u5b63\u5ea6","3\u5b63\u5ea6","4\u5b63\u5ea6"],Fv:["\u7b2c\u4e00\u5b63\u5ea6","\u7b2c\u4e8c\u5b63\u5ea6","\u7b2c\u4e09\u5b63\u5ea6","\u7b2c\u56db\u5b63\u5ea6"],
tq:["\u4e0a\u5348","\u4e0b\u5348"],Vm:["y\u5e74M\u6708d\u65e5EEEE","y\u5e74M\u6708d\u65e5","y\u5e74M\u6708d\u65e5","y/M/d"],Gq:["zzzz ah:mm:ss","z ah:mm:ss","ah:mm:ss","ah:mm"],gv:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],Ik:6,Mv:[5,6],Jk:5};g.h=g.jh.prototype;g.h.Sw=g.O1.Ik;g.h.Uw=g.O1.Jk;g.h.clone=function(){var a=new g.jh(this.date);a.Sw=this.Sw;a.Uw=this.Uw;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.o||a.months){var b=this.getMonth()+a.months+12*a.o,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()),ih(this,a.getDate()))};
g.h.toString=function(){return[this.getFullYear(),g.gd(this.getMonth()+1,2),g.gd(this.getDate(),2)].join("")+""};
g.h.valueOf=function(){return this.date.valueOf()};var kh=g.Ka;var wba=/https?:\/\/[^\/]+/,uba={CP:"allow-forms",DP:"allow-modals",EP:"allow-orientation-lock",FP:"allow-pointer-lock",GP:"allow-popups",HP:"allow-popups-to-escape-sandbox",IP:"allow-presentation",JP:"allow-same-origin",KP:"allow-scripts",LP:"allow-top-navigation",MP:"allow-top-navigation-by-user-activation"},zba=Ab(function(){return vba()});var Qba={kS:1,aT:2,KR:3};g.h=sh.prototype;g.h.Zc=function(){return this.right-this.left};
g.h.getHeight=function(){return this.bottom-this.top};
g.h.clone=function(){return new sh(this.top,this.right,this.bottom,this.left)};
g.h.contains=function(a){return this&&a?a instanceof sh?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.uh.prototype;g.h.clone=function(){return new g.uh(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 yh={};var Uh=!!window.google_async_iframe_id,Vh=Uh&&window.parent||window;$b(g.ac("//fonts.googleapis.com/css"));var lca={NONE:0,AQ:1};$h.prototype.isVisible=function(){return this.xi?.3<=this.ub:.5<=this.ub};var Hi={ev:0,KQ:1},Rba={ev:0,jR:1,kR:2},mca={ev:0,xQ:1,EQ:2,sS:3},Pba={NONE:0,tR:1,RQ:2};ai.prototype.getValue=function(){return this.u};
g.r(bi,ai);bi.prototype.setValue=function(a){if(null!==this.u||!g.Mb(this.w,a))return!1;this.u=a;return!0};
g.r(ci,ai);ci.prototype.setValue=function(a){if(null!==this.u||"number"!==typeof a)return!1;this.u=a;return!0};
g.r(di,ai);di.prototype.setValue=function(a){if(null!==this.u||"string"!==typeof a)return!1;this.u=a;return!0};ei.prototype.disable=function(){this.u=!1};
ei.prototype.enable=function(){this.u=!0};
ei.prototype.isEnabled=function(){return this.u};
ei.prototype.reset=function(){this.o={};this.u=!0;this.w={}};g.ek=!g.ke&&!Pc();ji.prototype.now=function(){return 0};
ji.prototype.u=function(){return 0};
ji.prototype.w=function(){return 0};
ji.prototype.o=function(){return 0};g.r(li,ji);li.prototype.now=function(){return ki()&&mi.performance.now?mi.performance.now():ji.prototype.now.call(this)};
li.prototype.u=function(){return ki()&&mi.performance.memory?mi.performance.memory.totalJSHeapSize||0:ji.prototype.u.call(this)};
li.prototype.w=function(){return ki()&&mi.performance.memory?mi.performance.memory.usedJSHeapSize||0:ji.prototype.w.call(this)};
li.prototype.o=function(){return ki()&&mi.performance.memory?mi.performance.memory.jsHeapSizeLimit||0:ji.prototype.o.call(this)};oi.prototype.isVisible=function(){return 1===ni(Wh)};var Gba=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/;si.prototype.jc=function(a,b,c,d){a=a+"//"+b+c;var e=Iba(this)-c.length-d.length;if(0>e)return"";this.o.sort(function(p,t){return p-t});
c=null;b="";for(var f=0;f<this.o.length;f++)for(var k=this.o[f],l=this.u[k],m=0;m<l.length;m++){if(!e){c=null==c?k:c;break}var n=vi(l[m],this.w,",$");if(n){n=b+n;if(e>=n.length){e-=n.length;a+=n;b=this.w;break}this.A&&(b=e,n[b-1]==this.w&&--b,a+=n.substr(0,b),b=this.w,e=0);c=null==c?k:c}}f="";null!=c&&(f=b+"trn="+c);return a+f+d};Ai.prototype.setInterval=function(a,b){return mi.setInterval(a,b)};
Ai.prototype.clearInterval=function(a){mi.clearInterval(a)};
Ai.prototype.setTimeout=function(a,b){return mi.setTimeout(a,b)};
Ai.prototype.clearTimeout=function(a){mi.clearTimeout(a)};
La(Ai);Ei.prototype.getContext=function(){if(!this.o){if(!mi)throw Error("Context has not been set and window is undefined.");this.o=Ai.getInstance()}return this.o};
La(Ei);g.Va(Fi,Lg);Ii.prototype.cu=function(a){if("string"===typeof a&&0!=a.length){var b=this.Wa;if(b.u){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.o[e])&&e.setValue(d)}}}};
La(Ii);var P1=null;var Pi=g.v.performance,mra=!!(Pi&&Pi.mark&&Pi.measure&&Pi.clearMarks),Ni=Ab(function(){var a;if(a=mra){var b;if(null===P1){P1="";try{a="";try{a=g.v.top.location.hash}catch(c){a=g.v.location.hash}a&&(P1=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=P1;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
Oi.prototype.disable=function(){this.o=!1;this.events!=this.u.google_js_reporting_queue&&(Ni()&&(0,g.y)(this.events,Qi),this.events.length=0)};
Oi.prototype.start=function(a,b){if(!this.o)return null;var c=Mi()||Li();c=new Tba(a,b,c);var d="goog_"+c.label+"_"+c.uniqueId+"_start";Pi&&Ni()&&Pi.mark(d);return c};
Oi.prototype.end=function(a){if(this.o&&"number"===typeof a.value){var b=Mi()||Li();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Pi&&Ni()&&Pi.mark(b);!this.o||2048<this.events.length||this.events.push(a)}};Ti.prototype.u=function(a,b,c,d,e){e=e||this.A;try{var f=new si;f.A=!0;wi(f,1,"context",a);b.error&&b.meta&&b.id||(b=new Ui(Vi(b)));b.msg&&wi(f,2,"msg",b.msg.substring(0,512));var k=b.meta||{};if(this.o)try{this.o(k)}catch(m){}if(d)try{d(k)}catch(m){}b=[k];f.o.push(3);f.u[3]=b;var l=ri();l.u&&wi(f,4,"top",l.u.url||"");wi(f,5,"url",l.o.url||"");Ji(this.B,e,f,!1,c)}catch(m){try{Ji(this.B,e,{context:"ecmserr",rctx:a,msg:Vi(m),url:l&&l.o.url},!1,c)}catch(n){}}return this.w};
g.r(Ui,Ki);var Si,Xi,Ri=new Oi;(function(){Si=new Sba;Xi=new Ti;var a=Xh();a&&a.document&&("complete"==a.document.readyState?Zi():Ri.o&&fh(a,"load",function(){Zi()}))})();var Vba=Date.now(),gj=-1,ej=-1,Lk,hj=-1,fj=!1;var tm={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Hk={zD:"start",lD:"firstquartile",tD:"midpoint",CD:"thirdquartile",eD:"complete",sD:"metric",PAUSE:"pause",xD:"resume",yD:"skip",FD:"viewable_impression",uD:"mute",DD:"unmute",mD:"fullscreen",kD:"exitfullscreen",dD:"bufferstart",cD:"bufferfinish",nD:"fully_viewable_audible_half_duration_impression",rD:"measurable_impression",YC:"abandon",jD:"engagedview",oD:"impression",fD:"creativeview",pD:"loaded",nS:"progress",CLOSE:"close",
mQ:"collapse",UR:"overlay_resize",VR:"overlay_unmeasurable_impression",WR:"overlay_unviewable_impression",YR:"overlay_viewable_immediate_impression",XR:"overlay_viewable_end_of_session_impression",gD:"custom_metric_viewable"},zda="start firstquartile midpoint thirdquartile resume loaded".split(" "),Ada=["start","firstquartile","midpoint","thirdquartile"],Cca=["abandon"],Nl={UNKNOWN:-1,zD:0,lD:1,tD:2,CD:3,eD:4,sD:5,PAUSE:6,xD:7,yD:8,FD:9,uD:10,DD:11,mD:12,kD:13,nD:14,rD:15,YC:16,jD:17,oD:18,fD:19,
pD:20,gD:21,dD:22,cD:23};var Xba={zP:"addEventListener",TQ:"getMaxSize",UQ:"getScreenSize",VQ:"getState",WQ:"getVersion",tS:"removeEventListener",wR:"isViewable"};if(Wh&&Wh.URL){var nra,qh=Wh.URL;nra=!!qh&&0<yba().length;Xi.w=!nra};qj.prototype.update=function(a){a&&a.document&&(this.F=Zh(!1,a,this.isMobileDevice),this.o=Zh(!0,a,this.isMobileDevice),sj(this,a),rj(this,a))};
La(qj);var ora=new sh(0,0,0,0);yj.prototype.cancel=function(){Bi().clearTimeout(this.o);this.o=null};
yj.prototype.schedule=function(){var a=this;this.o=Bi().setTimeout(Gi(Ii.getInstance().u.o,aj(143,function(){a.u++;a.w.vy()})),Wba())};g.h=zj.prototype;g.h.Py=function(){return this.To()};
g.h.To=function(){return!1};
g.h.initialize=function(){return this.I=!0};
g.h.uj=function(){return this.o.U};
g.h.zl=function(){return this.o.P};
g.h.getName=function(){return this.o.ba};
g.h.gh=function(){return this.o.kx()};
g.h.kx=function(){return{}};
g.h.pg=function(){return this.o.F};
g.h.Ny=function(){var a=qj.getInstance();a.o=Zh(!0,this.Dd,a.isMobileDevice)};
g.h.Oy=function(){rj(qj.getInstance(),this.Dd)};
g.h.fH=function(){sj(qj.getInstance(),this.Dd)};
g.h.wx=function(){return this.w.o};
g.h.vy=function(){};
g.h.isActive=function(){return this.o.B};
g.h.Cj=function(a){var b=this.o,c=a.pg();this.o=c>=this.F?a:this;b!==this.o?(this.B=this.o.B,Aj(this)):this.B!==this.o.B&&(this.B=this.o.B,Aj(this))};
g.h.ph=function(a){if(a.u===this.o){var b;if(!(b=this.Z)){b=this.w;var c=this.G;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.w==a.w)b=b.o,c=a.o,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;b=!c}this.w=a;b&&Fj(this)}};
g.h.Mf=function(){return this.G};
g.h.dispose=function(){this.tb=!0};
g.h.ea=function(){return this.tb};g.h=Gj.prototype;g.h.Xs=function(){return!0};
g.h.Ul=function(){};
g.h.nn=function(){if(this.element){var a=this.element,b=this.u.o.Dd;try{try{var c=mj(a.getBoundingClientRect())}catch(n){c=new sh(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Lh(a,b),k=f.x,l=f.y;var m=new sh(Math.round(l),Math.round(k+d),Math.round(l+e),Math.round(k))}catch(n){m=ora.clone()}this.o=m}};
g.h.hw=function(){this.B=this.u.w.o};
g.h.cg=function(){this.nn();this.A=new xj(this.u.w,this.o,this.A.B,this.A.o,this.A.A,dj(),this.A.w)};
g.h.dispose=function(){if(!this.ea()){var a=this.u;g.gb(a.A,this);a.G&&this.Mf()&&Ej(a);this.Ul();this.tb=!0}};
g.h.ea=function(){return this.tb};
g.h.gh=function(){return this.u.gh()};
g.h.pg=function(){return this.u.pg()};
g.h.uj=function(){return this.u.uj()};
g.h.zl=function(){return this.u.zl()};
g.h.Cj=function(){};
g.h.ph=function(){this.cg()};
g.h.Mf=function(){return this.P};g.h=Hj.prototype;g.h.pg=function(){return this.o.pg()};
g.h.uj=function(){return this.o.uj()};
g.h.zl=function(){return this.o.zl()};
g.h.create=function(a,b,c){var d=null;this.o&&(d=this.Lo(a,b,c),Cj(this.o,d));return d};
g.h.wy=function(){return this.Ol()};
g.h.Ol=function(){return!1};
g.h.init=function(a){return this.o.initialize()?(Cj(this.o,this),this.A=a,!0):!1};
g.h.Cj=function(a){0==a.pg()&&this.A(a.uj(),this)};
g.h.ph=function(){};
g.h.Mf=function(){return!1};
g.h.dispose=function(){this.tb=!0};
g.h.ea=function(){return this.tb};
g.h.gh=function(){return{}};Kj.prototype.add=function(a,b,c){++this.w;var d=this.w/4096;this.o.push(dca(new Ij(a,b,c),d));this.u=!0;return this};Oj.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Mj(this.o);0<b.length&&(a+="?"+b);return a};La(Rj);Sj.prototype.update=function(a,b,c){a&&(this.o+=b,this.u+=b,this.A+=b,this.w=Math.max(this.w,this.A));if(void 0===c?!a:c)this.A=0};var ica=[1,.75,.5,.3,0];Tj.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.u.length;e++){var k=this.u[e],l=0<b&&b>=k;k=!(0<a&&a>=k)||c;this.o[e].update(f&&l,d,!f||k)}};ck.prototype.update=function(a,b,c,d){this.F=-1!=this.F?Math.min(this.F,b.ub):b.ub;this.L=Math.max(this.L,b.ub);this.R=-1!=this.R?Math.min(this.R,b.Vd):b.Vd;this.V=Math.max(this.V,b.Vd);this.ma.update(b.Vd,c.Vd,b.o,a,d);this.u.update(b.ub,c.ub,b.o,a,d);c=d||c.xi!=b.xi?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.o;this.ba.update(c,a,b)};
ck.prototype.zi=function(){return this.ba.w>=this.ga};var kca=new sh(0,0,0,0);g.r(fk,g.A);g.h=fk.prototype;g.h.X=function(){this.Nd.o&&(this.gi.Ot&&(gh(this.Nd.o,"mouseover",this.gi.Ot),this.gi.Ot=null),this.gi.Nt&&(gh(this.Nd.o,"mouseout",this.gi.Nt),this.gi.Nt=null));this.Gm&&this.Gm.dispose();this.Ib&&this.Ib.dispose();delete this.Ho;delete this.Ps;delete this.xC;delete this.Nd.Ah;delete this.Nd.o;delete this.gi;delete this.Gm;delete this.Ib;delete this.Wa;g.A.prototype.X.call(this)};
g.h.jh=function(){return this.Ib?this.Ib.o:this.position};
g.h.cu=function(a){Ii.getInstance().cu(a)};
g.h.Mf=function(){return!1};
g.h.Vn=function(){return new ck};
g.h.Pd=function(){return this.Ho};
g.h.qx=function(a){return ik(this,a,1E4)};
g.h.xa=function(a,b,c,d,e,f,k){this.Mj||(this.En&&(a=this.Sq(a,c,e,k),d=d&&this.ie.ub>=(this.xi()?.3:.5),this.Tu(f,a,d),this.Il=b,0<a.ub&&-1===this.kC&&(this.kC=b),-1==this.lC&&this.zi()&&(this.lC=b),-2==this.Os&&(this.Os=uj(this.jh())?a.ub:-1),this.ie=a),this.Ps(this))};
g.h.Tu=function(a,b,c){this.Pd().update(a,b,this.ie,c)};
g.h.Nr=function(){return new $h};
g.h.Sq=function(a,b,c,d){c=this.Nr();c.o=b;b=Bi().u;b=0===ni(Wh)?-1:b.isVisible()?0:1;c.u=b;c.ub=this.jr(a);c.xi=this.xi();c.Vd=d;return c};
g.h.yx=function(a,b){if(-1==this.Il)return 0;var c=a-this.Il;return c>b?0:c};
g.h.Tr=function(a){return this.yx(a,1E4)};
g.h.jr=function(a){return 0===this.opacity&&1===hi(this.Wa,"opac")?0:a};
g.h.xi=function(){return!1};
g.h.Kp=function(){return!1};
g.h.wf=function(){return 0};
g.h.zi=function(){return this.Ho.zi()};var kk="StopIteration"in g.v?g.v.StopIteration:{message:"StopIteration",stack:""};jk.prototype.next=function(){throw kk;};
jk.prototype.Yf=function(){return this};g.r(nk,$h);rk.prototype.getValue=function(){return this.u};
rk.prototype.update=function(a,b){32<=a||(this.o&1<<a&&!b?this.u&=~(1<<a):this.o&1<<a||!b||(this.u|=1<<a),this.o|=1<<a)};g.r(sk,ck);
sk.prototype.update=function(a,b,c,d){if(!b.paused){ck.prototype.update.call(this,a,b,c,d);var e=ok(b)&&ok(c),f=.5<=(d?Math.min(b.ub,c.ub):c.ub);oj(b.volume)&&(this.A=-1!=this.A?Math.min(this.A,b.volume):b.volume,this.C=Math.max(this.C,b.volume));f&&(this.U+=a,this.I+=e?a:0);this.o.update(b.ub,c.ub,b.o,a,d,e);this.w.update(!0,a);this.B.update(e,a);this.P.update(c.fullscreen,a);this.oa.update(e&&!f,a);a=Math.floor(b.w/1E3);this.aa.update(a,b.isVisible());this.da.update(a,1<=b.ub);this.ha.update(a,ok(b))}};g.r(uk,wca);uk.prototype.w=function(){return!0};
uk.prototype.B=function(){return!1};
uk.prototype.getId=function(){var a=this,b=Nb(Hk,function(c){return c==a.A});
return Nl[b].toString()};
uk.prototype.toString=function(){var a="";this.B()&&(a+="c");this.o&&(a+="s");0<this.u&&(a+=":"+this.u);return this.getId()+a};g.r(xk,Gj);xk.prototype.Zx=function(a){var b=1==hi(this.Wa,"od");return bca(a,this.B,this.element,b)};
xk.prototype.iw=function(){if(1===hi(this.Wa,"osddt")||"mraid"===this.getName()||"iem"===this.getName()||"omid"===this.getName())this.timestamp=dj();else{var a=this.u.w;this.timestamp=-1===a.time?dj():a.time}};
xk.prototype.cg=function(){this.iw();this.nn();this.hw();var a=this.o;var b=this.B;a=a.left<=b.right&&b.left<=a.right&&a.top<=b.bottom&&b.top<=a.bottom?new sh(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 sh(0,0,0,0);b=a.top>=a.bottom||a.left>=a.right?new sh(0,0,0,0):a;a=this.u.w;var c=0,d=0,e=0;0<(this.o.bottom-this.o.top)*(this.o.right-this.o.left)&&(this.Zx(b)?b=new sh(0,0,0,0):(c=qj.getInstance().A,e=new sh(0,c.height,c.width,0),c=vj(b,
this.o),d=vj(b,qj.getInstance().o),e=vj(b,e)));b=b.top>=b.bottom||b.left>=b.right?new sh(0,0,0,0):th(b,-this.o.left,-this.o.top);tj()||(d=c=0);this.A=new xj(a,this.o,b,c,d,this.timestamp,e)};
xk.prototype.getName=function(){return this.u.getName()};var pra=new sh(0,0,0,0);g.r(yk,xk);g.h=yk.prototype;g.h.Xs=function(){this.w();return!0};
g.h.ph=function(){xk.prototype.cg.call(this)};
g.h.iw=function(){};
g.h.nn=function(){};
g.h.cg=function(){this.w();xk.prototype.cg.call(this)};
g.h.Cj=function(a){a=a.isActive();a!==this.F&&(a?this.w():(qj.getInstance().o=new sh(0,0,0,0),this.o=new sh(0,0,0,0),this.B=new sh(0,0,0,0),this.timestamp=-1));this.F=a};var Q1={},Bca=(Q1.firstquartile=0,Q1.midpoint=1,Q1.thirdquartile=2,Q1.complete=3,Q1);g.r(zk,fk);g.h=zk.prototype;g.h.Mf=function(){return!0};
g.h.qx=function(a){return ik(this,a,Math.max(1E4,this.w/3))};
g.h.Tr=function(a){return 2==this.Cc?0:fk.prototype.yx.call(this,a,Math.max(1E4,this.w/3))};
g.h.xa=function(a,b,c,d,e,f,k){var l=this,m=this.P(this)||{};g.Vb(m,e);this.w=m.duration||this.w;this.G=m.isVpaid||this.G;this.Z=m.isYouTube||this.Z;e=xca(this,b);1===Dk(this)&&(f=e);fk.prototype.xa.call(this,a,b,c,d,m,f,k);this.Bi&&this.Bi.o&&(0,g.y)(this.C,function(n){n.o||(n.o=wk(n,l))})};
g.h.Tu=function(a,b,c){fk.prototype.Tu.call(this,a,b,c);Ck(this).update(a,b,this.ie,c);this.ga=ok(this.ie)&&ok(b);-1==this.V&&this.da&&(this.V=this.Pd().w.o);this.yc.w=0;a=this.zi();b.isVisible()&&pk(this.yc,"vs");a&&pk(this.yc,"vw");oj(b.volume)&&pk(this.yc,"am");ok(b)&&pk(this.yc,"a");this.Fj&&pk(this.yc,"f");-1!=b.u&&(pk(this.yc,"bm"),1==b.u&&pk(this.yc,"b"));ok(b)&&b.isVisible()&&pk(this.yc,"avs");this.ga&&a&&pk(this.yc,"avw");0<b.ub&&pk(this.yc,"pv");Ek(this,this.Pd().w.o,!0)&&pk(this.yc,"gdr");
2E3<=Zj(this.Pd().u,1)&&pk(this.yc,"pmx")};
g.h.Vn=function(){return new sk};
g.h.Pd=function(){return this.Ho};
g.h.Nr=function(){return new nk};
g.h.Sq=function(a,b,c,d){a=fk.prototype.Sq.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Fj;a.paused=2==this.Cc;a.volume=c.volume;oj(a.volume)||(this.ma++,b=this.ie,oj(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.w=void 0!==c&&0<=c?c:-1;return a};
g.h.jr=function(a){return qj.getInstance(),this.Fj?1:fk.prototype.jr.call(this,a)};
g.h.wf=function(){return 1};
g.h.getDuration=function(){return this.w};var qra=(0,g.G)();var Qk={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Lca=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Rk.prototype.reset=function(){this.o=[];this.u=[]};
La(Rk);var Uk=Rk.getInstance();La($k);g.r(bl,Hj);g.h=bl.prototype;g.h.getName=function(){return(this.u?this.u:this.o).getName()};
g.h.gh=function(){return(this.u?this.u:this.o).gh()};
g.h.pg=function(){return(this.u?this.u:this.o).pg()};
g.h.init=function(a){var b=!1;(0,g.y)(this.w,function(c){c.initialize()&&(b=!0)});
b&&(this.A=a,Cj(this.o,this));return b};
g.h.dispose=function(){(0,g.y)(this.w,function(a){a.dispose()});
Hj.prototype.dispose.call(this)};
g.h.wy=function(){return pj(this.w,function(a){return a.Py()})};
g.h.Ol=function(){return pj(this.w,function(a){return a.To()})};
g.h.Lo=function(a,b,c){return new xk(a,this.o,b,c)};
g.h.ph=function(a){this.u=a.u};g.r(cl,xk);g.h=cl.prototype;g.h.Xs=function(){var a=this;this.I||(this.I=dj());if($i(298,function(){return Sca(a)}))return!0;
Bj(this.u,"msf");return!1};
g.h.nn=function(){};
g.h.Zx=function(){return!1};
g.h.hw=function(){};
g.h.gh=function(){var a={};return Object.assign(this.u.gh(),(a.niot_obs=this.I,a.niot_cbk=this.G,a))};var Rca={threshold:[0,.3,.5,.75,1]};g.r(el,cl);el.prototype.getName=function(){return"nio"};
el.prototype.Ul=function(){if(this.w&&this.element)try{this.w.unobserve(this.element),this.F?(this.F.unobserve(this.element),this.F=null):this.C&&(this.C.disconnect(),this.C=null)}catch(a){}};
el.prototype.cg=function(){var a=fl(this);0<a.length&&dl(this,a);cl.prototype.cg.call(this)};var Loa={},sl=Vy||VB;g.r(vl,Hj);vl.prototype.getName=function(){return"nio"};
vl.prototype.Ol=function(){return g.ll()?!1:!qj.getInstance().u&&null!=this.o.o.Dd.IntersectionObserver};
vl.prototype.Lo=function(a,b,c){return new el(a,this.o,b,c)};g.r(xl,zj);xl.prototype.wx=function(){return qj.getInstance().o};
xl.prototype.To=function(){var a=wl();this.F!==a&&(this.o!=this&&a>this.o.F&&(this.o=this,Aj(this)),this.F=a);return 2==a};
La(xl);La(yl);zl.prototype.vy=function(){Cl(this,Xk(),!1)};
zl.prototype.A=function(){var a=tj(),b=dj();a?(fj||(gj=b,(0,g.y)(Uk.o,function(c){var d=c.Pd();d.Z=tk(d,b,1!=c.Cc)})),fj=!0):(this.F=El(this,b),fj=!1,Lk=b,(0,g.y)(Uk.o,function(c){c.En&&(c.Pd().G=b)}));
Cl(this,Xk(),!a)};
La(zl);var Al=zl.getInstance();var Fl=null,mm="",lm=!1;var R1=Ll([void 0,1,2,3,4,8,16]),S1=Ll([void 0,4,8,16]),rra={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Kl("p0",S1),p1:Kl("p1",S1),p2:Kl("p2",S1),p3:Kl("p3",S1),tos:"tos",mtos:"mtos",mtos1:Jl("mtos1",[0,2,4],!1,S1),mtos2:Jl("mtos2",[0,2,4],!1,S1),mtos3:Jl("mtos3",[0,2,4],!1,S1),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Kl("a0",S1),a1:Kl("a1",S1),a2:Kl("a2",S1),a3:Kl("a3",S1),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:Kl("c0",S1),c1:Kl("c1",S1),c2:Kl("c2",S1),c3:Kl("c3",S1),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Kl("qmtos",R1),qnc:Kl("qnc",R1),qmv:Kl("qmv",R1),qnv:Kl("qnv",R1),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:Kl("ss0",S1),ss1:Kl("ss1",S1),ss2:Kl("ss2",S1),ss3:Kl("ss3",S1),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},sra={c:Gl("c"),at:"at",atos:Jl("atos",
[0,2,4]),ta:function(a,b){return function(c){if(void 0===c[a])return b}}("tth","1"),
a:"a",dur:"dur",p:"p",tos:Il(),j:"dom",mtos:Jl("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:Gl("ss"),vsv:yb("w2"),t:"t"},tra={atos:"atos",amtos:"amtos",avt:Jl("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:Gl("ss"),t:"t"},ura={a:"a",tos:Il(),at:"at",c:Gl("c"),mtos:Jl("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:yb("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},vra={tos:Il(),at:"at",c:Gl("c"),mtos:Jl("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:yb("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",
qmpt:Jl("qmtos",[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return(0,g.Fc)(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};var Zca={MQ:"visible",RP:"audible",MS:"time",NS:"timetype"},Ql={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.r(Rl,uk);Rl.prototype.getId=function(){return this.F};
Rl.prototype.B=function(){return!0};
Rl.prototype.w=function(a){var b=a.Pd(),c=a.getDuration();return pj(this.C,function(d){if(void 0!=d.o)var e=ada(d,b);else b:{switch(d.B){case "mtos":e=d.u?b.B.w:b.w.o;break b;case "tos":e=d.u?b.B.o:b.w.o;break b}e=0}0==e?d=!1:(d=-1!=d.w?d.w:void 0!==c&&0<c?d.A*c:-1,d=-1!=d&&e>=d);return d})};g.r(Sl,uk);Sl.prototype.w=function(a){var b=Xj(a.Pd().o,1);return Ek(a,b)};g.r(Tl,uk);Tl.prototype.w=function(a){return a.Pd().zi()};g.r(Wl,bda);Wl.prototype.o=function(a){var b=new Ul;b.o=Vl(a,rra);b.w=Vl(a,tra);return b};g.r(Xl,yk);Xl.prototype.w=function(){var a=g.w("ima.admob.getViewability"),b=hi(this.Wa,"queryid");g.Pa(a)&&b&&a(b)};
Xl.prototype.getName=function(){return"gsv"};g.r(Yl,Hj);Yl.prototype.getName=function(){return"gsv"};
Yl.prototype.Ol=function(){var a=qj.getInstance();Ii.getInstance();return a.u&&!1};
Yl.prototype.Lo=function(a,b,c){return new Xl(this.o,b,c)};g.r(Zl,yk);Zl.prototype.w=function(){var a=this,b=g.w("ima.bridge.getNativeViewability"),c=hi(this.Wa,"queryid");g.Pa(b)&&c&&b(c,function(d){g.Pb(d)&&a.C++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.o=nj(d.opt_nativeViewBounds||{});var k=a.u.w;k.o=f?pra.clone():nj(e);a.timestamp=d.opt_nativeTime||-1;qj.getInstance().o=k.o;d=d.opt_nativeVolume;void 0!==d&&(k.volume=d)})};
Zl.prototype.getName=function(){return"nis"};g.r($l,Hj);$l.prototype.getName=function(){return"nis"};
$l.prototype.Ol=function(){var a=qj.getInstance();Ii.getInstance();return a.u&&!1};
$l.prototype.Lo=function(a,b,c){return new Zl(this.o,b,c)};g.r(am,zj);g.h=am.prototype;g.h.To=function(){return null!=this.u.Ze};
g.h.kx=function(){var a={};this.V&&(a.mraid=this.V);this.R&&(a.mlc=1);a.mtop=this.u.DO;this.C&&(a.mse=this.C);this.aa&&(a.msc=1);a.mcp=this.u.compatibility;return a};
g.h.Mh=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];try{return this.u.Ze[a].apply(this.u.Ze,c)}catch(e){cj(538,e,.01,function(f){f.method=a})}};
g.h.initialize=function(){var a=this;if(this.I)return!this.zl();this.I=!0;if(2===this.u.compatibility)return this.C="ng",Bj(this,"w"),!1;if(1===this.u.compatibility)return this.C="mm",Bj(this,"w"),!1;qj.getInstance().G=!0;this.Dd.document.readyState&&"complete"==this.Dd.document.readyState?em(this):kj(this.Dd,"load",function(){Bi().setTimeout(aj(292,function(){return em(a)}),100)},292);
return!0};
g.h.Ny=function(){var a=qj.getInstance(),b=hm(this,"getMaxSize");a.o=new sh(0,b.width,b.height,0)};
g.h.Oy=function(){qj.getInstance().A=hm(this,"getScreenSize")};
g.h.dispose=function(){fm(this);zj.prototype.dispose.call(this)};
La(am);g.h=im.prototype;g.h.Zk=function(a){gk(a,!1);Nca(a)};
g.h.Yn=function(){};
g.h.tm=function(a,b,c,d){var e=this;this.u||(this.u=this.Cw());b=c?b:-1;a=null==this.u?new zk(mi,a,b,7):new zk(mi,a,b,7,new uk("measurable_impression",this.u),hda(this));a.jd=d;Dba(a.Wa);gi(a.Wa,"queryid",a.jd);a.cu("");pca(a,function(f){for(var k=[],l=0;l<arguments.length;++l)k[l-0]=arguments[l];return e.Gx.apply(e,g.ea(k))},function(f){for(var k=[],l=0;l<arguments.length;++l)k[l-0]=arguments[l];
return e.AF.apply(e,g.ea(k))});
(d=$k.getInstance().o)&&hk(a,d);a.Nd.Ah&&yl.getInstance();return a};
g.h.Cj=function(a){switch(a.pg()){case 0:if(a=$k.getInstance().o)a=a.o,g.gb(a.A,this),a.G&&this.Mf()&&Ej(a);km();break;case 2:Bl()}};
g.h.ph=function(){};
g.h.Mf=function(){return!1};
g.h.AF=function(a,b){a.Mj=!0;switch(a.wf()){case 1:qm(this,a,b);break;case 2:this.nu(a)}this.vu()};
g.h.IF=function(a){Gk(a,0);return Jk(a,"start",tj())};
g.h.yk=function(a,b,c){Cl(Al,[a],!tj());return this.kh(a,b,c)};
g.h.kh=function(a,b,c){return Jk(a,c,tj())};
g.h.DF=function(a){return rm(a,"firstquartile",1)};
g.h.FF=function(a){a.da=!0;return rm(a,"midpoint",2)};
g.h.JF=function(a){return rm(a,"thirdquartile",3)};
g.h.BF=function(a){var b=rm(a,"complete",4);Ak(a);return b};
g.h.QB=function(a,b,c){b=tj();2!=a.Cc||b||(a.Pd().G=dj());Cl(Al,[a],!b);2==a.Cc&&(a.Cc=1);return Jk(a,c,b)};
g.h.HF=function(a,b){var c=this.yk(a,b||{},"skip");Ak(a);return c};
g.h.EF=function(a,b){gk(a,!0);return this.yk(a,b||{},"fullscreen")};
g.h.CF=function(a,b){gk(a,!1);return this.yk(a,b||{},"exitfullscreen")};
g.h.Yt=function(a,b,c){b=a.Pd();b.Z=tk(b,dj(),1!=a.Cc);Cl(Al,[a],!tj());1==a.Cc&&(a.Cc=2);return Jk(a,c,tj())};
g.h.GF=function(a){Cl(Al,[a],!tj());return a.u()};
g.h.hs=function(a){Cl(Al,[a],!tj());this.MB(a);Ak(a);return a.u()};
g.h.Gx=function(){};
g.h.nu=function(){};
g.h.MB=function(){};
g.h.My=function(){};
g.h.vu=function(){};
g.h.Cw=function(){};var wm=(0,g.G)(),ym=!1,zm=!1,Am=!1,oda=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return xm(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 xm(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 xm(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 xm(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 xm(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return zm},
function(){return Am},
function(){return xm(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 xm(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]||vm(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 vm(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 xm(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 vm(a.CSS.supports)},
function(){return vm(Intl.Collator)},
function(a){return vm(a.document.createElement("dialog").show)},
function(){return xm(8)},
function(a){return vm(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 vm(a.document.createElement("div").animate)},
function(a){return vm(a.document.documentElement.webkitRequestFullScreen)},
function(a){return vm(a.navigator.getBattery)},
function(a){return vm(a.navigator.permissions.query)},
function(){return!1},
function(){return xm(9)},
function(){return vm(webkitRequestAnimationFrame)},
function(a){return vm(a.BroadcastChannel.call)},
function(a){return vm(a.FontFace)},
function(a){return vm(a.Gamepad)},
function(){return xm(10)},
function(a){return vm(a.MutationEvent)},
function(a){return vm(a.MutationObserver)},
function(a){return vm(a.crypto.getRandomValues)},
function(a){return vm(a.document.body.createShadowRoot)},
function(a){return vm(a.document.body.webkitCreateShadowRoot)},
function(a){return vm(a.fetch)},
function(){return xm(11)},
function(a){return vm(a.navigator.serviceWorker.register)},
function(a){return vm(a.navigator.webkitGetGamepads)},
function(a){return vm(a.speechSynthesis.speak)},
function(a){return vm(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return xm(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 xm(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 xm(14)},
function(a){return"undefined"==typeof a.navigator.QT},
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")}],pda=[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}],qda=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.Va(Bm,sda);Bm.prototype.reset=function(){this.o[0]=1732584193;this.o[1]=4023233417;this.o[2]=2562383102;this.o[3]=271733878;this.A=this.w=0};
Bm.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.u,d=this.B,e=this.w,f=0;f<b;){if(0==e)for(;f<=c;)Cm(this,a,f),f+=this.u;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.u){Cm(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.u){Cm(this,d);e=0;break}}this.w=e;this.A+=b};
Bm.prototype.digest=function(){var a=Array((56>this.w?this.u:2*this.u)-this.w);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.A;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.o[b]>>>d&255;return a};g.r(Dm,Wl);Dm.prototype.o=function(a){var b=Wl.prototype.o.call(this,a);var c=wm=(0,g.G)();var d=xm(5);c=(zm?!d:d)?c|2:c&-3;d=xm(2);c=(Am?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.u||(this.u=rda());b.B=this.u;b.C=Vl(a,sra,c,"h",Em("kArwaWEsTs"));b.A=Vl(a,ura,{},"h",Em("b96YPMzfnx"));b.u=Vl(a,vra,{},"h",Em("yb8Wev6QDg"));return b};Fm.prototype.o=function(){return g.w(this.u)};g.r(Gm,Fm);Gm.prototype.o=function(a){if(!a.jk)return Fm.prototype.o.call(this,a);var b=this.A[a.jk];if(b)return function(c,d,e){b.u(c,d,e)};
cj(393,Error());return null};g.r(Hm,im);g.h=Hm.prototype;g.h.Yn=function(a,b){var c=this,d=$k.getInstance();if(null!=d.o)switch(d.o.getName()){case "nis":var e=wda(this,a,b);break;case "gsv":e=vda(this,a,b);break;case "exc":e=xda(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=kda(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.wf()&&(e.P==g.Ka&&(e.P=function(f){return c.My(f)}),uda(this,e,b));
return e};
g.h.My=function(a){a.u=0;a.U=0;if("h"==a.A||"n"==a.A){var b;Ii.getInstance();if(a.jk&&Km(this)){var c=this.G[a.jk];c?b=function(e){return c.o(e)}:null!==c&&cj(379,Error())}else b=g.w("ima.common.getVideoMetadata");
if(g.Pa(b))try{var d=b(a.jd)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.A)if(b=g.w("ytads.bulleit.getVideoMetadata"),g.Pa(b))try{d=b(a.jd)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.A)if(b=g.w("ima.common.getVideoMetadata"),g.Pa(b))try{d=b(a.jd)}catch(e){a.u|=4}else a.u|=2;else a.u|=1;a.u||(void 0===d?a.u|=8:null===d?a.u|=16:g.Pb(d)?a.u|=32:null!=d.errorCode&&(a.U=d.errorCode,a.u|=64));null==d&&(d={});lda(d,a);oj(d.volume)&&oj(void 0)&&(d.volume*=NaN);return d};
g.h.Cw=function(){if(Km(this))return new Gm("ima.common.triggerExternalActivityEvent",this.w,this.G);var a=yda(this);return null!=a?new Fm(a,this.w):null};
g.h.nu=function(a){!a.o&&a.Mj&&pm(this,a,"overlay_unmeasurable_impression")&&(a.o=!0)};
g.h.MB=function(a){a.aC&&(a.zi()?pm(this,a,"overlay_viewable_end_of_session_impression"):pm(this,a,"overlay_unviewable_impression"),a.aC=!1)};
g.h.Gx=function(){};
g.h.vu=function(){};
g.h.tm=function(a,b,c,d){a=im.prototype.tm.call(this,a,b,c,d);this.B&&(b=this.C,null==a.B&&(a.B=new rca),b.o[a.jd]=a.B,a.B.B=qra);return a};
g.h.Zk=function(a){a&&1==a.wf()&&this.B&&delete this.C.o[a.jd];return im.prototype.Zk.call(this,a)};
La(Hm);var Im=new Ul;Im.B="stopped";Im.o="stopped";Im.w="stopped";Im.C="stopped";Im.A="stopped";Im.u="stopped";Object.freeze(Im);var wra=Yi(193,Mm,sm);g.Ia("Goog_AdSense_Lidar_sendVastEvent",wra,void 0);var xra=aj(194,function(a,b){b=void 0===b?{}:b;var c=Jm(Hm.getInstance(),a,b);return Lm(c)});
g.Ia("Goog_AdSense_Lidar_getViewability",xra,void 0);var yra=Yi(195,function(){return Di()},void 0);
g.Ia("Goog_AdSense_Lidar_getUrlSignalsArray",yra,void 0);var zra=aj(196,function(){return g.Ok(Di())});
g.Ia("Goog_AdSense_Lidar_getUrlSignalsList",zra,void 0);var Iea=(new Date).getTime();g.h=g.Rm.prototype;g.h.Gd=function(){Tm(this);for(var a=[],b=0;b<this.o.length;b++)a.push(this.u[this.o[b]]);return a};
g.h.te=function(){Tm(this);return this.o.concat()};
g.h.isEmpty=function(){return 0==this.w};
g.h.clear=function(){this.u={};this.Rh=this.w=this.o.length=0};
g.h.remove=function(a){return Sm(this.u,a)?(delete this.u[a],this.w--,this.Rh++,this.o.length>2*this.w&&Tm(this),!0):!1};
g.h.get=function(a,b){return Sm(this.u,a)?this.u[a]:b};
g.h.set=function(a,b){Sm(this.u,a)||(this.w++,this.o.push(a),this.Rh++);this.u[a]=b};
g.h.forEach=function(a,b){for(var c=this.te(),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.Rm(this)};
g.h.Yf=function(a){Tm(this);var b=0,c=this.Rh,d=this,e=new jk;e.next=function(){if(c!=d.Rh)throw Error("The map has changed since the iterator was created");if(b>=d.o.length)throw kk;var f=d.o[b++];return a?f:d.u[f]};
return e};g.Um.prototype.toString=function(){var a=[],b=this.B;b&&a.push(an(b,Ara,!0),":");var c=this.o;if(c||"file"==b)a.push("//"),(b=this.G)&&a.push(an(b,Ara,!0),"@"),a.push(dd(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.A,null!=c&&a.push(":",String(c));if(c=this.u)this.o&&"/"!=c.charAt(0)&&a.push("/"),a.push(an(c,"/"==c.charAt(0)?Bra:Cra,!0));(c=this.w.toString())&&a.push("?",c);(c=this.C)&&a.push("#",an(c,Dra));return a.join("")};
g.Um.prototype.resolve=function(a){var b=this.clone(),c=!!a.B;c?g.Vm(b,a.B):c=!!a.G;c?b.G=a.G:c=!!a.o;c?g.Wm(b,a.o):c=null!=a.A;var d=a.u;if(c)g.Xm(b,a.A);else if(c=!!a.u){if("/"!=d.charAt(0))if(this.o&&!this.u)d="/"+d;else{var e=b.u.lastIndexOf("/");-1!=e&&(d=b.u.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=fc(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.u=d:c=""!==a.w.toString();c?Ym(b,a.w.clone()):c=!!a.C;c&&(b.C=a.C);return b};
g.Um.prototype.clone=function(){return new g.Um(this)};
var Ara=/[#\/\?@]/g,Cra=/[#\?:]/g,Bra=/[#\?]/g,Eda=/[#\?@]/g,Dra=/#/g;g.h=$m.prototype;g.h.add=function(a,b){cn(this);this.w=null;a=dn(this,a);var c=this.o.get(a);c||this.o.set(a,c=[]);c.push(b);this.u=this.u+1;return this};
g.h.remove=function(a){cn(this);a=dn(this,a);return Sm(this.o.u,a)?(this.w=null,this.u=this.u-this.o.get(a).length,this.o.remove(a)):!1};
g.h.clear=function(){this.o=this.w=null;this.u=0};
g.h.isEmpty=function(){cn(this);return 0==this.u};
g.h.forEach=function(a,b){cn(this);this.o.forEach(function(c,d){(0,g.y)(c,function(e){a.call(b,e,d,this)},this)},this)};
g.h.te=function(){cn(this);for(var a=this.o.Gd(),b=this.o.te(),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.Gd=function(a){cn(this);var b=[];if("string"===typeof a)en(this,a)&&(b=g.jb(b,this.o.get(dn(this,a))));else{a=this.o.Gd();for(var c=0;c<a.length;c++)b=g.jb(b,a[c])}return b};
g.h.set=function(a,b){cn(this);this.w=null;a=dn(this,a);en(this,a)&&(this.u=this.u-this.o.get(a).length);this.o.set(a,[b]);this.u=this.u+1;return this};
g.h.get=function(a,b){if(!a)return b;var c=this.Gd(a);return 0<c.length?String(c[0]):b};
g.h.toString=function(){if(this.w)return this.w;if(!this.o)return"";for(var a=[],b=this.o.te(),c=0;c<b.length;c++){var d=b[c],e=dd(d);d=this.Gd(d);for(var f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+dd(d[f]));a.push(k)}}return this.w=a.join("&")};
g.h.clone=function(){var a=new $m;a.w=this.w;this.o&&(a.o=this.o.clone(),a.u=this.u);return a};var gn="://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(" "),Gda=/\bocr\b/;var Hda=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.Va(kn,Lg);g.Va(ln,Lg);var Ida=[1];g.Va(mn,Lg);g.Va(nn,Lg);g.Va(on,Lg);g.Va(pn,Lg);g.Va(qn,Lg);g.Va(sn,Lg);g.Va(un,Lg);var Lda=[3,6,4],Mda=[[1,2]],Nda=[1],rn=[[1,2,3]],tn=[[1,2,3]];vn.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.u[a]!=b&&(this.u[a]=b,this.o=-1)};
vn.prototype.get=function(a){return!!this.u[a]};g.Va(g.wn,g.A);g.h=g.wn.prototype;g.h.start=function(){this.stop();this.A=!1;var a=yn(this),b=zn(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.o=We(this.u,"MozBeforePaint",this.w),this.u.mozRequestAnimationFrame(null),this.A=!0):this.o=a&&b?a.call(this.u,this.w):this.u.setTimeout(taa(this.w),20)};
g.h.stop=function(){if(this.isActive()){var a=yn(this),b=zn(this);a&&!b&&this.u.mozRequestAnimationFrame?ef(this.o):a&&b?b.call(this.u,this.o):this.u.clearTimeout(this.o)}this.o=null};
g.h.isActive=function(){return null!=this.o};
g.h.dF=function(){this.A&&this.o&&ef(this.o);this.o=null;this.C.call(this.B,(0,g.G)())};
g.h.X=function(){this.stop();g.wn.Fb.X.call(this)};g.Va(g.H,g.A);g.h=g.H.prototype;g.h.vl=0;g.h.X=function(){g.H.Fb.X.call(this);this.stop();delete this.o;delete this.u};
g.h.start=function(a){this.stop();this.vl=g.Xf(this.w,void 0!==a?a:this.Bd)};
g.h.stop=function(){this.isActive()&&g.v.clearTimeout(this.vl);this.vl=0};
g.h.isActive=function(){return 0!=this.vl};
g.h.zx=function(){this.vl=0;this.o&&this.o.call(this.u)};(function(){for(var a=["ms","moz","webkit","o"],b,c=0;b=a[c]&&!g.v.requestAnimationFrame;++c)g.v.requestAnimationFrame=g.v[b+"RequestAnimationFrame"],g.v.cancelAnimationFrame=g.v[b+"CancelAnimationFrame"]||g.v[b+"CancelRequestAnimationFrame"];if(!g.v.requestAnimationFrame){var d=0;g.v.requestAnimationFrame=function(e){var f=(new Date).getTime(),k=Math.max(0,16-(f-d));d=f+k;return g.v.setTimeout(function(){e(f+k)},k)};
g.v.cancelAnimationFrame||(g.v.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var Dn=[[],[]],En=0,Fn=!1,Vda=0;g.Va(g.Nn,g.kf);g.h=g.Nn.prototype;g.h.ab=function(){return 1==this.o};
g.h.jp=function(){this.re("begin")};
g.h.lm=function(){this.re("end")};
g.h.Fc=function(){this.re("finish")};
g.h.re=function(a){this.dispatchEvent(a)};var Era=Ab(function(){if(g.ke)return g.Nd("10.0");var a=g.re("DIV"),b=g.me?"-webkit":zh?"-moz":g.ke?"-ms":g.Ah?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!dra.test("div"))throw Error("");if("DIV"in fra)throw Error("");c=null;var d="";if(b)for(k in b){if(!dra.test(k))throw Error("");var e=b[k];if(null!=e){var f=k;if(e instanceof Zb)e=$b(e);else if("style"==f.toLowerCase()){if(!g.Qa(e))throw Error("");e instanceof Cc||(e=Ic(e));e=Dc(e)}else{if(/^on/i.test(f))throw Error("");
if(f.toLowerCase()in era)if(e instanceof dc)e=ec(e).toString();else if(e instanceof g.wc)e=g.xc(e);else if("string"===typeof e)e=g.zc(e).xe();else throw Error("");}e.tg&&(e=e.xe());f=f+'="'+oc(String(e))+'"';d+=" "+f}}var k="<div"+d;d=void 0;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===Zqa.div?k+=">":(c=Jaa(d),k+=">"+g.Tc(c).toString()+"</div>",c=c.o());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Xc(k,c);g.Zc(a,b);return""!=g.Bh(a.firstChild,"transition")});g.Va(On,g.Nn);g.h=On.prototype;g.h.play=function(){if(this.ab())return!1;this.jp();this.re("play");this.startTime=(0,g.G)();this.o=1;if(Era())return g.xh(this.w,this.G),this.B=g.Xf(this.ON,void 0,this),!0;this.Ur(!1);return!1};
g.h.ON=function(){g.Sh(this.w);Yda(this.w,this.F);g.xh(this.w,this.A);this.B=g.Xf((0,g.x)(this.Ur,this,!1),1E3*this.C)};
g.h.stop=function(){this.ab()&&this.Ur(!0)};
g.h.Ur=function(a){g.xh(this.w,"transition","");g.v.clearTimeout(this.B);g.xh(this.w,this.A);this.endTime=(0,g.G)();this.o=0;a?this.re("stop"):this.Fc();this.lm()};
g.h.X=function(){this.stop();On.Fb.X.call(this)};
g.h.pause=function(){};var Zda={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};var cea=Qn("getPropertyValue"),dea=Qn("setProperty");var bea={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Un.prototype.clone=function(){return new g.Un(this.o,this.B,this.w,this.C,this.A,this.F,this.u,this.G)};g.Wn.prototype.u=0;g.Wn.prototype.reset=function(){this.o=this.w=this.A;this.u=0};
g.Wn.prototype.getValue=function(){return this.w};Yn.prototype.clone=function(){return new Yn(this.start,this.end)};
Yn.prototype.getLength=function(){return this.end-this.start};(function(){if(CT){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Lc))?a[1]:"0"}return PG?(a=/10[_.][0-9_.]+/,(a=a.exec(g.Lc))?a[0].replace(/_/g,"."):"10"):g.Ly?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Lc))?a[1]:""):gra||hra||ira?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Lc))?a[1].replace(/_/g,"."):""):""})();var jea=function(){if(g.ku)return Zn(/Firefox\/([0-9.]+)/);if(g.ke||g.zu||g.Ah)return Md;if(g.Gt)return Id()?Zn(/CriOS\/([0-9.]+)/):Zn(/Chrome\/([0-9.]+)/);if(g.rz&&!Id())return Zn(/Version\/([0-9.]+)/);if(Vy||VB){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Lc);if(a)return a[1]+"."+a[2]}else if(g.Ny)return(a=Zn(/Android\s+([0-9.]+)/))?a:Zn(/Version\/([0-9.]+)/);return""}();g.Va(g.ao,g.A);g.h=g.ao.prototype;g.h.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.B;this.o[e]=a;this.o[e+1]=b;this.o[e+2]=c;this.B=e+3;d.push(e);return e};
g.h.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.o;if(a=g.$a(a,function(e){return d[e+1]==b&&d[e+2]==c}))return this.ti(a)}return!1};
g.h.ti=function(a){var b=this.o[a];if(b){var c=this.u[b];0!=this.A?(this.w.push(a),this.o[a+1]=g.Ka):(c&&g.gb(c,a),delete this.o[a],delete this.o[a+1],delete this.o[a+2])}return!!b};
g.h.S=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.C)for(e=0;e<c.length;e++){var k=c[e];kea(this.o[k+1],this.o[k+2],d)}else{this.A++;try{for(e=0,f=c.length;e<f;e++)k=c[e],this.o[k+1].apply(this.o[k+2],d)}finally{if(this.A--,0<this.w.length&&0==this.A)for(;c=this.w.pop();)this.ti(c)}}return 0!=e}return!1};
g.h.clear=function(a){if(a){var b=this.u[a];b&&((0,g.y)(b,this.ti,this),delete this.u[a])}else this.o.length=0,this.u={}};
g.h.X=function(){g.ao.Fb.X.call(this);this.clear();this.w.length=0};g.bo.prototype.set=function(a,b){void 0===b?this.o.remove(a):this.o.set(a,g.Ok(b))};
g.bo.prototype.get=function(a){try{var b=this.o.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.bo.prototype.remove=function(a){this.o.remove(a)};g.Va(co,g.bo);co.prototype.set=function(a,b){co.Fb.set.call(this,a,fo(b))};
co.prototype.u=function(a){a=co.Fb.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
co.prototype.get=function(a){if(a=this.u(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Va(go,co);go.prototype.set=function(a,b,c){if(b=fo(b)){if(c){if(c<(0,g.G)()){go.prototype.remove.call(this,a);return}b.expiration=c}b.creation=(0,g.G)()}go.Fb.set.call(this,a,b)};
go.prototype.u=function(a,b){var c=go.Fb.u.call(this,a);if(c)if(!b&&g.ho(c))go.prototype.remove.call(this,a);else return c};g.Va(g.io,go);g.Va(jo,lea);jo.prototype.clear=function(){var a=qca(this.Yf(!0)),b=this;(0,g.y)(a,function(c){b.remove(c)})};g.Va(ko,jo);g.h=ko.prototype;g.h.isAvailable=function(){if(!this.o)return!1;try{return this.o.setItem("__sak","1"),this.o.removeItem("__sak"),!0}catch(a){return!1}};
g.h.set=function(a,b){try{this.o.setItem(a,b)}catch(c){if(0==this.o.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.h.get=function(a){a=this.o.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.o.removeItem(a)};
g.h.Yf=function(a){var b=0,c=this.o,d=new jk;d.next=function(){if(b>=c.length)throw kk;var e=c.key(b++);if(a)return e;e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e};
return d};
g.h.clear=function(){this.o.clear()};
g.h.key=function(a){return this.o.key(a)};g.Va(lo,ko);g.Va(mo,ko);g.Va(oo,jo);var mea={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},no=null;g.h=oo.prototype;g.h.isAvailable=function(){return!!this.o};
g.h.set=function(a,b){this.o.setAttribute(po(a),b);qo(this)};
g.h.get=function(a){a=this.o.getAttribute(po(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.o.removeAttribute(po(a));qo(this)};
g.h.Yf=function(a){var b=0,c=this.o.XMLDocument.documentElement.attributes,d=new jk;d.next=function(){if(b>=c.length)throw kk;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e};
return d};
g.h.clear=function(){for(var a=this.o.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);qo(this)};g.Va(ro,jo);ro.prototype.set=function(a,b){this.u.set(this.o+a,b)};
ro.prototype.get=function(a){return this.u.get(this.o+a)};
ro.prototype.remove=function(a){this.u.remove(this.o+a)};
ro.prototype.Yf=function(a){var b=this.u.Yf(!0),c=this,d=new jk;d.next=function(){for(var e=b.next();e.substr(0,c.o.length)!=c.o;)e=b.next();return a?e.substr(c.o.length):c.u.get(e)};
return d};to.prototype.getValue=function(){return this.u};
to.prototype.clone=function(){return new to(this.o,this.u)};g.h=uo.prototype;g.h.remove=function(){var a=this.o,b=a.length,c=a[0];if(!(0>=b)){if(1==b)eb(a);else{a[0]=a.pop();a=0;b=this.o;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].o<b[f].o?k:f;if(b[f].o>e.o)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.h.Gd=function(){for(var a=this.o,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.h.te=function(){for(var a=this.o,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].o);return b};
g.h.clone=function(){return new uo(this)};
g.h.isEmpty=function(){return g.db(this.o)};
g.h.clear=function(){eb(this.o)};g.Va(g.wo,uo);La(xo);xo.prototype.o=0;g.Va(yo,Lg);g.Va(zo,Lg);var nea=[2,13,14];var Ao=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.Ia("yt.config_",Ao,void 0);var Ko={};var Lo=[];var Fra=g.w("ytPubsubPubsubInstance")||new g.ao;g.ao.prototype.subscribe=g.ao.prototype.subscribe;g.ao.prototype.unsubscribeByKey=g.ao.prototype.ti;g.ao.prototype.publish=g.ao.prototype.S;g.ao.prototype.clear=g.ao.prototype.clear;g.Ia("ytPubsubPubsubInstance",Fra,void 0);var So=g.w("ytPubsubPubsubSubscribedKeys")||{};g.Ia("ytPubsubPubsubSubscribedKeys",So,void 0);var Uo=g.w("ytPubsubPubsubTopicToKeys")||{};g.Ia("ytPubsubPubsubTopicToKeys",Uo,void 0);g.To=g.w("ytPubsubPubsubIsSynchronous")||{};
g.Ia("ytPubsubPubsubIsSynchronous",g.To,void 0);var sea=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,tea=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,bp={};var Gra={hS:"PLAYBACK_TYPE_UNKNOWN",bS:"PLAYBACK_TYPE_APPLICATION",aS:"PLAYBACK_TYPE_ADS",fS:"PLAYBACK_TYPE_REMOTE",gS:"PLAYBACK_TYPE_SECONDARY_CAMERA",eS:"PLAYBACK_TYPE_PREROLL_INTERSTITIAL",dS:"PLAYBACK_TYPE_POSTROLL_INTERSTITIAL",cS:"PLAYBACK_TYPE_MIDROLL_INTERSTITIAL"};var T1;T1=window;g.N=T1.ytcsi&&T1.ytcsi.now?T1.ytcsi.now:T1.performance&&T1.performance.timing&&T1.performance.now&&T1.performance.timing.navigationStart?function(){return T1.performance.timing.navigationStart+T1.performance.now()}:function(){return(new Date).getTime()};var wea=Fo("initial_gel_batch_timeout",1E3),pp=Math.pow(2,16)-1,qp=null,op=0,ep=void 0,cp=0,dp=0,kq=0,kp=!0,hp=g.w("ytLoggingTransportLogPayloadsQueue_")||{};g.Ia("ytLoggingTransportLogPayloadsQueue_",hp,void 0);var gp=g.w("ytLoggingTransportGELQueue_")||new Map;g.Ia("ytLoggingTransportGELQueue_",gp,void 0);var mp=g.w("ytLoggingTransportTokensToCttTargetIds_")||{};g.Ia("ytLoggingTransportTokensToCttTargetIds_",mp,void 0);var Cea=Fo("initial_gel_batch_timeout",1E3),xp=Math.pow(2,16)-1,yp=null,zp=0,zea={log_event:"events",log_interaction:"interactions"},Aea=new Set(["log_event"]),up={},rp=0,sp=0,lq=0,Ap=!0,tp=g.w("ytLoggingTransportLogPayloadsQueue_")||{};g.Ia("ytLoggingTransportLogPayloadsQueue_",tp,void 0);var wp=g.w("ytLoggingTransportTokensToCttTargetIds_")||{};g.Ia("ytLoggingTransportTokensToCttTargetIds_",wp,void 0);var Hra=0,Dp=g.me?"webkit":zh?"moz":g.ke?"ms":g.Ah?"o":"",Ira=g.w("ytDomDomGetNextId")||function(){return++Hra};
g.Ia("ytDomDomGetNextId",Ira,void 0);var Dea={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};Gp.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Gp.prototype.Yx=function(){return this.event?!1===this.event.returnValue:!1};
Gp.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Gp.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Ip=g.w("ytEventsEventsListeners")||{};g.Ia("ytEventsEventsListeners",Ip,void 0);var Jp=g.w("ytEventsEventsCounter")||{count:0};g.Ia("ytEventsEventsCounter",Jp,void 0);var Jra=Ab(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Kp=Ab(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var uy=window.ytcsi&&window.ytcsi.now?window.ytcsi.now:window.performance&&window.performance.timing&&window.performance.now&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};g.Va(Xp,g.A);Xp.prototype.L=function(a){void 0===a.o&&Hp(a);var b=a.o;void 0===a.u&&Hp(a);this.o=new g.Td(b,a.u)};
Xp.prototype.jh=function(){return this.o||new g.Td};
Xp.prototype.F=function(){if(this.o){var a=uy();if(0!=this.B){var b=this.C,c=this.o,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.B);this.u[this.w]=.5<Math.abs((d-this.A)/this.A)?1:0;for(c=b=0;4>c;c++)b+=this.u[c]||0;3<=b&&this.I();this.A=d}this.B=a;this.C=this.o;this.w=(this.w+1)%4}};
Xp.prototype.X=function(){window.clearInterval(this.P);g.Mp(this.G)};g.r(aq,Gea);aq.prototype.start=function(){var a=g.w("yt.scheduler.instance.start");a&&a()};
aq.prototype.pause=function(){var a=g.w("yt.scheduler.instance.pause");a&&a()};
La(aq);aq.getInstance();var hq={};var jq=g.w("ytLoggingGelSequenceIdObj_")||{};g.Ia("ytLoggingGelSequenceIdObj_",jq,void 0);var Aq=new function(){var a=window.document;this.o=window;this.u=a};
g.Ia("yt.ads_.signals_.getAdSignalsString",function(a){return qq(Cq(a))},void 0);(0,g.G)();var v_={debug:1,info:2,warn:3,error:4,off:5};var Dq=void 0!==XMLHttpRequest?function(){return new XMLHttpRequest}:void 0!==ActiveXObject?function(){return new ActiveXObject("Microsoft.XMLHTTP")}:null;var Gq={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-Device":"DEVICE","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"},Lea="app debugcss debugjs expflag force_ad_params force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" "),
Nq=!1;Wq.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.o)try{this.o.set(a,b,(0,g.G)()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Ok(b))}catch(f){return}else e=escape(b);g.Tq(a,e,c,this.u)};
Wq.prototype.get=function(a,b){var c=void 0,d=!this.o;if(!d)try{c=this.o.get(a)}catch(e){d=!0}if(d&&(c=Uq(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
Wq.prototype.remove=function(a){this.o&&this.o.remove(a);g.Vq(a,"/",this.u)};new Wq;g.Xq.prototype.isReady=function(){!this.o&&Qq()&&(this.o=Rq());return!!this.o};g.r(Zq,Error);var dr=new Set,br=0;er.prototype.initialize=function(a,b,c,d,e,f){var k=this;f=void 0===f?!1:f;b?(this.pc=!0,g.$o(b,function(){k.pc=!1;if(window.botguard)fr(k,c,d,f);else{var l=ap(b),m=document.getElementById(l);m&&(Zo(l),m.parentNode.removeChild(m));g.ar(new Zq("Unable to load Botguard","from "+b))}},e)):a&&(eval(a),window.botguard?fr(this,c,d,f):g.ar(Error("Unable to load Botguard from JS")))};
er.prototype.dispose=function(){this.o=null};var Uea=[],hr=!1;var mr={},Xea=0;g.r(nr,Wa);qr.prototype.then=function(a,b,c){return 1===this.u&&a?(a=a.call(c,this.o),Af(a)?a:sr(a)):2===this.u&&b?(a=b.call(c,this.o),Af(a)?a:rr(a)):this};
qr.prototype.getValue=function(){return this.o};
qr.prototype.$goog_Thenable=!0;g.r(ur,Wa);ur.prototype.name="BiscottiError";g.r(tr,Wa);tr.prototype.name="BiscottiMissingError";var wr={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},vr=null;var Zea=g.Eo("html5_disable_client_tmp_logs");var Cr=g.w("ytglobal.prefsUserPrefsPrefs_")||{};g.Ia("ytglobal.prefsUserPrefsPrefs_",Cr,void 0);g.h=Dr.prototype;g.h.get=function(a,b){Hr(a);Gr(a);var c=void 0!==Cr[a]?Cr[a].toString():null;return null!=c?c:b?b:""};
g.h.set=function(a,b){Hr(a);Gr(a);if(null==b)throw Error("ExpectedNotNull");Cr[a]=b.toString()};
g.h.remove=function(a){Hr(a);Gr(a);delete Cr[a]};
g.h.save=function(){g.Tq(this.o,this.dump(),63072E3)};
g.h.clear=function(){g.Qb(Cr)};
g.h.dump=function(){var a=[],b;for(b in Cr)a.push(b+"="+encodeURIComponent(String(Cr[b])));return a.join("&")};
La(Dr);var afa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),dfa={"/youtuberedoriginals":!0,"/originals":!0},cfa=["/fashion","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ","/channel/UCTApTkbpcqiLL39WUlne4ig","/channel/UCW5PCzG3KQvbOX4zc3KY0lQ"];g.r(g.Nr,g.A);g.Nr.prototype.K=function(a,b,c,d,e){c=Mo((0,g.x)(c,d||this.Md));c={target:a,name:b,Eb:c};var f;e&&Jra()&&(f={passive:!0});a.addEventListener(b,c.Eb,f);this.Z.push(c);return c};
g.Nr.prototype.Za=function(a){for(var b=0;b<this.Z.length;b++)if(this.Z[b]==a){this.Z.splice(b,1);a.target.removeEventListener(a.name,a.Eb);break}};
g.Nr.prototype.X=function(){g.Pr(this);g.A.prototype.X.call(this)};g.Va(g.O,g.A);g.O.prototype.subscribe=function(a,b,c){return this.ea()?0:this.Kh.subscribe(a,b,c)};
g.O.prototype.unsubscribe=function(a,b,c){return this.ea()?!1:this.Kh.unsubscribe(a,b,c)};
g.O.prototype.Dh=function(a){return this.ea()?!1:this.Kh.ti(a)};
g.O.prototype.S=function(a,b){return this.ea()?!1:this.Kh.S.apply(this.Kh,arguments)};g.r(g.Tr,g.O);g.h=g.Tr.prototype;g.h.cancel=function(){this.A&&(this.A=!1,this.S("dragend",0,0,null));this.u&&(this.u=!1,this.S("hoverend",0,0,null),g.Pr(this.o),Sr(this))};
g.h.Hy=function(a){g.Pr(this.o);Ur(this,Vr("move"),this.Fy);Ur(this,Vr("out"),this.Gy);Ur(this,"touchstart",this.Ts);this.w&&Ur(this,Vr("down"),this.Ss);var b=g.Np(a);a=Qp(a);this.u=!0;this.S("hoverstart",a.x,a.y,b);this.S("hovermove",a.x,a.y,b)};
g.h.Fy=function(a){var b=g.Np(a);a=Qp(a);if(this.B){var c=this.B;this.B=null;if(Pp(c)==b&&Ud(Qp(c),a))return}this.S("hovermove",a.x,a.y,b)};
g.h.Gy=function(a){var b=Qp(a),c=Pp(a);try{if(c&&g.Ae(this.C,c)){this.B=a;this.S("hovermove",b.x,b.y,c);return}}catch(d){}g.Pr(this.o);Sr(this);this.u=!1;this.S("hoverend",b.x,b.y,c)};
g.h.CJ=function(a){this.Hy(a);this.Ss(a)};
g.h.Ss=function(a){if("number"!==typeof a.button||0==a.button){g.Pr(this.o);this.o.K(document,Vr("move"),this.BJ);this.o.K(document,Vr("up"),this.AG);var b=g.Np(a);if(g.me)Ur(this,"dragstart",this.rE);else if(g.Rp(a),(g.qz||zh)&&b)a:{for(var c=b;c;){if(Ee(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.A=!0;a=Qp(a);this.S("dragstart",a.x,a.y,b);this.S("dragmove",a.x,a.y,b)}};
g.h.rE=function(a){g.Rp(a)};
g.h.BJ=function(a){var b=g.Np(a);b==document&&(b=null);a=Qp(a);this.S("hovermove",a.x,a.y,b);this.S("dragmove",a.x,a.y,b)};
g.h.AG=function(a){g.Pr(this.o);this.A=!1;var b=Op(a),c=g.Np(a);a=Qp(a);b&&g.Ae(this.C,b)?(Ur(this,Vr("move"),this.Fy),Ur(this,Vr("out"),this.Gy),Ur(this,Vr("down"),this.Ss),Ur(this,"touchstart",this.Ts),this.S("dragend",a.x,a.y,c)):(Sr(this),this.u=!1,this.S("dragend",a.x,a.y,c),this.S("hoverend",a.x,a.y,c))};
g.h.Ts=function(a){var b=a.changedTouches[0];b&&(g.Pr(this.o),Ur(this,"touchmove",this.NO),Ur(this,"touchend",this.Iy),Ur(this,"touchcancel",this.Iy),this.F=b.identifier,a=g.Np(a),this.u||(this.u=!0,this.S("hoverstart",b.pageX,b.pageY,a)),this.S("hovermove",b.pageX,b.pageY,a),this.w&&(this.A=!0,this.S("dragstart",b.pageX,b.pageY,a),this.S("dragmove",b.pageX,b.pageY,a)))};
g.h.NO=function(a){var b=Wr(this,a);b&&(this.w&&g.Rp(a),a=g.Np(a),this.S("hovermove",b.pageX,b.pageY,a),this.w&&this.S("dragmove",b.pageX,b.pageY,a))};
g.h.Iy=function(a){var b=Wr(this,a);if(b){g.Pr(this.o);Sr(this);this.u=!1;var c=g.Np(a);this.w&&(this.G||g.Rp(a),this.A=!1,this.S("dragend",b.pageX,b.pageY,c));this.S("hoverend",b.pageX,b.pageY,c)}};
g.h.X=function(){this.w&&(g.me&&this.C.removeAttribute("draggable"),this.C.style.touchAction="");g.Pr(this.o);g.O.prototype.X.call(this)};Xr.prototype.clone=function(){var a=new Xr,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==Ma(c)?a[b]=g.Sb(c):a[b]=c}return a};var Yr=(0,g.G)().toString();var ms=g.w("ytLoggingDocDocumentNonce_")||$r();g.Ia("ytLoggingDocDocumentNonce_",ms,void 0);Zf.prototype.flush=function(a){a=void 0===a?[]:a;if(g.Eo("enable_client_streamz_web")){a=g.q(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=new mn;c=Tg(c,1,b.A);for(var d=b,e=[],f=0;f<d.o.length;f++)e.push(d.o[f].jg);c=Tg(c,3,e||[]);d=[];e=[];f=g.q(b.nj.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=b.u;for(var m=b.dx(k)||[],n=[],p=0;p<m.length;p++){var t=m[p];t=t&&t.ow;var u=new un;switch(l){case 3:Vg(u,1,tn[0],Number(t));
break;case 2:Vg(u,2,tn[0],Number(t))}n.push(u)}l=n;for(m=0;m<l.length;m++){p=l[m];n=new qn;n.o||(n.o={});t=p?Zg(p):p;n.o[2]=p;n=Tg(n,2,t);p=k;t=[];u=b;for(var z=[],B=0;B<u.o.length;B++)z.push(u.o[B].kg);u=z;for(z=0;z<u.length;z++){B=u[z];var D=p[z],E=new sn;switch(B){case 3:Vg(E,1,rn[0],String(D));break;case 2:Vg(E,2,rn[0],Number(D));break;case 1:Vg(E,3,rn[0],"true"==D)}t.push(E)}$g(n,1,t);d.push(n)}}$g(c,4,d);d=b=new xg;e=Rg(c,1);null!=e&&Ig(d,1,e);e=Rg(c,5);null!=e&&Fg(d,5,e);e=Wg(c,nn,2);null!=
e&&Jg(d,2,e,Qda);e=Rg(c,3);if(0<e.length&&null!=e)for(f=0;f<e.length;f++)Ig(d,3,e[f]);e=Rg(c,6);if(0<e.length&&null!=e)for(f=0;f<e.length;f++)Fg(d,6,e[f]);e=Yg(c,qn,4);0<e.length&&Kg(d,4,e,Tda);b=Ag(b);b={serializedIncrementBatch:g.eg(b)};g.Yq("streamzIncremented",b)}}};var gfa=1;bs.prototype.toString=function(){return JSON.stringify(g.es(this))};g.Ia("yt_logging_screen.getRootVeType",hs,void 0);g.Ia("yt_logging_screen.getCurrentCsn",g.ks,void 0);g.Ia("yt_logging_screen.getCttAuthInfo",g.ls,void 0);g.Ia("yt_logging_screen.setCurrentScreen",ns,void 0);ps.prototype.toString=function(){return this.topic};var Kra=g.w("ytPubsub2Pubsub2Instance")||new g.ao;g.ao.prototype.subscribe=g.ao.prototype.subscribe;g.ao.prototype.unsubscribeByKey=g.ao.prototype.ti;g.ao.prototype.publish=g.ao.prototype.S;g.ao.prototype.clear=g.ao.prototype.clear;g.Ia("ytPubsub2Pubsub2Instance",Kra,void 0);var ts=g.w("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ia("ytPubsub2Pubsub2SubscribedKeys",ts,void 0);var vs=g.w("ytPubsub2Pubsub2TopicToKeys")||{};g.Ia("ytPubsub2Pubsub2TopicToKeys",vs,void 0);
var us=g.w("ytPubsub2Pubsub2IsAsync")||{};g.Ia("ytPubsub2Pubsub2IsAsync",us,void 0);g.Ia("ytPubsub2Pubsub2SkipSubKey",null,void 0);g.r(ys,os);var jfa=new ps("screen-created",ys),Ds=[],Es=0;var Hs;g.Is=Ab(function(){var a=new lo;return a.isAvailable()?new g.io(a):null});
g.Js=Ab(function(){var a=new mo;return a.isAvailable()?new g.io(a):null});var gr=new er,Ss=0;var Sha={wQ:1,DQ:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};Ys.prototype.getName=function(){return this.name};
Ys.prototype.getId=function(){return this.id};
Ys.prototype.getIsDefault=function(){return this.isDefault};
Ys.prototype.toString=function(){return this.name};
Ys.prototype.getName=Ys.prototype.getName;Ys.prototype.getId=Ys.prototype.getId;Ys.prototype.getIsDefault=Ys.prototype.getIsDefault;g.h=g.Zs.prototype;g.h.getId=function(){return this.id};
g.h.getName=function(){return this.name};
g.h.isServable=function(){return this.o};
g.h.jc=function(){return this.url};
g.h.toString=function(){return this.languageCode+": "+g.$s(this)+" - "+this.vssId};
g.h.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};at.prototype.getLanguageInfo=function(){return this.sb};
at.prototype.toString=function(){return this.sb.name};
at.prototype.getLanguageInfo=at.prototype.getLanguageInfo;var lu={name:"width",video:!0,valid:640,Re:99999},mu={name:"height",video:!0,valid:360,Re:99999},nu={name:"framerate",video:!0,valid:30,Re:9999},ou={name:"bitrate",video:!0,valid:3E5,Re:2E9},ju={name:"eotf",video:!0,valid:"bt709",Re:"catavision"},ru={name:"channels",video:!1,valid:2,Re:99},pu={name:"cryptoblockformat",video:!0,valid:"subsample",Re:"invalidformat"},qu={name:"decode-to-texture",video:!0,valid:"false",Re:"nope"},yu={name:"codecs",video:!0,valid:"av01.0.05M.08",Re:"av99.0.05M.08"},tu=
{name:"experimental",video:!0,valid:"allowed",Re:"invalid"},uu={gT:lu,eR:mu,PQ:nu,YP:ou,GQ:ju,kQ:ru,pQ:pu,tQ:qu,WP:yu,LQ:tu};var sfa={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",214:"h",216:"h",374:"h",375:"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",598:"9",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",353:"9",355:"9",271:"9",313:"9",272:"9",302:"9",303:"9",407:"9",
408:"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",600:"o",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",279:"(",280:"(",317:"(",318:"(",273:"(",274:"(",357:"(",358:"(",275:"(",359:"(",360:"(",276:"(",583:"(",584:"(",314:"(",585:"(",561:"(",277:"(",362:"(h",363:"(h",364:"(h",365:"(h",366:"(h",591:"(h",592:"(h",367:"(h",586:"(h",587:"(h",368:"(h",588:"(h",562:"(h",409:"(",410:"(",411:"(",412:"(",557:"(",558:"(",
394:"1",395:"1",396:"1",397:"1",398:"1",399:"1",400:"1",401:"1",571:"1",402:"1",386:"3",387:"w",406:"6"};var Kfa={UP:"auto",OS:"tiny",BR:"light",ES:"small",HR:"medium",zR:"large",cR:"hd720",YQ:"hd1080",ZQ:"hd1440",aR:"hd2160",bR:"hd2880",iR:"highres",UNKNOWN:"unknown"};var U1;U1={};g.dt=(U1.auto=0,U1.tiny=144,U1.light=144,U1.small=240,U1.medium=360,U1.large=480,U1.hd720=720,U1.hd1080=1080,U1.hd1440=1440,U1.hd2160=2160,U1.hd2880=2880,U1.highres=4320,U1);var ht="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");kt.prototype.va=function(){return this.video};
kt.prototype.Bc=function(){return 2==this.containerType};
kt.prototype.po=function(){return!!this.zc};
kt.prototype.isVideo=function(){return!!this.video};var tt=null;g.h=Lt.prototype;g.h.append=function(a){this.o.webkitSourceAppend(this.u,a)};
g.h.abort=function(){this.o.webkitSourceAbort(this.u)};
g.h.fP=function(){return this.o.webkitSourceState==this.o.SOURCE_CLOSED?new Ffa:this.o.webkitSourceBuffered(this.u)};
g.h.hP=function(){return this.w};
g.h.lP=function(a){this.w=a;this.o.webkitSourceTimestampOffset(this.u,a)};g.h=Mt.prototype;g.h.addEventListener=function(a,b,c){this.o.addEventListener(a,b,c)};
g.h.removeEventListener=function(a,b,c){this.o.removeEventListener(a,b,c)};
g.h.BI=function(){return this.o.webkitMediaSourceURL};
g.h.addSourceBuffer=function(a){var b=(this.w++).toString();this.o.webkitSourceAddId(b,a);a=new Lt(this.o,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.o.webkitSourceRemoveId(a.u);for(a=b+1;a<this.sourceBuffers.length;a++)this.sourceBuffers[a-1]=this.sourceBuffers[a];this.sourceBuffers.pop();break}};
g.h.iP=function(){switch(this.o.webkitSourceState){case this.o.SOURCE_CLOSED:return"closed";case this.o.SOURCE_OPEN:return"open";case this.o.SOURCE_ENDED:return"ended"}return""};
g.h.endOfStream=function(){this.o.webkitSourceEndOfStream(this.o.EOS_NO_ERROR)};
g.h.jP=function(){eb(this.sourceBuffers)};
g.h.gP=function(){return this.u};
g.h.kP=function(a){this.u=a;this.o.webkitSourceSetDuration&&this.o.webkitSourceSetDuration(a)};Nt.prototype.start=function(){return 0};
Nt.prototype.end=function(){return Infinity};g.h=Ot.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(){};var eE=!1;g.r(Xt,g.O);g.h=Xt.prototype;g.h.appendBuffer=function(a,b,c){this.u=!1;c&&(this.w=c);b&&(b.po()&&(this.P=this.w),this.B=b);this.supports(0)?this.o.appendBuffer(a):this.o.append(a)};
g.h.abort=function(){try{this.o.abort()}catch(a){}this.w=this.B=null};
g.h.remove=function(a,b){this.u=!1;this.o.remove(a,b)};
g.h.Qn=function(){return eE&&this.G?this.L:this.o.appendWindowStart};
g.h.Hr=function(){return this.o.appendWindowEnd};
g.h.wu=function(a,b){eE&&this.G?(this.L=a,this.o.appendWindowEnd=b):a>this.Qn()?(this.o.appendWindowEnd=b,this.o.appendWindowStart=a):(this.o.appendWindowStart=a,this.o.appendWindowEnd=b)};
g.h.Qr=function(){return this.C};
g.h.Jp=function(a){eE?this.C=a:this.supports(1)&&(this.o.timestampOffset=a)};
g.h.Bb=function(){return eE?this.C:this.supports(1)?this.o.timestampOffset:0};
g.h.wd=function(a){if(void 0===a?0:a)return this.u||this.Sd()||(this.F=this.wd(!1),this.u=!0),this.F;try{return this.o.buffered}catch(b){return Pt([],[])}};
g.h.Sd=function(){return this.o.updating};
g.h.ni=function(){return this.w};
g.h.Rn=function(){return this.P};
g.h.Ru=function(a,b){this.I!=a&&(this.supports(4),this.o.changeType(b));this.I=a};
g.h.Mr=function(){return this.B};
g.h.isView=function(){return!1};
g.h.supports=function(a){switch(a){case 1:return void 0!=this.o.timestampOffset;case 0:return!!this.o.appendBuffer;case 2:return!!this.o.remove;case 3:return!(!this.o.addEventListener||!this.o.removeEventListener);case 4:return!!this.o.changeType;default:return!1}};
g.h.Uq=function(){return!this.Sd()};
g.h.isLocked=function(){return!1};
g.h.Xa=function(a){a.to=""+this.o.timestampOffset;a.up=""+ +this.Sd();a.aw=(this.o.appendWindowStart||0).toFixed(3)+"-"+(this.o.appendWindowEnd||Infinity).toFixed(3);try{a.bu=Qt(this.o.buffered)}catch(b){}return Ws(a)};
g.h.X=function(){this.supports(3)&&(this.o.removeEventListener("updateend",this.A),this.o.removeEventListener("error",this.A));g.O.prototype.X.call(this)};g.r(Yt,g.O);g.h=Yt.prototype;g.h.appendBuffer=function(a,b,c){if(this.o.Qn()!=this.C+this.u||this.o.Hr()!=this.B+this.u||this.o.Bb()!=this.A+this.u)this.o.supports(1),this.o.wu(this.C+this.u,this.B+this.u),this.o.Jp(this.A+this.u);this.o.appendBuffer(a,b,c)};
g.h.abort=function(){this.o.abort()};
g.h.remove=function(a,b){this.o.remove(a+this.u,b+this.u)};
g.h.wu=function(a,b){this.C=a;this.B=b};
g.h.Qr=function(){return this.A+this.u};
g.h.Qn=function(){return this.C};
g.h.Hr=function(){return this.B};
g.h.Jp=function(a){this.A=a};
g.h.Bb=function(){return this.A};
g.h.wd=function(a){a=this.o.wd(void 0===a?!1:a);return Wt(a,this.u,this.G)};
g.h.Sd=function(){return this.o.Sd()};
g.h.ni=function(){return this.o.ni()};
g.h.Rn=function(){return this.o.Rn()};
g.h.Ru=function(a,b){return this.o.Ru(a,b)};
g.h.supports=function(a){return this.o.supports(a)};
g.h.Mr=function(){return this.o.Mr()};
g.h.isView=function(){return!0};
g.h.Uq=function(){return this.o.Uq()?this.w:!1};
g.h.isLocked=function(){return this.F&&!this.w};
g.h.Xa=function(a){return this.o.Xa(a)+(";vw."+this.u+"-"+this.G)};
g.h.X=function(){Rr(this.o,this.I);g.O.prototype.X.call(this)};
g.h.isActive=function(){return this.w};
g.h.setActive=function(a){this.w=a;this.F=this.F||this.w};Zt.prototype.dispose=function(){if(!this.ea){if(this.u)try{URL.revokeObjectURL(this.o)}catch(a){}this.w=!0}};
Zt.prototype.ea=function(){return this.w};
Zt.prototype.toString=function(){return"MediaResource {"+this.o+"}"};g.r($t,g.A);g.h=$t.prototype;g.h.getDuration=function(){return this.w.duration};
g.h.isView=function(){return this.C};
g.h.Sd=function(){return!!(this.o&&this.o.Sd()||this.u&&this.u.Sd())};
g.h.dN=function(){!this.ea()&&au(this)&&this.A&&(this.A(this),this.A=null)};
g.h.cN=function(){this.dispose()};var Lra={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},V1;a:{var W1=g.Lc;W1=W1.toLowerCase();if(-1!=W1.indexOf("android")){var Mra=W1.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Mra){var Nra=parseFloat(Mra[1]);if(100>Nra){V1=Nra;break a}}var Ora=W1.match("("+g.Jb(Lra).join("|")+")");V1=Ora?Lra[Ora[0]]:0}else V1=void 0}var Sy=V1,Ry=0<=Sy;hu.prototype.canPlayType=function(a,b){var c=a.canPlayType?a.canPlayType(b):!1;sl?c=c||Pra[b]:2.2==Sy?c=c||Qra[b]:jl()&&(c=c||Rra[b]);return!!c};
hu.prototype.disableAv1=function(){this.G=!0};
var Qra={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Rra={"application/x-mpegURL":"maybe"},Pra={"application/x-mpegURL":"maybe"};g.h=Au.prototype;g.h.ge=function(){return this.ng};
g.h.Wl=function(){return null};
g.h.gx=function(){var a=this.Wl();return a?+g.tq(a.o).expire:NaN};
g.h.tu=function(){};
g.h.getHeight=function(){return this.ng.va().height};Cu.prototype.isLocked=function(){return this.w&&!!this.u&&this.u==this.o};
Cu.prototype.A=function(a){return a.video?Ju(this,a.video.quality):!1};
var VJ=Eu("auto","hd1080",!1,"l"),CG=Eu("auto","large",!1,"l"),Gu=Eu("auto","auto",!1,"p");Eu("small","auto",!1,"p");var US={yP:"ad",PP:"annotations_module",QP:"attribution",oQ:"creatorendscreen",BQ:"embed",FQ:"endscreen",QQ:"fresca",dR:"heartbeat",xR:"kids",GR:"remote",IR:"miniplayer",MR:"music",SUBTITLES:"captions",ED:"unplugged",XS:"ux",bT:"visualizer",cT:"webgl",hT:"ypc",iT:"ypc_clickwrap",jT:"yto",VS:""};var X1={},Sra=(X1["api.invalidparam"]=2,X1.auth=150,X1["drm.auth"]=150,X1["heartbeat.net"]=150,X1["heartbeat.servererror"]=150,X1["heartbeat.stop"]=150,X1["html5.unsupportedads"]=5,X1["fmt.noneavailable"]=5,X1["fmt.decode"]=5,X1["fmt.unplayable"]=5,X1["html5.missingapi"]=5,X1["html5.unsupportedlive"]=5,X1["drm.unavailable"]=5,X1);var SM=16/9,Tra=[.25,.5,.75,1,1.25,1.5,1.75,2],Ura=Tra.concat([3,4,5,6,7,8,9,10,15]);var Nu=1;g.r(g.Pu,g.A);g.h=g.Pu.prototype;
g.h.createElement=function(a,b){b=b||"svg"===a.D;var c=a.H,d=a.Y;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.D);g.qz&&(a.O||(a.O={}),a.O.focusable="false")}else e=g.re(a.D);if(c){if(c=Ru(this,e,"class",c))Su(this,e,"class",c),this.o[c]=e}else if(d){c=g.q(d);for(var f=c.next();!f.done;f=c.next())this.o[f.value]=e;Su(this,e,"class",d.join(" "))}d=a.W;c=a.J;if(d)d=Ru(this,e,"child",d),void 0!==d&&e.appendChild(g.se(d));else if(c)for(d=0,c=g.q(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=Ru(this,e,"child",f),null!=f&&e.appendChild(g.se(f));else if(f.element)e.appendChild(f.element);else{var k=f;f=this.createElement(k,b);e.appendChild(f);k.La&&(k=Ou(),f.id=k,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+k),g.ve(e,f,d++))}if(d=a.O)for(c=e,f=g.q(Object.keys(d)),k=f.next();!k.done;k=f.next()){k=k.value;var l=d[k];Su(this,c,k,"string"===
typeof l?Ru(this,c,k,l):l)}return e};
g.h.ca=function(a,b){"number"===typeof b?g.ve(a,this.element,b):a.appendChild(this.element)};
g.h.update=function(a){for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.la(c,a[c])};
g.h.la=function(a,b){var c=this.Pa["{{"+a+"}}"];c&&Su(this,c[0],c[1],b)};
g.h.X=function(){this.o={};this.Pa={};g.Qu(this);g.A.prototype.X.call(this)};g.r(g.R,g.Pu);g.h=g.R.prototype;g.h.ob=function(a,b){this.la(b||"content",a)};
g.h.show=function(){this.ha||(g.xh(this.element,"display",""),this.ha=!0)};
g.h.hide=function(){this.ha&&(g.xh(this.element,"display","none"),this.ha=!1)};
g.h.Va=function(a){this.P=a};
g.h.Ga=function(){return this.ha};
g.h.ka=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.listeners.push(d);a.addEventListener(b,c);return d};
g.h.Za=function(a){var b=this;this.listeners.forEach(function(c,d){if(c===a){var e=b.listeners.splice(d,1)[0];e.target.removeEventListener(e.type,e.listener)}})};
g.h.focus=function(){Ee(this.element);this.element.focus()};
g.h.X=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.Pu.prototype.X.call(this)};g.r(g.Uu,g.R);g.Uu.prototype.subscribe=function(a,b,c){return this.aa.subscribe(a,b,c)};
g.Uu.prototype.unsubscribe=function(a,b,c){return this.aa.unsubscribe(a,b,c)};
g.Uu.prototype.Dh=function(a){return this.aa.Dh(a)};
g.Uu.prototype.S=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return this.aa.S.apply(this.aa,[a].concat(g.ea(c)))};g.r(g.Wu,g.Uu);g.Wu.prototype.la=function(a,b){g.Uu.prototype.la.call(this,a,b);this.S("size-change")};g.h=g.$u.prototype;g.h.bz=function(a){this.segments.push(a)};
g.h.getDuration=function(a){return(a=this.lg(a))?a.duration:0};
g.h.fx=function(a){return this.getDuration(a)};
g.h.Pe=function(){return this.segments.length?this.segments[0].Ka:-1};
g.h.jt=function(a){return(a=this.lg(a))?a.ingestionTime:NaN};
g.h.gb=function(){return this.segments.length?this.segments[this.segments.length-1].Ka:-1};
g.h.hh=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.xj=function(){return this.segments.length};
g.h.Xo=function(){return 0};
g.h.Qe=function(a){return(a=this.ll(a))?a.Ka:-1};
g.h.Pr=function(a){return(a=this.lg(a))?a.u:""};
g.h.gd=function(a){return(a=this.lg(a))?a.startTime:0};
g.h.Xn=ba(1);g.h.Gb=function(){return 0<this.segments.length};
g.h.lg=function(a){a=g.sb(this.segments,new Zu(a,0,0,0,""),function(b,c){return b.Ka-c.Ka});
return 0<=a?this.segments[a]:null};
g.h.ll=function(a){a=g.sb(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.kb(a),0==this.segments.length)this.segments=a;else{var b=this.segments.length?g.Ya(this.segments).endTime:0,c=a[0].Ka-this.gb();1<c&&eb(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.ox=function(){return 0};bv.prototype.skip=function(a){this.o+=a};
bv.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var iE=!1;var Y1={},Vra=(Y1.predictStart="predictStart",Y1.start="start",Y1["continue"]="continue",Y1.stop="stop",Y1),Dia={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};var Vv=!0;$v.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};dw.prototype.L=function(){return this.A};
dw.prototype.po=function(){return this.o.info.po()};
dw.prototype.isVideo=function(){return!!this.o.info.video};
dw.prototype.ih=function(){return this.o.ih(this)};g.h=nw.prototype;g.h.getLength=function(){return this.totalLength};
g.h.append=function(a){if(ow(this,a)){var b=this.o[this.o.length-1];this.o[this.o.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);qw(this)}else this.o.push(a);this.totalLength+=a.length};
g.h.split=function(a){for(var b=new nw,c=new nw,d=g.q(this.o),e=d.next();!e.done;e=d.next())e=e.value,a>=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{ho:b,dj:c}};
g.h.isFocused=function(a){return a>=this.w&&a<this.w+this.o[this.u].length};
g.h.focus=function(a){if(!this.isFocused(a)){for(a<this.w&&qw(this);this.w+this.o[this.u].length<=a&&this.u<this.o.length;)this.w+=this.o[this.u].length,this.u+=1;this.A=void 0}};zw.prototype.verify=function(a){if(this.info.Na!=this.o.getLength())return a.slength=this.info.Na.toString(),a.range=this.o.getLength().toString(),!1;if(1==this.info.o.info.containerType){if(8>this.info.Na||4==this.info.type)return!0;var b=Aw(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.Na&&1936286840==b;if(3==this.info.type&&0==this.info.w)return 1836019558==b||1936286840==
b||1937013104==b||1718909296==b||1701671783==b||1936419184==b}else if(2==this.info.o.info.containerType){if(4>this.info.Na||4==this.info.type)return!0;c=Aw(this).getUint32(0,!1);a.ebm=c.toString();if(3==this.info.type&&0==this.info.w)return 524531317==c||440786851==c}return!0};var Nw={u4:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
td:function(a,b){a.splice(0,b)},
m9:function(a){a.reverse()}};var Lla=/^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\/)/,Sw=/^http:\/\/0\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.l2gfe\.[a-z0-9_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|^https:\/\/([a-z]+\.)?[0-9a-f]{1,63}\.sslproxy\.corp\.google\.com\/|^https:\/\/([a-z]+\.)?[a-z0-9\-]{1,63}\.demos\.corp\.google\.com\/|^https:\/\/[0-9a-f]{1,63}\.proxy\.googleprod\.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-]+\.prod\.google\.com(:[0-9]+)?\/|m?web-ppg\.corp\.google\.com\/|play\.google\.com\/)/,
Mla=/^https?:\/\/(www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/slav)/,$fa=/^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|plus\.google\.com|currents\.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)|$))/,
yja=/^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.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)|$))/,Yfa=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|(ccp-lh\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(play-(ti-)?lh\.googleusercontent)|(((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}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|plus\.google\.com|currents\.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\/)/,
Nla=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/,Zfa=/^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)/,Xfa=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|(ccp-lh\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(play-(ti-)?lh\.googleusercontent)|(((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}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.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|currents\.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]|-testonly)?\.(googleusercontent|photos\.google)\.com\/.*$)/,
Nga=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.com|proxy\.googleprod\.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)/,
Mga=/^https:\/\/([A-Za-z0-9-]{1,63}\.)*(crowdsource|datacompute)\.google\.com\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https:\/\/canvastester-3fd0b\.appspot\.com(\/|$)|^https:\/\/narrative-news-cast-receiver-d\.appspot\.com(\/|$)|^https:\/\/narrative-news-cast-receiver-f\.appspot\.com(\/|$)|^https:\/\/one\.google\.com\/storage\/management|^https:\/\/www\.gstatic\.com\/aog_howto|^https:\/\/www\.gstatic\.com\/narrative_cast_receiver\/news|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.com|proxy\.googleprod\.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|currents\.google\.com|books\.googleusercontent\.com|play\-books\-autopush\-sandbox\.googleusercontent\.com|play\-books\-canary\-sandbox\.googleusercontent\.com|play\-books\-internal\-sandbox\.googleusercontent\.com|play\-books\-staging\-sandbox\.googleusercontent\.com|blogger\.com|mail\.google\.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|stadia\.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)/,
Wra=/^(https\:\/\/play\.google\.com|https\:\/\/photos\.google\.com|https\:\/\/get\.google\.com|https\:\/\/class\.photos\.google\.com|https\:\/\/plus\.google\.com|https\:\/\/currents\.google\.com|https\:\/\/mail\.google\.com|https\:\/\/talkgadget\.google\.com|https\:\/\/jamboard\.google\.com|https\:\/\/chat\.google\.com|https\:\/\/stadia\.google\.com|https\:\/\/one\.google\.com)$|^http:\/\/[0-9]+\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?$|^https:\/\/((staging|stream|today)\.)?meet\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)*(crowdsource|datacompute)\.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:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com$|^https:\/\/(books|play-books-(autopush|canary|internal|staging)-sandbox)\.googleusercontent\.com$|^https:\/\/(draft|www|(www\.)?daily\.alpha|(www\.)?weekly\.alpha|(www\.)?dev\.sandbox|(www\.)?autopush\.sandbox|(www\.)?restore\.sandbox)\.blogger\.com$|^https:\/\/[0-9a-f]{1,63}\.proxy\.googleprod\.com$|^https?:\/\/(((docs|m|sing|ss|sss|www)\.)?drive\.google\.com$|([A-Za-z0-9-]{1,63}\.)*c\.googlers\.com(:[0-9]+)?$|([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]))$|[A-Za-z0-9-]+\.prod\.google\.com(:[0-9]+)?$|docs\.google\.com$)/,
Xra=/^(https\:\/\/googleads\.g\.doubleclick\.net)$/;var Qw=!1;$w.prototype.set=function(a,b){this.o[a]!==b&&(this.o[a]=b,this.url="")};
$w.prototype.get=function(a){ax(this);return this.o[a]||null};
$w.prototype.jc=function(){this.url||(this.url=aga(this));return this.url};
$w.prototype.clone=function(){var a=new $w(this.u);a.w=this.w;a.path=this.path;a.A=this.A;a.o=g.Sb(this.o);a.url=this.url;return a};ix.prototype.set=function(a,b){this.Je.get(a);this.o[a]=b;this.url=""};
ix.prototype.get=function(a){return this.o[a]||this.Je.get(a)};
ix.prototype.jc=function(){this.url||(this.url=dga(this));return this.url};ox.prototype.ee=function(){return ew(this.o[0])};g.h=tx.prototype;g.h.ce=function(){};
g.h.Gl=function(){};
g.h.dd=function(){return!!this.o&&this.index.Gb()};
g.h.Bg=function(){};
g.h.Jy=function(){return!1};
g.h.wj=function(){};
g.h.Gi=function(){};
g.h.ih=function(){};
g.h.og=function(){};
g.h.bo=function(){};
g.h.Ky=function(a){return[a]};
g.h.Fp=function(a){return[a]};
g.h.tp=function(){};
g.h.Sn=function(){};g.r(ux,tx);g.h=ux.prototype;g.h.ce=function(){return!1};
g.h.Gl=function(){return!1};
g.h.Jy=function(){return this.F};
g.h.wj=function(){if(this.F)return[];var a=new dw(1,this,this.initRange,"getMetadataRequestInfos");return[new ox([a],this.R)]};
g.h.Gi=function(){return null};
g.h.ih=function(a){this.Bg(a);return this.Ii(a.A?a.u+1:a.u,!1)};
g.h.og=function(a,b){b=void 0===b?!1:b;var c=this.index.Qe(a);b&&(c=Math.min(this.index.gb(),c+1));return this.Ii(c,!0)};
g.h.bo=function(a){this.o=new Uint8Array(Aw(a).buffer)};
g.h.Bg=function(a){return 0==a.Na?!0:this.index.gb()>a.u&&this.index.Pe()<=a.u+1};
g.h.update=function(a,b,c){this.index.append(a);av(this.index,c);this.G=b};
g.h.dd=function(){return this.F?!0:tx.prototype.dd.call(this)};
g.h.Ii=function(a,b){var c=this.index.Pr(a),d=this.index.gd(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.o?this.info.o*e:1E3;var k=!b,l=f;f=a==this.index.gb()&&!this.G&&0<f;d=new dw(3,this,null,"liveCreateRequestInfoForSegment",a,d,e,0,l,f,k);return new ox([d],c)};
g.h.Sn=function(){return this.F?0:this.initRange.length};
g.h.tp=function(){return!1};g.r(yx,g.$u);g.h=yx.prototype;g.h.Pe=function(){return this.u?this.segments.length?this.ll(this.Ab()).Ka:-1:g.$u.prototype.Pe.call(this)};
g.h.Ab=function(){if(this.F)return 0;if(!this.u)return g.$u.prototype.Ab.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Ya(this.segments).endTime-this.C,0);return 0<this.B&&this.ll(a).Ka<this.B?this.lg(this.B).startTime:a};
g.h.hh=function(){if(!this.segments.length)return g.$u.prototype.hh.call(this);var a=this.gb();if(!this.u||a<=this.segments[this.segments.length-1].Ka)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new Zu(a,Math.max(0,b.startTime-(b.Ka-a)*this.o),this.o,0,"sq/"+a,void 0,void 0,!0)}return null!=this.A&&a.pending&&3==this.A?this.F?Math.min(this.C,a.startTime):a.startTime:this.F?Math.min(this.C,a.endTime):a.endTime};
g.h.xj=function(){return this.u?this.segments.length?this.gb()-this.Pe()+1:0:g.$u.prototype.xj.call(this)};
g.h.gb=function(){return Math.min(this.I,Math.max(g.$u.prototype.gb.call(this),this.w))};
g.h.vj=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.h.bz=function(a){var b=zx(this,a.Ka);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.G&&0==a.Ka%(300/this.o)){var c=this.segments[0].Ka,d=Math.floor(this.G/this.o);a=a.Ka-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.h.ll=function(a){if(!this.u)return g.$u.prototype.ll.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Ka-Math.ceil((this.segments[0].startTime-a)/this.o));else if(a>=b.endTime)b=b.Ka+Math.floor((a-b.endTime)/this.o+1);else{b=tb(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Ka-b.Ka-1))+1)+b.Ka}return this.lg(b)};
g.h.lg=function(a){if(!this.u)return g.$u.prototype.lg.call(this,a);if(!this.segments.length)return null;var b=zx(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.o;if(0==c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ka-a)*b);else c==this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ka-1)*b):(d=this.segments[c-1],c=this.segments[c],d=d.endTime+(c.startTime-d.endTime)/(c.Ka-d.Ka-1)*(a-d.Ka-1));return new Zu(a,d,b,0,"sq/"+a,void 0,void 0,!0)};g.r(Bx,ux);g.h=Bx.prototype;g.h.Gl=function(){return!0};
g.h.dd=function(){return!0};
g.h.Bg=function(a){if(a.C)return!1;if(this.U&&-1<this.index.w&&0<this.L){var b=a.u<this.index.w,c=this.L>a.B;return!a.L||b&&c}return!0};
g.h.wj=function(){return[]};
g.h.og=function(a,b){if("number"===typeof a&&!isFinite(a)){var c=new dw(3,this,null,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Fe,void 0,this.Fe*this.info.o);return new ox([c],"")}return ux.prototype.og.call(this,a,b)};
g.h.Ii=function(a,b){var c=void 0===c?!1:c;if(Ax(this.index,a))return ux.prototype.Ii.call(this,a,b);var d=this.index.gd(a),e=b?0:this.Fe*this.info.o,f=!b;c=new dw(c?6:3,this,null,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a==this.index.gb()&&!this.G&&0<e,f);return new ox([c],0<=a?"sq/"+a:"")};Gx.prototype.update=function(a,b){var c=void 0;this.u&&(c=this.u);var d=new Gx,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+Cx(a,"timescale")||1,k=(+e[0].getAttribute("t")||0)/f,l=+Cx(a,"startNumber")||0;d.F=k;var m=k;var n=+Cx(a,"presentationTimeOffset")||0;m=c?c.startSecs+c.durationSecs:b?m-n/f:0;n=Date.parse(Fx(Cx(a,"yt:segmentIngestTime")))/1E3;d.w="SegmentTemplate"==a.parentNode.tagName;d.w&&(d.C=Cx(a,"media"));var p=c?l-c.Ka:1;d.B=0<p?0:-p+1;e=g.q(e);for(p=e.next();!p.done;p=
e.next()){p=p.value;for(var t=+p.getAttribute("d")/f,u=(+p.getAttribute("yt:sid")||0)/f,z=+p.getAttribute("r")||0,B=0;B<=z;B++)if(c&&l<=c.Ka)l++;else{var D=new hga(l,m,t,n+u,k);d.o.push(D);var E=D.startSecs;D=p.getAttribute("yt:cuepointTimeOffset");var F=p.getAttribute("yt:cuepointDuration");if(D&&F){D=parseFloat(D);E=(iE?+D/f:-D/f)+E;F=parseFloat(F)/f;var I=p.getAttribute("yt:cuepointContext")||null,ia=p.getAttribute("yt:cuepointIdentifier");var pa=p.getAttribute("yt:cuepointEvent");pa=Vra[pa]||
"unknown";D=new jv(E,F,I,ia,pa,D)}else D=null;D&&d.A.push(D);l++;m+=t;k+=t;n+=t+u}}d.o.length&&(d.u=g.Ya(d.o))}this.B=d.B;this.u=d.u||this.u;lb(this.o,d.o);lb(this.A,d.A);this.w=d.w;this.C=d.C;this.F=d.getStreamTimeOffset()};
Gx.prototype.getStreamTimeOffset=function(){return this.F};g.r(Hx,tx);g.h=Hx.prototype;g.h.ce=function(){return!1};
g.h.Gl=function(){return!1};
g.h.wj=function(){if(this.F){var a=new dw(1,this,null,"otfInit");return[new ox([a],this.F)]}a=new dw(1,this,this.initRange,"otfInitInfo");var b=new dw(2,this,this.indexRange,"otfIndexInfo");return[new ox([a,b])]};
g.h.Gi=function(){return null};
g.h.ih=function(a){this.Bg(a);return Ix(this,iw(a),!1)};
g.h.og=function(a,b){b=void 0===b?!1:b;var c=this.index.Qe(a);b&&(c=Math.min(this.index.gb(),c+1));return Ix(this,c,!0)};
g.h.bo=function(a){if(1==a.info.type)this.o||(this.o=ww(a.o)),a.u&&"http://youtube.com/streaming/otf/durations/112015"==a.u.uri&&pga(this,a.u);else if(2==a.info.type)if(g.nt(this.info)){if(!this.index.Gb()&&(a=g.pv(Aw(a),0,1936286840))){var b=[],c=zv(a);a=c.mu.length;var d=c.Tp,e=c.mu,f=c.Pp;c=this.indexRange.end+c.Tw+1;for(var k=0,l=0;l<a;l++){var m=f[l]/d,n=e[l];b.push(new Zu(l,k,m,NaN,"range/"+c+"-"+(c+n-1)));k+=m;c+=n}this.index.append(b)}}else if(this.info.Bc()&&this.o&&(d=new Fv(new DataView(this.o.buffer)),
b=Uv(d))&&(d=new Fv(Aw(a)),a=Wv(d,b.xm,this.indexRange.end))){d=[];e=b.Ju/b.Ku;f=a.length-1;for(c=0;c<f;c++)k=a[c],l=a[c+1],m=k.Bn*e,d.push(new Zu(c,m,l.Bn*e-m,NaN,"range/"+k.fi+"-"+(l.fi-1)));c=a[f].Bn*e;d.push(new Zu(f,c,b.duration*e-c,NaN,"range/"+a[f].fi+"-"+(b.ru+b.xm)));this.index.append(d)}};
g.h.Bg=function(a){return 0==a.Na?!0:this.index.gb()>a.u&&this.index.Pe()<=a.u+1};
g.h.Sn=function(){return this.initRange&&this.indexRange?this.initRange.length+this.indexRange.length:0};
g.h.tp=function(){return!1};g.h=g.Jx.prototype;g.h.Xo=function(a){return this.u[a]};
g.h.gd=function(a){return this.w[a]/this.B};
g.h.Xn=ba(0);g.h.jt=function(){return NaN};
g.h.getDuration=function(a){a=this.fx(a);return 0<=a?a/this.B:-1};
g.h.fx=function(a){return a+1<this.o||this.A?this.w[a+1]-this.w[a]:-1};
g.h.Pe=function(){return 0};
g.h.gb=function(){return this.o-1};
g.h.hh=function(){return this.A?this.w[this.o]/this.B:NaN};
g.h.Ab=function(){return 0};
g.h.xj=function(){return this.o};
g.h.Pr=function(){return""};
g.h.Qe=function(a){a=g.sb(this.w.subarray(0,this.o),a*this.B);return 0<=a?a:Math.max(0,-a-2)};
g.h.Gb=function(){return 0<=this.gb()};
g.h.ox=function(a,b){if(a>=this.gb())return 0;for(var c=0,d=this.gd(a)+b,e=a;e<this.gb()&&d>this.gd(e);e++)c=Math.max(c,(e+1<this.o||this.A?this.u[e+1]-this.u[e]:-1)/this.getDuration(e));return c};
g.h.cap=function(a,b){Kx(this);this.A=!0;this.w[this.o]=b;this.u[this.o]=a};g.r(Lx,tx);g.h=Lx.prototype;g.h.wj=function(a){var b=new dw(1,this,this.initRange,"initInfo"),c=new dw(2,this,this.indexRange,"indexInfo"),d=[],e=[b];gw(b,c)?e.push(c):(d.push(new ox([c])),a=0);isNaN(this.F)&&(a=0);b=e[e.length-1];a=Math.min(a,this.F-(b.range.end-e[0].range.start+1));0<a&&(a=bw(b.range.end+1,a),e.push(new dw(4,this,a,"tbdRange")));d.push(new ox(e));return d};
g.h.bo=function(a){if(1==a.info.type){if(this.o)return;this.o=ww(a.o)}else if(2==a.info.type){if(this.G||0<=this.index.gb())return;if(g.nt(this.info)){var b=this.index,c=Aw(a);a=a.info.range.start;var d=g.pv(c,0,1936286840);c=zv(d);b.B=c.Tp;var e=c.tE;b.u[0]=c.Tw+a+d.size;b.w[0]=e;b.A=!0;a=c.Pp.length;for(d=0;d<a;d++){e=b;var f=c.mu[d],k=c.Pp[d];e.o++;Kx(e);e.u[e.o]=e.u[e.o-1]+f;e.w[e.o]=e.w[e.o-1]+k}}else this.G=Aw(a)}if(this.info.Bc()&&this.o&&this.G){c=new DataView(this.o.buffer);b=this.index;
a=this.G;d=this.indexRange.end;e=new Fv(c);c=Uv(e);if(null!=c&&(b.B=c.Ku/c.Ju,e=new Fv(a),a=Wv(e,c.xm,d),null!=a)){a=g.q(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.fi,f=f.Bn,Kx(d),d.u[d.o]=e,d.w[d.o]=f,d.o++;b.cap(c.ru+c.xm,c.duration)}this.G=null}};
g.h.Ky=function(a){for(var b=this.Fp(a.info),c=a.info.range.start+a.info.w,d=a.w,e=[],f=0;f<b.length;f++){var k=b[f].Na;k=a.o.split(b[f].range.start+b[f].w-c).dj.split(k).ho;e.push(new zw(b[f],k,d));d=!1}return e};
g.h.Fp=function(a){for(var b=a.range.start+a.w,c=0;c<this.index.gb()&&b>=this.index.Xo(c+1);)c++;return Mx(this,c,b,a.Na).o};
g.h.Bg=function(a){return this.dd()?!0:isNaN(this.F)?!1:a.range.end+1<this.F};
g.h.Gi=function(a,b){this.Bg(a);if(!this.dd()){var c=bw(a.range.end+1,b);c.end+1>this.F&&(c=new $v(c.start,this.F-1));c=[new dw(4,a.o,c,"getNextRequestInfoByLength")];return new ox(c)}4==a.type&&(c=this.Fp(a),a=c[c.length-1]);c=0;var d=a.range.start+a.w+a.Na;3==a.type&&(c=a.u,d==a.range.end+1&&(c+=1));return Mx(this,c,d,b)};
g.h.ih=function(){return null};
g.h.og=function(a,b){var c=this.index.Qe(a);b&&(c=Math.min(this.index.gb(),c+1));return Mx(this,c,this.index.Xo(c),0)};
g.h.ce=function(){return!0};
g.h.Gl=function(){return!1};
g.h.Sn=function(){return this.indexRange.length+this.initRange.length};
g.h.tp=function(){return this.indexRange&&this.initRange&&this.initRange.end+1==this.indexRange.start?!0:!1};g.r(Px,g.O);g.h=Px.prototype;g.h.xg=function(){return Fb(this.o,function(a){return a.info.video?2==a.info.video.projectionType:!1})};
g.h.yg=function(){return Fb(this.o,function(a){return a.info.video?3==a.info.video.projectionType:!1})};
g.h.sg=function(){return Fb(this.o,function(a){return a.info.video?4==a.info.video.projectionType:!1})};
g.h.Jj=function(){return Fb(this.o,function(a){return a.info.video?1==a.info.video.stereoLayout:!1})};
g.h.MN=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Df=this.w=!0;this.B||(this.B=new jga);nga(this.B,a,this.ga);this.S("refresh");for(a=0;a<b.length;a++){var c=ay(this,b[a]),d=this.isLive&&g.nt(c)&&this.ma;if(!this.o[c.id]){var e=Ux(Dx(b[a],"BaseURL").textContent),f=Dx(b[a],"Initialization"),k=Cx(f,"sourceURL");f=aw(Cx(f,"range"));d&&(k="",f=void 0);this.o[c.id]=new ux(e,c,k,null===
f?void 0:f)}c=this.o[c.id];e=Cx(b[a],"id","AdaptationSet");e=""!=e?e:Cx(b[a],"mimetype","AdaptationSet");k=this.B;e=k.w[c.info.id]||k.u[e]||k.o||null;k=e.o;!this.U&&e.getStreamTimeOffset()&&(this.U=e.getStreamTimeOffset());if(e.w)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.o,n=f.Ka,p=f.startSecs,t=e.C.split("$$"),u=0;u<t.length;u++)t[u]=t[u].replace("$RepresentationID$",l),t[u]=t[u].replace("$Number$",n.toString()),t[u]=t[u].replace("$Bandwidth$",m.toString()),
t[u]=t[u].replace("$Time$",p.toString());d.push(new Zu(f.Ka,f.startSecs,f.durationSecs,f.o,t.join("$"),null,f.u))}else{e=nb(Dx(b[a],"SegmentList").getElementsByTagName("SegmentURL"),e.B);f=[];for(l=0;l<e.length;l++)f.push(Aga(e[l],k[l],d));d=f}c.update(d,this.isLive,this.aa)}oga(this.B);return!0}this.duration=Ex(Cx(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){k=b[a];c=ay(this,k);e=Dx(k,"BaseURL");d=Ux(e.textContent);f=Dx(k,"SegmentBase");k=aw(f.attributes.indexRange.value);f=aw(f.getElementsByTagName("Initialization")[0].attributes.range.value);
e=parseInt(e.getAttribute(Zx(this,"contentLength")),10);c=new Lx(d,c,f,k,e,NaN);if(!c){b=!1;break a}Sx(this,c)}b=!0}return b};
g.h.lF=function(a){if(this.ea())return this;this.R=a.status;a=a.responseText;a=(new DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.F=1E3*Ex(Cx(a,"minimumUpdatePeriod"))||Infinity;if(!this.V){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.ba=b}this.isLive=Infinity>this.F&&this.oa;this.aa=parseInt(Cx(a,Zx(this,"earliestMediaSequence")),10)||
0;if(b=Date.parse(Fx(Cx(a,Zx(this,"mpdResponseTime")))))this.G=((0,g.G)()-b)/1E3;this.isLive&&0>=a.getElementsByTagName("SegmentTimeline").length||(0,g.yi)(a.getElementsByTagName("Period"),this.MN,this);this.C=2;this.S("loaded");dy(this);return this};
g.h.oF=function(a){this.R=a.Ei.status;this.C=3;this.S("loaderror");return Hf(a.Ei)};
g.h.refresh=function(){if(1!=this.C&&!this.ea()){var a=g.Bd(this.sourceUrl,{start_seq:Bga(this).toString()});Of(by(this,a),function(){})}};
g.h.resume=function(){dy(this)};
g.h.tc=function(){var a=this.o,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],k=f.index;k.Gb()&&(f.w&&(b=!0),k=k.hh(),f.info.audio&&(isNaN(c)||k<c)?c=k:f.info.isVideo()&&(isNaN(d)||k<d)&&(d=k))}return b||isNaN(d)?c:Math.min(c,d)};
g.h.Ab=function(){var a=this.o,b;for(b in a){var c=a[b].index;if(c.Gb())return c.Ab()}return 0};
g.h.getStreamTimeOffset=function(){return this.U};
var Vx=null,Wx=!1,Xx=!1,$x={commentary:1,alternate:2,dub:3,main:4};var Oga={BP:"adunit",uQ:"detailpage",zQ:"editpage",CQ:"embedded",AR:"leanback",lS:"previewpage",mS:"profilepage",ED:"unplugged",iS:"playlistoverview",GS:"sponsorshipsoffer"};var Zy={CR:1,DR:2,ER:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.r(gy,g.O);gy.prototype.add=function(a,b){!this.o[a]&&(b.tn||b.un||b.Lm)&&(this.o[a]=Wb(b),this.S("vast_info_card_add",a))};
gy.prototype.remove=function(a){var b=this.get(a);delete this.o[a];return b};
gy.prototype.get=function(a){return this.o[a]||null};
gy.prototype.isEmpty=function(){return g.Pb(this.o)};var Pga={RED:"red",eT:"white"};qy.prototype.w=function(a,b){var c=Math.pow(this.alpha,a);this.u=b*(1-c)+c*this.u;this.A+=a};
qy.prototype.o=function(){return this.u/(1-Math.pow(this.alpha,this.A))};sy.prototype.w=function(a,b){var c=Math.min(this.u,Math.max(1,Math.round(a*this.resolution)));c+this.valueIndex>=this.u&&(this.A=!0);for(;c--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.u;this.C=!0};
sy.prototype.o=function(){return this.F?(ty(this,this.B-this.F)+ty(this,this.B)+ty(this,this.B+this.F))/3:ty(this,this.B)};var Lga=/^([0-9\.]+):([0-9\.]+)$/;var Jy="area120-boutique blogger books docs duo google-live google-one play chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" ");g.r(fz,g.A);g.h=fz.prototype;g.h.fa=function(a){return g.P(this.experiments,a)};
g.h.Yd=function(a,b){b=void 0===b?!1:b;this.Ca=Gy(this.Ca,a.video_id);this.qb=Gy(this.qb,a.eventid);var c=[],d;for(d in Yra){var e=Yra[d],f=a[e];void 0!=f&&(f!=this.deviceParams[e]&&c.push(e),this.deviceParams[e]=f)}!b&&0<c.length&&this.hn&&(c.sort(),g.ar(new Zq("Player client parameters changed after startup",c)));this.userAge=Fy(this.userAge,a.user_age);this.U=Gy(this.U,a.user_display_image);g.Vw(this.U)||(this.U="");this.ha=Gy(this.ha,a.user_display_name);this.pe=Gy(this.pe,a.user_gender);this.pd=
Gy(this.pd,a.csi_page_type);this.Qb=Gy(this.Qb,a.csi_service_name);this.Kc=S(this.Kc,a.enablecsi);if(c=a.enabled_engage_types)this.Md=new Set(c.split(","))};
g.h.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.iz(this);d&&"www.youtube.com"==c?d="https://youtu.be/"+a:g.dz(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,sl&&(a=nq())&&(b.ebc=a));return g.Bd(d,b)};
g.h.getVideoEmbedCode=function(a,b,c){var d="https://"+g.iz(this)+"/embed/"+a;c&&(d=g.Bd(d,{list:c}));a=!this.fa("enable_responsive_embed_snippet");this.fa("embed_snippet_includes_version")&&(d=g.Bd(d,{ecver:a?"1":"2"}));c=b.width;b=b.height;a?(a=g.fd(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.fd(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};
g.h.supportsGaplessAudio=function(){return g.Gt&&!sl&&74<=gl()||g.ku&&g.Nd(68)?!0:!1};
var Yra={ZP:"cbrand",aQ:"cbr",bQ:"cbrver",pR:"c",sR:"cver",rR:"ctheme",qR:"cplayer",JR:"cmodel",NR:"cnetwork",SR:"cos",TR:"cosver",ZR:"cplatform"},Qga=["www.youtube-nocookie.com","youtube.googleapis.com"];yz.prototype.clone=function(a){return new yz(this.flavor,a,this.u,this.B)};
yz.prototype.Xa=function(){return{flavor:this.flavor,keySystem:this.o}};
yz.prototype.ge=function(){switch(this.o){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.widevine.forcehdcp":return"WVYF";case "com.youtube.fairplay":return"FPY";case "com.apple.fps.1_0":return"FPA";default:return this.o}};
var Z1={},Gz=(Z1.playready=["com.youtube.playready","com.microsoft.playready"],Z1.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],Z1);Hz.prototype.getAvailableAudioTracks=function(){return this.audioTracks};g.r(Lz,g.A);Lz.prototype.I=function(){(this.F=!this.F&&"widevine"==this.u[this.o[0]].flavor)||this.o.shift();Mz(this)};
Lz.prototype.P=function(a,b){this.ea()||(a.keySystemAccess=b,aha(this,a),this.w.push(a),g.P(this.B,"html5_drm_fallback_to_playready_on_retry")||this.G?(this.o.shift(),Mz(this)):this.C(this.w))};g.r(Qz,Au);Qz.prototype.gx=function(){return this.w};
Qz.prototype.Wl=function(){if(!this.o||this.o.ea()){var a=this.u;fha(a);var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={};a:if(a.o)var d=a.o;else{d="";for(var e=g.q(a.w),f=e.next();!f.done;f=e.next())if(f=f.value,f.sb){if(f.sb.getIsDefault()){d=f.sb.getId();break a}d||(d=f.sb.getId())}}e=g.q(a.w);for(f=e.next();!f.done;f=e.next())f=f.value,f.sb&&f.sb.getId()!==d||(c[f.itag]=f);d=g.q(a.u);for(e=d.next();!e.done;e=d.next())e=e.value,e.audioItag&&b.push(eha(a,c[e.audioItag],e));d=g.q(a.u);for(e=d.next();!e.done;e=
d.next())if(e=e.value,e.audioItag){f=a;var k=c[e.audioItag];b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+k.bitrate)+',CODECS="'+(e.codecs+","+k.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(Oz(k,e)+'",CLOSED-CAPTIONS=NONE'));b.push(Nz(f,e.url,""))}a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(b.join("\n"));this.o=new Zt(a)}return this.o};g.r(Sz,Au);Sz.prototype.Wl=function(){return new Zt(this.o.jc())};
Sz.prototype.tu=function(){this.o=ex(this.o)};g.r(Tz,Au);Tz.prototype.Wl=function(){return new Zt(this.o)};var Vz={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Yz={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var $1={},lC=($1.AD_MARKER="ytp-ad-progress",$1.CHAPTER_MARKER="ytp-chapter-marker",$1.TIME_MARKER="ytp-time-marker",$1);var a2={},mha=(a2.ALWAYS=1,a2.BY_REQUEST=3,a2),b2={},Eha=(b2.COLOR_PRIMARIES_BT709="bt709",b2.COLOR_PRIMARIES_BT2020="bt2020",b2),c2={},Fha=(c2.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",c2.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",c2.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",c2.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",c2),d2={},fA=(d2.FAIRPLAY="fairplay",d2.PLAYREADY="playready",d2.WIDEVINE="widevine",d2),e2={},Jha=(e2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN=
"UNKNOWN",e2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",e2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",e2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",e2),f2={},Bha=(f2.UNKNOWN=0,f2.RECTANGULAR=1,f2.EQUIRECTANGULAR=2,f2.EQUIRECTANGULAR_THREED_TOP_BOTTOM=3,f2.MESH=4,f2),g2={},Dha=(g2.SPATIAL_AUDIO_TYPE_NONE=0,g2.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,g2.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,g2.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,g2),h2={},Cha=(h2.STEREO_LAYOUT_UNKNOWN=
0,h2.STEREO_LAYOUT_LEFT_RIGHT=1,h2.STEREO_LAYOUT_TOP_BOTTOM=2,h2),i2={},Aha=(i2.FORMAT_STREAM_TYPE_UNKNOWN=0,i2.FORMAT_STREAM_TYPE_OTF=3,i2);g.r(iA,os);g.r(jA,os);var Mha=new ps("aft-recorded",iA),OA=new ps("timing-sent",jA);var j2=window,LA=j2.performance||j2.mozPerformance||j2.msPerformance||j2.webkitPerformance||new Lha;var sA=!1,Nha=(0,g.x)(LA.clearResourceTimings||LA.webkitClearResourceTimings||LA.mozClearResourceTimings||LA.msClearResourceTimings||LA.oClearResourceTimings||g.Ka,LA);var zA=g.w("ytLoggingLatencyUsageStats_")||{};g.Ia("ytLoggingLatencyUsageStats_",zA,void 0);xA.prototype.tick=function(a,b,c){AA(this,"tick_"+a+"_"+b)||g.Yq("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c})};
xA.prototype.info=function(a,b){var c=Object.keys(a).join("");AA(this,"info_"+c+"_"+b)||(a.clientActionNonce=b,g.Yq("latencyActionInfo",a))};
xA.prototype.span=function(a,b){var c=Object.keys(a).join("");AA(this,"span_"+c+"_"+b)||(a.clientActionNonce=b,g.Yq("latencyActionSpan",a))};var k2={},QA=(k2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",k2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",k2.app_startup="LATENCY_ACTION_APP_STARTUP",k2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",k2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",k2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",k2.browse="LATENCY_ACTION_BROWSE",k2.channels="LATENCY_ACTION_CHANNELS",k2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",k2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",
k2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",k2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",k2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",k2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",k2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",k2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",k2.chips="LATENCY_ACTION_CHIPS",k2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",
k2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",k2.embed="LATENCY_ACTION_EMBED",k2.home="LATENCY_ACTION_HOME",k2.library="LATENCY_ACTION_LIBRARY",k2.live="LATENCY_ACTION_LIVE",k2.onboarding="LATENCY_ACTION_KIDS_ONBOARDING",k2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",k2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",k2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",k2.prebuffer="LATENCY_ACTION_PREBUFFER",k2.prefetch="LATENCY_ACTION_PREFETCH",
k2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",k2.profile_switcher="LATENCY_ACTION_KIDS_PROFILE_SWITCHER",k2.results="LATENCY_ACTION_RESULTS",k2.search_ui="LATENCY_ACTION_SEARCH_UI",k2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",k2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",k2.settings="LATENCY_ACTION_SETTINGS",k2.tenx="LATENCY_ACTION_TENX",k2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",k2.watch="LATENCY_ACTION_WATCH",k2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",k2["watch,watch7"]=
"LATENCY_ACTION_WATCH",k2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",k2["watch,watch7ad"]="LATENCY_ACTION_WATCH",k2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",k2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",k2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",k2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",k2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",k2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",k2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",k2["video.video_editor"]=
"LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",k2["video.video_editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",k2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",k2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",k2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",k2),l2={},HA=(l2.ad_allowed="adTypesAllowed",l2.yt_abt="adBreakType",l2.ad_cpn="adClientPlaybackNonce",l2.ad_docid="adVideoId",l2.yt_ad_an="adNetworks",l2.ad_at="adType",l2.browse_id=
"browseId",l2.p="httpProtocol",l2.t="transportProtocol",l2.cpn="clientPlaybackNonce",l2.ccs="creatorInfo.creatorCanaryState",l2.cseg="creatorInfo.creatorSegment",l2.csn="clientScreenNonce",l2.docid="videoId",l2.GetHome_rid="requestIds",l2.GetSearch_rid="requestIds",l2.GetPlayer_rid="requestIds",l2.GetWatchNext_rid="requestIds",l2.GetBrowse_rid="requestIds",l2.GetLibrary_rid="requestIds",l2.is_continuation="isContinuation",l2.is_nav="isNavigation",l2.b_p="kabukiInfo.browseParams",l2.is_prefetch="kabukiInfo.isPrefetch",
l2.is_secondary_nav="kabukiInfo.isSecondaryNav",l2.prev_browse_id="kabukiInfo.prevBrowseId",l2.query_source="kabukiInfo.querySource",l2.voz_type="kabukiInfo.vozType",l2.yt_lt="loadType",l2.mver="creatorInfo.measurementVersion",l2.yt_ad="isMonetized",l2.nr="webInfo.navigationReason",l2.nrsu="navigationRequestedSameUrl",l2.ncnp="webInfo.nonPreloadedNodeCount",l2.pnt="performanceNavigationTiming",l2.prt="playbackRequiresTap",l2.plt="playerInfo.playbackType",l2.pis="playerInfo.playerInitializedState",
l2.paused="playerInfo.isPausedOnLoad",l2.yt_pt="playerType",l2.fmt="playerInfo.itag",l2.yt_pl="watchInfo.isPlaylist",l2.yt_pre="playerInfo.preloadType",l2.yt_ad_pr="prerollAllowed",l2.pa="previousAction",l2.yt_red="isRedSubscriber",l2.rce="mwebInfo.responseContentEncoding",l2.scrh="screenHeight",l2.scrw="screenWidth",l2.st="serverTimeMs",l2.aq="tvInfo.appQuality",l2.br_trs="tvInfo.bedrockTriggerState",l2.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",l2.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",
l2.label="tvInfo.label",l2.is_mdx="tvInfo.isMdx",l2.preloaded="tvInfo.isPreloaded",l2.upg_player_vis="playerInfo.visibilityState",l2.query="unpluggedInfo.query",l2.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",l2.yt_vst="videoStreamType",l2.vph="viewportHeight",l2.vpw="viewportWidth",l2.yt_vis="isVisible",l2.rcl="mwebInfo.responseContentLength",l2.GetSettings_rid="requestIds",l2.GetTrending_rid="requestIds",l2.GetMusicSearchSuggestions_rid="requestIds",l2.REQUEST_ID="requestIds",l2),Oha="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "),
m2={},IA=(m2.ccs="CANARY_STATE_",m2.mver="MEASUREMENT_VERSION_",m2.pis="PLAYER_INITIALIZED_STATE_",m2.yt_pt="LATENCY_PLAYER_",m2.pa="LATENCY_ACTION_",m2.yt_vst="VIDEO_STREAM_TYPE_",m2),Pha="all_vc ap c cver cbrand cmodel cplatform ctheme ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");if(g.Eo("overwrite_polyfill_on_logging_lib_loaded")){var n2=window;n2.ytcsi&&(n2.ytcsi.info=EA,n2.ytcsi.tick=FA)};var o2;var Zra=g.Lc,$ra=Zra.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!$ra||2>$ra.length)o2=void 0;else{var p2=Zra.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);o2=p2&&6==p2.length?Number(p2[5].replace("_",".")):0}var WB=o2,JQ=0<=WB;JQ&&0<=g.Lc.search("Safari")&&g.Lc.search("Version");g.r(UA,g.O);UA.prototype.mi=function(a,b){for(var c=VA(this,b);0<=c;){var d=this.levels[c];if(d.Gb(Math.floor(a/(d.columns*d.rows)))&&(d=d.mi(a)))return d;c--}return this.levels[0].mi(a)};
UA.prototype.I=function(a,b){null!==this.o&&(this.o=this.o.onload=null);var c=this.levels[a];c.loaded.add(b);WA(this);var d=c.columns*c.rows;var e=b*d;c=Math.min(e+d-1,c.Jr()-1);e=[e,c];this.S("l",e[0],e[1])};
UA.prototype.X=function(){this.o&&(this.o=this.o.onload=null);g.O.prototype.X.call(this)};g.h=g.YA.prototype;g.h.Zc=function(){return this.width};
g.h.getHeight=function(){return this.height};
g.h.lx=ba(2);g.h.Jr=function(){return this.w};
g.h.isDefault=function(){return-1!==this.A.indexOf("default")};
g.h.Gb=function(a){return this.loaded.has(a)};
g.h.jc=function(a){var b=this.B;b=b.replace("$N",this.A);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.signature&&(b=g.Bd(b,{sigh:this.signature}));return Zw(b)};
g.h.mi=function(a){a>=this.ht()&&this.Vl();var b=Math.floor(a/(this.columns*this.rows)),c=this.columns*this.rows,d=a%c;a=d%this.columns;d=Math.floor(d/this.columns);var e=this.Vl()+1-c*b;if(e<this.columns){var f=e;c=1}else f=this.columns,c=e<c?Math.ceil(e/this.columns):this.rows;return{url:this.jc(b),column:a,columns:f,row:d,rows:c,gp:this.width*f,fp:this.height*c}};
g.h.Vo=function(a){var b=this.Jr()-1;return g.Pd(0===this.o?Math.round(a*this.w/this.videoLength):Math.round(1E3*a/this.o),0,b)};
g.h.Vl=function(){return this.w-1};
g.h.ht=function(){return this.w?0:-1};
g.h.Wy=function(){};g.r(ZA,UA);ZA.prototype.u=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.B(f-1,e,d[f],b);(this.G||180>k.getHeight())&&c.push(k)}return c};
ZA.prototype.B=function(a,b,c,d){return new g.YA(a,b,c,d)};g.r(aB,g.YA);g.h=aB.prototype;g.h.Jr=function(){return this.u.xj()};
g.h.Vo=function(a){var b=this.rows*this.columns*this.C,c=this.u,d=c.gb();a=c.Qe(a);return a>d-b?-1:a};
g.h.Vl=function(){return this.u.gb()};
g.h.ht=function(){return this.u.Pe()};
g.h.Wy=function(a){this.u=a};g.r(bB,ZA);bB.prototype.u=function(a,b){return ZA.prototype.u.call(this,"$N|"+a,b)};
bB.prototype.B=function(a,b,c){return new aB(a,b,c,this.isLive)};g.r(g.dB,g.O);g.h=g.dB.prototype;g.h.Yd=function(a,b){b?(cB(this,a),HB(this)&&xB(this)):(a=a||{},gB(this,a),fB(this,a),this.S("dataupdated"))};
g.h.M=function(){return this.Oa};
g.h.fa=function(a){return g.P(this.Oa.experiments,a)};
g.h.Qc=function(){return!this.sa||this.allowLiveDvr};
g.h.fo=function(){return!!(this.wa&&this.wa.videoInfos&&this.wa.videoInfos.length)};
g.h.eG=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.Oe=this.Oe;c.In=this.In;c.Hn=this.Hn;break;case "widevine":c.Nm=this.Nm}this.lk=a;0<this.lk.length&&(this.wc=this.lk[0]);xB(this)};
g.h.FK=function(a){this.ea()||(rB(this,a),a.w&&a.subscribe("refresh",this.oA,this),FA("mrc",void 0,void 0),Qx(a)&&(this.Nj=!0),xB(this))};
g.h.EK=function(a){this.ea()||(this.pc=!1,this.S("dataloaderror",new Vs("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
g.h.oA=function(){this.ea()||(this.ia.w||this.ia.unsubscribe("refresh",this.oA,this),this.tw())};
g.h.tw=function(){if(this.fa("html5_disable_fairplay_dai_killswitch")||!this.sa||!this.wc||"fairplay"!=this.wc.flavor){var a=Yx(this.ia,this.Hs);0<a.length&&(this.S("cuepointupdated",a),this.Hs+=a.length)}};
g.h.jn=function(a){var b=this;if(this.ea())return rr();this.Gg=this.le=this.wa=null;var c=this.Oa.deviceParams.c;this.fa("disable_rqs")||(this.wg=/^rq/.test(this.clientPlaybackNonce)||/^r/.test(this.clientPlaybackNonce)&&/UNPLUGGED/.test(c)||UB(this));return $ha(this,a).then(void 0,(0,g.x)(this.oG,this,a)).then(void 0,(0,g.x)(this.qG,this)).then(void 0,(0,g.x)(this.pG,this)).then(function(){if(b.fa("html5_probe_media_capabilities")&&b.wa)return kha(b.wa).then(b.Bu,void 0,b)})};
g.h.oG=function(a){if(a&&this.hlsvp)return rr();if(this.hlsFormats){a=qB(this.hlsFormats);if(sl||ql()||ml()){var b=Pz(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.sb&&(f=k.sb.getId(),d[f]||(k=new at(f,k.sb),d[f]=k,c.push(k)))}var l=0<c.length?c:null}else l=null}else l=null;this.ko=l;l=this.fa("html5_hls_cpn_killswitch")?"":this.clientPlaybackNonce;return iha(this.Oa,this.isAd(),a,this.rh,l).then(this.Au,void 0,this)}return rr()};
g.h.qG=function(){if(this.vk&&this.fy){var a=this.Oa;var b=this.isAd(),c=jha(this.vk);a=Bu(a.A,c,gz(a,b)).then(this.Au,void 0,this)}else a=rr();return a};
g.h.pG=function(){var a=qB(this.Bk,this.Fr);if(this.hlsvp){var b=this.hlsvp;var c=this.rh,d={cpn:this.clientPlaybackNonce};-1===b.indexOf("/ibw/")&&(d.ibw=c?String(c):"1369843");b={url:g.Bd(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.rp&&(d.ptk=this.rp,d.oid=this.iB,d.ptchn=this.hB,d.pltype=this.jB);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 $w(k.url);if(k.s){var l=k.sp,m=Ow(decodeURIComponent(k.s));f.set(l,encodeURIComponent(m))}for(var n in d)f.set(n,d[n]);k=rt(k.type,k.quality,k.itag,k.width,k.height);e.push(new Sz(k,f))}}return Bu(b.A,e,gz(b,c)).then(this.Au,void 0,this)};
g.h.Bu=function(a){this.wa=a;a=this.getAvailableAudioTracks();a=a.concat(this.Yk);for(var b=0;b<this.Vq.length;b++)for(var c=this.Vq[b],d=0;d<a.length;d++){var e=a[d],f=e.sb.id==c.audioTrackId;if(e.sb.isDefault&&b==this.jw||f){if(c.captionTrackIndices)for(f=0;f<c.captionTrackIndices.length;f++)e.captionTracks[f]=this.captionTracks[c.captionTrackIndices[f]];void 0!==c.defaultCaptionTrackIndex&&(e.qr=this.captionTracks[c.defaultCaptionTrackIndex]);void 0!==c.forcedCaptionTrackIndex&&(e.Ln=this.captionTracks[c.forcedCaptionTrackIndex]);
e.Yq=c.visibility||"UNKNOWN"}}if(!this.fa("html5_playbackmanager_infocheck_killswitch")&&this.wc&&this.wa&&this.wa.videoInfos&&!(0>=this.wa.videoInfos.length)&&(a=ot(this.wa.videoInfos[0]),a!=("fairplay"==this.wc.flavor)))for(b=g.q(this.lk),c=b.next();!c.done;c=b.next())if(c=c.value,a==("fairplay"==c.flavor)){this.wc=c;break}};
g.h.Au=function(a){this.Gg=a;this.Bu(new Hz((0,g.Fc)(this.Gg,function(b){return b.ge()})))};
g.h.Xc=function(){var a={};this.Ba&&(a.fmt=jt(this.Ba),this.Ub&&jt(this.Ub)!=jt(this.Ba)&&(a.afmt=jt(this.Ub)));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Zh&&(a.infringe=1);this.sh&&(a.splay=1);var b=EB(this);b&&(a.live=b);this.Eg&&(a.autoplay=1);this.zp&&(a.sdetail=this.zp);this.Ee&&(a.partnerid=this.Ee);this.osid&&(a.osid=this.osid);return a};
g.h.ue=function(){var a=g.oz(this.Oa)||this.fa("web_l3_storyboard");if(!this.Dk)if(this.Da&&this.Da.storyboards){var b=this.Da.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Dk=new ZA(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.ia&&(c=Hb(this.ia.o).index)&&(this.Dk=new bB(b.spec,this.ia.isLive,c,a))}else this.Np?this.Dk=new ZA(this.Np,this.lengthSeconds,void 0,!1,a):this.Ao&&this.ia&&(b=Hb(this.ia.o).index)&&(this.Dk=new bB(this.Ao,this.ia.isLive,
b,a));return this.Dk};
g.h.getStoryboardFormat=function(){if(this.Da&&this.Da.storyboards){var a=this.Da.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.Np||this.Ao};
g.h.tc=function(){return this.ia&&!isNaN(this.ia.tc())?this.ia.tc():tB(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.Ba){var b=this.ia.o[this.Ba.id];if(!b)return null;var c=b.index.Qe(a);b=b.index.gd(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.h.isValid=function(){return!this.ea()&&!(!this.videoId&&!this.vk)};
g.h.Gb=function(){return HB(this)&&!this.Yh&&!this.Nj};
g.h.uc=function(a){if(30==this.Ee)return(a=this.ff["default.jpg"])?a:this.videoId?g.Bd("//docs.google.com/vt",{id:this.videoId,authuser:this.Nc,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.ff[a];return b||this.Oa.P||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:jz(this.Oa,this.videoId,a)};
g.h.Df=function(){return this.sa||this.ze||this.uo||!(!this.liveUtcStartSeconds||!this.Ll)};
g.h.Hl=function(){return!!this.ia&&(this.ia.Hl||!this.ze&&!this.sa&&this.ia.w)};
g.h.getAvailableAudioTracks=function(){return this.wa?0<this.wa.getAvailableAudioTracks().length?this.wa.getAvailableAudioTracks():this.ko||[]:[]};
g.h.getAudioTrack=function(){var a=this;if(this.Ub&&!ot(this.Ub))return g.$a(this.getAvailableAudioTracks(),function(d){return d.id==a.Ub.id})||this.Yk;
if(this.ko){if(!this.ym)for(var b=g.q(this.ko),c=b.next();!c.done;c=b.next())if(c=c.value,c.sb.getIsDefault()){this.ym=c;break}return this.ym||this.Yk}return this.Yk};
g.h.getPlayerResponse=function(){return this.Da};
g.h.getPlaylistId=function(){return null};
g.h.va=function(){return this};
g.h.lh=function(){return this.Oa.getVideoUrl(this.videoId)};
g.h.xg=function(){return!!this.ia&&this.ia.xg()};
g.h.yg=function(){return!!this.ia&&this.ia.yg()};
g.h.sg=function(){return!!this.ia&&this.ia.sg()};
g.h.Jj=function(){return!!this.ia&&this.ia.Jj()};
g.h.isAd=function(){return!!this.adFormat};
g.h.ki=function(){if(this.isAd()&&this.videoId!=this.Oa.Ca)return this.Oa.Ca};
g.h.Qd=function(){return this.oauthToken||this.Oa.yb};
g.h.Xx=function(){return!!(this.Da&&this.Da.playerConfig&&this.Da.playerConfig.daiConfig&&this.Da.playerConfig.daiConfig.enableDai)};
g.h.Bm=function(){return this.jj};
g.h.useInnertubeDrmService=function(){if(!(this.wc&&this.Da&&this.Da.playerConfig&&this.Da.playerConfig.webDrmConfig))return!1;var a="playready"===this.wc.flavor&&this.Da.playerConfig.webDrmConfig.useItdrmForPlayready,b="fairplay"===this.wc.flavor&&this.Da.playerConfig.webDrmConfig.useItdrmForFairplay;return!!("widevine"===this.wc.flavor&&this.Da.playerConfig.webDrmConfig.useInnertubeDrmService||a||b)};g.r(YB,g.A);g.h=YB.prototype;
g.h.handleExternalCall=function(a,b,c){var d=this.C[a],e=this.G[a],f=d;if(e)if(c&&Rw(c,Wra,Xra))f=this.fa("web_player_tapi_split_killswitch")&&d?d:e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.M();d.Wm&&!this.L.has(a)&&(this.L.add(a),g.Yq("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:c||void 0,playerStyle:d.playerStyle||void 0}));if(f){c=!1;d=g.q(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.ar(Error('Dangerous call to "'+
a+'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.h.isExternalMethodAvailable=function(a,b){return this.C[a]?!0:!!(this.G[a]&&b&&Rw(b,Wra,Xra))};
g.h.getBandwidthEstimate=function(){return Ay(this.app.M().schedule)};
g.h.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.W(this.app);b&&(a={gpu:(0,g.zJ)(),d:a},b.Fi(new Vs("feedback",!1,a)))};
g.h.getApiInterface=function(){return this.I.slice()};
g.h.getInternalApiInterface=function(){return g.Jb(this.w)};
g.h.addEventListener=function(a,b){if("string"===typeof b){var c=function(){g.w(b).apply(window,arguments)};
this.F[b]=c}else c=b;this.app.ga.subscribe(a,c)};
g.h.AE=function(a,b){var c=this,d="string"===typeof b?a+b:a+g.Sa(b);if(!this.B[d]){var e;"string"===typeof b?e=function(){g.w(b).apply(window,arguments)}:e=b;
var f=function(k){e({target:c.u,data:k})};
this.B[d]=f;this.app.ga.subscribe(a,f)}};
g.h.removeEventListener=function(a,b){if("string"===typeof b){var c=this.F[b],d=this.F;b in d&&delete d[b];b=c}this.app.ga.unsubscribe(a,b)};
g.h.BE=function(a,b){var c="string"===typeof b?a+b:a+g.Sa(b),d=this.B[c];d&&(this.app.ga.unsubscribe(a,d),d=this.B,c in d&&delete d[c])};
g.h.getPlayerState=function(){return kT(this.app)};
g.h.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
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){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)};
g.h.seekTo=function(a,b,c){this.o&&tT(this.app,!0,this.playerType);ET(this.app,a,b,c,this.playerType)};
g.h.seekToStreamTime=function(a,b,c){this.o&&tT(this.app,!0,this.playerType);var d=this.app,e=this.playerType;b=void 0===b?!0:b;var f=void 0===f?!1:f;var k=g.W(d,e),l=0;k&&k.getStreamTimeOffset()&&!k.Bb()&&(l=k.getStreamTimeOffset());ET(d,a-l,b,c,e,f)};
g.h.getStreamTimeOffset=function(){var a=g.W(this.app,1);return a?a.getStreamTimeOffset():0};
g.h.seekToLiveHead=function(a,b){var c=this.getVideoData();c&&(c.sa||c.isLive)&&ET(this.app,Infinity,a,b,this.playerType)};
g.h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.h.getMediaReferenceTime=function(){var a=iT(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.R.volume};
g.h.setVolume=function(a){bC(this,a)};
g.h.isMuted=function(){return this.app.R.muted};
g.h.mute=function(){cC(this)};
g.h.unMute=function(){dC(this)};
g.h.playVideo=function(){this.o&&tT(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();2!=a||this.app.Mb()?3==a?g.SK(this.app.A).Rl("control_play"):this.app.playVideo(a):(a=HL(this.app.A))&&Lqa(a,"control_play")};
g.h.pauseVideo=function(){var a=this.app.getPresentingPlayerType();2!=a||this.app.Mb()?3==a?g.SK(this.app.A).Rl("control_pause"):this.app.pauseVideo(a):(a=HL(this.app.A))&&Lqa(a,"control_pause")};
g.h.stopVideo=function(){var a=this.app;a.o.ma&&a.u.S("pageTransition");a.stopVideo()};
g.h.clearVideo=function(){};
g.h.getPlaybackRate=function(){return g.W(this.app,1).getPlaybackRate()};
g.h.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.h.getAvailablePlaybackRates=function(){var a=this.app.M();a.Ha?(a=a.u||a.fa("web_player_admin_origin_killswitch")?a.Hc[0]:window.location.origin,a="https://admin.youtube.com"==a||"https://viacon.corp.google.com"==a?Ura:Tra):a=[1];return a};
g.h.getPlaybackQuality=function(a){return(a=g.W(this.app,a))?a.getPlaybackQuality():"unknown"};
g.h.setPlaybackQuality=function(){};
g.h.getAvailableQualityLevels=function(){var a=g.W(this.app,this.playerType);return a?(a=(0,g.Fc)(UJ(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.I.Ce()};
g.h.channelSubscribed=function(){this.na("SUBSCRIBE",WS(this.app).Og)};
g.h.channelUnsubscribed=function(){this.na("UNSUBSCRIBE",WS(this.app).Og)};
g.h.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.h.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.h.getCurrentPlaylistSequence=function(){return g.W(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.h.getPlaylistSequenceForTime=function(a){return g.W(this.app).getPlaylistSequenceForTime(a)};
g.h.forceFrescaUpdate=function(){var a=bL(this.app.A);a&&a.JE()};
g.h.shouldSendVisibilityState=function(){return!0};
g.h.updateFullerscreenEduButtonVisibility=function(a){var b=LT(this.app);b&&(b.w=a,b.xa())};
g.h.updateFullerscreenEduButtonSubtleModeState=function(a){var b=LT(this.app);b&&jla(b,a)};
g.h.confirmYpcRental=function(){var a=g.W(this.app,this.playerType);a&&NJ(a,"ypc_clickwrap")};
g.h.setHomeGroupInfo=function(a){this.app.M().homeGroupInfo=a};
g.h.setConnectedRemoteApps=function(a){this.app.M().od=a};
g.h.setLivingRoomAppMode=function(a){this.app.M().livingRoomAppMode=a};
g.h.setEnablePrivacyFilter=function(a){this.app.M().enablePrivacyFilter=a};
g.h.isPictureInPictureAllowed=function(){return WS(this.app).Nq};
g.h.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.h.loadModule=function(a){"captions"==a&&(a=g.AL(this.app.A))&&!a.loaded&&a.load()};
g.h.unloadModule=function(a){"captions"==a&&(a=g.AL(this.app.A))&&a.loaded&&a.SO()};
g.h.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(Ku(a,b,c),this.playerType),this.o&&tT(this.app,a,this.playerType))};
g.h.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(Ku(a,b,c),this.playerType)};
g.h.loadVideoByUrl=function(a,b,c){a=Lu(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.o&&tT(this.app,a,this.playerType)};
g.h.cueVideoByUrl=function(a,b,c){a=Lu(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.h.getVideoUrl=function(){var a=this.app.M();if(a.P)return"";var b=WS(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.M();return a.P?"":a.getVideoEmbedCode(WS(this.app).videoId,this.app.I.getPlayerSize(),this.getPlaylistId()||void 0)};
g.h.addCueRange=function(a,b,c){return xT(this.app,a,b,c)};
g.h.removeCueRange=function(a){a:{for(var b=this.app,c=uF(b.w.R)||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.w.removeCueRange(e);NS(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.o&&tT(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.o&&tT(this.app,!0,this.playerType)};
g.h.previousVideo=function(){this.app.previousVideo();this.o&&tT(this.app,!0,this.playerType)};
g.h.playVideoAt=function(a){this.app.playVideoAt(a);this.o&&tT(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.va(c);d&&b.push(d.videoId)}return b};
g.h.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-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.A;return"captions"==a?(a=g.AL(d))&&a.Oc(b,c):null};
g.h.getOption=function(a,b,c){var d=g.W(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.M().u?{}:this.setOption(a,b,c)};
g.h.getOptions=function(a){var b=this.app.A;return"captions"==a?(b=g.AL(b))&&b.getOptions():a?null:(a=[],g.AL(b)&&a.push("captions"),a)};
g.h.getVideoData=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.W(this.app,a)){a=a.getVideoData();if(a.isPrivate&&!this.fa("embeds_prevent_metadata_leaking_killswitch"))return{};b.video_id=a.videoId;b.author=a.author;b.title=a.title;if(a.Ba&&a.Ba.video){b.video_quality=a.Ba.video.quality;a=a.Ba.video;var c=[];32<a.fps&&c.push("hfr");gt(a)&&c.push("hdr");"bt2020"==a.primaries&&c.push("wcg");b.video_quality_features=c}}if(a=this.getPlaylistId())b.list=a;return b};
g.h.showVideoInfo=function(){IS(this.app,!0)};
g.h.hideVideoInfo=function(){IS(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.W(this.app,1))?a.getPlayerState():null)?a.u:null;return!!(a&&b&&g.V(a,128)&&5==Sra[b.errorCode])};
g.h.getSphericalProperties=function(){var a=g.WK(this.app.A);return a?2==this.playerType?{}:a.getSphericalProperties():{}};
g.h.setSphericalProperties=function(a){if(a&&2!=this.playerType){var b=g.WK(this.app.A);b&&b.setSphericalProperties(a,!0)}};
g.h.supportsGaplessAudio=function(){return this.app.M().supportsGaplessAudio()};
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.W(this.app);a&&a.sendAbandonmentPing()};
g.h.deleteLocalMediaById=function(a){return Bfa(a)};
g.h.deleteAllLocalMedia=function(){return Cfa()};
g.h.fetchLocalMedia=function(){this.app.fetchLocalMedia()};
g.h.fetchLocalMediaById=function(a){this.app.fetchLocalMediaById(a)};
g.h.getLocalMediaInfoById=function(a){return this.app.getLocalMediaInfoById(a)};
g.h.getAllLocalMediaInfo=function(){return this.app.getAllLocalMediaInfo()};
g.h.setAutonavState=function(a){GT(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.setImmersivePreview=function(a){this.app.setImmersivePreview(a)};
g.h.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
g.h.getAppState=function(){return this.app.getAppState()};
g.h.addInfoCardXml=function(a,b,c){this.app.M().I.add(a,{un:b,Lm:c})};
g.h.updateLastActiveTime=function(){eq()};
g.h.setBlackout=function(a){this.app.setBlackout(a)};
g.h.setUserEngagement=function(a){this.app.M().oe!=a&&(this.app.M().oe=a,(a=g.W(this.app,this.playerType))&&XJ(a))};
g.h.updateSubtitlesUserSettings=function(a){g.AL(this.app.A).FC(a,!0)};
g.h.setFauxFullscreen=function(a){Jr();RS(this.app,a?2:0)};
g.h.setUseFastSizingOnWatch=function(a){this.app.I.setUseFastSizingOnWatch(a)};
g.h.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType();2==a&&this.app.Mb()&&(a=1);return a};
g.h.getPlayerResponse=function(){var a=g.W(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.h.getStoryboardFrame=function(a,b){var c=this.app.ue();if(!c)return null;c=c.levels[b];return c?(c=c.mi(a))?{column:c.column,columns:c.columns,height:c.fp,row:c.row,rows:c.rows,url:c.url,width:c.gp}:null:null};
g.h.getStoryboardFrameIndex=function(a,b){var c=this.app.ue();if(!c)return-1;c=c.levels[b];if(!c)return-1;a-=this.Bb();return c.Vo(a)};
g.h.getStoryboardLevel=function(a){var b=this.app.ue();return b?(b=b.levels[a])?{index:a,intervalMs:b.o,maxFrameIndex:b.Vl(),minFrameIndex:b.ht()}:null:null};
g.h.getNumberOfStoryboardLevels=function(){var a=this.app.ue();return a?a.levels.length:0};
g.h.yE=function(){return this.getAudioTrack()};
g.h.getAudioTrack=function(){var a=g.W(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().Yk};
g.h.setAudioTrack=function(a){3==this.getPresentingPlayerType()&&g.SK(this.app.A).Rl("control_set_audio_track",a);var b=g.W(this.app,this.playerType);if(b&&!b.ea()&&!g.V(b.u,128))if(b.T.wa.o)b.w.setAudioTrack(a);else{a:{var c=b.T;if(c.Ub&&!ot(c.Ub)||a==c.ym||!c.Gg||0>=c.Gg.length)c=!1;else{for(var d=g.q(c.Gg),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof Qz)){c=!1;break a}var f=a.sb.getId();e.u&&(e.u.o=f,e.o=null)}c.ym=a;c=!0}}c&&(b.S("internalaudioformatchange",b.T,!0),CJ(b)&&b.Qa("hlsaudio",
a.id))}};
g.h.zE=function(){return this.getAvailableAudioTracks()};
g.h.getAvailableAudioTracks=function(){return g.W(this.app,this.playerType).getAvailableAudioTracks()};
g.h.getMaxPlaybackQuality=function(){var a=g.W(this.app,this.playerType);return a&&a.getVideoData().Ba?Iu(a.P?OG(a.U,a.P,TJ(a)):Gu):"unknown"};
g.h.getUserPlaybackQualityPreference=function(){var a=g.W(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.h.getSubtitlesUserSettings=function(){var a=g.AL(this.app.A);return a?a.bF():null};
g.h.resetSubtitlesUserSettings=function(){g.AL(this.app.A).lO()};
g.h.setMinimized=function(a){this.app.setMinimized(a)};
g.h.setGlobalCrop=function(a){this.app.I.setGlobalCrop(a)};
g.h.getVisibilityState=function(){var a=this.app.M();a=this.app.G.o&&!g.P(a.experiments,"kevlar_miniplayer_disable_vis");return this.app.getVisibilityState(this.Hi(),this.isFullscreen()||Ty(this.app.M()),a,this.isInline(),this.app.G.B,this.app.G.A)};
g.h.isMutedByMutedAutoplay=function(){return this.app.Pa};
g.h.isInline=function(){return this.app.isInline()};
g.h.setInternalSize=function(a,b){this.app.I.setInternalSize(new g.Vd(a,b))};
g.h.Bb=function(){var a=g.W(this.app,void 0);return a?a.Bb():0};
g.h.Hi=function(){var a=g.W(this.app,this.playerType);return!!a&&a.L.u};
g.h.isFullscreen=function(){return this.app.isFullscreen()};
g.h.setSafetyMode=function(a){this.app.M().enableSafetyMode=a};
g.h.canPlayType=function(a){return this.app.canPlayType(a)};
g.h.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!=a.list)if(this.fa("player_enable_playback_playlist_change"))c=!0;else return;void 0!==a.external_list&&this.app.setIsExternalPlaylist(a.external_list);var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!=b.va().videoId||(a.index=b.index)):ZS(this.app,{list:a.list,index:a.index,playlist_length:d.length});wC(this.app.getPlaylist(),a);this.na("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.h.updateVideoData=function(a,b){var c=g.W(this.app,this.playerType||1);c&&c.getVideoData().Yd(a,b)};
g.h.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.h.setCardsVisible=function(a,b,c){var d=g.YK(this.app.A);d&&d.Ql()&&d.setCardsVisible(a,b,c)};
g.h.setInline=function(a){this.app.setInline(a)};
g.h.isAtLiveHead=function(a){return this.app.isAtLiveHead(void 0,void 0===a?!0:a)};
g.h.getVideoAspectRatio=function(){return this.app.I.getVideoAspectRatio()};
g.h.getPreferredQuality=function(){var a=g.W(this.app);return a?a.getPreferredQuality():"unknown"};
g.h.setPlaybackQualityRange=function(a,b){var c=g.W(this.app,this.playerType);if(c){var d=Eu(a,b||a,!0,"m");c.T.cq=d;if(c.P){var e=c.P;if(e.wa.o){var f=g.dt[jy()];e=e.wa.videoInfos[0].va().fc;f>e&&0!=e&&d.o==e||g.Ks("yt-player-quality",Iu(d),2592E3)}}XJ(c)}};
g.h.onAdUxClicked=function(a){this.S("aduxclicked",a)};
g.h.S=function(a,b){for(var c=1;c<arguments.length;++c);this.app.M().w&&("videodatachange"==a||"resize"==a||"cardstatechange"==a)&&this.app.ga.S.apply(this.app.ga,arguments);this.app.ha.S.apply(this.app.ha,arguments)};
g.h.na=function(a,b){this.app.ga.S.apply(this.app.ga,arguments);this.app.ha.S.apply(this.app.ha,arguments)};
g.h.fa=function(a){return g.P(this.app.M().experiments,a)};
g.h.X=function(){if(this.A){for(var a in this.w)this.A[a]=null;this.A=null}this.B={};this.F={};g.A.prototype.X.call(this)};g.r(hC,YB);g.h=hC.prototype;g.h.addCueRange=function(a,b,c,d,e){return xT(this.app,a,b,c,d,e)};
g.h.getPlayerState=function(a){return kT(this.app,a)};
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){ET(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.h.seekTo=function(a,b,c,d){ET(this.app,a,b,c,d||this.playerType)};
g.h.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.h.getVideoData=function(a){a=void 0===a?this.playerType:a;var b=YB.prototype.getVideoData.call(this,a)||{};if(a=g.W(this.app,a))a=a.getVideoData(),b.backgroundable=a.backgroundable,b.eventId=a.eventId,b.cpn=a.clientPlaybackNonce,b.isLive=a.sa,b.isWindowedLive=a.uo,b.allowLiveDvr=a.allowLiveDvr,b.isListed=a.isListed,b.itct=a.zf,b.ypcOriginalItct=a.nP,b.ypcPreview=a.ypcPreview,b.paidContentOverlayText=CB(a),b.paidContentOverlayDurationMs=DB(a),null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds),
a.ia&&Rx(a.ia)&&(b.usingLocalMedia="true");return b};
g.h.getCurrentTime=function(a,b){return a?this.app.getCurrentTime(a,b):YB.prototype.getCurrentTime.call(this)};
g.h.getDuration=function(a,b){return a?this.app.getDuration(a,b):YB.prototype.getDuration.call(this)};
g.h.getProgressState=function(a){if(3==this.getPresentingPlayerType())return g.SK(this.app.A).getProgressState();var b=this.app.getVideoData(),c=(g.W(this.app,a)||g.W(this.app)).getPlayerType(),d=this.getCurrentTime(a);a=this.getDuration(a);var e=iT(this.app,c),f=this.app.isAtLiveHead(c);var k=this.app;var l=g.W(k,void 0);if(l){l=TS(k,l);var m=NaN;l.o&&(m=DC(l.o));m=0<=m?m:l.getCurrentTime();k=jT(k,m,l)}else k=0;l=this.app.Ab(c);m=this.app;(c=g.W(m,c))?(c=SS(m,c),c=jT(m,wK(c),c)):c=0;return{allowSeeking:this.app.Qc(),
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.getCurrentBroadcastId=function(){var a=bL(this.app.A);return a?a.bx():null};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f,k){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.fC(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,k)};
g.h.handleGlobalKeyUp=function(a,b,c,d,e,f,k){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.fC(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,k)};
g.h.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.h.showControls=function(){var a=g.fC(this);a&&a.showControls(!0)};
g.h.hideControls=function(){var a=g.fC(this);a&&a.showControls(!1)};
g.h.getVideoContentRect=function(a){a=this.app.I.getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.h.toggleFullscreen=function(){var a=this.app.M();a.externalFullscreen?this.isFullscreen()?Lr(window.document.documentElement):Ir(window.document.documentElement):Jr()?this.isFullscreen()?Lr(Kr()):"3"==a.controlsType?(a=this.app.B.ib())&&Ir(a):Ir(this.app.I.element):this.na("onFullscreenToggled",this.isFullscreen())};
g.h.cancelPlayback=function(){var a=HL(this.app.A);a&&a.created&&a.destroy();(a=g.W(this.app))&&a.stopVideo();(a=this.app.A.u.get("endscreen"))&&a.VF()&&g.OK(this.app.u,!0)};
g.h.stopVideo=function(){var a=this.app.M();!g.P(a.experiments,"disable_new_pause_state3")&&kz(a)&&"blazer"!=a.playerStyle?this.cancelPlayback():YB.prototype.stopVideo.call(this)};
g.h.getVideoStats=function(){return g.W(this.app,this.playerType).Xa(!0)};
g.h.toggleSubtitles=function(){var a=g.AL(this.app.A);a&&a.MO()};
g.h.getDebugText=function(a){return this.app.getDebugText(a)};
g.h.setSphericalProperties=function(a){if(a){var b=g.WK(this.app.A);b&&b.setSphericalProperties(a,!0)}};
g.h.getSphericalProperties=function(){var a=g.WK(this.app.A);return a?a.getSphericalProperties():{}};
g.h.setVolume=function(a,b){bC(this,a,b)};
g.h.mute=function(a){cC(this,a)};
g.h.unMute=function(a){dC(this,a)};
g.h.mutedAutoplay=function(){this.fa("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.h.loadModule=function(a){if("annotations_module"==a){var b=g.YK(this.app.A);b&&!b.loaded&&b.load()}YB.prototype.loadModule.call(this,a)};
g.h.unloadModule=function(a){if("annotations_module"==a){var b=g.YK(this.app.A);b&&b.loaded&&b.unload()}YB.prototype.unloadModule.call(this,a)};
g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.A;switch(a){case "ad":return(a=HL(d))&&a.Oc&&a.Oc(b,c);case "kids":return(a=IL(d))&&a.Oc(b,c);case "remote":return(a=g.SK(d))&&a.Oc(b,c);case "unplugged":return(a=JL(d))&&a.Oc(b,c);case "annotations_module":return(a=g.YK(d))&&a.Oc(b,c);case "creatorendscreen":return(a=KL(d))&&a.Oc(b,c)}return YB.prototype.setOption.call(this,a,b,c)};
g.h.getOptions=function(a){var b=this.app.A;switch(a){case "ad":return(b=HL(b))&&b.getOptions&&b.getOptions();case "remote":return(b=g.SK(b))&&b.getOptions();case "annotations_module":return(b=g.YK(b))&&b.getOptions();case "creatorendscreen":return(b=KL(b))&&b.getOptions();case "unplugged":return(b=JL(b))&&b.getOptions();case "kids":return(b=IL(b))&&b.getOptions()}if(!a){a=YB.prototype.getOptions.call(this);if(!a)return a;HL(b)&&a.push("ad");g.SK(b)&&a.push("remote");g.YK(b)&&a.push("annotations_module");
KL(b)&&a.push("creatorendscreen");JL(b)&&a.push("unplugged");IL(b)&&a.push("kids");return a}return YB.prototype.getOptions.call(this,a)};
g.h.getPlayerSize=function(){var a=this.app.I.getPlayerSize();return{width:a.width,height:a.height}};
g.h.wakeUpControls=function(){var a=g.fC(this);a&&a.qt()};
var iC="BASE_URL BASE_YT_URL abd adformat allow_embed authuser autohide autoplay c can_watch_later cbr cbrver cc3_module cc_load_policy controls cos cosver cpn cr csi_page_type cver cyc dash dashmpd disable_native_context_menu disablekb docid el enable_cardio enablecastapi enablecsi enablejsapi enablepostapi end external_fullscreen external_list fmt_list fmt_stream_map forcenewui fs gapi_hint_params height hl hlsdvr hlsvp host_language innertube_api_key innertube_api_version innertube_context_client_version invite iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl markedForQuality no_get_video_log origin osig override_hl pageid partnerid pipable player_response_parsed player_wide playerapiid playsinline plid postid profile_picture ps public rel reportabuseurl show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality t timestamp title tkn token transparent_background ttsurl ucid url_encoded_fmt_stream_map use_fast_sizing_on_watch_default use_miniplayer_ui use_native_controls videoId video_id vss_host watermark width wmode x_glive".split(" ");jC.prototype.reset=function(){DA(this.timerName)};
jC.prototype.tick=function(a,b){FA(a,b,this.timerName)};
jC.prototype.info=function(a,b){EA(a,b,this.timerName)};g.mC.prototype.getId=function(){return this.id};
g.mC.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+nC(this.start)+", "+nC(this.end)+"]"};
g.mC.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 bia=1;g.mC.prototype.getId=g.mC.prototype.getId;g.qC.prototype.toString=function(){return this.type+this.id};g.r(g.rC,g.O);g.h=g.rC.prototype;g.h.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.h.va=function(a,b,c){a=void 0!==a?a:this.index;a=this.items&&a in this.items?this.items[this.order[a]]:null;var d=null;a&&(b&&(a.autoplay="1"),c&&(a.autonav="1"),d=new g.dB(this.u,a),g.C(this,d),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
g.h.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.w++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.w++}this.S("shuffle")};
g.h.uc=function(a){a=a||"hqdefault.jpg";var b=this.ff[a];if(b||this.u.P||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.A.length)return jz(this.u,this.A[0],a)};
g.h.getLength=function(){return this.length};
g.h.loadPlaylist=function(a,b){var c=this;this.B&&g.Lq(g.Bd(a,b),{format:"JSON",onSuccess:function(d,e){wC(c,e)},
onError:function(){return c.S("error")}})};
g.h.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.h.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.h.lh=function(){return this.u.getVideoUrl(this.va().videoId,this.getPlaylistId())};
g.h.X=function(){this.o=null;g.Le(this.items);g.O.prototype.X.call(this)};var asa=JQ&&4>WB?.1:0,Pka=new yC;yC.prototype.o=null;yC.prototype.getDuration=function(){return this.duration||0};
yC.prototype.getCurrentTime=function(){return this.currentTime||0};
yC.prototype.u=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};g.r(g.zC,g.A);g.h=g.zC.prototype;g.h.Dp=function(){};
g.h.bj=ba(5);g.h.Ro=function(){return this.w};
g.h.Vj=function(a){var b="";a&&(BC(this,a),b=a.o);this.Yc()&&""==b||(b&&this.Yc()!=b&&this.Ip(b),yS||a&&a.u||this.load(),this.F||(this.addEventListener("volumechange",this.ww),this.F=!0))};
g.h.Qo=function(){var a=this.ib();a=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new Mt(a);a=new $t(a);this.Vj(a.Nl);return a};
g.h.playVideo=function(){this.Af()&&this.seekTo(0);!this.Yc()&&this.w&&(g.M(Error("playVideo without src")),this.Ip(this.w.o),this.w.u||this.load());var a=this.play();!a&&AS&&JQ&&7<=WB&&g.Vp(this,"playing",(0,g.x)(function(){g.Oo((0,g.x)(this.Vw,this,this.getCurrentTime(),0),500)},this));
return a};
g.h.Vw=function(a,b){this.Ch()||this.getCurrentTime()>a||10<b||(this.play(),g.Oo((0,g.x)(this.Vw,this,this.getCurrentTime(),b+1),500))};
g.h.seekTo=function(a){0<this.je()&&(BS&&JQ&&4>WB&&(a=Math.max(.1,a)),this.Hp(a))};
g.h.stopVideo=function(){this.Yc()&&(zS&&sl&&0<this.getCurrentTime()&&this.seekTo(0),this.Bp(),this.load(),BC(this,null))};
g.h.Xa=function(){try{var a=this.Xj();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Qt(this.yj(),",",3),vbu:Qt(this.Fd()),vpa:""+ +this.Ch(),vsk:""+ +this.Tl(),ven:""+ +this.Af(),vpr:""+this.getPlaybackRate(),vrs:""+this.je(),vns:""+this.Un(),vec:""+this.Xe(),vemsg:this.Wj(),vvol:""+this.getVolume(),vdom:""+ +this.xs(),vsrc:""+ +!!this.Yc(),vw:a.width,vh:a.height}}catch(b){return{}}};
g.h.addEventListener=function(a,b){this.B.ka(a,b,!1,this);this.xr(a)};
g.h.removeEventListener=function(a,b){this.B.Za(a,b,!1,this)};
g.h.dispatchEvent=function(a){return this.B.dispatchEvent(a)};
g.h.wr=function(){this.C=!1};
g.h.sr=function(){this.C=!0;this.Nh(!0)};
g.h.ww=function(){this.C&&!this.Tn()&&this.Nh(!0)};
g.h.X=function(){this.F&&this.removeEventListener("volumechange",this.ww);g.A.prototype.X.call(this)};
var yS=!1,zS=!0,AS=!0,BS=!0;g.r(HC,g.Me);HC.prototype.preventDefault=function(){g.Me.prototype.preventDefault.call(this);this.u&&this.u.preventDefault()};
HC.prototype.stopPropagation=function(){g.Me.prototype.stopPropagation.call(this);this.u&&this.u.stopPropagation()};var zka,q2,hia;
zka={NP:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",SP:"AUTHENTICATION_MALFORMED",TP:"AUTHENTICATION_MISSING",XP:"BAD_REQUEST",dQ:"CAST_SESSION_DEVICE_MISMATCHED",eQ:"CAST_SESSION_VIDEO_MISMATCHED",fQ:"CAST_TOKEN_EXPIRED",gQ:"CAST_TOKEN_FAILED",hQ:"CAST_TOKEN_MALFORMED",iQ:"CGI_PARAMS_MALFORMED",jQ:"CGI_PARAMS_MISSING",vQ:"DEVICE_FALLBACK",HQ:"GENERIC_WITH_LINK_AND_CPN",IQ:"LICENSE",JQ:"VIDEO_UNAVAILABLE",OQ:"FORMAT_UNAVAILABLE",SQ:"GEO_FAILURE",lR:"HTML5_AUDIO_RENDERER_ERROR",mR:"GENERIC_WITHOUT_LINK",
nR:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",oR:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",uR:"INVALID_DRM_MESSAGE",pS:"PURCHASE_NOT_FOUND",qS:"PURCHASE_REFUNDED",uS:"RENTAL_EXPIRED",wS:"RETRYABLE_ERROR",AS:"SERVER_ERROR",IS:"STOPPED_BY_ANOTHER_PLAYBACK",JS:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",KS:"STREAMING_NOT_ALLOWED",LS:"STREAM_LICENSE_NOT_FOUND",QS:"TOO_MANY_REQUESTS",RS:"TOO_MANY_REQUESTS_WITH_LINK",SS:"TOO_MANY_STREAMS_PER_ENTITLEMENT",US:"TOO_MANY_STREAMS_PER_USER",WS:"UNSUPPORTED_DEVICE",
YS:"VIDEO_FORBIDDEN",ZS:"VIDEO_NOT_FOUND"};q2={};
g.LJ=(q2.ALREADY_PINNED_ON_A_DEVICE="\u60a8\u5c06\u6b64\u89c6\u9891\u4e0b\u8f7d\u5230\u7684\u8bbe\u5907\u7684\u6570\u91cf\u5df2\u8fbe\u5230\u5176\u7248\u6743\u6301\u6709\u8005\u89c4\u5b9a\u7684\u4e0a\u9650\u3002\u8981\u5728\u6b64\u8bbe\u5907\u4e0a\u64ad\u653e\uff0c\u5fc5\u987b\u5148\u5728\u53e6\u4e00\u8bbe\u5907\u4e2d\u53d6\u6d88\u56fa\u5b9a\u5b83\u3002",q2.DEVICE_FALLBACK="\u5f88\u62b1\u6b49\uff0c\u6b64\u89c6\u9891\u65e0\u6cd5\u5728\u8be5\u8bbe\u5907\u4e0a\u64ad\u653e\u3002",q2.GENERIC_WITH_LINK_AND_CPN=
"\u51fa\u4e86\u70b9\u95ee\u9898\u3002\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002\uff08\u64ad\u653e ID\uff1a$CPN\uff09$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK",q2.LICENSE="\u5f88\u62b1\u6b49\uff0c\u4e3a\u6b64\u89c6\u9891\u6388\u4e88\u8bb8\u53ef\u65f6\u51fa\u9519\u3002",q2.VIDEO_UNAVAILABLE="\u89c6\u9891\u65e0\u6cd5\u64ad\u653e",q2.FORMAT_UNAVAILABLE="\u6b64\u89c6\u9891\u65e0\u6cd5\u4ee5\u6240\u9009\u753b\u8d28\u64ad\u653e\u3002\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002",q2.GEO_FAILURE="\u6b64\u89c6\u9891\u65e0\u6cd5\u5728\u60a8\u6240\u5728\u7684\u56fd\u5bb6/\u5730\u533a\u64ad\u653e\u3002",
q2.HTML5_AUDIO_RENDERER_ERROR="\u97f3\u9891\u6e32\u67d3\u5668\u9519\u8bef\u3002\u8bf7\u91cd\u542f\u8ba1\u7b97\u673a\u3002",q2.GENERIC_WITHOUT_LINK="\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002",q2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="\u4e0d\u652f\u6301\u6b64\u89c6\u9891\u683c\u5f0f\u3002",q2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="\u60a8\u7684\u6d4f\u89c8\u5668\u76ee\u524d\u65e0\u6cd5\u8bc6\u522b\u4efb\u4f55\u53ef\u7528\u7684\u89c6\u9891\u683c\u5f0f\u3002$BEGIN_LINK\u8bf7\u70b9\u51fb\u6b64\u5904\uff0c\u67e5\u770b\u5173\u4e8eHTML5\u89c6\u9891\u7684\u5e38\u89c1\u95ee\u9898\u89e3\u7b54\u3002$END_LINK",
q2.INVALID_DRM_MESSAGE="DRM\u7cfb\u7edf\u4e13\u7528\u6d88\u606f\u65e0\u6548\u3002",q2.PURCHASE_NOT_FOUND="\u6b64\u89c6\u9891\u9700\u8981\u4ed8\u8d39\u3002",q2.PURCHASE_REFUNDED="\u6b64\u89c6\u9891\u7684\u8d2d\u4e70\u8d39\u7528\u5df2\u9000\u8fd8\u3002",q2.RENTAL_EXPIRED="\u6b64\u89c6\u9891\u7684\u79df\u501f\u671f\u5df2\u8fc7\u3002",q2.CAST_SESSION_DEVICE_MISMATCHED="\u6295\u5c04\u4f1a\u8bdd\u4e2d\u7684\u8bbe\u5907\u4e0e\u8981\u6c42\u7684\u8bbe\u5907\u4e0d\u76f8\u7b26\u3002",q2.CAST_SESSION_VIDEO_MISMATCHED=
"\u6295\u5c04\u4f1a\u8bdd\u4e2d\u7684\u89c6\u9891\u4e0e\u8981\u6c42\u7684\u89c6\u9891\u4e0d\u76f8\u7b26\u3002",q2.CAST_TOKEN_FAILED="\u6295\u5c04\u4f1a\u8bdd\u4e0d\u53ef\u7528\uff0c\u8bf7\u5237\u65b0\u6216\u7a0d\u540e\u91cd\u8bd5\u3002",q2.CAST_TOKEN_EXPIRED="\u6295\u5c04\u4f1a\u8bdd\u5df2\u5931\u6548\uff0c\u8bf7\u5237\u65b0\u3002",q2.CAST_TOKEN_MALFORMED="\u6295\u5c04\u4f1a\u8bdd\u65e0\u6548\uff0c\u8bf7\u5237\u65b0\u6216\u7a0d\u540e\u91cd\u8bd5\u3002",q2.SERVER_ERROR="\u51fa\u73b0\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002",
q2.STOPPED_BY_ANOTHER_PLAYBACK="\u60a8\u7684\u5e10\u53f7\u6b63\u5728\u5176\u4ed6\u4f4d\u7f6e\u64ad\u653e\u6b64\u89c6\u9891\u3002\u8981\u7ee7\u7eed\u89c2\u770b\uff0c\u8bf7\u91cd\u65b0\u52a0\u8f7d\u6b64\u9875\u9762\u3002",q2.STREAM_LICENSE_NOT_FOUND="\u89c6\u9891\u64ad\u653e\u5df2\u4e2d\u65ad\uff0c\u8bf7\u91cd\u8bd5\u3002",q2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="\u8fc7\u53bb24\u5c0f\u65f6\u5185\u4f7f\u7528\u7684\u8bbe\u5907/IP\u5730\u5740\u592a\u591a\u3002",q2.STREAMING_NOT_ALLOWED="\u4e0d\u5141\u8bb8\u64ad\u653e\uff0c\u56e0\u4e3a\u6b64\u89c6\u9891\u5df2\u56fa\u5b9a\u5728\u53e6\u4e00\u53f0\u8bbe\u5907\u4e0a\u3002",
q2.RETRYABLE_ERROR="\u51fa\u73b0\u6682\u65f6\u6027\u7684\u670d\u52a1\u5668\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002",q2.TOO_MANY_REQUESTS="\u8bf7\u767b\u5f55\u4ee5\u89c2\u770b\u6b64\u89c6\u9891\u3002",q2.TOO_MANY_REQUESTS_WITH_LINK="\u8981\u5728 YouTube \u4e0a\u89c2\u770b\u6b64\u89c6\u9891\uff0c\u8bf7$BEGIN_LINK\u70b9\u51fb\u6b64\u5904$END_LINK\u3002",q2.TOO_MANY_STREAMS_PER_USER="\u5df2\u505c\u6b62\u64ad\u653e\uff0c\u56e0\u4e3a\u76ee\u524d\u5728\u64ad\u653e\u7684\u89c6\u9891\u4e2d\u6709\u592a\u591a\u5c5e\u4e8e\u540c\u4e00\u5e10\u53f7\u3002",
q2.TOO_MANY_STREAMS_PER_ENTITLEMENT="\u5df2\u505c\u6b62\u64ad\u653e\uff0c\u56e0\u4e3a\u6b64\u89c6\u9891\u5df2\u7ecf\u5728\u592a\u591a\u8bbe\u5907\u4e0a\u64ad\u653e\u8fc7\u3002",q2.UNSUPPORTED_DEVICE="\u4e0d\u652f\u6301\u5728\u6b64\u8bbe\u5907\u4e0a\u64ad\u653e\u3002",q2.VIDEO_FORBIDDEN="\u60a8\u8981\u6c42\u8bbf\u95ee\u6b64\u89c6\u9891\u7684\u8bf7\u6c42\u88ab\u62d2\u3002",q2.VIDEO_NOT_FOUND="\u627e\u4e0d\u5230\u6b64\u89c6\u9891\u3002",q2);
hia={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"};var r2={},s2=(r2.BUFFERING="buffering-mode",r2.CUED="cued-mode",r2.ENDED="ended-mode",r2.PAUSED="paused-mode",r2.PLAYING="playing-mode",r2.SEEKING="seeking-mode",r2.UNSTARTED="unstarted-mode",r2);g.LC.prototype.ab=function(){return g.V(this,8)&&!g.V(this,512)&&!g.V(this,64)&&!g.V(this,2)};
g.LC.prototype.isCued=function(){return g.V(this,64)&&!g.V(this,8)&&!g.V(this,4)};
g.LC.prototype.isError=function(){return g.V(this,128)};
g.LC.prototype.toString=function(){return"PSt."+this.o.toString(16)};WC.prototype.ea=function(){return this.B};
WC.prototype.dispose=function(){this.B=!0;g.YC(this);this.u=null};$C.prototype.then=function(a,b){return this.o.then(a,b)};
$C.prototype.resolve=function(a){this.w(a)};
$C.prototype.reject=function(a){this.u(a)};g.h=eD.prototype;g.h.fd=function(a){return"content-type"===a?this.yh.get("type"):""};
g.h.abort=function(){};
g.h.Dj=function(){return!0};
g.h.ol=function(){return this.range.length};
g.h.No=function(){return this.loaded};
g.h.eo=function(){return!!this.o.getLength()};
g.h.Se=function(){return!!this.o.getLength()};
g.h.Oo=function(){var a=this.o;this.o=new nw;return a};
g.h.Qs=function(){return this.o};
g.h.Rp=function(){return!0};
g.h.lu=function(){return!!this.error};
g.h.Uj=function(){return this.error};var wia=0;g.h=rD.prototype;g.h.start=function(a){var b={method:this.method,credentials:this.credentials};this.headers&&(b.headers=new Headers(this.headers));this.body&&(b.body=this.body);this.A&&(b.signal=this.A.signal);a=new Request(a,b);fetch(a).then(this.YN.bind(this),this.onError.bind(this)).then(void 0,g.M)};
g.h.YN=function(a){this.status=a.status;a.ok?(this.w=a.body.getReader(),this.ea()?this.w.cancel("Cancelling"):(this.F=a.headers,this.U(),sD(this))):uD(this)};
g.h.uK=function(a){if(!this.ea()){var b;window.performance&&window.performance.now&&(b=window.performance.now());var c=Date.now(),d=a.value?a.value:void 0;this.B&&(this.o.append(this.B),this.B=void 0);a.done?(this.w=void 0,uD(this)):(this.u+=d.length,tD(this)?this.o.append(d):this.B=d,this.R(c,this.u,b),sD(this))}};
g.h.onError=function(a){this.errorMessage=String(a);this.C=!0;uD(this)};
g.h.fd=function(a){return this.F?this.F.get(a):null};
g.h.Dj=function(){return!!this.F};
g.h.No=function(){return this.u};
g.h.ol=function(){return+this.fd("content-length")};
g.h.eo=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.h.Se=function(){if(this.I)return!!this.o.getLength();var a=this.policy.u;if(a&&this.G+a>Date.now())return!1;a=this.ol()||0;a=Math.max(16384,.125*a);this.P||(a=Math.max(a,16384));this.policy.nd&&wx(this)&&(a=1);return this.o.getLength()>=a};
g.h.Oo=function(){this.Se();this.G=Date.now();this.P=!0;var a=this.o;this.o=new nw;return a};
g.h.Qs=function(){this.Se();return this.o};
g.h.ea=function(){return this.aborted};
g.h.abort=function(){this.w&&this.w.cancel("Cancelling");this.A&&this.A.abort();this.aborted=!0};
g.h.Rp=function(){return!0};
g.h.lu=function(){return this.C};
g.h.Uj=function(){return this.errorMessage};g.h=vD.prototype;g.h.Dj=function(){return 2<=this.o.readyState};
g.h.fd=function(a){try{return this.o.getResponseHeader(a)}catch(b){return g.M(b),""}};
g.h.ol=function(){return+this.fd("content-length")};
g.h.No=function(){return this.u};
g.h.eo=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
g.h.Se=function(){return this.w&&!!this.response&&!!this.response.byteLength};
g.h.Oo=function(){this.Se();var a=this.response;this.response=void 0;return new nw([new Uint8Array(a)])};
g.h.Qs=function(){this.Se();return new nw([new Uint8Array(this.response)])};
g.h.abort=function(){this.ea=!0;this.o.abort()};
g.h.Rp=function(){return!1};
g.h.lu=function(){return!1};
g.h.Uj=function(){return""};g.h=wD.prototype;g.h.jc=function(){return this.A?this.A.jc():""};
g.h.start=function(a){ED(this,2);this.R=++wD.o;this.w?(this.L=gga(this.info,this.w.u,this.w.length),this.A=g.rx(this.info,this.u,this.Z,this.L)):(this.L=this.info.range,this.A=g.rx(this.info,this.u,this.Z));var b=!1;if(this.u.Ia&&2>this.info.u.u&&this.I){var c=this.A.get("aitags");if(c&&(qx(this.info)||this.info.ee())&&this.ba&&"auto"==jy()&&ny()){var d=ed(c).split(","),e=[];(0,g.y)(this.ba,function(f){g.cb(d,f)&&e.push(f)});
0<e.length&&(this.A.set("altitags",dd(e.join(","))),b=!0)}}b||(this.I=!1);this.A.set("rn",this.R.toString());0<=a&&this.A.set("rbuf",(1E3*a).toFixed().toString());this.ha&&this.A.set("smb","1");a=this.A.jc();try{this.o=zia(this,a)}catch(f){g.No(f);this.B="net.ssl";FD(this);return}0<this.u.I&&this.V.start()};
g.h.HN=function(){this.F=0;this.info.u.B=(0,g.N)();var a=zD(this);a.A=(0,g.N)();a.started+=1;a=this.timing;a.o=(0,g.G)();a.A=a.o;a.u=0;a.aa=a.o;a.L=0;a.B&&(a.B=[]);a.Z=!1;a.ha=!1;a.w=0;a.snapshot=By(a.schedule);a.C=Infinity;a.G=Infinity;oD(a);qD(a,a.o);a.R=(a.I-a.o)/1E3;a.F=NaN;a.ba=void 0};
g.h.RH=function(a,b,c){if(!this.ea()&&this.o){this.C=this.o.status;this.u.ga||BD(this,!1);var d=this.timing;a=a>d.o&&4E12>a?a:(0,g.G)();mD(d,a,b);50>a-d.A&&nD(d)&&3!==gD(d)||kD(d,a,b,c);b=this.timing;b.u>b.oa&&hD(b,b.u)&&4>this.state?ED(this,4):JD(this)&&LD(this)&&ED(this,Math.max(3,this.state))}};
g.h.GN=function(){if(!this.ea()&&this.o){if(!this.U&&this.o.Dj()&&this.o.fd("X-Walltime-Ms")){var a=parseInt(this.o.fd("X-Walltime-Ms"),10);this.U=((0,g.G)()-a)/1E3}this.o.Dj()&&this.o.fd("X-Restrict-Formats-Hint")&&this.u.vv&&!ny()&&g.Ks("yt-player-headers-readable",!0,2592E3);if(a=parseInt(this.o.fd("X-Head-Seqnum"),10))this.aa=a}};
g.h.QH=function(){var a=this.o;!this.ea()&&a&&(this.V.stop(),this.C=a.status,a=yia(this,a),7==a?FD(this):ED(this,a))};
g.h.hO=function(){if(!this.ea()){var a=(0,g.G)(),b=!1;nD(this.timing)?(a=this.timing.I,qD(this.timing),this.timing.I-a>=.8*this.u.I?(this.F++,b=5<=this.F):this.F=0):(b=this.timing,b.Ff&&pD(b,(0,g.G)()),a-=b.P,this.u.qd&&0<a&&(this.F+=1),b=a>1E3*this.u.Ic);this.F&&this.G&&this.G(this);b?ID(this,!1):this.V.start()}};
g.h.ea=function(){return-1==this.state};
g.h.dispose=function(){this.info.ee()&&6!=this.state&&(this.info.o[0].o.B=!1);ED(this,-1);this.G=null;this.V.dispose();this.u.qc||HD(this)};
wD.DEBUG=!1;wD.o=0;var DD=-1;PD.prototype.skip=function(a){this.offset+=a};g.r(SD,g.O);SD.prototype.getDuration=function(){return this.w.index.hh()};kE.prototype.getDuration=function(){return this.o.index.hh()};LE.prototype.setPlaybackRate=function(a){this.w=Math.max(1,a)};
LE.prototype.getPlaybackRate=function(){return this.w};g.r(QE,g.O);QE.prototype.seek=function(a){a!=this.A&&(this.C=0);this.A=a;var b=this.u.u,c=this.o.u,d=this.o.F,e=SE(this.u,a,this.u.F);d=SE(this.o,this.I.ha?a:e,d);a=Math.max(a,e,d);this.w=!0;this.B.u&&(RE(this.u,b),RE(this.o,c));return a};
var Fia=2/24;WE.prototype.va=function(){this.md("gv")};
WE.prototype.md=function(a,b){this.B[a]=b?window.performance.timing.navigationStart+b:(0,g.N)()};g.r(XE,g.O);XE.prototype.G=function(a,b){var c=this.C.o.index.gb()<=b,d=this.F.u&&this.B.Pa;this.o={ud:a,Ka:b};this.B.Pa&&this.A&&this.u&&(this.A=!1,"continue"!=a.event&&"stop"!=a.event||YE(this,this.u));this.u&&this.u.Ka==b&&(this.u=null);if(c||d)this.B.yb&&(a.startSecs+=isNaN(this.w)?0:this.w),c=this.F,c.L.push(a),c.S("cuepointsadded")};hF.prototype.send=function(){g.Lq(this.o,{format:"RAW",responseType:"arraybuffer",timeout:1E4,Fc:this.u,Td:this.u,context:this});this.w=(0,g.N)()};
hF.prototype.u=function(a){var b={rc:a.status,lb:a.response?a.response.byteLength:0,rt:(((0,g.N)()-this.w)/1E3).toFixed(3),shost:g.rd(this.o),trigger:this.C};204==a.status||a.response?this.A&&this.A(Ws(b)):this.B(new Vs("pathprobe.net",!1,b))};g.r(iF,g.O);g.r(sF,g.A);sF.prototype.reset=function(){this.started=!1;this.B.stop();this.o.o=[];this.w=[];this.u()};
sF.prototype.u=function(){this.C=!0;if(!this.F){for(var a=3;this.C&&a;)this.C=!1,this.F=!0,Zia(this),this.F=!1,a--;this.G().ab()&&(a=qF(this.o,this.A),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.A)/this.R(),this.B.start(a)))}};
sF.prototype.X=function(){this.w=[];this.o.o=[];g.A.prototype.X.call(this)};g.r(CF,g.O);g.h=CF.prototype;
g.h.initialize=function(a,b,c){a=a||0;this.S("videoformatchange",Oia(this.F));if(this.B.u){if(this.o.lo){b=xx(this.o);for(var d in this.B.o)this.B.o[d].index.A=b}dja(this)}this.G&&jF(this.G,this.u.o);this.o.ba&&vx()&&this.Dc("streaming","ac."+!!window.AbortController,!0);d=isNaN(this.C)?0:this.C;this.C=this.B.u?d:a;c?(this.o.Vc?(this.jb=c,EF(this,c)):EF(this,!1),g.An(this.Ca)):(a=0==this.C,$F(this,this.u,this.u.o,a),$F(this,this.A,this.A.o,a),Of(this.seek(this.C),function(){}),this.da.va());
(this.B.Id||this.B.Ag)&&this.Dc("minMaxSq","minSq."+this.B.Id+";maxSq"+this.B.Ag)};
g.h.resume=function(){if(this.aa||this.ha)this.ya=this.ha=this.aa=!1,this.Gf()};
g.h.setAudioTrack=function(a){if(!this.ea()){var b=this.F;b.w=b.C.o[a.id];b.P=b.w;this.S("audioformatchange",new ZC(b.P,b.B,"m"));this.S("reattachrequired")}};
g.h.setPlaybackRate=function(a){a!=this.P.getPlaybackRate()&&this.P.setPlaybackRate(a)};
g.h.CM=function(a){if(3!=a.state||!this.o.Wb||!(!this.w||this.aa||AE(a.info.o[0].o.info.video?this.u:this.A,this.C)>this.o.Wb)){var b=this.o.qd;if(!(!(b&&2<=a.state)||5<=a.state||a.F<b||lx(a.info.u,this.o,this.ga))){b=this.ga;var c=bx(kx(a.info.u));b=Mw(b,c);b.o||b.u||b.started||SF(this,a,!0)}if(!this.ea()&&3<=a.state){b=this.da;var d=a.info.o[0].o;c=!b.A&&d.info.video;d=!b.o&&d.info.audio;5==a.state?c?b.md("vrr"):d&&b.md("arr"):6==a.state?c?(b.A=a.jc(),dq(4)):d&&(b.o=a.jc()):4==a.state&&c&&dq(4);
5<=a.state&&(this.o.oa&&(b=fD(a.timing),c=a.timing,this.Dc("rqs",Ws({rn:a.R.toString(),rt:b.rt,pt:b.pt,stall:b.stall,elt:b.elbowTime,elb:b.elbowBytes,strm:""+ +(a.o?a.o.Rp():KD(a)),d:c.B?c.B.join(""):""}))),a.da&&this.Dc("sbwe3","1",!0));if(5==a.state)a.start(Math.max(0,a.info.o[0].G-this.C));else if(5<=a.state&&5==a.info.o[0].type)6==a.state&&(b=(a.info.o[0].o.info.video?this.u:this.A).A[0]||null)&&b.F&&ID(b,!0),a.dispose();else{if(this.o.Ia&&a.I&&4<=a.state&&5!=a.state)if(b=a.o?a.o.fd("X-Response-Itag"):
null){b=Qia(this.F,b);c=a.info.range.length-b.Sn();b.B=!0;a.info.o[0].o.B=!1;d=b.wj(c)[0];a.info=d;if(a.w){c=a.w;d=d.o;c.w=d;var e=d[0].range,f=vw(c.o[0].o);vw(g.Ya(c.o).o);for(var k=0;k<c.o.length;k++){c.o[k].info=d[k];var l=d[k].range;c.o[k].o=new nw([new Uint8Array(f.buffer,l.start-e.start,l.length)])}}a.I=!1;c=this.u;c.o!=b&&(c.o=b);c=this.u;c.u&&(c.u.o=b);this.S("constraint",b.info.va().quality);(c=a.o?a.o.fd("X-Segment-Lmt"):null)&&b instanceof Lx&&(isNaN(b.lastModified)||b.lastModified==c||
DE(this.u,a))}else a.I=!1;if(6==a.state)RF(this,a);else if(!this.o.ba||!LD(a)||5<=a.state)7==a.state&&(b=a.info.o[0].o,GD(a)?(c=(b.info.video&&1<b.u.u||410==a.C||500==a.C||503==a.C)&&!eF(this.F),d=yD(a),e=b.info.video?this.u:this.A,c&&(d.stun="1"),IF(this,!1,a.B,d),this.ea()||(c&&dF(this.F,b),this.o.rd&&1==a.info.o.length&&0<a.info.o[0].w&&b!=e.o&&this.ha?this.S("reattachrequired"):(DE(e,a),this.Gf()))):(IF(this,!1,a.B,yD(a)),a.info.ee()?(b.C=a.B,this.Gf()):IF(this,!0,"net.retryexhausted",{err:a.B,
rn:a.R.toString()})));else if(!RF(this,a))return;this.Gf();a:if(this.o.Ma&&5<=a.state&&GD(a)&&lx(a.info.u,this.o,this.ga)){b=this.ga;c=bx(a.info.u.o);b=Mw(b,c);c=b.started+b.w;if(this.o.pd)c+=b.o*this.o.pd;else if(b.o)break a;b.A+this.o.Ma*Math.pow(1.6,c)>(0,g.N)()||SF(this,a,!1)}}}}};
g.h.Gf=function(){JF(this);if(this.w&&au(this.w)&&!this.w.Sd()){var a=mE(this.u);a=this.o.bn&&a&&a.C;this.B.isLive&&!a?isNaN(this.L)?(this.L=this.C+3600,bu(this.w,this.L)):this.L<=this.C+1800&&(this.L=Math.max(this.L+1800,this.C+3600),bu(this.w,this.L)):this.w.isView()||(a=Math.max(this.A.getDuration(),this.u.getDuration()),(!isFinite(this.L)||this.L!=a)&&0<a&&(bu(this.w,a),this.L=a))}if(!this.ea())if(cy(this.B)&&3==this.B.C)IF(this,!0,"manifest.net.retryexhausted",{rc:this.B.R.toString()});else if(!this.B.w||
!IE(this.u)&&!IE(this.A)||(this.u.B||this.A.B)&&this.o.L?a=!1:(GF(this),this.S("seekplayerrequired",Infinity),a=!0),!a&&(JF(this),oE(this.u),!this.ea()&&(oE(this.A),!this.ea()))){this.B.u&&(JE(this.u),JE(this.A),VE(this.I),(a=qE(this.u))&&a.u&&(a=a.u.A&&!this.o.fg,this.Dc(a==this.o.A.nd?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.o.A.nd?"1":"0")+";dfs."+(this.o.fg?"1":"0"),!0)));if(this.w)WF(this);else if(this.o.R){if(a=qE(this.u)){var b=this.u;b.w.u.shift();rE(b,a)}if(b=qE(this.A)){var c=
this.A;c.w.u.shift();rE(c,b)}wE(this.u)&&wE(this.A)||(a||b)&&g.An(this.ba)}DF(this);$F(this,this.u,this.u.o,!1);$F(this,this.A,this.A.o,!1);a=this.A.o.C;b=this.u.o.C;if(a||b){c="net.retryexhausted";if("fmt.unparseable"==a||"fmt.unparseable"==b)c="fmt.unparseable";IF(this,!0,c,{metadata:"1",video:this.u.o.C||"",audio:this.A.o.C||""})}else OF(this,this.u,this.A),OF(this,this.A,this.u),this.o.wo&&this.ma&&!this.aa&&Dy(this.R)&&(a=this.ma,b=(0,g.x)(this.S,this,"error"),(new hF(a,"cms",null,b)).send(),
this.ma=""),this.G&&(a=this.G,a.B?(b=a.G+a.o.Uf,a.A||(b=Math.min(b,a.C+a.o.qb)),a=Math.max(0,1E3*b-(0,g.G)())):a=NaN,isNaN(a)||g.An(this.qb,a)),g.An(this.Ma)}};
g.h.PH=function(a){this.o.ua&&this.w&&this.Dc("sbu",a.Xa({a:""+ +(a==this.w.o)}));this.Gf()};
g.h.cK=function(a){if(this.w){a=mE(a==this.w.o?this.A:this.u);var b=void 0;a&&(b=jw(a));IF(this,!0,"fmt.unplayable",b)}};
g.h.tL=function(a){IF(this,!0,"fmt.unparseable",a)};
g.h.IJ=function(a){this.S("needkeyinfo",a)};
g.h.uL=function(a){this.A.o.w=a;this.w&&TF(this,this.w.o,a)};
g.h.sL=function(a){IF(this,!1,"qoe.avsync",a)};
g.h.wL=function(a,b){this.B.u&&ZF(this,b,a==this.u)};
g.h.xL=function(a,b){if(this.B.u){var c=this.B,d=b.Ka,e=a==this.u,f;for(f in c.o){var k=qt(c.o[f].info.mimeType)||c.o[f].info.isVideo();if(e==k){k=c.o[f].index;var l=zx(k,d);0<=l&&k.segments.splice(l,1)}}}};
g.h.yL=function(a,b){this.B.u&&ZF(this,b,a==this.u)};
g.h.vL=function(){this.S("localmediacomplete",this.o.w)};
g.h.seek=function(a){if(this.ea())return Hf();if(this.u.G||this.A.G)return this.o.MC?Gf():Hf("seeking to head");JF(this);this.Aa=(0,g.N)();DF(this,a);this.w&&this.w.o&&this.w.u&&(this.w.o.isLocked()||this.w.u.isLocked())&&this.S("reattachrequired");this.C=this.I.seek(a);a=this.V;a.u=null;a.A=!1;g.An(this.ba);return Gf(this.C)};
g.h.getCurrentTime=function(){return this.C};
g.h.X=function(){this.V.unsubscribe("ctmp",this.Dc,this);HF(this);BE(this.A);BE(this.u);g.O.prototype.X.call(this)};
g.h.Xa=function(){var a=mE(this.A),b=mE(this.u);a={lct:this.C.toFixed(3),lsk:this.I.w,lmf:fF(this.F),lbw:zy(this.R).toFixed(3),lhd:wy(this.R).toFixed(3),lst:(1E9*(this.R.o.o()||0)).toFixed(3),laa:a?kw(a):"",lva:b?kw(b):"",lar:this.A.u?kw(this.A.u):"",lvr:this.u.u?kw(this.u.u):""};this.w&&!du(this.w)&&this.w.o&&this.w.u&&(a.lab=Qt(this.w.o.wd()),a.lvb=Qt(this.w.u.wd()));return a};
g.h.Dc=function(a,b,c){this.S("ctmp",a,b,void 0===c?!1:c)};
g.h.Xv=function(a,b){var c=a/b;isNaN(this.Z)&&(this.Z=c-Math.min(c,this.o.Jc),this.V.w=this.Z,this.S("timestamp",this.Z));return(c-this.Z)*b};
var PF=2/24;g.r(bG,g.O);g.r(cG,bG);cG.prototype.C=function(a,b){if(a&&b){var c=1*Fd(a,"cpi")+1;isNaN(c)||0>=c||c<this.w?(this.A.stop(),this.u.stop(),this.w=-1,this.o={}):(c>this.w&&(this.w=c,g.Pb(this.o)||(this.o={},this.A.stop(),this.u.stop())),this.o[b]=a,g.An(this.u))}};
cG.prototype.B=function(){for(var a in this.o)this.S("rotated_need_key_info_ready",new ND(pja(this.o[a],this.w,a),"fairplay",!0));this.o={}};var t2={},bsa=(t2.DRM_TRACK_TYPE_AUDIO="AUDIO",t2.DRM_TRACK_TYPE_SD="SD",t2.DRM_TRACK_TYPE_HD="HD",t2.DRM_TRACK_TYPE_UHD1="UHD1",t2);g.r(gG,g.A);gG.prototype.B=function(a){this.ea()||(0!=a.status&&a.response?(FA("drm_net_r",void 0,void 0),a=new Uint8Array(a.response),(a=fG(a))?this.w(a):this.o(this,"drm.net","t.p")):this.A(a))};
gG.prototype.A=function(a){this.ea()||this.o(this,a.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+a.status)};
gG.prototype.F=function(a){if(!this.ea()){FA("drm_net_r",void 0,void 0);var b="LICENSE_STATUS_OK"==a.status?0:9999,c=null;if(a.license)try{c=g.hg(a.license)}catch(n){}if(0!=b||c){c=new eG(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())if(k=k.value,k.trackType&&k.keyId){var l=bsa[k.trackType];if(l){"HD"==l&&a.isHd720&&(l="HD720");b[l]||(d.push(l),b[l]=!0);var m=null;try{m=g.hg(k.keyId)}catch(n){}m&&
(e[g.eg(m,4)]=l)}}c.o=d;c.u=e}a.nextFairplayKeyId&&(c.nextFairplayKeyId=a.nextFairplayKeyId);a=c}else a=null;a?this.w(a):this.o(this,"drm.net","t.p;p.i")}};
gG.prototype.C=function(a){this.ea()||(a=a.error,this.o(this,"drm.net.badstatus","t.r;p.i;c."+a.code+";s."+a.status))};g.r(hG,g.A);g.h=hG.prototype;g.h.WH=function(a){if(this.C){var b=a.messageType||"license-request";this.C.call(this.w,new Uint8Array(a.message),b)}};
g.h.XH=function(){this.I&&this.I.call(this.w,this.o.keyStatuses)};
g.h.dA=function(a,b){g.M(b);if(this.A){var c=a;b instanceof DOMException&&(c+=";n."+b.name+";m."+b.message);this.A.call(this.w,c)}};
g.h.zK=function(){this.ea()||il("xboxone")&&this.A&&this.A.call(this.w,"closed")};
g.h.LA=function(a){this.C&&this.C.call(this.w,a.message,"license-request")};
g.h.KA=function(a){if(this.A){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode&&a.errorCode.code,a=a.systemCode;this.A.call(this.w,"t.prefixedKeyError;c."+b+";sc."+a)}};
g.h.JA=function(){this.G&&this.G.call(this.w)};
g.h.update=function(a){if(this.o)return this.o.update(a).then(null,Mo((0,g.x)(this.dA,this,"t.update")));this.u?this.u.update(a):this.F.addKey?this.F.addKey(this.L.o,a,this.P,this.sessionId):this.F.webkitAddKey(this.L.o,a,this.P,this.sessionId);return sr()};
g.h.X=function(){this.o&&this.o.close();this.F=null;g.A.prototype.X.call(this)};g.r(jG,g.A);g.h=jG.prototype;g.h.createSession=function(a,b){var c=a.initData;if(this.o.keySystemAccess){b&&b("createsession");var d=this.C.createSession();"com.youtube.fairplay"==this.o.o&&(c=lG(c,this.o.Oe));b&&b("genreq");c=d.generateRequest(a.contentType,c);d=new hG(null,null,null,d,null);c.then(function(){b&&b("genreqsuccess")},Mo((0,g.x)(d.dA,d,"t.generateRequest")));
return d}if(Az(this.o))return uja(this,c);if(Dz(this.o))return tja(this,c);this.u.generateKeyRequest?this.u.generateKeyRequest(this.o.o,c):this.u.webkitGenerateKeyRequest(this.o.o,c);return this.A=new hG(this.u,this.o,c,null,null)};
g.h.aI=function(a){var b=mG(this,a);b&&b.LA(a)};
g.h.ZH=function(a){var b=mG(this,a);b&&b.KA(a)};
g.h.YH=function(a){var b=mG(this,a);b&&b.JA(a)};
g.h.X=function(){g.A.prototype.X.call(this);delete this.u};var u2={},Bja=(u2.widevine="DRM_SYSTEM_WIDEVINE",u2.fairplay="DRM_SYSTEM_FAIRPLAY",u2.playready="DRM_SYSTEM_PLAYREADY",u2);g.r(oG,g.O);g.h=oG.prototype;
g.h.UH=function(a,b){if(!this.ea()){nG(this,"onkmtyp"+b);if(!g.P(this.w.experiments,"html5_provisioning_killswitch"))switch(b){case "license-request":case "license-renewal":case "license-release":break;case "individualization-request":Aja(this,a);return;default:this.S("ctmp","message_type","t."+b+";l."+a.byteLength)}this.P||(FA("drm_gk_f",void 0,void 0),this.P=!0,this.S("newsession",this));if(Bz(this.u)){var c=qG(a);if(!c)return;a=c}Ez(this.u)&&!this.T.useInnertubeDrmService()&&(a=Dv(g.eg(a)));c=
new gG(a,++this.U,(0,g.x)(this.fL,this),(0,g.x)(this.eL,this));g.C(this,c);sG(this,c)}};
g.h.SH=function(){this.ea()||(nG(this,"onkyadd"),this.F||(this.S("sessionready"),this.F=!0))};
g.h.VH=function(a){var b=this;this.ea()||0>=a.size||(a.forEach(function(c,d){var e=Bz(b.u)?d:c,f=new Uint8Array(Bz(b.u)?c:d);Bz(b.u)&&vG(f);var k=g.eg(f,4);vG(f);f=g.eg(f,4);b.o[k]?b.o[k].status=e:b.o[f]?b.o[f].status=e:b.o[k]={type:"",status:e}}),nG(this,"onkeystatuschange"),this.S("keystatuseschange",this))};
g.h.TH=function(a){this.ea()||pG(this,"drm.keyerror",!0,a)};
g.h.fL=function(a){var b=this;if(!this.ea())if(nG(this,"onlcsrsp"),0!=a.statusCode)pG(this,"drm.auth",!0,"t.f;c."+a.statusCode,a.errorMessage||void 0);else{FA("drm_kr_s",void 0,void 0);if(g.P(this.w.experiments,"outertube_streaming_data_always_use_staging_license_service")&&a.heartbeatParams&&a.heartbeatParams.url){var c=this.u.u.match(/(.*)youtube.com/g);c&&(a.heartbeatParams.url=c[0]+a.heartbeatParams.url)}a.heartbeatParams&&this.S("newlicense",a.heartbeatParams);a.o&&(this.C=a.o,this.L=pj(this.C,
function(d){return d.includes("HDR")}));
a.u&&(this.o=Eb(a.u,function(d){return{type:d,status:"unknown"}}));
Dz(this.u)&&(a.message=g.hg(Ev(a.message)));this.A&&(nG(this,"updtks"),this.A.update(a.message).then(function(){FA("drm_kr_f",void 0,void 0);if(!rG(b))if(nG(b,"ksApiUnsup"),Cz(b.u)){var d=tG(b.C);480<g.dt[d]&&b.S("hdentitled",b)}else b.S("keystatuseschange",b)}));
this.F&&(this.R=(0,g.N)());Ez(this.u)&&this.S("fairplay_next_need_key_info",this.G,a.nextFairplayKeyId)}};
g.h.eL=function(a,b,c){if(!this.ea()){var d=!1;if(3<=a.u.u||this.V&&36E4<(0,g.N)()-this.R)d=!0,b="drm.net.retryexhausted";nG(this,"onlcsrqerr"+b+c);pG(this,b,d,c);(this.V&&this.F?0:!d&&this.U==a.number)&&Cja(this,a)}};
g.h.X=function(){g.O.prototype.X.call(this)};
g.h.Xa=function(){var a={requestedKeyIds:this.ha,cryptoPeriodIndex:this.cryptoPeriodIndex};this.A&&(a.keyStatuses=this.o);return a};
g.h.ge=function(){var a=this.C.join();if(rG(this)){var b=[],c;for(c in this.o)"usable"!=this.o[c].status&&b.push(this.o[c].type);a+="/UKS:"+b}return a+="/"+this.cryptoPeriodIndex};g.r(zG,g.A);zG.prototype.C=function(a){if(!this.ea()){var b=new Uint8Array(a.initData);a=new ND(b,a.initDataType);var c=dG(b).replace("skd://","https://"),d={},e=this.u.createSession(a,function(){return null});
e&&(g.C(this,e),this.A.push(e),iG(e,function(f){wG(f,e.o,c,d,"fairplay")},function(){},function(){},function(){},this))}};
zG.prototype.X=function(){this.A=[];this.o&&this.o.parentNode&&this.o.parentNode.removeChild(this.o);g.A.prototype.X.call(this)};AG.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
AG.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
AG.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
AG.prototype.findIndex=function(a){return g.ab(this.keys,function(b){return g.vb(a,b)})};g.r(BG,bG);BG.prototype.B=function(a){var b=(0,g.G)(),c;if(!(c=this.A)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c))for(var d=g.q(this.w.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.o,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.o.push({time:b+c,info:a});g.An(this.u,c)};g.r(EG,g.O);g.h=EG.prototype;g.h.bI=function(a){DG(this,"onecpt");HG(this,new Uint8Array(a.initData),a.initDataType)};
g.h.ML=function(a){DG(this,"onndky");HG(this,a.initData,a.contentType)};
g.h.rL=function(){var a=this;if(!this.ea())if(!g.P(this.u.experiments,"html5_drm_set_server_cert")||g.cz(this.u)&&!g.ll())KG(this);else{var b=sja(this.L);b?b.then(Mo(function(c){UB(a.T)&&a.S("ctmp","ssc",c)}),Mo(function(c){a.S("ctmp","ssce","n."+c.name+";m."+c.message)})).then(Mo(function(){return KG(a)})):KG(this)}};
g.h.fK=function(a){if(!this.ea()){g.M(a);var b="t.a";a instanceof DOMException&&(b+=";n."+a.name+";m."+a.message);this.S("licenseerror","drm.unavailable",!0,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
g.h.Tv=function(a){this.A.push(a);GG(this)};
g.h.FA=function(a){this.ea()||(DG(this,"onnelcswhb"),a&&!this.ga&&(this.ga=a,this.S("heartbeatparams",a)))};
g.h.HA=function(){this.ea()||(DG(this,"newlcssn"),this.A.shift(),this.R=!1,GG(this))};
g.h.XA=function(){if(Az(this.o)&&(DG(this,"onsnrdy"),this.ma--,0==this.ma)){var a=this.B;a.u.msSetMediaKeys(a.w)}};
g.h.cz=function(a){this.ea()||(DG(this,"onksch"),JG(this,uG(a,this.ba)),this.S("keystatuseschange",a))};
g.h.vA=function(){this.ea()||this.Z||!Cz(this.o)||(DG(this,"onhdet"),this.U=VJ,this.S("hdproberequired"),this.S("qualitychange"))};
g.h.hA=function(a,b){this.ea()||this.S("ctmp",a,b)};
g.h.rA=function(a,b){this.ea()||this.S("fairplay_next_need_key_info",a,b)};
g.h.dz=function(a,b,c,d){this.ea()||this.S("licenseerror",a,b,c,d)};
g.h.X=function(){this.o.keySystemAccess&&this.P.setMediaKeys(null);this.P=null;this.A=[];for(var a=g.q(this.w.values),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.hA,this),b.unsubscribe("hdentitled",this.vA,this),b.unsubscribe("keystatuseschange",this.cz,this),b.unsubscribe("licenseerror",this.dz,this),b.unsubscribe("newlicense",this.FA,this),b.unsubscribe("newsession",this.HA,this),b.unsubscribe("sessionready",this.XA,this),b.unsubscribe("fairplay_next_need_key_info",this.rA,
this),b.dispose();a=this.w;a.keys=[];a.values=[];this.ha&&(this.ha.dispose(),this.ha=null);g.O.prototype.X.call(this)};
g.h.Xa=function(){for(var a={systemInfo:this.o.Xa(),sessions:[]},b=g.q(this.w.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Xa());return a};
g.h.ge=function(){return 0>=this.w.values.length?"no session":this.w.values[0].ge()+(this.F?"/KR":"")};g.r(MG,g.O);MG.prototype.setPlaybackRate=function(a){this.G=a};WG.prototype.isEmpty=function(){return this.endTime===this.startTime};XG.prototype.fa=function(a){return g.P(this.o.experiments,a)};
var $G={other:1,none:2,wifi:3,cellular:7};g.r(fH,g.A);fH.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(csa)?this.U++:this.V++)};
fH.prototype.C=function(){if(!(this.I||0>this.w)){hH(this);var a=g.ZG(this.u)-this.w,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.o.u;this.o.isError()?b=c&&"auth"==c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.V(this.o,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.V(this.o,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.V(this.o,16)||g.V(this.o,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.V(this.o,1)&&g.V(this.o,4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.V(this.o,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":
g.V(this.o,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.V(this.o,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");var d=EB(this.u.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"==d?c="LIVE_STREAM_MODE_LIVE":"dvr"==d&&(c="LIVE_STREAM_MODE_DVR");d=iH(this.u);var e=0>this.A?a:this.A-this.w;a=this.u.o.oa+36E5<(0,g.N)();b={started:0<=this.A,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.F,rebufferTimeSecs:this.G,seekCount:this.L,networkErrorCount:this.U,nonNetworkErrorCount:this.V,playerCanaryType:d,isAd:this.u.videoData.isAd(),
liveMode:c,hasDrm:!!g.BB(this.u.videoData),isGapless:this.u.videoData.Cf};!a&&this.u.fa("html5_health_to_gel")&&g.Yq("html5PlayerHealthEvent",b);this.u.fa("html5_health_to_qoe")&&(b.muted=a,this.aa(Ws(b)));this.I=!0;this.dispose()}};
fH.prototype.X=function(){this.I||this.C();g.A.prototype.X.call(this)};
var csa=/\bnet\b/;g.zJ=Ab(function(){var a="";try{var b=g.re("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.r(kH,g.A);g.h=kH.prototype;g.h.yF=function(){var a=g.ZG(this.o);mH(this,a)};
g.h.nk=function(a){if(!this.ea()&&(a=0<=a?a:g.ZG(this.o),-1<["PL","B","S"].indexOf(this.w)&&(!g.Pb(this.u)||a>=this.C+30)&&(g.jH(this,a,"vps",[this.w]),this.C=a),!g.Pb(this.u)))if(7E3==this.V&&g.ar(Error("Sent over 7000 pings")),7E3<=this.V)this.u={};else{oH(this,a);var b=a,c=this.o.C(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.ua,k=e&&!this.Aa;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount","df."+d+";tf."+c.totalVideoFrames);else(0<f||k)&&g.jH(this,b,"df",[f]);
this.ua=d;this.Aa=e;!g.P(this.o.o.experiments,"disable_webgl_reporting")&&0<this.F&&(g.jH(this,a,"glf",[this.F]),this.F=0);a={event:"streamingstats"};this.o.videoData.Ba&&(a.fmt=jt(this.o.videoData.Ba),(b=this.o.videoData.Ub)&&jt(b)!=a.fmt&&(a.afmt=jt(b)));a.cpn=this.o.videoData.clientPlaybackNonce;a.ei=this.o.videoData.eventId;a.el=PB(this.o.videoData);a.docid=this.o.videoData.videoId;a.content_v=this.o.videoData.ki();a.ns=this.o.o.V;a.fexp=this.o.o.experiments.experimentIds.toString();a.cl="311052436";
this.o.videoData.adFormat&&(a.adformat=this.o.videoData.adFormat);(b=EB(this.o.videoData))&&(a.live=b);AB(this.o.videoData)&&(a.drm=1);yq()&&this.o.videoData.Sh&&(a.ctt=this.o.videoData.Sh,a.cttype=this.o.videoData.Th,this.o.videoData.mdxEnvironment&&(a.mdx_environment=this.o.videoData.mdxEnvironment));a.seq=this.V++;g.Vb(a,this.o.o.deviceParams);b=g.Bd("//"+this.o.o.Mk+"/api/stats/qoe",a);a=c="";for(var l in this.u)null==this.u[l]?g.ar(new Zq("Stats report key has invalid value",l)):(d="&"+l+"="+
this.u[l].join(","),100<d.length?a+=d:c+=d);l=b+c;a=a.replace(/ /g,"%20");b=this.o.videoData.Qd();c=this.o.videoData.visitorData;d=b&&yq();e=c&&this.o.o.sendVisitorIdHeader;d||e?(f={},d&&(f.Authorization="Bearer "+b),e&&(f["X-Goog-Visitor-Id"]=c),g.Lq(l,{headers:f,withCredentials:!0,method:"POST",postBody:a})):lr(l,void 0,a);this.u={}}};
g.h.WB=function(){if(this.o.videoData.wc){var a=this.o.videoData.wc;sH(this,"drm-"+a.flavor);sH(this,"eme-"+(a.keySystemAccess?"final":Az(a)?"ms":"com.youtube.fairplay"==a.o?"ytfp":Dz(a)?"safarifp":"nonfinal"))}};
g.h.onError=function(a,b){var c=g.ZG(this.o);qH(this,c,a,b);oH(this,c);pH(this)};
g.h.X=function(){g.A.prototype.X.call(this);window.clearInterval(this.ma)};
var Pja=g.Ka,v2={},Nja=(v2[5]="N",v2[-1]="N",v2[3]="B",v2[0]="EN",v2[2]="PA",v2[1]="PL",v2);tH.prototype.update=function(){if(this.P){var a=this.u.u()||0,b=g.ZG(this.u);if(a!=this.o||xH(this,a,b)){var c;if(!(c=a<this.o||a-this.o>b-this.F+2||xH(this,a,b))){var d=this.u.Xc();c=d.volume;var e=c!=this.R;d=d.muted;d!=this.L?(this.L=d,c=!0):(!e||0<=this.C||(this.R=c,this.C=b),c=b-this.C,0<=this.C&&2<c?(this.C=-1,c=!0):c=!1)}c&&(uH(this),this.w=a);this.F=b;this.o=a}}};AH.prototype.send=function(a){if(!this.ba){var b=DH(this);b=g.Bd(this.I,b);if(this.V)this.P&&(a=BH(this)||{},a.method="POST",a.rb={atr:this.P},g.Lq(b,a));else{var c=BH(this,a);this.ga.fa("web_player_logging_net_killswitch")?c?g.Lq(b,c):g.jr(b,a):zH(b,c,{token:this.B,nC:this.R,mdxEnvironment:this.mdxEnvironment},a)}this.ba=!0}};
AH.prototype.o=function(a){void 0==a&&(a=NaN);return(1*a.toFixed(3)).toString()};var Rja=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);g.r(HH,g.A);HH.prototype.ba=function(a,b){if(!this.ea()){this.C=NaN;this.u.update();var c=wH(this.u),d=KH(this,c);b&&(d.A=a);var e=this.o.fa("html5_expanded_max_vss_pings")?1E3:400;e=this.P>e;!(1<c.length)&&c[0].isEmpty()||e||(d.u=IH(this,!0,a));d.send();this.P++}};
HH.prototype.F=function(a){var b=this.o.o,c=this.o.videoData,d={ns:b.V,el:PB(c),eurl:b.Pa,fmt:c.Ba?jt(c.Ba):0,html5:1,list:c.playlistId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.playerStyle,noflv:1,st:this.o.u(),video_id:c.videoId,metric:a};RB(c)&&(d.autoplay="1");"heartbeat"==a&&(d.tpmt=vH(this.u));g.Ua(d,b.deviceParams);MH(this,g.Bd(g.P(b.experiments,"cardio_base_url_killswitch")?(b.o?b.protocol+"://www.youtube.com/":b.G)+"live_204":b.G+"live_204",d))};
HH.prototype.X=function(){g.A.prototype.X.call(this);g.Qo(this.C);this.C=NaN;var a=this.u;window.clearInterval(a.G);a.G=NaN;g.Qo(this.A)};
HH.prototype.Xa=function(){return DH(JH(this,"playback"))};g.r(RH,g.A);RH.prototype.onError=function(a,b){if(this.o)this.o.onError(a,b);if(this.w)this.w.onError(a)};
RH.prototype.Xa=function(){return this.u?this.u.Xa():{}};UH.prototype.add=function(a){this.o=(this.o+1)%this.data.length;this.data[this.o]=a};
UH.prototype.forEach=function(a){for(var b=this.o+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.o;b++)a(this.data[b]||0)};
UH.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.u=this.o=this.data.length-1};g.r(XH,g.O);g.r(hI,g.O);g.h=hI.prototype;g.h.getVisibilityState=function(a,b,c,d,e,f){return a?4:dI()?3:b?2:c?1:d?5:e?7:f?8:0};
g.h.setMinimized=function(a){this.o!=a&&(this.o=a,this.Li())};
g.h.setInline=function(a){this.C!=a&&(this.C=a,this.Li())};
g.h.setImmersivePreview=function(a){this.A!=a&&(this.A=a,this.Li())};
g.h.isFullscreen=function(){return 0!=this.w};
g.h.isInline=function(){return this.C};
g.h.isBackground=function(){return dI()};
g.h.Li=function(){this.S("visibilitychange");var a=this.getVisibilityState(this.u,this.isFullscreen(),this.o,this.isInline(),this.B,this.A);a!=this.G&&this.S("visibilitystatechange");this.G=a};
g.h.X=function(){gI(this.F);g.O.prototype.X.call(this)};g.r(lI,g.A);lI.prototype.V=function(){var a=this;if(this.w){var b=this.w,c=b.getCurrentTime(),d=8==this.A.o&&c>this.o,e=iia(this.A);nI(this,this.ha,e,d,"qoe.slowseek",function(){},"timeout");
e=e&&isFinite(this.o)&&0<this.o&&fia(b,this.o);var f=!c||10<Math.abs(c-this.o);nI(this,this.da,e&&f,d,"qoe.slowseek",function(){return b.seekTo(a.o)},"set_cmt");
f=e&&St(b.Fd(),this.o);e=!this.u||!this.u.o.Z;nI(this,this.Z,f&&e,d,"qoe.slowseek",function(){return b.seekTo(a.o+.001)},"jiggle_cmt");
e=function(){return a.G("newmediaelementrequired")};
nI(this,this.ba,f,d,"qoe.slowseek",e,"new_elem");(d=b.Sl().totalVideoFrames)&&!this.U.isBackground()&&(f=d==this.I,nI(this,this.L,c>this.P&&f,!f,"qoe.longrebuffer",e,"decoder_freeze"),this.I=d);this.P=c;d=TC(this.A);f=g.UC(this.A);c=d&&f&&St(b.Fd(),c+5);nI(this,this.aa,c,d&&!f,"qoe.longrebuffer",e,"new_elem_nnr");nI(this,this.R,d&&f,d&&!f,"qoe.longrebuffer",function(){},"timeout");
this.F.start()}};
jI.prototype.reset=function(){this.o=this.u=this.w=0;this.C=!1};
jI.prototype.Xa=function(){var a={},b=(0,g.N)();this.w&&(a.wsd=(b-this.w).toFixed());this.u&&(a.wtd=(b-this.u).toFixed());this.o&&(a.wssd=(b-this.o).toFixed());return a};g.r(sI,g.O);g.h=sI.prototype;g.h.getCurrentTime=function(){return!isNaN(this.w)&&isFinite(this.w)?this.w:this.o&&CI(this)?this.o.getCurrentTime()+this.A:this.F||0};
g.h.isAtLiveHead=function(a){if(!this.u)return!1;void 0==a&&(a=this.getCurrentTime());return aI(this.u,a)};
g.h.seekTo=function(a,b){var c=void 0===b?{}:b,d=void 0===c.vC?!1:c.vC,e=void 0===c.wC?0:c.wC,f=void 0===c.Al?!1:c.Al;c=void 0===c.Lu?0:c.Lu;var k=a,l=!isFinite(k)||(this.u?aI(this.u,k):k>=this.tc())||!g.JB(this.T);l||this.S("ctmp","seeknotallowed",k+";"+this.tc());if(!l)return this.C&&(this.C=null,AI(this)),Gf(this.getCurrentTime());if(a==this.w&&this.R)return this.G;this.R&&tI(this);this.G||(this.G=new $C);a&&!isFinite(a)&&vI(this,!1);k=a;(zI(this)&&!(this.o&&0<this.o.je()&&0<AC(this.o))||tB(this.T)&&
this.Ab()==this.tc(!1)?0:isFinite(k)||!tB(this.T))&&(a=BI(this,a,f));a&&!isFinite(a)&&vI(this,!1);this.F=a;this.ya=c;this.w=a;this.u&&(f=this.u,c=a,bI(f,c,!1),cI(f,c));this.S("seekto",a,!d);this.G&&(d?e&&this.da.start(e):(this.R=!0,qI(this)));return this.G};
g.h.tc=function(a){if(!this.T.sa)return this.T.tc();if(this.T&&this.T.wa&&this.T.wa.o){if(!a&&this.u)return $H(this.u);a=this.T.tc();this.V.u&&this.o&&(a=Math.max(a,EC(this.o)));return a+this.A}this.o?ml()?(a=this.o.So().getTime(),a=isNaN(a)?0:Math.max(((0,g.G)()-a)/1E3-30,0)):a=AC(this.o)+this.A||this.A:a=this.A;return a};
g.h.Ab=function(){return this.T?this.T.Ab()+this.A:this.A};
g.h.X=function(){wI(this,null);this.P.dispose();g.O.prototype.X.call(this)};
g.h.qO=function(a,b){b=void 0===b?!1:b;this.seekTo(a+this.Bb(),{Al:b})};
g.h.Xa=function(){var a={};this.B&&Object.assign(a,this.B.Xa());this.o&&Object.assign(a,this.o.Xa());return a};
g.h.yO=function(a){this.A=a};
g.h.xO=function(a){this.oa=a};
g.h.getStreamTimeOffset=function(){return tB(this.T)?this.oa:this.T.ia?this.T.ia.getStreamTimeOffset():0};
g.h.Bb=function(){return this.A};
g.h.CI=function(a){this.I&&(this.I.o=a.audio.index)};var pJ={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},qJ={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},rJ=/^(\d*)_((\d*)_?(\d*))$/;DI.prototype.isFinished=function(){return this.o};
DI.prototype.start=function(){this.started=!0};
DI.prototype.reset=function(){this.o=this.started=!1};g.r(EI,g.A);EI.prototype.start=function(){this.u.start()};
EI.prototype.stop=function(){this.u.stop()};
EI.prototype.clear=function(){for(var a=g.q(Object.keys(this.o)),b=a.next();!b.done;b=a.next())this.o[b.value].clear()};
EI.prototype.A=function(){for(var a=g.q(Object.keys(this.w)),b=a.next();!b.done;b=a.next())b=b.value,this.o[b].update(this.w[b]());this.u.start()};
FI.prototype.update=function(a){this.u?(this.buffer.add(a-this.o||0),this.o=a):this.buffer.add(a)};
FI.prototype.clear=function(){this.buffer.clear();this.o=0};KI.prototype.encrypt=function(a){var b=this,c;return g.Da(function(d){if(1==d.o)return g.ua(d,JI(b.o.o,a,b.u),2);c=d.u;return d["return"](c)})};
KI.prototype.decrypt=function(a,b){var c=this,d;return g.Da(function(e){if(1==e.o)return g.ua(e,JI(c.o.o,a,b),2);d=e.u;return e["return"](d)})};RI.prototype.o=function(){var a=new LI;PI(a,1,this.u);PI(a,2,this.C);PI(a,6,this.B);PI(a,15,this.F);var b=this.w;NI(a,128);NI(a,b);PI(a,17,this.A);return QI(a)};SI.prototype.o=function(){var a=new LI;OI(a,2,this.w);OI(a,5,this.u);OI(a,6,this.B);OI(a,7,this.A);NI(a,80);NI(a,1);return QI(a)};TI.prototype.o=function(){var a=new LI;PI(a,1,"Content-Type");PI(a,2,"application/x-protobuf");return QI(a)};UI.prototype.o=function(){var a=new LI;OI(a,1,this.u.o());return QI(a)};ZI.prototype.o=function(){var a=new LI;OI(a,1,this.u.o());PI(a,2,this.w);return QI(a)};$I.prototype.o=function(){var a=new LI;PI(a,1,this.w);for(var b=g.q(this.u),c=b.next();!c.done;c=b.next())OI(a,2,c.value.o());OI(a,3,this.A.o());return QI(a)};aJ.prototype.o=function(){var a=new LI;OI(a,3,this.u.o());return QI(a)};cJ.prototype.feed=function(a){pw(this.o,a);dJ(this)};eJ.prototype.fetch=function(){var a=this,b,c,d,e,f,k,l,m,n,p,t,u,z;return g.Da(function(B){switch(B.o){case 1:return a.B.start(),a.u.tick("ogpd"),B.B=2,g.ua(B,lka(a),4);case 4:b=B.u;va(B,3);break;case 2:return c=wa(B),c instanceof Vs?fJ(a,c):(d=new Vs("onesie.request",!1),fJ(a,d)),B["return"](a.w);case 3:a.u.tick("osor");e=Kw(a.T.M());f=b.o();k={method:"POST",body:f,headers:{"Content-Type":"text/plain"}};l=g.Ka;m=function(){gJ(a)};
n=function(){gJ(a);var D;a.o.Uj()?D=new Vs("onesie.net",!1,{msg:a.o.Uj()}):400<=a.o.status?D=new Vs("onesie.net.badstatus",!1):a.o.eo()?a.C||(D=new Vs("onesie.response.noplayerresponse",!1)):D=new Vs(204===a.o.status?"onesie.net.nocontent":"onesie.net.connect",!1);D?fJ(a,D):a.u.tick("orf")};
p=g.Ka;t=ika(a.T);if(!t)return u={url:"0"},z=new Vs("onesie.unavailable.hotconfig",!1,u),fJ(a,z),B["return"](a.w);a.u.tick("ocs");a.o=new rD(t,l,m,n,p,e,k);return B["return"](a.w)}})};
eJ.prototype.I=function(){fJ(this,new Vs("onesie.request",!1,{timeout:"1"}))};g.r(lJ,g.O);g.h=lJ.prototype;g.h.X=function(){window.clearInterval(this.Wb);gI(this.qb);this.L.unsubscribe("visibilitystatechange",this.qb);nJ(this);oJ(this);g.cq(this.ga);PJ(this);delete this.P;g.Ke(this.T);this.aa=null;this.ua=!1;this.Ca=0;g.O.prototype.X.call(this)};
g.h.getVideoData=function(){return this.T};
g.h.M=function(){return this.A};
g.h.fr=function(){if(this.T.Gb())0<g.Q(this.A.experiments,"html5_player_min_build_cl")&&311052436<g.Q(this.A.experiments,"html5_player_min_build_cl")&&mK(this,"oldplayer"),yka(this);else if(this.T.Yh||this.T.Nj){if(!this.ma||!yJ(this))if(this.T.Yh)Zha(this.T);else{var a=this.B;a.o&&(a=a.o,sH(a,"protected"),a.o.videoData.wc?a.WB():a.o.videoData.subscribe("dataloaded",a.WB,a));a=this.T;a.Oe||a.ia&&Qx(a.ia);var b={};a.ia&&(b=Iz(mB(a),a.Oa.A,a.ia));var c=a.Oa.experiments,d=a.bC;var e=a.useCobaltWidevine?
a.fa("html5_enable_tvos_widevine")&&ml()?sB(a):lB(a,"html5_enable_androidtv_cobalt_widevine")&&il("cobalt")&&il("android")?!0:!1:!1;b=new Lz(b,c,d,e);g.C(a,b);a.Nj=!1;a.pc=!0;a=(0,g.x)(a.eG,a);b.C=a;b.w=[];Fz(b.B)?Mz(b):cha(b)}}else!this.T.pc&&this.sc&&vka(this)};
g.h.aM=function(a){var b=this;if(!this.ea()&&!a.videoData.ea()&&(this.P=a,$ja(this.C,this.P),!this.T.sa||0<this.T.qh&&!tB(this.T)||(this.seekTo(cK(this)),GJ(this,"playbackData")),this.T.wa.o&&(this.w?g.ar(Error("Duplicated Loader")):aK(this)),XJ(this),YJ(this,"html5_nonblocking_media_capabilities"))){var c=Date.now();Jja(a).then(function(){b.Qa("mclatency",(Date.now()-c).toString())})}};
g.h.bM=function(a){this.ea()||(a=Xs(a),this.L.isBackground()?(vK(this,"vp_none_avail"),this.ya=null,this.Z.reset()):(this.Z.o=!0,g.kJ(this,a.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Ws(a.details))))};
g.h.sendAbandonmentPing=function(){g.V(this.getPlayerState(),128)||(this.S("internalAbandon"),this.uu(!0),nJ(this),g.cq(this.ga))};
g.h.getPlayerState=function(){return this.u};
g.h.getPlayerType=function(){return this.Ia};
g.h.getPreferredQuality=function(){if(this.P){var a=this.U;var b=this.P,c=Hu(b.videoData.cq,b.videoData.gw);"auto"!=jy()||RG(a,"html5_restore_perf_cap_redux")||(c=Hu(c,VG(a,b)));a=Iu(c)}else a="auto";return a};
g.h.isGapless=function(){return!!this.o&&this.o.isView()};
g.h.playVideo=function(){var a=this,b,c,d,e;return g.Da(function(f){if(1==f.o){if(g.V(a.u,128))return f["return"]();if(a.pd)return a.pd=!1,kK(a),f["return"]();var k=a.B;k.w&&gH(k.w);k.o&&rH(k.o);EJ(a);g.V(a.u,64)&&uJ(a,OC(a.u,8));a.ba.isFinished()&&a.o?a.P||!a.ya?(f.o=2,f=void 0):f=g.ua(f,a.ya,2):f=f["return"]();return f}if(!a.T.wa)return b=a.T.sa&&!g.xu(a.A.A,!0)?"html5.unsupportedlive":AB(a.T)?"fmt.unplayable":"fmt.noneavailable",g.ar(Error("selectableFormats")),g.kJ(a,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"selectableFormats.1"),f["return"]();if(a.L.u&&a.T.wa.o)return BJ(a),f["return"]();if(a.T.sa){c=a.getCurrentTime()<a.Ab()-15;d=g.JB(a.T)&&g.V(a.u,4);e=!YJ(a,"html5_dompaused_unpause_killswitch")&&g.V(a.u,1024);e||!c&&!d||(d?(a.seekTo(Infinity),GJ(a,"unpauseLiveOnly")):(a.seekTo(a.Ab()),GJ(a,"outOfWindow")));!a.isAtLiveHead(void 0,!0)&&yI(a.C)&&(a.seekTo(Infinity),GJ(a,"peggedToLive"));if(k=g.V(a.u,256)&&a.T.se)k=a.C,k=k.R&&!isFinite(k.w);if(k)return uJ(a,QC(a.u,8,4)),f["return"]()}YJ(a,"html5_sync_seeking_state")&&
g.V(a.u,4)&&g.V(a.u,16)&&uJ(a,QC(a.u,9,4));if(CJ(a))return!YJ(a,"html5_ignore_airplay_events_on_new_video_killswitch")&&a.o&&a.o.Hi()&&(a.Ua=(0,g.N)()),a.A.Pn?g.Oo((0,g.x)(a.Zt,a),0):a.Zt(),f["return"]();a.Zt();f.o=0})};
g.h.kO=function(){RJ(this);var a=this.T.ia&&Qx(this.T.ia),b=this.o&&this.o.isView();a||b?(this.w&&(a=this.w,a.o.Z=!1,a.w&&WF(a)),eK(this)):(uJ(this,OC(this.u,16)),CJ(this),g.SC(this.u)&&this.playVideo())};
g.h.getUserPlaybackQualityPreference=function(){return this.T.wa&&!this.T.wa.o?Iu(this.T.cq):jy()};
g.h.getAvailableAudioTracks=function(){return this.T.getAvailableAudioTracks()};
g.h.getAudioTrack=function(){return this.T.getAudioTrack()};
g.h.LG=function(){var a=this.B;a.A.o.Ma||3==a.A.getVisibilityState()||(a.A.o.Ma=!0);g.SH(a);if(a.w){var b=a.w;b.R&&0>b.w&&3!=b.u.getVisibilityState()&&gH(b)}a.o&&(a=a.o,a.o.fa("html5_qoe_user_intent_match_health")&&a.ga&&0>a.B&&a.o.o.Ma&&rH(a));g.Q(this.A.experiments,"html5_background_quality_cap")&&this.w&&ZJ(this);this.A.cn&&!this.T.backgroundable&&this.o&&!this.L.u&&(this.L.isBackground()&&this.o.Ro()?(this.Qa("bgmobile","suspend"),g.MJ(this,!0)):this.L.isBackground()||CJ(this)&&this.Qa("bgmobile",
"resume"))};
g.h.NL=function(a,b){this.GA(new ND(b,a))};
g.h.GA=function(a){this.za.set(a.initData,a);this.F&&(IG(this.F,a),YJ(this,"html5_eme_loader_sync")||this.za.remove(a.initData))};
g.h.yA=function(){g.zu&&this.da&&this.da.o&&this.F&&(Gja(this.F,this.da.o),this.da=null)};
g.h.uN=function(a){this.T.HC=Eu("auto",a,!1,"u");ZJ(this)};
g.h.JG=function(a){JJ(this,a.reason,a.video.info,a.audio.info)};
g.h.lL=function(a){HJ(this,a.reason,a.audio.info)};
g.h.mL=function(a){this.S("localmediacomplete",a)};
g.h.Fi=function(a){var b=this;Cka(this,a);if("fmt.unplayable"!=a.errorCode&&"fmt.unparseable"!=a.errorCode||!hK(this,a.errorCode,a.details)){var c=/^pp/.test(this.T.clientPlaybackNonce);if(Bka(a)){var d=18394;this.A.fa("ipp_signature_cipher_killswitch")||(d=g.L("STS",void 0)?g.L("STS",void 0):d);a.details.sts=""+d;if(jK(this)){g.V(this.u,4)||g.V(this.u,512)?(this.pd=!0,oJ(this)):(a.o&&(a.details.e=a.errorCode,a.errorCode="qoe.restart",a.o=!1),this.B.onError(a.errorCode,Ws(a.details)),kK(this));return}6048E5<
(0,g.N)()-this.A.oa&&mK(this,"signature")}if(YJ(this,"html5_disable_codec_on_platform_errors")){if(d=this.T.Ba,(nK(a)||"fmt.decode"===a.errorCode||"fmt.unplayable"===a.errorCode)&&d&&("1"==d.u||lt(d))){a.details.e=a.errorCode;a.details.cfall=d.u;this.B.onError("qoe.restart",Ws(a.details));this.A.A.I.add(d.u);eK(this,!0);return}}else if(nK(a)&&this.T.wa&&this.T.wa.u){this.B.onError(a.errorCode,Ws(a.details));this.Qa("highrepfallback","1",!0);!YJ(this,"html5_hr_logging_killswitch")&&/^hr/.test(this.T.clientPlaybackNonce)&&
btoa&&this.Qa("afmts",btoa(this.T.adaptiveFormats),!0);aia(this.T);mJ(this);oJ(this);gK(this);this.playVideo();return}if(a.o){c=this.w?this.w.F.A:null;if(nK(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.A.B&&"auth"==a.errorCode&&429==a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}g.kJ(this,a.errorCode,e,Ws(a.details),f)}else this.B.onError(a.errorCode,Ws(a.details)),c&&"manifest.net.connect"==a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.T.clientPlaybackNonce+"&t="+
(0,g.N)(),(new hF(a,"manifest",function(k){b.Uh=!0;b.Qa("pathprobe",k)},function(k){return b.B.onError(k.errorCode,Ws(k.details))})).send())}};
g.h.pauseVideo=function(a){a=void 0===a?!1:a;if((g.V(this.u,64)||g.V(this.u,2))&&!a)if(g.V(this.u,8))uJ(this,QC(this.u,4,8));else return;g.V(this.u,128)||(a?uJ(this,OC(this.u,256)):uJ(this,QC(this.u,4,8)));this.o&&this.o.pause();g.JB(this.T)&&this.w&&SJ(this,!1)};
g.h.stopVideo=function(){this.pauseVideo();this.w&&(SJ(this,!1),GF(this.w))};
g.h.seekTo=function(a,b){b=void 0===b?{}:b;g.V(this.u,2)&&CJ(this);this.C.seekTo(a,b)};
g.h.getCurrentTime=function(){return this.C.getCurrentTime()};
g.h.getPlaylistSequenceForTime=function(a){return this.T.getPlaylistSequenceForTime(a-this.Bb())};
g.h.getDuration=function(){return this.T.lengthSeconds?this.T.lengthSeconds+this.Bb():cK(this)?cK(this):0};
g.h.YE=function(){var a=new bja;if(this.w){var b=this.A.schedule;a.w=b.G;a.B=b.L;a.bandwidthEstimate=Ay(b);a.o="d."+wy(b).toFixed(2)+";st."+(1E9*(b.o.o()||0)).toFixed(2)+";bw."+b.u.o().toFixed(0)+";abw."+b.I.o().toFixed(0)+";v50."+ty(b.w,.5).toFixed(2)+";v92."+ty(b.w,.92).toFixed(2)+";v96."+ty(b.w,.96).toFixed(2)+";v98."+ty(b.w,.98).toFixed(2);b=this.w;if(b.w&&!du(b.w)&&(a.u=AE(b.u,b.C),a.A=AE(b.A,b.C),b.o.oa)){var c=zE(b.u),d=zE(b.A),e=Qt(b.w.u.wd(),"_"),f=Qt(b.w.o.wd(),"_");a.o=(a.o||"")+(";lvq."+
c+";laq."+d+";lvb."+e+";lab."+f)}a.bandwidthEstimate=OE(b.P)}else this.o&&(a.u=CC(this.o));a.C=this.nx();return a};
g.h.Xa=function(a){var b={};if(void 0===a?0:a){g.Ua(b,this.B.Xa());this.o&&(g.Ua(b,this.o.Xa()),g.Ua(b,this.Sr()));this.w&&g.Ua(b,this.w.Xa());this.F&&(b.drm=this.F.Xa());b.state=this.u.o.toString(16);g.V(this.u,128)&&(b.debug_error=this.u.u);FJ(this)&&(b.prerolls=this.V.join(","));this.T.rh&&(b.ismb=this.T.rh);"UNKNOWN"!=this.T.latencyClass&&(b.latency_class=this.T.latencyClass);this.T.isLowLatencyLiveStream&&(b.lowlatency="1");this.T.sa&&(this.T.ia&&ey(this.T.ia)&&(b.segduration=ey(this.T.ia)),
a=this.C,b.lat=a.I?VH(a.I.A):0,b.liveutcstart=this.T.liveUtcStartSeconds);b.relative_loudness=this.T.wm.toFixed(3);if(a=g.IJ(this))b.optimal_format=a.va().qualityLabel;b.user_qual=jy()}b.debug_videoId=this.T.videoId;return b};
g.h.addCueRange=function(a){var b=this.R;a=[a];b.u();rF(b.o,a);b.A=NaN;b.u()};
g.h.removeCueRange=function(a){tF(this.R,[a])};
g.h.wN=function(){tJ(this)};
g.h.togglePictureInPicture=function(){this.o&&this.o.togglePictureInPicture()};
g.h.KG=function(a){this.rd.stop();var b=a.target.Yc();if(this.o&&this.o.Yc()&&this.o.Yc()==b){BK(this,a.type);switch(a.type){case "error":var c=GC(this.o)||"";if("capability.changed"==c){BJ(this);return}if(0<this.o.Xe()&&hK(this,c,{msg:this.o.Wj()}))return;if(this.L.isBackground()&&4==this.o.Xe()){g.MJ(this);vK(this,"unplayable");return}break;case "durationchange":c=this.o.getDuration();(!this.G||isFinite(c)&&0<c)&&1!=c&&this.T.lengthSeconds!=c&&(this.T.lengthSeconds=c,tJ(this));break;case "ratechange":this.w&&
this.w.setPlaybackRate(this.o.getPlaybackRate());c=this.R;c.started=!0;c.u();var d=this.B;c=this.getPlaybackRate();if(d.o){d=d.o;var e=g.ZG(d.o);c&&c!=d.za&&(g.jH(d,e,"rate",[c]),d.za=c);d.nk(e)}break;case "loadedmetadata":CK(this),this.S("onLoadedMetadata");case "loadstart":window.clearInterval(this.Wb);this.er()||(this.Wb=Po((0,g.x)(this.er,this),100));break;case "progress":case "suspend":oK(this);this.S("onLoadProgress",this,this.o?g.JB(this.T)?1:KB(this.T)?this.isAtLiveHead()||yI(this.C)?1:cka(this.C):
FC(this.o):0);break;case "playing":this.I.tick("plev");rK(this);TA("plev");this.od&&(this.od=!1,this.isAtLiveHead()||(this.seekTo(Infinity),GJ(this,"onPlaying")));break;case "timeupdate":rK(this);c=this.o&&!this.o.getCurrentTime();d=this.o&&0==this.o.je();if(c&&(!this.Ma||d))return;this.Ma=this.Ma||!!this.o.getCurrentTime();this.er();oK(this);if(!this.o||this.o.Yc()!=b)return;this.S("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.o.yj().length&&0==this.o.Fd().length&&
0<this.o.getCurrentTime()&&5>this.o.getCurrentTime()&&this.w)return;break;case "resize":CK(this);this.T.Ba&&"auto"==this.T.Ba.va().quality&&this.S("internalvideoformatchange",this.T,!1);break;case "pause":if(this.Md&&g.V(this.u,8)&&!g.V(this.u,1024)&&0==this.getCurrentTime()&&g.rz){vK(this,"safari_autoplay_disabled");return}}if(this.o&&this.o.Yc()==b){this.S("videoelementevent",a);b=this.u;if(!g.V(b,128)){c=this.Ha;e=this.o;var f=this.A.experiments;d=b.o;e=e?e:a.target;var k=e.getCurrentTime();if(!g.V(b,
64)||"ended"!=a.type&&"pause"!=a.type){var l=e.Af()||1<k&&1.1>Math.abs(k-e.getDuration());k="ended"==a.type||"waiting"==a.type||"timeupdate"==a.type&&!g.V(b,4)&&!IC(c,k);if("pause"==a.type&&e.Af()||l&&k)0<e.Un()&&e.Yc()&&(d=14);else switch(a.type){case "error":GC(e)&&(d|=128);break;case "pause":g.V(b,256)?(d^=256)||(d=64):g.V(b,32)||g.V(b,2)||g.V(b,4)||(d=4,g.V(b,1)&&g.V(b,8)&&(d|=1));break;case "playing":d=(d|8)&-3077;f&&g.P(f,"html5_playing_clears_unstarted_killswitch")||(d&=-65);IC(c,e.getCurrentTime())&&
(d&=-2);g.V(b,1)&&MC(c,e)&&(d|=1);break;case "seeking":d|=16;g.V(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.V(b,2)||(d|=1);MC(c,e);break;case "timeupdate":f=g.V(b,16),l=g.V(b,4),(g.V(b,8)||f)&&!l&&IC(c,e.getCurrentTime())&&(d=8),MC(c,e)&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,(e=GC(d))?(f="GENERIC_WITHOUT_LINK",l=d.Xa(),l.mediaElem="1",/AUDIO_RENDERER/.test(d.Wj())&&(f="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.LJ[f]||"",yr:f,FB:Ws(l)}):d=null);b=NC(b,c,d)}!g.V(this.u,
1)&&g.V(b,1)&&AK(this,"evt_"+a.type);uJ(this,b)}}};
g.h.jN=function(){this.Qa("misstimeupdate","");qK(this)&&!g.V(this.u,2)&&iJ(this,!0,!1)};
g.h.VJ=function(a){a="available"==a.u.availability;a!=this.Ic&&(this.Ic=a,this.S("airplayavailabilitychange"))};
g.h.WJ=function(){var a=this,b=(0,g.N)();if(isNaN(this.Ua)||!(2E3>b-this.Ua)){var c=this.o.Hi();this.Ua=b;c!=this.L.u&&(Xja(this.L,c),BJ(this).then(function(){return CJ(a)}));
this.S("airplayactivechange")}};
g.h.er=function(){var a=this.o;a&&this.Ma&&!this.T.se&&!KA("vfp",this.I.timerName)&&2<=a.je()&&!a.Af()&&0<Ut(a.Fd())&&this.I.tick("vfp");return(a=this.o)&&!this.T.se&&0<a.getDuration()&&(!KA("pbp",this.I.timerName)&&a.Ch()&&2<=a.je()&&0<Ut(a.Fd())&&this.I.tick("pbp"),a=a.getCurrentTime(),IC(this.Ha,a))?(tK(this),!0):!1};
g.h.wF=function(){if(this.o&&!g.V(this.u,128)){this.T.wg&&g.Q(this.A.experiments,"html5_log_rebuffer_events")&&BK(this,"pfx");var a=this.getCurrentTime(),b=CC(this.o),c=g.V(this.u,8),d=IC(this.Ha,a),e=JC(this.Ha,a,(0,g.N)(),b);c&&d?uJ(this,PC(this.u,1)):c&&e?(c=this.getDuration(),d=this.T.sa,(YJ(this,"html5_set_ended_in_pfx_live")||!d)&&c&&1.1>Math.abs(c-a)?(this.Qa("setended","ct."+a+";bh."+b+";dur."+c+";live."+ +d),d&&YJ(this,"html5_set_ended_in_pfx_live_cfl")||(this.o.Po()?this.seekTo(0):iJ(this))):
(g.UC(this.u)||AK(this,"progress_fix"),uJ(this,OC(this.u,1)))):(c&&!d&&!e&&0<a&&(c=(Date.now()-this.jb)/1E3,d=this.getDuration().toFixed(2),a>d-1&&this.Qa("misspg","t:"+a.toFixed(2)+";d:"+d+";r:"+c.toFixed(2)+";bh:"+b.toFixed(2))),g.V(this.u,4)&&g.UC(this.u)&&5<CC(this.o)&&uJ(this,PC(this.u,1)));oK(this)}};
g.h.NE=function(){return this.w?OE(this.w.P):Ay(this.A.schedule)};
g.h.VE=function(){return this.A.schedule.G};
g.h.nx=function(){return this.isAtLiveHead()&&this.u.ab()?this.sx():NaN};
g.h.sx=function(){if(!this.T.sa||!this.T.ia||!this.w)return NaN;var a=tB(this.T)?this.w.oa.o()||0:this.T.ia.G;return(0,g.G)()/1E3-pK(this)-a};
g.h.mF=function(){this.T.sa||this.S("connectionissue")};
g.h.Zt=function(){var a=this;this.o&&(this.Pa=this.o.playVideo());if(this.Pa){var b=this.Pa;b.then(void 0,function(c){if(!(g.V(a.u,4)||g.V(a.u,256)||a.Pa!=b||c&&"AbortError"==c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);try{uJ(a,OC(a.u,2048))}catch(e){}vK(a,d);a.Md=!0}})}};
g.h.IG=function(a,b,c,d){var e=this;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"==a&&this.F&&1<this.F.w.keys.length&&96>this.oe)a="drm.sessionlimitexhausted",b=!1;else if(YJ(this,"html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"==a&&2>this.pe&&(this.pe++,mJ(this),1<this.T.lk.length&&(this.T.wc=this.T.lk[1]),hK(this,a,{detail:c})))return;if(b)this.T.Ba&>(this.T.Ba.va())?(this.A.A.w=!1,this.B.onError("qoe.restart",Ws({e:a,detail:c,r:"hdr"})),BJ(this).then(function(){return CJ(e)})):
g.kJ(this,a,d,c);
else this.B.onError(a,c);"drm.sessionlimitexhausted"==a&&(this.Qa("retrydrm","s"),this.oe++,zK(this))};
g.h.dL=function(){var a=this,b=g.Q(this.A.experiments,"html5_license_constraint_delay"),c=ul();b&&c?(b=new g.H(function(){XJ(a);tJ(a)},b),g.C(this,b),b.start()):(XJ(this),tJ(this))};
g.h.cL=function(){var a=this;g.zu&&(this.da=Ega(this.T.ia))&&(this.da.o?g.xf(function(){a.yA()}):nja(this.w,this.da))};
g.h.GG=function(a){this.S("heartbeatparams",a)};
g.h.HG=function(a){this.Qa("keystatuses",Dja(a));var b="auto";this.T.Ba&&(b=this.T.Ba.va().quality);!xG(a,b,!1)||yG(a,"AUDIO")&&yG(a,"SD")?this.T.Ba&>(this.T.Ba.va())&&(!a.L||xG(a,b,!0))&&Eka(this):this.Vc?this.S("drmoutputrestricted"):(this.Vc=!0,this.Qa("retrydrm","o"),WJ(this),zK(this))};
g.h.jL=function(){if(!this.T.se&&this.o&&!this.L.isBackground()){var a="0";0<this.o.je()&&5<=CC(this.o)&&this.T.wa&&this.T.wa.o&&(uJ(this,OC(this.u,1)),AK(this,"load_soft_timeout"),this.S("playbackstalledatstart"),a="1");uK(this);if(YJ(this,"html5_new_video_qoe_restart_info_killswitch"))a={restartmsg:a},FJ(this)&&(a.prerolls=this.V.join(",")),this.w&&g.Ua(a,this.w.Xa()),this.o&&g.Ua(a,this.o.Xa());else{var b=this.T.wa;a={restartmsg:a,mfmt:this.T.fo()?"0":"1",mdrm:b&&b.videoInfos&&b.videoInfos.length&&
b.videoInfos[0].zc&&!this.F?"1":"0",mfmtinfo:this.T.Ba?"0":"1",prerolls:FJ(this)?this.V.join(","):"0"};b=[this.w,this.o].filter(function(d){return!!d});
b=g.q(b);for(var c=b.next();!c.done;c=b.next())g.Ua(a,c.value.Xa())}this.B.onError("qoe.start15s",Ws(a));this.S("loadsofttimeout")}};
g.h.bN=function(){g.V(this.u,128)||this.G&&cu(this.G)||(this.B.onError("qoe.restart",Ws({detail:"bufferattach"})),this.Rg++,eK(this))};
g.h.uu=function(a){var b=this;a=void 0===a?!1:a;if(!this.ua){var c=new nfa(this.T,YJ(this,"web_player_inline_botguard"));if("c1a"in c.o&&!Us(c)&&(2==this.Ca&&.01>Math.random()&&g.ar(Error("Botguard not available after 2 attempts")),!a&&5>this.Ca)){g.An(this.qc);this.Ca++;return}if("c1b"in c.o){var d=Uja(this.B);d&&qfa(c).then(function(e){e&&!b.ua&&d&&(d(e),b.ua=!0)})}else if(a=ofa(c))Tja(this.B,a),this.ua=!0}};
g.h.Ab=function(){return this.C.Ab()};
g.h.Bb=function(){return this.C?this.C.Bb():0};
g.h.getStreamTimeOffset=function(){return this.C?this.C.getStreamTimeOffset():0};
g.h.setPlaybackRate=function(a){var b=this.T.wa&&this.T.wa.videoInfos&&32<this.T.wa.videoInfos[0].va().fps&&g.cz(this.A);this.yb!=a&&b&&(this.U.setPlaybackRate(a),WJ(this));this.yb=a;this.o&&this.o.setPlaybackRate(a)};
g.h.getPlaybackRate=function(){return this.yb};
g.h.getPlaybackQuality=function(){var a="unknown";if(this.T.Ba&&(a=this.T.Ba.va().quality,"auto"==a&&this.o)){var b=wJ(this);b&&0<b.videoHeight&&(a=ct(b.videoWidth,b.videoHeight))}return a};
g.h.sendVideoStatsEngageEvent=function(a,b){var c=this.B;c.u?(c=JH(c.u,"engage"),c.C=a,c.send(b)):b&&b()};
g.h.isAtLiveHead=function(a,b){return this.T.sa&&(this.Hc||(void 0===b?0:b))?this.C.isAtLiveHead(a):!1};
g.h.Sr=function(){return this.o?this.o.Sl():{}};
g.h.setLoop=function(a){this.Kc=a;this.o&&this.o.setLoop(a)};
g.h.nG=function(a){YJ(this,"html5_unrewrite_timestamps")&&this.Qa("timestamp",a.toString())};
g.h.Qa=function(a,b,c){var d=this.B;d.o&&lH(d.o,a,b,void 0===c?!1:c)};
g.h.aO=function(a,b){this.B.onError(a,Ws(b))};var IK={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};EK.prototype.replace=function(a,b){for(var c=g.q(a),d=c.next();!d.done;d=c.next())delete this.o[d.value.encryptedTokenJarContents];DK(this,b)};g.r(KK,hC);g.h=KK.prototype;g.h.getRootNode=function(){return g.RK(this).element};
g.h.M=function(){return this.app.M()};
g.h.getPlaylist=function(){return this.app.getPlaylist()};
g.h.getVideoData=function(a){return(a=g.W(this.app,a))&&a.getVideoData()};
g.h.ue=function(a){return this.app.ue(a)};
g.h.isWidescreen=function(){return this.app.isWidescreen()};
g.h.playVideo=function(a){try{if(3==this.getPresentingPlayerType()){g.SK(this.app.A).Rl("control_play");return}if(2===this.getPresentingPlayerType()){var b=HL(this.app.A),c;if(c=b){if(null===b.o)var d=0;else{var e=b.o;d=$U(e.o)&&!!e.u&&e.u.dm()}c=d}if(c)return}}catch(f){g.$q(f)}this.app.playVideo(a)};
g.h.stopVideo=function(a){g.W(this.app,a).stopVideo()};
g.h.addEventListener=function(a,b){this.app.ha.subscribe(a,b)};
g.h.removeEventListener=function(a,b){this.app.ha.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.getVideoUrl(d.videoId,f?void 0:this.getPlaylistId()||void 0,k,b,c)};
g.h.setCardsVisible=function(a,b,c){var d=g.YK(g.LK(this));d&&d.setCardsVisible(a,b,c)};
g.h.Qc=function(){if(this.M().L)return!1;var a=g.W(this.app,1);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.JB(b)||2==this.getPresentingPlayerType()&&!this.app.Mb()||FJ(a)&&3!=this.getPresentingPlayerType()?!1:!0};
g.h.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.h.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.h.setVolume=function(a){a=g.Pd(a,0,100);aC(this.app,{volume:a,muted:this.isMuted()},!0)};
g.h.mute=function(){aC(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.h.unMute=function(){aC(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.h.getBandwidthEstimate=function(){return Ay(this.M().schedule)};
g.h.kb=function(){return g.W(this.app)};
g.h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
g.h.clearQueue=function(){this.app.clearQueue()};
g.h.Mb=function(){return this.app.Mb()};var Lka=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(" "));g.r(g.wL,g.O);g.h=g.wL.prototype;g.h.create=function(){};
g.h.load=function(){this.loaded=!0};
g.h.unload=function(){this.loaded=!1};
g.h.Oc=function(){};
g.h.Pf=function(){return!0};
g.h.X=function(){this.loaded&&this.unload();g.O.prototype.X.call(this)};
g.h.Xa=function(){return{}};
g.h.getOptions=function(){return[]};g.LL={};g.r(zL,g.A);g.h=zL.prototype;g.h.sd=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;var e=this.u.get(a);if(!e||d){b||(b=this.sd.bind(this,a,void 0,c,d));if(!(d=e))a:{e=Nka(this,a);try{if(e){var f=g.LL[a];if(f){d=new f(this.o);break a}"creatorendscreen"==a?ML(this,"annotations_module",b):ML(this,a,b)}else g.gL(this.o,a)}catch(k){g.gL(this.o,a),g.$q(k)}d=null}if(e=d)this.u.set(a,e),e.create(),c&&this.o.na("onApiChange")}};
g.h.Bm=function(){return this.o.getVideoData().Bm()};
g.h.Bw=function(){var a=this.u.get("heartbeat");this.sd("heartbeat",this.Bw,!1,!0);!a&&this.u.has("heartbeat")&&this.o.S("offlineslatestatechange")};
g.h.kr=function(){this.sd("annotations_module",this.kr,!0);var a=this.u.get("annotations_module");if(a)for(var b in this.C){var c=b;a.subscribe(c,this.C[c])}};
g.h.zw=function(){if(!this.u.get("ad"))try{BL(this)?this.sd("ad",this.zw,!1,!0):g.gL(this.o,"ad")}catch(a){g.gL(this.o,"ad"),g.$q(a)}};
g.h.X=function(){g.A.prototype.X.call(this);GL(this,1,!0)};g.r(g.NL,g.zC);g.h=g.NL.prototype;g.h.Bh=function(){return!0};
g.h.isView=function(){return!1};
g.h.Dp=function(){return!1};
g.h.ib=function(){return this.o};
g.h.Yc=function(){return this.o.src};
g.h.Ip=function(a){var b=this.getPlaybackRate();this.o.src=a;this.setPlaybackRate(b)};
g.h.Bp=function(){this.o.removeAttribute("src")};
g.h.getPlaybackRate=function(){try{return 0<=this.o.playbackRate?this.o.playbackRate:1}catch(a){return 1}};
g.h.setPlaybackRate=function(a){this.getPlaybackRate()!=a&&(this.o.playbackRate=a);return a};
g.h.Po=function(){return this.o.loop};
g.h.setLoop=function(a){this.o.loop=a};
g.h.canPlayType=function(a,b){return this.o.canPlayType(a,b)};
g.h.Ch=function(){return this.o.paused};
g.h.Tl=function(){return this.o.seeking};
g.h.Af=function(){return this.o.ended};
g.h.Tn=function(){return this.o.muted};
g.h.Nh=function(a){Kt();this.o.muted=a};
g.h.yj=function(){return this.o.played||Pt([],[])};
g.h.Fd=function(){try{var a=this.o.buffered}catch(b){}return a||Pt([],[])};
g.h.tl=function(){return this.o.seekable||Pt([],[])};
g.h.So=function(){return this.o.getStartDate?this.o.getStartDate():null};
g.h.getCurrentTime=function(){return this.o.currentTime};
g.h.Hp=function(a){this.o.currentTime=a};
g.h.getDuration=function(){return this.o.duration};
g.h.load=function(){var a=this.o.playbackRate;this.o.load&&this.o.load();this.o.playbackRate=a};
g.h.pause=function(){this.o.pause()};
g.h.play=function(){var a=this.o.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.h.je=function(){return this.o.readyState};
g.h.Un=function(){return this.o.networkState};
g.h.Xe=function(){return this.o.error?this.o.error.code:null};
g.h.Wj=function(){return this.o.error?this.o.error.message:""};
g.h.Sl=function(){var a={};if(this.o){if(this.o.getVideoPlaybackQuality)return this.o.getVideoPlaybackQuality();this.o.webkitDecodedFrameCount&&(a.totalVideoFrames=this.o.webkitDecodedFrameCount,a.droppedVideoFrames=this.o.webkitDroppedFrameCount)}return a};
g.h.Hi=function(){return!!this.o.webkitCurrentPlaybackTargetIsWireless};
g.h.Ws=function(){return!!this.o.webkitShowPlaybackTargetPicker()};
g.h.togglePictureInPicture=function(){Jt()?this.o!=window.document.pictureInPictureElement?this.o.requestPictureInPicture():window.document.exitPictureInPicture():It()&&this.o.webkitSetPresentationMode("picture-in-picture"==this.o.webkitPresentationMode?"inline":"picture-in-picture")};
g.h.jh=function(){return Gh(this.o)};
g.h.Xj=function(){return g.Sh(this.o)};
g.h.setSize=function(a){return g.Rh(this.o,a)};
g.h.getVolume=function(){return this.o.volume};
g.h.setVolume=function(a){Kt();this.o.volume=a};
g.h.xr=function(a){if(!this.u[a]){var b=(0,g.x)(this.bH,this);this.o.addEventListener(a,b);this.u[a]=b}};
g.h.bH=function(a){this.dispatchEvent(new HC(this,a.type,a))};
g.h.setAttribute=function(a,b){this.o.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.o.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.o.hasAttribute(a)};
g.h.Ok=ba(7);g.h.Hm=ba(9);g.h.bj=ba(4);g.h.Tk=ba(11);g.h.il=function(){Lr(this.o)};
g.h.ul=function(a){return g.Bh(this.o,a)};
g.h.xs=function(){return g.Ae(document.body,this.o)};
g.h.X=function(){for(var a in this.u)this.o.removeEventListener(a,this.u[a]);g.zC.prototype.X.call(this)};La(OL);var JS=g.w("ytPlayerUtilsVideoTagPoolInstance")||OL.getInstance();g.Ia("ytPlayerUtilsVideoTagPoolInstance",JS,void 0);g.h=OL.prototype;g.h.Rw=function(a){if(!(this.o.length>=a)){a-=this.o.length;for(var b=0;b<a;b++)QL(this)}};
g.h.aF=function(a,b){if(this.o.length)return this.o.pop();var c=QL(this,a,b);a||g.gb(this.o,c);return c};
g.h.bO=function(a){a&&g.cb(this.u,a)&&(a.src&&(sl&&0<a.readyState&&(a.currentTime=Math.max(asa,0)),a.removeAttribute("src"),a.load(),a.o&&a.o.u&&(a.o&&a.o.dispose(),a.o=null)),Wp(a),g.gb(this.u,a),g.gb(this.w,a))};
g.h.MF=function(a){return this.o.length>=(a||1)};
g.h.JD=function(){for(var a=this.w.length-1;0<=a;a--)PL(this,this.w[a]);this.o.length==this.u.length&&4<=this.o.length||(4>this.u.length?this.Rw(4):(this.o=[],(0,g.y)(this.u,function(b){PL(this,b)},this)))};
OL.prototype.fillPool=OL.prototype.Rw;OL.prototype.getTag=OL.prototype.aF;OL.prototype.releaseTag=OL.prototype.bO;OL.prototype.hasTags=OL.prototype.MF;OL.prototype.activateTags=OL.prototype.JD;g.r(g.RL,g.zC);g.h=g.RL.prototype;g.h.isView=function(){return!0};
g.h.Dp=function(){var a=this.o.getCurrentTime();if(a<this.u)try{var b=this.o.Fd(),c=Tt(b,a);return!(this.u<c)}catch(d){}return!1};
g.h.yj=function(){return Wt(this.o.yj(),this.u,this.A)};
g.h.Fd=function(){return Wt(this.o.Fd(),this.u,this.A)};
g.h.tl=function(){return Wt(this.o.tl(),this.u,this.A)};
g.h.getCurrentTime=function(){return this.o.getCurrentTime()-this.u};
g.h.Hp=function(a){this.o.Hp(a+this.u)};
g.h.getDuration=function(){return isFinite(this.A)&&!this.G?this.A-this.u:this.o.getDuration()-this.u};
g.h.play=function(){if(this.Dp()){this.o.getCurrentTime();try{this.o.Hp(this.u)}catch(a){}}return this.o.play()};
g.h.Xa=function(){var a=g.zC.prototype.Xa.call(this);a.view=this.u+"-"+this.A;return a};
g.h.addEventListener=function(a,b){this.o.addEventListener(a,b)};
g.h.removeEventListener=function(a,b){this.o.removeEventListener(a,b)};
g.h.Ro=function(){return this.o.Ro()};
g.h.Vj=function(a){this.o.Vj(a)};
g.h.Qo=function(){return this.o.Qo()};
g.h.playVideo=function(){return this.o.playVideo()};
g.h.wr=function(){this.o.wr()};
g.h.sr=function(){this.o.sr()};
g.h.Bh=function(){return this.o.Bh()};
g.h.ib=function(){return this.o.ib()};
g.h.Yc=function(){return this.o.Yc()};
g.h.Ip=function(a){this.o.Ip(a)};
g.h.Bp=function(){this.o.Bp()};
g.h.getPlaybackRate=function(){return this.o.getPlaybackRate()};
g.h.setPlaybackRate=function(a){return this.o.setPlaybackRate(a)};
g.h.Po=function(){return this.o.Po()};
g.h.setLoop=function(a){this.o.setLoop(a)};
g.h.canPlayType=function(a,b){return this.o.canPlayType(a,b)};
g.h.Ch=function(){return this.o.Ch()};
g.h.Tl=function(){return this.o.Tl()};
g.h.Af=function(){return this.o.Af()};
g.h.Tn=function(){return this.o.Tn()};
g.h.Nh=function(a){this.o.Nh(a)};
g.h.So=function(){return this.o.So()};
g.h.load=function(){this.o.load()};
g.h.pause=function(){this.o.pause()};
g.h.je=function(){return this.o.je()};
g.h.Un=function(){return this.o.Un()};
g.h.Xe=function(){return this.o.Xe()};
g.h.Wj=function(){return this.o.Wj()};
g.h.Sl=function(){return this.o.Sl()};
g.h.Hi=function(){return this.o.Hi()};
g.h.Ws=function(){return this.o.Ws()};
g.h.togglePictureInPicture=function(){this.o.togglePictureInPicture()};
g.h.jh=function(){return this.o.jh()};
g.h.Xj=function(){return this.o.Xj()};
g.h.setSize=function(a){return this.o.setSize(a)};
g.h.getVolume=function(){return this.o.getVolume()};
g.h.setVolume=function(a){this.o.setVolume(a)};
g.h.setAttribute=function(a,b){this.o.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.o.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.o.hasAttribute(a)};
g.h.Ok=ba(6);g.h.Hm=ba(8);g.h.bj=ba(3);g.h.Tk=ba(10);g.h.il=function(){this.o.il()};
g.h.ul=function(a){return this.o.ul(a)};
g.h.xs=function(){return this.o.xs()};
g.h.stopVideo=function(){this.o.stopVideo()};
g.h.xr=function(a){this.o.xr(a)};g.r(TL,g.A);g.h=TL.prototype;g.h.isFinished=function(){return 6==this.w.status};
g.h.getStatus=function(){return this.w};
g.h.Xh=function(){var a=this.o.getVideoData(),b=this.u.getVideoData(),c;if((c=a.wa)&&!(c=!a.ia)){c=a.ia;for(var d=!1,e=!1,f=g.q(Object.values(c.o)),k=f.next();!k.done;k=f.next())k=k.value,k.info.audio&&k.index.Gb()&&(d=!0),k.info.video&&k.index.Gb()&&(e=!0);c.o["0"]&&(e=!0);c=d&&e}if(c)if(this.o.o){k=Ska(this.R,this.o,this.u,this.F);f=UL(this);c=f.pE;e=f.Vz;d=f.oE;f=f.Uz;if(!this.I){var l=1E3*this.u.getCurrentTime(),m=this.o.getCurrentTime();m=1E3*(d-c-m);k&&"in-the-past"==k&&(m=0);a=a.isAd();var n=
this.u.B;n.o&&(n=n.o,n.P={mO:lH(n,"glrem","nst."+l.toFixed()+";rem."+m.toFixed()+";ca."+ +a),Wz:l,cO:m,isAd:a});this.I=!0}k?SL(this,"cannot_apply_"+k+";transitionTimeMs."+this.F):2==this.w.status?ZL(this):(a=this.o.G)&&cu(a)&&(!au(a)&&g.ll()?SL(this,"mse_closed"):b.ia&&Qx(b.ia)&&a.u&&!a.u.Rn()?SL(this,"encr_upgrade"):(b=this.o.o,b.Af()?SL(this,"elem_ended"):0>e?SL(this,"next_player_future"):(this.G=d,this.A=gu(a,c,d,!0),this.B=gu(a,e,f,!1),a=this.u.getVideoData().clientPlaybackNonce,this.o.Qa("gaplessPrep",
"cpn."+a),iK(this.o,this.A),QJ(this.o,VL(b,c,d,!this.o.getVideoData().isAd())),WL(this,2),ZL(this))))}else SL(this,"no-elem")};
g.h.bk=function(a){var b=YL(this),c=a==b.ZB;b=c?this.A.o:this.A.u;c=c?this.B.o:this.B.u;if(b.isActive()&&!c.isActive()){var d=this.G;St(a.wd(),d-.01)&&(WL(this,4),b.setActive(!1),this.u.Qa("sbh","1"),c.setActive(!0));a=this.B.u;this.B.o.isActive()&&a.isActive()&&WL(this,5)}};
g.h.EA=function(){4<=this.w.status&&6>this.w.status&&SL(this,"player-reload-after-handoff")};
g.h.X=function(){XL(this);this.o.unsubscribe("newelementrequired",this.EA,this);if(this.A){var a=this.A.u;this.A.o.o.unsubscribe("updateend",this.bk,this);a.o.unsubscribe("updateend",this.bk,this)}g.A.prototype.X.call(this)};
g.h.rz=function(a){g.eH(a,128)&&SL(this,"player-error-event")};g.r($L,g.A);$L.prototype.clearQueue=function(){this.B&&this.B.reject("Queue cleared");aM(this)};
$L.prototype.X=function(){aM(this);g.A.prototype.X.call(this)};g.r(eM,g.A);eM.prototype.L=function(){};
eM.prototype.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)dM(this,a);else{b=this.A.kb();var d=b==this.w?this.B:null;hM(this,!1);this.G=a;null!=c&&this.C.start(c);b&&(this.B=d||b.getPlayerState(),bK(b),this.w=b)}};
eM.prototype.X=function(){hM(this,!1);jM(this);g.A.prototype.X.call(this)};
var Wka=0;g.r(lM,g.A);g.h=lM.prototype;g.h.II=function(a){if(this.w==this.o.kb()){var b=this.G.get(a);b||mM(this,"e.unexpectedCueRangeTriggered");rM(this,b.target,b.Ge,a)}else{b=this.u.find(function(e){return e.Ne.Pb==a});
var c=b.Ne,d=c.target;c=c.Ge;d?rM(this,d,c,a):ala(this,b.Nb,c,a)}};
g.h.rM=function(){var a=this.P;tM(this);a&&(sM(this,a)||mM(this,"e.unexpectedPresentingPlayer"),this.o.kb().addCueRange(a.Ne.Pb))};
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)kM(this,a);else{b=this.o.kb();var d=b==this.B?this.I:null;wM(this,!1);this.U=a;null!=c&&this.R.start(c);b&&(this.I=d||b.getPlayerState(),bK(b),this.B=b)}};
g.h.JI=function(a){var b=this;if(g.eH(a,128)){var c=this.u.find(function(d){return sM(b,d)});
c&&(tM(this),a=new g.LC(8),c=uM(this,c)/1E3,xM(this,c,a))}};
g.h.X=function(){wM(this,!1);BM(this);g.A.prototype.X.call(this)};
var Zka=0;g.r(EM,g.A);EM.prototype.get=function(a){CM(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
EM.prototype.set=function(a,b,c){this.remove(a,!0);CM(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.N)()+c);for(this.data.push(a);this.data.length>this.w;)(c=this.data.shift())&&FM(this,c,!0);DM(this)};
EM.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(FM(this,c,b),g.ib(this.data,function(d){return d.key===a}),DM(this))};
EM.prototype.X=function(){var a=this;g.A.prototype.X.call(this);this.data.forEach(function(b){FM(a,b,!0)});
this.data=[]};g.r(KM,g.A);KM.prototype.w=function(a){this.u=a[a.length-1].intersectionRatio};
KM.prototype.X=function(){g.A.prototype.X.call(this);this.u=null;this.o&&this.o.disconnect()};var w2;w2={};g.LM=(w2.STOP_EVENT_PROPAGATION="html5-stop-propagation",w2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",w2.IV_DRAWER_OPEN="ytp-iv-drawer-open",w2.MAIN_VIDEO="html5-main-video",w2.VIDEO_CONTAINER="html5-video-container",w2.HOUSE_BRAND="house-brand",w2);g.r(NM,g.R);g.h=NM.prototype;g.h.KF=function(){this.G=new g.uh(0,0,0,0);this.w=new g.uh(0,0,0,0)};
g.h.fm=function(a){g.Kn(this.element,arguments)};
g.h.Ce=function(){if(this.u){var a=this.getPlayerSize();if(!a.isEmpty()){var b=this.w;b=!g.Wd(a,new g.Vd(b.width,b.height));var c=VM(this);b&&(this.w.width=a.width,this.w.height=a.height);a=this.app.M();(c||b||a.ma)&&this.app.u.S("resize",this.getPlayerSize())}}};
g.h.TI=function(a,b){this.updateVideoData(b)};
g.h.LF=function(a){a.getVideoData()&&this.updateVideoData(a.getVideoData())};
g.h.updateVideoData=function(a){if(this.u){var b=this.app.M();sl&&(this.u.setAttribute("x-webkit-airplay","allow"),a.title?this.u.setAttribute("title",a.title):this.u.removeAttribute("title"));zB(a)?this.u.setAttribute("disableremoteplayback",""):this.u.removeAttribute("disableremoteplayback");this.u.setAttribute("controlslist","nodownload");b.wo&&a.videoId&&(this.u.poster=a.uc("default.jpg"));g.P(b.experiments,"html5_send_origin_for_progressive")&&a.wa&&!a.wa.o&&this.u.setAttribute("crossorigin",
"anonymous")}b=g.FB(a,"yt:bgcolor");this.A.style.backgroundColor=b?b:"";this.U=Hy(g.FB(a,"yt:stretch"));this.V=Hy(g.FB(a,"yt:crop"),!0);g.K(this.element,"ytp-dni",a.lc);this.Ce()};
g.h.setGlobalCrop=function(a){this.L=Hy(a,!0);this.Ce()};
g.h.getPlayerSize=function(){var a=this.app.M(),b=this.app.u.isFullscreen();if(b&&jl())return new g.Vd(window.outerWidth,window.outerHeight);if(b||a.bn){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.F&&this.F.media==a||(this.F=window.matchMedia(a));var c=this.F&&this.F.matches}if(c)return new g.Vd(window.innerWidth,window.innerHeight)}else{if(!isNaN(this.B.width)&&!isNaN(this.B.height))return this.B.clone();if(this.ba&&this.Z&&!this.app.isWidescreen())for(a=
0;a<this.ba.length;a++)if(b=this.ba[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.U)?QM(this):this.U};
g.h.getVideoContentRect=function(a){var b=this.getPlayerSize();a=RM(this,b,this.getVideoAspectRatio(),a);return new g.uh((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.h.vF=function(){this.u&&UM(this);TM(this)!=this.R&&this.Ce()};
g.h.UI=function(){UM(this)};
g.h.setUseFastSizingOnWatch=function(a){this.Z!=a&&(this.Z=a,this.Ce())};
g.h.setInternalSize=function(a){g.Wd(this.B,a)||(this.B=a,this.Ce())};
g.h.X=function(){this.I&&g.Wo(this.I);OM(this);g.R.prototype.X.call(this)};WM.prototype.click=function(a){this.o.has(a);this.u.has(a);var b=g.ks();b&&a.visualElement&&g.Gs(b,a.visualElement)};CN.prototype.w=function(){};g.r(DN,CN);DN.prototype.w=function(){return{}};
DN.prototype.u=function(a){return a.subscribeEndpoint};
DN.prototype.o=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};g.r(EN,CN);EN.prototype.w=function(){return{}};
EN.prototype.u=function(a){return a.unsubscribeEndpoint};
EN.prototype.o=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};g.r(FN,CN);FN.prototype.u=function(a){return a.playlistEditEndpoint};
FN.prototype.o=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.r(GN,CN);GN.prototype.u=function(a){return a.webPlayerShareEntityServiceEndpoint};
GN.prototype.o=function(a,b){b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity)};HN.prototype.fetch=function(a,b){var c=this,d=new Request(a,b),e=od(g.qd(5,Gd(d.url,"key")));this.A.o.w("/client_streamz/youtube/web/network/one_platform_requests",e);return Gf(fetch(d).then(function(f){return ela(c,f,e)})["catch"](function(f){g.ar(f)}))};g.r(JN,g.O);g.h=JN.prototype;g.h.KI=function(a){a=Qp(a);if(!Ud(a,this.B)){var b=2;this.F&&(b|=8);this.B=a;this.Sb(b,!0)}};
g.h.DJ=function(){this.F&&this.Sb(8,!0);this.Sb(2,!1)};
g.h.Ct=function(a){var b=Qp(a);Ud(b,this.B)||(this.B=b,(a=g.Np(a))&&this.U(a)&&(this.Sb(4,!0),this.o.Za(this.A),this.A=this.o.K(this.w,"mouseover",this.Az),this.L=this.o.K(this.w,"mouseout",this.Az)))};
g.h.Az=function(a){a=Pp(a);a&&this.U(a)||(this.B=new g.Td(NaN,NaN),KN(this))};
g.h.dG=function(){this.Sb(1,!0)};
g.h.FE=function(a){a=g.Np(a);a instanceof Element&&!(0<a.tabIndex)||this.Sb(1,!0)};
g.h.zz=function(){this.F=!0;this.o.Za(this.C);this.C=this.o.K(document,"mouseup",this.LI)};
g.h.LI=function(){this.F=!1;this.Sb(8,!1);this.o.Za(this.C);this.C=this.o.K(this.w,"mousedown",this.zz)};
g.h.Bz=function(a){if(a=(a=a.changedTouches)&&a[0])this.V=a.identifier,this.o.Za(this.G),this.G=this.o.K(this.w,"touchend",this.MI,void 0,!0),this.Sb(1024,!0)};
g.h.MI=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier==this.V){var d=c;break}}d&&(this.o.Za(this.G),this.G=this.o.K(this.w,"touchstart",this.Bz,void 0,!0),this.Sb(1024,!1))};
g.h.Sb=function(a,b){this.ea();var c=!this.u;b?(this.u|=a,a&1&&this.I.start(),a&2&&this.P.start()):(this.u&=~a,a&1&&this.I.stop(),a&2&&this.P.stop(),a&512&&this.R.stop());this.u&512&&!(this.u&128)&&g.An(this.R,this.aa);var d=!this.u;c!=d&&this.S("autohideupdate",d)};
g.h.toString=function(){return g.O.prototype.toString.call(this)};g.r(g.LN,g.A);g.h=g.LN.prototype;g.h.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.Zp(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.o&&this.o()):this.element.Ga()||(MN(this,!0),this.state=1,a?this.delay.start(a):this.Zp()))};
g.h.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Ga()&&(MN(this,!0),this.state=4,this.delay.start(this.A)))};
g.h.Zp=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:MN(this,!1);this.state=3;this.delay.start(this.w);break;case 3:this.state=null;this.o&&this.o();break;case 4:this.element.hide();MN(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.u&&this.u()}};
g.h.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.Zp()};
g.h.X=function(){this.element.ea()||this.element.element.removeAttribute("aria-hidden");g.A.prototype.X.call(this)};g.r(g.NN,g.R);
g.NN.prototype.xa=function(){var a=this.api.getVideoData(),b=this.api.M();if(a.lc&&a.gg)var c=b.F?[{D:"div",H:"ytp-large-play-button-circle",O:{style:"background-color: "+a.gg}},g.X?{D:"div",Y:["ytp-icon","ytp-icon-dni-large-play-button"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"4 -6 60 60",width:"100%"},J:[{D:"path",O:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}}]}]:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-dni-large-lozenge-play-button"]}:{D:"svg",O:{height:"100%",version:"1.1",
viewBox:"0 0 68 48",width:"100%"},J:[{D:"path",H:"ytp-dni-large-play-button-bg",O:{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"}},{D:"path",O:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.F&&!b.B?
c=[g.X?{D:"div",Y:["ytp-icon","ytp-icon-large-play-button-hover"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},J:[{D:"path",H:"ytp-large-play-button-bg",O:{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"}},
{D:"path",O:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:(g.K(this.element,"ytp-touch-device",b.o),c=[b.B?g.X?{D:"div",Y:["ytp-icon","ytp-icon-house-brand-large-play-button"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},J:[{D:"path",H:"ytp-large-play-button-bg",O:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{D:"path",O:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:g.X?{D:"div",Y:["ytp-icon","ytp-icon-large-play-button"]}:{D:"svg",O:{height:"100%",version:"1.1",
viewBox:"0 0 68 48",width:"100%"},J:[{D:"path",H:"ytp-large-play-button-bg",O:{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"}},{D:"path",O:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]);this.la("largePlayButtonChildren",
c);a.lc&&a.gg&&!b.F&&this.o["ytp-dni-large-play-button-bg"].setAttribute("fill",a.gg)};g.r(ON,g.R);g.h=ON.prototype;g.h.show=function(){var a=this;this.Ga()||(this.B.K(this.u,"videodatachange",function(){return g.An(a.w)}),this.B.K(this.u,"videoplayerreset",function(){return g.An(a.w)}));
g.R.prototype.show.call(this)};
g.h.hide=function(){this.B&&g.Pr(this.B);g.R.prototype.hide.call(this)};
g.h.WI=function(){g.An(this.w)};
g.h.XI=function(a){var b=this.u.M();g.P(b.experiments,"disable_new_pause_state3")&&kz(b)&&(a=a.state.isCued()&&!a.Gh.isCued()||g.TK(this.u)&&g.V(a.state,2),g.xh(this.element,"transition-delay",a?"2s":""));g.An(this.w)};
g.h.JN=function(){g.An(this.w)};
g.h.EM=function(){this.A.stop();this.hide();g.An(this.w)};
g.h.Dz=function(){var a=g.QK(this.u);if(3==this.u.getPresentingPlayerType()&&(a.ab()||g.V(a,4)))var b=!0;else(b=g.LK(this.u).u.get("ypc"))&&b.G?b=!0:(b=this.u.M(),b=g.V(a,2)&&NK(this.u)&&b.Sa?!0:!1);b?(b=!0,this.C.hide()):(this.C.show(),a.isCued()&&2!=this.u.getPresentingPlayerType()?b=!0:(b=!g.P(this.u.M().experiments,"disable_new_pause_state3"),b=!(!g.V(a,2)||NK(this.u)||b&&g.PS(this.u.app))||g.V(a,1024)?!0:!1));b?(this.A.show(),a=this.u.getVideoData(),this.UO(this.u.getPlaylist(),a)):(this.A.hide(),
g.V(a,1)||this.A.stop())};
g.h.UO=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=g.q(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof g.dB&&!c.videoId)){var d=g.RK(this.u).getPlayerSize();var e=g.lz(),f=d.width*e;e*=d.height;if(1280<f||720<e)if(d=c.uc("maxresdefault.jpg"))break;if(640<f||480<e)if(d=c.uc("maxresdefault.jpg"))break;if(320<f||180<e)if(d=c.uc("sddefault.jpg")||c.uc("hqdefault.jpg")||c.uc("mqdefault.jpg"))break;if(d=c.uc("default.jpg"))break}this.F.style.backgroundImage=
d?"url("+d+")":""};g.r(QN,g.Nr);QN.prototype.B=function(){this.A();var a=this.o.getVideoData();if(a.isValid()){var b=[];this.o.M().P||b.push({src:a.uc("mqdefault.jpg"),sizes:"320x180"});this.u.metadata=new MediaMetadata({title:a.title,artist:a.author,artwork:b});b=a=null;g.TK(this.o)&&(this.w["delete"]("nexttrack"),this.w["delete"]("previoustrack"),a=(0,g.x)(function(){this.o.nextVideo()},this),b=(0,g.x)(function(){this.o.previousVideo()},this));
PN(this,"nexttrack",a);PN(this,"previoustrack",b)}};
QN.prototype.A=function(){var a=g.QK(this.o);a=a.isError()?"none":g.SC(a)?"playing":"paused";this.u.playbackState=a};
QN.prototype.X=function(){this.u.playbackState="none";this.u.metadata=null;for(var a=g.q(this.w),b=a.next();!b.done;b=a.next())PN(this,b.value,null);g.Nr.prototype.X.call(this)};g.r(RN,g.R);RN.prototype.V=function(a,b){SN(this,b);this.C&&TN(this,this.C)};
RN.prototype.U=function(a){var b=this.L.getVideoData();this.w!=b.videoId&&SN(this,b);this.u&&TN(this,a.state);this.C=a.state};
RN.prototype.Zb=function(){this.B.show();this.G=(0,g.G)()};
RN.prototype.R=function(){this.B.hide();this.w&&(this.A[this.w]=(this.A[this.w]||0)+((0,g.G)()-this.G));this.G=0};g.r(g.VN,g.R);g.VN.prototype.X=function(){this.u=null;g.R.prototype.X.call(this)};g.r(g.WN,g.Uu);g.h=g.WN.prototype;g.h.show=function(){var a=YN(this);g.Uu.prototype.show.call(this);this.ga&&(this.G.K(window,"blur",this.eb),this.G.K(document,"click",this.aJ));a||this.S("show",!0)};
g.h.hide=function(){var a=YN(this);g.Uu.prototype.hide.call(this);XN(this);a&&this.S("show",!1)};
g.h.Zb=function(a,b){this.u=a;this.U.show();b?(this.I||(this.I=this.G.K(this.ba,"appresize",this.Vv)),this.Vv()):this.I&&(this.G.Za(this.I),this.I=null)};
g.h.IE=function(){this.u&&(this.u.getAttribute("aria-haspopup"),this.u.setAttribute("aria-expanded",!0),g.P(this.ba.M().experiments,"embeds_enable_new_playlist_killswitch")?document.activeElement&&g.Ae(this.u,document.activeElement)&&this.focus():this.focus())};
g.h.Vv=function(){g.fC(this.ba).kk(this.element,this.u)};
g.h.eb=function(){var a=YN(this);XN(this);this.U.hide();a&&this.S("show",!1)};
g.h.gf=function(a,b){YN(this)?this.eb():this.Zb(a,b)};
g.h.aJ=function(a){var b=Op(a);b&&(g.Ae(this.element,b)||this.u&&g.Ae(this.u,b)||!g.IM(a))||this.eb()};g.r(ZN,g.WN);g.h=ZN.prototype;g.h.show=function(){var a=this.Ga();g.WN.prototype.show.call(this);a||(this.B.K(this.w,"presentingplayerstatechange",this.Gt),this.B.K(this.w,"videodatachange",this.Gt),this.Gt())};
g.h.hide=function(){this.B&&(g.Pr(this.B),g.WN.prototype.hide.call(this))};
g.h.Gt=function(){var a=this.w.getVideoData(),b=a.Wh,c;for(c=0;c<b.length;c++){var d=this.A[c];d||(d=new g.R({D:"button",Y:["ytp-multicam-menu-item","ytp-button"],O:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},J:[{D:"div",H:"ytp-multicam-menu-item-title",W:"{{cameraName}}"}]}),d.ka("click",g.Ta(this.yK,c),this),d.ca(this.C),this.A[c]=d);var e=b[c],f=e.id;if(f!=d.element.getAttribute("data-id")){var k=e.thumbnail_url;!k&&f&&(k=jz(this.w.M(),f,"default.jpg"));d.element.style.backgroundImage=
k?"url("+k+")":""}d.update({cameraName:e.title,videoId:f,selected:f==a.videoId?!0:null})}for(;c<this.A.length;)this.A.pop().dispose();c=g.QK(this.w);a=b.length||!a.Gb();g.SC(c)||g.V(c,4)||a||!YN(this)||this.gf()};
g.h.yK=function(a){var b=this.w.getVideoData(),c=this.w;a=b.Wh[a];b=g.W(c.app,1).getVideoData();var d=c.getCurrentTime();a.id==b.videoId?g.W(c.app)!=g.W(c.app,1)&&(g.cM(c.app,1),b.sa||c.seekTo(d)):(g.cM(c.app,4),c.app.loadVideoByPlayerVars({videoId:a.id,title:b.title,start:b.sa?null:d,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:b.Qz}}}},4))};
g.h.focus=function(){for(var a=this.w.getVideoData(),b=a.Wh,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.A[c].focus();break}};
g.h.X=function(){g.Le(this.A);g.WN.prototype.X.call(this)};g.r(bO,g.R);bO.prototype.F=function(a){this.w("newdata"==a)};
bO.prototype.w=function(a){var b=this.C.getVideoData(),c=b.Wh,d=g.QK(this.C);d=(g.SC(d)||g.V(d,4))&&0<c.length;g.Tu(this,d);a&&(this.A=!0);if(d){this.A&&g.An(this.B);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id==b.videoId){a=c[e].title;d=g.GM("\u6b63\u5728\u89c2\u770b\u7b2c $CAMERA_INDEX \u53f0\u6444\u50cf\u673a\u7684\u753b\u9762\uff08\u5171 $CAMERA_COUNT \u53f0\uff09",{CAMERA_INDEX:String(e+1),CAMERA_COUNT:String(c.length)})+"\n";break}this.update({text:d+a,preview:b.uc("default.jpg")});rO(this.u)}else this.B.stop()};
bO.prototype.G=function(){QR(this.u,this.element,"\u8fd8\u6709\u5176\u4ed6\u6444\u50cf\u673a\u753b\u9762");this.A=!1};g.r(g.nO,g.R);g.h=g.nO.prototype;g.h.dk=function(){oO(this);this.F&&(this.Za(this.F),this.F=null);this.T=this.u.getVideoData(1);if(this.w=this.u.getPlaylist())this.w.subscribe("shuffle",this.dk,this),this.F=this.K(this.u,"progresssync",this.xF);this.C=pO(this);mO(this);this.Rf(g.RK(this.u).getPlayerSize())};
g.h.Rf=function(a){a=void 0===a?g.RK(this.u).getPlayerSize():a;var b=g.TK(this.u)||this.A&&g.kL(this.u)||qO(this);g.Tu(this,b&&(this.A||400<=a.width))};
g.h.ZI=function(a){var b=!0;this.I?b=g.hO(a,this.u):g.Rp(a);b&&(this.A&&5==this.u.getPresentingPlayerType()?this.u.S("ytoprerollinternstitialnext"):this.A?this.u.nextVideo(!0):this.C?this.u.seekTo(0):this.u.previousVideo(!0))};
g.h.xF=function(){var a=pO(this);a!=this.C&&(this.C=a,mO(this))};
g.h.X=function(){this.B&&(this.B(),this.B=null);oO(this);g.R.prototype.X.call(this)};g.r(sO,g.R);sO.prototype.Rf=function(a){a=this.B&&400<=a.width;g.Tu(this,a);g.pL(this.u,this.element,a)};
sO.prototype.C=function(){if(this.A.Ga())this.A.eb();else{var a=g.AL(g.LK(this.u));a&&!a.loaded&&(a.Oc("tracklist",{includeAsr:!0}).length||a.load());g.oL(this.u,this.element);this.A.Zb(this.element)}};
sO.prototype.w=function(){var a=(a=g.W(this.u.app))?!!(a.T.Ba&&a.T.Ba.video&>(a.T.Ba.video)):!1;var b=this.u.getPresentingPlayerType(),c=2!=b&&3!=b,d=g.XK(this.u),e=c&&!!g.WK(g.LK(this.u));b=e&&1==d.displayMode;d=e&&2==d.displayMode;c=(e=b||d)||!c?null:this.u.getPlaybackQuality();g.K(this.element,"ytp-hdr-quality-badge",a);g.K(this.element,"ytp-hd-quality-badge",!a&&("hd1080"==c||"hd1440"==c));g.K(this.element,"ytp-4k-quality-badge",!a&&"hd2160"==c);g.K(this.element,"ytp-5k-quality-badge",!a&&"hd2880"==
c);g.K(this.element,"ytp-8k-quality-badge",!a&&"highres"==c);g.K(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.K(this.element,"ytp-3d-badge",!a&&e&&d)};g.r(g.uO,g.Wu);g.uO.prototype.L=function(){this.setValue(!this.w);this.S("select",this.w)};
g.uO.prototype.getValue=function(){return this.w};
g.uO.prototype.setValue=function(a){this.w=a;this.element.setAttribute("aria-checked",this.w)};g.r(vO,g.uO);vO.prototype.C=function(){var a=this.u.getPresentingPlayerType();if(2!=a&&3!=a&&g.kL(this.u))this.B||(g.jP(this.F,this),this.B=!0,this.A.push(this.K(this.u,"videodatachange",this.C)),this.A.push(this.K(this.u,"videoplayerreset",this.C)),this.A.push(this.K(this.u,"onPlaylistUpdate",this.C)),this.A.push(this.K(this.u,"autonavchange",this.G)),a=this.u.getVideoData(),this.G(a.autonavState));else if(this.B){g.kP(this.F,this);this.B=!1;a=g.q(this.A);for(var b=a.next();!b.done;b=a.next())this.Za(b.value)}};
vO.prototype.G=function(a){this.setValue(1!=a)};
vO.prototype.I=function(a){var b=this.u;a=a?2:1;b.app.u.na("onAutonavChangeRequest",1!=a);a&>(b.app,a)};
vO.prototype.X=function(){this.B&&g.kP(this.F,this);g.uO.prototype.X.call(this)};g.r(wO,g.Uu);wO.prototype.oa=function(){this.S("size-change")};
wO.prototype.focus=function(){this.ba.focus()};
wO.prototype.ua=function(){this.S("back")};g.r(g.xO,wO);g.xO.prototype.da=function(){this.G.S("size-change")};
g.xO.prototype.focus=function(){for(var a=0,b=0;b<this.w.length;b++)if("true"==this.w[b].element.getAttribute("aria-checked")){a=b;break}this.w[a].focus()};g.r(g.BO,g.WN);g.h=g.BO.prototype;g.h.show=function(){g.WN.prototype.show.call(this);this.zk()};
g.h.hide=function(){g.WN.prototype.hide.call(this);1<this.w.length&&g.GO(this)};
g.h.zk=function(){HO(this);this.Ga()&&(DO(this),g.Rh(this.element,this.size))};
g.h.Hf=function(){var a=this.w.pop(),b=CO(this);EO(this,a,b,!0)};
g.h.EO=function(a,b,c){this.F.dispose();this.F=null;g.J(this.element,"ytp-popup-animating");c?(g.J(a.element,"ytp-panel-animate-forward"),g.Ln(b.element,"ytp-panel-animate-back")):(g.J(a.element,"ytp-panel-animate-back"),g.Ln(b.element,"ytp-panel-animate-forward"));g.Rh(this.element,this.size);this.C=new g.H(g.Ta(this.XJ,a,b),250,this);this.C.start()};
g.h.XJ=function(a){g.Ln(this.element,"ytp-popup-animating");g.Qu(a);g.Mn(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);this.C.dispose();this.C=null};
g.h.YI=function(a){if(!g.Sp(a))switch(g.Tp(a)){case 27:this.eb();g.Rp(a);break;case 37:1<this.w.length&&this.Hf();g.Rp(a);break;case 39:g.Rp(a)}};
g.h.focus=function(){CO(this).focus()};
g.h.X=function(){g.WN.prototype.X.call(this);this.F&&this.F.dispose();this.C&&this.C.dispose()};g.r(g.IO,g.Wu);g.h=g.IO.prototype;g.h.open=function(){g.FO(this.u,this.F)};
g.h.Cb=function(a){JO(this);this.w[a].element.setAttribute("aria-checked",!0);this.ob(this.Ye(a));this.C=a};
g.h.Tq=function(a,b,c){b=new g.Wu({D:"div",Y:["ytp-menuitem"],O:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},J:[{D:"div",Y:["ytp-menuitem-label"],W:"{{label}}"}]},b,this.Ye(a,!0));b.ka("click",(0,g.x)(this.cJ,this,a));return b};
g.h.enable=function(a){this.I?a||(this.I=!1,this.ek(!1)):a&&(this.I=!0,this.ek(!0))};
g.h.ek=function(a){a?g.jP(this.u,this):g.kP(this.u,this)};
g.h.hd=function(a){this.S("select",a)};
g.h.cJ=function(a){this.hd(a)};
g.h.Ye=function(a){return a.toString()};
g.h.bJ=function(a){g.Sp(a)||39!=g.Tp(a)||(this.open(),g.Rp(a))};
g.h.X=function(){this.I&&g.kP(this.u,this);g.Wu.prototype.X.call(this);for(var a in this.w)this.w[a].dispose()};g.r(LO,g.IO);g.h=LO.prototype;g.h.gm=function(){var a=this.A.getPresentingPlayerType();if(2!=a&&3!=a&&(this.G=g.VK(this.A),a=this.A.getAvailableQualityLevels(),g.hL(this.A)&&g.iL(this.A)&&a.unshift("missing-qualities"),Kka(this.A)&&a.unshift("inline-survey"),g.KO(this,a),a.length)){this.OA();this.enable(!0);return}this.enable(!1)};
g.h.OA=function(){var a=this.A.getPreferredQuality();this.w[a]&&(this.B=this.A.getPlaybackQuality(),this.Cb(a),"auto"==a&&this.ob(this.Ye(a)))};
g.h.hd=function(a){"missing-qualities"!=a&&(g.IO.prototype.hd.call(this,a),this.A.setPlaybackQuality(a),this.u.eb(),this.gm())};
g.h.Tq=function(a,b,c){var d=this;if("inline-survey"!=a)return g.IO.prototype.Tq.call(this,a,b,c);a=[{D:"span",W:"\u6ee1\u610f\u5417\uff1f"}];c={};for(var e=g.q([!0,!1]),f=e.next();!f.done;c={Um:c.Um},f=e.next())c.Um=f.value,f=new g.R({D:"span",H:"ytp-menuitem-inline-survey-response",J:[c.Um?g.kN():hN()],O:{tabindex:"0",role:"button"}}),f.ka("click",function(k){return function(){var l=g.W(d.A.app);l&&(l.Qa("iqsr",""+ +k.Um),l.getVideoData().Rx=!0);d.u.eb();d.gm()}}(c)),a.push(f);
return new g.Wu({D:"div",H:"ytp-menuitem",O:{"aria-disabled":!0},J:[{D:"div",Y:["ytp-menuitem-label"],J:a}]},b)};
g.h.Ye=function(a,b){b=void 0===b?!1:b;if("missing-qualities"==a)return{D:"a",O:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.A.M().C},W:"\u7f3a\u5c11\u9009\u9879\uff1f"};if("inline-survey"==a)return"";var c=[MO(this,a)],d=this.A.getPreferredQuality();b||"auto"!=d||"auto"!=a||(c.push(" "),c.push(MO(this,this.B,["ytp-menu-label-secondary"])));return{D:"div",J:c}};g.r(NO,g.R);g.h=NO.prototype;g.h.gJ=function(a){if(!g.Sp(a)){switch(g.Tp(a)){case 37:case 40:var b=-this.I;break;case 39:case 38:b=this.I;break;default:return}this.Xi(this.u+b);g.Rp(a)}};
g.h.eJ=function(a){var b=this.u;b+=0>(a.deltaX||-a.deltaY)?-this.G:this.G;this.Xi(b);g.Rp(a)};
g.h.fJ=function(a){a=(a-g.Jh(this.w).x)/this.L*this.C+this.minimumValue;this.Xi(a)};
g.h.Xi=function(a,b){b=void 0===b?"":b;var c=g.Pd(a,this.minimumValue,this.maximumValue);""==b&&(b=c.toString());this.la("valuenow",c);this.la("valuetext",b);this.U.style.left=(c-this.minimumValue)/this.C*(this.L-this.R)+"px";this.u=c};
g.h.focus=function(){this.V.focus()};g.r(PO,NO);PO.prototype.Z=function(){this.B.setPlaybackRate(this.u,!0)};
PO.prototype.Xi=function(a){NO.prototype.Xi.call(this,a,QO(this,a).toString());this.A&&(OO(this),this.aa())};
PO.prototype.ba=function(){var a=this.B.getPlaybackRate();QO(this,this.u)!=a&&(this.Xi(a),OO(this))};g.r(RO,g.Uu);RO.prototype.focus=function(){this.u.focus()};g.r(SO,wO);g.r(TO,g.IO);g.h=TO.prototype;g.h.Ye=function(a){return"1"==a?"\u6b63\u5e38":a.toLocaleString()};
g.h.Fz=function(){var a=this.A.getPresentingPlayerType();this.enable(2!=a&&3!=a);XO(this)};
g.h.ek=function(a){g.IO.prototype.ek.call(this,a);a?(this.R=this.K(this.A,"onPlaybackRateChange",this.cM),XO(this),VO(this,this.A.getPlaybackRate())):(this.Za(this.R),this.R=null)};
g.h.cM=function(a){var b=this.A.getPlaybackRate();this.L.includes(b)||WO(this,b);VO(this,a)};
g.h.hd=function(a){g.IO.prototype.hd.call(this,a);a==this.B?this.A.setPlaybackRate(this.G,!0):this.A.setPlaybackRate(parseFloat(a),!0);this.u.Hf()};g.r(YO,g.uO);YO.prototype.Gb=function(){var a=g.YK(g.LK(this.N));return void 0!==a&&a.loaded};
YO.prototype.xa=function(){void 0!==g.YK(g.LK(this.N))&&3!==this.N.getPresentingPlayerType()?this.u||(g.jP(this.A,this),this.u=!0):this.u&&(g.kP(this.A,this),this.u=!1);this.setValue(this.Gb())};
YO.prototype.B=function(a){this.Gb();a?this.N.loadModule("annotations_module"):this.N.unloadModule("annotations_module")};
YO.prototype.X=function(){this.u&&g.kP(this.A,this);g.uO.prototype.X.call(this)};g.r(ZO,g.IO);ZO.prototype.xa=function(){var a=this.N.getAvailableAudioTracks();1<a.length?(g.KO(this,(0,g.Fc)(a,this.B)),this.tracks=g.xb(a,this.B,this),this.A.ob(a.length?" ("+a.length+")":""),this.S("size-change"),this.Cb(this.B(this.N.getAudioTrack())),this.enable(!0)):this.enable(!1)};
ZO.prototype.hd=function(a){g.IO.prototype.hd.call(this,a);this.N.setAudioTrack(this.tracks[a]);this.u.Hf()};
ZO.prototype.B=function(a){return a.toString()};var dsa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(dsa).reduce(function(a,b){a[dsa[b]]=b;return a},{});
var esa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(esa).reduce(function(a,b){a[esa[b]]=b;return a},{});
var fsa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(fsa).reduce(function(a,b){a[fsa[b]]=b;return a},{});var x2,gsa;x2=[{option:"#fff",text:"\u767d\u8272"},{option:"#ff0",text:"\u9ec4\u8272"},{option:"#0f0",text:"\u7eff\u8272"},{option:"#0ff",text:"\u9752\u8272"},{option:"#00f",text:"\u84dd\u8272"},{option:"#f0f",text:"\u6d0b\u7ea2\u8272"},{option:"#f00",text:"\u7ea2\u8272"},{option:"#080808",text:"\u9ed1\u8272"}];gsa=[{option:0,text:$O(0)},{option:.25,text:$O(.25)},{option:.5,text:$O(.5)},{option:.75,text:$O(.75)},{option:1,text:$O(1)}];
g.bP=[{option:"fontFamily",text:"\u5b57\u4f53\u7cfb\u5217",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"\u5b57\u4f53\u989c\u8272",options:x2},{option:"fontSizeIncrement",text:"\u5b57\u53f7",options:[{option:-2,text:$O(.5)},{option:-1,text:$O(.75)},{option:0,text:$O(1)},{option:1,
text:$O(1.5)},{option:2,text:$O(2)},{option:3,text:$O(3)},{option:4,text:$O(4)}]},{option:"background",text:"\u80cc\u666f\u989c\u8272",options:x2},{option:"backgroundOpacity",text:"\u80cc\u666f\u4e0d\u900f\u660e\u5ea6",options:gsa},{option:"windowColor",text:"\u7a97\u53e3\u989c\u8272",options:x2},{option:"windowOpacity",text:"\u7a97\u53e3\u4e0d\u900f\u660e\u5ea6",options:gsa},{option:"charEdgeStyle",text:"\u5b57\u7b26\u8fb9\u7f18\u6837\u5f0f",options:[{option:0,text:"\u65e0"},{option:4,text:"\u9634\u5f71"},
{option:1,text:"\u51f8\u8d77"},{option:2,text:"\u4e0b\u6c89"},{option:3,text:"\u8fb9\u6846"}]},{option:"textOpacity",text:"\u5b57\u4f53\u4e0d\u900f\u660e\u5ea6",options:[{option:.25,text:$O(.25)},{option:.5,text:$O(.5)},{option:.75,text:$O(.75)},{option:1,text:$O(1)}]}];g.r(aP,g.IO);g.h=aP.prototype;g.h.Cb=function(a){g.IO.prototype.Cb.call(this,a)};
g.h.Hz=function(a){return a.option.toString()};
g.h.getOption=function(a){return this.R[a]};
g.h.Ye=function(a){return this.getOption(a).text||""};
g.h.hd=function(a){g.IO.prototype.hd.call(this,a);this.S("settingChange",this.L,this.R[a].option)};
g.h.Iz=function(a){this.S("settingChange",this.L+"Override",!a);this.u.Hf()};g.r(cP,g.xO);cP.prototype.A=function(a,b){this.S("settingChange",a,b)};g.r(eP,g.IO);eP.prototype.B=function(a){return a.languageCode};
eP.prototype.Ye=function(a){return this.A[a].languageName||""};
eP.prototype.hd=function(a){this.S("select",a);g.GO(this.u)};g.r(gP,g.IO);g.h=gP.prototype;g.h.it=function(a){return g.Pb(a)?"__off__":a.displayName};
g.h.Ye=function(a){return"__off__"===a?"\u5173\u95ed":"__translate__"===a?"\u81ea\u52a8\u7ffb\u8bd1":"__contribute__"===a?"\u6dfb\u52a0\u5b57\u5e55":("__off__"===a?{}:this.tracks[a]).displayName};
g.h.hd=function(a){"__translate__"===a?this.A.open():"__contribute__"===a?(this.N.pauseVideo(),this.N.isFullscreen()&&this.N.toggleFullscreen(),a=g.FH(this.N.M(),this.N.getVideoData()),g.fO(a)):(this.N.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.IO.prototype.hd.call(this,a),this.u.Hf())};
g.h.xa=function(){var a=this.N.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.N.getVideoData();b=b&&b.sn;var c={};if(a||b){if(a){var d=this.N.getOption("captions","track");c=this.N.getOption("captions","tracklist",{includeAsr:!0});var e=this.N.getOption("captions","translationLanguages");this.tracks=g.xb(c,this.it,this);var f=(0,g.Fc)(c,this.it);if(e.length&&!g.Pb(d)){var k=d.translationLanguage;if(k&&k.languageName){var l=k.languageName;k=e.findIndex(function(m){return m.languageName===
l});
saa(e,k)}gla(this.A,e);f.push("__translate__")}e=this.it(d)}else this.tracks={},f=[],e="__off__";f.unshift("__off__");this.tracks.__off__={};b&&f.unshift("__contribute__");this.tracks[e]||(this.tracks[e]=d,f.push(e));g.KO(this,f);this.Cb(e);d&&d.translationLanguage?this.A.Cb(this.A.B(d.translationLanguage)):JO(this.A);a&&dP(this.B,this.N.getSubtitlesUserSettings());this.L.ob(c&&c.length?" ("+c.length+")":"");this.S("size-change");this.enable(!0)}else this.enable(!1)};
g.h.JH=function(a){var b=this.N.getOption("captions","track");b=g.Sb(b);b.translationLanguage=this.A.A[a];this.N.setOption("captions","track",b)};
g.h.IH=function(a,b){if("reset"===a)this.N.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.N.updateSubtitlesUserSettings(c)}fP(this,!0);this.G.start();dP(this.B,this.N.getSubtitlesUserSettings())};
g.h.WM=function(a){a||g.Cn(this.G)};
g.h.X=function(){g.Cn(this.G);g.IO.prototype.X.call(this)};g.r(hP,g.BO);hP.prototype.Zb=function(a){iP(this);0<this.B.w.length&&g.BO.prototype.Zb.call(this,a)};
hP.prototype.show=function(){g.BO.prototype.show.call(this);g.J(this.A.getRootNode(),"ytp-settings-shown")};
hP.prototype.hide=function(){g.BO.prototype.hide.call(this);g.Ln(this.A.getRootNode(),"ytp-settings-shown")};g.r(lP,g.A);lP.prototype.o=function(){var a=(0,g.N)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(g.Vn(hsa,a));1>a&&this.delay.start()};
var hsa=new g.Un(0,0,.4,0,.2,1,1,1),ila=/[0-9.-]+|[^0-9.-]+/g;g.r(rP,g.R);rP.prototype.F=function(){var a=this.u.app;a.u.na("SIZE_CLICKED",!a.Ic)};
rP.prototype.w=function(){g.Tu(this,this.u.app.oe&&!this.u.isFullscreen()&&3!=this.u.getPresentingPlayerType());if(this.Ga()){var a=this.u.isWidescreen();if(this.A!=a){var b=a?g.X?{D:"div",Y:["ytp-icon","ytp-icon-default-view"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,O:{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.X?{D:"div",Y:["ytp-icon","ytp-icon-theater-mode"]}:{D:"svg",O:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,O:{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"}}]};this.u.M().F||null==this.A?this.la("icon",b):qP(this.C,this.element,b);this.A=a;b=g.lO(this.u,"\u9ed8\u8ba4\u89c6\u56fe","t");var c=g.lO(this.u,"\u5267\u573a\u6a21\u5f0f","t");this.la("title",a?b:c);rO(this.B)}}};g.r(sP,g.R);sP.prototype.A=function(){this.w.toggleSubtitles()};
sP.prototype.u=function(){var a=!!g.AL(g.LK(this.w));g.Tu(this,a&&300<=g.RK(this.w).getPlayerSize().width);a&&this.la("pressed",!!this.w.getOption("captions","track").displayName)};g.r(g.uP,g.R);
g.uP.prototype.w=function(){var a=g.RK(this.u).getPlayerSize().width,b=a>=this.R&&(!this.C||!g.V(g.QK(this.u),64));g.Tu(this,b);g.K(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.u.getProgressState();if(b){b=this.u.getPresentingPlayerType();var c=g.HM(g.P(this.u.M().experiments,"halftime_ux_killswitch")?a.current:this.u.getCurrentTime(b,!1));this.F!=c&&(this.la("currenttime",c),this.F=c);b=g.HM(g.P(this.u.M().experiments,"halftime_ux_killswitch")?a.duration:this.u.getDuration(b,!1));
this.G!=b&&(this.la("duration",b),this.G=b)}this.C&&(a=a.isAtLiveHead,this.I!=a&&(this.I=a,this.w(),b=this.A.element,b.disabled=a,this.A.ob(this.L?"\u9996\u64ad":"\u76f4\u64ad"),a?this.B&&(this.B(),this.B=null,b.removeAttribute("title")):(b.title="\u8df3\u8f6c\u5230\u76f4\u64ad\u72b6\u6001\u3002",this.B=g.aO(this.U,this.A.element))))};
g.uP.prototype.aa=function(a,b){tP(this,b);this.w()};
g.uP.prototype.V=function(a){a.target==this.A.element&&(this.u.seekTo(Infinity),this.u.playVideo())};
g.uP.prototype.X=function(){this.B&&this.B();g.R.prototype.X.call(this)};g.r(vP,g.R);vP.prototype.onClick=function(){var a=g.W(this.N.app);a&&a.o&&a.o.Ws()};
vP.prototype.xa=function(){var a=g.W(this.N.app);g.Tu(this,!!a&&a.Ic);this.la("icon",this.N.Hi()?g.X?{D:"div",Y:["ytp-icon","ytp-icon-airplay-on"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,O:{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.X?{D:"div",Y:["ytp-icon","ytp-icon-airplay-off"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{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.r(wP,g.R);g.r(g.yP,g.R);g.yP.prototype.F=function(a){g.V(a.state,32)?zP(this,this.api.ue()):this.Ga()&&(g.V(a.state,16)||g.V(a.state,1))||this.u.hide()};
g.yP.prototype.G=function(){var a=g.QK(this.api);(g.V(a,32)||g.V(a,16))&&AP(this)};
g.yP.prototype.B=function(){this.A=NaN;AP(this)};
g.yP.prototype.hide=function(){this.w&&zP(this,null);g.R.prototype.hide.call(this)};g.r(BP,g.R);BP.prototype.onClick=function(){g.oL(this.u,this.element);this.u.na("onFullerscreenEduClicked")};
BP.prototype.xa=function(){this.u.isFullscreen()?this.w?this.A.hide():this.A.show():this.hide();g.pL(this.u,this.element,this.u.isFullscreen()&&!this.w)};g.r(g.CP,g.R);g.h=g.CP.prototype;g.h.onClick=function(){this.N.M().da?this.N.toggleFullscreen():this.message.gf(this.element,!0)};
g.h.uA=function(){this.disable();this.message.Zb(this.element,!0)};
g.h.DH=function(){Kr()===this.N.getRootNode()?this.A.start():(this.A.stop(),this.message&&this.message.hide())};
g.h.ZD=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.uA()}};
g.h.disable=function(){if(!this.message){var a=(null!=Fp(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"\u65e0\u6cd5\u5168\u5c4f\u64ad\u653e\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK":"\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u5168\u5c4f\u6a21\u5f0f\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.WN(this.N,{D:"div",Y:["ytp-popup","ytp-generic-popup"],O:{role:"alert",tabindex:"0"},
J:[a[0],{D:"a",O:{href:"https://support.google.com/youtube/answer/6276924",target:this.N.M().C},W:a[2]},a[4]]},100,!0);this.message.hide();g.C(this,this.message);this.message.subscribe("show",(0,g.x)(this.u.fl,this.u,this.message));g.jL(this.N,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.w)();this.w=null}};
g.h.xa=function(){g.Tu(this,gO(this.N))};
g.h.Xy=function(a){if(a){var b=g.X?{D:"div",Y:["ytp-icon","ytp-icon-full-screen-close"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"g",H:"ytp-fullscreen-button-corner-2",J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",H:"ytp-fullscreen-button-corner-3",J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{D:"g",H:"ytp-fullscreen-button-corner-0",J:[{D:"path",La:!0,H:"ytp-svg-fill",
O:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{D:"g",H:"ytp-fullscreen-button-corner-1",J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.lO(this.N,"\u9000\u51fa\u5168\u5c4f","f");document.activeElement===this.element&&this.N.getRootNode().focus()}else b=g.X?{D:"div",Y:["ytp-icon","ytp-icon-full-screen"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"g",H:"ytp-fullscreen-button-corner-0",J:[{D:"path",La:!0,H:"ytp-svg-fill",
O:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{D:"g",H:"ytp-fullscreen-button-corner-1",J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{D:"g",H:"ytp-fullscreen-button-corner-2",J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",H:"ytp-fullscreen-button-corner-3",J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.lO(this.N,"\u5168\u5c4f","f");this.la("icon",
b);this.la("title",this.message?null:a);rO(this.u.bb())};
g.h.X=function(){this.message||((0,this.w)(),this.w=null);g.R.prototype.X.call(this)};g.r(DP,g.R);DP.prototype.onClick=function(){this.N.na("onCollapseMiniplayer");g.oL(this.N,this.element)};
DP.prototype.xa=function(){this.visible=!this.N.isFullscreen();g.Tu(this,this.visible);g.pL(this.N,this.element,this.visible&&this.P)};
DP.prototype.Va=function(a){g.R.prototype.Va.call(this,a);g.pL(this.N,this.element,this.visible&&a)};g.r(EP,g.R);g.h=EP.prototype;g.h.Yy=function(a){this.visible=300<=a.width;g.Tu(this,this.visible);g.pL(this.N,this.element,this.visible&&this.P)};
g.h.IL=function(){this.N.M().R?this.N.isMuted()?this.N.unMute():this.N.mute():this.message.gf(this.element,!0);g.oL(this.N,this.element)};
g.h.EH=function(a){this.setVolume(a.volume,a.muted)};
g.h.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.N.M();if(e.F)d=0===d?zN():0<d&&.5>d?yN():xN(),d!==this.w&&(this.la("icon",d),this.w=d);else{var f=0===d?1:50<a?1:0;if(this.F!==f){var k=this.R;isNaN(k)?FP(this,f):oP(this.V,function(m){FP(c,k+(c.F-k)*m)},250);
this.F=f}d=0===d?1:0;if(this.C!==d){var l=this.I;isNaN(l)?GP(this,d):oP(this.L,function(m){GP(c,l+(c.C-l)*m)},250);
this.C=d}}e.R&&(e=g.lO(this.N,"\u9759\u97f3","m"),d=g.lO(this.N,"\u53d6\u6d88\u9759\u97f3","m"),e=b?d:e,this.la("title",e),this.la("label",e),rO(this.tooltip))};
g.h.Va=function(a){g.R.prototype.Va.call(this,a);g.pL(this.N,this.element,this.visible&&a)};
var kla=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],lla=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.r(HP,g.R);HP.prototype.onClick=function(){this.N.togglePictureInPicture()};g.r(g.JP,g.R);g.JP.prototype.A=function(a){IP(this,a.state)};
g.JP.prototype.w=function(){g.K(this.element,"ytp-play-button-playlist",g.TK(this.N))};
g.JP.prototype.B=function(){g.SC(g.QK(this.N))?this.N.pauseVideo():this.N.playVideo()};LP.prototype.getLength=function(){return this.o-this.u};g.r(OP,g.R);SP.prototype.update=function(a,b,c,d){this.width=b;this.w=c;this.B=d;this.o=b-c-d;this.position=g.Pd(a,c,c+this.o);this.A=this.position-c;this.u=this.A/this.o};g.r(g.UP,g.Uu);g.h=g.UP.prototype;g.h.Qu=function(){this.R=this.u.length-1;this.ga=0;WP(this,!0)&&WP(this,!1);for(var a=0,b=0;b<this.u.length;b++)if(0===this.u[b].width){if(b===this.u.length-1)for(var c=this.u.length-1;0<=c;c--)if(0<this.u[c].width){QP(this.u[c],0);PP(this.u[c],Math.floor(this.u[c].width)+"px");break}PP(this.u[b],"0")}else b===this.u.length-1?PP(this.u[b],Math.floor(this.u[b].width+a)+"px"):(a=this.u[b].width+a,c=Math.round(a),a-=c,PP(this.u[b],c+"px"));XP(this)};
g.h.HH=function(a){if(!g.Sp(a)){var b=!1;switch(g.Tp(a)){case 36:this.api.seekTo(0);b=!0;break;case 35:this.api.seekTo(Infinity);b=!0;break;case 34:this.api.seekBy(-60);b=!0;break;case 33:this.api.seekBy(60);b=!0;break;case 38:this.api.seekBy(5);b=!0;break;case 40:this.api.seekBy(-5),b=!0}b&&g.Rp(a)}};
g.h.Jx=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.h.tF=function(){this.Jx("newdata",this.api.getVideoData())};
g.h.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();this.Sa=c&&a.allowLiveDvr;oQ(this,this.api.Qc());b&&(c?(c=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=c,fQ(this),ZP(this,this.F,this.da)):this.Ap(),g.OR(this.tooltip));if(this.api.M().fa("web_wn_macro_markers")&&a){var d=a.Pg;if(d&&0<VP(d).length){c=0;d=g.q(VP(d));for(var e=d.next();!e.done;e=d.next()){e=e.value;if(e.chapterRenderer){var f=e.chapterRenderer;e={startTime:NaN,title:null};var k=f.title;k&&k.simpleText&&
(e.title=k.simpleText);f=f.timeRangeStartMillis;null!=f&&(e.startTime=f);0===c&&0!==e.startTime&&(this.u[c].startTime=0,this.u[c].title="",c++);this.u.length<=c&&(f=new OP,this.u.push(f),g.C(this,f),f.ca(this.Ca,this.Ca.children.length));this.u[c].startTime=e.startTime;this.u[c].title=e.title?e.title:""}c++}for(;c<this.u.length;)this.u.pop().dispose();this.Qu()}else TP(this)}XP(this)};
g.h.GH=function(a){this.G&&!g.V(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.G.cancel()};
g.h.CC=function(a){(this.I=a)?(this.la("clipstarticon",mN()),this.la("clipendicon",mN()),this.la("clipstarttitle",null),this.la("clipendtitle",null)):(this.la("clipstarticon",eN()),this.la("clipendicon",dN()),this.la("clipstarttitle","\u89c2\u770b\u5b8c\u6574\u89c6\u9891"),this.la("clipendtitle","\u89c2\u770b\u5b8c\u6574\u89c6\u9891"));fQ(this);ZP(this,this.F,this.da)};
g.h.lM=function(a,b,c){var d=g.Jh(this.element),e=dQ(this).o,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;l=l?Number(l):0;k&&(a=NP(this.w,Number(c.getAttribute("data-position")),0)*e+g.Jh(this.Qb).x);this.ya.x=a-d.x;this.ya.y=b-d.y;c=dQ(this);d=MP(this.w,c.u);a=f||g.HM(this.Sa?d-this.w.o:d);b=c.position+this.Wb;d-=this.api.Bb();if(this.api.M().fa("web_wn_macro_markers")){if(1<this.u.length){e=jQ(this,this.ya.x,!0);
k=ye(this.ua)&&0<ye(this.ua).length;for(var m=0;m<this.u.length;)g.K(this.u[m].u,"ytp-exp-chapter-hover-effect",m===e&&!k),m++}k=this.tooltip.B;l=(isNaN(l)?0:l)-45*k;e=gQ(this,1E3*d);(e=this.u[e].title)||(l+=16*k);.6===this.tooltip.B&&(l=e?110:126);k=gQ(this,1E3*d);this.ba=bQ(this,d,k)?k:bQ(this,d,k+1)?k+1:-1;g.K(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.ba&&1<this.u.length);k=320*this.tooltip.B;m=e.length*(this.A?8.55:5.7);m=m<=k?m:k;var n=m<160*this.tooltip.B;k=!n&&m/2>c.position;
c=!n&&m/2>this.B-c.position;g.K(this.api.getRootNode(),"ytp-tooltip-title-align-left",k);g.K(this.api.getRootNode(),"ytp-tooltip-title-align-right",c);NR(this.tooltip,b,d,a,!!f,l,e)}else NR(this.tooltip,b,d,a,!!f,l);g.K(this.api.getRootNode(),"ytp-progress-bar-hover",!g.V(g.QK(this.api),64));aQ(this)};
g.h.kM=function(){g.OR(this.tooltip);g.Ln(this.api.getRootNode(),"ytp-progress-bar-hover")};
g.h.jM=function(a,b){this.C&&(this.C.dispose(),this.C=null);this.Xb=b;this.api.M().fa("web_wn_macro_markers")&&1<this.u.length&&0<this.Ma&&-1!==this.ba?this.api.seekTo(this.u[this.ba].startTime/1E3,!1):this.api.seekTo(MP(this.w,dQ(this).u),!1);g.J(this.element,"ytp-drag");(this.Ua=g.SC(g.QK(this.api)))&&this.api.pauseVideo()};
g.h.mM=function(){var a=this;this.Aa=0;g.Ln(this.element,"ytp-pull-ui");g.Ln(this.element,"ytp-pulling");this.C&&(this.C.dispose(),this.C=null);0<this.L&&(this.C=new g.wn(function(){var b=(0,g.N)(),c=a.L,d=dQ(a).position;b=1-Math.pow(1-((0,g.N)()-b)/200,3);d+=b*(a.F*a.B-d);if(0>b||1<b)b=1;cQ(a,(1-b)*c,d,a.F);1>b&&a.C.start()}),this.C.start());
if(g.V(g.QK(this.api),32)||3===this.api.getPresentingPlayerType())this.api.M().fa("web_wn_macro_markers")&&1<this.u.length&&0<this.Ma&&-1!==this.ba?this.api.seekTo(this.u[this.ba].startTime/1E3):this.api.seekTo(MP(this.w,dQ(this).u)),g.Ln(this.element,"ytp-drag"),this.Ua&&!g.V(g.QK(this.api),2)&&this.api.playVideo()};
g.h.nM=function(a,b){var c=this,d=!1,e=!1,f=dQ(this);3600<=this.w.getLength()&&(cQ(this,this.Xb-b-10,f.position,f.u),e=!0,d=this.L>.1*(this.A?60:40),f=dQ(this));g.K(this.element,"ytp-pull-ui",e);d&&g.J(this.element,"ytp-pulling");d=0;f.w&&0>=f.position?d=-1:f.B&&f.position>=f.width&&(d=1);this.Aa!==d&&(this.Aa=d,this.C&&(this.C.dispose(),this.C=null),d&&(this.C=new g.wn(function(){var k=(0,g.N)(),l=c.B*(c.Z-1);c.U=g.Pd(c.U+c.Aa*((0,g.N)()-k)*.3,0,l);$P(c);c.api.seekTo(MP(c.w,dQ(c).u),!1);0<c.U&&c.U<
l&&c.C.start()}),this.C.start()));
this.api.seekTo(MP(this.w,f.u),!1)};
g.h.jA=function(){this.I||(this.la("clipstarticon",cN()),this.la("clipendicon",cN()),g.J(this.element,"ytp-clip-hover"))};
g.h.iA=function(){this.I||(this.la("clipstarticon",eN()),this.la("clipendicon",dN()),g.Ln(this.element,"ytp-clip-hover"))};
g.h.Ap=function(){this.clipStart=0;this.clipEnd=Infinity;fQ(this);ZP(this,this.F,this.da)};
g.h.DC=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.V[c]){var d=g.re("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.V[c]=b;this.za[c]=d;In(d,b.style);eQ(this,c);g.P(this.api.M().experiments,"disable_ad_markers_on_content_progress_bar")||this.u[0].C.appendChild(d)}}else nQ(this,b)};
g.h.dO=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())nQ(this,b.value)};
g.h.X=function(){oQ(this,!1);g.Uu.prototype.X.call(this)};g.r(qQ,g.R);qQ.prototype.isActive=function(){return!!this.N.getOption("remote","casting")};
qQ.prototype.xa=function(){var a=!1;this.N.getOptions().includes("remote")&&(a=1<this.N.getOption("remote","receivers").length);g.Tu(this,a&&400<=g.RK(this.N).getPlayerSize().width);var b=1;a&&this.isActive()&&(b=2);if(this.u!==b){this.u=b;switch(b){case 1:this.la("icon",g.X?{D:"div",Y:["ytp-icon","ytp-icon-cast-desktop-off"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,O:{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.la("icon",g.ZM())}g.K(this.element,"ytp-remote-button-active",this.isActive())}};
qQ.prototype.A=function(){if(this.N.getOption("remote","quickCast"))this.N.setOption("remote","quickCast",!0);else{var a=this.w,b=this.element;if(YN(a))a.eb();else{iP(a);a:{var c=g.q(a.B.w);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.Zb(b));a.Zb(b)}}};g.r(tQ,g.R);g.h=tQ.prototype;g.h.KH=function(){var a=this.w.kc();this.C!==a&&(this.C=a,sQ(this,this.api.getVolume(),this.api.isMuted()))};
g.h.Zy=function(a){g.Tu(this,350<=a.width)};
g.h.NH=function(a){if(!g.Sp(a)){var b=g.Tp(a),c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.Pd(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.Rp(a))}};
g.h.LH=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(0>b?-10:10)):this.api.setVolume(this.volume+g.Pd(b/10,-10,10));g.Rp(a)};
g.h.aN=function(){rQ(this,this.u,!0,this.B,this.w.Ji());this.U=this.volume;this.api.isMuted()&&this.api.unMute()};
g.h.MH=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Jh(this.R).x;this.api.setVolume(100*g.Pd((a-c/2)/(b-c),0,1))};
g.h.ZM=function(){rQ(this,this.u,!1,this.B,this.w.Ji());0===this.volume&&(this.api.mute(),this.api.setVolume(this.U))};
g.h.OH=function(a){sQ(this,a.volume,a.muted)};
g.h.uw=function(){rQ(this,this.u,this.A,this.B,this.w.Ji())};
g.h.XB=function(a){g.K(this.element,"ytp-volume-control-hover",a);rQ(this,a,this.A,this.B,this.w.Ji())};
g.h.X=function(){g.R.prototype.X.call(this);g.Ln(this.G,"ytp-volume-slider-active")};g.r(g.uQ,g.R);g.uQ.prototype.u=function(){this.visible=!!this.api.getVideoData().videoId;g.Tu(this,this.visible);g.pL(this.api,this.element,this.visible&&this.P);if(this.visible){var a=this.api.getVideoUrl(!0,!1,!1,!0);this.la("url",a)}};
g.uQ.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.IM(a),!1,!0,!0);g.Oy(this.api.M())&&(b=g.Bd(b,g.GH({},"emb_logo")));g.iO(b,this.api,a);g.oL(this.api,this.element)};
g.uQ.prototype.Va=function(a){g.R.prototype.Va.call(this,a);g.pL(this.api,this.element,this.visible&&a)};g.r(vQ,g.Nr);g.h=vQ.prototype;g.h.Jt=function(){g.YP(this.B);this.da.w();if(g.P(this.w.M().experiments,"web_wn_macro_markers")){var a=this.V,b="",c=a.w.u;1<c.length&&(b=1E3*a.N.getProgressState().current,b=gQ(a.w,b),b=c[b].title,null==b&&(b=""));b!==a.u&&(a.update({title:b}),a.u=b);b?a.show():a.hide()}};
g.h.Gz=function(){this.Lt();this.aa.u?this.Jt():g.OR(this.B.tooltip)};
g.h.jJ=function(){this.Jt();this.I.start()};
g.h.Lt=function(){var a=!this.w.M().o&&300>g.pQ(this.B)&&g.QK(this.w).ab()&&!!window.requestAnimationFrame,b=!a;this.aa.u||(a=b=!1);b?this.P||(this.P=this.K(this.w,"progresssync",this.Jt)):this.P&&(this.Za(this.P),this.P=null);a?this.I.isActive()||this.I.start():this.I.stop()};
g.h.VO=function(a){var b=this.A.bb();a=!a;if(null!=b.w)if(a)switch(b.w){case 3:case 2:RR(b);b.L.show();break;default:b.L.show()}else b.L.hide();b.V=a};
g.h.Kt=function(){var a=this.A.kc(),b=g.RK(this.w).getPlayerSize(),c=xQ(this),d=Math.max(b.width-2*c,100);if(this.oa!=b.width||this.ma!=a){this.oa=b.width;this.ma=a;var e=yQ(this);this.u.element.style.width=e+"px";this.u.element.style.left=c+"px";g.mQ(this.B,c,e,a);this.A.bb().ga=e}c=this.o;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-(this.A.kc()?72:50))));c.R=Math.min(570*(a?1.5:1),d);c.L=e;c.zk();this.Lt();g.P(this.w.M().experiments,"html5_player_dynamic_bottom_gradient")&&g.UN(this.ua,b.height)};
g.h.kJ=function(){var a=this.w.getVideoData();this.R.style.background=a.lc?a.gg:"";g.Tu(this.U,a.Du)};g.r(g.zQ,g.R);g.zQ.prototype.u=function(){};
g.zQ.prototype.A=function(a){var b=this;ola(this);var c=a.yr,d=this.api.M();"GENERIC_WITHOUT_LINK"!==c||d.B?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.ob(BQ(this,"TOO_MANY_REQUESTS_WITH_LINK",d.lh(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.B?this.ob(g.AQ(a.errorMessage)):this.ob(BQ(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=g.Bd(c,
{hl:a})),this.ob(BQ(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.ma&&!d.u&&nla(this,function(e){if(g.hO(e,b.api,!kz(b.api.M()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.na("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var mla=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.r(DQ,g.R);DQ.prototype.hide=function(){this.u.stop();this.message.style.display="none";g.R.prototype.hide.call(this)};
DQ.prototype.w=function(a){CQ(this,a.state)};
DQ.prototype.A=function(){CQ(this,g.QK(this.api))};
DQ.prototype.B=function(){this.message.style.display="block"};g.r(FQ,g.WN);FQ.prototype.C=function(a){if(this.api.M().F||this.A)a?(EQ(this),this.Zb()):(this.seen&&GQ(this),this.eb())};
FQ.prototype.B=function(a){this.api.isMutedByMutedAutoplay()&&g.eH(a,2)&&this.eb()};
FQ.prototype.onClick=function(){this.api.unMute();GQ(this)};g.r(g.HQ,g.Nr);g.h=g.HQ.prototype;g.h.init=function(){var a=g.QK(this.api);this.rk(a);this.Ng();this.Oi()};
g.h.Cz=function(a,b){if(this.qc!=b.videoId){this.qc=b.videoId;var c=this.u;c.aa=b&&0<b.Wh.length?5E3:3E3;c.Sb(512,!0);this.Ng();g.P(this.api.M().experiments,"web_player_nitrate_promo_tooltip")&&this.dC()}};
g.h.eM=function(){this.Cz("newdata",this.api.getVideoData())};
g.h.Oh=function(){var a=g.ZK(this.api)&&g.$K(this.api);cL(this.api);return this.Wb||a||cL(this.api)||this.ac};
g.h.ne=function(){var a=!this.Oh();g.K(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.h.NI=function(a){if(!g.Ae(this.api.getRootNode(),a))return!1;for(;a&&!Ee(a);)a=a==this.api.getRootNode()?null:g.ze(a);return!!a};
g.h.im=function(a){var b=this.api.getRootNode();g.K(b,"ytp-autohide",a);g.K(b,"ytp-autohide-active",!0);this.Vc.start(a?250:100);a&&(this.Kc=!1,g.Ln(b,"ytp-touch-mode"));b=this.api;a=!a;b.na("onVideoAreaChange");b.na(a?"onShowControls":"onHideControls")};
g.h.iK=function(){var a=this.api.getRootNode();g.K(a,"ytp-autohide-active",!1)};
g.h.MM=function(){this.Jc=!0};
g.h.nF=function(){this.Jc||MQ(this)};
g.h.OM=function(a){g.P(this.api.M().experiments,"player_doubletap_to_seek")&&(this.Jc=!1,this.Mc&&this.Za(this.Mc),0==this.ua&&LQ(this,a)?(this.jo(),this.Ca.start(),this.Mc=this.K(g.RK(this.api),"touchmove",this.MM,void 0,!0)):this.Ca.stop());KQ(this)&&LQ(this,a)&&MQ(this);var b=YN(this.Sa);if(Ky&&NQ(this,a))b&&g.Rp(a);else if(this.u.u||IQ(this,Op(a))||YN(this.Sa)||(g.QK(this.api).isCued(),g.Rp(a)),this.Kc=!0,g.J(this.api.getRootNode(),"ytp-touch-mode"),this.u.Sb(2,!0),g.P(this.api.M().experiments,
"player_doubletap_to_seek")&&(b=g.QK(this.api),this.api.Qc()&&(!g.V(b,2)||!NK(this.api)))){b=Date.now()-this.pd;this.ua+=1;if(350>=b){this.da=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=10*(this.ua-1);0<d&&d<b?(this.Dt(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.Dt(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.Rp(a)}this.pd=Date.now();
this.qd.start()}};
g.h.IM=function(a){NQ(this,a)||(KQ(this)||!LQ(this,a)||this.Ca.isActive()||(MQ(this),g.Rp(a)),this.da&&(this.da=!1))};
g.h.jo=function(){};
g.h.Et=function(){};
g.h.Dt=function(){};
g.h.dC=function(){};
g.h.Up=function(){var a=g.QK(this.api);g.V(a,2)&&NK(this.api)||(g.SC(a)?this.api.pauseVideo():(this.api.app.Vc=!0,this.api.playVideo(),this.aa&&document.activeElement==this.aa.C&&this.api.getRootNode().focus()))};
g.h.JM=function(a){var b=this.api.getPresentingPlayerType();IQ(this,Op(a))||(a=this.api.M(),g.P(a.experiments,"player_doubletap_to_seek")&&this.da?this.da=!1:(a.da||g.P(a.experiments,"player_fullscreen_disabled_killswitch"))&&3!=b&&this.api.toggleFullscreen())};
g.h.KM=function(a){OQ(this,.3,a.scale);g.Rp(a)};
g.h.LM=function(a){OQ(this,.1,a.scale)};
g.h.Oi=function(){var a=g.RK(this.api).getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;g.Gt&&KN(this.u);g.K(b,"ytp-fullscreen",this.api.isFullscreen());g.K(b,"ytp-large-width-mode",c);g.K(b,"ytp-small-mode",this.Rd());g.K(b,"ytp-big-mode",this.kc());this.B&&this.B.u(a)};
g.h.QI=function(a){this.rk(a.state);this.Ng()};
g.h.Kr=function(){var a=!!this.qc&&!g.MK(this.api),b=2==this.api.getPresentingPlayerType(),c=this.api.M();if(b){if(hra&&g.P(c.experiments,"enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=HL(g.LK(this.api));a&&(null===b.o?a=!1:(a=b.o,a=(b=a.o.getVideoData(2))?b.isListed&&!a.V:!1));return a}return a&&(c.Sg||this.api.isFullscreen()||c.sc)};
g.h.Ng=function(){var a=this.Kr();this.C!=a&&(this.C=a,g.K(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.h.rk=function(a){var b;(b=a.isCued())||(b=((b=g.W(this.api.app,void 0))?FJ(b):!0)&&3!=this.api.getPresentingPlayerType());b!=this.isCued&&(this.isCued=b,this.Uc&&this.Za(this.Uc),this.Uc=this.K(g.RK(this.api),"touchstart",this.OM,void 0,b));var c=a.ab()&&!g.V(a,32)||dL(this.api);this.u.Sb(128,!c);c=3==this.api.getPresentingPlayerType();this.u.Sb(256,c);c=this.api.getRootNode();if(g.V(a,2))var d=[s2.ENDED];else d=[],g.V(a,8)?d.push(s2.PLAYING):g.V(a,4)&&d.push(s2.PAUSED),g.V(a,1)&&!g.V(a,32)&&d.push(s2.BUFFERING),
g.V(a,32)&&d.push(s2.SEEKING),g.V(a,64)&&d.push(s2.UNSTARTED);g.vb(this.Ua,d)||(g.Mn(c,this.Ua),this.Ua=d,g.Kn(c,d));d=this.api.M();var e=g.V(a,2);g.K(c,"ytp-hide-controls",("3"==d.controlsType?!e:"1"!=d.controlsType)||b);g.K(c,"ytp-native-controls","3"==d.controlsType&&!b&&!e&&!this.ac);g.V(a,128)&&!g.Oy(d)?(this.B||(this.B=new g.zQ(this.api),g.C(this,this.B),g.jL(this.api,this.B.element,4)),this.B.A(a.u),this.B.show()):this.B&&(this.B.dispose(),this.B=null)};
g.h.hg=function(){return g.ZK(this.api)&&g.$K(this.api)?(this.api.setCardsVisible(!1,!1),!0):g.MK(this.api)?(g.OK(this.api,!0),!0):!1};
g.h.OI=function(a){this.ac=a;this.ne()};
g.h.kc=function(){return!1};
g.h.Rd=function(){return!this.kc()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.h.Ji=function(){return this.Kc};
g.h.Yl=function(){return null};
g.h.nt=function(){var a=g.RK(this.api).getPlayerSize();return new g.uh(0,0,a.width,a.height)};
g.h.handleGlobalKeyDown=function(){return!1};
g.h.handleGlobalKeyUp=function(){return!1};
g.h.kk=function(){};
g.h.showControls=function(a){if(void 0!=a){var b=g.RK(this.api);Ty(b.app.M());b.C=!a;UM(b)}};
g.h.qt=function(){};
g.h.vx=function(){return null};var rla={seekableStart:0,seekableEnd:1,current:0};g.r(PQ,g.Uu);PQ.prototype.B=function(){var a=this.w.getProgressState();a=NP(new LP(a.seekableStart,a.seekableEnd),a.current,0);this.F.style.width=100*a+"%"};
PQ.prototype.C=function(){g.dz(this.A.M())||(2==this.A.getPresentingPlayerType()?-1===this.u&&(this.show(),this.u=this.w.subscribe("b",this.B,this),this.B()):-1!==this.u&&(this.hide(),this.w.Dh(this.u),this.u=-1))};g.r(QQ,g.O);g.h=QQ.prototype;g.h.Jz=function(){return 1E3*this.o.getDuration(this.w)};
g.h.stop=function(){this.A&&this.u.Za(this.A)};
g.h.Kz=function(){var a=this.o.getProgressState(this.w);this.B={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:g.P(this.o.M().experiments,"halftime_ux_killswitch")?a.current:this.o.getCurrentTime(this.w,!1)};this.S("b")};
g.h.getProgressState=function(){return this.B};
g.h.mJ=function(a){g.eH(a,2)&&this.S("a")};g.r(g.RQ,g.R);g.RQ.prototype.show=function(){g.R.prototype.show.call(this);g.An(this.u)};
g.RQ.prototype.hide=function(){this.A.stop();g.R.prototype.hide.call(this)};g.r(XQ,g.R);XQ.prototype.Zb=function(){this.w.show();g.Xo("iv-button-shown")};
XQ.prototype.X=function(){this.u&&this.u();g.R.prototype.X.call(this)};
XQ.prototype.C=function(){g.Xo("iv-button-mouseover")};
XQ.prototype.onClicked=function(a){g.ZK(this.N);var b=g.Jn(this.N.getRootNode(),"ytp-cards-teaser-shown");g.Xo("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.N.setCardsVisible(!g.$K(this.N),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.r(YQ,g.R);g.h=YQ.prototype;g.h.AC=function(){g.ZK(this.w)&&g.$K(this.w)&&this.Ga()&&4!==this.F.state&&this.em()};
g.h.JO=function(){this.em();g.Xo("iv-teaser-clicked",!!this.u);this.w.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.h.RI=function(){g.Xo("iv-teaser-mouseover");this.u&&this.u.stop()};
g.h.gN=function(a){this.u||!a||g.$K(this.w)||this.A&&this.A.isActive()||(sla(this,a),g.Xo("iv-teaser-shown"))};
g.h.Ft=function(){if(g.Oy(this.w.M())&&this.Ga()){var a=this.C.element.offsetLeft,b=g.fe("ytp-cards-button-icon"),c=this.w.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.C.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.h.bE=function(){g.Oy(this.w.M())&&this.U.Rd()&&this.Ga()&&this.R.start()};
g.h.AA=function(){this.I.stop();this.u&&this.u.isActive()&&this.L.start()};
g.h.zA=function(){this.L.stop();this.u&&!this.u.isActive()&&this.I.start()};
g.h.GL=function(){this.u&&this.u.stop()};
g.h.DL=function(){this.em()};
g.h.em=function(){!this.u||this.B&&this.B.isActive()||(g.Xo("iv-teaser-hidden"),this.F.hide(),g.Ln(this.w.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.H(function(){for(var a=g.q(this.G),b=a.next();!b.done;b=a.next())this.Za(b.value);this.G=[];this.u&&(this.u.dispose(),this.u=null);WQ(this.C,!0)},330,this),this.B.start())};
g.h.X=function(){var a=this.w.getRootNode();a&&g.Ln(a,"ytp-cards-teaser-shown");g.Le(this.A,this.B,this.u);g.R.prototype.X.call(this)};g.r(g.aR,g.R);g.aR.prototype.B=function(){g.J(this.element,"ytp-sb-subscribed")};
g.aR.prototype.C=function(){g.Ln(this.element,"ytp-sb-subscribed")};g.Ia("yt.pubsub.publish",g.Xo,void 0);var y2={},dR=(y2.BUTTON="ytp-button",y2.TITLE_NOTIFICATIONS="ytp-title-notifications",y2.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",y2.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",y2.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",y2);g.r(eR,g.R);
eR.prototype.onClick=function(){g.oL(this.api,this.element);var a=!this.u;this.la("label",a?"\u505c\u6b62\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5":"\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5");this.la("pressed",a);fR(this,a)};g.r(gR,g.R);gR.prototype.R=function(){kR(this);this.w.classList.remove("ytp-title-expanded")};
gR.prototype.I=function(){if(hR(this)&&!iR(this)){this.la("channelTitleFocusable","0");this.F&&this.F.stop();this.A&&(this.A.show(),g.pL(this.u,this.A.element,!0));var a=this.u.getVideoData();this.C&&a.uk&&a.subscribed&&(this.C.show(),g.pL(this.u,this.C.element,!0));this.w.classList.add("ytp-title-expanded");this.w.classList.add("ytp-title-show-expanded")}};
gR.prototype.G=function(){this.la("channelTitleFocusable","-1");this.F&&this.F.start()};
gR.prototype.L=function(){var a=this.u.getVideoData(),b=this.u.M(),c=!1;2===this.u.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.rf&&!!a.Jd:g.Oy(b)&&(c=!!a.videoId&&!!a.rf&&!!a.Jd);b=g.wz(this.u.M())+a.rf;g.Oy(this.u.M())&&(b=g.Bd(b,g.GH({},"emb_ch_name_ex")));var d=a.rf,e=a.Jd,f=a.author;d=void 0===d?"":d;e=void 0===e?"":e;f=void 0===f?"":f;c?(d=g.wz(this.u.M())+d,this.B.style.backgroundImage="url("+e+")",this.la("channelLink",d),this.la("channelLogoLabel",g.GM("$CHANNEL_NAME\u7684\u7167\u7247",
{CHANNEL_NAME:f})),g.J(this.u.getRootNode(),"ytp-title-enable-channel-logo")):g.Ln(this.u.getRootNode(),"ytp-title-enable-channel-logo");g.pL(this.u,this.B,c&&this.P);this.A&&(this.A.u=a.Og);this.la("expandedTitle",a.jl);this.la("channelTitleLink",b);this.la("expandedSubtitle",a.expandedSubtitle)};g.r(lR,g.R);lR.prototype.show=function(){g.R.prototype.show.call(this);g.An(this.u)};
lR.prototype.hide=function(){this.A.stop();g.R.prototype.hide.call(this)};g.r(nR,g.Wu);nR.prototype.u=function(a){g.Sp(a)||39!==g.Tp(a)||(this.element.click(),g.Rp(a))};g.r(rR,g.xO);g.h=rR.prototype;g.h.DK=function(){kO(this.L.element)};
g.h.VK=function(){sR(this,this.u.getDebugText(!0))&&SQ(this.Z,$M())};
g.h.WK=function(){sR(this,this.u.getVideoEmbedCode())&&SQ(this.Z,gN());g.oL(this.u,this.A.element);mR("EMBED",this.u.getVideoData().videoId,this.u.getPlaylistId()||void 0)};
g.h.YK=function(){sR(this,this.u.getVideoUrl(!0,!0))&&SQ(this.Z,lN());g.oL(this.u,this.C.element);mR("COPY_PASTE",this.u.getVideoData().videoId,this.u.getPlaylistId()||void 0)};
g.h.XK=function(){sR(this,this.u.getVideoUrl(!1,!0))&&SQ(this.Z,lN());g.oL(this.u,this.B.element);mR("COPY_PASTE",this.u.getVideoData().videoId,this.u.getPlaylistId()||void 0)};
g.h.xA=function(a){this.F.setValue(a)};
g.h.oL=function(){var a=this.F.getValue();gT(this.u.app,a);this.U.eb();g.oL(this.u,this.F.element)};
g.h.AM=function(a){this.u.reportPlaybackIssue();if(g.hO(a,this.u,!kz(this.u.M()))){a=this.u;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.na("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.U.eb()};
g.h.XM=function(){this.u.showVideoInfo();this.U.eb()};
g.h.VI=function(a,b){qR(this,b)};
g.h.Va=function(a){g.xO.prototype.Va.call(this,a);g.pL(this.u,this.A.element,a);g.pL(this.u,this.C.element,a);g.pL(this.u,this.B.element,a);g.pL(this.u,this.F.element,a)};g.r(g.tR,g.Nr);g.tR.prototype.K=function(a,b,c){return g.Nr.prototype.K.call(this,a,b,c)};g.r(g.vR,g.BO);g.h=g.vR.prototype;g.h.show=function(){this.A||(this.A=new rR(this.N,this.Z,this,this.V),g.C(this,this.A),g.FO(this,this.A));this.A.xA(yK(this.N.app.C));g.BO.prototype.show.call(this);g.pL(this.N,this.element,!0);this.A.Va(!0)};
g.h.hide=function(){uR(this);g.BO.prototype.hide.call(this);g.pL(this.N,this.element,!1);this.A&&this.A.Va(!1)};
g.h.CK=function(a){var b=Op(a);if(!(this.Ga()||b&&(g.Ge(b,"a")||g.Ge(b,null,"ytp-no-contextmenu",void 0)))){g.Rp(a);wR(this);b=this.N.getVideoData();g.K(this.element,"ytp-dni",b.lc);this.element.style.left="";this.element.style.top="";a=Qp(a);a.x++;a.y++;this.Zb();var c=document.body;b=new sh(0,Infinity,Infinity,0);var d=be(c);for(var e=d.o.body,f=d.o.documentElement,k=je(d.o);c=Ih(c);)if(!(g.ke&&0==c.clientWidth||g.me&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Dh(c,"overflow")){var l=g.Jh(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.o;d=ie(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.uh(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Fh(this.element,new g.Td(d.left,d.top));g.Pr(this.B);this.B.K(document,"contextmenu",this.IK);this.B.K(this.N,"fullscreentoggled",this.CH);this.B.K(this.N,"pageTransition",this.TL)}};
g.h.IK=function(a){if(!g.Sp(a)){var b=Op(a);g.Ae(this.element,b)||this.eb();this.N.M().Ym&&g.Rp(a)}};
g.h.CH=function(){this.eb();wR(this)};
g.h.TL=function(){this.eb()};g.r(g.xR,g.Nr);g.h=g.xR.prototype;
g.h.Hx=function(a){var b=!1,c=g.Tp(a),d=Op(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=this.o.M();g.Sp(a)?(e=!1,k=!0):l.Wb&&(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 38:f=Math.min(this.o.getVolume()+5,100);UQ(this.u,f,!1);this.o.setVolume(f);k=f=!0;break;case 40:f=Math.max(this.o.getVolume()-5,0);UQ(this.u,f,!0);this.o.setVolume(f);k=f=!0;break;case 36:this.o.Qc()&&(this.o.seekTo(0),k=f=!0);break;
case 35:this.o.Qc()&&(this.o.seekTo(Infinity),k=f=!0)}}b&&this.zu(!0);(b||k)&&this.B.Sb(2,!0);(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.Rp(a);l.w&&(a={keyCode:g.Tp(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Sp(a),fullscreen:this.o.isFullscreen()},this.o.na("onKeyPress",a))};
g.h.Ix=function(a){this.handleGlobalKeyUp(g.Tp(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.h.handleGlobalKeyUp=function(a){var b=!1,c=g.WK(g.LK(this.o));c&&(c=c.u)&&c.Ga()&&(c.Fx(a),b=!0);9==a&&(this.zu(!0),b=!0);return b};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f){d=!1;c=this.o.M();if(c.Wb)return d;if((e=g.WK(g.LK(this.o)))&&(e=e.u)&&e.Ga())switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:d=e.Ex(a)}c.B||d||(f=f||String.fromCharCode(a).toLowerCase(),this.w+=f,0=="awesome".indexOf(this.w)?(d=!0,7==this.w.length&&(f=this.o.getRootNode(),e=!g.Jn(f,"ytp-color-party"),g.K(f,"ytp-color-party",e))):(this.w=f,d=0=="awesome".indexOf(this.w)));if(!d){switch(a){case 80:b&&!c.L&&(SQ(this.u,sN(),
"\u4e0a\u4e00\u4e2a"),this.o.previousVideo(),d=!0);break;case 78:b&&!c.L&&(SQ(this.u,nN(),"\u4e0b\u4e00\u4e2a"),this.o.nextVideo(),d=!0);break;case 74:this.o.Qc()&&(SQ(this.u,g.X?{D:"div",Y:["ytp-icon","ytp-icon-rewind-ten-seconds"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{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.o.seekBy(-10*this.o.getPlaybackRate()),d=!0);break;case 76:this.o.Qc()&&(SQ(this.u,g.X?{D:"div",Y:["ytp-icon","ytp-icon-forward-ten-seconds"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{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.o.seekBy(10*this.o.getPlaybackRate()),d=!0);break;case 37:this.o.Qc()&&(SQ(this.u,g.X?{D:"div",Y:["ytp-icon","ytp-icon-rewind-five-seconds"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.o.seekBy(-5*this.o.getPlaybackRate()),d=!0);break;case 39:this.o.Qc()&&(SQ(this.u,g.X?{D:"div",Y:["ytp-icon","ytp-icon-forward-five-seconds"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.o.seekBy(5*this.o.getPlaybackRate()),d=!0);break;case 77:this.o.isMuted()?(this.o.unMute(),UQ(this.u,this.o.getVolume(),!1)):(this.o.mute(),UQ(this.u,0,!0));d=!0;break;case 32:case 75:c.L||(b=!g.SC(g.QK(this.o)),g.TQ(this.u,b),b?this.o.playVideo():this.o.pauseVideo(),d=!0);break;case 190:b?c.Ha&&(b=this.o.getPlaybackRate(),this.o.setPlaybackRate(b+.25,!0),VQ(this.u,!1),d=!0):this.o.Qc()&&(zR(this,1),d=!0);break;case 188:b?c.Ha&&(b=this.o.getPlaybackRate(),this.o.setPlaybackRate(b-.25,!0),VQ(this.u,
!0),d=!0):this.o.Qc()&&(zR(this,-1),d=!0);break;case 70:gO(this.o)&&(this.o.toggleFullscreen(),d=!0);break;case 27:this.C()&&(d=!0)}if("3"!=c.controlsType)switch(a){case 67:g.AL(g.LK(this.o))&&(b=this.o.getOption("captions","track"),this.o.toggleSubtitles(),b=!b||b&&!b.displayName?"\u5df2\u6253\u5f00\u5b57\u5e55":"\u5df2\u5173\u95ed\u5b57\u5e55",SQ(this.u,wN(),b),d=!0);break;case 79:yR(this,"textOpacity");break;case 87:yR(this,"windowOpacity");break;case 187:case 61:yR(this,"fontSizeIncrement",!1,
!0);break;case 189:case 173:yR(this,"fontSizeIncrement",!0,!0)}var k;48<=a&&57>=a?k=a-48:96<=a&&105>=a&&(k=a-96);null!=k&&this.o.Qc()&&(a=this.o.getProgressState(),this.o.seekTo(k/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),d=!0);d&&this.B.Sb(2,!0)}return d};
g.h.zu=function(a){g.K(this.o.getRootNode(),"ytp-probably-keyboard-focus",a);g.K(this.F.element,"ytp-probably-keyboard-focus",a)};
g.h.Ez=function(a){g.AL(g.LK(this.o))&&this.o.setOption("captions","sampleSubtitles",a)};
g.h.X=function(){g.Cn(this.A);g.Nr.prototype.X.call(this)};g.r(AR,g.R);AR.prototype.Cb=function(a){this.element.setAttribute("aria-checked",String(a))};
AR.prototype.onClick=function(a){g.hO(a,this.api)&&this.api.playVideoAt(this.index)};g.r(BR,g.WN);g.h=BR.prototype;g.h.show=function(){g.WN.prototype.show.call(this);this.w.K(this.api,"videodatachange",this.Vt);this.w.K(this.api,"onPlaylistUpdate",this.Vt);this.Vt()};
g.h.hide=function(){g.WN.prototype.hide.call(this);g.Pr(this.w);this.updatePlaylist(null)};
g.h.Vt=function(){this.updatePlaylist(this.api.getPlaylist())};
g.h.Ep=function(){var a=this.playlist,b=a.w;if(b===this.A)this.selected.Cb(!1),this.selected=this.playlistData[a.index];else{for(var c=g.q(this.playlistData),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.getLength();this.playlistData=[];for(d=0;d<c;d++){var e=new AR(this.api,a,d);this.playlistData.push(e);e.ca(this.items)}this.selected=this.playlistData[a.index];this.A=b}this.selected&&this.selected.Cb(!0)};
g.h.kN=function(a){var b=this.api.getVideoUrl(!0);g.iO(b,this.api,a)};
g.h.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.Ep,this),this.playlist=a,this.A=null,a){a.subscribe("shuffle",this.Ep,this);var b=a.author,c=b?"\u6765\u81ea$AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.getLength())};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.GM(c,d),playlisturl:this.api.getVideoUrl(!0)});this.Ep()}else this.Ga()&&
this.hide();else this.playlist&&this.Ep()};
g.h.focus=function(){this.selected.focus()};
g.h.X=function(){this.hide();g.WN.prototype.X.call(this)};g.r(CR,g.R);
CR.prototype.A=function(){var a=g.Oy(this.w.M());g.K(this.element,"ytp-playlist-menu-button-tiny",400>g.RK(this.w).getPlayerSize().width&&!a);this.u&&2!=this.w.getPresentingPlayerType()?(this.update({text:g.GM("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.u.index+1),PLAYLIST_LENGTH:String(this.u.getLength())}),title:g.GM("\u64ad\u653e\u5217\u8868\uff1a$PLAYLIST_NAME",{PLAYLIST_NAME:this.u.title})}),this.Ga()||(this.show(),rO(this.B)),this.F=!0):this.Ga()&&(this.hide(),rO(this.B))};
CR.prototype.Va=function(a){g.R.prototype.Va.call(this,a);g.pL(this.w,this.element,this.F&&a)};
CR.prototype.C=function(){this.u&&this.u.unsubscribe("shuffle",this.A,this);(this.u=this.w.getPlaylist())&&this.u.subscribe("shuffle",this.A,this);this.A()};g.r(DR,g.R);
DR.prototype.C=function(a){if(a){this.u=a;a=this.u.text;var b=!1;a&&(this.update({title:a}),b=!0);g.Th(this.U,b);a=this.u.detailsText;b=!1;a&&(this.update({details:a}),b=!0);g.Th(this.I,b);a=this.u.acceptButton;b=!1;a&&a.buttonRenderer&&(this.update({acceptButtonText:a.buttonRenderer.text}),b=!0);g.Th(this.G,b);a=this.u.dismissButton;b=!1;a&&a.buttonRenderer&&(this.update({dismissButtonText:a.buttonRenderer.text}),b=!0);g.Th(this.L,b)}a=document.querySelectorAll('[data-tooltip-target-id="'+this.u.targetId+
'"]');this.A=0<a.length?a[0]:null;this.w=!0;g.Tu(this,this.w);this.A?(a=g.Sh(this.A),a.width&&a.height?(this.R.kk(this.element,this.A),b=g.RK(this.F).getPlayerSize().height-g.Sh(this.element).height-a.height-12,this.element.style.top=b+"px",b=this.o["ytp-promotooltip-pointer"],a=g.Nh(this.A,this.F.getRootNode()).x-parseInt(this.element.style.left,10)+a.width/2-12,b.style.left=a+"px"):this.B()):this.B()};
DR.prototype.B=function(){this.w=!1;g.Tu(this,this.w)};g.r(g.ER,g.WN);g.h=g.ER.prototype;g.h.XL=function(a){a=Op(a);g.Ae(this.R,a)||g.Ae(this.C,a)||this.gf()};
g.h.eb=function(){g.WN.prototype.eb.call(this);this.A.qf(this.element)};
g.h.show=function(){var a=this.Ga();g.WN.prototype.show.call(this);this.Ht();a||this.w.na("onSharePanelOpened")};
g.h.Ht=function(){var a=this;g.J(this.element,"ytp-share-panel-loading");g.Ln(this.element,"ytp-share-panel-fail");var b=this.w.getVideoData(),c=this.w.getPlaylistId(),d=c&&this.L.checked;g.K(this.element,"ytp-share-panel-has-playlist",!!c);var e=this.w.M();g.P(e.experiments,"web_player_innertube_share_panel")?JK($Q(this.w.app),b.getSharePanelCommand).then(function(f){GR(a,f)}):(b={action_get_share_info:1,
video_id:b.videoId},e.Nc&&(b.authuser=e.Nc),e.pageId&&(b.pageid=e.pageId),g.Oy(e)&&g.GH(b,"emb_share"),d&&(b.list=c),g.Lq(e.G+"share_ajax",{method:"GET",onError:(0,g.x)(this.cC,this),onSuccess:(0,g.x)(function(f,k){k?GR(this,k):this.cC(null,null)},this),
Zd:b,withCredentials:!0}));c=this.w.getVideoUrl(!0,!0,!1,!0);this.la("link",c);this.la("linkText",c);this.la("shareLinkWithUrl",g.GM("\u5206\u4eab\u94fe\u63a5 $URL",{URL:c}));kO(this.F)};
g.h.cC=function(){g.Ln(this.element,"ytp-share-panel-loading");g.J(this.element,"ytp-share-panel-fail")};
g.h.UM=function(a,b){if(g.IM(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.wc?a:g.zc("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(",");if(Id()&&d.navigator&&d.navigator.standalone&&
f&&"_self"!=f)l=g.re("A"),g.$c(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={};else if(c.noreferrer){if(d=cd("",d,f,l),c=g.xc(e),d&&(g.qz&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),d.opener=null,c=g.Yc(g.ac("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.fd(c)+'">'),e=d.document))e.write(g.Tc(c)),
e.close()}else(d=cd(e,d,f,l))&&c.noopener&&(d.opener=null);if(c=d)c.opener||(c.opener=window),c.focus();g.Rp(b)}};
g.h.AL=function(a,b){g.iO(a,this.w,b)&&this.w.na("SHARE_CLICKED")};
g.h.dJ=function(a){!a&&YN(this)&&this.gf()};
g.h.focus=function(){this.F.focus()};
g.h.X=function(){g.WN.prototype.X.call(this);FR(this)};g.r(g.HR,g.R);g.HR.prototype.G=function(){var a=this.u.M(),b=this.u.getVideoData(),c=this.u.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);navigator.share?navigator.share({title:b.title,url:a}):(this.B.hg(),this.I.gf(this.element,!1));g.oL(this.u,this.element)};
g.HR.prototype.A=function(){var a=this.u.M(),b=this.u.getVideoData(),c=this.B.Rd()&&g.Oy(a),d=g.Oy(a)&&g.TK(this.u)&&g.V(g.QK(this.u),128);this.la("icon",c&&a.F?{D:"div",Y:["ytp-icon","ytp-icon-sharrow-large"]}:g.X?{D:"div",Y:["ytp-icon","ytp-icon-sharrow"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{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"}}]});
a=a.disableSharing&&2!=this.u.getPresentingPlayerType()||!b.showShareButton||b.Fm||d;c=g.RK(this.u).getPlayerSize().width;this.w=!!b.videoId&&c>=this.F&&!a;g.K(this.element,"ytp-share-button-visible",this.w);g.Tu(this,this.w);rO(this.C);g.pL(this.u,this.element,this.w&&this.P)};
g.HR.prototype.Va=function(a){g.R.prototype.Va.call(this,a);g.pL(this.u,this.element,this.w&&a)};
g.HR.prototype.X=function(){g.R.prototype.X.call(this);g.Ln(this.element,"ytp-share-button-visible")};g.r(JR,g.WN);JR.prototype.show=function(){g.WN.prototype.show.call(this);this.C.start()};
JR.prototype.hide=function(){g.WN.prototype.hide.call(this);this.C.stop()};
JR.prototype.Z=function(){var a=this.w.getCurrentTime();a>this.B/1E3&&a<this.A/1E3&&this.show()};g.r(g.KR,g.R);g.h=g.KR.prototype;g.h.FL=function(a){3==this.w&&this.yf();(a=a.currentTarget)&&1==a.nodeType&&!this.w&&(a.removeEventListener("mouseover",this.F),a.addEventListener("mouseout",this.Z),g.P(this.R.experiments,"show_tooltip_on_tab_killswitch")||(a.removeEventListener("focus",this.F),a.addEventListener("blur",this.Z)),PR(this,a,2))};
g.h.CL=function(a){(a=Pp(a))&&g.Ae(this.u,a)||this.yf()};
g.h.tA=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=NaN;LR(this,c)}};
g.h.hG=function(){XA(this.A,this.C,160*this.B)};
g.h.yf=function(){switch(this.w){case 2:this.u.removeEventListener("mouseout",this.Z),this.u.addEventListener("mouseover",this.F),g.P(this.R.experiments,"show_tooltip_on_tab_killswitch")||(this.u.removeEventListener("blur",this.Z),this.u.addEventListener("focus",this.F));case 3:3==this.w&&this.ma.stop();this.U.removeEventListener("appresize",this.ba);this.aa||this.u.setAttribute("title",this.G);this.G="";this.u=null;break;case 1:this.A&&(this.A.unsubscribe("l",this.tA,this),this.A=null),this.U.removeEventListener("videoready",
this.ba),this.da.stop()}this.w=null;this.V&&this.L.hide()};
g.h.qf=function(a){if(this.u)for(var b=0;b<arguments.length;b++)g.Ae(arguments[b],this.u)&&this.yf()};
g.h.X=function(){null!=this.w&&this.yf();this.A&&this.A.dispose();g.R.prototype.X.call(this)};g.r(SR,g.R);SR.prototype.onClick=function(){this.N.na("BACK_CLICKED")};g.r(TR,g.R);
TR.prototype.onClick=function(){var a=this.api.M(),b=this.api.getVideoData(),c=this.api.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);b=!1;c=g.re("TEXTAREA");c.value=a;c.setAttribute("readonly","");document.body.appendChild(c);if(sl){var d=window.getSelection();d.removeAllRanges();var e=document.createRange();e.selectNodeContents(c);d.addRange(e);c.setSelectionRange(0,a.length)}else c.select();try{b=document.execCommand("copy")}catch(f){}document.body.removeChild(c);b&&ula(this);g.oL(this.api,
this.element)};
TR.prototype.xa=function(){var a=this.api.M(),b=this.api.getVideoData();this.u.Rd()&&g.Oy(a)&&a.F?this.la("icon",{D:"div",Y:["ytp-icon","ytp-icon-share-copylink-large"]}):this.la("icon",g.X?{D:"div",Y:["ytp-icon","ytp-icon-share-copylink"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",La:!0,H:"ytp-svg-fill",O:{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.la("title-attr","\u590d\u5236\u94fe\u63a5");a=g.RK(this.api).getPlayerSize().width;this.visible=!!b.videoId&&240<=a&&b.Fm;g.K(this.element,"ytp-copylink-button-visible",this.visible);g.Tu(this,this.visible);rO(this.tooltip);g.pL(this.api,this.element,this.visible&&this.P)};
TR.prototype.Va=function(a){g.R.prototype.Va.call(this,a);g.pL(this.api,this.element,this.visible&&a)};
TR.prototype.X=function(){g.R.prototype.X.call(this);g.Ln(this.element,"ytp-copylink-button-visible")};g.r(UR,g.R);UR.prototype.xa=function(){var a=g.Oy(this.N.M())&&g.TK(this.N)&&g.V(g.QK(this.N),128),b=this.N.getPlayerSize();this.visible=this.u.Rd()&&!a&&240<=b.width;g.K(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&rO(this.tooltip);g.pL(this.N,this.element,this.visible&&this.P)};
UR.prototype.Va=function(a){g.R.prototype.Va.call(this,a);g.pL(this.N,this.element,this.visible&&a)};
UR.prototype.X=function(){g.R.prototype.X.call(this);g.Ln(this.element,"ytp-overflow-button-visible")};g.r(VR,g.WN);g.h=VR.prototype;g.h.WL=function(a){a=Op(a);g.Ae(this.element,a)&&(g.Ae(this.w,a)||g.Ae(this.closeButton,a)||this.gf())};
g.h.eb=function(){g.WN.prototype.eb.call(this);this.tooltip.qf(this.element)};
g.h.show=function(){this.Ga()&&this.N.S("OVERFLOW_PANEL_OPENED");g.WN.prototype.show.call(this);YR(this,!0)};
g.h.hide=function(){g.WN.prototype.hide.call(this);YR(this,!1)};
g.h.FH=function(a){!a&&YN(this)&&this.gf()};
g.h.focus=function(){for(var a=g.q(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Ga()){b.focus();break}};g.r(ZR,g.R);ZR.prototype.u=function(a){g.Tu(this,g.V(a.state,2))};
ZR.prototype.onClick=function(){g.QK(this.N);this.N.playVideo()};var z2={},$R=(z2.CHANNEL_NAME="ytp-title-channel-name",z2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",z2.LINK="ytp-title-link",z2.SESSIONLINK="yt-uix-sessionlink",z2.SUBTEXT="ytp-title-subtext",z2.TEXT="ytp-title-text",z2.TITLE="ytp-title",z2);g.r(aS,g.R);aS.prototype.onClick=function(a){g.oL(this.api,this.element);var b=this.api.getVideoUrl(!g.IM(a),!1,!0);g.Oy(this.api.M())&&(b=g.Bd(b,g.GH({},"emb_title")));g.iO(b,this.api,a)};
aS.prototype.xa=function(){var a=this.api.getVideoData(),b=this.api.M();this.la("title",a.title);bS(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.rf&&c.Jd?(this.la("channelLink",c.rf),this.la("channelName",c.author)):bS(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.sc;g.K(this.link,$R.FULLERSCREEN_LINK,c);b.P||!a.videoId||c?this.u&&(this.la("url",null),this.Za(this.u),this.u=null):(this.la("url",this.api.getVideoUrl(!0)),
this.u||(this.u=this.K(this.link,"click",this.onClick)))};g.r(cS,CN);cS.prototype.u=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
cS.prototype.o=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};var dS;g.r(g.hS,g.R);g.h=g.hS.prototype;g.h.Wo=function(){var a=this.N.getPlayerSize(),b=this.N.M(),c=this.N.getVideoData(),d=g.Oy(b)&&g.TK(this.N)&&g.V(g.QK(this.N),128);this.visible=b.Ph&&240<=a.width&&!c.isAd()&&c.Ph&&!d;g.Tu(this,this.visible);this.icon&&kS(this,this.icon);g.pL(this.N,this.element,this.visible&&this.P)};
g.h.eB=function(){this.u=!0;this.w=!1;this.xa(1);this.N.M().o&&QR(this.tooltip,this.element);this.N.M().w&&this.N.na("WATCH_LATER_VIDEO_ADDED")};
g.h.az=function(){return this.N.getVideoData().videoId};
g.h.onClick=function(){var a=this;g.oL(this.N,this.element);var b=this.N.M(),c=this.az();b.Nc?gS(this,c):this.N.app.Ha?uL(function(){g.Yq("embedsItpWatchLaterResult",{accepted:!0});Cp();iS(a,c)},function(){g.Yq("embedsItpWatchLaterResult",{accepted:!1});
jS(a,"\u62b1\u6b49\uff0c\u7531\u4e8e\u6d4f\u89c8\u5668\u5c4f\u853d\u4e86\u60a8\u7684 Cookie\uff0c\u4fdd\u5b58\u5931\u8d25\u3002")}):iS(this,c)};
g.h.BN=function(a,b){this.w=!1;var c="\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002";b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);jS(this,c)};
g.h.CN=function(){this.w=!1;jS(this,"\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002")};
g.h.fB=function(){this.w=this.u=!1;this.xa(2);this.N.M().w&&this.N.na("WATCH_LATER_VIDEO_REMOVED")};
g.h.DM=function(){this.w=this.u=!1;this.xa(2)};
g.h.xa=function(a,b){var c=this.N.M();kS(this,a);if(b)this.update({title:b,image:null});else if(c.ha){var d={USER_NAME:c.ha};this.update({title:this.u?g.GM("\u5df2\u6dfb\u52a0\u5230\u4ee5\u4e0b\u5e10\u53f7\uff1a$USER_NAME",d):g.GM("\u7a0d\u540e\u4ee5$USER_NAME\u7684\u8eab\u4efd\u89c2\u770b",d),image:vz(c)})}else this.update({title:"\u7a0d\u540e\u89c2\u770b",image:null});rO(this.tooltip)};
g.h.Va=function(a){g.R.prototype.Va.call(this,a);g.pL(this.N,this.element,this.visible&&a)};g.r(lS,g.HQ);g.h=lS.prototype;g.h.bb=function(){return this.L};
g.h.vx=function(){return this.o};
g.h.ji=function(a,b){b?this.oa=a:this.oa=null;this.ne()};
g.h.fl=function(a,b){if(b)this.U.push(a);else for(var c=this.U.length;0<=c;c--)if(this.U[c]==a){this.U.splice(c,1);break}this.u.Sb(64,0<this.U.length)};
g.h.Oh=function(){g.ZK(this.api)&&g.$K(this.api);cL(this.api);return!!this.oa||mS(this)||g.HQ.prototype.Oh.call(this)};
g.h.ne=function(){var a=!this.Oh(),b=a&&g.ZK(this.api)&&!g.V(g.QK(this.api),2),c=this.ga&&g.TK(this.api)&&g.V(g.QK(this.api),128);a||c?(this.Hc.show(),this.Ic.show()):(this.Hc.hide(),this.Ic.hide(),this.L.qf(this.A.element));b?this.ma.Zb():(b=this.ma,g.Xo("iv-button-hidden"),b.w.hide());this.o&&wQ(this.o,!a);g.HQ.prototype.ne.call(this)};
g.h.kk=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Sh(a);d=d||this.o&&g.Ae(this.o.u.element,b);if(null==c||!d){var k=g.Sh(b);var l=g.Nh(b,this.api.getRootNode());null==c&&(c=l.x+k.width/2)}c-=f.width/2;d?(k=xQ(this.o),l=yQ(this.o),b=g.RK(this.api).getPlayerSize().height,c=g.Pd(c,k,k+l-f.width),f=b-(this.o.A.kc()?72:50)-f.height):g.Ae(this.A.element,b)?(k=g.RK(this.api).getPlayerSize().width,c=g.Pd(c,12,k-f.width-12),f=this.kc()?this.yb:this.Qb,"gvn"==this.api.M().playerStyle&&
(f+=20),this.ga&&(f-=this.kc()?26:18)):(b=g.RK(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.im=function(a){a&&(this.L.qf(this.A.element),this.o&&this.L.qf(this.o.u.element));g.HQ.prototype.im.call(this,a)};
g.h.nt=function(a,b){var c=g.RK(this.api).getPlayerSize();c=new g.uh(0,0,c.width,c.height);if(a||this.u.u&&!this.Oh()){if(this.api.M().Sg||b){var d=this.kc()?this.yb:this.Qb;c.top+=d;c.height-=d}this.o&&(c.height-=this.o.A.kc()?72:50)}return c};
g.h.SI=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","\u5168\u5c4f\u6a21\u5f0f\u4e0b\u7684 YouTube \u89c6\u9891\u64ad\u653e\u5668"),this.api.M().externalFullscreen||(b.parentElement.insertBefore(this.Ia.element,b),b.parentElement.insertBefore(this.Ha.element,b.nextSibling))):g.M(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube \u89c6\u9891\u64ad\u653e\u5668"),g.Qu(this.Ia),g.Qu(this.Ha));this.Oi();this.Ng()};
g.h.kc=function(){return this.api.isFullscreen()||!1};
g.h.showControls=function(a){this.Wb=!a;this.ne()};
g.h.Oi=function(){var a=this.kc();this.L.B=a?1.5:1;this.P&&g.K(this.P.element,"ytp-big-mode",a);this.ne();if(this.Rd()&&this.w)this.I&&WR(this.w,this.I),this.G&&WR(this.w,this.G),this.F&&WR(this.w,this.F);else{if(this.w){a=this.w;for(var b=g.q(a.actionButtons),c=b.next();!c.done;c=b.next())g.Qu(c.value);a.actionButtons=[]}this.I&&!g.Ae(this.ha.element,this.I.element)&&this.I.ca(this.ha.element);this.G&&!g.Ae(this.ha.element,this.G.element)&&this.G.ca(this.ha.element);this.F&&!g.Ae(this.ha.element,
this.F.element)&&this.F.ca(this.ha.element)}this.Ng();g.HQ.prototype.Oi.call(this)};
g.h.Kr=function(){if(mS(this)&&!g.TK(this.api))return!1;var a=this.api.getVideoData();return!g.Oy(this.api.M())||2==this.api.getPresentingPlayerType()||!this.vf||((a=this.vf||a.vf)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.HQ.prototype.Kr.call(this):!1};
g.h.Ng=function(){g.HQ.prototype.Ng.call(this);g.pL(this.api,this.sc.element,!!this.C);this.ya&&this.ya.Va(!!this.C);this.qb.Va(!!this.C);this.Ma&&this.Ma.Va(this.Rd()&&!!this.C);this.G&&this.G.Va(!this.Rd()&&!!this.C);this.I&&this.I.Va(!this.Rd()&&!!this.C);this.F&&this.F.Va(!this.Rd()&&!!this.C);if(!this.C){this.L.qf(this.A.element);for(var a=0;a<this.Aa.length;a++){var b=this.Aa[a];YN(b)&&b.eb()}}};
g.h.rk=function(a){this.o&&wQ(this.o,this.Oh());this.ne();g.HQ.prototype.rk.call(this,a)};
g.h.QL=function(){dL(this.api)&&this.u.Sb(128,!1)};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f,k){return this.ba?this.ba.handleGlobalKeyDown(a,b,c,d,e,f,k):!1};
g.h.handleGlobalKeyUp=function(a,b,c,d,e,f,k){return this.ba?this.ba.handleGlobalKeyUp(a,b,c,d,e,f,k):!1};
g.h.hg=function(){return this.P.Ga()?(this.P.eb(),!0):this.U.length?(this.U[this.U.length-1].eb(),!0):this.oa?(this.oa.eb(),!0):g.HQ.prototype.hg.call(this)};
g.h.Cu=function(a,b){this.rd=b;this.fl(a,b);this.yC()};
g.h.yC=function(){var a=this.rd||YN(this.P);this.jb!=a&&(this.jb=a,this.api.na("onAutonavPauseRequest",this.jb))};
g.h.GE=function(){nS(this,this.api.getRootNode(),!0).focus()};
g.h.HE=function(){nS(this,this.api.getRootNode(),!1).focus()};
g.h.Yl=function(){return this.o&&this.o.o};
g.h.qt=function(){this.u.Sb(2,!0)};
g.h.jo=function(){this.V.hide()};
g.h.Et=function(a){g.TQ(this.V,!g.SC(a))};
g.h.Dt=function(a,b,c,d){var e=this.Xb;g.Cn(e.u);e.A.start();e.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*g.RK(e.w).getPlayerSize().height;var k=g.RK(e.w).getPlayerSize();k=k.width/3-3*k.height;var l=e.o["ytp-doubletap-static-circle"];l.style.width=f+"px";l.style.height=f+"px";1===a?(l.style.left="",l.style.right=k+"px"):-1===a&&(l.style.right="",l.style.left=k+"px");var m=2.5*f;f=m/2;l=e.o["ytp-doubletap-ripple"];l.style.width=m+"px";l.style.height=m+"px";1===a?(a=g.RK(e.w).getPlayerSize().width-
b+Math.abs(k),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(k)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=e.o["ytp-doubletap-ripple"])c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");d=g.GM("$TOTAL_SEEK_TIME \u79d2",{TOTAL_SEEK_TIME:d.toString()});e.la("seekTime",d)};
g.h.dC=function(){var a=this.api.getVideoData();a&&a.tooltipRenderer&&(this.za||(this.za=new DR(a.tooltipRenderer,this,this.api),g.C(this,this.za),g.jL(this.api,this.za.element,8)),this.za.C(a.tooltipRenderer))};g.r(g.oS,g.wL);g.oS.prototype.Pf=function(){return!1};
g.oS.prototype.create=function(){var a=this.player.M();pz(a)&&a.o?this.chrome=new g.HQ(this.player):this.chrome=new lS(this.player);g.C(this,this.chrome);this.chrome.init();g.gL(this.player,"ux")};var xla="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");pS.prototype.getLocalMediaInfoById=function(a){return rh(this,function c(){return Ba(c,function(d){return d["return"](zfa(a))})})};
pS.prototype.getAllLocalMediaInfo=function(){return rh(this,function b(){return Ba(b,function(c){return c["return"](Afa())})})};
pS.prototype.u=function(a){var b=0<this.o.length&&this.o[0]===a;this.api.na("localmediacomplete",{videoId:a,isBackground:b});b&&(this.o.shift(),0<this.o.length&&rS(this,this.o[0]))};var Ala=Ab(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}}),tS=!1;g.r(uS,g.R);
uS.prototype.setValue=function(a,b){for(var c=0;c+2<this.B.length&&this.B[c+1]<b;)c++;var d=Math.min(1,(b-this.B[c])/(this.B[c+1]-this.B[c]));if(this.w)this.w.fillStyle=this.C[c],this.w.fillRect(a*this.u,0,this.u,this.heightPx),this.w.fillStyle=this.C[c+1],this.w.fillRect(a*this.u,this.heightPx*(1-d),this.u,this.heightPx);else{var e=this.element.children[a],f=window.devicePixelRatio||1;d=Math.min(this.heightPx,Math.round(this.heightPx*d*f)/f)||0;e.style.height=d+"px";e.style.backgroundColor=this.C[c+
1];e.style.borderTop="solid "+(this.heightPx-d)+"px "+this.C[c]}};g.r(wS,g.R);g.h=wS.prototype;g.h.show=function(){g.R.prototype.show.call(this);this.xa()};
g.h.hide=function(){g.R.prototype.hide.call(this);this.delay.stop()};
g.h.stop=function(){this.delay.stop()};
g.h.start=function(){this.delay.isActive()||this.xa()};
g.h.xa=function(){var a=(0,g.N)(),b=this.C.getStatsForNerds();vS(this.u,b.bandwidth_samples);vS(this.B,b.network_activity_samples);vS(this.A,b.live_latency_samples);vS(this.w,b.buffer_health_samples);this.update(b);a=25<(0,g.N)()-a?5E3:500;this.delay.start(a)};g.r(DS,g.A);g.h=DS.prototype;g.h.getVisibilityState=function(a,b,c,d,e,f){return this.G.getVisibilityState(a,b,c,d,e,f)};
g.h.isVideoInfoVisible=function(){return!(!this.aa||!this.aa.Ga())};
g.h.setIsExternalPlaylist=function(a){this.ba=S(!1,a)};
g.h.dK=function(){HS(this)||g.dT(this,5)};
g.h.dM=function(a){HS(this)||(AT(this),g.SC(a.getPlayerState())&&this.playVideo())};
g.h.canPlayType=function(a){return Ft(a)};
g.h.M=function(){return this.o};
g.h.getVideoData=function(){return this.C.getVideoData()};
g.h.getVideoLoadedFraction=function(a){a=g.W(this,a);if(!a)return 0;var b=a.getVideoData();if(b.ia&&b.Ba&&b.Ub){var c=b.ia.o;b=!!c[b.Ba.id]&&cx(c[b.Ba.id].u.o)&&!!c[b.Ub.id]&&cx(c[b.Ub.id].u.o)}else b=!1;return b?1:(a=a.o)?FC(a):0};
g.h.Xc=function(){var a={},b=g.AL(this.A);b&&g.Ua(a,b.xG());a.fs=this.u.isFullscreen();a.volume=Math.round(this.u.getVolume());a.mos=this.u.isMuted()?1:0;if(g.P(this.o.experiments,"html5_enable_embedded_player_visibility_signals")&&this.o.u&&(this.Mc&&(b=this.Mc,b=null==b.u?null:Math.round(100*b.u)/100,null!=b&&(a.inview=b)),b=this.I.getPlayerSize(),0<b.height&&0<b.width)){b=[Math.round(b.height),Math.round(b.width)];var c=g.lz();1<c&&b.push(c);a.size=b.join(":")}!xS(this,"web_player_clips_vss_killswitch")&&
this.C==this.w&&this.L&&(a.clipid=this.L.postId);return a};
g.h.setLoopRange=function(a){var b=!1;!!this.L!==!!a?b=!0:this.L&&a&&(b=this.L.startTimeMs!==a.startTimeMs||this.L.endTimeMs!==a.endTimeMs||this.L.postId!==a.postId);b&&(vF(this.w.R,"applooprange"),a?(b=new g.mC(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.w.addCueRange(b)):WS(this).oj=void 0,this.L=a,this.u.na("onLoopRangeChange",a),this.C==this.w&&(this.L&&!hT(this,this.w.getCurrentTime())&&this.qu(),g.SH(this.C.B)))};
g.h.getLoopRange=function(){return this.L};
g.h.qu=function(){this.w.seekTo(.001*this.L.startTimeMs)};
g.h.setPlaybackRate=function(a,b){if(!isNaN(a)){var c=GS(this,a);this.w.getPlaybackRate()!=c&&(this.w.setPlaybackRate(c),b&&!this.o.u&&g.Ks("yt-player-playback-rate",c),this.u.na("onPlaybackRateChange",c))}};
g.h.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3==this.getPresentingPlayerType())return g.SK(this.A).getCurrentTime();var c=g.W(this,a);return c?b?(c=TS(this,c),jT(this,c.getCurrentTime(),c)):c.getCurrentTime():0};
g.h.getDuration=function(a,b){var c=g.W(this,a);return c?void 0===b||b?(c=SS(this,c),jT(this,c.getDuration(),c)):c.getDuration():0};
g.h.Ab=function(a){a=g.W(this,a);if(!a)return 0;a=SS(this,a);return jT(this,a.Ab(),a)};
g.h.getDebugText=function(a){var b=this.w.Xa(a);if(this.C&&this.C!=this.w&&(b=MT(b,this.C.Xa(a),"ad_"),a)){var c=b;var d={};var e;if(e=ce("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.fe("video-ads");f?(IT(f,e),e.html=f.outerHTML):e.missing=1;f={};var k=g.fe("videoAdUiSkipContainer"),l=g.fe("ytp-ad-skip-button-container"),m=k||l;m?(IT(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.B&&(b["0sz"]=0==Xd(this.B.Xj()),b.op=this.B.ul("opacity"),c=this.B.jh().y+this.B.Xj().height,b.yof=0>=c,b.dis=this.B.ul("display"));(a=a?(0,g.zJ)():null)&&(b.gpu=a);b.cgr=!0;b.debug_playbackQuality=this.u.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;(a=bL(this.A))&&(b=MT(b,a.Xa(),"fresca_"));return JSON.stringify(b,null,2)};
g.h.getPresentingPlayerType=function(){return 1==this.Z?1:HS(this)?3:g.W(this).getPlayerType()};
g.h.getAppState=function(){return this.Z};
g.h.EG=function(a){switch(a.type){case "loadedmetadata":KA("fvb",this.P.timerName)||this.P.tick("fvb");TA("fvb");this.yb.start();break;case "loadstart":KA("gv",this.P.timerName)||this.P.tick("gv");TA("gv");break;case "progress":case "timeupdate":!KA("l2s",this.P.timerName)&&2<=Ut(a.target.Fd())&&this.P.tick("l2s");break;case "playing":g.qz&&this.yb.start();if(g.cz(this.o))a=!1;else{var b=g.WK(this.A);a="none"==this.B.ul("display")||0==Xd(this.B.Xj());var c=TM(this.I),d=this.C.getVideoData(),e=pz(this.o)||
g.Xy(this.o);d=kB(d);b=!c||b||e||d||this.o.Xg;a=a&&!b}a&&(this.C.Qa("hidden","1",!0),this.getVideoData().Jf||(xS(this,"html5_new_elem_on_hidden")?(this.getVideoData().Jf=1,this.DA(null),this.C.playVideo()):FT(this,"hidden",!0)))}};
g.h.iL=function(a,b){this.u.na("onLoadProgress",b)};
g.h.eN=function(){this.u.S("playbackstalledatstart")};
g.h.FG=function(a,b){var c=TS(this,a);b=jT(this,c.getCurrentTime(),c);this.u.na("onVideoProgress",b)};
g.h.JK=function(){this.u.na("onDompaused")};
g.h.oM=function(){this.u.S("progresssync")};
g.h.BG=function(a){if(1==this.getPresentingPlayerType()){g.eH(a,1)&&!g.V(a.state,64)&&WS(this).sa&&this.w.isAtLiveHead()&&1<this.u.getPlaybackRate()&&this.setPlaybackRate(1,!0);g.eH(a,2)&&OS(this);if(g.V(a.state,128)){var b=a.state;sT(this,5);b=b.u;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.u.na("onError",Sra[b.errorCode]||5);this.u.na("onDetailedError",{errorCode:b.errorCode,errorDetail:b.errorDetail,message:b.errorMessage,wT:b.yr});6048E5<(0,g.N)()-this.o.oa&&this.u.na("onReloadRequired")}b=
{};if(a.state.ab()&&!g.UC(a.state)&&!KA("pbresume","ad_to_video")&&KA("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);JA(b,"ad_to_video");FA("pbresume",void 0,"ad_to_video")}this.u.S("applicationplayerstatechange",a)}};
g.h.dB=function(a){3!=this.getPresentingPlayerType()&&this.u.S("presentingplayerstatechange",a)};
g.h.DG=function(a){QS(this,VC(a.state));g.V(a.state,1024)&&this.u.isMutedByMutedAutoplay()&&(aC(this,{muted:!1,volume:this.R.volume},!1),eT(this,!1))};
g.h.gM=function(a){a.state.ab()&&!g.UC(a.state)&&(EL(this.A),g.Pr(this.Jc))};
g.h.bK=function(a,b,c){"newdata"==a&&mT(this);(a=c.oj)&&null!=a.startTimeMs&&null!=a.endTimeMs&&this.setLoopRange({startTimeMs:parseInt(a.startTimeMs,10),endTimeMs:parseInt(a.endTimeMs,10),postId:a.postId})};
g.h.gK=function(){this.u.na("onPlaybackAudioChange",this.u.getAudioTrack().sb.name)};
g.h.xN=function(a){var b=this.C.getVideoData();a==b&&this.u.na("onPlaybackQualityChange",a.Ba.va().quality)};
g.h.Us=function(a,b,c){b==this.w&&(this.o.yb=c.oauthToken);if("newdata"==a)GL(this.A,2),this.u.S("videoplayerreset",b);else{if(!this.B)return;if("dataloaded"==a)if(this.C==this.w){if(c.Oa.Yd(c.mB),!this.w.getPlayerState().isError()){var d=HS(this);WS(this).Gb();d&&g.dT(this,6);VS(this);d||(d=HL(this.A))&&!d.created&&BL(this.A)&&d.create()}}else VS(this);1==b.getPlayerType()&&(this.o.R&&HT(this),this.getVideoData().sa&&!this.o.lo&&g.kJ(this.w,"html5.unsupportedlive","DEVICE_FALLBACK",void 0,void 0),
c.Gb()&&(c.pm||c.vp||c.wp||c.Pc.focEnabled||c.Pc.rmktEnabled||this.getVideoData().Rv)&&(d=this.getVideoData(),pT(this,"part2viewed",1,0x8000000000000),pT(this,"engagedview",Math.max(1,1E3*d.Me),0x8000000000000),d.sa||(d=1E3*d.lengthSeconds,pT(this,"videoplaytime25",.25*d,d),pT(this,"videoplaytime50",.5*d,d),pT(this,"videoplaytime75",.75*d,d),pT(this,"videoplaytime100",d,0x8000000000000),pT(this,"conversionview",d,0x8000000000000))));this.u.S("videodatachange",a,c,b.getPlayerType())}this.o.w&&this.u.na("onVideoDataChange",
{type:a,playertype:b.getPlayerType()});b==this.w&&this.L&&!hT(this,this.w.getCurrentTime())&&this.qu();a=c.clientScreenNonce;c=c.Gp;a&&c?(b=this.oa,a!=g.ks()&&(ns(a,c),YM(b))):YM(this.oa)};
g.h.vn=function(){ZS(this,null);this.u.na("onPlaylistUpdate")};
g.h.bA=function(a){var b=a.getId(),c=WS(this);if("part2viewed"==b)c.rB&&g.jr(c.rB),c.vp&&JT(this,c.vp),c.wp&&KT(this,c.wp);else if("conversionview"==b){var d=this.w.B;d.u&&NH(d.u)}else"engagedview"==b&&g.jr(c.pm);if(c.sB){d=c.sB;var e={label:a.getId()};if(g.P(this.o.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.vq(d,e);g.jr(d)}switch(b){case "videoplaytime25":c.fu&&JT(this,c.fu);c.gu&&KT(this,c.gu);c.uB&&g.jr(c.uB);
break;case "videoplaytime50":c.hu&&JT(this,c.hu);c.iu&&KT(this,c.iu);c.vB&&g.jr(c.vB);break;case "videoplaytime75":c.ju&&JT(this,c.ju);c.ku&&KT(this,c.ku);c.wB&&g.jr(c.wB);break;case "videoplaytime100":c.du&&JT(this,c.du),c.eu&&KT(this,c.eu),c.tB&&g.jr(c.tB)}(b=this.getVideoData().Rv)&&qT(b,a.getId())&&qT(b,a.getId()+"gaia");this.w.removeCueRange(a)};
g.h.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.W(this,a);if(!c)return!1;var d=SS(this,c);c=TS(this,c);return d!=c?d.isAtLiveHead(jT(this,c.getCurrentTime(),c),!0):d.isAtLiveHead(void 0,b)};
g.h.seekTo=function(a,b,c,d){b=0!=b;if(d=g.W(this,d))2==this.Z&&aT(this),this.Mb(d)?this.U?this.U.seekTo(a,b,c):this.za.seekTo(a,b,c):d.seekTo(a,{vC:!b,wC:c})};
g.h.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.h.SM=function(){this.u.na("SEEK_COMPLETE")};
g.h.TM=function(a,b){var c=a.getVideoData();if(1==this.Z||2==this.Z)c.startSeconds=b;2==this.Z?aT(this):this.u.na("SEEK_TO",b)};
g.h.TJ=function(){this.u.S("airplayactivechange")};
g.h.UJ=function(){this.u.S("airplayavailabilitychange")};
g.h.lK=function(){this.u.S("beginseeking")};
g.h.QK=function(){this.u.S("endseeking")};
g.h.getStoryboardFormat=function(a){return(a=g.W(this,a))?SS(this,a).getVideoData().getStoryboardFormat():null};
g.h.ue=function(a){return(a=g.W(this,a))?SS(this,a).getVideoData().ue():null};
g.h.Mb=function(a){if(a=a||this.C){a=a.getVideoData();if(this.U)a:{var b=this.U;if(a==b.u.getVideoData()&&b.o.length)a=!0;else{b=g.q(b.o);for(var c=b.next();!c.done;c=b.next())if(a.Db==c.value.Db){a=!0;break a}a=!1}}else a:if(b=this.za,a==b.w.getVideoData()&&b.u.length)a=!0;else{b=g.q(b.u);for(c=b.next();!c.done;c=b.next())if(a.Db==c.value.Db){a=!0;break a}a=!1}if(a)return!0}return!1};
g.h.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Mb();a=new g.dB(this.o,a);d&&(a.Db=d);if(!g.P(this.o.experiments,"html5_report_dai_ad_playback_killswitch")&&2==b&&this.w&&(d=this.w.B,d.o)){d=d.o;var e=a.clientPlaybackNonce,f=a.rm||"",k=a.breakType||0;g.jH(d,g.ZG(d.o),"ad_playback",[e,f,k])}c=void 0===c?Infinity:c;b=b||this.C.getPlayerType();var l;g.P(this.o.experiments,"html5_gapless_preloading")&&(l=fT(this,b,a,!0));l||(l=CS(this,b),vJ(l,a,(0,g.x)(this.Xc,
this)));qM(this,l,c)};
g.h.clearQueue=function(){this.Ia.clearQueue()};
g.h.loadVideoByPlayerVars=function(a,b,c,d){this.o.B&&vL(a);var e=new g.dB(this.o,a);c||(a&&sC(a)?(kz(this.o)&&!this.ba&&(a.fetch=0),ZS(this,a)):this.F&&ZS(this,null),a&&this.setIsExternalPlaylist(a.external_list),kz(this.o)&&!this.ba&&$S(this));return zM(this,e,b,d)};
g.h.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;e=void 0===e?"":e;d=b+"_"+Iy(a)+"_"+e;var f;if(!(f=this.Ua.get(d))&&(f=this.C)){f=this.C.getPlayerType();var k=this.C.getVideoData().videoId,l=this.C.getVideoData().Db;f=d==f+"_"+k+"_"+l}f||(this.o.B&&vL(a),a=new g.dB(this.o,a),e&&(a.Db=e),e=b+"_"+a.videoId+"_"+a.Db,a.Ui=!0,d=CS(this,b),vJ(d,a,(0,g.x)(this.Xc,this)),!g.P(this.o.experiments,"unplugged_tvhtml5_video_preload_no_dryrun")&&1==b&&nz(this.o)||AJ(d,!0),this.Ua.set(e,
d,c||3600),c="prefetch_"+a.videoId,RA("prefetch",["pfp"],c),JA({playerInfo:{playbackType:Gra[b]},videoId:a.videoId},c))};
g.h.setMinimized=function(a){this.G.setMinimized(a);a=this.A;(a=a.o.M().showMiniplayerUiWhenMinimized?a.u.get("miniplayer"):null)&&(this.G.o?a.load():a.unload());this.u.S("minimized")};
g.h.setInline=function(a){this.G.setInline(a)};
g.h.setImmersivePreview=function(a){this.G.setImmersivePreview(a)};
g.h.PM=function(){"picture-in-picture"==this.B.ib().webkitPresentationMode?iI(this.G,!0):iI(this.G,!1)};
g.h.togglePictureInPicture=function(){var a=g.W(this);a&&a.togglePictureInPicture()};
g.h.cueVideoByPlayerVars=function(a,b){this.o.B&&vL(a);if(a&&sC(a)){this.Ca=!0;ZS(this,a);var c=this.F.va();c&&c.isValid()?uT(this,c,b):xC(this.F,(0,g.x)(this.kp,this))}else b||(b=this.getPresentingPlayerType()),1==b&&this.vn(),uT(this,new g.dB(this.o,a),b)};
g.h.cuePlaylist=function(a,b,c,d){this.Ca=!0;a=Mu(a,b,c,d);ZS(this,a);xC(this.F,(0,g.x)(this.kp,this))};
g.h.loadPlaylist=function(a,b,c,d){this.Ca=!1;a=Mu(a,b,c,d);ZS(this,a);xC(this.F,(0,g.x)(this.kp,this))};
g.h.kp=function(){var a=this.F.va();if(a){var b=this.getVideoData();b.Eg||!this.Ca?(b=b.sh,a=zM(this,a),b&&tT(this,a)):uT(this,a)}this.u.na("onPlaylistUpdate")};
g.h.nextVideo=function(a,b){var c=this,d=this.w.getVideoData().suggestions;if(g.kL(this.u)&&d){d=(0,g.Fc)(d,function(f){return g.JM(c.o,f)});
d=d[0];var e=b?d.Mw:d.Ob;g.vT(this,d.va().videoId,e,d.getPlaylistId(),b)}else this.ba?this.u.na("onPlaylistNext"):3==this.getPresentingPlayerType()?g.SK(this.A).nextVideo():this.F&&(kz(this.o)&&!this.u.isFullscreen()?oT(this,"yt.www.watch.lists.next"):(this.F.hasNext(a)&&vC(this.F,tC(this.F)),this.F.loaded?(d=b&&g.P(this.o.experiments,"html5_player_autonav_logging"),zM(this,this.F.va(void 0,b,d),1)):this.Ca=!1))};
g.h.previousVideo=function(a){if(this.ba)this.u.na("onPlaylistPrevious");else if(3==this.getPresentingPlayerType())g.SK(this.A).vG();else if(this.F)if(kz(this.o)&&!this.u.isFullscreen())oT(this,"yt.www.watch.lists.prev");else{var b=this.F;(b.loop||a||0<=b.index-1)&&vC(this.F,uC(this.F));this.F.loaded?zM(this,this.F.va(),1):this.Ca=!1}};
g.h.playVideoAt=function(a){this.ba?this.u.na("onPlaylistIndex",a):this.F&&(this.F.loaded?zM(this,this.F.va(a),1):this.Ca=!1,vC(this.F,a))};
g.h.getPlaylist=function(){return this.F};
g.h.ZJ=function(a){this.u.na("onCueRangeEnter",a.getId())};
g.h.aK=function(a){this.u.na("onCueRangeExit",a.getId())};
g.h.eK=function(){var a=this;this.getPresentingPlayerType();this.Aa||(this.Aa=xs(OA,this.lA,this));kC(this.P,this.C.getVideoData(),zT(this));YS(this)&&this.o.u&&"embedded"==PB(WS(this))&&this.pd&&.01>Math.random()&&g.Yq("autoplayTriggered",{intentional:this.Vc});this.pd=!1;var b=g.ks(this.Md||(this.G.o?3:0));if(b){var c={cpn:this.getVideoData().clientPlaybackNonce,csn:b};if(g.P(this.o.experiments,"web_playback_associated_ve")&&null!=this.getVideoData().zf){var d=g.cs(this.getVideoData().zf);g.Bs(b,
d);c.playbackVe=g.es(d)}g.P(this.o.experiments,"kevlar_playback_associated_queue")&&this.getVideoData().queueInfo&&(c.queueInfo=this.getVideoData().queueInfo);g.Yq("playbackAssociated",c)}xS(this,"web_player_inline_botguard")&&(b=this.getVideoData().botguardData)&&(Bo("BG_I",b.interpreterScript),Bo("BG_IU",b.interpreterUrl),Bo("BG_P",b.program),g.mz(this.o)?Zp(function(){cT(a)}):cT(this))};
g.h.aL=function(){this.u.S("internalAbandon");xS(this,"html5_ad_module_cleanup_killswitch")||lT(this)};
g.h.lA=function(a){a=a.o;if(!isNaN(a)&&0<a&&this.w){var b=this.w.B;b.o&&0<a&&(b.o.u.aft=[a])}};
g.h.YJ=function(){this.o.w&&this.C?this.u.na("onApiChange",this.C.getPlayerType()):this.u.na("onApiChange")};
g.h.zL=function(){var a=this.B;a={volume:g.Pd(Math.floor(100*a.getVolume()),0,100),muted:a.Tn()};a.muted||eT(this,!1);this.R=g.Sb(a);this.u.na("onVolumeChange",a)};
g.h.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.u.na("onMutedAutoplayStarts"))};
g.h.UK=function(){var a=BT(this);RS(this,a?1:0);DT(this,!!a)};
g.h.isFullscreen=function(){return this.G.isFullscreen()};
g.h.GM=function(){0!==this.G.w&&1!==this.G.w||RS(this,BT(this)?1:0);this.o.Xm&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.B&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.B.il()};
g.h.hL=function(a){3!=this.getPresentingPlayerType()&&this.u.S("liveviewshift",a)};
g.h.playVideo=function(a){if(a=g.W(this,a))2==this.Z?aT(this):(null!=this.aa&&this.aa.Ga()&&this.aa.start(),g.V(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.h.pauseVideo=function(a){(a=g.W(this,a))&&a.pauseVideo()};
g.h.stopVideo=function(){var a=this.w.getVideoData(),b=new g.dB(this.o,{video_id:a.av||a.videoId,oauth_token:a.oauthToken});b.ff=g.Sb(a.ff);sT(this,6);uT(this,b,1);null!=this.aa&&this.aa.stop()};
g.h.sendVideoStatsEngageEvent=function(a,b,c){(b=g.W(this,b))&&this.o.Md.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.h.updatePlaylist=function(){$S(this);this.u.na("onPlaylistUpdate")};
g.h.setSizeStyle=function(a,b){this.oe=a;this.Ic=b;this.u.S("sizestylechange",a,b);this.I.Ce()};
g.h.isWidescreen=function(){return this.Ic};
g.h.isInline=function(){return this.G.isInline()};
g.h.getAdState=function(){if(3==this.getPresentingPlayerType())return g.SK(this.A).getAdState();if(!this.Mb()){var a=HL(this.A);if(a)return a.getAdState()}return-1};
g.h.FM=function(a){var b=this.I.getVideoContentRect();vh(this.od,b)||(this.od=b,this.C&&XJ(this.C),this.w&&this.w!=this.C&&XJ(this.w),1==this.G.w&&this.Sa&&DT(this,!0));this.Hc&&g.Wd(this.Hc,a)||(this.u.S("appresize",a),this.Hc=a)};
g.h.Qc=function(){return this.u.Qc()};
g.h.YM=function(){this.getPresentingPlayerType();FT(this,"signature",void 0,!0)};
g.h.DA=function(){LS(this);KS(this)};
g.h.BM=function(a){iK(a,this.B.Qo())};
g.h.BK=function(){this.u.na("CONNECTION_ISSUE")};
g.h.CG=function(a){this.u.S("heartbeatparams",a)};
g.h.setBlackout=function(a){this.o.Xg=a;this.C&&(g.SH(this.C.B),this.o.R&&HT(this))};
g.h.PL=function(){var a=g.W(this);if(a){var b=!dL(this.u);g.xK(a,b)}};
g.h.kL=function(){this.u.na("onLoadedMetadata")};
g.h.PK=function(){this.u.na("onDrmOutputRestricted")};
g.h.X=function(){this.A.dispose();this.za.dispose();this.U&&this.U.dispose();this.w.dispose();LS(this);g.Le(g.Ib(this.Kc),this.F);ws(this.Aa);this.Aa=0;g.A.prototype.X.call(this)};
g.h.setScreenLayer=function(a){this.Md=a};
g.h.fetchLocalMedia=function(){if(this.ma){var a=this.ma,b=a.api.kb();if(b){var c=a.api.getVideoData();if(c&&!TB(c)){b.unsubscribe("localmediacomplete",a.u,a);b.subscribe("localmediacomplete",a.u,a);g.MJ(g.W(a.api.app,void 0));if(1!=c.sj&&(c.sj=!0,c.ia)){b=c.ia;for(var d in b.o){var e=b.o[d];e.B=!1;e.o=null}}qS(c);a.api.playVideo()}}}};
g.h.fetchLocalMediaById=function(a){if(this.ma){var b=this.ma;b.o.includes(a)||(b.o.push(a),1===b.o.length&&rS(b,a))}};
g.h.getLocalMediaInfoById=function(a){return this.ma?this.ma.getLocalMediaInfoById(a):Promise.reject()};
g.h.getAllLocalMediaInfo=function(){return this.ma?this.ma.getAllLocalMediaInfo():Promise.reject()};
g.h.getStatsForNerds=function(){var a=this.u,b=g.W(this),c=a.getVideoData(),d=a.app.B,e=d.ib(),f=b.Sr(),k=b.ha,l=8*II(k,"bandwidth")/1024,m=II(k,"networkactivity")/1024,n=II(k,"bufferhealth");if(b.F){var p=b.T.useInnertubeDrmService()?"IT/":"";p+=b.F.o.ge()+"/"+Iu(TJ(b));p+="/"+b.F.ge()}else p="";var t=c.Xx()?"DAI, ":"",u=b.getPlayerState().o.toString(16),z=d.getCurrentTime().toFixed(2),B=Qt(d.Fd(),",",3);u="s:"+u+" t:"+z+" b:"+B+" ";d.Tl()&&(u+="S");d.Ch()&&(u+="P");d.Af()&&(u+="E");d=b.B;d=d.o?
d.o.ha:void 0;d&&(u+=" l:"+d.toFixed());t+=u;d=g.lz();u=g.XK(a).RF;z=c.wa&&!c.wa.o?"display:none":"";if((B=c.clientPlaybackNonce)&&16==B.length){for(var D=0,E="",F=0;10>F;F++)if(D=(D<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(B.charAt(F)),4==F%5){for(var I="",ia=0;6>ia;ia++)I="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(D&31)+I,D>>=5;E+=I}B=E.substr(0,4)+" "+E.substr(4,4)+" "+E.substr(8,4)}else B="";l={video_id_and_cpn:c.videoId+" / "+B,codecs:"",dims_and_frames:"",
bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",drm_style:p?"":"display:none",drm:p,debug_info:t,bandwidth_style:z,network_activity_style:z,network_activity_bytes:m.toFixed(0)+" KB",shader_info:u,shader_info_style:u?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1<d?"*"+d.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=SB(c);a=Math.round(a)+
"% / "+Math.round(a*f)+"%";f=c.wm.toFixed(1);isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=e.videoWidth+"x"+e.videoHeight;if(a=c.Ba)if(e=a.video)f=e.fps,1<f&&(l.resolution+="@"+f),(f=g.IJ(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=sS(a),!c.Ub||a.audio&&a.video||(l.codecs+=" / "+sS(c.Ub)),e.o||e.primaries?(a=e.o||"unknown","smpte2084"===a?a+=" (PQ)":"arib-std-b67"===a&&(a+=" (HLG)"),
l.color=a+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style="display:none";e=c.sa;a=c.ze;l.live_mode_style=e||a?"":"display:none";l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(tB(c)?" Manifestless":"");else if(e){a=II(k,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=tB(c)?"Manifestless, ":"";c.uo&&(e+="Windowed, ");f="Uncertain";if(0<=a&&120>a)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":f="Optimized for Normal Latency";
break;case "LOW":f="Optimized for Low Latency";break;case "ULTRALOW":f="Optimized for Ultra Low Latency";break;default:f="Unknown Latency Setting"}else f=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=f;(a=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+a.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=HI(k,"bandwidth");l.network_activity_samples=
HI(k,"networkactivity");l.live_latency_samples=HI(k,"livelatency");l.buffer_health_samples=HI(k,"bufferhealth");lB(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20200510_0_RC2",l.release_style=""):l.release_style="display:none";return l};
g.h.getVideoUrl=function(a,b,c,d,e){return this.L&&this.L.postId?(a=this.o.getVideoUrl(a),a=Gd(a,"v"),a.replace("/watch","/clip/"+this.L.postId)):this.o.getVideoUrl(a,b,c,d,e)};
var ES={};var Sla="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" ");OT.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return PT(this,a,b);var d=1===this.u;d&&this.o.app.P.tick("a_bid_s");var e=Pla();if(null!==e)return d&&this.o.app.P.tick("a_bid_f"),PT(this,a,b,e);e=Qla();d&&Mf(e,function(){c.o.app.P.tick("a_bid_f")});
return e.then(function(f){return PT(c,a,b,f)})};
OT.prototype.reset=function(){this.w=this.u=1};var isa={vS:"replaceUrlMacros",vR:"isExternalShelfAllowedFor"};g.r(RT,g.mC);var jsa={commandMetadata:!0,loggingUrls:!0};g.r($T,g.A);$T.prototype.X=function(){this.o={};g.A.prototype.X.call(this)};
$T.prototype.executeCommand=function(a,b,c){var d=this;c=void 0===c?{}:c;this.ea();a.loggingUrls&&aU(this,"loggingUrls",a,b,c);Object.keys(a).filter(function(e){return!jsa.hasOwnProperty(e)}).forEach(function(e){return aU(d,e,a,b,c)})};bU.prototype.o=function(){return"adLifecycleCommand"};
bU.prototype.Ea=function(a){var b=this;switch(a.action){case "START_LINEAR_AD":g.xf(function(){b.u.Sy()});
break;case "END_LINEAR_AD":g.xf(function(){b.u.Ry()});
break;case "END_LINEAR_AD_PLACEMENT":g.xf(function(){b.u.Ys()});
break;case "FILL_INSTREAM_SLOT":g.xf(function(){a.elementId&&b.u.Qw(a.elementId)});
break;case "FILL_ABOVE_FEED_SLOT":g.xf(function(){a.elementId&&(null!==b.A&&(PW(b.w)||QW(b.w)||RW(b.w))&&b.A.Dr(a.elementId),b.u.Dr(a.elementId))});
break;case "CLEAR_ABOVE_FEED_SLOT":g.xf(function(){null!==b.A&&(PW(b.w)||QW(b.w)||RW(b.w))&&b.A.gr();b.u.gr()})}};cU.prototype.o=function(){return"adPingingEndpoint"};
cU.prototype.Ea=function(a,b,c){c=void 0===c?{}:c;this.u.send(a,b,c)};dU.prototype.o=function(){return"adPlayerControlsCommand"};
dU.prototype.Ea=function(a){switch(a.action){case "AD_PLAYER_CONTROLS_ACTION_SEEK_TO_END":var b=this.u;b=$U(b.o)&&b.u.uh()?b.o.getDuration(2):0;if(0>=b)break;this.u.seekTo(g.Pd(b-(Number(a.seekOffsetMilliseconds)||0)/1E3,0,b));break;case "AD_PLAYER_CONTROLS_ACTION_RESUME":this.u.resume()}};eU.prototype.o=function(){return"changeEngagementPanelVisibilityAction"};
eU.prototype.Ea=function(a){this.N.na("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};fU.prototype.o=function(){return"clearCueRangesCommand"};
fU.prototype.Ea=function(){var a=this;g.xf(function(){var b=a.u;jX(b,Array.from(b.G))})};gU.prototype.send=function(a,b,c){try{var d=a.match(pd);if("https"===d[1])var e=a;else d[1]="https",e=md("https",d[2],d[3],d[4],d[5],d[6],d[7]);var f=hn(e);a=[];zq(e)&&a.push({headerType:"USER_AUTH"});this.o.send({baseUrl:e,scrubReferrer:f,headers:a},b,c)}catch(k){}};hU.prototype.o=function(){return"loggingUrls"};
hU.prototype.Ea=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.u.send(d.baseUrl,b,c)};iU.prototype.o=function(){return"muteAdEndpoint"};
iU.prototype.Ea=function(a){var b=this;switch(a.type){case "SKIP":g.xf(function(){b.u.Ys()})}};jU.prototype.o=function(){return"pingingEndpoint"};
jU.prototype.Ea=function(){};kU.prototype.o=function(){return"urlEndpoint"};
kU.prototype.Ea=function(a,b){if(a.url){var c=g.jn(a.url,b);g.fO(c)}};g.r(lU,g.A);mU.prototype.showCompanion=function(a,b,c){return nU(this).then(function(){return rU(a,b,c)})};tU.prototype.showCompanion=function(a,b){b.contentVideoId||(b.contentVideoId=a);this.u.na("updateKevlarOrC3Companion",b)};uU.prototype.Fl=function(){return!1};
uU.prototype.R=function(){return function(){return null}};g.r(xU,uU);g.h=xU.prototype;g.h.cd=function(){return!0};
g.h.Ec=function(){return!1};
g.h.isSkippable=function(){return null!=this.aa};
g.h.getVideoUrl=function(){return this.P};
g.h.Fl=function(){return!0};g.r(AU,uU);AU.prototype.cd=function(){return!0};
AU.prototype.Ec=function(){return!0};g.r(HU,uU);HU.prototype.cd=function(){return!0};
HU.prototype.Ec=function(){return!1};
HU.prototype.Fl=function(){return!0};
HU.prototype.R=function(){return function(){return g.fe("video-ads")}};IU.prototype.xb=function(){return this.L};
IU.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.xb().u};var jma=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];var VU=null;g.r(UU,g.O);UU.prototype.pl=function(a){return this.o.hasOwnProperty(a)?this.o[a].pl():{}};
g.Ia("ytads.bulleit.getVideoMetadata",function(a){return WU().pl(a)},void 0);
g.Ia("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=WU();c=lma(c);null!==c&&d.S(c,{queryId:a,viewabilityString:b})},void 0);XU.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.jn(a.baseUrl,kma(b,c,d)),f;if(a.headers)for(var k=g.q(a.headers),l=k.next();!l.done;l=k.next())switch(l.value.headerType){case "USER_AUTH":var m=this.Qd();m&&(f||(f={}),f.Authorization="Bearer "+m)}g.jr(e,void 0,d,f)}catch(n){}};g.r(YU,XU);YU.prototype.Qd=function(){return this.o?this.o.Qd():""};g.r(ZU,g.A);g.r(eV,g.A);g.r(Y,g.O);g.h=Y.prototype;g.h.pl=function(){return{}};
g.h.pu=function(){};
g.h.fb=function(a){this.Ke();this.S(a)};
g.h.wz=function(){};
g.h.Ke=function(){wV(this,this.V,3);this.V=[]};
g.h.getDuration=function(){return this.N.getDuration(2,!1)};
g.h.nh=function(){var a=this.o;fV(a)||!sV(a,"impression")&&!sV(a,"start")||sV(a,"abandon")||sV(a,"complete")||sV(a,"skip")||(hV(a)?nV(a,"pause"):mV(a,"pause"))};
g.h.rg=function(){this.aa||this.G||this.Lb()};
g.h.bd=function(){pV(this.o,this.getDuration())};
g.h.Ac=function(){var a=this.o;!sV(a,"impression")||sV(a,"skip")||sV(a,"complete")||nV(a,"abandon")};
g.h.oh=function(){var a=this.o;hV(a)?mV(a,"skip"):!sV(a,"impression")||sV(a,"abandon")||sV(a,"complete")||mV(a,"skip")};
g.h.Lb=function(){if(!this.G){var a=zV(this);this.o.w.AD_CPN=a;oV(this.o);this.G=!0}};
g.h.Vb=function(a){a=a||"";var b="",c="",d="";$U(this.N)&&(b=g.QK(this.N,2).o,this.N.app.B&&(c=this.N.app.B.je(),null!=this.N.app.B.Xe()&&(d=this.N.app.B.Xe())));var e=this.o;e.w=SU(e.w,QU(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));mV(e,"error")};
g.h.Mi=function(){};
g.h.xB=function(){this.S("e")};
g.h.yB=function(){this.S("j")};
g.h.zB=function(){this.S("k")};
g.h.AB=function(){this.S("l")};
g.h.BB=function(){this.S("m")};
g.h.CB=function(){this.S("n")};
g.h.DB=function(){this.S("s")};
g.h.dispose=function(){this.ea()||(this.Ke(),this.w.unsubscribe("e",this.xB,this),this.w.unsubscribe("j",this.yB,this),this.w.unsubscribe("k",this.zB,this),this.w.unsubscribe("l",this.AB,this),this.w.unsubscribe("m",this.BB,this),this.w.unsubscribe("n",this.CB,this),this.w.unsubscribe("s",this.DB,this),delete this.w.o[this.F.F],g.O.prototype.dispose.call(this))};
g.h.Nw=function(){return""};g.r(AV,uU);AV.prototype.cd=function(){return!1};
AV.prototype.Ec=function(){return!0};g.r(BV,WT);g.r(CV,Y);CV.prototype.dc=function(){var a=this,b=new BV(this.F.o,this.macros),c=this.N.getVideoData(2),d=b.renderer;g.P(this.N.M().experiments,"ignore_video_data_current_ad_check")&&c&&d&&d.adVideoId?EV(this,c,b):c&&c.Jd&&DV(c,b)?EV(this,c,b):(this.u=function(e,f,k){f&&2==k&&DV(f,b)&&f.Jd&&(a.u&&(a.N.removeEventListener("videodatachange",a.u),a.u=null),EV(a,f,b))},this.N.addEventListener("videodatachange",this.u))};
CV.prototype.Mi=function(a){tV(this.o,a)};
CV.prototype.X=function(){this.u&&(this.N.removeEventListener("videodatachange",this.u),this.u=null);Y.prototype.X.call(this)};g.r(FV,uU);FV.prototype.cd=function(){return!0};
FV.prototype.Ec=function(){return!1};g.r(GV,WT);g.r(HV,Y);g.h=HV.prototype;g.h.dc=function(){0<this.u&&this.Lb()};
g.h.Lb=function(){var a=this;this.Fa=new g.H(function(){a.bd();for(var b=g.q(a.A.o.completionCommands||[]),c=b.next();!c.done;c=b.next())a.B.executeCommand(c.value,a.macros);a.fb("h")},this.u,this);
g.C(this,this.Fa);this.Fa.start();xV(this,[new GV(this.A.o,this.macros)]);Y.prototype.Lb.call(this)};
g.h.Ac=function(){Y.prototype.Ac.call(this);this.fb("c")};
g.h.bd=function(){Y.prototype.bd.call(this)};
g.h.fb=function(a){this.Fa&&this.Fa.stop();Y.prototype.fb.call(this,a)};g.r(IV,WT);g.r(JV,Y);JV.prototype.dc=function(){this.Lb()};
JV.prototype.Lb=function(){xV(this,[new IV(this.u.o,this.macros)]);Y.prototype.Lb.call(this)};
JV.prototype.Ac=function(){Y.prototype.Ac.call(this);this.fb("c")};
JV.prototype.Vb=function(a){Y.prototype.Vb.call(this,a);this.fb("i")};g.r(KV,uU);KV.prototype.cd=function(){return!0};
KV.prototype.Ec=function(){return!1};g.r(LV,uU);LV.prototype.cd=function(){return!0};
LV.prototype.Ec=function(){return!1};g.r(MV,uU);MV.prototype.cd=function(){return!1};
MV.prototype.Ec=function(){return!0};g.r(NV,uU);NV.prototype.cd=function(){return!1};
NV.prototype.Ec=function(){return!0};g.r(OV,uU);OV.prototype.cd=function(){return!0};
OV.prototype.Ec=function(){return!0};g.r(PV,uU);PV.prototype.cd=function(){return!0};
PV.prototype.Ec=function(){return!1};g.r(QV,uU);QV.prototype.cd=function(){return!1};
QV.prototype.Ec=function(){return!0};g.r(RV,uU);RV.prototype.cd=function(){return!1};
RV.prototype.Ec=function(){return!0};g.r(SV,uU);SV.prototype.cd=function(){return!0};
SV.prototype.Ec=function(){return!1};g.r(TV,uU);TV.prototype.cd=function(){return!0};
TV.prototype.Ec=function(){return!1};UV.prototype.create=function(a,b){return a instanceof xU?this.aa.create(a,b):a instanceof OV?this.G.create(a,b):a instanceof NV?this.F.create(a,b):a instanceof RV?this.L.create(a,b):a instanceof HU?this.R.create(a,b):a instanceof QV?this.P.create(a,b):a instanceof FV?this.u.create(a,b):a instanceof PV?this.I.create(a,b):a instanceof AV?this.o.create(a,b):a instanceof TV?this.V.create(a,b):a instanceof SV?this.U.create(a,b):a instanceof AU?this.w.create(a,b):a instanceof LV?this.B.create(a,b):a instanceof
KV?this.A.create(a,b):a instanceof MV?this.C.create(a,b):null};g.r(VV,Y);g.h=VV.prototype;g.h.Ac=function(){Y.prototype.Ac.call(this);this.fb("c")};
g.h.nh=function(){Y.prototype.nh.call(this);this.S("o",2)};
g.h.rg=function(){Y.prototype.rg.call(this);this.S("p",1)};
g.h.Lb=function(){Y.prototype.Lb.call(this);this.u.stop();this.A.K(this.N,g.pC("bltplayback"),this.GI);var a=new g.mC(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.fL(this.N,[a],2);this.S("p",1)};
g.h.bd=function(){Y.prototype.bd.call(this);this.fb("h")};
g.h.Vb=function(a){Y.prototype.Vb.call(this,a);this.fb("i")};
g.h.dc=function(){cV(this.N,!1);var a=this.B.u||{};a.autoplay="1";this.N.cueVideoByPlayerVars(a,2);this.u.start();this.N.playVideo(2);this.N.na("onAdIntroStateChange",1)};
g.h.fb=function(a){this.u.stop();cV(this.N,!0);"c"!=a&&vY(this.C.ba);"c"!=a&&this.N.na("onAdComplete");this.N.na("onAdEnd");this.S(a);this.N.na("onAdIntroStateChange",0)};
g.h.GI=function(a){"bltcompletion"==a.getId()&&(g.IR(this.N.app,"bltplayback",2),pV(this.o,this.getDuration()))};g.r(WV,WT);g.r(XV,Y);g.h=XV.prototype;g.h.dc=function(){0>=this.C&&(g.M(Error("durationMs was specified incorrectly with a value of: "+this.C)),this.bd());this.Lb();this.N.addEventListener("progresssync",this.I)};
g.h.Ac=function(){Y.prototype.Ac.call(this);this.fb("d")};
g.h.Lb=function(){var a=this.N.M();Y.prototype.Lb.call(this);this.u=Math.floor(this.N.getCurrentTime());this.A=this.u+this.C/1E3;g.cz(a)?this.N.na("onAdMessageChange",{renderer:this.B.o,startTimeSecs:this.u}):xV(this,[new WV(this.B.o)]);a=(a=this.N.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.ks();b&&g.Yq("adNotify",{clientScreenNonce:b,adMediaTimeSec:this.A,timeToAdBreakSec:Math.ceil(this.A-this.u),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(this.B.o.videoAdBreakOffsetMs/1E3)});
g.V(g.QK(this.N,1),512)&&(a=(a=this.N.getVideoData(1))&&a.clientPlaybackNonce||"",(b=g.ks())&&g.Yq("adNotifyFailure",{clientScreenNonce:b,adMediaTimeSec:this.A,timeToAdBreakSec:Math.ceil(this.A-this.u),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(this.B.o.videoAdBreakOffsetMs/1E3)}),this.bd())};
g.h.bd=function(){Y.prototype.bd.call(this);this.fb("h")};
g.h.Vb=function(a){Y.prototype.Vb.call(this,a);this.fb("i")};
g.h.fb=function(a){this.N.removeEventListener("progresssync",this.I);this.Ke();this.S(a)};
g.h.dispose=function(){this.N.removeEventListener("progresssync",this.I);Y.prototype.dispose.call(this)};
g.h.Ke=function(){g.cz(this.N.M())?this.N.na("onAdMessageChange",{renderer:null,startTimeSecs:this.u}):Y.prototype.Ke.call(this)};g.r(YV,WT);g.r(ZV,Y);ZV.prototype.dc=function(){xV(this,[new YV(this.F.o,this.macros)])};
ZV.prototype.Mi=function(a){tV(this.o,a)};g.r($V,Y);$V.prototype.dc=function(){var a=zV(this);this.o.w.AD_CPN=a;oV(this.o)};g.r(aW,WT);g.r(bW,WT);g.r(cW,Y);cW.prototype.dc=function(){var a;if(a=g.P(this.N.M().experiments,"render_enhanced_overlays_as_ctas_for_desktop"))a=this.u.o,a=a.contentSupportedRenderer?!!a.contentSupportedRenderer.enhancedTextOverlayAdContentRenderer:!1;a?(a=new bW(this.u.o,this.macros),xV(this,[a])):(a=new aW(this.u.o,this.macros),xV(this,[a]))};g.r(dW,WT);g.r(eW,Y);eW.prototype.dc=function(){this.Lb()};
eW.prototype.Lb=function(){xV(this,[new dW(this.u.o,this.macros)]);Y.prototype.Lb.call(this)};
eW.prototype.Vb=function(a){Y.prototype.Vb.call(this,a);this.fb("i")};iW.prototype.sendAdsPing=function(a){this.B.send(a,mW(this),{})};g.r(oW,WT);g.r(pW,Y);pW.prototype.dc=function(){var a=new oW(this.u.o,this.macros);xV(this,[a])};g.r(qW,WT);g.r(rW,Y);rW.prototype.dc=function(){var a=new qW(this.F.o,this.macros);xV(this,[a])};
rW.prototype.Mi=function(a){tV(this.o,a)};g.r(uW,g.O);uW.prototype.getProgressState=function(){return this.w};
uW.prototype.start=function(){this.A=Date.now();tW(this,{current:this.o/1E3,duration:this.u/1E3});this.Fa.start()};
uW.prototype.stop=function(){this.Fa.stop()};g.r(vW,WT);g.r(wW,Y);g.h=wW.prototype;g.h.dc=function(){this.Lb()};
g.h.Lb=function(){var a=this.B.o;g.cz(this.N.M())?(a=Bma(this.I,a),this.N.na("onAdInfoChange",a),this.u&&(this.C=Date.now(),this.u.start())):xV(this,[new vW(a)]);Y.prototype.Lb.call(this)};
g.h.getDuration=function(){return this.B.u};
g.h.nh=function(){Y.prototype.nh.call(this);this.u&&this.u.stop()};
g.h.rg=function(){Y.prototype.rg.call(this);this.u&&this.u.start()};
g.h.Ac=function(){Y.prototype.Ac.call(this);this.fb("c")};
g.h.oh=function(){Y.prototype.oh.call(this);this.fb("h")};
g.h.Vb=function(a){Y.prototype.Vb.call(this,a);this.fb("i")};
g.h.fb=function(a){this.Ke();"c"!=a&&vY(this.P.ba);this.S(a)};
g.h.Mi=function(a){switch(a){case "skip-button":this.oh();break;case "survey-submit":this.fb("h")}};
g.h.Ke=function(){g.cz(this.N.M())?(this.u&&this.u.stop(),this.N.na("onAdInfoChange",null)):Y.prototype.Ke.call(this)};g.r(xW,WT);g.r(yW,Y);yW.prototype.dc=function(){this.Lb()};
yW.prototype.Lb=function(){xV(this,[new xW(this.u.o,this.macros)]);Y.prototype.Lb.call(this)};
yW.prototype.Ac=function(){Y.prototype.Ac.call(this);this.fb("c")};
yW.prototype.Vb=function(a){Y.prototype.Vb.call(this,a);this.fb("i")};g.r(zW,WT);g.r(AW,Y);g.h=AW.prototype;g.h.dc=function(){0<this.u&&this.Lb()};
g.h.Lb=function(){this.Fa=new g.H(this.bd,this.u,this);g.C(this,this.Fa);this.Fa.start();xV(this,[new zW(this.A.o)]);Y.prototype.Lb.call(this)};
g.h.bd=function(){Y.prototype.bd.call(this);this.fb("h");for(var a=g.q(this.A.o.completeCommands||[]),b=a.next();!b.done;b=a.next())this.B.executeCommand(b.value,this.macros)};
g.h.Ac=function(){Y.prototype.Ac.call(this);this.fb("c")};
g.h.Vb=function(a){Y.prototype.Vb.call(this,a);this.fb("i")};
g.h.fb=function(a){this.Fa&&this.Fa.stop();Y.prototype.fb.call(this,a)};g.r(BW,g.A);BW.prototype.start=function(){this.ea()||this.o||(this.w=(0,g.G)(),this.o=new g.H(this.B,Math.max(0,this.A-this.u),this),g.C(this,this.o),this.o.start())};
BW.prototype.stop=function(){this.o&&(this.w=this.u=0,CW(this))};
BW.prototype.pause=function(){this.o&&(this.u+=(0,g.G)()-this.w,CW(this))};
BW.prototype.X=function(){CW(this);g.A.prototype.X.call(this)};g.r(DW,WT);g.r(EW,WT);g.r(FW,WT);g.r(GW,WT);g.r(HW,WT);g.r(IW,WT);g.r(JW,WT);g.r(KW,Y);g.h=KW.prototype;g.h.pl=function(){return{currentTime:this.N.getCurrentTime(2,!1),duration:this.u.u,isPlaying:aV(this.N),isVpaid:!1,isYouTube:!0,volume:this.N.isMuted()?0:this.N.getVolume()/100}};
g.h.dc=function(){if(this.u.I)yV(this),this.fb("i");else{var a=this.u.o.legacyInfoCardVastExtension,b=this.u.B;a&&b&&this.N.M().I.add(b,{tn:a});try{var c=this.u.o.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.fd(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=be(l).createElement("SCRIPT");
n.type="text/javascript";n.async=!0;var p=yaa(g.ac("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.fd(d)+".js"});bd(n,p);l.getElementsByTagName("head")[0].appendChild(n)}}catch(t){g.$q(t)}cV(this.N,!1);d=yU(this.u);e=this.N.M();g.P(this.N.M().experiments,"disable_force_iv_load_policy_on_bulleit")||(d.iv_load_policy=e.o||g.cz(e)||g.oz(e)?3:1);f=this.N.getVideoData(1);f.Kf&&(d.ctrl=f.Kf);f.Lf&&(d.ytr=f.Lf);f.An&&(d.ytrcc=f.An);f.isMdxPlayback&&(d.mdx="1");d.vvt&&(d.vss_credentials_token=d.vvt,
f.Th&&(d.vss_credentials_token_type=f.Th),f.mdxEnvironment&&(d.mdx_environment=f.mdxEnvironment));this.ga&&this.S("r",-1);XW(e)&&(e=WW(this),e=xma(this.da,e,this.u.o.adNextParams||""),e.attributionInfo=TW(this),this.N.na("onAdInfoChange",e));this.P?this.I.start():(this.N.cueVideoByPlayerVars(d,2),this.I.start(),this.N.playVideo(2))}};
g.h.nh=function(){Y.prototype.nh.call(this);this.S("o",2)};
g.h.rg=function(){Y.prototype.rg.call(this);this.S("p",1)};
g.h.Lb=function(){Y.prototype.Lb.call(this);this.I.stop();this.Z.K(this.N,g.pC("bltplayback"),this.HI);var a=new g.mC(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.fL(this.N,[a],2);a=SW(this);this.B.ga=a;if(!OW(this.C)){a=[];var b=this.N.M(),c=this.N.getVideoData(2);if(g.P(b.experiments,"disable_ad_info_event_for_music_web")?pz(b)||g.cz(b):XW(b)){var d=c&&c.isListed?{channelId:c.Og,channelThumbnailUrl:c.Jd||"",channelTitle:c.author,videoTitle:c.title,channelVideoCount:0,
showAdInfoIcon:!1,whyThisAdInfo:null,muteAdInfo:null}:null;d&&this.N.na("onAdMetadataAvailable",d)}g.cz(b)||(!g.oz(b)||(g.P(this.N.M().experiments,"enable_upg_processed_dvr_dai")?this.P:IY(this.B).Df())||(c&&c.videoId&&c.isListed&&c.videoId==this.u.B&&(b=c.title,d=c.author,c=c.Jd,b&&d&&c?c=[new FW(b),new EW(c),new GW(d)]:(g.ar(new Zq("Channel metadata contains null for:",b?d?"channel icon thumbnail.":"channel name.":"video title.")),c=[]),xV(this,c)),a.push(TW(this)),c=this.u.C,null==c?c=null:(b=
{},c.urlEndpoint&&(b.url=c.urlEndpoint.url,b.target="TARGET_NEW_WINDOW"),c=new JW({navigationEndpoint:{urlEndpoint:b}})),c&&a.push(c),this.u.isSkippable()&&!zU(this.u)&&(c=WW(this),(c=c.skipOrPreviewRenderer&&c.skipOrPreviewRenderer.skipAdRenderer)||(c=UW(this)),a.push(new IW(c)))),c=WW(this),a.push(new HW(c)),xV(this,a))}this.N.isMuted()&&(a=this.o,c=this.N.isMuted(),hV(a)||mV(a,c?"mute":"unmute"));this.S("p",1);LW(this)&&(a=null!==IY(this.B)?IY(this.B).clientPlaybackNonce:"",Dqa(this.R,MW(this),
this.u,a,this),this.U=!0);this.N.na("onAdStart",SW(this));a=this.ha;c=this.u.B||"";(b=a.u.kb())&&b.getVideoData().videoId===c?a.o=TH(b.B):a.o=null;a=g.q(this.u.o.impressionCommands||[]);for(c=a.next();!c.done;c=a.next())this.B.executeCommand(c.value,this.macros)};
g.h.HI=function(a){"bltcompletion"==a.getId()&&(g.IR(this.N.app,"bltplayback",2),pV(this.o,this.getDuration()),NW(this,"h"))};
g.h.bd=function(){Y.prototype.bd.call(this);this.fb("h");for(var a=g.q(this.u.o.completeCommands||[]),b=a.next();!b.done;b=a.next())this.B.executeCommand(b.value,this.macros);this.ba=!0};
g.h.Ac=function(){Y.prototype.Ac.call(this);this.fb("c")};
g.h.LB=function(){var a=this.o;fV(a)||nV(a,"clickthrough")};
g.h.skip=function(){this.oh()};
g.h.oh=function(){Y.prototype.oh.call(this);this.fb("h")};
g.h.Vb=function(a){Y.prototype.Vb.call(this,a);this.fb("i")};
g.h.fb=function(a){this.I.stop();this.A&&this.A.stop();OW(this.C)||this.Ke();cV(this.N,!0);"c"!=a&&(vY(this.B.ba),this.N.na("onAdComplete"));NW(this,a);this.N.na("onAdEnd",SW(this));this.S(a)};
g.h.Ke=function(){var a=this.N.M();XW(a)&&(g.oz(a)||g.P(a.experiments,"enable_topsoil_wta_for_halftime")||g.cz(a))?this.N.na("onAdInfoChange",null):Y.prototype.Ke.call(this)};
g.h.pu=function(){this.hy&&this.N.playVideo()};
g.h.wz=function(a){this.A&&(g.UC(a.state)?this.A.start():this.A.pause());g.P(this.N.M().experiments,"enable_reset_for_seek_ad_for_web")&&!this.P&&!this.ba&&g.V(a.state,16)&&3<this.N.getCurrentTime(2,!1)&&ET(this.N.app,0,!0,void 0,2,!0)};
g.h.hy=function(){return 2==this.N.getPlayerState(2)};
g.h.Mi=function(a){if(!OW(this.C)){var b=this.o;if($U(b.o))switch(a){case "ad-title":b.o.sendVideoStatsEngageEvent(14,void 0,2);break;case "ad-channel-thumbnail":case "advertiser-name":b.o.sendVideoStatsEngageEvent(15,void 0,2);break;case "visit-advertiser":b.o.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.L||this.pu();break;case "ad-info-icon-button":(this.L=this.hy())||this.N.pauseVideo();
break;case "ad-channel-thumbnail":case "advertiser-name":a=this.N.M().protocol+"://"+g.hz(this.N.M())+"/channel/"+this.u.V;g.fO(a);break;case "ad-title":this.N.pauseVideo();g.fO(this.N.getVideoUrl());break;case "visit-advertiser":this.N.pauseVideo();g.oz(this.N.M())&&(a=this.u.C)&&(oma(this.o,a.loggingUrls||null),a.urlEndpoint&&a.urlEndpoint.url&&g.fO(a.urlEndpoint.url));a=this.o;fV(a)||nV(a,"clickthrough");break;case "skip-button":this.oh()}}};
g.h.Nw=function(a,b){if(this.u.I)return yV(this),this.fb("i"),"";if(!Number.isFinite(a))return g.$q(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.$q(Error("Start time is not earlier than end time")),"";var c=1E3*this.u.u,d=yU(this.u),e=this.N.app;d=e.U?Yka(e.U,d,c,a,b):$ka(e.za,d,c,a,b);if(a+c>b)if(e=this.N.app,c=b-a,e.U){var f=void 0;e=g.q(e.U.o);for(var k=e.next();!k.done;k=e.next())if(k=k.value,k.Db==d){var l=k;break}l&&(void 0==f&&(f=l.Nb),
iM(l,c,f))}else{l=e.za;e=void 0;k=g.q(l.u);for(var m=k.next();!m.done;m=k.next())if(m=m.value,m.Db==d){f=m;break}f?(void 0==e&&(e=f.Nb),AM(l,f,c,e)):mM(l,"e.InvalidTimelinePlaybackId timelinePlaybackId="+d)}return d};
g.h.dispose=function(){aV(this.N)&&!this.P&&this.N.stopVideo(2);NW(this,"c");Y.prototype.dispose.call(this)};YW.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.o[b];c?b=c:(c={pj:null,ly:-Infinity},b=this.o[b]=c);c=a.startSecs+a.o/1E3;if(!(c<b.ly)){b.ly=c;if(b.pj){if(c<b.pj.end){a:{c=b.pj;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}null!==a&&(b.pj.end=a,this.u.nA(a));return}b.pj=
null}a:if(c=a.startSecs+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}var d=Math.max(a.startSecs,0);a={mE:new Yn(d,c),UF:new jv(d,c-d,a.context,a.identifier,a.event,a.o)}}a&&(c=a.UF,b.pj=a.mE,this.u.CA(c))}};
YW.prototype.updateTime=function(){};g.r(aX,uU);eX.prototype.reset=function(){return new eX(this.u)};g.r(lX,g.O);g.h=lX.prototype;g.h.Ni=function(){var a=this.o;return a.o instanceof xU||a.o instanceof HU||a.o instanceof BU||a.o instanceof AU};
g.h.cm=function(){return this.o.o.Ec()};
g.h.xb=function(){return this.o.xb()};
g.h.cp=function(){return KU(this.o)};
g.h.zt=function(){return JU(this.o)};
g.h.Zr=function(a){if(!ST(a)){this.P&&(this.V=this.N.isAtLiveHead(),this.U=Math.ceil((0,g.G)()/1E3));var b=new hX(this.xc);a=iX(a);kX(b,a)}this.ck()};
g.h.Lj=function(){return this.B instanceof RV||this.B instanceof AV||this.B instanceof aX||this.B instanceof MV};
g.h.by=function(){return!(this.B instanceof QV)&&!this.Lj()};
g.h.dm=function(){return this.B instanceof HU};
g.h.uh=function(){return this.B instanceof xU};
g.h.ck=function(){RY(this.xc,this);if(!this.o.B.hasOwnProperty("ad_placement_start")){for(var a=g.q(this.o.P),b=a.next();!b.done;b=a.next())nX(b.value);this.o.B.ad_placement_start=!0}this.F.w=!1;RA("video_to_ad",["apbs"],void 0);this.lB()};
g.h.lB=function(){this.B?this.dc(this.B):this.dh()};
g.h.Qi=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;WY(this.xc,0);this.dh(a,b)};
g.h.Yz=function(){this.Qi()};
g.h.LJ=function(){mV(this.u.o,"active_view_measurable")};
g.h.MJ=function(){var a=this.u.o;fV(a)||uV(a)||mV(a,"active_view_fully_viewable_audible_half_duration")};
g.h.NJ=function(){};
g.h.OJ=function(){};
g.h.PJ=function(){};
g.h.QJ=function(){};
g.h.SJ=function(){var a=this.u.o;fV(a)||uV(a)||mV(a,"active_view_viewable")};
g.h.ax=function(){return this.uh()?[this.Wn()]:[]};
g.h.Bt=function(a){if(null!==this.u){this.R||(a=new g.cH(a.state,new g.LC),this.R=!0);this.u.wz(a);var b=a.state;if(this.aa&&g.V(b,1024))this.u.Vb("dom_paused");else if(g.eH(a,2))b=this.F,b.R?gX(b):(b.w=!1,RA("ad_to_ad",["apbs"],void 0)),this.u.bd();else{var c=a;(g.P(this.N.M().experiments,"html5_bulleit_handle_gained_playing_state")?c.state.ab()&&!c.Gh.ab():c.state.ab())?(b=this.F,b.G&&!b.w&&(b.L=!1,b.w=!0,"ad_to_video"!=b.o&&FA("apbs",void 0,b.o)),this.u.rg()):b.isError()?this.u.Vb(b.u.errorCode):
g.eH(a,4)&&(this.L||this.u.nh())}if(g.eH(a,16)&&(b=this.u.o,!(fV(b)||.5>b.o.getCurrentTime(2,!1)&&!g.P(b.o.M().experiments,"html5_dai_pseudogapless_seek_killswitch")))){c=b.u;if(c.Fl()){var d=g.P(b.I.o.M().experiments,"html5_dai_enable_active_view_creating_completed_adblock");Nm(c.F,d)}b.u.G.seek=!0}0>dH(a,4)&&!(0>dH(a,2))&&(b=this.u.o,fV(b)||(hV(b)?nV(b,"resume"):mV(b,"resume")));!g.P(this.N.M().experiments,"html5_dai_handle_suspended_state_killswitch")&&this.wb&&g.eH(a,512)&&!g.UC(a.state)&&gX(this.F)}};
g.h.yz=function(){};
g.h.resume=function(){this.u&&this.u.pu()};
g.h.At=function(){this.u&&this.u.fb("h")};
g.h.ep=function(){this.At()};
g.h.xz=function(a){var b=this.xc;b.w&&g.P(b.o.M().experiments,"html5_bulleit_dai_publish_ad_ux_killswitch")||b.o.na("onAdUxUpdate",a)};
g.h.onAdUxClicked=function(a){this.u.Mi(a)};
g.h.Xw=function(){return 0};
g.h.Zw=function(){return 1};
g.h.Vp=function(a){if(this.wb&&this.o.F&&this.o.xb().start<=a&&a<rX(this)){var b=this.o.xb().end;b=void 0===b?Infinity:b;var c=this.N.app;a=void 0===a?-1:a;a=void 0===a?-1:a;b=void 0===b?Infinity:b;c.U?jM(c.U,a,b):BM(c.za,a,b)}};
g.h.dc=function(a){g.Ke(this.u);this.u=a=this.Tg.create(a,RU(NU(this.o)));a.subscribe("c",g.Ta(this.Qi,!0),this);a.subscribe("d",g.Ta(this.Qi,!0,!0),this);a.subscribe("e",this.LJ,this);a.subscribe("h",this.Qi,this);a.subscribe("i",this.Yz,this);a.subscribe("j",this.MJ,this);a.subscribe("k",this.NJ,this);a.subscribe("l",this.OJ,this);a.subscribe("m",this.PJ,this);a.subscribe("n",this.QJ,this);a.subscribe("o",this.gs,this);a.subscribe("p",this.gs,this);a.subscribe("r",this.gs,this);a.subscribe("onAdUxUpdate",
this.xz,this);a.subscribe("s",this.SJ,this);vV(a);oX(this,!1)};
g.h.dh=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.L=!0;g.Ke(this.u);if(a)var c=!1;else this.wb?(c=this.N.getCurrentTime(2,!0),c=1>=Math.abs(c-this.o.xb().end/1E3)):c=!0;if(c&&!this.o.B.hasOwnProperty("ad_placement_end")){c=g.q(this.o.I);for(var d=c.next();!d.done;d=c.next())nX(d.value);this.o.B.ad_placement_end=!0}c=this.o.A;null!==c&&(dX(this.Le,{cueIdentifier:this.o.u&&this.o.u.identifier,driftRecoveryMs:c,kB:this.o.xb().start,py:rX(this)}),this.o.A=null);b||this.wb?SY(this.xc,!0):this.P&&
this.zt()&&this.uh()?SY(this.xc,!1,Oma(this)):SY(this.xc,!1);oX(this,!0)};
g.h.gs=function(a){WY(this.xc,a)};
g.h.Wn=function(){return this.B};
g.h.isLiveStream=function(){return this.P};
g.h.reset=function(){return new lX(this.xc,this.N,this.F.reset(),this.o,this.Le,this.qj,this.Tg,this.wb)};
g.h.X=function(){g.Ke(this.u);this.u=null;g.O.prototype.X.call(this)};tX.prototype.create=function(a){return(a.o instanceof BU?this.A:a.o instanceof aX?this.w:""===a.C?this.o:this.u)(a)};vX.prototype.clickCommand=function(a){var b=g.ks();if(!a.clickTrackingParams||!b)return!1;Cs(this.client,b,g.cs(a.clickTrackingParams));return!0};g.r(zX,g.O);g.h=zX.prototype;g.h.xb=function(){return this.o.xb()};
g.h.cp=function(){return KU(this.o)};
g.h.zt=function(){return JU(this.o)};
g.h.Lj=function(){return!1};
g.h.cm=function(){return!1};
g.h.onAdUxClicked=function(){};
g.h.Zr=function(a){var b=this;if(1!==this.o.w&&2!==this.o.w){var c=[];this.cp()||(c=iX(a));this.o.w=1;Mf(this.B.fetch(this.o.C,{hi:this.o.u||void 0,Pb:this.o.xb(),wk:wY(this.u.ba)}).then(function(d){if(!b.ea()){var e=c;g.P(b.w.M().experiments,"enable_client_deferred_full_screen_filtering_for_mweb_phones")&&b.w.isFullscreen();d=Qma(b,d);var f=b.A;f.u&&d.isEmpty&&cX("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.o);d.dy||(b.o.w=2,kX(new hX(b.u),e),d.isEmpty||(e=b.u,f=d=d.Ug,0!=f.length&&null!==e.oa&&(PW(e.F)||
QW(e.F)||RW(e.F)||r1(e.F)||q1(e.F))&&(f={Ug:f,Mq:f,contentCpn:null!==IY(e)?IY(e).clientPlaybackNonce:"",Uk:1E3*e.o.getDuration(1),oo:!0,wb:!1},J0(e.oa,f)),d=LY(e,d),OY(e,d)))}},function(){kX(new hX(b.u),c);
var d=b.A;d.u&&cX("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.o)}),function(){2!==b.o.w&&(b.o.w=0);
b.cp()&&NY(b.u)})}};
g.h.ck=function(){};
g.h.Vp=function(){};g.r(AX,g.R);AX.prototype.executeCommand=function(a){a=void 0===a?null:a;this.ea();a&&this.A.executeCommand(a,this.B)};g.r(CX,g.A);CX.prototype.append=function(a){if(!this.G)throw Error("This does not support the append operation");this.gn(a.ib())};
CX.prototype.gn=function(a){this.ib().appendChild(a)};
g.r(DX,CX);DX.prototype.ib=function(){return this.o};g.r(FX,g.A);var ksa=new WeakSet;g.r(Z,g.Uu);g.h=Z.prototype;g.h.bind=function(a){if(!this.da&&a.renderer){var b=Object.assign({},EX(this.api,this.ra),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.h.init=function(a,b,c){this.da=a;this.element.setAttribute("id",this.da);this.ya&&g.J(this.element,this.ya);this.G=b&&b.adRendererCommands;this.macros=c;this.F=b.trackingParams||null;null!=this.F&&JX(this,this.element,this.F)};
g.h.clear=function(){};
g.h.hide=function(){g.Uu.prototype.hide.call(this);null!=this.F&&KX(this,this.element,!1)};
g.h.show=function(){g.Uu.prototype.show.call(this);if(!this.Ha){this.Ha=!0;var a=this.G&&this.G.impressionCommand;a&&this.ra.executeCommand(a,this.macros,null)}null!=this.F&&KX(this,this.element,!0)};
g.h.onClick=function(a){if(this.F&&!ksa.has(a)){var b=this.element;g.qL(this.api,b)&&this.Ga()&&g.oL(this.api,b);ksa.add(a)}(a=this.G&&this.G.clickCommand)&&this.ra.executeCommand(a,this.macros,this.ex())};
g.h.ex=function(){return null};
g.h.pJ=function(a){var b=this.R;b.F=!0;b.u=a.touches.length;b.o.isActive()&&(b.o.stop(),b.B=!0);a=a.touches;b.C=GX(b,a)||1!=a.length;var c=a.item(0);b.C||!c?(b.G=Infinity,b.I=Infinity):(b.G=c.clientX,b.I=c.clientY);for(c=b.w.length=0;c<a.length;c++){var d=a.item(c);b.w.push(d.identifier)}};
g.h.oJ=function(a){var b=this.R;a=a.changedTouches.item(0);var c;if(c=Id()){c=g.Lc;var d="";Mc("Windows")?(d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0"):Id()?(d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".")):Mc("Macintosh")?(d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10"):pc(g.Lc,"KaiOS")?(d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1]):Mc("Android")?(d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1]):Mc("CrOS")&&(d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
d=(c=d.exec(c))&&c[1]);c=!(0<=g.sc(d||"",8))}if(c||a&&Math.pow(a.clientX-b.G,2)+Math.pow(a.clientY-b.I,2)>Math.pow(5,2))b.A=!0};
g.h.nJ=function(a){if(this.R){var b=this.R,c=a.changedTouches;c&&b.F&&1==b.u&&!b.A&&!b.B&&!b.C&&GX(b,c)&&(b.P=a,b.o.start());b.u=a.touches.length;0===b.u&&(b.F=!1,b.A=!1,b.w.length=0);b.B=!1}};
g.h.X=function(){this.clear(null);this.Za(this.ua);for(var a=g.q(this.U),b=a.next();!b.done;b=a.next())this.Za(b.value);g.Uu.prototype.X.call(this)};g.r(MX,g.A);MX.prototype.X=function(){this.u&&g.Mp(this.u);this.o.clear();NX=null;g.A.prototype.X.call(this)};
MX.prototype.register=function(a,b){b&&this.o.set(a,b)};
var NX=null;g.r(RX,CX);RX.prototype.addEventListener=function(a,b){this.C.subscribe(a,b)};
RX.prototype.removeEventListener=function(a,b){this.C.unsubscribe(a,b)};
RX.prototype.dispatchEvent=function(a){this.C.S(a.type,a)};g.r(SX,g.A);g.h=SX.prototype;g.h.bind=function(a){var b=a.renderer,c=b.trackingParams;if(this.P&&this.P!=c)throw Error("Cannot re-bind presenter with new tracking params");if(c){this.P=c;var d=this.view,e=this.o,f=d.ib();g.mL(e,f,d);g.nL(e,f,c)}this.I=b.impressionEndpoints||[];this.macros=Object.assign({},a.macros);return this.B(a)};
g.h.Ga=function(){return this.R};
g.h.show=function(){this.view.show();this.R=!0;var a=this.o,b=this.view.ib();g.qL(a,b)&&g.pL(a,b,!0);UX(this,this.I);this.I=[]};
g.h.hide=function(){this.ls();this.R=!1;var a=this.o,b=this.view.ib();g.qL(a,b)&&g.pL(a,b,!1)};
g.h.ls=function(){this.view.hide()};
g.h.onClick=function(a){a=void 0===a?{}:a;this.G(a);if(this.Ga()){a=this.o;var b=this.view.ib();g.qL(a,b)&&g.oL(a,b)}};
g.h.executeCommand=function(a){this.A.executeCommand(a,TX(this))};g.r(VX,g.O);g.h=VX.prototype;g.h.show=function(){if(!this.Ga()){this.B.K(document,"click",this.cH);this.o.show();var a=this.o.element,b=g.Sh(Ih(this.A)).width,c=g.Sh(this.A),d=Gh(this.A);a.style.top=d.y+c.height+"px";a.style.right=b-d.x-c.width+"px"}};
g.h.hide=function(){this.Ga()&&(this.o.hide(),g.Pr(this.B))};
g.h.Ga=function(){return this.o.Ga()};
g.h.setTitle=function(a){a?this.w.show():this.w.hide();this.w.ob(XX(a))};
g.h.cH=function(a){this.Ga()&&(a=a.target,g.Ae(this.A,a)||(g.Ae(this.u.o["ytp-ad-info-dialog-confirm-button"],a)?this.S("confirmClick"):g.Ae(this.o.element,a)||this.S("externalClick")))};
var Uma={nQ:"confirmClick",NQ:"externalClick"};g.r(YX,RX);YX.prototype.setTitle=function(a){this.o.setTitle(a)};
YX.prototype.show=function(){this.o.show()};
YX.prototype.hide=function(){this.o.hide()};
YX.prototype.ib=function(){return this.o.o.element};var Vma={aD:YX},Xma=["confirmClick","externalClick"];g.r(ZX,SX);ZX.prototype.B=function(a){var b=this.view;a=a.renderer;var c=b.o,d=a.confirmLabel||null;d?c.u.show():c.u.hide();c.u.ob(XX(d));b.setTitle(a.title||null);b.o.o.ob(XX(a.dialogMessage||null));g.ue(WX(b.o));c=g.q(a.adReasons||[]);for(d=c.next();!d.done;d=c.next())d=d.value,WX(b.o).appendChild(g.qe("li",null,XX(d)));this.u=a.confirmServiceEndpoint||null;return Promise.resolve()};
ZX.prototype.ls=function(){SX.prototype.ls.call(this);this.u&&(this.executeCommand(this.u),this.u=null)};
ZX.prototype.G=function(a){switch(a.type){case "confirmClick":case "externalClick":this.hide()}};g.r($X,Z);g.h=$X.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=QX(b.hoverText),g.ve(this.u,b,0)):this.u=null,this.w.bind({renderer:a,macros:c}),this.show()):g.M(Error("adInfoDialogRenderer is missing in AdHoverTextButtonRenderer"))};
g.h.ks=function(){this.u&&g.Th(this.u,!1)};
g.h.eH=function(){this.w.Ga()||this.u&&g.Th(this.u,!0)};
g.h.dH=function(){this.w.show();this.ks()};
g.h.clear=function(){this.hide()};g.r(aY,AX);g.r(bY,aX);g.h=bY.prototype;g.h.cd=function(){return!1};
g.h.Ec=function(){return!0};
g.h.mx=function(){var a=this.o,b=new Zla;b.url=a.iframeUrl||null;b.width=a.iframeWidth||0;b.height=a.iframeHeight||0;b.impressionTrackingUrls=cY(a.impressionCommands||[]);b.clickTrackingUrls=cY(a.onClickCommands||[]);b.adInfoRenderer=a.adInfoRenderer||null;a=new sU;a.iframeCompanionRenderer=b;return a};
g.h.jx=function(){return[new g.Vd(300,60)]};
g.h.Aw=function(a,b){return new aY(a,b,this.o)};g.r(dY,Y);g.h=dY.prototype;g.h.Zr=function(a){if(!ST(a)){var b=new hX(this.I);a=iX(a);kX(b,a)}this.ck()};
g.h.ck=function(){var a=this;if(this.u instanceof bY){var b=this.N.getVideoData(2);if(!b||b.pc||(null==this.u.o||this.u.o.adVideoId!=b.videoId)&&!g.P(this.N.M().experiments,"ignore_video_data_current_ad_check")){this.A=function(c,d,e){if(d&&2==e&&null!=a.u.o&&a.u.o.adVideoId==d.videoId||g.P(a.N.M().experiments,"ignore_video_data_current_ad_check"))a.A&&(a.N.removeEventListener("videodatachange",a.A),a.A=null),g.P(a.N.M().experiments,"populate_companion_metadata_from_vms_html5")?vV(a):d.isListed&&
vV(a)};
this.N.addEventListener("videodatachange",this.A);return}if(!b.isListed&&!g.P(this.N.M().experiments,"populate_companion_metadata_from_vms_html5"))return}vV(this)};
g.h.dc=function(){var a=this;RY(this.I,this);if(bV(this.N)){var b=this.N.getVideoData(1),c=this.u.mx();null!=c&&(c.macros=Object.assign({},this.macros),this.P.showCompanion(b.videoId,c))}else{var d=this.u.jx();$la(this.P).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.u.Aw(a.N,a.I,e),null!=f&&(g.C(a,f),k=a.P,k.o&&k.o.showCompanion(f.element,
e.width,e.height)))})}if(this.u instanceof bY){this.C=function(e){var f;
if(f=e.data)try{f=zq(e.source.document.location.origin)}catch(l){f=!1}if(f)if(f=a.u.o,"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.No(l)}else"pause-video"==e.data&&a.N.pauseVideo()};
try{window.addEventListener("message",this.C)}catch(e){g.M(e)}}};
g.h.onAdUxClicked=function(a){tV(this.o,a)};
g.h.xb=function(){return this.B.xb()};
g.h.cp=function(){return KU(this.B)};
g.h.zt=function(){return JU(this.B)};
g.h.Lj=function(){return!0};
g.h.cm=function(){return this.B.o.Ec()};
g.h.Vp=function(){};
g.h.X=function(){if(this.C)try{window.removeEventListener("message",this.C),this.C=null}catch(a){g.M(a)}this.A&&(this.N.removeEventListener("videodatachange",this.A),this.A=null);Y.prototype.X.call(this)};var Zma=Object.freeze([FV,KV,HU,SV,TV,xU]);g.r(fY,lX);g.h=fY.prototype;g.h.ax=function(){for(var a=this.A.o,b=g.q(a),c=b.next();!c.done;c=b.next());return a};
g.h.by=function(){return(0>=this.C?this.A.o:this.A.o.slice(this.C)).some(function(a){return a.cd()})};
g.h.dm=function(){return this.G instanceof HU||this.G instanceof SV};
g.h.uh=function(){return this.G instanceof xU||this.G instanceof KV};
g.h.lB=function(){this.wb?$U(this.N)&&mX(this):gY(this)};
g.h.dc=function(a){var b=eY(a);this.G&&b&&this.I!==b&&(b?TY(this.xc):nna(this.xc),this.I=b);this.G=a;this.wb&&(this.C=this.A.o.findIndex(function(c){return c===a}));
lX.prototype.dc.call(this,a)};
g.h.dh=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.w&&(g.Ke(this.w),this.w=null);lX.prototype.dh.call(this,a,b)};
g.h.ep=function(){this.C=this.A.o.length;this.w&&this.w.fb("h");this.u&&this.u.fb("h");this.dh()};
g.h.yz=function(){gY(this)};
g.h.At=function(){this.Qi()};
g.h.Bt=function(a){lX.prototype.Bt.call(this,a);a=a.state;g.V(a,2)&&this.w?this.w.bd():a.ab()?(null==this.w&&(a=this.A.w)&&(this.w=this.Tg.create(a,RU(NU(this.o))),this.w.subscribe("onAdUxUpdate",this.xz,this),vV(this.w)),this.w&&this.w.rg()):a.isError()&&this.w&&this.w.Vb(a.u.errorCode)};
g.h.Qi=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.wb||(WY(this.xc,0),a?this.dh(a,b):gY(this))};
g.h.Yz=function(){1==this.A.u?this.dh():this.Qi()};
g.h.onAdUxClicked=function(a){lX.prototype.onAdUxClicked.call(this,a);this.w&&this.w.Mi(a)};
g.h.Wn=function(){var a=0>=this.C?this.A.o:this.A.o.slice(this.C);return 0<a.length?a[0]:null};
g.h.X=function(){g.Ke(this.w);this.w=null;lX.prototype.X.call(this)};
g.h.Ni=function(){return this.I};
g.h.cm=function(){return this.A.o.every(function(a){return a.Ec()})};
g.h.reset=function(){return new fY(this.xc,this.N,this.F.reset(),this.o,this.Le,this.qj,this.Tg,this.wb)};
g.h.Xw=function(){return this.C};
g.h.Zw=function(){return this.A.o.length};g.r(hY,AX);hY.prototype.C=function(a){g.Ae(this.w.element,a.target)||(g.Rp(a),BX(this,this.u.onClickCommands),this.executeCommand(this.u.clickthroughEndpoint),this.N.onAdUxClicked("image-companion"),this.N.pauseVideo())};g.r(iY,aX);g.h=iY.prototype;g.h.cd=function(){return!1};
g.h.Ec=function(){return!0};
g.h.mx=function(){var a=new sU;a.imageCompanionAdRenderer=this.o;return a};
g.h.jx=function(){return this.u};
g.h.Aw=function(a,b,c){return new hY(a,b,this.o,c)};g.r(jY,BU);g.r(kY,BU);g.r(lY,BU);mY.prototype.create=function(a,b){function c(I){return new xU(I,d.u,b)}
var d=this,e=a.instreamVideoAdRenderer,f=a.clientForecastingAdRenderer,k=a.invideoOverlayAdRenderer,l=a.videowallIframeCompanionAdRenderer,m=a.imageCompanionAdRenderer,n=a.instreamSurveyAdRenderer,p=a.plaShelfRenderer,t=a.sandwichedLinearAdRenderer,u=a.shoppingCompanionCarouselRenderer,z=a.actionCompanionAdRenderer,B=a.multipleInstreamVideoAdRenderer,D=a.linearAdSequenceRenderer,E=a.adsEngagementPanelRenderer,F=a.adChoiceInterstitialRenderer;return null!=e&&e.playerVars?c(e):null!=f?new NV(f):null!=
k?new OV(k):null!=l&&l.iframeUrl?new bY(l):null!=m?new iY(m):null!=n?new HU(n):null!=t?new lY(t,c,this.o):null!=B?new kY(B,c):null!=p?new QV(p):null!=u?new RV(u):null!=z?new AV(z):null!=D?new jY(D,c):null!=E?new MV(E):null!=F?new AU(F):null};nY.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 QT(k.w,k.u,k.wb),m=k.ud;m&&(l.ud=new jv(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.o));k.o&&(l.o=k.o);l.visible=k.visible;k=l;k.ud=f;e.push(oY(this,a[0],c,k));c++}}else for(a=g.q(a),d=a.next();!d.done;d=a.next())d=d.value,f=d.renderer,PW(this.o)&&null!=f.actionCompanionAdRenderer||QW(this.o)&&null!=f.imageCompanionAdRenderer||
RW(this.o)&&null!=f.shoppingCompanionCarouselRenderer||r1(this.o)&&null!=f.clientForecastingAdRenderer||q1(this.o)&&null!=f.invideoOverlayAdRenderer||(e.push(oY(this,d,c,b)),c++);return e};g.r(pY,g.A);g.r(rY,g.A);rY.prototype.addEventListener=function(a,b){this.o=b};
rY.prototype.removeEventListener=function(){this.o=null};
g.r(sY,g.A);sY.prototype.addEventListener=function(a,b,c){this.o.addEventListener(a,b,c)};
sY.prototype.removeEventListener=function(a,b){this.o.removeEventListener(a,b)};g.r(tY,g.A);uY.prototype.reset=function(){this.o=-1};var xY=null,zY=null,BY=null,DY=null;g.Ia("yt.www.ads.eventcache.getLastCompanionData",function(){return xY},void 0);
g.Ia("yt.www.ads.eventcache.getLastPlaShelfData",function(){return zY},void 0);
g.Ia("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return BY},void 0);
g.Ia("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return DY},void 0);g.r(JY,g.O);g.h=JY.prototype;
g.h.init=function(){var a=this.o.getVideoData(1);if(a.mn||g.L("SERVED_VIA_SPF_HISTORY"))g.P(this.o.M().experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?this.R():NY(this);else{bV(this.o)&&GY($B(this.o));this.B.K(this.o,"applicationplayerstatechange",this.sz);this.B.K(this.o,g.pC("ad"),this.Zl,this);this.B.K(this.o,"crx_ad",this.uz,this);this.B.K(this.o,"aduxclicked",this.aA);this.B.K(this.o,"videodatachange",this.vz);var b=a.getPlayerResponse()||{};b=gna(b);b=KY(this,b);b=LY(this,
b);0<b.length&&OY(this,b);this.I&&(a.subscribe("cuepointupdated",this.km,this),this.w&&a.ia&&this.km(Yx(a.ia,0)));NY(this);g.xf(this.BC,this)}};
g.h.X=function(){this.ha=!0;g.Pr(this.B);this.I&&IY(this).unsubscribe("cuepointupdated",this.km,this);if(bV(this.o)){var a=$B(this.o);a.removeEventListener("updateKevlarOrC3Companion",yY);a.removeEventListener("onPlaShelfInfoCardsReady",AY);a.removeEventListener("updateEngagementPanelAction",CY);a.removeEventListener("changeEngagementPanelVisibility",EY);window.removeEventListener("yt-navigate-start",FY);DY=BY=xY=null}a=g.q(this.C.values());for(var b=a.next();!b.done;b=a.next())UY(this,b.value);SY(this,
!1);this.G.clear();this.aa=[];this.U.clear();g.Ke(this.A);this.A=null;g.Ke(this.L);this.L=new Map;this.C.clear();g.O.prototype.X.call(this)};
g.h.Zl=function(a){if(!a.o&&(!TT(a)||a.contains(VY(this)))){var b=g.QK(this.o,1);if(this.o.M().fa("html5_sync_seeking_state")?g.V(b,32):!g.V(b,64)&&(g.V(b,32)||g.V(b,16)))this.U.add(a);else if(b=this.C.get(a))((this.w?0:g.P(this.o.M().experiments,"enable_eviction_protection_for_bulleit"))?b.Lj()&&this.A?this.A.cm():!b.Lj()&&this.u?this.u.cm():1:1)?b.Zr(a):a.o=!0}};
g.h.uz=function(a){a.o&&(a.o=!1);this.U["delete"](a)};
g.h.km=function(a){Ima(this.Ha,a);if(null==this.I)g.M(Error("Dynamically inserted ad was requested, but no cuepoint AdPlacementRenderer was present to fulfill the request."));else if(this.w){a=g.q(a);for(var b=a.next();!b.done;b=a.next())this.ua.reduce(b.value)}else 0!=(this.o.getCurrentTime(g.P(this.o.M().experiments,"bulleit_explicitly_use_content_video_ms_for_cue_range")?1:void 0)||0)&&(a=a.filter(function(c){return"start"==c.event}),OY(this,[this.I],a))};
g.h.CA=function(a){OY(this,[this.I],[a])};
g.h.nA=function(a){var b=1E3*a;this.u&&this.u.Vp(b);for(var c=g.q(this.C.values()),d=c.next();!d.done;d=c.next())d.value.Vp(b);g.wb(this.ya.o,1E3*a)};
g.h.FI=function(a){this.u&&this.u.Bt(a)};
g.h.sz=function(a){0>dH(a,16)&&(this.U.forEach(this.Zl,this),this.U.clear())};
g.h.vz=function(){if(this.u){var a=this.u;a.wb&&mX(a)}if(this.w){a=1E3*this.o.getCurrentTime(g.P(this.o.M().experiments,"bulleit_explicitly_use_content_video_ms_for_cue_range")?1:void 0);for(var b=g.q(this.C.keys()),c=b.next();!c.done;c=b.next())if(c=c.value,c.start<=a&&a<c.end){this.Zl(c);break}}};
g.h.yN=function(){var a=null;this.w&&(a=this.o.getCurrentTime(g.P(this.o.M().experiments,"bulleit_explicitly_use_content_video_ms_for_cue_range")?1:void 0),this.ua.updateTime(a));if($U(this.o)&&this.u){var b=this.o.getCurrentTime(2,!1),c=this.u;if(c.u){var d=c.u;d.G&&kV(d.o,b,d.getDuration());if(null!==a&&(b=c.o.A,!(null===b||g.P(c.N.M().experiments,"html5_dai_drift_recovery_killswitch")||(d=c.o.xb().start,1E3*a<d+b)))){c.o.A=null;var e=rX(c),f=Math.min(a+rT(c.N.app),e/1E3),k=c.o.u&&c.o.u.identifier;
a<f?(c.N.seekTo(f,void 0,void 0,1),c=c.Le,a*=1E3,f*=1E3,c.u&&bX({driftRecoveryInfo:{contentCpn:c.o,cueIdentifier:k||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(e-d).toString(),driftFromHeadMs:Math.round(1E3*rT(c.w.app)).toString(),appliedDriftRecoveryMs:Math.round(a-d).toString(),destinationMs:Math.round(f-d).toString()}})):dX(c.Le,{cueIdentifier:k,driftRecoveryMs:b,kB:d,py:e})}}}};
g.h.KJ=function(){this.Aa=!0;if(this.u){var a=this.u;a.u&&a.u.Ac()}};
g.h.aA=function(a){if(this.u)this.u.onAdUxClicked(a);if(this.A)this.A.onAdUxClicked(a)};
g.h.zN=function(){if(2==this.o.getPresentingPlayerType()&&this.u){var a=this.u.u,b=a.o;a=a.N.isMuted();hV(b)||mV(b,a?"mute":"unmute")}};
g.h.DI=function(a){if(this.u){var b=this.u.u.o;fV(b)||nV(b,a?"fullscreen":"end_fullscreen")}};
g.h.BC=function(){for(var a=[],b=g.q(this.G),c=b.next();!c.done;c=b.next())c=c.value,ST(c)||a.push(c);b=this.o.app;1!=b.getPresentingPlayerType()||NS(b,"cuerangemarkersupdated",a)};
g.h.Sy=function(){this.u&&this.u.Ni()&&this.u.yz()};
g.h.Ry=function(){this.u&&this.u.Ni()&&this.u.At()};
g.h.Ys=function(){this.u&&this.u.Ni()&&this.u.ep()};
g.h.Qw=function(a){if(a=this.L.get(a)){a:{var b="instreamVideoAdRenderer multipleInstreamVideoAdRenderer instreamSurveyAdRenderer sandwichedLinearAdRenderer parallelChoiceAdPlacementRenderer linearAdSequenceRenderer adChoiceInterstitialRenderer".split(" ");var c=a.renderer;if(c&&b&&Array.isArray(b)&&0!==b.length)for(var d=0;d<b.length;d++)if(c.hasOwnProperty(b[d])){b=!0;break a}b=!1}b?(a=OY(this,[a]))&&0!==a.length&&(a=a[0],QY(this,a),a.ck()):g.M(Error("Attempted to fill instream slot with a non-instream renderer."))}};
g.h.Dr=function(a){(a=this.L.get(a))&&(a=OY(this,[a]))&&0!=a.length&&a[0].ck()};
g.h.gr=function(){PY(this)};
g.h.seekTo=function(a){$U(this.o)&&this.u.uh()&&this.o.kb().seekTo(a)};
g.h.resume=function(){this.u&&this.u.resume()};
g.h.executeCommand=function(a,b,c){this.Sa.executeCommand(a,b,jna(this,void 0===c?null:c))};
g.h.Xx=function(){return this.w};
g.h.Ww=function(){return this.ma};g.r(YY,Z);YY.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&XY(a)||"";g.hc(b)?(g.P(this.api.M().experiments,"web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.No(Error("Found AdImage without valid image URL")):(this.u?g.xh(this.element,"backgroundImage","url("+b+")"):he(this.element,{src:b}),he(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
YY.prototype.clear=function(){this.hide()};g.r($Y,Z);
$Y.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.u=b;if(null==b.text&&null==b.icon)g.No(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.J(this.element,a);null!=b.text&&(a=g.T(b.text),g.hc(a)||(this.element.setAttribute("aria-label",a),this.B=new g.Uu({D:"span",H:"ytp-ad-button-text",W:a}),g.C(this,this.B),this.B.ca(this.element)));null!=b.icon&&(b=ZY(b.icon),null!=
b&&(this.w=new g.Uu({D:"span",H:"ytp-ad-button-icon",J:[b]}),g.C(this,this.w)),this.C?g.ve(this.element,this.w.element,0):this.w.ca(this.element))}};
$Y.prototype.clear=function(){this.hide()};
$Y.prototype.onClick=function(a){var b=this;Z.prototype.onClick.call(this,a);pna(this).forEach(function(c){return b.ra.executeCommand(c,b.macros)});
this.api.onAdUxClicked(this.componentType)};g.r(aZ,Z);aZ.prototype.clear=function(){this.dispose()};g.r(dZ,aZ);g.h=dZ.prototype;g.h.init=function(a,b,c){aZ.prototype.init.call(this,a,b,c);g.xh(this.A,"stroke-dasharray","0 "+this.w);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){cZ(this);aZ.prototype.hide.call(this)};
g.h.show=function(){bZ(this);aZ.prototype.show.call(this)};
g.h.Vi=function(){this.hide()};
g.h.Jh=function(){if(this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=a.current/a.seekableEnd*this.w,this.C&&(a=this.w-a),g.xh(this.A,"stroke-dasharray",a+" "+this.w))}};g.r(eZ,Z);eZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.u=b;this.isTemplated()||g.Be(this.element,HX(this.u));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?XY(a):"",c=(c=this.api.getVideoData(1))&&c.Dm,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()};
eZ.prototype.isTemplated=function(){return this.u.isTemplated||!1};
eZ.prototype.clear=function(){this.hide()};g.r(gZ,aZ);g.h=gZ.prototype;
g.h.init=function(a,b,c){aZ.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.M(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.ma&&g.J(this.w.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.V=null==a||0===a?this.u.Jz():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.A.init(VT("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Dm&&b.thumbnail?this.C.init(VT("ad-image"),b.thumbnail,c):this.I.hide()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){this.w.hide();this.A.hide();this.C.hide();cZ(this);aZ.prototype.hide.call(this)};
g.h.show=function(){bZ(this);this.w.show();this.A.show();this.C.show();aZ.prototype.show.call(this)};
g.h.Vi=function(){this.hide()};
g.h.Jh=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.ba&&a>=this.V?(g.P(this.api.M().experiments,"enable_pubsub_for_skip_transition_bulleit")||this.L.hide(),this.ba=!0,this.S("t")):this.A&&this.A.isTemplated()&&(a=Math.max(0,Math.ceil((this.V-a)/1E3)),a!=this.ga&&(fZ(this.A,{TIME_REMAINING:String(a)}),this.ga=a)))}};g.r(iZ,g.A);g.h=iZ.prototype;g.h.X=function(){this.reset();g.A.prototype.X.call(this)};
g.h.reset=function(){g.Pr(this.B);this.C=!1;this.o&&this.o.stop();this.A.stop();this.u&&(this.u=!1,this.F.play())};
g.h.start=function(){this.reset();this.B.K(this.w,"mouseover",this.EL,this);this.B.K(this.w,"mouseout",this.BL,this);this.o?this.o.start():(this.C=this.u=!0,g.xh(this.w,{opacity:this.I}))};
g.h.EL=function(){this.u&&(this.u=!1,this.F.play());this.A.stop();this.o&&this.o.stop()};
g.h.BL=function(){this.C?this.A.start():this.o&&this.o.start()};
g.h.Zv=function(){this.u||(this.u=!0,this.G.play(),this.C=!0)};var qna=Ab(function(){return new pba}),vna=Ab(function(){return new sna});g.r(jZ,aZ);g.h=jZ.prototype;
g.h.init=function(a,b,c){aZ.prototype.init.call(this,a,b,c);this.I=b;this.ga=xna(this);!b||g.Pb(b)?g.M(Error("SkipButtonRenderer was not specified or empty.")):!b.message||g.Pb(b.message)?g.M(Error("SkipButtonRenderer.message was not specified or empty.")):(a={iconType:"SKIP_NEXT"},b=ZY(a),null==b?g.M(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.C=new g.Uu({D:"button",Y:["ytp-ad-skip-button","ytp-button"],J:[{D:"span",H:"ytp-ad-skip-button-icon",
J:[b]}]}),g.C(this,this.C),this.C.ca(this.A.element),this.w=new eZ(this.api,this.ra,"ytp-ad-skip-button-text"),this.w.init(VT("ad-text"),this.I.message,c),g.C(this,this.w),g.ve(this.C.element,this.w.element,0)),g.P(this.api.M().experiments,"bulleit_use_touch_events_for_skip")&&LX(this))};
g.h.clear=function(){this.V.reset();this.hide()};
g.h.hide=function(){this.A.hide();this.w&&this.w.hide();cZ(this);aZ.prototype.hide.call(this);this.ba.stop();this.L&&(this.L(),this.L=null)};
g.h.onClick=function(a){if(null!=this.C&&(a&&g.Rp(a),aZ.prototype.onClick.call(this,a),this.S("u"),!this.ga))this.api.onAdUxClicked(this.componentType)};
g.h.ex=function(){return"skip"};
g.h.show=function(){this.V.start();this.A.show();this.w&&this.w.show();bZ(this);aZ.prototype.show.call(this);g.An(this.ba)};
g.h.Vi=function(){this.S("v")};
g.h.Jh=function(){};g.r(kZ,g.O);g.h=kZ.prototype;g.h.Jz=function(){return this.u};
g.h.start=function(){this.w||(this.w=!0,this.Fa.start())};
g.h.stop=function(){this.w&&(this.w=!1,this.Fa.stop())};
g.h.lJ=function(){this.o+=100;var a=!1;this.o>this.u&&(this.o=this.u,this.Fa.stop(),a=!0);this.A={seekableStart:0,seekableEnd:this.u/1E3,current:this.o/1E3};this.B&&sW(this.B,this.A.current);this.S("b");a&&this.S("a")};
g.h.getProgressState=function(){return this.A};g.r(lZ,Z);g.h=lZ.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,"number"!==typeof a||0>=a)g.M(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.hc(g.hd(e[0].url))&&(e[0].url=d.Jd);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.hc(g.hd(e[0].url))&&(e[0].url=d.uc());e=b.headline;null!=e&&g.hc(g.hd(e.text))&&(e.text=d.author)}this.I.init(VT("ad-image"),b.image,c);this.Z.init(VT("ad-text"),b.headline,c);this.V.init(VT("ad-text"),b.description,c);this.L.init(VT("ad-image"),b.backgroundImage,c);this.u=new $Y(this.api,this.ra,["ytp-ad-action-interstitial-action-button"]);g.C(this,this.u);this.u.ca(this.za);this.u.init(VT("button"),
b.actionButton.buttonRenderer,c);this.ba=b.navigationEndpoint;this.api.M().o||(this.C.K(this.oa,"click",this.Ar,this),this.C.K(this.ma,"click",this.Ar,this),this.C.K(this.ga,"click",this.Ar,this));this.w=new kZ(a);g.C(this,this.w);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.w&&(this.B=new jZ(this.api,this.ra,this.w),g.C(this,this.B),this.B.ca(this.element),this.B.init(VT("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.w&&(this.A=
new gZ(this.api,this.ra,this.w,!1),g.C(this,this.A),this.A.ca(this.element),this.A.init(VT("ad-preview"),a,c));(b=b.countdownRenderer)&&b.timedPieCountdownRenderer&&this.w&&(c=new dZ(this.api,this.ra,this.w),g.C(this,c),c.ca(this.element),c.init(VT("timed-pie-countdown"),b.timedPieCountdownRenderer,this.macros));this.show();this.element.focus()}else g.M(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.M(Error("AdActionInterstitialRenderer has no button."));else g.M(Error("AdActionInterstitialRenderer has no background AdImage."));
else g.M(Error("AdActionInterstitialRenderer has no description AdText."));else g.M(Error("AdActionInterstitialRenderer has no headline AdText."));else g.M(Error("AdActionInterstitialRenderer has no image."))};
g.h.clear=function(){g.Pr(this.C);this.hide()};
g.h.show=function(){yna(!0);this.u&&this.u.show();this.B&&this.B.show();this.A&&this.A.show();Z.prototype.show.call(this)};
g.h.hide=function(){yna(!1);this.u&&this.u.hide();this.B&&this.B.hide();this.A&&this.A.hide();Z.prototype.hide.call(this)};
g.h.Ar=function(){this.ba&&this.ra.executeCommand(this.ba,this.macros)};g.r(mZ,Z);
mZ.prototype.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);if(b.text)if(b.adChoiceButtons&&2==b.adChoiceButtons.length){a=0;for(var e=[],f=g.q(b.adChoiceButtons),k=f.next();!k.done;k=f.next()){var l=(k=k.value)&&k.buttonRenderer;if(!l){g.M(Error("AdChoiceInterstitialRenderer only supports button renderers of type button_renderer"));return}l=l.text;if(!l){g.M(Error("AdChoiceInterstitialRenderer's ButtonRenderer is missing a text field"));return}e.push(k.buttonRenderer);k=g.T(l);
a=Math.max(a,k.length)}f=b.durationMilliseconds||0;if("number"!==typeof f||0>f)g.M(Error("timeoutSeconds was specified incorrectly in AdChoiceInterstitialRenderer with a value of: "+f));else if(b.completeCommands)if(b.adDurationRemaining&&b.adDurationRemaining.timedPieCountdownRenderer){g.Be(this.o["ytp-ad-choice-interstitial-head-title"],g.T(b.text));var m=Ana(b.defaultButtonChoiceIndex);Cna(this,e,a,m)?(Ena(this,b.completeCommands,c,f),b&&b.adDurationRemaining&&b.adDurationRemaining.timedPieCountdownRenderer&&
Fna(this,b.adDurationRemaining.timedPieCountdownRenderer,c),b&&b.background&&zna(this.o["ytp-ad-choice-interstitial"],b.background),Dna(this,a),this.show(),g.P(this.api.M().experiments,"self_podding_default_button_focused")&&g.xf(function(){0===m?d.u&&d.u.focus():d.A&&d.A.focus()})):g.M(Error("AdChoiceInterstitialRenderer failed to initialize buttons."))}else g.M(Error("AdChoiceInterstitialRenderer requires a timed_pie_countdown_renderer."));
else g.M(Error("timeoutSeconds was specified yet no completeCommands were specified"))}else g.M(Error("AdChoiceInterstitialRenderer should have two choices."));else g.M(Error("AdChoiceInterstitialRenderer has no title."))};
mZ.prototype.clear=function(){this.hide()};g.r(nZ,Z);g.h=nZ.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.text?(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a?g.M(Error("durationMilliseconds was specified incorrectly in AdTextInterstitialRenderer with a value of: "+a)):(this.u.init(VT("ad-text"),b.text,c),this.show())):g.M(Error("AdTextInterstitialRenderer has no message AdText."))};
g.h.clear=function(){this.hide()};
g.h.show=function(){Gna(!0);Z.prototype.show.call(this)};
g.h.hide=function(){Gna(!1);Z.prototype.hide.call(this)};
g.h.onClick=function(){};g.r(oZ,Z);
oZ.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.M(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new $Y(this.api,this.ra),g.C(this,this.button),this.button.init(VT("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.T(a)),this.button.ca(this.element),this.C&&!g.Jn(this.button.element,"ytp-ad-clickable")&&g.J(this.button.element,"ytp-ad-clickable"),a&&
(this.w=new g.Uu({D:"div",H:"ytp-ad-hover-text-container"}),this.B&&(b=new g.Uu({D:"div",H:"ytp-ad-hover-text-callout"}),b.ca(this.w.element),g.C(this,b)),g.C(this,this.w),this.w.ca(this.element),b=QX(a),g.ve(this.w.element,b,0)),this.show())};
oZ.prototype.hide=function(){this.button&&this.button.hide();this.w&&this.w.hide();Z.prototype.hide.call(this)};
oZ.prototype.show=function(){this.button&&this.button.show();Z.prototype.show.call(this)};g.r(pZ,Z);g.h=pZ.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.M(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.No(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.No(Error("AdFeedbackRenderer.title was not set.")),Kna(this,b)):g.M(Error("AdFeedbackRenderer.reasons were not set."))};
g.h.clear=function(){Wp(this.B);Wp(this.I);this.A.length=0;this.hide()};
g.h.hide=function(){this.u&&this.u.hide();this.w&&this.w.hide();Z.prototype.hide.call(this);this.C&&this.C.focus()};
g.h.show=function(){this.u&&this.u.show();this.w&&this.w.show();this.C=document.activeElement;Z.prototype.show.call(this);this.B.focus()};
g.h.Nz=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button");this.S("w");this.hide()};
g.h.tN=function(){this.hide()};
Lna.prototype.isChecked=function(){return this.w.checked};g.r(qZ,Z);g.h=qZ.prototype;g.h.hide=function(){Z.prototype.hide.call(this);this.A&&this.A.focus()};
g.h.show=function(){this.A=document.activeElement;Z.prototype.show.call(this);this.B.focus()};
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.w=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.M(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.M(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Mna(this,b):g.M(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.h.clear=function(){g.Pr(this.u);this.hide()};
g.h.Rt=function(){this.hide()};
g.h.Qt=function(){var a=this.w.cancelEndpoint;a&&this.ra.executeCommand(a,this.macros);this.hide()};
g.h.St=function(){var a=this.w.confirmNavigationEndpoint||this.w.confirmEndpoint;a&&this.ra.executeCommand(a,this.macros);this.hide()};g.r(rZ,qZ);rZ.prototype.Rt=function(a){qZ.prototype.Rt.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
rZ.prototype.Qt=function(a){qZ.prototype.Qt.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
rZ.prototype.St=function(a){qZ.prototype.St.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.S("x")};g.r(sZ,Z);g.h=sZ.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.C=b;if(null==b.dialogMessage&&null==b.title)g.M(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.No(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.u=new $Y(this.api,this.ra,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.C(this,this.u),this.u.init(VT("button"),
a,this.macros),this.u.ca(this.element);b.title&&(a=g.T(b.title),this.la("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=QX(a[c]);if(!g.hc(d.textContent)){var e=g.qe("LI");e.appendChild(d);this.V.appendChild(e)}}else g.Th(this.V,!1);b.dialogMessage&&(a=QX(b.dialogMessage,!0),this.ga.appendChild(a));b.confirmLabel&&(a=g.T(b.confirmLabel),this.la("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.No(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?Ona(this,a):c&&Pna(this,c),this.A=new $Y(this.api,this.ra,["ytp-ad-info-dialog-mute-button"],"button",!0),g.C(this,this.A),this.A.init(VT("button"),b,this.macros),this.A.ka("click",this.JL,this),this.A.ca(this.ma)));Qna(this)}};
g.h.clear=function(){Wp(this.I);this.hide()};
g.h.hide=function(){this.w?this.w.hide():this.B&&this.B.hide();this.u&&this.u.hide();this.A&&this.A.hide();Z.prototype.hide.call(this);this.L&&this.L.focus()};
g.h.show=function(){this.u&&this.u.show();this.A&&this.A.show();this.Z||(Nna(this),this.Z=!0);this.L=document.activeElement;Z.prototype.show.call(this);this.I.focus()};
g.h.Oz=function(){this.C&&this.C.confirmServiceEndpoint&&this.ra.executeCommand(this.C.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button");this.S("z");this.hide()};
g.h.JL=function(){var a=this.w?this.w:this.B;a&&!a.Ga()&&(this.hide(),a.show())};g.r(tZ,oZ);tZ.prototype.init=function(a,b,c){oZ.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(Sna(this,a,c),this.show())};
tZ.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();oZ.prototype.hide.call(this)};
tZ.prototype.show=function(){this.button&&this.button.show();oZ.prototype.show.call(this)};
tZ.prototype.clear=function(){this.hide()};var Tna={iconType:"CLOSE"};g.r(uZ,Z);g.h=uZ.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.A=b;(a=b.contentSupportedRenderer&&b.contentSupportedRenderer.enhancedTextOverlayAdContentRenderer)&&Vna(this,a,b.adInfoRenderer)&&(Xna(this,!0),this.show(),this.za.start())};
g.h.onClick=function(a){var b=this;if(!g.Ae(this.Ia,a.target)){Z.prototype.onClick.call(this,a);var c=g.Sb(this.macros),d=g.Sh(this.u);c.AW={toString:function(){return d.width.toString()}};
c.AH={toString:function(){return d.height.toString()}};
var e=g.Nh(a,this.u).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.Ca.forEach(function(f){return b.ra.executeCommand(f,c)});
this.api.pauseVideo()}};
g.h.clear=function(){Xna(this,!1);this.ma=0;KX(this,this.u,!1);this.za.stop();this.hide();this.dispose()};
g.h.show=function(){this.w&&this.w.show();Z.prototype.show.call(this)};
g.h.hide=function(){this.w&&this.w.hide();Z.prototype.hide.call(this)};
g.h.tJ=function(){var a=this;Wna(this).forEach(function(b){return a.ra.executeCommand(b,a.macros)});
this.clear()};
g.h.qJ=function(){this.Z=2==this.api.getPlayerState(1);this.api.pauseVideo()};
g.h.rJ=function(){this.Z||2!=this.api.getPlayerState(1)||this.api.playVideo()};
g.h.uJ=function(){this.Z||2!=this.api.getPlayerState(1)||this.api.playVideo();this.clear()};
g.h.sJ=function(a){if(this.L){var b=g.fe("ytp-ad-button",this.L.element);a.target===this.B&&b&&b.click()}};var xZ={iconType:"CLOSE"},BZ=new g.Vd(320,63);g.r(wZ,Z);g.h=wZ.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.B=b;this.I=g.kb(this.B.onClickCommands||[]);if(a=this.B.contentSupportedRenderer)a=this.B.contentSupportedRenderer,b=this.B.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.C=g.fe("ytp-ad-overlay-ad-info-button-container",this.A.element),zZ(this,b),a=boa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.C=g.fe("ytp-ad-overlay-ad-info-button-container",this.w.element),zZ(this,b),a=coa(this,a.enhancedTextOverlayAdContentRenderer)):
a.imageOverlayAdContentRenderer?(this.C=g.fe("ytp-ad-overlay-ad-info-button-container",this.u.element),zZ(this,b),a=doa(this,a.imageOverlayAdContentRenderer)):(g.M(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),eoa(this,!0))};
g.h.yJ=function(){this.api.app.G.o&&this.clear()};
g.h.clear=function(){eoa(this,!1);this.ba.reset();this.L=0;this.A.hide();KX(this,this.A.element,!1);this.w.hide();KX(this,this.w.element,!1);this.u.hide();KX(this,this.u.element,!1);this.hide();this.dispose()};
g.h.hN=function(){this.ma&&this.ra.executeCommand(this.ma,this.macros);this.api.pauseVideo()};
g.h.Mt=function(){var a=this;aoa(this).forEach(function(b){return a.ra.executeCommand(b,a.macros)});
if(vZ(this.api))this.api.onAdUxClicked("in_video_overlay_close_button");else this.clear()};
g.h.vJ=function(){this.ga=2==this.api.getPlayerState(1);this.api.pauseVideo()};
g.h.wJ=function(){this.ga||2!=this.api.getPlayerState(1)||this.api.playVideo()};
g.h.zJ=function(){this.ga||2!=this.api.getPlayerState(1)||this.api.playVideo();vZ(this.api)?this.api.S("muteadaccepted","invideo-overlay"):this.clear()};
g.h.xJ=function(a){a.target===this.C&&g.fe("ytp-ad-button",this.oa.element).click()};g.r(CZ,aZ);g.h=CZ.prototype;g.h.init=function(a,b,c){aZ.prototype.init.call(this,a,b,c);a=b.durationMs;"number"===typeof a&&0>=a&&g.M(Error("durationMs was specified incorrectly in AdMessageRenderer with a value of: "+a));a=b.durationMs;this.C=null==a||0===a?0:a+1E3*this.u.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.w.init(VT("ad-text"),d,c);this.w.ca(this.A.element);this.I.show(100);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){foa(this,!1);aZ.prototype.hide.call(this);this.A.hide();this.w.hide();cZ(this)};
g.h.show=function(){foa(this,!0);aZ.prototype.show.call(this);bZ(this);this.A.show();this.w.show()};
g.h.Vi=function(){this.hide()};
g.h.Jh=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.L&&a>=this.C?(this.I.hide(),this.L=!0):this.w&&this.w.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!=this.V&&(fZ(this.w,{TIME_REMAINING:String(a)}),this.V=a)))}};g.r(DZ,aZ);g.h=DZ.prototype;
g.h.init=function(a,b,c){aZ.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.Pb(a)?null:a){this.C=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.Dt(this.api.M().experiments,"preskip_button_style_ads_backend")&&az(this.api.M());this.w=new gZ(this.api,this.ra,this.u,d);this.w.init(VT("preskip-component"),a,c);hZ(this.w);g.C(this,this.w);this.w.ca(this.element);g.P(this.api.M().experiments,
"enable_pubsub_for_skip_transition_bulleit")&&this.w.subscribe("t",this.iM,this)}else b.skipOffsetMilliseconds&&(this.C=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Pb(b)?null:b;null==b?g.M(Error("SkipButtonRenderer was not set in player response.")):(this.A=new jZ(this.api,this.ra,this.u),this.A.init(VT("skip-button"),b,c),g.C(this,this.A),this.A.ca(this.element),this.show())};
g.h.show=function(){this.I&&this.A?this.A.show():this.w&&this.w.show();bZ(this);aZ.prototype.show.call(this)};
g.h.Vi=function(){};
g.h.clear=function(){this.w&&this.w.clear();this.A&&this.A.clear();cZ(this);aZ.prototype.hide.call(this)};
g.h.hide=function(){this.w&&this.w.hide();this.A&&this.A.hide();cZ(this);aZ.prototype.hide.call(this)};
g.h.iM=function(){EZ(this,!0)};
g.h.Jh=function(){g.P(this.api.M().experiments,"enable_pubsub_for_skip_transition_bulleit")?this.w||1E3*this.u.getProgressState().current>=this.C&&EZ(this,!0):1E3*this.u.getProgressState().current>=this.C&&EZ(this,!0)};g.r(FZ,Z);FZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.skipAd&&(a=b.skipAd,a.skipAdRenderer&&(b=new DZ(this.api,this.ra,this.u),b.ca(this.w),b.init(VT("skip-button"),a.skipAdRenderer,this.macros),g.C(this,b)));this.show()};g.r(GZ,aZ);g.h=GZ.prototype;g.h.init=function(a,b,c){aZ.prototype.init.call(this,a,b,c);if(b.templatedCountdown){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.No(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.w=new eZ(this.api,this.ra);this.w.init(VT("ad-text"),a,{});this.w.ca(this.element);g.C(this,this.w)}this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){cZ(this);aZ.prototype.hide.call(this)};
g.h.Vi=function(){this.hide()};
g.h.Jh=function(){if(null!=this.u){var a=this.u.getProgressState();if(null!=a&&null!=a.current&&this.w){a=(this.u instanceof kZ?a.seekableEnd:this.api.getDuration(2,g.P(this.api.M().experiments,"halftime_ux_killswitch")?void 0:!1))-a.current;var b=g.HM(a);fZ(this.w,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.h.show=function(){bZ(this);aZ.prototype.show.call(this)};g.r(HZ,eZ);HZ.prototype.onClick=function(a){eZ.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.r(IZ,aZ);g.h=IZ.prototype;
g.h.init=function(a,b,c){aZ.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.hc(g.hd(d[0].url))&&(d[0].url=a.Jd)}else g.ar(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.I.init(VT("ad-image"),b.image,c);this.C.init(VT("ad-text"),
b.headline,c);this.A.init(VT("ad-text"),b.description,c);this.w.init(VT("button"),b.actionButton.buttonRenderer,c);this.L=b.actionButton.buttonRenderer.navigationEndpoint;this.show();this.V=b.startMs||0;bZ(this)}else g.$q(Error("FlyoutCtaRenderer has no valid action button."));else g.$q(Error("FlyoutCtaRenderer has no description AdText."));else g.$q(Error("FlyoutCtaRenderer has no headline AdText."));else g.ar(Error("FlyoutCtaRenderer has no image."))};
g.h.onClick=function(a){aZ.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Ae(this.w.element,a.target)&&this.L&&this.ra.executeCommand(this.L,this.macros)};
g.h.Jh=function(){if(this.u){var a=this.u.getProgressState();a&&a.current&&1E3*a.current>=this.V&&(cZ(this),g.Ln(this.element,"ytp-flyout-cta-inactive"))}};
g.h.Vi=function(){this.clear()};
g.h.clear=function(){this.hide()};
g.h.show=function(){this.w&&this.w.show();aZ.prototype.show.call(this)};
g.h.hide=function(){this.w&&this.w.hide();aZ.prototype.hide.call(this)};g.r(JZ,Z);g.h=JZ.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.w=b;if(null==b.defaultText&&null==b.defaultIcon)g.M(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.M(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.J(this.A,a)}a={};b.defaultText?
(c=g.T(b.defaultText),g.hc(c)||(a.buttonText=c,this.u.setAttribute("aria-label",c))):g.Th(this.Z,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.u.hasAttribute("aria-label")||this.L.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=ZY(b.defaultIcon),this.la("untoggledIconTemplateSpec",c),b.toggledIcon?(this.I=!0,c=ZY(b.toggledIcon),this.la("toggledIconTemplateSpec",c)):(g.Th(this.C,!0),g.Th(this.B,!1)),g.Th(this.u,!1)):g.Th(this.L,!1);g.Pb(a)||this.update(a);b.isToggled&&(g.J(this.A,
"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));KZ(this);this.V=this.K(this.element,"change",this.Lz);g.P(this.api.M().experiments,"bulleit_use_touch_events_for_magpie")&&LX(this,this.V);this.show()}};
g.h.onClick=function(a){0<this.U.length&&(this.toggleButton(!this.isToggled()),this.Lz());Z.prototype.onClick.call(this,a)};
g.h.Lz=function(){var a=this;g.K(this.A,"ytp-ad-toggle-button-toggled",this.isToggled());goa(this,this.isToggled()).forEach(function(b){return a.ra.executeCommand(b,a.macros)});
if(this.isToggled())this.api.onAdUxClicked("toggle-button");KZ(this)};
g.h.clear=function(){this.hide()};
g.h.toggleButton=function(a){g.K(this.A,"ytp-ad-toggle-button-toggled",a);this.u.checked=a;KZ(this)};
g.h.isToggled=function(){return this.u.checked};g.r(LZ,Z);g.h=LZ.prototype;g.h.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);this.u=b;this.u.rectangle&&(hoa(this,c),g.P(this.api.M().experiments,"bulleit_use_touch_events_for_magpie")&&LX(this,this.C),this.B.show(100),this.show(),(this.u&&this.u.impressionCommands||[]).forEach(function(e){return d.ra.executeCommand(e,d.macros)}))};
g.h.clear=function(){this.hide()};
g.h.hide=function(){this.A.hide();this.w.hide();Z.prototype.hide.call(this)};
g.h.show=function(){this.A.show();this.w.show();Z.prototype.show.call(this)};
g.h.Mz=function(){var a=this.element,b=!g.Jn(a,"ytp-ad-instream-user-sentiment-selected");g.K(a,"ytp-ad-instream-user-sentiment-selected",b);this.u.postMessageAction&&this.api.na("onYtShowToast",this.u.postMessageAction);this.B.hide()};
g.h.onClick=function(a){0<this.U.length&&this.Mz();Z.prototype.onClick.call(this,a)};g.r(MZ,$Y);
MZ.prototype.init=function(a,b,c){$Y.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.T(b.text),a=!g.hc(a));a?null==b.navigationEndpoint?g.No(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.No(Error("Button style was not a link-style type in renderer,")):(g.P(this.api.M().experiments,"bulleit_use_touch_events_for_visit_advertiser")&&LX(this),this.show(),b=this.api.M().experiments,g.P(b,"enable_visibility_check_for_visit_advertiser_in_bulleit")&&(this.A=
wna(this.element,"visit_advertiser",g.Q(b,"visibility_error_html_dump_sample_rate")))):g.No(Error("No visit advertiser text was present in the renderer."))};
MZ.prototype.hide=function(){$Y.prototype.hide.call(this);this.A&&(this.A(),this.A=null)};g.r(NZ,Z);NZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);a=b.text;g.hc(HX(a))?g.No(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.u&&(b=this.api.M(),b=a.text+" "+(b&&b.o?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new eZ(this.api,this.ra),a.init(VT("simple-ad-badge"),b,c),a.ca(this.element),g.C(this,a)),this.show())};
NZ.prototype.clear=function(){this.hide()};g.r(OZ,Z);
OZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new DZ(this.api,this.ra,this.u),c.ca(this.B),c.init(VT("skip-button"),a.skipAdRenderer,this.macros),g.C(this,c)):a.adPreviewRenderer&&(c=new gZ(this.api,this.ra,this.u,!1),c.ca(this.B),c.init(VT("ad-preview"),a.adPreviewRenderer,this.macros),hZ(c),g.C(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=new LZ(this.api,this.ra),
c.ca(this.I),c.init(VT("instream-user-sentiment"),a,this.macros),g.C(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new IZ(this.api,this.ra,this.u),g.C(this,c),c.ca(this.C),c.init(VT("flyout-cta"),a.flyoutCtaRenderer,this.macros)));b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"\u5e7f\u544a",isTemplated:!1}}),c=new NZ(this.api,this.ra,!0),g.C(this,c),c.ca(this.w),c.init(VT("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 GZ(this.api,this.ra,this.u),g.C(this,c),c.ca(this.w),c.init(VT("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(a=b.adInfoRenderer,a.adHoverTextButtonRenderer&&(c=new tZ(this.api,this.ra,this.element),g.C(this,c),c.ca(this.w),c.init(VT("ad-info-hover-text-button"),a.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&
(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(a=ioa(this)&&this.A?this.A:this.w))&&(c=new MZ(this.api,this.ra),g.C(this,c),c.ca(a),c.init(VT("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.M())&&!Ty(b)&&"3"==b.controlsType&&(b=new PQ(this.api,this.u),b.ca(this.L),g.C(this,b));this.show()};
OZ.prototype.clear=function(){this.hide()};g.r(PZ,Z);
PZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.A=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new $Y(this.api,this.ra,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.ca(this.w),a.init(VT("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.u=new JZ(this.api,this.ra,["ytp-ad-survey-answer-toggle-button"]),this.u.ca(this.w),g.C(this,this.u),this.u.init(VT("survey-answer-button"),
b.answer.toggleButtonRenderer,c));this.show()};
PZ.prototype.clear=function(){this.hide()};g.r(QZ,Z);QZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.u=new JZ(this.api,this.ra,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.u.ca(this.w),this.u.init(VT("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.r(RZ,$Y);RZ.prototype.init=function(a,b,c){$Y.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.T(b.text),a=!g.hc(b));a||g.No(Error("No submit text was present in the renderer."))};
RZ.prototype.onClick=function(a){this.S("C");$Y.prototype.onClick.call(this,a)};g.r(SZ,Z);
SZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.w=c;if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new DZ(this.api,this.ra,this.B),c.ca(this.I),c.init(VT("skip-button"),a,this.w),g.C(this,c),this.u=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new gZ(this.api,this.ra,this.B,!1),c.ca(this.I),c.init(VT("ad-preview"),a,this.w),hZ(c),g.C(this,c),this.u=c);null==this.u&&g.M(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new RZ(this.api,this.ra),c.ca(this.L),c.init(VT("survey-submit"),a,this.w),g.C(this,c),this.A=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new NZ(this.api,this.ra,!0),c.ca(this.C),c.init(VT("simple-ad-badge"),a,this.w),g.C(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new GZ(this.api,this.ra,this.B),c.ca(this.C),c.init(VT("ad-duration-remaining"),a,this.w),g.C(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&
(a=new tZ(this.api,this.ra,this.element),g.C(this,a),a.ca(this.C),a.init(VT("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
SZ.prototype.clear=function(){this.hide()};g.r(TZ,Z);TZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);moa(this)};
TZ.prototype.show=function(){this.B=(0,g.G)();Z.prototype.show.call(this)};
TZ.prototype.JB=function(){};g.r(UZ,TZ);g.h=UZ.prototype;g.h.init=function(a,b,c){var d=this;TZ.prototype.init.call(this,a,b,c);b.questionText&&g.Be(this.V,g.T(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&joa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.I=new Set(this.A.map(function(e){return e.u.u}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&noa(this,a,c);b.surveyAdQuestionCommon?loa(this,b.surveyAdQuestionCommon):g.M(Error("SurveyAdQuestionCommon was not sent.MultiSelectQuestionRenderer: "+JSON.stringify(b)));b.submitEndpoints&&(this.Z=b.submitEndpoints);this.K(this.element,"change",this.AJ);this.show()};
g.h.JB=function(){VZ(this,!1);this.C.A.subscribe("C",this.fN,this)};
g.h.AJ=function(a){a.target==this.w.u.u?ooa(this):this.I.has(a.target)&&(this.w.u.toggleButton(!1),VZ(this,!0))};
g.h.fN=function(){var a=this,b=this.A.reduce(function(d,e){var f=e.A;e.u&&e.u.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.Z.map(function(d){if(!d.loggingUrls)return d;
d=g.Tb(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=Cd(e.baseUrl,b));return e});
return d});
c&&c.forEach(function(d){return a.ra.executeCommand(d,a.macros)})};
g.h.clear=function(){g.P(this.api.M().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.r(WZ,TZ);WZ.prototype.init=function(a,b,c){var d=this;TZ.prototype.init.call(this,a,b,c);b.questionText&&g.Be(this.V,g.T(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&joa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?loa(this,b.surveyAdQuestionCommon):g.M(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
WZ.prototype.clear=function(){g.P(this.api.M().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.r(XZ,Z);
XZ.prototype.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);b.questions.forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new WZ(d.api,d.ra);f.ca(d.u);f.init(VT("survey-question-single-select"),e,c);d.w.push(f);g.C(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new UZ(d.api,d.ra),f.ca(d.u),f.init(VT("survey-question-multi-select"),e,c),d.w.push(f),
g.C(d,f))});
this.show()};
XZ.prototype.clear=function(){g.P(this.api.M().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.r(YZ,Z);
YZ.prototype.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.M(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){roa(this.B,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);roa(this.I,
b.brandImage);g.Be(this.L,g.T(b.text));this.u=new $Y(this.api,this.ra,["ytp-ad-survey-interstitial-action-button"]);g.C(this,this.u);this.u.ca(this.C);this.u.init(VT("button"),b.ctaButton.buttonRenderer,c);this.u.show();var e=b.timeoutCommands;this.A=new kZ(1E3*a);this.A.subscribe("a",function(){d.w.hide();e.forEach(function(f){return d.ra.executeCommand(f,c)});
d.ra.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)});
g.C(this,this.A);this.K(this.element,"click",function(f){return qoa(d,f,b)});
this.w.show(100);b.impressionCommands&&b.impressionCommands.forEach(function(f){return d.ra.executeCommand(f,c)})}else g.M(Error("SurveyTextInterstitialRenderer has no landscape background image."));
else g.M(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.M(Error("SurveyTextInterstitialRenderer has no button."));else g.M(Error("SurveyTextInterstitialRenderer has no text."));else g.M(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
YZ.prototype.clear=function(){this.hide()};
YZ.prototype.show=function(){soa(!0);Z.prototype.show.call(this)};
YZ.prototype.hide=function(){soa(!1);Z.prototype.hide.call(this)};g.r(ZZ,Z);g.h=ZZ.prototype;
g.h.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);this.u&&(this.u.cancel(),this.u=null);this.u=new Cf(g.Ka);b.bannerImage?b.iconImage?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?b.navigationEndpoint?(b.adInfoRenderer&&b.adInfoRenderer.adHoverTextButtonRenderer?this.B.init(VT("watch-ad-info-hover-button"),b.adInfoRenderer.adHoverTextButtonRenderer,c):g.M(Error("ActionCompanionAdRenderer has no ad info renderer.")),this.A.init(VT("ad-image"),b.bannerImage,
c),this.ga.init(VT("ad-image"),b.iconImage,c),this.L.init(VT("ad-text"),b.headline,c),this.C.init(VT("ad-text"),b.description,c),this.w.init(VT("button"),b.actionButton.buttonRenderer,c),g.Be(this.o["yt-badge-ad"],"\u5e7f\u544a"),this.ba=b.impressionCommands||[],this.V=b.navigationEndpoint,this.I.K(this.element,"click",this.LL,this),Promise.race([this.u,this.ma.showCompanion(this.element,300,250)]).then(function(){return d.show()})):g.M(Error("ActionCompanionAdRenderer has no navigation endpoint.")):
g.M(Error("ActionCompanionAdRenderer has no button.")):g.M(Error("ActionCompanionAdRenderer has no description string.")):g.M(Error("ActionCompanionAdRenderer has no headline string.")):g.M(Error("ActionCompanionAdRenderer has no icon image.")):g.M(Error("ActionCompanionAdRenderer has no banner image."))};
g.h.clear=function(){g.Pr(this.I);this.hide()};
g.h.show=function(){var a=this;this.w.show();Z.prototype.show.call(this);this.ba.forEach(function(b){return a.ra.executeCommand(b,a.macros)})};
g.h.hide=function(){this.w.hide();Z.prototype.hide.call(this)};
g.h.LL=function(a){a=a.target;g.Ae(this.B.element,a)||(this.V&&!g.Ae(this.w.element,a)&&this.ra.executeCommand(this.V,this.macros),this.api.onAdUxClicked("action-companion"),this.api.pauseVideo())};
g.h.X=function(){this.u&&(this.u.cancel(),this.u=null);Z.prototype.X.call(this)};g.r($Z,g.R);$Z.prototype.clear=function(){for(var a=g.q(this.u),b=a.next();!b.done;b=a.next())g.Ke(b.value);this.u=[]};
$Z.prototype.G=function(a){g.Rp(a);this.w=Math.max(0,this.w-a_(this));b_(this)};
$Z.prototype.F=function(a){g.Rp(a);this.w=Math.min(this.u.length-1,this.w+a_(this));b_(this)};
$Z.prototype.X=function(){this.clear();g.R.prototype.X.call(this)};g.r(c_,RX);g.h=c_.prototype;g.h.ib=function(){return this.o.element};
g.h.gn=function(a){var b=this.o,c=new g.R({D:"li",H:"ad-carousel-listitem",J:[{D:"div",H:"ad-carousel-item"}]});c.o["ad-carousel-item"].appendChild(a);b.u.push(c);b.C.appendChild(c.element)};
g.h.show=function(){this.o.show()};
g.h.hide=function(){this.o.hide()};
g.h.clear=function(){this.o.clear()};var woa={AP:"adinfoclick",PR:"offerclick",QR:"offernavclick"};g.r(d_,RX);d_.prototype.show=function(){this.u.show()};
d_.prototype.hide=function(){this.u.hide()};
d_.prototype.ib=function(){return this.u.element};var uoa={zq:d_};g.r(f_,SX);
f_.prototype.B=function(a){var b=this.view;a=a.renderer;this.u=a.clickthroughEndpoint||null;var c=a.headline||null;e_(b.w,"headline",c);e_(b.o,"headline",c);c=a.merchant||null;e_(b.A,"merchant",c);e_(b.w,"merchant",c);e_(b.o,"merchant",c);c=a.priceText||null;e_(b.A,"price",c);e_(b.w,"price",c);e_(b.o,"price",c);c=(c=a.image&&0<a.image.thumbnails.length?a.image.thumbnails[0].url||null:null)?{D:"img",O:{src:c}}:null;b.A.la("image",c);b.o.la("image",c);a.rating?(c=a.reviewText||null,g.Qh(b.B.element,
Math.floor(100*a.rating/5)+"%"),e_(b.B,"reviewText",c),b.w.la("review",b.B),b.o.la("review",b.B)):(b.w.la("review",null),b.o.la("review",null));this.show();return Promise.resolve()};
f_.prototype.G=function(a){switch(void 0===a.type?void 0:a.type){case "offernavclick":this.u&&this.executeCommand(this.u)}};g.r(g_,g.A);g_.prototype.X=function(){this.B&&g.Wo(this.B);this.o&&(this.o.cancel(),this.o=null);this.u&&(this.u.cancel(),this.u=null);this.A&&(this.A.cancel(),this.A=null);this.w&&(this.w.stop(),this.w=null);g.A.prototype.X.call(this)};g.r(h_,RX);h_.prototype.ib=function(){return this.o.element};
h_.prototype.show=function(){this.o.show()};
h_.prototype.hide=function(){this.o.hide()};
h_.prototype.X=function(){zoa(this.u);RX.prototype.X.call(this)};var i_={ZC:ZX,BD:h_,yq:f_,uq:c_};g.r(j_,SX);
j_.prototype.B=function(a){var b=this;this.u&&(this.u.cancel(),this.u=null);this.u=new Cf(g.Ka);return Promise.race([this.u,this.view.A]).then(function(){var c=a.renderer,d=b.view,e=c.shopText||null;e=e?QX(e):null;d.o.la("shopText",e);e=(e=c.sponsoredText||null)?QX(e):null;d.o.la("sponsoredText",e);c.adInfoButton?b.C.bind({renderer:c.adInfoButton.buttonRenderer.navigationEndpoint.adInfoDialogEndpoint.dialog.adInfoDialogRenderer,macros:b.macros}):b.C.bind({renderer:{dialogMessage:c.adInfoText},macros:b.macros});
c=c.itemList.horizontalListRenderer||null;g.Le(b.F);b.F=[];b.w.clear();c=g.q(c&&c.items||[]);for(d=c.next();!d.done;d=c.next())d=d.value.plaShelfItemRenderer,e=new i_.yq(b.o,b.A),b.F.push(e),b.w.append(e.view),e.bind({renderer:d,macros:b.macros});b_(b.w.o);Doa(b);b.show()})};
j_.prototype.U=function(){b_(this.w.o)};
j_.prototype.G=function(a){"adinfoclick"==a.type&&this.C.show()};
j_.prototype.X=function(){this.u&&(this.u.cancel(),this.u=null);g.Le(this.F);this.F=[];SX.prototype.X.call(this)};g.r(k_,RX);g.h=k_.prototype;g.h.ib=function(){return this.o.element};
g.h.gn=function(a){this.A++;this.F.appendChild(a);l_(this)};
g.h.show=function(){this.o.show()};
g.h.hide=function(){this.o.hide()};
g.h.clear=function(){this.A=0;g.ue(this.F)};
g.h.scrollLeft=function(){this.u=Math.max(0,this.u-1);l_(this)};
g.h.X=function(){RX.prototype.X.call(this)};g.r(m_,RX);g.h=m_.prototype;g.h.ib=function(){return this.o.element};
g.h.show=function(){this.o.show()};
g.h.hide=function(){this.o.hide()};
g.h.gn=function(a){this.o.ob(a)};
g.h.X=function(){RX.prototype.X.call(this);g.Ke(this.u)};g.r(n_,RX);n_.prototype.show=function(){this.o.show()};
n_.prototype.hide=function(){this.o.hide()};
n_.prototype.ib=function(){return this.o.element};var Goa={zq:n_};g.r(o_,SX);o_.prototype.B=function(a){var b=this.view;a=a.renderer;this.u=a.clickthroughEndpoint||null;var c=a.headline||null;c&&g.Be(b.o.o["iv-cards-slider-text"],g.T(c));(c=a.priceText||null)&&g.Be(b.o.o["iv-cards-slider-action"],g.T(c));a=a.image&&0<a.image.thumbnails.length?a.image.thumbnails[0].url||null:null;b.o.la("image",a?{D:"img",O:{src:a}}:null);this.show();return Promise.resolve()};
o_.prototype.G=function(){this.u&&this.executeCommand(this.u)};var p_={hD:m_,yq:o_,uq:k_};g.r(q_,SX);
q_.prototype.B=function(a){var b=this;this.w&&(this.w.cancel(),this.w=null);this.w=new Cf(g.Ka);return Promise.race([this.w,this.view.w]).then(function(){var c=a.renderer;b.U=c.clickTrackingEndpoints||[];b.L=c.clickToAdvSiteEndpoint||null;var d=b.view,e=c.adBadgeText||null;e&&g.Be(d.o.o["yt-badge-ad"],g.T(e));(e=c.shopText||null)&&g.Be(d.o.o["ad-companion-clickthrough"],g.T(e));c.adInfoRenderer&&c.adInfoRenderer.adHoverTextButtonRenderer?b.F.init(VT("watch-ad-info-hover-button"),c.adInfoRenderer.adHoverTextButtonRenderer,
b.macros):g.M(Error("ShoppingCompanionCarouselRenderer has no ad info renderer."));c=c.itemList.horizontalListRenderer||null;g.Le(b.C);b.C=[];b.u.clear();c=g.q(c&&c.items||[]);for(d=c.next();!d.done;d=c.next())d=d.value.shoppingCompanionCarouselItemRenderer,e=new p_.yq(b.o,b.A),b.C.push(e),b.u.append(e.view),e.bind({renderer:d,macros:b.macros});b.show()})};
q_.prototype.G=function(a){switch(void 0===a.type?void 0:a.type){case "companionclick":UX(this,this.U);this.o.onAdUxClicked("shopping-companion");this.o.pauseVideo();break;case "nextbuttonclick":a=this.u;a.u=Math.min(a.A-3,a.u+1);l_(a);break;case "prevbuttonclick":this.u.scrollLeft();break;case "shoptextclick":this.L&&this.executeCommand(this.L)}};
q_.prototype.X=function(){this.w&&(this.w.cancel(),this.w=null);g.Le(this.C);this.C=[];SX.prototype.X.call(this)};g.r(r_,g.Nr);r_.prototype.F=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 XT&&this.w(b)}};var lsa=["pla-shelf","shopping-companion","action-companion"];g.r(s_,r_);s_.prototype.w=function(a){var b=a.id,c=a.content,d=c.componentType;if(lsa.includes(d)){var e=this.A();switch(a.actionType){case 1:if(this.u.has(b))break;a=Ioa(d,this.o,e);if(!a){g.No(Error("Unable to create component with type: "+d));break}this.u.set(b,a);case 2:b=this.u.get(b);if(!b)break;b.bind(c);break;case 3:if(c=this.u.get(b))c.dispose(),this.u["delete"](b)}}};
s_.prototype.X=function(){g.Le([].concat(g.ea(this.u.values())))};g.r(Joa,WT);g.r(t_,r_);
t_.prototype.w=function(a){var b=a.content;switch(b.componentType){case "pla-shelf":switch(a.actionType){case 1:case 2:this.o.na("onPlaShelfInfoCardsReady",{renderer:b.renderer,macros:b.macros});break;case 3:this.o.na("onPlaShelfInfoCardsReady",{})}break;case "shopping-companion":switch(a.actionType){case 1:case 2:a=this.o.getVideoData(1);this.o.na("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,macros:b.macros});break;case 3:this.o.na("updateKevlarOrC3Companion",{})}break;
case "action-companion":switch(a.actionType){case 1:case 2:a=this.o.getVideoData(1);this.o.na("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,macros:b.macros});break;case 3:this.o.na("updateKevlarOrC3Companion",{})}break;case "image-companion":switch(a.actionType){case 1:case 2:a=this.o.getVideoData(1);this.o.na("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,macros:b.macros});break;case 3:this.o.na("updateKevlarOrC3Companion",
{})}break;case "ads-engagement-panel":switch(a.actionType){case 1:case 2:this.o.na("updateEngagementPanelAction",b.renderer.addAction);this.o.na("changeEngagementPanelVisibility",b.renderer.expandAction);break;case 3:this.o.na("changeEngagementPanelVisibility",b.renderer.hideAction),this.o.na("updateEngagementPanelAction",b.renderer.removeAction)}}};var msa="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["pla-shelf","shopping-companion","action-companion","image-companion","ads-engagement-panel"]);g.r(u_,r_);
u_.prototype.w=function(a){var b=a.id,c=a.content;if(c){var d=c.componentType;if(!msa.includes(d))switch(a.actionType){case 1:a=this.C();a=Ioa(d,this.A,a);if(!a){g.No(Error("No UI component returned from ComponentFactory for type: "+d));break}Lb(this.u,b)?g.No(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);this.B.append(a.Aa);break;case 2:b=Koa(this,a);if(null==b)break;b.bind(c);break;case 3:c=Koa(this,a),null!=c&&(g.Ke(c),Lb(this.u,b)?(c=this.u,b in c&&delete c[b]):g.No(Error("Ad UI component does not exist: "+
b)))}}};
u_.prototype.X=function(){g.Le(Object.values(this.u));this.u={};r_.prototype.X.call(this)};g.r(x_,g.A);x_.prototype.get=function(){x_.ea(this)&&w_("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.o});this.o||(this.o=this.u());return this.o};var jpa=new Map([[0,"trigger_category_layout_exit_normal"],[1,"trigger_category_layout_exit_skip"],[2,"trigger_category_layout_exit_mute"],[3,"trigger_category_slot_expiration"],[4,"trigger_category_slot_fulfillment"],[5,"trigger_category_slot_entry"]]);g.r(C_,g.A);C_.prototype.logEvent=function(a){D_(this,a)};
var Yoa=new Map([["opportunity_type_player_bytes_media_layout_entered","OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED"],["opportunity_type_ad_placement_renderers_response_received","OPPORTUNITY_TYPE_AD_PLACEMENT_RENDERERS_RESPONSE_RECEIVED"],["opportunity_type_live_stream_break_signal","OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL"],["opportunity_type_ad_break_service_response_received","OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED"]]),Voa=new Map([["slot_type_in_player","SLOT_TYPE_IN_PLAYER"],
["slot_type_above_feed","SLOT_TYPE_ABOVE_FEED"],["slot_type_below_player","SLOT_TYPE_BELOW_PLAYER"],["slot_type_player_bytes","SLOT_TYPE_PLAYER_BYTES"],["slot_type_forecasting","SLOT_TYPE_FORECASTING"]]),Xoa=new Map([["layout_type_media_layout_player_overlay","LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"],["layout_type_companion_with_action_button","LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"],["layout_type_companion_with_image","LAYOUT_TYPE_COMPANION_WITH_IMAGE"],["layout_type_companion_with_shopping",
"LAYOUT_TYPE_COMPANION_WITH_SHOPPING"],["layout_type_media","LAYOUT_TYPE_MEDIA"],["layout_type_composite_player_bytes","LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"],["layout_type_forecasting","LAYOUT_TYPE_FORECASTING"],["layout_type_in_video_text_overlay","LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY"],["layout_type_in_video_enhanced_text_overlay","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"],["layout_type_in_video_image_overlay","LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]]),Soa=new Map([["trigger_type_on_new_playback_after_content_video_id",
"TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID"],["trigger_type_slot_id_entered","TRIGGER_TYPE_SLOT_ID_ENTERED"],["trigger_type_slot_id_exited","TRIGGER_TYPE_SLOT_ID_EXITED"],["trigger_type_slot_id_exited","TRIGGER_TYPE_SLOT_ID_EXITED"],["trigger_type_slot_id_scheduled","TRIGGER_TYPE_SLOT_ID_SCHEDULED"],["trigger_type_layout_id_entered","TRIGGER_TYPE_LAYOUT_ID_ENTERED"],["trigger_type_on_different_layout_id_entered","TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED"],["trigger_type_layout_id_exited",
"TRIGGER_TYPE_LAYOUT_ID_EXITED"],["trigger_type_on_layout_self_exit_requested","TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED"],["trigger_type_on_element_self_enter_requested","TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED"],["trigger_type_before_content_video_id_started","TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED"],["trigger_type_after_content_video_id_ended","TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED"],["trigger_type_media_time_range","TRIGGER_TYPE_MEDIA_TIME_RANGE"],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",
"TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED"],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED","TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED"],["trigger_type_close_requested","TRIGGER_TYPE_CLOSE_REQUESTED"],["trigger_type_time_relative_to_layout_enter","TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER"],["trigger_type_not_in_media_time_range","TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE"]]),Toa=new Map([[5,"TRIGGER_CATEGORY_SLOT_ENTRY"],[4,"TRIGGER_CATEGORY_SLOT_FULFILLMENT"],[3,"TRIGGER_CATEGORY_SLOT_EXPIRATION"],[0,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL"],
[1,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"],[2,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"]]),Woa=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),Noa=new Map([["normal",{Cp:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Qp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",
{Cp:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Qp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],["muted",{Cp:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Qp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Cp:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Qp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}]]);g.r(I_,g.A);I_.prototype.X=function(){var a=ipa(this.o);a=g.q(a);for(var b=a.next();!b.done;b=a.next())O_(this,b.value,!1);g.A.prototype.X.call(this)};X_.prototype.isActive=function(){switch(this.o){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};
X_.prototype.Es=function(){switch(this.B){case "fill_requested":return!0;default:return!1}};
X_.prototype.Ds=function(){switch(this.o){case "exit_requested":return!0;default:return!1}};
X_.prototype.Bs=function(){switch(this.o){case "rendering_stop_requested":return!0;default:return!1}};g.r(Y_,Wa);g.r(T_,Wa);g.r(Z_,g.A);g.h=Z_.prototype;g.h.Er=function(a){a=J_(this,a);a.B="fill_requested";a.C.Er()};
g.h.mj=function(a){J_(this,a).mj=!0};
g.h.Es=function(a){return J_(this,a).Es()};
g.h.Ds=function(a){return J_(this,a).Ds()};
g.h.Bs=function(a){return J_(this,a).Bs()};g.r(mpa,g.A);d0.prototype.get=function(){return this.value};
g.r(e0,d0);e0.prototype.o=function(){return"metadata_type_action_companion_ad_renderer"};
g.r(f0,d0);f0.prototype.o=function(){return"metadata_type_ad_next_params"};
g.r(g0,d0);g0.prototype.o=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.r(h0,d0);h0.prototype.o=function(){return"metadata_type_image_companion_ad_renderer"};
g.r(i0,d0);i0.prototype.o=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.r(j0,d0);j0.prototype.o=function(){return"metadata_type_ad_placement_config"};
g.r(k0,d0);k0.prototype.o=function(){return"metadata_type_ad_video_id"};
g.r(l0,d0);l0.prototype.o=function(){return"metadata_type_content_cpn"};
g.r(m0,d0);m0.prototype.o=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.r(n0,d0);n0.prototype.o=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.r(o0,d0);o0.prototype.o=function(){return"metadata_type_player_bytes_callback"};
g.r(p0,d0);p0.prototype.o=function(){return"metadata_type_sub_layouts"};
g.r(q0,d0);q0.prototype.o=function(){return"metadata_type_video_length_seconds"};
g.r(r0,d0);r0.prototype.o=function(){return"metadata_type_player_vars"};
g.r(s0,d0);s0.prototype.o=function(){return"metadata_type_layout_enter_ms"};
g.r(t0,d0);t0.prototype.o=function(){return"metadata_type_sub_layout_index"};
g.r(u0,d0);u0.prototype.o=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.r(v0,d0);v0.prototype.o=function(){return"metadata_type_drift_recovery_ms"};
g.r(w0,d0);w0.prototype.o=function(){return"metadata_type_fulfilled_layout"};npa.prototype.Er=function(){a:{var a=this.Eb,b=this.slot,c=A_(this.slot.Ja,"metadata_type_fulfilled_layout");if(null!=J_(a.o,b))if(J_(a.o,b).B=c?"filled":"not_filled",null===c)F_(a.Ra,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b),O_(a,b,!1);else if(F_(a.Ra,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c),J_(a.o,b).A)O_(a,b,!1);else{F_(a.Ra,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var d=a.o;if(!J_(d,b))throw new Y_("Unknown slotState for onLayout");if(!d.Kd.Ks.get(b.Ya))throw new Y_("No LayoutRenderingAdapterFactory registered for slot of type: "+
b.Ya);if(g.db(c.Ae)&&g.db(c.Ve)&&g.db(c.Ue))throw new Y_("Layout has no exit triggers.");a0(d,0,c.Ae);a0(d,1,c.Ve);a0(d,2,c.Ue)}catch(l){P_(a,b,c,l);O_(a,b,!0);break a}a.o.mj(b);try{var e=a.o,f=J_(e,b),k=e.Kd.Ks.get(b.Ya).get().o(e.A,e.u,b,c);k.init();f.layout=c;if(f.u)throw new Y_("Already had LayoutRenderingAdapter registered for slot");f.u=k;b0(e,f,0,c.Ae);b0(e,f,1,c.Ve);b0(e,f,2,c.Ue)}catch(l){R_(a,b);O_(a,b,!0);P_(a,b,c,l);break a}F_(a.Ra,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);d=g.q(a.u);
for(e=d.next();!e.done;e=d.next())e.value.Si(c);R_(a,b);hpa(a,b)}}};g.r(ppa,opa);g.r(x0,g.O);g.h=x0.prototype;g.h.Pl=function(){return this.slot};
g.h.ql=function(){return this.layout};
g.h.init=function(){this.o.addListener(this)};
g.h.Mo=function(){this.o.removeListener(this);this.dispose()};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?P_(this.Eb,this.slot,a,new Y_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(zqa(this.o,this.u,1),K_(this.Eb,this.slot,a))};
g.h.aj=function(a,b){a.layoutId!==this.layout.layoutId?P_(this.Eb,this.slot,a,new Y_("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(zqa(this.o,this.u,3),this.u=[],N_(this.Eb,this.slot,a,b))};
g.h.X=function(){this.o.removeListener(this);g.O.prototype.X.call(this)};g.r(C0,x0);g.h=C0.prototype;g.h.init=function(){x0.prototype.init.call(this);var a=A_(this.layout.Ja,this.F);var b=this.B.u.adPlacementConfig;var c=RU(PU());b=Object.assign(Object.assign({},RU(OU(b))),c);this.u.push(this.G(a,b))};
g.h.zy=function(a){if(a===this.C){a:{a=this.Hd.o;for(var b=g.q(a.keys()),c=b.next();!c.done;c=b.next())if(c=c.value,"slot_type_player_bytes"===c.Ya&&spa(this,a.get(c))){a=!0;break a}a=!1}a?this.Hb.N.sendVideoStatsEngageEvent(1,void 0,2):this.w?this.w():w_("Tried to call engagePingCallback but it is null",this.Pl(),this.ql())}};
g.h.Ci=function(a,b){spa(this,b)&&(null===this.w?this.w=Gqa(this.Hb):w_("OnLayoutEntered should set engagePingCallback, but it was not null",this.Pl(),this.ql()))};
g.h.startRendering=function(a){x0.prototype.startRendering.call(this,a);B0(this.B,"impression")};
g.h.Di=function(){};
g.h.Tj=function(){};
g.h.ik=function(){};
g.h.Rj=function(){};
g.h.Sj=function(){};
g.h.Si=function(){};
g.h.gk=function(){};
g.h.X=function(){this.A.u["delete"](this);x0.prototype.X.call(this)};g.r(D0,C0);g.r(upa,C0);g.r(wpa,C0);ypa.prototype.o=function(a,b,c,d){if(E0(d,tpa()))return new D0(a,c,d,this.He,this.Hb,this.u(),this.Hd,this.oc);if(E0(d,vpa()))return new upa(a,c,d,this.He,this.Hb,this.u(),this.Hd,this.oc);if(E0(d,xpa()))return new wpa(a,c,d,this.He,this.Hb,this.u(),this.Hd,this.oc);throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+B_(d.Ja)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.h=zpa.prototype;g.h.Pl=function(){return this.slot};
g.h.ql=function(){return this.layout};
g.h.init=function(){};
g.h.Mo=function(){};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?P_(this.Eb,this.slot,a,new Y_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(B0(this.o,"impression"),K_(this.Eb,this.slot,a),kqa(this.nm,a.layoutId))};
g.h.aj=function(a,b){a.layoutId!==this.layout.layoutId?P_(this.Eb,this.slot,a,new Y_("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):N_(this.Eb,this.slot,a,b)};Bpa.prototype.o=function(a,b,c,d){if(E0(d,Apa()))return new zpa(a,c,d,this.Hb,this.nm,this.oc);throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+B_(d.Ja)+" in ForecastingLayoutRenderingAdapterFactory.");};Cpa.prototype.o=function(a,b,c,d){if(E0(d,tpa()))return new D0(a,c,d,this.He,this.Hb,this.u(),this.Hd,this.oc);throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+B_(d.Ja)+" in MwebBelowPlayerLayoutRenderingAdapterFactory.");};g.h=Dpa.prototype;g.h.Pl=function(){return this.slot};
g.h.ql=function(){return this.layout};
g.h.init=function(){this.Cd.addListener(this);this.uf.addListener(this);this.nb.addListener(this);this.u.forEach(function(c){c.init()});
var a=A_(this.layout.Ja,"metadata_type_layout_enter_ms"),b=F0(this);a=$W(this.uf.u,a,b);null!==a&&this.Fg.o(a,b)};
g.h.Mo=function(){this.o=null;this.u.forEach(function(a){a.Ay()});
this.Cd.removeListener(this);this.uf.removeListener(this);this.nb.removeListener(this)};
g.h.startRendering=function(){var a,b;if(this.o)w_("Failed to restart rendering",this.slot,this.layout);else{var c=null===(a=this.Cd.Cn)||void 0===a?void 0:a.layoutId;this.o={kj:Epa(this,c)};null===(b=this.o.kj)||void 0===b?void 0:b.startRendering();K_(this.Eb,this.slot,this.layout);B0(this.w,"ad_placement_start")}};
g.h.aj=function(a,b){var c,d;null===(d=null===(c=this.o)||void 0===c?void 0:c.kj)||void 0===d?void 0:d.aj(b);this.o=null;null!==this.driftRecoveryMs&&(this.driftRecoveryMs=null);N_(this.Eb,this.slot,this.layout,b);if("normal"!==b)var e=!1;else{e=this.nb.N.getCurrentTime(2,!0);var f=F0(this)/1E3;e=1>=Math.abs(e-f)}e&&B0(this.w,"ad_placement_end")};
g.h.hk=function(a){a=a.layoutId;var b,c,d;this.o&&(null===(b=this.o.kj)||void 0===b?void 0:b.layout.layoutId)!==a&&(null===(c=this.o.kj)||void 0===c?void 0:c.aj("normal"),this.o={kj:Epa(this,a)},null===(d=this.o.kj)||void 0===d?void 0:d.startRendering())};
g.h.fk=function(){};
g.h.BA=function(){};
g.h.mA=function(a){var b=A_(this.layout.Ja,"metadata_type_layout_enter_ms"),c=F0(this);a*=1E3;b<=a&&a<c&&this.Fg.o(a,c)};
g.h.Zz=function(){var a=this.nb.N.getCurrentTime(2,!0);if(this.o){var b=A_(this.layout.Ja,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;null===c||1E3*a<b+c||(this.driftRecoveryMs=null,c=A_(this.layout.Ja,"metadata_type_layout_enter_ms"),b=F0(this),c=$W(this.uf.u,c,b),b=Math.min(b,null!==c?c:Infinity),b=Math.min(a+rT(this.nb.N.app),b/1E3),b<=a||this.nb.N.seekTo(b,void 0,void 0,1))}};
g.h.MA=function(){};
g.h.yy=function(){};g.h=Fpa.prototype;
g.h.init=function(){var a=A_(this.layout.Ja,"metadata_type_video_length_seconds");var b=A_(this.layout.Ja,"metadata_type_player_vars");var c=1E3*a,d=A_(this.layout.Ja,"metadata_type_layout_enter_ms");if(Number.isFinite(d)){var e=d+c;e<=d?b="Start time is not earlier than end time":(b=this.Fg.u(b,2,c,d,e))?(c=this.fj,d=this.slot.slotId,e=this.layout.layoutId,b?(c.o.has(b)&&w_("Unexpected remap of timeline playback"),c.o.set(b,{slotId:d,layoutId:e})):w_("Invalid timeline playback ID"),b=null):b="Failed to add to playback timeline"}else b=
"Not supported to play the video after the organic content";null!==b?w_(b,this.slot,this.layout):(this.nb.addListener(this),Eqa(this.oc,this.layout.layoutId,a,this),Zoa(this.Eb,this.slot,this.layout))};
g.h.Ay=function(){this.nb.removeListener(this);var a=this.oc,b=this.layout.layoutId;a.o.has(b)?(a.o["delete"](b),delete WU().o[b]):w_("Unexpected unregistration of layout in LidarApi")};
g.h.startRendering=function(){var a;if(this.u)w_("Expected the layout not to be entered before start rendering",this.slot,this.layout);else{this.u={Js:null,SB:!1};var b=(null===(a=v1(this.Cd,2))||void 0===a?void 0:a.clientPlaybackNonce)||"",c=this.o;c.u=Object.assign(Object.assign({},c.u),{adCpn:b});$oa(this.Eb,this.slot,this.layout)}};
g.h.aj=function(a){this.u?(this.u=null,bpa(this.Eb,this.slot,this.layout,a)):w_("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.h.Zz=function(a){if(this.u){if(this.o.o.has("impression")){var b=g.QK(this.nb.N,void 0);Gpa(this,b,a,this.u.Js)}this.u.Js=a}};
g.h.MA=function(a){if(this.u){this.u.SB||(this.u.SB=!0,a=new g.cH(a.state,new g.LC));var b=this.nb.N.getCurrentTime(2,!1);!a.Gh.ab()&&a.state.ab()&&G0(b,0,null)&&B0(this.o,"impression");if(this.o.o.has("impression")&&(g.eH(a,4)&&!g.eH(a,2)&&A0(this.o,"pause"),0>dH(a,4)&&!(0>dH(a,2))&&A0(this.o,"resume"),g.eH(a,16)&&.5<=this.nb.N.getCurrentTime(2,!1)&&A0(this.o,"seek"),g.eH(a,2))){var c=A_(this.layout.Ja,"metadata_type_video_length_seconds"),d=1>=Math.abs(c-b);Gpa(this,a.state,d?c:b,this.u.Js);d&&
B0(this.o,"complete")}}};
g.h.yy=function(a){this.o.o.has("impression")&&A0(this.o,a?"fullscreen":"end_fullscreen")};
g.h.skip=function(){};
g.h.LB=function(){this.o.o.has("impression")&&A0(this.o,"clickthrough")};Hpa.prototype.o=function(a,b,c,d){a:{var e=A_(d.Ja,"metadata_type_sub_layouts"),f=A_(d.Ja,"metadata_type_ad_placement_config");if(E0(d,{sf:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms"],xh:["layout_type_composite_player_bytes"]})&&void 0!==e&&void 0!==f){var k=[];e=g.q(e);for(var l=e.next();!l.done;l=e.next()){l=l.value;var m=A_(l.Ja,"metadata_type_sub_layout_index");if(!E0(l,{sf:["metadata_type_video_length_seconds","metadata_type_player_vars","metadata_type_layout_enter_ms"],
xh:["layout_type_media"]})||void 0===m){a=null;break a}k.push(new Fpa(b,c,l,this.Fg,new y0(l.hf,this.Hb,f,this.oc,l.layoutId,m),this.nb,this.fj,this.oc,this.Cd))}a=new Dpa(a,c,d,this.Cd,this.Fg,this.uf,this.nb,new y0(d.hf,this.Hb,f,this.oc,d.layoutId),k)}else a=null}if(a)return a;throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+B_(d.Ja)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.h=Ipa.prototype;g.h.Pl=function(){return this.slot};
g.h.ql=function(){return this.layout};
g.h.init=function(){};
g.h.Mo=function(){};
g.h.startRendering=function(){};
g.h.aj=function(){};Kpa.prototype.o=function(a,b,c,d){if(E0(d,Jpa()))return new Ipa(c,d);throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+B_(d.Ja)+" in TvInPlayerLayoutRenderingAdapterFactory.");};g.r(H0,x0);H0.prototype.init=function(){x0.prototype.init.call(this);var a=A_(this.layout.Ja,"metadata_type_instream_ad_player_overlay_renderer");this.u.push(new HW(a))};
H0.prototype.zy=function(a){a:{var b=this.A;for(var c=g.q(this.Hd.o.values()),d=c.next();!d.done;d=c.next())if(d.value.layoutId===b){b=!0;break a}b=!1}if(b)switch(a){case "visit-advertiser":this.Hb.N.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.w||(a=this.nb,2===a.N.getPlayerState(2)&&a.N.playVideo());break;case "ad-info-icon-button":(this.w=2===this.nb.N.getPlayerState(2))||this.nb.pauseVideo();
break;case "visit-advertiser":this.nb.pauseVideo();A_(this.layout.Ja,"metadata_type_player_bytes_callback").LB();break;case "skip-button":A_(this.layout.Ja,"metadata_type_player_bytes_callback").skip()}};
H0.prototype.X=function(){x0.prototype.X.call(this)};Lpa.prototype.o=function(a,b,c,d){if(E0(d,{sf:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id"],xh:["layout_type_media_layout_player_overlay"]}))return new H0(a,c,d,this.He,this.nb,this.Hb,this.Hd);throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+B_(d.Ja)+" in WebInPlayerLayoutRenderingAdapterFactory.");};g.r(I0,g.A);g.r(K0,I0);K0.prototype.u=function(a,b,c,d){0!==c.length&&J0(this,{Ug:c,Mq:d,contentCpn:a,Uk:b,oo:!1,wb:!1})};Opa.prototype.A=function(a){var b=this,c=[];this.u=new Map;var d=a.Ug.filter(Tpa),e={};d=g.q(d);for(var f=d.next();!f.done;e={Yb:e.Yb,mf:e.mf,nf:e.nf},f=d.next())if(e.nf=f.value,e.Yb=e.nf.renderer,e.mf=e.nf.config.adPlacementConfig,f=e.mf.kind,null!=e.Yb.actionCompanionAdRenderer)PW(this.Kb)&&(e.Yb.actionCompanionAdRenderer.adVideoId?L0(this,e.nf.elementId,f,e.Yb.actionCompanionAdRenderer.adVideoId,e.mf,function(k){return function(l,m,n,p){var t=k.Yb.actionCompanionAdRenderer;return j1("layout_type_companion_with_action_button",
new e0(t),m,n,p,t.impressionPings,b.o(l))}}(e)):w_("ActionCompanionAdRenderer without adVideoId",void 0,void 0,{kind:f,
"actionButton undefined":void 0===e.Yb.actionCompanionAdRenderer.actionButton,"APR count":a.Ug.length,isAdBreakResponse:a.oo}));else if(e.Yb.imageCompanionAdRenderer)QW(this.Kb)&&(e.Yb.imageCompanionAdRenderer.adVideoId?L0(this,e.nf.elementId,f,e.Yb.imageCompanionAdRenderer.adVideoId,e.mf,function(k){return function(l,m,n,p){var t=k.Yb.imageCompanionAdRenderer;return j1("layout_type_companion_with_image",new h0(t),m,n,p,t.impressionPings,b.o(l))}}(e)):w_("ImageCompanionAdRenderer without adVideoId"));
else if(e.Yb.shoppingCompanionCarouselRenderer)RW(this.Kb)&&(e.Yb.shoppingCompanionCarouselRenderer.adVideoId?L0(this,e.nf.elementId,f,e.Yb.shoppingCompanionCarouselRenderer.adVideoId,e.mf,function(k){return function(l,m,n,p){var t=k.Yb.shoppingCompanionCarouselRenderer;return j1("layout_type_companion_with_shopping",new i0(t),m,n,p,t.impressionPings,b.o(l))}}(e)):w_("ShoppingCompanionCarouselRenderer without adVideoId"));
else if(e.Yb.adBreakServiceRenderer)HY(this.Kb)&&Upa(e.nf)&&this.Eb.Tt({adPlacementRenderer:e.nf,contentCpn:a.contentCpn,Uk:a.Uk});else if(e.Yb.clientForecastingAdRenderer)r1(this.Kb)&&(f=uqa(e.mf,a.contentCpn,function(k){return function(l){var m=k.Yb.clientForecastingAdRenderer,n=k.mf;l=b.o(l);var p=$r(),t={layoutId:p,layoutType:"layout_type_forecasting",vb:"core"},u=new Map,z=m.impressionUrls;z&&u.set("impression",z);return{layoutId:p,layoutType:"layout_type_forecasting",hf:u,Ae:[new c1(p)],Ve:[],
Ue:[],vb:"core",Ja:new z_([new u0(m),new j0(n)]),vi:l(t)}}}(e)))&&c.push(f);
else if(e.Yb.invideoOverlayAdRenderer)q1(this.Kb)&&(f=pqa(e.mf,a.contentCpn,function(k){return function(l){a:{var m=k.Yb.invideoOverlayAdRenderer;var n=k.mf;l=b.o(l);var p=m.contentSupportedRenderer;if(p){if(p.textOverlayAdContentRenderer){p=$r();m=k1(p,"layout_type_in_video_text_overlay",m,n,l);break a}if(p.enhancedTextOverlayAdContentRenderer){p=$r();m=k1(p,"layout_type_in_video_enhanced_text_overlay",m,n,l);break a}if(p.imageOverlayAdContentRenderer){p=$r();m=Object.assign(Object.assign({},k1(p,
"layout_type_in_video_image_overlay",m,n,l)),{Ae:[new h1(p)]});break a}w_("InvideoOverlayAdRenderer without appropriate sub renderer")}else w_("InvideoOverlayAdRenderer without contentSupportedRenderer");m=void 0}return m}}(e)))&&c.push(f);
else if(e.Yb.linearAdSequenceRenderer&&a.wb){f=void 0;try{f=tqa(a.contentCpn,function(k){return function(l){return Xpa(k.nf,b.o(l))}}(e))}catch(k){w_("Failed to parse AdPlacementRenderer for DAI AdPlacementRenderersSlotExtractor: "+k.message);
continue}c.push(f)}else Rpa(this,e.Yb,f);if(null===this.w||a.wb)return c;e=a.Mq.filter(Tpa);e=g.q(e);for(f=e.next();!f.done;f=e.next())d=f.value,Rpa(this,d.renderer,d.config.adPlacementConfig.kind);d=Array.from(this.u.values()).filter(function(k){return Spa(k,a)});
e={};d=g.q(d);for(f=d.next();!f.done;e={Sf:e.Sf},f=d.next())e.Sf=f.value,f=function(k){return function(l){return k.Sf.Vk(l,k.Sf.adVideoId,k.Sf.instreamVideoAdRenderer.elementId,k.Sf.Kq)}}(e),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===e.Sf.Vh?c.push(sqa(this.w,e.Sf.Lq,a.contentCpn,f)):c.push(rqa(this.w,a.contentCpn,e.Sf.instreamVideoAdRenderer.elementId,f));
return c};g.r(M0,I0);g.h=M0.prototype;g.h.Tt=function(a){if(v1(this.Cd,1).wb&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.adPlacementRenderer.config.adPlacementConfig.kind)if(this.o)w_("Unexpected multiple fetch instructions for the current content");else{this.o=a;a=g.q(this.uf.w);for(var b=a.next();!b.done;b=a.next())$pa(this,this.o,b.value)}};
g.h.BA=function(a){this.o&&$pa(this,this.o,a)};
g.h.mA=function(){};
g.h.hk=function(){};
g.h.fk=function(a){a=a.clientPlaybackNonce;var b;(null===(b=this.o)||void 0===b?void 0:b.contentCpn)!==a&&(this.o=null)};
g.h.X=function(){I0.prototype.X.call(this);this.o=null};g.r(N0,g.A);N0.prototype.schedule=function(a){var b=a.contentCpn,c=a.execute,d=a.DE;a=a.XN;var e="adfetchcuerange:"+$r(),f=a?"deferredadvisiblecuerange:"+$r():null;this.o.set(e,{contentCpn:b,Ew:f,execute:c});this.qe.addCueRange(e,d.start,d.end,!1,this);f&&a&&this.qe.addCueRange(f,a.start,a.end,!0,this)};
N0.prototype.u=function(a){var b=this.o.get(a);if(b){var c=b.execute;b=b.Ew;this.o["delete"](a);this.qe.removeCueRange(a);b&&this.qe.removeCueRange(b);c()}};
N0.prototype.hk=function(){};
N0.prototype.fk=function(a){a=a.clientPlaybackNonce;for(var b=g.q(this.o.entries()),c=b.next();!c.done;c=b.next()){var d=g.q(c.value);c=d.next().value;d=d.next().value;var e=d.Ew;d.contentCpn!==a&&(this.o["delete"](c),this.qe.removeCueRange(c),e&&this.qe.removeCueRange(e))}};var Iqa=["metadata_type_content_cpn","metadata_type_player_bytes_callback","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],Hqa=["metadata_type_content_cpn","metadata_type_player_bytes_callback","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config","metadata_type_ad_next_params"];g.r(O0,I0);g.h=O0.prototype;
g.h.Ci=function(a,b){if(OW(this.Kb)&&"layout_type_media"===b.layoutType)if(y_(b,this.o)){var c={Mu:b.layoutId,contentCpn:A_(b.Ja,"metadata_type_content_cpn"),PN:A_(b.Ja,"metadata_type_player_bytes_callback"),instreamAdPlayerOverlayRenderer:A_(b.Ja,"metadata_type_instream_ad_player_overlay_renderer"),adPlacementConfig:A_(b.Ja,"metadata_type_ad_placement_config"),adNextParams:A_(b.Ja,"metadata_type_ad_next_params")};J0(this,c)}else w_("Received MediaLayout entered, missing metadata for opportunity",
a,b,{Actual:B_(b.Ja),Expected:this.o})};
g.h.Tj=function(){};
g.h.ik=function(){};
g.h.Rj=function(){};
g.h.Sj=function(){};
g.h.Si=function(){};
g.h.gk=function(){};
g.h.Di=function(){};
P0.prototype.A=function(a){var b=this,c=[];c.push(nqa(a.contentCpn,a.Mu,function(d){return b.Vk("core",a,function(e){return H_(b.Ra,d.slotId,d.Ya,d.vb,d.ld,e.layoutId,e.layoutType,e.vb)})}));
return c};g.r(Q0,g.A);g.h=Q0.prototype;g.h.Tj=function(){};
g.h.ik=function(){};
g.h.Rj=function(){};
g.h.Sj=function(){};
g.h.Si=function(){};
g.h.gk=function(a,b){this.o.has(a)&&this.o.get(a)===b&&w_("Unscheduled a Layout that is currently entered.",a,b)};
g.h.Ci=function(a,b){this.o.set(a,b)};
g.h.Di=function(a){this.o["delete"](a)};g.r(Y0,g.A);g.h=Y0.prototype;
g.h.bf=function(a,b,c,d){if(this.u.has(b.o))throw new T_("Tried to register duplicate trigger for slot.");if(!(b instanceof U0||b instanceof V0||b instanceof W0||b instanceof R0||b instanceof S0||b instanceof T0))throw new T_("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new X0(a,b,c,d);this.u.set(b.o,a);b instanceof W0&&this.B.has(b.A)&&Q_(this.o(),[a]);b instanceof U0&&this.A.has(b.w)&&Q_(this.o(),[a]);b instanceof R0&&this.w.has(b.u)&&
Q_(this.o(),[a])};
g.h.kf=function(a){this.u["delete"](a.o)};
g.h.Tj=function(a){this.B.add(a.slotId);for(var b=[],c=g.q(this.u.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof W0&&a.slotId===d.trigger.A&&b.push(d);0<b.length&&Q_(this.o(),b)};
g.h.ik=function(a){this.B["delete"](a.slotId)};
g.h.Rj=function(a){this.A.add(a.slotId);for(var b=[],c=g.q(this.u.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof U0&&a.slotId===d.trigger.w&&b.push(d);0<b.length&&Q_(this.o(),b)};
g.h.Sj=function(a){this.A["delete"](a.slotId);for(var b=[],c=g.q(this.u.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof V0&&a.slotId===d.trigger.B&&b.push(d);0<b.length&&Q_(this.o(),b)};
g.h.Si=function(a){this.C.add(a.layoutId)};
g.h.gk=function(a,b){this.C["delete"](b.layoutId)};
g.h.Ci=function(a,b){this.w.add(b.layoutId);for(var c=[],d=g.q(this.u.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof R0)b.layoutId===e.trigger.u&&c.push(e);else if(e.trigger instanceof T0){var f=e.trigger;a.Ya===f.Ya&&b.layoutType===f.layoutType&&b.layoutId!==f.B&&c.push(e)}0<c.length&&Q_(this.o(),c)};
g.h.Di=function(a,b){this.w["delete"](b.layoutId);for(var c=[],d=g.q(this.u.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof S0&&b.layoutId===e.trigger.B&&c.push(e);0<c.length&&Q_(this.o(),c)};g.r(Z0,g.A);Z0.prototype.bf=function(a,b,c,d){if(this.o.has(b.o))throw new T_("Tried to register duplicate trigger for slot.");if(!(b instanceof cqa))throw new T_("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.o.set(b.o,new X0(a,b,c,d))};
Z0.prototype.kf=function(a){this.o["delete"](a.o)};g.r($0,g.A);$0.prototype.bf=function(a,b,c,d){if(this.o.has(b.o))throw new T_("Tried to register duplicate trigger for slot.");if(!(b instanceof dqa))throw new T_("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.o.set(b.o,new X0(a,b,c,d))};
$0.prototype.kf=function(a){this.o["delete"](a.o)};
$0.prototype.u=function(a){var b=[];b.push.apply(b,g.ea(eqa(this.o,a)));b.length&&Q_(this.w(),b)};g.r(a1,g.A);
a1.prototype.bf=function(a,b,c,d){if(this.o.has(b.o))throw new T_("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.o;if(b instanceof gqa){var f=b.u.start,k=b.u.end,l=b.visible;this.o.set(b.o,{bundle:new X0(a,b,c,d),mr:e});this.qe.addCueRange(e,f,k,l,this)}else if(b instanceof fqa)f=b.visible,this.o.set(b.o,{bundle:new X0(a,b,c,d),mr:e}),this.qe.addCueRange(e,0x7ffffffffffff,0x8000000000000,f,this);else throw new T_("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+
" in CueRangeTriggerAdapter");};
a1.prototype.kf=function(a){var b=this.o.get(a.o);b&&this.qe.removeCueRange(b.mr);this.o["delete"](a.o)};
a1.prototype.u=function(a){a:{for(var b=g.q(this.o.entries()),c=b.next();!c.done;c=b.next()){var d=g.q(c.value);c=d.next().value;d=d.next().value;if(a===d.mr){a=c;break a}}a=""}a&&(a=this.o.get(a))&&Q_(this.w(),[a.bundle])};g.r(b1,g.A);b1.prototype.bf=function(a,b,c,d){if(this.u.has(b.o)||this.w.has(b.o))throw new T_("Tried to re-register the trigger.");a=new X0(a,b,c,d);if(a.trigger instanceof iqa)this.u.set(a.trigger.o,a);else if(a.trigger instanceof hqa)this.w.set(a.trigger.o,a);else throw new T_("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.o)&&a.slot.slotId===this.o&&Q_(this.A(),[a])};
b1.prototype.kf=function(a){this.u["delete"](a.o);this.w["delete"](a.o)};
b1.prototype.hk=function(a){a=a.slotId;if(this.o!==a){var b=[];null!==this.o&&b.push.apply(b,g.ea(jqa(this.w,this.o)));null!==a&&b.push.apply(b,g.ea(jqa(this.u,a)));this.o=a;b.length&&Q_(this.A(),b)}};
b1.prototype.fk=function(){};g.r(e1,g.A);g.h=e1.prototype;g.h.bf=function(a,b,c,d){if(this.w.has(b.o))throw new T_("Tried to register duplicate trigger for slot.");if(!(b instanceof c1||b instanceof d1))throw new T_("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.w.set(b.o,new X0(a,b,c,d))};
g.h.kf=function(a){this.w["delete"](a.o)};
g.h.Sy=function(){};
g.h.Ry=function(){};
g.h.Ys=function(){};
g.h.Ci=function(a,b){"slot_type_above_feed"===a.Ya&&(null!==this.o?w_("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.o=b.layoutId)};
g.h.Di=function(a){"slot_type_above_feed"===a.Ya&&(null===this.o?w_("called onLayoutExited with AboveFeedSlot but there is no entered layout"):this.o=null)};
g.h.Tj=function(){};
g.h.ik=function(){};
g.h.Rj=function(a){"slot_type_above_feed"===a.Ya&&(null!==this.u?w_("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)};
g.h.Sj=function(a){"slot_type_above_feed"===a.Ya&&(null===this.u?w_("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)};
g.h.Si=function(){};
g.h.gk=function(){};
g.h.gr=function(){null!==this.o&&kqa(this,this.o)};
g.h.Dr=function(a){if(null===this.u){for(var b=[],c=g.q(this.w.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof d1&&d.trigger.slotId===a&&b.push(d);b.length&&Q_(this.A(),b)}};
g.h.Qw=function(){};f1.prototype.ki=function(){return this.contentVideoId};g.r(g1,g.A);g1.prototype.bf=function(a,b,c,d){if(this.o.has(b.o))throw new T_("Tried to register duplicate trigger for slot.");if(!(b instanceof f1))throw new T_("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnNewPlaybackAfterContentVideoIdTriggerAdapter");this.o.set(b.o,new X0(a,b,c,d))};
g1.prototype.kf=function(a){this.o["delete"](a.o)};
g1.prototype.hk=function(){};
g1.prototype.fk=function(a){for(var b=[],c=g.q(this.o.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger.ki()!==a.clientPlaybackNonce&&b.push(d);0<b.length&&Q_(this.u(),b)};g.r(i1,g.A);g.h=i1.prototype;g.h.bf=function(a,b,c,d){if(this.u.has(b.o))throw new T_("Tried to register duplicate trigger for slot.");if(!(b instanceof h1))throw new T_("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.u.set(b.o,new X0(a,b,c,d));a=this.o.has(b.layoutId)?this.o.get(b.layoutId):new Set;a.add(b);this.o.set(b.layoutId,a)};
g.h.kf=function(a){this.u["delete"](a.o);if(!(a instanceof h1))throw new T_("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.w.get(a.o);b&&(b.dispose(),this.w["delete"](a.o));if(b=this.o.get(a.layoutId))b["delete"](a),0===b.size&&this.o["delete"](a.layoutId)};
g.h.Tj=function(){};
g.h.ik=function(){};
g.h.Rj=function(){};
g.h.Sj=function(){};
g.h.Si=function(){};
g.h.gk=function(){};
g.h.Ci=function(a,b){var c=this;if(this.o.has(b.layoutId)){var d=this.o.get(b.layoutId),e={};d=g.q(d);for(var f=d.next();!f.done;e={Hk:e.Hk},f=d.next())e.Hk=f.value,f=new g.H(function(k){return function(){var l=c.u.get(k.Hk.o);Q_(c.A(),[l])}}(e),e.Hk.durationMs),f.start(),this.w.set(e.Hk.o,f)}};
g.h.Di=function(){};g.r(lqa,g.A);mqa.prototype.o=function(a,b,c){var d=[new n0(b.Mu),new m0(b.instreamAdPlayerOverlayRenderer),new o0(b.PN),new j0(b.adPlacementConfig)];b.adNextParams&&d.push(new f0(b.adNextParams));var e=$r(),f={layoutId:e,layoutType:"layout_type_media_layout_player_overlay",vb:a};return{layoutId:e,layoutType:"layout_type_media_layout_player_overlay",hf:new Map,Ae:[new S0($r(),b.Mu)],Ve:[],Ue:[],vb:a,Ja:new z_(d),vi:c(f)}};g.r(l1,g.A);l1.prototype.init=function(){};
l1.prototype.Ay=function(){};
l1.prototype.X=function(){this.zg.removeListener(this);g.A.prototype.X.call(this)};g.r(wqa,g.A);xqa.prototype.fetch=function(a){return rh(this,function c(){var d,e,f,k,l=this,m,n;return Ba(c,function(p){if(1==p.o)return d=a,e=d.YO,f=d.lE,k=void 0===d.hi?void 0:d.hi,p.B=2,g.ua(p,l.Jq.fetch(e,{hi:k,Pb:f,wk:wY(l.o)}),4);if(2!=p.o)return m=p.u,p["return"](yqa(m,f,l.Kb));n=wa(p);g.$q(n);return p["return"]([])})})};g.r(m1,g.A);g.h=m1.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.onAdUxClicked=function(a){this.listeners.forEach(function(b){b.zy(a)})};
g.h.hH=function(){this.listeners.forEach(function(){})};
g.h.gH=function(){this.listeners.forEach(function(){})};
g.h.RJ=function(){this.listeners.forEach(function(){})};n1.prototype.addListener=function(a){this.listeners.push(a)};
n1.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.r(o1,g.A);g.h=o1.prototype;g.h.hk=function(){};
g.h.fk=function(){this.A=new YW(this);this.u=new ZW;Aqa(this)};
g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.CA=function(a){this.w.push(a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.BA(a)};
g.h.nA=function(a){g.wb(this.u.o,1E3*a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.mA(a)};
g.h.Ty=function(a){for(var b=g.q(a),c=b.next();!c.done;c=b.next())this.o.add(c.value);this.listeners.forEach(function(){});
a=g.q(a);for(c=a.next();!c.done;c=a.next())this.A.reduce(c.value)};
g.h.X=function(){this.N.getVideoData(1).unsubscribe("cuepointupdated",this.Ty,this);this.listeners.length=0;this.o.clear();this.w.length=0;g.A.prototype.X.call(this)};g.r(p1,g.A);p1.prototype.addCueRange=function(a,b,c,d,e){this.o.has(a)?w_("Tried to register duplicate cuerange",void 0,void 0,{CueRangeID:a}):(a=new Bqa(a,b,c,d),this.o.set(a.id,{Pb:a,listener:e}),g.fL(this.N,[a],1))};
p1.prototype.removeCueRange=function(a){var b=this.o.get(a);b?(g.yT(this.N.app,[b.Pb],1),this.o["delete"](a)):w_("Requested to remove unknown cuerange",void 0,void 0,{CueRangeID:a})};
p1.prototype.w=function(a){this.o.has(a.id)&&this.o.get(a.id).listener.u(a.id)};
p1.prototype.A=function(a){this.o.has(a.id)&&this.o.get(a.id)};
g.r(Bqa,g.mC);s1.prototype.addListener=function(a){this.listeners.push(a)};
s1.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};t1.prototype.w=function(a){var b;null===(b=this.o.get(a.queryId))||void 0===b?void 0:A0(b.o,"active_view_measurable")};
t1.prototype.u=function(a){var b;null===(b=this.o.get(a.queryId))||void 0===b?void 0:b.o.o.has("impression")&&!b.o.o.has("seek")&&A0(b.o,"active_view_fully_viewable_audible_half_duration")};
t1.prototype.A=function(a){var b;null===(b=this.o.get(a.queryId))||void 0===b?void 0:b.o.o.has("impression")&&!b.o.o.has("seek")&&A0(b.o,"active_view_viewable")};g.r(u1,XU);u1.prototype.Qd=function(){return this.o()};g.r(w1,g.A);g.h=w1.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.vN=function(a,b){var c=this.jn(b);this.Cn=c;this.listeners.forEach(function(e){e.hk(c)});
var d=v1(this,1);d.clientPlaybackNonce!==this.contentCpn&&(this.contentCpn=d.clientPlaybackNonce,this.listeners.forEach(function(e){e.fk(d)}))};
g.h.jn=function(a){var b,c,d=a.clientPlaybackNonce;a=this.fj.o.get(a.Db)||{layoutId:null,slotId:null};var e=this.N.getVideoData(1).getPlayerResponse();e=(null===(c=null===(b=null===e||void 0===e?void 0:e.playerConfig)||void 0===b?void 0:b.daiConfig)||void 0===c?void 0:c.enableDai)||!1;return Object.assign(Object.assign({},a),{clientPlaybackNonce:d,wb:e})};
g.h.X=function(){this.listeners.length=0;this.Cn=null;g.A.prototype.X.call(this)};g.r(x1,g.A);g.h=x1.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.pauseVideo=function(){this.N.pauseVideo()};
g.h.getVolume=function(){return this.N.getVolume()};
g.h.isMuted=function(){return this.N.isMuted()};
g.h.getPresentingPlayerType=function(){return this.N.getPresentingPlayerType()};
g.h.getPlayerState=function(a){return this.N.getPlayerState(a)};
g.h.isFullscreen=function(){return this.N.isFullscreen()};
g.h.pM=function(){if(2===this.N.getPresentingPlayerType())for(var a=this.N.getCurrentTime(2,!1),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Zz(a)};
g.h.hM=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.MA(a)};
g.h.iH=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.yy(a)};
g.h.jH=function(){for(var a=g.q(this.listeners),b=a.next();!b.done;b=a.next());};
g.h.kH=function(){g.RK(this.N).getPlayerSize();for(var a=g.q(this.listeners),b=a.next();!b.done;b=a.next());};g.r(Kqa,g.A);g.r(z1,g.wL);g.h=z1.prototype;g.h.create=function(){this.load();this.created=!0};
g.h.load=function(){g.wL.prototype.load.call(this);this.player.getRootNode().classList.add("ad-created");var a=y1(this.u).Kb;if((PW(a)||QW(a)||RW(a)||OW(a)||HY(a)||r1(a)||q1(a))&&(g.mz(a.N.M())||a.N.M().o?bV(a.N):1)){var b=this.player.getVideoData(1),c=b&&b.getPlayerResponse()||{};a=Nqa(c,a);if(0<a.qp.length){b=b&&b.clientPlaybackNonce||"";c=1E3*this.player.getDuration(1);var d=this.u.B,e=a.qp,f=a.qp.concat(a.kn);if(""===b)w_("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");
else{d.o.u(b,c,e,f);d=g.q(d.listeners);for(var k=d.next();!k.done;k=d.next())k.value.u(b,c,e,f)}}0<a.kn.length&&(b=this.o=new JY(this.player,this.w,this.A,y1(this.u)),c=a.kn,a=b.o.getVideoData(1),a.mn||g.L("SERVED_VIA_SPF_HISTORY")?g.P(b.o.M().experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?b.R():NY(b):(bV(b.o)&&GY($B(b.o)),b.B.K(b.o,"applicationplayerstatechange",b.sz),b.B.K(b.o,g.pC("ad"),b.Zl,b),b.B.K(b.o,"crx_ad",b.uz,b),b.B.K(b.o,"aduxclicked",b.aA),b.B.K(b.o,"videodatachange",
b.vz),c=KY(b,c),c=LY(b,c),0<c.length&&OY(b,c),b.I&&(a.subscribe("cuepointupdated",b.km,b),b.w&&a.ia&&b.km(Yx(a.ia,0))),NY(b),g.xf(b.BC,b)))}else this.o=new JY(this.player,this.w,this.A,y1(this.u)),this.o.init()};
g.h.destroy=function(){this.unload();this.created=!1};
g.h.unload=function(){g.wL.prototype.unload.call(this);this.player.getRootNode().classList.remove("ad-created");if(null!==this.o){var a=this.o;this.o=null;a.dispose()}this.w.reset();this.A.reset()};
g.h.Pf=function(){return!1};
g.h.getAdState=function(){return this.o?this.o.Z:-1};
g.h.getOptions=function(){return Object.values(isa)};
g.h.Oc=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":var c=b;if(c.url){var d=MU(this.player);Object.assign(d,c.additionalMapping);this.o&&!d.AD_CPN&&(d.AD_CPN=this.o.ga);c=g.jn(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.Ia("yt.player.Application.create",FS,void 0);g.Ia("yt.player.Application.createAlternate",FS,void 0);var nsa=g.w("ytcsi.tick");nsa&&nsa("pe");g.LL.ad=z1;var Pqa=/#(.)(.)(.)/,Oqa=/^#(?:[0-9a-f]{3}){1,2}$/i;var Rqa=g.ke&&Qqa();g.Va(g.C1,g.A);var osa=[];g.h=g.C1.prototype;g.h.ka=function(a,b,c,d){Array.isArray(b)||(b&&(osa[0]=b.toString()),b=osa);for(var e=0;e<b.length;e++){var f=We(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.o[f.key]=f}return this};
g.h.Ls=function(a,b,c,d){return Sqa(this,a,b,c,d)};
g.h.Za=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Za(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Qa(d)?!!d.capture:!!d,e=e||this.u||this,c=Xe(c),d=!!d,b=Qe(a)?a.rl(b,c,d,e):a?(a=Ze(a))?a.rl(b,c,d,e):null:null,b&&(ef(b),delete this.o[b.key])};
g.h.X=function(){g.C1.Fb.X.call(this);g.Tqa(this)};
g.h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};D1.prototype.o=4;D1.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
D1.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(D1.BYTES_PER_ELEMENT=4,D1.prototype.BYTES_PER_ELEMENT=D1.prototype.o,D1.prototype.set=D1.prototype.set,D1.prototype.toString=D1.prototype.toString,g.Ia("Float32Array",D1,void 0));E1.prototype.o=8;E1.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
E1.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{E1.BYTES_PER_ELEMENT=8}catch(a){}E1.prototype.BYTES_PER_ELEMENT=E1.prototype.o;E1.prototype.set=E1.prototype.set;E1.prototype.toString=E1.prototype.toString;g.Ia("Float64Array",E1,void 0)};})(_yt_player);