var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ 'use strict';var aa,baa,caa,ea,daa,eaa,fa,ha,ka,la,ma,iaa,jaa,xa,ya,kaa,laa,maa,Aa,Ca,Da,Ea,Ha,La,oaa,paa,Xa,Ya,Za,qaa,ab,raa,vaa,cb,waa,fb,jb,ob,vb,wb,xb,yb,Ab,Bb,Eaa,Cb,Eb,Db,Faa,Gaa,Haa,Fb,Gb,Iaa,Hb,Ib,Kb,Jaa,Kaa,Laa,Qb,Naa,Oaa,gc,Paa,lc,Qaa,Raa,jc,Saa,Taa,Uaa,tc,uc,Vaa,Waa,bba,Cc,aba,Zaa,Jc,Kc,Oc,Pc,Tc,Vc,Uc,Xc,eba,Yc,fba,ad,bd,cd,gba,dd,hba,ed,id,iba,jd,jba,kba,kd,lba,mba,nba,md,oba,qba,pba,pd,rd,td,vd,tba,sba,zd,Ad,uba,Bd,Cd,Ed,Hd,wba,Id,F,Jd,Kd,Ld,Pd,Rd,Sd,Td,Xd,Zd,$d,xba,yba,zba,ae,Aba,be, Cba,Bba,fe,Fba,Hba,re,Jba,Kba,se,Mba,Nba,Pba,xe,Qba,ye,Rba,Sba,Ae,Tba,Uba,Vba,Wba,De,Zba,$ba,bca,cca,dca,eca,fca,Xba,Yba,hca,ica,jca,kca,Je,lca,mca,nca,oca,Fe,aca,gca,rca,sca,tca,Ue,Ve,uca,We,Xe,Ye,wca,vca,xca,yca,jf,kf,Bca,lf,of,Cca,Dca,rf,vf,Eca,Hca,Kf,Mf,Ica,Jca,Nf,Oca,Sf,Lca,Nca,Qf,Pf,Wf,Xf,Pca,Yf,Qca,dg,eg,Rca,gg,hg,ig,kg,Vca,lg,Xca,$ca,og,dda,sg,tg,fda,gda,eda,lda,mda,yg,nda,pda,qda,Ag,rda,Dg,Eg,vda,Ig,Kg,Rg,Tg,Wg,Xg,wda,xda,yda,zda,$g,Bda,eh,Dda,Fda,Eda,fh,hh,Gda,gh,Hda,Zg,th,Jda,vh,uh,Yg, xh,Kda,Lda,yh,zh,Mda,Oda,Qda,Fh,Gh,Hh,Uda,Kh,Vda,Ih,Zda,Dh,Sda,aea,Yda,Wda,Xda,bea,$da,Lh,Oh,dea,eea,fea,gea,hea,iea,mea,oea,pea,rea,qea,sea,Xh,Yh,Zh,uea,vea,$h,ai,xea,di,yea,Bea,fi,gi,Cea,hi,ii,Eea,Fea,si,Gea,Hea,ti,ui,Iea,wi,yi,Jea,zi,Ai,Mea,Nea,Pea,Qea,Sea,Rea,Tea,Ci,Uea,Fi,Ji,Ki,Li,Mi,$ea,bfa,cfa,Oi,efa,ffa,gfa,ifa,hfa,jfa,dfa,Ni,lfa,Pi,mfa,nfa,Qi,ofa,Ri,Si,Ti,Ui,Vi,pfa,qfa,rfa,sfa,Wi,tfa,ufa,Xi,Zi,vfa,wfa,$i,zfa,Afa,Cfa,aj,fj,Efa,Ffa,hj,Gfa,Ifa,Hfa,Jfa,Kfa,Lfa,ij,jj,kj,Mfa,Nfa,Pfa,Qfa,mj,nj, oj,pj,Rfa,qj,rj,sj,tj,uj,Wfa,Tfa,xj,Vfa,yj,Ufa,wj,vj,Aj,Xfa,Cj,Bj,Yfa,Zfa,Ij,Jj,Lj,cga,Kj,Oj,dga,Pj,$fa,gga,hga,iga,Tj,Uj,Vj,jga,Wj,Xj,Yj,Zj,kga,ak,bk,ck,lga,mga,dk,nga,lj,qga,rga,sga,tga,oga,ek,gk,uga,fk,wga,xga,ik,jk,yga,lk,mk,nk,kk,ok,hk,Aga,Bga,zga,Cga,Dga,Ega,pk,qk,rk,sk,tk,uk,vk,Fga,Gga,wk,xk,yk,Hga,Jga,Kga,Ak,Ck,Bk,Ek,Fk,Gk,Mga,Nga,Hk,Ik,Jk,Pga,Qga,Tga,Rga,Uga,Yga,Kk,Xga,Vga,Lk,Mk,Zga,Nk,$ga,Ok,bha,aha,cha,dha,Rk,Sk,eha,fha,gha,Tk,Uk,hha,Vk,iha,jha,nha,Xk,oha,pha,qha,rha,sha,bl,tha,uha,vha, il,hl,gl,wha,xha,yha,jl,kl,ll,Aha,rl,sl,tl,ul,vl,wl,Cha,Dha,Eha,xl,zl,Al,El,Fl,Il,Gha,Iha,Hha,Jha,Kha,Ol,Lha,Mha,Pl,Nha,Oha,Pha,Qha,Tl,Rl,Ul,Vl,Wl,Rha,Sha,Tha,Xl,Yl,Zl,Uha,Vha,Wha,$l,Xha,am,bm,Yha,Zha,$ha,aia,bia,cia,dia,dm,em,fm,hm,gia,im,jm,hia,fia,gm,iia,km,lm,mm,om,nm,jia,kia,lia,pm,nia,qm,pia,qia,ria,sia,tia,uia,via,wia,tm,um,vm,yia,xia,xm,zia,Am,Aia,Bm,Bia,Cia,Cm,Dm,Em,Dia,Fm,Gm,Hm,Im,Jm,Km,Lm,Mm,Nm,Eia,Fia,Gia,Hia,Om,Iia,Kia,Jia,Qm,Rm,Mia,Lia,Ria,Qia,Sm,Sia,Tia,Uia,Wia,Via,Xia,Tm,Yia,Zia,Vm, $ia,aja,bja,cja,Wm,dja,Xm,eja,Ym,Zm,gja,$m,hja,an,bn,ija,jja,cn,en,lja,fn,kja,mja,nja,pja,rja,gn,sja,kn,ln,uja,vja,yja,zja,mn,Aja,nn,on,pn,qn,rn,sn,tn,un,vn,wn,xn,yn,zn,Eja,Dja,Fja,Hja,Gja,Jja,Cja,Ija,Bja,An,Bn,Lja,Mja,Nja,Fn,Gn,Hn,Cn,Pja,In,Kja,Rja,Sja,Tja,Qja,Jn,Kn,Ln,Mn,Uja,Oja,Vja,Nn,Wja,Xja,Yja,Zja,$ja,cka,Pn,dka,Qn,eka,hka,Tn,kka,jka,Sn,Vn,lka,mka,nka,bo,oka,pka,co,qka,oo,lo,mo,no,rka,ro,qo,ska,to,tka,vka,uo,wka,xka,Cka,yka,zo,Hka,Ao,Bo,Jka,Eo,Kka,Lka,Fo,Nka,Ho,Io,Jo,Oka,Lo,Mo,No,Oo,Qo,Ro,Qka, So,To,Rka,Ska,Uo,Tka,Uka,Wo,Xo,Yka,Zo,$o,ap,bp,cp,dp,ep,fp,gp,hp,ip,jp,kp,lp,mp,np,op,pp,qp,tp,up,vp,wp,xp,yp,zp,Ap,Bp,Cp,Dp,Ep,Fp,Gp,Hp,Ip,Jp,Kp,Lp,Mp,Np,Op,Pp,Qp,Rp,Sp,Tp,Up,Vp,Wp,Xp,Yp,Zp,$p,aq,bq,cq,dq,eq,hla,gq,hq,iq,jq,kq,lq,mq,nq,oq,pq,qq,rq,sq,tq,uq,vq,wq,xq,yq,zq,Aq,Bq,Cq,Dq,Eq,Fq,Gq,Hq,Iq,Jq,Kq,Lq,Mq,Nq,Oq,Pq,Qq,Rq,Sq,Tq,Uq,Vq,Wq,Xq,Yq,Zq,$q,ar,br,cr,dr,er,fr,gr,hr,ir,jr,kr,lr,mr,nr,or,pr,qr,rr,sr,tr,ur,vr,wr,xr,yr,zr,Ar,Br,Cr,Dr,Er,Fr,Gr,Hr,Ir,Jr,Kr,Lr,Mr,Nr,Or,Pr,Qr,Rr,Sr,Tr,Ur,Vr,Wr, Xr,Yr,Zr,$r,as,bs,cs,ds,es,fs,gs,hs,is,js,ks,ls,ms,ns,os,ps,qs,rs,ts,us,vs,ws,xs,ys,zs,As,Bs,Cs,Ds,Es,Fs,Gs,Hs,Is,Js,Ks,Ls,Ms,Ns,Os,Ps,Qs,Rs,Ss,Ts,Us,Vs,Ws,Xs,Ys,Zs,$s,bt,ct,dt,et,ft,gt,ht,jt,kt,lt,mt,Jla,nt,Kla,ot,Mla,pt,qt,rt,tt,ut,vt,wt,xt,At,zt,Bt,Ct,Dt,Et,Ft,Gt,Ht,It,Jt,Kt,Lt,Mt,Nt,Ot,Pt,Qt,Rt,St,Tt,Ut,Vt,Wt,Xt,Yt,Wla,Xla,$t,au,cu,Yla,du,Zla,gu,hu,iu,ju,ku,lu,nu,ou,cma,pu,qu,ru,$la,tu,fma,ima,uu,kma,mma,zu,nma,oma,pma,tma,rma,sma,Au,Du,Cu,uma,Fu,Gu,Hu,vma,wma,xma,Ou,yma,Qu,Ru,zma,Su,Tu,Uu,Wu, Yu,Zu,Nu,av,Bma,bv,cv,dv,ev,fv,gv,hv,iv,Dma,Ema,jv,lv,kv,Gma,Jma,Hma,Ima,Kma,Lma,Mma,ov,tv,uv,vv,Nma,Oma,Qma,Sma,Tma,Yma,Uma,Vma,Wma,Xma,bna,yv,zv,cna,Cv,Av,Fv,Hv,dna,Ov,Pv,Tv,Uv,Wv,Xv,Zv,ina,jna,aw,kna,lna,cw,mna,nna,dw,ew,ona,fw,pna,iw,sna,tna,gw,una,vna,xna,wna,lw,rna,zna,Ana,Bna,ow,Cna,Dna,qw,Ena,rw,Fna,Gna,vw,Hna,Ina,Jna,Kna,Aw,Lna,Mna,Nna,Ona,Pna,Qna,Rna,Sna,Dw,Tna,Ew,Wna,Vna,Una,Fw,Cw,Xna,Gw,Hw,Jw,Zna,Nw,Mw,Iw,Ow,$na,aoa,Rw,Sw,coa,doa,Tw,Uw,eoa,foa,boa,hoa,ioa,joa,koa,loa,Xw,Yw,$w,noa,ax,ooa, poa,fx,gx,soa,roa,qoa,toa,uoa,nx,ox,voa,lx,woa,ix,mx,kx,jx,xoa,yoa,wx,xx,Aoa,Boa,Eoa,Cx,Dx,Ex,Foa,Ix,Jx,Mx,Lx,Kx,Ox,Ioa,Hoa,Wx,Koa,Loa,Joa,Moa,Xx,Noa,Ooa,ay,Qoa,Roa,Zx,gy,Poa,hy,iy,Voa,Woa,Uoa,Zoa,$oa,Toa,Yoa,Xoa,Yx,ny,py,qy,bpa,ty,uy,wy,fpa,gpa,hpa,ipa,jpa,kpa,lpa,Qpa,spa,yy,Spa,ypa,zpa,Bpa,Dy,bqa,fqa,gqa,hqa,uqa,Oy,Hqa,My,Py,Qqa,Uqa,xra,Uy,Ara,Cra,Dra,Bra,Vy,Yy,Zy,Fra,Xy,$y,az,ez,hz,iz,fz,Hra,jz,kz,Ira,Jra,Kra,mz,Lra,Nra,nz,Ora,oz,pz,Kv,Vra,Xra,tz,Zra,wz,yz,zz,asa,lua,mua,Cz,wua,Dz,Aua,Bua,Cua, Dua,Ez,Eua,Mz,Fua,Iua,Lua,Jua,Wz,Vz,Mua,Uz,Xz,Yz,Pua,Rua,aA,bA,dA,cA,Tua,eA,fA,gA,hA,iA,jA,kA,Uua,lA,mA,nA,oA,Zua,ava,cva,dva,qA,fva,gva,wA,xA,hva,iva,yA,BA,jva,CA,kva,lva,mva,nva,GA,FA,HA,IA,JA,KA,DA,LA,MA,pva,NA,ova,sva,tva,uva,vva,OA,PA,QA,wva,RA,Cva,SA,TA,VA,WA,$A,ZA,lB,YA,Fva,mB,nB,oB,XA,Hva,Iva,Jva,Gva,rB,sB,uB,xB,zB,Kva,AB,Nva,EB,Rva,IB,DB,Sva,Wva,CB,Mva,Lva,KB,Xva,Yva,Zva,OB,PB,$va,QB,RB,NB,dwa,awa,bwa,ewa,SB,TB,fwa,UB,gwa,VB,WB,XB,YB,hwa,iwa,ZB,jwa,$B,kwa,aC,bC,fC,jC,lwa,kC,lC,mC,nC,oC,pC, qC,mwa,rC,tC,owa,pwa,sC,uC,swa,twa,vC,uwa,yC,vwa,zC,BC,wwa,AC,CC,xwa,EC,Awa,GC,HC,MC,Cwa,JC,NC,PC,Dwa,RC,LC,OC,Ewa,SC,Fwa,TC,Gwa,IC,KC,Bwa,QC,UC,Hwa,Iwa,VC,Jwa,Kwa,WC,Lwa,XC,Mwa,ZC,Nwa,YC,Owa,$C,aD,bD,cD,dD,Pwa,eD,Qwa,fD,Rwa,gD,hD,iD,Swa,jD,Twa,oD,nD,Uwa,Vwa,Wwa,Xwa,pD,qD,rD,sD,Ywa,Zwa,$wa,axa,uD,bxa,vD,wD,cxa,dxa,xD,exa,fxa,jxa,kxa,gxa,hxa,ixa,yD,AD,zD,BD,CD,lxa,mxa,DD,ED,FD,GD,nxa,oxa,pxa,qxa,sxa,rxa,ID,txa,uxa,vxa,wxa,JD,KD,LD,xxa,ND,MD,RD,FB,SD,TD,Pva,Ova,UD,yxa,VD,PD,WD,zxa,ZD,$D,bE,Axa,cE,dE, eE,fE,gE,hE,Bxa,iE,jE,Cxa,kE,lE,mE,nE,oE,pE,Exa,Fxa,qE,rE,sE,Gxa,Hxa,tE,uE,Uva,JB,Lxa,Mxa,Nxa,Oxa,Pxa,Qxa,BB,Rxa,vE,wE,Txa,Uxa,xE,Yxa,Vxa,Wxa,$xa,aya,zE,Zxa,bya,AE,BE,CE,cya,dya,eya,DE,fya,yE,gya,EE,Sxa,iya,GE,jya,kya,lya,IE,HE,mya,nya,oya,pya,rya,Vva,Tva,JE,LE,NE,OE,PE,QE,ME,TE,tya,VE,vya,WE,xya,wya,uya,yya,zya,Aya,Cya,XE,Qva,YE,Dya,Fya,GB,Gya,Hya,Iya,Jya,$E,Lya,Kya,aF,bF,hF,Nya,Oya,kF,nF,Pya,Rya,Qya,Sya,Tya,Uya,Vya,Wya,Xya,qF,Yya,Zya,$ya,rF,sF,tF,uF,aza,bza,vF,cza,wF,xF,dza,yF,eza,AF,fza,BF,CF, DF,EF,gza,hza,jza,FF,kza,iza,dG,uza,ZF,eG,hG,iG,QF,$F,wza,GF,rza,aG,cG,lG,pG,xza,NF,sG,MF,tG,wG,YF,xG,yG,zG,AG,BG,CG,zza,Aza,DG,Bza,Cza,Dza,Eza,EG,Fza,Kza,Jza,Gza,Iza,Hza,FG,Lza,GG,Mza,Oza,Pza,Tza,LG,MG,Wza,Yza,NG,OG,Zza,aAa,dAa,eAa,fAa,jAa,QG,kAa,lAa,VG,XG,YG,ZG,$G,nAa,aH,bH,oAa,cH,pAa,dH,eH,fH,gH,hH,iH,qAa,rAa,jH,kH,nH,uAa,vAa,xAa,oH,yAa,wH,HAa,CAa,DAa,JAa,KAa,xH,LAa,NAa,MAa,OAa,zH,CH,PAa,yH,DH,EH,QAa,UAa,RAa,TAa,OH,TH,WH,yBa,fBa,LH,XH,NH,zBa,ABa,aI,dBa,CBa,BBa,IH,MH,VH,IBa,EBa,FBa,GBa,HBa,JBa, bI,KBa,LBa,dI,eI,gI,HH,ZH,oBa,SAa,gBa,uBa,sBa,iI,$H,DBa,pI,qI,rI,sI,YBa,UH,ZBa,uI,$Ba,eBa,QBa,YH,aCa,XAa,KH,WAa,$za,yI,AI,cCa,BI,CI,DI,FI,EI,GI,dCa,eCa,HI,JI,fCa,gCa,KI,LI,MI,NI,OI,hCa,PI,iCa,QI,RI,SI,TI,UI,VI,jCa,WI,kCa,XI,ZI,nCa,YI,oCa,lCa,mCa,pCa,qCa,rCa,$I,aJ,bJ,tCa,cJ,dJ,vCa,iJ,gJ,yCa,xCa,zCa,lJ,wCa,mJ,hJ,nJ,kJ,jJ,fJ,eJ,pJ,qJ,sJ,uJ,CCa,DCa,BCa,vJ,wJ,xJ,yJ,zJ,ECa,AJ,BJ,FCa,CJ,DJ,EJ,ICa,GCa,HJ,JCa,KCa,IJ,LCa,LJ,MJ,MCa,RCa,NJ,SCa,OJ,PJ,TCa,QJ,UCa,VCa,WCa,XCa,YCa,RJ,SJ,$Ca,ZCa,bDa,aDa,TJ,UJ,VJ,eDa, fDa,gDa,WJ,hDa,XJ,jDa,YJ,$J,aK,bK,cK,fK,hK,iK,kDa,lDa,jK,mDa,nDa,kK,oDa,mK,pDa,qDa,rDa,nK,oK,vDa,wDa,xDa,pK,tDa,uDa,qK,zDa,sK,rK,uK,vK,xK,ADa,BDa,CDa,DDa,EDa,yK,AK,IDa,LDa,FDa,BK,UDa,CK,DK,WDa,VDa,YDa,ZDa,aEa,$Da,bEa,cEa,dEa,eEa,EK,FK,fEa,gEa,hEa,iEa,jEa,kEa,MK,mEa,nEa,KK,LK,lEa,qEa,rEa,NK,uEa,sEa,wEa,vEa,xEa,OK,ACa,yEa,uCa,zEa,AEa,BEa,PK,HEa,DEa,EEa,FEa,IEa,QK,LEa,JEa,MEa,NEa,KEa,GEa,OEa,lK,QEa,REa,PEa,RK,SK,SEa,TEa,UEa,TK,VK,WEa,WK,ZK,$K,XEa,YEa,ZEa,aL,aFa,bFa,cFa,dFa,eFa,fFa,gFa,fL,hFa,gL,iL,iFa, jFa,kFa,jL,lFa,nFa,oFa,mL,nL,oL,pFa,pL,qFa,rL,sFa,rFa,sL,tL,uL,vL,tFa,wL,xL,uFa,yL,zL,yFa,vFa,xFa,wFa,zFa,BL,CL,AFa,BFa,CFa,DL,DFa,FFa,EFa,EL,FL,GL,HL,IL,KL,LL,ML,NL,OL,PL,QL,HFa,GFa,RL,IFa,SL,TL,UL,VL,WL,ZL,$L,aM,bM,cM,dM,eM,fM,KFa,MFa,LFa,gM,OFa,RFa,SFa,lM,mM,UFa,oM,VFa,pM,XFa,rM,sM,tM,ZFa,vM,dGa,bGa,aGa,$Fa,fGa,wM,xM,yM,zM,AM,BM,CM,GM,iGa,kGa,lGa,IM,mGa,Jv,oGa,nGa,JM,qGa,pGa,rGa,LM,ZM,sGa,tGa,uGa,wGa,xGa,BGa,AGa,IGa,KGa,LGa,MGa,gN,hN,OGa,PGa,iN,RGa,jN,SGa,TGa,lN,mN,kN,CEa,VGa,WGa,XGa,YGa,UGa,rN, ZGa,sN,bHa,eHa,fHa,DN,EN,HN,IN,JN,KN,LN,MN,NN,gHa,ON,iHa,jHa,hHa,PN,QN,kHa,nHa,oHa,RN,pHa,SN,qHa,rHa,sHa,tHa,TN,UN,VN,uHa,WN,vHa,wHa,XN,YN,xHa,yHa,$N,aO,BHa,zHa,CHa,DHa,EHa,FHa,GHa,lO,LHa,oO,NHa,pO,KHa,OHa,PHa,nO,IHa,MHa,qO,rO,sO,wN,pN,uO,wO,SHa,QHa,RHa,xO,AO,UHa,zO,VHa,WHa,GO,HO,IO,MO,YHa,ZHa,NO,OO,$Ha,aIa,bIa,cIa,PO,eIa,dIa,fIa,QO,RO,gIa,UO,iIa,VO,SO,jIa,kIa,hIa,WO,XO,$O,lIa,mIa,ZO,bP,aP,dP,fP,nIa,iP,oIa,rIa,pIa,sIa,jP,tIa,uIa,mP,nP,oP,pP,rP,vIa,wIa,tP,yIa,xIa,zIa,AIa,BIa,CIa,zP,AP,DIa,BP,EIa,CP, HIa,EP,DP,IIa,JIa,KIa,FP,GP,LIa,MIa,NIa,OIa,HP,KP,QIa,PIa,LP,MP,NP,RIa,OP,PP,QP,RP,SIa,UP,VP,TP,VIa,SP,WP,XIa,WIa,aQ,ZP,$P,YIa,ZIa,$Ia,bQ,cQ,dQ,eQ,fQ,aJa,bJa,cJa,iQ,jQ,dJa,lQ,mQ,oQ,eJa,pQ,qQ,rQ,sQ,fJa,iJa,tQ,gJa,hJa,mJa,nJa,vQ,oJa,pJa,qJa,rJa,xQ,zQ,AQ,tJa,BQ,vJa,uJa,sJa,CQ,wJa,yJa,xJa,DQ,EQ,FQ,GQ,zJa,HQ,AJa,KQ,BJa,NQ,DJa,LQ,CJa,EJa,QQ,FJa,HJa,VQ,IJa,JJa,SQ,PQ,XQ,RQ,YQ,MJa,ZQ,UQ,OQ,LJa,WQ,GJa,KJa,NJa,IQ,aR,OJa,PJa,TQ,bR,cR,dR,eR,fR,gR,hR,iR,jR,kR,lR,RJa,oR,pR,qR,rR,sR,TJa,UJa,SJa,tR,uR,vR,wR,yR,xR, zR,AR,VJa,BR,WJa,YJa,XJa,CR,DR,ZJa,ER,FR,$Ja,GR,aKa,HR,bKa,IR,KR,NR,MR,QR,PR,cKa,OR,SR,eKa,fKa,TR,UR,VR,WR,ZR,gKa,gP,dKa,kKa,xP,hKa,aS,jKa,yP,iKa,lKa,nKa,mKa,oKa,pKa,dS,qKa,eS,rKa,gS,sKa,tKa,hS,uKa,iS,wKa,jS,vKa,lS,yKa,xKa,kS,mS,nS,zKa,AKa,BKa,CKa,DKa,qS,IKa,LKa,JKa,FKa,sS,EKa,KKa,vS,NKa,MKa,wS,PKa,RKa,SKa,QKa,BS,TKa,UKa,VKa,ZKa,KS,$Ka,LS,NS,OS,PS,aLa,CS,QS,SS,cLa,bLa,eLa,TS,fLa,US,VS,gLa,WS,IS,HS,hLa,iLa,jLa,kLa,lLa,DS,XKa,JS,ES,XS,qLa,ZS,rLa,sLa,oLa,aT,tLa,bT,mLa,dT,pLa,uLa,cT,$S,vLa,eT,wLa,YS, yLa,hT,jT,fT,iT,gT,ALa,zLa,lT,CLa,mT,nT,DLa,oT,pT,qT,rT,ELa,sT,uT,HLa,ILa,JLa,xT,wT,vT,KLa,LLa,MLa,NLa,AT,BT,CT,DT,OLa,FT,PLa,ET,GT,HT,QLa,SLa,WLa,TLa,ULa,VLa,XLa,YLa,MT,NT,ZLa,$La,bMa,cMa,OT,PT,QT,dMa,iMa,kMa,VT,WT,lMa,XT,hMa,mMa,RT,eMa,nMa,ST,TT,fMa,gMa,UT,oMa,pMa,jMa,qMa,BAa,GAa,$T,aU,tMa,rMa,sMa,bU,uMa,cU,dU,eU,fU,vMa,wMa,xMa,gU,zMa,AMa,iU,BMa,jU,kU,CMa,nU,DMa,oU,HMa,rU,mU,JMa,tU,FMa,GMa,EMa,sU,qU,pU,IMa,NMa,LMa,KMa,vU,OMa,wU,PMa,xU,yU,QMa,IT,AU,BU,CU,DU,EU,TMa,UMa,KT,LT,XMa,HU,IU,aMa,LU,GU,YMa, FU,VMa,WMa,MU,ZMa,$Ma,KU,JT,JU,aNa,bNa,cNa,dNa,eNa,fNa,NU,hNa,gNa,OU,lNa,PU,nNa,mNa,RU,QU,pNa,TU,SU,qNa,jNa,VU,oNa,kNa,UU,XU,WU,rNa,YU,ZU,tNa,uNa,sNa,wNa,vNa,zNa,xNa,yNa,BNa,ANa,CNa,DNa,ENa,cV,FNa,$U,INa,bV,JNa,dV,HNa,GNa,eV,KNa,fV,jV,LNa,MNa,kV,iV,mV,PNa,lV,QNa,RNa,SNa,VNa,UNa,TNa,nV,WNa,$Na,pV,qV,bOa,cOa,rV,sV,dOa,NNa,ONa,vV,aOa,eOa,fOa,hOa,MMa,wV,xV,gOa,lU,gV,iOa,jOa,kOa,lOa,XNa,mOa,yV,AV,BV,nOa,oOa,pOa,qOa,rOa,sOa,uOa,tOa,wOa,DV,AOa,xOa,zOa,BOa,EV,FOa,DOa,EOa,HOa,FV,IOa,GV,CV,JOa,COa,KOa,HV,LOa, yOa,MOa,IV,OOa,POa,JV,NOa,KV,LV,QOa,MV,NV,OV,SOa,VOa,UOa,TOa,QV,WOa,PV,XOa,SV,UV,YOa,aPa,ZOa,$Oa,bPa,dPa,cPa,ePa,fPa,VV,WV,hPa,XV,iPa,gPa,jPa,lPa,nPa,oPa,kPa,pPa,qPa,sPa,rPa,tPa,mPa,YV,ZV,uPa,$V,aW,bW,eW,gW,fW,zPa,hW,APa,CPa,BPa,kW,iW,xPa,EPa,DPa,FPa,mW,HPa,GPa,IPa,nW,oW,JPa,pW,MPa,qW,NPa,rW,PPa,tW,wW,xW,vW,sW,QPa,yW,OPa,zW,RPa,uW,SPa,AW,TPa,yPa,lW,VPa,WPa,XPa,YPa,ZPa,$Pa,aQa,cQa,dQa,eQa,bQa,fQa,gQa,CW,hQa,iQa,DW,EW,jQa,kQa,lQa,GW,nQa,IW,oQa,pQa,HW,FW,mQa,LW,KW,qQa,MW,JW,rQa,OW,vQa,SW,wQa,tQa,QW, xQa,TW,uQa,yQa,UW,AQa,NW,BQa,zQa,RW,CQa,PW,sQa,VW,WW,DQa,EQa,FQa,XW,zU,YNa,SMa,ZW,GQa,ZNa,RMa,HQa,YW,IQa,$W,bX,KQa,OQa,NQa,iX,kX,jX,RQa,TQa,WQa,aRa,YQa,$Qa,eRa,mX,fRa,gRa,jRa,lRa,mRa,kRa,nRa,oRa,oX,aX,pRa,qRa,JQa,nX,sRa,tRa,zRa,wRa,ARa,xRa,uRa,BRa,vRa,DRa,pX,ERa,GRa,HRa,KRa,IRa,oJ,wX,LRa,WKa,MRa,xX,TV,NRa,EX,zX,zS,uX,FX,HX,tV,uV,IX,rRa,JRa,DX,rX,QRa,RRa,TRa,SRa,CX,AX,JX,VRa,tS,WRa,RV,OKa,LX,RS,yX,XRa,YRa,MX,HKa,ZRa,aSa,PRa,qX,bSa,NX,BX,sX,cSa,OX,uS,dSa,PX,MS,eSa,fSa,gSa,GKa,KX,URa,tSa,oSa,nSa,vSa, wSa,mSa,UX,AS,zSa,xSa,XX,YX,ZX,BSa,RX,sSa,eY,CSa,dY,TX,DSa,ESa,pSa,iY,FSa,QX,aY,bY,$X,KSa,WX,gY,lY,mY,LSa,cY,ASa,kY,GSa,nY,MSa,NSa,OSa,nN,PSa,fY,oY,RSa,VX,pY,qY,ySa,SSa,TSa,rSa,jY,hY,USa,qSa,VSa,rY,sY,GLa,WSa,tY,$z,uY,vY,YSa,xY,$Sa,wY,aTa,AY,yY,bTa,BY,zY,cTa,CY,DY,EY,dTa,FY,GY,HY,IY,JY,KY,fTa,eTa,LY,MY,NY,OY,PY,QY,RY,SY,TY,UY,VY,WY,XY,YY,ZY,$Y,aZ,bZ,cZ,dZ,eZ,fZ,gZ,hZ,iZ,jZ,kZ,lZ,mZ,nZ,oZ,pZ,qZ,rZ,sZ,tZ,uZ,vZ,wZ,xZ,yZ,zZ,AZ,BZ,CZ,DZ,EZ,FZ,GZ,HZ,IZ,JZ,KZ,LZ,MZ,NZ,OZ,gTa,PZ,OCa,PCa,QCa,HCa,RZ,jTa,ZZ, $Z,KJ,a_,FJ,YZ,b_,mTa,nTa,oTa,pTa,hTa,qTa,QZ,rTa,sTa,d_,VZ,i_,e_,TZ,tTa,SZ,c_,f_,j_,WZ,XZ,h_,g_,vTa,k_,l_,wTa,m_,Y,n_,AL,o_,p_,q_,xTa,yTa,ATa,BTa,FTa,r_,GTa,CTa,HTa,s_,ITa,JTa,t_,u_,v_,LTa,OTa,MTa,RTa,ZTa,YTa,STa,$Ta,UTa,VTa,TTa,cUa,eUa,gUa,jUa,kUa,mUa,nUa,qUa,pUa,uUa,rUa,I_,vUa,yUa,xUa,DUa,AUa,zUa,FUa,GUa,HUa,IUa,L_,Qua,KUa,JUa,O_,Zz,Q_,R_,Nua,S_,MUa,T_,K_,G_,x_,A_,U_,V_,C_,B_,NUa,QTa,W_,X_,Y_,y_,z_,F_,OUa,PUa,Z_,QUa,$_,RUa,N_,E_,D_,w_,hUa,lUa,H_,wUa,aUa,WTa,a0,b0,c0,SUa,d0,e0,f0,g0,h0,i0,j0,k0, l0,zTa,UUa,TUa,KTa,iUa,VUa,EUa,WUa,XUa,oUa,fUa,PTa,NTa,ETa,DTa,bUa,XTa,BUa,sUa,tUa,J_,CUa,dUa,$Ua,YUa,m0,ZUa,n0,JJ,UZ,kTa,P_,aVa,bVa,p0,q0,r0,s0,dVa,cVa,eVa,t0,u0,o0,v0,fVa,M_,iTa,gVa,w0,hVa,x0,z0,A0,B0,C0,F0,G0,H0,I0,E0,D0,iVa,jVa,kVa,J0,nVa,mVa,K0,oVa,L0,y0,pVa,qVa,rVa,M0,N0,sVa,O0,P0,tVa,uVa,vVa,wVa,Q0,xVa,R0,S0,T0,U0,V0,W0,yVa,X0,Y0,Z0,$0,a1,b1,d1,e1,zVa,c1,AVa,BVa,f1,CVa,g1,h1,i1,j1,DVa,k1,EVa,l1,FVa,m1,GVa,n1,o1,p1,q1,IVa,r1,t1,HVa,JVa,s1,v1,w1,KVa,LVa,MVa,y1,x1,A1,z1,B1,C1,NVa,OVa,D1,E1,PVa, F1,RVa,QVa,G1,H1,LUa,SVa,I1,TVa,J1,VVa,WVa,UVa,XVa,K1,YVa,ZVa,$Va,L1,M1,N1,aWa,O1,P1,Q1,bWa,R1,S1,T1,cWa,U1,u1,V1,W1,X1,NCa,Y1,dWa,Z1,eWa,$1,a2,gWa,fWa,b2,c2,d2,hWa,iWa,jWa,e2,kWa,f2,g2,mWa,lWa,nWa,oWa,pWa,h2,i2,j2,qWa,rWa,sWa,tWa,uWa,vWa,wWa,xWa,yWa,zWa,k2,l2,AWa,BWa,m2,n2,o2,p2,CWa,DWa,EWa,FWa,GWa,HWa,IWa,JWa,KWa,LWa,MWa,NWa,OWa,q2,PWa,QWa,r2,s2,SWa,TWa,t2,UWa,u2,VWa,v2,WWa,w2,XWa,YWa,ZWa,$Wa,x2,aXa,bXa,cXa,dXa,eXa,fXa,z2,gXa,hXa,iXa,jXa,kXa,mXa,A2,lXa,nXa,oXa,pXa,qXa,uXa,rXa,sXa,tXa,xXa,zXa,AXa, BXa,yXa,B2,CXa,DXa,EXa,FXa,GXa,D2,HXa,E2,F2,G2,IXa,JXa,KXa,LXa,MXa,OXa,NXa,PXa,H2,I2,J2,QXa,RXa,K2,SXa,TXa,UXa,VXa,WXa,XXa,YXa,Oua,ZXa,$Xa,aaa,da,Di,Oa,naa;aa=function(a){return function(){return aaa[a].apply(this,arguments)}}; g.ba=function(a,b){return aaa[a]=b}; baa=function(a){var b=0;return function(){return bf)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e=h){f=1024*(f-55296)+h-56320+65536;d[c++]= f>>18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a}; vaa=function(a){for(var b=[],c=0;ce?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b}; cb=function(a,b){return 0==a.lastIndexOf(b,0)}; waa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}; g.db=function(a){return/^[\s\xa0]*$/.test(a)}; fb=function(a){if(!xaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(yaa,"&"));-1!=a.indexOf("<")&&(a=a.replace(zaa,"<"));-1!=a.indexOf(">")&&(a=a.replace(Aaa,">"));-1!=a.indexOf('"')&&(a=a.replace(Baa,"""));-1!=a.indexOf("'")&&(a=a.replace(Caa,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(Daa,"�"));return a}; g.ib=function(a,b){return-1!=a.indexOf(b)}; jb=function(a,b){return g.ib(a.toLowerCase(),b.toLowerCase())}; g.pb=function(a,b){var c=0;a=nb(String(a)).split(".");b=nb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0}; g.rb=function(){var a=g.C.navigator;return a&&(a=a.userAgent)?a:""}; vb=function(a){var b=ub;return b?b.brands.some(function(c){return(c=c.brand)&&g.ib(c,a)}):!1}; wb=function(a){return g.ib(g.rb(),a)}; xb=function(){var a=ub;return!!a&&0b?null:"string"===typeof a?a.charAt(b):a[b]}; Qb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}; Paa=function(a){for(var b=0,c=0,d={};c>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);0b?1:ac&&g.hc(a,-(c+1),0,b)}; g.sc=function(a,b,c){var d={};(0,g.rc)(a,function(e,f){d[b.call(c,e,f,a)]=e}); return d}; Taa=function(a){for(var b=[],c=0;c=a}; g.yc=function(a,b){void 0===b&&(b=0);Zaa();b=$aa[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")}; g.Ac=function(a){for(var b=[],c=0,d=0;d>=8);b[c++]=e}return g.yc(b,3)}; bba=function(a){var b=[];aba(a,function(c){b.push(c)}); return b}; Cc=function(a){!g.Bc||g.wc("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.ib("=.",a[b-1])&&(c=g.ib("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;aba(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d}; aba=function(a,b){function c(m){for(;d>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}}; Zaa=function(){if(!Dc){Dc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));$aa[c]=d;for(var e=0;e=a.I?a.j?a.j[b]:void 0:(void 0===c?0:c)&&a.j&&(c=a.j[b],null!=c)?c:a.xe[b+a.C]}; g.E=function(a,b,c,d,e){d=void 0===d?!1:d;(void 0===e?0:e)||jd(a);a.S&&(a.S=void 0);if(b>=a.I||d)return pd(a)[b]=c,a;void 0!==a.j&&a.I>=a.xe.length?(d=a.xe.length-1,e=b+a.C,e>=d?(a.xe[d]=void 0,a.xe[e]=c,a.xe.push(a.j)):a.xe[e]=c):a.xe[b+a.C]=c;void 0!==a.j&&b in a.j&&delete a.j[b];return a}; rd=function(a,b){a=g.qd(a,b);return null!=a&&"object"===typeof a&&(Array.isArray(a)||a.sD===ld)}; td=function(a,b,c,d){var e=g.qd(a,b,d);Array.isArray(e)?e&&Yc(e)&1||ad(e):e=sd;if(ed(a))c&1||(Xc(e,2),Object.freeze(e));else if(e===sd||bd(e))e=ad(Array.prototype.slice.call(e)),g.E(a,b,e,d);return e}; g.ud=function(a,b,c){return td(a,b,0,void 0===c?!1:c)}; g.rba=function(a,b){a=g.qd(a,b);return null==a?a:!!a}; vd=function(a,b){var c=g.qd(a,b);if(null==c)return null;if(c instanceof Pc)return c;(c=iba(c))&&g.E(a,b,c,void 0,!0);return c}; tba=function(a,b){var c=sba,d=td(a,b,1);if(d.length&&!(Yc(d)&4)){Object.isFrozen(d)&&(d=ad(d.slice()),g.E(a,b,d,void 0,!0));for(b=0;b "+a)}; be=function(a){if("string"===typeof a)return{buffer:Cc(a),fq:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),fq:!1};if(a.constructor===Uint8Array)return{buffer:a,fq:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),fq:!1};if(a.constructor===Pc)return{buffer:Uc(a)||Kc(),fq:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),fq:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); }; Cba=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.t(Bba(c,a)),b=c.next().value,a=c.next().value,c=b);g.ce=c>>>0;g.de=a>>>0}; g.Eba=function(a){if(16>a.length)Cba(Number(a));else if(Dba)a=BigInt(a),g.ce=Number(a&BigInt(4294967295))>>>0,g.de=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);g.de=g.ce=0;for(var c=a.length,d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),g.de*=1E6,g.ce=1E6*g.ce+d,4294967296<=g.ce&&(g.de+=g.ce/4294967296|0,g.ce%=4294967296);b&&(b=g.t(Bba(g.ce,g.de)),a=b.next().value,b=b.next().value,g.ce=a,g.de=b)}}; Bba=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]}; g.ee=function(a){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.init(a,void 0,void 0,void 0)}; g.ie=function(a){var b=0,c=0,d=0,e=a.u,f=a.j;do{var h=e[f++];b|=(h&127)<d&&h&128);32>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<h){a=b>>>0;h=c>>>0;if(c=h&2147483648)a=~a+1>>>0,h=~h>>>0,0==a&&(h=h+1>>>0);a=4294967296*h+(a>>>0);return c?-a:a}throw ae();}; fe=function(a,b){a.j=b;if(b>a.B)throw Aba(a.B,b);}; g.je=function(a){var b=a.u,c=a.j,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw ae();fe(a,c);return e}; g.ke=function(a){var b=a.u,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];a.advance(4);return(d<<0|e<<8|f<<16|b<<24)>>>0}; g.le=function(a){var b=g.ke(a),c=g.ke(a);a=2*(c>>31)+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return 2047==d?b?NaN:Infinity*a:0==d?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)}; g.qe=function(a){for(var b=0,c=a.j,d=c+10,e=a.u;cb)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.B)throw Aba(b,a.B-c);a.j=d;return c}; Hba=function(a,b){if(0==b)return Tc();var c=Fba(a,b);a.HB&&a.D?c=a.u.subarray(c,c+b):(a=a.u,b=c+b,c=c===b?Kc():Gba?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return 0==c.length?Tc():new Pc(c,Lc)}; re=function(a){if(Iba.length){var b=Iba.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new g.ee(a);this.j=a;this.B=this.j.j;this.u=this.C=-1;Jba(this)}; Jba=function(a){var b={};a.pH=void 0===b.pH?!1:b.pH}; Kba=function(a){var b=a.j;if(b.j==b.B)return!1;a.B=a.j.j;var c=g.je(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw zba(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.C=b;a.u=c;return!0}; se=function(a){switch(a.u){case 0:0!=a.u?se(a):g.qe(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.u)se(a);else{var b=g.je(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.C;do{if(!Kba(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.u){if(a.C!=b)throw Error("Unmatched end-group tag");break}se(a)}while(1);break;default:throw zba(a.u,a.B);}}; g.te=function(a,b,c){var d=a.j.B,e=g.je(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.B=f,c(b,a,void 0,void 0,void 0),h=f-a.j.j);if(h)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-h)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.B=d}; g.we=function(a){var b=g.je(a.j)>>>0;a=a.j;var c=Fba(a,b);a=a.u;if(Lba){var d=a,e;(e=ue)||(e=ue=new TextDecoder("utf-8",{fatal:!0}));a=c+b;d=0===c&&a===d.length?d:d.subarray(c,a);try{var f=e.decode(d)}catch(n){if(void 0===ve){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),ve=!0}catch(p){ve=!1}}!ve&&(ue=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;fl?c.push(l):224>l?f>=b?ab():(m=a[f++],194>l||128!==(m&192)?(f--,ab()):c.push((l&31)<<6|m& 63)):240>l?f>=b-1?ab():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((d=a[f++])&192)?(f--,ab()):c.push((l&15)<<12|(m&63)<<6|d&63)):244>=l?f>=b-2?ab():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((d=a[f++])&192)||128!==((e=a[f++])&192)?(f--,ab()):(l=(l&7)<<18|(m&63)<<12|(d&63)<<6|e&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):ab(),8192<=c.length&&(h=raa(h,c),c.length=0);f=raa(h,c)}return f}; Mba=function(a){var b=g.je(a.j)>>>0;return Hba(a.j,b)}; Nba=function(a,b){this.u=a>>>0;this.j=b>>>0}; Pba=function(a){if(!a)return Oba||(Oba=new Nba(0,0));if(!/^-?\d+$/.test(a))return null;g.Eba(a);return new Nba(g.ce,g.de)}; xe=function(){this.j=[]}; Qba=function(a,b,c){for(;0>>7|c<<25)>>>0,c>>>=7;a.j.push(b)}; ye=function(a,b){for(;127>>=7;a.j.push(b)}; Rba=function(a,b){if(0<=b)ye(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}}; g.ze=function(a,b){a.j.push(b>>>0&255);a.j.push(b>>>8&255);a.j.push(b>>>16&255);a.j.push(b>>>24&255)}; Sba=function(){this.B=[];this.u=0;this.j=new xe}; Ae=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)}; Tba=function(a,b){g.Be(a,b,2);b=a.j.end();Ae(a,b);b.push(a.u);return b}; Uba=function(a,b){var c=b.pop();for(c=a.u+a.j.length()-c;127>>=7,a.u++;b.push(c);a.u++}; Vba=function(a,b){if(b=b.D){Ae(a,a.j.end());for(var c=0;ch&&"number"!==typeof a[h]){var l=a[h++];c(b,l)}for(;hd?-2147483648:0)?-d:d,1.7976931348623157E308>>0,g.ce=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),g.de=(c|b/4294967296)>>>0,g.ce=b>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022>> 0;g.ce=4503599627370496*d>>>0}g.ze(a,g.ce);g.ze(a,g.de)}}; g.Se=function(a,b,c){b=g.qd(b,c);null!=b&&("string"===typeof b&&Pba(b),null!=b&&(g.Be(a,c,0),"number"===typeof b?(a=a.j,Cba(b),Qba(a,g.ce,g.de)):(c=Pba(b),Qba(a.j,c.u,c.j))))}; g.Te=function(a,b,c){b=g.qd(b,c);null!=b&&null!=b&&(g.Be(a,c,0),Rba(a.j,b))}; g.pca=function(a,b,c){b=g.qd(b,c);null!=b&&g.Ce(a,c,g.uaa(b))}; g.qca=function(a,b,c,d,e){b=Hd(b,d,c);null!=b&&(c=Tba(a,c),e(b,a),Uba(a,c))}; rca=function(a){var b=this.Xr,c=this.j;return this.isRepeated?Id(a,b,c,!0):Hd(a,b,c,!0)}; g.I=function(){De.apply(this,arguments)}; sca=function(a){g.I.call(this,a)}; tca=function(a){g.I.call(this,a)}; Ue=function(a){g.I.call(this,a)}; Ve=function(a){g.I.call(this,a)}; uca=function(a){this.kO=a}; We=function(a,b,c){this.u=a;this.C=b;this.j=c||[];this.uv=new Map}; Xe=function(a,b){We.call(this,a,3,b)}; Ye=function(a,b){We.call(this,a,2,b)}; g.Ze=function(a){a&&"function"==typeof a.dispose&&a.dispose()}; g.$e=function(a){for(var b=0,c=arguments.length;ba.u&&(a.u++,b.next=a.j,a.j=b)}; Yf=function(a){return function(){return a}}; g.cg=function(){}; Qca=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}; dg=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}; eg=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}}; Rca=function(a,b){var c=0;return function(d){g.C.clearTimeout(c);var e=arguments;c=g.C.setTimeout(function(){a.apply(b,e)},50)}}; gg=function(){if(void 0===fg){var a=null,b=g.C.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Xa,createScript:Xa,createScriptURL:Xa})}catch(c){g.C.console&&g.C.console.error(c.message)}fg=a}else fg=a}return fg}; hg=function(a,b){this.j=a===Sca&&b||"";this.u=Tca}; ig=function(a){return a instanceof hg&&a.constructor===hg&&a.u===Tca?a.j:"type_error:Const"}; g.jg=function(a){return new hg(Sca,a)}; kg=function(a,b){this.j=b===Uca?a:"";this.Rm=!0}; Vca=function(a){var b=gg();a=b?b.createScript(a):a;return new kg(a,Uca)}; lg=function(a,b){this.j=b===Wca?a:""}; Xca=function(a){return a instanceof lg&&a.constructor===lg?a.j:"type_error:TrustedResourceUrl"}; $ca=function(a,b){var c=ig(a);if(!Yca.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(Zca,function(d,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));d=b[e];return d instanceof hg?ig(d):encodeURIComponent(String(d))}); return g.mg(a)}; g.mg=function(a){var b=gg();a=b?b.createScriptURL(a):a;return new lg(a,Wca)}; og=function(a,b){this.j=b===ng?a:""}; g.pg=function(a){return a instanceof og&&a.constructor===og?a.j:"type_error:SafeUrl"}; g.qg=function(a){a instanceof og||(a="object"==typeof a&&a.Rm?a.ek():String(a),ada.test(a)?a=new og(a,ng):(a=String(a).replace(/(%0A|%0D)/g,""),a=a.match(bda)?new og(a,ng):null));return a||cda}; dda=function(a){if(a instanceof og)return a;a="object"==typeof a&&a.Rm?a.ek():String(a);ada.test(a)||(a="about:invalid#zClosurez");return new og(a,ng)}; sg=function(a,b){this.j=b===rg?a:"";this.Rm=!0}; tg=function(a){return a instanceof sg&&a.constructor===sg?a.j:"type_error:SafeStyle"}; fda=function(a){var b="",c;for(c in a)if(Object.prototype.hasOwnProperty.call(a,c)){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)?d.map(eda).join(" "):eda(d),b+=c+":"+d+";")}return b?new sg(b,rg):ug}; gda=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=tg(d)} var c="";Array.prototype.forEach.call(arguments,b);return c?new sg(c,rg):ug}; eda=function(a){if(a instanceof og)return'url("'+g.pg(a).replace(/a*b?a+b:a}; g.Hg=function(a,b,c){return a+c*(b-a)}; Ig=function(a,b){return 1E-6>=Math.abs(a-b)}; g.Jg=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}; Kg=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; g.Lg=function(a,b){this.width=a;this.height=b}; g.Mg=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; Rg=function(a){return a.width*a.height}; g.Sg=function(a){return encodeURIComponent(String(a))}; Tg=function(a){return decodeURIComponent(a.replace(/\+/g," "))}; g.Ug=function(a){return a=fb(a)}; g.Vg=function(a){return null==a?"":String(a)}; Wg=function(a){for(var b=0,c=0;c>>0;return b}; Xg=function(a){var b=Number(a);return 0==b&&g.db(a)?NaN:b}; wda=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}; xda=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; yda=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})}; zda=function(a){var b=1;a=a.split(":");for(var c=[];0a}; vh=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return uh(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Vb(e.className.split(/\s+/),c))},!0)}; uh=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}; Yg=function(a){this.j=a||g.C.document||document}; xh=function(a){"function"!==typeof g.C.setImmediate||g.C.Window&&g.C.Window.prototype&&!Bb()&&g.C.Window.prototype.setImmediate==g.C.setImmediate?(wh||(wh=Kda()),wh(a)):g.C.setImmediate(a)}; Kda=function(){var a=g.C.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!wb("Presto")&&(a=function(){var e=g.ih("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Qa)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()},this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}}); if("undefined"!==typeof a&&!Ab()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.hO;c.hO=null;e()}}; return function(e){d.next={hO:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.C.setTimeout(e,0)}}; Lda=function(a){g.C.setTimeout(function(){throw a;},0)}; yh=function(){this.u=this.j=null}; zh=function(){this.next=this.scope=this.fn=null}; g.Ch=function(a,b){Ah||Mda();Bh||(Ah(),Bh=!0);Nda.add(a,b)}; Mda=function(){if(g.C.Promise&&g.C.Promise.resolve){var a=g.C.Promise.resolve(void 0);Ah=function(){a.then(Oda)}}else Ah=function(){xh(Oda)}}; Oda=function(){for(var a;a=Nda.remove();){try{a.fn.call(a.scope)}catch(b){Lda(b)}Pca(Pda,a)}Bh=!1}; g.Eh=function(a){this.j=0;this.J=void 0;this.C=this.u=this.B=null;this.D=this.I=!1;if(a!=g.cg)try{var b=this;a.call(void 0,function(c){Dh(b,2,c)},function(c){Dh(b,3,c)})}catch(c){Dh(this,3,c)}}; Qda=function(){this.next=this.context=this.onRejected=this.u=this.j=null;this.B=!1}; Fh=function(a,b,c){var d=Rda.get();d.u=a;d.onRejected=b;d.context=c;return d}; Gh=function(a){if(a instanceof g.Eh)return a;var b=new g.Eh(g.cg);Dh(b,2,a);return b}; Hh=function(a){return new g.Eh(function(b,c){c(a)})}; g.Tda=function(a,b,c){Sda(a,b,c,null)||g.Ch(g.Sa(b,a))}; Uda=function(a){return new g.Eh(function(b,c){a.length||b(void 0);for(var d=0,e;d=a.C&&a.HF()}; eea=function(a,b){return a.I.has(b)?void 0:a.j.get(b)}; fea=function(a){for(var b=0;bw;w+=4)r[w/4]=q[w]<<24|q[w+1]<<16|q[w+2]<<8|q[w+3];for(w=16;80>w;w++)q=r[w-3]^r[w-8]^r[w-14]^r[w-16],r[w]=(q<<1|q>>>31)&4294967295;q=e[0];var y=e[1],z=e[2],B=e[3],D=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var G=B^y&(z^B);var H=1518500249}else G=y^z^B,H=1859775393;else 60>w?(G=y&z|B&(y|z),H=2400959708):(G=y^z^B,H=3395469782);G=((q<<5|q>>>27)&4294967295)+G+D+H+r[w]&4294967295;D=B;B=z;z=(y<<30|y>>>2)&4294967295;y=q;q=G}e[0]=e[0]+q&4294967295;e[1]=e[1]+y&4294967295;e[2]= e[2]+z&4294967295;e[3]=e[3]+B&4294967295;e[4]=e[4]+D&4294967295} function c(q,r){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var w=[],y=0,z=q.length;yn?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=r&255,r>>>=8;b(f);for(w=r=0;5>w;w++)for(var y=24;0<=y;y-=8)q[r++]=e[w]>>y&255;return q} for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,GY:function(){for(var q=d(),r="",w=0;wb&&(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.slice(0,c),d,a.slice(b)]}; Hea=function(a,b){return b?a?a+"&"+b:b:a}; ti=function(a,b){if(!b)return a;a=Gea(a);a[1]=Hea(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; ui=function(a,b,c){if(Array.isArray(b))for(var d=0;dd)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return Tg(a.slice(d,-1!==e?e:0))}; Ai=function(a,b){for(var c=a.search(Kea),d=0,e,f=[];0<=(e=Jea(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(Lea,"$1")}; Mea=function(a,b,c){return yi(Ai(a,b),b,c)}; Nea=function(a,b){a=Gea(a);var c=a[1],d=[];c&&c.split("&").forEach(function(e){var f=e.indexOf("=");b.hasOwnProperty(0<=f?e.slice(0,f):e)||d.push(e)}); a[1]=Hea(d.join("&"),g.vi(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; g.Bi=function(a){g.Vf.call(this);this.headers=new Map;this.Z=a||null;this.C=!1;this.Aa=this.j=null;this.oa="";this.u=0;this.D="";this.I=this.Ia=this.ea=this.Ba=!1;this.S=0;this.ya=null;this.Qa="";this.Ta=this.J=!1}; Pea=function(a,b,c,d,e,f,h){var l=new g.Bi;Oea.push(l);b&&l.Ra("complete",b);l.jD("ready",l.lY);f&&(l.S=Math.max(0,f));h&&(l.J=h);l.send(a,c,d,e)}; Qea=function(a){return g.Bc&&g.wc(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout}; Sea=function(a,b){a.C=!1;a.j&&(a.I=!0,a.j.abort(),a.I=!1);a.D=b;a.u=5;Rea(a);Ci(a)}; Rea=function(a){a.Ba||(a.Ba=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; Tea=function(a){if(a.C&&"undefined"!=typeof Di)if(a.Aa[1]&&4==g.Ei(a)&&2==a.getStatus())a.getStatus();else if(a.ea&&4==g.Ei(a))g.Nh(a.tR,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(Fi(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2a.Ub()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.ya}; gfa=function(a,b){a.D=new g.bi(1>b?1:b,3E5,.1);a.j.setInterval(a.D.getValue())}; ifa=function(a){hfa(a,function(b,c){b=yi(b,"format","json");b=fh().navigator.sendBeacon(b,Zd(c));a.Ba&&!b&&(a.Ba=!1);return b})}; hfa=function(a,b){if(0!==a.u.length){var c=Ai(ffa(a),"format");c=wi(c,"auth",a.bb(),"authuser",a.Z||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=a.I.We(e,a.J);if(!b(c,f))break;a.J=0;a.u=a.u.slice(e.length)}a.j.enabled&&a.j.stop()}}; jfa=function(){g.bf.call(this,"event-logged",void 0)}; dfa=function(a,b){this.B=b=void 0===b?!1:b;this.u=this.locale=null;this.j=new $ea;g.E(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));Ni(this,new Li)}; Ni=function(a,b){F(a.j,Li,1,b);g.qd(b,1)||g.E(b,1,1);a.B||(b=Pi(a),g.qd(b,5)||g.E(b,5,a.locale));a.u&&(b=Pi(a),Hd(b,Ki,9)||F(b,Ki,9,a.u))}; lfa=function(a,b){var c=void 0===c?kfa:c;b(fh(),c).then(function(d){a.u=d;d=Pi(a);F(d,Ki,9,a.u);return!0}).catch(function(){return!1})}; Pi=function(a){a=Hd(a.j,Li,1);var b=Hd(a,Ji,11);b||(b=new Ji,F(a,Ji,11,b));return b}; mfa=function(a,b,c){Pea(a.url,function(d){d=d.target;Fi(d)?b(g.Gi(d)):c(d.getStatus())},a.requestType,a.body,a.Ht,a.timeoutMillis,a.withCredentials)}; nfa=function(a){this.I=a;this.B="https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.J=mfa;this.j=""}; Qi=function(a,b,c,d,e){c=void 0===c?"":c;d=void 0===d?!1:d;e=void 0===e?"":e;a=new nfa(void 0===a?-1:a);a.j=void 0===b?"":b;""!=c&&(a.B=c);d&&(a.C=!0);e&&(a.u=e);this.j=a.We()}; ofa=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}; Ri=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c}; Si=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()}; Ti=function(a,b){this.logger=a;this.j=b;this.startMillis=Si()}; Ui=function(){}; Vi=function(a){this.ih=a;this.u=new Qi(1654,"","",!1,"5");this.j=new g.Qh(this.u);this.clientError=new iea(this.j);this.B=new hea(this.j);this.C=new gea(this.j)}; pfa=function(a){this.j=a;this.j.FB("/client_streamz/bg/fil",{Ph:3,Oh:"rk"})}; qfa=function(a){this.j=a;this.j.qp("/client_streamz/bg/fsc",{Ph:3,Oh:"rk"})}; rfa=function(a){this.j=a;this.j.FB("/client_streamz/bg/fsl",{Ph:3,Oh:"rk"})}; sfa=function(){this.I=Wi();this.C=new Qi(1828);this.j=new g.Qh(this.C);this.D=new pfa(this.j);this.u=new qfa(this.j);this.B=new rfa(this.j);this.ih=window.document.location.hostname}; Wi=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()}; tfa=function(a){g.I.call(this,a)}; ufa=function(a){g.I.call(this,a)}; Xi=function(a){g.I.call(this,a)}; g.Yi=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})}; Zi=function(a){var b=this;this.fC=!1;if(a.p4){var c;this.Rr=null!=(c=a.Rr)?c:new sfa}a.challenge instanceof Xi?(c=Td(a.challenge,4),a=Td(a.challenge,5)):(c=a.program,a=a.globalName);var d=new g.Yi;this.j=d.promise;this.K5=g.t((0,g.C[a].a)(c,function(e,f){Promise.resolve().then(function(){var h;null!=(h=b.Rr)&&h.D.gh(Wi()-h.I,h.ih);d.resolve({TX:e,g5:f})})},!0)).next().value; this.b5=d.promise.then(function(){})}; vfa=function(a){g.jg("From proto message. b/12014412");return g.mg(g.qd(a,4)||"")}; wfa=function(){}; $i=function(a){this.j=a}; zfa=function(a,b){var c=[new $i(xfa[0].toLowerCase(),yfa)];if(0===c.length)throw Error("No prefixes are provided");if(c.map(function(d){if(d instanceof $i)d=d.j;else throw Error("");return d}).every(function(d){return 0!=="attributionsrc".indexOf(d)}))throw Error('Attribute "attributionsrc" does not match any of the allowed prefixes.'); a.setAttribute("attributionsrc",b)}; Afa=function(a,b){return a.parseFromString(g.zg(b),"text/xml")}; Cfa=function(a){a:if(Bfa){try{var b=new URL(a)}catch(c){b="https:";break a}b=b.protocol}else b:{b=document.createElement("a");try{b.href=a}catch(c){b=void 0;break b}b=b.protocol;b=":"===b||""===b?"https:":b}if("javascript:"!==b)return a}; aj=function(a){this.isValid=a}; fj=function(a){return new aj(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})}; Efa=function(a,b){b=void 0===b?Dfa:b;for(var c=0;c=n.length)n=String.fromCharCode.apply(null,n);else{p="";for(var q=0;qb)throw Error("Bad port number "+b);a.B=b}else a.B=null}; Ij=function(a,b,c){b instanceof Kj?(a.u=b,$fa(a.u,a.I)):(c||(b=Lj(b,aga)),a.u=new Kj(b,a.I))}; g.Mj=function(a,b,c){a.u.set(b,c)}; g.Nj=function(a){return a instanceof g.Ej?a.clone():new g.Ej(a)}; Jj=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}; Lj=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,cga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}; cga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}; Kj=function(a,b){this.u=this.j=null;this.B=a||null;this.C=!!b}; Oj=function(a){a.j||(a.j=new Map,a.u=0,a.B&&si(a.B,function(b,c){a.add(Tg(b),c)}))}; dga=function(a,b){Oj(a);b=Pj(a,b);return a.j.has(b)}; g.ega=function(a,b,c){a.remove(b);0>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15} a=uga(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=fk(a,l),d+=fk(a,l+4),e+=fk(a,l+8),b();e+=f;switch(h){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return vga.toString(e)}; uga=function(a){for(var b=[],c=0;c=e)){D.Ma(4);break}g.pa(D,5);return g.x(D,ok(a.logger.TI("c",e,Nfa(a.nC)),function(){return Promise.reject(new ik(10,"JVZ:Timeout"))}),7); case 7:return f=D.u,h=new Ti(a.logger,"b"),g.x(D,Ifa(f),8);case 8:return l=new Zi({challenge:f}),g.x(D,ok(l.snapshot({}),function(){return Promise.reject(new ik(15,"MDA:Timeout"))}),9); case 9:return m=D.u,h.done(),g.x(D,ok(a.logger.TI("g",e,Pfa(a.nC,m)),function(){return Promise.reject(new ik(10,"BWB:Timeout"))}),10); case 10:n=D.u;p=new Ti(a.logger,"i");if(zd(n,3,0))var G=Aga(a,n,l);else l.dispose(),G=new mk(Vc(Ad(n,1)),1E3*zd(n,2,0));q=G;p.done();w=r=void 0;null==(w=(r=a).eR)||w.call(r,Vc(Ad(n,1)));return D.return(q);case 5:y=g.ua(D);b=y instanceof ik?y:y instanceof Ri?new ik(11,y):new ik(12,y);a.logger.Dz(b.code);B=z=void 0;null==(B=(z=a).onError)||B.call(z,b);a:{if(y instanceof Ri)switch(y.code){case 2:case 13:case 14:case 4:break;default:G=!1;break a}G=!0}if(!G)throw b;return g.x(D,kk(d.getValue()),11);case 11:g.ci(d); case 3:e++;D.Ma(2);break;case 4:throw b;}})}; zga=function(a){var b,c,d,e;g.A(function(f){switch(f.j){case 1:return b=void 0,g.pa(f,4),g.x(f,Bga(a),6);case 6:b=f.u;g.ra(f,5);break;case 4:if(c=g.ua(f),d=c instanceof Error?c:Error(String(c)),a.j){a.logger.Dz(13);f.Ma(0);break}else a.logger.Dz(14),b=new nk(d);case 5:return e=void 0,null==(e=a.j)||e.dispose(),a.j=b,a.u.resolve(),g.x(f,a.j.B.promise,1)}})}; Cga=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.B=!b&&/[?&]ae=1(&|$)/.test(a);this.C=!b&&/[?&]ae=2(&|$)/.test(a);if((this.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.u=c}}; Dga=function(a,b,c,d){var e=window,f=c?"//pagead2.googlesyndication.com/bg/"+g.Ug(c)+".js":"";c=e.document;var h={};b&&(h._scs_=b);h._bgu_=f;h._bgp_=d;h._li_="v_h.3.0.0.0";(b=e.GoogleTyFxhY)&&"function"==typeof b.push||(b=e.GoogleTyFxhY=[]);b.push(h);e=$g(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=$ca(g.jg("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.Ug(a)+".js"});g.gj(e,a);c.getElementsByTagName("head")[0].appendChild(e)}; Ega=function(a){var b={};g.rc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c}); Oaa(a,function(c){return null===b[c.event]})}; pk=function(){this.Jd=0;this.j=!1;this.u=-1;this.Js=!1;this.Xi=0}; qk=function(){this.td=null;this.j=!1}; rk=function(a){qk.call(this);this.u=a}; sk=function(){qk.call(this)}; tk=function(){qk.call(this)}; uk=function(){this.j={};this.u=!0;this.B={}}; vk=function(a,b,c){a.j[b]||(a.j[b]=new rk(c));return a.j[b]}; Fga=function(a){a.j.queryid||(a.j.queryid=new tk)}; Gga=function(a,b){a.j[b]||(a.j[b]=new sk);return a.j[b]}; wk=function(a,b,c){(a=a.j[b])&&a.setValue(c)}; xk=function(a,b){if(g.tf(a.B,b))return a.B[b];if(a=a.j[b])return a.getValue()}; yk=function(a){var b={},c=g.nf(a.j,function(d){return d.j}); g.mf(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.j&&null!==d.td?String(d.td):"";0e?encodeURIComponent(Zga(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))}; $ga=function(a){var b=1,c;for(c in a.u)b=c.length>b?c.length:b;return 3997-b-a.B.length-1}; Ok=function(a,b){this.j=a;this.depth=b}; bha=function(){function a(l,m){return null==l?m:l} var b=Kk(),c=Math.max(b.length-1,0),d=Yga(b);b=d.j;var e=d.u,f=d.B,h=[];f&&h.push(new Ok([f.url,f.CI?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Ok([e.url,2],0));b.url&&b!=f&&h.push(new Ok([b.url,0],a(b.depth,c)));d=g.Pk(h,function(l,m){return h.slice(0,h.length-m)}); !b.url||(f||e)&&b!=f||(e=Qga(b.url))&&d.push([new Ok([e,1],a(b.depth,c))]);d.push([]);return g.Pk(d,function(l){return aha(c,l)})}; aha=function(a,b){g.Wd(b,function(e){return 0<=e.depth}); var c=Qk(b,function(e,f){return Math.max(e,f.depth)},-1),d=Taa(c+2); d[0]=a;g.rc(b,function(e){return d[e.depth+1]=e.j}); return d}; cha=function(){var a=void 0===a?bha():a;return a.map(function(b){return Nk(b)})}; dha=function(a){Dk.google_image_requests||(Dk.google_image_requests=[]);var b=Rga("IMG",Dk.document);b.src=a;Dk.google_image_requests.push(b)}; Rk=function(a){var b="Uf";if(a.Uf&&a.hasOwnProperty(b))return a.Uf;var c=new a;a.Uf=c;a.hasOwnProperty(b);return c}; Sk=function(){this.u=new Mga;this.j=Bk()?new Ck:new Ak}; eha=function(){Tk();var a=Dk.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Dk.setInterval&&"function"===typeof Dk.clearInterval&&"function"===typeof Dk.setTimeout&&"function"===typeof Dk.clearTimeout)}; fha=function(){Tk();return cha()}; gha=function(){}; Tk=function(){return Rk(gha).getContext()}; Uk=function(a){g.I.call(this,a)}; hha=function(a){this.B=a;this.j=-1;this.u=this.C=0}; Vk=function(a,b){return function(){var c=g.za.apply(0,arguments);if(-1Math.random())}; tha=function(a){a&&cl&&al()&&(cl.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),cl.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; uha=function(){var a=dl;this.j=el;this.NO="jserror";this.RK=!0;this.yG=null;this.u=this.UI;this.wc=void 0===a?null:a}; vha=function(a,b,c){var d=fl;return Vk(Xk().j.j,function(){try{if(d.wc&&d.wc.j){var e=d.wc.start(a.toString(),3);var f=b();d.wc.end(e)}else f=b()}catch(l){var h=d.RK;try{tha(e),h=d.u(a,new gl(hl(l)),void 0,c)}catch(m){d.UI(217,m)}if(!h)throw l;}return f})()}; il=function(a,b,c,d){return Vk(Xk().j.j,function(){var e=g.za.apply(0,arguments);return vha(a,function(){return b.apply(c,e)},d)})}; hl=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}; gl=function(a){pha.call(this,Error(a),{message:a})}; wha=function(){Dk&&"undefined"!=typeof Dk.google_measure_js_timing&&(Dk.google_measure_js_timing||dl.disable())}; xha=function(a){fl.yG=function(b){g.rc(a,function(c){c(b)})}}; yha=function(a,b){return vha(a,b)}; jl=function(a,b){return il(a,b)}; kl=function(a,b,c,d){fl.UI(a,b,c,d)}; ll=function(){return Date.now()-zha}; Aha=function(){var a=Xk().B,b=0<=nl?ll()-nl:-1,c=ol?ll()-pl:-1,d=0<=ql?ll()-ql:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];kl(637,Error(),.001);var f=b;-1!=c&&cd?500:h}; rl=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}; sl=function(a){return a.right-a.left}; tl=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1}; ul=function(a,b,c){b instanceof g.Jg?(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}; vl=function(a,b,c){var d=new rl(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.j=d;this.u=c}; wl=function(a,b,c,d,e,f,h,l){this.C=a;this.S=b;this.B=c;this.I=d;this.j=e;this.D=f;this.u=h;this.J=l}; Cha=function(a){var b=a!==a.top,c=a.top===Uga(a),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),Cca(Bha,function(h){return"function"===typeof f[h]})||(e=1)); return{xl:f,compatibility:e,k5:d}}; Dha=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint}; Eha=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Lg(b.innerWidth,b.innerHeight)).round():Dda(b||window).round()}catch(d){return new g.Lg(-12245933,-12245933)}}; xl=function(a,b,c){try{a&&(b=b.top);var d=Eha(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new rl(f,f,f,f);var h=Fda($g(b.document).j),l=h.x,m=h.y;return new rl(m,l+f,m+e,l)}catch(n){return new rl(-12245933,-12245933,-12245933,-12245933)}}; g.yl=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}; zl=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.Bl=function(a,b,c){if("string"===typeof b)(b=Al(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Al(c,d);f&&(c.style[f]=e)}}; Al=function(a,b){var c=Fha[b];if(!c){var d=wda(b);c=d;void 0===a.style[d]&&(d=(g.hf?"Webkit":Cl?"Moz":g.Bc?"ms":null)+yda(d),void 0!==a.style[d]&&(c=d));Fha[b]=c}return c}; g.Dl=function(a,b){var c=a.style[wda(b)];return"undefined"!==typeof c?c:a.style[Al(a,b)]||""}; El=function(a,b){var c=Zg(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}; Fl=function(a,b){return El(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}; g.Hl=function(a,b,c){if(b instanceof g.Jg){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Gl(d,!1);a.style.top=g.Gl(b,!1)}; Il=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}}; Gha=function(a){if(g.Bc&&!g.xc(8))return a.offsetParent;var b=Zg(a),c=Fl(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=Fl(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.Jl=function(a){var b=Zg(a),c=new g.Jg(0,0);var d=b?Zg(b):document;d=!g.Bc||g.xc(9)||"CSS1Compat"==$g(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=Il(a);b=Fda($g(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c}; Iha=function(a,b){var c=new g.Jg(0,0),d=fh(Zg(a));if(!uc(d,"parent"))return c;do{var e=d==b?g.Jl(a):Hha(a);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c}; g.Kl=function(a,b){a=Jha(a);b=Jha(b);return new g.Jg(a.x-b.x,a.y-b.y)}; Hha=function(a){a=Il(a);return new g.Jg(a.left,a.top)}; Jha=function(a){if(1==a.nodeType)return Hha(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Jg(a.clientX,a.clientY)}; g.Ll=function(a,b,c){if(b instanceof g.Lg)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Gl(b,!0);a.style.height=g.Gl(c,!0)}; g.Gl=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}; g.Ml=function(a){var b=Kha;if("none"!=Fl(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}; Kha=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.hf&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Il(a),new g.Lg(a.right-a.left,a.bottom-a.top)):new g.Lg(b,c)}; g.Nl=function(a,b){a.style.display=b?"":"none"}; Ol=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b}; Lha=function(a){return new rl(a.top,a.right,a.bottom,a.left)}; Mha=function(a){var b=a.top||0,c=a.left||0;return new rl(b,c+(a.width||0),b+(a.height||0),c)}; Pl=function(a){return null!=a&&0<=a&&1>=a}; Nha=function(){var a=g.rb();return a?Ql("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return jb(a,b)})||jb(a,"OMI/")&&!jb(a,"XiaoMi/")?!0:jb(a,"Presto")&&jb(a,"Linux")&&!jb(a,"X11")&&!jb(a,"Android")&&!jb(a,"Mobi"):!1}; Oha=function(){this.B=!Ik(Dk.top);this.isMobileDevice=Hk()||Nga();var a=Kk();this.domain=0c.height?m>p?(d=m,e=n):(d=p,e=q):mb.u?!1:a.jb.j?!1:typeof a.tdtypeof b.td?!1:a.tdc++;){if(a===b)return!0;try{if(a=g.qh(a)||a){var d=Zg(a),e=d&&fh(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1}; kia=function(a,b,c){if(!a||!b)return!1;b=ul(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Ik(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Dha())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Zg(c))&&b.defaultView&&b.defaultView.frameElement)&&jia(b,a);var d=a===c;a=!d&&a&&uh(a,function(e){return e===c}); return!(b||d||a)}; lia=function(a,b,c,d){return Rl().B?!1:0>=sl(a)||0>=a.getHeight()?!0:c&&d?yha(208,function(){return kia(a,b,c)}):!1}; pm=function(a,b,c){g.K.call(this);this.position=mia.clone();this.rD=this.GC();this.SI=-2;this.Q5=Date.now();this.ZS=-1;this.lastUpdateTime=b;this.iD=null;this.Cy=!1;this.AD=null;this.opacity=-1;this.requestSource=c;this.f6=!1;this.XI=function(){}; this.oT=function(){}; this.Di=new Kga;this.Di.mq=a;this.Di.j=a;this.eq=!1;this.Vr={hJ:null,fJ:null};this.GS=!0;this.FA=null;this.cw=this.t_=!1;Xk().I++;this.Gg=this.TH();this.WS=-1;this.Ie=null;this.hasCompleted=this.q_=!1;this.featureSet=new uk;Jga(this.featureSet);nia(this);1==this.requestSource?wk(this.featureSet,"od",1):wk(this.featureSet,"od",0)}; nia=function(a){a=a.Di.mq;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:oia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+xda()):!!a.getAttribute("data-"+xda());b&&(Rl().u=!0)}; qm=function(a,b){b!=a.cw&&(a.cw=b,a=Rl(),b?a.I++:0c?0:a}; ria=function(a,b,c){if(a.Ie){a.Ie.wp();var d=a.Ie.J,e=d.C,f=e.j;if(null!=d.I){var h=d.B;a.AD=new g.Jg(h.left-f.left,h.top-f.top)}f=a.AE()?Math.max(d.j,d.D):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.iP(d);a.iD=d;a.Ja(f,b,c,!1,h,e,d.J)}}; sia=function(a){if(a.Cy&&a.FA){var b=1==xk(a.featureSet,"od"),c=Rl().j,d=a.FA,e=a.Ie?a.Ie.getName():"ns",f=new g.Lg(sl(c),c.getHeight());c=a.AE();a={w5:e,AD:a.AD,I6:f,AE:c,Jd:a.Gg.Jd,x6:b};if(b=d.u){b.wp();e=b.J;f=e.C.j;var h=null,l=null;null!=e.I&&f&&(h=e.B,h=new g.Jg(h.left-f.left,h.top-f.top),l=new g.Lg(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={w5:b.getName(),AD:h,I6:l,AE:c,x6:!1,Jd:e}}else c=null;c&&dia(d,a,c)}}; tia=function(a,b,c){b&&(a.XI=b);c&&(a.oT=c)}; g.rm=function(){}; g.sm=function(a){return{value:a,done:!1}}; uia=function(){this.C=this.j=this.B=this.u=this.D=0}; via=function(a){var b={};var c=g.Va()-a.D;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.B)&&(b.pnc=c);(c=a.C)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b}; wia=function(){pk.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; tm=function(a){return Pl(a.volume)&&0Math.max(1E4,a.B/3)?0:b);var c=a.J(a)||{};c=void 0!==c.currentTime?c.currentTime:a.ea;var d=c-a.ea,e=0;0<=d?(a.oa+=b,a.Ia+=Math.max(b-d,0),e=Math.min(d,a.oa)):a.Qa+=Math.abs(d);0!=d&&(a.oa=0);-1==a.Ta&&0=a.B/2:0=a.Ba:!1:!1}; Iia=function(a){var b=Ol(a.Gg.Jd,2),c=a.yg.B,d=a.Gg,e=Nm(a),f=Mm(e.C),h=Mm(e.I),l=Mm(d.volume),m=Ol(e.J,2),n=Ol(e.oa,2),p=Ol(d.Jd,2),q=Ol(e.ya,2),r=Ol(e.Ba,2);d=Ol(d.Xi,2);a=a.Sp().clone();a.round();e=lm(e,!1);return{H6:b,oz:c,tD:f,oD:h,Yx:l,uD:m,pD:n,Jd:p,vD:q,qD:r,Xi:d,position:a,yD:e}}; Kia=function(a,b){Jia(a.j,b,function(){return{H6:0,oz:void 0,tD:-1,oD:-1,Yx:-1,uD:-1,pD:-1,Jd:-1,vD:-1,qD:-1,Xi:-1,position:void 0,yD:[]}}); a.j[b]=Iia(a)}; Jia=function(a,b,c){for(var d=a.length;dc.time?b:c},a[0])}; an=function(a){a=void 0===a?Dk:a;Zl.call(this,new Vl(a,2))}; bn=function(){var a=ija();Vl.call(this,Dk.top,a,"geo")}; ija=function(){Xk();var a=Rl();return a.B||a.u?0:2}; jja=function(){}; cn=function(){this.done=!1;this.j={AX:0,NN:0,t6a:0,IO:0,sI:-1,wY:0,vY:0,xY:0,t5:0};this.D=null;this.I=!1;this.B=null;this.J=0;this.u=new Ul(this)}; en=function(){var a=dn;a.I||(a.I=!0,kja(a,function(){return a.C.apply(a,g.u(g.za.apply(0,arguments)))}),a.C())}; lja=function(){Rk(jja);var a=Rk(Wm);null!=a.j&&a.j.j?Rha(a.j.j):Rl().update(Dk)}; fn=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{lja();var d=ll();Xk().D=d;if(null!=Rk(Wm).j)for(var e=0;eg.sf(wja).length?null:Qk(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===xja[d[0]]||!xja[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}}; zja=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?im(b.j,a.j):im(b.u,a.j);case "tos":return a.u?hm(b.j,a.j):hm(b.u,a.j)}return 0}; mn=function(a,b,c,d){Fm.call(this,b,d);this.J=a;this.S=c}; Aja=function(){}; nn=function(){}; on=function(){}; pn=function(a){Fm.call(this,"fully_viewable_audible_half_duration_impression",a)}; qn=function(a){this.j=a}; rn=function(a,b){Fm.call(this,a,b)}; sn=function(a){Gm.call(this,"measurable_impression",a)}; tn=function(){qn.apply(this,arguments)}; un=function(a,b,c){Im.call(this,a,b,c)}; vn=function(a){a=void 0===a?Dk:a;Zl.call(this,new Vl(a,2))}; wn=function(a,b,c){Im.call(this,a,b,c)}; xn=function(a){a=void 0===a?Dk:a;Zl.call(this,new Vl(a,2))}; yn=function(){Vl.call(this,Dk,2,"mraid");this.Ia=0;this.oa=this.ya=!1;this.J=null;this.u=Cha(this.B);this.C.j=new rl(0,0,0,0);this.La=!1}; zn=function(a,b,c){a.Lq("addEventListener",b,c)}; Eja=function(a){Xk().C=!!a.Lq("isViewable");zn(a,"viewableChange",Bja);"loading"===a.Lq("getState")?zn(a,"ready",Cja):Dja(a)}; Dja=function(a){"string"===typeof a.u.xl.AFMA_LIDAR?(a.ya=!0,Fja(a)):(a.u.compatibility=3,a.J="nc",a.fail("w"))}; Fja=function(a){a.oa=!1;var b=1==xk(Xk().featureSet,"rmmt"),c=!!a.Lq("isViewable");(b?!c:1)&&Tk().setTimeout(jl(524,function(){a.oa||(Gja(a),kl(540,Error()),a.J="mt",a.fail("w"))}),500); Hja(a);zn(a,a.u.xl.AFMA_LIDAR,Ija)}; Hja=function(a){var b=1==xk(Xk().featureSet,"sneio"),c=void 0!==a.u.xl.AFMA_LIDAR_EXP_1,d=void 0!==a.u.xl.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.xl.AFMA_LIDAR_EXP_2=!0);c&&(a.u.xl.AFMA_LIDAR_EXP_1=!b)}; Gja=function(a){a.Lq("removeEventListener",a.u.xl.AFMA_LIDAR,Ija);a.ya=!1}; Jja=function(a,b){if("loading"===a.Lq("getState"))return new g.Lg(-1,-1);b=a.Lq(b);if(!b)return new g.Lg(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Lg(-1,-1):new g.Lg(a,b)}; Cja=function(){try{var a=Rk(yn);a.Lq("removeEventListener","ready",Cja);Dja(a)}catch(b){kl(541,b)}}; Ija=function(a,b){try{var c=Rk(yn);c.oa=!0;var d=a?new rl(a.y,a.x+a.width,a.y+a.height,a.x):new rl(0,0,0,0);var e=ll(),f=Tl();var h=new vl(e,f,c);h.j=d;h.volume=b;c.Wp(h)}catch(l){kl(542,l)}}; Bja=function(a){var b=Xk(),c=Rk(yn);a&&!b.C&&(b.C=!0,c.La=!0,c.J&&c.fail("w",!0))}; An=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.J=(a.start=this.XZ,a.firstquartile=this.SZ,a.midpoint=this.UZ,a.thirdquartile=this.YZ,a.complete=this.PZ,a.error=this.QZ,a.pause=this.VJ,a.resume=this.nS,a.skip=this.WZ,a.viewable_impression=this.Im,a.mute=this.jx,a.unmute=this.jx,a.fullscreen=this.TZ,a.exitfullscreen=this.RZ,a.fully_viewable_audible_half_duration_impression=this.Im,a.measurable_impression=this.Im,a.abandon=this.VJ,a.engagedview=this.Im,a.impression=this.Im,a.creativeview= this.Im,a.progress=this.jx,a.custom_metric_viewable=this.Im,a.bufferstart=this.VJ,a.bufferfinish=this.nS,a.audio_measurable=this.Im,a.audio_audible=this.Im,a);a={};this.S=(a.overlay_resize=this.VZ,a.abandon=this.lI,a.close=this.lI,a.collapse=this.lI,a.overlay_unmeasurable_impression=function(b){return Qm(b,"overlay_unmeasurable_impression",Tl())},a.overlay_viewable_immediate_impression=function(b){return Qm(b,"overlay_viewable_immediate_impression",Tl())},a.overlay_unviewable_impression=function(b){return Qm(b, "overlay_unviewable_impression",Tl())},a.overlay_viewable_end_of_session_impression=function(b){return Qm(b,"overlay_viewable_end_of_session_impression",Tl())},a); Xk().u=3;Kja(this);this.B=!1}; Bn=function(a,b,c,d){b=a.oA(null,d,!0,b);b.C=c;bja([b],a.B);return b}; Lja=function(a,b,c){Ega(b);var d=a.j;g.rc(b,function(e){var f=g.Pk(e.criteria,function(h){var l=yja(h);if(null==l)h=null;else if(h=new vja,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=waa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h}); Ql(f,function(h){return null==h})||Gia(c,new mn(e.id,e.event,f,d))})}; Mja=function(){var a=[],b=Xk();a.push(Rk(bn));xk(b.featureSet,"mvp_lv")&&a.push(Rk(yn));b=[new vn,new xn];b.push(new Xm(a));b.push(new an(Dk));return b}; Nja=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=ll(),c=Xk(),d=Rl();nl=b;c.B=79463069;"o"!==a.u&&(qja=Uga(Dk));if(eha()){dn.j.NN=0;dn.j.sI=ll()-b;var e=Mja(),f=Rk(Wm);f.u=e;dja(f,function(){Cn()})?dn.done||(mja(),Wl(f.j.j,a),en()):d.B?Cn():en()}else Dn=!0}catch(h){throw Um.reset(),h; }}}; Fn=function(a){dn.u.cancel();En=a;dn.done=!0}; Gn=function(a){if(a.u)return a.u;var b=Rk(Wm).j;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u}; Hn=function(a,b,c){if(null==a.j)return b.ox|=4,!1;a=Oja(a.j,c,b);b.ox|=a;return 0==a}; Cn=function(){var a=[new an(Dk)],b=Rk(Wm);b.u=a;dja(b,function(){Fn("i")})?dn.done||(mja(),en()):Fn("i")}; Pja=function(a,b){if(!a.zb){var c=Qm(a,"start",Tl());c=a.WJ.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="934";null!==hn&&(d.v=hn);si(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)}); b=rja();si(b,function(e,f){return d[e]=encodeURIComponent(f)}); b="//pagead2.googlesyndication.com/pagead/gen_204?"+bm(am(new $l,d));bia(b);a.zb=!0}}; In=function(a,b,c){fn(dn,[a],!Tl());Kia(a,c);4!=c&&Jia(a.ya,c,a.GC);return Qm(a,b,Tl())}; Kja=function(a){pja(function(){var b=Qja();null!=a.u&&(b.sdk=a.u);var c=Rk(Wm);null!=c.j&&(b.avms=c.j.getName());return b})}; Rja=function(a,b,c,d){if(a.B)var e=Tm(Um,b);else e=Yia(Um,c),null!==e&&e.fh!==b&&(a.yy(e),e=null);e||(b=a.oA(c,ll(),!1,b),0==Um.u.length&&(Xk().B=79463069),cja([b]),e=b,e.C=Gn(a),d&&(e.Xa=d));return e}; Sja=function(a){g.rc(Um.j,function(b){3==b.Ah&&a.yy(b)})}; Tja=function(a,b){var c=a[b];void 0!==c&&0document.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)}; Cka=function(a){if(!a)return ug;var b=document.createElement("div").style;yka(a).forEach(function(c){var d=g.hf&&c in zka?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");cb(d,"--")||cb(d,"var")||(c=xka(Aka,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=vka(c),null!=c&&xka(Bka,b,b.setProperty?"setProperty":"setAttribute",[d,c]))}); return rda(g.jg("Output of CSS sanitizer"),b.cssText||"")}; yka=function(a){g.Ma(a)?a=g.cc(a):(a=g.sf(a),g.$b(a,"cssText"));return a}; g.wo=function(a){var b,c=b=0,d=!1;a=a.split(Dka);for(var e=0;eg.Va()}; g.Go=function(a){this.j=a}; Nka=function(){}; Ho=function(){}; Io=function(a){this.j=a}; Jo=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a}; Oka=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a}; Lo=function(a,b){this.u=a;this.j=null;if(g.Bc&&!g.xc(9)){Ko||(Ko=new g.po);this.j=Ko.get(a);this.j||(b?this.j=document.getElementById(b):(this.j=document.createElement("userdata"),this.j.addBehavior("#default#userData"),document.body.appendChild(this.j)),Ko.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}}; Mo=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Pka[b]})}; No=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}}; Oo=function(a,b){this.u=a;this.j=b+"::"}; g.Po=function(a){var b=new Jo;return b.isAvailable()?a?new Oo(b,a):b:null}; Qo=function(a,b){this.j=a;this.td=b}; Ro=function(a){this.j=[];if(a)a:{if(a instanceof Ro){var b=a.Yn();a=a.fk();if(0>=this.j.length){for(var c=this.j,d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c}; So=function(){Ro.apply(this,arguments)}; To=function(){}; Rka=function(){var a=g.za.apply(0,arguments);return 0===a.length?function(b){return b}:1===a.length?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,g.u(g.za.apply(0,arguments))))}})}; Ska=function(){var a=g.za.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");} c=b(c,d);var f={getState:c.getState,dispatch:function(h){return e.apply(null,[h].concat(g.u(g.za.apply(1,arguments))))}}; d=a.map(function(h){return h(f)}); e=Rka.apply(null,g.u(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}}; Uo=function(){return Math.random().toString(36).substring(7).split("").join(".")}; Tka=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:Vo}))throw Error('Reducer "'+b+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Uo()}))throw Error('Reducer "'+ b+"\" returned undefined when probed with a random type. Don't try to handle "+(Vo+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})}; Uka=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m} function f(w){if("function"!==typeof w)throw Error("Expected the listener to be a function.");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var y=!0;p===n&&(p=n.slice());p.push(w);return function(){if(y){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details."); y=!1;p===n&&(p=n.slice());p.splice(p.indexOf(w),1);n=null}}} function h(w){if("object"!==typeof w||null===w)var y=!1;else{for(y=w;null!==Object.getPrototypeOf(y);)y=Object.getPrototypeOf(y);y=Object.getPrototypeOf(w)===y}if(!y)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof w.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,w)}finally{q=!1}y=n=p;for(var z=0;z=c[78]?(0,c[38])(c[5],c[84]):(0,c[103])(c[28],c[112]),0=c[0]?(0,c[67])((0,c[38])(c[42],c[13]),c[107],(0,c[new Date("1969-12-31T17:01:47.000-07:00")/1E3])((0,c[38])(c[5],c[47]),c[81],c[32],c[5],(0,c[92])()),c[103],c[12],c[75]):((((0,c[103])(c[90],c[72]),c[103])(c[42],c[91]),c[48])(c[42]),c[103])(c[5],c[51])}catch(d){(0,c[56])(c[42]), (0,c[81])(c[68],c[42],(0,c[66])()),(0,c[38])(c[90],c[57]),(0,c[99])(c[42])}try{9>=c[Math.pow(5,3)-36+-11]&&(7>=c[19]?(0,c[53])((0,c[107])((0,c[74])(c[9],c[28]),c[45],c[17]),c[70],(0,c[50])(c[0],c[34]),c[111],c[37]):(0,c[72])((0,c[23])(c[39],c[49]),c[32],(0,c[new Date("31 December 1969 16:00:32 PST")/1E3])((0,c[23])(c[79],c[13]),c[83],c[111]),c[101],c[13],c[62])),(9>=c[31]||((0,c[21-Math.pow(5,4)+676])((0,c[65])(c[25],c[-839+148*Math.pow(6,1)]),c[32],(0,c[58])(c[70],c[97],(0,c[106])()),c[36],c[111], c[44]),0))&&(0,c[32])((0,c[32])((0,c[23])(c[112],c[111]),c[65],c[60],c[111]),c[7],c[95],c[31]),(7>=c[81]||((0,c[Math.pow(8,1)%(new Date("Wednesday 31 December 1969 17:08:29 MST")/1E3)- -99])((0,c[36])(c[95],c[92]),c[18],c[14],c[95],(0,c[66])()),0))&&(0,c[Math.pow(4,1)+213+-110])((0,c[61])(c[57],c[19]),c[111],c[57],c[6]),3=c[76]&&(0>=c[99]&&((0,c[31-Math.pow(1,3)+25])(c[79],c[60])*(0,c[40])(c[17],c[2],(0,c[24])()), -5)||(0,c[14])((0,c[47])(c[6],c[31]),c[73],c[60],c[112],(0,c[6])())),(6=c[46]||((0,c[87])((0,c[73])(c[78],c[35],(0,c[62])()),c[47],(0,c[1])(c[35],c[89]),c[1],c[112],c[45]),0))&&(0,c[47])((0,c[47])((0,c[1])(c[new Date("Wednesday 31 December 1969 20:03:25 EDT")/1E3%37+Math.pow(8,2)- -28],c[13]),c[98],c[64]),c[63],c[86],c[80]),4>=c[81]&&(9=c[81]&&(7>=c[71]&&(((0,c[113])(c[86],c[6]),c[113])(c[79], c[89]),1)||(0,c[67])((0,c[113])(c[49+Math.pow(1,4)%127],c[109]),c[41],c[0],c[2],(0,c[52])())),9>=c[97]&&(1=c[73]?(0,c[29])((0,c[78])(c[45],c[88]),c[69],(0,c[28])(c[97],c[63]),c[0],c[97],c[80]):(0,c[69])((0,c[69])((0,c[25])(c[105]),c[36],c[111],c[33]),c[20], c[87],c[9]))}catch(d){(0,c[49])(c[17],c[35]),(0,c[86])(c[26],c[56]),(0,c[114])(c[33],c[42]),(0,c[114])(c[17],c[66]),(0,c[45])((0,c[114])(c[62],c[16]),c[86],c[110],c[65]),(0,c[new Date("Wednesday December 31 1969 19:00:45 CDT")/1E3])((0,c[Math.pow(1,4)+43152-43082])(c[25-Math.pow(6,1)- -27],c[33],(0,c[60])()),c[104],c[17]),(0,c[45])((0,c[86])(c[17],c[7]),c[104],c[9]),(0,c[71])(c[24],c[110],(0,c[55])())}}catch(d){return"enhanced_except_pJYB2-n-_w8_"+a}return b.join("")}; g.Yo=function(a){this.name=a}; Zo=function(a){g.I.call(this,a)}; $o=function(a){g.I.call(this,a)}; ap=function(a){g.I.call(this,a)}; bp=function(a){g.I.call(this,a)}; cp=function(a){g.I.call(this,a,-1,Zka)}; dp=function(a){g.I.call(this,a,-1,$ka)}; ep=function(a){g.I.call(this,a)}; fp=function(a){g.I.call(this,a)}; gp=function(a){g.I.call(this,a)}; hp=function(a){g.I.call(this,a)}; ip=function(a){g.I.call(this,a)}; jp=function(a){g.I.call(this,a)}; kp=function(a){g.I.call(this,a)}; lp=function(a){g.I.call(this,a)}; mp=function(a){g.I.call(this,a,-1,ala)}; np=function(a){g.I.call(this,a,-1,bla)}; op=function(a){g.I.call(this,a)}; pp=function(a){g.I.call(this,a)}; qp=function(a){g.I.call(this,a)}; tp=function(a){g.I.call(this,a)}; up=function(a){g.I.call(this,a)}; vp=function(a){g.I.call(this,a)}; wp=function(a){g.I.call(this,a,-1,dla)}; xp=function(a){g.I.call(this,a)}; yp=function(a){g.I.call(this,a)}; zp=function(a){g.I.call(this,a)}; Ap=function(a){g.I.call(this,a)}; Bp=function(a){g.I.call(this,a)}; Cp=function(a){g.I.call(this,a)}; Dp=function(a){g.I.call(this,a)}; Ep=function(a){g.I.call(this,a)}; Fp=function(a){g.I.call(this,a)}; Gp=function(a){g.I.call(this,a)}; Hp=function(a){g.I.call(this,a)}; Ip=function(a){g.I.call(this,a)}; Jp=function(a){g.I.call(this,a)}; Kp=function(a){g.I.call(this,a,-1,ela)}; Lp=function(a){g.I.call(this,a)}; Mp=function(a){g.I.call(this,a)}; Np=function(a){g.I.call(this,a)}; Op=function(a){g.I.call(this,a)}; Pp=function(a){g.I.call(this,a,-1,fla)}; Qp=function(a){g.I.call(this,a)}; Rp=function(a){g.I.call(this,a)}; Sp=function(a){g.I.call(this,a)}; Tp=function(a){g.I.call(this,a)}; Up=function(a){g.I.call(this,a)}; Vp=function(a){g.I.call(this,a)}; Wp=function(a){g.I.call(this,a)}; Xp=function(a){g.I.call(this,a)}; Yp=function(a){g.I.call(this,a)}; Zp=function(a){g.I.call(this,a)}; $p=function(a){g.I.call(this,a)}; aq=function(a){g.I.call(this,a)}; bq=function(a){g.I.call(this,a)}; cq=function(a){g.I.call(this,a)}; dq=function(a){g.I.call(this,a)}; eq=function(a){g.I.call(this,a)}; hla=function(a){g.I.call(this,a,-1,gla)}; g.fq=function(a){g.I.call(this,a,-1,ila)}; gq=function(a){g.I.call(this,a,-1,jla)}; hq=function(a){g.I.call(this,a)}; iq=function(a){g.I.call(this,a,-1,kla)}; jq=function(a){g.I.call(this,a,-1,lla)}; kq=function(a){g.I.call(this,a)}; lq=function(a){g.I.call(this,a)}; mq=function(a){g.I.call(this,a)}; nq=function(a){g.I.call(this,a)}; oq=function(a){g.I.call(this,a)}; pq=function(a){g.I.call(this,a)}; qq=function(a){g.I.call(this,a)}; rq=function(a){g.I.call(this,a)}; sq=function(a){g.I.call(this,a)}; tq=function(a){g.I.call(this,a)}; uq=function(a){g.I.call(this,a,-1,mla)}; vq=function(a){g.I.call(this,a,-1,nla)}; wq=function(a){g.I.call(this,a)}; xq=function(a){g.I.call(this,a,-1,ola)}; yq=function(a){g.I.call(this,a)}; zq=function(a){g.I.call(this,a,-1,pla)}; Aq=function(a){g.I.call(this,a,-1,qla)}; Bq=function(a){g.I.call(this,a,-1,rla)}; Cq=function(a){g.I.call(this,a)}; Dq=function(a){g.I.call(this,a,-1,sla)}; Eq=function(a){g.I.call(this,a)}; Fq=function(a){g.I.call(this,a)}; Gq=function(a){g.I.call(this,a)}; Hq=function(a){g.I.call(this,a)}; Iq=function(a){g.I.call(this,a)}; Jq=function(a){g.I.call(this,a)}; Kq=function(a){g.I.call(this,a)}; Lq=function(a){g.I.call(this,a)}; Mq=function(a){g.I.call(this,a)}; Nq=function(a){g.I.call(this,a)}; Oq=function(a){g.I.call(this,a)}; Pq=function(a){g.I.call(this,a)}; Qq=function(a){g.I.call(this,a)}; Rq=function(a){g.I.call(this,a)}; Sq=function(a){g.I.call(this,a)}; Tq=function(a){g.I.call(this,a)}; Uq=function(a){g.I.call(this,a)}; Vq=function(a){g.I.call(this,a)}; Wq=function(a){g.I.call(this,a)}; Xq=function(a){g.I.call(this,a)}; Yq=function(a){g.I.call(this,a)}; Zq=function(a){g.I.call(this,a)}; $q=function(a){g.I.call(this,a)}; ar=function(a){g.I.call(this,a,-1,tla)}; br=function(a){g.I.call(this,a,-1,ula)}; cr=function(a){g.I.call(this,a,-1,vla)}; dr=function(a){g.I.call(this,a)}; er=function(a){g.I.call(this,a)}; fr=function(a){g.I.call(this,a)}; gr=function(a){g.I.call(this,a)}; hr=function(a){g.I.call(this,a)}; ir=function(a){g.I.call(this,a)}; jr=function(a){g.I.call(this,a)}; kr=function(a){g.I.call(this,a,-1,wla)}; lr=function(a){g.I.call(this,a,-1,xla)}; mr=function(a){g.I.call(this,a)}; nr=function(a){g.I.call(this,a)}; or=function(a){g.I.call(this,a)}; pr=function(a){g.I.call(this,a)}; qr=function(a){g.I.call(this,a)}; rr=function(a){g.I.call(this,a)}; sr=function(a){g.I.call(this,a)}; tr=function(a){g.I.call(this,a)}; ur=function(a){g.I.call(this,a)}; vr=function(a){g.I.call(this,a,-1,yla)}; wr=function(a){g.I.call(this,a,-1,zla)}; xr=function(a){g.I.call(this,a)}; yr=function(a){g.I.call(this,a)}; zr=function(a){g.I.call(this,a,-1,Ala)}; Ar=function(a){g.I.call(this,a)}; Br=function(a){g.I.call(this,a,-1,Bla)}; Cr=function(a){g.I.call(this,a)}; Dr=function(a){g.I.call(this,a)}; Er=function(a){g.I.call(this,a)}; Fr=function(a){g.I.call(this,a)}; Gr=function(a){g.I.call(this,a,-1,Cla)}; Hr=function(a){g.I.call(this,a,-1,Dla)}; Ir=function(a){g.I.call(this,a)}; Jr=function(a){g.I.call(this,a)}; Kr=function(a){g.I.call(this,a)}; Lr=function(a){g.I.call(this,a)}; Mr=function(a){g.I.call(this,a)}; Nr=function(a){g.I.call(this,a)}; Or=function(a){g.I.call(this,a)}; Pr=function(a){g.I.call(this,a)}; Qr=function(a){g.I.call(this,a)}; Rr=function(a){g.I.call(this,a)}; Sr=function(a){g.I.call(this,a,-1,Ela)}; Tr=function(a){g.I.call(this,a)}; Ur=function(a){g.I.call(this,a)}; Vr=function(a){g.I.call(this,a)}; Wr=function(a){g.I.call(this,a,-1,Fla)}; Xr=function(a){g.I.call(this,a)}; Yr=function(a){g.I.call(this,a)}; Zr=function(a){g.I.call(this,a)}; $r=function(a){g.I.call(this,a)}; as=function(a){g.I.call(this,a)}; bs=function(a){g.I.call(this,a)}; cs=function(a){g.I.call(this,a)}; ds=function(a){g.I.call(this,a)}; es=function(a){g.I.call(this,a)}; fs=function(a){g.I.call(this,a)}; gs=function(a){g.I.call(this,a)}; hs=function(a){g.I.call(this,a)}; is=function(a){g.I.call(this,a)}; js=function(a){g.I.call(this,a)}; ks=function(a){g.I.call(this,a)}; ls=function(a){g.I.call(this,a)}; ms=function(a){g.I.call(this,a)}; ns=function(a){g.I.call(this,a)}; os=function(a){g.I.call(this,a)}; ps=function(a){g.I.call(this,a)}; qs=function(a){g.I.call(this,a)}; rs=function(a){g.I.call(this,a)}; ts=function(a){g.I.call(this,a)}; us=function(a){g.I.call(this,a)}; vs=function(a){g.I.call(this,a)}; ws=function(a){g.I.call(this,a)}; xs=function(a){g.I.call(this,a,-1,Gla)}; ys=function(a){g.I.call(this,a,-1,Hla)}; zs=function(a){g.I.call(this,a)}; As=function(a){g.I.call(this,a)}; Bs=function(a){g.I.call(this,a)}; Cs=function(a){g.I.call(this,a)}; Ds=function(a){g.I.call(this,a)}; Es=function(a){g.I.call(this,a)}; Fs=function(a){g.I.call(this,a)}; Gs=function(a){g.I.call(this,a)}; Hs=function(a){g.I.call(this,a)}; Is=function(a){g.I.call(this,a)}; Js=function(a){g.I.call(this,a)}; Ks=function(a){g.I.call(this,a)}; Ls=function(a){g.I.call(this,a,-1,Ila)}; Ms=function(a){g.I.call(this,a)}; Ns=function(a){g.I.call(this,a)}; Os=function(a){g.I.call(this,a)}; Ps=function(a){g.I.call(this,a)}; Qs=function(a){g.I.call(this,a)}; Rs=function(a){g.I.call(this,a)}; Ss=function(a){g.I.call(this,a)}; Ts=function(a){g.I.call(this,a)}; Us=function(a){g.I.call(this,a)}; Vs=function(a){g.I.call(this,a)}; Ws=function(a){g.I.call(this,a)}; Xs=function(a){g.I.call(this,a)}; Ys=function(a){g.I.call(this,a)}; Zs=function(a){g.I.call(this,a)}; $s=function(a){g.I.call(this,a)}; bt=function(a){g.I.call(this,a)}; ct=function(a){g.I.call(this,a)}; dt=function(a){g.I.call(this,a)}; et=function(a){g.I.call(this,a)}; ft=function(a){g.I.call(this,a)}; gt=function(a){g.I.call(this,a)}; ht=function(a){g.I.call(this,a)}; jt=function(a){g.I.call(this,a)}; kt=function(a){g.I.call(this,a)}; lt=function(a){g.I.call(this,a)}; mt=function(a){g.I.call(this,a)}; Jla=function(a,b){F(a,cs,1,b)}; nt=function(a){g.I.call(this,a)}; Kla=function(a,b){F(a,cs,1,b)}; ot=function(a){g.I.call(this,a,-1,Lla)}; Mla=function(a,b){F(a,cs,2,b)}; pt=function(a){g.I.call(this,a)}; qt=function(a){g.I.call(this,a)}; rt=function(a){g.I.call(this,a)}; tt=function(a){g.I.call(this,a)}; ut=function(a){g.I.call(this,a)}; vt=function(a){g.I.call(this,a,-1,Nla)}; wt=function(a){g.I.call(this,a)}; xt=function(a){g.I.call(this,a,-1,Ola)}; At=function(a,b){Pd(a,68,zt,b)}; zt=function(a){g.I.call(this,a)}; Bt=function(a){g.I.call(this,a)}; Ct=function(a){g.I.call(this,a,-1,Pla)}; Dt=function(a){g.I.call(this,a,-1,Qla)}; Et=function(a){g.I.call(this,a)}; Ft=function(a){g.I.call(this,a)}; Gt=function(a){g.I.call(this,a)}; Ht=function(a){g.I.call(this,a,-1,Rla)}; It=function(a){g.I.call(this,a)}; Jt=function(a){g.I.call(this,a,-1,Sla)}; Kt=function(a){g.I.call(this,a)}; Lt=function(a){g.I.call(this,a)}; Mt=function(a){g.I.call(this,a)}; Nt=function(a){g.I.call(this,a,-1,Tla)}; Ot=function(a){g.I.call(this,a)}; Pt=function(a){g.I.call(this,a)}; Qt=function(a){g.I.call(this,a,-1,Ula)}; Rt=function(a){g.I.call(this,a)}; St=function(a){g.I.call(this,a)}; Tt=function(a){g.I.call(this,a)}; Ut=function(a){g.I.call(this,a)}; Vt=function(a){g.I.call(this,a,442)}; Wt=function(a){g.I.call(this,a)}; Xt=function(a){g.I.call(this,a)}; Yt=function(a){g.I.call(this,a,-1,Vla)}; Wla=function(){return g.Ga("yt.ads.biscotti.lastId_")||""}; Xla=function(a){g.Fa("yt.ads.biscotti.lastId_",a)}; $t=function(){var a=arguments;1m.status,r=500<=m.status&&600>m.status;if(n||q||r)p=pma(a,c,m,b.convertToSafeHtml);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};q=b.context||g.C;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}}, b.method,d,b.headers,b.responseType,b.withCredentials); d=b.timeout||0;if(b.onTimeout&&0=m||403===uu(p.xhr))return Hh(new Cu("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0=f)sna(a,m,w,h,y,b.join(),e),l=y;B.Ma(2);break;case 3:return B.return(Promise.reject(l))}})}; sna=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.Vv&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Pv("QUOTA_EXCEEDED",{dbName:Uv(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.Vv&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),Pv("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),tna(a,!1,d,f,b,h.tag),Ov(e)):tna(a,!0,d, f,b,h.tag)}; tna=function(a,b,c,d,e,f){Pv("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; gw=function(a){this.j=a}; g.mw=function(a,b,c){a.j.createIndex(b,c,{unique:!1})}; una=function(a,b){return g.nw(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})}; vna=function(a,b,c){var d=[];return g.nw(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})}; xna=function(a){return"getAllKeys"in IDBObjectStore.prototype?dw(a.j.getAllKeys(void 0,void 0)):wna(a)}; wna=function(a){var b=[];return g.yna(a,{query:void 0},function(c){b.push(c.JC());return c.continue()}).then(function(){return b})}; g.kw=function(a,b,c){return dw(a.j.put(b,c))}; g.nw=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return ow(a).then(function(d){return ew(d,c)})}; g.yna=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.j.openKeyCursor(d,b):a.j.openCursor(d,b);return fw(a).then(function(e){return ew(e,c)})}; lw=function(a){var b=this;this.j=a;this.B=new Map;this.u=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()}); b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)}); b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.u){e=g.Vv;for(var f=b.j.objectStoreNames,h=[],l=0;l=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})}; g.pw=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return ow(a).then(function(d){return ew(d,c)})}; Bna=function(a,b){this.request=a;this.cursor=b}; ow=function(a){return dw(a).then(function(b){return b?new Bna(a,b):null})}; Cna=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new pna(h.result,{closed:q}));return r} var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.M5,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(w){try{if(null===w.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");w.dataLoss&&"none"!==w.dataLoss&&Pv("IDB_DATA_CORRUPTED",{reason:w.dataLossMessage||"unknown reason",dbName:Uv(a)});var y=f(),z=new lw(h.transaction); p&&p(y,function(B){return w.oldVersion=B},z); z.done.catch(function(B){e(B)})}catch(B){e(B)}}); h.addEventListener("success",function(){var w=h.result;m&&w.addEventListener("versionchange",function(){m(f())}); w.addEventListener("close",function(){Pv("IDB_UNEXPECTEDLY_CLOSED",{dbName:Uv(a),dbVersion:w.version});n&&n()}); d(f())}); h.addEventListener("error",function(){e(h.error)}); l&&h.addEventListener("blocked",function(){l()})})}; Dna=function(a,b,c){c=void 0===c?{}:c;return Cna(a,b,c)}; qw=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.A(function(h){if(1==h.j)return g.pa(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.x(h,nna(c),4); if(2!=h.j)return g.ra(h,0);f=g.ua(h);throw Zv(f,a,"",-1);})}; Ena=function(a){return new Promise(function(b){cna(function(){b()},a)})}; rw=function(a,b){this.name=a;this.options=b;this.C=!0;this.I=this.D=0;this.u=500}; Fna=function(a,b){return new g.Vv("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})}; g.tw=function(a,b){if(!b)throw g.$v("openWithToken",Uv(a.name));return a.open()}; Gna=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.x(d,g.tw(uw,b),2);c=d.u;return d.return(g.jw(c,["databases"],{lc:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return g.kw(f,a).then(function(){})})}))})}; vw=function(a,b){var c;return g.A(function(d){if(1==d.j)return a?g.x(d,g.tw(uw,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})}; Hna=function(a,b){var c,d;return g.A(function(e){return 1==e.j?(c=[],g.x(e,g.tw(uw,b),2)):3!=e.j?(d=e.u,g.x(e,g.jw(d,["databases"],{lc:!0,mode:"readonly"},function(f){c.length=0;return g.nw(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return h.continue()})}),3)):e.return(c)})}; Ina=function(a){return Hna(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)}; Jna=function(){var a,b,c,d;return g.A(function(e){switch(e.j){case 1:a=Hv();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(Vu&&Su()&&!Tu()||g.ww)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.pa(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.x(e,Gna(d,yw),4);case 4:return g.x(e,vw("yt-idb-test-do-not-use",yw),5);case 5:return e.return(!0);case 2:return g.ua(e),e.return(!1)}})}; Kna=function(){if(void 0!==zw)return zw;Nv=!0;return zw=Jna().then(function(a){Nv=!1;var b;if(null!=(b=Gv())&&b.j){var c;b={hasSucceededOnce:(null==(c=Hv())?void 0:c.hasSucceededOnce)||a};var d;null==(d=Gv())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})}; Aw=function(){return g.Ga("ytglobal.idbToken_")||void 0}; g.Bw=function(){var a=Aw();return a?Promise.resolve(a):Kna().then(function(b){(b=b?yw:void 0)&&g.Fa("ytglobal.idbToken_",b);return b})}; Lna=function(a){if(!g.Sv())throw a=new g.Vv("AUTH_INVALID",{dbName:a}),Ov(a),a;var b=g.Rv();return{actualName:a+":"+b,publicName:a,userIdentifier:b}}; Mna=function(a,b,c,d){var e,f,h,l,m,n;return g.A(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.x(p,g.Bw(),2);case 2:h=p.u;if(!h)throw l=g.$v("openDbImpl",a,b),g.S("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),Ov(l),l;Tv(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Lna(a);g.pa(p,3);return g.x(p,Gna(m,h),5);case 5:return g.x(p,Dna(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.ua(p),g.pa(p,7),g.x(p,vw(m.actualName, h),9);case 9:g.ra(p,8);break;case 7:g.ua(p);case 8:throw n;}})}; Nna=function(a,b,c){c=void 0===c?{}:c;return Mna(a,b,!1,c)}; Ona=function(a,b,c){c=void 0===c?{}:c;return Mna(a,b,!0,c)}; Pna=function(a,b){b=void 0===b?{}:b;var c,d;return g.A(function(e){if(1==e.j)return g.x(e,g.Bw(),2);if(3!=e.j){c=e.u;if(!c)return e.return();Tv(a);d=Lna(a);return g.x(e,qw(d.actualName,b),3)}return g.x(e,vw(d.actualName,c),0)})}; Qna=function(a,b,c){a=a.map(function(d){return g.A(function(e){return 1==e.j?g.x(e,qw(d.actualName,b),2):g.x(e,vw(d.actualName,c),0)})}); return Promise.all(a).then(function(){})}; Rna=function(){var a=void 0===a?{}:a;var b,c;return g.A(function(d){if(1==d.j)return g.x(d,g.Bw(),2);if(3!=d.j){b=d.u;if(!b)return d.return();Tv("LogsDatabaseV2");return g.x(d,Ina(b),3)}c=d.u;return g.x(d,Qna(c,a,b),0)})}; Sna=function(a,b){b=void 0===b?{}:b;var c;return g.A(function(d){if(1==d.j)return g.x(d,g.Bw(),2);if(3!=d.j){c=d.u;if(!c)return d.return();Tv(a);return g.x(d,qw(a,b),3)}return g.x(d,vw(a,c),0)})}; Dw=function(a){this.KB=this.Ye=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){}; this.Yv=function(){}; this.now=Date.now;this.zy=!1;var b;this.VS=null!=(b=a.VS)?b:100;var c;this.qS=null!=(c=a.qS)?c:1;var d;this.jS=null!=(d=a.jS)?d:2592E6;var e;this.cS=null!=(e=a.cS)?e:12E4;var f;this.pS=null!=(f=a.pS)?f:5E3;var h;this.Xe=null!=(h=a.Xe)?h:void 0;this.hC=!!a.hC;var l;this.UB=null!=(l=a.UB)?l:.1;var m;this.XD=null!=(m=a.XD)?m:10;a.handleError&&(this.handleError=a.handleError);a.Yv&&(this.Yv=a.Yv);a.zy&&(this.zy=a.zy);a.KB&&(this.KB=a.KB);this.ib=a.ib;this.vl=a.vl;this.gg=a.gg;this.Zf=a.Zf;this.Ro=a.Ro; this.RJ=a.RJ;this.mJ=a.mJ;Cw(this)&&(!this.ib||this.ib("networkless_logging"))&&Tna(this)}; Tna=function(a){Cw(a)&&!a.zy&&(a.Ye=!0,a.hC&&Math.random()<=a.UB&&a.gg.kY(a.Xe),Una(a),a.Zf.tf()&&a.KA(),a.Zf.Ra(a.RJ,a.KA.bind(a)),a.Zf.Ra(a.mJ,a.fO.bind(a)))}; Ew=function(a,b){var c,d;return g.A(function(e){switch(e.j){case 1:if(!Cw(a))throw c=g.$v("immediateSend"),c;if(void 0===b.id){e.Ma(2);break}return g.x(e,a.gg.J_(b.id,a.Xe),3);case 3:(d=e.u)?b=d:a.Yv(Error("The request cannot be found in the database."));case 2:if(Vna(a,b,a.jS)){e.Ma(4);break}a.Yv(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.Ma(5);break}return g.x(e,a.gg.Dv(b.id,a.Xe),5);case 5:return e.return();case 4:b.skipRetry||(b=Wna(a,b));if(!b){e.Ma(0); break}if(!b.skipRetry||void 0===b.id){e.Ma(8);break}return g.x(e,a.gg.Dv(b.id,a.Xe),8);case 8:a.Ro(b.url,b.options,!!b.skipRetry),g.na(e)}})}; Wna=function(a,b){if(!Cw(a))throw g.$v("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){var h,l,m;return g.A(function(n){switch(n.j){case 1:h=Xna(f);if(!(a.ib&&a.ib("nwl_consider_error_code")&&h||a.ib&&!a.ib("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.XD)){n.Ma(2);break}if(!a.Zf.vA){n.Ma(3);break}return g.x(n,a.Zf.vA(),3);case 3:if(a.Zf.tf()){n.Ma(2);break}c(e,f);if(!a.ib||!a.ib("nwl_consider_error_code")||void 0===(null==(l=b)?void 0:l.id)){n.Ma(6);break}return g.x(n,a.gg.tK(b.id,a.Xe,!1),6);case 6:return n.return();case 2:if(a.ib&&a.ib("nwl_consider_error_code")&& !h&&a.potentialEsfErrorCounter>a.XD)return n.return();a.potentialEsfErrorCounter++;if(void 0===(null==(m=b)?void 0:m.id)){n.Ma(8);break}return b.sendCount=c?!1:!0}; Una=function(a){if(!Cw(a))throw g.$v("retryQueuedRequests");a.gg.jP("QUEUED",a.Xe).then(function(b){b&&!Vna(a,b,a.cS)?a.vl.Hh(function(){return g.A(function(c){if(1==c.j)return void 0===b.id?c.Ma(2):g.x(c,a.gg.tK(b.id,a.Xe),2);Una(a);g.na(c)})}):a.Zf.tf()&&a.KA()})}; Fw=function(a,b){a.IT&&!a.Zf.tf()?a.IT(b):a.handleError(b)}; Cw=function(a){return!!a.Xe||a.KB}; Xna=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0}; Gw=function(a,b){this.version=a;this.args=b}; Hw=function(a,b){this.topic=a;this.j=b}; Jw=function(a,b){var c=Iw();c&&c.publish.call(c,a.toString(),a,b)}; Zna=function(a,b,c){var d=Iw();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Ga("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(Kw[e])try{if(h&&a instanceof Hw&&a!=f)try{var m=a.j,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Uq){var p=new m;m.Uq=p.version}var q=m.Uq}catch(r){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m, g.cc(n.args))}catch(r){throw r.message="yt.pubsub2.Data.deserialize(): "+r.message,r;}}catch(r){throw r.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+r.message,r;}b.call(c||window,h)}catch(r){g.fu(r)}},Yna[a.toString()]?g.Ev()?g.Un.Hh(l):g.wu(l,0):l())}); Kw[e]=!0;Lw[a.toString()]||(Lw[a.toString()]=[]);Lw[a.toString()].push(e);return e}; Nw=function(a,b,c){var d=Zna(a,function(e){b.apply(c,arguments);Mw(d)},c); return d}; Mw=function(a){var b=Iw();b&&("number"===typeof a&&(a=[a]),g.rc(a,function(c){b.unsubscribeByKey(c);delete Kw[c]}))}; Iw=function(){return g.Ga("ytPubsub2Pubsub2Instance")}; Ow=function(a,b){rw.call(this,a,b);this.options=b;Tv(a)}; $na=function(a,b){var c;return function(){c||(c=new Ow(a,b));return c}}; g.Pw=function(a,b){return $na(a,b)}; aoa=function(){if(Qw)return Qw();var a={};Qw=g.Pw("LogsDatabaseV2",{uq:(a.LogsRequestsStore={On:2},a),Xw:!1,upgrade:function(b,c,d){c(2)&&g.hw(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.mw(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&iw(b,"sapisid");c(9)&&iw(b,"SWHealthLog")}, version:9});return Qw()}; Rw=function(a){return g.tw(aoa(),a)}; Sw=function(a,b){var c,d,e,f;return g.A(function(h){if(1==h.j)return c={startTime:(0,g.T)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.x(h,Rw(b),2);if(3!=h.j)return d=h.u,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.O("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.x(h,g.qna(d,"LogsRequestsStore",e),3);f=h.u;c.X5=(0,g.T)();boa(c);return h.return(f)})}; coa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){if(1==n.j)return c={startTime:(0,g.T)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.x(n,Rw(b),2);if(3!=n.j)return d=n.u,e=g.O("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.T)()],l=IDBKeyRange.bound(f,h),m=void 0,g.x(n,g.jw(d,["LogsRequestsStore"],{mode:"readwrite",lc:!0},function(p){return g.pw(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(q){q.getValue()&&(m=q.getValue(),"NEW"=== a&&(m.status="QUEUED",q.update(m)))})}),3); c.X5=(0,g.T)();boa(c);return n.return(m)})}; doa=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.x(d,Rw(b),2);c=d.u;return d.return(g.jw(c,["LogsRequestsStore"],{mode:"readwrite",lc:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.kw(f,h).then(function(){return h})})}))})}; Tw=function(a,b,c){c=void 0===c?!0:c;var d;return g.A(function(e){if(1==e.j)return g.x(e,Rw(b),2);d=e.u;return e.return(g.jw(d,["LogsRequestsStore"],{mode:"readwrite",lc:!0},function(f){var h=f.objectStore("LogsRequestsStore");return h.get(a).then(function(l){return l?(l.status="NEW",c&&(l.sendCount+=1),g.kw(h,l).then(function(){return l})):g.bw.resolve(void 0)})}))})}; Uw=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.x(d,Rw(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})}; eoa=function(a){var b,c;return g.A(function(d){if(1==d.j)return g.x(d,Rw(a),2);b=d.u;c=(0,g.T)()-2592E6;return g.x(d,g.jw(b,["LogsRequestsStore"],{mode:"readwrite",lc:!0},function(e){return g.nw(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})}; foa=function(){g.A(function(a){return g.x(a,Rna(),0)})}; boa=function(a){g.S("nwl_csi_killswitch")||.01>=Math.random()&&Jw("nwl_transaction_latency_payload",a)}; hoa=function(a){return g.tw(goa(),a)}; ioa=function(a){var b,c;g.A(function(d){if(1==d.j)return g.x(d,hoa(a),2);b=d.u;c=(0,g.T)()-2592E6;return g.x(d,g.jw(b,["SWHealthLog"],{mode:"readwrite",lc:!0},function(e){return g.nw(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})}; joa=function(a){var b;return g.A(function(c){if(1==c.j)return g.x(c,hoa(a),2);b=c.u;return g.x(c,b.clear("SWHealthLog"),0)})}; g.Vw=function(a,b,c,d,e,f){e=void 0===e?"":e;f=void 0===f?!1:f;if(a)if(c&&!g.Pu()){if(a){a=g.pg(g.qg(a));if("about:invalid#zClosurez"===a||a.startsWith("data"))a="";else{var h=void 0===h?{}:h;a=a.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");h.o6a&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1 "));h.n6a&&(a=a.replace(/(\r\n|\n|\r)/g,"
"));h.p6a&&(a=a.replace(/(\t+)/g,'$1'));h=Ag(a);a=g.Sg(g.ei(g.zg(h).toString()))}g.db(a)|| (h=hh("IFRAME",{src:'javascript:""',style:"display:none"}),Zg(h).body.appendChild(h))}}else if(e)Au(a,b,"POST",e,d);else if(g.O("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Au(a,b,"GET","",d,void 0,f);else{b:{try{var l=new Cga({url:a});if(l.B&&l.u||l.C){var m=ii(g.pi(5,a));var n=!(!m||!m.endsWith("/aclk")||"1"!==zi(a,"ri"));break b}}catch(p){}n=!1}n?koa(a)?(b&&b(),h=!0):h=!1:h=!1;h||loa(a,b)}}; koa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1}; loa=function(a,b){var c=new Image,d=""+moa++;Ww[d]=c;c.onload=c.onerror=function(){b&&Ww[d]&&b();delete Ww[d]}; c.src=a}; Xw=function(){this.j=new Map;this.u=!1}; Yw=function(){if(!Xw.j){var a=g.Ga("yt.networkRequestMonitor.instance")||new Xw;g.Fa("yt.networkRequestMonitor.instance",a);Xw.j=a}return Xw.j}; $w=function(){Zw||(Zw=new yv("yt.offline"));return Zw}; noa=function(a){if(g.S("offline_error_handling")){var b=$w().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);$w().set("errors",b,2592E3,!0)}}; ax=function(){g.Vf.call(this);var a=this;this.u=!1;this.j=kka();this.j.Ra("networkstatus-online",function(){if(a.u&&g.S("offline_error_handling")){var b=$w().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.Qv(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.fu(d)}$w().set("errors",{},2592E3,!0)}}})}; ooa=function(){if(!ax.j){var a=g.Ga("yt.networkStatusManager.instance")||new ax;g.Fa("yt.networkStatusManager.instance",a);ax.j=a}return ax.j}; g.ex=function(a){a=void 0===a?{}:a;g.Vf.call(this);var b=this;this.j=this.D=0;this.u=ooa();var c=g.Ga("yt.networkStatusManager.instance.listen").bind(this.u);c&&(a.dE?(this.dE=a.dE,c("networkstatus-online",function(){poa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){poa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))}; poa=function(a,b){a.dE?a.j?(g.Un.Xk(a.D),a.D=g.Un.Hh(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.T)())},a.dE-((0,g.T)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.T)()):a.dispatchEvent(b)}; fx=function(){Dw.call(this,{gg:{kY:eoa,Dv:Uw,jP:coa,J_:doa,tK:Tw,set:Sw},Zf:qoa(),handleError:g.fu,Yv:hu,Ro:roa,now:g.T,IT:noa,vl:g.Dv(),RJ:"publicytnetworkstatus-online",mJ:"publicytnetworkstatus-offline",hC:!0,UB:.1,XD:g.bu("potential_esf_error_limit",10),ib:g.S,zy:!(g.Sv()&&"www.youtube-nocookie.com"!==g.qi(document.location.toString()))});this.u=new g.Yi;g.S("networkless_immediately_drop_all_requests")&&foa();Sna("LogsDatabaseV2")}; gx=function(){var a=g.Ga("yt.networklessRequestController.instance");a||(a=new fx,g.Fa("yt.networklessRequestController.instance",a),g.S("networkless_logging")&&g.Bw().then(function(b){a.Xe=b;Tna(a);a.u.resolve();a.hC&&Math.random()<=a.UB&&a.Xe&&ioa(a.Xe);g.S("networkless_immediately_drop_sw_health_store")&&soa(a)})); return a}; soa=function(a){var b;g.A(function(c){if(!a.Xe)throw b=g.$v("clearSWHealthLogsDb"),b;return c.return(joa(a.Xe).catch(function(d){a.handleError(d)}))})}; roa=function(a,b,c){g.S("use_cfr_monitor")&&toa(a,b);if(g.S("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.T)())));else{var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.T)())}c&&0===Object.keys(b).length?g.Vw(a):g.Bu(a,b)}; qoa=function(){hx||(hx=new g.ex({E_:!0,QY:!0}));return hx}; toa=function(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){Yw().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){Yw().requestComplete(a,!0);d(e,f)}}; uoa=function(a,b){function c(d){var e=ix().tf();if(!jx()||!d||e&&g.S("vss_networkless_bypass_write"))kx(a,b);else{var f={url:a,options:b,timestamp:(0,g.T)(),status:"NEW",sendCount:0};Sw(f,d).then(function(h){f.id=h;ix().tf()&&lx(f)}).catch(function(h){lx(f); mx(h)})}} b=void 0===b?{}:b;g.S("skip_is_supported_killswitch")?g.Bw().then(function(d){c(d)}):c(Aw())}; nx=function(a,b,c){function d(e){if(jx()&&e){var f={url:a,options:b,timestamp:(0,g.T)(),status:"NEW",sendCount:0};g.S("nwl_skip_retry")&&(f.skipRetry=c);if(ix().tf()||g.S("nwl_aggressive_send_then_write")&&!f.skipRetry){if(!f.skipRetry){var h=b.onError?b.onError:function(){}; b.onError=function(l,m){return g.A(function(n){if(1==n.j)return g.x(n,Sw(f,e).catch(function(p){mx(p)}),2); h(l,m);g.na(n)})}}kx(a,b,f.skipRetry)}else Sw(f,e).catch(function(l){kx(a,b,g.S("nwl_skip_retry")&&c); mx(l)})}else kx(a,b,g.S("nwl_skip_retry")&&c)} b=void 0===b?{}:b;g.S("skip_is_supported_killswitch")?g.Bw().then(function(e){d(e)}):d(Aw())}; ox=function(a,b){function c(d){if(jx()&&d){var e={url:a,options:b,timestamp:(0,g.T)(),status:"NEW",sendCount:0},f=!1,h=b.onSuccess?b.onSuccess:function(){}; e.options.onSuccess=function(m,n){g.S("use_cfr_monitor")&&Yw().requestComplete(e.url,!0);void 0!==e.id?Uw(e.id,d):f=!0;g.S("vss_network_hint")&&ix().Ho(!0);h(m,n)}; if(g.S("use_cfr_monitor")){var l=b.onError?b.onError:function(){}; e.options.onError=function(m,n){Yw().requestComplete(e.url,!1);l(m,n)}}kx(e.url,e.options); Sw(e,d).then(function(m){e.id=m;f&&Uw(e.id,d)}).catch(function(m){mx(m)})}else kx(a,b)} b=void 0===b?{}:b;g.S("skip_is_supported_killswitch")?g.Bw().then(function(d){c(d)}):c(Aw())}; voa=function(){var a=Aw();if(!a)throw g.$v("throttleSend");px||(px=g.Un.Hh(function(){var b;return g.A(function(c){if(1==c.j)return g.x(c,coa("NEW",a),2);if(3!=c.j)return b=c.u,b?g.x(c,lx(b),3):(g.Un.Xk(px),px=0,c.return());px&&(px=0,voa());g.na(c)})},100))}; lx=function(a){var b,c,d;return g.A(function(e){switch(e.j){case 1:b=Aw();if(!b)throw c=g.$v("immediateSend"),c;if(void 0===a.id){e.Ma(2);break}return g.x(e,doa(a.id,b),3);case 3:(d=e.u)?a=d:hu(Error("The request cannot be found in the database."));case 2:var f=a.timestamp;if(!(2592E6<=(0,g.T)()-f)){e.Ma(4);break}hu(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.Ma(5);break}return g.x(e,Uw(a.id,b),5);case 5:return e.return();case 4:a.skipRetry||(a=woa(a)); f=a;if(g.S("use_request_time_ms_header")){var h;if(null==f?0:null==(h=f.options)?0:h.headers)f.options.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.T)()))}else{var l,m;if(null==f?0:null==(l=f.options)?0:null==(m=l.postParams)?0:m.requestTimeMs)f.options.postParams.requestTimeMs=Math.round((0,g.T)())}a=f;if(!a){e.Ma(0);break}if(!a.skipRetry||void 0===a.id){e.Ma(8);break}return g.x(e,Uw(a.id,b),8);case 8:kx(a.url,a.options,!!a.skipRetry),g.na(e)}})}; woa=function(a){var b=Aw();if(!b)throw g.$v("updateRequestHandlers");var c=a.options.onError?a.options.onError:function(){}; a.options.onError=function(e,f){var h,l,m;return g.A(function(n){switch(n.j){case 1:g.S("use_cfr_monitor")&&Yw().requestComplete(a.url,!1);h=Xna(f);if(!(g.S("nwl_consider_error_code")&&h||!g.S("nwl_consider_error_code")&&xoa()<=g.bu("potential_esf_error_limit",10))){n.Ma(2);break}if(g.S("skip_checking_network_on_cfr_failure")&&(!g.S("skip_checking_network_on_cfr_failure")||Yw().isEndpointCFR(a.url))){n.Ma(3);break}return g.x(n,ix().vA(),3);case 3:if(ix().tf()){n.Ma(2);break}c(e,f);if(!g.S("nwl_consider_error_code")|| void 0===(null==(l=a)?void 0:l.id)){n.Ma(6);break}return g.x(n,Tw(a.id,b,!1),6);case 6:return n.return();case 2:if(g.S("nwl_consider_error_code")&&!h&&xoa()>g.bu("potential_esf_error_limit",10))return n.return();g.Ga("ytNetworklessLoggingInitializationOptions")&&qx.potentialEsfErrorCounter++;rx++;if(void 0===(null==(m=a)?void 0:m.id)){n.Ma(8);break}return 1>a.sendCount?g.x(n,Tw(a.id,b),12):g.x(n,Uw(a.id,b),8);case 12:g.Un.Hh(function(){ix().tf()&&voa()},5E3); case 8:c(e,f),g.na(n)}})}; var d=a.options.onSuccess?a.options.onSuccess:function(){}; a.options.onSuccess=function(e,f){var h;return g.A(function(l){if(1==l.j)return g.S("use_cfr_monitor")&&Yw().requestComplete(a.url,!0),void 0===(null==(h=a)?void 0:h.id)?l.Ma(2):g.x(l,Uw(a.id,b),2);g.S("vss_network_hint")&&ix().Ho(!0);d(e,f);g.na(l)})}; return a}; ix=function(){if(g.S("use_new_nwl"))return qoa();sx||(sx=new g.ex({E_:!0,QY:!0}));return sx}; mx=function(a){ix().tf()?g.fu(a):noa(a)}; kx=function(a,b,c){c&&0===Object.keys(b).length?g.Vw(a):g.Bu(a,b)}; jx=function(){return g.Ga("ytNetworklessLoggingInitializationOptions")?qx.isNwlInitialized:!1}; xoa=function(){return g.Ga("ytNetworklessLoggingInitializationOptions")?qx.potentialEsfErrorCounter:rx}; g.tx=function(a){this.config_=null;a?this.config_=a:Tma()&&(this.config_=g.wv())}; g.ux=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.GQ.bypassNetworkless?(f.method="POST",d.GQ.writeThenSend?g.S("use_new_nwl_wts")?gx().writeThenSend(n,f):uoa(n,f):g.S("use_new_nwl_saw")?gx().sendAndWrite(n,f):ox(n,f)):g.S("web_all_payloads_via_jspb")?g.Bu(n,f):(f.method="POST",f.postParams||(f.postParams={}),g.Bu(n,f))}catch(q){if("InvalidAccessError"==q.name)hu(Error("An extension is blocking network request."));else throw q;}} !g.O("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&hu(new g.Qv("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Qv("innertube xhrclient not ready",b,c,d),g.fu(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)}, onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)}, onError:function(p,q){if(d.onError)d.onError(q)}, onFetchError:function(p){if(d.onError)d.onError(p)}, timeout:d.timeout,withCredentials:!0};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.PP;h&&(c=h);h=bna(a.config_.QP||!1,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var l={alt:"json"},m=a.config_.xI&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=nu(""+c+b,l);g.S("use_new_nwl")&&gx().Ye||!g.S("use_new_nwl")&& jx()?Kna().then(function(p){e(p)}):e(!1)}; yoa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=vx+"VisibilityState";if(b in a)return a[b]}; wx=function(a,b){var c;Ql(a,function(d){c=b[d];return!!c}); return c}; xx=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.scale=1;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in zoa||(this[b]=a[b]);this.scale=a.scale;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.j=a.pageX;this.u=a.pageY}}catch(e){}}; Aoa=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.u=a.clientY+b}}; Boa=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 vf(yx,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Na(e[4])&&g.Na(d)&&g.Gf(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})}; g.zx=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Boa(a,b,c,d);if(e)return e;e=++Coa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new xx(l);if(!uh(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new xx(l); l.currentTarget=a;return c.call(a,l)}; h=gu(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Doa()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);yx[e]=[a,b,c,h,d];return e}; Eoa=function(a,b){var c=document.body||document;return g.zx(c,"click",function(d){var e=uh(d.target,function(f){return f===c||b(f)},!0); e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})}; g.Ax=function(a){a&&("string"==typeof a&&(a=[a]),g.rc(a,function(b){if(b in yx){var c=yx[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Doa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete yx[b]}}))}; g.Bx=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a}; Cx=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;return b&&b.length?b[0]:g.Bx(a)}; Dx=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}; Ex=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.Jg(b,c)}; g.Fx=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()}; g.Gx=function(a){a=a||window.event;return!1===a.returnValue||a.VP&&a.VP()}; g.Hx=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which}; Foa=function(a){return Eoa(a,function(b){return g.fo(b,"ytp-ad-has-logging-urls")})}; g.Goa=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.zx(a,b,function(){g.Ax(e);c.apply(a,arguments)},d)}; Ix=function(a){for(var b in yx)yx[b][0]==a&&g.Ax(b)}; Jx=function(a){this.J=a;this.j=null;this.C=0;this.I=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.oa=g.zx(window,"mousemove",(0,g.Qa)(this.Z,this));this.S=g.xu((0,g.Qa)(this.ea,this),25)}; Mx=function(){var a={},b=void 0===a.g4?!1:a.g4;a=void 0===a.RY?!0:a.RY;if(null==g.Ga("_lact",window)){var c=parseInt(g.O("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Fa("_lact",c,window);g.Fa("_fact",c,window);-1==c&&Kx();g.zx(document,"keydown",Kx);g.zx(document,"keyup",Kx);g.zx(document,"mousedown",Kx);g.zx(document,"mouseup",Kx);b?g.zx(window,"touchmove",function(){Lx("touchmove",200)},{passive:!0}):(g.zx(window,"resize",function(){Lx("resize",200)}),a&&g.zx(window,"scroll",function(){Lx("scroll", 200)})); new Jx(function(){Lx("mouse",100)}); g.zx(document,"touchstart",Kx,{passive:!0});g.zx(document,"touchend",Kx,{passive:!0})}}; Lx=function(a,b){Nx[a]||(Nx[a]=!0,g.Un.Hh(function(){Kx();Nx[a]=!1},b))}; Kx=function(){null==g.Ga("_lact",window)&&(Mx(),g.Ga("_lact",window));var a=Date.now();g.Fa("_lact",a,window);-1==g.Ga("_fact",window)&&g.Fa("_fact",a,window);(a=g.Ga("ytglobal.ytUtilActivityCallback_"))&&a()}; Ox=function(){var a=g.Ga("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)}; g.Tx=function(a,b,c){var d=g.Px();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){Qx[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)}; try{g.Rx[a]?h():g.wu(h,0)}catch(l){g.fu(l)}},c); Qx[e]=!0;Sx[a]||(Sx[a]=[]);Sx[a].push(e);return e}return 0}; g.Ux=function(a){var b=g.Px();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.rc(a,function(c){b.unsubscribeByKey(c);delete Qx[c]}))}; g.Vx=function(a,b){var c=g.Px();return c?c.publish.apply(c,arguments):!1}; Ioa=function(a){var b=g.Px();if(b)if(b.clear(a),a)Hoa(a);else for(var c in Sx)Hoa(c)}; g.Px=function(){return g.C.ytPubsubPubsubInstance}; Hoa=function(a){Sx[a]&&(a=Sx[a],g.rc(a,function(b){Qx[b]&&delete Qx[b]}),a.length=0)}; Wx=function(){this.store=[];this.j={}}; Koa=function(a,b){var c=Object.keys(b),d="THIS_KEY_FIELD_NOT_FILLED",e="THIS_KEY_FIELD_NOT_FILLED",f="THIS_KEY_FIELD_NOT_FILLED";c=g.t(c);for(var h=c.next();!h.done;h=c.next())h=h.value,"auth"===h?d=Joa(b.auth):"isJspb"===h?e=JSON.stringify(b.isJspb):"cttAuthInfo"===h&&(f=Joa(b.cttAuthInfo));b=[];d=[d,e,f];a=g.t(Object.keys(a.j));for(e=a.next();!e.done;e=a.next()){e=e.value;f=e.split("/");c=!0;for(h=0;h=a?g.S("background_thread_flush_logs_due_to_batch_limit")?g.wu(function(){gy({writeThenSend:!0},g.S("flush_only_full_queue")?c:void 0,d)},0):gy({writeThenSend:!0},g.S("flush_only_full_queue")?c:void 0,d):10<=f-h&&(Poa(d),d?ey.B=f:fy.B=f)}; Qoa=function(a,b){g.S("web_all_payloads_via_jspb")&&hu(new g.Qv("transport.logIsolatedGelPayload called in JSPB only experiment"));if("log_event"===a.endpoint){Yx(a);var c=Zx(a),d=new Map;d.set(c,[a.payload]);b&&(dy=new b);return new g.Eh(function(e,f){dy&&dy.isReady()?hy(d,dy,e,f,{bypassNetworkless:!0},!0):e()})}}; Roa=function(a,b){if("log_event"===a.endpoint){Yx(void 0,a);var c=Zx(a,!0),d=new Map;d.set(c,[a.payload.toJSON()]);b&&(dy=new b);return new g.Eh(function(e){dy&&dy.isReady()?iy(d,dy,e,{bypassNetworkless:!0},!0):e()})}}; Zx=function(a,b){var c="";if(a.wy)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Xt;c.videoId?d.setVideoId(c.videoId):c.playlistId&&g.Fd(d,2,jy,c.playlistId);ky[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),ly[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c}; gy=function(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;!c&&g.S("web_all_payloads_via_jspb")&&hu(new g.Qv("transport.flushLogs called for JSON in JSPB only experiment"));new g.Eh(function(d,e){c?(g.yu(ey.u),g.yu(ey.j),ey.j=0):(g.yu(fy.u),g.yu(fy.j),fy.j=0);if(dy&&dy.isReady())if(g.S("use_new_in_memory_storage")){var f=a,h=c,l=dy;f=void 0===f?{}:f;h=void 0===h?!1:h;var m=new Map,n=new Map;if(void 0!==b)h?(e=Xx().extractMatchingEntries({isJspb:h,cttAuthInfo:b}),m.set(b,e),iy(m,l,d,f)):(m=Xx().extractMatchingEntries({isJspb:h, cttAuthInfo:b}),n.set(b,m),hy(n,l,d,e,f));else if(h){e=g.t(Object.keys($x));for(h=e.next();!h.done;h=e.next())n=h.value,h=Xx().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),0apa&&(a=1);$t("BATCH_CLIENT_COUNTER",a);return a}; Toa=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}]}; Yoa=function(a,b,c){if(c.Sf())var d=1;else if(c.getPlaylistId())d=2;else return;F(a,Xt,4,c);a=a.getContext()||new jq;c=Hd(a,iq,3)||new iq;var e=new hq;e.setToken(b);g.E(e,1,d);Pd(c,12,hq,e);F(a,iq,3,c)}; Xoa=function(a){for(var b=[],c=0;c>3;switch(e&7){case 0:e=nz(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=nz(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(db)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity}; Ora=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;df&&(c=a.substring(f,e),c=c.replace(Gua,""),c=c.replace(Hua,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Iua(a,b,c)}; Iua=function(a,b,c){c=void 0===c?null:c;var d=Jua(a),e=document.getElementById(d),f=e&&Dra(e),h=e&&!f;f?b&&b():(b&&(f=g.Tx(d,b),b=""+g.Pa(b),Kua[b]=f),h||(e=Lua(a,d,function(){Dra(e)||(Cra(e,"loaded","true"),g.Vx(d),g.wu(g.Sa(Ioa,d),0))},c)))}; Lua=function(a,b,c,d){d=void 0===d?null:d;var e=g.ih("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);g.gj(e,g.mg(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e}; Jua=function(a){var b=document.createElement("a");g.Cg(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Wg(a)}; Wz=function(a){var b=g.za.apply(1,arguments);if(!Uz(a)||b.some(function(d){return!Uz(d)}))throw Error("Only objects may be merged."); b=g.t(b);for(var c=b.next();!c.done;c=b.next())Vz(a,c.value);return a}; Vz=function(a,b){for(var c in b)if(Uz(b[c])){if(c in a&&!Uz(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Vz(a[c],b[c])}else if(Xz(b[c])){if(c in a&&!Xz(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Mua(a[c],b[c])}else a[c]=b[c];return a}; Mua=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Uz(c)?a.push(Vz({},c)):Xz(c)?a.push(Mua([],c)):a.push(c);return a}; Uz=function(a){return"object"===typeof a&&!Array.isArray(a)}; Xz=function(a){return"object"===typeof a&&Array.isArray(a)}; Yz=function(a,b,c,d,e,f){g.K.call(this);this.Sb=a;this.Fb=b;this.Id=c;this.Ua=d;this.u=e;this.j=f}; Pua=function(a,b,c){c.ex?(Zz(a.Sb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),Nua(a.u,b)):Oua(a.j,c.Nn,b.slotId,c.ssdaiAdsConfig)}; Rua=function(a,b,c,d,e){var f=a.Ua.get().Rf(1);Zz(a.Sb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Qua(a.Id.get(),c,d,f.clientPlaybackNonce,f.uO,f.daiEnabled,f,e)},b)}; aA=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.t(b);for(c=b.next();!c.done;c=b.next())if(!$z(a.Ea,c.value))return!1;return!0}; bA=function(a,b){this.Xo=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)}; dA=function(a){(void 0!==Gma()?Hh(Error("Biscotti id is disabled")):Du("//googleads.g.doubleclick.net/pagead/id",nv)).then(function(){cA(!1,a)},function(b){"Biscotti id is disabled"===b.message?cA(!1,a.concat(" known failure")):(g.rz("Failed fetching bid when "+a),cA(!0,a))})}; cA=function(a,b){g.Lv("biscottiBasedDetection",{detected:a,source:b})}; Tua=function(a){Sua=void 0===a?!1:a}; eA=function(a,b,c,d,e){d=void 0===d?{}:d;Sua&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.Qv(a);if(a.args)for(var f=g.t(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign({},h,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot: "+b.slotType:"");c&&(d.layout=c?"layout: "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.rz(a)}}; fA=function(a,b,c,d,e,f,h){g.K.call(this);this.Sb=a;this.Id=b;this.tG=c;this.Ha=d;this.j=e;this.Ua=f;this.Ga=h}; gA=function(){this.u=new Map;this.j=new Map;this.B=new Map}; hA=function(a,b){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return g.xz(16)}; iA=function(a,b,c){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.xz(16)}; jA=function(a,b){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.xz(16)}; kA=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.j=f}; Uua=function(a,b,c,d){this.B=a;this.qf=null;this.u=b;this.j=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d}; lA=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.rz(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a}; mA=function(a,b){return b&&b.test(a)?!0:!1}; nA=function(a){return(a=Vua&&Vua.exec(a))?a[0]:""}; oA=function(a){var b=void 0===b?!1:b;return lA(mA(a,Wua),a,b,"Trusted Stream URL")}; g.pA=function(a){var b=void 0===b?!1:b;return lA(mA(a,Xua),a,b,"Trusted Image URL")}; Zua=function(a){var b=void 0===b?!1:b;return lA(mA(a,Yua),a,b,"Trusted Promoted Video Domain URL")}; ava=function(a){var b=void 0===b?!1:b;return lA(mA(a,$ua),a,b,"Drm Licensor URL")}; cva=function(a,b){b=void 0===b?!1:b;return lA(mA(a,bva),a,b,"Captions URL")}; dva=function(a){a=new g.Ej(a);g.Fj(a,document.location.protocol);g.Gj(a,document.location.hostname);document.location.port&&g.Hj(a,document.location.port);return a.toString()}; qA=function(a){a=new g.Ej(a);g.Fj(a,document.location.protocol);return a.toString()}; g.sA=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=eva++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||rA.AD_MARKER;this.namespace=c.namespace||"";if(a=c.color)a=a.toString(16),this.color="#"+Array(7-a.length).join("0")+a;this.tooltip=c.tooltip;this.icons=c.icons?c.icons.filter(function(d){return g.Wd(d.thumbnails,function(e){return g.pA(e.url)})}):null; this.visible=this.visible;this.style=this.style;this.start=this.start}; fva=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()}; gva=function(a,b){switch(a.style){case rA.CHAPTER_MARKER:return b?8:5;case rA.AD_MARKER:return 6;case rA.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; g.tA=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u}; g.uA=function(a){return"crn_"+a}; g.vA=function(a){return"crx_"+a}; wA=function(a,b,c,d,e){g.sA.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.j=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null}; xA=function(a){return"AD_PLACEMENT_KIND_START"==a.j}; hva=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j}; iva=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new zo(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new zo(Math.max(0,b.B-b.j),0x7ffffffffffff):new zo(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.B);if(c&&(d=a,a=Math.max(0,a-b.j),a==d))break;return new zo(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d= b.qf;a=1E3*d.startSecs;if(c){if(ae)return new BA("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={qn:new zo(a,e),cE:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Iv=new zo(a,e)}return d;default:return new BA("AdPlacementKind not supported in convertToRange.", {kind:e,adPlacementConfig:a})}}; CA=function(a,b){Gw.call(this,1,arguments);this.timer=b}; kva=function(a,b){Gw.call(this,1,arguments);this.j=a;this.timer=b}; lva=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; mva=function(a){var b=DA(a);if(b.aft)return b.aft;a=g.O((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=a.length,d=0;d1E5*Math.random()&&(c=new g.Qv("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.rz(c)),!0):!1}; WA=function(a){ova(a);Dva();a||(g.O("TIMING_ACTION")&&$t("PREVIOUS_ACTION",g.O("TIMING_ACTION")),$t("TIMING_ACTION",""))}; $A=function(a,b){b=void 0===b?{}:b;XA(a);QA(a);WA(a);IA(a).useGel=!0;PA(a||"").info.actionType=a;b.cttAuthInfo&&(IA(a).cttAuthInfo=b.cttAuthInfo);$t(a+"TIMING_ACTION",a);YA("_start",b.startTime,a);b={actionType:RA(a)};var c=g.Bz();c&&"UNDEFINED_CSN"!==c&&(b.clientScreenNonce=c);ZA(b,a);HA(!0,a)}; g.aB=function(a,b,c,d){null!==b&&(g.S("skip_setting_info_in_csi_data_object")||(JA(c)[a]=b),(a=Cva(a,b,c))&&ZA(a,c,d))}; ZA=function(a,b,c){if(!g.S("web_csi_via_jspb")||(void 0===c?0:c))c=PA(b||""),Wz(c.info,a),g.S("skip_setting_info_in_csi_data_object")?a.loadType&&(c=a.loadType,KA(b).loadType=c):Wz(MA(b),a),c=NA(b),b=IA(b).cttAuthInfo,TA().info(a,c,b);else{c=new xt;var d=Object.keys(a);a=Object.values(a);for(var e=0;e=GA()&&0c.duration?d:c},{duration:0}))&&0xma()?!1:!("function"!==typeof window.fetch||!window.ReadableStream)}; sB=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length}; g.tB=function(a,b){this.id=a;this.Nc=b;this.captionTracks=[];this.j=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"}; uB=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.j=b||0}; g.wB=function(a,b,c,d){return new uB(g.vB[a]||0,g.vB[b]||0,c,d)}; xB=function(a){var b=g.vB.auto;return a.u===b&&a.j===b}; zB=function(a){return yB[a.j||a.u]||"auto"}; Kva=function(a,b){b=g.vB[b];return a.u<=b&&(!a.j||a.j>=b)}; AB=function(a,b){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;b=g.t(this.j);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.Nc&&!a.has(c.Nc.id)){var d=new g.tB(c.id,c.Nc);a.add(c.Nc.id);this.audioTracks.push(d)}}}; Nva=function(a,b,c,d,e){var f={},h=new Set,l={};if(BB(c)){for(var m in c.j)c.j.hasOwnProperty(m)&&(d=c.j[m],l[d.info.j]=[d.info]);return l}if(a.Z){var n={};for(q in c.j)if(c.j.hasOwnProperty(q)){var p=c.j[q].info;m=p.j;n[m]=n[m]||[];n[m].push(p)}var q=g.t(Object.keys(n));for(m=q.next();!m.done;m=q.next())CB(a,n[m.value],[]);e&&d({aftsrt:DB(n)});q={};p=g.t(Object.keys(n));for(m=p.next();!m.done;m=p.next()){m=m.value;for(var r=g.t(n[m]),w=r.next();!w.done;w=r.next()){w=w.value;var y=w.itag,z=void 0, B=m+"_"+((null==(z=w.video)?void 0:z.fps)||0);q.hasOwnProperty(B)?!0===q[B]?l[m].push(w):f[y]=q[B]:(z=EB(a,w,b,c.isLive,!1,h),!0!==z?(f[y]=z,"disablevp9hfr"===z&&(q[B]="disablevp9hfr")):(l[m]=l[m]||[],l[m].push(w),q[B]=!0))}}}else{q=!1;if(a.xc)for(p in c.j)if(c.j.hasOwnProperty(p)&&(m=c.j[p].info,FB(m)&&m.wd&&m.video&&1440<=m.video.j&&32a.J)return"max"+a.J;if(a.S&&b.video&&b.video.jm&&(r=n));"9"===r&&l.h&&(n=KB(l["9"]),m=KB(l.h),b.Aa?m>n&&(r="h"):m>1.5*n&&(r="h"));a.jc&&c.isLive&&"("===r&&l.H&&1440>KB(l["("])&&(r="H");h&&e({vfmly:IB(r)});b=l[r];if(!b.length)return h&& e({novfmly:IB(r)}),Gu();CB(a,b,d);return Hu(new AB(b,d))}; CB=function(a,b,c,d){d=void 0===d?[]:d;g.mc(b,function(e,f){var h=f.Rb-e.Rb;if(a.Z&&(!e.isVideo()||!f.isVideo()))return h;var l=f.video.height*f.video.width-e.video.height*e.video.width;!l&&d&&0c&&(a=a.filter(function(d){if(32a.getLastSegmentNumber())a.segments=[];else{var c=Qb(a.segments,function(d){return d.Na>=b},a); 0c&&(c=a.totalLength-b);a.focus(b);if(!YB(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.j[a.u].length-e);for(var f=0,h=d;h<=a.u;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.u-d+1,e);XB(a);a.focus(b)}d=a.j[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)}; ZB=function(a,b,c){a=iwa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}; jwa=function(a){a=ZB(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;ce&&bf)gC[e++]=f;else{if(224>f)f=(f&31)<<6|a[b++]&63;else if(240>f)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(1024===e+1){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;gC[e++]=55296|f>>10;f=56320|f&1023}gC[e++]=f}}f=String.fromCharCode.apply(String,gC); 1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")}; jC=function(a,b){var c;if(null==(c=iC)?0:c.encodeInto)return b=iC.encodeInto(a,b),b.reade?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296===(e&64512)&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c}; lwa=function(a){if(iC)return iC.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=jC(a,b);b.lengthc&&(b=b.subarray(0,c));return b}; kC=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.j=(this.u=e)?0:8;this.dataOffset=this.offset+this.j}; lC=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b}; mC=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b}; nC=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b}; oC=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b}; pC=function(a){var b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b}; qC=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;ca.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-bc;c++){var d=a.getInt8(b+c);if(97>d||122=a.j.byteLength}; MC=function(a,b,c){var d=new GC(c);if(!IC(d,a))return!1;d=JC(d);if(!KC(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=LC(d,!0);d=a+(d.start+d.pos-b)+e;d=9b;b++)c=256*c+RC(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+RC(a),d*=128;return b?c-d:c}; OC=function(a){var b=LC(a,!0);a.pos+=b}; Ewa=function(a){if(!KC(a,440786851,!0))return null;var b=a.pos;LC(a,!1);var c=LC(a,!0)+a.pos-b;a.pos=b+c;if(!KC(a,408125543,!1))return null;LC(a,!0);if(!KC(a,357149030,!0))return null;var d=a.pos;LC(a,!1);var e=LC(a,!0)+a.pos-d;a.pos=d+e;if(!KC(a,374648427,!0))return null;var f=a.pos;LC(a,!1);var h=LC(a,!0)+a.pos-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295); l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+d,e),c+12);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+f,h),c+12+e);return l}; SC=function(a){var b=a.pos;a.pos=0;var c=1E6;IC(a,[408125543,357149030,2807729])&&(c=NC(a));a.pos=b;return c}; Fwa=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!TC(a)||!KC(a,160))return a.pos=c,NaN;LC(a,!0);var d=a.pos;if(!KC(a,161))return a.pos=c,NaN;LC(a,!0);RC(a);var e=RC(a)<<8|RC(a);a.pos=d;if(!KC(a,155))return a.pos=c,NaN;d=NC(a);a.pos=c;return(e+d)*b/1E9}; TC=function(a){if(!Gwa(a)||!KC(a,524531317))return!1;LC(a,!0);return!0}; Gwa=function(a){if(a.hw()){if(!KC(a,408125543))return!1;LC(a,!0)}return!0}; IC=function(a,b){for(var c=0;cd.timedOut&&1>d.j)return!1;d=d.timedOut+d.j;a=YC(a,b);c=XC(c,OB(a));return c.timedOut+c.j+ +(b.cm&&!c.C)b.Nh?1E3*Math.pow(b.Vi,c-b.Nh):0;return 0===b?!0:a.J+b<(0,g.T)()}; $C=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.D=!1;this.J=0;this.C=this.B=null;this.info=b;this.u=new Mwa(a)}; aD=function(a,b,c,d){var e=g.t(a.info.id.split(";")),f=e.next().value;e=e.next().value;return(d?(c||"")+";":"")+f+";"+(b?0:a.info.lastModified)+";"+(void 0===e?"":e)}; bD=function(a,b){this.start=a;this.end=b;this.length=b-a+1}; cD=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new bD(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0=b.range.start+b.Jb&&a.range.start+a.Jb+a.u<=b.range.start+b.Jb+b.u:a.Na===b.Na&&a.Jb>=b.Jb&&(a.Jb+a.u<=b.Jb+b.u||b.Ge)}; Xwa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.Xf()?(a=a.j.Ow(a),Ql(a,function(c){return Xwa(c,b)})):a.Na===b.Na&&!!b.u&&b.Jb+b.u>a.Jb&&b.Jb+b.u<=a.Jb+a.u}; pD=function(a,b){var c=b.Na;a.D="updateWithSegmentInfo";a.Na=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,Qwa(a)}; qD=function(a,b){this.j=a;this.S=this.B=null;this.I=this.Tf=NaN;this.J=this.requestId=null;this.u=a[0].j.u;this.C=b||"";if(this.j[0].range&&0=c.C&&b<=c.B)return!0;return!1}; uD=function(a,b,c,d,e,f){f=void 0===f?0:f;$C.call(this,a,b,d,void 0);this.I=c;this.Fk=f;this.index=e||new TB}; bxa=function(a,b,c,d,e){this.Na=a;this.startSecs=b;this.durationSecs=c;this.j=d||NaN;this.u=e||NaN}; vD=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""}; wD=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new SB(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}}; DD=function(){this.count=0;this.B=1;this.u=!1;this.offsets=new Float64Array(128);this.j=new Float64Array(128)}; ED=function(a){a.offsets.lengthe)b=!1;else{for(d=e-1;0<=d;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b}; ID=function(a,b){b=void 0===b?!1:b;var c=txa(a);a=b?0:a.info.I;return c||a}; txa=function(a){g.HD(a.info.j.info)||a.info.j.info.cf();if(a.u&&6===a.info.type)return a.u.Fk;if(g.HD(a.info.j.info)){var b=GD(a);var c=0;b=g.FC(b,1936286840);b=g.t(b);for(var d=b.next();!d.done;d=b.next())d=wwa(d.value),c+=d.bL[0]/d.gL;c=c||NaN;if(!(0<=c))a:{c=GD(a);b=a.info.j.j;for(var e=d=0,f=0;AC(c,d);){var h=BC(c,d);if(1836476516===h.type)e=g.xC(h);else if(1836019558===h.type){!e&&b&&(e=yC(b));if(!e){c=NaN;break a}var l=zC(h.data,h.dataOffset,1953653094),m=e,n=zC(l.data,l.dataOffset,1952868452); l=zC(l.data,l.dataOffset,1953658222);var p=nC(n);nC(n);p&2&&nC(n);n=p&8?nC(n):0;var q=nC(l),r=q&1;p=q&4;var w=q&256,y=q&512,z=q&1024;q&=2048;var B=oC(l);r&&nC(l);p&&nC(l);for(var D=r=0;D=c+d)break}e.length||g.qz(new g.Qv("b189619593",""+b,""+c,""+d));return new qD(e)}; LD=function(a,b,c,d){this.sampleRate=void 0===a?0:a;this.numChannels=void 0===b?0:b;this.spatialAudioType=void 0===c?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=void 0===d?!1:d}; xxa=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d}; ND=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||MD(a,b);this.j=g.vB[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&"UNKNOWN"!==d&&"RECTANGULAR"!==d?0:e;this.projectionType=d?"EQUIRECTANGULAR"===d&&2===e?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.vB[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+("EQUIRECTANGULAR"===c||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===c||"MESH"===c?"s":"p")+(55=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"}; RD=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0=b)return c}catch(d){}return-1}; hE=function(a,b){return 0<=gE(a,b)}; Bxa=function(a,b){if(!a)return NaN;b=gE(a,b);return 0<=b?a.start(b):NaN}; iE=function(a,b){if(!a)return NaN;b=gE(a,b);return 0<=b?a.end(b):NaN}; jE=function(a){return a&&a.length?a.end(a.length-1):NaN}; Cxa=function(a,b){a=iE(a,b);return 0<=a?a-b:0}; kE=function(a,b,c){for(var d=[],e=[],f=0;fc||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return eE(d,e)}; lE=function(a,b,c,d){g.cz.call(this);var e=this;this.Xd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.BP={error:function(){!e.isDisposed()&&e.isActive&&e.ma("error",e)}, updateend:function(){!e.isDisposed()&&e.isActive&&e.ma("updateend",e)}}; g.dz(this.Xd,this.BP);this.WA=this.isActive}; mE=function(a,b,c,d,e){g.cz.call(this);var f=this;this.uc=a;this.Mf=b;this.id=c;this.containerType=d;this.isVideo=e;this.dQ=this.hD=this.Qe=null;this.appendWindowStart=this.timestampOffset=0;this.bO=eE([],[]);this.MB=!1;this.sA=Dxa?[]:void 0;this.Wc=function(l){return f.ma(l.type,f)}; var h;if(null==(h=this.uc)?0:h.addEventListener)this.uc.addEventListener("updateend",this.Wc),this.uc.addEventListener("error",this.Wc)}; nE=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; oE=function(a,b){this.j=a;this.u=void 0===b?!1:b;this.B=!1}; pE=function(a,b,c){c=void 0===c?!1:c;g.K.call(this);this.mediaSource=a;this.Mf=b;this.isView=c;this.C=0;this.callback=null;this.events=new g.YD(this);g.N(this,this.events);this.B=new oE(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Mf.webkitMediaSourceURL,!0);a=this.mediaSource||this.Mf;az(this.events,a,["sourceopen","webkitsourceopen"],this.m3);az(this.events,a,["sourceclose","webkitsourceclose"],this.l3)}; Exa=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; Fxa=function(a,b){qE(a)?g.Ch(function(){b(a)}):a.callback=b}; qE=function(a){try{return"open"===rE(a)}catch(b){return!1}}; rE=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Mf.webkitSourceState){case a.Mf.SOURCE_OPEN:return"open";case a.Mf.SOURCE_ENDED:return"ended";default:return"closed"}}; sE=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)}; Gxa=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.Xd:a.j,f=a.u.isView()?a.u.Xd:a.u,h=new pE(a.mediaSource,a.Mf,!0);h.B=a.B;e=new lE(e,b,c,d);b=new lE(f,b,c,d);h.j=e;h.u=b;g.N(h,e);g.N(h,b);qE(a)||a.j.xE(a.j.Ad());return h}; Hxa=function(a,b){return tE(function(c,d){return g.Eu(c,d,4,1E3)},a,b)}; g.Ixa=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=fC(new Uint8Array(a.response))):b=a.responseText;return!b||2048a.I&&a.isLivePlayback;a.Aa=Number(vD(c,yE(a,"earliestMediaSequence")))||0;if(d=Date.parse(dxa(vD(c,yE(a,"mpdResponseTime")))))a.S=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Wd(c.getElementsByTagName("Period"),a.T3,a);a.state=2;a.ma("loaded");Zxa(a)}return a}).Zi(function(c){if(c instanceof Cu){var d=c.xhr; a.Hg=d.status}a.state=3;a.ma("loaderror");return Hh(d)})}; aya=function(a,b,c){return $xa(new uE(a,b,c),a)}; zE=function(a){return a.isLive&&(0,g.T)()-a.ea>=a.I}; Zxa=function(a){var b=a.I;isFinite(b)&&(zE(a)?a.refresh():(b=Math.max(0,a.ea+b-(0,g.T)()),a.B||(a.B=new g.Yn(a.refresh,b,a),g.N(a,a.B)),a.B.start(b)))}; bya=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0}; AE=function(a){return a.Hc?a.Hc-(a.D||a.timestampOffset):0}; BE=function(a){return a.xc?a.xc-(a.D||a.timestampOffset):0}; CE=function(a){if(!isNaN(a.Z))return a.Z;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.getFirstSegmentNumber();c<=d.getLastSegmentNumber();c++)b+=d.getDuration(c);b/=d.getNumberOfSegments();b=.5*Math.round(b/.5);d.getNumberOfSegments()>a.Ia&&(a.Z=b);return b}if(a.isLive&&(d=b[c],d.Fk))return d.Fk}return NaN}; cya=function(a,b){a=Eca(a.j,function(d){return d.index.isLoaded()}); if(!a)return NaN;a=a.index;var c=a.getSegmentNumberForTime(b);return a.getStartTime(c)===b?b:c(0,g.T)()-1E3*a))return 0;a=g.Qz("yt-player-quality");if("string"===typeof a){if(a=g.vB[a],0a.previousQuality)return 1;if(a.quality=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;yma()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(h){return TD(h)}))?void 0:null==(f=e.u)?void 0:f.powerEfficient)a=8192,b.isEfficient=1; c=c.videoInfos[0].video;e=Math.min(IE("1",c.fps),IE("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=IE("1",30),b.perfCap30=c,a=Math.min(a,c),c=IE("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a}; LE=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.u=c;this.experiments=d;this.j={};this.Ia=this.keySystemAccess=null;this.jr=this.lr=-1;this.Nj=null;this.B="";this.D=!!d&&d.ib("edge_nonprefixed_eme");this.B=d?g.KE(d,"html5_hdcp_probing_stream_url"):"";this.C=!!d&&d.ib("html5_enable_vp9_fairplay")}; NE=function(a){return a.D?!1:!a.keySystemAccess&&!!ME()&&"com.microsoft.playready"===a.keySystem}; OE=function(a){return"com.microsoft.playready"===a.keySystem}; PE=function(a){return!a.keySystemAccess&&!!ME()&&"com.apple.fps.1_0"===a.keySystem}; QE=function(a){return"com.youtube.fairplay"===a.keySystem}; g.RE=function(a){return"fairplay"===a.flavor}; ME=function(){var a=window,b=a.MSMediaKeys;Su()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null}; TE=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.aE&&!g.Pu())return Bo("45");if(g.ww||g.Bc)return a.ib("edge_nonprefixed_eme");if(g.qB)return Bo("47");if(g.Yv){if(a.ib("html5_enable_safari_fairplay"))return!1;if(a=g.SE(a,"html5_safari_desktop_eme_min_version"))return Bo(a)}return!0}; tya=function(a,b,c,d){var e=Qu(),f=(c=e||c&&Su())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(f.unshift("com.youtube.widevine.l3"),e&&d&&f.unshift("com.youtube.widevine.forcehdcp"));return c?f:a?[].concat(g.u(f),g.u(UE.playready)):[].concat(g.u(UE.playready),g.u(f))}; VE=function(a,b,c,d,e){d=void 0===d?!1:d;g.K.call(this);this.experiments=b;this.useCobaltWidevine=d;this.va=e;this.j=[];this.B={};this.u={};this.callback=null;this.D=!1;this.C=[];this.initialize(a,!c)}; vya=function(a,b){a.callback=b;a.C=[];TE(a.experiments)?WE(a):uya(a)}; WE=function(a){if(!a.isDisposed())if(0===a.j.length)a.callback(a.C);else{var b=a.j[0],c=a.B[b],d=wya(a,c);navigator.requestMediaKeySystemAccess(b,d).then(gu(function(e){if(!a.isDisposed()){c.keySystemAccess=e;if(OE(c)){e=ZD();for(var f=g.t(Object.keys(a.u[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.j[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.t(e.audioCapabilities),h=f.next();!h.done;h=f.next())xya(a,c,h.value);if(e.videoCapabilities)for(e= g.t(e.videoCapabilities),f=e.next();!f.done;f=e.next())xya(a,c,f.value)}a.C.push(c);a.useCobaltWidevine?(a.j.shift(),WE(a)):a.callback(a.C)}}),gu(function(){a.D=!a.D&&"widevine"===a.B[a.j[0]].flavor; a.D||a.j.shift();WE(a)}))}}; xya=function(a,b,c){a.K("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0}; wya=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};OE(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.t(Object.keys(a.u[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.D?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.aE&&Nu("windows nt")&&!a.K("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}), f=e,a.K("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.K("html5_query_sw_secure_crypto_for_android")&&(Yu()||Ou())&&(a.va("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]}; uya=function(a){if(ME()&&g.Yv)a.C.push(new LE("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=yya(),c=g.Rb(a.j,function(d){var e=a.B[d],f=!1,h=!1,l;for(l in a.u[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h}); c&&a.C.push(a.B[c]);a.j=[]}a.callback(a.C)}; yya=function(){var a=ME();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=ZD(); return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}}; zya=function(){this.j=0}; Aya=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=iu(b||"","&");a={};b=g.t(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a}; g.SE=function(a,b){return Number(a.flags[b])||0}; g.KE=function(a,b){return(a=a.flags[b])?a.toString():""}; Cya=function(a){return Bya.then(a)}; XE=function(a,b,c){this.experiments=a;this.oa=b;this.ya=void 0===c?!1:c;this.J=!!g.Ga("cast.receiver.platform.canDisplayType");this.I={};this.Z=!1;this.u=new Map;this.S=!0;this.D=!this.experiments.ib("html5_disable_protected_hdr");this.j=this.B=!1;this.ea=this.experiments.ib("html5_disable_vp9_encrypted");this.Aa=this.experiments.ib("html5_select_higher_res_between_h264_vp9");a=g.Ga("cast.receiver.platform.getValue");this.C=!this.J&&a&&a("max-video-resolution-vpx")||null}; Qva=function(a,b,c){c=void 0===c?1:c;var d=b.itag;if("0"===d)return!0;var e=b.mimeType;if(b.cf()&&Qu()&&a.experiments.ib("html5_appletv_disable_vp9"))return"dwebm";if(TD(b)&&a.Z)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(GB(a,HB.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||24=f&&f>d&&!0===Qva(a,e,c)&&(d=f)}return d}; g.ZE=function(a,b){b=void 0===b?!1:b;return YE(a)&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(ZD(),"application/x-mpegURL")?!0:!1}; Fya=function(a){Eya(function(){for(var b=g.t(Object.keys(HB)),c=b.next();!c.done;c=b.next())GB(a,HB[c.value])})}; GB=function(a,b){b.name in a.I||(a.I[b.name]=Gya(a,b));return a.I[b.name]}; Gya=function(a,b){if(a.C)return!!a.C[b.name];if(b===HB.BITRATE&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===HB.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.invalid);if(b.video){var c='video/webm; codecs="vp9"';a.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"', a.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return a.isTypeSupported(c+"; "+b.name+"="+b.valid)&&!a.isTypeSupported(c+"; "+b.name+"="+b.invalid)}; Hya=function(a){a.S=!1;a.j=!0}; Iya=function(a){a.B||(a.B=!0,a.j=!0)}; Jya=function(a,b){var c=0;a.u.has(b)&&(c=a.u.get(b).hZ);a.u.set(b,{hZ:c+1,oS:Math.pow(2,c+1)});a.j=!0}; $E=function(){var a=this;this.queue=[];this.C=0;this.j=this.u=!1;this.B=function(){a.u=!1;Kya(a)}}; Lya=function(a){a.j||(Eya(function(){Kya(a)}),a.j=!0)}; Kya=function(a){a.j=!1;if(a.queue.length&&!(a.u&&5>=a.queue.length&&15E3>(0,g.T)()-a.C)){var b=a.queue.shift(),c=b.url;b=b.options;b.timeout=1E4;g.Eu(c,b,3,1E3).then(a.B,a.B);a.u=!0;a.C=(0,g.T)();5b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);cF=new Uint8Array(256);dF=bF(256);eF=bF(256);fF=bF(256);gF=bF(256);for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;cF[f]=e;b=e<<1^(e>>7&&283);var h=b^e;dF[f]=b<<24|e<<16|e<<8|h;eF[f]=h<<24|dF[f]>>>8;fF[f]=e<<24|eF[f]>>>8;gF[f]=e<<24|fF[f]>>>8}Mya=!0}e=bF(44);for(c=0;4>c;c++)e[c]= a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;44>c;c++)a=e[c-1],c%4||(a=(cF[a>>16&255]^d)<<24|cF[a>>8&255]<<16|cF[a&255]<<8|cF[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e}; Nya=function(a,b){for(var c=0;4>c;c++)a.counter[c]=b[4*c]<<24|b[4*c+1]<<16|b[4*c+2]<<8|b[4*c+3];a.j=16}; Oya=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;40>n;)h=dF[c>>>24]^eF[d>>16&255]^fF[e>>8&255]^gF[f&255]^b[n++],l=dF[d>>>24]^eF[e>>16&255]^fF[f>>8&255]^gF[c&255]^b[n++],m=dF[e>>>24]^eF[f>>16&255]^fF[c>>8&255]^gF[d&255]^b[n++],f=dF[f>>>24]^eF[c>>16&255]^fF[d>>8&255]^gF[e&255]^b[n++],c=h,d=l,e=m;a=a.u;h=b[40];a[0]=cF[c>>>24]^h>>>24;a[1]=cF[d>>16&255]^h>>16&255;a[2]=cF[e>>8&255]^ h>>8&255;a[3]=cF[f&255]^h&255;h=b[41];a[4]=cF[d>>>24]^h>>>24;a[5]=cF[e>>16&255]^h>>16&255;a[6]=cF[f>>8&255]^h>>8&255;a[7]=cF[c&255]^h&255;h=b[42];a[8]=cF[e>>>24]^h>>>24;a[9]=cF[f>>16&255]^h>>16&255;a[10]=cF[c>>8&255]^h>>8&255;a[11]=cF[d&255]^h&255;h=b[43];a[12]=cF[f>>>24]^h>>>24;a[13]=cF[c>>16&255]^h>>16&255;a[14]=cF[d>>8&255]^h>>8&255;a[15]=cF[e&255]^h&255}; kF=function(){if(!iF&&!g.ww){if(jF)return jF;var a;jF=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=jF)?0:b.importKey)&&(null==(c=jF)?0:c.sign)&&(null==(d=jF)?0:d.encrypt))return jF;jF=void 0}}; g.lF=function(a){this.C=a}; g.mF=function(a){this.u=a}; nF=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.I=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()}; Pya=function(a,b,c){for(var d=a.J,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],r,w,y,z=0;64>z;)16>z?(d[z]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[z-2],w=d[z-15],y=d[z-7]+d[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[z]=y),r=q+oF[z]+y+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),w=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=r+w,l+=r,z++,16>z?(d[z]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r= d[z-2],w=d[z-15],y=d[z-7]+d[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[z]=y),r=p+oF[z]+y+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),w=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=r+w,h+=r,z++,16>z?(d[z]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[z-2],w=d[z-15],y=d[z-7]+d[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[z]=y),r=n+oF[z]+y+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^ ~h&m),w=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=r+w,f+=r,z++,16>z?(d[z]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[z-2],w=d[z-15],y=d[z-7]+d[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[z]=y),r=m+oF[z]+y+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),w=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),y=q,q=l,l=y,y=p,p=h,h=y,y=n,n=f,f=y,m=e+r,e=r+w,z++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=h+a.j[2]|0;a.j[3]= l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0}; Rya=function(a){var b=new Uint8Array(32),c=64-a.u;55f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;Qya(a);return b}; Qya=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.J=[];a.J.length=64;a.C=0;a.u=0}; Sya=function(a){this.j=a}; Tya=function(a,b,c){a=new nF(a.j);a.update(b);a.update(c);b=Rya(a);a.update(a.D);a.update(b);b=Rya(a);a.reset();return b}; Uya=function(a){this.u=a}; Vya=function(a,b,c,d){var e,f,h,l;return g.A(function(m){switch(m.j){case 1:if(a.j){m.Ma(2);break}e=a;return g.x(m,d.importKey("raw",a.u,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:e.j=m.u;case 2:return f=new Uint8Array(b.length+c.length),f.set(b),f.set(c,b.length),h={name:"HMAC",hash:"SHA-256"},g.x(m,d.sign(h,a.j,f),4);case 4:return l=m.u,m.return(new Uint8Array(l))}})}; Wya=function(a,b,c){a.B||(a.B=new Sya(a.u));return Tya(a.B,b,c)}; Xya=function(a,b,c){var d,e;return g.A(function(f){if(1==f.j){d=kF();if(!d)return f.return(Wya(a,b,c));g.pa(f,3);return g.x(f,Vya(a,b,c,d),5)}if(3!=f.j)return f.return(f.u);e=g.ua(f);g.rz(e);iF=!0;return f.return(Wya(a,b,c))})}; qF=function(){this.B=this.j=0;this.u=Array.from({length:pF.length}).fill(0)}; Yya=function(){}; Zya=function(a){this.name=a;this.startTimeMs=(0,g.T)();this.j=!1}; $ya=function(){this.profiles=new Yya}; rF=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new qF),a.profiles[b].gh(c,d))}; sF=function(){}; tF=function(){g.lF.apply(this,arguments)}; uF=function(){g.mF.apply(this,arguments)}; aza=function(a,b,c){this.encryptedClientKey=b;this.D=c;this.j=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)}; bza=function(a){a.u||(a.u=new tF(a.j));return a.u}; vF=function(a){try{return Cc(a)}catch(b){return null}}; cza=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?vF(b.clientKey):null;var c=b.encryptedClientKey?vF(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.T)():null;a&&c&&d&&(this.j=new aza(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=vF(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}}; wF=function(a){this.j=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)}; xF=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.u=!1;this.C=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;aNumber(d.get("dhmu",e.toString())));this.Yl=e;this.Ba=dE();this.lm=g.KF;this.Pk=dv(!1,b?b.embedOptOutDeprecation:a.opt_out_deprecation);this.Tg=!(!b||!b.embedsEnablePfpImaIntegration|| this.K("embeds_pfp_ima_integration_killswitch"));this.ya=!!((null==b?0:b.embedsEnableAppendUtmParams)&&this.K("embeds_web_enable_utm_params"));this.pfpChazalUi=this.Tg||dv(!1,(b?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.K("embeds_pfp_chazal_ui_killswitch"));var h;b?void 0!==b.hideInfo&&(h=!b.hideInfo):h=a.showinfo;this.Mj=g.LF(this)&&!this.Pk||dv(!MF(this)&&!NF(this)&&!this.D,h);this.Qk=b?!!b.mobileIphoneSupportsInlinePlayback:dv(!1,a.playsinline);h=this.isMobile&&OF&&null!=PF&&0=PF;e=b?b.useNativeControls: a.use_native_controls;this.I=g.LF(this)&&this.isMobile;d=this.isMobile&&!this.I;e=QF(this)||!h&&dv(d,e)?"3":"1";d=b?b.controlsType:a.controls;this.controlsType="0"!==d&&0!==d?e:"0";this.kf=this.isMobile;this.color=ev("red",b?b.progressBarColor:a.color,pza);this.hm="3"===this.controlsType||dv(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.jc=!this.u;this.Nj=(e=!this.jc&&!NF(this)&&!this.S&&!this.D&&!MF(this))&&!this.hm&&"1"===this.controlsType;this.Lc=g.RF(this)&&e&&"0"=== this.controlsType&&!this.Nj;this.Am=this.jm=h;this.xc=("3"===this.controlsType||this.isMobile||dv(!1,a.use_media_volume))&&!this.I;this.Pj=SF&&!g.wc(601)?!1:!0;this.Xl=this.u||!1;this.Be=NF(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=gv("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.C||dv(!0,l);h=!0;b&&b.disableMdxCast&&(h=!1);this.zb=this.K("enable_cast_for_web_unplugged")&&g.TF(this)&&h||this.K("enable_cast_on_music_web")&& g.UF(this)&&h||l&&h&&"1"===this.controlsType&&!this.isMobile&&(NF(this)||g.RF(this)||g.VF(this))&&!g.WF(this);this.nm=!!window.document.pictureInPictureEnabled||cE();l=b?!!b.supportsAutoplayOverride:dv(!1,a.autoplayoverride);this.Vi=!this.isMobile&&!Nu("nintendo wiiu")||l;l=b?!!b.enableMutedAutoplay:dv(!1,a.mutedautoplay);h=this.K("embeds_enable_muted_autoplay")&&g.LF(this);this.jf=l&&h&&this.Ba&&!QF(this);l=(NF(this)||MF(this))&&"blazer"===this.playerStyle;this.Nh=b?!!b.disableFullscreen:!dv(!0, a.fs);this.kb=!this.Nh&&(l||g.Wy());this.Hk=this.K("uniplayer_block_pip")&&(Ou()&&Bo(58)&&!Yu()||Vu);l=g.LF(this)&&!this.Pk;var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.Hc=l||dv(!this.D,m);this.Lj=dv(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.J=Yu()&&0=PF?"_top":"_blank";this.Oe=g.VF(this);this.Oi=dv("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":m="bl";break;case "gmail":m="gm";break;case "gac":m= "ga";break;case "books":m="gb";break;case "docs":m="gd";break;case "duo":m="gu";break;case "google-live":m="gl";break;case "google-one":m="go";break;case "play":m="gp";break;case "chat":m="hc";break;case "hangouts-meet":m="hm";break;case "photos-edu":case "picasaweb":m="pw";break;default:m="yt"}this.La=m;this.authUser=gv("",b?b.authorizedUserIndex:a.authuser);this.me=g.LF(this)&&(this.bb||!vma()||this.Ok);var n;b?void 0!==b.disableWatchLater&&(n=!b.disableWatchLater):n=a.showwatchlater;this.Sl=((m= !this.me)||!!this.authUser&&m)&&dv(!this.S,this.C?n:void 0);this.Rg=b?b.isMobileDevice||!!b.disableKeyboardControls:dv(!1,a.disablekb);this.loop=dv(!1,a.loop);this.pageId=gv("",!this.K("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.mm=dv(!0,a.canplaylive);this.Ub=dv(!1,a.livemonitor);this.disableSharing=dv(this.D,b?b.disableSharing:a.ss);(n=b&&this.K("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(m=n.split("x"),2!==m.length? n=null:(n=Number(m[0]),m=Number(m[1]),n=isNaN(n)||isNaN(m)||0>=n*m?null:new g.Lg(n,m))):n=null;this.Qj=n;this.mute=b?!!b.startMuted:dv(!1,a.mute);this.storeUserVolume=!this.mute&&dv("0"!==this.controlsType,b&&!this.K("store_user_volume_override_from_wpcc_killswitch_2")?b.storeUserVolume:a.store_user_volume);n=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:ev(void 0,n,XF);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":gv("",a.cc_lang_pref); n=ev(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,XF);"3"===this.controlsType&&2===n&&(n=3);this.jb=n;this.rg=b?b.hl||"en_US":gv("en_US",a.hl);this.region=b?b.contentRegion||"US":gv("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":gv("en",a.host_language);this.Tl=!this.bb&&Math.random()Math.random();this.Th=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new cza(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.K("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic; this.playerCanaryState=c;this.Md=new jza;g.N(this,this.Md);this.Lk=dv(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.O("DATASYNC_ID");this.fm=g.O("LOGGED_IN",!1);this.wg=(null==b?void 0:b.allowWoffleManagement)||!1;this.Gk=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;a=g.SE(this.experiments,"html5_ultra_high_res_logging_percent");this.K("html5_high_res_logging")?this.Z=2:a?100*Math.random()4096*Math.random()&&(this.Z=this.K("html5_high_res_logging_triggers_ultra_high")? 2:1);this.K("html5_ping_queue")&&(this.Li=new $E);this.zf=g.SE(this.experiments,"html5_defer_ad_module_ms");this.Aj=g.SE(this.experiments,"html5_defer_modules_delay_time_millis")}; uza=function(a){a=g.SE(a.experiments,"embeds_web_lite_mode");return 0<=a&&ay.width*y.height*y.fps)y=G}else r.push(G)}else l[D]="disdrmhfr";w.reduce(function(M, J){return J.Bg().isEncrypted()&&M},!0)&&(q=p); e=Math.max(e,0);p=y||{};n=void 0===p.fps?0:p.fps;y=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;B=a.K("html5_native_audio_track_switching");w.push(Jza(r,c,d,f,"93",y,p,n,m,"auto",e,q,z,B));Object.entries(l).length&&h(l);return CG(a.j,w,eG(a,b))}; Jza=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w){for(var y=0,z="",B=g.t(a),D=B.next();!D.done;D=B.next())D=D.value,z||(z=D.itag),D.audioChannels&&D.audioChannels>y&&(y=D.audioChannels,z=D.itag);e=new RD(e,"application/x-mpegURL",{audio:new LD(0,y),video:new ND(f,h,l,null,void 0,n,void 0,r),wd:q,FQ:z});a=new zza(a,b,c?[c]:[],d,!!w);a.C=p?p:1369843;return new EG(e,a,m)}; Gza=function(a){a=g.t(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}; Iza=function(a,b){for(var c=g.t(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.wd===b.wd&&!e.audioChannels)return d}return""}; Hza=function(a){for(var b=new Set,c=g.t(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.t(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.t(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]}; FG=function(a,b){this.j=a;this.u=b}; Lza=function(a,b,c,d){var e=[];c=g.t(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.MB(h.url,!0);if(h.s){var l=h.sp,m=Zva(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.t(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=WD(h.type,h.quality,h.itag,h.width,h.height);e.push(new FG(h,f))}}return CG(a.j,e,eG(a,b))}; GG=function(a,b){this.j=a;this.u=b}; Mza=function(a,b,c){var d=[];c=g.t(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=WD(e.type,"medium","0");d.push(new GG(f,e.url))}return CG(a.j,d,eG(a,b))}; Oza=function(a){return a&&Nza[a]?Nza[a]:null}; Pza=function(a){return["OK","LIVE_STREAM_OFFLINE"].includes(a.status)}; g.HG=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.j=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.JG=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.IG(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b}; g.KG=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode}; g.IG=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Automatic Captions)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")}; Tza=function(a,b,c,d){a||(a=b&&Qza.hasOwnProperty(b)&&Rza.hasOwnProperty(b)?Rza[b]+"_"+Qza[b]:void 0);b=a;if(!b)return null;a=b.match(Sza);if(!a||5!==a.length)return null;if(a=b.match(Sza)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(1===Number(a[1])&&8===e)&&0<=f.indexOf(e)}else a=!1;return c||d||a?b:null}; LG=function(a,b){for(var c={},d=g.t(Object.keys(Uza)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.pA(f)&&(c[Uza[e]]=f)}return c}; MG=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.t(Object.keys(Vza)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Vza[e];for(var f=g.t(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=Wza(h.url);g.pA(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Wza(a.url),g.pA(a)&&(b["maxresdefault.jpg"]=a));return b}; Wza=function(a){return a.startsWith("//")?"https:"+a:a}; Yza=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return Xza[a];return null}; NG=function(a){return a&&a.baseUrl||""}; OG=function(a){a=g.mu(a);for(var b=g.t(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a}; Zza=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.hj=b)}; aAa=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.t(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=$za(d.baseUrl);if(!e)return;d=new g.HG({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.zA(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.MG=b.audioTracks||[];a.gO=b.defaultAudioTrackIndex||0;a.NG=b.translationLanguages?g.Pk(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.zA(f.languageName)}}): []; a.SB=!!b.contribute&&!!b.contribute.captionsMetadataRenderer}; dAa=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.$u(h,bAa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.$u(h,cAa))return Object.assign({is_yto_interstitial:!0},ku(h))}); d=g.t(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,Kl:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Kl:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var f=Number(c.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:f,playerVars:e, Kl:0===f?5:7})}}}; eAa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer}; fAa=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)}; jAa=function(a){var b=a.indexRange,c=a.initRange;b={itag:a.itag,url:a.url,index:b?b.start+"-"+b.end:"0-0",bitrate:a.bitrate,init:c?c.start+"-"+c.end:"0-0",type:a.mimeType,clen:a.contentLength,lmt:a.lastModified,xtags:a.xtags};if(c=a.audioTrack){var d=c.displayName;d&&(b.name=d,b.audio_track_id=c.id,c.audioIsDefault&&(b.isDefault="1"))}if(c=a.captionTrack)b.caption_display_name=c.displayName,b.caption_vss_id=c.vssId,b.caption_language_code=c.languageCode,b.caption_kind=c.kind;(c=g.$u(a,gAa)||a.signatureCipher)? (c=ku(c),b.sp=c.sp,b.s=c.s,b.url=c.url):b.url=a.url;c=a.width;d=a.height;null!=c&&null!=d&&(b.size=c+"x"+d);(c=a.fps)&&(b.fps=c);(c=a.type)&&(b.stream_type=c);(c=a.projectionType)&&(b.projection_type=c);(c=a.stereoLayout)&&(b.stereo_layout=hAa[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=c);if(d=a.drmFamilies){c=[];d=g.t(d);for(var e=d.next();!e.done;e=d.next())c.push(PG[e.value]);b.drm_families=c.join(",")}(c=a.qualityLabel)&&(b.quality_label=c);(c=a.targetDurationSec)&&(b.target_duration_sec= c);(c=a.maxDvrDurationSec)&&(b.max_dvr_duration_sec=c);(c=a.audioSampleRate)&&(b.audio_sample_rate=c);(c=a.audioChannels)&&(b.audio_channels=c);(c=Yza(a))&&(b.eotf=c);(c=a.colorInfo)&&(c=c.primaries)&&(c=iAa[c])&&(b.primaries=c);a.isDrc&&(b.drc="1");return g.vi(b)}; QG=function(a,b){this.type=a||"";this.id=b||""}; g.RG=function(a){return new QG(a.substr(0,2),a.substr(2))}; g.SG=function(a,b){this.u=a;this.author="";this.Ey=null;this.playlistLength=0;this.j=this.sessionData=null;this.ea={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=iu(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.ea=LG(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new QG("UU","PLAYER_"+c)).toString();break;default:if(a= b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.RG(c).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}}; g.TG=function(a,b){this.j=a;this.tp=this.author="";this.Ey=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Rs=this.lengthText="";this.sessionData=null;this.ea={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.tp=b.tp||"";if(a=b.endscreen_autoplay_session_data)this.Ey=iu(a,"&");this.Fy=b.Fy;this.isLivePlayback="1"===b.live_playback;this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds="string"===typeof a?Number(a):a;this.lengthText= b.lengthText||"";this.Rs=b.Rs||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=iu(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.ea=LG(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}}; kAa=function(a,b,c,d){d={autonav:"1",playnext:String(d)};a.playlistId&&(d.autoplay="1");if(b){var e,f,h,l,m=null==(e=b.autoplay)?void 0:null==(f=e.autoplay)?void 0:null==(h=f.sets)?void 0:null==(l=h[0])?void 0:l.autoplayVideo;m&&((e=m.clickTrackingParams)&&(d.itct=e),e=g.$u(m,g.UG))&&(a.VN=e)}else if(c){var n,p;(e=null==(m=c.nextButton)?void 0:null==(n=m.buttonRenderer)?void 0:null==(p=n.navigationEndpoint)?void 0:p.clickTrackingParams)&&(d.itct=e)}d.itct||(d.feature="related-auto");a.Ey=d}; lAa=function(a){this.j=a.playback_progress_0s_url;this.B=a.playback_progress_2s_url;this.u=a.playback_progress_10s_url}; VG=function(){var a=mAa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Rka.apply(null,[Ska.apply(null,g.u(b))].concat(g.u(c)));this.store=Uka(a,void 0,b)}; g.WG=function(a,b,c){for(var d=Object.assign({},a),e=g.t(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.u(h),g.u(l)):l;else if(!Array.isArray(l)&&g.Na(l)&&!Array.isArray(h)&&g.Na(h))d[f]=g.WG(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.Qv("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,e6a:h,Oa:l}),g.qz(b),a}return d}; XG=function(a){this.j=a;this.pos=0;this.u=-1}; YG=function(a){var b=$B(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=$B(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c}; ZG=function(a,b){var c=a.u;for(a.u=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=YG(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.u=c;break}c=-1;switch(e){case 0:YG(a);break;case 1:a.pos+=8;break;case 2:d=YG(a);a.pos+=d;break;case 5:a.pos+=4}}return!1}; $G=function(a,b){if(ZG(a,b))return YG(a)}; nAa=function(a,b){if(ZG(a,b))return!!YG(a)}; aH=function(a,b){if(ZG(a,b)){b=YG(a);var c=ZB(a.j,a.pos,b);a.pos+=b;return c}}; bH=function(a,b){if(a=aH(a,b))return g.hC(a)}; oAa=function(a,b,c){if(a=aH(a,b))return c(new XG(new UB([a])))}; cH=function(a,b){a=a instanceof Uint8Array?new UB([a]):a;return b(new XG(a))}; pAa=function(){this.pos=0;this.u=[];this.j=new Uint8Array(4096);this.view=new DataView(this.j.buffer)}; dH=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=2*a.j.length;cd;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(dH(a,4);127>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1}; fH=function(a,b,c){void 0!==c&&(eH(a,b<<3|0),eH(a,c))}; gH=function(a,b,c){void 0!==c&&fH(a,b,c?1:0)}; hH=function(a,b,c){void 0!==c&&(eH(a,b<<3|2),b=c.length,eH(a,b),dH(a,b),a.j.set(c,a.pos),a.pos+=b)}; iH=function(a,b,c){void 0!==c&&(qAa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),dH(a,1.2*c.length),b=jC(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(dH(a,b),b=jC(c,a.j.subarray(a.pos))),a.pos+=b,rAa(a))}; qAa=function(a,b,c){c=void 0===c?2:c;eH(a,b<<3|2);a.u.push(a.pos);a.u.push(c);a.pos+=c}; rAa=function(a){for(var b=a.u.pop(),c=a.u.pop(),d=a.pos-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}}; jH=function(a,b,c,d,e){c&&(qAa(a,b,void 0===e?3:e),d(a,c),rAa(a))}; kH=function(a,b){var c=new pAa;b(c,a);return new Uint8Array(c.j.buffer,0,c.pos)}; g.lH=function(a){var b=new XG(new UB([Cc(decodeURIComponent(a))]));a=bH(b,2);b=$G(b,4);var c=sAa[b];if("undefined"===typeof c)throw a=new g.Qv("Failed to recognize field number",{name:"EntityKeyHelperError",G5a:b}),g.qz(a),a;return{VY:b,entityType:c,entityId:a}}; g.mH=function(a,b){var c=new pAa;hH(c,2,lwa(a));a=tAa[b];if("undefined"===typeof a)throw b=new g.Qv("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.qz(b),b;fH(c,4,a);fH(c,5,1);b=new Uint8Array(c.j.buffer,0,c.pos);return encodeURIComponent(g.yc(b))}; nH=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; uAa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.WG(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; vAa=function(a,b){a=void 0===a?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null==(f=e.options)?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.qz(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.qz(new g.Qv("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.qf(e.payload); return nH(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=g.lH(e).entityType;l=nH(d,m,e)}catch(q){if(q instanceof Error)g.qz(new g.Qv("Failed to deserialize entity key",{entityKey:e,originalMessage:q.message})),l=d;else throw q;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.qz(new g.Qv("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.qf(e.payload);var n,p;return uAa(d,l,e.entityKey,e.payload[l], null==(n=e.fieldMask)?void 0:null==(p=n.mergeOptions)?void 0:p.repeatedFieldsMergeOption)}return d},a); case "REPLACE_ENTITY":var c=b.payload;return nH(a,c.entityType,c.key,c.UY);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,l){return nH(h,e,l,f[l])},d)},a); case "UPDATE_ENTITY":return c=b.payload,uAa(a,c.entityType,c.key,c.UY,c.W5a);default:return a}}; xAa=function(a,b){var c=g.Ga("ytDebugData.callbacks");c||(c={},g.Fa("ytDebugData.callbacks",c));if(g.S("web_dd_iu")||wAa.includes(a))c[a]=b}; oH=function(a){this.j=new Fo(a)}; yAa=function(){if(void 0===pH){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.Po(g.Rv()+"::yt-player"))){pH=new oH(a);break a}pH=void 0}}return pH}; g.qH=function(){var a=yAa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}}; g.zAa=function(a){var b=yAa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))}; g.rH=function(a){return g.qH()[a]||0}; g.sH=function(a,b){var c=g.qH();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.zAa(c))}; g.tH=function(a){return g.A(function(b){return b.return(g.tw(AAa(),a))})}; wH=function(a,b,c,d,e,f,h,l,m){var n,p,q,r,w,y;return g.A(function(z){switch(z.j){case 1:return n=g.rH(a),4===n?z.return(4):g.x(z,g.Bw(),2);case 2:p=z.u;if(!p)throw g.$v("wiac");if(!m||void 0===l){z.Ma(3);break}return g.x(z,BAa(m,l),4);case 4:l=z.u;case 3:return q=c.lastModified||"0",g.x(z,g.tH(p),5);case 5:return r=z.u,g.pa(z,6),uH++,g.x(z,g.jw(r,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",lc:!0},function(B){if(void 0!==h&&void 0!==l){var D=""+a+"|"+b.id+"|"+q+"|"+String(h).padStart(10, "0");D=g.kw(B.objectStore("media"),l,D)}else D=g.bw.resolve(void 0);var G=CAa(a,b.isVideo()),H=CAa(a,!b.isVideo()),L={fmts:DAa(d),format:c||{}};G=g.kw(B.objectStore("index"),L,G);var M=-1===d.downloadedEndTime;L=M?B.objectStore("index").get(H):g.bw.resolve(void 0);var J={fmts:"music",format:{}};B=M&&e&&!b.isVideo()?g.kw(B.objectStore("index"),J,H):g.bw.resolve(void 0);return f?g.bw.all([B,L,D,G]).then(function(Q){Q=g.t(Q);Q.next();Q=Q.next().value;uH--;var P=g.rH(a);if(4!==P&&M&&e||void 0!==Q&&g.vH(Q.fmts))P= 1,g.sH(a,P);return P}):g.bw.all([L, D,G]).then(function(Q){Q=g.t(Q).next().value;uH--;var P=g.rH(a);4!==P&&M&&void 0!==Q&&g.vH(Q.fmts)&&(P=1,g.sH(a,P));return P})}),8); case 8:return z.return(z.u);case 6:w=g.ua(z);uH--;y=g.rH(a);if(4===y)return z.return(y);g.sH(a,4);throw w;}})}; g.EAa=function(a){var b,c;return g.A(function(d){if(1==d.j)return g.x(d,g.Bw(),2);if(3!=d.j){b=d.u;if(!b)throw g.$v("ri");return g.x(d,g.tH(b),3)}c=d.u;return d.return(g.jw(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return e.objectStore("index").getAll(f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})}; HAa=function(a,b,c,d,e){var f,h,l;return g.A(function(m){if(1==m.j)return g.x(m,g.Bw(),2);if(3!=m.j){f=m.u;if(!f)throw g.$v("rc");return g.x(m,g.tH(f),3)}h=m.u;l=g.jw(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM",lc:FAa},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)}); return e?m.return(l.then(function(n){if(void 0===n)throw Error("No data from indexDb");return GAa(e,n)}).catch(function(n){throw new g.Qv("Error while reading chunk: "+n.name+", "+n.message); })):m.return(l)})}; g.vH=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1}; CAa=function(a,b){return""+a+"|"+(b?"v":"a")}; DAa=function(a){var b={};return ju((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))}; JAa=function(a){var b={},c={};a=g.t(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.IAa)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.t(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(","); return c}; KAa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.XA=vF(a.ustreamerConfig)||void 0)}; xH=function(a){g.cz.call(this);this.j=null;this.B=new So;this.j=null;this.J=new Set;this.D=a||""}; LAa=function(a,b,c){for(c=yH(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(zH(d,b))&&(d=g.AH(d,b)))return d;c--}return g.AH(a.levels[0],b)}; NAa=function(a,b,c){c=yH(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=zH(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.J.has(h)||(d.J.add(h),d.B.enqueue(f,{kQ:f,zQ:e}))}MAa(a)}; MAa=function(a){if(!a.j&&!a.B.isEmpty()){var b=a.B.remove();a.j=OAa(a,b)}}; OAa=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=a.levels[b.kQ].ue(b.zQ);c.onload=function(){var d=b.kQ,e=b.zQ;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);MAa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.qB()-1);e=[e,d];a.ma("l",e[0],e[1])}; return c}; g.BH=function(a,b,c,d){this.level=a;this.C=b;this.loaded=new Set;this.level=a;this.C=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.B=a[6];this.signature=a[7];this.videoLength=d}; zH=function(a,b){return Math.floor(b/(a.columns*a.rows))}; g.AH=function(a,b){b>=a.LF()&&a.Eu();var c=zH(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Eu()+1-d*c;if(f=b)return a.C.set(b,d),d;a.C.set(b,c-1);return c-1}; DH=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.BH.call(this,a,b,c,0);this.u=null;this.D=d?2:0}; EH=function(a,b,c,d){CH.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a Math.random()){for(var ef=!1,Oe=g.t(a.suggestions),Pg=Oe.next();!Pg.done;Pg=Oe.next())if(Pg.value.videoId===Nc.videoId){ef=!0;break}ef||g.rz(new g.Qv("Autonav video not in endscreen",{empty:!a.suggestions.length}))}a.Sl=Nc;a.K("web_player_decouple_autonav")||(a.suggestions[0]=Nc)}null!=Zb.countDownSecs&&(a.VL=1E3*Zb.countDownSecs);null!=Zb.countDownSecsForFullscreen&&(a.IL=0<=Zb.countDownSecsForFullscreen?1E3*Zb.countDownSecsForFullscreen:-1);var bj;a.qU=null==(bj=Zb.cancelButton)?void 0:bj.buttonRenderer; a.K("web_autonav_color_transition")&&Zb.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.$u(Zb.watchToWatchTransitionRenderer,wBa))}a.watchNextResponse.currentVideoThumbnail&&(a.ea=MG(a.watchNextResponse.currentVideoThumbnail));var mh,$f,Sc,Cf,xg,ag=null==(mh=a.watchNextResponse)?void 0:null==($f=mh.contents)?void 0:null==(Sc=$f.twoColumnWatchNextResults)?void 0:null==(Cf=Sc.results)?void 0:null==(xg=Cf.results)?void 0:xg.contents;if(ag&&ag[1]){var bg,nh,Jb,Jh,cj=null==(bg=ag[1].videoSecondaryInfoRenderer)? void 0:null==(nh=bg.owner)?void 0:null==(Jb=nh.videoOwnerRenderer)?void 0:null==(Jh=Jb.thumbnail)?void 0:Jh.thumbnails;cj&&cj.length&&(a.profilePicture=cj[cj.length-1].url)}var Yk=a.watchNextResponse.onResponseReceivedEndpoints;if(Yk)for(var dj=g.t(Yk),ff=dj.next();!ff.done;ff=dj.next()){var mi=ff.value;g.$u(mi,RH)&&(a.CN=g.$u(mi,RH));var Zk=g.$u(mi,xBa),$k=void 0;a.K("web_key_moments_markers")&&(null==($k=Zk)?0:$k.entityKeys)&&(a.Hu=Zk.entityKeys,Zk.visibleOnLoadKeys&&(a.visibleOnLoadKeys=Zk.visibleOnLoadKeys))}if(a.K("web_key_moments_markers")){var Vd= g.SH.getState().entities,Qg=g.mH("visibility_override","markersVisibilityOverrideEntity");var ej=Vd.markersVisibilityOverrideEntity?Vd.markersVisibilityOverrideEntity[Qg]||null:null;var ni=a.videoId||iv(b);a.Md=(null==ej?void 0:ej.videoId)===ni&&(null==ej?0:ej.visibilityOverrideMarkersKey)?ej.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.u(a.Md))}}}; OH=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)}; TH=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)}; WH=function(a){if(a.K("html5_single_format_policy")&&a.le)return a.le;var b=a.Xa,c=!!a.j&&a.j.uf,d=a.u,e=a.BI(),f=UH(a),h=a.JL,l=a.isOtf(),m=a.zG(),n=a.Ub,p=a.Nh,q=new rya(d);if(wG(d)||d.K("html5_logging_format_selection"))q.B=!0;q.kb=f;q.La=h&&d.C;q.Nh=p;Nu("windows nt 5.1")&&!g.qB&&(q.j=!0);if(f=e)f=d.K("disable_html5_ambisonic_audio")||!(g.rG(d)||d.K("html5_enable_spherical")||d.K("html5_enable_spherical3d"))?!1:xza(d);f&&(q.jb=!0);b&&(q.j=!0,q.Rc=!0);l&&!d.K("html5_otf_prefer_vp9")&&(q.j=!0); n&&(q.j=!0);b=d.K("html5_ugc_vod_audio_51")&&!c;l=d.K("html5_ugc_live_audio_51")&&c;q.Ta=b||l;GB(d.j,HB.CHANNELS)&&(d.K("html5_enable_aac51")&&(q.Aa=!0),d.K("html5_enable_ac3")&&(q.D=!0),d.K("html5_enable_eac3")&&(q.I=!0),d.K("html5_enable_ac3_gapless")&&(q.Qa=!0));d.K("html5_block_8k_hfr")&&(q.zb=!0);q.J=g.SE(d.experiments,"html5_max_selectable_quality_ordinal");q.S=g.SE(d.experiments,"html5_min_selectable_quality_ordinal");!d.K("html5_kaios_hd_killswitch")&&IF&&(q.zc=480);if(c||e)q.rb=!1;q.Lb=!1; c=JE(d,q.u);0c&&(nE()||d.K("html5_format_hybridization"))&&(q.u.supportsChangeType=+nE(),q.ea=c);2160<=c&&(q.Ba=!0);pya()&&(q.u.serveVp9OverAv1IfHigherRes=0,q.Hc=!1);q.zG=m;q.bb=g.ww||Zu()&&!m?!1:!0;q.Ia=d.K("html5_format_hybridization");q.jc=d.K("html5_disable_encrypted_vp9_live_non_2k_4k");Qu()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.D=!0,q.I=!0);a.Xa&& a.isAd()&&(a.Tt&&(q.ya=a.Tt),a.St&&(q.C=a.St));q.Xa=a.isLivePlayback&&VH(a)&&a.u.K("html5_drm_live_audio_51");return a.le=q}; yBa=function(a){YA("drm_pb_s",void 0,a.Ta);a.Ia||a.j&&JB(a.j);var b={};a.j&&(b=Nva(WH(a),a.u.j,a.j,function(c){return a.ma("ctmp","fmtflt",c)},!0)); b=new VE(b,a.u.experiments,a.JT,a.useCobaltWidevine?Qu()?XH(a):!1:!1,function(c,d){a.va(c,d)}); g.N(a,b);a.Zl=!1;a.Qa=!0;vya(b,function(c){YA("drm_pb_f",void 0,a.Ta);for(var d=g.t(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Ia=a.Ia;e.lr=a.lr;e.jr=a.jr;break;case "widevine":e.Nj=a.Nj}a.Nu=c;if(0p&&(p=w.Bg().audio.numChannels)}2=a.C.videoInfos.length)&&(b=UD(a.C.videoInfos[0]),b!=("fairplay"==a.Z.flavor)))for(c=g.t(a.Nu),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.Z=d;break}}; bI=function(a,b){a.Lc=b;JBa(a,new AB(g.Pk(a.Lc,function(c){return c.Bg()})))}; KBa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.u.deviceParams.c,cver:a.u.deviceParams.cver};a.Ju&&(b.ptk=a.Ju,b.oid=a.IN,b.ptchn=a.HN,b.pltype=a.XN,a.gr&&(b.m=a.gr));return b}; g.cI=function(a){return LH(a)&&a.Ia?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.wd||null}; LBa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.zA(b.text):a.paidContentOverlayText}; dI=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Xg(b.durationMs):a.paidContentOverlayDurationMs}; eI=function(a){var b="";if(a.eG)return a.eG;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":!a.K("html5_change_player_mode_order_for_logging")&&a.bf?"post":a.wg?"window":"live");a.K("html5_change_player_mode_order_for_logging")&&a.bf&&(b="post");return b}; g.fI=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]}; gI=function(a){return!!(a.zb||a.adaptiveFormats||a.Lj||a.Kj||a.hlsvp)}; HH=function(a){if(a.K("html5_onesie")&&a.errorCode)return!1;var b=g.Vb(a.ya,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Qa&&(gI(a)||g.Vb(a.ya,"heartbeat")||b)}; ZH=function(a,b){a=lu(a);var c={};if(b){b=g.t(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.t(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a}; oBa=function(a,b){a.showShareButton=!!b;var c,d,e=(null==(c=g.$u(b,PH))?void 0:c.navigationEndpoint)||(null==(d=g.$u(b,PH))?void 0:d.command);e&&(a.mm=!!g.$u(e,MBa))}; SAa=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.Lh=c);if(a.Lh){if(c=a.Lh.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage),c.isShortsEligible&&(a.isShortsEligible=c.isShortsEligible);if(c=a.Lh.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.kb=d,a.D=!0,a.u.K("embeds_web_enable_epm_dni_parity_fix")&& (a.u.ea="EMBEDDED_PLAYER_MODE_PFP")):(a.kb="",a.D=!1,a.u.K("embeds_web_enable_epm_dni_parity_fix")&&"EMBEDDED_PLAYER_MODE_PFP"===a.u.ea&&(a.u.ea="EMBEDDED_PLAYER_MODE_DEFAULT"));if(d=c.defaultThumbnail)a.ea=MG(d),a.sampledThumbnailColor=d.sampledThumbnailColor;(d=g.$u(null==c?void 0:c.videoDetails,NBa))&&uBa(a,b,d);if(d=g.$u(null==c?void 0:c.videoDetails,OBa))a.oF=d.title,a.nF=d.byline,d.musicVideoType&&(a.musicVideoType=d.musicVideoType);a.Vi=!!c.addToWatchLaterButton;oBa(a,c.shareButton);var e, f;if(d=g.$u(null==c?void 0:null==(e=c.playButton)?void 0:null==(f=e.buttonRenderer)?void 0:f.navigationEndpoint,g.UG))gBa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=Xg(c.videoDurationSeconds));c.webPlayerActionsPorting&&fAa(a,c.webPlayerActionsPorting);if(e=g.$u(null==c?void 0:c.playlist,PBa)){f=[];d=Number(e.currentIndex);if(e.contents)for(var h=0,l=e.contents.length;h(b?parseInt(b[1],10):NaN);c=a.u;c=("TVHTML5_CAST"===$F(c)||"TVHTML5"===$F(c)&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.u.deviceParams.ctheme;!a.Qh&&(c||wza(a.u))&&!b&& (b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.K("cast_prefer_audio_only_for_atv_and_uploads")||a.K("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.Qh=!0);return a.u.deviceIsAudioOnly||a.Qh&&a.u.C}; ZBa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)}; uI=function(a){return!(!a.Vl||!a.u.C)&&!!a.adaptiveFormats}; $Ba=function(a){return a.enablePreroll&&a.enableServerStitchedDai}; eBa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.rH(b);return b&&!a.Vl}; g.vI=function(a){if(!a.j||!a.B||!a.I)return!1;var b=a.j.j;return!!b[a.B.id]&&PB(b[a.B.id].u.j)&&!!b[a.I.id]&&PB(b[a.I.id].u.j)}; QBa=function(a){return(a=a.Wl)&&a.showError?a.showError:!1}; YH=function(a,b){return a.K(b)?!0:(a.fflags||"").includes(b+"=true")}; aCa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null}; XAa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.Pu=new lAa(b));if(b=b.video_masthead_ad_quartile_urls)a.mG=b.quartile_0_url,a.IP=b.quartile_25_url,a.bQ=b.quartile_50_url,a.cQ=b.quartile_75_url,a.pP=b.quartile_100_url,a.Ou=b.quartile_0_urls,a.oG=b.quartile_25_urls,a.pG=b.quartile_50_urls,a.GH=b.quartile_75_urls,a.nG=b.quartile_100_urls}; KH=function(a,b){return b?YE(a.u.j)?!0:wI&&5>xI?!1:!0:!1}; WAa=function(a){var b={};a=g.t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b}; $za=function(a){if(a){if(cva(a))return a;a=dva(a);if(cva(a,!0))return a}return""}; g.bCa=function(a){return a.captionsLanguagePreference||a.u.captionsLanguagePreference||g.fI(a,"yt:cc_default_lang")||a.u.rg}; yI=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())}; g.zI=function(a){if(a.K("web_player_decouple_autonav")){var b;return a.Sl||(null==(b=a.suggestions)?void 0:b[0])||null}var c;return(null==(c=a.suggestions)?void 0:c[0])||null}; AI=function(a,b){this.j=a;this.ea=b||{};this.I=String(Math.floor(1E9*Math.random()));this.D={};this.Z=this.S=0}; cCa=function(a){return BI(a)&&1==a.getPlayerState(2)}; BI=function(a){a=a.Jc();return void 0!==a&&2==a.getPlayerType()}; CI=function(a){a=a.V();return aG(a)&&!g.mG(a)&&"desktop-polymer"==a.playerStyle}; DI=function(a,b){var c=a.V();QF(c)||"3"!=c.controlsType||a.fb().wA(b)}; FI=function(a,b,c,d,e,f){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.layoutId=d;this.j=e;this.u=f;this.id=EI(a)}; EI=function(a){return a+(":"+(To.getInstance().j++).toString(36))}; GI=function(a){this.Y=a}; dCa=function(a,b){if(0===b||1===b&&(a.Y.isMobile&&g.Yv?0:a.Y.isMobile||g.mG(a.Y)||g.bG(a.Y)||cG(a.Y)||!g.Yv))return!0;a=g.dh("video-ads");return null!=a&&"none"!==El(a,"display")}; eCa=function(a){switch(a){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; HI=function(){g.cz.call(this);var a=this;this.j={};g.af(this,function(){for(var b=g.t(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})}; JI=function(){if(null===II){II=new HI;Rk(Nn).u="b";var a=Rk(Nn),b="h"==Gn(a)||"b"==Gn(a),c=!(Xk(),!1);b&&c&&(a.D=!0,a.I=new Ria)}return II}; fCa=function(a,b,c){a.j[b]=c}; gCa=function(){}; KI=function(a,b,c){this.j=a;this.D=b;this.B=c;this.u=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0); c=0;for(a+=1;a=c*a.u.mF||d)&&hJ(a,"first_quartile");(b>=c*a.u.gG||d)&&hJ(a,"midpoint");(b>=c*a.u.iG||d)&&hJ(a,"third_quartile")}; zCa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.mF||d)&&hJ(a,"unmuted_first_quartile");(b>=c*a.u.gG||d)&&hJ(a,"unmuted_midpoint");(b>=c*a.u.iG||d)&&hJ(a,"unmuted_third_quartile")}; lJ=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(cd||d>c)return;hJ(a,b)}; wCa=function(a,b,c){if(0m.I&&m.dj()}}; ICa=function(a,b){if(a.J&&a.ea){a.ea=!1;var c=a.B.j;if(CJ(c)){var d=c.slot;c=c.layout;b=GCa(b);a=g.t(a.J.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,h=c,l=b;FJ(e.j(),f,h,l);HCa(e.j(),f)}}else g.rz(Error("adMessageRenderer is not augmented on termination"))}}; GCa=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return g.rz(Error("AdNotify abandoned")),"abandoned";default:return g.rz(Error("Unexpected eventType for adNotify exit")),"abandoned"}}; g.GJ=function(a,b){for(var c={},d=g.t(Object.keys(b)),e=d.next();!e.done;c={dF:c.dF},e=d.next())e=e.value,c.dF=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.dF}}(c)); return a}; HJ=function(a,b,c,d){this.j=a;this.C=b;this.u=ZI(c);this.B=d}; JCa=function(a){for(var b={},c=g.t(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.u[d].toString();return Object.assign(b,a.C)}; KCa=function(a,b,c,d){new HJ(a,b,c,d)}; IJ=function(a,b,c,d,e,f,h,l,m){uJ.call(this,a,b,c,d,e,1);var n=this;this.bD=!0;this.J=m;this.B=b;this.D=f;this.ea=new $y(this);g.N(this,this.ea);this.I=new g.Yn(function(){n.Lm("load_timeout")},1E4); g.N(this,this.I);this.Z=h}; LCa=function(a){if(a.Z&&(a.G.V().experiments.ib("enable_topsoil_wta_for_halftime")||a.G.V().experiments.ib("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.B.B,c=b.C,d=b.B,e=b.j;b=b.D;if(void 0===c)g.qz(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.qz(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,h){return f+h},0),Math.min(Math.max((d-c)/1E3-e,0),a.B.u)}}; LJ=function(a,b){if(null!==a.J){var c=MCa(a);a=g.t(a.J.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;d.j||"aderror"!==f||(NCa(d,e,[],!1),OCa(d.B(),d.u),PCa(d.B(),d.u),QCa(d.B(),d.u),h=!0);if(d.j&&d.j.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}FJ(d.B(),d.u,d.j,e);if(h){e=d.B();h=d.u;JJ(e.kc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.t(e.Nd);for(f=e.next();!f.done;f=e.next())f.value.zj(h);HCa(d.B(), d.u)}d.Ha.get().G.V().K("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&KJ(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}}; MJ=function(a){return(a=a.G.getVideoData(2))?a.clientPlaybackNonce:""}; MCa=function(a){if(a=a.B.j.elementId)return a;g.qz(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""}; RCa=function(a){function b(h,l){h=a.b4;var m=Object.assign({},{});m.FINAL=YI(Yf("1"));m.SLOT_POS=YI(Yf("0"));return aJ(h,$I(m),l)} function c(h){return null==h?{create:function(){return null}}:{create:function(l,m,n){var p=b(l,m); m=a.qL(l,p);l=h(l,p,m,n);g.N(l,m);return l}}} var d=c(function(h,l,m){return new xJ(a.G,h,l,m,a.Iy,a.gb)}),e=c(function(h,l,m){return new EJ(a.G,h,l,m,a.Iy,a.gb,a.rl,a.Eo)}),f=c(function(h,l,m){return new AJ(a.G,h,l,m,a.Iy,a.gb)}); this.BX=new ECa({create:function(h,l){var m=aJ(b(h,l),$I(qCa(h)));l=a.qL(h,m);h=new IJ(a.G,h,m,l,a.Iy,a.gb,a.daiEnabled,function(){return new KCa(a.gb,m,a.G,a.zk)},a.Fo,a.rh); g.N(h,l);return h}},d,e,f)}; NJ=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b}; SCa=function(a,b){var c=a.startSecs+a.durationSecs;c=0>=c?null:c;if(null===c)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}b=Math.max(a.startSecs,0);return{yY:new zo(b,c),m_:new kA(b,c-b,a.context,a.identifier,a.event,a.j)}}; OJ=function(){this.j=[]}; PJ=function(a,b,c){var d=g.kc(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]}; TCa=function(){this.j=new OJ}; QJ=function(a){this.j=a}; UCa=function(a){a=[a,a.C].filter(function(d){return!!d}); for(var b=g.t(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a}; VCa=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()}; WCa=function(a,b,c){a.j&&RJ({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})}; XCa=function(a,b){a.j&&RJ({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.OX}})}; YCa=function(a,b){RJ({daiStateTrigger:{errorType:a,contentCpn:b}})}; RJ=function(a){g.Lv("adsClientStateChange",a)}; SJ=function(a){this.G=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.Ye=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; $Ca=function(a,b,c,d,e,f){f();var h=a.G.getVideoData(1),l=a.G.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId,a.j=h.J);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=d?f():(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==a.actionType&&(a.Ye=!0,(a.G.K("send_csi_info_for_ad_to_video_killswitch")||mB("_start",a.actionType))&& ZCa(a)))}; ZCa=function(a){if(a.Ye)if(a.G.K("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.B&&"video_to_ad"===a.actionType)WA("video_to_ad");else if(a.G.K("web_csi_via_jspb")){var b=new xt;g.E(b,21,aDa(a.B));g.E(b,7,4);var c=new vt;g.E(c,8,2);F(b,vt,22,c);g.E(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&g.E(b,76,a.contentCpn),a.videoId&&g.E(b,78,a.videoId)):(a.adCpn&&g.E(b,76,a.adCpn),a.adVideoId&&g.E(b,78,a.adVideoId));a.adFormat&&g.E(b,12,a.adFormat);a.contentCpn&& g.E(b,8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&g.E(b,28,a.adCpn);a.adVideoId&&g.E(b,20,a.adVideoId);lB(b,a.actionType)}else b={adBreakType:bDa(a.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),a.adFormat&&(b.adType= a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),ZA(b,a.actionType)}; bDa=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; aDa=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 0}}; g.dDa=function(a){return(a=cDa[a.toString()])?a:"LICENSE"}; TJ=function(){var a=this;this.j=this.u=qaa;this.promise=new g.Eh(function(b,c){a.u=b;a.j=c})}; UJ=function(){g.K.call(this);this.u=null;this.S=this.J=!1;this.D=new g.Vf;g.N(this,this.D)}; VJ=function(a){a=a.Zy();return 1>a.length?NaN:a.end(a.length-1)}; eDa=function(a){!a.B&&Exa()&&(a.C?a.C.then(function(){return eDa(a)}):a.Kf()||(a.B=a.Qp()))}; fDa=function(a,b,c){a.Mn()||a.getCurrentTime()>b||10d.length||(d[0]in JDa&&(f.clientName=JDa[d[0]]),d[1]in KDa&&(f.platform=KDa[d[1]]),f.applicationState=h,f.clientVersion=2e&&(b+="0"));if(0f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d}; g.YL=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)}; ZL=function(a,b,c,d,e,f,h){GL.call(this,a,b,{F:"span",N:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e,f);this.videoAdDurationSeconds=h;this.B=null;this.hide()}; $L=function(a,b,c,d,e){EL.call(this,a,b,c,d,e,"ytp-video-ad-top-bar-title","ad-title")}; aM=function(a,b){this.u=a;this.j=b}; bM=function(a){return a.j-a.u}; cM=function(a,b){return a.u+b*bM(a)}; dM=function(a,b,c){return bM(a)?g.Fg((b-a.u)/bM(a),0,1):null!=c?c:Infinity}; eM=function(a,b){g.YK.call(this,{F:"div",N:"ytp-ad-persistent-progress-bar-container",W:[{F:"div",N:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.N(this,this.u);this.Bc=this.Ca("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; fM=function(a,b,c,d,e,f,h){ZK.call(this,a,b,{F:"div",N:"ytp-ad-player-overlay",W:[{F:"div",N:"ytp-ad-player-overlay-flyout-cta"},{F:"div",N:"ytp-ad-player-overlay-instream-info"},{F:"div",N:"ytp-ad-player-overlay-skip-or-preview"},{F:"div",N:"ytp-ad-player-overlay-progress-bar"},{F:"div",N:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d,e);this.S=h;this.D=this.Ca("ytp-ad-player-overlay-flyout-cta");this.api.V().K("web_rounded_thumbnails")&&this.api.V().K("web_modern_ads")&& this.D.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");this.B=this.Ca("ytp-ad-player-overlay-instream-info");this.C=null;KFa(this)&&(a=hh("div"),g.go(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.B,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new $L(this.api,this.gb,this.layoutId,this.j,this.Za),c.Da(a),c.init(EI("ad-title"),{text:b.title},this.macros),g.N(this,c)),this.C=a);this.I=this.Ca("ytp-ad-player-overlay-skip-or-preview"); this.Ba=this.Ca("ytp-ad-player-overlay-progress-bar");this.ea=this.Ca("ytp-ad-player-overlay-instream-user-sentiment");this.u=f;g.N(this,this.u);this.hide()}; KFa=function(a){a=a.api.V();return g.UF(a)&&a.isMobile}; MFa=function(a,b){var c=void 0===c?!0:c;var d=g.O("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.qi(window.location.href);e&&d.push(e);e=g.qi(a);if(g.Vb(d,e)||!e&&cb(a,"/"))if(g.S("autoescape_tempdata_url")&&(d=document.createElement("a"),g.Cg(d,a),a=d.href),a&&(a=Fea(a),d=a.indexOf("#"),a=0>d?a:a.slice(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Bz()},b)),f){var f=parseInt(f,10);isFinite(f)&&0>16,(a&65280)>>8,a&255];a=b[0];var c=b[1];b=b[2];a=Number(a);c=Number(c);b=Number(b);if(a!=(a&255)||c!=(c&255)||b!=(b&255))throw Error('"('+a+","+c+","+b+'") is not a valid RGB color');c=a<<16|c<<8|b;return 16>a?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)}; g.NFa=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.xi(a,b)+c;var e=void 0===e?Dfa:e;e=Efa(a,e)||cda;e=e instanceof og?g.pg(e):Cfa(e);void 0!==e&&(d.href=e)}; g.iM=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.O("EVENT_ID");d&&(b.ei||(b.ei=d));b&&MFa(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.NFa(a))}; g.jM=function(a,b,c,d){c&&MFa(a,c);c=g.qg(a);c=g.pg(c);a!=c&&hu(Error("Unsafe window.open URL: "+a));a=c;b=b||Wg(a).toString(36);if(d){var e,f;c="function"===typeof(null==(e=document.featurePolicy)?void 0:e.features)&&(null==(f=document.featurePolicy)?void 0:f.features().includes("attribution-reporting"));a="www.googleadservices.com"!==g.qi(a)?a:c?a+"&nis=6":a+"&nis=5";try{var h=encodeURIComponent(d);window.open(a,b,"attributionsrc="+h);return}catch(l){g.fu(l)}}window.open(a,b)}; g.kM=function(a,b,c){b=OFa(null,b,c);if(b=Dg(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.Tx("LOGGED_IN",function(d){g.Ux(g.O("LOGGED_IN_PUBSUB_KEY"));$t("LOGGED_IN",!0);a(d)}),$t("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)}; OFa=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=wi(c,"mode",a));a=wi(d,"next",c);b&&(a=wi(a,"feature",b));return a}; RFa=function(a,b){if(!a)return!1;var c,d=null==(c=g.$u(a,PFa))?void 0:c.signal;if(d&&b.Ot)return!!b.Ot[d];var e;if((c=null==(e=g.$u(a,QFa))?void 0:e.request)&&b.YG)return!!b.YG[c];for(var f in a)if(b.VG[f])return!0;return!1}; SFa=function(a,b){var c,d=null==(c=g.$u(a,PFa))?void 0:c.signal;if(d&&b.Ot&&(c=b.Ot[d]))return c();var e;if((c=null==(e=g.$u(a,QFa))?void 0:e.request)&&b.YG&&(e=b.YG[c]))return e();for(var f in a)if(b.VG[f]&&(a=b.VG[f]))return a()}; lM=function(a){this.name=a}; mM=function(){this.key=TFa}; UFa=function(){this.providers=new Map;this.j=new Map}; oM=function(a,b,c,d){d=void 0===d?!1:d;if(-1a}; sGa=function(a,b){a.program&&(2===g.KM.state?0:ZM(b.s4))&&(nB("bg_i",void 0,"player_att"),g.KM.initialize(a,function(){var c=a.serverEnvironment;nB("bg_l",void 0,"player_att");MM=(0,g.T)();for(var d=0;d<$M.length;d++){var e=$M[d];try{e(c)}catch(f){}}},b.cspNonce))}; tGa=function(a){a=void 0===a?{}:a;return g.KM.invoke(a)}; uGa=function(a){var b=g.bu("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return rGa(a,b)}; wGa=function(a,b,c,d){var e=window.location.search;if(38===b.Aa&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.xi("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.tU});if(30===b.Aa&&"docs"===a.playerStyle)return g.xi("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.authUser,authkey:b.authKey,eurl:a.Be});if(33===b.Aa&&"google-live"===a.playerStyle)return g.xi("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId}); "yt"!==a.La&&g.qz(Error("getVideoInfoUrl for invalid namespace: "+a.La));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Be,ps:a.playerStyle,el:pI(b),hl:a.rg,list:b.playlistId,agcid:b.SL,aqi:b.adQueryId,sts:19236,lact:Ox()};Object.assign(f,a.deviceParams);a.forcedExperiments&&(f.forced_experiments=a.forcedExperiments);b.Ba?(f.vvt=b.Ba,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):g.tI(b)&&(f.access_token=g.tI(b));b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&& (f.slot_pos=b.slotPosition);b.breakType&&(f.break_type=b.breakType);null!==b.hK&&(f.ad_id=b.hK);null!==b.cL&&(f.ad_sys=b.cL);null!==b.kF&&(f.encoded_ad_playback_context=b.kF);b.WI&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.jb&&2!==a.jb&&(f.cc_load_policy=a.jb);var h=g.rv(g.qv.getInstance(),65);g.oG(a)&&null!=h&&!h&&(f.device_captions_on="1");a.mute&&(f.mute=a.mute);b.annotationsLoadPolicy&&2!==a.annotationsLoadPolicy&&(f.iv_load_policy=b.annotationsLoadPolicy); b.ir&&(f.endscreen_ad_tracking=b.ir);(h=a.oa.get(b.videoId))&&h.PA&&(f.ic_track=h.PA);b.La&&(f.itct=b.La);sI(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.Wm&&(f.autonav="1");b.WF&&(f.noiba="1");b.isMdxPlayback&&(f.mdx="1",f.ytr=b.di);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Pn&&(f.ytrcc=b.Pn);b.aG&&(f.utpsa="1");b.isFling&&(f.is_fling="1");b.isInlinePlaybackNoAd&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.forceAdsUrl&&(h=3===b.forceAdsUrl.split("|").length,f.force_ad_params= h?b.forceAdsUrl:"||"+b.forceAdsUrl);b.xg&&(f.preload=b.xg);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.Li&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");qI(b)&&(f.content_v=qI(b));b.Ub&&(f.livemonitor=1);a.authUser&&(f.authuser=a.authUser);a.pageId&&(f.pageid=a.pageId);a.Ta&&(f.ei=a.Ta);a.u&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.C&&b.fG&&(f.live_start_walltime=b.fG);a.C&&b.Lk&&(f.live_manifest_duration=b.Lk);a.C&&b.playerParams&&(f.player_params= b.playerParams);a.C&&b.cycToken&&(f.cyc=b.cycToken);a.C&&b.lJ&&(f.tkn=b.lJ);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.jc&&(f.kpt=b.jc);b.cm&&(f.kids_age_up_mode=b.cm);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.Uu&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.oa?(c=null!=b.oa.latitudeE7&&null!=b.oa.longitudeE7?b.oa.latitudeE7+","+b.oa.longitudeE7:",",c+=","+(b.oa.clientPermissionState||0)+","+(b.oa.locationRadiusMeters|| "")+","+(b.oa.locationOverrideToken||"")):c=null;c&&(f.uloc=c);b.Yl&&(f.internalipoverride=b.Yl);a.embedConfig&&(f.embed_config=a.embedConfig);a.Lj&&(f.co_rel="1");0r.length)){q={applicationState:q? "INACTIVE":"ACTIVE",clientFormFactor:FGa[r[1]]||"UNKNOWN_FORM_FACTOR",clientName:GGa[r[0]]||"UNKNOWN_INTERFACE",clientVersion:r[2]||"",platform:HGa[r[1]]||"UNKNOWN_PLATFORM"};r=void 0;if(n){w=void 0;try{w=JSON.parse(n)}catch(B){g.rz(B)}w&&(r={params:[{key:"ms",value:w.ms}]},q.osName=w.os_name,q.userAgent=w.user_agent,q.windowHeightPoints=w.window_height_points,q.windowWidthPoints=w.window_width_points)}l.push({adSignalsInfo:r,remoteClient:q})}m.remoteContexts=l}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext= {mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}});h.mdxContext=m;m=b.width;0d&&(d=-(d+1));g.oh(a,b,d);b.setAttribute("data-layer",String(c))}; g.BN=function(a){var b=a.V();if(!b.ud)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.K("allow_poltergust_autoplay"))&&!yI(c);d=c.isLivePlayback&&(!b.K("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.K("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.hasNext();var f=c.watchNextResponse&&c.watchNextResponse.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.D&&f;return!c.ypcPreview&& (!d||e)&&!g.Vb(c.ya,"ypc")&&!a&&(!g.LF(b)||f)}; eHa=function(a){a=g.oN(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.j||b.tN)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.B.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.va("iqss",{trigger:d},!0),!0):!1}; g.CN=function(a,b,c,d){d=void 0===d?!1:d;g.YK.call(this,b);var e=this;this.G=a;this.Ba=d;this.J=new g.YD(this);this.Z=new g.JL(this,c,!0,void 0,void 0,function(){e.u&&e.element&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),e.focus())}); g.N(this,this.J);g.N(this,this.Z)}; fHa=function(a){a.u&&(document.activeElement&&g.rh(a.element,document.activeElement)&&(th(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.bz(a.J);a.S=void 0}; DN=function(a,b,c){a.wh()?a.Bb():a.Pc(b,c)}; EN=function(a,b,c,d){d=new g.W({F:"div",Fa:["ytp-linked-account-popup-button"],qa:d,X:{role:"button",tabindex:"0"}});b=new g.W({F:"div",N:"ytp-linked-account-popup",X:{role:"dialog","aria-modal":"true",tabindex:"-1"},W:[{F:"div",N:"ytp-linked-account-popup-title",qa:b},{F:"div",N:"ytp-linked-account-popup-description",qa:c},{F:"div",N:"ytp-linked-account-popup-buttons",W:[d]}]});g.CN.call(this,a,{F:"div",N:"ytp-linked-account-popup-container",W:[b]},100);var e=this;this.dialog=b;g.N(this,this.dialog); d.Ra("click",function(){e.Bb()}); g.N(this,d);g.AN(this.G,this.element,4);this.hide()}; g.FN=function(a,b,c,d){g.YK.call(this,a);this.priority=b;c&&this.Kg(c);d&&this.Sd(d)}; g.GN=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{F:c?"a":"div",Fa:b,X:a,W:[{F:"div",N:"ytp-menuitem-icon",qa:"{{icon}}"},{F:"div",N:"ytp-menuitem-label",qa:"{{label}}"},{F:"div",N:"ytp-menuitem-content",qa:"{{content}}"}]}}; HN=function(a,b){a.Oa("icon",b)}; IN=function(a){g.FN.call(this,g.GN({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.G=a;this.u=this.j=!1;this.ob=a.Gm();a.Sg(this.element,this,!0);this.T(this.G,"settingsMenuVisibilityChanged",function(c){b.Vb(c)}); this.T(this.G,"videodatachange",this.C);this.Ra("click",this.onClick);this.C()}; JN=function(a){return a?g.zA(a):""}; KN=function(a){g.K.call(this);this.api=a}; LN=function(a){KN.call(this,a);var b=this;kN(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)}); kN(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)}); a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)}); a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new IN(b.api);g.N(b,b.menuItem)})}; MN=function(a,b){g.FN.call(this,g.GN({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{F:"div",N:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Ra("click",this.onClick)}; NN=function(a){var b=a.K("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";MN.call(this,b,13);this.G=a;this.j=!1;this.ob=a.Gm();HN(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select", this.u,this)}; gHa=function(){g.qv.getInstance();return g.rv(0,192)?g.rv(0,190):!0}; ON=function(a){KN.call(this,a);var b=this;this.j=!1;var c;this.K("web_cinematic_watch_settings")&&(null==(c=a.V().webPlayerContextConfig)?0:c.cinematicSettingsAvailable)&&(a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new NN(b.api);g.N(b,b.menuItem);b.menuItem.Ja(b.j)}),kN(a,"updateCinematicSettings",function(d){b.updateCinematicSettings(d)}))}; iHa=function(a){KN.call(this,a);var b=this;this.events=new g.YD(a);g.N(this,this.events);this.K("enable_precise_embargos")&&(this.events.T(a,"videodatachange",function(){var c=b.api.getVideoData();b.api.Ff("embargo",1);(null==c?0:c.cueRanges)&&hHa(b,c)}),this.events.T(a,g.uA("embargo"),function(){b.api.jg("heartbeat.stop",2,"This video isn't available in your current playback area")}))}; jHa=function(a){function b(d){return void 0!==(null==d?void 0:d.embargo)} var c;return null==(c=a.onEnter)?void 0:c.some(b)}; hHa=function(a,b){if(null==b?0:yI(b)){var c;null==(c=b.cueRanges)||c.filter(function(d){return jHa(d)}).forEach(function(d){var e,f=Number(null==(e=d.playbackPosition)?void 0:e.utcTimeMillis)/1E3,h; d=f+Number(null==(h=d.duration)?void 0:h.seconds);a.api.addUtcCueRange("embargo",f,d,"embargo",!1)})}}; PN=function(a,b){g.W.call(this,{F:"button",Fa:["ytp-fullerscreen-edu-button","ytp-button"],W:[{F:"div",Fa:["ytp-fullerscreen-edu-text"],qa:"Scroll for details"},{F:"div",Fa:["ytp-fullerscreen-edu-chevron"],W:[{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Va=a;this.B=b;this.j=new g.JL(this,250,void 0,100);this.C=this.u=!1;a.vb(this.element,this,61214);this.B=b;g.N(this,this.j);this.T(a, "fullscreentoggled",this.Ja);this.T(a,"presentingplayerstatechange",this.Ja);this.Ra("click",this.onClick);this.Ja()}; QN=function(a){KN.call(this,a);var b=this;this.events=new g.YD(a);g.N(this,this.events);kN(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)}); kN(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)}); var c=a.V();a.K("external_fullscreen_with_edu")&&c.externalFullscreen&&iG(c)&&this.events.T(a,"basechromeinitialized",function(){var d=g.qN(a);b.j=new PN(a,d);g.N(b,b.j);d.GB(b.j)})}; kHa=function(a){g.W.call(this,{F:"div",N:"ytp-gated-actions-overlay",W:[{F:"div",N:"ytp-gated-actions-overlay-background",W:[{F:"div",N:"ytp-gated-actions-overlay-background-overlay"}]},{F:"div",N:"ytp-gated-actions-overlay-bar",W:[{F:"div",N:"ytp-gated-actions-overlay-text-container",W:[{F:"div",N:"ytp-gated-actions-overlay-title",qa:"{{title}}"},{F:"div",N:"ytp-gated-actions-overlay-subtitle",qa:"{{subtitle}}"}]},{F:"div",N:"ytp-gated-actions-overlay-button-container"}]}]});this.api=a;this.background= this.Ca("ytp-gated-actions-overlay-background");this.u=this.Ca("ytp-gated-actions-overlay-button-container");this.j=[];this.hide()}; nHa=function(a,b){var c=0,d={};for(c=0;ce&&(e=l.width,f="url("+l.url+")")}c.background.style.backgroundImage=f;nHa(c,d.actionButtons||[]);c.show()}else c.hide()}),g.AN(this.api,this.j.element,4))}; RN=function(a){KN.call(this,a);var b=this;kN(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()})}; pHa=function(a,b,c){var d=[],e=b?156595:151874;a=g.t(a);for(var f=a.next();!f.done;f=a.next()){var h=f.value;f=h.video;h={formatId:h.id,qualityLabel:f.qualityLabel,quality:f.quality,isPlayable:b};if(f=c.get(f.qualityLabel))h.paygatedQualityDetails={paygatedIndicatorText:f.paygatedIndicatorText,endpoint:f.endpoint,veType:e,trackingParams:f.trackingParams};d.push(h)}return d}; SN=function(a){KN.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.tb=null;var c;this.useLivingRoomPoToken=!(null==(c=a.V().webPlayerContextConfig)||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.tb=a.Gi();b.K("html5_generate_session_po_token")&&!b.useLivingRoomPoToken&&(b.tb.kh("pot_isc"),b.K("html5_webpo_idle_priority_job")?g.Bv(g.Dv(),function(){qHa(b)}):qHa(b))}); a.JK(this)}; qHa=function(a){a.tb.kh("pot_ist");var b=a.api.V(),c=a.K("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN",d=a.K("html5_po_token_enable_webpo_experimental")?"bxNLZUJrsnkb8KzwCOTR":"O43z0dpjhgX20SCx4KAo";c=g.bG(b)?c:d;a.K("html5_placeholder_po_tokens")&&(c="2ZCPXHYZSpebQXqOYNtj");try{if(a.j=xga({ih:c,onError:function(f){g.rz(f)}}),!a.K("html5_generate_content_po_token")){a.j.ready().then(function(){a.tb.kh("pot_if"); rHa(a)}); var e=g.SE(b.experiments,"html5_session_po_token_interval_time_ms");0=a.length?0:b}; yHa=function(a){var b=a.index-1;return 0>b?a.length-1:b}; g.ZN=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.GH(a.u,b),g.N(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e}; $N=function(a,b){a.index=g.Fg(b,0,a.length-1);a.startSeconds=0}; aO=function(a,b){if(b.video&&b.video.length){a.title=b.title||"";a.description=b.description;a.views=b.views;a.likes=b.likes;a.dislikes=b.dislikes;a.author=b.author||"";var c=b.loop;c&&(a.loop=c);c=g.ZN(a);a.items=[];for(var d=g.t(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;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}}; BHa=function(a,b){var c,d,e,f,h,l;return g.A(function(m){if(1==m.j){c=g.FM();var n=a.V(),p={context:g.fN(a)};n.K("embeds_enable_sending_ancestor_origins_killswitch")||(p.playbackContext={contentPlaybackContext:{ancestorOrigins:n.ancestorOrigins}});n=n.embedConfig;var q=b.docid||b.video_id||b.videoId||b.id;if(!q){q=b.raw_embedded_player_response;if(!q&&!g.S("parse_video_id_from_serialized_embedded_player_response_killswitch")){var r=b.embedded_player_response;r&&(q=JSON.parse(r))}if(q){var w,y,z,B, D,G,H;q=(null==(w=q)?void 0:null==(y=w.embedPreview)?void 0:null==(z=y.thumbnailPreviewRenderer)?void 0:null==(B=z.playButton)?void 0:null==(D=B.buttonRenderer)?void 0:null==(G=D.navigationEndpoint)?void 0:null==(H=G.watchEndpoint)?void 0:H.videoId)||null}else q=null}w=(w=q)?w:void 0;y=a.playlistId?a.playlistId:b.list;z=b.listType;if(y){var L;"user_uploads"===z?L={username:y}:L={playlistId:y};zHa(n,w,b,L);p.playlistRequest=L}else b.playlist?(L={templistVideoIds:b.playlist.toString().split(",")},zHa(n, w,b,L),p.playlistRequest=L):w&&(L={videoId:w},n&&(L.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=L);d=p;e=g.qM(AHa);g.pa(m,2);return g.x(m,g.zK(c,d,e),4)}if(2!=m.j)return f=m.u,h=a.V(),b.raw_embedded_player_response=f,h.K("embeds_pfl_cue_killswitch")||(h.ea=jv(b,g.LF(h)),h.B="EMBEDDED_PLAYER_MODE_PFL"===h.ea),m.return(new g.GH(h,b));l=g.ua(m);g.qz(l);return m.return(a)})}; zHa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)}; g.cO=function(a,b){bO.get(a);bO.set(a,b)}; g.dO=function(a){g.cz.call(this);this.loaded=!1;this.player=a}; CHa=function(){this.u=[];this.j=[]}; g.eO=function(a,b){return b?a.j.concat(a.u):a.j}; g.fO=function(a,b){switch(b.kind){case "asr":DHa(b,a.u);break;default:DHa(b,a.j)}}; DHa=function(a,b){g.Rb(b,function(c){return a.equals(c)})||b.push(a)}; g.gO=function(a){g.K.call(this);this.Y=a;this.j=new CHa;this.C=[]}; g.hO=function(a,b,c){g.gO.call(this,a);this.audioTrack=c;this.u=null;this.C=b.NG}; EHa=function(){this.j=this.aj=!1}; FHa=function(a,b){b=void 0===b?{}:b;var c=void 0===b.Nm?!1:b.Nm,d=new EHa;d.aj=(void 0===b.hasSubfragmentedFmp4?!1:b.hasSubfragmentedFmp4)||c;d.j=a.K("html5_early_read_chunk");return d}; g.iO=function(a){this.j=a;this.D=new EHa;this.hm=this.gm=!1;this.Ul=2;this.J=20971520;this.oa=8388608;this.I=120;this.Hc=3145728;this.Xa=62914560;this.Lc=10485760;this.Wl=g.SE(this.j.experiments,"html5_min_readbehind_secs");this.Qu=g.SE(this.j.experiments,"html5_min_readbehind_cap_secs");this.Pu=g.SE(this.j.experiments,"html5_max_readbehind_secs");this.ov=this.j.K("html5_trim_future_discontiguous_ranges");this.Rb=NaN;this.iq=this.Nk=this.rr=2;this.jb=2097152;this.hq=1048576;this.Lb=!1;this.Mw=1800; this.Vl=this.Sl=5;this.La=15;this.kf=1;this.B=1.15;this.C=1.05;this.Pk=1;this.Zl=!0;this.Ba=!1;this.jq=.8;this.Pj=this.zb=!1;this.jd=6;this.ea=this.Rc=!1;this.le=0;this.Xl=this.j.K("html5_new_min_startup_smooth_logic");this.ud=0;this.Hu=this.j.K("html5_append_init_while_paused");this.jm=g.SE(this.j.experiments,"html5_post_interrupt_readahead");this.cm=!1;this.Gd=5E3;this.jr=100;this.rg=10;this.Ru=g.SE(this.j.experiments,"html5_offline_failure_retry_limit")||2;this.Zt=g.SE(this.j.experiments,"html5_ssdai_failure_retry_limit")|| 3;this.Lj=this.j.experiments.ib("html5_clone_original_for_fallback_location");this.Nh=1;this.Vi=1.6;this.zc=!1;this.Aa=.5;this.Be=2;this.me=this.er=0;this.gr=1.5;this.ir=this.Wi=.5;this.vg=15;this.Rl=1;this.St=this.Td=!1;this.Tl=0;this.Tn=this.au=this.Sk=this.nm=this.fm=!1;this.Am=0;this.Zm=2;this.Yt=this.Kj=!1;this.xg=0;this.Ia=this.Zq=this.Th=!1;this.Az=this.j.K("html5_webm_init_skipping");this.Qh=!1;this.rb=!0;this.Oe=this.Md=this.mm=this.kb=!1;this.Mj=!0;this.Oi=!1;this.u="";this.Lu=1048576;this.Ne= [];this.Nu=this.j.K("html5_woffle_resume");this.jc=!0;this.Qj=this.Gk=this.jf=!1;this.Rg=46800;this.Dt=this.Qk=this.Ok=this.Xp=this.zf=this.ya=!1;this.Z=0;this.Nj="";this.Ku=this.j.K("html5_disable_codec_for_playback_on_error");this.Hk=this.pu=this.Oj=this.Li=!1;this.Vk=0;this.Wu=Tu();this.Xt=this.Tk=!1;this.Iu=this.j.K("html5_skip_buffer_check_seek_to_head");this.Ce=!1;this.Ou=this.j.K("html5_flush_segment_index_on_error");this.Lk=!1;this.Tg=8192;this.bb=this.Hd=!1;this.ut=1;this.Hv=this.j.K("html5_onesie_live"); this.Zv=this.j.K("html5_onesie_premieres");this.Tt=this.j.K("html5_seek_for_index_reset_killswitch");this.Su=g.SE(this.j.experiments,"html5_onesie_live_ttl_secs")||8;this.Yl=g.SE(this.j.experiments,"html5_attach_num_random_bytes_to_bandaid");this.Xu=this.j.K("html5_self_init_consolidation");this.Yq=this.j.K("html5_stream_metadata");this.xc=this.j.K("html5_onesie_ads");this.Ju=this.j.K("html5_live_partial_response_resumable");this.wg=this.j.K("html5_ssdai_log_ad_transition_info");this.Uu=g.SE(this.j.experiments, "html5_onesie_request_timeout_ms")||3E3;this.Tu=this.j.K("html5_onesie_nonzero_playback_start");this.Qa=this.j.K("html5_ssdai_use_post_for_media")&&this.j.K("gab_return_sabr_ssdai_config");this.lr=this.j.K("html5_use_post_for_media");this.Aj=this.j.K("html5_ssdai_enable_new_seek_logic");this.Yu=this.j.K("html5_skip_ssdai_ad_init");this.Vu=this.j.K("html5_precoalesce");this.useUmp=this.j.K("html5_use_ump");this.Ta=this.S=!1;this.Ub=this.j.K("html5_enable_atv_offline");this.lm=this.j.K("html5_prefer_drc")}; GHa=function(a,b){1080Math.random()){var B=new g.Qv("Unable to load player module",b,document.location&&document.location.origin);g.qz(B)}xh(e);r&&r(z)}; var w=m,y=w.onreadystatechange;w.onreadystatechange=function(z){switch(w.readyState){case "loaded":case "complete":xh(f)}y&&y(z)}; l&&((h=a.G.V().cspNonce)&&m.setAttribute("nonce",h),g.gj(m,g.mg(b)),h=g.ah("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.af(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))}; xO=function(a,b,c){g.bf.call(this,b,a);this.j=c}; g.yO=function(a){UJ.call(this);var b=this;this.j=a;this.I={};this.listener=function(c){b.dispatchEvent(new xO(b,c.type,c))}}; AO=function(a,b,c,d,e){g.cz.call(this);var f=this;this.target=a;this.RB=b;this.u=0;this.I=!1;this.C=new g.Jg(NaN,NaN);this.j=new g.YD(this);this.Aa=this.B=this.J=null;g.N(this,this.j);b=d||e?4E3:3E3;this.Z=new g.Yn(function(){zO(f,1,!1)},b,this); g.N(this,this.Z);this.ea=new g.Yn(function(){zO(f,2,!1)},b,this); g.N(this,this.ea);this.oa=new g.Yn(function(){zO(f,512,!1)},b,this); g.N(this,this.oa);this.ya=c&&0=c.width||!c.height||0>=c.height||g.pA(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b}; cIa=function(a){var b=a.G.Eb();b=b.isCued()||b.isError()?"none":g.eK(b)?"playing":"paused";a.mediaSession.playbackState=b}; PO=function(a){g.W.call(this,{F:"div",N:"ytp-paid-content-overlay",X:{"aria-live":"assertive","aria-atomic":"true"}});this.G=a;this.videoId=null;this.B=!1;this.Bd=this.j=null;var b=a.V();a.K("enable_new_paid_product_placement")&&!g.nG(b)?(this.u=new g.W({F:"a",N:"ytp-paid-content-overlay-link",X:{href:"{{href}}",target:"_blank"},W:[{F:"div",N:"ytp-paid-content-overlay-icon",qa:"{{icon}}"},{F:"div",N:"ytp-paid-content-overlay-text",qa:"{{text}}"},{F:"div",N:"ytp-paid-content-overlay-chevron",qa:"{{chevron}}"}]}), this.T(this.u.element,"click",this.onClick)):this.u=new g.W({F:"div",Fa:["ytp-button","ytp-paid-content-overlay-text"],qa:"{{text}}"});this.C=new g.JL(this.u,250,!1,100);g.N(this,this.u);this.u.Da(this.element);g.N(this,this.C);this.G.Sg(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Tc)}; eIa=function(a,b){var c=LBa(b),d=dI(b);b.Oe&&a.G.ql()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.ao(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&dIa(a,d,c,b)):c&&d&&dIa(a,d,c,b))}; dIa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.Yn(a.Bb,b,a);g.N(a,a.j);var e,f;b=null==(e=d.getPlayerResponse())?void 0:null==(f=e.paidContentOverlay)?void 0:f.paidContentOverlayRenderer;e=null==b?void 0:b.navigationEndpoint;var h;f=null==b?void 0:null==(h=b.icon)?void 0:h.iconType;var l;h=null==(l=g.$u(e,g.QH))?void 0:l.url;a.G.oi(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!=h?h:"#",text:c,icon:"MONEY_HAND"===f?{F:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 24 24", width:"100%"},W:[{F:"path",X:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z", fill:"white"}}]}:null,chevron:h?g.cL():null})}; fIa=function(a,b){a.j&&(g.V(b,8)&&a.B?(a.B=!1,a.Pc(),a.j.start()):(g.V(b,2)||g.V(b,64))&&a.videoId&&(a.videoId=null))}; QO=function(a){g.W.call(this,{F:"div",N:"ytp-spinner",W:[GO(),{F:"div",N:"ytp-spinner-message",qa:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Ca("ytp-spinner-message");this.j=new g.Yn(this.show,500,this);g.N(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.u);this.Uc(a.Eb())}; RO=function(a){var b=g.KE(a.V().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{F:"div",Fa:["ytp-unmute-icon"],W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{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"}}]}]}, {F:"div",Fa:["ytp-unmute-text"],qa:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({F:"div",Fa:["ytp-unmute-box"],W:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.CN.call(this,a,{F:"button",Fa:["ytp-unmute","ytp-popup","ytp-button"].concat(c),W:[{F:"div",N:"ytp-unmute-inner",W:d}]},100);this.j=this.clicked=!1;this.api=a;this.api.vb(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange", this.Bh);this.Ra("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.LF(this.api.V());g.XK(this,a);a&&gIa(this);this.B=a}; gIa=function(a){a.j||(a.j=!0,a.api.Wa(a.element,!0))}; g.TO=function(a){g.YD.call(this);var b=this;this.api=a;this.aJ=!1;this.Um=null;this.bC=!1;this.Bf=null;this.aH=this.ME=!1;this.nL=this.pL=null;this.gQ=NaN;this.mL=this.Ay=!1;this.Lz=0;this.qG=[];this.SJ=!1;this.UC={height:0,width:0};var c=a.V(),d=a.fb();this.UC=a.getPlayerSize();this.UN=new g.Yn(this.pJ,0,this);g.N(this,this.UN);g.WF(c)||(this.Rn=new g.DO(a),g.N(this,this.Rn),g.AN(a,this.Rn.element,4));if(hIa(this)){var e=new QO(a);g.N(this,e);e=e.element;g.AN(a,e,4)}var f=a.getVideoData();this.Zd= new AO(d,function(l){return b.RB(l)},f,c.kf,pG(c)); g.N(this,this.Zd);this.Zd.subscribe("autohideupdate",this.zl,this);if(!c.disablePaidContentOverlay){var h=new PO(a);g.N(this,h);g.AN(a,h.element,4)}this.QE=new RO(a);g.N(this,this.QE);g.AN(this.api,this.QE.element,2);this.oI=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.IE=new g.Yn(this.gx,200,this);g.N(this,this.IE);this.ow=f.videoId;this.kS=new g.Yn(function(){b.Lz=0},350); g.N(this,this.kS);this.gC=new g.Yn(function(){b.mL||SO(b)},350,this); g.N(this,this.gC);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.go(f,"ytp-color-white")}g.WF(c)&&g.go(f,"ytp-music-player");!a.K("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new NO(a),g.N(this,f));this.T(a,"appresize",this.Cb);this.T(a,"presentingplayerstatechange",this.Bh);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.o2);this.T(a,"autonavvisibility", function(){b.Bn()}); this.T(a,"sizestylechange",function(){b.Bn()}); this.T(d,"click",this.P2,this);this.T(d,"dblclick",this.Q2,this);c.kb&&(this.T(d,"gesturechange",this.R2,this),this.T(d,"gestureend",this.S2,this));this.qq=[d.oy];this.Rn&&this.qq.push(this.Rn.element);e&&this.qq.push(e)}; UO=function(a,b){if(!b)return!1;var c=a.api.Qd();if(c.Cr()&&(c=c.yf())&&g.rh(c,b))return c.controls;for(c=0;c1+b&&a.api.toggleFullscreen()}; hIa=function(a){a=Ou()&&67<=wma()&&!a.api.V().I;return!Nu("tizen")&&!IF&&!a&&!0}; WO=function(a,b){b=void 0===b?2:b;g.cz.call(this);this.api=a;this.j=null;this.Wc=new $y(this);g.N(this,this.Wc);this.u=JFa;this.Wc.T(this.api,"presentingplayerstatechange",this.Tc);this.j=this.Wc.T(this.api,"progresssync",this.Zb);this.Kl=b;1===this.Kl&&this.Zb()}; XO=function(a){g.W.call(this,{F:"button",Fa:["ytp-button","ytp-back-button"],W:[{F:"div",N:"ytp-arrow-back-icon",W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",Ob:!0,X:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.G=a;g.XK(this,a.V().showBackButton);this.Ra("click",this.onClick)}; g.YO=function(a){g.W.call(this,{F:"div",W:[{F:"div",N:"ytp-bezel-text-wrapper",W:[{F:"div",N:"ytp-bezel-text",qa:"{{title}}"}]},{F:"div",N:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},W:[{F:"div",N:"ytp-bezel-icon",qa:"{{icon}}"}]}]});this.G=a;this.u=new g.Yn(this.show,10,this);this.j=new g.Yn(this.hide,500,this);g.N(this,this.u);g.N(this,this.j);this.hide()}; $O=function(a,b,c){if(0>=b){c=mL();b="muted";var d=0}else c=c?{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,X:{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"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,X:{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"}}]},d=Math.floor(b),b=d+"volume";ZO(a,c,b,d+"%")}; lIa=function(a,b){b=b?{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{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"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};var c=a.G.getPlaybackRate(),d=g.GJ("Speed is $RATE",{RATE:String(c)});ZO(a,b,d,c+"x")}; mIa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";ZO(a,WHa(),b)}; ZO=function(a,b,c,d){d=void 0===d?"":d;a.Oa("label",void 0===c?"":c);pG(a.G.V())?a.Oa("icon",null):a.Oa("icon",b);g.ao(a.j);a.u.start();a.Oa("title",d);g.ko(a.element,"ytp-bezel-text-hide",!d)}; bP=function(a,b,c){g.W.call(this,{F:"button",Fa:["ytp-button","ytp-cards-button"],X:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.LF(a.V()))},W:[{F:"span",N:"ytp-cards-button-icon-default",W:[{F:"div",N:"ytp-cards-button-icon",W:[a.V().K("player_new_info_card_format")?gFa():{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{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"}}]}]}, {F:"div",N:"ytp-cards-button-title",qa:"Info"}]},{F:"span",N:"ytp-cards-button-icon-shopping",W:[{F:"div",N:"ytp-cards-button-icon",W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",N:"ytp-svg-shadow",X:{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"}},{F:"path",N:"ytp-svg-fill",X:{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"}},{F:"path",N:"ytp-svg-shadow-fill",X:{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"}}]}]},{F:"div", N:"ytp-cards-button-title",qa:"Shopping"}]}]});this.G=a;this.B=b;this.C=c;this.j=null;this.u=new g.JL(this,250,!0,100);g.N(this,this.u);g.ko(this.C,"ytp-show-cards-title",g.LF(a.V()));this.hide();this.Ra("click",this.onClicked);this.Ra("mouseover",this.I1);aP(this,!0)}; aP=function(a,b){b?a.j=g.cP(a.B.vc(),a.element):(a.j=a.j,a.j(),a.j=null)}; dP=function(a,b,c){g.W.call(this,{F:"div",N:"ytp-cards-teaser",W:[{F:"div",N:"ytp-cards-teaser-box"},{F:"div",N:"ytp-cards-teaser-text",W:a.V().K("player_new_info_card_format")?[{F:"button",N:"ytp-cards-teaser-info-icon",X:{"aria-label":"Show cards","aria-haspopup":"true"},W:[gFa()]},{F:"span",N:"ytp-cards-teaser-label",qa:"{{text}}"},{F:"button",N:"ytp-cards-teaser-close-button",X:{"aria-label":"Close"},W:[g.dL()]}]:[{F:"span",N:"ytp-cards-teaser-label",qa:"{{text}}"}]}]});var d=this;this.G=a;this.Z= b;this.Ih=c;this.C=new g.JL(this,250,!1,250);this.j=null;this.J=new g.Yn(this.W1,300,this);this.I=new g.Yn(this.V1,2E3,this);this.D=[];this.u=null;this.S=new g.Yn(function(){d.element.style.margin="0"},250); this.onClickCommand=this.B=null;g.N(this,this.C);g.N(this,this.J);g.N(this,this.I);g.N(this,this.S);a.V().K("player_new_info_card_format")?(g.go(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Ca("ytp-cards-teaser-close-button"),"click",this.vk),this.T(this.Ca("ytp-cards-teaser-info-icon"),"click",this.dL),this.T(this.Ca("ytp-cards-teaser-label"),"click",this.dL)):this.Ra("click",this.dL);this.T(c.element,"mouseover",this.dN);this.T(c.element,"mouseout",this.cN);this.T(a,"cardsteasershow", this.u3);this.T(a,"cardsteaserhide",this.Bb);this.T(a,"cardstatechange",this.pT);this.T(a,"presentingplayerstatechange",this.pT);this.T(a,"appresize",this.DL);this.T(a,"onShowControls",this.DL);this.T(a,"onHideControls",this.nY);this.Ra("mouseenter",this.PV)}; fP=function(a){g.W.call(this,{F:"button",Fa:[eP.BUTTON,eP.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},W:[{F:"div",N:eP.TITLE_NOTIFICATIONS_ON,X:{title:"Stop receiving notifications about every new video","aria-label":"Notify subscriptions"},W:[g.hL()]},{F:"div",N:eP.TITLE_NOTIFICATIONS_OFF,X:{title:"Receive notifications about every new video","aria-label":"Notify subscriptions"},W:[{F:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{F:"path", X:{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.j=!1;a.vb(this.element,this,36927);this.Ra("click",this.onClick,this);this.Oa("pressed",!1);this.Oa("label","Receive notifications about every new video")}; nIa=function(a,b){a.j=b;a.element.classList.toggle(eP.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.iK:c.YJ)?(a=a.api.Em())?vM(a,b):g.fu(Error("No innertube service available when updating notification preferences.")):g.fu(Error("No update preferences command available.")):g.fu(Error("No video data when updating notification preferences."))}; g.hP=function(a,b,c,d,e,f,h,l,m,n,p,q,r){r=void 0===r?null:r;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 w=q.V();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.RF(w)||g.VF(w))c.target=w.J;g.W.call(this,{F:"div",Fa:["ytp-button","ytp-sb"],W:[{F:"a",N:"ytp-sb-subscribe",X:c,W:[{F:"div",N:"ytp-sb-text",W:[{F:"div",N:"ytp-sb-icon"},a]},b?{F:"div",N:"ytp-sb-count",qa:b}:""]}]});f&&g.go(this.element, "ytp-sb-classic");this.channelId=h;this.j=r}else{p=w.userDisplayName&&g.RF(w)&&!w.K("subscribe_tooltipkillswitch");g.W.call(this,{F:"div",Fa:["ytp-button","ytp-sb"],W:[{F:"div",N:"ytp-sb-subscribe",X:p?{title:g.GJ("Subscribe as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":tG(w),"data-tooltip-opaque":String(g.LF(w)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},W:[{F:"div",N:"ytp-sb-text",W:[{F:"div",N:"ytp-sb-icon"},a]},b? {F:"div",N:"ytp-sb-count",qa:b}:""]},{F:"div",N:"ytp-sb-unsubscribe",X:p?{title:g.GJ("Subscribed as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Unsubscribe from channel","data-tooltip-image":tG(w),"data-tooltip-opaque":String(g.LF(w)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe from channel"},W:[{F:"div",N:"ytp-sb-text",W:[{F:"div",N:"ytp-sb-icon"},c]},d?{F:"div",N:"ytp-sb-count",qa:d}:""]}]});var y=this;this.channelId=h;this.j=r;var z=this.Ca("ytp-sb-subscribe"),B=this.Ca("ytp-sb-unsubscribe"); f&&g.go(this.element,"ytp-sb-classic");if(e){l?this.u():this.B();var D=function(){var H=y.channelId;if(m||n){var L={c:H};if(q.V().K("embeds_botguard_with_subscribe_killswitch"))L="";else{var M;g.KM.isInitialized()&&(M=tGa(L));L=M||""}if(M=q.getVideoData())if(M=M.subscribeCommand){var J=q.Em();J?(vM(J,M,{botguardResponse:L,feature:m}),q.Pa("SUBSCRIBE",H)):g.fu(Error("No innertube service available when updating subscriptions."))}else g.fu(Error("No subscribe command in videoData."));else g.fu(Error("No video data available when updating subscription."))}B.focus(); B.removeAttribute("aria-hidden");z.setAttribute("aria-hidden","true")},G=function(){var H=y.channelId; if(m||n){var L=q.getVideoData();vM(q.Em(),L.unsubscribeCommand,{feature:m});q.Pa("UNSUBSCRIBE",H)}z.focus();z.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")}; this.T(z,"click",D);this.T(B,"click",G);this.T(z,"keypress",function(H){13===H.keyCode&&D(H)}); this.T(B,"keypress",function(H){13===H.keyCode&&G(H)}); this.T(q,"SUBSCRIBE",this.u);this.T(q,"UNSUBSCRIBE",this.B);this.j&&p&&(this.tooltip=this.j.vc(),gP(this.tooltip),g.af(this,g.cP(this.tooltip,z)),g.af(this,g.cP(this.tooltip,B)))}else g.go(z,"ytp-sb-disabled"),g.go(B,"ytp-sb-disabled")}}; iP=function(a,b){g.W.call(this,{F:"div",N:"ytp-title-channel",W:[{F:"div",N:"ytp-title-beacon"},{F:"a",N:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:a.V().J,"aria-label":"{{channelLogoLabel}}"}},{F:"div",N:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},W:[{F:"div",N:"ytp-title-expanded-heading",W:[{F:"div",N:"ytp-title-expanded-title",W:[{F:"a",qa:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.V().J,tabIndex:"{{channelTitleFocusable}}"}}]},{F:"div", N:"ytp-title-expanded-subtitle",qa:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.I=b;this.channel=this.Ca("ytp-title-channel");this.j=this.Ca("ytp-title-channel-logo");this.C=this.Ca("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.D=g.LF(this.api.V());a.vb(this.j,this,36925);this.D&&oIa(this);this.T(a,"videodatachange",this.Ja);this.T(a,"videoplayerreset",this.Ja);this.Ja()}; oIa=function(a){var b=a.api.V(),c=a.api.getVideoData();if(!b.me){var d=b.authUser?null:OFa(),e=new g.hP("Subscribe",null,"Subscribed",null,!0,!1,c.Kk,c.subscribed,"channel_avatar",null,d,a.api,a.I);a.subscribeButton=e;g.N(a,e);e.Da(a.C);a.api.vb(e.element,a,36926);e.hide();a.T(e.element,"click",function(){a.api.ub(e.element)}); var f=new fP(a.api);a.u=f;g.N(a,f);f.Da(a.C);f.hide();a.T(a.api,"SUBSCRIBE",function(){c.Qk&&f.show()}); a.T(a.api,"UNSUBSCRIBE",function(){c.Qk&&(f.hide(),nIa(f,!1))})}a.Oa("flyoutUnfocusable","true"); a.Oa("channelTitleFocusable","-1");b.isMobile||b.Ok?a.T(a.j,"click",function(h){pIa(a)&&(h.preventDefault(),a.isExpanded()?a.UG():a.zH());a.api.ub(a.j)}):(a.T(a.channel,"mouseenter",a.zH),a.T(a.channel,"mouseleave",a.UG),a.T(a.channel,"focusin",a.zH),a.T(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.UG()}),a.T(a.j,"click",function(){a.api.ub(a.j)})); a.B=new g.Yn(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.Wa(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.Wa(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500); g.N(a,a.B);a.T(a.channel,qIa,function(){rIa(a)}); a.T(a.api,"onHideControls",a.sK);a.T(a.api,"appresize",a.sK);a.T(a.api,"fullscreentoggled",a.sK)}; rIa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")}; pIa=function(a){var b=a.api.getPlayerSize();return a.D&&524<=b.width}; sIa=function(a,b){var c={};a.api.V().ya&&g.cN(c,a.api.V().loaderUrl);return g.xi(b,g.bN(c,"emb_ch_name_ex"))}; jP=function(a,b,c,d,e,f){var h={F:"div",N:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={F:"div",N:"ytp-panel-header",W:[{F:"div",Fa:["ytp-panel-back-button-container"],W:[{X:{"aria-label":"Back to previous menu"},F:"button",Fa:["ytp-button",l]}]},{X:{tabindex:"0"},F:"span",Fa:[m],W:[c]}]};if(e){var p="ytp-panel-options";n.W.push({F:"button",Fa:["ytp-button",p],W:[d]})}h.W=[n]}d=!1;f&&(f={F:"div",N:"ytp-panel-footer",W:[f]},d=!0,h.W?h.W.push(f):h.W=[f]);g.YK.call(this, h);this.content=b;d&&h.W?b.Da(this.element,h.W.length-1):b.Da(this.element);this.FP=!1;this.EP=d;c&&(c=this.Ca(l),m=this.Ca(m),this.T(c,"click",this.QQ),this.T(m,"click",this.QQ),this.FP=!0,e&&(p=this.Ca(p),this.T(p,"click",e)));b.subscribe("size-change",this.WQ,this);this.T(a,"fullscreentoggled",this.WQ);g.ko(this.element,"ytp-panel-min-width-killswitch",a.V().K("player_panel_min_width_killswitch"));this.G=a}; tIa=function(a,b){var c=new g.YK({F:"div",N:"ytp-multi-item-panel"});a.content.Da(c.element);b.Da(c.element);a.content=c;c.Da(a.element);g.N(a,c)}; g.kP=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.YK({F:"div",N:"ytp-panel-menu",X:h});jP.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.N(this,this.menuItems)}; g.lP=function(a){for(var b=g.t(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.HJ,a);a.items=[];g.kh(a.menuItems.element);a.menuItems.ma("size-change")}; uIa=function(a,b){return b.priority-a.priority}; mP=function(a){var b=g.GN({"aria-haspopup":"true"});g.FN.call(this,b,a);this.Ra("keydown",this.j)}; nP=function(a,b){a.element.setAttribute("aria-haspopup",String(b))}; oP=function(a,b){g.W.call(this,{F:"div",N:"ytp-user-info-panel",X:{"aria-label":"User info"},W:a.V().authUser&&!a.K("embeds_web_always_enable_signed_out_state")?[{F:"div",N:"ytp-user-info-panel-icon",qa:"{{icon}}"},{F:"div",N:"ytp-user-info-panel-content",W:[{F:"div",N:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},qa:"{{watchingAsUsername}}"},{F:"div",N:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},qa:"{{watchingAsEmail}}"}]}]:[{F:"div", N:"ytp-user-info-panel-icon",qa:"{{icon}}"},{F:"div",N:"ytp-user-info-panel-content",W:[{F:"div",W:[{F:"text",X:{tabIndex:"{{userInfoFocusable}}"},qa:"Signed out"}]},{F:"div",N:"ytp-user-info-panel-login",W:[{F:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},qa:a.V().me?"":"Sign in on YouTube"}]}]}]});this.Va=a;this.j=b;a.V().authUser||a.V().me||(a=this.Ca("ytp-user-info-panel-login"),this.T(a,"click",this.RV));this.closeButton=new g.W({F:"button",Fa:["ytp-collapse","ytp-button"],X:{title:"Close"}, W:[g.mFa()]});this.closeButton.Da(this.element);g.N(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.QV);this.Ja()}; pP=function(a,b,c,d){g.kP.call(this,a);this.ob=c;this.Ic=d;this.getVideoUrl=new mP(6);this.ll=new mP(5);this.fl=new mP(4);this.Qb=new mP(3);this.qA=new g.FN(g.GN({href:"{{href}}",target:this.G.V().J},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.FN(g.GN(),1,"Stats for nerds");this.Av=new g.YK({F:"div",Fa:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},qa:"{{text}}"});this.vO=new jP(this.G,this.Av);this.RA=this.Zp=null;g.LF(this.G.V())&&(this.Ek=new g.FN(g.GN(), 8,"Account"),g.N(this,this.Ek),this.Ec(this.Ek,!0),this.Ek.Ra("click",this.e3,this),a.vb(this.Ek.element,this.Ek,137682));this.G.V().Oj&&(this.nk=new MN("Loop",7),g.N(this,this.nk),this.Ec(this.nk,!0),this.nk.Ra("click",this.P1,this),a.vb(this.nk.element,this.nk,28661));g.N(this,this.getVideoUrl);this.Ec(this.getVideoUrl,!0);this.getVideoUrl.Ra("click",this.F1,this);a.vb(this.getVideoUrl.element,this.getVideoUrl,28659);g.N(this,this.ll);this.Ec(this.ll,!0);this.ll.Ra("click",this.G1,this);a.vb(this.ll.element, this.ll,28660);g.N(this,this.fl);this.Ec(this.fl,!0);this.fl.Ra("click",this.E1,this);a.vb(this.fl.element,this.fl,28658);g.N(this,this.Qb);this.Ec(this.Qb,!0);this.Qb.Ra("click",this.D1,this);g.N(this,this.qA);this.Ec(this.qA,!0);this.qA.Ra("click",this.L2,this);g.N(this,this.showVideoInfo);this.Ec(this.showVideoInfo,!0);this.showVideoInfo.Ra("click",this.f3,this);g.N(this,this.Av);this.Av.Ra("click",this.o1,this);g.N(this,this.vO);b=document.queryCommandSupported&&document.queryCommandSupported("copy"); 43<=Fb("Chromium")&&(b=!0);40>=Fb("Firefox")&&(b=!1);b&&(this.Zp=new g.W({F:"textarea",N:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),g.N(this,this.Zp),this.Zp.Da(this.element));var e;null==(e=this.Ek)||HN(e,jFa());var f;null==(f=this.nk)||HN(f,{F:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});HN(this.Qb,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path", X:{"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"}}]});HN(this.qA,{F:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{"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"}}]});HN(this.showVideoInfo,fFa());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);vIa(this);this.AS(this.G.getVideoData())}; rP=function(a,b){var c=!1;if(a.Zp){var d=a.Zp.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.ob.Bb():(a.Av.Sd(b,"text"),g.qP(a.ob,a.vO),HO(a.Av.element),a.Zp&&(a.Zp=null,vIa(a)));return c}; vIa=function(a){var b=!!a.Zp;a.Qb.Kg(b?"Copy debug info":"Get debug info");nP(a.Qb,!b);a.fl.Kg(b?"Copy embed code":"Get embed code");nP(a.fl,!b);a.getVideoUrl.Kg(b?"Copy video URL":"Get video URL");nP(a.getVideoUrl,!b);a.ll.Kg(b?"Copy video URL at current time":"Get video URL at current time");nP(a.ll,!b);HN(a.fl,b?dFa():null);HN(a.getVideoUrl,b?fL():null);HN(a.ll,b?fL():null)}; g.sP=function(a,b){g.CN.call(this,a,{F:"div",Fa:["ytp-popup",b||""]},100,!0);this.j=[];this.I=this.C=null;this.zB=this.maxWidth=0;this.size=new g.Lg(0,0);this.Ra("keydown",this.SV)}; wIa=function(a){var b=a.j[a.j.length-1];if(b){g.Ll(a.element,a.maxWidth||"100%",a.zB||"100%");b.G.V().K("player_panel_min_width_killswitch")&&g.Bl(b.element,"minWidth","250px");g.Bl(b.element,"width","");g.Bl(b.element,"height","");g.Bl(b.element,"maxWidth","100%");g.Bl(b.element,"maxHeight","100%");g.Bl(b.content.element,"height","");var c=g.Ml(b.element);c.width+=1;c.height+=1;g.Bl(b.element,"width",c.width+"px");g.Bl(b.element,"height",c.height+"px");g.Bl(b.element,"maxWidth","");g.Bl(b.element, "maxHeight","");var d=0;b.FP&&(d=b.Ca("ytp-panel-header"),d=g.Ml(d).height);var e=0;b.EP&&(e=b.Ca("ytp-panel-footer"),g.Bl(e,"width",c.width+"px"),e=g.Ml(e).height);g.Bl(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];tP(a,b,c,!0)}}; tP=function(a,b,c,d){xIa(a);b&&(b.unsubscribe("size-change",a.nx,a),b.unsubscribe("back",a.Ui,a));c.subscribe("size-change",a.nx,a);c.subscribe("back",a.Ui,a);if(a.qb){g.go(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Da(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;wIa(a);g.Ll(a.element,e);a.C=new g.Yn(function(){yIa(a,b,c,d)},20,a); a.C.start()}else c.Da(a.element),b&&b.detach()}; yIa=function(a,b,c,d){a.C.dispose();a.C=null;g.go(a.element,"ytp-popup-animating");d?(g.go(b.element,"ytp-panel-animate-forward"),g.io(c.element,"ytp-panel-animate-back")):(g.go(b.element,"ytp-panel-animate-back"),g.io(c.element,"ytp-panel-animate-forward"));g.Ll(a.element,a.size);a.I=new g.Yn(function(){g.io(a.element,"ytp-popup-animating");b.detach();g.jo(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.I.dispose();a.I=null},250,a); a.I.start()}; xIa=function(a){a.C&&g.$n(a.C);a.I&&g.$n(a.I)}; g.vP=function(a,b,c){g.sP.call(this,a);this.Aa=b;this.Ic=c;this.B=new g.YD(this);this.ea=new g.Yn(this.z3,1E3,this);this.oa=this.D=null;g.N(this,this.B);g.N(this,this.ea);a.vb(this.element,this,28656);g.go(this.element,"ytp-contextmenu");zIa(this);this.hide()}; zIa=function(a){g.bz(a.B);if("gvn"!==a.G.V().playerStyle){var b=a.G.fb();a.B.T(b,"contextmenu",a.m1);a.B.T(b,"touchstart",a.UV,null,!0);a.B.T(b,"touchmove",a.zR,null,!0);a.B.T(b,"touchend",a.zR,null,!0)}}; AIa=function(a){a.G.isFullscreen()?g.AN(a.G,a.element,10):a.Da(document.body)}; g.wP=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{F:"button",Fa:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.LF(a.V()))},W:[{F:"div",N:"ytp-copylink-icon",qa:"{{icon}}"},{F:"div",N:"ytp-copylink-title",qa:"Copy link",X:{"aria-hidden":"true"}}]});this.api=a;this.j=b;this.u=c;this.visible=!1;this.tooltip=this.j.vc();b=a.V();gP(this.tooltip);g.ko(this.element,"ytp-show-copylink-title",g.LF(b)&&!g.WF(b));a.vb(this.element,this,86570);this.Ra("click", this.onClick);this.T(a,"videodatachange",this.Ja);this.T(a,"videoplayerreset",this.Ja);this.T(a,"appresize",this.Ja);this.Ja();g.af(this,g.cP(this.tooltip,this.element))}; BIa=function(a){a.Oa("icon",aL());if(a.api.V().isMobile)xP(a.tooltip,a.element,"Link copied to clipboard");else{a.Oa("title-attr","Link copied to clipboard");yP(a.tooltip);xP(a.tooltip,a.element);var b=a.Ra("mouseleave",function(){a.yc(b);a.Ja();a.tooltip.Zj()})}}; CIa=function(a,b){return g.A(function(c){if(1==c.j)return g.pa(c,2),g.x(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.ua(c);var d=c.return,e=!1,f=g.ih("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(Vu){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f); return d.call(c,e)})}; zP=function(){g.W.call(this,{F:"div",N:"ytp-doubletap-ui",W:[{F:"div",Fa:["ytp-seek-info-container","ytp-seek-static-circle"],W:[{F:"div",N:"ytp-seek-arrows-container",W:[{F:"span",N:"ytp-seek-base-arrow"},{F:"span",N:"ytp-seek-base-arrow"},{F:"span",N:"ytp-seek-base-arrow"}]},{F:"div",N:"ytp-seek-tooltip",W:[{F:"div",N:"ytp-chapter-seek-text",qa:"{{chapterSeekText}}"},{F:"div",N:"ytp-seek-tooltip-label",qa:"{{seekTime}}"}]}]}]});this.u=new g.Yn(this.show,10,this);this.j=new g.Yn(this.hide,700,this); g.N(this,this.u);g.N(this,this.j);this.hide()}; AP=function(a){g.W.call(this,{F:"div",N:"ytp-doubletap-ui-legacy",W:[{F:"div",N:"ytp-doubletap-fast-forward-ve"},{F:"div",N:"ytp-doubletap-rewind-ve"},{F:"div",N:"ytp-doubletap-static-circle",W:[{F:"div",N:"ytp-doubletap-ripple"}]},{F:"div",N:"ytp-doubletap-overlay-a11y"},{F:"div",N:"ytp-doubletap-seek-info-container",W:[{F:"div",N:"ytp-doubletap-arrows-container",W:[{F:"span",N:"ytp-doubletap-base-arrow"},{F:"span",N:"ytp-doubletap-base-arrow"},{F:"span",N:"ytp-doubletap-base-arrow"}]},{F:"div", N:"ytp-doubletap-tooltip",W:[{F:"div",N:"ytp-chapter-seek-text-legacy",qa:"{{seekText}}"},{F:"div",N:"ytp-doubletap-tooltip-label",qa:"{{seekTime}}"}]}]}]});this.G=a;this.B=new g.Yn(this.show,10,this);this.u=new g.Yn(this.hide,700,this);this.j=this.Ca("ytp-doubletap-static-circle");g.N(this,this.B);g.N(this,this.u);this.hide();this.C=this.Ca("ytp-doubletap-fast-forward-ve");this.D=this.Ca("ytp-doubletap-rewind-ve");this.G.vb(this.C,this,28240);this.G.vb(this.D,this,28239);this.G.Wa(this.C,!0);this.G.Wa(this.D, !0)}; DIa=function(a,b){b=g.GJ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Oa("seekTime",b)}; BP=function(a,b,c){g.W.call(this,{F:"div",Fa:["ytp-info-panel-action-item"],W:[{F:"div",N:"ytp-info-panel-action-item-disclaimer",qa:"{{disclaimer}}"},{F:"a",Fa:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},W:[{F:"div",N:"ytp-info-panel-action-item-icon",qa:"{{icon}}"},{F:"div",N:"ytp-info-panel-action-item-label",qa:"{{label}}"}]}]});this.G=a;this.isMobile=c;this.disclaimer=this.Ca("ytp-info-panel-action-item-disclaimer");this.button= this.Ca("ytp-info-panel-action-item-button");this.isValid=!1;this.G.Sg(this.element,this);this.Ra("click",this.onClick);a=EIa(this,b);var d;if(c=null==(d=b.disclaimerText)?void 0:d.content){this.button.style.borderBottom="1px solid white";var e;this.update({label:null==(e=b.bodyText)?void 0:e.content,icon:iL(),disclaimer:c,url:a})}else{this.disclaimer.style.display="none";var f;this.update({label:null==(f=b.bodyText)?void 0:f.content,icon:iL(),url:a})}this.G.oi(this.element,b.trackingParams||null)}; EIa=function(a,b){var c="";b=g.$u(null==b?void 0:b.onTap,mHa);var d=g.$u(b,g.QH);if(d)return c=d.url||"",c.startsWith("//")&&(c="http:"+c),a.isValid=!0,c;if((d=g.$u(b,FIa))&&a.isMobile)return(c=d.phoneNumbers)&&0b);d=a.next())c++;return 0===c?c:c-1}; LIa=function(a,b){for(var c=0,d=g.t(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b=e.timeRangeStartMillis&&bd;e={ap:e.ap},f++){e.ap=c[f];a:switch(e.ap.img||e.ap.iconId){case "facebook":var h={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{F:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",X:{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":h={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{F:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",X:{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:h=null}h&&(h=new g.W({F:"a",Fa:["ytp-share-panel-service-button","ytp-button"],X:{href:e.ap.url,target:"_blank",title:e.ap.sname||e.ap.serviceName},W:[h]}),h.Ra("click",function(m){return function(n){if(g.YL(n)){var p=m.ap.url;var q=void 0===q?{}:q;q.target=q.target||"YouTube";q.width=q.width||"600";q.height=q.height||"600";var r=q;r||(r={});q=window;var w=p instanceof og?p:g.qg("undefined"!=typeof p.href?p.href:String(p));var y=void 0!==self.crossOriginIsolated, z="strict-origin-when-cross-origin";window.Request&&(z=(new Request("/")).referrerPolicy);var B="unsafe-url"===z;z=r.noreferrer;if(y&&z){if(B)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");z=!1}p=r.target||p.target;y=[];for(var D in r)switch(D){case "width":case "height":case "top":case "left":y.push(D+"="+r[D]);break;case "target":case "noopener":case "noreferrer":break;default:y.push(D+"="+(r[D]?1:0))}D=y.join(",");Ib()&& q.navigator&&q.navigator.standalone&&p&&"_self"!=p?(r=g.ih("A"),g.Cg(r,w),r.target=p,z&&(r.rel="noreferrer"),w=document.createEvent("MouseEvent"),w.initMouseEvent("click",!0,!0,q,1),r.dispatchEvent(w),q={}):z?(q=Dg("",q,p,D),w=g.pg(w),q&&(g.qG&&g.ib(w,";")&&(w="'"+w.replace(/'/g,"%27")+"'"),q.opener=null,""===w&&(w="javascript:''"),w=g.Bg(g.jg("b/12014412, meta tag with sanitized URL"),''),(r=q.document)&& r.write&&(r.write(g.zg(w)),r.close()))):((q=Dg(w,q,p,D))&&r.noopener&&(q.opener=null),q&&r.noreferrer&&(q.opener=null));q&&(q.opener||(q.opener=window),q.focus());g.Fx(n)}}}(e)),g.af(h,g.cP(a.tooltip,h.element)),a.j.push(h),d++)}var l=b.more||b.moreLink; b=new g.W({F:"a",Fa:["ytp-share-panel-service-button","ytp-button"],W:[{F:"span",N:"ytp-share-panel-service-button-more",W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{F:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",X:{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"}}]}]}],X:{href:l,target:"_blank",title:"More"}});b.Ra("click",function(m){g.FO(l,a.api,m)&&a.api.Pa("SHARE_CLICKED")}); g.af(b,g.cP(a.tooltip,b.element));a.j.push(b);a.Oa("buttons",a.j)}; WIa=function(a){for(var b=g.t(a.j),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.Ze(c);a.j=[]}; aQ=function(a,b,c){c=void 0===c?!0:c;g.W.call(this,{F:"div",N:"ytp-suggested-action"});var d=this;this.G=a;this.jb=b;this.Ta=this.J=this.j=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.La=new g.Yn(function(){d.badge.element.style.width=""},200,this); this.ea=new g.Yn(function(){ZP(d);$P(d)},200,this); this.dismissButton=new g.W({F:"button",Fa:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.N(this,this.dismissButton);this.I=new g.W({F:"div",N:"ytp-suggested-action-badge-expanded-content-container",W:[{F:"label",N:"ytp-suggested-action-badge-title",qa:"{{badgeLabel}}"},this.dismissButton]});g.N(this,this.I);this.badge=new g.W({F:"button",Fa:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],W:[c?{F:"div",N:"ytp-suggested-action-badge-icon"}: "",this.I]});g.N(this,this.badge);this.badge.Da(this.element);this.S=new g.JL(this.badge,250,!1,100);g.N(this,this.S);this.Aa=new g.JL(this.I,250,!1,100);g.N(this,this.Aa);this.Qa=new g.Wn(this.p5,null,this);g.N(this,this.Qa);this.oa=new g.Wn(this.TY,null,this);g.N(this,this.oa);g.N(this,this.La);g.N(this,this.ea);this.G.Sg(this.badge.element,this.badge,!0);this.G.Sg(this.dismissButton.element,this.dismissButton,!0);this.T(this.G,"onHideControls",function(){d.j=!1;$P(d);ZP(d);d.Ij()}); this.T(this.G,"onShowControls",function(){d.j=!0;$P(d);ZP(d);d.Ij()}); this.T(this.badge.element,"click",this.qJ);this.T(this.dismissButton.element,"click",this.rJ);this.T(this.G,"pageTransition",this.cW);this.T(this.G,"appresize",this.Ij);this.T(this.G,"fullscreentoggled",this.B1);this.T(this.G,"cardstatechange",this.d1);this.T(this.G,"annotationvisibility",this.r6,this);this.T(this.G,"offlineslatestatechange",this.s6,this)}; ZP=function(a){g.ko(a.badge.element,"ytp-suggested-action-badge-with-controls",a.j||!a.u)}; $P=function(a,b){var c=a.J||a.j||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Qa.stop(),a.oa.stop(),a.La.stop(),a.Qa.start()):(g.XK(a.I,a.expanded),g.ko(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),YIa(a))}; YIa=function(a){a.C&&a.G.Wa(a.badge.element,a.CA());a.D&&a.G.Wa(a.dismissButton.element,a.CA()&&(a.J||a.j||!a.u))}; ZIa=function(a){var b=a.text||"";g.sh(g.dh("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Xa?a.Xa:"")}; $Ia=function(a,b){b?a.D&&a.G.ub(a.dismissButton.element):a.C&&a.G.ub(a.badge.element)}; bQ=function(a,b){aQ.call(this,a,b);var c=this;this.Z=this.Ba=this.Ia=!1;this.T(this.G,g.uA("shopping_overlay_visible"),function(){c.Ef(!0)}); this.T(this.G,g.vA("shopping_overlay_visible"),function(){c.Ef(!1)}); this.T(this.G,g.uA("shopping_overlay_expanded"),function(){c.J=!0;$P(c)}); this.T(this.G,g.vA("shopping_overlay_expanded"),function(){c.J=!1;$P(c)}); this.T(this.G,"changeProductsInVideoVisibility",this.s2);this.T(this.G,"videodatachange",this.onVideoDataChange);this.T(this.G,"paidcontentoverlayvisibilitychange",this.h2)}; cQ=function(a){a.G.Ff("shopping_overlay_visible");a.G.Ff("shopping_overlay_expanded")}; dQ=function(a){g.CN.call(this,a,{F:"button",Fa:["ytp-skip-intro-button","ytp-popup","ytp-button"],W:[{F:"div",N:"ytp-skip-intro-button-text",qa:"Skip Intro"}]},100);var b=this;this.B=!1;this.j=new g.Yn(function(){b.hide()},5E3); this.Be=this.vg=NaN;g.N(this,this.j);this.I=function(){b.show()}; this.D=function(){b.hide()}; this.C=function(){var c=b.G.getCurrentTime();c>b.vg/1E3&&c=f&&(p-=1/h);n-=2/h;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+") "+q+"px "+r+"px/"+l+"px "+m+"px"}; g.kQ=function(a){g.W.call(this,{F:"div",N:"ytp-storyboard-framepreview",W:[{F:"div",N:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Ca("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.YD(this);this.j=new g.JL(this,100);g.N(this,this.events);g.N(this,this.j);this.T(this.api,"presentingplayerstatechange",this.Tc)}; lQ=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.T(a.api,"videodatachange",function(){lQ(a,a.api.Ji())}),a.events.T(a.api,"progresssync",a.Wd),a.events.T(a.api,"appresize",a.D)),a.B=NaN,mQ(a),a.j.show(200)):(c&&g.bz(a.events),a.j.hide(),a.j.stop())}; mQ=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.fb().getPlayerSize(),e=yH(b,d.width);c=PAa(b,e,c);c!==a.B&&(a.B=c,NAa(b,c,d.width),b=LAa(b,c,d.width),dJa(a.C,b,d.width,d.height))}; g.nQ=function(a,b){g.W.call(this,{F:"button",Fa:["ytp-fullscreen-button","ytp-button"],X:{title:"{{title}}"},qa:"{{icon}}"});this.G=a;this.u=b;this.message=null;this.j=g.cP(this.u.vc(),this.element);this.B=new g.Yn(this.iY,2E3,this);g.N(this,this.B);this.T(a,"fullscreentoggled",this.Dk);this.T(a,"presentingplayerstatechange",this.Ja);this.Ra("click",this.onClick);g.Wy()&&(b=this.G.fb(),this.T(b,Fra(),this.AJ),this.T(b,Zy(document),this.Jo));a.V().kb||a.V().I||this.disable();a.vb(this.element,this, 139117);this.Ja();this.Dk(a.isFullscreen())}; oQ=function(a,b,c){iQ.call(this,a,b,c,"timedMarkerCueRange","View key moments");this.T(a,g.vA("timedMarkerCueRange"),this.Zb);this.T(a,"updatemarkervisibility",this.updateVideoData)}; eJa=function(a){var b,c=null==(b=a.G.getVideoData())?void 0:b.Md;if(c)for(a=a.C.Lc,c=g.t(c),b=c.next();!b.done;b=c.next())if(b=a[b.value])return b}; pQ=function(a,b){g.W.call(this,{F:"button",Fa:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},W:[kFa()]});this.G=a;this.visible=!1;this.Ra("click",this.onClick);this.T(a,"fullscreentoggled",this.Ja);this.Oa("title",IO(a,"Miniplayer","i"));g.af(this,g.cP(b.vc(),this.element));a.vb(this.element,this,62946);this.Ja()}; qQ=function(a,b,c){g.W.call(this,{F:"button",Fa:["ytp-multicam-button","ytp-button"],X:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,X:{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"}}]}]});var d=this;this.G=a;this.j=!1;this.u=new g.Yn(this.B,400,this);this.tooltip=b.vc();gP(this.tooltip);g.N(this,this.u);this.Ra("click",function(){DN(c,d.element,!1)}); this.T(a,"presentingplayerstatechange",function(){d.Ja(!1)}); this.T(a,"videodatachange",this.onVideoDataChange);this.Ja(!0);g.af(this,g.cP(this.tooltip,this.element))}; rQ=function(a){g.CN.call(this,a,{F:"div",N:"ytp-multicam-menu",X:{role:"dialog"},W:[{F:"div",N:"ytp-multicam-menu-header",W:[{F:"div",N:"ytp-multicam-menu-title",W:["Switch camera",{F:"button",Fa:["ytp-multicam-menu-close","ytp-button"],X:{"aria-label":"Close"},W:[g.dL()]}]}]},{F:"div",N:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.YD(this);this.items=this.Ca("ytp-multicam-menu-items");this.j=[];g.N(this,this.B);a=this.Ca("ytp-multicam-menu-close");this.T(a,"click",this.Bb);this.hide()}; sQ=function(){g.K.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.Wn(this.j,null,this);g.N(this,this.delay)}; fJa=function(a,b){if("path"===b.F)return b.X.d;if(b.W)for(var c=0;c=l)break}a.D=e;a.frameCount=b.qB();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.D.length;)e= void 0,null==(e=a.thumbnails.pop())||e.dispose();for(;a.thumbnails.lengthc.length;)d=void 0,null==(d=a.j.pop())||d.dispose();for(;a.j.length< c.length;)d=new CQ,a.j.push(new CQ),g.N(a,d);c=g.t(c.entries());for(d=c.next();!d.done;d=c.next())e=g.t(d.value),d=e.next().value,e=e.next().value,a.j[d].update({chapterTitle:e.title}),e=Math.round(e.startTime/b.j),f=Math.floor(e/b.rows),g.Bl(a.j[d].element,"transform","translateX("+e%b.rows*160*a.scale+"px)"),a.j[d].Da(a.thumbnails[f].element);a.ea=!0}}}; BQ=function(a,b){a.update({seekTime:g.XL(b)});var c=160*a.scale;b=b-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval}; uJa=function(a){return-((a.B.offsetWidth||160*(a.frameCount-1)*a.scale)-a.C/2)}; sJa=function(){g.W.call(this,{F:"div",N:"ytp-fine-scrubbing-thumbnail"})}; CQ=function(){g.W.call(this,{F:"div",N:"ytp-fine-scrubbing-chapter-title",W:[{F:"div",N:"ytp-fine-scrubbing-chapter-title-content",qa:"{{chapterTitle}}"}]})}; wJa=function(a){g.W.call(this,{F:"div",N:"ytp-heat-map-chapter",W:[{F:"svg",N:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},W:[{F:"defs",W:[{F:"clipPath",X:{id:"{{id}}"},W:[{F:"path",N:"ytp-heat-map-path",X:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{F:"rect",N:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{F:"rect",N:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)", height:"100%",x:"0",y:"0"}},{F:"rect",N:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.I=this.Ca("ytp-heat-map-svg");this.D=this.Ca("ytp-heat-map-path");this.C=this.Ca("ytp-heat-map-graph");this.B=this.Ca("ytp-heat-map-play");this.u=this.Ca("ytp-heat-map-hover");this.isValid=!1;this.j=60;a=""+g.Pa(this);this.update({id:a});a="url(#"+a+")";this.C.setAttribute("clip-path",a);this.B.setAttribute("clip-path",a);this.u.setAttribute("clip-path",a)}; yJa=function(a,b,c,d){d=void 0===d?!1:d;b=new xJa(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.j:b.j),y:a.y+.2*((void 0===d?0:d)?-1*b.u:b.u)}}; xJa=function(a,b){this.u=this.j=0;this.j=b.x-a.x;this.u=b.y-a.y}; DQ=function(){g.W.call(this,{F:"div",N:"ytp-chapter-hover-container",W:[{F:"div",N:"ytp-progress-bar-padding"},{F:"div",N:"ytp-progress-list",W:[{F:"div",Fa:["ytp-play-progress","ytp-swatch-background-color"]},{F:"div",N:"ytp-progress-linear-live-buffer"},{F:"div",N:"ytp-load-progress"},{F:"div",N:"ytp-hover-progress"},{F:"div",N:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.Ca("ytp-progress-linear-live-buffer");this.B=this.Ca("ytp-ad-progress-list"); this.D=this.Ca("ytp-load-progress");this.I=this.Ca("ytp-play-progress");this.u=this.Ca("ytp-hover-progress");this.j=this.Ca("ytp-chapter-hover-container")}; EQ=function(a,b){g.Bl(a.j,"width",b)}; FQ=function(a,b){g.Bl(a.j,"margin-right",b+"px")}; GQ=function(a,b){return"PLAY_PROGRESS"===b?a.I:"LOAD_PROGRESS"===b?a.D:"LIVE_BUFFER"===b?a.C:a.u}; zJa=function(){this.fraction=this.position=this.B=this.j=this.C=this.u=this.width=NaN}; HQ=function(){g.W.call(this,{F:"div",N:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.JQ=function(a,b){g.YK.call(this,{F:"div",N:"ytp-progress-bar-container",X:{"aria-disabled":"true"},W:[{F:"div",Fa:["ytp-heat-map-container"],W:[{F:"div",N:"ytp-heat-map-edu"}]},{F:"div",Fa:["ytp-progress-bar"],X:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},W:[{F:"div",N:"ytp-chapters-container"},{F:"div",N:"ytp-marker-crenellation-list"},{F:"div",N:"ytp-timed-markers-container"}, {F:"div",N:"ytp-clip-start-exclude"},{F:"div",N:"ytp-clip-end-exclude"},{F:"div",N:"ytp-scrubber-container",W:[{F:"div",Fa:["ytp-scrubber-button","ytp-swatch-background-color"],W:[{F:"div",N:"ytp-scrubber-pull-indicator"}]}]}]},{F:"div",Fa:["ytp-fine-scrubbing-container"],W:[{F:"div",N:"ytp-fine-scrubbing-edu"}]},{F:"div",N:"ytp-bound-time-left",qa:"{{boundTimeLeft}}"},{F:"div",N:"ytp-bound-time-right",qa:"{{boundTimeRight}}"},{F:"div",N:"ytp-clip-start",X:{title:"{{clipstarttitle}}"},qa:"{{clipstarticon}}"}, {F:"div",N:"ytp-clip-end",X:{title:"{{clipendtitle}}"},qa:"{{clipendicon}}"}]});this.api=a;this.Oe=!1;this.D=this.wg=0;this.bb=1;this.me=this.Z=0;this.J=null;this.Ba=this.jd=0;this.kb=this.Ca("ytp-marker-crenellation-list");this.Ta={};this.Hc={};this.clipEnd=Infinity;this.zc=this.Ca("ytp-clip-end");this.Gd=new g.gz(this.zc,!0);this.jf=this.Ca("ytp-clip-end-exclude");this.Rg=this.Ca("ytp-clip-start-exclude");this.clipStart=0;this.Rc=this.Ca("ytp-clip-start");this.Hd=new g.gz(this.Rc,!0);this.oa=this.Lb= 0;this.Bc=this.Ca("ytp-progress-bar");this.jc={};this.Lc={};this.Td=this.Ca("ytp-chapters-container");this.xg=this.Ca("ytp-timed-markers-container");this.j=[];this.S=[];this.Ne={};this.kf=null;this.jb=-1;this.Ub=this.Ia=0;this.ea=null;this.Be=this.Ca("ytp-scrubber-button");this.Tg=this.Ca("ytp-scrubber-container");this.zb=new g.Jg;this.rg=new zJa;this.B=new aM(0,0);this.xb=null;this.C=this.ud=!1;this.vg=null;this.rb=this.Ca("ytp-fine-scrubbing-container");this.Aa=this.Ca("ytp-heat-map-container"); this.Md=this.Ca("ytp-heat-map-edu");this.zf=this.Ca("ytp-fine-scrubbing-edu");this.I=[];this.Qa=this.le=this.La=!1;this.heatMarkersDecorations=[];this.u=void 0;this.tooltip=b.vc();g.af(this,g.cP(this.tooltip,this.zc));g.N(this,this.Gd);this.Gd.subscribe("hoverstart",this.TQ,this);this.Gd.subscribe("hoverend",this.SQ,this);this.T(this.zc,"click",this.iE);g.af(this,g.cP(this.tooltip,this.Rc));g.N(this,this.Hd);this.Hd.subscribe("hoverstart",this.TQ,this);this.Hd.subscribe("hoverend",this.SQ,this);this.T(this.Rc, "click",this.iE);AJa(this);this.T(a,"resize",this.Cb);this.T(a,"presentingplayerstatechange",this.gW);this.T(a,"videodatachange",this.Vp);this.T(a,"videoplayerreset",this.HZ);this.T(a,"cuerangesadded",this.tT);this.T(a,"cuerangesremoved",this.v4);this.T(a,"cuerangemarkersupdated",this.tT);this.T(a,"onLoopRangeChange",this.gN);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.uA("timedMarkerCueRange"),this.x3);this.T(a,"updatemarkervisibility",this.rT);this.updateVideoData(a.getVideoData(), !0);this.gN(a.getLoopRange());IQ(this)&&!this.u&&(this.u=new zQ(this.api,this.tooltip,this.D),this.u.Da(this.rb),g.N(this,this.u),this.T(this.u.dismissButton,"click",this.QO),this.T(this.u.playButton,"click",this.EH),this.T(this.u.element,"dblclick",this.EH));a=this.api.V();g.LF(a)&&a.isMobile&&a.K("embeds_web_enable_progress_bar_context_menu_fix")&&g.go(this.element,"ytp-no-contextmenu");this.api.vb(this.Aa,this,139609,!0);this.api.vb(this.Md,this,140127,!0);this.api.vb(this.zf,this,151179,!0);this.api.vb(this.kb, this,145078,!0)}; AJa=function(a){if(0===a.j.length){var b=new DQ;a.j.push(b);g.N(a,b);b.Da(a.Td,0)}for(;1=f&&B<=h&&d.push(r)}0l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,r=p.j[q-1];void 0!==r&&0a.Ub&&(a.Ub=m/f),d=!0)}c++}}return d}; QQ=function(a){if(a.D){var b=a.api.getProgressState(),c=a.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.enablePreroll)||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:yI(d))&&b.airingStart&&b.airingEnd?FJa(a,b.airingStart,b.airingEnd):FJa(a,b.seekableStart,b.seekableEnd);d=dM(c,b.loaded,0);b=dM(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;RQ(a,b,d);e&&SQ(a);GJa(a)}}}; FJa=function(a,b,c){return TQ(a)?new aM(Math.max(b,a.xb.startTimeMs/1E3),Math.min(c,a.xb.endTimeMs/1E3)):new aM(b,c)}; HJa=function(a,b){var c;!a.api.K("web_repeating_chapters")||"repeatChapter"!==(null==(c=a.xb)?void 0:c.type)&&"repeatChapter"!==(null==b?void 0:b.type)||(b&&(b=a.j[GP(a.j,b.startTimeMs)],g.ko(b.j,"ytp-repeating-chapter",!1)),a.xb&&(b=a.j[GP(a.j,a.xb.startTimeMs)],g.ko(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.ko(d.j,"ytp-exp-chapter-hover-container",!a.xb)}))}; VQ=function(a,b){var c=cM(a.B,b.fraction);if(1=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.B.j*(a.D-(a.C?3:2)*a.Ia)}; JJa=function(a,b,c,d){b=g.Fg(b,0,a.C?60:40);a.Z=b;var e=a.bb;a.bb=b/(a.C?60:40)*(Math.max(bM(a.B)/a.D,1)-1)+1;b=a.D*a.bb;a.Ba=g.Fg(d*b-c,0,b-a.D);e!==a.bb&&SQ(a)}; SQ=function(a){if(1!==a.j.length||IQ(a))a.Be.style.removeProperty("height");else{var b=PQ(a),c=-b.u/b.j,d=(-b.u+b.width)/b.j,e=Hda(a.kb),f=0;if(a.Z>.2*(a.C?60:40)){for(var h=d*(bM(a.B)/60),l=Math.ceil(c*(bM(a.B)/60));l=f;c--)g.ph(e[c]);a.element.style.height=a.Z+(a.C?8:5)+"px";a.ma("height-change",a.Z);a.Be.style.height=a.Z+(a.C?20:13)+"px"}e=g.t(Object.keys(a.Ta));for(f=e.next();!f.done;f=e.next())KJa(a,f.value);WQ(a);RQ(a,a.oa,a.Lb)}; PQ=function(a){var b=a.zb.x,c=a.D*a.bb;b=g.Fg(b,0,a.D);a.rg.update(b,a.D,-a.Ba,-(c-a.Ba-a.D));return a.rg}; XQ=function(a){return(a.C?135:90)-(a.C?54:48)}; RQ=function(a,b,c){a.oa=b;a.Lb=c;var d=PQ(a),e=a.B.j,f=cM(a.B,a.oa),h=g.GJ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.XL(f,!0),DURATION:g.XL(e,!0)}),l=GP(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.B.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.xb&&2!==a.api.getPresentingPlayerType()&&(e=a.xb.startTimeMs/1E3,f=a.xb.endTimeMs/1E3);e=dM(a.B,e,0);l=dM(a.B,f,1);h=a.api.getVideoData();f=g.Fg(b,e,l);c=(null==h?0:g.vI(h))?1:g.Fg(c, e,l);b=OQ(a,b,d);g.Bl(a.Tg,"transform","translateX("+b+"px)");YQ(a,d,e,f,"PLAY_PROGRESS");(null==h?0:yI(h))?(b=a.api.getProgressState().seekableEnd)&&YQ(a,d,f,dM(a.B,b),"LIVE_BUFFER"):YQ(a,d,e,c,"LOAD_PROGRESS");if(a.api.K("web_player_heat_map_played_bar")){var m;null!=(m=a.I[0])&&m.B.setAttribute("width",(100*f).toFixed(2)+"%")}}; YQ=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ia*(a.C?3:2),l=c*h;c=UQ(a,l);var m=d*h;h=UQ(a,m);"HOVER_PROGRESS"===e&&(h=UQ(a,b.j*d,!0),m=b.j*d-LJa(a,b.j*d)*(a.C?3:2));b=Math.max(l-MJa(a,c),0);for(d=c;d=a.j.length)return a.D;for(var c=0,d=0;de.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d}; OQ=function(a,b,c){for(var d=b*a.B.j*1E3,e=-1,f=g.t(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0e?0:e)+c.u}; LJa=function(a,b){for(var c=a.j.length,d=0,e=g.t(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.C?3:2,d++;else break;return d===c?c-1:d}; g.$Q=function(a,b,c,d){var e=a.D!==c,f=a.C!==d;a.wg=b;a.D=c;a.C=d;IQ(a)&&null!=(b=a.u)&&(b.scale=d?1.5:1);SQ(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.MQ(a);a.u&&(a.u.C=a.D,f&&IQ(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-(a.C?54:48),a.rb.style.height=c+"px",g.Bl(a.Aa,"transform","translateY("+-d+"px)"),g.Bl(a.Bc,"transform","translateY("+-d+"px)")),tJa(a.u)))}; WQ=function(a){var b=!!a.xb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.xb?(c=a.xb.startTimeMs/1E3,d=a.xb.endTimeMs/1E3):(e=c>a.B.u,f=0a.oa);g.ko(a.Be,"ytp-scrubber-button-hover",c===d&&1=this.settingsMenu.LE&&(c.showMiniplayerButton&&!a.V().K("web_player_pip")&&(this.I=new pQ(a,b),g.N(this,this.I),this.I.Da(this.j.element)),this.ea.Da(this.j.element),l.JI||this.ea.hide(),c.Lb||(l=new IR(a,b),g.N(this,l),l.Da(this.j.element)),c.zb&&(l=new bR(a,b,this.settingsMenu),g.N(this,l),l.Da(this.j.element)), c.Kj&&(c=new eQ(a,b),g.N(this,c),c.Da(this.j.element)));g.N(this,this.La);this.La.Da(this.j.element);g.N(this,this.Ee);this.T(a,"appresize",this.Cb);this.T(a,"fullscreentoggled",this.Cb);this.T(a,"presentingplayerstatechange",this.SF);this.T(a,"videodatachange",this.onVideoDataChange);this.Cb()}; eKa=function(a,b){a.G.Eb().isCued()||b?b&&(a.oa.hide(),a.ya.hide(),a.muteButton&&a.muteButton.Vb(!1),a.D&&a.D.Vb(!1),a.I&&a.I.Vb(!1),a.C.vc().Zj(a.u.element)):b||(a.oa.show(),a.ya.show(),a.muteButton&&a.muteButton.Vb(!0),a.D&&a.D.Vb(!0),a.I&&a.I.Vb(!0),a.zl())}; fKa=function(a){var b=a.G.fb().getPlayerSize().width;return Math.max(b-2*TR(a),100)}; TR=function(a){var b=a.C.Vf();return 12*(a.G.getVideoData().D?0:b?2:1)}; UR=function(a){var b=a.C.Vf()?72:50;a=a.G.V();g.kG(a)&&(b=62,g.RF(a)&&(b=54));return b}; VR=function(a,b){aQ.call(this,a,b,!1);var c=this;this.T(this.G,"videodatachange",this.onVideoDataChange);this.T(this.G,g.uA("suggested_action_button_visible"),function(){c.Ef(!0)}); this.T(this.G,g.vA("suggested_action_button_visible"),function(){c.Ef(!1)})}; WR=function(a){a.G.Ff("suggested_action_button_visible")}; ZR=function(a){g.W.call(this,{F:"div",N:YR.TITLE,W:[{F:"div",N:YR.TEXT,W:[{F:"a",Fa:[YR.LINK,YR.SESSIONLINK],X:{target:a.V().J,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},qa:"{{title}}"},{F:"div",N:YR.SUBTEXT,W:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Ca(YR.LINK);a.vb(this.element,this,23851);this.T(a,"videodatachange",this.Ja);this.T(a,"videoplayerreset",this.Ja);this.Ja()}; gKa=function(a){a.Oa("channelLink","");a.Oa("channelName","");a.Oa("channelTitleFocusable","-1")}; g.$R=function(a,b){g.W.call(this,{F:"div",W:[{F:"div",N:"ytp-tooltip-text-wrapper",X:{"aria-hidden":"{{ariaHidden}}"},W:[{F:"div",N:"ytp-tooltip-edu",W:[{F:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",X:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{F:"span",qa:"{{eduText}}"}]},{F:"div",N:"ytp-tooltip-image"},{F:"div",N:"ytp-tooltip-title",W:[{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"g", W:[{F:"rect",X:{fill:"none",height:"24",width:"24",x:"0"}}]},{F:"g",W:[{F:"g",W:[{F:"polygon",X:{points:"19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25"}},{F:"polygon",X:{points:"19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75"}},{F:"path",X:{d:"M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z"}}]}]}]},{F:"span",qa:"{{title}}"}]},{F:"span",N:"ytp-tooltip-text", qa:"{{text}}"}]},{F:"div",N:"ytp-tooltip-bg",W:[{F:"div",N:"ytp-tooltip-duration",qa:"{{duration}}"}]}]});var c=this;this.api=a;this.Ia=b;this.env=this.api.V();this.Ba=this.env.isMobile;this.bg=this.Ca("ytp-tooltip-bg");this.La=this.Ca("ytp-tooltip-edu");this.image=this.Ca("ytp-tooltip-image");this.text=this.Ca("ytp-tooltip-text");this.title=this.Ca("ytp-tooltip-title");this.Z=function(d){(d=Dx(d))&&g.rh(c.u,d)||c.Ol()}; this.C=function(d){3===c.type&&c.Ol();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.C),d.addEventListener("mouseout",c.Z),d.removeEventListener("focus",c.C),d.addEventListener("blur",c.Z),hKa(c,d,2))}; this.ea=function(){c.Ol()}; this.u=null;this.D=new g.JL(this,100);this.type=null;this.S=!1;this.j=null;this.B=NaN;this.I="";this.TF=this.api.fb().getPlayerSize().width;this.J=!0;this.scale=1;this.oa=new g.Yn(this.B_,250,this);this.Aa=new g.Yn(this.Ol,5E3,this);g.N(this,this.D);g.N(this,this.oa);g.N(this,this.Aa);HF&&(a=this.Ca("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))}; gP=function(a){a.element.setAttribute("aria-live","polite")}; dKa=function(a,b){if(null!=a.type)if(b)switch(a.type){case 3:case 2:aS(a);a.D.show();break;default:a.D.show()}else a.D.hide();a.J=b}; kKa=function(a,b,c,d,e,f,h,l,m){if(!a.Ba||a.env.I){3===a.type&&a.Ol();1!==a.type&&(g.eo(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.J&&a.D.show(),a.j&&a.j.dispose(),a.j=a.api.Ji(),a.j&&a.j.subscribe("l",a.dR,a));if(m){var n=g.Ml(a.element).height||90;a.La.style.top="-"+(n-10)+"px"}a.update({text:d,title:null!=h?h:"",eduText:null!=m?m:""});g.ko(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.ko(a.element,"ytp-text-detail",!!e);d=-1;a.j&&(d=yH(a.j,160*a.scale),a.env.K("web_l3_storyboard")&& 4===a.j.levels.length&&(d=a.j.levels.length-1),d=PAa(a.j,d,c));iKa(a,d);if(l)switch(c=g.Ml(a.element).width,l){case 1:a.title.style.right="0";a.title.style.textAlign="left";break;case 2:a.title.style.right=c+"px";a.title.style.textAlign="right";break;case 3:a.title.style.right=c/2+"px",a.title.style.textAlign="center"}jKa(a,!!e,b,f)}}; g.bS=function(a){1===a.type&&a.Ol()}; g.cP=function(a,b){if(a.Ba)return function(){}; b.addEventListener("mouseover",a.C);b.addEventListener("focus",a.C);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.u===b&&a.Ol();b.removeEventListener("mouseover",a.C);b.removeEventListener("focus",a.C)}}; xP=function(a,b,c){if(a.type)if(3===a.type)a.Ol();else return;hKa(a,b,3,c)}; hKa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Qv("showElementTooltip called with non-element.",b.toString()),g.qz(a);else{isNaN(a.B)||(a.B=NaN,a.bg.style.background="");a.u=b;a.S=!!d;d?a.I=d:(a.I=b.getAttribute("title"),b.removeAttribute("title"));g.eo(a.element,"ytp-tooltip");a.env.K("web_rounded_containers")&&g.go(a.element,"ytp-rounded-tooltip");var e=b.getAttribute("data-tooltip-image");e&&(a.image.style.backgroundImage="url("+e+")");d?a.update({ariaHidden:"false"}):a.update({ariaHidden:"true"}); g.ko(a.element,"ytp-tooltip-image-enabled",!!e);b=b.getAttribute("data-tooltip-opaque");g.ko(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.ea);a.J&&(aS(a),a.D.show(0))}}; aS=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.S){var c=a.u;a.Oa("text",b);var d=c.getAttribute("data-duration");a.update({title:a.I,duration:d});c=c.getAttribute("data-preview");var e=160*a.scale,f=90*a.scale,h=160*a.scale,l=90*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=c?"url("+c+")":"";a.bg.style.backgroundPosition=(e-h)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=h+"px "+l+"px";g.ho(a.element,["ytp-text-detail","ytp-preview"]); g.ko(a.element,"ytp-has-duration",!!d)}else a.Oa("text",a.I),g.jo(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);jKa(a,!!b)}; jKa=function(a,b,c,d){var e=Math.min(a.TF,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ia.xt(a.element,a.u,c,1===a.type,d);a.element.style.top?g.go(a.element,"ytp-bottom"):a.element.style.bottom&&g.go(a.element,"ytp-top");3===a.type&&a.Aa.start()}; yP=function(a){a.u&&!a.S&&a.u.hasAttribute("title")&&(a.I=a.u.getAttribute("title")||"",a.u.removeAttribute("title"),a.J&&aS(a))}; iKa=function(a,b){g.ko(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.B)){a.B=b;b=160*a.scale;var c=160*a.scale,d=LAa(a.j,a.B,b);dJa(a.bg,d,b,c,!0);a.oa.start()}}; lKa=function(a){var b=a.u;3===a.type&&a.Aa.stop();a.api.removeEventListener("appresize",a.ea);a.S||b.setAttribute("title",a.I);a.I="";a.u=null}; g.cS=function(a,b){g.W.call(this,{F:"button",Fa:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.LF(a.V()))},W:[{F:"div",N:"ytp-watch-later-icon",qa:"{{icon}}"},{F:"div",N:"ytp-watch-later-title",qa:"Watch Later"}]});this.G=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.vc();gP(this.tooltip);a.vb(this.element,this,28665);this.Ra("click",this.onClick,this);this.T(a,"videoplayerreset",this.qW); this.T(a,"appresize",this.AB);this.T(a,"videodatachange",this.AB);this.T(a,"presentingplayerstatechange",this.AB);this.AB();a=this.G.V();var c=g.Qz("yt-player-watch-later-pending");a.u&&c?(mya(),mKa(this)):this.Ja(2);g.ko(this.element,"ytp-show-watch-later-title",g.LF(a));g.af(this,g.cP(b.vc(),this.element))}; nKa=function(a,b){g.kM(function(){mya({videoId:b});window.location.reload()},"wl_button",g.fG(a.G.V()))}; mKa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ja(3);var b=a.G.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.G.Em(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ja(2);a.G.V().C&&a.G.Pa("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0; a.isRequestPending=!1;a.Ja(1);a.G.V().isMobile&&xP(a.tooltip,a.element);a.G.V().C&&a.G.Pa("WATCH_LATER_VIDEO_ADDED")}; vM(c,b).then(d,function(){a.isRequestPending=!1;oKa(a,"An error has occurred. Please try again later.")})}}; oKa=function(a,b){a.Ja(4,b);a.G.V().C&&a.G.Pa("WATCH_LATER_ERROR",b)}; pKa=function(a,b){var c=a.G.V();if(b!==a.icon){switch(b){case 3:var d=GO();break;case 1:d=aL();break;case 2:d={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:d=c.K("watch_later_iconchange_killswitch")?{F:"svg",X:{height:"100%",version:"1.1", viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{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"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,X:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Oa("icon",d);a.icon=b}}; dS=function(a){g.TO.call(this,a);var b=this;this.qz=(this.cq=g.LF(this.api.V()))&&(this.api.V().isMobile||Yu()||Wu());this.SG=48;this.TG=69;this.ym=null;this.rq=[];this.Ic=new g.YO(this.api);this.By=this.api.K("web_player_deprecate_double_tap_ux")?new zP:new AP(this.api);this.Fj=new g.W({F:"div",N:"ytp-chrome-top"});this.OA=[];this.tooltip=new g.$R(this.api,this);this.backButton=this.Gw=null;this.channelAvatar=new iP(this.api,this);this.title=new ZR(this.api,this);this.xi=new g.UK({F:"div",N:"ytp-chrome-top-buttons"}); this.Jh=this.shareButton=this.cj=null;this.Ih=new bP(this.api,this,this.Fj.element);this.overflowButton=this.Ch=null;this.Of="1"===this.api.V().controlsType?new SR(this.api,this,this.Zd):null;this.contextMenu=new g.vP(this.api,this,this.Ic);this.HG=!1;this.qC=new g.W({F:"div",X:{tabindex:"0"}});this.pC=new g.W({F:"div",X:{tabindex:"0"}});this.iA=null;this.R3=this.aJ=this.bC=!1;var c=a.fb(),d=a.V(),e=a.getVideoData();this.cq&&(g.go(a.getRootNode(),"ytp-embed"),g.go(a.getRootNode(),"ytp-embed-playlist"), this.qz&&(g.go(a.getRootNode(),"ytp-embed-overlays-autohide"),g.go(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.SG=60,this.TG=89);this.api.V().isMobile&&(g.go(a.getRootNode(),"ytp-mobile"),this.api.V().I&&g.go(a.getRootNode(),"ytp-embed-mobile-exp"));this.Lh=e&&e.Lh;g.N(this,this.Ic);g.AN(a,this.Ic.element,4);g.N(this,this.By);g.AN(a,this.By.element,4);e=new g.W({F:"div",N:"ytp-gradient-top"});g.N(this,e);g.AN(a,e.element,1);this.lL=new g.JL(e,250,!0,100);g.N(this,this.lL);g.N(this, this.Fj);g.AN(a,this.Fj.element,1);this.kL=new g.JL(this.Fj,250,!0,100);g.N(this,this.kL);g.N(this,this.tooltip);g.AN(a,this.tooltip.element,4);var f=new PP(a);g.N(this,f);g.AN(a,f.element,5);f.subscribe("show",function(m){b.Ep(f,m)}); this.OA.push(f);this.Gw=new QP(a,this,f);g.N(this,this.Gw);d.showBackButton&&(this.backButton=new XO(a),g.N(this,this.backButton),this.backButton.Da(this.Fj.element));this.cq||this.Gw.Da(this.Fj.element);this.channelAvatar.Da(this.Fj.element);g.N(this,this.channelAvatar);g.N(this,this.title);this.title.Da(this.Fj.element);g.N(this,this.xi);this.xi.Da(this.Fj.element);d.B||(this.cj=new g.cS(a,this),g.N(this,this.cj),this.cj.Da(this.xi.element));var h=new g.YP(a,this);g.N(this,h);g.AN(a,h.element,5); h.subscribe("show",function(m){b.Ep(h,m)}); this.OA.push(h);d.B||(this.shareButton=new g.XP(a,this,h),g.N(this,this.shareButton),this.shareButton.Da(this.xi.element),this.Jh=new g.wP(a,this),g.N(this,this.Jh),this.Jh.Da(this.xi.element));d.Wl&&(e=new dQ(a),g.N(this,e),g.AN(a,e.element,4));this.cq&&this.Gw.Da(this.xi.element);g.N(this,this.Ih);this.Ih.Da(this.xi.element);d.B||(e=new dP(a,this,this.Ih),g.N(this,e),e.Da(this.xi.element));this.Ch=new MP(a,this);g.N(this,this.Ch);g.AN(a,this.Ch.element,5);this.Ch.subscribe("show",function(){b.Ep(b.Ch, b.Ch.wh())}); this.OA.push(this.Ch);this.overflowButton=new LP(a,this,this.Ch);g.N(this,this.overflowButton);this.overflowButton.Da(this.xi.element);this.Of&&g.N(this,this.Of);"3"===d.controlsType&&(e=new WP(a,this),g.N(this,e),g.AN(a,e.element,9));g.N(this,this.contextMenu);this.contextMenu.subscribe("show",this.yT,this);e=new eM(a,new WO(a));g.N(this,e);g.AN(a,e.element,4);this.qC.Ra("focus",this.nZ,this);g.N(this,this.qC);this.pC.Ra("focus",this.oZ,this);g.N(this,this.pC);var l;(this.Co=d.kf?null:new g.IP(a, c,this.contextMenu,this.Zd,this.Ic,this.By,function(){return b.al()},null==(l=this.Of)?void 0:l.Bc))&&g.N(this,this.Co); this.cq||(this.DS=new bQ(this.api,this),g.N(this,this.DS),g.AN(a,this.DS.element,4));this.PS=new VR(this.api,this);g.N(this,this.PS);g.AN(a,this.PS.element,4);this.cq&&this.api.V().K("embeds_web_enable_info_panel_preview")&&(c=new CP(a,this.qz),g.N(this,c),g.AN(a,c.element,5),c=new EP(a,c),g.N(this,c),g.AN(a,c.element,4));this.qq.push(this.Ic.element);this.T(a,"fullscreentoggled",this.Jo);this.T(a,"offlineslatestatechange",function(){b.api.vz()&&zO(b.Zd,128,!1)}); this.T(a,"cardstatechange",function(){b.Jk()}); this.T(a,"resize",this.n1);this.T(a,"showpromotooltip",this.R1)}; qKa=function(a){var b=a.api.V(),c=g.V(a.api.Eb(),128);return b.u&&c&&!a.api.isFullscreen()}; eS=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==El(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=eS(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexa;a++){var b=g.ih("VIDEO");b.load();oS.push(new g.yO(b))}}; CKa=function(){}; g.pS=function(a,b,c,d){d=void 0===d?!1:d;UJ.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d}; DKa=function(a,b,c){var d=b.getVideoData(),e=a.getVideoData();if(b.getPlayerState().isError())return{msg:"player-error"};b=e.C;if(a.lj()>c/1E3+1)return{msg:"in-the-past"};if(e.isLivePlayback&&!isFinite(c))return{msg:"live-infinite"};(a=a.Qd())&&a.isView()&&(a=a.mediaElement);if(a&&12h&&(e=h-200,a.J=!0);f.getCurrentTime()>=e/1E3?a.I():(a.u=f,f=e,e=a.u,a.app.Va.addEventListener(g.uA("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.sA(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));f=d/=1E3;e=b.getVideoData().j;if(d&&e&&a.u){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/1E3, uS(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),h=Math.min(d,uS(b)+l));f=cya(e,h)||d;f!==d&&a.j.va("qvaln",{st:d,at:f,rm:l,ct:h})}b=f;d=a.j;d.getVideoData().xg=!0;d.getVideoData().Xa=!0;g.xS(d,!0);e={};a.u&&(e=g.yS(a.u.pc.u),f=a.u.getVideoData().clientPlaybackNonce,e={crt:(1E3*e).toFixed(),cpn:f});d.va("queued",e);0!==b&&d.seekTo(b+.01,{Hs:!0,jL:3,ze:"videoqueuer_queued"});a.B=new qS(a.S,a.app.Jc(),a.j,c);c=a.B;Infinity!==c.status.status&&(sS(c,1),c.j.subscribe("internalvideodatachange",c.Jr,c), c.u.subscribe("internalvideodatachange",c.Jr,c),c.j.subscribe("mediasourceattached",c.Jr,c),c.u.subscribe("statechange",c.Tc,c),c.j.subscribe("newelementrequired",c.iR,c),c.Jr());return a.C}; MKa=function(a){var b,c,d;g.A(function(e){switch(e.j){case 1:if(a.isDisposed()||!a.C||!a.j)return e.return();a.J&&zS(a.app.Jc(),!0,!1);b=null;if(!a.B){e.Ma(2);break}g.pa(e,3);return g.x(e,IKa(a.B),5);case 5:g.ra(e,2);break;case 3:b=c=g.ua(e);case 2:if(!a.j)return e.return();g.rS.lK("vqsp",function(){AS(a.app,a.j)}); g.rS.lK("vqpv",function(){a.app.playVideo()}); b&&OKa(a.j,b.message);d=a.C;wS(a);return e.return(d.resolve(void 0))}})}; wS=function(a){if(a.u){var b=a.u;a.app.Va.removeEventListener(g.uA("vqueued"),a.I);b.removeCueRange(a.D);a.u=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.Nf("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.oN(a.app,1)&&a.j!==a.app.Jc()&&a.j.dispose();a.j=null;a.J=!1}; PKa=function(){var a=yoa();return!(!a||"visible"===a)}; RKa=function(a){var b=QKa();b&&document.addEventListener(b,a,!1)}; SKa=function(a){var b=QKa();b&&document.removeEventListener(b,a,!1)}; QKa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[vx+"VisibilityState"])return"";a=vx+"visibilitychange"}return a}; BS=function(){g.cz.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.j=this.B=this.inline=!1;this.C=function(){a.Ef()}; RKa(this.C);this.D=this.getVisibilityState(this.Dg(),this.isFullscreen(),this.Cf(),this.isInline(),this.jw(),this.ew())}; TKa=function(a,b){var c;if(b.sG)for(c=0;ch&&(HS(a,{reason:"enterTime_greater_than_return",Cc:f,Yc:h}),n))return"";var q=1E3*p.getMinSeekableTime();if(f< q&&(HS(a,{reason:"enterTime_less_than_minSeekableTime",Cc:f,j6a:q}),n))return"";p=1E3*p.getDuration();if(h>p&&(HS(a,{reason:"parent_return_greater_than_content_duration",Yc:h,h6a:p}),n))return"";p=null;if(n)for(n=g.t(a.D),q=n.next();!q.done;q=n.next()){q=q.value;if(f>=q.Cc&&fq.Cc||h===q.Cc)return IS(a,b.video_id||"",f,h,q),"";f===q.Yc&&(p=q)}else n=g.kc(a.D,{Yc:f},function(w,y){return w.Yc-y.Yc}),0<=n&&(p=a.D[n],p.Yc>f&&IS(a,b.video_id||"",f,h,p)); if(m&&p)for(n=g.t(a.Ta.entries()),q=n.next();!q.done;q=n.next()){var r=g.t(q.value);q=r.next().value;r=r.next().value;if(r.identifier===m.identifier){a.Ta.splice(q,1);break}}else if(m&&a.Y.K("web_player_ss_timeout_skip_ads"))return a.xa.va("sdai",{rejectAttl:1}),l&&!Ql(a.jd,function(w){return w===l})&&(a.xa.va("sdai",{rejectAdBreakAttl:1}),a.jd.push(l)),a.Y.K("web_player_stop_timer_for_timedout_ab_killswitch")||JS(a),""; m="ss_childplayback_"+YKa++;b.cpn||(b.cpn=g.xz(16));n=b.cpn;b=new g.GH(a.Y,b);b.Gc=m;c={Gc:m,playerType:d,durationMs:e,Cc:f,Yc:h,cpn:n,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.qc(a.D,c,function(w,y){return w.Cc-y.Cc}); a.u.set(n,c);a.zc.set(m,c);a.xa.va("sdai",{attlDone:h-f,acpn:n});l?c.Vj=l:p?c.Vj=p.Vj:c.Vj=c.cpn;if(f=c.Vj)(d=a.Z.get(f))?(d.push(c),g.mc(d,function(w,y){return w.Cc-y.Cc})):a.Z.set(f,[c]); a.S.isActive()&&(a.ya=!1,a.S.stop(),DS(a),a.jz(!0));return m}; KS=function(a,b,c){return a.Y.experiments.ib("html5_ssdai_log_ad_transition_info")&&c?{ssvc:b,cpn:c.cpn,vid:c.videoData.videoId}:{ssvc:b}}; $Ka=function(a,b,c){return new g.sA(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})}; LS=function(a){return{cpn:a.xa.getVideoData().clientPlaybackNonce,durationMs:0,Cc:0,playerType:1,Yc:0,videoData:a.xa.getVideoData(),errorCount:0}}; NS=function(a,b,c){var d=a.I,e=LS(a),f=a.J;a.J="";var h=b.pg-c.pg;.5d?-1*(d+2):d;return 0<=d&&(a=a.D[d],a.Yc>=c)?{wm:a,Ys:b}:{wm:void 0,Ys:b}}; PS=function(a,b){var c="";ES(a)?(c=b/1E3-a.Zn(),c=a.xa.Uv(c)):(b=aLa(a,b))&&(c=b.getId());return c?a.u.get(c):void 0}; aLa=function(a,b){a=g.t(a.C.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c}; CS=function(a,b){var c=a.Ub||a.api.Jc().getPlayerState();QS(a,!0);var d=b;a.Y.K("web_player_ssdai_seek_without_offset_killswitch")&&(d=OS(a,b).Ys);a.xa.seekTo(d);a=a.api.Jc();b=a.getPlayerState();g.eK(c)&&!g.eK(b)?a.playVideo():g.V(c,4)&&!g.V(b,4)&&a.pauseVideo()}; QS=function(a,b){a.xc=NaN;a.jc.stop();a.kb&&b&&RS(a.kb);a.Ub=null;a.kb=null}; SS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=[],h=g.t(a.D),l=h.next();!l.done;l=h.next())l=l.value,(l.Cce)&&f.push(l);a.D=f;d=b;e=c;f=g.t(a.C.values());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.xa.removeCueRange(h),a.C.delete(h.getId()),a.xa.va("sdai",{rmAdCR:1}));d=OS(a,b/1E3);b=d.wm;d=d.Ys;b&&(d=1E3*d-b.Cc,e=b.Cc+d,b.durationMs=d,b.Yc=e,bLa(a,b));if(b=OS(a,c/1E3).wm){var m;d="playback_timelinePlaybackId_"+b.Gc+"_video_id_"+(null== (m=b.videoData)?void 0:m.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.Cc+"_parentReturnTimeMs_"+b.Yc;a.Ez("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; cLa=function(a){a.Aa.clear();a.Xa.clear();a.Ba.clear();a.C.clear();a.B=[];a.D=[];a.u.clear();a.zc.clear();a.Z.clear();a.La.clear();a.Lb=[];a.oa=null;a.Hd.clear();a.Ta=[];a.Rc=[];a.Td=[];a.jd=[];a.Ia=[];a.ud.clear();a.Gd.clear();a.zb.clear();a.rb.clear();a.isLiveNow=!0;a.ya=!1;a.j=void 0;a.jb=0;a.bb=!0;a.I=!1;a.bk=0;a.ea=null;a.Lc=0;a.Hc=!1;a.Cp=!1;a.J="";a.S.isActive()&&JS(a)}; bLa=function(a,b){var c=a.C.get(b.cpn);if(c){a=g.t(a.B);for(var d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Cc+b.durationMs:d.end===c.start&&(d.end=b.Cc);c.start=b.Cc;c.end=b.Cc+b.durationMs}}; eLa=function(a,b,c,d,e){if(!a.Cp)if(g.dLa(a,c))a.Qa&&a.xa.va("sdai",{gdu:"undec",seg:c,itag:e});else return TS(a,b,c,d)}; TS=function(a,b,c,d){var e=a.La.get(c);if(!e){b+=a.Zn();b=OS(a,b,1);var f;a.Y.K("web_player_keep_decorating_last_chunk_killswitch")||b.wm||2!==(null==(f=US(a,c-1,null!=d?d:2))?void 0:f.Vx)?e=b.wm:e=a.La.get(c-1)}return e}; fLa=function(a){if(a.Ia.length)for(var b=g.t(a.Ia),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);c=g.t(a.C.values());for(b=c.next();!b.done;b=c.next())a.xa.removeCueRange(b.value);c=g.t(a.B);for(b=c.next();!b.done;b=c.next())a.xa.removeCueRange(b.value);a.C.clear();a.B=[];a.Aa.clear();a.Xa.clear();a.Ba.clear();a.j||(a.bb=!0)}; US=function(a,b,c){if(1===c&&a.Aa.has(b))return a.Aa.get(b);if(2===c&&a.Xa.has(b))return a.Xa.get(b);if(3===c&&a.Ba.has(b))return a.Ba.get(b)}; VS=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;gLa(a,c,f)}else if(e.start>=b&&e.startc)e.start=c;else if(e.end>b&&e.end<=c&&e.start=b&&e.end<=c){a.xa.removeCueRange(e);if(a.Ia.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else gLa(a,b,c)}; gLa=function(a,b,c){b=$Ka(b,c);c=!0;g.qc(a.B,b,function(h,l){return h.start-l.start}); for(var d=0;d=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.xa.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.xa.addCueRange(b),b=a.xa.Hy("serverstitchedcuerange",36E5),b=g.t(b),c=b.next();!c.done;c=b.next())a.C.delete(c.value.getId())}; WS=function(a,b,c){if(void 0===c||!c){c=g.t(a.Lb);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.Lb.push(new VKa(b))}}; g.dLa=function(a,b){a=g.t(a.Lb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1}; IS=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",a6a:b,Cc:c,Yc:d,C5a:e.Gc,D5a:(null==(f=e.videoData)?void 0:f.videoId)||"",z5a:e.durationMs,A5a:e.Cc,B5a:e.Yc};HS(a,b)}; HS=function(a,b){a=a.xa;a.va("timelineerror",b);a.Cd(new yG("dai.timelineerror",b))}; hLa=function(a,b){var c=[];a=a.Z.get(b);if(!a)return[];a=g.t(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c}; iLa=function(a,b,c){var d=0;a=a.Z.get(c);if(!a)return-1;a=g.t(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1}; jLa=function(a,b){var c=[];a=a.Z.get(b);if(!a)return[];a=g.t(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c}; kLa=function(a,b){var c=0;a=a.Z.get(b);if(!a)return 0;a=g.t(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Yc!==b.Cc&&c++;return c}; lLa=function(a,b,c){var d=!1;if(c&&(c=a.Z.get(c))){c=g.t(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Yc!==e.Cc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Gd.has(e)&&(a.xa.va("sdai",{decoratedAd:e}),a.Gd.add(e)))}}; DS=function(a){a.Qa&&a.xa.va("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Lc)+"_isTimeout_"+a.ya})}; XKa=function(a,b,c){if(a.Ta.length)for(var d={},e=g.t(a.Ta),f=e.next();!f.done;d={Vq:d.Vq},f=e.next()){d.Vq=f.value;f=1E3*d.Vq.startSecs;var h=1E3*d.Vq.durationSecs+f;if(b>f&&bf&&cf)return YS(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.getMinSeekableTime();if(en)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+ m.Ad(),YS(a,m,h,l),"";n=null;for(var p=g.t(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Cc&&eq.Cc)return YS(a,"overlappingReturn",h,l),"";if(f===q.Cc)return YS(a,"outOfOrder",h,l),"";e===q.Yc&&(n=q)}h="cs_childplayback_"+nLa++;l={Pd:ZS(d,!0),Hl:Infinity,target:null};var r={Gc:h,playerVars:b,playerType:c,durationMs:d,Cc:e,Yc:f,Gp:l};a.u=a.u.concat(r).sort(function(z,B){return z.Cc-B.Cc}); n?oLa(a,n,{Pd:ZS(n.durationMs,!0),Hl:a.Y.K("timeline_manager_transition_killswitch")?Infinity:n.Gp.Hl,target:r}):(b={Pd:ZS(e,!1),Hl:e,target:r},a.I.set(b.Pd,b),m.addCueRange(b.Pd));b=!0;if(a.j===a.api.Jc()&&(m=1E3*m.getCurrentTime(),m>=r.Cc&&mb)break;if(f>b)return{wm:d,Ys:b-e};c=f-d.Yc/1E3}return{wm:null,Ys:b-c}}; mLa=function(a,b){var c=a.D||a.api.Jc().getPlayerState();cT(a,!0);b=a.Y.K("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.j.il();var d=bT(a,b);b=d.wm;d=d.Ys;var e=b&&!$S(a,b)||!b&&a.j!==a.api.Jc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||aT(a);b?pLa(a,b,d,c):dT(a,d,c)}; dT=function(a,b,c){var d=a.j,e=a.api.Jc();d!==e&&a.api.Mo();d.seekTo(b,{ze:"application_timelinemanager"});uLa(a,c)}; pLa=function(a,b,c,d){var e=$S(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.GH(a.Y,b.playerVars);f.Gc=b.Gc;a.api.lq(f,b.playerType)}f=a.api.Jc();e||f.addCueRange(b.Gp.Pd);f.seekTo(c,{ze:"application_timelinemanager"});uLa(a,d)}; uLa=function(a,b){a=a.api.Jc();var c=a.getPlayerState();g.eK(b)&&!g.eK(c)?a.playVideo():g.V(b,4)&&!g.V(c,4)&&a.pauseVideo()}; cT=function(a,b){a.Z=NaN;a.S.stop();a.C&&b&&RS(a.C);a.D=null;a.C=null}; $S=function(a,b){a=a.api.Jc();return!!a&&a.getVideoData().Gc===b.Gc}; vLa=function(a){var b=a.u.find(function(e){return $S(a,e)}); if(b){var c=a.api.Jc();aT(a);var d=new g.ZJ(8);b=tLa(a,b)/1E3;dT(a,b,d);c.va("forceParentTransition",{childPlayback:1});a.j.va("forceParentTransition",{parentPlayback:1})}}; eT=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.t(a.I),h=f.next();!h.done;h=f.next()){var l=g.t(h.value);h=l.next().value;l=l.next().value;l.Hl>=d&&l.target&&l.target.Yc<=e&&(a.j.removeCueRange(h),a.I.delete(h))}d=b;e=c;f=[];h=g.t(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Cc>=d&&l.Yc<=e){var m=a;m.J===l&&aT(m);$S(m,l)&&m.api.Mo()}else f.push(l);a.u=f;d=bT(a,b/1E3);b=d.wm;d=d.Ys;b&&(d*=1E3,wLa(a,b,d,b.Yc===b.Cc+b.durationMs?b.Cc+d:b.Yc));(b=bT(a,c/1E3).wm)&& YS(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Gc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Cc+" parentReturnTimeMs="+b.Yc+"}.Child playbacks can only have duration updated not their start."))}; wLa=function(a,b,c,d){b.durationMs=c;b.Yc=d;d={Pd:ZS(c,!0),Hl:c,target:null};oLa(a,b,d);$S(a,b)&&1E3*a.api.Jc().getCurrentTime()>c&&(b=tLa(a,b)/1E3,c=a.api.Jc().getPlayerState(),dT(a,b,c))}; YS=function(a,b,c,d){a.j.va("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})}; yLa=function(a){a&&"web"!==a&&xLa.includes(a)}; hT=function(a,b){g.K.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.j=new g.Yn(function(){fT(c);gT(c)}); g.N(this,this.j)}; jT=function(a){var b;if(b=void 0===b?!1:b)for(var c=g.t(a.data),d=c.next();!d.done;d=c.next())iT(a,d.value,b);a.data=[];gT(a)}; fT=function(a){var b=(0,g.T)();a.data.forEach(function(c){c.expire=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.u=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.u.observe(a)}; uT=function(a){g.W.call(this,{F:"div",Fa:["html5-video-player"],X:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},W:[{F:"div",N:g.tT.VIDEO_CONTAINER,X:{"data-layer":"0"}}]});var b=this;this.app=a;this.oy=this.Ca(g.tT.VIDEO_CONTAINER);this.Iw=new g.yl(0,0,0,0);this.Mb=null;this.ZD=new g.yl(0,0,0,0);this.cI=this.dJ=this.cJ=NaN;this.RC=this.WD=this.bK=this.lO=!1;this.XG=NaN;this.FI=!1;this.Fz=null;this.zJ=function(){b.element.focus()}; this.ID=function(){b.app.Va.ma("playerUnderlayVisibilityChange","visible");b.Mb.classList.remove(g.tT.VIDEO_CONTAINER_TRANSITIONING);b.Mb.removeEventListener(FLa,b.ID);b.Mb.removeEventListener("transitioncancel",b.ID)}; var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])}; this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])}; var e=a.V();e.transparentBackground&&this.mp("ytp-transparent");"0"===e.controlsType&&this.mp("ytp-hide-controls");g.go(this.element,"ytp-exp-bottom-control-flexbox");e.K("html5_player_bottom_linear_gradient")&&g.go(this.element,"ytp-linear-gradient-bottom-experiment");e.K("enable_new_paid_product_placement")&&!g.nG(e)&&g.go(this.element,"ytp-exp-ppp-update");pG(e)&&g.go(this.element,"ytp-exp-hybrid-controls");Cra(this.element,"version",GLa(a));this.ES=!1;this.Ky=new g.Lg(NaN,NaN);HLa(this);this.T(a.Va, "onMutedAutoplayChange",this.onMutedAutoplayChange)}; HLa=function(a){function b(){a.Mb&&vT(a);wT(a)!==a.FI&&a.resize()} function c(h,l){a.Vp(h,l)} function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())} function e(){a.ZD=new g.yl(0,0,0,0);a.Iw=new g.yl(0,0,0,0)} var f=a.app.Va;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.af(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})}; ILa=function(a){var b=g.oN(a.app);if(b=b?b.getVideoData():null){if(g.jI(b)||g.kI(b)||g.mI(b))return 16/9;if(TH(b)&&b.C.j)return a=b.C.videoInfos[0].video,xT(a.width,a.height)}return(a=a.Mb)?xT(a.videoWidth,a.videoHeight):16/9}; JLa=function(a,b,c,d){var e=c,f=xT(b.width,b.height);a.lO?e=cf?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cMath.abs(yT*b-a)||1>Math.abs(yT/a-b)?yT:a/b}; wT=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.oN(a.app);if(!b||b.ql())return!1;var c=a.app.Va.Eb();a=!g.V(c,2)||!a.app.V().K("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Xa;b=g.V(c,1024);return c&&a&&!b&&!c.isCued()}; vT=function(a){var b="3"===a.app.V().controlsType&&!a.RC&&wT(a)&&!a.app.Jz||!1;a.Mb.controls=b;a.Mb.tabIndex=b?0:-1;b?a.Mb.removeEventListener("focus",a.zJ):a.app.V().K("disable_focus_redirect")||a.Mb.addEventListener("focus",a.zJ)}; KLa=function(a){var b=a.Ki(),c=1,d=!1,e=JLa(a,b,a.getVideoAspectRatio()),f=a.app.V(),h=f.K("enable_desktop_player_underlay"),l=Uu(),m=g.SE(f.experiments,"player_underlay_min_player_width");m=h&&a.bK&&a.getPlayerSize().width>m;if(wT(a)){var n=ILa(a);var p=isNaN(n)||g.ww||zT&&g.Yv||m;Vu&&!g.wc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.K("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.yl(p,0,b.width,b.height)):p=new g.yl(0, 0,b.width,b.height):(c=e.aspectRatio/n,p=new g.yl((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.Yv&&(n=p.width-b.height*n,0Math.max(p.width-e.width,p.height-e.height));if(l||a.ES)a.Mb.style.display="";a.FI=!0}else{p=-b.height;Vu?p*=window.devicePixelRatio:g.qG&&(p-=window.screen.height);p=new g.yl(0,p,b.width,b.height);if(l||a.ES)a.Mb.style.display="none";a.FI= !1}zl(a.ZD,p)||(a.ZD=p,g.TF(f)?(a.Mb.style.setProperty("width",p.width+"px","important"),a.Mb.style.setProperty("height",p.height+"px","important")):g.Ll(a.Mb,p.getSize()),d=new g.Jg(p.left,p.top),g.Hl(a.Mb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.yl((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);zl(a.Iw,b)||(a.Iw=b,d=!0);g.Bl(a.Mb,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.WD&&(m&&(a.Mb.addEventListener(FLa,a.ID),a.Mb.addEventListener("transitioncancel",a.ID),a.Mb.classList.add(g.tT.VIDEO_CONTAINER_TRANSITIONING)), a.WD=m,a.app.Va.ma("playerUnderlayVisibilityChange",a.WD?"transitioning":"hidden"));return d}; LLa=function(){this.csn=g.Bz();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.j=new Set;this.u=new Set}; MLa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.j.delete(b);a.u.delete(b)}; NLa=function(a){if(a.csn!==g.Bz())if("UNDEFINED_CSN"===a.csn)a.csn=g.Bz();else{var b=g.Bz(),c=g.Az();if(b&&c){a.csn=b;for(var d=g.t(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.Fz(void 0,b,c,[e])}if(b)for(a=g.t(a.j),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.Gz(b,c)}}; AT=function(a,b,c,d,e){g.W.call(this,{F:"div",N:"ytp-horizonchart"});this.D=b;this.sampleCount=c;this.B=d;this.C=e;this.index=0;this.heightPx=-1;this.u=this.ctx=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.D+"em"}; BT=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.ih("CANVAS"),a.ctx=c.getContext("2d")}catch(e){}if(a.ctx){var d=a.j*a.sampleCount;a.u=c;a.u.width=d;a.u.style.width=d+"px";a.element.appendChild(a.u)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c=h&&a.ua.seekCount?(a.seekCount++,a.Ka.va("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.u,actual:h,duration:l,isVideo:c}),a.seek(a.u)):(a.Ka.va("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.u,actual:h}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Ka.xa.seekTo(h+.1,{Hs:!0,ze:"chunkSelectorSynchronizeMedia",rp:!0})))}})}; TLa=function(a,b,c){if(!a.Eg())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.getSegmentNumberForTime(a.u);return(AD(c,a.j.df)||b.Na===a.j.df)&&dc||c===a.B)&&!isNaN(a.D)?a.D:b}; bMa=function(a,b,c,d){aMa(a.I,d,c,b);aMa(a.Ba,d,c,b);DE(a.S,d,!0);DE(a.S,d,!1);a.va("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})}; cMa=function(a,b){if(a.j){var c=a.j.qf.durationSecs-(b.startTime+a.J-a.j.qf.startSecs);0>=c||(c=new kA(a.j.qf.startSecs-(isNaN(a.J)?0:a.J),c,a.j.qf.context,a.j.qf.identifier,"stop",a.j.qf.j+1E3*b.duration),a.va("cuepointdiscontinuity",{segNum:b.Na}),NT(a,c,b.Na))}}; OT=function(a,b,c){a.u!==b&&(a.va("sdai",{setsst:b,old:a.u,r:c}),a.u=b)}; PT=function(a,b,c,d){(void 0===d?0:d)?OT(a,1,"sk2h"):0b)return!0;a.ya.clear()}return!1}; lMa=function(a,b){return new QT(a.J,a.u,b||a.B.reason)}; XT=function(a){return a.B.isLocked()}; hMa=function(a){a.Qa?a.Qa=!1:a.Z=(0,g.T)();a.S=!1;return new QT(a.J,a.u,a.B.reason)}; mMa=function(a,b){var c={};b=g.t(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.j,f=c[e],h=f&&TD(f)&&f.video.j>a.policy.Z,l=e<=a.policy.Z?TD(d):FB(d);if(!f||h||l)c[e]=d}return c}; RT=function(a,b){a.B=b;var c=a.I.videoInfos;if(!XT(a)){var d=(0,g.T)();c=g.wm(c,function(q){if(q.Rb>this.policy.Rb)return!1;var r=this.C.j[q.id],w=r.info.j;return this.policy.Ku&&this.Xa.has(w)||this.ya.get(q.id)>d||4=q.video.width&&480>=q.video.height}))}c.length||(c=a.I.videoInfos); var e=g.wm(c,b.C,b);if(XT(a)&&a.oa){var f=g.Rb(c,function(q){return q.id===a.oa}); f?e=[f]:delete a.oa}f="m"===b.reason||"s"===b.reason;a.policy.Oj&&zT&&g.Yv&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.u||q.u.powerEfficient)})); if(0c.ZA.video.width?(g.Xb(e,b),b--):UT(a,c.YA)*a.policy.B>UT(a,c.ZA)&&(g.Xb(e,b-1),b--);c=e[e.length-1];a.jb=!!a.u&&!!a.u.info&&a.u.info.j!==c.j;a.D=e;GHa(a.policy,c)}; eMa=function(a,b){b?a.j=a.C.j[b]:(b=g.Rb(a.I.j,function(c){return!!c.Nc&&c.Nc.isDefault}),a.policy.lm&&!b&&(b=g.Rb(a.I.j,function(c){return c.audio.j})),b=b||a.I.j[0],a.j=a.C.j[b.id]); ST(a)}; nMa=function(a,b){for(var c=0;c+1d}; ST=function(a){if(!a.j||!a.policy.u&&!a.j.info.Nc){var b=a.I.j;a.j&&a.policy.lm&&(b=b.filter(function(e){return e.audio.j===a.j.info.audio.j}),b.length||(b=a.I.j)); a.j=a.C.j[b[0].id];if(1a.B.j:nMa(a,a.j);c&&(a.j=a.C.j[g.Ob(b).id])}}}; TT=function(a){a.policy.Li&&(a.La=a.La||new g.Yn(function(){a.policy.Li&&a.u&&!WT(a)&&1===Math.floor(10*Math.random())?(VT(a,a.u),a.S=!0):a.La.start()},6E4),g.Zn(a.La)); if(!a.nextVideo||!a.policy.u)if(XT(a))a.nextVideo=360>=a.B.j?a.C.j[a.D[0].id]:a.C.j[g.Ob(a.D).id];else{for(var b=Math.min(a.videoIndex,a.D.length-1),c=GT(a.Aa),d=UT(a,a.j.info),e=c/a.policy.C-d;0=f);b++);a.nextVideo=a.C.j[a.D[b].id];a.videoIndex!==b&&a.logger.info(function(){var h=a.B;return"Adapt to: "+zxa(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+ f.toFixed(0)+", constraint: ["+(h.u+"-"+h.j+", override: "+(h.B+", reason: "+h.reason+"]"))}); a.videoIndex=b}}; fMa=function(a){var b=a.policy.C,c=GT(a.Aa),d=c/b-UT(a,a.j.info);b=g.Sb(a.D,function(e){return UT(this,e)b&&(b=0);a.videoIndex=b;a.nextVideo=a.C.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+zxa(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})}; gMa=function(a){if(a.kb.length){var b=a.kb,c=function(d,e){if("f"===d.info.j||b.includes(aD(d,a.C.uf,a.Ka.Sf(),a.policy.xc)))return d;for(var f={},h=0;ha.policy.le&&(c*=1.5);return c}; oMa=function(a,b){a=Eca(a.C.j,function(c){return c.info.itag===b}); if(!a)throw Error("Itag "+b+" from server not known.");return a}; pMa=function(a){var b=[];if("m"===a.B.reason||"s"===a.B.reason)return b;if(Qxa(a.C)){for(var c=Math.max(0,a.videoIndex-2);c=d.length)return;if(0>c)throw Error("Missing data");a.B=a.C;a.u=0}for(e={};c=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0hU.length&&hU.push(m)}r= void 0}m=r;if(null!==m){var w=m;break a}}catch(y){}}c+=e}w=null}catch(y){w=null}}if(null!=w)for(b=g.qd(w,7),null==b||a.cf||(a.cryptoPeriodIndex=b),b=g.qd(w,10),null!=b&&0=a.j.totalLength)throw Error();return $B(a.j,a.offset++)}; CMa=function(a,b){b=void 0===b?!1:b;var c=kU(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=kU(a);-1===b&&255!==d&&(b=0);-1e&&d>c;e++)c=256*c+kU(a),d*=128;return b?c:c-d}; nU=function(a,b,c){var d=this;this.Ka=a;this.policy=b;this.I=c;this.logger=new g.kT("dash");this.u=[];this.j=null;this.oa=-1;this.S=0;this.Aa=NaN;this.Z=0;this.B=NaN;this.Ia=this.La=0;this.Xa=-1;this.Ba=this.C=this.D=this.ya=null;this.bb=this.Ta=NaN;this.J=this.ea=this.Qa=this.jb=null;this.kb=!1;this.timestampOffset=0;if(this.policy.u){var e=this.I,f=this.policy.u;this.J=new $T(this.policy,e,function(h,l,m){lU(a,new iU(d.policy.u,2,{hA:new BMa(f,h,e.info,l,m)}))}); this.J.S.promise.then(function(h){d.J=null;1===h&&lU(a,new iU(d.policy.u,h))},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); h instanceof fU&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),mU(d),lU(a,new iU(d.policy.u,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Ka.va("dldbwerr",{em:l}),mU(d),lU(a,new iU(d.policy.u,4,{TC:!0})))})}}; DMa=function(a){return a.u.length?a.u[0]:null}; oU=function(a){return a.u.length?a.u[a.u.length-1]:null}; HMa=function(a,b,c){if(a.C){var d=a.C.Jb+a.C.u;if(0=a.oa&&0===a.S){var f=a.j.j, h=-1;e=-1;if(c){for(var l=0;l+8e&&(h=-1)}else{f=new jU(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var q=CMa(p,!0),r=CMa(p,!1);var w=q;var y=r}catch(B){y=w=-1}p=w;var z=y;if(!(0h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.getOffset()+z);if(160===p){0>h&&(e=h=f.getOffset()+ z);break}f.skip(z)}}0>h&&(e=-1)}if(0>h)break;a.oa=h;a.S=e-h}if(a.oa>d)break;a.oa?(d=FMa(a,a.oa),d.D&&GMa(a,d),EMa(a,b,d),sU(a,d),a.oa=0):a.S&&(d=FMa(a,0>a.S?Infinity:a.S),a.S-=d.j.totalLength,sU(a,d))}}a.j&&a.j.info.Ge&&(sU(a,a.j),a.j=null)}; rU=function(a,b){!b.info.j.Xm()&&0===b.info.Jb&&(g.HD(b.info.j.info)||b.info.j.info.cf())&&vxa(b);if(1===b.info.type)try{GMa(a,b),IMa(a,b)}catch(d){g.qz(d);var c=nD(b.info);c.hms="1";a.Ka.handleError("fmt.unparseable",c||{},1)}b.info.j.iI(b);a.J&&tMa(a.J,b)}; mU=function(a){var b;null==(b=a.J)||b.dispose();a.J=null}; JMa=function(a){var b=a.u.reduce(function(c,d){return c+d.j.totalLength},0); a.j&&(b+=a.j.j.totalLength);return b}; tU=function(a){return g.Pk(a.u,function(b){return b.info})}; FMa=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=oxa(c,b);a.j=c[1];return c[0]}; GMa=function(a,b){var c=GD(b);if(SD(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new GC(c);IC(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;FB(d)&&!SD(d)&&(d=GD(b),(new GC(d)).hw(),MC([408125543,374648427,174,224],21936,d));b.info.j.info.isVideo()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.HD(d.info)?d.B=vwa(c):d.info.cf()&&(d.B=Cwa(c))));b.info.j.info.cf()&& b.info.isVideo()&&(c=GD(b),(new GC(c)).hw(),MC([408125543,374648427,174,224],30320,c)&&MC([408125543,374648427,174,224],21432,c));if(a.policy.Wu&&b.info.j.info.cf()){c=GD(b);var e=new GC(c);if(IC(e,[408125543,374648427,174,29637])){d=LC(e,!0);e=e.start+e.pos;for(var f=0;fm||(e&&b.skip(4),f&&b.skip(4),e=oC(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.ya&&!!a.ya.I.C)if(b=c.info.isVideo())b=uxa(c),h=a.ya,uU?(l=1/b,b=vU(a,b)>=vU(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&KMa(c)&&(b=a.ya,uU?(l=uxa(c),h=1/l,l=vU(a,l),b=vU(b)+h-l):b=b.getDuration()- a.getDuration(),b=1+b/c.info.duration,uwa(GD(c),b))}else{h=!1;a.D||(vxa(c),c.u&&(a.D=c.u,h=!0,e=c.info,f=c.u.j,e.D="updateWithEmsg",e.Na=f,e=c.u,e.C&&(a.I.index.u=!e.C),e=c.info.j.info,f=GD(c),g.HD(e)?EC(f,1701671783):e.cf()&&MC([408125543],307544935,f)));a:{if(f=e=ID(c,a.policy.bb))f=c.info.j.info.cf()&&160===$B(c.j,0);if(f)a.Z+=e,a.B=a.policy.Hd?a.B+e:NaN;else{if(a.policy.Yt){if(f=d=a.Ka.rp(qxa(c),1),0<=a.B&&6!==c.info.type){if(a.policy.Hd&&isNaN(a.Ta)){g.rz(new g.Qv("Missing duration while processing previous chunk", oD(c.info)));pU(a,"m");break a}var n=d-a.B;m=n-a.Ia;var p=c.info.Na,q=a.Ba?a.Ba.Na:-1,r=a.bb,w=a.Ta;var y=a.policy.xg&&n>a.policy.xg;var z=a.policy.Vk&&Math.abs(m)>a.policy.Vk;if(1E-4y&&p>a.Xa)&&D&&(p=Math.max(.95,Math.min(1.05,(e-(z-n))/e)),uwa(GD(c),p),p=ID(c,a.policy.bb),B=e-p,e=p));a.Ia=n+B;a.policy.ea&&(m||B)&&(n=null==(l=a.D)?void 0:uC(l),a.Ka.va("discontinuityRewrite",{adCpn:(null==n?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Na,originalStartTime:d,rewrittenStartTime:f,startTimeAdjustment:f-d,segDrift:(1E3*m).toFixed(),originalDuration:e+B,rewrittenDuration:e, durationAdjustment:B}))}}else f=isNaN(a.B)?c.info.startTime:a.B;rxa(c,f)?(isNaN(a.Aa)&&(a.Aa=f),a.Z+=e,a.B=f+e):(l=nD(c.info),l.smst="1",a.Ka.handleError("fmt.unparseable",l||{},1))}}a.Ba=c.info;a.Ta=txa(c);0<=c.C&&(a.bb=c.C);if(h&&a.D){h=LMa(a,!0);pD(c.info,h);a.j&&pD(a.j.info,h);b=g.t(b.info.j);for(l=b.next();!l.done;l=b.next())pD(l.value,h);(c.info.Ge||a.j&&a.j.info.Ge)&&6!==c.info.type||(a.ea=h,b=a.Ka,b.j.isManifestless&&MMa(b,h,null,!!a.I.info.video),a.policy.Ce||NMa(a))}}IMa(a,c);a.timestampOffset&& sxa(c,a.timestampOffset)}; sU=function(a,b){if(b.info.Ge){a.jb=b.info;if(a.D){var c=a.D,d=LMa(a,!1),e=null;if(a.D.mz()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=uC(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.t(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=g.t(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n= m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.t(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new xMa(e,f,h,l,g.qwa(c),g.rwa(c))}a.Ka.GJ(a.I,d,e);a.ea||a.policy.Ce||NMa(a);a.ea=null}qU(a)}a.J&&tMa(a.J,b);if(c=oU(a))if(c=pxa(c,b,a.policy.Ok)){a.u.pop();a.u.push(c);return}a.u.push(b)}; qU=function(a){a.j=null;a.oa=-1;a.S=0;a.D=null;a.Aa=NaN;a.Z=0;a.ea=null}; pU=function(a,b){b={rst4disc:b,cd:a.Ia.toFixed(3),sq:a.Ba?a.Ba.Na:-1};a.B=NaN;a.Ia=0;a.Xa=-1;a.Ba=null;a.bb=NaN;a.Ta=NaN;a.Qa=null;a.Ka.va("mdstm",b)}; IMa=function(a,b){if(a.I.info.wd){if(b.info.j.info.cf()){var c=new GC(GD(b));if(IC(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=LC(c,!0);c=16!==d?null:QC(c,d)}else c=null;d="webm"}else b.info.J=vMa(GD(b)),c=wMa(b.info.J),d="cenc";c&&c.length&&(c=new gU(c,d),c.cf=b.info.j.info.cf(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),b.u&&b.u.B&&(c.j=b.u.B),a.Ka.zw(c))}}; NMa=function(a){var b=a.D,c=owa(b);c&&(c.startSecs+=a.Aa,a.Ka.FJ(a.I,c,b.j,b.mz()))}; LMa=function(a,b){var c,d=a.D;if(c=owa(d))c.startSecs+=a.Aa;return new SB(d.j,a.Aa,b?d.Fk:a.Z,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)}; KMa=function(a){return a.info.j.Xm()&&a.info.Na===a.info.j.index.getLastSegmentNumber()}; vU=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.I.C&&b&&(b+=a.I.C.j);return b+a.getDuration()}; OMa=function(a,b){0>b||(a.u.forEach(function(c){sxa(c,b)}),a.timestampOffset=b)}; wU=function(a,b){this.info=a;this.callback=b;this.state=1;this.PC=!1;this.Oo=0;this.vt=!1;this.Le=this.lastError=null}; PMa=function(a){return g.Wd(a.info.j,function(b){return 3===b.type})}; xU=function(a,b,c){this.policy=a;this.j=b;this.u=0;this.C=null;this.xf=[];this.D=null;(this.length=c?c:0)?1!==this.j.length||this.j[0].u||(this.j[0].u=this.length):1===this.j.length||g.Wd(this.j,function(d){return!!d.range})}; yU=function(a,b,c){a.policy.Vu&&a.length&&!c&&!a.B&&(a.B=new Uint8Array(a.length));if(a.B&&a.B.byteLength>=b.totalLength){var d=b,e=a.B;if(!(e.byteLength=b&&(e.u.pop(),e.B-=ID(l,e.policy.bb),f=l.info)}f&&(e.C=0c?LT(a,d):a.u=a.j.jp(b-1,!1).j[0]}; LU=function(a,b){var c;for(c=0;c=a.Z:c}; YMa=function(a){var b;return GU(a)||!(null==(b=oU(a.C))||!fD(b.info))}; FU=function(a){var b=[],c=CU(a);c&&b.push(c);b=g.bc(b,tU(a.C));c=g.t(a.B);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e={},f=g.t(d.info.j),h=f.next();!h.done;e={ou:e.ou},h=f.next())e.ou=h.value,d.PC&&(b=g.wm(b,function(l){return function(m){return!Wwa(m,l.ou)}}(e))),(hD(e.ou)||4===e.ou.type)&&b.push(e.ou)}a.u&&!Rwa(a.u,g.Ob(b),a.u.j.Xm())&&b.push(a.u); return b}; VMa=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return 0>b?NaN:VMa(a,c?b:0)?a[b].startTime:NaN}; MU=function(a){return!(!a.u||a.u.j===a.j)}; ZMa=function(a){return MU(a)&&a.j.Xf()&&a.u.j.info.Rbb&&a.Bb)return!0;var c=a.getLastSegmentNumber();return bb)return 1;c=a.getLastSegmentNumber();return be?(a.B+=d,.2d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=SU(a)?d+b:d+Math.max(b,c);a.Z=d}; UU=function(a,b){for(var c="";4095>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))}; XU=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.Z=d;this.status=0;this.response=void 0;this.S=this.u=0;this.I=this.J=!1;this.errorMessage="";this.oa=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.un=f.body.getReader(),e.isDisposed()?e.un.cancel().catch(function(){}):(e.D=f.headers,e.callbacks.Cw(),WU(e)); else e.onDone()}; this.ea=function(f){var h=(0,g.T)();e.isDisposed()||(e.C&&(e.j.append(e.C),e.C=void 0),f.done?(e.un=void 0,e.onDone()):(f=f.value,e.u+=f.length,e.C=f,e.policy.j&&WU(e),f=(0,g.T)(),10c?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)a=$B(a,b++);else if(2===c)c=$B(a,b++),a=$B(a,b++),a=(c&63)+64*a;else if(3===c){c=$B(a,b++);var d=$B(a,b++);a=$B(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=$B(a,b++);d=$B(a,b++);var e=$B(a,b++);a=$B(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),YB(a,c,4)?a=hwa(a).getUint32(c-a.B,!0):(d=$B(a,c+2)+256*$B(a,c+3),a=$B(a,c)+256*($B(a,c+1)+ 256*d)),b+=5;return[a,b]}; YU=function(a){this.callbacks=a;this.j=new UB}; ZU=function(a,b,c){var d=this;c=void 0===c?{}:c;this.callbacks=b;this.u=this.status=0;this.isDisposed=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.t(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.Aw(f)}; a=gu(function(f){d.onDone(f)}); this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);c.body?this.xhr.send(c.body):this.xhr.send();this.xhr.addEventListener("progress",gu(function(f){d.Wd(f)}),!1)}; tNa=function(a,b){fH(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(eH(a,112),eH(a,c<<1^c>>31));fH(a,16,b.y_);fH(a,18,b.qY);fH(a,19,b.pY);fH(a,21,b.s5);fH(a,23,b.XX);fH(a,34,b.visibility);jH(a,38,b.mediaCapabilities,sNa,3);fH(a,39,b.R5);fH(a,40,b.JO);gH(a,46,b.LY)}; uNa=function(a){for(var b=[];ZG(a,2);)b.push(YG(a));return{GG:b.length?b:void 0,videoId:bH(a,3),FL:$G(a,4)}}; sNa=function(a,b){var c;if(b.EL)for(c=0;ca.policy.Tl||a.vt&&!a.policy.Yq?0:rB())?sB()?new NU(c,a.policy.D,a.timing,b):new XU(c,a.policy.D,a.timing,b):new ZU(c,a.timing,b)}; eV=function(a,b,c,d,e,f,h,l,m,n,p,q){g.K.call(this);this.Ka=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.Qm=e;this.B=f;this.timing=h;this.I=l;this.schedule=m;this.j=n;this.D=p;this.oa=q;this.ya=!1;this.kA="";this.C=this.sj=null;this.S="";this.Z=0;this.Tf=NaN;this.Aa=!1;this.u=null;this.ea=NaN;this.J=0;this.logger=new g.kT("dash");0f&&(c=d.j.Du(d,e-h.u)))),d=c):(0>d.Na&&(c=nD(d),c.pr=""+b.B.length,a.Ka.Eg()&&(c.sk="1"),c.snss=d.D,a.Ka.va("nosq",c)),d=h.Ox(d));if(a.policy.S)for(c=g.t(d.j),e=c.next();!e.done;e=c.next())e.value.type=6}else d.j.Xm()?(c=FT(a.I,b.j.info.Rb,c.j.info.Rb,0),d=d.j.Du(d,c)):d=d.j.Ox(d);if(a.u)if(e=d.j[0].j.info.id, c=a.B,h=d.j[0].Na,c=0>h&&!isNaN(c.B)?c.B:h,h=$La(a.B,d.j[0].C,c),f=b===a.audioTrack?1:2,l=d.j[0].j.info.itag,a.policy.Qa)e=a.u.Es(h,c,e,f),0>c&&2===f&&PT(a.B,0,0,!0),e&&(a.Ka.va("sdai",{ssdaiinfo:"1",length:e.length,itag:l,sg:c,st:h.toFixed(3)}),d.S=e);else if(e=a.u.Cm(h,c,e,f),0>c&&2===f&&PT(a.B,0,0,!0),e){h={decurl_itag:l,sg:c,st:h.toFixed(3)};if(a.policy.Xt&&b.isRequestPending(c-1)){a.Ka.va("sdai",{wt_daistate_on_sg:c-1});return}a.Ka.va("sdai",h);e&&(d.B=new g.MB(e))}a.policy.Qk&&-1!==d.j[0].Na&& d.j[0].Na=a.policy.Rl)return jV(a,"toomany"),!1;if(!a.policy.fm&&0=a.policy.Ul)return jV(a,"maxpending"),!1;d=b.u;if(!d)return!0;4===d.type&&d.j.Xf()&&(b.u=g.Ob(d.j.Ow(d)),d=b.u);if(!fD(d)&&!d.j.ip(d))return jV(a,"notready"),!1;var e=a.j.bf||a.j.C;if(a.j.isManifestless&&e){e=b.j.index.getLastSegmentNumber();var f=c.j.index.getLastSegmentNumber(); e=Math.min(e,f);if(0=e)return b.Z=e,c.Z=e,jV(a,"postlive"),!1}if(d.j.info.audio&&4===d.type)return jV(a,"toomanyaudio"),!1;if(ZMa(b)&&!a.policy.Lb)return jV(a,""),!0;if(fD(d))return jV(a,"eos"),!1;if(HU(b)&&HU(b)+HU(c)>a.policy.Hc)return jV(a,"maxheap"),!1;e=!b.D&&!c.D;f=d.B;f=!!(c.u&&!fD(c.u)&&c.u.BLNa(a,b))return jV(a,"maxtime;"+d.B.toFixed(3)+";"+LNa(a,b)),!1;if((b=b.uc)&&b.isLocked())return jV(a,"locked"),!1;jV(a,"");return!0}; jV=function(a,b){a.policy.wg&&a.u&&(a.S=b)}; LNa=function(a,b){var c=a.B;c=c.j?c.j.qf:null;if(a.policy.S&&c)return c.startSecs+c.durationSecs+15;b=gV(a.Ka,b,!0);!XT(a.Ka.Yd)&&0a.Ka.getCurrentTime())return c.start/1E3;return Infinity}; kV=function(a,b,c){a:if(b=b.info,b.B)c=null;else{var d=b.j[0];if(b.range)var e=dD(b.range.start,Math.min(4096,b.D));else{if(b.C&&0<=b.C.indexOf("/range/")||"1"===b.u.C.get("defrag")||"1"===b.u.C.get("otf")){c=null;break a}e=dD(0,4096)}e=new qD([new eD(5,d.j,e,"createProbeRequestInfo"+d.D,d.Na)],b.C);e.J=c;e.B=b.B;c=e}c&&iV(a,c)}; iV=function(a,b){NNa(a.Ka,b);var c=Ywa(b);c={Ci:a.schedule,bl:c,MD:OLa(a.I,c),Qn:gD(b.j[0]),xo:PB(b.u.j),rH:a.policy.ea};a.sj&&(c.Na=b.j[0].Na,c.Tf=b.Tf,c.sj=a.sj);var d={Mr:Zwa(b,a.Ka.getCurrentTime()),dA:a.policy.Td&&sD(b)&&b.j[0].j.info.video?pMa(a.D):void 0,GA:a.policy.S,poToken:a.Ka.YH(),kt:a.Ka.IC(),kA:a.kA};return new cV(a.policy,b,c,a.Qm,function(e,f){try{a:{a.policy.wg&&a.u&&(a.C=e);var h=e.info.j[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.Oo||!(!a.Ka.mediaSource|| a.Ka.isSuspended||3=n)kV(a,e,!1),a.Aa=!0;else{var p=a.policy.Zm;if(p&&!(mf){if(a.policy.Rc){var y=Object.assign(PU(e.timing),{rst:""+e.state,strm:""+e.xhr.bx(),d:pNa(e.timing)});a.Ka.va("rqs",y)}e.wS&&a.Ka.va("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var z= a.timing,B=e.info.j[0].j,D=!z.D&&B.info.video,G=!z.u&&B.info.audio;3===e.state?D?z.tick("vrr"):G&&z.tick("arr"):4===e.state?D?(z.D=e.ue(),g.Dv(),Fv(4)):G&&(z.u=e.ue()):e.Ms()&&D&&(g.Dv(),Fv(4));if(3===e.state){LU(l,e);sD(e.info)&&lV(a,l,h,!0);if(a.u){var H=e.info.Cm();H&&a.u.hk(e.info.j[0].Na,h.info.id,H)}a.Ka.Uj()}else if(e.isComplete()&&5===e.info.j[0].type){if(4===e.state){var L=(e.info.j[0].j.info.video?a.videoTrack:a.audioTrack).B[0]||null;L&&L instanceof cV&&L.Oo&&JNa(L,!0)}e.dispose()}else{if(!e.isFailed()&& e.vt&&2<=e.state&&3!==e.state){var M=e.xhr.getResponseHeader("X-Response-Itag");if(M){var J=oMa(a.D,M),Q=e.info.D;if(Q){var P=Q-J.SH();J.D=!0;e.info.j[0].j.D=!1;var X=J.Rp(P);e.info=X;if(e.Le){var R=e.Le,oa=X.j;R.j=oa;var sa=oa[0].range,Ba=new UB;for(f=0;fqa.B&&(qa.B=NaN,qa.D=NaN),qa.j&&qa.j.Na===gb.j[0].Na){var Ta=qa.j,eb=Ta.qf;Lb.zq(eb)&&"predictStart"!==eb.event?Ta.mz?OT(qa,4,"cue"):(qa.B=gb.j[0].Na,qa.D=gb.j[0].C,qa.va("sdai",{joinad:qa.u,sg:qa.B,st:qa.D.toFixed(3)}),qa.ea=Date.now(),OT(qa,2,"join"),Lb.eI(Ta.qf)):OT(qa,5,"nogab")}else 1=== qa.u&&OT(qa,5,"noad")}}else if(a.policy.Ba&&e.Hw()&&!e.isComplete()&&!mV(a,e)&&!e.isFailed())break a;e.isFailed()&&a.Wv(e);a.Ka.Uj();if(a.policy.Gd&&e.isComplete()&&e.canRetry()&&ZC(e.info.u,a.policy,a.Qm)){var Yb=a.Qm;var Ua=OB(e.info.u.j);var $a=XC(Yb,Ua);$a.B+a.policy.Gd*Lwa($a,a.policy,!0)>(0,g.T)()||kV(a,e,!1)}}}}}}catch(sb){J=a.ya?1:0,a.ya=!0,e=zG(J),J=AG(sb,J),a.Ka.handleError(J.errorCode,J.details,J.severity),e||a.Ka.jj()}},d)}; mV=function(a,b){try{var c=b.info.j[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.j.isManifestless&&d){a.J=0;d.J&&(b.isDisposed(),b.isComplete()||b.Hw(),d.J=!1);b.MH()&&a.Ka.VB.ph(1,b.MH());var e=b.AC(),f=b.eP(),h=a.j,l;for(l in h.j){var m=h.j[l].index;m.pm&&(e&&(m.Pm=Math.max(m.Pm,e)),f&&(m.qo=Math.max(m.qo||0,f)))}}if(b.info.Qn()&&!rD(b.info))for(var n=g.t(b.Yw()),p=n.next();!p.done;p=n.next()){var q=p.value;if(1===q.info.type)if(c.info.video){var r=a.timing;r.Aa||(r.Aa=(0,g.T)(),UN("vis_r", r.Aa,r.j))}else{var w=a.timing;w.J||(w.J=(0,g.T)(),UN("ais_r",w.J,w.j))}rU(d.C,q)}EU(d,a.Ka.getCurrentTime());var y=!!d.Ig();if(y&&b instanceof IT)if(c.info.Vm()){var z=a.timing;z.ea||(z.ea=(0,g.T)(),UN("oafs_rp",z.ea,z.j))}else{var B=a.timing;B.oa||(B.oa=(0,g.T)(),UN("ovfs_rp",B.oa,B.j))}return y}catch(D){return b=b.Lv(),b.origin="hrhs",ONa(a.Ka,D,b),!1}}; PNa=function(a){var b=a.videoTrack.j.index;a.sj=new dNa({Tn:a.policy.Tn,aj:a.policy.D.aj,ri:b.ri,getLastSegmentNumber:function(){return b.getLastSegmentNumber()}, xs:function(){return b.xs()}})}; lV=function(a,b,c,d){if(!(c.Xf()||c.nw()||c.D)&&Owa(c.u,a.policy)&&"f"!==c.info.j){if(d){d=a.I;var e=c.info;d=PLa(d,e.video?d.policy.rr:d.policy.Nk,e.Rb)}else d=0;d=c.Rp(d);a=iV(a,d);rD(d)&&DU(b,a);c.D=!0}}; QNa=function(a,b,c,d,e){this.Ka=a;this.policy=b;this.schedule=c;this.xv=d;this.Z=e;this.ea=NaN;this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1;this.S=NaN}; RNa=function(a,b,c,d,e){return b.zc&&b.Ia&&3===Yva(b)?new QNa(a,b,c,d,e):null}; SNa=function(a,b){if(a.policy.Zq){var c=b.info.Rb,d=CF(a.schedule);b=b.index.ri;c=Math.max(1,d/c);a.S=Math.round(1E3*Math.max(((c-1)*b+a.policy.Aa)/c,b-a.policy.Be))}}; VNa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.I,f=e>=a.policy.Wi,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e=a.policy.Be&&!a.B;if(!f&&!c&&TNa(a,b))return NaN;c&&(a.B=!0);a:{d=h;c=Date.now()/1E3-(a.xv.Rh()||0)-a.J.u-a.policy.Aa;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){nV(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.me;d1E3*a.policy.Su){a.va("ombttl",{});return}if(a.j.df&&a.j.C||!a.policy.Zv&&a.j.isPremiere)return}e=a.Sf();if(a.Z&&zU(a.Z,aD(c,d,e,a.policy.xc))){d=aD(c,d,e,a.policy.xc);e=YNa(a.Z,d);var f;if(!a.j.uf||!a.policy.Hv){if(!c.indexRange||!c.initRange)return;var h=c.indexRange.length+c.initRange.length,l=ZNa(a.Z,d);if(!l){a.va("ombooo",{});return}h=l-h;if(0(0,g.T)()-d.Z;var e=d.nextVideo&&3*UT(d,d.nextVideo.info)=b&&IU(c,!0)>=b;else{var f=0;c=tU(c.C).concat(tU(d.C));c=g.t(c);for(d=c.next();!d.done;d=c.next())f+=d.value.u;f/=e;b=fe*(10-f)/GT(b)}}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0a.currentTime||360(e?e.Na:-1));if(f)return a.policy.Aj&&a.D.Eg()&&vV(a),!1;wV(a,b,c,d.info);if(a.j.u&&0===d.info.Jb){if(null==c.Np()){e=CU(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.J,f=d.info.J,e.length!==f.length)e=!1;else{for(var h=0;he)){e=a.policy.ya?(0,g.T)():0;f=d.D||d.B?d.info.j.j:null;h=d.j;d.B&&(h=new UB([]),VB(h,d.B),VB(h,d.j));var l=ZB(h);h=a.policy.ya?(0,g.T)():0;f=gOa(a,c,l,d.info, f);a.policy.ya&&(!d.info.Jb||d.info.Ge||10>d.info.C)&&a.va("sba",c.Qb({as:oD(d.info),pdur:Math.round(h-e),adur:Math.round((0,g.T)()-h)}));"s"===f?(a.Ba=0,a=!0):("i"===f||"x"===f?hOa(a,"checked",f,d.info):("q"===f&&(d.info.isVideo()?(c=a.policy,c.J=Math.floor(.8*c.J),c.Xa=Math.floor(.8*c.Xa),c.I=Math.floor(.8*c.I)):(c=a.policy,c.oa=Math.floor(.8*c.oa),c.Lc=Math.floor(.8*c.Lc),c.I=Math.floor(.8*c.I)),VT(a.Yd,d.info.j)),uV(a.xa,{reattachOnAppend:f})),a=!1);e=!a}if(e)return!1;b.Yi(d);return!0}; hOa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",d.j.info.video&&!WT(a.Yd)&&VT(a.Yd,d.j)):"i"===c&&(15>a.Ba?(a.Ba++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=nD(d);var h;d.mrs=null==(h=a.mediaSource)?void 0:rE(h);d.origin=b;d.reason=c;a.handleError(e,d,f)}; MMa=function(a,b,c,d,e){var f=a.j,h=!1,l=-1;for(p in f.j){var m=VD(f.j[p].info.mimeType)||f.j[p].info.isVideo();if(d===m)if(h=f.j[p].index,AD(h,b.Na)){m=b;var n=h.Bm(m.Na);n&&n.startTime!==m.startTime?(h.segments=[],h.KF(m),h=!0):h=!1;h&&(l=b.Na)}else h.KF(b),h=!0}if(0<=l){var p={};f.ma("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}WLa(a.D,b,d,h);a.u.GJ(b,c,d,e)}; wV=function(a,b,c,d){b=CU(b);!b||b.Ge||iD(b,d)||c.abort();!c.Sy()||nE()?c.AL(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.Sy()&&a.va("ctu",{ct:nE(),prev_c:c.Sy(),curr_c:d.j.info.containerType});b=d.j.C;a.policy.Mj&&b&&(d=0+b.duration,b=-b.j,0===c.wC()&&d===c.JH()||c.GK(0,d),b!==c.Ad()&&(c.xE(b),uU&&OMa(a.audioTrack.C,c.ZH())))}; xV=function(a,b,c){c.info.j.Xf();var d=c.info.j.j;if(!d||!b.QB()||b.Np()===d)return!1;var e=d,f=b.BC();if(a.policy.Oi&&f&&b.isView()&&g.HD(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=Awa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.va("fenc",{})}f=null;(h=c.info.j.Rp(0))&&(f=h.j[0]);a.policy.ya&&a.va("sbi",b.Qb({as:oD(c.info)}));a.policy.Hk&&b.abort();d=gOa(a,b,e,f,d);if("s"!==d)return hOa(a,"sepInit",d,c.info),!0;c.info.isVideo()?(a=a.timing,a.ya||(a.ya= (0,g.T)(),UN("vis_a",a.ya,a.j))):(a=a.timing,a.I||(a.I=(0,g.T)(),UN("ais_a",a.I,a.j)));return b.Uh()}; gOa=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(f instanceof DOMException){if(11===f.code)return"i";if(12===f.code)return"x";if(22===f.code||0===f.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:fE(b.Ag()).replace(/,/g,"_"),message:g.Ac(f.message),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},WNa()),a.handleError("player.exception",b),"q";g.qz(f)}return"u"}return a.mediaSource.Wf()?"m":"s"}; lU=function(a,b){a.xa.ED(b)}; gV=function(a,b,c){if(a.isSuspended)return 1;var d=b.j.info.audio?a.policy.oa:a.policy.J;!a.policy.Lb&&XT(a.Yd)&&(d=Math.max(d,b.j.info.audio?a.policy.Lc:a.policy.Xa));c&&(d+=a.policy.Hc);c=XT(a.Yd)?b.u?b.u.j.info.Rb:b.j.info.Rb:b.Rb*a.policy.Pk;d/=c;0=b&&XNa(a,d.startTime,!1)}); return c&&c.startTimed;d++)c[2*d]=''.charCodeAt(d);a=a.B.createSession("video/mp4",b,c);return new HV(null,null,null,null,a)}; JV=function(a,b){var c=a.I[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c}; NOa=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e=a&&(c=.75*a),b=.5*(a-c),c=new BV(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new LV(a.ib("disable_license_delay"),!a.ib("h5_widevine_keyrotationagent_optimization_killswitch"), b,this);break a;default:c=null}if(this.D=c)g.N(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.PN,this),this.D.subscribe("log_qoe",this.Ai,this);TE(this.Y.experiments);this.Ai({cks:this.j.Bg()});c=this.j;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.B&&(this.Qa=new KV(this.videoData.Ia,this.Y.experiments),g.N(this,this.Qa))}; SOa=function(a){var b=a.C.attach();b?b.then(gu(function(){TOa(a)}),gu(function(c){if(!a.isDisposed()){g.fu(c); var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ma("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.Ai({mdkrdy:1}),a.Z=!0); a.ea&&(b=a.ea.attach())}; VOa=function(a,b,c){a.La=!0;c=new gU(b,c);a.Y.K("html5_eme_loader_sync")&&(a.I.get(b)||a.I.set(b,c));UOa(a,c)}; UOa=function(a,b){if(!a.isDisposed()){a.Ai({onInitData:1});if(a.Y.K("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.J.get(b.initData);b=a.I.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.I.remove(c);a.J.remove(c)}a.Ai({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.Aa&&!a.videoData.isLivePlayback)PV(a);else{if(!(a.Y.K("vp9_drm_live")&&a.videoData.isLivePlayback&&b.cf)){a.Aa=!0;c=b.cryptoPeriodIndex;var d=b.j;zMa(b);b.cf||(d&&b.j!==d?a.ma("ctmp","cpsmm", {emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.ma("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.ma("widevine_set_need_key_info",b)}}else a.PN(b)}}; TOa=function(a){if(!a.isDisposed())if(a.Y.K("html5_drm_set_server_cert")&&!g.bG(a.Y)){var b=a.C.setServerCertificate();b?b.then(gu(function(c){wG(a.Y)&&a.ma("ctmp","ssc",{success:c})}),gu(function(c){a.ma("ctmp","ssce",{n:c.name, m:c.message})})).then(gu(function(){QV(a)})):QV(a)}else QV(a)}; QV=function(a){a.isDisposed()||(a.Z=!0,a.Ai({onmdkrdy:1}),PV(a))}; WOa=function(a){return"widevine"===a.j.flavor&&a.videoData.K("html5_drm_cpi_license_key")}; PV=function(a){if(a.La&&a.Z&&!a.ya){for(;a.B.length;){var b=a.B[0],c=WOa(a)?AMa(b):g.yc(b.initData);if(a.u.get(c))if("fairplay"===a.j.flavor)a.u.delete(c);else{a.B.shift();continue}zMa(b);break}a.B.length&&a.createSession(a.B[0])}}; XOa=function(a){var b;if(b=g.Pu()){var c;b=!(null==(c=a.C.u)||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.hC(b),a.ma("ctmp","drm",{metrics:b}))}; SV=function(a){g.K.call(this);var b=this;this.xa=a;this.j=this.xa.V();this.videoData=this.xa.getVideoData();this.Bz=0;this.I=this.B=!1;this.D=0;this.C=g.SE(this.j.experiments,"html5_delayed_retry_count");this.u=new g.Yn(function(){RV(b.xa)},g.SE(this.j.experiments,"html5_delayed_retry_delay_ms")); g.N(this,this.u)}; UV=function(a,b,c){var d=a.videoData.B,e=a.videoData.I;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.xa.Zg.D&&d&&"22"===d.itag)return a.xa.Zg.D=!0,a.Cd("qoe.restart",{reason:"fmt.unplayable.22"}),TV(a.xa),!0;var f=!1,h=a.Bz+3E4<(0,g.T)()||a.u.isActive();if(a.j.K("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Cd("auth",c),!0;var l;if(l=!h)l=a.xa.Up(),l=!!(l.Cf()||l.isInline()||l.isBackground()|| l.jw()||l.ew());l&&(c.nonfg="paused",h=!0,a.xa.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:Pva(e)||Ova(e))&&(Jya(a.j.j,e.j),c.acfallexp=e.j,f=h=!0);!h&&0=a.j.rb)return!1;b.exiled=""+a.j.rb;a.Cd("qoe.start15s",b);a.xa.ma("playbackstalledatstart");return!0}; aPa=function(a){if("GAME_CONSOLE"!==a.j.deviceParams.cplatform)try{window.close()}catch(b){}}; ZOa=function(a){return a.B?!0:"yt"!==a.j.La?!1:a.videoData.bb?25>a.videoData.zc:!a.videoData.zc}; $Oa=function(a){if(!a.B){a.B=!0;var b=a.xa.getPlayerState();b=g.V(b,4)||b.isSuspended();a.xa.No();b&&!uI(a.videoData)||a.xa.ma("signatureexpired")}}; bPa=function(a,b){if((a=a.xa.Qd())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.eg();b.details.merr=c?c.toString():"0";b.details.msg=a.rf()}}; dPa=function(a,b){if("403"===b.details.rc){var c=b.errorCode;c="net.badstatus"===c||"manifest.net.retryexhausted"===c}else c=!1;if(!c&&!a.B)return!1;b.details.sts="19236";if(ZOa(a))return zG(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new yG("qoe.restart",b)),a.Cd(b.errorCode,b.details),$Oa(a),!0;6048E5<(0,g.T)()-a.j.Ce&&cPa(a,"signature");return!1}; cPa=function(a,b){try{window.location.reload();a.Cd("qoe.restart",{detail:"pr."+b});return}catch(c){}a.j.K("tvhtml5_retire_old_players")&&g.bG(a.j)&&aPa(a)}; ePa=function(a,b){var c=a.j.j;c.D=!1;c.j=!0;a.Cd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});RV(a.xa,!0)}; fPa=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d}; VV=function(a,b,c){this.Y=a;this.DA=b;this.xa=c;this.Z=this.I=this.J=this.u=this.j=this.C=this.S=this.B=0;this.playbackRate=1;this.D=!1}; WV=function(a,b,c){!a.Y.K("html5_tv_ignore_capable_constraint")&&g.bG(a.Y)&&(c=c.compose(gPa(a,b)));return c}; hPa=function(a,b){var c=!0,d=a.playbackRate;if(a.K("html5_cap_quality_for_tv_hfr")){var e;c=XV(a,null==(e=b.j)?void 0:e.videoInfos);d=a.xa.getPlaybackRate()}return 1(0,g.T)()-a.C?0:f||0h?a.u+1:0;if(45<(n-m)/l||!e||g.bG(a.Y))return!1;a.j=d>e?a.j+1:0;if(3!==a.j)return!1;kPa(a,b.videoData.B);a.xa.va("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},mPa()));return!0}; oPa=function(a,b){return 0>=g.SE(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32=e){d=e;break}return new uB(0,d,!1,"b")}; qPa=function(a){a=a.xa.Up();return a.isInline()?new uB(0,480,!1,"v"):a.isBackground()&&60e?(c&&(d=rPa(a,c,d)),new uB(0,d,!1,"e")):FH}; rPa=function(a,b,c){if(a.K("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;ba.B)){var b=g.yS(a.j),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.gK(a.playerState)&&!g.V(a.playerState,16)&&(a.rebufferTimeSecs+=c)}}; $V=function(a,b){b?vPa.test(a):(a=g.mu(a),Object.keys(a).includes("cpn"))}; aW=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(pu(a)&&qu()){if(h){var n;2!==(null==(n=wPa.uaChPolyfill)?void 0:n.state.type)?h=null:(h=wPa.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}(h=g.O("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]= d:g.O("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.O("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);e&&(m.Authorization="Bearer "+e);h||m["X-Goog-Visitor-Id"]||e||c?l.withCredentials=!0:b.K("html5_send_cpn_with_options")&&vPa.test(a)&&(l.withCredentials=!0)}0a.J.JQ+100&&a.J){var d=a.J,e=d.isAd;c=1E3*c-d.JQ;a.Ba=1E3*b-d.L4-c-d.t4;if(!a.j.videoData.K("web_player_dai_csi_killswitch")){c=(0,g.T)()-c;b=a.Ba;d=a.j.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};!d.K("web_player_csi_ctt_killswitch")&&d.J&&(h.cttAuthInfo={token:d.J,videoId:d.videoId});h.startTime=c-b;$A(f,h);ZA({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce}, f);YA("pbs",c,f)}else c=a.j.xa.Gi(),c.J!==d.clientPlaybackNonce?(c.I=d.clientPlaybackNonce,c.B=b):g.rz(new g.Qv("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}))}a.va("gllat",{l:a.Ba.toFixed(),prev_ad:+e});delete a.J}}; gW=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.yS(a.j);var c=a.j.xa.bz();if(!isNaN(a.oa)&&!isNaN(c.j)){var d=c.j-a.oa;0a.u)&&2=e&&(g.qz(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.Y.K("html5_validate_yt_now")),c=b(); a.j=function(){return Math.round(b()-c)/1E3}; a.xa.LJ()}return a.j}; yPa=function(a){if(navigator.connection&&navigator.connection.type)return UPa[navigator.connection.type]||UPa.other;if(g.bG(a.Y)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0}; lW=function(a){var b=new SPa;b.C=a.mj().cc||"-";b.playbackRate=a.xa.getPlaybackRate();var c=a.xa.getVisibilityState();0!==c&&(b.visibilityState=c);a.Y.jd&&(b.u=1);c=a.xa.getAudioTrack();c.Nc&&c.Nc.id&&"und"!==c.Nc.id&&(b.B=c.Nc.id);b.connectionType=yPa(a);b.volume=a.mj().volume;b.muted=a.mj().muted;b.clipId=a.mj().clipid||"-";b.j=a.videoData.OL||"-";return b}; g.BW=function(a){g.K.call(this);var b=this;this.u=a;this.qoe=this.j=null;this.qh=void 0;this.B=new Map;this.u.videoData.isValid()&&!this.u.videoData.Kj&&(this.j=new rW(this.u),g.N(this,this.j),this.qoe=new g.dW(this.u),g.N(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.qh=this.u.videoData.clientPlaybackNonce)&&this.B.set(this.qh,this.j));this.C=new YV(this.u,function(c){b.va("h5h",c)}); g.N(this,this.C)}; VPa=function(a){if(a.u.videoData.enableServerStitchedDai&&a.qh){var b;null!=(b=a.B.get(a.qh))&&mW(b.u)}else a.j&&mW(a.j.u)}; WPa=function(a){a.C.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.Bd&&(b.Bd="N");var c=g.yS(b.j);g.cW(b,c,"vps",[b.Bd]);b.I||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.I=!0);wG(b.j.Y)&&b.va("finalized",{});b.Aa=!0;b.reportStats(c)}}if(a.u.videoData.enableServerStitchedDai)for(b=g.t(a.B.values()),c=b.next();!c.done;c=b.next())zW(c.value);else a.j&&zW(a.j);a.dispose()}; XPa=function(a,b){a.j&&RPa(a.j,b)}; YPa=function(a){if(!a.j)return null;var b=sW(a.j,"atr");return function(c){a.j&&RPa(a.j,c,b)}}; ZPa=function(a,b,c,d){c.adFormat=c.jd;var e=b.xa;b=new rW(new AW(c,b.Y,{getDuration:function(){return c.lengthSeconds}, getCurrentTime:function(){return e.getCurrentTime()}, lj:function(){return e.lj()}, bz:function(){return e.bz()}, getPlayerSize:function(){return e.getPlayerSize()}, getAudioTrack:function(){return c.getAudioTrack()}, getPlaybackRate:function(){return e.getPlaybackRate()}, ez:function(){return e.ez()}, getVisibilityState:function(){return e.getVisibilityState()}, Gi:function(){return e.Gi()}, LJ:function(){e.LJ()}, Uz:function(){e.Uz()}},b.mj)); b.C=d;g.N(a,b);return b}; $Pa=function(){this.Mr=0;this.D=this.C=this.j=this.B=NaN;this.u={};this.bandwidthEstimate=NaN}; aQa=function(){this.j=g.tA;this.array=[]}; cQa=function(a,b,c){var d=[];for(b=bQa(a,b);bc)break}return d}; dQa=function(a,b){var c=[];a=g.t(a.array);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c}; eQa=function(a){return a.array.slice(bQa(a,0x7ffffffffffff),a.array.length)}; bQa=function(a,b){a=lc(a.array,function(c){return b-c.start||1}); return 0>a?-(a+1):a}; fQa=function(a,b){var c=NaN;a=g.t(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.endb&&(isNaN(c)||d.starta.mediaTime+a.C&&b(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1}; jQa=function(a,b){this.videoData=a;this.j=b}; kQa=function(a,b,c){return IBa(b,c).then(function(){return Hu(new jQa(b,b.C))},function(d){d instanceof Error&&hu(d); var e=$D('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=bE('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.ZE(a.j,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:!!b.adaptiveFormats,d:!!b.zb,drm:VH(b),f18:0<=b.Lj.indexOf("itag=18"),c18:e};b.j&&(VH(b)?(e.f142=!!b.j.j["142"],e.f149=!!b.j.j["149"],e.f279=!!b.j.j["279"]):(e.f133=!!b.j.j["133"],e.f140=!!b.j.j["140"],e.f242=!!b.j.j["242"]),e.cAAC=f,e.cAVC=bE('video/mp4; codecs="avc1.42001E"'), e.cVP9=bE('video/webm; codecs="vp9"'));b.Z&&(e.drmsys=b.Z.keySystem,f=0,b.Z.j&&(f=Object.keys(b.Z.j).length),e.drmst=f);return new yG(d,e,h)})}; lQa=function(a){this.D=a;this.B=this.u=0;this.C=new nT(50)}; GW=function(a,b,c){g.cz.call(this);this.videoData=a;this.experiments=b;this.S=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.I=0;c=new mQa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.Ub?c.u=3:g.hI(a)&&(c.u=2);b.ib("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.S=!0);var d=ABa(a);c.D=2===d||-1===d;c.D&&(c.oa++,21530001===aI(a)&&(c.I=g.SE(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Nu("trident/")||Nu("edge/"))c.B=Math.max(c.B,g.SE(b,"html5_platform_minimum_readahead_seconds")|| 3);g.SE(b,"html5_minimum_readahead_seconds")&&(c.B=g.SE(b,"html5_minimum_readahead_seconds"));g.SE(b,"html5_maximum_readahead_seconds")&&(c.Z=g.SE(b,"html5_maximum_readahead_seconds"));b.ib("html5_force_adaptive_readahead")&&(c.C=!0);g.SE(b,"html5_allowable_liveness_drift_chunks")&&(c.j=g.SE(b,"html5_allowable_liveness_drift_chunks"));g.SE(b,"html5_readahead_ratelimit")&&(c.ea=g.SE(b,"html5_readahead_ratelimit"));switch(aI(a)){case 21530001:c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2),c.J=b.ib("html5_live_smoothly_extend_max_seekable_time")}this.policy= c;this.J=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Ub&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(aI(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.j=FW(this,b)}; nQa=function(a,b){var c=a.j;(void 0===b?0:b)&&a.policy.J&&3===ABa(a.videoData)&&--c;return HW(a)*c}; IW=function(a,b){var c=a.il(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*HW(a);return b>=c-a}; oQa=function(a,b,c){b=IW(a,b);c||b?b&&(a.B=!0):a.B=!1;a.J=2===a.policy.u||3===a.policy.u&&a.B}; pQa=function(a,b){b=IW(a,b);a.D!==b&&a.ma("livestatusshift",b);a.D=b}; HW=function(a){return a.videoData.j?CE(a.videoData.j)||5:5}; FW=function(a,b){b=Math.max(Math.max(a.policy.oa,Math.ceil(a.policy.B/HW(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.Z/HW(a))),b)}; mQa=function(){this.oa=1;this.B=0;this.Z=Infinity;this.ea=0;this.C=!0;this.j=2;this.u=1;this.D=!1;this.I=NaN;this.J=this.S=!1}; LW=function(a){g.K.call(this);this.xa=a;this.Y=this.xa.V();this.C=this.j=0;this.B=new g.Yn(this.D,1E3,this);this.Ba=new JW({delayMs:g.SE(this.Y.experiments,"html5_seek_timeout_delay_ms")});this.Z=new JW({delayMs:g.SE(this.Y.experiments,"html5_long_rebuffer_threshold_ms")});this.Ia=KW(this,"html5_seek_set_cmt");this.oa=KW(this,"html5_seek_jiggle_cmt");this.ya=KW(this,"html5_seek_new_elem");this.Xa=KW(this,"html5_unreported_seek_reseek");this.J=KW(this,"html5_long_rebuffer_jiggle_cmt");this.S=new JW({delayMs:2E4}); this.I=KW(this,"html5_ads_preroll_lock_timeout");this.La=new JW({delayMs:g.SE(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Bv:!this.Y.K("html5_report_slow_ads_as_error")});this.Qa=new JW({delayMs:g.SE(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Bv:!this.Y.K("html5_skip_slow_buffering_ad")});this.Aa=KW(this,"html5_seek_over_discontinuities");this.Ta=new JW({delayMs:g.SE(this.Y.experiments,"html5_slow_start_timeout_delay_ms")});this.ea=KW(this,"html5_slow_start_no_media_source"); this.u={};g.N(this,this.B)}; KW=function(a,b){var c=g.SE(a.Y.experiments,b+"_delay_ms");a=a.Y.K(b+"_cfl");return new JW({delayMs:c,Bv:a})}; qQa=function(a,b,c,d,e,f,h){var l=gE(c,Math.max(d-3.5,0)),m=0<=l&&d>c.end(l)-1.1&&l+1c.start(l+1)-c.end(l);m=f&&h&&m;var n=l+1b.nE,c=b.j&&c-b.j>b.oK||f?b.B=!0:!1):c=!1,c&&(l=Object.assign({},a.Qb(b),l),l.wn=h,l.we=e,l.wsuc=d,a.xa.va("workaroundReport",l),d&&(b.reset(),a.u[e]=!1)))}; JW=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.oK?1E3:b.oK,d=void 0===b.nE?3E4:b.nE;b=void 0===b.Bv?!1:b.Bv;this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.oK=c;this.nE=d;this.Bv=b}; rQa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.T)();if(!a.startTimestamp)a.startTimestamp=b,a.u=0;else if(a.u>=a.C)return a.triggerTimestamp=b,!0;a.u+=1;return!1}; OW=function(a){g.K.call(this);var b=this;this.xa=a;this.Y=this.xa.V();this.videoData=this.xa.getVideoData();this.policy=new sQa(this.Y);this.ea=new LW(this.xa);this.playbackData=null;this.Qa=new g.YD;this.I=this.u=this.Ka=this.mediaElement=null;this.j=NaN;this.C=0;this.Aa=NaN;this.B=null;this.Ba=NaN;this.D=this.J=null;this.Z=this.S=!1;this.ya=new g.Yn(function(){tQa(b,!1)},2E3); this.bb=new g.Yn(function(){NW(b)}); this.La=new g.Yn(function(){b.S=!0;uQa(b)}); this.timestampOffset=0;this.Ta=!0;this.Ia=0;this.Xa=NaN;this.oa=new g.Yn(function(){var c=b.Y.Md;c.j+=1E4/36E5;c.j-c.B>1/6&&(iza(c),c.B=c.j);b.oa.start()},1E4); g.N(this,this.ea);g.N(this,this.Qa);g.N(this,this.ya);g.N(this,this.La);g.N(this,this.bb);g.N(this,this.oa)}; vQa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.I=new lQa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(NH(a.videoData)&&a.Ka){var c=a.Ka.VB.Rh()||0;break a}if(a.videoData.j){c=a.videoData.j.S;break a}}c=0}return c}),a.u=new GW(a.videoData,a.Y.experiments,function(){return a.zd(!0)})); PW(a)||(a.C=a.C||a.videoData.startSeconds||0)}; SW=function(a,b){(a.Ka=b)?QW(a,!0):RW(a)}; wQa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.I&&d){var e=a.I;if(e.j&&!(c>=e.u&&cd.C||g.Va()-d.I=a.zd()-.1)a.j=a.zd(),a.B.resolve(a.zd()),zS(a.xa);else try{var c=a.j-a.timestampOffset;a.mediaElement.seekTo(c); a.ea.j=c;a.Ba=c;a.C=a.j}catch(d){}}}; BQa=function(a){if(!a.mediaElement||0===a.mediaElement.ej()||0a.zd()||da;a++)cX[a]=255>=a?9:7;dX.length=32;dX.fill(5);eX.length=286;eX.fill(0);for(a=261;285>a;a++)eX[a]=Math.floor((a-261)/4);fX[257]=3;for(a=258;285>a;a++){var b=fX[a-1];b+=1<a;a++)gX[a]=3>=a?0:Math.floor((a-2)/2);for(a=hX[0]=1;30>a;a++)b=hX[a-1],b+=1<a.C.length&&(a.C=new Uint8Array(2*a.B),a.B=0,a.u=0,a.D=!1,a.j=0,a.register=0)}a.C.length!==a.B&&(a.C=a.C.subarray(0,a.B));return a.error?new Uint8Array(0):a.C}; OQa=function(a,b,c){b=jX(b);c=jX(c);for(var d=a.data,e=a.C,f=a.B,h=a.register,l=a.j,m=a.u;;){if(15>l){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<n)for(h>>=7;0>n;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=h,a.j=l,a.u=m,256a.j){var c=a.data,d=a.u;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<>4;for(kX(a,7);0>c;)c=b[iX(a,1)-c];return c>>4}; iX=function(a,b){for(;a.j=a.data.length)return a.error=!0,0;a.register|=a.data[a.u++]<>=b;a.j-=b;return c}; kX=function(a,b){a.j-=b;a.register>>=b}; jX=function(a){for(var b=[],c=g.t(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var h=1;h>m&1;l=f<<4|h;if(7>=h)for(m=1<<7-h;m--;)d[m<>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d}; RQa=function(a){var b,c,d,e,f,h,l;return g.A(function(m){switch(m.j){case 1:if(!("DecompressionStream"in window))return m.return(g.PQa(new g.LQa(a)));b=new DecompressionStream("gzip");c=b.writable.getWriter();c.write(a);c.close();d=b.readable.getReader();e=new UB([]);case 2:return g.x(m,d.read(),4);case 4:f=m.u;h=f.value;if(l=f.done){m.Ma(3);break}e.append(h);m.Ma(2);break;case 3:return m.return(ZB(e))}})}; TQa=function(a,b){var c=[];b=g.t(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=SQa[d]||0;a.j&&e>a.j||c.push(d)}return c}; WQa=function(a,b){var c=a[a.length-1];a.push.apply(a,g.u(UQa[c]||[]));b.K("html5_early_media_for_drm")&&a.push.apply(a,g.u(VQa[c]||[]))}; aRa=function(a,b){var c=WH(a),d=a.V().j;if(lX&&!d.j)return lX;for(var e=[],f=[],h={},l=g.t(XQa),m=l.next();!m.done;m=l.next()){var n=!1;m=g.t(m.value);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=YQa(p);!q||!q.video||TD(q)&&!c.Ba&&q.video.j>c.ea||(n?e.push(p):(q=EB(c,q,d),!0===q?(n=!0,e.push(p)):h[p]=q))}e&&WQa(e,a)}l=g.t(ZQa);for(n=l.next();!n.done;n=l.next()){n=g.t(n.value);for(p=n.next();!p.done;p=n.next())if(m=p.value,(p=$Qa(m))&&p.audio)if(p=EB(c,p,d),!0===p){f.push(m);break}else h[m]= p;f&&WQa(f,a)}c.B&&b("orfmts",h);lX={video:e,audio:f};d.j=!1;return lX}; YQa=function(a){var b=bRa[QD[a]],c=cRa[a];if(!c||!b)return null;var d=new ND(c.width,c.height,c.fps);b=Sxa(b,d);return new RD(a,b,{video:d,Rb:c.bitrate/8})}; $Qa=function(a){var b=bRa[QD[a]],c=dRa[a];return c&&b?new RD(a,b,{audio:new LD(c.audioSampleRate,c.numChannels)}):null}; eRa=function(a){this.Fd=a;this.logger=new g.kT("onesie");this.B={};this.j={};this.C=!0;this.u=null;this.queue=new $W(this)}; mX=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.u&&(b.j.length=0);b=g.t(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next())c=c.value,a.j[c].DP||KQa(a.queue,c)}; fRa=function(a,b){var c=b.totalLength,d=!1;switch(a.u){case 0:a.KJ(b,a.C).then(function(e){var f=a.Fd;f.Vc("oprr");f.playerResponse=e;f.ZI||(f.Nw=!1);nX(f)},function(e){a.Fd.fail(e)}); break;case 2:a.Vc("ormk");b=ZB(b);a.queue.decrypt(b);break;default:d=!0}a.Fd.pj&&a.Fd.va("ombup","id.11;pt."+a.u+";len."+c+(d?";ignored.1":""));a.u=null}; gRa=function(a,b,c){var d=$B(b,0);a.Fd.pj&&a.Fd.va("ombup","id."+(c?12:21)+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=b.split(1).Wo,d=a.B[d]||null)&&(a.kh(a.j[d].Vm?"oafs_r":"ovfs_r"),a.queue.enqueue(d,b,c))}; jRa=function(a,b,c,d){var e={},f=GE(0);f&&(e.y_=f,e.lastManualDirection=jya(),f=Fua()||0,0Math.random())try{g.rz(new g.Qv("b/152131571",btoa(d)))}catch(z){}return y.return(Promise.reject(new yG(r,{backend:"gvi"},w)))}})}; DRa=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,w,y,z;return g.A(function(B){if(1==B.j)return a.fetchType="gvi",c=a.V(),(f=xGa(a))?(d={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:f},e=ou(b,{action_display_post:1})):(d={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e=b),h={},c.sendVisitorIdHeader&&a.visitorData&&(h["X-Goog-Visitor-Id"]=a.visitorData),(l=g.KE(c.experiments,"debug_sherlog_username"))&&(h["X-Youtube-Sherlog-Username"]=l),0r.u&&3!==r.j.xa.getVisibilityState()&&ZV(r);q.qoe&&(q=q.qoe,q.La&&0>q.B&&q.j.Y.le&& kW(q));p.Ka&&rX(p);p.Y.Yl&&!p.videoData.backgroundable&&p.mediaElement&&!p.Dg()&&(p.isBackground()&&p.mediaElement.tB()?(p.va("bgmobile",{suspend:1}),p.No(!0)):p.isBackground()||sX(p)&&p.va("bgmobile",{resume:1}))}; this.Kh=new CW(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.uA("endcr")||g.V(p.playerState,32)||zS(p); e(q,r,p.playerType)}); g.N(this,this.Kh);g.N(this,this.pd);HRa(this,m);this.videoData.subscribe("dataupdated",this.I3,this);this.videoData.subscribe("dataloaded",this.QG,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.va,this);this.videoData.subscribe("ctmpstr",this.mK,this);IRa(this);RKa(this.Ef);this.visibility.subscribe("visibilitystatechange",this.Ef)}; HRa=function(a,b){if(2===a.playerType||a.Y.cm)b.xN=!0;var c=Tza(b.jd,b.Wu,a.Y.u,a.Y.C);c&&(b.adFormat=c);2===a.playerType&&(b.jn=!0);if(a.isFullscreen()||a.Y.u)c=g.Qz("yt-player-autonavstate"),b.autonavState=c||(a.Y.u?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&uX(a,b.endSeconds)}; KRa=function(a){if(a.videoData.Xa){var b=a.Qg.Jc();a.videoData.St=a.videoData.St||(null==b?void 0:b.NH());a.videoData.Tt=a.videoData.Tt||(null==b?void 0:b.OH())}(b=QBa(a.videoData))||(b=a.videoData,b=!(b.Nk?Pza(b.Nk):1));b&&(b=a.videoData.errorDetail,a.jg(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Zk||void 0));1===a.playerType&&vX.isActive()&&a.aE.start();a.videoData.Nh=a.getUserAudio51Preference();a.K("html5_generate_content_po_token")&&JRa(a)}; IRa=function(a){!a.pc||a.pc.isDisposed();a.pc=new g.BW(new AW(a.videoData,a.Y,a,function(){return a.Qg.mj()}))}; oJ=function(a){return a.mediaElement&&a.mediaElement.Cr()?a.mediaElement.yf():null}; wX=function(a){if(a.videoData.isValid())return!0;a.jg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.xS=function(a,b){b=void 0===b?!1:b;if(!b){var c=a.pc;ZV(c.C);c.qoe&&kW(c.qoe)}a.gq=b;!wX(a)||a.pn.started?g.bG(a.Y)&&a.videoData.isLivePlayback&&a.pn.started&&!a.pn.isFinished()&&!a.gq&&a.QG():(a.pn.start(),b=a.pc,g.yS(b.u),b.qoe&&APa(b.qoe),a.QG())}; LRa=function(a){var b=a.videoData;GRa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=AG(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.jg(c.errorCode,2,unescape(a.videoData.errorReason),xG(c.details),a.videoData.errorDetail,a.videoData.Zk||void 0):a.handleError(c))})}; WKa=function(a,b){a.qd=b;a.Ka&&jOa(a.Ka,new g.zV(b))}; MRa=function(a){if(!g.V(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.yk=g.cc(a.videoData.ya)),gI(a.videoData)){a.tb.tick("bpd_s");xX(a).then(function(){a.tb.tick("bpd_c");if(!a.isDisposed()){a.gq&&(a.Wb(aK(aK(a.playerState,512),1)),sX(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&uX(a,c.endSeconds);a.pn.finished=!0;yX(a,"dataloaded");a.Ko.started&&zX(a);tPa(a.Zg,a.Re)}}); a.K("html5_log_media_perf_info")&&a.va("loudness",{v:a.videoData.Ce.toFixed(3)},!0);var b=aCa(a.videoData);b&&a.va("playerResponseExperiment",{id:b},!0);a.CG()}else yX(a,"dataloaded")}; xX=function(a){AX(a);a.Re=null;var b=kQa(a.Y,a.videoData,a.Dg());a.cA=b;a.cA.then(function(c){NRa(a,c)},function(c){a.isDisposed()||(c=AG(c),a.visibility.isBackground()?(BX(a,"vp_none_avail"),a.cA=null,a.pn.reset()):(a.pn.finished=!0,a.jg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",xG(c.details))))}); return b}; TV=function(a){xX(a).then(function(){return sX(a)}); g.eK(a.playerState)&&a.playVideo()}; NRa=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.Re=b;vQa(a.pd,a.Re);if(a.videoData.isLivePlayback){var c=(a.K("html5_onesie_ads")?CLa(a.Qg.Ws,a.videoData.videoId):!!a.videoData.Tk)||a.Ka&&!isNaN(a.Ka.oa);c=a.K("html5_onesie_live")&&c;0FF(b.Y.Md,"sticky-lifetime")?"auto":yB[GE()]:d=yB[GE()],d=g.wB("auto",d,!1,"s");if(xB(d)){d=gPa(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.t(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if(null==(m=l.u)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;yma()&&!g.bG(b.Y)&&FB(c.j.videoInfos[0])&& (f=Math.min(f,g.vB.large));d=e.call(d,new uB(0,f,!1,"o"));e=d.compose;f=4320;!b.Y.isMobile||g.RF(b.Y)||Uu()||b.Y.K("hls_for_vod")||b.Y.K("mweb_remove_360p_cap")||(f=g.vB.medium);(h=g.SE(b.Y.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.Dh&&!c.videoData.wd&&(f=Math.min(f,h));h=g.SE(b.Y.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.SE(b.Y.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.t(l.videoInfos), m=l.next();!m.done;m=l.next())if(32h&&0!==h&&b.j===h)){f=!0;h=c.playbackRate;if(c.K("html5_cap_quality_for_tv_hfr")){var l;f=XV(c,null==(l=e.j)?void 0:l.videoInfos);h=c.xa.getPlaybackRate()}1b.j&&"b"===b.reason;c=a.Yd.jb&&!nE();d||e||b||c?uV(a.xa,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):vV(a)}}}; QRa=function(a){var b;return!!(a.K("html5_native_audio_track_switching")&&g.Yv&&(null==(b=a.videoData.B)?0:UD(b)))}; RRa=function(a){if(!QRa(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1n&&(n+=f.j);for(var p=0;pa.mediaSource.getDuration()&&a.mediaSource.Bj(c)):a.mediaSource.Bj(d);var e=a.Ka,f=a.mediaSource;e.policy.S&&(e.jj(),e.policy.S=!1);cOa(e);if(!f.j&&!f.u){var h=e.videoTrack.Ig(),l=h?h.info.j:e.videoTrack.j,m=e.audioTrack.Ig(),n=l.info.mimeType+e.policy.Nj,p=(m?m.info.j:e.audioTrack.j).info.mimeType,q,r= null==(q=f.mediaSource)?void 0:q.addSourceBuffer(p),w,y="fakesb"===n.split(";")[0]?void 0:null==(w=f.mediaSource)?void 0:w.addSourceBuffer(n);f.Mf&&(f.Mf.webkitSourceAddId("0",p),f.Mf.webkitSourceAddId("1",n));var z=new mE(r,f.Mf,"0",PD(p),!1),B=new mE(y,f.Mf,"1",PD(n),!0);f.j=z;f.u=B;g.N(f,z);g.N(f,B)}BU(e.videoTrack,f.u||null);BU(e.audioTrack,f.j||null);e.mediaSource=f;e.resume();g.dz(f.j,e.Aa,e);g.dz(f.u,e.Aa,e);try{e.Uj()}catch(D){g.qz(D)}a.ma("mediasourceattached")}}catch(D){g.rz(D),a.handleError(new yG("fmt.unplayable", {msi:"1",ename:D.name},1))}})}; WRa=function(a){a.Ka?a.Ka.seek(a.getCurrentTime()-a.Ad()).Zi(function(){}):CX(a)}; RV=function(a,b){b=void 0===b?!1:b;return g.A(function(c){if(1==c.j)return!a.K("html5_reset_daistate_on_newelement_killswitch")&&a.Ka&&a.Ka.Fs(),a.Ka&&a.Ka.isDisposed()&&AX(a),a.Wb(aK(a.playerState,2048)),a.ma("newelementrequired"),b?g.x(c,xX(a),2):c.Ma(2);g.V(a.playerState,8)&&a.playVideo();g.na(c)})}; OKa=function(a,b){a.va("newelem",{r:b});RV(a)}; LX=function(a){a.tb.D.sJ();g.V(a.playerState,32)||(a.Wb(aK(a.playerState,32)),g.V(a.playerState,8)&&a.pauseVideo(!0),a.ma("beginseeking",a));a.Zb()}; RS=function(a){g.V(a.playerState,32)?(a.Wb(cK(a.playerState,16,32)),a.ma("endseeking",a)):g.V(a.playerState,2)||a.Wb(aK(a.playerState,16));a.tb.D.xJ(a.videoData,g.V(a.playerState,4))}; yX=function(a,b){a.ma("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)}; XRa=function(a){for(var b=g.t("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=b.next();!c.done;c=b.next())a.qx.T(a.mediaElement,c.value,a.QJ,a);a.Y.Kj&&a.mediaElement.Cr()&&(a.qx.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.M0,a),a.qx.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.N0,a))}; YRa=function(a){window.clearInterval(a.SD);MX(a)||(a.SD=g.xu(function(){return MX(a)},100))}; MX=function(a){var b=a.mediaElement;b&&a.zD&&!a.videoData.bb&&!mB("vfp",a.tb.timerName)&&2<=b.ej()&&!b.Wg()&&0b.u&&(b.u=c,b.delay.start());b.B=c;b.D=c;g.Zn(a.EG);a.ma("playbackstarted");g.Ev()&&((a=g.Ga("yt.scheduler.instance.clearPriorityThreshold"))? a():Fv(0))}; ZRa=function(a){var b=a.getCurrentTime(),c=a.Qg.Zc();!mB("pbs",a.tb.timerName)&&EA.measure&&EA.getEntriesByName&&(EA.getEntriesByName("mark_nr")[0]?Fva("mark_nr"):Fva());c.videoId&&a.tb.info("docid",c.videoId);c.eventId&&a.tb.info("ei",c.eventId);c.clientPlaybackNonce&&!a.K("web_player_early_cpn")&&a.tb.info("cpn",c.clientPlaybackNonce);0a.eQ+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&zE(a.videoData.j))){var b=a.pc;if(b.qoe){b=b.qoe;var c=b.j.xa.bz(),d=g.yS(b.j);fW(b,d,c);c=c.D;isNaN(c)||g.cW(b,d,"e2el",[c.toFixed(3)])}}g.mG(a.Y)&&a.va("rawlat",{l:qT(a.WK,"rawlivelatency").toFixed(3)});a.eQ=Date.now()}a.videoData.B&&UD(a.videoData.B)&&(b=oJ(a))&&b.videoHeight!==a.LI&&(a.LI=b.videoHeight,HX(a,"a",PRa(a,a.videoData.rb)))}; PRa=function(a,b){if("auto"===b.j.video.quality&&UD(b.Bg())&&a.videoData.Lc)for(var c=g.t(a.videoData.Lc),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.LI&&"auto"!==d.j.video.quality)return d.Bg();return b.Bg()}; qX=function(a){if(!$H(a.videoData))return NaN;var b=0;a.Ka&&a.videoData.j&&(b=NH(a.videoData)?a.Ka.VB.Rh()||0:a.videoData.j.S);return Date.now()/1E3-a.getIngestionTime()-b}; bSa=function(a){!a.K("html5_ignore_airplay_events_on_new_video_killswitch")&&a.mediaElement&&a.mediaElement.Dg()&&(a.gD=(0,g.T)());a.Y.lm?g.wu(function(){NX(a)},0):NX(a)}; NX=function(a){if(a.mediaElement)try{a.RD=a.mediaElement.playVideo()}catch(c){BX(a,"err."+c)}if(a.RD){var b=a.RD;b.then(void 0,function(c){if(!(g.V(a.playerState,4)||g.V(a.playerState,256)||a.RD!==b||c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);BX(a,d);a.WN=!0;a.videoData.RL=!0}})}}; BX=function(a,b){g.V(a.playerState,128)||(a.Wb(cK(a.playerState,1028,9)),a.va("dompaused",{r:b}),a.ma("onAutoplayBlocked"))}; sX=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=VRa(a);var d;null==(d=a.Ka)||d.resume()}else AX(a),a.videoData.rb&&(c=a.videoData.rb.Px());b=c;d=a.mediaElement.tB();c=!1;d&&d.equals(b)||(cSa(a,b),c=!0);g.V(a.playerState,2)||(b=a.pd,b.D||!(0=c&&b<=d}; ESa=function(a){if(!(g.V(a.sb.getPlayerState(),64)&&a.Zc().isLivePlayback&&5E3>a.xb.startTimeMs)){if(a.K("web_repeating_chapters")&&"repeatChapter"===a.xb.type){var b,c=null==(b=pN(a.wb()))?void 0:b.Ny(),d;b=null==(d=a.getVideoData())?void 0:d.Oi;c instanceof g.TO&&b&&(d=b[GP(b,a.xb.startTimeMs)],c.nK(0,d.title));isNaN(Number(a.xb.loopCount))?a.xb.loopCount=0:a.xb.loopCount++;1===a.xb.loopCount&&a.G.Pa("innertubeCommand",a.getVideoData().zW)}a.sb.seekTo(.001*a.xb.startTimeMs,{ze:"application_loopRangeStart"})}}; pSa=function(a,b){var c=a.Va.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(100*b+.001)%5,b=0===a?b:Math.floor(100*(b-.01*a)+.001)/100);return b}; iY=function(a,b,c){if(a.Fe(c)){c=c.getVideoData();if(hY(a))c=b;else{a=a.qd;for(var d=g.t(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Gc===e.Gc){b+=e.Cc/1E3;break}d=b;a=g.t(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Gc===e.Gc)break;var f=e.Cc/1E3;if(fd?e=!0:1=b?b:0;this.j=a=m?function(){return new BA("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:l})}:function(n,p){var q=PTa(n,c,d,function(r){var w=p(r),y=r.slotId; r=v_(l);y=iA(e.Ya.get(),"LAYOUT_TYPE_SURVEY",y);var z={layoutId:y,layoutType:"LAYOUT_TYPE_SURVEY",eb:"core"},B=new x_(e.j,d),D=new y_(e.j,y),G=new z_(e.j,y),H=new QTa(e.j);return{layoutId:y,layoutType:"LAYOUT_TYPE_SURVEY",Tb:new Map,Ld:[B,H],fd:[D],Xc:[],hd:[G],md:[],eb:"core",Ea:new tY([new hZ(l),new VY(b),new GZ(m/1E3),new KZ(r)]),Dc:w(z),adLayoutLoggingData:l.adLayoutLoggingData}}); n=OTa(a,c,q.slotId,d,e,n,p);return n instanceof BA?n:[q].concat(g.u(n))}}; ZTa=function(a,b,c,d,e,f,h){var l=[];try{var m=[];if(c.renderer.linearAdSequenceRenderer)var n=function(z){z=STa(z.slotId,c,b,e(z),d,f,h);m=z.H5;return z.BY}; else if(c.renderer.instreamVideoAdRenderer)n=function(z){var B=z.slotId;z=e(z);var D=c.config.adPlacementConfig,G=TTa(D),H=G.MO;G=G.PO;var L=c.renderer.instreamVideoAdRenderer,M;if(null==L?0:null==(M=L.playerOverlay)?0:M.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var J=UTa(L);M=Math.min(H+1E3*J.videoLengthSeconds,G);G=new KI(0,[J.videoLengthSeconds],M);var Q=J.videoLengthSeconds,P=J.playerVars,X=J.instreamAdPlayerOverlayRenderer,R=J.adVideoId, oa=VTa(c),sa=J.Tb;J=J.MN;var Ba=null==L?void 0:L.adLayoutLoggingData;L=null==L?void 0:L.sodarExtensionData;B=iA(b.Ya.get(),"LAYOUT_TYPE_MEDIA",B);var va={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",eb:"core"};return{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",Tb:sa,Ld:[new A_(b.j)],fd:[],Xc:[],hd:[],md:[],eb:"core",Ea:new tY([new bZ(d),new sZ(Q),new tZ(P),new vZ(H),new wZ(M),X&&new cZ(X),new VY(D),new $Y(R),new WY(G),new BZ(oa),L&&new uZ(L),new oZ({current:null}),new yZ({}),new NZ(J)].filter(WTa)),Dc:z(va), adLayoutLoggingData:Ba}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=XTa(a,d,n);l.push(p);for(var q=g.t(m),r=q.next();!r.done;r=q.next()){var w=r.value,y=w(a,e);if(y instanceof BA)return y;l.push.apply(l,g.u(y))}}catch(z){return new BA(z,{errorMessage:z.message,AdPlacementRenderer:c,numberOfSurveyRenderers:YTa(c)})}return l}; YTa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=b.instreamVideoAdRenderer)?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0}; STa=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=TTa(l),n=m.MO,p=m.PO;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==m||!m.length)throw new TypeError("Expected linear ads");var q=[],r={NS:n,OS:0,x5:q};m=m.map(function(y){return $Ta(a,y,r,c,d,l,e,p,h)}).map(function(y,z){z=new KI(z,q,p); return y(z)}); var w=m.map(function(y){return y.CY}); return{BY:aUa(c,a,n,w,l,VTa(b),d,p,f),H5:m.map(function(y){return y.G5})}}; $Ta=function(a,b,c,d,e,f,h,l,m){var n=UTa(b.instreamVideoAdRenderer),p=c.NS,q=c.OS,r=Math.min(p+1E3*n.videoLengthSeconds,l);c.NS=r;c.OS++;c.x5.push(n.videoLengthSeconds);var w,y,z=null==(w=b.instreamVideoAdRenderer)?void 0:null==(y=w.playerOverlay)?void 0:y.instreamSurveyAdRenderer;if("nPpU29QrbiU"===n.adVideoId&&null==z)throw new TypeError("Survey slate media has no survey overlay");return function(B){var D=n.playerVars;2<=B.u&&(D.slot_pos=B.j);D.autoplay="1";var G,H;D=n.videoLengthSeconds;var L= n.playerVars,M=n.Tb,J=n.MN,Q=n.instreamAdPlayerOverlayRenderer,P=n.adVideoId,X=null==(G=b.instreamVideoAdRenderer)?void 0:G.adLayoutLoggingData;G=null==(H=b.instreamVideoAdRenderer)?void 0:H.sodarExtensionData;H=iA(d.Ya.get(),"LAYOUT_TYPE_MEDIA",a);var R={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",eb:"adapter"};B={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Tb:M,Ld:[],fd:[],Xc:[],hd:[],md:[],eb:"adapter",Ea:new tY([new bZ(h),new sZ(D),new tZ(L),new vZ(p),new wZ(r),new xZ(q),new oZ({current:null}),Q&& new cZ(Q),new VY(f),new $Y(P),new WY(B),G&&new uZ(G),z&&new MZ(z),new yZ({}),new NZ(J)].filter(WTa)),Dc:e(R),adLayoutLoggingData:X};D=RTa(b.instreamVideoAdRenderer,f,h,B.layoutId,d,m);return{CY:B,G5:D}}}; UTa=function(a){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var b=ku(a.playerVars),c=Number(b.length_seconds);if(isNaN(c))throw new TypeError("Expected valid length seconds in player vars");var d=Number(a.trimmedMaxNonSkippableAdDurationMs);c=isNaN(d)?c:Math.min(c,d/1E3);d=a.playerOverlay||{};d=void 0===d.instreamAdPlayerOverlayRenderer?null:d.instreamAdPlayerOverlayRenderer;var e=b.video_id;e|| (e=(e=a.externalVideoId)?e:void 0);if(!e)throw new TypeError("Expected valid video id in IVAR");return{playerVars:b,videoLengthSeconds:c,instreamAdPlayerOverlayRenderer:d,adVideoId:e,Tb:a.pings?NI(a.pings):new Map,MN:MI(a.pings)}}; VTa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a}; TTa=function(a){var b=a.adTimeOffset||{};a=b.offsetEndMilliseconds;b=Number(b.offsetStartMilliseconds);if(isNaN(b))throw new TypeError("Expected valid start offset");a=Number(a);if(isNaN(a))throw new TypeError("Expected valid end offset");return{MO:b,PO:a}}; cUa=function(a,b,c,d,e,f,h){var l=c.pings;return l?[bUa(a,f,e,function(m){var n=m.slotId;m=h(m);var p=c.adLayoutLoggingData;n=iA(b.Ya.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",eb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Tb:NI(l),Ld:[new B_(b.j,f)],fd:[],Xc:[],hd:[],md:[],eb:"core",Ea:new tY([new VY(d)]),Dc:m(q),adLayoutLoggingData:p}})]:new BA("VideoAdTrackingRenderer without VideoAdTracking pings filled.", {videoAdTrackingRenderer:c})}; eUa=function(a,b,c,d,e,f,h,l){a=dUa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=iA(b.Ya.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",eb:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Tb:q,Ld:[new C_(b.j,n)],fd:[],Xc:[],hd:[],md:[],eb:"core",Ea:new tY([new AZ(e),new VY(c)]),Dc:m(p)}}); return a instanceof BA?a:[a]}; gUa=function(a,b,c,d,e,f,h,l){a=fUa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=iA(b.Ya.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=D_(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,E_(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=iA(b.Ya.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=D_(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,E_(b,n,p))):q.imageOverlayAdContentRenderer?(q=iA(b.Ya.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", p),n=E_(b,n,p),n.push(new F_(b.j,q)),n=D_(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new VZ("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new VZ("InvideoOverlayAdRenderer without contentSupportedRenderer");return n}); return a instanceof BA?a:[a]}; jUa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new BA("Expected valid duration for AdActionInterstitialRenderer."):function(p){return hUa(b,p.slotId,c,n,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(p),function(q){return iUa(a,q,e,function(r,w){var y=r.slotId;r=h(r);y=iA(b.Ya.get(),"LAYOUT_TYPE_ENDCAP", y);return w_(b,y,w,c,r,"LAYOUT_TYPE_ENDCAP",[new fZ(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}}; kUa=function(a,b,c,d){if(!c.playerVars)return new BA("No playerVars available in AdIntroRenderer.");var e=ku(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=iA(a.Ya.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",eb:"adapter"};return{Pt:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Tb:new Map,Ld:[],fd:[],Xc:[],hd:[],md:[],eb:"adapter",Ea:new tY([new zZ({}),new VY(b),new oZ({current:null}),new tZ(e)]),Dc:f(l)},yv:[new G_(a.j,h,["error"])],Tr:[],ZB:[], YB:[]}}}; mUa=function(a,b,c,d,e,f,h,l,m){var n=u_(e);if(!ITa(e))return new BA("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=n)return new BA("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var p=LTa(a,b,e,f,c,d,h);return p instanceof BA?p:function(q){return lUa(b,q.slotId,c,n,v_(e),h(q),p,l,m)}}; nUa=function(a,b,c,d,e,f,h,l){function m(q){return iUa(a,q,d,n)} function n(q,r){var w=q.slotId;q=h(q);w=iA(b.Ya.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",w);return w_(b,w,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new gZ(e),f],e.adLayoutLoggingData)} if(!(!isNaN(Number(e.timeoutSeconds))&&e.text&&e.ctaButton&&e.ctaButton.buttonRenderer&&e.brandImage&&e.backgroundImage&&e.backgroundImage.thumbnailLandscapePortraitRenderer&&e.backgroundImage.thumbnailLandscapePortraitRenderer.landscape))return new BA("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var r={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},w= h(q);q=H_(b,q.slotId,c,p,r,new Map,w,m);r=new lZ(q.ND);w=new XY(l);return{Pt:{layoutId:q.layoutId,layoutType:q.layoutType,Tb:q.Tb,Ld:[],fd:[],Xc:[],hd:[],md:[],eb:q.eb,Ea:new tY([].concat(g.u(q.ly),[r,w])),Dc:q.Dc,adLayoutLoggingData:q.adLayoutLoggingData},yv:[],Tr:q.Xc,ZB:q.hd,YB:q.md,Ti:q.Ti}}}; qUa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w){d=hA(d,"SLOT_TYPE_PLAYER_BYTES");a=oUa(e,a,h,c,d,m,n);if(a instanceof BA)return a;var y;h=null==(y=uY(a.Ea,"metadata_type_fulfilled_layout"))?void 0:y.layoutId;if(!h)return new BA("Invalid adNotify layout");b=pUa(h,e,f,c,l,b,m,p,q,r,w);return b instanceof BA?b:[a].concat(g.u(b))}; pUa=function(a,b,c,d,e,f,h,l,m,n,p){c=rUa(c,d,f,h,l,m,n,p);if(c instanceof BA)return c;a=sUa(b,a,h,e,c);return a instanceof BA?a:[].concat(g.u(a.Zh),[a.wt])}; uUa=function(a,b,c,d,e,f,h,l,m,n,p){b=rUa(b,c,e,f,l,m,n,p);if(b instanceof BA)return b;a=tUa(a,c,f,h,d,l.uf,b);return a instanceof BA?a:a.Zh.concat(a.wt)}; rUa=function(a,b,c,d,e,f,h,l){var m=I_(c);return m instanceof VZ?new BA(m):function(n){var p=new KI(0,[m.EB]),q=vUa(m.playerVars,m.fS,e,l,p);n=f(n);var r=h.get(m.SA.externalVideoId);p=wUa(a,"core",m.SA,b,q,m.EB,d,p,n,r);return{layout:{layoutId:p.layoutId,layoutType:p.layoutType,Tb:p.Tb,Ld:p.Ld,fd:p.fd,Xc:p.Xc,hd:p.hd,md:p.md,eb:p.eb,Ea:new tY(p.rO),Dc:p.Dc,adLayoutLoggingData:p.adLayoutLoggingData},Zh:[]}}}; I_=function(a){if(!a.playerVars)return new VZ("No playerVars available in InstreamVideoAdRenderer.");var b;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null==(b=a.playerOverlay)?void 0:b.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new VZ("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=ku(a.playerVars);var c=Number(b.length_seconds);isNaN(c)&&(c=0,eA("Expected valid length seconds in player vars but got NaN")); return{SA:a,playerVars:b,fS:a.playerVars,EB:c}}; vUa=function(a,b,c,d,e){a.iv_load_policy=d;b=ku(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){eA(f)}c.Dh&&(a.ctrl=c.Dh);c.di&&(a.ytr=c.di);c.Pn&&(a.ytrcc=c.Pn);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.bj&&(a.vss_credentials_token_type=c.bj),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.j);a.autoplay="1";return a}; yUa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,y){a=hA(a,"SLOT_TYPE_PLAYER_BYTES");d=oUa(b,h,d,e,a,n,p);if(d instanceof BA)return d;var z;h=null==(z=uY(d.Ea,"metadata_type_fulfilled_layout"))?void 0:z.layoutId;if(!h)return new BA("Invalid adNotify layout");b=xUa(h,b,c,e,f,m,l,n,q,r,w,y);return b instanceof BA?b:[d].concat(g.u(b))}; xUa=function(a,b,c,d,e,f,h,l,m,n,p,q){c=zUa(b,c,d,f,h,l,m,n,p,q);AUa(f)?(d=BUa(b,a),a=hA(b.Ya.get(),"SLOT_TYPE_IN_PLAYER"),f=iA(b.Ya.get(),"LAYOUT_TYPE_SURVEY",a),l=J_(b,d,l),b=[].concat(g.u(l.hc),[new K_(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,Nb:l.Nb,Yb:l.Yb,hc:b,eb:l.eb},{slotId:a,layoutId:f}),e=a instanceof BA?a:{wt:Object.assign({},l,{hc:b,Ea:new tY([new CZ(a.layout)]),adSlotLoggingData:e}),Zh:a.Zh}):e=sUa(b,a,l,e,c);return e instanceof BA? e:[].concat(g.u(e.Zh),[e.wt])}; DUa=function(a,b,c,d,e,f,h,l,m,n,p,q){b=zUa(a,b,c,e,f,h,m,n,p,q);AUa(e)?(c=CUa(a,c,h,l),c instanceof BA?d=c:(e=hA(a.Ya.get(),"SLOT_TYPE_IN_PLAYER"),h=iA(a.Ya.get(),"LAYOUT_TYPE_SURVEY",e),a=[].concat(g.u(c.hc),[new K_(a.j,h)]),e=b({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,eb:c.eb,Nb:c.Nb,Yb:c.Yb,hc:a},{slotId:e,layoutId:h}),d=e instanceof BA?e:{wt:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,Nb:c.Nb,Yb:c.Yb,hc:a,eb:c.eb,Ea:new tY([new CZ(e.layout)]), adSlotLoggingData:d},Zh:e.Zh})):d=tUa(a,c,h,l,d,m.uf,b);return d instanceof BA?d:d.Zh.concat(d.wt)}; AUa=function(a){a=g.t(a);for(var b=a.next();!b.done;b=a.next())if(b.value.instreamSurveyAdRenderer)return!0;return!1}; zUa=function(a,b,c,d,e,f,h,l,m,n){return function(p,q){a:{b:{var r=[];for(var w=g.t(d),y=w.next();!y.done;y=w.next())if(y=y.value,y.instreamVideoAdRenderer){y=I_(y.instreamVideoAdRenderer);if(y instanceof VZ){r=new BA(y);break b}r.push(y.EB)}}if(r instanceof BA)q=r;else{w=0;y=[];for(var z=[],B=[],D=[],G=[],H=[],L=new pZ({current:null}),M=new ZY({current:null}),J=!1,Q=[],P=-1,X=g.t(d),R=X.next();!R.done;R=X.next())if(R=R.value,R.adIntroRenderer){R=kUa(b,c,R.adIntroRenderer,l);if(R instanceof BA){q= R;break a}R=R(p);y.push(R.Pt);z=[].concat(g.u(R.yv),g.u(z));B=[].concat(g.u(R.Tr),g.u(B));R.Ti&&(Q=[R.Ti].concat(g.u(Q)))}else if(R.instreamVideoAdRenderer){P=I_(R.instreamVideoAdRenderer);if(P instanceof VZ){q=new BA(P);break a}R=new KI(w,r);var oa=b,sa=P.SA,Ba=vUa(P.playerVars,P.fS,h,n,R),va=l(p),wa=m.get(P.SA.externalVideoId);Ba=wUa(oa,"adapter",sa,c,Ba,P.EB,f,R,va,wa);va=Ba.fd;wa=Ba.rO;sa.adPodSkipTarget&&0=l)return new BA("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new pZ({current:null}),n=LTa(a,b,c,m,d,f,h);return EUa(a,d,f,l,e,function(p,q){var r=p.slotId,w=v_(c);p=h(p);r=iA(b.Ya.get(),"LAYOUT_TYPE_MEDIA_BREAK",r);var y={layoutId:r,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",eb:"core"},z=n(r, q);uY(z.Ea,"metadata_type_fulfilled_layout")||eA("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");w=[new VY(d),new HZ(l),new KZ(w),m];return{Q_:{layoutId:r,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Tb:new Map,Ld:[new C_(b.j,r)],fd:[new y_(b.j,q.layoutId)],Xc:[],hd:[new z_(b.j,q.layoutId)],md:[],eb:"core",Ea:new tY(w),Dc:p(y)},h_:z}})}; GUa=function(a){if(!yTa(a))return!1;var b=a.adVideoStart.adMessageRenderer;return b?a.linearAd.instreamVideoAdRenderer&&CJ(b)?!0:(eA("Invalid Sandwich with notify"),!1):!1}; HUa=function(a){if(null==a.linearAds)return!1;var b;a=null==(b=a.adStart)?void 0:b.adMessageRenderer;return a?CJ(a)?!0:(eA("Invalid LASR with notify"),!1):!1}; IUa=function(a){if(!xTa(a))return!1;var b;a=null==(b=a.adStart)?void 0:b.adMessageRenderer;return a?CJ(a)?!0:(eA("Invalid LASR with notify"),!1):!1}; L_=function(a,b,c,d,e,f,h,l){this.Ya=a;this.Fb=b;this.yb=c;this.Ha=d;this.Gb=e;this.j=f;this.Ei=h;this.loadPolicy=void 0===l?1:l}; Qua=function(a,b,c,d,e,f,h,l){var m=[];if(0===b.length&&0===c.length)return m;b=b.filter(q_);for(var n=c.filter(q_),p=new Map,q=new Map,r=g.t(b),w=r.next();!w.done;w=r.next())(w=w.value.renderer.remoteSlotsRenderer)&&w.hostElementId&&q.set(w.hostElementId,w);r=g.t(b);for(w=r.next();!w.done;w=r.next()){w=w.value;var y=JUa(a,p,w,d,e,f,h,q,l);y instanceof BA?eA(y,void 0,void 0,{renderer:w.renderer,config:w.config.adPlacementConfig,kind:w.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):m.push.apply(m, g.u(y))}M_(a.Ha.get())||(e=KUa(a,n,d,h,q,p),m.push.apply(m,g.u(e)));if(null===a.j||f&&!h.DO){var z,B,D;a=h.uf&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(z=b[0].config)?void 0:null==(B=z.adPlacementConfig)?void 0:B.kind)&&(null==(D=b[0].renderer)?void 0:D.adBreakServiceRenderer);if(!m.length&&!a){var G,H,L,M;eA("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,"first APR kind":null==(G=b[0])?void 0:null== (H=G.config)?void 0:null==(L=H.adPlacementConfig)?void 0:L.kind,renderer:null==(M=b[0])?void 0:M.renderer})}return m}z=c.filter(q_);m.push.apply(m,g.u(FTa(p,z,a.Fb.get(),a.j,d)));if(!m.length){var J,Q,P,X;eA("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f.toString(),"first APR kind":null==(J=b[0])?void 0:null==(Q=J.config)?void 0:null==(P=Q.adPlacementConfig)?void 0:P.kind,renderer:null==(X=b[0])?void 0:X.renderer})}return m}; KUa=function(a,b,c,d,e,f){function h(r){return AY(a.Gb.get(),r)} var l=[];b=g.t(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&GUa(p)?(q=p.adVideoStart.adMessageRenderer,p=p.linearAd.instreamVideoAdRenderer,r_(f,n,m.config.adPlacementConfig.kind),m=pUa(q.layout.layoutId,a.Fb.get(),a.yb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Ha.get()),m instanceof BA?eA(m):l.push.apply(l,g.u(m))):q&&(!q.adLayoutMetadata&&HUa(q)||q.adLayoutMetadata&&IUa(q))&& (r_(f,n,m.config.adPlacementConfig.kind),m=xUa(q.adStart.adMessageRenderer.layout.layoutId,a.Fb.get(),a.yb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,p_(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Ha.get()),m instanceof BA?eA(m):l.push.apply(l,g.u(m)))}return l}; JUa=function(a,b,c,d,e,f,h,l,m){function n(B){return AY(a.Gb.get(),B)} var p=c.renderer,q=c.config.adPlacementConfig,r=q.kind,w=c.adSlotLoggingData,y=h.DO&&"AD_PLACEMENT_KIND_START"===r;y=f&&!y;if(null!=p.adsEngagementPanelRenderer)return s_(b,c.elementId,r,p.adsEngagementPanelRenderer.isContentVideoEngagementPanel,p.adsEngagementPanelRenderer.adVideoId,p.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(B,D,G,H){var L=a.yb.get(),M=p.adsEngagementPanelRenderer,J=AY(a.Gb.get(),B);return N_(L,B.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new NY(M),D,G,M.impressionPings,J,p.adsEngagementPanelRenderer.adLayoutLoggingData,H)}),[]; if(null!=p.actionCompanionAdRenderer)s_(b,c.elementId,r,p.actionCompanionAdRenderer.isContentVideoCompanion,p.actionCompanionAdRenderer.adVideoId,p.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(B,D,G,H){var L=a.yb.get(),M=p.actionCompanionAdRenderer,J=AY(a.Gb.get(),B);return N_(L,B.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new MY(M),D,G,M.impressionPings,J,p.actionCompanionAdRenderer.adLayoutLoggingData,H)}); else if(p.imageCompanionAdRenderer)s_(b,c.elementId,r,p.imageCompanionAdRenderer.isContentVideoCompanion,p.imageCompanionAdRenderer.adVideoId,p.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(B,D,G,H){var L=a.yb.get(),M=p.imageCompanionAdRenderer,J=AY(a.Gb.get(),B);return N_(L,B.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new RY(M),D,G,M.impressionPings,J,p.imageCompanionAdRenderer.adLayoutLoggingData,H)}); else if(p.shoppingCompanionCarouselRenderer)s_(b,c.elementId,r,p.shoppingCompanionCarouselRenderer.isContentVideoCompanion,p.shoppingCompanionCarouselRenderer.adVideoId,p.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(B,D,G,H){var L=a.yb.get(),M=p.shoppingCompanionCarouselRenderer,J=AY(a.Gb.get(),B);return N_(L,B.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new SY(M),D,G,M.impressionPings,J,p.shoppingCompanionCarouselRenderer.adLayoutLoggingData,H)}); else if(p.adBreakServiceRenderer){if(!BTa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==r)return ATa(a.Fb.get(),q,w,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Ei)return new BA("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");h.uf||eA("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:r,adPlacementConfig:q,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(h.uf),clientPlaybackNonce:h.clientPlaybackNonce}); LUa(a.Ei,{adPlacementRenderer:c,contentCpn:d,uO:e})}else{if(p.clientForecastingAdRenderer)return eUa(a.Fb.get(),a.yb.get(),q,w,p.clientForecastingAdRenderer,d,e,n);if(p.invideoOverlayAdRenderer)return gUa(a.Fb.get(),a.yb.get(),q,w,p.invideoOverlayAdRenderer,d,e,n);if((p.linearAdSequenceRenderer||p.instreamVideoAdRenderer)&&y)return ZTa(a.Fb.get(),a.yb.get(),c,d,n,m,a.Ha.get().G.V().experiments.ib("html5_ytvlr_enable_single_select_survey"));if(p.linearAdSequenceRenderer&&!y){r_(b,p,r);if(p.linearAdSequenceRenderer.adLayoutMetadata){if(!xTa(p.linearAdSequenceRenderer))return new BA("Received invalid LinearAdSequenceRenderer.")}else if(null== p.linearAdSequenceRenderer.linearAds)return new BA("Received invalid LinearAdSequenceRenderer.");var z;if(null==(z=p.linearAdSequenceRenderer.adStart)?0:z.adMessageRenderer){b=p.linearAdSequenceRenderer.adStart.adMessageRenderer;if(!FCa(b))return new BA("Invalid AdMessageRenderer.");c=p.linearAdSequenceRenderer.linearAds;return yUa(a.Ya.get(),a.Fb.get(),a.yb.get(),a.Gb.get(),q,w,b,p_(p.linearAdSequenceRenderer.adLayoutMetadata)?p.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,h,n,l,a.loadPolicy, a.Ha.get())}return DUa(a.Fb.get(),a.yb.get(),q,w,p.linearAdSequenceRenderer.linearAds,p_(p.linearAdSequenceRenderer.adLayoutMetadata)?p.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,h,n,l,a.loadPolicy,a.Ha.get())}if(!p.remoteSlotsRenderer||f){if(p.instreamVideoAdRenderer&&!y)return r_(b,p,r),uUa(a.Fb.get(),a.yb.get(),q,w,p.instreamVideoAdRenderer,d,e,h,n,l,a.loadPolicy,a.Ha.get());if(p.instreamSurveyAdRenderer)return FUa(a.Fb.get(),a.yb.get(),p.instreamSurveyAdRenderer,q,w,d,n);if(null!=p.sandwichedLinearAdRenderer)return yTa(p.sandwichedLinearAdRenderer)? p.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer?(b=p.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer,FCa(b)?(c=p.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer)?qUa(b,c,q,a.Ya.get(),a.Fb.get(),a.yb.get(),a.Gb.get(),w,d,e,h,n,l,a.loadPolicy,a.Ha.get()):new BA("Missing IVAR from Sandwich"):new BA("Invalid AdMessageRenderer.")):DUa(a.Fb.get(),a.yb.get(),q,w,[p.sandwichedLinearAdRenderer.adVideoStart,p.sandwichedLinearAdRenderer.linearAd],void 0,d,e,h,n,l,a.loadPolicy, a.Ha.get()):new BA("Received invalid SandwichedLinearAdRenderer.");if(null!=p.videoAdTrackingRenderer)return cUa(a.Fb.get(),a.yb.get(),p.videoAdTrackingRenderer,q,w,d,n)}}return[]}; O_=function(a){g.K.call(this);this.j=a}; Zz=function(a,b,c,d){a.j().Ri(b,d);c=c();a=a.j();P_(a.kc,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.t(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;JJ(d.kc,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);JJ(d.kc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.db(c.slotId))throw new BA("Slot ID was empty");if(TZ(e,c))throw new BA("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Nb.triggerType});if(!e.Ke.Xn.has(c.slotType))throw new BA("No fulfillment adapter factory registered for slot of type: "+ c.slotType);if(!e.Ke.Uo.has(c.slotType))throw new BA("No SlotAdapterFactory registered for slot of type: "+c.slotType);j_(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Nb?[c.Nb]:[]);j_(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.Yb);j_(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.hc);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=e_(f,h);if(TZ(f,c))throw new BA("Duplicate slots not supported");l.set(c.slotId,new sTa(c));f.j.set(h,l)}catch(P){eA(P,c,void 0,void 0,P.Ir);break a}TZ(d.j,c).I=!0;try{var m=d.j,n=TZ(m,c), p=c.Nb,q=m.Ke.Hj.get(p.triggerType);q&&(q.Bk("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ya.set(p.triggerId,q));for(var r=g.t(c.Yb),w=r.next();!w.done;w=r.next()){var y=w.value,z=m.Ke.Hj.get(y.triggerType);z&&(z.Bk("TRIGGER_CATEGORY_SLOT_FULFILLMENT",y,c,null),n.ea.set(y.triggerId,z))}for(var B=g.t(c.hc),D=B.next();!D.done;D=B.next()){var G=D.value,H=m.Ke.Hj.get(G.triggerType);H&&(H.Bk("TRIGGER_CATEGORY_SLOT_EXPIRATION",G,c,null),n.Z.set(G.triggerId,H))}var L=m.Ke.Xn.get(c.slotType).get().We(m.B,c); n.J=L;var M=m.Ke.Uo.get(c.slotType).get().We(m.D,c);M.init();n.u=M}catch(P){eA(P,c,void 0,void 0,P.Ir);QZ(d,c,!0);break a}JJ(d.kc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Yh(c);for(var J=g.t(d.Nd),Q=J.next();!Q.done;Q=J.next())Q.value.Yh(c);YZ(d,c)}}; Q_=function(a,b,c,d){this.Xo=b;this.Jl=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)}; R_=function(a,b,c,d){g.K.call(this);var e=this;this.Sb=a;this.Fb=b;this.Xb=c;this.j=new Map;d.get().addListener(this);g.af(this,function(){d.get().removeListener(e)})}; Nua=function(a,b){var c=0x8000000000000;for(var d=0,e=g.t(b.Yb),f=e.next();!f.done;f=e.next())f=f.value,f instanceof Q_?(c=Math.min(c,f.Jl.start),d=Math.max(d,f.Jl.end)):eA("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new zo(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.Xb.get().addCueRange(d,c.start,c.end,!1,a)}; S_=function(){g.K.apply(this,arguments);this.qj=!0;this.Dj=new Map;this.j=new Map}; MUa=function(a,b){a=g.t(a.Dj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1}; T_=function(a,b){a=g.t(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.t(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}eA("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.db(b)),layoutId:b})}; K_=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)}; G_=function(a,b,c){this.Hf=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)}; x_=function(a,b){this.Hf=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)}; A_=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)}; U_=function(a,b){this.j=b;this.slotType="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)}; V_=function(a,b){this.j=b;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)}; C_=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)}; B_=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)}; NUa=function(a,b){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=b;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=a(this.triggerType)}; QTa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)}; W_=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)}; X_=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)}; Y_=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)}; y_=function(a,b){this.Hf=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)}; z_=function(a,b){this.Hf=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)}; F_=function(a,b){this.durationMs=45E3;this.Hf=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)}; OUa=function(a){var b=[new kZ(a.hx),new cZ(a.instreamAdPlayerOverlayRenderer),new nZ(a.KR),new VY(a.adPlacementConfig),new sZ(a.videoLengthSeconds),new GZ(a.YI)];a.ON&&b.push(new ZY(a.ON));return b}; PUa=function(a,b,c,d,e,f){a=c.qI?c.qI:iA(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",eb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Tb:new Map,Ld:[new x_(function(l){return jA(f,l)},c.hx)], fd:[],Xc:[],hd:[],md:[],eb:b,Ea:d,Dc:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}}; Z_=function(a){var b=this;this.Ya=a;this.j=function(c){return jA(b.Ya.get(),c)}}; QUa=function(a,b,c,d,e,f){c=new tY([new dZ(c),new VY(d)]);b=iA(a.Ya.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",eb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Tb:new Map,Ld:[new x_(function(h){return jA(a.Ya.get(),h)},e)], fd:[],Xc:[],hd:[],md:[],eb:"core",Ea:c,Dc:f(d),adLayoutLoggingData:void 0}}; $_=function(a,b,c,d,e){var f=OUa(d);return PUa(b,c,d,new tY(f),e,a.Ya.get())}; RUa=function(a,b,c,d,e){var f=OUa(d);f.push(new TY(d.DX));f.push(new UY(d.FX));return PUa(b,c,d,new tY(f),e,a.Ya.get())}; N_=function(a,b,c,d,e,f,h,l,m,n){b=iA(a.Ya.get(),c,b);var p={layoutId:b,layoutType:c,eb:"core"},q=new Map;h&&q.set("impression",h);h=[new U_(a.j,e)];n&&h.push(new G_(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Tb:q,Ld:h,fd:[],Xc:[],hd:[],md:[],eb:"core",Ea:new tY([d,new VY(f),new kZ(e)]),Dc:l(p),adLayoutLoggingData:m}}; E_=function(a,b,c){var d=[];d.push(new V_(a.j,c));b&&d.push(b);return d}; D_=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,eb:"core"};return{layoutId:b,layoutType:c,Tb:new Map,Ld:h,fd:[new K_(a.j,b)],Xc:[],hd:[],md:[],eb:"core",Ea:new tY([new QY(d),new VY(e)]),Dc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}}; w_=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,eb:"core"};return{layoutId:b,layoutType:f,Tb:new Map,Ld:[new x_(a.j,c)],fd:[],Xc:[],hd:[],md:[],eb:"core",Ea:new tY([new VY(d)].concat(g.u(h))),Dc:e(m),adLayoutLoggingData:l}}; hUa=function(a,b,c,d,e,f,h,l,m,n,p,q){a=H_(a,b,c,d,e,f,h,l,p,q);b=a.ly;c=new lZ(a.ND);d=a.fd;0=.25*d||c)&&z1(a,"first_quartile"),(b>=.5*d||c)&&z1(a,"midpoint"),(b>=.75*d||c)&&z1(a,"third_quartile"),a=a.Aa,b*=1E3,c=a.D())){for(;a.Ce&&h.lx(p,e-d);return p}; oWa=function(a,b){var c=uY(b.Ea,"metadata_type_sodar_extension_data");if(c)try{tVa(0,c)}catch(d){eA("Unexpected error when loading Sodar",a,b,{error:d})}}; pWa=function(a,b,c,d,e,f){h2(a,b,new g.rJ(c,new g.ZJ),d,e,!1,f)}; h2=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;v1(c)&&w1(e,0,null)&&(!e1(a,"impression")&&h&&h(),b1(a,"impression"));e1(a,"impression")&&(g.tJ(c,4)&&!g.tJ(c,2)&&a.Qf("pause"),0>sJ(c,4)&&!(0>sJ(c,2))&&a.Qf("resume"),g.tJ(c,16)&&.5<=e&&a.Qf("seek"),f&&g.tJ(c,2)&&i2(a,c.state,b,d,e))}; i2=function(a,b,c,d,e,f){if(e1(a,"impression")){var h=1>=Math.abs(d-e);j2(a,b,h?d:e,c,d,f);h&&b1(a,"complete")}}; j2=function(a,b,c,d,e,f){d1(a,1E3*c);0>=e||0>=c||(null==b?0:g.V(b,16))||(null==b?0:g.V(b,32))||(w1(c,.25*e,d)&&(f&&!e1(a,"first_quartile")&&f("first"),b1(a,"first_quartile")),w1(c,.5*e,d)&&(f&&!e1(a,"midpoint")&&f("second"),b1(a,"midpoint")),w1(c,.75*e,d)&&(f&&!e1(a,"third_quartile")&&f("third"),b1(a,"third_quartile")))}; qWa=function(a,b){e1(a,"impression")&&a.Qf(b?"fullscreen":"end_fullscreen")}; rWa=function(a){e1(a,"impression")&&a.Qf("clickthrough")}; sWa=function(a){a.Qf("active_view_measurable")}; tWa=function(a){e1(a,"impression")&&!e1(a,"seek")&&a.Qf("active_view_fully_viewable_audible_half_duration")}; uWa=function(a){e1(a,"impression")&&!e1(a,"seek")&&a.Qf("active_view_viewable")}; vWa=function(a){e1(a,"impression")&&!e1(a,"seek")&&a.Qf("audio_audible")}; wWa=function(a){e1(a,"impression")&&!e1(a,"seek")&&a.Qf("audio_measurable")}; xWa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Je=d;this.j=e;this.Ga=f;this.Dd=h;this.Hb=l;this.Ae=m;this.Ha=n;this.Sa=p;this.Ua=q;this.bD=!0;this.Gc=this.u=null}; yWa=function(a,b,c){var d;a.Sa.get().Vh("ads_qua","cpn."+uY(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ua.get().Rf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; zWa=function(a,b){var c,d,e;a.Sa.get().Vh("ads_imp","cpn."+uY(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Ua.get().Rf(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!(null==(d=uY(a.layout.Ea,"metadata_type_instream_ad_player_overlay_renderer"))?0:null==(e=d.skipOrPreviewRenderer)?0:e.skipAdRenderer))}; k2=function(a){return{enterMs:uY(a.Ea,"metadata_type_layout_enter_ms"),exitMs:uY(a.Ea,"metadata_type_layout_exit_ms")}}; l2=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w){e2.call(this,a,b,c,d,e,h,l,m,n,q);this.Dd=f;this.Ae=p;this.Hb=r;this.Ha=w;this.Gc=this.u=null}; AWa=function(a,b){var c;a.Sa.get().Vh("ads_imp","acpn."+(null==(c=a.Ua.get().Rf(2))?void 0:c.clientPlaybackNonce)+";clr."+b)}; BWa=function(a,b,c){var d;a.Sa.get().Vh("ads_qua","cpn."+uY(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ua.get().Rf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; m2=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,y,z,B,D,G){this.mf=a;this.u=b;this.Ua=c;this.Je=d;this.Ga=e;this.Sa=f;this.Dd=h;this.Pe=l;this.Hb=m;this.Ae=n;this.qe=p;this.Xb=q;this.Od=r;this.kd=w;this.lf=y;this.Kb=z;this.vf=B;this.Ha=D;this.j=G}; n2=function(a){g.K.call(this);this.j=a;this.Pb=new Map}; o2=function(a,b){for(var c=[],d=g.t(a.Pb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&b_(a.j(),c)}; p2=function(a,b){g.K.call(this);var c=this;this.C=a;this.u=new Map;this.B=new Map;this.j=null;b.get().addListener(this);g.af(this,function(){b.get().removeListener(c)}); var d;this.j=(null==(d=b.get().Zr)?void 0:d.slotId)||null}; CWa=function(a,b){var c=[];a=g.t(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c}; DWa=function(a){this.G=a}; EWa=function(a,b,c,d,e){FI.call(this,"image-companion",a,b,c,d,e)}; FWa=function(a,b,c,d,e,f,h,l){h1.call(this,a,b,c,d);this.Sa=e;this.mf=f;this.J=l;this.qj=!0;this.C=null;this.D=uY(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.mf().Nd.add(this);a=uY(c.Ea,"metadata_type_ad_placement_config");this.I=new Z0(c.Tb,this.Sa,a,c.layoutId)}; GWa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];$0().forEach(function(b){a.push(b)}); return{pe:a,Df:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; HWa=function(a,b,c,d,e){FI.call(this,"shopping-companion",a,b,c,d,e)}; IWa=function(a,b,c,d,e,f,h,l){h1.call(this,a,b,c,d);this.Sa=e;this.mf=f;this.J=l;this.qj=!0;this.C=null;this.D=uY(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.mf().Nd.add(this);a=uY(c.Ea,"metadata_type_ad_placement_config");this.I=new Z0(c.Tb,this.Sa,a,c.layoutId)}; JWa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];$0().forEach(function(b){a.push(b)}); return{pe:a,Df:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; KWa=function(a,b,c,d,e){FI.call(this,"ads-engagement-panel",a,b,c,d,e)}; LWa=function(a,b,c,d,e,f,h,l){h1.call(this,a,b,c,d);this.Sa=e;this.mf=f;this.J=l;this.qj=!0;this.C=null;this.D=uY(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.mf().Nd.add(this);a=uY(c.Ea,"metadata_type_ad_placement_config");this.I=new Z0(c.Tb,this.Sa,a,c.layoutId)}; MWa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];$0().forEach(function(b){a.push(b)}); return{pe:a,Df:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; NWa=function(a,b,c,d,e){this.dc=a;this.Sa=b;this.mf=c;this.j=d;this.Hb=e}; OWa=function(a,b,c){FI.call(this,"player-underlay",a,{},b,c);this.j=c}; q2=function(a,b,c,d){h1.call(this,a,b,c,d)}; PWa=function(a){this.dc=a}; QWa=function(a,b,c,d){FI.call(this,"survey-interstitial",a,b,c,d)}; r2=function(a,b,c,d,e){h1.call(this,c,a,b,d);this.Sa=e;a=uY(b.Ea,"metadata_type_ad_placement_config");this.C=new Z0(b.Tb,e,a,b.layoutId)}; s2=function(a){return Math.round(a.width)+"x"+Math.round(a.height)}; SWa=function(a,b,c){c=void 0===c?RWa:c;c.widtha.width*a.height*.2)return{VE:3,TA:501,errorMessage:"ad("+s2(c)+") to container("+s2(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{VE:3,TA:501,errorMessage:"ad("+s2(c)+") covers container("+s2(a)+") center."}}; TWa=function(a,b){var c=uY(a.Ea,"metadata_type_ad_placement_config");return new Z0(a.Tb,b,c,a.layoutId)}; t2=function(a){return uY(a.Ea,"metadata_type_invideo_overlay_ad_renderer")}; UWa=function(a,b,c,d){FI.call(this,"invideo-overlay",a,b,c,d);this.j=d}; u2=function(a,b,c,d,e,f,h,l,m,n,p,q){h1.call(this,f,a,b,e);this.Sa=c;this.C=h;this.Ga=l;this.Kb=m;this.Ha=n;this.I=p;this.D=q;this.S=TWa(b,c)}; VWa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];$0().forEach(function(b){a.push(b)}); return{pe:a,Df:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; v2=function(a,b,c,d,e,f,h,l,m,n,p,q,r){h1.call(this,f,a,b,e);this.Sa=c;this.C=h;this.S=l;this.Ga=m;this.Kb=n;this.Ha=p;this.I=q;this.D=r;this.Z=TWa(b,c)}; WWa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.t($0()),c=b.next();!c.done;c=b.next())a.push(c.value);return{pe:a,Df:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; w2=function(a){this.Ga=a;this.j=!1}; XWa=function(a,b,c,d,e,f){h1.call(this,c,a,b,d);this.Ga=e;this.Ha=f}; YWa=function(a,b,c){FI.call(this,"survey",a,{},b,c)}; ZWa=function(a,b,c,d,e,f,h){h1.call(this,c,a,b,d);this.C=e;this.Ga=f;this.Ha=h}; $Wa=function(a,b,c,d,e,f,h,l,m,n){this.dc=a;this.Ga=b;this.Sa=c;this.C=d;this.Hb=e;this.u=f;this.B=h;this.Kb=l;this.Ha=m;this.j=n}; x2=function(a){g.K.call(this);this.B=a;this.qj=!0;this.Pb=new Map;this.j=new Map;this.u=new Map}; aXa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.t(b);for(var d=b.next();!d.done;d=b.next())(d=a.u.get(d.value.triggerId))&&c.push(d)}return c}; bXa=function(a,b,c,d,e){g.K.call(this);var f=this;this.Ya=Y(function(){return new gA}); g.N(this,this.Ya);this.yb=Y(function(){return new Z_(f.Ya)}); g.N(this,this.yb);this.Fc=Y(function(){return new S_}); g.N(this,this.Fc);this.Sb=Y(function(){return new O_(a)}); g.N(this,this.Sb);this.Fb=Y(function(){return new l0(f.Ya,f.yb,f.Ha)}); g.N(this,this.Fb);this.Dd=Y(function(){return new q0}); g.N(this,this.Dd);this.lf=Y(function(){return new GI(b.V())}); g.N(this,this.lf);this.dc=Y(function(){return new Z1(b)}); g.N(this,this.dc);this.Kb=Y(function(){return new n_(e)}); g.N(this,this.Kb);this.Od=Y(function(){return new SJ(b)}); g.N(this,this.Od);this.Xb=Y(function(){return new s0(b)}); g.N(this,this.Xb);this.qe=Y(function(){return new b2(b)}); g.N(this,this.qe);this.kd=Y(function(){return new t0(b)}); g.N(this,this.kd);this.Ha=Y(function(){return new u0(b)}); g.N(this,this.Ha);this.Ue=Y(function(){return new Y1(d)}); g.N(this,this.Ue);this.Gb=Y(function(){return new BY(f.Ha)}); g.N(this,this.Gb);this.Id=Y(function(){return new L_(f.Ya,f.Fb,f.yb,f.Ha,f.Gb,"SLOT_TYPE_ABOVE_FEED",f.Ei)}); g.N(this,this.Id);this.vf=Y(function(){return new c2(b)}); g.N(this,this.vf);this.He=Y(function(){return new d2}); g.N(this,this.He);this.cn=Y(function(){return new O0}); g.N(this,this.cn);this.Ua=Y(function(){return new J0(b,f.Dd,f.Ha)}); g.N(this,this.Ua);this.kc=new p0(this.Ha,this.Gb,this.Ua);g.N(this,this.kc);this.Pe=Y(function(){return new a2(b,f.Ha,f.Sa)}); g.N(this,this.Pe);this.Je=Y(function(){return new DWa(b)}); g.N(this,this.Je);this.Ga=Y(function(){return new K0(b,f.Ua,f.Ha)}); g.N(this,this.Ga);this.Ae=Y(function(){return new P0}); this.Hb=Y(function(){return new x0(f.Ga,b)}); g.N(this,this.Hb);this.Sa=Y(function(){return new C0(b,f.Fc,f.Hb,f.Ua)}); g.N(this,this.Sa);this.dh=new I1(J1,y2,function(l,m,n,p){return $_(f.yb.get(),l,m,n,p)},this.Sb,this.Fb,this.yb,this.Gb,this.Ha,this.Ua); g.N(this,this.dh);this.Kc=new fA(this.Sb,this.Id,c,this.Ha,a,this.Ua,this.Ga);g.N(this,this.Kc);var h=new r0(b,this.Kc,this.Ga,this.Ua,this.Pe);this.Af=Y(function(){return h}); this.yq=h;this.Ei=new H1(this.Sb,this.Fb,this.Af,this.Pe,this.Ga,this.Ha,this.Sa,this.Je);g.N(this,this.Ei);this.Me=new R_(this.Sb,this.Fb,this.Xb,this.Af);g.N(this,this.Me);this.Mc=new Yz(this.Sb,this.Fb,this.Id,this.Ua,this.Me,c);g.N(this,this.Mc);this.Pg=Y(function(){return new V0(f.Ue,f.yb,f.Gb,f.Ha,f.Je)}); g.N(this,this.Pg);this.yd=Y(function(){return new W0}); g.N(this,this.yd);this.Ve=new O1(a,this.dc);g.N(this,this.Ve);this.Ab=new P1(a);g.N(this,this.Ab);this.Sr=new n2(a);g.N(this,this.Sr);this.nf=new Q1(a,this.Af);g.N(this,this.nf);this.ge=new S1(a,this.Xb,this.Ga,this.Ua);g.N(this,this.ge);this.Ss=new p2(a,this.Ua);g.N(this,this.Ss);this.Vd=new U1(a);g.N(this,this.Vd);this.Yg=new V1(a);g.N(this,this.Yg);this.Rt=new x2(a);g.N(this,this.Rt);this.xd=Y(function(){return new K1}); g.N(this,this.xd);this.eh=Y(function(){return new L1(f.Ga)}); g.N(this,this.eh);this.LN=Y(function(){return new NWa(f.dc,f.Sa,a,f.Fc,f.Hb)}); g.N(this,this.LN);this.Og=Y(function(){return new Y0(f.Mc)}); g.N(this,this.Og);this.Ug=Y(function(){return new f1(f.Sa,f.Vd,f.Hb)}); g.N(this,this.Ug);this.ah=Y(function(){return new m2(a,f.Vd,f.Ua,f.Je,f.Ga,f.Sa,f.Dd,f.Pe,f.Hb,f.Ae,f.qe,f.Xb,f.Od,f.kd,f.lf,f.Kb,f.vf,f.Ha,f.Fc)}); g.N(this,this.ah);this.JR=Y(function(){return new jWa(f.Ga,f.Sa,f.Ha)}); g.N(this,this.JR);this.ul=Y(function(){return new $Wa(f.dc,f.Ga,f.Sa,f.Fc,f.Hb,f.Sr,f.Rt,f.Kb,f.Ha,c)}); g.N(this,this.ul);this.nT=Y(function(){return new PWa(f.dc)}); g.N(this,this.nT);this.uG=new W1(a,this.cn,this.Ya);g.N(this,this.uG);this.Dl=new X1(a,this.He,this.Gb,this.Ua,this.Ya,this.Ha);g.N(this,this.Dl);this.Ke={nt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ei],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.dh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Kc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Me]]),Xn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Pg],["SLOT_TYPE_ABOVE_FEED",this.yd],["SLOT_TYPE_FORECASTING",this.yd],["SLOT_TYPE_IN_PLAYER",this.yd],["SLOT_TYPE_PLAYER_BYTES",this.yd],["SLOT_TYPE_PLAYER_UNDERLAY",this.yd],["SLOT_TYPE_PLAYBACK_TRACKING",this.yd]]),Hj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ve],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Ve],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ab],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ab],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ab], ["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ab],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Ab],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Ab],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Sr],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.nf],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.ge],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.ge],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.ge],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ge],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ge],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.ge],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.ge],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ss],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ss],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED", this.Vd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.nf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Yg],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Rt]]),Uo:new Map([["SLOT_TYPE_ABOVE_FEED",this.xd],["SLOT_TYPE_AD_BREAK_REQUEST",this.xd],["SLOT_TYPE_FORECASTING",this.xd],["SLOT_TYPE_IN_PLAYER",this.xd],["SLOT_TYPE_PLAYER_BYTES",this.eh],["SLOT_TYPE_PLAYER_UNDERLAY",this.xd],["SLOT_TYPE_PLAYBACK_TRACKING",this.xd]]),Do:new Map([["SLOT_TYPE_ABOVE_FEED",this.LN],["SLOT_TYPE_AD_BREAK_REQUEST", this.Og],["SLOT_TYPE_FORECASTING",this.Ug],["SLOT_TYPE_PLAYER_BYTES",this.ah],["SLOT_TYPE_PLAYBACK_TRACKING",this.JR],["SLOT_TYPE_IN_PLAYER",this.ul],["SLOT_TYPE_PLAYER_UNDERLAY",this.nT]])};this.listeners=[this.Fc.get()];this.Qs={Mc:this.Mc,Fo:this.He.get(),rh:this.Ha.get(),Za:this.Kb.get(),Gq:this.Ga.get(),Kc:this.Kc,rl:this.Ya.get(),Eo:this.cn.get(),qk:this.Ve,Mi:this.Fc.get(),Cl:this.Ua.get()}}; cXa=function(a,b,c,d,e,f,h,l,m,n){this.dc=a;this.Ga=b;this.Sa=c;this.C=d;this.Hb=e;this.u=f;this.B=h;this.Kb=l;this.Ha=m;this.j=n}; dXa=function(a,b,c,d,e){g.K.call(this);var f=this;this.Ya=Y(function(){return new gA}); g.N(this,this.Ya);this.yb=Y(function(){return new Z_(f.Ya)}); g.N(this,this.yb);this.Fc=Y(function(){return new S_}); g.N(this,this.Fc);this.Sb=Y(function(){return new O_(a)}); g.N(this,this.Sb);this.Fb=Y(function(){return new l0(f.Ya,f.yb,f.Ha)}); g.N(this,this.Fb);this.Dd=Y(function(){return new q0}); g.N(this,this.Dd);this.lf=Y(function(){return new GI(b.V())}); g.N(this,this.lf);this.dc=Y(function(){return new Z1(b)}); g.N(this,this.dc);this.Kb=Y(function(){return new n_(e)}); g.N(this,this.Kb);this.Od=Y(function(){return new SJ(b)}); g.N(this,this.Od);this.Xb=Y(function(){return new s0(b)}); g.N(this,this.Xb);this.qe=Y(function(){return new b2(b)}); g.N(this,this.qe);this.kd=Y(function(){return new t0(b)}); g.N(this,this.kd);this.Ha=Y(function(){return new u0(b)}); g.N(this,this.Ha);this.Ue=Y(function(){return new Y1(d)}); g.N(this,this.Ue);this.Gb=Y(function(){return new BY(f.Ha)}); g.N(this,this.Gb);this.Id=Y(function(){return new L_(f.Ya,f.Fb,f.yb,f.Ha,f.Gb,null,f.Ei)}); g.N(this,this.Id);this.vf=Y(function(){return new c2(b)}); g.N(this,this.vf);this.He=Y(function(){return new d2}); g.N(this,this.He);this.cn=Y(function(){return new O0}); g.N(this,this.cn);this.Ua=Y(function(){return new J0(b,f.Dd,f.Ha)}); g.N(this,this.Ua);this.kc=new p0(this.Ha,this.Gb,this.Ua);g.N(this,this.kc);this.Pe=Y(function(){return new a2(b,f.Ha,f.Sa)}); this.Ga=Y(function(){return new K0(b,f.Ua,f.Ha)}); g.N(this,this.Ga);this.Hb=Y(function(){return new x0(f.Ga,b)}); g.N(this,this.Hb);this.Sa=Y(function(){return new C0(b,f.Fc,f.Hb,f.Ua)}); g.N(this,this.Sa);this.Ae=Y(function(){return new P0}); g.N(this,this.Ae);this.dh=new I1(J1,y2,function(l,m,n,p){return $_(f.yb.get(),l,m,n,p)},this.Sb,this.Fb,this.yb,this.Gb,this.Ha,this.Ua); g.N(this,this.dh);this.Kc=new fA(this.Sb,this.Id,c,this.Ha,a,this.Ua,this.Ga);g.N(this,this.Kc);var h=new r0(b,this.Kc,this.Ga,this.Ua,this.Pe);this.Af=Y(function(){return h}); this.yq=h;this.Ei=new H1(this.Sb,this.Fb,this.Af,this.Pe,this.Ga,this.Ha,this.Sa);g.N(this,this.Ei);this.Me=new R_(this.Sb,this.Fb,this.Xb,this.Af);g.N(this,this.Me);this.Mc=new Yz(this.Sb,this.Fb,this.Id,this.Ua,this.Me,c);g.N(this,this.Mc);this.Pg=Y(function(){return new V0(f.Ue,f.yb,f.Gb,f.Ha)}); g.N(this,this.Pg);this.yd=Y(function(){return new W0}); g.N(this,this.yd);this.Ve=new O1(a,this.dc);g.N(this,this.Ve);this.Ab=new P1(a);g.N(this,this.Ab);this.Sr=new n2(a);g.N(this,this.Sr);this.nf=new Q1(a,this.Af);g.N(this,this.nf);this.ge=new S1(a,this.Xb,this.Ga,this.Ua);g.N(this,this.ge);this.Vd=new U1(a);g.N(this,this.Vd);this.Yg=new V1(a);g.N(this,this.Yg);this.Rt=new x2(a);g.N(this,this.Rt);this.xd=Y(function(){return new K1}); g.N(this,this.xd);this.eh=Y(function(){return new L1(f.Ga)}); g.N(this,this.eh);this.Og=Y(function(){return new Y0(f.Mc)}); g.N(this,this.Og);this.Ug=Y(function(){return new f1(f.Sa,f.Vd,f.Hb)}); g.N(this,this.Ug);this.ul=Y(function(){return new cXa(f.dc,f.Ga,f.Sa,f.Fc,f.Hb,f.Sr,f.Rt,f.Kb,f.Ha,c)}); g.N(this,this.ul);this.ah=Y(function(){return new G1(a,f.Vd,f.Sa,f.Hb,f.Ae,f.qe,f.Ua,f.Ga,f.Xb,f.Od,f.kd,f.lf,f.Kb,f.vf,f.Ha)}); g.N(this,this.ah);this.uG=new W1(a,this.cn,this.Ya);g.N(this,this.uG);this.Dl=new X1(a,this.He,this.Gb,this.Ua,this.Ya,this.Ha);g.N(this,this.Dl);this.Ke={nt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ei],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.dh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Kc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Me]]),Xn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Pg],["SLOT_TYPE_FORECASTING",this.yd],["SLOT_TYPE_IN_PLAYER",this.yd],["SLOT_TYPE_PLAYER_BYTES",this.yd]]),Hj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ve],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ab],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ab],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY", this.Ab],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ab],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Ab],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Sr],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.nf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ge],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ge],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.ge],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Vd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.nf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED", this.Yg],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Rt]]),Uo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xd],["SLOT_TYPE_FORECASTING",this.xd],["SLOT_TYPE_IN_PLAYER",this.xd],["SLOT_TYPE_PLAYER_BYTES",this.eh]]),Do:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Og],["SLOT_TYPE_FORECASTING",this.Ug],["SLOT_TYPE_IN_PLAYER",this.ul],["SLOT_TYPE_PLAYER_BYTES",this.ah]])};this.listeners=[this.Fc.get()];this.Qs={Mc:this.Mc,Fo:this.He.get(),rh:this.Ha.get(),Za:this.Kb.get(),Gq:this.Ga.get(),Kc:this.Kc, rl:this.Ya.get(),Eo:this.cn.get(),qk:this.Ve,Mi:this.Fc.get(),Cl:this.Ua.get()}}; eXa=function(a,b,c,d,e){g.K.call(this);var f=this;this.Ya=Y(function(){return new gA}); g.N(this,this.Ya);this.yb=Y(function(){return new Z_(f.Ya)}); g.N(this,this.yb);this.Fc=Y(function(){return new S_}); g.N(this,this.Fc);this.Sb=Y(function(){return new O_(a)}); g.N(this,this.Sb);this.Fb=Y(function(){return new l0(f.Ya,f.yb,f.Ha)}); g.N(this,this.Fb);this.Dd=Y(function(){return new q0}); g.N(this,this.Dd);this.lf=Y(function(){return new GI(b.V())}); g.N(this,this.lf);this.dc=Y(function(){return new Z1(b)}); g.N(this,this.dc);this.Kb=Y(function(){return new n_(e)}); g.N(this,this.Kb);this.Od=Y(function(){return new SJ(b)}); g.N(this,this.Od);this.Xb=Y(function(){return new s0(b)}); g.N(this,this.Xb);this.qe=Y(function(){return new b2(b)}); g.N(this,this.qe);this.kd=Y(function(){return new t0(b)}); g.N(this,this.kd);this.Ha=Y(function(){return new u0(b)}); g.N(this,this.Ha);this.Ue=Y(function(){return new Y1(d)}); g.N(this,this.Ue);this.Gb=Y(function(){return new BY(f.Ha)}); g.N(this,this.Gb);this.Id=Y(function(){return new L_(f.Ya,f.Fb,f.yb,f.Ha,f.Gb,null,null)}); g.N(this,this.Id);this.vf=Y(function(){return new c2(b)}); g.N(this,this.vf);this.He=Y(function(){return new d2}); g.N(this,this.He);this.Ua=Y(function(){return new J0(b,f.Dd,f.Ha)}); g.N(this,this.Ua);this.kc=new p0(this.Ha,this.Gb,this.Ua);g.N(this,this.kc);this.Ga=Y(function(){return new K0(b,f.Ua,f.Ha)}); g.N(this,this.Ga);this.Hb=Y(function(){return new x0(f.Ga,b)}); g.N(this,this.Hb);this.Sa=Y(function(){return new C0(b,f.Fc,f.Hb,f.Ua)}); g.N(this,this.Sa);this.Ae=Y(function(){return new P0}); g.N(this,this.Ae);this.dh=new I1(J1,y2,function(l,m,n,p){return $_(f.yb.get(),l,m,n,p)},this.Sb,this.Fb,this.yb,this.Gb,this.Ha,this.Ua); g.N(this,this.dh);this.Kc=new fA(this.Sb,this.Id,c,this.Ha,a,this.Ua,this.Ga);g.N(this,this.Kc);var h=new r0(b,this.Kc,this.Ga,this.Ua);this.Af=Y(function(){return h}); this.yq=h;this.Me=new R_(this.Sb,this.Fb,this.Xb,this.Af);g.N(this,this.Me);this.Mc=new Yz(this.Sb,this.Fb,this.Id,this.Ua,this.Me,c);g.N(this,this.Mc);this.Pg=Y(function(){return new V0(f.Ue,f.yb,f.Gb,f.Ha)}); g.N(this,this.Pg);this.yd=Y(function(){return new W0}); g.N(this,this.yd);this.Ve=new O1(a,this.dc);g.N(this,this.Ve);this.Ab=new P1(a);g.N(this,this.Ab);this.nf=new Q1(a,this.Af);g.N(this,this.nf);this.ge=new S1(a,this.Xb,this.Ga,this.Ua);g.N(this,this.ge);this.Vd=new U1(a);g.N(this,this.Vd);this.Yg=new V1(a);g.N(this,this.Yg);this.xd=Y(function(){return new K1}); g.N(this,this.xd);this.eh=Y(function(){return new L1(f.Ga)}); g.N(this,this.eh);this.Og=Y(function(){return new Y0(f.Mc)}); g.N(this,this.Og);this.Ug=Y(function(){return new f1(f.Sa,f.Vd,f.Hb)}); g.N(this,this.Ug);this.FR=Y(function(){return new o1(f.dc,f.Ga,f.Sa,f.Fc,c)}); g.N(this,this.FR);this.ah=Y(function(){return new G1(a,f.Vd,f.Sa,f.Hb,f.Ae,f.qe,f.Ua,f.Ga,f.Xb,f.Od,f.kd,f.lf,f.Kb,f.vf,f.Ha)}); g.N(this,this.ah);this.Dl=new X1(a,this.He,this.Gb,this.Ua,this.Ya,this.Ha);g.N(this,this.Dl);this.Ke={nt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.dh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Kc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Me]]),Xn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pg],["SLOT_TYPE_FORECASTING",this.yd],["SLOT_TYPE_IN_PLAYER",this.yd],["SLOT_TYPE_PLAYER_BYTES", this.yd]]),Hj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ve],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ab],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ab],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ab],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.nf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ge],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ge],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Vd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.nf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Yg]]),Uo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xd],["SLOT_TYPE_ABOVE_FEED",this.xd],["SLOT_TYPE_FORECASTING",this.xd],["SLOT_TYPE_IN_PLAYER",this.xd],["SLOT_TYPE_PLAYER_BYTES",this.eh]]),Do:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Og],["SLOT_TYPE_FORECASTING",this.Ug],["SLOT_TYPE_IN_PLAYER",this.FR],["SLOT_TYPE_PLAYER_BYTES",this.ah]])};this.listeners=[this.Fc.get()];this.Qs={Mc:this.Mc,Fo:this.He.get(),rh:this.Ha.get(),Za:this.Kb.get(),Gq:this.Ga.get(),Kc:this.Kc,rl:this.Ya.get(),Eo:null,qk:this.Ve,Mi:this.Fc.get(),Cl:this.Ua.get()}}; fXa=function(a,b,c,d,e){g.K.call(this);var f=this;this.Ya=Y(function(){return new gA}); g.N(this,this.Ya);this.yb=Y(function(){return new Z_(f.Ya)}); g.N(this,this.yb);this.Fc=Y(function(){return new S_}); g.N(this,this.Fc);this.Sb=Y(function(){return new O_(a)}); g.N(this,this.Sb);this.Fb=Y(function(){return new l0(f.Ya,f.yb,f.Ha)}); g.N(this,this.Fb);this.Dd=Y(function(){return new q0}); g.N(this,this.Dd);this.lf=Y(function(){return new GI(b.V())}); g.N(this,this.lf);this.dc=Y(function(){return new Z1(b)}); g.N(this,this.dc);this.Kb=Y(function(){return new n_(e)}); g.N(this,this.Kb);this.Od=Y(function(){return new SJ(b)}); g.N(this,this.Od);this.Xb=Y(function(){return new s0(b)}); g.N(this,this.Xb);this.qe=Y(function(){return new b2(b)}); g.N(this,this.qe);this.kd=Y(function(){return new t0(b)}); g.N(this,this.kd);this.Ha=Y(function(){return new u0(b)}); g.N(this,this.Ha);this.Ue=Y(function(){return new Y1(d)}); g.N(this,this.Ue);this.Gb=Y(function(){return new BY(f.Ha)}); g.N(this,this.Gb);this.Id=Y(function(){return new L_(f.Ya,f.Fb,f.yb,f.Ha,f.Gb,null,null)}); g.N(this,this.Id);this.vf=Y(function(){return new c2(b)}); g.N(this,this.vf);this.He=Y(function(){return new d2}); g.N(this,this.He);this.Ua=Y(function(){return new J0(b,f.Dd,f.Ha)}); g.N(this,this.Ua);this.kc=new p0(this.Ha,this.Gb,this.Ua);g.N(this,this.kc);this.Ga=Y(function(){return new K0(b,f.Ua,f.Ha)}); g.N(this,this.Ga);this.Hb=Y(function(){return new x0(f.Ga,b)}); g.N(this,this.Hb);this.Sa=Y(function(){return new C0(b,f.Fc,f.Hb,f.Ua)}); g.N(this,this.Sa);this.Ae=Y(function(){return new P0}); g.N(this,this.Ae);this.dh=new I1(J1,y2,function(l,m,n,p){return $_(f.yb.get(),l,m,n,p)},this.Sb,this.Fb,this.yb,this.Gb,this.Ha,this.Ua); g.N(this,this.dh);this.Kc=new fA(this.Sb,this.Id,c,this.Ha,a,this.Ua,this.Ga);g.N(this,this.Kc);var h=new r0(b,this.Kc,this.Ga,this.Ua);this.Af=Y(function(){return h}); this.yq=h;this.Me=new R_(this.Sb,this.Fb,this.Xb,this.Af);g.N(this,this.Me);this.Mc=new Yz(this.Sb,this.Fb,this.Id,this.Ua,this.Me,c);g.N(this,this.Mc);this.Pg=Y(function(){return new V0(f.Ue,f.yb,f.Gb,f.Ha)}); g.N(this,this.Pg);this.yd=Y(function(){return new W0}); g.N(this,this.yd);this.Ve=new O1(a,this.dc);g.N(this,this.Ve);this.Ab=new P1(a);g.N(this,this.Ab);this.nf=new Q1(a,this.Af);g.N(this,this.nf);this.ge=new S1(a,this.Xb,this.Ga,this.Ua);g.N(this,this.ge);this.Vd=new U1(a);g.N(this,this.Vd);this.Yg=new V1(a);g.N(this,this.Yg);this.xd=Y(function(){return new K1}); g.N(this,this.xd);this.eh=Y(function(){return new L1(f.Ga)}); g.N(this,this.eh);this.Og=Y(function(){return new Y0(f.Mc)}); g.N(this,this.Og);this.Ug=Y(function(){return new f1(f.Sa,f.Vd,f.Hb)}); g.N(this,this.Ug);this.ul=Y(function(){return new o1(f.dc,f.Ga,f.Sa,f.Fc,c)}); g.N(this,this.ul);this.ah=Y(function(){return new G1(a,f.Vd,f.Sa,f.Hb,f.Ae,f.qe,f.Ua,f.Ga,f.Xb,f.Od,f.kd,f.lf,f.Kb,f.vf,f.Ha)}); g.N(this,this.ah);this.Dl=new X1(a,this.He,this.Gb,this.Ua,this.Ya,this.Ha);g.N(this,this.Dl);this.Ke={nt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.dh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Kc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Me]]),Xn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pg],["SLOT_TYPE_FORECASTING",this.yd],["SLOT_TYPE_IN_PLAYER",this.yd],["SLOT_TYPE_PLAYER_BYTES", this.yd]]),Hj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ve],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ab],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ab],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ab],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.nf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ge],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Vd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.nf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Yg]]),Uo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xd],["SLOT_TYPE_FORECASTING",this.xd],["SLOT_TYPE_IN_PLAYER",this.xd],["SLOT_TYPE_PLAYER_BYTES",this.eh]]),Do:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Og],["SLOT_TYPE_FORECASTING",this.Ug],["SLOT_TYPE_IN_PLAYER",this.ul],["SLOT_TYPE_PLAYER_BYTES", this.ah]])};this.listeners=[this.Fc.get()];this.Qs={Mc:this.Mc,Fo:this.He.get(),rh:this.Ha.get(),Za:this.Kb.get(),Gq:this.Ga.get(),Kc:this.Kc,rl:this.Ya.get(),Eo:null,qk:this.Ve,Mi:this.Fc.get(),Cl:this.Ua.get()}}; z2=function(a,b,c,d,e,f,h,l,m){m1.call(this,a,b,c,d,e,f,h,m);this.Wk=l}; gXa=function(){var a=GVa();a.pe.push("metadata_type_ad_info_ad_metadata");return a}; hXa=function(a,b,c,d,e,f){this.dc=a;this.Ga=b;this.Sa=c;this.u=d;this.Wk=e;this.j=f}; iXa=function(a,b,c,d,e){g.K.call(this);var f=this;this.Ya=Y(function(){return new gA}); g.N(this,this.Ya);this.yb=Y(function(){return new Z_(f.Ya)}); g.N(this,this.yb);this.Fc=Y(function(){return new S_}); g.N(this,this.Fc);this.Sb=Y(function(){return new O_(a)}); g.N(this,this.Sb);this.Fb=Y(function(){return new l0(f.Ya,f.yb,f.Ha)}); g.N(this,this.Fb);this.Dd=Y(function(){return new q0}); g.N(this,this.Dd);this.Wk=Y(function(){return new hWa(b)}); g.N(this,this.Wk);this.lf=Y(function(){return new GI(b.V())}); g.N(this,this.lf);this.dc=Y(function(){return new Z1(b)}); g.N(this,this.dc);this.Kb=Y(function(){return new n_(e)}); g.N(this,this.Kb);this.Od=Y(function(){return new SJ(b)}); g.N(this,this.Od);this.Xb=Y(function(){return new s0(b)}); g.N(this,this.Xb);this.qe=Y(function(){return new b2(b)}); g.N(this,this.qe);this.kd=Y(function(){return new t0(b)}); g.N(this,this.kd);this.Ha=Y(function(){return new u0(b)}); g.N(this,this.Ha);this.Ue=Y(function(){return new Y1(d)}); g.N(this,this.Ue);this.Gb=Y(function(){return new BY(f.Ha)}); g.N(this,this.Gb);this.Id=Y(function(){return new L_(f.Ya,f.Fb,f.yb,f.Ha,f.Gb,null,null)}); g.N(this,this.Id);this.vf=Y(function(){return new c2(b)}); g.N(this,this.vf);this.He=Y(function(){return new d2}); g.N(this,this.He);this.Ua=Y(function(){return new J0(b,f.Dd,f.Ha)}); g.N(this,this.Ua);this.kc=new p0(this.Ha,this.Gb,this.Ua);g.N(this,this.kc);this.Ga=Y(function(){return new K0(b,f.Ua,f.Ha)}); g.N(this,this.Ga);this.Hb=Y(function(){return new x0(f.Ga,b)}); g.N(this,this.Hb);this.Sa=Y(function(){return new C0(b,f.Fc,f.Hb,f.Ua)}); g.N(this,this.Sa);this.Ae=Y(function(){return new P0}); g.N(this,this.Ae);this.dh=new I1(VVa,y2,function(l,m,n,p){return RUa(f.yb.get(),l,m,n,p)},this.Sb,this.Fb,this.yb,this.Gb,this.Ha,this.Ua); g.N(this,this.dh);this.Kc=new fA(this.Sb,this.Id,c,this.Ha,a,this.Ua,this.Ga);g.N(this,this.Kc);var h=new r0(b,this.Kc,this.Ga,this.Ua);this.Af=Y(function(){return h}); this.yq=h;this.Me=new R_(this.Sb,this.Fb,this.Xb,this.Af);g.N(this,this.Me);this.Mc=new Yz(this.Sb,this.Fb,this.Id,this.Ua,this.Me,c);g.N(this,this.Mc);this.Pg=Y(function(){return new V0(f.Ue,f.yb,f.Gb,f.Ha)}); g.N(this,this.Pg);this.yd=Y(function(){return new W0}); g.N(this,this.yd);this.Ve=new O1(a,this.dc);g.N(this,this.Ve);this.Ab=new P1(a);g.N(this,this.Ab);this.nf=new Q1(a,this.Af);g.N(this,this.nf);this.ge=new S1(a,this.Xb,this.Ga,this.Ua);g.N(this,this.ge);this.Vd=new U1(a);g.N(this,this.Vd);this.Yg=new V1(a);g.N(this,this.Yg);this.xd=Y(function(){return new K1}); g.N(this,this.xd);this.eh=Y(function(){return new L1(f.Ga)}); g.N(this,this.eh);this.Og=Y(function(){return new Y0(f.Mc)}); g.N(this,this.Og);this.Ug=Y(function(){return new f1(f.Sa,f.Vd,f.Hb)}); g.N(this,this.Ug);this.ah=Y(function(){return new G1(a,f.Vd,f.Sa,f.Hb,f.Ae,f.qe,f.Ua,f.Ga,f.Xb,f.Od,f.kd,f.lf,f.Kb,f.vf,f.Ha)}); g.N(this,this.ah);this.GT=Y(function(){return new hXa(f.dc,f.Ga,f.Sa,f.Fc,f.Wk,c)}); g.N(this,this.GT);this.Dl=new X1(a,this.He,this.Gb,this.Ua,this.Ya,this.Ha);g.N(this,this.Dl);this.Ke={nt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.dh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Kc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Me]]),Xn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pg],["SLOT_TYPE_FORECASTING",this.yd],["SLOT_TYPE_IN_PLAYER",this.yd],["SLOT_TYPE_PLAYER_BYTES", this.yd]]),Hj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ve],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ab],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ab],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ab],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.nf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ge],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ge],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Vd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.nf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Yg]]),Uo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xd],["SLOT_TYPE_FORECASTING",this.xd],["SLOT_TYPE_IN_PLAYER",this.xd],["SLOT_TYPE_PLAYER_BYTES",this.eh]]),Do:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Og],["SLOT_TYPE_FORECASTING", this.Ug],["SLOT_TYPE_IN_PLAYER",this.GT],["SLOT_TYPE_PLAYER_BYTES",this.ah]])};this.listeners=[this.Fc.get()];this.Qs={Mc:this.Mc,Fo:this.He.get(),rh:this.Ha.get(),Za:this.Kb.get(),Gq:this.Ga.get(),Kc:this.Kc,rl:this.Ya.get(),Eo:null,qk:this.Ve,Mi:this.Fc.get(),Cl:this.Ua.get()}}; jXa=function(a,b,c,d,e,f){this.dc=a;this.Ga=b;this.Sa=c;this.u=d;this.Wk=e;this.j=f}; kXa=function(a,b,c,d,e){g.K.call(this);var f=this;this.Ya=Y(function(){return new gA}); g.N(this,this.Ya);this.yb=Y(function(){return new Z_(f.Ya)}); g.N(this,this.yb);this.Fc=Y(function(){return new S_}); g.N(this,this.Fc);this.Sb=Y(function(){return new O_(a)}); g.N(this,this.Sb);this.Fb=Y(function(){return new l0(f.Ya,f.yb,f.Ha)}); g.N(this,this.Fb);this.Dd=Y(function(){return new q0}); g.N(this,this.Dd);this.Wk=Y(function(){return new hWa(b)}); g.N(this,this.Wk);this.lf=Y(function(){return new GI(b.V())}); g.N(this,this.lf);this.dc=Y(function(){return new Z1(b)}); g.N(this,this.dc);this.Kb=Y(function(){return new n_(e)}); g.N(this,this.Kb);this.Od=Y(function(){return new SJ(b)}); g.N(this,this.Od);this.Xb=Y(function(){return new s0(b)}); g.N(this,this.Xb);this.qe=Y(function(){return new b2(b)}); g.N(this,this.qe);this.kd=Y(function(){return new t0(b)}); g.N(this,this.kd);this.Ha=Y(function(){return new u0(b)}); g.N(this,this.Ha);this.Ue=Y(function(){return new Y1(d)}); g.N(this,this.Ue);this.Gb=Y(function(){return new BY(f.Ha)}); g.N(this,this.Gb);this.Id=Y(function(){return new L_(f.Ya,f.Fb,f.yb,f.Ha,f.Gb,null,f.Ei,3)}); g.N(this,this.Id);this.vf=Y(function(){return new c2(b)}); g.N(this,this.vf);this.He=Y(function(){return new d2}); g.N(this,this.He);this.Ua=Y(function(){return new J0(b,f.Dd,f.Ha)}); g.N(this,this.Ua);this.kc=new p0(this.Ha,this.Gb,this.Ua);g.N(this,this.kc);this.Pe=Y(function(){return new a2(b,f.Ha,f.Sa)}); g.N(this,this.Pe);this.Je=Y(function(){return new DWa(b)}); g.N(this,this.Je);this.Ga=Y(function(){return new K0(b,f.Ua,f.Ha)}); g.N(this,this.Ga);this.Ae=Y(function(){return new P0}); this.Hb=Y(function(){return new x0(f.Ga,b)}); g.N(this,this.Hb);this.Sa=Y(function(){return new C0(b,f.Fc,f.Hb,f.Ua)}); g.N(this,this.Sa);this.Kc=new fA(this.Sb,this.Id,c,this.Ha,a,this.Ua,this.Ga);g.N(this,this.Kc);var h=new r0(b,this.Kc,this.Ga,this.Ua,this.Pe);this.Af=Y(function(){return h}); this.yq=h;this.dh=new I1(WVa,y2,function(l,m,n,p){return RUa(f.yb.get(),l,m,n,p)},this.Sb,this.Fb,this.yb,this.Gb,this.Ha,this.Ua); g.N(this,this.dh);this.Ei=new H1(this.Sb,this.Fb,this.Af,this.Pe,this.Ga,this.Ha,this.Sa,this.Je);g.N(this,this.Ei);this.Me=new R_(this.Sb,this.Fb,this.Xb,this.Af);g.N(this,this.Me);this.Mc=new Yz(this.Sb,this.Fb,this.Id,this.Ua,this.Me,c);g.N(this,this.Mc);this.Pg=Y(function(){return new V0(f.Ue,f.yb,f.Gb,f.Ha,f.Je)}); g.N(this,this.Pg);this.yd=Y(function(){return new W0}); g.N(this,this.yd);this.Ve=new O1(a,this.dc);g.N(this,this.Ve);this.Ab=new P1(a);g.N(this,this.Ab);this.nf=new Q1(a,this.Af);g.N(this,this.nf);this.ge=new S1(a,this.Xb,this.Ga,this.Ua);g.N(this,this.ge);this.Ss=new p2(a,this.Ua);g.N(this,this.Ss);this.Vd=new U1(a);g.N(this,this.Vd);this.Yg=new V1(a);g.N(this,this.Yg);this.xd=Y(function(){return new K1}); g.N(this,this.xd);this.eh=Y(function(){return new L1(f.Ga)}); g.N(this,this.eh);this.Og=Y(function(){return new Y0(f.Mc)}); g.N(this,this.Og);this.Ug=Y(function(){return new f1(f.Sa,f.Vd,f.Hb)}); g.N(this,this.Ug);this.ah=Y(function(){return new m2(a,f.Vd,f.Ua,f.Je,f.Ga,f.Sa,f.Dd,f.Pe,f.Hb,f.Ae,f.qe,f.Xb,f.Od,f.kd,f.lf,f.Kb,f.vf,f.Ha,f.Fc)}); g.N(this,this.ah);this.ul=Y(function(){return new jXa(f.dc,f.Ga,f.Sa,f.Fc,f.Wk,c)}); g.N(this,this.ul);this.Dl=new X1(a,this.He,this.Gb,this.Ua,this.Ya,this.Ha);g.N(this,this.Dl);this.Ke={nt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ei],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.dh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Kc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Me]]),Xn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pg],["SLOT_TYPE_FORECASTING",this.yd], ["SLOT_TYPE_IN_PLAYER",this.yd],["SLOT_TYPE_PLAYER_BYTES",this.yd]]),Hj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ve],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ab],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ab],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ab],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ab],["TRIGGER_TYPE_SLOT_ID_SCHEDULED", this.Ab],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.nf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ge],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ge],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ss],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ss],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Vd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.nf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Yg]]),Uo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xd],["SLOT_TYPE_FORECASTING", this.xd],["SLOT_TYPE_IN_PLAYER",this.xd],["SLOT_TYPE_PLAYER_BYTES",this.eh]]),Do:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Og],["SLOT_TYPE_FORECASTING",this.Ug],["SLOT_TYPE_PLAYER_BYTES",this.ah],["SLOT_TYPE_IN_PLAYER",this.ul]])};this.listeners=[this.Fc.get()];this.Qs={Mc:this.Mc,Fo:this.He.get(),rh:this.Ha.get(),Za:this.Kb.get(),Gq:this.Ga.get(),Kc:this.Kc,rl:this.Ya.get(),Eo:null,qk:this.Ve,Mi:this.Fc.get(),Cl:this.Ua.get()}}; mXa=function(a,b,c,d){g.K.call(this);var e=this;this.j=lXa(function(){return e.u},a,b,c,d); g.N(this,this.j);this.u=(new l_(this.j)).B();g.N(this,this.u)}; A2=function(a){return a.j.Qs}; lXa=function(a,b,c,d,e){try{var f=b.V();if(g.kG(f))var h=new bXa(a,b,c,d,e);else if(g.nG(f))h=new dXa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===$F(f))h=new fXa(a,b,c,d,e);else if(cG(f))h=new eXa(a,b,c,d,e);else if(g.UF(f))h=new iXa(a,b,c,d,e);else if(g.TF(f))h=new kXa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.V(),eA("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.deviceParams.cplatform,interface:h.deviceParams.c, O5a:h.deviceParams.cver,N5a:h.deviceParams.ctheme,M5a:h.deviceParams.cplayer,k6a:h.playerStyle}),new sVa(a,b,c,d,e)}}; nXa=function(a){yL.call(this,a)}; oXa=function(a,b,c,d,e,f){GL.call(this,a,b,{F:"div",N:"ytp-ad-timed-pie-countdown-container",W:[{F:"svg",N:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},W:[{F:"circle",N:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{F:"circle",N:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{F:"circle",N:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e,f);this.C=this.Ca("ytp-ad-timed-pie-countdown-inner");this.B=Math.ceil(10* Math.PI);this.hide()}; pXa=function(a,b,c,d,e,f,h){ZK.call(this,a,b,{F:"div",N:"ytp-ad-action-interstitial",X:{tabindex:"0"},W:[{F:"div",N:"ytp-ad-action-interstitial-background-container"},{F:"div",N:"ytp-ad-action-interstitial-slot",W:[{F:"div",N:"ytp-ad-action-interstitial-card",W:[{F:"div",N:"ytp-ad-action-interstitial-image-container"},{F:"div",N:"ytp-ad-action-interstitial-headline-container"},{F:"div",N:"ytp-ad-action-interstitial-description-container"},{F:"div",N:"ytp-ad-action-interstitial-action-button-container"}]}]}]}, "ad-action-interstitial",c,d,e);this.PK=f;this.zE=h;this.navigationEndpoint=this.u=this.skipButton=this.B=this.actionButton=null;this.ea=this.Ca("ytp-ad-action-interstitial-image-container");this.D=new uL(this.api,this.gb,this.layoutId,this.j,this.Za,"ytp-ad-action-interstitial-image");g.N(this,this.D);this.D.Da(this.ea);this.La=this.Ca("ytp-ad-action-interstitial-headline-container");this.S=new EL(this.api,this.gb,this.layoutId,this.j,this.Za,"ytp-ad-action-interstitial-headline");g.N(this,this.S); this.S.Da(this.La);this.Ia=this.Ca("ytp-ad-action-interstitial-description-container");this.I=new EL(this.api,this.gb,this.layoutId,this.j,this.Za,"ytp-ad-action-interstitial-description");g.N(this,this.I);this.I.Da(this.Ia);this.Ta=this.Ca("ytp-ad-action-interstitial-background-container");this.Ba=new uL(this.api,this.gb,this.layoutId,this.j,this.Za,"ytp-ad-action-interstitial-background",!0);g.N(this,this.Ba);this.Ba.Da(this.Ta);this.Qa=this.Ca("ytp-ad-action-interstitial-action-button-container"); this.C=new $y;g.N(this,this.C);this.hide()}; qXa=function(a){var b=g.dh("html5-video-player");b&&g.ko(b,"ytp-ad-display-override",a)}; uXa=function(a,b,c,d,e){ZK.call(this,a,b,{F:"div",N:"ytp-ad-overlay-slot",W:[{F:"div",N:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d,e);this.S=[];this.jb=this.Ia=this.D=this.Qa=this.Ba=null;this.Ta=!1;this.I=null;this.ea=0;b=this.Ca("ytp-ad-overlay-container");this.La=new PL(b,45E3,6E3,.3,.4);g.N(this,this.La);this.C=rXa(this);g.N(this,this.C);this.C.Da(b);this.B=sXa(this);g.N(this,this.B);this.B.Da(b);this.u=tXa(this);g.N(this,this.u);this.u.Da(b);a.K("web_rounded_containers")&&g.go(b,"ytp-rounded-overlay-ad"); this.hide()}; rXa=function(a){var b=new g.YK({F:"div",N:"ytp-ad-text-overlay",W:[{F:"div",N:"ytp-ad-overlay-ad-info-button-container"},{F:"div",N:"ytp-ad-overlay-close-container",W:[{F:"button",N:"ytp-ad-overlay-close-button",W:[nL(vXa)]}]},{F:"div",N:"ytp-ad-overlay-title",qa:"{{title}}"},{F:"div",N:"ytp-ad-overlay-desc",qa:"{{description}}"},{F:"div",Fa:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],qa:"{{displayUrl}}"}]});a.T(b.Ca("ytp-ad-overlay-title"),"click",function(c){B2(a,b.element,c)}); a.T(b.Ca("ytp-ad-overlay-link"),"click",function(c){B2(a,b.element,c)}); a.T(b.Ca("ytp-ad-overlay-close-container"),"click",a.vk);b.hide();return b}; sXa=function(a){var b=new g.YK({F:"div",Fa:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],W:[{F:"div",N:"ytp-ad-overlay-ad-info-button-container"},{F:"div",N:"ytp-ad-overlay-close-container",W:[{F:"button",N:"ytp-ad-overlay-close-button",W:[nL(vXa)]}]},{F:"div",N:"ytp-ad-overlay-text-image",W:[{F:"img",X:{src:"{{imageUrl}}"}}]},{F:"div",N:"ytp-ad-overlay-title",qa:"{{title}}"},{F:"div",N:"ytp-ad-overlay-desc",qa:"{{description}}"},{F:"div",Fa:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], qa:"{{displayUrl}}"}]});a.T(b.Ca("ytp-ad-overlay-title"),"click",function(c){B2(a,b.element,c)}); a.T(b.Ca("ytp-ad-overlay-link"),"click",function(c){B2(a,b.element,c)}); a.T(b.Ca("ytp-ad-overlay-close-container"),"click",a.vk);a.T(b.Ca("ytp-ad-overlay-text-image"),"click",a.v3);b.hide();return b}; tXa=function(a){var b=new g.YK({F:"div",N:"ytp-ad-image-overlay",W:[{F:"div",N:"ytp-ad-overlay-ad-info-button-container"},{F:"div",N:"ytp-ad-overlay-close-container",W:[{F:"button",N:"ytp-ad-overlay-close-button",W:[nL(vXa)]}]},{F:"div",N:"ytp-ad-overlay-image",W:[{F:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Ca("ytp-ad-overlay-image"),"click",function(c){B2(a,b.element,c)}); a.T(b.Ca("ytp-ad-overlay-close-container"),"click",a.vk);b.hide();return b}; xXa=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.qz(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.dh("video-ads ytp-ad-module")||null,null==b)g.qz(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ia=new g.YK({F:"div",N:"ytp-ad-overlay-ad-info-dialog-container"}),g.N(a,a.Ia),a.Ia.Da(b),b=new DL(a.api,a.gb,a.layoutId,a.j,a.Za,a.Ia.element,!1),g.N(a,b),b.init(EI("ad-info-hover-text-button"), c,a.macros),a.I){b.Da(a.I,0);b.subscribe("f",a.D0,a);b.subscribe("e",a.IJ,a);a.T(a.I,"click",a.E0);var d=g.dh("ytp-ad-button",b.element);a.T(d,"click",function(){var e,f;if(g.$u(null==(e=c.button)?void 0:null==(f=e.buttonRenderer)?void 0:f.serviceEndpoint,wXa))a.Ta=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}); a.jb=b}else g.qz(Error("Ad info button container within overlay ad was not present."))}else g.rz(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; zXa=function(a,b){if(yXa(a,C2)||a.api.Cf())return!1;var c=$K(b.title),d=$K(b.description);if(g.db(c)||g.db(d))return!1;a.Sg(a.C.element,b.trackingParams||null);a.C.Oa("title",$K(b.title));a.C.Oa("description",$K(b.description));a.C.Oa("displayUrl",$K(b.displayUrl));b.navigationEndpoint&&g.fc(a.S,b.navigationEndpoint);a.C.show();a.La.start();a.Wa(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.ea++}); return!0}; AXa=function(a,b){if(yXa(a,C2)||a.api.Cf())return!1;var c=$K(b.title),d=$K(b.description);if(g.db(c)||g.db(d))return!1;a.Sg(a.B.element,b.trackingParams||null);a.B.Oa("title",$K(b.title));a.B.Oa("description",$K(b.description));a.B.Oa("displayUrl",$K(b.displayUrl));a.B.Oa("imageUrl",XEa(b.image));b.navigationEndpoint&&g.fc(a.S,b.navigationEndpoint);a.Qa=b.imageNavigationEndpoint||null;a.B.show();a.La.start();a.Wa(a.B.element,!0);a.T(a.B.element,"mouseover",function(){a.ea++}); return!0}; BXa=function(a,b){if(a.api.Cf())return!1;var c=YEa(b.image),d=c;c.widthdocument.documentMode)c=ug;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.ih("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Cka(d.style)}b=gda(c,fda({"background-image":'url("'+b+'")'}));a.style.cssText=tg(b)}}; RXa=function(a){var b=g.dh("html5-video-player");b&&g.ko(b,"ytp-ad-display-override",a)}; K2=function(a,b,c,d){yL.call(this,a);this.api=a;this.Za=c;this.u={};this.I=b;a=new g.W({F:"div",Fa:["video-ads","ytp-ad-module"]});g.N(this,a);IF&&g.go(a.element,"ytp-ads-tiny-mode");this.D=new SK(a.element);g.N(this,this.D);g.AN(this.api,a.element,4);hVa(d)&&(d=new g.W({F:"div",Fa:["ytp-ad-underlay"]}),g.N(this,d),this.B=new SK(d.element),g.N(this,this.B),g.AN(this.api,d.element,0));g.N(this,qFa())}; SXa=function(a,b){a=g.Ff(a.u,b.id,null);null==a&&g.rz(Error("Component not found for element id: "+b.id));return a||null}; TXa=function(a){g.dO.call(this,a);var b=this;this.u=this.gb=null;this.created=!1;this.Dr=new yK(this.player);this.B=function(){function d(){return b.gb} if(null!=b.u)return b.u;var e=xEa({Ur:a.getVideoData(1)});e=new fTa({EX:d,Hr:e.pZ(),mY:d,f0:d,qk:A2(b.j).qk,zk:e.UH(),Cl:A2(b.j).Cl,G:b.player,rh:A2(b.j).rh,Sa:b.j.j.Sa,Mi:A2(b.j).Mi,kd:b.j.j.kd});b.u=e.xW;return b.u}; this.j=new mXa(this.player,this,this.Dr,this.B);g.N(this,this.j);var c=a.V();!aG(c)||g.TF(c)||cG(c)||(g.N(this,new K2(a,function(){return b.gb},A2(this.j).Za,A2(this.j).rh)),g.N(this,new nXa(a)))}; UXa=function(a){a.created!==a.loaded&&eA("Created and loaded are out of sync")}; VXa=function(a,b){b===a.Zu&&(a.Zu=void 0)}; WXa=function(a){a.gb?A2(a.j).Kc.mI()||a.gb.mI()||A2(a.j).Gq.hs():eA("AdService is null when calling maybeUnlockPrerollIfReady")}; XXa=function(a){a=g.t(A2(a.j).Mi.Dj.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&"core"===b.eb)return!0;return!1}; YXa=function(a){a=g.t(A2(a.j).Mi.Dj.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1}; Oua=function(a,b,c,d){c=void 0===c?"":c;d=void 0===d?"":d;var e=A2(a.j).rh,f=a.player.getVideoData(1),h=f&&f.getPlayerResponse()||{};h=h&&h.playerConfig&&h.playerConfig.daiConfig&&h.playerConfig.daiConfig.enableDai||!1;f=f&&f.uf()||!1;e=ZXa(b,e,h,f,A2(a.j).rl);Rua(A2(a.j).Mc,c,e.PD,b,d);a.gb&&0>>0)+"_",e=0;return b}); ea("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;cb?-c:c}}); ea("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); ea("Array.prototype.entries",function(a){return a?a:function(){return Aa(this,function(b,c){return[b,c]})}}); ea("Array.prototype.keys",function(a){return a?a:function(){return Aa(this,function(b){return b})}}); ea("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}}); ea("Object.setPrototypeOf",function(a){return a||ia}); ea("Set",function(a){function b(c){this.j=new Map;if(c){c=g.t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.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.t([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(h){return!1}}())return a; b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this}; b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c}; b.prototype.clear=function(){this.j.clear();this.size=0}; b.prototype.has=function(c){return this.j.has(c)}; b.prototype.entries=function(){return this.j.entries()}; b.prototype.values=function(){return this.j.values()}; b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})}; return b}); ea("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 h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h=e}}); ea("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ca(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h=f}}); ea("String.prototype.repeat",function(a){return a?a:function(b){var c=Ca(this,null,"repeat");if(0>b||1342177279>>=1)c+=c;return d}}); ea("Array.prototype.values",function(a){return a?a:function(){return Aa(this,function(b,c){return c})}}); ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}}); ea("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));cc&&(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);cc?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(cd;)--e in this?this[--c]=this[e]:delete this[--c];return this}}); ea("Int8Array.prototype.copyWithin",Ea);ea("Uint8Array.prototype.copyWithin",Ea);ea("Uint8ClampedArray.prototype.copyWithin",Ea);ea("Int16Array.prototype.copyWithin",Ea);ea("Uint16Array.prototype.copyWithin",Ea);ea("Int32Array.prototype.copyWithin",Ea);ea("Uint32Array.prototype.copyWithin",Ea);ea("Float32Array.prototype.copyWithin",Ea);ea("Float64Array.prototype.copyWithin",Ea);ea("Number.parseInt",function(a){return a||parseInt}); Di=Di||{};g.C=this||self;Oa="closure_uid_"+(1E9*Math.random()>>>0);naa=0;g.Wa(Ya,Error);Ya.prototype.name="CustomError";var Ada;g.Wa(Za,Ya);Za.prototype.name="AssertionError";var ve=void 0,ue,Lba="undefined"!==typeof TextDecoder,taa,saa="undefined"!==typeof TextEncoder;var nb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},yaa=/&/g,zaa=//g,Baa=/"/g,Caa=/'/g,Daa=/\x00/g,xaa=/[\x00&<>"']/;var iYa=g.Ga("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var ub;if(null!=iYa&&iYa){var jYa=g.C.navigator;ub=jYa?jYa.userAgentData||null:null}else ub=null;var Maa,Qk,Ql;Maa=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;cc&&(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.rc=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;fparseFloat(pYa)){oYa=String(rYa);break a}}oYa=pYa}var vc=oYa,Xaa={},sYa;if(g.C.document&&g.Bc){var tYa=Waa();sYa=tYa?tYa:parseInt(vc,10)||void 0}else sYa=void 0;var Yaa=sYa;var SF,wI;g.qB=Cb();SF=Hb()||wb("iPod");wI=wb("iPad");g.KF=Faa();g.aE=Db();g.Yv=Eb()&&!Ib();var $aa={},Dc=null;var Ic="undefined"!==typeof Uint8Array,cba,Lc={};var dba;Pc.prototype.isEmpty=function(){return null==this.td};var Wc="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;var ld={},Yd,sd=Object.freeze(ad([])),uYa="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;g.k=Xd.prototype;g.k.toArray=function(){return this.toJSON()}; g.k.toJSON=function(){var a=this.xe;return Yd?a:md(a,oba,pba)}; g.k.clone=function(){var a=md(this.xe,qba,hba);cd(a);Ud=a;a=new this.constructor(a);Ud=null;yba(a,this);return a}; g.k.isMutable=function(){return!ed(this)}; g.k.fq=function(){return ed(this)}; g.k.sD=ld;g.k.toString=function(){return this.xe.toString()}; var Ud;var Gba,Dba;Gba="function"===typeof Uint8Array.prototype.slice;g.ce=0;g.de=0;Dba="function"===typeof BigInt;g.k=g.ee.prototype;g.k.init=function(a,b,c,d){d=void 0===d?{}:d;this.HB=void 0===d.HB?!1:d.HB;a&&(a=be(a),this.u=a.buffer,this.D=a.fq,this.C=b||0,this.B=void 0!==c?this.C+c:this.u.length,this.j=this.C)}; g.k.clear=function(){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.HB=!1}; g.k.reset=function(){this.j=this.C}; g.k.advance=function(a){fe(this,this.j+a)}; g.k.oB=aa(0);var Iba=[];re.prototype.reset=function(){this.j.reset();this.B=this.j.j;this.u=this.C=-1}; re.prototype.advance=function(a){this.j.advance(a)}; var hU=[];var Oba;xe.prototype.length=function(){return this.j.length}; xe.prototype.end=function(){var a=this.j;this.j=[];return a};g.v(De,Xd);De.prototype.HE=function(){return this}; if(uYa){var vYa={};Object.defineProperties(De,(vYa[Symbol.hasInstance]=jba(function(){throw Error(void 0);}),vYa))};var Ee,Ie,He,Ge,wYa,xYa,yYa,P2,zYa,Q2,AYa;Ee=Symbol();Ie=Symbol();He=Symbol();Ge=Symbol();wYa=g.Qe(function(a,b,c){if(1!==a.u)return!1;a=g.le(a.j);Cd(b,c,a,0);return!0},g.Re); xYa=g.Qe(function(a,b,c){if(0!==a.u)return!1;a=g.ie(a.j);Cd(b,c,a,0);return!0},g.Se); yYa=g.Qe(function(a,b,c){if(0!==a.u)return!1;a=g.je(a.j);Cd(b,c,a,0);return!0},g.Te); g.M2=g.Qe(function(a,b,c){if(2!==a.u)return!1;g.E(b,c,g.we(a));return!0},g.pca); g.N2=g.Qe(function(a,b,c,d,e){if(2!==a.u)return!1;g.te(a,Pd(b,c,d),e);return!0},function(a,b,c,d,e){b=Id(b,d,c); if(null!=b)for(d=0;d>>0);return!0},function(a,b,c){b=g.qd(b,c); null!=b&&null!=b&&(g.Be(a,c,0),ye(a.j,b))}); AYa=g.Qe(function(a,b,c){if(0!==a.u)return!1;g.E(b,c,g.je(a.j));return!0},function(a,b,c){b=g.qd(b,c); null!=b&&(b=parseInt(b,10),g.Be(a,c,0),Rba(a.j,b))});g.v(g.I,De);g.I.prototype.HE=function(){if(ed(this)){var a={bH:!0};var b=ed(this);if(b&&!a.bH)throw Error("copyRepeatedFields must be true for frozen messages");b||gba(this.xe);var c=new this.constructor;this.D&&(c.D=this.D.slice());for(var d=this.xe,e=0;e>>0);g.Wa(g.Vf,g.K);g.Vf.prototype[zca]=!0;g.k=g.Vf.prototype;g.k.addEventListener=function(a,b,c,d){g.Of(this,a,b,c,d)}; g.k.removeEventListener=function(a,b,c,d){Oca(this,a,b,c,d)}; g.k.dispatchEvent=function(a){var b=this.La;if(b){var c=[];for(var d=1;b;b=b.La)c.push(b),++d}b=this.zb;d=a.type||a;if("string"===typeof a)a=new g.bf(a,b);else if(a instanceof g.bf)a.target=a.target||b;else{var e=a;a=new g.bf(d,b);g.Jf(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=Wf(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=Wf(h,d,!0,a)&&e,a.u||(e=Wf(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&fl?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+ e:"")}; g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;ed&&this.Iaw||401===w||0===w);y&&(c.u=z.concat(c.u),c.Aa||c.j.enabled||c.j.start());b&&b("net-send-failed",w)},r=function(){c.Ta?c.Ta.send(n,p,q):c.rb(n,p,q)}; m?m.then(function(w){n.Ht["Content-Encoding"]="gzip";n.Ht["Content-Type"]="application/binary";n.body=w;n.ZX=2;r()},function(){r()}):r()}}}}; g.k.DH=function(){this.flush()}; g.v(jfa,g.bf);dfa.prototype.We=function(a,b){b=void 0===b?0:b;var c=this.j.clone();var d=Date.now().toString();c=g.E(c,4,d);a=Kd(c,Mi,3,a);b&&g.E(a,14,b);return a};nfa.prototype.We=function(){var a=new Oi(this.I,this.ya?this.ya:$h,"0",this.J,this.B,this.C,!1,this.Ia,void 0,void 0,this.S?this.S:void 0);this.ea&&Ni(a.I,this.ea);if(this.u){var b=this.u,c=Pi(a.I);g.E(c,7,b)}this.D&&(a.S=this.D);this.j&&(a.ea=this.j);this.Z&&((b=this.Z)?(a.C||(a.C=new ai),b=Zd(b),g.E(a.C,4,b)):a.C&&Bd(a.C,4));this.Aa&&(b=this.Aa,a.C||(a.C=new ai),uba(a.C,2,b));this.oa&&(b=this.oa,a.Xa=!0,gfa(a,b));this.Ba&&lfa(a.I,this.Ba);return a};Qi.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new mea,c=[],d=0;d>>3;1!=f.B&&2!=f.B&&15!=f.B&&Uj(f,h,l,"unexpected tag");f.j=1;f.u=0;f.C=0} function c(m){f.C++;5==f.C&&m&240&&Uj(f,h,l,"message length too long");f.u|=(m&127)<<7*(f.C-1);m&128||(f.j=2,f.S=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.u):f.D=Array(f.u),0==f.u&&e())} function d(m){f.D[f.S++]=m;f.S==f.u&&e()} function e(){if(15>f.B){var m={};m[f.B]=f.D;f.J.push(m)}f.j=0} for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;lb||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?bk(this,7):7==c?bk(this,8):d||bk(this,3)),this.u||(this.u=kga(this.j),null==this.u&&bk(this,5)),2this.B){var h=a.length;c=[];try{if(this.u.CB())for(var l=0;lthis.B){l=e.slice(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){bk(this,5);ck(this);break a}}4==b?(0!=e.length|| this.Z?bk(this,2):bk(this,4),ck(this)):bk(this,1)}}}catch(p){bk(this,6),ck(this)}};g.k=lga.prototype;g.k.Io=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this}; g.k.addListener=function(a,b){this.Io(a,b);return this}; g.k.removeListener=function(a,b){var c=this.u[a];c&&g.$b(c,b);(a=this.j[a])&&g.$b(a,b);return this}; g.k.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this}; g.k.s1=function(a){var b=this.u.data;b&&mga(a,b);(b=this.j.data)&&mga(a,b);this.j.data=[]}; g.k.o3=function(){switch(this.B.getStatus()){case 1:dk(this,"readable");break;case 5:case 6:case 4:case 7:case 3:dk(this,"error");break;case 8:dk(this,"close");break;case 2:dk(this,"end")}};nga.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return oga(function(h){var l=h.DC(),m=h.getMetadata(),n=rga(e,!1);m=sga(e,m,n,f+l.getName());var p=tga(n,l.u,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.C).call(this,Rfa(d,b,c))};ek.prototype.create=function(a,b){return lj(this.j,this.u+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},QYa)}; ek.prototype.ping=function(a,b){return lj(this.j,this.u+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},RYa)};var vga={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);0=this.I&&this.B.resolve();var b=new Ti(this.logger,"C");a=this.C(a.py);b.done();if(a instanceof Uint8Array)return a;b=new Qfa(a);a=this.j;a=Hd(a,Ue,3===Ed(a,R2)?3:-1);if(!a){a=new Ue;var c=Cc(b.B);Ld(a,2,c);Jd(this.j,Ue,3,R2,a)}b=new Uint8Array(b.u);Ld(a,1,b);return g.Pe(this.j,FYa)}; g.v(mk,jk);mk.prototype.xw=function(){return this.j}; g.v(nk,jk);nk.prototype.xw=function(){if(this.j){var a=this.j;this.j=void 0;return a}return this.C}; hk.prototype.isReady=function(){return!!this.j}; hk.prototype.ready=function(){var a=this;return g.A(function(b){return g.x(b,a.u.promise,0)})}; hk.prototype.xw=function(a){if(!this.j)throw Error("SGK:Not ready");var b=new Ti(this.logger,this.j.u);try{return this.j.xw(a)}catch(e){b=new Ti(this.logger,"e");var c=new ik(5,e);this.logger.Dz(c.code);var d;null==(d=this.onError)||d.call(this,c);return(new nk(c)).xw()}finally{b.done()}};var mra={CRa:0,zRa:1,wRa:2,xRa:3,yRa:4,BRa:5,ARa:6};var cm;cm=["av.default","js","unreleased"].slice(-1)[0];var Sl=document,Dk=window;var Iga={NONE:0,aoa:1},mha={gU:0,yQa:1,xQa:2,zQa:3},Wk={RT:"a",Ena:"d",VIDEO:"v"};pk.prototype.isVisible=function(){return this.Js?.3<=this.Jd:.5<=this.Jd};var zk={Iha:0,dsa:1},kha={NONE:0,Uwa:1,qua:2};qk.prototype.getValue=function(){return this.td}; g.v(rk,qk);rk.prototype.setValue=function(a){if(null!==this.td||!g.uf(this.u,a))return!1;this.td=a;return!0}; g.v(sk,qk);sk.prototype.setValue=function(a){if(null!==this.td||"number"!==typeof a)return!1;this.td=a;return!0}; g.v(tk,qk);tk.prototype.setValue=function(a){if(null!==this.td||"string"!==typeof a)return!1;this.td=a;return!0};uk.prototype.disable=function(){this.u=!1}; uk.prototype.enable=function(){this.u=!0}; uk.prototype.isEnabled=function(){return this.u}; uk.prototype.reset=function(){this.j={};this.u=!0;this.B={}};var oia=!g.Bc&&!Eb();Ak.prototype.now=function(){return 0}; Ak.prototype.u=function(){return 0}; Ak.prototype.B=function(){return 0}; Ak.prototype.j=function(){return 0};g.v(Ck,Ak);Ck.prototype.now=function(){return Bk()&&Dk.performance.now?Dk.performance.now():Ak.prototype.now.call(this)}; Ck.prototype.u=function(){return Bk()&&Dk.performance.memory?Dk.performance.memory.totalJSHeapSize||0:Ak.prototype.u.call(this)}; Ck.prototype.B=function(){return Bk()&&Dk.performance.memory?Dk.performance.memory.usedJSHeapSize||0:Ak.prototype.B.call(this)}; Ck.prototype.j=function(){return Bk()&&Dk.performance.memory?Dk.performance.memory.jsHeapSizeLimit||0:Ak.prototype.j.call(this)};var Lga=dg(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); g.C.addEventListener("test",null,b)}catch(c){}return a});Mga.prototype.isVisible=function(){return 1===Gk(Sl)};g.jg("csi.gstatic.com");g.jg("googleads.g.doubleclick.net");g.jg("partner.googleadservices.com");g.jg("pubads.g.doubleclick.net");g.jg("securepubads.g.doubleclick.net");g.jg("tpc.googlesyndication.com");var Oga={W$:"allow-forms",X$:"allow-modals",Y$:"allow-orientation-lock",Z$:"allow-pointer-lock",aaa:"allow-popups",baa:"allow-popups-to-escape-sandbox",caa:"allow-presentation",daa:"allow-same-origin",eaa:"allow-scripts",faa:"allow-top-navigation",haa:"allow-top-navigation-by-user-activation"},Sga=dg(function(){return Pga()});var Wga=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Lk.prototype.ue=function(a,b,c){a=a+"//"+b+c;var d=$ga(this)-c.length;if(0>d)return"";this.j.sort(function(n,p){return n-p}); c=null;b="";for(var e=0;e=m.length){d-=m.length;a+=m;b=this.B;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};Sk.prototype.setInterval=function(a,b){return Dk.setInterval(a,b)}; Sk.prototype.clearInterval=function(a){Dk.clearInterval(a)}; Sk.prototype.setTimeout=function(a,b){return Dk.setTimeout(a,b)}; Sk.prototype.clearTimeout=function(a){Dk.clearTimeout(a)};gha.prototype.getContext=function(){if(!this.j){if(!Dk)throw Error("Context has not been set and window is undefined.");this.j=Rk(Sk)}return this.j};g.v(Uk,g.I);var oja=[Uk,1,wYa,2,xYa,3,xYa,4,xYa,5,yYa];var lha={KOa:1,pX:2,FGa:3};nha.prototype.dK=function(a){if("string"===typeof a&&0!=a.length){var b=this.featureSet;if(b.u){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);1=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.k.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.k.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.k.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.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};vl.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&tl(this.j,a.j)&&!0};wl.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.S==a.S&&tl(this.B,a.B)&&tl(this.I,a.I)&&this.j==a.j&&this.D==a.D&&this.u==a.u&&this.J==a.J};var ZYa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Pm={iX:"start",nU:"firstquartile",NW:"midpoint",jX:"thirdquartile",aU:"complete",ERROR:"error",MW:"metric",PAUSE:"pause",WW:"resume",aX:"skip",oX:"viewable_impression",PW:"mute",mX:"unmute",oU:"fullscreen",lU:"exitfullscreen",ZT:"bufferstart",XT:"bufferfinish",pU:"fully_viewable_audible_half_duration_impression",LW:"measurable_impression",NT:"abandon",iU:"engagedview",vU:"impression",cU:"creativeview",JW:"loaded",IPa:"progress", CLOSE:"close",bha:"collapse",oMa:"overlay_resize",pMa:"overlay_unmeasurable_impression",qMa:"overlay_unviewable_impression",sMa:"overlay_viewable_immediate_impression",rMa:"overlay_viewable_end_of_session_impression",dU:"custom_metric_viewable",uLa:"verification_debug",ST:"audio_audible",UT:"audio_measurable",TT:"audio_impression"},aka="start firstquartile midpoint thirdquartile resume loaded".split(" "),bka=["start","firstquartile","midpoint","thirdquartile"],Pia=["abandon"],jn={UNKNOWN:-1,iX:0, nU:1,NW:2,jX:3,aU:4,MW:5,PAUSE:6,WW:7,aX:8,oX:9,PW:10,mX:11,oU:12,lU:13,pU:14,LW:15,NT:16,iU:17,vU:18,cU:19,JW:20,dU:21,ZT:22,XT:23,TT:24,UT:25,ST:26};var Bha={O7:"addEventListener",sua:"getMaxSize",tua:"getScreenSize",uua:"getState",vua:"getVersion",nQa:"removeEventListener",Oxa:"isViewable"};g.k=g.yl.prototype;g.k.clone=function(){return new g.yl(this.left,this.top,this.width,this.height)}; g.k.contains=function(a){return a instanceof g.Jg?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.k.distance=function(a){var b=a.x=this.S?a:this;b!==this.j?(this.I=this.j.I,Xl(this)):this.I!==this.j.I&&(this.I=this.j.I,Xl(this))}; g.k.Wp=function(a){if(a.u===this.j){var b=!this.C.equals(a,this.Z);this.C=a;b&&Tha(this)}}; g.k.xn=function(){return this.Z}; g.k.dispose=function(){this.Aa=!0}; g.k.isDisposed=function(){return this.Aa};g.k=Yl.prototype;g.k.IF=function(){return!0}; g.k.Lx=function(){}; g.k.dispose=function(){if(!this.isDisposed()){var a=this.u;g.$b(a.D,this);a.Z&&this.xn()&&Sha(a);this.Lx();this.ea=!0}}; g.k.isDisposed=function(){return this.ea}; g.k.Pp=function(){return this.u.Pp()}; g.k.ao=function(){return this.u.ao()}; g.k.Mv=function(){return this.u.Mv()}; g.k.lz=function(){return this.u.lz()}; g.k.Xv=function(){}; g.k.Wp=function(){this.wp()}; g.k.xn=function(){return this.oa};g.k=Zl.prototype;g.k.ao=function(){return this.j.ao()}; g.k.Mv=function(){return this.j.Mv()}; g.k.lz=function(){return this.j.lz()}; g.k.create=function(a,b,c){var d=null;this.j&&(d=this.pB(a,b,c),Wl(this.j,d));return d}; g.k.SM=function(){return this.Mx()}; g.k.Mx=function(){return!1}; g.k.init=function(a){return this.j.initialize()?(Wl(this.j,this),this.C=a,!0):!1}; g.k.Xv=function(a){0==a.ao()&&this.C(a.Mv(),this)}; g.k.Wp=function(){}; g.k.xn=function(){return!1}; g.k.dispose=function(){this.D=!0}; g.k.isDisposed=function(){return this.D}; g.k.Pp=function(){return{}};$l.prototype.add=function(a,b,c){++this.B;a=new Uha(a,b,c);this.j.push(new Uha(a.j,a.td,a.u+this.B/4096));this.u=!0;return this};Zha.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=bm(this.j);0=h;h=!(0=h)||c;this.j[e].update(f&&l,d,!f||h)}};km.prototype.update=function(a,b,c,d){this.J=-1!=this.J?Math.min(this.J,b.Jd):b.Jd;this.oa=Math.max(this.oa,b.Jd);this.ya=-1!=this.ya?Math.min(this.ya,b.Xi):b.Xi;this.Ba=Math.max(this.Ba,b.Xi);this.jb.update(b.Xi,c.Xi,b.j,a,d);this.u.update(b.Jd,c.Jd,b.j,a,d);c=d||c.Js!=b.Js?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Qa.update(c,a,b)}; km.prototype.Bo=function(){return this.Qa.B>=this.bb};if(Sl&&Sl.URL){var $Ya=Sl.URL,aZa;if(aZa=!!$Ya){var bZa;a:{if($Ya){var cZa=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var T2=cZa.exec(decodeURIComponent($Ya));if(T2){bZa=T2[1]&&1=(this.Js()?.3:.5),this.CL(f,a,d),this.lastUpdateTime=b,0=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0=a.bottom||a.left>=a.right?new rl(0,0,0,0):a;a=this.u.C;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.WP(c)?c=new rl(0,0,0,0):(d=Rl().C,b=new rl(0,d.height,d.width,0),d=om(c,this.j),e=om(c,Rl().j),b=om(c,b)));c=c.top>=c.bottom||c.left>=c.right?new rl(0,0,0, 0):ul(c,-this.j.left,-this.j.top);Tl()||(e=d=0);this.J=new wl(a,this.element,this.j,c,d,e,this.timestamp,b)}; g.k.getName=function(){return this.u.getName()};var hZa=new rl(0,0,0,0);g.v(Im,Hm);g.k=Im.prototype;g.k.IF=function(){this.B();return!0}; g.k.Wp=function(){Hm.prototype.wp.call(this)}; g.k.dO=function(){}; g.k.KG=function(){}; g.k.wp=function(){this.B();Hm.prototype.wp.call(this)}; g.k.Xv=function(a){a=a.isActive();a!==this.I&&(a?this.B():(Rl().j=new rl(0,0,0,0),this.j=new rl(0,0,0,0),this.C=new rl(0,0,0,0),this.timestamp=-1));this.I=a};var D3={},Nia=(D3.firstquartile=0,D3.midpoint=1,D3.thirdquartile=2,D3.complete=3,D3);g.v(Km,pm);g.k=Km.prototype;g.k.xn=function(){return!0}; g.k.Ao=function(){return 2==this.Ah}; g.k.iP=function(a){return qia(this,a,Math.max(1E4,this.B/3))}; g.k.Ja=function(a,b,c,d,e,f,h){var l=this,m=this.J(this)||{};g.Jf(m,e);this.B=m.duration||this.B;this.Z=m.isVpaid||this.Z;this.La=m.isYouTube||this.La;e=Fia(this,b);1===Eia(this)&&(f=e);pm.prototype.Ja.call(this,a,b,c,d,m,f,h);this.Vs&&this.Vs.u&&g.rc(this.I,function(n){n.D(l)})}; g.k.CL=function(a,b,c){pm.prototype.CL.call(this,a,b,c);Nm(this).update(a,b,this.Gg,c);this.jb=tm(this.Gg)&&tm(b);-1==this.Ba&&this.bb&&(this.Ba=this.Sh().B.j);this.yg.B=0;a=this.Bo();b.isVisible()&&Bm(this.yg,"vs");a&&Bm(this.yg,"vw");Pl(b.volume)&&Bm(this.yg,"am");tm(b)&&Bm(this.yg,"a");this.cw&&Bm(this.yg,"f");-1!=b.u&&(Bm(this.yg,"bm"),1==b.u&&Bm(this.yg,"b"));tm(b)&&b.isVisible()&&Bm(this.yg,"avs");this.jb&&a&&Bm(this.yg,"avw");0this.j.S&&(this.j=this,Xl(this)),this.S=a);return 2==a};cn.prototype.sample=function(){fn(this,Vm(),!1)}; cn.prototype.C=function(){var a=Tl(),b=ll();a?(ol||(pl=b,g.rc(Um.j,function(c){var d=c.Sh();d.La=Em(d,b,1!=c.Ah)})),ol=!0):(this.J=nja(this,b),ol=!1,Oia=b,g.rc(Um.j,function(c){c.Cy&&(c.Sh().S=b)})); fn(this,Vm(),!a)}; var dn=Rk(cn);var qja=null,En="",Dn=!1;var tja=sja().xm,hn=sja().zm;var wja={fsa:"visible",Dda:"audible",oYa:"time",rYa:"timetype"},xja={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)}}; vja.prototype.setTime=function(a,b,c){"ms"==b?(this.B=a,this.C=-1):(this.B=-1,this.C=a);this.D=void 0===c?"tos":c;return this};g.v(mn,Fm);mn.prototype.getId=function(){return this.J}; mn.prototype.I=function(){return!0}; mn.prototype.j=function(a){var b=a.Sh(),c=a.getDuration();return Ql(this.S,function(d){if(void 0!=d.j)var e=zja(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.j;break b;case "tos":e=d.u?b.D.j:b.B.j;break b}e=0}0==e?d=!1:(d=-1!=d.B?d.B:void 0!==c&&0=d);return d})};g.v(nn,Aja);nn.prototype.u=function(){return null}; nn.prototype.B=function(){return[]};g.v(on,zia);on.prototype.j=function(a){var b=new xm;b.j=Am(a,eZa);b.u=Am(a,gZa);return b};g.v(pn,Fm);pn.prototype.j=function(a){return Hia(a)};g.v(qn,Aja);g.v(rn,Fm);rn.prototype.j=function(a){return a.Sh().Bo()};g.v(sn,Gm);sn.prototype.j=function(a){var b=g.Vb(this.J,xk(Xk().featureSet,"ovms"));return!a.eq&&(0!=a.Ah||b)};g.v(tn,qn);tn.prototype.u=function(){return new sn(this.j)}; tn.prototype.B=function(){return[new rn("viewable_impression",this.j),new pn(this.j)]};g.v(un,Im);un.prototype.B=function(){var a=g.Ga("ima.admob.getViewability"),b=xk(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)}; un.prototype.getName=function(){return"gsv"};g.v(vn,Zl);vn.prototype.getName=function(){return"gsv"}; vn.prototype.Mx=function(){var a=Rl();Xk();return a.u&&!1}; vn.prototype.pB=function(a,b,c){return new un(this.j,b,c)};g.v(wn,Im);wn.prototype.B=function(){var a=this,b=g.Ga("ima.bridge.getNativeViewability"),c=xk(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Df(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=Mha(d.opt_nativeViewBounds||{});var h=a.u.C;h.j=f?hZa.clone():Mha(e);a.timestamp=d.opt_nativeTime||-1;Rl().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})}; wn.prototype.getName=function(){return"nis"};g.v(xn,Zl);xn.prototype.getName=function(){return"nis"}; xn.prototype.Mx=function(){var a=Rl();Xk();return a.u&&!1}; xn.prototype.pB=function(a,b,c){return new wn(this.j,b,c)};g.v(yn,Vl);g.k=yn.prototype;g.k.Kx=function(){return null!=this.u.xl}; g.k.fP=function(){var a={};this.Ia&&(a.mraid=this.Ia);this.ya&&(a.mlc=1);a.mtop=this.u.k5;this.J&&(a.mse=this.J);this.La&&(a.msc=1);a.mcp=this.u.compatibility;return a}; g.k.Lq=function(a){var b=g.za.apply(1,arguments);try{return this.u.xl[a].apply(this.u.xl,b)}catch(c){kl(538,c,.01,function(d){d.method=a})}}; g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.lz();this.isInitialized=!0;if(2===this.u.compatibility)return this.J="ng",this.fail("w"),!1;if(1===this.u.compatibility)return this.J="mm",this.fail("w"),!1;Rl().S=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?Eja(this):mm(this.B,"load",function(){Tk().setTimeout(jl(292,function(){return Eja(a)}),100)},292); return!0}; g.k.QM=function(){var a=Rl(),b=Jja(this,"getMaxSize");a.j=new rl(0,b.width,b.height,0)}; g.k.RM=function(){Rl().C=Jja(this,"getScreenSize")}; g.k.dispose=function(){Gja(this);Vl.prototype.dispose.call(this)};g.k=An.prototype;g.k.yy=function(a){qm(a,!1);aja(a)}; g.k.LC=function(){}; g.k.oA=function(a,b,c,d){var e=this;b=c?b:-1;c=this.xO();a=new Km(Dk,a,b,7,this.eH(),c.u(),c.B());a.fh=d;Fga(a.featureSet);wk(a.featureSet,"queryid",a.fh);a.dK("");tia(a,function(){return e.vP.apply(e,g.u(g.za.apply(0,arguments)))},function(){return e.OZ.apply(e,g.u(g.za.apply(0,arguments)))}); (d=Rk(Wm).j)&&pia(a,d);a.Di.mq&&Rk(jja);return a}; g.k.Xv=function(a){switch(a.ao()){case 0:if(a=Rk(Wm).j)a=a.j,g.$b(a.D,this),a.Z&&this.xn()&&Sha(a);Cn();break;case 2:en()}}; g.k.Wp=function(){}; g.k.xn=function(){return!1}; g.k.OZ=function(a,b){a.eq=!0;switch(a.Hm()){case 1:Pja(a,b);break;case 2:this.pK(a)}this.FK()}; g.k.XZ=function(a){var b=a.J(a);b&&(b=b.volume,a.kb=Pl(b)&&0a&&Number.isInteger(a)&&this.data_[a]!==b&&(this.data_[a]=b,this.j=-1)}; Vn.prototype.get=function(a){return!!this.data_[a]};g.Wa(g.Wn,g.K);g.k=g.Wn.prototype;g.k.start=function(){this.stop();this.C=!1;var a=mka(this),b=nka(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.j=g.Of(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.j=a&&b?a.call(this.u,this.B):this.u.setTimeout(Qca(this.B),20)}; g.k.stop=function(){if(this.isActive()){var a=mka(this),b=nka(this);a&&!b&&this.u.mozRequestAnimationFrame?Sf(this.j):a&&b?b.call(this.u,this.j):this.u.clearTimeout(this.j)}this.j=null}; g.k.isActive=function(){return null!=this.j}; g.k.BV=function(){this.C&&this.j&&Sf(this.j);this.j=null;this.I.call(this.D,g.Va())}; g.k.ra=function(){this.stop();g.Wn.Se.ra.call(this)};g.Wa(g.Yn,g.K);g.k=g.Yn.prototype;g.k.Nx=0;g.k.ra=function(){g.Yn.Se.ra.call(this);this.stop();delete this.j;delete this.u}; g.k.start=function(a){this.stop();this.Nx=g.Nh(this.B,void 0!==a?a:this.uh)}; g.k.stop=function(){this.isActive()&&g.C.clearTimeout(this.Nx);this.Nx=0}; g.k.isActive=function(){return 0!=this.Nx}; g.k.UM=function(){this.Nx=0;this.j&&this.j.call(this.u)};bo.prototype[Symbol.iterator]=function(){return this}; bo.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.u.call(void 0,a.value),done:a.done}};lo.prototype.gj=function(){return new mo(this.u())}; lo.prototype[Symbol.iterator]=function(){return new no(this.u())}; lo.prototype.j=function(){return new no(this.u())}; g.v(mo,g.rm);mo.prototype.next=function(){return this.u.next()}; mo.prototype[Symbol.iterator]=function(){return new no(this.u)}; mo.prototype.j=function(){return new no(this.u)}; g.v(no,lo);no.prototype.next=function(){return this.B.next()};g.k=g.po.prototype;g.k.fk=function(){ro(this);for(var a=[],b=0;b2*this.size&&ro(this),!0):!1}; g.k.get=function(a,b){return qo(this.u,a)?this.u[a]:b}; g.k.set=function(a,b){qo(this.u,a)||(this.size+=1,this.j.push(a),this.Uq++);this.u[a]=b}; g.k.forEach=function(a,b){for(var c=this.Yn(),d=0;d=d.j.length)return g.U2;var f=d.j[b++];return g.sm(a?f:d.u[f])}; return e};g.Wa(g.so,g.Vf);g.k=g.so.prototype;g.k.Sc=function(){return 1==this.j}; g.k.BD=function(){this.dk("begin")}; g.k.Vz=function(){this.dk("end")}; g.k.onFinish=function(){this.dk("finish")}; g.k.dk=function(a){this.dispatchEvent(a)};var pZa=dg(function(){if(g.Bc)return g.wc("10.0");var a=g.ih("DIV"),b=g.hf?"-webkit":Cl?"-moz":g.Bc?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!IYa.test("div"))throw Error("");if("DIV"in KYa)throw Error("");b=void 0;var d="";if(c)for(h in c)if(Object.prototype.hasOwnProperty.call(c,h)){if(!IYa.test(h))throw Error("");var e=c[h];if(null!=e){var f=h;if(e instanceof hg)e=ig(e);else if("style"==f.toLowerCase()){if(!g.Na(e))throw Error(""); e instanceof sg||(e=fda(e));e=tg(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in JYa)if(e instanceof lg)e=Xca(e).toString();else if(e instanceof og)e=g.pg(e);else if("string"===typeof e)e=g.qg(e).ek();else throw Error("");}e.Rm&&(e=e.ek());f=f+'="'+fb(String(e))+'"';d+=" "+f}}var h="":(b=qda(b),h+=">"+g.zg(b).toString()+"");h=Ag(h);g.tda(a,h);return""!=g.Dl(a.firstChild,"transition")});g.Wa(to,g.so);g.k=to.prototype;g.k.play=function(){if(this.Sc())return!1;this.BD();this.dk("play");this.startTime=g.Va();this.j=1;if(pZa())return g.Bl(this.u,this.J),this.C=g.Nh(this.a4,void 0,this),!0;this.JF(!1);return!1}; g.k.a4=function(){g.Ml(this.u);ska(this.u,this.S);g.Bl(this.u,this.D);this.C=g.Nh((0,g.Qa)(this.JF,this,!1),1E3*this.I)}; g.k.stop=function(){this.Sc()&&this.JF(!0)}; g.k.JF=function(a){g.Bl(this.u,"transition","");g.C.clearTimeout(this.C);g.Bl(this.u,this.D);this.endTime=g.Va();this.j=0;if(a)this.dk("stop");else this.onFinish();this.Vz()}; g.k.ra=function(){this.stop();to.Se.ra.call(this)}; g.k.pause=function(){};var uka={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};uo("Element","attributes")||uo("Node","attributes");uo("Element","innerHTML")||uo("HTMLElement","innerHTML");uo("Node","nodeName");uo("Node","nodeType");uo("Node","parentNode");uo("Node","childNodes");uo("HTMLElement","style")||uo("Element","style");uo("HTMLStyleElement","sheet");var Aka=wka("getPropertyValue"),Bka=wka("setProperty");uo("Element","namespaceURI")||uo("Node","namespaceURI");var zka={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var Fka,Eka,Dka,Gka;Fka=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.qZa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.rZa=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.vo=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]");Eka=/^http:\/\/.*/;g.sZa=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Dka=/\s+/;Gka=/[\d\u06f0-\u06f9]/;g.xo.prototype.clone=function(){return new g.xo(this.j,this.J,this.B,this.D,this.C,this.I,this.u,this.S)}; g.xo.prototype.equals=function(a){return this.j==a.j&&this.J==a.J&&this.B==a.B&&this.D==a.D&&this.C==a.C&&this.I==a.I&&this.u==a.u&&this.S==a.S};zo.prototype.clone=function(){return new zo(this.start,this.end)};var tZa=new WeakMap;(function(){if(QSa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.rb()))?a[1]:"0"}return zT?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.rb()))?a[0].replace(/_/g,"."):"10"):g.Xu?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.rb()))?a[1]:""):lYa||mYa||nYa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.rb()))?a[1].replace(/_/g,"."):""):""})();var Ika=function(){if(g.qB)return Ao(/Firefox\/([0-9.]+)/);if(g.Bc||g.ww||g.JF)return vc;if(g.aE){if(Ib()||Kb()){var a=Ao(/CriOS\/([0-9.]+)/);if(a)return a}return Ao(/Chrome\/([0-9.]+)/)}if(g.Yv&&!Ib())return Ao(/Version\/([0-9.]+)/);if(SF||wI){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.rb()))return a[1]+"."+a[2]}else if(g.KF)return(a=Ao(/Android\s+([0-9.]+)/))?a:Ao(/Version\/([0-9.]+)/);return""}();g.Wa(g.Co,g.K);g.k=g.Co.prototype;g.k.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.I;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.I=e+3;d.push(e);return e}; g.k.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Mg(a)}return!1}; g.k.Mg=function(a){var b=this.j[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.j[a+1]=function(){}):(c&&g.$b(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b}; g.k.ma=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e=c.length)return g.U2;var e=c.key(b++);if(a)return g.sm(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.sm(e)}; return d}; g.k.clear=function(){this.j.clear()}; g.k.key=function(a){return this.j.key(a)};g.Wa(Jo,Io);g.Wa(Oka,Io);g.Wa(Lo,Ho);var Pka={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Ko=null;g.k=Lo.prototype;g.k.isAvailable=function(){return!!this.j}; g.k.set=function(a,b){this.j.setAttribute(Mo(a),b);No(this)}; g.k.get=function(a){a=this.j.getAttribute(Mo(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; g.k.remove=function(a){this.j.removeAttribute(Mo(a));No(this)}; g.k.gj=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.rm;d.next=function(){if(b>=c.length)return g.U2;var e=c[b++];if(a)return g.sm(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.sm(e)}; return d}; g.k.clear=function(){for(var a=this.j.XMLDocument.documentElement,b=a.attributes.length;0=b)){if(1==b)a.length=0;else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a>1;){var f=2*a+1,h=2*a+2;f=he.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}}; g.k.fk=function(){for(var a=this.j,b=[],c=a.length,d=0;d=L.On)||l.j.version>=M||l.j.objectStoreNames.contains(H)||D.push(H)}m=D;if(0===m.length){z.Ma(5);break}n=Object.keys(c.options.uq);p=l.objectStoreNames(); if(c.Ic.options.version+ 1)throw r.close(),c.C=!1,Fna(c,w);return z.return(r);case 10:throw b(),q instanceof Error&&!g.S("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),Zv(q,c.name,"",null!=(y=c.options.version)?y:-1);}})} function b(){c.j===d&&(c.j=void 0)} var c=this;if(!this.C)throw Fna(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()}, closed:b,M5:b,upgrade:this.options.upgrade};return this.j=d=a()};var uw=new rw("YtIdbMeta",{uq:{databases:{On:1}},upgrade:function(a,b){b(1)&&g.hw(a,"databases",{keyPath:"actualName"})}});var zw,yw=new function(){}(new function(){});new g.Yi;g.k=Dw.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(Cw(this)&&this.Ye){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.gg.set(d,this.Xe).then(function(e){d.id=e;c.Zf.tf()&&Ew(c,d)}).catch(function(e){Ew(c,d); Fw(c,e)})}else this.Ro(a,b)}; g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(Cw(this)&&this.Ye){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.ib&&this.ib("nwl_skip_retry")&&(e.skipRetry=c);if(this.Zf.tf()||this.ib&&this.ib("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){}; b.onError=function(h,l){return g.A(function(m){if(1==m.j)return g.x(m,d.gg.set(e,d.Xe).catch(function(n){Fw(d,n)}),2); f(h,l);g.na(m)})}}this.Ro(a,b,e.skipRetry)}else this.gg.set(e,this.Xe).catch(function(h){d.Ro(a,b,e.skipRetry); Fw(d,h)})}else this.Ro(a,b,this.ib&&this.ib("nwl_skip_retry")&&c)}; g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(Cw(this)&&this.Ye){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){}; d.options.onSuccess=function(h,l){void 0!==d.id?c.gg.Dv(d.id,c.Xe):e=!0;c.Zf.Ho&&c.ib&&c.ib("vss_network_hint")&&c.Zf.Ho(!0);f(h,l)}; this.Ro(d.url,d.options);this.gg.set(d,this.Xe).then(function(h){d.id=h;e&&c.gg.Dv(d.id,c.Xe)}).catch(function(h){Fw(c,h)})}else this.Ro(a,b)}; g.k.KA=function(){var a=this;if(!Cw(this))throw g.$v("throttleSend");this.j||(this.j=this.vl.Hh(function(){var b;return g.A(function(c){if(1==c.j)return g.x(c,a.gg.jP("NEW",a.Xe),2);if(3!=c.j)return b=c.u,b?g.x(c,Ew(a,b),3):(a.fO(),c.return());a.j&&(a.j=0,a.KA());g.na(c)})},this.VS))}; g.k.fO=function(){this.vl.Xk(this.j);this.j=0};Hw.prototype.toString=function(){return this.topic};var $_a=g.Ga("ytPubsub2Pubsub2Instance")||new g.Co;g.Co.prototype.subscribe=g.Co.prototype.subscribe;g.Co.prototype.unsubscribeByKey=g.Co.prototype.Mg;g.Co.prototype.publish=g.Co.prototype.ma;g.Co.prototype.clear=g.Co.prototype.clear;g.Fa("ytPubsub2Pubsub2Instance",$_a);var Kw=g.Ga("ytPubsub2Pubsub2SubscribedKeys")||{};g.Fa("ytPubsub2Pubsub2SubscribedKeys",Kw);var Lw=g.Ga("ytPubsub2Pubsub2TopicToKeys")||{};g.Fa("ytPubsub2Pubsub2TopicToKeys",Lw);var Yna=g.Ga("ytPubsub2Pubsub2IsAsync")||{}; g.Fa("ytPubsub2Pubsub2IsAsync",Yna);g.Fa("ytPubsub2Pubsub2SkipSubKey",null);g.v(Ow,rw);Ow.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.Xw?Ona:Nna)(a,b,Object.assign({},c))}; Ow.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.Xw?Sna:Pna)(this.name,a)};var Qw;var a0a={},goa=g.Pw("ServiceWorkerLogsDatabase",{uq:(a0a.SWHealthLog={On:1},a0a),Xw:!0,upgrade:function(a,b){b(1)&&g.mw(g.hw(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var Ww={},moa=0;Xw.prototype.requestComplete=function(a,b){b&&(this.u=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)}; Xw.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.u?!0:null}; Xw.prototype.removeParams=function(a){return a.split("?")[0]}; Xw.prototype.removeParams=Xw.prototype.removeParams;Xw.prototype.isEndpointCFR=Xw.prototype.isEndpointCFR;Xw.prototype.requestComplete=Xw.prototype.requestComplete;Xw.getInstance=Yw;var Zw;g.v(ax,g.Vf);g.k=ax.prototype;g.k.tf=function(){return this.j.tf()}; g.k.Ho=function(a){this.j.j=a}; g.k.yZ=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; g.k.PY=function(){this.u=!0}; g.k.Ra=function(a,b){return this.j.Ra(a,b)}; g.k.vA=function(a){a=Sn(this.j,a);a.then(function(b){g.S("use_cfr_monitor")&&Yw().requestComplete("generate_204",b)}); return a}; ax.prototype.sendNetworkCheckRequest=ax.prototype.vA;ax.prototype.listen=ax.prototype.Ra;ax.prototype.enableErrorFlushing=ax.prototype.PY;ax.prototype.getWindowStatus=ax.prototype.yZ;ax.prototype.networkStatusHint=ax.prototype.Ho;ax.prototype.isNetworkAvailable=ax.prototype.tf;ax.getInstance=ooa;g.v(g.ex,g.Vf);g.ex.prototype.tf=function(){var a=g.Ga("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.u)():!0}; g.ex.prototype.Ho=function(a){var b=g.Ga("yt.networkStatusManager.instance.networkStatusHint").bind(this.u);b&&b(a)}; g.ex.prototype.vA=function(a){var b=this,c;return g.A(function(d){c=g.Ga("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.u);return g.S("skip_network_check_if_cfr")&&Yw().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Ho((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.tf())})):c?d.return(c(a)):d.return(!0)})};var hx;g.v(fx,Dw);fx.prototype.writeThenSend=function(a,b){b||(b={});g.Sv()||(this.Ye=!1);Dw.prototype.writeThenSend.call(this,a,b)}; fx.prototype.sendThenWrite=function(a,b,c){b||(b={});g.Sv()||(this.Ye=!1);Dw.prototype.sendThenWrite.call(this,a,b,c)}; fx.prototype.sendAndWrite=function(a,b){b||(b={});g.Sv()||(this.Ye=!1);Dw.prototype.sendAndWrite.call(this,a,b)}; fx.prototype.awaitInitialization=function(){return this.u.promise};var px=0,rx=0,sx,qx=g.C.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,potentialEsfErrorCounter:rx};g.Fa("ytNetworklessLoggingInitializationOptions",qx);g.tx.prototype.isReady=function(){!this.config_&&Tma()&&(this.config_=g.wv());return!!this.config_};var b0a=0,vx=g.hf?"webkit":Cl?"moz":g.Bc?"ms":g.JF?"o":"",c0a=g.Ga("ytDomDomGetNextId")||function(){return++b0a}; g.Fa("ytDomDomGetNextId",c0a);var zoa={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};xx.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; xx.prototype.VP=function(){return this.event?!1===this.event.returnValue:!1}; xx.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; xx.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var yx=g.C.ytEventsEventsListeners||{};g.Fa("ytEventsEventsListeners",yx);var Coa=g.C.ytEventsEventsCounter||{count:0};g.Fa("ytEventsEventsCounter",Coa);var Gra=dg(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a}),Doa=dg(function(){var a=!1; try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a});var zF=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.Wa(Jx,g.K);Jx.prototype.Z=function(a){void 0===a.j&&Aoa(a);var b=a.j;void 0===a.u&&Aoa(a);this.j=new g.Jg(b,a.u)}; Jx.prototype.Sp=function(){return this.j||new g.Jg}; Jx.prototype.ea=function(){if(this.j){var a=zF();if(0!=this.C){var b=this.I,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.C);this.u[this.B]=.5c;c++)b+=this.u[c]||0;3<=b&&this.J();this.D=d}this.C=a;this.I=this.j;this.B=(this.B+1)%4}}; Jx.prototype.ra=function(){window.clearInterval(this.S);g.Ax(this.oa)};var Nx={};var d0a,Qx,Sx;d0a=g.C.ytPubsubPubsubInstance||new g.Co;Qx=g.C.ytPubsubPubsubSubscribedKeys||{};Sx=g.C.ytPubsubPubsubTopicToKeys||{};g.Rx=g.C.ytPubsubPubsubIsSynchronous||{};g.Co.prototype.subscribe=g.Co.prototype.subscribe;g.Co.prototype.unsubscribeByKey=g.Co.prototype.Mg;g.Co.prototype.publish=g.Co.prototype.ma;g.Co.prototype.clear=g.Co.prototype.clear;g.Fa("ytPubsubPubsubInstance",d0a);g.Fa("ytPubsubPubsubTopicToKeys",Sx);g.Fa("ytPubsubPubsubIsSynchronous",g.Rx); g.Fa("ytPubsubPubsubSubscribedKeys",Qx);Wx.prototype.storePayload=function(a,b){this.store.push({payload:b,keys:a});a=Loa(a);this.j[a]?this.j[a]++:this.j[a]=1;return a}; Wx.prototype.extractMatchingEntries=function(a){for(var b=[],c=[],d=g.t(this.store),e=d.next();!e.done;e=d.next()){e=e.value;a:{var f=a;var h=Object.keys(f);h=g.t(h);for(var l=h.next();!l.done;l=h.next())if(l=l.value,e.keys[l]!==f[l]){f=!1;break a}f=!0}f?(b.push(e.payload),this.j[Loa(e.keys)]--):c.push(e)}this.store=c;a=Koa(this,a);a=g.t(a);for(c=a.next();!c.done;c=a.next())c=c.value,0=this.start&&(an0a.length)l0a=void 0;else{var o0a=m0a.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);l0a=o0a&&6==o0a.length?Number(o0a[5].replace("_",".")):0}var xI=l0a,BO=0<=xI;BO&&0<=g.rb().search("Safari")&&g.rb().search("Version");g.v(BA,Ya);g.v(CA,Gw);g.v(kva,Gw);var rva=new Hw("aft-recorded",CA),p0a=new Hw("timing-sent",kva);var N3=window,EA=N3.performance||N3.mozPerformance||N3.msPerformance||N3.webkitPerformance||new lva;var qva=!1,pB={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc", 'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",'script[name="mobile_blazer_watch_mod"]':"mbwj"}, Dva=(0,g.Qa)(EA.clearResourceTimings||EA.webkitClearResourceTimings||EA.mozClearResourceTimings||EA.msClearResourceTimings||EA.oClearResourceTimings||g.cg,EA);var O3={},xva=(O3.auto_search="LATENCY_ACTION_AUTO_SEARCH",O3.ad_to_ad="LATENCY_ACTION_AD_TO_AD",O3.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",O3["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",O3.app_startup="LATENCY_ACTION_APP_STARTUP",O3["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",O3["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",O3["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",O3["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS", O3.browse="LATENCY_ACTION_BROWSE",O3.cast_splash="LATENCY_ACTION_CAST_SPLASH",O3.channels="LATENCY_ACTION_CHANNELS",O3.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",O3["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",O3["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",O3["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",O3["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",O3["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT", O3["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",O3["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",O3["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",O3["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",O3["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",O3["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",O3["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",O3["channel.live_streaming"]= "LATENCY_ACTION_CREATOR_LIVE_STREAMING",O3.chips="LATENCY_ACTION_CHIPS",O3["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",O3["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",O3["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",O3.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",O3.embed="LATENCY_ACTION_EMBED",O3.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",O3.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF", O3.explore="LATENCY_ACTION_EXPLORE",O3.home="LATENCY_ACTION_HOME",O3.library="LATENCY_ACTION_LIBRARY",O3.live="LATENCY_ACTION_LIVE",O3.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",O3.onboarding="LATENCY_ACTION_ONBOARDING",O3.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",O3.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",O3.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",O3.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",O3["post.comments"]= "LATENCY_ACTION_CREATOR_POST_COMMENTS",O3["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",O3.prebuffer="LATENCY_ACTION_PREBUFFER",O3.prefetch="LATENCY_ACTION_PREFETCH",O3.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",O3.profile_switcher="LATENCY_ACTION_LOGIN",O3.reel_watch="LATENCY_ACTION_REEL_WATCH",O3.results="LATENCY_ACTION_RESULTS",O3["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",O3.search_ui="LATENCY_ACTION_SEARCH_UI",O3.search_suggest="LATENCY_ACTION_SUGGEST",O3.search_zero_state= "LATENCY_ACTION_SEARCH_ZERO_STATE",O3.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",O3.seek="LATENCY_ACTION_PLAYER_SEEK",O3.settings="LATENCY_ACTION_SETTINGS",O3.store="LATENCY_ACTION_STORE",O3.tenx="LATENCY_ACTION_TENX",O3.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",O3.watch="LATENCY_ACTION_WATCH",O3.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",O3["watch,watch7"]="LATENCY_ACTION_WATCH",O3["watch,watch7_html5"]="LATENCY_ACTION_WATCH",O3["watch,watch7ad"]="LATENCY_ACTION_WATCH",O3["watch,watch7ad_html5"]= "LATENCY_ACTION_WATCH",O3.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",O3.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",O3["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",O3["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",O3["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",O3["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",O3["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",O3["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",O3["video.live_streaming"]= "LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",O3["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",O3["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",O3.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",O3.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",O3.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",O3),P3={},yva=(P3.ad_allowed="adTypesAllowed",P3.yt_abt="adBreakType",P3.ad_cpn="adClientPlaybackNonce",P3.ad_docid="adVideoId", P3.yt_ad_an="adNetworks",P3.ad_at="adType",P3.aida="appInstallDataAgeMs",P3.browse_id="browseId",P3.p="httpProtocol",P3.t="transportProtocol",P3.cs="commandSource",P3.cpn="clientPlaybackNonce",P3.ccs="creatorInfo.creatorCanaryState",P3.ctop="creatorInfo.topEntityType",P3.csn="clientScreenNonce",P3.docid="videoId",P3.GetHome_rid="requestIds",P3.GetSearch_rid="requestIds",P3.GetPlayer_rid="requestIds",P3.GetWatchNext_rid="requestIds",P3.GetBrowse_rid="requestIds",P3.GetLibrary_rid="requestIds",P3.is_continuation= "isContinuation",P3.is_nav="isNavigation",P3.b_p="kabukiInfo.browseParams",P3.is_prefetch="kabukiInfo.isPrefetch",P3.is_secondary_nav="kabukiInfo.isSecondaryNav",P3.nav_type="kabukiInfo.navigationType",P3.prev_browse_id="kabukiInfo.prevBrowseId",P3.query_source="kabukiInfo.querySource",P3.voz_type="kabukiInfo.vozType",P3.yt_lt="loadType",P3.mver="creatorInfo.measurementVersion",P3.yt_ad="isMonetized",P3.nr="webInfo.navigationReason",P3.nrsu="navigationRequestedSameUrl",P3.pnt="performanceNavigationTiming", P3.prt="playbackRequiresTap",P3.plt="playerInfo.playbackType",P3.pis="playerInfo.playerInitializedState",P3.paused="playerInfo.isPausedOnLoad",P3.yt_pt="playerType",P3.fmt="playerInfo.itag",P3.yt_pl="watchInfo.isPlaylist",P3.yt_pre="playerInfo.preloadType",P3.yt_ad_pr="prerollAllowed",P3.pa="previousAction",P3.yt_red="isRedSubscriber",P3.rce="mwebInfo.responseContentEncoding",P3.rc="resourceInfo.resourceCache",P3.scrh="screenHeight",P3.scrw="screenWidth",P3.st="serverTimeMs",P3.ssdm="shellStartupDurationMs", P3.br_trs="tvInfo.bedrockTriggerState",P3.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",P3.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",P3.label="tvInfo.label",P3.is_mdx="tvInfo.isMdx",P3.preloaded="tvInfo.isPreloaded",P3.aac_type="tvInfo.authAccessCredentialType",P3.upg_player_vis="playerInfo.visibilityState",P3.query="unpluggedInfo.query",P3.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",P3.yt_vst="videoStreamType",P3.vph="viewportHeight",P3.vpw="viewportWidth",P3.yt_vis= "isVisible",P3.rcl="mwebInfo.responseContentLength",P3.GetSettings_rid="requestIds",P3.GetTrending_rid="requestIds",P3.GetMusicSearchSuggestions_rid="requestIds",P3.REQUEST_ID="requestIds",P3),zva="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(" "), Q3={},Ava=(Q3.ccs="CANARY_STATE_",Q3.mver="MEASUREMENT_VERSION_",Q3.pis="PLAYER_INITIALIZED_STATE_",Q3.yt_pt="LATENCY_PLAYER_",Q3.pa="LATENCY_ACTION_",Q3.ctop="TOP_ENTITY_TYPE_",Q3.yt_vst="VIDEO_STREAM_TYPE_",Q3),Bva="all_vc ap aq c cbr cbrand cbrver cmodel cos cosver cplatform ctheme cver 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(" ");var U={LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING:179,LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_COMMERCE_TRANSACTION:184,LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC:173,LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC:172, LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC:171,LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC:170,LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC:169,LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC:168,LATENCY_ACTION_GET_OFFERS_RPC:167,LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC:166,LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC:165,LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC:164,LATENCY_ACTION_GET_OFFER_DETAILS_RPC:163,LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC:162,LATENCY_ACTION_GET_TIP_MODULE_RPC:161,LATENCY_ACTION_HANDLE_TRANSACTION_RPC:160, LATENCY_ACTION_COMPLETE_TRANSACTION_RPC:159,LATENCY_ACTION_GET_CART_RPC:158,LATENCY_ACTION_THUMBNAIL_FETCH:156,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_GENERIC_WEB_VIEW:183,LATENCY_ACTION_SHOPPING_IN_APP:124,LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_DOWNLOADS_DATA_ACCESS:180, LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138,LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131,LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95, LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58, LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_STREAM_TRANSFER:178,LATENCY_ACTION_MDX_CAST:120,LATENCY_ACTION_MDX_COMMAND:12, LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_EDIT_AUDIO_GEN:182,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING:157,LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103, LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_STORE:175,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92, LATENCY_ACTION_KIDS_SECRET_CODE:91,LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89,LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_PROMOTION_LIST:186,LATENCY_ACTION_CREATOR_PROMOTION_EDIT:185,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51, LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,LATENCY_ACTION_CREATOR_SONG_ANALYTICS:176,LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT:174,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32, LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT:177,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84, LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_EXPERIMENTAL_WATCH_UI:181,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57, LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16, LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_HOME:1,LATENCY_ACTION_STARTUP:106,LATENCY_ACTION_UNKNOWN:0};U[U.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";U[U.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";U[U.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER"; U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";U[U.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";U[U.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";U[U.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";U[U.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";U[U.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION"; U[U.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";U[U.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";U[U.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";U[U.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC";U[U.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC"; U[U.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";U[U.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";U[U.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";U[U.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";U[U.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC";U[U.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC"; U[U.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";U[U.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";U[U.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";U[U.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";U[U.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC";U[U.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH"; U[U.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";U[U.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";U[U.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";U[U.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";U[U.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW";U[U.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP"; U[U.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";U[U.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";U[U.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";U[U.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";U[U.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";U[U.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";U[U.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS"; U[U.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";U[U.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";U[U.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";U[U.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";U[U.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE"; U[U.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";U[U.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";U[U.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";U[U.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";U[U.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";U[U.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";U[U.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY"; U[U.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";U[U.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";U[U.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";U[U.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";U[U.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";U[U.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE"; U[U.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";U[U.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";U[U.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";U[U.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";U[U.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";U[U.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";U[U.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH"; U[U.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";U[U.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";U[U.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";U[U.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";U[U.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";U[U.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";U[U.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED"; U[U.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";U[U.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";U[U.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";U[U.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";U[U.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";U[U.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";U[U.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";U[U.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS"; U[U.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";U[U.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";U[U.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";U[U.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";U[U.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";U[U.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD"; U[U.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";U[U.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";U[U.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";U[U.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";U[U.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";U[U.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";U[U.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION"; U[U.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";U[U.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";U[U.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";U[U.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";U[U.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE";U[U.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";U[U.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE"; U[U.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";U[U.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";U[U.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";U[U.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";U[U.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";U[U.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";U[U.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";U[U.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS"; U[U.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";U[U.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";U[U.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";U[U.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";U[U.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST";U[U.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT"; U[U.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC"; U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";U[U.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";U[U.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST"; U[U.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";U[U.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";U[U.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";U[U.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";U[U.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";U[U.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES"; U[U.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION"; U[U.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";U[U.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";U[U.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";U[U.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE"; U[U.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";U[U.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";U[U.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";U[U.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";U[U.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS"; U[U.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";U[U.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";U[U.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";U[U.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";U[U.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";U[U.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";U[U.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";U[U.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST"; U[U.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";U[U.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";U[U.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";U[U.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";U[U.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";U[U.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";U[U.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING"; U[U.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";U[U.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";U[U.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";U[U.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";U[U.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";U[U.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";U[U.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH"; U[U.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";U[U.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";U[U.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";U[U.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";U[U.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";U[U.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";U[U.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";U[U.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";U[U.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS"; U[U.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";U[U.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";U[U.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var bB={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};bB[bB.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";bB[bB.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";bB[bB.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN"; var cB={CONN_INVALID:31,CONN_CELLULAR_5G_NSA:12,CONN_CELLULAR_5G_SA:11,CONN_WIFI_METERED:10,CONN_CELLULAR_5G:9,CONN_DISCO:8,CONN_CELLULAR_UNKNOWN:7,CONN_CELLULAR_4G:6,CONN_CELLULAR_3G:5,CONN_CELLULAR_2G:4,CONN_WIFI:3,CONN_NONE:2,CONN_UNKNOWN:1,CONN_DEFAULT:0};cB[cB.CONN_INVALID]="CONN_INVALID";cB[cB.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";cB[cB.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";cB[cB.CONN_WIFI_METERED]="CONN_WIFI_METERED";cB[cB.CONN_CELLULAR_5G]="CONN_CELLULAR_5G"; cB[cB.CONN_DISCO]="CONN_DISCO";cB[cB.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";cB[cB.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";cB[cB.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";cB[cB.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";cB[cB.CONN_WIFI]="CONN_WIFI";cB[cB.CONN_NONE]="CONN_NONE";cB[cB.CONN_UNKNOWN]="CONN_UNKNOWN";cB[cB.CONN_DEFAULT]="CONN_DEFAULT"; var dB={DETAILED_NETWORK_TYPE_NR_NSA:126,DETAILED_NETWORK_TYPE_NR_SA:125,DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED:124,DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT:123,DETAILED_NETWORK_TYPE_DISCONNECTED:122,DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN:121,DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN:120,DETAILED_NETWORK_TYPE_WIMAX:119,DETAILED_NETWORK_TYPE_ETHERNET:118,DETAILED_NETWORK_TYPE_BLUETOOTH:117,DETAILED_NETWORK_TYPE_WIFI:116,DETAILED_NETWORK_TYPE_LTE:115,DETAILED_NETWORK_TYPE_HSPAP:114,DETAILED_NETWORK_TYPE_EHRPD:113, DETAILED_NETWORK_TYPE_EVDO_B:112,DETAILED_NETWORK_TYPE_UMTS:111,DETAILED_NETWORK_TYPE_IDEN:110,DETAILED_NETWORK_TYPE_HSUPA:109,DETAILED_NETWORK_TYPE_HSPA:108,DETAILED_NETWORK_TYPE_HSDPA:107,DETAILED_NETWORK_TYPE_EVDO_A:106,DETAILED_NETWORK_TYPE_EVDO_0:105,DETAILED_NETWORK_TYPE_CDMA:104,DETAILED_NETWORK_TYPE_1_X_RTT:103,DETAILED_NETWORK_TYPE_GPRS:102,DETAILED_NETWORK_TYPE_EDGE:101,DETAILED_NETWORK_TYPE_UNKNOWN:0};dB[dB.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA"; dB[dB.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";dB[dB.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";dB[dB.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";dB[dB.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";dB[dB.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";dB[dB.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN"; dB[dB.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";dB[dB.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";dB[dB.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";dB[dB.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";dB[dB.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";dB[dB.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";dB[dB.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";dB[dB.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B"; dB[dB.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";dB[dB.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";dB[dB.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";dB[dB.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";dB[dB.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";dB[dB.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";dB[dB.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";dB[dB.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA"; dB[dB.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";dB[dB.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";dB[dB.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";dB[dB.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var eB={LATENCY_PLAYER_RTSP:7,LATENCY_PLAYER_HTML5_INLINE:6,LATENCY_PLAYER_HTML5_FULLSCREEN:5,LATENCY_PLAYER_HTML5:4,LATENCY_PLAYER_FRAMEWORK:3,LATENCY_PLAYER_FLASH:2,LATENCY_PLAYER_EXO:1,LATENCY_PLAYER_UNKNOWN:0}; eB[eB.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";eB[eB.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";eB[eB.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";eB[eB.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";eB[eB.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";eB[eB.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";eB[eB.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";eB[eB.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN"; var fB={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};fB[fB.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";fB[fB.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";fB[fB.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";fB[fB.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var gB={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0}; gB[gB.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";gB[gB.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var hB={LIVE_STREAM_MODE_WINDOW:5,LIVE_STREAM_MODE_POST:4,LIVE_STREAM_MODE_LP:3,LIVE_STREAM_MODE_LIVE:2,LIVE_STREAM_MODE_DVR:1,LIVE_STREAM_MODE_UNKNOWN:0};hB[hB.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";hB[hB.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";hB[hB.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP"; hB[hB.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";hB[hB.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";hB[hB.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var iB={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};iB[iB.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";iB[iB.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";iB[iB.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";iB[iB.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED"; var jB={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};jB[jB.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";jB[jB.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";jB[jB.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var kB={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};kB[kB.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN"; kB[kB.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";kB[kB.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var Eva="actionVisualElement spinnerInfo resourceInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo webViewInfo prefetchInfo accelerationSession commerceInfo webInfo tvInfo kabukiInfo mwebInfo musicInfo".split(" ");var UA=g.C.ytLoggingLatencyUsageStats_||{};g.Fa("ytLoggingLatencyUsageStats_",UA);SA.prototype.tick=function(a,b,c,d){VA(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.S("web_csi_via_jspb")?(d=new Bt,g.E(d,1,a),g.E(d,2,b),a=new Vt,Jd(a,Bt,5,vy,d),uy(a,c)):g.Lv("latencyActionTicked",{tickName:a,clientActionNonce:b},c))}; SA.prototype.info=function(a,b,c){var d=Object.keys(a).join("");VA(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Lv("latencyActionInfo",a,{cttAuthInfo:c}))}; SA.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e=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{QC:b,Wo:c}}; UB.prototype.isFocused=function(a){return a>=this.B&&aa.Na&&this.index.getFirstSegmentNumber()<=a.Na+1}; g.k.update=function(a,b,c){this.index.append(a);fwa(this.index,c);this.index.u=b}; g.k.Xf=function(){return this.nw()?!0:$C.prototype.Xf.call(this)}; g.k.jp=function(a,b){var c=this.index.getSegmentURL(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0c&&(this.segments=this.segments.slice(b))}}; g.k.AC=function(){return this.Pm}; g.k.Jv=function(a){if(!this.pm)return TB.prototype.Jv.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a=b.endTime)b=b.Na+Math.floor((a-b.endTime)/this.ri+1);else{b=lc(this.segments,function(d){return 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.Na-b.Na-1))+1)+b.Na}return this.Bm(b)}; g.k.Bm=function(a){if(!this.pm)return TB.prototype.Bm.call(this,a);if(!this.segments.length)return null;var b=zD(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.ri;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Na-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Na-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Na-d.Na-1),d=d.endTime+(a-d.Na-1)*b);return new SB(a,d,b,0,"sq/"+a,void 0,void 0, !0)};g.v(BD,uD);g.k=BD.prototype;g.k.sz=function(){return!0}; g.k.Xf=function(){return!0}; g.k.ip=function(a){return this.Ks()&&a.u&&!a.Ge||!a.j.index.DI(a.Na)}; g.k.Rp=function(){}; g.k.Fm=function(a,b){return"number"!==typeof a||isFinite(a)?uD.prototype.Fm.call(this,a,void 0===b?!1:b):new qD([new eD(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Fk,void 0,this.Fk*this.info.Rb)],"")}; g.k.jp=function(a,b){var c=void 0===c?!1:c;if(AD(this.index,a))return uD.prototype.jp.call(this,a,b);var d=this.index.getStartTime(a);return new qD([new eD(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,b?0:this.Fk*this.info.Rb,!b)],0<=a?"sq/"+a:"")};g.v(CD,$C);g.k=CD.prototype;g.k.Xm=function(){return!1}; g.k.Ks=function(){return!1}; g.k.sz=function(){return!1}; g.k.Rp=function(){return new qD([new eD(1,this,void 0,"otfInit")],this.I)}; g.k.Du=function(){return null}; g.k.Ox=function(a){this.ip(a);return lxa(this,jD(a),!1)}; g.k.Fm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return lxa(this,a,!0)}; g.k.iI=function(a){1===a.info.type&&(this.j||(this.j=jwa(a.j)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&mxa(this,a.u))}; g.k.ip=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Na&&this.index.getFirstSegmentNumber()<=a.Na+1}; g.k.SH=function(){return 0}; g.k.ZJ=function(){return!1};g.k=DD.prototype;g.k.getOffset=function(a){return this.offsets[a]}; g.k.getStartTime=function(a){return this.j[a]/this.B}; g.k.getStartTimeInPeriod=function(){return 0}; g.k.getIngestionTime=function(){return NaN}; g.k.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.B:-1}; g.k.getDurationTicks=function(a){return a+1=this.getLastSegmentNumber())return 0;var c=0;for(b=this.getStartTime(a)+b;athis.getStartTime(a);a++)c=Math.max(c,this.getByteLength(a)/this.getDuration(a));return c}; g.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.j;this.j=new Float64Array(a+1);for(a=0;athis.info.u||4===this.info.type)return!0;var b=GD(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.u&&1936286840===b;if(3===this.info.type&&0===this.info.Jb)return 1836019558===b||1936286840=== b||1937013104===b||1718909296===b||1701671783===b||1936419184===b}else if(2===this.info.j.info.containerType){if(4>this.info.u||4===this.info.type)return!0;c=GD(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Jb)return 524531317===c||440786851===c}return!0};g.v(JD,$C);g.k=JD.prototype;g.k.Rp=function(a){var b=new eD(2,this,this.indexRange,"indexInfo"),c=[new eD(1,this,this.initRange,"initInfo"),b];0=this.index.getOffset(c+1);)c++;return KD(this,c,b,a.u).j}; g.k.ip=function(a){fD(a);return this.Xf()?!0:a.range.end+1this.info.contentLength&&(b=new bD(b.start,this.info.contentLength-1)),new qD([new eD(4,a.j,b,"getNextRequestInfoByLength")]);4===a.type&&(a=this.Ow(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Jb+a.u;3===a.type&&(fD(a),c=a.Na,d===a.range.end+1&&(c+=1));return KD(this,c,d,b)}; g.k.Ox=function(){return null}; g.k.Fm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return KD(this,a,this.index.getOffset(a),0)}; g.k.Xm=function(){return!0}; g.k.Ks=function(){return!0}; g.k.sz=function(){return!1}; g.k.SH=function(){return this.indexRange.length+this.initRange.length}; g.k.ZJ=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};LD.prototype.isMultiChannelAudio=function(){return 2this.wC()?(this.uc.appendWindowEnd=b,this.uc.appendWindowStart=a):(this.uc.appendWindowStart=a,this.uc.appendWindowEnd=b))}; g.k.ZH=function(){return this.timestampOffset}; g.k.xE=function(a){uU?this.timestampOffset=a:this.supports(1)&&(this.uc.timestampOffset=a)}; g.k.Ad=function(){return uU?this.timestampOffset:this.supports(1)?this.uc.timestampOffset:0}; g.k.Ag=function(a){if(void 0===a?0:a)return this.MB||this.Uh()||(this.bO=this.Ag(!1),this.MB=!0),this.bO;try{return this.uc?this.uc.buffered:this.Mf?this.Mf.webkitSourceBuffered(this.id):eE([0],[Infinity])}catch(b){return eE([],[])}}; g.k.Uh=function(){var a;return(null==(a=this.uc)?void 0:a.updating)||!1}; g.k.Np=function(){return this.hD}; g.k.BC=function(){return this.dQ}; g.k.AL=function(a,b){this.containerType!==a&&(this.supports(4),nE()&&this.uc.changeType(b));this.containerType=a}; g.k.CC=function(){return this.Qe}; g.k.isView=function(){return!1}; g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.uc)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.uc)||!c.appendBuffer);case 2:var d;return!(null==(d=this.uc)||!d.remove);case 3:var e,f;return!!((null==(e=this.uc)?0:e.addEventListener)&&(null==(f=this.uc)?0:f.removeEventListener));case 4:return!(!this.uc||!this.uc.changeType);default:return!1}}; g.k.QB=function(){return!this.Uh()}; g.k.isLocked=function(){return!1}; g.k.Qb=function(a){a.to=this.Ad();a.up=this.Uh();var b,c=(null==(b=this.uc)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.uc)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=fE(this.Ag())}catch(e){}return a}; g.k.ra=function(){this.supports(3)&&(this.uc.removeEventListener("updateend",this.Wc),this.uc.removeEventListener("error",this.Wc));g.cz.prototype.ra.call(this)}; g.k.OE=function(a,b,c){if(!this.supports(2)||this.Uh())return!1;var d=this.Ag(),e=gE(d,a);if(0>e)return!1;try{if(b&&e+1I0a){Y3=I0a;break a}}var J0a=Z3.match("("+g.sf(G0a).join("|")+")");Y3=J0a?G0a[J0a[0]]:0}else Y3=void 0}var PF=Y3,OF=0<=PF;var pza={RED:"red",o4a:"white"};var nza={H$:"adunit",lna:"detailpage",Sna:"editpage",boa:"embedded",hoa:"embedded_unbranded",KAa:"leanback",gPa:"previewpage",HPa:"profilepage",nX:"unplugged",kOa:"playlistoverview",AVa:"sponsorshipsoffer",QSa:"shortspage",Gua:"handlesclaiming",uU:"immersivelivepage"};Aya.prototype.ib=function(a){return"true"===this.flags[a]};var Bya=Promise.resolve(),Eya=window.queueMicrotask?window.queueMicrotask.bind(window):Cya;XE.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;Vu?a=a||K0a[b]:2.2===PF?a=a||L0a[b]:Ou()&&(a=a||M0a[b]);return!!a}; XE.prototype.isTypeSupported=function(a){return this.J?window.cast.receiver.platform.canDisplayType(a):bE(a)}; var L0a={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},M0a={"application/x-mpegURL":"maybe"},K0a={"application/x-mpegURL":"maybe"};$E.prototype.enqueue=function(a,b){this.queue.push({url:a,options:b});Lya(this)}; $E.prototype.flush=function(){for(;this.queue.length;){var a=this.queue.shift();g.Bu(a.url,a.options)}};g.v(aF,g.cz);aF.prototype.add=function(a,b){!this.items[a]&&(b.jy||b.TB||b.PA)&&(this.items[a]=Hca(b),this.ma("vast_info_card_add",a))}; aF.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b}; aF.prototype.get=function(a){return this.items[a]||null}; aF.prototype.isEmpty=function(){return g.Df(this.items)};var XF={DCa:1,ECa:2,FCa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var Mya=!1,cF,dF,eF,fF,gF;hF.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.u,d=0;dthis.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d=this.j&&(this.u=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.j;this.C=!0}; xF.prototype.Rh=function(){return this.I?(yF(this,this.B-this.I)+yF(this,this.B)+yF(this,this.B+this.I))/3:yF(this,this.B)};g.v(jza,g.K);var oza="blogger gac books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),vza={tea:"cbrand",Cea:"cbr",Dea:"cbrver",Owa:"c",Rwa:"cver",Qwa:"ctheme",Pwa:"cplayer",EGa:"cmodel",lIa:"cnetwork",mMa:"cos",nMa:"cosver",CNa:"cplatform"};g.v(dG,g.K);g.k=dG.prototype;g.k.K=function(a){return this.experiments.ib(a)}; g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.gG(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.TF(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,Vu&&(a=Wla())&&(b.ebc=a));return g.xi(d,b)}; g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.gG(this)+"/embed/"+b;d&&(b=g.xi(b,{list:d}));d=c.width;c=c.height;b=g.Ug(b);return'')}; g.k.supportsGaplessAudio=function(){return g.aE&&!Vu&&74<=wma()||g.qB&&g.wc(68)?!0:!1}; g.k.getPlayerType=function(){return this.deviceParams.cplayer}; var yza=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],tza=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"];g.k=BG.prototype;g.k.Bg=function(){return this.j}; g.k.Px=function(){return null}; g.k.WM=function(){var a=this.Px();return a?(a=g.mu(a.j),Number(a.expire)):NaN}; g.k.AK=function(){}; g.k.getHeight=function(){return this.j.video.height};zza.prototype.We=function(){Cza(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.t(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Nc){if(e.Nc.getIsDefault()){c=e.Nc.getId();break a}c||(c=e.Nc.getId())}}d=g.t(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.I||!e.Nc||e.Nc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.t(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.j])for(e=g.t(e),f=e.next();!f.done;f= e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Nc){p=f.Nc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=DG(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(Bza(f,d)+'",URI="'+(q+'"'));l.call(h,m)}c=g.t(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=P0a,d=(h=d.Nc)?'#EXT-X-MEDIA:URI="'+DG(this,d.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0f.getHeight())&&c.push(f)}return c}; CH.prototype.I=function(a,b,c,d){return new g.BH(a,b,c,d)};g.v(DH,g.BH);g.k=DH.prototype;g.k.qB=function(){return this.u.getNumberOfSegments()}; g.k.rB=function(a){var b=this.rows*this.columns*this.D,c=this.u,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a}; g.k.Eu=function(){return this.u.getLastSegmentNumber()}; g.k.LF=function(){return this.u.getFirstSegmentNumber()}; g.k.XM=function(a){this.u=a};g.v(EH,CH);EH.prototype.u=function(a,b){return CH.prototype.u.call(this,"$N|"+a,b)}; EH.prototype.I=function(a,b,c){return new DH(a,b,c,this.isLive)};g.v(g.GH,g.cz);g.k=g.GH.prototype;g.k.V=function(){return this.u}; g.k.K=function(a){return this.u.K(a)}; g.k.fg=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.le)||!a.Ub)}; g.k.bR=function(){this.isDisposed()||(this.j.u||this.j.unsubscribe("refresh",this.bR,this),this.nO(-1))}; g.k.nO=function(a){if(!this.isLivePlayback||!this.Z||"fairplay"!=this.Z.flavor){var b=Uxa(this.j,this.dG);if(0=this.Z&&(g.qz(Error("durationMs was specified incorrectly with a value of: "+this.Z)),this.dj());this.ol();this.G.addEventListener("progresssync",this.oa)}; g.k.Km=function(){uJ.prototype.Km.call(this);this.og("adabandonedreset",!0)}; g.k.ol=function(){var a=this.G.V();nB("apbs",void 0,"video_to_ad");uJ.prototype.ol.call(this);this.D=a.K("disable_rounding_ad_notify")?this.G.getCurrentTime():Math.floor(this.G.getCurrentTime());this.I=this.D+this.Z/1E3;g.bG(a)?this.G.Pa("onAdMessageChange",{renderer:this.B.j,startTimeSecs:this.D}):CCa(this,[new DJ(this.B.j)]);a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Bz(),c=this.B.j.videoAdBreakOffsetMsInt64;b&&g.Lv("adNotify",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3* this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.J){this.ea=!0;b=this.B.j;if(!CJ(b)){g.rz(Error("adMessageRenderer is not augmented on ad started"));return}a=b.slot;b=b.layout;c=g.t(this.J.listeners);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a,f=b;QCa(d.j(),e);a_(d.j(),e,f)}}g.V(this.G.Eb(1),512)&&(g.rz(Error("player stuck during adNotify")),a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Bz(),c=this.B.j.videoAdBreakOffsetMsInt64, b&&g.Lv("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.dj())}; g.k.dj=function(){uJ.prototype.dj.call(this);this.og("adended",!0)}; g.k.Lm=function(a){g.rz(new g.Qv("Player error during adNotify.",{errorCode:a}));uJ.prototype.Lm.call(this,a);this.og("aderror",!0)}; g.k.og=function(a,b){(void 0===b?0:b)||g.rz(Error("TerminateAd directly called from other class during adNotify."));this.G.removeEventListener("progresssync",this.oa);this.Pr();ICa(this,a);"adended"===a||"aderror"===a?this.ma("adnotifyexitednormalorerror"):this.ma(a)}; g.k.dispose=function(){this.G.removeEventListener("progresssync",this.oa);ICa(this);uJ.prototype.dispose.call(this)}; g.k.Pr=function(){g.bG(this.G.V())?this.G.Pa("onAdMessageChange",{renderer:null,startTimeSecs:this.D}):uJ.prototype.Pr.call(this)};HJ.prototype.sendAdsPing=function(a){this.B.send(a,JCa(this),{})}; HJ.prototype.Jf=function(a){var b=this;if(a){var c=JCa(this);Array.isArray(a)?a.forEach(function(d){return b.j.executeCommand(d,c)}):this.j.executeCommand(a,c)}};g.v(IJ,uJ);g.k=IJ.prototype;g.k.Ry=function(){return{currentTime:this.G.getCurrentTime(2,!1),duration:this.B.u,isPlaying:cCa(this.G),isVpaid:!1,isYouTube:!0,volume:this.G.isMuted()?0:this.G.getVolume()/100}}; g.k.sB=function(){var a=this.B.j.legacyInfoCardVastExtension,b=this.B.Sf();a&&b&&this.G.V().oa.add(b,{jy:a});try{var c=this.B.j.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{Dga(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.jg("//tpc.googlesyndication.com/sodar/%{path}");g.rz(new g.Qv("Load Sodar Error.",d instanceof hg,d.constructor===hg,{Message:e.message,"Escaped injector basename":g.Ug(c.siub),"BG vm basename":c.bgub}));if(d.constructor===hg)throw e;}}catch(e){g.qz(e)}DI(this.G,!1); a=iCa(this.B);b=this.G.V();a.iv_load_policy=b.isMobile||g.bG(b)||g.mG(b)?3:1;b=this.G.getVideoData(1);b.Dh&&(a.ctrl=b.Dh);b.di&&(a.ytr=b.di);b.Pn&&(a.ytrcc=b.Pn);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.bj&&(a.vss_credentials_token_type=b.bj),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.ma("adunstarted",-1);this.Z?this.I.start():(this.G.cueVideoByPlayerVars(a,2),this.I.start(),this.G.playVideo(2))}; g.k.gz=function(){uJ.prototype.gz.call(this);this.ma("adpause",2)}; g.k.iz=function(){uJ.prototype.iz.call(this);this.ma("adplay",1)}; g.k.ol=function(){uJ.prototype.ol.call(this);this.I.stop();this.ea.T(this.G,g.uA("bltplayback"),this.EV);var a=new g.sA(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.G.oe([a],2);a=MJ(this);this.D.Ba=a;if(this.G.isMuted()){a=this.j;var b=this.G.isMuted();fJ(a)||hJ(a,b?"mute":"unmute")}this.ma("adplay",1);if(null!==this.J){a=null!==this.D.j.getVideoData(1)?this.D.j.getVideoData(1).clientPlaybackNonce:"";b=MCa(this);for(var c=this.B,d=LCa(this),e=g.t(this.J.listeners), f=e.next();!f.done;f=e.next()){f=f.value;var h=b,l=c,m=d,n=[],p=l.Sf(),q=l.getVideoUrl();p&&n.push(new $Y(p));q&&n.push(new aZ(q));(q=(p=l.j)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new cZ(q)),(q=q.elementId)&&n.push(new lZ(q))):eA("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new dZ(p));l.j.adNextParams&&n.push(new OY(l.j.adNextParams||""));(p=l.Aa)&&n.push(new PY(p));(p=f.Ua.get().Rf(2))?(n.push(new TY({channelId:p.Kk, channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new UY(p.isListed))):eA("Expected meaningful PlaybackData on ad started.");n.push(new WY(l.B));n.push(new sZ(l.u));n.push(new bZ(a));n.push(new oZ({current:this}));p=l.La;null!=p.kind&&n.push(new VY(p));(p=l.Ia)&&n.push(new FZ(p));void 0!==m&&n.push(new GZ(m));f.j?eA(f.j.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):NCa(f,h,n,!0,l.j.adLayoutLoggingData)}}this.G.Pa("onAdStart", MJ(this));a=g.t(this.B.j.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)}; g.k.EV=function(a){"bltcompletion"==a.getId()&&(this.G.Ff("bltplayback",2),iJ(this.j,this.getDuration()),LJ(this,"adended"))}; g.k.dj=function(){uJ.prototype.dj.call(this);this.og("adended");for(var a=g.t(this.B.j.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)}; g.k.Km=function(){uJ.prototype.Km.call(this);this.og("adabandoned")}; g.k.mE=function(){var a=this.j;eJ(a)||mJ(a,"clickthrough");this.C||(a=this.j,eJ(a)||mJ(a,"unmuted_clickthrough"))}; g.k.Zz=function(){this.fI()}; g.k.fI=function(){uJ.prototype.fI.call(this);this.og("adended")}; g.k.Lm=function(a){uJ.prototype.Lm.call(this,a);this.og("aderror")}; g.k.og=function(a){this.I.stop();DI(this.G,!0);"adabandoned"!=a&&this.G.Pa("onAdComplete");LJ(this,a);this.G.Pa("onAdEnd",MJ(this));this.ma(a)}; g.k.Pr=function(){var a=this.G.V();g.bG(a)&&(g.mG(a)||a.K("enable_topsoil_wta_for_halftime")||a.K("enable_topsoil_wta_for_halftime_live_infra")||g.bG(a))?this.G.Pa("onAdInfoChange",null):uJ.prototype.Pr.call(this)}; g.k.mS=function(){this.u_&&this.G.playVideo()}; g.k.u_=function(){return 2==this.G.getPlayerState(2)}; g.k.LO=function(a,b){if(!Number.isFinite(a))return g.qz(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.qz(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=iCa(this.B);d=this.G.ev(d,"",2,c,a,b);a+c>b&&this.G.lx(d,b-a);return d}; g.k.dispose=function(){cCa(this.G)&&!this.Z&&this.G.stopVideo(2);LJ(this,"adabandoned");uJ.prototype.dispose.call(this)};NJ.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.j[b];c?b=c:(c={vy:null,jQ:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(cxI&&(a=Math.max(.1,a)),this.wB(a))}; g.k.stopVideo=function(){var a=this;if(!this.B)if(c1a){if(!this.C){var b=new TJ;b.then(void 0,function(){}); this.C=b;d1a&&this.pause();g.wu(function(){a.C===b&&(XJ(a),b.resolve())},200)}}else XJ(this)}; g.k.Rv=function(){var a=this.Vg();return 0b.j.getCurrentTime(2,!1)&&!b.j.V().K("html5_dai_pseudogapless_seek_killswitch")))){c=b.ad; if(c.rz()){var d=b.B.G.V().K("html5_dai_enable_active_view_creating_completed_adblock");eka(c.I,d)}b.ad.D.seek=!0}0>sJ(a,4)&&!(0>sJ(a,2))&&(b=this.j,c=b.j,eJ(c)||qJ(c,"resume"),b.C||(b=b.j,eJ(b)||qJ(b,"unmuted_resume")));!this.G.V().experiments.ib("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.tJ(a,512)&&!g.gK(a.state)&&this.D.Zw()}}}; g.k.onVideoDataChange=function(){return this.daiEnabled?kDa(this):!1}; g.k.resume=function(){this.j&&this.j.mS()}; g.k.Gv=function(){this.j&&this.j.og("adended")}; g.k.Fp=function(){this.Gv()}; g.k.Ak=function(a){this.oh.Ak(a)}; g.k.FV=function(a){this.oh.j.Pa("onAdUxUpdate",a)}; g.k.onAdUxClicked=function(a){this.j.Cg(a)}; g.k.XO=function(){return 0}; g.k.YO=function(){return 1}; g.k.rL=function(a){this.daiEnabled&&this.u.I&&this.u.j.start<=a&&a=this.C?this.B.j:this.B.j.slice(this.C)).some(function(a){return a.gw()})}; g.k.yz=function(){return this.I instanceof PI||this.I instanceof yJ}; g.k.IR=function(){this.daiEnabled?BI(this.G)&&kDa(this):WDa(this)}; g.k.Qx=function(a){var b=VDa(a);this.I&&b&&this.S!==b&&(b?OEa(this.oh):QEa(this.oh),this.S=b);this.I=a;this.daiEnabled&&(this.C=this.B.j.findIndex(function(c){return c===a})); iK.prototype.Qx.call(this,a)}; g.k.RI=function(a){var b=this;iK.prototype.RI.call(this,a);a.subscribe("adnotifyexitednormalorerror",function(){return void mK(b)})}; g.k.Fp=function(){this.C=this.B.j.length;this.j&&this.j.og("adended");mK(this)}; g.k.Gv=function(){this.onAdEnd()}; g.k.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Ak(0),a?mK(this,b):WDa(this))}; g.k.MQ=function(){if(1==this.B.u)this.I instanceof zJ&&g.rz(Error("AdNotify error with FailureMode.TERMINATING")),mK(this);else this.onAdEnd()}; g.k.HC=function(){var a=0>=this.C?this.B.j:this.B.j.slice(this.C);return 0sJ(a,16)&&(this.J.forEach(this.wJ,this),this.J.clear())}; g.k.G3=function(){if(this.u)this.u.onVideoDataChange()}; g.k.J3=function(){if(BI(this.j)&&this.u){var a=this.j.getCurrentTime(2,!1),b=this.u;b.j&&DCa(b.j,a)}}; g.k.x0=function(){this.Ta=!0;if(this.u){var a=this.u;a.j&&a.j.Km()}}; g.k.J0=function(a){if(this.u)this.u.onAdUxClicked(a)}; g.k.K3=function(){if(2==this.j.getPresentingPlayerType()&&this.u){var a=this.u.j,b=a.j,c=a.G.isMuted();fJ(b)||hJ(b,c?"mute":"unmute");a.C||(b=a.G.isMuted(),hJ(a.j,b?"unmuted_mute":"unmuted_unmute"))}}; g.k.C1=function(a){if(this.u){var b=this.u.j,c=b.j;eJ(c)||mJ(c,a?"fullscreen":"end_fullscreen");b.C||(b=b.j,eJ(b)||mJ(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}}; g.k.hh=function(a,b){this.j.hh(a,b);a=g.t(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Fr.delete(b),this.B.delete(b)}; g.k.u6=function(){for(var a=[],b=g.t(this.Fr),c=b.next();!c.done;c=b.next())c=c.value,xA(c)||a.push(c);b=this.j.app;1!==b.getPresentingPlayerType()||VX(b,"cuerangemarkersupdated",a)}; g.k.Ak=function(a){this.j.Ak(a);switch(a){case 1:this.WC=1;break;case 0:this.WC=0}}; g.k.QK=function(){var a=this.j.getVideoData(2);return a?a.isListed&&!this.S:!1}; g.k.Gv=function(){this.u&&this.u.Is()&&this.u.Gv()}; g.k.Fp=function(){this.u&&this.u.Is()&&this.u.Fp()}; g.k.Zb=function(a){if(this.u){var b=this.u;b.j&&DCa(b.j,a)}}; g.k.executeCommand=function(a,b,c){this.rb.executeCommand(a,b,LEa(this,void 0===c?null:c))}; g.k.isDaiEnabled=function(){return!1}; g.k.VO=function(){return this.Aa}; g.k.WO=function(){return this.Ia};g.v(RK,g.K);RK.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.j.appendChild(a.j)}; g.v(SK,RK);g.v(TEa,g.K);var yT=16/9,f1a=[.25,.5,.75,1,1.25,1.5,1.75,2],g1a=f1a.concat([3,4,5,6,7,8,9,10,15]);var VEa=1;g.v(g.UK,g.K);g.k=g.UK.prototype; g.k.createElement=function(a,b){b=b||"svg"===a.F;var c=a.N,d=a.Fa;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.F);g.qG&&(a.X||(a.X={}),a.X.focusable="false")}else e=g.ih(a.F);if(c){if(c=VK(this,e,"class",c))WK(this,e,"class",c),this.xc[c]=e}else if(d){c=g.t(d);for(var f=c.next();!f.done;f=c.next())this.xc[f.value]=e;WK(this,e,"class",d.join(" "))}d=a.qa;c=a.W;if(d)b=VK(this,e,"child",d),void 0!==b&&e.appendChild(g.jh(b));else if(c)for(d=0,c=g.t(c),f=c.next();!f.done;f=c.next())if(f= f.value)if("string"===typeof f)f=VK(this,e,"child",f),null!=f&&e.appendChild(g.jh(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Ob&&(h=TK(),f.id=h,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","#"+h),g.oh(e,f,d++))}if(a=a.X)for(b=e,d=g.t(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],WK(this,b,c,"string"===typeof f? VK(this,b,c,f):f);return e}; g.k.Ca=function(a){return this.xc[a]}; g.k.Da=function(a,b){"number"===typeof b?g.oh(a,this.element,b):a.appendChild(this.element)}; g.k.detach=function(){g.ph(this.element)}; g.k.update=function(a){for(var b=g.t(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.Oa(c,a[c])}; g.k.Oa=function(a,b){(a=this.Ce["{{"+a+"}}"])&&WK(this,a[0],a[1],b)}; g.k.ra=function(){this.xc={};this.Ce={};this.detach();g.K.prototype.ra.call(this)};g.v(g.W,g.UK);g.k=g.W.prototype;g.k.Sd=function(a,b){this.Oa(b||"content",a)}; g.k.show=function(){this.qb||(g.Bl(this.element,"display",""),this.qb=!0)}; g.k.hide=function(){this.qb&&(g.Bl(this.element,"display","none"),this.qb=!1)}; g.k.Vb=function(a){this.ya=a}; g.k.Ra=function(a,b,c){return this.T(this.element,a,b,c)}; g.k.T=function(a,b,c,d){c=(0,g.Qa)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d}; g.k.yc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})}; g.k.focus=function(){var a=this.element;th(a);a.focus()}; g.k.ra=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.UK.prototype.ra.call(this)};g.v(g.YK,g.W);g.YK.prototype.subscribe=function(a,b,c){return this.Xa.subscribe(a,b,c)}; g.YK.prototype.unsubscribe=function(a,b,c){return this.Xa.unsubscribe(a,b,c)}; g.YK.prototype.Mg=function(a){return this.Xa.Mg(a)}; g.YK.prototype.ma=function(a){return this.Xa.ma.apply(this.Xa,[a].concat(g.u(g.za.apply(1,arguments))))};var h1a=new WeakSet;g.v(ZK,g.YK);g.k=ZK.prototype;g.k.bind=function(a){if(!this.bb&&a.renderer){var b=this.api.V().K("enable_macro_substitution_on_html5")?{}:Object.assign({},SEa(this.api),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()}; g.k.init=function(a,b,c){this.bb=a;this.element.setAttribute("id",this.bb);this.rb&&g.go(this.element,this.rb);this.Z=b&&b.adRendererCommands;this.macros=c;this.J=b.trackingParams||null;null!=this.J&&this.Sg(this.element,this.J)}; g.k.clear=function(){}; g.k.hide=function(){g.YK.prototype.hide.call(this);null!=this.J&&this.Wa(this.element,!1)}; g.k.show=function(){g.YK.prototype.show.call(this);if(!this.zb){this.zb=!0;var a=this.Z&&this.Z.impressionCommand;a&&this.sE(a,null)}null!=this.J&&this.Wa(this.element,!0)}; g.k.onClick=function(a){if(this.J&&!h1a.has(a)){var b=this.element;this.api.Om(b)&&this.qb&&this.api.ub(b,this.j);h1a.add(a)}if(a=this.Z&&this.Z.clickCommand)a=this.SR(a),this.sE(a,this.aP())}; g.k.SR=function(a){return a}; g.k.aP=function(){return null}; g.k.KV=function(a){var b=this.oa;b.J=!0;b.u=a.touches.length;b.j.isActive()&&(b.j.stop(),b.D=!0);a=a.touches;b.I=UEa(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.S=Infinity,b.Z=Infinity):(b.S=c.clientX,b.Z=c.clientY);for(c=b.B.length=0;cMath.pow(5,2))b.C=!0}; g.k.IV=function(a){if(this.oa){var b=this.oa,c=a.changedTouches;c&&b.J&&1==b.u&&!b.C&&!b.D&&!b.I&&UEa(b,c)&&(b.ea=a,b.j.start());b.u=a.touches.length;0===b.u&&(b.J=!1,b.C=!1,b.B.length=0);b.D=!1}}; g.k.sE=function(a){this.api.V().K("enable_macro_substitution_on_html5")?(0Math.random())&&g.rz(Error("Found AdImage without valid image URL")):(this.u?g.Bl(this.element,"backgroundImage","url("+c+")"):eh(this.element,{src:c}),eh(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"), this.show())}; uL.prototype.clear=function(){this.hide()};g.v(vL,ZK);g.k=vL.prototype;g.k.hide=function(){ZK.prototype.hide.call(this);this.C&&this.C.focus()}; g.k.show=function(){this.C=document.activeElement;ZK.prototype.show.call(this);this.D.focus()}; g.k.init=function(a,b,c){ZK.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.qz(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.qz(Error("ConfirmDialogRenderer.cancelLabel was not set.")):tFa(this,b):g.qz(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.k.clear=function(){g.bz(this.u);this.hide()}; g.k.tJ=function(){this.hide()}; g.k.MF=function(){var a=this.B.cancelEndpoint;a&&(this.api.V().K("enable_macro_substitution_on_html5")?this.layoutId?this.Za.executeCommand(a,this.layoutId):g.qz(Error("Missing layoutId for confirm dialog.")):AL(this.Za,a,this.macros));this.hide()}; g.k.uJ=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.api.V().K("enable_macro_substitution_on_html5")?this.layoutId?this.Za.executeCommand(a,this.layoutId):g.qz(Error("Missing layoutId for confirm dialog.")):AL(this.Za,a,this.macros));this.hide()};g.v(wL,ZK);g.k=wL.prototype; g.k.init=function(a,b,c){ZK.prototype.init.call(this,a,b,c);this.B=b;if(null==b.defaultText&&null==b.defaultIcon)g.qz(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.qz(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.go(this.C,a)}a={};b.defaultText? (c=g.zA(b.defaultText),g.db(c)||(a.buttonText=c,this.u.setAttribute("aria-label",c))):g.Nl(this.Ba,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.u.hasAttribute("aria-label")||this.ea.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=nL(b.defaultIcon),this.Oa("untoggledIconTemplateSpec",c),b.toggledIcon?(this.S=!0,c=nL(b.toggledIcon),this.Oa("toggledIconTemplateSpec",c)):(g.Nl(this.I,!0),g.Nl(this.D,!1)),g.Nl(this.u,!1)):g.Nl(this.ea,!1);g.Df(a)||this.update(a);b.isToggled&& (g.go(this.C,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));xL(this);this.T(this.element,"change",this.YM);this.show()}}; g.k.onClick=function(a){0a&&g.qz(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Ta&&g.go(this.B.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.Ba=null==a||0===a?this.u.Kv():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.C.init(EI("ad-text"),d,c);(d=this.api.getVideoData(1))&& d.lm&&b.thumbnail?this.I.init(EI("ad-image"),b.thumbnail,c):this.S.hide()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.B.hide();this.C.hide();this.I.hide();IL(this);GL.prototype.hide.call(this)}; g.k.show=function(){HL(this);this.B.show();this.C.show();this.I.show();GL.prototype.show.call(this)}; g.k.At=function(){this.hide()}; g.k.Hq=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.La&&a>=this.Ba?(this.ea.hide(),this.La=!0,this.ma("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Ba-a)/1E3)),a!=this.Qa&&(FL(this.C,{TIME_REMAINING:String(a)}),this.Qa=a)))}};g.v(NL,GL);g.k=NL.prototype; g.k.init=function(a,b,c){GL.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=this.Ba&&(IL(this),g.io(this.element,"ytp-flyout-cta-inactive"),this.api.V().K("disable_tabbing_before_flyout_ad_elements_appear")&&this.B.element.removeAttribute("tabIndex"))}}; g.k.At=function(){this.clear()}; g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.aN.bind(this))}; g.k.show=function(){this.B&&this.B.show();GL.prototype.show.call(this)}; g.k.hide=function(){this.B&&this.B.hide();GL.prototype.hide.call(this)}; g.k.aN=function(a){"hidden"==a?this.show():this.hide()};g.v(OL,ZK);g.k=OL.prototype; g.k.init=function(a,b,c){ZK.prototype.init.call(this,a,b,c);this.u=b;if(this.u.rectangle)for(this.C.init(EI("toggle-button"),this.u.likeButton.toggleButtonRenderer,c),this.B.init(EI("toggle-button"),this.u.dislikeButton.toggleButtonRenderer,c),this.T(this.element,"change",this.bN),this.D.show(100),this.show(),a=g.t(this.u&&this.u.impressionCommands||[]),b=a.next();!b.done;b=a.next())b=b.value,this.api.V().K("enable_macro_substitution_on_html5")?this.layoutId?this.Za.executeCommand(b,this.layoutId): g.qz(Error("Missing layoutId for instream user sentiment.")):AL(this.Za,b,this.macros)}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.C.hide();this.B.hide();ZK.prototype.hide.call(this)}; g.k.show=function(){this.C.show();this.B.show();ZK.prototype.show.call(this)}; g.k.bN=function(){qka(this.element,"ytp-ad-instream-user-sentiment-selected");this.u.postMessageAction&&this.api.Pa("onYtShowToast",this.u.postMessageAction);this.D.hide()}; g.k.onClick=function(a){0=this.S&&IFa(this,!0)};g.v(SL,oL);SL.prototype.init=function(a,b,c){oL.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.zA(b.text),a=!g.db(a));a?null==b.navigationEndpoint?g.rz(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.rz(Error("Button style was not a link-style type in renderer,")):this.show():g.rz(Error("No visit advertiser text was present in the renderer."))};g.v(TL,ZK);TL.prototype.init=function(a,b,c){ZK.prototype.init.call(this,a,b,c);a=b.text;g.db($K(a))?g.rz(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.u&&(b=this.api.V(),b=a.text+" "+(b&&b.isMobile?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new EL(this.api,this.gb,this.layoutId,this.j,this.Za),a.init(EI("simple-ad-badge"),b,c),a.Da(this.element),g.N(this,a)),this.show())}; TL.prototype.clear=function(){this.hide()};g.v(UL,FI);g.v(VL,g.cz);g.k=VL.prototype;g.k.Kv=function(){return this.durationMs}; g.k.stop=function(){this.j&&this.Wc.yc(this.j)}; g.k.Zb=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ma("h")}; g.k.getProgressState=function(){return this.u}; g.k.Tc=function(a){g.tJ(a,2)&&this.ma("g")};g.v(WL,g.cz);g.k=WL.prototype;g.k.Kv=function(){return this.durationMs}; g.k.start=function(){this.u||(this.u=!0,this.timer.start())}; g.k.stop=function(){this.u&&(this.u=!1,this.timer.stop())}; g.k.Zb=function(){this.j+=100;var a=!1;this.j>this.durationMs&&(this.j=this.durationMs,this.timer.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.j/1E3};this.gb&&this.gb.Zb(this.B.current);this.ma("h");a&&this.ma("g")}; g.k.getProgressState=function(){return this.B};g.v(ZL,GL);g.k=ZL.prototype;g.k.init=function(a,b,c){GL.prototype.init.call(this,a,b,c);var d;if(null==b?0:null==(d=b.templatedCountdown)?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){hu(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new EL(this.api,this.gb,this.layoutId,this.j,this.Za);this.B.init(EI("ad-text"),a,{});this.B.Da(this.element);g.N(this,this.B)}this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){IL(this);GL.prototype.hide.call(this)}; g.k.At=function(){this.hide()}; g.k.Hq=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&this.B&&(a=(this.u instanceof VL?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.u instanceof WL?a.seekableEnd:this.api.getDuration(2,!1))-a.current,FL(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.XL(a)),TIME_REMAINING:String(Math.ceil(a))}))}}; g.k.show=function(){HL(this);GL.prototype.show.call(this)};g.v($L,EL);$L.prototype.onClick=function(a){EL.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.v(eM,g.YK);eM.prototype.Zb=function(){var a=this.u.getProgressState();this.Bc.style.width=100*dM(new aM(a.seekableStart,a.seekableEnd),a.current,0)+"%"}; eM.prototype.onStateChange=function(){g.TF(this.api.V())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.u.subscribe("h",this.Zb,this),this.Zb()):-1!==this.j&&(this.hide(),this.u.Mg(this.j),this.j=-1))};g.v(fM,ZK); fM.prototype.init=function(a,b,c,d){ZK.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new RL(this.api,this.gb,this.layoutId,this.j,this.Za,this.u,this.S),c.Da(this.I),c.init(EI("skip-button"),a.skipAdRenderer,this.macros),g.N(this,c)):a.adPreviewRenderer&&(c=new LL(this.api,this.gb,this.layoutId,this.j,this.Za,this.u,!1),c.Da(this.I),c.init(EI("ad-preview"),a.adPreviewRenderer,this.macros),ML(c),g.N(this,c)));b.brandInteractionRenderer&&(a= b.brandInteractionRenderer.brandInteractionRenderer,c=new OL(this.api,this.gb,this.layoutId,this.j,this.Za),c.Da(this.ea),c.init(EI("instream-user-sentiment"),a,this.macros),g.N(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new NL(this.api,this.gb,this.layoutId,this.j,this.Za,this.u),g.N(this,c),c.Da(this.D),c.init(EI("flyout-cta"),a.flyoutCtaRenderer,this.macros)));d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&& (a={text:{text:"Ad",isTemplated:!1}}),c=new TL(this.api,this.gb,this.layoutId,this.j,this.Za,!0),g.N(this,c),c.Da(this.B),c.init(EI("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new ZL(this.api,this.gb,this.layoutId,this.j,this.Za,this.u,d),g.N(this,d),d.Da(this.B),d.init(EI("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&& (d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new DL(this.api,this.gb,this.layoutId,this.j,this.Za,this.element),g.N(this,a),a.Da(this.B),a.init(EI("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=KFa(this)&&this.C?this.C:this.B))&&(a=new SL(this.api,this.gb,this.layoutId,this.j,this.Za),g.N(this,a),a.Da(d),a.init(EI("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.V())&&!QF(b)&& "3"==b.controlsType&&(b=new eM(this.api,this.u),b.Da(this.Ba),g.N(this,b));this.api.V().K("enable_updated_html5_player_focus_style")&&g.go(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; fM.prototype.clear=function(){this.hide()};g.Fa("yt.pubsub.publish",g.Vx);var uM={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var nM=Symbol("injectionDeps");lM.prototype.toString=function(){return"InjectionToken("+this.name+")"}; UFa.prototype.resolve=function(a){return a instanceof mM?oM(this,a.key,[],!0):oM(this,a,[])};var EM;var m4={},WFa=(m4.WEB_UNPLUGGED="^unplugged/",m4.WEB_UNPLUGGED_ONBOARDING="^unplugged/",m4.WEB_UNPLUGGED_OPS="^unplugged/",m4.WEB_UNPLUGGED_PUBLIC="^unplugged/",m4.WEB_CREATOR="^creator/",m4.WEB_KIDS="^kids/",m4.WEB_EXPERIMENTS="^experiments/",m4.WEB_MUSIC="^music/",m4.WEB_REMIX="^music/",m4.WEB_MUSIC_EMBEDDED_PLAYER="^music/",m4.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",m4);rM.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?uM:c;var d={context:g.tK(a.clickTrackingParams,!1,this.C)};var e=this.j(a);if(e){this.u(d,e,b);var f;b=g.qM(this.B());(e=null==(f=g.$u(a.commandMetadata,AZa))?void 0:f.apiUrl)&&(b=e);f=Bma(av(b));a=g.S("kevlar_response_command_processor_page")?Object.assign({},{command:a},void 0):Object.assign({},void 0);d={input:f,Kq:bv(f),Sm:d,config:a};d.config.Kr?d.config.Kr.identity=c:d.config.Kr={identity:c};return d}g.qz(new g.Qv("Error: Failed to create Request from Command.", a))}; g.ca.Object.defineProperties(rM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.v(sM,rM);sM.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",Kq:bv("/getDatasyncIdsEndpoint","GET"),Sm:{}}}; sM.prototype.B=function(){return[]}; sM.prototype.j=function(){}; sM.prototype.u=function(){};var i1a={},YFa=(i1a.GET_DATASYNC_IDS=pM(sM),i1a);var cGa="tokens consistency mss client_location entities response_received_commands store PLAYER_PRELOAD".split(" "),eGa=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse"];var hGa=new lM("INNERTUBE_TRANSPORT_TOKEN");g.v(wM,rM);wM.prototype.B=function(){return i0a}; wM.prototype.j=function(a){return g.$u(a,V_a)||void 0}; wM.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)}; g.ca.Object.defineProperties(wM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(xM,rM);xM.prototype.B=function(){return j0a}; xM.prototype.j=function(a){return g.$u(a,T_a)||void 0}; xM.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)}; g.ca.Object.defineProperties(xM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(yM,rM);yM.prototype.B=function(){return f0a}; yM.prototype.j=function(a){return g.$u(a,UIa)||void 0}; yM.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))}; g.ca.Object.defineProperties(yM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(zM,rM);zM.prototype.B=function(){return g0a}; zM.prototype.j=function(a){return g.$u(a,S_a)||void 0}; zM.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.v(AM,rM);AM.prototype.B=function(){return h0a}; AM.prototype.j=function(a){return g.$u(a,Q_a)||void 0}; AM.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.v(BM,rM);BM.prototype.B=function(){return e0a}; BM.prototype.j=function(a){return g.$u(a,F_a)}; BM.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var TFa=new lM("NETWORK_SLI_TOKEN");CM.prototype.fetch=function(a,b){var c=this,d,e;return g.A(function(f){c.j&&(d=ii(g.pi(5,Ai(a,"key")))||"/UNKNOWN_PATH",c.j.start(d));e=new window.Request(a,b);return g.S("web_fetch_promise_cleanup_killswitch")?f.return(Promise.resolve(fetch(e).then(function(h){return c.handleResponse(h)}).catch(function(h){g.rz(h)}))):f.return(fetch(e).then(function(h){return c.handleResponse(h)}).catch(function(h){g.rz(h)}))})}; CM.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))}); a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.failure(),b=b.then(function(c){g.rz(new g.Qv("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})})); return b}; CM[nM]=[new mM];var gGa=new lM("NETWORK_MANAGER_TOKEN");var DM;GM.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f=new XMLHttpRequest;f.onerror=function(){e(d.handleResponse(a,f.status,f.response))}; f.onload=function(){e(d.handleResponse(a,f.status,f.response))}; if(null==c?0:c.Aw)f.onreadystatechange=function(p){c.Aw(f,p)}; var h;f.open(null!=(h=b.method)?h:"GET",a,!0);f.responseType="text";f.withCredentials=!0;if(b.headers){h=g.t(Object.entries(b.headers));for(var l=h.next();!l.done;l=h.next()){var m=g.t(l.value);l=m.next().value;m=m.next().value;f.setRequestHeader(l,m)}}var n;f.send(null!=(n=b.body)?n:null)})}; GM.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.rz(new g.Qv("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.rz(new g.Qv("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};var jGa=[],HM=!1;IM.getInstance=function(){var a=g.Ga("ytglobal.storage_");a||(a=new IM,g.Fa("ytglobal.storage_",a));return a}; IM.prototype.estimate=function(){var a,b,c;return g.A(function(d){a=navigator;return(null==(b=a.storage)?0:b.estimate)?d.return(a.storage.estimate()):(null==(c=a.webkitTemporaryStorage)?0:c.queryUsageAndQuota)?d.return(mGa()):d.return()})}; g.Fa("ytglobal.storageClass_",IM);Jv.prototype.Ez=function(a){this.handleError(a)}; Jv.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.S("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.S("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":oGa(this,b);break;case "TRANSACTION_ENDED":this.B&&this.j("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({}, b,{hasWindowUnloaded:this.u}),this.j("idbTransactionAborted",a)}};g.k=JM.prototype; g.k.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterScript)?d:null,f;d=null!=(f=a.interpreterUrl)?f:null;a.interpreterSafeScript&&(e=a.interpreterSafeScript,g.jg("From proto message. b/166824318"),e=Vca(e.privateDoNotAccessOrElseSafeScriptWrappedValue||"").toString());a.interpreterSafeUrl&&(f=a.interpreterSafeUrl,g.jg("From proto message. b/166824318"),d=g.mg(f.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());qGa(this,e,d,a.program,b,c)}else g.rz(Error("Cannot initialize botguard without program"))}; g.k.isInitialized=function(){return!!this.fz()}; g.k.getState=function(){return this.state}; g.k.invoke=function(a){a=void 0===a?{}:a;var b=this.fz();if(b){var c={py:a};if(b.fC)throw Error("Already disposed");a=Wi();var d;null!=(d=b.Rr)&&d.u.j.Ar("/client_streamz/bg/fsc",d.ih);d=b.K5([c.py,c.i5]);var e;null!=(e=b.Rr)&&e.B.gh(Wi()-a,e.ih);b=d}else b=null;return b}; g.k.dispose=function(){this.ra()}; g.k.ra=function(){this.LK(null);this.Uc(8)}; g.k.fz=function(){return this.j}; g.k.LK=function(a){g.Ze(this.j);this.j=a}; g.k.Uc=function(a){this.state=a};g.v(LM,JM);LM.prototype.ra=function(){this.Uc(8)}; LM.prototype.fz=function(){return g.Ga("yt.abuse.playerAttLoader")}; LM.prototype.LK=function(a){g.Ze(g.Ga("yt.abuse.playerAttLoader"));g.Fa("yt.abuse.playerAttLoader",a)};var MM,$M;g.KM=new LM;MM=0;$M=[];var vGa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var FGa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},GGa={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},HGa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},EGa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},CGa={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF", 2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},DGa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};g.v(hN,g.K);hN.prototype.ra=function(){this.S=this.u=this.B=this.I=this.j=this.J=this.D=this.C=void 0};var n4={},NGa=(n4["api.invalidparam"]=2,n4.auth=150,n4["drm.auth"]=150,n4["heartbeat.net"]=150,n4["heartbeat.servererror"]=150,n4["heartbeat.stop"]=150,n4["html5.unsupportedads"]=5,n4["fmt.noneavailable"]=5,n4["fmt.decode"]=5,n4["fmt.unplayable"]=5,n4["html5.missingapi"]=5,n4["html5.unsupportedlive"]=5,n4["drm.unavailable"]=5,n4["mrm.blocked"]=151,n4);var QGa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.v(jN,g.K);g.k=jN.prototype; g.k.handleExternalCall=function(a,b,c){var d=this.state.D[a],e=this.state.J[a],f=d;if(e)if(c&&mA(c,k0a))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.V();d.Tl&&!this.state.S.has(a)&&(this.state.S.add(a),g.Lv("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:c||void 0,playerStyle:d.playerStyle||void 0}));if(f){c=!1;d=g.t(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.rz(Error('Dangerous call to "'+a+ '" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');}; g.k.isExternalMethodAvailable=function(a,b){return this.state.D[a]?!0:!!(this.state.J[a]&&b&&mA(b,k0a))}; g.k.getBandwidthEstimate=function(){return CF(this.app.V().schedule)}; g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.oN(this.app);b&&(a={gpu:(0,g.jW)(),d:a},b.handleError(new yG("feedback",a)))}; g.k.getApiInterface=function(){return Array.from(this.state.C)}; g.k.getInternalApiInterface=function(){return g.sf(this.state.j)}; g.k.KX=function(a,b){if("string"===typeof b){var c=function(){var d=g.za.apply(0,arguments);g.Ga(b).apply(window,d)}; this.state.I[b]=c}else c=b;this.app.Wn.subscribe(a,c)}; g.k.u4=function(a,b){if("string"===typeof b){var c=this.state.I[b];g.Ef(this.state.I,b);b=c}this.app.Wn.unsubscribe(a,b)}; g.k.getPlayerState=function(){return FSa(this.app)}; g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)}; g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)}; g.k.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.k.seekTo=function(a,b,c){Ema(uza(this.app.V()))||(this.j&&lY(this.app,!0,this.playerType),pY(this.app,a,b,c,this.playerType))}; g.k.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)}; g.k.startSeekCsiAction=function(){this.app.Gi().D.j=(0,g.T)()}; g.k.seekToStreamTime=function(a,b,c){this.j&&lY(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 h=g.oN(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.Ad()&&(l=h.getStreamTimeOffset());pY(d,a-l,b,c,e,f)}; g.k.getStreamTimeOffset=function(){var a=g.oN(this.app,1);return a?a.getStreamTimeOffset():0}; g.k.seekToLiveHead=function(a,b){var c=g.oN(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&pY(this.app,Infinity,a,b,this.playerType)}; g.k.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)}; g.k.getMediaReferenceTime=function(){var a=this.app.getIngestionTime(this.playerType);return isNaN(a)?this.getCurrentTime():a}; g.k.getDuration=function(){return this.app.getDuration(this.playerType)}; g.k.getVolume=function(){return this.app.Eh.volume}; g.k.setVolume=function(a){WGa(this,a)}; g.k.syncVolume=function(){var a=mSa(this.app);nN(this.app,{volume:a.volume,muted:a.muted},!1)}; g.k.isMuted=function(){return this.app.Eh.muted}; g.k.mute=function(){XGa(this)}; g.k.unMute=function(){YGa(this)}; g.k.getPlayerMode=function(){var a={};this.app.getVideoData().D&&(a.pfp={enableIma:this.app.V().Tg&&this.app.Zc().allowImaMonetization,autoplay:rI(this.app.Zc()),mutedAutoplay:this.app.Zc().mutedAutoplay});return a}; g.k.playVideo=function(){this.j&&lY(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Fe()){var b=rO(this.app.wb());if(!XXa(b)){b.hn("control_play");return}if(YXa(b))return}3===a?wN(this.app.wb()).hn("control_play"):this.app.playVideo(a)}; g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Fe()){var b=rO(this.app.wb());if(!XXa(b)){b.hn("control_pause");return}}3===a?wN(this.app.wb()).hn("control_pause"):this.app.pauseVideo(a)}; g.k.stopVideo=function(){var a=this.app;a.Y.jc&&a.Va.ma("pageTransition");a.stopVideo()}; g.k.clearVideo=function(){}; g.k.getPlaybackRate=function(){return g.oN(this.app,1).getPlaybackRate()}; g.k.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)}; g.k.getAvailablePlaybackRates=function(){var a=this.app.V();if(a.Hd){var b=a.u||a.K("web_player_admin_origin_killswitch")?a.ancestorOrigins[0]:window.location.origin;a=["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(b)||a.Vl?g1a:f1a}else a=[1];return a}; g.k.getPlaybackQuality=function(a){return(a=g.oN(this.app,a))?a.getPlaybackQuality():"unknown"}; g.k.setPlaybackQuality=function(){}; g.k.getAvailableQualityLevels=function(){var a=g.oN(this.app,this.playerType);return a?(a=g.Pk(a.Lp(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]}; g.k.getAvailableQualityLabels=function(){var a=g.oN(this.app,this.playerType);return a?g.Pk(a.Lp(),function(b){return b.qualityLabel}):[]}; g.k.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()}; g.k.getVideoBytesTotal=function(){return 1}; g.k.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()}; g.k.getVideoStartBytes=function(){return 0}; g.k.getSize=function(){var a=this.app.fb().getPlayerSize();return{width:a.width,height:a.height}}; g.k.setSize=function(){this.app.fb().resize()}; g.k.channelSubscribed=function(){this.Pa("SUBSCRIBE",this.app.Zc().Kk)}; g.k.channelUnsubscribed=function(){this.Pa("UNSUBSCRIBE",this.app.Zc().Kk)}; g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()}; g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)}; g.k.getCurrentPlaylistSequence=function(){return g.oN(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())}; g.k.getPlaylistSequenceForTime=function(a){return g.oN(this.app).getPlaylistSequenceForTime(a)}; g.k.shouldSendVisibilityState=function(){return!0}; g.k.confirmYpcRental=function(){var a=g.oN(this.app,this.playerType);a&&a.wf("ypc_clickwrap")}; g.k.setHomeGroupInfo=function(a){this.app.V().homeGroupInfo=a}; g.k.setConnectedRemoteApps=function(a){this.app.V().Ul=a}; g.k.setLivingRoomAppMode=function(a){this.app.V().livingRoomAppMode=ev("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,jZa)}; g.k.setEnablePrivacyFilter=function(a){this.app.V().enablePrivacyFilter=void 0===a?!1:a}; g.k.isPictureInPictureAllowed=function(){return this.app.Zc().wL}; g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()}; g.k.loadModule=function(a){"captions"===a&&(a=g.mO(this.app.wb()))&&!a.loaded&&a.load()}; g.k.unloadModule=function(a){"captions"===a&&(a=g.mO(this.app.wb()))&&a.loaded&&a.o6()}; g.k.loadVideoById=function(a,b,c){a&&(a=iN(a,b,c),a=this.app.loadVideoByPlayerVars(a,this.playerType),this.j&&lY(this.app,a,this.playerType))}; g.k.cueVideoById=function(a,b,c){a=iN(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)}; g.k.loadVideoByUrl=function(a,b,c){a=PGa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.j&&lY(this.app,a,this.playerType)}; g.k.cueVideoByUrl=function(a,b,c){a=PGa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)}; g.k.getVideoUrl=function(){var a=this.app.V();if(a.S)return"";var b=this.app.Zc(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)}; g.k.getDebugText=function(){return this.app.getDebugText()}; g.k.getVideoEmbedCode=function(){var a=this.app.V();if(a.S)return"";var b=this.app.Zc();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Zc().videoId,this.app.fb().getPlayerSize(),this.getPlaylistId()||void 0)}; g.k.addCueRange=function(a,b,c){return nY(this.app,a,b,c)}; g.k.addUtcCueRange=function(a,b,c,d,e){return MSa(this.app,a,b,c,d,e)}; g.k.removeCueRange=function(a){return NSa(this.app,a)}; g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.j&&lY(this.app,!0,this.playerType)}; g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)}; g.k.nextVideo=function(){this.app.nextVideo();this.j&&lY(this.app,!0,this.playerType)}; g.k.previousVideo=function(){this.app.previousVideo();this.j&&lY(this.app,!0,this.playerType)}; g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.j&&lY(this.app,!0,this.playerType)}; g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)}; g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)}; g.k.uZ=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c=c.Lc.length)c=!1;else{d=g.t(c.Lc);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof EG)){c=!1;break a}var f=a.Nc.getId();e.B&&(Aza(e.B,f),e.u=null)}c.hm=a;c=!0}c&&sX(b)&&(b.ma("internalaudioformatchange",b.videoData,!0),b.va("hlsaudio",{id:a.id}))}}}; g.k.fZ=function(){return this.getAvailableAudioTracks()}; g.k.getAvailableAudioTracks=function(){return g.oN(this.app,this.playerType).getAvailableAudioTracks()}; g.k.getMaxPlaybackQuality=function(){var a=g.oN(this.app,this.playerType);return a&&a.getVideoData().B?zB(a.Re?WV(a.Zg,a.Re,a.zs()):FH):"unknown"}; g.k.getUserPlaybackQualityPreference=function(){var a=g.oN(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"}; g.k.getSubtitlesUserSettings=function(){var a=g.mO(this.app.wb());return a?a.wZ():null}; g.k.resetSubtitlesUserSettings=function(){g.mO(this.app.wb()).C4()}; g.k.setMinimized=function(a){this.app.setMinimized(a)}; g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)}; g.k.setGlobalCrop=function(a){this.app.fb().setGlobalCrop(a)}; g.k.getVisibilityState=function(){var a=this.Cf();return this.app.getVisibilityState(this.Dg(),this.isFullscreen()||QF(this.app.V()),a,this.isInline(),this.app.jw(),this.app.ew())}; g.k.isMutedByMutedAutoplay=function(){return this.app.Jz}; g.k.isInline=function(){return this.app.isInline()}; g.k.setInternalSize=function(a,b){this.app.fb().setInternalSize(new g.Lg(a,b))}; g.k.Ad=function(){var a=g.oN(this.app);return a?a.Ad():0}; g.k.Cf=function(){return this.app.Cf()}; g.k.Dg=function(){var a=g.oN(this.app,this.playerType);return!!a&&a.Dg()}; g.k.isFullscreen=function(){return this.app.isFullscreen()}; g.k.setSafetyMode=function(a){this.app.V().enableSafetyMode=a}; g.k.canPlayType=function(a){return this.app.canPlayType(a)}; g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.K("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!==g.ZN(b).videoId||(a.index=b.index)):$X(this.app,{list:a.list,index:a.index,playlist_length:d.length});aO(this.app.getPlaylist(),a);this.Pa("onPlaylistUpdate")}else this.app.updatePlaylist()}; g.k.updateVideoData=function(a,b){var c=g.oN(this.app,this.playerType||1);c&&g.JH(c.getVideoData(),a,b)}; g.k.updateEnvironmentData=function(a){ZF(this.app.V(),a,!1)}; g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)}; g.k.setCardsVisible=function(a,b,c){var d=g.vO(this.app.wb());d&&d.Bi()&&d.setCardsVisible(a,b,c)}; g.k.productsInVideoVisibilityUpdated=function(a){this.ma("changeProductsInVideoVisibility",a)}; g.k.setInline=function(a){this.app.setInline(a)}; g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)}; g.k.getVideoAspectRatio=function(){return this.app.fb().getVideoAspectRatio()}; g.k.getPreferredQuality=function(){var a=g.oN(this.app);return a?a.getPreferredQuality():"unknown"}; g.k.setPlaybackQualityRange=function(a,b,c){var d=g.oN(this.app,this.playerType);d&&g.ORa(d,g.wB(a,b||a,!0,"m"),!0,c)}; g.k.onAdUxClicked=function(a,b){this.ma("aduxclicked",a,b)}; g.k.showAirplayPicker=function(){this.app.showAirplayPicker()}; g.k.addBgVersionChangeCallback=function(a){this.app.addBgVersionChangeCallback(a)}; g.k.dispatchReduxAction=function(a){g.SH.dispatch(a)}; g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.Md.includes(e)||(c.Md.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.$b(c.Md,e)&&(d=!0)}); d&&this.ma("updatemarkervisibility")}; g.k.ma=function(a){var b=g.za.apply(1,arguments);this.app.V().C&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.Wn.ma.apply(this.app.Wn,[a].concat(g.u(b)));this.app.Lo.ma.apply(this.app.Lo,[a].concat(g.u(b)))}; g.k.Pa=function(a){var b=g.za.apply(1,arguments);this.app.Wn.ma.apply(this.app.Wn,[a].concat(g.u(b)));this.app.Lo.ma.apply(this.app.Lo,[a].concat(g.u(b)))}; g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()}; g.k.logImaAdEvent=function(a,b){this.app.V().Tg&&this.app.Zc().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.Dea(this.app.V().loaderUrl),eventType:a,youtubeHost:g.qi(this.app.V().Aa)||""},g.Lv("embedsAdEvent",a))}; g.k.K=function(a){return this.app.V().K(a)}; g.k.ra=function(){if(this.element){var a=this.element,b;for(b in this.state.j)this.state.j.hasOwnProperty(b)&&(a[b]=null);this.element=null}g.K.prototype.ra.call(this)};g.v(rN,jN);g.k=rN.prototype;g.k.addCueRange=function(a,b,c,d,e){return nY(this.app,a,b,c,d,e)}; g.k.getPlayerState=function(a){return FSa(this.app,a)}; g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)}; g.k.previousVideo=function(a){this.app.previousVideo(a)}; g.k.seekBy=function(a,b,c){pY(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)}; g.k.seekTo=function(a,b,c,d){Ema(uza(this.app.V()))||pY(this.app,a,b,c,d||this.playerType)}; g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()}; g.k.getCurrentTime=function(a,b){if(2===this.app.getAppState()&&5===this.getPlayerState()){var c;return(null==(c=this.app.getVideoData())?void 0:c.startSeconds)||0}return a?this.app.getCurrentTime(a,b):jN.prototype.getCurrentTime.call(this)}; g.k.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=wN(this.app.wb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):jN.prototype.getDuration.call(this)}; g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return wN(this.app.wb()).getProgressState();var b=this.app.getVideoData(),c=(g.oN(this.app,a)||g.oN(this.app)).getPlayerType();a:{var d=this.app.getVideoData();var e;if(null==(e=d.progressBarStartPosition)?0:e.utcTimeMillis)if(d=Number(d.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(d)){d=bHa(this,d,a);break a}d=0}var f;a:{e=this.app.getVideoData();if(null==(f=e.progressBarEndPosition)?0:f.utcTimeMillis)if(f=Number(e.progressBarEndPosition.utcTimeMillis)/ 1E3,!isNaN(f)){f=bHa(this,f,a);break a}f=0}e=this.getCurrentTime(a);a=this.getDuration(a);var h=this.app.getIngestionTime(c),l=this.app.isAtLiveHead(c),m=this.app.Rv(),n=this.app.getMinSeekableTime(c);var p=this.app;(c=g.oN(p,c))?(c=YX(p,c),c=iY(p,uS(c),c)):c=0;return{airingStart:d,airingEnd:f,allowSeeking:this.app.fg(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:e,displayedStart:-1,duration:a,ingestionTime:h,isAtLiveHead:l,loaded:m,seekableStart:n,seekableEnd:c}}; g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)}; g.k.getCurrentBroadcastId=function(){return null}; g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){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.qN(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,h)}; g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){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.qN(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,h)}; g.k.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)}; g.k.showControls=function(){var a=g.qN(this);a&&a.showControls(!0)}; g.k.hideControls=function(){var a=g.qN(this);a&&a.showControls(!1)}; g.k.getVideoContentRect=function(a){a=this.app.fb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}}; g.k.setFauxFullscreen=function(a){g.Wy();this.app.Dk(a?2:0)}; g.k.toggleFullscreen=function(){function a(c){g.rz(c)} var b=this.app.V();if(b.externalFullscreen){if(!g.nG(b))return this.isFullscreen()?Yy(window.document.documentElement):Vy(window.document.documentElement).catch(a)}else if(g.Wy()||b.I)return this.isFullscreen()?Yy(Xy()):"3"!==b.controlsType&&g.Wy()?Vy(this.app.fb().element).catch(a):(b=this.app.Qd().yf())?Vy(b).catch(a):Promise.reject(Error("Media element missing"));this.Pa("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)}; g.k.cancelPlayback=function(){var a=rO(this.app.wb());a&&a.created&&a.destroy();(a=g.oN(this.app))&&a.stopVideo();(a=this.app.wb().je.get("endscreen"))&&a.o_()&&g.vN(this.app.Va,!0)}; g.k.stopVideo=function(){var a=this.app.V();!a.K("disable_new_pause_state3")&&iG(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():jN.prototype.stopVideo.call(this)}; g.k.getVideoStats=function(){return g.oN(this.app,this.playerType).Qb(!0)}; g.k.toggleSubtitles=function(){var a=g.mO(this.app.wb());a&&a.T5()}; g.k.getDebugText=function(a){return this.app.getDebugText(a)}; g.k.setSphericalProperties=function(a){if(a){var b=g.yN(this.app.wb());b&&b.setSphericalProperties(a,!0)}}; g.k.getSphericalProperties=function(){var a=g.yN(this.app.wb());return a?a.getSphericalProperties():{}}; g.k.setVolume=function(a,b){WGa(this,a,b)}; g.k.mute=function(a){XGa(this,a)}; g.k.unMute=function(a){YGa(this,a)}; g.k.mutedAutoplay=function(){this.K("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()}; g.k.loadModule=function(a){if("annotations_module"===a){var b=g.vO(this.app.wb());b&&!b.loaded&&b.load()}jN.prototype.loadModule.call(this,a)}; g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.vO(this.app.wb());b&&b.loaded&&b.unload()}jN.prototype.unloadModule.call(this,a)}; g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.wb();switch(a){case "ad":return(a=rO(d))&&a.zg&&a.zg(b,c);case "kids":return(a=sO(d))&&a.zg(b,c);case "remote":return(a=wN(d))&&a.zg(b,c);case "unplugged":return(a=g.tO(d))&&a.zg(b,c);case "annotations_module":return(a=g.vO(d))&&a.zg(b,c);case "creatorendscreen":return(a=wO(d))&&a.zg(b,c)}return jN.prototype.setOption.call(this,a,b,c)}; g.k.getOptions=function(a){var b=this.app.wb();switch(a){case "ad":var c,d;return(null==(c=rO(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=wN(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var h,l;return(null==(h=g.vO(b))?void 0:null==(l=h.getOptions)?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return(null==(m=wO(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null== (p=g.tO(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var r,w;return(null==(r=sO(b))?void 0:null==(w=r.getOptions)?void 0:w.call(r))||null}if(!a){a=jN.prototype.getOptions.call(this);if(!a)return a;rO(b)&&a.push("ad");wN(b)&&a.push("remote");g.vO(b)&&a.push("annotations_module");wO(b)&&a.push("creatorendscreen");g.tO(b)&&a.push("unplugged");sO(b)&&a.push("kids");return a}return jN.prototype.getOptions.call(this,a)}; g.k.getPlayerSize=function(){var a=this.app.fb().getPlayerSize();return{width:a.width,height:a.height}}; g.k.wakeUpControls=function(){var a=g.qN(this);a&&a.An()}; g.k.setCenterCrop=function(a){this.app.fb().setCenterCrop(a)}; g.k.getLoopVideo=function(){return this.app.getLoopVideo()}; g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)}; var $Ga="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pipable playsinline plid post_live_playback postid ps public rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "), aHa="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");g.v(g.tN,rN);g.k=g.tN.prototype;g.k.Ll=function(a,b,c,d,e,f,h){return this.app.Ll(a,b,c,d,e,f,h)}; g.k.Ly=function(){return this.app.Ly()}; g.k.Kp=aa(4);g.k.wb=function(){return this.app.wb()}; g.k.Ze=function(){var a=this.wb().je.get("endscreen");return!!a&&a.Ze()}; g.k.getRootNode=function(){return this.fb().element}; g.k.V=function(){return this.app.V()}; g.k.Sv=aa(6);g.k.Em=function(a){return this.app.Em(a)}; g.k.Gm=function(){return this.settingsMenu}; g.k.Yy=function(){return this.NF}; g.k.Eb=function(a){return this.app.Eb(a)}; g.k.fb=function(){return this.app.fb()}; g.k.getPlaylist=function(){return this.app.getPlaylist()}; g.k.getVideoData=function(a){var b=g.oN(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a){a=this.app;if(null==(b=a.Rd))b=void 0;else{var d=a.getCurrentTime();b=b.Cp?void 0:null==(c=PS(b,1E3*d))?void 0:c.videoData}c=b||a.getVideoData()}else c=b;return c}; g.k.Ji=function(a){return this.app.Ji(a)}; g.k.isWidescreen=function(){return this.app.isWidescreen()}; g.k.isHdr=function(){var a=g.oN(this.app);return a?a.isHdr():!1}; g.k.xz=function(){return this.app.xz()}; g.k.Uw=function(a){this.app.Uw(a)}; g.k.jg=function(a,b,c,d,e){this.app.Nf(a,b,c,d,e)}; g.k.To=function(a,b){this.app.To(a,b)}; g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){wN(this.app.wb()).hn("control_play");return}if(2===this.getPresentingPlayerType()){var b=rO(this.app.wb());if(b&&YXa(b))return}}catch(c){g.qz(c)}this.app.playVideo(a)}; g.k.stopVideo=function(a){g.oN(this.app,a).stopVideo()}; g.k.No=function(a){g.oN(this.app,a).No()}; g.k.addEventListener=function(a,b){this.app.Lo.subscribe(a,b)}; g.k.removeEventListener=function(a,b){this.app.Lo.unsubscribe(a,b)}; g.k.ma=function(a){rN.prototype.ma.call.apply(rN.prototype.ma,[this,a].concat(g.u(g.za.apply(1,arguments))))}; g.k.Ak=function(a){this.app.Ak(a)}; g.k.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)}; g.k.Lp=function(){var a={},b=g.oN(this.app).Lp();b=g.t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a}; g.k.My=function(){return g.oN(this.app).My()}; g.k.Vy=aa(10);g.k.pE=function(a){this.app.pE(a);a&&SSa(this.app,a)}; g.k.getDebugText=function(a){return this.app.getDebugText(a)}; g.k.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 h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)}; g.k.Wy=aa(12);g.k.Bl=aa(16);g.k.uw=function(a,b){this.wb().uw(a,b)}; g.k.Bi=function(){var a=g.vO(this.wb());return!!a&&a.Bi()}; g.k.qm=function(){var a=g.vO(this.wb());return!!a&&a.qm()}; g.k.setCardsVisible=function(a,b,c){var d=g.vO(this.wb());d&&d.setCardsVisible(a,b,c)}; g.k.productsInVideoVisibilityUpdated=function(a){this.ma("changeProductsInVideoVisibility",a)}; g.k.Rw=aa(17);g.k.Wt=function(){var a=g.oN(this.app);a&&a.Wt()}; g.k.wA=function(a){this.Pa("onVideoAreaChange");this.Pa(a?"onShowControls":"onHideControls")}; g.k.gk=function(a,b){var c=g.qN(this);if(c)return c.gk(a,b);a=this.app.fb().Ki();return new g.yl(0,0,a.width,a.height)}; g.k.Up=function(){return this.app.Up()}; g.k.vz=function(){var a=this.wb().je.get("heartbeat");return!!a&&a.vz()}; g.k.fg=function(){var a=this.V();if(a.Ia||a.disableSeek)return!1;a=g.oN(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.hI(b)||2===this.getPresentingPlayerType()&&!this.app.Fe()||a.ql()&&3!==this.getPresentingPlayerType()?!1:!0}; g.k.pz=function(){var a;return(null==(a=g.oN(this.app))?void 0:a.pz)||!1}; g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()}; g.k.Nq=function(){var a=g.oN(this.app);a&&a.Nq()}; g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)}; g.k.oe=function(a,b,c){this.app.Wx(a,b,c)}; g.k.hh=function(a,b){this.app.jE(a,b)}; g.k.Ff=function(a,b){var c=this.app,d=g.oN(c,b);d&&(a=d.Kh.Ff(a),b&&c.getPresentingPlayerType()!==b||VX(c,"cuerangesremoved",a))}; g.k.wf=function(a,b){(b=g.oN(this.app,b))&&b.wf(a)}; g.k.ql=function(){var a=g.oN(this.app);return a?a.ql():!0}; g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)}; g.k.setVolume=function(a){a=g.Fg(a,0,100);nN(this.app,{volume:a,muted:this.isMuted()},!0)}; g.k.mute=function(){nN(this.app,{muted:!0,volume:this.getVolume()},!0)}; g.k.unMute=function(){nN(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)}; g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)}; g.k.getLoopVideo=function(){return this.app.getLoopVideo()}; g.k.Qd=function(){return this.app.Qd()}; g.k.Gi=function(){return this.app.Gi()}; g.k.Ii=function(a){return this.app.Ii(a)}; g.k.getBandwidthEstimate=function(){return CF(this.V().schedule)}; g.k.vb=function(a,b,c,d){this.V().Xa&&this.app.bq.vb(a,b,c,void 0===d?!1:d)}; g.k.Sg=function(a,b,c){this.V().Xa&&this.app.bq.Sg(a,b,void 0===c?!1:c)}; g.k.oi=function(a,b){this.V().Xa&&this.app.bq.oi(a,b)}; g.k.ub=function(a,b){this.V().Xa&&this.app.bq.click(a,b)}; g.k.Wa=function(a,b,c){if(this.V().Xa){var d=this.app.bq;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.Bz(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.Jz(e,[f]):g.Kz(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.Gz(e,f,c),d.B.add(a))}}; g.k.Om=function(a){return this.V().Xa?this.app.bq.Om(a):!1}; g.k.Jc=function(){return g.oN(this.app)}; g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)}; g.k.Mo=function(){this.app.Mo()}; g.k.sy=function(a,b){return this.app.sy(a,b)}; g.k.yn=function(a){this.app.yn(a)}; g.k.mD=function(){this.app.mD()}; g.k.ev=function(a,b,c,d,e,f,h){return this.app.ev(a,b,c,d,e,f,h)}; g.k.nz=function(a,b,c,d,e,f,h){return this.app.nz(a,b,c,d,e,f,h)}; g.k.Dq=function(a){this.app.Dq(a)}; g.k.Qr=function(a,b){b=void 0===b?Infinity:b;this.app.Qr(void 0===a?-1:a,b)}; g.k.lx=function(a,b,c){this.app.lx(a,b,c)}; g.k.Op=function(){return this.app.Op()}; g.k.iC=function(a,b,c){this.app.iC(a,b,void 0===c?0:c)}; g.k.lw=function(){return this.app.lw()}; g.k.clearQueue=function(){this.app.clearQueue()}; g.k.Fe=function(){return this.app.Fe()}; g.k.lq=function(a,b,c){return this.app.lq(a,b,c)}; g.k.va=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.oN(this.app,d))||e.va(a,b,c)}; g.k.yE=function(){return this.app.yE()}; g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)}; g.k.oJ=function(a,b){this.ma("aduxmouseover",a,b)}; g.k.nJ=function(a,b){this.ma("aduxmouseout",a,b)}; g.k.IJ=function(a,b){this.ma("muteadaccepted",a,b)}; g.k.cD=function(){return this.app.fb().cD()}; g.k.Vw=function(a){this.app.fb().Vw(a)}; g.k.El=function(){var a=g.oN(this.app);return a?a.El():!1}; g.k.JK=function(a){this.app.JK(a)};g.v(g.CN,g.YK);g.k=g.CN.prototype;g.k.show=function(){var a=this.wh();g.YK.prototype.show.call(this);this.Ba&&(this.J.T(window,"blur",this.Bb),this.J.T(document,"click",this.NV));a||this.ma("show",!0)}; g.k.hide=function(){var a=this.wh();g.YK.prototype.hide.call(this);fHa(this);a&&this.ma("show",!1)}; g.k.Pc=function(a,b){this.u=a;this.Z.show();b?(this.S||(this.S=this.J.T(this.G,"appresize",this.QN)),this.QN()):this.S&&(this.J.yc(this.S),this.S=void 0)}; g.k.QN=function(){var a=g.qN(this.G);this.u&&a.xt(this.element,this.u)}; g.k.Bb=function(){var a=this.wh();fHa(this);this.Z.hide();a&&this.ma("show",!1)}; g.k.NV=function(a){var b=Cx(a);b&&(g.rh(this.element,b)||this.u&&g.rh(this.u,b)||!g.YL(a))||this.Bb()}; g.k.wh=function(){return this.qb&&4!==this.Z.state};g.v(EN,g.CN);EN.prototype.Pc=function(){g.CN.prototype.Pc.call(this);this.dialog.focus()};g.v(g.FN,g.YK);g.FN.prototype.Kg=function(a){this.Oa("label",a)}; g.FN.prototype.Oa=function(a,b){g.YK.prototype.Oa.call(this,a,b);this.ma("size-change")};g.v(IN,g.FN);IN.prototype.Vb=function(a){this.u&&this.G.Wa(this.element,this.j&&a)}; IN.prototype.C=function(){var a,b,c=null==(a=this.G.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.G.getVideoData())?void 0:d.accountLinkingConfig;var e;this.Kg(JN(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.B=new EN(this.G,JN(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),JN(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),JN(null==a?void 0:null==(l=a.menuData)? void 0:l.confirmButtonText));g.N(this,this.B);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;(this.u=!!d)&&this.G.oi(this.element,d);this.ob.Ec(this);this.j=!0}else!c&&this.j&&(this.ob.Gf(this),this.j=!1)}; IN.prototype.onClick=function(){this.u&&this.G.ub(this.element);this.ob.Bb();this.B&&this.B.Pc()};g.v(KN,g.K);KN.prototype.K=function(a){return this.api.K(a)};g.v(LN,KN);LN.prototype.onVideoDataChange=function(a){if(!a.accountLinkingConfig){var b,c=null==(b=a.getPlayerResponse())?void 0:b.accountLinkingConfig;a.accountLinkingConfig=c}var d;if(b=null==(d=a.accountLinkingConfig)?void 0:d.alsParam)a.OL=b}; LN.prototype.setAccountLinkState=function(a){this.api.getVideoData().OL=a;this.api.Wt()}; LN.prototype.updateAccountLinkingConfig=function(a){var b=this.api.getVideoData(),c=b.accountLinkingConfig;c&&(c.linked=a);this.api.ma("videodatachange","dataupdated",b,this.api.getPresentingPlayerType())};g.v(MN,g.FN);MN.prototype.onClick=function(){this.setValue(!this.checked);this.ma("select",this.checked)}; MN.prototype.getValue=function(){return this.checked}; MN.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.v(NN,MN);NN.prototype.Ja=function(a){a?this.j||(this.ob.Ec(this),this.j=!0):this.j&&(this.ob.Gf(this),this.j=!1);this.j&&this.setValue(gHa())}; NN.prototype.u=function(a){var b=gHa();a!==b&&(b=g.qv.getInstance(),tv(190,a),tv(192,!0),b.save(),this.G.Pa("cinematicSettingsToggleChange",a))}; NN.prototype.ra=function(){this.j&&this.ob.Gf(this);MN.prototype.ra.call(this)};g.v(ON,KN);ON.prototype.updateCinematicSettings=function(a){this.j=a;var b;null==(b=this.menuItem)||b.Ja(a);this.api.ma("onCinematicSettingsVisibilityChange",a)};g.v(iHa,KN);g.v(PN,g.W);PN.prototype.onClick=function(){this.Va.ub(this.element);this.Va.Pa("onFullerscreenEduClicked")}; PN.prototype.Ja=function(){this.Va.isFullscreen()?this.u?this.j.hide():this.j.show():this.hide();this.Va.Wa(this.element,this.Va.isFullscreen()&&!this.u)};g.v(QN,KN);QN.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;null!=(b=this.j)&&(g.ko(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.af(b,g.cP(b.B.vc(),b.element)),b.C=!0))}; QN.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;null!=(b=this.j)&&(b.u=a,b.Ja())};g.v(kHa,g.W);g.v(oHa,KN);g.v(RN,KN);RN.prototype.getAvailableQualityData=function(){var a=this.api.getVideoData();if(!a)return[];var b=[],c,d,e=null==(c=a.getPlayerResponse())?void 0:null==(d=c.playabilityStatus)?void 0:d.paygatedQualitiesMetadata;c=new Map(((null==e?void 0:e.qualityDetails)||[]).map(function(h){return[h.key,h.value]})); if(d=null==e?void 0:e.restrictedAdaptiveFormats){e=[];d=g.t(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f=WD(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=WH(a);CB(a,e,[]);d=[];e=g.t(e);for(f=e.next();!f.done;f=e.next())f=f.value,!0===EB(a,f,this.api.V().j)&&d.push(f);b=b.concat(pHa(d,!1,c))}a=this.api.My();b=b.concat(pHa(a,!0,c));c=[];a={};b=g.t(b);for(e=b.next();!e.done;e=b.next())e=e.value,d=e.quality,a[d]||(c.push(e),a[d]=!0); return c};g.v(SN,KN);SN.prototype.ra=function(){this.u&&(window.clearInterval(this.u),this.u=void 0);KN.prototype.ra.call(this)}; SN.prototype.HH=function(a){var b=this;return g.A(function(c){return b.j?c.return(b.j.ready().then(function(){b.tb.kh("pot_if");return sHa(b,a)})):c.return(Promise.reject("web po not ready"))})};g.v(tHa,g.K);TN.prototype.sJ=function(){this.u=(0,g.T)()}; TN.prototype.reset=function(){this.j=this.u=NaN}; TN.prototype.xJ=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.1>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};!this.Y.K("web_player_csi_ctt_killswitch")&&a.J&&(c.cttAuthInfo={token:a.J,videoId:a.videoId});$A("seek",c);g.aB("cpn",a.clientPlaybackNonce,"seek");isNaN(this.u)||YA("pl_ss",this.u,"seek");YA(b,(0,g.T)(),"seek")}this.reset()}};VN.prototype.reset=function(){WA(this.timerName)}; VN.prototype.tick=function(a,b){YA(a,b,this.timerName)}; VN.prototype.kh=function(a){var b=this.timerName;mB(a,b)?a=!1:(YA(a,void 0,b),a=!0);return a}; VN.prototype.info=function(a,b){g.aB(a,b,this.timerName)};g.v(XN,g.cz);g.k=XN.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1([^<>]+)<\/a>/;g.v(NO,g.YD);NO.prototype.Bh=function(){cIa(this)}; NO.prototype.onVideoDataChange=function(){var a=this,b=this.G.getVideoData();if(b.isValid()){var c=this.G.V(),d=[],e="";if(!c.S){var f=aIa(this);c.K("enable_web_media_session_metadata_fix")&&g.UF(c)&&f?(d=bIa(f.thumbnailDetails),f.album&&(e=g.zA(f.album))):d=[{src:b.Lf("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}cIa(this);$Ha(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.xN(this.G)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"), b=function(){a.G.nextVideo()},c=function(){a.G.previousVideo()}); OO(this,"nexttrack",b);OO(this,"previoustrack",c)}}; NO.prototype.ra=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.t(this.j),b=a.next();!b.done;b=a.next())OO(this,b.value,null);g.YD.prototype.ra.call(this)};g.v(PO,g.W);g.k=PO.prototype;g.k.onClick=function(a){g.EO(a,this.G,!0);this.G.ub(this.element)}; g.k.onVideoDataChange=function(a,b){eIa(this,b);this.Bd&&fIa(this,this.Bd)}; g.k.Tc=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&eIa(this,b);this.j&&fIa(this,a.state);this.Bd=a.state}; g.k.Pc=function(){this.C.show();this.G.ma("paidcontentoverlayvisibilitychange",!0);this.G.Wa(this.element,!0)}; g.k.Bb=function(){this.C.hide();this.G.ma("paidcontentoverlayvisibilitychange",!1);this.G.Wa(this.element,!1)};g.v(QO,g.W);QO.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.W.prototype.hide.call(this)}; QO.prototype.onStateChange=function(a){this.Uc(a.state)}; QO.prototype.Uc=function(a){if(g.V(a,128))var b=!1;else{var c;b=(null==(c=this.api.Jc())?0:c.gq)?!1:g.V(a,16)||g.V(a,1)?!0:!1}b?this.j.start():this.hide()}; QO.prototype.u=function(){this.message.style.display="block"};g.v(RO,g.CN);RO.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(gIa(this),this.Pc()):(this.j&&this.ub(),this.Bb()))}; RO.prototype.Bh=function(a){this.api.isMutedByMutedAutoplay()&&g.tJ(a,2)&&this.Bb()}; RO.prototype.onClick=function(){this.api.unMute();this.ub()}; RO.prototype.ub=function(){this.clicked||(this.clicked=!0,this.api.ub(this.element))};g.v(g.TO,g.YD);g.k=g.TO.prototype;g.k.init=function(){var a=this.api,b=a.Eb();this.UC=a.getPlayerSize();this.Wb(b);this.Bn();this.Cb();this.api.ma("basechromeinitialized",this)}; g.k.onVideoDataChange=function(a,b){var c=this.ow!==b.videoId;if(c||"newdata"===a)a=this.api,a.isFullscreen()||(this.UC=a.getPlayerSize());c&&(this.ow=b.videoId,c=this.Zd,c.ya=b&&0=b){this.Ay=!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.Lz-1);02*b&&d<3*b&&(this.Kw(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.Fx(a)}this.gQ=Date.now();this.kS.start()}}; g.k.P2=function(a){if(!jIa(this,a)){if(!iIa(this)&&VO(this,a)&&!this.gC.isActive()){if(g.nG(this.api.V())&&this.api.Eb().isCued()){var b=void 0===b?{}:b;XA();QA();WA();HA(!1);b.cttAuthInfo&&(IA().cttAuthInfo=b.cttAuthInfo);$t("TIMING_AFT_KEYS",[]);b.Q5a?ZA({loadType:"hot"}):ZA({loadType:"warm"});$t("TIMING_ACTION","");delete g.O("TIMING_INFO",{}).yt_lt;YA("_start",b.startTime,void 0);b=["pbs","pbu"];PA("").info.actionType="watch";b&&$t("TIMING_AFT_KEYS",b);$t("TIMING_ACTION","watch");if(g.S("web_csi_via_jspb")){b= g.O("TIMING_INFO",{});var c=new xt;b=g.t(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.t(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":var f=new zt;g.E(f,1,d);g.E(f,2,String(e));At(c,f);break;case "GetGuide_rid":f=new zt;g.E(f,1,d);g.E(f,2,String(e));At(c,f);break;case "GetHome_rid":f=new zt;g.E(f,1,d);g.E(f,2,String(e));At(c,f);break;case "GetPlayer_rid":f=new zt;g.E(f,1,d);g.E(f,2,String(e));At(c,f);break;case "GetSearch_rid":f=new zt;g.E(f,1,d);g.E(f, 2,String(e));At(c,f);break;case "GetSettings_rid":f=new zt;g.E(f,1,d);g.E(f,2,String(e));At(c,f);break;case "GetTrending_rid":f=new zt;g.E(f,1,d);g.E(f,2,String(e));At(c,f);break;case "GetWatchNext_rid":f=new zt;g.E(f,1,d);g.E(f,2,String(e));At(c,f);break;case "yt_red":g.E(c,14,!!e);break;case "yt_ad":g.E(c,9,!!e)}}lB(c);c=new xt;c=g.E(c,25,!0);c=g.E(c,1,U[RA(g.O("TIMING_ACTION"))]);(b=g.O("PREVIOUS_ACTION"))&&g.E(c,13,U[RA(b)]);(b=g.O("CLIENT_PROTOCOL"))&&g.E(c,33,b);(b=g.O("CLIENT_TRANSPORT"))&& g.E(c,34,b);(b=g.Bz())&&"UNDEFINED_CSN"!==b&&g.E(c,4,b);b=oB();1!==b&&-1!==b||g.E(c,6,!0);b=JA();if(uva()&&(g.E(c,3,"cold"),Hva(b),b=Jva(),0this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)}; g.k.eD=function(){return this.Fg()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)}; g.k.Ym=function(){var a=this.api.V();if(!g.LF(a)||!a.K("embeds_enable_allow_watch_again_endscreen_for_eligible_shorts")||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(a.ea||"EMBEDDED_PLAYER_MODE_DEFAULT")||this.api.getPlaylist())return!1;a=this.UC;var b;return!(null==(b=this.api.getVideoData())||!b.isShortsEligible)&&a.width<=a.height}; g.k.jk=function(){return this.ME}; g.k.Gm=function(){return null}; g.k.Yy=function(){return null}; g.k.gk=function(){var a=this.api.fb().getPlayerSize();return new g.yl(0,0,a.width,a.height)}; g.k.handleGlobalKeyDown=function(){return!1}; g.k.handleGlobalKeyUp=function(){return!1}; g.k.xt=function(){}; g.k.showControls=function(a){void 0!==a&&this.api.fb().wA(a)}; g.k.An=function(){};g.v(WO,g.cz);g.k=WO.prototype;g.k.Kv=function(){return 1E3*this.api.getDuration(this.Kl,!1)}; g.k.stop=function(){this.j&&this.Wc.yc(this.j)}; g.k.Zb=function(){var a=this.api.getProgressState(this.Kl);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.V().K("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.Kl,!1)};this.ma("h")}; g.k.getProgressState=function(){return this.u}; g.k.Tc=function(a){g.tJ(a,2)&&this.ma("g")};g.v(XO,g.W);XO.prototype.onClick=function(){this.G.Pa("BACK_CLICKED")};g.v(g.YO,g.W);g.YO.prototype.show=function(){g.W.prototype.show.call(this);g.Zn(this.j)}; g.YO.prototype.hide=function(){this.u.stop();g.W.prototype.hide.call(this)}; g.YO.prototype.Nt=function(a){a?g.V(this.G.Eb(),64)||ZO(this,jL(),"Play"):(a=this.G.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?ZO(this,nFa(),"Stop live playback"):ZO(this,iFa(),"Pause"))};g.v(bP,g.W);g.k=bP.prototype;g.k.Pc=function(){this.G.V().K("player_new_info_card_format")&&g.fo(this.G.getRootNode(),"ytp-cards-teaser-shown")&&!g.LF(this.G.V())||(this.u.show(),g.Vx("iv-button-shown"))}; g.k.Bb=function(){g.Vx("iv-button-hidden");this.u.hide()}; g.k.wh=function(){return this.qb&&4!==this.u.state}; g.k.ra=function(){this.j&&this.j();g.W.prototype.ra.call(this)}; g.k.I1=function(){g.Vx("iv-button-mouseover")}; g.k.onClicked=function(a){this.G.Bi();var b=g.fo(this.G.getRootNode(),"ytp-cards-teaser-shown");g.Vx("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.G.setCardsVisible(!this.G.qm(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.v(dP,g.W);g.k=dP.prototype;g.k.pT=function(){this.G.Bi()&&this.G.qm()&&this.wh()&&this.Bb()}; g.k.dL=function(){this.Bb();!this.G.Bi()&&this.G.V().K("enable_error_corrections_infocards_icon_web")&&this.Ih.Bb();g.Vx("iv-teaser-clicked",null!=this.j);this.onClickCommand?this.G.Pa("innertubeCommand",this.onClickCommand):this.G.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}; g.k.PV=function(){g.Vx("iv-teaser-mouseover");this.j&&this.j.stop()}; g.k.u3=function(a){this.G.V().K("player_new_info_card_format")&&!g.LF(this.G.V())?this.Ih.Bb():this.G.V().K("enable_error_corrections_infocards_icon_web")&&this.Ih.Pc();this.j||!a||this.G.qm()||this.u&&this.u.isActive()||(this.Pc(a),g.Vx("iv-teaser-shown"))}; g.k.Pc=function(a){this.onClickCommand=a.onClickCommand;this.Oa("text",a.teaserText);this.element.setAttribute("dir",g.wo(a.teaserText));this.C.show();this.u=new g.Yn(function(){g.go(this.G.getRootNode(),"ytp-cards-teaser-shown");this.G.K("player_new_info_card_format")&&!g.LF(this.G.V())&&this.Ih.Bb();this.DL()},0,this); this.u.start();aP(this.Ih,!1);this.j=new g.Yn(this.Bb,580+a.durationMs,this);this.j.start();this.D.push(this.Ra("mouseover",this.dN,this));this.D.push(this.Ra("mouseout",this.cN,this))}; g.k.DL=function(){if(!this.G.V().K("player_new_info_card_format")&&g.LF(this.G.V())&&this.qb){var a=this.Ih.element.offsetLeft,b=g.dh("ytp-cards-button-icon"),c=this.G.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Ih.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}}; g.k.nY=function(){g.LF(this.G.V())&&this.Z.Fg()&&this.qb&&this.S.start()}; g.k.dN=function(){this.I.stop();this.j&&this.j.isActive()&&this.J.start()}; g.k.cN=function(){this.J.stop();this.j&&!this.j.isActive()&&this.I.start()}; g.k.W1=function(){this.j&&this.j.stop()}; g.k.V1=function(){this.Bb()}; g.k.vk=function(){this.Bb()}; g.k.Bb=function(){!this.j||this.B&&this.B.isActive()||(g.Vx("iv-teaser-hidden"),this.C.hide(),g.io(this.G.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.Yn(function(){for(var a=g.t(this.D),b=a.next();!b.done;b=a.next())this.yc(b.value);this.D=[];this.j&&(this.j.dispose(),this.j=null);aP(this.Ih,!0);!this.G.Bi()&&this.G.V().K("enable_error_corrections_infocards_icon_web")&&this.Ih.Bb()},330,this),this.B.start())}; g.k.wh=function(){return this.qb&&4!==this.C.state}; g.k.ra=function(){var a=this.G.getRootNode();a&&g.io(a,"ytp-cards-teaser-shown");g.$e(this.u,this.B,this.j);g.W.prototype.ra.call(this)};var p4={},eP=(p4.BUTTON="ytp-button",p4.TITLE_NOTIFICATIONS="ytp-title-notifications",p4.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",p4.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",p4.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",p4);g.v(fP,g.W);fP.prototype.onClick=function(){this.api.ub(this.element);var a=!this.j;this.Oa("label",a?"Stop receiving notifications about every new video":"Receive notifications about every new video");this.Oa("pressed",a);nIa(this,a)};g.v(g.hP,g.W);g.hP.prototype.u=function(){g.go(this.element,"ytp-sb-subscribed")}; g.hP.prototype.B=function(){g.io(this.element,"ytp-sb-subscribed")};g.v(iP,g.W);g.k=iP.prototype;g.k.sK=function(){rIa(this);this.channel.classList.remove("ytp-title-expanded")}; g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; g.k.zH=function(){if(pIa(this)&&!this.isExpanded()){this.Oa("flyoutUnfocusable","false");this.Oa("channelTitleFocusable","0");this.B&&this.B.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.Wa(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.Qk&&a.subscribed&&(this.u.show(),this.api.Wa(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; g.k.UG=function(){this.Oa("flyoutUnfocusable","true");this.Oa("channelTitleFocusable","-1");this.B&&this.B.start()}; g.k.Ja=function(){var a=this.api.getVideoData(),b=this.api.V(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Hd&&!!a.profilePicture:g.LF(b)&&(c=!!a.videoId&&!!a.Hd&&!!a.profilePicture&&!(a.D&&b.pfpChazalUi)&&!b.B&&!(b.I&&200>this.api.getPlayerSize().width));var d=g.uG(this.api.V())+a.Hd;g.LF(b)&&(d=sIa(this,d));var e=a.Hd,f=a.profilePicture;b=g.LF(b)?a.expandedTitle:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;if(c){var h=this.api.V();e= g.uG(h)+e;g.LF(h)&&(e=sIa(this,e));this.J!==f&&(this.j.style.backgroundImage="url("+f+")",this.J=f);this.Oa("channelLink",e);this.Oa("channelLogoLabel",g.GJ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b}));g.go(this.api.getRootNode(),"ytp-title-enable-channel-logo")}else g.io(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Wa(this.j,c&&this.ya);this.subscribeButton&&(this.subscribeButton.channelId=a.Kk);this.Oa("expandedTitle",a.expandedTitle);this.Oa("channelTitleLink",d);this.Oa("expandedSubtitle", a.expandedSubtitle)};g.v(jP,g.YK);jP.prototype.WQ=function(){this.ma("size-change")}; jP.prototype.focus=function(){this.content.focus()}; jP.prototype.QQ=function(){this.ma("back")};g.v(g.kP,jP);g.k=g.kP.prototype;g.k.Ec=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.kc(this.items,a,uIa);if(0<=b)return;b=~b;g.hc(this.items,b,0,a);g.oh(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.HJ,this);this.menuItems.ma("size-change")}; g.k.Gf=function(a){a.unsubscribe("size-change",this.HJ,this);this.isDisposed()||(g.$b(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ma("size-change"))}; g.k.HJ=function(){this.menuItems.ma("size-change")}; g.k.focus=function(){for(var a=0,b=0;bb.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,65==(e&65)&&(a.x=d.right)&&(e&=-2),132==(e&132)&&(a.y< d.top||a.y>=d.bottom)&&(e&=-5),a.xd.right&&(h.width=Math.min(d.right-a.x,f+h.width-d.left),h.width=Math.max(h.width,0))),a.x+h.width>d.right&&e&1&&(a.x=Math.max(d.right-h.width,d.left)),a.yd.bottom&&(h.height=Math.min(d.bottom-a.y,f+h.height-d.top),h.height=Math.max(h.height,0))),a.y+h.height>d.bottom&&e&4&&(a.y=Math.max(d.bottom-h.height,d.top))); d=new g.yl(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Hl(this.element,new g.Jg(d.left,d.top));g.bz(this.B);this.B.T(document,"contextmenu",this.w1);this.B.T(this.G,"fullscreentoggled",this.onFullscreenToggled);this.B.T(this.G,"pageTransition",this.TV)}; g.k.w1=function(a){if(!g.Gx(a)){var b=Cx(a);g.rh(this.element,b)||this.Bb();this.G.V().disableNativeContextMenu&&g.Fx(a)}}; g.k.onFullscreenToggled=function(){this.Bb();AIa(this)}; g.k.TV=function(){this.Bb()};g.v(g.wP,g.W);g.wP.prototype.onClick=function(){var a=this,b,c,d,e;return g.A(function(f){if(1==f.j)return b=a.api.V(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.x(f,CIa(a,e),2);f.u&&BIa(a);a.api.ub(a.element);g.na(f)})}; g.wP.prototype.Ja=function(){var a=this.api.V(),b=this.api.getVideoData();this.Oa("icon",{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{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.Oa("title-attr","Copy link");var c=this.api.fb().getPlayerSize().width;this.visible= !!b.videoId&&c>=this.u&&b.mm&&!(b.D&&a.pfpChazalUi);g.ko(this.element,"ytp-copylink-button-visible",this.visible);g.XK(this,this.visible);yP(this.tooltip);this.api.Wa(this.element,this.visible&&this.ya)}; g.wP.prototype.Vb=function(a){g.W.prototype.Vb.call(this,a);this.api.Wa(this.element,this.visible&&a)}; g.wP.prototype.ra=function(){g.W.prototype.ra.call(this);g.io(this.element,"ytp-copylink-button-visible")};g.v(zP,g.W);g.k=zP.prototype;g.k.show=function(){g.W.prototype.show.call(this);g.Zn(this.j)}; g.k.hide=function(){this.u.stop();g.io(this.element,"ytp-chapter-seek");g.io(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)}; g.k.Kw=function(a,b,c,d){this.Lw(a,d)}; g.k.Lw=function(a,b){g.ao(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.io(this.element,"ytp-chapter-seek");this.Oa("chapterSeekText","");a=g.GJ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});this.Oa("seekTime",a)}; g.k.lE=function(a,b){g.ao(this.j);this.u.start();switch(a){case -1:a="back";break;case 1:a="forward";break;default:a=""}this.element.setAttribute("data-side",a);g.go(this.element,"ytp-chapter-seek");this.Oa("chapterSeekText",b);this.Oa("seekTime","")};g.v(AP,g.W);g.k=AP.prototype;g.k.show=function(){g.W.prototype.show.call(this);g.Zn(this.u)}; g.k.hide=function(){this.B.stop();g.io(this.element,"ytp-chapter-seek");g.io(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)}; g.k.Kw=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.G.ub(e);g.ao(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.G.fb().getPlayerSize().height;e=this.G.fb().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var h=2.5*f;f=h/2;var l=this.Ca("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height= h+"px";1===a?(a=this.G.fb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Ca("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");DIa(this,d)}; g.k.Lw=function(a,b){var c=this.G.fb().getPlayerSize();g.ao(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.go(this.element,"ytp-time-seeking");this.j.style.width="110px";this.j.style.height="110px";1===a?(this.j.style.right="",this.j.style.left=.8*c.width-30+"px"):-1===a&&(this.j.style.right="",this.j.style.left=.1*c.width-15+"px");this.j.style.top=.5*c.height+15+"px";DIa(this,b)}; g.k.lE=function(a,b){g.ao(this.u);this.B.start();switch(a){case -1:a="back";break;case 1:a="forward";break;default:a=""}this.element.setAttribute("data-side",a);this.j.style.width="0";this.j.style.height="0";g.go(this.element,"ytp-chapter-seek");this.Oa("seekText",b);this.Oa("seekTime","")};g.v(BP,g.W);BP.prototype.onClick=function(){this.G.ub(this.element)};g.v(CP,g.CN);g.k=CP.prototype;g.k.show=function(){g.CN.prototype.show.call(this);this.G.ma("infopaneldetailvisibilitychange",!0);this.G.Wa(this.element,!0);HIa(this,!0)}; g.k.hide=function(){g.CN.prototype.hide.call(this);this.G.ma("infopaneldetailvisibilitychange",!1);this.G.Wa(this.element,!1);HIa(this,!1)}; g.k.getId=function(){return this.C}; g.k.Hi=function(){return this.j.length}; g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:(null==(c=b.Xl)?void 0:null==(d=c.title)?void 0:d.content)||"",body:(null==(e=b.Xl)?void 0:null==(f=e.bodyText)?void 0:f.content)||""});var h;a=(null==(h=b.Xl)?void 0:h.trackingParams)||null;this.G.oi(this.element,a);h=g.t(this.j);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.j=[];var l;if(null==(l=b.Xl)?0:l.ctaButtons)for(b=g.t(b.Xl.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.$u(l.value,EZa))l=new BP(this.G, l,this.isMobile),l.isValid&&(this.j.push(l),l.Da(this.items))}}; g.k.ra=function(){this.hide();g.CN.prototype.ra.call(this)};g.v(EP,g.W);g.k=EP.prototype;g.k.onVideoDataChange=function(a,b){DP(this,b);this.Bd&&KIa(this,this.Bd)}; g.k.Tc=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&DP(this,b);KIa(this,a.state);this.Bd=a.state}; g.k.XQ=function(a){(this.C=a)?this.hide():this.show()}; g.k.WV=function(){this.u||this.Pc();this.showControls=!0}; g.k.VV=function(){this.u||this.Bb();this.showControls=!1}; g.k.Pc=function(){this.j&&!this.C&&(this.B.show(),this.G.ma("infopanelpreviewvisibilitychange",!0),this.G.Wa(this.element,!0))}; g.k.Bb=function(){this.j&&!this.C&&(this.B.hide(),this.G.ma("infopanelpreviewvisibilitychange",!1),this.G.Wa(this.element,!1))}; g.k.a5=function(){this.u=!1;this.showControls||this.Bb()};var k1a={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(k1a).reduce(function(a,b){a[k1a[b]]=b;return a},{}); var l1a={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(l1a).reduce(function(a,b){a[l1a[b]]=b;return a},{}); var m1a={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(m1a).reduce(function(a,b){a[m1a[b]]=b;return a},{});var n1a,o1a;n1a=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];o1a=[{option:0,text:FP(0)},{option:.25,text:FP(.25)},{option:.5,text:FP(.5)},{option:.75,text:FP(.75)},{option:1,text:FP(1)}]; g.JP=[{option:"fontFamily",text:"Font family",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:"Font colour",options:n1a},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:FP(.5)},{option:-1,text:FP(.75)},{option:0,text:FP(1)},{option:1,text:FP(1.5)},{option:2, text:FP(2)},{option:3,text:FP(3)},{option:4,text:FP(4)}]},{option:"background",text:"Background colour",options:n1a},{option:"backgroundOpacity",text:"Background opacity",options:o1a},{option:"windowColor",text:"Window colour",options:n1a},{option:"windowOpacity",text:"Window opacity",options:o1a},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity", text:"Font opacity",options:[{option:.25,text:FP(.25)},{option:.5,text:FP(.5)},{option:.75,text:FP(.75)},{option:1,text:FP(1)}]}];g.v(g.IP,g.YD);g.k=g.IP.prototype; g.k.wP=function(a){var b=!1,c=g.Hx(a),d=Cx(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.V();g.Gx(a)?(e=!1,h=!0):l.Rg&&(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.api.getVolume()+5,100);$O(this.Ic,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);$O(this.Ic,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.fg()&&(this.api.startSeekCsiAction(), this.api.seekTo(0),h=f=!0);break;case 35:this.api.fg()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&HP(this,!0);(b||h)&&this.Zd.An();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.Fx(a);l.C&&(a={keyCode:g.Hx(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Gx(a),fullscreen:this.api.isFullscreen()},this.api.Pa("onKeyPress",a))}; g.k.xP=function(a){this.handleGlobalKeyUp(g.Hx(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)}; g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.yN(this.api.wb());c&&(c=c.Oq)&&c.qb&&(c.sP(a),b=!0);9===a&&(HP(this,!0),b=!0);return b}; g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.V();if(e.Rg)return h;var l=g.yN(this.api.wb());if(l&&(l=l.Oq)&&l.qb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.rP(a)}e.D||h||(h=f||String.fromCharCode(a).toLowerCase(),this.u+=h,0==="awesome".indexOf(this.u)?(h=!0,7===this.u.length&&qka(this.api.getRootNode(),"ytp-color-party")):(this.u=h,h=0==="awesome".indexOf(this.u)));if(!h){l=this.api.getVideoData();var m,n;f=null==(m=this.Bc)?void 0:null== (n=m.u)?void 0:n.isEnabled;m=l?l.Oi:[];n=zT?d:c;switch(a){case 80:b&&!e.Ia&&(ZO(this.Ic,lFa(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.Ia&&(ZO(this.Ic,gL(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.fg()&&(this.api.startSeekCsiAction(),this.j?this.j.Lw(-1,10):ZO(this.Ic,{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{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.api.seekBy(-10*this.api.getPlaybackRate()),h=!0);break;case 76:this.api.fg()&&(this.api.startSeekCsiAction(),this.j?this.j.Lw(1,10):ZO(this.Ic,{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{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.api.seekBy(10*this.api.getPlaybackRate()),h=!0);break;case 37:this.api.fg()&&(this.api.startSeekCsiAction(),n?(n=NIa(m,1E3*this.api.getCurrentTime()),-1!==n&&null!=this.j&&(this.j.lE(-1,m[n].title),this.api.seekTo(m[n].startTime/1E3),h=!0)):(this.j?this.j.Lw(-1,5):ZO(this.Ic,{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{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.api.seekBy(-5*this.api.getPlaybackRate()),h=!0));break;case 39:this.api.fg()&&(this.api.startSeekCsiAction(),n?(n=MIa(m,1E3*this.api.getCurrentTime()),-1!==n&&null!=this.j&&(this.j.lE(1,m[n].title),this.api.seekTo(m[n].startTime/1E3),h=!0)):(null!=this.j?this.j.Lw(1,5):ZO(this.Ic,{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{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.api.seekBy(5*this.api.getPlaybackRate()),h=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),$O(this.Ic,this.api.getVolume(),!1)):(this.api.mute(),$O(this.Ic,0,!0));h=!0;break;case 32:case 75:e.Ia||(f?this.Bc.EH():(h=!g.eK(this.api.Eb()),this.Ic.Nt(h),h?this.api.playVideo():this.api.pauseVideo()),h=!0);break;case 190:b?e.Hd&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),lIa(this.Ic,!1),h=!0):this.api.fg()&&(QIa(this,1),h=!0);break;case 188:b?e.Hd&&(h=this.api.getPlaybackRate(), this.api.setPlaybackRate(h-.25,!0),lIa(this.Ic,!0),h=!0):this.api.fg()&&(QIa(this,-1),h=!0);break;case 70:VHa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0); break;case 27:f?(this.Bc.QO(),h=!0):this.C()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.mO(this.api.wb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),mIa(this.Ic,!e||e&&!e.displayName),h=!0);break;case 79:KP(this,"textOpacity");break;case 87:KP(this,"windowOpacity");break;case 187:case 61:KP(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:KP(this,"fontSizeIncrement",!0,!0)}var p;b||c||d||(48<=a&&57>=a?p=a-48:96<=a&&105>=a&&(p=a-96));null!=p&&this.api.fg()&& (this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(p/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.Zd.An()}return h}; g.k.ra=function(){g.ao(this.B);g.YD.prototype.ra.call(this)};g.v(LP,g.W);LP.prototype.Ja=function(){var a=this.G.V(),b=a.B,c=g.LF(a)&&g.xN(this.G)&&g.V(this.G.Eb(),128),d=this.G.getPlayerSize();this.visible=this.j.Fg()&&!c&&240<=d.width&&!(this.G.getVideoData().D&&a.pfpChazalUi)&&!b;g.ko(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&yP(this.tooltip);this.G.Wa(this.element,this.visible&&this.ya)}; LP.prototype.Vb=function(a){g.W.prototype.Vb.call(this,a);this.G.Wa(this.element,this.visible&&a)}; LP.prototype.ra=function(){g.W.prototype.ra.call(this);g.io(this.element,"ytp-overflow-button-visible")};g.v(MP,g.CN);g.k=MP.prototype;g.k.XV=function(a){a=Cx(a);g.rh(this.element,a)&&(g.rh(this.j,a)||g.rh(this.closeButton,a)||DN(this))}; g.k.Bb=function(){g.CN.prototype.Bb.call(this);this.tooltip.Zj(this.element)}; g.k.show=function(){this.qb&&this.G.ma("OVERFLOW_PANEL_OPENED");g.CN.prototype.show.call(this);this.element.setAttribute("aria-modal","true");RIa(this,!0)}; g.k.hide=function(){g.CN.prototype.hide.call(this);this.element.removeAttribute("aria-modal");RIa(this,!1)}; g.k.onFullscreenToggled=function(a){!a&&this.wh()&&DN(this)}; g.k.focus=function(){for(var a=g.t(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.qb){b.focus();break}};g.v(OP,g.W);OP.prototype.onClick=function(a){g.EO(a,this.api)&&this.api.playVideoAt(this.index)};g.v(PP,g.CN);g.k=PP.prototype;g.k.show=function(){g.CN.prototype.show.call(this);this.B.T(this.api,"videodatachange",this.OF);this.B.T(this.api,"onPlaylistUpdate",this.OF);this.OF()}; g.k.hide=function(){g.CN.prototype.hide.call(this);g.bz(this.B);this.updatePlaylist(null)}; g.k.OF=function(){this.updatePlaylist(this.api.getPlaylist());this.api.V().B&&(this.Ca("ytp-playlist-menu-title-name").removeAttribute("href"),this.C&&(this.yc(this.C),this.C=null))}; g.k.qE=function(){var a=this.playlist,b=a.B;if(b===this.D)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{for(var c=g.t(this.j),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.j=[];for(d=0;dthis.api.fb().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.GJ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.GJ("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.qb||(this.show(),yP(this.tooltip)),this.visible=!0,this.Vb(!0)): this.qb&&(this.hide(),this.Vb(!1),yP(this.tooltip))}; QP.prototype.Vb=function(a){g.W.prototype.Vb.call(this,a);this.api.Wa(this.element,this.visible&&a)}; QP.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ja,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ja,this);this.Ja()};g.v(RP,g.W);g.k=RP.prototype;g.k.ZV=function(){this.C?UP(this):SP(this)}; g.k.YV=function(){this.C?(VP(this),this.I=!0):SP(this)}; g.k.y0=function(){this.D=!0;TP(this,1);this.G.ma("promotooltipacceptbuttonclicked",this.acceptButton);VP(this);this.u&&this.G.ub(this.acceptButton)}; g.k.v1=function(){this.D=!0;TP(this,2);VP(this);this.u&&this.G.ub(this.dismissButton)}; g.k.aW=function(a){if(1===this.G.getPresentingPlayerType()||2===this.G.getPresentingPlayerType()&&this.S){var b=!0,c=g.dh("ytp-ad-overlay-ad-info-dialog-container"),d=Cx(a);if(this.B&&d&&g.rh(this.B,d))this.B=null;else{1===this.G.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)}); var e=VIa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.rh(this.element,d));else{var h;"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null==(h=this.tooltipRenderer.dismissStrategy)?void 0:h.type)&&(b=e?!1:b&&g.rh(this.element,d))}this.j&&this.qb&&!c&&(!d||b&&g.YL(a))&&(this.D=!0,VP(this))}}}; g.k.Cb=function(){this.I||(this.j||(this.j=SIa(this)),UP(this))}; var TIa={"ytp-settings-button":g.lL()};g.v(WP,g.W);WP.prototype.onStateChange=function(a){this.Uc(a.state)}; WP.prototype.Uc=function(a){g.XK(this,g.V(a,2))}; WP.prototype.onClick=function(){this.G.Eb();this.G.playVideo()};g.v(g.XP,g.W);g.k=g.XP.prototype;g.k.onClick=function(){var a=this.api.V(),b=this.api.getVideoData(this.api.getPresentingPlayerType()),c=this.api.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);if(navigator.share)try{var d=navigator.share({title:b.title,url:a});d instanceof Promise&&d.catch(this.zP)}catch(e){e instanceof Error&&this.zP(e)}else this.j.al(),DN(this.u,this.element,!1);this.api.ub(this.element)}; g.k.Ja=function(){var a=this.api.V(),b=this.api.getVideoData(),c=g.LF(a)&&g.xN(this.api)&&g.V(this.api.Eb(),128);this.Oa("icon",{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{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.api.getPresentingPlayerType()|| !b.showShareButton||b.mm||c||b.D&&a.pfpChazalUi;c=this.api.fb().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.B&&!a;g.ko(this.element,"ytp-share-button-visible",this.visible);g.XK(this,this.visible);yP(this.tooltip);this.api.Wa(this.element,this.visible&&this.ya)}; g.k.Vb=function(a){g.W.prototype.Vb.call(this,a);this.api.Wa(this.element,this.visible&&a)}; g.k.ra=function(){g.W.prototype.ra.call(this);g.io(this.element,"ytp-share-button-visible")}; g.k.zP=function(a){"InvalidStateError"!==a.name&&"AbortError"!==a.name&&("NotAllowedError"===a.name?(this.j.al(),DN(this.u,this.element,!1)):g.qz(a))};g.v(g.YP,g.CN);g.k=g.YP.prototype;g.k.bW=function(a){a=Cx(a);g.rh(this.D,a)||g.rh(this.closeButton,a)||DN(this)}; g.k.Bb=function(){g.CN.prototype.Bb.call(this);this.tooltip.Zj(this.element)}; g.k.show=function(){var a=this.qb;g.CN.prototype.show.call(this);this.Ja();a||this.api.Pa("onSharePanelOpened")}; g.k.H_=function(){this.qb&&this.Ja()}; g.k.Ja=function(){var a=this;g.go(this.element,"ytp-share-panel-loading");g.io(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&vM(this.api.Em(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.io(a.element,"ytp-share-panel-loading"),XIa(a,d))}); b=this.api.getVideoUrl(!0,!0,!1,!1);g.WF(this.api.V())&&(b=g.xi(b,g.bN({},"emb_share")));this.Oa("link",b);this.Oa("linkText",b);this.Oa("shareLinkWithUrl",g.GJ("Share link $URL",{URL:b}));HO(this.B)}; g.k.onFullscreenToggled=function(a){!a&&this.wh()&&DN(this)}; g.k.focus=function(){this.B.focus()}; g.k.ra=function(){g.CN.prototype.ra.call(this);WIa(this)};g.v(aQ,g.W);g.k=aQ.prototype;g.k.qJ=function(){}; g.k.rJ=function(){}; g.k.CA=function(){return!0}; g.k.p5=function(){if(this.expanded){this.Aa.show();var a=this.I.element.scrollWidth}else a=this.I.element.scrollWidth,this.Aa.hide();this.bb=34+a;g.ko(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.bb)+"px";this.oa.start()}; g.k.TY=function(){this.badge.element.style.width=(this.expanded?this.bb:34)+"px";this.La.start()}; g.k.s6=function(){g.ko(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)}; g.k.Ij=function(){this.CA()?this.S.show():this.S.hide();YIa(this)}; g.k.cW=function(){this.enabled=!1;this.Ij()}; g.k.r6=function(){this.Ij()}; g.k.d1=function(a){this.Ta=1===a;this.Ij();g.ko(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}; g.k.B1=function(){g.ko(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.G.isFullscreen());this.Ij()};g.v(bQ,aQ);g.k=bQ.prototype;g.k.ra=function(){cQ(this);aQ.prototype.ra.call(this)}; g.k.qJ=function(a){a.target!==this.dismissButton.element&&($Ia(this,!1),this.G.Pa("innertubeCommand",this.onClickCommand))}; g.k.rJ=function(){this.B=!0;$Ia(this,!0);this.Ij()}; g.k.s2=function(a){this.Ia=a;this.Ij()}; g.k.h2=function(a){var b=this.G.getVideoData();b&&b.videoId===this.videoId&&this.Ba&&(this.Z=a,a||(a=3+this.G.getCurrentTime(),this.oe(a)))}; g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.B=!1,this.j=!0,this.Z=this.Ba=this.u=this.J=!1,cQ(this);if(a||!b.videoId)this.D=this.C=!1;a=b.shoppingOverlayRenderer;this.Ia=this.enabled=!1;if(a){this.enabled=!0;if(!this.C){var c,d=null==(c=a.badgeInteractionLogging)?void 0:c.trackingParams;(this.C=!!d)&&this.G.oi(this.badge.element,d||null)}if(!this.D){var e;if(this.D=!(null==(e=a.dismissButton)||!e.trackingParams)){var f;this.G.oi(this.dismissButton.element, (null==(f=a.dismissButton)?void 0:f.trackingParams)||null)}}this.text=g.zA(a.text);var h;if(c=null==(h=a.dismissButton)?void 0:h.a11yLabel)this.Xa=g.zA(c);this.onClickCommand=a.onClickCommand;this.timing=a.timing;dI(b)?this.Z=this.Ba=!0:this.oe()}ZIa(this);$P(this);this.Ij()}; g.k.CA=function(){return!this.Ia&&this.enabled&&!this.B&&!this.jb.Fg()&&!this.Ta&&!this.Z&&(this.u||this.j)}; g.k.Ef=function(a){(this.u=a)?(ZP(this),$P(this,!1)):(cQ(this),this.ea.start());this.Ij()}; g.k.oe=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.sA(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.sA(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.G.oe(b)};g.v(dQ,g.CN);dQ.prototype.show=function(){g.CN.prototype.show.call(this);this.j.start()}; dQ.prototype.hide=function(){g.CN.prototype.hide.call(this);this.j.stop()}; dQ.prototype.Vp=function(a,b){"dataloaded"===a&&((this.vg=b.vg,this.Be=b.Be,isNaN(this.vg)||isNaN(this.Be))?this.B&&(this.G.Ff("intro"),this.G.removeEventListener(g.uA("intro"),this.I),this.G.removeEventListener(g.vA("intro"),this.D),this.G.removeEventListener("onShowControls",this.C),this.hide(),this.B=!1):(this.G.addEventListener(g.uA("intro"),this.I),this.G.addEventListener(g.vA("intro"),this.D),this.G.addEventListener("onShowControls",this.C),a=new g.sA(this.vg,this.Be,{priority:9,namespace:"intro"}), this.G.oe([a]),this.B=!0))};g.v(eQ,g.W);eQ.prototype.onClick=function(){this.G.Nq()}; eQ.prototype.Ja=function(){var a=!0;g.LF(this.G.V())&&(a=a&&480<=this.G.fb().getPlayerSize().width);g.XK(this,a);this.Oa("icon",this.G.Dg()?{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,X:{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"}}]}:{F:"svg", X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{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"}}]})};new yv("yt.autonav");g.v(fQ,g.W);g.k=fQ.prototype; g.k.Rx=function(){var a;if(a=3!==this.G.getPresentingPlayerType()&&g.BN(this.G)&&400<=this.G.fb().getPlayerSize().width)a=this.Zc(),a=this.G.V().K("client_respect_autoplay_switch_button_renderer")?!!a.autoplaySwitchButtonRenderer:!1!==a.sU;if(a)this.j||(this.j=!0,g.XK(this,this.j),this.G.V().K("web_player_autonav_toggle_always_listen")||aJa(this),a=this.Zc(),this.eN(a.autonavState),this.G.Wa(this.element,this.j));else if(this.j=!1,g.XK(this,this.j),!this.G.V().K("web_player_autonav_toggle_always_listen")){this.G.V().K("web_player_autonav_toggle_always_listen");a= g.t(this.u);for(var b=a.next();!b.done;b=a.next())this.yc(b.value)}}; g.k.eN=function(a){cJa(this)?this.isChecked=1!==a:((a=1!==a)||(g.qv.getInstance(),a=g.S("web_autonav_allow_off_by_default")&&!g.rv(0,141)&&g.O("AUTONAV_OFF_BY_DEFAULT")?!1:!g.rv(0,140)),this.isChecked=a);bJa(this)}; g.k.onClick=function(){this.isChecked=!this.isChecked;this.G.pE(this.isChecked?2:1);bJa(this);if(cJa(this)){var a=this.Zc().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.G.Pa("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.G.Pa("innertubeCommand",a.onDisabledCommand)}this.G.ub(this.element)}; g.k.getValue=function(){return this.isChecked}; g.k.setValue=function(a){this.isChecked=a;this.Ca("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))}; g.k.Zc=function(){var a;this.G.V().K("web_player_autonav_toggle_app_video_data_killswitch")||(a=1);return this.G.getVideoData(a)};g.v(g.hQ,g.W);g.hQ.prototype.ra=function(){this.ctx=null;g.W.prototype.ra.call(this)};g.v(iQ,g.W);iQ.prototype.onClick=function(){this.G.Pa("innertubeCommand",this.j)}; iQ.prototype.J=function(a){a!==this.D&&(this.update({title:a}),this.D=a);a?this.show():this.hide()}; iQ.prototype.I=function(){this.B.disabled=null==this.j;g.ko(this.B,"ytp-chapter-container-disabled",this.B.disabled);this.Zb()};g.v(jQ,iQ);jQ.prototype.onClickCommand=function(a){g.$u(a,RH)&&this.Zb()}; jQ.prototype.updateVideoData=function(a,b){var c;this.j=null==(c=b.wU)?void 0:c.command;iQ.prototype.I.call(this)}; jQ.prototype.Zb=function(){var a="",b=this.C.j,c=this.G.getLoopRange();c=!this.G.K("web_repeating_chapters")&&c||"clips"===(null==c?void 0:c.type);if(1d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.AJ()}}; g.k.disable=function(){var a=this;if(!this.message){var b=(null!=wx(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Full screen is unavailable. $BEGIN_LINKFind out more$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKFind out more$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.CN(this.G,{F:"div",Fa:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},W:[b[0],{F:"a",X:{href:"https://support.google.com/youtube/answer/6276924", target:this.G.V().J},qa:b[2]},b[4]]},100,!0);this.message.hide();g.N(this,this.message);this.message.subscribe("show",function(c){a.u.Fv(a.message,c)}); g.AN(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}}; g.k.Ja=function(){var a=VHa(this.G),b=this.G.V().I&&250>this.G.getPlayerSize().width;g.XK(this,a&&!b);this.G.Wa(this.element,this.qb)}; g.k.Dk=function(a){if(a){var b={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"g",N:"ytp-fullscreen-button-corner-2",W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{F:"g",N:"ytp-fullscreen-button-corner-3",W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{F:"g",N:"ytp-fullscreen-button-corner-0",W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{F:"g", N:"ytp-fullscreen-button-corner-1",W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=IO(this.G,"Exit full screen","f");document.activeElement===this.element&&this.G.getRootNode().focus()}else b={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"g",N:"ytp-fullscreen-button-corner-0",W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{F:"g",N:"ytp-fullscreen-button-corner-1",W:[{F:"path", Ob:!0,N:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{F:"g",N:"ytp-fullscreen-button-corner-2",W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{F:"g",N:"ytp-fullscreen-button-corner-3",W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=IO(this.G,"Full screen","f");a=this.message?null:a;this.update({title:a,icon:b});yP(this.u.vc())}; g.k.ra=function(){this.message||((0,this.j)(),this.j=null);g.W.prototype.ra.call(this)};g.v(oQ,iQ);oQ.prototype.onClickCommand=function(a){g.$u(a,E_a)&&this.Zb()}; oQ.prototype.updateVideoData=function(){var a,b;this.j=null==(a=eJa(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;iQ.prototype.I.call(this)}; oQ.prototype.Zb=function(){var a="",b=this.C.S,c,d=null==(c=eJa(this))?void 0:c.headerTitle;c=d?g.zA(d):"";d=this.G.getLoopRange();d=!this.G.K("web_repeating_chapters")&&d||"clips"===(null==d?void 0:d.type);1a&&this.delay.start()}; var p1a=new g.xo(0,0,.4,0,.2,1,1,1),jJa=/[0-9.-]+|[^0-9.-]+/g;g.v(g.uQ,g.W);g.k=g.uQ.prototype;g.k.fN=function(a){this.visible=300<=a.width;g.XK(this,this.visible);this.G.Wa(this.element,this.visible&&this.ya)}; g.k.X1=function(){this.G.V().Ba?this.G.isMuted()?this.G.unMute():this.G.mute():DN(this.message,this.element,!0);this.G.ub(this.element)}; g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)}; g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.G.V();a=0===d?1:50=uJa(this)){this.api.seekTo(a,!1);g.Bl(this.B,"transform","translateX("+this.u+"px)");var b=g.XL(a),c=g.GJ("Seek to $PROGRESS",{PROGRESS:g.XL(a,!0)});this.update({ariamin:0,ariamax:Math.floor(this.api.getDuration()),arianow:Math.floor(a),arianowtext:c,seekTime:b})}else this.u=this.I}; g.k.eW=function(){var a=300>(0,g.T)()-this.Aa;if(5>Math.abs(this.J)&&!a){this.Aa=(0,g.T)();a=this.S+this.J;var b=this.C/2-a;this.RF(a);this.QF(a+b);AQ(this);this.api.ub(this.B)}AQ(this)}; g.k.Bw=function(){BQ(this,this.api.getCurrentTime())}; g.k.play=function(a){this.api.seekTo(vJa(this,this.u));this.api.playVideo();a&&this.api.ub(this.playButton)}; g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ba=this.api.getCurrentTime(),g.ko(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.oa=this.T(this.element,"wheel",this.fW),this.Wa(this.isEnabled))}; g.k.disable=function(){this.isEnabled=!1;this.hide();g.ko(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.oa&&this.yc(this.oa);this.Wa(this.isEnabled)}; g.k.reset=function(){this.disable();this.D=[];this.ea=!1}; g.k.Wa=function(a){this.api.Wa(this.element,a);this.api.Wa(this.B,a);this.api.Wa(this.dismissButton,a);this.api.Wa(this.playButton,a)}; g.k.ra=function(){for(;this.j.length;){var a=void 0;null==(a=this.j.pop())||a.dispose()}g.W.prototype.ra.call(this)}; g.v(sJa,g.W);g.v(CQ,g.W);g.v(wJa,g.W);g.v(DQ,g.W);zJa.prototype.update=function(a,b,c,d){this.width=b;this.u=c;this.C=d;this.j=b-c-d;this.position=g.Fg(a,c,c+this.j);this.B=this.position-c;this.fraction=this.B/this.j};g.v(HQ,g.W);g.v(g.JQ,g.YK);g.k=g.JQ.prototype; g.k.rT=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.Ff("timedMarkerCueRange");KQ(this);for(var c=g.t(b.Md),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Lc[d])?void 0:e.markers;if(f){a=g.t(f);for(e=a.next();!e.done;e=a.next()){f=e.value;e=new HQ;var h=void 0;e.title=(null==(h=f.title)?void 0:h.simpleText)||"";e.timeRangeStartMillis=Number(f.startMillis);e.j=Number(f.durationMillis);var l=h=void 0;e.onActiveCommand=null!=(l=null==(h=f.onActive)?void 0: h.innertubeCommand)?l:void 0;DJa(this,e)}LQ(this,this.S);a=this.S;e=this.Ne;f=[];h=null;for(l=0;lm&&(h.end=m);m=OIa(m,m+p);f.push(m);h=m;e[m.id]=a[l].onActiveCommand}}this.api.oe(f);this.kf=this.Lc[d];a=!0}}b.QL=this.S;g.ko(this.element,"ytp-timed-markers-enabled",a);return a}; g.k.Cb=function(){g.MQ(this);QQ(this);LQ(this,this.S);var a;null==(a=this.u)||BQ(a,this.api.getCurrentTime())}; g.k.onClickCommand=function(a){if(a=g.$u(a,RH)){var b=a.key;a.isVisible&&b&&NQ(this,b)}}; g.k.x3=function(a){this.api.Pa("innertubeCommand",this.Ne[a.id])}; g.k.Zb=function(){QQ(this);var a=this.api.getCurrentTime();(athis.clipEnd)&&this.iE()}; g.k.hW=function(a){if(!g.Gx(a)){var b=!1;switch(g.Hx(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.Fx(a)}}; g.k.Vp=function(a,b){this.updateVideoData(b,"newdata"===a)}; g.k.HZ=function(){this.Vp("newdata",this.api.getVideoData())}; g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(yI(a)||TQ(this)?this.ud=!1:this.ud=a.allowLiveDvr,g.ko(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!yI(a))));PJa(this,this.api.fg());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;WQ(this);for(RQ(this,this.oa,this.Lb);0m&&(c=m,b=-this.Ba,m=dM(this.B,m)*PQ(this).j+b,a.position=m), b=this.B.u;TQ(this)&&(b=this.B.u);m=f||g.XL(this.ud?c-this.B.j:c-b);b=a.position+this.wg;c-=this.api.Ad();var n;if(null==(n=this.u)||!n.isEnabled)if(this.api.Ji()){if(1=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.K("web_key_moments_markers")?this.kf?(n=LIa(this.S,1E3*c),n=null!=n?this.S[n].title:""):(n=GP(this.j,1E3*c),n=this.j[n].title):(n=GP(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=GP(this.j,1E3*c);this.jb=IJa(this,c,d)?d:IJa(this,c,d+1)?d+1:-1;g.ko(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.jb&&1=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.XL(h.decorationTimeMillis/1E3),d=!0)}this.le!==d&&(this.le=d,this.api.Wa(this.Md,this.le));g.ko(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.C?8.55:5.7);e=e<=d?e:d;h=e<160*this.tooltip.scale;d=3;!h&&e/2>a.position&&(d=1);!h&&e/2>this.D-a.position&&(d=2);this.api.V().I&&(l-=10); this.I.length&&this.I[0].isValid&&(l-=14*(this.C?2:1),this.La||(this.La=!0,this.api.Wa(this.Aa,this.La)));var q;if(IQ(this)&&((null==(q=this.u)?0:q.isEnabled)||0=.5*b?(this.u.enable(),BQ(this.u,this.api.getCurrentTime()),OJa(this,b)):aR(this)}else if(this.jd=0,g.io(this.element,"ytp-pull-ui"),g.io(this.element,"ytp-pulling"),this.J&&(this.J.dispose(),this.J=null),0l||1l&&a.J.start();a.Qa&&(a.Qa=!1,a.api.Wa(a.kb,a.Qa))}); this.J.start()}if(g.V(this.api.Eb(),32)||3===this.api.getPresentingPlayerType()){var d;if(null==(d=this.u)?0:d.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1=e.visibleTimeRangeStartMillis&&1E3*b<=e.visibleTimeRangeEndMillis&&this.api.ub(this.Md)}g.io(this.element,"ytp-drag"); this.Oe&&!g.V(this.api.Eb(),2)&&this.api.playVideo()}}}; g.k.z2=function(a,b){var c=this,d=!1,e=!1;a=PQ(this);1===this.j.length&&!IQ(this)&&3600<=bM(this.B)&&(JJa(this,this.me-b-10,a.position,a.fraction),e=!0,d=this.Z>.1*(this.C?60:40),a=PQ(this));g.ko(this.element,"ytp-pull-ui",e);d&&g.go(this.element,"ytp-pulling");d=0;a.u&&0>=a.position?d=-1:a.C&&a.position>=a.width&&(d=1);if(this.jd!==d&&(this.jd=d,this.J&&(this.J.dispose(),this.J=null),d)){var f=(0,g.T)();this.J=new g.Wn(function(){var l=c.D*(c.bb-1);c.Ba=g.Fg(c.Ba+c.jd*((0,g.T)()-f)*.3,0,l);SQ(c); c.api.seekTo(VQ(c,PQ(c)),!1);0=this.rd.Hi()&&this.hide();this.rd.Gf(a);a=this.Qo;a.u=0=b;g.XK(this,a);this.G.Wa(this.element,a)}; jR.prototype.B=function(){if(this.ob.qb)this.ob.Bb();else{var a=g.mO(this.G.wb());a&&!a.loaded&&(a.zg("tracklist",{includeAsr:!0}).length||a.load());this.G.ub(this.element);this.ob.Pc(this.element)}}; jR.prototype.updateBadge=function(){var a=this.G.isHdr(),b=this.G.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.zN(this.G),e=c&&!!g.yN(this.G.wb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.G.getPlaybackQuality();g.ko(this.element,"ytp-hdr-quality-badge",a);g.ko(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.ko(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.ko(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.ko(this.element,"ytp-8k-quality-badge", !a&&"highres"===c);g.ko(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.ko(this.element,"ytp-3d-badge",!a&&e&&d)};g.v(lR,MN);lR.prototype.isLoaded=function(){var a=g.vO(this.G.wb());return void 0!==a&&a.loaded}; lR.prototype.Ja=function(){void 0!==g.vO(this.G.wb())&&3!==this.G.getPresentingPlayerType()?this.j||(this.ob.Ec(this),this.j=!0):this.j&&(this.ob.Gf(this),this.j=!1);this.setValue(this.isLoaded())}; lR.prototype.onSelect=function(a){this.isLoaded();a?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.ma("annotationvisibility",a)}; lR.prototype.ra=function(){this.j&&this.ob.Gf(this);MN.prototype.ra.call(this)};g.v(g.mR,g.FN);g.k=g.mR.prototype;g.k.open=function(){g.qP(this.ob,this.u)}; g.k.Tj=function(a){RJa(this);this.options[a].element.setAttribute("aria-checked","true");this.Sd(this.Uk(a));this.B=a}; g.k.JG=function(a,b,c){var d=this;b=new g.FN({F:"div",Fa:["ytp-menuitem"],X:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},W:[{F:"div",Fa:["ytp-menuitem-label"],qa:"{{label}}"}]},b,this.Uk(a,!0));b.Ra("click",function(){d.Ng(a)}); return b}; g.k.enable=function(a){this.C?a||(this.C=!1,this.Fu(!1)):a&&(this.C=!0,this.Fu(!0))}; g.k.Fu=function(a){a?this.ob.Ec(this):this.ob.Gf(this)}; g.k.Ng=function(a){this.ma("select",a)}; g.k.Uk=function(a){return a.toString()}; g.k.iW=function(a){g.Gx(a)||39!==g.Hx(a)||(this.open(),g.Fx(a))}; g.k.ra=function(){this.C&&this.ob.Gf(this);g.FN.prototype.ra.call(this);for(var a=g.t(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.v(oR,g.mR);oR.prototype.Ja=function(){var a=this.G.getAvailableAudioTracks();1(a.deltaX||-a.deltaY)?-this.D:this.D;this.Lt(b);g.Fx(a)}; g.k.kW=function(a){a=(a-g.Jl(this.u).x)/this.J*this.range+this.minimumValue;this.Lt(a)}; g.k.Lt=function(a,b){b=void 0===b?"":b;a=g.Fg(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Oa("valuenow",a);this.Oa("valuetext",b);this.S.style.left=(a-this.minimumValue)/this.range*(this.J-this.ea)+"px";this.j=a}; g.k.focus=function(){this.oa.focus()};g.v(yR,wR);yR.prototype.Z=function(){this.G.setPlaybackRate(this.j,!0)}; yR.prototype.Lt=function(a){wR.prototype.Lt.call(this,a,zR(this,a).toString());this.B&&(xR(this),this.Aa())}; yR.prototype.Ba=function(){var a=this.G.getPlaybackRate();zR(this,this.j)!==a&&(this.Lt(a),xR(this))};g.v(AR,g.YK);AR.prototype.focus=function(){this.j.focus()};g.v(VJa,jP);g.v(BR,g.mR);g.k=BR.prototype;g.k.Uk=function(a){return"1"===a?"Normal":a.toLocaleString()}; g.k.Ja=function(){var a=this.G.getPresentingPlayerType();this.enable(2!==a&&3!==a);YJa(this)}; g.k.Fu=function(a){g.mR.prototype.Fu.call(this,a);a?(this.J=this.T(this.G,"onPlaybackRateChange",this.onPlaybackRateChange),YJa(this),WJa(this,this.G.getPlaybackRate())):(this.yc(this.J),this.J=null)}; g.k.onPlaybackRateChange=function(a){var b=this.G.getPlaybackRate();this.I.includes(b)||XJa(this,b);WJa(this,a)}; g.k.Ng=function(a){g.mR.prototype.Ng.call(this,a);a===this.j?this.G.setPlaybackRate(this.D,!0):this.G.setPlaybackRate(Number(a),!0);this.ob.Ui()};g.v(DR,g.mR);g.k=DR.prototype;g.k.Tj=function(a){g.mR.prototype.Tj.call(this,a)}; g.k.getKey=function(a){return a.option.toString()}; g.k.getOption=function(a){return this.settings[a]}; g.k.Uk=function(a){return this.getOption(a).text||""}; g.k.Ng=function(a){g.mR.prototype.Ng.call(this,a);this.ma("settingChange",this.setting,this.settings[a].option)};g.v(ER,g.kP);ER.prototype.Lg=function(a){for(var b=g.t(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.oq[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Tj(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}}; ER.prototype.Si=function(a,b){this.ma("settingChange",a,b)};g.v(FR,g.mR);FR.prototype.getKey=function(a){return a.languageCode}; FR.prototype.Uk=function(a){return this.languages[a].languageName||""}; FR.prototype.Ng=function(a){this.ma("select",a);this.G.ub(this.element);g.uP(this.ob)};g.v(GR,g.mR);g.k=GR.prototype;g.k.getKey=function(a){return g.Df(a)?"__off__":a.displayName}; g.k.Uk=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName}; g.k.Ng=function(a){"__translate__"===a?this.j.open():"__contribute__"===a?(this.G.pauseVideo(),this.G.isFullscreen()&&this.G.toggleFullscreen(),a=g.aN(this.G.V(),this.G.getVideoData()),g.jM(a)):(this.G.ub(this.element),this.G.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.mR.prototype.Ng.call(this,a),this.ob.Ui())}; g.k.Ja=function(){var a=this.G.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.G.getVideoData();b=b&&b.SB;var c,d=!(null==(c=this.G.getVideoData())||!g.vI(c));c={};if(a||b){if(a){var e=this.G.getOption("captions","track");c=this.G.getOption("captions","tracklist",{includeAsr:!0});var f=d?[]:this.G.getOption("captions","translationLanguages");this.tracks=g.sc(c,this.getKey,this);d=g.Pk(c,this.getKey);if(f.length&&!g.Df(e)){var h=e.translationLanguage;if(h&&h.languageName){var l=h.languageName; h=f.findIndex(function(m){return m.languageName===l}); Uaa(f,h)}$Ja(this.j,f);d.push("__translate__")}f=this.getKey(e)}else this.tracks={},d=[],f="__off__";d.unshift("__off__");this.tracks.__off__={};b&&d.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=e,d.push(f));g.nR(this,d);this.Tj(f);e&&e.translationLanguage?this.j.Tj(this.j.getKey(e.translationLanguage)):RJa(this.j);a&&this.D.Lg(this.G.getSubtitlesUserSettings());this.J.Sd(c&&c.length?" ("+c.length+")":"");this.ma("size-change");this.G.Wa(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.k.mW=function(a){var b=this.G.getOption("captions","track");b=g.Hf(b);b.translationLanguage=this.j.languages[a];this.G.setOption("captions","track",b)}; g.k.Si=function(a,b){if("reset"===a)this.G.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.G.updateSubtitlesUserSettings(c)}aKa(this,!0);this.I.start();this.D.Lg(this.G.getSubtitlesUserSettings())}; g.k.d3=function(a){a||g.ao(this.I)}; g.k.ra=function(){g.ao(this.I);g.mR.prototype.ra.call(this)};g.v(HR,g.sP);g.k=HR.prototype;g.k.initialize=function(){if(!this.isInitialized){this.isInitialized=!0;var a=new sR(this.G,this);g.N(this,a);a=new GR(this.G,this);g.N(this,a);this.G.V().B||(a=new lR(this.G,this),g.N(this,a));this.G.V().Hd&&(a=new BR(this.G,this),g.N(this,a));this.G.V().ud&&!this.G.V().K("web_player_move_autonav_toggle")&&(a=new pR(this.G,this),g.N(this,a));a=new oR(this.G,this);g.N(this,a);this.G.ma("settingsMenuInitialized");kR(this.settingsButton,this.rd.Hi())}}; g.k.Ec=function(a){this.initialize();this.rd.Ec(a);kR(this.settingsButton,this.rd.Hi())}; g.k.Gf=function(a){this.qb&&1>=this.rd.Hi()&&this.hide();this.rd.Gf(a);kR(this.settingsButton,this.rd.Hi())}; g.k.Pc=function(a){this.initialize();0=b;g.XK(this,c);this.G.Wa(this.element,c);a&&this.Oa("pressed",this.isEnabled())};g.v(g.LR,g.W);g.k=g.LR.prototype; g.k.Zb=function(){var a=this.api.fb().getPlayerSize().width,b=this.J;this.api.V().I&&(b=400);b=a>=b&&(!NR(this)||!g.V(this.api.Eb(),64));g.XK(this,b);g.ko(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.V().K("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);MR(this)&&(c-=this.xb.startTimeMs/1E3);c=g.XL(c);this.B!==c&&(this.Oa("currenttime",c),this.B=c);b=MR(this)? g.XL((this.xb.endTimeMs-this.xb.startTimeMs)/1E3):g.XL(this.api.V().K("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.C!==b&&(this.Oa("duration",b),this.C=b)}a=a.isAtLiveHead;!NR(this)||this.I===a&&this.D===this.isPremiere||(this.I=a,this.D=this.isPremiere,this.Zb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Sd(this.isPremiere?"Premiere":"Live"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.j=g.cP(this.tooltip, this.liveBadge.element)));a=this.api.getLoopRange();b=this.xb!==a;this.xb=a;b&&KR(this)}; g.k.onLoopRangeChange=function(a){var b=this.xb!==a;this.xb=a;b&&(this.Zb(),KR(this))}; g.k.L3=function(){this.api.setLoopRange(null)}; g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.V().K("enable_topsoil_wta_for_halftime")||this.api.V().K("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Zb();KR(this)}; g.k.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.Ub;this.u=yI(a);this.isPremiere=a.isPremiere;g.ko(this.element,"ytp-live",NR(this))}; g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())}; g.k.ra=function(){this.j&&this.j();g.W.prototype.ra.call(this)};g.v(QR,g.W);g.k=QR.prototype;g.k.Jo=function(){var a=this.j.Vf();this.C!==a&&(this.C=a,PR(this,this.api.getVolume(),this.api.isMuted()))}; g.k.iN=function(a){g.XK(this,350<=a.width)}; g.k.pW=function(a){if(!g.Gx(a)){var b=g.Hx(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.Fg(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.Fx(a))}}; g.k.nW=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.Fg(b/10,-10,10));g.Fx(a)}; g.k.j3=function(){OR(this,this.u,!0,this.B,this.j.jk());this.Z=this.volume;this.api.isMuted()&&this.api.unMute()}; g.k.oW=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Jl(this.S).x;this.api.setVolume(100*g.Fg((a-c/2)/(b-c),0,1))}; g.k.h3=function(){OR(this,this.u,!1,this.B,this.j.jk());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Z))}; g.k.onVolumeChange=function(a){PR(this,a.volume,a.muted)}; g.k.oO=function(){OR(this,this.u,this.isDragging,this.B,this.j.jk())}; g.k.ra=function(){g.W.prototype.ra.call(this);g.io(this.J,"ytp-volume-slider-active")};g.v(g.RR,g.W);g.RR.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).D,b=this.api.V();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.XK(this,this.visible);this.api.Wa(this.element,this.visible&&this.ya);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Oa("url",a));b.B&&(this.j&&(this.yc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.go(this.element,"no-link"))}; g.RR.prototype.onClick=function(a){var b=this.api.V(),c=this.api.getVideoUrl(!g.YL(a),!1,!0,!0);if(g.LF(b)||g.WF(b)){var d={};b.ya&&g.LF(b)&&g.cN(d,b.loaderUrl);c=g.xi(c,g.bN(d,"emb_logo"))}g.FO(c,this.api,a);this.api.ub(this.element)}; g.RR.prototype.Cb=function(){var a={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},W:[{F:"path",Ob:!0,N:"ytp-svg-fill",X:{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 "}}]}; if(g.WF(this.api.V())){var b=this.Ca("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{F:"svg",X:{fill:"none",height:"24",width:"24"},W:[{F:"circle",X:{cx:"12",cy:"12",fill:"red",r:"12"}},{F:"ellipse",X:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{F:"path",X:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{F:"svg",X:{viewBox:"0 0 80 24"},W:[{F:"ellipse",X:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{F:"ellipse",X:{cx:"12.18", cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{F:"path",X:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09zM37.43 9.64c-.57 2.85-1.01 6.33-1.25 7.77h-.16c-.18-1.48-.62-4.94-1.22-7.75L33.31 2.67h-4.52v18.85h2.80V5.98l.27 1.45 2.85 14.08h2.80l2.80-14.08.3-1.45v15.54h2.80V2.67h-4.56l-1.43 6.96zM51.01 18.69c-.25.51-.81.87-1.36.87-.64 0-.90-.49-.90-1.70V7.75H45.54v10.29c0 2.54.85 3.70 2.75 3.70 1.29 0 2.33-.56 3.05-1.90h.07l.27 1.68h2.50V7.75h-3.19v10.94h.00zM60.39 13.19c-1.04-.74-1.69-1.23-1.69-2.31 0-.76.37-1.19 1.25-1.19.90 0 1.20.60 1.22 2.67l2.68-.11c.20-3.34-.92-4.74-3.87-4.74-2.73 0-4.07 1.19-4.07 3.63 0 2.22 1.11 3.23 2.92 4.56 1.55 1.16 2.45 1.82 2.45 2.76 0 .72-.46 1.21-1.27 1.21-.95 0-1.50-.87-1.36-2.40l-2.71.04c-.41 2.85.76 4.51 3.91 4.51 2.75 0 4.19-1.23 4.19-3.70-.00-2.24-1.16-3.14-3.66-4.94zM68.87 7.75h-3.05v13.77h3.06V7.75zM67.36 2.31c-1.18 0-1.73.42-1.73 1.91 0 1.52.55 1.90 1.73 1.90 1.20 0 1.73-.38 1.73-1.90 0-1.41-.53-1.91-1.73-1.91zM79.15 16.56l-2.80-.13c0 2.42-.27 3.21-1.22 3.21-.95 0-1.11-.87-1.11-3.73v-2.67c0-2.76.18-3.63 1.13-3.63.88 0 1.11.83 1.11 3.39l2.77-.17c.18-2.13-.09-3.59-.94-4.42-.62-.60-1.57-.89-2.89-.89-3.10 0-4.37 1.61-4.37 6.15v1.93c0 4.67 1.08 6.17 4.26 6.17 1.34 0 2.27-.27 2.89-.85.90-.81 1.24-2.20 1.18-4.34z", fill:"#fff"}}]};g.ko(b,"ytp-youtube-music-logo-icon-only",c)}a.X=Object.assign({},a.X,{"aria-hidden":"true"});this.Oa("logoSvg",a)}; g.RR.prototype.Vb=function(a){g.W.prototype.Vb.call(this,a);this.api.Wa(this.element,this.visible&&a)};g.v(SR,g.YD);g.k=SR.prototype;g.k.Wd=function(){this.Bc.Zb();this.wi.Zb()}; g.k.zl=function(){this.SF();if(this.Zd.u){this.Wd();var a;null==(a=this.Z)||a.show()}else{g.bS(this.Bc.tooltip);var b;null==(b=this.Z)||b.hide()}}; g.k.Zs=function(){this.Wd();this.Ee.start()}; g.k.SF=function(){var a=!this.G.V().isMobile&&300>g.QJa(this.Bc)&&this.G.Eb().Sc()&&!!window.requestAnimationFrame,b=!a;this.Zd.u||(a=b=!1);b?this.S||(this.S=this.T(this.G,"progresssync",this.Wd)):this.S&&(this.yc(this.S),this.S=null);a?this.Ee.isActive()||this.Ee.start():this.Ee.stop()}; g.k.Cb=function(){var a=this.C.Vf(),b=this.G.fb().getPlayerSize(),c=TR(this),d=Math.max(b.width-2*c,100);if(this.Ta!==b.width||this.Qa!==a){this.Ta=b.width;this.Qa=a;var e=fKa(this);this.u.element.style.width=e+"px";this.u.element.style.left=c+"px";g.$Q(this.Bc,c,e,a);this.C.vc().TF=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-UR(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.zB=e;c.nx();this.SF();!this.G.V().K("html5_player_bottom_linear_gradient")&&this.G.V().K("html5_player_dynamic_bottom_gradient")&& g.gQ(this.Xa,b.height)}; g.k.onVideoDataChange=function(){var a=this.G.getVideoData();this.Aa.style.background=a.D?a.kb:"";g.XK(this.ea,a.JI)};g.v(VR,aQ);g.k=VR.prototype;g.k.qJ=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.Pa("innertubeCommand",this.onClickCommand),this.B=!0,this.S.hide())}; g.k.rJ=function(){this.B=!0;this.S.hide()}; g.k.onVideoDataChange=function(a,b){"newdata"===a&&(this.u=this.B=!1,WR(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.j=this.J=this.enabled=!0;this.text=(b=a.title)?g.zA(b):"View Chapters";var c=g.$u(a.trigger,kBa);if(c){b=[];var d=c.timeRangeStartMillis;c=c.timeRangeEndMillis;null!=d&&null!=c&&b.push(new g.sA(d,c,{priority:9,namespace:"suggested_action_button_visible"}));this.G.oe(b)}this.onClickCommand=a.tapCommand;ZIa(this);$P(this);this.Ij()}}; g.k.CA=function(){return!this.B&&this.enabled&&(this.u||this.j)}; g.k.Ef=function(a){this.B||((this.u=a)?ZP(this):(WR(this),this.ea.start()),this.Ij())}; g.k.ra=function(){WR(this);aQ.prototype.ra.call(this)};var q4={},YR=(q4.CHANNEL_NAME="ytp-title-channel-name",q4.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",q4.LINK="ytp-title-link",q4.SESSIONLINK="yt-uix-sessionlink",q4.SUBTEXT="ytp-title-subtext",q4.TEXT="ytp-title-text",q4.TITLE="ytp-title",q4);g.v(ZR,g.W);ZR.prototype.onClick=function(a){this.api.ub(this.element);var b=this.api.V(),c=this.api.getVideoUrl(!g.YL(a),!1,!0);if(g.LF(b)){var d={};b.ya&&g.cN(d,b.loaderUrl);c=g.xi(c,g.bN(d,"emb_title"))}g.FO(c,this.api,a)}; ZR.prototype.Ja=function(){var a=this.api.getVideoData(),b=this.api.V();this.Oa("title",a.title);var c={F:"a",N:YR.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},qa:"{{channelName}}"};this.api.V().B&&(c={F:"span",N:YR.CHANNEL_NAME,qa:"{{channelName}}"});this.Oa("subtextElement",c);gKa(this);2===this.api.getPresentingPlayerType()&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Hd&&c.profilePicture?(this.Oa("channelLink",c.Hd),this.Oa("channelName",c.author),this.Oa("channelTitleFocusable", "0")):gKa(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.Lb;g.ko(this.link,YR.FULLERSCREEN_LINK,c);b.S||!a.videoId||c||a.D&&b.pfpChazalUi||b.B?this.j&&(this.Oa("url",null),this.yc(this.j),this.j=null):(this.Oa("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.T(this.link,"click",this.onClick)));b.B&&this.Oa("channelName",g.LF(b)?a.expandedTitle:a.author)};g.v(g.$R,g.W);g.k=g.$R.prototype;g.k.dR=function(a,b){a<=this.B&&this.B<=b&&(a=this.B,this.B=NaN,iKa(this,a))}; g.k.B_=function(){NAa(this.j,this.B,160*this.scale)}; g.k.Ol=function(){switch(this.type){case 2:var a=this.u;a.removeEventListener("mouseout",this.Z);a.addEventListener("mouseover",this.C);a.removeEventListener("blur",this.Z);a.addEventListener("focus",this.C);lKa(this);break;case 3:lKa(this);break;case 1:this.j&&(this.j.unsubscribe("l",this.dR,this),this.j=null),this.api.removeEventListener("videoready",this.ea),this.oa.stop()}this.type=null;this.J&&this.D.hide()}; g.k.Zj=function(){if(this.u)for(var a=0;a(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"}; g.k.zl=function(a){a&&(this.tooltip.Zj(this.Fj.element),this.Of&&this.tooltip.Zj(this.Of.u.element));this.qz&&(g.ko(this.contextMenu.element,"ytp-autohide",a),g.ko(this.contextMenu.element,"ytp-autohide-active",!0));g.TO.prototype.zl.call(this,a)}; g.k.pJ=function(){g.TO.prototype.pJ.call(this);this.qz&&(g.ko(this.contextMenu.element,"ytp-autohide-active",!1),this.qz&&(this.contextMenu.hide(),this.Ch&&this.Ch.hide()))}; g.k.gk=function(a,b){var c=this.api.fb().getPlayerSize();c=new g.yl(0,0,c.width,c.height);if(a||this.Zd.u&&!this.Mq()){if(this.api.V().Mj||b)a=this.Vf()?this.TG:this.SG,c.top+=a,c.height-=a;this.Of&&(c.height-=UR(this.Of))}return c}; g.k.Jo=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Full screen"),this.api.V().externalFullscreen||(b.parentElement.insertBefore(this.qC.element,b),b.parentElement.insertBefore(this.pC.element,b.nextSibling))):g.fu(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.qC.detach(),this.pC.detach());this.Cb();this.Bn()}; g.k.Vf=function(){var a=this.api.V();return this.api.isFullscreen()&&!a.I||!1}; g.k.showControls=function(a){this.bC=!a;this.Jk()}; g.k.Cb=function(){var a=this.Vf();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.ko(this.contextMenu.element,"ytp-big-mode",a);this.Jk();if(this.Fg()&&this.Ch)this.cj&&NP(this.Ch,this.cj),this.shareButton&&NP(this.Ch,this.shareButton),this.Jh&&NP(this.Ch,this.Jh);else{if(this.Ch){a=this.Ch;for(var b=g.t(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.cj&&!g.rh(this.xi.element,this.cj.element)&&this.cj.Da(this.xi.element);this.shareButton&&!g.rh(this.xi.element, this.shareButton.element)&&this.shareButton.Da(this.xi.element);this.Jh&&!g.rh(this.xi.element,this.Jh.element)&&this.Jh.Da(this.xi.element)}this.Bn();g.TO.prototype.Cb.call(this)}; g.k.QH=function(){if(qKa(this)&&!g.xN(this.api))return!1;var a=this.api.getVideoData();return!g.LF(this.api.V())||2===this.api.getPresentingPlayerType()||!this.Lh||((a=this.Lh||a.Lh)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.$u(a.videoDetails,NBa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.TO.prototype.QH.call(this):!1}; g.k.Bn=function(){g.TO.prototype.Bn.call(this);this.api.Wa(this.title.element,!!this.Um);this.Gw&&this.Gw.Vb(!!this.Um);this.channelAvatar.Vb(!!this.Um);this.overflowButton&&this.overflowButton.Vb(this.Fg()&&!!this.Um);this.shareButton&&this.shareButton.Vb(!this.Fg()&&!!this.Um);this.cj&&this.cj.Vb(!this.Fg()&&!!this.Um);this.Jh&&this.Jh.Vb(!this.Fg()&&!!this.Um);if(!this.Um){this.tooltip.Zj(this.Fj.element);for(var a=0;a=b)return m.return();if(!a.Y.K("html5_onesie_host_racing_during_prewarming"))return(c=a.j.get(0))&&wKa(a,c),m.Ma(0);d=g.SE(a.Y.experiments,"html5_onesie_prewarm_cooldown_ms");e=a.j.values();f=g.t(e);h=f.next()}if(4!=m.j){if(h.done)return m.Ma(0);l=h.value;if(a.isDisposed())return m.return();wKa(a,l);return d?g.x(m,tKa(d),4):m.Ma(4)}h=f.next(); return m.Ma(3)})}; mS.prototype.start=function(){this.startTimestamp=(0,g.T)()}; mS.prototype.end=function(){this.endTimestamp=(0,g.T)()};var oS=[],lSa=!1;g.jW=dg(function(){var a="";try{var b=g.ih("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.v(g.pS,UJ);g.k=g.pS.prototype;g.k.isView=function(){return!0}; g.k.rK=function(){var a=this.mediaElement.getCurrentTime();if(ae?this.Nf("next_player_future"):(this.D=d,this.B=Gxa(a,c,d,!0),this.C=Gxa(a,e,h,!1),a=this.u.getVideoData().clientPlaybackNonce,this.j.va("gaplessPrep",{cpn:a}),tS(this.j,this.B),this.j.setMediaElement(FKa(b,c,d,!this.j.getVideoData().isAd())), sS(this,2),LKa(this))))}else this.Nf("no-elem")}; g.k.Gu=function(a){var b=a===KKa(this).CS,c=b?this.B.j:this.B.u;b=b?this.C.j:this.C.u;if(c.isActive&&!b.isActive){var d=this.D;hE(a.Ag(),d-.01)&&(sS(this,4),c.isActive=!1,c.WA=c.WA||c.isActive,this.u.va("sbh",{}),b.isActive=!0,b.WA=b.WA||b.isActive);a=this.C.u;this.C.j.isActive&&a.isActive&&sS(this,5)}}; g.k.iR=function(){4<=this.status.status&&6>this.status.status&&this.Nf("player-reload-after-handoff")}; g.k.Nf=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&!this.isFinished()){var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.u){var d=this.u.getVideoData().clientPlaybackNonce;this.j.Cd(new yG("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.Hl,msg:a})));a=this.j;a.videoData.Xa=!1;c&&RV(a);a.Ka&&bOa(a.Ka)}this.zn.reject(void 0);this.dispose()}}; g.k.ra=function(){JKa(this);this.j.unsubscribe("newelementrequired",this.iR,this);if(this.B){var a=this.B.u;this.B.j.Xd.unsubscribe("updateend",this.Gu,this);a.Xd.unsubscribe("updateend",this.Gu,this)}g.K.prototype.ra.call(this)}; g.k.Tc=function(a){g.tJ(a,128)&&this.Nf("player-error-event")};g.v(vS,g.K);vS.prototype.clearQueue=function(){this.C&&this.C.reject("Queue cleared");wS(this)}; vS.prototype.lw=function(){return!this.j}; vS.prototype.ra=function(){wS(this);g.K.prototype.ra.call(this)};g.v(BS,g.cz);g.k=BS.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:PKa()?3:b?2:c?1:d?5:e?7:f?8:0}; g.k.Dk=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Ef())}; g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Ef())}; g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Ef())}; g.k.Tw=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Ef())}; g.k.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.Ef())}; g.k.Dg=function(){return this.j}; g.k.isFullscreen=function(){return 0!==this.fullscreen}; g.k.Ov=function(){return this.fullscreen}; g.k.Cf=function(){return this.B}; g.k.isInline=function(){return this.inline}; g.k.isBackground=function(){return PKa()}; g.k.jw=function(){return this.pictureInPicture}; g.k.ew=function(){return this.u}; g.k.Ef=function(){this.ma("visibilitychange");var a=this.getVisibilityState(this.Dg(),this.isFullscreen(),this.Cf(),this.isInline(),this.jw(),this.ew());a!==this.D&&this.ma("visibilitystatechange");this.D=a}; g.k.ra=function(){SKa(this.C);g.cz.prototype.ra.call(this)};g.v(g.GS,g.K);g.k=g.GS.prototype; g.k.onCueRangeEnter=function(a){this.Ia.push(a);var b=a.getId(),c=""===b;this.rb.add(a.u);c||this.xa.va("sdai",{enterAdCueRange:1});if(this.bb&&!this.j){this.bb=!1;if(!c){var d=this.u.get(b);d&&(this.Y.K("web_player_ss_record_join_mid_ad_break_killswitch")||(c=this.xa.getCurrentTime(),NS(this,{Pd:a,isAd:!0,uo:!0,pg:c,adCpn:b},{isAd:!1,uo:!1,pg:c})),this.api.ma("serverstitchedvideochange",d.Gc,d.kp),this.xa.va("sdai",KS(this,"midab",d)),this.bk=1)}this.I=!1}else if(this.j){if(this.j.uo)this.xa.va("sdai",{a_pair_of_same_transition_occurs_enter:1, acpn:this.j.adCpn,transitionTime:this.j.pg,cpn:b,currentTime:this.xa.getCurrentTime()}),this.Y.K("web_player_same_transition_fallback_killswitch")||(d=this.xa.getCurrentTime(),a={Pd:a,isAd:!c,uo:!0,pg:d,adCpn:b},b={Pd:this.j.Pd,isAd:this.j.isAd,uo:!1,pg:d,adCpn:this.j.adCpn},this.j.Pd&&this.rb.delete(this.j.Pd.u),NS(this,a,b));else{if(this.j.Pd===a){this.xa.va("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.pg,cpn:b,currentTime:this.xa.getCurrentTime(),cueRangeStartTime:a.start, cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.xa.va("sdai",{dchtsc:b});this.j=void 0;return}a={Pd:a,isAd:!c,uo:!0,pg:this.xa.getCurrentTime(),adCpn:b};NS(this,a,this.j)}this.j=void 0;this.I=!1}else this.j={Pd:a,isAd:!c,uo:!0,pg:this.xa.getCurrentTime(),adCpn:b}}; g.k.onCueRangeExit=function(a){if(this.Y.K("web_player_same_transition_fallback_killswitch")||this.rb.has(a.u)){this.rb.delete(a.u);this.Ia=this.Ia.filter(function(d){return d!==a}); this.bb&&(this.I=this.bb=!1,this.xa.va("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.uo){if(this.j.Pd===a){this.xa.va("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.pg,cpn:b,currentTime:this.xa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.xa.va("sdai",{dchtsc:b});this.j=void 0;return}c={Pd:a,isAd:!c,uo:!1,pg:this.xa.getCurrentTime(),adCpn:b};NS(this,this.j,c)}else this.xa.va("sdai", {a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.pg,upcomingCpn:b,contentCpn:this.xa.getVideoData().clientPlaybackNonce,currentTime:this.xa.getCurrentTime()});this.j=void 0;this.I=!1}else this.j={Pd:a,isAd:!c,uo:!1,pg:this.xa.getCurrentTime(),adCpn:b};this.Y.K("web_player_halftime_dai")&&(b=this.u.get(b),this.isLiveNow&&b&&this.xa.getCurrentTime()=a.EA&&m.set("skipsq",""+a.EA);(h=this.xa.getVideoData().clientPlaybackNonce)&&m.set("cpn",h);q=[];a.Vj&&(q=hLa(this,a.Vj),0=b+f)b=a.end;else{if(h=!1,a?bthis.B;)(c=this.data.shift())&&iT(this,c,!0);gT(this)}; hT.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a}); c&&(iT(this,c,b),g.ac(this.data,function(d){return d.key===a}),gT(this))}; hT.prototype.ra=function(){var a=this;g.K.prototype.ra.call(this);this.data.forEach(function(b){iT(a,b,!0)}); this.data=[]};g.kT.prototype.info=function(){}; var BLa=new Map;g.v(lT,g.K);lT.prototype.zC=function(a){if(a)return this.u.get(a)}; lT.prototype.ra=function(){jT(this.j);jT(this.u);g.K.prototype.ra.call(this)};g.v(mT,g.Co);mT.prototype.ma=function(a){var b=g.za.apply(1,arguments);if(this.D.has(a))return this.D.get(a).push(b),!0;var c=!1;try{for(b=[b],this.D.set(a,b);b.length;)c=g.Co.prototype.ma.call.apply(g.Co.prototype.ma,[this,a].concat(g.u(b.shift())))}finally{this.D.delete(a)}return c};nT.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a}; nT.prototype.forEach=function(a){for(var b=this.j+1;bc?new g.Lg(b.width*g.SE(this.app.V().experiments,"player_underlay_video_width_fraction"),b.height):b}; g.k.getVideoAspectRatio=function(){return isNaN(this.cJ)?ILa(this):this.cJ}; g.k.getVideoContentRect=function(a){var b=this.Ki();a=JLa(this,b,this.getVideoAspectRatio(),a);return new g.yl((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)}; g.k.Vw=function(a){this.bK=a;this.resize()}; g.k.cD=function(){return this.WD}; g.k.onMutedAutoplayChange=function(){vT(this)}; g.k.setInternalSize=function(a){g.Mg(this.Ky,a)||(this.Ky=a,this.resize())}; g.k.ra=function(){this.XG&&g.Ux(this.XG);this.gi();g.W.prototype.ra.call(this)};g.k=LLa.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.Bz();c&&a.visualElement&&g.Lz(c,a.visualElement,b)}; g.k.vb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=Zra(c);a.visualElement=c;var f=g.Bz(),h=g.Az();f&&h&&g.Fz(void 0,f,h,[c]);g.af(b,function(){MLa(e,a)}); d&&this.u.add(a)}; g.k.Sg=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.af(b,function(){MLa(d,a)}); c&&this.u.add(a)}; g.k.yO=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,vDa(oK(),a),NLa(this))}; g.k.oi=function(a,b){this.elements.has(a);b&&(a.visualElement=g.uz(b))}; g.k.Om=function(a){return this.elements.has(a)};g.v(AT,g.W); AT.prototype.setValue=function(a,b){for(var c=0;c+2this.policy.Z&&(null==(c=this.u)?0:TD(c.info))&&(null==(d=this.nextVideo)||!TD(d.info))&&(this.S=!0)}};$T.prototype.dispose=function(){this.oa=!0}; $T.prototype.isDisposed=function(){return this.oa}; g.v(fU,Error);jU.prototype.skip=function(a){this.offset+=a}; jU.prototype.getOffset=function(){return this.offset};nU.prototype.jj=function(){this.u=[];qU(this);mU(this)}; nU.prototype.Yi=function(a){this.Qa=this.u.shift().info;a.info.equals(this.Qa)}; nU.prototype.Vm=function(){return!!this.I.info.audio}; nU.prototype.getDuration=function(){return this.I.index.getMaxKnownEndTime()};g.k=wU.prototype;g.k.MH=function(){return 0}; g.k.AC=function(){return null}; g.k.eP=function(){return null}; g.k.isComplete=function(){return 3<=this.state}; g.k.isFailed=function(){return 5===this.state}; g.k.eg=function(){return this.lastError}; g.k.onStateChange=function(){}; g.k.Uc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)}; g.k.tq=function(a){a&&this.state=this.xhr.HEADERS_RECEIVED}; g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}}; g.k.Oy=function(){return+this.getResponseHeader("content-length")}; g.k.jl=function(){return this.B}; g.k.lA=function(){return 200<=this.status&&300>this.status&&!!this.B}; g.k.yh=function(){return 0a-this.C&&SU(this)||mNa(this,a,b);this.callbacks.jt(a,b)}; g.k.Eq=function(){this.callbacks.Eq()}; g.k.deactivate=function(){this.isActive&&(this.isActive=!1)}; g.k.Ms=function(){return this.u>this.MD&&TU(this,this.u)}; g.k.now=function(){return(0,g.T)()};g.k=XU.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.Z);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.oa,this.onError).then(void 0,Kv)}; g.k.onDone=function(){this.isDisposed()||this.callbacks.Eq()}; g.k.getResponseHeader=function(a){return this.D?this.D.get(a):null}; g.k.Gs=function(){return!!this.D}; g.k.jl=function(){return this.u}; g.k.Oy=function(){return+this.getResponseHeader("content-length")}; g.k.lA=function(){return 200<=this.status&&300>this.status&&!!this.u}; g.k.yh=function(){return!!this.j.totalLength}; g.k.Yi=function(){this.yh();var a=this.j;this.j=new UB;return a}; g.k.Ig=function(){this.yh();return this.j}; g.k.isDisposed=function(){return this.I}; g.k.abort=function(){this.un&&this.un.cancel().catch(function(){}); this.B&&this.B.abort();this.I=!0}; g.k.bx=function(){return!0}; g.k.eE=function(){return this.J}; g.k.rf=function(){return this.errorMessage};YU.prototype.feed=function(a){for(VB(this.j,a);;){var b=0;b=g.t(rNa(this.j,b));a=b.next().value;b=b.next().value;b=g.t(rNa(this.j,b));var c=b.next().value;b=b.next().value;if(0>a||0>c||!(b+c<=this.j.totalLength))break;b=this.j.split(b).Wo.split(c);c=b.Wo;this.callbacks.BR(a,b.QC);this.j=c}}; YU.prototype.dispose=function(){this.j=new UB};g.k=ZU.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.j=!0;this.callbacks.Eq()}}; g.k.Aw=function(){2===this.xhr.readyState&&this.callbacks.Cw()}; g.k.Wd=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.u=a.loaded),this.callbacks.jt((0,g.T)(),a.loaded))}; g.k.Gs=function(){return 2<=this.xhr.readyState}; g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return hu(Error("Could not read XHR header "+a)),""}}; g.k.Oy=function(){return+this.getResponseHeader("content-length")}; g.k.jl=function(){return this.u}; g.k.lA=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.u}; g.k.yh=function(){return this.j&&!!this.response&&!!this.response.byteLength}; g.k.Yi=function(){this.yh();var a=this.response;this.response=void 0;return new UB([new Uint8Array(a)])}; g.k.Ig=function(){this.yh();return new UB([new Uint8Array(this.response)])}; g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()}; g.k.bx=function(){return!1}; g.k.eE=function(){return!1}; g.k.rf=function(){return""};g.v(cV,wU);g.k=cV.prototype;g.k.ue=function(){return this.Pf.ue()}; g.k.Lv=function(){var a=PU(this.timing);a.shost=OB(this.Pf.ij);this.Hg&&(a.rc=this.Hg.toString());a.itag=this.info.j[0].j.info.itag;a.ml=""+ +this.info.j[0].j.Xf();a.sq=""+this.info.j[0].Na;this.Pf&&(a.ifi=""+ +QB(this.info.u.C));410!==this.Hg&&500!==this.Hg&&503!==this.Hg||(a.fmt_unav="true");var b,c=null==(b=this.xhr)?void 0:b.rf();c&&(a.msg=c);this.GA&&(a.smb="1");this.Le&&(b=this.Le.Fq(),b.length&&nxa(b[0],a));this.info.Cm()&&(a.sdai="1");return a}; g.k.bP=function(){return qNa(this.timing)}; g.k.rf=function(){return this.xhr.rf()||""}; g.k.Ms=function(){return this.isComplete()||this.timing.Ms()}; g.k.jt=function(){!this.isDisposed()&&this.xhr&&(this.Hg=this.xhr.status,this.Hw()?this.tq(2):!this.HP&&this.Ms()&&(this.tq(),this.HP=!0))}; g.k.Cw=function(){if(!this.isDisposed()&&this.xhr){if(!this.xv&&this.xhr.Gs()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.xv=((0,g.T)()-a)/1E3}this.xhr.Gs()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.au&&!nya()&&g.Pz("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.Pm=a||this.Pm;this.qo=b||this.qo}}; g.k.Eq=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.oE.stop(),this.Hg=a.status,a=INa(this,a),5===a?bV(this):this.Uc(a))}; g.k.canRetry=function(){this.isDisposed();var a=$U(this),b=this.info.Cm()?this.policy.Zt:this.policy.rg;return a.timedOut=.8*this.Mw?(this.Oo++,b=this.Oo>=this.policy.Vl):this.Oo=0):(b=this.timing,b.sj&&VU(b,b.now()),a-=b.S,this.policy.Zm&&01E3*b);this.Oo&&this.callback&&this.callback(this,this.state);b?JNa(this,!1):this.oE.start()}}; g.k.dispose=function(){wU.prototype.dispose.call(this);this.oE.dispose();this.policy.zf||dV(this)}; g.k.Yw=function(){if(!this.Fq().length)return[];this.PC=!0;return this.Le.Yw()}; g.k.Hw=function(){if(1>this.state)return!1;if(this.Le&&this.Le.xf.length)return!0;var a;return(null==(a=this.xhr)?0:a.yh())?!0:!1}; g.k.Fq=function(){this.oo(!1);return this.Le?this.Le.Fq():[]}; g.k.oo=function(a){if(a||this.xhr.Gs()&&this.xhr.yh()&&!HNa(this)&&!this.vt){if(!this.Le){var b;this.xhr.bx()?b=this.info.D:b=this.xhr.jl();this.Le=new xU(this.policy,this.info.j,b)}for(;this.xhr.yh();)this.ix?this.ix.feed(this.xhr.Yi()):yU(this.Le,this.xhr.Yi(),a&&!this.xhr.yh())}}; g.k.BR=function(a,b){switch(a){case 21:a=b.split(1).Wo;yU(this.Le,a,!1);break;case 22:this.kT=!0;break;case 43:if(a=bH(new XG(b),1))this.info.hk(this.Pf,a),this.lT=!0}}; g.k.jl=function(){return this.xhr.jl()}; g.k.MH=function(){return this.xv}; g.k.ws=function(){return this.dD()?2:1}; g.k.dD=function(){if(!this.policy.D.aj||!isNaN(this.info.Tf)&&0this.info.j[0].Na?!1:!0}; g.k.XH=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.k.AC=function(){this.xhr&&(this.Pm=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Pm}; g.k.eP=function(){this.xhr&&(this.qo=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.qo};g.v(eV,g.K); eV.prototype.Wv=function(a){var b=a.info.j[0].j,c=a.eg();if(PB(b.u.j)){var d=g.Ac(a.rf());this.Ka.va("dldbrerr",{em:d||"none"})}d=a.info.j[0].Na;var e=$La(this.B,a.info.j[0].C,d);"net.badstatus"===c&&(this.J+=1);if(a.canRetry()){if(!(a.info.u.u>=this.policy.Zt&&this.u&&a.info.Cm()&&"net.badstatus"===a.eg()&&this.u.Wv(e,d))){d=(b.info.video&&1b&&d.u.pop();a.B.length?a.u=g.Ob(g.Ob(a.B).info.j):a.C.u.length?a.u=oU(a.C).info:a.u=CU(a);a.u&&bf||f!==h)&&b.va("sbu_mismatch",{b:fE(e),c:b.currentTime,s:oD(d)})},0))}this.Uj()}; g.k.R0=function(a){if(this.mediaSource){var b=CU(a===this.mediaSource.j?this.audioTrack:this.videoTrack);if(a=a.VH())for(var c=0;c=c||cthis.B&&(this.B=c,g.Df(this.j)||(this.j={},this.C.stop(),this.u.stop())),this.j[b]=a,g.Zn(this.u))}}; BV.prototype.D=function(){for(var a=g.t(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ma;for(var d=this.B,e=this.j[c].match(ji),f=[],h=g.t(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.Sg(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e=a.size||(a.forEach(function(c,d){var e=OE(b.u)?d:c;d=new Uint8Array(OE(b.u)?c:d);OE(b.u)&&JOa(d);c=g.yc(d,4);JOa(d);d=g.yc(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),HOa(this,","),CV(this,{onkeystatuschange:1}),this.status="kc",this.ma("keystatuseschange",this))}; g.k.error=function(a,b,c,d){this.isDisposed()||(this.ma("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.I)/1E3,this.I=NaN,this.ma("ctmp","provf",{et:a.toFixed(3)})));zG(b)&&this.dispose()}; g.k.shouldRetry=function(a,b){return this.Ba&&this.J?!1:!a&&this.requestNumber===b.requestNumber}; g.k.ra=function(){this.j={};g.cz.prototype.ra.call(this)}; g.k.Qb=function(){var a={ctype:this.S.contentType||"",length:this.S.initData.length,requestedKeyIds:this.Aa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.j);return a}; g.k.Bg=function(){var a=this.D.join();if(EV(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex}; g.k.ue=function(){return this.url};g.v(HV,g.K);g.k=HV.prototype;g.k.sW=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}}; g.k.Cq=function(){this.J&&this.J(this.j.keyStatuses)}; g.k.qR=function(a){this.D&&this.D(a.message,"license-request")}; g.k.pR=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}}; g.k.oR=function(){this.I&&this.I()}; g.k.update=function(a){var b=this;if(this.j)return this.j.update(a).then(null,gu(function(c){MOa(b,"t.update",c)})); this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.S.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.S.keySystem,a,this.initData,this.sessionId);return Hu()}; g.k.ra=function(){this.j&&this.j.close();this.element=null;g.K.prototype.ra.call(this)};g.v(IV,g.K);g.k=IV.prototype;g.k.attach=function(){var a=this;if(this.j.keySystemAccess)return this.j.keySystemAccess.createMediaKeys().then(function(b){a.isDisposed()||(a.u=b,a.element.setMediaKeys(b))}); NE(this.j)?this.B=new (ME())(this.j.keySystem):PE(this.j)?(this.B=new (ME())(this.j.keySystem),this.element.webkitSetMediaKeys(this.B)):(az(this.D,this.element,["keymessage","webkitkeymessage"],this.vW),az(this.D,this.element,["keyerror","webkitkeyerror"],this.uW),az(this.D,this.element,["keyadded","webkitkeyadded"],this.tW));return null}; g.k.setServerCertificate=function(){return this.u.setServerCertificate?"widevine"===this.j.flavor&&this.j.Nj?this.u.setServerCertificate(this.j.Nj):this.j.C&&"fairplay"===this.j.flavor&&this.j.Ia?this.u.setServerCertificate(this.j.Ia):null:null}; g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.u.createSession();QE(this.j)&&(c=NOa(c,this.j.Ia));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new HV(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},gu(function(f){MOa(e,"t.generateRequest",f)})); return e}if(NE(this.j))return POa(this,c);if(PE(this.j))return OOa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.j.keySystem,c):this.element.webkitGenerateKeyRequest(this.j.keySystem,c);return this.C=new HV(this.element,this.j,c,null,null)}; g.k.vW=function(a){var b=JV(this,a);b&&b.qR(a)}; g.k.uW=function(a){var b=JV(this,a);b&&b.pR(a)}; g.k.tW=function(a){var b=JV(this,a);b&&b.oR(a)}; g.k.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a}; g.k.ra=function(){this.B=this.u=null;var a;null==(a=this.C)||a.dispose();a=g.t(Object.values(this.I));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.I={};g.K.prototype.ra.call(this);delete this.element};g.v(KV,g.K); KV.prototype.init=function(){var a=this,b,c;return g.A(function(d){if(1==d.j)return g.Bl(a.j,{position:"absolute",width:"1px",height:"1px",display:"block"}),a.j.src=a.B.B,document.body.appendChild(a.j),a.C.T(a.j,"encrypted",a.I),b=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.x(d,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",b),2);c=d.u;a.B.keySystemAccess=c;a.u=new IV(a.j, a.B);g.N(a,a.u);a.u.attach();g.na(d)})}; KV.prototype.I=function(a){if(!this.isDisposed()){var b=new Uint8Array(a.initData);a=new gU(b,a.initDataType);var c=nOa(b).replace("skd://","https://"),d={},e=this.u.createSession(a,function(){}); e&&(g.N(this,e),this.D.push(e),yOa(e,function(f){KOa(f,e.j,c,d)},function(){},function(){},function(){}))}}; KV.prototype.ra=function(){this.D=[];this.j&&this.j.parentNode&&this.j.parentNode.removeChild(this.j);g.K.prototype.ra.call(this)};g.v(LV,AV); LV.prototype.I=function(a){var b;if(!(b=!this.C)){a:{if((b=a.cryptoPeriodIndex)&&0=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c=!c}c?c=0:(c=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.ma("log_qoe",{wvagt:"delay."+ c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length});this.C&&0>=c?QOa(this,a):(this.j.push({time:b+c,info:a}),g.Zn(this.u,c))}}; LV.prototype.ra=function(){this.j=[];AV.prototype.ra.call(this)};MV.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null}; MV.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))}; MV.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))}; MV.prototype.findIndex=function(a){return g.Sb(this.keys,function(b){return g.pc(a,b)})};g.v(OV,g.cz);g.k=OV.prototype;g.k.wW=function(a){this.Ai({onecpt:1});a.initData&&VOa(this,new Uint8Array(a.initData),a.initDataType)}; g.k.Z1=function(a){this.Ai({onndky:1});VOa(this,a.initData,a.contentType)}; g.k.zw=function(a){this.Ai({onneedkeyinfo:1});this.Y.K("html5_eme_loader_sync")&&(this.J.get(a.initData)||this.J.set(a.initData,a));UOa(this,a)}; g.k.PN=function(a){this.B.push(a);PV(this)}; g.k.createSession=function(a){var b=WOa(this)?AMa(a):g.yc(a.initData);this.u.get(b);this.ya=!0;a=new DV(this.videoData,this.Y,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.RQ,this);a.subscribe("keystatuseschange",this.Cq,this);a.subscribe("licenseerror",this.CD,this);a.subscribe("newlicense",this.kR,this);a.subscribe("newsession",this.lR,this);a.subscribe("sessionready",this.xR,this);a.subscribe("fairplay_next_need_key_info",this.cR,this);AOa(a,this.C)}; g.k.kR=function(a){this.isDisposed()||(this.Ai({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ma("heartbeatparams",a)))}; g.k.lR=function(){this.isDisposed()||(this.Ai({newlcssn:1}),this.B.shift(),this.ya=!1,PV(this))}; g.k.xR=function(){if(NE(this.j)&&(this.Ai({onsnrdy:1}),this.Ia--,0===this.Ia)){var a=this.ea;a.element.msSetMediaKeys(a.B)}}; g.k.Cq=function(a){if(!this.isDisposed()){!this.Ba&&this.videoData.K("html5_log_drm_metrics_on_key_statuses")&&(XOa(this),this.Ba=!0);this.Ai({onksch:1});if(!EV(a)&&g.ww&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(EV(a))for(var d=g.t(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,"usable"===a.j[e].status&&b.push(a.j[e].type),"unknown"!==a.j[e].status&&(c=!1);if(!EV(a)||c)b=a.D;b=g.Vb(b,"UHD2")||g.Vb(b,"UHD2HDR")? "highres":g.Vb(b,"UHD1")||g.Vb(b,"UHD1HDR")?"hd2160":g.Vb(b,"HD")||g.Vb(b,"HDHDR")?"hd1080":g.Vb(b,"HD720")||g.Vb(b,"HD720HDR")?"hd720":"large"}a:{c=g.wB("auto",b,!1,"l");if(this.videoData.Gk){if(this.S.equals(c))break a}else if(Kva(this.S,b))break a;this.S=c;this.ma("qualitychange");this.Ai({updtlq:b})}this.ma("keystatuseschange",a)}}; g.k.RQ=function(a,b){this.isDisposed()||this.ma("ctmp",a,b)}; g.k.cR=function(a,b){this.isDisposed()||this.ma("fairplay_next_need_key_info",a,b)}; g.k.CD=function(a,b,c,d){this.isDisposed()||(this.videoData.K("html5_log_drm_metrics_on_error")&&XOa(this),this.ma("licenseerror",a,b,c,d))}; g.k.zs=function(){return this.S}; g.k.ra=function(){this.j.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.t(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.RQ,this),b.unsubscribe("keystatuseschange",this.Cq,this),b.unsubscribe("licenseerror",this.CD,this),b.unsubscribe("newlicense",this.kR,this),b.unsubscribe("newsession",this.lR,this),b.unsubscribe("sessionready",this.xR,this),b.unsubscribe("fairplay_next_need_key_info",this.cR,this),b.dispose(); this.u.clear();NV(this.I);NV(this.J);this.heartbeatParams=null;g.cz.prototype.ra.call(this)}; g.k.Qb=function(){for(var a={systemInfo:this.j.Qb(),sessions:[]},b=g.t(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Qb());return a}; g.k.Bg=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.Bg()+(this.D?"/KR":"")}; g.k.Ai=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(xG(a),(wG(this.Y)||b)&&this.ma("ctmp","drmlog",a))};g.v(SV,g.K);SV.prototype.fD=function(){return this.B}; SV.prototype.handleError=function(a){var b=this;bPa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!UV(this,a.errorCode,a.details))&&!dPa(this,a))if(zG(a.severity)){var c,d=null==(c=this.xa.Ka)?void 0:c.Yd.B;if("net.badstatus"===a.errorCode&&(1===a.severity||a.details.fmt_unav)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.j.D&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.xa.jg(a.errorCode, a.severity,e,xG(a.details),f)}else this.xa.ma("nonfatalerror",a),c=/^pp/.test(this.videoData.clientPlaybackNonce),this.Cd(a.errorCode,a.details),c&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.T)(),gS(a,"manifest",function(h){b.I=!0;b.va("pathprobe",h)},function(h){b.Cd(h.errorCode,h.details)}))}; SV.prototype.va=function(a,b){this.xa.pc.va(a,b)}; SV.prototype.Cd=function(a,b){b=xG(b);this.xa.pc.Cd(a,b)};VV.prototype.setPlaybackRate=function(a){this.playbackRate=a}; VV.prototype.K=function(a){return this.Y.K(a)};g.v(YV,g.K);YV.prototype.Tc=function(a){uPa(this);this.playerState=a.state;0<=this.B&&g.tJ(a,16)&&this.seekCount++;a.state.isError()&&this.send()}; YV.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(s1a)?this.networkErrorCount++:this.nonNetworkErrorCount++)}; YV.prototype.send=function(){if(!(this.C||0>this.u)){uPa(this);var a=g.yS(this.j)-this.u,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.V(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.V(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.V(this.playerState,16)||g.V(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.V(this.playerState,1)&&g.V(this.playerState, 4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.V(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.V(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.V(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=$Ra[eI(this.j.videoData)];a:switch(this.j.Y.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=0>this.B?a:this.B-this.u;a=this.j.Y.Ce+ 36E5<(0,g.T)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.j.videoData.isAd(),liveMode:c,hasDrm:!!g.cI(this.j.videoData),isGapless:this.j.videoData.Xa,isServerStitchedDai:this.j.videoData.enableServerStitchedDai};a||g.Lv("html5PlayerHealthEvent",b);this.j.K("html5_health_to_qoe")&& (b.muted=a,this.J(b));this.C=!0;this.dispose()}}; YV.prototype.ra=function(){this.C||this.send();g.K.prototype.ra.call(this)}; var s1a=/\bnet\b/;var wPa=window;var vPa=/[?&]cpn=/;g.v(g.dW,g.K);g.k=g.dW.prototype;g.k.JZ=function(){var a=g.yS(this.j);eW(this,a)}; g.k.Ty=function(){return this.Ba}; g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.yS(this.j),-1<["PL","B","S"].indexOf(this.Bd)&&(!g.Df(this.u)||a>=this.C+30)&&(g.cW(this,a,"vps",[this.Bd]),this.C=a),!g.Df(this.u))){7E3===this.sequenceNumber&&g.rz(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){gW(this,a);var b=a,c=this.j.xa.ez(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.rb,h=e&&!this.Ub;d>c.totalVideoFrames||5E3=this.playTimeSecs&&(this.j.xa.Uz(),this.u.qoealert=["1"],this.Ta=!0)),"B"!==a||"PL"!==this.Bd&&"PB"!==this.Bd||(this.ya=!0),this.C=c),"PL"===this.Bd&&("B"===a||"S"===a)||wG(this.j.Y)? gW(this,c):(this.Xa||"PL"!==a||(this.Xa=!0,fW(this,c,this.j.xa.bz())),eW(this,c)),"PL"===a&&g.Zn(this.zc),g.cW(this,c,"vps",[a]),this.Bd=a,this.C=this.bb=c,this.D=!0);a=b.getData();g.V(b,128)&&a&&BPa(this,c,a.errorCode,a.kC,a.bS);(g.V(b,2)||g.V(b,128))&&this.reportStats(c);b.Sc()&&!this.I&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.I=!0);hW(this)}; g.k.aA=function(a){var b=g.yS(this.j);g.cW(this,b,"vfs",[a.j.id,a.u,this.jc,a.reason]);this.jc=a.j.id;var c=this.j.xa.getPlayerSize();if(0b-this.lastUpdateTime+2||IPa(this,a,b))){var d=this.j.mj();c=d.volume;var e=c!==this.ea;d=d.muted;d!==this.Z?(this.Z=d,c=!0):(!e||0<=this.D||(this.ea=c,this.D=b),c=b-this.D,0<=this.D&&2=this.j.videoData.Lb;a&&(this.B&&this.j.videoData.Lb&&(a=sW(this,"delayplay"),a.me=!0,a.send(),this.ea=!0),OPa(this))}; g.k.Tc=function(a){if(!this.isDisposed())if(this.j.Y.K("html5_flush_vss_with_rti_and_rtn"))if(g.V(a.state,2)||g.V(a.state,512))this.currentPlayerState="paused",(g.tJ(a,2)||g.tJ(a,512))&&this.B&&(xW(this),yW(this).send());else if(g.V(a.state,8)){this.currentPlayerState="playing";var b=wW(this);!isNaN(b)&&(0>sJ(a,64)||0>sJ(a,512))&&(a=yW(this),a.D=b,a.send())}else this.currentPlayerState="paused";else g.V(a.state,2)?(this.currentPlayerState="paused",g.tJ(a,2)&&this.B&&yW(this).send()):g.V(a.state,8)? (this.currentPlayerState="playing",wW(this)):this.currentPlayerState="paused"}; g.k.ra=function(){g.K.prototype.ra.call(this);xW(this);GPa(this.u)}; g.k.Qb=function(){return pW(sW(this,"playback"))}; g.k.mx=function(){this.j.videoData.S.eventLabel=pI(this.j.videoData);this.j.videoData.S.playerStyle=this.j.Y.playerStyle;this.j.videoData.Rg&&(this.j.videoData.S.feature="pyv");this.j.videoData.S.vid=this.j.videoData.videoId;var a=this.j.videoData.S;var b=this.j.videoData;b=b.isAd()||!!b.Rg;a.isAd=b}; g.k.Ii=function(a){var b=sW(this,"engage");b.S=a;return JPa(b,TPa(this.j))};SPa.prototype.isEmpty=function(){return this.endTime===this.startTime};AW.prototype.K=function(a){return this.Y.K(a)}; var UPa={other:1,none:2,wifi:3,cellular:7};g.v(g.BW,g.K);g.k=g.BW.prototype;g.k.Tc=function(a){if(g.tJ(a,1024)||g.tJ(a,512)||g.tJ(a,4)){var b=this.C;0<=b.B||(b.u=-1,b.delay.stop());this.qoe&&(b=this.qoe,b.I||(b.B=-1))}if(this.u.videoData.enableServerStitchedDai&&this.qh){var c;null==(c=this.B.get(this.qh))||c.Tc(a)}else this.j&&this.j.Tc(a);this.qoe&&this.qoe.Tc(a);this.C.Tc(a)}; g.k.Wd=function(){if(this.u.videoData.enableServerStitchedDai&&this.qh){var a;null==(a=this.B.get(this.qh))||a.Wd()}else this.j&&this.j.Wd()}; g.k.Cd=function(a,b){this.qoe&&CPa(this.qoe,a,b);this.C.onError(a)}; g.k.aA=function(a){this.qoe&&this.qoe.aA(a)}; g.k.Sz=function(a){this.qoe&&this.qoe.Sz(a)}; g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)}; g.k.Bq=aa(36);g.k.va=function(a,b,c){this.qoe&&this.qoe.va(a,b,c)}; g.k.nA=function(a,b,c){this.qoe&&this.qoe.nA(a,b,c)}; g.k.mA=function(a){this.qoe&&this.qoe.mA(a)}; g.k.Ft=function(a,b,c){this.qoe&&this.qoe.Ft(a,b,c)}; g.k.Aq=aa(39);g.k.Bl=aa(14);g.k.Ty=function(){if(this.qoe)return this.qoe.Ty()}; g.k.Qb=function(){if(this.u.videoData.enableServerStitchedDai&&this.qh){var a;null==(a=this.B.get(this.qh))||a.Qb()}else if(this.j)return this.j.Qb();return{}}; g.k.Ii=function(a){return this.j?this.j.Ii(a):function(){}}; g.k.mx=function(){this.j&&this.j.mx()};g.v(CW,g.K);g.k=CW.prototype;g.k.oe=function(a,b){this.Pl();b&&2E3<=this.j.array.length&&this.Hy("captions",1E4);b=this.j;if(1b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else{a=g.t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.array.length||0a&&this.C.start()))}; g.k.uH=function(a){var b=[];if(!a.length)return b;for(var c=0;ca&&(a=(a-this.u)/this.oa(),this.C.start(a)))}}; g.k.SP=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.V(a,32)&&this.ea.start();for(var b=g.V(this.D(),2)?0x8000000000000:1E3*this.S(),c=g.V(a,2),d=[],e=[],f=g.t(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.yH(e));f=e=null;c?(a=dQa(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=eQa(this.j)):a=this.u<=b&&fK(a)?cQa(this.j,this.u,b):dQa(this.j,b); d=d.concat(this.uH(a));e&&(d=d.concat(this.yH(e)));f&&(d=d.concat(this.uH(f)));this.u=b;hQa(this,d)}}; g.k.ra=function(){this.B=[];this.j.array=[];g.K.prototype.ra.call(this)}; g.rS.YC(CW,{oe:"crmacr",uH:"crmncr",yH:"crmxcr",SP:"crmis",hh:"crmrcr"});g.v(GW,g.cz);GW.prototype.zo=function(){return this.J}; GW.prototype.il=function(){return Math.max(this.S()-nQa(this,!0),this.videoData.getMinSeekableTime())};g.v(LW,g.K);LW.prototype.Tc=function(){g.Zn(this.B)}; LW.prototype.D=function(){var a=this,b=this.xa.Qd(),c=this.xa.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.V(c,8)&&g.V(c,16),h=this.xa.Up().isBackground()||c.isSuspended();MW(this,this.Ba,f&&!h,e,"qoe.slowseek",function(){},"timeout"); var l=isFinite(this.j)&&(0d+5;w=p&&m&&w;MW(this,this.J,w&&!h,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");MW(this,this.S,w&&!h,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var y=f.getCurrentTime();n=b.Cs();n=Bxa(n,y);n=!f.Eg()&&d===n;MW(this,this.Xa,p&&m&&n&&!h,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(y)},"seek_to_loader")}n={}; if(!this.Y.K("html5_watchdog_log_extrainfo_killswitch")){w=gE(q,Math.max(d-3.5,0));var z=0<=w&&d>q.end(w)-1.1,B=0<=w&&w+1B;n.close2edge=z;n.gapsize=B;n.buflen=q.length}MW(this,this.Z,p&&m&&!h,p&&!m,"qoe.longrebuffer",function(){},"timeout",n); q=c.isSuspended();q=g.Vb(this.xa.yk,"ad")&&!q;MW(this,this.I,q,!q,"qoe.start15s",function(){a.xa.wf("ad")},"ads_preroll_timeout"); q=this.xa.getVideoData();r=.5>d-this.C;n=q.isAd()&&p&&!m&&r;p=function(){var D=a.xa,G=D.Qg.Jc();(!G||!D.videoData.isAd()||G.getVideoData().Gc!==D.getVideoData().Gc)&&D.videoData.Fe||D.jg("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+D.videoData.videoId)}; MW(this,this.La,n,!n,"ad.rebuftimeout",p,"skip_slow_ad");m=q.isAd()&&m&&hE(b.Vg(),d+5)&&r;MW(this,this.Qa,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");MW(this,this.Ta,g.eK(c)&&g.V(c,64)&&!h,e,"qoe.start15s",function(){},"timeout"); MW(this,this.ea,!!f&&!f.mediaSource&&g.eK(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}}; LW.prototype.Cd=function(a,b,c){b=this.Qb(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.xa.Cd(new yG(a,b));this.u[a]=!0}; LW.prototype.Qb=function(a){a=Object.assign(this.xa.Qb(!0),a.Qb());this.j&&(a.stt=this.j.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a}; JW.prototype.reset=function(){this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1}; JW.prototype.Qb=function(){var a={},b=(0,g.T)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.triggerTimestamp&&(a.wtd=(b-this.triggerTimestamp).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.v(OW,g.K);g.k=OW.prototype;g.k.setMediaElement=function(a){g.bz(this.Qa);(this.mediaElement=a)?(CQa(this),NW(this)):RW(this)}; g.k.Tc=function(a){this.ea.Tc(a);this.K("html5_exponential_memory_for_sticky")&&(a.state.Sc()?g.Zn(this.oa):this.oa.stop());if(this.mediaElement)if(8===a.wq.state&&fK(a.state)&&g.gK(a.state)){a=this.mediaElement.getCurrentTime();var b=this.mediaElement.Vg();var c=this.K("manifestless_post_live_ufph")||this.K("manifestless_post_live")?gE(b,Math.max(a-3.5,0)):gE(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.Xa-c)||(this.xa.va("seekover",{b:fE(b, "_"),cmt:a}),this.Xa=c,this.seekTo(c,{Hs:!0,ze:"playbacktimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&!this.videoData.bb&&0=this.zd())||!g.hI(this.videoData))||this.xa.va("seeknotallowed",{st:r,mst:this.zd()});if(!l)return this.B&&(this.B=null,UW(this)),Gh(this.getCurrentTime());if(.005>Math.abs(a-this.j)&&this.S)return this.D;h&&(r=a,(2<= this.Y.Z||this.K("html5_log_seek_reasons"))&&this.xa.va("seekreason",{reason:h,tgt:r}));this.S&&RW(this);this.D||(this.D=new TJ);a&&!isFinite(a)&&QW(this,!1);if(h=!c)h=a,h=TW(this)&&!(this.mediaElement&&0e.videoData.endSeconds&&isFinite(f)&&FX(e);fb.start&&FX(this.xa);return this.D}; g.k.zd=function(a){if(!this.videoData.isLivePlayback)return this.videoData.zd();var b;if(!this.K("html5_linear_live_max_seekable_killswitch")&&yI(this.videoData)&&(null==(b=this.mediaElement)?0:b.Mn())&&this.videoData.j)return a=this.getCurrentTime(),ZBa(1E3*this.getIngestionTime(a))+a;if(NH(this.videoData)&&this.videoData.wg&&this.videoData.j)return this.videoData.j.zd()+this.timestampOffset;if(this.videoData.C&&this.videoData.C.j){if(!a&&this.u)return this.u.il();a=this.videoData.zd();this.policy.j&& this.mediaElement&&(a=Math.max(a,jDa(this.mediaElement)));return a+this.timestampOffset}return this.mediaElement?Qu()?ZBa(this.mediaElement.uB().getTime()):VJ(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.k.getMinSeekableTime=function(){var a=this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset;if(yI(this.videoData)&&this.videoData.j){var b,c=Number(null==(b=this.videoData.progressBarStartPosition)?void 0:b.utcTimeMillis)/1E3;b=this.getCurrentTime();b=this.getIngestionTime(b)-b;if(!isNaN(c)&&!isNaN(b))return Math.max(a,c-b)}return a}; g.k.ra=function(){SW(this,null);this.ea.dispose();g.K.prototype.ra.call(this)}; g.k.Qb=function(){var a={};this.Ka&&Object.assign(a,this.Ka.Qb());this.mediaElement&&Object.assign(a,this.mediaElement.Qb());return a}; g.k.El=function(a){var b=this;this.xa.va("sdai",{skipad:1,t:a.toFixed(3)});this.Aa=a;this.C=this.j=a+=1;UW(this).then(function(c){zQa(b,c)},function(){RW(b)})}; g.k.OJ=function(a){this.timestampOffset=a}; g.k.getStreamTimeOffset=function(){return NH(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0}; g.k.Ad=function(){return this.timestampOffset}; g.k.getIngestionTime=function(a){return this.videoData.j.getIngestionTime(a-this.timestampOffset)}; g.k.As=function(){if(!this.mediaElement)return 0;if(iI(this.videoData)){var a=jDa(this.mediaElement)+this.timestampOffset-this.getMinSeekableTime(),b=this.zd()-this.getMinSeekableTime();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.As()}; g.k.DD=function(a){this.I&&(this.I.j=a.audio.index)}; g.k.K=function(a){return this.Y&&this.Y.K(a)};VW.prototype.isFinished=function(){return this.finished}; VW.prototype.start=function(){this.started=!0}; VW.prototype.reset=function(){this.finished=this.started=!1};WW.prototype.encrypt=function(a){(0,g.T)();return(new uF(this.j.j)).encrypt(a,this.iv)}; WW.prototype.decrypt=function(a,b){(0,g.T)();return(new uF(this.j.j)).decrypt(a,b)};g.v(XW,g.K);g.k=XW.prototype;g.k.yh=function(a){var b;return!(null==(b=this.ke.get(a))||!b.xf.totalLength)}; g.k.Yi=function(a){a=this.ke.get(a);var b=a.xf;a.LB+=b.totalLength;a.xf=new UB;return b}; g.k.Wf=function(a){return this.ke.get(a).Wf}; g.k.Wg=function(a){return this.ke.get(a).Wg}; g.k.tq=function(){for(var a=g.t(this.ke.values()),b=a.next();!b.done;b=a.next())b=b.value,b.eK&&(b.Wd&&b.Wd(),b.eK=!1)}; g.k.Xz=function(a){(a=this.ke.get(a))&&!a.Wg&&(a.Wg=!0)}; g.k.ra=function(){g.K.prototype.ra.call(this);for(var a=g.t(this.ke.keys()),b=a.next();!b.done;b=a.next())YW(this,b.value);this.ke.clear()};$W.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.A(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.u=!0;b.pk.Vc("omd_s");c=new Uint8Array(16);kF()?d=new tF(a):e=new uF(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ma(3);break}f=b.j.shift();if(!d){h=e.decrypt(ZB(f.buffer),c);m.Ma(4);break}return g.x(m,d.decrypt(ZB(f.buffer),c),5);case 5:h=m.u;case 4:l=h;for(var n=0;n=e.aO||0>=e.vE||0>=e.durationMs||0>e.startTimeMs?ZW(a,f):c.tQ.push(e))),nX(b))):(this.j[f]={DP:!1,Vm:m,headers:[h]},b=this.Fd,b.Yf?(e=f.split(";")[0],b.Yf.has(e)|| (a=new XW(b),b.Yf.set(e,a),g.N(b,a)),null==(d=b.Yf.get(e))||HQa(d,f,m)):null==(e=b.ye)||HQa(e,f,m));break;case 21:gRa(this,b,!1);break;case 12:gRa(this,b,!0);break;case 22:this.Xz(b);break;case 37:b=cH(b,uNa);if(b.GG||b.FL)f=this.Fd,f.us=b,b.videoId&&f.UO.set(b.videoId,b);break;default:this.Fd.pj&&this.Fd.va("ombup","id."+a+";len."+c+";ignored.1")}}; g.k.Xz=function(a){var b=$B(a,0);this.Fd.pj&&this.Fd.va("ombup","id.22;len."+a.totalLength+";hid."+b);(a=this.B[b]||null)&&this.Fd.Xz(a);a&&(b=this.j[a],1===b.headers.length&&b.headers[0].uE||KQa(this.queue,a))}; g.k.KJ=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,r,w;return g.A(function(y){switch(y.j){case 1:c.Fd.KJ();d=ZB(a);if(!b){f=d;y.Ma(2);break}return g.x(y,pRa(c.Fd,d,c.iv),3);case 3:f=y.u;case 2:e=f;if(!c.Fd.enableCompression){y.Ma(4);break}return g.x(y,RQa(e),5);case 5:e=y.u,c.Fd.va("decompression",{ds:"DecompressionStream"in window});case 4:try{h=cH(e,ENa)}catch(z){return l=z instanceof Error?{name:z.name,message:z.message}:{},l.webcrypto=""+ +!!kF(),l.enc=""+ +c.C,m=new yG("onesie.response.parse", l),y.return(Promise.reject(m))}if(1!==h.onesieProxyStatus)return n={st:h.onesieProxyStatus,webcrypto:""+ +!!kF(),textencoder:""+ +!!g.C.TextEncoder},p=new yG("onesie.response.badproxystatus",n),y.return(Promise.reject(p));if(200!==h.httpStatus)return q={st:h.httpStatus},r=new yG("onesie.response.badstatus",q),y.return(Promise.reject(r));w=g.hC(h.body);return y.return(w)}})}; g.k.Vc=function(a){this.Fd.Vc(a)}; g.k.kh=function(a){return this.Fd.kh(a)};g.v(oX,g.K);g.k=oX.prototype;g.k.Vc=function(a){this.xa.Vc(a)}; g.k.kh=function(a){return this.xa.kh(a)}; g.k.BR=function(a,b){this.pk.feed(a,b)}; g.k.yJ=function(){this.Vc("orfb");this.aD=!0;if(qRa(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.jl(),rt:(1E3*qNa(this.vn)).toFixed(),shost:g.qi(this.Ew),trigger:"o1"};this.va("pathprobe",xG(a))}}; g.k.KJ=function(){this.Vc("orpr");this.Vc("opr_r");this.GP=!0}; g.k.EJ=function(){if(this.Yf)for(var a=g.t(this.Yf.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.Yf.get(b.value))||c.tq()}else null==(a=this.ye)||a.tq()}; g.k.va=function(a,b,c){this.xa.va(a,b,void 0===c?!1:c)}; g.k.Xz=function(a){var b;null==(b=aX(this,a))||b.Xz(a)}; g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,w,y,z,B,D;return g.A(function(G){switch(G.j){case 1:a.Dw.start();a.Vc("ogpd");a.Vc("or_i");if(b=nRa(a.videoData,a.Yp)){G.Ma(2);break}return g.x(G,oRa(a.videoData,a.Yp),3);case 3:b=G.u;case 2:if(!b)return a.logger.info("Onesie URL creation failed."),c={url:"0"},d=new yG("onesie.unavailable.hotconfig",c),a.fail(d),G.return(a.zn);a.uS=OB(b);f=g.vG(g.tI(a.videoData));h=f.getValue();G.Ma(4);break;case 5:h=G.u;case 4:l=h;var H=a.playerRequest,L=a.Y, M=a.videoData,J=kS(a.uS);J=void 0===J?!1:J;var Q=L.Qh,P="https://youtubei.googleapis.com/youtubei/"+Q.innertubeApiVersion+"/player";Q.xI&&l||(P=P+"?key="+Q.innertubeApiKey);Q=[{name:"Content-Type",value:"application/json"}];l&&Q.push({name:"Authorization",value:"Bearer "+l});Q.push({name:"User-Agent",value:g.rb()});g.O("EOM_VISITOR_DATA")?Q.push({name:"X-Goog-EOM-Visitor-Id",value:g.O("EOM_VISITOR_DATA")}):(M=M.visitorData||g.O("VISITOR_DATA"))&&Q.push({name:"X-Goog-Visitor-Id",value:M});(L=g.KE(L.experiments, "debug_sherlog_username"))&&Q.push({name:"X-Youtube-Sherlog-Username",value:L});H=lwa(JSON.stringify(H));m={url:P,httpHeaders:Q,postBody:H,proxiedByTrustedBandaid:J,skipResponseEncryption:J};g.pa(G,6);if(!kF()){Q=a.Y;L=a.videoData;M=a.xa.getPlayerSize();var X=a.xa.getVisibilityState();J=a.gH.onesieUstreamerConfig;P=null==(n=a.videoData.GN)?void 0:n.XA;var R=a.KD,oa=kH(m,DNa);H={encryptedClientKey:R.j.encryptedClientKey,serializeResponseAsJson:!0,enableAdPlacementsPreroll:Q.K("html5_onesie_ads"),enableCompressionResponseOnly:kRa(Q, !!m.skipResponseEncryption)};m.skipResponseEncryption?H.unencryptedOnesieInnertubeRequest=oa:(oa=R.encrypt(oa),H.encryptedOnesieInnertubeRequest=oa,(0,g.T)(),oa=Tya(new Sya(R.j.B),oa,R.iv),H.hmac=oa,H.iv=R.iv);Q=jRa(Q,L,M,X);e={yI:H,qO:Q,onesieUstreamerConfig:J,XA:P};G.Ma(8);break}return g.x(G,mRa(m,a.KD,a.Y,a.videoData,a.xa.getPlayerSize(),a.xa.getVisibilityState(),a.gH.onesieUstreamerConfig,null==(p=a.videoData.GN)?void 0:p.XA),9);case 9:e=G.u;case 8:g.ra(G,7);break;case 6:return q=g.ua(G),a.logger.info("Failed to create OnesieRequestProto."), a.fail(q),G.return(a.zn);case 7:return a.enableCompression=e.yI.enableCompressionResponseOnly,a.Vc("osor"),r=FHa(a.Y),w=kH(e,BNa),y={method:"POST",body:w,headers:{"Content-Type":"text/plain",Referer:location.origin}},z=a.K("html5_onesie_media_capabilities"),J=b,H=a.videoData,P=sRa(a),Q=z,Q=void 0===Q?!1:Q,J.set("ack","1"),J.set("cpn",H.clientPlaybackNonce),J.set("opr","1"),L=H.V(),L.K("html5_onesie_ads")||(J.set("oaad","0"),J.set("oavd","0")),J.set("por","1"),kF()||J.set("onem","1"),0=a.start);return a}; g.k.zo=function(){return this.pd.zo()}; g.k.Sc=function(){return this.playerState.Sc()}; g.k.wz=function(){return this.playerState.wz()&&this.videoData.Ku}; g.k.getPlayerState=function(){return this.playerState}; g.k.getPlayerType=function(){return this.playerType}; g.k.getPreferredQuality=function(){if(this.Re){var a=this.Re;a=a.videoData.Vu.compose(a.videoData.dM);a=zB(a)}else a="auto";return a}; g.k.Vy=aa(9);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.k.setMediaElement=function(a){if(this.mediaElement&&a.yf()===this.mediaElement.yf()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.bz(this.qx),this.mediaElement=a,XRa(this),this.pd.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.gi();if(!this.playerState.isError()){var b=bK(this.playerState,512);g.V(b,8)&&!g.V(b,2)&&(b=aK(b,1));a.isView()&&(b=bK(b,64));this.Wb(b)}this.mediaElement=a;this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate); XRa(this);this.pd.setMediaElement(this.mediaElement);this.K("html5_prewarm_media_source")&&!this.Yk.Bz&&eDa(this.mediaElement)}}; g.k.gi=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(this.mediaElement){var c=this.getCurrentTime();0this.mediaElement.getCurrentTime()&& this.Ka)return;break;case "resize":gSa(this);this.videoData.B&&"auto"===this.videoData.B.video.quality&&this.ma("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.WN&&g.V(this.playerState,8)&&!g.V(this.playerState,1024)&&0===this.getCurrentTime()&&g.Yv){BX(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Kf()===b){this.ma("videoelementevent",a);b=this.playerState;if(!g.V(b,128)){c=this.ey;var e=this.mediaElement;d=b.state;e=e?e:a.target;var f= e.getCurrentTime();if(!g.V(b,64)||"ended"!==a.type&&"pause"!==a.type){var h=e.Wg()||1Math.abs(f-e.getDuration()),l="pause"===a.type&&e.Wg();f="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.V(b,4)&&!DW(c,f);if(l||h&&f)0a-this.gD))this.gD=a,b!==this.Dg()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Ef()),this.va("airplay",{rbld:b}),TV(this)),this.ma("airplayactivechange")}; g.k.jz=function(a){if(this.Ka){var b=this.Ka,c=b.u,d=b.currentTime,e=Date.now()-c.ea;c.ea=NaN;c.va("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.D)&&bMa(c,d,c.D,c.B);OT(c,4,"adf");vV(b)}}; g.k.Zb=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){wQa(this.pd,this.Sc());var c=this.getCurrentTime();this.Ka&&(g.V(this.playerState,4)&&g.hI(this.videoData)||kOa(this.Ka,c));5Math.abs(m-h)?(b.va("setended",{ct:h,bh:l,dur:m,live:n}),n&&b.K("html5_set_ended_in_pfx_live_cfl")||(b.mediaElement.Bs()?b.seekTo(0,{ze:"videoplayer_loop"}):zS(b))):(g.gK(b.playerState)||PX(b,"progress_fix"),b.Wb(aK(b.playerState,1)))):(m&&!n&&!p&&0n-1&&b.va("misspg",{t:h.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),g.V(b.playerState,4)&&g.gK(b.playerState)&&5sJ(b,8)||g.tJ(b,1024))&&this.Ts.stop();!g.tJ(b,8)||this.videoData.bb||g.V(b.state,1024)||this.Ts.start();g.V(b.state,8)&&0>sJ(b,16)&&!g.V(b.state,32)&&!g.V(b.state, 2)&&this.playVideo();g.V(b.state,2)&&iI(this.videoData)&&(this.Bj(this.getCurrentTime()),this.Zb(!0));g.tJ(b,2)&&this.CK(!0);g.tJ(b,128)&&this.No();this.videoData.j&&this.videoData.isLivePlayback&&!this.sT&&(0>sJ(b,8)?(a=this.videoData.j,a.B&&a.B.stop()):g.tJ(b,8)&&this.videoData.j.resume());this.pd.Tc(b);this.pc.Tc(b);if(c&&!this.isDisposed())try{for(var h=g.t(this.VD),l=h.next();!l.done;l=h.next()){var m=l.value;this.Kh.Tc(m);this.ma("statechange",m)}}finally{this.VD.length=0}}}; g.k.Uz=function(){this.videoData.isLivePlayback||this.ma("connectionissue")}; g.k.LJ=function(){this.tb.tick("qoes")}; g.k.CD=function(a,b,c,d){a:{var e=this.Yk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=zG(b);"drm.keyerror"===a&&this.De&&1e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())ePa(e,a);else{if(e.xa.jg(a,b,d,c),YOa(e,{detail:c}))break a}else e.Cd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.va("retrydrm",{sessionLimitExhausted:1}),e.D++,dSa(e.xa))}}; g.k.K1=function(){var a=this,b=g.SE(this.Y.experiments,"html5_license_constraint_delay"),c=Zu();b&&c?(b=new g.Yn(function(){DX(a);yX(a)},b),g.N(this,b),b.start()):(DX(this),yX(this))}; g.k.Wz=function(a){this.ma("heartbeatparams",a)}; g.k.Cq=function(a){this.va("keystatuses",FV(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.K("html5_drm_check_all_key_error_states")){var d=IOa(b,c);d=EV(a)?GV(a,d):a.D.includes(d)}else{a:{b=IOa(b,c);for(d in a.j)if("output-restricted"===a.j[d].status){var e=a.j[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}b=a.oa&&d;c&&!b?ePa(this.Yk):d||GV(a,"AUDIO")&&GV(a,"SD")||(a=FV(a),this.vK?(this.ma("drmoutputrestricted"), this.K("html5_report_fatal_drm_restricted_error_killswitch")||this.jg("drm.keyerror",2,void 0,"info."+a)):(this.vK=!0,this.Cd(new yG("qoe.restart",Object.assign({},{retrydrm:1},a))),rX(this),dSa(this)))}; g.k.N1=function(){if(!this.videoData.bb&&this.mediaElement&&!this.isBackground()){var a="0";0=c.u.size){var d="ns;";c.Z||(d+="nr;");c=d+="ql."+c.B.length}else c=FV(c.u.values().next().value),c=xG(c);b.drmp=c}var e;Object.assign(a,(null==(e=this.Ka)?void 0:e.Qb())||{});var f;Object.assign(a,(null==(f=this.mediaElement)?void 0: f.Qb())||{})}this.pc.Cd("qoe.start15s",xG(a));this.ma("loadsofttimeout")}}; g.k.Bj=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,yX(this))}; g.k.CK=function(a){var b=this;a=void 0===a?!1:a;if(!this.JB){mB("att_s","player_att")||nB("att_s",void 0,"player_att");var c=new g.yGa(this.videoData);if("c1a"in c.j&&!g.KM.isInitialized()&&(nB("att_wb",void 0,"player_att"),2===this.DG&&.01>Math.random()&&g.rz(Error("Botguard not available after 2 attempts")),!a&&5>this.DG)){g.Zn(this.EG);this.DG++;return}if("c1b"in c.j){var d=YPa(this.pc);d&&BGa(c).then(function(e){e&&!b.JB&&d?(nB("att_f",void 0,"player_att"),d(e),b.JB=!0):nB("att_e",void 0,"player_att")}, function(){nB("att_e",void 0,"player_att")})}else(a=g.zGa(c))?(nB("att_f",void 0,"player_att"),XPa(this.pc,a),this.JB=!0):nB("att_e",void 0,"player_att")}}; g.k.zd=function(a){return this.pd.zd(void 0===a?!1:a)}; g.k.getMinSeekableTime=function(){return this.pd.getMinSeekableTime()}; g.k.Ad=function(){return this.pd?this.pd.Ad():0}; g.k.getStreamTimeOffset=function(){return this.pd?this.pd.getStreamTimeOffset():0}; g.k.Zn=function(){var a=0;this.Y.K("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Ad():this.getStreamTimeOffset());return a}; g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&XV(this.Zg,null==(b=this.videoData.C)?void 0:b.videoInfos)&&(this.Zg.setPlaybackRate(a),rX(this));this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)}; g.k.getPlaybackRate=function(){return this.playbackRate}; g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.B&&(a=this.videoData.B.video.quality,"auto"===a&&this.mediaElement)){var b=oJ(this);b&&0=+c),b.dis=this.mediaElement.getStyle("display"));(a=a?(0,g.jW)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Va.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)}; g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.V().experiments.experimentIds.join(", ")},b=this.Eb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a}; g.k.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(TX(this))return 3;var b;return a&&(null==(b=this.Rd)?0:b.isAdPlaying(this.getCurrentTime()))?2:g.oN(this).getPlayerType()}; g.k.Eb=function(a){return 3===this.getPresentingPlayerType()?wN(this.Ac).Bd:g.oN(this,a).getPlayerState()}; g.k.getAppState=function(){return this.appState}; g.k.QJ=function(a){switch(a.type){case "loadedmetadata":WN(this.tb,"fvb");WN(this.tb,"fvb_r");this.rE.start();a=g.t(this.Qw);for(var b=a.next();!b.done;b=a.next())b=b.value,MSa(this,b.id,b.A6,b.z6,void 0,!1);this.Qw=[];break;case "loadstart":WN(this.tb,"gv");break;case "progress":case "timeupdate":2<=jE(a.target.Vg())&&WN(this.tb,"l2s");break;case "playing":g.qG&&this.rE.start();if(g.bG(this.Y))a=!1;else{b=g.yN(this.wb());a="none"===this.mediaElement.getStyle("display")||0===Rg(this.mediaElement.getSize()); var c=wT(this.template),d=this.Ib.getVideoData(),e=g.UF(this.Y)||g.WF(this.Y);d=UH(d);b=!c||b||e||d||this.Y.jd;a=a&&!b}a&&(this.Ib.va("hidden",{},!0),this.getVideoData().zc||(this.getVideoData().zc=1,this.jR(null),this.Ib.playVideo()))}}; g.k.onLoadProgress=function(a,b){this.Va.Pa("onLoadProgress",b)}; g.k.n3=function(){this.Va.ma("playbackstalledatstart")}; g.k.onVideoProgress=function(a,b){a=ZX(this,a);b=iY(this,a.getCurrentTime(),a);this.Va.Pa("onVideoProgress",b)}; g.k.onAutoplayBlocked=function(){this.Va.Pa("onAutoplayBlocked")}; g.k.B2=function(){this.Va.ma("progresssync")}; g.k.U0=function(a){if(1===this.getPresentingPlayerType()){g.tJ(a,1)&&!g.V(a.state,64)&&this.Zc().isLivePlayback&&this.sb.isAtLiveHead()&&1=1E3*(this.getDuration()-1)){ESa(this);return}zSa(this)}if(g.V(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Va.Pa("onError",OGa(b.errorCode));this.Va.Pa("onDetailedError",{errorCode:b.errorCode, errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.wH});6048E5<(0,g.T)()-this.Y.Ce&&this.Va.Pa("onReloadRequired")}b={};if(a.state.Sc()&&!g.gK(a.state)&&!mB("pbresume","ad_to_video")&&mB("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);ZA(b,"ad_to_video");if(this.K("html5_csi_delay_pbresume")){if(mB("plev","ad_to_video")&&!isNaN(this.tb.u))if(b=1E3*(this.getCurrentTime()-this.tb.u),0>b){var d;null==(d=g.oN(this))|| d.va("csir",{ossms:b})}else if(1E5Math.random()&&g.Lv("autoplayTriggered",{intentional:this.RP});this.nQ=!1;this.Ac.dC();this.K("web_player_defer_ad")&&(this.Gr?g.Zn(this.Gr):this.hE());this.Va.Pa("onPlaybackStartExternal");this.Y.K("mweb_client_log_screen_associated");(function(){var c=g.Bz(a.sS||(a.Cf()?3:0));if(c&&"UNDEFINED_CSN"!== c){var d=a.Y.K("web_player_attach_player_response_ve"),e=a.Y.K("web_playback_associated_ve");if(a.Y.K("il_via_jspb")){var f=new kt;var h=a.getVideoData().clientPlaybackNonce;h=g.E(f,1,h);g.E(h,3,c);a.getVideoData().La&&(d||e)&&(d=g.uz(a.getVideoData().La),g.Gz(c,d),e&&(c=d.getAsJspb(),F(f,cs,2,c)));if(a.Y.K("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo){c=a.getVideoData().queueInfo;e=new lt;if(null==c?0:c.enqueueingVe)(null==c?0:c.enqueueingVe.trackingParams)?(d=g.uz(c.enqueueingVe.trackingParams), d=d.getAsJspb(),F(e,cs,1,d)):g.rz(new g.Qv("Cannot map enqueueingVe from a client VE "));(null==c?0:c.enqueueingCsn)&&g.E(e,2,c.enqueueingCsn);(null==c?0:c.clientEnqueueingTimeMs)&&g.E(e,3,Number(c.clientEnqueueingTimeMs));F(f,lt,4,e)}c={};a.K("web_playback_associated_log_ctt")&&a.getVideoData().J&&(c.cttAuthInfo={token:a.getVideoData().J,videoId:a.getVideoData().videoId});jpa(f,c)}else f={cpn:a.getVideoData().clientPlaybackNonce,csn:c},a.getVideoData().La&&(d||e)&&(d=g.uz(a.getVideoData().La),g.Gz(c, d),e&&(f.playbackVe=d.getAsJson())),a.Y.K("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(f.queueInfo=a.getVideoData().queueInfo),c={},a.K("web_playback_associated_log_ctt")&&a.getVideoData().J&&(c.cttAuthInfo={token:a.getVideoData().J,videoId:a.getVideoData().videoId}),g.Lv("playbackAssociated",f,c)}else g.rz(new g.Qv("CSN Missing or undefined during playback association"))})(); var b={};!this.K("web_player_csi_ctt_killswitch")&&this.getVideoData().J&&(b.cttAuthInfo={token:this.getVideoData().J,videoId:this.getVideoData().videoId});$A("player_att",b);this.getVideoData().botguardData&&(g.kG(this.Y)||"MWEB"===$F(this.Y)?g.Bv(g.Dv(),function(){eY(a)}):eY(this)); this.tE()}; g.k.CJ=function(){this.Va.ma("internalAbandon");this.K("html5_ad_module_cleanup_killswitch")||jY(this)}; g.k.YQ=function(a){a=a.j;!isNaN(a)&&0window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.Gy())}; g.k.M1=function(a){3!==this.getPresentingPlayerType()&&this.Va.ma("liveviewshift",a)}; g.k.playVideo=function(a){if(a=g.oN(this,a))2===this.appState?dY(this):(null!=this.Mk&&this.Mk.qb&&this.Mk.start(),g.V(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())}; g.k.pauseVideo=function(a){(a=g.oN(this,a))&&a.pauseVideo()}; g.k.stopVideo=function(){var a=this.sb.getVideoData(),b=new g.GH(this.Y,{video_id:a.NL||a.videoId,oauth_token:a.oauthToken});b.ea=g.Hf(a.ea);this.cancelPlayback(6);mY(this,b,1);null!=this.Mk&&this.Mk.stop()}; g.k.cancelPlayback=function(a,b){Mw(this.Tq);this.Tq=0;var c=g.oN(this,b);c&&(2===b&&1===c.getPlayerType()&&$Ba(this.Zc())?c.va("canclpb",{r:"no_adpb_ssdai"}):(this.Y.K("html5_high_res_logging")&&c.va("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Ib&&qO(this.Ac,a),1===b&&(c.stopVideo(),jY(this)),c.No(),VX(this,"cuerangesremoved",c.dl()),c.Kh.reset(),this.sx&&c.isGapless()&&(c.gi(!0),c.setMediaElement(this.mediaElement)))))}; g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.oN(this,b))&&this.Y.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()}; g.k.Ii=function(a){var b=g.oN(this);return b&&this.Y.enabledEngageTypes.has(a.toString())?b.Ii(a):null}; g.k.updatePlaylist=function(){iG(this.Y)?aY(this):g.LF(this.Y)&&bY(this);this.Va.Pa("onPlaylistUpdate")}; g.k.setSizeStyle=function(a,b){this.HS=a;this.GI=b;this.Va.ma("sizestylechange",a,b);this.template.resize()}; g.k.isWidescreen=function(){return this.GI}; g.k.Cf=function(){return this.visibility.Cf()}; g.k.isInline=function(){return this.visibility.isInline()}; g.k.jw=function(){return this.visibility.jw()}; g.k.ew=function(){return this.visibility.ew()}; g.k.xz=function(){return this.HS}; g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return wN(this.Ac).getAdState();if(!this.Fe()){var a=rO(this.wb());if(a)return a.getAdState()}return-1}; g.k.M2=function(a){var b=this.template.getVideoContentRect();zl(this.hQ,b)||(this.hQ=b,this.Ib&&DX(this.Ib),this.sb&&this.sb!==this.Ib&&DX(this.sb),1===this.Ov()&&this.bA&&RSa(this,!0));this.MI&&g.Mg(this.MI,a)||(this.Va.ma("appresize",a),this.MI=a)}; g.k.fg=function(){return this.Va.fg()}; g.k.g3=function(){2===this.getPresentingPlayerType()&&this.qd.isManifestless()&&!this.K("web_player_manifestless_ad_signature_expiration_killswitch")?vLa(this.qd):(this.Rd&&(SS(this.Rd),jY(this)),ySa(this,"signature"))}; g.k.jR=function(){this.gi();UX(this)}; g.k.b2=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Va.Pa("onPlayerRequestAuthFailed")}; g.k.Uz=function(){this.Va.Pa("CONNECTION_ISSUE")}; g.k.Wz=function(a){this.Va.ma("heartbeatparams",a)}; g.k.pE=function(a){this.Va.Pa("onAutonavChangeRequest",1!==a)}; g.k.Qd=function(){return this.mediaElement}; g.k.setBlackout=function(a){this.Y.jd=a;this.Ib&&(this.Ib.Wt(),this.Y.Ba&&TSa(this))}; g.k.e2=function(){var a=g.oN(this);if(a){var b=!this.Va.vz();(a.CP=b)||a.Ts.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.B&&c.B.stop()}a.Y.K("html5_suspend_loader")&&a.Ka&&(b?a.Ka.resume():KX(a,!0));a.Y.K("html5_fludd_suspend")&&(g.V(a.playerState,2)||b?g.V(a.playerState,512)&&b&&a.Wb(bK(a.playerState,512)):a.Wb(aK(a.playerState,512)));a=a.pc;a.qoe&&(a=a.qoe,g.cW(a,g.yS(a.j),"stream",[b?"A":"I"]))}}; g.k.onLoadedMetadata=function(){this.Va.Pa("onLoadedMetadata")}; g.k.onDrmOutputRestricted=function(){this.Va.Pa("onDrmOutputRestricted")}; g.k.CG=function(){this.K("html5_skip_empty_load")&&($0a=!0);iDa=this.K("html5_ios_force_seek_to_zero_on_stop");a1a=this.K("html5_ios7_force_play_on_stall");b1a=this.K("html5_ios4_seek_above_zero");c1a=this.K("html5_use_async_stopVideo");d1a=this.K("html5_pause_for_async_stopVideo");Dxa=this.K("html5_retain_source_buffer_appends_for_debugging");this.K("html5_mediastream_applies_timestamp_offset")&&(uU=!0);this.K("html5_dont_override_default_sample_desc_index")&&(zwa=!0);var a=g.SE(this.Y.experiments, "html5_cobalt_override_quic");a&&zKa(0a)){var e;if((c=null==(e=this.getVideoData())?void 0:e.Oi)&&ar.start&&dG;G++)if(B=(B<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(z.charAt(G)),4==G%5){for(var H="",L=0;6>L;L++)H="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(B&31)+H,B>>=5;D+=H}z=D.substr(0,4)+" "+D.substr(4,4)+" "+D.substr(8,4)}else z="";l={video_id_and_cpn:c.videoId+" / "+z,codecs:"", dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:q?"":"display:none",drm:q,debug_info:d,extra_debug_info:"",bandwidth_style:y,network_activity_style:y,network_activity_bytes:m.toFixed(0)+" KB",shader_info:w,shader_info_style:w?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1M)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":a="Optimized for Normal Latency";break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=a;(M=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+M.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+= "Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=pT(h,"bandwidth");l.network_activity_samples=pT(h,"networkactivity");l.live_latency_samples=pT(h,"livelatency");l.buffer_health_samples=pT(h,"bufferhealth");b=g.vI(c);if(c.cotn||b)l.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b;l.cotn_and_local_media_style=l.cotn_and_local_media?"":"display:none";YH(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20220831_01_RC00",l.release_style= ""):l.release_style="display:none";l.debug_info&&0=l.debug_info.length+p.length?l.debug_info+=" "+p:l.extra_debug_info=p;l.extra_debug_info_style=l.extra_debug_info&&0=this.u.length)throw new BA("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});var a=uY(this.Db().Ea,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=this);a=g.t(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),ZZ(this.B,this.slot,b.Db()),$Z(this.B,this.slot,b.Db())}; g.k.Jq=function(){var a=uY(this.Db().Ea,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=null);a=g.t(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,KJ(this.B,this.slot,b.Db()),b.release()}; g.k.qt=function(a,b){var c=this.u[this.j];b.layoutId!==r1(c,a,b)?eA("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.qt()}; g.k.It=function(a,b){var c=this.u[this.j];b.layoutId!==r1(c,a,b)?eA("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.It()}; g.k.Zz=function(a,b){var c=this.u[this.j];b.layoutId!==r1(c,a,b)?eA("onSkipRequested for a PlayerBytes layout that is not currently active",c.bd(),c.Db(),{requestingSlot:a,requestingLayout:b}):t1(this,c.bd(),c.Db(),"skipped")}; g.k.Qq=function(){-1===this.j&&s1(this,this.j+1)}; g.k.q3=function(a,b){a_(this.B,a,b)}; g.k.Rq=function(a,b){var c=this;this.j!==this.u.length?(a=this.u[this.j],a.dg(a.Db(),b),this.D=function(){c.callback.od(c.slot,c.layout,b)}):this.callback.od(this.slot,this.layout,b)}; g.k.Qc=function(a,b){var c=this.u[this.j];c&&c.Qc(a,b)}; g.k.od=function(a,b,c){p1.prototype.od.call(this,a,b,c);var d=this.u[this.j];d&&d.od(a,b,c)}; g.k.sQ=function(){var a=this.u[this.j];a&&a.MC()}; g.k.Pi=function(a){var b=this.u[this.j];b&&b.Pi(a)}; g.k.rR=function(a){var b=this.u[this.j];b&&b.xj(a)}; g.k.hg=function(a,b){-1===this.j&&(this.callback.Qc(this.slot,this.layout),this.j++);var c=this.u[this.j];c?c.Kz(a,b):eA("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.j),layoutId:this.Db().layoutId})}; g.k.onFullscreenToggled=function(a){var b=this.u[this.j];if(b)b.onFullscreenToggled(a)}; g.k.Xg=function(a){var b=this.u[this.j];b&&b.Xg(a)}; g.k.tj=function(a){var b=this.u[this.j];b&&b.tj(a)}; g.k.onVolumeChange=function(){var a=this.u[this.j];if(a)a.onVolumeChange()}; g.k.s3=function(a,b,c){t1(this,a,b,c)}; g.k.r3=function(a,b){t1(this,a,b,"error")};g.v(y1,g.K);g.k=y1.prototype;g.k.bd=function(){return this.slot}; g.k.Db=function(){return this.layout}; g.k.init=function(){var a=uY(this.layout.Ea,"metadata_type_video_length_seconds"),b=uY(this.layout.Ea,"metadata_type_active_view_traffic_type");LI(this.layout.Tb)&&z0(this.Hb.get(),this.layout.layoutId,b,a,this);H0(this.Sa.get(),this);this.aq()}; g.k.release=function(){LI(this.layout.Tb)&&A0(this.Hb.get(),this.layout.layoutId);I0(this.Sa.get(),this);this.Jq()}; g.k.qt=function(){}; g.k.It=function(){}; g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.hg(this.slot,a,new VZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.j="rendering_start_requested",dCa(this.lf.get(),1)?(this.D(-1),this.Qq(a),this.tv(!1)):this.Kz("ui_unstable",new VZ("Failed to render media layout because ad ui unstable.")))}; g.k.Qc=function(a,b){if(b.layoutId===this.layout.layoutId){this.j="rendering";this.C=this.Ga.get().isMuted()||0===this.Ga.get().getVolume();z1(this,"impression");z1(this,"start");if(this.Ga.get().isMuted()){B1(this,"mute");var c;a=(null==(c=x1(this))?void 0:c.muteCommands)||[];this.Kb.get().Jf(a,this.layout.layoutId)}if(this.Ga.get().isFullscreen()){this.Qf("fullscreen");var d;c=(null==(d=x1(this))?void 0:d.fullscreenCommands)||[];this.Kb.get().Jf(c,this.layout.layoutId)}this.Od.get().DK();this.D(1); this.fR();var e;d=(null==(e=x1(this))?void 0:e.impressionCommands)||[];this.Kb.get().Jf(d,this.layout.layoutId)}}; g.k.Kz=function(a,b){this.ya={VE:3,TA:"load_timeout"===a?402:400,errorMessage:b.message};z1(this,"error");var c;a=(null==(c=x1(this))?void 0:c.errorCommands)||[];this.Kb.get().Jf(a,this.layout.layoutId);this.callback.hg(this.slot,this.layout,b)}; g.k.MC=function(){this.J()}; g.k.tP=function(){if("rendering"===this.j){B1(this,"pause");var a,b=(null==(a=x1(this))?void 0:a.pauseCommands)||[];this.Kb.get().Jf(b,this.layout.layoutId);this.D(2)}}; g.k.uP=function(){if("rendering"===this.j){B1(this,"resume");var a,b=(null==(a=x1(this))?void 0:a.resumeCommands)||[];this.Kb.get().Jf(b,this.layout.layoutId)}}; g.k.dg=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.hg(this.slot,a,new VZ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else if("rendering_stop_requested"!==this.j){this.j="rendering_stop_requested";this.S=b;if(o0(this.Ha.get(),"html5_track_termination_during_request"))switch(b){case "normal":z1(this,"complete");break;case "skipped":z1(this,"skip");break;case "abandoned":e1(this.u, "impression")&&z1(this,"abandon")}this.Rq(a,b)}}; g.k.od=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.j="not_rendering",this.S=void 0,(a="normal"!==c||this.position+1===this.oa)&&this.tv(a),this.gR(c),this.D(0),c){case "abandoned":if(e1(this.u,"impression")){o0(this.Ha.get(),"html5_track_termination_during_request")||z1(this,"abandon");var d,e=(null==(d=x1(this))?void 0:d.abandonCommands)||[];this.Kb.get().Jf(e,this.layout.layoutId)}break;case "normal":o0(this.Ha.get(),"html5_track_termination_during_request")||z1(this,"complete"); d=(null==(e=x1(this))?void 0:e.completeCommands)||[];this.Kb.get().Jf(d,this.layout.layoutId);break;case "skipped":o0(this.Ha.get(),"html5_track_termination_during_request")||z1(this,"skip");var f;d=(null==(f=x1(this))?void 0:f.skipCommands)||[];this.Kb.get().Jf(d,this.layout.layoutId)}}; g.k.Qv=function(){return this.layout.layoutId}; g.k.IH=function(){return this.ya}; g.k.xj=function(a){if("not_rendering"!==this.j){this.ea||(a=new g.rJ(a.state,new g.ZJ),this.ea=!0);var b=2===this.Ga.get().getPresentingPlayerType();"rendering_start_requested"===this.j?b&&v1(a)&&this.Z():b?g.tJ(a,2)?this.jN():(v1(a)?this.D(1):g.tJ(a,4)&&!g.tJ(a,2)&&this.tP(),0>sJ(a,4)&&!(0>sJ(a,2))&&this.uP()):this.MC()}}; g.k.Qz=function(){if("rendering"===this.j){b1(this.u,"active_view_measurable");var a,b=(null==(a=x1(this))?void 0:a.activeViewMeasurableCommands)||[];this.Kb.get().Jf(b,this.layout.layoutId)}}; g.k.Pz=function(){if("rendering"===this.j){b1(this.u,"active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=x1(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.Kb.get().Jf(b,this.layout.layoutId)}}; g.k.Rz=function(){if("rendering"===this.j){b1(this.u,"active_view_viewable");var a,b=(null==(a=x1(this))?void 0:a.activeViewViewableCommands)||[];this.Kb.get().Jf(b,this.layout.layoutId)}}; g.k.Nz=function(){if("rendering"===this.j){b1(this.u,"audio_audible");var a,b=(null==(a=x1(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.Kb.get().Jf(b,this.layout.layoutId)}}; g.k.Oz=function(){if("rendering"===this.j){b1(this.u,"audio_measurable");var a,b=(null==(a=x1(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.Kb.get().Jf(b,this.layout.layoutId)}}; g.k.tv=function(a){this.Od.get().tv(uY(this.layout.Ea,"metadata_type_ad_placement_config").kind,a,this.position,this.oa,!1)}; g.k.onFullscreenToggled=function(a){if("rendering"===this.j)if(a){this.Qf("fullscreen");var b,c=(null==(b=x1(this))?void 0:b.fullscreenCommands)||[];this.Kb.get().Jf(c,this.layout.layoutId)}else this.Qf("end_fullscreen"),b=(null==(c=x1(this))?void 0:c.endFullscreenCommands)||[],this.Kb.get().Jf(b,this.layout.layoutId)}; g.k.onVolumeChange=function(){if("rendering"===this.j)if(this.Ga.get().isMuted()){B1(this,"mute");var a,b=(null==(a=x1(this))?void 0:a.muteCommands)||[];this.Kb.get().Jf(b,this.layout.layoutId)}else B1(this,"unmute"),a=(null==(b=x1(this))?void 0:b.unmuteCommands)||[],this.Kb.get().Jf(a,this.layout.layoutId)}; g.k.Xg=function(){}; g.k.tj=function(){}; g.k.rk=function(){}; g.k.Qf=function(a){o0(this.Ha.get(),"av_call_once_per_event_pair")?this.u.Qf(a,!this.C):(this.u.Qf(a),this.C||(a=OI(a))&&this.u.Qf(a))};g.v(C1,y1);g.k=C1.prototype;g.k.aq=function(){}; g.k.Jq=function(){var a=this.Sa.get();a.FE===this&&(a.FE=null);this.timer.stop()}; g.k.Qq=function(){qVa(this.Ga.get());this.Sa.get().FE=this;mB("pbp")||mB("pbs")||nB("pbp");mB("pbp","watch")||mB("pbs","watch")||nB("pbp",void 0,"watch");this.Z()}; g.k.fR=function(){OVa(this)}; g.k.jN=function(){}; g.k.qt=function(){this.timer.stop();y1.prototype.tP.call(this)}; g.k.It=function(){OVa(this);y1.prototype.uP.call(this)}; g.k.Pv=function(){return uY(this.Db().Ea,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.k.Rq=function(){this.timer.stop()}; g.k.Zb=function(){var a=Date.now(),b=a-this.B;this.B=a;this.Ql+=b;this.Ql>=this.Pv()?(this.Ql=this.Pv(),A1(this,this.Ql/1E3,!0),D1(this,this.Ql),this.J()):(A1(this,this.Ql/1E3),D1(this,this.Ql))}; g.k.gR=function(){}; g.k.Pi=function(){};g.v(E1,y1);g.k=E1.prototype;g.k.aq=function(){uY(this.Db().Ea,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=uY(this.Db().Ea,"metadata_type_shrunken_player_bytes_config")}; g.k.Jq=function(){uY(this.Db().Ea,"metadata_type_player_bytes_callback_ref").current=null;this.B&&this.Xb.get().removeCueRange(this.B);this.B=void 0;this.I.dispose()}; g.k.Qq=function(a){var b=uY(a.Ea,"metadata_type_ad_video_id"),c=uY(a.Ea,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.vf.get().G.V().oa.add(b,{jy:c});(b=uY(a.Ea,"metadata_type_sodar_extension_data"))&&tVa(this.Ae.get(),b);rVa(this.Ga.get(),!1);(b=this.Ha.get().G.V().experiments.ib("html5_load_ads_instead_of_cue"))?(c=this.qe.get(),a=uY(a.Ea,"metadata_type_player_vars"),c.G.loadVideoByPlayerVars(a,!1,2)):(c=this.qe.get(),a=uY(a.Ea,"metadata_type_player_vars"),c.G.cueVideoByPlayerVars(a, 2));this.I.start();b||this.qe.get().G.playVideo(2)}; g.k.fR=function(){this.I.stop();this.B="adcompletioncuerange:"+this.Db().layoutId;this.Xb.get().addCueRange(this.B,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var a;(this.adCpn=(null==(a=this.Ua.get().Rf(2))?void 0:a.clientPlaybackNonce)||"")||eA("Media layout confirmed started, but ad CPN not set.");this.kd.get().Pa("onAdStart",this.adCpn)}; g.k.jN=function(){this.J()}; g.k.Pv=function(){var a;return null==(a=this.Ua.get().Rf(2))?void 0:a.playbackDurationMs}; g.k.mE=function(){this.u.Qf("clickthrough")}; g.k.Rq=function(){this.I.stop();rVa(this.Ga.get(),!0);var a;(null==(a=this.shrunkenPlayerBytesConfig)?0:a.shouldRequestShrunkenPlayerBytes)&&this.Ga.get().Vw(!1)}; g.k.onCueRangeEnter=function(a){a!==this.B?eA("Received CueRangeEnter signal for unknown layout.",this.bd(),this.Db(),{cueRangeId:a}):(this.Xb.get().removeCueRange(this.B),this.B=void 0,a=uY(this.Db().Ea,"metadata_type_video_length_seconds"),A1(this,a,!0),o0(this.Ha.get(),"av_call_early_terminal_event")?z1(this,"complete"):b1(this.u,"complete"))}; g.k.gR=function(a){"abandoned"!==a&&this.kd.get().Pa("onAdComplete");this.kd.get().Pa("onAdEnd",this.adCpn)}; g.k.onCueRangeExit=function(){}; g.k.Pi=function(a){"rendering"===this.j&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ga.get().Vw(!0),A1(this,a))};g.v(F1,p1);g.k=F1.prototype;g.k.bd=function(){return this.j.bd()}; g.k.Db=function(){return this.j.Db()}; g.k.aq=function(){this.j.init()}; g.k.Jq=function(){this.j.release()}; g.k.qt=function(){this.j.qt()}; g.k.It=function(){this.j.It()}; g.k.Zz=function(a,b){eA("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.bd(),this.Db(),{requestingSlot:a,requestingLayout:b})}; g.k.Qq=function(a){this.j.startRendering(a)}; g.k.Rq=function(a,b){this.j.dg(a,b)}; g.k.Qc=function(a,b){this.j.Qc(a,b)}; g.k.od=function(a,b,c){p1.prototype.od.call(this,a,b,c);this.j.od(a,b,c);b.layoutId===this.Db().layoutId&&this.Od.get().Zw()}; g.k.sQ=function(){this.j.MC()}; g.k.Pi=function(a){this.j.Pi(a)}; g.k.rR=function(a){this.j.xj(a)}; g.k.hg=function(a,b){this.j.Kz(a,b)}; g.k.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)}; g.k.Xg=function(a){this.j.Xg(a)}; g.k.tj=function(a){this.j.tj(a)}; g.k.onVolumeChange=function(){this.j.onVolumeChange()};G1.prototype.We=function(a,b,c,d){if(a=RVa(a,b,c,d,this.mf,this.j,this.Sa,this.Hb,this.Ae,this.qe,this.Ua,this.Ga,this.Xb,this.Od,this.kd,this.lf,this.Kb,this.vf,this.Ha))return a;throw new VZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+vY(d.Ea)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.v(H1,g.K);g.k=H1.prototype;g.k.hR=function(a){if(!this.j){var b;null==(b=this.Je)||b.get().Dq(a.identifier);return!1}SVa(this,this.j,a);return!0}; g.k.ZQ=function(){}; g.k.Qi=function(a){this.j&&this.j.contentCpn!==a&&(eA("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)}; g.k.Al=function(a){this.j&&this.j.contentCpn!==a&&eA("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn},!0);this.j=null}; g.k.ra=function(){g.K.prototype.ra.call(this);this.j=null};g.v(I1,g.K);g.k=I1.prototype;g.k.Qc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&BJ(b,this.B)){var d=this.Ua.get().Rf(2),e=this.j(b,d||void 0,this.Ha.get().G.V().experiments.ib("enable_post_ad_perception_survey_in_tvhtml5"));e?Zz(this.Sb.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[WUa(c.Fb.get(),e.contentCpn,e.hx,function(h){return c.u(h.slotId,"core",e,AY(c.Gb.get(),h))},e.LP)]; e.instreamAdPlayerUnderlayRenderer&&hVa(c.Ha.get())&&f.push(TVa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):eA("Expected MediaLayout to carry valid opportunity on entered",a,b)}}; g.k.Yh=function(){}; g.k.zj=function(){}; g.k.ag=function(){}; g.k.yj=function(){}; g.k.cg=function(){}; g.k.wk=function(){}; g.k.xk=function(){}; g.k.vj=function(){}; g.k.wj=function(){}; g.k.Ri=function(){}; g.k.od=function(){};var y2=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=XVa.prototype;g.k.init=function(){}; g.k.bd=function(){return this.slot}; g.k.jC=function(){this.callback.ag(this.slot)}; g.k.lC=function(){this.callback.cg(this.slot)}; g.k.release=function(){};K1.prototype.We=function(a,b){return new XVa(a,b)};g.k=YVa.prototype;g.k.init=function(){}; g.k.bd=function(){return this.slot}; g.k.jC=function(){M0(this.Ga.get(),"ad-showing");this.callback.ag(this.slot)}; g.k.lC=function(){this.callback.cg(this.slot);N0(this.Ga.get(),"ad-showing")}; g.k.release=function(){};g.k=ZVa.prototype;g.k.init=function(){}; g.k.bd=function(){return this.slot}; g.k.jC=function(){M0(this.Ga.get(),"ad-showing");M0(this.Ga.get(),"ad-interrupting");this.u=this.Ga.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.ag(this.slot)}; g.k.lC=function(){N0(this.Ga.get(),"ad-showing");N0(this.Ga.get(),"ad-interrupting");var a=this.u?Infinity:this.Ga.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ga.get().G.seekTo(a,void 0,void 0,1);this.callback.cg(this.slot)}; g.k.release=function(){};g.k=$Va.prototype;g.k.init=function(){}; g.k.bd=function(){return this.slot}; g.k.jC=function(){M0(this.Ga.get(),"ad-showing");M0(this.Ga.get(),"ad-interrupting");this.callback.ag(this.slot)}; g.k.lC=function(){this.Ga.get().hs();N0(this.Ga.get(),"ad-showing");N0(this.Ga.get(),"ad-interrupting");this.callback.cg(this.slot)}; g.k.release=function(){this.Ga.get().hs()};L1.prototype.We=function(a,b){if(aA(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new YVa(a,b,this.Ga);if(b.Nb instanceof Q_&&aA(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new ZVa(a,b,this.Ga);if(aA(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new $Va(a,b,this.Ga);throw new BA("Unsupported slot with type "+b.slotType+" and client metadata: "+(vY(b.Ea)+" in PlayerBytesSlotAdapterFactory."));};g.v(N1,g.K);N1.prototype.j=function(a){for(var b=[],c=g.t(this.Pb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof y_&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.Hf===a&&b.push(d)}b.length?b_(this.rF(),b):eA("Mute requested but no registered triggers can be activated.")};g.v(O1,N1);g.k=O1.prototype;g.k.Cg=function(a,b){if(b)if("survey-submit"===a)aWa(this,b);else if("skip-button"===a){a=[];for(var c=g.t(this.Pb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof y_&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.Hf===b&&a.push(d)}a.length&&b_(this.rF(),a)}else"survey-single-select-answer-button"===a&&aWa(this,b)}; g.k.jI=function(a){N1.prototype.j.call(this,a)}; g.k.Bk=function(a,b,c,d){if(this.Pb.has(b.triggerId))throw new BA("Tried to register duplicate trigger for slot.");if(!(b instanceof z_||b instanceof y_))throw new BA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Pb.set(b.triggerId,new M1(a,b,c,d))}; g.k.Ik=function(a){this.Pb.delete(a.triggerId)}; g.k.hI=function(){}; g.k.gI=function(){}; g.k.NC=function(){};g.v(P1,g.K);g.k=P1.prototype; g.k.Bk=function(a,b,c,d){if(this.Pb.has(b.triggerId))throw new BA("Tried to register duplicate trigger for slot.");if(!(b instanceof f0||b instanceof g0||b instanceof h0||b instanceof i0||b instanceof j0||b instanceof k0||b instanceof V_||b instanceof c0||b instanceof x_||b instanceof G_||b instanceof U_||b instanceof b0))throw new BA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new M1(a,b,c,d);this.Pb.set(b.triggerId,a);b instanceof j0&&this.D.has(b.lh)&&b_(this.j(),[a]);b instanceof f0&&this.B.has(b.lh)&&b_(this.j(),[a]);b instanceof c0&&this.u.has(b.Hf)&&b_(this.j(),[a])}; g.k.Ik=function(a){this.Pb.delete(a.triggerId)}; g.k.Yh=function(a){this.D.add(a.slotId);for(var b=[],c=g.t(this.Pb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof j0&&a.slotId===d.trigger.lh&&b.push(d);0sJ(a,16)){a=g.t(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}}; g.k.Yh=function(){}; g.k.zj=function(){}; g.k.yj=function(){}; g.k.ag=function(){}; g.k.cg=function(){}; g.k.wk=function(){}; g.k.xk=function(){}; g.k.vj=function(){}; g.k.wj=function(){}; g.k.Qc=function(a,b){a=g.t(this.Pb.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.bundle.trigger;c=c.Yr;if(R1(d)&&d.layoutId===b.layoutId){var e=1E3*this.Ga.get().getCurrentTimeSec(1,!1);d instanceof X_?d=0:(d=e+d.offsetMs,e=0x7ffffffffffff);this.Xb.get().addCueRange(c,d,e,!1,this)}}}; g.k.od=function(a,b,c){var d=this;a={};for(var e=g.t(this.Pb.values()),f=e.next();!f.done;a={yx:a.yx,Gn:a.Gn},f=e.next())f=f.value,a.Gn=f.bundle.trigger,a.yx=f.Yr,R1(a.Gn)&&a.Gn.layoutId===b.layoutId?dVa(this.Xb.get(),a.yx):a.Gn instanceof d0&&a.Gn.layoutId===b.layoutId&&"user_cancelled"===c&&(this.Xb.get().removeCueRange(a.yx),g.Bv(g.Dv(),function(h){return function(){d.Xb.get().addCueRange(h.yx,h.Gn.Jl.start,h.Gn.Jl.end,h.Gn.visible,d)}}(a)))}; g.k.Ri=function(){}; g.k.Pi=function(){}; g.k.onFullscreenToggled=function(){}; g.k.Xg=function(){}; g.k.tj=function(){}; g.k.onVolumeChange=function(){}; g.k.rk=function(){};g.v(U1,g.K);g.k=U1.prototype;g.k.Bk=function(a,b,c,d){if(this.Pb.has(b.triggerId))throw new BA("Tried to register duplicate trigger for slot.");if(!(b instanceof C_))throw new BA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Pb.set(b.triggerId,new M1(a,b,c,d))}; g.k.Ik=function(a){this.Pb.delete(a.triggerId)}; g.k.Gv=function(){}; g.k.Fp=function(){}; g.k.Qc=function(){}; g.k.od=function(){}; g.k.Yh=function(){}; g.k.zj=function(){}; g.k.yj=function(){}; g.k.ag=function(){}; g.k.cg=function(){}; g.k.wk=function(){}; g.k.xk=function(){}; g.k.vj=function(){}; g.k.wj=function(){}; g.k.Ri=function(){};g.v(V1,g.K);g.k=V1.prototype;g.k.Ri=function(a,b){for(var c=[],d=g.t(this.Pb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&b_(this.j(),c)}; g.k.Bk=function(a,b,c,d){if(this.Pb.has(b.triggerId))throw new BA("Tried to register duplicate trigger for slot.");if(!(b instanceof NUa))throw new BA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Pb.set(b.triggerId,new M1(a,b,c,d))}; g.k.Ik=function(a){this.Pb.delete(a.triggerId)}; g.k.Yh=function(){}; g.k.zj=function(){}; g.k.yj=function(){}; g.k.ag=function(){}; g.k.cg=function(){}; g.k.wk=function(){}; g.k.xk=function(){}; g.k.vj=function(){}; g.k.wj=function(){}; g.k.Qc=function(){}; g.k.od=function(){};g.v(W1,g.K);W1.prototype.ra=function(){this.cn.get().removeListener(this);g.K.prototype.ra.call(this)};g.v(X1,g.K);X1.prototype.ra=function(){this.He.get().removeListener(this);g.K.prototype.ra.call(this)};Y1.prototype.fetch=function(a){var b=a.BO;return this.Dr.fetch(a.zT,{uy:void 0===a.uy?void 0:a.uy,Pd:b}).then(function(c){return dWa(c,b)})};g.v(Z1,g.K);g.k=Z1.prototype;g.k.addListener=function(a){this.listeners.push(a)}; g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.k.BE=function(a){eWa(this,a,1)}; g.k.onAdUxClicked=function(a,b){$1(this,function(c){c.Cg(a,b)})}; g.k.oJ=function(a){$1(this,function(b){b.hI(a)})}; g.k.nJ=function(a){$1(this,function(b){b.gI(a)})}; g.k.K0=function(a){$1(this,function(b){b.NC(a)})};g.v(a2,g.K);g.k=a2.prototype; g.k.Qi=function(){this.C=new NJ(this,gVa(this.Ha.get()));this.u=new OJ;var a=this.G.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.G.getVideoData(1),c;(null==(c=this.j)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.vJ,this),b.subscribe("cuepointupdated",this.vJ,this),this.j=b)}this.NE.length=0;var d;b=(null==(d=a.j)?void 0:Uxa(d,0))||[];d=g.t(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.zq(b)&&eA("Unexpected a GetAdBreak to go out without player waiting", void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})}; g.k.Al=function(){}; g.k.addListener=function(a){this.listeners.push(a)}; g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.k.JJ=function(a){this.NE.push(a);for(var b=!1,c=g.t(this.listeners),d=c.next();!d.done;d=c.next())b=d.value.hR(a)||b;this.B=b}; g.k.aR=function(a){g.qc(this.u.j,1E3*a);for(var b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.ZQ(a)}; g.k.zq=function(a){gWa(this,a);this.C.reduce(a);a=this.B;this.B=!1;return a}; g.k.vJ=function(a){var b=this.G.getVideoData(1).isDaiEnabled();if(b||!g.mG(this.G.V())){a=g.t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,gWa(this,c),b?this.C.reduce(c):0!==this.G.getCurrentTime(1)&&"start"===c.event&&this.JJ(c)}}; g.k.ra=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.vJ,this),this.j=null);this.listeners.length=0;this.NE.length=0;g.K.prototype.ra.call(this)};d2.prototype.addListener=function(a){this.listeners.push(a)}; d2.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=iWa.prototype;g.k.bd=function(){return this.slot}; g.k.Db=function(){return this.layout}; g.k.init=function(){this.Ga.get().addListener(this);this.Ga.get().aC.push(this)}; g.k.release=function(){this.Ga.get().removeListener(this);oVa(this.Ga.get(),this)}; g.k.startRendering=function(a){this.callback.Qc(this.slot,a)}; g.k.dg=function(a,b){this.callback.od(this.slot,a,b)}; g.k.rk=function(a){switch(a.id){case "part2viewed":b1(this.j,"start");break;case "videoplaytime25":b1(this.j,"first_quartile");break;case "videoplaytime50":b1(this.j,"midpoint");break;case "videoplaytime75":b1(this.j,"third_quartile");break;case "videoplaytime100":b1(this.j,"complete");break;case "engagedview":if(!w0(this.Ha.get())){b1(this.j,"progress");break}zVa(this.j)||b1(this.j,"progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:eA("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.k.onVolumeChange=function(){}; g.k.tj=function(){}; g.k.Xg=function(){}; g.k.onFullscreenToggled=function(){}; g.k.xj=function(){}; g.k.Pi=function(){}; g.k.VQ=function(a){w0(this.Ha.get())&&zVa(this.j)&&d1(this.j,1E3*a,!1)};jWa.prototype.We=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.t($0()),f=e.next();!f.done;f=e.next())b.push(f.value);if(X0(d,{pe:b,Df:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new iWa(a,c,d,this.Ga,this.Sa,this.Ha);throw new VZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+vY(d.Ea)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.k=e2.prototype;g.k.bd=function(){return this.slot}; g.k.Db=function(){return this.layout}; g.k.init=function(){this.Pe.get().addListener(this);this.Ga.get().addListener(this);this.aq();var a=uY(this.layout.Ea,"metadata_type_layout_enter_ms"),b=uY(this.layout.Ea,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Ua.get().Zr)?void 0:c.clientPlaybackNonce;c=this.layout.Dc.adClientDataEntry;G0(this.Sa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.Pe.get();e=PJ(e.u,a,b);null!==e&&(G0(this.Sa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d, cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.Je.get().Qr(e,b))}; g.k.release=function(){this.Jq();this.Pe.get().removeListener(this);this.Ga.get().removeListener(this)}; g.k.startRendering=function(){this.Qq();this.callback.Qc(this.slot,this.layout)}; g.k.dg=function(a,b){this.Rq(b);null!==this.driftRecoveryMs&&(f2(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(kWa(this)-uY(this.layout.Ea,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ga.get().G.Op()).toString()}),this.driftRecoveryMs=null);this.callback.od(this.slot,this.layout,b)}; g.k.hR=function(){return!1}; g.k.ZQ=function(a){var b=uY(this.layout.Ea,"metadata_type_layout_enter_ms"),c=uY(this.layout.Ea,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&aa.width&&o2(this.C,this.layout)}; g.k.onVolumeChange=function(){}; g.k.Pi=function(){}; g.k.onFullscreenToggled=function(){}; g.k.Xg=function(){}; g.k.xj=function(){}; g.k.rk=function(){}; g.k.ra=function(){h1.prototype.ra.call(this)}; g.k.release=function(){h1.prototype.release.call(this);this.Ga.get().removeListener(this)};$Wa.prototype.We=function(a,b,c,d){if(b=n1(a,c,d,this.dc,this.Ga,this.Sa,this.C,this.j))return b;if(X0(d,WWa()))return new v2(c,d,this.Sa,this.Hb,this.dc,a,this.u,this.B,this.Ga,this.Kb,this.Ha,this.j,new w2(this.Ga));if(X0(d,VWa()))return new u2(c,d,this.Sa,this.Hb,this.dc,a,this.u,this.Ga,this.Kb,this.Ha,this.j,new w2(this.Ga));if(X0(d,{pe:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Df:["LAYOUT_TYPE_SURVEY"]}))return new ZWa(c,d,a,this.dc,this.u,this.Ga,this.Ha);if(X0(d,{pe:["metadata_type_player_bytes_layout_controls_callback_ref", "metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Df:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new r2(c,d,a,this.dc,this.Sa);if(X0(d,{pe:["metadata_type_valid_ad_message_renderer"],Df:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}))return new XWa(c,d,a,this.dc,this.Ga,this.Ha);throw new VZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+vY(d.Ea)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.v(x2,g.K);g.k=x2.prototype;g.k.Bk=function(a,b,c,d){if(this.Pb.has(b.triggerId))throw new BA("Tried to register duplicate trigger for slot.");if(!(b instanceof F_))throw new BA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Pb.set(b.triggerId,new M1(a,b,c,d));a=this.j.has(b.Hf)?this.j.get(b.Hf):new Set;a.add(b);this.j.set(b.Hf,a)}; g.k.Ik=function(a){this.Pb.delete(a.triggerId);if(!(a instanceof F_))throw new BA("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.u.get(a.triggerId);b&&(b.dispose(),this.u.delete(a.triggerId));if(b=this.j.get(a.Hf))b.delete(a),0===b.size&&this.j.delete(a.Hf)}; g.k.Yh=function(){}; g.k.zj=function(){}; g.k.yj=function(){}; g.k.ag=function(){}; g.k.cg=function(){}; g.k.wk=function(){}; g.k.xk=function(){}; g.k.vj=function(){}; g.k.wj=function(){}; g.k.Ri=function(){}; g.k.Qc=function(a,b){var c=this;if(this.j.has(b.layoutId)){b=this.j.get(b.layoutId);a={};b=g.t(b);for(var d=b.next();!d.done;a={zx:a.zx},d=b.next())a.zx=d.value,d=new g.Yn(function(e){return function(){var f=c.Pb.get(e.zx.triggerId);b_(c.B(),[f])}}(a),a.zx.durationMs),d.start(),this.u.set(a.zx.triggerId,d)}}; g.k.od=function(){};g.v(bXa,g.K);cXa.prototype.We=function(a,b,c,d){if(b=n1(a,c,d,this.dc,this.Ga,this.Sa,this.C,this.j))return b;if(X0(d,WWa()))return new v2(c,d,this.Sa,this.Hb,this.dc,a,this.u,this.B,this.Ga,this.Kb,this.Ha,this.j,new w2(this.Ga));if(X0(d,VWa()))return new u2(c,d,this.Sa,this.Hb,this.dc,a,this.u,this.Ga,this.Kb,this.Ha,this.j,new w2(this.Ga));throw new VZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+vY(d.Ea)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.v(dXa,g.K);g.v(eXa,g.K);g.v(fXa,g.K);g.v(z2,m1);z2.prototype.startRendering=function(a){m1.prototype.startRendering.call(this,a);uY(this.layout.Ea,"metadata_ad_video_is_listed")&&(a=uY(this.layout.Ea,"metadata_type_ad_info_ad_metadata"),this.Wk.get().G.Pa("onAdMetadataAvailable",a))};hXa.prototype.We=function(a,b,c,d){if(X0(d,gXa()))return new z2(a,c,d,this.dc,this.Ga,this.Sa,this.u,this.Wk,this.j);throw new VZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+vY(d.Ea)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.v(iXa,g.K);jXa.prototype.We=function(a,b,c,d){if(X0(d,gXa()))return new z2(a,c,d,this.dc,this.Ga,this.Sa,this.u,this.Wk,this.j);if(a=n1(a,c,d,this.dc,this.Ga,this.Sa,this.u,this.j))return a;throw new VZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+vY(d.Ea)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.v(kXa,g.K);g.v(mXa,g.K);mXa.prototype.B=function(){return this.u};g.v(nXa,yL); nXa.prototype.C=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Pa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:this.j.Pa("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1); this.j.Pa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.Pa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.Pa("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Pa("updateKevlarOrC3Companion", {contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:b=this.j.getVideoData(1),this.j.Pa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.Pa("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.Pa("updateEngagementPanelAction",b.addAction);this.j.Pa("changeEngagementPanelVisibility", b.expandAction);break;case 3:this.j.Pa("changeEngagementPanelVisibility",b.hideAction),this.j.Pa("updateEngagementPanelAction",b.removeAction)}};g.v(oXa,GL);g.k=oXa.prototype;g.k.init=function(a,b,c){GL.prototype.init.call(this,a,b,c);g.Bl(this.C,"stroke-dasharray","0 "+this.B);this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){IL(this);GL.prototype.hide.call(this)}; g.k.show=function(){HL(this);GL.prototype.show.call(this)}; g.k.At=function(){this.hide()}; g.k.Hq=function(){if(this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&g.Bl(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.v(pXa,ZK);g.k=pXa.prototype; g.k.init=function(a,b,c){ZK.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.qz(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=this.C?(this.I.hide(),this.S=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.ea&&(FL(this.messageText,{TIME_REMAINING:String(a)}),this.ea=a)))}};g.v(FXa,ZK);g.k=FXa.prototype; g.k.init=function(a,b,c){ZK.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.$u(b.actionButton,PH)?(this.C.init(EI("ad-image"),b.image,c),this.B.init(EI("ad-text"),b.headline,c),this.D.init(EI("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.V().K("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new oL(this.api,this.gb,this.layoutId,this.j,this.Za,a),b.backgroundColor&& g.Bl(this.element,"background-color",g.hM(b.backgroundColor)),g.N(this,this.actionButton),this.actionButton.Da(this.I),this.actionButton.init(EI("button"),g.$u(b.actionButton,PH),c),b=g.SE(this.api.V().experiments,"player_underlay_video_width_fraction"),this.api.V().K("place_shrunken_video_on_left_of_player")?(c=this.u,g.io(c,"ytp-ad-underlay-left-container"),g.go(c,"ytp-ad-underlay-right-container"),g.Bl(this.u,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.u,g.io(c,"ytp-ad-underlay-right-container"), g.go(c,"ytp-ad-underlay-left-container")),g.Bl(this.u,"width",Math.round(100*(1-b-.04))+"%"),this.api.cD()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.gM.bind(this)),this.api.addEventListener("resize",this.yP.bind(this))):g.qz(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.qz(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.qz(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.qz(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.k.show=function(){GXa(!0);this.actionButton&&this.actionButton.show();ZK.prototype.show.call(this)}; g.k.hide=function(){GXa(!1);this.actionButton&&this.actionButton.hide();ZK.prototype.hide.call(this)}; g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.gM.bind(this));this.api.removeEventListener("resize",this.yP.bind(this));this.hide()}; g.k.onClick=function(a){ZK.prototype.onClick.call(this,a);this.actionButton&&g.rh(this.actionButton.element,a.target)&&this.api.pauseVideo()}; g.k.gM=function(a){"transitioning"===a?(this.u.classList.remove("ytp-ad-underlay-clickable"),this.show()):"visible"===a?this.u.classList.add("ytp-ad-underlay-clickable"):"hidden"===a&&(this.hide(),this.u.classList.remove("ytp-ad-underlay-clickable"))}; g.k.yP=function(a){1200a?g.qz(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a)):b.timeoutCommands?b.text?b.ctaButton&&b.ctaButton.buttonRenderer?b.brandImage?b.backgroundImage&&b.backgroundImage.thumbnailLandscapePortraitRenderer&&b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape?(this.layoutId||g.qz(Error("Missing layoutId for survey interstitial.")),QXa(this.interstitial, b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape),QXa(this.logoImage,b.brandImage),g.sh(this.text,g.zA(b.text)),this.actionButton=new oL(this.api,this.gb,this.layoutId,this.j,this.Za,["ytp-ad-survey-interstitial-action-button"]),g.N(this,this.actionButton),this.actionButton.Da(this.B),this.actionButton.init(EI("button"),b.ctaButton.buttonRenderer,c),this.actionButton.show(),this.u=new VL(this.api,1E3*a),this.u.subscribe("g",function(){d.transition.hide()}),g.N(this,this.u),this.T(this.element, "click",function(e){var f=e.target===d.interstitial; e=d.actionButton.element.contains(e.target);if(f||e)if(d.transition.hide(),f)d.api.onAdUxClicked(d.componentType,d.layoutId)}),this.transition.show(100)):g.qz(Error("SurveyTextInterstitialRenderer has no landscape background image.")):g.qz(Error("SurveyTextInterstitialRenderer has no brandImage.")):g.qz(Error("SurveyTextInterstitialRenderer has no button.")):g.qz(Error("SurveyTextInterstitialRenderer has no text.")):g.qz(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; J2.prototype.clear=function(){this.hide()}; J2.prototype.show=function(){RXa(!0);ZK.prototype.show.call(this)}; J2.prototype.hide=function(){RXa(!1);ZK.prototype.hide.call(this)};var y1a="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["shopping-companion","action-companion","image-companion","ads-engagement-panel"]);g.v(K2,yL); K2.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!y1a.includes(d))switch(a.actionType){case 1:a=this.I();var e=this.api,f=this.Za,h=c.layoutId,l=c.j,m=c instanceof wJ?c.PK:!1,n=c instanceof wJ||c instanceof UL?c.zE:!1;l=void 0===l?{}:l;m=void 0===m?!1:m;n=void 0===n?!1:n;switch(d){case "invideo-overlay":a=new uXa(e,a,h,l,f);break;case "player-overlay":a=new fM(e,a,h,l,f,new WO(e),n);break;case "survey":a=new I2(e,a,h,l,f);break;case "ad-action-interstitial":a=new pXa(e,a,h,l, f,m,n);break;case "survey-interstitial":a=new J2(e,a,h,l,f);break;case "ad-message":a=new DXa(e,a,h,l,f,new WO(e,1));break;case "player-underlay":a=new FXa(e,a,h,l,f);break;default:a=null}if(!a){g.rz(Error("No UI component returned from ComponentFactory for type: "+d));break}g.tf(this.u,b)?g.rz(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof OWa?this.B?this.B.append(a.wK):g.qz(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(a.wK); break;case 2:b=SXa(this,a);if(null==b)break;b.bind(c);break;case 3:c=SXa(this,a),null!=c&&(g.Ze(c),g.tf(this.u,b)?g.Ef(this.u,b):g.rz(Error("Ad UI component does not exist: "+b)))}}; K2.prototype.ra=function(){g.$e(Object.values(this.u));this.u={};yL.prototype.ra.call(this)};g.v(TXa,g.dO);g.k=TXa.prototype;g.k.create=function(){try{UXa(this),this.load(),this.created=!0,UXa(this)}catch(a){eA(a instanceof Error?a:String(a))}}; g.k.load=function(){g.dO.prototype.load.call(this);var a=A2(this.j).rh;Tua(a.G.V().K("html5_reduce_ecatcher_errors"));try{this.player.getRootNode().classList.add("ad-created")}catch(l){eA(l instanceof Error?l:String(l))}var b=this.B(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}); e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;var h=c&&c.uf()||!1;a=ZXa(f,a,e,h,A2(this.j).rl);f=c&&c.clientPlaybackNonce||"";c=c&&c.Nr||!1;h=1E3*this.player.getDuration(1);this.gb=new PK(this,this.player,this.Dr,b,A2(this.j));HEa(this.gb,a.gy);this.j.j.yq.Qi(f,h,c,a.PD,a.PD.concat(a.gy),e,d);QK(this.gb)}; g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.yq.Al(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; g.k.unload=function(){g.dO.prototype.unload.call(this);Tua(!1);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){eA(b instanceof Error?b:String(b))}if(null!==this.gb){var a=this.gb;this.gb=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.Dr.reset()}; g.k.Cj=function(){return!1}; g.k.QK=function(){return null===this.gb?!1:this.gb.QK()}; g.k.hn=function(a){null!==this.gb&&this.gb.hn(a)}; g.k.getAdState=function(){return this.gb?this.gb.WC:-1}; g.k.getOptions=function(){return Object.values(x1a)}; g.k.zg=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=ZI(this.player),Object.assign(b,a.k5a),this.gb&&!b.AD_CPN&&(b.AD_CPN=this.gb.vC()),a=g.Rn(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.xq(b);break;case "executeCommand":this.executeCommand(b);break;default:return null}}; g.k.zq=function(a){var b;return!(null==(b=this.j.j.Pe)||!b.get().zq(a))}; g.k.xq=function(a){a.isMuted&&wEa(this.gb,A2(this.j).Mi,A2(this.j).qk,a.layoutId);this.Zu&&this.Zu.xq()}; g.k.executeCommand=function(a){A2(this.j).Za.executeCommand(a.command,a.layoutId)};g.cO("ad",TXa);var aYa=g.Bc&&$Xa();g.v(g.L2,g.W);g.L2.prototype.onClick=function(){this.G.Pa("onExpandMiniplayer")};})(_yt_player);