var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
var _yt_player={};(function(g){var window=this;/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
'use strict';var da,fa,aaa,ka,la,ma,na,ra,ta,ua,baa,caa,Ca,Da,daa,eaa,Fa,Ga,Ha,Ia,Ja,Ma,Na,gaa,haa,Wa,Ya,Za,$a,iaa,ab,cb,kaa,ib,jb,nb,pb,rb,xb,yb,zb,Ab,Bb,Db,Eb,Fb,Hb,Gb,Ib,saa,taa,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,uaa,Tb,Zb,vaa,gc,waa,lc,ic,xaa,jc,yaa,zaa,Aaa,sc,uc,vc,wc,Fc,Hc,Ec,Ac,Kc,Mc,Eaa,Oc,Pc,Rc,Qc,Uc,Vc,Wc,Xc,Yc,Zc,$c,cd,dd,ed,Gaa,fd,Haa,gd,hd,Iaa,id,Laa,Kaa,Maa,Jaa,jd,Naa,nd,od,Oaa,pd,qd,sd,ud,Qaa,vd,wd,xd,zd,Ad,Bd,Dd,Fd,Gd,Raa,Hd,Saa,Id,Taa,Jd,Vaa,Uaa,Nd,Yaa,$aa,Td,bba,cba,Ud,eba,fba,hba,$d,iba,ae,
jba,kba,ce,lba,mba,nba,fe,qba,rba,tba,uba,vba,wba,xba,oba,pba,zba,Aba,Bba,Cba,le,Dba,Eba,Fba,Gba,he,sba,yba,Jba,Kba,Lba,Mba,ue,ve,Nba,we,xe,ye,Pba,Oba,Qba,Rba,Fe,Ge,Uba,He,Ke,Vba,Wba,Ne,Re,Xba,$ba,Ze,af,aca,bca,bf,gca,gf,dca,fca,ef,df,lf,mf,hca,nf,ica,pf,qf,jca,sf,wf,xf,zf,nca,Af,pca,sca,uca,Jf,Kf,xca,yca,wca,Dca,Eca,Nf,Sf,Gca,Hca,Rf,Ica,Vf,Wf,Mca,$f,bg,eg,gg,jg,kg,Nca,Oca,Pca,Qca,ng,Sca,sg,Uca,Wca,Vca,vg,yg,Xca,xg,Yca,mg,Hg,$ca,Jg,Ig,lg,Lg,ada,Mg,Ng,bda,dda,fda,Tg,Ug,Vg,jda,Xg,kda,Wg,oda,Rg,hda,
qda,nda,lda,mda,rda,pda,Yg,ah,tda,uda,vda,wda,xda,yda,Cda,Eda,Fda,Hda,Gda,Ida,ih,jh,kh,Kda,Lda,th,uh,Nda,xh,Oda,Rda,Ah,Bh,Sda,Ch,Dh,Uda,Vda,Hh,Wda,Xda,Ih,Jh,Yda,Lh,Nh,Zda,Oh,Ph,bea,cea,eea,fea,hea,gea,iea,Rh,jea,Uh,lea,Yh,Zh,di,ei,pea,rea,sea,gi,uea,vea,wea,yea,xea,zea,tea,fi,Bea,hi,Cea,Dea,ii,Eea,ji,ki,li,mi,ni,Fea,Gea,Hea,Iea,oi,Jea,Kea,pi,ri,Lea,si,ti,Nea,Oea,Pea,vi,Qea,Sea,Rea,Tea,Uea,Vea,wi,xi,yi,Wea,Xea,Zea,$ea,Ai,Bi,Ci,Di,afa,Ei,Fi,Gi,Hi,Ii,ffa,cfa,Li,efa,Mi,dfa,Ki,Ji,Oi,gfa,Qi,Pi,hfa,ifa,
Wi,Xi,Zi,lfa,Yi,bj,mfa,cj,jfa,pfa,qfa,rfa,gj,hj,pj,sfa,qj,rj,sj,tj,tfa,uj,vj,wj,ufa,vfa,xj,wfa,zi,zfa,Afa,Bfa,Cfa,xfa,yj,Aj,Dfa,zj,Ffa,Gfa,Dj,Ej,Hfa,Gj,Hj,Ij,Fj,Jj,Cj,Jfa,Kfa,Ifa,Lfa,Mfa,Nfa,Kj,Lj,Mj,Nj,Oj,Pj,Qj,Ofa,Rj,Sj,Tj,Pfa,Rfa,Sfa,Vj,Xj,Wj,Zj,ak,bk,Ufa,Vfa,ck,dk,ek,Xfa,Zfa,cga,$fa,dga,hga,fk,gga,ega,gk,hk,iga,ik,kga,jga,jk,mga,lga,nga,oga,nk,ok,pga,qga,rga,pk,qk,sga,rk,tga,uga,zga,sk,tk,Aga,Bga,Cga,Dga,vk,Ega,Fga,Gga,Hk,Bk,Ak,Hga,Iga,Jga,Ik,Jk,Kk,Lga,Rk,Sk,Tk,Uk,Vk,Wk,Nga,Oga,Pga,Xk,Zk,$k,dl,
el,hl,Rga,Tga,Sga,Uga,Vga,nl,Wga,Xga,ol,Yga,Zga,$ga,aha,sl,ql,tl,ul,vl,bha,cha,dha,wl,xl,yl,eha,fha,gha,zl,hha,Al,Bl,iha,jha,kha,lha,mha,nha,oha,Dl,El,Fl,Hl,rha,Il,Jl,sha,qha,Gl,tha,Kl,Ll,Ml,Ol,Nl,uha,vha,wha,Pl,yha,Ql,Aha,Bha,Cha,Dha,Eha,Fha,Gha,Hha,$l,am,bm,Jha,Iha,dm,Kha,em,Lha,fm,Mha,Nha,gm,hm,im,Oha,jm,km,pm,qm,rm,sm,tm,um,vm,Pha,Qha,Rha,Sha,wm,Tha,Vha,Uha,ym,zm,Xha,Wha,bia,aia,Am,cia,dia,eia,gia,fia,hia,Bm,iia,jia,Dm,kia,lia,mia,nia,Em,oia,Fm,pia,Gm,Hm,ria,Im,sia,Jm,Km,tia,uia,Lm,Nm,wia,Om,
via,xia,yia,Aia,Cia,Pm,Dia,Sm,Tm,Fia,Gia,Jia,Kia,Um,Lia,Vm,Wm,Xm,Ym,Zm,$m,an,bn,cn,dn,en,fn,gn,Pia,Oia,Qia,Sia,Ria,Uia,Nia,Tia,Mia,hn,jn,Wia,Xia,Yia,nn,on,pn,kn,$ia,qn,Via,bja,cja,dja,aja,rn,sn,tn,un,eja,Zia,fja,vn,gja,hja,ija,jja,kja,nja,oja,pja,xn,qja,tja,An,wja,vja,zn,Cn,xja,yja,zja,In,Aja,Bja,Jn,Cja,lo,io,jo,ko,Dja,oo,no,Eja,qo,Fja,Hja,ro,Ija,Jja,Oja,Kja,wo,Tja,xo,yo,Vja,Bo,Wja,Xja,Co,Zja,Eo,Ho,Io,$ja,Ko,Lo,Mo,No,Po,Qo,bka,Ro,So,cka,dka,To,eka,fka,Vo,Wo,Xo,jka,Yo,Zo,$o,lka,bp,cp,dp,ep,fp,gp,hp,
ip,jp,kp,lp,mp,np,op,pp,qp,rp,ska,sp,tp,up,uka,vp,vka,wp,xka,xp,yp,zp,Ap,Bp,Cp,Dp,Ep,Aka,Bka,Gp,Fp,Hp,Ip,Jp,Kp,Lp,Mp,Np,Dka,Eka,Pp,Qp,Sp,Fka,Tp,Gka,Wp,Xp,Yp,Zp,$p,aq,cq,dq,Kka,eq,fq,gq,Hka,hq,Nka,Qka,iq,Ska,Uka,nq,Vka,Wka,Xka,ala,Zka,$ka,oq,rq,qq,bla,tq,uq,vq,ela,fla,nna,Bq,ona,Dq,Eq,pna,Fq,Gq,Hq,Jq,Lq,Mq,Aq,Nq,zna,Oq,Pq,Qq,Tq,Uq,Vq,Wq,Xq,Cna,Bna,Zq,Yq,Hna,Fna,Gna,Ina,Jna,Kna,ar,er,fr,Lna,Mna,Ona,Qna,Rna,Wna,Sna,Tna,Una,Vna,$na,ir,jr,aoa,mr,kr,pr,rr,boa,yr,zr,Dr,Er,Gr,Hr,Jr,goa,hoa,Lr,ioa,joa,Pr,
koa,loa,Rr,moa,Sr,noa,Vr,ooa,qoa,roa,Tr,soa,toa,woa,voa,Yr,poa,yoa,zoa,as,Aoa,Boa,cs,Coa,ds,Doa,Eoa,gs,Foa,Goa,Hoa,Ioa,ks,Joa,Koa,Loa,Moa,Noa,Ooa,Poa,Qoa,ns,Roa,os,Uoa,Toa,Soa,ps,ms,Voa,qs,rs,us,Xoa,ys,xs,ts,zs,Yoa,Zoa,Cs,Ds,apa,bpa,Es,Fs,cpa,dpa,$oa,fpa,gpa,hpa,ipa,jpa,Is,Js,Ls,lpa,mpa,Ms,ppa,opa,npa,qpa,spa,Os,Ps,vpa,upa,tpa,wpa,xpa,Ws,Xs,ypa,Us,zpa,Rs,Vs,Ts,Ss,Apa,Bpa,et,ft,Dpa,Epa,Hpa,lt,mt,nt,Ipa,rt,tt,Kpa,vt,ut,xt,Mpa,Lpa,Npa,Jt,Opa,Ppa,Mt,Rpa,Spa,Kt,It,Qpa,St,Tt,Wpa,Xpa,Vpa,$pa,aqa,Upa,Zpa,
Ypa,Zt,fqa,eqa,$t,hqa,jqa,kqa,iqa,au,du,eu,mqa,cu,fu,gu,ku,nu,ou,lu,oqa,pu,qu,pqa,qqa,rqa,tu,sqa,uqa,uu,vqa,vu,wu,xu,yu,Au,xqa,yqa,zqa,Aqa,Bqa,Cqa,ur,Jqa,Mqa,Du,Oqa,Gu,Iu,Ju,Qqa,Rqa,Sqa,Mu,Uqa,Nu,Yqa,Zqa,$qa,ara,Ou,bra,Wu,cra,fra,ira,gra,fv,ev,jra,dv,gv,hv,mra,ora,kv,lv,qra,T,mv,nv,ov,pv,qv,rv,rra,tv,uv,vv,wv,wra,yra,Ara,Bra,yv,Dra,Era,Ev,Fv,Fra,Gra,Gv,Jv,Hra,Kv,Ira,Jra,Kra,Lra,Wv,Vv,Xv,Yv,Zv,Lv,$v,aw,Nra,bw,Mra,Qra,Rra,Sra,cw,dw,ew,Tra,fw,Zra,gw,hw,jw,kw,ow,nw,Bw,mw,bsa,csa,Cw,Dw,Ew,lw,gsa,esa,hsa,
fsa,dsa,Hw,Iw,Kw,Nw,Pw,isa,Qw,msa,Sw,lsa,Ww,Tw,qsa,usa,Yw,ksa,jsa,Zw,vsa,wsa,xsa,ysa,Asa,cx,ex,fx,Csa,gx,hx,dx,Bsa,Dsa,Esa,zsa,Fsa,ix,jx,Gsa,kx,Hsa,lx,mx,nx,ox,Isa,Jsa,px,Ksa,qx,Lsa,rx,sx,ux,yx,zx,Ax,Bx,Cx,Dx,Ex,Fx,Msa,Gx,Ix,Osa,Psa,Hx,Ssa,Tsa,Jx,Usa,Mx,Vsa,Nx,Px,Wsa,Ox,Qx,Xsa,Sx,$sa,Ux,Vx,$x,bta,Xx,ay,cy,cta,ey,Zx,by,dta,fy,eta,gy,fta,Wx,Yx,ata,dy,hy,gta,hta,jy,ita,jta,kta,lta,ky,mta,my,nta,ly,ota,ny,oy,py,qy,ry,pta,sy,qta,ty,rta,uy,vy,wy,sta,yy,tta,Ay,zy,uta,vta,wta,xta,By,Cy,Dy,Ey,Fy,zta,Ata,Bta,
Cta,Hy,Dta,Iy,Jy,Eta,Fta,Ky,Gta,Hta,Lta,Mta,Ita,Jta,Kta,Ly,Ny,My,Oy,Py,Nta,Ota,Qy,Ry,Sy,Ty,Pta,Qta,Rta,Sta,Uta,Tta,Vy,Vta,Wta,Xta,Yta,Wy,Xy,Yy,Zta,$y,Zy,dz,ez,fz,gz,osa,nsa,hz,$ta,iz,bz,aua,bua,lz,mz,cua,nz,pz,qz,rz,sz,tz,uz,vz,dua,wz,xz,eua,yz,zz,Az,Bz,Cz,Dz,gua,hua,Ez,Fz,Gz,iua,jua,Hz,Iz,ssa,Xw,nua,oua,pua,qua,rua,sua,Rw,tua,Jz,Kz,vua,wua,Lz,Aua,xua,yua,Cua,Dua,Nz,Bua,Eua,Oz,Pz,Qz,Fua,Gua,Hua,Rz,Iua,Mz,Jua,uua,Lua,Mua,Tz,Nua,Oua,Pua,Vz,Uz,Qua,Rua,Sua,Tua,Vua,tsa,rsa,Wz,Yz,$z,aA,bA,cA,Zz,fA,Xua,
hA,Zua,iA,ava,$ua,Yua,bva,cva,dva,jA,psa,kA,eva,Uw,fva,gva,hva,iva,kva,mA,nva,lva,nA,oA,uA,pva,qva,xA,AA,rva,tva,sva,uva,vva,wva,xva,yva,zva,DA,Ava,Bva,Cva,EA,FA,GA,HA,Dva,Eva,IA,Fva,JA,KA,Gva,LA,Hva,NA,Iva,OA,PA,QA,RA,Jva,Kva,Mva,SA,Nva,Lva,qB,lB,rB,uB,vB,cB,mB,Xva,TA,Uva,nB,pB,TB,XB,Yva,Zva,$A,$B,ZA,aC,dC,kB,eC,fC,gC,hC,iC,jC,awa,bwa,kC,cwa,dwa,ewa,fwa,lC,gwa,lwa,kwa,hwa,jwa,iwa,mC,mwa,nC,nwa,owa,oC,qC,rC,sC,tC,qwa,uC,vC,rwa,wC,swa,xC,yC,zC,AC,BC,CC,twa,uwa,DC,EC,HC,xwa,IC,KC,LC,Awa,Cwa,OC,Dwa,
VC,Mwa,Hwa,Iwa,Owa,Pwa,Twa,Vwa,$C,aD,Wwa,Ywa,Zwa,$wa,axa,gxa,cD,hxa,jxa,ixa,kxa,eD,gD,iD,lxa,dD,jD,kD,mxa,qxa,nxa,pxa,uD,wD,zD,Dxa,yxa,rD,AD,tD,Exa,Fxa,DD,wxa,Hxa,Gxa,oD,sD,yD,Nxa,Jxa,Kxa,Lxa,Mxa,Oxa,ED,Pxa,Qxa,GD,HD,JD,nD,CD,Axa,oxa,zxa,Cxa,Bxa,LD,Ixa,SD,TD,UD,VD,Uxa,xD,Vxa,XD,Wxa,xxa,Xxa,Rxa,BD,Yxa,txa,qD,sxa,Xwa,aE,cE,$xa,dE,eE,fE,hE,gE,iE,aya,bya,jE,lE,cya,dya,mE,nE,oE,pE,eya,qE,fya,rE,sE,tE,uE,vE,wE,gya,xE,hya,yE,AE,kya,zE,lya,iya,jya,mya,nya,oya,BE,CE,DE,EE,FE,rya,KE,IE,uya,tya,vya,NE,sya,OE,
JE,PE,ME,LE,HE,GE,RE,SE,UE,WE,yya,zya,xya,XE,YE,ZE,$E,aF,Aya,bF,cF,Bya,dF,Cya,eF,Fya,Dya,hF,Gya,Hya,iF,Iya,lF,mF,Jya,Oya,nF,Pya,oF,pF,Qya,qF,Rya,Sya,Tya,Uya,Vya,rF,sF,Xya,Wya,Zya,Yya,tF,uF,vF,bza,cza,dza,wF,eza,xF,gza,yF,AF,BF,CF,DF,GF,IF,JF,hza,iza,KF,jza,kza,LF,lza,NF,mza,nza,OF,PF,oza,pza,QF,rza,qza,RF,tza,SF,uza,UF,VF,XF,vza,wza,xza,yza,zza,YF,$F,Dza,Gza,Aza,aG,Pza,bG,cG,Rza,Qza,Tza,Uza,Wza,Vza,Xza,Yza,Zza,$za,dG,eG,aAa,bAa,cAa,dAa,eAa,fAa,lG,hAa,iAa,jG,kG,gAa,jAa,kAa,mG,nAa,lAa,pAa,oAa,qAa,nG,
wya,rAa,qya,sAa,tAa,uAa,oG,AAa,wAa,xAa,yAa,BAa,pG,EAa,CAa,FAa,GAa,DAa,zAa,HAa,MF,JAa,KAa,IAa,qG,rG,LAa,MAa,NAa,sG,uG,PAa,vG,yG,zG,QAa,RAa,SAa,AG,UAa,VAa,WAa,XAa,YAa,ZAa,$Aa,FG,aBa,GG,bBa,cBa,dBa,IG,eBa,gBa,hBa,LG,MG,NG,iBa,OG,jBa,QG,lBa,kBa,RG,SG,TG,UG,mBa,VG,WG,nBa,XG,YG,rBa,oBa,qBa,pBa,sBa,$G,aH,tBa,uBa,vBa,bH,wBa,yBa,xBa,cH,dH,eH,fH,gH,iH,jH,kH,lH,mH,nH,oH,ABa,zBa,pH,BBa,qH,rH,sH,tH,uH,xH,yH,zH,AH,BH,CH,DH,EH,DBa,FBa,EBa,FH,HBa,JH,KH,JBa,MH,KBa,LBa,MBa,NH,OBa,PH,QH,RH,QBa,TH,TBa,SBa,RBa,VBa,UH,
VH,WH,XH,YH,ZH,$H,dI,XBa,ZBa,$Ba,fI,aCa,tr,cCa,bCa,dCa,fCa,eCa,hCa,gCa,iI,iCa,jCa,lCa,mCa,qCa,pCa,xCa,zCa,ACa,BCa,qI,CCa,rI,DCa,uI,sI,vI,tI,vAa,ECa,FCa,GCa,HCa,AI,zI,KCa,NCa,OCa,LI,MI,NI,OI,PCa,QCa,PI,QI,RCa,SCa,SI,TI,VCa,TCa,WCa,XCa,YCa,ZCa,aDa,cJ,eDa,fJ,gJ,dDa,gDa,hDa,eJ,fDa,hJ,iJ,jJ,EI,xI,lJ,nJ,kDa,iDa,jDa,oJ,rJ,mDa,qJ,nDa,oDa,wJ,xJ,yJ,CJ,qDa,rDa,DJ,EJ,sDa,tDa,uDa,vDa,FJ,xDa,wDa,yDa,GJ,zDa,ADa,IJ,JJ,BDa,MJ,DDa,OJ,KJ,EDa,FDa,CDa,PJ,QJ,TJ,GDa,HDa,SJ,VJ,UJ,XJ,ZJ,IDa,bK,JDa,MDa,KDa,NDa,eK,fK,ODa,PDa,
iK,jK,kK,lK,mK,oK,QDa,RDa,qK,TDa,SDa,UDa,VDa,WDa,XDa,JK,KK,YDa,LK,MK,ZDa,$Da,aEa,bEa,NK,QK,dEa,cEa,RK,SK,TK,eEa,UK,VK,WK,XK,fEa,$K,aL,ZK,hEa,YK,bL,iEa,kEa,jEa,gL,eL,fL,lEa,mEa,nEa,hL,iL,jL,kL,lL,oEa,pEa,qEa,oL,pL,rEa,rL,sL,tL,vL,sEa,wL,xL,yL,zL,tEa,wEa,AL,uEa,vEa,AEa,BEa,CL,DEa,CEa,EEa,FEa,GEa,EL,GL,HL,IEa,IL,KEa,JEa,HEa,JL,LEa,NEa,MEa,KL,LL,ML,NL,OEa,OL,PEa,RL,QEa,UL,SEa,SL,REa,UEa,WL,VEa,XEa,aM,YEa,ZEa,YL,VL,cM,XL,dM,bFa,eM,$L,TEa,aFa,bM,WEa,$Ea,cFa,PL,gM,dFa,eFa,ZL,hM,iM,jM,kM,lM,mM,nM,oM,pM,qM,
rM,gFa,uM,vM,wM,xM,yM,zM,AM,BM,hFa,CM,DM,EM,FM,HM,GM,IM,JM,iFa,KM,jFa,lFa,kFa,LM,MM,mFa,NM,OM,nFa,PM,oFa,QM,pFa,RM,TM,WM,VM,ZM,YM,qFa,XM,aN,sFa,tFa,bN,cN,dN,eN,gN,uFa,$J,rFa,yFa,HK,vFa,iN,xFa,IK,wFa,zFa,BFa,AFa,CFa,DFa,lN,EFa,mN,FFa,oN,GFa,HFa,pN,IFa,qN,KFa,rN,JFa,tN,MFa,LFa,sN,uN,vN,NFa,OFa,PFa,QFa,RFa,SFa,yN,XFa,$Fa,YFa,UFa,AN,TFa,ZFa,DN,bGa,aGa,EN,dGa,fGa,gGa,eGa,JN,hGa,lGa,RN,mGa,SN,UN,VN,WN,nGa,KN,XN,ZN,pGa,oGa,aO,qGa,$N,bO,rGa,cO,PN,ON,tGa,uGa,vGa,wGa,xGa,LN,jGa,QN,MN,dO,CGa,fO,DGa,EGa,AGa,
hO,FGa,iO,yGa,kO,BGa,GGa,jO,gO,HGa,lO,IGa,eO,KGa,oO,LGa,mO,pO,nO,rO,MGa,sO,tO,NGa,uO,vO,wO,xO,OGa,yO,AO,RGa,SGa,TGa,DO,CO,BO,UGa,VGa,WGa,XGa,GO,HO,IO,JO,YGa,LO,ZGa,KO,MO,NO,$Ga,bHa,fHa,cHa,dHa,eHa,gHa,hHa,SO,TO,iHa,kHa,lHa,UO,mHa,VO,nHa,sHa,tHa,$O,aP,uHa,rHa,vHa,WO,oHa,wHa,XO,YO,pHa,qHa,ZO,xHa,yHa,zHa,Gwa,Lwa,cP,dP,CHa,AHa,BHa,eP,DHa,fP,gP,hP,iP,EHa,FHa,GHa,jP,IHa,JHa,lP,KHa,mP,nP,LHa,qP,MHa,rP,QHa,uP,pP,SHa,wP,OHa,PHa,NHa,vP,tP,sP,RHa,WHa,UHa,THa,yP,XHa,zP,YHa,AP,BP,ZHa,$Ha,aIa,bIa,OO,DP,EP,FP,GP,
HP,eIa,fIa,QO,RO,iIa,KP,LP,jHa,OP,JP,jIa,IP,gIa,hIa,PP,kIa,lIa,NP,PO,MP,mIa,nIa,oIa,pIa,qIa,rIa,QP,tIa,sIa,RP,xIa,SP,zIa,yIa,UP,TP,BIa,WP,VP,CIa,vIa,YP,AIa,wIa,XP,ZP,DIa,$P,cQ,EIa,aQ,HIa,bQ,IIa,dQ,GIa,FIa,JIa,eQ,KIa,fQ,jQ,LIa,MIa,kQ,iQ,mQ,PIa,lQ,QIa,RIa,SIa,VIa,UIa,TIa,nQ,WIa,$Ia,pQ,qQ,bJa,cJa,rQ,sQ,dJa,NIa,OIa,aJa,eJa,fJa,hJa,VHa,vQ,wQ,gJa,oP,gQ,iJa,jJa,kJa,lJa,XIa,mJa,xQ,zQ,AQ,nJa,oJa,pJa,qJa,rJa,sJa,uJa,tJa,wJa,CQ,AJa,xJa,zJa,BJa,DQ,FJa,DJa,EJa,HJa,EQ,IJa,FQ,BQ,JJa,CJa,LJa,GQ,MJa,yJa,NJa,HQ,PJa,
QJa,IQ,OJa,JQ,KQ,RJa,LQ,MQ,NQ,TJa,WJa,VJa,UJa,PQ,XJa,OQ,YJa,RQ,TQ,ZJa,bKa,$Ja,aKa,cKa,eKa,dKa,fKa,gKa,UQ,iKa,jKa,VQ,kKa,hKa,lKa,nKa,pKa,qKa,mKa,rKa,sKa,uKa,tKa,vKa,oKa,WQ,XQ,wKa,YQ,ZQ,$Q,cR,dR,BKa,CKa,eR,DKa,FKa,EKa,hR,fR,zKa,HKa,GKa,IKa,jR,JKa,LKa,KKa,MKa,kR,lR,NKa,mR,QKa,nR,RKa,oR,TKa,qR,pR,UKa,sR,SKa,tR,VKa,rR,WKa,uR,XKa,AKa,iR,ZKa,$Ka,aLa,bLa,cLa,dLa,eLa,gLa,hLa,iLa,fLa,jLa,kLa,wR,lLa,mLa,xR,yR,nLa,oLa,pLa,AR,rLa,CR,sLa,tLa,BR,zR,qLa,FR,ER,uLa,GR,DR,vLa,IR,zLa,LR,ALa,xLa,JR,BLa,MR,yLa,CLa,NR,
ELa,HR,FLa,DLa,KR,GLa,wLa,OR,PR,HLa,ILa,JLa,QR,CP,YIa,dIa,SR,KLa,ZIa,cIa,LLa,TR,RR,MLa,OLa,PLa,NLa,RLa,QLa,ULa,SLa,TLa,WLa,VLa,XLa,YLa,ZLa,UR,WR,aMa,eMa,dMa,dS,fS,eS,hMa,jMa,mMa,rMa,oMa,qMa,vMa,hS,wMa,xMa,AMa,CMa,DMa,BMa,EMa,jS,FMa,GMa,kS,VR,HMa,IMa,$La,iS,KMa,LMa,RMa,OMa,SMa,PMa,MMa,TMa,UMa,NMa,WMa,lS,XMa,ZMa,$Ma,aNa,QE,sS,bNa,eNa,iGa,fNa,tS,SQ,gNa,BS,vS,HN,rS,CS,ES,tQ,uQ,GS,JMa,dNa,zS,AS,nS,kNa,lNa,nNa,mNa,yS,wS,HS,pNa,BN,qNa,QQ,cGa,JS,YN,cNa,uS,rNa,sNa,KS,WFa,tNa,vNa,jNa,mS,wNa,LS,xS,oS,xNa,MS,
CN,yNa,NS,TN,zNa,ANa,BNa,VFa,IS,oNa,JNa,FNa,ENa,MNa,NNa,SS,IN,PNa,ONa,WS,XS,YS,RNa,PS,INa,dT,SNa,cT,DNa,TNa,UNa,iNa,RS,VNa,WNa,LNa,hT,XNa,OS,$S,aT,ZS,bOa,VS,fT,kT,lT,cOa,bT,QNa,jT,YNa,mT,dOa,eOa,fOa,wI,gOa,eT,nT,iOa,TS,oT,pT,US,jOa,kOa,HNa,iT,gT,lOa,GNa,mOa,qT,rT,QGa,nOa,oOa,sT,jv,X,tT,qOa,vT,sOa,uT,tOa,yT,wT,uOa,zT,xT,vOa,AT,BT,CT,wOa,DT,ET,FT,GT,HT,IT,yOa,xOa,JT,KT,LT,MT,NT,OT,PT,QT,RT,ST,TT,UT,VT,WT,XT,ZT,$T,aU,bU,cU,dU,eU,fU,gU,hU,iU,jU,kU,lU,mU,nU,oU,pU,qU,rU,sU,tU,uU,vU,wU,xU,yU,zU,AU,BU,CU,
DU,EU,FU,GU,HU,IU,JU,KU,LU,MU,zOa,NU,OU,Lya,Mya,Nya,Eya,QU,COa,YU,ZU,kF,$U,fF,XU,aV,FOa,GOa,HOa,IOa,AOa,JOa,PU,KOa,LOa,cV,UU,hV,dV,SU,MOa,RU,bV,eV,iV,VU,WU,gV,fV,OOa,jV,kV,POa,lV,Y,mV,ZG,nV,oV,pV,QOa,ROa,TOa,UOa,YOa,qV,ZOa,VOa,$Oa,sV,bPa,cPa,aPa,tV,uV,ePa,hPa,fPa,kPa,sPa,rPa,lPa,tPa,nPa,oPa,mPa,wPa,yPa,APa,DPa,EPa,GPa,HPa,KPa,JPa,OPa,LPa,HV,PPa,SPa,RPa,VPa,TPa,XPa,YPa,ZPa,$Pa,JV,nra,cQa,aQa,MV,iv,OV,PV,kra,QV,eQa,fQa,IV,FV,wV,zV,RV,SV,BV,AV,gQa,jPa,hQa,iQa,jQa,xV,yV,EV,kQa,lQa,TV,mQa,UV,nQa,KV,LV,
DV,CV,vV,BPa,FPa,GV,QPa,uPa,pPa,VV,WV,XV,oQa,pQa,YV,ZV,$V,aW,bW,cW,dW,eW,fW,SOa,rQa,qQa,dPa,CPa,sQa,WPa,tQa,uQa,IPa,zPa,iPa,gPa,rV,WOa,vPa,XOa,qPa,MPa,NPa,wQa,UPa,xPa,xQa,vQa,gW,hW,iW,jF,TU,DOa,NV,yQa,zQa,kW,lW,mW,nW,AQa,oW,pW,jW,qW,BQa,bQa,BOa,CQa,DQa,rW,tW,uW,vW,wW,FQa,yW,zW,AW,EQa,xW,GQa,HQa,IQa,BW,LQa,KQa,CW,MQa,DW,sW,NQa,OQa,PQa,EW,FW,QQa,GW,HW,RQa,SQa,TQa,UQa,IW,VQa,JW,KW,LW,MW,NW,OW,WQa,PW,QW,RW,SW,TW,UW,VW,WW,XQa,YQa,ZQa,XW,$Qa,aRa,YW,ZW,$W,bRa,aX,cRa,bX,dRa,cX,eRa,dX,eX,fX,gX,hX,jX,gRa,fRa,
iX,lX,mX,hRa,iRa,jRa,oX,nX,qX,rX,pX,sX,kRa,lRa,tX,uX,mRa,vX,oRa,nRa,wX,xX,dQa,pRa,yX,qRa,zX,sRa,tRa,rRa,uRa,AX,vRa,wRa,xRa,BX,CX,DX,yRa,EX,FX,GX,zRa,HX,IX,ARa,JX,kX,KX,LX,MX,Kya,NX,BRa,OX,CRa,PX,QX,ERa,DRa,RX,SX,TX,FRa,GRa,HRa,UX,IRa,VX,WX,KRa,JRa,LRa,MRa,NRa,XX,YX,ZX,ORa,PRa,QRa,RRa,SRa,TRa,URa,VRa,WRa,XRa,$X,aY,YRa,ZRa,bY,cY,dY,eY,$Ra,fY,aSa,gY,bSa,cSa,hY,dSa,eSa,iY,fSa,gSa,jY,kY,hSa,iSa,lY,mY,oY,jSa,pY,qY,rY,kSa,sY,lSa,tY,mSa,uY,nSa,vY,oSa,pSa,qSa,rSa,sSa,tSa,xY,uSa,vSa,wSa,xSa,ySa,yY,zY,zSa,AY,
VY,fZ,hZ,ASa,iZ,BSa,CSa,DSa,lZ,ESa,FSa,GSa,mZ,kZ,HSa,oZ,ISa,pZ,JSa,qZ,rZ,sZ,tZ,uZ,KSa,LSa,MSa,vZ,NSa,OSa,wZ,PSa,xZ,yZ,zZ,QSa,RSa,AZ,SSa,BZ,TSa,CZ,USa,VSa,DZ,lra,WSa,XSa,ca,ia,Sh,Qa,faa;da=function(a){return function(){return ca[a].apply(this,arguments)}};
g.ea=function(a,b){return ca[a]=b};
fa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
aaa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ka=function(a,b){if(b)a:{var c=g.ha;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ia(c,a,{configurable:!0,writable:!0,value:b})}};
la=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
g.r=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:fa(a)}};
ma=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.v=function(a){return a instanceof Array?a:ma(g.r(a))};
na=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.w=function(a,b){a.prototype=oa(b.prototype);a.prototype.constructor=a;if(pa)pa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.He=b.prototype};
ra=function(){this.J=!1;this.C=null;this.u=void 0;this.j=1;this.D=this.I=0;this.V=this.B=null};
ta=function(a){if(a.J)throw new TypeError("Generator is already running");a.J=!0};
ua=function(a,b){a.B={xN:b,EO:!0};a.j=a.I||a.D};
g.A=function(a,b,c){a.j=c;return{value:b}};
g.va=function(a){a.j=0};
g.wa=function(a,b,c){a.I=b;void 0!=c&&(a.D=c)};
g.xa=function(a,b){a.j=b;a.I=0};
g.ya=function(a){a.I=0;var b=a.B.xN;a.B=null;return b};
g.Aa=function(a){a.V=[a.B];a.I=0;a.D=0};
g.Ba=function(a,b){var c=a.V.splice(0)[0];(c=a.B=a.B||c)?c.EO?a.j=a.I||a.D:void 0!=c.Ra&&a.D<c.Ra?(a.j=c.Ra,a.B=null):a.j=a.D:a.j=b};
baa=function(a){this.j=new ra;this.u=a};
caa=function(a,b){ta(a.j);var c=a.j.C;if(c)return Ca(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return Da(a)};
Ca=function(a,b,c,d){try{var e=b.call(a.j.C,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.J=!1,e;var f=e.value}catch(h){return a.j.C=null,ua(a.j,h),Da(a)}a.j.C=null;d.call(a.j,f);return Da(a)};
Da=function(a){for(;a.j.j;)try{var b=a.u(a.j);if(b)return a.j.J=!1,{value:b.value,done:!1}}catch(c){a.j.u=void 0,ua(a.j,c)}a.j.J=!1;if(a.j.B){b=a.j.B;a.j.B=null;if(b.EO)throw b.xN;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
daa=function(a){this.next=function(b){ta(a.j);a.j.C?b=Ca(a,a.j.C.next,b,a.j.N):(a.j.N(b),b=Da(a));return b};
this.throw=function(b){ta(a.j);a.j.C?b=Ca(a,a.j.C["throw"],b,a.j.N):(ua(a.j,b),b=Da(a));return b};
this.return=function(b){return caa(a,b)};
this[Symbol.iterator]=function(){return this}};
eaa=function(a){function b(d){return a.next(d)}
function c(d){return a.throw(d)}
return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
f(a.next())})};
g.B=function(a){return eaa(new daa(new baa(a)))};
g.Ea=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
Fa=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{rO:e,hS:f}}return{rO:-1,hS:void 0}};
Ga=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};
e[Symbol.iterator]=function(){return e};
return e};
Ha=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Ia=function(a){return a?a:Array.prototype.fill};
Ja=function(a){return a?a:Array.prototype.copyWithin};
g.Ka=function(a,b,c){a=a.split(".");c=c||g.C;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
g.La=function(a,b){a=a.split(".");b=b||g.C;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
Ma=function(a){a.If=void 0;a.getInstance=function(){return a.If?a.If:a.If=new a}};
Na=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Oa=function(a){var b=Na(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Pa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Ra=function(a){return Object.prototype.hasOwnProperty.call(a,Qa)&&a[Qa]||(a[Qa]=++faa)};
gaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
haa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.Sa=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.Sa=gaa:g.Sa=haa;return g.Sa.apply(null,arguments)};
g.Ta=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
g.Ua=function(){return Date.now()};
g.Va=function(a,b){function c(){}
c.prototype=b.prototype;a.He=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Ri=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
Wa=function(a){return a};
Ya=function(a){if(a!==Xa)throw Error("requires a valid immutable API token");};
Za=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Za);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.qV=b)};
$a=function(a,b){var c=Za.call;a=a.split("%s");for(var d="",e=a.length-1,f=0;f<e;f++)d+=a[f]+(f<b.length?b[f]:"%s");c.call(Za,this,d+a[e])};
iaa=function(){};
ab=function(){throw Error("Invalid UTF8");};
cb=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
g.eb=function(a){var b=!1;b=void 0===b?!1:b;if(jaa){if(b&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a))throw Error("Found an unpaired surrogate");a=(db||(db=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var f=a.charCodeAt(e);if(128>f)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e<a.length){var h=a.charCodeAt(++e);if(56320<=h&&57343>=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};
kaa=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.gb=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>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};
ib=function(a,b){return 0==a.lastIndexOf(b,0)};
jb=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.lb=function(a){return/^[\s\xa0]*$/.test(a)};
nb=function(a){if(!laa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(maa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(naa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(oaa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(paa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(qaa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(raa,"&#0;"));return a};
g.ob=function(a,b){return-1!=a.indexOf(b)};
pb=function(a,b){return g.ob(a.toLowerCase(),b.toLowerCase())};
g.sb=function(a,b){var c=0;a=qb(String(a)).split(".");b=qb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=rb(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||rb(0==f[2].length,0==h[2].length)||rb(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
rb=function(a,b){return a<b?-1:a>b?1:0};
g.tb=function(){var a=g.C.navigator;return a&&(a=a.userAgent)?a:""};
xb=function(a){var b=wb;return b?b.brands.some(function(c){return(c=c.brand)&&g.ob(c,a)}):!1};
yb=function(a){return g.ob(g.tb(),a)};
zb=function(){var a=wb;return!!a&&0<a.brands.length};
Ab=function(){return zb()?!1:yb("Opera")};
Bb=function(){return zb()?!1:yb("Trident")||yb("MSIE")};
Db=function(){return zb()?!1:yb("Edge")};
Eb=function(){return zb()?xb("Microsoft Edge"):yb("Edg/")};
Fb=function(){return yb("Firefox")||yb("FxiOS")};
Hb=function(){return yb("Safari")&&!(Gb()||(zb()?0:yb("Coast"))||Ab()||Db()||Eb()||(zb()?xb("Opera"):yb("OPR"))||Fb()||yb("Silk")||yb("Android"))};
Gb=function(){return zb()?xb("Chromium"):(yb("Chrome")||yb("CriOS"))&&!Db()||yb("Silk")};
Ib=function(){return yb("Android")&&!(Gb()||Fb()||Ab()||yb("Silk"))};
saa=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]});
return function(c){return b[c.find(function(d){return d in b})]||""}};
taa=function(a){var b=g.tb();if("Internet Explorer"===a){if(Bb())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),"7.0"==c[1])if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]);
b=saa(c);switch(a){case "Opera":if(Ab())return b(["Version","Opera"]);if(zb()?xb("Opera"):yb("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Db())return b(["Edge"]);if(Eb())return b(["Edg"]);break;case "Chromium":if(Gb())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Fb()||"Safari"===a&&Hb()||"Android Browser"===a&&Ib()||"Silk"===a&&yb("Silk")?(b=c[2])&&b[1]||"":""};
Jb=function(a){if(zb()&&"Silk"!==a){var b=wb.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=taa(a);if(""===b)return NaN;b=b.split(".")}return 0===b.length?NaN:Number(b[0])};
Kb=function(){var a=wb;return!!a&&!!a.platform};
Lb=function(){return Kb()?"Android"===wb.platform:yb("Android")};
Mb=function(){return yb("iPhone")&&!yb("iPod")&&!yb("iPad")};
Nb=function(){return Mb()||yb("iPad")||yb("iPod")};
Ob=function(){return Kb()?"macOS"===wb.platform:yb("Macintosh")};
Pb=function(){return Kb()?"Windows"===wb.platform:yb("Windows")};
Qb=function(){var a=g.tb(),b="";if(Pb())b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0";else if(Nb())b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".");else if(Ob())b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10";else if(pb(g.tb(),"KaiOS"))b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1];else if(Lb())b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1];else if(Kb()?"Chrome OS"===wb.platform:yb("CrOS"))b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
b=(a=b.exec(a))&&a[1];return b||""};
g.Rb=function(a){return a[a.length-1]};
uaa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.Ub=function(a,b,c){b=Tb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
Tb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
g.Vb=function(a,b,c){var d=a.length,e="string"===typeof a?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
g.Xb=function(a,b){return 0<=Wb(a,b)};
g.Yb=function(a){return 0==a.length};
Zb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.bc=function(a,b){b=Wb(a,b);var c;(c=0<=b)&&g.ac(a,b);return c};
g.ac=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.cc=function(a,b){b=Tb(a,b);0<=b&&g.ac(a,b)};
vaa=function(a,b){var c=0;uaa(a,function(d,e){b.call(void 0,d,e,a)&&g.ac(a,e)&&c++})};
g.dc=function(a){return Array.prototype.concat.apply([],arguments)};
g.ec=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
g.fc=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Oa(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
g.hc=function(a,b,c,d){Array.prototype.splice.apply(a,gc(arguments,1))};
gc=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
waa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Pa(e)?"o"+g.Ra(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.kc=function(a,b,c){return ic(a,c||jc,!1,b)};
lc=function(a,b){return ic(a,b,!0)};
ic=function(a,b,c,d){for(var e=0,f=a.length,h;e<f;){var l=e+(f-e>>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);0<m?e=l+1:(f=l,h=!m)}return h?e:-e-1};
g.mc=function(a,b){a.sort(b||jc)};
xaa=function(a,b){var c=jc;g.mc(a,function(d,e){return c(b(d),b(e))})};
g.nc=function(a,b){if(!g.Oa(a)||!g.Oa(b)||a.length!=b.length)return!1;for(var c=a.length,d=yaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
jc=function(a,b){return a>b?1:a<b?-1:0};
yaa=function(a,b){return a===b};
g.pc=function(a,b,c){c=g.kc(a,b,c);0>c&&g.hc(a,-(c+1),0,b)};
g.rc=function(a,b,c){var d={};(0,g.qc)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
zaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
Aaa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
sc=function(a){sc[" "](a);return a};
uc=function(a,b){try{return sc(a[b]),!0}catch(c){}return!1};
vc=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
wc=function(){var a=g.C.document;return a?a.documentMode:void 0};
g.yc=function(a){return vc(Baa,a,function(){return 0<=g.sb(xc,a)})};
g.zc=function(a){return Number(Caa)>=a};
g.Cc=function(a,b){void 0===b&&(b=0);Ac();b=Bc[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],l=a[e+1],m=a[e+2],n=b[h>>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.Dc=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return g.Cc(b,3)};
Fc=function(a){var b=[];Ec(a,function(c){b.push(c)});
return b};
Hc=function(a){!g.Gc||g.yc("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.ob("=.",a[b-1])&&(c=g.ob("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Ec(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
Ec=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Ic[n];if(null!=p)return p;if(!g.lb(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
Ac();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}};
Ac=function(){if(!Ic){Ic={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Bc[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Ic[f]&&(Ic[f]=e)}}}};
Kc=function(a){return Jc&&null!=a&&a instanceof Uint8Array};
Mc=function(){return Daa||(Daa=new Uint8Array(0))};
Eaa=function(a){if(a!==Nc)throw Error("illegal external caller");};
Oc=function(a,b){Eaa(b);this.kd=a;if(null!=a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
Pc=function(){return Faa||(Faa=new Oc(null,Nc))};
Rc=function(a){return(a=Qc(a))?new Uint8Array(a):Mc()};
Qc=function(a){Eaa(Nc);var b=a.kd;b=null==b||Kc(b)?b:"string"===typeof b?Hc(b):null;return null==b?b:a.kd=b};
Uc=function(a,b){Object.isFrozen(a)||(Sc?a[Sc]|=b:void 0!==a.Ir?a.Ir|=b:Object.defineProperties(a,{Ir:{value:b,configurable:!0,writable:!0,enumerable:!1}}))};
Vc=function(a){var b;Sc?b=a[Sc]:b=a.Ir;return null==b?0:b};
Wc=function(a){Uc(a,1);return a};
Xc=function(a){return Array.isArray(a)?!!(Vc(a)&2):!1};
Yc=function(a){if(!Array.isArray(a))throw Error("cannot mark non-array as immutable");Uc(a,2)};
Zc=function(a,b){if(!Array.isArray(a))throw Error("cannot mark non-array as mutable");b?Uc(a,8):Object.isFrozen(a)||(Sc?a[Sc]&=-9:void 0!==a.Ir&&(a.Ir&=-9))};
$c=function(a){return Xc(a.Be)};
cd=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
dd=function(a){return null==a?Pc():a.constructor===Oc?a:"string"===typeof a?a?new Oc(a,Nc):Pc():Kc(a)?a.length?new Oc(new Uint8Array(a),Nc):Pc():Pc()};
ed=function(a){if($c(a))throw Error("Cannot mutate an immutable Message");};
Gaa=function(a){return{value:a,configurable:!1,writable:!1,enumerable:!1}};
fd=function(a){g.C.setTimeout(function(){throw a;},0)};
Haa=function(a){return a.displayName||a.name||"unknown type name"};
gd=function(a,b){a instanceof b||fd(Error("Expected instanceof "+Haa(b)+" but got "+(a&&Haa(a.constructor))));return a};
hd=function(a,b,c){c=void 0===c?!1:c;if(Array.isArray(a))return new b(a);if(c)return new b};
Iaa=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a&&!Array.isArray(a)){if(Kc(a))return g.Cc(a);if(a instanceof Oc){var b=a.kd;b=null==b||"string"===typeof b?b:Jc&&b instanceof Uint8Array?g.Cc(b):null;return null==b?"":a.kd=b}}}return a};
id=function(a,b){b=void 0===b?Jaa:b;return Kaa(a,b)};
Laa=function(a,b){if(null!=a){if(Array.isArray(a))a=Kaa(a,b);else if(cd(a)){var c={},d;for(d in a)c[d]=Laa(a[d],b);a=c}else a=b(a);return a}};
Kaa=function(a,b){for(var c=a.slice(),d=0;d<c.length;d++)c[d]=Laa(c[d],b);Array.isArray(a)&&Vc(a)&1&&Wc(c);return c};
Maa=function(a){if(a&&"object"==typeof a&&a.toJSON)return a.toJSON();a=Iaa(a);return Array.isArray(a)?id(a,Maa):a};
Jaa=function(a){return Kc(a)?new Uint8Array(a):a};
jd=function(a){return a.u||(a.u=a.Be[a.B+a.Uq]={})};
g.kd=function(a,b,c){return-1===b?null:b>=a.B?a.u?a.u[b]:void 0:(void 0===c?0:c)&&a.u&&(c=a.u[b],null!=c)?c:a.Be[b+a.Uq]};
g.E=function(a,b,c,d,e){d=void 0===d?!1:d;(void 0===e?0:e)||ed(a);b<a.B&&!d?a.Be[b+a.Uq]=c:jd(a)[b]=c;return a};
g.md=function(a,b,c,d){c=void 0===c?!0:c;var e=g.kd(a,b,d);Array.isArray(e)||(e=ld);if($c(a))c&&(Yc(e),Object.freeze(e));else if(e===ld||Xc(e))e=Wc(e.slice()),g.E(a,b,e,d);return e};
Naa=function(a,b){var c=g.kd(a,b);if(null==c)return null;if(c instanceof Oc)return c;c=dd(c);g.E(a,b,c,void 0,!0);return c};
nd=function(a,b,c){a=g.kd(a,b);return null==a?c:a};
od=function(a,b){var c=void 0===c?"":c;a=Naa(a,b);return null==a?c?new Oc(c,Nc):Pc():a};
Oaa=function(a,b,c){null==c?c=ld:Wc(c);return g.E(a,b,c)};
pd=function(a,b,c){g.E(a,b,void 0,!1,c)};
qd=function(a,b,c,d){ed(a);c!==d?g.E(a,b,c):pd(a,b);return a};
g.rd=function(a,b,c,d,e){ed(a);a=g.md(a,b);e&&Vc(a)&4&&(c=dd(c));void 0!=d?a.splice(d,0,c):a.push(c)};
g.td=function(a,b,c,d){ed(a);(c=sd(a,c))&&c!==b&&null!=d&&(a.j&&c in a.j&&(a.j[c]=void 0),g.E(a,c));return g.E(a,b,d)};
sd=function(a,b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=g.kd(a,e)&&(0!==c&&pd(a,c,!0),c=e)}return c};
g.Paa=function(a,b,c){ed(a);a.j||(a.j={});var d=a.j[c];if(d)return b=d.Rz(Xa),b!==d&&(g.E(a,c,b.Be),a.j[c]=b),b;d=g.kd(a,c);b=hd(d,b,!0).Rz(Xa);d!==b.Be&&g.E(a,c,b.Be);return a.j[c]=b};
ud=function(a,b,c,d,e){e=void 0===e?!1:e;var f=e;if(-1===c)d=null;else{a.j||(a.j={});var h=a.j[c];if(h)d=h;else{var l=g.kd(a,c,f);b=hd(l,b,d);void 0==b?d=h:(d&&b.Be!==l&&g.E(a,c,b.Be,f,!0),a.j[c]=b,$c(a)&&Yc(b.Be),d=b)}}if(null==d)return d;$c(d)&&!$c(a)&&(d=d.Rz(Xa),g.E(a,c,d.Be,e),a.j[c]=d);return d};
Qaa=function(a,b,c,d,e){e=void 0===e?!0:e;a.j||(a.j={});var f=$c(a),h=a.j[c];d=g.md(a,c,!0,d);var l=f||Xc(d);if(!h){h=[];f=f||l;for(var m=0;m<d.length;m++){var n=d[m];f=f||Xc(n);n=hd(n,b);void 0!==n&&(h.push(n),l&&Yc(n.Be))}a.j[c]=h;Zc(d,!f)}b=l||e;e=Xc(h);b&&!e&&(Object.isFrozen(h)&&(a.j[c]=h=h.slice()),Yc(h),Object.freeze(h));!b&&e&&(a.j[c]=h=h.slice());return h};
vd=function(a,b,c,d){d=void 0===d?!1:d;var e=$c(a);b=Qaa(a,b,c,d,e);a=g.md(a,c,d);if(!(c=e)&&(c=a)){if(!Array.isArray(a))throw Error("cannot check mutability state of non-array");c=!(Vc(a)&8)}if(c){for(c=0;c<b.length;c++)(d=b[c])&&$c(d)&&!e&&(b[c]=b[c].Rz(Xa),a[c]=b[c].Be);Zc(a,!0)}return b};
wd=function(a,b,c,d){ed(a);a.j||(a.j={});b=null!=d?gd(d,b).Be:d;a.j[c]=d;return g.E(a,c,b)};
xd=function(a,b,c,d,e){ed(a);a.j||(a.j={});b=null!=e?gd(e,b).Be:e;a.j[c]=e;g.td(a,c,d,b)};
zd=function(a,b,c,d){ed(a);if(null!=d){var e=Wc([]);for(var f=!1,h=0;h<d.length;h++)e[h]=gd(d[h],b).Be,f=f||Xc(e[h]);a.j||(a.j={});a.j[c]=d;Zc(e,!f)}else a.j&&(a.j[c]=void 0),e=ld;return g.E(a,c,e)};
Ad=function(a,b,c,d){ed(a);var e=Qaa(a,c,b,void 0,!1);c=null!=d?gd(d,c):new c;a=g.md(a,b);e.push(c);a.push(c.Be);c.Lp(Xa)&&Zc(a,!1);return c};
Bd=function(a,b,c){return nd(a,b,void 0===c?0:c)};
Dd=function(a,b,c){a||(a=Cd);Cd=null;var d=this.constructor.j;a||(a=d?[d]:[]);this.Uq=(d?0:-1)-(this.constructor.u||0);this.j=void 0;this.Be=a;a:{d=this.Be.length;a=d-1;if(d&&(d=this.Be[a],cd(d))){this.B=a-this.Uq;this.u=d;break a}void 0!==b&&-1<b?(this.B=Math.max(b,a+1-this.Uq),this.u=void 0):this.B=Number.MAX_VALUE}if(c)for(b=0;b<c.length;b++)if(a=c[b],a<this.B)a+=this.Uq,(d=this.Be[a])?Array.isArray(d)&&Wc(d):this.Be[a]=ld;else{d=jd(this);var e=d[a];e?Array.isArray(e)&&Wc(e):d[a]=ld}};
Fd=function(a){Ed=!0;try{return JSON.stringify(a.toJSON(),Raa)}finally{Ed=!1}};
Gd=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("Expected to deserialize an Array but got "+Na(b)+": "+b);Cd=b;a=new a(b);Cd=null;return a};
Raa=function(a,b){return Iaa(b)};
Hd=function(a,b){b.Kp&&(a.Kp=b.Kp.slice());var c=b.j;if(c){b=b.u;for(var d in c){var e=c[d];if(e){var f=!(!b||!b[d]),h=+d;if(Array.isArray(e)){if(e.length)for(f=vd(a,e[0].constructor,h,f),h=0;h<Math.min(f.length,e.length);h++)Hd(f[h],e[h])}else(f=ud(a,e.constructor,h,void 0,f))&&Hd(f,e)}}}};
Saa=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
Id=function(){return Error("Failed to read varint, encoding is invalid.")};
Taa=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
Jd=function(a){if("string"===typeof a)return{buffer:Hc(a),Lp:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Lp:!1};if(a.constructor===Uint8Array)return{buffer:a,Lp:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Lp:!1};if(a.constructor===Oc)return{buffer:Qc(a)||Mc(),Lp:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Lp:!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");
};
Vaa=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.r(Uaa(c,a)),b=c.next().value,a=c.next().value,c=b);g.Kd=c>>>0;g.Ld=a>>>0};
g.Xaa=function(a){if(16>a.length)Vaa(Number(a));else if(Waa)a=BigInt(a),g.Kd=Number(a&BigInt(4294967295))>>>0,g.Ld=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);g.Ld=g.Kd=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.Ld*=1E6,g.Kd=1E6*g.Kd+d,4294967296<=g.Kd&&(g.Ld+=g.Kd/4294967296|0,g.Kd%=4294967296);b&&(b=g.r(Uaa(g.Kd,g.Ld)),a=b.next().value,b=b.next().value,g.Kd=a,g.Ld=b)}};
Uaa=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
g.Md=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.Od=function(a){var b=0,c=0,d=0,e=a.u,f=a.j;do{var h=e[f++];b|=(h&127)<<d;d+=7}while(32>d&&h&128);32<d&&(c|=(h&127)>>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<<d;Nd(a,f);if(128>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 Id();};
Nd=function(a,b){a.j=b;if(b>a.B)throw Taa(a.B,b);};
g.Pd=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 Id();Nd(a,c);return e};
g.Qd=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.Rd=function(a){var b=g.Qd(a),c=g.Qd(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.Sd=function(a){for(var b=0,c=a.j,d=c+10,e=a.u;c<d;){var f=e[c++];b|=f;if(0===(f&128))return Nd(a,c),!!(b&127)}throw Id();};
Yaa=function(a,b){if(0>b)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.B)throw Taa(b,a.B-c);a.j=d;return c};
$aa=function(a,b){if(0==b)return Pc();var c=Yaa(a,b);a.HA&&a.D?c=a.u.subarray(c,c+b):(a=a.u,b=c+b,c=c===b?Mc():Zaa?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return 0==c.length?Pc():new Oc(c,Nc)};
Td=function(a){if(aba.length){var b=aba.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new g.Md(a);this.j=a;this.B=this.j.j;this.u=this.C=-1;bba(this)};
bba=function(a){var b={};a.gG=void 0===b.gG?!1:b.gG};
cba=function(a){var b=a.j;if(b.j==b.B)return!1;a.B=a.j.j;var c=g.Pd(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw Saa(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.C=b;a.u=c;return!0};
Ud=function(a){switch(a.u){case 0:0!=a.u?Ud(a):g.Sd(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.u)Ud(a);else{var b=g.Pd(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.C;do{if(!cba(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.u){if(a.C!=b)throw Error("Unmatched end-group tag");break}Ud(a)}while(1);break;default:throw Saa(a.u,a.B);}};
g.Wd=function(a,b,c){var d=a.j.B,e=g.Pd(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.Zd=function(a){var b=g.Pd(a.j)>>>0;a=a.j;var c=Yaa(a,b);a=a.u;if(dba){var d=a,e;(e=Xd)||(e=Xd=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===Yd){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Yd=!0}catch(p){Yd=!1}}!Yd&&(Xd=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;f<b;)l=a[f++],128>l?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=cb(h,c),c.length=0);f=cb(h,c)}return f};
eba=function(a){var b=g.Pd(a.j)>>>0;return $aa(a.j,b)};
fba=function(a,b){this.u=a>>>0;this.j=b>>>0};
hba=function(a){if(!a)return gba||(gba=new fba(0,0));if(!/^-?\d+$/.test(a))return null;g.Xaa(a);return new fba(g.Kd,g.Ld)};
$d=function(){this.j=[]};
iba=function(a,b,c){for(;0<c||127<b;)a.j.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.j.push(b)};
ae=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
jba=function(a,b){if(0<=b)ae(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
g.be=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)};
kba=function(){this.B=[];this.u=0;this.j=new $d};
ce=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)};
lba=function(a,b){g.de(a,b,2);b=a.j.end();ce(a,b);b.push(a.u);return b};
mba=function(a,b){var c=b.pop();for(c=a.u+a.j.length()-c;127<c;)b.push(c&127|128),c>>>=7,a.u++;b.push(c);a.u++};
nba=function(a,b){if(b=b.Kp){ce(a,a.j.end());for(var c=0;c<b.length;c++)ce(a,Qc(b[c])||Mc())}};
g.de=function(a,b,c){ae(a.j,8*b+c)};
g.ee=function(a,b,c){g.de(a,b,2);ae(a.j,c.length);ce(a,a.j.end());ce(a,c)};
fe=function(){Dd.apply(this,arguments)};
qba=function(a,b,c){if(c){var d={},e;for(e in c){var f=c[e],h=f.H1;h||(d.uw=f.vka||f.d0.QD,f.HM?(d.bE=oba(f.HM),h=function(l){return function(m,n,p){return l.uw(m,n,p,l.bE)}}(d)):f.iP?(d.cE=pba(f.rG.rr,f.iP),h=function(l){return function(m,n,p){return l.uw(m,n,p,l.cE)}}(d)):h=d.uw,f.H1=h);
h(b,a,f.rG);d={uw:d.uw,bE:d.bE,cE:d.cE}}}nba(b,a)};
rba=function(a,b,c){return a[ge]||(a[ge]=function(d,e){return b(d,e,c)})};
tba=function(a){var b=a[ge];if(!b){var c=he(a);b=function(d,e){return sba(d,e,c)};
a[ge]=b}return b};
uba=function(a){var b=a.HM;if(b)return tba(b);if(b=a.uka)return rba(a.rG.rr,b,a.iP)};
vba=function(a){var b=uba(a),c=a.rG,d=a.d0.Hm;return b?function(e,f){return d(e,f,c,b)}:function(e,f){return d(e,f,c)}};
wba=function(a,b){var c=a[b];"function"==typeof c&&0===c.length&&(c=c(),a[b]=c);return Array.isArray(c)&&(ie in c||je in c||0<c.length&&"function"==typeof c[0])?c:void 0};
xba=function(a,b,c,d,e,f){b.rr=a[0];var h=1;if(a.length>h&&"number"!==typeof a[h]){var l=a[h++];c(b,l)}for(;h<a.length;){c=a[h++];for(var m=h+1;m<a.length&&"number"!==typeof a[m];)m++;l=a[h++];m-=h;switch(m){case 0:d(b,c,l);break;case 1:(m=wba(a,h))?(h++,e(b,c,l,m)):d(b,c,l,a[h++]);break;case 2:m=h++;m=wba(a,m);e(b,c,l,m,a[h++]);break;case 3:f(b,c,l,a[h++],a[h++],a[h++]);break;case 4:f(b,c,l,a[h++],a[h++],a[h++],a[h++]);break;default:throw Error("unexpected number of binary field arguments: "+m);
}}return b};
oba=function(a){var b=a[ke];if(!b){var c=le(a);b=function(d,e){return yba(d,e,c)};
a[ke]=b}return b};
pba=function(a,b){var c=a[ke];c||(c=function(d,e){return qba(d,e,b)},a[ke]=c);
return c};
zba=function(a,b){a.push(b)};
Aba=function(a,b,c){a.push(b,c.QD)};
Bba=function(a,b,c,d){var e=oba(d),f=le(d).rr,h=c.QD;a.push(b,function(l,m,n){return h(l,m,n,f,e)})};
Cba=function(a,b,c,d,e,f){var h=pba(d,f),l=c.QD;a.push(b,function(m,n,p){return l(m,n,p,d,h)})};
le=function(a){var b=a[je];if(b)return b;b=xba(a,a[je]=[],zba,Aba,Bba,Cba);ie in a&&je in a&&(a.length=0);return b};
Dba=function(a,b){a[0]=b};
Eba=function(a,b,c,d){var e=c.Hm;a[b]=d?function(f,h,l){return e(f,h,l,d)}:e};
Fba=function(a,b,c,d,e){var f=c.Hm,h=tba(d),l=he(d).rr;a[b]=function(m,n,p){return f(m,n,p,l,h,e)}};
Gba=function(a,b,c,d,e,f,h){var l=c.Hm,m=rba(d,e,f);a[b]=function(n,p,q){return l(n,p,q,d,m,h)}};
he=function(a){var b=a[ie];if(b)return b;b=xba(a,a[ie]={},Dba,Eba,Fba,Gba);ie in a&&je in a&&(a.length=0);return b};
sba=function(a,b,c){for(;cba(b)&&4!=b.u;){var d=b.C,e=c[d];if(!e){var f=c[0];f&&(f=f[d])&&(e=c[d]=vba(f))}if(!e||!e(b,a,d))if(f=b,e=a,d=f.B,Ud(f),!f.gG){var h=f.j.j-d;f.j.j=d;d=$aa(f.j,h);(f=e.Kp)?f.push(d):e.Kp=[d]}}return a};
yba=function(a,b,c){for(var d=c.length,e=1==d%2,f=e?1:0;f<d;f+=2)(0,c[f+1])(b,a,c[f]);qba(a,b,e?c[0]:void 0)};
g.me=function(a,b){var c=new kba;yba(a,c,le(b));ce(c,c.j.end());a=new Uint8Array(c.u);b=c.B;for(var d=b.length,e=0,f=0;f<d;f++){var h=b[f];a.set(h,e);e+=h.length}c.B=[a];return a};
g.ne=function(a,b){return{Hm:a,QD:b}};
g.qe=function(a,b,c){b=g.kd(b,c);if(null!=b){g.de(a,c,1);a=a.j;var d=+b;if(0===d)g.Ld=0<1/d?0:2147483648,g.Kd=0;else if(isNaN(d))g.Ld=2147483647,g.Kd=4294967295;else if(d=(c=0>d?-2147483648:0)?-d:d,1.7976931348623157E308<d)g.Ld=(c|2146435072)>>>0,g.Kd=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),g.Ld=(c|b/4294967296)>>>0,g.Kd=b>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022<b;)e*=2,b--;d*=Math.pow(2,-b);g.Ld=(c|b+1023<<20|1048576*d&1048575)>>>0;g.Kd=4503599627370496*
d>>>0}g.be(a,g.Kd);g.be(a,g.Ld)}};
g.re=function(a,b,c){b=g.kd(b,c);null!=b&&("string"===typeof b&&hba(b),null!=b&&(g.de(a,c,0),"number"===typeof b?(a=a.j,Vaa(b),iba(a,g.Kd,g.Ld)):(c=hba(b),iba(a.j,c.u,c.j))))};
g.se=function(a,b,c){b=g.kd(b,c);null!=b&&null!=b&&(g.de(a,c,0),jba(a.j,b))};
g.Hba=function(a,b,c){b=g.kd(b,c);null!=b&&g.ee(a,c,g.eb(b))};
g.Iba=function(a,b,c,d,e){b=ud(b,d,c);null!=b&&(c=lba(a,c),e(b,a),mba(a,c))};
Jba=function(a){var b=this.rr,c=this.j;return this.isRepeated?vd(a,b,c,!0):ud(a,b,c,void 0,!0)};
Kba=function(a,b,c,d,e,f){(a=a.j&&a.j[c])?Array.isArray(a)?(e=f.VF?Wc(a.slice()):a,zd(b,0<e.length?e[0].constructor:void 0,c,e)):wd(b,a.constructor,c,a):(Jc&&d instanceof Uint8Array?e=d.length?new Oc(new Uint8Array(d),Nc):Pc():(Array.isArray(d)&&(e?Yc(d):Array.isArray(d)&&Vc(d)&1&&f.VF&&(d=d.slice())),e=d),g.E(b,c,e))};
g.F=function(){fe.apply(this,arguments)};
Lba=function(a){g.F.call(this,a)};
Mba=function(a){g.F.call(this,a)};
ue=function(a){g.F.call(this,a)};
ve=function(a){g.F.call(this,a)};
Nba=function(a){this.TM=a};
we=function(a,b,c){this.u=a;this.C=b;this.j=c||[];this.fu=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.Ae=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Oa(d)?g.Ae.apply(null,d):g.ze(d)}};
g.I=function(){this.vj=this.vj;this.Ug=this.Ug};
g.J=function(a,b){g.Be(a,g.Ta(g.ze,b))};
g.Be=function(a,b){a.vj?b():(a.Ug||(a.Ug=[]),a.Ug.push(b))};
g.Ce=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
Pba=function(a){var b=g.La("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.C.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Oba(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
if(null==c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,De[c])c=De[c];else{c=String(c);if(!De[c]){var f=/function\s+([^\(]+)/m.exec(c);De[c]=f?f[1]:"[Anonymous]"}c=De[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack=
b;return{message:a.message,name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:a.stack}};
Oba=function(a,b){b||(b={});b[Qba(a)]=!0;var c=a.stack||"";(a=a.qV)&&!b[Qba(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=Oba(a,b));return c};
Qba=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
Rba=function(a){return g.Ee?"webkit"+a:a.toLowerCase()};
Fe=function(a,b){g.Ce.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.j=null;a&&this.init(a,b)};
Ge=function(a){return!(!a||!a[Sba])};
Uba=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Oc=e;this.key=++Tba;this.vz=this.PA=!1};
He=function(a){a.vz=!0;a.listener=null;a.proxy=null;a.src=null;a.Oc=null};
g.Ie=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Je=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Ke=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Le=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Vba=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.Me=function(a){for(var b in a)return b};
Wba=function(a){for(var b in a)return a[b]};
Ne=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Oe=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Pe=function(a,b){return null!==a&&b in a};
g.Qe=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Re=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
Xba=function(a,b){return(b=Re(a,b))&&a[b]};
g.Se=function(a){for(var b in a)return!1;return!0};
g.Yba=function(a){for(var b in a)delete a[b]};
g.Te=function(a,b){b in a&&delete a[b]};
g.Ue=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.Ve=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0};
g.We=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.Xe=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();if("undefined"!==typeof Map&&a instanceof Map)return new Map(a);if("undefined"!==typeof Set&&a instanceof Set)return new Set(a);var b=Array.isArray(a)?[]:"function"!==typeof ArrayBuffer||"function"!==typeof ArrayBuffer.isView||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.Xe(a[c]);return b};
g.Ye=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Zba.length;f++)c=Zba[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
$ba=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
Ze=function(a){this.src=a;this.listeners={};this.j=0};
g.$e=function(a,b){var c=b.type;c in a.listeners&&g.bc(a.listeners[c],b)&&(He(b),0==a.listeners[c].length&&(delete a.listeners[c],a.j--))};
af=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.vz&&f.listener==b&&f.capture==!!c&&f.Oc==d)return e}return-1};
g.cf=function(a,b,c,d,e){if(d&&d.once)return bf(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.cf(a,b[f],c,d,e);return null}c=df(c);return Ge(a)?a.Ma(b,c,g.Pa(d)?!!d.capture:!!d,e):aca(a,b,c,!1,d,e)};
aca=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Pa(e)?!!e.capture:!!e,l=ef(a);l||(a[ff]=l=new Ze(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=bca();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)cca||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(dca(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");eca++;return c};
bca=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=fca;return a};
bf=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)bf(a,b[f],c,d,e);return null}c=df(c);return Ge(a)?a.lC(b,c,g.Pa(d)?!!d.capture:!!d,e):aca(a,b,c,!0,d,e)};
gca=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)gca(a,b[f],c,d,e);else d=g.Pa(d)?!!d.capture:!!d,c=df(c),Ge(a)?a.vc(b,c,d,e):a&&(a=ef(a))&&(b=a.Ux(b,c,d,e))&&gf(b)};
gf=function(a){if("number"!==typeof a&&a&&!a.vz){var b=a.src;if(Ge(b))g.$e(b.B,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(dca(c),d):b.addListener&&b.removeListener&&b.removeListener(d);eca--;(c=ef(b))?(g.$e(c,a),0==c.j&&(c.src=null,b[ff]=null)):He(a)}}};
dca=function(a){return a in hf?hf[a]:hf[a]="on"+a};
fca=function(a,b){if(a.vz)a=!0;else{b=new Fe(b,this);var c=a.listener,d=a.Oc||a.src;a.PA&&gf(a);a=c.call(d,b)}return a};
ef=function(a){a=a[ff];return a instanceof Ze?a:null};
df=function(a){if("function"===typeof a)return a;a[jf]||(a[jf]=function(b){return a.handleEvent(b)});
return a[jf]};
g.kf=function(){g.I.call(this);this.B=new Ze(this);this.qb=this;this.Ga=null};
lf=function(a,b,c,d){b=a.B.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.vz&&h.capture==c){var l=h.listener,m=h.Oc||h.src;h.PA&&g.$e(a.B,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
mf=function(a,b){this.B=a;this.C=b;this.u=0;this.j=null};
hca=function(a,b){a.C(b);100>a.u&&(a.u++,b.next=a.j,a.j=b)};
nf=function(a){return function(){return a}};
g.of=function(){};
ica=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
pf=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
qf=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
jca=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)}};
sf=function(){if(void 0===rf){var a=null,b=g.C.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Wa,createScript:Wa,createScriptURL:Wa})}catch(c){g.C.console&&g.C.console.error(c.message)}rf=a}else rf=a}return rf};
wf=function(a,b){this.j=a===kca&&b||"";this.u=lca};
xf=function(a){return a instanceof wf&&a.constructor===wf&&a.u===lca?a.j:"type_error:Const"};
g.yf=function(a){return new wf(kca,a)};
zf=function(a,b){this.j=b===mca?a:"";this.xm=!0};
nca=function(a){var b=sf();a=b?b.createScript(a):a;return new zf(a,mca)};
Af=function(a,b){this.j=b===oca?a:""};
pca=function(a){return a instanceof Af&&a.constructor===Af?a.j:"type_error:TrustedResourceUrl"};
sca=function(a,b){var c=xf(a);if(!qca.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(rca,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 wf?xf(d):encodeURIComponent(String(d))});
return g.Bf(a)};
g.Bf=function(a){var b=sf();a=b?b.createScriptURL(a):a;return new Af(a,oca)};
g.Df=function(a,b){this.j=b===Cf?a:""};
g.Ef=function(a){return a instanceof g.Df&&a.constructor===g.Df?a.j:"type_error:SafeUrl"};
uca=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");return a.match(tca)?new g.Df(a,Cf):null};
g.Gf=function(a){a instanceof g.Df||(a="object"==typeof a&&a.xm?a.Xi():String(a),a=vca.test(a)?new g.Df(a,Cf):uca(a));return a||Ff};
g.Hf=function(a,b){if(a instanceof g.Df)return a;a="object"==typeof a&&a.xm?a.Xi():String(a);if(b&&/^data:/i.test(a)&&(b=uca(a)||Ff,b.Xi()==a))return b;vca.test(a)||(a="about:invalid#zClosurez");return new g.Df(a,Cf)};
Jf=function(a,b){this.j=b===If?a:"";this.xm=!0};
Kf=function(a){return a instanceof Jf&&a.constructor===Jf?a.j:"type_error:SafeStyle"};
xca=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(wca).join(" "):wca(d),b+=c+":"+d+";")}return b?new Jf(b,If):Lf};
yca=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=Kf(d)}
var c="";Array.prototype.forEach.call(arguments,b);return c?new Jf(c,If):Lf};
wca=function(a){if(a instanceof g.Df)return'url("'+g.Ef(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof wf)a=xf(a);else{a=String(a);var b=a.replace(zca,"$1").replace(zca,"$1").replace(Aca,"url");if(Bca.test(b)){if(b=!Cca.test(a)){for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}b=b&&c&&Dca(a)}a=b?Eca(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new $a("Value does not allow [{;}], got: %s.",[a]);return a};
Dca=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b};
Eca=function(a){return a.replace(Aca,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.Gf(d).Xi();return c+f+b+f+e})};
Nf=function(a,b,c){this.j=c===Mf?a:"";this.u=b;this.xm=this.gH=!0};
g.Qf=function(a){return a instanceof Nf&&a.constructor===Nf?a.j:"type_error:SafeHtml"};
Sf=function(a){if(a instanceof Nf)return a;var b="object"==typeof a,c=null;b&&a.gH&&(c=a.Kt());return Rf(nb(b&&a.xm?a.Xi():String(a)),c)};
Gca=function(a){function b(f){Array.isArray(f)?f.forEach(b):(f=Sf(f),e.push(g.Qf(f).toString()),f=f.Kt(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=Sf(Fca),d=c.Kt(),e=[];a.forEach(b);return Rf(e.join(g.Qf(c).toString()),d)};
Hca=function(a){return Gca(Array.prototype.slice.call(arguments))};
Rf=function(a,b){var c=sf();a=c?c.createHTML(a):a;return new Nf(a,b,Mf)};
g.Tf=function(a,b){return Rf(b,null)};
Ica=function(a,b){return new Jf(b,If)};
g.Kca=function(a,b){if(Jca())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.Qf(b)};
g.Uf=function(a,b){b=b instanceof g.Df?b:g.Hf(b);a.href=g.Ef(b)};
Vf=function(a,b,c,d){a=a instanceof g.Df?a:g.Hf(a);b=b||g.C;c=c instanceof wf?xf(c):c||"";return void 0!==d?b.open(g.Ef(a),c,d):b.open(g.Ef(a),c)};
Wf=function(){a:{var a=g.C.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&Lca.test(a))break a;a=""}return a};
Mca=function(a,b){return a+Math.random()*(b-a)};
g.Xf=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Yf=function(a,b){a%=b;return 0>a*b?a+b:a};
g.Zf=function(a,b,c){return a+c*(b-a)};
$f=function(a,b){return 1E-6>=Math.abs(a-b)};
g.ag=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
bg=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.cg=function(a,b){this.width=a;this.height=b};
g.dg=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
eg=function(a){return a.width*a.height};
g.fg=function(a){return encodeURIComponent(String(a))};
gg=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.hg=function(a){return a=nb(a)};
g.ig=function(a){return null==a?"":String(a)};
jg=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
kg=function(a){var b=Number(a);return 0==b&&g.lb(a)?NaN:b};
Nca=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
Oca=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Pca=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
Qca=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};
ng=function(a){return a?new lg(mg(a)):Rca||(Rca=new lg)};
Sca=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.og=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.qg=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.pg(document,"*",a,b)};
g.rg=function(a,b){var c=b||document;if(c.getElementsByClassName)a=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;a=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.pg(c,"*",a,b)[0]||null}return a||null};
g.pg=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,"function"==typeof b.split&&g.Xb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
sg=function(a,b){g.Ie(b,function(c,d){c&&"object"==typeof c&&c.xm&&(c=c.Xi());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Tca.hasOwnProperty(d)?a.setAttribute(Tca[d],c):ib(d,"aria-")||ib(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Uca=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.cg(a.clientWidth,a.clientHeight)};
Wca=function(a){var b=Vca(a);a=a.parentWindow||a.defaultView;return g.Gc&&g.yc("10")&&a.pageYOffset!=b.scrollTop?new g.ag(b.scrollLeft,b.scrollTop):new g.ag(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Vca=function(a){return a.scrollingElement?a.scrollingElement:g.Ee||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
vg=function(a){return a?a.parentWindow||a.defaultView:window};
yg=function(a,b,c){var d=arguments,e=document,f=d[1],h=xg(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):sg(h,f));2<d.length&&Xca(e,h,d,2);return h};
Xca=function(a,b,c,d){function e(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
for(;d<c.length;d++){var f=c[d];if(!g.Oa(f)||g.Pa(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Pa(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}g.qc(h?g.ec(f):f,e)}}};
g.zg=function(a){return xg(document,a)};
xg=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.Ag=function(a){return document.createTextNode(String(a))};
g.Bg=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.Cg=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Dg=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Yca=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
g.Eg=function(a){var b;if(Zca&&!(g.Gc&&g.yc("9")&&!g.yc("10")&&g.C.SVGElement&&a instanceof g.C.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Pa(b)&&1==b.nodeType?b:null};
g.Fg=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
mg=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Gg=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else g.Bg(a),a.appendChild(mg(a).createTextNode(String(b)))};
Hg=function(a){var b;if((b="A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!a.hasAttribute("tabindex")||$ca(a)):a.hasAttribute("tabindex")&&$ca(a))&&g.Gc){var c;"function"!==typeof a.getBoundingClientRect||g.Gc&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a};
$ca=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Jg=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return Ig(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Xb(e.className.split(/\s+/),c))},!0)};
Ig=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
lg=function(a){this.j=a||g.C.document||document};
Lg=function(a){"function"!==typeof g.C.setImmediate||g.C.Window&&g.C.Window.prototype&&!Db()&&g.C.Window.prototype.setImmediate==g.C.setImmediate?(Kg||(Kg=ada()),Kg(a)):g.C.setImmediate(a)};
ada=function(){var a=g.C.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!yb("Presto")&&(a=function(){var e=g.zg("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.Sa)(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&&!Bb()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.PM;c.PM=null;e()}};
return function(e){d.next={PM:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.C.setTimeout(e,0)}};
Mg=function(){this.u=this.j=null};
Ng=function(){this.next=this.scope=this.j=null};
g.Qg=function(a,b){Og||bda();Pg||(Og(),Pg=!0);cda.add(a,b)};
bda=function(){if(g.C.Promise&&g.C.Promise.resolve){var a=g.C.Promise.resolve(void 0);Og=function(){a.then(dda)}}else Og=function(){Lg(dda)}};
dda=function(){for(var a;a=cda.remove();){try{a.j.call(a.scope)}catch(b){fd(b)}hca(eda,a)}Pg=!1};
g.Sg=function(a){this.j=0;this.J=void 0;this.C=this.u=this.B=null;this.D=this.I=!1;if(a!=g.of)try{var b=this;a.call(void 0,function(c){Rg(b,2,c)},function(c){Rg(b,3,c)})}catch(c){Rg(this,3,c)}};
fda=function(){this.next=this.context=this.onRejected=this.u=this.j=null;this.B=!1};
Tg=function(a,b,c){var d=gda.get();d.u=a;d.onRejected=b;d.context=c;return d};
Ug=function(a){if(a instanceof g.Sg)return a;var b=new g.Sg(g.of);Rg(b,2,a);return b};
Vg=function(a){return new g.Sg(function(b,c){c(a)})};
g.ida=function(a,b,c){hda(a,b,c,null)||g.Qg(g.Ta(b,a))};
jda=function(a){return new g.Sg(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.ida(e,b,c)})};
Xg=function(a,b){b=Tg(b,b);b.B=!0;Wg(a,b);return a};
kda=function(a,b){if(0==a.j)if(a.B){var c=a.B;if(c.u){for(var d=0,e=null,f=null,h=c.u;h&&(h.B||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.j&&1==d?kda(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):lda(c),mda(c,e,3,b)))}a.B=null}else Rg(a,3,b)};
Wg=function(a,b){a.u||2!=a.j&&3!=a.j||nda(a);a.C?a.C.next=b:a.u=b;a.C=b};
oda=function(a,b,c,d){var e=Tg(null,null,null);e.j=new g.Sg(function(f,h){e.u=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.onRejected=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof Yg?h(l):f(m)}catch(n){h(n)}}:h});
e.j.B=a;Wg(a,e);return e.j};
Rg=function(a,b,c){0==a.j&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,hda(c,a.h1,a.j1,a)||(a.J=c,a.j=b,a.B=null,nda(a),3!=b||c instanceof Yg||pda(a,c)))};
hda=function(a,b,c,d){if(a instanceof g.Sg)return Wg(a,Tg(b||g.of,c||null,d)),!0;if(a)try{var e=!!a.$goog_Thenable}catch(h){e=!1}else e=!1;if(e)return a.then(b,c,d),!0;if(g.Pa(a))try{var f=a.then;if("function"===typeof f)return qda(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
qda=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
function h(m){l||(l=!0,c.call(e,m))}
var l=!1;try{b.call(a,h,f)}catch(m){f(m)}};
nda=function(a){a.I||(a.I=!0,g.Qg(a.VV,a))};
lda=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.C=null);return b};
mda=function(a,b,c,d){if(3==c&&b.onRejected&&!b.B)for(;a&&a.D;a=a.B)a.D=!1;if(b.j)b.j.B=null,rda(b,c,d);else try{b.B?b.u.call(b.context):rda(b,c,d)}catch(e){sda.call(null,e)}hca(gda,b)};
rda=function(a,b,c){2==b?a.u.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
pda=function(a,b){a.D=!0;g.Qg(function(){a.D&&sda.call(null,b)})};
Yg=function(a){Za.call(this,a)};
g.Zg=function(a,b){g.kf.call(this);this.ah=a||1;this.Qz=b||g.C;this.IM=(0,g.Sa)(this.T0,this);this.RO=g.Ua()};
g.$g=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.Sa)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.Sa)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.C.setTimeout(a,b||0)};
ah=function(a,b){var c=null;return(new g.Sg(function(d,e){c=g.$g(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).Li(function(d){g.C.clearTimeout(c);
throw d;})};
g.bh=function(a){this.J=a;this.j=new Map;this.I=new Set;this.B=0;this.C=100;this.flushInterval=3E4;this.u=new g.Zg(this.flushInterval);this.u.Ma("tick",this.yE,!1,this);this.D=!1};
tda=function(a){a.u.enabled||a.u.start();a.B++;a.B>=a.C&&a.yE()};
uda=function(a,b){return a.I.has(b)?void 0:a.j.get(b)};
vda=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
wda=function(a){this.j=a;this.j.GA("/client_streamz/po/w/rl",{Ch:3,Bh:"mn"},{Ch:2,Bh:"ac"},{Ch:2,Bh:"sc"},{Ch:3,Bh:"rk"})};
xda=function(a){this.j=a;this.j.GA("/client_streamz/po/w/el",{Ch:3,Bh:"en"},{Ch:3,Bh:"rk"})};
yda=function(a){this.j=a;this.j.Qo("/client_streamz/po/w/cec",{Ch:2,Bh:"ec"},{Ch:3,Bh:"rk"})};
g.ch=function(a){g.F.call(this,a,-1,zda)};
g.dh=function(a){g.F.call(this,a,-1,Ada)};
g.eh=function(a){g.F.call(this,a)};
g.fh=function(a){g.F.call(this,a)};
Cda=function(a){g.F.call(this,a,-1,Bda)};
g.Dda=function(a){var b=new g.ch;b=g.E(b,1,a.u);for(var c=[],d=0;d<a.j.length;d++)c.push(a.j[d].Bh);b=Oaa(b,3,c);c=[];d=[];for(var e=g.r(a.fu.keys()),f=e.next();!f.done;f=e.next())d.push(f.value.split(","));for(e=0;e<d.length;e++){f=d[e];var h=a.C;for(var l=a.yG(f)||[],m=[],n=0;n<l.length;n++){var p=l[n];p=p&&p.TM;var q=new g.fh;switch(h){case 3:g.td(q,1,g.gh,Number(p));break;case 2:g.td(q,2,g.gh,Number(p))}m.push(q)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new g.dh;m=wd(n,g.fh,2,m);n=f;p=[];q=a;for(var t=
[],u=0;u<q.j.length;u++)t.push(q.j[u].Ch);q=t;for(t=0;t<q.length;t++){u=q[t];var x=n[t],y=new g.eh;switch(u){case 3:g.td(y,1,g.hh,String(x));break;case 2:g.td(y,2,g.hh,Number(x));break;case 1:g.td(y,3,g.hh,"true"==x)}p.push(y)}zd(m,g.eh,1,p);c.push(m)}}zd(b,g.dh,4,c);return b};
Eda=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==
c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==c&&"app"!==c&&"devtools"!==c)throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
Fda=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(q){for(var t=h,u=0;64>u;u+=4)t[u/4]=q[u]<<24|q[u+1]<<16|q[u+2]<<8|q[u+3];for(u=16;80>u;u++)q=t[u-3]^t[u-8]^t[u-14]^t[u-16],t[u]=(q<<1|q>>>31)&4294967295;q=e[0];var x=e[1],y=e[2],z=e[3],D=e[4];for(u=0;80>u;u++){if(40>u)if(20>u){var H=z^x&(y^z);var G=1518500249}else H=x^y^z,G=1859775393;else 60>u?(H=x&y|z&(x|y),G=2400959708):(H=x^y^z,G=3395469782);H=((q<<5|q>>>27)&4294967295)+H+D+G+t[u]&4294967295;D=z;z=y;y=(x<<30|x>>>2)&4294967295;x=q;q=H}e[0]=e[0]+q&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+z&4294967295;e[4]=e[4]+D&4294967295}
function c(q,t){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var u=[],x=0,y=q.length;x<y;++x)u.push(q.charCodeAt(x));q=u}t||(t=q.length);u=0;if(0==n)for(;u+64<t;)b(q.slice(u,u+64)),u+=64,p+=64;for(;u<t;)if(f[n++]=q[u++],p++,64==n)for(n=0,b(f);u+64<t;)b(q.slice(u,u+64)),u+=64,p+=64}
function d(){var q=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var u=63;56<=u;u--)f[u]=t&255,t>>>=8;b(f);for(u=t=0;5>u;u++)for(var x=24;0<=x;x-=8)q[t++]=e[u]>>x&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,LV:function(){for(var q=d(),t="",u=0;u<q.length;u++)t+="0123456789ABCDEF".charAt(Math.floor(q[u]/16))+"0123456789ABCDEF".charAt(q[u]%16);return t}}};
Hda=function(a,b,c){var d=String(g.C.location.href);return d&&a&&b?[b,Gda(Eda(d),a,c||null)].join(" "):null};
Gda=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.qc(d,function(l){e.push(l)}),Ida(e.join(" "));
var f=[],h=[];g.qc(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.Yb(f)?[c,b,a]:[f.join(":"),c,b,a];g.qc(d,function(l){e.push(l)});
a=Ida(e.join(" "));a=[c,a];g.Yb(h)||a.push(h.join(""));return a.join("_")};
Ida=function(a){var b=Fda();b.update(a);return b.LV().toLowerCase()};
ih=function(a){this.j=a||{cookie:""}};
jh=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=qb(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
kh=function(a){return!!Jda.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
Kda=function(a){a=void 0===a?!1:a;var b=g.C.__SAPISID||g.C.__APISID||g.C.__3PSAPISID||g.C.__OVERRIDE_SID;kh(a)&&(b=b||g.C.__1PSAPISID);if(b)return!0;var c=new ih(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");kh(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};
Lda=function(a,b,c,d){(a=g.C[a])||(a=(new ih(document)).get(b));return a?Hda(a,c,d):null};
th=function(a,b){b=void 0===b?!1:b;var c=Eda(String(g.C.location.href)),d=[];if(Kda(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.C.__SAPISID:g.C.__APISID;e||(e=new ih(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Hda(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&kh(b)&&((b=Lda("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=Lda("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&
d.push(a))}return 0==d.length?null:d.join(" ")};
uh=function(a){g.F.call(this,a,-1,Mda)};
g.vh=function(a,b,c,d){this.C=a;this.D=b;this.j=this.B=a;this.I=c||0;this.J=d||2};
g.wh=function(a){a.j=Math.min(a.D,a.j*a.J);a.B=Math.min(a.D,a.j+(a.I?Math.round(a.I*(Math.random()-.5)*2*a.j):0));a.u++};
g.zh=function(a){var b=[];xh(new Nda,a,b);return b.join("")};
Nda=function(){};
xh=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),xh(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),Oda(d,c),c.push(":"),xh(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Oda(b,c);break;case "number":c.push(isFinite(b)&&
!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}};
Oda=function(a,b){b.push('"',a.replace(Pda,function(c){var d=Qda[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Qda[c]=d);return d}),'"')};
Rda=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};
Ah=function(){};
Bh=function(){};
Sda=function(a){if(!a.u&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.u=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.u};
Ch=function(a,b,c,d,e,f,h){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);h&&(l+="#"+h);return l};
Dh=function(a){return a?decodeURI(a):a};
g.Fh=function(a,b){return b.match(Eh)[a]||null};
g.Gh=function(a){return Dh(g.Fh(3,a))};
g.Tda=function(a){a=a.match(Eh);return Ch(a[1],a[2],a[3],a[4])};
Uda=function(a){a=a.match(Eh);return Ch(a[1],null,a[3],a[4])};
Vda=function(a){a=a.match(Eh);return Ch(null,null,null,null,a[5],a[6],a[7])};
Hh=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?gg(e):"")}}};
Wda=function(a){var b=a.indexOf("#");0>b&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.slice(0,c),d,a.slice(b)]};
Xda=function(a,b){return b?a?a+"&"+b:b:a};
Ih=function(a,b){if(!b)return a;a=Wda(a);a[1]=Xda(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
Jh=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Jh(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.fg(b)))};
Yda=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Jh(a[b],a[b+1],c);return c.join("&")};
g.Kh=function(a){var b=[],c;for(c in a)Jh(c,a[c],b);return b.join("&")};
Lh=function(a,b){var c=2==arguments.length?Yda(arguments[1],0):Yda(arguments,1);return Ih(a,c)};
g.Mh=function(a,b){b=g.Kh(b);return Ih(a,b)};
Nh=function(a,b,c){c=null!=c?"="+g.fg(c):"";return Ih(a,b+c)};
Zda=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1};
Oh=function(a,b){var c=a.search($da),d=Zda(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return gg(a.slice(d,-1!==e?e:0))};
Ph=function(a,b){for(var c=a.search($da),d=0,e,f=[];0<=(e=Zda(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(aea,"$1")};
bea=function(a,b,c){return Nh(Ph(a,b),b,c)};
cea=function(a,b){a=Wda(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]=Xda(d.join("&"),g.Kh(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
g.Qh=function(a){g.kf.call(this);this.headers=new Map;this.V=a||null;this.C=!1;this.ma=this.j=null;this.Y="";this.u=0;this.D="";this.I=this.Da=this.W=this.va=!1;this.N=0;this.oa=null;this.Ia="";this.Pa=this.J=!1};
eea=function(a,b,c,d,e,f,h){var l=new g.Qh;dea.push(l);b&&l.Ma("complete",b);l.lC("ready",l.vV);f&&(l.N=Math.max(0,f));h&&(l.J=h);l.send(a,c,d,e)};
fea=function(a){return g.Gc&&g.yc(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
hea=function(a,b){a.C=!1;a.j&&(a.I=!0,a.j.abort(),a.I=!1);a.D=b;a.u=5;gea(a);Rh(a)};
gea=function(a){a.va||(a.va=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
iea=function(a){if(a.C&&"undefined"!=typeof Sh)if(a.ma[1]&&4==g.Th(a)&&2==a.getStatus())a.getStatus();else if(a.W&&4==g.Th(a))g.$g(a.eQ,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(Uh(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2<g.Th(a)?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";gea(a)}}finally{Rh(a)}}};
Rh=function(a,b){if(a.j){jea(a);var c=a.j,d=a.ma[0]?function(){}:null;
a.j=null;a.ma=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
jea=function(a){a.j&&a.Pa&&(a.j.ontimeout=null);a.oa&&(g.C.clearTimeout(a.oa),a.oa=null)};
Uh=function(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=g.Fh(1,String(a.Y)),!a&&g.C.self&&g.C.self.location&&(a=g.C.self.location.protocol.slice(0,-1)),b=!kea.test(a?a.toLowerCase():"");c=b}return c};
g.Th=function(a){return a.j?a.j.readyState:0};
g.Vh=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.Wh=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Ia){case "":case "text":return a.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.j)return a.j.mozResponseArrayBuffer}return null}catch(b){return null}};
lea=function(a){var b={};a=(a.j&&2<=g.Th(a)?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.lb(a[c])){var d=Qca(a[c]),e=d[0];d=d[1];if("string"===typeof d){d=d.trim();var f=b[e]||[];b[e]=f;f.push(d)}}return Ke(b,function(h){return h.join(", ")})};
g.Xh=function(a,b){return a.j?a.j.getResponseHeader(b):null};
Yh=function(a){g.F.call(this,a)};
Zh=function(a){g.F.call(this,a,-1,mea)};
di=function(a){g.F.call(this,a)};
ei=function(a){g.F.call(this,a,31,nea)};
pea=function(a){g.F.call(this,a,17,oea)};
rea=function(a){g.F.call(this,a,6,qea)};
sea=function(a){g.F.call(this,a)};
gi=function(a,b,c,d,e,f,h,l,m,n,p){g.kf.call(this);var q=this;this.W="";this.u=[];this.bb="";this.eb=this.Da=-1;this.Sa=!1;this.N=this.C=null;this.J=0;this.Ib=1;this.timeoutMillis=0;this.va=!1;g.kf.call(this);this.Ta=b||function(){};
this.I=new tea(a,f);this.kb=d;this.Pa=p;this.Kb=g.Ta(Mca,0,1);this.oa=e||null;this.V=c||null;this.ma=h||!1;this.pageId=m||null;this.logger=null;this.withCredentials=!l;this.Ia=f||!1;!this.Ia&&(65<=Jb("Chromium")||45<=Jb("Firefox")||12<=Jb("Safari")||Nb()&&g.sb(Qb(),12));a=g.E(new di,1,1);fi(this.I,a);this.D=new g.vh(1E4,3E5,.1);this.j=new g.Zg(this.D.getValue());g.J(this,this.j);n=uea(this,n);g.cf(this.j,"tick",n,!1,this);this.Y=new g.Zg(6E5);g.J(this,this.Y);g.cf(this.Y,"tick",n,!1,this);this.ma||
this.Y.start();this.Ia||(g.cf(document,"visibilitychange",function(){"hidden"===document.visibilityState&&q.sG()}),g.cf(document,"pagehide",this.sG,!1,this))};
uea=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};
vea=function(a){a.oa||(a.oa=.01>a.Kb()?"https://web.archive.org/web/20220603021303/https://www.google.com/log?format=json&hasfast=true":"https://web.archive.org/web/20220603021303/https://play.google.com/log?format=json&hasfast=true");return a.oa};
wea=function(a,b){a.D=new g.vh(1>b?1:b,3E5,.1);a.j.setInterval(a.D.getValue())};
yea=function(a){xea(a,function(b,c){b=Nh(b,"format","json");b=vg().navigator.sendBeacon(b,Fd(c));a.va&&!b&&(a.va=!1);return b})};
xea=function(a,b){if(0!==a.u.length){var c=Ph(vea(a),"format");c=Lh(c,"auth",a.Ta(),"authuser",a.V||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=a.I.Pe(e,a.J);if(!b(c,f))break;a.J=0;a.u=a.u.slice(e.length)}a.j.enabled&&a.j.stop()}};
zea=function(){g.Ce.call(this,"event-logged",void 0)};
tea=function(a,b){this.B=b=void 0===b?!1:b;this.u=this.locale=null;this.j=new pea;g.E(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));fi(this,new di)};
fi=function(a,b){wd(a.j,di,1,b);g.kd(b,1)||g.E(b,1,1);a.B||(b=hi(a),g.kd(b,5)||g.E(b,5,a.locale));a.u&&(b=hi(a),ud(b,Zh,9)||wd(b,Zh,9,a.u))};
Bea=function(a,b){var c=void 0===c?Aea:c;b(vg(),c).then(function(d){a.u=d;d=hi(a);wd(d,Zh,9,a.u);return!0}).catch(function(){return!1})};
hi=function(a){a=ud(a.j,di,1);var b=ud(a,Yh,11);b||(b=new Yh,wd(a,Yh,11,b));return b};
Cea=function(a,b,c){eea(a.url,function(d){d=d.target;Uh(d)?b(g.Vh(d)):c(d.getStatus())},a.requestType,a.body,a.Hs,a.timeoutMillis,a.withCredentials)};
Dea=function(a){this.I=a;this.B="https://web.archive.org/web/20220603021303/https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.J=Cea;this.j=""};
ii=function(a,b,c,d,e){c=void 0===c?"":c;d=void 0===d?!1:d;e=void 0===e?"":e;a=new Dea(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.Pe()};
Eea=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}};
ji=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};
ki=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()};
li=function(a,b){this.logger=a;this.j=b;this.startMillis=ki()};
mi=function(){};
ni=function(a){this.Qg=a;this.transport=new ii(1654,"","",!1,"2");this.j=new g.bh(this.transport);this.clientError=new yda(this.j);this.u=new xda(this.j);this.B=new wda(this.j)};
Fea=function(a){this.j=a;this.j.GA("/client_streamz/bg/fil",{Ch:3,Bh:"rk"})};
Gea=function(a){this.j=a;this.j.Qo("/client_streamz/bg/fsc",{Ch:3,Bh:"rk"})};
Hea=function(a){this.j=a;this.j.GA("/client_streamz/bg/fsl",{Ch:3,Bh:"rk"})};
Iea=function(){this.D=oi();this.transport=new ii(1828);this.j=new g.bh(this.transport);this.C=new Fea(this.j);this.u=new Gea(this.j);this.B=new Hea(this.j);this.Qg=window.document.location.hostname};
oi=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()};
Jea=function(a){g.F.call(this,a)};
Kea=function(a){g.F.call(this,a)};
pi=function(a){g.F.call(this,a)};
g.qi=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
ri=function(a){var b=this;this.j=!1;if(a.Hka){var c;this.gr=null!=(c=a.gr)?c:new Iea}a.challenge instanceof pi?(c=nd(a.challenge,4,""),a=nd(a.challenge,5,"")):(c=a.program,a=a.globalName);var d=new g.qi;this.u=d.promise;this.B=g.r((0,g.C[a].a)(c,function(e,f){Promise.resolve().then(function(){var h;null!=(h=b.gr)&&h.C.Og(oi()-h.D,h.Qg);d.resolve({lV:e,D0:f})})},!0)).next().value;
this.B0=d.promise.then(function(){})};
Lea=function(a){g.yf("From proto message. b/12014412");return g.Bf(g.kd(a,4)||"")};
si=function(a){this.isValid=a};
ti=function(a){return new si(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
Nea=function(a,b){b=void 0===b?Mea:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof si&&d.isValid(a))return new g.Df(a,Cf)}};
Oea=function(a){var b,c,d=null==(c=(b=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:c.call(b,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};
g.ui=function(a,b){a.src=pca(b);Oea(a)};
Pea=function(a,b){return a.parseFromString(g.Qf(b),"text/xml")};
vi=function(){this.j={};this.u=null};
Qea=function(){vi.j||(vi.j=new vi);return vi.j};
Sea=function(a){var b=Qea();return Rea(b,ud(a,Jea,1),ud(a,Kea,2),nd(a,3,""))};
Rea=function(a,b,c,d){var e;if(!b&&!c)return Promise.resolve();if(!d)return Tea(b,c);(e=a.j)[d]||(e[d]=new Promise(function(f,h){Tea(b,c).then(function(){a.u=d;f()},function(l){delete a.j[d];
h(l)})}));
return a.j[d]};
Tea=function(a,b){return b?Uea(b):a?Vea(a):Promise.resolve()};
Uea=function(a){return new Promise(function(b,c){var d=g.zg("SCRIPT"),e=Lea(a);g.ui(d,e);d.onload=function(){g.Dg(d);b()};
d.onerror=function(){g.Dg(d);c(Error("EWLS"))};
(g.og("HEAD")[0]||document.documentElement).appendChild(d)})};
Vea=function(a){return new Promise(function(b){var c=g.zg("SCRIPT");if(a){var d=g.kd(a,6);d=null===d||void 0===d?null:nca(d)}else d=null;c.textContent=d instanceof zf&&d.constructor===zf?d.j:"type_error:SafeScript";Oea(c);(g.og("HEAD")[0]||document.documentElement).appendChild(c);g.Dg(c);b()})};
wi=function(a){g.F.call(this,a)};
xi=function(a){g.F.call(this,a)};
yi=function(a){g.F.call(this,a)};
Wea=function(a,b,c){this.client=a;this.Qg=b;this.j=c};
Xea=function(a){var b=Qea().u,c,d,e,f,h;return g.B(function(l){if(1==l.j)return c=new wi,qd(c,1,a.Qg,""),b&&qd(c,2,b,""),d=a.j(),g.A(l,a.client.create(c,d),2);e=l.u;f=Rc(od(e,2));if(f.length){var m=l.return;var n=new Uint8Array(f.length);for(var p=0;p<f.length;p++)n[p]=f[p]+97;if(g.C.TextDecoder)n=(new TextDecoder).decode(n);else if(8192>=n.length)n=String.fromCharCode.apply(null,n);else{p="";for(var q=0;q<n.length;q+=8192)p+=String.fromCharCode.apply(null,Array.prototype.slice.call(n,q,q+8192));
n=p}n=Gd(pi,n);return m.call(l,n)}h=ud(e,pi,1);if(!h)throw Error("Missing field");return l.return(h)})};
Zea=function(a,b){var c,d;return g.B(function(e){c=a.j();var f=new xi;f=qd(f,1,a.Qg,"");d=qd(f,2,b,"");f=e.return;var h=zi(a.client.j,"https://web.archive.org/web/20220603021303/https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},Yea);return f.call(e,h)})};
$ea=function(a){this.j=a};
Ai=function(a){g.F.call(this,a)};
Bi=function(a,b,c){this.j=a;this.B=b;this.u=c};
Ci=function(a,b,c){c=void 0===c?{}:c;this.q0=a;this.j=c;this.u=b};
Di=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.u=e};
afa=function(a,b,c){c=void 0===c?{}:c;return new Bi(b,a,c)};
Ei=function(a){g.F.call(this,a)};
Fi=function(a){g.F.call(this,a)};
Gi=function(a){g.F.call(this,a)};
Hi=function(a){g.F.call(this,a,-1,bfa)};
Ii=function(a,b){this.J=a.MX;this.N=b;this.j=a.xhr;this.B=[];this.D=[];this.I=[];this.C=[];this.u=[];this.J&&cfa(this)};
ffa=function(a,b){g.cf(a.j,"complete",function(){if(Uh(a.j)){var c=g.Vh(a.j);if(b&&"text/plain"===a.j.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.N(c)}catch(f){Ji(a,new ji(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=Eea(a.j.getStatus());Ki(a,Li(a));0==c?dfa(a,d):Ji(a,new ji(c,"Xhr succeeded but the status code is not 200"))}else{d=g.Vh(a.j);var e={};d?(e=efa(a,d),d=e.code,c=e.details,e=e.metadata):
(d=2,c="Rpc failed due to xhr error. error code: "+a.j.u+", error: "+a.j.getLastError());Ki(a,Li(a));Ji(a,new ji(d,c,e))}})};
cfa=function(a){a.J.Vn("data",function(b){if("1"in b){var c=b["1"];try{var d=a.N(c)}catch(e){Ji(a,new ji(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&dfa(a,d)}if("2"in b)for(b=efa(a,b["2"]),c=0;c<a.I.length;c++)a.I[c](b)});
a.J.Vn("end",function(){Ki(a,Li(a));for(var b=0;b<a.C.length;b++)a.C[b]()});
a.J.Vn("error",function(){if(0!=a.u.length){var b=a.j.u;0!==b||Uh(a.j)||(b=6);var c=-1;switch(b){case 0:var d=2;break;case 7:d=10;break;case 8:d=4;break;case 6:c=a.j.getStatus();d=Eea(c);break;default:d=14}Ki(a,Li(a));b=Rda(b)+", error: "+a.j.getLastError();-1!=c&&(b+=", http status code: "+c);Ji(a,new ji(d,b))}})};
Li=function(a){var b={},c=lea(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
efa=function(a,b){var c=2,d={};try{var e=Gd(Hi,b);c=Bd(e,1);var f=e.getMessage();vd(e,Gi,3).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.Y)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
Mi=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
dfa=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
Ki=function(a,b){for(var c=0;c<a.D.length;c++)a.D[c](b)};
Ji=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
g.Ni=function(a){this.I=a.G1||null;this.D=a.vR||!1;this.u=void 0};
Oi=function(a,b){g.kf.call(this);this.oa=a;this.J=b;this.I=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.V=new Headers;this.u=null;this.Y="GET";this.W="";this.j=!1;this.N=this.C=this.D=null};
gfa=function(a){a.C.read().then(a.pW.bind(a)).catch(a.RB.bind(a))};
Qi=function(a){a.readyState=4;a.D=null;a.C=null;a.N=null;Pi(a)};
Pi=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
hfa=function(a){if(a.Cj&&"function"==typeof a.Cj)return a.Cj();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(g.Oa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ne(a)};
ifa=function(a){if(a.Cn&&"function"==typeof a.Cn)return a.Cn();if(!a.Cj||"function"!=typeof a.Cj){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(g.Oa(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.Oe(a)}}};
g.Ri=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(g.Oa(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,c);else for(var d=ifa(a),e=hfa(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)};
g.Si=function(a){this.j=this.N=this.C="";this.B=null;this.D=this.J="";this.I=!1;var b;a instanceof g.Si?(this.I=a.I,g.Ti(this,a.C),this.N=a.N,g.Ui(this,a.j),g.Vi(this,a.B),this.J=a.getPath(),Wi(this,a.u.clone()),this.D=a.D):a&&(b=String(a).match(Eh))?(this.I=!1,g.Ti(this,b[1]||"",!0),this.N=Xi(b[2]||""),g.Ui(this,b[3]||"",!0),g.Vi(this,b[4]),this.J=Xi(b[5]||"",!0),Wi(this,b[6]||"",!0),this.D=Xi(b[7]||"")):(this.I=!1,this.u=new Yi(null,this.I))};
g.Ti=function(a,b,c){a.C=c?Xi(b,!0):b;a.C&&(a.C=a.C.replace(/:$/,""))};
g.Ui=function(a,b,c){a.j=c?Xi(b,!0):b};
g.Vi=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.B=b}else a.B=null};
Wi=function(a,b,c){b instanceof Yi?(a.u=b,jfa(a.u,a.I)):(c||(b=Zi(b,kfa)),a.u=new Yi(b,a.I))};
g.$i=function(a,b,c){a.u.set(b,c)};
g.aj=function(a){return a instanceof g.Si?a.clone():new g.Si(a)};
Xi=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Zi=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,lfa),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
lfa=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Yi=function(a,b){this.u=this.j=null;this.B=a||null;this.C=!!b};
bj=function(a){a.j||(a.j=new Map,a.u=0,a.B&&Hh(a.B,function(b,c){a.add(gg(b),c)}))};
mfa=function(a,b){bj(a);b=cj(a,b);return a.j.has(b)};
g.nfa=function(a,b,c){a.remove(b);0<c.length&&(a.B=null,a.j.set(cj(a,b),g.ec(c)),a.u=a.u+c.length)};
cj=function(a,b){b=String(b);a.C&&(b=b.toLowerCase());return b};
jfa=function(a,b){b&&!a.C&&(bj(a),a.B=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.nfa(this,e,c))},a));
a.C=b};
g.ofa=function(a){var b="";g.Ie(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.dj=function(a,b,c){if(g.Se(c))return a;c=g.ofa(c);if("string"===typeof a)return Nh(a,g.fg(b),c);g.$i(a,b,c);return a};
g.ej=function(a){g.I.call(this);this.u=a;this.j={}};
pfa=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)pfa(a,b,c[h],d,e,f);else{b=bf(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.j[b.key]=b}return a};
g.fj=function(a){g.Ie(a.j,function(b,c){this.j.hasOwnProperty(c)&&gf(b)},a);
a.j={}};
qfa=function(){this.B=!0;this.u=0;this.j=""};
rfa=function(a,b,c){a.B=!1;throw Error("The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b);};
gj=function(){this.I=null;this.J=[];this.C=this.u=this.B=this.j=this.V=0;this.D=null;this.N=0};
hj=function(a,b,c,d){a.j=3;a.I="The stream is broken @"+a.V+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.I);};
pj=function(){this.j=null;this.u=0;this.B=new qfa;this.C=new gj};
sfa=function(a,b,c){a.j="The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
qj=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
rj=function(a){this.V=null;this.I=[];this.C="";this.Y=[];this.B=this.u=0;this.J=!1;this.N=0;this.oa=/[\\"]/g;this.j=this.D=0;this.W=!(!a||!a.KV)};
sj=function(a,b,c){a.D=3;a.V="The stream is broken @"+a.B+"/"+c+". With input:\n"+b;throw Error(a.V);};
tj=function(){this.D=this.B=null;this.u=this.j=0;this.C=[];this.I=!1};
tfa=function(a){var b=g.Xh(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new tj:new rj:b.startsWith("application/x-protobuf")?(a=g.Xh(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new pj:null:new gj:null};
uj=function(a){this.j=a;this.u=null;this.C=this.B=0;this.V=!1;this.D=this.J=this.I=null;this.N=new g.ej(this);this.N.Ma(this.j,"readystatechange",this.W)};
vj=function(a,b){a.C!=b&&(a.C=b,a.J&&a.J())};
wj=function(a){g.fj(a.N);if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
ufa=function(a){this.B=a;a=(0,g.Sa)(this.EY,this);this.B.D=a;a=(0,g.Sa)(this.n_,this);this.B.J=a;this.u={};this.j={}};
vfa=function(a,b){for(var c={},d=0;d<a.length;c={WD:c.WD},d++)c.WD=a[d],b.forEach(function(e){return function(f){try{f(e.WD)}catch(h){}}}(c))};
xj=function(a,b){var c=a.u[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.j[b])&&c.forEach(function(d){d()});
a.j[b]=[]};
wfa=function(){var a={format:"jspb"};a=void 0===a?{}:a;this.D=a.Tka||g.La("suppressCorsPreflight",a)||!1;this.u=a.withCredentials||g.La("withCredentials",a)||!1;this.C=a.Ska||[];this.I=a.Uka||[];this.j=a.Xka;this.B=a.Vka||!1};
zi=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return xfa(function(h){return new yfa(function(l,m){var n={},p=zfa(a,h,f);p.Vn("error",function(q){return m(q)});
p.Vn("metadata",function(q){n=q});
p.Vn("data",function(q){var t=n;t=void 0===t?{}:t;l(new Ci(q,h.EB(),t))})})},a.I).call(a,afa(e,c,d)).then(function(h){return h.q0})};
zfa=function(a,b,c){var d=b.EB(),e=b.getMetadata(),f=Afa(a,!0);a=Bfa(a,e,f,c+d.getName());c=Cfa(f,d.u,!1);ffa(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
Afa=function(a,b){b=a.B&&!b;return a.j||b?new g.Qh(new g.Ni({G1:a.j,vR:b})):new g.Qh};
Bfa=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.u)c.J=!0;if(a.D)d=g.dj(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
Cfa=function(a,b,c){if(c)if(a.isActive(),!g.Gc||g.zc(10)){c=new uj(a);var d=new ufa(c)}else d=null;return new Ii({xhr:a,MX:d},b)};
xfa=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
yj=function(){this.j=new wfa};
Aj=function(a){function b(){c-=d;c-=e;c^=e>>>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=Dfa(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=zj(a,l),d+=zj(a,l+4),e+=zj(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 Efa.toString(e)};
Dfa=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
zj=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
Ffa=function(a){var b=new yj,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new Wea(b,a,function(){return c})};
Gfa=function(a){var b=Ffa(a.Qg);return new Cj(Object.assign({},{pB:b},a))};
Dj=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=a;if(b instanceof Error){this.message=b.message;var d;this.stack=null!=(d=b.stack)?d:""}else this.message=String(b),this.stack="";Object.setPrototypeOf(this,Dj.prototype)};
Ej=function(){g.I.apply(this,arguments);this.B=new g.qi};
Hfa=function(a,b){Fj(b).then(function(){a.B.resolve()})};
Gj=function(a,b,c,d,e){Ej.call(this);this.logger=a;this.C=c;this.I=d;this.u="m";this.D=0;g.J(this,b);Hfa(this,e);this.j=new ve};
Hj=function(a,b){Ej.call(this);this.j=a;this.u="f";Hfa(this,b)};
Ij=function(a){Ej.call(this);this.u="e";if(a instanceof Dj){var b=a.code+":"+a.message+":"+a.stack;a=a.code+":_"+Aj(a.message)+":_"+Aj(a.stack)}else b=a.message+":"+a.stack,a="_"+Aj(a.message)+":_"+Aj(a.stack||"");this.j=new Uint8Array(g.gb(("WE:"+b).substring(0,2048)));this.C=new Uint8Array(g.gb(("WE:"+a).substring(0,2048)))};
Fj=function(a){return new Promise(function(b){return void setTimeout(b,a)})};
Jj=function(a,b){return Promise.race([a,Fj(12E4).then(b)])};
Cj=function(a){this.j=void 0;this.u=new g.qi;this.pB=a.pB;this.PP=a.PP;this.onError=a.onError;this.logger=a.Ika?new mi:new ni(a.Qg);var b=new li(this.logger,"r");this.ready().finally(function(){return void b.done()});
Ifa(this)};
Jfa=function(a,b,c){var d=window.webpocb;if(!d)throw new Dj(4,Error("PMD:Undefined"));d=d(Rc(od(b,1)));return new Gj(a.logger,c,d,Bd(b,3),1E3*Bd(b,2))};
Kfa=function(a){var b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,z;return g.B(function(D){switch(D.j){case 1:b=void 0,c=a.j?6E4:1E3,d=new g.vh(c,6E5,.25,2),e=1;case 2:if(!(2>=e)){D.Ra(4);break}g.wa(D,5);return g.A(D,Jj(a.logger.KH("c",e,Xea(a.pB)),function(){return Promise.reject(new Dj(10,"JVZ:Timeout"))}),7);
case 7:return f=D.u,h=new li(a.logger,"b"),g.A(D,Sea(f),8);case 8:return l=new ri({challenge:f}),g.A(D,Jj(l.snapshot({}),function(){return Promise.reject(new Dj(15,"MDA:Timeout"))}),9);
case 9:return m=D.u,h.done(),g.A(D,Jj(a.logger.KH("g",e,Zea(a.pB,m)),function(){return Promise.reject(new Dj(10,"BWB:Timeout"))}),10);
case 10:n=D.u;p=new li(a.logger,"i");if(Bd(n,3))var H=Jfa(a,n,l);else l.dispose(),H=new Hj(Rc(od(n,1)),1E3*Bd(n,2));q=H;p.done();u=t=void 0;null==(u=(t=a).PP)||u.call(t,Rc(od(n,1)));return D.return(q);case 5:x=g.ya(D);b=x instanceof Dj?x:x instanceof ji?new Dj(11,x):new Dj(12,x);a.logger.Dy(b.code);z=y=void 0;null==(z=(y=a).onError)||z.call(y,b);a:{if(x instanceof ji)switch(x.code){case 2:case 13:case 14:case 4:break;default:H=!1;break a}H=!0}if(!H)throw b;return g.A(D,Fj(d.getValue()),11);case 11:g.wh(d);
case 3:e++;D.Ra(2);break;case 4:throw b;}})};
Ifa=function(a){var b,c,d,e;g.B(function(f){switch(f.j){case 1:return b=void 0,g.wa(f,4),g.A(f,Kfa(a),6);case 6:b=f.u;g.xa(f,5);break;case 4:if(c=g.ya(f),d=c instanceof Error?c:Error(String(c)),a.j){a.logger.Dy(13);f.Ra(0);break}else a.logger.Dy(14),b=new Ij(d);case 5:return e=void 0,null==(e=a.j)||e.dispose(),a.j=b,a.u.resolve(),g.A(f,a.j.B.promise,1)}})};
Lfa=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}};
Mfa=function(a,b,c,d){var e=window,f="//web.archive.org/web/20220603021303/https://pagead2.googlesyndication.com/bg/"+g.hg(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=ng(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=sca(g.yf("//web.archive.org/web/20220603021303/https://tpc.googlesyndication.com/sodar/%{path}"),{path:g.hg(a)+".js"});g.ui(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
Nfa=function(a){var b={};g.qc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c});
vaa(a,function(c){return null===b[c.event]})};
Kj=function(){this.Dd=0;this.j=!1;this.u=-1;this.Lr=!1;this.Ki=0};
Lj=function(){this.kd=null;this.j=!1};
Mj=function(a){Lj.call(this);this.u=a};
Nj=function(){Lj.call(this)};
Oj=function(){Lj.call(this)};
Pj=function(){this.j={};this.u=!0;this.B={}};
Qj=function(a,b,c){a.j[b]||(a.j[b]=new Mj(c));return a.j[b]};
Ofa=function(a){a.j.queryid||(a.j.queryid=new Oj)};
Rj=function(a,b,c){(a=a.j[b])&&a.setValue(c)};
Sj=function(a,b){if(g.Pe(a.B,b))return a.B[b];if(a=a.j[b])return a.getValue()};
Tj=function(a){var b={},c=g.Je(a.j,function(d){return d.j});
g.Ie(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.j&&null!==d.kd?String(d.kd):"";0<d.length&&(b[e]=d)},a);
return b};
Pfa=function(a){a=Tj(a);var b=[];g.Ie(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
Rfa=function(a){Qj(a,"od",Qfa);Qj(a,"opac",Uj).j=!0;Qj(a,"sbeos",Uj).j=!0;Qj(a,"prf",Uj).j=!0;Qj(a,"mwt",Uj).j=!0;Qj(a,"iogeo",Uj)};
Sfa=function(){this.j=this.Pp=null};
Vj=function(){};
Xj=function(){if(!Wj())throw Error();};
Wj=function(){return!(!Yj||!Yj.performance)};
Zj=function(a){return a?a.passive&&Tfa()?a:a.capture||!1:!1};
ak=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Zj(d)),!0):!1};
bk=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
Ufa=function(){};
Vfa=function(){return wb?wb.mobile:!ck()&&(yb("iPod")||yb("iPhone")||yb("Android")||yb("IEMobile"))};
ck=function(){return wb?!wb.mobile&&(yb("iPad")||yb("Android")||yb("Silk")):yb("iPad")||yb("Android")&&!yb("Mobile")||yb("Silk")};
dk=function(a){try{return!!a&&null!=a.location.href&&uc(a,"foo")}catch(b){return!1}};
ek=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
Xfa=function(){var a=[];ek(Wfa,function(b){a.push(b)});
return a};
Zfa=function(a){return(a=Yfa.exec(a))&&a[0]||""};
cga=function(){var a=$fa("IFRAME"),b={};g.qc(aga(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
$fa=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
dga=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,dk(a)&&(b=a);return b};
hga=function(a){a=a||fk();for(var b=new ega(g.C.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&fga.test(f.url)&&(c=f);if(f.url&&!f.uH){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new gga(b,e,c)};
fk=function(){var a=g.C,b=[],c=null;do{var d=a;if(dk(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new ega(e||""));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.C;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)e=b[a],e.url||(e.url=d.location.ancestorOrigins[a-1]||"",e.uH=!0);return b};
gga=function(a,b,c){this.j=a;this.u=b;this.B=c};
ega=function(a,b){this.url=a;this.uH=!!b;this.depth=null};
gk=function(){this.B="&";this.u={};this.C=0;this.j=[]};
hk=function(a,b){var c={};c[a]=b;return[c]};
iga=function(a,b,c,d,e){var f=[];ek(a,function(h,l){(h=ik(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
ik=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],h=0;h<a.length;h++)f.push(ik(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(iga(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
kga=function(a,b,c){b=b+"//web.archive.org/web/20220603021303/https://pagead2.googlesyndication.com"+c;var d=jga(a)-c.length;if(0>d)return"";a.j.sort(function(p,q){return p-q});
c=null;for(var e="",f=0;f<a.j.length;f++)for(var h=a.j[f],l=a.u[h],m=0;m<l.length;m++){if(!d){c=null==c?h:c;break}var n=iga(l[m],a.B,",$");if(n){n=e+n;if(d>=n.length){d-=n.length;b+=n;e=a.B;break}c=null==c?h:c}}a="";null!=c&&(a=e+"trn="+c);return b+a};
jga=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};
jk=function(a,b){this.j=a;this.depth=b};
mga=function(){function a(l,m){return null==l?m:l}
var b=fk(),c=Math.max(b.length-1,0),d=hga(b);b=d.j;var e=d.u,f=d.B,h=[];f&&h.push(new jk([f.url,f.uH?2:0],a(f.depth,1)));e&&e!=f&&h.push(new jk([e.url,2],0));b.url&&b!=f&&h.push(new jk([b.url,0],a(b.depth,c)));d=g.kk(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=Zfa(b.url))&&d.push([new jk([e,1],a(b.depth,c))]);d.push([]);return g.kk(d,function(l){return lga(c,l)})};
lga=function(a,b){g.lk(b,function(e){return 0<=e.depth});
var c=mk(b,function(e,f){return Math.max(e,f.depth)},-1),d=zaa(c+2);
d[0]=a;g.qc(b,function(e){return d[e.depth+1]=e.j});
return d};
nga=function(){var a=mga();return g.kk(a,function(b){return ik(b)})};
oga=function(a){Yj.google_image_requests||(Yj.google_image_requests=[]);var b=$fa("IMG",Yj.document);b.src=a;Yj.google_image_requests.push(b)};
nk=function(a){var b="If";if(a.If&&a.hasOwnProperty(b))return a.If;var c=new a;a.If=c;a.hasOwnProperty(b);return c};
ok=function(){this.u=new Ufa;this.j=Wj()?new Xj:new Vj};
pga=function(){pk();var a=Yj.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Yj.setInterval&&"function"===typeof Yj.clearInterval&&"function"===typeof Yj.setTimeout&&"function"===typeof Yj.clearTimeout)};
qga=function(){pk();return nga()};
rga=function(){};
pk=function(){return nk(rga).getContext()};
qk=function(a){g.F.call(this,a)};
sga=function(a){this.B=a;this.j=-1;this.u=this.C=0};
rk=function(a,b){return function(){var c=g.Ea.apply(0,arguments);if(-1<a.j)return b.apply(null,g.v(c));try{return a.j=a.B.j.now(),b.apply(null,g.v(c))}finally{a.C+=a.B.j.now()-a.j,a.j=-1,a.u+=1}}};
tga=function(a,b){this.u=a;this.B=b;this.j=new sga(a)};
uga=function(){};
zga=function(){this.B=void 0;this.u=this.I=0;this.D=-1;this.featureSet=new Pj;Qj(this.featureSet,"mv",vga).j=!0;Qj(this.featureSet,"omid",Uj);Qj(this.featureSet,"epoh",Uj).j=!0;Qj(this.featureSet,"epph",Uj).j=!0;Qj(this.featureSet,"umt",Uj).j=!0;Qj(this.featureSet,"phel",Uj).j=!0;Qj(this.featureSet,"phell",Uj).j=!0;Qj(this.featureSet,"oseid",wga).j=!0;var a=this.featureSet;a.j.sloi||(a.j.sloi=new Nj);a.j.sloi.j=!0;Qj(this.featureSet,"mm",xga);Qj(this.featureSet,"ovms",yga).j=!0;Qj(this.featureSet,
"xdi",Uj).j=!0;Qj(this.featureSet,"amp",Uj).j=!0;Qj(this.featureSet,"prf",Uj).j=!0;Qj(this.featureSet,"gtx",Uj).j=!0;Qj(this.featureSet,"mvp_lv",Uj).j=!0;Qj(this.featureSet,"ssmol",Uj).j=!0;this.j=new tga(pk(),this.featureSet);this.C=!1;this.flags=new uga};
sk=function(){return nk(zga)};
tk=function(a,b,c,d,e){if((d?a.B:Math.random())<(e||a.j))try{if(c instanceof gk)var f=c;else f=new gk,ek(c,function(l,m){var n=f,p=n.C++;l=hk(m,l);n.j.push(p);n.u[p]=l});
var h=kga(f,a.u,"/pagead/gen_204?id="+b+"&");h&&(pk(),oga(h))}catch(l){}};
Aga=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};
Bga=function(){var a=void 0===a?g.C:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Ua()};
Cga=function(){var a=void 0===a?g.C:a;return(a=a.performance)&&a.now?a.now():null};
Dga=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.taskId=this.slotId=void 0};
vk=function(){var a=window;this.events=[];this.u=a||g.C;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.j=uk()||(null!=b?b:1>Math.random())};
Ega=function(a){a&&wk&&uk()&&(wk.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),wk.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Fga=function(){var a=xk;this.j=yk;this.wN="jserror";this.CJ=!0;this.uF=null;this.u=this.MH;this.pc=void 0===a?null:a};
Gga=function(a,b,c){var d=zk;return rk(sk().j.j,function(){try{if(d.pc&&d.pc.j){var e=d.pc.start(a.toString(),3);var f=b();d.pc.end(e)}else f=b()}catch(l){var h=d.CJ;try{Ega(e),h=d.u(a,new Ak(Bk(l)),void 0,c)}catch(m){d.MH(217,m)}if(!h)throw l;}return f})()};
Hk=function(a,b,c,d){return rk(sk().j.j,function(){var e=g.Ea.apply(0,arguments);return Gga(a,function(){return b.apply(c,e)},d)})};
Bk=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};
Ak=function(a){Aga.call(this,Error(a),{message:a})};
Hga=function(){Yj&&"undefined"!=typeof Yj.google_measure_js_timing&&(Yj.google_measure_js_timing||xk.disable())};
Iga=function(a){zk.uF=function(b){g.qc(a,function(c){c(b)})}};
Jga=function(a,b){return Gga(a,b)};
Ik=function(a,b){return Hk(a,b)};
Jk=function(a,b,c,d){zk.MH(a,b,c,d)};
Kk=function(){return Date.now()-Kga};
Lga=function(){var a=sk().B,b=0<=Lk?Kk()-Lk:-1,c=Mk?Kk()-Pk:-1,d=0<=Qk?Kk()-Qk:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Jk(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h};
Rk=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
Sk=function(a){return a.right-a.left};
Tk=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};
Uk=function(a,b,c){b instanceof g.ag?(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};
Vk=function(a,b,c){var d=new Rk(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.j=d;this.u=c};
Wk=function(a,b,c,d,e,f,h,l){this.C=a;this.N=b;this.B=c;this.I=d;this.j=e;this.D=f;this.u=h;this.J=l};
Nga=function(a){var b=a!==a.top,c=a.top===dga(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),Vba(Mga,function(h){return"function"===typeof f[h]})||(e=1));
return{Rk:f,compatibility:e,F0:d}};
Oga=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
Pga=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.cg(b.innerWidth,b.innerHeight)).round():Uca(b||window).round()}catch(d){return new g.cg(-12245933,-12245933)}};
Xk=function(a,b,c){try{a&&(b=b.top);var d=Pga(a,b,void 0===c?!1:c),e=Wca(ng(b.document).j);if(-12245933==d.width){var f=d.width;var h=new Rk(f,f,f,f)}else h=new Rk(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new Rk(-12245933,-12245933,-12245933,-12245933)}};
g.Yk=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
Zk=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.al=function(a,b,c){if("string"===typeof b)(b=$k(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=$k(c,d);f&&(c.style[f]=e)}};
$k=function(a,b){var c=Qga[b];if(!c){var d=Nca(b);c=d;void 0===a.style[d]&&(d=(g.Ee?"Webkit":bl?"Moz":g.Gc?"ms":null)+Pca(d),void 0!==a.style[d]&&(c=d));Qga[b]=c}return c};
g.cl=function(a,b){var c=a.style[Nca(b)];return"undefined"!==typeof c?c:a.style[$k(a,b)]||""};
dl=function(a,b){var c=mg(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
el=function(a,b){return dl(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.gl=function(a,b,c){if(b instanceof g.ag){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.fl(d,!1);a.style.top=g.fl(b,!1)};
hl=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
Rga=function(a){if(g.Gc&&!g.zc(8))return a.offsetParent;var b=mg(a),c=el(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=el(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.il=function(a){var b=mg(a),c=new g.ag(0,0);var d=b?mg(b):document;d=!g.Gc||g.zc(9)||"CSS1Compat"==ng(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=hl(a);b=Wca(ng(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Tga=function(a,b){var c=new g.ag(0,0),d=vg(mg(a));if(!uc(d,"parent"))return c;do{var e=d==b?g.il(a):Sga(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.jl=function(a,b){a=Uga(a);b=Uga(b);return new g.ag(a.x-b.x,a.y-b.y)};
Sga=function(a){a=hl(a);return new g.ag(a.left,a.top)};
Uga=function(a){if(1==a.nodeType)return Sga(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.ag(a.clientX,a.clientY)};
g.kl=function(a,b,c){if(b instanceof g.cg)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.fl(b,!0);a.style.height=g.fl(c,!0)};
g.fl=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.ll=function(a){var b=Vga;if("none"!=el(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};
Vga=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Ee&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=hl(a),new g.cg(a.right-a.left,a.bottom-a.top)):new g.cg(b,c)};
g.ml=function(a,b){a.style.display=b?"":"none"};
nl=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
Wga=function(a){return new Rk(a.top,a.right,a.bottom,a.left)};
Xga=function(a){var b=a.top||0,c=a.left||0;return new Rk(b,c+(a.width||0),b+(a.height||0),c)};
ol=function(a){return null!=a&&0<=a&&1>=a};
Yga=function(){var a=g.tb();return a?pl("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return pb(a,b)})||pb(a,"OMI/")&&!pb(a,"XiaoMi/")?!0:pb(a,"Presto")&&pb(a,"Linux")&&!pb(a,"X11")&&!pb(a,"Android")&&!pb(a,"Mobi"):!1};
Zga=function(){this.B=!dk(Yj.top);this.isMobileDevice=ck()||Vfa();var a=fk();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.Gh(a[a.length-1].url)||"":"";this.j=new Rk(0,0,0,0);this.C=new g.cg(0,0);this.D=new g.cg(0,0);this.J=new Rk(0,0,0,0);this.I=0;this.N=!1;this.u=!(!Yj||!Nga(Yj).Rk);this.update(Yj)};
$ga=function(a,b){b&&b.screen&&(a.C=new g.cg(b.screen.width,b.screen.height))};
aha=function(a,b){var c=a.j?new g.cg(Sk(a.j),a.j.getHeight()):new g.cg(0,0);b=void 0===b?Yj:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=q):m<p?(d=m,e=n):(d=p,e=q)}var t=new g.cg(e,d)}catch(u){t=new g.cg(-12245933,-12245933)}a.D=t};
sl=function(){var a=ql();if(0<a.I||a.N)return!0;a=pk().u.isVisible();var b=0===bk(rl);return a||b};
ql=function(){return nk(Zga)};
tl=function(a){this.B=a;this.u=0;this.j=null};
ul=function(a,b,c){this.B=a;this.Ia=void 0===c?"na":c;this.D=[];this.isInitialized=!1;this.C=new Vk(-1,!0,this);this.j=this;this.N=b;this.W=this.V=!1;this.va="uk";this.ma=!1;this.I=!0};
vl=function(a,b){g.Xb(a.D,b)||(a.D.push(b),b.Qu(a.j),b.Fp(a.C),b.Jm()&&(a.V=!0))};
bha=function(a){a=a.j;a.lL();a.kL();var b=ql();b.J=Xk(!1,a.B,b.isMobileDevice);aha(ql(),a.B);a.C.j=a.WN()};
cha=function(a){a.V=a.D.length?pl(a.D,function(b){return b.Jm()}):!1};
dha=function(a){var b=g.ec(a.D);g.qc(b,function(c){c.Fp(a.C)})};
wl=function(a){var b=g.ec(a.D);g.qc(b,function(c){c.Qu(a.j)});
a.j!=a||dha(a)};
xl=function(a,b,c,d){this.element=a;this.j=new Rk(0,0,0,0);this.C=new Rk(0,0,0,0);this.u=b;this.featureSet=c;this.Y=d;this.W=!1;this.timestamp=-1;this.J=new Wk(b.C,this.element,this.j,new Rk(0,0,0,0),0,0,Kk(),0)};
yl=function(a){this.D=!1;this.j=a;this.C=function(){}};
eha=function(a,b,c){this.u=void 0===c?0:c;this.j=a;this.kd=null==b?"":b};
fha=function(a){switch(Math.trunc(a.u)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
gha=function(a,b){return a.u<b.u?!0:a.u>b.u?!1:a.j<b.j?!0:a.j>b.j?!1:typeof a.kd<typeof b.kd?!0:typeof a.kd>typeof b.kd?!1:a.kd<b.kd};
zl=function(){this.B=0;this.j=[];this.u=!1};
hha=function(a,b){(0,g.qc)(b.j,function(c){a.add(c.j,c.kd,fha(c))})};
Al=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;ek(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
Bl=function(a){var b=iha;a.u&&(g.mc(a.j,function(c,d){return gha(d,c)?1:gha(c,d)?-1:0}),a.u=!1);
return mk(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
iha=function(a){var b=a.j;a=a.kd;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.Xb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
jha=function(a){var b=void 0===b?!0:b;this.j=new zl;void 0!==a&&hha(this.j,a);b&&this.j.add("v",Cl,-16)};
kha=function(a){var b=[],c=[];g.Ie(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d)switch(Array.isArray(d)&&(d=d.join(",")),d=[e,"=",d].join(""),e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(d);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(d);break;default:b.push(d)}});
return b.concat(c)};
lha=function(){if(Cl&&"unreleased"!==Cl)return Cl};
mha=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=lha();a=c?a+"&v="+encodeURIComponent(c):a}b=a=a.substring(0,b);pk();oga(b)};
nha=function(){this.j=0};
oha=function(a,b,c){(0,g.qc)(a.B,function(d){var e=a.j;if(!d.j&&(d.B(b,c),d.C())){d.j=!0;var f=d.u(),h=new zl;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.D);d=nk(nha);h.add("i",d.j++);h.add("adk",e);Al(h,f);e=new jha(h);mha(e)}})};
Dl=function(){this.u=this.B=this.C=this.j=0};
El=function(a){this.u=a=void 0===a?pha:a;this.j=g.kk(this.u,function(){return new Dl})};
Fl=function(a,b){return qha(a,function(c){return c.j},void 0===b?!0:b)};
Hl=function(a,b){return Gl(a,b,function(c){return c.j})};
rha=function(a,b){return qha(a,function(c){return c.B},void 0===b?!0:b)};
Il=function(a,b){return Gl(a,b,function(c){return c.B})};
Jl=function(a,b){return Gl(a,b,function(c){return c.u})};
sha=function(a){g.qc(a.j,function(b){b.u=0})};
qha=function(a,b,c){a=g.kk(a.j,function(d){return b(d)});
return c?a:tha(a)};
Gl=function(a,b,c){var d=g.Vb(a.u,function(e){return b<=e});
return-1==d?0:c(a.j[d])};
tha=function(a){return g.kk(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Kl=function(){this.u=new El;this.Ia=new Dl;this.Y=this.J=-1;this.Ta=1E3;this.bb=new El([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.va=this.oa=-1};
Ll=function(a,b){return rha(a.u,void 0===b?!0:b)};
Ml=function(a,b,c,d){var e=void 0===e?!1:e;c=Hk(d,c);ak(a,b,c,{capture:e})};
Ol=function(a,b){b=Nl(b);return 0===b?0:Nl(a)/b};
Nl=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
uha=function(a,b){if(!a||!b)return!1;for(var c=0;null!==a&&100>c++;){if(a===b)return!0;try{if(a=g.Eg(a)||a){var d=mg(a),e=d&&vg(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
vha=function(a,b,c){if(!a||!b)return!1;b=Uk(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;dk(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Oga())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=mg(c))&&b.defaultView&&b.defaultView.frameElement)&&uha(b,a);var d=a===c;a=!d&&a&&Ig(a,function(e){return e===c});
return!(b||d||a)};
wha=function(a,b,c,d){return ql().B?!1:0>=Sk(a)||0>=a.getHeight()?!0:c&&d?Jga(208,function(){return vha(a,b,c)}):!1};
Pl=function(a,b,c){g.I.call(this);this.position=xha.clone();this.sC=this.HB();this.JH=-2;this.U0=Date.now();this.GR=-1;this.lastUpdateTime=b;this.jC=null;this.iB=!1;this.AC=null;this.opacity=-1;this.requestSource=c;this.OH=function(){};
this.UR=function(){};
this.Zh=new Sfa;this.Zh.Pp=a;this.Zh.j=a;this.Mp=!1;this.lr={YH:null,WH:null};this.pR=!0;this.Jz=null;this.Su=this.fX=!1;sk().I++;this.hg=this.GG();this.DR=-1;this.qe=null;this.cX=!1;this.featureSet=new Pj;Rfa(this.featureSet);yha(this);1==this.requestSource?Rj(this.featureSet,"od",1):Rj(this.featureSet,"od",0)};
yha=function(a){a=a.Zh.Pp;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:zha&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Oca()):!!a.getAttribute("data-"+Oca());b&&(ql().u=!0)};
Ql=function(a,b){b!=a.Su&&(a.Su=b,a=ql(),b?a.I++:0<a.I&&a.I--)};
Aha=function(a,b){if(a.qe){if(b.getName()===a.qe.getName())return;a.qe.dispose();a.qe=null}b=b.create(a.Zh.j,a.featureSet,a.Jm());if(b=null!=b&&b.zE()?b:null)a.qe=b};
Bha=function(a,b,c){if(!a.jC||-1==a.lastUpdateTime||-1===b.u||-1===a.jC.u)return 0;a=b.u-a.jC.u;return a>c?0:a};
Cha=function(a,b,c){if(a.qe){a.qe.Uo();var d=a.qe.J,e=d.C,f=e.j;if(null!=d.I){var h=d.B;a.AC=new g.ag(h.left-f.left,h.top-f.top)}f=a.vD()?Math.max(d.j,d.D):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.RN(d);a.jC=d;a.Ea(f,b,c,!1,h,e,d.J)}};
Dha=function(a){if(a.iB&&a.Jz){var b=1==Sj(a.featureSet,"od"),c=ql().j,d=a.Jz,e=a.qe?a.qe.getName():"ns",f=new g.cg(Sk(c),c.getHeight());c=a.vD();a={I0:e,AC:a.AC,E1:f,vD:c,Dd:a.hg.Dd,w1:b};if(b=d.u){b.Uo();e=b.J;f=e.C.j;var h=null,l=null;null!=e.I&&f&&(h=e.B,h=new g.ag(h.left-f.left,h.top-f.top),l=new g.cg(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={I0:b.getName(),AC:h,E1:l,vD:c,w1:!1,Dd:e}}else c=null;c&&oha(d,a,c)}};
Eha=function(a,b,c){b&&(a.OH=b);c&&(a.UR=c)};
g.Yl=function(){};
g.Zl=function(a){return{value:a,done:!1}};
Fha=function(){this.C=this.j=this.B=this.u=this.D=0};
Gha=function(a){var b={};var c=g.Ua()-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};
Hha=function(){Kj.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
$l=function(a){return ol(a.volume)&&0<a.volume};
am=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?function(){return!0}:d;
return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return Iha(f,b,c)}};
bm=function(a,b){return function(c){return b(c)?c[a]:void 0}};
Jha=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c]===b.e||void 0===a[c]&&!b.hasOwnProperty("e"))return!0;return!1}};
Iha=function(a,b,c){return void 0===c||c?g.cm(a,function(d,e){return g.Xb(b,e)}):g.kk(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})};
dm=function(){this.u=this.j=""};
Kha=function(){};
em=function(a,b){var c={};if(void 0!==a)if(null!=b)for(var d in b){var e=b[d];d in Object.prototype||null!=e&&(c[d]="function"===typeof e?e(a):a[e])}else g.Ye(c,a);return Bl(Al(new zl,c))};
Lha=function(){var a={};this.u=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a);this.j={};for(var b in this.u)0<this.u[b][1]&&(this.j[b]=0);this.B=0};
fm=function(a,b){var c=a.u[b],d=c[1];a.B+=c[0];0<d&&0==a.j[b]&&(a.j[b]=1)};
Mha=function(a){var b=g.Oe(a.u),c=0,d;for(d in a.j)g.Xb(b,d)&&1==a.j[d]&&(c+=a.u[d][1],a.j[d]=2);return c};
Nha=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(1==d||2==d)b+=a.u[c][1]}return b};
gm=function(){this.j=this.u=0};
hm=function(){Kl.call(this);this.B=new Dl;this.Ga=this.V=this.ma=0;this.N=-1;this.eb=new Dl;this.D=new Dl;this.j=new El;this.I=this.C=-1;this.W=new Dl;this.Ta=2E3;this.Da=new gm;this.Sa=new gm;this.Pa=new gm};
im=function(a,b,c){var d=a.Ga;Mk||c||-1==a.N||(d+=b-a.N);return d};
Oha=function(){this.u=!1};
jm=function(a,b){this.u=!1;this.B=a;this.V=b;this.C=0};
km=function(a,b){jm.call(this,a,b);this.J=[]};
pm=function(a,b,c,d){xl.call(this,a,b,c,d)};
qm=function(a,b,c){xl.call(this,null,a,b,c);this.I=a.isActive();this.D=0};
rm=function(a){return[a.top,a.left,a.bottom,a.right]};
sm=function(a,b,c,d,e,f,h){f=void 0===f?null:f;h=void 0===h?[]:h;Pl.call(this,b,c,d);this.KI=e;this.dG=0;this.og={};this.Yf=new Lha;this.iS={};this.Ng="";this.Sa=null;this.qb=!1;this.j=[];this.Yr=f;this.I=h;this.C=null;this.B=-1;this.Ga=this.V=void 0;this.Y=this.W=0;this.va=-1;this.bb=this.Ta=!1;this.ma=this.N=this.u=this.lw=this.kb=0;new El;this.Da=this.Ia=0;this.Pa=-1;this.fh=0;this.J=g.of;this.oa=[this.HB()];this.Ib=2;this.Vs={};this.Vs.pause="p";this.Vs.resume="r";this.Vs.skip="s";this.Vs.mute=
"m";this.Vs.unmute="um";this.Vs.exitfullscreen="ef";this.D=null;this.eb=!1};
tm=function(a){0!=a.fh&&(a.fh=3)};
um=function(a){return void 0===a?a:Number(a)?nl(a,3):0};
vm=function(a,b){return a.oa[null!=b&&b<a.oa.length?b:a.oa.length-1]};
Pha=function(a){var b=!!Sj(sk().featureSet,"umt");return a.V||!b&&!a.Ga?0:1};
Qha=function(a,b){a.Nn()?b=0:-1==a.lastUpdateTime?b=0:(b-=a.lastUpdateTime,b=b>Math.max(1E4,a.B/3)?0:b);var c=a.J(a)||{};c=void 0!==c.currentTime?c.currentTime:a.W;var d=c-a.W,e=0;0<=d?(a.Y+=b,a.Da+=Math.max(b-d,0),e=Math.min(d,a.Y)):a.Ia+=Math.abs(d);0!=d&&(a.Y=0);-1==a.Pa&&0<d&&(a.Pa=0<=Qk?Kk()-Qk:-1);a.W=c;return e};
Rha=function(a,b){pl(a.I,function(c){return c.B==b.B})||a.I.push(b)};
Sha=function(a){var b=Hl(a.Eh().j,1);return wm(a,b)};
wm=function(a,b,c){return 15E3<=b?!0:a.Ta?(void 0===c?0:c)?!0:0<a.B?b>=a.B/2:0<a.va?b>=a.va:!1:!1};
Tha=function(a){var b=nl(a.hg.Dd,2),c=a.Yf.B,d=a.hg,e=vm(a),f=um(e.C),h=um(e.I),l=um(d.volume),m=nl(e.J,2),n=nl(e.Y,2),p=nl(d.Dd,2),q=nl(e.oa,2),t=nl(e.va,2);d=nl(d.Ki,2);a=a.zp().clone();a.round();e=Ll(e,!1);return{D1:b,sy:c,tC:f,pC:h,jx:l,uC:m,qC:n,Dd:p,vC:q,rC:t,Ki:d,position:a,yC:e}};
Vha=function(a,b){Uha(a.j,b,function(){return{D1:0,sy:void 0,tC:-1,pC:-1,jx:-1,uC:-1,qC:-1,Dd:-1,vC:-1,rC:-1,Ki:-1,position:void 0,yC:[]}});
a.j[b]=Tha(a)};
Uha=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
ym=function(a,b,c){var d=a.iS[b];if(null!=d)return d;d=Wha(a,b);var e=Re(xm,function(f){return f==b});
a=Xha(a,d,d,c,Yha[xm[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
zm=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Xha=function(a,b,c,d,e){if(a.Mp)return{"if":0,vs:0};var f=a.zp().clone();f.round();var h=ql(),l=sk(),m=a.Eh(),n=a.qe?a.qe.getName():"ns",p={};p["if"]=h.B?1:void 0;p.sdk=a.C?a.C:void 0;p.t=a.U0;p.p=[f.top,f.left,f.bottom,f.right];p.tos=Fl(m.u,!1);p.mtos=Ll(m);p.mcvt=m.Ia.B;p.ps=void 0;f=im(m,Kk(),a.Nn());p.vht=f;p.mut=m.eb.B;p.a=um(a.hg.volume);p.mv=um(m.I);p.fs=a.Su?1:0;p.ft=m.W.j;p.at=m.D.j;p.as=0<m.C?1:0;p.atos=Fl(m.j);p.ssb=Fl(m.bb,!1);p.amtos=rha(m.j,!1);p.uac=a.kb;p.vpt=m.B.j;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=wm(a,m.B.j,!0)?1:0;p.efpf=a.Ib;if("gsv"==n||"nis"==n)n=a.qe,0<n.D&&(p.nnut=n.D);p.tcm=Pha(a);p.nmt=a.Ia;p.bt=a.Da;p.pst=a.Pa;p.vpaid=a.V;p.dur=a.B;p.vmtime=a.W;p.is=a.Yf.B;1<=a.j.length&&(p.i0=a.j[0].sy,p.a0=[a.j[0].jx],p.c0=[a.j[0].Dd],p.ss0=[a.j[0].Ki],n=a.j[0].position,p.p0=n?rm(n):void 0);2<=a.j.length&&(p.i1=a.j[1].sy,p.a1=zm(a.j[1].tC,a.j[1].jx,a.j[1].pC),p.c1=zm(a.j[1].uC,a.j[1].Dd,a.j[1].qC),p.ss1=zm(a.j[1].vC,a.j[1].Ki,a.j[1].rC),n=a.j[1].position,p.p1=n?rm(n):
void 0,p.mtos1=a.j[1].yC);3<=a.j.length&&(p.i2=a.j[2].sy,p.a2=zm(a.j[2].tC,a.j[2].jx,a.j[2].pC),p.c2=zm(a.j[2].uC,a.j[2].Dd,a.j[2].qC),p.ss2=zm(a.j[2].vC,a.j[2].Ki,a.j[2].rC),n=a.j[2].position,p.p2=n?rm(n):void 0,p.mtos2=a.j[2].yC);4<=a.j.length&&(p.i3=a.j[3].sy,p.a3=zm(a.j[3].tC,a.j[3].jx,a.j[3].pC),p.c3=zm(a.j[3].uC,a.j[3].Dd,a.j[3].qC),p.ss3=zm(a.j[3].vC,a.j[3].Ki,a.j[3].rC),n=a.j[3].position,p.p3=n?rm(n):void 0,p.mtos3=a.j[3].yC);p.cs=Nha(a.Yf);b&&(p.ic=Mha(a.Yf),p.dvpt=m.B.u,p.dvs=Jl(m.u,.5),
p.dfvs=Jl(m.u,1),p.davs=Jl(m.j,.5),p.dafvs=Jl(m.j,1),c&&(m.B.u=0,sha(m.u),sha(m.j)),a.On()&&(p.dtos=m.ma,p.dav=m.V,p.dtoss=a.dG+1,c&&(m.ma=0,m.V=0,a.dG++)),p.dat=m.D.u,p.dft=m.W.u,c&&(m.D.u=0,m.W.u=0));p.ps=[h.D.width,h.D.height];p.bs=[Sk(h.j),h.j.getHeight()];p.scs=[h.C.width,h.C.height];p.dom=h.domain;a.lw&&(p.vds=a.lw);if(0<a.I.length||a.Yr)b=g.ec(a.I),a.Yr&&b.push(a.Yr),p.pings=g.kk(b,function(q){return q.toString()});
b=g.kk(g.cm(a.I,function(q){return q.I()}),function(q){return q.getId()});
waa(b);p.ces=b;a.u&&(p.vmer=a.u);a.N&&(p.vmmk=a.N);a.ma&&(p.vmiec=a.ma);p.avms=a.qe?a.qe.getName():"ns";a.qe&&g.Ye(p,a.qe.xp());d?(p.c=nl(a.hg.Dd,2),p.ss=nl(a.hg.Ki,2)):p.tth=Kk()-Zha;p.mc=nl(m.Y,2);p.nc=nl(m.J,2);p.mv=um(m.I);p.nv=um(m.C);p.lte=nl(a.JH,2);d=vm(a,e);Ll(m);p.qmtos=Ll(d);p.qnc=nl(d.J,2);p.qmv=um(d.I);p.qnv=um(d.C);p.qas=0<d.C?1:0;p.qi=a.Ng;p.avms||(p.avms="geo");p.psm=m.Da.j;p.psv=m.Da.getValue();p.psfv=m.Sa.getValue();p.psa=m.Pa.getValue();l=Pfa(l.featureSet);l.length&&(p.veid=l);
a.D&&g.Ye(p,Gha(a.D));p.avas=a.AB();p.vs=a.XN();return p};
Wha=function(a,b){if(g.Xb($ha,b))return!0;var c=a.og[b];return void 0!==c?(a.og[b]=!0,!c):!1};
bia=function(){this.j={};var a=vg();Am(this,a,document);var b=aia();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Am(this,c,c.document);Am(this,a.top,a.top.document)}}catch(d){}};
aia=function(){var a=document.documentElement;try{if(!dk(vg().top))return"2";var b=[],c=vg(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}};
Am=function(a,b,c){Ml(c,"mousedown",function(){return cia(a)},301);
Ml(b,"scroll",function(){return dia(a)},302);
Ml(c,"touchmove",function(){return eia(a)},303);
Ml(c,"mousemove",function(){return fia(a)},304);
Ml(c,"keydown",function(){return gia(a)},305)};
cia=function(a){g.Ie(a.j,function(b){1E5<b.B||++b.B})};
dia=function(a){g.Ie(a.j,function(b){1E5<b.j||++b.j})};
eia=function(a){g.Ie(a.j,function(b){1E5<b.j||++b.j})};
gia=function(a){g.Ie(a.j,function(b){1E5<b.u||++b.u})};
fia=function(a){g.Ie(a.j,function(b){1E5<b.C||++b.C})};
hia=function(){this.j=[];this.u=[]};
Bm=function(a,b){return g.Ub(a.j,function(c){return c.Ng==b})};
iia=function(a,b){return b?g.Ub(a.j,function(c){return c.Zh.Pp==b}):null};
jia=function(a,b){return g.Ub(a.u,function(c){return 2==c.jm()&&c.Ng==b})};
Dm=function(){var a=Cm;return 0==a.j.length?a.u:0==a.u.length?a.j:g.dc(a.u,a.j)};
kia=function(a,b){a=1==b.jm()?a.j:a.u;var c=Tb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.qe&&b.qe.Hw(),b.dispose(),!0):!1};
lia=function(a){var b=Cm;if(kia(b,a)){switch(a.jm()){case 0:var c=function(){return null};
case 2:c=function(){return jia(b,a.Ng)};
break;case 1:c=function(){return Bm(b,a.Ng)}}for(var d=c();d;d=c())kia(b,d)}};
mia=function(a,b){var c=Cm;a=g.cm(a,(void 0===b?0:b)?function(d){return!Bm(c,d.Ng)}:function(d){return!iia(c,d.Zh.Pp)});
c.j.push.apply(c.j,g.v(a))};
nia=function(a){var b=[];g.qc(a,function(c){pl(Cm.j,function(d){return d.Zh.Pp===c.Zh.Pp&&d.Ng===c.Ng})||(Cm.j.push(c),b.push(c))})};
Em=function(){this.j=this.u=null};
oia=function(a,b){function c(d,e){b(d,e)}
if(null==a.u)return!1;a.j=g.Ub(a.u,function(d){return null!=d&&d.mL()});
a.j&&(a.j.init(c)?bha(a.j.j):b(a.j.j.Fu(),a.j));return null!=a.j};
Fm=function(a){a=pia(a);yl.call(this,a.length?a[a.length-1]:new ul(Yj,0));this.B=a;this.u=null};
pia=function(a){if(!a.length)return[];a=(0,g.cm)(a,function(c){return null!=c&&c.Gw()});
for(var b=1;b<a.length;b++)vl(a[b-1],a[b]);return a};
Gm=function(a,b,c,d){xl.call(this,a,b,c,d);this.V=this.N=this.D=this.I=this.B=null};
Hm=function(a){return a.B&&a.B.takeRecords?a.B.takeRecords():[]};
ria=function(a){if(!a.element)return!1;var b=a.element,c=a.u.j.B,d=sk().j.j;a.B=new c.IntersectionObserver(rk(d,function(e){return Im(a,e)}),qia);
d=rk(d,function(){a.B.unobserve(b);a.B.observe(b);Im(a,Hm(a))});
c.ResizeObserver?(a.I=new c.ResizeObserver(d),a.I.observe(b)):c.MutationObserver&&(a.D=new g.C.MutationObserver(d),a.D.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.B.observe(b);Im(a,Hm(a));return!0};
Im=function(a,b){try{if(b.length){a.N||(a.N=Kk());var c=sia(b),d=Tga(a.element,a.u.j.B),e=d.x,f=d.y;a.j=new Rk(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=Wga(c.intersectionRect);a.C=Uk(h,a.j.left-h.left,a.j.top-h.top)}}catch(l){a.Hw(),Jk(299,l)}};
sia=function(a){return mk(a,function(b,c){return b.time>c.time?b:c},a[0])};
Jm=function(a){a=void 0===a?Yj:a;yl.call(this,new ul(a,2))};
Km=function(){var a=tia();ul.call(this,Yj.top,a,"geo")};
tia=function(){sk();var a=ql();return a.B||a.u?0:2};
uia=function(){};
Lm=function(){this.done=!1;this.j={bV:0,vM:0,Kka:0,qN:0,kH:-1,CV:0,BV:0,EV:0};this.D=null;this.I=!1;this.B=null;this.J=0;this.u=new tl(this)};
Nm=function(){var a=Mm;a.I||(a.I=!0,via(a,function(){return a.C.apply(a,g.v(g.Ea.apply(0,arguments)))}),a.C())};
wia=function(){nk(uia);var a=nk(Em);null!=a.j&&a.j.j?bha(a.j.j):ql().update(Yj)};
Om=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{wia();var d=Kk(),e=sk();e.D=d;if(null!=nk(Em).j)for(e=0;e<b.length;e++)Cha(b[e],d,c);else tk(yk,"",{strategy_not_selected:1,bin:e.u},!0);for(d=0;d<b.length;d++)Dha(b[d]);++a.j.qN}finally{c?g.qc(b,function(f){f.hg.Dd=0}):a.u.schedule()}}};
via=function(a,b){if(!a.D){b=Hk(142,b);pk();var c;rl.visibilityState?c="visibilitychange":rl.mozVisibilityState?c="mozvisibilitychange":rl.webkitVisibilityState&&(c="webkitvisibilitychange");c&&ak(rl,c,b,{capture:!1})&&(a.D=b)}};
xia=function(){var a=nk(Em);if(null!=a.j){var b=a.j;g.qc(Dm(),function(c){return Aha(c,b)})}};
yia=function(a,b){a=a.J;Mk&&(a+=b-Pk);return a};
Aia=function(a){a=void 0===a?function(){return{}}:a;
zk.wN="av-js";yk.j=.01;Iga([function(b){var c=sk(),d={};d=(d.bin=c.u,d.type="error",d);c=Tj(c.featureSet);if(!Mm.B){var e=Mm,f=Yj.document,h=0<=Lk?Kk()-Lk:-1,l=Kk();-1==e.j.kH&&(h=l);var m=ql(),n=sk(),p=Tj(n.featureSet),q=Dm();try{if(0<q.length){var t=m.j;t&&(p.bs=[Sk(t),t.getHeight()]);var u=m.D;u&&(p.ps=[u.width,u.height]);Yj.screen&&(p.scs=[Yj.screen.width,Yj.screen.height])}else p.url=encodeURIComponent(Yj.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=Lk;p.bin=n.u;void 0!==Yj.google_osd_load_pub_page_exp&&(p.olpp=Yj.google_osd_load_pub_page_exp);p.deb=[1,e.j.bV,e.j.vM,e.j.qN,e.j.kH,0,e.u.u,e.j.CV,e.j.BV,e.j.EV].join("-");p.tvt=yia(e,l);m.u&&(p.inapp=1);if(null!==Yj&&Yj!=Yj.top){0<q.length&&(p.iframe_loc=encodeURIComponent(Yj.location.href.substring(0,512)));var x=m.J;p.is=[Sk(x),x.getHeight()]}}catch(y){p.error=1}Mm.B=p}t=g.We(Mm.B);u=sk().j;1==Sj(u.B,"prf")?(x=new qk,e=u.j,f=0,-1<e.j&&(f=e.B.j.now()-e.j),x=qd(x,1,e.C+f,0),e=
u.j,x=qd(x,5,-1<e.j?e.u+1:e.u,0),x=qd(x,2,u.u.j.B(),0),x=qd(x,3,u.u.j.u(),0),u=qd(x,4,u.u.j.j(),0),x={},u=(x.pf=g.Cc(g.me(u,zia)),x)):u={};g.Ye(t,u);g.Ye(b,d,c,t,a());if(d=lha())c={},g.Ye(b,(c.v=encodeURIComponent(d),c))}])};
Cia=function(){var a=Bia||Yj;if(!a)return"";var b=[];if(!a.location||!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")};
Pm=function(){var a="youtube.player.web_20220531_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20220531_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20220531_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20220531_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20220531_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return 3==(null==(c=a)?void 0:c.length)?"20"+a[1]+a[2]:null};
Dia=function(){return"av.default_js".includes("ima_html5_sdk")?{Xl:"ima",Zl:null}:"av.default_js".includes("ima_native_sdk")?{Xl:"nima",Zl:null}:"av.default_js".includes("admob-native-video-javascript")?{Xl:"an",Zl:null}:"youtube.player.web_20220531_01_RC00".includes("cast_js_sdk")?{Xl:"cast",Zl:Pm()}:"youtube.player.web_20220531_01_RC00".includes("youtube.player.web")?{Xl:"yw",Zl:Pm()}:"youtube.player.web_20220531_01_RC00".includes("outstream_web_client")?{Xl:"out",Zl:Pm()}:"youtube.player.web_20220531_01_RC00".includes("drx_rewarded_web")?
{Xl:"r",Zl:Pm()}:"youtube.player.web_20220531_01_RC00".includes("gam_native_web_video")?{Xl:"n",Zl:Pm()}:"youtube.player.web_20220531_01_RC00".includes("admob_interstitial_video")?{Xl:"int",Zl:Pm()}:{Xl:"j",Zl:null}};
Sm=function(a,b){var c={sv:"929"};null!==Qm&&(c.v=Qm);c.cb=Eia;c.nas=Cm.j.length;c.msg=a;void 0!==b&&(a=Fia(b))&&(c.e=Rm[a]);return c};
Tm=function(a){return ib(a,"custom_metric_viewable")};
Fia=function(a){var b=Tm(a)?"custom_metric_viewable":a.toLowerCase();return Re(xm,function(c){return c==b})};
Gia=function(){this.j=void 0;this.u=!1;this.B=0;this.C=-1;this.D="tos"};
Jia=function(a){try{var b=a.split(",");return b.length>g.Oe(Hia).length?null:mk(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Iia[d[0]]||!Iia[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
Kia=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?Il(b.j,a.j):Il(b.u,a.j);case "tos":return a.u?Hl(b.j,a.j):Hl(b.u,a.j)}return 0};
Um=function(a,b,c,d){jm.call(this,b,d);this.J=a;this.N=c};
Lia=function(){};
Vm=function(){};
Wm=function(){};
Xm=function(a){jm.call(this,"fully_viewable_audible_half_duration_impression",a)};
Ym=function(a){this.j=a};
Zm=function(a,b){jm.call(this,a,b)};
$m=function(a){km.call(this,"measurable_impression",a)};
an=function(){Ym.apply(this,arguments)};
bn=function(a,b,c){qm.call(this,a,b,c)};
cn=function(a){a=void 0===a?Yj:a;yl.call(this,new ul(a,2))};
dn=function(a,b,c){qm.call(this,a,b,c)};
en=function(a){a=void 0===a?Yj:a;yl.call(this,new ul(a,2))};
fn=function(){ul.call(this,Yj,2,"mraid");this.Da=0;this.Y=this.oa=!1;this.J=null;this.u=Nga(this.B);this.C.j=new Rk(0,0,0,0);this.Ga=!1};
gn=function(a,b,c){a.iq("addEventListener",b,c)};
Pia=function(a){sk().C=!!a.iq("isViewable");gn(a,"viewableChange",Mia);"loading"===a.iq("getState")?gn(a,"ready",Nia):Oia(a)};
Oia=function(a){"string"===typeof a.u.Rk.AFMA_LIDAR?(a.oa=!0,Qia(a)):(a.u.compatibility=3,a.J="nc",a.fail("w"))};
Qia=function(a){a.Y=!1;var b=1==Sj(sk().featureSet,"rmmt"),c=!!a.iq("isViewable");(b?!c:1)&&pk().setTimeout(Ik(524,function(){a.Y||(Ria(a),Jk(540,Error()),a.J="mt",a.fail("w"))}),500);
Sia(a);gn(a,a.u.Rk.AFMA_LIDAR,Tia)};
Sia=function(a){var b=1==Sj(sk().featureSet,"sneio"),c=void 0!==a.u.Rk.AFMA_LIDAR_EXP_1,d=void 0!==a.u.Rk.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.Rk.AFMA_LIDAR_EXP_2=!0);c&&(a.u.Rk.AFMA_LIDAR_EXP_1=!b)};
Ria=function(a){a.iq("removeEventListener",a.u.Rk.AFMA_LIDAR,Tia);a.oa=!1};
Uia=function(a,b){if("loading"===a.iq("getState"))return new g.cg(-1,-1);b=a.iq(b);if(!b)return new g.cg(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.cg(-1,-1):new g.cg(a,b)};
Nia=function(){try{var a=nk(fn);a.iq("removeEventListener","ready",Nia);Oia(a)}catch(b){Jk(541,b)}};
Tia=function(a,b){try{var c=nk(fn);c.Y=!0;var d=a?new Rk(a.y,a.x+a.width,a.y+a.height,a.x):new Rk(0,0,0,0);var e=Kk(),f=sl();var h=new Vk(e,f,c);h.j=d;h.volume=b;c.Fp(h)}catch(l){Jk(542,l)}};
Mia=function(a){var b=sk(),c=nk(fn);a&&!b.C&&(b.C=!0,c.Ga=!0,c.J&&c.fail("w",!0))};
hn=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.J=(a.start=this.MW,a.firstquartile=this.HW,a.midpoint=this.JW,a.thirdquartile=this.NW,a.complete=this.EW,a.error=this.FW,a.pause=this.JI,a.resume=this.ZQ,a.skip=this.LW,a.viewable_impression=this.lm,a.mute=this.dw,a.unmute=this.dw,a.fullscreen=this.IW,a.exitfullscreen=this.GW,a.fully_viewable_audible_half_duration_impression=this.lm,a.measurable_impression=this.lm,a.abandon=this.JI,a.engagedview=this.lm,a.impression=this.lm,a.creativeview=
this.lm,a.progress=this.dw,a.custom_metric_viewable=this.lm,a.bufferstart=this.JI,a.bufferfinish=this.ZQ,a.audio_measurable=this.lm,a.audio_audible=this.lm,a);a={};this.N=(a.overlay_resize=this.KW,a.abandon=this.aH,a.close=this.aH,a.collapse=this.aH,a.overlay_unmeasurable_impression=function(b){return ym(b,"overlay_unmeasurable_impression",sl())},a.overlay_viewable_immediate_impression=function(b){return ym(b,"overlay_viewable_immediate_impression",sl())},a.overlay_unviewable_impression=function(b){return ym(b,
"overlay_unviewable_impression",sl())},a.overlay_viewable_end_of_session_impression=function(b){return ym(b,"overlay_viewable_end_of_session_impression",sl())},a);
sk().u=3;Via(this);this.B=!1};
jn=function(a,b,c,d){b=a.sz(null,d,!0,b);b.C=c;mia([b],a.B);return b};
Wia=function(a,b,c){Nfa(b);var d=a.j;g.qc(b,function(e){var f=g.kk(e.criteria,function(h){var l=Jia(h);if(null==l)h=null;else if(h=new Gia,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=jb(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h});
pl(f,function(h){return null==h})||Rha(c,new Um(e.id,e.event,f,d))})};
Xia=function(){var a=[],b=sk();a.push(nk(Km));Sj(b.featureSet,"mvp_lv")&&a.push(nk(fn));b=[new cn,new en];b.push(new Fm(a));b.push(new Jm(Yj));return b};
Yia=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=Kk(),c=sk(),d=ql();Lk=b;c.B=79463069;"o"!==a.u&&(Bia=dga(Yj));if(pga()){Mm.j.vM=0;Mm.j.kH=Kk()-b;var e=Xia(),f=nk(Em);f.u=e;oia(f,function(){kn()})?Mm.done||(xia(),vl(f.j.j,a),Nm()):d.B?kn():Nm()}else ln=!0}catch(h){throw Cm.reset(),h;
}}};
nn=function(a){Mm.u.cancel();mn=a;Mm.done=!0};
on=function(a){if(a.u)return a.u;var b=nk(Em).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};
pn=function(a,b,c){if(null==a.j)return b.lw|=4,!1;a=Zia(a.j,c,b);b.lw|=a;return 0==a};
kn=function(){var a=[new Jm(Yj)],b=nk(Em);b.u=a;oia(b,function(){nn("i")})?Mm.done||(xia(),Nm()):nn("i")};
$ia=function(a,b){if(!a.qb){var c=ym(a,"start",sl());c=a.KI.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="929";null!==Qm&&(d.v=Qm);Hh(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=Cia();Hh(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//web.archive.org/web/20220603021303/https://pagead2.googlesyndication.com/pagead/gen_204?"+Bl(Al(new zl,d));mha(b);a.qb=!0}};
qn=function(a,b,c){Om(Mm,[a],!sl());Vha(a,c);4!=c&&Uha(a.oa,c,a.HB);return ym(a,b,sl())};
Via=function(a){Aia(function(){var b=aja();null!=a.u&&(b.sdk=a.u);var c=nk(Em);null!=c.j&&(b.avms=c.j.getName());return b})};
bja=function(a,b,c,d){if(a.B)var e=Bm(Cm,b);else e=iia(Cm,c),null!==e&&e.Ng!==b&&(a.zx(e),e=null);e||(b=a.sz(c,Kk(),!1,b),0==Cm.u.length&&(sk().B=79463069),nia([b]),e=b,e.C=on(a),d&&(e.Sa=d));return e};
cja=function(a){g.qc(Cm.j,function(b){3==b.fh&&a.zx(b)})};
dja=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
aja=function(){var a=ql(),b={},c={},d={};return Object.assign({},(b.sv="929",b),null!==Qm&&(c.v=Qm,c),(d["if"]=a.B?"1":"0",d.nas=String(Cm.j.length),d))};
rn=function(a){jm.call(this,"audio_audible",a)};
sn=function(a){km.call(this,"audio_measurable",a)};
tn=function(){Ym.apply(this,arguments)};
un=function(){};
eja=function(a){this.j=a};
Zia=function(a,b,c){a=a.u();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==Qm&&(d.v=Qm,d),(e.sv="929",e.cb=Eia,e.e=fja(b),e));e=ym(c,b,sl());g.Ye(d,e);c.iS[b]=e;d=2==c.jm()?kha(d).join("&"):c.KI.j(d).j;try{return a(c.Ng,d,b),0}catch(f){return 2}}else return 1};
fja=function(a){var b=Tm(a)?"custom_metric_viewable":a;a=Re(xm,function(c){return c==b});
return Rm[a]};
vn=function(){hn.call(this);this.D=null;this.C=!1;this.I="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
gja=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.j&&Array.isArray(c)&&Wia(a,c,b)};
hja=function(a,b,c){var d=Bm(Cm,b);d||(d=c.opt_nativeTime||-1,d=jn(a,b,on(a),d),c.opt_osdId&&(d.Sa=c.opt_osdId));return d};
ija=function(a,b,c){var d=Bm(Cm,b);d||(d=jn(a,b,"n",c.opt_nativeTime||-1));return d};
jja=function(a,b){var c=Bm(Cm,b);c||(c=jn(a,b,"h",-1));return c};
kja=function(a){sk();switch(on(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
nja=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Ye(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.NB(b,c);c=f?f.KI:a.ZF();if(e.opt_bounds)return c.j(Sm("ol",d));if(void 0!==d)if(void 0!==Fia(d))if(ln)b=Sm("ue",d);else if(Yia(a),"i"==mn)b=Sm("i",d),b["if"]=0;else if(b=a.NB(b,e))if(a.B&&3==b.fh)b="stopped";else{b:{"i"==mn&&(b.Mp=!0,a.qJ());f=e.opt_fullscreen;void 0!==f&&Ql(b,!!f);var h;if(f=!ql().u)(f=pb(g.tb(),"CrKey")||pb(g.tb(),"PlayStation")||pb(g.tb(),"Roku")||Yga()||pb(g.tb(),"Xbox"))||
(f=g.tb(),f=pb(f,"AppleTV")||pb(f,"Apple TV")||pb(f,"CFNetwork")||pb(f,"tvOS")),f||(f=g.tb(),f=pb(f,"sdk_google_atv_x86")||pb(f,"Android TV")),f=!f;f&&(pk(),f=0===bk(rl));if(h=f){switch(b.jm()){case 1:$ia(b,"pv");break;case 2:a.bJ(b)}nn("pv")}f=d.toLowerCase();if(h=!h)h=Sj(sk().featureSet,"ssmol")&&"loaded"===f?!1:g.Xb(lja,f);if(h&&0==b.fh){"i"!=mn&&(Mm.done=!1);h=void 0!==e?e.opt_nativeTime:void 0;Qk=h="number"===typeof h?h:Kk();b.iB=!0;var l=sl();b.fh=1;b.og={};b.og.start=!1;b.og.firstquartile=
!1;b.og.midpoint=!1;b.og.thirdquartile=!1;b.og.complete=!1;b.og.resume=!1;b.og.pause=!1;b.og.skip=!1;b.og.mute=!1;b.og.unmute=!1;b.og.viewable_impression=!1;b.og.measurable_impression=!1;b.og.fully_viewable_audible_half_duration_impression=!1;b.og.fullscreen=!1;b.og.exitfullscreen=!1;b.dG=0;l||(b.Eh().N=h);Om(Mm,[b],!l)}(h=b.Vs[f])&&fm(b.Yf,h);g.Xb(mja,f)&&b.Yr&&b.Yr.D(b,null);switch(b.jm()){case 1:var m=Tm(f)?a.J.custom_metric_viewable:a.J[f];break;case 2:m=a.N[f]}if(m&&(d=m.call(a,b,e,d),void 0!==
d)){e=Sm(void 0,f);g.Ye(e,d);d=e;break b}d=void 0}3==b.fh&&(a.B?b.qe&&b.qe.Hw():a.zx(b));b=d}else b=Sm("nf",d);else b=void 0;else ln?b=Sm("ue"):f?(b=Sm(),g.Ye(b,Xha(f,!0,!1,!1))):b=Sm("nf");return"string"===typeof b?a.B&&"stopped"===b?wn:c.j():c.j(b)};
oja=function(a,b){b&&(a.I=b)};
pja=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.u,b};
xn=function(a,b,c){c=void 0===c?{}:c;a=nja(nk(vn),b,c,a);return pja(a)};
qja=function(a,b){b=void 0===b?!1:b;var c=nk(vn).NB(a,{});c?tm(c):b&&(a=nk(vn).sz(null,Kk(),!1,a),a.fh=3,nia([a]))};
tja=function(a){if(g.lb(g.ig(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Si(a)}catch(c){return null!=g.Ub(rja,function(d){return 0<a.search(d)})}return b.D.match(sja)?!0:null!=g.Ub(rja,function(c){return null!=a.match(c)})};
g.yn=function(a,b){return a.replace(uja,function(c,d){try{var e=g.Ue(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.lb(g.ig(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
An=function(a){g.kf.call(this);var b=this;this.I=this.u=0;this.Pk=null!=a?a:{Yg:function(e,f){return setTimeout(e,f)},
zj:function(e){clearTimeout(e)}};
var c,d;this.j=null!=(d=null==(c=window.navigator)?void 0:c.onLine)?d:!0;this.C=function(){return g.B(function(e){return g.A(e,zn(b),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.I||vja(this)};
wja=function(){var a=g.Bn;An.j||(An.j=new An(a));return An.j};
vja=function(a){a.I=a.Pk.Yg(function(){var b;return g.B(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Ra(3):g.A(c,zn(a),3):g.A(c,zn(a),3);vja(a);g.va(c)})},3E4)};
zn=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,h;return g.B(function(l){switch(l.j){case 1:return d=window.AbortController?new window.AbortController:void 0,f=null==(e=d)?void 0:e.signal,h=!1,g.wa(l,2,3),d&&(a.u=a.Pk.Yg(function(){d.abort()},b||2E4)),g.A(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:h=!0;case 3:g.Aa(l);a.D=void 0;a.u&&(a.Pk.zj(a.u),a.u=0);h!==a.j&&(a.j=h,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(h);g.Ba(l,0);break;case 2:g.ya(l),h=!1,l.Ra(3)}})})};
Cn=function(){this.data_=[];this.j=-1};
xja=function(a){-1===a.j&&(a.j=mk(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.j};
g.Dn=function(a,b,c){g.I.call(this);this.j=null;this.C=!1;this.I=a;this.D=c;this.u=b||window;this.B=(0,g.Sa)(this.yT,this)};
g.En=function(a){a.isActive()||a.start()};
yja=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
zja=function(a){a=a.u;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.K=function(a,b,c){g.I.call(this);this.j=a;this.ah=b||0;this.u=c;this.B=(0,g.Sa)(this.oL,this)};
g.Fn=function(a,b){a.isActive()||a.start(b)};
g.Gn=function(a){a.stop();a.oL()};
g.Hn=function(a){a.isActive()&&g.Gn(a)};
In=function(a,b){this.j=a[g.C.Symbol.iterator]();this.u=b};
Aja=function(a,b){return new In(a,b)};
Bja=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
Jn=function(a){return a.classList?a.classList:Bja(a).match(/\S+/g)||[]};
g.co=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.eo=function(a,b){return a.classList?a.classList.contains(b):g.Xb(Jn(a),b)};
g.N=function(a,b){if(a.classList)a.classList.add(b);else if(!g.eo(a,b)){var c=Bja(a);g.co(a,c+(0<c.length?" "+b:b))}};
g.fo=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.N(a,e)});
else{var c={};Array.prototype.forEach.call(Jn(a),function(e){c[e]=!0});
Array.prototype.forEach.call(b,function(e){c[e]=!0});
b="";for(var d in c)b+=0<b.length?" "+d:d;g.co(a,b)}};
g.go=function(a,b){a.classList?a.classList.remove(b):g.eo(a,b)&&g.co(a,Array.prototype.filter.call(Jn(a),function(c){return c!=b}).join(" "))};
g.ho=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.go(a,c)}):g.co(a,Array.prototype.filter.call(Jn(a),function(c){return!g.Xb(b,c)}).join(" "))};
g.O=function(a,b,c){c?g.N(a,b):g.go(a,b)};
Cja=function(a,b){var c=!g.eo(a,b);g.O(a,b,c)};
lo=function(a){if(a instanceof io||a instanceof jo||a instanceof ko)return a;if("function"==typeof a.next)return new io(function(){return a});
if("function"==typeof a[Symbol.iterator])return new io(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Qi)return new io(function(){return a.Qi()});
throw Error("Not an iterator or iterable.");};
io=function(a){this.u=a};
jo=function(a){this.u=a};
ko=function(a){io.call(this,function(){return a});
this.B=a};
g.mo=function(a,b){this.u={};this.j=[];this.tq=this.size=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof g.mo)for(c=a.Cn(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Dja=function(a,b){return a===b};
oo=function(a){if(a.size!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];no(a.u,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.size!=a.j.length){var e={};for(c=b=0;b<a.j.length;)d=a.j[b],no(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};
no=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.po=function(){g.kf.call(this);this.j=0;this.endTime=this.startTime=null};
Eja=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return"string"===typeof c?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"});
g.al(a,"transition",b.join(","))};
qo=function(a,b,c,d,e){g.po.call(this);this.u=a;this.I=b;this.J=c;this.D=d;this.N=Array.isArray(e)?e:[e]};
Fja=function(a,b,c,d){return new qo(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Hja=function(a){a=qb(a);if(""==a)return null;var b=String(a.slice(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in Gja))return null}return a};
ro=function(a,b){a=g.C[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
Ija=function(a){var b=g.C.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Jja=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Gc&&10>document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)};
Oja=function(a){if(!a)return Lf;var b=document.createElement("div").style;Kja(a).forEach(function(c){var d=g.Ee&&c in Lja?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");ib(d,"--")||ib(d,"var")||(c=Jja(Mja,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Hja(c),null!=c&&Jja(Nja,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return Ica(g.yf("Output of CSS sanitizer"),b.cssText||"")};
Kja=function(a){g.Oa(a)?a=g.ec(a):(a=g.Oe(a),g.bc(a,"cssText"));return a};
g.to=function(a){var b,c=b=0,d=!1;a=a.split(Pja);for(var e=0;e<a.length;e++){var f=a[e];g.so.test(f)?(b++,c++):Qja.test(f)?d=!0:Rja.test(f)?c++:Sja.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.uo=function(a,b,c,d,e,f,h,l){this.j=a;this.J=b;this.B=c;this.D=d;this.C=e;this.I=f;this.u=h;this.N=l};
g.vo=function(a,b){if(0==b)return a.j;if(1==b)return a.u;var c=g.Zf(a.j,a.B,b),d=g.Zf(a.B,a.C,b);a=g.Zf(a.C,a.u,b);c=g.Zf(c,d,b);d=g.Zf(d,a,b);return g.Zf(c,d,b)};
wo=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Tja=function(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\v")};
xo=function(a){return(a=a.exec(g.tb()))?a[1]:""};
yo=function(a){return 0<=g.sb(Uja,a)};
g.zo=function(a){g.I.call(this);this.I=1;this.B=[];this.C=0;this.j=[];this.u={};this.J=!!a};
Vja=function(a,b,c){g.Qg(function(){a.apply(b,c)})};
g.Ao=function(a){this.j=a};
Bo=function(a){this.j=a};
Wja=function(a){this.data=a};
Xja=function(a){return void 0===a||a instanceof Wja?a:new Wja(a)};
Co=function(a){this.j=a};
g.Yja=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Ua()||!!b&&b>g.Ua()};
g.Do=function(a){this.j=a};
Zja=function(){};
Eo=function(){};
Ho=function(a){this.j=a};
Io=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a};
$ja=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a};
Ko=function(a,b){this.u=a;this.j=null;if(g.Gc&&!g.zc(9)){Jo||(Jo=new g.mo);this.j=Jo.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)),Jo.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}};
Lo=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return aka[b]})};
Mo=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
No=function(a,b){this.u=a;this.j=b+"::"};
g.Oo=function(a){var b=new Io;return b.isAvailable()?a?new No(b,a):b:null};
Po=function(a,b){this.j=a;this.kd=b};
Qo=function(a){this.j=[];if(a)a:{if(a instanceof Qo){var b=a.Cn();a=a.Cj();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new Po(b[d],a[d]));break a}}else b=g.Oe(a),a=Ne(a);for(c=0;c<b.length;c++)bka(this,b[c],a[c])}};
bka=function(a,b,c){var d=a.j;d.push(new Po(b,c));b=d.length-1;a=a.j;for(c=a[b];0<b;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};
Ro=function(){Qo.apply(this,arguments)};
So=function(){};
cka=function(){var a=g.Ea.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.v(g.Ea.apply(0,arguments))))}})};
dka=function(){var a=g.Ea.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.v(g.Ea.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=cka.apply(null,g.v(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
To=function(){return Math.random().toString(36).substring(7).split("").join(".")};
eka=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:Uo}))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"+To()}))throw Error('Reducer "'+
b+"\" returned undefined when probed with a random type. Don't try to handle "+(Uo+' 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.'));})};
fka=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(u){if("function"!==typeof u)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 x=!0;p===n&&(p=n.slice());p.push(u);return function(){if(x){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.");
x=!1;p===n&&(p=n.slice());p.splice(p.indexOf(u),1);n=null}}}
function h(u){if("object"!==typeof u||null===u)var x=!1;else{for(x=u;null!==Object.getPrototypeOf(x);)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(u)===x}if(!x)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof u.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,u)}finally{q=!1}x=n=p;for(var y=0;y<x.length;y++)(0,x[y])();
return u}
if("function"===typeof b&&"function"===typeof c||"function"===typeof c&&"function"===typeof d)throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");"function"===typeof b&&"undefined"===typeof c&&(c=b,b=void 0);if("undefined"!==typeof c){if("function"!==typeof c)throw Error("Expected the enhancer to be a function.");return c(fka)(a,b)}if("function"!==typeof a)throw Error("Expected the reducer to be a function.");
var l=a,m=b,n=[],p=n,q=!1;h({type:Uo});a={};var t=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(u){if("function"!==typeof u)throw Error("Expected the nextReducer to be a function.");l=u;h({type:gka});return t},a[hka]=function(){var u={};
return u.subscribe=function(x){function y(){x.next&&x.next(e())}
if("object"!==typeof x||null===x)throw new TypeError("Expected the observer to be an object.");y();return{unsubscribe:f(y)}},u[hka]=function(){return this},u},a);
return t};
Vo=function(a){g.F.call(this,a,-1,ika)};
Wo=function(a){g.F.call(this,a)};
Xo=function(a){var b=a.split(""),c=[1952814189,-48095061,-2005960229,-1548162296,-352939094,487258992,b,1022383446,-48095061,-593445962,-152446791,function(d,e){d.push(e)},
2053880608,"for",function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
function(d,e){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f},
751052736,122655227,function(d,e){d.push(e)},
-1909711147,-1563961270,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
b,612578798,-1754921259,-1081903835,-1097891430,-1563961270,179811293,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
b,979340927,-1187430464,function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 58:d=96;continue;case 91:d=44;break;case 65:d=47;continue;case 46:d=153;case 123:d-=58;default:e.push(String.fromCharCode(d))}return e},
-1168388180,1772928277,null,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)},
-1056271890,null,-263472608,1535521347,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
1930224073,null,-1920247638,-1671983361,function(d,e,f){var h=f.length;d.forEach(function(l,m,n){this.push(n[m]=f[(f.indexOf(l)-f.indexOf(this[m])+m+h--)%f.length])},e.split(""))},
562941967,1518630180,-711848911,-196581860,-539080783];c[36]=c;c[39]=c;c[44]=c;try{c[14](c[44],c[28]),c[29](c[22]),c[15](c[36],c[16]),c[42](c[36],c[38]),c[51](c[23],c[9]),c[0](c[28],c[10]),c[19](c[25],c[27]),c[18](c[47],c[37]),c[45](c[47],c[4]),c[33](c[48]),c[1](c[18],c[35],c[15]()),c[6](c[4],c[7]),c[0](c[20],c[15]),c[26](c[12],c[23]),c[28](c[3],c[38]),c[28](c[6],c[44]),c[43](c[36],c[33]),c[27](c[20],c[39]),c[42](c[6],c[28]),c[53](c[20],c[37]),c[43](c[20],c[46]),c[5](c[12],c[49]),c[43](c[20],c[45]),
c[27](c[12],c[16]),c[53](c[51],c[2]),c[27](c[36],c[24]),c[5](c[36],c[19]),c[27](c[6],c[10]),c[28](c[6],c[50]),c[26](c[20],c[25]),c[27](c[3],c[7]),c[43](c[3],c[35]),c[15](c[0],c[49]),c[1](c[39]),c[6](c[53],c[25]),c[6](c[53],c[0]),c[22](c[45],c[35]),c[52](c[53]),c[22](c[14],c[33]),c[53](c[20],c[33])}catch(d){return"enhanced_except_yJUBt-r-_w8_"+a}return b.join("")};
jka=function(a){g.F.call(this,a)};
Yo=function(a){g.F.call(this,a)};
Zo=function(a){g.F.call(this,a)};
$o=function(a){g.F.call(this,a)};
lka=function(a){g.F.call(this,a,-1,kka)};
g.ap=function(a){g.F.call(this,a,-1,mka)};
bp=function(a){g.F.call(this,a,-1,nka)};
cp=function(a){g.F.call(this,a)};
dp=function(a){g.F.call(this,a,-1,oka)};
ep=function(a){g.F.call(this,a,-1,pka)};
fp=function(a){g.F.call(this,a,-1,qka)};
gp=function(a){g.F.call(this,a)};
hp=function(a){g.F.call(this,a)};
ip=function(a){g.F.call(this,a)};
jp=function(a){g.F.call(this,a)};
kp=function(a){g.F.call(this,a)};
lp=function(a){g.F.call(this,a)};
mp=function(a){g.F.call(this,a,-1,rka)};
np=function(a){g.F.call(this,a)};
op=function(a){g.F.call(this,a)};
pp=function(a){g.F.call(this,a)};
qp=function(a){g.F.call(this,a)};
rp=function(a){g.F.call(this,a)};
ska=function(a){g.F.call(this,a)};
sp=function(a){g.F.call(this,a)};
tp=function(a){g.F.call(this,a,-1,tka)};
up=function(a){g.F.call(this,a)};
uka=function(a,b){wd(a,op,1,b)};
vp=function(a){g.F.call(this,a)};
vka=function(a,b){wd(a,op,1,b)};
wp=function(a){g.F.call(this,a,-1,wka)};
xka=function(a,b){wd(a,op,2,b)};
xp=function(a){g.F.call(this,a)};
yp=function(a){g.F.call(this,a)};
zp=function(a){g.F.call(this,a)};
Ap=function(a){g.F.call(this,a)};
Bp=function(a){g.F.call(this,a)};
Cp=function(a){g.F.call(this,a,-1,yka)};
Dp=function(a){g.F.call(this,a)};
Ep=function(a){g.F.call(this,a,-1,zka)};
Aka=function(a,b){return g.E(a,1,b)};
Bka=function(a,b){return g.E(a,25,b)};
Gp=function(a,b){Ad(a,68,Fp,b)};
Fp=function(a){g.F.call(this,a)};
Hp=function(a){g.F.call(this,a)};
Ip=function(a){g.F.call(this,a)};
Jp=function(a){g.F.call(this,a)};
Kp=function(a){g.F.call(this,a,432)};
Lp=function(a){g.F.call(this,a)};
Mp=function(a){g.F.call(this,a)};
Np=function(a){g.F.call(this,a,-1,Cka)};
Dka=function(){return g.La("yt.ads.biscotti.lastId_")||""};
Eka=function(a){g.Ka("yt.ads.biscotti.lastId_",a)};
Pp=function(){var a=arguments;1<a.length?Op[a[0]]=a[1]:1===a.length&&Object.assign(Op,a[0])};
g.P=function(a,b){return a in Op?Op[a]:b};
Qp=function(a){var b=Op.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.Q=function(a){a=Fka(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.Rp=function(a,b){a=Fka(a);return void 0===a&&void 0!==b?b:Number(a||0)};
Sp=function(){return g.P("EXPERIMENTS_TOKEN","")};
Fka=function(a){var b=g.P("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.P("EXPERIMENT_FLAGS",{})[a]};
Tp=function(){var a=[],b=g.P("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.P("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
Gka=function(a){Up.forEach(function(b){return b(a)})};
Wp=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.Vp(b)}}:a};
g.Vp=function(a,b,c,d){var e=g.La("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.P("ERRORS",[]),e.push([a,"ERROR",b,c,d]),Pp("ERRORS",e));Gka(a)};
Xp=function(a,b,c,d){var e=g.La("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.P("ERRORS",[]),e.push([a,"WARNING",b,c,d]),Pp("ERRORS",e))};
Yp=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1==f.length&&f[0]||2==f.length)try{var h=Hka(f[0]||""),l=Hka(f[1]||"");h in c?Array.isArray(c[h])?g.fc(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(q){var m=q,n=f[0],p=String(Yp);m.args=[{key:n,value:f[1],query:a,method:Ika==p?"unchanged":p}];Jka.hasOwnProperty(n)||Xp(m)}}return c};
Zp=function(a){var b=[];g.Ie(a,function(c,d){var e=g.fg(d),f;Array.isArray(c)?f=c:f=[c];g.qc(f,function(h){""==h?b.push(e):b.push(e+"="+g.fg(h))})});
return b.join("&")};
$p=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Yp(a,"&")};
aq=function(a){a=a.split(",");return a=a.map(function(b){return $p(b)})};
g.bq=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),$p(1<a.length?a[1]:a[0])):{}};
cq=function(a,b){return Kka(a,b||{},!0)};
dq=function(a,b){return Kka(a,b||{},!1)};
Kka=function(a,b,c){var d=a.split("#",2);a=d[0];d=1<d.length?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=$p(e[1]||"");for(var f in b)if(c||!g.Pe(e,f))e[f]=b[f];return g.Mh(a,e)+d};
eq=function(a){if(!b)var b=window.location.href;var c=g.Fh(1,a),d=g.Gh(a);c&&d?(a=a.match(Eh),b=b.match(Eh),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Gh(b)==d&&(Number(g.Fh(4,b))||null)==(Number(g.Fh(4,a))||null):!0;return a};
fq=function(a){a||(a=document.location.href);a=g.Fh(1,a);return null!==a&&"https"==a};
gq=function(a){a=g.Gh(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Hka=function(a){return a&&a.match(Lka)?a:gg(a)};
hq=function(a){var b=Mka;a=void 0===a?Dka():a;var c=Object,d=c.assign,e=Nka(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(D){}try{var m=f.outerWidth;var n=f.outerHeight}catch(D){}try{var p=f.innerWidth;var q=f.innerHeight}catch(D){}try{var t=f.screenLeft;var u=f.screenTop}catch(D){}try{p=f.innerWidth,q=f.innerHeight}catch(D){}try{var x=f.screen.availWidth;var y=f.screen.availTop}catch(D){}f=[t,u,h,l,x,y,m,n,p,q];h=Pga(!1,b.j.top);l={};var z=void 0===z?g.C:z;m=new Cn;z.SVGElement&&z.document.createElementNS&&
m.set(0);n=cga();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);z.crypto&&z.crypto.subtle&&m.set(3);z.TextDecoder&&z.TextEncoder&&m.set(4);z=xja(m);b=(l.bc=z,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=bk(b.u),l.wgl=!!Yj.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
Nka=function(a){var b={};b.dt=Oka;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.u.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Yj:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Yj.screen)?void 0:f.height;var h;b.u_w=null==(h=Yj.screen)?void 0:h.width;var l;b.u_ah=null==(l=Yj.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Yj.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Yj.screen)?void 0:
n.colorDepth}catch(p){}return b};
Qka=function(){if(!Pka)return null;var a=Pka();return"open"in a?a:null};
g.jq=function(a){switch(iq(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
iq=function(a){return a&&"status"in a?a.status:-1};
g.kq=function(a,b){"function"===typeof a&&(a=Wp(a));return window.setTimeout(a,b)};
g.lq=function(a,b){"function"===typeof a&&(a=Wp(a));return window.setInterval(a,b)};
g.mq=function(a){window.clearTimeout(a)};
Ska=function(a,b){b=void 0===b?{}:b;var c=eq(a),d=g.Q("web_ajax_ignore_global_headers_if_set"),e;for(e in Rka){var f=g.P(Rka[e]);g.Q("enable_visitor_header_for_vss")&&"X-Goog-Visitor-Id"===e&&!f&&(f=g.P("VISITOR_DATA"));!f||!c&&!nq(a,e)||d&&void 0!==b[e]||!g.Q("enable_web_eom_visitor_data")&&"X-Goog-EOM-Visitor-Id"===e||(b[e]=f)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||nq(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());
if(c||nq(a,"X-YouTube-Time-Zone")){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}h&&(b["X-YouTube-Time-Zone"]=h)}if(c||nq(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=Zp(hq());return b};
Uka=function(a,b){var c=g.Gh(a);g.Q("debug_handle_relative_url_for_query_forward_killswitch")||c||!eq(a)||(c=document.location.hostname);var d=Dh(g.Fh(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=$p(b),f={};g.qc(Tka,function(h){e[h]&&(f[h]=e[h])});
return dq(a,f)};
nq=function(a){return g.Gh(a)?!1:!0};
g.pq=function(a,b){var c=b.format||"JSON";a=Vka(a,b);var d=Wka(a,b),e=!1,f=oq(a,function(m){if(!e){e=!0;l&&g.mq(l);var n=g.jq(m),p=null,q=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||q||t)p=Xka(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<d){var h=b.onTimeout;var l=g.kq(function(){e||(e=!0,f.abort(),g.mq(l),h.call(b.context||g.C,f))},d)}return f};
Vka=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.P("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=cq(a,b);return a};
Wka=function(a,b){var c=g.P("XSRF_FIELD_NAME"),d=g.P("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.P("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.Gh(a)&&!b.withCredentials&&g.Gh(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=$p(e),g.Ye(e,f),e=b.postBodyFormat&&"JSON"==b.postBodyFormat?JSON.stringify(e):g.Kh(e));f=e||f&&!g.Se(f);!Yka&&f&&"POST"!=
b.method&&(Yka=!0,g.Vp(Error("AJAX request with postData should use POST")));return e};
Xka=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,Xp(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]}'\n"===f.substring(0,5)&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?Zka(a):null)e={},g.qc(a.getElementsByTagName("*"),function(h){e[h.tagName]=$ka(h)})}d&&ala(e);
return e};
ala=function(a){if(g.Pa(a))for(var b in a)"html_content"==b||jb(b,"_html")?a[b]=g.Tf(g.yf("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):ala(a[b])};
Zka=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
$ka=function(a){var b="";g.qc(a.childNodes,function(c){b+=c.nodeValue});
return b};
oq=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Wp(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=Qka();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.Q("debug_forward_web_query_parameters")&&(a=Uka(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);h&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=Ska(a,e))for(var n in e)m.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(c=!1);c&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
m.send(d);return m};
rq=function(a,b){var c=g.We(b),d;return(new g.Sg(function(e,f){c.onSuccess=function(h){g.jq(h)?e(new bla(h)):f(new qq("Request failed, status="+iq(h),"net.badstatus",h))};
c.onError=function(h){f(new qq("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new qq("Request timed out","net.timeout",h))};
d=g.pq(a,c)})).Li(function(e){e instanceof Yg&&d.abort();
return Vg(e)})};
g.sq=function(a,b,c,d){function e(l,m,n){return l.Li(function(p){if(0>=m||403===iq(p.xhr))return Vg(new qq("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0<h?Math.min(h,p):p;return f(n).then(function(){return e(rq(a,b),m-1,q)})})}
function f(l){return new g.Sg(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(rq(a,b),c-1,d)};
qq=function(a,b,c){Za.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
bla=function(a){this.xhr=a};
tq=function(){this.j=0;this.kd=null};
uq=function(a){var b=new tq;a=void 0===a?null:a;b.j=2;b.kd=void 0===a?null:a;return b};
vq=function(a){var b=new tq;a=void 0===a?null:a;b.j=1;b.kd=void 0===a?null:a;return b};
g.yq=function(a,b,c,d,e){wq||xq.set(""+a,b,{oC:c,path:"/",domain:void 0===d?"youtube.com":d,w0:void 0===e?!1:e})};
g.zq=function(a,b){if(!wq)return xq.get(""+a,b)};
g.dla=function(a,b,c){wq||xq.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
ela=function(){if(!xq.isEnabled())return!1;if(!xq.isEmpty())return!0;xq.set("TESTCOOKIESENABLED","1",{oC:60});if("1"!==xq.get("TESTCOOKIESENABLED"))return!1;xq.remove("TESTCOOKIESENABLED");return!0};
fla=function(){var a=/Chrome\/(\d+)/.exec(g.tb());return a?parseFloat(a[1]):NaN};
nna=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.tb());if(!a)return NaN;var b=[];a=g.r(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),0<=c&&b.push(c);return parseFloat(b.join("."))};
Bq=function(){return Aq("android")&&Aq("chrome")&&!(Aq("trident/")||Aq("edge/"))&&!Aq("cobalt")};
ona=function(){return Aq("armv7")||Aq("aarch64")||Aq("android")};
g.Cq=function(){return Aq("cobalt")};
Dq=function(){return Aq("cobalt")&&Aq("appletv")};
Eq=function(){return Aq("(ps3; leanback shell)")||Aq("ps3")&&g.Cq()};
pna=function(){return Aq("(ps4; leanback shell)")||Aq("ps4")&&g.Cq()};
g.yna=function(){return g.Cq()&&(Aq("ps4 vr")||Aq("ps4 pro vr"))};
Fq=function(){var a=/WebKit\/([0-9]+)/.exec(g.tb());return!!(a&&600<=parseInt(a[1],10))};
Gq=function(){var a=/WebKit\/([0-9]+)/.exec(g.tb());return!!(a&&602<=parseInt(a[1],10))};
Hq=function(){return Aq("iemobile")||Aq("windows phone")&&Aq("edge")};
Jq=function(){return Iq&&Aq("applewebkit")&&!Aq("version")&&(!Aq("safari")||Aq("gsa/"))};
Lq=function(){return g.Kq&&Aq("version/")};
Mq=function(){return Aq("smart-tv")&&Aq("samsung")};
Aq=function(a){var b=g.tb();return b?0<=b.toLowerCase().indexOf(a):!1};
Nq=function(a){var b=g.P("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Vda(a)));return a};
zna=function(a,b){var c={};g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.P("INNERTUBE_API_KEY"));g.Q("json_condensed_response")&&(c.prettyPrint="false");return a=dq(a,c)};
Oq=function(a,b){return{method:void 0===b?"POST":b,mode:eq(a)?"same-origin":"cors",credentials:eq(a)?"same-origin":"include"}};
Pq=function(){if(Kda()||Jq()||Lq())return!0;if(g.Q("enable_web_eom_visitor_data"))return g.P("EOM_VISITOR_DATA")?!1:!0;var a=g.P("INNERTUBE_CLIENT_NAME");return!a||"WEB"!==a&&"MWEB"!==a?!0:(a=g.zq("CONSENT"))?a.startsWith("YES+"):!0};
Qq=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
Tq=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
Uq=function(a,b){return void 0===b||null===b?a:Number(b)};
Vq=function(a,b){return void 0===b||null===b?a:b.toString()};
Wq=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(Ana))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
Xq=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.Q("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
Cna=function(a){return"EMBEDDED_PLAYER_MODE_PFL"===Bna(a,!1)};
Bna=function(a,b){b=(void 0===b?0:b)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(d){return b}return c?Tq(b,c.embeddedPlayerMode,Dna):b};
Zq=function(a){Za.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Yq;this.isTimeout=a instanceof qq&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Yg};
Yq=function(){Za.call(this,"Biscotti ID is missing from server")};
Hna=function(){if(g.Q("disable_biscotti_fetch_entirely_for_all_web_clients"))return Vg(Error("Biscotti id fetching has been disabled entirely."));if(!Pq())return Vg(Error("User has not consented - not fetching biscotti id."));var a=g.P("PLAYER_VARS",{});if("1"==g.Ue(a,"privembed",!1))return Vg(Error("Biscotti ID is not available in private embed mode"));if(g.Q("embeds_web_disable_ads_for_pfl")&&Cna(a))return Vg(Error("Biscotti id fetching has been disabled for pfl."));$q||($q=rq("//web.archive.org/web/20220603021303/https://googleads.g.doubleclick.net/pagead/id",
Ena).then(Fna).Li(function(b){return Gna(2,b)}));
return $q};
Fna=function(a){a=a.xhr.responseText;if(!ib(a,")]}'"))throw new Yq;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new Yq;a=a.id;Eka(a);$q=vq(a);Ina(18E5,2);return a};
Gna=function(a,b){b=new Zq(b);Eka("");$q=uq(b);0<a&&Ina(12E4,a-1);throw b;};
Ina=function(a,b){g.kq(function(){rq("//web.archive.org/web/20220603021303/https://googleads.g.doubleclick.net/pagead/id",Ena).then(Fna,function(c){return Gna(b,c)}).Li(g.of)},a)};
Jna=function(){try{var a=g.La("yt.ads.biscotti.getId_");return a?a():Hna()}catch(b){return Vg(b)}};
Kna=function(a){var b=this;this.j=void 0;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.j=c})};
ar=function(){if(!g.C.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.C.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.C.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.C.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.C.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
g.cr=function(){this.j=g.P("ALT_PREF_COOKIE_NAME","PREF");this.u=g.P("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.zq(this.j);if(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(br[d]=c.toString())}}};
g.dr=function(a,b){return!!((Lna("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
er=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
fr=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
Lna=function(a){a=void 0!==br[a]?br[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Mna=function(){var a=g.C.navigator;return a?a.connection:void 0};
Ona=function(){var a=Mna();if(a){var b=Nna[a.type||"unknown"]||"CONN_UNKNOWN";a=Nna[a.effectiveType||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===b&&"CONN_UNKNOWN"!==a&&(b=a);if("CONN_UNKNOWN"!==b)return b;if("CONN_UNKNOWN"!==a)return a}};
Qna=function(){var a=Mna();if(null!=a&&a.effectiveType)return Pna.hasOwnProperty(a.effectiveType)?Pna[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
Rna=function(){return"INNERTUBE_API_KEY"in Op&&"INNERTUBE_API_VERSION"in Op};
g.gr=function(){return{innertubeApiKey:g.P("INNERTUBE_API_KEY"),innertubeApiVersion:g.P("INNERTUBE_API_VERSION"),VB:g.P("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),mH:g.P("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),vO:g.P("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.P("INNERTUBE_CONTEXT_CLIENT_VERSION"),oH:g.P("INNERTUBE_CONTEXT_HL"),nH:g.P("INNERTUBE_CONTEXT_GL"),wO:g.P("INNERTUBE_HOST_OVERRIDE")||"",xO:!!g.P("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),pH:!!g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.P("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.hr=function(a){var b={client:{hl:a.oH,gl:a.nH,clientName:a.mH,clientVersion:a.innertubeContextClientVersion,configInfo:a.VB}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.C.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=Sp();""!==c&&(b.client.experimentsToken=c);c=Tp();0<c.length&&(b.request={internalExperimentFlags:c});Sna(a,void 0,b);Tna(void 0,b);Una(a,void 0,b);Vna(void 0,b);g.P("DELEGATED_SESSION_ID")&&!g.Q("pageid_as_header_web")&&(b.user=
{onBehalfOfUser:g.P("DELEGATED_SESSION_ID")});a=Object;c=a.assign;for(var d=b.client,e={},f=g.r(Object.entries($p(g.P("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.r(h.value);h=l.next().value;l=l.next().value;"cbrand"===h?e.deviceMake=l:"cmodel"===h?e.deviceModel=l:"cbr"===h?e.browserName=l:"cbrver"===h?e.browserVersion=l:"cos"===h?e.osName=l:"cosver"===h?e.osVersion=l:"cplatform"===h&&(e.platform=l)}b.client=c.call(a,d,e);return b};
Wna=function(a){var b=new ep,c=new g.ap;g.E(c,1,a.oH);g.E(c,2,a.nH);g.E(c,16,a.vO);g.E(c,17,a.innertubeContextClientVersion);if(a.VB){var d=a.VB,e=new Zo;d.coldConfigData&&g.E(e,1,d.coldConfigData);d.appInstallData&&g.E(e,6,d.appInstallData);d.coldHashData&&g.E(e,3,d.coldHashData);d.hotHashData&&g.E(e,5,d.hotHashData);wd(c,Zo,62,e)}(d=g.C.devicePixelRatio)&&1!=d&&g.E(c,65,d);d=Sp();""!==d&&g.E(c,54,d);d=Tp();if(0<d.length){e=new bp;for(var f=0;f<d.length;f++){var h=new Yo;g.E(h,1,d[f].key);h.setValue(d[f].value);
Ad(e,15,Yo,h)}wd(b,bp,5,e)}Sna(a,c);Tna(c);Una(a,c);Vna(c);g.P("DELEGATED_SESSION_ID")&&!g.Q("pageid_as_header_web")&&(a=new dp,g.E(a,3,g.P("DELEGATED_SESSION_ID")));a=g.r(Object.entries($p(g.P("DEVICE",""))));for(d=a.next();!d.done;d=a.next())e=g.r(d.value),d=e.next().value,e=e.next().value,"cbrand"===d?g.E(c,12,e):"cmodel"===d?g.E(c,13,e):"cbr"===d?g.E(c,87,e):"cbrver"===d?g.E(c,88,e):"cos"===d?g.E(c,18,e):"cosver"===d?g.E(c,19,e):"cplatform"===d&&g.E(c,42,e);wd(b,g.ap,1,c);return b};
Sna=function(a,b,c){a=a.mH;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=ud(b,$o,96)||new $o;var d=ar();d=Object.keys(Xna).indexOf(d);d=-1===d?null:d;null!==d&&g.E(c,3,d);wd(b,$o,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=ar())};
Tna=function(a,b){var c;if(g.Q("web_log_memory_total_kbytes")&&(null==(c=g.C.navigator)?0:c.deviceMemory)){var d;c=null==(d=g.C.navigator)?void 0:d.deviceMemory;a?g.E(a,95,1E6*c):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
Una=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=ud(b,Zo,62))?d:new Zo;g.E(c,6,a.appInstallData);wd(b,Zo,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
Vna=function(a,b){var c=Ona();c&&(a?g.E(a,61,Yna[c]):b&&(b.client.connectionType=c));g.Q("web_log_effective_connection_type")&&(c=Qna())&&(a?g.E(a,94,Zna[c]):b&&(b.client.effectiveConnectionType=c))};
$na=function(a,b,c){c=void 0===c?{}:c;var d={};g.Q("enable_web_eom_visitor_data")&&g.P("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.P("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.P("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.BM||g.P("AUTHORIZATION"))||(a?b="Bearer "+g.La("gapi.auth.getToken")().access_token:b=th([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.P("SESSION_INDEX",0),g.Q("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.P("DELEGATED_SESSION_ID")));
return d};
ir=function(a){var b;(b=g.Oo(a))||(a=new Ko(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.j=(a=b)?new Co(a):null;this.u=document.domain||window.location.hostname};
jr=function(){};
g.lr=function(a,b,c){return kr(b,0,c)};
aoa=function(a,b){kr(a,2,b)};
mr=function(){jr.apply(this,arguments)};
g.nr=function(){mr.j||(mr.j=new mr);return mr.j};
g.or=function(){return!!g.La("yt.scheduler.instance")};
kr=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.La("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.kq(a,c||0)};
pr=function(a){var b=g.La("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
rr=function(){var a;return null==(a=qr())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
boa=function(){var a={};for(sr=new tr(void 0===a.handleError?ur:a.handleError,void 0===a.logEvent?g.vr:a.logEvent);0<wr.length;)switch(a=wr.shift(),a.type){case "ERROR":sr.Ey(a.payload);break;case "EVENT":sr.logEvent(a.eventType,a.payload)}};
yr=function(a){xr||(sr?sr.Ey(a):(wr.push({type:"ERROR",payload:a}),10<wr.length&&wr.shift()))};
zr=function(a,b){xr||(sr?sr.logEvent(a,b):(wr.push({type:"EVENT",eventType:a,payload:b}),10<wr.length&&wr.shift()))};
g.Ar=function(a){var b=g.Ea.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.v(b))};
g.Cr=function(){try{return g.Br(),!0}catch(a){return!1}};
g.Br=function(a){if(void 0!==g.P("DATASYNC_ID"))return g.P("DATASYNC_ID");throw new g.Ar("Datasync ID not set",void 0===a?"unknown":a);};
Dr=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
Er=function(a){return a.substr(0,a.indexOf(":"))||a};
g.Fr=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?coa[a]:c;d=void 0===d?doa[a]:d;e=void 0===e?eoa[a]:e;g.Ar.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:void 0===self.document,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.j=e;Object.setPrototypeOf(this,g.Fr.prototype)};
Gr=function(a,b){g.Fr.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},coa.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Gr.prototype)};
Hr=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=a;this.objectStore=b;Object.setPrototypeOf(this,Hr.prototype)};
Jr=function(a,b,c,d){b=Er(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.Fr)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new g.Fr("QUOTA_EXCEEDED",a);if(g.Ir&&"UnknownError"===e.name)return new g.Fr("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof Hr)return new g.Fr("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&foa.some(function(f){return e.message.includes(f)}))return new g.Fr("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new g.Fr("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",MC:e.name})];e.level="WARNING";return e};
g.Kr=function(a,b,c){var d=rr();return new g.Fr("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
goa=function(a){if(!a)throw Error();throw a;};
hoa=function(a){return a};
Lr=function(a){this.j=a};
g.Mr=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.r(d.onRejected);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
function c(e){if("PENDING"===d.state.status){d.state={status:"FULFILLED",value:e};e=g.r(d.j);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
var d=this;this.state={status:"PENDING"};this.j=[];this.onRejected=[];a=a.j;try{a(c,b)}catch(e){b(e)}};
ioa=function(a,b,c,d,e){try{if("FULFILLED"!==a.state.status)throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof g.Mr?Pr(a,b,f,d,e):d(f)}catch(h){e(h)}};
joa=function(a,b,c,d,e){try{if("REJECTED"!==a.state.status)throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof g.Mr?Pr(a,b,f,d,e):d(f)}catch(h){e(h)}};
Pr=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.Mr?Pr(a,b,f,d,e):d(f)},function(f){e(f)})};
koa=function(a,b,c){function d(){c(a.error);f()}
function e(){b(a.result);f()}
function f(){try{a.removeEventListener("success",e),a.removeEventListener("error",d)}catch(h){}}
a.addEventListener("success",e);a.addEventListener("error",d)};
loa=function(a){return new Promise(function(b,c){koa(a,b,c)})};
g.Qr=function(a){return new g.Mr(new Lr(function(b,c){koa(a,b,c)}))};
Rr=function(a,b){return new g.Mr(new Lr(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
moa=function(a,b){this.request=a;this.cursor=b};
Sr=function(a){return g.Qr(a).then(function(b){return b?new moa(a,b):null})};
noa=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.B=Math.round((0,g.R)());this.u=!1};
g.Ur=function(a,b,c){a=a.j.createObjectStore(b,c);return new Tr(a)};
Vr=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
ooa=function(a,b){return g.Wr(a,["LogsRequestsStore"],{mode:"readwrite",jc:!0},function(c){return g.Xr(c.objectStore("LogsRequestsStore"),b)})};
g.Wr=function(a,b,c,d){var e,f,h,l,m,n,p,q,t,u,x,y;return g.B(function(z){switch(z.j){case 1:var D={mode:"readonly",jc:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?D.mode=c:Object.assign(D,c);e=D;a.transactionCount++;f=e.jc?3:1;h=0;case 2:if(l){z.Ra(3);break}h++;m=Math.round((0,g.R)());g.wa(z,4);n=a.j.transaction(b,e.mode);D=new Yr(n);D=poa(D,d);return g.A(z,D,6);case 6:return p=z.u,q=Math.round((0,g.R)()),qoa(a,m,q,h,void 0,b.join(),e),z.return(p);case 4:t=g.ya(z);u=Math.round((0,g.R)());
x=Jr(t,a.j.name,b.join(),a.j.version);if((y=x instanceof g.Fr&&!x.j)||h>=f)qoa(a,m,u,h,x,b.join(),e),l=x;z.Ra(2);break;case 3:return z.return(Promise.reject(l))}})};
qoa=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.Fr&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&zr("QUOTA_EXCEEDED",{dbName:Er(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.Fr&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),zr("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),roa(a,!1,d,f,b,h.tag),yr(e)):roa(a,!0,d,
f,b,h.tag)};
roa=function(a,b,c,d,e,f){zr("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
Tr=function(a){this.j=a};
g.Zr=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
soa=function(a,b){return g.$r(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
g.uoa=function(a,b){return"getAll"in IDBObjectStore.prototype?g.Qr(a.j.getAll(b,void 0)):toa(a,b)};
toa=function(a,b){var c=[];return g.$r(a,{query:b},function(d){c.push(d.getValue());return d.continue()}).then(function(){return c})};
woa=function(a){return"getAllKeys"in IDBObjectStore.prototype?g.Qr(a.j.getAllKeys(void 0,void 0)):voa(a)};
voa=function(a){var b=[];return g.xoa(a,{query:void 0},function(c){b.push(c.KB());return c.continue()}).then(function(){return b})};
g.Xr=function(a,b,c){return g.Qr(a.j.put(b,c))};
g.$r=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return as(a).then(function(d){return Rr(d,c)})};
g.xoa=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 Sr(a).then(function(e){return Rr(e,c)})};
Yr=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.Fr;for(var f=b.j.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");h.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:b.j.db.name,mode:b.j.mode});d(e)}})})};
poa=function(a,b){var c=new Promise(function(d,e){try{b(a).then(function(f){d(f)}).catch(e)}catch(f){e(f),a.abort()}});
return Promise.all([c,a.done]).then(function(d){return g.r(d).next().value})};
yoa=function(a){this.j=a};
g.bs=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return as(a).then(function(d){return Rr(d,c)})};
zoa=function(a,b){this.request=a;this.cursor=b};
as=function(a){return g.Qr(a).then(function(b){return b?new zoa(a,b):null})};
Aoa=function(a,b,c){return new Promise(function(d,e){function f(){t||(t=new noa(h.result,{closed:q}));return t}
var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.P0,p=c.upgrade,q=c.closed,t;h.addEventListener("upgradeneeded",function(u){try{if(null===u.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");u.dataLoss&&"none"!==u.dataLoss&&zr("IDB_DATA_CORRUPTED",{reason:u.dataLossMessage||"unknown reason",dbName:Er(a)});var x=f(),y=new Yr(h.transaction);
p&&p(x,function(z){return u.oldVersion<z&&u.newVersion>=z},y);
y.done.catch(function(z){e(z)})}catch(z){e(z)}});
h.addEventListener("success",function(){var u=h.result;m&&u.addEventListener("versionchange",function(){m(f())});
u.addEventListener("close",function(){zr("IDB_UNEXPECTEDLY_CLOSED",{dbName:Er(a),dbVersion:u.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
Boa=function(a,b,c){c=void 0===c?{}:c;return Aoa(a,b,c)};
cs=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.B(function(h){if(1==h.j)return g.wa(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.A(h,loa(c),4);
if(2!=h.j)return g.xa(h,0);f=g.ya(h);throw Jr(f,a,"",-1);})};
Coa=function(a){return new Promise(function(b){aoa(function(){b()},a)})};
ds=function(a,b){this.name=a;this.options=b;this.C=!0;this.I=this.D=0;this.u=500};
Doa=function(a,b){return new g.Fr("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.es=function(a,b){if(!b)throw g.Kr("openWithToken",Er(a.name));return a.open()};
Eoa=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,g.es(fs,b),2);c=d.u;return d.return(g.Wr(c,["databases"],{jc:!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.Xr(f,a).then(function(){})})}))})};
gs=function(a,b){var c;return g.B(function(d){if(1==d.j)return a?g.A(d,g.es(fs,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})};
Foa=function(a,b){var c,d;return g.B(function(e){return 1==e.j?(c=[],g.A(e,g.es(fs,b),2)):3!=e.j?(d=e.u,g.A(e,g.Wr(d,["databases"],{jc:!0,mode:"readonly"},function(f){c.length=0;return g.$r(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return h.continue()})}),3)):e.return(c)})};
Goa=function(a){return Foa(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)};
Hoa=function(){var a,b,c,d;return g.B(function(e){switch(e.j){case 1:a=rr();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(Iq&&Fq()&&!Gq()||g.hs)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.wa(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.A(e,Eoa(d,is),4);case 4:return g.A(e,gs("yt-idb-test-do-not-use",is),5);case 5:return e.return(!0);case 2:return g.ya(e),e.return(!1)}})};
Ioa=function(){if(void 0!==js)return js;xr=!0;return js=Hoa().then(function(a){xr=!1;var b;if(null!=(b=qr())&&b.j){var c;b={hasSucceededOnce:(null==(c=rr())?void 0:c.hasSucceededOnce)||a};var d;null==(d=qr())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
ks=function(){return g.La("ytglobal.idbToken_")||void 0};
g.ls=function(){var a=ks();return a?Promise.resolve(a):Ioa().then(function(b){(b=b?is:void 0)&&g.Ka("ytglobal.idbToken_",b);return b})};
Joa=function(a){if(!g.Cr())throw a=new g.Fr("AUTH_INVALID",{dbName:a}),yr(a),a;var b=g.Br();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
Koa=function(a,b,c,d){var e,f,h,l,m,n;return g.B(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.A(p,g.ls(),2);case 2:h=p.u;if(!h)throw l=g.Kr("openDbImpl",a,b),g.Q("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),yr(l),l;Dr(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Joa(a);g.wa(p,3);return g.A(p,Eoa(m,h),5);case 5:return g.A(p,Boa(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.ya(p),g.wa(p,7),g.A(p,gs(m.actualName,
h),9);case 9:g.xa(p,8);break;case 7:g.ya(p);case 8:throw n;}})};
Loa=function(a,b,c){c=void 0===c?{}:c;return Koa(a,b,!1,c)};
Moa=function(a,b,c){c=void 0===c?{}:c;return Koa(a,b,!0,c)};
Noa=function(a,b){b=void 0===b?{}:b;var c,d;return g.B(function(e){if(1==e.j)return g.A(e,g.ls(),2);if(3!=e.j){c=e.u;if(!c)return e.return();Dr(a);d=Joa(a);return g.A(e,cs(d.actualName,b),3)}return g.A(e,gs(d.actualName,c),0)})};
Ooa=function(a,b,c){a=a.map(function(d){return g.B(function(e){return 1==e.j?g.A(e,cs(d.actualName,b),2):g.A(e,gs(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
Poa=function(){var a=void 0===a?{}:a;var b,c;return g.B(function(d){if(1==d.j)return g.A(d,g.ls(),2);if(3!=d.j){b=d.u;if(!b)return d.return();Dr("LogsDatabaseV2");return g.A(d,Goa(b),3)}c=d.u;return g.A(d,Ooa(c,a,b),0)})};
Qoa=function(a,b){b=void 0===b?{}:b;var c;return g.B(function(d){if(1==d.j)return g.A(d,g.ls(),2);if(3!=d.j){c=d.u;if(!c)return d.return();Dr(a);return g.A(d,cs(a,b),3)}return g.A(d,gs(a,c),0)})};
ns=function(a){this.KA=this.Se=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){};
this.Ru=function(){};
this.now=Date.now;this.Ax=!1;var b;this.CR=null!=(b=a.CR)?b:100;var c;this.cR=null!=(c=a.cR)?c:1;var d;this.VQ=null!=(d=a.VQ)?d:2592E6;var e;this.NQ=null!=(e=a.NQ)?e:12E4;var f;this.bR=null!=(f=a.bR)?f:5E3;var h;this.Re=null!=(h=a.Re)?h:void 0;this.jB=!!a.jB;var l;this.UA=null!=(l=a.UA)?l:.1;var m;this.WC=null!=(m=a.WC)?m:10;a.handleError&&(this.handleError=a.handleError);a.Ru&&(this.Ru=a.Ru);a.Ax&&(this.Ax=a.Ax);a.KA&&(this.KA=a.KA);this.fb=a.fb;this.Pk=a.Pk;this.Rf=a.Rf;this.Nf=a.Nf;this.qo=a.qo;
this.GI=a.GI;this.aI=a.aI;ms(this)&&(!this.fb||this.fb("networkless_logging"))&&Roa(this)};
Roa=function(a){ms(a)&&!a.Ax&&(a.Se=!0,a.jB&&Math.random()<=a.UA&&a.Rf.uV(a.Re),Soa(a),a.Nf.tf()&&a.Oz(),a.Nf.Ma(a.GI,a.Oz.bind(a)),a.Nf.Ma(a.aI,a.OM.bind(a)))};
os=function(a,b){var c,d;return g.B(function(e){switch(e.j){case 1:if(!ms(a))throw c=g.Kr("immediateSend"),c;if(void 0===b.id){e.Ra(2);break}return g.A(e,a.Rf.pX(b.id,a.Re),3);case 3:(d=e.u)?b=d:a.Ru(Error("The request cannot be found in the database."));case 2:if(Toa(a,b,a.VQ)){e.Ra(4);break}a.Ru(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.Ra(5);break}return g.A(e,a.Rf.wu(b.id,a.Re),5);case 5:return e.return();case 4:b.skipRetry||(b=Uoa(a,b));if(!b){e.Ra(0);
break}if(!b.skipRetry||void 0===b.id){e.Ra(8);break}return g.A(e,a.Rf.wu(b.id,a.Re),8);case 8:a.qo(b.url,b.options,!!b.skipRetry),g.va(e)}})};
Uoa=function(a,b){if(!ms(a))throw g.Kr("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var h,l,m;return g.B(function(n){switch(n.j){case 1:h=Voa(f);if(!(a.fb&&a.fb("nwl_consider_error_code")&&h||a.fb&&!a.fb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.WC)){n.Ra(2);break}if(!a.Nf.uo){n.Ra(3);break}return g.A(n,a.Nf.uo(),3);case 3:if(a.Nf.tf()){n.Ra(2);break}c(e,f);if(!a.fb||!a.fb("nwl_consider_error_code")||void 0===(null==(l=b)?void 0:l.id)){n.Ra(6);break}return g.A(n,a.Rf.fJ(b.id,a.Re,!1),6);case 6:return n.return();case 2:if(a.fb&&a.fb("nwl_consider_error_code")&&
!h&&a.potentialEsfErrorCounter>a.WC)return n.return();a.potentialEsfErrorCounter++;if(void 0===(null==(m=b)?void 0:m.id)){n.Ra(8);break}return b.sendCount<a.cR?g.A(n,a.Rf.fJ(b.id,a.Re),12):g.A(n,a.Rf.wu(b.id,a.Re),8);case 12:a.Pk.Yg(function(){a.Nf.tf()&&a.Oz()},a.bR);
case 8:c(e,f),g.va(n)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var h;return g.B(function(l){if(1==l.j)return void 0===(null==(h=b)?void 0:h.id)?l.Ra(2):g.A(l,a.Rf.wu(b.id,a.Re),2);a.Nf.Un&&a.fb&&a.fb("vss_network_hint")&&a.Nf.Un(!0);d(e,f);g.va(l)})};
return b};
Toa=function(a,b,c){b=b.timestamp;return a.now()-b>=c?!1:!0};
Soa=function(a){if(!ms(a))throw g.Kr("retryQueuedRequests");a.Rf.SN("QUEUED",a.Re).then(function(b){b&&!Toa(a,b,a.NQ)?a.Pk.Yg(function(){return g.B(function(c){if(1==c.j)return void 0===b.id?c.Ra(2):g.A(c,a.Rf.fJ(b.id,a.Re),2);Soa(a);g.va(c)})}):a.Nf.tf()&&a.Oz()})};
ps=function(a,b){a.kS&&!a.Nf.tf()?a.kS(b):a.handleError(b)};
ms=function(a){return!!a.Re||a.KA};
Voa=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
qs=function(a,b){this.version=a;this.args=b};
rs=function(a,b){this.topic=a;this.j=b};
us=function(a,b){var c=ts();c&&c.publish.call(c,a.toString(),a,b)};
Xoa=function(a,b,c){var d=ts();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.La("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(vs[e])try{if(h&&a instanceof rs&&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.tq){var p=new m;m.tq=p.version}var q=m.tq}catch(t){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.ec(n.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+t.message,t;}b.call(c||window,h)}catch(t){g.Vp(t)}},Woa[a.toString()]?g.or()?g.Bn.Yg(l):g.kq(l,0):l())});
vs[e]=!0;ws[a.toString()]||(ws[a.toString()]=[]);ws[a.toString()].push(e);return e};
ys=function(a,b,c){var d=Xoa(a,function(e){b.apply(c,arguments);xs(d)},c);
return d};
xs=function(a){var b=ts();b&&("number"===typeof a&&(a=[a]),g.qc(a,function(c){b.unsubscribeByKey(c);delete vs[c]}))};
ts=function(){return g.La("ytPubsub2Pubsub2Instance")};
zs=function(a,b){ds.call(this,a,b);this.options=b;Dr(a)};
Yoa=function(a,b){var c;return function(){c||(c=new zs(a,b));return c}};
g.As=function(a,b){return Yoa(a,b)};
Zoa=function(){if(Bs)return Bs();var a={};Bs=g.As("LogsDatabaseV2",{gs:(a.LogsRequestsStore={Ro:2},a),Ez:!1,upgrade:function(b,c,d){c(2)&&g.Ur(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.Zr(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&Vr(b,"sapisid");c(9)&&Vr(b,"SWHealthLog")},
version:9});return Bs()};
Cs=function(a){return g.es(Zoa(),a)};
Ds=function(a,b){var c,d,e,f;return g.B(function(h){if(1==h.j)return c={startTime:(0,g.R)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.A(h,Cs(b),2);if(3!=h.j)return d=h.u,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.A(h,ooa(d,e),3);f=h.u;c.Z0=(0,g.R)();$oa(c);return h.return(f)})};
apa=function(a,b){var c,d,e,f,h,l,m;return g.B(function(n){if(1==n.j)return c={startTime:(0,g.R)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.A(n,Cs(b),2);if(3!=n.j)return d=n.u,e=g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.R)()],l=IDBKeyRange.bound(f,h),m=void 0,g.A(n,g.Wr(d,["LogsRequestsStore"],{mode:"readwrite",jc:!0},function(p){return g.bs(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.Z0=(0,g.R)();$oa(c);return n.return(m)})};
bpa=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,Cs(b),2);c=d.u;return d.return(g.Wr(c,["LogsRequestsStore"],{mode:"readwrite",jc:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.Xr(f,h).then(function(){return h})})}))})};
Es=function(a,b,c){c=void 0===c?!0:c;var d;return g.B(function(e){if(1==e.j)return g.A(e,Cs(b),2);d=e.u;return e.return(g.Wr(d,["LogsRequestsStore"],{mode:"readwrite",jc:!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.Xr(h,l).then(function(){return l})):g.Mr.resolve(void 0)})}))})};
Fs=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,Cs(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})};
cpa=function(a){var b,c;return g.B(function(d){if(1==d.j)return g.A(d,Cs(a),2);b=d.u;c=(0,g.R)()-2592E6;return g.A(d,g.Wr(b,["LogsRequestsStore"],{mode:"readwrite",jc:!0},function(e){return g.$r(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
dpa=function(){g.B(function(a){return g.A(a,Poa(),0)})};
$oa=function(a){g.Q("nwl_csi_killswitch")||.01>=Math.random()&&us("nwl_transaction_latency_payload",a)};
fpa=function(a){return g.es(epa(),a)};
gpa=function(a){var b,c;g.B(function(d){if(1==d.j)return g.A(d,fpa(a),2);b=d.u;c=(0,g.R)()-2592E6;return g.A(d,g.Wr(b,["SWHealthLog"],{mode:"readwrite",jc:!0},function(e){return g.$r(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
hpa=function(a){var b;return g.B(function(c){if(1==c.j)return g.A(c,fpa(a),2);b=c.u;return g.A(c,b.clear("SWHealthLog"),0)})};
g.Gs=function(a,b,c,d,e,f){e=void 0===e?"":e;f=void 0===f?!1:f;if(a)if(c&&!g.Cq())a&&(a=g.Ef(g.Gf(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.Qf(Sf(a)).toString(),a=g.fg(g.zh(a))),g.lb(a)||(a=yg("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),mg(a).body.appendChild(a)));else if(e)oq(a,b,"POST",e,d);else if(g.P("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)oq(a,b,"GET","",d,void 0,f);else{b:{try{var h=new Lfa({url:a});if(h.B&&h.u||h.C){var l=
Dh(g.Fh(5,a));var m=!(!l||!l.endsWith("/aclk")||"1"!==Oh(a,"ri"));break b}}catch(n){}m=!1}m?ipa(a)?(b&&b(),c=!0):c=!1:c=!1;c||jpa(a,b)}};
ipa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
jpa=function(a,b){var c=new Image,d=""+kpa++;Hs[d]=c;c.onload=c.onerror=function(){b&&Hs[d]&&b();delete Hs[d]};
c.src=a};
Is=function(){this.j=new Map;this.u=!1};
Js=function(){if(!Is.j){var a=g.La("yt.networkRequestMonitor.instance")||new Is;g.Ka("yt.networkRequestMonitor.instance",a);Is.j=a}return Is.j};
Ls=function(){Ks||(Ks=new ir("yt.offline"));return Ks};
lpa=function(a){if(g.Q("offline_error_handling")){var b=Ls().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Ls().set("errors",b,2592E3,!0)}};
mpa=function(){if(g.Q("offline_error_handling")){var a=Ls().get("errors",!0);if(a){for(var b in a)if(a[b]){var c=new g.Ar(b,"sent via offline_errors");c.name=a[b].name;c.stack=a[b].stack;c.level=a[b].level;g.Vp(c)}Ls().set("errors",{},2592E3,!0)}}};
Ms=function(){g.kf.call(this);var a=this;this.N=0;this.I=this.C=!1;this.u=this.PG();g.Q("use_shared_nsm")?(this.j=wja(),g.Q("use_shared_nsm_and_keep_yt_online_updated")&&(this.j.Ma("networkstatus-online",function(){a.u=!0;a.I&&mpa()}),this.j.Ma("networkstatus-offline",function(){a.u=!1}))):(npa(this),opa(this))};
ppa=function(){if(!Ms.j){var a=g.La("yt.networkStatusManager.instance")||new Ms;g.Ka("yt.networkStatusManager.instance",a);Ms.j=a}return Ms.j};
opa=function(a){window.addEventListener("online",function(){return g.B(function(b){if(1==b.j)return g.A(b,a.uo(),2);a.I&&mpa();g.va(b)})})};
npa=function(a){window.addEventListener("offline",function(){return g.B(function(b){return g.A(b,a.uo(),0)})})};
qpa=function(a){a.N=g.lr(0,function(){return g.B(function(b){if(1==b.j)return a.u?a.PG()||!a.C?b.Ra(3):g.A(b,a.uo(),3):g.A(b,a.uo(),3);qpa(a);g.va(b)})},rpa)};
g.Ns=function(a){a=void 0===a?{}:a;g.kf.call(this);var b=this;this.u=this.J=0;this.C="ytnetworkstatus-offline";this.D="ytnetworkstatus-online";g.Q("use_shared_nsm")&&(this.C="networkstatus-offline",this.D="networkstatus-online");this.j=ppa();var c=g.La("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.j);c&&c(a.rN);a.ZO&&(c=g.La("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.j))&&c();if(c=g.La("yt.networkStatusManager.instance.listen").bind(this.j))a.cD?(this.cD=
a.cD,c(this.D,function(){spa(b,"publicytnetworkstatus-online")}),c(this.C,function(){spa(b,"publicytnetworkstatus-offline")})):(c(this.D,function(){b.dispatchEvent("publicytnetworkstatus-online")}),c(this.C,function(){b.dispatchEvent("publicytnetworkstatus-offline")}))};
spa=function(a,b){a.cD?a.u?(g.Bn.zj(a.J),a.J=g.Bn.Yg(function(){a.I!==b&&(a.dispatchEvent(b),a.I=b,a.u=(0,g.R)())},a.cD-((0,g.R)()-a.u))):(a.dispatchEvent(b),a.I=b,a.u=(0,g.R)()):a.dispatchEvent(b)};
Os=function(){ns.call(this,{Rf:{uV:cpa,wu:Fs,SN:apa,pX:bpa,fJ:Es,set:Ds},Nf:tpa(),handleError:g.Vp,Ru:Xp,qo:upa,now:g.R,kS:lpa,Pk:g.nr(),GI:"publicytnetworkstatus-online",aI:"publicytnetworkstatus-offline",jB:!0,UA:.1,WC:g.Rp("potential_esf_error_limit",10),fb:g.Q,Ax:!(g.Cr()&&"www.youtube-nocookie.com"!==g.Gh(document.location.toString()))});this.u=new g.qi;g.Q("networkless_immediately_drop_all_requests")&&dpa();Qoa("LogsDatabaseV2")};
Ps=function(){var a=g.La("yt.networklessRequestController.instance");a||(a=new Os,g.Ka("yt.networklessRequestController.instance",a),g.Q("networkless_logging")&&g.ls().then(function(b){a.Re=b;Roa(a);a.u.resolve();a.jB&&Math.random()<=a.UA&&a.Re&&gpa(a.Re);g.Q("networkless_immediately_drop_sw_health_store")&&vpa(a)}));
return a};
vpa=function(a){var b;g.B(function(c){if(!a.Re)throw b=g.Kr("clearSWHealthLogsDb"),b;return c.return(hpa(a.Re).catch(function(d){a.handleError(d)}))})};
upa=function(a,b,c){g.Q("use_cfr_monitor")&&wpa(a,b);var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.R)());c&&0===Object.keys(b).length?g.Gs(a):g.pq(a,b)};
tpa=function(){Qs||(Qs=new g.Ns({ZO:!0,rN:!0}));return Qs};
wpa=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){Js().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){Js().requestComplete(a,!0);d(e,f)}};
xpa=function(a,b){function c(d){var e=Rs().tf();if(!Ss()||!d||e&&g.Q("vss_networkless_bypass_write"))Ts(a,b);else{var f={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0};Ds(f,d).then(function(h){f.id=h;Rs().tf()&&Us(f)}).catch(function(h){Us(f);
Vs(h)})}}
b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.ls().then(function(d){c(d)}):c(ks())};
Ws=function(a,b,c){function d(e){if(Ss()&&e){var f={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0};g.Q("nwl_skip_retry")&&(f.skipRetry=c);if(Rs().tf()||g.Q("nwl_aggressive_send_then_write")&&!f.skipRetry){if(!f.skipRetry){var h=b.onError?b.onError:function(){};
b.onError=function(l,m){return g.B(function(n){if(1==n.j)return g.A(n,Ds(f,e).catch(function(p){Vs(p)}),2);
h(l,m);g.va(n)})}}Ts(a,b,f.skipRetry)}else Ds(f,e).catch(function(l){Ts(a,b,g.Q("nwl_skip_retry")&&c);
Vs(l)})}else Ts(a,b,g.Q("nwl_skip_retry")&&c)}
b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.ls().then(function(e){d(e)}):d(ks())};
Xs=function(a,b){function c(d){if(Ss()&&d){var e={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0},f=!1,h=b.onSuccess?b.onSuccess:function(){};
e.options.onSuccess=function(m,n){g.Q("use_cfr_monitor")&&Js().requestComplete(e.url,!0);void 0!==e.id?Fs(e.id,d):f=!0;g.Q("vss_network_hint")&&Rs().Un(!0);h(m,n)};
if(g.Q("use_cfr_monitor")){var l=b.onError?b.onError:function(){};
e.options.onError=function(m,n){Js().requestComplete(e.url,!1);l(m,n)}}Ts(e.url,e.options);
Ds(e,d).then(function(m){e.id=m;f&&Fs(e.id,d)}).catch(function(m){Vs(m)})}else Ts(a,b)}
b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.ls().then(function(d){c(d)}):c(ks())};
ypa=function(){var a=ks();if(!a)throw g.Kr("throttleSend");Ys||(Ys=g.Bn.Yg(function(){var b;return g.B(function(c){if(1==c.j)return g.A(c,apa("NEW",a),2);if(3!=c.j)return b=c.u,b?g.A(c,Us(b),3):(g.Bn.zj(Ys),Ys=0,c.return());Ys&&(Ys=0,ypa());g.va(c)})},100))};
Us=function(a){var b,c,d;return g.B(function(e){switch(e.j){case 1:b=ks();if(!b)throw c=g.Kr("immediateSend"),c;if(void 0===a.id){e.Ra(2);break}return g.A(e,bpa(a.id,b),3);case 3:(d=e.u)?a=d:Xp(Error("The request cannot be found in the database."));case 2:var f=a.timestamp;if(!(2592E6<=(0,g.R)()-f)){e.Ra(4);break}Xp(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.Ra(5);break}return g.A(e,Fs(a.id,b),5);case 5:return e.return();case 4:a.skipRetry||(a=zpa(a));
f=a;var h,l;if(null==f?0:null==(h=f.options)?0:null==(l=h.postParams)?0:l.requestTimeMs)f.options.postParams.requestTimeMs=Math.round((0,g.R)());a=f;if(!a){e.Ra(0);break}if(!a.skipRetry||void 0===a.id){e.Ra(8);break}return g.A(e,Fs(a.id,b),8);case 8:Ts(a.url,a.options,!!a.skipRetry),g.va(e)}})};
zpa=function(a){var b=ks();if(!b)throw g.Kr("updateRequestHandlers");var c=a.options.onError?a.options.onError:function(){};
a.options.onError=function(e,f){var h,l,m;return g.B(function(n){switch(n.j){case 1:g.Q("use_cfr_monitor")&&Js().requestComplete(a.url,!1);h=Voa(f);if(!(g.Q("nwl_consider_error_code")&&h||!g.Q("nwl_consider_error_code")&&Apa()<=g.Rp("potential_esf_error_limit",10))){n.Ra(2);break}if(g.Q("skip_checking_network_on_cfr_failure")&&(!g.Q("skip_checking_network_on_cfr_failure")||Js().isEndpointCFR(a.url))){n.Ra(3);break}return g.A(n,Rs().uo(),3);case 3:if(Rs().tf()){n.Ra(2);break}c(e,f);if(!g.Q("nwl_consider_error_code")||
void 0===(null==(l=a)?void 0:l.id)){n.Ra(6);break}return g.A(n,Es(a.id,b,!1),6);case 6:return n.return();case 2:if(g.Q("nwl_consider_error_code")&&!h&&Apa()>g.Rp("potential_esf_error_limit",10))return n.return();g.La("ytNetworklessLoggingInitializationOptions")&&Zs.potentialEsfErrorCounter++;$s++;if(void 0===(null==(m=a)?void 0:m.id)){n.Ra(8);break}return 1>a.sendCount?g.A(n,Es(a.id,b),12):g.A(n,Fs(a.id,b),8);case 12:g.Bn.Yg(function(){Rs().tf()&&ypa()},5E3);
case 8:c(e,f),g.va(n)}})};
var d=a.options.onSuccess?a.options.onSuccess:function(){};
a.options.onSuccess=function(e,f){var h;return g.B(function(l){if(1==l.j)return g.Q("use_cfr_monitor")&&Js().requestComplete(a.url,!0),void 0===(null==(h=a)?void 0:h.id)?l.Ra(2):g.A(l,Fs(a.id,b),2);g.Q("vss_network_hint")&&Rs().Un(!0);d(e,f);g.va(l)})};
return a};
Rs=function(){if(g.Q("use_new_nwl"))return tpa();at||(at=new g.Ns({ZO:!0,rN:!0}));return at};
Vs=function(a){Rs().tf()?g.Vp(a):lpa(a)};
Ts=function(a,b,c){c&&0===Object.keys(b).length?g.Gs(a):g.pq(a,b)};
Ss=function(){return g.La("ytNetworklessLoggingInitializationOptions")?Zs.isNwlInitialized:!1};
Apa=function(){return g.La("ytNetworklessLoggingInitializationOptions")?Zs.potentialEsfErrorCounter:$s};
g.bt=function(a){this.config_=null;a?this.config_=a:Rna()&&(this.config_=g.gr())};
g.ct=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.rP.bypassNetworkless?(f.method="POST",d.rP.writeThenSend?g.Q("use_new_nwl_wts")?Ps().writeThenSend(n,f):xpa(n,f):g.Q("use_new_nwl_saw")?Ps().sendAndWrite(n,f):Xs(n,f)):(f.method="POST",f.postParams||(f.postParams={}),g.pq(n,f))}catch(q){if("InvalidAccessError"==q.name)Xp(Error("An extension is blocking network request."));else throw q;}}
!g.P("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&Xp(new g.Ar("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Ar("innertube xhrclient not ready",b,c,d),g.Vp(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_.wO;h&&(c=h);h=$na(a.config_.xO||!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_.pH&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=cq(""+c+b,l);g.Q("use_new_nwl")&&Ps().Se||!g.Q("use_new_nwl")&&
Ss()?Ioa().then(function(p){e(p)}):e(!1)};
Bpa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=dt+"VisibilityState";if(b in a)return a[b]};
et=function(a,b){var c;pl(a,function(d){c=b[d];return!!c});
return c};
ft=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 Cpa||(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){}};
Dpa=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}};
Epa=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 Re(gt,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Pa(e[4])&&g.Pa(d)&&g.Ve(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.ht=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Epa(a,b,c,d);if(e)return e;e=++Fpa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new ft(l);if(!Ig(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new ft(l);
l.currentTarget=a;return c.call(a,l)};
h=Wp(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Gpa()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);gt[e]=[a,b,c,h,d];return e};
Hpa=function(a,b){var c=document.body||document;return g.ht(c,"click",function(d){var e=Ig(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.jt=function(a){a&&("string"==typeof a&&(a=[a]),g.qc(a,function(b){if(b in gt){var c=gt[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Gpa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete gt[b]}}))};
g.kt=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
lt=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.kt(a)};
mt=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};
nt=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.ag(b,c)};
g.ot=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.pt=function(a){a=a||window.event;return!1===a.returnValue||a.CO&&a.CO()};
g.qt=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
Ipa=function(a){return Hpa(a,function(b){return g.eo(b,"ytp-ad-has-logging-urls")})};
g.Jpa=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.ht(a,b,function(){g.jt(e);c.apply(a,arguments)},d)};
rt=function(a){for(var b in gt)gt[b][0]==a&&g.jt(b)};
tt=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.Y=g.ht(window,"mousemove",(0,g.Sa)(this.V,this));this.N=g.lq((0,g.Sa)(this.W,this),25)};
Kpa=function(){var a={},b=void 0===a.X_?!1:a.X_;a=void 0===a.QV?!0:a.QV;if(null==g.La("_lact",window)){var c=parseInt(g.P("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ka("_lact",c,window);g.Ka("_fact",c,window);-1==c&&ut();g.ht(document,"keydown",ut);g.ht(document,"keyup",ut);g.ht(document,"mousedown",ut);g.ht(document,"mouseup",ut);b?g.ht(window,"touchmove",function(){vt("touchmove",200)},{passive:!0}):(g.ht(window,"resize",function(){vt("resize",200)}),a&&g.ht(window,"scroll",function(){vt("scroll",
200)}));
new tt(function(){vt("mouse",100)});
g.ht(document,"touchstart",ut,{passive:!0});g.ht(document,"touchend",ut,{passive:!0})}};
vt=function(a,b){wt[a]||(wt[a]=!0,g.Bn.Yg(function(){ut();wt[a]=!1},b))};
ut=function(){null==g.La("_lact",window)&&(Kpa(),g.La("_lact",window));var a=Date.now();g.Ka("_lact",a,window);-1==g.La("_fact",window)&&g.Ka("_fact",a,window);(a=g.La("ytglobal.ytUtilActivityCallback_"))&&a()};
xt=function(){var a=g.La("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)};
g.Dt=function(a,b,c){var d=g.zt();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){At[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.Bt[a]?h():g.kq(h,0)}catch(l){g.Vp(l)}},c);
At[e]=!0;Ct[a]||(Ct[a]=[]);Ct[a].push(e);return e}return 0};
g.Et=function(a){var b=g.zt();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.qc(a,function(c){b.unsubscribeByKey(c);delete At[c]}))};
g.Ft=function(a,b){var c=g.zt();return c?c.publish.apply(c,arguments):!1};
Mpa=function(a){var b=g.zt();if(b)if(b.clear(a),a)Lpa(a);else for(var c in Ct)Lpa(c)};
g.zt=function(){return g.C.ytPubsubPubsubInstance};
Lpa=function(a){Ct[a]&&(a=Ct[a],g.qc(a,function(b){At[b]&&delete At[b]}),a.length=0)};
Npa=function(){this.B=this.j=this.u=0};
Jt=function(){g.Q("jspb_with_transport_leader")&&!Gt.ytExports.logging.transport.leaderChosen&&(Ht=Gt.ytExports.logging.transport.leaderChosen=!0,document.addEventListener("FLUSH_REQUEST",function(){It(void 0,void 0,!0)}))};
Opa=function(a,b){Jt();if("log_event"===a.endpoint){var c=Kt(a),d=Lt.get(c)||[];Lt.set(c,d);d.push(a.payload);Mt(b,d,c)}};
Ppa=function(a,b){Jt();if("log_event"===a.endpoint){var c=Kt(a,!0);if(g.Q("jspb_with_transport_leader")&&Ht){var d=Nt.get(c)||[];Nt.set(c,d);Gt.ytExports.logging.transport.leaderQueueLength++;d.push(a.payload);Mt(b,d,c,!0)}else d=Ot.get(c)||[],Ot.set(c,d),a=a.payload.toJSON(),d.push(a),Mt(b,d,c,!0)}};
Mt=function(a,b,c,d){d=void 0===d?!1:d;a&&(Pt=new a);a=g.Rp("tvhtml5_logging_max_batch")||g.Rp("web_logging_max_batch")||100;var e=(0,g.R)(),f=d?Qt.B:Rt.B,h=Ot.get(c)||[];g.Q("jspb_with_transport_leader")&&(Ht&&b.length+h.length>=a||!Ht&&Gt.ytExports.logging.transport.leaderQueueLength+b.length>=a)||b.length>=a?It({writeThenSend:!0},g.Q("flush_only_full_queue")?c:void 0,d):10<=e-f&&(Qpa(d),d?Qt.B=e:Rt.B=e)};
Rpa=function(a,b){Jt();if("log_event"===a.endpoint){var c=Kt(a),d=new Map;d.set(c,[a.payload]);b&&(Pt=new b);return new g.Sg(function(e,f){Pt&&Pt.isReady()?St(d,e,f,{bypassNetworkless:!0},!0):e()})}};
Spa=function(a,b){Jt();if("log_event"===a.endpoint){var c=Kt(a,!0),d=new Map,e=new Map;g.Q("jspb_with_transport_leader")&&Ht?e.set(c,[a.payload]):d.set(c,[a.payload.toJSON()]);b&&(Pt=new b);return new g.Sg(function(f){Pt&&Pt.isReady()?Tt(d,e,f,{bypassNetworkless:!0},!0):f()})}};
Kt=function(a,b){var c="";if(a.yx)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Mp;c.videoId?d.setVideoId(c.videoId):c.playlistId&&g.td(d,2,Ut,c.playlistId);Vt[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),Wt[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
It=function(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.Sg(function(d,e){c?(g.mq(Qt.u),g.mq(Qt.j),Qt.j=0):(g.mq(Rt.u),g.mq(Rt.j),Rt.j=0);if(g.Q("jspb_with_transport_leader")&&!Ht)document.dispatchEvent(new CustomEvent("FLUSH_REQUEST")),d();else if(Pt&&Pt.isReady())if(void 0!==b)if(c){e=new Map;var f=new Map,h=Ot.get(b)||[];e.set(b,h);g.Q("jspb_with_transport_leader")&&(h=Nt.get(b)||[],f.set(b,h));Tt(e,f,d,a);g.Q("jspb_with_transport_leader")&&Nt.delete(b);Ot.delete(b)}else f=new Map,h=Lt.get(b)||
[],f.set(b,h),St(f,d,e,a),Lt.delete(b);else c?(Tt(Ot,Nt,d,a),Ot.clear()):(St(Lt,d,e,a),Lt.clear());else Qpa(c),d()})};
Qpa=function(a){a=void 0===a?!1:a;if(g.Q("web_gel_timeout_cap")&&(!a&&!Rt.j||a&&!Qt.j)){var b=g.kq(function(){It({writeThenSend:!0},void 0,a)},6E4);
a?Qt.j=b:Rt.j=b}g.mq(a?Qt.u:Rt.u);b=g.P("LOGGING_BATCH_TIMEOUT",g.Rp("web_gel_debounce_ms",1E4));g.Q("shorten_initial_gel_batch_timeout")&&Xt&&(b=Tpa);b=g.kq(function(){It({writeThenSend:!0},void 0,a)},b);
a?Qt.u=b:Rt.u=b};
St=function(a,b,c,d,e){var f=Pt;d=void 0===d?{}:d;var h=Math.round((0,g.R)()),l=a.size;a=g.r(a);for(var m=a.next();!m.done;m=a.next()){var n=g.r(m.value);m=n.next().value;var p=n.next().value;n=m;m=g.Xe({context:g.hr(f.config_||g.gr())});m.events=p;(p=Wt[n])&&Upa(m,n,p);delete Wt[n];n="visitorOnlyApprovedKey"===n;Vpa(m,h,n);Wpa(d);p=function(){l--;l||b()};
var q=function(){l--;l||b()};
try{g.ct(f,"log_event",m,Xpa(d,n,p,q,e)),Xt=!1}catch(t){g.Vp(t),c()}}};
Tt=function(a,b,c,d,e){var f=Pt;d=void 0===d?{}:d;var h=Math.round((0,g.R)()),l=a.size+b.size,m=new Map([].concat(g.v(a),g.v(b)));m=g.r(m);for(var n=m.next();!n.done;n=m.next()){var p=g.r(n.value).next().value,q=a.get(p),t=b.get(p)||[];n=new Np;var u=Wna(f.config_||g.gr());wd(n,ep,1,u);q=q?Ypa(q):[];q=g.r(q);for(u=q.next();!u.done;u=q.next())Ad(n,3,Kp,u.value);t=g.r(t);for(q=t.next();!q.done;q=t.next())Ad(n,3,Kp,q.value);(t=Vt[p])&&Zpa(n,p,t);delete Vt[p];p="visitorOnlyApprovedKey"===p;$pa(n,h,p);
Wpa(d);n=Fd(n);p=Xpa(d,p,function(){Gt.ytExports.logging.transport.leaderQueueLength=0;l--;l||c()},function(){Gt.ytExports.logging.transport.leaderQueueLength=0;
l--;l||c()},e);
p.headers={"Content-Type":"application/json+protobuf"};p.postBodyFormat="JSPB";p.postBody=n;g.ct(f,"log_event","",p);Xt=!1}};
Wpa=function(a){g.Q("always_send_and_write")&&(a.writeThenSend=!1)};
Xpa=function(a,b,c,d,e){return{retry:!0,onSuccess:c,onError:d,rP:a,yx:b,Jja:!!e,headers:{},postBodyFormat:"",postBody:""}};
Vpa=function(a,b,c){a.requestTimeMs=String(b);g.Q("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.P("EVENT_ID"))&&(c=aqa(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
$pa=function(a,b,c){g.E(a,2,b);if(!c&&(b=g.P("EVENT_ID"))){c=aqa();var d=new Lp;g.E(d,1,b);g.E(d,2,c);wd(a,Lp,5,d)}};
aqa=function(){var a=g.P("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*bqa/2));a++;a>bqa&&(a=1);Pp("BATCH_CLIENT_COUNTER",a);return a};
Upa=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}]};
Zpa=function(a,b,c){if(c.Fh())var d=1;else if(c.getPlaylistId())d=2;else return;wd(a,Mp,4,c);a=a.getContext()||new ep;c=ud(a,dp,3)||new dp;var e=new cp;e.setToken(b);g.E(e,1,d);Ad(c,12,cp,e);wd(a,dp,3,c)};
Ypa=function(a){for(var b=[],c=0;c<a.length;c++)try{b.push(new Kp(a[c]))}catch(d){g.Vp(new g.Ar("Transport failed to deserialize "+String(a[c])))}return b};
Zt=function(a,b,c,d){d=void 0===d?{}:d;if(g.Q("lr_drop_other_and_business_payloads")){if(cqa[a]||dqa[a])return}else if(g.Q("lr_drop_other_payloads")&&cqa[a])return;var e={},f=Math.round(d.timestamp||(0,g.R)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=xt();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.Q("log_sequence_info_on_gel_web")&&d.bk&&(a=e.context,b=d.bk,b={index:eqa(b),groupKey:b},a.sequence=b,d.tN&&delete Yt[d.bk]);(d.pJ?Rpa:Opa)({endpoint:"log_event",payload:e,
cttAuthInfo:d.cttAuthInfo,yx:d.yx},c)};
fqa=function(a){It(void 0,void 0,void 0===a?!1:a)};
eqa=function(a){Yt[a]=a in Yt?Yt[a]+1:0;return Yt[a]};
g.vr=function(a,b,c){c=void 0===c?{}:c;var d=g.bt;g.P("ytLoggingEventsDefaultDisabled",!1)&&g.bt==g.bt&&(d=null);Zt(a,b,d,c)};
$t=function(){g.Q("web_fp_via_jspb")&&fqa(!0);fqa()};
hqa=function(){var a=void 0===a?window.location.href:a;if(g.Q("kevlar_disable_theme_param"))return null;Dh(g.Fh(5,a));try{var b=g.bq(a).theme;return gqa.get(b)||null}catch(c){}return null};
jqa=function(a,b,c){a&&(a.dataset?a.dataset[iqa(b)]=String(c):a.setAttribute("data-"+b,c))};
kqa=function(a){return a?a.dataset?a.dataset[iqa("loaded")]:a.getAttribute("data-loaded"):null};
iqa=function(a){return lqa[a]||(lqa[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
au=function(a){if(a.requestFullscreen)a=a.requestFullscreen(void 0);else if(a.webkitRequestFullscreen)a=a.webkitRequestFullscreen();else if(a.mozRequestFullScreen)a=a.mozRequestFullScreen();else if(a.msRequestFullscreen)a=a.msRequestFullscreen();else if(a.webkitEnterFullscreen)a=a.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return a instanceof Promise?a:Promise.resolve()};
du=function(a){var b;g.bu()?cu()==a&&(b=document):b=a;return b&&(a=et(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
eu=function(a){return g.Ub(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
mqa=function(){var a=document;return g.Ub(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.bu=function(){return!!et(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
cu=function(a){a=void 0===a?!1:a;var b=et(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
fu=function(a){g.I.call(this);this.I=[];this.Ta=a||this};
gu=function(a,b,c,d){for(var e=0;e<c.length;e++)a.P(b,c[e],d)};
g.hu=function(a,b){for(;a.I.length;){var c=a.I.pop(),d=void 0;b&&nqa()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
g.iu=function(a){a=void 0===a?!1:a;g.I.call(this);this.Le=new g.zo(a);g.J(this,this.Le)};
g.ju=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
ku=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.mu=function(a,b,c,d){g.iu.call(this);this.j=!!b;this.I=a;this.V=c||a;this.N=!!d;this.C=new fu(this);g.J(this,this.C);this.D=this.J=null;this.B=this.u=!1;b&&(g.Ee&&a.setAttribute("draggable","true"),a.style.touchAction="none");lu(this)};
nu=function(a,b,c){a.C.P(a.V,b,c,void 0,!a.j)};
ou=function(a){g.hu(a.C,!a.j)};
lu=function(a){a.D=null;a.J=null;nu(a,pu("over"),a.pP);nu(a,"touchstart",a.YJ);a.j&&nu(a,pu("down"),a.DX)};
oqa=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.J)return d}return null};
pu=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
qu=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.We(b);this.assets=a.assets||{};this.attrs=a.attrs||g.We(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
pqa=function(a){a instanceof qu||(a=new qu(a));return a};
qqa=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
rqa=function(){this.Vo=[];this.Tn=[]};
tu=function(){if(!ru){var a=ru=new rqa;a.Tn.length=0;a.Vo.length=0;sqa(a,tqa)}return ru};
sqa=function(a,b){b.Tn&&a.Tn.push.apply(a.Tn,b.Tn);b.Vo&&a.Vo.push.apply(a.Vo,b.Vo)};
uqa=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=uu(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=uu(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=uu(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(d<c)};
uu=function(a){var b=a(),c=b&127;if(128>b)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};
vqa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=vu(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=a[e];var h=b;var l=c;h="string"!==typeof f||"clickTrackingParams"!==e&&"trackingParams"!==e?0:(f=uqa(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?vu(e+".ve",f,h,l):0;d+=h;d+=vu(e,a[e],b,c);if(500<d)break}}else c[b]=wu(a),d+=c[b].length;else c[b]=wu(a),d+=c[b].length;return d};
vu=function(a,b,c,d){c+="."+a;a=wu(b);d[c]=a;return c.length+a.length};
wu=function(a){try{return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}};
xu=function(a,b,c){c=void 0===c?{}:c;var d=Math.round(c.timestamp||(0,g.R)());g.E(a,1,d<Number.MAX_SAFE_INTEGER?d:0);var e=xt();d=new Jp;g.E(d,1,c.timestamp||!isFinite(e)?-1:e);if(g.Q("log_sequence_info_on_gel_web")&&c.bk){e=c.bk;var f=eqa(e),h=new Ip;g.E(h,2,f);g.E(h,1,e);wd(d,Ip,3,h);c.tN&&delete wqa[c.bk]}wd(a,Jp,33,d);(c.pJ?Spa:Ppa)({endpoint:"log_event",payload:a,cttAuthInfo:c.cttAuthInfo,yx:c.yx},b)};
yu=function(a,b){b=void 0===b?{}:b;var c=!1;g.P("ytLoggingEventsDefaultDisabled",!1)&&g.bt===g.bt&&(c=!0);xu(a,c?null:g.bt,b)};
Au=function(a,b){var c=new Kp;xd(c,zp,72,zu,a);yu(c,b)};
xqa=function(a,b,c){var d=new Kp;xd(d,yp,73,zu,a);c?xu(d,c,b):yu(d,b)};
yqa=function(a,b,c){var d=new Kp;xd(d,xp,78,zu,a);c?xu(d,c,b):yu(d,b)};
zqa=function(a,b,c){var d=new Kp;xd(d,Ap,208,zu,a);c?xu(d,c,b):yu(d,b)};
Aqa=function(a,b,c){var d=new Kp;xd(d,up,156,zu,a);c?xu(d,c,b):yu(d,b)};
Bqa=function(a,b,c){var d=new Kp;xd(d,wp,215,zu,a);c?xu(d,c,b):yu(d,b)};
Cqa=function(a,b,c){var d=new Kp;xd(d,pp,111,zu,a);c?xu(d,c,b):yu(d,b)};
ur=function(a){g.S(a)};
g.Bu=function(a){g.S(a,"WARNING")};
g.S=function(a,b){var c=void 0===c?{}:c;c.name=g.P("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.P("INNERTUBE_CONTEXT_CLIENT_VERSION");var d=c||{},e=void 0===b?"ERROR":b;e=void 0===e?"ERROR":e;if(a){a.hasOwnProperty("level")&&a.level&&(e=a.level);if(g.Q("console_log_js_exceptions")){var f=[];f.push("Name: "+a.name);f.push("Message: "+a.message);a.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&f.push("Error args: "+JSON.stringify(a.args));f.push("File name: "+
a.fileName);f.push("Stacktrace: "+a.stack);window.console.log(f.join("\n"),a)}if(!(5<=Dqa)){var h=Eqa,l=Pba(a),m=l.message||"Unknown Error",n=l.name||"UnknownError",p=l.stack||a.u||"Not available";if(p.startsWith(n+": "+m)){var q=p.split("\n");q.shift();p=q.join("\n")}var t=l.lineNumber||"Not available",u=l.fileName||"Not available",x=p,y=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var z=0;z<a.args.length&&!(y=vqa(a.args[z],"params."+z,d,y),500<=y);z++);else if(a.hasOwnProperty("params")&&
a.params){var D=a.params;if("object"===typeof a.params)for(var H in D){if(D[H]){var G="params."+H,L=wu(D[H]);d[G]=L;y+=G.length+L.length;if(500<y)break}}else d.params=wu(D)}if(h.length)for(var aa=0;aa<h.length&&!(y=vqa(h[aa],"params.context."+aa,d,y),500<=y);aa++);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d["device.vendor"]=navigator.vendor);var M={message:m,name:n,lineNumber:t,fileName:u,stack:x,params:d,sampleWeight:1},sa=Number(a.columnNumber);isNaN(sa)||(M.lineNumber=M.lineNumber+":"+sa);
if("IGNORED"===a.level)var za=0;else a:{for(var ba=tu(),qa=g.r(ba.Tn),fb=qa.next();!fb.done;fb=qa.next()){var bb=fb.value;if(M.message&&M.message.match(bb.Iy)){za=bb.weight;break a}}for(var ub=g.r(ba.Vo),vb=ub.next();!vb.done;vb=ub.next()){var tc=vb.value;if(tc.callback(M)){za=tc.weight;break a}}za=1}M.sampleWeight=za;for(var kb=g.r(Fqa),Sb=kb.next();!Sb.done;Sb=kb.next()){var Cb=Sb.value;if(Cb.QC[M.name])for(var oe=g.r(Cb.QC[M.name]),tg=oe.next();!tg.done;tg=oe.next()){var $h=tg.value,lh=M.message.match($h.Ih);
if(lh){M.params["params.error.original"]=lh[0];for(var ij=$h.groups,tf={},oc=0;oc<ij.length;oc++)tf[ij[oc]]=lh[oc+1],M.params["params.error."+ij[oc]]=lh[oc+1];M.message=Cb.SH(tf);break}}}M.params||(M.params={});var Ck=tu();M.params["params.errorServiceSignature"]="msg="+Ck.Tn.length+"&cb="+Ck.Vo.length;M.params["params.serviceWorker"]="false";g.C.document&&g.C.document.querySelectorAll&&(M.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.yf("sample").constructor!==
wf&&(M.params["params.fconst"]="true");window.yterr&&"function"===typeof window.yterr&&window.yterr(M);if(0!==M.sampleWeight&&!Gqa.has(M.message)){if("ERROR"===e){Cu.X("handleError",M);if(g.Q("record_app_crashed_web")&&0===Hqa&&1===M.sampleWeight)if(Hqa++,g.Q("errors_via_jspb")){var mh=new np;g.E(mh,1,1);if(!g.Q("report_client_error_with_app_crash_ks")){var Kn=new jp;g.E(Kn,1,M.message);var Ln=new kp;wd(Ln,jp,3,Kn);var Dk=new lp;wd(Dk,kp,5,Ln);var Mn=new mp;wd(Mn,lp,9,Dk);wd(mh,mp,4,Mn)}var Nn=new Kp;
xd(Nn,np,20,zu,mh);yu(Nn)}else{var On={appCrashType:"APP_CRASH_TYPE_BREAKPAD"};g.Q("report_client_error_with_app_crash_ks")||(On.systemHealth={crashData:{clientError:{logMessage:{message:M.message}}}});g.vr("appCrashed",On)}Iqa++}else"WARNING"===e&&Cu.X("handleWarning",M);if(g.Q("kevlar_gel_error_routing"))a:{var yd=e;if(g.Q("errors_via_jspb")){if(Jqa())var Pn=void 0;else{var ai=new hp;g.E(ai,1,M.stack);M.fileName&&g.E(ai,4,M.fileName);var ad=M.lineNumber&&M.lineNumber.split?M.lineNumber.split(":"):
[];0!==ad.length&&(1!==ad.length||isNaN(Number(ad[0]))?2!==ad.length||isNaN(Number(ad[0]))||isNaN(Number(ad[1]))||(g.E(ai,2,Number(ad[0])),g.E(ai,3,Number(ad[1]))):g.E(ai,2,Number(ad[0])));var nh=new jp;g.E(nh,1,M.message);g.E(nh,3,M.name);g.E(nh,6,M.sampleWeight);"ERROR"===yd?g.E(nh,2,2):"WARNING"===yd?g.E(nh,2,1):g.E(nh,2,0);var oh=new ip;g.E(oh,1,!0);xd(oh,hp,3,Kqa,ai);var ph=new fp;g.E(ph,3,window.location.href);for(var Rq=g.P("FEXP_EXPERIMENTS",[]),Qn=0;Qn<Rq.length;Qn++)g.rd(ph,5,Rq[Qn]);var Ek=
g.P("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Qp("web_disable_gel_stp_ecatcher_killswitch")&&Ek)for(var Rn=g.r(Object.keys(Ek)),qh=Rn.next();!qh.done;qh=Rn.next()){var Rl=qh.value,uf=new gp;g.E(uf,1,Rl);uf.setValue(String(Ek[Rl]));Ad(ph,4,gp,uf)}var jj=M.params;if(jj){var $b=g.r(Object.keys(jj));for(qh=$b.next();!qh.done;qh=$b.next()){var Of=qh.value,kj=new gp;g.E(kj,1,"client."+Of);kj.setValue(String(jj[Of]));Ad(ph,4,gp,kj)}}var Sn=g.P("SERVER_NAME"),Tn=g.P("SERVER_VERSION");if(Sn&&Tn){var Sl=
new gp;g.E(Sl,1,"server.name");Sl.setValue(Sn);Ad(ph,4,gp,Sl);var bi=new gp;g.E(bi,1,"server.version");bi.setValue(Tn);Ad(ph,4,gp,bi)}var lj=new kp;wd(lj,fp,1,ph);wd(lj,ip,2,oh);wd(lj,jp,3,nh);Pn=lj}var mj=Pn;if(!mj)break a;var Un=new Kp;xd(Un,kp,163,zu,mj);yu(Un)}else{if(Jqa())var Tc=void 0;else{var ci={stackTrace:M.stack};M.fileName&&(ci.filename=M.fileName);var vf=M.lineNumber&&M.lineNumber.split?M.lineNumber.split(":"):[];0!==vf.length&&(1!==vf.length||isNaN(Number(vf[0]))?2!==vf.length||isNaN(Number(vf[0]))||
isNaN(Number(vf[1]))||(ci.lineNumber=Number(vf[0]),ci.columnNumber=Number(vf[1])):ci.lineNumber=Number(vf[0]));var Fk={level:"ERROR_LEVEL_UNKNOWN",message:M.message,errorClassName:M.name,sampleWeight:M.sampleWeight};"ERROR"===yd?Fk.level="ERROR_LEVEL_ERROR":"WARNING"===yd&&(Fk.level="ERROR_LEVEL_WARNNING");var nj={isObfuscated:!0,browserStackInfo:ci},ug={pageUrl:window.location.href,kvPairs:[]};g.P("FEXP_EXPERIMENTS")&&(ug.experimentIds=g.P("FEXP_EXPERIMENTS"));var Tl=g.P("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!Qp("web_disable_gel_stp_ecatcher_killswitch")&&Tl)for(var Vn=g.r(Object.keys(Tl)),rh=Vn.next();!rh.done;rh=Vn.next()){var Wn=rh.value;ug.kvPairs.push({key:Wn,value:String(Tl[Wn])})}var pe=M.params;if(pe){var Xn=g.r(Object.keys(pe));for(rh=Xn.next();!rh.done;rh=Xn.next()){var Sq=rh.value;ug.kvPairs.push({key:"client."+Sq,value:String(pe[Sq])})}}var bd=g.P("SERVER_NAME"),Yn=g.P("SERVER_VERSION");bd&&Yn&&(ug.kvPairs.push({key:"server.name",value:bd}),ug.kvPairs.push({key:"server.version",value:Yn}));
Tc={errorMetadata:ug,stackTrace:nj,logMessage:Fk}}var Zn=Tc;if(!Zn)break a;g.vr("clientError",Zn)}("ERROR"===yd||g.Q("errors_flush_gel_always_killswitch"))&&$t()}if(!g.Q("suppress_error_204_logging")){var oj=M.params||{},Pf={urlParams:{a:"logerror",t:"jserror",type:M.name,msg:M.message.substr(0,250),line:M.lineNumber,level:e,"client.name":oj.name},postParams:{url:g.P("PAGE_NAME",window.location.href),file:M.fileName},method:"POST"};oj.version&&(Pf["client.version"]=oj.version);if(Pf.postParams){M.stack&&
(Pf.postParams.stack=M.stack);for(var Ul=g.r(Object.keys(oj)),Vl=Ul.next();!Vl.done;Vl=Ul.next()){var Wl=Vl.value;Pf.postParams["client."+Wl]=oj[Wl]}var Xl=g.P("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(Xl)for(var $n=g.r(Object.keys(Xl)),Vd=$n.next();!Vd.done;Vd=$n.next()){var ao=Vd.value;Pf.postParams[ao]=Xl[ao]}var bo=g.P("SERVER_NAME"),Gk=g.P("SERVER_VERSION");bo&&Gk&&(Pf.postParams["server.name"]=bo,Pf.postParams["server.version"]=Gk)}g.pq(g.P("ECATCHER_REPORT_HOST","")+"/error_204",Pf)}try{Gqa.add(M.message)}catch(sh){}Dqa++}}}};
Jqa=function(){for(var a=g.r(Lqa),b=a.next();!b.done;b=a.next())if(Aq(b.value.toLowerCase()))return!0;return!1};
Mqa=function(a){var b=g.Ea.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.v(b))};
Du=function(a){this.j=a};
g.Eu=function(a){return new Du({trackingParams:a})};
Oqa=function(a){var b=Nqa++;return new Du({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0})};
Gu=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(a),c=new Uint8Array(a);window.crypto.getRandomValues(c);for(var d=0;d<b.length;d++)b[d]=c[d];return b}catch(f){}b=Array(a);for(c=0;c<a;c++){d=Date.now();for(var e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(256*Math.random())}if(Fu)for(c=1,d=0;d<Fu.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^Fu.charCodeAt(d),c++;return b};
g.Hu=function(a){a=Gu(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Pqa=function(){return g.kk(Gu(16),function(a){return(a&15).toString(16)}).join("")};
Iu=function(a){a=void 0===a?0:a;return 0===a?"client-screen-nonce":"client-screen-nonce."+a};
Ju=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Qqa=function(a){return g.P(Ju(void 0===a?0:a))};
g.Ku=function(a){return(a=Qqa(void 0===a?0:a))?new Du({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Rqa=function(){var a=g.P("csn-to-ctt-auth-info");a||(a={},Pp("csn-to-ctt-auth-info",a));return a};
g.Lu=function(a){a=g.P(Iu(void 0===a?0:a));if(!a&&!g.P("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
Sqa=function(a,b,c){var d=Rqa();(c=g.Lu(c))&&delete d[c];b&&(d[a]=b)};
Mu=function(a){return Rqa()[a]};
Uqa=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.P(Iu(c))||b!==g.P(Ju(c)))Sqa(a,d,c),Pp(Iu(c),a),Pp(Ju(c),b),b=function(){setTimeout(function(){if(a)if(g.Q("web_time_via_jspb")){var e=new pp;g.E(e,1,Tqa);g.E(e,2,a);g.Q("use_default_heartbeat_client")?Cqa(e):Cqa(e,void 0,g.bt)}else e={clientDocumentNonce:Tqa,clientScreenNonce:a},g.Q("use_default_heartbeat_client")?g.vr("foregroundHeartbeatScreenAssociated",e):Zt("foregroundHeartbeatScreenAssociated",e,g.bt)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):
b()};
Nu=function(a){qs.call(this,1,arguments);this.csn=a};
Yqa=function(a,b,c,d,e,f,h){function l(){g.Bu(new g.Ar("newScreen() parent element does not have a VE - rootVe",b))}
var m=Vqa();f=new Du({veType:b,youtubeData:f,jspbYoutubeData:void 0});e={cttAuthInfo:e,bk:m};if(g.Q("il_via_jspb")){var n=new up;n.Mh(m);uka(n,f.getAsJspb());c&&c.visualElement?(f=new vp,c.clientScreenNonce&&g.E(f,2,c.clientScreenNonce),vka(f,c.visualElement.getAsJspb()),h&&g.E(f,4,Wqa[h]),wd(n,vp,5,f)):c&&l();d&&g.E(n,3,d);Aqa(n,e,a)}else f={csn:m,pageVe:f.getAsJson()},c&&c.visualElement?(f.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},h&&(f.implicitGesture.gestureType=
h)):c&&l(),d&&(f.cloneCsn=d),a?Zt("screenCreated",f,a,e):g.vr("screenCreated",f,e);us(Xqa,new Nu(m));return m};
g.Pu=function(a,b,c,d){var e=d.filter(function(m){m.csn!==b?(m.csn=b,m=!0):m=!1;return m}),f={cttAuthInfo:Mu(b),
bk:b};d=g.r(d);for(var h=d.next();!h.done;h=d.next())h=h.value.getAsJson(),(g.Se(h)||!h.trackingParams&&!h.veType)&&g.Bu(Error("Child VE logged with no data"));if(g.Q("il_via_jspb")){var l=new wp;l.Mh(b);xka(l,c.getAsJspb());g.kk(e,function(m){m=m.getAsJspb();Ad(l,3,op,m)});
"UNDEFINED_CSN"==b?Ou("visualElementAttached",l,f):Bqa(l,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.kk(e,function(m){return m.getAsJson()})},"UNDEFINED_CSN"==b?Ou("visualElementAttached",c,f):a?Zt("visualElementAttached",c,a,f):g.vr("visualElementAttached",c,f)};
g.Qu=function(a,b,c){var d={cttAuthInfo:Mu(a),bk:a};if(g.Q("il_via_jspb")){var e=new zp;e.Mh(a);b=b.getAsJspb();wd(e,op,2,b);g.E(e,4,1);c&&wd(e,tp,3);"UNDEFINED_CSN"==a?Ou("visualElementShown",e,d):Au(e,d)}else e={csn:a,ve:b.getAsJson(),eventType:1},c&&(e.clientData=c),"UNDEFINED_CSN"==a?Ou("visualElementShown",e,d):g.vr("visualElementShown",e,d)};
Zqa=function(a,b,c,d){var e=(d=void 0===d?!1:d)?16:8,f={cttAuthInfo:Mu(b),bk:b,tN:d};g.Q("il_via_jspb")?(e=new zp,e.Mh(b),c=c.getAsJspb(),wd(e,op,2,c),g.E(e,4,d?16:8),"UNDEFINED_CSN"==b?Ou("visualElementHidden",e,f):xqa(e,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},"UNDEFINED_CSN"==b?Ou("visualElementHidden",d,f):a?Zt("visualElementHidden",d,a,f):g.vr("visualElementHidden",d,f))};
$qa=function(a,b,c,d){var e={cttAuthInfo:Mu(b),bk:b};if(g.Q("il_via_jspb")){var f=new xp;f.Mh(b);c=c.getAsJspb();wd(f,op,2,c);g.E(f,4,Wqa.INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK);d&&wd(f,tp,3);"UNDEFINED_CSN"==b?Ou("visualElementGestured",f,e):yqa(f,e,a)}else f={csn:b,ve:c.getAsJson(),gestureType:"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"},d&&(f.clientData=d),"UNDEFINED_CSN"==b?Ou("visualElementGestured",f,e):a?Zt("visualElementGestured",f,a,e):g.vr("visualElementGestured",f,e)};
ara=function(){return g.Dc(Math.random()+"")};
Ou=function(a,b,c){Ru.push({payloadName:a,payload:b,options:c});Su||(Su=ys(Xqa,bra))};
bra=function(a){if(Ru){for(var b=g.r(Ru),c=b.next();!c.done;c=b.next())if(c=c.value,c.payload)if(g.Q("il_via_jspb"))switch(c.payload.Mh(a.csn),c.payloadName){case "screenCreated":Aqa(c.payload,c.options);break;case "visualElementAttached":Bqa(c.payload,c.options);break;case "visualElementShown":Au(c.payload,c.options);break;case "visualElementHidden":xqa(c.payload,c.options);break;case "visualElementGestured":yqa(c.payload,c.options);break;case "visualElementStateChanged":zqa(c.payload,c.options);
break;default:g.Bu(new g.Ar("flushQueue unable to map payloadName to JSPB setter"))}else c.payload.csn=a.csn,Zt(c.payloadName,c.payload,null,c.options);Ru.length=0}Su=0};
g.Tu=function(a,b){g.qc(b,function(c){var d={cttAuthInfo:Mu(a),bk:a};if(g.Q("il_via_jspb")){var e=new zp;e.Mh(a);c=c.getAsJspb();wd(e,op,2,c);g.E(e,4,4);"UNDEFINED_CSN"==a?Ou("visualElementShown",e,d):Au(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"==a?Ou("visualElementShown",e,d):g.vr("visualElementShown",e,d)})};
g.Uu=function(a,b){g.qc(b,function(c){Zqa(void 0,a,c)})};
g.Vu=function(a,b,c){$qa(void 0,a,b,c)};
Wu=function(){this.u=new Set;this.j=new Set;this.B=new Map};
g.Zu=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.Xu)():Yu())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.$u=function(a){var b=Yu(),c=(0,g.Xu)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if("string"!==typeof d)try{d=c.get(a)}catch(e){}if("string"!==typeof d)return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
cra=function(){var a=(0,g.Xu)();if(a&&(a=a.u("yt-player-quality")))return a.creation};
g.av=function(a){try{var b=Yu(),c=(0,g.Xu)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.bv=function(){return g.$u("yt-remote-session-screen-id")};
g.cv=function(a,b,c){c=void 0===c?null:c;if(window.spf&&spf.script){c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1<d&&-1<e&&e>f&&(c=a.substring(f,e),c=c.replace(dra,""),c=c.replace(era,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else fra(a,b,c)};
fra=function(a,b,c){c=void 0===c?null:c;var d=gra(a),e=document.getElementById(d),f=e&&kqa(e),h=e&&!f;f?b&&b():(b&&(f=g.Dt(d,b),b=""+g.Ra(b),hra[b]=f),h||(e=ira(a,d,function(){kqa(e)||(jqa(e,"loaded","true"),g.Ft(d),g.kq(g.Ta(Mpa,d),0))},c)))};
ira=function(a,b,c,d){d=void 0===d?null:d;var e=g.zg("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.ui(e,g.Bf(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
gra=function(a){var b=document.createElement("a");g.Uf(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+jg(a)};
fv=function(a){var b=g.Ea.apply(1,arguments);if(!dv(a)||b.some(function(d){return!dv(d)}))throw Error("Only objects may be merged.");
b=g.r(b);for(var c=b.next();!c.done;c=b.next())ev(a,c.value);return a};
ev=function(a,b){for(var c in b)if(dv(b[c])){if(c in a&&!dv(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});ev(a[c],b[c])}else if(gv(b[c])){if(c in a&&!gv(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);jra(a[c],b[c])}else a[c]=b[c];return a};
jra=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,dv(c)?a.push(ev({},c)):gv(c)?a.push(jra([],c)):a.push(c);return a};
dv=function(a){return"object"===typeof a&&!Array.isArray(a)};
gv=function(a){return"object"===typeof a&&Array.isArray(a)};
hv=function(a,b,c,d,e,f){g.I.call(this);this.Pb=a;this.yb=b;this.Cd=c;this.Qa=d;this.u=e;this.j=f};
mra=function(a,b,c){c.Yv?(iv(a.Pb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),kra(a.u,b)):lra(a.j,c.hn,b.slotId)};
ora=function(a,b,c,d){var e=a.Qa.get().Gf(1);iv(a.Pb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return nra(a.Cd.get(),c,d,e.clientPlaybackNonce,e.dN,e.daiEnabled,e)},b)};
kv=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.r(b);for(c=b.next();!c.done;c=b.next())if(!jv(a.Aa,c.value))return!1;return!0};
lv=function(a,b){this.Do=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
qra=function(a){pra=void 0===a?!1:a};
T=function(a,b,c,d,e){d=void 0===d?{}:d;pra&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.Ar(a);if(a.args)for(var f=g.r(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.Bu(a)}};
mv=function(a,b,c,d,e,f,h){g.I.call(this);this.Pb=a;this.Cd=b;this.pF=c;this.Ja=d;this.j=e;this.Qa=f;this.Ca=h};
nv=function(){this.u=new Map;this.j=new Map;this.B=new Map};
ov=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return g.Hu(16)};
pv=function(a,b,c){if(g.P("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.Hu(16)};
qv=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.Hu(16)};
rv=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};
rra=function(a,b,c,d){this.B=a;this.hf=null;this.u=b;this.j=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d};
tv=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Bu(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
uv=function(a,b){return b&&b.test(a)?!0:!1};
vv=function(a){return(a=sra&&sra.exec(a))?a[0]:""};
wv=function(a){var b=void 0===b?!1:b;return tv(uv(a,tra),a,b,"Trusted Stream URL")};
g.xv=function(a){var b=void 0===b?!1:b;return tv(uv(a,ura),a,b,"Trusted Image URL")};
wra=function(a){var b=void 0===b?!1:b;return tv(uv(a,vra),a,b,"Trusted Promoted Video Domain URL")};
yra=function(a){var b=void 0===b?!1:b;return tv(uv(a,xra),a,b,"Drm Licensor URL")};
Ara=function(a,b){b=void 0===b?!1:b;return tv(uv(a,zra),a,b,"Captions URL")};
Bra=function(a){a=new g.Si(a);g.Ti(a,document.location.protocol);g.Ui(a,document.location.hostname);document.location.port&&g.Vi(a,document.location.port);return a.toString()};
yv=function(a){a=new g.Si(a);g.Ti(a,document.location.protocol);return a.toString()};
g.Av=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=Cra++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||zv.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.lk(d.thumbnails,function(e){return g.xv(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
Dra=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Era=function(a,b){switch(a.style){case zv.CHAPTER_MARKER:return b?8:5;case zv.AD_MARKER:return 6;case zv.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.Bv=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u};
g.Cv=function(a){return"crn_"+a};
g.Dv=function(a){return"crx_"+a};
Ev=function(a,b,c,d,e){g.Av.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};
Fv=function(a){return"AD_PLACEMENT_KIND_START"==a.j};
Fra=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j};
Gra=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new wo(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new wo(Math.max(0,b.B-b.j),0x7ffffffffffff):new wo(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 wo(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.hf;a=1E3*d.startSecs;if(c){if(a<b.u)return new wo(a-4E3,a);c=Math.max(0,a-b.u-1E4);return new wo(b.C?b.u:Math.floor(b.u+Math.random()*c),a)}return new wo(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
Gv=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.Hv=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.r(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
g.Iv=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];if(d.text){var e=b,f=e.push,h=null;var l=d.text;d.bold&&(h=yg("B",null,h||l));d.italics&&(h=yg("I",null,h||l));d.strikethrough&&(h=yg("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=yg("A",null,h||l),g.Uf(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||yg("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:yg("SPAN",null,b)};
Jv=function(a,b,c){c=void 0===c?!1:c;Za.call(this,a);this.Rq=c;this.args=[];b&&this.args.push(b)};
Hra=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Gm:new wo(-0x8000000000000,-0x8000000000000),bD:d},null!=c&&(d.Au=new wo(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Gm:new wo(0x7ffffffffffff,0x8000000000000),bD:d},null!=c&&(d.Au=new wo(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new Jv("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Gm:new wo(a,e),bD:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Au=new wo(a,e)}return d;default:return new Jv("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
Kv=function(a,b){qs.call(this,1,arguments);this.timer=b};
Ira=function(a,b){qs.call(this,1,arguments);this.j=a;this.timer=b};
Jra=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
Kra=function(a){var b=Lv(a);if(b.aft)return b.aft;a=g.P((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=a.length,d=0;d<c;d++){var e=b[a[d]];if(e)return e}return NaN};
Lra=function(){var a;if(g.Q("csi_use_performance_navigation_timing")){var b,c,d,e=null==Uv?void 0:null==(a=Uv.getEntriesByType)?void 0:null==(b=a.call(Uv,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=Vv(e.requestStart),e.responseEnd=Vv(e.responseEnd),e.redirectStart=Vv(e.redirectStart),e.redirectEnd=Vv(e.redirectEnd),e.domainLookupEnd=Vv(e.domainLookupEnd),e.connectStart=Vv(e.connectStart),e.connectEnd=Vv(e.connectEnd),e.responseStart=Vv(e.responseStart),
e.secureConnectionStart=Vv(e.secureConnectionStart),e.domainLookupStart=Vv(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=Uv.timing}else a=Uv.timing;return a};
Wv=function(){return g.Q("csi_use_time_origin")&&Uv.timeOrigin?Math.floor(Uv.timeOrigin):Uv.timing.navigationStart};
Vv=function(a){return Math.round(Wv()+a)};
Xv=function(a,b){g.Ka("ytglobal.timing"+(b||"")+"ready_",a)};
Yv=function(a){return g.La("ytcsi."+(a||"")+"data_")||Mra(a)};
Zv=function(a){a=Yv(a);a.info||(a.info={});return a.info};
Lv=function(a){a=Yv(a);a.tick||(a.tick={});return a.tick};
$v=function(a){a=Yv(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
aw=function(a){a=$v(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
Nra=function(a){a=$v(a);a.jspbInfos||(a.jspbInfos=[]);return a.jspbInfos};
bw=function(a){var b=Yv(a).nonce;b||(b=g.Hu(16),Yv(a).nonce=b);return b};
Mra=function(a){var b={tick:{},info:{}};g.Ka("ytcsi."+(a||"")+"data_",b);return b};
Qra=function(a){var b=Lv(a||""),c=Kra(a);c&&!Ora&&(us(Pra,new Kv(Math.round(c-b._start),a)),Ora=!0)};
Rra=function(a,b){for(var c=g.r(Object.keys(b)),d=c.next();!d.done;d=c.next())if(d=d.value,!Object.keys(a).includes(d)||"object"===typeof b[d]&&!Rra(a[d],b[d]))return!1;return!0};
Sra=function(){if(Uv.getEntriesByType){var a=Uv.getEntriesByType("paint");if(a=g.Ub(a,function(b){return"first-paint"===b.name}))return Vv(a.startTime)}a=Uv.timing;
return a.KX?Math.max(0,a.KX):0};
cw=function(){var a=g.La("ytcsi.debug");a||(a=[],g.Ka("ytcsi.debug",a),g.Ka("ytcsi.reference",{}));return a};
dw=function(a){a=a||"";var b=Tra();if(b[a])return b[a];var c=cw(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
ew=function(a){a=a||"";var b=Tra();b[a]&&delete b[a];var c=cw(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
Tra=function(){var a=g.La("ytcsi.reference");if(a)return a;cw();return g.La("ytcsi.reference")};
fw=function(a){return Ura[a]||"LATENCY_ACTION_UNKNOWN"};
Zra=function(a,b,c){c=$v(c);if(c.gelInfos)c.gelInfos[a]=!0;else{var d={};c.gelInfos=(d[a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in Vra){c=Vra[a];g.Xb(Wra,c)&&(b=!!b);a in Xra&&"string"===typeof b&&(b=Xra[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;h<b.length-1;h++){var l=b[h];f[l]={};f=f[l]}f[b[b.length-1]]="requestIds"===c?[{id:a,endpoint:e}]:a;return fv({},d)}g.Xb(Yra,a)||g.Bu(new g.Ar("Unknown label logged with GEL CSI",a))};
gw=function(){this.j=0};
hw=function(){gw.j||(gw.j=new gw);return gw.j};
jw=function(a,b){iw[b]=iw[b]||{count:0};var c=iw[b];c.count++;c.time=(0,g.R)();a.j||(a.j=g.lr(0,function(){var d=(0,g.R)(),e;for(e in iw)iw[e]&&6E4<d-iw[e].time&&delete iw[e];a&&(a.j=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.Ar("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.Bu(c)),!0):!1};
kw=function(a){Mra(a);$ra();a||(g.P("TIMING_ACTION")&&Pp("PREVIOUS_ACTION",g.P("TIMING_ACTION")),Pp("TIMING_ACTION",""))};
ow=function(a,b){b=void 0===b?{}:b;lw(a);ew(a);kw(a);Yv(a).useGel=!0;dw(a||"").info.actionType=a;b.cttAuthInfo&&(Yv(a).cttAuthInfo=b.cttAuthInfo);Pp(a+"TIMING_ACTION",a);mw("_start",b.startTime,a);b={actionType:fw(a)};var c=g.Lu();c&&"UNDEFINED_CSN"!==c&&(b.clientScreenNonce=c);nw(b,a);Xv(!0,a)};
g.pw=function(a,b,c,d){null!==b&&(Zv(c)[a]=b,(a=Zra(a,b,c))&&nw(a,c,d))};
nw=function(a,b,c){if(!g.Q("web_csi_via_jspb")||(void 0===c?0:c))c=dw(b||""),fv(c.info,a),fv(aw(b),a),c=bw(b),b=Yv(b).cttAuthInfo,hw().info(a,c,b);else{c=new Ep;var d=Object.keys(a);a=Object.values(a);for(var e=0;e<d.length;e++){var f=d[e];try{switch(f){case "actionType":Aka(c,U[a[e]]);break;case "clientActionNonce":g.E(c,2,a[e]);break;case "clientScreenNonce":g.E(c,4,a[e]);break;case "loadType":g.E(c,3,a[e]);break;case "isPrewarmedLaunch":g.E(c,92,a[e]);break;case "isFirstInstall":g.E(c,55,a[e]);
break;case "networkType":g.E(c,5,qw[a[e]]);break;case "connectionType":g.E(c,26,rw[a[e]]);break;case "detailedConnectionType":g.E(c,27,tw[a[e]]);break;case "isVisible":g.E(c,6,a[e]);break;case "playerType":g.E(c,7,uw[a[e]]);break;case "clientPlaybackNonce":g.E(c,8,a[e]);break;case "adClientPlaybackNonce":g.E(c,28,a[e]);break;case "previousCpn":g.E(c,77,a[e]);break;case "targetCpn":g.E(c,76,a[e]);break;case "isMonetized":g.E(c,9,a[e]);break;case "isPrerollAllowed":g.E(c,16,a[e]);break;case "isPrerollShown":g.E(c,
17,a[e]);break;case "adType":g.E(c,12,a[e]);break;case "adTypesAllowed":g.E(c,36,a[e]);break;case "adNetworks":g.E(c,37,a[e]);break;case "previousAction":g.E(c,13,U[a[e]]);break;case "isRedSubscriber":g.E(c,14,a[e]);break;case "serverTimeMs":g.E(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":g.E(c,20,a[e]);break;case "targetVideoId":g.E(c,78,a[e]);break;case "adBreakType":g.E(c,21,vw[a[e]]);break;case "isNavigation":Bka(c,a[e]);break;case "viewportHeight":g.E(c,29,a[e]);
break;case "viewportWidth":g.E(c,30,a[e]);break;case "screenHeight":g.E(c,84,a[e]);break;case "screenWidth":g.E(c,85,a[e]);break;case "browseId":g.E(c,31,a[e]);break;case "isCacheHit":g.E(c,32,a[e]);break;case "httpProtocol":g.E(c,33,a[e]);break;case "transportProtocol":g.E(c,34,a[e]);break;case "searchQuery":g.E(c,41,a[e]);break;case "isContinuation":g.E(c,42,a[e]);break;case "availableProcessors":g.E(c,43,a[e]);break;case "sdk":g.E(c,44,a[e]);break;case "isLocalStream":g.E(c,45,a[e]);break;case "navigationRequestedSameUrl":g.E(c,
64,a[e]);break;case "shellStartupDurationMs":g.E(c,70,a[e]);break;case "appInstallDataAgeMs":g.E(c,73,a[e]);break;case "latencyActionError":g.E(c,71,ww[a[e]]);break;case "actionStep":g.E(c,79,a[e]);break;case "jsHeapSizeLimit":g.E(c,80,a[e]);break;case "totalJsHeapSize":g.E(c,81,a[e]);break;case "usedJsHeapSize":g.E(c,82,a[e]);break;case "sourceVideoDurationMs":g.E(c,90,a[e]);break;case "videoOutputFrames":g.E(c,93,a[e]);break;case "adPrebufferedTimeSecs":g.E(c,39,a[e]);break;case "isLivestream":g.E(c,
47,a[e]);break;case "liveStreamMode":g.E(c,91,xw[a[e]]);break;case "adCpn2":g.E(c,48,a[e]);break;case "adDaiDriftMillis":g.E(c,49,a[e]);break;case "videoStreamType":g.E(c,53,yw[a[e]]);break;case "playbackRequiresTap":g.E(c,56,a[e]);break;case "performanceNavigationTiming":g.E(c,67,a[e]);break;case "transactionType":g.E(c,74,zw[a[e]]);break;case "playerRotationType":g.E(c,101,Aw[a[e]]);break;case "allowedPreroll":g.E(c,10,a[e]);break;case "shownPreroll":g.E(c,11,a[e]);break;case "getHomeRequestId":g.E(c,
57,a[e]);break;case "getSearchRequestId":g.E(c,60,a[e]);break;case "getPlayerRequestId":g.E(c,61,a[e]);break;case "getWatchNextRequestId":g.E(c,62,a[e]);break;case "getBrowseRequestId":g.E(c,63,a[e]);break;case "getLibraryRequestId":g.E(c,66,a[e]);break;default:asa.includes(f)&&g.Vp(new g.Ar("Codegen laipb translator asked to translate message field",""+f))}}catch(h){g.Vp(Error("Codegen laipb translator failed to set "+f))}}Bw(c,b)}};
Bw=function(a,b){Nra(b).push(a);dw(b||"").jspbInfo.push(a);var c=bw(b);b=Yv(b).cttAuthInfo;hw().jspbInfo(a,c,b)};
mw=function(a,b,c){if(!b&&"_"!==a[0]){var d=a;Uv.mark&&(ib(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),Uv.mark(d))}d=dw(c||"");d.tick[a]=b||(0,g.R)();if(d.callback&&d.callback[a]){d=g.r(d.callback[a]);for(var e=d.next();!e.done;e=d.next())e=e.value,e()}d=$v(c);d.gelTicks&&(d.gelTicks[a]=!0);d=Lv(c);e=b||(0,g.R)();d[a]=e;e=bw(c);var f=Yv(c).cttAuthInfo;if("_start"===a){var h=hw();jw(h,"baseline_"+e)||(b={timestamp:b,cttAuthInfo:f},g.Q("web_csi_via_jspb")?(f=new Bp,g.E(f,1,e),e=new Kp,xd(e,Bp,6,zu,
f),yu(e,b)):g.vr("latencyActionBaselined",{clientActionNonce:e},b))}else hw().tick(a,e,b,f);Qra(c);return d[a]};
bsa=function(a){var b="above_the_fold";Uv&&Uv.measure&&(ib(b,"measure_")||(b="measure_"+b),a?Uv.measure(b,a):Uv.measure(b))};
csa=function(a){var b=Zv(a),c=aw(a);a=Nra(a);for(var d=0;d<a.length;d++);return!!("ad_at"in b||"ad_at"in c)};
Cw=function(a,b){b=Lv(b);return a in b};
Dw=function(a,b,c){Cw("_start",c)&&!Cw(a,c)&&mw(a,b,c)};
Ew=function(){switch(Bpa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
lw=function(a){Cw("_start",a)&&mw("aa",void 0,a)};
gsa=function(){function a(f){var h=Lra(),l=Wv(),m=g.P("CSI_START_TIMESTAMP_MILLIS",0);0<m&&!g.Q("embeds_web_enable_csi_start_override_killswitch")&&(l=m);l&&(mw("srt",h.responseStart),1!==f.prerender&&mw("_start",l,void 0));f=Sra();0<f&&mw("fpt",f);f=Lra();f.isPerformanceNavigationTiming&&nw({performanceNavigationTiming:!0});mw("nreqs",f.requestStart,void 0);mw("nress",f.responseStart,void 0);mw("nrese",f.responseEnd,void 0);0<f.redirectEnd-f.redirectStart&&(mw("nrs",f.redirectStart,void 0),mw("nre",
f.redirectEnd,void 0));0<f.domainLookupEnd-f.domainLookupStart&&(mw("ndnss",f.domainLookupStart,void 0),mw("ndnse",f.domainLookupEnd,void 0));0<f.connectEnd-f.connectStart&&(mw("ntcps",f.connectStart,void 0),mw("ntcpe",f.connectEnd,void 0));f.secureConnectionStart>=Wv()&&0<f.connectEnd-f.secureConnectionStart&&(mw("nstcps",f.secureConnectionStart,void 0),mw("ntcpe",f.connectEnd,void 0));Uv&&"getEntriesByType"in Uv&&dsa()}
var b=g.P("TIMING_INFO",{});if(g.Q("web_csi_via_jspb")){b=esa(b);Bw(b);b=Aka(Bka(new Ep,!0),U[fw(g.P("TIMING_ACTION"))]);var c=g.P("PREVIOUS_ACTION");c&&g.E(b,13,U[fw(c)]);(c=g.P("CLIENT_PROTOCOL"))&&g.E(b,33,c);(c=g.P("CLIENT_TRANSPORT"))&&g.E(b,34,c);(c=g.Lu())&&"UNDEFINED_CSN"!==c&&g.E(b,4,c);c=Ew();1!==c&&-1!==c||g.E(b,6,!0);c=Zv();if("cold"===c.yt_lt&&(g.E(b,3,"cold"),a(c),c=fsa(),0<c.length)){c=g.r(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=new Dp;g.E(e,1,d);Ad(b,83,Dp,e)}}Bw(b)}else{for(c in b)b.hasOwnProperty(c)&&
g.pw(c,b[c]);b={isNavigation:!0,actionType:fw(g.P("TIMING_ACTION"))};if(c=g.P("PREVIOUS_ACTION"))b.previousAction=fw(c);if(c=g.P("CLIENT_PROTOCOL"))b.httpProtocol=c;if(c=g.P("CLIENT_TRANSPORT"))b.transportProtocol=c;(c=g.Lu())&&"UNDEFINED_CSN"!==c&&(b.clientScreenNonce=c);c=Ew();if(1===c||-1===c)b.isVisible=!0;c=Zv();if("cold"===c.yt_lt&&(b.loadType="cold",a(c),c=fsa(),0<c.length))for(b.resourceInfo=[],c=g.r(c),d=c.next();!d.done;d=c.next())b.resourceInfo.push({resourceCache:d.value});nw(b)}};
esa=function(a){var b=new Ep;a=g.r(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;switch(c){case "GetBrowse_rid":var e=new Fp;g.E(e,1,c);g.E(e,2,String(d));Gp(b,e);break;case "GetGuide_rid":e=new Fp;g.E(e,1,c);g.E(e,2,String(d));Gp(b,e);break;case "GetHome_rid":e=new Fp;g.E(e,1,c);g.E(e,2,String(d));Gp(b,e);break;case "GetPlayer_rid":e=new Fp;g.E(e,1,c);g.E(e,2,String(d));Gp(b,e);break;case "GetSearch_rid":e=new Fp;g.E(e,1,c);g.E(e,2,
String(d));Gp(b,e);break;case "GetSettings_rid":e=new Fp;g.E(e,1,c);g.E(e,2,String(d));Gp(b,e);break;case "GetTrending_rid":e=new Fp;g.E(e,1,c);g.E(e,2,String(d));Gp(b,e);break;case "GetWatchNext_rid":e=new Fp;g.E(e,1,c);g.E(e,2,String(d));Gp(b,e);break;case "yt_red":g.E(b,14,!!d);break;case "yt_ad":g.E(b,9,!!d)}}return b};
hsa=function(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;"SCRIPT"===d?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):"LINK"===d&&(c=a.href);Wf()&&a.setAttribute("nonce",Wf());return c?(a=Uv.getEntriesByName(c))&&a[0]&&(a=a[0],c=Wv(),mw("rsf_"+b,c+Math.round(a.fetchStart)),mw("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
fsa=function(){var a=[];if(document.querySelector&&Uv&&Uv.getEntriesByName)for(var b in Fw)if(Fw.hasOwnProperty(b)){var c=Fw[b];hsa(b,c)&&a.push(c)}return a};
dsa=function(){var a=window.location.protocol,b=Uv.getEntriesByType("resource");b=g.cm(b,function(c){return 0===c.name.indexOf(a+"//web.archive.org/web/20220603021303/https://fonts.gstatic.com/s/")});
(b=mk(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(mw("wffs",Vv(b.startTime)),mw("wffe",Vv(b.responseEnd)))};
Hw=function(){return g.hs||g.Gw||g.Cq()&&19>nna()?!1:!("function"!==typeof window.fetch||!window.ReadableStream)};
Iw=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
g.Jw=function(a,b){this.id=a;this.Fc=b;this.captionTracks=[];this.j=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
Kw=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.j=b||0};
g.Mw=function(a,b,c,d){return new Kw(g.Lw[a]||0,g.Lw[b]||0,c,d)};
Nw=function(a){var b=g.Lw.auto;return a.u===b&&a.j===b};
Pw=function(a){return Ow[a.j||a.u]||"auto"};
isa=function(a,b){b=g.Lw[b];return a.u<=b&&(!a.j||a.j>=b)};
Qw=function(a,b){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;b=g.r(this.j);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.Fc&&!a.has(c.Fc.id)){var d=new g.Jw(c.id,c.Fc);a.add(c.Fc.id);this.audioTracks.push(d)}}};
msa=function(a,b,c,d,e){var f={},h=new Set,l={};if(Rw(c)){for(var m in c.j)c.j.hasOwnProperty(m)&&(a=c.j[m],l[a.info.j]=[a.info]);return l}for(var n in c.j)if(c.j.hasOwnProperty(n)){m=c.j[n];var p=m.info.Vb(),q=Sw(a,m.info,b,c.isLive,h);!0!==q?f[p]=q:(l[m.info.j]=l[m.info.j]||[],l[m.info.j].push(m.info))}e&&(d(f),d({bfflt:Tw(l)}));for(var t in l)l.hasOwnProperty(t)&&(c=t,l[c]&&l[c][0].isVideo()&&(l[c]=jsa(a,l[c]),l[c]=ksa(l[c])));c=g.r(h.values());for(h=c.next();!h.done;h=c.next())(h=b.u.get(h.value))&&
--h.aR;b=g.Je(l,function(u){return!!u.length});
e&&d({aftflt:Tw(l)});a.qb=lsa(b,a);return b};
Sw=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?new Set:e;if(""===b.j)return"unkn";if(("304"===b.Vb()||"266"===b.Vb())&&a.bb)return"blk2khfr";if(a.J&&b.video&&b.video.j>a.J)return"max"+a.J;if(a.N&&b.video&&b.video.j<a.N)return"min"+a.N;if(a.kb&&"h"===b.j&&b.video&&1080<b.video.j)return"blkhigh264";if(a.eb&&b.video&&4320<=b.video.j&&32<b.video.fps)return"blk8khfr";if("(h"===b.j&&!c.D)return"enchdr";if(d&&nsa(b)&&!a.Ia)return"blk51live";if(osa(b)&&!a.Ga)return"blk51ugc";if((a=c.u.get(b.j))&&0<
a.aR)return e.add(b.j),"byerr";e=psa(c,b);if(!0!==e)return e;var f;return null==(f=b.video)||!(32<f.fps)||c.N&&(c.Y||Uw(c,Vw.FRAMERATE))?!0:"capHfr"};
lsa=function(a,b){var c=b.D&&!(!a.mac3&&!a.MAC3),d=b.I&&!(!a.meac3&&!a.MEAC3);return b.Y&&!(!a.m&&!a.M)||c||d};
Ww=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
Tw=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(Ww(d));d=g.r(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.Vb())}return b.join(".")};
qsa=function(a,b,c,d,e){var f={},h={};g.Ie(b,function(l,m){l=l.filter(function(n){var p=n.Vb();if(!n.Wd)return h[p]="noenc",!1;if("("===n.j||"(h"===n.j){if(a.B&&c&&"widevine"===c.flavor){var q=n.mimeType+"; experimental=allowed";(q=!!n.Wd[c.flavor]&&!!c.j[q])||(h[p]=n.Wd[c.flavor]?"unspt":"noflv");return q}if(!Uw(a,Vw.CRYPTOBLOCKFORMAT)&&!a.oa||a.W)return h[p]=a.W?"disvp":"vpsub",!1}return c&&n.Wd[c.flavor]&&c.j[n.mimeType]?!0:(h[p]=c?n.Wd[c.flavor]?"unspt":"noflv":"nosys",!1)});
l.length&&(f[m]=l)});
d&&Object.entries(h).length&&e(h);return f};
usa=function(a,b,c,d,e){function f(u){return!!l[u]}
var h=a.B||!!d,l=msa(a,b,c,e,h);Xw(c)&&(l=qsa(b,l,d,h,e),h&&e({enflt:Tw(l)}));if(Rw(c))return e=g.Ub(Object.values(l),function(u){return!!u.length&&!!u[0].audio}),h=g.Ub(Object.values(l),function(u){return!!u.length&&!!u[0].video}),e&&h||uq(),vq(new Qw(h,e));
b=rsa(a);h&&e({audioPrefOrder:b.join("_")});b=g.Ub(b,f);if(!b)return h&&e({noaudio:1}),uq();b=l[b];l["9"]&&l.h&&c.fg&&!a.Pa&&(h&&e({dltvp9:1}),delete l["9"]);var m=l["1h"]?"1h":"1";d=l["9h"]?"9h":"9";var n=l[m],p=l[d];n&&n.length&&(a.u.highestAv1Resolution=n[n.length-1].video.j);p&&p.length&&(a.u.highestVp9Resolution=p[p.length-1].video.j);var q=[],t=[];if(a.ma&&!a.j)for(t=ssa(c)?l["1h"]||l["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],h&&e({newhybpref:t.join(".")}),n=g.r(t),p=n.next();!p.done;p=n.next())q=
q.concat(l[p.value]).filter(function(u){return u});
else 0<a.V&&p&&n&&(t=[m,d],q=n.concat(p).filter(function(u){return u}));
if(q.length&&!a.j){Yw(q,b,t);if(h){h=[];a=g.r(q);for(c=a.next();!c.done;c=a.next())h.push(c.value.Vb());e({hbdfmt:h.join(".")})}return vq(new Qw(q,b))}q=tsa(a);q=g.Ub(q,f);if(!q){if(l[m])return e=l[m],Yw(e,b),vq(new Qw(e,b));h&&e({novideo:1});return uq()}a.qc&&("1"===q||"1h"===q)&&l[d]&&(m=Zw(l[q]),Zw(l[d])>m&&(q=d));"9"===q&&l.h&&(d=Zw(l["9"]),Zw(l.h)>1.5*d&&(q="h"));a.Ib&&c.isLive&&"("===q&&l.H&&1440>Zw(l["("])&&(q="H");h&&e({vfmly:Ww(q)});a=l[q];if(!a.length)return h&&e({novfmly:Ww(q)}),uq();Yw(a,
b);return vq(new Qw(a,b))};
Yw=function(a,b,c){c=void 0===c?[]:c;g.mc(a,function(d,e){var f=e.video.height*e.video.width-d.video.height*d.video.width;if(!f&&c&&0<c.length){f=c.indexOf(d.j)+1;var h=c.indexOf(e.j)+1;f=0===f||0===h?h||-1:f-h}f||(f=e.Ob-d.Ob);return f});
g.mc(b,function(d,e){return e.Ob-d.Ob})};
ksa=function(a){var b=mk(a,function(c,d){return 32<d.video.fps?Math.min(c,d.video.width):c},Infinity);
Infinity>b&&(a=g.cm(a,function(c){return 32<c.video.fps||c.video.width<b}));
Eq()&&(a=g.cm(a,function(c){return"299"!==c.Vb()}));
return a};
jsa=function(a,b){return b=g.cm(b,function(c){return c.video.j<=a.Kb})};
Zw=function(a){return mk(a,function(b,c){return Math.max(b,c.video.j)},0)};
vsa=function(a){a=void 0===a?{}:a;var b=void 0===a.wm?!1:a.wm,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.KJ?!1:a.KJ;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&Hw()?3:2:c&&d?-1:1};
wsa=function(a){return vsa({hasSubfragmentedFmp4:a.D.Mi,wm:a.D.Mi,defraggedFromSubfragments:a.xn,isManifestless:!0,KJ:a.ma})};
xsa=function(a){var b=a.split(""),c=[-1187430464,-1051563216,function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 46:d=95;default:e.push(String.fromCharCode(d));case 94:case 95:case 96:break;case 123:d-=76;case 92:case 93:continue;case 58:d=44;case 91:}return e},
"mZMm","for",-2124857936,-1920247638,-1081903835,"ZF5wgEk",1617900318,-196581860,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
1772928277,2079789867,-1108197486,null,"l52Un",-352939094,1346636297,2053880608,-1671983361,function(d,e,f,h,l,m,n,p,q,t){return e(l,m,n,p,q,t)},
/("\\,),()/,562941967,7,1793158393,1952814189,"QVRze",979340927,function(d,e,f){var h=d.length;e.forEach(function(l,m,n){this.push(n[m]=d[(d.indexOf(l)-d.indexOf(this[m])+m+h--)%d.length])},f.split(""))},
-2087722445,-1168388180,617660350,function(d,e){d=(d%e.length+e.length)%e.length;var f=e[0];e[0]=e[d];e[d]=f},
"NfkFt",function(d,e,f,h,l,m){return e(h,l,m)},
-1458237160,b,476479393,-1548162296,"yzlObc",function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 91:d=44;continue;case 123:d=65;break;case 65:d-=18;continue;case 58:d=96;continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
null,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
6,-1192040071,-1563961270,487258992,-2005960229,function(d){d.reverse()},
1535521347,"JG1EpEE",-593445962,-1097891430,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
-891946447,"bDTQ710",845768484,68477764,"FTg3",b,-1754921259,-333193557,function(d,e,f,h,l,m,n,p,q,t,u){return f(m,n,p,q,t,u)},
null,"tp8Lymh",-2114980105,"wPhbrC",122655227,b,1,"u1F0n7i",-48095061,1373985434,1022383446,5,function(d,e){e.push(d)},
1354966720,9,-1920247638,1518630180,-1056271890,function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 58:d-=14;case 91:case 92:case 93:continue;case 123:d=47;case 94:case 95:case 96:continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
2,-711848911,function(d,e,f,h,l,m,n,p,q,t){return e(l,m,n,p,q,t)},
1317431494,-539080783,-92315273,function(d,e,f,h,l){return e(f,h,l)},
1128058949,-2114980105,-1909711147,179811293,function(d,e){d=(d%e.length+e.length)%e.length;e.splice(0,1,e.splice(d,1,e[0])[0])},
"qQjmuh",4,function(d,e){d=(d%e.length+e.length)%e.length;e.splice(d,1)},
-2124857936,751052736,1930224073,"okhO89",3,"QVRze",1591299164,function(d,e,f,h,l,m,n,p){return e(f,h,l,m,n,p)},
function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 58:d=96;continue;case 91:d=44;break;case 65:d=47;continue;case 46:d=153;case 123:d-=58;default:e.push(String.fromCharCode(d))}return e},
"BgUW9t",-152446791,-263472608,-925740714,-1776951480,612578798,function(d,e,f,h,l,m,n){return d(l,m,n)}];
c[15]=c;c[42]=c;c[64]=c;try{try{2>=c[83]&&(7<c[75]&&((0,c[89])((0,c[33])(c[25],c[37]),c[29],(0,c[106])(),c[69],c[3]),1)||(0,c[89])((0,c[94])(c[93],c[15]),c[54],c[69])),(9>=c[75]||void(0,c[105])((0,c[89])((0,c[89])((0,c[43])(c[64],c[58]),c[54],c[69]),c[97],c[62],c[69]),c[89],(0,c[97])(c[14],c[37]),c[11],c[42],c[32]))&&(0,c[113])(c[11],(0,c[89])((0,c[33])(c[99],c[new Date("Wednesday December 31 1969 20:00:42 EDT")/1E3]),c[43],c[42],c[81]),(0,c[106])(c[19],c[27]),(0,c[23])(c[27],c[65]),c[15],c[7]),1<
c[42]&&(5<c[104]||((0,c[71])(c[15],c[98]),NaN))&&(0,c[93])(c[91],c[10]),6>=c[60]&&(6<c[16]?(0,c[31])((0,c[51])((0,c[95])((0,c[35])((0,c[43])(c[61],c[97]),c[109],c[new Date("Thursday 01 January 1970 00:00:10 GMT")/1E3]),c[40],(0,c[43])(c[44],c[6]),c[19],c[10])|(0,c[35])((0,c[95])((0,c[40])(c[36],c[12852+Math.pow(8,2)+-12906]),c[89],(0,c[89])((0,c[62])(),c[15],c[17]),(0,c[62])(),c[97],c[68]),c[89],(0,c[101])(),c[97],c[53]),c[95],(0,c[35])((0,c[40])(c[34],c[97]),c[100],c[75]),c[109],(0,c[43])(c[69],
c[15]),c[6]),c[95],(((0,c[89])((0,c[62])(),c[6],c[0]),c[100])(c[75]),c[93])(c[139*Math.pow(2,1)+-246],c[97]),(0,c[35])((0,c[35])((0,c[43])(c[90],c[102]),c[89],(0,c[52])(),c[97],c[76]),c[89],(0,c[62])(),c[6],c[2]),((0,c[89])((0,c[28])(),c[15],c[-1638-Math.pow(2,2)+1689]),c[89])((0,c[101])(),c[6],c[11]),c[new Date("January 01 1970 00:01:29 GMT")/1E3],(0,c[89])((0,c[52])(),c[15],c[13]),(0,c[101])(),c[6],c[49]):(0,c[9])((0,c[35])(((0,c[48])(c[102],c[18]),(0,c[43])(c[45]),c[81])((0,c[4])(),c[50],c[106]),
c[8],c[46],c[60]),(0,c[78])((0,c[78])((0,c[65])(c[17+Math.pow(5,1)+-6],c[new Date("Thursday January 01 1970 10:00:07 +1000")/1E3]),c[42],c[98],c[75]),c[73],c[36],c[11]),c[18],(0,c[78])((0,c[73])(c[43],c[38]),c[65],c[107],c[1]),(0,c[62])((((0,c[54])(c[65],(0,c[20])(c[14],c[98]),(0,c[91])(c[50],c[38]),(0,c[73])(c[6],c[107]),c[107],c[87]),c[78])((0,c[70])(c[33],c[107]),c[65],c[98],c[83]),c[20])(c[80],c[107]),c[-233*Math.pow(2,5)+7474],(0,c[73])(c[58],c[11]),c[70],(0,c[20])(c[30],c[107]),c[55],c[98]),
(0,c[20])(c[48],c[103]),c[42],(0,c[73])(c[88],c[11]),c[16],c[99])),(6>=c[29]||((((0,c[18])((0,c[20])(c[41],c[38]),c[20],(0,c[65])(c[103],c[93]),c[15],c[88]),((0,c[59])((0,c[109])(c[19]),c[63],c[13],c[35]),(0,c[63])(c[108],c[35]),c[68])(c[Math.pow(7,4)+5+-2380],c[66]),c[5])(c[26]),c[3+Math.pow(6,5)-7711])(c[30],c[74]),0))&&(0,c[24])((((0,c[-1687368- -217*Math.pow(6,5)])((0,c[60])(c[91],c[62]),c[60],c[86],c[94]),c[24])((0,c[32])(c[7471-Math.pow(8,1)+-7418],c[4]),c[82],c[46],c[114]),c[24])((0,c[24])((0,c[37])(c[86],
c[new Date("Thursday January 01 1970 00:01:25 +0000")/1E3]),c[78],(0,c[17])(),c[86],c[100]),c[60],c[new Date("1969-12-31T20:01:17.000-04:00")/1E3*-20+Math.pow(5,1)- -1645],c[26])|(0,c[89])(c[110]),c[32],c[67],c[110]),3<c[13]?(0,c[82])(c[75],c[114]):(0,c[Math.pow(3,new Date("12/31/1969 17:00:01 PDT")/1E3)+-16660+16689])(c[39],c[4])}catch(d){(0,c[32])(c[105],c[86]),(0,c[301-253%Math.pow(8,5)])(c[78],(0,c[24])((0,c[78])((0,c[90])(),c[86],c[0]),c[78],(0,c[41])(),c[110],c[83]),(0,c[29])(c[12],c[91]),(0,c[32])(c[107],
c[86]),(0,c[51])(),c[Math.pow(3,4)+81-52],c[102])}}catch(d){return"enh_exp_except_yJUBt-r-_w8_"+a}return b.join("")};
ysa=function(a){a=a.split("");$w.GX(a,3);$w.FX(a,3);$w.QM(a,48);return a.join("")};
g.ax=function(a,b){this.u=a;this.D=void 0===b?!1:b;this.C=this.path=this.B="";this.j={};this.url=""};
Asa=function(a){zsa(a,bx).length||Asa(a)};
cx=function(a){a.url||(a.url=Bsa(a));return a.url};
ex=function(a){dx(a);return a.C};
fx=function(a){return a.u?ib(a.u,"local"):"local"===a.B};
Csa=function(a){dx(a);return g.Le(a.j,function(b){return null!==b})};
gx=function(a){dx(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
hx=function(a,b){b=void 0===b?!1:b;dx(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=cx(a);c=new g.Si(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&1<f.length&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.Ui(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.ax(c.toString()),c.set("fallback_count","1"),c;if(b)return c=a.clone(),c.set("fallback_count","1"),c;e=c.j.match("\\.a1\\.googlevideo\\.com$");c.j.match("\\.googlevideo\\.com$")?
(g.Ui(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Ui(c,"www.youtube.com"),d=c.toString()):d=Bra(d);c=new g.ax(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
dx=function(a){if(a.u){if(!wv(a.u)&&!a.u.startsWith("local"))throw new g.Ar("Untrusted URL",a.u);var b=g.aj(a.u);a.B=b.C;a.C=b.j+(null!=b.B?":"+b.B:"");var c=b.getPath();if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=Dsa(c);
Object.assign(a.j,Esa(b.u.toString()));Object.assign(a.j,d);"index.m3u8"===a.j.file&&(delete a.j.file,a.path+="/file/index.m3u8");a.u="";a.url="";a.D&&(b=a.get("n"))&&(b=bx[0](b),a.set("n",b),bx.length||Xo(""))}};
Bsa=function(a){dx(a);var b=a.B+(a.B?"://":"//")+a.C+a.path;if(Csa(a)){var c=[];g.Ie(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
Dsa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Fsa(c,a[b],a[b+1]);return c};
Esa=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Fsa(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
zsa=function(a,b){b.length||zsa(a,[]);return b.fill(a?xsa:Xo)};
Fsa=function(a,b,c){if("cmo"===b){var d;0<=(d=c.indexOf("="))?(b="cmo="+c.substr(0,d),c=c.substr(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.substr(0,d),c=c.substr(d+3))}a[b]=c};
ix=function(a,b,c,d,e,f,h,l,m){this.Ka=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.hf=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.hf=m||null};
jx=function(){this.segments=[];this.j=null;this.B=!0};
Gsa=function(a,b){if(b>a.getLastSegmentNumber())a.segments=[];else{var c=Tb(a.segments,function(d){return d.Ka>=b},a);
0<c&&a.segments.splice(0,c)}};
kx=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.B=this.u=0;this.C=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
Hsa=function(a,b){return 0===a.j.length?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
lx=function(a,b){b=g.r(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
mx=function(a,b,c){return a.split(b).Rs.split(c).eH};
nx=function(a){a.C=void 0;a.u=0;a.B=0};
ox=function(a,b,c){a.isFocused(b);return b-a.B+c<=a.j[a.u].length};
Isa=function(a){if(!a.C){var b=a.j[a.u];a.C=new DataView(b.buffer,b.byteOffset,b.length)}return a.C};
Jsa=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!ox(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);nx(a);a.focus(b)}d=a.j[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)};
px=function(a,b,c){a=Jsa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
Ksa=function(a){a=px(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;c<a.length;c++)b[c]=a[c]}return b};
qx=function(a,b){a.focus(b);return a.j[a.u][b-a.B]};
Lsa=function(a,b){a.focus(b);return ox(a,b,4)?Isa(a).getUint32(b-a.B):256*(256*(256*qx(a,b)+qx(a,b+1))+qx(a,b+2))+qx(a,b+3)};
rx=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
sx=function(a){return String.fromCharCode.apply(null,a)};
ux=function(a){return tx?tx.decode(a):sx(a)};
g.wx=function(a){if(!a.length)return"";try{if(tx)return tx.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(h){}for(var b=0,c=[],d=a.length;b<d;){for(var e=0;1024>e&&b<d;){var f=a[b++];if(128>f)vx[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;vx[e++]=55296|f>>10;f=56320|f&1023}vx[e++]=f}}f=String.fromCharCode.apply(String,vx);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
yx=function(a,b){var c;if(null==(c=xx)?0:c.encodeInto)return b=xx.encodeInto(a,b),b.read<a.length?4*a.length:b.written;for(var d=c=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296===(e&64512)&&d+1<a.length&&56320===(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>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};
zx=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};
Ax=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
Bx=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
Cx=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
Dx=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
Ex=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};
Fx=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;b=new Uint8Array(a.data.buffer,a.offset+a.j+a.data.byteOffset,c-a.j);a.j=Math.min(c+1,a.size);return ux(b)};
Msa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
Gx=function(a,b,c,d){(new Uint8Array(a.data.buffer,a.offset,d)).set(new Uint8Array(b.buffer,c+b.byteOffset,d));a.offset+=d};
Ix=function(a,b){this.data=a;this.uri=b||"https://web.archive.org/web/20220603021303/http://youtube.com/streaming/metadata/segment/102015";this.j=Hx(this,"Sequence-Number");this.I=Hx(this,"Segment-Count");this.J=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=Hx(this,"Ingestion-Walltime-Us")/1E6;this.u=(Hx(this,"First-Frame-Time-Us")+Hx(this,"First-Frame-Uncertainty-Us"))/1E6;this.fk=Hx(this,"Target-Duration-Us")/1E6;this.C="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=Hx(this,"Crypto-Period-Index");
this.B=Hx(this,"Crypto-Period-Seconds")};
Osa=function(a){return a.data["Cuepoint-Type"]?new rv(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",Nsa[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):null};
Psa=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
Hx=function(a,b){return Number(a.data[b])||0};
g.Qsa=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
g.Rsa=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
Ssa=function(a,b){this.j=a;this.duration=b};
Tsa=function(a,b,c,d,e){this.u=e;this.j=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
Jx=function(a){var b={};a=a.split("\r\n");for(var c=0;c<a.length;c++){if(0===a[c].length)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);null!=d&&(b[d[1]]=d[2])}return null};
Usa=function(a,b){var c=g.Kx(a,0,1952868452);a=g.Kx(a,0,1953658222);if(c&&a){c.skip(1);var d=Ax(c)<<16|Bx(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=Dx(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=Ax(a)<<16|Bx(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=Dx(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.j,h=Dx(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
Mx=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.Kx(a,0,1836476516))?g.Lx(a):NaN};
Vsa=function(a){var b=g.Kx(a,0,1937011556);if(!b)return null;b=Nx(a,b.dataOffset+8,1635148593);if(!b)return null;var c=Nx(a,b.dataOffset+78,1936995172),d=Nx(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),Ax(c)){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var e=c=null,f=null;if(d=Nx(a,d.dataOffset,1886547818)){var h=Nx(a,d.dataOffset,1886546020),l=Nx(a,d.dataOffset,2037673328);if(!l&&(l=Nx(a,d.dataOffset,1836279920),!l))return null;h&&(h.skip(4),c=
Cx(h)/65536,f=Cx(h)/65536,e=Cx(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new Tsa(b,c,f,e,a)}return null};
Nx=function(a,b,c){for(;Ox(a,b);){var d=Px(a,b);if(d.type===c)return d;b+=d.size}return null};
g.Kx=function(a,b,c){for(;Ox(a,b);){var d=Px(a,b);if(d.type===c)return d;b=Qx(d.type)?b+8:b+d.size}return null};
g.Rx=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=4294967296*b.getUint32(a)+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b};
Px=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new zx(a,b,c,d)};
g.Lx=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
Wsa=function(a){a=new zx(a.data,a.offset,a.size,a.type,a.u);var b=Ax(a);a.skip(7);var c=Dx(a);if(0===b){b=Dx(a);var d=Dx(a)}else b=Ex(a),d=Ex(a);a.skip(2);for(var e=Bx(a),f=[],h=[],l=0;l<e;l++){var m=Dx(a);f.push(m);h.push(Dx(a));a.skip(4)}return{QJ:c,OV:b,aW:d,e0:f,LJ:h}};
Ox=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;c=a.getUint32(b+4);if(1635148593===c||1635148611===c||1937126244===c||1936995172===c)return!0;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(97>d||122<d)return!1}return!0};
Qx=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
Xsa=function(a){a.skip(4);return{v0:Fx(a,0),value:Fx(a,0),QJ:Dx(a),Fka:Dx(a),Vja:Dx(a),id:Dx(a),jP:Fx(a),offset:a.offset}};
g.Ysa=function(a){var b=Nx(a,0,1701671783);if(!b)return null;var c=Xsa(b),d=c.v0;c=Jx(c.jP);if(a=Nx(a,b.offset+b.size,1701671783))if(a=Xsa(a),a=Jx(a.jP),c&&a){b=g.r(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new Ix(c,d):null};
Sx=function(a,b){for(var c=Nx(a,0,b);c;)c.markAsSkip(),c=Nx(a,c.offset+c.size,b)};
g.Tx=function(a,b){for(var c=0,d=[];Ox(a,c);){var e=Px(a,c);e.type===b&&d.push(e);c=Qx(e.type)?c+8:c+e.size}return d};
$sa=function(a,b){var c=g.Kx(a,0,1937011556),d=g.Kx(a,0,1953654136);if(!c||!d||2<=a.getUint32(c.offset+12))return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.Kx(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(1701733217!==d&&1701733238!==d)return null;d=new Msa(a.byteLength+b);Gx(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;Gx(d,a,c.offset+16,c.size-16);Gx(d,e,e.byteOffset+f.dataOffset+8,b);Gx(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.r([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.Kx(a,0,e.value),d.data.setUint32(e.offset,e.size+b);if(Zsa)return d.data;a=g.Kx(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
Ux=function(a,b){this.u=a;this.j=0;this.start=b||0};
Vx=function(a){return a.j>=a.u.byteLength};
$x=function(a,b,c){var d=new Ux(c);if(!Wx(d,a))return!1;d=Xx(d);if(!Yx(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.j;var e=Zx(d,!0);d=a+(d.start+d.j-b)+e;d=9<d?ata(d-9,8):ata(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
bta=function(a){var b=new Ux(a);b.Wu();if(Wx(b,[408125543,374648427,174,224]))b=Xx(b);else return null;for(var c=a=null;!Vx(b);){var d=Zx(b,!1);if(21432===d)switch(ay(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=Xx(b):by(b)}if(!c)return null;for(var e,f=d=b=null;!Vx(c);)switch(Zx(c,!1)){case 30321:if(3!==ay(c))return null;break;case 30324:b=cy(c);break;case 30323:f=cy(c);break;case 30325:d=cy(c);break;case 30322:e=Zx(c,!0);e=dy(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:by(c)}return e?new Tsa(a,b,f,d,e):null};
Xx=function(a){var b=Zx(a,!0),c=a.u.byteOffset+a.j;c=new DataView(a.u.buffer,c,Math.min(b,a.u.buffer.byteLength-c));c=new Ux(c,a.start+a.j);a.j+=b;return c};
ay=function(a){for(var b=Zx(a,!0),c=ey(a),d=1;d<b;d++)c=256*c+ey(a);return c};
cy=function(a){var b=Zx(a,!0),c=0;4===b?c=a.u.getFloat32(a.j):8===b&&(c=a.u.getFloat64(a.j));a.j+=b;return c};
cta=function(a){var b=Zx(a,!0);return ux(dy(a,b))};
ey=function(a){return a.u.getUint8(a.j++)};
Zx=function(a,b){var c=ey(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+ey(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+ey(a),d*=128;return b?c-d:c};
by=function(a){var b=Zx(a,!0);a.j+=b};
dta=function(a){if(!Yx(a,440786851,!0))return null;var b=a.j;Zx(a,!1);var c=Zx(a,!0)+a.j-b;a.j=b+c;if(!Yx(a,408125543,!1))return null;Zx(a,!0);if(!Yx(a,357149030,!0))return null;var d=a.j;Zx(a,!1);var e=Zx(a,!0)+a.j-d;a.j=d+e;if(!Yx(a,374648427,!0))return null;var f=a.j;Zx(a,!1);var h=Zx(a,!0)+a.j-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.u.buffer,
a.u.byteOffset+d,e),c+12);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+f,h),c+12+e);return l};
fy=function(a){var b=a.j;a.j=0;var c=1E6;Wx(a,[408125543,357149030,2807729])&&(c=ay(a));a.j=b;return c};
eta=function(a,b){var c=a.j;a.j=0;if(160!==a.u.getUint8(a.j)&&!gy(a)||!Yx(a,160))return a.j=c,NaN;Zx(a,!0);var d=a.j;if(!Yx(a,161))return a.j=c,NaN;Zx(a,!0);ey(a);var e=ey(a)<<8|ey(a);a.j=d;if(!Yx(a,155))return a.j=c,NaN;d=ay(a);a.j=c;return(e+d)*b/1E9};
gy=function(a){if(!fta(a)||!Yx(a,524531317))return!1;Zx(a,!0);return!0};
fta=function(a){if(a.Wu()){if(!Yx(a,408125543))return!1;Zx(a,!0)}return!0};
Wx=function(a,b){for(var c=0;c<b.length;c++){if(!Yx(a,b[c]))return!1;c!==b.length-1&&Zx(a,!0)}return!0};
Yx=function(a,b,c){c=void 0===c?!1:c;if(Vx(a))return!1;for(var d=a.j;Zx(a,!1)!==b;)if(by(a),d=a.j,Vx(a))return!1;c&&(a.j=d);return!0};
ata=function(a,b){b||(b=Math.ceil(Math.log(a+2)/Math.log(2)/7));for(var c=1<<8-b,d=[];d.length<b-1;)d.unshift(a%256),a=Math.floor(a/256);d.unshift(a|c);return d};
dy=function(a,b){var c=new Uint8Array(a.u.buffer,a.u.byteOffset+a.j,b);a.j+=b;return c};
hy=function(a){this.Ri=a;this.j={};this.url=""};
gta=function(a,b){var c=b.indexOf("?");if(0<c){var d=Esa(b.substr(c+1));g.Ie(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=Dsa(b);g.Ie(b,function(e,f){this.set(f,e)},a)};
g.iy=function(a){a.url||(a.url=hta(a));return a.url};
hta=function(a){var b=cx(a.Ri),c=[];g.Ie(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=Csa(a.Ri)?"&":"?";return b+a+d};
jy=function(a,b){var c=new g.ax(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Ie(a.j,function(d,e){c.set(e,null)});
return c};
ita=function(){this.u=this.j=this.timedOut=this.started=this.C=this.B=0};
jta=function(a){a.B=(0,g.R)();a.started+=1};
kta=function(a){a.C=(0,g.R)();a.started=0;a.timedOut=0;a.j=0};
lta=function(a,b,c){var d=a.started+4*a.j;c&&(d+=a.u);return Math.pow(b.gi,d)};
ky=function(a,b){a[b]||(a[b]=new ita);return a[b]};
mta=function(a){this.J=this.I=this.D=this.u=0;this.j=a;this.C=a.clone()};
my=function(a,b,c){if(fx(a.j))return!1;var d=ky(c,ex(a.j));if(1>d.timedOut&&1>d.j)return!1;d=d.timedOut+d.j;a=ly(a,b);c=ky(c,ex(a));return c.timedOut+c.j+ +(b.Ol&&!c.C)<d};
nta=function(a,b,c){a=b?ly(a,c):a.j;return new hy(a)};
ly=function(a,b){b=b?b.rl:!1;a.B||(a.B=hx(a.C,b));return a.B};
ota=function(a,b){var c=a.D+b.Lq*(a.u-a.D)+.25*a.I;b=c>b.Ag?1E3*Math.pow(b.gi,c-b.Ag):0;return 0===b?!0:a.J+b<(0,g.R)()};
ny=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 mta(a)};
oy=function(a,b,c,d){var e=g.r(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)};
py=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
qy=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new py(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
ry=function(a,b){return new py(a,a+b-1)};
pta=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
sy=function(a,b,c,d,e,f,h,l,m,n){this.type=a;this.j=b;this.range=c;this.J=[];this.D="";this.Ka=-1;this.D=void 0===d?"":d;this.Ka=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Ab=l||0;this.u=0<=m?m:this.range?this.range.length:NaN;this.Xd=this.range?this.Ab+this.u===this.range.length:void 0===n?!!this.u:n;this.range?(this.B=this.startTime+this.duration*this.Ab/this.range.length,this.I=this.duration*this.u/this.range.length,this.C=this.B+this.I):qta(this)};
qta=function(a){a.B=a.startTime;a.I=a.duration;a.C=a.B+a.I};
ty=function(a){return a.Xd&&a.j.index.vH(a.Ka)};
rta=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Ka!==a.Ka);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Ab+b.u===a.Ab+a.u:d};
uy=function(a){return 1===a.type||2===a.type};
vy=function(a){return 3===a.type||6===a.type};
wy=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Ab+a.u===b.range.start+b.Ab:a.Ka===b.Ka?a.Ab+a.u===b.Ab:a.Ka+1===b.Ka&&0===b.Ab&&a.Xd:!1};
sta=function(a,b){return wy(a,b)||$f(a.C,b.B)||a.Ka+1===b.Ka&&0===b.Ab&&a.Xd?!0:!1};
yy=function(a){return a.Ka+(a.Xd?1:0)};
tta=function(a){1===a.length||g.lk(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new py(a[0].range.start+a[0].Ab,b.range.start+b.Ab+b.u-1)};
Ay=function(a){a=zy(a);var b="";g.Ie(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
zy=function(a){var b={};b.itag=a.j.info.Vb();b.type=""+a.type;b.seg=String(a.Ka);a.range&&(b.range=""+(a.range.start+a.Ab)+"-"+(a.range.start+a.Ab+a.u-1));b.time=""+a.B.toFixed(1)+"-"+(a.B+a.I).toFixed(1);b.off=String(a.Ab);b.len=String(a.u);a.Xd&&(b.end="1");ty(a)&&(b.eos="1");return b};
uta=function(a){return new sy(a.type,a.j,a.range,"getEmptyStubBefore"+a.D,a.Ka,a.startTime,0,a.Ab,0)};
vta=function(a){return new sy(a.type,a.j,a.range,"getEmptyStubAfter"+a.D,a.Ka,a.startTime+a.duration,0,a.Ab+a.u,0)};
wta=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.Ab>=b.range.start+b.Ab&&a.range.start+a.Ab+a.u<=b.range.start+b.Ab+b.u:a.Ka===b.Ka&&a.Ab>=b.Ab&&(a.Ab+a.u<=b.Ab+b.u||b.Xd)};
xta=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.Lf()?(a=a.j.Lv(a),pl(a,function(c){return xta(c,b)})):a.Ka===b.Ka&&!!b.u&&b.Ab+b.u>a.Ab&&b.Ab+b.u<=a.Ab+a.u};
By=function(a,b){var c=b.Ka;a.D="updateWithSegmentInfo";a.Ka=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,qta(a)};
Cy=function(a,b){this.j=a;this.B=null;this.D=this.Hf=NaN;this.I=this.requestId=null;this.u=a[0].j.u;this.C=b||"";if(this.j[0].range&&0<this.j[0].u){a:{for(b=1;b<a.length;b++)if(!wy(a[b-1],a[b])){b=!1;break a}b=!0}if(b)this.range=tta(a),this.J=this.range.length;else{this.range=this.j[this.j.length-1].range;b=0;a=g.r(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;this.J=b}}};
Dy=function(a){var b;return yta?a.J:null==(b=a.range)?void 0:b.length};
Ey=function(a){return!uy(a.j[a.j.length-1])};
Fy=function(a){return 4===a.j[a.j.length-1].type};
g.Gy=function(a,b,c){c=null===a.I?my(a.u,b,c):a.I;if(a.B&&!b.jt){b=c?hx(a.B,b.rl):a.B;var d=new hy(b);d.get("alr")||d.set("alr","yes");a.C&&gta(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new hy(new g.ax(a.C)):(d=nta(a.u,c,b),a.C&&gta(d,a.C));(b=a.range)?d.set("range",b.toString()):a.j[0].j.Mr()&&1===a.j.length&&a.j[0].Ab&&d.set("range",a.j[0].Ab+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.Hf)||d.set("headm",a.Hf.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.urlParams&&g.Ie(a.urlParams,function(e,
f){d.set(f,e)});
return d};
zta=function(a){if(a.range)return Dy(a);a=a.j[0];return Math.round(a.I*a.j.info.Ob)};
Ata=function(a,b){return Math.max(0,a.j[0].B-b)};
Bta=function(a,b,c){if(0!==b.length){var d=[];b=g.r(b);for(var e=b.next();!e.done;e=b.next())e=e.value,d.push(new sy(3,a.j[0].j,ry(e.LA,c),"extendWithMediaSegments",e.qD-1,e.startTimeMs/1E3,e.durationMs/1E3));return new Cy(a.j.concat(d))}};
Cta=function(a,b){a=g.r(a.j);for(var c=a.next();!c.done;c=a.next())if(c=c.value,3===c.type&&b>=c.B&&b<=c.C)return!0;return!1};
Hy=function(a,b,c,d,e,f){f=void 0===f?0:f;ny.call(this,a,b,d,void 0);this.I=c;this.fk=f;this.index=e||new jx};
Dta=function(a,b,c,d,e){this.Ka=a;this.startSecs=b;this.durationSecs=c;this.j=d||NaN;this.u=e||NaN};
Iy=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""};
Jy=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
Eta=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(Number(b[2])|0)+60*(Number(b[4])|0)+(Number(b[6])|0):Number(a)|0};
Fta=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
Ky=function(){this.j=[];this.u=null;this.I=0;this.B=[];this.D=!1;this.J="";this.C=-1};
Gta=function(a){var b=a.B;a.B=[];return b};
Hta=function(){this.C=[];this.j=null;this.u={};this.B={}};
Lta=function(a,b,c){var d=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.parentNode.parentNode,h=null;"Period"===f.nodeName?h=Ita(a):"AdaptationSet"===f.nodeName?(f=f.getAttribute("id")||f.getAttribute("mimetype")||"",h=Jta(a,f)):"Representation"===f.nodeName&&(f=f.getAttribute("id")||"",h=Kta(a,f));if(null==h)return;h.update(e,c);g.fc(d,Gta(h))}g.fc(a.C,d);xaa(a.C,function(l){return 1E3*l.startSecs+l.j})};
Mta=function(a){a.j&&(a.j.j=[]);g.Ie(a.u,function(b){b.j=[]});
g.Ie(a.B,function(b){b.j=[]})};
Ita=function(a){a.j||(a.j=new Ky);return a.j};
Jta=function(a,b){a.u[b]||(a.u[b]=new Ky);return a.u[b]};
Kta=function(a,b){a.B[b]||(a.B[b]=new Ky);return a.B[b]};
Ly=function(a){var b=void 0===a?{}:a;a=void 0===b.fk?0:b.fk;var c=void 0===b.Tl?!1:b.Tl,d=void 0===b.yn?0:b.yn,e=void 0===b.Ve?0:b.Ve,f=void 0===b.Gh?Infinity:b.Gh,h=void 0===b.Gy?0:b.Gy;b=void 0===b.Mf?!1:b.Mf;jx.call(this);this.u=this.Lw=-1;this.C=null;this.Nh=a;this.yn=d;this.Tl=c;this.Ve=e;this.Gh=f;this.Gy=h;this.Mf=b};
Ny=function(a,b,c){b=My(a,b);return 0<=b&&(c||!a.segments[b].pending)};
My=function(a,b){return lc(a.segments,function(c){return b-c.Ka})};
Oy=function(a,b,c){c=void 0===c?{}:c;Hy.call(this,a,b,"",void 0,void 0,c.fk||0);this.index=new Ly(c)};
Py=function(a,b,c){ny.call(this,a,b);this.I=c;this.index=new jx;this.index.B=!1};
Nta=function(a,b,c){var d=a.index.getSegmentURL(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.Ob*f;return new Cy([new sy(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
Ota=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.I;b=b.J.split(",").filter(function(p){return 0<p.length});
for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){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 ix(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
Qy=function(){this.count=0;this.B=1;this.u=!1;this.offsets=new Float64Array(128);this.j=new Float64Array(128)};
Ry=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
Sy=function(a,b,c){this.info=a;this.j=b;this.B=c;this.u=null;this.C=-1;this.timestampOffset=0;this.I=!1;this.D=this.info.j.ev()&&!this.info.Ab};
Ty=function(a){return Jsa(a.j)};
Pta=function(a,b){if(1!==a.info.j.info.containerType||a.info.Ab||!a.info.Xd)return!0;a=Ty(a);for(var c=0,d=0;c+4<a.byteLength;){d=a.getUint32(c);if(!d)return!1;c+=d}return c!==a.byteLength?(b&&(b.lastboxlen=d.toString(),4<=a.byteLength&&(b.lastbytes=a.getUint32(a.byteLength-4).toString()),b.boxlen=c.toString(),b.bytelen=a.byteLength.toString()),!1):!0};
Qta=function(a,b){b=Math.min(b,a.info.u);var c=a.j.split(b);return[new Sy(new sy(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ka,a.info.startTime,a.info.duration,a.info.Ab,b,!1),c.eH,a.B),new Sy(new sy(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ka,a.info.startTime,a.info.duration,a.info.Ab+b,a.info.u-b,a.info.Xd),c.Rs,!1)]};
Rta=function(a,b,c){var d;if(!(d=!wy(a.info,b.info)||a.info.Xd)){if(c=void 0===c?!1:c)c=b.j,c=!(c.j.length?Hsa(a.j,c.j[0]):1);d=c}if(d)return null;c=new sy(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ka,a.info.startTime,a.info.duration,a.info.Ab,a.info.u,a.info.Xd);d=b.info;c.u+=d.u;c.range&&(c.I+=d.I);c.C=d.C;c.Xd=d.Xd;d=new kx;lx(d,a.j);lx(d,b.j);c=new Sy(c,d,a.B);c.u=b.u||a.u;if(a=c.info.range)a=c.j,a=!(1===a.j.length&&0<a.j[0].byteOffset);a&&(c.B=!1);return c};
Sta=function(a){g.Uy(a.info.j.info)||a.info.j.info.Ue();if(-1!==a.C)return a.C;if(a.u&&Psa(a.u))return a.C=Psa(a.u),a.C;if(g.Uy(a.info.j.info)){var b=Ty(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;Ox(b,f);){var h=Px(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.Lx(h):1952867444===h.type&&isNaN(d)&&(d=g.Rx(h));f=Qx(h.type)?f+8:f+h.size}!e&&c&&(e=Mx(c));b=d/e}else b=new Ux(Ty(a)),c=a.D?b:new Ux(new DataView(a.info.j.j.buffer)),d=fy(c),c=b.j,b.j=0,gy(b)?Yx(b,231)?(d=
ay(b)*d/1E9,b.j=c,b=d):(b.j=c,b=NaN):(b.j=c,b=NaN);a.C=b||a.info.B;return a.C};
Uta=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=Sta(a)+b;Tta(a,c);a.timestampOffset=b};
Tta=function(a,b){g.Uy(a.info.j.info)||a.info.j.info.Ue();a.C=b;if(g.Uy(a.info.j.info)){var c=Ty(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;Ox(c,f);){var h=Px(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.Lx(h)));if(1952867444===h.type){!d&&a&&(d=Mx(a));var l=g.Rx(h);isNaN(e)&&(e=Math.round(b*d)-l);l+=e;if(h.data.getUint8(h.dataOffset)){var m=h.data,n=h.dataOffset+4;m.setUint32(n,Math.floor(l/4294967296));m.setUint32(n+4,l&4294967295)}else h.data.setUint32(h.dataOffset+
4,l)}f=Qx(h.type)?f+8:f+h.size}return!0}c=new Ux(Ty(a));a=a.D?c:new Ux(new DataView(a.info.j.j.buffer));d=fy(a);a=c.j;c.j=0;if(gy(c)&&Yx(c,231))if(e=Zx(c,!0),b=Math.floor(1E9*b/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;0<=d;d--)c.u.setUint8(c.j+d,b&255),b>>>=8;c.j=a;b=!0}else b=!1;return b};
Vy=function(a,b){b=void 0===b?!1:b;var c=Vta(a);a=b?0:a.info.I;return c||a};
Vta=function(a){g.Uy(a.info.j.info)||a.info.j.info.Ue();if(a.u&&6===a.info.type)return a.u.fk;if(g.Uy(a.info.j.info)){var b=Ty(a);var c=0;b=g.Tx(b,1936286840);b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=Wsa(d.value),c+=d.LJ[0]/d.QJ;c=c||NaN;if(!(0<=c))a:{c=Ty(a);b=a.info.j.j;for(var e=d=0,f=0;Ox(c,d);){var h=Px(c,d);if(1836476516===h.type)e=g.Lx(h);else if(1836019558===h.type){!e&&b&&(e=Mx(b));if(!e){c=NaN;break a}var l=Nx(h.data,h.dataOffset,1953653094),m=e,n=Nx(l.data,l.dataOffset,1952868452);
l=Nx(l.data,l.dataOffset,1953658222);var p=Cx(n);Cx(n);p&2&&Cx(n);n=p&8?Cx(n):0;var q=Cx(l),t=q&1;p=q&4;var u=q&256,x=q&512,y=q&1024;q&=2048;var z=Dx(l);t&&Cx(l);p&&Cx(l);for(var D=t=0;D<z;D++){var H=u?Cx(l):n;x&&Cx(l);p&&0===D||!y||Cx(l);q&&Cx(l);t+=H}f+=t/m}d=Qx(h.type)?d+8:d+h.size}c=f||NaN}c||g.Bu(new g.Ar("Missing duration while parsing bmff",Ay(a.info)))}else c=new Ux(Ty(a)),a=a.D?c:new Ux(new DataView(a.info.j.j.buffer)),c=eta(c,fy(a));return c};
Wta=function(a){var b=Ty(a);var c=(c=g.Kx(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.Kx(b,0,1836476516))?g.Lx(b):a?Mx(a):NaN);return c};
Xta=function(a){if(!a.u){g.Uy(a.info.j.info)||a.info.j.info.Ue();if(g.Uy(a.info.j.info))var b=g.Ysa(Ty(a));else{b=new Ux(Ty(a));var c=b.j;b.j=0;var d=null,e=null;if(Wx(b,[408125543,307544935]))for(var f=b.j+Zx(b,!0);b.j<f;)if(29555!==Zx(b,!1))by(b);else for(var h=b.j+Zx(b,!0);b.j<h;)if(26568!==Zx(b,!1))by(b);else for(var l=b.j+Zx(b,!0);b.j<l;){var m=Zx(b,!1);if(17543===m){if(m=cta(b),m=Jx(m))if(e)for(var n=g.r(Object.keys(m)),p=n.next();!p.done;p=n.next())p=p.value,e[p]=m[p];else e=m}else 17827===
m?(m=cta(b),d||(d=m)):by(b)}b.j=c;b=e?new Ix(e,d):null}a.u=b}};
Yta=function(a){if(!a.I){if(g.Uy(a.info.j.info)){var b=Ty(a);var c=Nx(b,0,1836019574);if(c){c=c.offset+c.size;var d=new Uint8Array(c);d.set(new Uint8Array(b.buffer,b.byteOffset,c));b=d}else b=null}else b=dta(new Ux(Ty(a)));b&&(a.info.j.j=b,a.I=!0)}};
Wy=function(a,b,c,d,e){ny.call(this,a,b,c,d);this.I=null;this.index=e?new e.NativeSegmentIndex:new Qy};
Xy=function(a,b,c,d){for(var e=[],f=b;f<=a.index.getLastSegmentNumber();f++){var h=ry(a.index.getOffset(f),a.index.getByteLength(f)),l=a.index.getStartTime(f),m=a.index.getDuration(f),n=Math.max(0,c-h.start),p=Math.min(h.end+1,c+d)-(h.start+n);e.push(new sy(3,a,h,"getRequestInfoForRange",f,l,m,n,p));if(h.start+n+p>=c+d)break}e.length||g.S(new g.Ar("b189619593",""+b,""+c,""+d));return new Cy(e)};
Yy=function(a,b,c,d){this.sampleRate=a||0;this.numChannels=b||0;this.spatialAudioType=c||0;this.itag=d||""};
Zta=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
$y=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||Zy(a,b);this.j=g.Lw[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&0!==d&&1!==d?0:e;this.projectionType=d?2===d&&2===e?3:d:0;(a=h)||(a=g.Lw[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+(2===c||3===c||4===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));this.qualityLabel=a;this.u=l||"";this.primaries=m||""};
Zy=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=az[0];for(var d=0;d<az.length;d++){var e=az[d],f=g.Lw[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
dz=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.Ob||(c.Ob=16E3);Object.assign(this,c);this.containerType=bz(b);this.j=cz[this.Vb()]||""};
ez=function(a){return"9"===a.j||"("===a.j||"9h"===a.j||"(h"===a.j};
fz=function(a){return"9h"===a.j||"(h"===a.j};
gz=function(a){return"1"===a.j||"1h"===a.j};
osa=function(a){return"mac3"===a.j||"meac3"===a.j||"m"===a.j};
nsa=function(a){return"MAC3"===a.j||"MEAC3"===a.j||"M"===a.j};
g.Uy=function(a){return 1===a.containerType};
hz=function(a){return"application/x-mpegURL"===a.mimeType};
$ta=function(a){var b=navigator.mediaCapabilities;if(!b||"f"===a.j)return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:8*a.Ob||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:a.audio.numChannels||2,bitrate:8*a.Ob||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.u=d})};
iz=function(a){return a.includes("vtt")||a.includes("text/mp4")};
bz=function(a){return 0<=a.indexOf("/mp4")?1:0<=a.indexOf("/webm")?2:0<=a.indexOf("/x-flv")?3:0<=a.indexOf("/vtt")?4:0};
aua=function(a,b,c,d,e){var f=new Yy;b in g.Lw||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.Lw[b],d=Math.round(16*e/9));d=new $y(d,e,0,null,void 0,b);a=unescape(a.replace(/&quot;/g,'"'));return new dz(c,a,{audio:f,video:d})};
bua=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.Yt)?void 0:c.toFixed(0))+", "+(null==(d=a.Ob)?void 0:d.toFixed(0))+")"};
g.jz=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.kz=function(){fu.apply(this,arguments)};
lz=function(){var a=g.La("yt.player.utils.videoElement_");a||(a=g.zg("VIDEO"),g.Ka("yt.player.utils.videoElement_",a));return a};
mz=function(a){var b=lz();return!!(b&&b.canPlayType&&b.canPlayType(a))};
cua=function(a){try{var b=nz('video/mp4; codecs="avc1.42001E"')||nz('video/webm; codecs="vp9"');return(nz('audio/mp4; codecs="mp4a.40.2"')||nz('audio/webm; codecs="opus"'))&&(b||!a)||mz('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
nz=function(a){if(/opus/.test(a)&&g.oz&&!yo("38")&&!g.Cq())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!pna())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!mz(a)};
pz=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
qz=function(){var a=lz();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
rz=function(){var a=lz();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
sz=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
tz=function(a,b,c){b=void 0===b?",":b;c=void 0===c?a?a.length:0:c;var d=[];if(a)for(c=Math.max(a.length-c,0);c<a.length;c++)d.push(a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3));return d.join(b)};
uz=function(a,b){if(!a)return-1;try{for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c}catch(d){}return-1};
vz=function(a,b){return 0<=uz(a,b)};
dua=function(a,b){if(!a)return NaN;b=uz(a,b);return 0<=b?a.start(b):NaN};
wz=function(a,b){if(!a)return NaN;b=uz(a,b);return 0<=b?a.end(b):NaN};
xz=function(a){return a&&a.length?a.end(a.length-1):NaN};
eua=function(a,b){a=wz(a,b);return 0<=a?a-b:0};
yz=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;f++)a.end(f)<b||a.start(f)>c||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return sz(d,e)};
zz=function(a,b,c,d){g.iu.call(this);var e=this;this.Pd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.jO={error:function(){!e.isDisposed()&&e.isActive&&e.X("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.X("updateend",e)}};
g.ju(this.Pd,this.jO);this.Zz=this.isActive};
Az=function(a,b,c,d,e){g.iu.call(this);var f=this;this.Yb=a;this.Cf=b;this.id=c;this.containerType=d;this.isVideo=e;this.MO=this.iC=this.De=null;this.appendWindowStart=this.timestampOffset=0;this.JM=sz([],[]);this.NA=!1;this.yz=fua?[]:void 0;this.Oc=function(l){return f.X(l.type,f)};
var h;if(null==(h=this.Yb)?0:h.addEventListener)this.Yb.addEventListener("updateend",this.Oc),this.Yb.addEventListener("error",this.Oc)};
Bz=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
Cz=function(a,b){this.j=a;this.u=void 0===b?!1:b;this.B=!1};
Dz=function(a,b,c){c=void 0===c?!1:c;g.I.call(this);this.mediaSource=a;this.Cf=b;this.isView=c;this.B=0;this.callback=null;this.events=new g.kz(this);g.J(this,this.events);this.Hy=new Cz(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Cf.webkitMediaSourceURL,!0);a=this.mediaSource||this.Cf;gu(this.events,a,["sourceopen","webkitsourceopen"],this.l_);gu(this.events,a,["sourceclose","webkitsourceclose"],this.k_)};
gua=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
hua=function(a,b){Ez(a)?g.Qg(function(){b(a)}):a.callback=b};
Ez=function(a){try{return"open"===Fz(a)}catch(b){return!1}};
Fz=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Cf.webkitSourceState){case a.Cf.SOURCE_OPEN:return"open";case a.Cf.SOURCE_ENDED:return"ended";default:return"closed"}};
Gz=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
iua=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.Pd:a.j,f=a.u.isView()?a.u.Pd:a.u,h=new Dz(a.mediaSource,a.Cf,!0);h.Hy=a.Hy;e=new zz(e,b,c,d);b=new zz(f,b,c,d);h.j=e;h.u=b;g.J(h,e);g.J(h,b);Ez(a)||a.j.sD(a.j.ud());return h};
jua=function(a,b){return Hz(function(c,d){return g.sq(c,d,4,1E3)},a,b)};
g.kua=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=ux(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
Hz=function(a,b,c){b.match(lua);return a(b,c).then(function(d){var e=g.kua(d.xhr);return e?Hz(a,e,c):d.xhr})};
Iz=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.iu.call(this);this.sourceUrl=a;this.isLivePlayback=c;this.Ga=this.duration=0;this.Mf=this.J=this.isLiveHeadPlayable=this.isLive=this.u=!1;this.Gh=this.Ve=0;this.isOtf=this.fg=!1;this.va=(0,g.R)();this.V=Infinity;this.j={};this.state=this.Y=0;this.timeline=null;this.isManifestless=!1;this.W=[];this.B=null;this.oa=0;this.Ia="";this.ma=NaN;this.I=this.D=this.C=this.timestampOffset=this.N=0;this.Sa=!!b&&b.fb("html5_live_nonzero_first_segment_start_time");
this.Ta=!!b&&b.fb("html5_live_self_init_segments");this.withCredentials=!b||!b.fb("html5_manifest_without_credentials");this.Da=!!b&&b.fb("disable_html5_manifest_namespace_redux");this.Pa=b&&b.fb("disable_html5_duration_caching")?Infinity:10;mua=!!b&&b.fb("html5_modern_vp9_mime_type")};
ssa=function(a){return g.Le(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
Xw=function(a){return g.Le(a.j,function(b){return!!b.info.Wd})};
nua=function(a){return g.Le(a.j,function(b){return iz(b.info.mimeType)})};
oua=function(a){return g.Le(a.j,function(b){return b.info.video?2===b.info.video.projectionType:!1})};
pua=function(a){return g.Le(a.j,function(b){return b.info.video?3===b.info.video.projectionType:!1})};
qua=function(a){return g.Le(a.j,function(b){return b.info.video?4===b.info.video.projectionType:!1})};
rua=function(a){return g.Le(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
sua=function(a){return Vba(a.j,function(b){return b.info.video?b.MI():!0})};
Rw=function(a){return g.Le(a.j,function(b){return fx(b.u.j)})};
tua=function(a){return g.Le(a.j,function(b){return!(b.index instanceof Qy)})};
Jz=function(a,b){a.j[b.info.id]=b};
Kz=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var h=(a.size||"640x360").split("x");h=new $y(+h[0],+h[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=uua(d,h)}var l;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var m=new Yy(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type);a.name&&(l=new g.jz(a.name,a.audio_track_id,"1"===a.isDefault))}var n;a.caption_display_name&&
a.caption_vss_id&&a.caption_language_code&&(n=new Zta(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));f=Number(a.bitrate)/8;var p=Number(a.clen),q=Number(a.lmt);c=c&&p?p/c:0;if(b&&a.drm_families){var t={};for(var u=g.r(a.drm_families.split(",")),x=u.next();!x.done;x=u.next())x=x.value,t[x]=b[x]}return new dz(e,d,{audio:m,video:h,Fc:l,Wd:t,Ob:f,Yt:c,contentLength:p,lastModified:q,captionTrack:n,streamType:+a.stream_type})};
vua=function(a){return pl(a,function(b){return 3===+b.stream_type})?3:0};
wua=function(a,b){return a.timeline?gc(a.timeline.C,b):a.W.length?gc(a.W,b):[]};
Lz=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.ax(a,!0);a.set("alr","yes");c&&(c=ysa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
Aua=function(a,b){var c=Iy(b,"id");c=c.replace(":",";");var d=Iy(b,"mimeType"),e=Iy(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(Iy(b,"bandwidth"))/8;var f=Number(Jy(b,"BaseURL").getAttribute(Mz(a,"contentLength"))),h=a.duration&&f?f/a.duration:0;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var l=Number(Iy(b,"width"));var m=Number(Iy(b,"height")),n=Number(Iy(b,"frameRate")),p=xua(Iy(b,Mz(a,"projectionType")));a:switch(Iy(b,Mz(a,"stereoLayout"))){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=
2;break a;default:q=0}l=new $y(l,m,n,p,q)}if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var t=Number(Iy(b,"audioSamplingRate"));var u=Number(Iy(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=yua(Iy(b,Mz(a,"spatialAudioType")));t=new Yy(t,u,m);a:{u=Iy(b,"lang")||"und";if(m=Jy(b,"Role"))if(p=Iy(m,"value")||"",g.Pe(zua,p)){m=u+"."+zua[p];n="main"===p;a=Iy(b,Mz(a,"langName"))||u+" - "+p;u=new g.jz(a,m,n);break a}u=void 0}}if(b=Jy(b,"ContentProtection"))if("https://web.archive.org/web/20220603021303/http://youtube.com/drm/2012/10/10"===
b.getAttribute("schemeIdUri")){var x={};for(b=b.firstChild;null!=b;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(x[a]=m.trim()))}else x=void 0;return new dz(c,d,{audio:t,video:l,Fc:u,Wd:x,Ob:e,Yt:h,contentLength:f})};
xua=function(a){switch(a){case "equirectangular":return 2;case "equirectangular_threed_top_bottom":return 3;case "mesh":return 4;case "rectangular":return 1;default:return 0}};
yua=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return 1;case "spatial_audio_type_ambisonics_quad":return 2;case "spatial_audio_type_foa_with_non_diegetic":return 3;default:return 0}};
Cua=function(a,b){b=void 0===b?"":b;a.state=1;a.va=(0,g.R)();return jua(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.withCredentials}).then(function(c){if(!a.isDisposed()){a.Y=c.status;c=c.responseText;var d=new DOMParser;c=Pea(d,Rf(c,null)).getElementsByTagName("MPD")[0];a.V=1E3*Eta(Iy(c,"minimumUpdatePeriod"))||Infinity;if(!a.Da){b:{if(c.attributes){d=g.r(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"https://web.archive.org/web/20220603021303/http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];
break b}}d=""}a.Ia=d}a.isLive=Infinity>a.V&&a.isLivePlayback;a.Ga=Number(Iy(c,Mz(a,"earliestMediaSequence")))||0;if(d=Date.parse(Fta(Iy(c,Mz(a,"mpdResponseTime")))))a.oa=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.lk(c.getElementsByTagName("Period"),a.P_,a);a.state=2;a.X("loaded");Bua(a)}return a}).Li(function(c){if(c instanceof qq){var d=c.xhr;
a.Y=d.status}a.state=3;a.X("loaderror");return Vg(d)})};
Dua=function(a,b,c){return Cua(new Iz(a,b,c),a)};
Nz=function(a){return a.isLive&&(0,g.R)()-a.va>=a.V};
Bua=function(a){var b=a.V;isFinite(b)&&(Nz(a)?a.refresh():(b=Math.max(0,a.va+b-(0,g.R)()),a.B||(a.B=new g.K(a.refresh,b,a),g.J(a,a.B)),a.B.start(b)))};
Eua=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0};
Oz=function(a){return a.C?a.C-(a.N||a.timestampOffset):0};
Pz=function(a){return a.D?a.D-(a.N||a.timestampOffset):0};
Qz=function(a){if(!isNaN(a.ma))return a.ma;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.Pa&&(a.ma=b);return b}if(a.isLive&&(d=b[c],d.fk))return d.fk}return NaN};
Fua=function(a,b){a=Xba(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<a.getLastSegmentNumber()?a.getStartTime(c+1):NaN};
Gua=function(a,b){g.Ie(a.j,function(c){g.Ie(b,function(d,e){var f=c.u;f.j.set(e,d);f.C.set(e,d);f.B&&f.B.set(e,d)})})};
Hua=function(a,b){if(!a.j["0"]){var c=new dz("0","fakesb",{video:new $y(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new Hy(new g.ax("https://web.archive.org/web/20220603021303/http://www.youtube.com/videoplayback"),c,"fake"):new Wy(new g.ax("https://web.archive.org/web/20220603021303/http://www.youtube.com/videoplayback"),c,new py(0,0),new py(0,0))}};
Rz=function(a,b,c){for(var d in a.j){var e=iz(a.j[d].info.mimeType)||a.j[d].info.isVideo();if(c===e){e=a.j[d].index;var f=My(e,b);0<=f&&e.segments.splice(f,1)}}};
Iua=function(a){for(var b in a.j)Gsa(a.j[b].index,Infinity)};
Mz=function(a,b){return a.Da?"yt:"+b:a.Ia+":"+b};
Jua=function(a){a.D=0;a.C=0;a.I=0};
uua=function(a,b){null===Sz&&(Sz=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(mua&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return!Sz&&0<a.indexOf("vp09.00")?a='video/webm; codecs="vp9"':!Sz&&0<a.indexOf("vp09.02")&&(a='video/webm; codecs="vp9.2"'),a;if(!Sz&&!Kua||'video/webm; codecs="vp9"'!==a&&'video/webm; codecs="vp9.2"'!==
a)return a;var c="00",d="08",e="01",f="01",h="01";'video/webm; codecs="vp9.2"'===a&&(c="02",d="10","bt2020"===b.primaries&&(h=e="09"),"smpte2084"===b.u&&(f="16"),"arib-std-b67"===b.u&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'};
Lua=function(){var a=g.$u("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.Xf(Math.floor(b),0,100),muted:!!a.muted}};
Mua=function(a){g.Zu("yt-player-bandwidth",a,2592E3)};
Tz=function(a){a=void 0===a?2592E3:a;if(0<a&&!(cra()>(0,g.R)()-1E3*a))return 0;a=g.$u("yt-player-quality");if("string"===typeof a){if(a=g.Lw[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
Nua=function(){var a=g.$u("yt-player-quality");if(a instanceof Object&&a.quality&&a.previousQuality){if(a.quality>a.previousQuality)return 1;if(a.quality<a.previousQuality)return-1}return 0};
Oua=function(){var a={values:{},Gn:{}};try{var b=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);a.values=b.values;a.halfLives=b.halfLives}catch(c){}return a};
Pua=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
Vz=function(a,b){return+Uz()[Pua(a,b)]||8192};
Uz=function(){return g.$u("yt-player-performance-cap")||{}};
Qua=function(a){g.Zu("yt-player-watch-later-pending",a)};
Rua=function(){return!!g.$u("yt-player-headers-readable")};
Sua=function(a){g.Zu("yt-player-playback-on-reload",a)};
Tua=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.Uua=function(){var a=g.$u("yt-player-caption-language-preferences");return a?a:[]};
Vua=function(){this.Zb=this.j=this.Da=this.I=this.D=this.Y=this.va=this.Ta=this.Sa=!1;this.N=this.J=0;this.kb=!1;this.bb=!0;this.eb=!1;this.V=0;this.oa=!1;this.Kb=Infinity;this.vF=!1;this.qc=!0;this.Pa=this.Ga=this.Ia=!1;this.u={};this.Ib=this.B=this.ma=!1;this.Ye=0;this.qb=!1};
tsa=function(a){if(a.Ta)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.oa&&(b.unshift("1"),b.unshift("1h"));a.j&&b.unshift("h");a.W&&(b=(Wua[a.W]||[a.W]).concat(b));return b};
rsa=function(a){var b=["o","a","A"];1===a.Ye&&(a.Y&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.I&&(b=["meac3","MEAC3"].concat(b)));a.Sa&&(b=["so","sa"].concat(b));!a.Zb||a.Da||a.C||b.unshift("a");a.va&&b.unshift("ah");a.C&&(b=(Wua[a.C]||[a.C]).concat(b));return b};
Wz=function(a,b,c){b=void 0===b?{}:b;if(Uw(a.u,Vw.AV1_CODECS)&&Uw(a.u,Vw.HEIGHT)&&Uw(a.u,Vw.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=Tua();if(d)return b.localPref=d}catch(h){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;ona()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(h){return gz(h)}))?void 0:null==(f=e.u)?void 0:f.powerEfficient)a=8192,b.isEfficient=1;
c=c.videoInfos[0].video;e=Math.min(Vz("1",c.fps),Vz("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=Vz("1",30),b.perfCap30=c,a=Math.min(a,c),c=Vz("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
Yz=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.C=c;this.experiments=d;this.j={};this.u=this.keySystemAccess=null;this.I=this.J=-1;this.B=null;this.D="";this.N=!!d&&d.fb("edge_nonprefixed_eme");this.D=d?g.Xz(d,"html5_hdcp_probing_stream_url"):""};
$z=function(a){return a.N?!1:!a.keySystemAccess&&!!Zz()&&"com.microsoft.playready"===a.keySystem};
aA=function(a){return"com.microsoft.playready"===a.keySystem};
bA=function(a){return!a.keySystemAccess&&!!Zz()&&"com.apple.fps.1_0"===a.keySystem};
cA=function(a){return"com.youtube.fairplay"===a.keySystem};
g.dA=function(a){return"fairplay"===a.flavor};
Zz=function(){var a=window,b=a.MSMediaKeys;Fq()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
fA=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.oz&&!g.Cq())return yo("45");if(g.hs||g.Gc)return a.fb("edge_nonprefixed_eme");if(g.Gw)return yo("47");if(g.Ir){if(a.fb("html5_enable_safari_fairplay"))return!1;if(a=g.eA(a,"html5_safari_desktop_eme_min_version"))return yo(a)}return!0};
Xua=function(a,b,c,d){var e=Dq(),f=(c=e||c&&Fq())?["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.v(f),g.v(gA.playready)):[].concat(g.v(gA.playready),g.v(f))};
hA=function(a,b,c,d,e){d=void 0===d?!1:d;g.I.call(this);this.experiments=b;this.useCobaltWidevine=d;this.ra=e;this.j=[];this.u={};this.C={};this.callback=null;this.D=!1;this.B=[];this.initialize(a,!c)};
Zua=function(a,b){a.callback=b;a.B=[];fA(a.experiments)?iA(a):Yua(a)};
iA=function(a){if(!a.isDisposed())if(0===a.j.length)a.callback(a.B);else{var b=a.j[0],c=a.u[b],d=$ua(a,c);navigator.requestMediaKeySystemAccess(b,d).then(Wp(function(e){if(!a.isDisposed()){c.keySystemAccess=e;if(aA(c)){e=lz();for(var f=g.r(Object.keys(a.C[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.r(e.audioCapabilities),h=f.next();!h.done;h=f.next())ava(a,c,h.value);if(e.videoCapabilities)for(e=
g.r(e.videoCapabilities),f=e.next();!f.done;f=e.next())ava(a,c,f.value)}a.B.push(c);a.useCobaltWidevine?(a.j.shift(),iA(a)):a.callback(a.B)}}),Wp(function(){a.D=!a.D&&"widevine"===a.u[a.j[0]].flavor;
a.D||a.j.shift();iA(a)}))}};
ava=function(a,b,c){a.K("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
$ua=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};aA(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.r(Object.keys(a.C[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.oz&&Aq("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")&&(Lq()||Bq())&&(a.ra("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
Yua=function(a){if(Zz()&&g.Ir)a.B.push(new Yz("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=bva(),c=g.Ub(a.j,function(d){var e=a.u[d],f=!1,h=!1,l;for(l in a.C[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.B.push(a.u[c]);a.j=[]}a.callback(a.B)};
bva=function(){var a=Zz();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=lz();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
cva=function(){this.j=0};
dva=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Yp(b||"","&");a={};b=g.r(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
g.eA=function(a,b){return Number(a.flags[b])||0};
g.Xz=function(a,b){return(a=a.flags[b])?a.toString():""};
jA=function(a,b,c){this.experiments=a;this.Y=b;this.oa=void 0===c?!1:c;this.J=!!g.La("cast.receiver.platform.canDisplayType");this.I={};this.V=!1;this.u=new Map;this.N=!0;this.D=!this.experiments.fb("html5_disable_protected_hdr");this.j=this.B=!1;this.W=this.experiments.fb("html5_disable_vp9_encrypted");a=g.La("cast.receiver.platform.getValue");this.C=!this.J&&a&&a("max-video-resolution-vpx")||null};
psa=function(a,b,c){c=void 0===c?1:c;var d=b.Vb();if("0"===d)return!0;var e=b.mimeType;if(b.Ue()&&Dq()&&a.experiments.fb("html5_appletv_disable_vp9"))return"dwebm";if(gz(b)&&a.V)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(Uw(a,Vw.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if("338"===d&&!(g.oz?yo(53):g.Gw&&yo(64)))return"dopus";
var f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[Vw.WIDTH.name]=b.video.width),b.video.height&&(c[Vw.HEIGHT.name]=b.video.height),b.video.fps&&(c[Vw.FRAMERATE.name]=b.video.fps*f),b.video.u&&(c[Vw.EOTF.name]=b.video.u),b.Ob&&(c[Vw.BITRATE.name]=8*b.Ob*f),"("===b.j&&(c[Vw.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(c[Vw.DECODETOTEXTURE.name]="true");b.audio&&b.audio.numChannels&&(c[Vw.CHANNELS.name]=b.audio.numChannels);
a.B&&ez(b)&&(c[Vw.EXPERIMENTAL.name]="allowed");f=g.r(Object.keys(Vw));for(var h=f.next();!h.done;h=f.next())if(h=Vw[h.value],c[h.name]&&!(h===Vw.EOTF&&0<b.mimeType.indexOf("vp09.02")||a.experiments.fb("html5_ignore_h264_framerate_cap")&&h===Vw.FRAMERATE&&("H"===b.j||"h"===b.j)||h===Vw.DECODETOTEXTURE&&!a.experiments.fb("html5_decode_to_texture_cap")))if(Uw(a,h))if(a.C){if(a.C[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(fz(b)&&h===Vw.EOTF)return"dvp92";!a.experiments.fb("disable_html5_cast_hdcp_filter2")&&
a.J&&b.video&&1080<b.video.j&&b.Wd&&(e+="; hdcp=2.2");return"227"!==d||a.experiments.fb("html5_enable_1080p_hq_cenc")?"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||a.experiments.fb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc":"hqcenc"};
kA=function(a){var b=Bq()&&!yo(29),c=Aq("google tv")&&Aq("chrome")&&!yo(30);a=Dq()&&a.experiments.fb("apple_tv_cobalt_default_mse_killswitch");return b||c||a?!1:gua()};
eva=function(a,b,c){var d=480;b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;1080>=f&&f>d&&!0===psa(a,e,c)&&(d=f)}return d};
g.lA=function(a,b){b=void 0===b?!1:b;return kA(a)&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(lz(),"application/x-mpegURL")?!0:!1};
Uw=function(a,b){b.name in a.I||(a.I[b.name]=fva(a,b));return a.I[b.name]};
fva=function(a,b){if(a.C)return!!a.C[b.name];if(b===Vw.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===Vw.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)};
gva=function(a){a.N=!1;a.j=!0};
hva=function(a){a.B||(a.B=!0,a.j=!0)};
iva=function(a,b){var c=0;a.u.has(b)&&(c=a.u.get(b).YV);a.u.set(b,{YV:c+1,aR:Math.pow(2,c+1)});a.j=!0};
kva=function(a){return jva.then(a)};
mA=function(){var a=this;this.queue=[];this.C=0;this.j=this.u=!1;this.B=function(){a.u=!1;lva(a)}};
nva=function(a){a.j||(mva(function(){lva(a)}),a.j=!0)};
lva=function(a){a.j=!1;if(a.queue.length&&!(a.u&&5>=a.queue.length&&15E3>(0,g.R)()-a.C)){var b=a.queue.shift(),c=b.url;b=b.options;b.timeout=1E4;g.sq(c,b,3,1E3).then(a.B,a.B);a.u=!0;a.C=(0,g.R)();5<a.queue.length&&nva(a)}};
nA=function(){g.iu.call(this);this.items={}};
oA=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
uA=function(a){this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.j=16;if(!ova){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;256>b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);pA=new Uint8Array(256);qA=oA(256);rA=oA(256);sA=oA(256);tA=oA(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;pA[f]=e;b=e<<1^(e>>7&&283);var h=b^e;qA[f]=b<<24|e<<16|e<<8|h;rA[f]=h<<24|qA[f]>>>8;sA[f]=e<<24|rA[f]>>>8;tA[f]=e<<24|sA[f]>>>8}ova=!0}e=oA(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=(pA[a>>16&255]^d)<<24|pA[a>>8&255]<<16|pA[a&255]<<8|pA[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
pva=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};
qva=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=qA[c>>>24]^rA[d>>16&255]^sA[e>>8&255]^tA[f&255]^b[n++],l=qA[d>>>24]^rA[e>>16&255]^sA[f>>8&255]^tA[c&255]^b[n++],m=qA[e>>>24]^rA[f>>16&255]^sA[c>>8&255]^tA[d&255]^b[n++],f=qA[f>>>24]^rA[c>>16&255]^sA[d>>8&255]^tA[e&255]^b[n++],c=h,d=l,e=m;a=a.u;h=b[40];a[0]=pA[c>>>24]^h>>>24;a[1]=pA[d>>16&255]^h>>16&255;a[2]=pA[e>>8&255]^
h>>8&255;a[3]=pA[f&255]^h&255;h=b[41];a[4]=pA[d>>>24]^h>>>24;a[5]=pA[e>>16&255]^h>>16&255;a[6]=pA[f>>8&255]^h>>8&255;a[7]=pA[c&255]^h&255;h=b[42];a[8]=pA[e>>>24]^h>>>24;a[9]=pA[f>>16&255]^h>>16&255;a[10]=pA[c>>8&255]^h>>8&255;a[11]=pA[d&255]^h&255;h=b[43];a[12]=pA[f>>>24]^h>>>24;a[13]=pA[c>>16&255]^h>>16&255;a[14]=pA[d>>8&255]^h>>8&255;a[15]=pA[e&255]^h&255};
xA=function(){if(!vA&&!g.hs){if(wA)return wA;var a;wA=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=wA)?0:b.importKey)&&(null==(c=wA)?0:c.sign)&&(null==(d=wA)?0:d.encrypt))return wA;wA=void 0}};
g.yA=function(a){this.C=a};
g.zA=function(a){this.u=a};
AA=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()};
rva=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],t,u,x,y=0;64>y;)16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[y-2],u=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),d[y]=x),t=q+BA[y]+x+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),u=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=t+u,l+=t,y++,16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=
d[y-2],u=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),d[y]=x),t=p+BA[y]+x+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),u=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=t+u,h+=t,y++,16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[y-2],u=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),d[y]=x),t=n+BA[y]+x+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^
~h&m),u=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=t+u,f+=t,y++,16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[y-2],u=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),d[y]=x),t=m+BA[y]+x+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),u=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),x=q,q=l,l=x,x=p,p=h,h=x,x=n,n=f,f=x,m=e+t,e=t+u,y++;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};
tva=function(a){var b=new Uint8Array(32),c=64-a.u;55<a.u&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.C,f=1;9>f;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;sva(a);return b};
sva=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.J=[];a.J.length=64;a.C=0;a.u=0};
uva=function(a){this.j=a};
vva=function(a,b,c){a=new AA(a.j);a.update(b);a.update(c);b=tva(a);a.update(a.D);a.update(b);b=tva(a);a.reset();return b};
wva=function(a){this.u=a};
xva=function(a,b,c,d){var e,f,h,l;return g.B(function(m){switch(m.j){case 1:if(a.j){m.Ra(2);break}e=a;return g.A(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.A(m,d.sign(h,a.j,f),4);case 4:return l=m.u,m.return(new Uint8Array(l))}})};
yva=function(a,b,c){a.B||(a.B=new uva(a.u));return vva(a.B,b,c)};
zva=function(a,b,c){var d,e;return g.B(function(f){if(1==f.j){d=xA();if(!d)return f.return(yva(a,b,c));g.wa(f,3);return g.A(f,xva(a,b,c,d),5)}if(3!=f.j)return f.return(f.u);e=g.ya(f);g.Bu(e);vA=!0;return f.return(yva(a,b,c))})};
DA=function(){this.B=this.j=0;this.u=Array.from({length:CA.length}).fill(0)};
Ava=function(){};
Bva=function(a){this.name=a;this.startTimeMs=(0,g.R)();this.j=!1};
Cva=function(){this.profiles=new Ava};
EA=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new DA),a.profiles[b].Og(c,d))};
FA=function(){};
GA=function(){g.yA.apply(this,arguments)};
HA=function(){g.zA.apply(this,arguments)};
Dva=function(a,b){this.encryptedClientKey=b;this.j=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
Eva=function(a){a.u||(a.u=new GA(a.j));return a.u};
IA=function(a){try{return Hc(a)}catch(b){return null}};
Fva=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?IA(b.clientKey):null;var c=b.encryptedClientKey?IA(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.R)():null;a&&c&&d&&(this.j=new Dva(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=IA(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
JA=function(a){this.j=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)};
KA=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;a<this.j;a++)this.values[a]=Infinity;this.I=Gva(this);this.B=c;this.D=d};
Gva=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
LA=function(a,b){if(!a.u&&0===a.valueIndex)return 0;a.C&&(g.mc(a.I,function(c,d){return a.values[c]-a.values[d]}),a.C=!1);
return a.values[a.I[Math.round(b*((a.u?a.j:a.valueIndex)-1))]]||0};
Hva=function(a){var b=new cva;this.policy=a;this.oa=b;this.V=this.Y=0;this.D=-1;this.N=!1;this.W=this.C=MA();this.J=new KA(4,1,.6,.4);this.j=new KA(10,1,.5,.4);this.B=a.j?new JA(a.u):new KA(a.u,20,.5,.4);this.I=new KA(5,1,.25);this.u=new KA(30,1,.5);a=g.$u("yt-player-bandwidth")||{};b=this.policy.B;0<a.byterate&&(b=a.byterate,this.N=!0);this.B.Uh(this.policy.D,b);0<a.delay&&this.J.Uh(1,Math.min(a.delay,2));0<a.stall&&this.j.Uh(1,a.stall);0<a.init&&(this.W=Math.min(a.init,this.W));this.D=MA()};
NA=function(a){a=a.J.Dh();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
Iva=function(a,b,c){isNaN(c)||(a.V+=c);isNaN(b)||(a.Y+=b)};
OA=function(a){a=a.B.Dh();return 0<a?a:1};
PA=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=OA(a);d=1/((a.j.Dh()||0)+1/d);var e=a.I.Dh();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+NA(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((LA(a.u,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
QA=function(a){return{delay:NA(a),stall:a.j.Dh()||0,byterate:OA(a),init:a.W}};
RA=function(a){-1<a.D&&3E4<MA()-a.D&&(Mua(QA(a)),a.D=MA(),a.N=!0)};
Jva=function(a){return 4E3<=MA()-a.C};
Kva=function(){this.u=17;this.B=13E4;this.D=.5;this.C=this.j=!1};
Mva=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.I.call(this);var c=this;this.values=a;this.Gn=b;this.u={};this.B=this.j=0;this.C=new g.K(function(){Lva(c)},1E4);
g.J(this,this.C)};
SA=function(a,b){Nva(a,b);return a.values[b]&&a.Gn[b]?a.values[b]/Math.pow(2,a.j/a.Gn[b]):0};
Nva=function(a,b){a.values[b]||(b=Oua(),a.values=b.values||{},a.Gn=b.halfLives||{},a.u=b.values?Object.assign({},b.values):{})};
Lva=function(a){var b=Oua();if(b.values){b=b.values;for(var c={},d=g.r(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.u[e]&&(a.values[e]+=b[e]-a.u[e]),c[e]=SA(a,e);a.u=c}b=a.Gn;c={};c.values=a.u;c.halfLives=b;g.Zu("yt-player-memory",c,2592E3)};
qB=function(a,b,c){g.I.call(this);this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.md=this.qd=this.Pa=this.Ag=this.userDisplayName=this.userDisplayImage=this.aj="";this.deviceParams={};this.controlsType="0";this.Ff=NaN;this.Yc=!1;this.Le=(0,g.R)();this.kb=0;this.Xj=this.Bl=!1;this.yl=!0;this.Wj=this.ye=!1;this.vk=null;this.C=!1;this.V=0;a=a?g.We(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.experiments=new dva(b?
b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:Vq("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)&&!this.K("fill_csp_nonce_from_wpcc_killswitch")?b.cspNonce:Vq("",a.csp_nonce);this.K("web_player_deprecated_uvr_killswitch");try{var d=document.location.toString()}catch(z){d=""}this.Ad=d;this.ancestorOrigins=(d=window.location.ancestorOrigins)?Array.from(d):[];this.j=Qq(!1,b?b.isEmbed:a.is_embed);
b&&b.device?(d=b.device,d.brand&&(this.deviceParams.cbrand=d.brand),d.browser&&(this.deviceParams.cbr=d.browser),d.browserVersion&&(this.deviceParams.cbrver=d.browserVersion),this.deviceParams.c=d.interfaceName||"WEB",this.deviceParams.cver=d.interfaceVersion||"html5",d.interfaceTheme&&(this.deviceParams.ctheme=d.interfaceTheme),this.deviceParams.cplayer=d.interfacePlayerType||"UNIPLAYER",d.model&&(this.deviceParams.cmodel=d.model),d.network&&(this.deviceParams.cnetwork=d.network),d.os&&(this.deviceParams.cos=
d.os),d.osVersion&&(this.deviceParams.cosver=d.osVersion),d.platform&&(this.deviceParams.cplatform=d.platform)):(this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER");b&&!this.K("wpcc_loader_url_killswitch")?this.loaderUrl=this.j||TA(this)&&b.loaderUrl?b.loaderUrl||"":this.Ad:this.loaderUrl=this.j||TA(this)&&a.loaderUrl?Vq("",a.loaderUrl):this.Ad;this.K("embeds_js_api_set_1p_cookie")&&(this.embedsTokenValue=Vq("",a.embedsTokenValue));this.B=uv(this.loaderUrl,
Ova);d=this.loaderUrl;var e=void 0===e?!1:e;this.Pl=tv(uv(d,Pva),d,e,"Trusted Ad Domain URL");this.Ta=Qq(!1,a.privembed);this.protocol=0===this.Ad.indexOf("http:")?"http":"https";this.Y=vv((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||vv(this.Ad)||this.protocol+"://www.youtube.com/";e=b?b.eventLabel:a.el;d="detailpage";"adunit"===e?d=this.j?"embedded":"detailpage":"embedded"===e||this.B?d=Tq(d,e,Qva):e&&(d="embedded");this.Ia=d;Kpa();e=null;d=b?b.playerStyle:a.ps;var f=g.Xb(Rva,d);!d||f&&!this.B||
(e=d);this.playerStyle=e;this.N=(this.D=g.Xb(Rva,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Ol=!this.N;this.Da=Qq(!1,a.disableplaybackui);this.disablePaidContentOverlay=Qq(!1,null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=Qq(!1,null==b?void 0:b.disableSeek);this.Kd=this.K("variable_playback_rate")?!0:lz().defaultPlaybackRate?UA||g.Kq||VA?g.Gw&&yo("20")||g.oz&&yo("4")||g.WA&&yo("11")||Gq():!(g.WA&&!Aq("chrome")||UA||Aq("android")||Aq("silk")):!1;
this.Fl=Qq(!1,a.enable_faster_speeds);this.isMobile=Qq("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.Je=Jq()||Lq();this.isMobile?e=!this.D:(e=Number(Date.now()/1E3),d=g.cr.getInstance(),e=this.K("block_desktop_background_playback_with_mobile_cookie")&&d&&e>Number(d.get("dhmu",e.toString())));this.Nl=e;this.ma=rz();this.Zm=g.XA;this.Zj=Qq(!1,b?b.embedOptOutDeprecation:a.opt_out_deprecation);this.Sh=!(!b||!b.embedsEnablePfpImaIntegration||this.K("embeds_pfp_ima_integration_killswitch"));
this.oa=(this.isMobile||this.Je)&&!!((null==b?0:b.embedsEnableAppendUtmParams)&&this.K("embeds_web_enable_utm_params"));this.pfpChazalUi=this.Sh||Qq(!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.wl=g.YA(this)&&!this.Zj||Qq(!ZA(this)&&!$A(this)&&!this.D,h);this.gk=b?!!b.mobileIphoneSupportsInlinePlayback:Qq(!1,a.playsinline);h=this.isMobile&&aB&&null!=bB&&0<bB&&2.3>=bB;e=b?b.useNativeControls:a.use_native_controls;
this.I=g.YA(this)&&this.isMobile;d=this.isMobile&&!this.I;e=cB(this)||!h&&Qq(d,e)?"3":"1";d=b?b.controlsType:a.controls;this.controlsType="0"!==d&&0!==d?e:"0";this.bf=this.isMobile;this.color=Tq("red",b?b.progressBarColor:a.color,Sva);this.Xm="3"===this.controlsType||Qq(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.Zb=!this.j;this.xl=(e=!this.Zb&&!$A(this)&&!this.N&&!this.D&&!ZA(this))&&!this.Xm&&"1"===this.controlsType;this.Nc=g.dB(this)&&e&&"0"===this.controlsType&&
!this.xl;this.fn=this.Ym=h;this.qc=("3"===this.controlsType||this.isMobile||Qq(!1,a.use_media_volume))&&!this.I;this.zl=eB&&!g.yc(601)?!1:!0;this.Ml=this.j||!1;this.Ke=$A(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=Vq("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.B||Qq(!0,l);h=!0;b&&b.disableMdxCast&&(h=!1);this.qb=this.K("enable_cast_for_web_unplugged")&&g.fB(this)&&h||this.K("enable_cast_on_music_web")&&
g.gB(this)&&h||l&&h&&"1"===this.controlsType&&!this.isMobile&&($A(this)||g.dB(this)||g.hB(this))&&!g.iB(this);this.dn=pz()||qz();l=b?!!b.supportsAutoplayOverride:Qq(!1,a.autoplayoverride);this.zi=!this.isMobile&&!Aq("nintendo wiiu")&&!Aq("nintendo 3ds")||l;l=b?!!b.enableMutedAutoplay:Qq(!1,a.mutedautoplay);h=this.K("embeds_enable_muted_autoplay")&&g.YA(this);this.Ze=l&&h&&this.ma&&!cB(this);l=($A(this)||ZA(this))&&"blazer"===this.playerStyle;this.Th=b?!!b.disableFullscreen:!Qq(!0,a.fs);this.eb=!this.Th&&
(l||g.bu());this.Lj=this.K("uniplayer_block_pip")&&(Bq()&&yo(58)&&!Lq()||Iq);l=g.YA(this)&&!this.Zj;var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.Jc=l||Qq(!this.D,m);this.rl=Qq(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.J=Lq()&&0<bB&&4.4>=bB?"_top":"_blank";this.Ye=g.hB(this);this.oi=Qq("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.Ga=m;this.authUser=Vq("",b?b.authorizedUserIndex:a.authuser);this.ze=g.YA(this)&&(this.Ta||!ela()||this.Je);var n;b?void 0!==b.disableWatchLater&&(n=!b.disableWatchLater):n=a.showwatchlater;this.Cl=((m=!this.ze)||!!this.authUser&&
m)&&Qq(!this.N,this.B?n:void 0);this.Wg=b?b.isMobileDevice||!!b.disableKeyboardControls:Qq(!1,a.disablekb);this.loop=Qq(!1,a.loop);this.pageId=Vq("",!this.K("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.cn=Qq(!0,a.canplaylive);this.Ib=Qq(!1,a.livemonitor);this.disableSharing=Qq(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.cg(n,m))):n=null;this.qk=n;this.mute=b?!!b.startMuted:Qq(!1,a.mute);this.storeUserVolume=!this.mute&&Qq("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:Tq(void 0,n,jB);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":Vq("",a.cc_lang_pref);n=Tq(2,b?b.captionsLanguageLoadPolicy:
a.cc_load_policy,jB);"3"===this.controlsType&&2===n&&(n=3);this.bb=n;this.zg=b?b.hl||"en_US":Vq("en_US",a.hl);this.region=b?b.contentRegion||"US":Vq("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":Vq("en",a.host_language);this.Dl=!this.Ta&&Math.random()<g.eA(this.experiments,"web_player_api_logging_fraction");this.Sa=!this.Ta;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.Ff=Uq(this.Ff,a.ismb);this.Ol?(n=a.vss_host||"s.youtube.com","s.youtube.com"===
n&&(n=kB(this.Y)||"www.youtube.com")):n="video.google.com";this.rk=n;lB(this,a,!0);this.W=new nA;g.J(this,this.W);m=b?b.innertubeApiKey:Vq("",a.innertube_api_key);l=b?b.innertubeApiVersion:Vq("",a.innertube_api_version);n=b?b.innertubeContextClientVersion:Vq("",a.innertube_context_client_version);m=g.P("INNERTUBE_API_KEY")||m;l=g.P("INNERTUBE_API_VERSION")||l;h=g.P("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");e=mB(this);d="number"===typeof this.deviceParams.c?Number(this.deviceParams.c):Object.keys(Tva).indexOf(this.deviceParams.c);
this.Xh={innertubeApiKey:m,innertubeApiVersion:l,VB:h,mH:e,vO:d,innertubeContextClientVersion:g.P("INNERTUBE_CONTEXT_CLIENT_VERSION")||n,oH:this.hostLanguage,nH:this.region,wO:g.P("INNERTUBE_HOST_OVERRIDE")||"",xO:!!g.P("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),pH:!!g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.ql=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.u=new jA(this.experiments,this.K("html5_force_hfr_support")?!0:nB(this)||Eq()||pna()||Uva(this),g.oz&&g.yc(56)||g.Gw&&
g.yc(54)||Uva(this));n=this.Ff;m=this.experiments;l=new Kva;g.oB(this)&&(l.j=!0,l.D=.1);m.fb("html5_pctile_bandwidth_estimator")&&(l.j=!1);n&&(l.B=n/8);l.C=480<=Tz();this.schedule=new Hva(l);var p;this.enableSafetyMode=null!=(p=null==b?void 0:b.initialEnableSafetyMode)?p:Qq(!1,a.enable_safety_mode);p=this.Da?!1:$A(this)&&"blazer"!==this.playerStyle;var q;b?null!=b.disableAutonav&&(q=!b.disableAutonav):q=a.allow_autonav;this.Zc=Qq(p,!this.N&&q);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:Qq(!1,
a.send_visitor_id_header);var t;"docs"===this.playerStyle&&(b?t=b.disableNativeContextMenu:t=a.disable_native_context_menu);this.disableNativeContextMenu=Qq(!1,t);this.Gl=nB(this)&&this.K("enable_skip_intro_button");this.embedConfig=Vq("",b?b.serializedEmbedConfig:a.embed_config);this.va=Bna(a,g.YA(this));this.C="EMBEDDED_PLAYER_MODE_PFL"===this.va;this.Kb=Qq(!1,a.full_window);this.Hc=!g.fB(this)&&!pB(this)&&!g.iB(this)&&!0;var u;this.livingRoomAppMode=Tq("LIVING_ROOM_APP_MODE_UNSPECIFIED",(null==
b?void 0:null==(u=b.device)?void 0:u.livingRoomAppMode)||a.living_room_app_mode,Vva);var x;q=Uq(NaN,null==b?void 0:null==(x=b.device)?void 0:x.deviceYear);isNaN(q)||(this.deviceYear=q);this.transparentBackground=b?!!b.transparentBackground:Qq(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:Qq(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:Qq(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:
Qq(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=Qq(!1,a.showbackbutton);var y;this.yl=null!=(y=a.show_loop_video_toggle)?y:!0;this.Rl=1E-4>Math.random();this.di=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new Fva(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.ge=new Mva;g.J(this,this.ge);this.Wj=Qq(!1,
a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.P("DATASYNC_ID");this.Ql=g.P("LOGGED_IN",!1);this.Vg=(null==b?void 0:b.allowWoffleManagement)||!1;this.embedsRct=Vq("",b?b.embedsRct:a.rct);this.embedsRctn=Vq("",b?b.embedsRctn:a.rctn);this.Gj=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.K("html5_high_res_logging")?this.V=2:1>4096*Math.random()&&(this.V=1);this.K("html5_ping_queue")&&(this.gi=new mA)};
lB=function(a,b,c){c=void 0===c?!1:c;a.qd=Vq(a.qd,b.video_id);a.Pa=Vq(a.Pa,b.eventid);a.Pa&&(Fu=a.Pa);for(var d=[],e=g.r(Object.keys(Wva)),f=e.next();!f.done;f=e.next()){f=Wva[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0<d.length&&a.Rl&&(d.sort(),g.Bu(new g.Ar("Player client parameters changed after startup",d)));a.userAge=Uq(a.userAge,b.user_age);a.aj=Vq(a.aj,b.user_display_email);a.userDisplayImage=Vq(a.userDisplayImage,b.user_display_image);g.xv(a.userDisplayImage)||
(a.userDisplayImage="");a.userDisplayName=Vq(a.userDisplayName,b.user_display_name);a.Ag=Vq(a.Ag,b.user_gender);a.csiPageType=Vq(a.csiPageType,b.csi_page_type);a.csiServiceName=Vq(a.csiServiceName,b.csi_service_name);a.oi=Qq(a.oi,b.enablecsi);a.pageId=Vq(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Me=b.living_room_session_po_token.toString())};
rB=function(a,b){return!a.D&&Bq()&&yo(55)&&"3"===a.controlsType&&!b};
g.sB=function(a){a=kB(a.Y);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.tB=function(a){return g.iB(a)?"music.youtube.com":g.sB(a)};
uB=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
vB=function(a){return $A(a)&&!g.fB(a)};
cB=function(a){return eB&&!a.gk||Aq("nintendo wiiu")||Aq("nintendo 3ds")?!0:!1};
g.iB=function(a){return"music-embed"===a.playerStyle};
mB=function(a){return a.deviceParams.c};
g.oB=function(a){return/^TVHTML5/.test(mB(a))?!0:"TV"===a.deviceParams.cplatform};
Xva=function(a){return"TVHTML5"===mB(a)&&a.deviceParams.cver.startsWith("7")};
TA=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===mB(a)};
Uva=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.wB=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
nB=function(a){return/web/i.test(mB(a))};
g.SB=function(a){return"WEB"===mB(a).toUpperCase()};
pB=function(a){return"WEB_KIDS"===mB(a)};
g.fB=function(a){return"WEB_UNPLUGGED"===mB(a)};
TB=function(a){return"TVHTML5_UNPLUGGED"===mB(a)};
g.UB=function(a){return g.fB(a)||"TV_UNPLUGGED_CAST"===mB(a)||TB(a)};
g.gB=function(a){return"WEB_REMIX"===mB(a)};
g.VB=function(a){return"WEB_EMBEDDED_PLAYER"===mB(a)};
g.WB=function(a){return!a.K("web_player_i_see_captions_killswitch")&&g.SB(a)};
XB=function(a){return a.K("web_player_enable_hybrid_controls_on_touch_screen")&&window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches&&g.SB(a)};
Yva=function(a){return!a.K("web_player_larger_tap_buttons_killswitch")&&g.SB(a)&&!g.dB(a)};
g.ZB=function(a){return(a.deviceIsAudioOnly||!g.oz||Iq||"3"===a.controlsType?!1:g.Kq?a.j&&g.yc(51):!0)||(a.deviceIsAudioOnly||!g.Gw||Iq||"3"===a.controlsType?!1:g.Kq?a.j&&g.yc(48):g.yc(38))||(a.deviceIsAudioOnly||!g.WA||Iq||"3"===a.controlsType?!1:g.Kq?a.j&&g.yc(37):g.yc(27))||!a.deviceIsAudioOnly&&g.YB&&!Hq()&&g.yc(11)||!a.deviceIsAudioOnly&&g.Ir&&g.yc("604.4")};
Zva=function(a){if(g.dB(a)&&aB)return!1;if(g.Gw){if(!g.yc(47)||!g.yc(52)&&g.yc(51))return!1}else if(g.Ir)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
$A=function(a){return"detailpage"===a.Ia};
g.dB=function(a){return"embedded"===a.Ia};
$B=function(a){return"leanback"===a.Ia};
ZA=function(a){return"adunit"===a.Ia||"gvn"===a.playerStyle};
g.hB=function(a){return"profilepage"===a.Ia};
g.YA=function(a){return a.j&&g.dB(a)&&!ZA(a)&&!a.D};
aC=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(5===b.length)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(8===b.length)return b.splice(7,0,"s20-c"),b.join("/");if(9===b.length)return b[7]+="-s20-c",b.join("/");g.Bu(new g.Ar("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.bC=function(a){var b=g.tB(a);!a.K("yt_embeds_disable_new_error_lozenge_url")&&$va.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.cC=function(a,b){return vq(b||a.md)};
dC=function(a){return 1<=a.V};
kB=function(a){var b=g.Gh(a);return(a=Number(g.Fh(4,a))||null)?b+":"+a:b};
eC=function(a){var b=[];if(a){a=g.r(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;void 0!==d&&(d="boolean"===typeof d?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")};
fC=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
gC=function(a){return 1===a||2===a};
hC=function(a,b){b=void 0===b?0:b;if(a instanceof fC)return a;a=a&&a instanceof Error?a:Error(""+a);gC(b)?g.S(a):g.Bu(a);return new fC(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
iC=function(a){this.j=a};
jC=function(a,b,c){if(c)return uq();c={};var d=lz();b=g.r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(d,e.cg().mimeType)){var f=e.j.video.quality;if(!c[f]||c[f].cg().Ue())c[f]=e}a=[];c.auto&&a.push(c.auto);d=g.r(az);for(b=d.next();!b.done;b=d.next())(b=c[b.value])&&a.push(b);return a.length?vq(a):uq()};
awa=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.I=e;this.C=0;this.j=""};
bwa=function(a,b){a.B.some(function(c){var d;return(null==(d=c.Fc)?void 0:d.getId())===b});
a.j=b};
kC=function(a,b,c){a.cpn&&(b=g.Mh(b,{cpn:a.cpn}));c&&(b=g.Mh(b,{zka:c}));return b};
cwa=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
dwa=function(a){for(var b=[],c=[],d=g.r(a.u),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.C?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate});
c.sort(function(f,h){return f.bitrate-h.bitrate});
a.u=b.concat(c)};
ewa=function(a){this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;var b;this.u=(null==(b=a.audioItag)?void 0:b.split(","))||[];this.ow=a.ow;this.Wd=a.Wd||"";this.Fc=a.Fc;this.audioChannels=a.audioChannels;this.j=""};
fwa=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!0:c;d=void 0===d?{}:d;var e={};a=g.r(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/);
m=m?m[1]:"";f.audio_track_id&&(h=new g.jz(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new ewa({itag:f.itag,url:f.url,codecs:m,width:Number(f.width),height:Number(f.height),fps:Number(f.fps),bitrate:Number(f.bitrate),audioItag:f.audio_itag,ow:n?l[n]:void 0,Wd:f.drm_families,Fc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
lC=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.u=null};
gwa=function(a,b){if(!(Iq||Fq()||Dq()))return null;a=fwa(b,a.K("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.r(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.r(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.Fc&&(f=h.Fc.getId(),c[f]||(h=new g.Jw(f,h.Fc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
lwa=function(a,b,c,d,e,f,h){if(!(Iq||Fq()||Dq()))return uq();var l={},m=hwa(c),n=fwa(c,a.K("html5_filter_fmp4_in_hls"),a.u.D,l);if(!n)return h({noplst:1}),uq();iwa(n);c={};var p=(c.fairplay="https://web.archive.org/web/20220603021303/https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var t=[],u=[],x=null,y="";d=d&&d.match(/hls_timedtext_playlist/)?new ewa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Fc:new g.jz("English","en",!1)}):null;for(var z=g.r(Object.keys(n)),D=z.next();!D.done;D=z.next())if(D=D.value,!a.K("html5_disable_drm_hfr_1080")||
"383"!==D&&"373"!==D){D=g.r(n[D]);for(var H=D.next();!H.done;H=D.next())if(H=H.value,H.width){for(var G=g.r(H.u),L=G.next();!L.done;L=G.next())if(L=L.value,n[L]){H.j=L;break}H.j||(H.j=jwa(n,H));if(G=n[H.j])if(c.push(H),"fairplay"===H.Wd&&(q=p),L="","PQ"===H.ow?L="smpte2084":"HLG"===H.ow&&(L="arib-std-b67"),L&&(y=L),u.push(kwa(G,[H],d,f,H.itag,H.width,H.height,H.fps,m,void 0,void 0,q,L)),!x||H.width*H.height*H.fps>x.width*x.height*x.fps)x=H}else t.push(H)}else l[D]="disdrmhfr";u.reduce(function(aa,
M){return M.cg().isEncrypted()&&aa},!0)&&(q=p);
e=Math.max(e,0);p=x||{};n=void 0===p.fps?0:p.fps;x=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;z=a.K("html5_native_audio_track_switching");u.push(kwa(t,c,d,f,"93",x,p,n,m,"auto",e,q,y,z));Object.entries(l).length&&h(l);return jC(a.u,u,rB(a,b))};
kwa=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){for(var x=0,y="",z=g.r(a),D=z.next();!D.done;D=z.next())D=D.value,y||(y=D.itag),D.audioChannels&&D.audioChannels>x&&(x=D.audioChannels,y=D.itag);e=new dz(e,"application/x-mpegURL",{audio:new Yy(0,x,null,y),video:new $y(f,h,l,null,void 0,n,void 0,t),Wd:q});a=new awa(a,b,c?[c]:[],d,!!u);a.C=p?p:1369843;return new lC(e,a,m)};
hwa=function(a){a=g.r(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};
jwa=function(a,b){for(var c=g.r(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""};
iwa=function(a){for(var b=new Set,c=g.r(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.r(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.r(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
mC=function(a,b){this.j=a;this.u=b};
mwa=function(a,b,c,d){var e=[];c=g.r(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.ax(h.url,!0);if(h.s){var l=h.sp,m=ysa(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.r(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=aua(h.type,h.quality,h.itag,h.width,h.height);e.push(new mC(h,f))}}return jC(a.u,e,rB(a,b))};
nC=function(a,b){this.j=a;this.u=b};
nwa=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=aua(e.type,"medium","0");d.push(new nC(f,e.url))}return jC(a.u,d,rB(a,b))};
owa=function(a){this.j=a.playback_progress_0s_url;this.B=a.playback_progress_2s_url;this.u=a.playback_progress_10s_url};
oC=function(){var a=pwa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=cka.apply(null,[dka.apply(null,g.v(b))].concat(g.v(c)));this.store=fka(a,void 0,b)};
g.pC=function(a,b,c){for(var d=Object.assign({},a),e=g.r(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.v(h),g.v(l)):l;else if(!Array.isArray(l)&&g.Pa(l)&&!Array.isArray(h)&&g.Pa(h))d[f]=g.pC(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.Ar("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,yka:h,Ha:l}),g.S(b),a}return d};
qC=function(a){this.u=a;this.j=0;this.B=-1};
rC=function(a){var b=qx(a.u,a.j);++a.j;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=qx(a.u,a.j),++a.j,d*=128,c+=(b&127)*d;return c};
sC=function(a,b){var c=a.B;for(a.B=-1;a.j+1<=a.u.totalLength;){0>c&&(c=rC(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.B=c;break}c=-1;switch(e){case 0:rC(a);break;case 1:a.j+=8;break;case 2:d=rC(a);a.j+=d;break;case 5:a.j+=4}}return!1};
tC=function(a,b){if(sC(a,b))return rC(a)};
qwa=function(a,b){if(sC(a,b))return!!rC(a)};
uC=function(a,b){if(sC(a,b)){b=rC(a);var c=px(a.u,a.j,b);a.j+=b;return c}};
vC=function(a,b){if(a=uC(a,b))return g.wx(a)};
rwa=function(a,b,c){if(a=uC(a,b))return c(new qC(new kx([a])))};
wC=function(a,b){a=a instanceof Uint8Array?new kx([a]):a;return b(new qC(a))};
swa=function(){this.j=0;this.B=[];this.u=new Uint8Array(4096);this.view=new DataView(this.u.buffer)};
xC=function(a,b){b=a.j+b;if(!(a.u.length>=b)){for(var c=2*a.u.length;c<b;)c*=2;b=new Uint8Array(c);b.set(a.u.subarray(0,a.j));a.u=b;a.view=new DataView(a.u.buffer)}};
yC=function(a,b){if(268435455<b){xC(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.j,c&127|128),c>>=7,a.j+=1;b=Math.floor(b/268435456)}for(xC(a,4);127<b;)a.view.setUint8(a.j,b&127|128),b>>=7,a.j+=1;a.view.setUint8(a.j,b);a.j+=1};
zC=function(a,b,c){void 0!==c&&(yC(a,b<<3|0),yC(a,c))};
AC=function(a,b,c){void 0!==c&&zC(a,b,c?1:0)};
BC=function(a,b,c){void 0!==c&&(yC(a,b<<3|2),b=c.length,yC(a,b),xC(a,b),a.u.set(c,a.j),a.j+=b)};
CC=function(a,b,c){void 0!==c&&(twa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),xC(a,1.2*c.length),b=yx(c,a.u.subarray(a.j)),a.j+b>a.u.length&&(xC(a,b),b=yx(c,a.u.subarray(a.j))),a.j+=b,uwa(a))};
twa=function(a,b,c){c=void 0===c?2:c;yC(a,b<<3|2);a.B.push(a.j);a.B.push(c);a.j+=c};
uwa=function(a){for(var b=a.B.pop(),c=a.B.pop(),d=a.j-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}};
DC=function(a,b,c,d,e){c&&(twa(a,b,void 0===e?3:e),d(a,c),uwa(a))};
EC=function(a,b){var c=new swa;b(c,a);return new Uint8Array(c.u.buffer,0,c.j)};
g.FC=function(a){var b=new qC(new kx([Hc(decodeURIComponent(a))]));a=vC(b,2);b=tC(b,4);var c=vwa[b];if("undefined"===typeof c)throw a=new g.Ar("Failed to recognize field number",{name:"EntityKeyHelperError",dka:b}),g.S(a),a;return{UV:b,entityType:c,entityId:a}};
g.GC=function(a,b){var c=new swa;CC(c,2,a);a=wwa[b];if("undefined"===typeof a)throw b=new g.Ar("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.S(b),b;zC(c,4,a);zC(c,5,1);b=new Uint8Array(c.u.buffer,0,c.j);return encodeURIComponent(g.Cc(b))};
HC=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))};
xwa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.pC(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))};
IC=function(a,b){this.type=a||"";this.id=b||""};
g.JC=function(a){return new IC(a.substr(0,2),a.substr(2))};
KC=function(a,b){for(var c={},d=g.r(Object.keys(ywa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.xv(f)&&(c[ywa[e]]=f)}return c};
LC=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.r(Object.keys(zwa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=zwa[e];for(var f=g.r(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=Awa(h.url);g.xv(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Awa(a.url),g.xv(a)&&(b["maxresdefault.jpg"]=a));return b};
Awa=function(a){return a.startsWith("//")?"https:"+a:a};
g.MC=function(a,b){this.u=a;this.author="";this.Ex=null;this.playlistLength=0;this.j=this.sessionData=null;this.W={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=Yp(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.W=KC(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new IC("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.JC(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.NC=function(a,b){this.j=a;this.So=this.author="";this.Ex=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Ur=this.lengthText="";this.sessionData=null;this.W={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.So=b.So||"";if(a=b.endscreen_autoplay_session_data)this.Ex=Yp(a,"&");this.Fx=b.Fx;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.Ur=b.Ur||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=Yp(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.W=KC(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
Cwa=function(a,b){var c=g.La("ytDebugData.callbacks");c||(c={},g.Ka("ytDebugData.callbacks",c));if(g.Q("web_dd_iu")||Bwa.includes(a))c[a]=b};
OC=function(a){this.j=new Co(a)};
Dwa=function(){if(void 0===PC){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.Oo(g.Br()+"::yt-player"))){PC=new OC(a);break a}PC=void 0}}return PC};
g.QC=function(){var a=Dwa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.Ewa=function(a){var b=Dwa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.RC=function(a){return g.QC()[a]||0};
g.SC=function(a,b){var c=g.QC();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.Ewa(c))};
g.TC=function(a){return g.B(function(b){return b.return(g.es(Fwa(),a))})};
VC=function(a,b,c,d,e,f,h){var l,m,n,p,q,t;return g.B(function(u){switch(u.j){case 1:return l=g.RC(a),4===l?u.return(4):g.A(u,g.ls(),2);case 2:m=u.u;if(!m)throw g.Kr("wiac");if(!h||void 0===f){u.Ra(3);break}return g.A(u,Gwa(h,f),4);case 4:f=u.u;case 3:return n=c.lastModified||"0",g.A(u,g.TC(m),5);case 5:return p=u.u,g.wa(u,6),UC++,g.A(u,g.Wr(p,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",jc:!0},function(x){if(void 0!==e&&void 0!==f){var y=""+a+"|"+b.id+"|"+n+"|"+String(e).padStart(10,
"0");y=g.Xr(x.objectStore("media"),f,y)}else y=g.Mr.resolve(void 0);var z=Hwa(a,b.isVideo()),D=Hwa(a,!b.isVideo()),H={fmts:Iwa(d),format:c||{}};z=g.Xr(x.objectStore("index"),H,z);var G=-1===d.downloadedEndTime;x=G?x.objectStore("index").get(D):g.Mr.resolve(void 0);return g.Mr.all([x,y,z]).then(function(L){L=g.r(L).next().value;UC--;var aa=g.RC(a);4!==aa&&G&&void 0!==L&&g.Jwa(L.fmts)&&(aa=1,g.SC(a,aa));return aa})}),8);
case 8:return u.return(u.u);case 6:q=g.ya(u);UC--;t=g.RC(a);if(4===t)return u.return(t);g.SC(a,4);throw q;}})};
g.Kwa=function(a){var b,c;return g.B(function(d){if(1==d.j)return g.A(d,g.ls(),2);if(3!=d.j){b=d.u;if(!b)throw g.Kr("ri");return g.A(d,g.TC(b),3)}c=d.u;return d.return(g.Wr(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return g.uoa(e.objectStore("index"),f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})};
Mwa=function(a,b,c,d,e){var f,h,l;return g.B(function(m){if(1==m.j)return g.A(m,g.ls(),2);if(3!=m.j){f=m.u;if(!f)throw g.Kr("rc");return g.A(m,g.TC(f),3)}h=m.u;l=g.Wr(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},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){return Lwa(e,n)})):m.return(l)})};
g.Jwa=function(a){return a?a.includes("dlt=-1")||!a.includes("dlt="):!1};
Hwa=function(a,b){return""+a+"|"+(b?"v":"a")};
Iwa=function(a){var b={};return Zp((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
Owa=function(a){var b={},c={};a=g.r(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.Nwa)?(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.r(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};
Pwa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.aA=IA(a.ustreamerConfig)||void 0)};
g.WC=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.YC=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.XC(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.ZC=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.XC=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("")};
Twa=function(a,b,c,d){a||(a=b&&Qwa.hasOwnProperty(b)&&Rwa.hasOwnProperty(b)?Rwa[b]+"_"+Qwa[b]:void 0);b=a;if(!b)return null;a=b.match(Swa);if(!a||5!==a.length)return null;if(a=b.match(Swa)){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};
Vwa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return Uwa[a];return null};
$C=function(a){return a&&a.baseUrl||""};
aD=function(a){a=g.bq(a);for(var b=g.r(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};
Wwa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Ta=b)};
Ywa=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.r(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=Xwa(d.baseUrl);if(!e)return;d=new g.WC({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.Hv(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.jF=b.audioTracks||[];a.OR=b.defaultAudioTrackIndex||0;a.kF=b.translationLanguages?g.kk(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.Hv(f.languageName)}}):
[];
a.Jq=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
Zwa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=h.unserializedPlayerResponse;if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=h.playerVars)return Object.assign({is_yto_interstitial:!0},$p(h))});
d=g.r(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,ul:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,ul: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,
ul:0===f?5:7})}}};
$wa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
axa=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)};
gxa=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=a.cipher||a.signatureCipher)?
(c=$p(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=bxa[c]);(c=a.projectionType)&&(b.projection_type=cxa[c]);(c=a.stereoLayout)&&(b.stereo_layout=dxa[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=exa[c]);if(d=a.drmFamilies){c=[];d=g.r(d);for(var e=d.next();!e.done;e=d.next())c.push(bD[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=Vwa(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=fxa[a])&&(b.primaries=a);return g.Kh(b)};
cD=function(a){g.iu.call(this);this.j=null;this.B=new Ro;this.j=null;this.J=new Set;this.D=a||""};
hxa=function(a,b,c){for(c=dD(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(eD(d,b))&&(d=g.fD(d,b)))return d;c--}return g.fD(a.levels[0],b)};
jxa=function(a,b,c){c=dD(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=eD(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,{UO:f,lP:e}))}ixa(a)};
ixa=function(a){if(!a.j&&!a.B.isEmpty()){var b=a.B.remove();a.j=kxa(a,b)}};
kxa=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=gD(a.levels[b.UO],b.lP);c.onload=function(){var d=b.UO,e=b.lP;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);ixa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.rA()-1);e=[e,d];a.X("l",e[0],e[1])};
return c};
g.hD=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};
eD=function(a,b){return Math.floor(b/(a.columns*a.rows))};
gD=function(a,b){var c=a.C;c=c.replace("$N",a.B);c=c.replace("$L",a.level.toString());c=c.replace("$M",b.toString());a.signature&&(c=g.Mh(c,{sigh:a.signature}));return yv(c)};
g.fD=function(a,b){b>=a.CE()&&a.Mt();var c=eD(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Mt()+1-d*c;if(f<a.columns){var h=f;d=1}else h=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:gD(a,c),column:b,columns:h,row:e,rows:d,Jy:a.width*h,Zr:a.height*d}};
iD=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;cD.call(this,c);this.isLive=d;this.N=!!e;this.levels=this.u(a,b);this.C=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
lxa=function(a,b,c){return(a=a.levels[b])?a.sA(c):-1};
dD=function(a,b){var c=a.C.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].width>=b)return a.C.set(b,d),d;a.C.set(b,c-1);return c-1};
jD=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.hD.call(this,a,b,c,0);this.u=null;this.D=d?2:0};
kD=function(a,b,c,d){iD.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].rL(c)};
mxa=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Mh(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.mD=function(a,b){g.iu.call(this);this.u=a;this.adModule=!1;this.adaptiveFormats="";this.eP=this.xl=this.adQueryId=this.dn=null;this.Zw={start:NaN,end:NaN};this.ariaLabel="";this.Wd=null;this.EF=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Sa="";this.hF=this.fn=!1;this.ML=null;this.bf=this.Ff=this.Xj=this.rK=!1;this.I=null;this.xP=this.Sh=!1;this.Me=NaN;this.oi=!1;this.Ww=0;this.VO=!1;this.Us={};this.VE=this.cycToken=null;
this.author="";this.Tw=0;this.yl=!1;this.Sw=null;this.aF=[];this.Yq=this.mF=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.Nc=this.Jc="";this.contentCheckOk=!1;this.endSeconds=this.Hc=0;this.g1=g.eA(this.S().experiments,"html5_defer_modules_delay_time_millis");this.limitedPlaybackDurationInSeconds=0;this.TO=this.Kd=this.B=null;this.LI="";this.va=!1;this.rl=this.ql=0;this.gF=this.pipable=this.Ov=this.Am=!1;this.paidContentOverlayDurationMs=0;this.isLiveHeadPlayable=
this.isLivePlayback=this.Ib=this.isPrivate=this.isListed=this.WI=this.dR=this.mutedAutoplay=this.Fm=!1;this.tK="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.gK=this.di=this.Mf=!1;this.latencyClass="UNKNOWN";this.DK=this.EK=this.enablePreroll=this.enableServerStitchedDai=this.Ce=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.Zb=0;this.reloadReason="";this.qK=this.GK=this.zg=!1;this.keywords={};this.Kb=
"";this.Cl=0;this.wt=!1;this.liveChunkReadahead=NaN;this.gi=null;this.Ym=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.nS=this.paygated=!1;this.Hj=[];this.oa=[];this.racyCheckOk=!1;this.YL={};this.zz=0;this.C=null;this.autonavState=1;this.EM=null;this.shortDescription="";this.kb=this.RE=!1;this.zq=this.md=this.startSeconds=0;this.xt=this.RQ=this.Wj=lD;this.Iq=this.suggestions=null;this.Zm=this.cn=void 0;this.Gj=null;this.UE=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=
this.title="";this.Mq=this.suggestedAction=this.multiMarkersPlayerBarRenderer=this.lF=void 0;this.Yc=[];this.Ag=[];this.hlsFormats=this.Lj="";this.Es=this.yq=this.Wg=this.qc=this.eb=this.El=this.Sr=null;this.qj="vvt";this.ge=!1;this.cF=null;this.lR="";this.Ql=NaN;this.Rl=this.Ct=this.Ol=this.Bt=this.At=this.Zj=this.Nl=this.Rt=this.Pl=this.Dt="";this.gk=null;this.JO=!1;this.N={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.vK=this.uK=NaN;this.Je=this.Bl=this.ze=this.yK=this.wK=
!1;this.Fl=!0;this.W={};this.captionTracks=[];this.jF=[];this.OR=0;this.kF=[];this.Jq=!1;this.zl=new g.Jw("und",new g.jz("Default","und",!0));this.sK=0;this.V=null;this.Zs=[];this.zH=!1;this.ye=[];this.zt=this.qd="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.playerResponse=this.mS=this.Ys=this.rk=this.wh=this.yH=this.ax=this.Yw=null;this.wr=!1;this.Y=null;this.isInlinePlaybackNoAd=this.Th=this.useCobaltWidevine=this.LO=this.Nr=!1;this.dH=!0;this.hM=this.jM=NaN;this.defraggedFromSubfragments=
this.wm=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.Uw=this.bF=this.Ze=!1;this.interstitials=[];this.D=this.MJ=!1;this.bb="";this.allowImaMonetization=!1;this.Ac=this.Dl=this.QL="";this.Ia=this.xK=!1;this.Ye=0;this.PL=this.Ml="";this.fE=this.eE=this.UI=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Gl=!1;this.aj=this.Vg=!0;this.errorDetail=this.userGenderAge="";this.XE=this.ZE=this.getSharePanelCommand=
this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Ck=this.errorReason=this.errorCode=null;this.Lq=this.Kq="";this.qk=!1;this.Xm=[];this.IO=this.nM=this.lM=this.Gh=this.Ve=0;this.fetchType=null;this.ZL=!0;this.vP=void 0;this.iF=this.qQ=-1;this.zi=this.Ad=!1;this.Zc=null;this.Da="";this.Xh=!1;this.watchUrl=null;this.zs=[];this.visibleOnLoadKeys=[];this.KO=[];this.K("web_player_ux_module_wait")&&this.u.Hc&&this.oa.push("ux");
this.Ad=this.K("web_new_autonav_countdown");this.zi=this.K("web_new_big_thumbnail_endscreen");nxa(this,b)};
g.pD=function(a,b,c){b&&b.cpn&&g.Bu(new g.Ar("CPN provided in VideoData update",{wka:b.cpn,Zg:a.clientPlaybackNonce,PW:c}));c?(Xq(b),nxa(a,b),nD(a)&&oD(a)):(b=b||{},oxa(a,b),pxa(a,b),qxa(a,b),a.X("dataupdated"))};
qxa=function(a,b){a.fflags=Vq(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Sa=yv(c));a.fn=Qq(a.fn,b.iv_ads_only);a.hF=Qq(a.hF,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.K1=c;a.isPharma=Qq(a.isPharma,b.is_pharma);a.author=Vq(a.author,b.author);a.Jc=Xwa(b.ttsurl)||a.Jc;a.yl=Qq(a.yl,b.cc_asr);a.Nc=Vq(a.Nc,b.channel_path);a.channelBanner=Vq(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.profilePicture=Vq(a.profilePicture,c);a.videoCountText=Vq(a.videoCountText,b.video_count_text);
a.autonavState=Tq(a.autonavState,b.autonav_state,rxa);a.clientPlaybackNonce=Vq(a.clientPlaybackNonce,b.cpn);a.subscribed=Qq(a.subscribed,b.subscribed);a.rawViewCount=Uq(a.rawViewCount,b.view_count);a.shortViewCount=Vq(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=Vq(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=Vq(a.lengthText||"",b.lengthText);a.Ur=Vq(a.Ur||"",b.Ur);a.So=Vq(a.So||"",b.So);a.title=Vq(a.title,b.title);a.subtitle=Vq(a.subtitle,b.subtitle);a.expandedTitle=
Vq(a.expandedTitle,b.expanded_title);a.expandedSubtitle=Vq(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=Vq(a.ariaLabel,b.aria_label);a.ypcPreview=Vq(a.ypcPreview,b.ypc_preview);a.eF=Vq(a.eF,b.ypc_origin);a.ge=Qq(a.ge,b.ypc_is_premiere_trailer);a.Ml=Vq(a.Ml,b.ypc_clickwrap_message);a.paygated=Qq(a.paygated,b.paygated);a.JO=Qq(a.JO,b.requires_purchase);a.showShareButton=!Qq(!a.showShareButton,b.ss);a.Vg=Qq(a.Vg,b.showwatchlater);a.aj=Qq(a.aj,b.shownotifybutton);a.Gl=Qq(a.Gl,b.copy_share);if(c=
b.el)a.eventLabel=c;if(c=b.keywords)a.keywords=sxa(c.split(","));if(c=b.rvs)a.suggestions=aq(c).map(function(d){return d.playlist||d.list||d.api?new g.MC(a.u,d):new g.NC(a.u,d)});
a.contentCheckOk=Qq(a.contentCheckOk,b.cco);a.racyCheckOk=Qq(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=Qq(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=Vq(a.oauthToken,b.oauth_token);a.Kb=Vq(a.Kb,b.kpt);a.visitorData=Vq(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=Yp(c,"&");a.Pr=Vq(a.Pr,b.endscreen_ad_tracking_data);a.LQ=Qq(a.LQ,b.wait_for_vast_info_cards_xml);a.TE=Qq(a.TE,b.suppress_creator_endscreen);a.FK=Qq(a.FK,b.is_trueview_action);a.kP=Vq(a.kP,b.tracking_list);
a.Kq=Vq(a.Kq,b.clip);a.Lq=Vq(a.Lq,b.clipt);txa(a,b)};
nxa=function(a,b){b=b||{};var c=b.errordetail;null!=c&&(a.errorDetail=c);var d=b.errorcode;null!=d?a.errorCode=d:"fail"==b.status&&(a.errorCode="150");var e=b.reason;null!=e&&(a.errorReason=e);var f=b.subreason;null!=f&&(a.Ck=f);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.Hu(16));a.Ib=Qq(a.u.Ib,b.livemonitor);oxa(a,b);var h=b.raw_player_response;if(!h){var l=b.player_response;l&&(h=JSON.parse(l))}h&&(a.playerResponse=h);if(a.playerResponse){var m=a.playerResponse.annotations;if(m)for(var n=
g.r(m),p=n.next();!p.done;p=n.next()){var q=p.value.playerAnnotationsUrlsRenderer;if(q){q.adsOnly&&(a.fn=!0);q.allowInPlaceSwitch&&(a.hF=!0);var t=q.loadPolicy;t&&(a.annotationsLoadPolicy=uxa[t]);var u=q.invideoUrl;u&&(a.Sa=yv(u));a.rK=!0;break}}var x=a.playerResponse.attestation;x&&Wwa(a,x);var y=a.playerResponse.cotn;y&&(a.cotn=y);var z=a.playerResponse.heartbeatParams;if(z){var D=z.heartbeatToken;D&&(a.drmSessionId=z.drmSessionId||"",a.heartbeatToken=D,a.uK=Number(z.intervalMilliseconds),a.vK=
Number(z.maxRetries),a.wK=!!z.softFailOnError,a.yK=!!z.useInnertubeHeartbeatsForDrm,a.Xj=!0);a.heartbeatServerData=z.heartbeatServerData;a.K("heartbeat_iff_heartbeat_params_filled")&&(a.Xj=!0);var H;a.oi=!(null==(H=z.heartbeatAttestationConfig)||!H.requiresAttestation)}var G=a.playerResponse.messages;G&&$wa(a,G);var L=a.playerResponse.multicamera;if(L){var aa=L.playerLegacyMulticameraRenderer;if(aa){var M=aa.metadataList;M&&(a.PL=M,a.ye=aq(M))}}var sa=a.playerResponse.overlay;if(sa){var za=sa.playerControlsOverlayRenderer;
if(za){var ba=za.controlBgHtml;null!=ba?(a.bb=ba,a.D=!0):(a.bb="",a.D=!1);if(za.mutedAutoplay){var qa=za.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(qa&&qa.endScreen){var fb=qa.endScreen.playerMutedAutoplayEndScreenRenderer;fb&&fb.text&&(a.QL=g.Hv(fb.text))}}else a.mutedAutoplay=!1}}if(g.YA(a.u)&&a.u.K("embeds_web_enable_epm_dni_parity_fix")){var bb=a.S(),ub;void 0!==(null==sa?void 0:null==(ub=sa.playerControlsOverlayRenderer)?void 0:ub.controlBgHtml)?bb.va="EMBEDDED_PLAYER_MODE_PFP":"EMBEDDED_PLAYER_MODE_PFP"===
bb.va&&(bb.va="EMBEDDED_PLAYER_MODE_DEFAULT")}var vb=a.playerResponse.playabilityStatus;if(vb){var tc=vb.backgroundability;tc&&tc.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var kb,Sb;if(null==(kb=vb.offlineability)?0:null==(Sb=kb.offlineabilityRenderer)?0:Sb.offlineable)a.offlineable=!0;var Cb=vb.contextParams;Cb&&(a.contextParams=Cb);var oe=vb.pictureInPicture;oe&&oe.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);vb.playableInEmbed&&(a.allowEmbed=!0);var tg=vb.ypcClickwrap;
if(tg){var $h=tg.playerLegacyDesktopYpcClickwrapRenderer,lh=tg.ypcRentalActivationRenderer;if($h)a.Ml=$h.durationMessage||"",a.bf=!0;else if(lh){var ij=lh.durationMessage;a.Ml=ij?g.Hv(ij):"";a.bf=!0}}var tf=vb.errorScreen;if(tf){if(tf.playerLegacyDesktopYpcTrailerRenderer){var oc=tf.playerLegacyDesktopYpcTrailerRenderer;a.Rl=oc.trailerVideoId||"";var Ck=tf.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var mh=Ck&&Ck.ypcTrailerRenderer}else if(tf.playerLegacyDesktopYpcOfferRenderer)oc=tf.playerLegacyDesktopYpcOfferRenderer;
else if(tf.ypcTrailerRenderer){mh=tf.ypcTrailerRenderer;var Kn=mh.fullVideoMessage;a.Nl=Kn?g.Hv(Kn):"";var Ln,Dk,Mn;a.Rl=(null==(Ln=mh)?void 0:null==(Dk=Ln.unserializedPlayerResponse)?void 0:null==(Mn=Dk.videoDetails)?void 0:Mn.videoId)||""}oc&&(a.Ol=oc.itemTitle||"",oc.itemUrl&&(a.Ct=oc.itemUrl),oc.itemBuyUrl&&(a.At=oc.itemBuyUrl),a.Bt=oc.itemThumbnail||"",a.Rt=oc.offerHeadline||"",a.Pl=oc.offerDescription||"",a.Zj=oc.offerId||"",a.Dt=oc.offerButtonText||"",a.cF=oc.offerButtonFormattedText||null,
a.Ql=oc.overlayDurationMsec||NaN,a.Nl=oc.fullVideoMessage||"",a.Ff=!0);if(mh){var Nn=mh.unserializedPlayerResponse;if(Nn)a.gk={raw_player_response:Nn};else{var On=mh.playerVars;a.gk=On?$p(On):null}a.Ff=!0}}}var yd=a.playerResponse.playbackTracking;if(yd){var Pn=b,ai=$C(yd.googleRemarketingUrl);ai&&(a.googleRemarketingUrl=ai);var ad=$C(yd.youtubeRemarketingUrl);ad&&(a.youtubeRemarketingUrl=ad);var nh=$C(yd.ptrackingUrl);if(nh){var oh=aD(nh),ph=oh.oid;ph&&(a.WL=ph);var Rq=oh.pltype;Rq&&(a.XL=Rq);var Qn=
oh.ptchn;Qn&&(a.VL=Qn);var Ek=oh.ptk;Ek&&(a.Ts=encodeURIComponent(Ek));var Rn=oh.m;Rn&&(a.Gr=Rn)}var qh=$C(yd.ppvRemarketingUrl);qh&&(a.ppvRemarketingUrl=qh);var Rl=$C(yd.qoeUrl);if(Rl){for(var uf=g.bq(Rl),jj=g.r(Object.keys(uf)),$b=jj.next();!$b.done;$b=jj.next()){var Of=$b.value,kj=uf[Of];uf[Of]=Array.isArray(kj)?kj.join(","):kj}a.KQ=uf;var Sn=uf.cat;Sn&&(a.Dl=Sn);var Tn=uf.live;Tn&&(a.tK=Tn);var Sl=uf.drm_product;Sl&&(a.EF=Sl)}var bi=$C(yd.remarketingUrl);if(bi){a.remarketingUrl=bi;var lj=aD(bi);
lj.foc_id&&(a.N.focEnabled=!0);var mj=lj.data;mj&&(a.N.rmktEnabled=!0,mj.engaged&&(a.N.engaged="1"));a.N.baseUrl=Uda(bi)+Dh(g.Fh(5,bi))}var Un=$C(yd.videostatsPlaybackUrl);if(Un){var Tc=aD(Un);a.fM=Tc;var ci=Tc.adformat;if(ci&&(Pn.adformat=ci,!a.K("process_video_data_ad_format_in_player_tracking_killswitch"))){var vf=a.S(),Fk=Twa(ci,a.zt,vf.j,vf.B);Fk&&(a.adFormat=Fk)}var nj=Tc.aqi;nj&&(Pn.ad_query_id=nj);var ug=Tc.autoplay;ug&&(a.Fm="1"==ug,a.Ov="1"==ug);var Tl=Tc.autonav;Tl&&(a.Am="1"==Tl);var Vn=
Tc.delay;Vn&&(a.Hc=kg(Vn));var rh=Tc.ei;rh&&(a.eventId=rh);"adunit"===Tc.el&&(a.Fm=!0);var Wn=Tc.feature;Wn&&(a.DN=Wn);var pe=Tc.list;pe&&(a.playlistId=pe);var Xn=Tc.of;Xn&&(a.I1=Xn);var Sq=Tc.osid;Sq&&(a.osid=Sq);var bd=Tc.referrer;bd&&(a.referrer=bd);var Yn=Tc.sdetail;Yn&&(a.pM=Yn);var Zn=Tc.sourceid;Zn&&(a.N9=Zn);var oj=Tc.ssrt;oj&&(a.Vw="1"==oj);var Pf=Tc.subscribed;Pf&&(a.subscribed="1"==Pf,a.N.subscribed=Pf);var Ul=Tc.uga;Ul&&(a.userGenderAge=Ul);var Vl=Tc.upt;Vl&&(a.J1=Vl);var Wl=Tc.vm;Wl&&
(a.videoMetadata=Wl)}var Xl=$C(yd.videostatsWatchtimeUrl);if(Xl){var $n=aD(Xl).ald;$n&&(a.S0=$n)}if(yd.promotedPlaybackTracking){var Vd=yd.promotedPlaybackTracking;Vd.startUrls&&(a.gt=Vd.startUrls);Vd.firstQuartileUrls&&(a.jE=Vd.firstQuartileUrls);Vd.secondQuartileUrls&&(a.kE=Vd.secondQuartileUrls);Vd.thirdQuartileUrls&&(a.lE=Vd.thirdQuartileUrls);Vd.completeUrls&&(a.hE=Vd.completeUrls);Vd.engagedViewUrls&&(1<Vd.engagedViewUrls.length&&g.Bu(new g.Ar("There are more than one engaged_view_urls.")),
a.Ke=Vd.engagedViewUrls[0])}}a:{var ao=a.playerResponse.adPlacements;if(ao)for(var bo=g.r(ao),Gk=bo.next();!Gk.done;Gk=bo.next()){var sh=Gk.value;if(sh.adPlacementRenderer&&sh.adPlacementRenderer.renderer&&sh.adPlacementRenderer.renderer.videoAdTrackingRenderer){var xB=sh.adPlacementRenderer.renderer.videoAdTrackingRenderer;break a}}xB=null}var Mv=xB;yd&&yd.promotedPlaybackTracking&&Mv&&g.Bu(new g.Ar("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));Mv&&(a.nS=!0);
var yB=a.playerResponse.playerAds;if(yB)for(var rK=b,zB=g.r(yB),Nv=zB.next();!Nv.done;Nv=zB.next()){var AB=Nv.value;if(AB){var BB=AB.playerLegacyDesktopWatchAdsRenderer;if(BB){var lm=BB.playerAdParams;if(lm){"1"==lm.autoplay&&(a.Fm=!0,a.Ov=!0);a.xl=lm.encodedAdSafetyReason||null;void 0!==lm.showContentThumbnail&&(a.Fl=!!lm.showContentThumbnail);rK.enabled_engage_types=lm.enabledEngageTypes;break}}}}var te=a.playerResponse.playerConfig;if(te){var mm=te.manifestlessWindowedLiveConfig;if(mm){var Ov=
Number(mm.minDvrSequence),CB=Number(mm.maxDvrSequence),DB=Number(mm.minDvrMediaTimeMs),EB=Number(mm.maxDvrMediaTimeMs),FB=Number(mm.startWalltimeMs);Ov&&(a.Ve=Ov);DB&&(a.nM=DB/1E3);CB&&(a.Gh=CB);EB&&(a.lM=EB/1E3);FB&&(a.IO=FB/1E3)}var Fo=te.daiConfig;if(Fo){if(Fo.enableDai){a.Ce=!0;var GB=Fo.enableServerStitchedDai;GB&&(a.enableServerStitchedDai=GB);var Pv=Fo.enablePreroll;Pv&&(a.enablePreroll=Pv)}"DAI_TYPE_SS_DISABLED"===Fo.daiType&&(a.EK=!0)}var Nr=te.audioConfig;if(Nr){var HB=Nr.loudnessDb;null!=
HB&&(a.Me=HB);Nr.audioMuted&&(a.Sh=!0);Nr.muteOnStart&&(a.xP=!0)}var IB=te.playbackEndConfig;if(IB){var JB=IB.endSeconds;JB&&a.mutedAutoplay&&(a.endSeconds=JB)}var nm=te.fairPlayConfig;if(nm){var KB=nm.certificate;KB&&(a.Kd=IA(KB));var LB=Number(nm.keyRotationPeriodMs);0<LB&&(a.F1=LB);var Qv=Number(nm.keyPrefetchMarginMs);0<Qv&&(a.B1=Qv)}var yh=te.playbackStartConfig;if(yh){a.fE=Number(yh.startSeconds);var MB=yh.liveUtcStartSeconds,NB=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds;MB&&!NB&&(a.liveUtcStartSeconds=
Number(MB));var OB=yh.startPosition;if(OB){var Go=OB.utcTimeMillis;Go&&!NB&&(a.liveUtcStartSeconds=.001*Number(Go));var sK=OB.streamTimeMillis;sK&&(a.zq=.001*Number(sK))}a.progressBarStartPosition=yh.progressBarStartPosition;a.progressBarEndPosition=yh.progressBarEndPosition}else{var BY=te.skippableSegmentsConfig;if(BY){var gla=BY.introSkipDurationMs;gla&&(a.UI=Number(gla)/1E3);var hla=BY.outroSkipDurationMs;hla&&(a.eE=Number(hla)/1E3)}}var CY=te.skippableIntroConfig;if(CY){var ila=Number(CY.startMs),
jla=Number(CY.endMs);isNaN(ila)||isNaN(jla)||(a.jM=ila,a.hM=jla)}var kla=te.streamSelectionConfig;kla&&(a.rl=Number(kla.maxBitrate));var lla=te.vrConfig;lla&&(a.Nr="1"==lla.partialSpherical);var PB=te.webDrmConfig;if(PB){PB.skipWidevine&&(a.LO=!0);var mla=PB.widevineServiceCert;mla&&(a.TO=IA(mla));PB.useCobaltWidevine&&(a.useCobaltWidevine=!0);PB.startWithNoQualityConstraint&&(a.Th=!0)}var nla=te.mediaCommonConfig;if(nla){var tK=nla.dynamicReadaheadConfig;tK&&(a.maxReadAheadMediaTimeMs=tK.maxReadAheadMediaTimeMs||
NaN,a.minReadAheadMediaTimeMs=tK.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=tK.readAheadGrowthRateMs||NaN)}var ola=te.inlinePlaybackConfig;ola&&(a.dH=!!ola.showAudioControls)}var om=a.playerResponse.streamingData;if(om){var pla=om.adaptiveFormats;if(pla){for(var qla=[],rla=g.r(pla),Bj=rla.next();!Bj.done;Bj=rla.next()){var uK=Bj.value;qla.push(gxa(uK));var sla=uK.loudnessDb;uK.itag&&null!=sla&&(a.Us[uK.itag.toString()]=sla)}a.adaptiveFormats=qla.join(",")}var DY=om.formats;if(DY){var QB=
[],tla=g.r(DY);for(Bj=tla.next();!Bj.done;Bj=tla.next()){var EY=Bj.value;QB.push(EY.itag+"/"+EY.width+"x"+EY.height)}a.LI=QB.join(",");QB=[];var ula=g.r(DY);for(Bj=ula.next();!Bj.done;Bj=ula.next()){var Rv=Bj.value,RB={itag:Rv.itag,type:Rv.mimeType,quality:Rv.quality},vla=Rv.url;vla&&(RB.url=vla);var wla=Rv.cipher||Rv.signatureCipher;if(wla){var FY=$p(wla);RB.sp=FY.sp;RB.s=FY.s;RB.url=FY.url}QB.push(g.Kh(RB))}a.Lj=QB.join(",")}var GY=om.hlsFormats;if(GY){var xla=te||null,vK={};if(xla){var HY=xla.audioPairingConfig;
if(HY&&HY.pairs)for(var yla=g.r(HY.pairs),IY=yla.next();!IY.done;IY=yla.next()){var zla=IY.value,JY=zla.videoItag;vK[JY]||(vK[JY]=[]);vK[JY].push(zla.audioItag)}}for(var Ala={},Bla=g.r(GY),Or=Bla.next();!Or.done;Or=Bla.next()){var Cla=Or.value;Ala[Cla.itag]=Cla.bitrate}var Dla=[],Ela=g.r(GY);for(Or=Ela.next();!Or.done;Or=Ela.next()){var wg=Or.value,Nk={itag:wg.itag,type:wg.mimeType,url:wg.url,bitrate:wg.bitrate,width:wg.width,height:wg.height,fps:wg.fps},wK=wg.audioTrack;if(wK){var Fla=wK.displayName;
Fla&&(Nk.name=Fla,Nk.audio_track_id=wK.id,wK.audioIsDefault&&(Nk.is_default="1"))}if(wg.drmFamilies){for(var Gla=[],Hla=g.r(wg.drmFamilies),KY=Hla.next();!KY.done;KY=Hla.next())Gla.push(bD[KY.value]);Nk.drm_families=Gla.join(",")}var xK=vK[wg.itag];if(xK&&xK.length){Nk.audio_itag=xK.join(",");var Ila=Ala[xK[0]];Ila&&(Nk.bitrate+=Ila)}var Jla=Vwa(wg);Jla&&(Nk.eotf=Jla);wg.audioChannels&&(Nk.audio_channels=wg.audioChannels);Dla.push(g.Kh(Nk))}a.hlsFormats=Dla.join(",")}var LY=om.licenseInfos;if(LY&&
0<LY.length){for(var Kla={},Lla=g.r(LY),MY=Lla.next();!MY.done;MY=Lla.next()){var Mla=MY.value,Nla=Mla.drmFamily,Ola=Mla.url;Nla&&Ola&&(Kla[bD[Nla]]=Ola)}a.Wd=Kla}var Pla=om.drmParams;Pla&&(a.drmParams=Pla);var Qla=om.dashManifestUrl;Qla&&(a.qb=g.Mh(Qla,{cpn:a.clientPlaybackNonce}));var Rla=om.hlsManifestUrl;Rla&&(a.hlsvp=Rla);var Sla=om.probeUrl;Sla&&(a.probeUrl=yv(g.Mh(Sla,{cpn:a.clientPlaybackNonce})))}var Tla=a.playerResponse.trackingParams;Tla&&(a.ma=Tla);var Lc=a.playerResponse.videoDetails;
if(Lc){var Ok=b,NY=Lc.videoId;NY&&(a.videoId=NY,Ok.video_id||(Ok.video_id=NY));var Ula=Lc.channelId;Ula&&(a.N.uid=Ula.substr(2));var OY=Lc.title;OY&&(a.title=OY,Ok.title||(Ok.title=OY));var PY=Lc.lengthSeconds;PY&&(a.lengthSeconds=Number(PY),Ok.length_seconds||(Ok.length_seconds=PY));var Vla=Lc.keywords;Vla&&(a.keywords=sxa(Vla));var QY=Lc.channelId;QY&&(a.lk=QY,Ok.ucid||(Ok.ucid=QY));var Wla=Lc.viewCount;Wla&&(a.rawViewCount=Number(Wla));var RY=Lc.author;RY&&(a.author=RY,Ok.author||(Ok.author=RY));
var Xla=Lc.shortDescription;Xla&&(a.shortDescription=Xla);var Yla=Lc.isCrawlable;Yla&&(a.isListed=Yla);var Zla=Lc.musicVideoType;Zla&&(a.musicVideoType=Zla);var SY=Lc.isLive;null!=SY&&(a.isLivePlayback=SY);if(SY||Lc.isUpcoming)a.isPremiere=!Lc.isLiveContent;var $la=Lc.thumbnail;$la&&(a.W=LC($la));var ama=te||null,TY=b;Lc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Lc.isUpcoming&&(a.isUpcoming=!0);if(Lc.isPostLiveDvr)a.Mf=!0;else{var UY=!1;if(a.Ib)a.allowLiveDvr=qD(a,!0),a.isLivePlayback=
!0;else if(Lc.isLive){TY.livestream="1";a.allowLiveDvr=qD(a,!!Lc.isLiveDvrEnabled);a.Ga=27;Lc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var bma=Lc.latencyClass;bma&&(a.latencyClass=vxa[bma]||"UNKNOWN");var cma=Lc.liveChunkReadahead;cma&&(a.liveChunkReadahead=cma);var Sv=ama&&ama.livePlayerConfig;if(Sv){Sv.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Sv.hasSubfragmentedWebm&&(a.wm=!0);Sv.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var dma=Sv.liveExperimentalContentId;
dma&&(a.liveExperimentalContentId=Number(dma));var ema=Sv.isLiveHeadPlayable;a.K("html5_live_head_playable")&&null!=ema&&(a.isLiveHeadPlayable=ema)}UY=!0}else Lc.isUpcoming&&(UY=!0);UY&&(a.isLivePlayback=!0,TY.adformat&&"8"!==TY.adformat.split("_")[1]||a.oa.push("heartbeat"),a.K("heartbeat_iff_heartbeat_params_filled")||(a.Xj=!0))}var fma=Lc.isPrivate;fma&&(a.isPrivate=Qq(a.isPrivate,fma))}if(vb){var gma=Lc||null,hma=!1,Tv=vb.errorScreen;hma=Tv&&(Tv.playerLegacyDesktopYpcOfferRenderer||Tv.playerLegacyDesktopYpcTrailerRenderer||
Tv.ypcTrailerRenderer)?!0:gma&&gma.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(vb.status);if(!hma){a.errorCode="150";var yK=Tv&&Tv.playerErrorMessageRenderer;if(yK){a.playerErrorMessageRenderer=yK;var ima=yK.reason;ima&&(a.errorReason=g.Hv(ima));var WY=yK.subreason;WY&&(a.Ck=g.Hv(WY),a.Qr=WY)}else a.errorReason=vb.reason||null;var XY=vb.status;if("LOGIN_REQUIRED"===XY)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===XY)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===
XY){var jma=vb.errorScreen,kma=jma&&jma.playerKavRenderer;a.errorDetail=kma&&kma.kavUrl?"4":"3"}else a.errorDetail=vb.isBlockedInRestrictedMode?"5":"0"}}var lma=a.playerResponse.interstitialPods;lma&&Zwa(a,lma);a.Sa&&a.eventId&&(a.Sa=dq(a.Sa,{ei:a.eventId}));var YY=a.playerResponse.captions;YY&&YY.playerCaptionsTracklistRenderer&&Ywa(a,YY.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.fE=.001*Number(a.clipConfig.startTimeMs));
a.accountLinkingConfig=a.playerResponse.accountLinkingConfig;a.accountLinkingConfig&&a.accountLinkingConfig.alsParam&&(a.dM=a.accountLinkingConfig.alsParam);a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&axa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}pxa(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var mma=b.hlsdvr;null!=mma&&(a.allowLiveDvr=qD(a,"1"==
mma));a.adQueryId=b.ad_query_id||null;a.xl||(a.xl=b.encoded_ad_safety_reason||null);a.eP=b.agcid||null;a.Yw=b.ad_id||null;a.ax=b.ad_sys||null;a.yH=b.encoded_ad_playback_context||null;a.Sh=Qq(a.Sh,b.infringe||b.muted);a.authKey=b.authkey;a.authUser=b.authuser;a.mutedAutoplay=Qq(a.mutedAutoplay,b&&b.playmuted)&&a.K("embeds_enable_muted_autoplay");a.endSeconds=Uq(a.endSeconds,a.eE||b.end||b.endSeconds);a.limitedPlaybackDurationInSeconds=Uq(a.limitedPlaybackDurationInSeconds,b.limited_playback_duration_in_seconds);
a.ma=Vq(a.ma,b.itct);a.WI=Qq(a.WI,b.noiba);a.gK=Qq(a.gK,b.is_live_destination);a.isLivePlayback=Qq(a.isLivePlayback,b.live_playback);a.K("html5_live_head_playable")||(a.isLiveHeadPlayable=a.isLivePlayback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=Qq(a.isUpcoming,b.isUpcoming));a.Mf=Qq(a.Mf,b.post_live_playback);a.isMdxPlayback=Qq(a.isMdxPlayback,b.mdx);var zK=b.mdx_control_mode;zK&&(a.mdxControlMode="number"===typeof zK?zK:kg(zK));a.isInlinePlaybackNoAd=
Qq(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Zb=Uq(a.Zb,b.reload_count);a.reloadReason=Vq(a.reloadReason,b.reload_reason);a.Fl=Qq(a.Fl,b.show_content_thumbnail);a.qK=Qq(a.qK,b.utpsa);a.UE=Qq(a.UE,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.VE=b.tkn||null;var nma=KC(b);0<Object.keys(nma).length&&(a.W=nma);a.Pa=Vq(a.Pa,b.vvt);a.mdxEnvironment=Vq(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);a.AS=b.osig;
a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=Vq(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?Uq(0,b.index):Uq(a.playlistIndex,b.index));a.mM=b.pyv_view_beacon_url;a.GM=b.pyv_quartile25_beacon_url;a.VM=b.pyv_quartile50_beacon_url;a.nN=b.pyv_quartile75_beacon_url;a.qM=b.pyv_quartile100_beacon_url;var oma=b.remarketing_url;oma&&(a.remarketingUrl=oma);var pma=b.ppv_remarketing_url;pma&&(a.ppvRemarketingUrl=pma);var qma=b.session_data;!a.YN&&qma&&(a.YN=
Yp(qma,"&").feature);a.isFling=1==Uq(a.isFling?1:0,b.is_fling);a.vnd=Uq(a.vnd,b.vnd);a.forceAdsUrl=Vq(a.forceAdsUrl,b.force_ads_url);a.kh=Vq(a.kh,b.ctrl);a.Jh=Vq(a.Jh,b.ytr);a.jn=b.ytrcc;a.oO=b.ytrexp;a.mE=b.ytrext;a.qd=Vq(a.qd,b.adformat);a.zt=Vq(a.zt,b.attrib);a.slotPosition=Uq(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Vw=Qq(a.Vw,b.ssrt);a.videoId=Xq(b)||a.videoId;a.J=Vq(a.J,b.vss_credentials_token);a.qj=Vq(a.qj,b.vss_credentials_token_type);a.Ze=Qq(a.Ze,b.audio_only);a.bF=Qq(a.bF,b.aac_high);
a.Uw=Qq(a.Uw,b.prefer_low_quality_audio);a.Dl=Vq(a.Dl,b.qoe_cat);a.qk=Qq(a.qk,b.download_media);a.Ia=Qq(a.Ia,b.prefer_gapless);a:{var ZY=a.playerResponse;if(ZY&&ZY.adPlacements)for(var rma=g.r(ZY.adPlacements),$Y=rma.next();!$Y.done;$Y=rma.next()){var AK=$Y.value.adPlacementRenderer;if(null!=AK&&"AD_PLACEMENT_KIND_START"==(AK.config&&AK.config.adPlacementConfig&&AK.config.adPlacementConfig.kind)){var sma=!0;break a}}sma=!1}sma&&(a.adModule=!0,a.oa.push("ad"));var tma=b.adaptive_fmts;tma&&(a.adaptiveFormats=
tma);var uma=b.allow_embed;uma&&(a.allowEmbed="1"==uma);var vma=b.backgroundable;vma&&(a.backgroundable="1"==vma);var wma=b.autonav;wma&&(a.Am="1"==wma);var aZ=b.autoplay;aZ&&(a.Ov="1"==aZ,a.Fm="1"==aZ);var xma=b.iv_load_policy;xma&&(a.annotationsLoadPolicy=Tq(a.annotationsLoadPolicy,xma,jB));var yma=b.cc_lang_pref;yma&&(a.captionsLanguagePreference=Vq(yma,a.captionsLanguagePreference));var zma=b.cc_load_policy;zma&&(a.Sw=Tq(a.Sw,zma,jB));var Ama;a.deviceCaptionsOn=null!=(Ama=b.device_captions_on)?
Ama:void 0;var Bma;a.lS=null!=(Bma=b.device_captions_lang_pref)?Bma:"";var Cma;a.aF=null!=(Cma=b.viewer_selected_caption_langs)?Cma:[];var Dma=b.cached_load;Dma&&(a.Yq=Qq(a.Yq,Dma));"0"==b.dash&&(a.mF=!0);var Ema=b.dashmpd;Ema&&(a.qb=g.Mh(Ema,{cpn:a.clientPlaybackNonce}));var Fma=b.delay;Fma&&(a.Hc=kg(Fma));var Gma=a.eE||b.end;void 0!=Gma&&(a.clipEnd=Uq(a.clipEnd,Gma));var Hma=b.fmt_list;Hma&&(a.LI=Hma);b.heartbeat_preroll&&a.oa.push("heartbeat");a.ql=-Math.floor(10*Math.random());a.Ym=-Math.floor(40*
Math.random());var Ima=b.is_listed;Ima&&(a.isListed=Qq(a.isListed,Ima));var Jma=b.is_private;Jma&&(a.isPrivate=Qq(a.isPrivate,Jma));var Kma=b.is_dni;Kma&&(a.D=Qq(a.D,Kma));var Lma=b.dni_color;Lma&&(a.bb=Vq(a.bb,Lma));var Mma=b.pipable;Mma&&(a.pipable=Qq(a.pipable,Mma));a.gF=a.pipable&&a.u.dn;a.RE=a.gF&&(!a.u.showMiniplayerButton||a.K("web_player_pip"));var Nma=b.paid_content_overlay_duration_ms;Nma&&(a.paidContentOverlayDurationMs=kg(Nma));var Oma=b.paid_content_overlay_text;Oma&&(a.paidContentOverlayText=
Oma);var Pma=b.url_encoded_fmt_stream_map;Pma&&(a.Lj=Pma);var Qma=b.hls_formats;Qma&&(a.hlsFormats=Qma);var Rma=b.hlsvp;Rma&&(a.hlsvp=Rma);var BK=b.length_seconds;BK&&(a.lengthSeconds="string"===typeof BK?kg(BK):BK);var CK=b.live_start_walltime;CK&&(a.dE="number"===typeof CK?CK:kg(CK));var DK=b.live_manifest_duration;DK&&(a.gi="number"===typeof DK?DK:kg(DK));var Sma=b.player_params;Sma&&(a.playerParams=Sma);var Tma=b.partnerid;Tma&&(a.Ga=Uq(a.Ga,Tma));var Uma=b.probe_url;Uma&&(a.probeUrl=yv(g.Mh(Uma,
{cpn:a.clientPlaybackNonce})));var bZ=b.pyv_billable_url;bZ&&wra(bZ)&&(a.Ke=bZ);var cZ=b.pyv_conv_url;cZ&&wra(cZ)&&(a.oM=cZ);txa(a,b);0<a.startSeconds||(a.startSeconds=Uq(a.startSeconds,a.fE||a.UI||b.start||b.startSeconds),a.md=a.startSeconds);if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Vma=b.live_utc_start;if(null!=Vma)a.liveUtcStartSeconds=Number(Vma);else{var dZ=a.startSeconds;dZ&&isFinite(dZ)&&1E9<dZ&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Wma=
b.utc_start_millis;Wma&&(a.liveUtcStartSeconds=.001*Number(Wma))}var Xma=b.stream_time_start_millis;Xma&&(a.zq=.001*Number(Xma));var Yma=a.UI||b.start;void 0==Yma||"1"==b.resume||a.isLivePlayback||(a.clipStart=Uq(a.clipStart,Yma));var Zma=b.url_encoded_third_party_media;Zma&&(a.Gj=aq(Zma));var eZ=b.ypc_offer_button_formatted_text;if(eZ){var $ma=JSON.parse(eZ);a.cF=null!=$ma?$ma:null;a.lR=eZ}var ana=b.ypc_offer_button_text;ana&&(a.Dt=ana);var bna=b.ypc_offer_description;bna&&(a.Pl=bna);var cna=b.ypc_offer_headline;
cna&&(a.Rt=cna);var dna=b.ypc_full_video_message;dna&&(a.Nl=dna);var ena=b.ypc_offer_id;ena&&(a.Zj=ena);var fna=b.ypc_buy_url;fna&&(a.At=fna);var gna=b.ypc_item_thumbnail;gna&&(a.Bt=gna);var hna=b.ypc_item_title;hna&&(a.Ol=hna);var ina=b.ypc_item_url;ina&&(a.Ct=ina);var jna=b.ypc_vid;jna&&(a.Rl=jna);b.ypc_overlay_timeout&&(a.Ql=Number(b.ypc_overlay_timeout));var kna=b.ypc_trailer_player_vars;kna&&(a.gk=$p(kna));var lna=b.ypc_original_itct;lna&&(a.NS=lna);a.lk=Vq(a.lk,b.ucid);b.baseUrl&&(a.N.baseUrl=
b.baseUrl);b.uid&&(a.N.uid=b.uid);b.oeid&&(a.N.oeid=b.oeid);b.ieid&&(a.N.ieid=b.ieid);b.ppe&&(a.N.ppe=b.ppe);b.engaged&&(a.N.engaged=b.engaged);b.subscribed&&(a.N.subscribed=b.subscribed);a.N.focEnabled=Qq(a.N.focEnabled,b.focEnabled);a.N.rmktEnabled=Qq(a.N.rmktEnabled,b.rmktEnabled);a.yq=b.storyboard_spec||null;a.Es=b.live_storyboard_spec||null;a.ML=b.iv_endscreen_url||null;a.rK=Qq(a.rK,b.iv3_module);a.Xj=Qq(a.Xj,b.ypc_license_checker_module);a.Ff=Qq(a.Ff,b.ypc_module);a.bf=Qq(a.bf,b.ypc_clickwrap_module);
a.Ff&&a.oa.push("ypc");a.bf&&a.oa.push("ypc_clickwrap");a.YL={video_id:b.video_id,eventid:b.eventid,cbrand:b.cbrand,cbr:b.cbr,cbrver:b.cbrver,c:b.c,cver:b.cver,ctheme:b.ctheme,cplayer:b.cplayer,cmodel:b.cmodel,cnetwork:b.cnetwork,cos:b.cos,cosver:b.cosver,cplatform:b.cplatform,user_age:b.user_age,user_display_image:b.user_display_image,user_display_name:b.user_display_name,user_gender:b.user_gender,csi_page_type:b.csi_page_type,csi_service_name:b.csi_service_name,enablecsi:b.enablecsi,enabled_engage_types:b.enabled_engage_types};
qxa(a,b);var mna=b.cotn;mna&&(a.cotn=mna);if(wxa(a))rD(a)&&(a.isLivePlayback&&a.qb&&(a.ze=!0),a.Kd&&(a.Bl=!0));else if(xxa(a))a.ze=!0;else{var qna=yxa(a,a.adaptiveFormats);if(qna){sD(a,qna);var rna=!0}else rna=!1;rna?a.K("html5_disable_manifestfull_ssdai_killswitch")||(a.enableServerStitchedDai=a.enableServerStitchedDai&&tD(a)):a.qb&&(a.ze=!0)}var gZ=b.adpings;gZ&&(a.dn=gZ?$p(gZ):null);var sna=b.feature;sna&&(a.DN=sna);var tna=b.referrer;tna&&(a.referrer=tna);a.clientScreenNonce=Vq(a.clientScreenNonce,
b.csn);a.zz=Uq(a.zz,b.root_ve_type);a.Cl=Uq(a.Cl,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.wt=Qq(a.wt,b.upg_content_filter_mode);var una=b.unplugged_location_info;una&&(a.Y=una);var vna=b.unplugged_partner_opt_out;vna&&(a.Xw=Vq("",vna));a.wr=Qq(a.wr,b.disable_watch_next);a.vk=Vq(a.vk,b.internal_ip_override);a.MJ=!!b.is_yto_interstitial;(a.interstitials.length||a.MJ)&&a.oa.push("yto");var wna=b.Hj;wna&&(a.Hj=wna);b.wD&&(a.wD=b.wD);var xna;a.Da=null!=(xna=b.csi_timer)?
xna:"";a.Xh=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);a.K("html5_attach_watch_endpoint_ustreamer_config")&&b.watch_endpoint&&zxa(a,b.watch_endpoint)};
pxa=function(a,b){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}if(c){a.watchNextResponse=c;var e=a.watchNextResponse.contents;if(e){var f=e.singleColumnWatchNextResults;if(f){var h=Uq(0,b.autoplay_count);if(f.autoplay&&f.autoplay.autoplay&&!f.playlist){var l=f.autoplay.autoplay.sets,m={},n=new g.NC(a.u),p=null,q;if(l){for(var t=g.r(l),u=t.next();!u.done;u=t.next()){var x=u.value.autoplayVideoRenderer;if(x&&x.compactVideoRenderer){p=x.compactVideoRenderer;
break}}if(q=l[0].autoplayVideo){var y=q.clickTrackingParams;y&&(m.itct=y);m.autonav="1";m.playnext=String(h)}}else m.feature="related-auto";if(p){n.videoId=p.videoId;var z=p.shortBylineText;z&&(n.author=g.Hv(z));var D=p.title;D&&(n.title=g.Hv(D))}else{var H,G;if(null==(H=q)?0:null==(G=H.watchEndpoint)?0:G.videoId)n.videoId=q.watchEndpoint.videoId}n.Ex=m;a.suggestions=[n];a.Iq=n}}var L=e.twoColumnWatchNextResults}var aa,M;a.wS=!!(null==(aa=L)?0:null==(M=aa.autoplay)?0:M.autoplay);var sa=a.watchNextResponse.playerOverlays;
if(sa){var za=sa.playerOverlayRenderer;if(za){var ba=za.autonavToggle;ba&&(a.autoplaySwitchButtonRenderer=ba.autoplaySwitchButtonRenderer,a.K("web_player_autonav_use_server_provided_state")&&uD(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var qa=za.endScreen;if(qa){var fb=qa.watchNextEndScreenRenderer;if(fb)var bb=fb.results}var ub=za.videoDetails;if(ub){var vb=ub.embeddedPlayerOverlayVideoDetailsRenderer;var tc=ub.musicEmbeddedPlayerOverlayVideoDetailsRenderer;tc&&(a.ZH=tc.title,
a.NH=tc.byline);var kb=ub.playerOverlayVideoDetailsRenderer;kb&&(kb.title&&(b.title=g.Hv(kb.title)),kb.subtitle&&(b.subtitle=g.Hv(kb.subtitle)))}var Sb=za.actions;if(Sb)for(var Cb=g.r(Sb),oe=Cb.next();!oe.done;oe=Cb.next()){var tg=oe.value;tg.likeButtonRenderer&&(a.likeButtonRenderer=tg.likeButtonRenderer)}var $h,lh,ij=null==($h=za.suggestedActionsRenderer)?void 0:null==(lh=$h.suggestedActionsRenderer)?void 0:lh.suggestedActions;if(ij)for(var tf=g.r(ij),oc=tf.next();!oc.done;oc=tf.next()){var Ck=
oc.value,mh=void 0,Kn=void 0;if(null==(mh=Ck.suggestedActionRenderer)?0:null==(Kn=mh.trigger)?0:Kn.suggestedActionTimeRangeTrigger)a.suggestedAction=Ck.suggestedActionRenderer}var Ln,Dk=null==(Ln=za.decoratedPlayerBarRenderer)?void 0:Ln.decoratedPlayerBarRenderer;if(Dk){var Mn;a.multiMarkersPlayerBarRenderer=null==(Mn=Dk.playerBar)?void 0:Mn.multiMarkersPlayerBarRenderer;var Nn,On;a.lF=null==(Nn=Dk.playerBar)?void 0:null==(On=Nn.chapteredPlayerBarRenderer)?void 0:On.chapters;var yd;a.CS=null==(yd=
Dk.playerBarActionButton)?void 0:yd.buttonRenderer}g.dB(a.u)&&(a.Vg=!!za.addToMenu);Axa(a,za.shareButton);var Pn=za.productsInVideoOverlayRenderer;Pn&&(a.shoppingOverlayRenderer=Pn.shoppingOverlayRenderer);var ai=za.autoplay;if(ai)var ad=ai.playerOverlayAutoplayRenderer;a.progressBarStartPosition=za.startPosition;a.progressBarEndPosition=za.endPosition}}if(!bb&&L){var nh=L.endScreen&&L.endScreen.endScreen;nh&&(bb=nh.results)}if(L){var oh=L.desktopOverlay&&L.desktopOverlay.desktopOverlayConfigRenderer;
oh&&(oh.suppressShareButton&&(a.showShareButton=!1),oh.suppressWatchLaterButton&&(a.Vg=!1))}vb&&Bxa(a,b,vb);var ph=Uq(0,b.autoplay_count);if(bb){for(var Rq=L||null,Qn=ad||null,Ek=[],Rn=!0,qh=g.r(bb),Rl=qh.next();!Rl.done;Rl=qh.next()){var uf=Rl.value,jj=void 0,$b=null;if(uf.endScreenVideoRenderer){var Of=uf.endScreenVideoRenderer,kj=Of.title;$b=new g.NC(a.u);$b.videoId=Of.videoId;$b.lengthSeconds=Of.lengthInSeconds||0;var Sn=Of.publishedTimeText;Sn&&($b.publishedTimeText=g.Hv(Sn));var Tn=Of.shortBylineText;
Tn&&($b.author=g.Hv(Tn));var Sl=Of.shortViewCountText;Sl&&($b.shortViewCount=g.Hv(Sl));if(kj){$b.title=g.Hv(kj);var bi=kj.accessibility;if(bi){var lj=bi.accessibilityData;lj&&lj.label&&($b.ariaLabel=lj.label)}}var mj=Of.navigationEndpoint;if(mj){jj=mj.clickTrackingParams;var Un=mj.watchEndpoint;Un?$b.Fx=Un:mj.urlEndpoint&&($b.watchUrl=mj.urlEndpoint.url)}var Tc=Of.thumbnailOverlays;if(Tc)for(var ci=g.r(Tc),vf=ci.next();!vf.done;vf=ci.next()){var Fk=vf.value.thumbnailOverlayTimeStatusRenderer;if(Fk)if("LIVE"===
Fk.style){$b.isLivePlayback=!0;break}else if("UPCOMING"===Fk.style){$b.isUpcoming=!0;break}}$b.W=LC(Of.thumbnail)}else if(uf.endScreenPlaylistRenderer){var nj=uf.endScreenPlaylistRenderer,ug=nj.navigationEndpoint;if(!ug)continue;var Tl=ug.watchEndpoint;if(!Tl)continue;var Vn=Tl.videoId;$b=new g.MC(a.u);$b.playlistId=nj.playlistId;$b.playlistLength=Number(nj.videoCount)||0;$b.j=Vn||null;$b.videoId=Vn;var rh=nj.title;rh&&($b.title=g.Hv(rh));var Wn=nj.shortBylineText;Wn&&($b.author=g.Hv(Wn));jj=ug.clickTrackingParams;
$b.W=LC(nj.thumbnail)}$b&&(jj&&($b.sessionData={itct:jj}),Rn?(Cxa($b,Rq,Qn,ph),Ek.splice(0,0,$b),Rn=!1):Ek.push($b))}a.suggestions=Ek}if(ad){a.ZL=!!ad.preferImmediateRedirect;a.Ad=a.Ad||!!ad.webShowNewAutonavCountdown;a.zi=a.zi||!!ad.webShowBigThumbnailEndscreen;if(a.Ad||a.zi){var pe=ad,Xn=bb||null,Sq=L||null,bd=new g.NC(a.u);bd.videoId=pe.videoId;var Yn,Zn,oj=null==Xn?void 0:null==(Yn=Xn[0])?void 0:null==(Zn=Yn.endScreenVideoRenderer)?void 0:Zn.navigationEndpoint;if(oj){var Pf=oj.clickTrackingParams;
Pf&&(bd.sessionData={itct:Pf})}var Ul=pe.videoTitle;if(Ul){bd.title=g.Hv(Ul);var Vl=Ul.accessibility;if(Vl){var Wl=Vl.accessibilityData;Wl&&Wl.label&&(bd.ariaLabel=Wl.label)}}var Xl=pe.byline;Xl&&(bd.author=g.Hv(Xl));var $n=pe.publishedTimeText;$n&&(bd.publishedTimeText=g.Hv($n));var Vd=pe.shortViewCountText;Vd&&(bd.shortViewCount=g.Hv(Vd));var ao=pe.thumbnailOverlays;if(ao)for(var bo=g.r(ao),Gk=bo.next();!Gk.done;Gk=bo.next()){var sh=Gk.value.thumbnailOverlayTimeStatusRenderer;if(sh)if("LIVE"===
sh.style){bd.isLivePlayback=!0;break}else if("UPCOMING"===sh.style){bd.isUpcoming=!0;break}else if("DEFAULT"===sh.style&&sh.text){bd.lengthText=g.Hv(sh.text);var xB=sh.text.accessibility;if(xB){var Mv=xB.accessibilityData;Mv&&Mv.label&&(bd.Ur=Mv.label||"")}break}}bd.W=LC(pe.background);var yB=pe.nextButton;if(yB){var rK=yB.buttonRenderer;if(rK){var zB=rK.navigationEndpoint;if(zB){var Nv=zB.watchEndpoint;Nv&&(bd.Fx=Nv)}}}if(pe.topBadges){var AB=pe.topBadges[0];if(AB){var BB=AB.metadataBadgeRenderer;
BB&&"BADGE_STYLE_TYPE_PREMIUM"==BB.style&&(bd.wD=!0)}}var lm=pe.alternativeTitle;lm&&(bd.So=g.Hv(lm));Cxa(bd,Sq,pe,ph);a.suggestions||(a.suggestions=[]);if(.01>Math.random()){for(var te=!1,mm=g.r(a.suggestions),Ov=mm.next();!Ov.done;Ov=mm.next())if(Ov.value.videoId===bd.videoId){te=!0;break}te||g.Bu(new g.Ar("Autonav video not in endscreen",{empty:!a.suggestions.length}))}a.Iq=bd;a.suggestions[0]=bd}null!=ad.countDownSecs&&(a.qQ=1E3*ad.countDownSecs);null!=ad.countDownSecsForFullscreen&&(a.iF=0<=
ad.countDownSecsForFullscreen?1E3*ad.countDownSecsForFullscreen:-1);var CB;a.sS=null==(CB=ad.cancelButton)?void 0:CB.buttonRenderer}a.watchNextResponse.currentVideoThumbnail&&(a.W=LC(a.watchNextResponse.currentVideoThumbnail));if(!a.K("player_parse_profile_picture_from_watch_next_killswitch")){var DB,EB,FB,Fo,GB,Pv=null==(DB=a.watchNextResponse)?void 0:null==(EB=DB.contents)?void 0:null==(FB=EB.twoColumnWatchNextResults)?void 0:null==(Fo=FB.results)?void 0:null==(GB=Fo.results)?void 0:GB.contents;
if(Pv&&Pv[1]){var Nr,HB,IB,JB,nm=null==(Nr=Pv[1].videoSecondaryInfoRenderer)?void 0:null==(HB=Nr.owner)?void 0:null==(IB=HB.videoOwnerRenderer)?void 0:null==(JB=IB.thumbnail)?void 0:JB.thumbnails;nm&&nm.length&&(a.profilePicture=nm[nm.length-1].url)}}var KB=a.watchNextResponse.onResponseReceivedEndpoints;if(KB)for(var LB=g.r(KB),Qv=LB.next();!Qv.done;Qv=LB.next()){var yh=Qv.value;yh.changeKeyedMarkersVisibilityCommand&&(a.OL=yh.changeKeyedMarkersVisibilityCommand);var MB=void 0;a.K("web_key_moments_markers")&&
(null==(MB=yh.loadMarkersCommand)?0:MB.entityKeys)&&(a.zs=yh.loadMarkersCommand.entityKeys,yh.loadMarkersCommand.visibleOnLoadKeys&&(a.visibleOnLoadKeys=yh.loadMarkersCommand.visibleOnLoadKeys))}if(a.K("web_key_moments_markers")){var NB=g.vD.getState().entities,OB=g.GC("visibility_override","markersVisibilityOverrideEntity");var Go=NB.markersVisibilityOverrideEntity?NB.markersVisibilityOverrideEntity[OB]||null:null;var sK=a.videoId||Xq(b);a.Yc=(null==Go?void 0:Go.videoId)===sK&&(null==Go?0:Go.visibilityOverrideMarkersKey)?
Go.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.v(a.Yc))}}};
uD=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
wD=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
zD=function(a){if(a.K("html5_single_format_policy")&&a.Zc)return a.Zc;var b=a.Ia,c=!!a.j&&a.j.fg,d=a.u,e=a.tH(),f=xD(a),h=a.bF,l=a.isOtf(),m=a.vF(),n=a.Ib,p=a.Ye,q=new Vua;if(dC(d)||d.K("html5_logging_format_selection"))q.B=!0;q.Ta=f;q.va=h&&d.B;q.Ye=p;Aq("windows nt 5.1")&&!g.Gw&&(q.j=!0);if(f=e)f=d.K("disable_html5_ambisonic_audio")||!(g.ZB(d)||d.K("html5_enable_spherical")||d.K("html5_enable_spherical3d"))?!1:Zva(d);f&&(q.Sa=!0);b&&(q.j=!0,q.Zb=!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.Ga=b||l;Uw(d.u,Vw.CHANNELS)&&(d.K("html5_enable_aac51")&&(q.Y=!0),d.K("html5_enable_ac3")&&(q.D=!0),d.K("html5_enable_eac3")&&(q.I=!0),d.K("html5_enable_ac3_gapless")&&(q.Da=!0));d.K("html5_block_8k_hfr")&&(q.eb=!0);q.J=g.eA(d.experiments,"html5_max_selectable_quality_ordinal");q.N=g.eA(d.experiments,"html5_min_selectable_quality_ordinal");!d.K("html5_kaios_hd_killswitch")&&VA&&(q.Kb=480);if(c||e)q.bb=!1;q.kb=!1;c=
Wz(d,q.u);0<c&&2160>c&&(Bz()||d.K("html5_format_hybridization"))&&(q.u.supportsChangeType=+Bz(),q.V=c);2160<=c&&(q.oa=!0);Tua()&&(q.u.serveVp9OverAv1IfHigherRes=0,q.qc=!1);q.vF=m;q.Pa=g.hs||Mq()&&!m?!1:!0;q.ma=d.K("html5_format_hybridization");q.Ib=d.K("html5_disable_encrypted_vp9_live_non_2k_4k");Dq()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.D=!0,q.I=!0);a.Ia&&a.isAd()&&
(a.cn&&(q.W=a.cn),a.Zm&&(q.C=a.Zm));q.Ia=a.isLivePlayback&&yD(a)&&a.u.K("html5_drm_live_audio_51");return a.Zc=q};
Dxa=function(a){mw("drm_pb_s",void 0,a.Da);a.Kd||a.j&&Xw(a.j);var b={};a.j&&(b=msa(zD(a),a.u.u,a.j,function(c){return a.X("ctmp","fmtflt",c)},!0));
b=new hA(b,a.u.experiments,a.LO,a.useCobaltWidevine?Dq()?AD(a):!1:!1,function(c,d){a.ra(c,d)});
g.J(a,b);a.Bl=!1;a.va=!0;Zua(b,function(c){mw("drm_pb_f",void 0,a.Da);for(var d=g.r(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.u=a.Kd;e.J=a.F1;e.I=a.B1;break;case "widevine":e.B=a.TO}a.Zs=c;if(0<a.Zs.length&&(a.V=a.Zs[0],2<=a.u.V)){c={};d=g.r(Object.entries(a.V.j));for(e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.ra("drmProbe",c)}oD(a)})};
yxa=function(a,b){var c;(c=!b)||(c=!(!a.K("html5_manifestless_unplugged")&&a.isLivePlayback&&g.UB(a.u)&&g.oB(a.u)?0:!rD(a)&&a.adaptiveFormats));if(c)return null;BD(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(Kua=!0);b=CD(b);c=Date.now();var d=a.Wd;var e=a.lengthSeconds,f=a.isLivePlayback,h=a.Mf,l=a.u,m=vua(b);if(f||h){l=new Iz("",null==l?void 0:l.experiments,!0);e=g.r(b);for(f=e.next();!f.done;f=e.next()){var n=f.value;f=Kz(n,d);m=Lz(n.url,n.sp,n.s);var p=Number(n.target_duration_sec)||5;
n=Number(n.max_dvr_duration_sec)||14400;var q=Number(m.get("mindsq")||m.get("min_sq")||"0"),t=Number(m.get("maxdsq")||m.get("max_sq")||"0")||Infinity;l.Ve=l.Ve||q;l.Gh=l.Gh||t;var u=!iz(f.mimeType);m&&Jz(l,new Oy(m,f,{fk:p,Tl:u,yn:n,Ve:q,Gh:t,Gy:300,Mf:h}))}l.u=!h;l.fg=!0;l.isManifestless=!0;l.isLive=!h;l.Mf=h;l.J=!!l.Ve&&!!l.Gh&&isFinite(l.Gh);d=l}else if(3===m){e=void 0===e?0:e;h=new Iz("",null==l?void 0:l.experiments,!1);h.duration=e||0;l=g.r(b);for(e=l.next();!e.done;e=l.next())if(p=e.value,e=
Kz(p,d,h.duration),f=Lz(p.url,p.sp,p.s))3===e.streamType?Jz(h,new Py(f,e,"sq/0")):(m=qy(p.init),p=qy(p.index),Jz(h,new Wy(f,e,m,p)));h.isOtf=!0;d=h}else{e=void 0===e?0:e;h=new Iz("",null==l?void 0:l.experiments,!1);h.duration=e||0;e=g.r(b);for(f=e.next();!f.done;f=e.next())if(n=f.value,f=Kz(n,d,h.duration),m=qy(n.init),p=qy(n.index),n=Lz(n.url,n.sp,n.s))q=void 0,Jz(h,new Wy(n,f,m,p,null==(q=l)?void 0:q.vk));d=h}c=Date.now()-c;a.K("html5_log_manifest_performance")&&(h=tua(d)?1:0,a.ra("mfsp",{wasm:h,
t:c}));0<b.length&&(b=b[0],b.url&&b.sp&&b.s&&(b=Lz(b.url,b.sp,b.s),b=Number(b.get("max_sq"))||Infinity,isFinite(b)&&(a.di=!0)));return d};
rD=function(a){return Dq()?!AD(a):Fq()?!(!a.Kd||!a.K("html5_enable_safari_fairplay")):!1};
AD=function(a){return BD(a,"html5_enable_tvos_dash_dogfood")||a.K("html5_enable_tvos_dash")&&(a.K("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
tD=function(a){return!(!a.j||!a.j.isManifestless)};
Exa=function(a){if(!Hw())return!1;if(a.K("html5_streaming_debug")||tD(a)&&("ULTRALOW"==a.latencyClass||21530001==DD(a)))return!0;if(!window.AbortController&&!Iw()||a.Ia)return!1;if(a.K("html5_streaming_xhr"))return!0;var b;return a.K("html5_streaming_xhr_vod")&&!1===(null==(b=a.j)?void 0:b.fg)?!0:!1};
Fxa=function(a){return vsa({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,wm:a.wm,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:tD(a),KJ:Exa(a)})};
DD=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=Qz(a.j)?21530001:a.liveExperimentalContentId};
wxa=function(a){return Dq()&&AD(a)?!1:rD(a)&&g.UB(a.u)&&!a.isLivePlayback||!kA(a.u.u)||a.mF?!0:!1};
Hxa=function(a){a.va=!0;a.ze=!1;if(xxa(a))g.Kwa(a.videoId).then(function(c){Gxa(a,c)}).then(function(){oD(a)});
else{wv(a.qb)||g.Bu(new g.Ar("DASH MPD Origin invalid: ",a.qb));var b=a.qb;b=g.Mh(b,{mpd_version:g.eA(a.u.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Mh(b,{pacing:0}));Dua(b,a.u.experiments,a.isLivePlayback).then(function(c){a.isDisposed()||(sD(a,c,!0),mw("mrc",void 0,a.Da),oD(a))},function(c){a.isDisposed()||(a.va=!1,a.X("dataloaderror",new fC("manifest.net.retryexhausted",{backend:"manifest",
rc:c.status},1)))});
mw("mrs",void 0,a.Da)}};
Gxa=function(a,b){var c=b.map(function(e){return e.itag}),d=a.playerResponse.streamingData.adaptiveFormats.filter(function(e){return c.includes(e.itag)}).map(function(e){e=Object.assign({},e);
e.url=b.find(function(f){return f.itag===e.itag}).url;
e.signatureCipher="";return gxa(e)}).join(",");
d=yxa(a,d);sD(a,d);a.ra("dlr",{})};
oD=function(a){a.isDisposed()||(a.va=!1,a.X("dataloaded"))};
sD=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.J(a,b);b.Ve=a.Ve;b.Gh=a.Gh;b.D=a.nM;b.C=a.lM;a.K("html5_start_walltime_min_seekable_killswitch")||(b.I=a.IO);Ixa(a)&&a.oa.push("webgl");a.j.isLive||(a.isLivePlayback=!1,a.K("html5_live_head_playable")||(a.isLiveHeadPlayable=!1));var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.gi=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.ra,a),c?b.subscribe("refresh",a.MP,a):b.subscribe("cuepointsadded",a.WM,a));Xw(b)&&
(a.Bl=!0)};
yD=function(a){return a.Wd?!0:!!a.j&&Xw(a.j)};
Nxa=function(a,b){if(a.isDisposed())return uq();a.C=null;a.eb=null;a.qc=null;if(BD(a,"html5_high_res_logging")||BD(a,"html5_high_res_logging_live_infra"))a.u.V=2;return Jxa(a,b).then(void 0,function(){return Kxa(a,b)}).then(void 0,function(){return Lxa(a)}).then(void 0,function(){return Mxa(a)})};
Jxa=function(a,b){var c=b||wxa(a);if(!a.j||c)return a.ra("skipDash",{dm:!!a.j,air:b,dd:a.mF,mss:kA(a.u.u)}),uq();xD(a)&&Hua(a.j,a.isLivePlayback);BD(a,"html5_enable_cobalt_experimental_vp9_decoder")&&hva(a.u.u);return vq().then(function(){return usa(zD(a),a.u.u,a.j,a.V,function(d){return a.X("ctmp","fmtflt",d)}).then(function(d){Oxa(a,d);
/^av/.test(a.clientPlaybackNonce)&&a.Zc&&a.ra("av1",a.Zc.u)})})};
Kxa=function(a,b){if(b&&a.hlsvp)return uq();if(a.hlsFormats){b=CD(a.hlsFormats);var c;if((null==(c=a.Zc)?0:c.B)&&b){c=[];for(var d=g.r(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.ra("hlsfmt",{itags:c.join(".")})}a.Sr=gwa(a.u,b);c=a.clientPlaybackNonce;var f,h,l,m;return lwa(a.u,a.isAd(),b,null!=(m=null==(f=a.playerResponse)?void 0:null==(h=f.captions)?void 0:null==(l=h.playerCaptionsRenderer)?void 0:l.baseUrl)?m:null,a.rl,c,function(n){return a.X("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],t=g.r(n),u=t.next();!u.done;u=t.next()){u=u.value;
var x=void 0;q.push(null==(x=u.cg())?void 0:x.Vb());var y=x=void 0;(null==(x=u.cg())?void 0:null==(y=x.audio)?void 0:y.numChannels)>p&&(p=u.cg().audio.numChannels)}2<p&&a.ra("hlschl",{mn:p});var z;(null==(z=a.Zc)?0:z.B)&&a.ra("hlsfmtaf",{itags:q.join(".")});ED(a,n)})}return uq()};
Lxa=function(a){return a.Gj&&a.GK?nwa(a.u,a.isAd(),a.Gj).then(function(b){ED(a,b)}):uq()};
Mxa=function(a){var b=CD(a.Lj,a.LI);if(a.hlsvp){var c=mxa(a.hlsvp,a.clientPlaybackNonce,a.rl);b.push(c)}return mwa(a.u,a.isAd(),b,Pxa(a)).then(function(d){ED(a,d)})};
Oxa=function(a,b){a.C=b;b=a.getAvailableAudioTracks();b=b.concat(a.zl);for(var c=0;c<a.jF.length;c++)for(var d=a.jF[c],e=0;e<b.length;e++){var f=b[e],h=f.Fc.id==d.audioTrackId;if(f.Fc.isDefault&&c==a.OR||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.B=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.j=a.captionTracks[d.forcedCaptionTrackIndex]);
f.u=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}if(a.V&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=hz(a.C.videoInfos[0]),b!=("fairplay"==a.V.flavor)))for(c=g.r(a.Zs),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.V=d;break}};
ED=function(a,b){a.qc=b;Oxa(a,new Qw(g.kk(a.qc,function(c){return c.cg()})))};
Pxa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.u.deviceParams.c,cver:a.u.deviceParams.cver};a.Ts&&(b.ptk=a.Ts,b.oid=a.WL,b.ptchn=a.VL,b.pltype=a.XL,a.Gr&&(b.m=a.Gr));return b};
g.FD=function(a){return rD(a)&&a.Kd?(a={},a.fairplay="https://web.archive.org/web/20220603021303/https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.Wd||null};
Qxa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.Hv(b.text):a.paidContentOverlayText};
GD=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?kg(b.durationMs):a.paidContentOverlayDurationMs};
HD=function(a){var b="";if(a.tK)return a.tK;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.Mf?"post":a.di?"window":"live");return b};
g.ID=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
JD=function(a){return!!(a.qb||a.adaptiveFormats||a.Lj||a.Gj||a.hlsvp)};
nD=function(a){if(a.K("html5_onesie")&&a.errorCode)return!1;var b=g.Xb(a.oa,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.va&&(JD(a)||g.Xb(a.oa,"heartbeat")||b)};
CD=function(a,b){a=aq(a);var c={};if(b){b=g.r(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.r(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};
Axa=function(a,b){a.showShareButton=!!b;var c,d,e=(null==b?void 0:null==(c=b.buttonRenderer)?void 0:c.navigationEndpoint)||(null==b?void 0:null==(d=b.buttonRenderer)?void 0:d.command);e&&(a.Gl=!!e.copyTextEndpoint)};
oxa=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.wh=c);if(a.wh){if(c=a.wh.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);if(c=a.wh.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.bb=d,a.D=!0,a.u.K("embeds_web_enable_epm_dni_parity_fix")&&(a.u.va="EMBEDDED_PLAYER_MODE_PFP")):
(a.bb="",a.D=!1,a.u.K("embeds_web_enable_epm_dni_parity_fix")&&"EMBEDDED_PLAYER_MODE_PFP"===a.u.va&&(a.u.va="EMBEDDED_PLAYER_MODE_DEFAULT"));if(d=c.defaultThumbnail)a.W=LC(d),a.sampledThumbnailColor=d.sampledThumbnailColor;var e;(d=null==c?void 0:null==(e=c.videoDetails)?void 0:e.embeddedPlayerOverlayVideoDetailsRenderer)&&Bxa(a,b,d);var f;if(e=null==c?void 0:null==(f=c.videoDetails)?void 0:f.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.ZH=e.title,a.NH=e.byline,e.musicVideoType&&(a.musicVideoType=
e.musicVideoType);a.Vg=!!c.addToWatchLaterButton;Axa(a,c.shareButton);var h,l,m;if(f=null==c?void 0:null==(h=c.playButton)?void 0:null==(l=h.buttonRenderer)?void 0:null==(m=l.navigationEndpoint)?void 0:m.watchEndpoint)zxa(a,f),a.videoId=f.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=kg(c.videoDurationSeconds));c.webPlayerActionsPorting&&axa(a,c.webPlayerActionsPorting);var n;if(h=null==c?void 0:null==(n=c.playlist)?void 0:n.playlistPanelRenderer){n=[];l=Number(h.currentIndex);if(h.contents)for(m=
0,f=h.contents.length;m<f;m++)if(e=h.contents[m].playlistPanelVideoRenderer)c=e.shortBylineText?g.Hv(e.shortBylineText):"",d=e.title?g.Hv(e.title):"",n.push({author:c,encrypted_id:e.videoId,title:d,channel_path:m===l?b.channel_path:"",profile_picture:m===l?b.profile_picture:"",is_private:m===l?a.isPrivate:!1,is_dni:m===l?a.D:!1,dni_color:m===l?a.bb:""});b={index:h.currentIndex,list:h.playlistId,playlist_length:h.totalVideos,video:n};h.titleText&&(b.title=g.Hv(h.titleText));h.shortBylineText&&(b.author=
g.Hv(h.shortBylineText));a.mS=b}}if(a.wh.previewPlayabilityStatus){if(a.Ys=a.wh.previewPlayabilityStatus,b=a.Ys,!["OK","LIVE_STREAM_OFFLINE"].includes(b.status)){n=b.errorScreen;if(h=null==n?void 0:n.playerErrorMessageRenderer){a.qG=h;if(l=h.reason)a.errorReason=g.Hv(l);if(h=h.subreason)a.Ck=g.Hv(h)}else a.errorReason=b.reason||null;switch(b.status){case "LOGIN_REQUIRED":a.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":a.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var p;(null==n?0:null==
(p=n.playerKavRenderer)?0:p.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}}else a.wh.playabilityStatus&&(a.rk=a.wh.playabilityStatus,Rxa(a)&&(a.errorDetail="0",a.rk&&((p=a.rk.embeddedPlayerErrorMessageRenderer)?a.qG=p.embeddedPlayerErrorMessageRenderer:a.K("embeds_playabilitystatus_deprecation_killswitch")||(a.errorReason=a.rk.reason||null))));(p=a.wh.attestation)&&Wwa(a,p);(p=a.wh.permissions)&&p.allowImaMonetization&&(a.allowImaMonetization=
!0)}};
zxa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.UL=new Pwa(b)};
Cxa=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=m.watchEndpoint)&&(a.EM=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.Ex=d};
Bxa=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);var e,f,h;if(d=null==c?void 0:null==(e=c.channelThumbnailEndpoint)?void 0:null==(f=e.channelThumbnailEndpoint)?void 0:null==(h=f.urlEndpoint)?void 0:h.urlEndpoint)b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=e.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){if(f=e.title)b.title=g.Hv(f);if(e=e.subtitle)b.subtitle=g.Hv(e)}if(c=c.expandedRenderer)if(c=c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(e=
c.title)b.expanded_title=g.Hv(e);if(e=c.subtitle)b.expanded_subtitle=g.Hv(e);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.aj=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.ZE=b.toggledServiceEndpoint||null,a.XE=b.defaultServiceEndpoint||null):(a.ZE=b.defaultServiceEndpoint||null,
a.XE=b.toggledServiceEndpoint||null))}};
g.KD=function(a){return a.isLiveHeadPlayable&&!a.allowLiveDvr};
LD=function(a){return a.isLiveHeadPlayable&&a.allowLiveDvr};
g.MD=function(a){return!!a.j&&oua(a.j)};
g.ND=function(a){return!!a.j&&pua(a.j)};
Ixa=function(a){return a.tH()||g.OD(a)};
g.PD=function(a){return!!a.j&&qua(a.j)};
g.OD=function(a){return!!a.j&&rua(a.j)};
g.Sxa=function(a){if(a.TE)return null;var b=a.ML;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.Txa=function(a){return a.TE?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.QD=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.RD=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.r(a.playerResponse.annotations);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.playerAnnotationsExpandedRenderer&&b.playerAnnotationsExpandedRenderer.featuredChannel)return b.playerAnnotationsExpandedRenderer;return null};
SD=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.u.Ia};
TD=function(a){if(a.isAd()&&a.videoId!=a.u.qd)return a.u.qd};
UD=function(a){return a.Fm||"detailpage"==SD(a)||"shortspage"==SD(a)||a.mutedAutoplay};
VD=function(a){if(UD(a)){if("detailpage"==SD(a)||"shortspage"==SD(a))return a.Am||0<a.Zb;if(!("17_8"===a.adFormat&&!a.Am||a.dR||"adunit"==SD(a)&&a.Ke))return!0}return!1};
g.WD=function(a){return a.oauthToken||a.u.md};
Uxa=function(a){var b=1,c=g.eA(a.u.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.Me;a.C&&a.C.j&&a.C.j[0]&&a.Us[a.C.j[0].id]&&(c=a.Us[a.C.j[0].id]);if(a.K("html5_stateful_audio_normalization")&&null!=c){if(a.VO)return Math.min(1,Math.pow(10,-a.Ww/20))||b;var d=0;a.K("html5_diff_bias_over_ad_content")&&(d=a.isAd()?0:3);c-=Math.min(0,d+Math.max(a.u.Gj,g.eA(a.u.experiments,"html5_stateful_audio_min_adjustment_value")));a.Ww=c}return Math.min(1,Math.pow(10,-c/20))||b};
xD=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===mB(a.u)&&"MUSIC"===a.u.deviceParams.ctheme;!a.Ze&&(g.gB(a.u)||c)&&b.includes(a.musicVideoType)&&(a.Ze=!0);if(b=g.Cq())b=/Starboard\/([0-9]+)/.exec(g.tb()),b=10>(b?parseInt(b[1],10):NaN);c=a.u;c=("TVHTML5_CAST"===mB(c)||"TVHTML5"===mB(c)&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.u.deviceParams.ctheme;!a.Ze&&(c||Xva(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.Ze=!0);return a.u.deviceIsAudioOnly||a.Ze&&a.u.B};
Vxa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
XD=function(a){return!(!a.qk||!a.u.B)&&!!a.adaptiveFormats};
Wxa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
xxa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.RC(b);return b&&!a.qk};
g.YD=function(a){if(!a.j||!a.B||!a.I)return!1;var b=a.j.j;return!!b[a.B.id]&&fx(b[a.B.id].u.j)&&!!b[a.I.id]&&fx(b[a.I.id].u.j)};
Xxa=function(a){return a.Ys?["OK","LIVE_STREAM_OFFLINE"].includes(a.Ys.status):!0};
Rxa=function(a){return(a=a.rk)&&a.showError?a.showError:!1};
BD=function(a,b){return a.K(b)?!0:(a.fflags||"").includes(b+"=true")};
Yxa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
txa=function(a,b){b.playback_progress_0s_url&&(a.jt=new owa(b));if(b=b.video_masthead_ad_quartile_urls)a.gE=b.quartile_0_url,a.gM=b.quartile_25_url,a.iM=b.quartile_50_url,a.kM=b.quartile_75_url,a.eM=b.quartile_100_url,a.gt=b.quartile_0_urls,a.jE=b.quartile_25_urls,a.kE=b.quartile_50_urls,a.lE=b.quartile_75_urls,a.hE=b.quartile_100_urls};
qD=function(a,b){return b?kA(a.u.u)?!0:ZD&&5>$D?!1:!0:!1};
sxa=function(a){var b={};a=g.r(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};
Xwa=function(a){if(a){if(Ara(a))return a;a=Bra(a);if(Ara(a,!0))return a}return""};
g.Zxa=function(a){return a.captionsLanguagePreference||a.u.captionsLanguagePreference||g.ID(a,"yt:cc_default_lang")||a.u.zg};
aE=function(a){return!!(a.K("enable_linear_player_handling")&&a.isLivePlayback&&a.hasProgressBarBoundaries())};
g.bE=function(a){if(a.K("web_player_decouple_autonav"))return a.Iq;var b;return(null==(b=a.suggestions)?void 0:b[0])||null};
cE=function(a,b){this.j=a;this.W=b||{};this.I=String(Math.floor(1E9*Math.random()));this.D={};this.V=this.N=0};
$xa=function(a){return dE(a)&&1==a.getPlayerState(2)};
dE=function(a){a=a.Ic();return void 0!==a&&2==a.getPlayerType()};
eE=function(a){a=a.S();return nB(a)&&!g.UB(a)&&"desktop-polymer"==a.playerStyle};
fE=function(a,b){var c=a.S();cB(c)||"3"!=c.controlsType||a.Ya().Bz(b)};
hE=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=gE(a)};
gE=function(a){return a+(":"+(So.getInstance().j++).toString(36))};
iE=function(a){this.U=a};
aya=function(a,b){if(0===b||1===b&&(a.U.isMobile&&g.Ir?0:a.U.isMobile||g.UB(a.U)||g.oB(a.U)||pB(a.U)||!g.Ir))return!0;a=g.rg("video-ads");return null!=a&&"none"!==dl(a,"display")};
bya=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}};
jE=function(){g.iu.call(this);var a=this;this.j={};g.Be(this,function(){for(var b=g.r(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
lE=function(){if(null===kE){kE=new jE;nk(vn).u="b";var a=nk(vn),b="h"==on(a)||"b"==on(a),c=!(sk(),!1);b&&c&&(a.C=!0,a.D=new bia)}return kE};
cya=function(a,b,c){a.j[b]=c};
dya=function(){};
mE=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<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
nE=function(a){var b,c,d,e,f;return!(null==(b=a.get("active_view_viewable"))||!b.length)||!(null==(c=a.get("active_view_measurable"))||!c.length)||!(null==(d=a.get("active_view_fully_viewable_audible_half_duration"))||!d.length)||!(null==(e=a.get("audio_audible"))||!e.length)||!(null==(f=a.get("audio_measurable"))||!f.length)};
oE=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.activeViewTracking)?void 0:b.trafficType)?c:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
pE=function(a){var b,c;return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",a.activeViewMeasurablePings||
[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",(null==(b=a.activeViewTracking)?void 0:b.activeViewAudioAudiblePings)||[]],["audio_measurable",(null==(c=a.activeViewTracking)?void 0:c.activeViewAudioMeasurablePings)||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",a.firstQuartilePings||[]],
["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]],["unmuted_impression",a.unmutedImpressionPings||[]],["unmuted_error",a.unmutedErrorPings||[]],["unmuted_mute",a.unmutedMutePings||[]],["unmuted_unmute",a.unmutedUnmutePings||[]],["unmuted_pause",a.unmutedPausePings||[]],["unmuted_resume",a.unmutedResumePings||[]],["unmuted_close",a.unmutedClosePings||[]],["unmuted_progress",a.unmutedProgressPings||[]],["unmuted_clickthrough",a.unmutedClickthroughPings||
[]],["unmuted_fullscreen",a.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",a.unmutedEndFullscreenPings||[]],["unmuted_abandon",a.unmutedAbandonPings||[]],["unmuted_start",a.unmutedStartPings||[]],["unmuted_first_quartile",a.unmutedFirstQuartilePings||[]],["unmuted_midpoint",a.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",a.unmutedThirdQuartilePings||[]],["unmuted_complete",a.unmutedCompletePings||[]]])};
eya=function(a){return(a=a.pings)?Object.fromEntries(pE(a)):{}};
qE=function(a,b,c,d,e){cE.call(this,a,eya(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Ga=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.B=new mE(0,[]);this.ma=null;this.C={};this.oa=null;this.u=0;this.J=null;this.Y=e;this.Da=null;c=this.j.skipOffsetMilliseconds||0;0<c&&(this.oa=c);this.C=$p(this.j.playerVars||"");this.J=this.j.externalVideoId||null;this.u=Uq(this.u,this.C.length_seconds);this.Y&&this.J&&(this.Da=this.Y(this.J));if(this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=
JSON.parse(this.C.cta_conversion_urls)}catch(f){g.S(f)}this.ma=this.j.clickthroughEndpoint||null;this.B=new mE(0,[this.u])};
fya=function(a){var b=a.C||{};1<a.B.u&&(b.slot_pos=a.B.j);b.autoplay="1";return b};
rE=function(){this.j=[];this.u=0};
sE=function(a,b){b&&a.j.push(b)};
tE=function(a){if(!a)return[];var b=[];a=g.r(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.r(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
uE=function(a){if(!a)return[];var b=[];a.forEach(function(c){c.command.loggingUrls.forEach(function(d){b.push({baseUrl:d.baseUrl,offsetMilliseconds:c.adVideoOffset.milliseconds})})});
return b};
vE=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
wE=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
gya=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=tE(a.impressionCommands)||[];b.error=tE(a.errorCommands)||[];b.mute=tE(a.muteCommands)||[];b.unmute=tE(a.unmuteCommands)||[];b.pause=tE(a.pauseCommands)||[];b.rewind=tE(a.rewindCommands)||[];b.resume=tE(a.resumeCommands)||[];b.skip=tE(a.skipCommands)||[];b.close=tE(a.closeCommands)||[];b.clickthrough=tE(a.clickthroughCommands)||[];b.fullscreen=tE(a.fullscreenCommands)||[];b.active_view_viewable=tE(a.activeViewViewableCommands)||
[];b.active_view_measurable=tE(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=tE(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];a.activeViewTracking&&(b.audio_audible=tE(a.activeViewTracking.activeViewAudioAudibleCommands)||[],b.audio_measurable=tE(a.activeViewTracking.activeViewAudioMeasurableCommands)||[]);b.end_fullscreen=tE(a.endFullscreenCommands)||[];b.channel_clickthrough=tE(a.channelClickthroughCommands)||[];b.abandon=tE(a.abandonCommands)||
[];b.progress=uE(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=uE(a.progressCommands.filter(function(c){return wE(c)&&$f(vE(c),0)}));
b.first_quartile=uE(a.progressCommands.filter(function(c){return wE(c)&&$f(vE(c),.25)}));
b.midpoint=uE(a.progressCommands.filter(function(c){return wE(c)&&$f(vE(c),.5)}));
b.third_quartile=uE(a.progressCommands.filter(function(c){return wE(c)&&$f(vE(c),.75)}));
b.complete=uE(a.progressCommands.filter(function(c){return wE(c)&&$f(vE(c),1)}));
return b};
xE=function(a){cE.call(this,a,gya(a));a.questions&&a.questions.reduce(function(b,c){return(c=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer)?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0)};
hya=function(a,b,c,d){this.id=b;this.C=d.hf;b=a.config&&a.config.adPlacementConfig;if(!b)throw Error("Malformed AdPlacementRenderer: missing AdPlacementConfig");var e=a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer||{};this.B=(this.D=e.getAdBreakUrl||"")?0:2;d.j=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=Gra(b,d);if(null==f)d=new Ev(b,new wo(-1,-1),!1,"adcuerange:invalid",3),d.deactivate(),d=[null,d];else{e=":"+(So.getInstance().j++).toString(36);
var h=d.daiEnabled||d.hf;f=new Ev(b,f,d.visible&&!h,"adcuerange:"+e,3);h=null;if(d.hf||0<d.j)if(d=Gra(b,d,!0))h=new Ev(b,d,!1,"prefetch:"+e,5),f.C=h,h.C=f;d=[h,f]}this.j=d[1];this.u=c;this.I=!1;this.N={};this.J=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
yE=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j.j||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.j.j};
AE=function(a,b){var c={};iya(a,c,b);jya(c);c.LACT=zE(function(){return xt().toString()});
c.VIS=zE(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=zE(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
kya=function(a){var b={};if(!a.kind)return g.S(Error("AdPlacementConfig without kind")),b;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.S(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=zE(nf(Math.round(kg(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=zE(nf("0"));return b};
zE=function(a){return{toString:function(){return a()}}};
lya=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)}
function e(l,m){(m=c[m])&&(f[l]=h(m))}
if(!c||g.Se(c))return a;var f=Object.assign({},a),h=b?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
iya=function(a,b,c){b.CPN=zE(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.Bu(Error("Video data is null.")),d=null);return d});
b.AD_MT=zE(function(){return Math.round(Math.max(0,1E3*(null!=c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=zE(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=zE(function(){return a.Ya().xi().height.toString()});
b.P_W=zE(function(){return a.Ya().xi().width.toString()});
b.PV_H=zE(function(){return a.Ya().getVideoContentRect().height.toString()});
b.PV_W=zE(function(){return a.Ya().getVideoContentRect().width.toString()})};
jya=function(a){a.CONN=zE(nf("0"));a.WT=zE(function(){return Date.now().toString()})};
mya=function(a){var b=Object.assign({},{});b.MIDROLL_POS=yE(a)?zE(nf(Math.round(a.j.start/1E3).toString())):zE(nf("0"));return b};
nya=function(a){var b={};b.SLOT_POS=zE(nf(a.B.j.toString()));return b};
oya=function(a){var b=a&&g.ob(a,"load_timeout")?"402":"400",c={};return c.YT_ERROR_CODE=(3).toString(),c.ERRORCODE=b,c.ERROR_MSG=a,c};
BE=function(a){for(var b={},c=g.r(pya),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
CE=function(){var a={};Object.assign.apply(Object,[a].concat(g.v(g.Ea.apply(0,arguments))));return a};
DE=function(){};
EE=function(a){this.qn=a};
FE=function(a){this.Qq=a};
rya=function(a,b,c,d,e,f){e=void 0===e?new FE(new EE(d.getVideoData(1))):e;f=void 0===f?!1:f;g.I.call(this);this.ad=a;this.B=b;this.macros=c;this.j=d;this.Uj=e;this.daiEnabled=f;this.u={iE:.25,dF:.5,fF:.75};this.lastUpdatedTimeSecs=null;this.progressPings=Array.from(this.ad.W.progress||[]);this.progressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
this.unmutedProgressPings=Array.from(this.ad.W.unmuted_progress||[]);this.unmutedProgressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
qya(oE(a.j.pings))};
KE=function(a,b){GE(a)||(HE(a)?(IE(a,0,!0),sya(a,b,b)):(IE(a,0,!0),tya(a,0,0,!0)),JE(a,"complete"))};
IE=function(a,b,c){for(c=void 0===c?!1:c;a.ad.N<a.progressPings.length;){var d=LE(a,"progress"),e=a.progressPings[a.ad.N];if(e.offsetMilliseconds<=1E3*b||c)ME(a,e,d),a.ad.N++;else break}};
uya=function(a,b,c){for(c=void 0===c?!1:c;a.ad.V<a.unmutedProgressPings.length;){var d=LE(a,"unmuted_progress"),e=a.unmutedProgressPings[a.ad.V];if(e.offsetMilliseconds<=1E3*b||c)ME(a,e,d),a.ad.V++;else break}};
tya=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.iE||d)&&JE(a,"first_quartile");(b>=c*a.u.dF||d)&&JE(a,"midpoint");(b>=c*a.u.fF||d)&&JE(a,"third_quartile")};
vya=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.iE||d)&&JE(a,"unmuted_first_quartile");(b>=c*a.u.dF||d)&&JE(a,"unmuted_midpoint");(b>=c*a.u.fF||d)&&JE(a,"unmuted_third_quartile")};
NE=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(c<d||1<c-d)return}else if(a.lastUpdatedTimeSecs>d||d>c)return;JE(a,b)};
sya=function(a,b,c){if(0<c&&0<b){var d=a.j.xb(a.j.getPresentingPlayerType());g.V(d,16)||g.V(d,32)||(NE(a,"first_quartile",b,c*a.u.iE),NE(a,"midpoint",b,c*a.u.dF),NE(a,"third_quartile",b,c*a.u.fF))}a.lastUpdatedTimeSecs=b};
OE=function(a,b){for(var c=LE(a,b),d=g.r(a.ad.W[b]||[]),e=d.next();!e.done;e=d.next())ME(a,e.value,c);a.ad.D[b]=!0};
JE=function(a,b){a.ad.D.hasOwnProperty(b)||OE(a,b)};
PE=function(a,b){return a.ad.D.hasOwnProperty(b)};
ME=function(a,b,c){var d=b.baseUrl;if(d){b=b.headers||[];for(var e=a.Uj,f=e.send,h={},l=AE(a.j),m=g.r(Object.keys(l)),n=m.next();!n.done;n=m.next())n=n.value,h[n]=l[n].toString();if(l=a.j.getVideoData(2))h.AD_CPN=l.clientPlaybackNonce;a=Object.assign(h,a.macros);f.call(e,d,a,c,b)}};
LE=function(a,b){var c=a.B;a=a.ad;if(a.vy())if(b=wya(b),null==b)c={};else{var d;(d=a.va()())||(d=(d=c.G)&&d.Ic?(d=d.Ic())&&2==d.getPlayerType()?QE(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.G.isFullscreen()},c=xn(b,a.I,c)):c={}}else c={};return c?Object.assign({},c):{}};
HE=function(a){return!a.j.S().K("html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.daiEnabled};
GE=function(a){return HE(a)&&!PE(a,"impression")};
RE=function(a){return HE(a)&&PE(a,"seek")};
SE=function(a,b){HE(a)?OE(a,b):JE(a,b)};
g.TE=function(a,b){this.state=a;this.Up=b};
UE=function(a,b){return g.V(a.state,b)&&!g.V(a.Up,b)?1:!g.V(a.state,b)&&g.V(a.Up,b)?-1:0};
g.VE=function(a,b){return 0<UE(a,b)};
WE=function(a,b,c,d,e,f){f=void 0===f?0:f;g.iu.call(this);this.G=a;this.j=d;this.u=e;this.u.j[b.I]=this;this.u.subscribe("adactiveviewmeasurable",this.DQ,this);this.u.subscribe("adfullyviewableaudiblehalfdurationimpression",this.EQ,this);this.u.subscribe("adoverlaymeasurableimpression",this.FQ,this);this.u.subscribe("adoverlayunviewableimpression",this.GQ,this);this.u.subscribe("adoverlayviewableendofsessionimpression",this.HQ,this);this.u.subscribe("adoverlayviewableimmediateimpression",this.IQ,
this);this.u.subscribe("adviewableimpression",this.JQ,this);this.ad=b;this.oa=[];this.macros=c;this.N=!1;this.ma=!aya(new iE(this.G.S()),f);this.C=!1};
yya=function(a,b){g.fc(a.oa,b);xya(a,b,1)};
zya=function(a,b){if(a.N){var c=a.j,d=a.getDuration();!GE(c)&&0<d&&(IE(c,b),HE(c)?sya(c,b,d):tya(c,b,d,!1));a.C||(c=a.j,a=a.getDuration(),!GE(c)&&0<a&&(uya(c,b),vya(c,b,a,!1)))}};
xya=function(a,b,c){0!=b.length&&(b=g.kk(b,function(d){return new Gv(d,c,d.id)}),a.X("onAdUxUpdate",b))};
XE=function(a){var b={};b.abandon=a.abandonCommands&&tE(a.abandonCommands.commands)||[];cE.call(this,a,b)};
YE=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;hE.call(this,"ad-action-interstitial",a,b,c,d);this.j=d;this.AJ=e;this.uD=f};
ZE=function(a,b,c,d,e,f){WE.call(this,a,b,c,d,e,1);this.D=b;this.B=b.j.durationMilliseconds||0;this.pc=null;this.I=f};
$E=function(a){cE.call(this,a);this.u=$p(this.j.playerVars||"")};
aF=function(){cE.apply(this,arguments)};
Aya=function(a,b,c,d){this.C=a;this.j=b;this.B=c;this.u=d};
bF=function(a,b,c,d,e){WE.call(this,a,b,c,d,e);var f=this;this.I=b;this.B=new g.K(function(){f.pm("load_timeout")},1E4);
g.J(this,this.B);this.D=new fu(this);g.J(this,this.D)};
cF=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.r(b);for(c=b.next();!c.done;c=b.next())if(!jv(a.Aa,c.value))return!1;return!0};
Bya=function(a){return null!=(null==a?void 0:a.durationMs)&&0<(null==a?void 0:a.durationMs)};
dF=function(a){return!!(a.ZW&&a.slot&&a.layout)};
Cya=function(a,b,c){hE.call(this,"ad-message",a,void 0,b,c)};
eF=function(a,b,c,d,e,f,h,l){WE.call(this,a,b,c,d,e);var m=this;this.B=b;this.V=b.j.durationMs||0;this.J=l;this.W=!1;this.I=this.D=0;this.Y=function(){var n=m.G.getProgressState().current;n<m.D?m.nm():n>m.I&&m.Oi()}};
Fya=function(a,b){if(a.J&&a.W){a.W=!1;var c=a.B.j;if(dF(c)){var d=c.slot;c=c.layout;b=Dya(b);a=g.r(a.J.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,h=c,l=b;fF(e.j(),f,h,l);Eya(e.j(),f)}}else g.Bu(Error("adMessageRenderer is not augmented on termination"))}};
Dya=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return"abandoned";default:return g.Bu(Error("Unexpected eventType for adNotify exit")),"abandoned"}};
g.gF=function(a,b){for(var c={},d=g.r(Object.keys(b)),e=d.next();!e.done;c={ZD:c.ZD},e=d.next())e=e.value,c.ZD=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.ZD}}(c));
return a};
hF=function(a,b,c,d){this.j=a;this.C=b;this.u=AE(c);this.B=d};
Gya=function(a){for(var b={},c=g.r(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)};
Hya=function(a,b,c,d){new hF(a,b,c,d)};
iF=function(a,b,c,d,e,f,h,l,m){WE.call(this,a,b,c,d,e,1);var n=this;this.cC=!0;this.J=m;this.B=b;this.D=f;this.W=new fu(this);g.J(this,this.W);this.I=new g.K(function(){n.pm("load_timeout")},1E4);
g.J(this,this.I);this.V=h};
Iya=function(a){if(a.V&&(a.G.S().experiments.fb("enable_topsoil_wta_for_halftime")||a.G.S().experiments.fb("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.S(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.S(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)}};
lF=function(a,b){if(null!==a.J){var c=Jya(a);a=g.r(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||(Kya(d,e,[],!1),Lya(d.B(),d.u),Mya(d.B(),d.u),Nya(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"}fF(d.B(),d.u,d.j,e);if(h){e=d.B();h=d.u;jF(e.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.r(e.je);for(f=e.next();!f.done;f=e.next())f.value.Sj(h);Eya(d.B(),
d.u)}d.Ja.get().G.S().K("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&kF(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}};
mF=function(a){return(a=a.G.getVideoData(2))?a.clientPlaybackNonce:""};
Jya=function(a){if(a=a.B.j.elementId)return a;g.S(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
Oya=function(a){function b(h,l){h=a.V_;var m=Object.assign({},{});m.FINAL=zE(nf("1"));m.SLOT_POS=zE(nf("0"));return CE(h,BE(m),l)}
function c(h){return null==h?{create:function(){return null}}:{create:function(l,m,n){var p=b(l,m);
m=a.aK(l,p);l=h(l,p,m,n);g.J(l,m);return l}}}
var d=c(function(h,l,m){return new ZE(a.G,h,l,m,a.Ix,a.Za)}),e=c(function(h,l,m){return new eF(a.G,h,l,m,a.Ix,a.Za,a.Mk,a.Rn)}),f=c(function(h,l,m){return new bF(a.G,h,l,m,a.Ix,a.Za)});
this.cV=new Aya({create:function(h,l){var m=CE(b(h,l),BE(nya(h)));l=a.aK(h,m);h=new iF(a.G,h,m,l,a.Ix,a.Za,a.daiEnabled,function(){return new Hya(a.Za,m,a.G,a.Uj)},a.Sn,a.yh);
g.J(h,l);return h}},d,e,f)};
nF=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b};
Pya=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{FV:new wo(b,c),YW:new rv(b,c-b,a.context,a.identifier,a.event,a.j)}};
oF=function(){this.j=[]};
pF=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]};
Qya=function(){this.j=new oF};
qF=function(a){this.j=a};
Rya=function(a){a=[a,a.C].filter(function(d){return!!d});
for(var b=g.r(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
Sya=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()};
Tya=function(a,b,c){a.j&&rF({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
Uya=function(a,b){a.j&&rF({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.jV}})};
Vya=function(a,b){rF({daiStateTrigger:{errorType:a,contentCpn:b}})};
rF=function(a){g.vr("adsClientStateChange",a)};
sF=function(a){this.G=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.Se=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
Xya=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.Se=!0,(a.G.K("send_csi_info_for_ad_to_video_killswitch")||Cw("_start",a.actionType))&&
Wya(a)))};
Wya=function(a){if(a.Se)if(a.G.K("web_csi_via_jspb")){var b=new Ep;g.E(b,21,Yya(a.B));g.E(b,7,4);var c=new Cp;g.E(c,8,2);wd(b,Cp,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));c=csa(a.actionType);a.adFormat&&!c&&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);Bw(b,a.actionType)}else b={adBreakType:Zya(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)),c=csa(a.actionType),a.adFormat&&!c&&(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),nw(b,a.actionType)};
Zya=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"}};
Yya=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.aza=function(a){return(a=$ya[a.toString()])?a:"LICENSE"};
tF=function(){var a=this;this.j=this.u=iaa;this.promise=new g.Sg(function(b,c){a.u=b;a.j=c})};
uF=function(){g.I.call(this);this.u=null;this.N=this.J=!1;this.D=new g.kf;g.J(this,this.D)};
vF=function(a){a=a.Zx();return 1>a.length?NaN:a.end(a.length-1)};
bza=function(a){!a.B&&gua()&&(a.C?a.C.then(function(){return bza(a)}):a.dg()||(a.B=a.Br()))};
cza=function(a,b,c){a.Vm()||a.getCurrentTime()>b||10<c||(a.play(),g.kq(function(){cza(a,a.getCurrentTime(),c+1)},500))};
dza=function(a,b){a.u&&a.u.equals(b)||(a.u&&a.u.dispose(),a.u=b)};
wF=function(a){return eua(a.Eg(),a.getCurrentTime())};
eza=function(a,b){if(0===a.Pi()||0<a.wk())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.Zx(),a.length||!c)?vz(a,b):c};
xF=function(a){a.dg()&&(fza&&Iq&&0<a.getCurrentTime()&&a.seekTo(0),a.hD(),a.load(),dza(a,null));delete a.C};
gza=function(a){var b=a.Eg();return 0<xz(b)&&a.getDuration()?b.end(b.length-1):0};
yF=function(a){switch(a.wk()){case 2:return"progressive.net.retryexhausted";case 3:return"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
g.zF=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
AF=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.zF(b,c)};
BF=function(a,b){return AF(a,a.state|b)};
CF=function(a,b){return AF(a,a.state&~b)};
DF=function(a,b,c){return AF(a,(a.state|b)&~c)};
g.V=function(a,b){return!!(a.state&b)};
g.EF=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.FF=function(a){return g.V(a,8)&&!g.V(a,2)&&!g.V(a,1024)};
GF=function(a){return a.Kc()&&!g.V(a,16)&&!g.V(a,32)};
g.HF=function(a){return g.V(a,1)&&!g.V(a,2)};
IF=function(a){return g.V(a,128)?-1:g.V(a,2)?0:g.V(a,64)?-1:g.V(a,1)&&!g.V(a,32)?3:g.V(a,8)?1:g.V(a,4)?2:-1};
JF=function(a,b,c,d,e,f,h,l){g.iu.call(this);this.Xg=a;this.G=b;this.u=d;this.J=this.u.u instanceof cE?this.u.u:null;this.j=null;this.W=!1;this.D=c;this.V=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.oa=0;this.ma=!1;this.vn=e;this.vu=f;this.Oq=h;this.Y=!1;this.daiEnabled=l};
hza=function(a){if(dE(a.G)){var b=a.G.getVideoData(2);b=a.u.N[b.Ac]||null;if(!b)return a.cm(),!0;(!a.j||a.j&&a.j.ad!==b)&&a.Nw(b)}else if(1===a.G.getPresentingPlayerType()&&a.j)return a.cm(),!0;return!1};
iza=function(a,b){a.D.au(a.u.j.j,b,a.GN(),a.HN(),a.isLiveStream())};
KF=function(a){var b=a.Xg,c=a.u.j;if(c instanceof Ev){if(b.N&&Fra(c)&&g.V(b.j.xb(1),64)){var d=1E3*b.j.getCurrentTime(1)||0;d!=c.start&&c.contains(d)&&c.deactivate()}b.B.has(c)?g.S(Error(c.toString()+" has already been seen")):(b.Pq.add(c),b.B.set(c,a),Fv(c)||b.j.Vd([c],1))}else g.S(Error("Should use AdCueRange instead of CueRange"));a.daiEnabled&&!a.u.I&&(jza(a,a.IN()),a.u.I=!0)};
jza=function(a,b){for(var c=LF(a),d=a.u.j.start,e=[],f=g.r(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=kza(h);e.push({externalVideoId:h.Fh(),originalMediaDurationMs:(1E3*h.u).toString(),trimmedMediaDurationMs:(parseInt(h.j.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.B.C=a.u.j.start;h.B.B=c;if(!lza(a,h,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+kza(p)},0);
Tya(a.vn,a.u.j.Ox(),b);Uya(a.vn,{cueIdentifier:a.u.C&&a.u.C.identifier,jV:e})};
kza=function(a){var b=1E3*a.u;return 0<parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10):b};
LF=function(a){var b=a.u.j.end;a=pF(a.vu,a.u.j.start,b);return Math.min(b,null===a?Infinity:a)};
lza=function(a,b,c,d){var e=a.Oq.create(b,BE(mya(a.u)),a.u.j.j);c=e.uN(c,d);g.ze(e);if(!c)return!1;a.u.N[c]=b;return!0};
NF=function(a,b){b=void 0===b?!1:b;a.W=!0;g.ze(a.j);a.D.Vv();var c=a.u.J;if(null!==c){var d=a.vn,e=a.u.C&&a.u.C.identifier,f=a.u.j.start,h=LF(a);d.j&&rF({driftRecoveryInfo:{contentCpn:d.u,cueIdentifier:e||void 0,driftRecoveryMs:c.toString(),breakDurationMs:Math.round(h-f).toString(),driftFromHeadMs:Math.round(1E3*d.B.wp()).toString()}});a.u.J=null}b||a.daiEnabled?MF(a.Xg,!0):a.V&&a.hL()&&a.Ay()?MF(a.Xg,!1,mza(a)):MF(a.Xg,!1);iza(a,!0)};
mza=function(a){if(a.ma)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Ua()/1E3)-a.oa;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
nza=function(a,b,c){this.j=a;this.u=b;this.B=c};
OF=function(){this.D=[];this.J=[];this.j=[];this.C=[];this.I=[];this.u=new Set;this.N=new Map};
PF=function(){OF.j||(OF.j=new OF);return OF.j};
oza=function(a,b,c){c=void 0===c?0:c;b.then(function(d){a.u.has(c)&&a.B&&a.B();var e=g.Lu(c),f=g.Ku(c);if(e&&f){var h;(null==d?0:null==(h=d.response)?0:h.trackingParams)&&g.Pu(a.client,e,f,[g.Eu(d.response.trackingParams)]);var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.Pu(a.client,e,f,[g.Eu(d.playerResponse.trackingParams)])}})};
pza=function(a,b){QF(a,g.Eu(b))};
QF=function(a,b,c,d){d=void 0===d?0:d;if(a.u.has(d))a.D.push([b,c]);else{var e=g.Lu(d);c=c||g.Ku(d);e&&c&&g.Pu(a.client,e,c,[b])}};
rza=function(a,b,c){c=void 0===c?{}:c;a.u.add(c.layer||0);a.B=function(){qza(a,b,c);var f=g.Ku(c.layer);if(f){for(var h=g.r(a.D),l=h.next();!l.done;l=h.next())l=l.value,QF(a,l[0],l[1]||f,c.layer);f=g.r(a.J);for(h=f.next();!h.done;h=f.next()){var m=h.value;h=void 0;h=void 0===h?0:h;l=g.Lu(h);var n=m[0]||g.Ku(h);if(l&&n){h=a.client;var p=m[1];m={cttAuthInfo:Mu(l),bk:l};g.Q("il_via_jspb")?(p=new Ap,p.Mh(l),n=n.getAsJspb(),wd(p,op,2,n),"UNDEFINED_CSN"==l?Ou("visualElementStateChanged",p,m):zqa(p,m,h)):
(n={csn:l,ve:n.getAsJson(),clientData:p},"UNDEFINED_CSN"==l?Ou("visualElementStateChanged",n,m):h?Zt("visualElementStateChanged",n,h,m):g.vr("visualElementStateChanged",n,m))}}}};
g.Lu(c.layer)||a.B();if(c.mN)for(var d=g.r(c.mN),e=d.next();!e.done;e=d.next())oza(a,e.value,c.layer);else g.S(Error("Delayed screen needs a data promise."))};
qza=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.O_?c.O_:c.layer;var e=g.Lu(d);d=g.Ku(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));var h,l=g.P("EVENT_ID");"UNDEFINED_CSN"===e&&l&&(h={servletData:{serializedServletEventId:l}});try{var m=Yqa(a.client,b,f,c.iN,c.cttAuthInfo,h,c.hka)}catch(n){Mqa(n,{zz:b,rootVe:d,parentVisualElement:void 0,Pja:e,Bka:f,iN:c.iN});g.S(n);return}Uqa(m,
b,c.layer,c.cttAuthInfo);if(b=e&&"UNDEFINED_CSN"!==e&&d){a:{b=g.r(Object.values(sza));for(f=b.next();!f.done;f=b.next())if(g.Lu(f.value)===e){b=!0;break a}b=!1}b=!b}b&&Zqa(a.client,e,d,!0);a.j[a.j.length-1]&&!a.j[a.j.length-1].csn&&(a.j[a.j.length-1].csn=m||"");nw({clientScreenNonce:m});Wu.getInstance().clear();d=g.Ku(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.Q("web_mark_root_visible")||g.Q("music_web_mark_root_visible"))&&g.Qu(m,d);a.u.delete(c.layer||0);a.B=void 0;e=g.r(a.N);for(m=e.next();!m.done;m=
e.next())b=g.r(m.value),m=b.next().value,b=b.next().value,b.has(c.layer)&&d&&QF(a,m,d,c.layer);for(c=0;c<a.C.length;c++){e=a.C[c];try{e()}catch(n){g.S(n)}}for(c=a.C.length=0;c<a.I.length;c++){e=a.I[c];try{e()}catch(n){g.S(n)}}};
RF=function(){this.j={};if(this.u=ela()){var a=g.zq("CONSISTENCY");a&&tza(this,{encryptedTokenJarContents:a})}};
tza=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},1E3*c);
a.u&&g.yq("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
SF=function(){var a=g.P("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.P("INNERTUBE_CLIENT_NAME")&&(this.localStorage=uza(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
uza=function(a){return void 0===a.localStorage?new ir("yt-client-location"):a.localStorage};
g.TF=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.P("INNERTUBE_CONTEXT");if(!d)return g.S(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Xe(d);g.Q("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.P("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||
1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.cr.getInstance();var h="USER_INTERFACE_THEME_LIGHT";g.dr(0,165)?h="USER_INTERFACE_THEME_DARK":g.dr(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.Q("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(h="USER_INTERFACE_THEME_DARK");f=f?h:hqa()||h;e.userInterfaceTheme=
f;if(!b){if(f=Ona())e.connectionType=f;g.Q("web_log_effective_connection_type")&&(f=Qna())&&(d.client.effectiveConnectionType=f)}var l;if(g.Q("web_log_memory_total_kbytes")&&(null==(l=g.C.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.C.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}m=g.bq(g.C.location.href);!g.Q("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo=
{graftUrl:g.C.location.href},g.Q("kevlar_woffle")&&Kna.j&&(e.mainAppWebInfo.pwaInstallabilityStatus=Kna.j.j?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=ar(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.Q("web_lr_app_quality_killswitch")&&(m=g.P("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.P("LIVING_ROOM_CERTIFICATION_SCOPE"))&&
(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.Q("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(D){}n=void 0}n&&(e.timeZone=n)}(n=Sp())?e.experimentsToken=n:delete e.experimentsToken;n=Tp();RF.j||(RF.j=new RF);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:Ne(RF.j.j)});!g.Q("web_prequest_context_killswitch")&&(n=g.P("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&
(d.request.externalPrequestContext=n);e=g.cr.getInstance();n=g.dr(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.Q("warm_op_csn_cleanup")?c&&(b=g.Lu())&&(d.clientScreenNonce=b):!b&&(b=g.Lu())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.La("yt.mdx.remote.remoteClient_"))d.remoteClient=a;g.Q("web_enable_client_location_service")&&SF.getInstance().setLocationOnInnerTubeContext(d);try{var p=hq(),
q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var t=g.r(Object.entries(p)),u=t.next();!u.done;u=t.next()){var x=g.r(u.value),y=x.next().value,z=x.next().value;p=y;q=z;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}}catch(D){g.S(D)}return d};
UF=function(){this.zR=!0};
VF=function(){UF.apply(this,arguments);this.Hs={}};
XF=function(){WF||(WF=new VF);return WF};
vza=function(a,b){b?a.Hs.Authorization="Bearer "+b:delete a.Hs.Authorization};
wza=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
xza=function(){var a=null;Jna().then(function(b){return a=b},function(b){return a=wza(b)});
return a};
yza=function(){var a=ah(1E3,"NO_BID");return Xg(jda([Jna(),a]).Li(wza),function(){return a.cancel()})};
zza=function(a){return a.Zc?g.dr(g.cr.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
YF=function(a){this.player=a;this.u=this.j=1};
$F=function(a,b,c,d){c=void 0===c?{}:c;var e=c.wx,f=c.Md;d=void 0===d?"":d;c=a.player.getVideoData(1);var h=a.player.S().El,l={AD_BLOCK:a.j++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:zza(a.player.S()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.wp(),LACT:xt(),LIVE_INDEX:e?a.u++:1,LIVE_TARGETING_CONTEXT:e&&e.context?e.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.Ya().xi().height,
P_W:a.player.Ya().xi().width,YT_REMOTE:h?h.join(","):""},m=Nka(Mka);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};gq(b)&&(d.sts="19144",(e=a.player.S().forcedExperiments)&&(d.forced_experiments=e));b=dq(g.yn(b,l),d);a.player.getVideoData();if(2!==b.split("?").length)return Vg(Error("Invalid AdBreakInfo URL"));if((d=null==c?void 0:c.oauthToken)&&fq()){var n=XF();vza(n,d)}n=a.player.im(n);a=Aza(a,b,l,c.isMdxPlayback);return g.ZF(n,a,"/youtubei/v1/player/ad_break")};
Dza=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=eq(b),f=Bza(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=Bza(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=Zp(hq(c)).split("&");var l=new Map;b.forEach(function(m){m=m.split("=");1<m.length&&l.set(m[0].toString(),decodeURIComponent(m[1].toString()))});
l.has("bid")&&(h.bid=l.get("bid"));h.params=[];Cza.forEach(function(m){l.has(m)&&(m={key:m,value:l.get(m)},h.params.push(m))});
a.adSignalsInfo=h}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;b=d.deviceParams.cosver;null!=b&&"cosver"!==b&&(a.client.osVersion=b);b=d.deviceParams.cplatform;null!=b&&"cplatform"!==b&&""!==b&&(a.client.platform=b);b=d.deviceParams.cmodel;null!=b&&"cmodel"!==b&&(a.client.deviceModel=b);b=d.deviceParams.cplayer;null!=b&&"cplayer"!==b&&(a.client.playerType=b);d=d.deviceParams.cbrand;null!=d&&"cbrand"!==d&&(a.client.deviceMake=d);a.user||(a.user=
{});a.user.lockedSafetyMode=!1};
Gza=function(a,b){var c=!1;if(""===b)return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";"!"===d[0]&&(d=d.substring(1),h="INACTIVE");d=d.split("-");3>d.length||(d[0]in Eza&&(f.clientName=Eza[d[0]]),d[1]in Fza&&(f.platform=Fza[d[1]]),f.applicationState=h,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
Aza=function(a,b,c,d){var e=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?Math.trunc(c.DRIFT_FROM_HEAD_MS):0,f=Hza.exec(b);f=null!=f&&2<=f.length?f[1]:"";var h=Iza.test(b),l=Jza.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=Kza.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=Lza.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=a.player.S();var q=kB(p.Y);p=p.K("embeds_web_enable_pem_domain_fix_for_ad_requests")?q:"www.youtube-nocookie.com"===q?"www.youtube.com":
q;q=g.TF(a.player.getVideoData(1).ma,!0);var t="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";Dza(q,b,t.toString(),a.player.S());var u={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19144,autonavState:zza(a.player.S())};d&&(d={},Gza(d,c.YT_REMOTE)&&(u.mdxContext=d));if(d=Mza.includes(p)?void 0:g.zq("PREF")){for(var x=d.split(RegExp("[:&]")),y=0,z=x.length;y<z;y++){var D=x[y].split("=");if(("SML"===
D[0].toUpperCase()||"GSML"===D[0].toUpperCase())&&1<D.length&&"TRUE"===D[1].toUpperCase()){q.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in Nza)for(d=d.split(RegExp("[:&]")),y=Nza.FLAG_AUTO_CAPTIONS_DEFAULT_ON,x="f"+(1+Math.floor(y/31)).toString(),y=1<<Math.floor(y%31),z=0,D=d.length;z<D;z++){var H=d[z].split("=");if(H[0]===x&&parseInt("0x"+H[1],16)&y){d=!0;break a}}d=!1}u.autoCaptionsDefaultOn=d}b=Oza.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(q.user.credentialTransferTokens=
[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:u};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,isProxyAdTagRequest:h,context:q,adSignalsInfoString:Zp(hq(t.toString())),overridePlaybackContext:b};l&&(f.videoId=l);c.LIVE_TARGETING_CONTEXT&&(f.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(f.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());e&&(f.driftFromHeadMs=e.toString());f.currentMediaTimeMs=
Math.round(1E3*a.player.getCurrentTime(1));return f};
aG=function(a,b,c,d,e,f){g.iu.call(this);this.I=a;this.u=b;this.D=c;this.C=d;this.j=e;this.B=f};
Pza=function(a,b){var c={isEmpty:!0,GO:!1,hn:[]};if(!b)return c;b&&b.trackingParams&&pza(PF(),b.trackingParams);if(b&&b.adThrottled)return c.GO=!0,c;b=b.playerAds;if(!b||!b.length)return c;b=b.map(function(e){return e.adPlacementRenderer}).filter(function(e){return e&&null!=e.renderer});
if(g.Yb(b))return c;if(0<a.j.j.end){var d=a.j.j.end.toString();b.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==e.kind&&"-1"==e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!=d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}c.hn=b;
c.isEmpty=!1;return c};
bG=function(){cE.apply(this,arguments)};
cG=function(a,b,c,d,e,f,h,l){JF.call(this,a,b,c,d,e,f,h,l);this.B=d.u;this.C=-1;this.I=null;this.N=Qza(this.IB())};
Rza=function(a){a.C++;var b=a.IB();b?(0<a.C&&a.D.FJ(),a.Nw(b)):NF(a)};
Qza=function(a){return a?Sza.some(function(b){return a instanceof b}):!1};
Tza=function(a){this.j=new nza(function(b){b=new JF(a.Xg,a.G,a.hN(),b,a.vn,a.vu,a.Oq,a.daiEnabled);KF(b);return b},function(b){return new aG(a.pF,a.Xg,a.G,a.Nq,b,a.vn)},function(b){b=new cG(a.Xg,a.G,a.hN(),b,a.vn,a.vu,a.Oq,a.daiEnabled);
KF(b);return b})};
Uza=function(a,b){rE.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.vr("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),sE(this,new aF(a.adStart.adMessageRenderer)));if(a.linearAds){var c=[];a=g.r(a.linearAds);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.instreamVideoAdRenderer){var e=b(d.instreamVideoAdRenderer);sE(this,e);c.push(e.u);d.instreamVideoAdRenderer.isCritical&&(this.u=1)}else d.adActionInterstitialRenderer?(d=new XE(d.adActionInterstitialRenderer),
sE(this,d)):d.adIntroRenderer&&(d=new $E(d.adIntroRenderer),sE(this,d),this.u=1);this.j.filter(function(f){return f instanceof qE}).forEach(function(f,h){f instanceof qE&&(h=new mE(h,c),f.B=h)})}}};
Wza=function(a,b){rE.call(this);sE(this,Vza(this,a.adVideoStart));var c=a.linearAd;b=c&&c.instreamVideoAdRenderer?b(c.instreamVideoAdRenderer):null;sE(this,b);(a=a.adVideoEnd)?a.adActionInterstitialRenderer?(this.u=1,a=new XE(a.adActionInterstitialRenderer)):a=null:a=null;sE(this,a)};
Vza=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.u=1,new XE(b.adActionInterstitialRenderer)):b.adMessageRenderer?(g.vr("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new aF(b.adMessageRenderer)):null};
Xza=function(a,b){this.B=new dya;this.j=a;this.u=b};
Yza=function(a){this.j=a};
Zza=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.j.create(e,f):null;return new hya(b,c,h,d)}catch(l){g.S(l)}};
$za=function(a){var b=new Yza(a.dV);return{FN:function(){return b}}};
dG=function(a){g.I.call(this);var b=this;this.u=a;this.j=null;g.Be(this,function(){return b.j=null});
var c=eu(a);if(c){var d=function(){b.j&&b.j(!!cu())};
this.u.addEventListener(c,d);g.Be(this,function(){b.u.removeEventListener(c,d)})}};
eG=function(a){g.I.call(this);this.j=a};
aAa=function(a){var b=window.document;return g.UB(a.S())?new dG(b):new eG(a)};
bAa=function(a){g.I.call(this);this.CT=new Sya(a.G,a.contentCpn,a.daiEnabled)};
cAa=function(a){fG=a&&a.data};
dAa=function(a){gG=a&&a.data};
eAa=function(a){hG=a&&a.data};
fAa=function(){iG=hG=gG=fG=null};
lG=function(a){g.I.call(this);var b=this;this.Vc=a;this.ue=new Map;this.j=new Map;jG(this,"commandExecutorCommand",function(c,d,e){b.yf(c.commands,d,e)});
kG(this,"commandExecutorCommand",function(c,d){gAa(b,c.commands,d)});
jG(this,"clickTrackingParams",function(){});
kG(this,"clickTrackingParams",function(){})};
hAa=function(a,b){jG(a,b.hm(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
iAa=function(a,b){kG(a,b.hm(),function(c,d,e){b.Hn(c,d,e)})};
jG=function(a,b,c){a.isDisposed();a.ue.get(b)&&g.S(Error("Extension name "+b+" already registered"));a.ue.set(b,c)};
kG=function(a,b,c){a.isDisposed();a.j.get(b)&&g.S(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
gAa=function(a,b,c){b=void 0===b?[]:b;a.isDisposed();var d=[],e=[],f=g.r(b);for(b=f.next();!b.done;b=f.next())b=b.value,b.hasOwnProperty("pingingEndpoint")||b.hasOwnProperty("adPingingEndpoint")?d.push(b):e.push(b);d=g.r(d);for(b=d.next();!b.done;b=d.next())mG(a,b.value,c);e=g.r(e);for(b=e.next();!b.done;b=e.next())mG(a,b.value,c)};
jAa=function(a,b){a.Vc.get().La("innertubeCommand",{openPopupAction:b})};
kAa=function(a,b){a.Vc.get().La("innertubeCommand",{confirmDialogEndpoint:b})};
mG=function(a,b,c,d){a.isDisposed();b.loggingUrls&&lAa(a,"loggingUrls",b.loggingUrls,c);b=g.r(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;"openPopupAction"===e?jAa(a,f):"confirmDialogEndpoint"===e?kAa(a,f):mAa.hasOwnProperty(e)||lAa(a,e,f,c,d)}};
nAa=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.ue.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.S(f)}else b=new g.Ar("Unhandled field",b),g.Bu(b)};
lAa=function(a,b,c,d,e){(a=a.j.get(b))||new g.Ar("Unhandled field",b);try{a(c,d,e)}catch(f){g.S(f)}};
pAa=function(a,b,c,d){for(var e=!1,f=g.r(b.ij.entries()),h=f.next();!h.done;h=f.next())h=g.r(h.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===h.slotType&&"core"===h.Xa&&(e=!0);e?(d=oAa(b,d))?c.YG(d):T("No triggering layout ID available when attempting to mute."):g.Qg(function(){a.cm()})};
oAa=function(a,b){if(b)return b;a=g.r(a.ij.entries());for(b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;if("SLOT_TYPE_IN_PLAYER"===b.slotType&&"core"===b.Xa)return c.layoutId}};
qAa=function(a){var b=new EE(a.qn),c=new FE(b);return{eW:function(){return b},
HG:function(){return c}}};
nG=function(a){sF.call(this,a)};
wya=function(a){switch(a){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen";
case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "skip":return"skip";case "start":case "unmuted_start":return"start";
case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}};
rAa=function(a){this.G=a;var b=nk(vn),c=a.Ce();b.B!==c&&((b.B=c)||cja(b));a.S().K("active_view_stop_starting_measurement_on_loaded")&&Rj(sk().featureSet,"ssmol",1)};
qya=function(a){oja(nk(vn),a)};
sAa=function(a){g.I.call(this);this.j=a;this.u=new rAa(a.G)};
tAa=function(a){return function(){return a.j.G.S().K("html5_disable_csi_for_bulleit")?new nG(a.j.G):new sF(a.j.G)}};
uAa=function(a){return function(b,c){return new rya(b,a.u,c,a.j.G,a.j.Uj,a.j.daiEnabled)}};
oG=function(a,b,c,d,e){g.iu.call(this);var f=this;this.j=b;this.va=null;this.Ta=c;this.eb=e.yh;this.Sa=e.eq;this.u=null;this.B=new Map;c=this.j.S().experiments;var h=qAa({qn:b.getVideoData(1)}),l=new sAa({Uj:h.HG(),G:b,daiEnabled:!1});g.J(this,l);this.Pq=new Set;this.WB=-1;this.V=[];this.W=new Map;this.I=new Map;this.J=new Set;this.C=new fu(this);g.J(this,this.C);this.D=new fu(this);g.J(this,this.D);this.Y=this.Pa=this.oa=!1;this.N=g.UB(b.S());this.kb=d;b=new bAa({contentCpn:this.j.getVideoData(1).clientPlaybackNonce,
Oja:this,daiEnabled:!1,G:this.j});g.J(this,b);this.bb=b.CT;this.Ga=(new Qya).j;var m=$ba(BE(AE(this.j)));e=new Oya({Za:this,Ix:lE(),Uj:h.HG(),G:this.j,V_:m,aK:uAa(l),daiEnabled:!1,Sn:e.Sn,yh:this.eb,Mk:e.Mk,Rn:e.Rn});this.ma=(new Tza({Nq:this.Ta,Oq:e.cV,pF:a,Xg:this,Ix:lE(),hN:tAa(l),vn:this.bb,vu:this.Ga,G:this.j,Rka:m,aK:function(n){return uAa(l)(n,m)},
daiEnabled:!1})).EN();this.Da=$za({dV:new Xza(c,function(n){return f.I.has(n)?f.I.get(n):null})}).FN();
this.Ia=aAa(this.j);g.J(this,this.Ia);this.qb=$B(this.j.S())?this.j.S().experiments.fb("align_ad_to_video_player_lifecycle_for_bulleit_living_room"):this.j.S().experiments.fb("align_ad_to_video_player_lifecycle_for_bulleit")};
AAa=function(a,b){if(a.j.getVideoData(1).Yq||g.P("SERVED_VIA_SPF_HISTORY"))pG(a);else{if(eE(a.j)){var c=vAa(a.j);c.addEventListener("updateKevlarOrC3Companion",cAa);c.addEventListener("updateEngagementPanelAction",dAa);c.addEventListener("changeEngagementPanelVisibility",eAa);window.addEventListener("yt-navigate-start",fAa)}a.C.P(a.j,"applicationplayerstatechange",a.nY);a.C.P(a.j,g.Cv("ad"),a.kI,a);a.C.P(a.j,g.Dv("ad"),a.DY,a);a.C.P(a.j,"aduxclicked",a.bY);a.C.P(a.j,"videodatachange",a.E_);b=wAa(b);
b=xAa(a,b);b=yAa(a,b);0<b.length&&zAa(a,b);g.Qg(a.q1,a)}};
wAa=function(a){return a.filter(function(b){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind||null)?(T("Tries to extract CuePoint triggered AdPlacementRenderer."),!1):!0})};
xAa=function(a,b){a.W=new Map;return b.filter(function(c){return"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)&&c.elementId?(a.W.set(c.elementId,c),!1):!0})};
yAa=function(a,b){a.I=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.I.set(c.hostElementId,c),!1):!0})};
BAa=function(a,b){return b.every(function(c){c=a.B.get(c);return null==c?(g.S(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof aG?!1:c instanceof JF?!c.Jr():!0})};
pG=function(a){var b=CAa(a);if(0<b.length){var c=g.eA(a.j.S().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.N&&g.oB(a.j.S())?(c=new g.K(function(){DAa(a,b)},c),g.J(a,c),c.start()):g.Qg(function(){DAa(a,b)})}};
EAa=function(a,b){if(!b)return{};(a=!!a.u&&a.u||null)?(a=a.j,b=a.ad.vy()?LE(a.j,b):{}):b={};return b};
CAa=function(a){for(var b=FAa(a),c=g.r(b),d=c.next();!d.done;d=c.next())a.Pq.delete(d.value);return b};
FAa=function(a){var b=[];a=g.r(a.Pq);for(var c=a.next();!c.done;c=a.next())c=c.value,Fv(c)&&b.push(c);return b};
GAa=function(a,b){var c=null;c=void 0===c?null:c;var d=a.Da,e=d.create;var f=1E3*a.j.getDuration(1);f=new rra(f,1E3*a.j.getCurrentTime(1)||0,!1,a.j.S().experiments.fb("html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.V.length,c);a.V=a.V.concat(b);return b};
DAa=function(a,b){if(!a.isDisposed()){b=g.r(b);for(var c=b.next();!c.done;c=b.next())a.kI(c.value)}};
zAa=function(a,b){b=GAa(a,b);0==b.length||b.map(function(c){return a.ma.create(c)})};
HAa=function(a){a.oa||(a.D.P(a.j,"presentingplayerstatechange",a.DT),a.D.P(a.j,"internalAbandon",a.PX),a.D.P(a.j,"progresssync",a.H_),a.D.P(a.j,"onVolumeChange",a.I_),a.D.P(a.Ia,"fullscreentoggled",a.MY),a.oa=!0);g.N(a.j.getRootNode(),"ad-showing");g.N(a.j.getRootNode(),"ad-interrupting");a.j.S().experiments.fb("enable_html5_teal_ad_badge")&&eE(a.j)&&g.N(a.j.getRootNode(),"ad-teal-design");a.j.cueVideoByPlayerVars({videoId:"workaround"},2)};
MF=function(a,b,c){var d=!!a.u&&a.u||null,e=d&&d.Jr()&&(dE(a.j)||!1);d=b&&d&&d.reset()||null;a.u&&IAa(a,a.u);a.u=null;a.WB=-1;e&&JAa(a,c);a.Y||a.Sa.xr();b&&d&&(d.gL().B=!1,KF(d))};
JAa=function(a,b){g.hu(a.D);a.oa=!1;g.go(a.j.getRootNode(),"ad-showing");a.qb?(a.Y||a.Sa.xr(),KAa(a),a.j.cueVideoByPlayerVars({},2)):(a.j.cueVideoByPlayerVars({},2),KAa(a));g.go(a.j.getRootNode(),"ad-interrupting");a.j.S().experiments.fb("enable_html5_teal_ad_badge")&&g.go(a.j.getRootNode(),"ad-teal-design");b&&b(a.j)};
KAa=function(a){if(a.Pa)!a.N&&g.oB(a.j.S())&&a.j.ao();else if(a.j.ao(),!a.N){var b=a.j.xb(1);g.V(b,4)&&!g.V(b,2)&&a.j.playVideo()}};
IAa=function(a,b){a=a.B;for(var c=g.r(a),d=c.next();!d.done;d=c.next()){d=g.r(d.value);var e=d.next().value;if(d.next().value==b){a.delete(e);break}}g.ze(b)};
qG=function(a){g.I.call(this);this.u=a};
rG=function(a){qG.call(this,!0);this.j=a};
LAa=function(a,b){function c(f){return{toString:f}}
var d={},e=a.getVideoData(1);d.CPN=c(function(){return e&&e.clientPlaybackNonce||null});
d.ASR=c(function(){return e&&e.xl||null});
d.EI=c(function(){return e&&e.eventId||null});
a.S().K("get_ad_cpn_from_video_data_on_html5")?d.AD_CPN=c(function(){var f;return(null==(f=a.getVideoData(2))?void 0:f.clientPlaybackNonce)||""}):d.AD_CPN=c(function(){return b.yB()});
d.AD_MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(2))).toString()});
d.MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1))).toString()});
d.P_H=c(function(){return a.getPlayerSize().height.toString()});
d.PV_H=d.P_H;d.P_W=c(function(){return a.getPlayerSize().width.toString()});
d.PV_W=d.P_W;d.CONN="0";d.WT=c(function(){return Date.now().toString()});
d.LACT=c(function(){return xt().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
MAa=function(a,b){g.I.call(this);var c=this;this.B=[];this.J=!1;this.u=0;this.D=this.I=this.C=!1;this.W=null;var d=(0,g.Sa)(a,b);this.j=new g.K(function(){return d(c.W)},300);
g.J(this,this.j);this.V=this.N=Infinity};
NAa=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.B.includes(d.identifier))return!0}return!1};
sG=function(){var a="ytp-id-"+OAa.toString();OAa++;return a};
g.tG=function(a){g.I.call(this);this.Zb={};this.Ke={};this.element=this.createElement(a)};
uG=function(a,b,c,d){if("{{"===d.substr(0,2))a.Ke[d]=[b,c];else return d};
PAa=function(a,b){var c=[];if(!b)return c;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,null!=d){var e=d.nodeType;1===e||3===e?c.push(d):d&&"string"===typeof d.F?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.zg("BR"));c.push(g.Ag(f))}):c.push(g.Ag(d))}return c};
vG=function(a,b,c,d){if("child"===c){g.Bg(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.F?[d]:d;c=PAa(a,e);c=g.r(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.al(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Ef(g.Gf(a))),b.setAttribute(c,a))};
g.W=function(a){g.tG.call(this,a);this.ob=!0;this.oa=!1;this.listeners=[]};
g.wG=function(a,b){b?a.show():a.hide()};
g.xG=function(a){g.W.call(this,a);this.Sa=new g.iu;g.J(this,this.Sa)};
yG=function(a,b,c,d,e,f,h,l){l=void 0===l?null:l;e||"ad-message"===d||"ad-text"===d||g.Bu(new g.Ar("The UI component has undefined layoutId.",{componentType:d}));g.xG.call(this,c);this.api=a;this.Za=b;this.macros={};this.componentType=d;this.J=null;this.kb=l;this.layoutId=e;this.j=f;this.Ua=h;this.Ta=null;this.iJ=new rG(this.element);g.J(this,this.iJ);this.eb=this.P(this.element,"click",this.onClick);this.ma=[];this.Y=new MAa(this.onClick,this);g.J(this,this.Y);this.qb=!1;this.V=null};
zG=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.Bu(Error("Got null or undefined adText object")),"";var c=g.ig(a.text);if(!a.isTemplated)return c;if(null==b)return g.Bu(Error("Missing required parameters for a templated message")),c;a=g.r(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.r(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
QAa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.Yb(a.thumbnails)||null==a.thumbnails[0].url)?"":g.ig(a.thumbnails[0].url)};
RAa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.Yb(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.cg(0,0):new g.cg(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
SAa=function(){return{F:"svg",T:{"enable-background":"new 0 0 24 24",height:"48",viewBox:"0 0 24 24",width:"48"},R:[{F:"path",T:{d:"M22,20h-8v-1h7V5H3v3H2V4h20V20z M2,17.32V20h2.73C4.73,18.52,3.51,17.32,2,17.32z M2,13.75v1.79c2.51,0,4.55,2,4.55,4.46 h1.82C8.36,16.55,5.52,13.75,2,13.75z M2,10.18v1.79c4.52,0,8.18,3.6,8.18,8.03H12C12,14.57,7.52,10.18,2,10.18z",fill:"white"}}]}};
g.TAa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,T:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
AG=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",T:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.BG=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},R:[{F:"path",T:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.CG=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},R:[{F:"path",T:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
UAa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},R:[{F:"path",T:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{F:"path",T:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
VAa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},R:[{F:"path",Jb:!0,T:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
WAa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},R:[{F:"path",Jb:!0,T:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.DG=function(){return{F:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},R:[{F:"path",T:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
XAa=function(){return{F:"svg",T:{height:"100%",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",T:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
YAa=function(){return{F:"svg",T:{viewBox:"0 0 24 24"},R:[{F:"path",T:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",T:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
ZAa=function(){return{F:"svg",T:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},R:[{F:"path",T:{d:"M0 0h48v48H0z",fill:"none"}},{F:"path",T:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
$Aa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{d:"m 17,23 h 2 V 17 H 17 Z 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 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
g.EG=function(){return{F:"svg",T:{viewBox:"0 0 24 24"},R:[{F:"path",T:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",T:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
FG=function(){return{F:"svg",T:{height:"100%",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",T:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
aBa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},R:[{F:"path",Jb:!0,T:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
GG=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.HG=function(){return{F:"svg",T:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},R:[{F:"path",T:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
bBa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
cBa=function(){return{F:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},R:[{F:"path",L:"ytp-svg-fill",T:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}};
dBa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,T:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
IG=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
eBa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.JG=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
g.KG=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,T:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
g.fBa=function(){return{F:"svg",T:{height:"100%",viewBox:"0 0 16 16",width:"100%"},R:[{F:"path",T:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}};
gBa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
hBa=function(){return{F:"svg",T:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},R:[{F:"path",T:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M5,12v22h38V12H5z M15.21,27.29l-1.41,1.41L8.09,23l5.71-5.71l1.41,1.41L10.91,23  L15.21,27.29z M34.21,28.71l-1.41-1.41L37.09,23l-4.29-4.29l1.41-1.41L39.91,23L34.21,28.71z",fill:"white"}}]}};
LG=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{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"}}]}};
MG=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{F:"svg",T:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},R:[{F:"path",T:{d:"M0 0h48v48H0z",fill:"none"}},{F:"path",T:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]};case "CHECK_BOX":return{F:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},R:[{F:"path",T:{d:"M0 0h24v24H0z",fill:"none"}},
{F:"path",T:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{F:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},R:[{F:"path",T:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{F:"path",T:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.DG();case "INFO_OUTLINE":return ZAa();case "REMOVE_CIRCLE":return{F:"svg",
T:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},R:[{F:"path",T:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",T:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return GG();case "LIKE":return g.EG();case "DISLIKE":return YAa();default:return g.Bu(new g.Ar("Unexpected icon:",a)),null}};
NG=function(a,b,c,d,e,f,h,l,m){f=void 0===f?[]:f;l=void 0===l?!1:l;f={F:"button",Ba:["ytp-ad-button"].concat(f)};null!=m&&(f.T={tabindex:m});yG.call(this,a,b,f,void 0===h?"button":h,c,d,e);this.u=this.B=this.C=null;this.D=l;this.hide()};
iBa=function(a){var b=null;null!=a.u&&(b=[a.u.serviceEndpoint,a.u.navigationEndpoint].filter(function(c){return null!=c}),a.u.command&&(b=b.concat(a.u.command)));
return b||[]};
OG=function(){g.I.call(this);var a=this;this.j=new Map;this.u=Ipa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.Gs(b[c])})};
jBa=function(){null==PG&&(PG=new OG);return PG};
QG=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=kBa(a))){b=yg("SPAN",null,b);break a}b=g.Ag(a)}return b}var c=[];if(a.runs)for(var d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(lBa(e,b))}return 1==c.length?c[0]:yg("SPAN",null,c)};
lBa=function(a,b){var c=null,d=a.text;b&&(d=kBa(d)||d);a.bold&&(c=yg("B",null,c||d));a.italics&&(c=yg("I",null,c||d));a.strikethrough&&(c=yg("STRIKE",null,c||d));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(b=a.navigationEndpoint.urlEndpoint,c=yg("A",null,c||d),g.Uf(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),jBa().register(c,a),g.N(c,"ytp-ad-has-logging-urls"));
return c||yg("SPAN",null,d)};
kBa=function(a){a=a.split(/(?:\r\n|\r|\n)/g);if(1<a.length){for(var b=[a[0]],c=1;c<a.length;c++)b.push(yg("BR")),b.push(a[c]);return b}return null};
RG=function(a,b,c,d,e,f,h,l,m){h=void 0===h?!1:h;l=void 0===l?[]:l;yG.call(this,a,b,{F:"span",Ba:["ytp-ad-hover-text-button"].concat(l)},void 0===m?"ad-hover-text-button":m,c,d,e);this.button=this.B=null;this.I=h;this.D=f;this.hide()};
SG=function(a){return a&&a.thumbnails&&!g.Yb(a.thumbnails||null)&&a.thumbnails[0].url?g.ig(a.thumbnails[0].url):""};
TG=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;yG.call(this,a,b,{F:"img",L:"ytp-ad-image"},"ad-image",c,d,e,void 0===f?null:f);this.u=h;this.hide()};
UG=function(a,b,c,d,e,f,h){f=void 0===f?[]:f;yG.call(this,a,b,{F:"div",Ba:["ytp-ad-confirm-dialog-background"],R:[{F:"div",L:"ytp-ad-confirm-dialog-container",R:[{F:"div",Ba:["ytp-ad-confirm-dialog"].concat(f),T:{role:"dialog",tabindex:"-1"},R:[{F:"div",L:"ytp-ad-confirm-dialog-title",Z:"{{title}}"},{F:"div",L:"ytp-ad-confirm-dialog-messages"},{F:"div",L:"ytp-ad-confirm-dialog-confirm-container",R:[{F:"button",L:"ytp-ad-confirm-dialog-cancel-button",Z:"{{cancelLabel}}"},{F:"button",L:"ytp-ad-confirm-dialog-confirm-button",
Z:"{{confirmLabel}}"}]}]}]},{F:"button",Ba:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],R:[{F:"span",L:"ytp-ad-button-icon",R:[g.DG()]}]}]},void 0===h?"confirm-dialog":h,c,d,e);this.N=this.ya("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.ya("ytp-ad-confirm-dialog-cancel-button");this.I=this.ya("ytp-ad-confirm-dialog-confirm-button");this.W=this.ya("ytp-ad-confirm-dialog-messages");this.C=null;this.u=new fu;g.J(this,this.u);this.B=null;this.hide()};
mBa=function(a,b){if(b.title){var c=g.Hv(b.title);a.Ha("title",c)}if(b.dialogMessages){c=g.r(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=QG(d.value),a.W.appendChild(d)}b.cancelLabel&&(c=g.Hv(b.cancelLabel),a.Ha("cancelLabel",c),a.u.P(a.D,"click",function(e){return a.DE(e)}));
b.confirmLabel&&(b=g.Hv(b.confirmLabel),a.Ha("confirmLabel",b),a.u.P(a.I,"click",function(e){return a.iI(e)}));
a.u.P(a.N,"click",function(e){return a.hI(e)})};
VG=function(a,b,c,d,e,f,h){f=void 0===f?[]:f;h=void 0===h?"toggle-button":h;var l=gE("ytp-ad-toggle-button-input");yG.call(this,a,b,{F:"div",Ba:["ytp-ad-toggle-button"].concat(f),R:[{F:"label",L:"ytp-ad-toggle-button-label",T:{"for":l},R:[{F:"span",L:"ytp-ad-toggle-button-icon",T:{role:"button","aria-label":"{{tooltipText}}"},R:[{F:"span",L:"ytp-ad-toggle-button-untoggled-icon",Z:"{{untoggledIconTemplateSpec}}"},{F:"span",L:"ytp-ad-toggle-button-toggled-icon",Z:"{{toggledIconTemplateSpec}}"}]},{F:"input",
L:"ytp-ad-toggle-button-input",T:{id:l,type:"checkbox"}},{F:"span",L:"ytp-ad-toggle-button-text",Z:"{{buttonText}}"},{F:"span",L:"ytp-ad-toggle-button-tooltip",Z:"{{tooltipText}}"}]}]},h,c,d,e);this.C=this.ya("ytp-ad-toggle-button");this.u=this.ya("ytp-ad-toggle-button-input");this.ya("ytp-ad-toggle-button-label");this.W=this.ya("ytp-ad-toggle-button-icon");this.I=this.ya("ytp-ad-toggle-button-untoggled-icon");this.D=this.ya("ytp-ad-toggle-button-toggled-icon");this.va=this.ya("ytp-ad-toggle-button-text");
this.B=null;this.N=!1;this.hide()};
WG=function(a){a.N&&(a.isToggled()?(g.ml(a.I,!1),g.ml(a.D,!0)):(g.ml(a.I,!0),g.ml(a.D,!1)))};
nBa=function(a,b){var c=null;a.B&&(c=(b?[a.B.defaultServiceEndpoint,a.B.defaultNavigationEndpoint]:[a.B.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
XG=function(a){fu.call(this);this.j=a;this.P(this.j,"onAdUxUpdate",this.N)};
YG=function(a,b,c,d,e){yG.call(this,a,b,{F:"div",L:"ytp-ad-feedback-dialog-background",R:[{F:"div",L:"ytp-ad-feedback-dialog-container",R:[{F:"div",L:"ytp-ad-feedback-dialog-form",T:{role:"dialog",tabindex:"-1"},R:[{F:"div",L:"ytp-ad-feedback-dialog-title",R:[{F:"span",Z:"{{title}}"}]},{F:"span",L:"ytp-ad-info-dialog-feedback-options-title",Z:"{{reasonsTitle}}"},{F:"div",L:"ytp-ad-info-dialog-feedback-options"},{F:"div",L:"ytp-ad-feedback-dialog-confirm-container",R:[{F:"button",L:"ytp-ad-feedback-dialog-cancel-button",
Z:"{{cancelLabel}}"},{F:"button",L:"ytp-ad-feedback-dialog-confirm-button",Z:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d,e);this.D=[];this.u=null;this.I=this.ya("ytp-ad-feedback-dialog-cancel-button");this.N=this.ya("ytp-ad-feedback-dialog-confirm-button");this.W=this.ya("ytp-ad-info-dialog-feedback-options");this.va=this.ya("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
rBa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.u=new NG(a.api,a.Za,a.layoutId,a.j,a.Ua,["ytp-ad-feedback-dialog-close-button"],"button"),g.J(a,a.u),a.u.init(gE("button"),c,a.macros),a.u.Ma("click",a.GP,a),a.u.xa(a.element));b.title&&(c=g.Hv(b.title),a.Ha("title",c));b.reasonsTitle&&(c=g.Hv(b.reasonsTitle),a.Ha("reasonsTitle",c));b.reasons&&oBa(a,b.reasons);b.cancelLabel&&(c=g.Hv(b.cancelLabel),a.Ha("cancelLabel",c),g.ht(a.I,"click",function(){return a.GP()}));
b.confirmLabel&&(c=g.Hv(b.confirmLabel),a.Ha("confirmLabel",c),g.ht(a.N,"click",function(){return pBa(a)}));
b.undoRenderer&&qBa(a,b.undoRenderer)};
oBa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;null==c?g.Bu(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?g.Bu(Error("AdFeedbackReason.endpoint was not set.")):(c=new sBa(c,d),g.J(a,c),a.W.appendChild(c.j.element),a.D.push(c)))}};
qBa=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new NG(a.api,a.Za,a.layoutId,a.j,a.Ua,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.J(a,a.B),a.B.init(gE("ad-feedback-undo-mute-button"),b,a.macros),a.B.Ma("click",a.D_,a),a.B.xa(a.va)):g.Bu(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
pBa=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(b=b[0].u,a.api.S().K("enable_macro_substitution_on_html5")?a.layoutId?a.Ua.executeCommand(b,a.layoutId):g.S(Error("Missing layoutId for ad feedback dialog.")):ZG(a.Ua,b,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.X("a"),a.hide())};
sBa=function(a,b){this.u=b;this.j=new g.xG({F:"label",L:"ytp-ad-feedback-dialog-reason-label",R:[{F:"input",L:"ytp-ad-feedback-dialog-reason-input",T:{type:"radio",name:"feedback-reason-group"}},{F:"span",L:"ytp-ad-feedback-dialog-reason-text",Z:g.Hv(a)}]});this.B=this.j.ya("ytp-ad-feedback-dialog-reason-input")};
$G=function(a,b,c,d,e){UG.call(this,a,b,c,d,e,[],"ad-mute-confirm-dialog")};
aH=function(a,b,c,d,e,f){yG.call(this,a,b,{F:"div",L:"ytp-ad-info-dialog-background",R:[{F:"div",L:"ytp-ad-info-dialog-container",R:[{F:"div",L:"ytp-ad-info-dialog-form",T:{role:"dialog",tabindex:"-1"},R:[{F:"div",L:"ytp-ad-info-dialog-title",Z:"{{title}}"},{F:"ul",L:"ytp-ad-info-dialog-ad-reasons"},{F:"div",L:"ytp-ad-info-dialog-message"},{F:"div",L:"ytp-ad-info-dialog-mute-container"},{F:"div",L:"ytp-ad-info-dialog-confirm-container",R:[{F:"button",L:"ytp-ad-info-dialog-confirm-button",Z:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d,e);this.u=this.B=null;this.N=this.ya("ytp-ad-info-dialog-confirm-button");this.Pa=this.ya("ytp-ad-info-dialog-mute-container");this.Ia=this.ya("ytp-ad-info-dialog-message");this.Da=this.ya("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.va=f;this.I=null;this.Ga=!1;this.W=null;this.hide()};
tBa=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new YG(a.api,a.Za,a.layoutId,a.j,a.Ua),g.J(a,a.B),a.B.init(gE("ad-feedback-dialog"),b,a.macros),a.B.xa(a.va),a.B.subscribe("a",function(){return a.X("c")})};
uBa=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new $G(a.api,a.Za,a.layoutId,a.j,a.Ua),g.J(a,a.D),a.D.init(gE("ad-mute-confirm-dialog"),b,a.macros),a.D.xa(a.va),a.D.subscribe("b",function(){return a.X("c")})};
vBa=function(a){a.u&&a.u.Ma("click",a.tL,a);g.ht(a.N,"click",function(){return a.tL()})};
bH=function(a,b,c,d,e,f,h){RG.call(this,a,b,c,d,e,void 0===h?!0:h,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.u=null;this.C=f;this.hide()};
wBa=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.S(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.u=new aH(a.api,a.Za,a.layoutId,a.j,a.Ua,a.C),g.J(a,a.u),a.u.init(gE("ad-info-dialog"),b,c),a.u.xa(a.C),a.u.subscribe("d",function(){return a.X("f")}),a.u.subscribe("c",function(){return a.X("e")}))};
yBa=function(a,b,c){null==a.button?g.S(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.N(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null)?(wBa(a,b,c),a.button.Ma("click",function(){a.u&&!a.u.ob&&(a.u.show(),xBa(a))})):a.button.Ma("click",function(){return xBa(a)}))};
xBa=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
cH=function(a,b,c,d,e,f,h){yG.call(this,a,b,{F:"div",L:"ytp-ad-text"},void 0===h?"ad-text":h,c,d,e,void 0===f?null:f);this.u=null;this.hide()};
dH=function(a,b){b&&g.Gg(a.element,zG(a.u,b))};
eH=function(a,b,c,d,e,f,h,l){yG.call(this,a,b,c,d,e,f,h);this.u=l;g.J(this,this.u);this.Da=this.D=-1};
fH=function(a){a.u&&-1===a.D&&(a.D=a.u.subscribe("h",a.fq,a),a.Da=a.u.subscribe("g",a.Bs,a),a.fq())};
gH=function(a){null!=a.u&&-1!==a.D&&(a.u.wg(a.D),a.u.wg(a.Da),a.Da=-1,a.D=-1)};
g.hH=function(a,b,c,d,e,f){g.I.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=void 0===d?b:d;this.j=f;this.u=e;this.delay=new g.K(this.MD,0,this);g.J(this,this.delay)};
iH=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
jH=function(a,b,c,d,e,f,h){eH.call(this,a,b,{F:"div",L:"ytp-ad-preview-slot"},"ad-preview",c,d,e,f);var l=this;this.Ia=-1;this.B=new g.xG({F:"span",L:"ytp-ad-preview-container"});g.J(this,this.B);this.C=new cH(this.api,this.Za,this.layoutId,this.j,this.Ua,"ytp-ad-preview-text");g.J(this,this.C);this.C.xa(this.B.element);this.N=new g.xG({F:"span",L:"ytp-ad-preview-image"});g.J(this,this.N);this.I=new TG(this.api,this.Za,this.layoutId,this.j,this.Ua);g.J(this,this.I);this.I.xa(this.N.element);this.N.xa(this.B.element);
this.B.xa(this.element);this.W=new g.hH(this.B,400,!1,100,function(){return l.hide()});
g.J(this,this.W);this.va=0;this.Ga=!1;this.Pa=h;this.hide()};
kH=function(a){a.W.show(100);a.show()};
lH=function(a,b,c,d,e,f){eH.call(this,a,b,{F:"div",Ba:["ytp-flyout-cta","ytp-flyout-cta-inactive"],R:[{F:"div",L:"ytp-flyout-cta-icon-container"},{F:"div",L:"ytp-flyout-cta-body",R:[{F:"div",L:"ytp-flyout-cta-text-container",R:[{F:"div",L:"ytp-flyout-cta-headline-container"},{F:"div",L:"ytp-flyout-cta-description-container"}]},{F:"div",L:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e,f);this.W=new TG(this.api,this.Za,this.layoutId,this.j,this.Ua,"ytp-flyout-cta-icon");g.J(this,this.W);
this.W.xa(this.ya("ytp-flyout-cta-icon-container"));this.N=new cH(this.api,this.Za,this.layoutId,this.j,this.Ua,"ytp-flyout-cta-headline");g.J(this,this.N);this.N.xa(this.ya("ytp-flyout-cta-headline-container"));this.I=new cH(this.api,this.Za,this.layoutId,this.j,this.Ua,"ytp-flyout-cta-description");g.J(this,this.I);this.I.xa(this.ya("ytp-flyout-cta-description-container"));this.B=new NG(this.api,this.Za,this.layoutId,this.j,this.Ua,["ytp-flyout-cta-action-button"]);g.J(this,this.B);this.B.xa(this.ya("ytp-flyout-cta-action-button-container"));
this.C=null;this.va=0;this.hide()};
mH=function(a,b,c,d,e,f){yG.call(this,a,b,{F:"div",L:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,e,void 0===f?null:f);var h=this;this.u=null;this.C=new VG(this.api,this.Za,this.layoutId,this.j,this.Ua,["ytp-ad-instream-user-sentiment-like-button"]);g.J(this,this.C);this.C.xa(this.element);this.B=new VG(this.api,this.Za,this.layoutId,this.j,this.Ua,["ytp-ad-instream-user-sentiment-dislike-button"]);g.J(this,this.B);this.B.xa(this.element);this.D=new g.hH(this,400,!1,500,
function(){return h.hide()});
g.J(this,this.D);this.hide()};
nH=function(a,b,c,d,e){e=void 0===e?0:e;g.I.call(this);this.B=a;this.u=!1;this.V=d;this.I=!1;this.j=null;0<b&&(this.j=new g.K(this.CM,b,this),g.J(this,this.j));this.D=new g.K(this.CM,c,this);g.J(this,this.D);this.N=Fja(this.B,e,1,d);g.J(this,this.N);this.J=Fja(this.B,0,d,1);g.J(this,this.J);this.C=new fu;g.J(this,this.C)};
oH=function(a,b,c,d,e,f,h){eH.call(this,a,b,{F:"div",L:"ytp-ad-skip-button-slot"},"skip-button",c,d,e,f);var l=this;this.N=null;this.va=!1;this.Ga=h;this.C=new g.xG({F:"span",Ba:["ytp-ad-skip-button-container"]});g.J(this,this.C);this.C.xa(this.element);this.B=this.I=null;this.Ia=new g.hH(this.C,500,!1,100,function(){return l.hide()});
g.J(this,this.Ia);this.W=new nH(this.C.element,15E3,5E3,.5,.5);g.J(this,this.W);this.hide()};
ABa=function(a){a=a.N&&a.N.adRendererCommands;return(a&&a.clickCommand&&a.clickCommand.commandExecutorCommand&&a.clickCommand.commandExecutorCommand.commands||[]).some(function(b){return b.adLifecycleCommand?zBa(b.adLifecycleCommand):!1})};
zBa=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
pH=function(a,b,c,d,e,f,h){eH.call(this,a,b,{F:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e,f);this.W=h;this.I=!1;this.N=0;this.C=this.B=null;this.hide()};
BBa=function(a,b){a.I||(a.I=!0,a.B&&(b?a.B.W.hide():a.B.hide()),b?(a=a.C,a.Ia.show(),a.show()):a.C.show())};
qH=function(a,b,c,d,e){NG.call(this,a,b,c,d,e,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
rH=function(a,b,c,d,e,f){f=void 0===f?!1:f;yG.call(this,a,b,{F:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d,e);this.u=f;this.hide()};
sH=function(a,b,c,d,e){e=void 0===e?!1:e;hE.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.j=d;this.uD=e};
tH=function(a,b){g.iu.call(this);this.api=a;this.durationMs=b;this.j=null;this.Oc=new fu(this);g.J(this,this.Oc);this.u=CBa;this.Oc.P(this.api,"presentingplayerstatechange",this.Wc);this.j=this.Oc.P(this.api,"onAdPlaybackProgress",this.Sb)};
uH=function(a,b){g.iu.call(this);this.Za=b;this.u=!1;this.j=0;this.Oc=new fu(this);g.J(this,this.Oc);this.durationMs=a;this.timer=new g.Zg(100);g.J(this,this.timer);this.Oc.P(this.timer,"tick",this.Sb);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.vH=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){b="";0<d&&(b+=" "+d+" Days");if(0<d||0<e)b+=" "+e+" Hours";b+=" "+f+" Minutes";b+=" "+c+" Seconds";d=b.trim()}else{b="";0<d&&(b+=d+":",10>e&&(b+="0"));if(0<d||0<e)b+=e+":",10>f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d};
g.wH=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)};
xH=function(a,b,c,d,e,f,h){eH.call(this,a,b,{F:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e,f);this.videoAdDurationSeconds=h;this.B=null;this.hide()};
yH=function(a,b,c,d,e){cH.call(this,a,b,c,d,e,"ytp-video-ad-top-bar-title","ad-title")};
zH=function(a,b){this.u=a;this.j=b};
AH=function(a){return a.j-a.u};
BH=function(a,b){return a.u+b*AH(a)};
CH=function(a,b,c){return AH(a)?g.Xf((b-a.u)/AH(a),0,1):null!=c?c:Infinity};
DH=function(a,b){g.xG.call(this,{F:"div",L:"ytp-ad-persistent-progress-bar-container",R:[{F:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.J(this,this.u);this.uc=this.ya("ytp-ad-persistent-progress-bar");this.j=-1;this.P(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
EH=function(a,b,c,d,e,f,h){yG.call(this,a,b,{F:"div",L:"ytp-ad-player-overlay",R:[{F:"div",L:"ytp-ad-player-overlay-flyout-cta"},{F:"div",L:"ytp-ad-player-overlay-instream-info"},{F:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{F:"div",L:"ytp-ad-player-overlay-progress-bar"},{F:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d,e);this.I=h;this.N=this.ya("ytp-ad-player-overlay-flyout-cta");this.B=this.ya("ytp-ad-player-overlay-instream-info");this.C=null;DBa(this)&&
(a=yg("div"),g.N(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 yH(this.api,this.Za,this.layoutId,this.j,this.Ua),c.xa(a),c.init(gE("ad-title"),{text:b.title},this.macros),g.J(this,c)),this.C=a);this.D=this.ya("ytp-ad-player-overlay-skip-or-preview");this.va=this.ya("ytp-ad-player-overlay-progress-bar");this.W=this.ya("ytp-ad-player-overlay-instream-user-sentiment");this.u=f;g.J(this,this.u);
this.hide()};
DBa=function(a){a=a.api.S();return g.gB(a)&&a.isMobile};
FBa=function(a,b){var c=void 0===c?!0:c;var d=g.P("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.Gh(window.location.href);e&&d.push(e);e=g.Gh(a);if(g.Xb(d,e)||!e&&ib(a,"/"))if(g.Q("autoescape_tempdata_url")&&(d=document.createElement("a"),g.Uf(d,a),a=d.href),a&&(a=Vda(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.Lu()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&EBa(a,b,f)}else EBa(a,b)};
EBa=function(a,b,c){a="ST-"+jg(a).toString(36);b=b?g.Kh(b):"";c=c||5;Pq()&&g.yq(a,b,c)};
FH=function(a,b,c){var d={};b&&(d.v=b);c&&(d.list=c);a={name:a,locale:void 0,feature:void 0};for(var e in d)a[e]=d[e];d=g.Mh("/sharing_services",a);g.Gs(d)};
g.GBa=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.Mh(a,b)+c;var e=void 0===e?Mea:e;e=Nea(a,e)||Ff;d.href=g.Ef(e)};
g.GH=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.P("EVENT_ID");d&&(b.ei||(b.ei=d));b&&FBa(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.GBa(a))};
g.HH=function(a,b,c,d){c&&FBa(a,c);c=g.Gf(a);c=g.Ef(c);a!=c&&Xp(Error("Unsafe window.open URL: "+a));a=c;b=b||jg(a).toString(36);if(d){var e,f;d="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.Gh(a)?a:d?a+"&nis=6":a+"&nis=5"}window.open(a,b)};
g.IH=function(a,b,c){b=HBa(null,b,c);if(b=Vf(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.Dt("LOGGED_IN",function(d){g.Et(g.P("LOGGED_IN_PUBSUB_KEY"));Pp("LOGGED_IN",!0);a(d)}),Pp("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
HBa=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=Lh(c,"mode",a));a=Lh(d,"next",c);b&&(a=Lh(a,"feature",b));return a};
JH=function(a){this.name=a};
KH=function(){this.key=IBa};
JBa=function(){this.providers=new Map;this.j=new Map};
MH=function(a,b,c,d){d=void 0===d?!1:d;if(-1<c.indexOf(b))throw Error("Deps cycle for: "+b);if(a.j.has(b))return a.j.get(b);if(!a.providers.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.providers.get(b);c.push(b);if(d.v1)var e=d.v1;else if(d.u1)e=d[LH]?KBa(a,d[LH],c):[],e=d.u1.apply(d,g.v(e));else if(d.fS){e=d.fS;var f=e[LH]?KBa(a,e[LH],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.v(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.Qka||a.j.set(b,
e);return e};
KBa=function(a,b,c){return b?b.map(function(d){return d instanceof KH?MH(a,d.key,c,!0):MH(a,d,c)}):[]};
LBa=function(a,b){if(!a)return!1;var c;if((null==(c=a.signalServiceEndpoint)?0:c.signal)&&b.Os)return!!b.Os[a.signalServiceEndpoint.signal];var d;if((null==(d=a.continuationCommand)?0:d.request)&&b.SF)return!!b.SF[a.continuationCommand.request];for(var e in a)if(b.PF[e])return!0;return!1};
MBa=function(a,b){var c;if((null==(c=a.signalServiceEndpoint)?0:c.signal)&&b.Os&&(c=b.Os[a.signalServiceEndpoint.signal]))return c();var d;if((null==(d=a.continuationCommand)?0:d.request)&&b.SF&&(d=b.SF[a.continuationCommand.request]))return d();for(var e in a)if(b.PF[e]&&(a=b.PF[e]))return a()};
NH=function(a){return function(){return new a}};
OBa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=NBa[b];if(c){var d=new RegExp(c),e=g.r(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(NBa).forEach(function(h){var l=g.r(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
d=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
e=g.r(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
g.OH=function(a){return"/youtubei/v1/"+OBa(a)};
PH=function(){};
QH=function(){};
RH=function(a,b,c,d){this.C=a;this.Nf=b;this.j=c;this.D=d;this.B=void 0;this.u=new Map;a.Os||(a.Os={});a.Os=Object.assign({},PBa,a.Os)};
QBa=function(a,b,c,d){if(void 0!==RH.j){if(d=RH.j,a=[a!==d.C,b!==d.Nf,c!==d.j,!1,!1,void 0!==d.B],a.some(function(e){return e}))throw new g.Ar("InnerTubeTransportService is already initialized",a);
}else RH.j=new RH(a,b,c,d)};
TH=function(a,b,c){var d=void 0===d?SH:d;var e=MBa(b,a.C);if(!e)return Vg(new g.Ar("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?new g.Sg(function(h){var l,m,n;return g.B(function(p){if(1==p.j)return m="cors"===(null==(l=f.Is)?void 0:l.mode)?"cors":void 0,a.j.zR?(n=RBa(a,f.config,m),p.Ra(2)):g.A(p,SBa(a,f.config,m),3);2!=p.j&&(n=p.u);h(TBa(a,f,n));g.va(p)})}):Vg(new g.Ar("Error: Failed to build request for command.",b))};
g.ZF=function(a,b,c,d,e){e=void 0===e?{Vq:{identity:SH}}:e;var f=void 0===f?!0:f;b.context||(b.context=g.TF(d,f));return new g.Sg(function(h){var l,m,n,p,q;return g.B(function(t){if(1==t.j)return l=Nq(c),m=eq(l)?"same-origin":"cors",a.j.zR?(n=RBa(a,e,m),t.Ra(2)):g.A(t,SBa(a,e,m),3);2!=t.j&&(n=t.u);var u=n;p=zna(Nq(c),u);q={input:p,Is:Oq(p),ym:b,config:e};h(TBa(a,q,n));g.va(t)})})};
TBa=function(a,b,c){var d,e,f,h,l,m,n,p,q,t,u,x,y,z,D,H,G,L,aa;return g.B(function(M){switch(M.j){case 1:M.Ra(2);break;case 3:if((d=M.u)&&!d.isExpired())return M.return(Promise.resolve(d.j()));case 2:if(null==(e=b)?0:null==(f=e.ym)?0:f.context)for(h=g.r([]),l=h.next();!l.done;l=h.next())m=l.value,m.Gka(b.ym.context);if(null==(n=a.B)?0:n.Mka(b.input,b.ym))return M.return(a.B.ska(b.input,b.ym));(t=null==(q=b.config)?void 0:q.Qg)&&a.u.has(t)&&g.Q("web_memoize_inflight_requests")?p=a.u.get(t):(u=JSON.stringify(b.ym),
b.Is=Object.assign({},b.Is,{headers:c}),x=Object.assign({},b.Is),"POST"===b.Is.method&&(x=Object.assign({},x,{body:u})),(null==(y=b.config)?0:y.n0)&&mw(b.config.n0),z=function(){return a.Nf.fetch(b.input,x,b.config)},p=z(),t&&a.u.set(t,p));
return g.A(M,p,4);case 4:D=M.u;t&&a.u.has(t)&&a.u.delete(t);(null==(H=b.config)?0:H.r0)&&mw(b.config.r0);if(D||null==(G=a.B)||!G.Kja(b.input,b.ym)){M.Ra(5);break}return g.A(M,a.B.rka(b.input,b.ym),6);case 6:D=M.u;case 5:if(D&&a.D)for(L=g.r(UBa),l=L.next();!l.done;l=L.next())aa=l.value,a.D[aa]&&a.D[aa].handleResponse(D,b);return M.return(D)}})};
SBa=function(a,b,c){var d,e,f,h,l,m,n;return g.B(function(p){if(1==p.j){f=(null==(d=b)?void 0:null==(e=d.Vq)?void 0:e.identity)||SH;m=null==(h=b)?void 0:null==(l=h.Vq)?void 0:l.sessionIndex;var q=Ug(a.j.BB(f,{sessionIndex:m}));return g.A(p,q,2)}n=p.u;return p.return(Promise.resolve(Object.assign({},VBa(c),n)))})};
RBa=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.Vq)?void 0:d.identity)||SH,f;b=null==b?void 0:null==(f=b.Vq)?void 0:f.sessionIndex;a=a.j.BB(e,{sessionIndex:b});return Object.assign({},VBa(c),a)};
VBa=function(a){var b={"Content-Type":"application/json"};g.Q("enable_web_eom_visitor_data")&&g.P("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.P("EOM_VISITOR_DATA"):g.P("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.P("VISITOR_DATA"));g.Q("track_webfe_innertube_auth_mismatch")&&(b["X-Youtube-Bootstrap-Logged-In"]=g.P("LOGGED_IN",!1));"cors"!==a&&((a=g.P("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.P("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),
(a=g.P("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.P("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
UH=function(){};
VH=function(){};
WH=function(){};
XH=function(){};
YH=function(){};
ZH=function(){};
$H=function(a){this.j=a};
g.cI=function(a,b){if(!aI){bI||(bI=new JBa);var c=bI;var d={b0:WBa,fS:$H};c.providers.set(d.b0,d);d={PF:{feedbackEndpoint:NH(WH),modifyChannelNotificationPreferenceEndpoint:NH(XH),playlistEditEndpoint:NH(YH),subscribeEndpoint:NH(UH),unsubscribeEndpoint:NH(VH),webPlayerShareEntityServiceEndpoint:NH(ZH)}};var e=g.Q("web_enable_client_location_service")?SF.getInstance():void 0,f={};e&&(f.client_location=e);void 0===a&&(UF.j||(UF.j=new UF),a=UF.j);void 0===b&&(b=c.resolve(WBa));QBa(d,b,a,f);aI=RH.j}return aI};
dI=function(){};
XBa=function(){dI.j||(dI.j=new dI);return dI.j};
ZBa=function(){if(!g.Q("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Q("disable_biscotti_fetch_entirely_for_all_web_clients")&&Pq()){var a=g.P("PLAYER_VARS",{});if(!("1"==g.Ue(a,"privembed",!1)||g.Q("embeds_web_disable_ads_for_pfl")&&Cna(a))){var b=function(){eI=!0;"google_ad_status"in window?Pp("DCLKSTAT",1):Pp("DCLKSTAT",2)};
try{g.cv("//web.archive.org/web/20220603021303/https://static.doubleclick.net/instream/ad_status.js",b)}catch(c){}YBa.push(g.Bn.Yg(function(){if(!(eI||"google_ad_status"in window)){try{if(b){var c=""+g.Ra(b),d=hra[c];d&&g.Et(d)}}catch(e){}eI=!0;Pp("DCLKSTAT",3)}},5E3))}}};
$Ba=function(){var a=Number(g.P("DCLKSTAT",0));return isNaN(a)?0:a};
fI=function(){};
aCa=function(){var a=navigator;return new Promise(function(b,c){var d;null!=(d=a.webkitTemporaryStorage)&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
tr=function(a,b){var c=this;this.handleError=a;this.j=b;this.u=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.u=!0});
this.B=Math.random()<=g.Rp("ytidb_transaction_ended_event_rate_limit",.02)};
cCa=function(a,b){fI.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:bCa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:bCa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
bCa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
dCa=function(){this.state=1;this.j=null};
fCa=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.state=2,g.cv(c,function(){if(window[h])eCa(a,d,h,e);else{a.state=3;var l=gra(c),m=document.getElementById(l);m&&(Mpa(l),m.parentNode.removeChild(m));g.Bu(new g.Ar("Unable to load Botguard","from "+c))}},f)):b?(f=g.zg("SCRIPT"),f.textContent=b,f.nonce=Wf(),document.head.appendChild(f),document.head.removeChild(f),window[h]?eCa(a,d,h,e):(a.state=4,g.Bu(new g.Ar("Unable to load Botguard from JS")))):g.Bu(new g.Ar("Unable to load VM; no url or JS provided"))};
eCa=function(a,b,c,d){a.state=5;try{var e=new ri({program:b,globalName:c});e.B0.then(function(){a.state=6;d&&d(b)});
gCa(a,e)}catch(f){a.state=7,f instanceof Error&&g.Bu(f)}};
hCa=function(a,b){var c=g.gI;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.j?Promise.race([new Promise(function(d,e){setTimeout(function(){setTimeout(function(){setTimeout(function(){e(Error("Timed out waiting for snapshot"))},0)},0)},b)}),
new Promise(function(d){c.j?c.j.snapshot({vx:a}).then(d):d(null)})]):Promise.resolve(null)};
gCa=function(a,b){g.ze(a.j);a.j=b};
iI=function(a){return!hI||(0,g.R)()-hI>a};
g.kI=function(a,b){var c=g.eA(b.experiments,"bg_vm_reinit_threshold");b.K("always_reinit_bg_vm")&&(c=0);a.program&&(2===g.gI.state?0:iI(c))&&(Dw("bg_i",void 0,"player_att"),g.gI.initialize(a,function(){var d=a.serverEnvironment;Dw("bg_l",void 0,"player_att");hI=(0,g.R)();for(var e=0;e<jI.length;e++){var f=jI[e];try{f(d)}catch(h){}}},b.cspNonce))};
iCa=function(a){a=void 0===a?{}:a;return g.gI.invoke(a)};
jCa=function(a){var b=g.Rp("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return hCa(a,b)};
lCa=function(a,b,c,d){var e=window.location.search;if(38===b.Ga&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.Mh("//web.archive.org/web/20220603021303/https://play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.AS});if(30===b.Ga&&"docs"===a.playerStyle)return g.Mh("https://web.archive.org/web/20220603021303/https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.authUser,authkey:b.authKey,eurl:a.Ke});if(33===b.Ga&&"google-live"===a.playerStyle)return g.Mh("//web.archive.org/web/20220603021303/https://google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.Ga&&g.S(Error("getVideoInfoUrl for invalid namespace: "+a.Ga));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Ke,ps:a.playerStyle,el:SD(b),hl:a.zg,list:b.playlistId,agcid:b.eP,aqi:b.adQueryId,sts:19144,lact:xt()};Object.assign(f,a.deviceParams);a.forcedExperiments&&(f.forced_experiments=a.forcedExperiments);b.Pa?(f.vvt=b.Pa,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):g.WD(b)&&(f.access_token=g.WD(b));b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&
(f.slot_pos=b.slotPosition);b.breakType&&(f.break_type=b.breakType);null!==b.Yw&&(f.ad_id=b.Yw);null!==b.ax&&(f.ad_sys=b.ax);null!==b.yH&&(f.encoded_ad_playback_context=b.yH);b.UE&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.bb&&2!==a.bb&&(f.cc_load_policy=a.bb);var h=g.dr(g.cr.getInstance(),65);g.WB(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.Pr&&(f.endscreen_ad_tracking=b.Pr);(h=a.W.get(b.videoId))&&h.Tz&&(f.ic_track=h.Tz);b.ma&&(f.itct=b.ma);VD(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.Am&&(f.autonav="1");b.WI&&(f.noiba="1");b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Jh);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.jn&&(f.ytrcc=b.jn);b.qK&&(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.Je&&(f.preload=b.Je);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.zg&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");TD(b)&&(f.content_v=TD(b));b.Ib&&(f.livemonitor=1);a.authUser&&(f.authuser=a.authUser);a.pageId&&(f.pageid=a.pageId);a.Pa&&(f.ei=a.Pa);a.j&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.B&&b.dE&&(f.live_start_walltime=b.dE);a.B&&b.gi&&(f.live_manifest_duration=b.gi);a.B&&b.playerParams&&(f.player_params=
b.playerParams);a.B&&b.cycToken&&(f.cyc=b.cycToken);a.B&&b.VE&&(f.tkn=b.VE);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.Kb&&(f.kpt=b.Kb);b.Cl&&(f.kids_age_up_mode=b.Cl);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.wt&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.Y?(c=null!=b.Y.latitudeE7&&null!=b.Y.longitudeE7?b.Y.latitudeE7+","+b.Y.longitudeE7:",",c+=","+(b.Y.clientPermissionState||0)+","+(b.Y.locationRadiusMeters||
"")+","+(b.Y.locationOverrideToken||"")):c=null;c&&(f.uloc=c);b.vk&&(f.internalipoverride=b.vk);a.embedConfig&&(f.embed_config=a.embedConfig);a.rl&&(f.co_rel="1");0<a.ancestorOrigins.length&&(f.ancestor_origins=Array.from(a.ancestorOrigins).join(","));void 0!==a.homeGroupInfo&&(f.home_group_info=a.homeGroupInfo);void 0!==a.livingRoomAppMode&&(f.living_room_app_mode=a.livingRoomAppMode);a.enablePrivacyFilter&&(f.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(f.is_living_room_deeplink="1");b.Kq&&
b.Lq&&(f.clip=b.Kq,f.clipt=b.Lq);b.wr&&(f.disable_watch_next="1");b.Xh&&(f.forced_by_var="1");for(var l in f)!kCa.has(l)&&f[l]&&512<String(f[l]).length&&(g.Bu(Error("GVI param too long: "+l)),f[l]="");b=a.Y;g.fB(a)&&(b=vv(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.Y);a=g.Mh(b+"get_video_info",f);e&&(a=Uka(a,e));return a};
g.lI=function(a,b){return a.Y+"timedtext_video?ref=player&v="+b.videoId};
g.mI=function(a,b){a.feature=b;return a};
g.nI=function(a,b){b=g.Gh(b)||b;a.utm_source="yt-embeds-web";a.utm_medium=b};
mCa=function(a){var b={};a.mE&&(b.ytrext=a.mE);return g.Se(b)?void 0:b};
g.nCa=function(a){var b=this;this.videoData=a;a={};this.u=(a.c1a=function(){var c=[];if(g.gI.isInitialized()){var d="";b.videoData&&b.videoData.Ta&&(d=b.videoData.Ta+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);Dw("bg_v",void 0,"player_att");d=iCa(d);Dw("bg_s",void 0,"player_att");d?c.push("r1a="+d):c.push("r1c=2")}else Dw("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.gI.getState());return c.join("&")},a.c6a=
function(c){return"r6a="+(Number(c.c)^$Ba())},a);
this.videoData&&this.videoData.Ta?this.j=$p(this.videoData.Ta):this.j={}};
g.oCa=function(a){if(a.videoData&&a.videoData.Ta){for(var b=[a.videoData.Ta],c=g.r(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,a.j[d]&&a.u[d]&&(d=a.u[d](a.j))&&b.push(d);return b.join("&")}return null};
qCa=function(a){var b={};Object.assign(b,a.u);g.Q("player_attestation_bg_async")&&(b.c1a=function(){return pCa(a)});
if(a.videoData&&a.videoData.Ta){for(var c=[a.videoData.Ta],d=g.r(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.j[e]&&b[e]&&(e=b[e](a.j))&&c.push(e);return new Promise(function(f,h){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},h)})}return Promise.resolve(null)};
pCa=function(a){function b(e){return e+"&r1d="+g.gI.getState()}
if(!g.gI.isInitialized())return Dw("bg_e",void 0,"player_att"),window.trayride||window.botguard?Promise.resolve(b("r1c=1")):Promise.resolve(b("r1c=4"));var c="";a.videoData&&a.videoData.Ta&&(c=a.videoData.Ta+("&r1b="+a.videoData.clientPlaybackNonce));a={};var d=(a.atr_challenge=c,a);return new Promise(function(e){Dw("bg_v",void 0,"player_att");jCa(d).then(function(f){f?(Dw("bg_s",void 0,"player_att"),e(b("r1a="+f))):(Dw("bg_e",void 0,"player_att"),e(b("r1c=2")))},function(){Dw("bg_e",void 0,"player_att");
e(b("r1c=3"))})})};
g.pI=function(a){var b=a.S(),c=g.oI(b),d=a.ma;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=SD(a);"leanback"===f?e="WATCH":b.K("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.Ib?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.Cl)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:rCa[e]}});a.wt&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.Y)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Je&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=sCa[b];c.request=d;d=c.user||{};if(b=a.Pa)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.Kb)d.delegatePurchases={oauthToken:b},d.kidsParent={oauthToken:b};c.user=d;if(d=a.contextParams)c.activePlayers=[{playerContextParams:d}];if(a=a.clientScreenNonce)c.clientScreenNonce=a;return c};
g.oI=function(a){var b=g.TF(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.r(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.deviceParams.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:e});e=a.deviceYear;a.K("html5_propagate_device_year")&&e&&(c.tvAppInfo=Object.assign({},c.tvAppInfo,
{deviceYear:e}));if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.Ke)b.thirdParty={embedUrl:a};return b};
xCa=function(a,b,c){var d=a.videoId,e=g.pI(a),f=a.S(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(xt()),referer:document.location.toString(),signatureTimestamp:19144};g.cr.getInstance();a.Am&&(h.autonav=!0);g.dr(0,141)&&(h.autonavState=g.dr(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.dr(0,66);VD(a)&&(h.autoplay=!0);f.B&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.forceAdsUrl;if(l){var m={},n=[];
l=l.split(",");l=g.r(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.r(q);for(var t=q.next();!t.done;t=q.next()){var u=g.r(t.value.split("="));t=u.next().value;u=ma(u);p[t]=u.join("=")}q=p.url;t=p.presetad;u=p.viralresponseurl;var x=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),t&&(m.presetAd=t),u&&(m.viralAdResponseUrl=u),x&&(m.viralCampaignId=
String(x));else if("video_ad"===p.adtype){var y={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=tCa[p.breaktype])y.breakType=p;q&&(y.url=q);t&&(y.presetAd=t);u&&(y.viralAdResponseUrl=u);x&&(y.viralCampaignId=String(x));n.push(y)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.dE;if(null!=m){m={startWalltime:String(m)};if(n=a.gi)m.manifestDuration=String(n||14400);
h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.zg&&(h.splay=!0);m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.jn)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Jh){n=a.mE;l=[];p=g.r(p.split(","));for(q=p.next();!q.done;q=p.next())if(t=q.value)if((q=t.startsWith("!"))&&(t=t.substr(1)),t=t.split("-"),!(3>t.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:uCa[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:vCa[t[0]]||"UNKNOWN_INTERFACE",
clientVersion:t[2]||"",platform:wCa[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(n){u=void 0;try{u=JSON.parse(n)}catch(z){g.Bu(z)}u&&(t={params:[{key:"ms",value:u.ms}]},q.osName=u.os_name,q.userAgent=u.user_agent,q.windowHeightPoints=u.window_height_points,q.windowWidthPoints=u.window_width_points)}l.push({adSignalsInfo:t,remoteClient:q})}m.remoteContexts=l}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext={mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}});h.mdxContext=
m;m=b.width;0<m&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.YA(f)&&!f.K("embeds_enable_sending_ancestor_origins_killswitch")&&h&&(h.ancestorOrigins=f.ancestorOrigins);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&
(d.racyCheckOk=!0);e=a.S();if(f=e.embedConfig)d.serializedThirdPartyEmbedConfig=f;d.captionParams={};f=g.dr(g.cr.getInstance(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.WB(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.lS&&(d.captionParams.deviceCaptionsLangPref=a.lS);a.aF.length?d.captionParams.viewerSelectedCaptionLangs=a.aF:g.SB(e)&&e.K("web_player_i_see_captions_2")&&(f=g.Uua(),null==f?0:f.length)&&(d.captionParams.viewerSelectedCaptionLangs=f);
f="onesie"===a.fetchType&&a.K("html5_onesie_attach_po_token");h="onesie"!==a.fetchType&&a.K("html5_non_onesie_attach_po_token");if(f||h)a=a.S(),a.Me&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Me);e.K("fetch_att_independently")?(a=!e.K("html5_force_include_bg_data"),d.attestationRequest={omitBotguardData:a}):e.K("html5_exclude_bg_vm_data")&&(d.attestationRequest={omitBotguardData:!iI(g.eA(e.experiments,"bg_vm_reinit_threshold"))});return d};
zCa=function(a,b){var c,d,e;return g.B(function(f){if(1==f.j)return c={context:g.oI(a.S()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.OH(yCa),g.A(f,g.ZF(b,c,d),2);e=f.u;return f.return(e)})};
ACa=function(a,b,c){iI(g.eA(b.experiments,"bg_vm_reinit_threshold"))&&zCa(a,c).then(function(d){d.botguardData&&g.kI(d.botguardData,b)},function(d){a.isDisposed()||(d=hC(d),a.ra("attf",{error:d.errorCode}))})};
BCa=function(){this.Xt={}};
qI=function(a,b,c,d,e){b in a.Xt||(c=new g.Av(c,d,{id:b,priority:2,namespace:"appad"}),e.addCueRange(c),a.Xt[b]=c)};
CCa=function(a,b,c){"string"===typeof a&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});a:{if((b=a.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}a.videoId=b;return rI(a)};
rI=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b=["endSeconds","startSeconds","mediaContentUrl","suggestedQuality","videoId"];c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c};
DCa=function(a,b,c,d){if(g.Pa(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
uI=function(a,b){g.I.call(this);var c=this;this.app=a;this.playerType=b;this.j=!0;this.element=null;this.D={};this.J={};this.u={};this.N=[];this.I={};this.C={};this.B=null;this.V=new Set;sI(this,"cueVideoById",this.cueVideoById);sI(this,"loadVideoById",this.loadVideoById);sI(this,"cueVideoByUrl",this.cueVideoByUrl);sI(this,"loadVideoByUrl",this.loadVideoByUrl);sI(this,"playVideo",this.playVideo);sI(this,"pauseVideo",this.pauseVideo);sI(this,"stopVideo",this.stopVideo);sI(this,"clearVideo",this.clearVideo);
sI(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);sI(this,"getVideoBytesTotal",this.getVideoBytesTotal);sI(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);sI(this,"getVideoStartBytes",this.getVideoStartBytes);sI(this,"cuePlaylist",this.cuePlaylist);sI(this,"loadPlaylist",this.loadPlaylist);sI(this,"nextVideo",this.nextVideo);sI(this,"previousVideo",this.previousVideo);sI(this,"playVideoAt",this.playVideoAt);sI(this,"setShuffle",this.setShuffle);sI(this,"setLoop",this.setLoop);sI(this,
"getPlaylist",this.jW);sI(this,"getPlaylistIndex",this.getPlaylistIndex);sI(this,"getPlaylistId",this.getPlaylistId);sI(this,"loadModule",this.loadModule);sI(this,"unloadModule",this.unloadModule);sI(this,"setOption",this.setOption);sI(this,"getOption",this.getOption);sI(this,"getOptions",this.getOptions);sI(this,"mute",this.mute);sI(this,"unMute",this.unMute);sI(this,"isMuted",this.isMuted);sI(this,"setVolume",this.setVolume);sI(this,"getVolume",this.getVolume);sI(this,"seekTo",this.seekTo);sI(this,
"getPlayerMode",this.getPlayerMode);sI(this,"getPlayerState",this.getPlayerState);sI(this,"getPlaybackRate",this.getPlaybackRate);sI(this,"setPlaybackRate",this.setPlaybackRate);sI(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);sI(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
sI(this,"setPlaybackQuality",this.setPlaybackQuality);sI(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);sI(this,"getCurrentTime",this.getCurrentTime);sI(this,"getDuration",this.getDuration);sI(this,"addEventListener",this.iV);sI(this,"removeEventListener",this.h0);sI(this,"getDebugText",this.getDebugText);sI(this,"getVideoData",function(){return c.OB()});
sI(this,"addCueRange",this.addCueRange);sI(this,"removeCueRange",this.removeCueRange);sI(this,"setSize",this.setSize);sI(this,"getApiInterface",this.getApiInterface);sI(this,"destroy",this.destroy);sI(this,"showVideoInfo",this.showVideoInfo);sI(this,"hideVideoInfo",this.hideVideoInfo);sI(this,"isVideoInfoVisible",this.isVideoInfoVisible);sI(this,"getSphericalProperties",this.getSphericalProperties);sI(this,"setSphericalProperties",this.setSphericalProperties);a=this.app.S();a.D||(sI(this,"getVideoEmbedCode",
this.getVideoEmbedCode),sI(this,"getVideoUrl",this.getVideoUrl));sI(this,"getMediaReferenceTime",this.getMediaReferenceTime);sI(this,"getSize",this.getSize);a.D||sI(this,"logImaAdEvent",this.logImaAdEvent);tI(this,"getInternalApiInterface",this.getInternalApiInterface);tI(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);tI(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);tI(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);tI(this,"getAdState",this.getAdState);tI(this,"sendAbandonmentPing",
this.sendAbandonmentPing);tI(this,"setLoopRange",this.setLoopRange);tI(this,"getLoopRange",this.getLoopRange);tI(this,"setAutonavState",this.setAutonavState);tI(this,"seekToLiveHead",this.seekToLiveHead);tI(this,"seekToStreamTime",this.seekToStreamTime);tI(this,"seekToChapterWithAnimation",this.seekToChapterWithAnimation);tI(this,"startSeekCsiAction",this.startSeekCsiAction);tI(this,"getStreamTimeOffset",this.getStreamTimeOffset);tI(this,"getVideoData",this.OB);tI(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);
tI(this,"downloadVideo",this.downloadVideo);tI(this,"queueOfflineAction",this.queueOfflineAction);tI(this,"pauseVideoDownload",this.pauseVideoDownload);tI(this,"resumeVideoDownload",this.resumeVideoDownload);tI(this,"refreshAllVideos",this.refreshAllVideos);tI(this,"deleteVideos",this.deleteVideos);tI(this,"deleteAllVideos",this.deleteAllVideos);tI(this,"isOrchestrationLeader",this.isOrchestrationLeader);tI(this,"getAppState",this.getAppState);tI(this,"addInfoCardXml",this.addInfoCardXml);tI(this,
"updateLastActiveTime",this.updateLastActiveTime);tI(this,"setBlackout",this.setBlackout);tI(this,"setAccountLinkState",this.setAccountLinkState);tI(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);tI(this,"setUserEngagement",this.setUserEngagement);tI(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);tI(this,"getPresentingPlayerType",this.getPresentingPlayerType);tI(this,"canPlayType",this.canPlayType);tI(this,"updatePlaylist",this.updatePlaylist);tI(this,"updateVideoData",
this.updateVideoData);tI(this,"updateEnvironmentData",this.updateEnvironmentData);tI(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);tI(this,"setCardsVisible",this.setCardsVisible);tI(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);tI(this,"setSafetyMode",this.setSafetyMode);tI(this,"isAtLiveHead",function(d){return c.isAtLiveHead(void 0,d)});
tI(this,"getVideoAspectRatio",this.getVideoAspectRatio);tI(this,"getPreferredQuality",this.getPreferredQuality);tI(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);tI(this,"onAdUxClicked",this.onAdUxClicked);tI(this,"getFeedbackProductData",this.getFeedbackProductData);tI(this,"getStoryboardFrame",this.getStoryboardFrame);tI(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);tI(this,"getStoryboardLevel",this.getStoryboardLevel);tI(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
tI(this,"getCaptionWindowContainerId",this.getCaptionWindowContainerId);tI(this,"getAvailableQualityLabels",this.getAvailableQualityLabels);tI(this,"addUtcCueRange",this.addUtcCueRange);tI(this,"showAirplayPicker",this.showAirplayPicker);tI(this,"addBgVersionChangeCallback",this.addBgVersionChangeCallback);tI(this,"dispatchReduxAction",this.dispatchReduxAction);tI(this,"getPlayerResponse",this.getPlayerResponse);tI(this,"changeMarkerVisibility",this.changeMarkerVisibility);tI(this,"setAutonav",this.setAutonav);
tI(this,"isNotServable",this.isNotServable);tI(this,"channelSubscribed",this.channelSubscribed);tI(this,"channelUnsubscribed",this.channelUnsubscribed);tI(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);tI(this,"togglePictureInPicture",this.togglePictureInPicture);tI(this,"supportsGaplessAudio",this.supportsGaplessAudio);tI(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
tI(this,"clearQueue",this.clearQueue);tI(this,"isFastLoad",function(){return!1});
tI(this,"getAudioTrack",this.WV);tI(this,"setAudioTrack",this.setAudioTrack);tI(this,"getAvailableAudioTracks",this.XV);tI(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);tI(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);tI(this,"getStatsForNerds",this.getStatsForNerds);tI(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);tI(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);tI(this,"setMinimized",this.setMinimized);tI(this,"confirmYpcRental",
this.confirmYpcRental);tI(this,"setInlinePreview",this.setInlinePreview);tI(this,"toggleSubtitlesOn",this.toggleSubtitlesOn);tI(this,"handleExternalCall",this.handleExternalCall);tI(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);tI(this,"setScreenLayer",this.setScreenLayer);tI(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);tI(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);tI(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);
tI(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);tI(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);tI(this,"setGlobalCrop",this.setGlobalCrop);tI(this,"getVisibilityState",this.getVisibilityState);tI(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);tI(this,"setInternalSize",this.setInternalSize)};
sI=function(a,b,c){a.D[b]=function(){return c.apply(a,g.Ea.apply(0,arguments))};
a.u.hasOwnProperty(b)||tI(a,b,c);a.N.push(b)};
vI=function(a,b,c){a.J[b]=function(){return c.apply(a,g.Ea.apply(0,arguments))};
a.u.hasOwnProperty(b)||tI(a,b,c);a.N.push(b)};
tI=function(a,b,c){a.u[b]=function(){return c.apply(a,g.Ea.apply(0,arguments))}};
vAa=function(a){a.B||(a.B={},Object.assign(a.B,a.D),Object.assign(a.B,a.J),a.B.addEventListener=function(b,c){ECa(a,b,c)},a.B.removeEventListener=function(b,c){c="string"===typeof c?b+c:b+String(g.Ra(c));
var d=a.C[c];d&&(a.app.An.unsubscribe(b,d),g.Te(a.C,c))});
return a.B};
ECa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Ra(c));if(!a.C[d]){var e;"string"===typeof c?e=function(){var h=g.Ea.apply(0,arguments);g.La(c).apply(window,h)}:e=c;
var f=function(h){e({target:a.B,data:h})};
a.C[d]=f;a.app.An.subscribe(b,f)}};
FCa=function(a,b,c){b=g.Xf(Math.floor(b),0,100);isFinite(b)&&wI(a.app,{volume:b,muted:a.isMuted()},c)};
GCa=function(a,b){wI(a.app,{muted:!0,volume:a.getVolume()},b)};
HCa=function(a,b){wI(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.yI=function(a){var b=xI(a.app.ib());if(b)return b.Du();a=a.app.ib();a=g.iB(a.G.S())?a.Sd.get("music"):void 0;return a?a.Du():null};
AI=function(a,b){uI.call(this,a,b);var c=this;this.j=!1;vI(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(zI(c,d),e)});
vI(this,"loadVideoByPlayerVars",function(d,e,f,h){c.loadVideoByPlayerVars(zI(c,d),e,f,h)});
vI(this,"preloadVideoByPlayerVars",function(d,e,f,h){return void c.preloadVideoByPlayerVars(zI(c,d),e,f,h)});
vI(this,"seekBy",this.seekBy);vI(this,"mutedAutoplay",this.mutedAutoplay);vI(this,"showControls",this.showControls);vI(this,"hideControls",this.hideControls);vI(this,"cancelPlayback",this.cancelPlayback);vI(this,"getProgressState",this.getProgressState);vI(this,"isInline",this.isInline);vI(this,"setInline",this.setInline);vI(this,"setLoopVideo",this.setLoopVideo);vI(this,"getLoopVideo",this.getLoopVideo);vI(this,"getStoryboardFormat",this.getStoryboardFormat);vI(this,"getVideoContentRect",this.getVideoContentRect);
vI(this,"toggleFullscreen",this.toggleFullscreen);vI(this,"isFullscreen",this.isFullscreen);vI(this,"getVideoStats",this.getVideoStats);vI(this,"getPlayerSize",this.getPlayerSize);vI(this,"toggleSubtitles",this.toggleSubtitles);vI(this,"setCenterCrop",this.setCenterCrop);vI(this,"setFauxFullscreen",this.setFauxFullscreen);vI(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);vI(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);vI(this,"setSizeStyle",this.setSizeStyle);vI(this,"wakeUpControls",this.wakeUpControls)};
zI=function(a,b){var c={};if(a.app.S().N){a=g.r(ICa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d])}else for(a=g.r(JCa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
KCa=function(a,b,c){var d=a.app.getIngestionTime(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
g.BI=function(a){AI.call(this,a);this.EE=this.settingsMenu=null};
g.CI=function(a){a=a.ib();var b=a.Sd.get("endscreen");return b&&b.Ms()?!0:a.Fz()||g.iB(a.G.S())};
g.DI=function(a,b){3===a.getPresentingPlayerType()?a.X("mdxautoplaycancel"):a.X("autonavcancel",b)};
g.FI=function(a){var b=EI(a.ib());return a.app.Ah&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.tm()||!!a.getPlaylist()};
g.HI=function(a){return(a=g.GI(a.ib()))?a.LB():{}};
g.LCa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.MCa=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.qb)};
g.II=function(a,b,c){a=a.Ya().element;var d=lc(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.Cg(a,b,d);b.setAttribute("data-layer",String(c))};
g.JI=function(a){var b=a.S();if(!b.Zc)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.K("allow_poltergust_autoplay"))&&!aE(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.Xb(c.oa,"ypc")&&!a&&(!g.YA(b)||f)};
NCa=function(a){a=g.KI(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.j||b.xK)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.ra("iqss",{trigger:d},!0),!0):!1};
OCa=function(){g.I.call(this)};
LI=function(a){this.U=a;this.u=this.j=NaN};
MI=function(a,b,c){Cw(a,c)||Dw(a,b,c);Cw(a,"video_to_ad")||Dw(a,b,"video_to_ad");Cw(a,"ad_to_video")||Dw(a,b,"ad_to_video");Cw(a,"ad_to_ad")||Dw(a,b,"ad_to_ad")};
NI=function(a,b){this.U=a;this.timerName="";this.C=!1;this.u=this.B=NaN;this.D=new LI(a);this.j=b||null;this.C=!1};
OI=function(a,b){MI(b,void 0,a.timerName)};
PCa=function(a,b,c){var d=g.dB(b.u)&&!b.u.D;if(b.u.oi&&($A(b.u)||"shortspage"===b.u.Ia||$B(b.u)||d)&&!a.C){a.C=!0;a.J=b.clientPlaybackNonce;g.P("TIMING_ACTION")||Pp("TIMING_ACTION",a.U.csiPageType);a.U.csiServiceName&&Pp("CSI_SERVICE_NAME",a.U.csiServiceName);if(a.j){d=a.j.Ti();for(var e=g.r(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,mw(f,d[f],a.timerName);d=a.j.eB;e=g.r(Object.keys(d));for(f=e.next();!f.done;f=e.next())f=f.value,g.pw(f,d[f],a.timerName);d=a.j;d.j={};d.eB={}}g.pw("yt_pvis",
Ew(),a.timerName);g.pw("yt_pt","html5",a.timerName);a.I!==b.clientPlaybackNonce||Number.isNaN(a.B)||(Cw("_start",a.timerName)?c=Lv(a.timerName)._start+a.B:g.Bu(new g.Ar("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!Cw("pbs",a.timerName)&&a.tick("pbs",c)}};
QCa=function(a){if(a.j){var b=a.j;b.j={};b.eB={}}a.C=!1;a.I=void 0;a.B=NaN};
PI=function(a,b){g.iu.call(this);this.u=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.W={};this.B=0;if(a=b.session_data)this.sessionData=Yp(a,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author=
b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(a=b.api)"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new IC("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.JC(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0<this.index&&(this.items=[]);a=g.r(a);for(c=a.next();!c.done;c=a.next())(c=
c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.W=KC(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
QI=function(a){return!!(a.playlist||a.list||a.api)};
RCa=function(a){var b=a.index+1;return b>=a.length?0:b};
SCa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.RI=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.mD(a.u,b),g.J(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
SI=function(a,b){a.index=g.Xf(b,0,a.length-1);a.startSeconds=0};
TI=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.RI(a);a.items=[];for(var d=g.r(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()}};
VCa=function(a,b){var c,d,e,f,h,l;return g.B(function(m){if(1==m.j){c=g.cI();var n=a.S(),p={context:g.pI(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.Q("parse_video_id_from_serialized_embedded_player_response_killswitch")){var t=b.embedded_player_response;t&&(q=JSON.parse(t))}if(q){var u,x,y,z,
D,H,G;q=(null==(u=q)?void 0:null==(x=u.embedPreview)?void 0:null==(y=x.thumbnailPreviewRenderer)?void 0:null==(z=y.playButton)?void 0:null==(D=z.buttonRenderer)?void 0:null==(H=D.navigationEndpoint)?void 0:null==(G=H.watchEndpoint)?void 0:G.videoId)||null}else q=null}u=(u=q)?u:void 0;x=a.playlistId?a.playlistId:b.list;y=b.listType;if(x){var L;"user_uploads"===y?L={username:x}:L={playlistId:x};TCa(n,u,b,L);p.playlistRequest=L}else b.playlist?(L={templistVideoIds:b.playlist.toString().split(",")},TCa(n,
u,b,L),p.playlistRequest=L):u&&(L={videoId:u},n&&(L.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=L);d=p;e=g.OH(UCa);g.wa(m,2);return g.A(m,g.ZF(c,d,e),4)}if(2!=m.j)return f=m.u,h=a.S(),b.raw_embedded_player_response=f,m.return(new g.mD(h,b));l=g.ya(m);g.S(l);return m.return(a)})};
TCa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.VI=function(a,b){UI.get(a);UI.set(a,b)};
g.WI=function(a){g.iu.call(this);this.loaded=!1;this.player=a};
WCa=function(){this.u=[];this.j=[]};
g.XI=function(a,b){return b?a.j.concat(a.u):a.j};
g.YI=function(a,b){switch(b.kind){case "asr":XCa(b,a.u);break;default:XCa(b,a.j)}};
XCa=function(a,b){g.Ub(b,function(c){return a.equals(c)})||b.push(a)};
g.ZI=function(a){g.I.call(this);this.U=a;this.u=new WCa;this.C=[]};
g.$I=function(a,b,c){g.ZI.call(this,a);this.audioTrack=c;this.j=null;this.C=b.kF};
YCa=function(){this.j=10;this.Mi=!1};
ZCa=function(a,b){var c=void 0===b?{}:b,d=void 0===c.wm?!1:c.wm;b=new YCa;b.Mi=(void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4)||d;if(a=g.eA(a.experiments,"html5_time_based_consolidation_ms"))b.j=a;return b};
g.$Ca=function(a){this.j=a;this.D=new YCa;this.Rl=this.Ql=!1;this.El=2;this.J=20971520;this.W=8388608;this.I=120;this.Zb=3145728;this.Ga=62914560;this.qc=10485760;this.Gl=g.eA(this.j.experiments,"html5_min_readbehind_secs");this.Sw=g.eA(this.j.experiments,"html5_min_readbehind_cap_secs");this.Rt=g.eA(this.j.experiments,"html5_max_readbehind_secs");this.Zw=this.j.K("html5_trim_future_discontiguous_ranges");this.Ob=NaN;this.zi=0;this.Iq=this.Wj=this.yq=2;this.Pa=2097152;this.fn=1048576;this.bb=!1;this.Ug=
1800;this.Fl=this.Cl=5;this.Da=15;this.Ke=1;this.B=1.15;this.C=1.05;this.Zj=1;this.Nl=!0;this.ma=!1;this.Jq=.8;this.zl=this.Yc=!1;this.Hc=6;this.Y=this.Ib=!1;this.Vg=this.qd=0;this.xt=this.j.K("html5_append_init_while_paused");this.Xm=g.eA(this.j.experiments,"html5_post_interrupt_readahead");this.Ol=!1;this.Nc=5E3;this.Zs=100;this.Me=10;this.Qr=g.eA(this.j.experiments,"html5_ssdai_failure_retry_limit")||3;this.rl=this.j.experiments.fb("html5_clone_original_for_fallback_location");this.Yw=this.j.experiments.fb("html5_ssdai_reset_on_video_only_killswitch");
this.Ag=1;this.gi=1.6;this.qb=!1;this.oa=.5;this.Kd=2;this.Ad=this.Ts=0;this.Us=1.5;this.Ys=this.oi=.5;this.Ye=15;this.Bl=1;this.wr=this.Jc=!1;this.Dl=0;this.xn=this.Sr=this.rk=this.Zm=this.Pl=!1;this.cn=0;this.Th=2;this.Pr=this.ql=!1;this.Ff=0;this.Wg=this.zq=this.va=this.Es=this.Sh=!1;this.Ta=!0;this.ze=this.md=this.Ym=this.Sa=!1;this.wl=!0;this.di=!1;this.u="";this.Ct=1048576;this.ye=[];this.Dt=this.j.K("html5_woffle_resume");this.eb=!0;this.qk=this.aj=this.Je=!1;this.vj=46800;this.Mq=this.gk=
this.Xj=this.dn=this.Le=this.Kb=!1;this.V=0;this.xl="";this.Bt=this.j.K("html5_disable_codec_for_playback_on_error");this.Gj=this.wt=this.yl=this.Xh=!1;this.bf=0;this.Ww=Gq();this.Gr=this.vk=!1;this.zt=this.j.K("html5_skip_buffer_check_seek_to_head");this.ge=!1;this.Kq=!this.j.K("html5_reset_media_stream_discontinuity_killswitch");this.Lj=!1;this.zg=8192;this.Ia=this.Zc=!1;this.Lq=1;this.ax=this.j.K("html5_update_readahead_from_real_byterates");this.gt=this.j.K("html5_onesie_live");this.Tw=g.eA(this.j.experiments,
"html5_onesie_live_ttl_secs")||8;this.Ml=g.eA(this.j.experiments,"html5_attach_num_random_bytes_to_bandaid");this.Xw=this.j.K("html5_self_init_consolidation");this.zs=this.j.K("html5_stream_metadata");this.kb=this.j.K("html5_onesie_ads");this.At=this.j.K("html5_live_partial_response_resumable");this.Ze=this.j.K("html5_ssdai_log_ad_transition_info");this.Vw=g.eA(this.j.experiments,"html5_onesie_request_timeout_ms")||3E3;this.Uw=this.j.K("html5_onesie_nonzero_playback_start");this.jt=this.j.K("html5_ssdai_use_post_for_media");
this.N=!1};
aDa=function(a,b){1080<b.video.j&&!a.Ql&&(a.J=36700160,a.W=5242880,a.Zb=10485760,a.Pa=4194304,a.Ql=!0);2160<b.video.j&&!a.Rl&&(a.J=104857600,a.Ob=13107200,a.Rl=!0);b.isEncrypted()&&g.Cq()&&Aq("kant")&&(a.Ob=1310720);b.Ob&&(a.fn=Math.max(65536,Math.min(a.Pa,5*b.Ob)))};
g.aJ=function(a,b){return iz(a.info.mimeType)?b?a.info.Vb()===b:!0:!1};
g.bDa=function(a,b){if(null!=a.j&&g.UB(b.S())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.fg())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.aJ(c,"386")});
a=!!a.j&&!a.j.isManifestless&&nua(a.j);return b||a};
g.bJ=function(a,b,c,d,e){g.ZI.call(this,a);this.videoId=c;this.tO=e;this.D={};this.j=null;a=d||g.bq(b).hl||"";a=a.split("_").join("-");this.B=cq(b,{hl:a})};
cJ=function(a,b){g.I.call(this);this.G=a;this.D=b;this.eB={};this.j={};this.u=null;this.I=this.G.K("web_player_defer_modules");this.C=new Set;var c;this.B=(null==(c=this.G.getVideoData())?void 0:c.g1)||0;this.Sd=new Map;0<this.B&&(this.J=new g.K(this.dB,this.B,this))};
g.dJ=function(a){return a.Sd.get("captions")};
eDa=function(a,b){switch(b){case "ad":return eJ(a);case "annotations_module":return b=a.G.S(),a=a.G.getVideoData(),a.FK||"3"===b.controlsType?!1:b.W.isEmpty()&&"annotation-editor"!==b.playerStyle&&"live-dashboard"!==b.playerStyle?!!a.Sa||!!g.QD(a)||!!g.RD(a):!0;case "attribution":return a=a.G.S(),a.K("web_player_show_music_in_this_video")&&"desktop-polymer"===a.playerStyle;case "creatorendscreen":return b=a.G.S(),b.C||"3"===b.controlsType?a=!1:"creator-endscreen-editor"===b.playerStyle?a=!0:(a=a.G.getVideoData(),
a=!!a&&(!!g.Sxa(a)||!!g.Txa(a))),a;case "embed":return g.YA(a.G.S());case "endscreen":return g.cDa(a);case "heartbeat":return a.yJ();case "inline_preview":return a.G.S().showInlinePreviewUi;case "kids":return pB(a.G.S());case "remote":return a.G.S().qb;case "miniplayer":return a.G.S().showMiniplayerUiWhenMinimized;case "music":return g.iB(a.G.S());case "offline":return a.G.S().Vg;case "captions":return b=a.G.getVideoData(),!!b.Jc||!!b.captionTracks.length||g.bDa(b,a.G);case "unplugged":return g.fB(a.G.S());
case "ux":return a.G.S().Hc;case "webgl":return dDa(a);case "ypc":return a.Fz();case "ypc_clickwrap":return a=a.G.getVideoData(),a.bf&&!a.MJ;case "yto":return!!a.G.getVideoData().oa.includes("yto");default:return g.S(Error("Module descriptor "+b+" does not match")),!1}};
fJ=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.Sd.get(b);if(!h||d)if(e||(e=function(){fJ(a,b,c,d)}),f||(f=function(){a.G.lf(b)}),h=h||fDa(a,b,eDa(a,b),e,f))a.Sd.set(b,h),h.create(),c&&a.G.La("onApiChange")};
gJ=function(a){a=a.G.getVideoData();var b;if(b=a.K("web_player_defer_ad"))if(g.Xb(a.oa,"ad"))b=!1;else{var c;if(c=b=null==(c=a.playerResponse)?void 0:c.adPlacements){c=Number.MAX_VALUE;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=null==(e=d.config)?void 0:e.adPlacementConfig;e=void 0;if("AD_PLACEMENT_KIND_MILLISECONDS"===(null==(e=f)?void 0:e.kind)){var h=e=void 0;f=Number(null==(e=f)?void 0:null==(h=e.adTimeOffset)?void 0:h.offsetStartMilliseconds)||
0;h=e=void 0;d=Number((null==(e=d.renderer)?void 0:null==(h=e.adBreakServiceRenderer)?void 0:h.prefetchMilliseconds)||0);d=f-d;d<c&&(c=d)}}c=c-5E3<=1E3*a.startSeconds}b=c?!1:!0}return b};
g.cDa=function(a){var b=a.G.S();if($B(b)||b.D||!b.Jc&&!b.Ye)return!1;var c=a.G.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.K("desktop_enable_autoplay");a=a.G.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.K("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.K("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.K("allow_live_autoplay_on_mweb");return!c||b};
g.GI=function(a){return a.Sd.get("webgl")};
dDa=function(a){var b=a.G.getVideoData();a=a.G.S();var c=g.yna(),d=a.K("enable_spherical_kabuki"),e=g.ZB(a);if(g.PD(b))return c||d||e||a.K("html5_enable_spherical");if(g.MD(b))return e||c||d||a.K("html5_enable_spherical");if(g.ND(b))return e||c||a.K("html5_enable_spherical3d");if(g.OD(b))return e||!1;c=b.B&&b.B.video&&b.B.video.isHdr();return e&&!g.FD(b)&&!c&&(a.K("enable_webgl_noop")||a.K("html5_enable_bicubicsharp"))};
gDa=function(a){a.G.S().K("web_player_ux_module_wait")&&a.Sd.get("ux")&&a.G.lf("ux")};
hDa=function(a){gDa(a);fJ(a,"ux",!0)};
eJ=function(a){var b=a.G.S();if(b.K("embeds_web_disable_ads_for_pfl")&&b.C)return!1;if(a=a.G.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
fDa=function(a,b,c,d,e){try{if(c){var f=UI.get(b);if(f)return new f(a.G);iDa(a,b,d,e)}else a.G.lf(b)}catch(h){a.G.lf(b),g.S(h)}return null};
hJ=function(a,b,c){for(var d=g.r(a.Sd),e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;(f=f.next().value)&&(c||f.hj(b))&&(g.ze(f),a.Sd.delete(e))}};
iJ=function(a){return a.Sd.get("ad")};
jJ=function(a){if(pB(a.G.S()))return a.Sd.get("kids")};
EI=function(a){if(a.G.S().qb)return a.Sd.get("remote")};
g.kJ=function(a){if(g.fB(a.G.S()))return a.Sd.get("unplugged")};
xI=function(a){if(a.G.S().Hc)return a.Sd.get("ux")};
lJ=function(a){if(a.G.S().Vg)return a.Sd.get("offline")};
g.mJ=function(a){return a.Sd.get("annotations_module")};
nJ=function(a){return a.Sd.get("creatorendscreen")};
kDa=function(a){var b=a.D.split("/").slice(0,4).join("/")+"/wasm/lib.js";return new Promise(function(c,d){jDa(a,b,function(){var e,f;return g.B(function(h){if(1==h.j)return e=g.C.loadWasm,"function"!==typeof e?(d("noloadwasm"),h.Ra(0)):g.A(h,e(),3);f=h.u;c(f);g.va(h)})},function(){d("player wasm load failure")})})};
iDa=function(a,b,c,d){if(a.D){var e=lDa[b];jDa(a,a.D+e,function(){a.C.add(e);c.call(a)},d)}};
jDa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var h=g.og("SCRIPT"),l=!1,m,n=0;n<h.length;n++){var p=h[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.zg("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(y){Lg(f);q&&q.apply(window,[y])};
var t=m.onerror;m.onerror=function(y){if(.01>Math.random()){var z=new g.Ar("Unable to load player module",b,document.location&&document.location.origin);g.S(z)}Lg(e);t&&t(y)};
var u=m,x=u.onreadystatechange;u.onreadystatechange=function(y){switch(u.readyState){case "loaded":case "complete":Lg(f)}x&&x(y)};
l&&((h=a.G.S().cspNonce)&&m.setAttribute("nonce",h),g.ui(m,g.Bf(b)),h=g.og("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.Be(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
oJ=function(a,b,c){g.Ce.call(this,b,a);this.j=c};
g.pJ=function(a){uF.call(this);var b=this;this.j=a;this.I={};this.listener=function(c){b.dispatchEvent(new oJ(b,c.type,c))}};
rJ=function(a,b,c,d,e){g.iu.call(this);var f=this;this.target=a;this.SA=b;this.u=0;this.I=!1;this.C=new g.ag(NaN,NaN);this.j=new g.kz(this);this.ma=this.B=this.J=null;g.J(this,this.j);b=d||e?4E3:3E3;this.V=new g.K(function(){qJ(f,1,!1)},b,this);
g.J(this,this.V);this.W=new g.K(function(){qJ(f,2,!1)},b,this);
g.J(this,this.W);this.Y=new g.K(function(){qJ(f,512,!1)},b,this);
g.J(this,this.Y);this.oa=c&&0<c.ye.length?5E3:3E3;d||(this.B=this.j.P(a,"mouseover",this.xC),this.j.P(a,"mousemove",this.EX),this.j.P(a,"mouseleave",this.HX));bl?this.j.P(a,"keypress",this.hX):this.j.P(a,"focusin",this.bW);this.D=this.j.P(a,"mousedown",this.mP);this.N=this.j.P(a,"touchstart",this.JR,void 0,!0);qJ(this,640,!0)};
mDa=function(a){qJ(a,4,!1);a.J&&(a.j.vc(a.J),a.J=null,a.B=a.j.P(a.target,"mouseover",a.xC));a.B&&(a.j.vc(a.B),a.B=a.j.P(a.target,"mouseover",a.xC))};
qJ=function(a,b,c){a.isDisposed();var d=!a.u;c?(a.u|=b,b&1&&a.V.start(),b&2&&a.W.start()):(a.u&=~b,b&1&&a.V.stop(),b&2&&a.W.stop(),b&512&&a.Y.stop());a.u&512&&!(a.u&128)&&g.Fn(a.Y,a.oa);b=!a.u;d!==b&&a.X("autohideupdate",b)};
g.sJ=function(a){g.W.call(this,{F:"button",Ba:["ytp-large-play-button","ytp-button"],T:{"aria-label":"Play"},R:["{{largePlayButtonChildren}}"]});this.api=a;this.P(a,"videodatachange",this.Ea);a=this.api.S();g.dB(a)&&(a.isMobile||a.Je)&&this.api.K("embeds_web_enable_red_play_button_on_preview")&&g.N(this.element,"ytp-large-play-button-red-bg");this.Ea()};
g.tJ=function(a){var b=["ytp-cued-thumbnail-overlay"];a.S().D&&b.push("ytp-exp-contain-thumbnail");g.W.call(this,{F:"div",Ba:b,R:[{F:"div",L:"ytp-cued-thumbnail-overlay-image"}]});b=this.ya("ytp-cued-thumbnail-overlay");var c=new g.sJ(a);g.J(this,c);c.xa(b);this.B=new g.kz(this);g.J(this,this.B);this.api=a;this.D=this.ya("ytp-cued-thumbnail-overlay-image");this.C=c;this.u=new g.hH(this,250);g.J(this,this.u);this.j=new g.K(this.Ea,0,this);g.J(this,this.j);this.Ea();this.P(a,"appresize",this.wb);this.P(a,
"presentingplayerstatechange",this.onStateChange);this.P(a,"ypcStateChanged",this.N_);$A(a.S())&&this.P(a,"videoplayerreset",this.JT)};
nDa=function(a){var b=!a.S().Th&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.uJ=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.wH(a))return g.ot(a),!0;b.pauseVideo();a=e.getAttribute("href");g.GH(a,d,!0);return!1};
g.vJ=function(a,b,c){if(vB(b.S())&&2!==b.getPresentingPlayerType()){if(g.wH(c))return b.isFullscreen()&&!b.S().externalFullscreen&&b.toggleFullscreen(),g.ot(c),!0}else if(b.S().K("embeds_enable_webview_nonjs_navigation")&&g.YA(b.S())&&(Lq()||Jq()))b=c.target,b instanceof HTMLAnchorElement&&(a=Nea(a),b.href=g.Ef(a));else{var d=g.wH(c);d&&b.pauseVideo();g.GH(a,void 0,!0);d&&(g.HH(a),g.ot(c))}return!1};
oDa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,T:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}],L:"ytp-subtitles-button-icon"}};
wJ=function(){return{F:"div",L:"ytp-spinner-container",R:[{F:"div",L:"ytp-spinner-rotator",R:[{F:"div",L:"ytp-spinner-left",R:[{F:"div",L:"ytp-spinner-circle"}]},{F:"div",L:"ytp-spinner-right",R:[{F:"div",L:"ytp-spinner-circle"}]}]}]}};
xJ=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
yJ=function(a,b,c){a=a.S();return a.K("desktop_player_button_tooltip_with_shortcut")&&!a.Wg?g.gF("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.zJ=function(a){g.W.call(this,{F:"div",Ba:["ytp-error"],T:{role:"alert"},R:[{F:"div",L:"ytp-error-content",R:[{F:"div",L:"ytp-error-icon-container",R:[{F:"svg",T:{fill:"#fff",viewBox:"0 0 48 48"},R:[{F:"path",T:{d:"M0 0h48v48H0V0z",fill:"none"}},{F:"path",T:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{F:"div",L:"ytp-error-content-wrap",
R:[{F:"div",L:"ytp-error-content-wrap-reason",Z:"{{content}}"},{F:"div",L:"ytp-error-content-wrap-subreason",Z:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.AJ=function(a){a=a.split(pDa);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({F:"br"}),b.push(d[e]);c<a.length&&b.push({F:"a",T:{href:a[c],target:a[c+1]},Z:a[c+2]})}return{F:"span",R:b}};
CJ=function(a,b,c,d,e,f,h){d=void 0===d?!1:d;e=void 0===e?!1:e;h=void 0===h?!0:h;e||(e=a.api.S().j);a=a.api.getVideoData();b=g.gF(g.BJ[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({F:"h2",Z:f});d.push(b[0]);h&&d.push({F:"br"});d.push({F:"a",T:{href:c,target:e?"_blank":null},Z:b[2]});d.push(b[4]);return{F:"span",R:d}};
qDa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.P(c[d],"click",b);a.keys.push(e)}};
rDa=function(a){for(var b=0;b<a.keys.length;b++)a.vc(a.keys[b]);a.keys=[]};
DJ=function(a){g.kz.call(this);this.G=a;this.j=new Set;this.mediaSession=navigator.mediaSession;this.P(a,"videodatachange",this.onVideoDataChange);this.P(a,"presentingplayerstatechange",this.hh);this.onVideoDataChange()};
EJ=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.j.add(b)};
sDa=function(a){EJ(a,"play",function(){a.G.playVideo()});
EJ(a,"pause",function(){a.G.pauseVideo()});
EJ(a,"seekbackward",function(){a.G.seekBy(-5*a.G.getPlaybackRate())});
EJ(a,"seekforward",function(){a.G.seekBy(5*a.G.getPlaybackRate())})};
tDa=function(a){var b,c;a=a.G.getVideoData();a=a.watchNextResponse&&a.watchNextResponse.playerOverlays||null;return null==a?void 0:null==(b=a.playerOverlayRenderer)?void 0:null==(c=b.browserMediaSession)?void 0:c.browserMediaSessionRenderer};
uDa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.r(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&(!c.width||0>=c.width||!c.height||0>=c.height||g.xv(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
vDa=function(a){var b=a.G.xb();b=b.isCued()||b.isError()?"none":g.FF(b)?"playing":"paused";a.mediaSession.playbackState=b};
FJ=function(a){g.W.call(this,{F:"div",L:"ytp-paid-content-overlay",T:{"aria-live":"assertive","aria-atomic":"true"}});this.G=a;this.videoId=null;this.B=!1;this.Rd=this.j=null;var b=a.S();a.K("enable_new_paid_product_placement")&&!g.VB(b)?(this.u=new g.W({F:"a",L:"ytp-paid-content-overlay-link",T:{href:"{{href}}",target:"_blank"},R:[{F:"div",L:"ytp-paid-content-overlay-icon",Z:"{{icon}}"},{F:"div",L:"ytp-paid-content-overlay-text",Z:"{{text}}"},{F:"div",L:"ytp-paid-content-overlay-chevron",Z:"{{chevron}}"}]}),
this.P(this.u.element,"click",this.onClick)):this.u=new g.W({F:"div",Ba:["ytp-button","ytp-paid-content-overlay-text"],Z:"{{text}}"});this.C=new g.hH(this.u,250,!1,100);g.J(this,this.u);this.u.xa(this.element);g.J(this,this.C);this.G.Yh(this.element,this);this.P(a,"videodatachange",this.onVideoDataChange);this.P(a,"presentingplayerstatechange",this.Wc)};
xDa=function(a,b){var c=Qxa(b),d=GD(b);b.bf&&a.G.qm()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.Hn(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&wDa(a,d,c,b)):c&&d&&wDa(a,d,c,b))};
wDa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.K(a.Gb,b,a);g.J(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==e?void 0:null==(l=e.urlEndpoint)?void 0:l.url;a.G.dl(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!=h?h:"#",text:c,icon:"MONEY_HAND"===f?{F:"svg",T:{fill:"none",height:"100%",
viewBox:"0 0 24 24",width:"100%"},R:[{F:"path",T:{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.CG():null})};
yDa=function(a,b){a.j&&(g.V(b,8)&&a.B?(a.B=!1,a.td(),a.j.start()):(g.V(b,2)||g.V(b,64))&&a.videoId&&(a.videoId=null))};
GJ=function(a){g.W.call(this,{F:"div",L:"ytp-spinner",R:[wJ(),{F:"div",L:"ytp-spinner-message",Z:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.ya("ytp-spinner-message");this.j=new g.K(this.show,500,this);g.J(this,this.j);this.P(a,"presentingplayerstatechange",this.onStateChange);this.P(a,"playbackstalledatstart",this.u);a=a.xb();zDa(a)?this.j.start():this.hide()};
zDa=function(a){return g.V(a,128)?!1:g.V(a,16)||g.V(a,1)?!0:!1};
g.HJ=function(a,b,c,d){d=void 0===d?!1:d;g.xG.call(this,b);var e=this;this.G=a;this.va=d;this.J=new g.kz(this);this.V=new g.hH(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.J(this,this.J);g.J(this,this.V)};
ADa=function(a){a.u&&(document.activeElement&&g.Fg(a.element,document.activeElement)&&(Hg(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.hu(a.J);a.N=void 0};
IJ=function(a,b,c){a.dh()?a.Gb():a.td(b,c)};
JJ=function(a){var b=g.Xz(a.S().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{F:"div",Ba:["ytp-unmute-icon"],R:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{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",Ba:["ytp-unmute-text"],Z:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({F:"div",Ba:["ytp-unmute-box"],R:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.HJ.call(this,a,{F:"button",Ba:["ytp-unmute","ytp-popup","ytp-button"].concat(c),R:[{F:"div",L:"ytp-unmute-inner",R:d}]},100);this.j=this.clicked=!1;this.api=a;this.api.Bb(this.element,this,51663);this.P(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.P(a,"presentingplayerstatechange",
this.hh);this.Ma("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.YA(this.api.S());g.wG(this,a);a&&BDa(this);this.B=a};
BDa=function(a){a.j||(a.j=!0,a.api.Wa(a.element,!0))};
g.LJ=function(a){g.kz.call(this);var b=this;this.api=a;this.RH=!1;this.zm=null;this.cB=!1;this.qf=null;this.UF=this.GD=!1;this.XJ=this.ZJ=null;this.PO=NaN;this.WJ=this.Bx=!1;this.My=0;this.nF=[];var c=a.S(),d=a.Ya();this.DM=new g.K(this.dI,0,this);g.J(this,this.DM);g.iB(c)||(this.un=new g.tJ(a),g.J(this,this.un),g.II(a,this.un.element,4));if(CDa(this)){var e=new GJ(a);g.J(this,e);e=e.element;g.II(a,e,4)}var f=a.getVideoData();this.Qd=new rJ(d,function(l){return b.SA(l)},f,c.bf,XB(c));
g.J(this,this.Qd);this.Qd.subscribe("autohideupdate",this.Uk,this);if(!c.disablePaidContentOverlay){var h=new FJ(a);g.J(this,h);g.II(a,h.element,4)}this.KD=new JJ(a);g.J(this,this.KD);g.II(this.api,this.KD.element,2);this.fH=this.api.isMutedByMutedAutoplay();this.P(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.CD=new g.K(this.Zv,200,this);g.J(this,this.CD);this.DH=f.videoId;this.WQ=new g.K(function(){b.My=0},350);
g.J(this,this.WQ);this.hB=new g.K(function(){b.WJ||KJ(b)},350,this);
g.J(this,this.hB);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.N(f,"ytp-color-white")}g.iB(c)&&g.N(f,"ytp-music-player");!a.K("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new DJ(a),g.J(this,f));this.P(a,"appresize",this.wb);this.P(a,"presentingplayerstatechange",this.hh);this.P(a,"videodatachange",this.onVideoDataChange);this.P(a,"videoplayerreset",this.vZ);this.P(a,"autonavvisibility",
function(){b.Fo()});
this.P(a,"sizestylechange",function(){b.Fo()});
this.P(d,"click",this.SZ,this);this.P(d,"dblclick",this.TZ,this);c.eb&&(this.P(d,"gesturechange",this.UZ,this),this.P(d,"gestureend",this.VZ,this));this.Sp=[d.tx];this.un&&this.Sp.push(this.un.element);e&&this.Sp.push(e)};
MJ=function(a,b){if(!b)return!1;var c=a.api.Hd();if(c.Hq()&&(c=c.mf())&&g.Fg(c,b))return c.controls;for(c=0;c<a.Sp.length;c++)if(g.Fg(a.Sp[c],b))return!1;return g.eo(b,"ytp-player-content")||g.eo(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
DDa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.Ya().SB||!1)&&a.api.S().isMobile&&NJ&&11<=$D;a=a.api.S().I&&NJ;return!(!b&&!a)};
OJ=function(a,b){return!MJ(a,lt(b))&&g.wH(b)};
KJ=function(a){a.Qd.Mm();if(a.GD&&a.UF)a.UF=!1;else if(!a.api.S().Da&&!a.fm()){var b=a.api.xb();g.V(b,2)&&g.CI(a.api)||a.Ns(b);if(!a.api.S().eb||b.isCued()||g.V(b,1024)){var c=a.api.tD();g.vr("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.V(b,1024);c&&(b.isCued()||d)?(g.vr("embedsRequestStorageAccessState",{isCued:b.isCued(),mka:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.vr("embedsRequestStorageAccessFailedState",{state:b.state}),a.Zv())}else a.CD.isActive()?
(a.TB(),a.CD.stop()):a.CD.start()}};
EDa=function(a,b){return g.wH(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.xb(),!g.V(b,4)||g.V(b,8)||g.V(b,2)||a.Zv(),!0):!1};
FDa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
CDa=function(a){a=Bq()&&67<=fla()&&!a.api.S().I;return!Aq("tizen")&&!VA&&!a&&!0};
PJ=function(a,b){b=void 0===b?2:b;g.iu.call(this);this.api=a;this.j=null;this.Oc=new fu(this);g.J(this,this.Oc);this.u=CBa;this.Oc.P(this.api,"presentingplayerstatechange",this.Wc);this.j=this.Oc.P(this.api,"progresssync",this.Sb);this.ul=b;1===this.ul&&this.Sb()};
QJ=function(a){g.W.call(this,{F:"button",Ba:["ytp-button","ytp-back-button"],R:[{F:"div",L:"ytp-arrow-back-icon",R:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},R:[{F:"path",T:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",Jb:!0,T:{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.wG(this,a.S().showBackButton);this.Ma("click",this.onClick)};
g.RJ=function(a){g.W.call(this,{F:"div",R:[{F:"div",L:"ytp-bezel-text-wrapper",R:[{F:"div",L:"ytp-bezel-text",Z:"{{title}}"}]},{F:"div",L:"ytp-bezel",T:{role:"status","aria-label":"{{label}}"},R:[{F:"div",L:"ytp-bezel-icon",Z:"{{icon}}"}]}]});this.G=a;this.u=new g.K(this.show,10,this);this.j=new g.K(this.hide,500,this);g.J(this,this.u);g.J(this,this.j);this.hide()};
TJ=function(a,b,c){if(0>=b){c=LG();b="muted";var d=0}else c=c?{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,T:{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",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,T:{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";SJ(a,c,b,d+"%")};
GDa=function(a,b){b=b?{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{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",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{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.gF("Speed is $RATE",{RATE:String(c)});SJ(a,b,d,c+"x")};
HDa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";SJ(a,oDa(),b)};
SJ=function(a,b,c,d){d=void 0===d?"":d;a.Ha("label",void 0===c?"":c);XB(a.G.S())?a.Ha("icon",null):a.Ha("icon",b);g.Hn(a.j);a.u.start();a.Ha("title",d);g.O(a.element,"ytp-bezel-text-hide",!d)};
VJ=function(a,b,c){g.W.call(this,{F:"button",Ba:["ytp-button","ytp-cards-button"],T:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.YA(a.S()))},R:[{F:"span",L:"ytp-cards-button-icon-default",R:[{F:"div",L:"ytp-cards-button-icon",R:[a.S().K("player_new_info_card_format")?$Aa():{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{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",L:"ytp-cards-button-title",Z:"Info"}]},{F:"span",L:"ytp-cards-button-icon-shopping",R:[{F:"div",L:"ytp-cards-button-icon",R:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",L:"ytp-svg-shadow",T:{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",L:"ytp-svg-fill",T:{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",L:"ytp-svg-shadow-fill",T:{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",
L:"ytp-cards-button-title",Z:"Shopping"}]}]});this.G=a;this.B=b;this.C=c;this.j=null;this.u=new g.hH(this,250,!0,100);g.J(this,this.u);g.O(this.C,"ytp-show-cards-title",g.YA(a.S()));this.hide();this.Ma("click",this.onClicked);this.Ma("mouseover",this.TY);UJ(this,!0)};
UJ=function(a,b){b?a.j=g.WJ(a.B.kc(),a.element):(a.j=a.j,a.j(),a.j=null)};
XJ=function(a,b,c){g.W.call(this,{F:"div",L:"ytp-cards-teaser",R:[{F:"div",L:"ytp-cards-teaser-box"},{F:"div",L:"ytp-cards-teaser-text",R:a.S().K("player_new_info_card_format")?[{F:"button",L:"ytp-cards-teaser-info-icon",T:{"aria-label":"Show cards","aria-haspopup":"true"},R:[$Aa()]},{F:"span",L:"ytp-cards-teaser-label",Z:"{{text}}"},{F:"button",L:"ytp-cards-teaser-close-button",T:{"aria-label":"Close"},R:[g.DG()]}]:[{F:"span",L:"ytp-cards-teaser-label",Z:"{{text}}"}]}]});var d=this;this.G=a;this.V=
b;this.qh=c;this.C=new g.hH(this,250,!1,250);this.j=null;this.J=new g.K(this.hZ,300,this);this.I=new g.K(this.gZ,2E3,this);this.D=[];this.u=null;this.N=new g.K(function(){d.element.style.margin="0"},250);
this.onClickCommand=this.B=null;g.J(this,this.C);g.J(this,this.J);g.J(this,this.I);g.J(this,this.N);a.S().K("player_new_info_card_format")?(g.N(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.P(this.ya("ytp-cards-teaser-close-button"),"click",this.Nj),this.P(this.ya("ytp-cards-teaser-info-icon"),"click",this.NJ),this.P(this.ya("ytp-cards-teaser-label"),"click",this.NJ)):this.Ma("click",this.NJ);this.P(c.element,"mouseover",this.xL);this.P(c.element,"mouseout",this.wL);this.P(a,"cardsteasershow",
this.s_);this.P(a,"cardsteaserhide",this.Gb);this.P(a,"cardstatechange",this.VR);this.P(a,"presentingplayerstatechange",this.VR);this.P(a,"appresize",this.lK);this.P(a,"onShowControls",this.lK);this.P(a,"onHideControls",this.xV);this.Ma("mouseenter",this.LT)};
ZJ=function(a){g.W.call(this,{F:"button",Ba:[YJ.BUTTON,YJ.TITLE_NOTIFICATIONS],T:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},R:[{F:"div",L:YJ.TITLE_NOTIFICATIONS_ON,T:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},R:[g.HG()]},{F:"div",L:YJ.TITLE_NOTIFICATIONS_OFF,T:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},R:[{F:"svg",T:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},R:[{F:"path",T:{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.Bb(this.element,this,36927);this.Ma("click",this.onClick,this);this.Ha("pressed",!1);this.Ha("label","Get notified about every new video")};
IDa=function(a,b){a.j=b;a.element.classList.toggle(YJ.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.ZE:c.XE)?(a=a.api.im())?TH(a,b):g.Vp(Error("No innertube service available when updating notification preferences.")):g.Vp(Error("No update preferences command available.")):g.Vp(Error("No video data when updating notification preferences."))};
g.aK=function(a,b,c,d,e,f,h,l,m,n,p,q,t){t=void 0===t?null:t;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 u=q.S();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.dB(u)||g.hB(u))c.target=u.J;g.W.call(this,{F:"div",Ba:["ytp-button","ytp-sb"],R:[{F:"a",L:"ytp-sb-subscribe",T:c,R:[{F:"div",L:"ytp-sb-text",R:[{F:"div",L:"ytp-sb-icon"},a]},b?{F:"div",L:"ytp-sb-count",Z:b}:""]}]});f&&g.N(this.element,
"ytp-sb-classic");this.channelId=h;this.j=t}else{p=u.userDisplayName&&g.dB(u)&&!u.K("subscribe_tooltipkillswitch");g.W.call(this,{F:"div",Ba:["ytp-button","ytp-sb"],R:[{F:"div",L:"ytp-sb-subscribe",T:p?{title:g.gF("Subscribe as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":aC(u),"data-tooltip-opaque":String(g.YA(u)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},R:[{F:"div",L:"ytp-sb-text",R:[{F:"div",L:"ytp-sb-icon"},a]},b?
{F:"div",L:"ytp-sb-count",Z:b}:""]},{F:"div",L:"ytp-sb-unsubscribe",T:p?{title:g.gF("Subscribed as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":aC(u),"data-tooltip-opaque":String(g.YA(u)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},R:[{F:"div",L:"ytp-sb-text",R:[{F:"div",L:"ytp-sb-icon"},c]},d?{F:"div",L:"ytp-sb-count",Z:d}:""]}]});var x=this;this.channelId=h;this.j=t;var y=this.ya("ytp-sb-subscribe"),z=this.ya("ytp-sb-unsubscribe");
f&&g.N(this.element,"ytp-sb-classic");if(e){l?this.u():this.B();var D=function(){var G=x.channelId;if(m||n){var L={c:G};if(q.S().K("embeds_botguard_with_subscribe_killswitch"))L="";else{var aa;g.gI.isInitialized()&&(aa=iCa(L));L=aa||""}if(aa=q.getVideoData())if(aa=aa.subscribeCommand){var M=q.im();M?(TH(M,aa,{botguardResponse:L,feature:m}),q.La("SUBSCRIBE",G)):g.Vp(Error("No innertube service available when updating subscriptions."))}else g.Vp(Error("No subscribe command in videoData."));else g.Vp(Error("No video data available when updating subscription."))}z.focus();
z.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},H=function(){var G=x.channelId;
if(m||n){var L=q.getVideoData();TH(q.im(),L.unsubscribeCommand,{feature:m});q.La("UNSUBSCRIBE",G)}y.focus();y.removeAttribute("aria-hidden");z.setAttribute("aria-hidden","true")};
this.P(y,"click",D);this.P(z,"click",H);this.P(y,"keypress",function(G){13===G.keyCode&&D(G)});
this.P(z,"keypress",function(G){13===G.keyCode&&H(G)});
this.P(q,"SUBSCRIBE",this.u);this.P(q,"UNSUBSCRIBE",this.B);this.j&&p&&(this.tooltip=this.j.kc(),$J(this.tooltip),g.Be(this,g.WJ(this.tooltip,y)),g.Be(this,g.WJ(this.tooltip,z)))}else g.N(y,"ytp-sb-disabled"),g.N(z,"ytp-sb-disabled")}};
bK=function(a,b){g.W.call(this,{F:"div",L:"ytp-title-channel",R:[{F:"div",L:"ytp-title-beacon"},{F:"a",L:"ytp-title-channel-logo",T:{href:"{{channelLink}}",target:a.S().J,"aria-label":"{{channelLogoLabel}}"}},{F:"div",L:"ytp-title-expanded-overlay",T:{"aria-hidden":"{{flyoutUnfocusable}}"},R:[{F:"div",L:"ytp-title-expanded-heading",R:[{F:"h2",L:"ytp-title-expanded-title",R:[{F:"a",Z:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:a.S().J,tabIndex:"{{channelTitleFocusable}}"}}]},{F:"h3",
L:"ytp-title-expanded-subtitle",Z:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.I=b;this.channel=this.ya("ytp-title-channel");this.j=this.ya("ytp-title-channel-logo");this.C=this.ya("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.D=g.YA(this.api.S());a.Bb(this.j,this,36925);this.D&&JDa(this);this.P(a,"videodatachange",this.Ea);this.P(a,"videoplayerreset",this.Ea);this.Ea()};
JDa=function(a){var b=a.api.S(),c=a.api.getVideoData();if(!b.ze){var d=b.authUser?null:HBa(),e=new g.aK("Subscribe",null,"Subscribed",null,!0,!1,c.lk,c.subscribed,"channel_avatar",null,d,a.api,a.I);a.subscribeButton=e;g.J(a,e);e.xa(a.C);a.api.Bb(e.element,a,36926);e.hide();a.P(e.element,"click",function(){a.api.sb(e.element)});
var f=new ZJ(a.api);a.u=f;g.J(a,f);f.xa(a.C);f.hide();a.P(a.api,"SUBSCRIBE",function(){c.aj&&f.show()});
a.P(a.api,"UNSUBSCRIBE",function(){c.aj&&(f.hide(),IDa(f,!1))})}a.Ha("flyoutUnfocusable","true");
a.Ha("channelTitleFocusable","-1");b.isMobile||b.Je?a.P(a.j,"click",function(h){KDa(a)&&(h.preventDefault(),a.isExpanded()?a.OF():a.oG());a.api.sb(a.j)}):(a.P(a.channel,"mouseenter",a.oG),a.P(a.channel,"mouseleave",a.OF),a.P(a.channel,"focusin",a.oG),a.P(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.OF()}),a.P(a.j,"click",function(){a.api.sb(a.j)}));
a.B=new g.K(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.J(a,a.B);a.P(a.channel,LDa,function(){MDa(a)});
a.P(a.api,"onHideControls",a.eJ);a.P(a.api,"appresize",a.eJ);a.P(a.api,"fullscreentoggled",a.eJ)};
MDa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
KDa=function(a){var b=a.api.getPlayerSize();return a.D&&524<=b.width};
NDa=function(a,b){var c={};a.api.S().oa&&g.nI(c,a.api.S().loaderUrl);return g.Mh(b,g.mI(c,"emb_ch_name_ex"))};
g.cK=function(a,b,c,d){g.xG.call(this,a);this.priority=b;c&&this.pg(c);d&&this.Jd(d)};
g.dK=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",Ba:b,T:a,R:[{F:"div",L:"ytp-menuitem-icon",Z:"{{icon}}"},{F:"div",L:"ytp-menuitem-label",Z:"{{label}}"},{F:"div",L:"ytp-menuitem-content",Z:"{{content}}"}]}};
eK=function(a,b){a.Ha("icon",b)};
fK=function(a,b,c,d,e,f){var h={F:"div",L:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={F:"div",L:"ytp-panel-header",R:[{F:"div",Ba:["ytp-panel-back-button-container"],R:[{T:{"aria-label":"Back to previous menu"},F:"button",Ba:["ytp-button",l]}]},{T:{tabindex:"0"},F:"span",Ba:[m],R:[c]}]};if(e){var p="ytp-panel-options";n.R.push({F:"button",Ba:["ytp-button",p],R:[d]})}h.R=[n]}d=!1;f&&(f={F:"div",L:"ytp-panel-footer",R:[f]},d=!0,h.R?h.R.push(f):h.R=[f]);g.xG.call(this,
h);this.content=b;d&&h.R?b.xa(this.element,h.R.length-1):b.xa(this.element);this.mO=!1;this.OW=d;c&&(c=this.ya(l),m=this.ya(m),this.P(c,"click",this.CP),this.P(m,"click",this.CP),this.mO=!0,e&&(p=this.ya(p),this.P(p,"click",e)));b.subscribe("size-change",this.IP,this);this.P(a,"fullscreentoggled",this.IP);g.O(this.element,"ytp-panel-min-width-killswitch",a.S().K("player_panel_min_width_killswitch"));this.G=a};
ODa=function(a,b){var c=new g.xG({F:"div",L:"ytp-multi-item-panel"});a.content.xa(c.element);b.xa(c.element);a.content=c;c.xa(a.element);g.J(a,c)};
g.gK=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.xG({F:"div",L:"ytp-panel-menu",T:h});fK.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.J(this,this.menuItems)};
g.hK=function(a){for(var b=g.r(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.vI,a);a.items=[];g.Bg(a.menuItems.element);a.menuItems.X("size-change")};
PDa=function(a,b){return b.priority-a.priority};
iK=function(a){var b=g.dK({"aria-haspopup":"true"});g.cK.call(this,b,a);this.Ma("keydown",this.j)};
jK=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
kK=function(a,b){g.cK.call(this,g.dK({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{F:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Ma("click",this.onClick)};
lK=function(a,b){g.W.call(this,{F:"div",L:"ytp-user-info-panel",T:{"aria-label":"User info"},R:a.S().authUser&&!a.K("embeds_web_always_enable_signed_out_state")?[{F:"div",L:"ytp-user-info-panel-icon",Z:"{{icon}}"},{F:"div",L:"ytp-user-info-panel-content",R:[{F:"div",L:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable}}",role:"text"},Z:"{{watchingAsUsername}}"},{F:"div",L:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Z:"{{watchingAsEmail}}"}]}]:[{F:"div",L:"ytp-user-info-panel-icon",
Z:"{{icon}}"},{F:"div",L:"ytp-user-info-panel-content",R:[{F:"div",R:[{F:"text",T:{tabIndex:"{{userInfoFocusable}}"},Z:"Signed out"}]},{F:"div",L:"ytp-user-info-panel-login",R:[{F:"a",T:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Z:a.S().ze?"":"Sign in on YouTube"}]}]}]});this.Oa=a;this.j=b;a.S().authUser||a.S().ze||(a=this.ya("ytp-user-info-panel-login"),this.P(a,"click",this.OT));this.closeButton=new g.W({F:"button",Ba:["ytp-collapse","ytp-button"],T:{title:"Close"},R:[g.fBa()]});this.closeButton.xa(this.element);
g.J(this,this.closeButton);this.P(window,"blur",this.hide);this.P(document,"click",this.NT);this.Ea()};
mK=function(a,b,c,d){g.gK.call(this,a);this.jb=c;this.Cc=d;this.getVideoUrl=new iK(6);this.Jk=new iK(5);this.Gk=new iK(4);this.Nb=new iK(3);this.wz=new g.cK(g.dK({href:"{{href}}",target:this.G.S().J},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.cK(g.dK(),1,"Stats for nerds");this.pu=new g.xG({F:"div",Ba:["ytp-copytext","ytp-no-contextmenu"],T:{draggable:"false",tabindex:"1"},Z:"{{text}}"});this.eN=new fK(this.G,this.pu);this.Vz=this.Hp=null;g.YA(this.G.S())&&this.G.K("embeds_web_enable_user_info_in_context_menu")&&
(this.ek=new g.cK(g.dK(),8,"Account"),g.J(this,this.ek),this.Bc(this.ek,!0),this.ek.Ma("click",this.f_,this),a.Bb(this.ek.element,this.ek,137682));this.G.S().yl&&(this.Ij=new kK("Loop",7),g.J(this,this.Ij),this.Bc(this.Ij,!0),this.Ij.Ma("click",this.aZ,this),a.Bb(this.Ij.element,this.Ij,28661));g.J(this,this.getVideoUrl);this.Bc(this.getVideoUrl,!0);this.getVideoUrl.Ma("click",this.QY,this);a.Bb(this.getVideoUrl.element,this.getVideoUrl,28659);g.J(this,this.Jk);this.Bc(this.Jk,!0);this.Jk.Ma("click",
this.RY,this);a.Bb(this.Jk.element,this.Jk,28660);g.J(this,this.Gk);this.Bc(this.Gk,!0);this.Gk.Ma("click",this.PY,this);a.Bb(this.Gk.element,this.Gk,28658);g.J(this,this.Nb);this.Bc(this.Nb,!0);this.Nb.Ma("click",this.OY,this);g.J(this,this.wz);this.Bc(this.wz,!0);this.wz.Ma("click",this.OZ,this);g.J(this,this.showVideoInfo);this.Bc(this.showVideoInfo,!0);this.showVideoInfo.Ma("click",this.g_,this);g.J(this,this.pu);this.pu.Ma("click",this.CY,this);g.J(this,this.eN);b=document.queryCommandSupported&&
document.queryCommandSupported("copy");43<=Jb("Chromium")&&(b=!0);40>=Jb("Firefox")&&(b=!1);b&&(this.Hp=new g.W({F:"textarea",L:"ytp-html5-clipboard",T:{readonly:""}}),g.J(this,this.Hp),this.Hp.xa(this.element));var e;null==(e=this.ek)||eK(e,cBa());var f;null==(f=this.Ij)||eK(f,{F:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},R:[{F:"path",T:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});eK(this.Nb,{F:"svg",T:{height:"24",viewBox:"0 0 24 24",
width:"24"},R:[{F:"path",T:{"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"}}]});eK(this.wz,{F:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},R:[{F:"path",T:{"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"}}]});eK(this.showVideoInfo,ZAa());this.P(a,"onLoopChange",this.onLoopChange);this.P(a,"videodatachange",this.onVideoDataChange);QDa(this);this.wJ(this.G.getVideoData())};
oK=function(a,b){var c=!1;if(a.Hp){var d=a.Hp.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.jb.Gb():(a.pu.Jd(b,"text"),g.nK(a.jb,a.eN),xJ(a.pu.element),a.Hp&&(a.Hp=null,QDa(a)));return c};
QDa=function(a){var b=!!a.Hp;a.Nb.pg(b?"Copy debug info":"Get debug info");jK(a.Nb,!b);a.Gk.pg(b?"Copy embed code":"Get embed code");jK(a.Gk,!b);a.getVideoUrl.pg(b?"Copy video URL":"Get video URL");jK(a.getVideoUrl,!b);a.Jk.pg(b?"Copy video URL at current time":"Get video URL at current time");jK(a.Jk,!b);eK(a.Gk,b?XAa():null);eK(a.getVideoUrl,b?FG():null);eK(a.Jk,b?FG():null)};
g.pK=function(a,b){g.HJ.call(this,a,{F:"div",Ba:["ytp-popup",b||""]},100,!0);this.j=[];this.I=this.C=null;this.zA=this.maxWidth=0;this.size=new g.cg(0,0);this.Ma("keydown",this.PT)};
RDa=function(a){var b=a.j[a.j.length-1];if(b){g.kl(a.element,a.maxWidth||"100%",a.zA||"100%");b.G.S().K("player_panel_min_width_killswitch")&&g.al(b.element,"minWidth","250px");g.al(b.element,"width","");g.al(b.element,"height","");g.al(b.element,"maxWidth","100%");g.al(b.element,"maxHeight","100%");g.al(b.content.element,"height","");var c=g.ll(b.element);c.width+=1;c.height+=1;g.al(b.element,"width",c.width+"px");g.al(b.element,"height",c.height+"px");g.al(b.element,"maxWidth","");g.al(b.element,
"maxHeight","");var d=0;b.mO&&(d=b.ya("ytp-panel-header"),d=g.ll(d).height);var e=0;b.OW&&(e=b.ya("ytp-panel-footer"),g.al(e,"width",c.width+"px"),e=g.ll(e).height);g.al(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0<d.offsetWidth-d.clientWidth&&0<e&&(c.width+=e,g.al(b.element,"width",c.width+"px")));a.size=c}};
g.nK=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);qK(a,c,b)};
g.EK=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];qK(a,b,c,!0)}};
qK=function(a,b,c,d){SDa(a);b&&(b.unsubscribe("size-change",a.jw,a),b.unsubscribe("back",a.Ji,a));c.subscribe("size-change",a.jw,a);c.subscribe("back",a.Ji,a);if(a.ob){g.N(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.xa(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;RDa(a);g.kl(a.element,e);a.C=new g.K(function(){TDa(a,b,c,d)},20,a);
a.C.start()}else c.xa(a.element),b&&b.detach()};
TDa=function(a,b,c,d){a.C.dispose();a.C=null;g.N(a.element,"ytp-popup-animating");d?(g.N(b.element,"ytp-panel-animate-forward"),g.go(c.element,"ytp-panel-animate-back")):(g.N(b.element,"ytp-panel-animate-back"),g.go(c.element,"ytp-panel-animate-forward"));g.kl(a.element,a.size);a.I=new g.K(function(){g.go(a.element,"ytp-popup-animating");b.detach();g.ho(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.I.dispose();a.I=null},250,a);
a.I.start()};
SDa=function(a){a.C&&g.Gn(a.C);a.I&&g.Gn(a.I)};
g.FK=function(a,b,c){g.pK.call(this,a);this.ma=b;this.Cc=c;this.B=new g.kz(this);this.W=new g.K(this.x_,1E3,this);this.Y=this.D=null;g.J(this,this.B);g.J(this,this.W);a.Bb(this.element,this,28656);g.N(this.element,"ytp-contextmenu");UDa(this);this.hide()};
UDa=function(a){g.hu(a.B);if("gvn"!==a.G.S().playerStyle){var b=a.G.Ya();a.B.P(b,"contextmenu",a.yY);a.B.P(b,"touchstart",a.RT,null,!0);a.B.P(b,"touchmove",a.kQ,null,!0);a.B.P(b,"touchend",a.kQ,null,!0)}};
VDa=function(a){a.G.isFullscreen()?g.II(a.G,a.element,10):a.xa(document.body)};
g.GK=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{F:"button",Ba:["ytp-button","ytp-copylink-button"],T:{title:"{{title-attr}}","data-tooltip-opaque":String(g.YA(a.S()))},R:[{F:"div",L:"ytp-copylink-icon",Z:"{{icon}}"},{F:"div",L:"ytp-copylink-title",Z:"Copy link",T:{"aria-hidden":"true"}}]});this.api=a;this.j=b;this.u=c;this.visible=!1;this.tooltip=this.j.kc();b=a.S();$J(this.tooltip);g.O(this.element,"ytp-show-copylink-title",g.YA(b)&&!g.iB(b));a.Bb(this.element,this,86570);this.Ma("click",
this.onClick);this.P(a,"videodatachange",this.Ea);this.P(a,"videoplayerreset",this.Ea);this.P(a,"appresize",this.Ea);this.Ea();g.Be(this,g.WJ(this.tooltip,this.element))};
WDa=function(a){a.Ha("icon",AG());if(a.api.S().isMobile)HK(a.tooltip,a.element,"Link copied to clipboard");else{a.Ha("title-attr","Link copied to clipboard");IK(a.tooltip);HK(a.tooltip,a.element);var b=a.Ma("mouseleave",function(){a.vc(b);a.Ea();a.tooltip.Ak()})}};
XDa=function(a,b){return g.B(function(c){if(1==c.j)return g.wa(c,2),g.A(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.ya(c);var d=c.return,e=!1,f=g.zg("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(Iq){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)})};
JK=function(){g.W.call(this,{F:"div",L:"ytp-doubletap-ui",R:[{F:"div",Ba:["ytp-seek-info-container","ytp-seek-static-circle"],R:[{F:"div",L:"ytp-seek-arrows-container",R:[{F:"span",L:"ytp-seek-base-arrow"},{F:"span",L:"ytp-seek-base-arrow"},{F:"span",L:"ytp-seek-base-arrow"}]},{F:"div",L:"ytp-seek-tooltip",R:[{F:"div",L:"ytp-chapter-seek-text",Z:"{{chapterSeekText}}"},{F:"div",L:"ytp-seek-tooltip-label",Z:"{{seekTime}}"}]}]}]});this.u=new g.K(this.show,10,this);this.j=new g.K(this.hide,700,this);
g.J(this,this.u);g.J(this,this.j);this.hide()};
KK=function(a){g.W.call(this,{F:"div",L:"ytp-doubletap-ui-legacy",R:[{F:"div",L:"ytp-doubletap-fast-forward-ve"},{F:"div",L:"ytp-doubletap-rewind-ve"},{F:"div",L:"ytp-doubletap-static-circle",R:[{F:"div",L:"ytp-doubletap-ripple"}]},{F:"div",L:"ytp-doubletap-overlay-a11y"},{F:"div",L:"ytp-doubletap-seek-info-container",R:[{F:"div",L:"ytp-doubletap-arrows-container",R:[{F:"span",L:"ytp-doubletap-base-arrow"},{F:"span",L:"ytp-doubletap-base-arrow"},{F:"span",L:"ytp-doubletap-base-arrow"}]},{F:"div",
L:"ytp-doubletap-tooltip",R:[{F:"div",L:"ytp-chapter-seek-text-legacy",Z:"{{seekText}}"},{F:"div",L:"ytp-doubletap-tooltip-label",Z:"{{seekTime}}"}]}]}]});this.G=a;this.B=new g.K(this.show,10,this);this.u=new g.K(this.hide,700,this);this.j=this.ya("ytp-doubletap-static-circle");g.J(this,this.B);g.J(this,this.u);this.hide();this.C=this.ya("ytp-doubletap-fast-forward-ve");this.D=this.ya("ytp-doubletap-rewind-ve");this.G.Bb(this.C,this,28240);this.G.Bb(this.D,this,28239);this.G.Wa(this.C,!0);this.G.Wa(this.D,
!0)};
YDa=function(a,b){b=g.gF("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Ha("seekTime",b)};
LK=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
MK=function(a,b){var c=0;a=g.r(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
ZDa=function(a,b){for(var c=0,d=g.r(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b<e.timeRangeStartMillis)return null;if(b>=e.timeRangeStartMillis&&b<e.timeRangeStartMillis+e.j)break;c++}c+1<a.length&&a[c+1].timeRangeStartMillis<=b&&c++;return c<a.length?c:null};
$Da=function(a,b){b=MK(a,b)+1;return b<a.length?b:-1};
aEa=function(a,b){return MK(a,b)-1};
bEa=function(a,b){return new g.Av(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
g.OK=function(a,b,c,d,e,f,h,l){g.kz.call(this);var m=this;this.api=a;this.contextMenu=c;this.Qd=d;this.Cc=e;this.j=f;this.C=h;this.uc=l;this.B=new g.K(function(){cEa(m,!1)},1E3);
this.u="";g.J(this,this.B);this.P(b,"mousedown",function(){NK(m,!1)});
this.P(c.element,"mousedown",function(){NK(m,!1)});
this.P(b,"keydown",this.fO);this.P(c.element,"keydown",this.fO);this.P(b,"keyup",this.gO);this.P(c.element,"keyup",this.gO)};
NK=function(a,b){g.O(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.O(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
QK=function(a,b,c,d){var e=g.dJ(a.api.ib());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.PK.length;h++){var l=g.PK[h];if(l.option===b){e=l.options;break}}h=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(h=l);if(d)if(c){if(0===h)return}else if(h===e.length-1)return;d={};d[b]=e[(h+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);cEa(a,!0);a.B.start()}};
dEa=function(a,b){a.api.Qf();if(g.V(a.api.xb(),4)){var c=a.api.getVideoData().B;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
cEa=function(a,b){g.dJ(a.api.ib())&&a.api.setOption("captions","sampleSubtitles",b)};
RK=function(a,b,c){g.W.call(this,{F:"button",Ba:["ytp-button","ytp-overflow-button"],T:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},R:[{F:"div",L:"ytp-overflow-icon",R:[{F:"svg",T:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},R:[{F:"path",T:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var d=this;this.G=a;this.j=b;this.visible=!1;this.tooltip=this.j.kc();
a.Bb(this.element,this,16499);this.P(a,"appresize",this.Ea);this.P(a,"fullscreentoggled",this.Ea);this.P(a,"presentingplayerstatechange",this.Ea);this.Ea();g.Be(this,g.WJ(this.tooltip,this.element));this.Ma("click",function(){a.sb(d.element);IJ(c,d.element,!1)});
this.P(c.closeButton,"click",function(){d.focus()})};
SK=function(a,b){g.HJ.call(this,a,{F:"div",L:"ytp-overflow-panel",T:{id:sG(),role:"dialog"},R:[{F:"div",L:"ytp-overflow-panel-content",R:[{F:"div",L:"ytp-overflow-panel-action-buttons",Z:"{{buttons}}"}]},{F:"button",Ba:["ytp-overflow-panel-close","ytp-button"],T:{title:"Close"},R:[g.DG()]}]},250);this.actionButtons=[];this.tooltip=b.kc();this.j=this.ya("ytp-overflow-panel-content");this.closeButton=this.ya("ytp-overflow-panel-close");this.P(this.closeButton,"click",this.Gb);g.Be(this,g.WJ(this.tooltip,
this.closeButton));this.Ma("click",this.ST);this.P(a,"videoplayerreset",this.hide);this.P(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
TK=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.Ha("buttons",a.actionButtons))};
eEa=function(a,b){a=g.r(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.dc(b)};
UK=function(a,b,c){var d=g.RI(b,c),e=a.S(),f=d.zf("default.jpg");g.W.call(this,{F:"a",Ba:["ytp-video-menu-item","ytp-button"],T:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},R:[{F:"div",L:"ytp-video-menu-item-index",Z:String(c+1)},{F:"div",L:"ytp-video-menu-item-now-playing",Z:"\u25b6"},{F:"div",L:"ytp-video-menu-item-thumbnail",T:{style:f?"background-image: url("+f+");":void 0}},{F:"div",L:"ytp-video-menu-item-title",Z:d.title},{F:"div",
L:"ytp-video-menu-item-author",Z:d.author}]});this.api=a;this.index=c;this.Ma("click",this.onClick)};
VK=function(a){g.HJ.call(this,a,{F:"div",L:"ytp-playlist-menu",T:{role:"dialog",id:sG()},R:[{F:"div",L:"ytp-playlist-menu-header",R:[{F:"div",L:"ytp-playlist-menu-title",R:[a.S().C?{F:"span",L:"ytp-playlist-menu-title-name",Z:"{{title}}"}:{F:"a",L:"ytp-playlist-menu-title-name",T:{href:"{{playlisturl}}"},Z:"{{title}}"},{F:"button",Ba:["ytp-playlist-menu-close","ytp-button"],T:{"aria-label":"Close"},R:[g.DG()]}]},{F:"div",L:"ytp-playlist-menu-subtitle",Z:"{{subtitle}}"}]},{F:"div",L:"ytp-playlist-menu-items",
T:{role:"menu"}}]},250);this.api=a;this.selected=this.C=this.playlist=null;this.items=this.ya("ytp-playlist-menu-items");this.B=new g.kz(this);this.j=[];var b=this.ya("ytp-playlist-menu-close");this.P(b,"click",this.Gb);b=this.ya("ytp-playlist-menu-title-name");a.S().C||this.P(b,"click",this.w_);g.J(this,this.B);this.hide()};
WK=function(a,b,c){g.W.call(this,{F:"button",Ba:["ytp-playlist-menu-button","ytp-button"],T:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},R:[{F:"div",L:"ytp-playlist-menu-button-icon",R:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,T:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{F:"div",L:"ytp-playlist-menu-button-text",Z:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.kc();a.Bb(this.element,this,70344);this.P(a,"videodatachange",this.j);this.P(a,"onPlaylistUpdate",this.j);this.P(a,"presentingplayerstatechange",this.Ea);this.P(a,"appresize",this.Ea);this.hide();this.j();g.Be(this,g.WJ(this.tooltip,this.element));this.Ma("click",function(){a.sb(d.element);IJ(c,d.element,!1)})};
XK=function(a,b,c){g.W.call(this,{F:"div",L:"ytp-promotooltip-wrapper",R:[{F:"div",L:"ytp-promotooltip-container",R:[{F:"div",L:"ytp-promotooltip-content",R:[{F:"div",L:"ytp-promotooltip-title",Z:"{{title}}"},{F:"div",L:"ytp-promotooltip-details",Z:"{{details}}"}]},{F:"div",L:"ytp-promotooltip-buttons",R:[{F:"div",L:"ytp-promotooltip-dismiss-button",Z:"{{dismissButtonText}}",T:{tabindex:"0"}},{F:"div",L:"ytp-promotooltip-accept-button",Z:"{{acceptButtonText}}",T:{tabindex:"0","aria-haspopup":"true"}}]}]},
{F:"div",L:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.J=b;this.G=c;this.j=this.B=null;this.title=this.ya("ytp-promotooltip-title");this.details=this.ya("ytp-promotooltip-details");this.acceptButton=this.ya("ytp-promotooltip-accept-button");this.dismissButton=this.ya("ytp-promotooltip-dismiss-button");this.u=this.D=!1;this.C=!0;this.V=this.I=this.N=!1;g.wG(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.u=!!a)this.G.Yh(this.element,this,!0),this.G.dl(this.element,a);this.P(c,
"onShowControls",this.BY);this.P(c,"onHideControls",this.AY);this.P(c,"resize",this.wb);this.P(this.acceptButton,"click",this.QX);this.P(this.dismissButton,"click",this.HY);this.P(document,"click",this.TT)};
fEa=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=0<b.length?b[0]:null;var c=g.rg("ytp-chrome-bottom"),d=g.rg("ytp-ad-module");a.C=!(null==c||!c.contains(b));a.N=!(null==d||!d.contains(b));return b};
$K=function(a,b,c){if(!a.D){if(b){a.tooltipRenderer=b;b=a.tooltipRenderer.text;var d=!1,e;(null==b?0:null==(e=b.runs)?0:e.length)&&b.runs[0].text&&(a.update({title:b.runs[0].text.toString()}),d=!0);g.ml(a.title,d);b=a.tooltipRenderer.detailsText;e=!1;var f;if((null==b?0:null==(f=b.runs)?0:f.length)&&b.runs[0].text){d=b.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(-1<f)if(a.tooltipRenderer.targetId){b=[];d=d.split("$TARGET_ICON");var h=new g.tG({F:"span",L:"ytp-promotooltip-details-icon",
R:[gEa[a.tooltipRenderer.targetId]]});g.J(a,h);for(var l=[],m=g.r(d),n=m.next();!n.done;n=m.next())n=new g.tG({F:"span",L:"ytp-promotooltip-details-component",Z:n.value}),g.J(a,n),l.push(n);2===d.length?(b.push(l[0].element),b.push(h.element),b.push(l[1].element)):1===d.length&&(0===f?(b.push(h.element),b.push(l[0].element)):(b.push(l[0].element),b.push(h.element)));f=b.length?b:null}else f=null;else f=d;if(f){if("string"!==typeof f)for(g.Bg(a.details),e=g.r(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value);
else a.update({details:f});e=!0}}g.ml(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,t;(null==e?0:null==(p=e.buttonRenderer)?0:null==(q=p.text)?0:null==(t=q.runs)?0:t.length)&&e.buttonRenderer.text.runs[0].text&&(a.update({acceptButtonText:e.buttonRenderer.text.runs[0].text.toString()}),f=!0);g.ml(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var u,x,y;(null==p?0:null==(u=p.buttonRenderer)?0:null==(x=u.text)?0:null==(y=x.runs)?0:y.length)&&p.buttonRenderer.text.runs[0].text&&
(a.update({dismissButtonText:p.buttonRenderer.text.runs[0].text.toString()}),q=!0);g.ml(a.dismissButton,q)}c&&(a.B=c);a.j=fEa(a);a.I=!1;a.G.S().K("web_player_hide_nitrate_promo_tooltip")||g.wG(a,!0);YK(a);a.V||(a.V=!0,ZK(a,0));a.u&&a.G.Wa(a.element,a.ob)}};
aL=function(a){g.wG(a,!1);a.u&&a.G.Wa(a.element,a.ob)};
ZK=function(a,b){var c=a.tooltipRenderer.promoConfig;if(c){switch(b){case 0:var d;if(null==(d=c.impressionEndpoints)?0:d.length)var e=c.impressionEndpoints[0];break;case 1:e=c.acceptCommand;break;case 2:e=c.dismissCommand}var f,h;if(null==(f=e)?0:null==(h=f.feedbackEndpoint)?0:h.feedbackToken)b={feedbackTokens:[e.feedbackEndpoint.feedbackToken]},a=a.G.im(),(null==a?0:LBa(e,a.C))&&TH(a,e,b)}};
hEa=function(a){var b,c,d,e,f,h=(null==(b=a.acceptButton)?void 0:null==(c=b.buttonRenderer)?void 0:null==(d=c.text)?void 0:null==(e=d.runs)?void 0:e.length)&&!(null==(f=a.acceptButton)||!f.buttonRenderer.text.runs[0].text),l,m,n,p,q;b=(null==(l=a.dismissButton)?void 0:null==(m=l.buttonRenderer)?void 0:null==(n=m.text)?void 0:null==(p=n.runs)?void 0:p.length)&&!(null==(q=a.dismissButton)||!q.buttonRenderer.text.runs[0].text);return h||b};
YK=function(a){var b;if(!(b=!a.j)){b=a.j;var c=window.getComputedStyle(b);b="none"===c.display||"hidden"===c.visibility||"true"===b.getAttribute("aria-hidden")}if(b||a.G.sf())g.wG(a,!1);else if(b=g.ll(a.j),b.width&&b.height){a.J.As(a.element,a.j);var d=a.G.Ya().getPlayerSize().height;c=g.ll(a.ya("ytp-promotooltip-container")).height;var e=d-c-b.height-12;a.C||(e-=d-a.J.Dj().height);a.element.style.top=e+"px";d=a.ya("ytp-promotooltip-pointer");e=g.jl(a.j,a.G.getRootNode());var f=Number(a.element.style.left.replace(/[^\d\.]/g,
""));a=a.G.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.wG(a,!1)};
bL=function(a,b){g.W.call(this,{F:"button",Ba:["ytp-replay-button","ytp-button"],T:{title:"Replay"},R:[g.JG()]});this.G=a;this.P(a,"presentingplayerstatechange",this.onStateChange);this.Ma("click",this.onClick,this);a=a.xb();g.wG(this,g.V(a,2));g.WJ(b.kc(),this.element)};
g.cL=function(a,b,c,d){d=void 0===d?240:d;g.W.call(this,{F:"button",Ba:["ytp-button","ytp-share-button"],T:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.YA(a.S()))},R:[{F:"div",L:"ytp-share-icon",Z:"{{icon}}"},{F:"div",L:"ytp-share-title",Z:"Share"}]});this.api=a;this.j=b;this.B=c;this.u=d;this.visible=!1;this.tooltip=this.j.kc();b=a.S();a.Bb(this.element,this,28664);this.Ma("click",this.onClick);this.P(a,"videodatachange",this.Ea);this.P(a,"videoplayerreset",
this.Ea);this.P(a,"appresize",this.Ea);this.P(a,"presentingplayerstatechange",this.Ea);this.Ea();g.O(this.element,"ytp-show-share-title",g.YA(b)&&!g.iB(b));g.Be(this,g.WJ(this.tooltip,this.element))};
iEa=function(a){"InvalidStateError"!==a.name&&g.S(a)};
g.dL=function(a,b){var c=sG(),d=a.S();c={F:"div",L:"ytp-share-panel",T:{id:sG(),role:"dialog","aria-labelledby":c},R:[{F:"div",L:"ytp-share-panel-inner-content",R:[{F:"div",L:"ytp-share-panel-title",T:{id:c},Z:"Share"},{F:"a",Ba:["ytp-share-panel-link","ytp-no-contextmenu"],T:{href:"{{link}}",target:d.J,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},Z:"{{linkText}}"},{F:"label",L:"ytp-share-panel-include-playlist",R:[{F:"input",L:"ytp-share-panel-include-playlist-checkbox",T:{type:"checkbox",
checked:!0}},"Include playlist"]},{F:"div",L:"ytp-share-panel-loading-spinner",R:[wJ()]},{F:"div",L:"ytp-share-panel-service-buttons",Z:"{{buttons}}"},{F:"div",L:"ytp-share-panel-error",Z:"An error occurred while retrieving sharing information. Please try again later."}]},{F:"button",Ba:["ytp-share-panel-close","ytp-button"],T:{title:"Close"},R:[g.DG()]}]};g.HJ.call(this,a,c,250);this.api=a;this.tooltip=b.kc();this.j=[];this.D=this.ya("ytp-share-panel-inner-content");this.closeButton=this.ya("ytp-share-panel-close");
this.P(this.closeButton,"click",this.Gb);g.Be(this,g.WJ(this.tooltip,this.closeButton));this.C=this.ya("ytp-share-panel-include-playlist-checkbox");this.P(this.C,"click",this.Ea);this.B=this.ya("ytp-share-panel-link");g.Be(this,g.WJ(this.tooltip,this.B));this.Ma("click",this.UT);this.P(a,"videoplayerreset",this.hide);this.P(a,"fullscreentoggled",this.onFullscreenToggled);this.P(a,"onLoopRangeChange",this.oX);this.hide()};
kEa=function(a,b){jEa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Go:e.Go},f++){e.Go=c[f];a:switch(e.Go.img||e.Go.iconId){case "facebook":var h={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},R:[{F:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",T:{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",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},R:[{F:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",T:{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",Ba:["ytp-share-panel-service-button","ytp-button"],T:{href:e.Go.url,target:"_blank",title:e.Go.sname||e.Go.serviceName},R:[h]}),h.Ma("click",function(m){return function(n){if(g.wH(n)){var p=m.Go.url;var q=void 0===q?{}:q;q.target=q.target||"YouTube";q.width=q.width||"600";q.height=q.height||"600";var t=q;t||(t={});q=window;var u=p instanceof g.Df?p:g.Gf("undefined"!=typeof p.href?p.href:String(p));var x=void 0!==self.crossOriginIsolated,
y="strict-origin-when-cross-origin";window.Request&&(y=(new Request("/")).referrerPolicy);var z="unsafe-url"===y;y=t.noreferrer;if(x&&y){if(z)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");y=!1}p=t.target||p.target;x=[];for(var D in t)switch(D){case "width":case "height":case "top":case "left":x.push(D+"="+t[D]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(D+"="+(t[D]?1:0))}D=x.join(",");Nb()&&
q.navigator&&q.navigator.standalone&&p&&"_self"!=p?(t=g.zg("A"),g.Uf(t,u),t.target=p,y&&(t.rel="noreferrer"),u=document.createEvent("MouseEvent"),u.initMouseEvent("click",!0,!0,q,1),t.dispatchEvent(u),q={}):y?(q=Vf("",q,p,D),u=g.Ef(u),q&&(g.YB&&g.ob(u,";")&&(u="'"+u.replace(/'/g,"%27")+"'"),q.opener=null,""===u&&(u="javascript:''"),u=g.Tf(g.yf("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.hg(u)+'">'),(t=q.document)&&
t.write&&(t.write(g.Qf(u)),t.close()))):(q=Vf(u,q,p,D))&&t.noopener&&(q.opener=null);q&&(q.opener||(q.opener=window),q.focus());g.ot(n)}}}(e)),g.Be(h,g.WJ(a.tooltip,h.element)),a.j.push(h),d++)}var l=b.more||b.moreLink;
b=new g.W({F:"a",Ba:["ytp-share-panel-service-button","ytp-button"],R:[{F:"span",L:"ytp-share-panel-service-button-more",R:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},R:[{F:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",T:{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"}}]}]}],T:{href:l,target:"_blank",title:"More"}});b.Ma("click",function(m){g.vJ(l,a.api,m)&&a.api.La("SHARE_CLICKED")});
g.Be(b,g.WJ(a.tooltip,b.element));a.j.push(b);a.Ha("buttons",a.j)};
jEa=function(a){for(var b=g.r(a.j),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.ze(c);a.j=[]};
gL=function(a,b,c){c=void 0===c?!0:c;g.W.call(this,{F:"div",L:"ytp-suggested-action"});var d=this;this.G=a;this.bb=b;this.Pa=this.J=this.j=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.Ga=new g.K(function(){d.badge.element.style.width=""},200,this);
this.W=new g.K(function(){eL(d);fL(d)},200,this);
this.dismissButton=new g.W({F:"button",Ba:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.J(this,this.dismissButton);this.I=new g.W({F:"div",L:"ytp-suggested-action-badge-expanded-content-container",R:[{F:"label",L:"ytp-suggested-action-badge-title",Z:"{{badgeLabel}}"},this.dismissButton]});g.J(this,this.I);this.badge=new g.W({F:"button",Ba:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],R:[c?{F:"div",L:"ytp-suggested-action-badge-icon"}:
"",this.I]});g.J(this,this.badge);this.badge.xa(this.element);this.N=new g.hH(this.badge,250,!1,100);g.J(this,this.N);this.ma=new g.hH(this.I,250,!1,100);g.J(this,this.ma);this.Ia=new g.Dn(this.G0,null,this);g.J(this,this.Ia);this.Y=new g.Dn(this.SV,null,this);g.J(this,this.Y);g.J(this,this.Ga);g.J(this,this.W);this.G.Yh(this.badge.element,this.badge,!0);this.G.Yh(this.dismissButton.element,this.dismissButton,!0);this.P(this.G,"onHideControls",function(){d.j=!1;fL(d);eL(d);d.pj()});
this.P(this.G,"onShowControls",function(){d.j=!0;fL(d);eL(d);d.pj()});
this.P(this.badge.element,"click",this.eI);this.P(this.dismissButton.element,"click",this.fI);this.P(this.G,"pageTransition",this.VT);this.P(this.G,"appresize",this.pj);this.P(this.G,"fullscreentoggled",this.LY);this.P(this.G,"cardstatechange",this.sY);this.P(this.G,"annotationvisibility",this.m1,this);this.P(this.G,"offlineslatestatechange",this.n1,this)};
eL=function(a){g.O(a.badge.element,"ytp-suggested-action-badge-with-controls",a.j||!a.u)};
fL=function(a,b){var c=a.J||a.j||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Ia.stop(),a.Y.stop(),a.Ga.stop(),a.Ia.start()):(g.wG(a.I,a.expanded),g.O(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),lEa(a))};
lEa=function(a){a.C&&a.G.Wa(a.badge.element,a.Hz());a.D&&a.G.Wa(a.dismissButton.element,a.Hz()&&(a.J||a.j||!a.u))};
mEa=function(a){var b=a.text||"";g.Gg(g.rg("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Sa?a.Sa:"")};
nEa=function(a,b){b?a.D&&a.G.sb(a.dismissButton.element):a.C&&a.G.sb(a.badge.element)};
hL=function(a,b){gL.call(this,a,b);var c=this;this.V=this.va=this.Da=!1;this.P(this.G,g.Cv("shopping_overlay_visible"),function(){c.uf(!0)});
this.P(this.G,g.Dv("shopping_overlay_visible"),function(){c.uf(!1)});
this.P(this.G,g.Cv("shopping_overlay_expanded"),function(){c.J=!0;fL(c)});
this.P(this.G,g.Dv("shopping_overlay_expanded"),function(){c.J=!1;fL(c)});
this.P(this.G,"changeProductsInVideoVisibility",this.xZ);this.P(this.G,"videodatachange",this.onVideoDataChange);this.P(this.G,"paidcontentoverlayvisibilitychange",this.qZ)};
iL=function(a){a.G.Df("shopping_overlay_visible");a.G.Df("shopping_overlay_expanded")};
jL=function(a){g.HJ.call(this,a,{F:"button",Ba:["ytp-skip-intro-button","ytp-popup","ytp-button"],R:[{F:"div",L:"ytp-skip-intro-button-text",Z:"Skip Intro"}]},100);var b=this;this.D=!1;this.C=new g.K(function(){b.hide()},5E3);
this.j=this.B=NaN;g.J(this,this.C);this.Y=function(){b.show()};
this.W=function(){b.hide()};
this.I=function(){var c=b.G.getCurrentTime();c>b.B/1E3&&c<b.j/1E3&&b.show()};
this.P(this.G,"videodatachange",function(c,d){b.Ep(c,d)});
this.P(this.element,"click",function(){b.G.seekTo(b.j/1E3)});
this.hide()};
kL=function(a,b){g.W.call(this,{F:"button",Ba:["ytp-airplay-button","ytp-button"],T:{title:"AirPlay"},Z:"{{icon}}"});this.G=a;this.Ma("click",this.onClick);this.P(a,"airplayactivechange",this.Ea);this.P(a,"airplayavailabilitychange",this.Ea);this.Ea();g.Be(this,g.WJ(b.kc(),this.element))};
lL=function(a,b){g.W.call(this,{F:"button",Ba:["ytp-button"],T:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},R:[{F:"div",L:"ytp-autonav-toggle-button-container",R:[{F:"div",L:"ytp-autonav-toggle-button",T:{"aria-checked":"true"}}]}]});this.G=a;this.u=[];this.j=!1;this.isChecked=!0;a.Bb(this.element,this,113681);this.P(a,"presentingplayerstatechange",this.Ow);this.Ma("click",this.onClick);this.G.S().K("web_player_autonav_toggle_always_listen")&&oEa(this);
this.tooltip=b.kc();g.Be(this,g.WJ(b.kc(),this.element));this.Ow()};
oEa=function(a){a.u.push(a.P(a.G,"videodatachange",a.Ow));a.u.push(a.P(a.G,"videoplayerreset",a.Ow));a.u.push(a.P(a.G,"onPlaylistUpdate",a.Ow));a.u.push(a.P(a.G,"autonavchange",a.yL))};
pEa=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.Ha("title",b);a.Ha("label",b);IK(a.tooltip)};
qEa=function(a){return a.G.S().K("web_player_autonav_use_server_provided_state")&&uD(a.fd())};
g.nL=function(a){g.W.call(this,{F:"div",L:"ytp-gradient-bottom"});this.j=g.zg("CANVAS");this.ctx=this.j.getContext("2d");this.B=NaN;this.j.width=1;this.u=g.iB(a.S());g.mL(this,a.Ya().getPlayerSize().height)};
g.mL=function(a,b){if(a.ctx){b=Math.floor(b*(a.u?1:.4));b=Math.max(b,47);var c=b+2;if(a.B!==c){a.B=c;a.j.height=c;a.ctx.clearRect(0,0,1,c);var d=a.ctx.createLinearGradient(0,2,0,2+b);if(a.u)d.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),d.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),d.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var e=b-42;d.addColorStop(0,"rgba(0, 0, 0, 0)");d.addColorStop(e/b,"rgba(0, 0, 0, 0.3)");d.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.ctx.fillStyle=d;a.ctx.fillRect(0,2,1,b);a.element.style.height=
c+"px";try{a.element.style.backgroundImage="url("+a.j.toDataURL()+")"}catch(f){}}}};
oL=function(a,b,c,d,e){g.W.call(this,{F:"div",L:"ytp-chapter-container",R:[{F:"button",Ba:["ytp-chapter-title","ytp-button"],R:[{F:"span",T:{"aria-hidden":"true"},L:"ytp-chapter-title-prefix",Z:"\u2022"},{F:"div",L:"ytp-chapter-title-content",Z:"{{title}}",T:{title:e,"aria-label":e}},{F:"div",L:"ytp-chapter-title-chevron",R:[{F:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},R:[{F:"path",T:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.G=a;this.C=
c;this.D="";this.currentIndex=0;this.j=void 0;this.u=!0;this.N=this.ya("ytp-chapter-container");this.B=this.ya("ytp-chapter-title");this.V=this.ya("ytp-chapter-title-content");this.updateVideoData("newdata",this.G.getVideoData());this.P(a,"videodatachange",this.updateVideoData);this.P(this.N,"click",this.onClick);this.P(a,g.Cv(d),this.Sb);this.P(a,"onLoopRangeChange",this.Sb);this.P(a,"innertubeCommand",this.onClickCommand);g.YA(this.G.S())||g.Be(this,g.WJ(b.kc(),this.V))};
pL=function(a,b,c){oL.call(this,a,b,c,"chapterCueRange","View chapter")};
rEa=function(a,b,c,d,e){var f=b.Zr/b.rows,h=Math.min(c/(b.Jy/b.columns),d/f),l=b.Jy*h,m=b.Zr*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,q=-b.column*n,t=-b.row*p;e&&45>=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 "+t+"px/"+l+"px "+m+"px"};
g.qL=function(a){g.W.call(this,{F:"div",L:"ytp-storyboard-framepreview",R:[{F:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.ya("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.kz(this);this.j=new g.hH(this,100);g.J(this,this.events);g.J(this,this.j);this.P(this.api,"presentingplayerstatechange",this.Wc)};
rL=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.P(a.api,"videodatachange",function(){rL(a,a.api.wi())}),a.events.P(a.api,"progresssync",a.Od),a.events.P(a.api,"appresize",a.D)),a.B=NaN,sL(a),a.j.show(200)):(c&&g.hu(a.events),a.j.hide(),a.j.stop())};
sL=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.Ya().getPlayerSize(),e=dD(b,d.width);c=lxa(b,e,c);c!==a.B&&(a.B=c,jxa(b,c,d.width),b=hxa(b,c,d.width),rEa(a.C,b,d.width,d.height))};
tL=function(a,b){g.W.call(this,{F:"button",Ba:["ytp-fullerscreen-edu-button","ytp-button"],R:[{F:"div",Ba:["ytp-fullerscreen-edu-text"],Z:"Scroll for details"},{F:"div",Ba:["ytp-fullerscreen-edu-chevron"],R:[{F:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},R:[{F:"path",T:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Oa=a;this.B=b;this.j=new g.hH(this,250,void 0,100);this.C=this.u=!1;a.Bb(this.element,this,61214);this.B=b;g.J(this,this.j);this.P(a,
"fullscreentoggled",this.Ea);this.P(a,"presentingplayerstatechange",this.Ea);this.Ma("click",this.onClick);this.Ea()};
g.uL=function(a,b){g.W.call(this,{F:"button",Ba:["ytp-fullscreen-button","ytp-button"],T:{title:"{{title}}"},Z:"{{icon}}"});this.G=a;this.u=b;this.message=null;this.j=g.WJ(this.u.kc(),this.element);this.B=new g.K(this.sV,2E3,this);g.J(this,this.B);this.P(a,"fullscreentoggled",this.dk);this.P(a,"presentingplayerstatechange",this.Ea);this.Ma("click",this.onClick);g.bu()&&(b=this.G.Ya(),this.P(b,mqa(),this.oI),this.P(b,eu(document),this.Wn));a.S().eb||a.S().I||this.disable();a.Bb(this.element,this,139117);
this.Ea();this.dk(a.isFullscreen())};
vL=function(a,b,c){oL.call(this,a,b,c,"timedMarkerCueRange","View key moments");this.P(a,g.Dv("timedMarkerCueRange"),this.Sb);this.P(a,"updatemarkervisibility",this.updateVideoData)};
sEa=function(a){var b,c,d=null==(b=a.G.getVideoData())?void 0:null==(c=b.Yc)?void 0:c[0];if(d)return a.C.Yc[d]};
wL=function(a,b){g.W.call(this,{F:"button",Ba:["ytp-miniplayer-button","ytp-button"],T:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},R:[dBa()]});this.G=a;this.visible=!1;this.Ma("click",this.onClick);this.P(a,"fullscreentoggled",this.Ea);this.Ha("title",yJ(a,"Miniplayer","i"));g.Be(this,g.WJ(b.kc(),this.element));a.Bb(this.element,this,62946);this.Ea()};
xL=function(a,b,c){g.W.call(this,{F:"button",Ba:["ytp-multicam-button","ytp-button"],T:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},R:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,T:{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.K(this.B,400,this);this.tooltip=b.kc();$J(this.tooltip);g.J(this,this.u);this.Ma("click",function(){IJ(c,d.element,!1)});
this.P(a,"presentingplayerstatechange",function(){d.Ea(!1)});
this.P(a,"videodatachange",this.onVideoDataChange);this.Ea(!0);g.Be(this,g.WJ(this.tooltip,this.element))};
yL=function(a){g.HJ.call(this,a,{F:"div",L:"ytp-multicam-menu",T:{role:"dialog"},R:[{F:"div",L:"ytp-multicam-menu-header",R:[{F:"div",L:"ytp-multicam-menu-title",R:["Switch camera",{F:"button",Ba:["ytp-multicam-menu-close","ytp-button"],T:{"aria-label":"Close"},R:[g.DG()]}]}]},{F:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.kz(this);this.items=this.ya("ytp-multicam-menu-items");this.j=[];g.J(this,this.B);a=this.ya("ytp-multicam-menu-close");this.P(a,"click",this.Gb);this.hide()};
zL=function(){g.I.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.Dn(this.j,null,this);g.J(this,this.delay)};
tEa=function(a,b){if("path"===b.F)return b.T.d;if(b.R)for(var c=0;c<b.R.length;c++){var d=b.R[c];if(d&&"string"!==typeof d&&(d=tEa(a,d)))return d}};
wEa=function(a,b,c){c=tEa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=sG();b=b.getElementsByTagName("use");for(var h=0;h<b.length;h++)b[h].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=uEa(e),m=uEa(c);AL(a,function(n){d.setAttribute("d",vEa(l,m,n))},200)};
AL=function(a,b,c){a.u=b;a.startTime=(0,g.R)();a.duration=c;a.j()};
uEa=function(a){var b=[];a=a.match(xEa);for(var c=0;c<a.length;c++){var d=" "===a[c]?NaN:Number(a[c]);b.push(isNaN(d)?a[c]:d)}return b};
vEa=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d="number"===typeof f?d+(f+(b[e]-f)*c):d+f}return d};
g.BL=function(a,b){g.W.call(this,{F:"button",Ba:["ytp-mute-button","ytp-button"],T:a.S().ma?{title:"{{title}}"}:{"aria-disabled":"true","aria-haspopup":"true"},Z:"{{icon}}"});this.G=a;this.j=null;this.C=this.N=this.D=this.W=NaN;this.Y=this.I=null;this.B=[];this.u=[];this.visible=!1;this.J=null;var c=this.G.S();this.Ha("icon",LG());this.tooltip=b.kc();this.j=new g.tG({F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"defs",R:[{F:"clipPath",T:{id:"ytp-svg-volume-animation-mask"},
R:[{F:"path",T:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{F:"path",T:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{F:"path",L:"ytp-svg-volume-animation-mover",T:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{F:"clipPath",T:{id:"ytp-svg-volume-animation-slash-mask"},R:[{F:"path",L:"ytp-svg-volume-animation-mover",T:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{F:"path",Jb:!0,Ba:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],T:{"clip-path":"url(#ytp-svg-volume-animation-mask)",
d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{F:"path",Jb:!0,Ba:["ytp-svg-fill","ytp-svg-volume-animation-hider"],T:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.J(this,this.j);this.I=this.j.ya("ytp-svg-volume-animation-speaker");this.Y=this.I.getAttribute("d");this.B=g.qg("ytp-svg-volume-animation-mover",this.j.element);this.u=
g.qg("ytp-svg-volume-animation-hider",this.j.element);this.ma=new zL;g.J(this,this.ma);this.V=new zL;g.J(this,this.V);this.Ma("click",this.iZ);this.P(a,"appresize",this.zL);this.P(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.ma)g.Be(this,g.WJ(b.kc(),this.element));else{var e="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/);d=new g.HJ(a,{F:"span",Ba:["ytp-popup","ytp-generic-popup"],T:{tabindex:"0"},R:[e[0],{F:"a",T:{href:"https://web.archive.org/web/20220603021303/https://support.google.com/youtube/?p=noaudio",
target:c.J},Z:e[2]},e[4]]},100,!0);g.J(this,d);d.hide();d.subscribe("show",function(f){b.yu(d,f)});
g.II(a,d.element,4)}this.message=d;a.Bb(this.element,this,28662);this.zL(a.Ya().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
AEa=function(a,b){a.W=b;var c=a.Y;b&&(c+=vEa(yEa,zEa,b));a.I.setAttribute("d",c)};
BEa=function(a,b){a.N=b;for(var c=20*b,d=0;d<a.B.length;d++)a.B[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=LG():e=a.j;for(c=0;c<a.u.length;c++){d=a.u[c];var f=void 0;if(null==(f=d)?0:f.style)d.style.display=0===b?"none":""}e!==a.J&&(a.Ha("icon",e),a.J=e)};
CL=function(a,b){g.W.call(this,{F:"button",Ba:["ytp-pip-button","ytp-button"],T:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},R:[dBa()]});this.G=a;this.Ha("title","Picture in Picture");this.Ma("click",this.onClick);g.Be(this,g.WJ(b.kc(),this.element))};
g.DL=function(a,b,c){g.W.call(this,{F:"button",Ba:["ytp-play-button","ytp-button"],T:{title:"{{title}}"},Z:"{{icon}}"});this.G=a;this.j=null;this.transition=new zL;this.tooltip=b.kc();g.J(this,this.transition);this.u=!!c;a.Bb(this.element,this,36842);a.Wa(this.element,!0);this.P(a,"fullscreentoggled",this.onVideoDataChange);this.P(a,"presentingplayerstatechange",this.onStateChange);this.P(a,"videodatachange",this.onVideoDataChange);CEa(this,a.xb());this.Ma("click",this.Zv,this);g.Be(this,g.WJ(b.kc(),
this.element))};
DEa=function(a){switch(a){case 1:return IG();case 2:return bBa();case 3:return g.JG();case 4:return gBa();default:return null}};
CEa=function(a,b){var c=g.KD(a.G.getVideoData()),d=!1;g.FF(b)?b=c?4:2:g.V(b,2)?(b=3,d=c):b=1;a.element.disabled=d;if(a.j!==b){c=null;switch(b){case 2:c=yJ(a.G,"Pause","k");break;case 3:c="Replay";break;case 1:c=yJ(a.G,"Play","k");break;case 4:c="Stop live playback"}3===b?a.update({title:c,icon:DEa(b)}):(a.update({title:c}),(c=DEa(b))&&a.j&&3!==a.j?wEa(a.transition,a.element,c):a.Ha("icon",c));IK(a.tooltip);a.j=b}};
g.FL=function(a,b,c){g.W.call(this,{F:"a",Ba:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],T:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},R:[c?GG():eBa()]});var d=this;this.G=a;this.j=c;this.playlist=this.videoData=null;this.I=!1;this.C=this.D=this.u=null;this.B=!1;this.tooltip=b.kc();c?a.Bb(this.element,this,6193):a.Bb(this.element,
this,6194);this.P(a,"fullscreentoggled",this.onVideoDataChange);this.P(a,"videodatachange",this.onVideoDataChange);this.P(a,"onPlaylistUpdate",this.onVideoDataChange);this.j||this.P(a,"appresize",this.GE);this.P(a,"mdxpreviousnextchange",function(){EL(d);d.GE()});
this.onVideoDataChange()};
EEa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
FEa=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.G.getCurrentTime()&&2!==a.G.getPresentingPlayerType()};
GEa=function(a){var b=EI(a.G.ib());return b?a.j?b.hasNext():b.tm():!1};
EL=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.FI(a.G)&&(!a.j||c);var d=a.j&&g.JI(a.G),e=GEa(a),f=a.j&&5===a.G.getPresentingPlayerType(),h=yJ(a.G,"Next","SHIFT+n"),l=yJ(a.G,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.B)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.RI(a.playlist,a.j?RCa(a.playlist):SCa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;b.url=a.G.S().getVideoUrl(m.videoId,n?
n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.vH(m.lengthSeconds):null;b.preview=m.zf("mqdefault.jpg")}b.title=a.j?h:l}else if(d){if(l=null==(m=a.videoData)?void 0:g.bE(m))b.url=l.mm(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.vH(l.lengthSeconds):null,b.preview=l.zf("mqdefault.jpg");b.title=h}b.disabled=!d&&!c&&!e&&!f;a.update(b);a.I=!!b.url;d||c||a.B||e||f?a.u||(a.u=g.WJ(a.tooltip,a.element),a.D=a.Ma("click",a.onClick,a)):a.u&&
(a.u(),a.u=null,a.vc(a.D),a.D=null);IK(a.tooltip)};
GL=function(a,b,c){g.W.call(this,{F:"div",L:"ytp-fine-scrubbing",R:[{F:"div",L:"ytp-fine-scrubbing-thumbnails"},{F:"div",L:"ytp-fine-scrubbing-cursor"},{F:"div",L:"ytp-fine-scrubbing-seek-time",Z:"{{seekTime}}"},{F:"div",L:"ytp-fine-scrubbing-play",R:[IG()],T:{title:"Play"}},{F:"div",L:"ytp-fine-scrubbing-dismiss",R:[g.DG()],T:{title:"Close"}}]});this.api=a;this.B=c;this.N=this.ya("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.ya("ytp-fine-scrubbing-dismiss");this.playButton=this.ya("ytp-fine-scrubbing-play");
this.thumbnails=[];this.j=[];this.Y=void 0;this.J=NaN;this.va=this.I=this.u=this.D=0;this.C=[];this.interval=this.frameCount=0;this.scale=1;this.ma=0;this.isEnabled=this.W=!1;g.Be(this,g.WJ(b,this.dismissButton));g.Be(this,g.WJ(b,this.playButton));this.V=new g.mu(this.N,!0);this.V.subscribe("dragstart",this.IE,this);this.V.subscribe("dragmove",this.HE,this);this.V.subscribe("dragend",this.ZT,this);g.J(this,this.V)};
HL=function(a){a.J=NaN;a.I=0;a.D=a.u};
IEa=function(a){var b=a.api.wi();if(b){var c=160*a.scale,d=90*a.scale,e=dD(b,160*a.scale);if(b=b.levels[e]){if(!a.C.length){e=[];for(var f=eD(b,b.Mt()),h=b.columns*b.rows,l=b.frameCount,m=0;m<=f;m++)for(var n=l<h?Math.ceil(l/b.columns):b.rows,p=0;p<b.rows;p++){var q=l<b.columns?l:b.columns,t={url:gD(b,m),column:0,columns:q,row:p,rows:n,Jy:b.width*q,Zr:b.height*n};e.push(t);l-=q;if(1>=l)break}a.C=e;a.frameCount=b.rA();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.C.length;)e=
void 0,null==(e=a.thumbnails.pop())||e.dispose();for(;a.thumbnails.length<a.C.length;)e=new HEa,a.thumbnails.push(e),e.xa(a.N),g.J(a,e);for(e=0;e<a.C.length;e++)f=a.thumbnails[e].element,h=a.C[e],l=h.Zr/h.rows,m=d/l,f.style.background="url("+h.url+") 0 "+-h.row*h.Zr/h.rows*m+"px/"+c*b.columns+"px "+l*h.rows*m+"px",f.style.width=c*h.columns+"px",f.style.height=d+"px";IL(a,a.api.getCurrentTime());for(c=a.api.getVideoData().Ag;a.j.length>c.length;)d=void 0,null==(d=a.j.pop())||d.dispose();for(;a.j.length<
c.length;)d=new JL,a.j.push(new JL),g.J(a,d);c=g.r(c.entries());for(d=c.next();!d.done;d=c.next())e=g.r(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.al(a.j[d].element,"transform","translateX("+e%b.rows*160*a.scale+"px)"),a.j[d].xa(a.thumbnails[f].element);a.W=!0}}};
IL=function(a,b){a.update({seekTime:g.vH(b)});var c=160*a.scale;b=b<a.interval/2?-b*c/a.interval*2+a.B/2:-b*c/a.interval-c/2+a.B/2;b=g.Xf(b,JEa(a),a.B/2);a.D=b;a.u=a.D;g.al(a.N,"transform","translateX("+a.D+"px)")};
KEa=function(a,b){var c=160*a.scale;b-=a.B/2;return b>-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
JEa=function(a){return-((a.N.offsetWidth||160*(a.frameCount-1)*a.scale)-a.B/2)};
HEa=function(){g.W.call(this,{F:"div",L:"ytp-fine-scrubbing-thumbnail"})};
JL=function(){g.W.call(this,{F:"div",L:"ytp-fine-scrubbing-chapter-title",R:[{F:"div",L:"ytp-fine-scrubbing-chapter-title-content",Z:"{{chapterTitle}}"}]})};
LEa=function(a){g.W.call(this,{F:"div",L:"ytp-heat-map-chapter",R:[{F:"svg",L:"ytp-heat-map-svg",T:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},R:[{F:"defs",R:[{F:"clipPath",T:{id:"{{id}}"},R:[{F:"path",L:"ytp-heat-map-path",T:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{F:"rect",L:"ytp-heat-map-graph",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{F:"rect",L:"ytp-heat-map-hover",T:{"clip-path":"url(#hm_1)",
height:"100%",x:"0",y:"0"}},{F:"rect",L:"ytp-heat-map-play",T:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.I=this.ya("ytp-heat-map-svg");this.D=this.ya("ytp-heat-map-path");this.C=this.ya("ytp-heat-map-graph");this.B=this.ya("ytp-heat-map-play");this.u=this.ya("ytp-heat-map-hover");this.isValid=!1;this.j=60;a=""+g.Ra(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)};
NEa=function(a,b,c,d){d=void 0===d?!1:d;b=new MEa(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)}};
MEa=function(a,b){this.u=this.j=0;this.j=b.x-a.x;this.u=b.y-a.y};
KL=function(){g.W.call(this,{F:"div",L:"ytp-chapter-hover-container",R:[{F:"div",L:"ytp-progress-bar-padding"},{F:"div",L:"ytp-progress-list",R:[{F:"div",Ba:["ytp-play-progress","ytp-swatch-background-color"]},{F:"div",L:"ytp-progress-linear-live-buffer"},{F:"div",L:"ytp-load-progress"},{F:"div",L:"ytp-hover-progress"},{F:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.ya("ytp-progress-linear-live-buffer");this.B=this.ya("ytp-ad-progress-list");
this.D=this.ya("ytp-load-progress");this.I=this.ya("ytp-play-progress");this.u=this.ya("ytp-hover-progress");this.j=this.ya("ytp-chapter-hover-container")};
LL=function(a,b){g.al(a.j,"width",b)};
ML=function(a,b){g.al(a.j,"margin-right",b+"px")};
NL=function(a,b){return"PLAY_PROGRESS"===b?a.I:"LOAD_PROGRESS"===b?a.D:"LIVE_BUFFER"===b?a.C:a.u};
OEa=function(){this.B=this.position=this.C=this.j=this.D=this.u=this.width=NaN};
OL=function(){g.W.call(this,{F:"div",L:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.QL=function(a,b){g.xG.call(this,{F:"div",L:"ytp-progress-bar-container",T:{"aria-disabled":"true"},R:[{F:"div",Ba:["ytp-heat-map-container"],R:[{F:"div",L:"ytp-heat-map-edu"}]},{F:"div",Ba:["ytp-progress-bar"],T:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},R:[{F:"div",L:"ytp-chapters-container"},{F:"div",L:"ytp-marker-crenellation-list"},{F:"div",L:"ytp-timed-markers-container"},
{F:"div",L:"ytp-clip-start-exclude"},{F:"div",L:"ytp-clip-end-exclude"},{F:"div",L:"ytp-scrubber-container",R:[{F:"div",Ba:["ytp-scrubber-button","ytp-swatch-background-color"],R:[{F:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{F:"div",T:{tabindex:"0"},Ba:["ytp-fine-scrubbing-container"]},{F:"div",L:"ytp-bound-time-left",Z:"{{boundTimeLeft}}"},{F:"div",L:"ytp-bound-time-right",Z:"{{boundTimeRight}}"},{F:"div",L:"ytp-clip-start",T:{title:"{{clipstarttitle}}"},Z:"{{clipstarticon}}"},{F:"div",L:"ytp-clip-end",
T:{title:"{{clipendtitle}}"},Z:"{{clipendicon}}"}]});this.api=a;this.Me=!1;this.D=this.zg=0;this.Ta=1;this.ze=this.N=0;this.J=null;this.va=this.Zc=0;this.eb=this.ya("ytp-marker-crenellation-list");this.Pa={};this.Nc={};this.clipEnd=Infinity;this.qc=this.ya("ytp-clip-end");this.Ad=new g.mu(this.qc,!0);this.Ye=this.ya("ytp-clip-end-exclude");this.Vg=this.ya("ytp-clip-start-exclude");this.clipStart=0;this.Hc=this.ya("ytp-clip-start");this.Kd=new g.mu(this.Hc,!0);this.Y=this.qb=0;this.uc=this.ya("ytp-progress-bar");
this.Kb={};this.Yc={};this.qd=this.ya("ytp-chapters-container");this.Ag=this.ya("ytp-timed-markers-container");this.j=[];this.V=[];this.Le={};this.Ze=null;this.bb=-1;this.Ib=this.Da=0;this.W=null;this.Je=this.ya("ytp-scrubber-button");this.Wg=this.ya("ytp-scrubber-container");this.Jc=new g.ag;this.bf=new OEa;this.B=new zH(0,0);this.tb=null;this.C=this.md=!1;this.Ff=null;this.kb=this.ya("ytp-fine-scrubbing-container");this.ma=this.ya("ytp-heat-map-container");this.ge=this.ya("ytp-heat-map-edu");this.I=
[];this.Ia=this.ye=this.Ga=!1;this.heatMarkersDecorations=[];this.u=void 0;this.tooltip=b.kc();g.Be(this,g.WJ(this.tooltip,this.qc));g.J(this,this.Ad);this.Ad.subscribe("hoverstart",this.FP,this);this.Ad.subscribe("hoverend",this.EP,this);this.P(this.qc,"click",this.fD);g.Be(this,g.WJ(this.tooltip,this.Hc));g.J(this,this.Kd);this.Kd.subscribe("hoverstart",this.FP,this);this.Kd.subscribe("hoverend",this.EP,this);this.P(this.Hc,"click",this.fD);PEa(this);this.P(a,"resize",this.wb);this.P(a,"presentingplayerstatechange",
this.bU);this.P(a,"videodatachange",this.Ep);this.P(a,"videoplayerreset",this.uW);this.P(a,"cuerangesadded",this.ZR);this.P(a,"cuerangesremoved",this.j0);this.P(a,"cuerangemarkersupdated",this.ZR);this.P(a,"onLoopRangeChange",this.AL);this.P(a,"innertubeCommand",this.onClickCommand);this.P(a,g.Cv("timedMarkerCueRange"),this.v_);this.P(a,"updatemarkervisibility",this.XR);this.updateVideoData(a.getVideoData(),!0);this.AL(a.getLoopRange());PL(this)&&!this.u&&(this.u=new GL(this.api,this.tooltip,this.D),
this.u.xa(this.kb),g.J(this,this.u),this.P(this.u.dismissButton,"click",this.zN),this.P(this.u.playButton,"click",this.tG),this.P(this.u.element,"dblclick",this.tG));this.api.Bb(this.ma,this,139609,!0);this.api.Bb(this.ge,this,140127,!0);this.api.Bb(this.eb,this,145078,!0)};
PEa=function(a){if(0===a.j.length){var b=new KL;a.j.push(b);g.J(a,b);b.xa(a.qd,0)}for(;1<a.j.length;)a.j.pop().dispose();LL(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
RL=function(a){for(;a.V.length;)a.V.pop().dispose()};
QEa=function(a){for(var b=a.j,c=[],d=0;d<b.length;d++)if(!isNaN(b[d].startTime)){var e=b[d].startTime;e=new g.Av(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.Df("chapterCueRange");a.api.Vd(c)};
UL=function(a,b){var c,d=null==(c=a.Kb[b])?void 0:c.chapters;d&&(REa(a,d),a.api.getVideoData().Ag=a.j,QEa(a));var e;if((c=null==(e=a.Kb[b])?void 0:e.markers)&&"HEATSEEKER"!==b){RL(a);e=g.r(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new OL,d=d.markerRenderer){var f=void 0;c.title=(null==(f=d.title)?void 0:f.simpleText)||"";f=void 0;c.timeRangeStartMillis=null!=(f=d.timeRangeStartMillis)?f:NaN;var h=f=void 0;c.onActiveCommand=null!=(h=null==(f=d)?void 0:f.onActiveCommand)?h:void 0;SEa(a,c)}SL(a,
a.V);e=a.V;c=a.Le;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=bEa(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.Vd(d)}var l,m;b=null==(l=a.Kb[b])?void 0:null==(m=l.heatmap)?void 0:m.heatmapRenderer;if(!a.api.K("web_heatseeker_counterfactual")&&b){l=b.heatMarkers||[];var n;m=null!=(n=b.minHeightDp)?n:0;var p;n=null!=(p=b.maxHeightDp)?p:60;p=a.j.length;e=null;for(c=0;c<p;c++){f=
a.j[c].startTime;h=c===p-1?Infinity:a.j[c+1].startTime;if(c===a.I.length){d=void 0;var q=a;d=void 0===d?NaN:d;var t=new LEa(q.api);q.I.push(t);g.J(q,t);t.xa(q.ma);0<=d&&(t.element.style.width=d+"px")}d=[];e&&d.push(e);q=g.r(l);for(t=q.next();!t.done;t=q.next()){t=t.value;var u=void 0,x=void 0,y=void 0,z=null!=(y=null==(u=t)?void 0:null==(x=u.heatMarkerRenderer)?void 0:x.timeRangeStartMillis)?y:-1;z>=f&&z<=h&&d.push(t)}0<n&&(a.ma.style.height=n+"px");f=a.I[c];q=0===c;q=void 0===q?!1:q;h=f;0<n&&(h.j=
n,h.I.style.height=h.j+"px");h=f;q=void 0===q?!1:q;t=1E3/d.length;u=[];u.push({x:0,y:100});x=g.r(d.entries());for(y=x.next();!y.done;y=x.next()){z=g.r(y.value);y=z.next().value;z=z.next().value;var D=void 0;z=(null==(D=z.heatMarkerRenderer)?void 0:D.heatMarkerIntensityScoreNormalized)||0;D=(y+.5)*t;z=100-g.Xf(100*z,m/h.j*100,n/h.j*100);0!==y||q||u.push({x:0,y:z});u.push({x:D,y:z});y===d.length-1&&u.push({x:1E3,y:z})}u.push({x:1E3,y:100});h=u;if(0===d.length)h="";else{q="";t=g.r(h.entries());for(u=
t.next();!u.done;u=t.next())x=g.r(u.value),u=x.next().value,x=x.next().value,0===u?u="M "+x.x.toFixed(1)+","+x.y.toFixed(1):(y=NEa(h[u-1],h[u-2],x),u=NEa(x,h[u-1],h[u+1],!0),u=" C "+(y.x.toFixed(1)+","+y.y.toFixed(1)+" "+u.x.toFixed(1)+","+u.y.toFixed(1)+" "+x.x.toFixed(1)+","+x.y.toFixed(1))),q+=u;h=q}f.D.setAttribute("d",h);f.isValid=""!==h;g.O(f.api.getRootNode(),"ytp-heat-map",f.isValid);g.O(f.api.getRootNode(),"ytp-heat-map-played_bar",f.api.K("web_player_heat_map_played_bar")&&""!==h);0<d.length&&
(e=d[d.length-1])}g.TL(a);l=[];b=g.r(b.heatMarkersDecorations||[]);for(m=b.next();!m.done;m=b.next())if(m=m.value.timedMarkerDecorationRenderer)n=m.label,c=e=p=void 0,l.push({visibleTimeRangeStartMillis:null!=(p=m.visibleTimeRangeStartMillis)?p:-1,visibleTimeRangeEndMillis:null!=(e=m.visibleTimeRangeEndMillis)?e:-1,decorationTimeMillis:null!=(c=m.decorationTimeMillis)?c:NaN,label:n?g.Hv(n):""});a.heatMarkersDecorations=l}};
SEa=function(a,b){a.V.push(b);g.J(a,b);b.xa(a.Ag,a.Ag.children.length)};
SL=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=TEa(a,c.timeRangeStartMillis/(1E3*a.B.j),VL(a));g.al(c.element,"transform","translateX("+d+"px)")}};
REa=function(a,b){var c=0,d=!1;b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(e.chapterRenderer){e=e.chapterRenderer;var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.Hv(h):"";h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new KL,a.j.push(f),g.J(a,f),f.xa(a.qd,a.qd.children.length));a.j[c].startTime=
e.startTime;a.j[c].title=e.title?e.title:"";a.j[c].onActiveCommand=e.onActiveCommand;a.j[c].index=d?c-1:c}c++}for(;c<a.j.length;)a.j.pop().dispose();g.TL(a);WL(a)};
g.TL=function(a){a.Da=a.j.length-1;a.Ib=0;UEa(a,!0)&&UEa(a,!1);for(var b=0,c=0;c<a.j.length;c++)if(0===a.j[c].width){if(c===a.j.length-1)for(var d=a.j.length-1;0<=d;d--)if(0<a.j[d].width){ML(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;LL(a.j[d],e+"px");break}a.j[c].width=0;LL(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,LL(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,LL(a.j[c],d+"px"));c=0;if(a.I.length===a.j.length)for(b=0;b<
a.I.length;b++)d=a.j[b].width,a.I[b].element.style.width=d+"px",a.I[b].element.style.left=c+"px",c+=d+(a.C?3:2)};
UEa=function(a,b){var c=0,d=!1,e=a.j.length,f=1E3*a.B.j;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.D){for(var h=a.D-(a.C?3:2)*a.Da,l=0===a.Ib?3:h*a.Ib,m=g.r(a.j),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.j[c].startTime;c<e-1&&(m=a.j[c+1].startTime-a.j[c].startTime,ML(a.j[c],a.C?3:2));g.O(a.j[c].j,"ytp-exp-chapter-hover-container",1<a.j.length);n=(0===f?0:m/f*h)+a.j[c].width;if(n>l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,t=p.j[q-1];void 0!==t&&0<t.width?
t.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);ML(p.j[q],0);b&&(a.Da--,m/f>a.Ib&&(a.Ib=m/f),d=!0)}c++}}return d};
WL=function(a){if(a.D){var b=a.api.getProgressState(),c=a.api.getVideoData();if(a.api.K("web_player_enable_preroll_for_ssdai_killswitch")||!c||!c.enableServerStitchedDai||!c.enablePreroll||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:aE(d))&&b.airingStart&&b.airingEnd?VEa(a,b.airingStart,b.airingEnd):VEa(a,b.seekableStart,b.seekableEnd);d=CH(c,b.loaded,0);b=CH(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;XL(a,b,d);e&&YL(a);WEa(a)}}};
VEa=function(a,b,c){return ZL(a)?new zH(Math.max(b,a.tb.startTimeMs/1E3),Math.min(c,a.tb.endTimeMs/1E3)):new zH(b,c)};
XEa=function(a,b){var c;!a.api.K("web_repeating_chapters")||"repeatChapter"!==(null==(c=a.tb)?void 0:c.type)&&"repeatChapter"!==(null==b?void 0:b.type)||(b&&(b=a.j[MK(a.j,b.startTimeMs)],g.O(b.j,"ytp-repeating-chapter",!1)),a.tb&&(b=a.j[MK(a.j,a.tb.startTimeMs)],g.O(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.O(d.j,"ytp-exp-chapter-hover-container",!a.tb)}))};
aM=function(a,b){var c=BH(a.B,b.B);if(1<a.j.length){c=$L(a,b.C,!0);for(var d=0,e=0;e<c;e++)0<a.j[e].width&&(d+=a.j[e].width,d+=a.C?3:2);c=(a.j[c].startTime+(b.C-d)/a.j[c].width*((c===a.j.length-1?1E3*a.B.j:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c};
YEa=function(a,b,c){return c>=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.B.j*(a.D-(a.C?3:2)*a.Da)};
ZEa=function(a,b,c,d){b=g.Xf(b,0,a.C?60:40);a.N=b;var e=a.Ta;a.Ta=b/(a.C?60:40)*(Math.max(AH(a.B)/a.D,1)-1)+1;b=a.D*a.Ta;a.va=g.Xf(d*b-c,0,b-a.D);e!==a.Ta&&YL(a)};
YL=function(a){if(1!==a.j.length||PL(a))a.Je.style.removeProperty("height");else{var b=VL(a),c=-b.u/b.j,d=(-b.u+b.width)/b.j,e=Yca(a.eb),f=0;if(a.N>.2*(a.C?60:40)){for(var h=d*(AH(a.B)/60),l=Math.ceil(c*(AH(a.B)/60));l<h;l++){var m=e[f];m||(m=g.zg("DIV"),a.eb.appendChild(m));f++;0===l%60?g.co(m,"ytp-60m-progress"):0===l%30?g.co(m,"ytp-30m-progress"):0===l%15?g.co(m,"ytp-15m-progress"):g.co(m,"ytp-1m-progress");m.style.left=(60*l/AH(a.B)-c)*b.j+"px"}a.Ia||(a.Ia=!0,a.api.Wa(a.eb,a.Ia))}b=a.md?a.B.j:
0;a.update({boundTimeLeft:g.vH(BH(a.B,c)-b),boundTimeRight:g.vH(BH(a.B,d)-b)});for(c=e.length-1;c>=f;c--)g.Dg(e[c]);a.element.style.height=a.N+(a.C?8:5)+"px";a.X("height-change",a.N);a.Je.style.height=a.N+(a.C?20:13)+"px"}e=g.r(Object.keys(a.Pa));for(f=e.next();!f.done;f=e.next())$Ea(a,f.value);bM(a);XL(a,a.Y,a.qb)};
VL=function(a){var b=a.Jc.x,c=a.D*a.Ta;b=g.Xf(b,0,a.D);a.bf.update(b,a.D,-a.va,-(c-a.va-a.D));return a.bf};
cM=function(a){return(a.C?135:90)-(a.C?54:48)};
XL=function(a,b,c){a.Y=b;a.qb=c;var d=VL(a),e=a.B.j,f=BH(a.B,a.Y),h=g.gF("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.vH(f,!0),DURATION:g.vH(e,!0)}),l=MK(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.tb&&2!==a.api.getPresentingPlayerType()&&(e=a.tb.startTimeMs/1E3,f=a.tb.endTimeMs/1E3);e=CH(a.B,e,0);l=CH(a.B,f,1);h=a.api.getVideoData();f=g.Xf(b,e,l);c=(null==h?0:g.YD(h))?1:g.Xf(c,e,
l);b=TEa(a,b,d);g.al(a.Wg,"transform","translateX("+b+"px)");dM(a,d,e,f,"PLAY_PROGRESS");(null==h?0:aE(h))?(b=a.api.getProgressState().seekableEnd)&&dM(a,d,f,CH(a.B,b),"LIVE_BUFFER"):dM(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)+"%")}};
dM=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Da*(a.C?3:2),l=c*h;c=$L(a,l);var m=d*h;h=$L(a,m);"HOVER_PROGRESS"===e&&(h=$L(a,b.j*d,!0),m=b.j*d-aFa(a,b.j*d)*(a.C?3:2));b=Math.max(l-bFa(a,c),0);for(d=c;d<f;d++)NL(a.j[d],e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.j[f].width,eM(a,NL(a.j[f],e),f===c?d-b:d,d);f=a.j[h].width;m=g.Xf(m-bFa(a,h),0,f);c===h&&(m-=b);eM(a,NL(a.j[h],e),m,f);m=a.j.length;for(h+=1;h<m;h++)eM(a,NL(a.j[h],e),0,a.j[h].width);for(h=0;h<c;h++)eM(a,NL(a.j[h],e),0,a.j[h].width)};
bFa=function(a,b){if(b>=a.j.length)return a.D;for(var c=0,d=0;d<b;)c+=a.j[d].width,d++;return c};
eM=function(a,b,c,d,e){e||a.api.S().isMobile?b.style.width=c+"px":g.al(b,"transform","scalex("+(d?c/d:0)+")")};
$L=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=aFa(a,b)*(a.C?3:2));c=g.r(a.j);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d};
TEa=function(a,b,c){for(var d=b*a.B.j*1E3,e=-1,f=g.r(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.j-(a.C?3:2)*a.Da)+(a.C?3:2)*(0>e?0:e)+c.u};
aFa=function(a,b){for(var c=a.j.length,d=0,e=g.r(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.fM=function(a,b,c,d){var e=a.D!==c,f=a.C!==d;a.zg=b;a.D=c;a.C=d;PL(a)&&null!=(b=a.u)&&(b.scale=d?1.5:1);YL(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.TL(a);a.u&&(a.u.B=a.D,f&&PL(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-(a.C?54:48),a.kb.style.height=c+"px",g.al(a.ma,"transform","translateY("+-d+"px)"),g.al(a.uc,"transform","translateY("+-d+"px)")),IEa(a.u)))};
bM=function(a){var b=!!a.tb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.tb?(c=a.tb.startTimeMs/1E3,d=a.tb.endTimeMs/1E3):(e=c>a.B.u,f=0<a.B.j&&d<a.B.j);var h,l;if((null==(h=a.tb)?0:h.postId)||"repeatChapter"===(null==(l=a.tb)?void 0:l.type))f=e=!1;g.O(a.element,"ytp-loop-range-enabled",b);g.O(a.element,"ytp-clip-start-enabled",e);g.O(a.element,"ytp-clip-end-enabled",f);b=e?CH(a.B,c,0):0;d=f?CH(a.B,d,1):1;a.Hc.style.left=Math.round(1E3*b)/10+"%";a.qc.style.left=Math.round(1E3*
d)/10+"%";a.Vg.style.width=Math.round(1E3*b)/10+"%";a.Ye.style.left=Math.round(1E3*d)/10+"%";a.Ye.style.width=Math.round(1E3*(1-d))/10+"%"};
WEa=function(a){var b;if(null==(b=a.api.getVideoData())||!aE(b)){b=VL(a);dM(a,b,a.Y,Math.max(b.B,a.Y),"HOVER_PROGRESS");for(var c=$L(a,b.j*a.Y,!0),d=$L(a,b.C,!0),e=c;e<=d;e++)g.O(a.j[e].u,"ytp-hover-progress-light",b.B>a.Y);g.O(a.Je,"ytp-scrubber-button-hover",c===d&&1<a.j.length);if(a.api.K("web_player_heat_map_played_bar")){var f;null!=(f=a.I[0])&&f.u.setAttribute("width",(100*b.B).toFixed(2)+"%")}}};
$Ea=function(a,b){var c=a.Pa[b];b=a.Nc[b];var d=VL(a),e=CH(a.B,c.start/1E3,0),f=Era(c,a.C)/d.width;var h=CH(a.B,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.Xf(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;e=!0;e=void 0===e?!1:e;b.style.left=Math.max(c*d.j+d.u,0)+"px";eM(a,b,g.Xf((h-c)*d.j+d.u,0,d.width),d.width,e)};
cFa=function(a,b){var c=b.getId();a.Pa[c]===b&&(g.Dg(a.Nc[c]),delete a.Pa[c],delete a.Nc[c])};
PL=function(a){var b;return a.api.S().K("web_player_fine_scrubbing")&&!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.sf()};
gM=function(a){a.u&&(a.u.disable(),a.N=0,a.ma.style.removeProperty("transform"),a.uc.style.removeProperty("transform"),a.kb.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
dFa=function(a,b){var c=b/cM(a)*(a.C?54:48);g.al(a.uc,"transform","translateY("+-b+"px)");g.al(a.ma,"transform","translateY("+-b+"px)");g.al(a.kb,"transform","translateY("+c+"px)");a.kb.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=(a.C?54:48)-c+"px")};
eFa=function(a,b){b?a.W||(a.element.removeAttribute("aria-disabled"),a.W=new g.mu(a.uc,!0),a.W.subscribe("hovermove",a.AZ,a),a.W.subscribe("hoverend",a.zZ,a),a.W.subscribe("dragstart",a.yZ,a),a.W.subscribe("dragmove",a.CZ,a),a.W.subscribe("dragend",a.BZ,a),a.Ff=a.Ma("keydown",a.cU)):a.W&&(a.element.setAttribute("aria-disabled","true"),a.vc(a.Ff),a.W.cancel(),a.W.dispose(),a.W=null)};
g.fFa=function(a){var b=2*a.D*g.wB();return 1E3*AH(a.B)/a.api.getPlaybackRate()/b};
ZL=function(a){var b;return!(null==(b=a.tb)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
hM=function(a,b,c){g.W.call(this,{F:"button",Ba:["ytp-remote-button","ytp-button"],T:{title:"Play on TV","aria-haspopup":"true"},Z:"{{icon}}"});this.G=a;this.jb=c;this.j=null;this.P(a,"onMdxReceiversChange",this.Ea);this.P(a,"presentingplayerstatechange",this.Ea);this.P(a,"appresize",this.Ea);a.Bb(this.element,this,139118);this.Ea();this.Ma("click",this.u,this);g.Be(this,g.WJ(b.kc(),this.element))};
iM=function(a,b){g.W.call(this,{F:"button",Ba:["ytp-button","ytp-screen-mode-button"],T:{"aria-haspopup":"true","aria-owns":sG(),title:"Viewing options","data-tooltip-target-id":"ytp-screen-mode-button"},R:[{F:"svg",T:{viewBox:"0 0 36 36"},R:[{F:"path",Jb:!0,T:{d:"M8 9v11.2h4v-1.6H9.6v-8h12.8V14H24V9Zm17.09 10.81h-5.81v4.36h5.81zM28 25.63V15.44c0-.8-.65-1.44-1.45-1.44h-13.09c-.8 0-1.45.64-1.45 1.44v10.19c0 .8.65 1.45 1.45 1.45h13.09c.8 0 1.45-.65 1.45-1.45Zm-1.45.01h-13.09V15.43h13.09z",fill:"#fff"}}]}]});
this.G=a;this.u=!0;this.jb=null;this.Ma("click",this.B);this.P(a,"appresize",this.j);g.Be(this,g.WJ(b.kc(),this.element));this.j(a.Ya().getPlayerSize())};
jM=function(a,b,c,d,e){g.cK.call(this,g.dK(),a,b);this.jb=d;this.j=!1;this.u=null;e&&(this.u=new g.W({F:"div",R:[{F:"span",Z:"{{title}}"},{F:"span",L:"ytp-menuitem-keyboard-shortcut",Z:e}]}),this.pg(this.u),this.u.Ha("title",b),g.J(this,this.u));this.Ma("click",this.onClick)};
kM=function(a,b){b&&!a.j?(a.jb.Bc(a),a.j=!0):!b&&a.j&&(a.jb.Of(a),a.j=!1)};
lM=function(a,b){jM.call(this,9,"Miniplayer",a,b,"(i)");this.G=a;eK(this,{F:"svg",T:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},R:[{F:"path",Jb:!0,T:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]});this.P(a,"fullscreentoggled",this.Ea);a.Bb(this.element,this,62946);this.Ea()};
mM=function(a,b,c){jM.call(this,11,"Connect to a device",a,b);this.G=a;this.C=c;this.B=null;this.P(a,"onMdxReceiversChange",this.Ea);this.P(a,"presentingplayerstatechange",this.Ea);this.P(a,"appresize",this.Ea);a.Bb(this.element,this,139118);this.Ea()};
nM=function(a,b){jM.call(this,10,"Theater mode",a,b,"(t)");this.G=a;this.isWidescreen=null;this.P(a,"sizestylechange",this.Ea);this.P(a,"fullscreentoggled",this.Ea);this.P(a,"presentingplayerstatechange",this.Ea);a.Bb(this.element,this,139116);this.Ea()};
oM=function(a,b,c){g.pK.call(this,a,"ytp-screen-mode-menu");this.settingsMenu=b;this.po=c;this.bd=new g.gK(this.G);this.ED=0;g.J(this,this.bd);this.P(a,"minimized",this.hide);this.P(a,"sizestylechange",this.hide);this.P(a,"fullscreentoggled",this.hide);this.hide();g.nK(this,this.bd);this.po=c;this.element.id=c.element.getAttribute("aria-owns");a=this.G.S();a.qb&&(b=new mM(this.G,this,this.settingsMenu),g.J(this,b),this.ED++);a.Kb||(b=new nM(this.G,this),g.J(this,b),this.ED++);a.showMiniplayerButton&&
(a=new lM(this.G,this),g.J(this,a),this.ED++)};
pM=function(a,b,c){g.W.call(this,{F:"button",Ba:["ytp-button","ytp-settings-button"],T:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":sG(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},R:[g.KG()]});this.G=a;this.jb=c;this.u=!0;this.Ma("click",this.B);this.P(a,"onPlaybackQualityChange",this.updateBadge);this.P(a,"videodatachange",this.updateBadge);this.P(a,"webglsettingschanged",this.updateBadge);this.P(a,"appresize",this.j);g.Be(this,g.WJ(b.kc(),this.element));
this.G.Bb(this.element,this,28663);this.updateBadge();this.j(a.Ya().getPlayerSize())};
qM=function(a,b){a.u=!!b;a.j(a.G.Ya().getPlayerSize())};
rM=function(a,b){kK.call(this,"Annotations",6);this.G=a;this.jb=b;this.j=!1;a.K("web_settings_menu_icons")&&eK(this,{F:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},R:[{F:"path",T:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7             M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7             M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z             M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
fill:"white"}}]});this.P(a,"videodatachange",this.Ea);this.P(a,"onApiChange",this.Ea);this.subscribe("select",this.onSelect,this);this.Ea()};
g.sM=function(a,b,c,d,e,f,h){g.cK.call(this,g.dK({"aria-haspopup":"true"}),b,a);this.jb=d;this.C=!1;this.u=null;this.options={};this.B=new g.gK(c,void 0,a,e,f,h);g.J(this,this.B);this.Ma("keydown",this.dU);this.Ma("click",this.open)};
gFa=function(a){if(a.u){var b=a.options[a.u];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.u=null}};
g.tM=function(a,b){g.hK(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.u;l&&(d=!0);h&&h.priority===-e?(a.options[f].pg(a.xk(f,!0)),delete a.options[f]):h=a.GF(f,-e,l);c[f]=h;a.B.Bc(h,!0)}d||(a.u=null);b=g.r(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
uM=function(a,b){g.sM.call(this,"Audio track",3,a,b);this.G=a;this.tracks={};this.j=new g.W({F:"div",R:[{F:"span",Z:"Audio track"},{F:"span",L:"ytp-menuitem-label-count",Z:"{{content}}"}]});a.K("web_settings_menu_icons")&&eK(this,{F:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},R:[{F:"path",T:{d:"M11.99,1.98C6.46,1.98,1.98,6.47,1.98,12s4.48,10.02,10.01,10.02c5.54,0,10.03-4.49,10.03-10.02S17.53,1.98,11.99,1.98z            M8.86,14.5c-0.16-0.82-0.25-1.65-0.25-2.5c0-0.87,.09-1.72,.26-2.55h6.27c0.17,.83,.26,1.68,.26,2.55 c0,.85-0.09,1.68-0.25,2.5H8.86z            M14.89,15.5c-0.54,1.89-1.52,3.64-2.89,5.15c-1.37-1.5-2.35-3.25-2.89-5.15H14.89z            M9.12,8.45 c0.54-1.87,1.52-3.61,2.88-5.1c1.36,1.49,2.34,3.22,2.88,5.1H9.12z            M16.15,9.45h4.5c0.24,.81,.37,1.66,.37,2.55 c0,.87-0.13,1.71-0.36,2.5h-4.51c0.15-0.82,.24-1.65,.24-2.5C16.39,11.13,16.3,10.28,16.15,9.45z            M20.29,8.45h-4.38 c-0.53-1.97-1.47-3.81-2.83-5.4C16.33,3.45,19.04,5.56,20.29,8.45z            M10.92,3.05c-1.35,1.59-2.3,3.43-2.83,5.4H3.71 C4.95,5.55,7.67,3.44,10.92,3.05z            M3.35,9.45h4.5C7.7,10.28,7.61,11.13,7.61,12c0,.85,.09,1.68,.24,2.5H3.34 c-0.23-0.79-0.36-1.63-0.36-2.5C2.98,11.11,3.11,10.26,3.35,9.45z            M3.69,15.5h4.39c0.52,1.99,1.48,3.85,2.84,5.45 C7.65,20.56,4.92,18.42,3.69,15.5z            M13.09,20.95c1.36-1.6,2.32-3.46,2.84-5.45h4.39C19.08,18.42,16.35,20.55,13.09,20.95z",
fill:"white"}}]});g.J(this,this.j);this.pg(this.j);this.P(a,"videodatachange",this.Ea);this.P(a,"onPlaybackAudioChange",this.Ea);this.Ea()};
vM=function(a,b){kK.call(this,"Autoplay",7);this.G=a;this.jb=b;this.j=!1;this.B=[];this.P(a,"presentingplayerstatechange",this.u);this.subscribe("select",this.onSelect,this);a.Bb(this.element,this,113682);this.u()};
wM=function(a,b,c,d){d=new g.W({F:"div",Ba:["ytp-linked-account-popup-button"],Z:d,T:{role:"button",tabindex:"0"}});b=new g.W({F:"div",L:"ytp-linked-account-popup",T:{role:"dialog","aria-modal":"true",tabindex:"-1"},R:[{F:"div",L:"ytp-linked-account-popup-title",Z:b},{F:"div",L:"ytp-linked-account-popup-description",Z:c},{F:"div",L:"ytp-linked-account-popup-buttons",R:[d]}]});g.HJ.call(this,a,{F:"div",L:"ytp-linked-account-popup-container",R:[b]},100);var e=this;this.dialog=b;g.J(this,this.dialog);
d.Ma("click",function(){e.Gb()});
g.J(this,d);g.II(this.G,this.element,4);this.hide()};
xM=function(a,b){g.cK.call(this,g.dK({"aria-haspopup":"true"}),1);this.G=a;this.jb=b;this.u=this.j=!1;this.P(this.G,"videodatachange",this.C);this.Ma("click",this.onClick);this.C()};
yM=function(a){return a?g.Hv(a):""};
zM=function(a,b,c){g.W.call(this,{F:"div",L:"ytp-screen-mode-settings-option",R:[{F:"div",L:"ytp-screen-mode-settings-label",Z:"{{label}}"}]});this.jb=c;this.po=new g.xG({F:"button",Ba:["ytp-screen-mode-settings-button","ytp-button"],Z:"{{icon}}",T:{title:"{{title}}"}});this.po.xa(this.element,0);g.J(this,this.po);this.po.Ha("icon",a);this.pg(b);this.Ma("click",this.onClick)};
AM=function(a,b,c){zM.call(this,{F:"svg",T:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},R:[{F:"path",T:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M43,26H26v10h17V26 M23,16v6.09l-6.68-6.68l-1.41,1.41L21.09,23H16v2h9v-9H23z",fill:"white"}}]},yJ(b,"Miniplayer","i"),c);this.G=b;a.addButton(this);this.P(b,"fullscreentoggled",this.Ea);b.Bb(this.element,this,62946);this.Ea()};
BM=function(a,b){g.sM.call(this,"Quality",2,a,b);this.G=a;this.D={};this.j="unknown";a.K("web_settings_menu_icons")&&eK(this,{F:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},R:[{F:"path",T:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z            M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.N(this.B.element,"ytp-quality-menu");this.P(a,"videodatachange",this.Pw);this.P(a,"videoplayerreset",this.Pw);this.P(a,"onPlaybackQualityChange",
this.BL);this.Pw();a.Bb(this.element,this,137721)};
hFa=function(a,b,c){a=a.D[b];var d=g.Lw[b];c={F:"span",Ba:c,R:[a?a.qualityLabel:d?d+"p":"Auto"]};var e;"highres"===b?e="8K":"hd2880"===b?e="5K":"hd2160"===b?e="4K":0===b.indexOf("hd")&&"hd720"!==b&&(e="HD");e&&(c.R.push(" "),c.R.push({F:"sup",L:"ytp-swatch-color",Z:e}));return c};
CM=function(a,b,c){zM.call(this,SAa(),"Connect to a device",c);this.G=b;this.j=null;a.addButton(this);this.P(b,"onMdxReceiversChange",this.Ea);this.P(b,"presentingplayerstatechange",this.Ea);this.P(b,"appresize",this.Ea);b.Bb(this.element,this,139118);this.Ma("click",this.onClick);this.Ea()};
DM=function(a,b){g.xG.call(this,{F:"div",L:"ytp-screen-mode-menu-item"});this.G=a;this.jb=b};
EM=function(a,b,c){zM.call(this,hBa(),yJ(b,"Theater mode","t"),c);this.G=b;this.isWidescreen=null;a.addButton(this);this.P(b,"sizestylechange",this.Ea);this.P(b,"fullscreentoggled",this.Ea);this.P(b,"presentingplayerstatechange",this.Ea);b.Bb(this.element,this,139116);this.Ea()};
FM=function(a,b,c,d,e,f,h){g.W.call(this,{F:"div",L:"ytp-slider-section",T:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},R:[{F:"div",L:"ytp-slider",R:[{F:"div",L:"ytp-slider-handle"}]}]});this.I=a;this.D=b;this.minimumValue=c;this.maximumValue=d;this.J=e;this.W=f;this.range=this.maximumValue-this.minimumValue;this.Y=this.ya("ytp-slider-section");this.u=this.ya("ytp-slider");this.N=this.ya("ytp-slider-handle");
this.C=new g.mu(this.u,!0);this.j=h?h:c;g.J(this,this.C);this.C.subscribe("dragmove",this.fU,this);this.P(this.element,"keydown",this.gU);this.P(this.element,"wheel",this.eU);this.init()};
HM=function(a){FM.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.G=a;this.B=g.zg("P");this.ma=jca(this.V,this);g.N(this.u,"ytp-speedslider");g.N(this.B,"ytp-speedslider-text");a=this.u;a.parentNode&&a.parentNode.insertBefore(this.B,a.nextSibling);GM(this);this.P(this.G,"onPlaybackRateChange",this.va)};
GM=function(a){a.B.textContent=IM(a,a.j)+"x"};
IM=function(a,b){a=Number(g.Xf(b,a.minimumValue,a.maximumValue).toFixed(2));b=Math.floor(100*(a+.001)%5+2E-15);var c=a;0!==b&&(c=a-.01*b);return Number(c.toFixed(2))};
JM=function(a){g.xG.call(this,{F:"div",L:"ytp-speedslider-component"});this.j=new HM(a);g.J(this,this.j);this.element.appendChild(this.j.element)};
iFa=function(a){var b=new JM(a);fK.call(this,a,b,"Custom");g.J(this,b)};
KM=function(a,b){var c=new iFa(a);g.sM.call(this,"Playback speed",5,a,b,"Custom",function(){g.nK(b,c)});
a.K("web_settings_menu_icons")&&eK(this,{F:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},R:[{F:"path",T:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z            M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z            M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z            M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z            M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
fill:"white"}}]});g.J(this,c);this.G=a;this.D=this.j=this.J=null;this.I=this.G.getAvailablePlaybackRates();this.P(a,"presentingplayerstatechange",this.Ea);this.Ea()};
jFa=function(a,b){var c=LM(b);a.options[c]?a.tj(c):b===a.D&&a.j&&(a.tj(a.j),a.Jd(b.toString()))};
lFa=function(a){g.tM(a,a.I.map(LM));a.j=null;a.D=null;var b=a.G.getPlaybackRate();a.I.includes(b)||(kFa(a,b),g.sM.prototype.yg.call(a,a.j))};
kFa=function(a,b){a.D=b;a.j=g.gF("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.I.map(LM);b.unshift(a.j);g.tM(a,b)};
LM=function(a){return a.toString()};
MM=function(a,b,c,d){var e=new g.gK(b,void 0,"Video Override");g.sM.call(this,d.text||"",a,b,c,"Video Override",function(){g.nK(c,e)});
var f=this;g.N(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.rc(a,this.getKey,this);this.I=e;g.J(this,this.I);b=new g.cK({F:"div",L:"ytp-menuitemtitle",Z:"Allow for a different caption style if specified by the video."},0);g.J(this,b);this.I.Bc(b,!0);this.D=new g.cK({F:"div",L:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},R:[{F:"div",L:"ytp-menuitem-label",Z:"On"}]},-1);g.J(this,this.D);this.I.Bc(this.D,!0);this.P(this.D.element,
"click",function(){mFa(f,!0)});
this.j=new g.cK({F:"div",L:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},R:[{F:"div",L:"ytp-menuitem-label",Z:"Off"}]},-2);g.J(this,this.j);this.I.Bc(this.j,!0);this.P(this.j.element,"click",function(){mFa(f,!1)});
g.tM(this,g.kk(a,this.getKey))};
mFa=function(a,b){a.X("settingChange",a.setting+"Override",!b);a.jb.Ji()};
NM=function(a,b){g.gK.call(this,a,void 0,"Options");var c=this;this.Rp={};for(var d=0;d<g.PK.length;d++){var e=g.PK[d],f=new MM(-d,a,b,e);g.J(this,f);f.subscribe("settingChange",this.Gi,this);this.Rp[e.option.toString()]=f;this.Bc(f,!0)}a=new g.cK(g.dK(),-g.PK.length,"Reset");g.J(this,a);a.Ma("click",function(){c.Gi("reset",!0)});
this.Bc(a,!0)};
OM=function(a,b){g.sM.call(this,"Auto-translate",0,a,b);this.G=a;this.languages={};a.Bb(this.element,this,127301);a.Wa(this.element,!0)};
nFa=function(a,b){a.languages=g.rc(b,a.getKey,a);g.tM(a,g.kk(b,a.getKey))};
PM=function(a,b){var c=new NM(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.WB(a.S())&&(e={F:"div",L:"ytp-panel-footer-content",R:[{F:"span",Z:d[0]},{F:"a",L:"ytp-panel-footer-content-link",Z:"Settings",T:{href:"/account_playback"}},{F:"span",Z:d[1]}]});g.sM.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.nK(b,c)},e);
var f=this;this.G=a;this.jb=b;this.tracks={};this.I=new g.K(function(){oFa(f,!1)},3E3);
g.J(this,this.I);this.J=new g.W({F:"div",R:[{F:"span",Z:"Subtitles/CC"},{F:"span",L:"ytp-menuitem-label-count",Z:"{{content}}"}]});g.J(this,this.J);this.pg(this.J);a.K("web_settings_menu_icons")&&eK(this,{F:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},R:[{F:"path",T:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z            M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z            M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
fill:"white"}}]});this.j=new OM(a,b);g.J(this,this.j);this.j.subscribe("select",this.hU,this);this.D=c;g.J(this,this.D);this.D.subscribe("settingChange",this.Gi,this);b.subscribe("show",this.e_,this);this.P(a,"videodatachange",this.Ea);this.P(a,"onApiChange",this.Ea);this.P(a,"onCaptionsTrackListChanged",this.Ea);this.P(a,"captionschanged",this.Ea);a.Bb(this.element,this,127300);this.Ea()};
oFa=function(a,b){a.G.setOption("captions","sampleSubtitles",b)};
QM=function(a){g.pK.call(this,a,"ytp-settings-menu");var b=this;this.bd=new g.gK(this.G);this.HH=this.settingsButton=null;this.FD=0;this.isInitialized=!1;g.J(this,this.bd);this.hide();g.nK(this,this.bd);var c=this.G.S();if(c.K("web_screen_mode_menu_b")){var d=new DM(this.G,this);g.J(this,d);if(c.showMiniplayerButton&&!c.K("web_player_pip")){var e=new AM(d,this.G,this);g.J(this,e)}c.Kb||(e=new EM(d,this.G,this),g.J(this,e),this.FD++);c.qb&&(c=new CM(d,this.G,this),g.J(this,c),this.FD++);1<this.FD&&
ODa(this.bd,d)}a.Bb(this.element,this,108341,!0);this.subscribe("show",function(f){b.uf(f)})};
pFa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
RM=function(a,b){g.W.call(this,{F:"button",Ba:["ytp-size-button","ytp-button"],T:{title:"{{title}}"},Z:"{{icon}}"});this.G=a;this.isWidescreen=null;this.transition=new zL;this.tooltip=b.kc();g.J(this,this.transition);this.P(a,"sizestylechange",this.Ea);this.P(a,"fullscreentoggled",this.Ea);this.P(a,"presentingplayerstatechange",this.Ea);a.Bb(this.element,this,139116);this.Ea();this.Ma("click",this.onClick);g.Be(this,g.WJ(this.tooltip,this.element))};
g.SM=function(a,b){g.W.call(this,{F:"button",Ba:["ytp-subtitles-button","ytp-button"],T:{"aria-pressed":"{{pressed}}",title:"{{title}}"},R:[oDa()]});this.G=a;this.tooltip=b.kc();this.P(a,"videodatachange",this.Ea);this.P(a,"appresize",this.Ea);this.P(a,"promotooltipacceptbuttonclicked",this.j);this.P(a,"onApiChange",this.Ea);this.P(a,"onCaptionsTrackListChanged",this.Ea);this.P(a,"captionschanged",this.Ea);this.G.Bb(this.element,this,127299);this.Ea();this.Ma("click",this.onClick);g.Be(this,g.WJ(b.kc(),
this.element))};
g.UM=function(a,b,c){c=void 0===c?350:c;g.W.call(this,{F:"div",Ba:["ytp-time-display","notranslate"],R:[{F:"span",L:"ytp-time-clip-icon",Z:"{{clipicon}}"},{F:"span",R:[{F:"span",L:"ytp-time-current",Z:"{{currenttime}}"},{F:"span",L:"ytp-time-separator",Z:" / "},{F:"span",L:"ytp-time-duration",Z:"{{duration}}"}]},{F:"span",L:"ytp-clip-watch-full-video-button-separator",Z:"\u2022"},{F:"span",L:"ytp-clip-watch-full-video-button",Z:"{{watchfullvideo}}"}]});this.api=a;this.J=c;this.liveBadge=new g.W({F:"button",
Ba:["ytp-live-badge","ytp-button"],T:{disabled:"true"},Z:"{{content}}"});this.j=null;this.isLiveVideo=this.u=!1;this.I=this.D=null;this.isPremiere=!1;this.tb=this.C=this.B=null;this.N=this.ya("ytp-clip-watch-full-video-button");this.liveBadge.Jd("Live");g.J(this,this.liveBadge);this.liveBadge.xa(this.element);this.tooltip=b.kc();this.Ma("click",this.onClick);this.P(this.N,"click",this.J_);this.P(a,"presentingplayerstatechange",this.Sb);this.P(a,"appresize",this.Sb);this.P(a,"onLoopRangeChange",this.onLoopRangeChange);
this.P(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Sb();a=a.getLoopRange();b=this.tb!==a;this.tb=a;b&&TM(this)};
TM=function(a){a.Ha("clipicon",{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},R:[{F:"path",T:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]});
a.isLiveVideo&&!a.u?a.Ha("watchfullvideo","Watch live stream"):a.Ha("watchfullvideo","Watch full video");g.O(a.element,"ytp-clip",VM(a));g.O(a.element,"ytp-live",WM(a))};
WM=function(a){var b=a.api.S().K("enable_linear_program_progress");return a.isLiveVideo&&!VM(a)&&(!b||!a.u)};
VM=function(a){return!!a.tb&&!!a.tb.postId&&2!==a.api.getPresentingPlayerType()&&(!a.api.K("web_repeating_chapters")||"clips"===a.tb.type)};
ZM=function(a,b,c){g.W.call(this,{F:"div",L:"ytp-volume-panel",T:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},R:[{F:"div",L:"ytp-volume-slider",R:[{F:"div",L:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.j=b;this.J=c;this.Fj=!1;this.V=this.volume=0;this.I=null;this.B=this.u=this.isDragging=!1;this.j=b;this.J=c;this.C=b.Jf();this.N=this.ya("ytp-volume-slider");this.W=this.ya("ytp-volume-slider-handle");
this.D=new g.mu(this.N,!0);g.J(this,this.D);this.D.subscribe("dragstart",this.j_,this);this.D.subscribe("dragmove",this.jU,this);this.D.subscribe("dragend",this.i_,this);this.P(a,"onVolumeChange",this.onVolumeChange);this.P(a,"appresize",this.CL);this.P(a,"fullscreentoggled",this.Wn);this.P(a,"onShowControls",this.XM);this.P(a,"onHideControls",this.XM);this.P(this.element,"keydown",this.kU);this.P(this.element,"focus",function(){XM(d,d.u,d.isDragging,!0,d.j.Fj())});
this.P(this.element,"blur",function(){XM(d,d.u,d.isDragging,!1,d.j.Fj())});
this.CL(a.Ya().getPlayerSize());YM(this,a.getVolume(),a.isMuted())};
YM=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.Ha("valuenow",d);a.Ha("valuetext",e);a.W.style.left=(a.C?60:40)*c+"px";a.volume=b};
qFa=function(a,b){g.O(a.element,"ytp-volume-control-hover",b);XM(a,b,a.isDragging,a.B,a.j.Fj())};
XM=function(a,b,c,d,e){var f=a.u||a.isDragging||a.B||a.Fj;a.u=b;a.isDragging=c;a.B=d;a.Fj=e;b=a.u||a.isDragging||a.B||a.Fj;f!==b&&(b?a.I=a.P(a.element,"wheel",a.iU):(a.vc(a.I),a.I=null),g.O(a.J,"ytp-volume-slider-active",b))};
g.$M=function(a,b){var c=a.S(),d=g.tB(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.C&&e.push("no-link");g.iB(c)&&e.push("ytp-youtube-music-button");var f={target:c.J,"data-sessionlink":"feature=player-button",title:""};c.C||(f.title=g.gF("Watch on $WEBSITE",{WEBSITE:d}),f.href="{{url}}");g.W.call(this,{F:"a",Ba:e,T:f,Z:"{{logoSvg}}"});this.api=a;this.visible=!1;a.Bb(this.element,this,28666);c.C||this.Ma("click",this.onClick);this.P(a,
"videodatachange",this.onVideoDataChange);this.P(a,"onLoopRangeChange",this.onVideoDataChange);this.P(a,"appresize",this.wb);this.onVideoDataChange();c.C||g.Be(this,g.WJ(b.kc(),this.element));this.wb()};
aN=function(a,b,c){g.kz.call(this);var d=this;this.G=a;this.B=b;this.Qd=c;this.Pa=NaN;this.Sa=this.Ia=null;this.settingsMenu=new QM(this.G);this.j=null;this.uc=new g.QL(this.G,this.B);this.muteButton=null;this.Oh=new g.UM(this.G,this.B);this.N=this.D=this.C=this.V=this.Da=this.va=null;this.W=new CL(this.G,this.B);this.Ga=new g.uL(this.G,this.B);this.oe=new g.Dn(this.ls,null,this);this.J=null;c=a.S();this.Qd.subscribe("autohideupdate",this.Uk,this);var e=!a.xb().isCued(),f=this.G.S().K("html5_player_bottom_linear_gradient");
f||!g.iB(c)&&!a.S().K("html5_player_dynamic_bottom_gradient")?f=f?new g.W({F:"div",L:"ytp-gradient-bottom-container",R:[{F:"div",L:"ytp-gradient-bottom-extension"},{F:"div",L:"ytp-gradient-bottom"}]}):new g.W({F:"div",L:"ytp-gradient-bottom"}):this.Sa=f=new g.nL(a);g.J(this,f);g.II(a,f.element,9);this.oa=new g.hH(f,250,e,100);g.J(this,this.oa);this.u=new g.W({F:"div",L:"ytp-chrome-bottom",R:[{F:"div",L:"ytp-chrome-controls"}]});g.J(this,this.u);g.II(a,this.u.element,9);this.Y=new g.hH(this.u,250,
e,100);g.J(this,this.Y);this.ma=this.u.element.children[0];g.Be(this.settingsMenu,function(){a.Bp()===d.settingsMenu&&(a.settingsMenu=null)});
g.J(this,this.settingsMenu);a.settingsMenu=this.settingsMenu;g.II(a,this.settingsMenu.element,6);this.settingsMenu.subscribe("show",function(n){rFa(d.B.kc(),!n);b.Cz(d.settingsMenu,n)});
g.J(this,this.uc);this.uc.xa(this.u.element,0);e=new g.qL(a);g.J(this,e);g.II(a,e.element,4);f=new g.tG({F:"div",L:"ytp-left-controls"});g.J(this,f);f.xa(this.ma);e=new g.FL(a,b,!1);g.J(this,e);e.xa(f.element);c.Da||(e=new g.DL(a,b),g.J(this,e),e.xa(f.element),XB(c)&&(e=new g.tG({F:"div",L:"ytp-hybrid-controls"}),g.J(this,e),this.N=new g.DL(a,b,!0),g.J(this,this.N),this.N.xa(e.element),g.II(a,e.element,4)));e=new g.FL(a,b,!0);g.J(this,e);e.xa(f.element);e=new g.W({F:"span",L:"ytp-volume-area"});g.J(this,
e);e.xa(f.element);if(!c.qc&&(this.muteButton=new g.BL(a,b),g.J(this,this.muteButton),this.muteButton.xa(e.element),c.ma&&!c.I)){var h=new ZM(a,b,this.u.element);g.J(this,h);h.xa(e.element);e=new g.mu(e.element);g.J(this,e);e.subscribe("hoverstart",function(){qFa(h,!0)});
e=new g.mu(f.element);g.J(this,e);e.subscribe("hoverend",function(){qFa(h,!1)})}g.J(this,this.Oh);
this.Oh.xa(f.element);e=new g.tG({F:"div",L:"ytp-right-controls"});g.J(this,e);this.va=new pL(a,b,this.uc);g.J(this,this.va);this.va.xa(f.element);c.K("web_key_moments_markers")&&(this.Da=new vL(a,b,this.uc),g.J(this,this.Da),this.Da.xa(f.element));e.xa(this.ma);a.S().Zc&&c.K("web_player_move_autonav_toggle")&&(f=new lL(a,b),g.J(this,f),f.xa(e.element));c.K("external_fullscreen_with_edu")&&c.externalFullscreen&&vB(c)&&(this.V=new tL(a,b),g.J(this,this.V),this.V.xa(e.element));f=new g.SM(a,b);g.J(this,
f);f.xa(e.element);f=new pM(a,b,this.settingsMenu);g.J(this,f);pFa(this.settingsMenu,f);f.xa(e.element);if(c.K("web_screen_mode_menu_a")){var l=new iM(a,b);g.J(this,l);this.j=new oM(this.G,this.settingsMenu,l);l.jb=this.j;g.Be(this.j,function(){a.Yx()===d.j&&(a.EE=null)});
g.J(this,this.j)}if(f=this.j&&1<this.j.ED)a.EE=this.j,g.II(a,this.j.element,7),this.j.subscribe("show",function(n){rFa(d.B.kc(),!n);b.Cz(d.j,n)}),l.xa(e.element);
var m=new yL(a);g.J(this,m);g.II(a,m.element,5);m.subscribe("show",function(n){b.fp(m,n)});
l=new xL(a,b,m);g.J(this,l);l.xa(e.element);l=a.getVideoData();if(c.xl||l.D&&"1"===c.controlsType)this.C=new g.$M(a,b),g.J(this,this.C),this.C.xa(e.element);g.J(this,this.W);!f&&1>=this.settingsMenu.FD&&(c.showMiniplayerButton&&!a.S().K("web_player_pip")&&(this.D=new wL(a,b),g.J(this,this.D),this.D.xa(e.element)),this.W.xa(e.element),l.RE||this.W.hide(),c.Kb||(l=new RM(a,b),g.J(this,l),l.xa(e.element)),c.qb&&(l=new hM(a,b,this.settingsMenu),g.J(this,l),l.xa(e.element)),c.ql&&(c=new kL(a,b),g.J(this,
c),c.xa(e.element)));g.J(this,this.Ga);this.Ga.xa(e.element);g.J(this,this.oe);this.P(a,"appresize",this.wb);this.P(a,"fullscreentoggled",this.wb);this.P(a,"presentingplayerstatechange",this.JE);this.P(a,"videodatachange",this.onVideoDataChange);this.wb()};
sFa=function(a,b){a.G.xb().isCued()||b?b&&(a.Y.hide(),a.oa.hide(),a.muteButton&&a.muteButton.dc(!1),a.C&&a.C.dc(!1),a.D&&a.D.dc(!1),a.B.kc().Ak(a.u.element)):b||(a.Y.show(),a.oa.show(),a.muteButton&&a.muteButton.dc(!0),a.C&&a.C.dc(!0),a.D&&a.D.dc(!0),a.Uk())};
tFa=function(a){var b=a.G.Ya().getPlayerSize().width;return Math.max(b-2*bN(a),100)};
bN=function(a){var b=a.B.Jf();return 12*(a.G.getVideoData().D?0:b?2:1)};
cN=function(a){var b=a.B.Jf()?72:50;a=a.G.S();g.SB(a)&&(b=54,Yva(a)&&(b=62));return b};
dN=function(a,b){gL.call(this,a,b,!1);var c=this;this.P(this.G,"videodatachange",this.onVideoDataChange);this.P(this.G,g.Cv("suggested_action_button_visible"),function(){c.uf(!0)});
this.P(this.G,g.Dv("suggested_action_button_visible"),function(){c.uf(!1)})};
eN=function(a){a.G.Df("suggested_action_button_visible")};
gN=function(a){var b={F:"div",L:fN.SUBTEXT,R:[{F:"a",L:fN.CHANNEL_NAME,T:{href:"{{channelLink}}",target:"_blank"},Z:"{{channelName}}"}]};a.S().C&&(b={F:"div",L:fN.SUBTEXT,R:[{F:"span",L:fN.CHANNEL_NAME,Z:"{{channelName}}"}]});g.W.call(this,{F:"div",L:fN.TITLE,R:[{F:"div",L:fN.TEXT,R:[{F:"a",Ba:[fN.LINK,fN.SESSIONLINK],T:{target:a.S().J,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},Z:"{{title}}"},b]}]});this.api=a;this.j=null;this.link=this.ya(fN.LINK);
a.Bb(this.element,this,23851);this.P(a,"videodatachange",this.Ea);this.P(a,"videoplayerreset",this.Ea);this.Ea()};
uFa=function(a){a.Ha("channelLink","");a.Ha("channelName","");a.Ha("channelTitleFocusable","-1")};
g.hN=function(a,b){g.W.call(this,{F:"div",R:[{F:"div",L:"ytp-tooltip-text-wrapper",R:[{F:"div",L:"ytp-tooltip-image"},{F:"div",L:"ytp-tooltip-title",R:[{F:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},R:[{F:"g",R:[{F:"rect",T:{fill:"none",height:"24",width:"24",x:"0"}}]},{F:"g",R:[{F:"g",R:[{F:"polygon",T:{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",T:{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",
T:{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",Z:"{{title}}"}]},{F:"span",L:"ytp-tooltip-text",Z:"{{text}}"}]},{F:"div",L:"ytp-tooltip-bg",R:[{F:"div",L:"ytp-tooltip-duration",Z:"{{duration}}"}]}]});var c=this;this.api=a;this.Da=b;this.env=this.api.S();this.va=this.env.isMobile;this.bg=this.ya("ytp-tooltip-bg");this.image=this.ya("ytp-tooltip-image");this.text=this.ya("ytp-tooltip-text");
this.title=this.ya("ytp-tooltip-title");this.V=function(d){(d=mt(d))&&g.Fg(c.u,d)||c.Jl()};
this.C=function(d){3===c.type&&c.Jl();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.C),d.addEventListener("mouseout",c.V),d.removeEventListener("focus",c.C),d.addEventListener("blur",c.V),vFa(c,d,2))};
this.W=function(){c.Jl()};
this.u=null;this.D=new g.hH(this,100);this.type=null;this.N=!1;this.j=null;this.B=NaN;this.I="";this.KE=this.api.Ya().getPlayerSize().width;this.J=!0;this.scale=1;this.Y=new g.K(this.kX,250,this);this.ma=new g.K(this.Jl,5E3,this);g.J(this,this.D);g.J(this,this.Y);g.J(this,this.ma);UA&&(a=this.ya("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
$J=function(a){a.element.setAttribute("aria-live","polite")};
rFa=function(a,b){if(null!=a.type)if(b)switch(a.type){case 3:case 2:iN(a);a.D.show();break;default:a.D.show()}else a.D.hide();a.J=b};
yFa=function(a,b,c,d,e,f,h,l){if(!a.va||a.env.I){3===a.type&&a.Jl();1!==a.type&&(g.co(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.J&&a.D.show(),a.j&&a.j.dispose(),a.j=a.api.wi(),a.j&&a.j.subscribe("l",a.OP,a));a.update({text:d,title:null!=h?h:""});g.O(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.O(a.element,"ytp-text-detail",!!e);d=-1;a.j&&(d=dD(a.j,160*a.scale),a.env.K("web_l3_storyboard")&&4===a.j.levels.length&&(d=a.j.levels.length-1),d=lxa(a.j,d,c));wFa(a,d);if(l)switch(c=g.ll(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"}xFa(a,!!e,b,f)}};
g.jN=function(a){1===a.type&&a.Jl()};
g.WJ=function(a,b){if(a.va)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.Jl();b.removeEventListener("mouseover",a.C);b.removeEventListener("focus",a.C)}};
HK=function(a,b,c){if(a.type)if(3===a.type)a.Jl();else return;vFa(a,b,3,c)};
vFa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Ar("showElementTooltip called with non-element.",b.toString()),g.S(a);else{isNaN(a.B)||(a.B=NaN,a.bg.style.background="");a.u=b;a.N=!!d;d?a.I=d:(a.I=b.getAttribute("title"),b.removeAttribute("title"));g.co(a.element,"ytp-tooltip");a.env.K("web_rounded_containers")&&g.N(a.element,"ytp-rounded-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.O(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");
g.O(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.W);a.J&&(iN(a),a.D.show(0))}};
iN=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.N){var c=a.u;a.Ha("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.fo(a.element,["ytp-text-detail","ytp-preview"]);
g.O(a.element,"ytp-has-duration",!!d)}else a.Ha("text",a.I),g.ho(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);xFa(a,!!b)};
xFa=function(a,b,c,d){var e=Math.min(a.KE,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Da.As(a.element,a.u,c,1===a.type,d);a.element.style.top?g.N(a.element,"ytp-bottom"):a.element.style.bottom&&g.N(a.element,"ytp-top");3===a.type&&a.ma.start()};
IK=function(a){a.u&&!a.N&&a.u.hasAttribute("title")&&(a.I=a.u.getAttribute("title")||"",a.u.removeAttribute("title"),a.J&&iN(a))};
wFa=function(a,b){g.O(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=hxa(a.j,a.B,b);rEa(a.bg,d,b,c,!0);a.Y.start()}};
zFa=function(a){var b=a.u;3===a.type&&a.ma.stop();a.api.removeEventListener("appresize",a.W);a.N||b.setAttribute("title",a.I);a.I="";a.u=null};
g.kN=function(a,b){g.W.call(this,{F:"button",Ba:["ytp-watch-later-button","ytp-button"],T:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.YA(a.S()))},R:[{F:"div",L:"ytp-watch-later-icon",Z:"{{icon}}"},{F:"div",L:"ytp-watch-later-title",Z:"Watch later"}]});this.G=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.kc();$J(this.tooltip);a.Bb(this.element,this,28665);this.Ma("click",this.onClick,this);this.P(a,"videoplayerreset",this.lU);this.P(a,
"appresize",this.AA);this.P(a,"videodatachange",this.AA);this.P(a,"presentingplayerstatechange",this.AA);this.AA();a=this.G.S();var c=g.$u("yt-player-watch-later-pending");a.j&&c?(Qua(),AFa(this)):this.Ea(2);g.O(this.element,"ytp-show-watch-later-title",g.YA(a));g.Be(this,g.WJ(b.kc(),this.element))};
BFa=function(a,b){g.IH(function(){Qua({videoId:b});window.location.reload()},"wl_button",g.sB(a.G.S()))};
AFa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ea(3);var b=a.G.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.G.im(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ea(2);a.G.S().B&&a.G.La("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Ea(1);a.G.S().isMobile&&HK(a.tooltip,a.element);a.G.S().B&&a.G.La("WATCH_LATER_VIDEO_ADDED")};
TH(c,b).then(d,function(){a.isRequestPending=!1;CFa(a,"An error occurred. Please try again later.")})}};
CFa=function(a,b){a.Ea(4,b);a.G.S().B&&a.G.La("WATCH_LATER_ERROR",b)};
DFa=function(a,b){var c=a.G.S();if(b!==a.icon){switch(b){case 3:var d=wJ();break;case 1:d=AG();break;case 2:d={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{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",T:{height:"100%",version:"1.1",
viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{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",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,T:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Ha("icon",d);a.icon=b}};
lN=function(a){g.LJ.call(this,a);var b=this;this.ZB=(this.Kr=g.YA(this.api.S()))&&(this.api.S().isMobile||Lq()||Jq());this.MF=48;this.NF=69;this.Yl=null;this.Tp=[];this.Cc=new g.RJ(this.api);this.Cx=this.api.K("web_player_deprecate_double_tap_ux")?new JK:new KK(this.api);this.lj=new g.W({F:"div",L:"ytp-chrome-top"});this.Sz=[];this.tooltip=new g.hN(this.api,this);this.backButton=this.Dv=null;this.channelAvatar=new bK(this.api,this);this.title=new gN(this.api,this);this.Ph=new g.tG({F:"div",L:"ytp-chrome-top-buttons"});
this.rh=this.shareButton=this.Ni=null;this.qh=new VJ(this.api,this,this.lj.element);this.overflowButton=this.jh=null;this.Uf="1"===this.api.S().controlsType?new aN(this.api,this,this.Qd):null;this.contextMenu=new g.FK(this.api,this,this.Cc);this.DF=!1;this.tB=new g.W({F:"div",T:{tabindex:"0"}});this.sB=new g.W({F:"div",T:{tabindex:"0"}});this.lz=null;this.RH=this.cB=!1;var c=a.Ya(),d=a.S(),e=a.getVideoData();this.Kr&&(g.N(a.getRootNode(),"ytp-embed"),g.N(a.getRootNode(),"ytp-embed-playlist"),this.ZB&&
(g.N(a.getRootNode(),"ytp-embed-overlays-autohide"),g.N(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.MF=60,this.NF=89);this.api.S().isMobile&&(g.N(a.getRootNode(),"ytp-mobile"),this.api.S().I&&g.N(a.getRootNode(),"ytp-embed-mobile-exp"));this.wh=e&&e.wh;g.J(this,this.Cc);g.II(a,this.Cc.element,4);g.J(this,this.Cx);g.II(a,this.Cx.element,4);e=new g.W({F:"div",L:"ytp-gradient-top"});g.J(this,e);g.II(a,e.element,1);this.VJ=new g.hH(e,250,!0,100);g.J(this,this.VJ);g.J(this,this.lj);g.II(a,
this.lj.element,1);this.UJ=new g.hH(this.lj,250,!0,100);g.J(this,this.UJ);g.J(this,this.tooltip);g.II(a,this.tooltip.element,4);var f=new VK(a);g.J(this,f);g.II(a,f.element,5);f.subscribe("show",function(m){b.fp(f,m)});
this.Sz.push(f);this.Dv=new WK(a,this,f);g.J(this,this.Dv);d.showBackButton&&(this.backButton=new QJ(a),g.J(this,this.backButton),this.backButton.xa(this.lj.element));this.Kr||this.Dv.xa(this.lj.element);this.channelAvatar.xa(this.lj.element);g.J(this,this.channelAvatar);g.J(this,this.title);this.title.xa(this.lj.element);g.J(this,this.Ph);this.Ph.xa(this.lj.element);d.C||(this.Ni=new g.kN(a,this),g.J(this,this.Ni),this.Ni.xa(this.Ph.element));var h=new g.dL(a,this);g.J(this,h);g.II(a,h.element,5);
h.subscribe("show",function(m){b.fp(h,m)});
this.Sz.push(h);d.C||(this.shareButton=new g.cL(a,this,h),g.J(this,this.shareButton),this.shareButton.xa(this.Ph.element),this.rh=new g.GK(a,this),g.J(this,this.rh),this.rh.xa(this.Ph.element));d.Gl&&(e=new jL(a),g.J(this,e),g.II(a,e.element,4));this.Kr&&this.Dv.xa(this.Ph.element);g.J(this,this.qh);this.qh.xa(this.Ph.element);d.C||(e=new XJ(a,this,this.qh),g.J(this,e),e.xa(this.Ph.element));this.jh=new SK(a,this);g.J(this,this.jh);g.II(a,this.jh.element,5);this.jh.subscribe("show",function(){b.fp(b.jh,
b.jh.dh())});
this.Sz.push(this.jh);this.overflowButton=new RK(a,this,this.jh);g.J(this,this.overflowButton);this.overflowButton.xa(this.Ph.element);this.Uf&&g.J(this,this.Uf);"3"===d.controlsType&&(e=new bL(a,this),g.J(this,e),g.II(a,e.element,9));g.J(this,this.contextMenu);this.contextMenu.subscribe("show",this.dS,this);e=new DH(a,new PJ(a));g.J(this,e);g.II(a,e.element,4);this.tB.Ma("focus",this.cW,this);g.J(this,this.tB);this.sB.Ma("focus",this.dW,this);g.J(this,this.sB);var l;(this.Pn=d.bf?null:new g.OK(a,
c,this.contextMenu,this.Qd,this.Cc,this.Cx,function(){return b.fm()},null==(l=this.Uf)?void 0:l.uc))&&g.J(this,this.Pn);
this.Kr||(this.nR=new hL(this.api,this),g.J(this,this.nR),g.II(a,this.nR.element,4));this.yR=new dN(this.api,this);g.J(this,this.yR);g.II(a,this.yR.element,4);this.Sp.push(this.Cc.element);this.P(a,"fullscreentoggled",this.Wn);this.P(a,"offlineslatestatechange",function(){b.api.yy()&&qJ(b.Qd,128,!1)});
this.P(a,"cardstatechange",function(){b.jk()});
this.P(a,"resize",this.zY);this.P(a,"showpromotooltip",this.cZ)};
EFa=function(a){var b=a.api.S(),c=g.V(a.api.xb(),128);return b.j&&c&&!a.api.isFullscreen()};
mN=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==dl(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=mN(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d};
FFa=function(a,b,c){if(a.api.S().K("web_player_nitrate_promo_tooltip")){var d=a.api.getVideoData(1);if(null==d?0:d.tooltipRenderer){d=d.tooltipRenderer;var e;if(e=!a.lz){if(!(b=!b)){var f,h;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null==(f=d.tooltipDisplayStrategy)?void 0:f.type)&&"dtip-edu-player-iseecaptions"!==(null==(h=d.promoConfig)?void 0:h.promoId)}e=b}e&&(a.lz=new XK(d,a,a.api),g.J(a,a.lz),g.II(a.api,a.lz.element,9));var l;null==(l=a.lz)||$K(l,d,c)}}};
g.nN=function(a){g.WI.call(this,a);this.chrome=null;this.load()};
oN=function(a,b,c,d){function e(h){var l=!(204!==h.status&&200!==h.status&&!h.response),m;h={succ:""+ +l,rc:h.status,lb:(null==(m=h.response)?void 0:m.byteLength)||0,rt:((0,g.R)()-f).toFixed(),shost:g.Gh(a),trigger:b};GFa(h,a);c&&c(h);d&&!l&&d(new fC("pathprobe.net",h))}
var f=(0,g.R)();g.pq(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
GFa=function(a,b){var c;(null==(c=window.performance)?0:c.getEntriesByName)&&(b=performance.getEntriesByName(b))&&b.length&&(b=b[0],a.pedns=(b.domainLookupEnd-b.startTime).toFixed(),a.pecon=(b.connectEnd-b.domainLookupEnd).toFixed(),a.perqs=(b.requestStart-b.connectEnd).toFixed())};
HFa=function(a){return new Promise(function(b){setTimeout(b,a)})};
pN=function(a){g.I.call(this);var b=this;this.U=a;this.j=new Map;this.C=[];this.B=this.U.K("html5_onesie_prefer_trusted_host");this.V=g.eA(this.U.experiments,"html5_onesie_prewarm_interval_ms");this.N=new g.K(this.J,this.V,this);this.I=-1;g.J(this,this.N);IFa(this,g.$u("yt-player-bandaid-host"));this.W=this.load();this.V&&this.W.then(function(){b.J()})};
IFa=function(a,b){var c=null==b?void 0:b.primary;a.u(0,c);c=c?JFa(c):void 0;a.u(2,c);a.u(1,null==b?void 0:b.secondary)};
qN=function(a,b){return new g.ax("https://"+b+a.U.di.baseUrl)};
KFa=function(a,b){a="https://"+ex(b.location)+"/initplayback?c="+mB(a.U)+"&owc=1";b.start();oN(a,"pw",function(c){b.end();c.ht=b.qO;b.jX=c})};
rN=function(a,b,c,d){oN("https://"+b+"/videoplayback?probe=1",c,function(e){d.K("html5_onesie_host_racing")&&!d.K("html5_onesie_probe_ec_hosts")&&(d.bC||d.iO());a.C.push(e)},function(e){a.C.push(e.details)})};
JFa=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
tN=function(a,b){var c,d,e,f,h,l;return g.B(function(m){if(1==m.j){c=qN(a,"redirector.googlevideo.com");c.set("alr","yes");c.set("id",""+Math.round(1E5*Math.random()));if(1===b||2===b)c.set("cmo=sensitive_content","yes"),c.set("sc","yes");2===b&&c.set("cmo=td","c.youtube.com");d={format:"RAW",timeout:5E3};return g.A(m,rq(cx(c),d),2)}e=m.u;if(200!==e.xhr.status||!e.xhr.responseText)return m.return(Promise.reject(new g.Ar("b204258371_no_host",cx(c),e.xhr.status)));f=new g.ax(e.xhr.responseText);h=ex(f);
l=f.get("ms");a.U.K("html5_onesie_keep_redirector_params")?f.set("id",null):(f=qN(a,h),f.set("ms",l));return h&&LFa(h)?2!==b||sN(h)?m.return(f):m.return(Promise.reject(new g.Ar("b204258371_untrusted",h,l))):m.return(Promise.reject(new g.Ar("b204258371_invalid",h,l)))})};
MFa=function(a){var b=a.C;a.C=[];return b};
LFa=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
sN=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
uN=function(a,b){this.location=a;this.qO=b;this.endTimestamp=this.startTimestamp=-1};
vN=function(a){return a.endTimestamp<=a.startTimestamp?Infinity:a.endTimestamp-a.startTimestamp};
NFa=function(a){var b,c;null==(b=window.h5vcc)||null==(c=b.settings)||c.set("QUIC",+a)};
OFa=function(){var a=window.H5vccPlatformService,b="";if(a&&a.has("dev.cobalt.coat.clientloginfo")&&(a=a.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=a.send(new ArrayBuffer(0));
c&&(b=String.fromCharCode.apply(String,g.v(new Uint8Array(c))));a.close()}return b};
PFa=function(){for(var a=wN.length;4>a;a++){var b=g.zg("VIDEO");b.load();wN.push(new g.pJ(b))}};
QFa=function(){this.u=200;this.j=12};
RFa=function(a){var b=new QFa;b.u=g.eA(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.j=g.eA(a.experiments,"html5_gapless_max_played_ranges");return b};
g.xN=function(a,b,c,d){d=void 0===d?!1:d;uF.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
SFa=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};c=f.C;if(b.Ui()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};if(a.j&&((b=b.Hd())&&b.isView()&&(b=b.mediaElement),b&&b.Cr().length>a.j&&g.FD(e)))return{msg:"played-ranges"};if(!e.C)return null;if(!e.C.j||!c.j)return{msg:"non-dash"};if(e.C.videoInfos[0].containerType!==c.videoInfos[0].containerType)return{msg:"container"};if(g.FD(f)&&
g.FD(e))return{msg:"content-protection"};a=c.j[0];e=e.C.j[0];f=a.audio;b=e.audio;return f.sampleRate===b.sampleRate||g.oz?(f.numChannels||2)!==(b.numChannels||2)?{msg:"channel-count"}:null:{msg:"sample-rate",ci:a.Vb(),cr:f.sampleRate,ni:e.Vb(),nr:b.sampleRate}};
yN=function(a,b,c,d){g.I.call(this);var e=this;this.policy=a;this.j=b;this.u=c;this.C=this.B=null;this.D=-1;this.I=!1;this.Lm=new tF;this.ll=d-1E3*b.ud();this.Lm.then(void 0,function(){});
this.timeout=new g.K(function(){e.Ef("timeout")},1E4);
g.J(this,this.timeout);this.J=isFinite(d);this.status={status:0,error:null}};
XFa=function(a){var b,c,d,e,f,h,l,m,n;return g.B(function(p){if(1==p.j){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.zN.mq("gtfta");return g.A(p,a.Lm,2)}g.zN.ip(b);c=a.j.Hd();if(c.Gg())return a.Ef("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.C||!Ez(a.C))return a.Ef("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.u.Br()!==a.C)return a.Ef("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error||
"")));d=TFa(a);e=d.tP;f=d.kN;h=d.sP;a.j.Kh(!1,!0);l=UFa(c,e,h,!a.u.getVideoData().isAd());a.u.setMediaElement(l);a.J&&(a.u.seekTo(a.u.getCurrentTime()+.001,{Hr:!0,TJ:3,Ee:"gapless_pseudo"}),l.play()||vq());m=c.Nb();m.cpn=a.j.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+h;a.u.ra("gapless",m);a.j.ra("gaplessTo",{cpn:a.u.getVideoData().clientPlaybackNonce});n=a.j.getPlayerType()===a.u.getPlayerType();VFa(a.j,f,!1,n,a.u.getVideoData().clientPlaybackNonce);VFa(a.u,a.u.getCurrentTime(),!0,n,a.j.getVideoData().clientPlaybackNonce);
g.Qg(function(){!a.u.getVideoData().kb&&g.FF(a.u.getPlayerState())&&WFa(a.u)});
AN(a,6);a.dispose();return p.return(Promise.resolve())})};
$Fa=function(a){if(a.u.getVideoData().C){BN(a.u,a.C);AN(a,3);YFa(a);var b=ZFa(a),c=b.mR;b=b.C0;c.subscribe("updateend",a.Ot,a);b.subscribe("updateend",a.Ot,a);a.Ot(c);a.Ot(b)}};
YFa=function(a){a.j.unsubscribe("internalvideodatachange",a.Sq,a);a.u.unsubscribe("internalvideodatachange",a.Sq,a);a.j.unsubscribe("mediasourceattached",a.Sq,a);a.u.unsubscribe("statechange",a.Wc,a)};
UFa=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.xN(a,b,c,d)};
AN=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Lm.resolve(void 0))};
TFa=function(a){var b=a.j.Hd();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:CN(a.j,!0);c=Math.min(a.ll/1E3,c)+b;var d=a.J?100:0;a=c-a.u.Ui()+d;return{HV:b,tP:a,kN:c,sP:Infinity}};
ZFa=function(a){return{mR:a.B.j.Pd,C0:a.B.u.Pd}};
DN=function(a){g.I.call(this);var b=this;this.app=a;this.D=this.u=this.j=null;this.J=!1;this.C=null;this.N=RFa(this.app.S());this.B=null;this.I=function(){g.Qg(function(){aGa(b)})}};
bGa=function(a,b,c,d){d=void 0===d?0:d;a.Zu()||EN(a);a.C=new tF;a.j=b;var e=c,f=a.app.Ic(),h=f.getVideoData().isLivePlayback?Infinity:1E3*CN(f,!0);e>h&&(e=h-a.N.u,a.J=!0);f.getCurrentTime()>=e/1E3?a.I():(a.u=f,f=e,e=a.u,a.app.Oa.addEventListener(g.Cv("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.Av(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,
CN(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),h=Math.min(d,CN(b)+l));f=Fua(e,h)||d;f!==d&&a.j.ra("qvaln",{st:d,at:f,rm:l,ct:h})}b=f;d=a.j;d.getVideoData().Je=!0;d.getVideoData().Ia=!0;g.FN(d,!0);e={};a.u&&(e=g.GN(a.u.logging.u),f=a.u.getVideoData().clientPlaybackNonce,e={crt:(1E3*e).toFixed(),cpn:f});d.ra("queued",e);0!==b&&d.seekTo(b+.01,{Hr:!0,TJ:3,Ee:"videoqueuer_queued"});a.B=new yN(a.N,a.app.Ic(),a.j,c);c=a.B;Infinity!==c.status.status&&(AN(c,1),c.j.subscribe("internalvideodatachange",c.Sq,
c),c.u.subscribe("internalvideodatachange",c.Sq,c),c.j.subscribe("mediasourceattached",c.Sq,c),c.u.subscribe("statechange",c.Wc,c),c.j.subscribe("newelementrequired",c.TP,c),c.Sq());return a.C};
aGa=function(a){var b,c,d;g.B(function(e){switch(e.j){case 1:if(a.isDisposed()||!a.C||!a.j)return e.return();a.J&&HN(a.app.Ic(),!0,!1);b=null;if(!a.B){e.Ra(2);break}g.wa(e,3);return g.A(e,XFa(a.B),5);case 5:g.xa(e,2);break;case 3:b=c=g.ya(e);case 2:if(!a.j)return e.return();g.zN.XI("vqsp",function(){IN(a.app,a.j)});
g.zN.XI("vqpv",function(){a.app.playVideo()});
b&&cGa(a.j,b.message);d=a.C;EN(a);return e.return(d.resolve(void 0))}})};
EN=function(a){if(a.u){var b=a.u;a.app.Oa.removeEventListener(g.Cv("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.Ef("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.KI(a.app,1)&&a.j!==a.app.Ic()&&a.j.dispose();a.j=null;a.J=!1};
dGa=function(){var a=Bpa();return!(!a||"visible"===a)};
fGa=function(a){var b=eGa();b&&document.addEventListener(b,a,!1)};
gGa=function(a){var b=eGa();b&&document.removeEventListener(b,a,!1)};
eGa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[dt+"VisibilityState"])return"";a=dt+"visibilitychange"}return a};
JN=function(){g.iu.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.j=this.B=this.inline=!1;this.C=function(){a.uf()};
fGa(this.C);this.D=this.getVisibilityState(this.eg(),this.isFullscreen(),this.sf(),this.isInline(),this.Xu(),this.Uu())};
hGa=function(a){this.end=this.start=a};
g.NN=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.U=b;this.qa=c;this.oa=new Map;this.Ia=new Map;this.ma=new Map;this.C=new Map;this.B=[];this.D=[];this.u=new Map;this.qc=new Map;this.J=new Map;this.Zb=NaN;this.Ib=this.Ta=null;this.Kb=new g.K(function(){KN(d,d.Zb)});
this.events=new g.kz(this);this.isLiveNow=!0;this.Kd=g.eA(this.U.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.Y=new g.K(function(){d.W=!0;var e=d.qa,f=d.Kd;e.ra("sdai",{aftimeout:f});e.xd(new fC("ad.fetchtimeout",{timeout:f}));LN(d);d.jy(!1)},this.Kd);
this.W=!1;this.va=new Map;this.qb=[];this.V=null;this.Ad=new Set;this.Ga=[];this.Hc=[];this.md=[];this.Yc=[];this.j=void 0;this.Sa=0;this.Pa=!0;this.I=!1;this.bb=[];this.Zc=new Set;this.qd=new Set;this.kb=new Set;this.Aj=0;this.N=null;this.eb=new Set;this.Nc=0;this.bp=this.Jc=!1;this.qa.getPlayerType();iGa(this.qa,this);this.Da=dC(this.U);g.J(this,this.Kb);g.J(this,this.events);g.J(this,this.Y);MN(this)||(this.events.P(this.api,g.Cv("serverstitchedcuerange"),this.onCueRangeEnter),this.events.P(this.api,
g.Dv("serverstitchedcuerange"),this.onCueRangeExit))};
lGa=function(a,b,c,d,e,f,h){var l=jGa(a,e,e+d);a.U.K("html5_ssdai_log_ad_transition_info")&&a.qa.ra("sdai",{attl:1,len:(d/1E3).toFixed(3),enter:(e/1E3).toFixed(3),abid:h});a.W&&a.qa.ra("sdai",{adaftto:1});var m=a.U.K("web_player_ssdai_reject_invalid_ads_killswitch"),n=a.qa;f=void 0===f?e+d:f;e===f&&!d&&a.U.K("html5_allow_zero_duration_ads_on_timeline")&&a.qa.ra("sdai",{attl0d:1});if(e>f&&(ON(a,{reason:"enterTime_greater_than_return",wc:e,Sc:f}),m))return"";var p=1E3*n.getMinSeekableTime();if(e<p&&
(ON(a,{reason:"enterTime_less_than_minSeekableTime",wc:e,Cka:p}),m))return"";n=1E3*n.getDuration();if(f>n&&(ON(a,{reason:"parent_return_greater_than_content_duration",Sc:f,Aka:n}),m))return"";n=null;if(m)for(m=g.r(a.D),p=m.next();!p.done;p=m.next()){p=p.value;if(e>=p.wc&&e<p.Sc||f<=p.Sc&&f>p.wc||f===p.wc)return PN(a,b.video_id||"",e,f,p),"";e===p.Sc&&(n=p)}else m=g.kc(a.D,{Sc:e},function(t,u){return t.Sc-u.Sc}),0<=m&&(n=a.D[m],n.Sc>e&&PN(a,b.video_id||"",e,f,n));
if(l&&n)for(m=g.r(a.Ga.entries()),p=m.next();!p.done;p=m.next()){var q=g.r(p.value);p=q.next().value;q=q.next().value;if(q.identifier===l.identifier){a.Ga.splice(p,1);break}}else if(l&&a.U.K("web_player_ss_timeout_skip_ads"))return a.qa.ra("sdai",{rejectAttl:1}),h&&!pl(a.Yc,function(t){return t===h})&&(a.qa.ra("sdai",{rejectAdBreakAttl:1}),a.Yc.push(h)),a.U.K("web_player_stop_timer_for_timedout_ab_killswitch")||QN(a),"";
l="ss_childplayback_"+kGa++;b.cpn||(b.cpn=g.Hu(16));m=b.cpn;b=new g.mD(a.U,b);b.Ac=l;c={Ac:l,playerType:c,durationMs:d,wc:e,Sc:f,cpn:m,videoData:b,errorCount:0};g.pc(a.D,c,function(t,u){return t.wc-u.wc});
a.u.set(m,c);a.qc.set(l,c);a.qa.ra("sdai",{attlDone:f-e,acpn:m});h?c.yk=h:n?c.yk=n.yk:c.yk=c.cpn;if(e=c.yk)(d=a.J.get(e))?(d.push(c),g.mc(d,function(t,u){return t.wc-u.wc})):a.J.set(e,[c]);
a.Y.isActive()&&(a.W=!1,a.Y.stop(),LN(a),a.jy(!0));return l};
RN=function(a,b,c){return a.U.experiments.fb("html5_ssdai_log_ad_transition_info")&&c?{ssvc:b,cpn:c.cpn,vid:c.videoData.videoId}:{ssvc:b}};
mGa=function(a,b,c){return new g.Av(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
SN=function(a){return{cpn:a.qa.getVideoData().clientPlaybackNonce,durationMs:0,wc:0,playerType:1,Sc:0,videoData:a.qa.getVideoData(),errorCount:0}};
UN=function(a,b,c){var d=a.I,e=SN(a),f=b.Wf-c.Wf;.5<Math.abs(f)&&a.qa.ra("sdai",{ttdtb:1,delta:f,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn});if(b.isAd&&c.isAd){if(b.adCpn&&c.adCpn){var h=a.u.get(b.adCpn);var l=a.u.get(c.adCpn)}l&&h&&(a.api.X("serverstitchedvideochange",h.Ac,h.Oo),a.qa.ra("sdai",RN(a,"a2a",h)),a.Aj++,TN(a.qa,l,h,c.Wf,b.Wf,d))}else if(!b.isAd&&c.isAd){a.api.X("serverstitchedvideochange");a.qa.ra("sdai",RN(a,"a2c"));a.Aj=0;if(f=c.Md)a.Sa=f.end;var m;c.adCpn&&(m=a.u.get(c.adCpn));m&&TN(a.qa,
m,e,c.Wf,b.Wf,d)}else if(b.isAd&&!c.isAd){var n;b.adCpn&&(n=a.u.get(b.adCpn));n&&(a.Sa=0,a.api.X("serverstitchedvideochange",n.Ac,n.Oo),a.qa.ra("sdai",RN(a,"c2a",n)),a.Aj=1,TN(a.qa,e,n,c.Wf,b.Wf,d))}};
VN=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.kc(a.D,{wc:c},function(e,f){return e.wc-f.wc});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.D[d],a.Sc>=c)?{Wl:a,hs:b}:{Wl:void 0,hs:b}};
WN=function(a,b){var c="";MN(a)?(c=b/1E3-a.En(),c=a.qa.Nu(c)):(b=nGa(a,b))&&(c=b.getId());return c?a.u.get(c):void 0};
nGa=function(a,b){a=g.r(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};
KN=function(a,b){var c=a.Ib||a.api.Ic().getPlayerState();XN(a,!0);var d=b;a.U.K("web_player_ssdai_seek_without_offset_killswitch")&&(d=VN(a,b).hs);a.qa.seekTo(d);a=a.api.Ic();b=a.getPlayerState();g.FF(c)&&!g.FF(b)?a.playVideo():g.V(c,4)&&!g.V(b,4)&&a.pauseVideo()};
XN=function(a,b){a.Zb=NaN;a.Kb.stop();a.Ta&&b&&YN(a.Ta);a.Ib=null;a.Ta=null};
ZN=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.r(a.D),l=h.next();!l.done;l=h.next())l=l.value,(l.wc<d||l.Sc>e)&&f.push(l);a.D=f;d=b;e=c;f=g.r(a.C.values());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.qa.removeCueRange(h),a.C.delete(h.getId()),a.qa.ra("sdai",{rmAdCR:1}));d=VN(a,b/1E3);b=d.Wl;d=d.hs;b&&(d=1E3*d-b.wc,e=b.wc+d,b.durationMs=d,b.Sc=e,oGa(a,b));if(b=VN(a,c/1E3).Wl){var m;d="playback_timelinePlaybackId_"+b.Ac+"_video_id_"+(null==
(m=b.videoData)?void 0:m.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.wc+"_parentReturnTimeMs_"+b.Sc;a.Ey("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
pGa=function(a){a.U.K("web_player_ss_timeline_manager_reset_all_killswitch")||(a.oa.clear(),a.Ia.clear(),a.ma.clear(),a.C.clear(),a.B=[],a.D=[],a.u.clear(),a.qc.clear(),a.J.clear(),a.va.clear(),a.qb=[],a.V=null,a.Ad.clear(),a.Ga=[],a.Hc=[],a.md=[],a.Yc=[],a.bb=[],a.Zc.clear(),a.qd.clear(),a.kb.clear(),a.eb.clear(),a.isLiveNow=!0,a.W=!1,a.j=void 0,a.Sa=0,a.Pa=!0,a.I=!1,a.Aj=0,a.N=null,a.Nc=0,a.Jc=!1,a.bp=!1)};
oGa=function(a,b){var c=a.C.get(b.cpn);if(c){a=g.r(a.B);for(var d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.wc+b.durationMs:d.end===c.start&&(d.end=b.wc);c.start=b.wc;c.end=b.wc+b.durationMs}};
aO=function(a,b,c,d){var e=a.va.get(c);if(!e){b+=a.En();b=VN(a,b,1);var f;a.U.K("web_player_keep_decorating_last_chunk_killswitch")||b.Wl||2!==(null==(f=$N(a,c-1,null!=d?d:2))?void 0:f.gx)?e=b.Wl:e=a.va.get(c-1)}return e};
qGa=function(a){for(var b=g.r(a.C.values()),c=b.next();!c.done;c=b.next())a.qa.removeCueRange(c.value);b=g.r(a.B);for(c=b.next();!c.done;c=b.next())a.qa.removeCueRange(c.value);a.C.clear();a.B=[];a.oa.clear();a.Ia.clear();a.ma.clear();a.Pa=!0};
$N=function(a,b,c){if(1===c&&a.oa.has(b))return a.oa.get(b);if(2===c&&a.Ia.has(b))return a.Ia.get(b);if(3===c&&a.ma.has(b))return a.ma.get(b)};
bO=function(a,b,c,d){if(d)for(d=0;d<a.B.length;){var e=a.B[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;rGa(a,c,f)}else if(e.start>=b&&e.start<c&&e.end>c)e.start=c;else if(e.end>b&&e.end<=c&&e.start<b)e.end=b;else if(e.start>=b&&e.end<=c){a.qa.removeCueRange(e);if(a.bb.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else rGa(a,b,c)};
rGa=function(a,b,c){b=mGa(b,c);c=!0;g.pc(a.B,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.B.length;){if(0<d){var e=a.B[d],f=a.B[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.qa.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.qa.addCueRange(b),b=a.qa.Hx("serverstitchedcuerange",36E5),b=g.r(b),c=b.next();!c.done;c=b.next())a.C.delete(c.value.getId())};
cO=function(a,b,c){if(void 0===c||!c){c=g.r(a.qb);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.qb.push(new hGa(b))}};
g.sGa=function(a,b){a=g.r(a.qb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
PN=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",xka:b,wc:c,Sc:d,Zja:e.Ac,aka:(null==(f=e.videoData)?void 0:f.videoId)||"",Wja:e.durationMs,Xja:e.wc,Yja:e.Sc};ON(a,b)};
ON=function(a,b){a=a.qa;a.ra("timelineerror",b);a.xd(new fC("dai.timelineerror",b))};
tGa=function(a,b){var c=[];a=a.J.get(b);if(!a)return[];a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
uGa=function(a,b,c){var d=0;a=a.J.get(c);if(!a)return-1;a=g.r(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
vGa=function(a,b){var c=[];a=a.J.get(b);if(!a)return[];a=g.r(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};
wGa=function(a,b){var c=0;a=a.J.get(b);if(!a)return 0;a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Sc!==b.wc&&c++;return c};
xGa=function(a,b,c){var d=!1;if(c&&(c=a.J.get(c))){c=g.r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Sc!==e.wc&&(e=e.cpn,b===e&&(d=!0),d&&!a.qd.has(e)&&(a.qa.ra("sdai",{decoratedAd:e}),a.qd.add(e)))}};
LN=function(a){a.Da&&a.qa.ra("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Nc)+"_isTimeout_"+a.W})};
jGa=function(a,b,c){if(a.Ga.length)for(var d={},e=g.r(a.Ga),f=e.next();!f.done;d={uq:d.uq},f=e.next()){d.uq=f.value;f=1E3*d.uq.startSecs;var h=1E3*d.uq.durationSecs+f;if(b>f&&b<h||c>f&&c<h)return pl(a.md,function(l){return function(m){return m.identifier===l.uq.identifier}}(d))||(a.qa.ra("sdai",{adskip:b}),a.md.push(d.uq)),d.uq}};
QN=function(a){a.W=!1;a.Y.isActive()&&LN(a);a.Y.stop();a.jy(!1)};
MN=function(a){return a.U.experiments.fb("html5_ssdai_use_new_ad_report")};
dO=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.U=b;this.j=c;this.I=new Map;this.u=[];this.B=this.J=null;this.V=NaN;this.D=this.C=null;this.N=new g.K(function(){yGa(d,d.V)});
this.W=[];this.Y=new g.K(function(){var e=d.W.pop();if(e){var f=e.Ac,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.W.length&&g.Fn(d.Y,4500))}});
this.events=new g.kz(this);c.getPlayerType();g.J(this,this.N);g.J(this,this.Y);g.J(this,this.events);this.events.P(this.api,g.Cv("childplayback"),this.onCueRangeEnter);this.events.P(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.P(this.api,"presentingplayerstatechange",this.hh)};
CGa=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=void 0===f?e+d:f;if(e>f)return eO(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.getMinSeekableTime();if(e<n)return eO(a,"enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,h,l),"";n=1E3*m.getDuration();if(f>n)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
m.ud(),eO(a,m,h,l),"";n=null;for(var p=g.r(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.wc&&e<q.Sc)return eO(a,"overlappingEnter",h,l),"";if(f<=q.Sc&&f>q.wc)return eO(a,"overlappingReturn",h,l),"";if(f===q.wc)return eO(a,"outOfOrder",h,l),"";e===q.Sc&&(n=q)}h="cs_childplayback_"+zGa++;l={Md:fO(d,!0),ll:Infinity,target:null};var t={Ac:h,playerVars:b,playerType:c,durationMs:d,wc:e,Sc:f,hp:l};a.u=a.u.concat(t).sort(function(y,z){return y.wc-z.wc});
n?AGa(a,n,{Md:fO(n.durationMs,!0),ll:a.U.K("timeline_manager_transition_killswitch")?Infinity:n.hp.ll,target:t}):(b={Md:fO(e,!1),ll:e,target:t},a.I.set(b.Md,b),m.addCueRange(b.Md));b=a.U.K("html5_gapless_preloading");if(a.j===a.api.Ic()&&(m=1E3*m.getCurrentTime(),m>=t.wc&&m<t.Sc)){var u=a.api.Ic().getPlayerState(),x=m-t.wc;Lg(function(){BGa(a,t,x/1E3,u)});
b=!1}b&&(a.W.unshift(t),g.Fn(a.Y,0));return h};
fO=function(a,b){return new g.Av(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
DGa=function(a,b,c,d){a.B=d;a.api.kB(a.j,c,b)};
EGa=function(a,b,c,d){a.B=d;d=b.Ac;var e=b.playerVars,f=b.playerType;a.J=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
AGa=function(a,b,c){var d=b.hp;b.hp=c;gO(a,b)&&(c=a.api.Ic(),d.Md===a.B&&hO(a),c.removeCueRange(d.Md),c.addCueRange(b.hp.Md))};
hO=function(a){a.J=null;a.B=null;a.api.Zu()||a.api.clearQueue()};
FGa=function(a,b){gO(a,b)||eO(a,"childPlaybackIsNotPresenting");return b.Sc===b.wc+b.durationMs?(a=a.api.Ic(),b.wc+1E3*a.getCurrentTime()):b.Sc};
iO=function(a,b){var c=0;a=g.r(a.u);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.wc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{Wl:d,hs:b-e};c=f-d.Sc/1E3}return{Wl:null,hs:b-c}};
yGa=function(a,b){var c=a.D||a.api.Ic().getPlayerState();jO(a,!0);b=a.U.K("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.j.Hk();var d=iO(a,b);b=d.Wl;d=d.hs;var e=b&&!gO(a,b)||!b&&a.j!==a.api.Ic(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||hO(a);b?BGa(a,b,d,c):kO(a,d,c)};
kO=function(a,b,c){var d=a.j,e=a.api.Ic();d!==e&&a.api.ao();d.seekTo(b,{Ee:"application_timelinemanager"});GGa(a,c)};
BGa=function(a,b,c,d){var e=gO(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.mD(a.U,b.playerVars);f.Ac=b.Ac;a.api.Op(f,b.playerType)}f=a.api.Ic();e||f.addCueRange(b.hp.Md);f.seekTo(c,{Ee:"application_timelinemanager"});GGa(a,d)};
GGa=function(a,b){a=a.api.Ic();var c=a.getPlayerState();g.FF(b)&&!g.FF(c)?a.playVideo():g.V(b,4)&&!g.V(c,4)&&a.pauseVideo()};
jO=function(a,b){a.V=NaN;a.N.stop();a.C&&b&&YN(a.C);a.D=null;a.C=null};
gO=function(a,b){a=a.api.Ic();return!!a&&a.getVideoData().Ac===b.Ac};
HGa=function(a){var b=a.u.find(function(e){return gO(a,e)});
if(b){var c=a.api.Ic();hO(a);var d=new g.zF(8);b=FGa(a,b)/1E3;kO(a,b,d);c.ra("forceParentTransition",{childPlayback:1});a.j.ra("forceParentTransition",{parentPlayback:1})}};
lO=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.r(a.I),h=f.next();!h.done;h=f.next()){var l=g.r(h.value);h=l.next().value;l=l.next().value;l.ll>=d&&l.target&&l.target.Sc<=e&&(a.j.removeCueRange(h),a.I.delete(h))}d=b;e=c;f=[];h=g.r(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.wc>=d&&l.Sc<=e){var m=a;m.J===l&&hO(m);gO(m,l)&&m.api.ao()}else f.push(l);a.u=f;d=iO(a,b/1E3);b=d.Wl;d=d.hs;b&&(d*=1E3,IGa(a,b,d,b.Sc===b.wc+b.durationMs?b.wc+d:b.Sc));(b=iO(a,c/1E3).Wl)&&
eO(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Ac+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.wc+" parentReturnTimeMs="+b.Sc+"}.Child playbacks can only have duration updated not their start."))};
IGa=function(a,b,c,d){b.durationMs=c;b.Sc=d;d={Md:fO(c,!0),ll:c,target:null};AGa(a,b,d);gO(a,b)&&1E3*a.api.Ic().getCurrentTime()>c&&(b=FGa(a,b)/1E3,c=a.api.Ic().getPlayerState(),kO(a,b,c))};
eO=function(a,b,c,d){a.j.ra("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
KGa=function(a){a&&"web"!==a&&JGa.includes(a)};
oO=function(a,b){g.I.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.j=new g.K(function(){mO(c);nO(c)});
g.J(this,this.j)};
LGa=function(a){var b;if(b=void 0===b?!1:b)for(var c=g.r(a.data),d=c.next();!d.done;d=c.next())pO(a,d.value,b);a.data=[];nO(a)};
mO=function(a){var b=(0,g.R)();a.data.forEach(function(c){c.expire<b&&pO(a,c,!0)});
a.data=g.cm(a.data,function(c){return!(c.expire<b)})};
pO=function(a,b,c){c&&a.u&&a.u(b.value)};
nO=function(a){a.j.stop();var b=Infinity;for(var c=g.r(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&(b=Math.max(b-Date.now(),100),a.j.start(b))};
g.qO=function(a){this.tag=a};
rO=function(){g.I.call(this);this.j=new oO(5,null);g.J(this,this.j)};
MGa=function(a,b){return b?!!a.j.get(b):!1};
sO=function(){g.zo.call(this);this.D=new Map};
tO=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.u=this.j=a-1};
NGa=function(a){return a.data[a.j]||0};
uO=function(a){g.I.call(this);this.B=a;this.j=new Map;this.u=new g.K(this.sample,250,this);g.J(this,this.u);this.start()};
vO=function(a,b){if(null==(a=a.j.get(b)))a=void 0;else{a=a.buffer;for(b=[];a.u!==a.j;)a.u=(a.u+1)%a.data.length,b.push(a.data[a.u]);a=b}return a||[]};
wO=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:NGa(c.buffer))||0};
xO=function(a){this.u=a;this.j=NaN;this.buffer=new tO(100)};
OGa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.Vb()+")":a.Vb()};
yO=function(a){g.I.call(this);var b=this;this.j=null;for(var c=[],d=0;100>=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)};
AO=function(a){g.W.call(this,{F:"div",Ba:["html5-video-player"],T:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},R:[{F:"div",L:g.zO.VIDEO_CONTAINER,T:{"data-layer":"0"}}]});var b=this;this.app=a;this.tx=this.ya(g.zO.VIDEO_CONTAINER);this.Fv=new g.Yk(0,0,0,0);this.Hb=null;this.YC=new g.Yk(0,0,0,0);this.QG=this.UH=this.TH=NaN;this.SB=this.VC=this.OI=this.UM=!1;this.RF=NaN;this.wH=!1;this.Fy=null;this.nI=function(){b.element.focus()};
this.JC=function(){b.app.Oa.X("playerUnderlayVisibilityChange","visible");b.Hb.classList.remove(g.zO.VIDEO_CONTAINER_TRANSITIONING);b.Hb.removeEventListener(PGa,b.JC);b.Hb.removeEventListener("transitioncancel",b.JC)};
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.S();e.transparentBackground&&this.Po("ytp-transparent");"0"===e.controlsType&&this.Po("ytp-hide-controls");g.N(this.element,"ytp-exp-bottom-control-flexbox");e.K("html5_player_bottom_linear_gradient")&&g.N(this.element,"ytp-linear-gradient-bottom-experiment");Yva(e)&&g.N(this.element,"ytp-larger-tap-buttons");e.K("enable_new_paid_product_placement")&&!g.VB(e)&&g.N(this.element,"ytp-exp-ppp-update");XB(e)&&g.N(this.element,"ytp-exp-hybrid-controls");jqa(this.element,"version",QGa(a));this.oR=
!1;this.Kx=new g.cg(NaN,NaN);RGa(this);this.P(a.Oa,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
RGa=function(a){function b(){a.Hb&&BO(a);CO(a)!==a.wH&&a.resize()}
function c(h,l){a.Ep(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.YC=new g.Yk(0,0,0,0);a.Fv=new g.Yk(0,0,0,0)}
var f=a.app.Oa;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.Be(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
SGa=function(a){var b=g.KI(a.app);if(b=b?b.getVideoData():null){if(g.MD(b)||g.ND(b)||g.PD(b))return 16/9;if(wD(b)&&b.C.j)return a=b.C.videoInfos[0].video,DO(a.width,a.height)}return(a=a.Hb)?DO(a.videoWidth,a.videoHeight):16/9};
TGa=function(a,b,c,d){var e=c,f=DO(b.width,b.height);a.UM?e=c<f?Infinity:0:isNaN(a.QG)?isNaN(a.UH)||(e=a.UH):e=a.QG;isFinite(e)||(e=Math.max(c,f));a=e>f?{width:b.width,height:b.width/e,aspectRatio:e}:e<f?{width:b.height*e,height:b.height,aspectRatio:e}:{width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?a.width=a.height*c:c<e&&(a.height=a.width/c),a.aspectRatio=c);return a};
DO=function(a,b){return 1>Math.abs(EO*b-a)||1>Math.abs(EO/a-b)?EO:a/b};
CO=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.KI(a.app);if(!b||b.qm())return!1;var c=a.app.Oa.xb();a=!g.V(c,2)||!a.app.S().K("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ia;b=g.V(c,1024);return c&&a&&!b&&!c.isCued()};
BO=function(a){var b="3"===a.app.S().controlsType&&!a.SB&&CO(a)&&!a.app.Ky||!1;a.Hb.controls=b;a.Hb.tabIndex=b?0:-1;b?a.Hb.removeEventListener("focus",a.nI):a.app.S().K("disable_focus_redirect")||a.Hb.addEventListener("focus",a.nI)};
UGa=function(a){var b=a.xi(),c=1,d=!1,e=TGa(a,b,a.getVideoAspectRatio()),f=a.app.S(),h=f.K("enable_desktop_player_underlay"),l=Hq(),m=g.eA(f.experiments,"player_underlay_min_player_width");m=h&&a.OI&&a.getPlayerSize().width>m;if(CO(a)){var n=SGa(a);var p=isNaN(n)||g.hs||FO&&g.Ir||m;Iq&&!g.yc(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.Yk(p,0,b.width,b.height)):p=new g.Yk(0,
0,b.width,b.height):(c=e.aspectRatio/n,p=new g.Yk((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.Ir&&(n=p.width-b.height*n,0<n&&(p.width+=n,p.height+=n)));f.K("web_player_fit_cover_killswitch2")||g.O(a.element,"ytp-fit-cover-video",1>Math.max(p.width-e.width,p.height-e.height));if(l||a.oR)a.Hb.style.display="";a.wH=!0}else{p=-b.height;Iq?p*=window.devicePixelRatio:g.YB&&(p-=window.screen.height);p=new g.Yk(0,p,b.width,b.height);if(l||a.oR)a.Hb.style.display="none";a.wH=!1}Zk(a.YC,
p)||(a.YC=p,g.fB(f)?(a.Hb.style.setProperty("width",p.width+"px","important"),a.Hb.style.setProperty("height",p.height+"px","important")):g.kl(a.Hb,p.getSize()),d=new g.ag(p.left,p.top),g.gl(a.Hb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Yk((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Zk(a.Fv,b)||(a.Fv=b,d=!0);g.al(a.Hb,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.VC&&(m&&(a.Hb.addEventListener(PGa,a.JC),a.Hb.addEventListener("transitioncancel",a.JC),a.Hb.classList.add(g.zO.VIDEO_CONTAINER_TRANSITIONING)),
a.VC=m,a.app.Oa.X("playerUnderlayVisibilityChange",a.VC?"transitioning":"hidden"));return d};
VGa=function(){this.csn=g.Lu();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.j=new Set;this.u=new Set};
WGa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.j.delete(b);a.u.delete(b)};
XGa=function(a){if(a.csn!==g.Lu())if("UNDEFINED_CSN"===a.csn)a.csn=g.Lu();else{var b=g.Lu(),c=g.Ku();if(b&&c){a.csn=b;for(var d=g.r(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.Pu(void 0,b,c,[e])}if(b)for(a=g.r(a.j),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.Qu(b,c)}};
GO=function(a,b,c,d,e){g.W.call(this,{F:"div",L:"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"};
HO=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.zg("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<a.sampleCount;c++)d=g.zg("SPAN"),d.style.width=a.j+"px",d.style.left=a.j*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.ctx&&(c=1<(window.devicePixelRatio||1)?2:1,a.u.height=a.heightPx*
c,a.u.style.height=a.heightPx+"px",a.ctx.scale(1,c)));b=g.r(b);for(c=b.next();!c.done;c=b.next())a.setValue(a.index,c.value),a.index=(a.index+1)%a.sampleCount;b=a.index;a.ctx?a.ctx.clearRect(b*a.j,0,a.j,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
IO=function(a){var b=null;b={F:"button",Ba:["html5-video-info-panel-close","ytp-button"],T:{title:"close"},Z:"[X]"};g.W.call(this,{F:"div",L:"html5-video-info-panel",R:[b,{F:"div",L:"html5-video-info-panel-content",R:[{F:"div",R:[{F:"div",Z:"Video ID / sCPN"},{F:"span",Z:"{{video_id_and_cpn}}",L:"ytp-sfn-cpn"}]},{F:"div",R:[{F:"div",Z:"Viewport / Frames"},{F:"span",Z:"{{dims_and_frames}}"}]},{F:"div",R:[{F:"div",Z:"Current / Optimal Res"},{F:"span",Z:"{{resolution}}"}]},{F:"div",R:[{F:"div",Z:"Volume / Normalized"},
{F:"span",Z:"{{volume}}"}]},{F:"div",R:[{F:"div",Z:"Codecs"},{F:"span",Z:"{{codecs}}"}]},{F:"div",T:{style:"{{shader_info_style}}"},R:[{F:"div",Z:"Shader Info"},{F:"span",Z:"{{shader_info}}"}]},{F:"div",T:{style:"{{color_style}}"},R:[{F:"div",Z:"Color"},{F:"span",Z:"{{color}}"}]},{F:"div",T:{style:"{{drm_style}}"},R:[{F:"div",Z:"Protected"},{F:"span",Z:"{{drm}}"}]},{F:"div",T:{style:"{{bandwidth_style}}"},R:[{F:"div",Z:"Connection Speed"},{F:"span",R:[{F:"span",Z:"{{bandwidth_chart}}"},{F:"span",
Z:"{{bandwidth_kbps}}"}]}]},{F:"div",T:{style:"{{network_activity_style}}"},R:[{F:"div",Z:"Network Activity"},{F:"span",R:[{F:"span",Z:"{{network_activity_chart}}"},{F:"span",Z:"{{network_activity_bytes}}"}]}]},{F:"div",R:[{F:"div",Z:"Buffer Health"},{F:"span",R:[{F:"span",Z:"{{buffer_health_chart}}"},{F:"span",Z:"{{buffer_health_seconds}}"}]}]},{F:"div",T:{style:"{{live_latency_style}}"},R:[{F:"div",Z:"Live Latency"},{F:"span",R:[{F:"span",Z:"{{live_latency_chart}}"},{F:"span",Z:"{{live_latency_secs}}"}]}]},
{F:"div",T:{style:"{{live_mode_style}}"},R:[{F:"div",Z:"Live Mode"},{F:"span",Z:"{{live_mode}}"}]},{F:"div",T:{style:"{{playback_categories_style}}"},R:[{F:"div",Z:"Playback Categories"},{F:"span",Z:"{{playback_categories}}"}]},{F:"div",R:[{F:"div",Z:"Mystery Text"},{F:"span",Z:"{{debug_info}}"}]},{F:"div",R:[{F:"div",Z:"Date"},{F:"span",Z:"{{date}}"}]},{F:"div",T:{style:"{{cotn_and_local_media_style}}"},R:[{F:"div",Z:"COTN / Local Media"},{F:"span",Z:"{{cotn_and_local_media}}"}]},{F:"div",T:{style:"{{release_style}}"},
R:[{F:"div",Z:"Player Release"},{F:"span",Z:"{{release_name}}"}]}]}]});b?(b=this.ya("html5-video-info-panel-close"),this.P(b,"click",this.hide)):this.P(this.element,"click",this.hide);b=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];var c="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" "),d=b.map(function(e){return e/4});
this.D={};this.j=new GO(300,1,150,b,c);g.J(this,this.j);this.Ha("bandwidth_chart",this.j);this.B=new GO(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.J(this,this.B);this.Ha("live_latency_chart",this.B);this.u=new GO(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.J(this,this.u);this.Ha("buffer_health_chart",this.u);this.C=new GO(300,1,150,d,c);g.J(this,this.C);this.Ha("network_activity_chart",this.C);this.delay=
new g.K(this.Ea,500,this);g.J(this,this.delay);this.Oa=a};
JO=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
YGa=function(a,b){var c=Math.min(2.5,NA(a.schedule));a=KO(a);return b-c*a};
LO=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.Je&&(d=Math.abs(d));d/=a.playbackRate;var f=1/PA(a.schedule);c=Math.max(.9*(d-3),NA(a.schedule)+2048*f)/f*a.policy.Jq/(b+c);c=Math.min(c,d);a.policy.Ye&&e&&(c=Math.max(c,a.policy.Ye));return ZGa(a,c,b)};
ZGa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.Iq*c),Math.min(Math.min(a.policy.Pa,31*c),Math.ceil(b*c))))||65536};
KO=function(a){return PA(a.schedule,!a.policy.zl,a.policy.fn)};
MO=function(a){return KO(a)/a.playbackRate};
NO=function(a,b,c,d,e){this.Fa=a;this.j=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.u=0;this.D=!1;this.B=this.j.isManifestless&&!this.j.Mf;this.C=null};
$Ga=function(a,b){var c=a.j.index,d=a.u.Ka;Ny(c,d)||b&&b.Ka===d?(a.D=!Ny(c,d),a.N=!Ny(c,d)):(a.D=!0,a.N=!0)};
bHa=function(a,b,c,d){if(!b.j.Lf())return d=a.policy.Uw&&!!b.B.length&&b.B[0]instanceof OO,0===c||d||PO(b),c;a=QO(b,c);if(!isNaN(a))return a;b.Si();return d&&(d=wz(d.ag(),c),!isNaN(d))?(RO(b,d+aHa),c):RO(b,c)};
fHa=function(a,b,c,d){if(a.Hg()&&a.u){var e=cHa(a,b,c);if(-1!==e){a.videoTrack.D=!1;a.audioTrack.D=!1;a.B=!0;g.Qg(function(){a.Fa.ra("seekreason",{reason:"behindMinSq",tgt:e});dHa(a,e)});
return}}c?a.videoTrack.N=!1:a.audioTrack.N=!1;var f=a.policy.zt||!a.B;0<=QO(a.videoTrack,a.u)&&0<=QO(a.audioTrack,a.u)&&f?((a.videoTrack.D||a.audioTrack.D)&&a.Fa.ra("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.D=!1,a.audioTrack.D=!1):d&&g.Qg(function(){if(a.B||!a.policy.Ta)eHa(a);else{var h=b.startTime,l=b.duration,m=-1!==a.videoTrack.I&&-1!==a.audioTrack.I,n=!a.videoTrack.N&&!a.audioTrack.N;(c?a.videoTrack.D:a.audioTrack.D)&&m&&n&&(a.u>=h&&a.u<h+l+.1?((c?a.videoTrack:a.audioTrack).D=
!1,a.videoTrack.D||a.audioTrack.D||(a.Fa.ra("iterativeSeeking",{status:"done",count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.Fa.ra("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.u,actual:h,duration:l,isVideo:c}),a.seek(a.u)):(a.Fa.ra("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.u,actual:h}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Fa.qa.seekTo(h+.1,{Hr:!0,Ee:"chunkSelectorSynchronizeMedia",Tq:!0})))}})};
cHa=function(a,b,c){if(!a.Hg())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.getSegmentNumberForTime(a.u);return(Ny(c,a.j.Ve)||b.Ka===a.j.Ve)&&d<a.j.Ve?a.j.getMinSeekableTime():-1};
dHa=function(a,b){a.B&&-1!==a.videoTrack.I&&-1!==a.audioTrack.I&&(a.B=!1,a.Fa.qa.seekTo(b+.1,{Hr:!0,Ee:"chunkSelectorSynchronize",Tq:!0}))};
eHa=function(a){var b=-1!==a.videoTrack.I,c=-1!==a.audioTrack.I;if(!b||!c)if(b=!b&&a.videoTrack.jg(),c=!c&&a.audioTrack.jg(),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.I=c.jg().info.Ka,-1!==b.I){var d=Math.max(b.j.index.getStartTime(b.I),c.j.index.getStartTime(c.I));Pz(a.j)&&432E3<Math.abs(d-Pz(a.j))&&Jua(a.j);g.Qg(function(){return dHa(a,d)});
a.Fa.ra("initManifestlessSync",{st:d,a:a.audioTrack.I,v:a.videoTrack.I});a.C&&(a.C.resolve(d+.1),a.C=null)}};
gHa=function(a){this.j=a;this.I=this.V=this.B=this.C=this.J=this.W=this.N=0;this.ticks={}};
hHa=function(a){a.N||(a.N=(0,g.R)(),MI("mb_s",a.N,a.j))};
SO=function(a,b,c,d,e,f){g.iu.call(this);this.Fa=a;this.N=b;this.policy=c;this.I=d;this.va=e;this.Y=this.j=null;this.C=this.D=NaN;this.J=0;this.V=NaN;this.B=null;this.oa=new Map;this.W="";this.ma=0;this.u=f?1:0};
TO=function(a,b,c){b.startSecs+=isNaN(a.J)?0:a.J;a=a.N;a.W.push(b);a.X("cuepointsadded",c)};
iHa=function(a,b,c){return(0>c||c===a.C)&&!isNaN(a.D)?a.D:b};
kHa=function(a,b,c,d){jHa(a.I,d,c,b);jHa(a.va,d,c,b);Rz(a.N,d,!0);Rz(a.N,d,!1);a.ra("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
lHa=function(a,b){if(a.j){var c=a.j.hf.durationSecs-(b.startTime+a.J-a.j.hf.startSecs);0>=c||(c=new rv(a.j.hf.startSecs-(isNaN(a.J)?0:a.J),c,a.j.hf.context,a.j.hf.identifier,"stop",a.j.hf.j+1E3*b.duration),a.ra("cuepointdiscontinuity",{segNum:b.Ka}),TO(a,c,b.Ka))}};
UO=function(a,b,c){a.u!==b&&(a.ra("sdai",{setsst:b,old:a.u,r:c}),a.u=b)};
mHa=function(a,b,c,d){(void 0===d?0:d)?UO(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.u&&UO(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
VO=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
nHa=function(a,b,c,d,e,f){f=void 0===f?[]:f;this.Fa=a;this.oa=b;this.policy=c;this.C=d;this.I=e;this.bb=f;this.logger=new g.qO("dash/abr");this.j=lD;this.u=this.J=null;this.V=-1;this.Ga=!1;this.nextVideo=this.B=null;this.D=[];this.va={};this.videoIndex=0;this.Sa=this.W=this.N=!1;this.ma=0;this.Pa=new Set;this.Ta=!1;this.Y=new Map;this.Ia=0;this.eb=!1;this.Da=null};
sHa=function(a,b,c){WO(a,b);oHa(a,c);a.J=a.B;pHa(a);qHa(a);a.u=a.nextVideo;a.J=a.B;return rHa(a)};
tHa=function(a,b){if(a.j.equals(b))return null;if("m"===b.reason&&b.isLocked())return WO(a,b),a.videoIndex=a.D.length-1,XO(a),YO(a),a.W=a.W||a.u!==a.nextVideo,a.u=a.nextVideo,new VO(a.B,a.u,b.reason);"r"===b.reason&&(a.V=-1);WO(a,b);YO(a);if("r"===b.reason&&a.nextVideo===a.u)return new VO(a.B,a.nextVideo,b.reason);a.u&&a.nextVideo&&ZO(a,a.u.info)<ZO(a,a.nextVideo.info)&&(b=a.j.reason,a.N=a.N||"r"===b||"u"===b||"v"===b);return null};
$O=function(a,b,c){a.Ia+=1;if(void 0===c?0:c)a.eb=!0;c=6E4*Math.pow(2,a.Ia);a.Y.set(b.info.id,(0,g.R)()+c);a.V=-1;WO(a,a.j)};
aP=function(a){if(a.Y.size){for(var b=(0,g.R)(),c=g.r(a.Y.values()),d=c.next();!d.done;d=c.next())if(d.value>b)return!0;a.Y.clear()}return!1};
uHa=function(a,b){return new VO(a.J,a.u,b||a.j.reason)};
rHa=function(a){a.Ga?a.Ga=!1:a.V=(0,g.R)();a.N=!1;return new VO(a.J,a.u,a.j.reason)};
vHa=function(a,b){var c={};b=g.r(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&&gz(f)&&f.video.j>a.policy.V,l=e<=a.policy.V?gz(d):ez(d);if(!f||h||l)c[e]=d}return c};
WO=function(a,b){a.j=b;var c=a.I.videoInfos;if(!a.j.isLocked()){var d=(0,g.R)();c=g.cm(c,function(q){if(q.Ob>this.policy.Ob)return!1;var t=this.C.j[q.id],u=t.info.j;return this.policy.Bt&&this.Pa.has(u)||this.Y.get(q.id)>d||4<t.u.u||4<t.J?!1:!0},a);
a.eb&&aP(a)&&(c=g.cm(c,function(q){return 854>=q.video.width&&480>=q.video.height}))}c.length||(c=a.I.videoInfos);
var e=g.cm(c,b.C,b),f="m"===b.reason||"s"===b.reason;a.policy.yl&&FO&&g.Ir&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.u||q.u.powerEfficient)}));
if(0<e.length)if(Bz()){var h=vHa(a,e);e=e.filter(function(q){return!!q&&!!q.video&&q.j===h[q.video.j].j})}else{var l,m,n=null==(l=e[0])?void 0:null==(m=l.video)?void 0:m.j;
if(n){b=e.filter(function(q){return!!q&&!!q.video&&q.video.j===n});
var p=vHa(a,b)[n].j;e=e.filter(function(q){return!!q&&!!q.video&&q.j===p})}}e.length||(e=[c[0]]);
e.sort(function(q,t){return ZO(a,q)-ZO(a,t)});
c={};for(b=1;b<e.length;c={cA:c.cA,bA:c.bA},b++)c.bA=e[b-1],c.cA=e[b],c.bA.video.width>c.cA.video.width?(g.ac(e,b),b--):ZO(a,c.bA)*a.policy.B>ZO(a,c.cA)&&(g.ac(e,b-1),b--);c=e[e.length-1];a.Ta=!!a.u&&!!a.u.info&&a.u.info.j!==c.j;a.D=e;aDa(a.policy,c)};
oHa=function(a,b){b?a.B=a.C.j[b]:(b=(b=g.Ub(a.I.j,function(c){return!!c.Fc&&c.Fc.isDefault}))||a.I.j[0],a.B=a.C.j[b.id]);
XO(a)};
wHa=function(a,b){for(var c=0;c+1<a.D.length&&"tiny"===a.D[c].video.quality;)c++;var d=MO(a.oa)/a.policy.B;return ZO(a,b.info)+ZO(a,a.D[c])>d};
XO=function(a){if(!a.B||!a.policy.u)if(!a.B||!a.B.info.Fc)if(a.B=a.C.j[a.I.j[0].id],1<a.I.j.length){var b=!1;if(a.policy.Sa){if(b=!0,a.policy.Ym){var c=Tb(a.I.j,function(d){return"250"===d.Vb()});
0<=c&&(a.B=a.C.j[a.I.j[c].id],b=wHa(a,a.B))}}else b=a.j.isLocked()?240>a.j.j:wHa(a,a.B);b&&(a.B=a.C.j[g.Rb(a.I.j).id])}};
YO=function(a){a.policy.Xh&&(a.Da=a.Da||new g.K(function(){a.policy.Xh&&a.u&&!aP(a)&&1===Math.floor(10*Math.random())?($O(a,a.u),a.N=!0):a.Da.start()},6E4),g.Fn(a.Da));
if(!a.nextVideo||!a.policy.u)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.C.j[a.D[0].id]:a.C.j[g.Rb(a.D).id];else{for(var b=Math.min(a.videoIndex,a.D.length-1),c=MO(a.oa),d=ZO(a,a.B.info),e=c/a.policy.C-d;0<b&&!(ZO(a,a.D[b])<=e);b--);for(var f=c/a.policy.B-d;b<a.D.length-1&&!(ZO(a,a.D[b+1])>=f);b++);a.nextVideo=a.C.j[a.D[b].id];a.videoIndex!==b&&a.logger.info(function(){var h=a.j;return"Adapt to: "+bua(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}};
pHa=function(a){var b=a.policy.C,c=MO(a.oa),d=c/b-ZO(a,a.B.info);b=g.Vb(a.D,function(e){return ZO(this,e)<d},a);
0>b&&(b=0);a.videoIndex=b;a.nextVideo=a.C.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+bua(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
qHa=function(a){if(a.bb.length){var b=a.bb,c=function(d,e){if("f"===d.info.j||b.includes(oy(d,a.C.isLive,a.Fa.Fh(),a.policy.kb)))return d;for(var f={},h=0;h<e.length;f={fA:f.fA,hA:f.hA},h++){var l=a.C.j[e[h].id],m=oy(l,a.C.isLive,a.Fa.Fh(),a.policy.kb);if(b.includes(m)){m=d.info.j;var n=l.info.j;if(m===n||Bz())return f.fA=d.info.Vb(),f.hA=l.info.Vb(),a.Fa.ra("ombifa",{f:f.fA,t:f.hA}),a.logger.info(function(p){return function(){return"Initial format selection changed from "+p.fA+" to "+p.hA+" based on prefetched media."}}(f)),
a.Ga=!0,l;
a.Fa.ra("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.Fa.ra("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.I.videoInfos);a.B=c(a.B,a.I.j)}};
ZO=function(a,b){if(!a.va[b.id]){var c=a.C.j[b.id].index.getLocalMaxByterate(a.ma,15);c=b.Yt&&a.u&&a.u.index.isLoaded()?c||b.Yt:c||b.Ob;a.va[b.id]=c}c=a.va[b.id];a.policy.qd&&b.video&&b.video.j>a.policy.qd&&(c*=1.5);return c};
xHa=function(a,b){a=Xba(a.C.j,function(c){return c.info.Vb()===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
yHa=function(a){var b=[];if("m"===a.j.reason||"s"===a.j.reason)return b;if(sua(a.C)){for(var c=Math.max(0,a.videoIndex-2);c<a.videoIndex&&c<a.D.length;c++){var d=a.D[c].Vb();b.push(d)}b.reverse()}return b};
zHa=function(a,b){this.u=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
Gwa=function(a,b){var c,d,e;return g.B(function(f){if(1==f.j){if(!b)return f.return(b);c=bP.mq("woe");d=new g.yA(a.u);return g.A(f,d.encrypt(b,a.j),2)}e=f.u;bP.ip(c,Math.ceil(b.byteLength/16));return f.return(e)})};
Lwa=function(a,b){var c,d,e;return g.B(function(f){if(1==f.j){if(!b)return f.return(b);c=bP.mq("wod");d=new g.yA(a.u);return g.A(f,d.decrypt(b,a.j),2)}e=f.u;bP.ip(c,Math.ceil(b.byteLength/16));return f.return(e)})};
cP=function(a,b,c){this.policy=a;this.j=b;this.ma=c;this.B=this.u=0;this.De=null;this.W=new Set;this.V=[];this.indexRange=this.initRange=null;this.N=new tF;this.Y=this.oa=!1;a:{if(this.policy.ye&&this.policy.Dt){b={};c=g.r(this.policy.ye);for(var d=c.next();!d.done;b={dA:b.dA,eA:b.eA},d=c.next())if(d=g.bq(d.value),b.dA=+d.clen,b.eA=+d.csz,0<b.dA&&0<b.eA&&this.policy.u===d.docid&&this.j.info.id===d.fmtid&&this.j.info.lastModified===+d.lmt){c={};b=(c.clen=b.dA,c.csz=b.eA,c.ck=d.ck,c.civ=d.civ,c);break a}}b=
void 0}b?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.J=b.ck,this.I=b.civ):(this.chunkSize=a.Ct,this.C=0,this.J=g.Hu(16),this.I=g.Hu(16));this.D=new Uint8Array(this.chunkSize);this.J&&this.I&&(this.crypto=new zHa(this.J,this.I))};
dP=function(a){return!!a.De&&ty(a.De)};
CHa=function(a,b){if(!dP(a)&&!a.isDisposed()){if(!(a.oa||(a.oa=!0,0<a.C))){var c=eP(a);c=VC(a.policy.u,a.j.info,fP(a),c);gP(a,c)}if(1===b.info.type){if(a.De){hP(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=ry(0,b.j.totalLength)}else if(2===b.info.type)a.De&&1===a.De.type||hP(a,Error("Woffle: Index before init")),a.indexRange=ry(a.initRange.end+1,b.j.totalLength);else if(3===b.info.type){if(!a.De){hP(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(3===a.De.type&&!wy(a.De,b.info)&&(a.V=[],b.info.Ka!==yy(a.De)||0!==b.info.Ab))return;if(b.info.Xd){c=g.r(a.V);for(var d=c.next();!d.done;d=c.next())AHa(a,d.value);a.V=[]}else{a.V.push(b);a.De=b.info;return}}else{hP(a,Error("Woffle: Unexpected slice type"));return}a.De=b.info;AHa(a,b);BHa(a)}};
AHa=function(a,b){var c=0,d=px(b.j);if(a.B<a.C){c=a.C*a.chunkSize;var e,f=((null==(e=b.info.range)?void 0:e.start)||0)+b.info.Ab;c-=f;if(c>=d.length)return;if(0>c)throw Error("Missing data");a.B=a.C;a.u=0}for(e={};c<d.length;){e.xw=Math.min(d.length-c,a.D.byteLength-a.u);f=new Uint8Array(d.buffer,d.byteOffset+c,e.xw);a.D.set(f,a.u);a.u+=e.xw;c+=e.xw;if(a.u===a.D.length){if(b.info===a.De&&dP(a)&&c===d.length)break;f=eP(a);f=VC(a.policy.u,a.j.info,fP(a),f,a.B,a.D,a.crypto);a.policy.eb&&a.W.add(f);gP(a,
f);a.isDisposed()||(f=eP(a),a.ma(fP(a),void 0!==f?(f.downloadedEndTime||0)*f.averageByteRate:f.maxKnownEndTime*f.averageByteRate,f.maxKnownEndTime*f.averageByteRate));a.D=new Uint8Array(a.chunkSize);a.u=0;a.B+=1}e={xw:e.xw}}};
BHa=function(a){if(dP(a))if(a.De&&a.indexRange)if(a.u){var b=new Uint8Array(a.D.buffer,0,a.u),c=DHa(a),d=a.policy.u;if(a.policy.eb)Promise.all(a.W).then(function(){var f=VC(d,a.De.j.info,fP(a,!0),c,a.B,b,a.crypto);gP(a,f,!0)});
else{var e=VC(a.policy.u,a.De.j.info,fP(a,!0),c,a.B,b,a.crypto);gP(a,e,!0)}}else hP(a,new iP("Woffle: Expect always re-mark currentChunkOffset at EOS"));else hP(a,new iP("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
eP=function(a){return{downloadedEndTime:Math.round(a.De?a.De.C:0),maxKnownEndTime:Math.round(a.j.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.j.info.Yt)}};
DHa=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.j.info.Yt)}};
fP=function(a,b){void 0===b||!b||a.indexRange&&a.initRange&&a.De||hP(a,new iP("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));b={lmt:a.j.info.lastModified,docid:a.policy.u,fmtid:a.j.info.id,type:a.j.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.B*a.chunkSize+a.u};a.crypto&&(b.ck=a.J,b.civ=a.I);var c="local://localhost/videoplayback?"+Zp(b),d,e;b={itag:+a.j.info.Vb(),mimeType:a.j.info.mimeType,bitrate:8*a.j.info.Ob,lastModified:String(a.j.info.lastModified),initRange:null==
(d=a.initRange)?void 0:pta(d),indexRange:null==(e=a.indexRange)?void 0:pta(e),url:c};d=a.j.info;if(d=0<d.id.indexOf(";")?d.id.split(";")[1]:null)b.xtags=d;if(d=a.j.info.video)if(b.quality=d.quality,b.qualityLabel=d.qualityLabel,b.width=d.width,b.height=d.height,d=d.fps)b.fps=d;if(a=a.j.info.audio){if(d=a.sampleRate)b.audioSampleRate=String(d);if(a=a.numChannels)b.audioChannels=a}return b};
gP=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.policy.eb&&a.W.delete(b);(c||4===d)&&a.N.resolve(d)},function(d){a.N.reject(d)})};
hP=function(a,b){4!==g.RC(a.policy.u)&&(g.SC(a.policy.u,4),g.Bu(b),a.N.reject(new iP(b.message)))};
iP=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.j=void 0===b?!1:b};
EHa=function(a){a=g.Tx(a,1886614376);for(var b=g.r(a),c=b.next();!c.done;c=b.next());return g.kk(a,function(d){return new Uint8Array(d.data.buffer,d.offset+d.data.byteOffset,d.size)})};
FHa=function(a){var b=mk(a,function(e,f){return e+f.length},0);
b=new Uint8Array(b);var c=0;a=g.r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
GHa=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.u=c;this.C=d;this.B=e;this.gx=f};
jP=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.u=[];this.Ue=!1;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.Ue=!0};
IHa=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var h=d.getUint32(c+28);f+=16*h+4}var l=d.getUint32(c+f-4);try{b:{var m=void 0,n=b.subarray(c+f,c+f+l);f=HHa;if(kP.length){var p=kP.pop();bba(p);p.j.init(n,void 0,void 0,void 0);m=p}else m=new Td(n);try{var q=he(f);var t=sba(new q.rr,m,q);break b}finally{m.j.clear(),m.C=-1,m.u=-1,100>kP.length&&kP.push(m)}t=
void 0}m=t;if(null!==m){var u=m;break a}}catch(x){}}c+=e}u=null}catch(x){u=null}}if(null!=u){b=g.kd(u,7);null==b||a.Ue||(a.cryptoPeriodIndex=b);b=g.kd(u,10);null!=b&&0<b&&!a.Ue&&(a.j=b);b=g.md(u,2,!1);if(b.length&&!(Vc(b)&4)){Object.isFrozen(b)&&(b=Wc(b.slice()),g.E(u,2,b,void 0,!0));for(c=0;c<b.length;c++)b[c]=dd(b[c]);Uc(b,5)}$c(u)&&Object.freeze(b);u=g.r(b);for(b=u.next();!b.done;b=u.next())a.u.push(g.Cc(Rc(b.value),4))}};
JHa=function(a){return isNaN(a.cryptoPeriodIndex)?g.Cc(a.initData):""+a.cryptoPeriodIndex};
lP=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.kz?void 0:d.kz;d=void 0===d.UB?!1:d.UB;this.videoId=a;this.status=b;this.videoDuration=c;this.kz=e;this.UB=d};
KHa=function(a,b,c,d,e){this.videoId=a;this.formatStream=b;this.u=c;this.bytesDownloaded=d;this.j=e};
mP=function(a){this.j=a;this.offset=0};
nP=function(a){if(a.offset>=a.j.totalLength)throw Error();return qx(a.j,a.offset++)};
LHa=function(a,b){b=void 0===b?!1:b;var c=nP(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=nP(a);-1===b&&255!==d&&(b=0);-1<b&&(b=256*b+d)}return b}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+nP(a),d*=128;return b?c:c-d};
qP=function(a,b,c){var d=this;this.Fa=a;this.policy=b;this.D=c;this.logger=new g.qO("dash");this.u=[];this.j=null;this.Y=-1;this.N=0;this.ma=NaN;this.V=0;this.B=NaN;this.Da=this.Ga=0;this.Sa=-1;this.va=this.C=this.J=this.oa=null;this.Ta=this.Pa=NaN;this.I=this.W=this.Ia=this.bb=null;this.eb=!1;this.timestampOffset=0;if(this.policy.u){var e=this.D,f=this.policy.u;this.I=new cP(this.policy,e,function(h,l,m){oP(a,new lP(d.policy.u,2,{kz:new KHa(f,h,e.info,l,m)}))});
this.I.N.promise.then(function(h){d.I=null;1===h&&oP(a,new lP(d.policy.u,h))},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof iP&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),pP(d),oP(a,new lP(d.policy.u,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Fa.ra("dldbwerr",{em:l}),pP(d),oP(a,new lP(d.policy.u,4,{UB:!0})))})}};
MHa=function(a){return a.u.length?a.u[0]:null};
rP=function(a){return a.u.length?a.u[a.u.length-1]:null};
QHa=function(a,b,c){if(a.C){var d=a.C.Ab+a.C.u;if(0<c.info.Ab)if(c.info.Ka===a.C.Ka&&c.info.Ab<d){if(c.info.Ab+c.info.u<=d)return;c=Qta(c,d-c.info.Ab)[1]}else if(0<=c.info.Ka&&0<=a.C.Ka&&!wy(a.C,c.info))throw new g.Ar("improper_continuation",Ay(a.C),Ay(c.info));d=a.C;var e=c.info;(d.Ka!==e.Ka&&e.Ka!==d.Ka+1||d.type!==e.type?0:wy(d,e)||($f(d.B,e.B)&&d.Ka===e.Ka?0:sta(d,e)))||sP(a,"d")}else if(0<c.info.Ab)throw new g.Ar("continuation_of_null",Ay(c.info));a.C=c.info;a.D=c.info.j;d=b.KG();if(0===c.info.Ab){if(a.j)throw new g.Ar("slice_not_fully_processed",
Ay(a.j.info),Ay(c.info));tP(a);a.Ga=d}else{if(a.policy.At&&a.Ga&&d&&a.Ga!==d)throw a=new g.Ar("lmt_mismatch",c.info.Ka,a.Ga,d),a.level="WARNING",a;!c.info.j.Bm()&&a.J&&(d=c.info,e=a.J.j,d.D="updateWithEmsg",d.Ka=e)}if(a.j){d=Rta(a.j,c);if(!d)throw new g.Ar("failed_to_merge",Ay(a.j.info),Ay(c.info));a.j=d}else a.j=c;a:{c=g.Uy(a.j.info.j.info);if(3!==a.j.info.type){if(!a.j.info.Xd)break a;6===a.j.info.type?NHa(a,b,a.j):uP(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(0>=a.Y&&0===a.N){var f=a.j.j,
h=-1;e=-1;if(c){for(var l=0;l+8<f.totalLength;){var m=Lsa(f,l),n=Lsa(f,l+4);l+=m||1;if(1836019558===n)h=l;else if(1835295092===n){e=l;break}}0>e&&(h=-1)}else{f=new mP(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var q=LHa(p,!0),t=LHa(p,!1);var u=q;var x=t}catch(z){x=u=-1}p=u;var y=x;if(!(0<p))break;if(408125543!==p)if(524531317===p)l=!0,0<=y&&(e=f.getOffset()+y,m=!0);else{if(l&&(160===p||163===p)&&(0>h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.getOffset()+y);if(160===p){0>h&&(e=h=f.getOffset()+
y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.Y=h;a.N=e-h}if(a.Y>d)break;a.Y?(d=OHa(a,a.Y),d.D&&PHa(a,d),NHa(a,b,d),vP(a,d),a.Y=0):a.N&&(d=OHa(a,0>a.N?Infinity:a.N),a.N-=d.j.totalLength,vP(a,d))}}a.j&&a.j.info.Xd&&(vP(a,a.j),a.j=null)};
uP=function(a,b){!b.info.j.Bm()&&0===b.info.Ab&&(g.Uy(b.info.j.info)||b.info.j.info.Ue())&&Xta(b);if(1===b.info.type)try{PHa(a,b),RHa(a,b)}catch(d){g.S(d);var c=zy(b.info);c.hms="1";a.Fa.handleError("fmt.unparseable",c||{},1)}b.info.j.XG(b);a.I&&CHa(a.I,b)};
pP=function(a){var b;null==(b=a.I)||b.dispose();a.I=null};
SHa=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};
wP=function(a){return g.kk(a.u,function(b){return b.info})};
OHa=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=Qta(c,b);a.j=c[1];return c[0]};
PHa=function(a,b){var c=Ty(b);if(fz(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new Ux(c);Wx(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.j,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;ez(d)&&!fz(d)&&(d=Ty(b),(new Ux(d)).Wu(),$x([408125543,374648427,174,224],21936,d));b.info.j.info.isVideo()&&(d=b.info.j,d.info&&d.info.video&&4===d.info.video.projectionType&&!d.B&&(g.Uy(d.info)?d.B=Vsa(c):d.info.Ue()&&(d.B=bta(c))));b.info.j.info.Ue()&&
b.info.isVideo()&&(c=Ty(b),(new Ux(c)).Wu(),$x([408125543,374648427,174,224],30320,c)&&$x([408125543,374648427,174,224],21432,c));if(a.policy.Ww&&b.info.j.info.Ue()){c=Ty(b);var e=new Ux(c);if(Wx(e,[408125543,374648427,174,29637])){d=Zx(e,!0);e=e.start+e.j;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.Jn()&&g.Uy(b.info.j.info)){d=Ty(b);c=g.Kx(d,0,1701606260);f=g.Kx(d,0,1836476516);if(c&&f){c.skip(2);var h=Bx(c),l=Dx(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(Ex(c)),
e.push(Ex(c)),m.push(Bx(c)),n.push(Bx(c));else for(h=0;h<l;++h)d.push(Cx(c)),e.push(Cx(c)),m.push(Bx(c)),n.push(Bx(c));c=g.Lx(f);c=new Ssa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.Uy(b.info.j.info))for(d=Ty(b),e=g.Kx(d,0,1701082227);e;)e.markAsSkip(),e=g.Kx(d,e.offset+e.size,1701082227);a.eb=!0;b.info.j.C=c}}b.info.j.Bm()||b.info.j.j||b.info.j.indexRange||Yta(b)};
NHa=function(a,b,c){if(c.info.j.Bm()){if(a.eb&&THa(c)&&(b=Ty(c),b=g.Kx(b,0,1953658222))){b.skip(1);var d=Ax(b)<<16|Bx(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=Dx(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=Dx(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.oa&&!!a.oa.D.C)if(b=c.info.isVideo())b=Wta(c),h=a.oa,xP?(l=1/b,b=yP(a,b)>=yP(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&THa(c)&&(b=a.oa,xP?(l=Wta(c),h=1/l,l=yP(a,l),b=yP(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,Usa(Ty(c),b))}else{h=!1;a.J||(Xta(c),c.u&&(a.J=c.u,h=!0,l=c.info,e=c.u.j,l.D="updateWithEmsg",l.Ka=e,l=c.u,l.C&&(a.D.index.B=!l.C),l=c.info.j.info,e=Ty(c),g.Uy(l)?Sx(e,1701671783):l.Ue()&&$x([408125543],307544935,e)));a:{if(e=l=Vy(c,a.policy.Ia))e=c.info.j.info.Ue()&&160===qx(c.j,0);if(e)a.V+=l,a.B=a.policy.Zc?a.B+l:NaN;else{if(a.policy.Pr){var n=a.Fa.Tq(Sta(c),1);e=n;if(0<=a.B&&6!==c.info.type){if(a.policy.Zc&&isNaN(a.Pa)){g.Bu(new g.Ar("Missing duration while processing previous chunk",
Ay(c.info)));sP(a,"m");break a}f=n-a.B;var p=f-a.Da;d=c.info.Ka;var q=a.va?a.va.Ka:-1,t=a.Ta,u=a.Pa;m=a.policy.Ff&&f>a.policy.Ff;var x=a.policy.bf&&p>a.policy.bf;1E-4<Math.abs(p)&&(n={audio:""+ +a.Jn(),sq:d.toFixed(),sliceStart:n,lastSq:q.toFixed(),lastSliceStart:t,lastSliceDuration:u,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+(+m||x)},a.Fa.handleError("qoe.avsync",n),a.Sa=d);n=0;m||x||(e=a.B);a.oa&&!a.Jn()&&g.Uy(c.info.j.info)&&(x=a.oa,m=x.Sa,x=x.Da,p=.02<Math.abs(x-f),
(d===m||d>m&&d>a.Sa)&&p&&(d=Math.max(.95,Math.min(1.05,(l-(x-f))/l)),Usa(Ty(c),d),d=Vy(c,a.policy.Ia),n=l-d,l=d));a.Da=f+n}}else e=isNaN(a.B)?c.info.startTime:a.B;Tta(c,e)?(isNaN(a.ma)&&(a.ma=e),a.V+=l,a.B=e+l):(l=zy(c.info),l.smst="1",a.Fa.handleError("fmt.unparseable",l||{},1))}}a.va=c.info;a.Pa=Vta(c);0<=c.C&&(a.Ta=c.C);if(h&&a.J){h=UHa(a,!0);By(c.info,h);a.j&&By(a.j.info,h);b=g.r(b.info.j);for(l=b.next();!l.done;l=b.next())By(l.value,h);(c.info.Xd||a.j&&a.j.info.Xd)&&6!==c.info.type||(a.W=h,b=
a.Fa,b.j.isManifestless&&VHa(b,h,null,!!a.D.info.video),a.policy.ge||WHa(a))}}RHa(a,c);a.timestampOffset&&Uta(c,a.timestampOffset)};
vP=function(a,b){if(b.info.Xd){a.bb=b.info;if(a.J){var c=a.J,d=UHa(a,!1),e=null;if(a.J.py()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=c.data["Stitched-Video-Cpn"]?c.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[],h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.r(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.r(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.r(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 GHa(e,f,h,l,g.Qsa(c),g.Rsa(c))}a.Fa.uI(a.D,d,e);a.W||a.policy.ge||WHa(a);a.W=null}tP(a)}a.I&&CHa(a.I,b);if(c=rP(a))if(c=Rta(c,b,a.policy.Xj)){a.u.pop();a.u.push(c);
return}a.u.push(b)};
tP=function(a){a.j=null;a.Y=-1;a.N=0;a.J=null;a.ma=NaN;a.V=0;a.W=null};
sP=function(a,b){b={rst4disc:b,cd:a.Da.toFixed(3),sq:a.va?a.va.Ka:-1};a.B=NaN;a.Da=0;a.Sa=-1;a.va=null;a.Ta=NaN;a.Pa=NaN;a.Ia=null;a.Fa.ra("mdstm",b)};
RHa=function(a,b){if(a.D.info.Wd){if(b.info.j.info.Ue()){var c=new Ux(Ty(b));if(Wx(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=Zx(c,!0);c=16!==d?null:dy(c,d)}else c=null;d="webm"}else b.info.J=EHa(Ty(b)),c=FHa(b.info.J),d="cenc";c&&c.length&&(c=new jP(c,d),c.Ue=b.info.j.info.Ue(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),b.u&&b.u.B&&(c.j=b.u.B),a.Fa.wv(c))}};
WHa=function(a){var b=a.J,c=Osa(b);c&&(c.startSecs+=a.ma,a.Fa.tI(a.D,c,b.j,b.py()))};
UHa=function(a,b){var c,d=a.J;if(c=Osa(d))c.startSecs+=a.ma;return new ix(d.j,a.ma,b?d.fk:a.V,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)};
THa=function(a){return a.info.j.Bm()&&a.info.Ka===a.info.j.index.getLastSegmentNumber()};
yP=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.D.C&&b&&(b+=a.D.C.j);return b+a.getDuration()};
XHa=function(a,b){0>b||(a.u.forEach(function(c){Uta(c,b)}),a.timestampOffset=b)};
zP=function(a,b){this.info=a;this.callback=b;this.state=1;this.N=!1;this.C=0;this.D=!1;this.j=this.lastError=null};
YHa=function(a){return g.lk(a.info.j,function(b){return 3===b.type})};
AP=function(a,b){var c=a.state;a.state=b;a.onStateChange(c);a.callback&&a.callback(a,c)};
BP=function(a,b){b&&a.state<b?AP(a,b):a.callback&&a.callback(a,a.state)};
ZHa=function(a,b){this.j=a;this.u=0;this.B=null;this.Fe=[];this.C=null;(this.length=b?b:0)?1!==this.j.length||this.j[0].u||(this.j[0].u=this.length):1===this.j.length||g.lk(this.j,function(c){return!!c.range})};
$Ha=function(a,b,c){a.B&&(lx(a.B,b),b=a.B,a.B=null);for(var d=!1,e=!1,f=0,h=0,l=g.r(a.j),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.u<=a.u)f+=m.u;else{if(uy(m)&&!c&&a.u+b.totalLength-h<f+m.u){a.B=b.split(h).Rs;break}var n=3===m.type||4===m.type,p=a,q=a.u-f,t=n&&d&&!e&&1===b.j.length,u=b.totalLength-h;m.range&&(u=Math.min(m.u-q,u));q=new sy(m.type,m.j,m.range,"reslice"+m.D,m.Ka,m.startTime,m.duration,m.Ab+q,u,m.range?m.Ab+q+u===m.range.length:!!c);var x=mx(b,h,u);p.Fe.push(new Sy(q,x,
t));p=u;a.u+=p;h+=p;f+=m.u;1===m.type&&(d=!0);n&&(e=!0);if(h===b.totalLength)break}};
aIa=function(a){if(!a.Fe.length)return[];var b=a.Fe;a.Fe=[];a.C=g.Rb(b).info;return b};
bIa=function(a){return a.length-a.u+a.Fe.reduce(function(b,c){return b+c.j.totalLength},0)};
OO=function(a,b,c,d,e){zP.call(this,c,e);var f=this;this.policy=a;this.u=b;this.Yd=d;this.B=new g.K(function(){f.isComplete()||(f.lastError="net.timeout",AP(f,5))},this.policy.Vw);
this.Od=function(){f.isDisposed()||(CP(f.Yd,f.u)?(f.isComplete()||f.B.start(),f.Yd.eh(f.u)&&BP(f,2),f.Yd.Kf(f.u)&&(cIa(f.Yd,f.u)?AP(f,4):(f.lastError="net.closed",AP(f,5)))):(f.lastError="player.exception",AP(f,5)))};
this.B.start();this.j=new ZHa(this.info.j,Dy(this.info));dIa(this.Yd,this.u,this.Od);g.Qg(this.Od)};
DP=function(a,b,c){this.Fa=a;this.policy=b;this.j=c;this.B=[];this.u=this.Yb=null;this.W=this.Y=0;this.I=-1;this.N=!1;this.V=-1;this.C=new qP(a,b,c);this.Ob=c.info.Ob;this.J=c.wy();this.isManifestless=c.wy();this.D=this.J};
EP=function(a,b){b&&xP&&XHa(a.C,b.MG());a.Yb=b};
FP=function(a){return a.Yb&&a.Yb.DB()};
GP=function(a,b){a.B.push(b);a.u=g.Rb(b.info.j)};
HP=function(a){for(;a.B.length&&4===a.B[0].state;){var b=a.B.shift();eIa(a,b);a.Y=b.KN()}a.B.length&&(b=a.B[0],b.Ev()&&(!b.info.pn()||a.policy.zs||b instanceof OO)&&eIa(a,b))};
eIa=function(a,b){if(b.Ev()){var c=b.LE();c=g.r(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.Y&&b instanceof OO&&a.Fa.ra("omblss",{s:Ay(d.info)}),fIa(a,b,d)}};
fIa=function(a,b,c){switch(c.info.type){case 1:case 2:uP(a.C,c);break;case 4:var d=c.info.j,e=d.pL(c),f;(null==(f=a.u)?0:4===f.type)&&wta(c.info,a.u)&&(a.u=d.Lv(a.u).pop());c=g.r(e);for(d=c.next();!d.done;d=c.next())fIa(a,b,d.value);break;case 3:QHa(a.C,b,c);break;case 6:QHa(a.C,b,c),a.u=c.info}};
QO=function(a,b,c){c=void 0===c?!1:c;if(a.Yb){var d=a.Yb.ag(),e=wz(d,b),f=NaN,h=FP(a);h&&(f=wz(d,h.j.index.getStartTime(h.Ka)));if(e===f&&a.u&&a.u.u&&gIa(IP(a),0))return b}a=hIa(a,b,c);return 0<=a?a:NaN};
RO=function(a,b){a.j.Lf();var c=hIa(a,b);if(0<=c)return c;c=Math;var d=c.min,e=a.C;if(e.I)if(e=e.I,e.De&&3===e.De.type)e=e.De.startTime;else if(0<e.C){var f=e.j.index;f=g.kc(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.j.index.getStartTime(0<=f?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);a.u=a.j.Dn(b).j[0];JP(a)&&a.Yb&&a.Yb.abort();a.W=0;return a.u.startTime};
iIa=function(a){a.J=!0;a.D=!0;a.I=-1;RO(a,Infinity)};
KP=function(a){for(var b=0,c=g.r(a.B),d=c.next();!d.done;d=c.next())d=d.value,d=d.j&&d.j.length?bIa(d.j):zta(d.info),b+=d;return b+=SHa(a.C)};
LP=function(a,b){if(!a.Yb)return 0;var c=FP(a);if(c&&ty(c))return c.C;a=a.Yb.ag(!0);return eua(a,b)};
jHa=function(a,b,c,d){PO(a);for(var e=a.C,f=null,h=e.u.length-1;0<=h;h--){var l=e.u[h];l.info.Ka>=b&&(e.u.pop(),e.B-=Vy(l,e.policy.Ia),f=l.info)}f&&(e.C=0<e.u.length?e.u[e.u.length-1].info:e.Ia,e.policy.Kq&&0===e.u.length&&!e.C&&sP(e,"r"));e.policy.Kq&&(h=f?f.Ka:-1,f=f?f.j.info.Vb():"",e.Fa.ra("mdstm",{rollbk:1,itag:f,popped:h,sq:b,lastslc:e.C?e.C.Ka:-1,lastfraget:e.B.toFixed(3)}));d>c?RO(a,d):a.u=a.j.No(b-1,!1).j[0]};
OP=function(a,b){var c;for(c=0;c<a.B.length&&b!==a.B[c];c++);if(c===a.B.length)MP(a,b);else{for(;c<a.B.length;)MP(a,a.B.pop());var d=NP(a);d&&d.j.Mr()&&pl(b.info.j,function(e){return xta(e,d)})?a.u=d:vy(b.info.j[0])?a.u=b.j&&b.j.C?vta(b.j.C):uta(b.info.j[0]):a.u=null}};
JP=function(a){var b;!(b="f"===a.j.info.j)&&(b=a.policy.u)&&(b=a.C,b=!!b.I&&dP(b.I));if(b)return!0;b=FP(a);if(!b)return!1;var c=ty(b)&&b.Xd;return a.isManifestless&&0<a.V?c||b.Ka>=a.V:c};
jIa=function(a){var b;return JP(a)||!(null==(b=rP(a.C))||!ty(b.info))};
IP=function(a){var b=[],c=FP(a);c&&b.push(c);b=g.dc(b,wP(a.C));c=g.r(a.B);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e={},f=g.r(d.info.j),h=f.next();!h.done;e={vt:e.vt},h=f.next())e.vt=h.value,d.N&&(b=g.cm(b,function(l){return function(m){return!wta(m,l.vt)}}(e))),(vy(e.vt)||4===e.vt.type)&&b.push(e.vt)}a.u&&!rta(a.u,g.Rb(b),a.u.j.Bm())&&b.push(a.u);
return b};
gIa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!sta(a[b-1],a[b]))return!1;return!0};
hIa=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.u)return NaN;a=IP(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.B<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:gIa(a,c?b:0)?a[b].startTime:NaN};
PP=function(a){return!(!a.u||a.u.j===a.j)};
kIa=function(a){return PP(a)&&a.j.Lf()&&a.u.j.info.Ob<a.j.info.Ob};
lIa=function(a,b,c){return(a=NP(a))&&!ty(a)?a.C>b&&a.C<b+c:!1};
NP=function(a){var b=rP(a.C);return b?b.info:FP(a)};
PO=function(a){for(var b=g.r(a.B),c=b.next();!c.done;c=b.next())MP(a,c.value);a.B=[];a.u=null};
MP=function(a,b){if(b.N&&!b.info.j[0].j.Mr()){a=a.C;if(a.W&&!a.policy.Sh){var c=a.Fa;c.j.isManifestless&&Rz(c.j,a.W.Ka,!!a.D.info.video)}a.W=null;a.J=null;a.C=a.bb;a.B=a.C?a.B-a.V:NaN;tP(a)}b.dispose()};
mIa=function(a){return!!a.u&&-1!==a.u.Ka&&a.u.Ka<a.j.index.getFirstSegmentNumber()};
nIa=function(a){var b=a.u;b&&-1===b.Ka&&(a=rP(a.C))&&vy(a.info)&&(a=a.info.Ka,b.D="updateLastSliceRequested",b.Ka=a)};
oIa=function(a){return pl(a.B,function(b){return b.D})};
pIa=function(a){a=void 0===a?{}:a;var b=a.Mi,c=a.Nh,d=a.getLastSegmentNumber,e=a.yr;this.xn=a.xn;this.Mi=b;this.Nh=c;this.getLastSegmentNumber=d;this.yr=e};
qIa=function(a,b){if(0>b)return!0;var c=a.getLastSegmentNumber();return b<c||b===c&&!a.xn||b===c&&(a=a.yr())&&b===a.Ka?!0:!1};
rIa=function(a,b,c){if(!qIa(a,b))return 0;if(!a.Mi||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.getLastSegmentNumber();return b<c||b===c&&(a=a.yr())&&b===a.Ka&&!a.pending?2:1};
QP=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.status=0;this.j=new kx;this.B=0;this.isDisposed=this.C=!1;this.D=0;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.xv()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.u&&e.j.append(e.u);e.u=f;e.B+=f.length;f=(0,g.R)();f-e.D>e.policy.j&&(e.callbacks.rs(f,e.B),e.D=f)},function(){},d.body||null)};
tIa=function(a,b){var c=this;this.j=a;this.callbacks=b;this.loaded=this.status=0;this.error="";a=qy(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new kx;sIa(this).then(function(){c.callbacks.cq()},function(d){c.error=""+d||"unknown_err";
c.callbacks.cq()})};
sIa=function(a){var b,c,d,e,f,h,l,m,n,p,q,t,u,x,y;return g.B(function(z){if(1==z.j){a.status=200;b=a.j.get("docid");c=gg(a.j.get("fmtid")||"");d=a.j.get("lmt")||"0";e=+(a.j.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.j.get("ck")&&a.j.get("civ")&&(f=new zHa(a.j.get("ck"),a.j.get("civ")));h=a.range;l=Math.floor(h.start/e);m=Math.floor(h.end/e);n=l}if(5!=z.j)return n<=m?g.A(z,Mwa(b,c,d,n,f),5):z.Ra(0);p=z.u;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;t=(n+1)*e;
u=Math.max(0,h.start-q);x=Math.min(h.end+1,t)-(u+q);y=new Uint8Array(p.buffer,u,x);a.u.append(y);a.loaded+=x;a.loaded<h.length&&a.callbacks.rs((0,g.R)(),a.loaded);n++;return z.Ra(2)})};
RP=function(a,b){var c=b.Wh,d=void 0===b.Dk?1:b.Dk,e=void 0===b.NC?d:b.NC,f=void 0===b.pn?!1:b.pn,h=void 0===b.Ln?!1:b.Ln,l=void 0===b.iG?!1:b.iG,m=b.Ei,n=b.Ka;b=b.Hf;this.callbacks=a;this.requestNumber=++uIa;this.j=this.now();this.oa=this.Ia=NaN;this.Da=0;this.C=this.j;this.u=0;this.Pa=this.j;this.ma=0;this.Sa=this.Ga=this.isActive=!1;this.B=0;this.W=NaN;this.J=this.D=Infinity;this.N=NaN;this.va=!1;this.V=NaN;this.I=void 0;this.Wh=c;this.policy=this.Wh.oa;this.Dk=d;this.NC=e;this.pn=f;this.Ln=h;
l&&(this.I=[]);this.Ei=m;this.Ka=n;this.Hf=b;this.snapshot=QA(this.Wh);vIa(this);wIa(this,this.j);this.W=(this.V-this.j)/1E3};
xIa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
SP=function(a){var b={rn:a.requestNumber,rt:(a.now()-a.j).toFixed(),lb:a.u,pt:(1E3*a.W).toFixed(),pb:a.Dk,stall:(1E3*a.B).toFixed(),hrt:(a.Ia-a.j).toFixed(),elt:(a.oa-a.j).toFixed(),elb:a.Da};a.url&&GFa(b,a.url);return b};
zIa=function(a,b,c,d){if(!a.Ga){a.Ga=!0;if(!a.Ln){TP(a,b,c);yIa(a,b,c);var e=a.rp();if(2===e&&d)UP(a,a.u/d,a.u);else if(2===e||1===e)d=(b-a.j)/1E3,(d<=a.policy.j||!a.policy.j)&&!a.Sa&&VP(a)&&UP(a,d,c),VP(a)&&(d=a.Wh,d.j.Uh(1,a.B/Math.max(c,2048)),RA(d));c=a.Wh;b=(b-a.j)/1E3||.05;d=a.W;e=a.pn;c.I.Uh(b,a.u/b);c.C=MA();e||c.u.Uh(1,b-d)}a.deactivate()}};
yIa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u,f=a.rp();if(a.isActive)1===f&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&UP(a,.05,e)):UP(a,d,e),a.Sa=!0);else if(WP(a,c)){if(1===f&&(f=(b-a.j)/1E3,!AIa(a)&&!a.Ln)){var h=a.Wh;h.J.Uh(1,f);RA(h)}a.oa=b;a.Da=c;a.isActive=!0}a.Ln||Iva(a.Wh,d,e);a.C=b;a.u=c};
UP=function(a,b,c){a.Ln||(b=Math.max(b,.05),a=a.Wh,a.B.Uh(b,c/b),a.C=MA())};
TP=function(a,b,c){c=Math.round(c/1024);a.I&&a.I.push(XP(b-a.Pa,c-a.ma));a.Pa=b;a.ma=c};
BIa=function(a){return a.I?a.I.join(""):""};
WP=function(a,b){return b?a.Ei&&1!==a.rp()?!0:2048<=b:!1};
VP=function(a){return WP(a,a.u)};
CIa=function(a){return(a.C-a.j)/1E3};
vIa=function(a){a.N=a.j+1E3*a.snapshot.delay;a.va=!1};
YP=function(a,b){if(a.Ei&&void 0!==a.Ka&&void 0!==a.Hf){var c=Math,d=c.min,e=a.D;var f=a.Ei;var h=a.j;if(qIa(f,a.Ka))f=b;else{var l=0;f.Mi&&(l=.2);f=h+1E3*(f.Nh+l)}a.D=d.call(c,e,f);c=Math;d=c.min;e=a.J;f=a.Ei;h=a.j;l=rIa(f,a.Ka,a.Hf);2!==l&&(b=l?b:h+1E3*f.Nh,f.Mi&&(b+=1E3*f.Nh));a.J=d.call(c,e,b);a.D<=a.j?vIa(a):(a.N=a.D,a.va=!0)}};
AIa=function(a){a.Ei&&YP(a,a.now());return a.va};
wIa=function(a,b){b=void 0===b?a.now():b;if(a.Ei){YP(a,b);if(a.Y?a.Ei&&1!==a.rp():a.D!==a.J){var c=a.J;if(b<c){a.V=a.J;return}}else c=a.D;c=Math.max(c,a.N)}else c=a.N;var d=a.Dk-a.u;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=VP(a)?d+b:d+Math.max(b,c);a.V=d};
XP=function(a,b){for(var c="";4095<a;)c+=XP(4095,0),a-=4095;for(;4095<b;)c+=XP(a,4095),b-=4095,a=0;return c+("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))};
ZP=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.V=d;this.status=0;this.response=void 0;this.N=this.u=0;this.I=this.J=!1;this.errorMessage="";this.Y=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.Hm=f.body.getReader(),e.isDisposed()?e.Hm.cancel().catch(function(){}):(e.D=f.headers,e.callbacks.yv(),DIa(e));
else e.onDone()};
this.W=function(f){var h=(0,g.R)();e.isDisposed()||(e.C&&(e.j.append(e.C),e.C=void 0),f.done?(e.Hm=void 0,e.onDone()):(f=f.value,e.u+=f.length,e.C=f,f=(0,g.R)(),f-e.N>e.policy.j&&(e.N=f,e.callbacks.rs(h,e.u)),DIa(e)))};
this.onError=function(f){e.errorMessage=String(f);e.J=!0;e.onDone()};
this.j=new kx;this.B=window.AbortController?new AbortController:void 0;this.start(a)};
DIa=function(a){a.Hm.read().then(a.W,a.onError).then(void 0,ur)};
$P=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.r(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.xv(f)};
a=Wp(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",Wp(function(f){d.Od(f)}),!1)};
cQ=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.fz?[]:h.fz;var l=void 0===h.Kz?!1:h.Kz,m=void 0===h.Xq?0:h.Xq,n=void 0===h.poToken?"":h.poToken,p=void 0===h.us?void 0:h.us;h=void 0===h.nz?"":h.nz;zP.call(this,b,e);var q=this;this.policy=a;this.logger=new g.qO("dash/request");this.W=this.B=0;this.va=!1;this.J=this.I=null;this.ma=!1;this.timing=new RP(this,c);this.Y=d;this.Kz=l;this.u=g.Gy(this.info,this.policy,this.Y);this.u.set("rn",this.timing.requestNumber.toString());this.u.set("rbuf",
(1E3*m).toFixed().toString());this.Kz&&this.u.set("smb","1");this.policy.Lj&&n&&this.u.set("pot",n);h&&this.u.set("bbs",h);this.fz=f||null;this.us=p;this.D=EIa(this);this.oa=1*this.policy.Ug;this.V=new g.K(this.m0,this.oa,this);this.info.u.J=(0,g.R)();jta(aQ(this));a=void 0;this.policy.jt&&(a={method:"POST",body:this.info.Fk()});try{this.xhr=FIa(this,a),this.V.start()}catch(t){g.Bu(t),this.lastError="net.ssl",g.Qg(function(){bQ(q)})}};
EIa=function(a){if(!(Fy(a.info)&&a.info.pn()&&a.policy.Jc&&a.fz)||2<=a.info.u.u||0<Tz()||!Rua())return!1;var b=a.u.get("aitags");if(!b)return!1;b=gg(b).split(",");for(var c=[],d=g.r(a.fz),e=d.next();!e.done;e=d.next())e=e.value,g.Xb(b,e)&&c.push(e);if(!c.length)return!1;a.u.set("altitags",g.fg(c.join(",")));return!0};
aQ=function(a){return ky(a.Y,ex(a.u.Ri))};
HIa=function(a,b){if(400<=b.status)return a.lastError="net.badstatus",5;if(!b.oz())return a.lastError=204===b.status?"net.nocontent":"net.connect",5;var c="";if(GIa(a)){var d=b.jg();d.totalLength<=a.policy.zg&&(c=px(d),c=ux(c),c=wv(c)?c:"")}if(c)return kta(aQ(a)),a.info.Lk(a.u,c),3;c=b.Ik();if((d=Dy(a.info))&&d!==c||b.dD())return a.lastError="net.closed",5;a.Dp(!0);if(!d&&a.j&&(d=a.j.Fe,d.length&&!Pta(d[0])))return a.lastError="net.closed",5;d=YHa(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(b=
YHa(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.va=!0,a.policy.Zm&&(d=b);zIa(a.timing,(0,g.R)(),c,d?Number(d):0);kta(aQ(a));b=a.info.u;b.u=0;b.D=0;b.I=0;if(null!=(b=a.us)&&(a=a.u.Ri,!((0,g.R)()<b.I+3E5||fx(a))&&(c=ex(a))&&LFa(c)&&b.B===sN(c))){var e;gx(a)&&(e=ex(hx(a)));g.Zu("yt-player-bandaid-host",{primary:c,secondary:e},864E3);b.I=(0,g.R)();IFa(b,{primary:c,secondary:e})}return 4};
bQ=function(a){if("net.timeout"===a.lastError){var b=a.timing,c=(0,g.R)();if(!b.Ln){TP(b,c,1024*b.ma);var d=(c-b.j)/1E3;if(2!==b.rp())if(VP(b)){b.B+=(c-b.C)/1E3;var e=b.Wh,f=b.u;f=Math.max(f,2048);e.j.Uh(1,b.B/f);RA(e)}else AIa(b)||b.Ln||(e=b.Wh,e.J.Uh(1,d),RA(e)),b.oa=c;e=b.Wh;f=b.W;var h=b.pn;e.I.Uh(d,b.u/d);e.C=MA();h||e.u.Uh(1,d-f);Iva(b.Wh,(c-b.C)/1E3,0)}}"net.nocontent"!==a.lastError?((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!fx(a.u.Ri)?(c=aQ(a),
c.timedOut+=1):(c=aQ(a),c.j+=1),a.timing.u||(c=a.info.u,d=a.u,++c.u,b&&++c.D,ex(d.Ri).startsWith("redirector.")&&(c.j=c.C.clone(),delete c.B))):++a.info.u.I;AP(a,5)};
IIa=function(a,b){b&&(b=aQ(a),b.u+=1);dQ(a);a.lastError="net.timeout";bQ(a)};
dQ=function(a){a.xhr&&a.xhr.abort();a.timing.deactivate()};
GIa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.Mx();c=!c||c<=a.policy.zg;return(!a.xhr.Xv()||!b||-1!==b.indexOf("text/plain"))&&c};
FIa=function(a,b){if(fx(a.u.Ri))return new tIa(a.u,a.timing);var c=g.iy(a.u);return a.policy.ma&&(a.policy.wr&&!isNaN(a.info.Hf)&&a.info.Hf>a.policy.Dl||a.D&&!a.policy.zs?0:Hw())?Iw()?new QP(c,a.policy.D,a.timing,b):new ZP(c,a.policy.D,a.timing,b):new $P(c,a.timing,b)};
JIa=function(a){if(!a.policy.D.Mi||!isNaN(a.info.Hf)&&0<a.info.Hf)return!1;if(!a.xhr.Fr())return!0;var b=a.xhr;b.Mx()?b=!1:(b=b.getResponseHeader("content-type"),b="audio/mp4"===b||"video/mp4"===b||"video/webm"===b);return!b||isNaN(a.info.Hf)&&(b=a.xhr.getResponseHeader("x-head-seqnum"))&&Number(b)>a.info.j[0].Ka?!1:!0};
eQ=function(a,b,c,d,e,f,h,l,m,n,p,q){g.I.call(this);this.Fa=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.I=e;this.B=f;this.timing=h;this.J=l;this.schedule=m;this.j=n;this.D=p;this.oa=q;this.ma=!1;this.nz="";this.C=this.Ei=null;this.V="";this.W=0;this.Hf=NaN;this.va=!1;this.u=null;this.Y=NaN;this.N=0;this.logger=new g.qO("dash");0<this.policy.Ml&&(this.nz=g.Hu(this.policy.Ml))};
KIa=function(a,b,c){if(fQ(a,b,c)){if(b.J){if(a.j.isLive){var d=a.j.Ve&&a.j.J?b.j.No(a.j.Ve,!1):b.j.Dn(Infinity);d.Hf=a.Hf}else d=b.j.No(0,!1);a.oa?0===d.Hf&&(d.D=a.oa.V):d.D=a.Y}else if(d=b.u,d.j.Lf()){var e=d.C-a.Fa.getCurrentTime(),f=!d.range||0===d.u&&0===d.Ab?0:d.range.length-(d.Ab+d.u),h=d.j;if(PP(b)&&b.j.Lf()){var l=Math.min(15,.5*gQ(a.Fa,b,!0));l=kIa(b)||e<=l||a.D.N}else l=!1;l&&0===f&&(a.j.isManifestless?h=b.j:(h=d.startTime+hQ,d.u&&(h+=d.duration),RO(b,h),d=b.u,h=d.j));h.Bm()?(f=a.D,c=LO(a.J,
h.info.Ob,c.j.info.Ob,e,0<f.D.length&&0===f.videoIndex&&a.Fa.bv),h=PP(b),c=d.j.Lt(d,c),(e=Dy(c))&&1<c.j.length&&(h||c.u.u||c.j[0].j!==d.j?c=d.j.Lt(d,c.j[0].u):(h=c.j[c.j.length-1],f=h.u/e,!h.Xd&&.4>f&&(c=d.j.Lt(d,e-h.u)))),d=c):(0>d.Ka&&(c=zy(d),c.pr=""+b.B.length,a.Fa.Hg()&&(c.sk="1"),c.snss=d.D,a.Fa.ra("nosq",c)),d=h.Kw(d));if(a.policy.N)for(c=g.r(d.j),e=c.next();!e.done;e=c.next())e.value.type=6}else d.j.Bm()?(c=LO(a.J,b.j.info.Ob,c.j.info.Ob,0),d=d.j.Lt(d,c)):d=d.j.Kw(d);if(a.u&&(c=a.B,e=d.j[0].Ka,
c=0>e&&!isNaN(c.C)?c.C:e,h=iHa(a.B,d.j[0].B,c),f=b===a.audioTrack?1:2,e=a.u.Fk(h,c,d.j[0].j.info.id,f),0>c&&(a.policy.Yw||2===f)&&mHa(a.B,0,0,!0),e)){h={decurl_itag:d.j[0].j.info.Vb(),sg:c,st:h.toFixed(3)};if(a.policy.Gr&&b.isRequestPending(c-1)){a.Fa.ra("sdai",{wt_daistate_on_sg:c-1});return}a.Fa.ra("sdai",h);e&&(d.B=new g.ax(e))}a.policy.gk&&-1!==d.j[0].Ka&&d.j[0].Ka<a.j.Ve&&(d=b.j.No(a.j.Ve,!1));GP(b,iQ(a,d));hHa(a.timing)}};
fQ=function(a,b,c){var d=a.B;if(2===d.u||3===d.u)return jQ(a,"waitad"),!1;if(!ota(b.u?b.u.j.u:b.j.u,a.policy))return jQ(a,"resource"),!1;if(a.Fa.isSuspended&&(!Jva(a.schedule)||a.Fa.fG))return jQ(a,"suspend"),!1;if(a.policy.u&&5<=UC)return g.Fn(a.Fa.nC),jQ(a,"exceedq"),!1;if(a.j.isManifestless){if(0<b.B.length&&b.u&&-1===b.u.Ka)return jQ(a,"pending"),!1;if(b.B.length>=a.policy.Bl)return jQ(a,"toomany"),!1;if(!a.policy.Pl&&0<b.B.length&&!a.policy.D.Mi)return jQ(a,"pipeline"),!1;if(b.J)return b=!a.j.isLive||
!isNaN(a.Hf),jQ(a,b?"":"sqless"),b}if(oIa(b))return jQ(a,"shavable"),!1;if(!b.u){if(!b.j.Lf())return jQ(a,"meta"),!1;RO(b,a.Fa.getCurrentTime())}d=b.B.length+c.B.length;(b.B.length&&b.B[0].Qw()||c.B.length&&c.B[0].Qw()||a.j.isLive)&&--d;if(d+1>=a.policy.El)return jQ(a,"maxpending"),!1;d=b.u;if(!d)return!0;4===d.type&&d.j.Lf()&&(b.u=g.Rb(d.j.Lv(d)),d=b.u);if(!ty(d)&&!d.j.Mo(d))return jQ(a,"notready"),!1;var e=a.j.Mf||a.j.J;if(a.j.isManifestless&&e){e=b.j.index.getLastSegmentNumber();var f=c.j.index.getLastSegmentNumber();
e=Math.min(e,f);if(0<b.j.index.Lw&&0<e&&d.Ka>=e)return b.V=e,c.V=e,jQ(a,"postlive"),!1}if(d.j.info.audio&&4===d.type)return jQ(a,"toomanyaudio"),!1;if(kIa(b)&&!a.policy.bb)return jQ(a,""),!0;if(ty(d))return jQ(a,"eos"),!1;if(KP(b)&&KP(b)+KP(c)>a.policy.Zb)return jQ(a,"maxheap"),!1;e=!b.D&&!c.D;f=d.C;f=!!(c.u&&!ty(c.u)&&c.u.C<f);var h=b===a.videoTrack&&a.policy.N;if(f&&(!a.j.isManifestless||c.u&&c.u.C&&d.C)&&e&&!h)return jQ(a,"othertrack"),!1;if(a.policy.Ta&&!b.D&&c.D)return jQ(a,"seek"),!1;if(vy(d)&&
d.C>LIa(a,b))return jQ(a,"maxtime;"+d.C.toFixed(3)+";"+LIa(a,b)),!1;if((b=b.Yb)&&b.isLocked())return jQ(a,"locked"),!1;jQ(a,"");return!0};
jQ=function(a,b){a.policy.Ze&&a.u&&(a.V=b)};
LIa=function(a,b){var c=a.B;c=c.j?c.j.hf:null;if(a.policy.N&&c)return c.startSecs+c.durationSecs+15;b=gQ(a.Fa,b,!0);!a.Fa.Td.j.isLocked()&&0<a.policy.Da&&(c=((0,g.R)()-a.W)/1E3,b=Math.min(b,a.policy.Da+a.policy.Ke*c));b=a.Fa.getCurrentTime()+b;return a.policy.Xm&&(c=MIa(a)+a.policy.Xm,c<b)?(a.Fa.ra("mrl",{ori:b,mod:c},!0),a.policy.qk&&(a.W=(0,g.R)()),c):b};
MIa=function(a){var b=a.Fa.Ek().filter(function(d){return"ad"===d.namespace});
b=g.r(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.Fa.getCurrentTime())return c.start/1E3;return Infinity};
kQ=function(a,b,c){a:if(b=b.info,b.B)c=null;else{var d=b.j[0];if(b.range)var e=ry(b.range.start,Math.min(4096,Dy(b)));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=ry(0,4096)}e=new Cy([new sy(5,d.j,e,"createProbeRequestInfo"+d.D,d.Ka)],b.C);e.I=c;e.B=b.B;c=e}c&&iQ(a,c)};
iQ=function(a,b){NIa(a.Fa,b);var c=zta(b);c={Wh:a.schedule,Dk:c,NC:YGa(a.J,c),pn:uy(b.j[0]),Ln:fx(b.u.j),iG:a.policy.Y};a.Ei&&(c.Ka=b.j[0].Ka,c.Hf=b.Hf,c.Ei=a.Ei);var d={Xq:Ata(b,a.Fa.getCurrentTime()),fz:a.policy.Jc&&Fy(b)&&b.j[0].j.info.video?yHa(a.D):void 0,Kz:a.policy.N,poToken:a.Fa.LG(),us:a.Fa.JB(),nz:a.nz};return new cQ(a.policy,b,c,a.I,function(e,f){try{a:{a.policy.Ze&&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.C||!(!a.Fa.mediaSource||
a.Fa.isSuspended||3<LP(l,a.Fa.getCurrentTime()))){var m=e.C;if(!e.isComplete()&&m&&!my(e.info.u,a.policy,a.I)){var n=a.policy.cn;if(!a.va&&n&&m>=n)kQ(a,e,!1),a.va=!0;else{var p=a.policy.Th;if(p&&!(m<p)){var q=a.I;var t=ex(ly(e.info.u,a.policy));var u=ky(q,t);u.j||u.timedOut||u.started||kQ(a,e,!0)}}}if(e.isComplete()||e.isDisposed()&&3>f){if(a.policy.Ib){var x=Object.assign(SP(e.timing),{rst:""+e.state,strm:""+e.xhr.Xv(),d:BIa(e.timing)});a.Fa.ra("rqs",x)}e.va&&a.Fa.ra("sbwe3",{},!0)}if(!a.isDisposed()&&
2<=e.state){var y=a.timing,z=e.info.j[0].j,D=!y.D&&z.info.video,H=!y.u&&z.info.audio;3===e.state?D?y.tick("vrr"):H&&y.tick("arr"):4===e.state?D?(y.D=g.iy(e.u),g.nr(),pr(4)):H&&(y.u=g.iy(e.u)):e.Qw()&&D&&(g.nr(),pr(4));if(3===e.state){OP(l,e);Fy(e.info)&&lQ(a,l,h,!0);if(a.u){var G=e.info.Fk();G&&a.u.Lk(e.info.j[0].Ka,h.info.id,G)}a.Fa.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 cQ&&L.C&&IIa(L,
!0)}e.dispose()}else{if(!e.isFailed()&&e.D&&2<=e.state&&3!==e.state){var aa=e.xhr.getResponseHeader("X-Response-Itag");if(aa){var M=xHa(a.D,aa),sa=Dy(e.info);if(sa){var za=sa-M.FG();M.D=!0;e.info.j[0].j.D=!1;var ba=M.yp(za);e.info=ba;if(e.j){var qa=e.j,fb=ba.j;qa.j=fb;var bb=fb[0].range,ub=new kx;for(f=0;f<qa.Fe.length;f++)lx(ub,qa.Fe[f].j);for(f=0;f<qa.Fe.length;f++){qa.Fe[f].info=fb[f];var vb=fb[f].range;qa.Fe[f].j=mx(ub,vb.start-bb.start,vb.length)}}e.D=!1;var tc=a.videoTrack;tc.j!==M&&(tc.j=M);
var kb=a.videoTrack;kb.u&&(kb.u.j=M);a.Fa.DI(M.info.video.quality);var Sb=e.KG();Sb&&M.info.lastModified&&M.info.lastModified!==+Sb&&OP(a.videoTrack,e)}}else e.D=!1}if(4===e.state){if(mQ(a,e),a.B){var Cb=a.B,oe=e.info,tg=a.u;if(0!==Cb.u&&tg&&oe.j[0].isVideo())if(oe.j[0].Ka>Cb.C&&(Cb.C=NaN,Cb.D=NaN),Cb.j&&Cb.j.Ka===oe.j[0].Ka){var $h=Cb.j,lh=$h.hf;tg.Xp(lh)&&"predictStart"!==lh.event?$h.py?UO(Cb,4,"cue"):(Cb.C=oe.j[0].Ka,Cb.D=oe.j[0].B,Cb.ra("sdai",{joinad:Cb.u,sg:Cb.C,st:Cb.D.toFixed(3)}),Cb.V=Date.now(),
UO(Cb,2,"join"),tg.TG($h.hf)):UO(Cb,5,"nogab")}else 1===Cb.u&&UO(Cb,5,"noad")}}else if(a.policy.ma&&e.Ev()&&!e.isComplete()&&!mQ(a,e)&&!e.isFailed())break a;e.isFailed()&&a.Pu(e);a.Fa.uj();if(a.policy.Nc&&e.isComplete()&&e.canRetry()&&my(e.info.u,a.policy,a.I)){var ij=a.I;var tf=ex(e.info.u.j);var oc=ky(ij,tf);oc.B+a.policy.Nc*lta(oc,a.policy,!0)>(0,g.R)()||kQ(a,e,!1)}}}}}}catch(Ck){M=a.ma?1:0,a.ma=!0,e=gC(M),M=hC(Ck,M),a.Fa.handleError(M.errorCode,M.details,M.severity),e||a.Fa.Si()}},d)};
mQ=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.N=0;d.J&&(b.isDisposed(),b.isComplete()||b.Ev(),d.J=!1);b.zG()&&a.Fa.WA.Uh(1,b.zG());var e=b.DL(),f=b.NN(),h=a.j,l;for(l in h.j){var m=h.j[l].index;m.Tl&&(e&&(m.Lw=Math.max(m.Lw,e)),f&&(m.u=Math.max(m.u||0,f)))}}if(b.info.pn()&&!Ey(b.info))for(var n=g.r(b.LE()),p=n.next();!p.done;p=n.next()){var q=p.value;if(1===q.info.type)if(c.info.video){var t=a.timing;t.W||(t.W=(0,g.R)(),MI("vis_r",t.W,
t.j))}else{var u=a.timing;u.J||(u.J=(0,g.R)(),MI("ais_r",u.J,u.j))}uP(d.C,q)}HP(d,a.Fa.getCurrentTime());return!!d.jg()}catch(x){return b=b.Eu(),b.origin="hrhs",OIa(a.Fa,x,b),!1}};
PIa=function(a){var b=a.videoTrack.j.index;a.Ei=new pIa({xn:a.policy.xn,Mi:a.policy.D.Mi,Nh:b.Nh,getLastSegmentNumber:function(){return b.getLastSegmentNumber()},
yr:function(){return b.yr()}})};
lQ=function(a,b,c,d){if(!(c.Lf()||c.ev()||c.D)&&ota(c.u,a.policy)&&"f"!==c.info.j){if(d){d=a.J;var e=c.info,f=ZGa(d,e.video?d.policy.yq:d.policy.Wj,e.Ob);d=d.policy.zi&&e.video?Math.max(f,d.policy.zi):f}else d=0;d=c.yp(d);a=iQ(a,d);Ey(d)&&GP(b,a);c.D=!0}};
QIa=function(a,b,c,d,e){this.Fa=a;this.policy=b;this.schedule=c;this.N=d;this.W=e;this.Y=NaN;this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1;this.V=NaN};
RIa=function(a,b,c,d,e){return b.qb&&b.va&&3===wsa(b)?new QIa(a,b,c,d,e):null};
SIa=function(a,b){if(a.policy.Es){var c=b.info.Ob,d=PA(a.schedule);b=b.index.Nh;c=Math.max(1,d/c);a.V=Math.round(1E3*Math.max(((c-1)*b+a.policy.oa)/c,b-a.policy.Kd))}};
VIa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.I,f=e>=a.policy.oi,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e<a.policy.Us&&(h=!0);a.I=c}c=d>=a.policy.Kd&&!a.B;if(!f&&!c&&TIa(a,b))return NaN;c&&(a.B=!0);a:{d=h;c=Date.now()/1E3-(a.N.Dh()||0)-a.J.u-a.policy.oa;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){nQ(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Ad;d<c&&(c=d)}else a.B&&(d=c+a.policy.oa-a.Y+a.policy.Ys,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.Ad))),c=d);f=c=Math.max(c,
f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&TIa(a,b))return UIa(a,b),NaN;if(a.j<=a.u.startTime)return nQ(a,NaN,"y",b),a.clear(),NaN;if(!a.W(a.j,!1))return!UIa(a,b)&&h&&(nQ(a,NaN,"t",b),a.clear()),NaN;h=a.j;nQ(a,h,"s",b);a.clear();return h};
UIa=function(a,b){return a.W(a.j,!0)?!1:(nQ(a,NaN,"ns",b),a.clear(),!0)};
TIa=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.B?a.policy.Ad:a.policy.Ts)};
nQ=function(a,b,c,d){var e=a.C.Eu();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.j).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.startTimeSecs).toFixed(0);e.ssr_n=Date.now().toFixed(0);e.ssr_f=(1E3*a.J.u).toFixed(0);e.ssr_fa=a.B?"1":"0";e.ssr_o=(1E3*a.N.Dh()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.u.j.index;Ny(b,a.u.Ka,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.u.Ka)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.u.Ka)).toFixed(0));a.Fa.ra("ssr",e)};
WIa=function(){var a={};if(window.performance){var b=window.performance.memory;b&&(a.jsTotal=b.totalJSHeapSize,a.jsUsed=b.usedJSHeapSize,a.msUsed=b.usedMediaSourceMemorySize)}var c;if(null==(c=window.h5vcc)?0:c.cVal)a.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),a.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used");return a};
g.oQ=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.I.call(this);var p=this;this.qa=a;this.schedule=b;this.policy=c;this.j=d;this.V=m;this.Sa=n;this.timing=new gHa(this.Sa);this.N=new JO(this.schedule,this.policy);this.mediaSource=null;this.W=new g.K(this.uj,0,this);this.nC=new g.K(this.uj,1E3,this);this.Pa=new g.K(this.uj,void 0,this);this.Ia=new g.K(this.uj,1E4,this);this.D=this.currentTime=NaN;this.Y=0;this.bv=this.fG=this.isSuspended=!1;this.ma="";this.WA=new JA(5);this.Ta={};this.timestampOffset=
NaN;this.Ga=!1;this.Da=0;this.J=null;this.oa=NaN;this.logger=new g.qO("dash");a=m&&Array.from(m.Ud.keys());m&&(this.oa=Date.now());this.Td=new nHa(this,this.N,c,this.j,e,a);c=sHa(this.Td,f,h&&h.id);this.audioTrack=new DP(this,this.policy,c.audio);this.videoTrack=new DP(this,this.policy,c.video);this.videoTrack.C.oa=this.audioTrack.C;this.va={updateend:this.mU,error:this.jY};g.J(this,this.W);g.J(this,this.nC);g.J(this,this.Pa);g.J(this,this.Ia);this.C=RIa(this,this.policy,this.schedule,this.WA,function(q,
t){return XIa(p,q,t)});
this.B=new SO(this,this.j,this.policy,this.videoTrack,this.audioTrack,l);this.I=new NO(this,this.j,this.videoTrack,this.audioTrack,this.policy);this.u=new eQ(this,this.policy,this.videoTrack,this.audioTrack,this.Ta,this.B,this.timing,this.N,this.schedule,this.j,this.Td,this.C);g.J(this,this.u)};
$Ia=function(a,b){var c=b.j,d=a.j.isLive;if(a.j.isLive){var e=Date.now();if(!isNaN(a.oa)&&e-a.oa>1E3*a.policy.Tw){a.ra("ombttl",{});return}if(a.j.Ve&&a.j.J)return}e=a.Fh();if(a.V&&CP(a.V,oy(c,d,e,a.policy.kb))){d=oy(c,d,e,a.policy.kb);e=YIa(a.V,d);if(a.j.isLive&&a.policy.gt)var f=c.Dn(Infinity);else{if(!c.indexRange||!c.initRange)return;var h=c.indexRange.length+c.initRange.length,l=ZIa(a.V,d);if(!l){a.ra("ombooo",{});return}h=l-h;if(0<e.length){var m;if((f=null==(m=c.yp(0))?void 0:Bta(m,e,h))&&!Cta(f,
a.currentTime)){a.ra("ostmf",{ct:a.currentTime});return}}f&&0!==e.length||(f=c.yp(h),a.ra("ombcf",{}))}f&&(m=function(n){try{n.isFailed()?(a.handleError(n.lastError,n.Eu()),OP(b,n),Fy(n.info)&&lQ(a.u,b,c,!0),a.uj()):mQ(a.u,n)&&a.uj()}catch(p){n=hC(p),a.handleError(n.errorCode,n.details,n.severity),a.Si()}},c.D=!0,Ey(f)&&(GP(b,new OO(a.policy,d,f,a.V,m)),hHa(a.timing)))}else a.ra("ombfmt",{})};
pQ=function(a,b){b=b||a.videoTrack&&a.videoTrack.u&&a.videoTrack.u.startTime||a.currentTime;var c=a.videoTrack,d=a.Td;b=d.nextVideo&&d.nextVideo.index.getSegmentNumberForTime(b)||0;d.ma!==b&&(d.va={},d.ma=b,WO(d,d.j));b=!d.j.isLocked()&&-1<d.V&&8E3>(0,g.R)()-d.V;var e=d.nextVideo&&3*ZO(d,d.nextVideo.info)<MO(d.oa);if(!b||e)XO(d),YO(d),d.W=d.W||d.nextVideo!==d.u;d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.ma=-1);d=d.nextVideo;c.j!==d&&(c.j=d);c=a.audioTrack;a=a.Td.B;c.j!==a&&(c.j=a)};
qQ=function(a,b){a.fG=b;a.policy.N||(a.isSuspended=!0)};
bJa=function(a){a.policy.md=!1;try{aJa(a)}catch(b){g.S(b)}};
cJa=function(a){a.mediaSource&&a.mediaSource.j&&a.mediaSource.u&&(ku(a.mediaSource.j,a.va,a),ku(a.mediaSource.u,a.va,a));EP(a.audioTrack,null);EP(a.videoTrack,null);a.mediaSource=null};
rQ=function(a,b){b=void 0===b?!1:b;cJa(a);b?a.policy.N=!0:a.policy.ze?qQ(a,a.Ga):qQ(a,!1);a.Si()};
sQ=function(a){a.mediaSource&&a.mediaSource.Kf()&&(rQ(a),a.policy.Mq&&a.handleError("fmt.unplayable",{unexpected:1},1))};
dJa=function(a,b){b&&a.qa.DC(b);a.policy.vk&&a.Td.Sa&&(b=uHa(a.Td,"a"),tQ(a.qa,b.reason,b.audio.info))};
NIa=function(a,b){if(vy(b.j[b.j.length-1])){a:{var c=a.Td;b=b.j[0].j;if(b.info.video){if(c.u!==b){c.u=b;c=rHa(c);break a}}else c.Sa=c.J!==b,c.J=b;c=null}dJa(a,c)}};
OIa=function(a,b,c){if(b instanceof Error&&(c.msg||(c.msg=""+b.message),g.Bu(b),"WARNING"===b.level)){uQ(a.qa,c);return}a.handleError("fmt.unplayable",c,1)};
aJa=function(a){if(a.mediaSource){var b=a.mediaSource.j,c=a.mediaSource.u,d=eJa(a);if(d){if(a.policy.xt){if(!b.vp()){var e=a.audioTrack.jg();e&&(vQ(a,a.audioTrack,b,e.info),wQ(a,b,e))}!c.vp()&&(b=a.videoTrack.jg())&&(vQ(a,a.videoTrack,c,b.info),wQ(a,c,b))}a.Y||(a.Y=(0,g.R)(),a.policy.Y&&a.ra("apdps",{r:d}))}else{if(a.Y){d=(0,g.R)()-a.Y;e=LP(a.audioTrack,a.currentTime);var f=LP(a.videoTrack,a.currentTime);a.policy.Y&&a.ra("apdpe",{dur:d.toFixed(),abuf:(1E3*e).toFixed(),vbuf:(1E3*f).toFixed()});a.Y=
0}if(a.C){d=a.C;e=a.audioTrack;f=xz(a.mediaSource.u.ag());if(d.C)d=VIa(d,f);else{if(f=e.jg()){var h=f.u;h&&h.D&&h.u&&(e=e.B.length?e.B[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.Hf&&(d.C=e,d.J=h,d.u=f.info,d.startTimeSecs=Date.now()/1E3,d.I=d.startTimeSecs,d.D=d.u.startTime)}d=NaN}d&&a.qa.seekTo(d,{Hr:!0,Ee:"pollSubsegmentReadahead",Tq:!0})}d=!1;fJa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.C||(e.C=(0,g.R)(),MI("vda",e.C,e.j),e.B&&(g.nr(),pr(4))));if(a.mediaSource&&!a.mediaSource.Kf()&&(fJa(a,a.audioTrack,
b)&&(d=a.timing,d.B||(d.B=(0,g.R)(),MI("ada",d.B,d.j),d.C&&(g.nr(),pr(4))),d=!0),!a.isDisposed()&&a.mediaSource)){!a.policy.md&&JP(a.videoTrack)&&JP(a.audioTrack)&&Ez(a.mediaSource)&&!a.mediaSource.Ai()&&(e=FP(a.audioTrack).j,e===a.j.j[e.info.id]&&(e=a.mediaSource,Ez(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Cf.webkitSourceEndOfStream(e.Cf.EOS_NO_ERROR)),e=a.schedule,Mua(QA(e)),e.D=MA(),e.N=!0));e=a.policy.Rt;f=a.policy.Zw;d||!(0<e||f)||!Ez(a.mediaSource)||JP(a.videoTrack)||JP(a.audioTrack)||
(b.ID(a.currentTime,f,e),c.ID(a.currentTime,f,e));if(c=d)c=a.mediaSource,c=!(c.j?c.j.supports(0):Gz());c&&g.Fn(a.W)}}}};
eJa=function(a){if(oIa(a.videoTrack))return"ssf";var b=a.B;if(1===b.u||2===b.u||3===b.u)return"cpm";if(a.policy.Wg||jIa(a.videoTrack)||jIa(a.audioTrack))return"";if(a.I.Hg()){b=a.N;var c=a.videoTrack,d=a.audioTrack;if(c.B.length||d.B.length){var e=0,f=wP(c.C).concat(wP(d.C));f=g.r(f);for(var h=f.next();!h.done;h=f.next())e+=h.value.u;c=c.j.info.Ob+d.j.info.Ob;e/=c;b=e<b.policy.Vg?!1:10<e?!0:10>c*(10-e)/MO(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0<b.B.length&&1===b.C.u.length&&MHa(b.C).info.I<
b.Y)return"seek"}if(!a.bv||!a.policy.Hc||10>a.currentTime||360<a.videoTrack.j.info.video.j)return"";b=lIa(a.videoTrack,a.currentTime,a.policy.Hc)||lIa(a.audioTrack,a.currentTime,a.policy.Hc);return(0<a.videoTrack.B.length||0<a.audioTrack.B.length||fQ(a.u,a.videoTrack,a.audioTrack)||fQ(a.u,a.audioTrack,a.videoTrack))&&b?"nord":""};
fJa=function(a,b,c){if(c.Ai())return!0;if(!c.RA())return!1;var d=b.jg(),e;if(!(e=!d||6===d.info.type)&&(e=a.B)){e=a.B;var f;if(f=0!==e.u&&b===e.va)e=NP(e.I),f=d.info.Ka>(e?e.Ka:-1);e=!!f}if(e)return!1;vQ(a,b,c,d.info);if(a.j.u&&0===d.info.Ab&&(g.Uy(d.info.j.info)||a.policy.zq)){if(null==c.vp()){e=FP(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;h<e.length;h++)if(!g.nc(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.vp(),d.info.j.ev()&&Yta(d),f=d.info.j.j,
e=e!==f&&!g.nc(e,f);e&&(f=FP(b),a.ra("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Ka}));a.policy.Yc&&!e&&(g.Uy(d.info.j.info)?(Sx(Ty(d),1836019574),Sx(Ty(d),1718909296)):(e=new Ux(Ty(d)),fta(e),Yx(e,524531317,!0),d.j=d.j.split(e.start+e.j).Rs),d.D=!1)}a.policy.di?d.B=!1:a.policy.Xw&&!c.vp()&&(e=d.info.j.j,1===d.j.j.length||0!==d.info.Ab||d.D||d.B||3!==d.info.type||!e||(f=new kx([e]),lx(f,d.j),e=px(f).subarray(e.length),d.j=new kx([e]),d.B=!0));e=a.C&&!!a.C.C&&b.j.info.audio;
f=a.j.isManifestless||d.B||d.D;if(!(a.j.u&&0!==d.info.Ab||f&&!e)&&wQ(a,c,d))return!0;if(e)return!1;e=a.currentTime+gQ(a,b,!1);(e=d.info.B>e)||(a.policy.Kb&&(!d.info.Ab||d.info.Xd||10>d.info.B)&&a.ra("sba",c.Nb({as:Ay(d.info)})),e=d.D||d.B?d.info.j.j:null,f=px(d.j),d.B&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),c=gJa(a,c,f,d.info,e),"s"===c?(a.Da=0,a=!0):("i"===c||"x"===c?hJa(a,"checked",c,d.info):("q"===c&&(d.info.isVideo()?(e=a.policy,e.J=Math.floor(.8*e.J),e.Ga=Math.floor(.8*e.Ga),e.I=
Math.floor(.8*e.I)):(e=a.policy,e.W=Math.floor(.8*e.W),e.qc=Math.floor(.8*e.qc),e.I=Math.floor(.8*e.I)),$O(a.Td,d.info.j)),uQ(a.qa,{reattachOnAppend:c})),a=!1),e=!a);if(e)return!1;b.gj(d);return!0};
hJa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",d.j.info.video&&!aP(a.Td)&&$O(a.Td,d.j)):"i"===c&&(15>a.Da?(a.Da++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=zy(d);var h;d.mrs=null==(h=a.mediaSource)?void 0:Fz(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
VHa=function(a,b,c,d){var e=a.j,f=!1,h=-1;for(n in e.j){var l=iz(e.j[n].info.mimeType)||e.j[n].info.isVideo();if(d===l)if(f=e.j[n].index,Ny(f,b.Ka)){l=b;var m=f.gm(l.Ka);m&&m.startTime!==l.startTime?(f.segments=[],f.BE(l),f=!0):f=!1;f&&(h=b.Ka)}else f.BE(b),f=!0}if(0<=h){var n={};e.X("clienttemp","resetMflIndex",(n[d?"v":"a"]=h,n),!1)}fHa(a.I,b,d,f);a.B.uI(b,c,d)};
vQ=function(a,b,c,d){b=FP(b);!b||b.Xd||wy(b,d)||c.abort();!c.Rx()||Bz()?c.iK(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.Rx()&&a.ra("ctu",{ct:Bz(),prev_c:c.Rx(),curr_c:d.j.info.containerType});b=d.j.C;a.policy.wl&&b&&(d=0+b.duration,b=-b.j,0===c.zB()&&d===c.wG()||c.sJ(0,d),b!==c.ud()&&(c.sD(b),xP&&XHa(a.audioTrack.C,c.MG())))};
wQ=function(a,b,c){c.info.j.Lf();var d=c.info.j.j;if(!d||!b.RA()||b.vp()===d)return!1;var e=d,f=b.CB();if(a.policy.di&&f&&b.isView()&&g.Uy(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=$sa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.ra("fenc",{})}f=null;(h=c.info.j.yp(0))&&(f=h.j[0]);a.policy.Kb&&a.ra("sbi",b.Nb({as:Ay(c.info)}));a.policy.Gj&&b.abort();d=gJa(a,b,e,f,d);if("s"!==d)return hJa(a,"sepInit",d,c.info),!0;c.info.isVideo()?(a=a.timing,a.V||(a.V=
(0,g.R)(),MI("vis_a",a.V,a.j))):(a=a.timing,a.I||(a.I=(0,g.R)(),MI("ais_a",a.I,a.j)));return b.Ai()};
gJa=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:tz(b.ag()).replace(/,/g,"_"),message:g.Dc(f.message),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},WIa()),a.handleError("player.exception",b),"q";g.S(f)}return"u"}return a.mediaSource.Kf()?"m":"s"};
oP=function(a,b){a.qa.EC(b)};
gQ=function(a,b,c){if(a.isSuspended)return 1;var d=b.j.info.audio?a.policy.W:a.policy.J;!a.policy.bb&&a.Td.j.isLocked()&&(d=Math.max(d,b.j.info.audio?a.policy.qc:a.policy.Ga));c&&(d+=a.policy.Zb);c=a.Td.j.isLocked()?b.u?b.u.j.info.Ob:b.j.info.Ob:b.Ob*a.policy.Zj;d/=c;0<a.policy.Gl&&a.mediaSource&&Ez(a.mediaSource)&&(b=b.j.info.video?a.mediaSource.u:a.mediaSource.j)&&!b.Ai()&&(b=b.ag(),c=uz(b,a.currentTime),0<=c&&(b=a.currentTime-b.start(c),d+=Math.max(0,Math.min(b-a.policy.Gl,a.policy.Sw))));0<a.policy.I&&
(d=Math.min(d,a.policy.I));return d};
iJa=function(a,b){oN(b,"cms",function(c){a.policy.Y&&a.ra("pathprobe",c)},function(c){a.qa.handleError(c)})};
jJa=function(a,b){a.J=b;a.B&&(a.B.B=b);a.J.xJ(a.videoTrack.j.info.Ue());a.u.u=a.J};
kJa=function(a,b){if(a.mediaSource&&a.mediaSource.u){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;var c=a.B,d=b;if(0!==c.u&&c.B){var e=c.Nu(d);e!==c.W&&(c.B.AI(c.W,e,c.ma,d),c.W=e);c.ma=d}a.currentTime!==b&&a.resume();a.I.Hg()&&a.mediaSource&&!a.mediaSource.Kf()&&(c=a.currentTime<=b&&b<a.currentTime+10,d=vz(a.mediaSource.u.ag(),a.currentTime+hQ),c&&d&&(a.I.D=!1));a.I.Hg()||(a.currentTime=b);g.Fn(a.nC)}};
lJa=function(a,b){var c=IP(a.videoTrack).find(function(d){return d.startTime>=b&&XIa(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
XIa=function(a,b,c){if(!(a.videoTrack.j.Lf()&&a.audioTrack.j.Lf()&&a.mediaSource&&a.mediaSource.u&&a.mediaSource.j))return!1;if(c&&a.j.isManifestless&&(-1===a.videoTrack.I||-1===a.audioTrack.I))return!0;var d=QO(a.videoTrack,b,c);if(isNaN(d))return!1;a=QO(a.audioTrack,a.policy.va?b:d,c);return isNaN(a)?!1:!0};
mJa=function(a){a.Si();a.C&&SIa(a.C,a.videoTrack.j);g.Fn(a.W);a=a.I;var b=Math.max(a.videoTrack.C.B||0,a.audioTrack.C.B||0);iIa(a.videoTrack);iIa(a.audioTrack);Iua(a.j);a.j.isManifestless&&(a.B=!0);a.Fa.currentTime=b;a.D=!0;a.C=new tF;return a.C};
xQ=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.B.J=a.timestampOffset,a.qa.CI(a.timestampOffset),a.j.isManifestless&&(a.j.timestampOffset=a.timestampOffset))};
g.yQ=function(a){this.jd=a};
zQ=function(){g.iu.apply(this,arguments)};
AQ=function(a,b,c,d){zQ.call(this);var e=this;this.B=-1;this.j={};this.C=new g.K(this.D,0,this);g.J(this,this.C);this.u=new g.K(function(){e.isDisposed()||(e.C.start(Math.random()*c),e.u.start(b))},a,this);
g.J(this,this.u);d.subscribe("fairplay_next_need_key_info",this.I,this)};
nJa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
oJa=function(a){var b=a.interval,c=a.Mv;this.url=a.url;this.interval=b;this.Mv=c};
pJa=function(a,b){this.statusCode=a;this.message=b;this.j=this.heartbeatParams=this.errorMessage=null;this.u={};this.nextFairplayKeyId=null};
qJa=function(a){var b=sx(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(-1===c)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null==e)return null;e=e[1];isFinite(e)&&(e=String(e));e="string"===typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=Jx(b.slice(d+2));if(null==b)return null;a=new pJa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.aza(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new oJa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Mv:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.j=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.r(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),2===e.length&&(c[e[1]]=e[0]);else c={};a.u=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a};
rJa=function(a,b,c){c=void 0===c?"":c;g.I.call(this);this.message=a;this.requestNumber=b;this.timer=c;this.onError=this.onSuccess=null;this.j=new g.vh(5E3,2E4,.2)};
sJa=function(a,b,c){a.onSuccess=b;a.onError=c};
uJa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.isDisposed())if(0!==e.status&&e.response)if(mw("drm_net_r",void 0,a.timer),e=new Uint8Array(e.response),e=qJa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else tJa(a,e)},
onError:function(e){tJa(a,e)}};
c&&(b=bea(b,"access_token",c));g.pq(b,d)};
tJa=function(a,b){if(!a.isDisposed())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
wJa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){mw("drm_net_r",void 0,a.timer);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Hc(f.license)}catch(x){g.S(x)}if(0!==h||l){l=new pJa(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.r(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var t=vJa[q.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");q.isHdr&&(t+="HDR");
h[t]||(m.push(t),h[t]=!0);var u=null;try{u=Hc(q.keyId)}catch(x){g.S(x)}u&&(n[g.Cc(u,4)]=t)}}l.j=m;l.u=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}},
onError:function(f){if(!a.isDisposed())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")},
onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.BM="Bearer "+d);g.ct(c,"player/get_drm_license",b,e)};
CQ=function(a,b,c,d){g.iu.call(this);this.videoData=a;this.U=b;this.N=c;this.sessionId=d;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.J=this.W=!1;this.B=null;this.ma=[];this.D=[];this.Y=!1;this.j={};this.oa=NaN;this.status="";this.I=NaN;this.u=a.V;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.U.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Pa&&(a.vvt=this.videoData.Pa,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.U.authUser&&(a.authuser=this.U.authUser);this.U.pageId&&(a.pageid=this.U.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.tb()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.C=a;this.C.session_id=d;this.V=!0;"widevine"===this.u.flavor&&(this.C.hdr="1");"playready"===this.u.flavor&&(b=Number(g.Xz(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.C.mfpe=""+b),this.V=!1);this.baseUrl=g.dA(this.u)?nJa(c.initData).replace("skd://",
"https://"):this.u.C;this.fairplayKeyId=Oh(this.baseUrl,"ek")||"";if(b=Oh(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.va=this.videoData.K("html5_use_drm_retry");this.ma=c.Ue?[g.Cc(c.initData,4)]:c.u;BQ(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
AJa=function(a,b){BQ(a,{createkeysession:1});a.status="gr";mw("drm_gk_s",void 0,a.videoData.Da);a.url=xJa(a);try{a.B=b.createSession(a.N,function(c){BQ(a,{m:c})})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.X("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.B&&(yJa(a.B,function(c,d){zJa(a,c,d)},function(c,d,e){if(!a.isDisposed()){d=void 0;
var f=1;g.dA(a.u)&&g.fB(a.U)&&a.U.K("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=a.U.K("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(BQ(a,{onkyadd:1}),a.J||(a.X("sessionready"),a.J=!0))},function(c){a.aq(c)}),g.J(a,a.B))};
xJa=function(a){var b=a.baseUrl;yra(b)||a.error("drm.net",2,"t.x");if(!Oh(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.U.experiments.experiments[e]});
0<c.length&&(a.C.fexp=c.join())}c=g.r(Object.keys(a.C));for(var d=c.next();!d.done;d=c.next())d=d.value,b=bea(b,d,a.C[d]);return b};
zJa=function(a,b,c){if(!a.isDisposed())if(b){BQ(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":BJa(a,b);return;default:a.X("ctmp","message_type",{t:c,l:b.byteLength})}a.W||(mw("drm_gk_f",void 0,a.videoData.Da),a.W=!0,a.X("newsession",a));if(aA(a.u)&&(b=CJa(b),!b))return;g.dA(a.u)&&!a.videoData.useInnertubeDrmService()&&(b=rx(g.Cc(b)));b=new rJa(b,++a.requestNumber,a.videoData.Da);sJa(b,function(d){DJa(a,
d)},function(d,e,f){if(!a.isDisposed()){var h=0,l;
(l=3<=d.j.u)||(l=a.va&&36E4<(0,g.R)()-a.oa);l&&(h=1,e="drm.net.retryexhausted");BQ(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(gC(h),d)&&EJa(a,d)}});
g.J(a,b);FJa(a,b)}else a.error("drm.unavailable",1,"km.empty")};
BJa=function(a,b){BQ(a,{sdpvrq:1});a.I=Date.now();if("widevine"!==a.u.flavor)a.error("drm.provision",1,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.U.deviceParams);c=g.Mh("https://web.archive.org/web/20220603021303/https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);b={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:sx(b)}),responseType:"arraybuffer"};
g.sq(c,b,3,500).then(Wp(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=sx(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.X("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.I)/1E3,a.I=NaN,a.X("ctmp","provs",{et:f.toFixed(3)}),a.B&&a.B.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",1,d))}}),Wp(function(d){a.isDisposed()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
DQ=function(a){var b;if(b=a.V&&null!=a.B)a=a.B,b=!(!a.j||!a.j.keyStatuses);return b};
FJa=function(a,b){a.status="km";mw("drm_net_s",void 0,a.videoData.Da);if(a.videoData.useInnertubeDrmService()){var c=new g.bt(a.U.Xh),d={context:g.hr(c.config_||g.gr())};d.drmSystem=GJa[a.u.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Cc(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!(null==(e=a.videoData.B)?0:null==(f=e.video)?
0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.U.deviceParams)d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver;d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.Pa&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Pa,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Kb&&(d.context.user.kidsParent={oauthToken:a.videoData.Kb});g.dA(a.u)&&(d.fairplayKeyId=g.Cc(kaa(a.fairplayKeyId)));g.cC(a.U,g.WD(a.videoData)).then(function(l){wJa(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.cC(a.U,g.WD(a.videoData)).then(function(l){uJa(b,a.url,l);
a.status="rs"})};
DJa=function(a,b){if(!a.isDisposed())if(BQ(a,{onlcsrsp:1}),a.status="rr",0!==b.statusCode)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{mw("drm_kr_s",void 0,a.videoData.Da);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.K("outertube_streaming_data_always_use_staging_license_service")){var c=a.u.C.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.X("newlicense",b.heartbeatParams);b.j&&(a.D=b.j,a.U.K("html5_heartbeat_wait_for_drm_killswitch")||
(a.videoData.useInnertubeDrmService()&&!a.videoData.zH&&a.X("newlicense",new oJa({})),a.videoData.zH=!0),a.Y=pl(a.D,function(d){return d.includes("HDR")}));
b.u&&(a.j=Ke(b.u,function(d){return{type:d,status:"unknown"}}));
bA(a.u)&&!a.videoData.useInnertubeDrmService()?b.message=Hc(sx(b.message)):cA(a.u)&&a.videoData.useInnertubeDrmService()&&(b.message=rx(g.Cc(b.message)));a.B&&(BQ(a,{updtks:1}),a.status="ku",a.B.update(b.message).then(function(){mw("drm_kr_f",void 0,a.videoData.Da);DQ(a)||(BQ(a,{ksApiUnsup:1}),a.X("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Dc(d.message);
a.error("drm.keyerror",1,d)}));
a.J&&(a.oa=(0,g.R)());g.dA(a.u)&&a.X("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId)}};
EJa=function(a,b){var c=b.j.getValue();c=new g.K(function(){FJa(a,b)},c);
g.J(a,c);c.start();g.wh(b.j);BQ(a,{rtyrq:1})};
HJa=function(a,b){for(var c=[],d=g.r(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.j[e].type+"_"+a.j[e].status);return c.join(b)};
EQ=function(a){var b={};b[a.status]=DQ(a)?HJa(a,"."):a.D.join(".");return b};
IJa=function(a,b){switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:return""}b&&(a+="HDR");return a};
FQ=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
BQ=function(a,b){var c=void 0===c?!1:c;eC(b);(c||dC(a.U))&&a.X("ctmp","drmlog",b)};
JJa=function(a){var b=a[0];a[0]=a[3];a[3]=b;b=a[1];a[1]=a[2];a[2]=b;b=a[4];a[4]=a[5];a[5]=b;b=a[6];a[6]=a[7];a[7]=b};
CJa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=Pea(new DOMParser,g.Tf(g.yf("Uses only text content."),b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(KJa(Fc(a.childNodes[0].nodeValue)).buffer):null:null};
LJa=function(a,b,c,d){if(a=rx(g.Cc(a)))a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=cea(c,d),g.sq(c,a,3,500).then(function(e){e=new Uint8Array(e.xhr.response);(e=qJa(e))&&e.message&&b.update(e.message)})};
GQ=function(a,b,c,d,e){g.I.call(this);this.element=a;this.N=b;this.initData=c;this.j=d;this.u=e;this.sessionId="";this.J=this.I=this.B=this.D=null;this.C=new g.kz(this);g.J(this,this.C);MJa(this)};
MJa=function(a){a.j?(a.C.P(a.j,"message",a.nU),a.C.P(a.j,"keystatuseschange",a.aq),a.j.closed&&a.j.closed.then(Wp(function(){a.isDisposed()||Aq("xboxone")&&a.B&&a.B("closed")}),null)):a.u&&(gu(a.C,a.u,["mskeymessage",
"webkitkeymessage"],a.bQ),gu(a.C,a.u,["mskeyerror","webkitkeyerror"],a.aQ),gu(a.C,a.u,["mskeyadded","webkitkeyadded"],a.ZP))};
yJa=function(a,b,c,d,e){a.D=b;a.B=c;a.I=d;a.J=e};
NJa=function(a,b,c){g.Vp(c);a.B&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.B(b))};
HQ=function(a,b){g.I.call(this);this.element=a;this.j=b;this.I={};this.C=null;this.D=new g.kz(this);this.B=this.u=null;g.J(this,this.D)};
PJa=function(a,b){b=OJa(b,a.j.u);a=a.B.createSession("video/mp4",b);return new GQ(null,null,null,null,a)};
QJa=function(a,b){for(var c=new Uint8Array(270),d=0;135>d;d++)c[2*d]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);a=a.B.createSession("video/mp4",b,c);return new GQ(null,null,null,null,a)};
IQ=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};
OJa=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<c.length;e+=2)d+=String.fromCharCode(parseInt(c.substr(e,2),16));c=d;d=new ArrayBuffer(2*c.length);e=new Uint16Array(d);for(var f=0;f<c.length;f++)e[f]=c.charCodeAt(f);c=new Uint8Array(d);d=0;f=new ArrayBuffer(a.byteLength+4+c.byteLength+4+b.byteLength);e=new Uint8Array(f);f=new DataView(f);e.set(a);d+=a.byteLength;f.setUint32(d,
c.length,!0);d+=4;e.set(c,d);d+=c.length;f.setUint32(d,b.byteLength,!0);e.set(b,d+4);return e};
JQ=function(a,b){g.I.call(this);this.j=g.zg("video");this.u=null;this.D=[];this.C=new g.kz(this);this.B=new Yz("fairplay","com.youtube.fairplay","",b);this.B.u=a;g.J(this,this.C);this.init()};
KQ=function(a,b,c,d){zQ.call(this);var e=this;this.D=a;this.C=b;this.B=c;this.j=[];this.u=new g.K(function(){e.X("log_qoe",{wvagt:"timer",reqlen:e.j?e.j.length:-1});if(e.j){if(0<e.j.length){var f=e.j.shift();RJa(e,f.info)}0<e.j.length&&(f=e.j[0].time-(0,g.R)(),e.u.start(Math.max(0,f)))}},0);
g.J(this,this.u);d.subscribe("widevine_set_need_key_info",this.I,this)};
RJa=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.B.size)c=!0;else{for(var d=g.r(a.B.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.X("log_qoe",{wvagt:"reqnews",canskip:c});c||a.X("rotated_need_key_info_ready",b)};
LQ=function(){this.keys=[];this.values=[]};
MQ=function(a){a.keys=[];a.values=[]};
NQ=function(a,b,c){g.iu.call(this);this.element=a;this.videoData=b;this.U=c;this.j=this.videoData.V;this.drmSessionId=this.videoData.drmSessionId||g.Pqa();this.u=new Map;this.I=new LQ;this.J=new LQ;this.B=[];this.Da=2;this.Y=new g.kz(this);this.Ga=this.ma=!1;this.heartbeatParams=null;this.oa=this.V=!1;this.D=null;this.va=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||Zz()||fA(c.experiments);c=this.videoData.Th;this.N="fairplay"===this.j.flavor||c?lD:SJa;this.C=new HQ(this.element,this.j);g.J(this,
this.C);$z(this.j)&&(this.W=new HQ(this.element,this.j),g.J(this,this.W));g.J(this,this.Y);c=this.element;this.j.keySystemAccess?this.Y.P(c,"encrypted",this.rU):gu(this.Y,c,$z(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.kZ);TJa(this);a:switch(c=this.j,a=this.U.experiments,b=this.u,c.flavor){case "fairplay":19.2999<nna()?(a=c.J,c=c.I,c>=a&&(c=.75*a),b=.5*(a-c),c=new AQ(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new KQ(a.fb("disable_license_delay"),!a.fb("h5_widevine_keyrotationagent_optimization_killswitch"),
b,this);break a;default:c=null}if(this.D=c)g.J(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.yM,this),this.D.subscribe("log_qoe",this.Rh,this);fA(this.U.experiments);this.Rh({cks:this.j.cg()});c=this.j;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.D&&(this.Ia=new JQ(this.videoData.Kd,this.U.experiments),g.J(this,this.Ia))};
TJa=function(a){var b=a.C.attach();b?b.then(Wp(function(){UJa(a)}),Wp(function(c){if(!a.isDisposed()){g.Vp(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.X("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.Rh({mdkrdy:1}),a.V=!0);
a.W&&(b=a.W.attach())};
WJa=function(a,b,c){a.Ga=!0;c=new jP(b,c);a.U.K("html5_eme_loader_sync")&&(a.I.get(b)||a.I.set(b,c));VJa(a,c)};
VJa=function(a,b){if(!a.isDisposed()){a.Rh({onInitData:1});if(a.U.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.Rh({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.ma&&!a.videoData.isLivePlayback)OQ(a);else{if(!(a.U.K("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Ue)){a.ma=!0;c=b.cryptoPeriodIndex;var d=b.j;IHa(b);b.Ue||(d&&b.j!==d?a.X("ctmp","cpsmm",
{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.X("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.X("widevine_set_need_key_info",b)}}else a.yM(b)}};
UJa=function(a){if(!a.isDisposed())if(a.U.K("html5_drm_set_server_cert")&&!g.oB(a.U)){var b=a.C.setServerCertificate();b?b.then(Wp(function(c){dC(a.U)&&a.X("ctmp","ssc",{success:c})}),Wp(function(c){a.X("ctmp","ssce",{n:c.name,
m:c.message})})).then(Wp(function(){PQ(a)})):PQ(a)}else PQ(a)};
PQ=function(a){a.isDisposed()||(a.V=!0,a.Rh({onmdkrdy:1}),OQ(a))};
XJa=function(a){return"widevine"===a.j.flavor&&a.videoData.K("html5_drm_cpi_license_key")};
OQ=function(a){if(a.Ga&&a.V&&!a.oa){for(;a.B.length;){var b=a.B[0],c=XJa(a)?JHa(b):g.Cc(b.initData);if(a.u.get(c))if("fairplay"===a.j.flavor)a.u.delete(c);else{a.B.shift();continue}IHa(b);break}a.B.length&&a.createSession(a.B[0])}};
YJa=function(a){var b;if(b=g.Cq()){var c;b=!(null==(c=a.C.u)||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.wx(b),a.X("ctmp","drm",{metrics:b}))};
RQ=function(a){g.I.call(this);var b=this;this.qa=a;this.j=this.qa.S();this.videoData=this.qa.getVideoData();this.By=0;this.I=this.B=!1;this.D=0;this.C=g.eA(this.j.experiments,"html5_delayed_retry_count");this.u=new g.K(function(){QQ(b.qa)},g.eA(this.j.experiments,"html5_delayed_retry_delay_ms"));
g.J(this,this.u)};
TQ=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.qa.ih.C&&d&&"22"===d.Vb())return a.qa.ih.C=!0,a.xd("qoe.restart",{reason:"fmt.unplayable.22"}),SQ(a.qa),!0;var f=!1,h=a.By+3E4<(0,g.R)()||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.xd("auth",c),!0;var l;if(l=!h)l=a.qa.Cp(),l=!!(l.sf()||l.isInline()||l.isBackground()||
l.Xu()||l.Uu());l&&(c.nonfg="paused",h=!0,a.qa.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:osa(e)||nsa(e))&&(iva(a.j.u,e.j),c.acfallexp=e.j,f=h=!0);!h&&0<a.C&&(a.u.start(),h=!0,c.delayed="1",--a.C);e=a.qa.Fa;if(!h&&((null==d?0:gz(d))||(null==d?0:ez(d)))){var m;if(a.videoData.K("html5_disable_codec_for_playback_on_error")&&e){l=e.Td;var n=d.j;l.Pa.has(n)?l=!1:(l.Pa.add(n),l.V=-1,WO(l,l.j),l=!0);l&&(m="cfallp")}else iva(a.j.u,d.j),m="cfallexp";m&&(f=h=!0,c[m]=d.j)}if(!h)return ZJa(a,
c);a.By=(0,g.R)();h=a.videoData;h.eb?(h=h.eb.qL(),m=Date.now()/1E3+1800,h=h<m):h=!1;c.e=b;h&&(c.staleprog="1");a.xd("qoe.restart",c);if(h&&$Ja(a))return aKa(a),!0;Aq("philips")&&bKa(a);d&&gz(d)?(f=a.j.u,f.V=!0,f=f.j=!0):e?(b=(b=FP(e.videoTrack)||e.videoTrack.u)?b.j:e.videoTrack.j,b.J+=1,$O(e.Td,b,!0)):a.videoData.eb&&a.videoData.eb.mJ();a.u.isActive()||QQ(a.qa,f);return!0};
ZJa=function(a,b){if(a.videoData.kb)return!1;a.j.kb+=1;if(10>=a.j.kb)return!1;b.exiled=""+a.j.kb;a.xd("qoe.start15s",b);a.qa.X("playbackstalledatstart");return!0};
bKa=function(a){if("GAME_CONSOLE"!==a.j.deviceParams.cplatform)try{window.close()}catch(b){}};
$Ja=function(a){return a.B?!0:"yt"!==a.j.Ga?!1:a.videoData.kb?25>a.videoData.Zb:!a.videoData.Zb};
aKa=function(a){if(!a.B){a.B=!0;var b=a.qa.getPlayerState();b=g.V(b,4)||b.isSuspended();a.qa.jo();b&&!XD(a.videoData)||a.qa.X("signatureexpired")}};
cKa=function(a,b){if((a=a.qa.Hd())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.wk();b.details.merr=c?c.toString():"0";b.details.msg=a.rf()}};
eKa=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="19144";if($Ja(a))return gC(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new fC("qoe.restart",b)),a.xd(b.errorCode,b.details),aKa(a),!0;6048E5<(0,g.R)()-a.j.Le&&dKa(a,"signature");return!1};
dKa=function(a,b){try{window.location.reload();a.xd("qoe.restart",{detail:"pr."+b});return}catch(c){}a.j.K("tvhtml5_retire_old_players")&&g.oB(a.j)&&bKa(a)};
fKa=function(a,b){var c=a.j.u;c.D=!1;c.j=!0;a.xd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});QQ(a.qa,!0)};
gKa=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d};
UQ=function(a,b,c){this.U=a;this.Iz=b;this.qa=c;this.V=this.I=this.J=this.u=this.j=this.D=this.N=this.B=0;this.playbackRate=1;this.C=!1};
iKa=function(a,b,c){!a.U.K("html5_tv_ignore_capable_constraint")&&g.oB(a.U)&&(c=c.compose(hKa(a,b)));return c};
jKa=function(a,b){var c=!0,d=a.playbackRate;if(a.K("html5_cap_quality_for_tv_hfr")){var e;c=VQ(a,null==(e=b.j)?void 0:e.videoInfos);d=a.qa.getPlaybackRate()}return 1<d&&c?(a=eva(a.U.u,b.j.videoInfos,d),new Kw(0,a,!0,"o")):new Kw(0,0,!1,"o")};
VQ=function(a,b){return b&&g.oB(a.U)?a.K("html5_cap_quality_for_tv_hfr")?b.some(function(c){return 32<c.video.fps}):32<b[0].video.fps:!1};
kKa=function(a,b){var c=a.qa;c=c.videoData.Cu||c.ph.fd().Cu;if(a.K("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.oK&&Nw(b.videoData.Wj))a=c.oK,b.videoData.Wj=new Kw(0,a,!1,"u");else{var d;if(c&&(null==(d=c.CF)?0:d.length)&&Nw(b.videoData.Wj)){a=new Map;d=g.r(b.j.videoInfos);for(var e=d.next();!e.done;e=d.next())e=e.value,a.set(+e.Vb(),e.video.j);d=[];c=g.r(c.CF);for(e=c.next();!e.done;e=c.next())(e=a.get(e.value))&&d.push(e);a=Math.max.apply(Math,g.v(d));b.videoData.Wj=new Kw(0,
a,!1,"u")}}return b.videoData.Wj};
hKa=function(a,b){if(g.oB(a.U)&&Uw(a.U.u,Vw.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;cB(a.U)&&(e=window.screen&&window.screen.width?new g.cg(window.screen.width,window.screen.height):null);e||(e=a.U.qk?a.U.qk.clone():a.Iz.xi());(eB||FO||d)&&e.scale(g.wB());d=e;xD(b.videoData);b=b.j.videoInfos;if(b.length){e=.85;var f=b[0].video;4!==f.projectionType&&2!==f.projectionType&&3!==f.projectionType||aB||(e=.45);a=g.eA(a.U.experiments,"html5_viewport_undersend_maximum");for(f=0;f<
b.length;f++){c=b[f];var h=c.video;if(null===d||h.width*e<d.width&&h.height*e<d.height){a&&f&&h.width<d.width*a&&h.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c="93"===c.Vb()?g.Lw[Zy(d.width,d.height)]:d.j;c=new Kw(0,c,!1,"r")}else c=lD;c=c.j}c&&(c=Math.max(c,360));return new Kw(0,c,!1,"r")};
lKa=function(a){var b,c,d;return g.B(function(e){switch(e.j){case 1:return a.j.j&&navigator.mediaCapabilities?g.A(e,Promise.resolve(),2):e.return(Promise.resolve());case 2:b=g.r(a.j.videoInfos),c=b.next();case 3:if(c.done){e.Ra(0);break}d=c.value;return g.A(e,$ta(d),4);case 4:c=b.next(),e.Ra(3)}})};
nKa=function(a,b){if(!b.videoData.B||a.K("html5_disable_performance_downgrade"))return!1;6E4<g.Ua()-a.N&&(a.B=0);a.B++;a.N=g.Ua();if(4!==a.B)return!1;mKa(a,b.videoData.B);return!0};
pKa=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.eA(a.U.experiments,"html5_df_downgrade_thresh"),f=a.K("html5_log_media_perf_info"),h=g.eA(a.U.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.R)()-a.D?0:f||0<e||0<h))return!1;a.D=(0,g.R)();c=c.wA();if(!c)return!1;var l=c.droppedVideoFrames-a.I,m=c.totalVideoFrames-a.V;a.I=c.droppedVideoFrames;a.V=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&dC(a.U)&&a.qa.ra("ddf",
{dr:c.droppedVideoFrames,de:c.totalVideoFrames,comp:n});if(d)return a.j=0,a.u=0,!1;d=60<m?l/m:0;0<d&&(a.J=d);a.u=0<h&&60*d>h?a.u+1:0;if(!e||g.oB(a.U))return!1;a.j=d>e?a.j+1:0;if(3!==a.j)return!1;mKa(a,b.videoData.B);a.qa.ra("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},oKa()));return!0};
qKa=function(a,b){return 0>=g.eA(a.U.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32<b.video.fps)?!1:3<=a.u?(a.u=0,!0):!1};
mKa=function(a,b){var c=b.j,d=b.video.fps;b=b.video.j-1;var e=Uz();c=Pua(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.Zu("yt-player-performance-cap",e,604800));a.qa.ew()};
rKa=function(a,b){if(!b.j.j)return a.C?new Kw(0,360,!1,"b"):lD;for(var c=!1,d=!1,e=g.r(b.j.videoInfos),f=e.next();!f.done;f=e.next())gz(f.value)?c=!0:d=!0;c=c&&d;d=0;f=g.eA(a.U.experiments,"html5_performance_cap_floor");a=a.U.isMobile?240:f;b=g.r(b.j.videoInfos);for(f=b.next();!f.done;f=b.next())if(e=f.value,!c||!gz(e))if(f=Vz(e.j,e.video.fps),e=e.video.j,Math.max(f,a)>=e){d=e;break}return new Kw(0,d,!1,"b")};
sKa=function(a){a=a.qa.Cp();return a.isInline()?new Kw(0,480,!1,"v"):a.isBackground()&&60<xt()/1E3?new Kw(0,360,!1,"v"):lD};
uKa=function(a,b,c){if(a.U.experiments.fb("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.oB(a.U)&&(1080<=Tz(-1)||b.osid))return lD;var d=g.eA(a.U.experiments,"html5_autonav_quality_cap"),e=g.eA(a.U.experiments,"html5_autonav_cap_idle_secs");return d&&b.Am&&xt()/1E3>e?(c&&(d=tKa(a,c,d)),new Kw(0,d,!1,"e")):lD};
tKa=function(a,b,c){if(a.K("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;b<a.length;b++)if(a[b].video.j<c)return a[b-1].video.j;return c};
vKa=function(a,b){a.K("html5_log_media_perf_info")&&(a.qa.ra("perfdb",oKa()),a.qa.ra("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.qa.ra("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return!1===(null==(d=c.u)?void 0:d.smooth)}).map(function(c){return c.Vb()}).join("-")}))};
oKa=function(){return Ke(Uz(),function(a){return""+a})};
WQ=function(a,b){g.I.call(this);this.j=a;this.J=b;this.u=-1;this.I=!1;this.B=-1;this.playerState=new g.zF;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.K(this.send,6E4,this);this.C=!1;g.J(this,this.delay)};
XQ=function(a){0<=a.u||(3===a.j.qa.getVisibilityState()?a.I=!0:(a.u=g.GN(a.j),a.delay.start()))};
wKa=function(a){if(!(0>a.B)){var b=g.GN(a.j),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.HF(a.playerState)&&!g.V(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
YQ=function(a,b){b?xKa.test(a):(a=g.bq(a),Object.keys(a).includes("cpn"))};
ZQ=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(eq(a)&&fq()){if(h){var n;2!==(null==(n=yKa.uaChPolyfill)?void 0:n.state.type)?h=null:(h=yKa.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.P("EOM_VISITOR_DATA");b.K("enable_web_eom_visitor_data")&&h?m["X-Goog-EOM-Visitor-Id"]=
h:d?m["X-Goog-Visitor-Id"]=d:b.K("enable_visitor_header_for_vss")&&g.P("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.P("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")&&xKa.test(a)&&(l.withCredentials=!0)}0<Object.keys(m).length&&(l.headers=m);f&&(l.onFinish=f);return 1<Object.keys(l).length?l:null};
$Q=function(a,b,c,d,e,f,h,l){fq()&&c.token&&(a=cq(a,{ctt:c.token,cttype:c.SJ,mdx_environment:c.mdxEnvironment}));f||l&&d.K("nwl_skip_retry")?(null==b?b={}:YQ(a,d.K("html5_assert_cpn_with_regex")),h?d.K("use_new_nwl_saw")?Ps().sendAndWrite(a,b):Xs(a,b):d.K("use_new_nwl_stw")?Ps().sendThenWrite(a,b,l):Ws(a,b,l)):d.gi?(b=b||{},YQ(a,d.K("html5_assert_cpn_with_regex")),d.gi.enqueue(a,b)):b?(YQ(a,d.K("html5_assert_cpn_with_regex")),g.pq(a,b)):g.Gs(a,e)};
g.bR=function(a){g.I.call(this);var b=this;this.j=a;this.logger=new g.qO("qoe");this.u={};this.sequenceNumber=1;this.Ta=NaN;this.Rd="N";this.N=this.Ib=this.eb=this.Sa=this.C=0;this.Da=this.Kb="";this.kb=this.Y=NaN;this.bb=0;this.Zb=-1;this.qb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Pa=this.ma=this.isOffline=this.oa=!1;this.Hc=[];this.W=null;this.D=this.Ia=this.I=!1;this.B=-1;this.Ga=!1;this.qc=new g.K(this.wW,750,this);this.V=this.adCpn="";this.adFormat=void 0;this.Nc=0;this.Jc=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));
g.J(this,this.qc);(a="function"===typeof navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.W=c});
g.aR(this,0,"vps",["N"])};
g.aR=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
cR=function(a,b){var c=a.j.qa.getCurrentTime();g.aR(a,b,"cmt",[c.toFixed(3)]);c=a.j.qa.Ui();if(a.J&&1E3*c>a.J.uP+100&&a.J){var d=a.J,e=d.isAd;c=1E3*c-d.uP;a.va=1E3*b-d.t0-c-d.g0;if(!a.j.videoData.K("web_player_dai_csi_killswitch")){c=(0,g.R)()-c;b=a.va;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;ow(f,h);nw({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},
f);mw("pbs",c,f)}else c=a.j.qa.Ti(),c.J!==d.clientPlaybackNonce?(c.I=d.clientPlaybackNonce,c.B=b):g.Bu(new g.Ar("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}))}a.ra("gllat",{l:a.va.toFixed(),prev_ad:+e});delete a.J}};
dR=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.GN(a.j);var c=a.j.qa.MB();if(!isNaN(a.Y)&&!isNaN(c.j)){var d=c.j-a.Y;0<d&&g.aR(a,b,"bwm",[d,(c.C-a.kb).toFixed(3)])}isNaN(a.Y)&&c.j&&a.isOffline&&zKa(a,!1);a.Y=c.j;a.kb=c.C;isNaN(c.bandwidthEstimate)||g.aR(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);dC(a.j.U)&&0!==Object.keys(c.u).length&&a.ra("bwinfo",c.u);if(dC(a.j.U)||a.j.U.K("html5_log_meminfo"))d=WIa(),Object.values(d).some(function(e){return void 0!==e})&&a.ra("meminfo",d);
a.W&&g.aR(a,b,"bat",[a.W.level,a.W.charging?"1":"0"]);d=a.j.qa.getVisibilityState();a.Zb!==d&&(g.aR(a,b,"vis",[d]),a.Zb=d);cR(a,b);(d=AKa(a.j))&&d!==a.bb&&(g.aR(a,b,"conn",[d]),a.bb=d);BKa(a,b,c)};
BKa=function(a,b,c){if(!isNaN(c.Xq)){var d=c.Xq;c.B<d&&(d=c.B);g.aR(a,b,"bh",[d.toFixed(3)])}};
CKa=function(a,b,c){g.cC(a.j.U,g.WD(a.j.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.j.U.K("kevlar_woffle")||a.j.U.K("qoe_nwl_downloads"))e=!0}else a.j.U.K("qoe_with_networkless")&&(e=!0);var f=a.j.U.K("qoe_send_and_write"),h=a.j.U,l=a.j.K("web_player_vss_pageid_header")?a.j.U.pageId:void 0;d=ZQ(b,h,l,a.j.U.sendVisitorIdHeader?a.j.videoData.visitorData:void 0,d);h.K("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,$Q(b,d,{token:a.j.videoData.J,
SJ:a.j.videoData.qj,mdxEnvironment:a.j.videoData.mdxEnvironment},h,void 0,e,f&&a.ma)):e?(e=a.j.U.K("networkless_ajax"),h={method:"POST",postBody:c},f&&a.ma?a.j.U.K("use_new_nwl_saw")?Ps().sendAndWrite(b,h):Xs(b,h):e?g.pq(b,{method:"POST",postBody:c}):a.j.U.K("use_new_nwl_stw")?Ps().sendThenWrite(b,h):Ws(b,h)):(f=c,f=void 0===f?"":f,ipa(b,f)||g.Gs(b,void 0,void 0,void 0,f))})};
eR=function(a){for(var b=0,c=g.r(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(mk(a.u[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.K(a.reportStats,0,a)).start()};
DKa=function(a){a.j.videoData.Je&&fR(a,"prefetch");a.j.videoData.Zb&&a.ra("reload",{r:a.j.videoData.reloadReason,ct:a.j.videoData.Zb});a.j.videoData.Ib&&fR(a,"monitor");a.j.videoData.isLivePlayback&&fR(a,"live");a.j.videoData.kh&&a.ra("ctrl",{mode:a.j.videoData.kh},!0);if(a.j.videoData.Jh){var b=a.j.videoData.Jh.replace(/,/g,"_");a.ra("ytp",{type:b},!0)}a.j.videoData.oO&&(b=a.j.videoData.oO.replace(/,/g,"."),a.ra("ytrexp",{ids:b},!0));if(!a.j.U.K("html5_disable_gpu_reporting")){var c=a.j.videoData;
b=a.j.U.K("enable_white_noise")||a.j.U.K("enable_webgl_noop")||a.j.U.K("enable_gpu_logging");c=g.OD(c)||g.MD(c)||g.ND(c)||g.PD(c);(b||c)&&(b=(0,g.gR)())&&(a.u.gpu=[b])}XD(a.j.videoData)&&g.aR(a,g.GN(a.j),"dt",["1"]);dC(a.j.U)&&(b=(0,g.R)()-a.j.U.Le,a.ra("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.D=!0;a.Ta=g.lq(function(){a.reportStats()},1E4)};
FKa=function(a,b,c){var d=g.GN(a.j);EKa(a,d,b,0,c);dR(a,d);eR(a)};
EKa=function(a,b,c,d,e){var f=a.j.qa.getCurrentTime();c=[c,1===d?"fatal":"",f.toFixed(3)];e&&c.push(GKa(e));g.aR(a,b,"error",c);a.D=!0};
hR=function(a){0<=a.B||(a.j.U.ye||3!==a.j.qa.getVisibilityState()?a.B=g.GN(a.j):a.Ga=!0)};
fR=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
zKa=function(a,b){a.isOffline=b;g.aR(a,g.GN(a.j),"is_offline",[a.isOffline?"1":"0"])};
HKa=function(a,b,c,d,e){var f=g.GN(a.j);1===b&&g.aR(a,f,"vps",[a.Rd]);var h=a.u.xvt||[];h.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.u.xvt=h};
GKa=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
IKa=function(a){this.j=a;this.N=!1;this.u=0;this.D=-1;this.lastUpdateTime=NaN;this.B=0;this.segments=[];this.J=this.I=0;this.W=this.j.Vi().volume;this.V=this.j.Vi().muted;this.C=iR(this.j)};
jR=function(a){a.C.startTime=a.B;a.C.endTime=a.u;a.segments.length&&g.Rb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.C:a.segments.length&&a.C.isEmpty()||a.segments.push(a.C);a.I+=a.u-a.B;a.C=iR(a.j);a.B=a.u};
JKa=function(a){a.segments.length&&a.u===a.B||jR(a);var b=a.segments;a.segments=[];return b};
LKa=function(a){KKa(a);a.J=g.lq(function(){a.update()},100);
a.lastUpdateTime=g.GN(a.j);a.C=iR(a.j)};
KKa=function(a){window.clearInterval(a.J);a.J=NaN};
MKa=function(a,b,c){c-=a.lastUpdateTime;return b===a.u&&.5<c};
kR=function(a,b,c,d){this.U=b;this.segments=[];this.experimentIds=[];this.Sa=this.Zb=this.isFinal=this.Ke=this.Kb=this.autoplay=this.autonav=!1;this.Hc="yt";this.I=this.J=null;this.sendVisitorIdHeader=this.Ta=!1;this.pageId="";this.B="watchtime"===c;this.C="playback"===c;this.Y="delayplay"===c;this.W="atr"===c;this.Le="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.W?"/api/stats/"+c:"//"+b.rk+"/api/stats/"+c;this.vj=!b.K("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.C&&
b.pfpChazalUi&&a.D;d&&(this.Zb=d.fs,d.rtn&&(this.I=d.rtn),this.B?(this.playerState=d.state,0<d.rti&&(this.J=d.rti)):(this.Me=d.mos,this.Ff=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Nc=d.inview),d.size&&(this.Jc=d.size));this.deviceParams=g.We(b.deviceParams);this.Je=b.Ke;b.K("embeds_js_api_set_1p_cookie")&&b.embedsTokenValue&&(this.embedsTokenValue=b.embedsTokenValue);this.experimentIds=b.experiments.experimentIds;this.Pa=b.zg;this.Hc=b.Ga;this.region=
b.region;this.userAge=b.userAge;this.qb=b.Ag;this.qd=xt();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.oa=b.K("vss_pings_using_networkless")||b.K("kevlar_woffle");this.Ye=b.K("vss_final_ping_send_and_write");this.ma=b.K("vss_use_send_and_write");this.pageId=b.pageId;this.Ze=b.K("vss_playback_use_send_and_write");this.Zc=b.K("use_new_nwl_saw");this.md=b.K("use_new_nwl_stw");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.ze=b.j&&b.K("embeds_append_synth_ch_headers");g.YA(b)&&
!b.K("embeds_rct_killswitch")&&(this.embedsRct=b.embedsRct);g.YA(b)&&!b.K("embeds_enable_epm_killswitch")&&(this.Ia=b.va);this.accessToken=g.WD(a);a.fM&&(this.D=a.fM);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=VD(a);this.autonav=a.Am||this.autonav;this.Ug=TD(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Kb=a.D;a.J&&(this.N=a.J,this.Ib=a.qj);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.Tw;this.Ga=a.Hc;a.B&&(this.videoFormat=a.B.Vb(),a.I&&a.I.Vb()!==
this.videoFormat&&(this.audioFormat=a.I.Vb()));a.j&&Rw(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.vj?"embedded_unbranded":SD(a);this.Sa=a.zg;this.Ad=a.ql;if(b=HD(a))this.bf=b;this.Kd=a.Ym;this.eventId=a.eventId;this.playlistId=a.kP||a.playlistId;this.kh=a.kh;this.Jh=a.Jh;this.ye=a.Vw;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.ge=a.I1;this.referrer=a.referrer;this.bb=a.YN||a.DN;this.eb=
a.Xw;this.kb=a.J1;this.userGenderAge=a.userGenderAge;this.Da=a.S0};
lR=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.cC(a.U,a.accessToken).then(function(d){return ZQ(a.uri,a.U,a.pageId,c,d,b,a.ze)})};
NKa=function(a,b){return function(){a.U.K("html5_simplify_pings")?(a.j=a.va,a.Yc=b(),a.qd=0,a.send()):lR(a).then(function(c){var d=a.uri,e=mR(a),f=a.oa,h=a.ma,l=a.Zc,m=a.md;l=void 0===l?!1:l;m=void 0===m?!1:m;e.cmt=e.len;e.lact="0";var n=b().toFixed(3);e.rt=Number(n).toString();d=g.Mh(d,e);f?(null==c&&(c={}),h?l?Ps().sendAndWrite(d,c):Xs(d,c):m?Ps().sendThenWrite(d,c):Ws(d,c)):c?g.pq(d,c):g.Gs(d)})}};
mR=function(a){var b={ns:a.Hc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.u(a.j),fmt:a.videoFormat,fs:a.Zb?"1":"0",rt:a.u(a.Yc),adformat:a.adFormat,content_v:a.Ug,etv:a.embedsTokenValue,euri:a.Je,lact:a.qd,live:a.bf,cl:(452150644).toString(),mos:a.Me,state:a.playerState,volume:a.Ff};a.subscribed&&(b.subscribed="1");Object.assign(b,a.deviceParams);a.autoplay&&(b.autoplay="1");a.Kb&&(b.dni="1");!a.B&&a.Ia&&(b.epm=OKa[a.Ia]);a.isFinal&&(b["final"]="1");a.Sa&&(b.splay="1");a.Ga&&(b.delay=a.Ga);
a.Pa&&(b.hl=a.Pa);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.qb&&(b.uga=a.qb+a.userAge);void 0!==a.va&&(b.len=a.u(a.va));!a.B&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.I&&(b.rtn=a.u(a.I));a.bb&&(b.feature=a.bb);a.kh&&(b.ctrl=a.kh);a.Jh&&(b.ytr=a.Jh);a.audioFormat&&(b.afmt=a.audioFormat);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.qc&&(b.lio=a.u(a.qc));a.B?(b.idpj=a.Ad,b.ldpj=a.Kd,null!=a.J&&(b.rti=
a.u(a.J)),a.Da&&(b.ald=a.Da)):void 0!==a.adType&&(b.at=a.adType);a.Jc&&(a.C||a.Y||a.B)&&(b.size=a.Jc);null!=a.Nc&&(a.C||a.Y||a.B)&&(b.inview=a.u(a.Nc));a.B&&(b.volume=nR(a,g.kk(a.segments,function(d){return d.volume})),b.st=nR(a,g.kk(a.segments,function(d){return d.startTime})),b.et=nR(a,g.kk(a.segments,function(d){return d.endTime})),pl(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=nR(a,g.kk(a.segments,function(d){return d.playbackRate}))),pl(a.segments,function(d){return"-"!==d.j})&&
(b.als=g.kk(a.segments,function(d){return d.j}).join(",")));
b.muted=nR(a,g.kk(a.segments,function(d){return d.muted?1:0}));
pl(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=nR(a,g.kk(a.segments,function(d){return d.visibilityState})));
pl(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=nR(a,g.kk(a.segments,function(d){return d.connectionType})));
pl(a.segments,function(d){return 0!==d.u})&&(b.blo=nR(a,g.kk(a.segments,function(d){return d.u})));
pl(a.segments,function(d){return"-"!==d.C})&&(b.cc=g.kk(a.segments,function(d){return d.C}).join(","));
pl(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.kk(a.segments,function(d){return d.clipId}).join(","));
if(pl(a.segments,function(d){return!!d.B})){var c="au";
a.C&&(c="au_d");b[c]=g.kk(a.segments,function(d){return d.B}).join(",")}fq()&&a.N&&(b.ctt=a.N,b.cttype=a.Ib,b.mdx_environment=a.mdxEnvironment);
a.Le&&(b.etype=void 0!==a.V?a.V:0);a.eb&&(b.uoo=a.eb);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=PKa[a.livingRoomAppMode]||a.livingRoomAppMode);a.D&&a.U.K("html5_log_server_url_param")?QKa(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.ge,b.osid=a.osid,b.vm=a.videoMetadata,a.adQueryId&&(b.aqi=a.adQueryId),a.autonav&&(b.autonav="1"),a.playlistId&&(b.list=a.playlistId),a.ye&&(b.ssrt="1"),a.kb&&(b.upt=a.kb));(a.C||a.Y)&&a.embedsRct&&(b.rct=
a.embedsRct);return b};
QKa=function(a,b){if(b&&a.D)for(var c=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=new Set(["aqi","autonav","list","ssrt","upt"]),f=g.r(Object.keys(a.D)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.D[h]||(b[h]=a.D[h])};
nR=function(a,b){return g.kk(b,a.u).join(",")};
RKa=function(a,b){a.attestationResponse&&lR(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.oa?a.ma?a.Zc?Ps().sendAndWrite(b,c):Xs(b,c):a.md?Ps().sendThenWrite(b,c):Ws(b,c):g.pq(b,c)})};
oR=function(a){g.I.call(this);this.j=a;this.currentPlayerState="paused";this.B=NaN;this.I=[10,10,10,40];this.N=this.J=0;this.oa=this.Y=this.va=this.ma=this.W=this.V=this.C=!1;this.D=NaN;this.u=new IKa(a)};
TKa=function(a){if(!a.C){a.j.U.K("disable_embedpage_playback_logging")||16623!==a.j.videoData.zz||g.Bu(Error("Playback for EmbedPage"));var b=pR(a,"playback");a:{if(a.j.U.K("web_player_use_server_vss_schedule")){var c,d=null==(c=a.j.videoData.getPlayerResponse())?void 0:c.playbackTracking,e=null==d?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=null==d?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&0<e.length&&d){c=[];var f=a.j.videoData.ql,h=a.j.videoData.Ym,l=-f;e=g.r(e);for(var m=e.next();!m.done;m=
e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.I=c;break a}}a.I=[10+a.j.videoData.ql,10,10,40+a.j.videoData.Ym-a.j.videoData.ql,40]}LKa(a.u);b.I=qR(a,!0);0<a.D&&(b.j-=a.D);b.send();a.j.videoData.Ts&&(b=a.j.U,d=a.j.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Ts,oid:d.WL,ptchn:d.VL,pltype:d.XL,content_v:TD(d)},d.Gr&&Object.assign(c,{m:d.Gr}),b=g.Mh(b.Y+"ptracking",c),rR(a,b));a.j.videoData.Hc||SKa(a);a.C=!0;a=a.u;a.u=a.j.qa.getCurrentTime();a.j.U.K("html5_vss_media_time_killswitch")||
(a.u=a.j.qa.Ui());a.lastUpdateTime=g.GN(a.j);!(0===a.B&&5>a.u)&&2<a.u-a.B&&(a.B=a.u);a.N=!0}};
qR=function(a,b,c){c=void 0===c?NaN:c;var d=g.GN(a.j);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.I[a.J];a.J+1<a.I.length&&a.J++;var f=c+e;a.B=g.kq(function(){if(!a.isDisposed()){a.B=NaN;a.u.update();var h=JKa(a.u),l=UKa(a,h);b&&(l.J=f);var m=1E3<a.N;!(1<h.length)&&h[0].isEmpty()||m||(l.I=qR(a,!0,f));l.send();a.N++}},1E3*(f-d));
return f};
pR=function(a,b){var c=a.j;c=Object.assign(c.Vi(),c.videoData.Vi());Object.assign(c,{state:a.currentPlayerState});b=new kR(a.j.videoData,a.j.U,b,c);b.j=a.j.qa.getCurrentTime();a.j.U.K("html5_vss_media_time_killswitch")||(b.j=a.j.qa.Ui());a.j.videoData.isLivePlayback||(b.va=a.j.qa.getDuration());a.j.videoData.j&&(c=a.j.videoData.j.getIngestionTime(b.j))&&(b.qc=c-b.j);b.Yc=g.GN(a.j);b.segments=[iR(a.j)];return b};
UKa=function(a,b){var c=pR(a,"watchtime");if(0<a.D){for(var d=g.r(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.D,e.endTime-=a.D;c.j-=a.D}else c.j=a.u.u;c.segments=b;return c};
sR=function(a){a.u.update();return UKa(a,JKa(a.u))};
SKa=function(a){a.j.videoData.remarketingUrl&&!a.ma&&(rR(a,a.j.videoData.remarketingUrl),a.ma=!0);a.j.videoData.youtubeRemarketingUrl&&!a.va&&(rR(a,a.j.videoData.youtubeRemarketingUrl),a.va=!0);a.j.videoData.googleRemarketingUrl&&!a.Y&&(rR(a,a.j.videoData.googleRemarketingUrl),a.Y=!0);a.j.videoData.ppvRemarketingUrl&&!a.oa&&(rR(a,a.j.videoData.ppvRemarketingUrl),a.oa=!0);a.hw()};
tR=function(a){if(!a.isDisposed()&&a.C){a.currentPlayerState="paused";var b=sR(a);b.isFinal=!0;b.send();a.dispose()}};
VKa=function(a,b,c){if(!a.V){c||(c=pR(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.V=!0}};
rR=function(a,b){var c=a.j.U;g.cC(a.j.U,g.WD(a.j.videoData)).then(function(d){var e=a.j.K("web_player_vss_pageid_header")?a.j.U.pageId:void 0,f=a.j.U.sendVisitorIdHeader?a.j.videoData.visitorData:void 0,h=a.j.U.K("vss_pings_using_networkless")||a.j.U.K("kevlar_woffle"),l=a.j.U.K("allow_skip_networkless");d=ZQ(b,c,e,f,d);$Q(b,d,{token:a.j.videoData.J,SJ:a.j.videoData.qj,mdxEnvironment:a.j.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
WKa=function(){this.endTime=this.startTime=-1;this.C="-";this.playbackRate=1;this.visibilityState=0;this.B="";this.volume=this.connectionType=this.u=0;this.muted=!1;this.j=this.clipId="-"};
uR=function(a,b,c,d){this.videoData=a;this.U=b;this.qa=c;this.Vi=d;this.j=void 0};
g.GN=function(a){return XKa(a)()};
XKa=function(a){if(!a.j){var b=g.Ta(function(d){var e=(0,g.R)();d&&631152E6>=e&&(g.S(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.U.K("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.qa.zI()}return a.j};
AKa=function(a){if(navigator.connection&&navigator.connection.type)return YKa[navigator.connection.type]||YKa.other;if(g.oB(a.U)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
iR=function(a){var b=new WKa;b.C=a.Vi().cc||"-";b.playbackRate=a.qa.getPlaybackRate();var c=a.qa.getVisibilityState();0!==c&&(b.visibilityState=c);a.U.Yc&&(b.u=1);c=a.qa.getAudioTrack();c.Fc&&c.Fc.id&&"und"!==c.Fc.id&&(b.B=c.Fc.id);b.connectionType=AKa(a);b.volume=a.Vi().volume;b.muted=a.Vi().muted;b.clipId=a.Vi().clipid||"-";b.j=a.videoData.dM||"-";return b};
g.vR=function(a){g.I.call(this);var b=this;this.u=a;this.qoe=this.j=null;this.Zg=void 0;this.B=new Map;this.u.videoData.isValid()&&!this.u.videoData.Gj&&(this.j=new oR(this.u),g.J(this,this.j),this.qoe=new g.bR(this.u),g.J(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.Zg=this.u.videoData.clientPlaybackNonce)&&this.B.set(this.Zg,this.j));this.C=new WQ(this.u,function(c){b.ra("h5h",c)});
g.J(this,this.C)};
ZKa=function(a){if(a.u.videoData.enableServerStitchedDai&&a.Zg){var b;null!=(b=a.B.get(a.Zg))&&jR(b.u)}else a.j&&jR(a.j.u)};
$Ka=function(a){a.C.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.Rd&&(b.Rd="N");var c=g.GN(b.j);g.aR(b,c,"vps",[b.Rd]);b.I||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.I=!0);dC(b.j.U)&&b.ra("finalized",{});b.ma=!0;b.reportStats(c)}}if(a.u.videoData.enableServerStitchedDai)for(b=g.r(a.B.values()),c=b.next();!c.done;c=b.next())tR(c.value);else a.j&&tR(a.j);a.dispose()};
aLa=function(a,b){a.j&&VKa(a.j,b)};
bLa=function(a){if(!a.j)return null;var b=pR(a.j,"atr");return function(c){a.j&&VKa(a.j,c,b)}};
cLa=function(a,b,c,d){c.adFormat=c.qd;var e=b.qa;b=new oR(new uR(c,b.U,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Ui:function(){return e.Ui()},
MB:function(){return e.MB()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
ey:function(){return e.ey()},
getVisibilityState:function(){return e.getVisibilityState()},
Ti:function(){return e.Ti()},
zI:function(){e.zI()},
Uy:function(){e.Uy()}},b.Vi));
b.D=d;g.J(a,b);return b};
dLa=function(){this.Xq=0;this.D=this.C=this.j=this.B=NaN;this.u={};this.bandwidthEstimate=NaN};
eLa=function(){this.u=g.Bv;this.j=[]};
gLa=function(a,b,c){var d=[];for(b=fLa(a,b);b<a.j.length;++b){var e=a.j[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
hLa=function(a,b){var c=[];a=g.r(a.j);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
iLa=function(a){return a.j.slice(fLa(a,0x7ffffffffffff),a.j.length)};
fLa=function(a,b){a=lc(a.j,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
jLa=function(a,b){var c=NaN;a=g.r(a.j);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.end<c)&&(c=d.end),d.start>b&&(isNaN(c)||d.start<c)){c=d.start;break}return c};
kLa=function(a,b){a.j=a.j.filter(function(c){return!b.has(c)})};
wR=function(a,b,c,d){g.I.call(this);this.N=a;this.Y=b;this.D=c;this.V=d;this.u=NaN;this.I=this.J=this.started=!1;this.B=[];this.W=new g.K(this.Kl,250,this);g.J(this,this.W);this.C=new g.K(this.Kl,0,this);g.J(this,this.C);this.j=new eLa};
lLa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.V(g.Cv(d.namespace),d):a.V(g.Dv(d.namespace),d)}};
mLa=function(a){this.u=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.oB(a)&&(this.C=.01)};
xR=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
yR=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(0<b&&a.mediaTime===b)return c-a.u>(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1};
nLa=function(a,b){this.videoData=a;this.j=b};
oLa=function(a,b,c){return Nxa(b,c).then(function(){return vq(new nLa(b,b.C))},function(d){d instanceof Error&&Xp(d);
d=b.isLivePlayback&&!g.lA(a.u,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e=b.isLivePlayback&&!g.lA(a.u,!0)?2:1,f={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.qb,drm:""+ +yD(b),f18:""+ +(0<=b.Lj.indexOf("itag=18")),c18:""+ +mz('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.j&&(yD(b)?(f.f142=""+ +!!b.j.j["142"],f.f149=""+ +!!b.j.j["149"],f.f279=""+ +!!b.j.j["279"]):(f.f133=""+ +!!b.j.j["133"],f.f140=""+ +!!b.j.j["140"],f.f242=""+ +!!b.j.j["242"]),f.cAVC=""+ +nz('video/mp4; codecs="avc1.42001E"'),
f.cAAC=""+ +nz('audio/mp4; codecs="mp4a.40.2"'),f.cVP9=""+ +nz('video/webm; codecs="vp9"'));if(b.V){f.drmsys=b.V.keySystem;var h=0;b.V.j&&(h=Object.keys(b.V.j).length);f.drmst=""+h}return new fC(d,f,e)})};
pLa=function(a){this.D=a;this.B=this.u=0;this.C=new tO(50)};
AR=function(a,b,c){g.iu.call(this);this.videoData=a;this.experiments=b;this.N=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.I=0;c=new qLa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.Ib?c.u=3:g.KD(a)&&(c.u=2);b.fb("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.N=!0);var d=Fxa(a);c.D=2===d||-1===d;c.D&&(c.Y++,21530001===DD(a)&&(c.I=g.eA(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Aq("trident/")||Aq("edge/"))c.B=Math.max(c.B,g.eA(b,"html5_platform_minimum_readahead_seconds")||
3);g.eA(b,"html5_minimum_readahead_seconds")&&(c.B=g.eA(b,"html5_minimum_readahead_seconds"));g.eA(b,"html5_maximum_readahead_seconds")&&(c.V=g.eA(b,"html5_maximum_readahead_seconds"));b.fb("html5_force_adaptive_readahead")&&(c.C=!0);g.eA(b,"html5_allowable_liveness_drift_chunks")&&(c.j=g.eA(b,"html5_allowable_liveness_drift_chunks"));g.eA(b,"html5_readahead_ratelimit")&&(c.W=g.eA(b,"html5_readahead_ratelimit"));switch(DD(a)){case 21530001:c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2),c.J=b.fb("html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.J=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Ib&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(DD(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.j=zR(this,b)};
rLa=function(a,b){var c=a.j;(void 0===b?0:b)&&a.policy.J&&3===Fxa(a.videoData)&&--c;return BR(a)*c};
CR=function(a,b){var c=a.Hk(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*BR(a);return b>=c-a};
sLa=function(a,b,c){b=CR(a,b);c||b?b&&(a.B=!0):a.B=!1;a.J=2===a.policy.u||3===a.policy.u&&a.B};
tLa=function(a,b){b=CR(a,b);a.D!==b&&a.X("livestatusshift",b);a.D=b};
BR=function(a){return a.videoData.j?Qz(a.videoData.j)||5:5};
zR=function(a,b){b=Math.max(Math.max(a.policy.Y,Math.ceil(a.policy.B/BR(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.V/BR(a))),b)};
qLa=function(){this.Y=1;this.B=0;this.V=Infinity;this.W=0;this.C=!0;this.j=2;this.u=1;this.D=!1;this.I=NaN;this.J=this.N=!1};
FR=function(a){g.I.call(this);this.qa=a;this.U=this.qa.S();this.C=this.j=0;this.B=new g.K(this.D,1E3,this);this.va=new DR({delayMs:g.eA(this.U.experiments,"html5_seek_timeout_delay_ms")});this.V=new DR({delayMs:g.eA(this.U.experiments,"html5_long_rebuffer_threshold_ms")});this.Da=ER(this,"html5_seek_set_cmt");this.Y=ER(this,"html5_seek_jiggle_cmt");this.oa=ER(this,"html5_seek_new_elem");this.Sa=ER(this,"html5_unreported_seek_reseek");this.J=ER(this,"html5_long_rebuffer_jiggle_cmt");this.N=new DR({delayMs:2E4});
this.I=ER(this,"html5_ads_preroll_lock_timeout");this.Ga=new DR({delayMs:g.eA(this.U.experiments,"html5_skip_slow_ad_delay_ms")||5E3,uu:!this.U.K("html5_report_slow_ads_as_error")});this.Ia=new DR({delayMs:g.eA(this.U.experiments,"html5_skip_slow_ad_delay_ms")||5E3,uu:!this.U.K("html5_skip_slow_buffering_ad")});this.ma=ER(this,"html5_seek_over_discontinuities");this.Pa=new DR({delayMs:g.eA(this.U.experiments,"html5_slow_start_timeout_delay_ms")});this.W=ER(this,"html5_slow_start_no_media_source");
this.u={};g.J(this,this.B)};
ER=function(a,b){var c=g.eA(a.U.experiments,b+"_delay_ms");a=a.U.K(b+"_cfl");return new DR({delayMs:c,uu:a})};
uLa=function(a,b,c,d,e,f,h){var l=uz(c,Math.max(d-3.5,0)),m=0<=l&&d>c.end(l)-1.1&&l+1<c.length&&11>c.start(l+1)-c.end(l);m=f&&h&&m;var n=l+1<c.length?c.start(l+1):d;GR(a,a.ma,m&&!e,f&&!h,"qoe.longrebuffer",function(){b.seekTo(n+.2)},"seekover")};
GR=function(a,b,c,d,e,f,h){vLa(b,c)?(a.xd(e,b,h),b.uu||f()):(b.kD&&b.triggerTimestamp&&!b.B?(c=(0,g.R)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.triggerTimestamp>b.kD,c=b.j&&c-b.j>b.aJ||f?b.B=!0:!1):c=!1,c&&(c=Object.assign({},a.Nb(b)),c.wn=h,c.we=e,c.wsuc=d,a.qa.ra("workaroundReport",c),d&&(b.reset(),a.u[e]=!1)))};
DR=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.aJ?1E3:b.aJ,d=void 0===b.kD?3E4:b.kD;b=void 0===b.uu?!1:b.uu;this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.aJ=c;this.kD=d;this.uu=b};
vLa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.R)();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};
IR=function(a){g.I.call(this);var b=this;this.qa=a;this.U=this.qa.S();this.videoData=this.qa.getVideoData();this.policy=new wLa(this.U);this.W=new FR(this.qa);this.playbackData=null;this.Ia=new g.kz;this.I=this.u=this.Fa=this.mediaElement=null;this.j=NaN;this.C=0;this.ma=NaN;this.B=null;this.va=NaN;this.D=this.J=null;this.V=this.N=!1;this.oa=new g.K(function(){xLa(b,!1)},2E3);
this.Ta=new g.K(function(){HR(b)});
this.Ga=new g.K(function(){b.N=!0;yLa(b)});
this.timestampOffset=0;this.Pa=!0;this.Da=0;this.Sa=NaN;this.Y=new g.K(function(){var c=b.U.ge;c.j+=1E4/36E5;c.j-c.B>1/6&&(Lva(c),c.B=c.j);b.Y.start()},1E4);
g.J(this,this.W);g.J(this,this.Ia);g.J(this,this.oa);g.J(this,this.Ga);g.J(this,this.Ta);g.J(this,this.Y)};
zLa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.I=new pLa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(tD(a.videoData)&&a.Fa){var c=a.Fa.WA.Dh()||0;break a}if(a.videoData.j){c=a.videoData.j.oa;break a}}c=0}return c}),a.u=new AR(a.videoData,a.U.experiments,function(){return a.Gd(!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.C=a.C||a.videoData.startSeconds||0)};
LR=function(a,b){(a.Fa=b)?JR(a,!0):KR(a)};
ALa=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&&c<e.B)){var f=e.j.getSegmentNumberForTime(c);-1!==f&&(e.u=e.j.getStartTime(f),e.B=e.u+e.j.getDuration(f),f=Date.now()/1E3-e.j.getIngestionTime(f),f-=e.D(),e.C.add(f))}}a.u&&(d&&(d=a.u,e=a.mediaElement?wF(a.mediaElement):0,d.C++,3>d.C||g.Ua()-d.I<d.policy.W||(d.I=g.Ua(),d.u.push(e),50<d.u.length&&d.u.shift())),d=a.u,sLa(d,c,void 0===b?!0:b),tLa(d,c),b&&xLa(a,!0))};
xLa=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!CR(c,d)&&c.Mn()?(c.policy.N&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.getMinSeekableTime()?Math.min(c.videoData.getMinSeekableTime()+10,c.Hk()):NaN;if(!isNaN(c)){if(a.Fa&&b&&(b=a.oa.isActive(),d=a.u.Hk(),(d=lJa(a.Fa,d-a.ud()))&&!b)){a.oa.start();a.qa.ra("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.ud()});a.seekTo(d+a.ud(),{Ee:"playbacktimeline_inBufferSeek"});return}a.seekTo(c,{Ee:"playbacktimeline_pegToLive"})}}};
JR=function(a,b){if(a.u&&a.Fa){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.u,b.u.length){c=b.j;b:{if(b.u.length){if(1<Math.min.apply(null,b.u)){var d=zR(b,b.j-1);break b}if(b.policy.C){d=zR(b,b.j+1);break b}}d=b.j}b.j=d;if(c=c!==b.j)b.u=[],b.C=0}else c=!1;c&&(c=a.qa.logging,b=rLa(a.u),c.qoe&&(c=c.qoe,g.aR(c,g.GN(c.j),"lra",[b]),c.ra("live-readahead-seconds",{v:b})));b=a.Fa;c=a.u.j;d=a.u;d=(d.j-1+d.policy.j)*
BR(d);var e=b.u;a=a.u.policy.I;e.Hf=Math.max(c-1,0);e.Y=a;b.C&&(b.C.Y=d)}};
BLa=function(a,b){a.C=b};
MR=function(a){return a.videoData.isLivePlayback&&!!a.videoData.C&&!a.videoData.C.j};
yLa=function(a){CLa(a).then(void 0,function(){KR(a)});
NR(a).then(function(c){DLa(a,c)},function(){KR(a)});
YN(a.qa);if(2<=a.U.V){var b=a.Nb();b["native"]=""+ +a.V;b.tgt=""+a.j;a.qa.ra("startSeek",b)}};
CLa=function(a){a.J||(a.Fa?isFinite(a.j)?a.J=a.Fa.seek(a.j-a.timestampOffset):(a.J=mJa(a.Fa),a.j=a.Fa.getCurrentTime()+a.timestampOffset):a.J=Ug(a.j-a.timestampOffset));return a.J};
NR=function(a){var b=a.B;b||(a.B=new tF,b=a.B,HR(a));return b};
ELa=function(a,b,c){return isNaN(b)?NaN:g.Xf(b,a.getMinSeekableTime(),a.Gd(c))};
HR=function(a){if(a.B)if(!a.K("html5_nondash_live_seek_killswitch")&&MR(a)&&a.mediaElement&&0<a.mediaElement.Pi()&&0<vF(a.mediaElement)&&(a.j=ELa(a,a.j,!1)),!a.mediaElement||!FLa(a))a.Ta.start(750);else if(!isNaN(a.j)&&isFinite(a.j)&&a.va!==a.j-a.timestampOffset){var b=a.mediaElement.getCurrentTime()-a.j;if(Math.abs(b)<=a.Da)a.B&&a.B.resolve(a.mediaElement.getCurrentTime());else if(!a.videoData.isLiveHeadPlayable&&a.j>=a.Gd()-.1)a.j=a.Gd(),a.B.resolve(a.Gd()),HN(a.qa);else try{var c=a.j-a.timestampOffset;
a.mediaElement.seekTo(c);a.W.j=c;a.va=c;a.C=a.j}catch(d){}}};
FLa=function(a){if(!a.mediaElement||0===a.mediaElement.Pi()||0<a.mediaElement.wk())return!1;var b=0<a.mediaElement.getCurrentTime();if(!(a.K("html5_nondash_mediaelementready_killswitch")||a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&yD(a.videoData))return b;if(0<=a.j){var c=a.mediaElement.Zx();if(c.length||!b)return vz(c,a.j-a.timestampOffset)}return b};
DLa=function(a,b){a.D&&(a.D.resolve(b),a.qa.X("SEEK_COMPLETE"),2<=a.U.V&&(b=a.Nb(),b["native"]=""+ +a.V,a.qa.ra("seekEnd",b)));KR(a)};
KR=function(a){a.j=NaN;a.va=NaN;a.B=null;a.J=null;a.D=null;a.N=!1;a.V=!1;a.Da=0;a.oa.stop();a.Ga.stop()};
GLa=function(a){if(a.mediaElement){for(var b=g.r(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Ia.P(a.mediaElement,c.value,function(d){var e=a.mediaElement;switch(d.type){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.B||a.V&&d!==a.j)a.B=new tF,a.va=d,e=e.getCurrentTime(),a.W.j=e,a.seekTo(d,{Ee:"playbacktimeline_mediaElementEvent"}),a.V=!0;break;case "seeked":a.B&&a.B.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":if(a.Pa){e="ss";
d=0;(LD(a.videoData)||a.videoData.liveUtcStartSeconds)&&(a.videoData.liveUtcStartSeconds||a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds)&&a.videoData.j?(d=a.videoData.liveUtcStartSeconds||a.videoData.md,e="utc",d=a.Gd()-a.getIngestionTime(a.Gd())+d):a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.md?(e="mss",d=a.videoData.md+a.ud()):a.videoData.zq&&(e="stss",d=a.videoData.zq);var f={};d?(a.seekTo(d,{Ee:"playbacktimeline_startSeconds"}),f[e]=d,
a.qa.ra("startSeconds",f),a.Pa=!1):a.videoData.md&&(f[e]=a.videoData.md+a.ud(),a.qa.ra("startSeconds",f));e=!!d}else e=!1;a.K("html5_nondash_live_seek_killswitch")&&!e&&MR(a)&&(a.j=isFinite(a.j)?g.Xf(a.j,a.getMinSeekableTime(),a.Gd()):a.Gd());HR(a);break;case "progress":HR(a)}});
a.D||a.C||a.policy.u||!a.mediaElement.dJ()||a.seekTo(.01,{Ee:"playbacktimeline_setupMediaElement"})}};
wLa=function(a){this.j=a.K("html5_live_smoothly_extend_max_seekable_time");this.u=a.K("html5_requires_seek_for_playback_at_zero_killswitch")};
OR=function(){this.finished=this.started=!1};
PR=function(a){this.j=a;this.iv=KJa(Gu(16))};
HLa=function(a,b){var c;return g.B(function(d){c=Eva(a.j);return d.return(c.encrypt(b,a.iv))})};
ILa=function(a,b){var c;return g.B(function(d){var e=a.j;e.C||(e.C=new wva(e.B));c=e.C;return d.return(zva(c,b,a.iv))})};
JLa=function(a,b,c){var d;return g.B(function(e){d=Eva(a.j);return e.return(d.decrypt(b,c))})};
QR=function(a){g.I.call(this);this.u=a;this.logger=new g.qO("onesie");this.Ud=new Map;this.j=!1};
CP=function(a,b){return a.Ud.has(b)};
YIa=function(a,b){return(a=a.Ud.get(b))?a.fP:[]};
dIa=function(a,b,c){a.Ud.get(b).Od=c};
SR=function(a,b){CP(a,b)&&(a.Ud.get(b).Fe=new kx,RR(a,b))};
KLa=function(a){for(var b=g.r(a.Ud),c=b.next();!c.done;c=b.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;d.Od||SR(a,c)}};
ZIa=function(a,b){var c;return(null==(c=a.Ud.get(b))?void 0:c.Dk)||0};
cIa=function(a,b){var c=a.Ud.get(b),d=!c.Dk&&!!c.bytesReceived;b=a.Gg(b);return d&&a.j&&void 0!==b?b:(d||c.bytesReceived===c.Dk)&&c.MA+c.Fe.totalLength===c.bytesReceived};
LLa=function(a,b,c){c=void 0===c?!1:c;a.Ud.set(b,{Fe:new kx,MA:0,bytesReceived:0,SI:!1,Kf:!1,Gg:!1,Jn:c,fP:[]})};
TR=function(a){a=g.r(a.Ud.values());for(var b=a.next();!b.done;b=a.next())b=b.value,b.SI&&(b.Od&&b.Od(),b.SI=!1)};
RR=function(a,b){if((b=a.Ud.get(b))&&!b.Kf){b.Kf=!0;b.Od&&b.Od();a:{b=g.r(a.Ud.values());for(var c=b.next();!c.done;c=b.next())if(!c.value.Kf){b=!1;break a}b=!0}if(b&&(a=a.u,a.playerResponse)){var d;null==(d=a.xhr)||d.abort()}}};
MLa=function(a,b){for(var c=!1,d=g.r(a.Ud.keys()),e=d.next();!e.done;e=d.next()){e=a.Ud.get(e.value);var f=void 0,h=void 0;(null==(f=e)?0:f.Dk)&&0<(null==(h=e)?void 0:h.Dk)&&(e.Jn?c=!0:b=!0)}return b&&c};
OLa=function(a,b){zC(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(yC(a,112),yC(a,c<<1^c>>31));zC(a,16,b.iX);zC(a,18,b.zV);zC(a,19,b.yV);zC(a,21,b.H0);zC(a,23,b.nV);zC(a,34,b.visibility);DC(a,38,b.mediaCapabilities,NLa,3);zC(a,39,b.V0);zC(a,40,b.sN)};
PLa=function(a){for(var b=[];sC(a,2);)b.push(rC(a));return{CF:b.length?b:void 0,oK:tC(a,4)}};
NLa=function(a,b){var c;if(b.nK)for(c=0;c<b.nK.length;c++)DC(a,1,b.nK[c],QLa,1);if(b.BF)for(c=0;c<b.BF.length;c++)DC(a,2,b.BF[c],RLa,1)};
RLa=function(a,b){zC(a,1,b.mV);zC(a,2,b.numChannels);zC(a,3,b.qX)};
QLa=function(a,b){zC(a,1,b.C1);zC(a,3,b.rX);zC(a,4,b.sX);zC(a,11,b.maxFramerate);zC(a,12,b.qX)};
ULa=function(a){return{Q_:tC(a,1),itag:vC(a,3),xQ:rwa(a,4,SLa),lmt:tC(a,5),bka:tC(a,7),xtags:vC(a,15),xX:rwa(a,23,TLa)}};
SLa=function(a){return{iv:uC(a,5),bX:qwa(a,7)}};
TLa=function(a){return{videoId:vC(a,2)}};
WLa=function(a,b){DC(a,2,b.ZM,OLa,3);DC(a,3,b.qH,VLa,3);BC(a,4,b.onesieUstreamerConfig);BC(a,9,b.aA)};
VLa=function(a,b){BC(a,2,b.encryptedOnesieInnertubeRequest);BC(a,5,b.encryptedClientKey);BC(a,6,b.iv);BC(a,7,b.hmac);AC(a,10,b.serializeResponseAsJson);AC(a,13,b.enableAdPlacementsPreroll);AC(a,14,b.enableCompressionResponseOnly);BC(a,16,b.unencryptedOnesieInnertubeRequest)};
XLa=function(a,b){CC(a,1,b.name);CC(a,2,b.value)};
YLa=function(a,b){CC(a,1,b.url);var c;if(b.httpHeaders)for(c=0;c<b.httpHeaders.length;c++)DC(a,2,b.httpHeaders[c],XLa,3);BC(a,3,b.postBody);AC(a,4,b.proxiedByTrustedBandaid);AC(a,6,b.skipResponseEncryption)};
ZLa=function(a){return{onesieProxyStatus:tC(a,1),httpStatus:tC(a,2),body:uC(a,4)}};
UR=function(a){this.Jj=a;this.u=!1;this.j=[]};
WR=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.JJ;if(b=b.buffer)$La(a.Jj.Bd,c,b);else if(b=a.Jj,b.j[c].lO=!0,b=VR(b.Bd,c),null==b?0:CP(b,c))null==b||RR(b,c)}};
aMa=function(a,b){a.j.push({JJ:b,isEncrypted:!1});a.u||WR(a)};
g.bMa=function(a){this.data=a;this.j=0;this.D=!1;this.B=0;this.error=!1;this.register=this.u=0;if(0===YR.length){YR.length=288;YR.fill(8);for(a=144;280>a;a++)YR[a]=255>=a?9:7;ZR.length=32;ZR.fill(5);$R.length=286;$R.fill(0);for(a=261;285>a;a++)$R[a]=Math.floor((a-261)/4);aS[257]=3;for(a=258;285>a;a++){var b=aS[a-1];b+=1<<$R[a-1];aS[a]=b}aS[285]=258;for(a=0;30>a;a++)bS[a]=3>=a?0:Math.floor((a-2)/2);for(a=cS[0]=1;30>a;a++)b=cS[a-1],b+=1<<bS[a-1],cS[a]=b}a=100+7*this.data.length;31===this.data[0]&&139===
this.data[1]&&(a=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.C=new Uint8Array(a)};
g.fMa=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!dS(b,1);switch(dS(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=dS(b,5)+257;var f=dS(b,5)+1;for(var h=dS(b,4)+4,l=0;l<h;l++)d[cMa[l]]=dS(b,3);d=eS(d);for(h=e+f;c.length<h;){l=dMa(b,d);switch(l){case 16:l=c[c.length-1];var m=dS(b,2)+3;break;case 17:l=0;m=dS(b,3)+3;break;case 18:l=0;m=dS(b,7)+11;break;default:m=1}for(;0<m;m--)c.push(l)}c.length!==h?b.error=!0:(f=c.slice(-f),c.length=e,eMa(b,c,f));break;case 1:eMa(b,YR,ZR);break;case 0:fS(b,
b.j&7);c=dS(b,16);e=dS(b,16);65535!==(c^e)&&(b.error=!0);b.C.set(b.data.subarray(b.u,b.u+c),b.B);b.u+=c;b.B+=c;break;default:b.error=!0}a.B>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};
eMa=function(a,b,c){b=eS(b);c=eS(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]<<l;m+=2;l+=16}var n=b[h&127];if(0>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,256<n){h=aS[n];h+=dS(a,$R[n]);m=dMa(a,c);l=cS[m];l+=dS(a,bS[m]);if(gMa&&h<l)l=f-l,e.copyWithin(f,l,l+h);else for(m=f+h,n=f;n<m;n+=4)e[n]=e[n-l],e[n+1]=e[n-l+1],e[n+2]=e[n-l+2],e[n+3]=e[n-l+3];f+=h;h=
a.register;l=a.j;m=a.u}else break}a.B=f};
dMa=function(a,b){if(7>a.j){var c=a.data,d=a.u;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<<a.j;a.u+=2;a.j+=16}c=b[a.register&127];if(0<=c)return fS(a,c&15),c>>4;for(fS(a,7);0>c;)c=b[dS(a,1)-c];return c>>4};
dS=function(a,b){for(;a.j<b;){if(a.u>=a.data.length)return a.error=!0,0;a.register|=a.data[a.u++]<<a.j;a.j+=8}var c=a.register&(1<<b)-1;a.register>>=b;a.j-=b;return c};
fS=function(a,b){a.j-=b;a.register>>=b};
eS=function(a){for(var b=[],c=g.r(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<b.length;h++)b[h]?d=h:b[h]=0,e=e+b[h-1]<<1,c[h]=e,7<h&&(f+=b[h]);for(e=1;e<f;)e<<=1;b=128;d=new Int16Array(128+2*(e+d));for(f=0;f<a.length;f++)if(h=a[f]){for(var l=c[h]++,m=e=0;m<h;m++)e=e<<1|l>>m&1;l=f<<4|h;if(7>=h)for(m=1<<7-h;m--;)d[m<<h|e]=l;else{m=e&127;h-=7;for(e>>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d};
hMa=function(a){var b,c,d,e,f,h,l;return g.B(function(m){switch(m.j){case 1:if(!("DecompressionStream"in window))return m.return(g.fMa(new g.bMa(a)));b=new DecompressionStream("gzip");c=b.writable.getWriter();c.write(a);c.close();d=b.readable.getReader();e=new kx([]);case 2:return g.A(m,d.read(),4);case 4:f=m.u;h=f.value;if(l=f.done){m.Ra(3);break}e.append(h);m.Ra(2);break;case 3:return m.return(px(e))}})};
jMa=function(a,b){var c=[];b=g.r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=iMa[d]||0;a.j&&e>a.j||c.push(d)}return c};
mMa=function(a,b){var c=a[a.length-1];a.push.apply(a,g.v(kMa[c]||[]));b.K("html5_early_media_for_drm")&&a.push.apply(a,g.v(lMa[c]||[]))};
rMa=function(a,b){var c=zD(a),d=a.S().u;if(gS&&!d.j)return gS;for(var e=[],f=[],h={},l=g.r(nMa),m=l.next();!m.done;m=l.next()){var n=!1;m=g.r(m.value);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=oMa(p);!q||!q.video||gz(q)&&!c.oa&&q.video.j>c.V||(n?e.push(p):(q=Sw(c,q,d),!0===q?(n=!0,e.push(p)):h[p]=q))}e&&mMa(e,a)}l=g.r(pMa);for(n=l.next();!n.done;n=l.next()){n=g.r(n.value);for(p=n.next();!p.done;p=n.next())if(m=p.value,(p=qMa(m))&&p.audio)if(p=Sw(c,p,d),!0===p){f.push(m);break}else h[m]=
p;f&&mMa(f,a)}c.B&&b("orfmts",h);gS={video:e,audio:f};d.j=!1;return gS};
oMa=function(a){var b=sMa[cz[a]],c=tMa[a];if(!c||!b)return null;var d=new $y(c.width,c.height,c.fps);b=uua(b,d);return new dz(a,b,{video:d,Ob:c.bitrate/8})};
qMa=function(a){var b=sMa[cz[a]],c=uMa[a];return c&&b?new dz(a,b,{audio:new Yy(c.audioSampleRate,c.numChannels)}):null};
vMa=function(a){this.Bd=a;this.logger=new g.qO("onesie");this.B={};this.j={};this.C=!0;this.u=null;this.queue=new UR(this)};
hS=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.u&&(b.j.length=0);b=g.r(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next())c=c.value,a.j[c].lO||aMa(a.queue,c)};
wMa=function(a,b){var c=b.totalLength,d=!1;switch(a.u){case 0:a.yI(b,a.C).then(function(e){var f=a.Bd;f.Mc("oprr");f.playerResponse=e;f.QH||(f.Kv=!1);iS(f)},function(e){a.Bd.fail(e)});
break;case 2:a.Mc("ormk");b=px(b);a.queue.decrypt(b);break;default:d=!0}a.Bd.Yi&&a.Bd.ra("ombup","id.11;pt."+a.u+";len."+c+(d?";ignored.1":""));a.u=null};
xMa=function(a,b,c){var d=qx(b,0);a.Bd.Yi&&a.Bd.ra("ombup","id."+(c?12:21)+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=b.split(1).Rs,d=a.B[d]||null)&&(a.Co(a.j[d].Jn?"oafs_r":"ovfs_r"),a.queue.enqueue(d,b,c))};
AMa=function(a,b,c,d){var e={},f=Tz(0);f&&(e.iX=f,e.lastManualDirection=Nua(),f=cra()||0,0<f&&(e.timeSinceLastManualFormatSelectionMs=(0,g.R)()-f));e.H0=Tz();if(a.schedule.N||!a.K("html5_onesie_enable_server_side_badwidth_estimation"))e.nV=PA(a.schedule,!0);f=g.wB();e.zV=c.width*f;e.yV=c.height*f;e.visibility=d;e.V0=xt();a.K("html5_onesie_media_capabilities")&&(e.sN=3);a.K("html5_onesie_audio_only_playback")&&xD(b)&&(e.sN=1);if(a.K("html5_onesie_media_capabilities")){b=zD(b);a=a.u;c=[];d=[];f=g.r(nMa);
for(var h=f.next();!h.done;h=f.next()){h=g.r(h.value);for(var l=h.next();!l.done;l=h.next()){l=l.value;var m=oMa(l);if(m&&m.video&&!0===Sw(b,m,a)){c.push({C1:yMa[cz[l]],sX:m.video.width,rX:m.video.height,maxFramerate:m.video.fps});break}}}f=g.r(pMa);for(h=f.next();!h.done;h=f.next())for(h=g.r(h.value),l=h.next();!l.done;l=h.next())if(l=l.value,(m=qMa(l))&&m.audio&&!0===Sw(b,m,a)){d.push({mV:zMa[cz[l]],numChannels:m.audio.numChannels});break}e.mediaCapabilities={nK:c,BF:d}}return e};
CMa=function(a,b,c){var d,e,f;return g.B(function(h){if(1==h.j)return d=EC(b,YLa),g.A(h,HLa(c,d),2);if(3!=h.j)return e=h.u,g.A(h,ILa(c,e),3);f=h.u;return h.return({encryptedOnesieInnertubeRequest:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,hmac:f,serializeResponseAsJson:!0,enableAdPlacementsPreroll:a.K("html5_onesie_ads"),enableCompressionResponseOnly:BMa(a,!!b.skipResponseEncryption)})})};
DMa=function(a,b,c,d,e,f,h,l){var m,n;return g.B(function(p){if(1==p.j)return g.A(p,CMa(c,a,b),2);m=p.u;n=AMa(c,d,e,f);return p.return({qH:m,ZM:n,onesieUstreamerConfig:h,aA:l})})};
BMa=function(a,b){var c=PA(a.schedule,!0);a=b&&a.K("html5_onesie_disable_js_cleartext_compression")||!!xA()&&1572864<c;return"DecompressionStream"in window||!a};
EMa=function(a,b){if(b+1<=a.totalLength){var c=qx(a,b);c=128>c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)a=qx(a,b++);else if(2===c)c=qx(a,b++),a=qx(a,b++),a=(c&63)+64*a;else if(3===c){c=qx(a,b++);var d=qx(a,b++);a=qx(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=qx(a,b++);d=qx(a,b++);var e=qx(a,b++);a=qx(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),ox(a,c,4)?a=Isa(a).getUint32(c-a.B,!0):(d=qx(a,c+2)+256*qx(a,c+3),a=qx(a,c)+256*(qx(a,c+1)+
256*d)),b+=5;return[a,b]};
jS=function(a){this.callbacks=a;this.j=new kx};
FMa=function(a,b){var c=g.Xz(b.U.experiments,"debug_bandaid_hostname");if(c)b=qN(b,c);else if(c=b.j.get(0)){var d=c;if(b.U.K("html5_onesie_host_racing_during_prewarming")){var e=b.j.values();e=g.r(e);for(var f=e.next();!f.done;f=e.next())f=f.value,vN(f)<vN(d)&&(d=f);e=g.eA(b.U.experiments,"html5_onesie_host_racing_cap_ms");0<e&&0!==d.qO&&vN(c)-vN(d)<=e&&(d=c);var h;b.D=null==(h=d)?void 0:h.jX}b=d.location.clone()}else b=void 0;if(b&&a.videoId){h=IA(a.videoId);a=[];if(h)for(h=g.r(h),c=h.next();!c.done;c=
h.next())a.push(c.value.toString(16).padStart(2,"0"));b.set("id",a.join(""));return b}};
GMa=function(a,b){return b.load().then(function(){return FMa(a,b)})};
kS=function(a,b){g.I.call(this);this.qa=a;this.playerRequest=b;this.U=this.qa.S();this.videoData=this.qa.getVideoData();this.logger=new g.qO("onesie");this.Yi=2<=this.U.V;this.bG=this.U.di;this.LC=new PR(this.bG.j);this.xhr=null;this.Lm=new tF;this.nO=!1;this.playerResponse="";this.RR=new jS(this);this.Jj=new vMa(this);this.zv=new g.K(this.iO,1E4,this);this.oQ=new g.K(this.uX,2E3,this);this.Ds="";this.bC=this.AO=!1;this.Gp=this.qa.JB();this.Av="";this.Kv=this.K("html5_onesie_wait_for_media_availability");
this.enableCompression=this.QH=this.aC=!1;g.J(this.videoData,this);g.J(this,this.zv);g.J(this,this.oQ);a=Hw();b=kA(this.U.u);this.K("html5_onesie_media_bytes")&&a&&b&&(this.K("html5_onesie_ads")?this.Bf=new Map:(this.Yd=new QR(this),g.J(this,this.Yd)));this.ra("sxhr",{s:""+ +a,a:""+ +(!!window.AbortController||Iw())},!0)};
VR=function(a,b){return a.Bf?(b=b.split(";")[0],a.Bf.get(b)):a.Yd};
HMa=function(a,b,c){var d;return g.B(function(e){if(1==e.j)return a.Mc("oprd_s"),xA()?g.A(e,JLa(a.LC,b,c),3):(d=a.LC.decrypt(b,c),e.Ra(2));2!=e.j&&(d=e.u);a.Mc("oprd_c");return e.return(d)})};
IMa=function(a){return a.K("html5_onesie_host_probing")||a.Yi};
$La=function(a,b,c){null!=(a=VR(a,b))&&(b=a.Ud.get(b))&&!b.Kf&&(lx(b.Fe,c),b.bytesReceived+=c.totalLength,b.SI=!0)};
iS=function(a){if(!a.playerResponse)return!1;if(a.aC)return!0;var b=a.videoData.K("html5_onesie_audio_only_playback")&&xD(a.videoData);if(!a.Bf&&a.Kv&&a.Yd&&!MLa(a.Yd,b))return!1;if(a.Bf&&a.Kv){if(!a.Bf.has(a.Ds))return!1;var c=a.Bf.get(a.Ds);if(c&&!MLa(c,b))return!1}a.Mc("ofr");a.Lm.resolve(a.playerResponse);a.K("html5_onesie_time_out_after_resolving")?a.zv.start():a.zv.stop();return a.aC=!0};
KMa=function(a){var b;if((null!=(b=a.Bf)?b:a.Yd)&&!a.K("html5_onesie_media_capabilities")){a.Mc("ogsf_s");b=rMa(a.qa.getVideoData(),function(d,e){a.ra(d,e)});
var c=JMa(a.qa);b.video=jMa(c,b.video);a.Mc("ogsf_c");if(b.video.length)return b;a.ra("ombspf","l."+c.u+";u."+c.j+";o."+c.B+";r."+c.reason)}};
LMa=function(a){if(!a.Im)return{};var b=SP(a.Im);b.d=BIa(a.Im);b.shost=a.gR;b.ty="o";return b};
RMa=function(a){function b(e){return(d.Xh&&!c.K("web_player_no_force_gvi")||!((c.Wj?0:c.K("web_player_gvi_wexit")||(g.oB(c)?"TVHTML5"===mB(c)?Xva(c)?c.K("web_player_gvi_wexit_living_room_pangea"):c.K("web_player_gvi_wexit_living_room_bedrock"):"TVHTML5_KIDS"===mB(c)?c.K("web_player_gvi_wexit_living_room_kids"):"TVHTML5_SIMPLY"===mB(c)||TA(c)?c.K("web_player_gvi_wexit_living_room_simply"):TB(c)||"TV_UNPLUGGED_CAST"===mB(c)?c.K("web_player_gvi_wexit_living_room_unplugged"):c.K("web_player_gvi_wexit_living_room_other"):
1))||d.qk&&d.u.B)?0:"yt"!==c.Ga?38===d.Ga&&"books"===c.playerStyle||30===d.Ga&&"docs"===c.playerStyle||33===d.Ga&&"google-live"===c.playerStyle?0:c.K("web_player_gvi_wexit_all_player_styles"):"adunit"!==SD(d)||c.K("web_player_gvi_wexit_adunit"))?MMa(a,d).then(function(){lS(a,d)},function(f){lS(a,d,!0);
throw f;}):NMa(a,d,e)}
var c=a.S(),d=a.getVideoData();d.isDisposed();d.va=!0;return OMa(a)?PMa(a,d).then(function(){lS(a,d)},function(e){e=hC(e);
if(gC(e.severity))return lS(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(QMa=!0);a.handleError(e);return b("onesie")}):b("gvi")};
OMa=function(a){var b=a.S();if(!b.K("html5_onesie"))return!1;var c=a.getVideoData();if(!b.K("html5_onesie_cast")&&(c.J||c.kh)||!b.K("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.Ga||QMa)return!1;b=b.di;if(!b||!b.j)return a.handleError(new fC("onesie.unavailable.hotconfig",{key:"0"})),!1;b={};return 0<Object.keys(b).length?(b.onesie="0",a.handleError(new fC("html5.missingapi",b)),!1):!0};
SMa=function(a){var b=XF();vza(b,a);return g.cI(b,XBa())};
PMa=function(a,b){var c,d,e,f,h,l,m,n,p,q,t,u,x,y;return g.B(function(z){if(1==z.j)return b.fetchType="onesie",c=xCa(b,a.getPlayerSize(),a.getVisibilityState()),d=new kS(a,c),g.A(z,d.fetch(),2);e=z.u;f={player_response:e};b.va=!1;h=a.S();l=h.K("html5_onesie_ads");if(!l)b.wl=d.Yd;else if(l&&d.Bf)for(m=g.r(d.Bf.keys()),n=m.next();!n.done;n=m.next())p=n.value,(q=d.Bf.get(p))&&a.ph.tv.j.set(p,q,180);if(l){var D=d.Cu;a.ph.fd().Cu=D}else b.Cu=d.Cu;g.pD(b,f,!0);if(b.va||nD(b))return z.return(Promise.resolve());
l?LGa(a.ph.tv.j):b.wl=void 0;t={};u="onesie.response";x=0;b.errorCode?(u="auth",t.ec=b.errorCode,t.ed=b.errorDetail,t.es=b.Ck||"",x=2):(t.successButUnplayable="1",t.disposed=""+ +b.isDisposed(),t.afmts=""+ +/adaptiveFormats/.test(e),t.cpn=b.clientPlaybackNonce);y=new fC(u,t,x);return z.return(Promise.reject(y))})};
MMa=function(a,b){var c,d,e,f,h,l,m,n,p,q;return g.B(function(t){switch(t.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){t.Ra(4);break}if(!(0<f)){t.Ra(5);break}return g.A(t,ah(5E3),6);case 6:h=new g.Ar("Retrying OnePlatform request",{attempt:f}),g.Bu(h);case 5:return g.wa(t,7),g.A(t,TMa(a,b),9);case 9:return t.return();case 7:l=g.ya(t);m=hC(l);n=m.errorCode;d&&"manifest.net.badstatus"===n&&"401"===m.details.rc&&(d=!1,f===e-1&&(e+=1));if("auth"===n||"manifest.net.retryexhausted"===n)return t.return(Promise.reject(m));
a.handleError(m);if(gC(m.severity)){t.Ra(4);break}case 3:f++;t.Ra(2);break;case 4:return p=c?"auth":"manifest.net.retryexhausted",q=c?2:1,t.return(Promise.reject(new fC(p,{backend:"op"},q)))}})};
TMa=function(a,b){var c;return g.B(function(d){c=a.S();b.fetchType="gp";return c.K("html5_use_oauth_callback")?d.return(g.cC(c,g.WD(b)).then(function(e){return UMa(a,b,e)},void 0)):d.return(UMa(a,b,g.WD(b)))})};
UMa=function(a,b,c){var d,e,f,h,l,m,n,p,q,t,u,x,y,z,D,H,G,L,aa;return g.B(function(M){if(1==M.j)return d=SMa(c),e=xCa(b,a.getPlayerSize(),a.getVisibilityState()),f=g.OH(VMa),h=g.WD(b),l=(0,g.R)(),m=!1,n="empty",p=0,a.Mc("ps_s"),q=function(sa){2===sa.readyState&&a.Mc("ps_c")},t={xv:q},g.A(M,g.ZF(d,e,f,void 0,t),2);
u=M.u;a.Mc("ps_r");if(b.isDisposed())return M.return();u?u.error?(m=!0,n="esf:"+u.error.message,p=u.error.code):u.errorMetadata&&(m=!0,n="its",p=u.errorMetadata.status):m=!0;if(m)return x=0,y=((0,g.R)()-l).toFixed(),z=a.S(),D={backend:"op",rc:""+p,rt:y,reason:n,has_kpt:b.Kb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:z.pageId?"1":"0",has_token:h?"1":"0",has_vvt:b.Pa?"1":"0",is_mdx:b.isMdxPlayback?"1":
"0",mdx_ctrl:b.kh||"",token_eq:h===g.WD(b)?"1":"0"},H="manifest.net.connect",429===p?(H="auth",x=2):200<p&&(H="manifest.net.badstatus",400===p&&(x=2)),M.return(Promise.reject(new fC(H,D,x)));b.va=!1;g.pD(b,{raw_player_response:u},!0);if(b.errorCode)return G={ec:b.errorCode,ed:b.errorDetail,es:b.Ck||""},M.return(Promise.reject(new fC("auth",G,2)));if(!b.va&&!nD(b))return L=b.isAd()?"auth":"manifest.net.retryexhausted",aa=b.isAd()?2:1,M.return(Promise.reject(new fC(L,{successButUnplayable:"1",hasMedia:JD(b)?
"1":"0"},aa)));g.va(M)})};
NMa=function(a,b,c){var d,e,f,h,l,m,n,p,q,t,u;return g.B(function(x){switch(x.j){case 1:d=lCa(a.S(),b,a.getPlayerSize(),a.getVisibilityState(),a.isFullscreen()),e=function(){return!0},f=function(y){y=hC(y);
if(gC(y.severity))return Promise.reject(y);a.handleError(y);return!1},l=(h=b.isAd())?1:3,m=0;
case 2:if(!(m<l)){x.Ra(4);break}n=d;if(!(0<m)){x.Ra(5);break}return g.A(x,ah(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=dq(d,p);case 5:return g.A(x,WMa(b,n).then(e,f),7);case 7:if(q=x.u)return x.return();m++;x.Ra(2);break;case 4:t=h?"auth":"manifest.net.retryexhausted";u=h?2:1;if(!h&&1E-4>Math.random())try{g.Bu(new g.Ar("b/152131571",btoa(d)))}catch(y){}return x.return(Promise.reject(new fC(t,{backend:"gvi"},u)))}})};
WMa=function(a,b){var c,d,e,f,h,l,m,n,p,q,t,u,x,y;return g.B(function(z){if(1==z.j)return a.fetchType="gvi",c=a.S(),(f=mCa(a))?(d={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:f},e=dq(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.Xz(c.experiments,"debug_sherlog_username"))&&(h["X-Youtube-Sherlog-Username"]=l),0<Object.keys(h).length&&(d.headers=
h),m=(0,g.R)(),n=function(D){if(!a.isDisposed()){D=D?D.status:-1;var H=0,G=((0,g.R)()-m).toFixed();G={backend:"gvi",rc:""+D,rt:G};var L="manifest.net.connect";429===D?(L="auth",H=2):200<D&&(L="manifest.net.badstatus",400===D&&(H=2));return Promise.reject(new fC(L,G,H))}},p=function(D){return n(D.xhr)},g.A(z,Hz(rq,e,d).then(void 0,p),2);
q=z.u;if(!q||!q.responseText)return z.return(n(q));a.va=!1;t=$p(q.responseText);g.pD(a,t,!0);if(a.errorCode)return u={ec:a.errorCode,ed:a.errorDetail,es:a.Ck||""},z.return(Promise.reject(new fC("auth",u,2)));if(!a.va&&!nD(a))return x=a.isAd()?"auth":"manifest.net.retryexhausted",y=a.isAd()?2:1,z.return(Promise.reject(new fC(x,{successButUnplayable:"1"},y)));g.va(z)})};
lS=function(a,b,c){c=void 0===c?!1:c;var d;g.B(function(e){d=a.S();return c&&(!g.VB(d)||"embedded"!==SD(b))||b.wr||"adunit"!==SD(b)&&(g.oB(d)||pB(d)||g.gB(d)||g.fB(d)||"WEB_CREATOR"===mB(d))?e.return():d.K("html5_use_oauth_callback")?e.return(g.cC(d,g.WD(b)).then(function(f){return XMa(a,b,f)})):e.return(XMa(a,b,g.WD(b)))})};
XMa=function(a,b,c){var d,e,f,h;return g.B(function(l){if(1==l.j){g.wa(l,2);d=SMa(c);var m=b.S();g.cr.getInstance();var n={context:g.pI(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===SD(b)&&(n.isAdPlayback=!0);m.embedConfig&&(n.serializedThirdPartyEmbedConfig=m.embedConfig);m.rl&&(n.showContentOwnerOnly=!0);g.dr(0,141)&&(n.autonavState=g.dr(0,140)?"STATE_OFF":"STATE_ON");if(g.WB(m)){m=g.dr(0,65);m=null!=m?!m:!1;var p=!!g.$u("yt-player-sticky-caption");
n.captionsRequested=m&&p}e=n;f=g.OH(YMa);a.Mc("wn_s");return g.A(l,g.ZF(d,e,f),4)}if(2!=l.j)return h=l.u,a.Mc("wn_r"),h&&!h.error&&g.pD(b,{raw_watch_next_response:h},!1),g.xa(l,0);g.ya(l);g.va(l)})};
ZMa=function(a){function b(){a.Mc("virc");Dw("virc",void 0,"video_to_ad")}
a.Mc("vir");Dw("vir",void 0,"video_to_ad");var c=RMa(a);c.then(b,b);return c};
g.qS=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new g.mD(a):m;n=void 0===n?!0:n;g.iu.call(this);var p=this;this.U=a;this.playerType=b;this.zb=c;this.Iz=d;this.getVisibilityState=f;this.visibility=h;this.ph=l;this.videoData=m;this.pV=n;this.logger=new g.qO("VideoPlayer");this.mx=new mLa(this.U);this.me=null;this.Bv=new LQ;this.zn=null;this.ih=new UQ(this.U,this.Iz,this);this.kO=!0;this.mediaSource=this.Fa=null;this.Tj=[];this.Xn=new OR;this.vf=this.ez=null;this.Yn=new OR;this.RC=null;this.cH=this.Yu=
!1;this.SC=NaN;this.playerState=new g.zF;this.UC=[];this.mw=new g.kz;this.Bk=new RQ(this);this.mediaElement=null;this.Wr=new g.K(this.YY,15E3,this);this.kJ=this.zC=!1;this.Cs=NaN;this.JA=!1;this.zF=0;this.AF=new g.K(this.nJ,4500,this);this.uy=!1;this.hC=NaN;this.HJ=new uO(new Map([["bufferhealth",function(){var q=p.Xc;return q.mediaElement?wF(q.mediaElement):0}],
["bandwidth",function(){return p.xG()}],
["networkactivity",function(){return p.U.schedule.V}],
["livelatency",function(){return p.isAtLiveHead()&&p.Kc()?mS(p):NaN}],
["rawlivelatency",function(){return mS(p)}]]));
this.By=0;this.loop=!1;this.playbackRate=1;this.NO=0;this.Xc=new IR(this);this.FM=!1;this.TC=[];this.CH=this.wQ=0;this.hJ=this.YR=!1;this.oF=new g.K(this.mW,0,this);this.jd=null;this.wP=new g.K(this.tV,0,this);this.ZC=new g.K(this.UQ,3E4,this);this.OX=[this.mw,this.oF,this.Wr,this.ZC,this.AF,this.HJ,this.wP];this.uf=function(){var q=p.logging;q.u.U.ye||3===q.u.qa.getVisibilityState()||(q.u.U.ye=!0);ZKa(q);var t=q.C;t.I&&0>t.u&&3!==t.j.qa.getVisibilityState()&&XQ(t);q.qoe&&(q=q.qoe,q.Ga&&0>q.B&&q.j.U.ye&&
hR(q));p.Fa&&nS(p);p.U.Nl&&!p.videoData.backgroundable&&p.mediaElement&&!p.eg()&&(p.isBackground()&&p.mediaElement.uA()?(p.ra("bgmobile",{suspend:1}),p.jo(!0)):p.isBackground()||oS(p)&&p.ra("bgmobile",{resume:1}))};
this.uh=new wR(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,t){q!==g.Cv("endcr")||g.V(p.playerState,32)||HN(p);
e(q,t,p.playerType)});
g.J(this,this.uh);g.J(this,this.Xc);$Ma(this,m);this.videoData.subscribe("dataupdated",this.G_,this);this.videoData.subscribe("dataloaded",this.LF,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ra,this);this.videoData.subscribe("ctmpstr",this.YI,this);aNa(this);fGa(this.uf);this.visibility.subscribe("visibilitystatechange",this.uf);this.videoData.Ia&&bNa(this);!Rxa(this.videoData)&&Xxa(this.videoData)||cNa(this);1===this.playerType&&pS.isActive()&&
this.ZC.start();this.videoData.Ye=this.getUserAudio51Preference();this.K("html5_generate_content_po_token")&&dNa(this)};
$Ma=function(a,b){if(2===a.playerType||a.U.Pl)b.GK=!0;var c=Twa(b.qd,b.zt,a.U.j,a.U.B);c&&(b.adFormat=c);2===a.playerType&&(b.Fm=!0);if(a.isFullscreen()||a.U.j)c=g.$u("yt-player-autonavstate"),b.autonavState=c||(a.U.j?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&rS(a,b.endSeconds)};
aNa=function(a){!a.logging||a.logging.isDisposed();a.logging=new g.vR(new uR(a.videoData,a.U,a,function(){return a.ph.Vi()}))};
QE=function(a){return a.mediaElement&&a.mediaElement.Hq()?a.mediaElement.mf():null};
sS=function(a){if(a.videoData.isValid())return!0;a.qg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
bNa=function(a){var b=a.ph.Ic();a.videoData.Zm=a.videoData.Zm||(null==b?void 0:b.AG());a.videoData.cn=a.videoData.cn||(null==b?void 0:b.BG())};
g.FN=function(a,b){b=void 0===b?!1:b;if(!b){var c=a.logging;XQ(c.C);c.qoe&&hR(c.qoe)}a.Yu=b;!sS(a)||a.Xn.started?g.oB(a.U)&&a.videoData.isLivePlayback&&a.Xn.started&&!a.Xn.isFinished()&&!a.Yu&&a.LF():(a.Xn.start(),b=a.logging,g.GN(b.u),b.qoe&&DKa(b.qoe),a.LF())};
eNa=function(a){var b=a.videoData;ZMa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=hC(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.qg("auth",2,unescape(a.videoData.errorReason),eC(c.details),a.videoData.errorDetail,a.videoData.Ck||void 0):a.handleError(c))})};
iGa=function(a,b){a.jd=b;a.Fa&&jJa(a.Fa,new g.yQ(b))};
fNa=function(a){if(!g.V(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.Tj=g.ec(a.videoData.oa)),JD(a.videoData)){a.zb.tick("bpd_s");tS(a).then(function(){a.zb.tick("bpd_c");if(!a.isDisposed()){a.Yu&&(a.Rb(BF(BF(a.playerState,512),1)),oS(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&rS(a,c.endSeconds);a.Xn.finished=!0;uS(a,"dataloaded");a.Yn.started&&vS(a);vKa(a.ih,a.vf)}});
a.K("html5_log_media_perf_info")&&a.ra("loudness",{v:a.videoData.Me.toFixed(3)},!0);var b=Yxa(a.videoData);b&&a.ra("playerResponseExperiment",{id:b},!0);a.yF()}else uS(a,"dataloaded")};
tS=function(a){wS(a);a.vf=null;var b=oLa(a.U,a.videoData,a.eg());a.ez=b;a.ez.then(function(c){gNa(a,c)},function(c){a.isDisposed()||(c=hC(c),a.visibility.isBackground()?(xS(a,"vp_none_avail"),a.ez=null,a.Xn.reset()):(a.Xn.finished=!0,a.qg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",eC(c.details))))});
return b};
SQ=function(a){tS(a).then(function(){return oS(a)});
g.FF(a.playerState)&&a.playVideo()};
gNa=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.vf=b;zLa(a.Xc,a.vf);if(a.videoData.isLivePlayback){var c=(a.K("html5_onesie_ads")?MGa(a.ph.tv,a.videoData.videoId):!!a.videoData.wl)||a.Fa&&!isNaN(a.Fa.oa);c=a.K("html5_onesie_live")&&c;0<a.videoData.md&&!tD(a.videoData)||c||a.seekTo(a.Gd(),{Ee:"videoplayer_playbackData"})}a.videoData.C.j?a.Fa?g.Bu(Error("Duplicated Loader")):(c=g.eA(a.U.experiments,"html5_onesie_defer_content_loader_ms"),a.K("html5_onesie_ads")&&c&&g.Xb(a.Tj,"ad")&&
MGa(a.ph.tv,a.videoData.GS)?g.kq(function(){a.isDisposed()||a.Fa||yS(a)},c):yS(a)):!a.videoData.C.j&&XD(a.videoData)&&a.EC(new lP(a.videoData.videoId||"",4));
zS(a);lKa(b).then(function(){a.ew();AS(a)})}};
BS=function(a){a.mediaElement&&a.mediaElement.Ut();g.FN(a);if(sS(a)&&!g.V(a.playerState,128)){a.Yn.started||(a.Yn.start(),a.Rb(BF(BF(a.playerState,8),1)));var b=a.ph.Ic();b=b&&2===b.getPlayerType();a.K("html5_suspend_for_preroll_join_latency")&&b&&1===a.getPlayerType()&&!g.V(a.playerState,512)&&a.Rb(BF(a.playerState,512));vS(a)}};
vS=function(a){a.isDisposed();if(!a.Yn.isFinished()&&a.Xn.isFinished()&&!g.V(a.playerState,128)&&!a.Tj.length){if(!a.uh.started){var b=a.uh;b.started=!0;b.Kl()}if(!a.qm()){a.Fa&&(b=a.Fa.timing,a.cH=!!b.u&&!!b.D);a.Yn.isFinished()||(a.Yn.finished=!0);b=a.K("html5_onesie_live")&&a.Fa&&!isNaN(a.Fa.oa);!a.videoData.isLivePlayback||0<a.videoData.md&&!tD(a.videoData)||b||(a.seekTo(Infinity,{Ee:"videoplayer_readying"}),a.isBackground()&&(a.kJ=!0));b=a.logging;if(b.qoe){b=b.qoe;b.j.videoData.Dl&&fR(b,b.j.videoData.Dl);
if(b.j.videoData.isLivePlayback){var c=b.j.videoData.j;tD(b.j.videoData)&&fR(b,"manifestless");c&&Qz(c)&&fR(b,"live-segment-"+Qz(c).toFixed(1))}"yt"!==b.j.U.Ga&&(b.u.len=[b.j.videoData.lengthSeconds.toFixed(2)]);b.j.videoData.cotn&&!XD(b.j.videoData)&&zKa(b,!0);dC(b.j.U)&&(c=OFa())&&b.ra("cblt",{m:c})}a.X("playbackready",a);Cw("pl_c",a.zb.timerName)||(a.zb.tick("pl_c"),Dw("pl_c",void 0,"video_to_ad"));Cw("pbr",a.zb.timerName)||(a.zb.tick("pbr"),Dw("pbr",void 0,"video_to_ad"))}}};
HN=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.mediaElement&&a.mediaElement.pause();a.Rb(b?new g.zF(14):new g.zF)};
rS=function(a,b){a.zn&&CS(a);a.zn=new g.Av(1E3*b,0x7ffffffffffff);a.zn.namespace="endcr";a.addCueRange(a.zn)};
CS=function(a){a.removeCueRange(a.zn);a.zn=null};
ES=function(a,b,c,d){a.videoData.B=c;d&&tQ(a,b,d);d=(d=g.DS(a))?d.Vb():"";a.logging.bz(new gKa(a.videoData,c,b,d));c=a.ih;c.B=0;c.j=0;a.X("internalvideoformatchange",a.videoData,"m"===b)};
g.DS=function(a){var b=GS(a);return Nw(b)||!a.vf?null:g.Ub(a.vf.j.videoInfos,function(c){return b.C(c)})};
tQ=function(a,b,c){if(c!==a.videoData.I){var d=!a.videoData.I;a.videoData.I=c;"m"!==b&&(b=d?"i":"a");a.logging.Sy(new gKa(a.videoData,c,b,""));d||a.X("internalaudioformatchange",a.videoData,"m"===b)}};
uQ=function(a,b){b&&a.xd(new fC("qoe.restart",b));a.Rb(BF(a.playerState,2048));HS(a);b=a.videoData.j&&Xw(a.videoData.j);var c=a.mediaElement&&a.mediaElement.isView();b||c?(a.Fa&&bJa(a.Fa),QQ(a)):(oS(a),g.FF(a.playerState)&&a.playVideo())};
GS=function(a){if(a.vf){var b=a.ih;var c=a.vf;a=a.Ju();if(b.qa.Cp().isInline())var d=lD;else b.K("html5_exponential_memory_for_sticky")?d=.5>SA(b.U.ge,"sticky-lifetime")?"auto":Ow[Tz()]:d=Ow[Tz()],d=g.Mw("auto",d,!1,"s");if(Nw(d)){d=hKa(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.r(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;ona()&&!g.oB(b.U)&&ez(c.j.videoInfos[0])&&
(f=Math.min(f,g.Lw.large));d=e.call(d,new Kw(0,f,!1,"o"));e=d.compose;f=4320;!b.U.isMobile||g.dB(b.U)||Hq()||b.U.K("hls_for_vod")||(f=b.U.K("mweb_default_hd720")?g.Lw.hd720:g.Lw.medium);(h=g.eA(b.U.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.kh&&!c.videoData.Wd&&(f=Math.min(f,h));h=g.eA(b.U.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.eA(b.U.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.r(l.videoInfos),
m=l.next();!m.done;m=l.next())if(32<m.value.video.fps){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.eA(b.U.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=tKa(b,c,f);d=e.call(d,new Kw(0,4320===f?0:f,!1,"d")).compose(sKa(b)).compose(uKa(b,c.videoData,c)).compose(rKa(b,c)).compose(kKa(b,c)).compose(jKa(b,c))}else b.K("html5_perf_cap_override_sticky")&&(d=d.compose(rKa(b,c))),b.K("html5_ustreamer_cap_override_sticky")&&(d=d.compose(kKa(b,c)));b.K("html5_varispeed_playback_rate")&&
(d=d.compose(jKa(b,c)));b=c.videoData.xt.compose(d).compose(c.videoData.RQ).compose(a)}else b=lD;return b};
JMa=function(a){var b=a.ih;a=a.videoData;var c=sKa(b);b.K("html5_disable_client_autonav_cap_for_onesie")||c.compose(uKa(b,a));return c};
g.hNa=function(a,b,c){a.videoData.xt=b;if(a.vf&&c){c=a.ih;var d=a.vf;if(d.j.j){var e=Tz(),f=d.j.videoInfos[0].video.j;if(!(e>f&&0!==f&&b.j===f)){e=!0;f=c.playbackRate;if(c.K("html5_cap_quality_for_tv_hfr")){var h;e=VQ(c,null==(h=d.j)?void 0:h.videoInfos);f=c.qa.getPlaybackRate()}1<f&&e&&c.K("html5_varispeed_playback_rate")&&(h=eva(c.U.u,d.j.videoInfos,f),0!==b.j&&h<b.j&&c.qa.setPlaybackRate(1));var l,m;d=(null==(l=d.videoData.B)?void 0:null==(m=l.video)?void 0:m.j)||0;g.Zu("yt-player-quality",{quality:g.Lw[Pw(b)],
previousQuality:d},31104E3);c.U.schedule.policy.C=480<=Tz();if(c.K("html5_exponential_memory_for_sticky")){b=c.U.ge;l=1;var n=void 0===n?!1:n;Nva(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.Gn["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.Gn["sticky-lifetime"]=0);n&&.0625<SA(b,"sticky-lifetime")&&(l=2*b.Gn["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.j/l);b.Gn["sticky-lifetime"]=l;b.C.start()}if(c.K("html5_perf_cap_override_sticky"))if(c.K("html5_perserve_av1_perf_cap")){n=
Uz();c=g.r(Object.keys(n));for(b=c.next();!b.done;b=c.next())b=b.value,0!==b.indexOf("1")&&(n[b]=0);g.Zu("yt-player-performance-cap",n,604800)}else g.av("yt-player-performance-cap")}}}zS(a)};
dNa=function(a){a.videoData.videoId?iNa(a.ph,a.videoData.videoId).then(function(b){a.videoData.P8=b}):a.ra("pomvid",{})};
zS=function(a){if(!a.isDisposed()&&!g.V(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)AS(a);else{var b=GS(a),c=a.videoData;a:{var d=a.videoData.qc;if(b.j){for(var e=g.r(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.cg(),l=g.Lw[h.video.quality];if((!b.B||"auto"!==h.video.quality)&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.eb=d;ES(a,b.reason,jNa(a,a.videoData.eb))}if(a.K("html5_check_unstarted")?g.FF(a.playerState):a.Kc())a.Xc.Pa=!1,a.playVideo()}};
AS=function(a){if(a.videoData.C&&a.videoData.C.j){var b=GS(a);if(a.Fa&&(a=a.Fa,!a.isDisposed()&&!a.Td.j.equals(b)&&a.videoTrack)){var c=a.Td.j;dJa(a,tHa(a.Td,b));pQ(a);var d=a.Td.j.isLocked()&&"m"===b.reason&&a.Td.W,e=a.policy.ql&&"l"===b.reason&&PP(a.videoTrack);b=c.j>b.j&&"b"===b.reason;c=a.Td.Ta&&!Bz();d||e||b||c?uQ(a.qa,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):g.Fn(a.W)}}};
nS=function(a){a.K("html5_update_constraint")?AS(a):zS(a)};
kNa=function(a){var b;return!!(a.K("html5_native_audio_track_switching")&&g.Ir&&(null==(b=a.videoData.B)?0:hz(b)))};
lNa=function(a){if(!kNa(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1<a.length)};
nNa=function(a){var b=mNa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Fc.getName()===b})};
mNa=function(a){var b;if(a=null==(b=a.mediaElement)?void 0:b.audioTracks())for(b=0;b<a.length;++b){var c=a[b];if(c.enabled)return c.label}};
yS=function(a){Gua(a.videoData.j,{cpn:a.videoData.clientPlaybackNonce,c:a.U.deviceParams.c,cver:a.U.deviceParams.cver});var b=a.U,c=a.videoData,d=new g.$Ca(b),e=ZCa(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,wm:c.wm});d.D=e;d.oa=g.eA(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");d.Kd=g.eA(b.experiments,"html5_subsegment_readahead_timeout_secs");d.Ts=g.eA(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.Ad=g.eA(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");
d.Us=g.eA(b.experiments,"html5_subsegment_readahead_min_load_speed");d.oi=g.eA(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.Ys=g.eA(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.wr=b.K("html5_restrict_streaming_xhr_on_sqless_requests");d.Dl=g.eA(b.experiments,"html5_max_headm_for_streaming_xhr");d.Pl=b.K("html5_pipeline_manifestless_allow_nonstreaming");d.Zm=b.K("html5_prefer_server_bwe3");d.zi=1024*g.eA(b.experiments,"html5_video_tbd_min_kb");d.rk=b.K("html5_last_slice_transition");
d.Sr=b.K("html5_store_xhr_headers_readable");d.Nc=g.eA(b.experiments,"html5_probe_primary_delay_base_ms")||d.Nc;d.Sh=b.K("html5_no_placeholder_rollbacks");d.Es=b.K("html5_subsegment_readahead_enable_mffa");b.K("html5_allow_video_keyframe_without_audio")&&(d.va=!0);d.zq=b.K("html5_webm_init_skipping");d.Je=b.K("html5_abs_buffer_health");d.qk=b.K("html5_interruption_resets_seeked_time");d.vj=g.eA(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.vj;d.Le=b.K("html5_explicitly_dispose_xhr");
d.Mq=b.K("html5_restart_on_unexpected_detach");d.bf=g.eA(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.Ff=g.eA(b.experiments,"html5_max_drift_per_track_secs");d.qd=g.eA(b.experiments,"html5_static_abr_resolution_shelf");d.Xj=!b.K("html5_encourage_array_coalescing");d.yl=b.K("html5_filter_non_efficient_formats_for_safari");d.wt=b.K("html5_format_hybridization");d.Gj=b.K("html5_abort_before_separate_init");d.Gr=b.K("html5_serialize_server_stitched_ad_request");d.Wg=b.K("html5_never_pause_appends");
d.Vg=g.eA(b.experiments,"html5_min_startup_buffered_media_duration_secs");d.Lj=b.K("html5_attach_po_token_to_bandaid");b.K("html5_allow_video_keyframe_without_audio")&&(d.va=!0);0<g.eA(b.experiments,"html5_max_redirect_response_length")&&(d.zg=g.eA(b.experiments,"html5_max_redirect_response_length"));e=g.eA(b.experiments,"html5_resource_bad_status_delay_scaling");0<e&&(d.Lq=e);d.Zc=b.K("html5_rewrite_timestamps_for_webm");d.Ia=b.K("html5_only_media_duration_for_discontinuities");b.K("html5_media_common_config_killswitch")||
(d.I=c.maxReadAheadMediaTimeMs/1E3||d.I,e=b.schedule,e.B.Dh()===e.policy.B?d.Da=10:d.Da=c.minReadAheadMediaTimeMs/1E3||d.Da,d.Ke=c.readAheadGrowthRateMs/1E3||d.Ke);bl&&(d.Ga=41943040);d.bb=!Gz();g.oB(b)||!Gz()?(e=b.experiments,d.J=8388608,d.W=524288,d.Wj=5,d.Zb=2097152,d.Pa=1048576,d.Iq=1.5,d.Nl=!1,d.Ob=4587520,Eq()&&(d.Ob=786432),d.B*=1.1,d.C*=1.1,d.Yc=!0,d.Ga=d.J,d.qc=d.W,d.ze=e.fb("persist_disable_player_preload_on_tv")||e.fb("persist_disable_player_preload_on_tv_for_living_room")||!1):b.isMobile&&
(d.B*=1.3,d.C*=1.3);g.oz&&Aq("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.J=20971520,d.W=1572864,e&&(d.Ob=812500,d.Ug=1E3,d.yq=5,d.Pa=2097152));!b.K("html5_disable_firefox_init_skipping")&&g.Gw&&(d.Yc=!0);b.supportsGaplessAudio()||(d.wl=!1);VA&&(d.Sa=!0);d.Jc=b.K("html5_peak_shave");"onesie"===c.fetchType&&b.K("html5_disable_peak_shave_for_onesie")&&(d.Jc=!1);var f;e=null==(f=c.j)?void 0:Xw(f);if(tD(c)){d.ge=!0;d.zl=!0;d.Ia=!0;d.Zc=!0;d.Pr=!0;if("ULTRALOW"===c.latencyClass||"LOW"===
c.latencyClass&&!b.K("html5_disable_low_pipeline"))d.Bl=2,d.El=4;d.xn=c.defraggedFromSubfragments;c.Ce&&(d.dn=!0);g.KD(c)&&(d.Ta=!1);d.gk=g.UB(b)}c.isAd()&&(d.Hc=0,d.Ye=0,d.Vg=g.eA(b.experiments,"html5_min_startup_buffered_ad_media_duration_secs"));Exa(c)&&(d.ma=!0,b.K("html5_aggressive_timeout_for_streaming_xhr")&&(d.Ug=400,d.Fl=10,d.cn=1,d.Ol=!0,d.Th=5,d.Cl=2,d.Ag=3,d.gi=1.4));d.qb=b.K("html5_enable_subsegment_readahead_v3")||b.K("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;
d.Ib=dC(b);d.Y=d.Ib&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||2<=b.V);Mq()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.K("html5_disable_move_pssh_to_moov")&&e&&(d.Yc=!1);var h=0;b.K("html5_live_use_alternate_bandwidth_window_sizes")&&(h=b.schedule.policy.u,c.isLivePlayback&&(h=g.eA(b.experiments,"ULTRALOW"===c.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":c.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||
h));f=b.schedule;f.oa.j=tD(c)?.5:0;if(!f.policy.j&&h&&(f=f.B,h=Math.round(h*f.resolution),h!==f.j)){var l=Array(h),m=Math.min(h,f.u?f.j:f.valueIndex),n=f.valueIndex-m;0>n&&(n+=f.j);for(var p=0;p<m;++p)l[p]=f.values[(n+p)%f.j];for(;p<h;++p)l[p]=Infinity;f.j=h;f.values=l;f.valueIndex=m%h;f.u=m===h;f.C=!0;f.I=Gva(f)}d.Wg=c.isLivePlayback;switch(DD(c)){case 21530001:d.aj=b.K("html5_live_smoothly_extend_max_seekable_time");d.qb=!0;"LOW"===c.latencyClass?d.oa=g.eA(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):
"ULTRALOW"===c.latencyClass&&(d.oa=g.eA(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Sh=!0;break;case 2153E4:d.qb=!1}c.fg()&&(d.Zj=1.3);d.Sa=d.Sa||c.Uw;d.md=c.Ia;2<=b.V&&(d.Kb=!0);c.Ia&&!e&&b.K("html5_hack_gapless_init")&&(d.di=!0);(e=g.eA(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.Ia&&c.isAd()&&(d.B*=e,d.C*=e);XD(c)&&(d.u=c.videoId,b.K("woffle_pending_promises_killswitch")&&(d.eb=!1),d.Je=!0,d.Zs=4,c.Xm&&0<c.Xm.length&&(d.ye=c.Xm));d.ql=c.Th;d.V=Wz(b,{},c.C||void 0);
c=480<=Tz();e=g.eA(b.experiments,"html5_deadzone_multiplier")||1;d.B*=e;d.C*=e;if(e=g.eA(b.experiments,"html5_request_sizing_multiplier"))d.Jq=e;Uw(b.u,Vw.BITRATE)&&(d.Ob=NaN);b.u.B&&(d.xl="; "+Vw.EXPERIMENTAL.name+"=allowed");c&&(d.qd=0);b.K("html5_prefer_low_quality_audio_means_64k")&&VA&&(d.Ym=!0);b.K("debug_html5_random_stun_format")&&(d.Xh=!0);b.K("html5_log_audio_abr")&&(d.vk=!0);b=a.getAudioTrack();b=b.Fc.isDefault?void 0:b;MQ(a.Bv);if(a.K("html5_onesie_ads"))a:{c=a.ph.tv;if(e=a.videoData.videoId)if(f=
c.j.get(e)){c.j.remove(e);c=f;break a}c=void 0}else c=a.videoData,e=c.wl,delete c.wl,c=e;a.Fa=new g.oQ(a,a.U.schedule,d,a.videoData.j,a.videoData.C,GS(a),b,a.videoData.enableServerStitchedDai,c,a.videoData.Da);d=oNa(a)?!0:a.Yu&&g.oB(a.U)&&a.videoData.isLivePlayback;a.Fa.initialize(a.getCurrentTime(),GS(a),d);a.videoData.probeUrl&&(a.Fa.ma=a.videoData.probeUrl);!a.Tj.length&&!a.Yu||!a.K("woffle_disable_suspend_loader_killswitch")&&a.videoData.cotn||IS(a,!1);LR(a.Xc,a.Fa);a.jd&&jJa(a.Fa,new g.yQ(a.jd));
g.YD(a.videoData)&&(a.Fa.policy.Me=2)};
wS=function(a){a.Fa&&(a.Fa.dispose(),a.Fa=null,LR(a.Xc,null));HS(a)};
HS=function(a){if(a.mediaSource){if(a.Fa){var b=tD(a.videoData)&&a.videoData.Ce&&!a.videoData.isAd();rQ(a.Fa,b)}a.mediaSource.dispose();a.mediaSource=null}};
pNa=function(a){if(a.mediaSource)return a.mediaSource.Hy;a:{try{if(g.Cq()&&a.videoData.tH()){var b=a.mediaElement;b.B&&(b.B.dispose(),b.B=void 0)}var c=a.mediaElement.Br()}catch(d){if(TQ(a.Bk,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.qg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}BN(a,c)}return a.mediaSource?a.mediaSource.Hy:null};
BN=function(a,b){qNa(a);a.mediaSource=b;hua(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){var d=a.getDuration();!d&&tD(a.videoData)&&(d=25200);a.mediaSource.isView?(c=d,c>a.mediaSource.getDuration()&&a.mediaSource.bl(c)):a.mediaSource.bl(d);var e=a.Fa,f=a.mediaSource;e.policy.N&&(e.Si(),e.policy.N=!1);cJa(e);if(!f.j&&!f.u){var h=e.videoTrack.jg(),l=h?h.info.j:e.videoTrack.j,m=e.audioTrack.jg(),n=l.info.mimeType+e.policy.xl,p=(m?m.info.j:e.audioTrack.j).info.mimeType,q,t=
null==(q=f.mediaSource)?void 0:q.addSourceBuffer(p),u,x="fakesb"===n.split(";")[0]?void 0:null==(u=f.mediaSource)?void 0:u.addSourceBuffer(n);f.Cf&&(f.Cf.webkitSourceAddId("0",p),f.Cf.webkitSourceAddId("1",n));var y=new Az(t,f.Cf,"0",bz(p),!1),z=new Az(x,f.Cf,"1",bz(n),!0);f.j=y;f.u=z;g.J(f,y);g.J(f,z)}EP(e.videoTrack,f.u||null);EP(e.audioTrack,f.j||null);e.mediaSource=f;e.resume();g.ju(f.j,e.va,e);g.ju(f.u,e.va,e);try{e.uj()}catch(D){g.S(D)}a.X("mediasourceattached")}}catch(D){g.Bu(D),a.handleError(new fC("fmt.unplayable",
{msi:"1",ename:D.name},1))}})};
qNa=function(a){a.Fa?a.Fa.seek(a.getCurrentTime()-a.ud()).Li(function(){}):yS(a)};
QQ=function(a,b){b=void 0===b?!1:b;return g.B(function(c){if(1==c.j)return!a.K("html5_reset_daistate_on_newelement_killswitch")&&a.Fa&&a.Fa.Er(),a.Fa&&a.Fa.isDisposed()&&wS(a),a.Rb(BF(a.playerState,2048)),a.X("newelementrequired"),b?g.A(c,tS(a),2):c.Ra(2);g.V(a.playerState,8)&&a.playVideo();g.va(c)})};
cGa=function(a,b){a.ra("newelem",{r:b});QQ(a)};
JS=function(a){a.zb.D.gI();g.V(a.playerState,32)||(a.Rb(BF(a.playerState,32)),g.V(a.playerState,8)&&a.pauseVideo(!0),a.X("beginseeking",a));a.Sb()};
YN=function(a){g.V(a.playerState,32)?(a.Rb(DF(a.playerState,16,32)),a.X("endseeking",a)):g.V(a.playerState,2)||a.Rb(BF(a.playerState,16));a.zb.D.lI(a.videoData,g.V(a.playerState,4))};
cNa=function(a){var b=a.videoData.errorDetail;a.qg("auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Ck||void 0)};
uS=function(a,b){a.X("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
rNa=function(a){for(var b=g.r("loadstart loadeddata 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.mw.P(a.mediaElement,c.value,a.FI,a);a.U.ql&&a.mediaElement.Hq()&&(a.mw.P(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.eY,a),a.mw.P(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.fY,a))};
sNa=function(a){window.clearInterval(a.SC);KS(a)||(a.SC=g.lq(function(){return KS(a)},100))};
KS=function(a){var b=a.mediaElement;b&&a.zC&&!a.videoData.kb&&!Cw("vfp",a.zb.timerName)&&2<=b.Pi()&&!b.Gg()&&0<xz(b.Eg())&&a.zb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.kb&&0<b.getDuration()&&(!Cw("pbp",a.zb.timerName)&&b.Vm()&&2<=b.Pi()&&0<xz(b.Eg())&&a.zb.tick("pbp"),b=b.getCurrentTime(),xR(a.mx,b))?(WFa(a),!0):!1};
WFa=function(a){window.clearInterval(a.SC);a.Wr.stop();a.videoData.kb=!0;a.U.Bl=!0;a.U.kb=0;var b=a.Bk;if(b.videoData.B){var c=b.j.u;c.u.delete(b.videoData.B.j);c.j=!0}b.u.stop();a.U.Gj=a.videoData.Ww;a.videoData.VO=!0;tNa(a);g.V(a.playerState,8)&&a.Rb(CF(a.playerState,65));b=a.logging;b.j&&TKa(b.j);b=b.C;c=g.GN(b.j);0>b.u&&(b.u=c,b.delay.start());b.B=c;b.D=c;g.Fn(a.AF);a.X("playbackstarted");g.or()&&((a=g.La("yt.scheduler.instance.clearPriorityThreshold"))?a():pr(0))};
tNa=function(a){var b=a.getCurrentTime(),c=a.ph.fd();!Cw("pbs",a.zb.timerName)&&Uv.measure&&Uv.getEntriesByName&&(Uv.getEntriesByName("mark_nr")[0]?bsa("mark_nr"):bsa());c.videoId&&a.zb.info("docid",c.videoId);c.eventId&&a.zb.info("ei",c.eventId);c.clientPlaybackNonce&&!a.K("web_player_early_cpn")&&a.zb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.zb.info("start",c.startSeconds.toString());if(a.mediaElement&&a.mediaElement.Vm())if(a.U.experiments.fb("web_csi_via_jspb")){var d=new Cp;g.E(d,
6,!0);var e=new Ep;wd(e,Cp,22,d);Bw(e,a.zb.timerName)}else a.zb.info("paused",1);a.U.experiments.fb("web_csi_via_jspb")?(d=new Cp,c.B?(e=Number(c.B.Vb()),g.E(d,1,e)):g.E(d,1,-1),e=new Ep,wd(e,Cp,22,d),Bw(e,a.zb.timerName)):c.B?a.zb.info("fmt",c.B.Vb()):a.zb.info("fmt","-1");c.Je&&(e=a.cH?2:1,a.U.experiments.fb("web_csi_via_jspb")?(d=new Cp,g.E(d,8,e),e=new Ep,wd(e,Cp,22,d),Bw(e,a.zb.timerName)):a.zb.info("yt_pre",String(a.cH?2:1)));a.isFullscreen()&&a.zb.info("yt_fs","1");nw({liveStreamMode:uNa[HD(c)]},
a.zb.timerName);a.zb.info("cmt",b.toFixed(3));if(a.Fa){b=a.Fa.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.D&&(c=window.performance.getEntriesByName(b.D),c.length&&(c=c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("fvb",c.responseStart),b.tick("fvb_r",c.responseStart),b.tick("vrc",c.responseEnd))),b.u&&(c=window.performance.getEntriesByName(b.u),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),
b.tick("areq",c.requestStart),b.tick("avb",c.responseStart),b.tick("fab_r",c.responseStart),b.tick("arc",c.responseEnd))));b=b.ticks;for(var f in b)b.hasOwnProperty(f)&&a.zb.tick(f,b[f])}};
vNa=function(a){a.logging.Od();if(a.videoData.isLivePlayback&&Date.now()>a.NO+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&Nz(a.videoData.j))){var b=a.logging;if(b.qoe){b=b.qoe;var c=b.j.qa.MB(),d=g.GN(b.j);BKa(b,d,c);c=c.D;isNaN(c)||g.aR(b,d,"e2el",[c.toFixed(3)])}}g.UB(a.U)&&a.ra("rawlat",{l:wO(a.HJ,"rawlivelatency").toFixed(3)});a.NO=Date.now()}a.videoData.B&&hz(a.videoData.B)&&(b=QE(a))&&b.videoHeight!==a.CH&&(a.CH=b.videoHeight,ES(a,"a",jNa(a,a.videoData.eb)))};
jNa=function(a,b){if("auto"===b.j.video.quality&&hz(b.cg())&&a.videoData.qc)for(var c=g.r(a.videoData.qc),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.CH&&"auto"!==d.j.video.quality)return d.cg();return b.cg()};
mS=function(a){if(!a.videoData.isLivePlayback)return NaN;var b=0;a.Fa&&a.videoData.j&&(b=tD(a.videoData)?a.Fa.WA.Dh()||0:a.videoData.j.oa);return Date.now()/1E3-a.getIngestionTime()-b};
wNa=function(a){!a.K("html5_ignore_airplay_events_on_new_video_killswitch")&&a.mediaElement&&a.mediaElement.eg()&&(a.hC=(0,g.R)());a.U.Zm?g.kq(function(){LS(a)},0):LS(a)};
LS=function(a){if(a.mediaElement)try{a.RC=a.mediaElement.playVideo()}catch(c){xS(a,"err."+c)}if(a.RC){var b=a.RC;b.then(void 0,function(c){if(!(g.V(a.playerState,4)||g.V(a.playerState,256)||a.RC!==b||c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);xS(a,d);a.FM=!0;a.videoData.dR=!0}})}};
xS=function(a,b){g.V(a.playerState,128)||(a.Rb(DF(a.playerState,1028,9)),a.ra("dompaused",{r:b}),a.X("onAutoplayBlocked"))};
oS=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=pNa(a);var d;null==(d=a.Fa)||d.resume()}else wS(a),a.videoData.eb&&(c=a.videoData.eb.Mw());b=c;d=a.mediaElement.uA();c=!1;d&&d.equals(b)||(xNa(a,b),c=!0);g.V(a.playerState,2)||(b=a.Xc,b.D||!(0<b.C)||b.mediaElement&&0<b.mediaElement.getCurrentTime()||b.seekTo(b.C,{Ee:"playbacktimeline_resumeTime"}));a:if(b=c,g.FD(a.videoData)&&a.mediaElement)if((d=a.videoData.V)&&a.mediaElement.Hq()){var e=a.mediaElement.mf();
if(a.me)if(e!==a.me.element)MS(a);else if(b&&"fairplay"===d.flavor&&!Dq())MS(a);else break a;a.me=new NQ(e,a.videoData,a.U);a.me.subscribe("licenseerror",a.CC,a);a.me.subscribe("qualitychange",a.VY,a);a.me.subscribe("heartbeatparams",a.Wy,a);a.me.subscribe("keystatuseschange",a.aq,a);a.me.subscribe("ctmp",a.ra,a);b=g.r(a.Bv.keys);for(d=b.next();!d.done;d=b.next())d=a.Bv.get(d.value),a.me.wv(d);a.K("html5_eme_loader_sync")||MQ(a.Bv)}else a.qg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"drm.1");return c};
xNa=function(a,b){a.zb.tick("vta");Dw("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&BLa(a.Xc,a.getCurrentTime());a.mediaElement.Ut(b);a.mediaSource&&pr(4);!a.videoData.kb&&g.FF(a.playerState)&&a.Wr.start();if(kNa(a)){var c;if(b=null==(c=a.mediaElement)?void 0:c.audioTracks())b.onchange=function(){a.X("internalaudioformatchange",a.videoData,!0)}}};
MS=function(a){a.me&&(a.me.dispose(),a.me=null)};
CN=function(a,b){b=void 0===b?!1:b;return a.videoData.isLivePlayback&&(a.isAtLiveHead()&&(a.K("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.V(a.playerState,4))||a.Mn()||g.KD(a.videoData))?a.getCurrentTime():a.Gd(b)};
yNa=function(a){a.mediaElement&&(a.mediaSource?(MS(a),HS(a),pNa(a)):(a.videoData.eb&&a.videoData.eb.mJ(),a.mediaElement.stopVideo()),a.playVideo())};
NS=function(a,b){a.U.K("html5_log_rebuffer_reason")&&a.ra("bufreason",{r:b,lact:xt()})};
TN=function(a,b,c,d,e,f){var h;if(null==(h=a.videoData.j)?0:h.isLive){h=2===c.playerType?c:b;var l=b.videoData.videoId,m=c.videoData.videoId;if(l&&m){var n=a.logging;if(n.qoe){n=n.qoe;var p=b.cpn,q=c.cpn,t=h.videoData.qd,u=n.j.videoData.clientPlaybackNonce,x=n.j.videoData.videoId,y=q!==u&&m!==x;u=p!==u&&l!==x;n.reportStats();n.adCpn&&n.adCpn!==p||(n.adCpn=u?p:"",n.V=u?l:"",n.adFormat=u?t:void 0,HKa(n,f?2:0,q,m,e),n.reportStats(),n.adCpn=y?q:"",n.V=y?m:"",n.adFormat=y?t:void 0,HKa(n,f?3:1,p,l,d),n.reportStats())}d=
a.logging;f=b.cpn;d.B.has(f)?(l=d.B.get(f),sR(l).send(),g.mq(l.B),l.B=NaN,d.u.U.K("watch_time_greater_than_playback_time_fix_killswitch")||f===d.u.videoData.clientPlaybackNonce||(tR(l),d.B.delete(f))):(d.Zg=d.u.videoData.clientPlaybackNonce,d.Zg&&d.j&&d.B.set(d.Zg,d.j));d=a.logging;f=c.cpn;h=h.videoData;l=e-a.En();if(d.B.has(f)){var z;null!=(z=d.B.get(f))&&z.C&&isNaN(z.B)&&qR(z,!1)}else z=cLa(d,d.u,h,l),d.B.set(f,z),TKa(z);d.Zg=f;z=a.videoData.clientPlaybackNonce;a=c.videoData;b=(b.cpn===z?"video":
"ad")+"_to_"+(c.cpn===z?"video":"ad");z={};!a.K("web_player_csi_ctt_killswitch")&&a.J&&(z.cttAuthInfo={token:a.J,videoId:a.videoId});z.startTime=e;ow(b,z);nw({targetVideoId:a.videoId,targetCpn:c.cpn},b);mw("pbs",e,b)}}};
zNa=function(a,b){if(dC(a.U)){var c=g.eA(a.U.experiments,"html5_log_rebuffer_events");if(c&&a.mediaElement){var d=a.mediaElement.Nb();d.rt=(1E3*g.GN(a.logging.u)).toFixed();d.e=b.substr(0,3);a.TC[a.wQ++%c]=d}}};
ANa=function(a){if(dC(a.U)){a.TC.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.r(a.TC),c=b.next();!c.done;c=b.next())c=c.value,a.ra("vpe",Object.assign({t:c.rt},c));a.TC=[];a.wQ=0}};
BNa=function(a){if(Aq("cobalt")&&Aq("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.ra("nxdock",{d:b})}};
VFa=function(a,b,c,d,e){a.ra("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
IS=function(a,b){var c;null==(c=a.Fa)||qQ(c,b||oNa(a))};
oNa=function(a){var b=a.K("disable_prefetch_when_ad_pending_for_living_room")&&g.oB(a.U),c=a.K("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.Xb(a.Tj,"ad")};
g.QS=function(a,b,c){g.I.call(this);var d=this;this.logger=new g.qO("App");this.Ky=this.Ah=!1;this.Ws={};this.Xt=new BCa;this.aD={};this.Nv=[];this.uO=!1;this.rH=null;this.yO=!1;this.Or=!0;this.zJ=!1;this.QO=this.EH=null;this.XO=!0;this.mediaElement=this.tb=null;this.cz=!1;this.eR=this.mz=this.Db=this.playlist=null;this.Gz=void 0;this.rq=0;this.zd=this.pw=this.nk=null;this.useLivingRoomPoToken=!1;this.config=pqa(b||{});this.webPlayerContextConfig=c;boa();b=this.config.args||{};this.U=new qB(b,c,c?
c.canaryState:this.config.assets.player_canary_state);g.J(this,this.U);this.yF();this.U.isMobile&&!CNa&&(window.addEventListener(UA?"touchstart":"click",PFa,{capture:!0,passive:!0}),CNa=!0);this.useLivingRoomPoToken=!(null==c||!c.useLivingRoomPoToken);this.K("html5_generate_session_po_token")&&!this.useLivingRoomPoToken&&(this.K("html5_webpo_idle_priority_job")?g.lr(g.nr(),function(){DNa(d)}):DNa(this));
this.K("html5_onesie")&&(this.us=new pN(this.U),g.J(this,this.us));this.qR=Qq($A(this.U)&&!0,b.enablesizebutton);this.xH=Qq(!1,b.player_wide);this.visibility=new JN;g.J(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.kz(this);g.J(this,this.events);this.Zn=new sO;g.J(this,this.Zn);this.An=new sO;g.J(this,this.An);this.Jp=new VGa;this.Oa=new g.BI(this);g.J(this,this.Oa);this.template=new AO(this);g.J(this,this.template);this.appState=1;this.lh=this.U.storeUserVolume?
Lua():{volume:100,muted:this.U.mute};this.G=this.U.B?new AI(this,1):new uI(this,1);g.J(this,this.G);c={};this.xF=(c.internalvideodatachange=this.iY,c.playbackready=this.kY,c.playbackstarted=this.lY,c.statechange=this.mY,c);this.ZV=new OCa(this.Oa);g.J(this,this.ZV);this.yc=ENa(this);this.AX=new g.kz(this);g.J(this,this.AX);this.K("html5_enable_web_assembly")&&this.yc&&kDa(this.yc).then(function(e){d.U.vk=e});
this.zb=new NI(this.U,this.yc);this.rb=FNa(this);c={};this.zQ=(c.airplayactivechange=this.onAirPlayActiveChange,c.airplayavailabilitychange=this.onAirPlayAvailabilityChange,c.beginseeking=this.gI,c.endseeking=this.lI,c.internalAbandon=this.qI,c.internalaudioformatchange=this.Sy,c.internalvideodatachange=this.onVideoDataChange,c.internalvideoformatchange=this.bz,c.liveviewshift=this.XY,c.playbackstalledatstart=this.m_,c.progresssync=this.EZ,c.onLoadProgress=this.onLoadProgress,c.SEEK_COMPLETE=this.HC,
c.SEEK_TO=this.b_,c.onVideoProgress=this.onVideoProgress,c.onLoadedMetadata=this.onLoadedMetadata,c.onAutoplayBlocked=this.onAutoplayBlocked,c.playbackready=this.uZ,c.statechange=this.nQ,c.connectionissue=this.Uy,c.newelementrequired=this.UP,c.heartbeatparams=this.Wy,c.videoelementevent=this.FI,c.drmoutputrestricted=this.onDrmOutputRestricted,c.signatureexpired=this.h_,c.nonfatalerror=this.lZ,c);this.Qp=new g.kz(this);g.J(this,this.Qp);c=10;g.oB(this.U)&&(c=3);TB(this.U)&&(c=g.eA(this.U.experiments,
"tvhtml5_unplugged_preload_cache_size"));this.tv=new rO;g.J(this,this.tv);this.iz=new oO(c,function(e){e!==g.KI(d,e.getPlayerType())&&e.dispose()});
g.J(this,this.iz);this.pG=this.oB=-1;this.nD=new g.K(this.template.resize,16,this.template);g.J(this,this.nD);GNa(this);this.jd=new dO(this.Oa,this.U,this.rb);this.nw=new DN(this);g.J(this,this.nw);KGa(this.U.deviceParams.c);this.events.P(this.Oa,g.Cv("appapi"),this.gY);this.events.P(this.Oa,g.Dv("appapi"),this.hY);this.events.P(this.Oa,g.Cv("appad"),this.AP);this.events.P(this.Oa,g.Dv("appad"),this.AP);this.events.P(this.Oa,g.Cv("appprogressboundary"),this.DZ);this.events.P(this.Oa,g.Dv("applooprange"),
this.pD);this.events.P(this.Oa,"presentingplayerstatechange",this.hh);this.events.P(this.Oa,"resize",this.PZ);this.template.xa(Sca(a));this.events.P(this.Oa,"offlineslatestatechange",this.nZ);this.pK=HNa(this,this.template.element);g.J(this,this.pK);this.yc.G.S().Vg&&fJ(this.yc,"offline");this.U.Hc&&g.VI("ux",g.nN);this.AM=new g.K(this.f0,g.eA(this.U.experiments,"html5_defer_fetch_att_ms"),this);g.J(this,this.AM);this.fd().isValid()&&(g.bv()&&this.fd().oa.push("remote"),OS(this),!this.U.K("html5_delay_initial_loading")&&
PS(this)&&(this.U.zi||this.U.Ze)&&g.FN(this.rb));this.zb.tick("fs");INa(this);this.Id=null;this.U.Hc&&hDa(this.yc);g.iB(this.yc.G.S())&&fJ(this.yc,"music");g.YA(this.yc.G.S())&&fJ(this.yc,"embed");this.K("web_player_sentinel_is_uniplayer")||g.Bu(new g.Ar("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.K("web_player_sentinel_yt_experiments_sync");c=g.Q("web_player_sentinel_yt_experiments_sync");a!==c&&g.Bu(new g.Ar("b/195699950",{yt:a,player:c}));this.SR=JNa(this);if(a=
g.eA(this.U.experiments,"html5_block_pip_safari_delay"))this.uG=new g.K(this.MM,a,this),g.J(this,this.uG);this.U.K("embeds_enable_pem_cookie_blocking_killswitch")||(wq=this.U.Ta);a=g.eA(this.U.experiments,"html5_performance_impact_profiling_timer_ms");0<a&&(this.rQ=new g.Zg(a),g.J(this,this.rQ),this.events.P(this.rQ,"tick",function(){d.sQ&&KNa.ip(d.sQ);d.sQ=KNa.mq("apit")}))};
JNa=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(a.Db||a.rb).logging.xd("player.exception",eC({n:c.name,m:c.message}))}
Cu.subscribe("handleError",b);Up.push(b);return function(){Cu.unsubscribe("handleError",b);var c=Up.indexOf(b);-1!==c&&Up.splice(c,1)}};
FNa=function(a){var b=new g.mD(a.U,a.config.args);b=a.Yo(1,b);b.setPlaybackRate(a.U.j?1:LNa(a,Number(g.$u("yt-player-playback-rate"))||1));g.ju(b,a.xF,a);return b};
ENa=function(a){var b="",c=QGa(a);0===c.indexOf("//")&&(c=a.U.protocol+":"+c);var d=c.lastIndexOf("/base.js");-1!==d&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.Bu(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new cJ(a.Oa,b);MNa(a,b);return b};
MNa=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.u=c};
NNa=function(a,b){var c=a.isVideoInfoVisible();a.nk||(a.nk=new IO(a.Oa),g.J(a,a.nk),g.II(a.Oa,a.nk.element,4));g.wG(a.nk,b);RS(a)&&c!==b&&EI(a.yc).RJ();a=a.Db;b&&a&&a.ra("sfn",{},!0)};
SS=function(a){a.mediaElement=a.U.deviceIsAudioOnly?new g.pJ(g.zg("AUDIO")):wN.pop()||new g.pJ(g.zg("VIDEO"));g.J(a,a.mediaElement);a.Db&&a.Db.setMediaElement(a.mediaElement);try{a.U.qc?(a.pw&&a.events.vc(a.pw),a.pw=a.events.P(a.mediaElement,"volumechange",a.fZ)):(a.mediaElement.Qv(a.lh.muted),a.mediaElement.setVolume(a.lh.volume/100))}catch(d){a.Ef("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.hu(a.Qp);ONa(a);var b=a.template;
b.Hb=a.mediaElement.mf();b.SB=!1;b.Hb.parentNode||g.Cg(b.tx,b.Hb,0);b.YC=new g.Yk(0,0,0,0);UGa(b);BO(b);g.N(b.Hb,"video-stream");g.N(b.Hb,g.zO.MAIN_VIDEO);var c=b.app.S();c.Th&&b.Hb.setAttribute("data-no-fullscreen","true");c.gk&&(b.Hb.setAttribute("webkit-playsinline",""),b.Hb.setAttribute("playsinline",""));c.Ym&&b.Hb&&b.P(b.Hb,"click",b.Hb.play,b.Hb);try{a.mediaElement.Ut()}catch(d){a.Ef("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
IN=function(a,b){if(a.Db!==b){var c=null;if(a.Db){c=a.Db.getPlayerState();hJ(a.yc,3);TS(a,"cuerangesremoved",a.Db.Ek());a.nw&&!b.isGapless()&&a.Db.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var d;if(d=a.zd)d=a.mediaElement,d=!!d&&d===a.zd.mediaElement;d&&(a.Kh(),SS(a));a.Db&&(a.Db.Kh(),ku(a.Db,a.zQ,a),1!==a.Db.getPlayerType()&&a.Db.dispose());a.Db=null}1===b.getPlayerType()&&a.rb!==b&&(b.getVideoData().autonavState=a.rb.getVideoData().autonavState,ku(a.rb,a.xF,a),d=a.rb.getPlaybackRate(),
a.rb.dispose(),a.rb=b,a.rb.setPlaybackRate(d),g.ju(b,a.xF,a),OS(a));d=b.getPlayerType();if(b!==a.rb&&b!==a.Ws[d]){var e;null==(e=a.Ws[d])||e.dispose();a.Ws[d]=b}a.Db=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.ju(b,a.zQ,a);if(b.fC())US(a,"setPresenting",!1,!0);else{a.onVideoDataChange("newdata",b,b.getVideoData());c&&!g.EF(c,b.getPlayerState())&&a.nQ(new g.TE(b.getPlayerState(),c));if(b.Xn.isFinished())a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&
a.Oa.La("onPlaybackQualityChange",c.quality);TS(a,"cuerangesadded",a.Db.Ek());c=b.getPlayerState();g.V(c,2)?PNa(a):g.V(c,8)&&b.playVideo()}}};
PNa=function(a){if(!QNa(a)){var b=a.rb.Hd();b&&(b=b.Gx(),b instanceof Promise&&b.catch(function(){}));
VS(a,IF(a.xb()))}};
ONa=function(a){var b=a.mediaElement;qz()?a.Qp.P(b,"webkitpresentationmodechanged",a.YZ):pz()&&(a.Qp.P(b,"enterpictureinpicture",function(){a.Rv(!0)}),a.Qp.P(b,"leavepictureinpicture",function(){a.Rv(!1)}));
eB&&(a.Qp.P(b,"webkitbeginfullscreen",function(){a.dk(3)}),a.Qp.P(b,"webkitendfullscreen",function(){a.dk(0)}))};
g.KI=function(a,b){return b?1===b?a.rb:a.getVideoData().enableServerStitchedDai&&2===b?!a.K("web_player_enable_preroll_for_ssdai_killswitch")&&a.getVideoData().enablePreroll?a.Ws[2]||a.Db:a.Db:a.Ws[b]||null:a.Db};
WS=function(a,b){return a.Ce(b)?a.rb:b};
XS=function(a,b){var c=a.Db;return c&&b===a.rb&&a.Ce(b)&&a.Ce(c)?c:b};
YS=function(a){if(!RS(a)){var b=iJ(a.yc);b&&!b.created&&eJ(a.yc)&&b.create()}};
RNa=function(a){var b=a.getVideoData(),c=a.yc;gJ(c)||c.WF();fJ(c,"attribution",!1,!0);fJ(c,"embed");fJ(c,"inline_preview");fJ(c,"kids");fJ(c,"remote");fJ(c,"miniplayer");fJ(c,"music");fJ(c,"offline");fJ(c,"unplugged");fJ(c,"ypc",!1,!0);fJ(c,"ypc_clickwrap",!1,!0);fJ(c,"yto",!1,!0);fJ(c,"webgl",!1,!0);c.I?0<c.B&&c.J&&c.J.start():(fJ(c,"captions",!0),fJ(c,"endscreen"),c.XF(),fJ(c,"creatorendscreen",!0));c.fN();gDa(c);a.Oa.X("videoready",b)};
PS=function(a){a=a.fd();a.isValid();return UD(a)};
INa=function(a){a.cG();var b=a.config.args;SS(a);var c=a.fd();a.Oa.La("onVolumeChange",a.lh);if(b&&QI(b)){var d=vB(a.U);d&&!a.Ah&&(b.fetch=0);var e=g.YA(a.U);e&&!a.Ah&&(b.fetch=0);ZS(a,b);g.YA(a.U)&&a.zb.tick("ep_pr_s");if(d&&!a.Ah)$S(a);else if(e&&!a.Ah)aT(a);else if(!c.isValid())a.playlist.onReady(function(){bT(a)})}IN(a,a.rb);
g.V(a.rb.getPlayerState(),128)||(b=cua(!a.U.deviceIsAudioOnly),"fmt.noneavailable"===b?a.Ef("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Ef(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&PS(a)&&(a.U.zi||a.U.Ze)?cT(a):g.$u("yt-player-playback-on-reload")?(g.vr("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.U.authUser}),Sua(!1),cT(a)):$B(a.U)||SNa(a),g.SB(a.U)||"MWEB"===mB(a.U)?(g.lr(g.nr(),function(){dT(a)}),g.lr(g.nr(),
function(){ZBa()})):(dT(a),ZBa()))};
dT=function(a){if(a.K("fetch_att_independently"))g.Fn(a.AM);else{var b=a.getVideoData().botguardData;b&&(a.getVideoData(),g.kI(b,a.U))}};
SNa=function(a){a.Oa.X("initializingmode");a.Km(2);fJ(a.yc,"remote");a.U.K("player_cued_miniplayer_module_killswitch")||fJ(a.yc,"miniplayer")};
cT=function(a){if(g.V(a.rb.getPlayerState(),128))return!1;PS(a)&&a.U.Ze&&(wN.length&&a.Ky?(wI(a,{muted:!1,volume:a.lh.volume},!1),eT(a,!1)):wN.length||a.lh.muted||(wI(a,{muted:!0,volume:a.lh.volume},!1),eT(a,!0)));var b=a.rb.getVideoData();b.xP&&wI(a,{muted:!0,volume:a.lh.volume},!1);fT(a,1,b,!1);a.Oa.X("initializingmode");IN(a,a.rb);a.Km(3);if(!(b=!a.U.zl)){if(b=a.zd)b=a.mediaElement,b=!!b&&b===a.zd.mediaElement;b=b&&a.uO}b&&(a.Kh(),SS(a),a.rb.setMediaElement(a.mediaElement));BS(a.rb);if(g.V(a.rb.getPlayerState(),
128))return!1;VS(a,3);return a.uO=!0};
DNa=function(a){var b=a.K("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN",c=a.K("html5_po_token_enable_webpo_experimental")?"bxNLZUJrsnkb8KzwCOTR":"O43z0dpjhgX20SCx4KAo";b=g.oB(a.U)?b:c;a.K("html5_placeholder_po_tokens")&&(b="2ZCPXHYZSpebQXqOYNtj");try{if(a.qw=Gfa({Qg:b,onError:function(e){g.Bu(e)}}),!a.K("html5_generate_content_po_token")){a.qw.ready().then(function(){TNa(a)});
var d=g.eA(a.U.experiments,"html5_session_po_token_interval_time_ms");0<d&&(a.rJ=g.lq(function(){TNa(a)},d))}}catch(e){e instanceof Error&&g.Bu(e)}};
TNa=function(a){var b,c,d,e;g.B(function(f){if(!a.K("html5_generate_session_po_token")||null==(b=a.qw)||!b.isReady()||a.useLivingRoomPoToken)return f.return();c=a.K("enable_web_eom_visitor_data")?g.P("EOM_VISITOR_DATA")||g.P("VISITOR_DATA"):g.P("VISITOR_DATA");d=a.U.Ql?a.U.datasyncId:c;e=a.U.livingRoomPoTokenId||d;a.U.Me=UNa(a,e);g.va(f)})};
UNa=function(a,b){var c;if(null==(c=a.qw)||!c.isReady())return"";try{var d=a.qw.uv({vx:b});return g.Cc(d,2)}catch(e){return g.Bu(e),""}};
iNa=function(a,b){return g.B(function(c){return a.qw?c.return(a.qw.ready().then(function(){return UNa(a,b)})):c.return(Promise.reject("web po not ready"))})};
RS=function(a){a=EI(a.yc);return!!a&&a.loaded};
VNa=function(a,b){if(!a.tb)return!1;var c=.001*a.tb.startTimeMs-1,d=.001*a.tb.endTimeMs;"repeatChapter"===a.tb.type&&d--;return $f(b,c)||$f(b,d)||b>=c&&b<=d};
WNa=function(a){if(!(g.V(a.rb.getPlayerState(),64)&&a.fd().isLivePlayback&&5E3>a.tb.startTimeMs)){if(a.K("web_repeating_chapters")&&"repeatChapter"===a.tb.type){var b,c=null==(b=xI(a.ib()))?void 0:b.Du(),d;b=null==(d=a.getVideoData())?void 0:d.Ag;c instanceof g.LJ&&b&&(d=b[MK(b,a.tb.startTimeMs)],c.ZI(0,d.title));isNaN(Number(a.tb.loopCount))?a.tb.loopCount=0:a.tb.loopCount++;1===a.tb.loopCount&&a.G.La("innertubeCommand",a.getVideoData().MS)}a.rb.seekTo(.001*a.tb.startTimeMs,{Ee:"application_loopRangeStart"})}};
LNa=function(a,b){var c=a.Oa.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};
hT=function(a,b,c){if(a.Ce(c)){c=c.getVideoData();if(gT(a))c=b;else{a=a.jd;for(var d=g.r(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Ac===e.Ac){b+=e.wc/1E3;break}d=b;a=g.r(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Ac===e.Ac)break;var f=e.wc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Sc/1E3;else break}c=d}return c}return b};
XNa=function(a,b){if(3===a.getPresentingPlayerType())return IF(EI(a.yc).Rd);if(a.getVideoData().enableServerStitchedDai&&2===b){var c;return(null==(c=a.Id)?0:c.isAdPlaying(a.getCurrentTime()))?a.oB:-1}return 2!==b||a.Ce()?a.oB:a.pG};
OS=function(a){iT(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Xt.Xt={};a.aD={};a.Nv=[];QCa(a.zb);if(a.Id){var b=a.Id,c=a.rb;c.getPlayerType();XN(b,!1);ZN(b);pGa(b);b.qa=c}b=a.jd;a=a.rb;1!==a.getPlayerType()&&eO(b,"invalidParentVideoPlayerType");jO(b,!1);lO(b);b.j=a};
$S=function(a){var b=YNa();if(b)if(!b.list)a.ju();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Oa.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.RI(a.playlist).videoId||(b.index=a.playlist.index));TI(a.playlist,b);a.mz&&jT(a,a.mz)}else a.mz=null};
aT=function(a,b){var c=(b?b:a.fd()).mS;a.zb.tick("ep_pr_r");if(null!=c&&(TI(a.playlist,c),a.zJ))a.playlist.onReady(function(){bT(a,b)})};
ZS=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.ju,a),g.ze(a.playlist),a.playlist=null);b&&(a.Ah&&(b.fetch=0),a.playlist=new PI(a.U,b),a.playlist.subscribe("error",a.ju,a))};
bOa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.r(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.getVideoData().clientPlaybackNonce};c=g.yn(c,d);d=void 0;d=void 0===d?!1:d;(d=tv(uv(c,ZNa),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=tv(uv(c,$Na),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=tv(uv(c,aOa),c,d,"Nielsen OCR URL"));g.Gs(c,void 0,d)}return!0};
VS=function(a,b){if(a.Db){var c=a.Db.getPlayerType();if(2===c&&!a.Ce()){a.pG!==b&&(a.pG=b,a.Oa.La("onAdStateChange",b));return}if(2===c&&a.Ce()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.K("clips_disable_end_when_looping")&&0===b&&a.tb||a.oB===b||(a.oB=b,a.Oa.La("onStateChange",b))};
fT=function(a,b,c,d){if(!f){var e=b+"_"+c.videoId+"_"+c.Ac;var f=a.iz.get(e);if(!f)return null;a.iz.remove(e);if(g.V(f.getPlayerState(),128))return f.dispose(),null}if(f===g.KI(a,b))return nw({isCacheHit:!0},a.zb.timerName),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||IN(a,f);nw({isCacheHit:!0},a.zb.timerName);return f};
kT=function(a,b,c){c=g.KI(a,c);b&&c===a.rb&&(c.getVideoData().zg=!0)};
lT=function(a,b,c){c=void 0===c?1:c;if(b.isValid()){var d=a.Yo(c,b);a.cancelPlayback(4,c);IN(a,d);2===c&&a.rb.Hv(b.clientPlaybackNonce,b.qd||"",b.breakType||0,b.Me);1===c&&(a.Km(1),SNa(a))}else b.dispose(),g.ze(g.KI(a,c)),!a.K("web_player_clean_up_adplayer_for_preroll_on_ssdai_killswitch")&&Wxa(a.fd())&&2===c&&delete a.Ws[2]};
cOa=function(a,b,c,d,e){b=DCa(b,c,d,e);(c=g.YA(a.U)&&!a.U.N)&&!a.Ah&&(b.fetch=0);ZS(a,b);g.YA(a.U)&&a.zb.tick("ep_a_pr_s");if(c&&!a.Ah)c=a.fd(),VCa(c,b).then(function(f){a.zJ=!0;aT(a,f)});
else a.playlist.onReady(function(){bT(a)});
g.YA(a.U)&&a.zb.tick("ep_a_pr_r")};
bT=function(a,b){var c=g.YA(a.U)&&!a.U.N,d=c&&b?b:g.RI(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.Fm&&(a.U.zi||a.U.Ze)||!a.Or?(b=b.zg,d=a.Op(d,1),b&&kT(a,d)):lT(a,d,1));g.YA(a.U)&&a.zb.tick("ep_p_l");a.zJ=!1;a.Oa.La("onPlaylistUpdate")};
QNa=function(a){if(a.playlist&&g.dB(a.U)&&a.Lx()){var b=a.U.K("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
jT=function(a,b){var c=g.La(b);c?((b=YNa())&&b.list&&c(),a.mz=null):a.mz=b};
YNa=function(){var a=g.La("yt.www.watch.lists.getState");return a?a():null};
mT=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"===f?(b.style=zv.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=zv.AD_MARKER:(b.style=zv.TIME_MARKER,b.color=e),b.visible=!0);a.hx([new g.Av(1E3*c,1E3*d,b)],1);return!0};
dOa=function(a,b,c,d,e){e=void 0===e?!0:e;var f=a.getIngestionTime();if(!f)return e&&a.getVideoData().isLivePlayback&&a.Nv.push({id:b,A1:c,z1:d}),!1;e=f-a.getCurrentTime();return mT(a,b,c-e,d-e)};
eOa=function(a,b){a.Nv=g.cm(a.Nv,function(f){return f.id!==b});
for(var c=a.rb.Ek(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.rb.removeCueRange(e),TS(a,"cuerangesremoved",[e]),!0}return!1};
fOa=function(a){var b=(0,g.R)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
wI=function(a,b,c){a.U.ma&&(a.lh=b,b.muted||eT(a,!1),c&&a.U.storeUserVolume&&!a.U.qc&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.Zu("yt-player-volume",c),g.Zu("yt-player-volume",c,2592E3))),gOa(a),c=g.oz&&a.mediaElement&&!a.mediaElement.dg(),a.U.qc&&!c||a.Oa.La("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.U.storeUserVolume}))};
gOa=function(a){var b=a.getVideoData();if(!b.Sh){b=a.U.qc?1:Uxa(b);var c=a.mediaElement;c.Qv(a.lh.muted);try{c.setVolume(a.lh.volume*b/100)}catch(d){g.Bu(new g.Ar("b183742307","multiplier: "+b+", volume: "+a.lh.volume))}}};
eT=function(a,b){b!==a.Ky&&(a.Ky=b,a.Oa.La("onMutedAutoplayChange",b))};
nT=function(a){var b=cu(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.mf())?b:null};
iOa=function(a,b){var c=window.screen&&window.screen.orientation;if((a.U.K("lock_fullscreen2")||a.U.I)&&c&&c.lock&&(!g.oz||!hOa))if(b){b=0===c.type.indexOf("portrait");var d=a.template.getVideoAspectRatio(),e=b;1>d?e=!0:1<d&&(e=!1);if(!a.cz||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
a.cz=!0}}else a.cz&&(a.cz=!1,c.unlock())};
TS=function(a,b,c){a.Oa.X(b,c);var d=g.oB(a.U)||g.fB(a.U)||g.gB(a.U);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Oa.La(e,c.map(function(f){return{getId:function(){return this.id},
end:f.end,id:f.getId(),namespace:"ad"===f.namespace?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}};
oT=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.KI(a,e);if(!h||(2!==h.getPlayerType()||a.Ce(h)||f)&&!g.KD(h.getVideoData()))3===a.getPresentingPlayerType()?EI(a.yc).Em("control_seek",b,c):(h===a.rb&&a.tb&&!VNa(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
pT=function(a){a.Oa.La("SIZE_CLICKED",!a.xH)};
US=function(a,b,c,d){c&&(a.Kh(),SS(a));c=g.KI(a);c.xd(new fC("staleconfig",{reason:b}));var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.isLivePlayback?tD(e)&&g.UB(a.U)&&(f.live_utc_start=c.getIngestionTime(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.Pa&&(f.vvt=e.Pa);e.J&&(f.vss_credentials_token=e.J,f.vss_credentials_token_type=e.qj);e.oauthToken&&(f.oauth_token=e.oauthToken);e.Xh&&(f.force_gvi=e.Xh);f.autoplay=1;f.reload_count=e.Zb+1;f.reload_reason=b;e.Xw&&
(f.unplugged_partner_opt_out=e.Xw);e.ge&&(f.ypc_is_premiere_trailer=e.ge);e.playerParams&&(f.player_params=e.playerParams);a.loadVideoByPlayerVars(f,void 0,d);"signature"===b&&a.Id&&YS(a)};
jOa=function(a,b){a.fd().autonavState=b;g.Zu("yt-player-autonavstate",b);a.Oa.X("autonavchange",b)};
kOa=function(a){var b=a.getVideoData().Sh,c=a.U.Yc,d=a.isInline()&&!a.getVideoData().dH,e=a.mediaElement;b||c||d?e.eG():(e.hG(),wI(a,a.lh))};
HNa=function(a,b){return a.U.K("html5_enable_embedded_player_visibility_signals")&&g.YA(a.U)?new yO(b):null};
iT=function(a){(a=iJ(a.ib()))&&a.created&&a.destroy()};
gT=function(a){return(a.K("html5_halftime_limit_timeline_usage_killswitch")||a.getVideoData().enableServerStitchedDai)&&!!a.Id};
lOa=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.r(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=dl(a,d);b.hidden=!!a.hidden};
GNa=function(a){var b=a.U,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;b.K("embeds_enable_request_storage_access_safari_itp")&&g.Ir&&d&&b.j?Jq()||b.Ta?(g.vr("embedsStorageAccessNotChecked",{isIosWebview:Jq(),isPemPlayer:b.Ta}),a.Gz=!1):c.hasStorageAccess().then(function(e){g.vr("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.Gz=!e},function(e){g.vr("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.Bu(Error("Embeds ITP Error: "+e));a.Gz=!1}):a.Gz=!1};
mOa=function(a,b){return g.oB(a.U)&&gq(b)&&fq(b)?g.cC(a.U,g.WD(a.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):vq()};
qT=function(a,b){mOa(a,b).then(function(c){g.Gs(b,void 0,void 0,c)})};
rT=function(a,b){b.forEach(function(c){qT(a,c)})};
QGa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
nOa=function(a){var b;a=null==(b=xI(a.ib()))?void 0:b.Du();if(!(a instanceof g.LJ))return null;var c;return(null==(c=a.VN())?void 0:c.V)||null};
oOa=function(a,b,c,d){var e=1E3*a.getCurrentTime()<c?1:-1;b.ZI(e,d);oT(a,c/1E3)};
sT=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
jv=function(a,b){return a.j.has(b)};
X=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
tT=function(a){return Array.from(a.j.keys())};
qOa=function(a){var b;return(null==(b=pOa.get(a))?void 0:b.Qs)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
vT=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:rOa.get(b.Xa)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Lb&&(c.entryTriggerType=b.Lb.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.Lb)c.debugData.slotEntryTriggerData=uT(a);a=b.Xb;c.debugData.fulfillmentTriggerData=[];a=g.r(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(uT(d.value));b=b.lc;c.debugData.expirationTriggerData=
[];b=g.r(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(uT(a.value))}return c};
sOa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:rOa.get(b.Xa)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
uT=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.Sg&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.Sg);null!=a.wf&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.wf);return c};
tOa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.kk(d||[],function(e){return vT(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
yT=function(a,b){return function(c){return wT(xT(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.Xa,b.Lb,b.Xb,b.lc,c.layoutId,c.layoutType,c.Xa)}};
wT=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:vT(a,{slotId:b,slotType:c,slotPhysicalPosition:d,Xa:e,Lb:f,Xb:h,lc:l,Aa:new sT([])}),layoutData:sOa(a,{layoutId:m,layoutType:n,Xa:p,wd:[],Pc:[],Lc:[],Qc:[],Tc:[],Qb:new Map,Aa:new sT([]),xc:{}})}}};
uOa=function(){return!0};
zT=function(a){this.u=uOa;this.Ja=a;a=Math.random();var b=this.Ja.get();b=g.eA(b.G.S().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
xT=function(a){var b;(b=a.j)||(a=a.Ja.get(),b=a.G.S().K("html5_force_debug_data_for_client_tmp_logs")||a.G.S().K("html5_force_debug_data_for_client_tmp_logs_live_infra"));return b};
vOa=function(a,b){var c={slotId:ov(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Lb:void 0,Xb:[],lc:[],Xa:"surface",Aa:new sT([])},d=Object,e=d.assign;b=pv(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Qb:new Map,wd:[],Pc:[],Lc:[],Qc:[],Tc:[],Xa:"surface",Aa:new sT([]),xc:wT(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.Xa,c.Lb,c.Xb,c.lc,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},
a,{ZW:!0,slot:c,layout:b})};
AT=function(a){this.controller=a};
BT=function(a){this.TF=a};
CT=function(a,b,c){this.TF=a;this.Bi=b;this.Kj=c};
wOa=function(a,b,c){var d=a.TF();switch(b.type){case "SKIP":pAa(d,a.Bi,a.Kj,c)}};
DT=function(){};
ET=function(){};
FT=function(a,b){this.Zk=a;this.U_=b};
GT=function(a,b){this.Qq=a;this.Na=b};
HT=function(a){this.G=a};
IT=function(a,b){this.Uj=a;this.Na=b};
yOa=function(a){g.I.call(this);this.j=a;this.sU=xOa(this)};
xOa=function(a){var b=new lG(a.j.Vc);g.J(a,b);a=g.r([new AT(a.j.fV),new GT(a.j.Qq,a.j.Na),new HT(a.j.G),new IT(a.j.Uj,a.j.Na),new CT(a.j.LX,a.j.Bi,a.j.Kj),new BT(a.j.wV),new ET,new FT(a.j.Zk,a.j.yh),new DT]);for(var c=a.next();!c.done;c=a.next())c=c.value,hAa(b,c),iAa(b,c);a=g.r(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())jG(b,c.value,function(){});
return b};
JT=function(a){this.value=a};
KT=function(a){this.value=a};
LT=function(a){this.value=a};
MT=function(a){this.value=a};
NT=function(a){this.value=a};
OT=function(){JT.apply(this,arguments)};
PT=function(a){this.value=a};
QT=function(a){this.value=a};
RT=function(a){this.value=a};
ST=function(a){this.value=a};
TT=function(a){this.value=a};
UT=function(a){this.value=a};
VT=function(a){this.value=a};
WT=function(a){this.value=a};
XT=function(){JT.apply(this,arguments)};
ZT=function(){JT.apply(this,arguments)};
$T=function(a){this.value=a};
aU=function(a){this.value=a};
bU=function(a){this.value=a};
cU=function(a){this.value=a};
dU=function(a){this.value=a};
eU=function(a){this.value=a};
fU=function(a){this.value=a};
gU=function(a){this.value=a};
hU=function(a){this.value=a};
iU=function(a){this.value=a};
jU=function(a){this.value=a};
kU=function(a){this.value=a};
lU=function(a){this.value=a};
mU=function(a){this.value=a};
nU=function(a){this.value=a};
oU=function(a){this.value=a};
pU=function(a){this.value=a};
qU=function(a){this.value=a};
rU=function(a){this.value=a};
sU=function(a){this.value=a};
tU=function(a){this.value=a};
uU=function(a){this.value=a};
vU=function(a){this.value=a};
wU=function(a){this.value=a};
xU=function(a){this.value=a};
yU=function(a){this.value=a};
zU=function(a){this.value=a};
AU=function(a){this.value=a};
BU=function(a){this.value=a};
CU=function(a){this.value=a};
DU=function(a){this.value=a};
EU=function(a){this.value=a};
FU=function(a){this.value=a};
GU=function(){JT.apply(this,arguments)};
HU=function(a){this.value=a};
IU=function(){JT.apply(this,arguments)};
JU=function(){JT.apply(this,arguments)};
KU=function(){JT.apply(this,arguments)};
LU=function(){JT.apply(this,arguments)};
MU=function(){JT.apply(this,arguments)};
zOa=function(a,b){switch(a){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return b(a),8}};
NU=function(a,b,c,d){g.I.call(this);this.je=b;this.Tb=c;this.Ja=d;this.j=a(this,this,this,this,this);g.J(this,this.j);a=g.r(b);for(b=a.next();!b.done;b=a.next())g.J(this,b.value)};
OU=function(a,b){a.je.add(b);a.Ja.get().G.S().K("html5_not_register_disposables_when_core_listens")||g.J(a,b)};
Lya=function(a,b){jF(a.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",b)};
Mya=function(a,b){jF(a.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.r(a.je);for(var c=a.next();!c.done;c=a.next())c.value.Hi(b)};
Nya=function(a,b){jF(a.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.r(a.je);for(var c=a.next();!c.done;c=a.next())c.value.Sf(b)};
Eya=function(a,b){jF(a.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.r(a.je);for(var c=a.next();!c.done;c=a.next())c.value.Tf(b)};
QU=function(a,b,c){T(c,b,void 0,void 0,c.Rq);PU(a,b,!0)};
COa=function(a,b,c){if(RU(a.j,b))if(SU(a.j,b).C=c?"filled":"not_filled",null===c){TU(a.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.r(a.je);for(var d=c.next();!d.done;d=c.next())d.value.Xk(b);PU(a,b,!1)}else{TU(a.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);TU(a.Tb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);if(d=X(c.Aa,"metadata_type_sub_layouts")){d=g.r(d);for(var e=d.next();!e.done;e=d.next())TU(a.Tb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,e.value)}e=g.r(a.je);for(d=e.next();!d.done;d=
e.next())d.value.Yk(b);if(RU(a.j,b))if(SU(a.j,b).D)PU(a,b,!1);else{TU(a.Tb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.j;if(!SU(f,b))throw new UU("Unknown slotState for onLayout");if(!f.ue.Qn.get(b.slotType))throw new UU("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType);if(g.Yb(c.wd)&&g.Yb(c.Pc)&&g.Yb(c.Lc)&&g.Yb(c.Qc)&&g.Yb(c.Tc))throw new UU("Layout has no exit triggers.");VU(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.wd);VU(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.Pc);VU(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Lc);VU(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Qc);VU(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Tc)}catch(n){a.Ig(b,c,n);PU(a,b,!0);return}SU(a.j,b).I=!0;try{var h=a.j,l=SU(h,b),m=h.ue.Qn.get(b.slotType).get().Pe(h.C,h.u,b,c);m.init();l.layout=c;if(l.B)throw new UU("Already had LayoutRenderingAdapter registered for slot");l.B=m;WU(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.wd);WU(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.Pc);WU(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Lc);WU(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Qc);WU(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Tc)}catch(n){XU(a,b);PU(a,b,!0);a.Ig(b,c,n);return}TU(a.Tb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);f=g.r(a.je);for(d=f.next();!d.done;d=f.next())d.value.Oj(b,c);XU(a,b);AOa(a,b)}else BOa(a.Ja.get())&&T("slot is unscheduled after been fulfilled.",b,c)}};
YU=function(a,b,c){"core"!==b.Xa&&TU(a.Tb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c)};
ZU=function(a,b,c){TU(a.Tb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.r(a.je);for(var d=a.next();!d.done;d=a.next())d.value.Oj(b,c)};
kF=function(a,b,c){a=g.r(a.je);for(var d=a.next();!d.done;d=a.next())d.value.Pj(b,c)};
$U=function(a,b,c){TU(a.Tb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.r(a.je);for(var d=a.next();!d.done;d=a.next())d.value.Rc(b,c)};
fF=function(a,b,c,d){TU(a.Tb,qOa(d),b,c);a=g.r(a.je);for(var e=a.next();!e.done;e=a.next())e.value.hd(b,c,d)};
XU=function(a,b){if(RU(a.j,b)){SU(a.j,b).I=!1;var c=aV;b=SU(a.j,b);var d=[].concat(g.v(b.N));Zb(b.N);c(a,d)}};
aV=function(a,b){b.sort(function(f,h){function l(m){T("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):zOa(f.category,l)-zOa(h.category,l)});
var c=new Map;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,RU(a.j,d.slot))if(SU(a.j,d.slot).I)SU(a.j,d.slot).N.push(d);else{DOa(a.Tb,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.r(EOa);for(d=b.next();!d.done;d=b.next())e=g.r(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&FOa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&GOa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&HOa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
IOa(a,c)};
FOa=function(a,b,c){b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&bV(a.j,d.slot)&&JOa(a,d.slot,d.layout,c)};
GOa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())PU(a,c.value.slot,!1)};
HOa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(SU(a.j,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(jF(a.Tb,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.Jx(c.slot))}};
IOa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;jF(a.Tb,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.r(a.je),e=d.next();!e.done;e=d.next())e.value.Rj(c.slot);try{var f=a.j,h=c.slot,l=SU(f,h);if(!l)throw new Jv("Got enter request for unknown slot");if(!l.u)throw new Jv("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.j)throw new Jv("Tried to enter a slot from stage: "+l.j);if(cV(l))throw new Jv("Got enter request for already active slot");
for(var m=g.r(dV(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&cV(p))throw new Jv("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.j});}}catch(q){T(q,c.slot,eV(a.j,c.slot),void 0,q.Rq);PU(a,c.slot,!0);continue}c=SU(a.j,c.slot);"scheduled"!==c.j&&fV(c.slot,c.j,"enterSlot");c.j="enter_requested";c.u.lB()}};
AOa=function(a,b){if(RU(a.j,b)&&cV(SU(a.j,b))&&eV(a.j,b)&&!bV(a.j,b)){var c;TU(a.Tb,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=eV(a.j,b))?c:void 0);a=SU(a.j,b);"entered"!==a.j&&fV(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.B.startRendering(a.layout)}};
JOa=function(a,b,c,d){if(RU(a.j,b)){var e=a.Tb,f;var h=(null==(f=pOa.get(d))?void 0:f.Gs)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";TU(e,h,b,c);a=SU(a.j,b);"rendering"!==a.j&&fV(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.B.Pf(c,d)}};
PU=function(a,b,c){if(RU(a.j,b)){a:switch(SU(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(SU(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(SU(a.j,b).D=!0,!c))return;if(cV(SU(a.j,b)))SU(a.j,b).D=!0,KOa(a,b,c);else{a:switch(SU(a.j,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)SU(a.j,b).D=!0,RU(a.j,b)&&(jF(a.Tb,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=SU(a.j,b),b.C="fill_cancel_requested",b.J.IF());else{c=
eV(a.j,b);jF(a.Tb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=SU(a.j,b);var e=b.Lb,f=d.oa.get(e.triggerId);f&&(f.hk(e),d.oa.delete(e.triggerId));e=g.r(b.Xb);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d.W.get(f.triggerId);h&&(h.hk(f),d.W.delete(f.triggerId))}e=g.r(b.lc);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.V.get(f.triggerId))h.hk(f),d.V.delete(f.triggerId);null!=d.layout&&(e=d.layout,gV(d,e.wd),gV(d,e.Pc),gV(d,e.Lc),gV(d,e.Qc),gV(d,e.Tc));d.J=void 0;null!=d.u&&(d.u.release(),
d.u=void 0);null!=d.B&&(d.B.release(),d.B=void 0);d=a.j;SU(d,b)&&(d=dV(d,b.slotType+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);jF(a.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.r(a.je);for(d=a.next();!d.done;d=a.next())d=d.value,d.Sj(b),c&&d.Pj(b,c)}}}};
KOa=function(a,b,c){if(RU(a.j,b)&&cV(SU(a.j,b))){var d=eV(a.j,b);if(d&&bV(a.j,b))JOa(a,b,d,c?"error":"abandoned");else{jF(a.Tb,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=SU(a.j,b);if(!e)throw new Jv("Cannot exit slot it is unregistered");"enter_requested"!==e.j&&"entered"!==e.j&&"rendering"!==e.j&&fV(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.u)throw e.j="scheduled",new Jv("Cannot exit slot because adapter is not defined");e.u.nB()}catch(f){T(f,b,void 0,void 0,f.Rq)}}}};
LOa=function(a){this.slot=a;this.oa=new Map;this.W=new Map;this.V=new Map;this.Y=new Map;this.B=this.layout=this.u=this.J=void 0;this.I=this.D=!1;this.N=[];this.j="not_scheduled";this.C="not_filled"};
cV=function(a){return"enter_requested"===a.j||a.isActive()};
UU=function(a,b,c){c=void 0===c?!1:c;Za.call(this,a);this.Rq=c;this.args=[];b&&this.args.push(b)};
hV=function(a,b,c,d,e,f){g.I.call(this);this.ue=a;this.B=b;this.D=c;this.C=d;this.u=e;this.Ja=f;this.j=new Map};
dV=function(a,b){return(a=a.j.get(b))?a:new Map};
SU=function(a,b){return dV(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
MOa=function(a){var b=[];a.j.forEach(function(c){c=g.r(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
RU=function(a,b){return null!=SU(a,b)};
bV=function(a,b){a=SU(a,b);if(b=null!=a.layout)a:switch(a.j){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
eV=function(a,b){(a=SU(a,b))?null!=a.layout&&!a.layout&&T("Unexpected empty layout",b):T("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
iV=function(a,b,c){if(g.Yb(c))throw new Jv("No "+NOa.get(b)+" triggers found for slot.");c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.ue.nj.get(d.triggerType))throw new Jv("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
VU=function(a,b,c){c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.ue.nj.get(d.triggerType))throw new UU("No trigger adapter registered for "+NOa.get(b)+" trigger of type: "+d.triggerType);};
WU=function(a,b,c,d){d=g.r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.ue.nj.get(e.triggerType);f.Yj(c,e,b.slot,b.layout?b.layout:null);b.Y.set(e.triggerId,f)}};
gV=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.Y.get(c.triggerId);d&&(d.hk(c),a.Y.delete(c.triggerId))}};
fV=function(a,b,c){T("Slot stage was "+b+" when calling method "+c,a)};
OOa=function(a){return jV(a.ws).concat(jV(a.nj)).concat(jV(a.Bn)).concat(jV(a.Ao)).concat(jV(a.Qn))};
jV=function(a){var b=[];a=g.r(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Ej&&b.push(c);return b};
kV=function(a){g.I.call(this);this.j=a;this.u=POa(this)};
POa=function(a){var b=new NU(function(c,d,e,f){return new hV(a.j.ue,c,d,e,f,a.j.Ja)},new Set(OOa(a.j.ue).concat(a.j.listeners)),a.j.Tb,a.j.Ja);
g.J(a,b);return b};
lV=function(a){g.I.call(this);var b=this;this.u=a;this.j=null;g.Be(this,function(){g.ze(b.j);b.j=null})};
Y=function(a){return new lV(a)};
mV=function(a){this.j=a};
ZG=function(a,b,c,d){(a=a.j())||T("Could not initiate a command router instance.");a.executeCommand(b,c,d)};
nV=function(a,b,c,d){(a=a.j())||T("Could not initiate a command router instance.");mG(a,b,c,d)};
oV=function(a){return null!=(null==a?void 0:a.layoutId)&&null!=(null==a?void 0:a.layoutType)};
pV=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
QOa=function(a){return null!=a.linearAds&&oV(a.adLayoutMetadata)};
ROa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
TOa=function(a,b,c,d,e,f,h){b=Hra(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof Jv?b:SOa(a,d,e,b,c);return a instanceof Jv?a:[a]};
UOa=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
YOa=function(a,b,c,d,e){b=g.r(b);for(var f=b.next();!f.done;f=b.next())f=f.value,qV(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return VOa(p)});
b=[];f={};for(var h=g.r(a),l=h.next();!l.done;f={Al:f.Al},l=h.next()){f.Al=l.value;l={};for(var m=g.r(f.Al.sF),n=m.next();!n.done;l={xg:l.xg},n=m.next())l.xg=n.value,n=function(p,q){return function(t){return p.xg.YF(t,q.Al.instreamVideoAdRenderer.elementId,p.xg.rF)}}(l,f),l.xg.shouldRemoveCommandTriggeredCompanions?l.xg.isContentVideoCompanion?b.push(WOa(c,d,e,f.Al.instreamVideoAdRenderer.elementId,l.xg.associatedCompositePlayerBytesLayoutId,l.xg.adSlotLoggingData,n)):1<a.length?b.push(rV(c,d,e,f.Al.instreamVideoAdRenderer.elementId,
l.xg.adSlotLoggingData,function(p,q){return function(t){return p.xg.YF(t,q.Al.instreamVideoAdRenderer.elementId,p.xg.rF,p.xg.associatedCompositePlayerBytesLayoutId)}}(l,f))):b.push(rV(c,d,e,f.Al.instreamVideoAdRenderer.elementId,l.xg.adSlotLoggingData,n)):"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===l.xg.Vt?b.push(XOa(c,d,l.xg.wM,e,f.Al.instreamVideoAdRenderer.elementId,l.xg.adSlotLoggingData,n)):b.push(rV(c,d,e,f.Al.instreamVideoAdRenderer.elementId,l.xg.adSlotLoggingData,n))}return b};
qV=function(a,b,c){if(b=ZOa(b)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=$Oa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.XB=c)}else T("InstreamVideoAdRenderer without externalVideoId")}};
ZOa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&a.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer;if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.r(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,c.instreamVideoAdRenderer&&b.push(c.instreamVideoAdRenderer);return b}return null};
VOa=function(a){if(void 0===a.instreamVideoAdRenderer)return T("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.r(a.sF),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.YF)return!1;if(void 0===c.rF)return T("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.XB||void 0===c.Vt||a.XB!==c.Vt&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.Vt)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return T("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.XB,"matching APSR kind":c.Vt}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.Vt&&void 0===c.wM)return T("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
$Oa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,XB:void 0,adVideoId:b,sF:[]});return a.get(b)};
sV=function(a,b,c,d,e,f,h,l,m,n){f?$Oa(a,f).sF.push({wM:b,Vt:c,shouldRemoveCommandTriggeredCompanions:d,isContentVideoCompanion:e,rF:l,associatedCompositePlayerBytesLayoutId:h,adSlotLoggingData:m,YF:n}):T("Companion AdPlacementSupportedRenderer without adVideoId")};
bPa=function(a){if(!a.questions||1!==a.questions.length||!a.playbackCommands)return!1;var b,c,d=(null==(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)?void 0:b.surveyAdQuestionCommon)||(null==(c=a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer)?void 0:c.surveyAdQuestionCommon);return aPa(d)?!0:!1};
cPa=function(a){a=((null==a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;a?a.playbackCommands&&a.questions&&1===a.questions.length?(a=null==(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)?void 0:b.surveyAdQuestionCommon,b=aPa(a)):b=!1:b=!1;return b};
aPa=function(a){if(!a)return!1;var b=(a.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;a=(null==b?void 0:b.skipOrPreviewRenderer)||{};var c=a.skipAdRenderer;b=((null==b?void 0:b.adInfoRenderer)||{}).adHoverTextButtonRenderer;return(a.adPreviewRenderer||c)&&b?!0:!1};
tV=function(a){var b=0;a=g.r(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=c.instreamSurveyAdMultiSelectQuestionRenderer||c.instreamSurveyAdSingleSelectQuestionRenderer){var d=void 0;b+=(null==(d=c.surveyAdQuestionCommon)?void 0:d.durationMilliseconds)||0}return b};
uV=function(a){var b,c,d,e,f=(null==(b=a.questions)?void 0:null==(c=b[0].instreamSurveyAdMultiSelectQuestionRenderer)?void 0:c.surveyAdQuestionCommon)||(null==(d=a.questions)?void 0:null==(e=d[0].instreamSurveyAdSingleSelectQuestionRenderer)?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.v((null==(h=a.playbackCommands)?void 0:h.instreamAdCompleteCommands)||[]),g.v((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,t,u,x,y,z,D,H,G,L,aa,M,sa,za,ba,qa;return{impressionCommands:null==(l=a.playbackCommands)?
void 0:l.impressionCommands,errorCommands:null==(m=a.playbackCommands)?void 0:m.errorCommands,muteCommands:null==(n=a.playbackCommands)?void 0:n.muteCommands,unmuteCommands:null==(p=a.playbackCommands)?void 0:p.unmuteCommands,pauseCommands:null==(q=a.playbackCommands)?void 0:q.pauseCommands,rewindCommands:null==(t=a.playbackCommands)?void 0:t.rewindCommands,resumeCommands:null==(u=a.playbackCommands)?void 0:u.resumeCommands,skipCommands:null==(x=a.playbackCommands)?void 0:x.skipCommands,progressCommands:null==
(y=a.playbackCommands)?void 0:y.progressCommands,Lja:null==(z=a.playbackCommands)?void 0:z.clickthroughCommands,fullscreenCommands:null==(D=a.playbackCommands)?void 0:D.fullscreenCommands,activeViewViewableCommands:null==(H=a.playbackCommands)?void 0:H.activeViewViewableCommands,activeViewMeasurableCommands:null==(G=a.playbackCommands)?void 0:G.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(L=a.playbackCommands)?void 0:L.activeViewFullyViewableAudibleHalfDurationCommands,
activeViewAudioAudibleCommands:null==(aa=a.playbackCommands)?void 0:null==(M=aa.activeViewTracking)?void 0:M.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(sa=a.playbackCommands)?void 0:null==(za=sa.activeViewTracking)?void 0:za.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(ba=a.playbackCommands)?void 0:ba.endFullscreenCommands,abandonCommands:null==(qa=a.playbackCommands)?void 0:qa.abandonCommands,completeCommands:b}};
ePa=function(a,b,c,d,e,f,h){return function(l,m){return dPa(a,m.slotId,l,f,function(n,p){n=h(n);return vV(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new gU(c),d],c.adLayoutLoggingData)})}};
hPa=function(a,b,c,d,e,f,h){if(!fPa(a))return new Jv("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[gPa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=pv(e.Va.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Xa:"core"},q=new wV(e.j,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Qb:new Map,wd:[q],Pc:[],
Lc:[],Qc:[],Tc:[],Xa:"core",Aa:new sT([new hU(l)]),xc:n(p)}})]};
fPa=function(a){a=((null==a?void 0:a.additionalPlayerOverlay)||{}).slidingTextPlayerOverlayRenderer;if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
kPa=function(a,b,c,d,e){var f;if(null==(f=a.playerOverlay)||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!cPa(a))return function(){return new Jv("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=tV(h);return 0>=l?function(){return new Jv("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=iPa(m,c,d,function(q){var t=n(q),u=q.slotId;
q=uV(h);u=pv(e.Va.get(),"LAYOUT_TYPE_SURVEY",u);var x={layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",Xa:"core"},y=new wV(e.j,d),z=new xV(e.j,u),D=new yV(e.j,u),H=new jPa(e.j);return{layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",Qb:new Map,wd:[y,H],Pc:[z],Lc:[],Qc:[D],Tc:[],Xa:"core",Aa:new sT([new fU(h),new TT(b),new EU(l/1E3),new IU(q)]),xc:t(x),adLayoutLoggingData:h.adLayoutLoggingData}});
m=hPa(a,c,p.slotId,d,e,m,n);return m instanceof Jv?m:[p].concat(g.v(m))}};
sPa=function(a,b,c,d,e){var f=[];try{var h=[];if(c.renderer.linearAdSequenceRenderer)var l=function(u){u=lPa(u.slotId,c,b,e(u),d);h=u.N0;return u.IV};
else if(c.renderer.instreamVideoAdRenderer)l=function(u){var x=u.slotId;u=e(u);var y=c.config.adPlacementConfig,z=mPa(y),D=z.vN;z=z.yN;var H=c.renderer.instreamVideoAdRenderer,G;if(null==H?0:null==(G=H.playerOverlay)?0:G.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var L=nPa(H);G=Math.min(D+1E3*L.videoLengthSeconds,z);z=new mE(0,[L.videoLengthSeconds],G);var aa=L.videoLengthSeconds,M=L.playerVars,sa=L.instreamAdPlayerOverlayRenderer,za=L.adVideoId,
ba=oPa(c),qa=L.Qb;L=L.uM;var fb=null==H?void 0:H.adLayoutLoggingData;H=null==H?void 0:H.sodarExtensionData;x=pv(b.Va.get(),"LAYOUT_TYPE_MEDIA",x);var bb={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",Qb:qa,wd:[new zV(b.j)],Pc:[],Lc:[],Qc:[],Tc:[],Xa:"core",Aa:new sT([new $T(d),new qU(aa),new rU(M),new tU(D),new uU(G),sa&&new aU(sa),new TT(y),new XT(za),new UT(z),new zU(ba),H&&new sU(H),new mU({current:null}),new wU({}),new MU(L)].filter(pPa)),
xc:u(bb),adLayoutLoggingData:fb}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var m=qPa(a,d,l);f.push(m);for(var n=g.r(h),p=n.next();!p.done;p=n.next()){var q=p.value,t=q(a,e);if(t instanceof Jv)return t;f.push.apply(f,g.v(t))}}catch(u){return new Jv(u,{errorMessage:u.message,AdPlacementRenderer:c,numberOfSurveyRenderers:rPa(c)})}return f};
rPa=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};
lPa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,h=mPa(f),l=h.vN,m=h.yN;h=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==h||!h.length)throw new TypeError("Expected linear ads");var n=[],p={wR:l,xR:0,J0:n};h=h.map(function(t){return tPa(a,t,p,c,d,f,e,m)}).map(function(t,u){u=new mE(u,n,m);
return t(u)});
var q=h.map(function(t){return t.JV});
return{IV:uPa(c,a,l,q,f,oPa(b),d,m),N0:h.map(function(t){return t.M0})}};
tPa=function(a,b,c,d,e,f,h,l){var m=nPa(b.instreamVideoAdRenderer),n=c.wR,p=c.xR,q=Math.min(n+1E3*m.videoLengthSeconds,l);c.wR=q;c.xR++;c.J0.push(m.videoLengthSeconds);var t,u,x=null==(t=b.instreamVideoAdRenderer)?void 0:null==(u=t.playerOverlay)?void 0:u.instreamSurveyAdRenderer;if("nPpU29QrbiU"===m.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(y){var z=m.playerVars;2<=y.u&&(z.slot_pos=y.j);z.autoplay="1";var D,H;z=m.videoLengthSeconds;var G=m.playerVars,
L=m.Qb,aa=m.uM,M=m.instreamAdPlayerOverlayRenderer,sa=m.adVideoId,za=null==(D=b.instreamVideoAdRenderer)?void 0:D.adLayoutLoggingData;D=null==(H=b.instreamVideoAdRenderer)?void 0:H.sodarExtensionData;H=pv(d.Va.get(),"LAYOUT_TYPE_MEDIA",a);var ba={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"adapter"};y={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Qb:L,wd:[],Pc:[],Lc:[],Qc:[],Tc:[],Xa:"adapter",Aa:new sT([new $T(h),new qU(z),new rU(G),new tU(n),new uU(q),new vU(p),new mU({current:null}),M&&new aU(M),
new TT(f),new XT(sa),new UT(y),D&&new sU(D),x&&new LU(x),new wU({}),new MU(aa)].filter(pPa)),xc:e(ba),adLayoutLoggingData:za};z=kPa(b.instreamVideoAdRenderer,f,h,y.layoutId,d);return{JV:y,M0:z}}};
nPa=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=$p(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,Qb:a.pings?pE(a.pings):new Map,uM:oE(a.pings)}};
oPa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
mPa=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{vN:b,yN:a}};
wPa=function(a,b,c,d,e,f,h){var l=c.pings;return l?[vPa(a,f,e,function(m){var n=m.slotId;m=h(m);var p=c.adLayoutLoggingData;n=pv(b.Va.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Xa:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Qb:pE(l),wd:[new AV(b.j,f)],Pc:[],Lc:[],Qc:[],Tc:[],Xa:"core",Aa:new sT([new TT(d)]),xc:m(q),adLayoutLoggingData:p}})]:new Jv("VideoAdTrackingRenderer without VideoAdTracking pings filled.",
{videoAdTrackingRenderer:c})};
yPa=function(a,b,c,d,e,f,h,l){a=xPa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=pv(b.Va.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Xa:"core"},q=new Map,t=e.impressionUrls;t&&q.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Qb:q,wd:[new BV(b.j,n)],Pc:[],Lc:[],Qc:[],Tc:[],Xa:"core",Aa:new sT([new yU(e),new TT(c)]),xc:m(p)}});
return a instanceof Jv?a:[a]};
APa=function(a,b,c,d,e,f,h,l){a=zPa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=pv(b.Va.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=CV(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,DV(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=pv(b.Va.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=CV(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,DV(b,n,p))):q.imageOverlayAdContentRenderer?(q=pv(b.Va.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=DV(b,n,p),n.push(new EV(b.j,q)),n=CV(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new UU("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new UU("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof Jv?a:[a]};
DPa=function(a,b,c,d,e,f,h){var l=Number(d.durationMilliseconds);return isNaN(l)?new Jv("Expected valid duration for AdActionInterstitialRenderer."):function(m){return BPa(b,m.slotId,c,l,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(m),function(n){return CPa(a,n,e,function(p,q){var t=p.slotId;p=h(p);t=pv(b.Va.get(),"LAYOUT_TYPE_ENDCAP",t);
return vV(b,t,q,c,p,"LAYOUT_TYPE_ENDCAP",[new dU(d)],d.adLayoutLoggingData)})},d.adLayoutLoggingData,f)}};
EPa=function(a,b,c,d){if(!c.playerVars)return new Jv("No playerVars available in AdIntroRenderer.");var e=$p(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=pv(a.Va.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"adapter"};return{Ps:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Qb:new Map,wd:[],Pc:[],Lc:[],Qc:[],Tc:[],Xa:"adapter",Aa:new sT([new xU({}),new TT(b),new mU({current:null}),new rU(e)]),xc:f(l)},nu:[new FV(a.j,h,"error")],jr:[],aB:[],
ZA:[]}}};
GPa=function(a,b,c,d,e,f,h,l){var m=tV(e);if(!bPa(e))return new Jv("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new Jv("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=ePa(a,b,e,f,c,d,h);return n instanceof Jv?n:function(p){return FPa(b,p.slotId,c,m,uV(e),h(p),n,l)}};
HPa=function(a,b,c,d,e,f,h){function l(p){return CPa(a,p,d,m)}
function m(p,q){var t=p.slotId;p=h(p);t=pv(b.Va.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return vV(b,t,q,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new eU(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 Jv("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var n=1E3*e.timeoutSeconds;return function(p){var q={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},t=
h(p);p=GV(b,p.slotId,c,n,q,new Map,t,l);q=new jU(p.HI);return{Ps:{layoutId:p.layoutId,layoutType:p.layoutType,Qb:p.Qb,wd:[],Pc:[],Lc:[],Qc:[],Tc:[],Xa:p.Xa,Aa:new sT([].concat(g.v(p.sx),[q])),xc:p.xc,adLayoutLoggingData:p.adLayoutLoggingData},nu:[],jr:p.Lc,aB:p.Qc,ZA:p.Tc,Ii:p.Ii}}};
KPa=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){d=ov(d,"SLOT_TYPE_PLAYER_BYTES");a=IPa(e,a,h,c,d,m,n);if(a instanceof Jv)return a;var x;h=null==(x=X(a.Aa,"metadata_type_fulfilled_layout"))?void 0:x.layoutId;if(!h)return new Jv("Invalid adNotify layout");b=JPa(h,e,f,c,l,b,m,p,q,t,u);return b instanceof Jv?b:[a].concat(g.v(b))};
JPa=function(a,b,c,d,e,f,h,l,m,n,p){c=LPa(c,d,f,h,l,m,n,p);if(c instanceof Jv)return c;a=MPa(b,a,h,e,c);return a instanceof Jv?a:[].concat(g.v(a.ej),[a.Cv])};
OPa=function(a,b,c,d,e,f,h,l,m,n,p){b=LPa(b,c,e,f,l,m,n,p);if(b instanceof Jv)return b;a=NPa(a,c,f,h,d,l.fg,b);return a instanceof Jv?a:a.ej.concat(a.Cv)};
LPa=function(a,b,c,d,e,f,h,l){var m=HV(c);return m instanceof UU?new Jv(m):function(n){var p=new mE(0,[m.FA]),q=PPa(m.playerVars,m.QQ,e,l,p);n=f(n);var t=h.get(m.OD.externalVideoId);p=QPa(a,"core",m.OD,b,q,m.FA,d,p,n,t);return{layout:{layoutId:p.layoutId,layoutType:p.layoutType,Qb:p.Qb,wd:p.wd,Pc:p.Pc,Lc:p.Lc,Qc:p.Qc,Tc:p.Tc,Xa:p.Xa,Aa:new sT(p.aN),xc:p.xc,adLayoutLoggingData:p.adLayoutLoggingData},ej:[]}}};
HV=function(a){if(!a.playerVars)return new UU("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 UU("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=$p(a.playerVars);var c=Number(b.length_seconds);isNaN(c)&&(c=0,T("Expected valid length seconds in player vars but got NaN"));
return{OD:a,playerVars:b,QQ:a.playerVars,FA:c}};
PPa=function(a,b,c,d,e){a.iv_load_policy=d;b=$p(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){T(f)}c.kh&&(a.ctrl=c.kh);c.Jh&&(a.ytr=c.Jh);c.jn&&(a.ytrcc=c.jn);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.qj&&(a.vss_credentials_token_type=c.qj),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.j);a.autoplay="1";return a};
SPa=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x){a=ov(a,"SLOT_TYPE_PLAYER_BYTES");d=IPa(b,h,d,e,a,n,p);if(d instanceof Jv)return d;var y;h=null==(y=X(d.Aa,"metadata_type_fulfilled_layout"))?void 0:y.layoutId;if(!h)return new Jv("Invalid adNotify layout");b=RPa(h,b,c,e,f,m,l,n,q,t,u,x);return b instanceof Jv?b:[d].concat(g.v(b))};
RPa=function(a,b,c,d,e,f,h,l,m,n,p,q){a=MPa(b,a,l,e,TPa(b,c,d,f,h,l,m,n,p,q));return a instanceof Jv?a:[].concat(g.v(a.ej),[a.Cv])};
VPa=function(a,b,c,d,e,f,h,l,m,n,p,q){b=TPa(a,b,c,e,f,h,m,n,p,q);a:{e=g.r(e);for(f=e.next();!f.done;f=e.next())if(f.value.instreamSurveyAdRenderer){e=!0;break a}e=!1}e?(c=UPa(a,c,h,l),c instanceof Jv?d=c:(h=ov(a.Va.get(),"SLOT_TYPE_IN_PLAYER"),l=pv(a.Va.get(),"LAYOUT_TYPE_SURVEY",h),a=[].concat(g.v(c.lc),[new IV(a.j,l)]),h=b({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,Xa:c.Xa,Lb:c.Lb,Xb:c.Xb,lc:a},{slotId:h,layoutId:l}),d=h instanceof Jv?h:{Cv:{slotId:c.slotId,
slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,Lb:c.Lb,Xb:c.Xb,lc:a,Xa:c.Xa,Aa:new sT([new AU(h.layout)]),adSlotLoggingData:d},ej:h.ej})):d=NPa(a,c,h,l,d,m.fg,b);return d instanceof Jv?d:d.ej.concat(d.Cv)};
TPa=function(a,b,c,d,e,f,h,l,m,n){return function(p,q){a:{b:{var t=[];for(var u=g.r(d),x=u.next();!x.done;x=u.next())if(x=x.value,x.instreamVideoAdRenderer){x=HV(x.instreamVideoAdRenderer);if(x instanceof UU){t=new Jv(x);break b}t.push(x.FA)}}if(t instanceof Jv)q=t;else{u=0;x=[];for(var y=[],z=[],D=[],H=[],G=[],L=new nU({current:null}),aa=new WT({current:null}),M=!1,sa=[],za=g.r(d),ba=za.next();!ba.done;ba=za.next())if(ba=ba.value,ba.adIntroRenderer){ba=EPa(b,c,ba.adIntroRenderer,l);if(ba instanceof
Jv){q=ba;break a}ba=ba(p);x.push(ba.Ps);y=[].concat(g.v(ba.nu),g.v(y));z=[].concat(g.v(ba.jr),g.v(z));ba.Ii&&(sa=[ba.Ii].concat(g.v(sa)))}else if(ba.instreamVideoAdRenderer){var qa=HV(ba.instreamVideoAdRenderer);if(qa instanceof UU){q=new Jv(qa);break a}var fb=new mE(u,t);ba=b;var bb=qa.OD,ub=PPa(qa.playerVars,qa.QQ,h,n,fb),vb=l(p),tc=m.get(qa.OD.externalVideoId);qa=QPa(ba,"adapter",bb,c,ub,qa.FA,f,fb,vb,tc);fb=qa.Pc;ub=qa.aN;bb.adPodSkipTarget&&0<bb.adPodSkipTarget&&(ub.push(aa),ub.push(new VT(bb.adPodSkipTarget)),
fb=[]);bb.isCritical&&(fb=[new FV(ba.j,qa.layoutId,"error")].concat(g.v(fb)));ba={layoutId:qa.layoutId,layoutType:qa.layoutType,Qb:qa.Qb,wd:[],Pc:[],Lc:[],Qc:[],Tc:[],Xa:qa.Xa,Aa:new sT(ub),xc:qa.xc,adLayoutLoggingData:qa.adLayoutLoggingData};bb=fb;qa=qa.Lc;u++;x.push(ba);y=[].concat(g.v(bb),g.v(y));z=[].concat(g.v(qa),g.v(z));M||(G.push(aa),M=!0)}else if(ba.adActionInterstitialRenderer){ba=DPa(a,b,c,ba.adActionInterstitialRenderer,f,u,l);if(ba instanceof Jv){q=ba;break a}ba=ba(p);x.push(ba.Ps);y=
[].concat(g.v(ba.nu),g.v(y));z=[].concat(g.v(ba.jr),g.v(z));ba.Ii&&(sa=[ba.Ii].concat(g.v(sa)))}else if(ba.instreamSurveyAdRenderer){if(void 0===q){q=new Jv("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:ba.instreamSurveyAdRenderer});break a}ba=GPa(a,b,c,f,ba.instreamSurveyAdRenderer,L,l,q);if(ba instanceof Jv){q=ba;break a}ba=ba(p);x.push(ba.Ps);ba.Ii&&sa.push(ba.Ii);y=[].concat(g.v(ba.nu),g.v(y));z=[].concat(g.v(ba.jr),g.v(z));D=[].concat(g.v(ba.aB),
g.v(D));H=[].concat(g.v(ba.ZA),g.v(H));G=[L].concat(g.v(G))}else if(ba.surveyTextInterstitialRenderer){ba=HPa(a,b,c,f,ba.surveyTextInterstitialRenderer,L,l);if(ba instanceof Jv){q=ba;break a}ba=ba(p);x.push(ba.Ps);ba.Ii&&sa.push(ba.Ii);z=[].concat(g.v(ba.jr),g.v(z))}else{q=new Jv("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}q={K0:x,Pc:y,Qc:D,Tc:H,Lc:z,sx:G,ej:sa}}}q instanceof Jv?p=q:(H=p.slotId,t=q.K0,u=q.Pc,x=q.Lc,y=q.Qc,z=q.sx,p=l(p),D=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",
H=e?e.layoutId:pv(b.Va.get(),D,H),G={layoutId:H,layoutType:D,Xa:"core"},p={layout:{layoutId:H,layoutType:D,Qb:new Map,wd:[new BV(b.j,H)],Pc:u,Lc:x,Qc:y,Tc:[],Xa:"core",Aa:new sT([new oU(t)].concat(g.v(z))),xc:p(G)},ej:q.ej});return p}};
XPa=function(a,b,c,d,e,f,h){if(!bPa(c))return new Jv("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=tV(c);if(0>=l)return new Jv("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new nU({current:null}),n=ePa(a,b,c,m,d,f,h);return WPa(a,d,f,l,e,function(p,q){var t=p.slotId,u=uV(c);p=h(p);t=pv(b.Va.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xa:"core"},y=n(t,
q);X(y.Aa,"metadata_type_fulfilled_layout")||T("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new TT(d),new FU(l),new IU(u),new JU(!0),m];return{wX:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Qb:new Map,wd:[new BV(b.j,t)],Pc:[new xV(b.j,q.layoutId)],Lc:[],Qc:[new yV(b.j,q.layoutId)],Tc:[],Xa:"core",Aa:new sT(u),xc:p(x)},UW:y}})};
YPa=function(a){if(!ROa(a))return!1;var b=a.adVideoStart.adMessageRenderer;return b?a.linearAd.instreamVideoAdRenderer&&dF(b)?!0:(T("Invalid Sandwich with notify"),!1):!1};
ZPa=function(a){if(null==a.linearAds)return!1;var b;a=null==(b=a.adStart)?void 0:b.adMessageRenderer;return a?dF(a)?!0:(T("Invalid LASR with notify"),!1):!1};
$Pa=function(a){if(!QOa(a))return!1;var b;a=null==(b=a.adStart)?void 0:b.adMessageRenderer;return a?dF(a)?!0:(T("Invalid LASR with notify"),!1):!1};
JV=function(a,b,c,d,e,f,h,l){this.Va=a;this.yb=b;this.gb=c;this.Ja=d;this.ub=e;this.j=f;this.ai=h;this.loadPolicy=void 0===l?1:l};
nra=function(a,b,c,d,e,f,h){var l=[];if(0===b.length&&0===c.length)return l;b=b.filter(pV);for(var m=c.filter(pV),n=new Map,p=new Map,q=g.r(b),t=q.next();!t.done;t=q.next())(t=t.value.renderer.remoteSlotsRenderer)&&t.hostElementId&&p.set(t.hostElementId,t);q=g.r(b);for(t=q.next();!t.done;t=q.next()){t=t.value;var u=aQa(a,n,t,d,e,f,h,p);u instanceof Jv?T(u,void 0,void 0,{renderer:t.renderer,config:t.config.adPlacementConfig,kind:t.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):l.push.apply(l,
g.v(u))}bQa(a.Ja.get())||(e=cQa(a,m,d,h,p,n),l.push.apply(l,g.v(e)));if(null===a.j||f&&!h.lN){var x,y,z;a=h.fg&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(x=b[0].config)?void 0:null==(y=x.adPlacementConfig)?void 0:y.kind)&&(null==(z=b[0].renderer)?void 0:z.adBreakServiceRenderer);if(!l.length&&!a){var D,H,G,L;T("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,"first APR kind":null==(D=b[0])?void 0:null==
(H=D.config)?void 0:null==(G=H.adPlacementConfig)?void 0:G.kind,renderer:null==(L=b[0])?void 0:L.renderer})}return l}x=c.filter(pV);l.push.apply(l,g.v(YOa(n,x,a.yb.get(),a.j,d)));if(!l.length){var aa,M,sa,za;T("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f.toString(),"first APR kind":null==(aa=b[0])?void 0:null==(M=aa.config)?void 0:null==(sa=M.adPlacementConfig)?void 0:sa.kind,renderer:null==(za=b[0])?void 0:za.renderer})}return l};
cQa=function(a,b,c,d,e,f){function h(t){return yT(a.ub.get(),t)}
var l=[];b=g.r(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&&YPa(p)?(q=p.adVideoStart.adMessageRenderer,p=p.linearAd.instreamVideoAdRenderer,qV(f,n,m.config.adPlacementConfig.kind),m=JPa(q.layout.layoutId,a.yb.get(),a.gb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Ja.get()),m instanceof Jv?T(m):l.push.apply(l,g.v(m))):q&&(!q.adLayoutMetadata&&ZPa(q)||q.adLayoutMetadata&&$Pa(q))&&
(qV(f,n,m.config.adPlacementConfig.kind),m=RPa(q.adStart.adMessageRenderer.layout.layoutId,a.yb.get(),a.gb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,oV(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Ja.get()),m instanceof Jv?T(m):l.push.apply(l,g.v(m)))}return l};
aQa=function(a,b,c,d,e,f,h,l){function m(y){return yT(a.ub.get(),y)}
var n=c.renderer,p=c.config.adPlacementConfig,q=p.kind,t=c.adSlotLoggingData,u=h.lN&&"AD_PLACEMENT_KIND_START"===q;u=f&&!u;if(null!=n.adsEngagementPanelRenderer)return sV(b,c.elementId,q,n.adsEngagementPanelRenderer.shouldRemoveCommandTriggeredCompanions,n.adsEngagementPanelRenderer.isContentVideoEngagementPanel,n.adsEngagementPanelRenderer.adVideoId,n.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,p,t,function(y,z,D,H){var G;if(null==(G=n.adsEngagementPanelRenderer)?0:G.shouldRemoveCommandTriggeredCompanions){G=
a.gb.get();var L=n.adsEngagementPanelRenderer,aa=yT(a.ub.get(),y);y=KV(G,y.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new LT(L),z,D,L.impressionPings,aa,n.adsEngagementPanelRenderer.adLayoutLoggingData,H)}else H=a.gb.get(),G=n.adsEngagementPanelRenderer,L=yT(a.ub.get(),y),y=LV(H,y.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new LT(G),z,D,G.impressionPings,L,n.adsEngagementPanelRenderer.adLayoutLoggingData);return y}),[];
if(null!=n.actionCompanionAdRenderer)sV(b,c.elementId,q,n.actionCompanionAdRenderer.shouldRemoveCommandTriggeredCompanions,n.actionCompanionAdRenderer.isContentVideoCompanion,n.actionCompanionAdRenderer.adVideoId,n.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,p,t,function(y,z,D,H){var G;if(null==(G=n.actionCompanionAdRenderer)?0:G.shouldRemoveCommandTriggeredCompanions){G=a.gb.get();var L=n.actionCompanionAdRenderer,aa=yT(a.ub.get(),y);y=KV(G,y.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new KT(L),z,D,L.impressionPings,aa,n.actionCompanionAdRenderer.adLayoutLoggingData,H)}else H=a.gb.get(),G=n.actionCompanionAdRenderer,L=yT(a.ub.get(),y),y=LV(H,y.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new KT(G),z,D,G.impressionPings,L,n.actionCompanionAdRenderer.adLayoutLoggingData);return y});
else if(n.imageCompanionAdRenderer)sV(b,c.elementId,q,n.imageCompanionAdRenderer.shouldRemoveCommandTriggeredCompanions,n.imageCompanionAdRenderer.isContentVideoCompanion,n.imageCompanionAdRenderer.adVideoId,n.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,p,t,function(y,z,D,H){var G;if(null==(G=n.imageCompanionAdRenderer)?0:G.shouldRemoveCommandTriggeredCompanions){G=a.gb.get();var L=n.imageCompanionAdRenderer,aa=yT(a.ub.get(),y);y=KV(G,y.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",
new PT(L),z,D,L.impressionPings,aa,n.imageCompanionAdRenderer.adLayoutLoggingData,H)}else H=a.gb.get(),G=n.imageCompanionAdRenderer,L=yT(a.ub.get(),y),y=LV(H,y.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new PT(G),z,D,G.impressionPings,L,n.imageCompanionAdRenderer.adLayoutLoggingData);return y});
else if(n.shoppingCompanionCarouselRenderer)sV(b,c.elementId,q,n.shoppingCompanionCarouselRenderer.shouldRemoveCommandTriggeredCompanions,n.shoppingCompanionCarouselRenderer.isContentVideoCompanion,n.shoppingCompanionCarouselRenderer.adVideoId,n.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,p,t,function(y,z,D,H){var G;if(null==(G=n.shoppingCompanionCarouselRenderer)?0:G.shouldRemoveCommandTriggeredCompanions){G=a.gb.get();var L=n.shoppingCompanionCarouselRenderer,aa=yT(a.ub.get(),
y);y=KV(G,y.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new QT(L),z,D,L.impressionPings,aa,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData,H)}else H=a.gb.get(),G=n.shoppingCompanionCarouselRenderer,L=yT(a.ub.get(),y),y=LV(H,y.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new QT(G),z,D,G.impressionPings,L,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData);return y});
else if(n.adBreakServiceRenderer){if(!UOa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==q)return TOa(a.yb.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.ai)return new Jv("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");h.fg||T("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:q,adPlacementConfig:p,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(h.fg),clientPlaybackNonce:h.clientPlaybackNonce});
dQa(a.ai,{adPlacementRenderer:c,contentCpn:d,dN:e})}else{if(n.clientForecastingAdRenderer)return yPa(a.yb.get(),a.gb.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return APa(a.yb.get(),a.gb.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if((n.linearAdSequenceRenderer||n.instreamVideoAdRenderer)&&u)return sPa(a.yb.get(),a.gb.get(),c,d,m);if(n.linearAdSequenceRenderer&&!u){qV(b,n,q);if(n.linearAdSequenceRenderer.adLayoutMetadata){if(!QOa(n.linearAdSequenceRenderer))return new Jv("Received invalid LinearAdSequenceRenderer.")}else if(null==
n.linearAdSequenceRenderer.linearAds)return new Jv("Received invalid LinearAdSequenceRenderer.");var x;if(null==(x=n.linearAdSequenceRenderer.adStart)?0:x.adMessageRenderer){b=n.linearAdSequenceRenderer.adStart.adMessageRenderer;if(!Bya(b))return new Jv("Invalid AdMessageRenderer.");c=n.linearAdSequenceRenderer.linearAds;return SPa(a.Va.get(),a.yb.get(),a.gb.get(),a.ub.get(),p,t,b,oV(n.linearAdSequenceRenderer.adLayoutMetadata)?n.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,h,m,l,a.loadPolicy,
a.Ja.get())}return VPa(a.yb.get(),a.gb.get(),p,t,n.linearAdSequenceRenderer.linearAds,oV(n.linearAdSequenceRenderer.adLayoutMetadata)?n.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,h,m,l,a.loadPolicy,a.Ja.get())}if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!u)return qV(b,n,q),OPa(a.yb.get(),a.gb.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy,a.Ja.get());if(n.instreamSurveyAdRenderer)return XPa(a.yb.get(),a.gb.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=n.sandwichedLinearAdRenderer)return ROa(n.sandwichedLinearAdRenderer)?
n.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer?(b=n.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer,Bya(b)?(c=n.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer)?KPa(b,c,p,a.Va.get(),a.yb.get(),a.gb.get(),a.ub.get(),t,d,e,h,m,l,a.loadPolicy,a.Ja.get()):new Jv("Missing IVAR from Sandwich"):new Jv("Invalid AdMessageRenderer.")):VPa(a.yb.get(),a.gb.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,n.sandwichedLinearAdRenderer.linearAd],void 0,d,e,h,m,l,a.loadPolicy,
a.Ja.get()):new Jv("Received invalid SandwichedLinearAdRenderer.");if(null!=n.videoAdTrackingRenderer)return wPa(a.yb.get(),a.gb.get(),n.videoAdTrackingRenderer,p,t,d,m)}}return[]};
MV=function(a){g.I.call(this);this.j=a};
iv=function(a,b,c,d){a.j().dj(b,d);c=c();a=a.j();NV(a.Tb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.r(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;jF(d.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);jF(d.Tb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.lb(c.slotId))throw new Jv("Slot ID was empty");if(SU(e,c))throw new Jv("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Lb.triggerType});if(!e.ue.Bn.has(c.slotType))throw new Jv("No fulfillment adapter factory registered for slot of type: "+
c.slotType);if(!e.ue.Ao.has(c.slotType))throw new Jv("No SlotAdapterFactory registered for slot of type: "+c.slotType);iV(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Lb?[c.Lb]:[]);iV(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.Xb);iV(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.lc);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=dV(f,h);if(SU(f,c))throw new Jv("Duplicate slots not supported");l.set(c.slotId,new LOa(c));f.j.set(h,l)}catch(za){T(za,c,void 0,void 0,za.Rq);break a}SU(d.j,c).I=!0;try{var m=d.j,n=SU(m,
c),p=c.Lb,q=m.ue.nj.get(p.triggerType);q&&(q.Yj("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.oa.set(p.triggerId,q));for(var t=g.r(c.Xb),u=t.next();!u.done;u=t.next()){var x=u.value,y=m.ue.nj.get(x.triggerType);y&&(y.Yj("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.W.set(x.triggerId,y))}for(var z=g.r(c.lc),D=z.next();!D.done;D=z.next()){var H=D.value,G=m.ue.nj.get(H.triggerType);G&&(G.Yj("TRIGGER_CATEGORY_SLOT_EXPIRATION",H,c,null),n.V.set(H.triggerId,G))}var L=m.ue.Bn.get(c.slotType).get().Pe(m.B,
c);n.J=L;var aa=m.ue.Ao.get(c.slotType).get().Pe(m.D,c);aa.init();n.u=aa}catch(za){T(za,c,void 0,void 0,za.Rq);PU(d,c,!0);break a}jF(d.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Hi(c);for(var M=g.r(d.je),sa=M.next();!sa.done;sa=M.next())sa.value.Hi(c);XU(d,c)}};
OV=function(a,b,c,d){this.Do=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
PV=function(a,b,c,d){g.I.call(this);var e=this;this.Pb=a;this.yb=b;this.hc=c;this.j=new Map;d.get().addListener(this);g.Be(this,function(){d.get().removeListener(e)})};
kra=function(a,b){var c=0x8000000000000;for(var d=0,e=g.r(b.Xb),f=e.next();!f.done;f=e.next())f=f.value,f instanceof OV?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):T("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new wo(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.hc.get().addCueRange(d,c.start,c.end,!1,a)};
QV=function(){g.I.apply(this,arguments);this.Ej=!0;this.ij=new Map;this.j=new Map};
eQa=function(a,b){a=g.r(a.ij.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
fQa=function(a,b){a=g.r(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.r(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}T("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.lb(b)),layoutId:b})};
IV=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
FV=function(a,b,c){this.wf=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
wV=function(a,b){this.wf=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
zV=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
RV=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)};
SV=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)};
BV=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
AV=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
gQa=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)};
jPa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
hQa=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)};
iQa=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
jQa=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)};
xV=function(a,b){this.wf=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
yV=function(a,b){this.wf=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
EV=function(a,b){this.durationMs=45E3;this.wf=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
kQa=function(a){var b=[new iU(a.cw),new aU(a.instreamAdPlayerOverlayRenderer),new lU(a.vQ),new TT(a.adPlacementConfig),new qU(a.videoLengthSeconds),new EU(a.PH)];a.xM&&b.push(new WT(a.xM));return b};
lQa=function(a,b,c,d,e,f){a=c.iH?c.iH:pv(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Xa:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Qb:new Map,wd:[new wV(function(l){return qv(f,l)},c.cw)],
Pc:[],Lc:[],Qc:[],Tc:[],Xa:b,Aa:d,xc:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
TV=function(a){var b=this;this.Va=a;this.j=function(c){return qv(b.Va.get(),c)}};
mQa=function(a,b,c,d,e,f){c=new sT([new bU(c),new TT(d)]);b=pv(a.Va.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Xa:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Qb:new Map,wd:[new wV(function(h){return qv(a.Va.get(),h)},e)],
Pc:[],Lc:[],Qc:[],Tc:[],Xa:"core",Aa:c,xc:f(d),adLayoutLoggingData:void 0}};
UV=function(a,b,c,d,e){var f=kQa(d);return lQa(b,c,d,new sT(f),e,a.Va.get())};
nQa=function(a,b,c,d,e){var f=kQa(d);f.push(new RT(d.eV));f.push(new ST(d.gV));return lQa(b,c,d,new sT(f),e,a.Va.get())};
KV=function(a,b,c,d,e,f,h,l,m,n){b=pv(a.Va.get(),c,b);var p={layoutId:b,layoutType:c,Xa:"core"},q=new Map;h&&q.set("impression",h);h=[new RV(a.j,e)];n&&h.push(new FV(a.j,n,"normal"));return{layoutId:b,layoutType:c,Qb:q,wd:h,Pc:[],Lc:[],Qc:[],Tc:[],Xa:"core",Aa:new sT([d,new TT(f),new iU(e)]),xc:l(p),adLayoutLoggingData:m}};
LV=function(a,b,c,d,e,f,h,l,m){b=pv(a.Va.get(),c,b);var n={layoutId:b,layoutType:c,Xa:"core"},p=new Map;h&&p.set("impression",h);return{layoutId:b,layoutType:c,Qb:p,wd:[new BV(a.j,b),new RV(a.j,e)],Pc:[],Lc:[],Qc:[],Tc:[],Xa:"core",Aa:new sT([d,new TT(f),new iU(e)]),xc:l(n),adLayoutLoggingData:m}};
DV=function(a,b,c){var d=[];d.push(new SV(a.j,c));b&&d.push(b);return d};
CV=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Xa:"core"};return{layoutId:b,layoutType:c,Qb:new Map,wd:h,Pc:[new IV(a.j,b)],Lc:[],Qc:[],Tc:[],Xa:"core",Aa:new sT([new OT(d),new TT(e)]),xc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
vV=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,Xa:"core"};return{layoutId:b,layoutType:f,Qb:new Map,wd:[new wV(a.j,c)],Pc:[],Lc:[],Qc:[],Tc:[],Xa:"core",Aa:new sT([new TT(d)].concat(g.v(h))),xc:e(m),adLayoutLoggingData:l}};
BPa=function(a,b,c,d,e,f,h,l,m,n){a=GV(a,b,c,d,e,f,h,l,m,n);return{Ps:{layoutId:a.layoutId,layoutType:a.layoutType,Qb:a.Qb,wd:[],Pc:[],Lc:[],Qc:[],Tc:[],Xa:a.Xa,Aa:new sT(a.sx),xc:a.xc,adLayoutLoggingData:a.adLayoutLoggingData},nu:a.Pc,jr:a.Lc,aB:a.Qc,ZA:a.Tc,Ii:a.Ii}};
FPa=function(a,b,c,d,e,f,h,l){b=GV(a,b,c,d,e,new Map,f,function(m){return h(m,l)});
a=new yV(a.j,b.HI);c=new jU(b.HI);return{Ps:{layoutId:b.layoutId,layoutType:b.layoutType,Qb:b.Qb,wd:[],Pc:[],Lc:[],Qc:[],Tc:[],Xa:b.Xa,Aa:new sT([].concat(g.v(b.sx),[c])),xc:b.xc,adLayoutLoggingData:b.adLayoutLoggingData},nu:b.Pc,jr:b.Lc,aB:[].concat(g.v(b.Qc),[a]),ZA:b.Tc,Ii:b.Ii}};
GV=function(a,b,c,d,e,f,h,l,m,n){b=pv(a.Va.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xa:"adapter"};l=l(b);var q=X(l.Aa,"metadata_type_fulfilled_layout");q||T("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new TT(c),new FU(d),new IU(e)];n&&c.push(new vU(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Qb:f,wd:[],Pc:[new xV(a.j,q)],Lc:[],Qc:[],Tc:[],Xa:"adapter",
sx:c,xc:h(p),adLayoutLoggingData:m,Ii:l,HI:q}};
QPa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,q={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",Xa:b};d=[new TT(d),new UT(l),new XT(c.externalVideoId),new $T(h),new aU(c.playerOverlay.instreamAdPlayerOverlayRenderer),new IU({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new rU(e),new mU({current:null}),new qU(f)];(e=c.playerUnderlay)&&d.push(new bU(e));e=ov(a.Va.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?
f:pv(a.Va.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new jU(f));d.push(new kU(e));d.push(new vU(l.j));c.adNextParams&&d.push(new MT(c.adNextParams));c.shrunkenPlayerBytesConfig&&d.push(new cU(c.shrunkenPlayerBytesConfig));c.clickthroughEndpoint&&d.push(new NT(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new GU(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new sU(c.sodarExtensionData));n&&d.push(new DU(n));d.push(new MU(oE(c.pings)));return{layoutId:p,
layoutType:"LAYOUT_TYPE_MEDIA",Qb:pE(c.pings),wd:[new BV(a.j,p)],Pc:c.skipOffsetMilliseconds?[new xV(a.j,f)]:[],Lc:[new xV(a.j,f)],Qc:[],Tc:[],Xa:b,aN:d,xc:m(q),adLayoutLoggingData:c.adLayoutLoggingData}};
uPa=function(a,b,c,d,e,f,h,l){d.every(function(n){return cF(n,[],["LAYOUT_TYPE_MEDIA"])})||T("Unexpect subLayout type for DAI composite layout");
b=pv(a.Va.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var m={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Xa:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Qb:new Map,wd:[new zV(a.j)],Pc:[],Lc:[],Qc:[],Tc:[],Xa:"core",Aa:new sT([new tU(c),new uU(l),new oU(d),new TT(e),new zU(f),new wU({})]),xc:h(m)}};
pPa=function(a){return null!=a};
VV=function(a,b,c){this.Do=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
WV=function(a,b,c){this.wf=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
XV=function(a,b){this.wf=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
oQa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
pQa=function(a,b,c,d,e){this.Do=b;this.j=c;this.visible=d;this.layoutId=e;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=a(this.triggerType)};
YV=function(a,b,c){this.Do=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
ZV=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
$V=function(a,b){this.Sg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
aW=function(a,b){this.Sg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
bW=function(a,b){this.Sg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
cW=function(a,b){this.Sg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
dW=function(a,b){this.Sg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
eW=function(a,b){this.Sg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
fW=function(a,b){var c=this;this.Va=a;this.gb=b;this.j=function(d){return qv(c.Va.get(),d)}};
SOa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=ov(a.Va.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Au&&d.Au.start!==d.Gm.start&&l.push(new OV(a.j,c,new wo(d.Au.start,d.Gm.start),!1));l.push(new OV(a.j,c,new wo(d.Gm.start,d.Gm.end),d.bD));d={getAdBreakUrl:b.getAdBreakUrl,PQ:d.Gm.start,OQ:d.Gm.end};b=new cW(a.j,h);f=[new BU(d)].concat(g.v(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Lb:b,Xb:l,lc:[new AV(a.j,c),new aW(a.j,h),new bW(a.j,h)],Xa:"core",Aa:new sT(f),
adSlotLoggingData:e}};
rQa=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())d.push(qQa(a,b,e.value));return d};
qQa=function(a,b,c){return null!=c.Sg&&c.Sg===a?c.clone(b):c};
dPa=function(a,b,c,d,e){return sQa(a,b,c,d,e)};
CPa=function(a,b,c,d){var e=ov(a.Va.get(),"SLOT_TYPE_IN_PLAYER");return sQa(a,e,b,c,d)};
sQa=function(a,b,c,d,e){var f=new XV(a.j,c),h=[new $V(a.j,b)];a=[new aW(a.j,b),new AV(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Lb:f,Xb:h,lc:a,Xa:"core",Aa:new sT([new AU(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",Lb:f,Xb:h,lc:a},c))]),adSlotLoggingData:void 0}};
WPa=function(a,b,c,d,e,f){var h=ov(a.Va.get(),"SLOT_TYPE_PLAYER_BYTES"),l=ov(a.Va.get(),"SLOT_TYPE_IN_PLAYER"),m=pv(a.Va.get(),"LAYOUT_TYPE_SURVEY",l);b=gW(a,b,c,d);d=[new $V(a.j,h)];a=[new aW(a.j,h),new AV(a.j,c),new IV(a.j,m)];if(b instanceof Jv)return b;f=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Xa:"core",Lb:b,Xb:d,lc:a},{slotId:l,layoutId:m});l=f.UW;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Lb:b,Xb:d,lc:a,Xa:"core",Aa:new sT([new AU(f.wX)]),
adSlotLoggingData:e},l]};
tQa=function(a,b,c,d,e){e=e?e:ov(a.Va.get(),"SLOT_TYPE_IN_PLAYER");c=new XV(a.j,c);var f=[new $V(a.j,e)];a=[new AV(a.j,b),new aW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Lb:c,Xb:f,lc:a,Xa:"core",Aa:new sT([new AU(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",Lb:c,Xb:f,lc:a}))])}};
uQa=function(a,b,c,d){var e=ov(a.Va.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new XV(a.j,c);var f=[new $V(a.j,e)];a=[new AV(a.j,b),new aW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Lb:c,Xb:f,lc:a,Xa:"core",Aa:new sT([new AU(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Xa:"core",Lb:c,Xb:f,lc:a}))])}};
IPa=function(a,b,c,d,e,f,h){var l=ov(a.Va.get(),"SLOT_TYPE_IN_PLAYER"),m=pv(a.Va.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=vQa(a,d,f,h,m);if(d instanceof Jv)return d;h=[new $V(a.j,l)];e=[new AV(a.j,f),new $V(a.j,e),new eW(a.j,e)];c=yT(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",Lb:d,Xb:h,lc:e});a=a.gb.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Xa:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Qb:new Map,wd:[new hQa(a.j,m,
b.durationMs)],Pc:[new jQa(a.j,m,b.durationMs)],Tc:[new iQa(a.j,m)],Lc:[],Qc:[],Xa:"core",Aa:new sT([new HU(b)]),xc:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",Lb:d,Xb:h,lc:e,Aa:new sT([new AU(b)])}};
zPa=function(a,b,c,d,e,f){b=gW(a,b,c,d);if(b instanceof Jv)return b;var h=b instanceof OV?new YV(a.j,c,b.j):null;d=ov(a.Va.get(),"SLOT_TYPE_IN_PLAYER");var l=[new $V(a.j,d)];a=[new AV(a.j,c),new aW(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",Lb:b,Xb:l,lc:a},h);return f instanceof UU?new Jv(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Lb:b,Xb:l,lc:a,Xa:"core",Aa:new sT([new AU(f)]),adSlotLoggingData:e}};
iPa=function(a,b,c,d){var e=ov(a.Va.get(),"SLOT_TYPE_IN_PLAYER");c=new XV(a.j,c);var f=[new $V(a.j,e)],h=[new aW(a.j,e),new AV(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",Lb:c,Xb:f,lc:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Lb:c,Xb:[new $V(a.j,e)],lc:[new AV(a.j,b),new aW(a.j,e)],Xa:"core",Aa:new sT([new AU(d(f))])}};
gPa=function(a,b,c,d,e){var f=ov(a.Va.get(),"SLOT_TYPE_IN_PLAYER");c=new WV(a.j,d,c);d=[new $V(a.j,f)];a=[new AV(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Lb:c,Xb:d,lc:a,Xa:"core",Aa:new sT([new AU(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",Lb:c,Xb:d,lc:a}))])}};
rV=function(a,b,c,d,e,f){var h=ov(a.Va.get(),b);return hW(a,h,b,new XV(a.j,d),c,e,d,f)};
WOa=function(a,b,c,d,e,f,h){var l=ov(a.Va.get(),b);return hW(a,l,b,new FV(a.j,e,"normal"),c,f,d,h)};
vPa=function(a,b,c,d){var e=ov(a.Va.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new lv(a.j,b);var f=[new $V(a.j,e)];a=[new aW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Lb:b,Xb:f,lc:a,Xa:"core",Aa:new sT([new AU(d({slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Xa:"core",Lb:b,Xb:f,lc:a}))]),adSlotLoggingData:c}};
XOa=function(a,b,c,d,e,f,h){return hW(a,c,b,new ZV(a.j,c),d,f,e,h)};
qPa=function(a,b,c){var d=ov(a.Va.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new oQa(a.j),f=[new dW(a.j,d)];a=[new AV(a.j,b)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Lb:e,Xb:f,lc:a,Xa:"core",Aa:new sT([new AU(c({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Xa:"core",Lb:e,Xb:f,lc:a})),new wU({})])}};
MPa=function(a,b,c,d,e){b=new FV(a.j,b,"normal");a=wQa(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Lb:a.Lb,Xb:a.Xb,lc:a.lc,Xa:a.Xa});return e instanceof Jv?e:{Cv:Object.assign({},a,{Aa:new sT([new AU(e.layout)]),adSlotLoggingData:d}),ej:e.ej}};
NPa=function(a,b,c,d,e,f,h){a=UPa(a,b,c,d);if(a instanceof Jv)return a;h=h({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Lb:a.Lb,Xb:a.Xb,lc:a.lc,Xa:a.Xa});if(h instanceof Jv)return h;b=[new AU(h.layout)];f&&b.push(new KU({}));return{Cv:{slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Lb:a.Lb,Xb:a.Xb,lc:a.lc,Xa:a.Xa,Aa:new sT(b),adSlotLoggingData:e},ej:h.ej}};
wQa=function(a,b,c){var d=ov(a.Va.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new $V(a.j,d)];a=[new aW(a.j,d),new AV(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Lb:b,Xb:e,lc:a,Xa:"core"}};
UPa=function(a,b,c,d){b=gW(a,b,c,d);return b instanceof Jv?b:wQa(a,b,c)};
xPa=function(a,b,c,d,e,f){var h=ov(a.Va.get(),"SLOT_TYPE_FORECASTING");b=gW(a,b,c,d);if(b instanceof Jv)return b;d=[new $V(a.j,h)];a=[new aW(a.j,h),new AV(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Lb:b,Xb:d,lc:a,Xa:"core",Aa:new sT([new AU(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Xa:"core",Lb:b,Xb:d,lc:a}))]),adSlotLoggingData:e}};
xQa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new lv(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=Hra(b,d),a instanceof Jv?a:e(a.Gm,f);case "AD_PLACEMENT_KIND_END":return new VV(a.j,c,f);default:return new Jv("Cannot construct entry trigger",{kind:b.kind})}};
vQa=function(a,b,c,d,e){return xQa(a,b,c,d,function(f,h){return new pQa(a.j,c,f,h,e)})};
gW=function(a,b,c,d){return xQa(a,b,c,d,function(e,f){return new OV(a.j,c,e,f)})};
hW=function(a,b,c,d,e,f,h,l){var m=[new dW(a.j,b)];a=[new AV(a.j,e),new aW(a.j,b),new FV(a.j,h,"error")];return{slotId:b,slotType:c,slotPhysicalPosition:1,Lb:d,Xb:m,lc:a,Xa:"core",Aa:new sT([new AU(l({slotId:b,slotType:c,slotPhysicalPosition:1,Xa:"core",Lb:d,Xb:m,lc:a}))]),adSlotLoggingData:f}};
iW=function(a,b){g.I.call(this);this.Ja=a;this.j=b;this.eventCount=0};
jF=function(a,b,c){NV(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData)};
TU=function(a,b,c,d){NV(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
DOa=function(a,b,c,d){jW(a.Ja.get(),"html5_log_trigger_events_with_debug_data")&&!xT(a.j.get())||NV(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
NV=function(a,b,c,d,e,f,h,l,m,n){try{if(!yQa(a)&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var p=xT(a.j.get()),q=zQa(a,p,b,c,d,e,f,h,l,m,n);g.vr("adsClientStateChange",{adsClientEvent:q})}}catch(t){g.lr(g.nr(),function(){T(t instanceof Error?t:String(t),f,h,{pacf_message:"exception during pacf logging"})})}};
yQa=function(a){var b=a.Ja.get();b=b.G.S().K("html5_enable_ads_client_monitoring_log_live_infra")?!0:g.oB(b.G.S())?b.G.S().K("html5_enable_ads_client_monitoring_log_tv"):!0;jW(a.Ja.get(),"disable_pacf_logging_for_memory_limited_tv")&&(b=b&&a.j.get().u());return!b||a.Ja.get().G.S().K("html5_disable_client_tmp_logs")};
zQa=function(a,b,c,d,e,f,h,l,m,n,p){c={eventType:c,eventOrder:++a.eventCount};var q={};h&&(q.slotData=vT(b,h));l&&(q.layoutData=sOa(b,l));m&&(q.triggerData=uT(m.trigger,m.category));d&&(q.opportunityData=tOa(b,d,e,f));b={organicPlaybackContext:{contentCpn:a.Qa.get().Gf(1).clientPlaybackNonce}};b.organicPlaybackContext.isLivePlayback=a.Qa.get().Gf(1).fg;var t;b.organicPlaybackContext.isMdxPlayback=null==(t=a.Qa.get().Gf(1))?void 0:t.isMdxPlayback;var u;if(a=null==(u=a.Qa.get().Gf(2))?void 0:u.clientPlaybackNonce)b.adVideoPlaybackContext=
{adVideoCpn:a};b&&(q.externalContext=b);c.adClientData=q;n&&(c.serializedSlotAdServingData=n.serializedSlotAdServingDataEntry);p&&(c.serializedAdServingData=p.serializedAdServingDataEntry);return c};
kW=function(a,b,c){iW.call(this,a,b);this.Qa=c};
lW=function(){this.j=new Map};
mW=function(a,b,c,d,e){g.I.call(this);this.G=a;this.u=b;this.Ca=c;this.Qa=d;this.Ae=e;this.listeners=[];var f=new fu(this);g.J(this,f);f.P(a,"internalAbandon",this.qI);g.Be(this,function(){g.hu(f)})};
nW=function(a){g.I.call(this);this.G=a;this.j=new Map;this.u=new fu(this);g.J(this,this.u);this.u.P(this.G,g.Cv("ad"),this.onCueRangeEnter,this);this.u.P(this.G,g.Dv("ad"),this.onCueRangeExit,this)};
AQa=function(a,b,c,d,e){g.Av.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
oW=function(a){this.G=a};
pW=function(a){this.G=a};
jW=function(a,b){return a.G.S().K(b)};
qW=function(a){var b,c,d;return(null==(b=a.G.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
BQa=function(a){return a.G.S().K("html5_enable_vod_lasr_with_notify_pacf")};
bQa=function(a){return a.G.S().K("html5_enable_vod_slar_with_notify_pacf")};
BOa=function(a){if(g.UB(a.G.S()))return a.G.S().K("html5_enable_vod_lsar_ivar_pacf_unplugged");if(nB(a.G.S())||g.oB(a.G.S()))return!0;T("Composite VOD on legacy path.");return!1};
CQa=function(a){return a.G.S().K("html5_recognize_predict_start_cue_point")};
DQa=function(a){return a.G.S().experiments.fb("enable_desktop_player_underlay")};
rW=function(a,b){this.Ca=a;this.G=b;this.j=new Map;lE().subscribe("adactiveviewmeasurable",this.Qy,this);lE().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Py,this);lE().subscribe("adviewableimpression",this.Ry,this);lE().subscribe("adaudioaudible",this.Ny,this);lE().subscribe("adaudiomeasurable",this.Oy,this)};
tW=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?T("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),oja(nk(vn),c),cya(lE(),b,{Qx:function(){return d?{currentTime:a.Ca.get().getCurrentTimeSec(2,!1),duration:d,Kc:2===a.Ca.get().getPresentingPlayerType()&&1===sW(a.Ca.get(),2),oka:!1,pka:!0,volume:a.Ca.get().isMuted()?0:a.Ca.get().getVolume()/100}:{}}}))};
uW=function(a,b){a.j.has(b)?(a.j.delete(b),delete lE().j[b]):T("Unexpected unregistration of layout in LidarApi")};
vW=function(a,b,c){this.B=c;this.C=a;this.D=b};
wW=function(a,b,c,d){var e=void 0===e?new vW(function(){var f=a.getVideoData(1);return f?g.WD(f):""},function(){return a.S().pageId},function(f){return a.S().K(f)}):e;
this.G=a;this.u=b;this.Cb=c;this.Qa=d;this.Qq=e;this.AD=null;this.j=new Map;this.Uj=new FE(e);this.B=a.S().experiments.fb("html5_disable_lidar")};
FQa=function(a,b,c,d,e){d=void 0===d?[]:d;var f=fQa(a.u.get(),c);f?(c=xW(a,EQa(f),f,void 0,e),b.hasOwnProperty("baseUrl")?a.Qq.send(b,c):a.Uj.send(b,c,{},d)):T("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
yW=function(a,b){g.vr("adsClientStateChange",b)};
zW=function(a,b){a.j.has(b.Tx())?T("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Tx(),b)};
AW=function(a,b){a.j.delete(b.Tx())||T("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
EQa=function(a){var b=X(a.Aa,"metadata_type_ad_placement_config");a=X(a.Aa,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,gP:a}};
xW=function(a,b,c,d,e){var f=c?GQa(a):{};c=c?HQa(a,c.layoutId):{};var h=a.G.S().K("enable_macro_substitution_on_html5")?IQa(a):{},l={},m={};f=Object.assign({},AE(a.G,d),kya(b.adPlacementConfig),(l.SLOT_POS=zE(function(){return(b.gP||0).toString()}),l),c,f,h,(m.FINAL=zE(function(){return"1"}),m.AD_CPN=zE(function(){var n;
return(null==(n=a.Qa.get().Gf(2))?void 0:n.clientPlaybackNonce)||""}),m));
d={};e=Object.assign({},f,e);f=g.r(Object.values(JQa));for(c=f.next();!c.done;c=f.next())c=c.value,h=e[c],null!=h&&null!=h.toString()&&(d[c]=h.toString());return d};
GQa=function(a){var b={},c,d=null==(c=a.AD)?void 0:c.Ll/1E3;null!=d&&(b.SURVEY_ELAPSED_MS=zE(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=zE(function(){return Math.round(Date.now()/1E3).toString()});
return b};
HQa=function(a,b){a=a.j.get(b);if(!a)return{};a=a.vG();if(!a)return{};b={};return b.YT_ERROR_CODE=a.RD.toString(),b.ERRORCODE=a.Wz.toString(),b.ERROR_MSG=a.errorMessage,b};
IQa=function(a){var b={},c=a.G.getVideoData(1);b.ASR=zE(function(){var d;return null!=(d=null==c?void 0:c.xl)?d:null});
b.EI=zE(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null});
return b};
BW=function(a,b,c){g.I.call(this);this.G=a;this.yd=b;this.Ja=c;this.listeners=[];this.GH=null;this.tF=new Map;b=new g.kz(this);g.J(this,b);b.P(a,"videodatachange",this.F_);b.P(a,"serverstitchedvideochange",this.c_);this.vr=this.Gf()};
LQa=function(a,b,c){var d=KQa(a,b,c);a.vr=d;a.listeners.forEach(function(e){e.YP(d)})};
KQa=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,h=b.Ac,l=b.title,m=b.kh,n=b.Jh,p=b.isMdxPlayback,q=b.qj,t=b.mdxEnvironment,u=b.Am,x=b.Ov,y=b.Fm,z=b.Yq,D=b.videoId||"",H=b.profilePicture||"",G=b.lk||"";b=b.jn||void 0;h=a.yd.get().j.get(h)||{layoutId:null,slotId:null};var L=a.G.getVideoData(1),aa=L.fg();L=L.getPlayerResponse();c=1E3*a.G.getDuration(c);a=1E3*a.G.getDuration(1);var M,sa,za=(null==L?void 0:null==(M=L.playerConfig)?void 0:null==(sa=M.daiConfig)?void 0:sa.enableDai)||
!1,ba,qa;M=(null==L?void 0:null==(ba=L.playerConfig)?void 0:null==(qa=ba.daiConfig)?void 0:qa.enablePreroll)||!1;return Object.assign({},h,{videoId:D,author:d,clientPlaybackNonce:e,playbackDurationMs:c,dN:a,daiEnabled:za,lN:M,isListed:f,fg:aa,profilePicture:H,title:l,lk:G,kh:m,Jh:n,jn:b,isMdxPlayback:p,qj:q,mdxEnvironment:t,Am:u,Ov:x,Fm:y,Yq:z})};
CW=function(a,b,c){g.I.call(this);this.G=a;this.Qa=b;this.Ja=c;this.listeners=[];this.bB=[];this.xr=function(){T("Called 'doUnlockPreroll' before it's initialized.")};
b=new fu(this);c=new g.kz(this);g.J(this,c);g.J(this,b);b.P(a,"progresssync",this.FZ);b.P(a,"presentingplayerstatechange",this.wZ);b.P(a,"fullscreentoggled",this.onFullscreenToggled);b.P(a,"onVolumeChange",this.onVolumeChange);b.P(a,"minimized",this.gh);b.P(a,"resize",this.wb);c.P(a,g.Cv("appad"),this.Tk)};
MQa=function(a,b){a.bB=a.bB.filter(function(c){return c!==b})};
DW=function(a,b){var c;b=null!=(c=a.Qa.get().tF.get(b))?c:null;if(null===b)return T("Expected ad video start time on playback timeline"),0;a=a.G.getCurrentTime(2,!0);return a<b?0:a-b};
sW=function(a,b){return a.G.xb(b)};
NQa=function(a){var b=a.G.Ya().xi();a=a.G.Dj(!0,!0);return b.height-(a.height+a.top)};
OQa=function(a){a.G.cueVideoByPlayerVars({videoId:"empty_video"},2)};
PQa=function(a,b){var c=a.G.S();cB(c)||"3"!==c.controlsType||a.G.Ya().Bz(b)};
EW=function(a,b){g.N(a.G.getRootNode(),b)};
FW=function(a,b){g.go(a.G.getRootNode(),b)};
QQa=function(a,b,c,d,e){g.I.call(this);var f=this;this.Va=Y(function(){return new nv});
g.J(this,this.Va);this.gb=Y(function(){return new TV(f.Va)});
g.J(this,this.gb);this.zc=Y(function(){return new QV});
g.J(this,this.zc);this.Pb=Y(function(){return new MV(a)});
g.J(this,this.Pb);this.yb=Y(function(){return new fW(f.Va,f.gb)});
g.J(this,this.yb);this.yd=Y(function(){return new lW});
g.J(this,this.yd);this.Eb=Y(function(){return new mV(e)});
this.hc=Y(function(){return new nW(b)});
g.J(this,this.hc);this.Vc=Y(function(){return new oW(b)});
g.J(this,this.Vc);this.Ja=Y(function(){return new pW(b)});
g.J(this,this.Ja);this.ub=Y(function(){return new zT(f.Ja)});
g.J(this,this.ub);this.Cd=Y(function(){return new JV(f.Va,f.yb,f.gb,f.Ja,f.ub,null,null)});
g.J(this,this.Cd);this.Qa=Y(function(){return new BW(b,f.yd,f.Ja)});
g.J(this,this.Qa);this.Tb=new kW(this.Ja,this.ub,this.Qa);g.J(this,this.Tb);this.Ca=Y(function(){return new CW(b,f.Qa,f.Ja)});
g.J(this,this.Ca);this.Cb=Y(function(){return new rW(f.Ca,b)});
g.J(this,this.Cb);this.Na=Y(function(){return new wW(b,f.zc,f.Cb,f.Qa)});
g.J(this,this.Na);this.Dc=new mv(this.Pb,this.Cd,c,this.Ja,a,this.Qa,this.Ca);g.J(this,this.Dc);var h=new mW(b,this.Dc,this.Ca,this.Qa);this.nf=Y(function(){return h});
this.Wp=h;this.xe=new PV(this.Pb,this.yb,this.hc,this.nf);g.J(this,this.xe);this.Ec=new hv(this.Pb,this.yb,this.Cd,this.Qa,this.xe,c);g.J(this,this.Ec);this.ue={ws:new Map,Bn:new Map,nj:new Map,Ao:new Map,Qn:new Map};this.listeners=[];this.Tr={Ec:this.Ec,Sl:null,Sn:null,yh:this.Ja.get(),Ua:this.Eb.get(),eq:this.Ca.get(),Dc:this.Dc,Mk:this.Va.get(),Rn:null,Kj:{YG:function(){}},
Bi:this.zc.get(),Zk:this.Qa.get()}};
GW=function(){this.listeners=new Set};
HW=function(){};
RQa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&Mfa(b.siub,b.scs,b.bgub,b.bgp)};
SQa=function(a,b,c,d){this.callback=a;this.slot=b;this.gb=c;this.ub=d;this.j=null};
TQa=function(a,b,c,d){a.j&&T("Currently active request ongoing for slot. This should never happen",a.slot);a.j=b();a.j.then(function(e){a.j=null;d&&d(e);var f=e.Yv?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.gb.get(),l=a.slot.slotId,m=yT(a.ub.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,Xa:a.slot.Xa,Lb:a.slot.Lb,Xb:a.slot.Xb,lc:a.slot.lc}),n=pv(h.Va.get(),f,l),p={layoutId:n,layoutType:f,Xa:"core"};e={layoutId:n,
layoutType:f,Qb:new Map,wd:[new gQa(h.j,l)],Pc:[],Lc:[],Qc:[],Tc:[],Xa:"core",Aa:new sT([new CU(e)]),xc:m(p)};COa(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof Yg||QU(a.callback,a.slot,new Jv(e,void 0,!0))})};
UQa=function(a){if(null==a.j)a.callback.IC(a.slot);else try{a.j.cancel(),a.j=null,a.callback.IC(a.slot)}catch(b){a.j=null,QU(a.callback,a.slot,new Jv(b))}};
IW=function(a,b,c,d,e,f){this.slot=b;this.Ne=c;this.re=f;this.j=new SQa(a,b,d,e)};
VQa=function(a){var b;null==(b=a.re)||b.get().bq(X(a.slot.Aa,"metadata_type_cue_point").identifier)};
JW=function(a,b,c,d,e){this.slot=b;this.Ne=c;this.j=new SQa(a,b,d,e)};
KW=function(a,b){this.callback=a;this.slot=b};
LW=function(a,b){return kv(a,b.ke,b.slotType)?!0:!1};
MW=function(){};
NW=function(a,b,c,d){this.Ne=a;this.gb=b;this.ub=c;this.re=d};
OW=function(){};
WQa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.j=d};
PW=function(a,b){return cF(a,b.ke,b.Af)?!0:!1};
QW=function(a){this.j=a};
RW=function(a,b,c,d,e){e=void 0===e?null:e;this.D=a;this.Na=b;this.layoutId=d;this.j=0;this.B=null;this.C=new Set;this.u=Array.from(this.D.get("progress")||[]);this.u.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.I={adPlacementConfig:c,gP:e}};
SW=function(){return["metadata_type_ad_placement_config"]};
TW=function(a){var b=a.Na.get();return xW(b,a.I)};
UW=function(a,b){a.C.has(b)||a.vg(b)};
VW=function(a,b,c){for(c=void 0===c?!1:c;a.j<a.u.length;){var d=a.u[a.j];if(d.offsetMilliseconds<=b||c)XQa(a,"progress",[d]),a.j++;else break}};
WW=function(a,b){return a.C.has(b)};
XQa=function(a,b,c){var d,e=a.Na.get(),f=a.layoutId;a=null!=(d=a.B)?d:void 0;c=void 0===c?[]:c;if(d=fQa(e.u.get(),f))for(b=e.B?{}:e.Cb.get().vg(f,b),f=xW(e,EQa(d),d,a),c=g.r(c),d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&e.Uj.send(d.baseUrl,f,b,d.headers);else T("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
YQa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Na=d;this.j=e;a=X(this.layout.Aa,"metadata_type_ad_placement_config");this.u=new RW(c.Qb,this.Na,a,c.layoutId)};
ZQa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];SW().forEach(function(b){a.push(b)});
return{ke:a,Af:["LAYOUT_TYPE_FORECASTING"]}};
XW=function(a,b,c){this.Na=a;this.j=b;this.Cb=c};
$Qa=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
aRa=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.Ig(a.slot,b,new UU("Unknown layout received. Required LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType))):c()};
YW=function(a,b,c,d){g.iu.call(this);this.callback=a;this.B=d;this.j=[];this.u=new $Qa(a,b,c)};
ZW=function(a,b,c,d,e,f,h){e=X(c.Aa,e);a=TW(a);var l=qf(function(){d.Rc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.xc},function(){l()}))};
$W=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.r(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.G.sendVideoStatsEngageEvent(1,void 0,2):e?e():T("Tried to call engagePingCallback but it is null",h,l)}}else T("Companion AdUxClick received without a layoutId",h,l)};
bRa=function(a,b,c,d,e){hE.call(this,"action-companion",a,b,c,d,e)};
aX=function(a,b,c,d,e,f,h,l){YW.call(this,a,b,c,d);this.Na=e;this.df=f;this.J=l;this.Ej=!0;this.C=null;this.D=X(c.Aa,"metadata_type_linked_player_bytes_layout_id");OU(this.df(),this);a=X(c.Aa,"metadata_type_ad_placement_config");this.I=new RW(c.Qb,this.Na,a,c.layoutId)};
cRa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];SW().forEach(function(b){a.push(b)});
return{ke:a,Af:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
bX=function(a,b,c,d,e){YW.call(this,a,b,c,d);a=X(c.Aa,"metadata_type_ad_placement_config");this.C=new RW(c.Qb,e,a,c.layoutId)};
dRa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];SW().forEach(function(b){a.push(b)});
return{ke:a,Af:["LAYOUT_TYPE_ENDCAP"]}};
cX=function(a,b,c,d,e,f,h,l){YW.call(this,a,b,c,d);this.Ca=e;this.Na=f;this.I=h;this.D=l;this.C=!1;this.J=X(this.layout.Aa,"metadata_type_linked_player_bytes_layout_id")};
eRa=function(){return{ke:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Af:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
dX=function(a,b,c,d,e,f,h,l){return PW(c,eRa())?new cX(a,b,c,d,e,f,h,l):PW(c,dRa())?new bX(a,b,c,d,f):null};
eX=function(a,b,c,d,e){this.Ub=a;this.Ca=b;this.Na=c;this.u=d;this.j=e};
fX=function(a,b,c,d,e,f){g.I.call(this);this.callback=a;this.le=b;this.Ca=c;this.Fd=d;this.df=e;this.Ja=f;this.Ej=!0;this.hH=!1};
gX=function(a,b,c,d,e,f,h,l,m,n){fX.call(this,a,b,c,d,m,n);this.j=e;this.slot=f;this.layout=h;this.C=l;this.Ge=[];this.Ld=-1;this.u=!1};
hX=function(a,b,c){var d=X(a.Fb().Aa,"metadata_type_linked_in_player_layout_id");return d?d:(T("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.pd(),a.Fb(),{requestingSlot:b,requestingLayout:c}),null)};
jX=function(a,b,c,d){fRa(a,b,c,d,function(){iX(a,a.Ld+1)})};
gRa=function(a,b,c,d){fRa(a,b,c,"skipped",function(){iX(a,d)})};
fRa=function(a,b,c,d,e){if(!a.u){var f=a.Ge[a.Ld];f?(f.Fb().layoutId!==c.layoutId&&T("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.Fb().layoutId}),a.u=!0,f.Pf(f.Fb(),d),fF(a.j,b,c,d),a.u=!1,a.B?(a.B(),a.Fd.get().Vv()):e()):T("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
iX=function(a,b){if(a.Ld===a.Ge.length-1)a.Ld++,kX(a.C,a.layout.layoutId),a.Fd.get().Vv();else{if(-1===a.Ld&&(a.callback.Rc(a.slot,a.layout),0<b)){T("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});return}a.Ld=b;b=a.Ge[a.Ld];0<a.Ld&&a.Fd.get().FJ();b.startRendering(b.Fb())}};
lX=function(a){return!a.Up.Kc()&&a.state.Kc()};
mX=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
hRa=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_PERCENT"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.percent)};
iRa=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_MILLISECONDS"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.milliseconds)&&!isNaN(Number(a.adVideoOffset.milliseconds))};
jRa=function(a,b,c,d){this.Eb=a;this.layoutId=c;this.D=d;this.u=[];this.j=[];this.B=this.C=0;a=g.r(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,c=void 0,null==(c=b.adVideoOffset)?void 0:c.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":hRa(b)?this.u.push(b):T("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":iRa(b)?this.j.push(b):T("Invalid AdVideoProgressMillisecondsCommand");break;default:T("Unknown or invalid AdVideoProgressOffSet kind")}this.u.sort(function(e,
f){return e.adVideoOffset.percent-f.adVideoOffset.percent});
this.j.sort(function(e,f){return Number(e.adVideoOffset.milliseconds)-Number(f.adVideoOffset.milliseconds)})};
oX=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){g.I.call(this);var x=this;this.callback=a;this.slot=b;this.layout=c;this.Na=d;this.Cb=e;this.Ca=f;this.Fd=h;this.cf=l;this.Eb=m;this.C=n;this.position=q;this.Y=t;this.Ja=u;this.Ej=!0;this.W=!1;this.u="not_rendering";this.D=!1;a=X(this.layout.Aa,"metadata_type_ad_placement_config");this.j=new RW(c.Qb,this.Na,a,c.layoutId);var y;a=(null==(y=nX(this))?void 0:y.progressCommands)||[];this.ma=new jRa(m,a,c.layoutId,function(){return x.Iu()});
this.V=qf(function(){x.callback.Rc(x.slot,x.layout)});
this.N=qf(function(){"rendering_stop_requested"!==x.u&&p(x);x.J?x.callback.hd(x.slot,x.layout,x.J):T("Received layout exit signal when not in layout exit flow.",x.slot,x.layout)})};
nX=function(a){return X(a.layout.Aa,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
qX=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.u){VW(a.j,1E3*b,c);a.D||VW(a.j,1E3*b,void 0===c?!1:c);var d=a.Iu();if(d){d/=1E3;if(b>=.25*d||c)UW(a.j,"first_quartile"),pX(a,"unmuted_first_quartile");if(b>=.5*d||c)UW(a.j,"midpoint"),pX(a,"unmuted_midpoint");if(b>=.75*d||c)UW(a.j,"third_quartile"),pX(a,"unmuted_third_quartile");a=a.ma;b*=1E3;if(c=a.D()){for(;a.C<a.u.length;)if(d=a.u[a.C],d.adVideoOffset.percent*c<=b)a.Eb.get().executeCommand(d.command,a.layoutId),a.C++;else break;for(;a.B<a.j.length;)if(c=
a.j[a.B],Number(c.adVideoOffset.milliseconds)<=b)a.Eb.get().executeCommand(c.command,a.layoutId),a.B++;else break}}}};
rX=function(a,b){a.D||a.j.vg(b)};
pX=function(a,b){a.D||UW(a.j,b)};
sX=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x){oX.call(this,a,b,c,d,e,f,h,m,n,p,q,t,u,x);var y=this;this.Vc=l;this.cC=!0;this.B=this.Ll=0;this.timer=new g.Zg(200);this.timer.Ma("tick",function(){y.Sb()});
g.J(this,this.timer)};
kRa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.r(SW()),c=b.next();!c.done;c=b.next())a.push(c.value);return{ke:a,Af:["LAYOUT_TYPE_MEDIA_BREAK"]}};
lRa=function(a){a.B=Date.now();tX(a,a.Ll);a.timer.start()};
tX=function(a,b){b={current:b/1E3,duration:a.Iu()/1E3};a.Vc.get().La("onAdPlaybackProgress",b)};
uX=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,z,D,H,G){oX.call(this,a,b,c,d,e,m,p,t,u,y,z,D,H,G);var L=this;this.Zd=f;this.le=h;this.Qa=l;this.hc=n;this.Vc=q;this.kf=x;this.adCpn="";this.I=new g.K(function(){L.Ly("load_timeout",new UU("Media layout load timeout.",{},!0))},1E4)};
mRa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.r(SW()),c=b.next();!c.done;c=b.next())a.push(c.value);return{ke:a,Af:["LAYOUT_TYPE_MEDIA"]}};
vX=function(a,b,c,d,e,f,h){fX.call(this,a,b,c,d,f,h);this.j=e};
oRa=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,z,D,H){if(PW(d,{ke:["metadata_type_sub_layouts"],Af:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var G=X(d.Aa,"metadata_type_sub_layouts");a=new gX(a,n,q,u,b,c,d,f,e,H);e=[];for(b={wq:0};b.wq<G.length;b={wq:b.wq},b.wq++){var L=nRa({Rc:a.o_.bind(a),hd:a.q_.bind(a),Ig:a.p_.bind(a)},c,G[b.wq],h,l,m,n,p,q,t,u,x,y,z,D,function(aa){return function(M){M.Pf(G[aa.wq],"normal")}}(b),b.wq,G.length,H);
if(!L)return;e.push(L)}a.Ge=e;return a}if(PW(d,{ke:[],Af:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=nRa({Rc:a.Rc.bind(a),hd:a.hd.bind(a),Ig:a.Ig.bind(a)},c,d,h,l,m,n,p,q,t,u,x,y,z,D,function(){kX(f,d.layoutId)},0,1,H))?new vX(a,n,q,u,c,e,H):c};
nRa=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,z,D,H){if(PW(c,kRa()))return new sX(a,b,c,d,e,m,p,q,t,u,function(){},y,z,D,H);
if(PW(c,mRa()))return jv(c.Aa,"metadata_type_ad_intro")?new uX(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,function(G){q.get().La("onAdIntroStateChange",G)},y,z,D,H):new uX(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,function(G){q.get().Vj(G)},y,z,D,H)};
wX=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x){this.df=a;this.j=b;this.Na=c;this.Cb=d;this.Zd=e;this.le=f;this.Qa=h;this.Ca=l;this.hc=m;this.Fd=n;this.Vc=p;this.cf=q;this.Eb=t;this.kf=u;this.Ja=x};
xX=function(a,b,c,d,e,f,h,l){g.I.call(this);var m=this;this.Pb=a;this.yb=b;this.Ae=d;this.Ca=e;this.Ja=f;this.Na=h;this.re=l;this.j=null;c.get().addListener(this);g.Be(this,function(){c.get().removeListener(m)});
d.get().addListener(this);g.Be(this,function(){d.get().removeListener(m)})};
dQa=function(a,b){if(a.j)T("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.r(a.Ae.get().HD);for(var c=b.next();!c.done;c=b.next())pRa(a,a.j,c.value)}};
pRa=function(a,b,c){var d=a.Ca.get().getCurrentTimeSec(1,!1);a.Ja.get().G.S().experiments.fb("html5_ssdai_log_ad_transition_info")&&a.Na.get().Di("sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.durationSecs.toFixed(3));iv(a.Pb.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.yb.get(),f=qW(a.Ja.get());var h=1E3*c.startSecs;h={Gm:new wo(h,h+1E3*c.durationSecs),bD:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new wo(1E3*(c.startSecs-4),1E3*l);else{var m=
Math.max(0,c.startSecs-d-10);f=new wo(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}h.Au=f;return[SOa(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,b.contentCpn,h,b.adPlacementRenderer.adSlotLoggingData,[new pU(c)])]})};
yX=function(a,b,c,d,e,f,h,l,m){g.I.call(this);this.j=a;this.B=b;this.u=c;this.Pb=d;this.yb=e;this.gb=f;this.ub=h;this.Ja=l;this.Qa=m;this.Ej=!0};
qRa=function(a,b,c){return uQa(a.yb.get(),b.contentCpn,b.cw,function(d){return mQa(a.gb.get(),d.slotId,c,b.adPlacementConfig,b.cw,yT(a.ub.get(),d))})};
zX=function(a){var b,c=null==(b=X(a.Aa,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=X(a.Aa,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=X(a.Aa,"metadata_type_content_cpn"),f=X(a.Aa,"metadata_type_instream_ad_player_overlay_renderer"),h=X(a.Aa,"metadata_type_player_underlay_renderer"),l=X(a.Aa,"metadata_type_ad_placement_config"),m=X(a.Aa,"metadata_type_video_length_seconds");var n=jv(a.Aa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?X(a.Aa,
"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):jv(a.Aa,"metadata_type_layout_enter_ms")&&jv(a.Aa,"metadata_type_layout_exit_ms")?(X(a.Aa,"metadata_type_layout_exit_ms")-X(a.Aa,"metadata_type_layout_enter_ms"))/1E3:void 0;return{cw:d,contentCpn:e,vQ:c,xM:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,PH:n,iH:X(a.Aa,"metadata_type_linked_in_player_layout_id"),sO:X(a.Aa,"metadata_type_linked_in_player_slot_id")}};
sRa=function(a,b){return rRa(a,b)};
tRa=function(a,b){b=rRa(a,b);if(!b)return null;var c;b.PH=null==(c=X(a.Aa,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
rRa=function(a,b){var c,d=null==(c=X(a.Aa,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;jv(a.Aa,"metadata_ad_video_is_listed")?c=X(a.Aa,"metadata_ad_video_is_listed"):b?c=b.isListed:(T("No layout metadata nor AdPlayback specified for ad video isListed"),c=!1);jv(a.Aa,"metadata_type_ad_info_ad_metadata")?b=X(a.Aa,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.lk,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(T("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{eV:b,adPlacementConfig:X(a.Aa,"metadata_type_ad_placement_config"),gV:c,contentCpn:X(a.Aa,"metadata_type_content_cpn"),iH:X(a.Aa,"metadata_type_linked_in_player_layout_id"),sO:X(a.Aa,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:X(a.Aa,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,PH:void 0,vQ:d,cw:a.layoutId,videoLengthSeconds:X(a.Aa,"metadata_type_video_length_seconds")}};
uRa=function(a,b){this.callback=a;this.slot=b};
AX=function(){};
vRa=function(a,b,c){this.callback=a;this.slot=b;this.Ca=c};
wRa=function(a,b,c){this.callback=a;this.slot=b;this.Ca=c;this.u=!1;this.j=0};
xRa=function(a,b,c){this.callback=a;this.slot=b;this.Ca=c};
BX=function(a){this.Ca=a};
CX=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
DX=function(a){g.I.call(this);this.ME=a;this.Mb=new Map};
yRa=function(a,b){for(var c=[],d=g.r(a.Mb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof yV&&f.wf===b&&c.push(e)}c.length?aV(a.ME(),c):T("Survey is submitted but no registered triggers can be activated.")};
EX=function(a,b){DX.call(this,a);var c=this;b.get().addListener(this);g.Be(this,function(){b.get().removeListener(c)})};
FX=function(a){g.I.call(this);this.j=a;this.Ej=!0;this.Mb=new Map;this.D=new Set;this.B=new Set;this.C=new Set;this.I=new Set;this.u=new Set};
GX=function(a,b){g.I.call(this);var c=this;this.j=a;this.Mb=new Map;b.get().addListener(this);g.Be(this,function(){b.get().removeListener(c)})};
zRa=function(a,b,c,d){var e=[];a=g.r(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof AV){var h=f.trigger.j===b;h===c?e.push(f):d&&h&&(T("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
HX=function(a,b,c,d){g.I.call(this);var e=this;this.u=a;this.hc=b;this.Ca=c;this.Qa=d;this.Mb=new Map;this.j=new Set;c.get().addListener(this);g.Be(this,function(){c.get().removeListener(e)})};
IX=function(a,b,c,d,e,f,h,l,m,n){if(a.Qa.get().Gf(1).clientPlaybackNonce!==m)throw new Jv("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Mb.set(c.triggerId,{bundle:new CX(b,c,d,e),fB:f});a.hc.get().addCueRange(f,h,l,n,a)};
ARa=function(a,b){a=g.r(a.Mb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;if(b===d.fB)return c}return""};
JX=function(a){g.I.call(this);this.B=a;this.Ej=!0;this.Mb=new Map;this.u=this.j=null};
kX=function(a,b){for(var c=[],d=g.r(a.Mb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof BV){var f;if(f=e.trigger.layoutId===b)f=(f=EOa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&aV(a.B(),c)};
KX=function(a){g.I.call(this);this.j=a;this.Ej=!0;this.Mb=new Map};
LX=function(a,b,c){g.I.call(this);this.j=a;this.Cm=b;this.Va=c;this.Cm.get().addListener(this)};
MX=function(a,b,c,d,e,f){g.I.call(this);this.B=a;this.pe=b;this.ub=c;this.Qa=d;this.Va=e;this.Ja=f;this.j=this.u=null;this.C=!1;this.pe.get().addListener(this)};
Kya=function(a,b,c,d,e){var f=ov(a.Va.get(),"SLOT_TYPE_PLAYER_BYTES");a.u={slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Lb:void 0,Xb:[],lc:[],Xa:"surface",Aa:new sT([])};a.j={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Qb:new Map,wd:[],Pc:[],Lc:[],Qc:[],Tc:[],Xa:"surface",Aa:new sT(c),xc:wT(xT(a.ub.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};YU(a.B(),a.u,a.j);d&&(ZU(a.B(),a.u,a.j),a.C=!0,$U(a.B(),a.u,a.j))};
NX=function(a){this.Nq=a};
BRa=function(a,b){if(!a)return{hn:[],Yv:!0};a.trackingParams&&pza(PF(),a.trackingParams);if(a.adThrottled)return{hn:[],Yv:!0};a=a.playerAds;if(!a||!a.length)return{hn:[],Yv:!1};a=a.map(function(d){return d.adPlacementRenderer}).filter(function(d){return!(!d||!d.renderer)});
if(!a.length)return{hn:[],Yv:!1};if(0<b.end){var c=b.end.toString();a.forEach(function(d){(d=d.config&&d.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===d.kind&&d.adTimeOffset&&"-1"===d.adTimeOffset.offsetEndMilliseconds&&d.adTimeOffset.offsetEndMilliseconds!==c&&(d.adTimeOffset.offsetEndMilliseconds=c)})}return{hn:a,
Yv:!1}};
OX=function(a){g.I.call(this);this.G=a;this.listeners=[];this.j=new fu(this);g.J(this,this.j);this.j.P(this.G,"aduxclicked",this.onAdUxClicked);this.j.P(this.G,"aduxmouseover",this.cI);this.j.P(this.G,"aduxmouseout",this.bI);this.j.P(this.G,"muteadaccepted",this.cY)};
CRa=function(a,b,c){b=g.kk(b,function(d){return new Gv(d,c,d.id)});
a.G.La("onAdUxUpdate",b)};
PX=function(a,b){a=g.r(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
QX=function(a,b,c){g.I.call(this);this.G=a;this.Ja=b;this.Na=c;this.listeners=[];this.B=!1;this.HD=[];this.C=new nF(this,CQa(b.get()));this.u=new oF;this.j=null};
ERa=function(a,b){yW(a.Na.get(),{cuepointTrigger:{event:DRa(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.durationSecs,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.G.getVideoData(1).clientPlaybackNonce}})};
DRa=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:throw Error("Unexpected cuepoint event");}};
RX=function(a){this.G=a};
SX=function(a){this.G=a};
TX=function(){this.listeners=[]};
FRa=function(a){this.G=a};
GRa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ca=d;this.Na=e;a=X(c.Aa,"metadata_type_ad_placement_config");this.j=new RW(c.Qb,this.Na,a,c.layoutId)};
HRa=function(a,b){this.Ca=a;this.Na=b};
UX=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Qa=d;this.re=e;this.Ae=f;this.Ca=h;this.j=l;this.Na=m;this.D=n;this.driftRecoveryMs=X(this.layout.Aa,"metadata_type_drift_recovery_ms")||null};
IRa=function(a){var b=X(a.layout.Aa,"metadata_type_layout_enter_ms"),c=X(a.layout.Aa,"metadata_type_layout_exit_ms");a=a.Ae.get();b=pF(a.u,b,c);return Math.min(c,null!==b?b:Infinity)};
VX=function(a,b){var c;yW(a.Na.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.Qa.get().vr)?void 0:c.clientPlaybackNonce,adClientData:a.layout.xc.adClientDataEntry},b)})};
WX=function(a,b,c,d,e,f,h,l,m,n,p){UX.call(this,a,b,c,d,e,f,h,l,m,n);this.C=p;this.B=this.u=null;a=g.r(this.C);for(b=a.next();!b.done;b=a.next())b=b.value,jv(b.Fb().Aa,"metadata_type_survey_overlay")&&(this.B=b.Fb().layoutId)};
KRa=function(a,b){var c=JRa(a,b);a.u={wj:c};c?c.startRendering(c.Fb()):b===a.B&&T("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
JRa=function(a,b){return null==b?null:a.C.find(function(c){return c.Fb().layoutId===b})||null};
LRa=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=jv(b.Aa,"metadata_type_survey_overlay");if(!p)return h.qy(c,2,f,d,e,a.slotId),n.Di("ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.Wt(c,2,f,d,e,a.slotId);n.Di("ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return T("Unexpected failure to add to playback timeline",a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&T("Unexpected remap of timeline playback"),l.j.set(p,
{slotId:a,layoutId:b})):T("Invalid timeline playback ID");d+f>e&&h.gw(p,e-d);return p};
MRa=function(a,b){var c=X(b.Aa,"metadata_type_sodar_extension_data");if(c)try{RQa(0,c)}catch(d){T("Unexpected error when loading Sodar",a,b,{error:d})}};
NRa=function(a,b,c,d,e,f){XX(a,b,new g.TE(c,new g.zF),d,e,!1,f)};
XX=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;lX(c)&&mX(e,0,null)&&(!WW(a,"impression")&&h&&h(),UW(a,"impression"));WW(a,"impression")&&(g.VE(c,4)&&!g.VE(c,2)&&a.vg("pause"),0>UE(c,4)&&!(0>UE(c,2))&&a.vg("resume"),g.VE(c,16)&&.5<=e&&a.vg("seek"),f&&g.VE(c,2)&&YX(a,c.state,b,d,e))};
YX=function(a,b,c,d,e,f){if(WW(a,"impression")){var h=1>=Math.abs(d-e);ZX(a,b,h?d:e,c,d,f);h&&UW(a,"complete")}};
ZX=function(a,b,c,d,e,f){VW(a,1E3*c);0>=e||0>=c||(null==b?0:g.V(b,16))||(null==b?0:g.V(b,32))||(mX(c,.25*e,d)&&(f&&!WW(a,"first_quartile")&&f("first"),UW(a,"first_quartile")),mX(c,.5*e,d)&&(f&&!WW(a,"midpoint")&&f("second"),UW(a,"midpoint")),mX(c,.75*e,d)&&(f&&!WW(a,"third_quartile")&&f("third"),UW(a,"third_quartile")))};
ORa=function(a,b){WW(a,"impression")&&a.vg(b?"fullscreen":"end_fullscreen")};
PRa=function(a){WW(a,"impression")&&a.vg("clickthrough")};
QRa=function(a){a.vg("active_view_measurable")};
RRa=function(a){WW(a,"impression")&&!WW(a,"seek")&&a.vg("active_view_fully_viewable_audible_half_duration")};
SRa=function(a){WW(a,"impression")&&!WW(a,"seek")&&a.vg("active_view_viewable")};
TRa=function(a){WW(a,"impression")&&!WW(a,"seek")&&a.vg("audio_audible")};
URa=function(a){WW(a,"impression")&&!WW(a,"seek")&&a.vg("audio_measurable")};
VRa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.re=d;this.j=e;this.Ca=f;this.yd=h;this.Cb=l;this.Zd=m;this.Ja=n;this.Na=p;this.Qa=q;this.cC=!0;this.Ac=this.u=null};
WRa=function(a,b,c){var d;a.Na.get().Di("ads_qua","cpn."+X(a.layout.Aa,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Qa.get().Gf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
XRa=function(a,b){var c;a.Na.get().Di("ads_imp","cpn."+X(a.layout.Aa,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Qa.get().Gf(2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
$X=function(a){return{enterMs:X(a.Aa,"metadata_type_layout_enter_ms"),exitMs:X(a.Aa,"metadata_type_layout_exit_ms")}};
aY=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){UX.call(this,a,b,c,d,e,h,l,m,n,q);this.yd=f;this.Zd=p;this.Cb=t;this.Ja=u;this.Ac=this.u=null};
YRa=function(a,b){var c;a.Na.get().Di("ads_imp","acpn."+(null==(c=a.Qa.get().Gf(2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
ZRa=function(a,b,c){var d;a.Na.get().Di("ads_qua","cpn."+X(a.layout.Aa,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Qa.get().Gf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
bY=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,z,D,H){this.df=a;this.u=b;this.Qa=c;this.re=d;this.Ca=e;this.Na=f;this.yd=h;this.Ae=l;this.Cb=m;this.Zd=n;this.le=p;this.hc=q;this.Fd=t;this.Vc=u;this.cf=x;this.Eb=y;this.kf=z;this.Ja=D;this.j=H};
cY=function(a){g.I.call(this);this.j=a;this.Mb=new Map};
dY=function(a,b){for(var c=[],d=g.r(a.Mb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&aV(a.j(),c)};
eY=function(a,b){g.I.call(this);var c=this;this.C=a;this.u=new Map;this.B=new Map;this.j=null;b.get().addListener(this);g.Be(this,function(){b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().vr)?void 0:d.slotId)||null};
$Ra=function(a,b){var c=[];a=g.r(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
fY=function(a){this.G=a};
aSa=function(a,b,c,d,e){hE.call(this,"image-companion",a,b,c,d,e)};
gY=function(a,b,c,d,e,f,h,l){YW.call(this,a,b,c,d);this.Na=e;this.df=f;this.J=l;this.Ej=!0;this.C=null;this.D=X(c.Aa,"metadata_type_linked_player_bytes_layout_id");OU(this.df(),this);a=X(c.Aa,"metadata_type_ad_placement_config");this.I=new RW(c.Qb,this.Na,a,c.layoutId)};
bSa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];SW().forEach(function(b){a.push(b)});
return{ke:a,Af:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
cSa=function(a,b,c,d,e){hE.call(this,"shopping-companion",a,b,c,d,e)};
hY=function(a,b,c,d,e,f,h,l){YW.call(this,a,b,c,d);this.Na=e;this.df=f;this.J=l;this.Ej=!0;this.C=null;this.D=X(c.Aa,"metadata_type_linked_player_bytes_layout_id");OU(this.df(),this);a=X(c.Aa,"metadata_type_ad_placement_config");this.I=new RW(c.Qb,this.Na,a,c.layoutId)};
dSa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];SW().forEach(function(b){a.push(b)});
return{ke:a,Af:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
eSa=function(a,b,c,d,e){hE.call(this,"ads-engagement-panel",a,b,c,d,e)};
iY=function(a,b,c,d,e,f,h,l){YW.call(this,a,b,c,d);this.Na=e;this.df=f;this.J=l;this.Ej=!0;this.C=null;this.D=X(c.Aa,"metadata_type_linked_player_bytes_layout_id");OU(this.df(),this);a=X(c.Aa,"metadata_type_ad_placement_config");this.I=new RW(c.Qb,this.Na,a,c.layoutId)};
fSa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];SW().forEach(function(b){a.push(b)});
return{ke:a,Af:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
gSa=function(a,b,c,d,e){this.Ub=a;this.Na=b;this.df=c;this.j=d;this.Cb=e};
jY=function(a,b,c){hE.call(this,"player-underlay",a,{},b,c);this.j=c};
kY=function(a,b,c,d){YW.call(this,a,b,c,d)};
hSa=function(a){this.Ub=a};
iSa=function(a,b,c,d){hE.call(this,"survey-interstitial",a,b,c,d)};
lY=function(a,b,c,d,e){YW.call(this,c,a,b,d);this.Na=e;a=X(b.Aa,"metadata_type_ad_placement_config");this.C=new RW(b.Qb,e,a,b.layoutId)};
mY=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
oY=function(a,b,c){c=void 0===c?nY:c;c.width<nY.width&&(c=nY);if(a.width<c.width||a.height<c.height)return{RD:3,Wz:501,errorMessage:"ad("+mY(c)+") larger than container("+mY(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{RD:3,Wz:501,errorMessage:"ad("+mY(c)+") to container("+mY(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{RD:3,Wz:501,errorMessage:"ad("+mY(c)+") covers container("+mY(a)+") center."}};
jSa=function(a,b){var c=X(a.Aa,"metadata_type_ad_placement_config");return new RW(a.Qb,b,c,a.layoutId)};
pY=function(a){return X(a.Aa,"metadata_type_invideo_overlay_ad_renderer")};
qY=function(a,b,c,d){hE.call(this,"invideo-overlay",a,b,c,d);this.j=d};
rY=function(a,b,c,d,e,f,h,l,m,n,p,q){YW.call(this,f,a,b,e);this.Na=c;this.C=h;this.Ca=l;this.Eb=m;this.Ja=n;this.I=p;this.D=q;this.N=jSa(b,c)};
kSa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];SW().forEach(function(b){a.push(b)});
return{ke:a,Af:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
sY=function(a,b,c,d,e,f,h,l,m,n,p,q,t){YW.call(this,f,a,b,e);this.Na=c;this.C=h;this.N=l;this.Ca=m;this.Eb=n;this.Ja=p;this.I=q;this.D=t;this.V=jSa(b,c)};
lSa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.r(SW()),c=b.next();!c.done;c=b.next())a.push(c.value);return{ke:a,Af:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
tY=function(a){this.Ca=a;this.j=!1};
mSa=function(a,b,c){hE.call(this,"survey",a,{},b,c)};
uY=function(a,b,c,d,e,f,h){YW.call(this,c,a,b,d);this.C=e;this.Ca=f;this.Ja=h};
nSa=function(a,b,c,d,e,f,h,l,m,n){this.Ub=a;this.Ca=b;this.Na=c;this.C=d;this.Cb=e;this.u=f;this.B=h;this.Eb=l;this.Ja=m;this.j=n};
vY=function(a){g.I.call(this);this.B=a;this.Ej=!0;this.Mb=new Map;this.j=new Map;this.u=new Map};
oSa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())(d=a.u.get(d.value.triggerId))&&c.push(d)}return c};
pSa=function(a,b,c,d,e){g.I.call(this);var f=this;this.Va=Y(function(){return new nv});
g.J(this,this.Va);this.gb=Y(function(){return new TV(f.Va)});
g.J(this,this.gb);this.zc=Y(function(){return new QV});
g.J(this,this.zc);this.Pb=Y(function(){return new MV(a)});
g.J(this,this.Pb);this.yb=Y(function(){return new fW(f.Va,f.gb)});
g.J(this,this.yb);this.yd=Y(function(){return new lW});
g.J(this,this.yd);this.cf=Y(function(){return new iE(b.S())});
g.J(this,this.cf);this.Ub=Y(function(){return new OX(b)});
g.J(this,this.Ub);this.Eb=Y(function(){return new mV(e)});
g.J(this,this.Eb);this.Fd=Y(function(){return new sF(b)});
g.J(this,this.Fd);this.hc=Y(function(){return new nW(b)});
g.J(this,this.hc);this.le=Y(function(){return new RX(b)});
g.J(this,this.le);this.Vc=Y(function(){return new oW(b)});
g.J(this,this.Vc);this.Ja=Y(function(){return new pW(b)});
g.J(this,this.Ja);this.Ne=Y(function(){return new NX(d)});
g.J(this,this.Ne);this.ub=Y(function(){return new zT(f.Ja)});
g.J(this,this.ub);this.Cd=Y(function(){return new JV(f.Va,f.yb,f.gb,f.Ja,f.ub,"SLOT_TYPE_ABOVE_FEED",f.ai)});
g.J(this,this.Cd);this.kf=Y(function(){return new SX(b)});
g.J(this,this.kf);this.pe=Y(function(){return new TX});
g.J(this,this.pe);this.Cm=Y(function(){return new GW});
g.J(this,this.Cm);this.Qa=Y(function(){return new BW(b,f.yd,f.Ja)});
g.J(this,this.Qa);this.Tb=new kW(this.Ja,this.ub,this.Qa);g.J(this,this.Tb);this.Ae=Y(function(){return new QX(b,f.Ja,f.Na)});
g.J(this,this.Ae);this.re=Y(function(){return new fY(b)});
g.J(this,this.re);this.Ca=Y(function(){return new CW(b,f.Qa,f.Ja)});
g.J(this,this.Ca);this.Zd=Y(function(){return new HW});
this.Cb=Y(function(){return new rW(f.Ca,b)});
g.J(this,this.Cb);this.Na=Y(function(){return new wW(b,f.zc,f.Cb,f.Qa)});
g.J(this,this.Na);this.Lg=new yX(zX,wY,function(l,m,n,p){return UV(f.gb.get(),l,m,n,p)},this.Pb,this.yb,this.gb,this.ub,this.Ja,this.Qa);
g.J(this,this.Lg);this.Dc=new mv(this.Pb,this.Cd,c,this.Ja,a,this.Qa,this.Ca);g.J(this,this.Dc);var h=new mW(b,this.Dc,this.Ca,this.Qa,this.Ae);this.nf=Y(function(){return h});
this.Wp=h;this.ai=new xX(this.Pb,this.yb,this.nf,this.Ae,this.Ca,this.Ja,this.Na,this.re);g.J(this,this.ai);this.xe=new PV(this.Pb,this.yb,this.hc,this.nf);g.J(this,this.xe);this.Ec=new hv(this.Pb,this.yb,this.Cd,this.Qa,this.xe,c);g.J(this,this.Ec);this.Cg=Y(function(){return new NW(f.Ne,f.gb,f.ub,f.re)});
g.J(this,this.Cg);this.rd=Y(function(){return new OW});
g.J(this,this.rd);this.Oe=new EX(a,this.Ub);g.J(this,this.Oe);this.vb=new FX(a);g.J(this,this.vb);this.ir=new cY(a);g.J(this,this.ir);this.gf=new GX(a,this.nf);g.J(this,this.gf);this.Qe=new HX(a,this.hc,this.Ca,this.Qa);g.J(this,this.Qe);this.Vr=new eY(a,this.Qa);g.J(this,this.Vr);this.Uc=new JX(a);g.J(this,this.Uc);this.Jg=new KX(a);g.J(this,this.Jg);this.Ss=new vY(a);g.J(this,this.Ss);this.od=Y(function(){return new AX});
g.J(this,this.od);this.Mg=Y(function(){return new BX(f.Ca)});
g.J(this,this.Mg);this.tM=Y(function(){return new gSa(f.Ub,f.Na,a,f.zc,f.Cb)});
g.J(this,this.tM);this.Bg=Y(function(){return new QW(f.Ec)});
g.J(this,this.Bg);this.Dg=Y(function(){return new XW(f.Na,f.Uc,f.Cb)});
g.J(this,this.Dg);this.Kg=Y(function(){return new bY(a,f.Uc,f.Qa,f.re,f.Ca,f.Na,f.yd,f.Ae,f.Cb,f.Zd,f.le,f.hc,f.Fd,f.Vc,f.cf,f.Eb,f.kf,f.Ja,f.zc)});
g.J(this,this.Kg);this.uQ=Y(function(){return new HRa(f.Ca,f.Na)});
g.J(this,this.uQ);this.Nk=Y(function(){return new nSa(f.Ub,f.Ca,f.Na,f.zc,f.Cb,f.ir,f.Ss,f.Eb,f.Ja,c)});
g.J(this,this.Nk);this.TR=Y(function(){return new hSa(f.Ub)});
g.J(this,this.TR);this.qF=new LX(a,this.Cm,this.Va);g.J(this,this.qF);this.al=new MX(a,this.pe,this.ub,this.Qa,this.Va,this.Ja);g.J(this,this.al);this.ue={ws:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.ai],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Lg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xe]]),Bn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Cg],["SLOT_TYPE_ABOVE_FEED",this.rd],["SLOT_TYPE_FORECASTING",this.rd],["SLOT_TYPE_IN_PLAYER",this.rd],["SLOT_TYPE_PLAYER_BYTES",this.rd],["SLOT_TYPE_PLAYER_UNDERLAY",this.rd],["SLOT_TYPE_PLAYBACK_TRACKING",this.rd]]),nj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Oe],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Oe],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vb],
["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.vb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.ir],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.gf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Qe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Qe],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",
this.Qe],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Vr],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Vr],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.gf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jg],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Ss]]),Ao:new Map([["SLOT_TYPE_ABOVE_FEED",this.od],["SLOT_TYPE_AD_BREAK_REQUEST",this.od],["SLOT_TYPE_FORECASTING",
this.od],["SLOT_TYPE_IN_PLAYER",this.od],["SLOT_TYPE_PLAYER_BYTES",this.Mg],["SLOT_TYPE_PLAYER_UNDERLAY",this.od],["SLOT_TYPE_PLAYBACK_TRACKING",this.od]]),Qn:new Map([["SLOT_TYPE_ABOVE_FEED",this.tM],["SLOT_TYPE_AD_BREAK_REQUEST",this.Bg],["SLOT_TYPE_FORECASTING",this.Dg],["SLOT_TYPE_PLAYER_BYTES",this.Kg],["SLOT_TYPE_PLAYBACK_TRACKING",this.uQ],["SLOT_TYPE_IN_PLAYER",this.Nk],["SLOT_TYPE_PLAYER_UNDERLAY",this.TR]])};this.listeners=[this.zc.get()];this.Tr={Ec:this.Ec,Sl:this.Uc,Sn:this.pe.get(),
yh:this.Ja.get(),Ua:this.Eb.get(),eq:this.Ca.get(),Dc:this.Dc,Mk:this.Va.get(),Rn:this.Cm.get(),Kj:this.Oe,Bi:this.zc.get(),Zk:this.Qa.get()}};
qSa=function(a,b,c,d,e,f,h,l,m,n){this.Ub=a;this.Ca=b;this.Na=c;this.C=d;this.Cb=e;this.u=f;this.B=h;this.Eb=l;this.Ja=m;this.j=n};
rSa=function(a,b,c,d,e){g.I.call(this);var f=this;this.Va=Y(function(){return new nv});
g.J(this,this.Va);this.gb=Y(function(){return new TV(f.Va)});
g.J(this,this.gb);this.zc=Y(function(){return new QV});
g.J(this,this.zc);this.Pb=Y(function(){return new MV(a)});
g.J(this,this.Pb);this.yb=Y(function(){return new fW(f.Va,f.gb)});
g.J(this,this.yb);this.yd=Y(function(){return new lW});
g.J(this,this.yd);this.cf=Y(function(){return new iE(b.S())});
g.J(this,this.cf);this.Ub=Y(function(){return new OX(b)});
g.J(this,this.Ub);this.Eb=Y(function(){return new mV(e)});
g.J(this,this.Eb);this.Fd=Y(function(){return new sF(b)});
g.J(this,this.Fd);this.hc=Y(function(){return new nW(b)});
g.J(this,this.hc);this.le=Y(function(){return new RX(b)});
g.J(this,this.le);this.Vc=Y(function(){return new oW(b)});
g.J(this,this.Vc);this.Ja=Y(function(){return new pW(b)});
g.J(this,this.Ja);this.Ne=Y(function(){return new NX(d)});
g.J(this,this.Ne);this.ub=Y(function(){return new zT(f.Ja)});
g.J(this,this.ub);this.Cd=Y(function(){return new JV(f.Va,f.yb,f.gb,f.Ja,f.ub,null,f.ai)});
g.J(this,this.Cd);this.kf=Y(function(){return new SX(b)});
g.J(this,this.kf);this.pe=Y(function(){return new TX});
g.J(this,this.pe);this.Cm=Y(function(){return new GW});
g.J(this,this.Cm);this.Qa=Y(function(){return new BW(b,f.yd,f.Ja)});
g.J(this,this.Qa);this.Tb=new kW(this.Ja,this.ub,this.Qa);g.J(this,this.Tb);this.Ae=Y(function(){return new QX(b,f.Ja,f.Na)});
this.Ca=Y(function(){return new CW(b,f.Qa,f.Ja)});
g.J(this,this.Ca);this.Cb=Y(function(){return new rW(f.Ca,b)});
g.J(this,this.Cb);this.Na=Y(function(){return new wW(b,f.zc,f.Cb,f.Qa)});
g.J(this,this.Na);this.Zd=Y(function(){return new HW});
g.J(this,this.Zd);this.Lg=new yX(zX,wY,function(l,m,n,p){return UV(f.gb.get(),l,m,n,p)},this.Pb,this.yb,this.gb,this.ub,this.Ja,this.Qa);
g.J(this,this.Lg);this.Dc=new mv(this.Pb,this.Cd,c,this.Ja,a,this.Qa,this.Ca);g.J(this,this.Dc);var h=new mW(b,this.Dc,this.Ca,this.Qa,this.Ae);this.nf=Y(function(){return h});
this.Wp=h;this.ai=new xX(this.Pb,this.yb,this.nf,this.Ae,this.Ca,this.Ja,this.Na);g.J(this,this.ai);this.xe=new PV(this.Pb,this.yb,this.hc,this.nf);g.J(this,this.xe);this.Ec=new hv(this.Pb,this.yb,this.Cd,this.Qa,this.xe,c);g.J(this,this.Ec);this.Cg=Y(function(){return new NW(f.Ne,f.gb,f.ub)});
g.J(this,this.Cg);this.rd=Y(function(){return new OW});
g.J(this,this.rd);this.Oe=new EX(a,this.Ub);g.J(this,this.Oe);this.vb=new FX(a);g.J(this,this.vb);this.ir=new cY(a);g.J(this,this.ir);this.gf=new GX(a,this.nf);g.J(this,this.gf);this.Qe=new HX(a,this.hc,this.Ca,this.Qa);g.J(this,this.Qe);this.Uc=new JX(a);g.J(this,this.Uc);this.Jg=new KX(a);g.J(this,this.Jg);this.Ss=new vY(a);g.J(this,this.Ss);this.od=Y(function(){return new AX});
g.J(this,this.od);this.Mg=Y(function(){return new BX(f.Ca)});
g.J(this,this.Mg);this.Bg=Y(function(){return new QW(f.Ec)});
g.J(this,this.Bg);this.Dg=Y(function(){return new XW(f.Na,f.Uc,f.Cb)});
g.J(this,this.Dg);this.Nk=Y(function(){return new qSa(f.Ub,f.Ca,f.Na,f.zc,f.Cb,f.ir,f.Ss,f.Eb,f.Ja,c)});
g.J(this,this.Nk);this.Kg=Y(function(){return new wX(a,f.Uc,f.Na,f.Cb,f.Zd,f.le,f.Qa,f.Ca,f.hc,f.Fd,f.Vc,f.cf,f.Eb,f.kf,f.Ja)});
g.J(this,this.Kg);this.qF=new LX(a,this.Cm,this.Va);g.J(this,this.qF);this.al=new MX(a,this.pe,this.ub,this.Qa,this.Va,this.Ja);g.J(this,this.al);this.ue={ws:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.ai],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Lg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xe]]),Bn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Cg],["SLOT_TYPE_FORECASTING",this.rd],["SLOT_TYPE_IN_PLAYER",this.rd],["SLOT_TYPE_PLAYER_BYTES",this.rd]]),nj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Oe],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",
this.vb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.vb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.ir],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.gf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Qe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Qe],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Qe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.gf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jg],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Ss]]),Ao:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.od],["SLOT_TYPE_FORECASTING",this.od],["SLOT_TYPE_IN_PLAYER",this.od],["SLOT_TYPE_PLAYER_BYTES",this.Mg]]),Qn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bg],["SLOT_TYPE_FORECASTING",this.Dg],["SLOT_TYPE_IN_PLAYER",this.Nk],["SLOT_TYPE_PLAYER_BYTES",this.Kg]])};this.listeners=[this.zc.get()];this.Tr={Ec:this.Ec,Sl:null,Sn:this.pe.get(),
yh:this.Ja.get(),Ua:this.Eb.get(),eq:this.Ca.get(),Dc:this.Dc,Mk:this.Va.get(),Rn:this.Cm.get(),Kj:this.Oe,Bi:this.zc.get(),Zk:this.Qa.get()}};
sSa=function(a,b,c,d,e){g.I.call(this);var f=this;this.Va=Y(function(){return new nv});
g.J(this,this.Va);this.gb=Y(function(){return new TV(f.Va)});
g.J(this,this.gb);this.zc=Y(function(){return new QV});
g.J(this,this.zc);this.Pb=Y(function(){return new MV(a)});
g.J(this,this.Pb);this.yb=Y(function(){return new fW(f.Va,f.gb)});
g.J(this,this.yb);this.yd=Y(function(){return new lW});
g.J(this,this.yd);this.cf=Y(function(){return new iE(b.S())});
g.J(this,this.cf);this.Ub=Y(function(){return new OX(b)});
g.J(this,this.Ub);this.Eb=Y(function(){return new mV(e)});
g.J(this,this.Eb);this.Fd=Y(function(){return new sF(b)});
g.J(this,this.Fd);this.hc=Y(function(){return new nW(b)});
g.J(this,this.hc);this.le=Y(function(){return new RX(b)});
g.J(this,this.le);this.Vc=Y(function(){return new oW(b)});
g.J(this,this.Vc);this.Ja=Y(function(){return new pW(b)});
g.J(this,this.Ja);this.Ne=Y(function(){return new NX(d)});
g.J(this,this.Ne);this.ub=Y(function(){return new zT(f.Ja)});
g.J(this,this.ub);this.Cd=Y(function(){return new JV(f.Va,f.yb,f.gb,f.Ja,f.ub,null,null)});
g.J(this,this.Cd);this.kf=Y(function(){return new SX(b)});
g.J(this,this.kf);this.pe=Y(function(){return new TX});
g.J(this,this.pe);this.Qa=Y(function(){return new BW(b,f.yd,f.Ja)});
g.J(this,this.Qa);this.Tb=new kW(this.Ja,this.ub,this.Qa);g.J(this,this.Tb);this.Ca=Y(function(){return new CW(b,f.Qa,f.Ja)});
g.J(this,this.Ca);this.Cb=Y(function(){return new rW(f.Ca,b)});
g.J(this,this.Cb);this.Na=Y(function(){return new wW(b,f.zc,f.Cb,f.Qa)});
g.J(this,this.Na);this.Zd=Y(function(){return new HW});
g.J(this,this.Zd);this.Lg=new yX(zX,wY,function(l,m,n,p){return UV(f.gb.get(),l,m,n,p)},this.Pb,this.yb,this.gb,this.ub,this.Ja,this.Qa);
g.J(this,this.Lg);this.Dc=new mv(this.Pb,this.Cd,c,this.Ja,a,this.Qa,this.Ca);g.J(this,this.Dc);var h=new mW(b,this.Dc,this.Ca,this.Qa);this.nf=Y(function(){return h});
this.Wp=h;this.xe=new PV(this.Pb,this.yb,this.hc,this.nf);g.J(this,this.xe);this.Ec=new hv(this.Pb,this.yb,this.Cd,this.Qa,this.xe,c);g.J(this,this.Ec);this.Cg=Y(function(){return new NW(f.Ne,f.gb,f.ub)});
g.J(this,this.Cg);this.rd=Y(function(){return new OW});
g.J(this,this.rd);this.Oe=new EX(a,this.Ub);g.J(this,this.Oe);this.vb=new FX(a);g.J(this,this.vb);this.gf=new GX(a,this.nf);g.J(this,this.gf);this.Qe=new HX(a,this.hc,this.Ca,this.Qa);g.J(this,this.Qe);this.Uc=new JX(a);g.J(this,this.Uc);this.Jg=new KX(a);g.J(this,this.Jg);this.od=Y(function(){return new AX});
g.J(this,this.od);this.Mg=Y(function(){return new BX(f.Ca)});
g.J(this,this.Mg);this.Bg=Y(function(){return new QW(f.Ec)});
g.J(this,this.Bg);this.Dg=Y(function(){return new XW(f.Na,f.Uc,f.Cb)});
g.J(this,this.Dg);this.pQ=Y(function(){return new eX(f.Ub,f.Ca,f.Na,f.zc,c)});
g.J(this,this.pQ);this.Kg=Y(function(){return new wX(a,f.Uc,f.Na,f.Cb,f.Zd,f.le,f.Qa,f.Ca,f.hc,f.Fd,f.Vc,f.cf,f.Eb,f.kf,f.Ja)});
g.J(this,this.Kg);this.al=new MX(a,this.pe,this.ub,this.Qa,this.Va,this.Ja);g.J(this,this.al);this.ue={ws:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Lg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xe]]),Bn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cg],["SLOT_TYPE_FORECASTING",this.rd],["SLOT_TYPE_IN_PLAYER",this.rd],["SLOT_TYPE_PLAYER_BYTES",
this.rd]]),nj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Oe],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.gf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Qe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Qe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.gf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jg]]),Ao:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.od],["SLOT_TYPE_ABOVE_FEED",this.od],["SLOT_TYPE_FORECASTING",this.od],["SLOT_TYPE_IN_PLAYER",this.od],["SLOT_TYPE_PLAYER_BYTES",
this.Mg]]),Qn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bg],["SLOT_TYPE_FORECASTING",this.Dg],["SLOT_TYPE_IN_PLAYER",this.pQ],["SLOT_TYPE_PLAYER_BYTES",this.Kg]])};this.listeners=[this.zc.get()];this.Tr={Ec:this.Ec,Sl:null,Sn:this.pe.get(),yh:this.Ja.get(),Ua:this.Eb.get(),eq:this.Ca.get(),Dc:this.Dc,Mk:this.Va.get(),Rn:null,Kj:this.Oe,Bi:this.zc.get(),Zk:this.Qa.get()}};
tSa=function(a,b,c,d,e){g.I.call(this);var f=this;this.Va=Y(function(){return new nv});
g.J(this,this.Va);this.gb=Y(function(){return new TV(f.Va)});
g.J(this,this.gb);this.zc=Y(function(){return new QV});
g.J(this,this.zc);this.Pb=Y(function(){return new MV(a)});
g.J(this,this.Pb);this.yb=Y(function(){return new fW(f.Va,f.gb)});
g.J(this,this.yb);this.yd=Y(function(){return new lW});
g.J(this,this.yd);this.cf=Y(function(){return new iE(b.S())});
g.J(this,this.cf);this.Ub=Y(function(){return new OX(b)});
g.J(this,this.Ub);this.Eb=Y(function(){return new mV(e)});
g.J(this,this.Eb);this.Fd=Y(function(){return new sF(b)});
g.J(this,this.Fd);this.hc=Y(function(){return new nW(b)});
g.J(this,this.hc);this.le=Y(function(){return new RX(b)});
g.J(this,this.le);this.Vc=Y(function(){return new oW(b)});
g.J(this,this.Vc);this.Ja=Y(function(){return new pW(b)});
g.J(this,this.Ja);this.Ne=Y(function(){return new NX(d)});
g.J(this,this.Ne);this.ub=Y(function(){return new zT(f.Ja)});
g.J(this,this.ub);this.Cd=Y(function(){return new JV(f.Va,f.yb,f.gb,f.Ja,f.ub,null,null)});
g.J(this,this.Cd);this.kf=Y(function(){return new SX(b)});
g.J(this,this.kf);this.pe=Y(function(){return new TX});
g.J(this,this.pe);this.Qa=Y(function(){return new BW(b,f.yd,f.Ja)});
g.J(this,this.Qa);this.Tb=new kW(this.Ja,this.ub,this.Qa);g.J(this,this.Tb);this.Ca=Y(function(){return new CW(b,f.Qa,f.Ja)});
g.J(this,this.Ca);this.Cb=Y(function(){return new rW(f.Ca,b)});
g.J(this,this.Cb);this.Na=Y(function(){return new wW(b,f.zc,f.Cb,f.Qa)});
g.J(this,this.Na);this.Zd=Y(function(){return new HW});
g.J(this,this.Zd);this.Lg=new yX(zX,wY,function(l,m,n,p){return UV(f.gb.get(),l,m,n,p)},this.Pb,this.yb,this.gb,this.ub,this.Ja,this.Qa);
g.J(this,this.Lg);this.Dc=new mv(this.Pb,this.Cd,c,this.Ja,a,this.Qa,this.Ca);g.J(this,this.Dc);var h=new mW(b,this.Dc,this.Ca,this.Qa);this.nf=Y(function(){return h});
this.Wp=h;this.xe=new PV(this.Pb,this.yb,this.hc,this.nf);g.J(this,this.xe);this.Ec=new hv(this.Pb,this.yb,this.Cd,this.Qa,this.xe,c);g.J(this,this.Ec);this.Cg=Y(function(){return new NW(f.Ne,f.gb,f.ub)});
g.J(this,this.Cg);this.rd=Y(function(){return new OW});
g.J(this,this.rd);this.Oe=new EX(a,this.Ub);g.J(this,this.Oe);this.vb=new FX(a);g.J(this,this.vb);this.gf=new GX(a,this.nf);g.J(this,this.gf);this.Qe=new HX(a,this.hc,this.Ca,this.Qa);g.J(this,this.Qe);this.Uc=new JX(a);g.J(this,this.Uc);this.Jg=new KX(a);g.J(this,this.Jg);this.od=Y(function(){return new AX});
g.J(this,this.od);this.Mg=Y(function(){return new BX(f.Ca)});
g.J(this,this.Mg);this.Bg=Y(function(){return new QW(f.Ec)});
g.J(this,this.Bg);this.Dg=Y(function(){return new XW(f.Na,f.Uc,f.Cb)});
g.J(this,this.Dg);this.Nk=Y(function(){return new eX(f.Ub,f.Ca,f.Na,f.zc,c)});
g.J(this,this.Nk);this.Kg=Y(function(){return new wX(a,f.Uc,f.Na,f.Cb,f.Zd,f.le,f.Qa,f.Ca,f.hc,f.Fd,f.Vc,f.cf,f.Eb,f.kf,f.Ja)});
g.J(this,this.Kg);this.al=new MX(a,this.pe,this.ub,this.Qa,this.Va,this.Ja);g.J(this,this.al);this.ue={ws:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Lg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xe]]),Bn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cg],["SLOT_TYPE_FORECASTING",this.rd],["SLOT_TYPE_IN_PLAYER",this.rd],["SLOT_TYPE_PLAYER_BYTES",
this.rd]]),nj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Oe],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.gf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Qe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.gf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jg]]),Ao:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.od],["SLOT_TYPE_FORECASTING",this.od],["SLOT_TYPE_IN_PLAYER",this.od],["SLOT_TYPE_PLAYER_BYTES",this.Mg]]),Qn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bg],["SLOT_TYPE_FORECASTING",
this.Dg],["SLOT_TYPE_IN_PLAYER",this.Nk],["SLOT_TYPE_PLAYER_BYTES",this.Kg]])};this.listeners=[this.zc.get()];this.Tr={Ec:this.Ec,Sl:null,Sn:this.pe.get(),yh:this.Ja.get(),Ua:this.Eb.get(),eq:this.Ca.get(),Dc:this.Dc,Mk:this.Va.get(),Rn:null,Kj:this.Oe,Bi:this.zc.get(),Zk:this.Qa.get()}};
xY=function(a,b,c,d,e,f,h,l,m){cX.call(this,a,b,c,d,e,f,h,m);this.zk=l};
uSa=function(){var a=eRa();a.ke.push("metadata_type_ad_info_ad_metadata");return a};
vSa=function(a,b,c,d,e,f){this.Ub=a;this.Ca=b;this.Na=c;this.u=d;this.zk=e;this.j=f};
wSa=function(a,b,c,d,e){g.I.call(this);var f=this;this.Va=Y(function(){return new nv});
g.J(this,this.Va);this.gb=Y(function(){return new TV(f.Va)});
g.J(this,this.gb);this.zc=Y(function(){return new QV});
g.J(this,this.zc);this.Pb=Y(function(){return new MV(a)});
g.J(this,this.Pb);this.yb=Y(function(){return new fW(f.Va,f.gb)});
g.J(this,this.yb);this.yd=Y(function(){return new lW});
g.J(this,this.yd);this.zk=Y(function(){return new FRa(b)});
g.J(this,this.zk);this.cf=Y(function(){return new iE(b.S())});
g.J(this,this.cf);this.Ub=Y(function(){return new OX(b)});
g.J(this,this.Ub);this.Eb=Y(function(){return new mV(e)});
g.J(this,this.Eb);this.Fd=Y(function(){return new sF(b)});
g.J(this,this.Fd);this.hc=Y(function(){return new nW(b)});
g.J(this,this.hc);this.le=Y(function(){return new RX(b)});
g.J(this,this.le);this.Vc=Y(function(){return new oW(b)});
g.J(this,this.Vc);this.Ja=Y(function(){return new pW(b)});
g.J(this,this.Ja);this.Ne=Y(function(){return new NX(d)});
g.J(this,this.Ne);this.ub=Y(function(){return new zT(f.Ja)});
g.J(this,this.ub);this.Cd=Y(function(){return new JV(f.Va,f.yb,f.gb,f.Ja,f.ub,null,null)});
g.J(this,this.Cd);this.kf=Y(function(){return new SX(b)});
g.J(this,this.kf);this.pe=Y(function(){return new TX});
g.J(this,this.pe);this.Qa=Y(function(){return new BW(b,f.yd,f.Ja)});
g.J(this,this.Qa);this.Tb=new kW(this.Ja,this.ub,this.Qa);g.J(this,this.Tb);this.Ca=Y(function(){return new CW(b,f.Qa,f.Ja)});
g.J(this,this.Ca);this.Cb=Y(function(){return new rW(f.Ca,b)});
g.J(this,this.Cb);this.Na=Y(function(){return new wW(b,f.zc,f.Cb,f.Qa)});
g.J(this,this.Na);this.Zd=Y(function(){return new HW});
g.J(this,this.Zd);this.Lg=new yX(sRa,wY,function(l,m,n,p){return nQa(f.gb.get(),l,m,n,p)},this.Pb,this.yb,this.gb,this.ub,this.Ja,this.Qa);
g.J(this,this.Lg);this.Dc=new mv(this.Pb,this.Cd,c,this.Ja,a,this.Qa,this.Ca);g.J(this,this.Dc);var h=new mW(b,this.Dc,this.Ca,this.Qa);this.nf=Y(function(){return h});
this.Wp=h;this.xe=new PV(this.Pb,this.yb,this.hc,this.nf);g.J(this,this.xe);this.Ec=new hv(this.Pb,this.yb,this.Cd,this.Qa,this.xe,c);g.J(this,this.Ec);this.Cg=Y(function(){return new NW(f.Ne,f.gb,f.ub)});
g.J(this,this.Cg);this.rd=Y(function(){return new OW});
g.J(this,this.rd);this.Oe=new EX(a,this.Ub);g.J(this,this.Oe);this.vb=new FX(a);g.J(this,this.vb);this.gf=new GX(a,this.nf);g.J(this,this.gf);this.Qe=new HX(a,this.hc,this.Ca,this.Qa);g.J(this,this.Qe);this.Uc=new JX(a);g.J(this,this.Uc);this.Jg=new KX(a);g.J(this,this.Jg);this.od=Y(function(){return new AX});
g.J(this,this.od);this.Mg=Y(function(){return new BX(f.Ca)});
g.J(this,this.Mg);this.Bg=Y(function(){return new QW(f.Ec)});
g.J(this,this.Bg);this.Dg=Y(function(){return new XW(f.Na,f.Uc,f.Cb)});
g.J(this,this.Dg);this.Kg=Y(function(){return new wX(a,f.Uc,f.Na,f.Cb,f.Zd,f.le,f.Qa,f.Ca,f.hc,f.Fd,f.Vc,f.cf,f.Eb,f.kf,f.Ja)});
g.J(this,this.Kg);this.jS=Y(function(){return new vSa(f.Ub,f.Ca,f.Na,f.zc,f.zk,c)});
g.J(this,this.jS);this.al=new MX(a,this.pe,this.ub,this.Qa,this.Va,this.Ja);g.J(this,this.al);this.ue={ws:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Lg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xe]]),Bn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cg],["SLOT_TYPE_FORECASTING",this.rd],["SLOT_TYPE_IN_PLAYER",this.rd],["SLOT_TYPE_PLAYER_BYTES",
this.rd]]),nj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Oe],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.gf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Qe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Qe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.gf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jg]]),Ao:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.od],["SLOT_TYPE_FORECASTING",this.od],["SLOT_TYPE_IN_PLAYER",this.od],["SLOT_TYPE_PLAYER_BYTES",this.Mg]]),Qn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Bg],["SLOT_TYPE_FORECASTING",this.Dg],["SLOT_TYPE_IN_PLAYER",this.jS],["SLOT_TYPE_PLAYER_BYTES",this.Kg]])};this.listeners=[this.zc.get()];this.Tr={Ec:this.Ec,Sl:null,Sn:this.pe.get(),yh:this.Ja.get(),Ua:this.Eb.get(),eq:this.Ca.get(),Dc:this.Dc,Mk:this.Va.get(),Rn:null,Kj:this.Oe,Bi:this.zc.get(),Zk:this.Qa.get()}};
xSa=function(a,b,c,d,e,f){this.Ub=a;this.Ca=b;this.Na=c;this.u=d;this.zk=e;this.j=f};
ySa=function(a,b,c,d,e){g.I.call(this);var f=this;this.Va=Y(function(){return new nv});
g.J(this,this.Va);this.gb=Y(function(){return new TV(f.Va)});
g.J(this,this.gb);this.zc=Y(function(){return new QV});
g.J(this,this.zc);this.Pb=Y(function(){return new MV(a)});
g.J(this,this.Pb);this.yb=Y(function(){return new fW(f.Va,f.gb)});
g.J(this,this.yb);this.yd=Y(function(){return new lW});
g.J(this,this.yd);this.zk=Y(function(){return new FRa(b)});
g.J(this,this.zk);this.cf=Y(function(){return new iE(b.S())});
g.J(this,this.cf);this.Ub=Y(function(){return new OX(b)});
g.J(this,this.Ub);this.Eb=Y(function(){return new mV(e)});
g.J(this,this.Eb);this.Fd=Y(function(){return new sF(b)});
g.J(this,this.Fd);this.hc=Y(function(){return new nW(b)});
g.J(this,this.hc);this.le=Y(function(){return new RX(b)});
g.J(this,this.le);this.Vc=Y(function(){return new oW(b)});
g.J(this,this.Vc);this.Ja=Y(function(){return new pW(b)});
g.J(this,this.Ja);this.Ne=Y(function(){return new NX(d)});
g.J(this,this.Ne);this.ub=Y(function(){return new zT(f.Ja)});
g.J(this,this.ub);this.Cd=Y(function(){return new JV(f.Va,f.yb,f.gb,f.Ja,f.ub,null,f.ai,3)});
g.J(this,this.Cd);this.kf=Y(function(){return new SX(b)});
g.J(this,this.kf);this.pe=Y(function(){return new TX});
g.J(this,this.pe);this.Qa=Y(function(){return new BW(b,f.yd,f.Ja)});
g.J(this,this.Qa);this.Tb=new kW(this.Ja,this.ub,this.Qa);g.J(this,this.Tb);this.Ae=Y(function(){return new QX(b,f.Ja,f.Na)});
g.J(this,this.Ae);this.re=Y(function(){return new fY(b)});
g.J(this,this.re);this.Ca=Y(function(){return new CW(b,f.Qa,f.Ja)});
g.J(this,this.Ca);this.Zd=Y(function(){return new HW});
this.Cb=Y(function(){return new rW(f.Ca,b)});
g.J(this,this.Cb);this.Na=Y(function(){return new wW(b,f.zc,f.Cb,f.Qa)});
g.J(this,this.Na);this.Dc=new mv(this.Pb,this.Cd,c,this.Ja,a,this.Qa,this.Ca);g.J(this,this.Dc);var h=new mW(b,this.Dc,this.Ca,this.Qa,this.Ae);this.nf=Y(function(){return h});
this.Wp=h;this.Lg=new yX(tRa,wY,function(l,m,n,p){return nQa(f.gb.get(),l,m,n,p)},this.Pb,this.yb,this.gb,this.ub,this.Ja,this.Qa);
g.J(this,this.Lg);this.ai=new xX(this.Pb,this.yb,this.nf,this.Ae,this.Ca,this.Ja,this.Na,this.re);g.J(this,this.ai);this.xe=new PV(this.Pb,this.yb,this.hc,this.nf);g.J(this,this.xe);this.Ec=new hv(this.Pb,this.yb,this.Cd,this.Qa,this.xe,c);g.J(this,this.Ec);this.Cg=Y(function(){return new NW(f.Ne,f.gb,f.ub,f.re)});
g.J(this,this.Cg);this.rd=Y(function(){return new OW});
g.J(this,this.rd);this.Oe=new EX(a,this.Ub);g.J(this,this.Oe);this.vb=new FX(a);g.J(this,this.vb);this.gf=new GX(a,this.nf);g.J(this,this.gf);this.Qe=new HX(a,this.hc,this.Ca,this.Qa);g.J(this,this.Qe);this.Vr=new eY(a,this.Qa);g.J(this,this.Vr);this.Uc=new JX(a);g.J(this,this.Uc);this.Jg=new KX(a);g.J(this,this.Jg);this.od=Y(function(){return new AX});
g.J(this,this.od);this.Mg=Y(function(){return new BX(f.Ca)});
g.J(this,this.Mg);this.Bg=Y(function(){return new QW(f.Ec)});
g.J(this,this.Bg);this.Dg=Y(function(){return new XW(f.Na,f.Uc,f.Cb)});
g.J(this,this.Dg);this.Kg=Y(function(){return new bY(a,f.Uc,f.Qa,f.re,f.Ca,f.Na,f.yd,f.Ae,f.Cb,f.Zd,f.le,f.hc,f.Fd,f.Vc,f.cf,f.Eb,f.kf,f.Ja,f.zc)});
g.J(this,this.Kg);this.Nk=Y(function(){return new xSa(f.Ub,f.Ca,f.Na,f.zc,f.zk,c)});
g.J(this,this.Nk);this.al=new MX(a,this.pe,this.ub,this.Qa,this.Va,this.Ja);g.J(this,this.al);this.ue={ws:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.ai],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Lg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xe]]),Bn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cg],["SLOT_TYPE_FORECASTING",this.rd],
["SLOT_TYPE_IN_PLAYER",this.rd],["SLOT_TYPE_PLAYER_BYTES",this.rd]]),nj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Oe],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.vb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.gf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Qe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Qe],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Vr],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Vr],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.gf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jg]]),Ao:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.od],["SLOT_TYPE_FORECASTING",this.od],["SLOT_TYPE_IN_PLAYER",this.od],["SLOT_TYPE_PLAYER_BYTES",this.Mg]]),Qn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bg],["SLOT_TYPE_FORECASTING",this.Dg],["SLOT_TYPE_PLAYER_BYTES",this.Kg],["SLOT_TYPE_IN_PLAYER",this.Nk]])};this.listeners=[this.zc.get()];this.Tr={Ec:this.Ec,Sl:null,Sn:this.pe.get(),yh:this.Ja.get(),Ua:this.Eb.get(),eq:this.Ca.get(),Dc:this.Dc,Mk:this.Va.get(),Rn:null,Kj:this.Oe,Bi:this.zc.get(),Zk:this.Qa.get()}};
yY=function(a,b,c,d){g.I.call(this);var e=this;this.j=zSa(function(){return e.u},a,b,c,d);
g.J(this,this.j);this.u=(new kV(this.j)).B();g.J(this,this.u)};
zY=function(a){return a.j.Tr};
zSa=function(a,b,c,d,e){try{var f=b.S();if(g.SB(f))var h=new pSa(a,b,c,d,e);else if(g.VB(f))h=new rSa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===mB(f))h=new tSa(a,b,c,d,e);else if(pB(f))h=new sSa(a,b,c,d,e);else if(g.gB(f))h=new wSa(a,b,c,d,e);else if(g.fB(f))h=new ySa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.S(),T("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.deviceParams.cplatform,interface:h.deviceParams.c,
lka:h.deviceParams.cver,kka:h.deviceParams.ctheme,jka:h.deviceParams.cplayer,Dka:h.playerStyle}),new QQa(a,b,c,d,e)}};
AY=function(a,b){this.j=a;this.Sl=b};
VY=function(a){XG.call(this,a)};
fZ=function(a,b,c,d,e,f){eH.call(this,a,b,{F:"div",L:"ytp-ad-timed-pie-countdown-container",R:[{F:"svg",L:"ytp-ad-timed-pie-countdown",T:{viewBox:"0 0 20 20"},R:[{F:"circle",L:"ytp-ad-timed-pie-countdown-background",T:{r:"10",cx:"10",cy:"10"}},{F:"circle",L:"ytp-ad-timed-pie-countdown-inner",T:{r:"5",cx:"10",cy:"10"}},{F:"circle",L:"ytp-ad-timed-pie-countdown-outer",T:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e,f);this.C=this.ya("ytp-ad-timed-pie-countdown-inner");this.B=Math.ceil(10*
Math.PI);this.hide()};
hZ=function(a,b,c,d,e,f,h){yG.call(this,a,b,{F:"div",L:"ytp-ad-action-interstitial",T:{tabindex:"0"},R:[{F:"div",L:"ytp-ad-action-interstitial-background-container"},{F:"div",L:"ytp-ad-action-interstitial-slot",R:[{F:"div",L:"ytp-ad-action-interstitial-card",R:[{F:"div",L:"ytp-ad-action-interstitial-image-container"},{F:"div",L:"ytp-ad-action-interstitial-headline-container"},{F:"div",L:"ytp-ad-action-interstitial-description-container"},{F:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d,e);this.AJ=f;this.uD=h;this.navigationEndpoint=this.u=this.skipButton=this.B=this.actionButton=null;this.Ga=this.ya("ytp-ad-action-interstitial-image-container");this.D=new TG(this.api,this.Za,this.layoutId,this.j,this.Ua,"ytp-ad-action-interstitial-image");g.J(this,this.D);this.D.xa(this.Ga);this.Da=this.ya("ytp-ad-action-interstitial-headline-container");this.N=new cH(this.api,this.Za,this.layoutId,this.j,this.Ua,"ytp-ad-action-interstitial-headline");g.J(this,this.N);
this.N.xa(this.Da);this.va=this.ya("ytp-ad-action-interstitial-description-container");this.I=new cH(this.api,this.Za,this.layoutId,this.j,this.Ua,"ytp-ad-action-interstitial-description");g.J(this,this.I);this.I.xa(this.va);this.Pa=this.ya("ytp-ad-action-interstitial-background-container");this.W=new TG(this.api,this.Za,this.layoutId,this.j,this.Ua,"ytp-ad-action-interstitial-background",!0);g.J(this,this.W);this.W.xa(this.Pa);this.Ia=this.ya("ytp-ad-action-interstitial-action-button-container");
this.C=new fu;g.J(this,this.C);this.hide()};
ASa=function(a){var b=g.rg("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
iZ=function(a,b,c,d,e){yG.call(this,a,b,{F:"div",L:"ytp-ad-overlay-slot",R:[{F:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d,e);this.N=[];this.bb=this.Da=this.D=this.Ia=this.va=null;this.Pa=!1;this.I=null;this.W=0;a=this.ya("ytp-ad-overlay-container");this.Ga=new nH(a,45E3,6E3,.3,.4);g.J(this,this.Ga);this.C=BSa(this);g.J(this,this.C);this.C.xa(a);this.B=CSa(this);g.J(this,this.B);this.B.xa(a);this.u=DSa(this);g.J(this,this.u);this.u.xa(a);this.hide()};
BSa=function(a){var b=new g.xG({F:"div",L:"ytp-ad-text-overlay",R:[{F:"div",L:"ytp-ad-overlay-ad-info-button-container"},{F:"div",L:"ytp-ad-overlay-close-container",R:[{F:"button",L:"ytp-ad-overlay-close-button",R:[MG(jZ)]}]},{F:"div",L:"ytp-ad-overlay-title",Z:"{{title}}"},{F:"div",L:"ytp-ad-overlay-desc",Z:"{{description}}"},{F:"div",Ba:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Z:"{{displayUrl}}"}]});a.P(b.ya("ytp-ad-overlay-title"),"click",function(c){return kZ(a,b.element,c)});
a.P(b.ya("ytp-ad-overlay-link"),"click",function(c){return kZ(a,b.element,c)});
a.P(b.ya("ytp-ad-overlay-close-container"),"click",a.Nj);b.hide();return b};
CSa=function(a){var b=new g.xG({F:"div",Ba:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],R:[{F:"div",L:"ytp-ad-overlay-ad-info-button-container"},{F:"div",L:"ytp-ad-overlay-close-container",R:[{F:"button",L:"ytp-ad-overlay-close-button",R:[MG(jZ)]}]},{F:"div",L:"ytp-ad-overlay-text-image",R:[{F:"img",T:{src:"{{imageUrl}}"}}]},{F:"div",L:"ytp-ad-overlay-title",Z:"{{title}}"},{F:"div",L:"ytp-ad-overlay-desc",Z:"{{description}}"},{F:"div",Ba:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
Z:"{{displayUrl}}"}]});a.P(b.ya("ytp-ad-overlay-title"),"click",function(c){return kZ(a,b.element,c)});
a.P(b.ya("ytp-ad-overlay-link"),"click",function(c){return kZ(a,b.element,c)});
a.P(b.ya("ytp-ad-overlay-close-container"),"click",a.Nj);a.P(b.ya("ytp-ad-overlay-text-image"),"click",a.t_);b.hide();return b};
DSa=function(a){var b=new g.xG({F:"div",L:"ytp-ad-image-overlay",R:[{F:"div",L:"ytp-ad-overlay-ad-info-button-container"},{F:"div",L:"ytp-ad-overlay-close-container",R:[{F:"button",L:"ytp-ad-overlay-close-button",R:[MG(jZ)]}]},{F:"div",L:"ytp-ad-overlay-image",R:[{F:"img",T:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.P(b.ya("ytp-ad-overlay-image"),"click",function(c){return kZ(a,b.element,c)});
a.P(b.ya("ytp-ad-overlay-close-container"),"click",a.Nj);b.hide();return b};
lZ=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.S(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.rg("video-ads ytp-ad-module")||null,null==b)g.S(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Da=new g.xG({F:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.J(a,a.Da),a.Da.xa(b),b=new bH(a.api,a.Za,a.layoutId,a.j,a.Ua,a.Da.element,!1),g.J(a,b),b.init(gE("ad-info-hover-text-button"),
c,a.macros),a.I){b.xa(a.I,0);b.subscribe("f",a.VX,a);b.subscribe("e",a.wI,a);a.P(a.I,"click",a.WX);var d=g.rg("ytp-ad-button",b.element);a.P(d,"click",function(){var e,f,h;if(null==(e=c.button)?0:null==(f=e.buttonRenderer)?0:null==(h=f.serviceEndpoint)?0:h.adInfoDialogEndpoint)a.Pa=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.bb=b}else g.S(Error("Ad info button container within overlay ad was not present."))}else g.Bu(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
ESa=function(a,b){if(mZ(a,nZ)||a.api.sf())return!1;var c=zG(b.title),d=zG(b.description);if(g.lb(c)||g.lb(d))return!1;a.Yh(a.C.element,b.trackingParams||null);a.C.Ha("title",zG(b.title));a.C.Ha("description",zG(b.description));a.C.Ha("displayUrl",zG(b.displayUrl));b.navigationEndpoint&&g.fc(a.N,b.navigationEndpoint);a.C.show();a.Ga.start();a.Wa(a.C.element,!0);a.P(a.C.element,"mouseover",function(){a.W++});
return!0};
FSa=function(a,b){if(mZ(a,nZ)||a.api.sf())return!1;var c=zG(b.title),d=zG(b.description);if(g.lb(c)||g.lb(d))return!1;a.Yh(a.B.element,b.trackingParams||null);a.B.Ha("title",zG(b.title));a.B.Ha("description",zG(b.description));a.B.Ha("displayUrl",zG(b.displayUrl));a.B.Ha("imageUrl",QAa(b.image));b.navigationEndpoint&&g.fc(a.N,b.navigationEndpoint);a.Ia=b.imageNavigationEndpoint||null;a.B.show();a.Ga.start();a.Wa(a.B.element,!0);a.P(a.B.element,"mouseover",function(){a.W++});
return!0};
GSa=function(a,b){if(a.api.sf())return!1;var c=RAa(b.image),d=c;c.width<nZ.width&&(d=nZ);if(0===c.width||0===c.height||mZ(a,d))return!1;a.Yh(a.u.element,b.trackingParams||null);a.u.Ha("imageUrl",QAa(b.image));a.u.Ha("width",c.width);a.u.Ha("height",c.height);b.navigationEndpoint&&g.fc(a.N,b.navigationEndpoint);b=a.u.ya("ytp-ad-image-overlay");g.al(b,"max-width",c.width+"px");a.u.show();a.Wa(a.u.element,!0);a.P(a.u.element,"mouseover",function(){a.W++;a.api.cI("invideo-overlay",a.layoutId)});
a.P(a.u.element,"mouseout",function(){a.api.bI("invideo-overlay",a.layoutId)});
return!0};
mZ=function(a,b){var c=a.api.Ya().xi(),d=a.api.Dj(!0,!1);return(b=oY(c,c.height-(d.height+d.top),b))?(a.va&&b&&(c=g.We(a.macros),c.ERRORCODE=b.Wz.toString(),c.ERROR_MSG=b.errorMessage,a.api.S().K("enable_macro_substitution_on_html5")?a.layoutId?nV(a.Ua,a.va,a.layoutId,c):g.S(Error("Missing layoutId for invideo_overlay_ad.")):ZG(a.Ua,a.va,c)),!0):!1};
kZ=function(a,b,c){var d=g.We(a.macros),e=g.ll(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.jl(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
d.NX={toString:function(){return f.x.toString()}};
d.I_Y={toString:function(){return f.y.toString()}};
d.NY={toString:function(){return f.y.toString()}};
d.NM={toString:function(){return a.W.toString()}};
b=g.r(a.N);for(c=b.next();!c.done;c=b.next())c=c.value,a.api.S().K("enable_macro_substitution_on_html5")?a.layoutId?nV(a.Ua,c,a.layoutId,d):g.S(Error("Missing layoutId for invideo_overlay_ad.")):ZG(a.Ua,c,d);a.api.pauseVideo()};
HSa=function(a,b){a=a.api.getRootNode();g.O(a,"ytp-ad-overlay-open",b);g.O(a,"ytp-ad-overlay-closed",!b)};
oZ=function(a,b,c,d,e,f){eH.call(this,a,b,{F:"div",L:"ytp-ad-message-overlay",R:[{F:"div",L:"ytp-ad-message-slot"}]},"ad-message",c,d,e,f);var h=this;this.W=-1;this.C=0;this.N=!1;this.va=this.ya("ytp-ad-message-slot");this.B=new g.xG({F:"span",L:"ytp-ad-message-container"});this.B.xa(this.va);g.J(this,this.B);this.messageText=new cH(this.api,this.Za,this.layoutId,this.j,e,"ytp-ad-message-text");g.J(this,this.messageText);this.messageText.xa(this.B.element);this.I=new g.hH(this.B,400,!1,100,function(){return h.hide()});
g.J(this,this.I);this.hide()};
ISa=function(a,b){a=a.api.getRootNode();g.O(a,"ytp-ad-overlay-open",b);g.O(a,"ytp-ad-overlay-closed",!b)};
pZ=function(a,b,c,d,e){yG.call(this,a,b,{F:"div",L:"ytp-ad-underlay-companion",R:[{F:"div",L:"ytp-ad-underlay-side-container",R:[{F:"div",L:"ytp-ad-underlay-image-container"},{F:"div",L:"ytp-ad-underlay-description-container"},{F:"div",L:"ytp-ad-underlay-headline-container"},{F:"div",L:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",c,d,e);this.actionButton=null;this.va=this.ya("ytp-ad-underlay-image-container");this.C=new TG(this.api,this.Za,this.layoutId,this.j,this.Ua,"ytp-ad-underlay-image");
g.J(this,this.C);this.C.xa(this.va);this.W=this.ya("ytp-ad-underlay-headline-container");this.B=new cH(this.api,this.Za,this.layoutId,this.j,this.Ua,"ytp-ad-underlay-headline");g.J(this,this.B);this.B.xa(this.W);this.N=this.ya("ytp-ad-underlay-description-container");this.D=new cH(this.api,this.Za,this.layoutId,this.j,this.Ua,"ytp-ad-underlay-description");g.J(this,this.D);this.D.xa(this.N);this.I=this.ya("ytp-ad-underlay-action-button-container");this.u=this.ya("ytp-ad-underlay-side-container");
this.hide()};
JSa=function(a){var b=g.rg("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
qZ=function(a,b,c,d,e){yG.call(this,a,b,{F:"div",L:"ytp-ad-survey-answer"},"survey-answer",c,d,e);this.u=null;this.toggledLoggingParams="";this.answer=this.ya("ytp-ad-survey-answer");this.hide()};
rZ=function(a,b,c,d,e){yG.call(this,a,b,{F:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d,e);this.button=null;this.u=this.ya("ytp-ad-survey-none-of-the-above");this.hide()};
sZ=function(a,b,c,d,e){NG.call(this,a,b,c,d,e,["ytp-ad-survey-submit-button"],"survey-submit")};
tZ=function(a,b,c,d,e,f){yG.call(this,a,b,{F:"div",L:"ytp-ad-survey-player-overlay",R:[{F:"div",L:"ytp-ad-survey-player-overlay-instream-info"},{F:"div",L:"ytp-ad-survey-player-overlay-skip-preview-submit",R:[{F:"div",L:"ytp-ad-survey-player-overlay-skip-or-preview"},{F:"div",L:"ytp-ad-survey-player-overlay-submit"}]},{F:"div",L:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d,e);this.C=f;this.B=this.u=null;this.D=this.ya("ytp-ad-survey-player-overlay-instream-info");
this.I=this.ya("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.ya("ytp-ad-survey-player-overlay-submit");g.J(this,this.C);this.hide()};
uZ=function(a,b,c,d,e,f){yG.call(this,a,b,{F:"div",L:"ytp-ad-survey-question",R:[{F:"div",Ba:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{F:"div",Ba:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{F:"div",Ba:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{F:"div",L:"ytp-ad-survey-question-background"}]},f,c,d,e);this.D=null;this.B=[];this.u=null;this.question=this.ya("ytp-ad-survey-question");this.N=this.ya("ytp-ad-survey-question-background");
this.questionText=this.ya("ytp-ad-survey-question-text");this.answers=this.ya("ytp-ad-survey-answers");this.playerOverlay=this.ya("ytp-ad-survey-question-player-overlay");this.C=g.Ua()};
KSa=function(a,b,c){var d=new qZ(a.api,a.Za,a.layoutId,a.j,a.Ua);d.xa(a.answers);d.init(gE("survey-answer"),b,c);a.B.push(d)};
LSa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&SG(c)||"",g.lb(c)?g.Bu(Error("Found ThumbnailDetails without valid image URL")):g.al(a.N,"backgroundImage","url("+c+")"));if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.S(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.Ua();a.u=new tH(a.api,b.durationMilliseconds);
g.J(a,a.u);if(a.u&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=new tZ(a.api,a.Za,a.layoutId,a.j,a.Ua,a.u);d.xa(a.playerOverlay);d.init(gE("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.D=d;g.J(a,d);a.SQ()}catch(e){g.S(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.S(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+
JSON.stringify(b)));a.u&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new DH(a.api,a.u),b.xa(a.playerOverlay),g.J(a,b)):g.S(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.S(Error("addCommonComponents() needs to be called before starting countdown."))};
MSa=function(a){function b(c){return{toString:function(){return c()}}}
a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()).toString()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return(g.Ua()-a.C).toString()})};
vZ=function(a,b,c,d,e){uZ.call(this,a,b,c,d,e,"survey-question-multi-select");this.noneOfTheAbove=null;this.submitEndpoints=[];this.I=null;this.hide()};
NSa=function(a,b,c){a.noneOfTheAbove=new rZ(a.api,a.Za,a.layoutId,a.j,a.Ua);a.noneOfTheAbove.xa(a.answers);a.noneOfTheAbove.init(gE("survey-none-of-the-above"),b,c)};
OSa=function(a){a.B.forEach(function(b){b.u.toggleButton(!1)});
wZ(a,!0)};
wZ=function(a,b){var c=a.D;a=PSa(a);b=void 0===b?!1:b;c.u&&(a?c.u.hide():c.u.show(),b&&c.u instanceof pH&&!c.u.I&&BBa(c.u,!1));c.B&&(a?c.B.show():c.B.hide())};
PSa=function(a){return a.B.some(function(b){return b.u.isToggled()})||a.noneOfTheAbove.button.isToggled()};
xZ=function(a,b,c,d,e){uZ.call(this,a,b,c,d,e,"survey-question-single-select");this.hide()};
yZ=function(a,b,c,d,e){yG.call(this,a,b,{F:"div",L:"ytp-ad-survey",R:[{F:"div",L:"ytp-ad-survey-questions"}]},"survey",c,d,e);this.questions=[];this.u=this.ya("ytp-ad-survey-questions");this.hide()};
zZ=function(a,b,c,d,e){yG.call(this,a,b,{F:"div",L:"ytp-ad-survey-interstitial",R:[{F:"div",L:"ytp-ad-survey-interstitial-contents",R:[{F:"div",L:"ytp-ad-survey-interstitial-logo",R:[{F:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{F:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d,e);this.u=this.actionButton=null;this.interstitial=this.ya("ytp-ad-survey-interstitial");this.B=this.ya("ytp-ad-survey-interstitial-contents");this.text=this.ya("ytp-ad-survey-interstitial-text");
this.logoImage=this.ya("ytp-ad-survey-interstitial-logo-image");this.transition=new g.hH(this,500,!1,300);g.J(this,this.transition)};
QSa=function(a,b){b=b&&SG(b)||"";if(g.lb(b))g.Bu(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.Gc&&10>document.documentMode)c=Lf;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.zg("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Oja(d.style)}b=yca(c,xca({"background-image":'url("'+b+'")'}));a.style.cssText=Kf(b)}};
RSa=function(a){var b=g.rg("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
AZ=function(a,b,c,d){XG.call(this,a);this.api=a;this.Ua=c;this.u={};this.J=b;a=new g.W({F:"div",Ba:["video-ads","ytp-ad-module"]});g.J(this,a);VA&&g.N(a.element,"ytp-ads-tiny-mode");this.D=new rG(a.element);g.J(this,this.D);g.II(this.api,a.element,4);DQa(d)&&(d=new g.W({F:"div",Ba:["ytp-ad-underlay"]}),g.J(this,d),this.B=new rG(d.element),g.J(this,this.B),g.II(this.api,d.element,0));g.J(this,jBa())};
SSa=function(a,b){a=g.Ue(a.u,b.id,null);null==a&&g.Bu(Error("Component not found for element id: "+b.id));return a||null};
BZ=function(a){g.WI.call(this,a);var b=this;this.u=this.Za=null;this.created=!1;this.Nq=new YF(this.player);this.B=function(){function d(){return b.Za}
if(null!=b.u)return b.u;var e=qAa({qn:a.getVideoData(1)});e=new yOa({fV:new AY(function(){return b.Za},zY(b.j).Sl),
Qq:e.eW(),wV:d,LX:d,Kj:zY(b.j).Kj,Uj:e.HG(),Zk:zY(b.j).Zk,G:b.player,yh:zY(b.j).yh,Na:b.j.j.Na,Bi:zY(b.j).Bi,Vc:b.j.j.Vc});b.u=e.sU;return b.u};
this.j=new yY(this.player,this,this.Nq,this.B);g.J(this,this.j);var c=a.S();!nB(c)||g.fB(c)||pB(c)||(g.J(this,new AZ(a,function(){return b.Za},zY(this.j).Ua,zY(this.j).yh)),g.J(this,new VY(a)))};
TSa=function(a){a.created!==a.loaded&&T("Created and loaded are out of sync")};
CZ=function(a,b){b===a.Tt&&(a.Tt=void 0)};
USa=function(a){a.Za?zY(a.j).Dc.bH()||a.Za.bH()||zY(a.j).eq.xr():T("AdService is null when calling maybeUnlockPrerollIfReady")};
VSa=function(a){a=g.r(zY(a.j).Bi.ij.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&"core"===b.Xa)return!0;return!1};
DZ=function(a){a=g.r(zY(a.j).Bi.ij.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
lra=function(a,b,c){c=void 0===c?"":c;var d=zY(a.j).yh,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.fg()||!1;d=WSa(b,d,f,e,zY(a.j).Mk);ora(zY(a.j).Ec,c,d.PC,b);a.Za&&0<d.nx.length&&(a=a.Za,b=d.nx,b=xAa(a,b),b=yAa(a,b),zAa(a,b))};
WSa=function(a,b,c,d,e){var f={nx:[],PC:[]};a=g.r(a);for(var h=a.next();!h.done;h=a.next())if((h=h.value)&&null!=h.renderer){var l=h.renderer;if(!BQa(b)){var m=void 0,n=void 0,p=void 0,q=void 0,t=e;if(null==(q=l.sandwichedLinearAdRenderer)?0:null==(p=q.adVideoStart)?0:p.adMessageRenderer)m=vOa(l.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer,t),l.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer=m;else if(null==(n=l.linearAdSequenceRenderer)?0:null==(m=n.adStart)?0:m.adMessageRenderer)m=
vOa(l.linearAdSequenceRenderer.adStart.adMessageRenderer,t),l.linearAdSequenceRenderer.adStart.adMessageRenderer=m}m=b;n=d;c||null!=l.instreamSurveyAdRenderer||null!=l.sandwichedLinearAdRenderer&&null!=l.sandwichedLinearAdRenderer.linearAd&&null!=l.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer||null!=l.videoAdTrackingRenderer||null!=l.clientForecastingAdRenderer||null!=l.actionCompanionAdRenderer||null!=l.imageCompanionAdRenderer||null!=l.shoppingCompanionCarouselRenderer||null!=l.adsEngagementPanelRenderer||
null!=l.invideoOverlayAdRenderer||null!=l.adBreakServiceRenderer?l=!0:null!=l.instreamVideoAdRenderer||null!=l.remoteSlotsRenderer?(l=n)||(l=m,g.UB(l.G.S())?l=l.G.S().K("html5_enable_vod_lsar_ivar_pacf_unplugged"):nB(l.G.S())||g.oB(l.G.S())?l=!0:(T("Single VOD on legacy path."),l=!1)):l=l.linearAdSequenceRenderer&&l.linearAdSequenceRenderer.linearAds?l.linearAdSequenceRenderer.adStart?BQa(m):n||BOa(m):null!=l.sandwichedLinearAdRenderer?bQa(m):!1;l?f.PC.push(h):f.nx.push(h)}return f};
XSa=function(){if(!g.Gc)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.EZ=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=Rf(a,null);return b.parseFromString(g.Qf(a),"application/xml")}if(YSa){b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
g.FZ=function(a,b){var c="ytp-miniplayer-button-bottom-right",d={F:"svg",T:{height:"18px",version:"1.1",viewBox:"0 0 22 18",width:"22px"},R:[{F:"g",T:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},R:[{F:"g",T:{transform:"translate(-1.000000, -3.000000)"},R:[{F:"polygon",T:{points:"0 0 24 0 24 24 0 24"}},{F:"path",T:{d:"M19,7 L5,7 L5,17 L19,17 L19,7 Z M23,19 L23,4.98 C23,3.88 22.1,3 21,3 L3,3 C1.9,3 1,3.88 1,4.98 L1,19 C1,20.1 1.9,21 3,21 L21,21 C22.1,21 23,20.1 23,19 Z M21,19.02 L3,19.02 L3,4.97 L21,4.97 L21,19.02 Z",
fill:"#fff","fill-rule":"nonzero"}}]}]}]},e="Open video page";a.S().K("kevlar_miniplayer_expand_top")&&(c="ytp-miniplayer-button-top-left",d={F:"svg",T:{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px"},R:[{F:"g",T:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},R:[{F:"g",T:{transform:"translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000) "},R:[{F:"path",T:{d:"M19,19 L5,19 L5,5 L12,5 L12,3 L5,3 C3.89,3 3,3.9 3,5 L3,19 C3,20.1 3.89,21 5,21 L19,21 C20.1,21 21,20.1 21,19 L21,12 L19,12 L19,19 Z M14,3 L14,5 L17.59,5 L7.76,14.83 L9.17,16.24 L19,6.41 L19,10 L21,10 L21,3 L14,3 Z",
fill:"#fff","fill-rule":"nonzero"}}]}]}]},e="Expand");g.W.call(this,{F:"button",Ba:["ytp-miniplayer-expand-watch-page-button","ytp-button",c],T:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-expand-watch-page-button"},R:[d]});this.G=a;this.Ma("click",this.onClick,this);this.Ha("title",yJ(a,e,"i"));g.Be(this,g.WJ(b.kc(),this.element))};
ca=[];ia="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
g.ha=aaa(this);ka("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}
function c(f,h){this.j=f;ia(this,"description",{configurable:!0,writable:!0,value:h})}
if(a)return a;c.prototype.toString=function(){return this.j};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
ka("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;c<b.length;c++){var d=g.ha[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ia(d.prototype,a,{configurable:!0,writable:!0,value:function(){return la(fa(this))}})}return a});
var ZSa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)na(d,e)&&(a[e]=d[e])}return a};
ka("Object.assign",function(a){return a||ZSa});
var oa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},$Sa=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=oa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),GZ;
if("function"==typeof Object.setPrototypeOf)GZ=Object.setPrototypeOf;else{var HZ;a:{var aTa={a:!0},bTa={};try{bTa.__proto__=aTa;HZ=bTa.a;break a}catch(a){}HZ=!1}GZ=HZ?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var pa=GZ;
ra.prototype.N=function(a){this.u=a};
ra.prototype.return=function(a){this.B={return:a};this.j=this.D};
ra.prototype.Ra=function(a){this.j=a};
ka("Reflect",function(a){return a?a:{}});
ka("Reflect.construct",function(){return $Sa});
ka("Reflect.setPrototypeOf",function(a){return a?a:pa?function(b,c){try{return pa(b,c),!0}catch(d){return!1}}:null});
ka("Promise",function(a){function b(h){this.j=0;this.B=void 0;this.u=[];this.J=!1;var l=this.C();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.j=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.u=function(h){if(null==this.j){this.j=[];var l=this;this.B(function(){l.D()})}this.j.push(h)};
var e=g.ha.setTimeout;c.prototype.B=function(h){e(h,0)};
c.prototype.D=function(){for(;this.j&&this.j.length;){var h=this.j;this.j=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.C(n)}}}this.j=null};
c.prototype.C=function(h){this.B(function(){throw h;})};
b.prototype.C=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.oa),reject:h(this.D)}};
b.prototype.oa=function(h){if(h===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.va(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=!0;break a;default:l=!1}l?this.Y(h):this.I(h)}};
b.prototype.Y=function(h){var l=void 0;try{l=h.then}catch(m){this.D(m);return}"function"==typeof l?this.Da(l,h):this.I(h)};
b.prototype.D=function(h){this.N(2,h)};
b.prototype.I=function(h){this.N(1,h)};
b.prototype.N=function(h,l){if(0!=this.j)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.j);this.j=h;this.B=l;2===this.j&&this.ma();this.V()};
b.prototype.ma=function(){var h=this;e(function(){if(h.W()){var l=g.ha.console;"undefined"!==typeof l&&l.error(h.B)}},1)};
b.prototype.W=function(){if(this.J)return!1;var h=g.ha.CustomEvent,l=g.ha.Event,m=g.ha.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=g.ha.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.B;return m(h)};
b.prototype.V=function(){if(null!=this.u){for(var h=0;h<this.u.length;++h)f.u(this.u[h]);this.u=null}};
var f=new c;b.prototype.va=function(h){var l=this.C();h.QA(l.resolve,l.reject)};
b.prototype.Da=function(h,l){var m=this.C();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(t,u){return"function"==typeof t?function(x){try{n(t(x))}catch(y){p(y)}}:u}
var n,p,q=new b(function(t,u){n=t;p=u});
this.QA(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.QA=function(h,l){function m(){switch(n.j){case 1:h(n.B);break;case 2:l(n.B);break;default:throw Error("Unexpected state: "+n.j);}}
var n=this;null==this.u?f.u(m):this.u.push(m);this.J=!0};
b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
b.race=function(h){return new b(function(l,m){for(var n=g.r(h),p=n.next();!p.done;p=n.next())d(p.value).QA(l,m)})};
b.all=function(h){var l=g.r(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(x){return function(y){t[x]=y;u--;0==u&&n(t)}}
var t=[],u=0;do t.push(void 0),u++,d(m.value).QA(q(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ka("Array.prototype.find",function(a){return a?a:function(b,c){return Fa(this,b,c).hS}});
ka("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.r(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!na(m,h)){var n=new c;ia(m,h,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(q){return!1}}())return a;
var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!na(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&na(m,h)?m[h][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&na(m,h)&&na(m[h],this.j)};
b.prototype.delete=function(m){return d(m)&&na(m,h)&&na(m[h],this.j)?delete m[h][this.j]:!1};
return b});
ka("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.j;return la(function(){if(n){for(;n.head!=l.j;)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++h,f.set(m,n)):n="p_"+m;var p=l.data_[n];if(p&&na(l.data_,n))for(l=0;l<p.length;l++){var q=p[l];if(m!==m&&q.key!==q.key||m===q.key)return{id:n,list:p,index:l,entry:q}}return{id:n,list:p,index:-1,entry:void 0}}
function e(l){this.data_={};this.j=b();this.size=0;if(l){l=g.r(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.r([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(q){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this.data_[n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this.j,previous:this.j.previous,head:this.j,key:l,value:m},n.list.push(n.entry),this.j.previous.next=n.entry,this.j.previous=n.entry,this.size++);return this};
e.prototype.delete=function(l){l=d(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.data_[l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.data_={};this.j=this.j.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).entry};
e.prototype.get=function(l){return(l=d(this,l).entry)&&l.value};
e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
e.prototype.keys=function(){return c(this,function(l){return l.key})};
e.prototype.values=function(){return c(this,function(l){return l.value})};
e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
ka("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ka("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
ka("Math.sign",function(a){return a?a:function(b){b=Number(b);return 0===b||isNaN(b)?b:0<b?1:-1}});
ka("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
ka("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ka("Array.prototype.entries",function(a){return a?a:function(){return Ga(this,function(b,c){return[b,c]})}});
ka("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ka("Object.setPrototypeOf",function(a){return a||pa});
ka("Array.prototype.keys",function(a){return a?a:function(){return Ga(this,function(b){return b})}});
ka("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ha(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
ka("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ha(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&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});
ka("String.prototype.repeat",function(a){return a?a:function(b){var c=Ha(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
ka("Set",function(a){function b(c){this.j=new Map;if(c){c=g.r(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.r([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});
ka("Array.prototype.values",function(a){return a?a:function(){return Ga(this,function(b,c){return c})}});
ka("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<f;h++)e.push(c.call(d,b[h],h));return e}});
ka("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ka("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));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
ka("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ha(this,b,"includes").indexOf(b,c||0)}});
ka("globalThis",function(a){return a||g.ha});
ka("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)na(b,d)&&c.push([d,b[d]]);return c}});
ka("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;
})})}});
ka("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Fa(this,b,c).rO}});
ka("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)na(b,d)&&c.push(b[d]);return c}});
ka("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
ka("Int8Array.prototype.fill",Ia);ka("Uint8Array.prototype.fill",Ia);ka("Uint8ClampedArray.prototype.fill",Ia);ka("Int16Array.prototype.fill",Ia);ka("Uint16Array.prototype.fill",Ia);ka("Int32Array.prototype.fill",Ia);ka("Uint32Array.prototype.fill",Ia);ka("Float32Array.prototype.fill",Ia);ka("Float64Array.prototype.fill",Ia);ka("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ka("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ha(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
ka("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});
ka("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
b.prototype.add=function(c){this.j.set(c,!0);return this};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.delete=function(c){return this.j.delete(c)};
return b});
ka("Array.prototype.copyWithin",function(a){function b(c){c=Number(c);return Infinity===c||-Infinity===c?c:c|0}
return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=void 0===e?f:b(e);c=0>c?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(c<d)for(;d<e;)d in this?this[c++]=this[d++]:(delete this[c++],d++);else for(e=Math.min(e,f+d-c),c+=e-d;e>d;)--e in this?this[--c]=this[e]:delete this[--c];return this}});
ka("Int8Array.prototype.copyWithin",Ja);ka("Uint8Array.prototype.copyWithin",Ja);ka("Uint8ClampedArray.prototype.copyWithin",Ja);ka("Int16Array.prototype.copyWithin",Ja);ka("Uint16Array.prototype.copyWithin",Ja);ka("Int32Array.prototype.copyWithin",Ja);ka("Uint32Array.prototype.copyWithin",Ja);ka("Float32Array.prototype.copyWithin",Ja);ka("Float64Array.prototype.copyWithin",Ja);ka("Number.parseInt",function(a){return a||parseInt});
Sh=Sh||{};g.C=this||self;Qa="closure_uid_"+(1E9*Math.random()>>>0);faa=0;var Xa={};g.Va(Za,Error);Za.prototype.name="CustomError";var Rca;g.Va($a,Za);$a.prototype.name="AssertionError";var Yd=void 0,Xd,dba="undefined"!==typeof TextDecoder,db,jaa="undefined"!==typeof TextEncoder;var qb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},maa=/&/g,naa=/</g,oaa=/>/g,paa=/"/g,qaa=/'/g,raa=/\x00/g,laa=/[\x00&<>"']/;var cTa=g.La("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var wb;if(null!=cTa&&cTa){var dTa=g.C.navigator;wb=dTa?dTa.userAgentData||null:null}else wb=null;var Wb,mk,pl;Wb=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.eTa=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
0>c&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.qc=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.cm=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in h){var m=h[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.kk=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f="string"===typeof a?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
return e};
mk=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.qc)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
pl=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;
return!1};
g.lk=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};sc[" "]=function(){};var bl,FO,hOa,fTa,gTa,hTa,UA,VA,IZ;g.WA=Ab();g.Gc=Bb();g.hs=yb("Edge");g.YB=g.hs||g.Gc;bl=yb("Gecko")&&!(pb(g.tb(),"WebKit")&&!yb("Edge"))&&!(yb("Trident")||yb("MSIE"))&&!yb("Edge");g.Ee=pb(g.tb(),"WebKit")&&!yb("Edge");FO=Ob();hOa=Pb();g.Kq=Lb();fTa=Mb();gTa=yb("iPad");hTa=yb("iPod");UA=Nb();VA=pb(g.tb(),"KaiOS");
a:{var JZ="",KZ=function(){var a=g.tb();if(bl)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.hs)return/Edge\/([\d\.]+)/.exec(a);if(g.Gc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Ee)return/WebKit\/(\S+)/.exec(a);if(g.WA)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
KZ&&(JZ=KZ?KZ[1]:"");if(g.Gc){var LZ=wc();if(null!=LZ&&LZ>parseFloat(JZ)){IZ=String(LZ);break a}}IZ=JZ}var xc=IZ,Baa={},MZ;if(g.C.document&&g.Gc){var iTa=wc();MZ=iTa?iTa:parseInt(xc,10)||void 0}else MZ=void 0;var Caa=MZ;var eB,ZD;g.Gw=Fb();eB=Mb()||yb("iPod");ZD=yb("iPad");g.XA=Ib();g.oz=Gb();g.Ir=Hb()&&!Nb();var Bc={},Ic=null;var Jc="undefined"!==typeof Uint8Array,Daa,Nc={};var Faa;Oc.prototype.isEmpty=function(){return null==this.kd};var Sc="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;var Ed,ld=Object.freeze(Wc([])),jTa="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;g.k=Dd.prototype;g.k.toJSON=function(){var a=this.Be;return Ed?a:id(a,Maa)};
g.k.clone=function(){var a=id(this.Be);Cd=a;a=new this.constructor(a);Cd=null;Hd(a,this);return a};
g.k.isMutable=function(a){Ya(a);return!$c(this)};
g.k.Lp=function(a){Ya(a);return $c(this)};
g.k.toString=function(){return this.Be.toString()};
var Cd;var Zaa,Waa;Zaa="function"===typeof Uint8Array.prototype.slice;g.Kd=0;g.Ld=0;Waa="function"===typeof BigInt;g.k=g.Md.prototype;g.k.init=function(a,b,c,d){d=void 0===d?{}:d;this.HA=void 0===d.HA?!1:d.HA;a&&(a=Jd(a),this.u=a.buffer,this.D=a.Lp,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.HA=!1};
g.k.reset=function(){this.j=this.C};
g.k.advance=function(a){Nd(this,this.j+a)};
g.k.pA=da(0);var aba=[];Td.prototype.reset=function(){this.j.reset();this.B=this.j.j;this.u=this.C=-1};
Td.prototype.advance=function(a){this.j.advance(a)};
var kP=[];var gba;$d.prototype.length=function(){return this.j.length};
$d.prototype.end=function(){var a=this.j;this.j=[];return a};g.w(fe,Dd);fe.prototype.Rz=function(){return this};
if(jTa){var kTa={};Object.defineProperties(fe,(kTa[Symbol.hasInstance]=Gaa(function(){throw Error("Cannot perform instanceof checks for MutableMessage");}),kTa))};var ge,ke,je,ie,lTa,NZ,mTa,RZ,nTa,SZ,oTa;ge=Symbol();ke=Symbol();je=Symbol();ie=Symbol();lTa=g.ne(function(a,b,c){if(1!==a.u)return!1;a=g.Rd(a.j);qd(b,c,a,0);return!0},g.qe);
NZ=g.ne(function(a,b,c){if(0!==a.u)return!1;a=g.Od(a.j);qd(b,c,a,0);return!0},g.re);
mTa=g.ne(function(a,b,c){if(0!==a.u)return!1;a=g.Pd(a.j);qd(b,c,a,0);return!0},g.se);
g.OZ=g.ne(function(a,b,c){if(2!==a.u)return!1;g.E(b,c,g.Zd(a));return!0},g.Hba);
g.PZ=g.ne(function(a,b,c,d,e){if(2!==a.u)return!1;g.Wd(a,Ad(b,c,d),e);return!0},function(a,b,c,d,e){b=vd(b,d,c);
if(null!=b)for(d=0;d<b.length;d++){var f=lba(a,c);e(b[d],a);mba(a,f)}});
g.QZ=g.ne(function(a,b,c,d,e,f){if(2!==a.u)return!1;(f=sd(b,f))&&f!==c&&pd(b,f);b=g.Paa(b,d,c);g.Wd(a,b,e);return!0},g.Iba);
RZ=g.ne(function(a,b,c){if(2!==a.u)return!1;g.E(b,c,eba(a));return!0},function(a,b,c){b=g.kd(b,c);
null!=b&&g.ee(a,c,Jd(b).buffer)});
nTa=g.ne(function(a,b,c){if(2!==a.u)return!1;a=eba(a);g.rd(b,c,a,void 0,!0);return!0},function(a,b,c){b=g.md(b,c);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&g.ee(a,c,Jd(e).buffer)}});
SZ=g.ne(function(a,b,c){if(0!==a.u)return!1;g.E(b,c,g.Pd(a.j)>>>0);return!0},function(a,b,c){b=g.kd(b,c);
null!=b&&null!=b&&(g.de(a,c,0),ae(a.j,b))});
oTa=g.ne(function(a,b,c){if(0!==a.u)return!1;g.E(b,c,g.Pd(a.j));return!0},function(a,b,c){b=g.kd(b,c);
null!=b&&(b=parseInt(b,10),g.de(a,c,0),jba(a.j,b))});g.w(g.F,fe);g.F.prototype.Rz=function(a){Ya(a);if($c(this)){a={VF:!0};var b=$c(this);if(b&&!a.VF)throw Error("copyRepeatedFields must be true for frozen messages");var c=new this.constructor;this.Kp&&(c.Kp=this.Kp.slice());for(var d=this.Be,e=0;e<d.length;e++){var f=d[e];if(e===d.length-1&&cd(f))for(l in f){var h=+l;Number.isNaN(h)?jd(c)[l]=f[l]:Kba(this,c,h,f[l],b,a)}else Kba(this,c,e-this.Uq,f,b,a)}var l=c}else l=this;return l};
if(jTa){var pTa={};Object.defineProperties(g.F,(pTa[Symbol.hasInstance]=Gaa(Object[Symbol.hasInstance]),pTa))};g.w(Lba,g.F);var qTa=[Lba,1,RZ,2,RZ];g.w(Mba,g.F);var rTa=[Mba,1,RZ,2,RZ];g.w(ue,g.F);var sTa=[ue,1,RZ,2,RZ];g.w(ve,g.F);var TZ=[1,2,3],tTa=[ve,1,g.QZ,qTa,TZ,2,g.QZ,rTa,TZ,3,g.QZ,sTa,TZ];g.k=we.prototype;g.k.hV=function(a){var b=g.Ea.apply(1,arguments),c=this.yG(b);c?c.push(new Nba(a)):this.iR(a,b)};
g.k.iR=function(a){this.fu.set(this.QN(g.Ea.apply(1,arguments)),[new Nba(a)])};
g.k.yG=function(){var a=this.QN(g.Ea.apply(0,arguments));return this.fu.has(a)?this.fu.get(a):void 0};
g.k.hW=function(){var a=this.yG(g.Ea.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.fu.clear()};
g.k.QN=function(){var a=g.Ea.apply(0,arguments);return a?a.join(","):"key"};g.w(xe,we);xe.prototype.B=function(a){var b=g.Ea.apply(1,arguments),c=0,d=this.hW(b);d&&(c=d.TM);this.iR(c+a,b)};g.w(ye,we);ye.prototype.Og=function(a){this.hV(a,g.Ea.apply(1,arguments))};g.I.prototype.vj=!1;g.I.prototype.isDisposed=function(){return this.vj};
g.I.prototype.dispose=function(){this.vj||(this.vj=!0,this.ea())};
g.I.prototype.ea=function(){if(this.Ug)for(;this.Ug.length;)this.Ug.shift()()};g.Ce.prototype.stopPropagation=function(){this.u=!0};
g.Ce.prototype.preventDefault=function(){this.defaultPrevented=!0};var De={};var cca=function(){if(!g.C.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{g.C.addEventListener("test",function(){},b),g.C.removeEventListener("test",function(){},b)}catch(c){}return a}();var LDa=Rba("AnimationEnd"),PGa=Rba("TransitionEnd");g.Va(Fe,g.Ce);var uTa={2:"touch",3:"pen",4:"mouse"};
Fe.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?bl&&(uc(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX?
a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:uTa[a.pointerType]||"";this.state=a.state;this.j=a;a.defaultPrevented&&Fe.He.preventDefault.call(this)};
Fe.prototype.stopPropagation=function(){Fe.He.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
Fe.prototype.preventDefault=function(){Fe.He.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Sba="closure_listenable_"+(1E6*Math.random()|0);var Tba=0;var Zba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Ze.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var h=af(a,b,d,e);-1<h?(b=a[h],c||(b.PA=!1)):(b=new Uba(b,this.src,f,!!d,e),b.PA=c,a.push(b));return b};
Ze.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=af(e,b,c,d);return-1<b?(He(e[b]),g.ac(e,b),0==e.length&&(delete this.listeners[a],this.j--),!0):!1};
Ze.prototype.Ux=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=af(a,b,c,d));return-1<e?a[e]:null};var ff="closure_lm_"+(1E6*Math.random()|0),hf={},eca=0,jf="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Va(g.kf,g.I);g.kf.prototype[Sba]=!0;g.k=g.kf.prototype;g.k.addEventListener=function(a,b,c,d){g.cf(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){gca(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.Ga;if(b){var c=[];for(var d=1;b;b=b.Ga)c.push(b),++d}b=this.qb;d=a.type||a;if("string"===typeof a)a=new g.Ce(a,b);else if(a instanceof g.Ce)a.target=a.target||b;else{var e=a;a=new g.Ce(d,b);g.Ye(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=lf(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=lf(h,d,!0,a)&&e,a.u||(e=lf(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)h=a.currentTarget=c[f],e=lf(h,d,!1,a)&&e;return e};
g.k.ea=function(){g.kf.He.ea.call(this);if(this.B){var a=this.B,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,He(d[e]);delete a.listeners[c];a.j--}}this.Ga=null};
g.k.Ma=function(a,b,c,d){return this.B.add(String(a),b,!1,c,d)};
g.k.lC=function(a,b,c,d){return this.B.add(String(a),b,!0,c,d)};
g.k.vc=function(a,b,c,d){this.B.remove(String(a),b,c,d)};
g.k.Ux=function(a,b,c,d){return this.B.Ux(String(a),b,c,d)};mf.prototype.get=function(){if(0<this.u){this.u--;var a=this.j;this.j=a.next;a.next=null}else a=this.B();return a};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var Zca=g.Gc||g.Ee;var vTa={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var rf;wf.prototype.xm=!0;wf.prototype.Xi=function(){return this.j};
var lca={},kca={};g.yf("");var mca={};zf.prototype.toString=function(){return this.j.toString()};
zf.prototype.Xi=function(){return this.j.toString()};var Rja,Qja,Pja,Sja;Rja=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.wTa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.xTa=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.so=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]");Qja=/^http:\/\/.*/;g.yTa=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Pja=/\s+/;Sja=/[\d\u06f0-\u06f9]/;g.k=Af.prototype;g.k.toString=function(){return this.j+""};
g.k.xm=!0;g.k.Xi=function(){return this.j.toString()};
g.k.gH=!0;g.k.Kt=function(){return 1};
var rca=/%{(\w+)}/g,qca=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),oca={};g.k=g.Df.prototype;g.k.toString=function(){return this.j.toString()};
g.k.xm=!0;g.k.Xi=function(){return this.j.toString()};
g.k.gH=!0;g.k.Kt=function(){return 1};
var tca=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,vca=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Cf={},Ff=new g.Df("about:invalid#zClosurez",Cf);var If={};Jf.prototype.Xi=function(){return this.j};
Jf.prototype.toString=function(){return this.j.toString()};
var Lf=new Jf("",If),Bca=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),Aca=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),zca=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),Cca=/\/\*/;var Mf={};Nf.prototype.Kt=function(){return this.u};
Nf.prototype.Xi=function(){return this.j.toString()};
Nf.prototype.toString=function(){return this.j.toString()};
var zTa=/^[a-zA-Z0-9-]+$/,ATa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},BTa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Fca=new Nf(g.C.trustedTypes&&g.C.trustedTypes.emptyHTML||"",0,Mf);var Jca=pf(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.Qf(Fca);return!b.parentElement}),Lca=/^[\w+/_-]+[=]{0,2}$/;g.k=g.ag.prototype;g.k.clone=function(){return new g.ag(this.x,this.y)};
g.k.equals=function(a){return a instanceof g.ag&&bg(this,a)};
g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.cg.prototype;g.k.clone=function(){return new g.cg(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!eg(this)};
g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.CTa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Tca={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=lg.prototype;g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.k.ya=function(a){return g.rg(a,this.j)};
g.k.createElement=function(a){return xg(this.j,a)};
g.k.appendChild=function(a,b){a.appendChild(b)};
g.k.append=function(a,b){Xca(mg(a),a,arguments,1)};
g.k.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.k.removeNode=g.Dg;g.k.contains=g.Fg;var Kg;Mg.prototype.add=function(a,b){var c=eda.get();c.set(a,b);this.u?this.u.next=c:this.j=c;this.u=c};
Mg.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.u=null),a.next=null);return a};
var eda=new mf(function(){return new Ng},function(a){return a.reset()});
Ng.prototype.set=function(a,b){this.j=a;this.scope=b;this.next=null};
Ng.prototype.reset=function(){this.next=this.scope=this.j=null};var Og,Pg=!1,cda=new Mg;fda.prototype.reset=function(){this.context=this.onRejected=this.u=this.j=null;this.B=!1};
var gda=new mf(function(){return new fda},function(a){a.reset()});
g.Sg.prototype.then=function(a,b,c){return oda(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
g.Sg.prototype.$goog_Thenable=!0;g.k=g.Sg.prototype;g.k.Li=function(a,b){return oda(this,null,a,b)};
g.k.catch=g.Sg.prototype.Li;g.k.cancel=function(a){if(0==this.j){var b=new Yg(a);g.Qg(function(){kda(this,b)},this)}};
g.k.h1=function(a){this.j=0;Rg(this,2,a)};
g.k.j1=function(a){this.j=0;Rg(this,3,a)};
g.k.VV=function(){for(var a;a=lda(this);)mda(this,a,this.j,this.J);this.I=!1};
var sda=fd;g.Va(Yg,Za);Yg.prototype.name="cancel";g.Va(g.Zg,g.kf);g.k=g.Zg.prototype;g.k.enabled=!1;g.k.pc=null;g.k.setInterval=function(a){this.ah=a;this.pc&&this.enabled?(this.stop(),this.start()):this.pc&&this.stop()};
g.k.T0=function(){if(this.enabled){var a=g.Ua()-this.RO;0<a&&a<.8*this.ah?this.pc=this.Qz.setTimeout(this.IM,this.ah-a):(this.pc&&(this.Qz.clearTimeout(this.pc),this.pc=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.pc||(this.pc=this.Qz.setTimeout(this.IM,this.ah),this.RO=g.Ua())};
g.k.stop=function(){this.enabled=!1;this.pc&&(this.Qz.clearTimeout(this.pc),this.pc=null)};
g.k.ea=function(){g.Zg.He.ea.call(this);this.stop();delete this.Qz};g.k=g.bh.prototype;g.k.pJ=function(a){this.D=a;this.C=1};
g.k.yE=function(){var a=this.j.values();a=[].concat(g.v(a)).filter(function(b){return b.fu.size});
a.length&&this.J.flush(a,this.D);vda(a);this.B=0;this.u.enabled&&this.u.stop()};
g.k.Qo=function(a){var b=g.Ea.apply(1,arguments);this.j.has(a)||this.j.set(a,new xe(a,b))};
g.k.GA=function(a){var b=g.Ea.apply(1,arguments);this.j.has(a)||this.j.set(a,new ye(a,b))};
g.k.Fq=function(a){this.xE.apply(this,[a,1].concat(g.v(g.Ea.apply(1,arguments))))};
g.k.xE=function(a,b){var c=g.Ea.apply(2,arguments),d=uda(this,a);d&&d instanceof xe&&(d.B(b,c),tda(this))};
g.k.Og=function(a,b){var c=g.Ea.apply(2,arguments),d=uda(this,a);d&&d instanceof ye&&(d.Og(b,c),tda(this))};wda.prototype.Og=function(a,b,c,d,e){this.j.Og("/client_streamz/po/w/rl",a,b,c,d,e)};
xda.prototype.Og=function(a,b,c){this.j.Og("/client_streamz/po/w/el",a,b,c)};var zda,Ada;g.w(g.ch,g.F);g.w(g.dh,g.F);g.w(g.eh,g.F);g.w(g.fh,g.F);zda=[3,6,4];Ada=[1];g.hh=[1,2,3];g.gh=[1,2,3];g.w(Cda,g.F);var Bda=[1];var Jda={};g.k=ih.prototype;g.k.isEnabled=function(){if(!g.C.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{oC:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.Jka;d=c.w0||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.oC}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":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;e<d.length;e++){f=qb(d[e]);if(0==f.lastIndexOf(c,0))return f.slice(c.length);if(f==a)return""}return b};
g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{oC:0,path:b,domain:c});return d};
g.k.Cn=function(){return jh(this).keys};
g.k.Cj=function(){return jh(this).values};
g.k.isEmpty=function(){return!this.j.cookie};
g.k.clear=function(){for(var a=jh(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var xq=new ih("undefined"==typeof document?null:document);g.w(uh,g.F);var Mda=[2];g.vh.prototype.u=0;g.vh.prototype.reset=function(){this.j=this.B=this.C;this.u=0};
g.vh.prototype.getValue=function(){return this.B};var Qda={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Pda=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Ah.prototype.B=null;Ah.prototype.getOptions=function(){return this.B||(this.B=this.C())};var UZ;g.Va(Bh,Ah);Bh.prototype.j=function(){var a=Sda(this);return a?new ActiveXObject(a):new XMLHttpRequest};
Bh.prototype.C=function(){var a={};Sda(this)&&(a[0]=!0,a[1]=!0);return a};
UZ=new Bh;var Eh=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),$da=/#|$/,aea=/[?&]($|#)/;g.Va(g.Qh,g.kf);var kea=/^https?$/i,DTa=["POST","PUT"],dea=[];g.k=g.Qh.prototype;g.k.vV=function(){this.dispose();g.bc(dea,this)};
g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Y+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Y=a;this.D="";this.u=0;this.va=!1;this.C=!0;this.j=this.V?this.V.j():UZ.j();this.ma=this.V?this.V.getOptions():UZ.getOptions();this.j.onreadystatechange=(0,g.Sa)(this.eQ,this);try{this.getStatus(),this.Da=!0,this.j.open(b,String(a),!0),this.Da=!1}catch(h){this.getStatus();hea(this,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===
Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=g.r(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});
e=g.C.FormData&&a instanceof g.C.FormData;!g.Xb(DTa,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.r(c);for(d=b.next();!d.done;d=b.next())c=g.r(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.Ia&&(this.j.responseType=this.Ia);"withCredentials"in this.j&&this.j.withCredentials!==this.J&&(this.j.withCredentials=this.J);try{jea(this),0<this.N&&(this.Pa=fea(this.j),this.getStatus(),this.Pa?(this.j.timeout=this.N,this.j.ontimeout=(0,g.Sa)(this.jL,
this)):this.oa=g.$g(this.jL,this.N,this)),this.getStatus(),this.W=!0,this.j.send(a),this.W=!1}catch(h){this.getStatus(),hea(this,h)}};
g.k.jL=function(){"undefined"!=typeof Sh&&this.j&&(this.D="Timed out after "+this.N+"ms, aborting",this.u=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.j&&this.C&&(this.getStatus(),this.C=!1,this.I=!0,this.j.abort(),this.I=!1,this.u=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Rh(this))};
g.k.ea=function(){this.j&&(this.C&&(this.C=!1,this.I=!0,this.j.abort(),this.I=!1),Rh(this,!0));g.Qh.He.ea.call(this)};
g.k.eQ=function(){this.isDisposed()||(this.Da||this.W||this.I?iea(this):this.HZ())};
g.k.HZ=function(){iea(this)};
g.k.isActive=function(){return!!this.j};
g.k.isComplete=function(){return 4==g.Th(this)};
g.k.getStatus=function(){try{return 2<g.Th(this)?this.j.status:-1}catch(a){return-1}};
g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),null===a?void 0:a};
g.k.getLastError=function(){return"string"===typeof this.D?this.D:String(this.D)};g.w(Yh,g.F);g.w(Zh,g.F);var mea=[1];var Aea=["platform","platformVersion","architecture","model","uaFullVersion"];new Zh;g.w(di,g.F);g.w(ei,g.F);ei.prototype.K=function(){return Array.isArray(g.kd(this,7))};
var nea=[3,20,27];g.w(pea,g.F);var oea=[3,5];g.w(rea,g.F);var qea=[5];g.w(sea,g.F);var ETa;ETa=new function(a,b,c){this.j=a;this.fieldName=b;this.rr=c;this.isRepeated=0;this.u=Jba}(175237375,{qka:0},sea);g.w(gi,g.kf);g.k=gi.prototype;g.k.ea=function(){this.sG();g.kf.prototype.ea.call(this)};
g.k.dispatch=function(a){if(a instanceof ei)this.log(a);else{var b=new ei;a=Fd(a);b=g.E(b,8,a);this.log(b)}};
g.k.log=function(a){a=a.clone();var b=this.Ib++;g.E(a,21,b);this.W&&g.E(a,26,this.W);if(!g.kd(a,1)){b=a;var c=Date.now().toString();g.E(b,1,c)}null!=g.kd(a,15)||g.E(a,15,60*(new Date).getTimezoneOffset());this.C&&(b=this.C.clone(),wd(a,uh,16,b));for(;1E3<=this.u.length;)this.u.shift(),++this.J;this.u.push(a);this.dispatchEvent(new zea(a));this.ma||this.j.enabled||this.j.start()};
g.k.flush=function(a,b){var c=this;if(0===this.u.length)a&&a();else if(this.va)yea(this);else{var d=Date.now();if(this.eb>d&&this.Da<d)b&&b("throttled");else{var e=this.I.Pe(this.u,this.J);d={};var f=this.Ta();f&&(d.Authorization=f);var h=vea(this);this.V&&(d["X-Goog-AuthUser"]=this.V,h=Nh(h,"authuser",this.V));this.pageId&&(d["X-Goog-PageId"]=this.pageId,h=Nh(h,"pageId",this.pageId));if(f&&this.bb===f)b&&b("stale-auth-token");else{this.u=[];this.j.enabled&&this.j.stop();this.J=0;var l=Fd(e),m;this.N&&
this.N.isSupported(l.length)&&(m=this.N.compress(l));var n={url:h,body:l,oV:1,Hs:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(u){c.D.reset();c.j.setInterval(c.D.getValue());if(u){var x=null;try{var y=JSON.parse(u.replace(")]}'\n",""));x=new rea(y)}catch(z){}x&&(u=Number(nd(x,1,"-1")),0<u&&(c.Da=Date.now(),c.eb=c.Da+u),x=ETa.u(x))&&(x=Bd(x,1,-1),-1!=x&&(c.Sa||wea(c,x)))}a&&a()},q=function(u,x){var y=vd(e,ei,3);
g.wh(c.D);c.j.setInterval(c.D.getValue());401===u&&f&&(c.bb=f);void 0===x&&(x=500<=u&&600>u||401===u||0===u);x&&(c.u=y.concat(c.u),c.ma||c.j.enabled||c.j.start());b&&b("net-send-failed",u)},t=function(){c.Pa?c.Pa.send(n,p,q):c.kb(n,p,q)};
m?m.then(function(u){n.Hs["Content-Encoding"]="gzip";n.Hs["Content-Type"]="application/binary";n.body=u;n.oV=2;t()},function(){t()}):t()}}}};
g.k.sG=function(){this.flush()};
g.w(zea,g.Ce);tea.prototype.Pe=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=zd(c,ei,3,a);b&&g.E(a,14,b);return a};Dea.prototype.Pe=function(){var a=new gi(this.I,this.oa?this.oa:th,"0",this.J,this.B,this.C,!1,this.Da,void 0,void 0,this.N?this.N:void 0);this.W&&fi(a.I,this.W);if(this.u){var b=this.u,c=hi(a.I);g.E(c,7,b)}this.D&&(a.N=this.D);this.j&&(a.W=this.j);this.V&&((b=this.V)?(a.C||(a.C=new uh),b=Fd(b),g.E(a.C,4,b)):a.C&&pd(a.C,4));this.ma&&(b=this.ma,a.C||(a.C=new uh),Oaa(a.C,2,b));this.Y&&(b=this.Y,a.Sa=!0,wea(a,b));this.va&&Bea(a.I,this.va);return a};ii.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Cda,c=[],d=0;d<a.length;d++){var e=a[d],f=g.Dda(e);c.push(f);e.clear()}zd(b,g.ch,1,c);this.j.dispatch(b);this.j.flush()}};g.w(ji,Error);ji.prototype.name="RpcError";li.prototype.done=function(){this.logger.YO(this.j,ki()-this.startMillis)};
mi.prototype.Dy=function(){};
mi.prototype.YO=function(){};
mi.prototype.KH=function(a,b,c){return c};
ni.prototype.Dy=function(a){this.clientError.j.Fq("/client_streamz/po/w/cec",a,this.Qg)};
ni.prototype.YO=function(a,b){this.u.Og(b,a,this.Qg)};
ni.prototype.KH=function(a,b,c){function d(h){var l=ki()-f;e.B.Og(l,a,b,h,e.Qg)}
var e=this,f=ki();c.then(function(){d(0)},function(h){h instanceof ji?d(h.code):d(-1)});
return c};Fea.prototype.Og=function(a,b){this.j.Og("/client_streamz/bg/fil",a,b)};
Hea.prototype.Og=function(a,b){this.j.Og("/client_streamz/bg/fsl",a,b)};g.w(Jea,g.F);g.w(Kea,g.F);g.w(pi,g.F);pi.j="bfkj";ri.prototype.snapshot=function(a){var b=this;if(this.j)throw Error("Already disposed");var c=oi(),d;null!=(d=this.gr)&&d.u.j.Fq("/client_streamz/bg/fsc",d.Qg);return this.u.then(function(e){var f=e.lV;return new Promise(function(h){f(function(l){var m;null!=(m=b.gr)&&m.B.Og(oi()-c,m.Qg);h(l)},[a.vx,
a.E0])})})};
ri.prototype.dispose=function(){var a;null!=(a=this.gr)&&a.j.yE();this.j=!0;this.u.then(function(b){(b=b.D0)&&b()})};
ri.prototype.isDisposed=function(){return this.j};/*

 SPDX-License-Identifier: Apache-2.0
*/
var Mea=[ti("data"),ti("http"),ti("https"),ti("mailto"),ti("ftp"),new si(function(a){return/^[^:]*([/?#]|$)/.test(a)})];g.w(wi,g.F);g.w(xi,g.F);g.w(yi,g.F);Wea.prototype.ping=function(a,b){var c=this,d,e;return g.B(function(f){d=c.j();e=b||new yi;var h=g.E(e,1,c.Qg);g.E(h,2,a);return g.A(f,c.client.ping(e,d),0)})};g.ha.Object.defineProperties($ea.prototype,{u:{configurable:!0,enumerable:!0,get:function(){return this.j.a}},
B:{configurable:!0,enumerable:!0,get:function(){return this.j.b}}});g.w(Ai,g.F);Bi.prototype.EB=function(){return this.B};
Bi.prototype.getMetadata=function(){return this.u};Ci.prototype.getMetadata=function(){return this.j};
Ci.prototype.EB=function(){return this.u};
Ci.prototype.getStatus=function(){return null};Di.prototype.getName=function(){return this.name};var FTa=new Di("/google.internal.waa.v1.Waa/Create",wi,Ai,function(a){return Fd(a)},function(a){return Gd(Ai,a)});g.w(Ei,g.F);var Yea=new Di("/google.internal.waa.v1.Waa/GenerateIT",xi,Ei,function(a){return Fd(a)},function(a){return Gd(Ei,a)});g.w(Fi,g.F);var GTa=new Di("/google.internal.waa.v1.Waa/Ping",yi,Fi,function(a){return Fd(a)},function(a){return Gd(Fi,a)});var yfa=Promise;g.w(Gi,g.F);Gi.prototype.getValue=function(){if(Array.isArray(g.kd(this,2)))throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return od(this,2)};
Gi.prototype.setValue=function(a){if(null==a)a=this;else if(Array.isArray(a))a=g.E(this,2,id(a));else if("string"===typeof a||a instanceof Oc||Kc(a))ed(this),null==a||(a instanceof Oc?a.isEmpty():0===a.length)?pd(this,2):g.E(this,2,a),a=this;else throw Error("invalid value in Any.value field: "+a+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");return a};g.w(Hi,g.F);Hi.prototype.getMessage=function(){return nd(this,2,"")};
var bfa=[3];Ii.prototype.Vn=function(a,b){"data"==a?this.B.push(b):"metadata"==a?this.D.push(b):"status"==a?this.I.push(b):"end"==a?this.C.push(b):"error"==a&&this.u.push(b);return this};
Ii.prototype.removeListener=function(a,b){"data"==a?Mi(this.B,b):"metadata"==a?Mi(this.D,b):"status"==a?Mi(this.I,b):"end"==a?Mi(this.C,b):"error"==a&&Mi(this.u,b);return this};
Ii.prototype.cancel=function(){this.j.abort()};
Ii.prototype.cancel=Ii.prototype.cancel;Ii.prototype.removeListener=Ii.prototype.removeListener;Ii.prototype.on=Ii.prototype.Vn;g.Va(g.Ni,Ah);g.Ni.prototype.j=function(){var a=new Oi(this.I,this.D);this.u&&a.setCredentialsMode(this.u);return a};
g.Ni.prototype.C=nf({});g.Ni.prototype.setCredentialsMode=function(a){this.u=a};
g.Va(Oi,g.kf);g.k=Oi.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.Y=a;this.W=b;this.readyState=1;Pi(this)};
g.k.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.V,method:this.Y,credentials:this.I,cache:void 0};a&&(b.body=a);(this.oa||g.C).fetch(new Request(this.W,b)).then(this.zW.bind(this),this.RB.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.V=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.").catch(function(){});
1<=this.readyState&&this.j&&4!=this.readyState&&(this.j=!1,Qi(this));this.readyState=0};
g.k.zW=function(a){if(this.j&&(this.D=a,this.u||(this.status=this.D.status,this.statusText=this.D.statusText,this.u=a.headers,this.readyState=2,Pi(this)),this.j&&(this.readyState=3,Pi(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.xW.bind(this),this.RB.bind(this));else if("undefined"!==typeof g.C.ReadableStream&&"body"in a){this.C=a.body.getReader();if(this.J){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.N=new TextDecoder;gfa(this)}else a.text().then(this.yW.bind(this),this.RB.bind(this))};
g.k.pW=function(a){if(this.j){if(this.J&&a.value)this.response.push(a.value);else if(!this.J){var b=a.value?a.value:new Uint8Array(0);if(b=this.N.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?Qi(this):Pi(this);3==this.readyState&&gfa(this)}};
g.k.yW=function(a){this.j&&(this.response=this.responseText=a,Qi(this))};
g.k.xW=function(a){this.j&&(this.response=a,Qi(this))};
g.k.RB=function(){this.j&&Qi(this)};
g.k.setRequestHeader=function(a,b){this.V.append(a,b)};
g.k.getResponseHeader=function(a){return this.u?this.u.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.u)return"";for(var a=[],b=this.u.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
g.k.setCredentialsMode=function(a){this.I=a};
Object.defineProperty(Oi.prototype,"withCredentials",{get:function(){return"include"===this.I},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.Si.prototype.toString=function(){var a=[],b=this.C;b&&a.push(Zi(b,HTa,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.N)&&a.push(Zi(b,HTa,!0),"@"),a.push(g.fg(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.B,null!=c&&a.push(":",String(c));if(c=this.getPath())this.j&&"/"!=c.charAt(0)&&a.push("/"),a.push(Zi(c,"/"==c.charAt(0)?ITa:JTa,!0));(c=this.u.toString())&&a.push("?",c);(c=this.D)&&a.push("#",Zi(c,KTa));return a.join("")};
g.Si.prototype.resolve=function(a){var b=this.clone(),c=!!a.C;c?g.Ti(b,a.C):c=!!a.N;c?b.N=a.N:c=!!a.j;c?g.Ui(b,a.j):c=null!=a.B;var d=a.getPath();if(c)g.Vi(b,a.B);else if(c=!!a.J){if("/"!=d.charAt(0))if(this.j&&!this.J)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(g.ob(e,"./")||g.ob(e,"/.")){d=ib(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&
""!=f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.J=d:c=""!==a.u.toString();c?Wi(b,a.u.clone()):c=!!a.D;c&&(b.D=a.D);return b};
g.Si.prototype.clone=function(){return new g.Si(this)};
g.Si.prototype.getPath=function(){return this.J};
var HTa=/[#\/\?@]/g,JTa=/[#\?:]/g,ITa=/[#\?]/g,kfa=/[#\?@]/g,KTa=/#/g;g.k=Yi.prototype;g.k.add=function(a,b){bj(this);this.B=null;a=cj(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.u=this.u+1;return this};
g.k.remove=function(a){bj(this);a=cj(this,a);return this.j.has(a)?(this.B=null,this.u=this.u-this.j.get(a).length,this.j.delete(a)):!1};
g.k.clear=function(){this.j=this.B=null;this.u=0};
g.k.isEmpty=function(){bj(this);return 0==this.u};
g.k.forEach=function(a,b){bj(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.Cn=function(){bj(this);for(var a=Array.from(this.j.values()),b=Array.from(this.j.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.k.Cj=function(a){bj(this);var b=[];if("string"===typeof a)mfa(this,a)&&(b=b.concat(this.j.get(cj(this,a))));else{a=Array.from(this.j.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
g.k.set=function(a,b){bj(this);this.B=null;a=cj(this,a);mfa(this,a)&&(this.u=this.u-this.j.get(a).length);this.j.set(a,[b]);this.u=this.u+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.Cj(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.B)return this.B;if(!this.j)return"";for(var a=[],b=Array.from(this.j.keys()),c=0;c<b.length;c++){var d=b[c],e=g.fg(d);d=this.Cj(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+g.fg(d[f]));a.push(h)}}return this.B=a.join("&")};
g.k.clone=function(){var a=new Yi;a.B=this.B;this.j&&(a.j=new Map(this.j),a.u=this.u);return a};
g.k.extend=function(a){for(var b=0;b<arguments.length;b++)g.Ri(arguments[b],function(c,d){this.add(d,c)},this)};g.Va(g.ej,g.I);var LTa=[];g.k=g.ej.prototype;g.k.Ma=function(a,b,c,d){Array.isArray(b)||(b&&(LTa[0]=b.toString()),b=LTa);for(var e=0;e<b.length;e++){var f=g.cf(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.j[f.key]=f}return this};
g.k.lC=function(a,b,c,d){return pfa(this,a,b,c,d)};
g.k.vc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.vc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Pa(d)?!!d.capture:!!d,e=e||this.u||this,c=df(c),d=!!d,b=Ge(a)?a.Ux(b,c,d,e):a?(a=ef(a))?a.Ux(b,c,d,e):null:null,b&&(gf(b),delete this.j[b.key])};
g.k.ea=function(){g.ej.He.ea.call(this);g.fj(this)};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};qfa.prototype.isInputValid=function(){return this.B};gj.prototype.isInputValid=function(){return 3!=this.j};
gj.prototype.rf=function(){return this.I};
gj.prototype.EA=function(){return!0};
gj.prototype.parse=function(a){function b(m){m&128&&hj(f,h,l,"invalid tag");2!=(m&7)&&hj(f,h,l,"invalid wire type");f.B=m>>>3;1!=f.B&&2!=f.B&&15!=f.B&&hj(f,h,l,"unexpected tag");f.j=1;f.u=0;f.C=0}
function c(m){f.C++;5==f.C&&m&240&&hj(f,h,l,"message length too long");f.u|=(m&127)<<7*(f.C-1);m&128||(f.j=2,f.N=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.N++]=m;f.N==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;l<h.length;){switch(f.j){case 3:hj(f,h,l,"stream already broken");break;case 0:b(h[l]);break;case 1:c(h[l]);break;case 2:d(h[l]);break;default:throw Error("unexpected parser state: "+f.j);}f.V++;l++}a=f.J;f.J=[];return 0<a.length?a:null};pj.prototype.isInputValid=function(){return null===this.j};
pj.prototype.rf=function(){return this.j};
pj.prototype.EA=function(){return!1};
pj.prototype.parse=function(a){null!==this.j&&sfa(this,a,"stream already broken");var b=null;try{var c=this.B;c.B||rfa(c,a,"stream already broken");c.j+=a;var d=Math.floor(c.j.length/4);if(0==d)var e=null;else{try{var f=Fc(c.j.slice(0,4*d))}catch(h){rfa(c,c.j,h.message)}c.u+=4*d;c.j=c.j.slice(4*d);e=f}b=null===e?null:this.C.parse(e)}catch(h){sfa(this,a,h.message)}this.u+=a.length;return b};var MTa={INIT:0,bx:1,YE:2,St:3,zw:4,yw:5,STRING:6,SE:7,NL:8,aM:9,bM:10,cM:11,zK:12,AK:13,BK:14,CK:15,RL:16,SL:17,TL:18,TU:19,WE:20};g.k=rj.prototype;g.k.isInputValid=function(){return 3!=this.D};
g.k.rf=function(){return this.V};
g.k.done=function(){return 2===this.D};
g.k.EA=function(){return!1};
g.k.parse=function(a){function b(){for(;t<a.length;)if(qj(a[t]))t++,f.B++;else break;return t<n}
function c(){for(var x;;){x=a[t++];if(!x)break;f.B++;switch(f.j){case m.INIT:"{"===x?f.j=m.YE:"["===x?f.j=m.zw:qj(x)||sj(f,a,t);continue;case m.SE:case m.YE:if(qj(x))continue;if(f.j===m.SE)h.push(m.NL);else if("}"===x){e("{}");f.j=d();continue}else h.push(m.St);'"'===x?f.j=m.STRING:sj(f,a,t);continue;case m.NL:case m.St:if(qj(x))continue;":"===x?(f.j===m.St&&(h.push(m.St),f.u++),f.j=m.bx):"}"===x?(f.u--,e(),f.j=d()):","===x?(f.j===m.St&&h.push(m.St),f.j=m.SE):sj(f,a,t);continue;case m.zw:case m.bx:if(qj(x))continue;
if(f.j===m.zw)if(f.u++,f.j=m.bx,"]"===x){f.u--;if(0===f.u){f.j=m.yw;return}e("[]");f.j=d();continue}else h.push(m.yw);'"'===x?f.j=m.STRING:"{"===x?f.j=m.YE:"["===x?f.j=m.zw:"t"===x?f.j=m.aM:"f"===x?f.j=m.zK:"n"===x?f.j=m.RL:"-"!==x&&(-1!=="0123456789".indexOf(x)?f.j=m.WE:sj(f,a,t));continue;case m.yw:if(","===x)h.push(m.yw),f.j=m.bx,1===f.u&&(q=t);else if("]"===x){f.u--;if(0===f.u)return;e();f.j=d()}else if(qj(x))continue;else sj(f,a,t);continue;case m.STRING:var y=t;a:for(;;){for(;0<f.N;)if(x=a[t++],
4===f.N?f.N=0:f.N++,!x)break a;if('"'===x&&!f.J){f.j=d();break}if("\\"===x&&!f.J&&(f.J=!0,x=a[t++],!x))break;if(f.J)if(f.J=!1,"u"===x&&(f.N=1),x=a[t++])continue;else break;l.lastIndex=t;x=l.exec(a);if(!x){t=a.length+1;break}t=x.index+1;x=a[x.index];if(!x)break}f.B+=t-y;continue;case m.aM:if(!x)continue;"r"===x?f.j=m.bM:sj(f,a,t);continue;case m.bM:if(!x)continue;"u"===x?f.j=m.cM:sj(f,a,t);continue;case m.cM:if(!x)continue;"e"===x?f.j=d():sj(f,a,t);continue;case m.zK:if(!x)continue;"a"===x?f.j=m.AK:
sj(f,a,t);continue;case m.AK:if(!x)continue;"l"===x?f.j=m.BK:sj(f,a,t);continue;case m.BK:if(!x)continue;"s"===x?f.j=m.CK:sj(f,a,t);continue;case m.CK:if(!x)continue;"e"===x?f.j=d():sj(f,a,t);continue;case m.RL:if(!x)continue;"u"===x?f.j=m.SL:sj(f,a,t);continue;case m.SL:if(!x)continue;"l"===x?f.j=m.TL:sj(f,a,t);continue;case m.TL:if(!x)continue;"l"===x?f.j=d():sj(f,a,t);continue;case m.TU:"."===x?f.j=m.WE:sj(f,a,t);continue;case m.WE:if(-1!=="0123456789.eE+-".indexOf(x))continue;else t--,f.B--,f.j=
d();continue;default:sj(f,a,t)}}}
function d(){var x=h.pop();return null!=x?x:m.bx}
function e(x){1<f.u||(x||(x=-1===q?f.C+a.substring(p,t):a.substring(q,t)),f.W?f.I.push(x):f.I.push(JSON.parse(x)),q=t)}
for(var f=this,h=f.Y,l=f.oa,m=MTa,n=a.length,p=0,q=-1,t=0;t<n;)switch(f.D){case 3:return sj(f,a,t),null;case 2:return b()&&sj(f,a,t),null;case 0:if(b()){var u=a[t++];f.B++;if("["===u){f.D=1;p=t;f.j=m.zw;continue}else sj(f,a,t)}return null;case 1:return c(),0===f.u&&f.j==m.yw?(f.D=2,f.C=a.substring(t)):f.C=-1===q?f.C+a.substring(p):a.substring(q),0<f.I.length?(u=f.I,f.I=[],u):null}return null};tj.prototype.isInputValid=function(){return null===this.D};
tj.prototype.rf=function(){return this.D};
tj.prototype.EA=function(){return!1};
tj.prototype.parse=function(a){function b(m){f.u=6;f.D="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.D);}
function c(){f.B=new rj({Hja:!0,KV:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.C.push(p)}}
function e(m){if(m){(f.I||1<m.length)&&b("extra status: "+m);f.I=!0;var n={};n[2]=m[0];f.C.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.u){a:{for(;h<a.length;){if(!qj(a[h])){l=!0;break a}h++;f.j++}l=!1}l=!l}if(l)return null;switch(f.u){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.u=1,h++,f.j++):b("unexpected input token");break;case 1:"["===a[h]?(f.u=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.u=3:"]"===a[h]?(f.u=5,h++,f.j++):b("unexpected input token");break;case 2:l=f.B.parse(a.substring(h));d(l);f.B.done()?(f.u=3,l=f.B.C,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-
h,h=a.length);break;case 3:","===a[h]||"null,"==a.slice(h,h+5)?(f.u=4,c(),f.B.parse("["),h+=","===a[h]?1:5,f.j++):"]"===a[h]&&(f.u=5,h++,f.j++);break;case 4:l=f.B.parse(a.substring(h));e(l);f.B.done()?(f.u=5,l=f.B.C,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-h,h=a.length);break;case 5:b("extra input after stream end")}}return 0<f.C.length?(a=f.C,f.C=[],a):null};uj.prototype.getStatus=function(){return this.C};
uj.prototype.W=function(a){a=a.target;try{if(a==this.j)a:{var b=g.Th(this.j),c=this.j.u,d=this.j.getStatus(),e=g.Vh(this.j);a=[];if(g.Wh(this.j)instanceof Array){var f=g.Wh(this.j);0<f.length&&f[0]instanceof Uint8Array&&(this.V=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?vj(this,7):7==c?vj(this,8):d||vj(this,3)),this.u||(this.u=tfa(this.j),null==this.u&&vj(this,5)),2<this.C)wj(this);else{if(a.length>this.B){var h=a.length;c=[];try{if(this.u.EA())for(var l=0;l<h;l++){var m=
this.u.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.I){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.I=new TextDecoder}for(l=0;l<h;l++)m+=this.I.decode(a[l],{stream:4==b&&l==h-1});c=this.u.parse(m)}a.splice(0,h);c&&this.D(c)}catch(p){vj(this,5);wj(this);break a}}else if(e.length>this.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){vj(this,5);wj(this);break a}}4==b?(0!=e.length||
this.V?vj(this,2):vj(this,4),wj(this)):vj(this,1)}}}catch(p){vj(this,6),wj(this)}};g.k=ufa.prototype;g.k.Vn=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.Vn(a,b);return this};
g.k.removeListener=function(a,b){var c=this.u[a];c&&g.bc(c,b);(a=this.j[a])&&g.bc(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.EY=function(a){var b=this.u.data;b&&vfa(a,b);(b=this.j.data)&&vfa(a,b);this.j.data=[]};
g.k.n_=function(){switch(this.B.getStatus()){case 1:xj(this,"readable");break;case 5:case 6:case 4:case 7:case 3:xj(this,"error");break;case 8:xj(this,"close");break;case 2:xj(this,"end")}};wfa.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return xfa(function(h){var l=h.EB(),m=h.getMetadata(),n=Afa(e,!1);m=Bfa(e,m,n,f+l.getName());var p=Cfa(n,l.u,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.C).call(this,afa(d,b,c))};yj.prototype.create=function(a,b){return zi(this.j,"https://web.archive.org/web/20220603021303/https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},FTa)};
yj.prototype.ping=function(a,b){return zi(this.j,"https://web.archive.org/web/20220603021303/https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},GTa)};var Efa={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);0<a;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};g.w(Dj,Error);g.w(Ej,g.I);g.w(Gj,Ej);Gj.prototype.uv=function(a){++this.D>=this.I&&this.B.resolve();var b=new li(this.logger,"C");a=new $ea(this.C(a.vx));b.done();b=a.u;var c=this.j;c=ud(c,ue,3===sd(c,TZ)?3:-1);c||(c=new ue,a=Hc(a.B),g.E(c,2,a),xd(this.j,ue,3,TZ,c));g.E(c,1,b);return g.me(this.j,tTa)};
g.w(Hj,Ej);Hj.prototype.uv=function(){return this.j};
g.w(Ij,Ej);Ij.prototype.uv=function(){if(this.j){var a=this.j;this.j=void 0;return a}return this.C};
Cj.prototype.isReady=function(){return!!this.j};
Cj.prototype.ready=function(){var a=this;return g.B(function(b){return g.A(b,a.u.promise,0)})};
Cj.prototype.uv=function(a){if(!this.j)throw Error("SGK:Not ready");var b=new li(this.logger,this.j.u);try{return this.j.uv(a)}catch(e){b=new li(this.logger,"e");var c=new Dj(5,e);this.logger.Dy(c.code);var d;null==(d=this.onError)||d.call(this,c);return(new Ij(c)).uv()}finally{b.done()}};var Cl;Cl=["av.default","js","unreleased"].slice(-1)[0];var rl=document,Yj=window;var Qfa={NONE:0,y7:1},yga={BS:0,ffa:1,efa:2,gfa:3},xga={W2:"a",p7:"d",VIDEO:"v"};Kj.prototype.isVisible=function(){return this.Lr?.3<=this.Dd:.5<=this.Dd};var Uj={X3:0,U7:1},vga={NONE:0,q9:1,q8:2};Lj.prototype.getValue=function(){return this.kd};
g.w(Mj,Lj);Mj.prototype.setValue=function(a){if(null!==this.kd||!g.Qe(this.u,a))return!1;this.kd=a;return!0};
g.w(Nj,Lj);Nj.prototype.setValue=function(a){if(null!==this.kd||"number"!==typeof a)return!1;this.kd=a;return!0};
g.w(Oj,Lj);Oj.prototype.setValue=function(a){if(null!==this.kd||"string"!==typeof a)return!1;this.kd=a;return!0};Pj.prototype.disable=function(){this.u=!1};
Pj.prototype.enable=function(){this.u=!0};
Pj.prototype.isEnabled=function(){return this.u};
Pj.prototype.reset=function(){this.j={};this.u=!0;this.B={}};var zha=!g.Gc&&!Hb();Vj.prototype.now=function(){return 0};
Vj.prototype.u=function(){return 0};
Vj.prototype.B=function(){return 0};
Vj.prototype.j=function(){return 0};g.w(Xj,Vj);Xj.prototype.now=function(){return Wj()&&Yj.performance.now?Yj.performance.now():Vj.prototype.now.call(this)};
Xj.prototype.u=function(){return Wj()&&Yj.performance.memory?Yj.performance.memory.totalJSHeapSize||0:Vj.prototype.u.call(this)};
Xj.prototype.B=function(){return Wj()&&Yj.performance.memory?Yj.performance.memory.usedJSHeapSize||0:Vj.prototype.B.call(this)};
Xj.prototype.j=function(){return Wj()&&Yj.performance.memory?Yj.performance.memory.jsHeapSizeLimit||0:Vj.prototype.j.call(this)};var Tfa=pf(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.C.addEventListener("test",null,b)}catch(c){}return a});Ufa.prototype.isVisible=function(){return 1===bk(rl)};g.yf("csi.gstatic.com");g.yf("googleads.g.doubleclick.net");g.yf("partner.googleadservices.com");g.yf("pubads.g.doubleclick.net");g.yf("securepubads.g.doubleclick.net");g.yf("tpc.googlesyndication.com");var Yfa=/https?:\/\/[^\/]+/,Wfa={h2:"allow-forms",j2:"allow-modals",l2:"allow-orientation-lock",m2:"allow-pointer-lock",n2:"allow-popups",o2:"allow-popups-to-escape-sandbox",q2:"allow-presentation",s2:"allow-same-origin",t2:"allow-scripts",u2:"allow-top-navigation",v2:"allow-top-navigation-by-user-activation"},aga=pf(function(){return Xfa()});var fga=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");ok.prototype.setInterval=function(a,b){return Yj.setInterval(a,b)};
ok.prototype.clearInterval=function(a){Yj.clearInterval(a)};
ok.prototype.setTimeout=function(a,b){return Yj.setTimeout(a,b)};
ok.prototype.clearTimeout=function(a){Yj.clearTimeout(a)};rga.prototype.getContext=function(){if(!this.j){if(!Yj)throw Error("Context has not been set and window is undefined.");this.j=nk(ok)}return this.j};g.w(qk,g.F);var zia=[qk,1,lTa,2,NZ,3,NZ,4,NZ,5,mTa];var wga={yea:1,aV:2,eca:3};g.Bf(xf(g.yf("https://web.archive.org/web/20220603021303/https://pagead2.googlesyndication.com/pagead/osd.js")));zga.prototype.RI=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<d.length?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.setValue(d)}}}};var VZ=null;var wk=g.C.performance,NTa=!!(wk&&wk.mark&&wk.measure&&wk.clearMarks),uk=pf(function(){var a;if(a=NTa){var b;if(null===VZ){VZ="";try{a="";try{a=g.C.top.location.hash}catch(c){a=g.C.location.hash}a&&(VZ=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=VZ;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
vk.prototype.disable=function(){this.j=!1;this.events!=this.u.google_js_reporting_queue&&(uk()&&g.qc(this.events,Ega),this.events.length=0)};
vk.prototype.start=function(a,b){if(!this.j)return null;var c=Cga()||Bga();a=new Dga(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";wk&&uk()&&wk.mark(b);return a};
vk.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=Cga()||Bga();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";wk&&uk()&&wk.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};Fga.prototype.MH=function(a,b,c,d,e){e=e||this.wN;try{var f=new gk;f.j.push(1);f.u[1]=hk("context",a);b.error&&b.meta&&b.id||(b=new Ak(Bk(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.u[2]=hk("msg",h)}var l=b.meta||{};if(this.uF)try{this.uF(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.j.push(3);f.u[3]=b;var m=hga();if(m.u){var n=m.u.url||"";f.j.push(4);f.u[4]=hk("top",n)}var p=[{url:m.j.url||""},{url:m.j.url?Uda(m.j.url):""}];f.j.push(5);f.u[5]=p;tk(this.j,e,f,!1,c)}catch(q){try{tk(this.j,
e,{context:"ecmserr",rctx:a,msg:Bk(q),url:m&&m.j.url},!1,c)}catch(t){}}return this.CJ};
g.w(Ak,Aga);var yk,zk,xk=new vk;yk=new function(){var a="https:";Yj&&Yj.location&&"http:"===Yj.location.protocol&&(a="http:");this.u=a;this.j=.01;this.B=Math.random()};
zk=new Fga;Yj&&Yj.document&&("complete"==Yj.document.readyState?Hga():xk.j&&ak(Yj,"load",function(){Hga()}));var Kga=Date.now(),Pk=-1,Lk=-1,Zha,Qk=-1,Mk=!1;g.k=Rk.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new Rk(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof Rk?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.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};Vk.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&Tk(this.j,a.j)&&!0};Wk.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.N==a.N&&Tk(this.B,a.B)&&Tk(this.I,a.I)&&this.j==a.j&&this.D==a.D&&this.u==a.u&&this.J==a.J};var OTa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},xm={WU:"start",JS:"firstquartile",RU:"midpoint",XU:"thirdquartile",xS:"complete",ERROR:"error",QU:"metric",PAUSE:"pause",UU:"resume",VU:"skip",ZU:"viewable_impression",SU:"mute",YU:"unmute",KS:"fullscreen",ES:"exitfullscreen",vS:"bufferstart",uS:"bufferfinish",LS:"fully_viewable_audible_half_duration_impression",PU:"measurable_impression",oS:"abandon",DS:"engagedview",OS:"impression",yS:"creativeview",OU:"loaded",Gea:"progress",
CLOSE:"close",M3:"collapse",Eda:"overlay_resize",Fda:"overlay_unmeasurable_impression",Gda:"overlay_unviewable_impression",Ida:"overlay_viewable_immediate_impression",Hda:"overlay_viewable_end_of_session_impression",zS:"custom_metric_viewable",zda:"verification_debug",pS:"audio_audible",rS:"audio_measurable",qS:"audio_impression"},lja="start firstquartile midpoint thirdquartile resume loaded".split(" "),mja=["start","firstquartile","midpoint","thirdquartile"],$ha=["abandon"],Rm={UNKNOWN:-1,WU:0,JS:1,
RU:2,XU:3,xS:4,QU:5,PAUSE:6,UU:7,VU:8,ZU:9,SU:10,YU:11,KS:12,ES:13,LS:14,PU:15,oS:16,DS:17,OS:18,yS:19,OU:20,zS:21,vS:22,uS:23,qS:24,rS:25,pS:26};var Mga={T1:"addEventListener",s8:"getMaxSize",t8:"getScreenSize",u8:"getState",v8:"getVersion",Wea:"removeEventListener",M9:"isViewable"};g.k=g.Yk.prototype;g.k.clone=function(){return new g.Yk(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.ag?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.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
g.k.getSize=function(){return new g.cg(this.width,this.height)};
g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var Qga={};Zga.prototype.update=function(a){a&&a.document&&(this.J=Xk(!1,a,this.isMobileDevice),this.j=Xk(!0,a,this.isMobileDevice),aha(this,a),$ga(this,a))};tl.prototype.cancel=function(){pk().clearTimeout(this.j);this.j=null};
tl.prototype.schedule=function(){var a=this;this.j=pk().setTimeout(rk(sk().j.j,Ik(143,function(){a.u++;a.B.sample()})),Lga())};g.k=ul.prototype;g.k.Gw=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.Fu=function(){return this.j.va};
g.k.oy=function(){return this.j.W};
g.k.fail=function(a,b){if(!this.W||(void 0===b?0:b))this.W=!0,this.va=a,this.N=0,this.j!=this||wl(this)};
g.k.getName=function(){return this.j.Ia};
g.k.xp=function(){return this.j.ON()};
g.k.ON=function(){return{}};
g.k.Fn=function(){return this.j.N};
g.k.kL=function(){var a=ql();a.j=Xk(!0,this.B,a.isMobileDevice)};
g.k.lL=function(){$ga(ql(),this.B)};
g.k.WN=function(){return this.C.j};
g.k.sample=function(){};
g.k.isActive=function(){return this.j.I};
g.k.Qu=function(a){var b=this.j;this.j=a.Fn()>=this.N?a:this;b!==this.j?(this.I=this.j.I,wl(this)):this.I!==this.j.I&&(this.I=this.j.I,wl(this))};
g.k.Fp=function(a){if(a.u===this.j){var b=!this.C.equals(a,this.V);this.C=a;b&&dha(this)}};
g.k.Jm=function(){return this.V};
g.k.dispose=function(){this.ma=!0};
g.k.isDisposed=function(){return this.ma};g.k=xl.prototype;g.k.zE=function(){return!0};
g.k.Hw=function(){};
g.k.dispose=function(){if(!this.isDisposed()){var a=this.u;g.bc(a.D,this);a.V&&this.Jm()&&cha(a);this.Hw();this.W=!0}};
g.k.isDisposed=function(){return this.W};
g.k.xp=function(){return this.u.xp()};
g.k.Fn=function(){return this.u.Fn()};
g.k.Fu=function(){return this.u.Fu()};
g.k.oy=function(){return this.u.oy()};
g.k.Qu=function(){};
g.k.Fp=function(){this.Uo()};
g.k.Jm=function(){return this.Y};g.k=yl.prototype;g.k.Fn=function(){return this.j.Fn()};
g.k.Fu=function(){return this.j.Fu()};
g.k.oy=function(){return this.j.oy()};
g.k.create=function(a,b,c){var d=null;this.j&&(d=this.qA(a,b,c),vl(this.j,d));return d};
g.k.mL=function(){return this.Iw()};
g.k.Iw=function(){return!1};
g.k.init=function(a){return this.j.initialize()?(vl(this.j,this),this.C=a,!0):!1};
g.k.Qu=function(a){0==a.Fn()&&this.C(a.Fu(),this)};
g.k.Fp=function(){};
g.k.Jm=function(){return!1};
g.k.dispose=function(){this.D=!0};
g.k.isDisposed=function(){return this.D};
g.k.xp=function(){return{}};zl.prototype.add=function(a,b,c){++this.B;a=new eha(a,b,c);this.j.push(new eha(a.j,a.kd,a.u+this.B/4096));this.u=!0;return this};jha.prototype.toString=function(){var a="//web.archive.org/web/20220603021303/https://pagead2.googlesyndication.com//pagead/gen_204",b=Bl(this.j);0<b.length&&(a+="?"+b);return a};Dl.prototype.update=function(a,b,c){a&&(this.j+=b,this.u+=b,this.C+=b,this.B=Math.max(this.B,this.C));if(void 0===c?!a:c)this.C=0};var pha=[1,.75,.5,.3,0];El.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.u.length;e++){var h=this.u[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};Kl.prototype.update=function(a,b,c,d){this.J=-1!=this.J?Math.min(this.J,b.Dd):b.Dd;this.Y=Math.max(this.Y,b.Dd);this.oa=-1!=this.oa?Math.min(this.oa,b.Ki):b.Ki;this.va=Math.max(this.va,b.Ki);this.bb.update(b.Ki,c.Ki,b.j,a,d);this.u.update(b.Dd,c.Dd,b.j,a,d);c=d||c.Lr!=b.Lr?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Ia.update(c,a,b)};
Kl.prototype.On=function(){return this.Ia.B>=this.Ta};if(rl&&rl.URL){var WZ=rl.URL,XZ;if(XZ=!!WZ){var YZ;a:{if(WZ){var PTa=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var ZZ=PTa.exec(decodeURIComponent(WZ));if(ZZ){YZ=ZZ[1]&&1<ZZ[1].length?ZZ[1].substring(1):"true";break a}}catch(a){}}YZ=""}XZ=0<YZ.length}zk.CJ=!XZ};var QTa=new Rk(0,0,0,0);var xha=new Rk(0,0,0,0);g.w(Pl,g.I);g.k=Pl.prototype;
g.k.ea=function(){if(this.Zh.j){if(this.lr.YH){var a=this.Zh.j;a.removeEventListener&&a.removeEventListener("mouseover",this.lr.YH,Zj());this.lr.YH=null}this.lr.WH&&(a=this.Zh.j,a.removeEventListener&&a.removeEventListener("mouseout",this.lr.WH,Zj()),this.lr.WH=null)}this.Jz&&this.Jz.dispose();this.qe&&this.qe.dispose();delete this.sC;delete this.OH;delete this.UR;delete this.Zh.Pp;delete this.Zh.j;delete this.lr;delete this.Jz;delete this.qe;delete this.featureSet;g.I.prototype.ea.call(this)};
g.k.zp=function(){return this.qe?this.qe.j:this.position};
g.k.RI=function(a){sk().RI(a)};
g.k.Jm=function(){return!1};
g.k.HB=function(){return new Kl};
g.k.Eh=function(){return this.sC};
g.k.RN=function(a){return Bha(this,a,1E4)};
g.k.Ea=function(a,b,c,d,e,f,h){this.Mp||(this.iB&&(a=this.FF(a,c,e,h),d=d&&this.hg.Dd>=(this.Lr()?.3:.5),this.kK(f,a,d),this.lastUpdateTime=b,0<a.Dd&&-1===this.DR&&(this.DR=b),-1==this.GR&&this.On()&&(this.GR=b),-2==this.JH&&(this.JH=Nl(this.zp())?a.Dd:-1),this.hg=a),this.OH(this))};
g.k.kK=function(a,b,c){this.Eh().update(a,b,this.hg,c)};
g.k.GG=function(){return new Kj};
g.k.FF=function(a,b,c,d){c=this.GG();c.j=b;b=pk().u;b=0===bk(rl)?-1:b.isVisible()?0:1;c.u=b;c.Dd=this.QF(a);c.Lr=this.Lr();c.Ki=d;return c};
g.k.QF=function(a){return 0===this.opacity&&1===Sj(this.featureSet,"opac")?0:a};
g.k.Lr=function(){return!1};
g.k.vD=function(){return this.cX||this.fX};
g.k.xC=function(){Kk()};
g.k.XH=function(){Kk()};
g.k.jm=function(){return 0};
g.k.On=function(){return this.sC.On()};
g.k.XN=function(){return this.Mp?2:this.On()?4:3};
g.k.AB=function(){return 0};g.Yl.prototype.next=function(){return g.$Z};
g.$Z={done:!0,value:void 0};g.Yl.prototype.Qi=function(){return this};g.w(Hha,Kj);var a_=Jha([void 0,1,2,3,4,8,16]),b_=Jha([void 0,4,8,16]),RTa={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:bm("p0",b_),p1:bm("p1",b_),p2:bm("p2",b_),p3:bm("p3",b_),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:am("mtos1",[0,2,4],!1,b_),mtos2:am("mtos2",[0,2,4],!1,b_),mtos3:am("mtos3",[0,2,4],!1,b_),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:bm("a0",b_),a1:bm("a1",b_),a2:bm("a2",b_),a3:bm("a3",b_),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",
vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:bm("c0",b_),c1:bm("c1",b_),c2:bm("c2",b_),c3:bm("c3",b_),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:bm("qmtos",a_),qnc:bm("qnc",a_),qmv:bm("qmv",a_),qnv:bm("qnv",a_),
raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:bm("ss0",b_),ss1:bm("ss1",b_),ss2:bm("ss2",b_),ss3:bm("ss3",b_),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},
STa=Object.assign({},RTa,{avid:nf("audio"),avas:"avas",vs:"vs"}),TTa={atos:"atos",avt:am("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return void 0===c[a]&&void 0!==b?b:c[a]}}("ss",0),
t:"t"};gm.prototype.getValue=function(){return this.u};
gm.prototype.update=function(a,b){32<=a||(this.j&1<<a&&!b?this.u&=~(1<<a):this.j&1<<a||!b||(this.u|=1<<a),this.j|=1<<a)};g.w(hm,Kl);
hm.prototype.update=function(a,b,c,d){if(!b.paused){Kl.prototype.update.call(this,a,b,c,d);var e=$l(b)&&$l(c),f=.5<=(d?Math.min(b.Dd,c.Dd):c.Dd);ol(b.volume)&&(this.C=-1!=this.C?Math.min(this.C,b.volume):b.volume,this.I=Math.max(this.I,b.volume));f&&(this.ma+=a,this.V+=e?a:0);this.j.update(b.Dd,c.Dd,b.j,a,d,e);this.B.update(!0,a);this.D.update(e,a);this.W.update(c.fullscreen,a);this.eb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Da.update(a,b.isVisible());this.Sa.update(a,1<=b.Dd);this.Pa.update(a,
$l(b))}};Oha.prototype.D=function(a){this.u||(this.j(a)?(a=Zia(this.V,this.B,a),this.C|=a,a=0==a):a=!1,this.u=a)};g.w(jm,Oha);jm.prototype.j=function(){return!0};
jm.prototype.I=function(){return!1};
jm.prototype.getId=function(){var a=this,b=Re(xm,function(c){return c==a.B});
return Rm[b].toString()};
jm.prototype.toString=function(){var a="";this.I()&&(a+="c");this.u&&(a+="s");0<this.C&&(a+=":"+this.C);return this.getId()+a};g.w(km,jm);km.prototype.D=function(a,b){b=void 0===b?null:b;null!=b&&this.J.push(b);jm.prototype.D.call(this,a)};g.w(pm,xl);g.k=pm.prototype;g.k.HF=function(){if(this.element){var a=this.element,b=this.u.j.B;try{try{var c=Wga(a.getBoundingClientRect())}catch(n){c=new Rk(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Tga(a,b),h=f.x,l=f.y;var m=new Rk(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=QTa.clone()}this.j=m}};
g.k.KM=function(){this.C=this.u.C.j};
g.k.DO=function(a){var b=1==Sj(this.featureSet,"od");return wha(a,this.C,this.element,b)};
g.k.LM=function(){this.timestamp=Kk()};
g.k.Uo=function(){this.LM();this.HF();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.cg(a.videoWidth,a.videoHeight);a=this.j;var c=Sk(a),d=a.getHeight(),e=b.width;b=b.height;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<d&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),0<c&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.j=a}this.KM();
a=this.j;c=this.C;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new Rk(Math.max(a.top,c.top),Math.min(a.right,c.right),Math.min(a.bottom,c.bottom),Math.max(a.left,c.left)):new Rk(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new Rk(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.DO(c)?c=new Rk(0,0,0,0):(d=ql().C,b=new Rk(0,d.height,d.width,0),d=Ol(c,this.j),e=Ol(c,ql().j),b=Ol(c,b)));c=c.top>=c.bottom||c.left>=c.right?new Rk(0,0,0,
0):Uk(c,-this.j.left,-this.j.top);sl()||(e=d=0);this.J=new Wk(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.u.getName()};var UTa=new Rk(0,0,0,0);g.w(qm,pm);g.k=qm.prototype;g.k.zE=function(){this.B();return!0};
g.k.Fp=function(){pm.prototype.Uo.call(this)};
g.k.LM=function(){};
g.k.HF=function(){};
g.k.Uo=function(){this.B();pm.prototype.Uo.call(this)};
g.k.Qu=function(a){a=a.isActive();a!==this.I&&(a?this.B():(ql().j=new Rk(0,0,0,0),this.j=new Rk(0,0,0,0),this.C=new Rk(0,0,0,0),this.timestamp=-1));this.I=a};var c_={},Yha=(c_.firstquartile=0,c_.midpoint=1,c_.thirdquartile=2,c_.complete=3,c_);g.w(sm,Pl);g.k=sm.prototype;g.k.Jm=function(){return!0};
g.k.Nn=function(){return 2==this.fh};
g.k.RN=function(a){return Bha(this,a,Math.max(1E4,this.B/3))};
g.k.Ea=function(a,b,c,d,e,f,h){var l=this,m=this.J(this)||{};g.Ye(m,e);this.B=m.duration||this.B;this.V=m.isVpaid||this.V;this.Ga=m.isYouTube||this.Ga;e=Qha(this,b);1===Pha(this)&&(f=e);Pl.prototype.Ea.call(this,a,b,c,d,m,f,h);this.Yr&&this.Yr.u&&g.qc(this.I,function(n){n.D(l)})};
g.k.kK=function(a,b,c){Pl.prototype.kK.call(this,a,b,c);vm(this).update(a,b,this.hg,c);this.bb=$l(this.hg)&&$l(b);-1==this.va&&this.Ta&&(this.va=this.Eh().B.j);this.Yf.B=0;a=this.On();b.isVisible()&&fm(this.Yf,"vs");a&&fm(this.Yf,"vw");ol(b.volume)&&fm(this.Yf,"am");$l(b)&&fm(this.Yf,"a");this.Su&&fm(this.Yf,"f");-1!=b.u&&(fm(this.Yf,"bm"),1==b.u&&fm(this.Yf,"b"));$l(b)&&b.isVisible()&&fm(this.Yf,"avs");this.bb&&a&&fm(this.Yf,"avw");0<b.Dd&&fm(this.Yf,"pv");wm(this,this.Eh().B.j,!0)&&fm(this.Yf,"gdr");
2E3<=Il(this.Eh().u,1)&&fm(this.Yf,"pmx")};
g.k.HB=function(){return new hm};
g.k.Eh=function(){return this.sC};
g.k.GG=function(){return new Hha};
g.k.FF=function(a,b,c,d){a=Pl.prototype.FF.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Su;a.paused=this.Nn();a.volume=c.volume;ol(a.volume)||(this.kb++,b=this.hg,ol(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.QF=function(a){return ql(),this.Su?1:Pl.prototype.QF.call(this,a)};
g.k.jm=function(){return 1};
g.k.getDuration=function(){return this.B};
g.k.XN=function(){return this.Mp?2:Sha(this)?5:this.On()?4:3};
g.k.AB=function(){return this.eb?2E3<=this.Eh().D.B?4:3:2};var VTa=g.Ua();hia.prototype.reset=function(){this.j=[];this.u=[]};
var Cm=nk(hia);g.w(Fm,yl);g.k=Fm.prototype;g.k.getName=function(){return(this.u?this.u:this.j).getName()};
g.k.xp=function(){return(this.u?this.u:this.j).xp()};
g.k.Fn=function(){return(this.u?this.u:this.j).Fn()};
g.k.init=function(a){var b=!1;(0,g.qc)(this.B,function(c){c.initialize()&&(b=!0)});
b&&(this.C=a,vl(this.j,this));return b};
g.k.dispose=function(){(0,g.qc)(this.B,function(a){a.dispose()});
yl.prototype.dispose.call(this)};
g.k.mL=function(){return pl(this.B,function(a){return a.Gw()})};
g.k.Iw=function(){return pl(this.B,function(a){return a.Gw()})};
g.k.qA=function(a,b,c){return new pm(a,this.j,b,c)};
g.k.Fp=function(a){this.u=a.u};var qia={threshold:[0,.3,.5,.75,1]};g.w(Gm,pm);g.k=Gm.prototype;g.k.zE=function(){var a=this;this.V||(this.V=Kk());if(Jga(298,function(){return ria(a)}))return!0;
this.u.fail("msf");return!1};
g.k.Hw=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.I?(this.I.unobserve(this.element),this.I=null):this.D&&(this.D.disconnect(),this.D=null)}catch(a){}};
g.k.Uo=function(){var a=Hm(this);0<a.length&&Im(this,a);pm.prototype.Uo.call(this)};
g.k.HF=function(){};
g.k.DO=function(){return!1};
g.k.KM=function(){};
g.k.xp=function(){var a={};return Object.assign(this.u.xp(),(a.niot_obs=this.V,a.niot_cbk=this.N,a))};
g.k.getName=function(){return"nio"};g.w(Jm,yl);Jm.prototype.getName=function(){return"nio"};
Jm.prototype.Iw=function(){return!ql().u&&null!=this.j.j.B.IntersectionObserver};
Jm.prototype.qA=function(a,b,c){return new Gm(a,this.j,b,c)};g.w(Km,ul);Km.prototype.WN=function(){return ql().j};
Km.prototype.Gw=function(){var a=tia();this.N!==a&&(this.j!=this&&a>this.j.N&&(this.j=this,wl(this)),this.N=a);return 2==a};Lm.prototype.sample=function(){Om(this,Dm(),!1)};
Lm.prototype.C=function(){var a=sl(),b=Kk();a?(Mk||(Pk=b,g.qc(Cm.j,function(c){var d=c.Eh();d.Ga=im(d,b,1!=c.fh)})),Mk=!0):(this.J=yia(this,b),Mk=!1,Zha=b,g.qc(Cm.j,function(c){c.iB&&(c.Eh().N=b)}));
Om(this,Dm(),!a)};
var Mm=nk(Lm);var Bia=null,mn="",ln=!1;var Eia=Dia().Xl,Qm=Dia().Zl;var Hia={W7:"visible",X2:"audible",dha:"time",fha:"timetype"},Iia={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)}};
Gia.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.w(Um,jm);Um.prototype.getId=function(){return this.J};
Um.prototype.I=function(){return!0};
Um.prototype.j=function(a){var b=a.Eh(),c=a.getDuration();return pl(this.N,function(d){if(void 0!=d.j)var e=Kia(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<c?d.C*c:-1,d=-1!=d&&e>=d);return d})};g.w(Vm,Lia);Vm.prototype.u=function(){return null};
Vm.prototype.B=function(){return[]};g.w(Wm,Kha);Wm.prototype.j=function(a){var b=new dm;b.j=em(a,RTa);b.u=em(a,TTa);return b};g.w(Xm,jm);Xm.prototype.j=function(a){return Sha(a)};g.w(Ym,Lia);g.w(Zm,jm);Zm.prototype.j=function(a){return a.Eh().On()};g.w($m,km);$m.prototype.j=function(a){var b=g.Xb(this.J,Sj(sk().featureSet,"ovms"));return!a.Mp&&(0!=a.fh||b)};g.w(an,Ym);an.prototype.u=function(){return new $m(this.j)};
an.prototype.B=function(){return[new Zm("viewable_impression",this.j),new Xm(this.j)]};g.w(bn,qm);bn.prototype.B=function(){var a=g.La("ima.admob.getViewability"),b=Sj(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
bn.prototype.getName=function(){return"gsv"};g.w(cn,yl);cn.prototype.getName=function(){return"gsv"};
cn.prototype.Iw=function(){var a=ql();sk();return a.u&&!1};
cn.prototype.qA=function(a,b,c){return new bn(this.j,b,c)};g.w(dn,qm);dn.prototype.B=function(){var a=this,b=g.La("ima.bridge.getNativeViewability"),c=Sj(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Se(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=Xga(d.opt_nativeViewBounds||{});var h=a.u.C;h.j=f?UTa.clone():Xga(e);a.timestamp=d.opt_nativeTime||-1;ql().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
dn.prototype.getName=function(){return"nis"};g.w(en,yl);en.prototype.getName=function(){return"nis"};
en.prototype.Iw=function(){var a=ql();sk();return a.u&&!1};
en.prototype.qA=function(a,b,c){return new dn(this.j,b,c)};g.w(fn,ul);g.k=fn.prototype;g.k.Gw=function(){return null!=this.u.Rk};
g.k.ON=function(){var a={};this.Da&&(a.mraid=this.Da);this.oa&&(a.mlc=1);a.mtop=this.u.F0;this.J&&(a.mse=this.J);this.Ga&&(a.msc=1);a.mcp=this.u.compatibility;return a};
g.k.iq=function(a){var b=g.Ea.apply(1,arguments);try{return this.u.Rk[a].apply(this.u.Rk,b)}catch(c){Jk(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.oy();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;ql().N=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?Pia(this):Ml(this.B,"load",function(){pk().setTimeout(Ik(292,function(){return Pia(a)}),100)},292);
return!0};
g.k.kL=function(){var a=ql(),b=Uia(this,"getMaxSize");a.j=new Rk(0,b.width,b.height,0)};
g.k.lL=function(){ql().C=Uia(this,"getScreenSize")};
g.k.dispose=function(){Ria(this);ul.prototype.dispose.call(this)};g.k=hn.prototype;g.k.zx=function(a){Ql(a,!1);lia(a)};
g.k.NB=function(){};
g.k.sz=function(a,b,c,d){var e=this;b=c?b:-1;c=this.gN();a=new sm(Yj,a,b,7,this.ZF(),c.u(),c.B());a.Ng=d;Ofa(a.featureSet);Rj(a.featureSet,"queryid",a.Ng);a.RI("");Eha(a,function(){return e.eO.apply(e,g.v(g.Ea.apply(0,arguments)))},function(){return e.DW.apply(e,g.v(g.Ea.apply(0,arguments)))});
(d=nk(Em).j)&&Aha(a,d);a.Zh.Pp&&nk(uia);return a};
g.k.Qu=function(a){switch(a.Fn()){case 0:if(a=nk(Em).j)a=a.j,g.bc(a.D,this),a.V&&this.Jm()&&cha(a);kn();break;case 2:Nm()}};
g.k.Fp=function(){};
g.k.Jm=function(){return!1};
g.k.DW=function(a,b){a.Mp=!0;switch(a.jm()){case 1:$ia(a,b);break;case 2:this.bJ(a)}this.qJ()};
g.k.MW=function(a){var b=a.J(a);b&&(b=b.volume,a.eb=ol(b)&&0<b);Vha(a,0);return ym(a,"start",sl())};
g.k.dw=function(a,b,c){Om(Mm,[a],!sl());return this.lm(a,b,c)};
g.k.lm=function(a,b,c){return ym(a,c,sl())};
g.k.HW=function(a){return qn(a,"firstquartile",1)};
g.k.JW=function(a){a.Ta=!0;return qn(a,"midpoint",2)};
g.k.NW=function(a){return qn(a,"thirdquartile",3)};
g.k.EW=function(a){var b=qn(a,"complete",4);tm(a);return b};
g.k.FW=function(a){a.fh=3;return ym(a,"error",sl())};
g.k.ZQ=function(a,b,c){b=sl();if(a.Nn()&&!b){var d=Kk();a.Eh().N=d}Om(Mm,[a],!b);a.Nn()&&(a.fh=1);return ym(a,c,b)};
g.k.LW=function(a,b){b=this.dw(a,b||{},"skip");tm(a);return b};
g.k.IW=function(a,b){Ql(a,!0);return this.dw(a,b||{},"fullscreen")};
g.k.GW=function(a,b){Ql(a,!1);return this.dw(a,b||{},"exitfullscreen")};
g.k.JI=function(a,b,c){b=a.Eh();var d=Kk();b.Ga=im(b,d,1!=a.fh);Om(Mm,[a],!sl());1==a.fh&&(a.fh=2);return ym(a,c,sl())};
g.k.KW=function(a){Om(Mm,[a],!sl());return a.u()};
g.k.aH=function(a){Om(Mm,[a],!sl());this.TQ(a);tm(a);return a.u()};
g.k.eO=function(){};
g.k.bJ=function(){};
g.k.TQ=function(){};
g.k.nL=function(){};
g.k.qJ=function(){};
g.k.aG=function(){};
g.k.gN=function(){this.j||(this.j=this.aG());return null==this.j?new Vm:new an(this.j)};
g.k.ZF=function(){return new Wm};g.w(rn,jm);rn.prototype.j=function(a){return 4==a.AB()};g.w(sn,km);sn.prototype.j=function(a){a=a.AB();return 3==a||4==a};g.w(tn,Ym);tn.prototype.u=function(){return new sn(this.j)};
tn.prototype.B=function(){return[new rn(this.j)]};g.w(un,Kha);un.prototype.j=function(a){!a||4!==a.vs&&5!==a.vs||(a=Object.assign({},a,{vs:3}));var b=new dm;b.j=em(a,STa);b.u=em(a,TTa);return b};eja.prototype.u=function(){return g.La(this.j)};var Dna={D7:"EMBEDDED_PLAYER_MODE_UNKNOWN",A7:"EMBEDDED_PLAYER_MODE_DEFAULT",C7:"EMBEDDED_PLAYER_MODE_PFP",B7:"EMBEDDED_PLAYER_MODE_PFL"},Vva={K$:"LIVING_ROOM_APP_MODE_UNSPECIFIED",H$:"LIVING_ROOM_APP_MODE_MAIN",G$:"LIVING_ROOM_APP_MODE_KIDS",I$:"LIVING_ROOM_APP_MODE_MUSIC",J$:"LIVING_ROOM_APP_MODE_UNPLUGGED",F$:"LIVING_ROOM_APP_MODE_GAMING"},Xna={Uia:"WEB_DISPLAY_MODE_UNKNOWN",Qia:"WEB_DISPLAY_MODE_BROWSER",Sia:"WEB_DISPLAY_MODE_MINIMAL_UI",Tia:"WEB_DISPLAY_MODE_STANDALONE",Ria:"WEB_DISPLAY_MODE_FULLSCREEN"};g.w(vn,hn);g.k=vn.prototype;g.k.NB=function(a,b){var c=this,d=nk(Em);if(null!=d.j)switch(d.j.getName()){case "nis":var e=ija(this,a,b);break;case "gsv":e=hja(this,a,b);break;case "exc":e=jja(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=bja(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.jm()&&(e.J==g.of&&(e.J=function(f){return c.nL(f)}),gja(this,e,b));
return e};
g.k.nL=function(a){a.u=0;a.ma=0;if("h"==a.C||"n"==a.C){sk();a.Sa&&(sk(),"h"!=on(this)&&on(this));var b=g.La("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Ng)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.La("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Ng)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.La("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Ng)}catch(e){a.u|=4}else a.u|=2;else a.u|=1;a.u||(void 0===c?a.u|=8:null===
c?a.u|=16:g.Se(c)?a.u|=32:null!=c.errorCode&&(a.ma=c.errorCode,a.u|=64));null==c&&(c={});b=c;a.N=0;for(var d in OTa)null==b[d]&&(a.N|=OTa[d]);dja(b,"currentTime");dja(b,"duration");ol(c.volume)&&ol()&&(c.volume*=NaN);return c};
g.k.aG=function(){sk();"h"!=on(this)&&on(this);var a=kja(this);return null!=a?new eja(a):null};
g.k.bJ=function(a){!a.j&&a.Mp&&pn(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.k.TQ=function(a){a.pR&&(a.On()?pn(this,a,"overlay_viewable_end_of_session_impression"):pn(this,a,"overlay_unviewable_impression"),a.pR=!1)};
g.k.eO=function(){};
g.k.qJ=function(){};
g.k.sz=function(a,b,c,d){a=hn.prototype.sz.call(this,a,b,c,d);this.C&&(b=this.D,null==a.D&&(a.D=new Fha),b.j[a.Ng]=a.D,a.D.D=VTa);return a};
g.k.zx=function(a){a&&1==a.jm()&&this.C&&delete this.D.j[a.Ng];return hn.prototype.zx.call(this,a)};
g.k.gN=function(){this.j||(this.j=this.aG());return null==this.j?new Vm:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.I?new tn(this.j):new an(this.j)};
g.k.ZF=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.I?new un:new Wm};
var wn=new dm;wn.j="stopped";wn.u="stopped";var WTa=Hk(193,xn,void 0,aja);g.Ka("Goog_AdSense_Lidar_sendVastEvent",WTa);var XTa=Ik(194,function(a,b){b=void 0===b?{}:b;a=nja(nk(vn),a,b);return pja(a)});
g.Ka("Goog_AdSense_Lidar_getViewability",XTa);var YTa=Hk(195,function(){return qga()});
g.Ka("Goog_AdSense_Lidar_getUrlSignalsArray",YTa);var ZTa=Ik(196,function(){return JSON.stringify(qga())});
g.Ka("Goog_AdSense_Lidar_getUrlSignalsList",ZTa);var Oka=(new Date).getTime();var $Ta="client_dev_mss_url client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.v($Ta);var rja="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),sja=/\bocr\b/;var uja=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.w(An,g.kf);An.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Pk.zj(this.I);delete An.j};
An.prototype.tf=function(){return this.j};Cn.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&Number.isInteger(a)&&this.data_[a]!==b&&(this.data_[a]=b,this.j=-1)};
Cn.prototype.get=function(a){return!!this.data_[a]};g.Va(g.Dn,g.I);g.k=g.Dn.prototype;g.k.start=function(){this.stop();this.C=!1;var a=yja(this),b=zja(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.j=g.cf(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(ica(this.B),20)};
g.k.stop=function(){if(this.isActive()){var a=yja(this),b=zja(this);a&&!b&&this.u.mozRequestAnimationFrame?gf(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.yT=function(){this.C&&this.j&&gf(this.j);this.j=null;this.I.call(this.D,g.Ua())};
g.k.ea=function(){this.stop();g.Dn.He.ea.call(this)};g.Va(g.K,g.I);g.k=g.K.prototype;g.k.Jw=0;g.k.ea=function(){g.K.He.ea.call(this);this.stop();delete this.j;delete this.u};
g.k.start=function(a){this.stop();this.Jw=g.$g(this.B,void 0!==a?a:this.ah)};
g.k.stop=function(){this.isActive()&&g.C.clearTimeout(this.Jw);this.Jw=0};
g.k.isActive=function(){return 0!=this.Jw};
g.k.oL=function(){this.Jw=0;this.j&&this.j.call(this.u)};In.prototype[Symbol.iterator]=function(){return this};
In.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.u.call(void 0,a.value),done:a.done}};io.prototype.Qi=function(){return new jo(this.u())};
io.prototype[Symbol.iterator]=function(){return new ko(this.u())};
io.prototype.j=function(){return new ko(this.u())};
g.w(jo,g.Yl);jo.prototype.next=function(){return this.u.next()};
jo.prototype[Symbol.iterator]=function(){return new ko(this.u)};
jo.prototype.j=function(){return new ko(this.u)};
g.w(ko,io);ko.prototype.next=function(){return this.B.next()};g.k=g.mo.prototype;g.k.Cj=function(){oo(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.u[this.j[b]]);return a};
g.k.Cn=function(){oo(this);return this.j.concat()};
g.k.has=function(a){return no(this.u,a)};
g.k.equals=function(a,b){if(this===a)return!0;if(this.size!=a.size)return!1;b=b||Dja;oo(this);for(var c,d=0;c=this.j[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
g.k.isEmpty=function(){return 0==this.size};
g.k.clear=function(){this.u={};this.tq=this.size=this.j.length=0};
g.k.remove=function(a){return this.delete(a)};
g.k.delete=function(a){return no(this.u,a)?(delete this.u[a],--this.size,this.tq++,this.j.length>2*this.size&&oo(this),!0):!1};
g.k.get=function(a,b){return no(this.u,a)?this.u[a]:b};
g.k.set=function(a,b){no(this.u,a)||(this.size+=1,this.j.push(a),this.tq++);this.u[a]=b};
g.k.forEach=function(a,b){for(var c=this.Cn(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.k.clone=function(){return new g.mo(this)};
g.k.keys=function(){return lo(this.Qi(!0)).j()};
g.k.values=function(){return lo(this.Qi(!1)).j()};
g.k.entries=function(){var a=this;return Aja(this.keys(),function(b){return[b,a.get(b)]})};
g.k.Qi=function(a){oo(this);var b=0,c=this.tq,d=this,e=new g.Yl;e.next=function(){if(c!=d.tq)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)return g.$Z;var f=d.j[b++];return g.Zl(a?f:d.u[f])};
return e};g.Va(g.po,g.kf);g.k=g.po.prototype;g.k.Kc=function(){return 1==this.j};
g.k.BC=function(){this.Bj("begin")};
g.k.Vy=function(){this.Bj("end")};
g.k.onFinish=function(){this.Bj("finish")};
g.k.Bj=function(a){this.dispatchEvent(a)};var aUa=pf(function(){if(g.Gc)return g.yc("10.0");var a=g.zg("DIV"),b=g.Ee?"-webkit":bl?"-moz":g.Gc?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!zTa.test("div"))throw Error("");if("DIV"in BTa)throw Error("");var d=void 0;c=null;var e="";if(b)for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)){if(!zTa.test(l))throw Error("");var f=b[l];if(null!=f){var h=l;if(f instanceof wf)f=xf(f);else if("style"==h.toLowerCase()){if(!g.Pa(f))throw Error("");
f instanceof Jf||(f=xca(f));f=Kf(f)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in ATa)if(f instanceof Af)f=pca(f).toString();else if(f instanceof g.Df)f=g.Ef(f);else if("string"===typeof f)f=g.Gf(f).Xi();else throw Error("");}f.xm&&(f=f.Xi());h=h+'="'+nb(String(f))+'"';e+=" "+h}}var l="<div"+e;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===vTa.div?l+=">":(c=Hca(d),l+=">"+g.Qf(c).toString()+"</div>",c=c.Kt());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Rf(l,c);g.Kca(a,b);return""!=
g.cl(a.firstChild,"transition")});g.Va(qo,g.po);g.k=qo.prototype;g.k.play=function(){if(this.Kc())return!1;this.BC();this.Bj("play");this.startTime=g.Ua();this.j=1;if(aUa())return g.al(this.u,this.J),this.C=g.$g(this.T_,void 0,this),!0;this.AE(!1);return!1};
g.k.T_=function(){g.ll(this.u);Eja(this.u,this.N);g.al(this.u,this.D);this.C=g.$g((0,g.Sa)(this.AE,this,!1),1E3*this.I)};
g.k.stop=function(){this.Kc()&&this.AE(!0)};
g.k.AE=function(a){g.al(this.u,"transition","");g.C.clearTimeout(this.C);g.al(this.u,this.D);this.endTime=g.Ua();this.j=0;if(a)this.Bj("stop");else this.onFinish();this.Vy()};
g.k.ea=function(){this.stop();qo.He.ea.call(this)};
g.k.pause=function(){};var Gja={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};ro("Element","attributes")||ro("Node","attributes");ro("Element","innerHTML")||ro("HTMLElement","innerHTML");ro("Node","nodeName");ro("Node","nodeType");ro("Node","parentNode");ro("Node","childNodes");ro("HTMLElement","style")||ro("Element","style");ro("HTMLStyleElement","sheet");var Mja=Ija("getPropertyValue"),Nja=Ija("setProperty");ro("Element","namespaceURI")||ro("Node","namespaceURI");var Lja={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.uo.prototype.clone=function(){return new g.uo(this.j,this.J,this.B,this.D,this.C,this.I,this.u,this.N)};
g.uo.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.N==a.N};wo.prototype.clone=function(){return new wo(this.start,this.end)};var bUa=new WeakMap;(function(){if(hOa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.tb()))?a[1]:"0"}return FO?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.tb()))?a[0].replace(/_/g,"."):"10"):g.Kq?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.tb()))?a[1]:""):fTa||gTa||hTa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.tb()))?a[1].replace(/_/g,"."):""):""})();var Uja=function(){if(g.Gw)return xo(/Firefox\/([0-9.]+)/);if(g.Gc||g.hs||g.WA)return xc;if(g.oz){if(Nb()||Ob()){var a=xo(/CriOS\/([0-9.]+)/);if(a)return a}return xo(/Chrome\/([0-9.]+)/)}if(g.Ir&&!Nb())return xo(/Version\/([0-9.]+)/);if(eB||ZD){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.tb()))return a[1]+"."+a[2]}else if(g.XA)return(a=xo(/Android\s+([0-9.]+)/))?a:xo(/Version\/([0-9.]+)/);return""}();g.Va(g.zo,g.I);g.k=g.zo.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.wg(a)}return!1};
g.k.wg=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.bc(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
g.k.X=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.J)for(e=0;e<c.length;e++){var h=c[e];Vja(this.j[h+1],this.j[h+2],d)}else{this.C++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)h=c[e],this.j[h+1].apply(this.j[h+2],d)}finally{if(this.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.wg(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.u[a];b&&(b.forEach(this.wg,this),delete this.u[a])}else this.j.length=0,this.u={}};
g.k.ea=function(){g.zo.He.ea.call(this);this.clear();this.B.length=0};g.Ao.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.zh(b))};
g.Ao.prototype.get=function(a){try{var b=this.j.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.Ao.prototype.remove=function(a){this.j.remove(a)};g.Va(Bo,g.Ao);Bo.prototype.set=function(a,b){Bo.He.set.call(this,a,Xja(b))};
Bo.prototype.u=function(a){a=Bo.He.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Bo.prototype.get=function(a){if(a=this.u(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Va(Co,Bo);Co.prototype.set=function(a,b,c){if(b=Xja(b)){if(c){if(c<g.Ua()){Co.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Ua()}Co.He.set.call(this,a,b)};
Co.prototype.u=function(a,b){var c=Co.He.u.call(this,a);if(c)if(!b&&g.Yja(c))Co.prototype.remove.call(this,a);else return c};g.Va(g.Do,Co);g.Va(Eo,Zja);Eo.prototype[Symbol.iterator]=function(){return lo(this.Qi(!0)).j()};
Eo.prototype.clear=function(){var a=Array.from(this);a=g.r(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.Va(Ho,Eo);g.k=Ho.prototype;g.k.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};
g.k.set=function(a,b){try{this.j.setItem(a,b)}catch(c){if(0==this.j.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.k.get=function(a){a=this.j.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeItem(a)};
g.k.Qi=function(a){var b=0,c=this.j,d=new g.Yl;d.next=function(){if(b>=c.length)return g.$Z;var e=c.key(b++);if(a)return g.Zl(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Zl(e)};
return d};
g.k.clear=function(){this.j.clear()};
g.k.key=function(a){return this.j.key(a)};g.Va(Io,Ho);g.Va($ja,Ho);g.Va(Ko,Eo);var aka={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Jo=null;g.k=Ko.prototype;g.k.isAvailable=function(){return!!this.j};
g.k.set=function(a,b){this.j.setAttribute(Lo(a),b);Mo(this)};
g.k.get=function(a){a=this.j.getAttribute(Lo(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeAttribute(Lo(a));Mo(this)};
g.k.Qi=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.Yl;d.next=function(){if(b>=c.length)return g.$Z;var e=c[b++];if(a)return g.Zl(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Zl(e)};
return d};
g.k.clear=function(){for(var a=this.j.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);Mo(this)};g.Va(No,Eo);No.prototype.set=function(a,b){this.u.set(this.j+a,b)};
No.prototype.get=function(a){return this.u.get(this.j+a)};
No.prototype.remove=function(a){this.u.remove(this.j+a)};
No.prototype.Qi=function(a){var b=this.u[Symbol.iterator](),c=this,d=new g.Yl;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.j.length)!=c.j;){e=b.next();if(e.done)return e;e=e.value}return g.Zl(a?e.slice(c.j.length):c.u.get(e))};
return d};Po.prototype.getKey=function(){return this.j};
Po.prototype.getValue=function(){return this.kd};
Po.prototype.clone=function(){return new Po(this.j,this.kd)};g.k=Qo.prototype;g.k.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(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<d>>1;){var f=2*a+1,h=2*a+2;f=h<d&&b[h].getKey()<b[f].getKey()?h:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.Cj=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.Cn=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.k.clone=function(){return new Qo(this)};
g.k.isEmpty=function(){return 0===this.j.length};
g.k.clear=function(){this.j.length=0};g.w(Ro,Qo);Ro.prototype.enqueue=function(a,b){bka(this,a,b)};Ma(So);So.prototype.j=0;/*


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
var Uo="@@redux/INIT"+To(),gka="@@redux/REPLACE"+To();var hka="function"===typeof Symbol&&Symbol.observable||"@@observable";g.w(Vo,g.F);Vo.prototype.getType=function(){return nd(this,11,0)};
g.w(Wo,g.F);Wo.prototype.getKey=function(){return Naa(this,3)};
var ika=[2,13,14],HHa=[Vo,2,nTa,4,RZ,7,SZ,9,SZ,10,SZ,11,oTa,12,SZ,13,nTa,14,g.PZ,[Wo,1,RZ,2,RZ,3,RZ,4,RZ,5,SZ],15,g.OZ,16,g.OZ,17,SZ,1,oTa,3,g.OZ,5,g.OZ,6,g.OZ,8,RZ];g.w(jka,g.F);g.w(Yo,g.F);Yo.prototype.getKey=function(){return g.kd(this,1)};
Yo.prototype.getValue=function(){return g.kd(this,2===sd(this,cUa)?2:-1)};
Yo.prototype.setValue=function(a){return g.td(this,2,cUa,a)};
var cUa=[2,3,4,5,6];g.w(Zo,g.F);g.w($o,g.F);g.w(lka,g.F);var kka=[2];g.w(g.ap,g.F);g.ap.prototype.tp=da(1);g.ap.prototype.getPlayerType=function(){return g.kd(this,36)};
g.ap.prototype.setHomeGroupInfo=function(a){return wd(this,lka,81,a)};
var mka=[9,66,24,32,86,100,101],Tva={Nha:0,Lia:1,Xia:32,cja:61,hja:67,eja:86,Wia:42,Yia:60,Pia:62,bja:73,aja:76,fja:88,gja:90,ija:41,jja:69,kja:70,lja:71,bda:2,cda:27,ANDROID:3,D2:54,E2:14,L2:91,F2:55,G2:24,H2:20,I2:18,K2:21,N2:30,Q2:29,R2:28,S2:34,M2:36,J2:38,IOS:5,w9:15,G9:92,x9:40,z9:25,A9:17,B9:19,C9:64,D9:66,E9:26,I9:22,J9:33,K9:68,L9:35,F9:53,H9:37,y9:39,xha:7,yha:57,zha:43,Bha:59,Aha:93,P2:74,Cha:75,Dha:85,Eha:65,Gha:80,Hha:8,vha:10,Kha:58,Jha:63,Fha:72,O2:23,sja:11,tja:13,L3:12,wha:16,Via:56,
dja:31,yca:77,w8:84,Zia:87,y8:89,x8:94};g.w(bp,g.F);var nka=[15,26,28];g.w(cp,g.F);cp.prototype.setToken=function(a){return g.E(this,2,a)};g.w(dp,g.F);dp.prototype.setSafetyMode=function(a){return g.E(this,5,a)};
var oka=[12];g.w(ep,g.F);var pka=[12];g.w(fp,g.F);g.w(gp,g.F);gp.prototype.getKey=function(){return nd(this,1,"")};
gp.prototype.getValue=function(){return nd(this,2,"")};
gp.prototype.setValue=function(a){return g.E(this,2,a)};
var qka=[4,5];g.w(hp,g.F);g.w(ip,g.F);var Kqa=[2,3,4];g.w(jp,g.F);jp.prototype.getMessage=function(){return nd(this,1,"")};g.w(kp,g.F);g.w(lp,g.F);g.w(mp,g.F);var rka=[10,17];g.w(np,g.F);g.w(op,g.F);op.prototype.dl=function(a){g.E(this,1,a)};g.w(pp,g.F);g.w(qp,g.F);qp.prototype.Mh=function(a){g.E(this,3,a)};
g.w(rp,g.F);g.w(ska,g.F);g.w(sp,g.F);g.w(tp,g.F);tp.prototype.Gf=function(){return ud(this,ska,8)};
tp.prototype.PW=function(){return Array.isArray(g.kd(this,8))};
tp.prototype.getVideoData=function(){return ud(this,sp,15)};
tp.prototype.wJ=function(a){wd(this,sp,15,a)};
var tka=[4];g.w(up,g.F);up.prototype.Mh=function(a){g.E(this,2,a)};
g.w(vp,g.F);g.w(wp,g.F);wp.prototype.Mh=function(a){g.E(this,1,a)};
var wka=[3];g.w(xp,g.F);xp.prototype.Mh=function(a){g.E(this,1,a)};
xp.prototype.In=function(){return Array.isArray(g.kd(this,2))};g.w(yp,g.F);yp.prototype.Mh=function(a){g.E(this,1,a)};
yp.prototype.In=function(){return Array.isArray(g.kd(this,2))};g.w(zp,g.F);zp.prototype.Mh=function(a){g.E(this,1,a)};
zp.prototype.In=function(){return Array.isArray(g.kd(this,2))};g.w(Ap,g.F);Ap.prototype.Mh=function(a){g.E(this,1,a)};
Ap.prototype.In=function(){return Array.isArray(g.kd(this,2))};g.w(Bp,g.F);g.w(Cp,g.F);Cp.prototype.Vb=function(){return Bd(this,1)};
Cp.prototype.getVisibilityState=function(){return nd(this,5,0)};
var yka=[16];g.w(Dp,g.F);g.w(Ep,g.F);Ep.prototype.getPlayerType=function(){return nd(this,7,0)};
Ep.prototype.Fh=function(){return nd(this,19,"")};
Ep.prototype.setVideoId=function(a){return g.E(this,19,a)};
g.w(Fp,g.F);Fp.prototype.getId=function(){return nd(this,2,"")};
var zka=[83,68];g.w(Hp,g.F);g.w(Ip,g.F);g.w(Jp,g.F);g.w(Kp,g.F);Kp.prototype.getContext=function(){return ud(this,Jp,33)};
var zu=[23,24,11,6,7,5,2,3,20,21,28,32,37,229,241,45,59,225,288,72,73,78,208,156,202,215,74,76,79,80,111,85,91,97,100,102,105,119,126,127,136,146,148,157,158,159,163,164,168,176,222,383,177,178,179,411,184,188,189,190,191,193,194,195,196,198,199,200,201,203,204,205,206,258,259,260,261,209,226,227,232,233,234,240,247,248,251,254,255,270,278,291,293,300,304,308,309,310,311,313,314,319,321,323,324,328,330,331,332,334,337,338,340,344,348,350,351,352,353,354,355,356,357,358,361,363,364,368,369,370,373,
374,375,378,380,381,388,389,403,412,429,413,414,415,416,417,418,430,423,424,425,426,427,431,117];var Wqa={l9:0,W8:1,c9:2,d9:4,i9:8,e9:16,f9:32,k9:64,j9:128,Y8:256,a9:512,h9:1024,Z8:2048,b9:4096,X8:8192,g9:16384};g.w(Lp,g.F);g.w(Mp,g.F);Mp.prototype.Fh=function(){return g.kd(this,1===sd(this,Ut)?1:-1)};
Mp.prototype.setVideoId=function(a){return g.td(this,1,Ut,a)};
Mp.prototype.getPlaylistId=function(){return g.kd(this,2===sd(this,Ut)?2:-1)};
var Ut=[1,2];g.w(Np,g.F);Np.prototype.getContext=function(){return ud(this,ep,1)};
var Cka=[3];var d_=g.C.window,dUa,eUa,Op=(null==d_?void 0:null==(dUa=d_.yt)?void 0:dUa.config_)||(null==d_?void 0:null==(eUa=d_.ytcfg)?void 0:eUa.data_)||{};g.Ka("yt.config_",Op);var Up=[];var Lka=/^[\w.]*$/,Jka={q:!0,search_query:!0},Ika=String(Yp);var Mka=new function(){var a=window.document;this.j=window;this.u=a};
g.Ka("yt.ads_.signals_.getAdSignalsString",function(a){return Zp(hq(a))});g.Ua();var Pka="XMLHttpRequest"in g.C?function(){return new XMLHttpRequest}:null;var Rka={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL",
"X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},Tka="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.v($Ta)),Yka=!1,Bza=nq;g.w(qq,Za);tq.prototype.then=function(a,b,c){return 1===this.j&&a?(a=a.call(c,this.kd))&&"function"===typeof a.then?a:vq(a):2===this.j&&b?(a=b.call(c,this.kd))&&"function"===typeof a.then?a:uq(a):this};
tq.prototype.getValue=function(){return this.kd};
tq.prototype.$goog_Thenable=!0;var wq=!1;var Iq=eB||ZD;var Ana=/^([0-9\.]+):([0-9\.]+)$/;g.w(Zq,Za);Zq.prototype.name="BiscottiError";g.w(Yq,Za);Yq.prototype.name="BiscottiMissingError";var Ena={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},$q=null;var br=g.La("ytglobal.prefsUserPrefsPrefs_")||{};g.Ka("ytglobal.prefsUserPrefsPrefs_",br);g.k=g.cr.prototype;g.k.get=function(a,b){fr(a);er(a);a=void 0!==br[a]?br[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){fr(a);er(a);if(null==b)throw Error("ExpectedNotNull");br[a]=b.toString()};
g.k.remove=function(a){fr(a);er(a);delete br[a]};
g.k.save=function(){var a=!0;g.Q("web_secure_pref_cookie_killswitch")&&(a=!1);g.yq(this.j,this.dump(),63072E3,this.u,a)};
g.k.clear=function(){g.Yba(br)};
g.k.dump=function(){var a=[],b;for(b in br)a.push(b+"="+encodeURIComponent(String(br[b])));return a.join("&")};
Ma(g.cr);var Nna={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},Yna={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11,
CONN_CELLULAR_5G_NSA:12,CONN_INVALID:31},Zna={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},Pna={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};ir.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.j)try{this.j.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.zh(b))}catch(f){return}else e=escape(b);g.yq(a,e,c,this.u)};
ir.prototype.get=function(a,b){var c=void 0,d=!this.j;if(!d)try{c=this.j.get(a)}catch(e){d=!0}if(d&&(c=g.zq(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
ir.prototype.remove=function(a){this.j&&this.j.remove(a);g.dla(a,"/",this.u)};var e_;e_=window;g.R=e_.ytcsi&&e_.ytcsi.now?e_.ytcsi.now:e_.performance&&e_.performance.timing&&e_.performance.now&&e_.performance.timing.navigationStart?function(){return e_.performance.timing.navigationStart+e_.performance.now()}:function(){return(new Date).getTime()};jr.prototype.Yg=function(a,b){return kr(a,1,b)};g.w(mr,jr);mr.prototype.zj=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.La("yt.scheduler.instance.cancelJob");b?b(a):g.mq(a)}};
mr.prototype.start=function(){var a=g.La("yt.scheduler.instance.start");a&&a()};
mr.prototype.pause=function(){var a=g.La("yt.scheduler.instance.pause");a&&a()};g.Bn=g.nr();var qr=function(){var a;return function(){a||(a=new ir("ytidb"));return a}}();var wr=[],sr,xr=!1;g.w(g.Ar,Error);var f_={},coa=(f_.AUTH_INVALID="No user identifier specified.",f_.EXPLICIT_ABORT="Transaction was explicitly aborted.",f_.IDB_NOT_SUPPORTED="IndexedDB is not supported.",f_.MISSING_INDEX="Index not created.",f_.MISSING_OBJECT_STORES="Object stores not created.",f_.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",f_.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",f_.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",f_.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",f_.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",f_.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",f_.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",f_),g_={},doa=(g_.AUTH_INVALID="ERROR",g_.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",g_.EXPLICIT_ABORT="IGNORED",
g_.IDB_NOT_SUPPORTED="ERROR",g_.MISSING_INDEX="WARNING",g_.MISSING_OBJECT_STORES="ERROR",g_.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",g_.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",g_.QUOTA_EXCEEDED="WARNING",g_.QUOTA_MAYBE_EXCEEDED="WARNING",g_.UNKNOWN_ABORT="WARNING",g_.INCOMPATIBLE_DB_VERSION="WARNING",g_),h_={},eoa=(h_.AUTH_INVALID=!1,h_.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,h_.EXPLICIT_ABORT=!1,h_.IDB_NOT_SUPPORTED=!1,h_.MISSING_INDEX=!1,h_.MISSING_OBJECT_STORES=!1,h_.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,h_.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,h_.QUOTA_EXCEEDED=!1,h_.QUOTA_MAYBE_EXCEEDED=!0,h_.UNKNOWN_ABORT=!0,h_.INCOMPATIBLE_DB_VERSION=!1,h_);g.w(g.Fr,g.Ar);g.w(Gr,g.Fr);g.w(Hr,Error);var foa=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];g.Mr.all=function(a){return new g.Mr(new Lr(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={kt:0};f.kt<a.length;f={kt:f.kt},++f.kt)g.Mr.resolve(a[f.kt]).then(function(h){return function(l){d[h.kt]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
g.Mr.resolve=function(a){return new g.Mr(new Lr(function(b,c){a instanceof g.Mr?a.then(b,c):b(a)}))};
g.Mr.reject=function(a){return new g.Mr(new Lr(function(b,c){c(a)}))};
g.Mr.prototype.then=function(a,b){var c=this,d=null!=a?a:hoa,e=null!=b?b:goa;return new g.Mr(new Lr(function(f,h){"PENDING"===c.state.status?(c.j.push(function(){ioa(c,c,d,f,h)}),c.onRejected.push(function(){joa(c,c,e,f,h)})):"FULFILLED"===c.state.status?ioa(c,c,d,f,h):"REJECTED"===c.state.status&&joa(c,c,e,f,h)}))};
g.Mr.prototype.catch=function(a){return this.then(void 0,a)};g.k=moa.prototype;g.k.advance=function(a){this.cursor.advance(a);return Sr(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return Sr(this.request)};
g.k.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return Sr(this.request)};
g.k.getKey=function(){return this.cursor.key};
g.k.KB=function(){return this.cursor.primaryKey};g.k=noa.prototype;g.k.add=function(a,b,c){return g.Wr(this,[a],{mode:"readwrite",jc:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return g.Wr(this,[a],{mode:"readwrite",jc:!0},function(b){return b.objectStore(a).clear()})};
g.k.close=function(){this.j.close();var a;(null==(a=this.options)?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return g.Wr(this,[a],{mode:"readonly",jc:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return g.Wr(this,[a],{mode:"readwrite",jc:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return g.Wr(this,[a],{mode:"readonly",jc:!0},function(c){return c.objectStore(a).get(b)})};
g.k.objectStoreNames=function(){return Array.from(this.j.objectStoreNames)};
g.k.getName=function(){return this.j.name};
g.k=Tr.prototype;g.k.add=function(a,b){return g.Qr(this.j.add(a,b))};
g.k.autoIncrement=function(){return this.j.autoIncrement};
g.k.clear=function(){return g.Qr(this.j.clear()).then(function(){})};
g.k.count=function(a){return g.Qr(this.j.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?soa(this,a):g.Qr(this.j.delete(a))};
g.k.get=function(a){return g.Qr(this.j.get(a))};
g.k.index=function(a){try{return new yoa(this.j.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new Hr(a,this.j.name);throw b;}};
g.k.getName=function(){return this.j.name};
g.k.keyPath=function(){return this.j.keyPath};
Yr.prototype.abort=function(){this.j.abort();this.u=!0;throw new g.Fr("EXPLICIT_ABORT");};
Yr.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.B.get(a);b||(b=new Tr(a),this.B.set(a,b));return b};
g.k=yoa.prototype;g.k.count=function(a){return g.Qr(this.j.count(a))};
g.k.delete=function(a){return g.bs(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.k.get=function(a){return g.Qr(this.j.get(a))};
g.k.getKey=function(a){return g.Qr(this.j.getKey(a))};
g.k.keyPath=function(){return this.j.keyPath};
g.k.unique=function(){return this.j.unique};
g.k=zoa.prototype;g.k.advance=function(a){this.cursor.advance(a);return as(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return as(this.request)};
g.k.delete=function(){return g.Qr(this.cursor.delete()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.KB=function(){return this.cursor.primaryKey};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return g.Qr(this.cursor.update(a))};ds.prototype.B=function(a,b,c){c=void 0===c?{}:c;return Boa(a,b,c)};
ds.prototype.delete=function(a){a=void 0===a?{}:a;return cs(this.name,a)};
ds.prototype.open=function(){function a(){var f,h,l,m,n,p,q,t,u,x;return g.B(function(y){switch(y.j){case 1:return h=null!=(f=Error().stack)?f:"",g.wa(y,2),g.A(y,c.B(c.name,c.options.version,e),4);case 4:l=y.u;for(var z=c.options,D=[],H=g.r(Object.keys(z.gs)),G=H.next();!G.done;G=H.next()){G=G.value;var L=z.gs[G],aa=void 0===L.l0?Number.MAX_VALUE:L.l0;!(l.j.version>=L.Ro)||l.j.version>=aa||l.j.objectStoreNames.contains(G)||D.push(G)}m=D;if(0===m.length){y.Ra(5);break}n=Object.keys(c.options.gs);p=
l.objectStoreNames();if(c.I<g.Rp("ytidb_reopen_db_retries",0))return c.I++,l.close(),yr(new g.Fr("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),y.return(a());if(!(c.D<g.Rp("ytidb_remake_db_retries",1))){y.Ra(6);break}c.D++;if(!g.Q("ytidb_remake_db_enable_backoff_delay")){y.Ra(7);break}return g.A(y,Coa(c.u),8);case 8:c.u*=2;case 7:return g.A(y,c.delete(),9);case 9:return yr(new g.Fr("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,
foundObjectStores:p})),y.return(a());case 6:throw new Gr(p,n);case 5:return y.return(l);case 2:q=g.ya(y);if(q instanceof DOMException?"VersionError"!==q.name:"DOMError"in self&&q instanceof DOMError?"VersionError"!==q.name:!(q instanceof Object&&"message"in q)||"An attempt was made to open a database using a lower version than the existing version."!==q.message){y.Ra(10);break}return g.A(y,c.B(c.name,void 0,Object.assign({},e,{upgrade:void 0})),11);case 11:t=y.u;u=t.j.version;if(void 0!==c.options.version&&
u>c.options.version+1)throw t.close(),c.C=!1,Doa(c,u);return y.return(t);case 10:throw b(),q instanceof Error&&!g.Q("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),Jr(q,c.name,"",null!=(x=c.options.version)?x:-1);}})}
function b(){c.j===d&&(c.j=void 0)}
var c=this;if(!this.C)throw Doa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,P0:b,upgrade:this.options.upgrade};return this.j=d=a()};var fs=new ds("YtIdbMeta",{gs:{databases:{Ro:1}},upgrade:function(a,b){b(1)&&g.Ur(a,"databases",{keyPath:"actualName"})}});var js,is=new function(){}(new function(){});new g.qi;g.k=ns.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(ms(this)&&this.Se){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Rf.set(d,this.Re).then(function(e){d.id=e;c.Nf.tf()&&os(c,d)}).catch(function(e){os(c,d);
ps(c,e)})}else this.qo(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(ms(this)&&this.Se){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.fb&&this.fb("nwl_skip_retry")&&(e.skipRetry=c);if(this.Nf.tf()||this.fb&&this.fb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.B(function(m){if(1==m.j)return g.A(m,d.Rf.set(e,d.Re).catch(function(n){ps(d,n)}),2);
f(h,l);g.va(m)})}}this.qo(a,b,e.skipRetry)}else this.Rf.set(e,this.Re).catch(function(h){d.qo(a,b,e.skipRetry);
ps(d,h)})}else this.qo(a,b,this.fb&&this.fb("nwl_skip_retry")&&c)};
g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(ms(this)&&this.Se){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.Rf.wu(d.id,c.Re):e=!0;c.Nf.Un&&c.fb&&c.fb("vss_network_hint")&&c.Nf.Un(!0);f(h,l)};
this.qo(d.url,d.options);this.Rf.set(d,this.Re).then(function(h){d.id=h;e&&c.Rf.wu(d.id,c.Re)}).catch(function(h){ps(c,h)})}else this.qo(a,b)};
g.k.Oz=function(){var a=this;if(!ms(this))throw g.Kr("throttleSend");this.j||(this.j=this.Pk.Yg(function(){var b;return g.B(function(c){if(1==c.j)return g.A(c,a.Rf.SN("NEW",a.Re),2);if(3!=c.j)return b=c.u,b?g.A(c,os(a,b),3):(a.OM(),c.return());a.j&&(a.j=0,a.Oz());g.va(c)})},this.CR))};
g.k.OM=function(){this.Pk.zj(this.j);this.j=0};rs.prototype.toString=function(){return this.topic};var fUa=g.La("ytPubsub2Pubsub2Instance")||new g.zo;g.zo.prototype.subscribe=g.zo.prototype.subscribe;g.zo.prototype.unsubscribeByKey=g.zo.prototype.wg;g.zo.prototype.publish=g.zo.prototype.X;g.zo.prototype.clear=g.zo.prototype.clear;g.Ka("ytPubsub2Pubsub2Instance",fUa);var vs=g.La("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ka("ytPubsub2Pubsub2SubscribedKeys",vs);var ws=g.La("ytPubsub2Pubsub2TopicToKeys")||{};g.Ka("ytPubsub2Pubsub2TopicToKeys",ws);var Woa=g.La("ytPubsub2Pubsub2IsAsync")||{};
g.Ka("ytPubsub2Pubsub2IsAsync",Woa);g.Ka("ytPubsub2Pubsub2SkipSubKey",null);g.w(zs,ds);zs.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.Ez?Moa:Loa)(a,b,Object.assign({},c))};
zs.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.Ez?Qoa:Noa)(this.name,a)};var Bs;var gUa={},epa=g.As("ServiceWorkerLogsDatabase",{gs:(gUa.SWHealthLog={Ro:1},gUa),Ez:!0,upgrade:function(a,b){b(1)&&g.Zr(g.Ur(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Hs={},kpa=0;Is.prototype.requestComplete=function(a,b){b&&(this.u=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
Is.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.u?!0:null};
Is.prototype.removeParams=function(a){return a.split("?")[0]};
Is.prototype.removeParams=Is.prototype.removeParams;Is.prototype.isEndpointCFR=Is.prototype.isEndpointCFR;Is.prototype.requestComplete=Is.prototype.requestComplete;Is.getInstance=Js;var Ks;var rpa=g.Rp("network_polling_interval",3E4);g.w(Ms,g.kf);g.k=Ms.prototype;g.k.tf=function(){if(g.Q("use_shared_nsm")&&this.j){var a;return null==(a=this.j)?void 0:a.tf()}return this.u};
g.k.Un=function(a){if(g.Q("use_shared_nsm")&&this.j){var b;null!=(b=this.j)&&(b.j=a)}else a!==this.u&&(this.u=a)};
g.k.BX=function(a){!g.Q("use_shared_nsm")&&(this.C=!0,void 0===a?0:a)&&(this.N||qpa(this))};
g.k.PG=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.PV=function(){this.I=!0};
g.k.Ma=function(a,b){return g.Q("use_shared_nsm")&&this.j?this.j.Ma(a,b):g.kf.prototype.Ma.call(this,a,b)};
g.k.uo=function(a){var b=this;if(g.Q("use_shared_nsm")&&this.j){var c=zn(this.j,a);c.then(function(d){g.Q("use_cfr_monitor")&&Js().requestComplete("generate_204",d)});
return c}return this.D?this.D:this.D=new Promise(function(d){var e,f,h,l;return g.B(function(m){switch(m.j){case 1:return e=window.AbortController?new window.AbortController:void 0,h=null==(f=e)?void 0:f.signal,l=!1,g.wa(m,2,3),e&&(b.J=g.Bn.Yg(function(){e.abort()},a||2E4)),g.A(m,fetch("/generate_204",{method:"HEAD",
signal:h}),5);case 5:l=!0;case 3:g.Aa(m);g.Q("use_cfr_monitor")&&Js().requestComplete("generate_204",l);b.D=void 0;b.J&&g.Bn.zj(b.J);l!==b.u&&(b.u=l,b.u&&b.C?b.dispatchEvent("ytnetworkstatus-online"):b.C&&b.dispatchEvent("ytnetworkstatus-offline"));d(l);g.Ba(m,0);break;case 2:g.ya(m),l=!1,m.Ra(3)}})})};
Ms.prototype.sendNetworkCheckRequest=Ms.prototype.uo;Ms.prototype.listen=Ms.prototype.Ma;Ms.prototype.enableErrorFlushing=Ms.prototype.PV;Ms.prototype.getWindowStatus=Ms.prototype.PG;Ms.prototype.monitorNetworkStatusChange=Ms.prototype.BX;Ms.prototype.networkStatusHint=Ms.prototype.Un;Ms.prototype.isNetworkAvailable=Ms.prototype.tf;Ms.getInstance=ppa;g.w(g.Ns,g.kf);g.Ns.prototype.tf=function(){var a=g.La("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.j)():!0};
g.Ns.prototype.Un=function(a){var b=g.La("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);b&&b(a)};
g.Ns.prototype.uo=function(a){var b=this,c;return g.B(function(d){c=g.La("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.j);return g.Q("skip_network_check_if_cfr")&&Js().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Un((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.tf())})):c?d.return(c(a)):d.return(!0)})};var Qs;g.w(Os,ns);Os.prototype.writeThenSend=function(a,b){b||(b={});g.Cr()||(this.Se=!1);ns.prototype.writeThenSend.call(this,a,b)};
Os.prototype.sendThenWrite=function(a,b,c){b||(b={});g.Cr()||(this.Se=!1);ns.prototype.sendThenWrite.call(this,a,b,c)};
Os.prototype.sendAndWrite=function(a,b){b||(b={});g.Cr()||(this.Se=!1);ns.prototype.sendAndWrite.call(this,a,b)};
Os.prototype.awaitInitialization=function(){return this.u.promise};var Ys=0,$s=0,at,Zs=g.C.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,potentialEsfErrorCounter:$s};g.Ka("ytNetworklessLoggingInitializationOptions",Zs);g.bt.prototype.isReady=function(){!this.config_&&Rna()&&(this.config_=g.gr());return!!this.config_};var dqa={appSettingsCaptured:!0,visualElementAttached:!0,visualElementGestured:!0,visualElementHidden:!0,visualElementShown:!0,flowEvent:!0,visualElementStateChanged:!0,playbackAssociated:!0,youThere:!0,accountStateChangeSignedIn:!0,accountStateChangeSignedOut:!0},cqa={latencyActionBaselined:!0,latencyActionInfo:!0,latencyActionTicked:!0,bedrockRepetitiveActionTimed:!0,adsClientStateChange:!0,streamzIncremented:!0,mdxDialAdditionalDataUpdateEvent:!0,tvhtml5WatchKeyEvent:!0,tvhtml5VideoSeek:!0,tokenRefreshEvent:!0,
adNotify:!0,adNotifyFilled:!0,tvhtml5LaunchUrlComponentChanged:!0,bedrockResourceConsumptionSnapshot:!0,deviceStartupMetrics:!0,mdxSignIn:!0,tvhtml5KeyboardLogging:!0,tvhtml5StartupSoundEvent:!0,tvhtml5LiveChatStatus:!0,tvhtml5DeviceStorageStatus:!0,tvhtml5LocalStorage:!0,directSignInEvent:!0,finalPayload:!0,tvhtml5SearchCompleted:!0,tvhtml5KeyboardPerformance:!0,adNotifyFailure:!0,latencyActionSpan:!0,tvhtml5AccountDialogOpened:!0,tvhtml5ApiTest:!0};var hUa=0,dt=g.Ee?"webkit":bl?"moz":g.Gc?"ms":g.WA?"o":"",iUa=g.La("ytDomDomGetNextId")||function(){return++hUa};
g.Ka("ytDomDomGetNextId",iUa);var Cpa={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};ft.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
ft.prototype.CO=function(){return this.event?!1===this.event.returnValue:!1};
ft.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
ft.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var gt=g.C.ytEventsEventsListeners||{};g.Ka("ytEventsEventsListeners",gt);var Fpa=g.C.ytEventsEventsCounter||{count:0};g.Ka("ytEventsEventsCounter",Fpa);var nqa=pf(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Gpa=pf(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var MA=window.ytcsi&&window.ytcsi.now?window.ytcsi.now:window.performance&&window.performance.timing&&window.performance.now&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};g.Va(tt,g.I);tt.prototype.V=function(a){void 0===a.j&&Dpa(a);var b=a.j;void 0===a.u&&Dpa(a);this.j=new g.ag(b,a.u)};
tt.prototype.zp=function(){return this.j||new g.ag};
tt.prototype.W=function(){if(this.j){var a=MA();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]=.5<Math.abs((d-this.D)/this.D)?1:0;for(c=b=0;4>c;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}};
tt.prototype.ea=function(){window.clearInterval(this.N);g.jt(this.Y)};var wt={};var jUa,At,Ct;jUa=g.C.ytPubsubPubsubInstance||new g.zo;At=g.C.ytPubsubPubsubSubscribedKeys||{};Ct=g.C.ytPubsubPubsubTopicToKeys||{};g.Bt=g.C.ytPubsubPubsubIsSynchronous||{};g.zo.prototype.subscribe=g.zo.prototype.subscribe;g.zo.prototype.unsubscribeByKey=g.zo.prototype.wg;g.zo.prototype.publish=g.zo.prototype.X;g.zo.prototype.clear=g.zo.prototype.clear;g.Ka("ytPubsubPubsubInstance",jUa);g.Ka("ytPubsubPubsubTopicToKeys",Ct);g.Ka("ytPubsubPubsubIsSynchronous",g.Bt);
g.Ka("ytPubsubPubsubSubscribedKeys",At);var Gt=g.C.window;Gt.ytExports||(Gt.ytExports={logging:{transport:{leaderQueueLength:0,leaderChosen:!1}}});var Tpa=g.Rp("initial_gel_batch_timeout",2E3),bqa=Math.pow(2,16)-1,Ht=!1,Pt=void 0,Rt=new Npa,Qt=new Npa,Xt=!0,Lt=g.C.ytLoggingTransportGELQueue_||new Map;g.Ka("ytLoggingTransportGELQueue_",Lt);var Nt=new Map,Ot=g.C.ytLoggingTransportGELProtoQueue_||new Map;g.Ka("ytLoggingTransportGELProtoQueue_",Ot);var Wt=g.C.ytLoggingTransportTokensToCttTargetIds_||{};
g.Ka("ytLoggingTransportTokensToCttTargetIds_",Wt);var Vt=g.C.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Ka("ytLoggingTransportTokensToJspbCttTargetIds_",Vt);var Yt=g.C.ytLoggingGelSequenceIdObj_||{};g.Ka("ytLoggingGelSequenceIdObj_",Yt);var gqa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var lqa={};g.w(fu,g.I);fu.prototype.P=function(a,b,c,d,e){c=Wp((0,g.Sa)(c,d||this.Ta));c={target:a,name:b,callback:c};var f;e&&nqa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.I.push(c);return c};
fu.prototype.vc=function(a){for(var b=0;b<this.I.length;b++)if(this.I[b]==a){this.I.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
fu.prototype.ea=function(){g.hu(this);g.I.prototype.ea.call(this)};g.Va(g.iu,g.I);g.iu.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.Le.subscribe(a,b,c)};
g.iu.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.Le.unsubscribe(a,b,c)};
g.iu.prototype.wg=function(a){return this.isDisposed()?!1:this.Le.wg(a)};
g.iu.prototype.X=function(a,b){return this.isDisposed()?!1:this.Le.X.apply(this.Le,arguments)};g.w(g.mu,g.iu);g.k=g.mu.prototype;g.k.cancel=function(){this.B&&(this.B=!1,this.X("dragend",0,0,null));this.u&&(this.u=!1,this.X("hoverend",0,0,null),ou(this),lu(this))};
g.k.pP=function(a){ou(this);nu(this,pu("move"),this.nP);nu(this,pu("out"),this.oP);nu(this,"touchstart",this.YJ);this.j&&nu(this,pu("down"),this.VH);var b=g.kt(a);a=nt(a);this.u=!0;this.X("hoverstart",a.x,a.y,b);this.X("hovermove",a.x,a.y,b)};
g.k.nP=function(a){var b=g.kt(a);a=nt(a);if(this.D){var c=this.D;this.D=null;if(mt(c)==b&&bg(nt(c),a))return}this.X("hovermove",a.x,a.y,b)};
g.k.oP=function(a){var b=nt(a),c=mt(a);try{if(c&&g.Fg(this.I,c)){this.D=a;this.X("hovermove",b.x,b.y,c);return}}catch(d){}ou(this);lu(this);this.u=!1;this.X("hoverend",b.x,b.y,c)};
g.k.DX=function(a){this.pP(a);this.VH(a)};
g.k.VH=function(a){if("number"!==typeof a.button||0==a.button){ou(this);this.C.P(document,pu("move"),this.CX);this.C.P(document,pu("up"),this.JX);var b=g.kt(a);if(g.Ee)nu(this,"dragstart",this.MV);else if(g.ot(a),(g.YB||bl)&&b)a:{for(var c=b;c;){if(Hg(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=nt(a);this.X("dragstart",a.x,a.y,b);this.X("dragmove",a.x,a.y,b)}};
g.k.MV=function(a){g.ot(a)};
g.k.CX=function(a){var b=g.kt(a);b==document&&(b=null);a=nt(a);this.X("hovermove",a.x,a.y,b);this.X("dragmove",a.x,a.y,b)};
g.k.JX=function(a){ou(this);this.B=!1;var b=lt(a),c=g.kt(a);a=nt(a);b&&g.Fg(this.I,b)?(nu(this,pu("move"),this.nP),nu(this,pu("out"),this.oP),nu(this,pu("down"),this.VH),nu(this,"touchstart",this.YJ),this.X("dragend",a.x,a.y,c)):(lu(this),this.u=!1,this.X("dragend",a.x,a.y,c),this.X("hoverend",a.x,a.y,c))};
g.k.YJ=function(a){var b=a.changedTouches[0];b&&(ou(this),nu(this,"touchmove",this.Y0),nu(this,"touchend",this.IR),nu(this,"touchcancel",this.IR),this.J=b.identifier,a=g.kt(a),this.u||(this.u=!0,this.X("hoverstart",b.pageX,b.pageY,a)),this.X("hovermove",b.pageX,b.pageY,a),this.j&&(this.B=!0,this.X("dragstart",b.pageX,b.pageY,a),this.X("dragmove",b.pageX,b.pageY,a)))};
g.k.Y0=function(a){var b=oqa(this,a);b&&(this.j&&g.ot(a),a=g.kt(a),this.X("hovermove",b.pageX,b.pageY,a),this.j&&this.X("dragmove",b.pageX,b.pageY,a))};
g.k.IR=function(a){var b=oqa(this,a);if(b){ou(this);lu(this);this.u=!1;var c=g.kt(a);this.j&&(this.N||g.ot(a),this.B=!1,this.X("dragend",b.pageX,b.pageY,c));this.X("hoverend",b.pageX,b.pageY,c)}};
g.k.ea=function(){this.j&&(g.Ee&&this.I.removeAttribute("draggable"),this.I.style.touchAction="");ou(this);g.iu.prototype.ea.call(this)};qu.prototype.clone=function(){var a=new qu,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Na(c)?g.We(c):c}return a};var yCa=["att/get"],UCa=["embedded_player"],kUa=["share/get_web_player_share_panel"],lUa=["feedback"],mUa=["notification/modify_channel_preference"],VMa=["player"],nUa=["browse/edit_playlist"],oUa=["subscription/subscribe"],pUa=["subscription/unsubscribe"],YMa=["next","unplugged/watch_next"];var Fqa=[{SH:function(a){return"Cannot read property '"+a.key+"'"},
QC:{Error:[{Ih:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Ih:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Ih:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Ih:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{Ih:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Ih:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Ih:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{SH:function(a){return"Cannot call '"+a.key+"'"},
QC:{TypeError:[{Ih:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Ih:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Ih:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Ih:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Ih:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},
{Ih:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{SH:function(a){return a.key+" is not defined"},
QC:{ReferenceError:[{Ih:/(.*) is not defined/,groups:["key"]},{Ih:/Can't find variable: (.*)/,groups:["key"]}]}}];var tqa={Tn:[],Vo:[{callback:qqa,weight:500}]};var ru;var Cu=new g.zo;var wqa=g.C.ytLoggingGelSequenceIdObj_||{};g.Ka("ytLoggingGelSequenceIdObj_",wqa);var Gqa=new Set,Dqa=0,Iqa=0,Hqa=0,Eqa=[],Lqa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Nqa=1;Du.prototype.getAsJson=function(){var a={};void 0!==this.j.trackingParams?a.trackingParams=this.j.trackingParams:(a.veType=this.j.veType,void 0!==this.j.veCounter&&(a.veCounter=this.j.veCounter),void 0!==this.j.elementIndex&&(a.elementIndex=this.j.elementIndex));void 0!==this.j.dataElement&&(a.dataElement=this.j.dataElement.getAsJson());void 0!==this.j.youtubeData&&(a.youtubeData=this.j.youtubeData);return a};
Du.prototype.getAsJspb=function(){var a=new op;void 0!==this.j.trackingParams?a.dl(this.j.trackingParams):(void 0!==this.j.veType&&g.E(a,2,this.j.veType),void 0!==this.j.veCounter&&g.E(a,6,this.j.veCounter),void 0!==this.j.elementIndex&&g.E(a,3,this.j.elementIndex));if(void 0!==this.j.dataElement){var b=this.j.dataElement.getAsJspb();wd(a,op,7,b)}void 0!==this.j.youtubeData&&wd(a,jka,8,this.j.jspbYoutubeData);return a};
Du.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
Du.prototype.isClientVe=function(){return!this.j.trackingParams&&!!this.j.veType};var Fu=Date.now().toString();var i_=g.C.ytLoggingDocDocumentNonce_;i_||(i_=g.Hu(16),g.Ka("ytLoggingDocDocumentNonce_",i_));var Tqa=i_;var sza={BS:0,G3:1,Y3:2,Nba:3,i7:4,Eia:5,Yca:6,Ffa:7,Kea:8,lfa:9,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH"};g.Ka("yt_logging_screen.getRootVeType",Qqa);g.Ka("yt_logging_screen.getCurrentCsn",g.Lu);g.Ka("yt_logging_screen.getCttAuthInfo",Mu);g.Ka("yt_logging_screen.setCurrentScreen",Uqa);g.w(Nu,qs);var Xqa=new rs("screen-created",Nu),Ru=[],Vqa=ara,Su=0;var qUa={F3:3611,L1:27686,N1:85013,O1:23462,Q1:42016,R1:62407,S1:26926,P1:43781,U1:51236,V1:79148,W1:50160,X1:77504,A2:87907,B2:18630,T2:54445,U2:80935,V2:152172,d3:105675,e3:150723,f3:37521,g3:147285,h3:47786,l3:98349,m3:123695,r3:6827,s3:29434,D3:7282,E3:124448,O3:32276,N3:76278,P3:147868,Q3:147869,R3:93911,T3:106531,U3:27259,V3:27262,W3:27263,Z3:21759,a4:27107,b4:62936,d4:49568,f4:38408,g4:80637,h4:68727,i4:68728,j4:80353,l4:80356,m4:74610,n4:45707,o4:83962,p4:83970,q4:46713,r4:89711,s4:74612,
t4:93265,u4:74611,v4:131380,x4:128979,y4:139311,z4:128978,w4:131391,A4:105350,C4:139312,D4:134800,B4:131392,F4:113533,G4:93252,H4:99357,J4:94521,K4:114252,L4:113532,M4:94522,I4:94583,N4:88E3,O4:139580,P4:93253,Q4:93254,R4:94387,S4:94388,T4:93255,U4:97424,E4:72502,V4:110111,W4:76019,Y4:117092,Z4:117093,X4:89431,a5:110466,b5:77240,c5:60508,d5:148123,e5:148124,f5:137401,g5:137402,h5:137046,i5:73393,j5:113534,k5:92098,l5:131381,m5:84517,n5:83759,o5:80357,p5:86113,q5:72598,r5:72733,s5:107349,t5:124275,
u5:118203,v5:133275,w5:152569,x5:133274,y5:133272,z5:133273,A5:133276,B5:144507,C5:143247,D5:143248,E5:143249,F5:143250,G5:143251,H5:144401,J5:117431,I5:133797,K5:128572,L5:133405,M5:117429,N5:117430,O5:117432,P5:120080,Q5:117259,R5:121692,S5:145656,T5:145655,U5:145653,V5:145654,W5:145657,X5:132972,Y5:133051,Z5:133658,a6:132971,b6:97615,d6:143359,c6:143356,f6:143361,e6:143358,h6:143360,g6:143357,i6:142303,j6:143353,k6:143354,l6:144479,m6:143355,n6:31402,p6:133624,q6:146477,r6:133623,s6:133622,o6:133621,
t6:84774,u6:95117,v6:150497,w6:98930,x6:98931,y6:98932,z6:43347,A6:129889,B6:149123,C6:45474,D6:100352,E6:84758,F6:98443,G6:117985,H6:74613,I6:74614,J6:64502,K6:136032,L6:74615,M6:74616,N6:122224,O6:74617,P6:77820,Q6:74618,R6:93278,S6:93274,T6:93275,U6:93276,V6:22110,W6:29433,Z6:133798,c7:132295,f7:120541,j7:82047,k7:113550,l7:75836,m7:75837,q7:42352,u7:84512,v7:76065,x7:75989,F7:16623,G7:32594,H7:27240,J7:32633,V7:74858,Y7:3945,X7:16989,Z7:45520,a8:25488,b8:25492,c8:25494,e8:55760,f8:14057,g8:18451,
h8:57204,i8:57203,j8:17897,k8:57205,l8:18198,m8:17898,n8:17909,o8:43980,p8:46220,A8:11721,B8:147994,D8:49954,I8:96369,J8:3854,Q8:151633,T8:56251,U8:25624,V8:152036,r9:16906,s9:99999,u9:68172,v9:27068,O9:47973,P9:72773,Q9:26970,R9:26971,S9:96805,T9:17752,U9:73233,V9:109512,W9:22256,X9:14115,Y9:22696,Z9:89278,a$:89277,b$:109513,c$:43278,d$:43459,e$:43464,f$:89279,g$:43717,h$:55764,i$:22255,j$:147912,k$:89281,l$:40963,m$:43277,n$:43442,p$:91824,r$:120137,t$:96367,u$:36850,v$:72694,w$:37414,x$:36851,
z$:124863,y$:121343,A$:73491,B$:54473,C$:43375,D$:46674,Q$:143815,R$:139095,S$:144402,T$:149968,U$:149969,V$:32473,baa:72901,caa:72906,daa:50947,eaa:50612,faa:50613,haa:50942,iaa:84938,jaa:84943,maa:84939,naa:84941,oaa:84944,paa:84940,qaa:84942,raa:35585,saa:51926,taa:79983,uaa:63238,vaa:18921,waa:63241,xaa:57893,yaa:41182,zaa:135732,Aaa:33424,Baa:22207,Caa:42993,Daa:36229,Eaa:22206,Faa:22205,Gaa:18993,Haa:19001,Iaa:18990,Jaa:18991,Kaa:18997,Laa:18725,Maa:19003,Naa:36874,Oaa:44763,Paa:33427,Qaa:67793,
Raa:22182,Saa:37091,Taa:34650,Uaa:50617,Vaa:47261,Waa:22287,Xaa:25144,Yaa:97917,aba:62397,bba:150871,cba:150874,dba:125598,eba:137935,fba:36961,hba:108035,jba:27426,kba:27857,lba:27846,mba:27854,nba:69692,oba:61411,pba:39299,qba:38696,rba:62520,tba:36382,uba:108701,vba:50663,wba:36387,xba:14908,yba:37533,zba:105443,Aba:61635,Bba:62274,Cba:133818,Dba:65702,Eba:65703,Fba:65701,Gba:76256,Iba:37671,Jba:49953,Qba:36216,Rba:28237,Sba:39553,Tba:29222,Uba:26107,Vba:38050,Wba:26108,Yba:120745,Xba:26109,Zba:26110,
aca:66881,bca:28236,cca:14586,hca:57929,jca:74723,kca:44098,rca:44099,vca:23528,wca:61699,tca:134104,uca:134103,xca:59149,zca:101951,Aca:97346,Dca:118051,Eca:95102,Fca:64882,Gca:119505,Hca:63595,Ica:63349,Jca:95101,Kca:75240,Lca:27039,Nca:68823,Oca:21537,Pca:83464,Qca:75707,Vca:83113,Wca:101952,Xca:101953,Zca:79610,ida:125755,jda:24402,kda:24400,lda:32925,mda:57173,oda:122502,pda:145268,qda:138480,rda:64423,sda:64424,tda:33986,uda:100828,vda:129089,wda:21409,Mda:135155,Nda:135156,Oda:135157,Pda:135158,
Qda:135159,Rda:135160,Sda:135161,Tda:135162,Uda:135163,Vda:135164,Wda:135165,Xda:135166,Jda:11070,Kda:11074,Lda:17880,Yda:14001,aea:30709,bea:30707,cea:30711,dea:30710,eea:30708,Zda:26984,fea:146143,gea:63648,hea:63649,lea:51879,qea:111059,sea:5754,tea:20445,vea:151308,wea:151152,Aea:130975,zea:130976,Bea:110386,Dea:113746,Eea:66557,Lea:17310,Mea:28631,Pea:21589,Qea:68012,Rea:60480,Sea:138664,Tea:141121,Uea:31571,Vea:141978,Zea:150105,afa:150106,bfa:150107,cfa:150108,dfa:76980,ifa:41577,jfa:45469,
pfa:38669,qfa:13768,rfa:13777,ufa:141842,vfa:62985,wfa:4724,xfa:59369,yfa:43927,zfa:43928,Cfa:12924,Efa:100355,Hfa:56219,Ifa:27669,Jfa:10337,Gfa:47896,Kfa:122629,Ofa:139723,Nfa:139722,Pfa:121258,Qfa:107598,Rfa:127991,Sfa:96639,Tfa:107536,Ufa:130169,Vfa:96661,Wfa:145188,Xfa:96658,Yfa:116646,Zfa:121122,aga:96660,cga:127738,dga:127083,ega:147842,fga:104443,gga:96659,hga:147595,iga:106442,kga:134840,qga:63667,rga:63668,tga:63669,vga:130686,Dga:147036,Fga:78314,Gga:147799,Oga:148649,Qga:55761,Rga:127098,
Sga:134841,Wga:96368,Xga:67374,Yga:48992,bha:146176,cha:49956,hha:31961,iha:26388,oha:23811,pha:5E4,qha:126250,sha:96370,tha:47355,uha:47356,Iha:37935,Lha:45521,Mha:21760,Oha:83769,Pha:49977,Qha:49974,Rha:93497,Sha:93498,Tha:34325,Vha:140759,Wha:115803,Xha:123707,Yha:100081,Zha:35309,aia:68314,bia:25602,cia:100339,dia:143516,fia:59018,gia:18248,hia:50625,iia:9729,jia:37168,kia:37169,lia:21667,mia:16749,oia:18635,pia:39305,qia:18046,sia:53969,tia:8213,via:93926,yia:102852,zia:110099,Aia:22678,Bia:69076,
Cia:137575,Fia:139224,Gia:100856,Iia:17736,Jia:3832,Kia:147111,Nia:55759,Oia:64031,oja:93044,qja:93045,uja:34388,vja:17657,wja:17655,xja:39579,yja:39578,zja:77448,Aja:8196,Bja:11357,Cja:69877,Dja:8197,Fja:82039};Wu.prototype.clear=function(){this.u.clear();this.j.clear();this.B.clear()};
Ma(Wu);var Yu;g.Xu=pf(function(){var a=new Io;return a.isAvailable()?new g.Do(a):null});
Yu=pf(function(){var a=new $ja;return a.isAvailable()?new g.Do(a):null});var dra=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,era=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,hra={};g.w(hv,g.I);var pra=!1;g.w(mv,g.I);mv.prototype.bH=function(){var a=this.j().JG("SLOT_TYPE_PLAYER_BYTES",1),b=this.Qa.get().Gf(1).clientPlaybackNonce,c=!1;a=g.r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="SLOT_TYPE_PLAYER_BYTES"===d.slotType&&d.Lb instanceof lv?d.Lb.Do:void 0;e&&e===b&&(c&&T("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
mv.prototype.Fi=function(a,b,c,d,e,f){var h=this,l=this.Qa.get().Gf(1);l.Yq?this.Ca.get().xr():(iv(this.Pb.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return nra(h.Cd.get(),d,e,a,b,f,l)}),USa(this.pF))};
mv.prototype.Vk=function(){};var j_={},zv=(j_.AD_MARKER="ytp-ad-progress",j_.CHAPTER_MARKER="ytp-chapter-marker",j_.TIME_MARKER="ytp-time-marker",j_);var ZNa=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),sra=RegExp("^http://0\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.l2gfe\\.[a-z0-9_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?/|^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://((?:uytfe\\.corp|dev-uytfe\\.corp|uytfe\\.sandbox)\\.google\\.com/|([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa)\\.youtube\\.com/|(tv|tv-green-qa|tv-release-qa)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/|m?web-ppg\\.corp\\.google\\.com/)"),
$Na=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),zra=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),
xra=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),ura=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|(photos\\-image\\-(dev|qa)(-auth)?\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"),
aOa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),vra=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),tra=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|(photos\\-image\\-(dev|qa)(-auth)?\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
Pva=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"),
Ova=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|books\\.googleusercontent\\.com|play\\-books\\-autopush\\-sandbox\\.googleusercontent\\.com|play\\-books\\-canary\\-sandbox\\.googleusercontent\\.com|play\\-books\\-internal\\-sandbox\\.googleusercontent\\.com|play\\-books\\-staging\\-sandbox\\.googleusercontent\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|stadia\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"),
rUa=RegExp("^(https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://stadia\\.google\\.com|https://one\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|canary|internal|staging)-sandbox)\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.Av.prototype.getId=function(){return this.id};
g.Av.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+Dra(this.start)+", "+Dra(this.end)+"]"};
g.Av.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a===this.end&&this.start===this.end)&&(null==b||a<b&&b<=this.end)};
var Cra=1;g.Av.prototype.getId=g.Av.prototype.getId;g.w(Ev,g.Av);Ev.prototype.deactivate=function(){this.B=!0};
Ev.prototype.Ox=function(){return this.end-this.start};var k_;var sUa=g.tb(),tUa=sUa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!tUa||2>tUa.length)k_=void 0;else{var l_=sUa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);k_=l_&&6==l_.length?Number(l_[5].replace("_",".")):0}var $D=k_,NJ=0<=$D;NJ&&0<=g.tb().search("Safari")&&g.tb().search("Version");g.w(Jv,Za);g.w(Kv,qs);g.w(Ira,qs);var Pra=new rs("aft-recorded",Kv),uUa=new rs("timing-sent",Ira);var m_=window,Uv=m_.performance||m_.mozPerformance||m_.msPerformance||m_.webkitPerformance||new Jra;var Ora=!1,Fw={'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"},
$ra=(0,g.Sa)(Uv.clearResourceTimings||Uv.webkitClearResourceTimings||Uv.mozClearResourceTimings||Uv.msClearResourceTimings||Uv.oClearResourceTimings||g.of,Uv);var n_={},Ura=(n_.auto_search="LATENCY_ACTION_AUTO_SEARCH",n_.ad_to_ad="LATENCY_ACTION_AD_TO_AD",n_.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",n_["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",n_.app_startup="LATENCY_ACTION_APP_STARTUP",n_["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",n_["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",n_["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",n_["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",
n_.browse="LATENCY_ACTION_BROWSE",n_.cast_splash="LATENCY_ACTION_CAST_SPLASH",n_.channels="LATENCY_ACTION_CHANNELS",n_.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",n_["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",n_["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",n_["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",n_["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",n_["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",
n_["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",n_["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",n_["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",n_["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",n_["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",n_["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",n_.chips="LATENCY_ACTION_CHIPS",n_["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",
n_["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",n_["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",n_.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",n_.embed="LATENCY_ACTION_EMBED",n_.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",n_.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",n_.explore="LATENCY_ACTION_EXPLORE",n_.home="LATENCY_ACTION_HOME",n_.library="LATENCY_ACTION_LIBRARY",n_.live="LATENCY_ACTION_LIVE",
n_.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",n_.onboarding="LATENCY_ACTION_ONBOARDING",n_.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",n_.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",n_.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",n_.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",n_["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",n_["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",n_.prebuffer="LATENCY_ACTION_PREBUFFER",
n_.prefetch="LATENCY_ACTION_PREFETCH",n_.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",n_.profile_switcher="LATENCY_ACTION_LOGIN",n_.reel_watch="LATENCY_ACTION_REEL_WATCH",n_.results="LATENCY_ACTION_RESULTS",n_.search_ui="LATENCY_ACTION_SEARCH_UI",n_.search_suggest="LATENCY_ACTION_SUGGEST",n_.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",n_.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",n_.seek="LATENCY_ACTION_PLAYER_SEEK",n_.settings="LATENCY_ACTION_SETTINGS",n_.store="LATENCY_ACTION_STORE",
n_.tenx="LATENCY_ACTION_TENX",n_.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",n_.watch="LATENCY_ACTION_WATCH",n_.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",n_["watch,watch7"]="LATENCY_ACTION_WATCH",n_["watch,watch7_html5"]="LATENCY_ACTION_WATCH",n_["watch,watch7ad"]="LATENCY_ACTION_WATCH",n_["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",n_.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",n_.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",n_["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",n_["video.comments"]=
"LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",n_["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",n_["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",n_["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",n_["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",n_["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",n_["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",n_["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",
n_.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",n_.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",n_.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",n_),o_={},Vra=(o_.ad_allowed="adTypesAllowed",o_.yt_abt="adBreakType",o_.ad_cpn="adClientPlaybackNonce",o_.ad_docid="adVideoId",o_.yt_ad_an="adNetworks",o_.ad_at="adType",o_.aida="appInstallDataAgeMs",o_.browse_id="browseId",o_.p="httpProtocol",o_.t="transportProtocol",o_.cs="commandSource",o_.cpn="clientPlaybackNonce",
o_.ccs="creatorInfo.creatorCanaryState",o_.ctop="creatorInfo.topEntityType",o_.csn="clientScreenNonce",o_.docid="videoId",o_.GetHome_rid="requestIds",o_.GetSearch_rid="requestIds",o_.GetPlayer_rid="requestIds",o_.GetWatchNext_rid="requestIds",o_.GetBrowse_rid="requestIds",o_.GetLibrary_rid="requestIds",o_.is_continuation="isContinuation",o_.is_nav="isNavigation",o_.b_p="kabukiInfo.browseParams",o_.is_prefetch="kabukiInfo.isPrefetch",o_.is_secondary_nav="kabukiInfo.isSecondaryNav",o_.nav_type="kabukiInfo.navigationType",
o_.prev_browse_id="kabukiInfo.prevBrowseId",o_.query_source="kabukiInfo.querySource",o_.voz_type="kabukiInfo.vozType",o_.yt_lt="loadType",o_.mver="creatorInfo.measurementVersion",o_.yt_ad="isMonetized",o_.nr="webInfo.navigationReason",o_.nrsu="navigationRequestedSameUrl",o_.pnt="performanceNavigationTiming",o_.prt="playbackRequiresTap",o_.plt="playerInfo.playbackType",o_.pis="playerInfo.playerInitializedState",o_.paused="playerInfo.isPausedOnLoad",o_.yt_pt="playerType",o_.fmt="playerInfo.itag",o_.yt_pl=
"watchInfo.isPlaylist",o_.yt_pre="playerInfo.preloadType",o_.yt_ad_pr="prerollAllowed",o_.pa="previousAction",o_.yt_red="isRedSubscriber",o_.rce="mwebInfo.responseContentEncoding",o_.rc="resourceInfo.resourceCache",o_.scrh="screenHeight",o_.scrw="screenWidth",o_.st="serverTimeMs",o_.ssdm="shellStartupDurationMs",o_.br_trs="tvInfo.bedrockTriggerState",o_.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",o_.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",o_.label="tvInfo.label",o_.is_mdx=
"tvInfo.isMdx",o_.preloaded="tvInfo.isPreloaded",o_.aac_type="tvInfo.authAccessCredentialType",o_.upg_player_vis="playerInfo.visibilityState",o_.query="unpluggedInfo.query",o_.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",o_.yt_vst="videoStreamType",o_.vph="viewportHeight",o_.vpw="viewportWidth",o_.yt_vis="isVisible",o_.rcl="mwebInfo.responseContentLength",o_.GetSettings_rid="requestIds",o_.GetTrending_rid="requestIds",o_.GetMusicSearchSuggestions_rid="requestIds",o_.REQUEST_ID="requestIds",
o_),Wra="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(" "),p_={},Xra=(p_.ccs="CANARY_STATE_",p_.mver="MEASUREMENT_VERSION_",p_.pis="PLAYER_INITIALIZED_STATE_",p_.yt_pt="LATENCY_PLAYER_",p_.pa="LATENCY_ACTION_",p_.ctop=
"TOP_ENTITY_TYPE_",p_.yt_vst="VIDEO_STREAM_TYPE_",p_),Yra="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_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_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_SHOPPING_IN_APP:124,LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,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_CAST:120,LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,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_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_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_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_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_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_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_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_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_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_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 qw={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};qw[qw.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";
qw[qw.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";qw[qw.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";var rw={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};rw[rw.CONN_INVALID]="CONN_INVALID";rw[rw.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";rw[rw.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";
rw[rw.CONN_WIFI_METERED]="CONN_WIFI_METERED";rw[rw.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";rw[rw.CONN_DISCO]="CONN_DISCO";rw[rw.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";rw[rw.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";rw[rw.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";rw[rw.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";rw[rw.CONN_WIFI]="CONN_WIFI";rw[rw.CONN_NONE]="CONN_NONE";rw[rw.CONN_UNKNOWN]="CONN_UNKNOWN";rw[rw.CONN_DEFAULT]="CONN_DEFAULT";
var tw={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};tw[tw.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
tw[tw.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";tw[tw.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";tw[tw.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";tw[tw.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";tw[tw.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";tw[tw.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
tw[tw.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";tw[tw.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";tw[tw.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";tw[tw.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";tw[tw.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";tw[tw.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";tw[tw.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";tw[tw.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
tw[tw.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";tw[tw.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";tw[tw.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";tw[tw.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";tw[tw.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";tw[tw.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";tw[tw.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";tw[tw.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
tw[tw.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";tw[tw.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";tw[tw.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";tw[tw.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var uw={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};
uw[uw.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";uw[uw.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";uw[uw.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";uw[uw.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";uw[uw.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";uw[uw.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";uw[uw.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";uw[uw.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var vw={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};vw[vw.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";vw[vw.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";vw[vw.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";vw[vw.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var ww={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
ww[ww.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";ww[ww.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var xw={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};xw[xw.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";xw[xw.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";xw[xw.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
xw[xw.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";xw[xw.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";xw[xw.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var yw={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};yw[yw.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";yw[yw.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";yw[yw.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";yw[yw.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var zw={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};zw[zw.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";zw[zw.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";zw[zw.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var Aw={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};Aw[Aw.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
Aw[Aw.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";Aw[Aw.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var asa="actionVisualElement spinnerInfo resourceInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo prefetchInfo accelerationSession webInfo tvInfo kabukiInfo mwebInfo musicInfo".split(" ");var iw=g.C.ytLoggingLatencyUsageStats_||{};g.Ka("ytLoggingLatencyUsageStats_",iw);gw.prototype.tick=function(a,b,c,d){jw(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.Q("web_csi_via_jspb")?(d=new Hp,g.E(d,1,a),g.E(d,2,b),a=new Kp,xd(a,Hp,5,zu,d),yu(a,c)):g.vr("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
gw.prototype.info=function(a,b,c){var d=Object.keys(a).join("");jw(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.vr("latencyActionInfo",a,{cttAuthInfo:c}))};
gw.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e<a.toJSON().length;e++)void 0!==a.toJSON()[e]&&(d=0===e?d.concat(""+e):d.concat("_"+e));jw(this,"info_"+d+"_"+b)||(g.E(a,2,b),b={cttAuthInfo:c},c=new Kp,xd(c,Ep,7,zu,a),yu(c,b))};
gw.prototype.span=function(a,b,c){var d=Object.keys(a).join("");jw(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.vr("latencyActionSpan",a,{cttAuthInfo:c}))};var q_=window;q_.ytcsi&&(q_.ytcsi.info=g.pw,q_.ytcsi.tick=mw);var rxa={n7:1,I7:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var EO=16/9,vUa=[.25,.5,.75,1,1.25,1.5,1.75,2],wUa=vUa.concat([3,4,5,6,7,8,9,10,15]);var xUa=["h","H"],yUa=["9","("],zUa=["9h","(h"],AUa=["8","*"],BUa=["a","A"],CUa=["o","O"],DUa=["m","M"],EUa=["mac3","MAC3"],FUa=["meac3","MEAC3"],r_={},Wua=(r_.h=xUa,r_.H=xUa,r_["9"]=yUa,r_["("]=yUa,r_["9h"]=zUa,r_["(h"]=zUa,r_["8"]=AUa,r_["*"]=AUa,r_.a=BUa,r_.A=BUa,r_.o=CUa,r_.O=CUa,r_.m=DUa,r_.M=DUa,r_.mac3=EUa,r_.MAC3=EUa,r_.meac3=FUa,r_.MEAC3=FUa,r_);g.Jw.prototype.getLanguageInfo=function(){return this.Fc};
g.Jw.prototype.toString=function(){return this.Fc.name};
g.Jw.prototype.getLanguageInfo=g.Jw.prototype.getLanguageInfo;var s_,Ow;s_={};g.Lw=(s_.auto=0,s_.tiny=144,s_.light=144,s_.small=240,s_.medium=360,s_.large=480,s_.hd720=720,s_.hd1080=1080,s_.hd1440=1440,s_.hd2160=2160,s_.hd2880=2880,s_.highres=4320,s_);Ow={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};Kw.prototype.equals=function(a){return this.u===a.u&&this.j===a.j&&this.B===a.B&&this.reason===a.reason};
Kw.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.j};
Kw.prototype.compose=function(a){if(a.B&&Nw(a))return lD;if(a.B||Nw(this))return a;if(this.B||Nw(a))return this;var b=this.u&&a.u?Math.max(this.u,a.u):this.u||a.u,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);return b===this.u&&c===this.j?this:new Kw(b,c,!1,c===this.j?this.reason:a.reason)};
Kw.prototype.C=function(a){return a.video?isa(this,a.video.quality):!1};
var GUa=g.Mw("auto","hd1080",!1,"l"),SJa=g.Mw("auto","large",!1,"l"),lD=g.Mw("auto","auto",!1,"p");Qw.prototype.qp=function(a){a=a||lD;for(var b=g.cm(this.videoInfos,function(h){return a.C(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].video;
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
Qw.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var $w={GX:function(a,b){a.splice(0,b)},
QM:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
FX:function(a){a.reverse()}};g.ax.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.ax.prototype.get=function(a){dx(this);return this.j[a]||null};
g.ax.prototype.clone=function(){var a=new g.ax(this.u,this.D);a.B=this.B;a.path=this.path;a.C=this.C;a.j=g.We(this.j);a.url=this.url;return a};
var bx=[Xo];g.k=jx.prototype;g.k.BE=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.gm(a))?a.duration:0};
g.k.getDurationTicks=function(a){return this.getDuration(a)};
g.k.getFirstSegmentNumber=function(){return this.segments.length?this.segments[0].Ka:-1};
g.k.getIngestionTime=function(a){return(a=this.gm(a))?a.ingestionTime:NaN};
g.k.getLastSegmentNumber=function(){return this.segments.length?this.segments[this.segments.length-1].Ka:-1};
g.k.vH=function(a){return this.getLastSegmentNumber()===a&&!this.B&&0<=a};
g.k.getMaxKnownEndTime=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.getMinSeekableTime=function(){return this.segments[0].startTime};
g.k.getNumberOfSegments=function(){return this.segments.length};
g.k.getOffset=function(){return 0};
g.k.getSegmentNumberForTime=function(a){return(a=this.Bu(a))?a.Ka:-1};
g.k.getSegmentURL=function(a){return(a=this.gm(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.gm(a))?a.startTime:0};
g.k.getStartTimeInPeriod=function(a){return(a=this.gm(a))?a.j:0};
g.k.isLoaded=function(){return 0<this.segments.length};
g.k.gm=function(a){if(this.j&&this.j.Ka===a)return this.j;a=g.kc(this.segments,new ix(a,0,0,0,""),function(b,c){return b.Ka-c.Ka});
return this.j=0<=a?this.segments[a]:null};
g.k.Bu=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.kc(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return this.j=0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.k.append=function(a){if(a.length)if(a=g.ec(a),this.segments.length){var b=this.segments.length?g.Rb(this.segments).endTime:0,c=a[0].Ka-this.getLastSegmentNumber();1<c&&Zb(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
g.k.getLocalMaxByterate=function(){return 0};kx.prototype.append=function(a){if(Hsa(this,a)){var b=this.j[this.j.length-1];this.j[this.j.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);nx(this)}else this.j.push(a);this.totalLength+=a.length};
kx.prototype.split=function(a){for(var b=new kx,c=new kx,d=g.r(this.j),e=d.next();!e.done;e=d.next())e=e.value,a>=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{eH:b,Rs:c}};
kx.prototype.isFocused=function(a){return a>=this.B&&a<this.B+this.j[this.u].length};
kx.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.B&&nx(this);this.B+this.j[this.u].length<=a&&this.u<this.j.length;)this.B+=this.j[this.u].length,this.u+=1;this.C=void 0}};var KJa=function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a}(),vx=Array(1024),tx=window.TextDecoder?new TextDecoder:void 0,xx=window.TextEncoder?new TextEncoder:void 0;zx.prototype.skip=function(a){this.j+=a};
zx.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var t_={},HUa=(t_.predictStart="predictStart",t_.start="start",t_["continue"]="continue",t_.stop="stop",t_),Nsa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};Ix.prototype.py=function(){return!!(this.data["Stitched-Video-Id"]||this.data["Stitched-Video-Cpn"]||this.data["Stitched-Video-Duration-Us"]||this.data["Stitched-Video-Start-Frame-Index"]||this.data["Serialized-State"]||this.data["Is-Ad-Break-Finished"])};
Ix.prototype.toString=function(){for(var a="",b=g.r(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};var Zsa=!1;Ux.prototype.Wu=function(){var a=this.j;this.j=0;var b=!1;try{Yx(this,440786851)&&(this.j=0,Yx(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.j=0,b=!1,g.Bu(c);else throw c;}this.j=a;return b};hy.prototype.set=function(a,b){this.Ri.get(a);this.j[a]=b;this.url=""};
hy.prototype.get=function(a){return this.j[a]||this.Ri.get(a)};mta.prototype.Lk=function(a,b){a.Ri===this.j&&(this.j=jy(a,b));a.Ri===this.B&&(this.B=jy(a,b))};ny.prototype.Lf=function(){return!!this.j&&this.index.isLoaded()};
ny.prototype.ev=function(){return!1};
ny.prototype.pL=function(a){return[a]};
ny.prototype.Lv=function(a){return[a]};py.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};sy.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
sy.prototype.equals=function(a){return!(!a||a.j!==this.j||a.type!==this.type||(this.range&&a.range?a.range.start!==this.range.start||a.range.end!==this.range.end:a.range!==this.range)||a.Ka!==this.Ka||a.Ab!==this.Ab||a.u!==this.u)};
sy.prototype.isVideo=function(){return!!this.j.info.video};Cy.prototype.Fk=function(){return this.B?cx(this.B):""};
Cy.prototype.pn=function(){return uy(this.j[0])};
Cy.prototype.Lk=function(a,b){this.u.Lk(a,b);if(this.B){this.B=jy(a,b);b=g.r(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.B.set(c.value,null)}this.requestId=a.get("req_id")};
var yta=!1;g.w(Hy,ny);g.k=Hy.prototype;g.k.Bm=function(){return!1};
g.k.Mr=function(){return IUa};
g.k.wy=function(){return!1};
g.k.ev=function(){return!this.I};
g.k.yp=function(){return new Cy([new sy(1,this,this.initRange,"getMetadataRequestInfo")],this.I)};
g.k.Lt=function(){return null};
g.k.Kw=function(a){this.Mo(a);return this.Mr()&&a.u&&!a.Xd?new Cy([new sy(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Ka,a.startTime,a.duration,a.Ab+a.u,NaN,!0)],this.index.getSegmentURL(a.Ka)):this.No(yy(a),!1)};
g.k.Dn=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);-1!==a||"386"===this.info.Vb()||this.info.Vb();b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return this.No(a,!0)};
g.k.XG=function(a){this.j=new Uint8Array(Ty(a).buffer)};
g.k.Mo=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ka&&this.index.getFirstSegmentNumber()<=a.Ka+1};
g.k.update=function(a,b,c){this.index.append(a);Gsa(this.index,c);this.index.B=b};
g.k.Lf=function(){return this.ev()?!0:ny.prototype.Lf.call(this)};
g.k.No=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=0<this.info.Ob?this.info.Ob*e:1E3;return new Cy([new sy(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
g.k.FG=function(){return this.ev()?0:this.initRange.length};
g.k.MI=function(){return!1};
var IUa=!1;Ky.prototype.update=function(a,b){var c=void 0;this.u&&(c=this.u);var d=new Ky,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+Iy(a,"timescale")||1,h=(+e[0].getAttribute("t")||0)/f,l=+Iy(a,"startNumber")||0,m=d.C=h,n=+Iy(a,"presentationTimeOffset")||0;b=c?c.startSecs+c.durationSecs:b?m-n/f:0;m=Date.parse(Fta(Iy(a,"yt:segmentIngestTime")))/1E3;d.D="SegmentTemplate"===a.parentElement.tagName;d.D&&(d.J=Iy(a,"media"));a=c?l-c.Ka:1;d.I=0<a?0:-a+1;a=g.r(e);for(e=a.next();!e.done;e=a.next()){e=
e.value;n=+e.getAttribute("d")/f;for(var p=(+e.getAttribute("yt:sid")||0)/f,q=+e.getAttribute("r")||0,t=0;t<=q;t++)if(c&&l<=c.Ka)l++;else{var u=new Dta(l,b,n,m+p,h);d.j.push(u);var x=u.startSecs;u=e.getAttribute("yt:cuepointTimeOffset");var y=e.getAttribute("yt:cuepointDuration");if(u&&y){u=Number(u);x=-u/f+x;y=Number(y)/f;var z=e.getAttribute("yt:cuepointContext")||null,D=e.getAttribute("yt:cuepointIdentifier")||"",H=e.getAttribute("yt:cuepointEvent")||"";u=new rv(x,y,z,D,HUa[H]||"unknown",u)}else u=
null;u&&d.B.push(u);l++;b+=n;h+=n;m+=n+p}}d.j.length&&(d.u=g.Rb(d.j))}this.I=d.I;this.u=d.u||this.u;g.fc(this.j,d.j);g.fc(this.B,d.B);this.D=d.D;this.J=d.J;-1===this.C&&(this.C=d.getStreamTimeOffset())};
Ky.prototype.getStreamTimeOffset=function(){return-1===this.C?0:this.C};g.w(Ly,jx);g.k=Ly.prototype;g.k.getFirstSegmentNumber=function(){return this.Tl?this.segments.length?this.Bu(this.getMinSeekableTime()).Ka:-1:jx.prototype.getFirstSegmentNumber.call(this)};
g.k.getMinSeekableTime=function(){if(this.Mf)return 0;if(!this.Tl)return jx.prototype.getMinSeekableTime.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Rb(this.segments).endTime-this.yn,0);return 0<this.Ve&&this.Bu(a).Ka<this.Ve?this.gm(this.Ve).startTime:a};
g.k.getMaxKnownEndTime=function(){if(!this.segments.length)return jx.prototype.getMaxKnownEndTime.call(this);var a=this.getLastSegmentNumber();if(!this.Tl||a<=this.segments[this.segments.length-1].Ka)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new ix(a,Math.max(0,b.startTime-(b.Ka-a)*this.Nh),this.Nh,0,"sq/"+a,void 0,void 0,!0)}return null!==this.C&&a.pending&&3===this.C?this.Mf?Math.min(this.yn,a.startTime):a.startTime:this.Mf?Math.min(this.yn,a.endTime):
a.endTime};
g.k.getNumberOfSegments=function(){return this.Tl?this.segments.length?this.getLastSegmentNumber()-this.getFirstSegmentNumber()+1:0:jx.prototype.getNumberOfSegments.call(this)};
g.k.getLastSegmentNumber=function(){var a=Math.min(this.Gh,Math.max(jx.prototype.getLastSegmentNumber.call(this),this.Lw)),b=1E3*this.yn;b=0<this.u&&this.u<b;this.Mf&&0<this.yn&&0<this.Lw&&!b&&(b=this.Bu(this.yn))&&(a=Math.min(b.Ka-1,a));return a};
g.k.yr=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.BE=function(a){var b=My(this,a.Ka);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.Gy&&0===a.Ka%(300/this.Nh)){var c=this.segments[0].Ka,d=Math.floor(this.Gy/this.Nh);a=a.Ka-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.Bu=function(a){if(!this.Tl)return jx.prototype.Bu.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Ka-Math.ceil((this.segments[0].startTime-a)/this.Nh));else if(a>=b.endTime)b=b.Ka+Math.floor((a-b.endTime)/this.Nh+1);else{b=lc(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Ka-b.Ka-1))+1)+b.Ka}return this.gm(b)};
g.k.gm=function(a){if(!this.Tl)return jx.prototype.gm.call(this,a);if(!this.segments.length)return null;var b=My(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Nh;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ka-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ka-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ka-d.Ka-1),d=d.endTime+(a-d.Ka-1)*b);return new ix(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.w(Oy,Hy);g.k=Oy.prototype;g.k.wy=function(){return!0};
g.k.Lf=function(){return!0};
g.k.Mo=function(a){return this.Mr()&&a.u&&!a.Xd||!a.j.index.vH(a.Ka)};
g.k.yp=function(){};
g.k.Dn=function(a,b){return"number"!==typeof a||isFinite(a)?Hy.prototype.Dn.call(this,a,void 0===b?!1:b):new Cy([new sy(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.fk,void 0,this.fk*this.info.Ob)],"")};
g.k.No=function(a,b){var c=void 0===c?!1:c;if(Ny(this.index,a))return Hy.prototype.No.call(this,a,b);var d=this.index.getStartTime(a);return new Cy([new sy(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,b?0:this.fk*this.info.Ob,!b)],0<=a?"sq/"+a:"")};g.w(Py,ny);g.k=Py.prototype;g.k.Bm=function(){return!1};
g.k.Mr=function(){return!1};
g.k.wy=function(){return!1};
g.k.yp=function(){return new Cy([new sy(1,this,void 0,"otfInit")],this.I)};
g.k.Lt=function(){return null};
g.k.Kw=function(a){this.Mo(a);return Nta(this,yy(a),!1)};
g.k.Dn=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return Nta(this,a,!0)};
g.k.XG=function(a){1===a.info.type&&(this.j||(this.j=Ksa(a.j)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&Ota(this,a.u))};
g.k.Mo=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ka&&this.index.getFirstSegmentNumber()<=a.Ka+1};
g.k.FG=function(){return 0};
g.k.MI=function(){return!1};g.k=Qy.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.count||this.u?this.j[a+1]-this.j[a]:-1};
g.k.getByteLength=function(a){return a+1<this.count||this.u?this.offsets[a+1]-this.offsets[a]:-1};
g.k.getFirstSegmentNumber=function(){return 0};
g.k.getLastSegmentNumber=function(){return this.count-1};
g.k.vH=function(a){return this.getLastSegmentNumber()===a&&0<=a};
g.k.getMaxKnownEndTime=function(){return this.u?this.j[this.count]/this.B:NaN};
g.k.getMinSeekableTime=function(){return 0};
g.k.getNumberOfSegments=function(){return this.count};
g.k.getTotalByteLength=function(){return this.u?this.offsets[this.count]:-1};
g.k.getSegmentURL=function(){return""};
g.k.getSegmentNumberForTime=function(a){a=g.kc(this.j.subarray(0,this.count),a*this.B);return 0<=a?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return 0<=this.getLastSegmentNumber()};
g.k.getLocalMaxByterate=function(a,b){if(a>=this.getLastSegmentNumber())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.getLastSegmentNumber()&&b>this.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;a<this.count+1;a++)this.offsets[a]=b[a],this.j[a]=c[a]};
g.k.setTimebase=function(a){this.B=a};
g.k.setFirstSegmentStart=function(a,b){this.offsets[0]=a;this.j[0]=b;this.u=!0};
g.k.addSegmentBySize=function(a,b){this.count++;Ry(this);this.offsets[this.count]=this.offsets[this.count-1]+a;this.j[this.count]=this.j[this.count-1]+b};
g.k.addSegmentByStart=function(a,b){Ry(this);this.offsets[this.count]=a;this.j[this.count]=b;this.count++};
g.k.cap=function(a,b){Ry(this);this.u=!0;this.j[this.count]=b;this.offsets[this.count]=a};Sy.prototype.verify=function(a){if(this.info.u!==this.j.totalLength)return a.slength=this.info.u.toString(),a.range=this.j.totalLength.toString(),!1;if(1===this.info.j.info.containerType){if(8>this.info.u||4===this.info.type)return!0;var b=Ty(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.Ab)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=Ty(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Ab)return 524531317===c||440786851===c}return!0};g.w(Wy,ny);g.k=Wy.prototype;g.k.yp=function(a){var b=new sy(2,this,this.indexRange,"indexInfo"),c=[new sy(1,this,this.initRange,"initInfo"),b];0<this.info.contentLength&&a&&(b=b.range.end+1,a=Math.min(a,this.info.contentLength-b),0<a&&c.push(new sy(4,this,ry(b,a),"tbdRange")));return new Cy(c)};
g.k.XG=function(a){if(1===a.info.type){if(this.j)return;this.j=Ksa(a.j)}else if(2===a.info.type){if(this.I||0<=this.index.getLastSegmentNumber())return;if(g.Uy(this.info)){var b=this.index,c=Ty(a);a=a.info.range.start;var d=g.Kx(c,0,1936286840);c=Wsa(d);b.setTimebase(c.QJ);b.setFirstSegmentStart(c.aW+a+d.size,c.OV);a=c.LJ.length;for(d=0;d<a;d++)b.addSegmentBySize(c.e0[d],c.LJ[d])}else this.I=Ty(a)}if(this.info.Ue()&&this.j&&this.I){a=new DataView(this.j.buffer);b=this.index;d=this.I;c=this.indexRange.end;
var e=new Ux(a);a=e;e=a.j;var f={ER:1E6,FR:1E9,duration:0,fR:0,lJ:0};if(Yx(a,408125543))if(f.fR=Zx(a,!0),f.lJ=a.start+a.j,Yx(a,357149030)){for(var h=Xx(a);!Vx(h);){var l=Zx(h,!1);2807729===l?f.ER=ay(h):2807730===l?f.FR=ay(h):17545===l?f.duration=cy(h):by(h)}a.j=e;a=f}else a.j=e,a=null;else a.j=e,a=null;if(null!==a){b.setTimebase(a.FR/a.ER);e=new Ux(d);d=e;h=a.lJ;e=d.j;f=[];if(Yx(d,475249515)){for(l=Xx(d);Yx(l,187);){var m=Xx(l);if(Yx(m,179)){var n=ay(m);if(Yx(m,183)){m=Xx(m);for(var p=h;Yx(m,241);)p=
ay(m)+h;f.push({YA:p,GV:n})}}}if(0<f.length&&c===f[0].YA)for(c=0;c<f.length;c++)f[c].YA+=1;d.j=e;c=f}else d.j=e,c=null;if(null!==c){c=g.r(c);for(d=c.next();!d.done;d=c.next())d=d.value,b.addSegmentByStart(d.YA,d.GV);b.cap(a.fR+a.lJ,a.duration)}}this.I=null}};
g.k.pL=function(a){for(var b=this.Lv(a.info),c=a.info.range.start+a.info.Ab,d=a.B,e=[],f=0;f<b.length;f++){var h=mx(a.j,b[f].range.start+b[f].Ab-c,b[f].u);e.push(new Sy(b[f],h,d));d=!1}return e};
g.k.Lv=function(a){for(var b=a.range.start+a.Ab,c=0;c<this.index.getLastSegmentNumber()&&b>=this.index.getOffset(c+1);)c++;return Xy(this,c,b,a.u).j};
g.k.Mo=function(a){ty(a);return this.Lf()?!0:a.range.end+1<this.info.contentLength};
g.k.Lt=function(a,b){this.Mo(a);if(!this.Lf())return b=ry(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new py(b.start,this.info.contentLength-1)),new Cy([new sy(4,a.j,b,"getNextRequestInfoByLength")]);4===a.type&&(a=this.Lv(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Ab+a.u;3===a.type&&(ty(a),c=a.Ka,d===a.range.end+1&&(c+=1));return Xy(this,c,d,b)};
g.k.Kw=function(){return null};
g.k.Dn=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return Xy(this,a,this.index.getOffset(a),0)};
g.k.Bm=function(){return!0};
g.k.Mr=function(){return!0};
g.k.wy=function(){return!1};
g.k.FG=function(){return this.indexRange.length+this.initRange.length};
g.k.MI=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};Yy.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var u_={},Vw=(u_.WIDTH={name:"width",video:!0,valid:640,invalid:99999},u_.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},u_.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},u_.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},u_.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},u_.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},u_.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},u_.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},u_.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},u_.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},u_);var Z={},cz=(Z["0"]="f",Z["160"]="h",Z["133"]="h",Z["134"]="h",Z["135"]="h",Z["136"]="h",Z["137"]="h",Z["264"]="h",Z["266"]="h",Z["138"]="h",Z["298"]="h",Z["299"]="h",Z["304"]="h",Z["305"]="h",Z["214"]="h",Z["216"]="h",Z["374"]="h",Z["375"]="h",Z["140"]="a",Z["141"]="ah",Z["327"]="sa",Z["258"]="m",Z["380"]="mac3",Z["328"]="meac3",Z["161"]="H",Z["142"]="H",Z["143"]="H",Z["144"]="H",Z["222"]="H",Z["223"]="H",Z["145"]="H",Z["224"]="H",Z["225"]="H",Z["146"]="H",Z["226"]="H",Z["227"]="H",Z["147"]="H",
Z["384"]="H",Z["376"]="H",Z["385"]="H",Z["377"]="H",Z["149"]="A",Z["261"]="M",Z["381"]="MAC3",Z["329"]="MEAC3",Z["598"]="9",Z["278"]="9",Z["242"]="9",Z["243"]="9",Z["244"]="9",Z["247"]="9",Z["248"]="9",Z["353"]="9",Z["355"]="9",Z["271"]="9",Z["313"]="9",Z["272"]="9",Z["302"]="9",Z["303"]="9",Z["407"]="9",Z["408"]="9",Z["308"]="9",Z["315"]="9",Z["330"]="9h",Z["331"]="9h",Z["332"]="9h",Z["333"]="9h",Z["334"]="9h",Z["335"]="9h",Z["336"]="9h",Z["337"]="9h",Z["338"]="so",Z["600"]="o",Z["250"]="o",Z["251"]=
"o",Z["194"]="*",Z["195"]="*",Z["220"]="*",Z["221"]="*",Z["196"]="*",Z["197"]="*",Z["279"]="(",Z["280"]="(",Z["317"]="(",Z["318"]="(",Z["273"]="(",Z["274"]="(",Z["357"]="(",Z["358"]="(",Z["275"]="(",Z["359"]="(",Z["360"]="(",Z["276"]="(",Z["583"]="(",Z["584"]="(",Z["314"]="(",Z["585"]="(",Z["561"]="(",Z["277"]="(",Z["361"]="(h",Z["362"]="(h",Z["363"]="(h",Z["364"]="(h",Z["365"]="(h",Z["366"]="(h",Z["591"]="(h",Z["592"]="(h",Z["367"]="(h",Z["586"]="(h",Z["587"]="(h",Z["368"]="(h",Z["588"]="(h",Z["562"]=
"(h",Z["409"]="(",Z["410"]="(",Z["411"]="(",Z["412"]="(",Z["557"]="(",Z["558"]="(",Z["394"]="1",Z["395"]="1",Z["396"]="1",Z["397"]="1",Z["398"]="1",Z["399"]="1",Z["400"]="1",Z["401"]="1",Z["571"]="1",Z["402"]="1",Z["694"]="1h",Z["695"]="1h",Z["696"]="1h",Z["697"]="1h",Z["698"]="1h",Z["699"]="1h",Z["700"]="1h",Z["701"]="1h",Z["702"]="1h",Z["703"]="1h",Z["386"]="3",Z["387"]="w",Z["406"]="6",Z);var az="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");$y.prototype.isHdr=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};g.k=dz.prototype;g.k.Vb=function(){return this.id.split(";",1)[0]};
g.k.Ue=function(){return 2===this.containerType};
g.k.isEncrypted=function(){return!!this.Wd};
g.k.Jn=function(){return!!this.audio};
g.k.isVideo=function(){return!!this.video};g.jz.prototype.getName=function(){return this.name};
g.jz.prototype.getId=function(){return this.id};
g.jz.prototype.getIsDefault=function(){return this.isDefault};
g.jz.prototype.toString=function(){return this.name};
g.jz.prototype.getName=g.jz.prototype.getName;g.jz.prototype.getId=g.jz.prototype.getId;g.jz.prototype.getIsDefault=g.jz.prototype.getIsDefault;g.w(g.kz,fu);g.kz.prototype.P=function(a,b,c,d,e){return fu.prototype.P.call(this,a,b,c,d,e)};g.w(zz,g.iu);g.k=zz.prototype;g.k.appendBuffer=function(a,b,c){if(this.Pd.zB()!==this.appendWindowStart+this.start||this.Pd.wG()!==this.appendWindowEnd+this.start||this.Pd.ud()!==this.timestampOffset+this.start)this.Pd.supports(1),this.Pd.sJ(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Pd.sD(this.timestampOffset+this.start);this.Pd.appendBuffer(a,b,c)};
g.k.abort=function(){this.Pd.abort()};
g.k.remove=function(a,b){this.Pd.remove(a+this.start,b+this.start)};
g.k.sJ=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.MG=function(){return this.timestampOffset+this.start};
g.k.zB=function(){return this.appendWindowStart};
g.k.wG=function(){return this.appendWindowEnd};
g.k.sD=function(a){this.timestampOffset=a};
g.k.ud=function(){return this.timestampOffset};
g.k.ag=function(a){a=this.Pd.ag(void 0===a?!1:a);return yz(a,this.start,this.end)};
g.k.Ai=function(){return this.Pd.Ai()};
g.k.vp=function(){return this.Pd.vp()};
g.k.CB=function(){return this.Pd.CB()};
g.k.iK=function(a,b){this.Pd.iK(a,b)};
g.k.supports=function(a){return this.Pd.supports(a)};
g.k.DB=function(){return this.Pd.DB()};
g.k.isView=function(){return!0};
g.k.ID=function(a,b,c){return this.isActive?this.Pd.ID(a,b,c):!1};
g.k.RA=function(){return this.Pd.RA()?this.isActive:!1};
g.k.isLocked=function(){return this.Zz&&!this.isActive};
g.k.Nb=function(a){a=this.Pd.Nb(a);a.vw=this.start+"-"+this.end;return a};
g.k.Rx=function(){return this.Pd.Rx()};
g.k.IG=function(){return this.Pd.IG()};
g.k.ea=function(){ku(this.Pd,this.jO);g.iu.prototype.ea.call(this)};var xP=!1;g.w(Az,g.iu);g.k=Az.prototype;g.k.appendBuffer=function(a,b,c){this.NA=!1;c&&(this.iC=c);b&&(b.isEncrypted()&&(this.MO=this.iC),3===b.type&&(this.De=b));this.yz&&(2<=this.yz.length||1048576<a.length?delete this.yz:this.yz.push(a));var d;(null==(d=this.Yb)?0:d.appendBuffer)?this.Yb.appendBuffer(a):this.Yb?this.Yb.append(a):this.Cf&&this.Cf.webkitSourceAppend(this.id,a)};
g.k.abort=function(){try{this.Yb?this.Yb.abort():this.Cf&&this.Cf.webkitSourceAbort(this.id)}catch(a){}this.iC=this.De=null};
g.k.remove=function(a,b){this.NA=!1;var c;(null==(c=this.Yb)?0:c.remove)&&this.Yb.remove(a,b)};
g.k.zB=function(){if(xP&&this.isVideo)return this.appendWindowStart;var a;return(null==(a=this.Yb)?void 0:a.appendWindowStart)||0};
g.k.wG=function(){var a;return(null==(a=this.Yb)?void 0:a.appendWindowEnd)||0};
g.k.sJ=function(a,b){this.Yb&&(xP&&this.isVideo?(this.appendWindowStart=a,this.Yb.appendWindowEnd=b):a>this.zB()?(this.Yb.appendWindowEnd=b,this.Yb.appendWindowStart=a):(this.Yb.appendWindowStart=a,this.Yb.appendWindowEnd=b))};
g.k.MG=function(){return this.timestampOffset};
g.k.sD=function(a){xP?this.timestampOffset=a:this.supports(1)&&(this.Yb.timestampOffset=a)};
g.k.ud=function(){return xP?this.timestampOffset:this.supports(1)?this.Yb.timestampOffset:0};
g.k.ag=function(a){if(void 0===a?0:a)return this.NA||this.Ai()||(this.JM=this.ag(!1),this.NA=!0),this.JM;try{return this.Yb?this.Yb.buffered:this.Cf?this.Cf.webkitSourceBuffered(this.id):sz([0],[Infinity])}catch(b){return sz([],[])}};
g.k.Ai=function(){var a;return(null==(a=this.Yb)?void 0:a.updating)||!1};
g.k.vp=function(){return this.iC};
g.k.CB=function(){return this.MO};
g.k.iK=function(a,b){this.containerType!==a&&(this.supports(4),Bz()&&this.Yb.changeType(b));this.containerType=a};
g.k.DB=function(){return this.De};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.Yb)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.Yb)||!c.appendBuffer);case 2:var d;return!(null==(d=this.Yb)||!d.remove);case 3:var e,f;return!!((null==(e=this.Yb)?0:e.addEventListener)&&(null==(f=this.Yb)?0:f.removeEventListener));case 4:return!(!this.Yb||!this.Yb.changeType);default:return!1}};
g.k.RA=function(){return!this.Ai()};
g.k.isLocked=function(){return!1};
g.k.Nb=function(a){a.to=this.ud();a.up=this.Ai();var b,c=(null==(b=this.Yb)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.Yb)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=tz(this.ag())}catch(e){}return a};
g.k.ea=function(){this.supports(3)&&(this.Yb.removeEventListener("updateend",this.Oc),this.Yb.removeEventListener("error",this.Oc));g.iu.prototype.ea.call(this)};
g.k.ID=function(a,b,c){if(!this.supports(2)||this.Ai())return!1;var d=this.ag(),e=uz(d,a);if(0>e)return!1;try{if(b&&e+1<d.length){var f=d.start(e+1),h=d.end(d.length-1);this.remove(f,h);return!0}if(this.isView())return!1;var l=Math.max(0,a-c);if(0<c&&d.start(e)<l)return this.remove(0,l),!0}catch(m){}return!1};
g.k.Rx=function(){return this.containerType};
g.k.IG=function(){return this.yz};
var fua=!1;Cz.prototype.dispose=function(){if(!this.isDisposed){if(this.u)try{URL.revokeObjectURL(this.j)}catch(a){}this.B=!0}};
Cz.prototype.isDisposed=function(){return this.B};
Cz.prototype.equals=function(a){return null!==a&&a.j===this.j};
Cz.prototype.toString=function(){return"MediaResource {"+this.j+"}"};g.w(Dz,g.I);g.k=Dz.prototype;g.k.getDuration=function(){var a;return(null==(a=this.mediaSource)?void 0:a.duration)||this.B};
g.k.bl=function(a){try{this.mediaSource?this.mediaSource.duration=a:(this.B=a,this.Cf.webkitSourceSetDuration(a))}catch(b){}};
g.k.Kf=function(){try{return"closed"===Fz(this)}catch(a){return!0}};
g.k.Ai=function(){return!!(this.j&&this.j.Ai()||this.u&&this.u.Ai())};
g.k.l_=function(){!this.isDisposed()&&Ez(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.k_=function(){this.dispose()};var lua=/action_display_post/;var mua;g.w(Iz,g.iu);g.k=Iz.prototype;g.k.isFailed=function(){return 3===this.state};
g.k.P_=function(a){var b,c=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.fg=this.u=!0;this.timeline||(this.timeline=new Hta);Lta(this.timeline,a,this.Sa);this.X("refresh");for(a=0;a<c.length;a++){var d=Aua(this,c[a]),e=this.isLive&&g.Uy(d)&&this.Ta;if(!this.j[d.id]){var f=Lz(Jy(c[a],"BaseURL").textContent),h=Jy(c[a],"Initialization"),l=Iy(h,"sourceURL");h=qy(Iy(h,"range"));e&&(l="",h=void 0);this.j[d.id]=
new Hy(f,d,l,h)}d=this.j[d.id];f=Iy(c[a],"id","AdaptationSet");f=""!==f?f:Iy(c[a],"mimetype","AdaptationSet");l=this.timeline;l=l.B[d.info.id]||l.u[f]||l.j||null;f=l.j;!this.N&&l.getStreamTimeOffset()&&(this.N=l.getStreamTimeOffset());if(l.D)for(e=[],f=g.r(f),h=f.next();!h.done;h=f.next()){h=h.value;var m=d.info.id,n=8*d.info.Ob,p=h.Ka,q=h.startSecs;var t=l.J.split("$$");for(b=0;b<t.length;b++)t[b]=t[b].replace("$RepresentationID$",m),t[b]=t[b].replace("$Number$",p.toString()),t[b]=t[b].replace("$Bandwidth$",
n.toString()),t[b]=t[b].replace("$Time$",q.toString());e.push(new ix(h.Ka,h.startSecs,h.durationSecs,h.j,t.join("$"),null,h.u))}else{l=gc(Jy(c[a],"SegmentList").getElementsByTagName("SegmentURL"),l.I);h=[];for(m=0;m<l.length;m++){n=h;p=n.push;q=f[m];t=void 0;var u=l[m];b=u.getAttribute("media");if(!e&&(u=u.getAttribute("mediaRange"))){var x=u.split("-");x[1]&&0<=Number(x[1])?t=qy(u):b=b+"?range="+u}p.call(n,new ix(q.Ka,q.startSecs,q.durationSecs,q.j,b,t,q.u))}e=h}d.update(e,this.isLive,this.Ga)}Mta(this.timeline);
return!0}this.duration=Eta(Iy(a,"mediaPresentationDuration"));a:{for(a=0;a<c.length;a++){f=c[a];d=Aua(this,f);e=Lz(Jy(f,"BaseURL").textContent);l=Jy(f,"SegmentBase");f=qy(l.attributes.getNamedItem("indexRange").value);l=qy(l.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);d=new Wy(e,d,l,f);if(!d){c=!1;break a}Jz(this,d)}c=!0}return c};
g.k.refresh=function(){if(1!==this.state&&!this.isDisposed()){var a=g.Mh(this.sourceUrl,{start_seq:Eua(this).toString()});Cua(this,a).Li(function(){})}};
g.k.resume=function(){Bua(this)};
g.k.Gd=function(){if(this.isManifestless&&this.J&&Oz(this))return Oz(this);var a=this.j,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&(f.C&&(b=!0),h=h.getMaxKnownEndTime(),f.info.Jn()&&(isNaN(c)||h<c)?c=h:f.info.isVideo()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.getMinSeekableTime=function(){if(this.isManifestless){if(Pz(this))return Pz(this);if(this.I){var a=this.getIngestionTime(this.Gd());if(a&&(a-=this.I,0<a))return this.Gd()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getMinSeekableTime()}return 0};
g.k.getStreamTimeOffset=function(){return this.N};
g.k.getIngestionTime=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.getSegmentNumberForTime(a),e=c.getIngestionTime(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var Sz=null,Kua=!!navigator.mediaCapabilities,zua={commentary:1,alternate:2,dub:3,main:4};Yz.prototype.clone=function(a){return new Yz(this.flavor,a,this.C,this.experiments)};
Yz.prototype.Nb=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
Yz.prototype.cg=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.widevine.forcehdcp":return"WVYF";case "com.youtube.fairplay":return"FPY";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}};
var v_={},gA=(v_.playready=["com.youtube.playready","com.microsoft.playready"],v_.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],v_),w_={},GJa=(w_.widevine="DRM_SYSTEM_WIDEVINE",w_.fairplay="DRM_SYSTEM_FAIRPLAY",w_.playready="DRM_SYSTEM_PLAYREADY",w_),x_={},JUa=(x_.widevine=1,x_.fairplay=2,x_.playready=3,x_);g.w(hA,g.I);
hA.prototype.initialize=function(a,b){for(var c=this,d=g.r(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.r(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.Wd)for(var h=g.r(Object.keys(f.Wd)),l=h.next();!l.done;l=h.next())if(l=l.value,gA[l])for(var m=g.r(gA[l]),n=m.next();!n.done;n=m.next())n=n.value,this.u[n]=this.u[n]||new Yz(l,n,f.Wd[l],this.experiments),this.C[l]=this.C[l]||{},this.C[l][f.mimeType]=!0}Dq()&&(this.u["com.youtube.fairplay"]=new Yz("fairplay","com.youtube.fairplay","",
this.experiments),this.C.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.j=Xua(b,this.useCobaltWidevine,this.K("html5_enable_safari_fairplay"),g.Xz(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.u[p]})};
hA.prototype.K=function(a){return this.experiments.fb(a)};var uNa={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};var KUa={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},y_;a:{var z_=g.tb();z_=z_.toLowerCase();if(g.ob(z_,"android")){var LUa=z_.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(LUa){var MUa=parseFloat(LUa[1]);if(100>MUa){y_=MUa;break a}}var NUa=z_.match("("+g.Oe(KUa).join("|")+")");y_=NUa?KUa[NUa[0]]:0}else y_=void 0}var bB=y_,aB=0<=bB;var Sva={RED:"red",pja:"white"};var Qva={f2:"adunit",g7:"detailpage",w7:"editpage",z7:"embedded",E7:"embedded_unbranded",s$:"leanback",Cea:"previewpage",Fea:"profilepage",Uha:"unplugged",rea:"playlistoverview",Hga:"sponsorshipsoffer",jga:"shortspage"};dva.prototype.fb=function(a){return"true"===this.flags[a]};jA.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;Iq?a=a||OUa[b]:2.2===bB?a=a||PUa[b]:Bq()&&(a=a||QUa[b]);return!!a};
jA.prototype.isTypeSupported=function(a){return this.J?window.cast.receiver.platform.canDisplayType(a):nz(a)};
var PUa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},QUa={"application/x-mpegURL":"maybe"},OUa={"application/x-mpegURL":"maybe"};var jva=Promise.resolve(),mva=window.queueMicrotask?window.queueMicrotask.bind(window):kva;mA.prototype.enqueue=function(a,b){this.queue.push({url:a,options:b});nva(this)};
mA.prototype.flush=function(){for(;this.queue.length;){var a=this.queue.shift();g.pq(a.url,a.options)}};g.w(nA,g.iu);nA.prototype.add=function(a,b){!this.items[a]&&(b.qx||b.TA||b.Tz)&&(this.items[a]=$ba(b),this.X("vast_info_card_add",a))};
nA.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
nA.prototype.get=function(a){return this.items[a]||null};
nA.prototype.isEmpty=function(){return g.Se(this.items)};var jB={L$:1,M$:2,N$:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var ova=!1,pA,qA,rA,sA,tA;uA.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;d<b&&16>this.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d<e;)qva(this),a[d++]^=c[0],a[d++]^=c[1],a[d++]^=c[2],a[d++]^=c[3],a[d++]^=c[4],a[d++]^=c[5],a[d++]^=c[6],a[d++]^=c[7],a[d++]^=c[8],a[d++]^=c[9],a[d++]^=c[10],a[d++]^=c[11],a[d++]^=c[12],a[d++]^=c[13],a[d++]^=c[14],a[d++]^=c[15];if(d<b)for(qva(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};var vA=!1;(function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a})();
var wA;g.yA.prototype.encrypt=function(a,b){var c=this,d,e;return g.B(function(f){if(1==f.j){d=xA();if(!d)return f.return(c.j(a,b));g.wa(f,3);return g.A(f,c.u(a,b,d),5)}if(3!=f.j)return f.return(f.u);e=g.ya(f);g.Bu(e);vA=!0;return f.return(c.j(a,b))})};
g.yA.prototype.u=function(a,b,c){var d=this,e,f,h;return g.B(function(l){switch(l.j){case 1:if(d.D){l.Ra(2);break}e=d;return g.A(l,c.importKey("raw",d.C,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:e.D=l.u;case 2:return f={name:"AES-CTR",counter:b,length:128},g.A(l,c.encrypt(f,d.D,a),4);case 4:return h=l.u,l.return(new Uint8Array(h))}})};
g.yA.prototype.j=function(a,b){this.B||(this.B=new uA(this.C));pva(this.B,b);return this.B.encrypt(a)};
g.yA.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.zA.prototype.encrypt=function(a,b){this.j||(this.j=new uA(this.u));pva(this.j,b);return this.j.encrypt(a)};
g.zA.prototype.decrypt=function(a,b){return this.encrypt(a,b)};AA.prototype.reset=function(){sva(this);this.update(this.B)};
AA.prototype.update=function(a){var b=0,c=a.length;this.C+=c;this.u&&64<=this.u+c&&(this.I.set(a.subarray(0,64-this.u),this.u),b=64-this.u,this.u=0,rva(this,this.I,0));for(;b+64<=c;b+=64)rva(this,a,b);b<c&&(a=a.subarray(b),this.I.set(a,this.u),this.u+=a.length)};
var BA=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];DA.prototype.Og=function(a,b){var c=this;b=void 0===b?1:b;this.j+=b;this.B+=a;var d=a/b;CA.forEach(function(e,f){d<e||(c.u[f]+=b)})};
DA.prototype.toString=function(){return""};
var CA=[20,100,500,2E3];g.k=Cva.prototype;g.k.isActive=function(){return!0};
g.k.YB=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.XD=a.prototype[e],d.aE=b[e],a.prototype[e]=function(f){return function(){var h=g.Ea.apply(0,arguments),l=(0,g.R)();h=f.XD.apply(this,h);EA(c,f.aE,(0,g.R)()-l);return h}}(d)),d={XD:d.XD,
aE:d.aE}}};
g.k.mq=function(a){return new Bva(a)};
g.k.ip=function(a,b){b=void 0===b?1:b;a instanceof Bva&&(EA(this,a.name,(0,g.R)()-a.startTimeMs,b),a.j=!0)};
g.k.XI=function(a,b){var c=void 0===c?1:c;var d=(0,g.R)();b();EA(this,a,(0,g.R)()-d,c)};
g.k.CN=function(){var a={},b;for(b in this.profiles)if(this.profiles.hasOwnProperty(b)){var c=this.profiles[b];if(0===c.j)c=null;else{for(var d=c.j.toString()+"."+Math.round(c.B).toString(),e=0;e<CA.length;++e)if(0<c.u[e])d+="."+CA[e].toString()+"_"+Math.round(c.u[e]).toString();else break;c=d}c&&(a[b]=c)}this.profiles=new Ava;return a};
g.k.toString=function(){return""};g.k=FA.prototype;g.k.isActive=function(){return!1};
g.k.YB=function(){};
g.k.mq=function(){};
g.k.ip=function(){};
g.k.XI=function(a,b){b()};
g.k.CN=function(){return{}};
g.k.toString=function(){return""};var A_,pS,B_,bP,KNa;A_=new FA;pS=Qp("html5_enable_profiler")||Qp("html5_onesie_enable_profiler")||Qp("html5_offline_encryption_enable_profiler")||0<Qp("html5_performance_impact_profiling_timer_ms")?new Cva:new FA;g.zN=Qp("html5_enable_profiler")?pS:A_;B_=Qp("html5_onesie_enable_profiler")?pS:A_;bP=Qp("html5_offline_encryption_enable_profiler")?pS:A_;KNa=Qp("html5_performance_impact_profiling_timer_ms")?pS:A_;g.w(GA,g.yA);GA.prototype.j=function(a,b){var c=B_.mq("oap");b=g.yA.prototype.j.call(this,a,b);B_.ip(c,Math.ceil(a.length/16));return b};
GA.prototype.u=function(a,b,c){var d=this,e,f;return g.B(function(h){if(1==h.j)return e=B_.mq("oan2"),g.A(h,g.yA.prototype.u.call(d,a,b,c),2);f=h.u;B_.ip(e,Math.ceil(a.byteLength/16));return h.return(f)})};
g.w(HA,g.zA);HA.prototype.encrypt=function(a,b){var c=B_.mq("oap");b=g.zA.prototype.encrypt.call(this,a,b);B_.ip(c,Math.ceil(a.byteLength/16));return b};JA.prototype.Uh=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.u+=a};
JA.prototype.Dh=function(){return this.j/(1-Math.pow(this.alpha,this.u))};KA.prototype.Uh=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.j&&(this.u=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.j;this.C=!0};
KA.prototype.Dh=function(){return this.D?(LA(this,this.B-this.D)+LA(this,this.B)+LA(this,this.B+this.D))/3:LA(this,this.B)};g.w(Mva,g.I);var Rva="blogger gac books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Wva={n3:"cbrand",o3:"cbr",q3:"cbrver",m9:"c",p9:"cver",o9:"ctheme",n9:"cplayer",dca:"cmodel",gda:"cnetwork",Cda:"cos",Dda:"cosver",iea:"cplatform"};g.w(qB,g.I);g.k=qB.prototype;g.k.K=function(a){return this.experiments.fb(a)};
g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.tB(this);d&&"www.youtube.com"===c?d="https://web.archive.org/web/20220603021303/https://youtu.be/"+a:g.fB(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,Iq&&(a=Dka())&&(b.ebc=a));return g.Mh(d,b)};
g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.tB(this)+"/embed/"+a;c&&(a=g.Mh(a,{list:c}));c=b.width;b=b.height;a=g.hg(a);return'<iframe width="'+c+'" height="'+b+'" src="'+a+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'};
g.k.supportsGaplessAudio=function(){return g.oz&&!Iq&&74<=fla()||g.Gw&&g.yc(68)?!0:!1};
g.k.getPlayerType=function(){return this.deviceParams.cplayer};
var $va=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"];g.k=iC.prototype;g.k.cg=function(){return this.j};
g.k.Mw=function(){return null};
g.k.qL=function(){var a=this.Mw();return a?(a=g.bq(a.j),Number(a.expire)):NaN};
g.k.mJ=function(){};
g.k.Vb=function(){return this.j.Vb()};
g.k.getHeight=function(){return this.j.video.height};awa.prototype.Pe=function(){dwa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.r(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Fc){if(e.Fc.getIsDefault()){c=e.Fc.getId();break a}c||(c=e.Fc.getId())}}d=g.r(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.I||!e.Fc||e.Fc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.r(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.j])for(e=g.r(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.Fc){p=f.Fc;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=kC(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(cwa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}c=g.r(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=RUa,d=(h=d.Fc)?'#EXT-X-MEDIA:URI="'+kC(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=0<this.D.length?RUa:void 0;d=g.r(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,h=b[e.j],l=void 0,0<(null==(l=h)?void 0:l.length)&&(h=h[0],h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(cwa(h,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(h+=",FRAME-RATE="+
e.fps),e.ow&&(h+=",VIDEO-RANGE="+e.ow),a.push(h),a.push(kC(this,e.url,"")));return a.join("\n")};
var RUa="text";g.w(lC,iC);lC.prototype.qL=function(){return this.expiration};
lC.prototype.Mw=function(){if(!this.u||this.u.isDisposed()){var a=this.B.Pe();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.u=new Cz(a)}return this.u};g.w(mC,iC);mC.prototype.Mw=function(){return new Cz(cx(this.u))};
mC.prototype.mJ=function(){this.u=hx(this.u)};g.w(nC,iC);nC.prototype.Mw=function(){return new Cz(this.u)};oC.prototype.getState=function(){return this.store.getState()};
oC.prototype.dispatch=function(a){return this.store.dispatch(a)};
oC.prototype.subscribe=function(a){return this.store.subscribe(a)};
oC.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
oC.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};for(var wwa={buttonEntity:358,captionTrack:225,channelHandle:275,commerceCartListEntity:236,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,iconBadgeEntity:229,liveChatPollStateEntity:217,logoEntity:245,mainDownloadsListEntity:164,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersVisibilityOverrideEntity:312,
musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pinnedProductEntity:273,
playbackData:119,quantityIncrementerEntity:356,refresh:148,transfer:120,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},vwa={},SUa=g.r(Object.entries(wwa)),C_=SUa.next();!C_.done;C_=SUa.next()){var TUa=g.r(C_.value),UUa=TUa.next().value,VUa=TUa.next().value,WUa=UUa,XUa=VUa;XUa&&(vwa[XUa]=WUa)};var D_;D_={};g.YUa=(D_.INVALID_ENCODER_VERSION="Invalid encoder version",D_.KEY_CREATION_FAILED="Failed to create encoder key",D_.UNKNOWN_DECODE_ERROR="Failed to decode PES data",D_.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",D_.WRONG_DATA_TYPE="Encoder cannot process the data type",D_);var pwa;
pwa=function(a){for(var b=Object.keys(a),c={},d=0;d<b.length;d++){var e=b[d];"function"===typeof a[e]&&(c[e]=a[e])}var f=Object.keys(c);try{eka(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},q=0;q<f.length;q++){var t=f[q],u=l[t],x=(0,c[t])(u,m);if("undefined"===typeof x)throw l=m&&m.type,Error("Given "+(l&&'action "'+String(l)+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');p[t]=
x;n=n||x!==u}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities: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.S(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.S(new g.Ar("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.Me(e.payload);return HC(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===
e.type){e=e.entityKey;try{var m=g.FC(e).entityType;l=HC(d,m,e)}catch(q){if(q instanceof Error)g.S(new g.Ar("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.S(new g.Ar("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.Me(e.payload);var n,p;return xwa(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 HC(a,c.entityType,c.key,c.TV);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 HC(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,xwa(a,c.entityType,c.key,c.TV,c.tka);default:return a}}});
g.vD=new oC;IC.prototype.toString=function(){return this.type+this.id};var ywa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},zwa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};g.MC.prototype.zf=function(a){a=a||"hqdefault.jpg";var b=this.W[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.j)return uB(this.u,this.j,a)};
g.MC.prototype.mm=function(){return this.u.getVideoUrl(this.videoId,this.playlistId)};g.NC.prototype.zf=function(a){a||(a="hqdefault.jpg");var b=this.W[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:uB(this.j,this.videoId,a)};
g.NC.prototype.mm=function(){return this.watchUrl||this.j.getVideoUrl(this.videoId)};var Bwa=["APP_STATE","PI"];var E_={},Fwa=g.As("yt-player-local-media",{gs:(E_.index={Ro:2},E_.media={Ro:2},E_.captions={Ro:5},E_),Ez:!1,upgrade:function(a,b){b(2)&&(g.Ur(a,"index"),g.Ur(a,"media"));b(5)&&g.Ur(a,"captions");b(6)&&(Vr(a,"metadata"),Vr(a,"playerdata"))},
version:5});OC.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
OC.prototype.get=function(a){return this.j.get(a)};
OC.prototype.remove=function(a){this.j.remove(a)};var PC=void 0;Cwa("LMS",function(){return g.B(function(a){return a.return(g.QC())})});var UC;UC=0;g.Nwa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Cwa("LMDB",function(){var a,b;return g.B(function(c){if(1==c.j)return g.A(c,g.ls(),2);if(3!=c.j){a=c.u;if(!a)throw g.Kr("edd");return g.A(c,g.TC(a),3)}b=c.u;return c.return(g.Wr(b,["index","media","captions"],{mode:"readonly",jc:!0},function(d){var e={};d=[g.$r(d.objectStore("index"),{},function(f){e[f.getKey()]=f.getValue();return f.continue()}),
woa(d.objectStore("media")),woa(d.objectStore("captions"))];return g.Mr.all(d).then(function(f){var h=g.r(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:Owa(f||[]),captions:h}})}))})});g.k=g.WC.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.j};
g.k.toString=function(){return this.languageCode+": "+g.XC(this)+" - "+this.vssId};
g.k.equals=function(a){return a?this.toString()===a.toString():!1};
g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Qwa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Rwa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Swa=/^(\d*)_((\d*)_?(\d*))$/;var F_={},uxa=(F_.ALWAYS=1,F_.BY_REQUEST=3,F_.UNKNOWN=void 0,F_),G_={},fxa=(G_.COLOR_PRIMARIES_BT709="bt709",G_.COLOR_PRIMARIES_BT2020="bt2020",G_.COLOR_PRIMARIES_UNKNOWN=null,G_.COLOR_PRIMARIES_UNSPECIFIED=null,G_),H_={},Uwa=(H_.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",H_.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",H_.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",H_.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",H_.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,H_.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,H_),I_={},bD=(I_.FAIRPLAY="fairplay",I_.PLAYREADY="playready",I_.WIDEVINE="widevine",I_.CLEARKEY=null,I_.FLASHACCESS=null,I_.UNKNOWN=null,I_.WIDEVINE_CLASSIC=null,I_),J_={},vxa=(J_.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",J_.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",J_.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",J_.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",J_),K_={},cxa=(K_.UNKNOWN=0,K_.RECTANGULAR=1,K_.EQUIRECTANGULAR=2,K_.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
3,K_.MESH=4,K_),L_={},exa=(L_.SPATIAL_AUDIO_TYPE_NONE=0,L_.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,L_.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,L_.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,L_),M_={},dxa=(M_.STEREO_LAYOUT_UNKNOWN=0,M_.STEREO_LAYOUT_LEFT_RIGHT=1,M_.STEREO_LAYOUT_TOP_BOTTOM=2,M_),N_={},bxa=(N_.FORMAT_STREAM_TYPE_UNKNOWN=0,N_.FORMAT_STREAM_TYPE_OTF=3,N_);g.w(cD,g.iu);cD.prototype.ea=function(){this.j&&(this.j=this.j.onload=null);g.iu.prototype.ea.call(this)};g.k=g.hD.prototype;g.k.getHeight=function(){return this.height};
g.k.PN=da(2);g.k.rA=function(){return this.frameCount};
g.k.isDefault=function(){return-1!==this.B.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.sA=function(a){var b=this.rA()-1;return g.Xf(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
g.k.Mt=function(){return this.frameCount-1};
g.k.CE=function(){return this.frameCount?0:-1};
g.k.rL=function(){};g.w(iD,cD);iD.prototype.u=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.I(e-1,d,a[e],b);(this.N||180>f.getHeight())&&c.push(f)}return c};
iD.prototype.I=function(a,b,c,d){return new g.hD(a,b,c,d)};g.w(jD,g.hD);g.k=jD.prototype;g.k.rA=function(){return this.u.getNumberOfSegments()};
g.k.sA=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.Mt=function(){return this.u.getLastSegmentNumber()};
g.k.CE=function(){return this.u.getFirstSegmentNumber()};
g.k.rL=function(a){this.u=a};g.w(kD,iD);kD.prototype.u=function(a,b){return iD.prototype.u.call(this,"$N|"+a,b)};
kD.prototype.I=function(a,b,c){return new jD(a,b,c,this.isLive)};g.w(g.mD,g.iu);g.k=g.mD.prototype;g.k.S=function(){return this.u};
g.k.K=function(a){return this.u.K(a)};
g.k.Qf=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Zc)||!a.qb)};
g.k.MP=function(){this.isDisposed()||(this.j.u||this.j.unsubscribe("refresh",this.MP,this),this.WM(-1))};
g.k.WM=function(a){if(!this.isLivePlayback||!this.V||"fairplay"!=this.V.flavor){var b=wua(this.j,this.sK);if(0<b.length){if(BD(this,"html5_clamp_cuepoints_to_min"))for(var c=g.r(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.getMinSeekableTime());this.X("cuepointupdated",b,a);this.sK+=b.length;c=BD(this,"html5_log_all_cuepoints")||2<=this.u.V;if(tD(this)&&c)for(b=g.r(b),d=b.next();!d.done;d=b.next())c=d.value,this.ra("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,
id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.Zw.start=this.Tw,this.Zw.end=c+3)}}};
g.k.Vi=function(){var a={};this.B&&(a.fmt=this.B.Vb(),this.I&&this.I.Vb()!=this.B.Vb()&&(a.afmt=this.I.Vb()));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Sh&&(a.infringe=1);this.zg&&(a.splay=1);var b=HD(this);b&&(a.live=b);this.Ov&&(a.sautoplay=1);this.Fm&&(a.autoplay=1);this.pM&&(a.sdetail=this.pM);this.Ga&&(a.partnerid=this.Ga);this.osid&&(a.osid=this.osid);return a};
g.k.wi=function(){if(this.cotn)return null;var a=g.UB(this.u)||this.K("web_l3_storyboard");if(!this.Wg)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Wg=new iD(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=Wba(this.j.j).index)&&(this.Wg=new kD(b.spec,this.j.isLive,c,a))}else this.yq?this.Wg=new iD(this.yq,this.lengthSeconds,void 0,!1,a):this.Es&&this.j&&
(b=Wba(this.j.j).index)&&(this.Wg=new kD(this.Es,this.j.isLive,b,a));return this.Wg};
g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.yq||this.Es};
g.k.Gd=function(){return this.j&&!isNaN(this.j.Gd())?this.j.Gd():tD(this)?0:this.lengthSeconds};
g.k.getMinSeekableTime=function(){return this.j&&!isNaN(this.j.getMinSeekableTime())?this.j.getMinSeekableTime():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.j&&this.B){var b=this.j.j[this.B.id];if(!b)return null;var c=b.index.getSegmentNumberForTime(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.isValid=function(){return!this.isDisposed()&&!(!this.videoId&&!this.Gj)};
g.k.isLoaded=function(){return nD(this)&&!this.ze&&!this.Bl};
g.k.zf=function(a){if(30==this.Ga)return(a=this.W["default.jpg"])?a:this.videoId?g.Mh("//web.archive.org/web/20220603021303/https://docs.google.com/vt",{id:this.videoId,authuser:this.authUser,authkey:this.authKey}):"//web.archive.org/web/20220603021303/https://docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.W[a];return b||this.u.N||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:uB(this.u,this.videoId,a)};
g.k.fg=function(){return this.isLivePlayback||this.Mf||this.di||!(!this.liveUtcStartSeconds||!this.gi)};
g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.Mf&&!this.isLivePlayback&&this.j.u)};
g.k.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.Sr||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.I&&!hz(this.I))return g.Ub(this.getAvailableAudioTracks(),function(d){return d.id==a.I.id})||this.zl;
if(this.Sr){if(!this.El)for(var b=g.r(this.Sr),c=b.next();!c.done;c=b.next())if(c=c.value,c.Fc.getIsDefault()){this.El=c;break}return this.El||this.zl}return this.zl};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.mm=function(){return this.watchUrl?this.watchUrl:this.u.getVideoUrl(this.videoId)};
g.k.tH=function(){return!!this.j&&(oua(this.j)||pua(this.j)||qua(this.j))};
g.k.isAd=function(){return!!this.adFormat};
g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.yJ=function(){return this.Xj||this.ge};
g.k.Fz=function(){return this.Ff||this.ge};
g.k.vF=function(){return BD(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){return!0};
g.k.ra=function(a,b,c){this.X("ctmp",a,b,c)};
g.k.YI=function(a,b,c){this.X("ctmpstr",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.ea=function(){g.iu.prototype.ea.call(this);delete this.wl;this.dn=null;delete this.K1;delete this.accountLinkingConfig;delete this.j;this.C=this.playerResponse=this.watchNextResponse=null;this.Lj=this.adaptiveFormats="";delete this.botguardData;this.Us={};this.Yc=this.suggestions=this.Iq=null};cE.prototype.vy=function(){return!1};
cE.prototype.va=function(){return function(){return null}};var kE=null;g.w(jE,g.iu);jE.prototype.Qx=function(a){return this.j.hasOwnProperty(a)?this.j[a].Qx():{}};
g.Ka("ytads.bulleit.getVideoMetadata",function(a){return lE().Qx(a)});
g.Ka("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=lE();c=bya(c);null!==c&&d.X(c,{queryId:a,viewabilityString:b})});g.w(qE,cE);g.k=qE.prototype;g.k.Vu=function(){return!0};
g.k.Gq=function(){return!1};
g.k.isSkippable=function(){return null!=this.oa};
g.k.Fh=function(){return this.J};
g.k.getVideoUrl=function(){return null};
g.k.vy=function(){return!0};g.w(xE,cE);xE.prototype.Vu=function(){return!0};
xE.prototype.Gq=function(){return!1};
xE.prototype.vy=function(){return!0};
xE.prototype.va=function(){return function(){return g.rg("video-ads")}};hya.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.j.j};var JQa={M1:"FINAL",Y1:"AD_BREAK_LENGTH",Z1:"AD_CPN",b2:"AH",d2:"AD_MT",e2:"ASR",g2:"AW",I3:"NM",J3:"NX",K3:"NY",S3:"CONN",e4:"CPN",t7:"DV_VIEWABILITY",M7:"ERRORCODE",Q7:"ERROR_MSG",S7:"EI",z8:"GOOGLE_VIEWABILITY",S8:"IAS_VIEWABILITY",q$:"LACT",E$:"LIVE_TARGETING_CONTEXT",O$:"I_X",P$:"I_Y",Hba:"MT",Lba:"MIDROLL_POS",Mba:"MIDROLL_POS_MS",Oba:"MOAT_INIT",Pba:"MOAT_VIEWABILITY",mea:"P_H",nea:"PV_H",oea:"PV_W",pea:"P_W",uea:"TRIGGER_TYPE",tfa:"SDKV",yga:"SLOT_POS",aha:"SURVEY_LOCAL_TIME_EPOCH_S",Zga:"SURVEY_ELAPSED_MS",
aV:"VIS",wia:"VIEWABILITY",xia:"VED",Dia:"VOL",Hia:"WT",Eja:"YT_ERROR_CODE"};var pya=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];DE.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.yn(a.baseUrl,lya(b,d,c));b={};if(a.headers){for(var f=g.r(a.headers),h=f.next();!h.done;h=f.next())switch(h.value.headerType){case "VISITOR_ID":this.K("enable_visitor_header_for_vss")&&g.P("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.P("VISITOR_DATA"));break;case "EOM_VISITOR_ID":this.K("enable_web_eom_visitor_data")&&g.P("EOM_VISITOR_DATA")&&(b["X-Goog-EOM-Visitor-Id"]=g.P("EOM_VISITOR_DATA"));break;case "USER_AUTH":var l=this.j();l&&
(b.Authorization="Bearer "+l);break;case "PLUS_PAGE_ID":var m=this.u();m&&(b["X-Goog-PageId"]=m)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"]}g.Gs(e,void 0,d,0!==Object.keys(b).length?b:void 0,"",this.K("ads_ping_with_credential"))}catch(n){}};g.w(EE,DE);EE.prototype.j=function(){return this.qn?g.WD(this.qn):""};
EE.prototype.u=function(){return this.qn?this.qn.S().pageId:""};
EE.prototype.K=function(a){return this.qn?this.qn.K(a):!1};FE.prototype.send=function(a,b,c){try{var d=a.match(Eh);if("https"===d[1])var e=a;else d[1]="https",e=Ch("https",d[2],d[3],d[4],d[5],d[6],d[7]);a=e;var f=tja(a);e=[];gq(a)&&(e.push({headerType:"USER_AUTH"}),e.push({headerType:"PLUS_PAGE_ID"}),e.push({headerType:"VISITOR_ID"}),e.push({headerType:"EOM_VISITOR_ID"}));this.Qq.send({baseUrl:a,scrubReferrer:f,headers:e},b,c)}catch(h){}};g.w(rya,g.I);g.w(WE,g.iu);g.k=WE.prototype;g.k.Qx=function(){return{}};
g.k.YQ=function(){};
g.k.Vf=function(a){this.Zq();this.X(a)};
g.k.Zq=function(){xya(this,this.oa,3);this.oa=[]};
g.k.getDuration=function(){return this.G.getDuration(2,!1)};
g.k.gy=function(){var a=this.j;GE(a)||!PE(a,"impression")&&!PE(a,"start")||PE(a,"abandon")||PE(a,"complete")||PE(a,"skip")||SE(a,"pause");this.C||(a=this.j,GE(a)||!PE(a,"unmuted_impression")&&!PE(a,"unmuted_start")||PE(a,"unmuted_abandon")||PE(a,"unmuted_complete")||SE(a,"unmuted_pause"))};
g.k.iy=function(){this.ma||this.N||this.Kk()};
g.k.Oi=function(){KE(this.j,this.getDuration());if(!this.C){var a=this.j;this.getDuration();GE(a)||(uya(a,0,!0),vya(a,0,0,!0),JE(a,"unmuted_complete"))}};
g.k.nm=function(){var a=this.j;!PE(a,"impression")||PE(a,"skip")||PE(a,"complete")||OE(a,"abandon");this.C||(a=this.j,PE(a,"unmuted_impression")&&!PE(a,"unmuted_complete")&&OE(a,"unmuted_abandon"))};
g.k.UG=function(){var a=this.j;HE(a)?JE(a,"skip"):!PE(a,"impression")||PE(a,"abandon")||PE(a,"complete")||JE(a,"skip")};
g.k.Kk=function(){if(!this.N){var a=this.yB();this.j.macros.AD_CPN=a;a=this.j;if(HE(a)){var b=a.j.getCurrentTime(2,!1);NE(a,"impression",b,0)}else JE(a,"impression");JE(a,"start");GE(a)||a.j.isFullscreen()&&OE(a,"fullscreen");this.N=!0;this.C=this.G.isMuted()||0==this.G.getVolume();this.C||(a=this.j,JE(a,"unmuted_impression"),JE(a,"unmuted_start"),GE(a)||a.j.isFullscreen()&&OE(a,"unmuted_fullscreen"))}};
g.k.pm=function(a){a=a||"";var b="",c="",d="";dE(this.G)&&(b=this.G.xb(2).state,this.G.Hd()&&(c=this.G.Hd().Pi(),null!=this.G.Hd().wk()&&(d=this.G.Hd().wk())));var e=this.j;e.macros=CE(e.macros,oya("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));JE(e,"error");this.C||(e=this.j,e.macros=CE(e.macros,oya("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d))),JE(e,"unmuted_error"))};
g.k.Fg=function(){};
g.k.DQ=function(){this.X("adactiveviewmeasurable")};
g.k.EQ=function(){this.X("adfullyviewableaudiblehalfdurationimpression")};
g.k.FQ=function(){this.X("adoverlaymeasurableimpression")};
g.k.GQ=function(){this.X("adoverlayunviewableimpression")};
g.k.HQ=function(){this.X("adoverlayviewableendofsessionimpression")};
g.k.IQ=function(){this.X("adoverlayviewableimmediateimpression")};
g.k.JQ=function(){this.X("adviewableimpression")};
g.k.dispose=function(){this.isDisposed()||(this.Zq(),this.u.unsubscribe("adactiveviewmeasurable",this.DQ,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.EQ,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.FQ,this),this.u.unsubscribe("adoverlayunviewableimpression",this.GQ,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.HQ,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.IQ,this),this.u.unsubscribe("adviewableimpression",
this.JQ,this),delete this.u.j[this.ad.I],g.iu.prototype.dispose.call(this))};
g.k.yB=function(){var a=this.G.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.k.uN=function(){return""};g.w(XE,cE);XE.prototype.Vu=function(){return!0};
XE.prototype.Gq=function(){return!1};g.w(YE,hE);g.w(ZE,WE);g.k=ZE.prototype;g.k.tA=function(){0<this.B&&this.Kk()};
g.k.Kk=function(){var a=this;this.pc=new g.K(function(){a.Oi();for(var b=g.r(a.D.j.completionCommands||[]),c=b.next();!c.done;c=b.next())a.I.executeCommand(c.value,a.macros);a.Vf("adended")},this.B,this);
g.J(this,this.pc);this.pc.start();yya(this,[new YE(this.D.j,this.macros)]);WE.prototype.Kk.call(this)};
g.k.nm=function(){WE.prototype.nm.call(this);this.Vf("adabandoned")};
g.k.Oi=function(){WE.prototype.Oi.call(this)};
g.k.Vf=function(a){this.pc&&this.pc.stop();WE.prototype.Vf.call(this,a)};g.w($E,cE);$E.prototype.Vu=function(){return!0};
$E.prototype.Gq=function(){return!1};g.w(aF,cE);aF.prototype.Vu=function(){return!0};
aF.prototype.Gq=function(){return!1};Aya.prototype.create=function(a,b){return a instanceof qE?this.C.create(a,b):a instanceof XE?this.j.create(a,b):a instanceof aF?this.B.create(a,b):a instanceof $E?this.u.create(a,b):null};g.w(bF,WE);g.k=bF.prototype;g.k.nm=function(){WE.prototype.nm.call(this);this.Vf("adabandoned")};
g.k.gy=function(){WE.prototype.gy.call(this);this.X("adpause",2)};
g.k.iy=function(){WE.prototype.iy.call(this);this.X("adplay",1)};
g.k.Kk=function(){WE.prototype.Kk.call(this);this.B.stop();this.D.P(this.G,g.Cv("bltplayback"),this.zT);var a=new g.Av(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.G.Vd([a],2);this.X("adplay",1)};
g.k.Oi=function(){WE.prototype.Oi.call(this);this.Vf("adended")};
g.k.pm=function(a){WE.prototype.pm.call(this,a);this.Vf("aderror")};
g.k.tA=function(){fE(this.G,!1);var a=this.I.u||{};a.autoplay="1";this.G.cueVideoByPlayerVars(a,2);this.B.start();this.G.playVideo(2);this.G.La("onAdIntroStateChange",1)};
g.k.Vf=function(a){this.B.stop();fE(this.G,!0);"adabandoned"!=a&&this.G.La("onAdComplete");this.G.La("onAdEnd");this.X(a);this.G.La("onAdIntroStateChange",0)};
g.k.zT=function(a){"bltcompletion"==a.getId()&&(this.G.Df("bltplayback",2),KE(this.j,this.getDuration()))};var EOa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);g.w(Cya,hE);g.w(eF,WE);g.k=eF.prototype;g.k.tA=function(){if(this.J){var a=this.B.j;if(!dF(a)){g.Bu(Error("adMessageRenderer is not augmented on playAd"));return}a=a.slot;for(var b=g.r(this.J.listeners),c=b.next();!c.done;c=b.next()){var d=c.value;c=a;Lya(d.j(),c);Mya(d.j(),c);d=d.j();d=g.r(d.je);for(var e=d.next();!e.done;e=d.next())e.value.Rj(c)}}0>=this.V&&(g.S(Error("durationMs was specified incorrectly with a value of: "+this.V)),this.Oi());this.Kk();this.G.addEventListener("progresssync",this.Y)};
g.k.nm=function(){WE.prototype.nm.call(this);this.Vf("adabandonedreset",!0)};
g.k.Kk=function(){var a=this.G.S();Dw("apbs",void 0,"video_to_ad");g.pw("ad_at","0_0","video_to_ad");WE.prototype.Kk.call(this);this.D=a.K("disable_rounding_ad_notify")?this.G.getCurrentTime():Math.floor(this.G.getCurrentTime());this.I=this.D+this.V/1E3;g.oB(a)?this.G.La("onAdMessageChange",{renderer:this.B.j,startTimeSecs:this.D}):yya(this,[new Cya(this.B.j)]);a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Lu(),c=this.B.j.videoAdBreakOffsetMsInt64;b&&g.vr("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.W=!0;b=this.B.j;if(!dF(b)){g.Bu(Error("adMessageRenderer is not augmented on ad started"));return}a=b.slot;b=b.layout;c=g.r(this.J.listeners);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a,f=b;Nya(d.j(),e);$U(d.j(),e,f)}}g.V(this.G.xb(1),512)&&(g.Bu(Error("player stuck during adNotify")),a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||
"",b=g.Lu(),c=this.B.j.videoAdBreakOffsetMsInt64,b&&g.vr("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.Oi())};
g.k.Oi=function(){WE.prototype.Oi.call(this);this.Vf("adended",!0)};
g.k.pm=function(a){g.Bu(Error("Player error during adNotify."));WE.prototype.pm.call(this,a);this.Vf("aderror",!0)};
g.k.Vf=function(a,b){(void 0===b?0:b)||g.Bu(Error("TerminateAd directly called from other class during adNotify."));this.G.removeEventListener("progresssync",this.Y);this.Zq();Fya(this,a);"adended"===a||"aderror"===a?this.X("adnotifyexitednormalorerror"):this.X(a)};
g.k.dispose=function(){this.G.removeEventListener("progresssync",this.Y);Fya(this);WE.prototype.dispose.call(this)};
g.k.Zq=function(){g.oB(this.G.S())?this.G.La("onAdMessageChange",{renderer:null,startTimeSecs:this.D}):WE.prototype.Zq.call(this)};hF.prototype.sendAdsPing=function(a){this.B.send(a,Gya(this),{})};
hF.prototype.yf=function(a){var b=this;if(a){var c=Gya(this);Array.isArray(a)?a.forEach(function(d){return b.j.executeCommand(d,c)}):this.j.executeCommand(a,c)}};g.w(iF,WE);g.k=iF.prototype;g.k.Qx=function(){return{currentTime:this.G.getCurrentTime(2,!1),duration:this.B.u,isPlaying:$xa(this.G),isVpaid:!1,isYouTube:!0,volume:this.G.isMuted()?0:this.G.getVolume()/100}};
g.k.tA=function(){var a=this.B.j.legacyInfoCardVastExtension,b=this.B.Fh();a&&b&&this.G.S().W.add(b,{qx:a});try{var c=this.B.j.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{Mfa(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.yf("//web.archive.org/web/20220603021303/https://tpc.googlesyndication.com/sodar/%{path}");g.Bu(new g.Ar("Load Sodar Error.",d instanceof wf,d.constructor===wf,{Message:e.message,"Escaped injector basename":g.hg(c.siub),"BG vm basename":c.bgub}));if(d.constructor===wf)throw e;}}catch(e){g.S(e)}fE(this.G,!1);a=
fya(this.B);b=this.G.S();a.iv_load_policy=b.isMobile||g.oB(b)||g.UB(b)?3:1;b=this.G.getVideoData(1);b.kh&&(a.ctrl=b.kh);b.Jh&&(a.ytr=b.Jh);b.jn&&(a.ytrcc=b.jn);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.qj&&(a.vss_credentials_token_type=b.qj),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.X("adunstarted",-1);this.V?this.I.start():(this.G.cueVideoByPlayerVars(a,2),this.I.start(),this.G.playVideo(2))};
g.k.gy=function(){WE.prototype.gy.call(this);this.X("adpause",2)};
g.k.iy=function(){WE.prototype.iy.call(this);this.X("adplay",1)};
g.k.Kk=function(){WE.prototype.Kk.call(this);this.I.stop();this.W.P(this.G,g.Cv("bltplayback"),this.AT);var a=new g.Av(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.G.Vd([a],2);a=mF(this);this.D.va=a;if(this.G.isMuted()){a=this.j;var b=this.G.isMuted();HE(a)||JE(a,b?"mute":"unmute")}this.X("adplay",1);if(null!==this.J){a=null!==this.D.j.getVideoData(1)?this.D.j.getVideoData(1).clientPlaybackNonce:"";b=Jya(this);for(var c=this.B,d=Iya(this),e=g.r(this.J.listeners),
f=e.next();!f.done;f=e.next()){f=f.value;var h=b,l=c,m=d,n=[],p=l.Fh(),q=l.getVideoUrl();p&&n.push(new XT(p));q&&n.push(new ZT(q));(q=(p=l.j)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new aU(q)),(q=q.elementId)&&n.push(new jU(q))):T("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new bU(p));l.j.adNextParams&&n.push(new MT(l.j.adNextParams||""));(p=l.ma)&&n.push(new NT(p));(p=f.Qa.get().Gf(2))?(n.push(new RT({channelId:p.lk,
channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new ST(p.isListed))):T("Expected meaningful PlaybackData on ad started.");n.push(new UT(l.B));n.push(new qU(l.u));n.push(new $T(a));n.push(new mU({current:this}));p=l.Ga;null!=p.kind&&n.push(new TT(p));(p=l.Da)&&n.push(new DU(p));void 0!==m&&n.push(new EU(m));f.j?T(f.j.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):Kya(f,h,n,!0,l.j.adLayoutLoggingData)}}this.G.La("onAdStart",
mF(this));a=g.r(this.B.j.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.k.AT=function(a){"bltcompletion"==a.getId()&&(this.G.Df("bltplayback",2),KE(this.j,this.getDuration()),lF(this,"adended"))};
g.k.Oi=function(){WE.prototype.Oi.call(this);this.Vf("adended");for(var a=g.r(this.B.j.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.k.nm=function(){WE.prototype.nm.call(this);this.Vf("adabandoned")};
g.k.jD=function(){var a=this.j;GE(a)||OE(a,"clickthrough");this.C||(a=this.j,GE(a)||OE(a,"unmuted_clickthrough"))};
g.k.Zy=function(){this.UG()};
g.k.UG=function(){WE.prototype.UG.call(this);this.Vf("adended")};
g.k.pm=function(a){WE.prototype.pm.call(this,a);this.Vf("aderror")};
g.k.Vf=function(a){this.I.stop();fE(this.G,!0);"adabandoned"!=a&&this.G.La("onAdComplete");lF(this,a);this.G.La("onAdEnd",mF(this));this.X(a)};
g.k.Zq=function(){var a=this.G.S();g.oB(a)&&(g.UB(a)||a.K("enable_topsoil_wta_for_halftime")||a.K("enable_topsoil_wta_for_halftime_live_infra")||g.oB(a))?this.G.La("onAdInfoChange",null):WE.prototype.Zq.call(this)};
g.k.YQ=function(){this.gX&&this.G.playVideo()};
g.k.gX=function(){return 2==this.G.getPlayerState(2)};
g.k.uN=function(a,b){if(!Number.isFinite(a))return g.S(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.S(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=fya(this.B);d=this.G.Wt(d,2,c,a,b);a+c>b&&this.G.gw(d,b-a);return d};
g.k.dispose=function(){$xa(this.G)&&!this.V&&this.G.stopVideo(2);lF(this,"adabandoned");WE.prototype.dispose.call(this)};nF.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={xx:null,SO:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.SO))if(b.SO=c,b.xx){if(c<b.xx.end){a:{c=b.xx;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.durationSecs;a=a<c.start||c.end<=a?null:a}null!==a&&(b.xx.end=a,this.u.LP(a))}}else if(a=Pya(a,
this.B))c=a.YW,b.xx=a.FV,this.u.xI(c)};
nF.prototype.updateTime=function(){};qF.prototype.Pg=function(a){var b=this.j;g.Qg(function(){return b.Pg(a,1)})};g.k=sF.prototype;g.k.au=function(a,b,c,d,e){var f=this;Xya(this,a,b,d,e,function(){f.contentCpn=null;f.adCpn=null;f.videoId=null;f.adVideoId=null;f.adFormat=null;f.B="AD_PLACEMENT_KIND_UNKNOWN";f.actionType="unknown_type";f.Se=!1;f.u=!1;f.C=!b&&0===c})};
g.k.EJ=function(){this.u=!1;var a={};!this.G.K("web_player_csi_ctt_killswitch")&&this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});ow("video_to_ad",a)};
g.k.FJ=function(){this.u=!1;var a={};!this.G.K("web_player_csi_ctt_killswitch")&&this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});ow("ad_to_ad",a)};
g.k.Vv=function(){this.u=!1;var a={};!this.G.K("web_player_csi_ctt_killswitch")&&this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});ow("ad_to_video",a);this.G.K("html5_csi_delay_pbresume")&&(this.G.Ti().u=this.G.getCurrentTime(1));this.G.K("send_csi_info_for_ad_to_video_killswitch")||Wya(this)};
g.k.oJ=function(){if(this.Se&&!this.u&&(this.C=!1,this.u=!0,"ad_to_video"!==this.actionType&&(mw("apbs",void 0,this.actionType),g.Q("finalize_all_timelines")))){var a=this.actionType;lw(a);ew(a);kw(a)}};
g.k.reset=function(){return new sF(this.G)};var O_={},P_=(O_.BUFFERING="buffering-mode",O_.CUED="cued-mode",O_.ENDED="ended-mode",O_.PAUSED="paused-mode",O_.PLAYING="playing-mode",O_.SEEKING="seeking-mode",O_.UNSTARTED="unstarted-mode",O_);var ZUa,Q_,$ya;
ZUa={w2:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Y2:"AUTHENTICATION_MALFORMED",Z2:"AUTHENTICATION_MISSING",j3:"BAD_REQUEST",w3:"CAST_SESSION_DEVICE_MISMATCHED",x3:"CAST_SESSION_VIDEO_MISMATCHED",y3:"CAST_TOKEN_EXPIRED",z3:"CAST_TOKEN_FAILED",A3:"CAST_TOKEN_MALFORMED",B3:"CGI_PARAMS_MALFORMED",C3:"CGI_PARAMS_MISSING",h7:"DEVICE_FALLBACK",N7:"GENERIC_WITH_LINK_AND_CPN",O7:"ERROR_HDCP",P7:"LICENSE",R7:"VIDEO_UNAVAILABLE",d8:"FORMAT_UNAVAILABLE",r8:"GEO_FAILURE",K8:"HTML5_AUDIO_RENDERER_ERROR",
L8:"GENERIC_WITHOUT_LINK",M8:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",N8:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",O8:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",t9:"INVALID_DRM_MESSAGE",Iea:"PURCHASE_NOT_FOUND",Jea:"PURCHASE_REFUNDED",Xea:"RENTAL_EXPIRED",kfa:"RETRYABLE_ERROR",Afa:"SERVER_ERROR",Pga:"STOPPED_BY_ANOTHER_PLAYBACK",Tga:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Uga:"STREAMING_NOT_ALLOWED",Vga:"STREAM_LICENSE_NOT_FOUND",jha:"TOO_MANY_REQUESTS",lha:"TOO_MANY_REQUESTS_WITH_LINK",
mha:"TOO_MANY_STREAMS_PER_ENTITLEMENT",nha:"TOO_MANY_STREAMS_PER_USER",eia:"UNSUPPORTED_DEVICE",ria:"VIDEO_FORBIDDEN",uia:"VIDEO_NOT_FOUND"};Q_={};
g.BJ=(Q_.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",Q_.DEVICE_FALLBACK="Sorry, this video is not available on this device.",Q_.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",Q_.LICENSE="Sorry, there was an error licensing this video.",Q_.VIDEO_UNAVAILABLE=
"Video unavailable",Q_.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",Q_.GEO_FAILURE="This video isn't available in your country.",Q_.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",Q_.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",Q_.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",Q_.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",
Q_.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",Q_.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",Q_.PURCHASE_NOT_FOUND="This video requires payment.",Q_.PURCHASE_REFUNDED="This video's purchase has been refunded.",Q_.RENTAL_EXPIRED="This video's rental has expired.",Q_.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",Q_.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
Q_.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",Q_.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",Q_.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",Q_.SERVER_ERROR="There was an internal server error. Please try again later.",Q_.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",Q_.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
Q_.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",Q_.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",Q_.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",Q_.TOO_MANY_REQUESTS="Please log in to watch this video.",Q_.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",Q_.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
Q_.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",Q_.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",Q_.VIDEO_FORBIDDEN="Access to this video is forbidden.",Q_.VIDEO_NOT_FOUND="This video can not be found.",Q_);
$ya={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",
5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};tF.prototype.then=function(a,b){return this.promise.then(a,b)};
tF.prototype.resolve=function(a){this.u(a)};
tF.prototype.reject=function(a){this.j(a)};g.w(uF,g.I);g.k=uF.prototype;g.k.uA=function(){return this.u};
g.k.Ut=function(a){var b="";a&&(dza(this,a),b=a.j);if(!this.dg()||b)b&&this.dg()!==b&&(this.yA(b),delete this.B,this.C&&(this.C.reject(),delete this.C)),$Ua||a&&a.u||this.load(),this.N||(this.addEventListener("volumechange",this.YM),this.N=!0)};
g.k.Br=function(){if(this.B){var a=this.B;this.B=void 0;return a}a=this.mf();a=window.MediaSource?new Dz(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new Dz(new window.WebKitMediaSource,void 0,!1):new Dz(void 0,a,!1);this.Ut(a.Hy);return a};
g.k.playVideo=function(){var a=this;this.Gg()&&this.seekTo(0);!this.dg()&&this.u&&(g.Vp(Error("playVideo without src")),this.yA(this.u.j),this.u.u||this.load());var b=this.play();!b&&aVa&&NJ&&7<=($D||0)&&g.Jpa(this,"playing",function(){g.kq(function(){cza(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.Pi()&&(bVa&&NJ&&4>$D&&(a=Math.max(.1,a)),this.xA(a))};
g.k.stopVideo=function(){var a=this;if(!this.B)if(R_){if(!this.C){var b=new tF;b.then(void 0,function(){});
this.C=b;cVa&&this.pause();g.kq(function(){a.C===b&&(xF(a),b.resolve())},200)}}else xF(this)};
g.k.Ku=function(){var a=this.Eg();return 0<xz(a)&&this.getDuration()?wz(a,this.getCurrentTime()):0};
g.k.zr=function(){var a=this.getDuration();return Infinity===a?1:a?this.Ku()/a:0};
g.k.Nb=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:tz(this.Cr(),",",3),vbu:tz(this.Eg()),vpa:""+ +this.Vm(),vsk:""+ +this.Hg(),ven:""+ +this.Gg(),vpr:""+this.getPlaybackRate(),vrs:""+this.Pi(),vns:""+this.GB(),vec:""+this.wk(),vemsg:this.rf(),vvol:""+this.getVolume(),vdom:""+ +this.sH(),vsrc:""+ +!!this.dg(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.D.Ma(a,b,!1,this);this.jG(a)};
g.k.removeEventListener=function(a,b){this.D.vc(a,b,!1,this)};
g.k.dispatchEvent=function(a){return this.C&&"pause"===a.type?!1:this.D.dispatchEvent(a)};
g.k.hG=function(){this.J=!1};
g.k.eG=function(){this.J=!0;this.Qv(!0)};
g.k.YM=function(){this.J&&!this.FB()&&this.Qv(!0)};
g.k.equals=function(a){return!!a&&a.mf()===this.mf()};
g.k.ea=function(){this.N&&this.removeEventListener("volumechange",this.YM);R_&&xF(this);g.I.prototype.ea.call(this)};
var $Ua=!1,fza=!0,aVa=!0,bVa=!0,R_=!1,cVa=!1;g.k=g.zF.prototype;g.k.getData=function(){return this.stateData};
g.k.Kc=function(){return g.V(this,8)&&!g.V(this,512)&&!g.V(this,64)&&!g.V(this,2)};
g.k.isCued=function(){return g.V(this,64)&&!g.V(this,8)&&!g.V(this,4)};
g.k.isError=function(){return g.V(this,128)};
g.k.isSuspended=function(){return g.V(this,512)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};g.w(JF,g.iu);g.k=JF.prototype;g.k.Jr=function(){var a=this.u;return a.u instanceof qE||a.u instanceof xE||a.u instanceof rE};
g.k.vE=function(){return this.u.u.Gq()};
g.k.gL=function(){return this.u.j};
g.k.wE=function(){return"AD_PLACEMENT_KIND_START"==this.u.j.j};
g.k.hL=function(){return yE(this.u)};
g.k.ZN=function(a){if(!Fv(a)){this.V&&(this.ma=this.G.isAtLiveHead(),this.oa=Math.ceil(g.Ua()/1E3));var b=new qF(this.Xg);a=Rya(a);b.Pg(a)}this.iL()};
g.k.FO=function(){return!0};
g.k.Ay=function(){return this.J instanceof qE};
g.k.iL=function(){var a=this.Xg;this.FO()&&(a.u&&MF(a,!1),a.u=this,this.Jr()&&HAa(a));this.D.EJ();this.tQ()};
g.k.tQ=function(){this.J?this.Nw(this.J):NF(this)};
g.k.onAdEnd=function(a,b){b=void 0===b?!1:b;this.Vj(0);NF(this,b)};
g.k.yP=function(){this.onAdEnd()};
g.k.RX=function(){JE(this.j.j,"active_view_measurable")};
g.k.UX=function(){var a=this.j.j;GE(a)||RE(a)||JE(a,"active_view_fully_viewable_audible_half_duration")};
g.k.XX=function(){};
g.k.YX=function(){};
g.k.ZX=function(){};
g.k.aY=function(){};
g.k.dY=function(){var a=this.j.j;GE(a)||RE(a)||JE(a,"active_view_viewable")};
g.k.SX=function(){var a=this.j.j;GE(a)||RE(a)||JE(a,"audio_audible")};
g.k.TX=function(){var a=this.j.j;GE(a)||RE(a)||JE(a,"audio_measurable")};
g.k.IN=function(){return this.Ay()?[this.IB()]:[]};
g.k.Wc=function(a){if(null!==this.j){this.Y||(a=new g.TE(a.state,new g.zF),this.Y=!0);var b=a.state;if(g.VE(a,2))this.j.Oi();else{var c=a;(this.G.S().experiments.fb("html5_bulleit_handle_gained_playing_state")?c.state.Kc()&&!c.Up.Kc():c.state.Kc())?(this.D.oJ(),this.j.iy()):b.isError()?this.j.pm(b.getData().errorCode):g.VE(a,4)&&(this.W||this.j.gy())}if(null!==this.j){if(g.VE(a,16)&&(b=this.j.j,!(GE(b)||.5>b.j.getCurrentTime(2,!1)&&!b.j.S().K("html5_dai_pseudogapless_seek_killswitch")))){c=b.ad;if(c.vy()){var d=
b.B.G.S().K("html5_dai_enable_active_view_creating_completed_adblock");qja(c.I,d)}b.ad.D.seek=!0}0>UE(a,4)&&!(0>UE(a,2))&&(b=this.j,c=b.j,GE(c)||SE(c,"resume"),b.C||(b=b.j,GE(b)||SE(b,"unmuted_resume")));!this.G.S().experiments.fb("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.VE(a,512)&&!g.HF(a.state)&&this.D.Vv()}}};
g.k.onVideoDataChange=function(){return this.daiEnabled?hza(this):!1};
g.k.resume=function(){this.j&&this.j.YQ()};
g.k.gp=function(){this.j&&this.j.Vf("adended")};
g.k.cm=function(){this.gp()};
g.k.Vj=function(a){this.Xg.Vj(a)};
g.k.BT=function(a){this.Xg.j.La("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.j.Fg(a)};
g.k.GN=function(){return 0};
g.k.HN=function(){return 1};
g.k.bK=function(a){this.daiEnabled&&this.u.I&&this.u.j.start<=a&&a<LF(this)&&this.G.er(a,this.u.j.end)};
g.k.Nw=function(a){g.ze(this.j);this.j=a=this.Oq.create(a,BE(mya(this.u)),this.u.j.j);this.IH(a);a.ma?a.pm("ui_unstable"):a.tA();iza(this,!1)};
g.k.IH=function(a){a.subscribe("adabandoned",g.Ta(this.onAdEnd,!0),this);a.subscribe("adabandonedreset",g.Ta(this.onAdEnd,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.RX,this);a.subscribe("adended",this.onAdEnd,this);a.subscribe("aderror",this.yP,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.UX,this);a.subscribe("adoverlaymeasurableimpression",this.XX,this);a.subscribe("adoverlayunviewableimpression",this.YX,this);a.subscribe("adoverlayviewableendofsessionimpression",
this.ZX,this);a.subscribe("adoverlayviewableimmediateimpression",this.aY,this);a.subscribe("adpause",this.ZG,this);a.subscribe("adplay",this.ZG,this);a.subscribe("adunstarted",this.ZG,this);a.subscribe("onAdUxUpdate",this.BT,this);a.subscribe("adviewableimpression",this.dY,this);a.subscribe("adaudioaudible",this.SX,this);a.subscribe("adaudiomeasurable",this.TX,this)};
g.k.ZG=function(a){this.Vj(a)};
g.k.IB=function(){return this.J};
g.k.isLiveStream=function(){return this.V};
g.k.reset=function(){return new JF(this.Xg,this.G,this.D.reset(),this.u,this.vn,this.vu,this.Oq,this.daiEnabled)};
g.k.ea=function(){g.ze(this.j);this.j=null;g.iu.prototype.ea.call(this)};nza.prototype.create=function(a){return(a.u instanceof rE?this.B:""===a.D?this.j:this.u)(a)};OF.prototype.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.Lu(void 0===c?0:c))?($qa(this.client,c,g.Eu(a),b),b=!0):b=!1:b=!1;return b};RF.prototype.handleResponse=function(a,b){var c,d;b=(null==(c=b.ym.context)?void 0:null==(d=c.request)?void 0:d.consistencyTokenJars)||[];var e;(a=null==(e=a.responseContext)?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
RF.prototype.replace=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];tza(this,b)};var dVa=window.location.hostname.split(".").slice(-2).join("."),S_;SF.getInstance=function(){S_=g.La("yt.clientLocationService.instance");S_||(S_=new SF,g.Ka("yt.clientLocationService.instance",S_));return S_};
SF.prototype.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.j?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(1E7*this.j.coords.latitude),a.client.locationInfo.longitudeE7=Math.floor(1E7*this.j.coords.longitude),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)};
SF.prototype.handleResponse=function(a){var b;a=null==(b=a.responseContext)?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.j=void 0,"TVHTML5"===g.P("INNERTUBE_CLIENT_NAME")?(this.localStorage=uza(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.yq("YT_CL",JSON.stringify({loctok:a}),15552E3,dVa,!0))};
SF.prototype.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition)||!g.Q("web_enable_browser_geolocation_api")&&!g.Q("enable_handoff_location_2fa_on_mweb"))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;g.Q("enable_handoff_location_2fa_on_mweb")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
SF.prototype.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null==a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};UF.prototype.BB=function(a,b){a={};var c=th([]);c&&(a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.P("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.Q("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c),"INNERTUBE_HOST_OVERRIDE"in Op||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in Op&&(a["X-Goog-PageId"]=g.P("DELEGATED_SESSION_ID")));return a};var WF;g.w(VF,UF);VF.prototype.BB=function(a,b){a=UF.prototype.BB.call(this,a,b);return Object.assign({},a,this.Hs)};var Iza=/[&\?]action_proxy=1/,Hza=/[&\?]token=([\w-]*)/,Jza=/[&\?]video_id=([\w-]*)/,Kza=/[&\?]index=([\d-]*)/,Lza=/[&\?]m_pos_ms=([\d-]*)/,Oza=/[&\?]vvt=([\w-]*)/,Cza="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),Mza="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),Eza={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"},Fza={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Nza={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};YF.prototype.ov=function(a){this.player.Ti().tick(a)};
YF.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return $F(this,a,b);var d=1===this.j;d&&this.ov("a_bid_s");var e=xza();if(null!==e)return d&&this.ov("a_bid_f"),$F(this,a,b,e);e=yza();d&&Xg(e,function(){c.ov("a_bid_f")});
return e.then(function(f){return $F(c,a,b,f)})};
YF.prototype.reset=function(){this.u=this.j=1};g.w(aG,g.iu);g.k=aG.prototype;g.k.gL=function(){return this.j.j};
g.k.wE=function(){return"AD_PLACEMENT_KIND_START"==this.j.j.j};
g.k.hL=function(){return yE(this.j)};
g.k.Jr=function(){return!1};
g.k.vE=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.ZN=function(a){var b=this;T("Fetching logic is still in use while live midroll is on PACF");if(1!==this.j.B&&2!==this.j.B){var c=[];this.wE()||(c=Rya(a));this.j.B=1;Xg(this.C.fetch(this.j.D,{wx:this.j.C||void 0,Md:this.j.j}).then(function(d){if(!b.isDisposed()){var e=c;b.D.isFullscreen();d=Pza(b,d);var f=b.B;f.j&&d.isEmpty&&Vya("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.u);d.GO||(b.j.B=2,(new qF(b.u)).Pg(e),d.isEmpty||lra(b.I,d.hn))}},function(){(new qF(b.u)).Pg(c);
var d=b.B;d.j&&Vya("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.u)}),function(){2!==b.j.B&&(b.j.B=0);
b.wE()&&pG(b.u)})}};
g.k.iL=function(){};
g.k.bK=function(){};g.w(bG,cE);bG.prototype.Vu=function(){return!0};
bG.prototype.Gq=function(){return!1};var Sza=Object.freeze([XE,$E,xE,bG,qE]);g.w(cG,JF);g.k=cG.prototype;g.k.IN=function(){for(var a=this.B.j,b=g.r(a),c=b.next();!c.done;c=b.next());return a};
g.k.FO=function(){return(0>=this.C?this.B.j:this.B.j.slice(this.C)).some(function(a){return a.Vu()})};
g.k.Ay=function(){return this.I instanceof qE||this.I instanceof $E};
g.k.tQ=function(){this.daiEnabled?dE(this.G)&&hza(this):Rza(this)};
g.k.Nw=function(a){var b=Qza(a);this.I&&b&&this.N!==b&&(b?HAa(this.Xg):JAa(this.Xg),this.N=b);this.I=a;this.daiEnabled&&(this.C=this.B.j.findIndex(function(c){return c===a}));
JF.prototype.Nw.call(this,a)};
g.k.IH=function(a){var b=this;JF.prototype.IH.call(this,a);a.subscribe("adnotifyexitednormalorerror",function(){return void NF(b)})};
g.k.cm=function(){this.C=this.B.j.length;this.j&&this.j.Vf("adended");NF(this)};
g.k.gp=function(){this.onAdEnd()};
g.k.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Vj(0),a?NF(this,b):Rza(this))};
g.k.yP=function(){if(1==this.B.u)this.I instanceof aF&&g.Bu(Error("AdNotify error with FailureMode.TERMINATING")),NF(this);else this.onAdEnd()};
g.k.IB=function(){var a=0>=this.C?this.B.j:this.B.j.slice(this.C);return 0<a.length?a[0]:null};
g.k.Jr=function(){return this.N};
g.k.vE=function(){return this.B.j.every(function(a){return a.Gq()})};
g.k.reset=function(){return new cG(this.Xg,this.G,this.D.reset(),this.u,this.vn,this.vu,this.Oq,this.daiEnabled)};
g.k.GN=function(){return this.C};
g.k.HN=function(){return this.B.j.length};Tza.prototype.EN=function(){return this.j};g.w(Uza,rE);g.w(Wza,rE);Xza.prototype.create=function(a,b){function c(h){return new qE(h,d.B,b,d.j,d.u)}
var d=this,e=a.instreamVideoAdRenderer,f=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new Wza(f,c,this.j):null!=a?new Uza(a,c):null};Yza.prototype.create=function(a,b,c,d){d=void 0===d?null:d;var e=[];c=void 0===c?0:c;if(d){d=g.r(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var h=b,l=new rra(h.B,h.u,h.daiEnabled,h.C),m=h.hf;m&&(l.hf=new rv(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.j));h.j&&(l.j=h.j);l.visible=h.visible;h=l;h.hf=f;e.push(Zza(this,a[0],c,h));c++}}else for(a=g.r(a),d=a.next();!d.done;d=a.next())e.push(Zza(this,d.value,c,b)),c++;return e};g.w(dG,g.I);dG.prototype.addEventListener=function(a,b){this.j=b};
dG.prototype.removeEventListener=function(){this.j=null};
g.w(eG,g.I);eG.prototype.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};
eG.prototype.removeEventListener=function(a,b){this.j.removeEventListener(a,b)};g.w(bAa,g.I);var fG=null,gG=null,hG=null,iG=null;g.Ka("yt.www.ads.eventcache.getLastCompanionData",function(){return fG});
g.Ka("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Ka("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return gG});
g.Ka("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return hG});
g.Ka("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return iG});var mAa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.w(lG,g.I);lG.prototype.ea=function(){this.ue.clear();g.I.prototype.ea.call(this)};
lG.prototype.yf=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a=g.r(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
lG.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&nAa(this,"loggingUrls",a.loggingUrls,b,c);a=g.r(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.r(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?jAa(this,e):"confirmDialogEndpoint"===d?kAa(this,e):mAa.hasOwnProperty(d)||nAa(this,d,e,b,c)}};g.w(nG,sF);g.k=nG.prototype;g.k.au=function(){};
g.k.EJ=function(){};
g.k.FJ=function(){};
g.k.Vv=function(){};
g.k.oJ=function(){};
g.k.reset=function(){return new nG(this.G)};g.w(sAa,g.I);g.w(oG,g.iu);g.k=oG.prototype;g.k.bH=function(){return!BAa(this,FAa(this))};
g.k.yB=function(){return this.va};
g.k.ea=function(){this.Y=!0;g.hu(this.C);if(eE(this.j)){var a=vAa(this.j);a.removeEventListener("updateKevlarOrC3Companion",cAa);a.removeEventListener("updateEngagementPanelAction",dAa);a.removeEventListener("changeEngagementPanelVisibility",eAa);window.removeEventListener("yt-navigate-start",fAa);iG=hG=gG=fG=null}a=g.r(this.B.values());for(var b=a.next();!b.done;b=a.next())IAa(this,b.value);MF(this,!1);this.Pq.clear();this.V=[];this.J.clear();g.ze(this.W);this.W=new Map;g.ze(this.I);this.I=new Map;
this.B.clear();g.iu.prototype.ea.call(this)};
g.k.kI=function(a){if(a instanceof Ev&&!a.B&&(!Fra(a)||a.contains(1E3*this.j.getCurrentTime(1)||0)))if(g.V(this.j.xb(1),32))this.J.add(a);else{var b=this.B.get(a);b&&((this.j.S().experiments.fb("enable_eviction_protection_for_bulleit")?this.u?this.u.vE():1:1)?b.ZN(a):a.deactivate())}};
g.k.DY=function(a){a instanceof Ev&&(a.B&&(a.B=!1),this.J.delete(a))};
g.k.xI=function(){};
g.k.LP=function(a){var b=1E3*a;this.u&&this.u.bK(b);for(var c=g.r(this.B.values()),d=c.next();!d.done;d=c.next())d.value.bK(b);g.pc(this.Ga.j,1E3*a)};
g.k.Em=function(a){switch(a){case "control_play":this.u&&(a=this.u,a.Ay()&&a.G.Ic().playVideo());break;case "control_pause":this.u&&(a=this.u,a.Ay()&&a.G.Ic().pauseVideo())}};
g.k.DT=function(a){this.u&&this.u.Wc(a)};
g.k.nY=function(a){0>UE(a,16)&&(this.J.forEach(this.kI,this),this.J.clear())};
g.k.E_=function(){if(this.u)this.u.onVideoDataChange()};
g.k.H_=function(){if(dE(this.j)&&this.u){var a=this.j.getCurrentTime(2,!1),b=this.u;b.j&&zya(b.j,a)}};
g.k.PX=function(){this.Pa=!0;if(this.u){var a=this.u;a.j&&a.j.nm()}};
g.k.bY=function(a){if(this.u)this.u.onAdUxClicked(a)};
g.k.I_=function(){if(2==this.j.getPresentingPlayerType()&&this.u){var a=this.u.j,b=a.j,c=a.G.isMuted();HE(b)||JE(b,c?"mute":"unmute");a.C||(b=a.G.isMuted(),JE(a.j,b?"unmuted_mute":"unmuted_unmute"))}};
g.k.MY=function(a){if(this.u){var b=this.u.j,c=b.j;GE(c)||OE(c,a?"fullscreen":"end_fullscreen");b.C||(b=b.j,GE(b)||OE(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}};
g.k.Pg=function(a,b){this.j.Pg(a,b);a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Pq.delete(b),this.B.delete(b)};
g.k.q1=function(){for(var a=[],b=g.r(this.Pq),c=b.next();!c.done;c=b.next())c=c.value,Fv(c)||a.push(c);b=this.j.app;1!==b.getPresentingPlayerType()||TS(b,"cuerangemarkersupdated",a)};
g.k.Vj=function(a){this.j.Vj(a);switch(a){case 1:this.WB=1;break;case 0:this.WB=0}};
g.k.BJ=function(){var a=this.j.getVideoData(2);return a?a.isListed&&!this.N:!1};
g.k.gp=function(){this.u&&this.u.Jr()&&this.u.gp()};
g.k.cm=function(){this.u&&this.u.Jr()&&this.u.cm()};
g.k.qB=function(){};
g.k.VA=function(){};
g.k.Sb=function(a){if(this.u){var b=this.u;b.j&&zya(b.j,a)}};
g.k.executeCommand=function(a,b,c){this.kb.executeCommand(a,b,EAa(this,void 0===c?null:c))};
g.k.isDaiEnabled=function(){return!1};
g.k.EN=function(){return this.ma};
g.k.FN=function(){return this.Da};g.w(qG,g.I);qG.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.j.appendChild(a.j)};
g.w(rG,qG);g.w(MAa,g.I);var OAa=1;g.w(g.tG,g.I);g.k=g.tG.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.F;var c=a.L,d=a.Ba;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.F);g.YB&&(a.T||(a.T={}),a.T.focusable="false")}else e=g.zg(a.F);if(c){if(c=uG(this,e,"class",c))vG(this,e,"class",c),this.Zb[c]=e}else if(d){c=g.r(d);for(var f=c.next();!f.done;f=c.next())this.Zb[f.value]=e;vG(this,e,"class",d.join(" "))}d=a.Z;c=a.R;if(d)b=uG(this,e,"child",d),void 0!==b&&e.appendChild(g.Ag(b));else if(c)for(d=0,c=g.r(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=uG(this,e,"child",f),null!=f&&e.appendChild(g.Ag(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Jb&&(h=sG(),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.Cg(e,f,d++))}if(a=a.T)for(b=e,d=g.r(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],vG(this,b,c,"string"===typeof f?
uG(this,b,c,f):f);return e};
g.k.ya=function(a){return this.Zb[a]};
g.k.xa=function(a,b){"number"===typeof b?g.Cg(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.Dg(this.element)};
g.k.update=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.Ha(c,a[c])};
g.k.Ha=function(a,b){(a=this.Ke["{{"+a+"}}"])&&vG(this,a[0],a[1],b)};
g.k.ea=function(){this.Zb={};this.Ke={};this.detach();g.I.prototype.ea.call(this)};g.w(g.W,g.tG);g.k=g.W.prototype;g.k.Jd=function(a,b){this.Ha(b||"content",a)};
g.k.show=function(){this.ob||(g.al(this.element,"display",""),this.ob=!0)};
g.k.hide=function(){this.ob&&(g.al(this.element,"display","none"),this.ob=!1)};
g.k.dc=function(a){this.oa=a};
g.k.Ma=function(a,b,c){return this.P(this.element,a,b,c)};
g.k.P=function(a,b,c,d){c=(0,g.Sa)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.vc=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;Hg(a);a.focus()};
g.k.ea=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.tG.prototype.ea.call(this)};g.w(g.xG,g.W);g.xG.prototype.subscribe=function(a,b,c){return this.Sa.subscribe(a,b,c)};
g.xG.prototype.unsubscribe=function(a,b,c){return this.Sa.unsubscribe(a,b,c)};
g.xG.prototype.wg=function(a){return this.Sa.wg(a)};
g.xG.prototype.X=function(a){return this.Sa.X.apply(this.Sa,[a].concat(g.v(g.Ea.apply(1,arguments))))};var eVa=new WeakSet;g.w(yG,g.xG);g.k=yG.prototype;g.k.bind=function(a){if(!this.Ta&&a.renderer){var b=this.api.S().K("enable_macro_substitution_on_html5")?{}:Object.assign({},LAa(this.api,this.Za),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.k.init=function(a,b,c){this.Ta=a;this.element.setAttribute("id",this.Ta);this.kb&&g.N(this.element,this.kb);this.V=b&&b.adRendererCommands;this.macros=c;this.J=b.trackingParams||null;null!=this.J&&this.Yh(this.element,this.J)};
g.k.clear=function(){};
g.k.hide=function(){g.xG.prototype.hide.call(this);null!=this.J&&this.Wa(this.element,!1)};
g.k.show=function(){g.xG.prototype.show.call(this);if(!this.qb){this.qb=!0;var a=this.V&&this.V.impressionCommand;a&&this.oD(a,null)}null!=this.J&&this.Wa(this.element,!0)};
g.k.onClick=function(a){if(this.J&&!eVa.has(a)){var b=this.element;this.api.In(b)&&this.ob&&this.api.sb(b,this.j);eVa.add(a)}if(a=this.V&&this.V.clickCommand)a=this.CQ(a),this.oD(a,this.JN())};
g.k.CQ=function(a){return a};
g.k.JN=function(){return null};
g.k.GT=function(a){var b=this.Y;b.J=!0;b.u=a.touches.length;b.j.isActive()&&(b.j.stop(),b.D=!0);a=a.touches;b.I=NAa(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.N=Infinity,b.V=Infinity):(b.N=c.clientX,b.V=c.clientY);for(c=b.B.length=0;c<a.length;c++){var d=a.item(c);b.B.push(d.identifier)}};
g.k.FT=function(a){var b=this.Y;a=a.changedTouches.item(0);if(Nb()&&!(0<=g.sb(Qb(),8))||a&&Math.pow(a.clientX-b.N,2)+Math.pow(a.clientY-b.V,2)>Math.pow(5,2))b.C=!0};
g.k.ET=function(a){if(this.Y){var b=this.Y,c=a.changedTouches;c&&b.J&&1==b.u&&!b.C&&!b.D&&!b.I&&NAa(b,c)&&(b.W=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.oD=function(a){this.api.S().K("enable_macro_substitution_on_html5")?(0<Object.keys(this.macros).length&&g.Bu(new g.Ar("There are non-empty macros passed to the runCommand method.",{componentType:this.componentType})),this.layoutId?this.Ua.executeCommand(a,this.layoutId):g.S(new g.Ar("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))):ZG(this.Ua,a,this.macros)};
g.k.Yh=function(a,b){this.api.Yh(a,this);this.api.dl(a,b)};
g.k.Wa=function(a,b){this.api.In(a)&&this.api.Wa(a,b,this.j)};
g.k.ea=function(){this.clear(null);this.vc(this.eb);for(var a=g.r(this.ma),b=a.next();!b.done;b=a.next())this.vc(b.value);g.xG.prototype.ea.call(this)};g.w(NG,yG);
NG.prototype.init=function(a,b,c){yG.prototype.init.call(this,a,b,c);this.u=b;if(null==b.text&&null==b.icon)g.Bu(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.N(this.element,a);null!=b.text&&(a=g.Hv(b.text),g.lb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.xG({F:"span",L:"ytp-ad-button-text",Z:a}),g.J(this,this.C),this.C.xa(this.element)));null!=b.icon&&(b=MG(b.icon),
null!=b&&(this.B=new g.xG({F:"span",L:"ytp-ad-button-icon",R:[b]}),g.J(this,this.B)),this.D?g.Cg(this.element,this.B.element,0):this.B.xa(this.element))}};
NG.prototype.clear=function(){this.hide()};
NG.prototype.onClick=function(a){yG.prototype.onClick.call(this,a);a=g.r(iBa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.api.S().K("enable_macro_substitution_on_html5")?this.layoutId?this.Ua.executeCommand(b,this.layoutId):g.S(Error("Missing layoutId for button.")):ZG(this.Ua,b,this.macros);this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(OG,g.I);OG.prototype.ea=function(){this.u&&g.jt(this.u);this.j.clear();PG=null;g.I.prototype.ea.call(this)};
OG.prototype.register=function(a,b){b&&this.j.set(a,b)};
var PG=null;g.w(RG,yG);
RG.prototype.init=function(a,b,c){yG.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.S(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new NG(this.api,this.Za,this.layoutId,this.j,this.Ua),g.J(this,this.button),this.button.init(gE("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.Hv(a)),this.button.xa(this.element),this.I&&!g.eo(this.button.element,"ytp-ad-clickable")&&g.N(this.button.element,"ytp-ad-clickable"),
a&&(this.B=new g.xG({F:"div",L:"ytp-ad-hover-text-container"}),this.D&&(b=new g.xG({F:"div",L:"ytp-ad-hover-text-callout"}),b.xa(this.B.element),g.J(this,b)),g.J(this,this.B),this.B.xa(this.element),b=QG(a),g.Cg(this.B.element,b,0)),this.show())};
RG.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();yG.prototype.hide.call(this)};
RG.prototype.show=function(){this.button&&this.button.show();yG.prototype.show.call(this)};g.w(TG,yG);
TG.prototype.init=function(a,b,c){yG.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&SG(a)||"";g.lb(c)?(this.api.S().K("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.Bu(Error("Found AdImage without valid image URL")):(this.u?g.al(this.element,"backgroundImage","url("+c+")"):sg(this.element,{src:c}),sg(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())};
TG.prototype.clear=function(){this.hide()};g.w(UG,yG);g.k=UG.prototype;g.k.hide=function(){yG.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.C=document.activeElement;yG.prototype.show.call(this);this.D.focus()};
g.k.init=function(a,b,c){yG.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.S(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.S(Error("ConfirmDialogRenderer.cancelLabel was not set.")):mBa(this,b):g.S(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.hu(this.u);this.hide()};
g.k.hI=function(){this.hide()};
g.k.DE=function(){var a=this.B.cancelEndpoint;a&&(this.api.S().K("enable_macro_substitution_on_html5")?this.layoutId?this.Ua.executeCommand(a,this.layoutId):g.S(Error("Missing layoutId for confirm dialog.")):ZG(this.Ua,a,this.macros));this.hide()};
g.k.iI=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.api.S().K("enable_macro_substitution_on_html5")?this.layoutId?this.Ua.executeCommand(a,this.layoutId):g.S(Error("Missing layoutId for confirm dialog.")):ZG(this.Ua,a,this.macros));this.hide()};g.w(VG,yG);g.k=VG.prototype;
g.k.init=function(a,b,c){yG.prototype.init.call(this,a,b,c);this.B=b;if(null==b.defaultText&&null==b.defaultIcon)g.S(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.S(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.N(this.C,a)}a={};b.defaultText?
(c=g.Hv(b.defaultText),g.lb(c)||(a.buttonText=c,this.u.setAttribute("aria-label",c))):g.ml(this.va,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.u.hasAttribute("aria-label")||this.W.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=MG(b.defaultIcon),this.Ha("untoggledIconTemplateSpec",c),b.toggledIcon?(this.N=!0,c=MG(b.toggledIcon),this.Ha("toggledIconTemplateSpec",c)):(g.ml(this.I,!0),g.ml(this.D,!1)),g.ml(this.u,!1)):g.ml(this.W,!1);g.Se(a)||this.update(a);b.isToggled&&
(g.N(this.C,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));WG(this);this.P(this.element,"change",this.sL);this.show()}};
g.k.onClick=function(a){0<this.ma.length&&(this.toggleButton(!this.isToggled()),this.sL());yG.prototype.onClick.call(this,a)};
g.k.sL=function(){g.O(this.C,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.r(nBa(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.api.S().K("enable_macro_substitution_on_html5")?this.layoutId?this.Ua.executeCommand(b,this.layoutId):g.S(Error("Missing layoutId for toggle button.")):ZG(this.Ua,b,this.macros);if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);WG(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.O(this.C,"ytp-ad-toggle-button-toggled",a);this.u.checked=a;WG(this)};
g.k.isToggled=function(){return this.u.checked};g.w(XG,fu);XG.prototype.N=function(a){if(Array.isArray(a)){a=g.r(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof Gv&&this.C(b)}};g.w(YG,yG);g.k=YG.prototype;g.k.init=function(a,b,c){yG.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.S(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.Bu(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.Bu(Error("AdFeedbackRenderer.title was not set.")),rBa(this,b)):g.S(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){rt(this.I);rt(this.N);this.D.length=0;this.hide()};
g.k.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();yG.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.u&&this.u.show();this.B&&this.B.show();this.C=document.activeElement;yG.prototype.show.call(this);this.I.focus()};
g.k.GP=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.X("a");this.hide()};
g.k.D_=function(){this.hide()};
sBa.prototype.isChecked=function(){return this.B.checked};g.w($G,UG);$G.prototype.hI=function(a){UG.prototype.hI.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
$G.prototype.DE=function(a){UG.prototype.DE.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
$G.prototype.iI=function(a){UG.prototype.iI.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.X("b")};g.w(aH,yG);g.k=aH.prototype;
g.k.init=function(a,b,c){yG.prototype.init.call(this,a,b,c);this.I=b;if(null==b.dialogMessage&&null==b.title)g.S(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.Bu(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.u=new NG(this.api,this.Za,this.layoutId,this.j,this.Ua,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.J(this,
this.u),this.u.init(gE("button"),a,this.macros),this.u.xa(this.element);b.title&&(a=g.Hv(b.title),this.Ha("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=QG(a[c]);if(!g.lb(d.textContent)){var e=yg("LI");e.appendChild(d);this.Da.appendChild(e)}}else g.ml(this.Da,!1);b.dialogMessage&&(a=QG(b.dialogMessage,!0),this.Ia.appendChild(a));b.confirmLabel&&(a=g.Hv(b.confirmLabel),this.Ha("confirmLabel",a));b.muteAdRenderer&&(b=(b=b.muteAdRenderer)&&b.buttonRenderer||null)&&(a=b.navigationEndpoint&&
b.navigationEndpoint.adFeedbackEndpoint||null,c=b.navigationEndpoint&&b.navigationEndpoint.confirmDialogEndpoint||null,null==a&&null==c?g.Bu(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?tBa(this,a):c&&uBa(this,c),this.C=new NG(this.api,this.Za,this.layoutId,this.j,this.Ua,["ytp-ad-info-dialog-mute-button"],"button",!0),g.J(this,this.C),this.C.init(gE("button"),b,this.macros),this.C.Ma("click",this.jZ,this),
this.C.xa(this.Pa)));vBa(this)}};
g.k.clear=function(){rt(this.N);this.hide()};
g.k.hide=function(){this.B?this.B.hide():this.D&&this.D.hide();this.u&&this.u.hide();this.C&&this.C.hide();yG.prototype.hide.call(this);this.W&&this.W.focus()};
g.k.show=function(){this.u&&this.u.show();this.C&&this.C.show();if(!this.Ga){for(var a=g.r(this.I&&this.I.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.api.S().K("enable_macro_substitution_on_html5")?this.layoutId?this.Ua.executeCommand(b,this.layoutId):g.S(Error("Missing layoutId for ad info dialog.")):ZG(this.Ua,b,this.macros);this.Ga=!0}this.W=document.activeElement;yG.prototype.show.call(this);this.N.focus()};
g.k.tL=function(){if(this.I&&this.I.confirmServiceEndpoint){var a=this.I.confirmServiceEndpoint;this.api.S().K("enable_macro_substitution_on_html5")?this.layoutId?this.Ua.executeCommand(a,this.layoutId):g.S(Error("Missing layoutId for ad info dialog.")):ZG(this.Ua,a,this.macros)}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.X("d");this.hide()};
g.k.jZ=function(){var a=this.B?this.B:this.D;a&&!a.ob&&(this.hide(),a.show())};g.w(bH,RG);bH.prototype.init=function(a,b,c){RG.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(yBa(this,a,c),this.show())};
bH.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();RG.prototype.hide.call(this)};
bH.prototype.show=function(){this.button&&this.button.show();RG.prototype.show.call(this)};
bH.prototype.clear=function(){this.hide()};g.w(cH,yG);
cH.prototype.init=function(a,b,c){yG.prototype.init.call(this,a,b,c);this.u=b;this.isTemplated()||g.Gg(this.element,zG(this.u));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?SG(a):"",c=(c=this.api.getVideoData(1))&&c.Fl,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(a=g.ig(b.targetId))&&this.element.setAttribute("data-tooltip-target-id",a);
b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
cH.prototype.isTemplated=function(){return this.u.isTemplated||!1};
cH.prototype.clear=function(){this.hide()};var CBa={seekableStart:0,seekableEnd:1,current:0};g.w(eH,yG);eH.prototype.clear=function(){this.dispose()};(function(a,b){function c(f){var h=g.r(f);f=h.next().value;h=ma(h);return a.apply(f,h)}
function d(f){f=g.r(f);f.next();f=ma(f);return b(e,f)}
b=void 0===b?Tja:b;var e=g.Ra(a);return function(){var f=g.Ea.apply(0,arguments),h=this||g.C,l=bUa.get(h);l||(l={},bUa.set(h,l));return vc(l,[this].concat(g.v(f)),c,d)}})(function(a){var b=g.zg("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.zg("DIV");g.kl(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.Dg(b);return a});g.w(g.hH,g.I);g.k=g.hH.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.MD(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.ob||(iH(this,!0),this.state=1,a?this.delay.start(a):this.MD()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.ob&&(iH(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.MD=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:iH(this,!1);this.state=3;this.delay.start(this.B);break;case 3:this.state=null;this.j&&this.j();break;case 4:this.element.hide();iH(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.u&&this.u()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.MD()};
g.k.ea=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.I.prototype.ea.call(this)};g.w(jH,eH);g.k=jH.prototype;
g.k.init=function(a,b,c){eH.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.S(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Pa&&g.N(this.B.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.va=null==a||0===a?this.u.Ox():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.C.init(gE("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Fl&&b.thumbnail?this.I.init(gE("ad-image"),b.thumbnail,c):this.N.hide()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.C.hide();this.I.hide();gH(this);eH.prototype.hide.call(this)};
g.k.show=function(){fH(this);this.B.show();this.C.show();this.I.show();eH.prototype.show.call(this)};
g.k.Bs=function(){this.hide()};
g.k.fq=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ga&&a>=this.va?(this.W.hide(),this.Ga=!0,this.X("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.va-a)/1E3)),a!=this.Ia&&(dH(this.C,{TIME_REMAINING:String(a)}),this.Ia=a)))}};g.w(lH,eH);g.k=lH.prototype;
g.k.init=function(a,b,c){eH.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.actionButton&&b.actionButton.buttonRenderer&&b.actionButton.buttonRenderer.navigationEndpoint){a=this.api.getVideoData(2);if(null!=a)if(b.image&&b.image.thumbnail){var d=b.image.thumbnail.thumbnails;null!=d&&0<d.length&&g.lb(g.ig(d[0].url))&&(d[0].url=a.profilePicture)}else g.Bu(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.W.init(gE("ad-image"),b.image,c);
this.N.init(gE("ad-text"),b.headline,c);this.I.init(gE("ad-text"),b.description,c);this.B.init(gE("button"),b.actionButton.buttonRenderer,c);this.C=b.actionButton.buttonRenderer.navigationEndpoint;this.api.dC()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.uL.bind(this));this.va=b.startMs||0;fH(this)}else g.S(Error("FlyoutCtaRenderer has no valid action button."));else g.S(Error("FlyoutCtaRenderer has no description AdText."));else g.S(Error("FlyoutCtaRenderer has no headline AdText."));
else g.Bu(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){eH.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Fg(this.B.element,a.target)&&this.C&&(this.api.S().K("enable_macro_substitution_on_html5")?this.layoutId?this.Ua.executeCommand(this.C,this.layoutId):g.S(Error("Missing layoutId for flyout cta.")):ZG(this.Ua,this.C,this.macros))};
g.k.fq=function(){if(this.u){var a=this.u.getProgressState();a&&a.current&&1E3*a.current>=this.va&&(gH(this),g.go(this.element,"ytp-flyout-cta-inactive"))}};
g.k.Bs=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.uL.bind(this))};
g.k.show=function(){this.B&&this.B.show();eH.prototype.show.call(this)};
g.k.hide=function(){this.B&&this.B.hide();eH.prototype.hide.call(this)};
g.k.uL=function(a){"hidden"==a?this.show():this.hide()};g.w(mH,yG);g.k=mH.prototype;
g.k.init=function(a,b,c){yG.prototype.init.call(this,a,b,c);this.u=b;if(this.u.rectangle)for(this.C.init(gE("toggle-button"),this.u.likeButton.toggleButtonRenderer,c),this.B.init(gE("toggle-button"),this.u.dislikeButton.toggleButtonRenderer,c),this.P(this.element,"change",this.vL),this.D.show(100),this.show(),a=g.r(this.u&&this.u.impressionCommands||[]),b=a.next();!b.done;b=a.next())b=b.value,this.api.S().K("enable_macro_substitution_on_html5")?this.layoutId?this.Ua.executeCommand(b,this.layoutId):
g.S(Error("Missing layoutId for instream user sentiment.")):ZG(this.Ua,b,this.macros)};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.B.hide();yG.prototype.hide.call(this)};
g.k.show=function(){this.C.show();this.B.show();yG.prototype.show.call(this)};
g.k.vL=function(){Cja(this.element,"ytp-ad-instream-user-sentiment-selected");this.u.postMessageAction&&this.api.La("onYtShowToast",this.u.postMessageAction);this.D.hide()};
g.k.onClick=function(a){0<this.ma.length&&this.vL();yG.prototype.onClick.call(this,a)};g.w(nH,g.I);g.k=nH.prototype;g.k.ea=function(){this.reset();g.I.prototype.ea.call(this)};
g.k.reset=function(){g.hu(this.C);this.I=!1;this.j&&this.j.stop();this.D.stop();this.u&&(this.u=!1,this.J.play())};
g.k.start=function(){this.reset();this.C.P(this.B,"mouseover",this.IT,this);this.C.P(this.B,"mouseout",this.HT,this);this.j?this.j.start():(this.I=this.u=!0,g.al(this.B,{opacity:this.V}))};
g.k.IT=function(){this.u&&(this.u=!1,this.J.play());this.D.stop();this.j&&this.j.stop()};
g.k.HT=function(){this.I?this.D.start():this.j&&this.j.start()};
g.k.CM=function(){this.u||(this.u=!0,this.N.play(),this.I=!0)};g.w(oH,eH);g.k=oH.prototype;
g.k.init=function(a,b,c){eH.prototype.init.call(this,a,b,c);this.N=b;this.va=ABa(this);if(!b||g.Se(b))g.S(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Se(b.message))g.S(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=MG(a);null==b?g.S(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.I=new g.xG({F:"button",Ba:["ytp-ad-skip-button","ytp-button"],R:[{F:"span",
L:"ytp-ad-skip-button-icon",R:[b]}]}),g.J(this,this.I),this.I.xa(this.C.element),this.B=new cH(this.api,this.Za,this.layoutId,this.j,this.Ua,"ytp-ad-skip-button-text"),this.B.init(gE("ad-text"),this.N.message,c),g.J(this,this.B),g.Cg(this.I.element,this.B.element,0));var d=void 0===d?null:d;c=this.api.S();!(0<this.ma.length)&&c.isMobile&&(VA?0:"ontouchstart"in document.documentElement&&(Vfa()||ck()))&&(this.vc(this.eb),d&&this.vc(d),this.ma=[this.P(this.element,"touchstart",this.GT,this),this.P(this.element,
"touchmove",this.FT,this),this.P(this.element,"touchend",this.ET,this)])}};
g.k.clear=function(){this.W.reset();this.hide()};
g.k.hide=function(){this.C.hide();this.B&&this.B.hide();gH(this);eH.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.I&&(a&&g.ot(a),eH.prototype.onClick.call(this,a),this.X("j"),this.Ga||!this.va))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.CQ=function(a){if(!this.Ga)return a;var b,c=null==(b=a.commandExecutorCommand)?void 0:b.commands;if(!c)return a;b=[];for(var d=0;d<c.length;d++){var e=a.commandExecutorCommand.commands[d];e.adLifecycleCommand&&zBa(e.adLifecycleCommand)||e.pingingEndpoint||e.adPingingEndpoint||b.push(e)}return{commandExecutorCommand:{commands:b}}};
g.k.JN=function(){return"skip"};
g.k.oD=function(a,b){b=EAa(this.Za,b);this.api.S().K("enable_macro_substitution_on_html5")?(b=lya(this.macros,!1,b),this.layoutId?nV(this.Ua,a,this.layoutId,b):g.S(Error("Missing layoutId for skip button."))):ZG(this.Ua,a,this.macros,b)};
g.k.show=function(){this.W.start();this.C.show();this.B&&this.B.show();fH(this);eH.prototype.show.call(this)};
g.k.Bs=function(){this.X("k")};
g.k.fq=function(){};g.w(pH,eH);g.k=pH.prototype;
g.k.init=function(a,b,c){eH.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};(a=g.Se(a)?null:a)?(this.N=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3,this.B=new jH(this.api,this.Za,this.layoutId,this.j,this.Ua,this.u,"countdown_next_to_thumbnail"==g.Xz(this.api.S().experiments,"preskip_button_style_ads_backend")&&nB(this.api.S())),this.B.init(gE("preskip-component"),a,c),kH(this.B),g.J(this,this.B),this.B.xa(this.element)):
b.skipOffsetMilliseconds&&(this.N=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Se(b)?null:b;null==b?g.S(Error("SkipButtonRenderer was not set in player response.")):(this.C=new oH(this.api,this.Za,this.layoutId,this.j,this.Ua,this.u,this.W),this.C.init(gE("skip-button"),b,c),g.J(this,this.C),this.C.xa(this.element),this.show())};
g.k.show=function(){this.I&&this.C?this.C.show():this.B&&this.B.show();fH(this);eH.prototype.show.call(this)};
g.k.Bs=function(){};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();gH(this);eH.prototype.hide.call(this)};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();gH(this);eH.prototype.hide.call(this)};
g.k.fq=function(){1E3*this.u.getProgressState().current>=this.N&&BBa(this,!0)};g.w(qH,NG);qH.prototype.init=function(a,b,c){NG.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.Hv(b.text),a=!g.lb(a));a?null==b.navigationEndpoint?g.Bu(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.Bu(Error("Button style was not a link-style type in renderer,")):this.show():g.Bu(Error("No visit advertiser text was present in the renderer."))};g.w(rH,yG);rH.prototype.init=function(a,b,c){yG.prototype.init.call(this,a,b,c);a=b.text;g.lb(zG(a))?g.Bu(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.u&&(b=this.api.S(),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 cH(this.api,this.Za,this.layoutId,this.j,this.Ua),a.init(gE("simple-ad-badge"),b,c),a.xa(this.element),g.J(this,a)),this.show())};
rH.prototype.clear=function(){this.hide()};g.w(sH,hE);g.w(tH,g.iu);g.k=tH.prototype;g.k.Ox=function(){return this.durationMs};
g.k.stop=function(){this.j&&this.Oc.vc(this.j)};
g.k.Sb=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.X("h")};
g.k.getProgressState=function(){return this.u};
g.k.Wc=function(a){g.VE(a,2)&&this.X("g")};g.w(uH,g.iu);g.k=uH.prototype;g.k.Ox=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.Sb=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.Za&&this.Za.Sb(this.B.current);this.X("h");a&&this.X("g")};
g.k.getProgressState=function(){return this.B};g.w(xH,eH);g.k=xH.prototype;g.k.init=function(a,b,c){eH.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){Xp(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new cH(this.api,this.Za,this.layoutId,this.j,this.Ua);this.B.init(gE("ad-text"),a,{});this.B.xa(this.element);g.J(this,this.B)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){gH(this);eH.prototype.hide.call(this)};
g.k.Bs=function(){this.hide()};
g.k.fq=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&this.B&&(a=(this.u instanceof tH?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.u instanceof uH?a.seekableEnd:this.api.getDuration(2,!1))-a.current,dH(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.vH(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
g.k.show=function(){fH(this);eH.prototype.show.call(this)};g.w(yH,cH);yH.prototype.onClick=function(a){cH.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.w(DH,g.xG);DH.prototype.Sb=function(){var a=this.u.getProgressState();this.uc.style.width=100*CH(new zH(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
DH.prototype.onStateChange=function(){g.fB(this.api.S())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.u.subscribe("h",this.Sb,this),this.Sb()):-1!==this.j&&(this.hide(),this.u.wg(this.j),this.j=-1))};g.w(EH,yG);
EH.prototype.init=function(a,b,c,d){yG.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new pH(this.api,this.Za,this.layoutId,this.j,this.Ua,this.u,this.I),c.xa(this.D),c.init(gE("skip-button"),a.skipAdRenderer,this.macros),g.J(this,c)):a.adPreviewRenderer&&(c=new jH(this.api,this.Za,this.layoutId,this.j,this.Ua,this.u,!1),c.xa(this.D),c.init(gE("ad-preview"),a.adPreviewRenderer,this.macros),kH(c),g.J(this,c)));b.brandInteractionRenderer&&(a=
b.brandInteractionRenderer.brandInteractionRenderer,c=new mH(this.api,this.Za,this.layoutId,this.j,this.Ua),c.xa(this.W),c.init(gE("instream-user-sentiment"),a,this.macros),g.J(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new lH(this.api,this.Za,this.layoutId,this.j,this.Ua,this.u),g.J(this,c),c.xa(this.N),c.init(gE("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 rH(this.api,this.Za,this.layoutId,this.j,this.Ua,!0),g.J(this,c),c.xa(this.B),c.init(gE("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 xH(this.api,this.Za,this.layoutId,this.j,this.Ua,this.u,d),g.J(this,d),d.xa(this.B),d.init(gE("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&
(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new bH(this.api,this.Za,this.layoutId,this.j,this.Ua,this.element),g.J(this,a),a.xa(this.B),a.init(gE("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=DBa(this)&&this.C?this.C:this.B))&&(a=new qH(this.api,this.Za,this.layoutId,this.j,this.Ua),g.J(this,a),a.xa(d),a.init(gE("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.S())&&!cB(b)&&
"3"==b.controlsType&&(b=new DH(this.api,this.u),b.xa(this.va),g.J(this,b));this.api.S().K("enable_updated_html5_player_focus_style")&&g.N(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
EH.prototype.clear=function(){this.hide()};g.Ka("yt.pubsub.publish",g.Ft);var LH=Symbol("injectionDeps");JH.prototype.toString=function(){return"InjectionToken("+this.name+")"};
JBa.prototype.resolve=function(a){return a instanceof KH?MH(this,a.key,[],!0):MH(this,a,[])};var bI;var SH={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var T_={},NBa=(T_.WEB_UNPLUGGED="^unplugged/",T_.WEB_UNPLUGGED_ONBOARDING="^unplugged/",T_.WEB_UNPLUGGED_OPS="^unplugged/",T_.WEB_UNPLUGGED_PUBLIC="^unplugged/",T_.WEB_CREATOR="^creator/",T_.WEB_KIDS="^kids/",T_.WEB_EXPERIMENTS="^experiments/",T_.WEB_MUSIC="^music/",T_.WEB_REMIX="^music/",T_.WEB_MUSIC_EMBEDDED_PLAYER="^music/",T_.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",T_);PH.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?SH:c;var d={context:g.TF(a.clickTrackingParams,!1,this.C)};var e=this.j(a);if(e){this.u(d,e,b);var f;b=g.OH(this.B());var h;(a=null==(f=a.commandMetadata)?void 0:null==(h=f.webCommandMetadata)?void 0:h.apiUrl)&&(b=a);f=zna(Nq(b));d={input:f,Is:Oq(f),ym:d,config:Object.assign({},void 0)};d.config.Vq?d.config.Vq.identity=c:d.config.Vq={identity:c};return d}g.S(new g.Ar("Error: Failed to create Request from Command.",a))};
g.ha.Object.defineProperties(PH.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.w(QH,PH);QH.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",Is:Oq("/getDatasyncIdsEndpoint","GET"),ym:{}}};
QH.prototype.B=function(){return[]};
QH.prototype.j=function(){};
QH.prototype.u=function(){};var fVa={},PBa=(fVa.GET_DATASYNC_IDS=NH(QH),fVa);var UBa="tokens consistency mss client_location entities response_received_commands store".split(" ");g.w(UH,PH);UH.prototype.B=function(){return oUa};
UH.prototype.j=function(a){return a.subscribeEndpoint};
UH.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.ha.Object.defineProperties(UH.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(VH,PH);VH.prototype.B=function(){return pUa};
VH.prototype.j=function(a){return a.unsubscribeEndpoint};
VH.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
g.ha.Object.defineProperties(VH.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(WH,PH);WH.prototype.B=function(){return lUa};
WH.prototype.j=function(a){return a.feedbackEndpoint};
WH.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.ha.Object.defineProperties(WH.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(XH,PH);XH.prototype.B=function(){return mUa};
XH.prototype.j=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
XH.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.w(YH,PH);YH.prototype.B=function(){return nUa};
YH.prototype.j=function(a){return a.playlistEditEndpoint};
YH.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.w(ZH,PH);ZH.prototype.B=function(){return kUa};
ZH.prototype.j=function(a){return a.webPlayerShareEntityServiceEndpoint};
ZH.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var IBa=new JH("NETWORK_SLI_TOKEN");$H.prototype.fetch=function(a,b){var c=this,d,e;return g.B(function(f){c.j&&(d=Dh(g.Fh(5,Ph(a,"key")))||"/UNKNOWN_PATH",c.j.start(d));e=new window.Request(a,b);return g.Q("web_fetch_promise_cleanup_killswitch")?f.return(Promise.resolve(fetch(e).then(function(h){return c.handleResponse(h)}).catch(function(h){g.Bu(h)}))):f.return(fetch(e).then(function(h){return c.handleResponse(h)}).catch(function(h){g.Bu(h)}))})};
$H.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.Bu(new g.Ar("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})}));
return b};
$H[LH]=[new KH];var WBa=new JH("NETWORK_MANAGER_TOKEN");var aI;dI.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.xv)f.onreadystatechange=function(p){c.xv(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.r(Object.entries(b.headers));for(var l=h.next();!l.done;l=h.next()){var m=g.r(l.value);l=m.next().value;m=m.next().value;f.setRequestHeader(l,m)}}var n;f.send(null!=(n=b.body)?n:null)})};
dI.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.Bu(new g.Ar("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.Bu(new g.Ar("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};var YBa=[],eI=!1;fI.getInstance=function(){var a=g.La("ytglobal.storage_");a||(a=new fI,g.Ka("ytglobal.storage_",a));return a};
fI.prototype.estimate=function(){var a,b,c;return g.B(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(aCa()):d.return()})};
g.Ka("ytglobal.storageClass_",fI);tr.prototype.Ey=function(a){this.handleError(a)};
tr.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Q("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Q("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":cCa(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=dCa.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.yf("From proto message. b/166824318"),e=nca(e.privateDoNotAccessOrElseSafeScriptWrappedValue||"").toString());a.interpreterSafeUrl&&(f=a.interpreterSafeUrl,g.yf("From proto message. b/166824318"),d=g.Bf(f.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());fCa(this,e,d,a.program,b,c)}else g.Bu(Error("Cannot initialize botguard without program"))};
g.k.isInitialized=function(){return!!this.j};
g.k.getState=function(){return this.state};
g.k.invoke=function(a){a=void 0===a?{}:a;if(this.j){var b=this.j;var c={vx:a};if(b.j)throw Error("Already disposed");a=oi();var d;null!=(d=b.gr)&&d.u.j.Fq("/client_streamz/bg/fsc",d.Qg);d=b.B([c.vx,c.E0]);var e;null!=(e=b.gr)&&e.B.Og(oi()-a,e.Qg);b=d}else b=null;return b};
g.k.dispose=function(){gCa(this,null);this.state=8};var hI,jI;g.gI=new dCa;hI=0;jI=[];var kCa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var uCa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},vCa={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"},wCa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},tCa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},rCa={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"},sCa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};var U_={},gVa=(U_["api.invalidparam"]=2,U_.auth=150,U_["drm.auth"]=150,U_["heartbeat.net"]=150,U_["heartbeat.servererror"]=150,U_["heartbeat.stop"]=150,U_["html5.unsupportedads"]=5,U_["fmt.noneavailable"]=5,U_["fmt.decode"]=5,U_["fmt.unplayable"]=5,U_["html5.missingapi"]=5,U_["html5.unsupportedlive"]=5,U_["drm.unavailable"]=5,U_);g.w(uI,g.I);g.k=uI.prototype;
g.k.handleExternalCall=function(a,b,c){var d=this.D[a],e=this.J[a],f=d;if(e)if(c&&uv(c,rUa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.S();d.Dl&&!this.V.has(a)&&(this.V.add(a),g.vr("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:c||void 0,playerStyle:d.playerStyle||void 0}));if(f){c=!1;d=g.r(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.Bu(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.D[a]?!0:!!(this.J[a]&&b&&uv(b,rUa))};
g.k.getBandwidthEstimate=function(){return PA(this.app.S().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.KI(this.app);b&&(a={gpu:(0,g.gR)(),d:a},b.handleError(new fC("feedback",a)))};
g.k.getApiInterface=function(){return this.N.slice()};
g.k.getInternalApiInterface=function(){return g.Oe(this.u)};
g.k.iV=function(a,b){if("string"===typeof b){var c=function(){var d=g.Ea.apply(0,arguments);g.La(b).apply(window,d)};
this.I[b]=c}else c=b;this.app.An.subscribe(a,c)};
g.k.h0=function(a,b){if("string"===typeof b){var c=this.I[b];g.Te(this.I,b);b=c}this.app.An.unsubscribe(a,b)};
g.k.getPlayerState=function(){return XNa(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){this.j&&kT(this.app,!0,this.playerType);oT(this.app,a,b,c,this.playerType)};
g.k.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
g.k.startSeekCsiAction=function(){this.app.Ti().D.j=(0,g.R)()};
g.k.seekToStreamTime=function(a,b,c){this.j&&kT(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.KI(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.ud()&&(l=h.getStreamTimeOffset());oT(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.KI(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.KI(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&oT(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.lh.volume};
g.k.setVolume=function(a){FCa(this,a)};
g.k.isMuted=function(){return this.app.lh.muted};
g.k.mute=function(){GCa(this)};
g.k.unMute=function(){HCa(this)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().D&&(a.pfp={enableIma:this.app.S().Sh&&this.app.fd().allowImaMonetization,autoplay:UD(this.app.fd()),mutedAutoplay:this.app.fd().mutedAutoplay});return a};
g.k.playVideo=function(){this.j&&kT(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Ce()){var b=iJ(this.app.ib());if(!VSa(b)){b.Em("control_play");return}if(DZ(b))return}3===a?EI(this.app.ib()).Em("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Ce()){var b=iJ(this.app.ib());if(!VSa(b)){b.Em("control_pause");return}}3===a?EI(this.app.ib()).Em("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.U.Zb&&a.Oa.X("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getPlaybackRate=function(){return g.KI(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.k.getAvailablePlaybackRates=function(){var a=this.app.S();if(a.Kd){var b=a.j||a.K("web_player_admin_origin_killswitch")?a.ancestorOrigins[0]:window.location.origin;a=["https://web.archive.org/web/20220603021303/https://admin.youtube.com","https://web.archive.org/web/20220603021303/https://viacon.corp.google.com","https://web.archive.org/web/20220603021303/https://yurt.corp.google.com"].includes(b)||a.Fl?wUa:vUa}else a=[1];return a};
g.k.getPlaybackQuality=function(a){return(a=g.KI(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.KI(this.app,this.playerType);return a?(a=g.kk(a.qp(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.getAvailableQualityLabels=function(){var a=g.KI(this.app,this.playerType);return a?g.kk(a.qp(),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.Ya().getPlayerSize();return{width:a.width,height:a.height}};
g.k.setSize=function(){this.app.Ya().resize()};
g.k.channelSubscribed=function(){this.La("SUBSCRIBE",this.app.fd().lk)};
g.k.channelUnsubscribed=function(){this.La("UNSUBSCRIBE",this.app.fd().lk)};
g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.KI(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.KI(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.updateFullerscreenEduButtonVisibility=function(a){var b=nOa(this.app);b&&(b.u=a,b.Ea())};
g.k.updateFullerscreenEduButtonSubtleModeState=function(a){var b=nOa(this.app);b&&(g.O(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.Be(b,g.WJ(b.B.kc(),b.element)),b.C=!0))};
g.k.confirmYpcRental=function(){var a=g.KI(this.app,this.playerType);a&&a.lf("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.S().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.S().El=a};
g.k.setLivingRoomAppMode=function(a){this.app.S().livingRoomAppMode=Tq("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,Vva)};
g.k.setEnablePrivacyFilter=function(a){this.app.S().enablePrivacyFilter=void 0===a?!1:a};
g.k.isPictureInPictureAllowed=function(){return this.app.fd().gF};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.loadModule=function(a){"captions"===a&&(a=g.dJ(this.app.ib()))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.dJ(this.app.ib()))&&a.loaded&&a.l1()};
g.k.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(rI(a,b,c),this.playerType),this.j&&kT(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(rI(a,b,c),this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=CCa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.j&&kT(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=CCa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.S();if(a.N)return"";var b=this.app.fd(),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.S();return a.N?"":a.getVideoEmbedCode(this.app.fd().videoId,this.app.Ya().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return mT(this.app,a,b,c)};
g.k.addUtcCueRange=function(a,b,c){return dOa(this.app,a,b,c)};
g.k.removeCueRange=function(a){return eOa(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.j&&kT(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&&kT(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.j&&kT(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.j&&kT(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.jW=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.RI(a,c);d&&b.push(d.videoId)}return b};
g.k.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.ib();return"captions"===a?(a=g.dJ(d))&&a.Zf(b,c):null};
g.k.getOption=function(a,b,c){var d=g.KI(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.S().j?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.ib();if("captions"===a){var c;return(null==(c=g.dJ(b))?void 0:c.getOptions())||null}return a?null:(a=[],g.dJ(b)&&a.push("captions"),a)};
g.k.OB=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.KI(this.app,a)){a=a.getVideoData();if(a.isPrivate)return{};b.video_id=a.videoId;b.author=a.author;b.title=a.title;if(a.B&&a.B.video){b.video_quality=a.B.video.quality;a=a.B.video;var c=[];32<a.fps&&c.push("hfr");a.isHdr()&&c.push("hdr");"bt2020"===a.primaries&&c.push("wcg");b.video_quality_features=c}}if(a=this.getPlaylistId())b.list=a;return b};
g.k.showVideoInfo=function(){NNa(this.app,!0)};
g.k.hideVideoInfo=function(){NNa(this.app,!1)};
g.k.isVideoInfoVisible=function(){return this.app.isVideoInfoVisible()};
g.k.getAdState=function(){return this.app.getAdState()};
g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.KI(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.V(a,128)&&5===gVa[b.errorCode])};
g.k.getSphericalProperties=function(){var a=g.GI(this.app.ib());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.GI(this.app.ib());b&&b.setSphericalProperties(a,!0)}};
g.k.supportsGaplessAudio=function(){return this.app.S().supportsGaplessAudio()};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.destroy=function(){this.app.dispose()};
g.k.sendAbandonmentPing=function(){var a=g.KI(this.app);a&&a.sendAbandonmentPing()};
g.k.downloadVideo=function(a,b){return this.app.downloadVideo(a,b)};
g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.B(function(l){return 1==l.j?(f=lJ(e.app.ib()))?g.A(l,f.VI([a],b,c,d),3):l.Ra(2):2!=l.j&&(h=l.u,h.length)?l.return(h[0]):l.return(Promise.reject())})};
g.k.pauseVideoDownload=function(a){this.app.pauseVideoDownload(a)};
g.k.resumeVideoDownload=function(a){var b=this;return g.B(function(c){return c.return(b.app.resumeVideoDownload(a))})};
g.k.refreshAllVideos=function(a){return this.app.refreshAllVideos(a)};
g.k.deleteAllVideos=function(){return this.app.deleteAllVideos()};
g.k.deleteVideos=function(a){return this.app.deleteVideos(a)};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.setAutonavState=function(a){if(this.K("web_player_autonav_use_server_provided_state")){var b;if(null==(b=this.app.fd())?0:uD(b))return}jOa(this.app,a)};
g.k.setAutonav=function(a){this.setAutonavState(a?2:1)};
g.k.setLoopRange=function(a){this.app.setLoopRange(a)};
g.k.getLoopRange=function(){return this.app.getLoopRange()};
g.k.setImmersivePreview=function(a){this.app.setImmersivePreview(a)};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=g.KI(this.app,this.playerType))||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a){var b=g.KI(this.app,this.playerType);b&&b.setUserAudio51Preference(a)};
g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.KI(this.app,this.playerType))?void 0:a.getUserAudio51Preference())?b:1};
g.k.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.addInfoCardXml=function(a,b,c){this.app.S().W.add(a,{TA:b,Tz:c})};
g.k.updateLastActiveTime=function(){ut()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setAccountLinkState=function(a){this.app.setAccountLinkState(a)};
g.k.updateAccountLinkingConfig=function(a){this.app.updateAccountLinkingConfig(a)};
g.k.setUserEngagement=function(a){this.app.S().Xj!==a&&(this.app.S().Xj=a,(a=g.KI(this.app,this.playerType))&&zS(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.dJ(this.app.ib()).bS(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.dJ(this.app.ib());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.dJ(this.app.ib());a&&a.HR()};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Ce()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.KI(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.wi();if(!c)return null;b=c.levels[b];return b?(a=g.fD(b,a))?{column:a.column,columns:a.columns,height:a.Zr,row:a.row,rows:a.rows,url:a.url,width:a.Jy}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.wi();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.ud();return b.sA(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.wi();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.Mt(),minFrameIndex:b.CE()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.wi();return a?a.levels.length:0};
g.k.WV=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.KI(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().zl};
g.k.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&EI(this.app.ib()).Em("control_set_audio_track",a);var b=g.KI(this.app,this.playerType);if(b&&!b.isDisposed()&&!g.V(b.playerState,128)){var c;if(null==(c=b.videoData.C)?0:c.j)b.Fa.setAudioTrack(a);else if(lNa(b)){a:{c=b.mediaElement.audioTracks();for(var d=0;d<c.length;++d){var e=c[d];if(e.label===a.Fc.getName()){if(e.enabled){c=!1;break a}c=e.enabled=!0;break a}}c=void 0}c&&b.ra("hlsaudio",{id:a.id})}else{a:if(c=b.videoData,c.I&&!hz(c.I)||
a==c.El||!c.qc||0>=c.qc.length)c=!1;else{d=g.r(c.qc);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof lC)){c=!1;break a}var f=a.Fc.getId();e.B&&(bwa(e.B,f),e.u=null)}c.El=a;c=!0}c&&oS(b)&&(b.X("internalaudioformatchange",b.videoData,!0),b.ra("hlsaudio",{id:a.id}))}}};
g.k.XV=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.KI(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.KI(this.app,this.playerType);return a&&a.getVideoData().B?Pw(a.vf?iKa(a.ih,a.vf,a.Ju()):lD):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.KI(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.dJ(this.app.ib());return a?a.lW():null};
g.k.resetSubtitlesUserSettings=function(){g.dJ(this.app.ib()).o0()};
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.Ya().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.sf();return this.app.getVisibilityState(this.eg(),this.isFullscreen()||cB(this.app.S()),a,this.isInline(),this.app.Xu(),this.app.Uu())};
g.k.isMutedByMutedAutoplay=function(){return this.app.Ky};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.Ya().setInternalSize(new g.cg(a,b))};
g.k.ud=function(){var a=g.KI(this.app);return a?a.ud():0};
g.k.sf=function(){return this.app.sf()};
g.k.eg=function(){var a=g.KI(this.app,this.playerType);return!!a&&a.eg()};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.setSafetyMode=function(a){this.app.S().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.RI(b).videoId||(a.index=b.index)):ZS(this.app,{list:a.list,index:a.index,playlist_length:d.length});TI(this.app.getPlaylist(),a);this.La("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.KI(this.app,this.playerType||1);c&&g.pD(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){lB(this.app.S(),a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.setCardsVisible=function(a,b,c){var d=g.mJ(this.app.ib());d&&d.Vh()&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.X("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.Ya().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.KI(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.setPlaybackQualityRange=function(a,b){var c=g.KI(this.app,this.playerType);c&&g.hNa(c,g.Mw(a,b||a,!0,"m"),!0)};
g.k.onAdUxClicked=function(a,b){this.X("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.vD.dispatch(a)};
g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.Yc.includes(e)||(c.Yc.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.bc(c.Yc,e)&&(d=!0)});
d&&this.X("updatemarkervisibility")};
g.k.X=function(a){var b=g.Ea.apply(1,arguments);this.app.S().B&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.An.X.apply(this.app.An,[a].concat(g.v(b)));this.app.Zn.X.apply(this.app.Zn,[a].concat(g.v(b)))};
g.k.La=function(a){var b=g.Ea.apply(1,arguments);this.app.An.X.apply(this.app.An,[a].concat(g.v(b)));this.app.Zn.X.apply(this.app.Zn,[a].concat(g.v(b)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.logImaAdEvent=function(a,b){this.app.S().Sh&&this.app.fd().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.Tda(this.app.S().loaderUrl),eventType:a,youtubeHost:g.Gh(this.app.S().Y)||""},g.vr("embedsAdEvent",a))};
g.k.K=function(a){return this.app.S().K(a)};
g.k.ea=function(){if(this.element){var a=this.element,b;for(b in this.u)this.u.hasOwnProperty(b)&&(a[b]=null);this.element=null}this.C={};this.I={};g.I.prototype.ea.call(this)};g.w(AI,uI);g.k=AI.prototype;g.k.addCueRange=function(a,b,c,d,e){return mT(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return XNa(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){oT(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){oT(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.OB=function(a){a=void 0===a?this.playerType:a;var b=uI.prototype.OB.call(this,a)||{};if(a=g.KI(this.app,a)){a=a.getVideoData();b.backgroundable=a.backgroundable;b.eventId=a.eventId;b.cpn=a.clientPlaybackNonce;b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isLive=a.isLivePlayback;b.isPremiere=a.isPremiere;b.isWindowedLive=a.di;b.isManifestless=tD(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;b.itct=a.ma;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?
0:c.utcTimeMillis)?kg(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?kg(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.NS;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=Qxa(a);b.paidContentOverlayDurationMs=GD(a);null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.j&&Rw(a.j)&&(b.usingLocalMedia=
"true");yD(a)&&(b.isEncrypted=!0);if(a.C)for(e=g.r(a.C.videoInfos),c=e.next();!c.done;c=e.next())if(d=void 0,null==(d=c.value.video)?0:d.isHdr()){b.isHdr=!0;break}var f,h;b.isMultiChannelAudio=!!(null==(f=a.I)?0:null==(h=f.audio)?0:h.isMultiChannelAudio())}return b};
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):uI.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=EI(this.app.ib()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):uI.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return EI(this.app.ib()).getProgressState();var b=this.app.getVideoData(),c=(g.KI(this.app,a)||g.KI(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=KCa(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=KCa(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.Ku(),n=this.app.getMinSeekableTime(c);var p=this.app;(c=g.KI(p,c))?(c=WS(p,c),c=hT(p,CN(c),c)):c=0;return{airingStart:d,airingEnd:f,allowSeeking:this.app.Qf(),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.yI(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.yI(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.yI(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.yI(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.Ya().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.setFauxFullscreen=function(a){g.bu();this.app.dk(a?2:0)};
g.k.toggleFullscreen=function(){function a(c){g.Bu(c)}
var b=this.app.S();if(b.externalFullscreen){if(!g.VB(b))return this.isFullscreen()?du(window.document.documentElement):au(window.document.documentElement).catch(a)}else if(g.bu()||b.I)return this.isFullscreen()?du(cu()):"3"!==b.controlsType&&g.bu()?au(this.app.Ya().element).catch(a):(b=this.app.Hd().mf())?au(b).catch(a):Promise.reject(Error("Media element missing"));this.La("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=iJ(this.app.ib());a&&a.created&&a.destroy();(a=g.KI(this.app))&&a.stopVideo();(a=this.app.ib().Sd.get("endscreen"))&&a.aX()&&g.DI(this.app.Oa,!0)};
g.k.stopVideo=function(){var a=this.app.S();!a.K("disable_new_pause_state3")&&vB(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():uI.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.KI(this.app,this.playerType).Nb(!0)};
g.k.toggleSubtitles=function(){var a=g.dJ(this.app.ib());a&&a.W0()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.GI(this.app.ib());b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.GI(this.app.ib());return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){FCa(this,a,b)};
g.k.mute=function(a){GCa(this,a)};
g.k.unMute=function(a){HCa(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.mJ(this.app.ib());b&&!b.loaded&&b.load()}uI.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.mJ(this.app.ib());b&&b.loaded&&b.unload()}uI.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.ib();switch(a){case "ad":return(a=iJ(d))&&a.Zf&&a.Zf(b,c);case "kids":return(a=jJ(d))&&a.Zf(b,c);case "remote":return(a=EI(d))&&a.Zf(b,c);case "unplugged":return(a=g.kJ(d))&&a.Zf(b,c);case "annotations_module":return(a=g.mJ(d))&&a.Zf(b,c);case "creatorendscreen":return(a=nJ(d))&&a.Zf(b,c)}return uI.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.ib();switch(a){case "ad":var c,d;return(null==(c=iJ(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=EI(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var h,l;return(null==(h=g.mJ(b))?void 0:null==(l=h.getOptions)?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return(null==(m=nJ(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null==
(p=g.kJ(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var t,u;return(null==(t=jJ(b))?void 0:null==(u=t.getOptions)?void 0:u.call(t))||null}if(!a){a=uI.prototype.getOptions.call(this);if(!a)return a;iJ(b)&&a.push("ad");EI(b)&&a.push("remote");g.mJ(b)&&a.push("annotations_module");nJ(b)&&a.push("creatorendscreen");g.kJ(b)&&a.push("unplugged");jJ(b)&&a.push("kids");return a}return uI.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.Ya().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.yI(this);a&&a.Mm()};
g.k.setCenterCrop=function(a){this.app.Ya().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var ICa="BASE_URL BASE_YT_URL adformat 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(" "),
JCa="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.w(g.BI,AI);g.k=g.BI.prototype;g.k.vl=function(a,b,c,d,e,f,h){return this.app.vl(a,b,c,d,e,f,h)};
g.k.Lx=function(){return this.app.Lx()};
g.k.mp=da(4);g.k.ib=function(){return this.app.ib()};
g.k.Te=function(){var a=this.ib().Sd.get("endscreen");return!!a&&a.Te()};
g.k.getRootNode=function(){return this.Ya().element};
g.k.S=function(){return this.app.S()};
g.k.Lu=da(6);g.k.im=function(a){return this.app.im(a)};
g.k.Bp=function(){return this.settingsMenu};
g.k.Yx=function(){return this.EE};
g.k.xb=function(a){return this.app.xb(a)};
g.k.Ya=function(){return this.app.Ya()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.KI(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a){a=this.app;if(null==(b=a.Id))b=void 0;else{var d=a.getCurrentTime();b=b.bp?void 0:null==(c=WN(b,1E3*d))?void 0:c.videoData}c=b||a.getVideoData()}else c=b;return c};
g.k.wi=function(a){return this.app.wi(a)};
g.k.isWidescreen=function(){return this.app.isWidescreen()};
g.k.isHdr=function(){var a=g.KI(this.app);return a?a.isHdr():!1};
g.k.zy=function(){return this.app.zy()};
g.k.Sv=function(a){this.app.Sv(a)};
g.k.qg=function(a,b,c,d,e){this.app.Ef(a,b,c,d,e)};
g.k.zo=function(a,b){this.app.zo(a,b)};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){EI(this.app.ib()).Em("control_play");return}if(2===this.getPresentingPlayerType()){var b=iJ(this.app.ib());if(b&&DZ(b))return}}catch(c){g.S(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.KI(this.app,a).stopVideo()};
g.k.jo=function(a){g.KI(this.app,a).jo()};
g.k.addEventListener=function(a,b){this.app.Zn.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.Zn.unsubscribe(a,b)};
g.k.X=function(a){AI.prototype.X.call.apply(AI.prototype.X,[this,a].concat(g.v(g.Ea.apply(1,arguments))))};
g.k.Vj=function(a){this.app.Vj(a)};
g.k.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.k.qp=function(){var a={},b=g.KI(this.app).qp();b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.Vx=da(10);g.k.lD=function(a){this.app.lD(a);a&&jOa(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.Wx=da(12);g.k.Wk=da(16);g.k.ov=function(a,b){this.ib().ov(a,b)};
g.k.Vh=function(){var a=g.mJ(this.ib());return!!a&&a.Vh()};
g.k.Ul=function(){var a=g.mJ(this.ib());return!!a&&a.Ul()};
g.k.setCardsVisible=function(a,b,c){var d=g.mJ(this.ib());d&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.X("changeProductsInVideoVisibility",a)};
g.k.Pv=da(17);g.k.Xs=function(){var a=g.KI(this.app);a&&a.Xs()};
g.k.Bz=function(a){this.La("onVideoAreaChange");this.La(a?"onShowControls":"onHideControls")};
g.k.Dj=function(a,b){var c=g.yI(this);if(c)return c.Dj(a,b);a=this.app.Ya().xi();return new g.Yk(0,0,a.width,a.height)};
g.k.Cp=function(){return this.app.Cp()};
g.k.yy=function(){var a=this.ib().Sd.get("heartbeat");return!!a&&a.yy()};
g.k.Qf=function(){var a=this.S();if(a.Da||a.disableSeek)return!1;a=g.KI(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.KD(b)||2===this.getPresentingPlayerType()&&!this.app.Ce()||a.qm()&&3!==this.getPresentingPlayerType()?!1:!0};
g.k.uy=function(){var a;return(null==(a=g.KI(this.app))?void 0:a.uy)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.kq=function(){var a=g.KI(this.app);a&&a.kq()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.Vd=function(a,b,c){this.app.hx(a,b,c)};
g.k.Pg=function(a,b){this.app.gD(a,b)};
g.k.Df=function(a,b){var c=this.app,d=g.KI(c,b);d&&(a=d.uh.Df(a),b&&c.getPresentingPlayerType()!==b||TS(c,"cuerangesremoved",a))};
g.k.lf=function(a,b){(b=g.KI(this.app,b))&&b.lf(a)};
g.k.qm=function(){var a=g.KI(this.app);return a?a.qm():!0};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.Xf(a,0,100);wI(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){wI(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){wI(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.Hd=function(){return this.app.Hd()};
g.k.Ti=function(){return this.app.Ti()};
g.k.ri=function(a){return this.app.ri(a)};
g.k.getBandwidthEstimate=function(){return PA(this.S().schedule)};
g.k.Bb=function(a,b,c,d){this.S().Sa&&this.app.Jp.Bb(a,b,c,void 0===d?!1:d)};
g.k.Yh=function(a,b,c){this.S().Sa&&this.app.Jp.Yh(a,b,void 0===c?!1:c)};
g.k.dl=function(a,b){this.S().Sa&&this.app.Jp.dl(a,b)};
g.k.sb=function(a,b){this.S().Sa&&this.app.Jp.click(a,b)};
g.k.Wa=function(a,b,c){if(this.S().Sa){var d=this.app.Jp;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.Lu(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.Tu(e,[f]):g.Uu(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.Qu(e,f,c),d.B.add(a))}};
g.k.In=function(a){return this.S().Sa?this.app.Jp.In(a):!1};
g.k.Ic=function(){return g.KI(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.ao=function(){this.app.ao()};
g.k.Yo=function(a,b){return this.app.Yo(a,b)};
g.k.Km=function(a){this.app.Km(a)};
g.k.LH=function(){this.app.LH()};
g.k.Wt=function(a,b,c,d,e,f){return this.app.Wt(a,b,c,d,e,f)};
g.k.qy=function(a,b,c,d,e,f){return this.app.qy(a,b,c,d,e,f)};
g.k.bq=function(a){this.app.bq(a)};
g.k.er=function(a,b){b=void 0===b?Infinity:b;this.app.er(void 0===a?-1:a,b)};
g.k.gw=function(a,b,c){this.app.gw(a,b,c)};
g.k.wp=function(){return this.app.wp()};
g.k.kB=function(a,b,c){this.app.kB(a,b,void 0===c?0:c)};
g.k.Zu=function(){return this.app.Zu()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.Ce=function(){return this.app.Ce()};
g.k.Op=function(a,b,c){return this.app.Op(a,b,c)};
g.k.ra=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.KI(this.app,d))||e.ra(a,b,c)};
g.k.tD=function(){return this.app.tD()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.k.cI=function(a,b){this.X("aduxmouseover",a,b)};
g.k.bI=function(a,b){this.X("aduxmouseout",a,b)};
g.k.wI=function(a,b){this.X("muteadaccepted",a,b)};
g.k.dC=function(){return this.app.Ya().dC()};
g.k.Tv=function(a){this.app.Ya().Tv(a)};
g.k.fl=function(){var a=g.KI(this.app);return a?a.fl():!1};g.w(OCa,g.I);LI.prototype.gI=function(){this.u=(0,g.R)()};
LI.prototype.reset=function(){this.j=this.u=NaN};
LI.prototype.lI=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.1>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};!this.U.K("web_player_csi_ctt_killswitch")&&a.J&&(c.cttAuthInfo={token:a.J,videoId:a.videoId});ow("seek",c);g.pw("cpn",a.clientPlaybackNonce,"seek");isNaN(this.u)||mw("pl_ss",this.u,"seek");mw(b,(0,g.R)(),"seek")}this.reset()}};NI.prototype.reset=function(){kw(this.timerName)};
NI.prototype.tick=function(a,b){mw(a,b,this.timerName)};
NI.prototype.Co=function(a){var b=this.timerName;Cw(a,b)?a=!1:(mw(a,void 0,b),a=!0);return a};
NI.prototype.info=function(a,b){g.pw(a,b,this.timerName)};g.w(PI,g.iu);g.k=PI.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.tm=function(a){return this.loop||!!a||0<=this.index-1};
g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.B++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.B++}this.X("shuffle")};
g.k.zf=function(a){a=a||"hqdefault.jpg";var b=this.W[a];if(b||this.u.N||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return uB(this.u,this.C[0],a)};
g.k.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.k.onReady=function(a){this.j=a;this.loaded&&g.kq(this.j,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.mm=function(){return this.u.getVideoUrl(g.RI(this).videoId,this.getPlaylistId())};
g.k.ea=function(){this.j=null;g.Ae(this.items);g.iu.prototype.ea.call(this)};var UI=new Map;g.w(g.WI,g.iu);g.k=g.WI.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.Zf=function(){};
g.k.hj=function(){return!0};
g.k.ea=function(){this.loaded&&this.unload();g.iu.prototype.ea.call(this)};
g.k.Nb=function(){return{}};
g.k.getOptions=function(){return[]};g.w(g.ZI,g.I);g.k=g.ZI.prototype;g.k.Np=da(20);g.k.hv=function(){};
g.k.Eo=function(){};
g.k.Dr=function(){return""};
g.k.QI=da(21);g.k.ea=function(){this.Eo();g.I.prototype.ea.call(this)};g.w(g.$I,g.ZI);g.$I.prototype.Np=da(19);g.$I.prototype.hv=function(a){if(this.audioTrack)for(var b=g.r(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.YI(this.u,c.value);a()};
g.$I.prototype.Dr=function(a,b){var c=a.url,d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.Cq()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.ZC(a));return cq(c,d)};
g.$I.prototype.Eo=function(){this.j&&this.j.abort()};g.hVa=new Map;g.w(g.bJ,g.ZI);g.bJ.prototype.Np=da(18);
g.bJ.prototype.hv=function(a){var b=this,c=this.B,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.tO&&(d.asrs=1);c=cq(c,d);this.Eo();this.j=g.pq(c,{format:"RAW",onSuccess:function(e){b.j=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),t=l.getAttribute("id"),u="true"===l.getAttribute("lang_default"),x="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.YI(b.u,new g.WC({languageCode:m,languageName:n,name:p,kind:q,id:t,is_servable:!0,is_translateable:x,vss_id:l,is_default:u}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.D[m.languageCode]=m.languageName,b.C.push(m)}a()},
withCredentials:!0})};
g.bJ.prototype.Dr=function(a,b){var c=this.B;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};a.translationLanguage&&(b.tlang=g.ZC(a));return c=cq(c,b)};
g.bJ.prototype.Eo=function(){this.j&&this.j.abort()};g.w(cJ,g.I);g.k=cJ.prototype;g.k.dB=function(){gJ(this)&&this.WF();this.I&&(fJ(this,"captions",!0),fJ(this,"endscreen"),this.XF(),fJ(this,"creatorendscreen",!0))};
g.k.Fz=function(){return this.G.getVideoData().Fz()};
g.k.yJ=function(){return this.G.getVideoData().yJ()};
g.k.fN=function(){var a=this.Sd.get("heartbeat");fJ(this,"heartbeat",!1,!0,this.fN);!a&&this.Sd.has("heartbeat")&&this.G.X("offlineslatestatechange")};
g.k.XF=function(){fJ(this,"annotations_module",!0,void 0,this.XF);var a=this.Sd.get("annotations_module");if(a)for(var b in this.u)if(this.u.hasOwnProperty(b)){var c=b;a.subscribe(c,this.u[c])}};
g.k.WF=function(){if(!this.Sd.get("ad"))try{eJ(this)?fJ(this,"ad",!1,!0,this.WF):this.G.lf("ad")}catch(a){this.G.lf("ad"),g.S(a)}};
g.k.Ti=function(){return this.j};
g.k.OG=function(){var a={},b=g.dJ(this);b&&Object.assign(a,b.OG());return a};
g.k.ov=function(a,b){Object.assign(this.j,a||null);Object.assign(this.eB,b||null)};
g.k.ea=function(){g.I.prototype.ea.call(this);hJ(this,1,!0);for(var a=g.r(Object.entries(lDa)),b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;this.C.has(c)&&UI.delete(b)}this.C.clear()};
var V_={},lDa=(V_.ad="ad.js",V_.annotations_module="annotations_module.js",V_.attribution="attribution.js",V_.creatorendscreen="annotations_module.js",V_.embed="embed.js",V_.endscreen="endscreen.js",V_.heartbeat="heartbeat.js",V_.inline_preview="inline_preview.js",V_.kids="kids.js",V_.remote="remote.js",V_.miniplayer="miniplayer.js",V_.music="music.js",V_.offline="offline.js",V_.captions="captions.js",V_.unplugged="unplugged.js",V_.ux="ux.js",V_.webgl="webgl.js",V_.ypc="ypc.js",V_.ypc_clickwrap="ypc_clickwrap.js",
V_.yto="yto.js",V_);g.w(oJ,g.Ce);oJ.prototype.preventDefault=function(){g.Ce.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
oJ.prototype.stopPropagation=function(){g.Ce.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.w(g.pJ,uF);g.k=g.pJ.prototype;g.k.Hq=function(){return!0};
g.k.isView=function(){return!1};
g.k.dJ=function(){return!1};
g.k.mf=function(){return this.j};
g.k.dg=function(){return this.j.src};
g.k.yA=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.k.hD=function(){this.j.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.j.playbackRate?this.j.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a};
g.k.Ar=function(){return this.j.loop};
g.k.setLoop=function(a){this.j.loop=a};
g.k.canPlayType=function(a,b){return this.j.canPlayType(a,b)};
g.k.Vm=function(){return this.j.paused};
g.k.Hg=function(){return this.j.seeking};
g.k.Gg=function(){return this.j.ended};
g.k.FB=function(){return this.j.muted};
g.k.Qv=function(a){rz();this.j.muted=a};
g.k.Cr=function(){return this.j.played||sz([],[])};
g.k.Eg=function(){try{var a=this.j.buffered}catch(b){}return a||sz([],[])};
g.k.Zx=function(){return this.j.seekable||sz([],[])};
g.k.vA=function(){var a=this.j;return a.getStartDate?a.getStartDate():null};
g.k.getCurrentTime=function(){return this.j.currentTime};
g.k.xA=function(a){this.j.currentTime=a};
g.k.getDuration=function(){return this.j.duration};
g.k.load=function(){var a=this.j.playbackRate;try{this.j.load()}catch(b){}this.j.playbackRate=a};
g.k.pause=function(){this.j.pause()};
g.k.play=function(){var a=this.j.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.k.Pi=function(){return this.j.readyState};
g.k.GB=function(){return this.j.networkState};
g.k.wk=function(){return this.j.error?this.j.error.code:null};
g.k.rf=function(){return this.j.error?this.j.error.message:""};
g.k.wA=function(){if(window.HTMLVideoElement&&this.j instanceof window.HTMLVideoElement&&this.j.getVideoPlaybackQuality)return this.j.getVideoPlaybackQuality();if(this.j){var a=this.j,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}};
g.k.eg=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.k.kq=function(){return!!this.j.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){var a=this.j,b=window.document;pz()?this.j!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():qz()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.zp=function(){var a=this.j;return new g.ag(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.ll(this.j)};
g.k.setSize=function(a){g.kl(this.j,a)};
g.k.getVolume=function(){return this.j.volume};
g.k.setVolume=function(a){rz();this.j.volume=a};
g.k.jG=function(a){this.I[a]||(this.j.addEventListener(a,this.listener),this.I[a]=this.listener)};
g.k.setAttribute=function(a,b){this.j.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.j.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.j.hasAttribute(a)};
g.k.ix=da(23);g.k.Lz=da(25);g.k.Mz=da(27);g.k.mu=da(29);g.k.Gx=function(){return du(this.j)};
g.k.Po=function(a){g.N(this.j,a)};
g.k.getStyle=function(a){return g.cl(this.j,a)};
g.k.sH=function(){return g.Fg(document.body,this.j)};
g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
g.k.ea=function(){for(var a=g.r(Object.keys(this.I)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.I[b]);uF.prototype.ea.call(this)};g.w(rJ,g.iu);g.k=rJ.prototype;g.k.EX=function(a){a=nt(a);if(!bg(a,this.C)){var b=2;this.I&&(b|=8);this.C=a;qJ(this,b,!0)}};
g.k.HX=function(){this.I&&qJ(this,8,!0);qJ(this,2,!1)};
g.k.xC=function(a){var b=nt(a);bg(b,this.C)||(this.C=b,(a=g.kt(a))&&this.SA(a)&&(qJ(this,4,!0),this.j.vc(this.B),this.B=this.j.P(this.target,"mouseover",this.XH),this.J=this.j.P(this.target,"mouseout",this.XH)))};
g.k.XH=function(a){a=mt(a);a&&this.SA(a)||(this.C=new g.ag(NaN,NaN),mDa(this))};
g.k.hX=function(){qJ(this,1,!0)};
g.k.bW=function(a){a=g.kt(a);a instanceof Element&&!(0<a.tabIndex)||qJ(this,1,!0)};
g.k.mP=function(){this.I=!0;this.j.vc(this.D);this.D=this.j.P(document,"mouseup",this.IX)};
g.k.IX=function(){this.I=!1;qJ(this,8,!1);this.j.vc(this.D);this.D=this.j.P(this.target,"mousedown",this.mP)};
g.k.JR=function(a){if(a=(a=a.changedTouches)&&a[0])this.ma=a.identifier,this.j.vc(this.N),this.N=this.j.P(this.target,"touchend",this.X0,void 0,!0),qJ(this,1024,!0)};
g.k.X0=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.ma){var d=c;break}}d&&(this.j.vc(this.N),this.N=this.j.P(this.target,"touchstart",this.JR,void 0,!0),qJ(this,1024,!1))};
g.k.Mm=function(){qJ(this,2,!0)};
g.k.resize=function(){g.oz&&mDa(this)};
g.k.toString=function(){return g.iu.prototype.toString.call(this)};g.w(g.sJ,g.W);
g.sJ.prototype.Ea=function(){var a=this.api.getVideoData(),b=this.api.S();if(a.D&&(a.bb||b.pfpChazalUi))var c=b.pfpChazalUi?[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},R:[{F:"path",L:"ytp-dni-large-play-button-bg",T:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{F:"path",T:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},R:[{F:"path",L:"ytp-dni-large-play-button-bg",T:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{F:"path",T:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.D?(g.O(this.element,"ytp-touch-device",b.isMobile),c=[b.D?{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},R:[{F:"path",L:"ytp-large-play-button-bg",T:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{F:"path",T:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},R:[{F:"path",L:"ytp-large-play-button-bg",
T:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{F:"path",T:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},R:[{F:"path",L:"ytp-large-play-button-bg",
T:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#f00"}},{F:"path",T:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.Ha("largePlayButtonChildren",c);a.D&&(a.bb||b.pfpChazalUi)&&(a=a.bb?a.bb:"#1f1f1f",this.ya("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.w(g.tJ,g.W);g.k=g.tJ.prototype;g.k.show=function(){var a=this;this.ob||(this.B.P(this.api,"videodatachange",function(){g.Fn(a.j)}),this.B.P(this.api,"videoplayerreset",function(){g.Fn(a.j)}));
g.W.prototype.show.call(this)};
g.k.hide=function(){this.B&&g.hu(this.B);g.W.prototype.hide.call(this)};
g.k.wb=function(){g.Fn(this.j)};
g.k.onStateChange=function(a){var b=this.api.S();b.K("disable_new_pause_state3")&&vB(b)&&(a=a.state.isCued()&&!a.Up.isCued()||g.FI(this.api)&&g.V(a.state,2),g.al(this.element,"transition-delay",a?"2s":""));g.Fn(this.j)};
g.k.N_=function(){g.Fn(this.j)};
g.k.JT=function(){this.u.stop();this.hide();g.Fn(this.j)};
g.k.Ea=function(){var a=this.api.xb();if(3===this.api.getPresentingPlayerType()&&(a.Kc()||g.V(a,4)))var b=!0;else(b=this.api.ib().Sd.get("ypc"))&&b.OC?b=!0:(b=this.api.S(),b=g.V(a,2)&&g.CI(this.api)&&b.Ye?!0:!1);b?(b=!0,this.C.hide()):(this.C.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!this.api.S().K("disable_new_pause_state3"),b=!(!g.V(a,2)||g.CI(this.api)||b&&this.api.Lx())||g.V(a,1024)?!0:!1));b?(this.u.show(),a=this.api.getVideoData(),this.s1(this.api.getPlaylist(),a)):
(this.u.hide(),g.V(a,1)||this.u.stop())};
g.k.s1=function(){for(var a,b=g.r(g.Ea.apply(0,arguments)),c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof g.mD&&!c.videoId)){a=this.api.Ya().getPlayerSize();var d=g.wB(),e=a.width*d;d*=a.height;if(1280<e||720<d)if(a=c.zf("maxresdefault.jpg"))break;if(640<e||480<d)if(a=c.zf("maxresdefault.jpg"))break;if(320<e||180<d)if(a=c.zf("sddefault.jpg")||c.zf("hqdefault.jpg")||c.zf("mqdefault.jpg"))break;if(a=c.zf("default.jpg"))break}this.D.style.backgroundImage=a?"url("+a+")":""};g.w(g.zJ,g.W);g.zJ.prototype.resize=function(){};
g.zJ.prototype.u=function(a){var b=this;rDa(this);var c=a.lG,d=this.api.S();"GENERIC_WITHOUT_LINK"!==c||d.D?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.Jd(CJ(this,"TOO_MANY_REQUESTS_WITH_LINK",d.mm(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.D?this.Jd(g.AJ(a.errorMessage)):this.Jd(CJ(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//web.archive.org/web/20220603021303/https://www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//web.archive.org/web/20220603021303/https://support.google.com/youtube/?p=player_error1",a&&(c=
g.Mh(c,{hl:a})),this.Jd(CJ(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.Zb&&!d.j&&qDa(this,function(e){if(g.uJ(e,b.api,!vB(b.api.S()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.La("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var pDa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.w(DJ,g.kz);DJ.prototype.hh=function(){vDa(this)};
DJ.prototype.onVideoDataChange=function(){var a=this,b=this.G.getVideoData();if(b.isValid()){var c=this.G.S(),d=[],e="";if(!c.N){var f=tDa(this);c.K("enable_web_media_session_metadata_fix")&&g.gB(c)&&f?(d=uDa(f.thumbnailDetails),f.album&&(e=g.Hv(f.album))):d=[{src:b.zf("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}vDa(this);sDa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.FI(this.G)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"),
b=function(){a.G.nextVideo()},c=function(){a.G.previousVideo()});
EJ(this,"nexttrack",b);EJ(this,"previoustrack",c)}};
DJ.prototype.ea=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.r(this.j),b=a.next();!b.done;b=a.next())EJ(this,b.value,null);g.kz.prototype.ea.call(this)};g.w(FJ,g.W);g.k=FJ.prototype;g.k.onClick=function(a){g.uJ(a,this.G,!0);this.G.sb(this.element)};
g.k.onVideoDataChange=function(a,b){xDa(this,b);this.Rd&&yDa(this,this.Rd)};
g.k.Wc=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&xDa(this,b);this.j&&yDa(this,a.state);this.Rd=a.state};
g.k.td=function(){this.C.show();this.G.X("paidcontentoverlayvisibilitychange",!0);this.G.Wa(this.element,!0)};
g.k.Gb=function(){this.C.hide();this.G.X("paidcontentoverlayvisibilitychange",!1);this.G.Wa(this.element,!1)};g.w(GJ,g.W);GJ.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.W.prototype.hide.call(this)};
GJ.prototype.onStateChange=function(a){zDa(a.state)?this.j.start():this.hide()};
GJ.prototype.u=function(){this.message.style.display="block"};g.w(g.HJ,g.xG);g.k=g.HJ.prototype;g.k.show=function(){var a=this.dh();g.xG.prototype.show.call(this);this.va&&(this.J.P(window,"blur",this.Gb),this.J.P(document,"click",this.KT));a||this.X("show",!0)};
g.k.hide=function(){var a=this.dh();g.xG.prototype.hide.call(this);ADa(this);a&&this.X("show",!1)};
g.k.td=function(a,b){this.u=a;this.V.show();b?(this.N||(this.N=this.J.P(this.G,"appresize",this.zM)),this.zM()):this.N&&(this.J.vc(this.N),this.N=void 0)};
g.k.zM=function(){var a=g.yI(this.G);this.u&&a.As(this.element,this.u)};
g.k.Gb=function(){var a=this.dh();ADa(this);this.V.hide();a&&this.X("show",!1)};
g.k.KT=function(a){var b=lt(a);b&&(g.Fg(this.element,b)||this.u&&g.Fg(this.u,b)||!g.wH(a))||this.Gb()};
g.k.dh=function(){return this.ob&&4!==this.V.state};g.w(JJ,g.HJ);JJ.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(BDa(this),this.td()):(this.j&&this.sb(),this.Gb()))};
JJ.prototype.hh=function(a){this.api.isMutedByMutedAutoplay()&&g.VE(a,2)&&this.Gb()};
JJ.prototype.onClick=function(){this.api.unMute();this.sb()};
JJ.prototype.sb=function(){this.clicked||(this.clicked=!0,this.api.sb(this.element))};g.w(g.LJ,g.kz);g.k=g.LJ.prototype;g.k.init=function(){var a=this.api.xb();this.Rb(a);this.Fo();this.wb()};
g.k.onVideoDataChange=function(a,b){this.DH!==b.videoId&&(this.DH=b.videoId,a=this.Qd,a.oa=b&&0<b.ye.length?5E3:3E3,qJ(a,512,!0),this.Fo())};
g.k.vZ=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.jq=function(){var a=this.api.Vh()&&this.api.Ul();return this.cB||a||this.fH};
g.k.jk=function(){var a=!this.jq();g.O(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.SA=function(a){try{if(!g.Fg(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Hg(a);)a=a===this.api.getRootNode()?null:g.Eg(a);return!!a};
g.k.Uk=function(a){var b=this.api.getRootNode();g.O(b,"ytp-autohide",a);g.O(b,"ytp-autohide-active",!0);this.DM.start(a?250:100);a&&(this.GD=!1,g.go(b,"ytp-touch-mode"));this.UF=!a;this.api.Bz(!a)};
g.k.dI=function(){var a=this.api.getRootNode();g.O(a,"ytp-autohide-active",!1)};
g.k.XZ=function(){this.WJ=!0};
g.k.WZ=function(a){if(this.api.S().K("player_doubletap_to_seek")||!this.api.S().K("embeds_web_enable_mobile_touch_fix_killswitch")&&this.api.S().I)this.WJ=!1,this.XJ&&this.vc(this.XJ),0===this.My&&OJ(this,a)?(this.TB(),this.hB.start(),this.XJ=this.P(this.api.Ya(),"touchmove",this.XZ,void 0,!0)):this.hB.stop();DDa(this)&&OJ(this,a)&&(!this.api.S().I||this.api.S().K("embeds_web_enable_mobile_touch_fix_killswitch"))&&KJ(this);var b=this.KD.dh();if(UA&&EDa(this,a))b&&g.ot(a);else if(this.Qd.u||MJ(this,
lt(a))||this.KD.dh()||(this.api.xb().isCued(),g.ot(a)),this.GD=!0,g.N(this.api.getRootNode(),"ytp-touch-mode"),this.Qd.Mm(),this.api.S().K("player_doubletap_to_seek")&&(b=this.api.xb(),!(!this.api.Qf()||g.V(b,2)&&g.CI(this.api)||g.V(b,64)))){b=Date.now()-this.PO;this.My+=1;if(350>=b){this.Bx=!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.My-1);0<d&&d<b?(this.Iv(-1,d,c,
e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.Iv(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.ot(a)}this.PO=Date.now();this.WQ.start()}};
g.k.SZ=function(a){if(!EDa(this,a)){if(!DDa(this)&&OJ(this,a)&&!this.hB.isActive()){if(g.VB(this.api.S())&&this.api.xb().isCued()){var b=void 0===b?{}:b;lw();ew();kw();Xv(!1);b.cttAuthInfo&&(Yv().cttAuthInfo=b.cttAuthInfo);Pp("TIMING_AFT_KEYS",[]);b.nka?nw({loadType:"hot"}):nw({loadType:"warm"});Pp("TIMING_ACTION","");delete g.P("TIMING_INFO",{}).yt_lt;mw("_start",b.startTime,void 0);b=["pbs","pbu"];dw("").info.actionType="watch";b&&Pp("TIMING_AFT_KEYS",b);Pp("TIMING_ACTION","watch");gsa();b=Zv();
var c=aw();if("cold"===b.yt_lt||"cold"===c.loadType){var d=Lv(),e=$v();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var f in d)f in e||mw(f,d[f]);f={};d=!1;e=g.r(Object.keys(b));for(var h=e.next();!h.done;h=e.next())h=h.value,(h=Zra(h,b[h]))&&!Rra(aw(),h)&&(fv(c,h),fv(f,h),d=!0);d&&nw(f)}Xv(!0);b=g.P("TIMING_ACTION");g.La("ytglobal.timingready_")&&b&&Cw("_start")&&Kra()&&Qra()}KJ(this);g.ot(a)}this.Bx&&(this.Bx=!1)}};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.vr("embedsRequestStorageAccessResult",{resolved:!0});Sua(!0);$t();window.location.reload()},function(){g.vr("embedsRequestStorageAccessResult",{resolved:!1});
a.Zv()})};
g.k.TB=function(){};
g.k.Ns=function(){};
g.k.Iv=function(){};
g.k.ZI=function(){};
g.k.Zv=function(){var a=this.api.xb();g.V(a,2)&&g.CI(this.api)||(g.FF(a)?this.api.pauseVideo():(this.api.LH(),this.api.playVideo(),this.un&&document.activeElement===this.un.C.element&&this.api.getRootNode().focus()))};
g.k.TZ=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!MJ(this,lt(a)))if(a=this.api.S(),this.api.S().K("player_doubletap_to_seek")&&this.Bx)this.Bx=!1;else if(a.eb&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.ly(d)})}catch(d){this.ly(d)}};
g.k.ly=function(a){String(a).includes("fullscreen error")?g.Bu(a):g.S(a)};
g.k.UZ=function(a){FDa(this,.3,a.scale);g.ot(a)};
g.k.VZ=function(a){FDa(this,.1,a.scale)};
g.k.wb=function(){var a=this.api.Ya().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Qd.resize();g.O(b,"ytp-fullscreen",this.api.isFullscreen());g.O(b,"ytp-large-width-mode",c);g.O(b,"ytp-small-mode",this.gg());g.O(b,"ytp-tiny-mode",this.eC());g.O(b,"ytp-big-mode",this.Jf());this.qf&&this.qf.resize(a)};
g.k.hh=function(a){this.Rb(a.state);this.Fo()};
g.k.DG=function(){var a=!!this.DH&&!this.api.Te(),b=2===this.api.getPresentingPlayerType(),c=this.api.S();if(b){if(gTa&&c.K("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=iJ(this.api.ib());return a&&b.BJ()}return a&&(c.wl||this.api.isFullscreen()||c.Kb)};
g.k.Fo=function(){var a=this.DG();this.zm!==a&&(this.zm=a,g.O(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Rb=function(a){var b=a.isCued()||this.api.qm()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.ZJ&&this.vc(this.ZJ),this.ZJ=this.P(this.api.Ya(),"touchstart",this.WZ,void 0,b));var c=a.Kc()&&!g.V(a,32)||this.api.yy();qJ(this.Qd,128,!c);c=3===this.api.getPresentingPlayerType();qJ(this.Qd,256,c);c=this.api.getRootNode();if(g.V(a,2))var d=[P_.ENDED];else d=[],g.V(a,8)?d.push(P_.PLAYING):g.V(a,4)&&d.push(P_.PAUSED),g.V(a,1)&&!g.V(a,32)&&d.push(P_.BUFFERING),g.V(a,32)&&
d.push(P_.SEEKING),g.V(a,64)&&d.push(P_.UNSTARTED);g.nc(this.nF,d)||(g.ho(c,this.nF),this.nF=d,g.fo(c,d));d=this.api.S();var e=g.V(a,2);a:{var f=this.api.S();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f="3"===h&&!g.V(a,2)||this.isCued||f.K("enable_post_ad_perception_survey_in_desktop")&&(2!==this.api.getPresentingPlayerType()?0:DZ(iJ(this.api.ib())))||f.K("embeds_web_enable_hide_standard_controls_for_ad")&&g.YA(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.O(c,"ytp-hide-controls",
!f);g.O(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.fH);g.V(a,128)&&!g.YA(d)?(this.qf||(this.qf=new g.zJ(this.api),g.J(this,this.qf),g.II(this.api,this.qf.element,4)),this.qf.u(a.getData()),this.qf.show()):this.qf&&(this.qf.dispose(),this.qf=null)};
g.k.fm=function(){return this.api.Vh()&&this.api.Ul()?(this.api.setCardsVisible(!1,!1),!0):this.api.Te()?(g.DI(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.fH=a;this.jk()};
g.k.Jf=function(){return!1};
g.k.gg=function(){return!this.Jf()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.eC=function(){return this.gg()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.Fj=function(){return this.GD};
g.k.Bp=function(){return null};
g.k.Yx=function(){return null};
g.k.Dj=function(){var a=this.api.Ya().getPlayerSize();return new g.Yk(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.As=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.Ya().Bz(a)};
g.k.Mm=function(){};
g.k.VN=function(){return null};g.w(PJ,g.iu);g.k=PJ.prototype;g.k.Ox=function(){return 1E3*this.api.getDuration(this.ul,!1)};
g.k.stop=function(){this.j&&this.Oc.vc(this.j)};
g.k.Sb=function(){var a=this.api.getProgressState(this.ul);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.S().K("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.ul,!1)};this.X("h")};
g.k.getProgressState=function(){return this.u};
g.k.Wc=function(a){g.VE(a,2)&&this.X("g")};g.w(QJ,g.W);QJ.prototype.onClick=function(){this.G.La("BACK_CLICKED")};g.w(g.RJ,g.W);g.RJ.prototype.show=function(){g.W.prototype.show.call(this);g.Fn(this.j)};
g.RJ.prototype.hide=function(){this.u.stop();g.W.prototype.hide.call(this)};
g.RJ.prototype.Ns=function(a){a?g.V(this.G.xb(),64)||SJ(this,IG(),"Play"):(a=this.G.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?SJ(this,gBa(),"Stop live playback"):SJ(this,bBa(),"Pause"))};g.w(VJ,g.W);g.k=VJ.prototype;g.k.td=function(){this.G.S().K("player_new_info_card_format")&&g.eo(this.G.getRootNode(),"ytp-cards-teaser-shown")&&!g.YA(this.G.S())||(this.u.show(),g.Ft("iv-button-shown"))};
g.k.Gb=function(){g.Ft("iv-button-hidden");this.u.hide()};
g.k.dh=function(){return this.ob&&4!==this.u.state};
g.k.ea=function(){this.j&&this.j();g.W.prototype.ea.call(this)};
g.k.TY=function(){g.Ft("iv-button-mouseover")};
g.k.onClicked=function(a){this.G.Vh();var b=g.eo(this.G.getRootNode(),"ytp-cards-teaser-shown");g.Ft("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.G.setCardsVisible(!this.G.Ul(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.w(XJ,g.W);g.k=XJ.prototype;g.k.VR=function(){this.G.Vh()&&this.G.Ul()&&this.dh()&&this.Gb()};
g.k.NJ=function(){this.Gb();!this.G.Vh()&&this.G.S().K("enable_error_corrections_infocards_icon_web")&&this.qh.Gb();g.Ft("iv-teaser-clicked",null!=this.j);this.onClickCommand?this.G.La("innertubeCommand",this.onClickCommand):this.G.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.k.LT=function(){g.Ft("iv-teaser-mouseover");this.j&&this.j.stop()};
g.k.s_=function(a){this.G.S().K("player_new_info_card_format")&&!g.YA(this.G.S())?this.qh.Gb():this.G.S().K("enable_error_corrections_infocards_icon_web")&&this.qh.td();this.j||!a||this.G.Ul()||this.u&&this.u.isActive()||(this.td(a),g.Ft("iv-teaser-shown"))};
g.k.td=function(a){this.onClickCommand=a.onClickCommand;this.Ha("text",a.teaserText);this.element.setAttribute("dir",g.to(a.teaserText));this.C.show();this.u=new g.K(function(){g.N(this.G.getRootNode(),"ytp-cards-teaser-shown");this.G.K("player_new_info_card_format")&&!g.YA(this.G.S())&&this.qh.Gb();this.lK()},0,this);
this.u.start();UJ(this.qh,!1);this.j=new g.K(this.Gb,580+a.durationMs,this);this.j.start();this.D.push(this.Ma("mouseover",this.xL,this));this.D.push(this.Ma("mouseout",this.wL,this))};
g.k.lK=function(){if(!this.G.S().K("player_new_info_card_format")&&g.YA(this.G.S())&&this.ob){var a=this.qh.element.offsetLeft,b=g.rg("ytp-cards-button-icon"),c=this.G.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.qh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.xV=function(){g.YA(this.G.S())&&this.V.gg()&&this.ob&&this.N.start()};
g.k.xL=function(){this.I.stop();this.j&&this.j.isActive()&&this.J.start()};
g.k.wL=function(){this.J.stop();this.j&&!this.j.isActive()&&this.I.start()};
g.k.hZ=function(){this.j&&this.j.stop()};
g.k.gZ=function(){this.Gb()};
g.k.Nj=function(){this.Gb()};
g.k.Gb=function(){!this.j||this.B&&this.B.isActive()||(g.Ft("iv-teaser-hidden"),this.C.hide(),g.go(this.G.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.K(function(){for(var a=g.r(this.D),b=a.next();!b.done;b=a.next())this.vc(b.value);this.D=[];this.j&&(this.j.dispose(),this.j=null);UJ(this.qh,!0);!this.G.Vh()&&this.G.S().K("enable_error_corrections_infocards_icon_web")&&this.qh.Gb()},330,this),this.B.start())};
g.k.dh=function(){return this.ob&&4!==this.C.state};
g.k.ea=function(){var a=this.G.getRootNode();a&&g.go(a,"ytp-cards-teaser-shown");g.Ae(this.u,this.B,this.j);g.W.prototype.ea.call(this)};var W_={},YJ=(W_.BUTTON="ytp-button",W_.TITLE_NOTIFICATIONS="ytp-title-notifications",W_.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",W_.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",W_.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",W_);g.w(ZJ,g.W);ZJ.prototype.onClick=function(){this.api.sb(this.element);var a=!this.j;this.Ha("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.Ha("pressed",a);IDa(this,a)};g.w(g.aK,g.W);g.aK.prototype.u=function(){g.N(this.element,"ytp-sb-subscribed")};
g.aK.prototype.B=function(){g.go(this.element,"ytp-sb-subscribed")};g.w(bK,g.W);g.k=bK.prototype;g.k.eJ=function(){MDa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.oG=function(){if(KDa(this)&&!this.isExpanded()){this.Ha("flyoutUnfocusable","false");this.Ha("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.aj&&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.OF=function(){this.Ha("flyoutUnfocusable","true");this.Ha("channelTitleFocusable","-1");this.B&&this.B.start()};
g.k.Ea=function(){var a=this.api.getVideoData(),b=this.api.S(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Nc&&!!a.profilePicture:g.YA(b)&&(c=!!a.videoId&&!!a.Nc&&!!a.profilePicture&&!(a.D&&b.pfpChazalUi)&&!b.C&&!(b.I&&200>this.api.getPlayerSize().width));var d=g.bC(this.api.S())+a.Nc;g.YA(b)&&(d=NDa(this,d));var e=a.Nc,f=a.profilePicture;b=g.YA(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.S();e=
g.bC(h)+e;g.YA(h)&&(e=NDa(this,e));this.J!==f&&(this.j.style.backgroundImage="url("+f+")",this.J=f);this.Ha("channelLink",e);this.Ha("channelLogoLabel",g.gF("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b}));g.N(this.api.getRootNode(),"ytp-title-enable-channel-logo")}else g.go(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Wa(this.j,c&&this.oa);this.subscribeButton&&(this.subscribeButton.channelId=a.lk);this.Ha("expandedTitle",a.expandedTitle);this.Ha("channelTitleLink",d);this.Ha("expandedSubtitle",
a.expandedSubtitle)};g.w(g.cK,g.xG);g.cK.prototype.pg=function(a){this.Ha("label",a)};
g.cK.prototype.Ha=function(a,b){g.xG.prototype.Ha.call(this,a,b);this.X("size-change")};g.w(fK,g.xG);fK.prototype.IP=function(){this.X("size-change")};
fK.prototype.focus=function(){this.content.focus()};
fK.prototype.CP=function(){this.X("back")};g.w(g.gK,fK);g.gK.prototype.Bc=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,PDa);if(0<=b)return;b=~b;g.hc(this.items,b,0,a);g.Cg(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.vI,this);this.menuItems.X("size-change")};
g.gK.prototype.Of=function(a){a.unsubscribe("size-change",this.vI,this);this.isDisposed()||(g.bc(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.X("size-change"))};
g.gK.prototype.vI=function(){this.menuItems.X("size-change")};
g.gK.prototype.focus=function(){for(var a=0,b=0;b<this.items.length;b++)if("true"===this.items[b].element.getAttribute("aria-checked")){a=b;break}this.items[a].focus()};g.w(iK,g.cK);iK.prototype.j=function(a){g.pt(a)||39!==g.qt(a)||(this.element.click(),g.ot(a))};g.w(kK,g.cK);kK.prototype.onClick=function(){this.setValue(!this.checked);this.X("select",this.checked)};
kK.prototype.getValue=function(){return this.checked};
kK.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.w(lK,g.W);g.k=lK.prototype;g.k.show=function(){g.W.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.Ha("userInfoFocusable","0");this.Ha("userInfoFocusable2","0")};
g.k.hide=function(){g.W.prototype.hide.call(this);this.Ha("userInfoFocusable","-1");this.Ha("userInfoFocusable2","-1")};
g.k.NT=function(a){var b=lt(a),c=g.Fg(this.closeButton.element,b),d=g.Fg(this.element,b);a=this.j&&g.Fg(this.j,b)&&g.wH(a);b&&(d||a)&&!c||this.hide()};
g.k.OT=function(){g.IH(function(){window.location.reload()},"user_info_panel",g.sB(this.Oa.S()))};
g.k.Ea=function(){var a=this.Oa.S();a={USER_NAME:a.userDisplayName,USER_EMAIL:a.aj};this.Ha("icon",cBa());this.Ha("watchingAsUsername",g.gF("Watching as $USER_NAME",a));this.Ha("watchingAsEmail",g.gF("($USER_EMAIL)",a))};g.w(mK,g.gK);g.k=mK.prototype;g.k.CY=function(){xJ(this.pu.element)};
g.k.OY=function(){oK(this,this.G.getDebugText(!0))&&SJ(this.Cc,AG())};
g.k.PY=function(){oK(this,this.G.getVideoEmbedCode())&&SJ(this.Cc,XAa());this.G.sb(this.Gk.element);FH("EMBED",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.QY=function(){oK(this,this.G.getVideoUrl(!0,!0))&&SJ(this.Cc,FG());this.G.sb(this.getVideoUrl.element);FH("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.RY=function(){oK(this,this.G.getVideoUrl(!1,!0))&&SJ(this.Cc,FG());this.G.sb(this.Jk.element);FH("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.onLoopChange=function(a){var b;null==(b=this.Ij)||b.setValue(a)};
g.k.aZ=function(){this.G.setLoopVideo(this.Ij.getValue());this.jb.Gb();this.G.sb(this.Ij.element)};
g.k.OZ=function(a){this.G.reportPlaybackIssue();if(g.uJ(a,this.G,!vB(this.G.S()))){a=this.G;var b=a.app.getFeedbackProductData();a.La("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.jb.Gb()};
g.k.g_=function(){this.G.isVideoInfoVisible()?this.G.hideVideoInfo():this.G.showVideoInfo();this.jb.Gb()};
g.k.f_=function(){this.ek&&(this.Vz||(this.Vz=new lK(this.G,this.ek.element),g.J(this,this.Vz),g.II(this.G,this.Vz.element,4)),this.Vz.show(),this.jb.Gb(),this.G.sb(this.ek.element))};
g.k.onVideoDataChange=function(a,b){this.wJ(b)};
g.k.wJ=function(a){var b=this.G.S(),c=2===this.G.getPresentingPlayerType(),d=!c||a.isListed;d=!b.N&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://web.archive.org/web/20220603021303/https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.B&&(b.fmt=a.B.Vb()),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.Ga&&(b.partnerid=a.Ga),b=g.Mh("//web.archive.org/web/20220603021303/https://support.google.com/googleplay/",b));g.wG(this.Gk,d&&a.allowEmbed);g.wG(this.getVideoUrl,d);g.wG(this.Jk,d&&!a.isLivePlayback);
this.wz.Jd(b,"href");var e;null==(e=this.Ij)||g.wG(e,!a.isLivePlayback&&!c);var f;null==(f=this.ek)||g.wG(f,!c)};
g.k.dc=function(a){g.gK.prototype.dc.call(this,a);this.G.Wa(this.Gk.element,a);this.G.Wa(this.getVideoUrl.element,a);this.G.Wa(this.Jk.element,a);this.Ij&&this.G.Wa(this.Ij.element,a);this.ek&&this.G.Wa(this.ek.element,a)};g.w(g.pK,g.HJ);g.k=g.pK.prototype;g.k.show=function(){g.HJ.prototype.show.call(this);this.jw()};
g.k.hide=function(){g.HJ.prototype.hide.call(this);1<this.j.length&&g.EK(this)};
g.k.jw=function(){SDa(this);this.ob&&(RDa(this),g.kl(this.element,this.size))};
g.k.Ji=function(){var a=this.j.pop();qK(this,a,this.j[this.j.length-1],!0)};
g.k.PT=function(a){if(!g.pt(a))switch(g.qt(a)){case 27:this.Gb();g.ot(a);break;case 37:1<this.j.length&&this.Ji();g.ot(a);break;case 39:g.ot(a)}};
g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
g.k.ea=function(){g.HJ.prototype.ea.call(this);this.C&&this.C.dispose();this.I&&this.I.dispose()};g.w(g.FK,g.pK);g.k=g.FK.prototype;g.k.RT=function(a){var b=lt(a);if(!(b&&(Jg(b,"a")||Jg(b,null,"ytp-no-contextmenu"))||this.ob)){var c;this.Y=(a=null==(c=a.touches)?void 0:c.item(0))?new g.ag(a.clientX,a.clientY):new g.ag(0,0);this.W.start()}};
g.k.kQ=function(){this.W.stop()};
g.k.x_=function(){this.open(this.Y)};
g.k.show=function(){this.D||(this.D=new mK(this.G,this.ma,this,this.Cc),g.J(this,this.D),g.nK(this,this.D));this.D.onLoopChange(this.G.getLoopVideo());g.pK.prototype.show.call(this);this.G.Wa(this.element,!0);this.D.dc(!0);this.element.tabIndex=-1;this.element.focus()};
g.k.hide=function(){UDa(this);g.pK.prototype.hide.call(this);this.G.Wa(this.element,!1);this.D&&this.D.dc(!1)};
g.k.yY=function(a){var b=lt(a);this.ob||b&&(Jg(b,"a")||Jg(b,null,"ytp-no-contextmenu"))||(g.ot(a),this.open(nt(a)))};
g.k.open=function(a){VDa(this);var b=this.G.getVideoData();g.O(this.element,"ytp-dni",b.D);this.element.style.left="";this.element.style.top="";a.x++;a.y++;this.td();var c=document.body;b=new Rk(0,Infinity,Infinity,0);var d=ng(c);for(var e=d.j.body,f=d.j.documentElement,h=Vca(d.j);c=Rga(c);)if(!(g.Gc&&0==c.clientWidth||g.Ee&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=el(c,"overflow")){var l=g.il(c),m=new g.ag(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,l.y);b.right=Math.min(b.right,
l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,h);d=d.j;d=Uca(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,65==(e&65)&&(a.x<d.left||a.x>=d.right)&&(e&=-2),132==(e&132)&&(a.y<d.top||a.y>=d.bottom)&&(e&=
-5),a.x<d.left&&e&1&&(a.x=d.left),e&16&&(f=a.x,a.x<d.left&&(a.x=d.left),a.x+h.width>d.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.y<d.top&&e&4&&(a.y=d.top),e&32&&(f=a.y,a.y<d.top&&(a.y=d.top),a.y+h.height>d.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.Yk(0,0,0,0);d.left=
a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.gl(this.element,new g.ag(d.left,d.top));g.hu(this.B);this.B.P(document,"contextmenu",this.IY);this.B.P(this.G,"fullscreentoggled",this.onFullscreenToggled);this.B.P(this.G,"pageTransition",this.QT)};
g.k.IY=function(a){if(!g.pt(a)){var b=lt(a);g.Fg(this.element,b)||this.Gb();this.G.S().disableNativeContextMenu&&g.ot(a)}};
g.k.onFullscreenToggled=function(){this.Gb();VDa(this)};
g.k.QT=function(){this.Gb()};g.w(g.GK,g.W);g.GK.prototype.onClick=function(){var a=this,b,c,d,e;return g.B(function(f){if(1==f.j)return b=a.api.S(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.A(f,XDa(a,e),2);f.u&&WDa(a);a.api.sb(a.element);g.va(f)})};
g.GK.prototype.Ea=function(){var a=this.api.S(),b=this.api.getVideoData();this.Ha("icon",{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{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.Ha("title-attr","Copy link");var c=this.api.Ya().getPlayerSize().width;this.visible=
!!b.videoId&&c>=this.u&&b.Gl&&!(b.D&&a.pfpChazalUi);g.O(this.element,"ytp-copylink-button-visible",this.visible);g.wG(this,this.visible);IK(this.tooltip);this.api.Wa(this.element,this.visible&&this.oa)};
g.GK.prototype.dc=function(a){g.W.prototype.dc.call(this,a);this.api.Wa(this.element,this.visible&&a)};
g.GK.prototype.ea=function(){g.W.prototype.ea.call(this);g.go(this.element,"ytp-copylink-button-visible")};g.w(JK,g.W);g.k=JK.prototype;g.k.show=function(){g.W.prototype.show.call(this);g.Fn(this.j)};
g.k.hide=function(){this.u.stop();g.go(this.element,"ytp-chapter-seek");g.go(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
g.k.Iv=function(a,b,c,d){this.Jv(a,d)};
g.k.Jv=function(a,b){g.Hn(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.go(this.element,"ytp-chapter-seek");this.Ha("chapterSeekText","");a=g.gF("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});this.Ha("seekTime",a)};
g.k.iD=function(a,b){g.Hn(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.N(this.element,"ytp-chapter-seek");this.Ha("chapterSeekText",b);this.Ha("seekTime","")};g.w(KK,g.W);g.k=KK.prototype;g.k.show=function(){g.W.prototype.show.call(this);g.Fn(this.u)};
g.k.hide=function(){this.B.stop();g.go(this.element,"ytp-chapter-seek");g.go(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
g.k.Iv=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.G.sb(e);g.Hn(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.G.Ya().getPlayerSize().height;e=this.G.Ya().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.ya("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=
h+"px";1===a?(a=this.G.Ya().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.ya("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");YDa(this,d)};
g.k.Jv=function(a,b){var c=this.G.Ya().getPlayerSize();g.Hn(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.N(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";YDa(this,b)};
g.k.iD=function(a,b){g.Hn(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.N(this.element,"ytp-chapter-seek");this.Ha("seekText",b);this.Ha("seekTime","")};var iVa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(iVa).reduce(function(a,b){a[iVa[b]]=b;return a},{});
var jVa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(jVa).reduce(function(a,b){a[jVa[b]]=b;return a},{});
var kVa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(kVa).reduce(function(a,b){a[kVa[b]]=b;return a},{});var X_,lVa;X_=[{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"}];lVa=[{option:0,text:LK(0)},{option:.25,text:LK(.25)},{option:.5,text:LK(.5)},{option:.75,text:LK(.75)},{option:1,text:LK(1)}];
g.PK=[{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 color",options:X_},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:LK(.5)},{option:-1,text:LK(.75)},{option:0,text:LK(1)},{option:1,text:LK(1.5)},{option:2,text:LK(2)},
{option:3,text:LK(3)},{option:4,text:LK(4)}]},{option:"background",text:"Background color",options:X_},{option:"backgroundOpacity",text:"Background opacity",options:lVa},{option:"windowColor",text:"Window color",options:X_},{option:"windowOpacity",text:"Window opacity",options:lVa},{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:LK(.25)},{option:.5,text:LK(.5)},{option:.75,text:LK(.75)},{option:1,text:LK(1)}]}];g.w(g.OK,g.kz);g.k=g.OK.prototype;
g.k.fO=function(a){var b=!1,c=g.qt(a),d=lt(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.S();g.pt(a)?(e=!1,h=!0):l.Wg&&(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);TJ(this.Cc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);TJ(this.Cc,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Qf()&&(this.api.startSeekCsiAction(),
this.api.seekTo(0),h=f=!0);break;case 35:this.api.Qf()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&NK(this,!0);(b||h)&&this.Qd.Mm();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.ot(a);l.B&&(a={keyCode:g.qt(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.pt(a),fullscreen:this.api.isFullscreen()},this.api.La("onKeyPress",a))};
g.k.gO=function(a){this.handleGlobalKeyUp(g.qt(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.GI(this.api.ib());c&&(c=c.lq)&&c.ob&&(c.bO(a),b=!0);9===a&&(NK(this,!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.S();if(e.Wg)return h;var l=g.GI(this.api.ib());if(l&&(l=l.lq)&&l.ob)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.aO(a)}e.D||h||(h=f||String.fromCharCode(a).toLowerCase(),this.u+=h,0==="awesome".indexOf(this.u)?(h=!0,7===this.u.length&&Cja(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.uc)?void 0:null==
(n=m.u)?void 0:n.isEnabled;m=l?l.Ag:[];n=FO?d:c;switch(a){case 80:b&&!e.Da&&(SJ(this.Cc,eBa(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.Da&&(SJ(this.Cc,GG(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.Qf()&&(this.api.startSeekCsiAction(),this.j?this.j.Jv(-1,10):SJ(this.Cc,{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{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.Qf()&&(this.api.startSeekCsiAction(),this.j?this.j.Jv(1,10):SJ(this.Cc,{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{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.Qf()&&(this.api.startSeekCsiAction(),n?(n=aEa(m,1E3*this.api.getCurrentTime()),-1!==n&&null!=this.j&&(this.j.iD(-1,m[n].title),this.api.seekTo(m[n].startTime/1E3),h=!0)):(this.j?this.j.Jv(-1,5):SJ(this.Cc,{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{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.Qf()&&(this.api.startSeekCsiAction(),n?(n=$Da(m,1E3*this.api.getCurrentTime()),-1!==n&&null!=this.j&&(this.j.iD(1,m[n].title),this.api.seekTo(m[n].startTime/1E3),h=!0)):(null!=this.j?this.j.Jv(1,5):SJ(this.Cc,{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{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(),TJ(this.Cc,this.api.getVolume(),!1)):(this.api.mute(),TJ(this.Cc,0,!0));h=!0;break;case 32:case 75:e.Da||(f?this.uc.tG():(h=!g.FF(this.api.xb()),this.Cc.Ns(h),h?this.api.playVideo():this.api.pauseVideo()),h=!0);break;case 190:b?e.Kd&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),GDa(this.Cc,!1),h=!0):this.api.Qf()&&(dEa(this,1),h=!0);break;case 188:b?e.Kd&&(h=this.api.getPlaybackRate(),
this.api.setPlaybackRate(h-.25,!0),GDa(this.Cc,!0),h=!0):this.api.Qf()&&(dEa(this,-1),h=!0);break;case 70:nDa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0);
break;case 27:f?(this.uc.zN(),h=!0):this.C()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.dJ(this.api.ib())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),HDa(this.Cc,!e||e&&!e.displayName),h=!0);break;case 79:QK(this,"textOpacity");break;case 87:QK(this,"windowOpacity");break;case 187:case 61:QK(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:QK(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.Qf()&&
(this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(p/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.Qd.Mm()}return h};
g.k.ea=function(){g.Hn(this.B);g.kz.prototype.ea.call(this)};g.w(RK,g.W);RK.prototype.Ea=function(){var a=g.YA(this.G.S())&&g.FI(this.G)&&g.V(this.G.xb(),128),b=this.G.getPlayerSize();this.visible=this.j.gg()&&!a&&240<=b.width&&!(this.G.getVideoData().D&&this.G.S().pfpChazalUi);g.O(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&IK(this.tooltip);this.G.Wa(this.element,this.visible&&this.oa)};
RK.prototype.dc=function(a){g.W.prototype.dc.call(this,a);this.G.Wa(this.element,this.visible&&a)};
RK.prototype.ea=function(){g.W.prototype.ea.call(this);g.go(this.element,"ytp-overflow-button-visible")};g.w(SK,g.HJ);g.k=SK.prototype;g.k.ST=function(a){a=lt(a);g.Fg(this.element,a)&&(g.Fg(this.j,a)||g.Fg(this.closeButton,a)||IJ(this))};
g.k.Gb=function(){g.HJ.prototype.Gb.call(this);this.tooltip.Ak(this.element)};
g.k.show=function(){this.ob&&this.G.X("OVERFLOW_PANEL_OPENED");g.HJ.prototype.show.call(this);this.element.setAttribute("aria-modal","true");eEa(this,!0)};
g.k.hide=function(){g.HJ.prototype.hide.call(this);this.element.removeAttribute("aria-modal");eEa(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.dh()&&IJ(this)};
g.k.focus=function(){for(var a=g.r(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.ob){b.focus();break}};g.w(UK,g.W);UK.prototype.onClick=function(a){g.uJ(a,this.api)&&this.api.playVideoAt(this.index)};g.w(VK,g.HJ);g.k=VK.prototype;g.k.show=function(){g.HJ.prototype.show.call(this);this.B.P(this.api,"videodatachange",this.FE);this.B.P(this.api,"onPlaylistUpdate",this.FE);this.FE()};
g.k.hide=function(){g.HJ.prototype.hide.call(this);g.hu(this.B);this.updatePlaylist(null)};
g.k.FE=function(){this.updatePlaylist(this.api.getPlaylist())};
g.k.mD=function(){var a=this.playlist,b=a.B;if(b===this.C)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{for(var c=g.r(this.j),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.j=[];for(d=0;d<c;d++){var e=new UK(this.api,a,d);this.j.push(e);e.xa(this.items)}this.selected=this.j[a.index];this.C=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.w_=function(a){var b=this.api.getVideoUrl(!0);g.vJ(b,this.api,a)};
g.k.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.mD,this),this.playlist=a,this.C=null,a){a.subscribe("shuffle",this.mD,this);var b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.gF(c,d),playlisturl:this.api.getVideoUrl(!0)});this.mD()}else this.ob&&this.hide();
else this.playlist&&this.mD()};
g.k.focus=function(){this.selected.focus()};
g.k.ea=function(){this.hide();g.HJ.prototype.ea.call(this)};g.w(WK,g.W);
WK.prototype.Ea=function(){var a=g.YA(this.api.S());g.O(this.element,"ytp-playlist-menu-button-tiny",400>this.api.Ya().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.gF("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.gF("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.ob||(this.show(),IK(this.tooltip)),this.visible=!0,this.dc(!0)):
this.ob&&(this.hide(),this.dc(!1),IK(this.tooltip))};
WK.prototype.dc=function(a){g.W.prototype.dc.call(this,a);this.api.Wa(this.element,this.visible&&a)};
WK.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ea,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ea,this);this.Ea()};g.w(XK,g.W);g.k=XK.prototype;g.k.BY=function(){this.C?$K(this):YK(this)};
g.k.AY=function(){this.C?(aL(this),this.I=!0):YK(this)};
g.k.QX=function(){this.D=!0;ZK(this,1);this.G.X("promotooltipacceptbuttonclicked",this.acceptButton);aL(this);this.u&&this.G.sb(this.acceptButton)};
g.k.HY=function(){this.D=!0;ZK(this,2);aL(this);this.u&&this.G.sb(this.dismissButton)};
g.k.TT=function(a){if(1===this.G.getPresentingPlayerType()||2===this.G.getPresentingPlayerType()&&this.N){var b=!0,c=g.rg("ytp-ad-overlay-ad-info-dialog-container"),d=lt(a);if(this.B&&d&&g.Fg(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=hEa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.Fg(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.Fg(this.element,d))}this.j&&this.ob&&!c&&(!d||b&&g.wH(a))&&(this.D=!0,aL(this))}}};
g.k.wb=function(){this.I||(this.j||(this.j=fEa(this)),$K(this))};
var gEa={"ytp-settings-button":g.KG()};g.w(bL,g.W);bL.prototype.onStateChange=function(a){g.wG(this,g.V(a.state,2))};
bL.prototype.onClick=function(){this.G.xb();this.G.playVideo()};g.w(g.cL,g.W);g.cL.prototype.onClick=function(){var a=this.api.S(),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(iEa)}catch(e){e instanceof Error&&iEa(e)}else this.j.fm(),IJ(this.B,this.element,!1);this.api.sb(this.element)};
g.cL.prototype.Ea=function(){var a=this.api.S(),b=this.api.getVideoData(),c=g.YA(a)&&g.FI(this.api)&&g.V(this.api.xb(),128);this.Ha("icon",{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{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.Gl||c||b.D&&a.pfpChazalUi;c=this.api.Ya().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.u&&!a;g.O(this.element,"ytp-share-button-visible",this.visible);g.wG(this,this.visible);IK(this.tooltip);this.api.Wa(this.element,this.visible&&this.oa)};
g.cL.prototype.dc=function(a){g.W.prototype.dc.call(this,a);this.api.Wa(this.element,this.visible&&a)};
g.cL.prototype.ea=function(){g.W.prototype.ea.call(this);g.go(this.element,"ytp-share-button-visible")};g.w(g.dL,g.HJ);g.k=g.dL.prototype;g.k.UT=function(a){a=lt(a);g.Fg(this.D,a)||g.Fg(this.closeButton,a)||IJ(this)};
g.k.Gb=function(){g.HJ.prototype.Gb.call(this);this.tooltip.Ak(this.element)};
g.k.show=function(){var a=this.ob;g.HJ.prototype.show.call(this);this.Ea();a||this.api.La("onSharePanelOpened")};
g.k.oX=function(){this.ob&&this.Ea()};
g.k.Ea=function(){var a=this;g.N(this.element,"ytp-share-panel-loading");g.go(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&TH(this.api.im(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.go(a.element,"ytp-share-panel-loading"),kEa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.iB(this.api.S())&&(b=g.Mh(b,g.mI({},"emb_share")));this.Ha("link",b);this.Ha("linkText",b);this.Ha("shareLinkWithUrl",g.gF("Share link $URL",{URL:b}));xJ(this.B)};
g.k.onFullscreenToggled=function(a){!a&&this.dh()&&IJ(this)};
g.k.focus=function(){this.B.focus()};
g.k.ea=function(){g.HJ.prototype.ea.call(this);jEa(this)};g.w(gL,g.W);g.k=gL.prototype;g.k.eI=function(){};
g.k.fI=function(){};
g.k.Hz=function(){return!0};
g.k.G0=function(){if(this.expanded){this.ma.show();var a=this.I.element.scrollWidth}else a=this.I.element.scrollWidth,this.ma.hide();this.Ta=34+a;g.O(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Ta)+"px";this.Y.start()};
g.k.SV=function(){this.badge.element.style.width=(this.expanded?this.Ta:34)+"px";this.Ga.start()};
g.k.n1=function(){g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.pj=function(){this.Hz()?this.N.show():this.N.hide();lEa(this)};
g.k.VT=function(){this.enabled=!1;this.pj()};
g.k.m1=function(){this.pj()};
g.k.sY=function(a){this.Pa=1===a;this.pj();g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.LY=function(){g.O(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.G.isFullscreen());this.pj()};g.w(hL,gL);g.k=hL.prototype;g.k.ea=function(){iL(this);gL.prototype.ea.call(this)};
g.k.eI=function(a){a.target!==this.dismissButton.element&&(nEa(this,!1),this.G.La("innertubeCommand",this.onClickCommand))};
g.k.fI=function(){this.B=!0;nEa(this,!0);this.pj()};
g.k.xZ=function(a){this.Da=a;this.pj()};
g.k.qZ=function(a){var b=this.G.getVideoData();b&&b.videoId===this.videoId&&this.va&&(this.V=a,a||(a=3+this.G.getCurrentTime(),this.Vd(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.V=this.va=this.u=this.J=!1,iL(this);if(a||!b.videoId)this.D=this.C=!1;a=b.shoppingOverlayRenderer;this.Da=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.dl(this.badge.element,d||null)}if(!this.D){var e;if(this.D=!(null==(e=a.dismissButton)||!e.trackingParams)){var f;this.G.dl(this.dismissButton.element,
(null==(f=a.dismissButton)?void 0:f.trackingParams)||null)}}this.text=g.Hv(a.text);var h;if(c=null==(h=a.dismissButton)?void 0:h.a11yLabel)this.Sa=g.Hv(c);this.onClickCommand=a.onClickCommand;this.timing=a.timing;GD(b)?this.V=this.va=!0:this.Vd()}mEa(this);fL(this);this.pj()};
g.k.Hz=function(){return!this.Da&&this.enabled&&!this.B&&!this.bb.gg()&&!this.Pa&&!this.V&&(this.u||this.j)};
g.k.uf=function(a){(this.u=a)?(eL(this),fL(this,!1)):(iL(this),this.W.start());this.pj()};
g.k.Vd=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.Av(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.Av(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.G.Vd(b)};g.w(jL,g.HJ);jL.prototype.show=function(){g.HJ.prototype.show.call(this);this.C.start()};
jL.prototype.hide=function(){g.HJ.prototype.hide.call(this);this.C.stop()};
jL.prototype.Ep=function(a,b){"dataloaded"===a&&((this.B=b.jM,this.j=b.hM,isNaN(this.B)||isNaN(this.j))?this.D&&(this.G.Df("intro"),this.G.removeEventListener(g.Cv("intro"),this.Y),this.G.removeEventListener(g.Dv("intro"),this.W),this.G.removeEventListener("onShowControls",this.I),this.hide(),this.D=!1):(this.G.addEventListener(g.Cv("intro"),this.Y),this.G.addEventListener(g.Dv("intro"),this.W),this.G.addEventListener("onShowControls",this.I),a=new g.Av(this.B,this.j,{priority:9,namespace:"intro"}),
this.G.Vd([a]),this.D=!0))};g.w(kL,g.W);kL.prototype.onClick=function(){this.G.kq()};
kL.prototype.Ea=function(){var a=!0;g.YA(this.G.S())&&(a=a&&480<=this.G.Ya().getPlayerSize().width);g.wG(this,a);this.Ha("icon",this.G.eg()?{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,T:{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",
T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{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 ir("yt.autonav");g.w(lL,g.W);g.k=lL.prototype;
g.k.Ow=function(){var a;if(a=3!==this.G.getPresentingPlayerType()&&g.JI(this.G)&&400<=this.G.Ya().getPlayerSize().width)a=this.fd(),a=this.G.S().K("client_respect_autoplay_switch_button_renderer")?!!a.autoplaySwitchButtonRenderer:!1!==a.wS;if(a)this.j||(this.j=!0,g.wG(this,this.j),this.G.S().K("web_player_autonav_toggle_always_listen")||oEa(this),a=this.fd(),this.yL(a.autonavState),this.G.Wa(this.element,this.j));else if(this.j=!1,g.wG(this,this.j),!this.G.S().K("web_player_autonav_toggle_always_listen")){this.G.S().K("web_player_autonav_toggle_always_listen");a=
g.r(this.u);for(var b=a.next();!b.done;b=a.next())this.vc(b.value)}};
g.k.yL=function(a){qEa(this)?this.isChecked=1!==a:((a=1!==a)||(g.cr.getInstance(),a=g.Q("web_autonav_allow_off_by_default")&&!g.dr(0,141)&&g.P("AUTONAV_OFF_BY_DEFAULT")?!1:!g.dr(0,140)),this.isChecked=a);pEa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.G.lD(this.isChecked?2:1);pEa(this);if(qEa(this)){var a=this.fd().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.G.La("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.G.La("innertubeCommand",a.onDisabledCommand)}this.G.sb(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.setValue=function(a){this.isChecked=a;this.ya("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};
g.k.fd=function(){var a;this.G.S().K("web_player_autonav_toggle_app_video_data_killswitch")||(a=1);return this.G.getVideoData(a)};g.w(g.nL,g.W);g.nL.prototype.ea=function(){this.ctx=null;g.W.prototype.ea.call(this)};g.w(oL,g.W);oL.prototype.onClick=function(){this.G.La("innertubeCommand",this.j)};
oL.prototype.J=function(a){a!==this.D&&(this.update({title:a}),this.D=a);a?this.show():this.hide()};
oL.prototype.I=function(){this.B.disabled=null==this.j;g.O(this.B,"ytp-chapter-container-disabled",this.B.disabled);this.Sb()};g.w(pL,oL);pL.prototype.onClickCommand=function(a){(null==a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Sb()};
pL.prototype.updateVideoData=function(a,b){var c;this.j=null==(c=b.CS)?void 0:c.command;oL.prototype.I.call(this)};
pL.prototype.Sb=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(1<b.length&&!c){a=1E3*this.G.getProgressState().current;c=MK(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.u)this.G.La("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.u=!1}else this.u=!0;oL.prototype.J.call(this,a)};g.w(g.qL,g.W);g.qL.prototype.Wc=function(a){g.V(a.state,32)?rL(this,this.api.wi()):this.ob&&(g.V(a.state,16)||g.V(a.state,1))||this.j.hide()};
g.qL.prototype.Od=function(){var a=this.api.xb();(g.V(a,32)||g.V(a,16))&&sL(this)};
g.qL.prototype.D=function(){this.B=NaN;sL(this)};
g.qL.prototype.hide=function(){this.u&&rL(this,null);g.W.prototype.hide.call(this)};g.w(tL,g.W);tL.prototype.onClick=function(){this.Oa.sb(this.element);this.Oa.La("onFullerscreenEduClicked")};
tL.prototype.Ea=function(){this.Oa.isFullscreen()?this.u?this.j.hide():this.j.show():this.hide();this.Oa.Wa(this.element,this.Oa.isFullscreen()&&!this.u)};g.w(g.uL,g.W);g.k=g.uL.prototype;g.k.onClick=function(){var a=this;if(this.G.S().eb||this.G.S().I){this.G.sb(this.element);try{this.G.toggleFullscreen().catch(function(b){a.ly(b)})}catch(b){this.ly(b)}}else IJ(this.message,this.element,!0)};
g.k.ly=function(a){String(a).includes("fullscreen error")?g.Bu(a):g.S(a);this.oI()};
g.k.oI=function(){this.disable();this.message.td(this.element,!0)};
g.k.Wn=function(){cu()===this.G.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.sV=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=.9*window.screen.width,b=.9*window.screen.height,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.oI()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=et(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.HJ(this.G,{F:"div",Ba:["ytp-popup","ytp-generic-popup"],T:{role:"alert",tabindex:"0"},R:[b[0],{F:"a",T:{href:"https://web.archive.org/web/20220603021303/https://support.google.com/youtube/answer/6276924",
target:this.G.S().J},Z:b[2]},b[4]]},100,!0);this.message.hide();g.J(this,this.message);this.message.subscribe("show",function(c){a.u.yu(a.message,c)});
g.II(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.Ea=function(){var a=nDa(this.G),b=this.G.S().I&&250>this.G.getPlayerSize().width;g.wG(this,a&&!b);this.G.Wa(this.element,this.ob)};
g.k.dk=function(a){if(a){var b={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"g",L:"ytp-fullscreen-button-corner-2",R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{F:"g",L:"ytp-fullscreen-button-corner-3",R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{F:"g",L:"ytp-fullscreen-button-corner-0",R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{F:"g",
L:"ytp-fullscreen-button-corner-1",R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=yJ(this.G,"Exit full screen","f");document.activeElement===this.element&&this.G.getRootNode().focus()}else b={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"g",L:"ytp-fullscreen-button-corner-0",R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{F:"g",L:"ytp-fullscreen-button-corner-1",R:[{F:"path",
Jb:!0,L:"ytp-svg-fill",T:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{F:"g",L:"ytp-fullscreen-button-corner-2",R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{F:"g",L:"ytp-fullscreen-button-corner-3",R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=yJ(this.G,"Full screen","f");a=this.message?null:a;this.update({title:a,icon:b});IK(this.u.kc())};
g.k.ea=function(){this.message||((0,this.j)(),this.j=null);g.W.prototype.ea.call(this)};g.w(vL,oL);vL.prototype.onClickCommand=function(a){(null==a?0:a.changeMarkersVisibilityCommand)&&this.Sb()};
vL.prototype.updateVideoData=function(){var a,b;this.j=null==(a=sEa(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;oL.prototype.I.call(this)};
vL.prototype.Sb=function(){var a="",b=this.C.V,c,d=null==(c=sEa(this))?void 0:c.headerTitle;c=d?g.Hv(d):"";d=this.G.getLoopRange();d=!this.G.K("web_repeating_chapters")&&d||"clips"===(null==d?void 0:d.type);1<b.length&&!d&&(a=1E3*this.G.getProgressState().current,d=ZDa(b,a),a=null!=d?b[d].title:c,null!=d&&d!==this.currentIndex&&(this.G.La("innertubeCommand",b[d].onActiveCommand),this.currentIndex=d));oL.prototype.J.call(this,a)};g.w(wL,g.W);wL.prototype.onClick=function(){this.G.La("onCollapseMiniplayer");this.G.sb(this.element)};
wL.prototype.Ea=function(){this.visible=!this.G.isFullscreen();g.wG(this,this.visible);this.G.Wa(this.element,this.visible&&this.oa)};
wL.prototype.dc=function(a){g.W.prototype.dc.call(this,a);this.G.Wa(this.element,this.visible&&a)};g.w(xL,g.W);xL.prototype.onVideoDataChange=function(a){this.Ea("newdata"===a)};
xL.prototype.Ea=function(a){var b=this.G.getVideoData(),c=b.ye,d=this.G.xb();d=(g.FF(d)||g.V(d,4))&&0<c.length;g.wG(this,d);a&&(this.j=!0);if(d){this.j&&g.Fn(this.u);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.gF("Viewing $CAMERA_INDEX of $CAMERA_COUNT",{CAMERA_INDEX:String(e+1),CAMERA_COUNT:String(c.length)})+"\n";break}this.update({text:d+a,preview:b.zf("default.jpg")});IK(this.tooltip)}else this.u.stop()};
xL.prototype.B=function(){HK(this.tooltip,this.element,"More cameras available");this.j=!1};g.w(yL,g.HJ);g.k=yL.prototype;g.k.show=function(){var a=this.ob;g.HJ.prototype.show.call(this);a||(this.B.P(this.api,"presentingplayerstatechange",this.Ea),this.B.P(this.api,"videodatachange",this.Ea),this.Ea())};
g.k.hide=function(){this.B&&(g.hu(this.B),g.HJ.prototype.hide.call(this))};
g.k.Ea=function(){var a=this,b=this.api.getVideoData(),c=b.ye,d,e={};for(d=0;d<c.length;e={SD:e.SD},d++){var f=this.j[d];f||(f=new g.W({F:"button",Ba:["ytp-multicam-menu-item","ytp-button"],T:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},R:[{F:"div",L:"ytp-multicam-menu-item-title",Z:"{{cameraName}}"}]}),e.SD=d,f.Ma("click",function(n){return function(){var p=n.SD,q=a.api.getVideoData(),t=a.api,u=q.ye[p];p=g.KI(t.app,1).getVideoData();q=t.getCurrentTime();u.id===p.videoId?(u=g.KI(t.app,
1),g.KI(t.app)!==u&&(t.app.ao(),p.isLivePlayback||t.seekTo(q))):t.app.loadVideoByPlayerVars({videoId:u.id,title:p.title,start:p.isLivePlayback?null:q,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.PL}}}},4)}}(e)),f.xa(this.items),this.j[d]=f);
var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=uB(this.api.S(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:h.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.j.length;)this.j.pop().dispose();d=this.api.xb();b=c.length||!b.isLoaded();g.FF(d)||g.V(d,4)||b||!this.dh()||IJ(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.ye,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.j[c].focus();break}};
g.k.ea=function(){g.Ae(this.j);g.HJ.prototype.ea.call(this)};g.w(zL,g.I);zL.prototype.j=function(){var a=(0,g.R)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(g.vo(mVa,a));1>a&&this.delay.start()};
var mVa=new g.uo(0,0,.4,0,.2,1,1,1),xEa=/[0-9.-]+|[^0-9.-]+/g;g.w(g.BL,g.W);g.k=g.BL.prototype;g.k.zL=function(a){this.visible=300<=a.width;g.wG(this,this.visible);this.G.Wa(this.element,this.visible&&this.oa)};
g.k.iZ=function(){this.G.S().ma?this.G.isMuted()?this.G.unMute():this.G.mute():IJ(this.message,this.element,!0);this.G.sb(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.S();a=0===d?1:50<a?1:0;if(this.D!==a){var f=this.W;isNaN(f)?AEa(this,a):AL(this.ma,function(l){AEa(c,f+(c.D-f)*l)},250);
this.D=a}d=0===d?1:0;if(this.C!==d){var h=this.N;isNaN(h)?BEa(this,d):AL(this.V,function(l){BEa(c,h+(c.C-h)*l)},250);
this.C=d}e.ma&&(e=yJ(this.G,"Mute","m"),d=yJ(this.G,"Unmute","m"),this.Ha("title",b?d:e),IK(this.tooltip))};
g.k.dc=function(a){g.W.prototype.dc.call(this,a);this.G.Wa(this.element,this.visible&&a)};
var yEa=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],zEa=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.w(CL,g.W);CL.prototype.onClick=function(){this.G.togglePictureInPicture()};g.w(g.DL,g.W);g.DL.prototype.onStateChange=function(a){CEa(this,a.state);a=g.V(a.state,2);XB(this.G.S())&&(!this.u&&!a||this.u&&a?(this.hide(),this.G.Wa(this.element,!1)):(this.show(),this.G.Wa(this.element,!0)))};
g.DL.prototype.onVideoDataChange=function(){g.O(this.element,"ytp-play-button-playlist",g.FI(this.G))};
g.DL.prototype.Zv=function(a){this.G.sb(this.element);if(g.FF(this.G.xb()))this.G.pauseVideo();else{if(this.G.sf()&&this.G.xb().isCued()){var b={},c;!this.G.K("web_player_csi_ctt_killswitch")&&(null==(c=this.G.getVideoData())?0:c.J)&&(b.cttAuthInfo={token:this.G.getVideoData().J,videoId:this.G.getVideoData().videoId});ow("direct_playback",b)}this.G.Ti().timerName="direct_playback";this.G.playVideo()}!this.G.S().K("miniplayer_disable_play_button_click_focus_killswitch")&&this.G.sf()&&a&&"click"===
a.type&&this.element.blur()};g.w(g.FL,g.W);g.k=g.FL.prototype;g.k.onVideoDataChange=function(){EEa(this);this.C&&(this.vc(this.C),this.C=null);this.videoData=this.G.getVideoData(1);if(this.playlist=this.G.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.C=this.P(this.G,"progresssync",this.XT);this.B=FEa(this);EL(this);this.GE(this.G.Ya().getPlayerSize())};
g.k.GE=function(a){a=void 0===a?this.G.Ya().getPlayerSize():a;a=(g.FI(this.G)||this.j&&g.JI(this.G)||GEa(this))&&(this.j||400<=a.width);g.wG(this,a);this.G.Wa(this.element,a)};
g.k.onClick=function(a){this.G.sb(this.element);var b=!0;this.I?b=g.uJ(a,this.G):g.ot(a);b&&(this.j&&5===this.G.getPresentingPlayerType()?this.G.X("ytoprerollinternstitialnext"):this.j?this.G.nextVideo(!0):this.B?this.G.seekTo(0):this.G.previousVideo(!0))};
g.k.XT=function(){var a=FEa(this);a!==this.B&&(this.B=a,EL(this))};
g.k.ea=function(){this.u&&(this.u(),this.u=null);EEa(this);g.W.prototype.ea.call(this)};g.w(GL,g.W);g.k=GL.prototype;g.k.aU=function(a){this.IE(a.pageX);this.HE(a.pageX+a.deltaX);HL(this)};
g.k.IE=function(a){this.J=a};
g.k.HE=function(a){!isNaN(this.J)&&0<this.thumbnails.length&&(this.I=a-this.J,0<this.thumbnails.length&&0!==this.I&&(this.u=this.D+this.I,a=KEa(this,this.u),this.u<=this.B/2&&this.u>=JEa(this)?(this.api.seekTo(a,!1),g.al(this.N,"transform","translateX("+this.u+"px)"),this.update({seekTime:g.vH(a)})):this.u=this.D))};
g.k.ZT=function(){var a=300>(0,g.R)()-this.ma;if(5>Math.abs(this.I)&&!a){this.ma=(0,g.R)();a=this.J+this.I;var b=this.B/2-a;this.IE(a);this.HE(a+b);HL(this)}HL(this)};
g.k.play=function(){this.api.seekTo(KEa(this,this.u));this.api.playVideo()};
g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.va=this.api.getCurrentTime(),g.O(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Y=this.P(this.element,"wheel",this.aU))};
g.k.disable=function(){this.isEnabled=!1;this.hide();g.O(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Y&&this.vc(this.Y)};
g.k.reset=function(){this.disable();this.C=[];this.W=!1};
g.k.ea=function(){for(;this.j.length;){var a=void 0;null==(a=this.j.pop())||a.dispose()}g.W.prototype.ea.call(this)};
g.w(HEa,g.W);g.w(JL,g.W);g.w(LEa,g.W);g.w(KL,g.W);OEa.prototype.update=function(a,b,c,d){this.width=b;this.u=c;this.D=d;this.j=b-c-d;this.position=g.Xf(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.w(OL,g.W);g.w(g.QL,g.xG);g.k=g.QL.prototype;
g.k.XR=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.Df("timedMarkerCueRange");RL(this);for(var c=g.r(b.Yc),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Yc[d])?void 0:e.markers;if(f){a=g.r(f);for(e=a.next();!e.done;e=a.next()){f=e.value;e=new OL;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;SEa(this,e)}SL(this,this.V);a=this.V;e=this.Le;f=[];h=null;for(l=0;l<a.length;l++){var m=a[l].timeRangeStartMillis;if(!isNaN(m)&&a[l].onActiveCommand){var n=void 0,p=null!=(n=a[l].j)?n:1E4;h&&h.end>m&&(h.end=m);m=bEa(m,m+p);f.push(m);h=m;e[m.id]=a[l].onActiveCommand}}this.api.Vd(f);this.Ze=this.Yc[d];a=!0}}b.KO=this.V;return a};
g.k.wb=function(){g.TL(this);WL(this);SL(this,this.V);var a;null==(a=this.u)||IL(a,this.api.getCurrentTime())};
g.k.onClickCommand=function(a){if(a=null==a?void 0:a.changeKeyedMarkersVisibilityCommand){var b=a.key;a.isVisible&&b&&UL(this,b)}};
g.k.v_=function(a){this.api.La("innertubeCommand",this.Le[a.id])};
g.k.Sb=function(){WL(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.fD()};
g.k.cU=function(a){if(!g.pt(a)){var b=!1;switch(g.qt(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.ot(a)}};
g.k.Ep=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.uW=function(){this.Ep("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(aE(a)||ZL(this)?this.md=!1:this.md=a.allowLiveDvr,g.O(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!aE(a))));eFa(this,this.api.Qf());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;bM(this);for(XL(this,this.Y,this.qb);0<this.I.length;)this.I.pop().dispose();this.heatMarkersDecorations=[];this.Kb={};var d;null==(d=this.u)||d.reset();gM(this)}else this.fD();g.jN(this.tooltip)}if(a){b=a.watchNextResponse;
var e;d=!this.api.K("web_repeating_chapters")&&this.tb||"clips"===(null==(e=this.tb)?void 0:e.type);if(e=!a.isLivePlayback&&b)e=this.api.getVideoData(),b=e.lF,e=null!=e.multiMarkersPlayerBarRenderer||null!=b&&0<b.length||0<e.zs.length;if(e&&!d){e=this.api.getVideoData();d=e.multiMarkersPlayerBarRenderer;if(null==d?0:d.markersMap){e=this.api.getVideoData();var f;e.Mq=(null==(f=d.visibleOnLoad)?void 0:f.key)||e.Mq;f=g.r(d.markersMap);for(d=f.next();!d.done;d=f.next())d=d.value,d.key&&d.value&&(this.Kb[d.key]=
d.value,d.value.onChapterRepeat&&(e.MS=d.value.onChapterRepeat));null!=e.Mq&&UL(this,e.Mq)}else{if(f=this.api.S().K("web_key_moments_markers")&&0<e.zs.length){f=g.vD.getState().entities;d=g.r(e.zs);for(b=d.next();!b.done;b=d.next()){b=b.value;var h=void 0;c=null==(h=f.macroMarkersListEntity?f.macroMarkersListEntity[b]||null:null)?void 0:h.markersList;h=void 0;"MARKER_TYPE_TIMESTAMPS"===(null==(h=c)?void 0:h.markerType)&&(this.Yc[b]=c)}f=this.XR()}!f&&(f=e.lF)&&(REa(this,f),e.Ag=this.j,QEa(this))}XEa(this,
null);a.OL&&0===this.I.length&&(a=a.OL,f=a.key,a.isVisible&&f&&UL(this,f))}else PEa(this),RL(this)}WL(this)};
g.k.bU=function(a){this.W&&!g.V(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.W.cancel();var b;(null==(b=this.u)?0:b.isEnabled)&&g.V(a.state,8)&&this.api.pauseVideo()};
g.k.AL=function(a){var b=!!this.tb!==!!a,c=this.tb;this.tb=a;XEa(this,c);this.api.K("web_repeating_chapters")&&"clips"!==(null==a?void 0:a.type)&&a||(a?(this.Ha("clipstarticon",aBa()),this.Ha("clipendicon",aBa()),this.Ha("clipstarttitle",null),this.Ha("clipendtitle",null)):(this.Ha("clipstarticon",WAa()),this.Ha("clipendicon",VAa()),this.Ha("clipstarttitle","Watch full video"),this.Ha("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(),!0),g.TL(this)),bM(this));XL(this,
this.Y,this.qb)};
g.k.AZ=function(a,b,c){var d=g.il(this.element),e=VL(this).j,f=c?c.getAttribute("data-tooltip"):void 0,h=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;h&&(a=CH(this.B,Number(c.getAttribute("data-position")),0)*e+g.il(this.uc).x);this.Jc.x=a-d.x;this.Jc.y=b-d.y;a=VL(this);c=aM(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:aE(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,b=-this.va,m=CH(this.B,m)*VL(this).j+b,a.position=m),
b=this.B.u;ZL(this)&&(b=this.B.u);m=f||g.vH(this.md?c-this.B.j:c-b);b=a.position+this.zg;c-=this.api.ud();var n;if(null==(n=this.u)||!n.isEnabled)if(this.api.wi()){if(1<this.j.length){n=$L(this,this.Jc.x,!0);if(!this.tb)for(d=0;d<this.j.length;)g.O(this.j[d].j,"ytp-exp-chapter-hover-effect",d===n),d++;d=this.j[n].startTime;e=n===this.j.length-1?Infinity:this.j[n+1].startTime;h=g.r(this.V);for(var p=h.next();!p.done;p=h.next())p=p.value,g.O(p.element,"ytp-timed-marker-hover",p.timeRangeStartMillis>=
d&&p.timeRangeStartMillis<e);if(1<this.I.length)for(d=0;d<this.j.length;d++)g.O(this.I[d].element,"ytp-heatmap-hover",d===n)}d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.K("web_key_moments_markers")?this.Ze?(n=ZDa(this.V,1E3*c),n=null!=n?this.V[n].title:""):(n=MK(this.j,1E3*c),n=this.j[n].title):(n=MK(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=MK(this.j,1E3*c);this.bb=YEa(this,c,d)?d:YEa(this,c,d+1)?d+1:-1;g.O(this.api.getRootNode(),"ytp-progress-bar-snap",
-1!==this.bb&&1<this.j.length);d=!1;e=g.r(this.heatMarkersDecorations);for(h=e.next();!h.done;h=e.next())h=h.value,p=1E3*c,p>=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.vH(h.decorationTimeMillis/1E3),d=!0);this.ye!==d&&(this.ye=d,this.api.Wa(this.ge,this.ye));g.O(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.C?8.55:5.7);d=e<=d?e:d;e=d<160*this.tooltip.scale;h=3;!e&&d/2>a.position&&(h=1);!e&&d/2>this.D-a.position&&
(h=2);this.api.S().I&&(l-=10);this.I.length&&this.I[0].isValid&&(l-=14*(this.C?2:1),this.Ga||(this.Ga=!0,this.api.Wa(this.ma,this.Ga)));var q;if(PL(this)&&((null==(q=this.u)?0:q.isEnabled)||0<this.N)){var t;l-=(null==(t=this.u)?0:t.isEnabled)?cM(this):this.N}yFa(this.tooltip,b,c,m,!!f,l,n,h)}else yFa(this.tooltip,b,c,m,!!f,l);g.N(this.api.getRootNode(),"ytp-progress-bar-hover");WEa(this)};
g.k.zZ=function(){g.jN(this.tooltip);g.go(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ga&&(this.Ga=!1,this.api.Wa(this.ma,this.Ga))};
g.k.yZ=function(a,b){PL(this)&&this.u&&(this.u.W?IL(this.u,this.api.getCurrentTime()):IEa(this.u),this.u.show(),g.O(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.u.isEnabled));this.J&&(this.J.dispose(),this.J=null);this.ze=b;1<this.j.length&&-1!==this.bb?this.api.seekTo(this.j[this.bb].startTime/1E3,!1):this.api.seekTo(aM(this,VL(this)),!1);g.N(this.element,"ytp-drag");(this.Me=g.FF(this.api.xb()))&&this.api.pauseVideo()};
g.k.BZ=function(){var a=this;if(PL(this)&&this.u){var b=cM(this);this.N>=.5*b?(this.u.enable(),IL(this.u,this.api.getCurrentTime()),dFa(this,b)):gM(this)}else if(this.Zc=0,g.go(this.element,"ytp-pull-ui"),g.go(this.element,"ytp-pulling"),this.J&&(this.J.dispose(),this.J=null),0<this.N){var c=(0,g.R)();this.J=new g.Dn(function(){var f=a.N,h=VL(a).position,l=1-Math.pow(1-((0,g.R)()-c)/200,3);h+=l*(a.Y*a.D-h);if(0>l||1<l)l=1;ZEa(a,(1-l)*f,h,a.Y);1>l&&a.J.start();a.Ia&&(a.Ia=!1,a.api.Wa(a.eb,a.Ia))});
this.J.start()}if(g.V(this.api.xb(),32)||3===this.api.getPresentingPlayerType()){var d;if(null==(d=this.u)?0:d.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1<this.j.length&&-1!==this.bb)this.api.seekTo(this.j[this.bb].startTime/1E3);else{b=aM(this,VL(this));this.api.seekTo(b);d=g.r(this.heatMarkersDecorations);for(var e=d.next();!e.done;e=d.next())e=e.value,1E3*b>=e.visibleTimeRangeStartMillis&&1E3*b<=e.visibleTimeRangeEndMillis&&this.api.sb(this.ge)}g.go(this.element,"ytp-drag");
this.Me&&!g.V(this.api.xb(),2)&&this.api.playVideo()}}};
g.k.CZ=function(a,b){var c=this,d=!1,e=!1;a=VL(this);1===this.j.length&&!PL(this)&&3600<=AH(this.B)&&(ZEa(this,this.ze-b-10,a.position,a.B),e=!0,d=this.N>.1*(this.C?60:40),a=VL(this));g.O(this.element,"ytp-pull-ui",e);d&&g.N(this.element,"ytp-pulling");d=0;a.u&&0>=a.position?d=-1:a.D&&a.position>=a.width&&(d=1);if(this.Zc!==d&&(this.Zc=d,this.J&&(this.J.dispose(),this.J=null),d)){var f=(0,g.R)();this.J=new g.Dn(function(){var l=c.D*(c.Ta-1);c.va=g.Xf(c.va+c.Zc*((0,g.R)()-f)*.3,0,l);YL(c);c.api.seekTo(aM(c,
VL(c)),!1);0<c.va&&c.va<l&&c.J.start()});
this.J.start()}a=aM(this,a);this.api.seekTo(a,!1);var h;PL(this)&&(null==(h=this.u)?0:h.W)&&(h=cM(this),b=this.ze-b-10,this.u.isEnabled&&(b=h+b,IL(this.u,a)),this.N=g.Xf(b,0,h),dFa(this,this.N))};
g.k.FP=function(){this.tb||(this.Ha("clipstarticon",UAa()),this.Ha("clipendicon",UAa()),g.N(this.element,"ytp-clip-hover"))};
g.k.EP=function(){this.tb||(this.Ha("clipstarticon",WAa()),this.Ha("clipendicon",VAa()),g.go(this.element,"ytp-clip-hover"))};
g.k.fD=function(){this.clipStart=0;this.clipEnd=Infinity;bM(this);XL(this,this.Y,this.qb)};
g.k.ZR=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Pa[c]){var d=g.zg("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Pa[c]=b;this.Nc[c]=d;g.co(d,b.style);$Ea(this,c);this.api.S().K("disable_ad_markers_on_content_progress_bar")||this.j[0].B.appendChild(d)}}else cFa(this,b)};
g.k.j0=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())cFa(this,b.value)};
g.k.zN=function(){this.u&&(this.api.seekTo(this.u.va),this.api.playVideo(),gM(this))};
g.k.tG=function(){this.u&&(this.u.play(),gM(this))};
g.k.ea=function(){eFa(this,!1);g.xG.prototype.ea.call(this)};g.w(hM,g.W);hM.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
hM.prototype.Ea=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);g.wG(this,a&&400<=this.G.Ya().getPlayerSize().width);this.G.Wa(this.element,this.ob);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.Ha("icon",{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,T:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.Ha("icon",g.TAa())}g.O(this.element,"ytp-remote-button-active",this.isActive())}};
hM.prototype.u=function(){this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.jb.DD(this.element);this.G.sb(this.element)};g.w(iM,g.W);iM.prototype.j=function(a){g.wG(this,this.u&&400<=a.width)};
iM.prototype.B=function(){var a=this.jb;a.ob?a.Gb():a.td(this.element)};g.w(jM,g.cK);jM.prototype.onClick=function(){this.jb.Gb()};g.w(lM,jM);lM.prototype.onClick=function(){jM.prototype.onClick.call(this);this.G.La("onCollapseMiniplayer");this.G.sb(this.element)};
lM.prototype.Ea=function(){var a=!this.G.isFullscreen();kM(this,a);this.G.Wa(this.element,this.j)};g.w(mM,jM);mM.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
mM.prototype.Ea=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);kM(this,a&&!this.G.isFullscreen());this.G.Wa(this.element,this.j);var b=1;a&&this.isActive()&&(b=2);if(this.B!==b)switch(this.B=b,b){case 1:this.Ha("icon",{F:"svg",T:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},R:[{F:"path",Jb:!0,T:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.Ha("icon",{F:"svg",T:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},R:[{F:"path",Jb:!0,T:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]})}};
mM.prototype.onClick=function(){jM.prototype.onClick.call(this);this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.C.DD(this.element);this.G.sb(this.element)};g.w(nM,jM);nM.prototype.onClick=function(){jM.prototype.onClick.call(this);pT(this.G.app);this.G.sb(this.element)};
nM.prototype.Ea=function(){var a=this.G.zy()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType();kM(this,a);this.j&&(a=this.G.isWidescreen(),this.isWidescreen!==a&&(eK(this,a?{F:"svg",T:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},R:[{F:"path",Jb:!0,T:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{F:"svg",T:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},R:[{F:"path",Jb:!0,T:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",
fill:"#fff","fill-rule":"evenodd"}}]}),this.isWidescreen=a,this.u.Ha("title",a?"Default view":"Theater mode")));this.G.Wa(this.element,this.j)};g.w(oM,g.pK);oM.prototype.td=function(a){0<this.bd.items.length&&g.pK.prototype.td.call(this,a)};
oM.prototype.Bc=function(a){this.bd.Bc(a);a=this.po;a.u=0<this.bd.items.length;a.j(a.G.Ya().getPlayerSize())};
oM.prototype.Of=function(a){this.ob&&1>=this.bd.items.length&&this.hide();this.bd.Of(a);a=this.po;a.u=0<this.bd.items.length;a.j(a.G.Ya().getPlayerSize())};
oM.prototype.DD=function(){};g.w(pM,g.W);pM.prototype.j=function(a){var b=400;this.G.S().I&&(b=200);a=this.u&&a.width>=b;g.wG(this,a);this.G.Wa(this.element,a)};
pM.prototype.B=function(){if(this.jb.ob)this.jb.Gb();else{var a=g.dJ(this.G.ib());a&&!a.loaded&&(a.Zf("tracklist",{includeAsr:!0}).length||a.load());this.G.sb(this.element);this.jb.td(this.element)}};
pM.prototype.updateBadge=function(){var a=this.G.isHdr(),b=this.G.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.HI(this.G),e=c&&!!g.GI(this.G.ib());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.G.getPlaybackQuality();g.O(this.element,"ytp-hdr-quality-badge",a);g.O(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.O(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.O(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.O(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.O(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.O(this.element,"ytp-3d-badge",!a&&e&&d)};g.w(rM,kK);rM.prototype.isLoaded=function(){var a=g.mJ(this.G.ib());return void 0!==a&&a.loaded};
rM.prototype.Ea=function(){void 0!==g.mJ(this.G.ib())&&3!==this.G.getPresentingPlayerType()?this.j||(this.jb.Bc(this),this.j=!0):this.j&&(this.jb.Of(this),this.j=!1);this.setValue(this.isLoaded())};
rM.prototype.onSelect=function(a){this.isLoaded();a?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.X("annotationvisibility",a)};
rM.prototype.ea=function(){this.j&&this.jb.Of(this);kK.prototype.ea.call(this)};g.w(g.sM,g.cK);g.k=g.sM.prototype;g.k.open=function(){g.nK(this.jb,this.B)};
g.k.tj=function(a){gFa(this);this.options[a].element.setAttribute("aria-checked","true");this.Jd(this.xk(a));this.u=a};
g.k.GF=function(a,b,c){var d=this;b=new g.cK({F:"div",Ba:["ytp-menuitem"],T:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},R:[{F:"div",Ba:["ytp-menuitem-label"],Z:"{{label}}"}]},b,this.xk(a,!0));b.Ma("click",function(){d.yg(a)});
return b};
g.k.enable=function(a){this.C?a||(this.C=!1,this.Nt(!1)):a&&(this.C=!0,this.Nt(!0))};
g.k.Nt=function(a){a?this.jb.Bc(this):this.jb.Of(this)};
g.k.yg=function(a){this.X("select",a)};
g.k.xk=function(a){return a.toString()};
g.k.dU=function(a){g.pt(a)||39!==g.qt(a)||(this.open(),g.ot(a))};
g.k.ea=function(){this.C&&this.jb.Of(this);g.cK.prototype.ea.call(this);for(var a=g.r(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.w(uM,g.sM);uM.prototype.Ea=function(){var a=this.G.getAvailableAudioTracks();1<a.length?(g.tM(this,g.kk(a,this.D)),this.tracks=g.rc(a,this.D,this),this.j.Jd(a.length?" ("+a.length+")":""),this.X("size-change"),this.tj(this.D(this.G.getAudioTrack())),this.enable(!0)):this.enable(!1)};
uM.prototype.yg=function(a){g.sM.prototype.yg.call(this,a);this.G.setAudioTrack(this.tracks[a]);this.jb.Ji()};
uM.prototype.D=function(a){return a.toString()};g.w(vM,kK);
vM.prototype.u=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a&&g.JI(this.G))this.j||(this.jb.Bc(this),this.j=!0,this.B.push(this.P(this.G,"videodatachange",this.u)),this.B.push(this.P(this.G,"videoplayerreset",this.u)),this.B.push(this.P(this.G,"onPlaylistUpdate",this.u)),this.B.push(this.P(this.G,"autonavchange",this.C)),a=this.G.getVideoData(),this.C(a.autonavState),this.G.Wa(this.element,this.j));else if(this.j){this.jb.Of(this);this.j=!1;a=g.r(this.B);for(var b=a.next();!b.done;b=a.next())this.vc(b.value)}};
vM.prototype.C=function(a){this.setValue(1!==a)};
vM.prototype.onSelect=function(a){this.G.lD(a?2:1);this.j&&(this.G.Wa(this.element,this.j),this.G.sb(this.element))};
vM.prototype.ea=function(){this.j&&this.jb.Of(this);kK.prototype.ea.call(this)};g.w(wM,g.HJ);wM.prototype.td=function(){g.HJ.prototype.td.call(this);this.dialog.focus()};g.w(xM,g.cK);xM.prototype.dc=function(a){this.u&&this.G.Wa(this.element,this.j&&a)};
xM.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.pg(yM(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.B=new wM(this.G,yM(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),yM(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),yM(null==a?void 0:null==(l=a.menuData)?
void 0:l.confirmButtonText));g.J(this,this.B);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;if(this.u=!!d)this.G.Yh(this.element,this,!0),this.G.dl(this.element,d);this.jb.Bc(this);this.j=!0}else!c&&this.j&&(this.jb.Of(this),this.j=!1)};
xM.prototype.onClick=function(){this.u&&this.G.sb(this.element);this.jb.Gb();this.B&&this.B.td()};g.w(zM,g.W);zM.prototype.onClick=function(){this.jb.Gb()};
zM.prototype.pg=function(a){this.Ha("label",a);this.po.Ha("title",a)};g.w(AM,zM);AM.prototype.onClick=function(){zM.prototype.onClick.call(this);this.G.La("onCollapseMiniplayer");this.G.sb(this.element)};
AM.prototype.Ea=function(){var a=!this.G.isFullscreen();g.wG(this,a);this.G.Wa(this.element,a)};g.w(BM,g.sM);g.k=BM.prototype;g.k.Pw=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a&&(this.D=this.G.qp(),a=this.G.getAvailableQualityLevels(),g.LCa(this.G)&&g.MCa(this.G)&&a.unshift("missing-qualities"),NCa(this.G)&&a.unshift("inline-survey"),g.tM(this,a),a.length)){this.BL();this.enable(!0);return}this.enable(!1)};
g.k.BL=function(){var a=this.G.getPreferredQuality();this.options[a]&&(this.j=this.G.getPlaybackQuality(),this.tj(a),"auto"===a&&this.Jd(this.xk(a)))};
g.k.yg=function(a){"missing-qualities"!==a&&(g.sM.prototype.yg.call(this,a),this.G.setPlaybackQuality(a),this.jb.Gb(),this.Pw())};
g.k.open=function(){g.sM.prototype.open.call(this);this.G.sb(this.element)};
g.k.GF=function(a,b,c){var d=this;if("inline-survey"!==a)return g.sM.prototype.GF.call(this,a,b,c);a=[{F:"span",Z:"Looks good?"}];c={};for(var e=g.r([!0,!1]),f=e.next();!f.done;c={gA:c.gA},f=e.next())c.gA=f.value,f=new g.W({F:"span",L:"ytp-menuitem-inline-survey-response",R:[c.gA?g.EG():YAa()],T:{tabindex:"0",role:"button"}}),f.Ma("click",function(h){return function(){var l=h.gA,m=g.KI(d.G.app);m&&(m.ra("iqsr",{tu:l}),m.getVideoData().xK=!0);d.jb.Gb();d.Pw()}}(c)),a.push(f);
return new g.cK({F:"div",L:"ytp-menuitem",T:{"aria-disabled":"true"},R:[{F:"div",Ba:["ytp-menuitem-label"],R:a}]},b)};
g.k.xk=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{F:"a",T:{href:"https://web.archive.org/web/20220603021303/https://support.google.com/youtube/?p=missing_quality",target:this.G.S().J},Z:"Missing options?"};if("inline-survey"===a)return"";var c=[hFa(this,a)],d=this.G.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(hFa(this,this.j,["ytp-menu-label-secondary"])));return{F:"div",R:c}};g.w(CM,zM);CM.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
CM.prototype.Ea=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);g.wG(this,a);this.G.Wa(this.element,this.ob);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b)switch(this.j=b,b){case 1:this.Ha("icon",SAa());break;case 2:this.Ha("icon",{F:"svg",T:{"enable-background":"new 0 0 24 24",height:"48",viewBox:"0 0 24 24",width:"48"},R:[{F:"path",T:{d:"M22,20l-8-0.04L14,19l7,.04V5H3L2.99,8L2,8l0.02-4H22V20z M2,17.32V20h2.73C4.73,18.52,3.51,17.32,2,17.32z M2,13.75v1.79 c2.51,0,4.55,2,4.55,4.46h1.82C8.36,16.55,5.52,13.75,2,13.75z M2,10.18v1.79c4.52,0,8.18,3.6,8.18,8.03H12 C12,14.57,7.52,10.18,2,10.18z M5,7v1.39c4.21,1.09,7.52,4.39,8.61,8.61H19V7H5z",
fill:"white"}}]})}};
CM.prototype.onClick=function(){zM.prototype.onClick.call(this);this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.jb.DD(this.element);this.G.sb(this.element)};g.w(DM,g.xG);DM.prototype.addButton=function(a){this.element.appendChild(a.element)};
DM.prototype.removeButton=function(a){this.element.removeChild(a.element)};g.w(EM,zM);EM.prototype.onClick=function(){zM.prototype.onClick.call(this);pT(this.G.app);this.G.sb(this.element)};
EM.prototype.Ea=function(){g.wG(this,this.G.zy()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType());if(this.ob){var a=this.G.isWidescreen();this.isWidescreen!==a&&(this.po.Ha("icon",a?{F:"svg",T:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},R:[{F:"path",T:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M5,12v18h30V12H5z M10.21,26.71l-1.41-1.41L13.09,21l-4.29-4.29l1.41-1.41  L15.91,21L10.21,26.71z M31.21,25.29l-1.41,1.41L24.09,21l5.71-5.71l1.41,1.41L26.91,21L31.21,25.29z",
fill:"white"}}]}:hBa()),this.pg(yJ(this.G,a?"Default view":"Theater mode","t")),this.isWidescreen=a)}this.G.Wa(this.element,this.ob)};g.w(FM,g.W);g.k=FM.prototype;g.k.init=function(){this.Ls(this.j);this.Ha("minvalue",this.minimumValue);this.Ha("maxvalue",this.maximumValue)};
g.k.gU=function(a){if(!g.pt(a)){switch(g.qt(a)){case 37:case 40:var b=-this.I;break;case 39:case 38:b=this.I;break;default:return}this.Ls(this.j+b);g.ot(a)}};
g.k.eU=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.D:this.D;this.Ls(b);g.ot(a)};
g.k.fU=function(a){a=(a-g.il(this.u).x)/this.J*this.range+this.minimumValue;this.Ls(a)};
g.k.Ls=function(a,b){b=void 0===b?"":b;a=g.Xf(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Ha("valuenow",a);this.Ha("valuetext",b);this.N.style.left=(a-this.minimumValue)/this.range*(this.J-this.W)+"px";this.j=a};
g.k.focus=function(){this.Y.focus()};g.w(HM,FM);HM.prototype.V=function(){this.G.setPlaybackRate(this.j,!0)};
HM.prototype.Ls=function(a){FM.prototype.Ls.call(this,a,IM(this,a).toString());this.B&&(GM(this),this.ma())};
HM.prototype.va=function(){var a=this.G.getPlaybackRate();IM(this,this.j)!==a&&(this.Ls(a),GM(this))};g.w(JM,g.xG);JM.prototype.focus=function(){this.j.focus()};g.w(iFa,fK);g.w(KM,g.sM);g.k=KM.prototype;g.k.xk=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.Ea=function(){var a=this.G.getPresentingPlayerType();this.enable(2!==a&&3!==a);lFa(this)};
g.k.Nt=function(a){g.sM.prototype.Nt.call(this,a);a?(this.J=this.P(this.G,"onPlaybackRateChange",this.onPlaybackRateChange),lFa(this),jFa(this,this.G.getPlaybackRate())):(this.vc(this.J),this.J=null)};
g.k.onPlaybackRateChange=function(a){var b=this.G.getPlaybackRate();this.I.includes(b)||kFa(this,b);jFa(this,a)};
g.k.yg=function(a){g.sM.prototype.yg.call(this,a);a===this.j?this.G.setPlaybackRate(this.D,!0):this.G.setPlaybackRate(Number(a),!0);this.jb.Ji()};g.w(MM,g.sM);g.k=MM.prototype;g.k.tj=function(a){g.sM.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.xk=function(a){return this.getOption(a).text||""};
g.k.yg=function(a){g.sM.prototype.yg.call(this,a);this.X("settingChange",this.setting,this.settings[a].option)};g.w(NM,g.gK);NM.prototype.rg=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Rp[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)))}}};
NM.prototype.Gi=function(a,b){this.X("settingChange",a,b)};g.w(OM,g.sM);OM.prototype.getKey=function(a){return a.languageCode};
OM.prototype.xk=function(a){return this.languages[a].languageName||""};
OM.prototype.yg=function(a){this.X("select",a);this.G.sb(this.element);g.EK(this.jb)};g.w(PM,g.sM);g.k=PM.prototype;g.k.getKey=function(a){return g.Se(a)?"__off__":a.displayName};
g.k.xk=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.yg=function(a){"__translate__"===a?this.j.open():"__contribute__"===a?(this.G.pauseVideo(),this.G.isFullscreen()&&this.G.toggleFullscreen(),a=g.lI(this.G.S(),this.G.getVideoData()),g.HH(a)):(this.G.sb(this.element),this.G.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.sM.prototype.yg.call(this,a),this.jb.Ji())};
g.k.Ea=function(){var a=this.G.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.G.getVideoData();b=b&&b.Jq;var c,d=!(null==(c=this.G.getVideoData())||!g.YD(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.rc(c,this.getKey,this);d=g.kk(c,this.getKey);if(f.length&&!g.Se(e)){var h=e.translationLanguage;if(h&&h.languageName){var l=h.languageName;
h=f.findIndex(function(m){return m.languageName===l});
Aaa(f,h)}nFa(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.tM(this,d);this.tj(f);e&&e.translationLanguage?this.j.tj(this.j.getKey(e.translationLanguage)):gFa(this.j);a&&this.D.rg(this.G.getSubtitlesUserSettings());this.J.Jd(c&&c.length?" ("+c.length+")":"");this.X("size-change");this.G.Wa(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.hU=function(a){var b=this.G.getOption("captions","track");b=g.We(b);b.translationLanguage=this.j.languages[a];this.G.setOption("captions","track",b)};
g.k.Gi=function(a,b){if("reset"===a)this.G.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.G.updateSubtitlesUserSettings(c)}oFa(this,!0);this.I.start();this.D.rg(this.G.getSubtitlesUserSettings())};
g.k.e_=function(a){a||g.Hn(this.I)};
g.k.ea=function(){g.Hn(this.I);g.sM.prototype.ea.call(this)};g.w(QM,g.pK);g.k=QM.prototype;g.k.initialize=function(){if(!this.isInitialized){this.isInitialized=!0;this.HH=new xM(this.G,this);g.J(this,this.HH);var a=new BM(this.G,this);g.J(this,a);a=new PM(this.G,this);g.J(this,a);this.G.S().C||(a=new rM(this.G,this),g.J(this,a));this.G.S().Kd&&(a=new KM(this.G,this),g.J(this,a));this.G.S().Zc&&!this.G.S().K("web_player_move_autonav_toggle")&&(a=new vM(this.G,this),g.J(this,a));a=new uM(this.G,this);g.J(this,a);qM(this.settingsButton,this.bd.items.length)}};
g.k.Bc=function(a){this.initialize();this.bd.Bc(a);qM(this.settingsButton,this.bd.items.length)};
g.k.Of=function(a){this.ob&&1>=this.bd.items.length&&this.hide();this.bd.Of(a);qM(this.settingsButton,this.bd.items.length)};
g.k.td=function(a){this.initialize();0<this.bd.items.length&&g.pK.prototype.td.call(this,a)};
g.k.show=function(){g.pK.prototype.show.call(this);g.N(this.G.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.pK.prototype.hide.call(this);g.go(this.G.getRootNode(),"ytp-settings-shown")};
g.k.uf=function(a){this.G.Wa(this.element,a);var b;null==(b=this.HH)||b.dc(a)};
g.k.DD=function(a){if(this.dh())this.Gb();else{this.initialize();a:{var b=g.r(this.bd.items);for(var c=b.next();!c.done;c=b.next())if(c=c.value,0===c.priority){b=c;break a}b=null}b&&(b.open(),this.td(a));this.td(a)}};g.w(RM,g.W);RM.prototype.onClick=function(){pT(this.G.app);this.G.sb(this.element)};
RM.prototype.Ea=function(){g.wG(this,this.G.zy()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType());if(this.ob){var a=this.G.isWidescreen();if(this.isWidescreen!==a){var b=a?{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,T:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Jb:!0,T:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",
fill:"#fff","fill-rule":"evenodd"}}]};null==this.isWidescreen?this.Ha("icon",b):wEa(this.transition,this.element,b);this.isWidescreen=a;b=yJ(this.G,"Default view","t");var c=yJ(this.G,"Theater mode","t");this.Ha("title",a?b:c);IK(this.tooltip)}}this.G.Wa(this.element,this.ob)};g.w(g.SM,g.W);g.SM.prototype.onClick=function(){if(null!=g.dJ(this.G.ib())&&(this.G.toggleSubtitles(),this.G.sb(this.element),!this.isEnabled())){var a=!1,b=g.dr(g.cr.getInstance(),65);g.WB(this.G.S())&&null!=b&&(a=!b);a&&this.G.S().K("web_player_nitrate_promo_tooltip")&&this.G.X("showpromotooltip",this.element)}};
g.SM.prototype.j=function(a){var b,c;null==(b=g.yI(this.G))||null==(c=b.Bp())||c.td(a)};
g.SM.prototype.isEnabled=function(){return!!this.G.getOption("captions","track").displayName};
g.SM.prototype.Ea=function(){var a=null!=g.dJ(this.G.ib()),b=300;this.G.S().I&&(b=480);var c=this.G.S();if(c.K("web_player_unavailable_subtitles_button_killswitch")||c.D)this.Ha("title",yJ(this.G,"Subtitles/closed captions","c")),c=a;else{if(a){var d;null==(d=this.ya("ytp-subtitles-button-icon"))||d.setAttribute("fill-opacity","1");this.Ha("title",yJ(this.G,"Subtitles/closed captions","c"))}else{var e;null==(e=this.ya("ytp-subtitles-button-icon"))||e.setAttribute("fill-opacity","0.3");this.Ha("title",
"Subtitles/closed captions unavailable")}c=!0}IK(this.tooltip);c=c&&this.G.Ya().getPlayerSize().width>=b;g.wG(this,c);this.G.Wa(this.element,c);a&&this.Ha("pressed",this.isEnabled())};g.w(g.UM,g.W);g.k=g.UM.prototype;
g.k.Sb=function(){var a=this.api.Ya().getPlayerSize().width,b=this.J;this.api.S().I&&(b=400);b=a>=b&&(!WM(this)||!g.V(this.api.xb(),64));g.wG(this,b);g.O(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.S().K("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);VM(this)&&(c-=this.tb.startTimeMs/1E3);c=g.vH(c);this.B!==c&&(this.Ha("currenttime",c),this.B=c);b=VM(this)?
g.vH((this.tb.endTimeMs-this.tb.startTimeMs)/1E3):g.vH(this.api.S().K("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.C!==b&&(this.Ha("duration",b),this.C=b)}a=a.isAtLiveHead;!WM(this)||this.I===a&&this.D===this.isPremiere||(this.I=a,this.D=this.isPremiere,this.Sb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Jd(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.WJ(this.tooltip,
this.liveBadge.element)));a=this.api.getLoopRange();b=this.tb!==a;this.tb=a;b&&TM(this)};
g.k.onLoopRangeChange=function(a){var b=this.tb!==a;this.tb=a;b&&(this.Sb(),TM(this))};
g.k.J_=function(){this.api.setLoopRange(null)};
g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.S().K("enable_topsoil_wta_for_halftime")||this.api.S().K("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Sb();TM(this)};
g.k.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.Ib;this.u=aE(a);this.isPremiere=a.isPremiere;g.O(this.element,"ytp-live",WM(this))};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.ea=function(){this.j&&this.j();g.W.prototype.ea.call(this)};g.w(ZM,g.W);g.k=ZM.prototype;g.k.Wn=function(){var a=this.j.Jf();this.C!==a&&(this.C=a,YM(this,this.api.getVolume(),this.api.isMuted()))};
g.k.CL=function(a){g.wG(this,350<=a.width)};
g.k.kU=function(a){if(!g.pt(a)){var b=g.qt(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.Xf(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.ot(a))}};
g.k.iU=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.Xf(b/10,-10,10));g.ot(a)};
g.k.j_=function(){XM(this,this.u,!0,this.B,this.j.Fj());this.V=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.jU=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.il(this.N).x;this.api.setVolume(100*g.Xf((a-c/2)/(b-c),0,1))};
g.k.i_=function(){XM(this,this.u,!1,this.B,this.j.Fj());0===this.volume&&(this.api.mute(),this.api.setVolume(this.V))};
g.k.onVolumeChange=function(a){YM(this,a.volume,a.muted)};
g.k.XM=function(){XM(this,this.u,this.isDragging,this.B,this.j.Fj())};
g.k.ea=function(){g.W.prototype.ea.call(this);g.go(this.J,"ytp-volume-slider-active")};g.w(g.$M,g.W);g.$M.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).D,b=this.api.S();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.wG(this,this.visible);this.api.Wa(this.element,this.visible&&this.oa);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Ha("url",a))};
g.$M.prototype.onClick=function(a){var b=this.api.S(),c=this.api.getVideoUrl(!g.wH(a),!1,!0,!0);if(g.YA(b)||g.iB(b)){var d={};b.oa&&g.YA(b)&&g.nI(d,b.loaderUrl);c=g.Mh(c,g.mI(d,"emb_logo"))}g.vJ(c,this.api,a);this.api.sb(this.element)};
g.$M.prototype.wb=function(){var a={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},R:[{F:"path",Jb:!0,L:"ytp-svg-fill",T:{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.iB(this.api.S())){var b=this.ya("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{F:"svg",T:{fill:"none",height:"24",width:"24"},R:[{F:"circle",T:{cx:"12",cy:"12",fill:"red",r:"12"}},{F:"ellipse",T:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{F:"path",T:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{F:"svg",T:{viewBox:"0 0 80 24"},R:[{F:"ellipse",T:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{F:"ellipse",T:{cx:"12.18",
cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{F:"path",T:{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.O(b,"ytp-youtube-music-logo-icon-only",c)}this.Ha("logoSvg",a)};
g.$M.prototype.dc=function(a){g.W.prototype.dc.call(this,a);this.api.Wa(this.element,this.visible&&a)};g.w(aN,g.kz);g.k=aN.prototype;g.k.Od=function(){this.uc.Sb();this.Oh.Sb()};
g.k.Uk=function(){this.JE();if(this.Qd.u){this.Od();var a;null==(a=this.N)||a.show()}else{g.jN(this.uc.tooltip);var b;null==(b=this.N)||b.hide()}};
g.k.ls=function(){this.Od();this.oe.start()};
g.k.JE=function(){var a=!this.G.S().isMobile&&300>g.fFa(this.uc)&&this.G.xb().Kc()&&!!window.requestAnimationFrame,b=!a;this.Qd.u||(a=b=!1);b?this.J||(this.J=this.P(this.G,"progresssync",this.Od)):this.J&&(this.vc(this.J),this.J=null);a?this.oe.isActive()||this.oe.start():this.oe.stop()};
g.k.wb=function(){var a=this.B.Jf(),b=this.G.Ya().getPlayerSize(),c=bN(this),d=Math.max(b.width-2*c,100);if(this.Pa!==b.width||this.Ia!==a){this.Pa=b.width;this.Ia=a;var e=tFa(this);this.u.element.style.width=e+"px";this.u.element.style.left=c+"px";g.fM(this.uc,c,e,a);this.B.kc().KE=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-cN(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.zA=e;c.jw();this.JE();!this.G.S().K("html5_player_bottom_linear_gradient")&&this.G.S().K("html5_player_dynamic_bottom_gradient")&&
g.mL(this.Sa,b.height)};
g.k.onVideoDataChange=function(){var a=this.G.getVideoData();this.ma.style.background=a.D?a.bb:"";g.wG(this.W,a.RE)};g.w(dN,gL);g.k=dN.prototype;g.k.eI=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.La("innertubeCommand",this.onClickCommand),this.B=!0,this.N.hide())};
g.k.fI=function(){this.B=!0;this.N.hide()};
g.k.onVideoDataChange=function(a,b){"newdata"===a&&(this.u=this.B=!1,eN(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.j=this.J=this.enabled=!0;this.text=(b=a.title)?g.Hv(b):"View Chapters";var c;if(b=null==(c=a.trigger)?void 0:c.suggestedActionTimeRangeTrigger){c=[];var d=b.timeRangeStartMillis;b=b.timeRangeEndMillis;null!=d&&null!=b&&c.push(new g.Av(d,b,{priority:9,namespace:"suggested_action_button_visible"}));this.G.Vd(c)}this.onClickCommand=a.tapCommand;mEa(this);fL(this);
this.pj()}};
g.k.Hz=function(){return!this.B&&this.enabled&&(this.u||this.j)};
g.k.uf=function(a){this.B||((this.u=a)?eL(this):(eN(this),this.W.start()),this.pj())};
g.k.ea=function(){eN(this);gL.prototype.ea.call(this)};var Y_={},fN=(Y_.CHANNEL_NAME="ytp-title-channel-name",Y_.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Y_.LINK="ytp-title-link",Y_.SESSIONLINK="yt-uix-sessionlink",Y_.SUBTEXT="ytp-title-subtext",Y_.TEXT="ytp-title-text",Y_.TITLE="ytp-title",Y_);g.w(gN,g.W);gN.prototype.onClick=function(a){this.api.sb(this.element);var b=this.api.S(),c=this.api.getVideoUrl(!g.wH(a),!1,!0);if(g.YA(b)){var d={};b.oa&&g.nI(d,b.loaderUrl);c=g.Mh(c,g.mI(d,"emb_title"))}g.vJ(c,this.api,a)};
gN.prototype.Ea=function(){var a=this.api.getVideoData(),b=this.api.S();this.Ha("title",a.title);uFa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Nc&&c.profilePicture?(this.Ha("channelLink",c.Nc),this.Ha("channelName",c.author),this.Ha("channelTitleFocusable","0")):uFa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.Kb;g.O(this.link,fN.FULLERSCREEN_LINK,c);b.N||!a.videoId||c||a.D&&b.pfpChazalUi||b.C?this.j&&(this.Ha("url",
null),this.vc(this.j),this.j=null):(this.Ha("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.P(this.link,"click",this.onClick)));b.C&&this.Ha("channelName",g.YA(b)?a.expandedTitle:a.author)};g.w(g.hN,g.W);g.k=g.hN.prototype;g.k.OP=function(a,b){a<=this.B&&this.B<=b&&(a=this.B,this.B=NaN,wFa(this,a))};
g.k.kX=function(){jxa(this.j,this.B,160*this.scale)};
g.k.Jl=function(){switch(this.type){case 2:var a=this.u;a.removeEventListener("mouseout",this.V);a.addEventListener("mouseover",this.C);a.removeEventListener("blur",this.V);a.addEventListener("focus",this.C);zFa(this);break;case 3:zFa(this);break;case 1:this.j&&(this.j.unsubscribe("l",this.OP,this),this.j=null),this.api.removeEventListener("videoready",this.W),this.Y.stop()}this.type=null;this.J&&this.D.hide()};
g.k.Ak=function(){if(this.u)for(var a=0;a<arguments.length;a++)g.Fg(arguments[a],this.u)&&this.Jl()};
g.k.ea=function(){null!=this.type&&this.Jl();this.j&&this.j.dispose();g.W.prototype.ea.call(this)};g.w(g.kN,g.W);g.k=g.kN.prototype;g.k.AA=function(){var a=this.G.getPlayerSize(),b=this.G.S(),c=this.G.getVideoData(),d=g.YA(b)&&g.FI(this.G)&&g.V(this.G.xb(),128);this.visible=b.Cl&&240<=a.width&&!c.isAd()&&c.Vg&&!d&&!(c.D&&b.pfpChazalUi);g.wG(this,this.visible);this.icon&&DFa(this,this.icon);this.G.Wa(this.element,this.visible&&this.oa)};
g.k.Fh=function(){return this.G.getVideoData().videoId};
g.k.onClick=function(){var a=this;this.G.sb(this.element);var b=this.G.S(),c=this.Fh();b.authUser?AFa(this):this.G.tD()?this.G.requestStorageAccess(function(){g.vr("embedsItpWatchLaterResult",{accepted:!0});$t();BFa(a,c)},function(){g.vr("embedsItpWatchLaterResult",{accepted:!1});
CFa(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):BFa(this,c)};
g.k.lU=function(){this.isRequestPending=this.j=!1;this.Ea(2)};
g.k.Ea=function(a,b){var c=this.G.S();DFa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.gF("Added as $USER_NAME",a):g.gF("Watch later as $USER_NAME",a),image:aC(c)})):this.update({title:"Watch later",image:null});IK(this.tooltip)};
g.k.dc=function(a){g.W.prototype.dc.call(this,a);this.G.Wa(this.element,this.visible&&a)};g.w(lN,g.LJ);g.k=lN.prototype;g.k.kc=function(){return this.tooltip};
g.k.VN=function(){return this.Uf};
g.k.fp=function(a,b){b?this.Yl=a:this.Yl=null;this.jk()};
g.k.yu=function(a,b){if(b)this.Tp.push(a);else for(b=this.Tp.length;0<=b;b--)if(this.Tp[b]===a){this.Tp.splice(b,1);break}qJ(this.Qd,64,0<this.Tp.length)};
g.k.jq=function(){this.api.Vh()&&this.api.Ul();return!!this.Yl||EFa(this)||g.LJ.prototype.jq.call(this)};
g.k.jk=function(){var a=!this.jq(),b=a&&this.api.Vh()&&!g.V(this.api.xb(),2)&&!(this.api.getVideoData().D&&this.api.S().pfpChazalUi)&&!this.api.S().C,c=this.Kr&&g.FI(this.api)&&g.V(this.api.xb(),128);a||c?(this.UJ.show(),this.VJ.show()):(this.UJ.hide(),this.VJ.hide(),this.tooltip.Ak(this.lj.element));b?this.qh.td():this.qh.Gb();this.Uf&&sFa(this.Uf,!a);g.LJ.prototype.jk.call(this)};
g.k.As=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.ll(a),h=d||this.Uf&&g.Fg(this.Uf.u.element,b),l=d=null;null!=c&&h||(d=g.ll(b),l=g.jl(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Uf,d=bN(b),l=tFa(b),h=this.api.Ya().getPlayerSize().height,c=g.Xf(c,d,d+l-f.width),f=h-cN(b)-f.height):g.Fg(this.lj.element,b)?(b=this.api.Ya().getPlayerSize().width,c=g.Xf(c,12,b-f.width-12),f=this.Jf()?this.NF:this.MF,"gvn"===this.api.S().playerStyle&&(f+=
20),this.Kr&&(f-=this.Jf()?26:18)):(b=this.api.Ya().getPlayerSize(),c=g.Xf(c,12,b.width-f.width-12),f=l.y>(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.Uk=function(a){a&&(this.tooltip.Ak(this.lj.element),this.Uf&&this.tooltip.Ak(this.Uf.u.element));this.ZB&&(g.O(this.contextMenu.element,"ytp-autohide",a),g.O(this.contextMenu.element,"ytp-autohide-active",!0));g.LJ.prototype.Uk.call(this,a)};
g.k.dI=function(){g.LJ.prototype.dI.call(this);this.ZB&&(g.O(this.contextMenu.element,"ytp-autohide-active",!1),this.ZB&&(this.contextMenu.hide(),this.jh&&this.jh.hide()))};
g.k.Dj=function(a,b){var c=this.api.Ya().getPlayerSize();c=new g.Yk(0,0,c.width,c.height);if(a||this.Qd.u&&!this.jq()){if(this.api.S().wl||b)a=this.Jf()?this.NF:this.MF,c.top+=a,c.height-=a;this.Uf&&(c.height-=cN(this.Uf))}return c};
g.k.Wn=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.S().externalFullscreen||(b.parentElement.insertBefore(this.tB.element,b),b.parentElement.insertBefore(this.sB.element,b.nextSibling))):g.Vp(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.tB.detach(),this.sB.detach());this.wb();this.Fo()};
g.k.Jf=function(){var a=this.api.S();return this.api.isFullscreen()&&!a.I||!1};
g.k.showControls=function(a){this.cB=!a;this.jk()};
g.k.wb=function(){var a=this.Jf();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.O(this.contextMenu.element,"ytp-big-mode",a);this.jk();if(this.gg()&&this.jh)this.Ni&&TK(this.jh,this.Ni),this.shareButton&&TK(this.jh,this.shareButton),this.rh&&TK(this.jh,this.rh);else{if(this.jh){a=this.jh;for(var b=g.r(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.Ni&&!g.Fg(this.Ph.element,this.Ni.element)&&this.Ni.xa(this.Ph.element);this.shareButton&&!g.Fg(this.Ph.element,
this.shareButton.element)&&this.shareButton.xa(this.Ph.element);this.rh&&!g.Fg(this.Ph.element,this.rh.element)&&this.rh.xa(this.Ph.element)}this.Fo();g.LJ.prototype.wb.call(this)};
g.k.DG=function(){if(EFa(this)&&!g.FI(this.api))return!1;var a=this.api.getVideoData();return!g.YA(this.api.S())||2===this.api.getPresentingPlayerType()||!this.wh||((a=this.wh||a.wh)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.LJ.prototype.DG.call(this):!1};
g.k.Fo=function(){g.LJ.prototype.Fo.call(this);this.api.Wa(this.title.element,!!this.zm);this.Dv&&this.Dv.dc(!!this.zm);this.channelAvatar.dc(!!this.zm);this.overflowButton&&this.overflowButton.dc(this.gg()&&!!this.zm);this.shareButton&&this.shareButton.dc(!this.gg()&&!!this.zm);this.Ni&&this.Ni.dc(!this.gg()&&!!this.zm);this.rh&&this.rh.dc(!this.gg()&&!!this.zm);if(!this.zm){this.tooltip.Ak(this.lj.element);for(var a=0;a<this.Sz.length;a++){var b=this.Sz[a];b.dh()&&b.Gb()}}};
g.k.Rb=function(a){this.Uf&&sFa(this.Uf,this.jq());this.jk();g.LJ.prototype.Rb.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.Pn?this.Pn.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.Pn?this.Pn.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.fm=function(){return this.contextMenu.ob?(this.contextMenu.Gb(),!0):this.Tp.length?(this.Tp[this.Tp.length-1].Gb(),!0):this.Yl?(this.Yl.Gb(),!0):g.LJ.prototype.fm.call(this)};
g.k.Cz=function(a,b){this.RH=b;this.yu(a,b);this.dS()};
g.k.dS=function(){var a=this.RH||this.contextMenu.dh();this.DF!==a&&(this.DF=a,this.api.La("onAutonavPauseRequest",this.DF))};
g.k.cW=function(){mN(this,this.api.getRootNode(),!0).focus()};
g.k.dW=function(){mN(this,this.api.getRootNode(),!1).focus()};
g.k.Bp=function(){return this.Uf&&this.Uf.settingsMenu};
g.k.Yx=function(){return this.Uf&&this.Uf.j};
g.k.Mm=function(){this.Qd.Mm()};
g.k.TB=function(){this.Cc.hide()};
g.k.Ns=function(a){this.Cc.Ns(!g.FF(a))};
g.k.Iv=function(a,b,c,d){this.Cx.Iv(a,b,c,d)};
g.k.ZI=function(a,b){this.Cx.iD(a,b)};
g.k.zY=function(){FFa(this,!0)};
g.k.cZ=function(a){FFa(this,!1,a)};g.w(g.nN,g.WI);g.nN.prototype.hj=function(){return!1};
g.nN.prototype.create=function(){var a=this.player.S();g.gB(a)&&a.isMobile?this.chrome=new g.LJ(this.player):this.chrome=new lN(this.player);g.J(this,this.chrome);this.chrome.init();this.player.lf("ux")};
g.nN.prototype.Du=function(){return this.chrome};g.w(pN,g.I);pN.prototype.u=function(a,b){if(b){b=b instanceof g.ax?b:qN(this,b);var c;(null==(c=this.j.get(a))?void 0:ex(c.location))!==ex(b)&&this.j.set(a,new uN(b,a))}else this.j.delete(a)};
pN.prototype.load=function(){var a=this,b,c,d,e,f,h,l,m,n,p;return g.B(function(q){switch(q.j){case 1:b=a.j.get(0);g.wa(q,2);var t;if(t=b&&!a.B)t=ex(b.location),t=a.B===sN(t);if(t){q.Ra(4);break}return g.A(q,tN(a,a.B?2:0),5);case 5:if(c=q.u)a.u(0,c),gx(c)&&a.u(1,hx(c));case 4:g.xa(q,3);break;case 2:d=g.ya(q);g.Bu(d);if(!a.B){q.Ra(3);break}a.B=!1;return g.A(q,a.load(),7);case 7:return q.return();case 3:if(!a.U.experiments.fb("html5_onesie_probe_ec_hosts")){q.Ra(0);break}g.wa(q,9);e=a;f=e.u;h=3;return g.A(q,
tN(a,1),11);case 11:return f.call(e,h,q.u),l=a,m=l.u,n=4,g.A(q,tN(a,2),12);case 12:m.call(l,n,q.u);g.xa(q,0);break;case 9:p=g.ya(q),g.Bu(p),g.va(q)}})};
pN.prototype.J=function(){var a=this,b,c,d,e,f,h,l;return g.B(function(m){if(1==m.j){g.Fn(a.N);b=g.eA(a.U.experiments,"html5_onesie_prewarm_max_lact_ms");if(xt()>=b)return m.return();if(!a.U.K("html5_onesie_host_racing_during_prewarming"))return(c=a.j.get(0))&&KFa(a,c),m.Ra(0);d=g.eA(a.U.experiments,"html5_onesie_prewarm_cooldown_ms");e=a.j.values();f=g.r(e);h=f.next()}if(4!=m.j){if(h.done)return m.Ra(0);l=h.value;if(a.isDisposed())return m.return();KFa(a,l);return d?g.A(m,HFa(d),4):m.Ra(4)}h=f.next();
return m.Ra(3)})};
uN.prototype.start=function(){this.startTimestamp=(0,g.R)()};
uN.prototype.end=function(){this.endTimestamp=(0,g.R)()};var wN=[],CNa=!1;g.gR=pf(function(){var a="";try{var b=g.zg("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.w(g.xN,uF);g.k=g.xN.prototype;g.k.isView=function(){return!0};
g.k.dJ=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Eg(),c=wz(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Cr=function(){return yz(this.mediaElement.Cr(),this.start,this.end)};
g.k.Eg=function(){return yz(this.mediaElement.Eg(),this.start,this.end)};
g.k.Zx=function(){return yz(this.mediaElement.Zx(),this.start,this.end)};
g.k.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
g.k.xA=function(a){this.mediaElement.xA(a+this.start)};
g.k.getDuration=function(){return isFinite(this.end)&&!this.j?this.end-this.start:this.mediaElement.getDuration()-this.start};
g.k.play=function(){if(this.dJ()){this.mediaElement.getCurrentTime();try{this.mediaElement.xA(this.start)}catch(a){}}return this.mediaElement.play()};
g.k.Nb=function(){var a=uF.prototype.Nb.call(this);a.view=this.start+"-"+this.end;return a};
g.k.addEventListener=function(a,b){this.mediaElement.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.mediaElement.removeEventListener(a,b)};
g.k.uA=function(){return this.mediaElement.uA()};
g.k.Ut=function(a){this.mediaElement.Ut(a)};
g.k.Br=function(){return this.mediaElement.Br()};
g.k.playVideo=function(){return this.mediaElement.playVideo()};
g.k.hG=function(){this.mediaElement.hG()};
g.k.eG=function(){this.mediaElement.eG()};
g.k.Hq=function(){return this.mediaElement.Hq()};
g.k.mf=function(){return this.mediaElement.mf()};
g.k.dg=function(){return this.mediaElement.dg()};
g.k.yA=function(a){this.mediaElement.yA(a)};
g.k.hD=function(){this.mediaElement.hD()};
g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.k.Ar=function(){return this.mediaElement.Ar()};
g.k.setLoop=function(a){this.mediaElement.setLoop(a)};
g.k.canPlayType=function(a,b){return this.mediaElement.canPlayType(a,b)};
g.k.Vm=function(){return this.mediaElement.Vm()};
g.k.Hg=function(){return this.mediaElement.Hg()};
g.k.Gg=function(){return this.mediaElement.Gg()};
g.k.FB=function(){return this.mediaElement.FB()};
g.k.Qv=function(a){this.mediaElement.Qv(a)};
g.k.vA=function(){return this.mediaElement.vA()};
g.k.load=function(){this.mediaElement.load()};
g.k.pause=function(){this.mediaElement.pause()};
g.k.Pi=function(){return this.mediaElement.Pi()};
g.k.GB=function(){return this.mediaElement.GB()};
g.k.wk=function(){return this.mediaElement.wk()};
g.k.rf=function(){return this.mediaElement.rf()};
g.k.wA=function(){return this.mediaElement.wA()};
g.k.eg=function(){return this.mediaElement.eg()};
g.k.kq=function(){return this.mediaElement.kq()};
g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.k.zp=function(){return this.mediaElement.zp()};
g.k.getSize=function(){return this.mediaElement.getSize()};
g.k.setSize=function(a){this.mediaElement.setSize(a)};
g.k.getVolume=function(){return this.mediaElement.getVolume()};
g.k.setVolume=function(a){this.mediaElement.setVolume(a)};
g.k.setAttribute=function(a,b){this.mediaElement.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.mediaElement.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.mediaElement.hasAttribute(a)};
g.k.ix=da(22);g.k.Lz=da(24);g.k.Mz=da(26);g.k.mu=da(28);g.k.Gx=function(){return this.mediaElement.Gx()};
g.k.Po=function(a){this.mediaElement.Po(a)};
g.k.getStyle=function(a){return this.mediaElement.getStyle(a)};
g.k.sH=function(){return this.mediaElement.sH()};
g.k.stopVideo=function(){this.mediaElement.stopVideo()};
g.k.jG=function(a){this.mediaElement.jG(a)};
g.k.audioTracks=function(){return this.mediaElement.audioTracks()};g.w(yN,g.I);g.k=yN.prototype;g.k.isFinished=function(){return 6===this.status.status};
g.k.getStatus=function(){return this.status};
g.k.Sq=function(){var a=this.j.getVideoData(),b=this.u.getVideoData(),c;if((c=a.C)&&!(c=!a.j)){c=a.j;for(var d=!1,e=!1,f=g.r(Object.values(c.j)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.isLoaded()&&(d=!0),h.info.video&&h.index.isLoaded()&&(e=!0);c.j["0"]&&(e=!0);c=d&&e}if(c)if(this.j.Hd()){f=SFa(this.policy,this.j,this.u,this.ll);h=TFa(this);c=h.HV;e=h.tP;d=h.kN;h=h.sP;if(!this.I){var l=1E3*this.u.Ui(),m=this.j.Ui();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=0);a=a.isAd();this.u.qz(l,
m,a);this.I=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Ef(b,f)):2===this.status.status?$Fa(this):(a=this.j.Br())&&(a.j||a.u)&&(!Ez(a)&&g.Cq()?this.Ef("mse_closed"):b.j&&Xw(b.j)&&a.u&&!a.u.CB()?this.Ef("encr_upgrade"):(b=this.j.Hd(),b.Gg()?this.Ef("elem_ended"):0>e?this.Ef("next_player_future"):(this.D=d,this.B=iua(a,c,d,!0),this.C=iua(a,e,h,!1),a=this.u.getVideoData().clientPlaybackNonce,this.j.ra("gaplessPrep",{cpn:a}),BN(this.j,this.B),this.j.setMediaElement(UFa(b,c,d,!this.j.getVideoData().isAd())),
AN(this,2),$Fa(this))))}else this.Ef("no-elem")};
g.k.Ot=function(a){var b=a===ZFa(this).mR,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;vz(a.ag(),d-.01)&&(AN(this,4),c.isActive=!1,c.Zz=c.Zz||c.isActive,this.u.ra("sbh",{}),b.isActive=!0,b.Zz=b.Zz||b.isActive);a=this.C.u;this.C.j.isActive&&a.isActive&&AN(this,5)}};
g.k.TP=function(){4<=this.status.status&&6>this.status.status&&this.Ef("player-reload-after-handoff")};
g.k.Ef=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.xd(new fC("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.ll,msg:a})));a=this.j;a.videoData.Ia=!1;c&&QQ(a);a.Fa&&bJa(a.Fa)}this.Lm.reject(void 0);this.dispose()}};
g.k.ea=function(){YFa(this);this.j.unsubscribe("newelementrequired",this.TP,this);if(this.B){var a=this.B.u;this.B.j.Pd.unsubscribe("updateend",this.Ot,this);a.Pd.unsubscribe("updateend",this.Ot,this)}g.I.prototype.ea.call(this)};
g.k.Wc=function(a){g.VE(a,128)&&this.Ef("player-error-event")};g.w(DN,g.I);DN.prototype.clearQueue=function(){this.C&&this.C.reject("Queue cleared");EN(this)};
DN.prototype.Zu=function(){return!this.j};
DN.prototype.ea=function(){EN(this);g.I.prototype.ea.call(this)};g.w(JN,g.iu);g.k=JN.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:dGa()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.dk=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.uf())};
g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.uf())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.uf())};
g.k.Rv=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.uf())};
g.k.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.uf())};
g.k.eg=function(){return this.j};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.Hu=function(){return this.fullscreen};
g.k.sf=function(){return this.B};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return dGa()};
g.k.Xu=function(){return this.pictureInPicture};
g.k.Uu=function(){return this.u};
g.k.uf=function(){this.X("visibilitychange");var a=this.getVisibilityState(this.eg(),this.isFullscreen(),this.sf(),this.isInline(),this.Xu(),this.Uu());a!==this.D&&this.X("visibilitystatechange");this.D=a};
g.k.ea=function(){gGa(this.C);g.iu.prototype.ea.call(this)};g.w(g.NN,g.I);g.k=g.NN.prototype;
g.k.onCueRangeEnter=function(a){this.bb.push(a);var b=a.getId(),c=""===b;this.eb.add(a.u);c||this.qa.ra("sdai",{enterAdCueRange:1});if(this.Pa){this.Pa=!1;if(!c){var d=this.u.get(b);d&&(this.U.K("web_player_ss_record_join_mid_ad_break_killswitch")||(c=this.qa.getCurrentTime(),UN(this,{Md:a,isAd:!0,Kn:!0,Wf:c,adCpn:b},{isAd:!1,Kn:!1,Wf:c})),this.api.X("serverstitchedvideochange",d.Ac,d.Oo),this.qa.ra("sdai",RN(this,"midab",d)),this.Aj=1)}this.I=!1}else if(this.j){if(this.j.Kn)this.qa.ra("sdai",{a_pair_of_same_transition_occurs_enter:1,
acpn:this.j.adCpn,transitionTime:this.j.Wf,cpn:b,currentTime:this.qa.getCurrentTime()}),this.U.K("web_player_same_transition_fallback_killswitch")||(d=this.qa.getCurrentTime(),a={Md:a,isAd:!c,Kn:!0,Wf:d,adCpn:b},b={Md:this.j.Md,isAd:this.j.isAd,Kn:!1,Wf:d,adCpn:this.j.adCpn},this.j.Md&&this.eb.delete(this.j.Md.u),UN(this,a,b));else{if(this.j.Md===a){this.qa.ra("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Wf,cpn:b,currentTime:this.qa.getCurrentTime()});this.j=void 0;
return}if(this.j.adCpn===b){b&&this.qa.ra("sdai",{dchtsc:b});this.j=void 0;return}a={Md:a,isAd:!c,Kn:!0,Wf:this.qa.getCurrentTime(),adCpn:b};UN(this,a,this.j)}this.j=void 0;this.I=!1}else this.j={Md:a,isAd:!c,Kn:!0,Wf:this.qa.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){if(this.U.K("web_player_same_transition_fallback_killswitch")||this.eb.has(a.u)){this.eb.delete(a.u);this.bb=this.bb.filter(function(d){return d!==a});
this.Pa&&(this.I=this.Pa=!1,this.qa.ra("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.Kn){if(this.j.Md===a){this.qa.ra("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.Wf,cpn:b,currentTime:this.qa.getCurrentTime()});this.j=void 0;return}if(this.j.adCpn===b){b&&this.qa.ra("sdai",{dchtsc:b});this.j=void 0;return}c={Md:a,isAd:!c,Kn:!1,Wf:this.qa.getCurrentTime(),adCpn:b};UN(this,this.j,c)}else this.qa.ra("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,
transitionTime:this.j.Wf,upcomingCpn:b,contentCpn:this.qa.getVideoData().clientPlaybackNonce,currentTime:this.qa.getCurrentTime()});this.j=void 0;this.I=!1}else this.j={Md:a,isAd:!c,Kn:!1,Wf:this.qa.getCurrentTime(),adCpn:b};this.U.K("web_player_halftime_dai")&&(b=this.u.get(b),this.isLiveNow&&b&&this.qa.getCurrentTime()<this.qa.Hk()&&KN(this,Infinity))}else this.qa.ra("sdai",{ignore_single_exit:1})};
g.k.isAdPlaying=function(a){return this.bp?!1:MN(this)?!!this.N:!!WN(this,1E3*a)};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.I=!0;if(void 0===b?0:b)KN(this,a);else{b=this.api.Ic();var d=b===this.Ta?this.Ib:null;XN(this,!1);this.Zb=a;null!=c&&this.Kb.start(c);b&&(this.Ib=d||b.getPlayerState(),JS(b),this.Ta=b)}};
g.k.ea=function(){XN(this,!1);ZN(this);pGa(this);g.I.prototype.ea.call(this)};
g.k.xJ=function(a){this.Jc=a;this.qa.ra("sdai",{swebm:a})};
g.k.Lk=function(a,b,c){if(c&&b){var d=this.va.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.ax(c);this.Da&&this.qa.ra("sdai",{hdlredir:1,itag:b,seg:a,hostport:ex(c)});d.locations.set(e,c)}}};
g.k.Fk=function(a,b,c,d){if(this.bp)return null;var e=Number(c.split(";")[0]),f=3===d;if(g.sGa(this,b))return this.Da&&this.qa.ra("sdai",{gdu:"undec",seg:b,itag:e}),null;a=aO(this,a,b,d);this.Da&&this.qa.ra("sdai",{gdu:1,seg:b,itag:e,pb:""+!!a});if(!a)return cO(this,b,f),null;a.locations||(a.locations=new Map);if(!a.locations.has(e)){var h,l,m=null==(h=a.videoData.getPlayerResponse())?void 0:null==(l=h.streamingData)?void 0:l.adaptiveFormats;if(!m)return this.qa.ra("sdai",{gdu:"noadpfmts",seg:b,itag:e}),
cO(this,b,f),null;h=m.find(function(y){return y.itag===e});
if(!h||!h.url){c={gdu:"nofmt",seg:b,vid:a.videoData.videoId,itag:e,fullitag:c,itags:""};if(!this.U.K("html5_ssdai_log_missing_itags_killswitch")){var n=[];a=g.r(m);for(var p=a.next();!p.done;p=a.next())n.push(p.value.itag);c.itags=n.join(",")}this.qa.ra("sdai",c);cO(this,b,f);return null}m=!this.U.K("html5_ssdai_decipher_killswitch");a.locations.set(e,new g.ax(h.url,m))}m=a.locations.get(e);if(!m)return this.qa.ra("sdai",{gdu:"nourl",seg:b,itag:e}),cO(this,b,f),null;m=new hy(m);this.Jc&&m.set("dvc",
"webm");this.U.experiments.fb("ssdai_return_original_content")&&m.set("dairoc","1");var q;(h=null==(q=$N(this,b-1,d))?void 0:q.gB)&&m.set("daistate",h);a.xD&&b>=a.xD&&m.set("skipsq",""+a.xD);(h=this.qa.getVideoData().clientPlaybackNonce)&&m.set("cpn",h);q=[];a.yk&&(q=tGa(this,a.yk),0<q.length&&m.set("acpns",q.join(",")));f||this.va.set(b,a);f=null;if(!this.U.K("web_player_ssdai_acpns_aids_logging_killswitch")){f=m.get("aids");var t,u;if(((null==(t=f)?void 0:null==(u=t.split(","))?void 0:u.length)||
0)!==q.length)if(a.yk){var x;this.qa.ra("sdai",{acpns_aids_nm:1,ids:vGa(this,a.yk).join("_"),acpns:q.join("_"),aids:null==(x=f)?void 0:x.replace(/,/g,"_"),cpn:h,trackType:d})}else this.qa.ra("sdai",{acpns_aids_nm:"noAdBreakId",cpn:h})}d=g.iy(m);2048<(null==d?void 0:d.length)&&this.qa.ra("sdai",{urltoolong:1,sq:b,itag:e,len:d.length});this.Da?(d&&(t=a.cpn,p=a.yk,xGa(this,t,p),p&&!this.kb.has(p)&&(t=uGa(this,t,p),u=wGa(this,p),this.qa.ra("sdai",{iofa:t}),this.qa.ra("sdai",{noawnzd:u-t}),this.qa.ra("sdai",
{acpns:q.join("."),aids:null==(n=f)?void 0:n.replace(/,/g,".")}),this.kb.add(p))),this.qa.ra("sdai",{gdu:"v",seg:b,itag:c,ast:a.wc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId})):!this.U.K("web_player_ssdai_all_acpns_aids_logging_killswitch")&&d&&(b=a.yk)&&!this.kb.has(b)&&(this.qa.ra("sdai",{acpns:q.join("."),aids:null==(p=f)?void 0:p.replace(/,/g,"."),vids:vGa(this,b).join("."),abid:b}),this.kb.add(b));return d};
g.k.DJ=function(a,b){if(a=aO(this,a,b)){var c=a.yk;if(c){this.qa.ra("sdai",{skipadonsq:b,abid:c,acpn:a.cpn,avid:a.videoData.videoId});a=this.J.get(c);if(!a)return;a=g.r(a);for(c=a.next();!c.done;c=a.next())c.value.xD=b}qGa(this)}};
g.k.gJ=function(){for(var a=g.r(this.D),b=a.next();!b.done;b=a.next())b.value.xD=NaN;qGa(this)};
g.k.Uz=da(31);
g.k.BI=function(a,b,c,d,e,f,h,l,m){m&&(h?this.Ia.set(a,{gB:m,gx:l}):this.oa.set(a,{gB:m,gx:l}));if(h){if(d.length&&e.length)for(a=b+this.En(),h=g.r(d.entries()),l=h.next();!l.done;l=h.next()){m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=a;a=m+e[l];if(n=this.u.get(n))l=m-f[l],n.Oo=null!=n.Oo?Math.min(n.Oo,l):l}if(!MN(this))if(d.length&&e.length)for(b=1E3*(b+this.En()),d=g.r(d.entries()),c=d.next();!c.done;c=d.next())if(c=g.r(c.value),f=c.next().value,c=c.next().value,f=1E3*e[f],c===this.qa.getVideoData().clientPlaybackNonce)bO(this,
b,b+f,!1),b+=f;else if(this.Zc.has(c)||(this.qa.ra("sdai",{adCpnFromEmsg:1}),this.Zc.add(c)),(a=this.C.get(c))&&a.start<=b&&a.end>=b+f)b=a.end;else{if(h=!1,a?b<a.start?a.start=b:a.end<b+f&&(a.end=b+f):(a=mGa(b,b+f,c),this.C.set(c,a),this.qa.ra("sdai",{newAdCR:1}),h=!0),b=a.end,bO(this,a.start,a.end,!0),h)for(this.qa.addCueRange(a),c=this.qa.Hx("serverstitchedcuerange",36E5),c=g.r(c),f=c.next();!f.done;f=c.next())this.C.delete(f.value.getId())}else 5!==c&&4!==c||bO(this,1E3*(b+this.En()),1E3*(b+this.En())+
5E3,!1)}};
g.k.Nx=da(33);g.k.En=function(){return this.qa.En()};
g.k.Ey=function(a){this.qa.ra("timelineerror",{e:a})};
g.k.jy=function(a){this.W&&this.V&&this.Ga.push(this.V);!this.U.K("web_player_skip_fetched_cuepoint_killswitch")&&a&&this.V&&this.Hc.push(this.V);this.V=null;this.qa.jy(a)};
g.k.TG=function(a){if(this.bp||a.identifier&&this.Ad.has(a.identifier))this.Da&&this.qa.ra("sdai",{startnoad:a.identifier}),QN(this);else if(pl(this.Ga,function(c){return c.identifier===a.identifier}))this.qa.ra("sdai",{timedoutcp:1}),this.Y.start(0);
else if(!this.U.K("web_player_skip_fetched_cuepoint_killswitch")&&pl(this.Hc,function(c){return c.identifier===a.identifier}))this.qa.ra("sdai",{fetchedcp:1}),QN(this);
else if(this.Y.isActive()){var b;this.qa.ra("sdai",{racingcp:(null==(b=this.V)?void 0:b.identifier)+"_"+a.identifier})}else this.Nc=(new Date).getTime()/1E3,this.Da&&this.qa.ra("sdai",{adf:1}),this.W=!1,this.Y.start(),this.V=a,this.oa.clear(),this.Ia.clear(),this.ma.clear(),this.U.K("enable_h5_ssdai_decoration_records_clear_killswitch")&&this.va.clear(),this.qb=[]};
g.k.Pu=function(a,b){a=aO(this,a,b);if(!this.U.experiments.fb("disable_ssdai_on_errors")||!a||this.bp)return!1;this.bp=!0;0<this.Aj&&(this.Aj=0,this.N=null,this.api.X("serverstitchedvideochange"));a=this.qa;b={reason:"disablessdai",sq:b};"disablessdai"===b.reason&&(a.videoData.DK=!0);a.xd(new fC("qoe.restart",b));QQ(a,!0);return!0};
g.k.Er=function(){this.qa.ra("sdai",{rstdaist:1});this.oa.clear();this.Ia.clear();this.ma.clear()};
g.k.bq=function(a){this.Ad.add(a);var b;(null==(b=this.V)?void 0:b.identifier)===a&&QN(this)};
g.k.AI=function(a,b,c,d){if(MN(this)){var e=this.qa.getVideoData().clientPlaybackNonce;a=a||e;b=b||e;if(a!==b){var f=a===e?SN(this):this.u.get(a),h=b===e?SN(this):this.u.get(b);f&&h?(c=this.I?c:d,TN(this.qa,f,h,c,d,this.I),b===e?(this.Sa=1E3*c,this.Aj=0,this.N=null,this.qa.ra("sdai",{adchg:this.Aj}),this.api.X("serverstitchedvideochange")):(this.Sa=0,this.Aj++,this.N=h,this.qa.ra("sdai",{adchg:this.Aj,apid:this.N.Ac,acpn:this.N.cpn}),this.api.X("serverstitchedvideochange",h.Ac,h.Oo))):this.qa.ra("sdai",
{unknowntrans:"1",old:a,"new":b});this.I=!1}}};
g.k.Xp=function(a){var b=iJ(this.api.ib());return b?b.Xp(a):!1};
var kGa=0;g.w(dO,g.I);g.k=dO.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.Ic()){var b=this.I.get(a);b?EGa(this,b.target,b.ll,a):this.xd("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.u.find(function(e){return e.hp.Md===a})){var c=b.hp,d=c.target;
c=c.ll;d?EGa(this,d,c,a):DGa(this,b.Sc,c,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.J;hO(this);if(a){if(!gO(this,a)){var b=this.api.Ic();this.xd("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.Ic().addCueRange(a.hp.Md)}};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)yGa(this,a);else{b=this.api.Ic();var d=b===this.C?this.D:null;jO(this,!1);this.V=a;null!=c&&this.N.start(c);b&&(this.D=d||b.getPlayerState(),JS(b),this.C=b)}};
g.k.hh=function(a){g.VE(a,128)&&HGa(this)};
g.k.isManifestless=function(){return tD(this.j.getVideoData())};
g.k.ea=function(){jO(this,!1);lO(this);g.I.prototype.ea.call(this)};
g.k.xd=function(a,b){this.j.xd(new fC(a,b))};
var zGa=0;var JGa="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.w(oO,g.I);oO.prototype.get=function(a){mO(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
oO.prototype.set=function(a,b,c){this.remove(a,!0);mO(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.R)()+c);for(this.data.push(a);this.data.length>this.B;)(c=this.data.shift())&&pO(this,c,!0);nO(this)};
oO.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(pO(this,c,b),g.cc(this.data,function(d){return d.key===a}),nO(this))};
oO.prototype.ea=function(){var a=this;g.I.prototype.ea.call(this);this.data.forEach(function(b){pO(a,b,!0)});
this.data=[]};g.qO.prototype.info=function(){};g.w(rO,g.I);rO.prototype.ea=function(){LGa(this.j);g.I.prototype.ea.call(this)};g.w(sO,g.zo);sO.prototype.X=function(a){var b=g.Ea.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.zo.prototype.X.call.apply(g.zo.prototype.X,[this,a].concat(g.v(b.shift())))}finally{this.D.delete(a)}return c};tO.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
tO.prototype.forEach=function(a){for(var b=this.j+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.j;b++)a(this.data[b]||0)};
tO.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.u=this.j=this.data.length-1};g.w(uO,g.I);uO.prototype.start=function(){this.u.start()};
uO.prototype.stop=function(){this.u.stop()};
uO.prototype.clear=function(){for(var a=g.r(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
uO.prototype.sample=function(){for(var a=g.r(this.B),b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new xO(nVa.has(b)));this.j.get(b).update(c())}this.u.start()};
var nVa=new Set(["networkactivity"]);xO.prototype.update=function(a){this.u?(this.buffer.add(a-this.j||0),this.j=a):this.buffer.add(a)};
xO.prototype.clear=function(){this.buffer.clear();this.j=0};g.w(yO,g.I);yO.prototype.ea=function(){g.I.prototype.ea.call(this);this.j=null;this.u&&this.u.disconnect()};g.oVa=pf(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var Z_;Z_={};g.zO=(Z_.STOP_EVENT_PROPAGATION="html5-stop-propagation",Z_.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Z_.IV_DRAWER_OPEN="ytp-iv-drawer-open",Z_.MAIN_VIDEO="html5-main-video",Z_.VIDEO_CONTAINER="html5-video-container",Z_.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Z_.HOUSE_BRAND="house-brand",Z_);g.w(AO,g.W);g.k=AO.prototype;g.k.Po=function(){g.fo(this.element,g.Ea.apply(0,arguments))};
g.k.Kh=function(){this.Hb&&(this.Hb.removeEventListener("focus",this.nI),g.Dg(this.Hb),this.Hb=null)};
g.k.cG=function(){this.isDisposed();var a=this.app.S();a.zl||this.Po("tag-pool-enabled");a.D&&this.Po(g.zO.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Po("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Zb&&(this.RF=g.Dt("yt-dom-content-change",this.resize,this));this.P(window,"orientationchange",this.resize,this);this.P(window,"resize",this.resize,this)};
g.k.Bz=function(a){this.SB=!a;BO(this)};
g.k.resize=function(){if(this.Hb){var a=this.xi();if(!a.isEmpty()){var b=!g.dg(a,this.Fv.getSize()),c=UGa(this);b&&(this.Fv.width=a.width,this.Fv.height=a.height);a=this.app.S();(c||b||a.Zb)&&this.app.Oa.X("resize",this.getPlayerSize())}}};
g.k.Ep=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.Hb){var b=this.app.S();Iq&&(this.Hb.setAttribute("x-webkit-airplay","allow"),a.title?this.Hb.setAttribute("title",a.title):this.Hb.removeAttribute("title"));Ixa(a)?this.Hb.setAttribute("disableremoteplayback",""):this.Hb.removeAttribute("disableremoteplayback");this.Hb.setAttribute("controlslist","nodownload");b.fn&&a.videoId&&(this.Hb.poster=a.zf("default.jpg"))}b=g.ID(a,"yt:bgcolor");this.tx.style.backgroundColor=b?b:"";this.TH=Wq(g.ID(a,"yt:stretch"));this.UH=
Wq(g.ID(a,"yt:crop"),!0);g.O(this.element,"ytp-dni",a.D);this.resize()};
g.k.setGlobalCrop=function(a){this.QG=Wq(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.UM=a;this.resize()};
g.k.dk=function(){};
g.k.getPlayerSize=function(){var a=this.app.S(),b=this.app.Oa.isFullscreen();if(b&&Bq())return new g.cg(window.outerWidth,window.outerHeight);if(b||a.Ml){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Fy&&this.Fy.media===a||(this.Fy=window.matchMedia(a));var c=this.Fy&&this.Fy.matches}if(c)return new g.cg(window.innerWidth,window.innerHeight)}else if(!isNaN(this.Kx.width)&&!isNaN(this.Kx.height))return this.Kx.clone();return new g.cg(this.element.clientWidth,
this.element.clientHeight)};
g.k.xi=function(){var a=this.app.S().K("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.eA(this.app.S().experiments,"player_underlay_min_player_width");return a&&this.OI&&b.width>c?new g.cg(b.width*g.eA(this.app.S().experiments,"player_underlay_video_width_fraction"),b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.TH)?SGa(this):this.TH};
g.k.getVideoContentRect=function(a){var b=this.xi();a=TGa(this,b,this.getVideoAspectRatio(),a);return new g.Yk((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.Tv=function(a){this.OI=a;this.resize()};
g.k.dC=function(){return this.VC};
g.k.onMutedAutoplayChange=function(){BO(this)};
g.k.setInternalSize=function(a){g.dg(this.Kx,a)||(this.Kx=a,this.resize())};
g.k.ea=function(){this.RF&&g.Et(this.RF);this.Kh();g.W.prototype.ea.call(this)};g.k=VGa.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.Lu();c&&a.visualElement&&g.Vu(c,a.visualElement,b)};
g.k.Bb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=Oqa(c);a.visualElement=c;var f=g.Lu(),h=g.Ku();f&&h&&g.Pu(void 0,f,h,[c]);g.Be(b,function(){WGa(e,a)});
d&&this.u.add(a)};
g.k.Yh=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.Be(b,function(){WGa(d,a)});
c&&this.u.add(a)};
g.k.dl=function(a,b){this.elements.has(a);b&&(a.visualElement=g.Eu(b))};
g.k.In=function(a){return this.elements.has(a)};g.w(GO,g.W);
GO.prototype.setValue=function(a,b){for(var c=0;c+2<this.B.length&&this.B[c+1]<b;)c++;b=Math.min(1,(b-this.B[c])/(this.B[c+1]-this.B[c]));if(this.ctx)this.ctx.fillStyle=this.C[c],this.ctx.fillRect(a*this.j,0,this.j,this.heightPx),this.ctx.fillStyle=this.C[c+1],this.ctx.fillRect(a*this.j,this.heightPx*(1-b),this.j,this.heightPx);else{a=this.element.children[a];var d=window.devicePixelRatio||1;b=Math.min(this.heightPx,Math.round(this.heightPx*b*d)/d)||0;a.style.height=b+"px";a.style.backgroundColor=this.C[c+
1];a.style.borderTop="solid "+(this.heightPx-b)+"px "+this.C[c]}};g.w(IO,g.W);g.k=IO.prototype;g.k.show=function(){g.W.prototype.show.call(this);this.Ea()};
g.k.hide=function(){g.W.prototype.hide.call(this);this.delay.stop()};
g.k.stop=function(){this.delay.stop()};
g.k.start=function(){this.delay.isActive()||this.Ea()};
g.k.Ea=function(){var a=(0,g.R)(),b=this.Oa.getStatsForNerds();HO(this.j,b.bandwidth_samples);HO(this.C,b.network_activity_samples);HO(this.B,b.live_latency_samples);HO(this.u,b.buffer_health_samples);var c={};b=g.r(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.r(d.value);d=e.next().value;e=e.next().value;this.D[d]!==e&&(c[d]=" "+String(e));this.D[d]=e}this.update(c);a=25<(0,g.R)()-a?5E3:500;this.delay.start(a)};JO.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
JO.prototype.getPlaybackRate=function(){return this.playbackRate};NO.prototype.seek=function(a){a!==this.u&&(this.seekCount=0);this.u=a;var b=this.videoTrack.u,c=this.audioTrack.u,d=this.audioTrack.Yb,e=bHa(this,this.videoTrack,a,this.videoTrack.Yb);d=bHa(this,this.audioTrack,this.policy.va?a:e,d);a=Math.max(a,e,d);this.D=!0;this.j.isManifestless&&($Ga(this.videoTrack,b),$Ga(this.audioTrack,c));return a};
NO.prototype.Hg=function(){return this.D};
var aHa=2/24;gHa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.R)()};g.w(SO,g.iu);g.k=SO.prototype;
g.k.uI=function(a,b,c){if(this.B){var d=[],e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.u,f=b.C,h=b.B,l=b.gx);this.B.BI(a.Ka,a.startTime,this.u,d,e,f,c,l,h)}if(c){if(b&&!this.oa.has(a.Ka)){c=a.startTime;d=[];e=g.r(b.j.entries());for(f=e.next();!f.done;f=e.next())h=g.r(f.value),f=h.next().value,h=h.next().value,l=c,c=l+b.u[f],d.push({startTime:l,endTime:c,adCpn:h});this.oa.set(a.Ka,d)}this.policy.ge&&(c=this.Y&&a.Ka===this.Y.Ka+1,this.Y=a,d=this.j&&a.Ka===this.j.Ka+1,d=this.j&&c&&d&&"stop"!==this.j.hf.event&&
"predictStart"!==this.j.hf.event,e=a.hf||null,f=this.I.j.index.getLastSegmentNumber()<=a.Ka,h=this.N.isManifestless&&this.policy.dn,e?(this.j={hf:e,Ka:a.Ka,py:!!b},f?TO(this,e,a.Ka):h&&(c?d?TO(this,e,a.Ka):"continue"===e.event||"stop"===e.event?lHa(this,a):TO(this,e,a.Ka):TO(this,e,a.Ka))):d&&lHa(this,a))}};
g.k.tI=function(a,b,c){var d=this.I.j.index.getLastSegmentNumber()<=b;this.j={hf:a,Ka:b,py:c};d&&TO(this,a,b)};
g.k.Er=function(){this.B&&this.B.Er()};
g.k.ra=function(a,b){this.Fa.ra(a,b)};
g.k.fl=function(a,b){var c=this.I.j.index.getSegmentNumberForTime(a);if(0<=c){var d;if(null==(d=this.B))d=0;else{var e;d=(null==(e=$N(d.jd,c,2))?void 0:e.gB)||""}if(d)return b.DJ(a,c),kHa(this,a,a,c),!0}return!1};
g.k.Nu=function(a){var b="",c=this.I.j.index.getSegmentNumberForTime(a);if(c=this.oa.get(c)){c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.startTime<=a&&a<d.endTime){b=d.adCpn;break}}return b};nHa.prototype.ew=function(a){var b=this.policy.V;this.policy.V=Wz(a,{},this.I);if(b!==this.policy.V){WO(this,this.j);YO(this);var c,d;b>this.policy.V&&(null==(c=this.u)?0:gz(c.info))&&(null==(d=this.nextVideo)||!gz(d.info))&&(this.N=!0)}};cP.prototype.dispose=function(){this.Y=!0};
cP.prototype.isDisposed=function(){return this.Y};
g.w(iP,Error);mP.prototype.skip=function(a){this.offset+=a};
mP.prototype.getOffset=function(){return this.offset};qP.prototype.Si=function(){this.u=[];tP(this);pP(this)};
qP.prototype.gj=function(a){this.Ia=this.u.shift().info;a.info.equals(this.Ia)};
qP.prototype.Jn=function(){return!!this.D.info.audio};
qP.prototype.getDuration=function(){return this.D.index.getMaxKnownEndTime()};g.k=zP.prototype;g.k.zG=function(){return 0};
g.k.DL=function(){return null};
g.k.NN=function(){return null};
g.k.isComplete=function(){return 3<=this.state};
g.k.isFailed=function(){return 5===this.state};
g.k.onStateChange=function(){};
g.k.isDisposed=function(){return-1===this.state};
g.k.dispose=function(){this.info.j[0].j.D=!1;AP(this,-1)};
g.k.KG=function(){return 0};g.w(OO,zP);g.k=OO.prototype;g.k.onStateChange=function(){this.isDisposed()&&(SR(this.Yd,this.u),this.B.dispose())};
g.k.Eu=function(){var a=ZIa(this.Yd,this.u),b;var c=(null==(b=this.Yd.Ud.get(this.u))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.Yd.Ud.get(this.u))?void 0:d.MA)||0;var e;d=(null==(e=this.Yd.Ud.get(this.u))?void 0:e.Fe.totalLength)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:d,isEnded:this.Yd.Gg(this.u)}};
g.k.KN=function(){return 0};
g.k.Qw=function(){return!0};
g.k.LE=function(){this.Dp();this.N=!0;return aIa(this.j)};
g.k.EL=function(){this.Dp();return this.j.Fe};
g.k.Ev=function(){var a,b;return!!(null==(a=this.j)?0:null==(b=a.Fe)?0:b.length)||this.Yd.eh(this.u)};
g.k.Dp=function(){for(;this.Yd.eh(this.u);){var a=this.j,b=this.Yd.gj(this.u),c=this.Yd.Ud.get(this.u);$Ha(a,b,c.Kf&&!c.Fe.totalLength&&cIa(this.Yd,this.u))}};g.k=DP.prototype;g.k.jg=function(){return MHa(this.C)};
g.k.gj=function(a){this.C.gj(a);a=a.info;var b=a.j.info.Ob;this.policy.ax&&a.Xd&&a.duration&&(b=Math.max(b,(a.Ab+a.u)/a.duration));this.Ob=Math.max(this.Ob,b||0)};
g.k.getDuration=function(){return this.j.index.getMaxKnownEndTime()};
g.k.Si=function(){PO(this);this.C.Si()};
g.k.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.j[0].Ka:!1};g.k=QP.prototype;g.k.xv=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.callbacks.yv()};
g.k.onError=function(){this.C=!0;this.onDone()};
g.k.onDone=function(){this.isDisposed||(this.u&&(this.j.append(this.u),delete this.u),this.callbacks.cq())};
g.k.Fr=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}};
g.k.Mx=function(){return+this.getResponseHeader("content-length")};
g.k.Ik=function(){return this.B};
g.k.oz=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.eh=function(){return 0<this.j.totalLength};
g.k.gj=function(){var a=this.j;this.j=new kx;return a};
g.k.jg=function(){return this.j};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Xv=function(){return!0};
g.k.dD=function(){return this.C};
g.k.rf=function(){return""};g.k=tIa.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
g.k.abort=function(){};
g.k.Fr=function(){return!0};
g.k.Mx=function(){return this.range.length};
g.k.Ik=function(){return this.loaded};
g.k.oz=function(){return!!this.loaded};
g.k.eh=function(){return!!this.u.totalLength};
g.k.gj=function(){var a=this.u;this.u=new kx;return a};
g.k.jg=function(){return this.u};
g.k.Xv=function(){return!0};
g.k.dD=function(){return!!this.error};
g.k.rf=function(){return this.error};var uIa=0;g.k=RP.prototype;g.k.rp=function(){this.Y||(this.Y=this.callbacks.rp?this.callbacks.rp():1);return this.Y};
g.k.yv=function(){this.Ia=this.now();this.callbacks.yv()};
g.k.rs=function(a,b){TP(this,a,b);50>a-this.C&&VP(this)||yIa(this,a,b);this.callbacks.rs(a,b)};
g.k.cq=function(){this.callbacks.cq()};
g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};
g.k.now=function(){return(0,g.R)()};g.k=ZP.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.V);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.Y,this.onError).then(void 0,ur)};
g.k.onDone=function(){this.isDisposed()||this.callbacks.cq()};
g.k.getResponseHeader=function(a){return this.D?this.D.get(a):null};
g.k.Fr=function(){return!!this.D};
g.k.Ik=function(){return this.u};
g.k.Mx=function(){return+this.getResponseHeader("content-length")};
g.k.oz=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.k.eh=function(){return!!this.j.totalLength};
g.k.gj=function(){this.eh();var a=this.j;this.j=new kx;return a};
g.k.jg=function(){this.eh();return this.j};
g.k.isDisposed=function(){return this.I};
g.k.abort=function(){this.Hm&&this.Hm.cancel().catch(function(){});
this.B&&this.B.abort();this.I=!0};
g.k.Xv=function(){return!0};
g.k.dD=function(){return this.J};
g.k.rf=function(){return this.errorMessage};g.k=$P.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.cq()}};
g.k.xv=function(){2===this.xhr.readyState&&this.callbacks.yv()};
g.k.Od=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.u=a.loaded),this.callbacks.rs((0,g.R)(),a.loaded))};
g.k.Fr=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return Xp(Error("Could not read XHR header "+a)),""}};
g.k.Mx=function(){return+this.getResponseHeader("content-length")};
g.k.Ik=function(){return this.u};
g.k.oz=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.u};
g.k.eh=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.k.gj=function(){this.eh();var a=this.response;this.response=void 0;return new kx([new Uint8Array(a)])};
g.k.jg=function(){this.eh();return new kx([new Uint8Array(this.response)])};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Xv=function(){return!1};
g.k.dD=function(){return!1};
g.k.rf=function(){return""};g.w(cQ,zP);g.k=cQ.prototype;g.k.Eu=function(){var a=SP(this.timing);a.shost=ex(this.u.Ri);this.B&&(a.rc=this.B.toString());a.itag=this.info.j[0].j.info.Vb();a.ml=""+ +this.info.j[0].j.Lf();a.sq=""+this.info.j[0].Ka;this.u&&(a.ifi=""+ +gx(this.info.u.C));410!==this.B&&500!==this.B&&503!==this.B||(a.fmt_unav="true");var b,c=null==(b=this.xhr)?void 0:b.rf();c&&(a.msg=c);this.Kz&&(a.smb="1");this.j&&(b=this.j.Fe,b.length&&Pta(b[0],a));this.info.Fk()&&(a.sdai="1");return a};
g.k.KN=function(){return CIa(this.timing)};
g.k.rf=function(){return this.xhr.rf()||""};
g.k.Qw=function(){var a;(a=this.isComplete())||(a=this.timing,a=a.u>a.NC&&WP(a,a.u));return a};
g.k.rs=function(){!this.isDisposed()&&this.xhr&&(this.B=this.xhr.status,this.Ev()?BP(this,2):!this.ma&&this.Qw()&&(BP(this),this.ma=!0))};
g.k.yv=function(){if(!this.isDisposed()&&this.xhr){if(!this.W&&this.xhr.Fr()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.W=((0,g.R)()-a)/1E3}this.xhr.Fr()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Sr&&!Rua()&&g.Zu("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.I=a||this.I;this.J=b||this.J}};
g.k.cq=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.V.stop(),this.B=a.status,a=HIa(this,a),5===a?bQ(this):AP(this,a))};
g.k.canRetry=function(){this.isDisposed();var a=aQ(this),b=this.info.Fk()?this.policy.Qr:this.policy.Me;return a.timedOut<this.policy.Zs&&a.j<b};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.Le?dQ(this):this.timing.deactivate())};
g.k.m0=function(){this.isComplete();if(!this.isDisposed()){var a=(0,g.R)(),b=!1;VP(this.timing)?(a=this.timing.V,wIa(this.timing),this.timing.V-a>=.8*this.oa?(this.C++,b=this.C>=this.policy.Fl):this.C=0):(b=this.timing,b.Ei&&YP(b,b.now()),a-=b.N,this.policy.Th&&0<a&&(this.C+=1),b=lta(aQ(this),this.policy,!1)*this.policy.Cl,b=a>1E3*b);this.C&&this.callback&&this.callback(this,this.state);b?IIa(this,!1):this.V.start()}};
g.k.dispose=function(){zP.prototype.dispose.call(this);this.V.dispose();this.policy.Le||dQ(this)};
g.k.LE=function(){if(!this.EL().length)return[];this.N=!0;return aIa(this.j)};
g.k.Ev=function(){if(1>this.state)return!1;if(this.j&&this.j.Fe.length)return!0;var a;return(null==(a=this.xhr)?0:a.eh())?!0:!1};
g.k.EL=function(){this.Dp(!1);return this.j?this.j.Fe:[]};
g.k.Dp=function(a){if(a||this.xhr.Fr()&&this.xhr.eh()&&!GIa(this)&&!this.D){if(!this.j){var b;this.xhr.Xv()?b=Dy(this.info):b=this.xhr.Ik();this.j=new ZHa(this.info.j,b)}for(;this.xhr.eh();)$Ha(this.j,this.xhr.gj(),a&&!this.xhr.eh())}};
g.k.Ik=function(){return this.xhr.Ik()};
g.k.zG=function(){return this.W};
g.k.rp=function(){return JIa(this)?2:1};
g.k.KG=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.k.DL=function(){this.xhr&&(this.I=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.I};
g.k.NN=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.J};g.w(eQ,g.I);
eQ.prototype.Pu=function(a){var b=a.info.j[0].j,c=a.lastError;if(fx(b.u.j)){var d=g.Dc(a.rf());this.Fa.ra("dldbrerr",{em:d||"none"})}d=a.info.j[0].Ka;var e=iHa(this.B,a.info.j[0].B,d);"net.badstatus"===c&&(this.N+=1);if(a.canRetry()){if(!(a.info.u.u>=this.policy.Qr&&this.u&&a.info.Fk()&&"net.badstatus"===a.lastError&&this.u.Pu(e,d))){d=(b.info.video&&1<b.u.u||410===a.B||500===a.B||503===a.B)&&!aP(this.D)&&!fx(b.u.j);e=a.Eu();var f=b.info.video?this.videoTrack:this.audioTrack;d&&(e.stun="1");this.Fa.handleError(c,
e);this.isDisposed()||(d&&$O(this.D,b),OP(f,a),this.Fa.uj())}}else b=1,this.u&&a.info.Fk()&&"net.badstatus"===a.lastError&&this.u.Pu(e,d)&&(b=0),this.j.isLive&&"net.badstatus"===a.lastError&&this.N<=2*this.policy.Me?(Iua(this.j),mJa(this.Fa)):this.Fa.handleError(c,a.Eu(),b)};
eQ.prototype.ea=function(){this.C=null;this.V="";g.I.prototype.ea.call(this)};
var hQ=2/24;QIa.prototype.clear=function(){this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1};g.w(g.oQ,g.I);g.k=g.oQ.prototype;
g.k.initialize=function(a,b,c){a=a||0;this.qa.DC(uHa(this.Td));if(this.j.isManifestless){if(this.policy.aj){b=wsa(this.policy);for(var d in this.j.j)this.j.j.hasOwnProperty(d)&&(this.j.j[d].index.C=b)}PIa(this.u)}this.C&&SIa(this.C,this.videoTrack.j);this.policy.ma&&Hw()&&this.ra("streaming",{ac:!!window.AbortController||Iw()},!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.j.isManifestless?d:a;this.V&&($Ia(this,this.videoTrack),$Ia(this,this.audioTrack),KLa(this.V),delete this.V);
c?(this.policy.ze?(this.Ga=c,qQ(this,c)):qQ(this,!1),g.Fn(this.nC)):(a=0===this.currentTime,lQ(this.u,this.videoTrack,this.videoTrack.j,a),lQ(this.u,this.audioTrack,this.audioTrack.j,a),this.seek(this.currentTime).Li(function(){}),this.timing.tick("gv"));
(this.j.Ve||this.j.Gh||this.j.D||this.j.C||this.j.I)&&this.ra("minMaxSq",{minSq:this.j.Ve,maxSq:this.j.Gh,minDvrTime:this.j.D,maxDvrTime:this.j.C,startWalltime:this.j.I})};
g.k.resume=function(){if(this.isSuspended||this.bv){this.fG=this.bv=this.isSuspended=!1;try{this.uj()}catch(a){g.S(a)}}};
g.k.setAudioTrack=function(a){if(!this.isDisposed()){var b=this.Td;b.B=b.C.j[a.id];b.J=b.B;a=new VO(b.J,b.u,"m");tQ(this.qa,a.reason,a.audio.info);uQ(this.qa)}};
g.k.setPlaybackRate=function(a){a!==this.N.getPlaybackRate()&&this.N.setPlaybackRate(a)};
g.k.LG=function(){return this.qa.LG()};
g.k.JB=function(){return this.qa.JB()};
g.k.Ek=function(){return this.qa.Ek()};
g.k.DI=function(a){this.qa.DI(a)};
g.k.uj=function(){sQ(this);if(this.mediaSource&&Ez(this.mediaSource)&&!this.mediaSource.Ai()){var a=FP(this.videoTrack);a=this.policy.rk&&a&&ty(a);this.j.isManifestless&&this.j.J&&Oz(this.j)?(this.D=Oz(this.j),this.mediaSource.bl(this.D)):this.j.isLive&&!a?isNaN(this.D)?(this.D=this.currentTime+3600,this.mediaSource.bl(this.D)):this.D<=this.currentTime+1800&&(this.D=Math.max(this.D+1800,this.currentTime+3600),this.mediaSource.bl(this.D)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.D)||this.D!==a)&&0<a&&(this.mediaSource.bl(a),this.D=a))}if(!this.isDisposed())if(Nz(this.j)&&this.j.isFailed())this.handleError("manifest.net.retryexhausted",{rc:this.j.Y.toString()},1);else if(!this.j.u||!mIa(this.videoTrack)&&!mIa(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.Ta?a=!1:(this.Si(),this.qa.seekTo(Infinity,{Ee:"checkLoaderTracksSync",Tq:!0}),a=!0),!a){sQ(this);try{HP(this.videoTrack);if(this.isDisposed())return;
HP(this.audioTrack);if(this.isDisposed())return}catch(e){OIa(this,e,{origin:"pollSlice"})}this.j.isManifestless&&(nIa(this.videoTrack),nIa(this.audioTrack),eHa(this.I),(a=this.videoTrack.jg())&&a.u&&(a=a.u.D&&!this.policy.xn,this.ra(a===this.policy.D.Mi?"strm":"strmbug",{strm:a,sfmp4:this.policy.D.Mi,dfs:this.policy.xn},!0)));if(this.mediaSource)aJa(this);else if(this.policy.u){(a=this.videoTrack.jg())&&this.videoTrack.gj(a);var b=this.audioTrack.jg();b&&this.audioTrack.gj(b);JP(this.videoTrack)&&
JP(this.audioTrack)||(a||b)&&g.Fn(this.W)}pQ(this);lQ(this.u,this.videoTrack,this.videoTrack.j,!1);lQ(this.u,this.audioTrack,this.audioTrack.j,!1);a=this.videoTrack;var c=this.audioTrack;if((!this.mediaSource||Ez(this.mediaSource)&&!this.policy.bb)&&!this.I.Hg()&&PP(a)&&a.j.Lf()&&this.Td.N){b=this.currentTime;var d=this.N;c=LO(d,a.j.info.Ob,c.j.info.Ob,0);d=NA(d.schedule)+c/PA(d.schedule);b+=Math.max(d,d+10-c/a.j.info.Ob);a:{if(a.B.length){if(a.B[0].info.j[0].startTime<=b)break a;PO(a)}d=a.C;for(c=
d.u.length-1;0<=c;c--)d.u[c].info.startTime>b&&d.u.pop();a.B.length?a.u=g.Rb(g.Rb(a.B).info.j):a.C.u.length?a.u=rP(a.C).info:a.u=FP(a);a.u&&b<a.u.startTime&&(a.W=0,a.j.Lf()?a.u=a.j.Dn(b,!0).j[0]:a.u=null)}}KIa(this.u,this.videoTrack,this.audioTrack);KIa(this.u,this.audioTrack,this.videoTrack);this.policy.Nl&&this.ma&&!this.isSuspended&&Jva(this.schedule)&&(iJa(this,this.ma),this.ma="");this.C&&(a=this.C,a.C?(b=a.I+a.policy.oi,a.B||(b=Math.min(b,a.startTimeSecs+a.policy.Kd)),a=Math.max(0,1E3*b-Date.now())):
a=NaN,isNaN(a)||g.Fn(this.Pa,a));g.Fn(this.Ia)}};
g.k.mU=function(a){if(this.policy.Kb&&this.mediaSource){var b=a===this.mediaSource.j,c=a.DB();if(c&&(c.Ab&&!c.Xd||this.ra("sbu",a.Nb({a:b})),c.Xd)){a=a.ag();b=uz(a,c.startTime-hQ);var d=uz(a,this.currentTime);(0>b||b!==d)&&this.ra("sbu_mismatch",{b:tz(a),c:this.currentTime,s:Ay(c)})}}this.uj()};
g.k.jY=function(a){if(this.mediaSource){var b=FP(a===this.mediaSource.j?this.audioTrack:this.videoTrack);if(a=a.IG())for(var c=0;c<a.length;c++)this.ra("appendedbuffer",{i:c,b:g.Cc(a[c].subarray(0,4096),3)});a=void 0;b&&(a=zy(b));this.handleError("fmt.unplayable",a,1)}};
g.k.wv=function(a){this.qa.wv(a)};
g.k.uI=function(a,b,c){this.j.isManifestless&&VHa(this,b,c,!!a.info.video)};
g.k.tI=function(a,b,c,d){a.info.video&&this.B.tI(b,c,d)};
g.k.by=da(8);g.k.seek=function(a){if(this.isDisposed())return Vg();if(this.videoTrack.J||this.audioTrack.J)return Vg("seeking to head");sQ(this);this.u.W=(0,g.R)();pQ(this,a);this.mediaSource&&this.mediaSource.j&&this.mediaSource.u&&(this.mediaSource.j.isLocked()||this.mediaSource.u.isLocked())&&uQ(this.qa,{reattachOnLockedBuffer:1,vsb:""+this.mediaSource.u.isLocked(),asb:""+this.mediaSource.j.isLocked()});var b=this.currentTime;this.currentTime=this.I.seek(a);mHa(this.B,a,b);g.Fn(this.W);return Ug(this.currentTime)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.AG=function(){return this.audioTrack.j.info.j};
g.k.BG=function(){return this.videoTrack.j.info.j};
g.k.ea=function(){try{rQ(this),PO(this.audioTrack),PO(this.videoTrack),g.I.prototype.ea.call(this)}catch(a){g.S(a)}};
g.k.handleError=function(a,b,c){c=void 0===c?0:c;var d=gC(c);"fmt.unplayable"===a&&this.j.isLive&&this.policy.gt&&(this.policy.ma=!1);b=new fC(a,b,c);g.Ra(this);eC(b.details);this.qa.handleError(b);"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose()};
g.k.Nb=function(){var a=FP(this.audioTrack),b=FP(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.I.Hg(),lmf:this.Td.j.isLocked(),lbw:OA(this.schedule).toFixed(3),lhd:NA(this.schedule).toFixed(3),lst:(1E9*(this.schedule.j.Dh()||0)).toFixed(3),laa:a?Ay(a):"",lva:b?Ay(b):"",lar:this.audioTrack.u?Ay(this.audioTrack.u):"",lvr:this.videoTrack.u?Ay(this.videoTrack.u):"",laq:""+KP(this.audioTrack),lvq:""+KP(this.videoTrack)};this.mediaSource&&!this.mediaSource.Kf()&&this.mediaSource.j&&this.mediaSource.u&&
(a.lab=tz(this.mediaSource.j.ag()),a.lvb=tz(this.mediaSource.u.ag()));this.Y&&(a.lapt=((0,g.R)()-this.Y).toFixed(0),a.lapr=eJa(this));return a};
g.k.Si=function(){try{this.audioTrack.Si(),this.videoTrack.Si()}catch(a){g.S(a)}this.policy.u=""};
g.k.xG=function(){return KO(this.N)};
g.k.ra=function(a,b,c){this.qa.ra(a,b,void 0===c?!1:c)};
g.k.Fh=function(){return this.qa.Fh()};
g.k.Tq=function(a,b){a/=b;isNaN(this.timestampOffset)&&xQ(this,a-Math.min(a,this.policy.vj));return(a-this.timestampOffset)*b};
g.k.Hg=function(){return this.I.Hg()};
g.k.Er=function(){this.B.Er()};
g.k.ew=function(a){this.Td.ew(a)};
g.k.fl=function(a,b){return this.J&&this.B.fl(a,this.J)?(xQ(this,this.timestampOffset-b),!0):!1};
g.k.Nu=function(a){return this.B.Nu(a)};g.k=g.yQ.prototype;g.k.Fk=function(a,b,c,d){return this.jd.Fk(a,b,c,d)};
g.k.TG=function(a){this.jd.TG(a)};
g.k.Pu=function(a,b){return this.jd.Pu(a,b)};
g.k.Er=function(){this.jd.Er()};
g.k.DJ=function(a,b){this.jd.DJ(a,b)};
g.k.gJ=function(){this.jd.gJ()};
g.k.Nx=da(32);g.k.Lk=function(a,b,c){this.jd.Lk(a,b,c)};
g.k.Uz=da(30);g.k.BI=function(a,b,c,d,e,f,h,l,m){this.jd.BI(a,b,c,d,e,f,h,l,m)};
g.k.xJ=function(a){this.jd.xJ(a)};
g.k.AI=function(a,b,c,d){this.jd.AI(a,b,c,d)};
g.k.Xp=function(a){return this.jd.Xp(a)};g.w(zQ,g.iu);g.w(AQ,zQ);AQ.prototype.I=function(a,b){if(a&&b){var c=1*Number(Oh(a,"cpi"))+1;isNaN(c)||0>=c||c<this.B?(this.C.stop(),this.u.stop(),this.B=-1,this.j={}):(c>this.B&&(this.B=c,g.Se(this.j)||(this.j={},this.C.stop(),this.u.stop())),this.j[b]=a,g.Fn(this.u))}};
AQ.prototype.D=function(){for(var a=g.r(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.X;for(var d=this.B,e=this.j[c].match(Eh),f=[],h=g.r(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.fg(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<c.length;++e)d[2*e+4]=c.charCodeAt(e);b.call(this,
"rotated_need_key_info_ready",new jP(d,"fairplay",!0))}this.j={}};
AQ.prototype.ea=function(){this.j={};zQ.prototype.ea.call(this)};var $_={},vJa=($_.DRM_TRACK_TYPE_AUDIO="AUDIO",$_.DRM_TRACK_TYPE_SD="SD",$_.DRM_TRACK_TYPE_HD="HD",$_.DRM_TRACK_TYPE_UHD1="UHD1",$_);g.w(rJa,g.I);g.w(CQ,g.iu);g.k=CQ.prototype;g.k.aq=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=aA(b.u)?d:c;d=new Uint8Array(aA(b.u)?c:d);aA(b.u)&&JJa(d);c=g.Cc(d,4);JJa(d);d=g.Cc(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),HJa(this,","),BQ(this,{onkeystatuschange:1}),this.status="kc",this.X("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.isDisposed()||(this.X("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.I)/1E3,this.I=NaN,this.X("ctmp","provf",{et:a.toFixed(3)})));gC(b)&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.va&&this.J?!1:!a&&this.requestNumber===b.requestNumber};
g.k.ea=function(){this.j={};g.iu.prototype.ea.call(this)};
g.k.Nb=function(){var a={ctype:this.N.contentType||"",length:this.N.initData.length,requestedKeyIds:this.ma,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.j);return a};
g.k.cg=function(){var a=this.D.join();if(DQ(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.w(GQ,g.I);g.k=GQ.prototype;g.k.nU=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}};
g.k.aq=function(){this.J&&this.J(this.j.keyStatuses)};
g.k.bQ=function(a){this.D&&this.D(a.message,"license-request")};
g.k.aQ=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.ZP=function(){this.I&&this.I()};
g.k.update=function(a){var b=this;if(this.j)return this.j.update(a).then(null,Wp(function(c){NJa(b,"t.update",c)}));
this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.N.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.N.keySystem,a,this.initData,this.sessionId);return vq()};
g.k.ea=function(){this.j&&this.j.close();this.element=null;g.I.prototype.ea.call(this)};g.w(HQ,g.I);g.k=HQ.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))});
$z(this.j)?this.B=new (Zz())(this.j.keySystem):bA(this.j)?(this.B=new (Zz())(this.j.keySystem),this.element.webkitSetMediaKeys(this.B)):(gu(this.D,this.element,["keymessage","webkitkeymessage"],this.qU),gu(this.D,this.element,["keyerror","webkitkeyerror"],this.pU),gu(this.D,this.element,["keyadded","webkitkeyadded"],this.oU));return null};
g.k.setServerCertificate=function(){return"widevine"===this.j.flavor&&this.j.B&&this.u.setServerCertificate?this.u.setServerCertificate(this.j.B):null};
g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.u.createSession();cA(this.j)&&(c=OJa(c,this.j.u));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new GQ(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},Wp(function(f){NJa(e,"t.generateRequest",f)}));
return e}if($z(this.j))return QJa(this,c);if(bA(this.j))return PJa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.j.keySystem,c):this.element.webkitGenerateKeyRequest(this.j.keySystem,c);return this.C=new GQ(this.element,this.j,c,null,null)};
g.k.qU=function(a){var b=IQ(this,a);b&&b.bQ(a)};
g.k.pU=function(a){var b=IQ(this,a);b&&b.aQ(a)};
g.k.oU=function(a){var b=IQ(this,a);b&&b.ZP(a)};
g.k.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a};
g.k.ea=function(){this.B=this.u=null;var a;null==(a=this.C)||a.dispose();a=g.r(Object.values(this.I));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.I={};g.I.prototype.ea.call(this);delete this.element};g.w(JQ,g.I);
JQ.prototype.init=function(){var a=this,b,c;return g.B(function(d){if(1==d.j)return g.al(a.j,{position:"absolute",width:"1px",height:"1px",display:"block"}),a.j.src=a.B.D,document.body.appendChild(a.j),a.C.P(a.j,"encrypted",a.I),b=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.A(d,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",b),2);c=d.u;a.B.keySystemAccess=c;a.u=new HQ(a.j,
a.B);g.J(a,a.u);a.u.attach();g.va(d)})};
JQ.prototype.I=function(a){if(!this.isDisposed()){var b=new Uint8Array(a.initData);a=new jP(b,a.initDataType);var c=nJa(b).replace("skd://","https://"),d={},e=this.u.createSession(a,function(){});
e&&(g.J(this,e),this.D.push(e),yJa(e,function(f){LJa(f,e.j,c,d)},function(){},function(){},function(){}))}};
JQ.prototype.ea=function(){this.D=[];this.j&&this.j.parentNode&&this.j.parentNode.removeChild(this.j);g.I.prototype.ea.call(this)};g.w(KQ,zQ);
KQ.prototype.I=function(a){var b;if(!(b=!this.C)){a:{if((b=a.cryptoPeriodIndex)&&0<this.j.length)for(var c=g.r(this.j),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}b=!b}if(b){b=(0,g.R)();if(!(c=this.D)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.r(this.B.values());for(var e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c=!c}c?c=0:(c=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.X("log_qoe",{wvagt:"delay."+
c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length});this.C&&0>=c?RJa(this,a):(this.j.push({time:b+c,info:a}),g.Fn(this.u,c))}};
KQ.prototype.ea=function(){this.j=[];zQ.prototype.ea.call(this)};LQ.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
LQ.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
LQ.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
LQ.prototype.findIndex=function(a){return g.Vb(this.keys,function(b){return g.nc(a,b)})};g.w(NQ,g.iu);g.k=NQ.prototype;g.k.rU=function(a){this.Rh({onecpt:1});a.initData&&WJa(this,new Uint8Array(a.initData),a.initDataType)};
g.k.kZ=function(a){this.Rh({onndky:1});WJa(this,a.initData,a.contentType)};
g.k.wv=function(a){this.Rh({onneedkeyinfo:1});this.U.K("html5_eme_loader_sync")&&(this.J.get(a.initData)||this.J.set(a.initData,a));VJa(this,a)};
g.k.yM=function(a){this.B.push(a);OQ(this)};
g.k.createSession=function(a){var b=XJa(this)?JHa(a):g.Cc(a.initData);this.u.get(b);this.oa=!0;a=new CQ(this.videoData,this.U,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.DP,this);a.subscribe("keystatuseschange",this.aq,this);a.subscribe("licenseerror",this.CC,this);a.subscribe("newlicense",this.VP,this);a.subscribe("newsession",this.WP,this);a.subscribe("sessionready",this.iQ,this);a.subscribe("fairplay_next_need_key_info",this.NP,this);AJa(a,this.C)};
g.k.VP=function(a){this.isDisposed()||(this.Rh({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.X("heartbeatparams",a)))};
g.k.WP=function(){this.isDisposed()||(this.Rh({newlcssn:1}),this.B.shift(),this.oa=!1,OQ(this))};
g.k.iQ=function(){if($z(this.j)&&(this.Rh({onsnrdy:1}),this.Da--,0===this.Da)){var a=this.W;a.element.msSetMediaKeys(a.B)}};
g.k.aq=function(a){if(!this.isDisposed()){!this.va&&this.videoData.K("html5_log_drm_metrics_on_key_statuses")&&(YJa(this),this.va=!0);this.Rh({onksch:1});if(!DQ(a)&&g.hs&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(DQ(a))for(var d=g.r(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(!DQ(a)||c)b=a.D;b=g.Xb(b,"UHD2")||g.Xb(b,"UHD2HDR")?
"highres":g.Xb(b,"UHD1")||g.Xb(b,"UHD1HDR")?"hd2160":g.Xb(b,"HD")||g.Xb(b,"HDHDR")?"hd1080":g.Xb(b,"HD720")||g.Xb(b,"HD720HDR")?"hd720":"large"}a:{c=g.Mw("auto",b,!1,"l");if(this.videoData.Th){if(this.N.equals(c))break a}else if(isa(this.N,b))break a;this.N=c;this.X("qualitychange");this.Rh({updtlq:b})}this.X("keystatuseschange",a)}};
g.k.DP=function(a,b){this.isDisposed()||this.X("ctmp",a,b)};
g.k.NP=function(a,b){this.isDisposed()||this.X("fairplay_next_need_key_info",a,b)};
g.k.CC=function(a,b,c,d){this.isDisposed()||(this.videoData.K("html5_log_drm_metrics_on_error")&&YJa(this),this.X("licenseerror",a,b,c,d))};
g.k.Ju=function(){return this.N};
g.k.ea=function(){this.j.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.r(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.DP,this),b.unsubscribe("keystatuseschange",this.aq,this),b.unsubscribe("licenseerror",this.CC,this),b.unsubscribe("newlicense",this.VP,this),b.unsubscribe("newsession",this.WP,this),b.unsubscribe("sessionready",this.iQ,this),b.unsubscribe("fairplay_next_need_key_info",this.NP,this),b.dispose();
this.u.clear();MQ(this.I);MQ(this.J);this.heartbeatParams=null;g.iu.prototype.ea.call(this)};
g.k.Nb=function(){for(var a={systemInfo:this.j.Nb(),sessions:[]},b=g.r(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Nb());return a};
g.k.cg=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.cg()+(this.D?"/KR":"")};
g.k.Rh=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(eC(a),(dC(this.U)||b)&&this.X("ctmp","drmlog",a))};g.w(RQ,g.I);RQ.prototype.fC=function(){return this.B};
RQ.prototype.handleError=function(a){var b=this;cKa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!TQ(this,a.errorCode,a.details))&&!eKa(this,a))if(gC(a.severity)){var c,d=null==(c=this.qa.Fa)?void 0:c.Td.j;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.qa.qg(a.errorCode,
a.severity,e,eC(a.details),f)}else this.qa.X("nonfatalerror",a),c=/^pp/.test(this.videoData.clientPlaybackNonce),this.xd(a.errorCode,a.details),c&&"manifest.net.connect"===a.errorCode&&(a="https://web.archive.org/web/20220603021303/https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.R)(),oN(a,"manifest",function(h){b.I=!0;b.ra("pathprobe",h)},function(h){b.xd(h.errorCode,h.details)}))};
RQ.prototype.ra=function(a,b){this.qa.logging.ra(a,b)};
RQ.prototype.xd=function(a,b){b=eC(b);this.qa.logging.xd(a,b)};UQ.prototype.setPlaybackRate=function(a){this.playbackRate=a};
UQ.prototype.K=function(a){return this.U.K(a)};g.w(WQ,g.I);WQ.prototype.Wc=function(a){wKa(this);this.playerState=a.state;0<=this.B&&g.VE(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
WQ.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(pVa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
WQ.prototype.send=function(){if(!(this.C||0>this.u)){wKa(this);var a=g.GN(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=uNa[HD(this.j.videoData)];a:switch(this.j.U.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.U.Le+
36E5<(0,g.R)();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.FD(this.j.videoData),isGapless:this.j.videoData.Ia,isServerStitchedDai:this.j.videoData.enableServerStitchedDai};a||g.vr("html5PlayerHealthEvent",b);this.j.K("html5_health_to_qoe")&&
(b.muted=a,this.J(b));this.C=!0;this.dispose()}};
WQ.prototype.ea=function(){this.C||this.send();g.I.prototype.ea.call(this)};
var pVa=/\bnet\b/;var yKa=window;var xKa=/[?&]cpn=/;g.w(g.bR,g.I);g.k=g.bR.prototype;g.k.wW=function(){var a=g.GN(this.j);cR(this,a)};
g.k.Sx=function(){return this.va};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.GN(this.j),-1<["PL","B","S"].indexOf(this.Rd)&&(!g.Se(this.u)||a>=this.C+30)&&(g.aR(this,a,"vps",[this.Rd]),this.C=a),!g.Se(this.u))){7E3===this.sequenceNumber&&g.Bu(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){dR(this,a);var b=a,c=this.j.qa.ey(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.eb,h=e&&!this.Ib;d>c.totalVideoFrames||5E3<f?FKa(this,"html5.badframedropcount","df."+d+";tf."+
c.totalVideoFrames):(0<f||h)&&g.aR(this,b,"df",[f]);this.eb=d;this.Ib=e;!this.j.U.K("disable_webgl_reporting")&&0<this.N&&(g.aR(this,a,"glf",[this.N]),this.N=0);a={};this.j.videoData.B&&(a.fmt=this.j.videoData.B.Vb(),(b=this.j.videoData.I)&&b.Vb()!==a.fmt&&(a.afmt=b.Vb()));a.cpn=this.j.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.V&&(a.addocid=this.V);this.j.videoData.cotn&&(a.cotn=this.j.videoData.cotn);a.el=SD(this.j.videoData);a.content_v=TD(this.j.videoData);a.ns=this.j.U.Ga;
a.fexp=this.j.U.experiments.experimentIds.toString();a.cl=(452150644).toString();(b=this.j.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=HD(this.j.videoData))&&(a.live=b);yD(this.j.videoData)&&(a.drm=1,this.j.videoData.V&&(a.drm_system=JUa[this.j.videoData.V.flavor]||0),this.j.videoData.EF&&(a.drm_product=this.j.videoData.EF));fq()&&this.j.videoData.J&&(a.ctt=this.j.videoData.J,a.cttype=this.j.videoData.qj,this.j.videoData.mdxEnvironment&&(a.mdx_environment=this.j.videoData.mdxEnvironment));
this.j.videoData.isDaiEnabled()?(a.dai=this.j.videoData.enableServerStitchedDai?"ss":"cs",this.j.videoData.DK&&(a.dai_fallback="1")):this.j.videoData.Ac?a.dai="cs":this.j.videoData.EK&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.j.K("html5_log_server_url_param")&&this.j.videoData.KQ){if(b=this.j.videoData.KQ,a&&b)for(c=g.r(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.Jc.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.j.videoData.videoId,a.ei=this.j.videoData.eventId;
g.Ye(a,this.j.U.deviceParams);a=g.Mh("//"+this.j.U.rk+"/api/stats/qoe",a);c=b="";d=g.r(Object.keys(this.u));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.u[e]?g.Bu(new g.Ar("Stats report key has invalid value",e)):(e="&"+e+"="+this.u[e].join(","),100<e.length?c+=e:b+=e);CKa(this,a+b,c.replace(/ /g,"%20"))}this.u={}}};
g.k.pz=function(a){0<a&&(this.u.aft=[a.toString()])};
g.k.jR=function(){if(this.j.videoData.V){var a=this.j.videoData.V;fR(this,"eme-"+(a.keySystemAccess?"final":$z(a)?"ms":cA(a)?"ytfp":bA(a)?"safarifp":"nonfinal"))}};
g.k.Wc=function(a){var b=a.state,c=g.GN(this.j);a=this.getPlayerState(a.state);a!==this.Rd&&(c<this.C||("PL"===this.Rd?this.playTimeSecs+=c-this.C:"B"===this.Rd&&this.oa&&(this.oa=!1,this.rebufferTimeSecs+=c-(g.eA(this.j.U.experiments,"html5_disable_last_state_change")?this.C:this.Sa),!this.Pa&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.j.qa.Uy(),this.u.qoealert=["1"],this.Pa=!0)),"B"!==a||"PL"!==this.Rd&&"PB"!==this.Rd||(this.oa=!0),this.C=c),"PL"===this.Rd&&("B"===a||"S"===a)||dC(this.j.U)?
dR(this,c):cR(this,c),"PL"===a&&g.Fn(this.qc),g.aR(this,c,"vps",[a]),this.Rd=a,this.C=this.Sa=c,this.D=!0);a=b.getData();g.V(b,128)&&a&&EKa(this,c,a.errorCode,a.mB,a.MQ);(g.V(b,2)||g.V(b,128))&&this.reportStats(c);b.Kc()&&!this.I&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.I=!0);eR(this)};
g.k.bz=function(a){var b=g.GN(this.j);g.aR(this,b,"vfs",[a.j.id,a.u,this.Kb,a.reason]);this.Kb=a.j.id;var c=this.j.qa.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.wB();1<d&&c.push(d);g.aR(this,b,"view",c)}this.Ia||(dC(this.j.U)&&fR(this,"rqs"),this.j.videoData.j&&Rw(this.j.videoData.j)&&(this.u.preload=["1"]));this.D=this.Ia=!0;"m"===a.reason&&100===++this.Nc&&(a=this.u.fcnz,a||(a=[],this.u.fcnz=a),a.push("2"));g.aR(this,b,"vps",[this.Rd]);this.reportStats(b)};
g.k.Sy=function(a){var b=g.GN(this.j);a.j.id!==this.Da&&(g.aR(this,b,"afs",[a.j.id,this.Da,a.reason]),this.Da=a.j.id)};
g.k.Zp=da(36);g.k.Yp=da(39);g.k.onPlaybackRateChange=function(a){var b=g.GN(this.j);a&&a!==this.qb&&(g.aR(this,b,"rate",[a]),this.qb=a);this.reportStats(b)};
g.k.Wk=da(15);g.k.getPlayerState=function(a){if(g.V(a,128))return"ER";if(g.V(a,2048))return"B";if(g.V(a,512))return"SU";if(g.V(a,16)||g.V(a,32))return"S";if(g.FF(a)&&g.V(a,64))return"B";var b=qVa[IF(a)];g.oB(this.j.U)&&"B"===b&&3===this.j.qa.getVisibilityState()&&(b="SU");"B"===b&&g.V(a,4)&&(b="PB");return b};
g.k.ea=function(){g.I.prototype.ea.call(this);window.clearInterval(this.Ta)};
g.k.ra=function(a,b,c){var d=this.u.ctmp||[],e=-1!==this.Hc.indexOf(a);e||this.Hc.push(a);if(!c||!e){b="string"!==typeof b?eC(b):b;b=GKa(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.GN(this.j);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.u.ctmp=d;eR(this);return f}};
g.k.qz=function(a,b,c){this.J={t0:Number(this.ra("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),uP:a,g0:b,isAd:c}};
g.k.Hv=function(a,b,c){g.aR(this,g.GN(this.j),"ad_playback",[a,b,c])};
var a0={},qVa=(a0[5]="N",a0[-1]="N",a0[3]="B",a0[0]="EN",a0[2]="PA",a0[1]="PL",a0);IKa.prototype.update=function(){if(this.N){var a=this.j.qa.getCurrentTime()||0;this.j.U.K("html5_vss_media_time_killswitch")||(a=this.j.qa.Ui()||0);var b=g.GN(this.j);if(a!==this.u||MKa(this,a,b)){var c;if(!(c=a<this.u||a-this.u>b-this.lastUpdateTime+2||MKa(this,a,b))){var d=this.j.Vi();c=d.volume;var e=c!==this.W;d=d.muted;d!==this.V?(this.V=d,c=!0):(!e||0<=this.D||(this.W=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(jR(this),this.B=a);this.lastUpdateTime=b;this.u=a}}};kR.prototype.send=function(a){var b=this;if(!this.Ta){var c=mR(this),d=g.Mh(this.uri,c);this.W&&!this.U.K("html5_simplify_pings")?RKa(this,d):lR(this,a).then(function(e){b.W&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});$Q(d,e,{token:b.N,SJ:b.Ib,mdxEnvironment:b.mdxEnvironment},b.U,a,b.oa,b.isFinal&&b.Ye||b.ma||b.C&&b.Ze)});
this.Ta=!0}};
kR.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var b0={},PKa=(b0.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,b0.LIVING_ROOM_APP_MODE_MAIN=1,b0.LIVING_ROOM_APP_MODE_KIDS=2,b0.LIVING_ROOM_APP_MODE_MUSIC=3,b0.LIVING_ROOM_APP_MODE_UNPLUGGED=4,b0.LIVING_ROOM_APP_MODE_GAMING=5,b0),c0={},OKa=(c0.EMBEDDED_PLAYER_MODE_UNKNOWN=0,c0.EMBEDDED_PLAYER_MODE_DEFAULT=1,c0.EMBEDDED_PLAYER_MODE_PFP=2,c0.EMBEDDED_PLAYER_MODE_PFL=3,c0);g.w(oR,g.I);g.k=oR.prototype;g.k.Od=function(){this.u.update();var a;if(a=this.j.videoData.isLoaded()&&this.j.videoData.Hc&&this.C&&!this.W)a=this.u,a=(a.j.U.K("html5_vss_media_time_killswitch")?a.I+a.j.qa.getCurrentTime()-a.B:a.I+a.j.qa.Ui()-a.B)>=this.j.videoData.Hc;a&&(this.C&&this.j.videoData.Hc&&(a=pR(this,"delayplay"),a.Ke=!0,a.send(),this.W=!0),SKa(this))};
g.k.Wc=function(a){this.isDisposed()||(g.V(a.state,2)?(this.currentPlayerState="paused",g.VE(a,2)&&this.C&&sR(this).send()):g.V(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&qR(this,!1)):this.currentPlayerState="paused")};
g.k.ea=function(){g.I.prototype.ea.call(this);g.mq(this.B);this.B=NaN;KKa(this.u)};
g.k.Nb=function(){return mR(pR(this,"playback"))};
g.k.hw=function(){this.j.videoData.N.eventLabel=SD(this.j.videoData);this.j.videoData.N.playerStyle=this.j.U.playerStyle;this.j.videoData.Ke&&(this.j.videoData.N.feature="pyv");this.j.videoData.N.vid=this.j.videoData.videoId;var a=this.j.videoData.N;var b=this.j.videoData;b=b.isAd()||!!b.Ke;a.isAd=b};
g.k.ri=function(a){var b=pR(this,"engage");b.V=a;return NKa(b,XKa(this.j))};WKa.prototype.isEmpty=function(){return this.endTime===this.startTime};uR.prototype.K=function(a){return this.U.K(a)};
var YKa={other:1,none:2,wifi:3,cellular:7};g.w(g.vR,g.I);g.k=g.vR.prototype;g.k.Wc=function(a){if(g.VE(a,1024)||g.VE(a,512)||g.VE(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.Zg){var c;null==(c=this.B.get(this.Zg))||c.Wc(a)}else this.j&&this.j.Wc(a);this.qoe&&this.qoe.Wc(a);this.C.Wc(a)};
g.k.Od=function(){if(this.u.videoData.enableServerStitchedDai&&this.Zg){var a;null==(a=this.B.get(this.Zg))||a.Od()}else this.j&&this.j.Od()};
g.k.xd=function(a,b){this.qoe&&FKa(this.qoe,a,b);this.C.onError(a)};
g.k.bz=function(a){this.qoe&&this.qoe.bz(a)};
g.k.Sy=function(a){this.qoe&&this.qoe.Sy(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
g.k.Zp=da(35);g.k.ra=function(a,b,c){this.qoe&&this.qoe.ra(a,b,c)};
g.k.qz=function(a,b,c){this.qoe&&this.qoe.qz(a,b,c)};
g.k.pz=function(a){this.qoe&&this.qoe.pz(a)};
g.k.Hv=function(a,b,c){this.qoe&&this.qoe.Hv(a,b,c)};
g.k.Yp=da(38);g.k.Wk=da(14);g.k.Sx=function(){if(this.qoe)return this.qoe.Sx()};
g.k.Nb=function(){if(this.u.videoData.enableServerStitchedDai&&this.Zg){var a;null==(a=this.B.get(this.Zg))||a.Nb()}else if(this.j)return this.j.Nb();return{}};
g.k.ri=function(a){return this.j?this.j.ri(a):function(){}};
g.k.hw=function(){this.j&&this.j.hw()};g.w(wR,g.I);g.k=wR.prototype;g.k.Vd=function(a,b){this.Kl();b&&2E3<=this.j.j.length&&this.Hx("captions",1E4);b=this.j;if(1<a.length&&a.length>b.j.length)b.j=b.j.concat(a),b.j.sort(b.u);else{a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.j.length||0<b.u(c,b.j[b.j.length-1])?b.j.push(c):g.pc(b.j,c,b.u)}this.u=NaN;this.Kl()};
g.k.Pg=function(a){1E4<a.length&&g.Bu(new g.Ar("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.isDisposed()){var b=new Set(a);this.B=this.B.filter(function(c){return!b.has(c)});
kLa(this.j,b);this.Kl()}};
g.k.Hx=function(a,b){var c=(isNaN(this.u)?g.V(this.D(),2)?0x8000000000000:1E3*this.N():this.u)-b;b=this.Ek().filter(function(d){return d.namespace===a&&d.end<c});
this.Pg(b);return b};
g.k.Ek=function(){return this.isDisposed()?[]:this.j.j};
g.k.reset=function(){this.started=!1;this.C.stop();this.j.j=[];this.B=[];this.Kl()};
g.k.Df=function(a){var b=this.Ek().filter(function(c){return c.namespace===a});
this.Pg(b);return b};
g.k.Wc=function(a){this.started&&(this.Kl(),g.V(a.Up,16)&&(a=jLa(this.j,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.C.start()))};
g.k.kG=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&-1===this.B.indexOf(d)&&(this.B.push(d),b.push([1,d]))}return b};
g.k.nG=function(a){var b=[];if(!a.length)return b;a.sort(g.Bv);a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.B.splice(this.B.indexOf(c),1),b.push([2,c]);return b};
g.k.Kl=function(){this.I=!0;if(!this.J){for(var a=3;this.I&&a;)this.I=!1,this.J=!0,this.zO(),this.J=!1,a--;this.D().Kc()&&(a=jLa(this.j,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.Y(),this.C.start(a)))}};
g.k.zO=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.V(a,32)&&this.W.start();for(var b=g.V(this.D(),2)?0x8000000000000:1E3*this.N(),c=g.V(a,2),d=[],e=[],f=g.r(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.nG(e));f=e=null;c?(a=hLa(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=iLa(this.j)):a=this.u<=b&&GF(a)?gLa(this.j,this.u,b):hLa(this.j,b);
d=d.concat(this.kG(a));e&&(d=d.concat(this.nG(e)));f&&(d=d.concat(this.kG(f)));this.u=b;lLa(this,d)}};
g.k.ea=function(){this.B=[];this.j.j=[];g.I.prototype.ea.call(this)};
g.zN.YB(wR,{Vd:"crmacr",kG:"crmncr",nG:"crmxcr",zO:"crmis",Pg:"crmrcr"});g.w(AR,g.iu);AR.prototype.Mn=function(){return this.J};
AR.prototype.Hk=function(){return Math.max(this.N()-rLa(this,!0),this.videoData.getMinSeekableTime())};g.w(FR,g.I);FR.prototype.Wc=function(){g.Fn(this.B)};
FR.prototype.D=function(){var a=this,b=this.qa.Hd(),c=this.qa.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.qa.Cp().isBackground()||c.isSuspended();GR(this,this.va,f&&!h,e,"qoe.slowseek",function(){},"timeout");
f=f&&isFinite(this.j)&&0<this.j&&eza(b,this.j);var l=!d||10<Math.abs(d-this.j);GR(this,this.Da,f&&l&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
var m=f&&vz(b.Eg(),this.j);f=this.qa.Fa;l=!f||!f.policy.md;var n=function(){b.seekTo(a.j+.001)};
GR(this,this.Y,m&&l&&!h,e,"qoe.slowseek",n,"jiggle_cmt");l=function(){return QQ(a.qa)};
GR(this,this.oa,m&&!h,e,"qoe.slowseek",l,"new_elem");var p=GF(c);m=g.HF(c);var q=b.Eg(),t=uz(q,d);uLa(this,b,q,d,h,p,m);q=0<=t&&q.end(t)>d+5;q=p&&m&&q;GR(this,this.J,q&&!h,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");GR(this,this.N,q&&!h,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var u=f.getCurrentTime();n=b.Cr();n=dua(n,u);n=!f.Hg()&&d===n;GR(this,this.Sa,p&&m&&n&&!h,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(u)},"seek_to_loader")}GR(this,this.V,p&&m&&!h,p&&!m,"qoe.longrebuffer",function(){},
"timeout");
n=c.isSuspended();n=g.Xb(this.qa.Tj,"ad")&&!n;GR(this,this.I,n,!n,"qoe.start15s",function(){a.qa.lf("ad")},"ads_preroll_timeout");
n=this.qa.getVideoData();q=.5>d-this.C;t=n.isAd()&&p&&!m&&q;p=function(){var x=a.qa,y=x.ph.Ic();(!y||!x.videoData.isAd()||y.getVideoData().Ac!==x.getVideoData().Ac)&&x.videoData.Ce||x.qg("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+x.videoData.videoId)};
GR(this,this.Ga,t,!t,"ad.rebuftimeout",p,"skip_slow_ad");m=n.isAd()&&m&&vz(b.Eg(),d+5)&&q;GR(this,this.Ia,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");GR(this,this.Pa,g.FF(c)&&g.V(c,64)&&!h,e,"qoe.start15s",function(){},"timeout");
GR(this,this.W,!!f&&!f.mediaSource&&g.FF(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}};
FR.prototype.xd=function(a,b,c){b=this.Nb(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.qa.xd(new fC(a,b));this.u[a]=!0};
FR.prototype.Nb=function(a){a=Object.assign(this.qa.Nb(!0),a.Nb());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};
DR.prototype.reset=function(){this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1};
DR.prototype.Nb=function(){var a={},b=(0,g.R)();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.w(IR,g.I);g.k=IR.prototype;g.k.setMediaElement=function(a){g.hu(this.Ia);(this.mediaElement=a)?(GLa(this),HR(this)):KR(this)};
g.k.Wc=function(a){this.W.Wc(a);this.K("html5_exponential_memory_for_sticky")&&(a.state.Kc()?g.Fn(this.Y):this.Y.stop());if(this.mediaElement)if(8===a.Up.state&&GF(a.state)&&g.HF(a.state)){a=this.mediaElement.getCurrentTime();var b=this.mediaElement.Eg();var c=this.K("manifestless_post_live_ufph")||this.K("manifestless_post_live")?uz(b,Math.max(a-3.5,0)):uz(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1<b.length&&11>b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.Sa-c)||(this.qa.ra("seekover",{b:tz(b,
"_"),cmt:a}),this.Sa=c,this.seekTo(c,{Hr:!0,Ee:"playbacktimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&!this.videoData.kb&&0<this.videoData.limitedPlaybackDurationInSeconds&&rS(this.qa,this.getCurrentTime()+this.videoData.limitedPlaybackDurationInSeconds)};
g.k.getCurrentTime=function(){return!isNaN(this.j)&&isFinite(this.j)?this.j:this.mediaElement&&FLa(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.C||0};
g.k.Ui=function(){return this.getCurrentTime()-this.ud()};
g.k.Hk=function(){return this.u?this.u.Hk():Infinity};
g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return CR(this.u,a)};
g.k.Mn=function(){return!!this.u&&this.u.Mn()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.PR?!1:c.PR;var d=void 0===c.QR?0:c.QR,e=void 0===c.Hr?!1:c.Hr,f=void 0===c.TJ?0:c.TJ,h=void 0===c.Ee?"":c.Ee;if(void 0===c.Tq?0:c.Tq)a+=this.ud();if(c=!!(!this.K("html5_ssdai_skipad_seek_killswitch")&&a<this.ma&&this.Fa)){this.qa.ra("sdai",{skipad:0,t:a.toFixed(3),mt:(a-this.timestampOffset).toFixed(3),lstskp:this.ma.toFixed(3)});this.ma=NaN;this.timestampOffset-=1E3;var l;if(null!=(l=this.Fa)){xQ(l,l.timestampOffset-1E3);var m=l.j,n=new Set;
for(t in m.j){var p=m.j[t].index,q=p.yr();q&&!n.has(q)&&(q.startTime+=1E3,q.endTime=q.startTime+q.duration,n.add(q));p.segments.length&&(q=p.segments[p.segments.length-1],p.segments=[],p.segments.push(q))}l.J&&l.J.gJ()}}var t=a;(l=!isFinite(t)||(this.u?CR(this.u,t):t>=this.Gd())||!g.KD(this.videoData))||this.qa.ra("seeknotallowed",{st:t,mst:this.Gd()});if(!l)return this.B&&(this.B=null,NR(this)),Ug(this.getCurrentTime());if(.005>Math.abs(a-this.j)&&this.N)return this.D;h&&(t=a,(2<=this.U.V||this.K("html5_log_seek_reasons"))&&
this.qa.ra("seekreason",{reason:h,tgt:t}));this.N&&KR(this);this.D||(this.D=new tF);a&&!isFinite(a)&&JR(this,!1);if(h=!c)h=a,h=MR(this)&&!(this.mediaElement&&0<this.mediaElement.Pi()&&0<vF(this.mediaElement))||tD(this.videoData)&&this.getMinSeekableTime()===this.Gd(!1)?!1:isFinite(h)?!0:tD(this.videoData)?!1:!0;h&&(a=ELa(this,a,e));a&&!isFinite(a)&&JR(this,!1);this.C=a;this.Da=f;this.j=a;this.u&&(e=this.u,f=a,sLa(e,f,!1),tLa(e,f));e=this.qa;f=a;e.Xc.C=f;h=e.mx;h.mediaTime=f;h.j=!0;b&&JS(e);e.zn&&
f>e.videoData.endSeconds&&isFinite(f)&&CS(e);f<e.Gd()-.01&&(h=CF(e.playerState,2),g.V(h,8)&&(h=CF(h,4)),e.Rb(h));e.X("SEEK_TO",e,f);this.D&&(b?d&&this.Ga.start(d):(this.N=!0,yLa(this)));(b=this.qa.zn)&&a>b.start&&CS(this.qa);return this.D};
g.k.Gd=function(a){if(!this.videoData.isLivePlayback)return this.videoData.Gd();var b;if(!this.K("html5_linear_live_max_seekable_killswitch")&&aE(this.videoData)&&(null==(b=this.mediaElement)?0:b.Vm())&&this.videoData.j)return a=this.getCurrentTime(),Vxa(1E3*this.getIngestionTime(a))+a;if(tD(this.videoData)&&this.videoData.di&&this.videoData.j)return this.videoData.j.Gd()+this.timestampOffset;if(this.videoData.C&&this.videoData.C.j){if(!a&&this.u)return this.u.Hk();a=this.videoData.Gd();this.policy.j&&
this.mediaElement&&(a=Math.max(a,gza(this.mediaElement)));return a+this.timestampOffset}return this.mediaElement?Dq()?Vxa(this.mediaElement.vA().getTime()):vF(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.k.getMinSeekableTime=function(){var a=this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset;if(aE(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.ea=function(){LR(this,null);this.W.dispose();g.I.prototype.ea.call(this)};
g.k.Nb=function(){var a={};this.Fa&&Object.assign(a,this.Fa.Nb());this.mediaElement&&Object.assign(a,this.mediaElement.Nb());return a};
g.k.fl=function(a){var b=this;this.qa.ra("sdai",{skipad:1,t:a.toFixed(3)});this.ma=a;this.C=this.j=a+=1;NR(this).then(function(c){DLa(b,c)},function(){KR(b)})};
g.k.CI=function(a){this.timestampOffset=a};
g.k.getStreamTimeOffset=function(){return tD(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.k.ud=function(){return this.timestampOffset};
g.k.getIngestionTime=function(a){return this.videoData.j.getIngestionTime(a-this.timestampOffset)};
g.k.zr=function(){if(!this.mediaElement)return 0;if(LD(this.videoData)){var a=gza(this.mediaElement)+this.timestampOffset-this.getMinSeekableTime(),b=this.Gd()-this.getMinSeekableTime();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.zr()};
g.k.DC=function(a){this.I&&(this.I.j=a.audio.index)};
g.k.K=function(a){return this.U&&this.U.K(a)};OR.prototype.isFinished=function(){return this.finished};
OR.prototype.start=function(){this.started=!0};
OR.prototype.reset=function(){this.finished=this.started=!1};PR.prototype.encrypt=function(a){return(new HA(this.j.j)).encrypt(a,this.iv)};
PR.prototype.decrypt=function(a,b){return(new HA(this.j.j)).decrypt(a,b)};g.w(QR,g.I);g.k=QR.prototype;g.k.eh=function(a){var b;return!(null==(b=this.Ud.get(a))||!b.Fe.totalLength)};
g.k.gj=function(a){a=this.Ud.get(a);var b=a.Fe;a.MA+=b.totalLength;a.Fe=new kx;return b};
g.k.Kf=function(a){return this.Ud.get(a).Kf};
g.k.Gg=function(a){return this.Ud.get(a).Gg};
g.k.Xy=function(a){(a=this.Ud.get(a))&&!a.Gg&&(a.Gg=!0)};
g.k.ea=function(){g.I.prototype.ea.call(this);for(var a=g.r(this.Ud.keys()),b=a.next();!b.done;b=a.next())RR(this,b.value);this.Ud.clear()};UR.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.B(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.u=!0;b.Jj.Mc("omd_s");c=new Uint8Array(16);xA()?d=new GA(a):e=new HA(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ra(3);break}f=b.j.shift();if(!d){h=e.decrypt(px(f.buffer),c);m.Ra(4);break}return g.A(m,d.decrypt(px(f.buffer),c),5);case 5:h=m.u;case 4:l=h;for(var n=0;n<c.length;n++)if(255===c[n])c[n]=0;else{c[n]+=1;break}n=new kx([l]);$La(b.Jj.Bd,
f.JJ,n);m.Ra(2);break;case 3:b.Jj.Mc("omdf"),b.Jj.Mc("omd_c"),WR(b),b.u=!1,b.Jj.sI(),g.va(m)}})};
UR.prototype.enqueue=function(a,b,c){this.j.push({JJ:a,buffer:b,isEncrypted:c});this.u||WR(this)};var gMa=!!Uint8Array.prototype.copyWithin,YR=[],ZR=[],cMa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],aS=[],$R=[],cS=[],bS=[];var gS,rVa=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),d0={},zMa=(d0.a=1,d0.o=3,d0.meac3=5,d0.mac3=7,d0),e0={},yMa=(e0["1h"]=8,e0["9h"]=4,e0["1"]=8,e0["9"]=4,e0.h=2,e0),nMa=[["337","336","335"],["701","700"],["315","308","303","302"],["299","298"],["401","400","399","398"],["313","271","248","247","244"],["137","136"]],pMa=[["140"],["251"]],f0={},lMa=(f0["247"]=["317","273","318","280","279"],f0["136"]=["144","222","223","143","142"],f0["140"]=["149"],f0),g0={},kMa=(g0["398"]=
["397","396","395","394"],g0["247"]=["244","243","242"],g0["136"]=["135","134","133","160"],g0["251"]=["250"],g0),h0={},uMa=(h0["140"]={numChannels:2},h0["251"]={audioSampleRate:48E3,numChannels:2},h0),i0={},tMa=(i0["337"]={width:3840,height:2160,bitrate:3E7,fps:30},i0["336"]={width:2560,height:1440,bitrate:15E6,fps:30},i0["335"]={width:1920,height:1080,bitrate:75E5,fps:30},i0["701"]={width:3840,height:2160,bitrate:2E7,fps:30},i0["700"]={width:2560,height:1440,bitrate:1E7,fps:30},i0["315"]={width:3840,
height:2160,bitrate:2E7,fps:60},i0["308"]={width:2560,height:1440,bitrate:1E7,fps:60},i0["303"]={width:1920,height:1080,bitrate:5E6,fps:60},i0["302"]={width:1280,height:720,bitrate:25E5,fps:60},i0["299"]={width:1920,height:1080,bitrate:75E5,fps:60},i0["298"]={width:1280,height:720,bitrate:35E5,fps:60},i0["401"]={width:3840,height:2160,bitrate:15E6,fps:60},i0["400"]={width:2560,height:1440,bitrate:75E5,fps:60},i0["399"]={width:1920,height:1080,bitrate:2E6,fps:60},i0["398"]={width:1280,height:720,bitrate:1E6,
fps:60},i0["313"]={width:3840,height:2160,bitrate:8E6,fps:30},i0["271"]={width:2560,height:1440,bitrate:4E6,fps:30},i0["248"]={width:1920,height:1080,bitrate:2E6,fps:30},i0["247"]={width:1280,height:720,bitrate:15E5,fps:30},i0["137"]={width:1920,height:1080,bitrate:4E6,fps:30},i0["136"]={width:1280,height:720,bitrate:3E6,fps:30},i0),j0={},iMa=(j0["133"]=240,j0["134"]=360,j0["135"]=480,j0["136"]=720,j0["137"]=1080,j0["242"]=240,j0["243"]=360,j0["244"]=480,j0["247"]=720,j0["248"]=1080,j0["298"]=720,
j0["299"]=1080,j0["302"]=720,j0["303"]=1080,j0["395"]=240,j0["396"]=360,j0["397"]=480,j0["398"]=720,j0["399"]=1080,j0),k0={},sMa=(k0["1"]='video/mp4; codecs="av01.0.08M.08"',k0["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',k0["9"]='video/webm; codecs="vp9"',k0["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',k0.h='video/mp4; codecs="avc1.64001e"',k0.o='audio/webm; codecs="opus"',k0.a='audio/mp4; codecs="mp4a.40.2"',k0);g.k=vMa.prototype;g.k.sI=function(){this.Bd.sI()};
g.k.feed=function(a,b){var c=b.totalLength;switch(a){case 10:a=wC(b,ULa);var d=a.Q_,e=!1;switch(d){case 0:this.C=!a.xQ.bX;this.iv=a.xQ.iv;break;case 2:break;case 23:var f=this.Bd;a=a.xX;f.Mc("omp_r");a.videoId&&(f.Ds=a.videoId);f.Ds!==f.videoData.videoId&&(f.videoData.GS=f.Ds,f.ra("ompp","vid."+f.Ds));f.QH=!0;break;case 24:a=this.Bd;a.Mc("omp_c");a.QH=!1;a.Kv=!1;null!=(c=a.Yd||(null==(f=a.Bf)?void 0:f.get(a.Ds)))&&(c.j=!0);iS(a);break;default:e=!0}this.Bd.Yi&&this.Bd.ra("ombup","id.10;pt."+d+";len."+
b.totalLength+(e?";ignored.1":""));this.u=d;break;case 11:wMa(this,b);break;case 20:f=new qC(b);var h={QW:tC(f,1),videoId:vC(f,2),itag:tC(f,3),lmt:tC(f,4),xtags:vC(f,5),LA:tC(f,6),Wu:qwa(f,8),qD:tC(f,9),Qja:tC(f,10),startMs:tC(f,11),durationMs:tC(f,12),kC:tC(f,14)};var l=h.QW,m=h.itag,n=h.Wu;a=h.LA;c=h.qD;var p=h.startMs,q=h.durationMs;f=this.Bd.K("html5_onesie_ads");var t=h.videoId;f=((void 0===f?0:f)?(t||"")+";":"")+h.itag+";"+(h.lmt||0)+";"+(h.xtags||"");m=rVa.has(cz[""+m]);n&&this.Mc(m?"oais_r":
"ovis_r");n=void 0!==this.j[f];this.Bd.Yi&&this.Bd.ra("ombup","id.20;len."+b.totalLength+";hid."+l+";fid"+f);this.B[l]=f;n?(d=this.j[f].headers,d.push(h),h.kC&&2===d.length&&(b=this.Bd,d=d[0].kC+d[1].kC,e={LA:null!=a?a:-1,qD:null!=c?c:-1,startTimeMs:null!=p?p:-1,durationMs:null!=q?q:-1},null!=(a=VR(b,f))&&(c=a.Ud.get(f),c.Dk=d,e&&(0>=e.LA||0>=e.qD||0>=e.durationMs||0>e.startTimeMs?SR(a,f):c.fP.push(e))),iS(b))):(this.j[f]={lO:!1,Jn:m,headers:[h]},b=this.Bd,b.Bf?(e=f.split(";")[0],b.Bf.has(e)||(a=
new QR(b),b.Bf.set(e,a),g.J(b,a)),null==(d=b.Bf.get(e))||LLa(d,f,m)):null==(e=b.Yd)||LLa(e,f,m));break;case 21:xMa(this,b,!1);break;case 12:xMa(this,b,!0);break;case 22:this.Xy(b);break;case 37:b=wC(b,PLa);if(b.CF||b.oK)this.Bd.Cu=b;break;default:this.Bd.Yi&&this.Bd.ra("ombup","id."+a+";len."+c+";ignored.1")}};
g.k.Xy=function(a){var b=qx(a,0);this.Bd.Yi&&this.Bd.ra("ombup","id.22;len."+a.totalLength+";hid."+b);(a=this.B[b]||null)&&this.Bd.Xy(a);a&&(b=this.j[a],1===b.headers.length&&b.headers[0].kC||aMa(this.queue,a))};
g.k.yI=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,t,u;return g.B(function(x){switch(x.j){case 1:c.Bd.yI();d=px(a);if(!b){f=d;x.Ra(2);break}return g.A(x,HMa(c.Bd,d,c.iv),3);case 3:f=x.u;case 2:e=f;if(!c.Bd.enableCompression){x.Ra(4);break}return g.A(x,hMa(e),5);case 5:e=x.u,c.Bd.ra("decompression",{ds:"DecompressionStream"in window});case 4:try{h=wC(e,ZLa)}catch(y){return l=y instanceof Error?{name:y.name,message:y.message}:{},l.webcrypto=""+ +!!xA(),l.enc=""+ +c.C,m=new fC("onesie.response.parse",
l),x.return(Promise.reject(m))}if(1!==h.onesieProxyStatus)return n={st:h.onesieProxyStatus,webcrypto:""+ +!!xA(),textencoder:""+ +!!g.C.TextEncoder},p=new fC("onesie.response.badproxystatus",n),x.return(Promise.reject(p));if(200!==h.httpStatus)return q={st:h.httpStatus},t=new fC("onesie.response.badstatus",q),x.return(Promise.reject(t));u=g.wx(h.body);return x.return(u)}})};
g.k.Mc=function(a){this.Bd.Mc(a)};
g.k.Co=function(a){return this.Bd.Co(a)};jS.prototype.feed=function(a){for(lx(this.j,a);;){var b=0;b=g.r(EMa(this.j,b));a=b.next().value;b=b.next().value;b=g.r(EMa(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).Rs.split(c);c=b.Rs;this.callbacks.Jj.feed(a,b.eH);this.j=c}};
jS.prototype.dispose=function(){this.j=new kx};g.w(kS,g.I);g.k=kS.prototype;g.k.Mc=function(a){this.qa.Mc(a)};
g.k.Co=function(a){return this.qa.Co(a)};
g.k.mI=function(){this.Mc("orfb");this.bC=!0;if(IMa(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.Ik(),rt:(1E3*CIa(this.Im)).toFixed(),shost:g.Gh(this.Av),trigger:"o1"};this.ra("pathprobe",eC(a))}};
g.k.yI=function(){this.Mc("orpr");this.Mc("opr_r");this.nO=!0};
g.k.sI=function(){if(this.Bf)for(var a=g.r(this.Bf.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.Bf.get(b.value))||TR(c)}else null==(a=this.Yd)||TR(a)};
g.k.ra=function(a,b,c){this.qa.ra(a,b,void 0===c?!1:c)};
g.k.Xy=function(a){var b;null==(b=VR(this,a))||b.Xy(a)};
g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,t,u,x;return g.B(function(y){switch(y.j){case 1:a.zv.start();a.Mc("ogpd");a.Mc("or_i");if(b=FMa(a.videoData,a.Gp)){y.Ra(2);break}return g.A(y,GMa(a.videoData,a.Gp),3);case 3:b=y.u;case 2:if(!b)return a.logger.info("Onesie URL creation failed."),c={url:"0"},d=new fC("onesie.unavailable.hotconfig",c),a.fail(d),y.return(a.Lm);a.gR=ex(b);var z=a.playerRequest,D=a.U,H=a.videoData,G=sN(a.gR);G=void 0===G?!1:G;var L=D.Xh,aa="https://web.archive.org/web/20220603021303/https://youtubei.googleapis.com/youtubei/"+
L.innertubeApiVersion+"/player",M=g.WD(H);L.pH&&M||(aa=aa+"?key="+L.innertubeApiKey);L=[{name:"Content-Type",value:"application/json"}];M&&L.push({name:"Authorization",value:"Bearer "+M});L.push({name:"User-Agent",value:g.tb()});D.K("enable_web_eom_visitor_data")&&g.P("EOM_VISITOR_DATA")?L.push({name:"X-Goog-EOM-Visitor-Id",value:g.P("EOM_VISITOR_DATA")}):(H=H.visitorData||g.P("VISITOR_DATA"))&&L.push({name:"X-Goog-Visitor-Id",value:H});(H=g.Xz(D.experiments,"debug_sherlog_username"))&&L.push({name:"X-Youtube-Sherlog-Username",
value:H});z=JSON.stringify(z);xx?z=xx.encode(z):(H=new Uint8Array(Math.ceil(1.2*z.length)),M=yx(z,H),H.length<M&&(H=new Uint8Array(M),M=yx(z,H)),H.length>M&&(H=H.subarray(0,M)),z=H);D=D.K("html5_onesie_prefer_trusted_host");f={url:aa,httpHeaders:L,postBody:z,proxiedByTrustedBandaid:D&&G,skipResponseEncryption:D&&G};g.wa(y,4);if(!xA()||!a.K("html5_use_native_crypto_for_request")){L=a.U;z=a.videoData;H=a.qa.getPlayerSize();M=a.qa.getVisibilityState();G=a.bG.onesieUstreamerConfig;aa=null==(h=a.videoData.UL)?
void 0:h.aA;var sa=a.LC,za=EC(f,YLa);D={encryptedClientKey:sa.j.encryptedClientKey,serializeResponseAsJson:!0,enableAdPlacementsPreroll:L.K("html5_onesie_ads"),enableCompressionResponseOnly:BMa(L,!!f.skipResponseEncryption)};f.skipResponseEncryption?D.unencryptedOnesieInnertubeRequest=za:(za=sa.encrypt(za),D.encryptedOnesieInnertubeRequest=za,D.hmac=vva(new uva(sa.j.B),za,sa.iv),D.iv=sa.iv);L=AMa(L,z,H,M);e={qH:D,ZM:L,onesieUstreamerConfig:G,aA:aa};y.Ra(6);break}return g.A(y,DMa(f,a.LC,a.U,a.videoData,
a.qa.getPlayerSize(),a.qa.getVisibilityState(),a.bG.onesieUstreamerConfig,null==(l=a.videoData.UL)?void 0:l.aA),7);case 7:e=y.u;case 6:g.xa(y,5);break;case 4:return m=g.ya(y),a.logger.info("Failed to create OnesieRequestProto."),a.fail(m),y.return(a.Lm);case 5:return a.enableCompression=e.qH.enableCompressionResponseOnly,a.Mc("osor"),n=ZCa(a.U),p=EC(e,WLa),q={method:"POST",body:p,headers:{"Content-Type":"text/plain",Referer:location.origin}},t=a.K("html5_onesie_media_capabilities"),G=b,D=a.videoData,
aa=KMa(a),L=t,L=void 0===L?!1:L,G.set("ack","1"),G.set("cpn",D.clientPlaybackNonce),G.set("opr","1"),z=D.S(),z.K("html5_onesie_ads")||(G.set("oaad","0"),G.set("oavd","0")),G.set("por","1"),xA()||G.set("onem","1"),0<D.startSeconds&&z.K("html5_onesie_nonzero_playback_start")&&(G.set("osts",""+D.startSeconds),G.set("osbr","1"),G.set("osnz","1")),L||(aa?(D=aa.audio,G.set("pvi",aa.video.join(",")),G.set("pai",D.join(",")),Hw()||G.set("osh","1")):(G.set("oad","0"),G.set("ovd","0"),G.set("oaad","0"),G.set("oavd",
"0"))),a.Yi&&a.ra("ombrs","1"),u=a.qa.S().schedule,a.Im=new RP(a,{Wh:u,iG:a.Yi}),b.set("rn",""+a.Im.requestNumber),a.Av=cx(b),xIa(a.Im,a.Av),a.Mc("ocs"),a.Mc("or_p"),Hw()?Iw()?a.xhr=new QP(a.Av,n,a.Im,q):a.xhr=new ZP(a.Av,n,a.Im,q):a.xhr=new $P(a.Av,a.Im,q),a.oQ.start(),a.Yi&&(null==(x=a.Gp)?0:x.D)&&a.ra("ombhr",a.Gp.D),y.return(a.Lm)}})};
g.k.yv=function(){this.Mc("orh_r")};
g.k.rs=function(){!this.bC&&this.xhr.Ik()&&this.mI();this.Dp()};
g.k.cq=function(){this.Dp();if(!this.isDisposed()){var a=LMa(this),b=this.xhr;a.rc=b.status;if(b.rf()){var c="onesie.net";a.msg=b.rf()}else 400<=b.status?c="onesie.net.badstatus":b.oz()?this.nO||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.fail(new fC(c,a)):(this.Mc("orf"),this.Mc("or_fs"),zIa(this.Im,(0,g.R)(),b.Ik(),0),this.Yi&&this.ra("rqs",a));this.Yi&&this.ra("ombre","ok."+ +!c);this.Kv=!1;iS(this);hS(this.Jj);this.zv.stop();var d;
if(c=null==(d=this.Gp)?void 0:MFa(d))for(d=0;d<c.length;d++)this.ra("pathprobe",c[d])}};
g.k.K=function(a){return this.U.K(a)};
g.k.uX=function(){if(IMa(this)&&this.Gp&&(!this.bC||this.K("html5_onesie_probe_ec_hosts"))){var a=this.Gp;if(a.U.experiments.fb("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:ex(b.location);c&&rN(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:ex(d.location))&&rN(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:ex(e.location))&&rN(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:ex(c.location))&&rN(a,d,"o3",this)}}};
g.k.iO=function(){this.logger.info("Onesie request timed out");this.Kv=!1;if(!iS(this)){var a=LMa(this);a.timeout="1";this.fail(new fC("onesie.request",a))}};
g.k.fail=function(a){var b=this;a=hC(a);this.aC?this.qa.xd(a):(this.Lm.reject(a),this.aC=!0);hS(this.Jj);this.zv.stop();this.Mc("ore");this.Mc("or_fe");var c,d;null==(c=this.Gp)||null==(d=MFa(c))||d.forEach(function(e){b.ra("pathprobe",e)});
this.dispose()};
g.k.ea=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();hS(this.Jj);this.RR.dispose();g.I.prototype.ea.call(this)};
g.k.Dp=function(){try{var a=this.xhr;102400<a.Ik()&&!this.AO&&(this.Mc("or100k"),this.AO=!0);for(var b={};a.eh();){var c=a.gj();b.VD=c.totalLength;this.Yi&&this.ra("ombrss","len."+b.VD);this.RR.feed(c);b={VD:b.VD}}if(this.Bf)for(var d=g.r(this.Bf.keys()),e=d.next();!e.done;e=d.next())a=void 0,null==(a=this.Bf.get(e.value))||TR(a);else{var f;null==(f=this.Yd)||TR(f)}}catch(h){this.fail(h)}};var QMa=!1;g.w(g.qS,g.iu);g.k=g.qS.prototype;g.k.ea=function(){this.UQ();this.ZC.stop();window.clearInterval(this.SC);gGa(this.uf);this.visibility.unsubscribe("visibilitystatechange",this.uf);$Ka(this.logging);g.ze(this.logging);wS(this);g.Bn.zj(this.Cs);this.Kh();this.vf=null;g.ze(this.videoData);g.ze(this.Bk);g.Ae(this.OX);this.zn=null;g.iu.prototype.ea.call(this)};
g.k.pz=function(a){this.logging.pz(a)};
g.k.Hv=function(a,b,c,d){this.logging.Hv(a,b,c);this.K("html5_log_media_perf_info")&&this.ra("adloudness",{ld:d.toFixed(3),cpn:a})};
g.k.AG=function(){var a;return null==(a=this.Fa)?void 0:a.AG()};
g.k.BG=function(){var a;return null==(a=this.Fa)?void 0:a.BG()};
g.k.getVideoData=function(){return this.videoData};
g.k.S=function(){return this.U};
g.k.Cp=function(){return this.visibility};
g.k.Hd=function(){return this.mediaElement};
g.k.LF=function(){if(this.videoData.isLoaded()){var a=this.Bk;0<g.eA(a.j.experiments,"html5_player_min_build_cl")&&452150644<g.eA(a.j.experiments,"html5_player_min_build_cl")&&dKa(a,"oldplayer");fNa(this)}else this.videoData.ze||this.videoData.Bl?this.Yu&&g.oB(this.U)&&this.videoData.isLivePlayback||(this.videoData.ze?Hxa(this.videoData):(a=this.logging,a.qoe&&(a=a.qoe,fR(a,"protected"),a.j.videoData.V?a.jR():a.j.videoData.subscribe("dataloaded",a.jR,a)),Dxa(this.videoData))):!this.videoData.va&&
this.pV&&eNa(this)};
g.k.Lu=da(5);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.V(this.getPlayerState(),128)||(this.X("internalAbandon"),this.nJ(!0),$Ka(this.logging),g.ze(this.logging),g.Bn.zj(this.Cs));var a;null==(a=this.U.gi)||a.flush()};
g.k.Xs=function(){ZKa(this.logging)};
g.k.qg=function(a,b,c,d,e,f){var h,l;g.Qe(ZUa,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+$Ba());a={errorCode:a,errorDetail:e,errorMessage:l||g.BJ[h]||"",lG:h,Ck:f||"",MQ:d,mB:b};uS(this,"dataloaderror");this.Rb(AF(this.playerState,128,a));g.Bn.zj(this.Cs);wS(this);this.jo()};
g.k.lf=function(a){this.Tj=this.Tj.filter(function(b){return a!==b});
this.Yn.started&&vS(this)};
g.k.qm=function(){var a;(a=!!this.Tj.length)||(a=this.uh.j.j[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.Mn=function(){return this.Xc.Mn()};
g.k.Kc=function(){return this.playerState.Kc()};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.vf){var a=this.vf;a=a.videoData.xt.compose(a.videoData.RQ);a=Pw(a)}else a="auto";return a};
g.k.Vx=da(9);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.k.setMediaElement=function(a){if(this.mediaElement&&a.mf()===this.mediaElement.mf()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.hu(this.mw),this.mediaElement=a,rNa(this),this.Xc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Kh();if(!this.playerState.isError()){var b=CF(this.playerState,512);g.V(b,8)&&!g.V(b,2)&&(b=BF(b,1));a.isView()&&(b=CF(b,64));this.Rb(b)}this.mediaElement=a;this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);
rNa(this);this.Xc.setMediaElement(this.mediaElement);this.K("html5_prewarm_media_source")&&!this.Bk.By&&bza(this.mediaElement)}};
g.k.Kh=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(this.mediaElement){var c=this.getCurrentTime();0<c&&(this.Xc.C=c);this.Xc.setMediaElement(null);HS(this);this.Fa&&(g.Fn(this.Fa.W),IS(this,b));this.Wr.stop();if(this.mediaElement&&(!this.Yn.started||this.playerState.isError()||g.V(this.playerState,2)||this.Rb(BF(this.playerState,512)),this.mediaElement)){g.hu(this.mw);if(a||!this.mediaElement.isView())this.mediaElement.stopVideo(),MS(this);this.mediaElement=null}}};
g.k.playVideo=function(){var a=this,b,c,d,e,f;return g.B(function(h){if(1==h.j){if(!a.K("html5_clear_globalcache_killswitch")){var l=window.google_image_requests;l&&10<l.length&&(window.google_image_requests=l.slice(-10))}if(g.V(a.playerState,128))return h.return();if(a.Bk.fC())return a.X("signatureexpired"),h.return();a.mediaElement&&(l=a.logging,XQ(l.C),l.qoe&&hR(l.qoe));BS(a);g.V(a.playerState,64)&&a.Rb(BF(a.playerState,8));return a.Yn.isFinished()&&a.mediaElement?a.vf||!a.ez?h.Ra(2):g.A(h,a.ez,
2):h.return()}if(!a.videoData.C)return a.videoData.isLivePlayback&&!g.lA(a.U.u,!0)?(b="html5.unsupportedlive",c=2):(b=yD(a.videoData)?"fmt.unplayable":"fmt.noneavailable",c=1),g.Bu(Error("selectableFormats")),a.qg(b,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),h.return();if(a.eg()&&a.videoData.C.j)return h.return(tS(a));if(a.videoData.isLiveHeadPlayable){d=a.getCurrentTime()<a.getMinSeekableTime()-15;e=g.KD(a.videoData)&&g.V(a.playerState,4);(f=!a.K("html5_dompaused_unpause_killswitch")&&
g.V(a.playerState,1024))||!d&&!e||(e?a.seekTo(Infinity,{Ee:"videoplayer_unpauseLiveOnly"}):a.seekTo(a.getMinSeekableTime(),{Ee:"videoplayer_outOfWindow"}));!a.isAtLiveHead(void 0,!0)&&a.Mn()&&a.seekTo(Infinity,{Ee:"videoplayer_peggedToLive"});if(l=g.V(a.playerState,256)&&a.videoData.kb)l=a.Xc,l=l.N&&!isFinite(l.j);if(l)return a.Rb(DF(a.playerState,8,4)),h.return()}g.V(a.playerState,4)&&g.V(a.playerState,16)&&a.Rb(DF(a.playerState,9,4));if(oS(a))return wNa(a),h.return();LS(a);g.va(h)})};
g.k.qp=function(){if(!this.vf)return[];var a=iKa(this.ih,this.vf,this.Ju());return this.vf.j.qp(a)};
g.k.Ju=function(){var a=this.me?this.me.Ju():wD(this.videoData)&&this.videoData.j&&Xw(this.videoData.j)?this.videoData.Th?lD:SJa:lD;this.hJ&&(a=a.compose(GUa));return a};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?Pw(this.videoData.xt):Ow[Tz()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a){this.videoData.Ye!==a&&(this.ra("toggle51",{pref:a}),this.videoData.Ye=a,g.Zu("yt-player-audio51",a,2592E3),SQ(this))};
g.k.getUserAudio51Preference=function(){var a;return null!=(a=g.$u("yt-player-audio51"))?a:1};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(lNa(this)){var a=nNa(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.Br=function(){return this.mediaSource};
g.k.wv=function(a){this.Bv.set(a.initData,a);this.me&&(this.me.wv(a),this.K("html5_eme_loader_sync")||this.Bv.remove(a.initData))};
g.k.DI=function(a){this.videoData.Wj=g.Mw("auto",a,!1,"u");nS(this)};
g.k.DC=function(a){ES(this,a.reason,a.video.info,a.audio.info);this.Xc.DC(a)};
g.k.EC=function(a){this.X("localmediachange",a)};
g.k.ew=function(){var a;null==(a=this.Fa)||a.ew(this.U)};
g.k.fC=function(){return this.Bk.fC()};
g.k.handleError=function(a){this.Bk.handleError(a)};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.V(this.playerState,64)||g.V(this.playerState,2))&&!a)if(g.V(this.playerState,8))this.Rb(DF(this.playerState,4,8));else return;g.V(this.playerState,128)||(a?this.Rb(BF(this.playerState,256)):this.Rb(DF(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.KD(this.videoData)&&this.Fa&&IS(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.Fa&&(IS(this,!1),this.Fa.Si())};
g.k.jo=function(a){a=void 0===a?!1:a;var b;null==(b=this.mediaElement)||b.stopVideo();MS(this);wS(this);g.V(this.playerState,128)||(a?this.Rb(CF(CF(BF(this.playerState,4),8),16)):this.Rb(AF(this.playerState)));this.videoData.videoId&&this.U.W.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;g.V(this.playerState,2)&&oS(this);if(this.jd){var c=this.jd;isFinite(a)&&a<c.qa.Hk()?c.isLiveNow=!1:c.isLiveNow=!0}this.Xc.seekTo(a,b);this.K("html5_cuerange_synconseek_killswitch")||this.uh.Kl()};
g.k.getCurrentTime=function(){return this.Xc.getCurrentTime()};
g.k.Ui=function(){return this.Xc.Ui()};
g.k.Hk=function(){return this.Xc.Hk()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.ud())};
g.k.Ku=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.Ku());return 0<=a?a:this.getCurrentTime()};
g.k.getIngestionTime=function(){var a;return(null==(a=this.videoData.j)?0:a.getIngestionTime)?this.videoData.j.getIngestionTime(this.getCurrentTime()-this.ud()):this.K("html5_disable_limit_ingestion_tvos")&&!Dq()||!this.mediaElement||!(a=this.mediaElement.vA())||(a=a.getTime(),isNaN(a))?NaN:a/1E3+this.getCurrentTime()};
g.k.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.ud():this.Gd()?this.Gd():0};
g.k.MB=function(){var a=new dLa;if(this.Fa){var b=this.U.schedule;a.j=b.V;a.C=b.Y;a.bandwidthEstimate=PA(b);a.u={d:NA(b).toFixed(2),st:(1E9*(b.j.Dh()||0)).toFixed(2),bw:b.B.Dh().toFixed(0),abw:b.I.Dh().toFixed(0),v50:LA(b.u,.5).toFixed(2),v92:LA(b.u,.92).toFixed(2),v96:LA(b.u,.96).toFixed(2),v98:LA(b.u,.98).toFixed(2)};b=this.Fa;if(b.mediaSource&&!b.mediaSource.Kf()&&(a.Xq=LP(b.videoTrack,b.currentTime),a.B=LP(b.audioTrack,b.currentTime),b.policy.Ib)){var c=KP(b.videoTrack),d=KP(b.audioTrack),e=tz(b.mediaSource.u.ag(),
"_",5),f=tz(b.mediaSource.j.ag(),"_",5);Object.assign(a.u,{lvq:c,laq:d,lvb:e,lab:f})}a.bandwidthEstimate=KO(b.N)}else this.mediaElement&&(a.Xq=wF(this.mediaElement));a.D=this.isAtLiveHead()&&this.Kc()?mS(this):NaN;return a};
g.k.zr=function(){return this.mediaElement?g.KD(this.videoData)?1:LD(this.videoData)?this.isAtLiveHead()||this.Mn()?1:this.Xc.zr():this.mediaElement.zr():0};
g.k.Nb=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.logging.Nb());this.mediaElement&&(Object.assign(b,this.mediaElement.Nb()),Object.assign(b,this.ey()));this.Fa&&Object.assign(b,this.Fa.Nb());this.me&&(b.drm=JSON.stringify(this.me.Nb()));b.state=this.playerState.state.toString(16);g.V(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.getData()));this.qm()&&(b.prerolls=this.Tj.join(","));this.videoData.rl&&(b.ismb=this.videoData.rl);"UNKNOWN"!==this.videoData.latencyClass&&
(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.ph.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&Qz(this.videoData.j)&&(b.segduration=Qz(this.videoData.j)),a=this.Xc,b.lat=a.I?NGa(a.I.C):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Me.toFixed(3);if(a=g.DS(this))b.optimal_format=a.video.qualityLabel;
b.user_qual=Tz();b.release_version="youtube.player.web_20220531_01_RC00"}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.hx([a])};
g.k.removeCueRange=function(a){this.uh.Pg([a])};
g.k.Hx=function(a,b){return this.uh.Hx(a,b)};
g.k.hx=function(a,b){this.uh.Vd(a,b)};
g.k.gD=function(a){this.uh.Pg(a)};
g.k.Ek=function(){return this.uh.Ek()||[]};
g.k.eg=function(){return this.visibility.eg()};
g.k.kq=function(){this.mediaElement&&this.mediaElement.kq()};
g.k.G_=function(){uS(this)};
g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.k.FI=function(a){var b=a.target.dg();if(this.mediaElement&&this.mediaElement.dg()&&this.mediaElement.dg()===b){zNa(this,a.type);switch(a.type){case "error":var c=yF(this.mediaElement)||"";if("capability.changed"===c){tS(this);return}if(0<this.mediaElement.wk()&&TQ(this.Bk,c,{msg:this.mediaElement.rf()}))return;if(this.isBackground()&&4===this.mediaElement.wk()){this.jo();xS(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.mediaSource||0<
c)&&1!==c&&this.bl(c);break;case "ratechange":this.Fa&&this.Fa.setPlaybackRate(this.mediaElement.getPlaybackRate());c=this.uh;c.started=!0;c.Kl();this.logging.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":BNa(this);this.X("onLoadedMetadata");sNa(this);break;case "loadstart":sNa(this);break;case "progress":case "suspend":this.Sb();this.X("onLoadProgress",this,this.zr());break;case "playing":OI(this.zb,"plev");this.kJ&&(this.kJ=!1,this.isAtLiveHead()||this.seekTo(Infinity,
{Ee:"videoplayer_onPlaying"}));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();var d=this.mediaElement&&0===this.mediaElement.Pi();if(c&&(!this.zC||d))return;this.zC=this.zC||!!this.mediaElement.getCurrentTime();KS(this);this.Sb();if(!this.mediaElement||this.mediaElement.dg()!==b)return;this.X("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.mediaElement.Cr().length&&0===this.mediaElement.Eg().length&&0<this.mediaElement.getCurrentTime()&&
5>this.mediaElement.getCurrentTime()&&this.Fa)return;break;case "resize":BNa(this);this.videoData.B&&"auto"===this.videoData.B.video.quality&&this.X("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.FM&&g.V(this.playerState,8)&&!g.V(this.playerState,1024)&&0===this.getCurrentTime()&&g.Ir){xS(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.dg()===b){this.X("videoelementevent",a);b=this.playerState;if(!g.V(b,128)){c=this.mx;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.Gg()||1<f&&1.1>Math.abs(f-e.getDuration()),l="pause"===a.type&&e.Gg();f="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.V(b,4)&&!xR(c,f);if(l||h&&f)0<e.GB()&&e.dg()&&(d=14);else switch(a.type){case "error":yF(e)&&(d|=128);break;case "pause":g.V(b,256)?(d^=256)||(d=64):g.V(b,32)||g.V(b,2)||g.V(b,4)||(d=4,g.V(b,1)&&g.V(b,8)&&(d|=1));break;case "playing":d=(d|8)&-1093;xR(c,e.getCurrentTime())&&
(d&=-2);g.V(b,1)&&yR(c,e.getCurrentTime(),(0,g.R)(),wF(e))&&(d|=1);break;case "seeking":d|=16;g.V(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.V(b,2)||(d|=1);yR(c,e.getCurrentTime(),(0,g.R)(),wF(e));break;case "timeupdate":h=g.V(b,16),l=g.V(b,4),(g.V(b,8)||h)&&!l&&xR(c,e.getCurrentTime())&&(d=8),yR(c,e.getCurrentTime(),(0,g.R)(),wF(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,e=yF(d),h=1,e?("capability.changed"===e&&(h=2),l="GENERIC_WITHOUT_LINK",f=d.Nb(),f.mediaElem="1",/AUDIO_RENDERER/.test(d.rf())&&
(l="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.BJ[l]||"",lG:l,MQ:eC(f),mB:h}):d=null);b=AF(b,c,d)}!g.V(this.playerState,1)&&g.V(b,1)&&NS(this,"evt"+a.type);this.Rb(b)}}};
g.k.eY=function(a){a="available"===a.j.availability;a!==this.uy&&(this.uy=a,this.X("airplayavailabilitychange"))};
g.k.fY=function(){var a=(0,g.R)(),b=this.mediaElement.eg();this.ra("airplay",{ia:b});if(!this.K("html5_ignore_inactive_airplay_killswitch")&&b||isNaN(this.hC)||!(2E3>a-this.hC))this.hC=a,b!==this.eg()&&(a=this.visibility,a.j!==b&&(a.j=b,a.uf()),this.ra("airplay",{rbld:b}),SQ(this)),this.X("airplayactivechange")};
g.k.jy=function(a){if(this.Fa){var b=this.Fa,c=b.B,d=b.currentTime,e=Date.now()-c.V;c.V=NaN;c.ra("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.D)&&kHa(c,d,c.D,c.C);UO(c,4,"adf");g.Fn(b.W)}};
g.k.Sb=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){ALa(this.Xc,this.Kc());var c=this.getCurrentTime();this.Fa&&(g.V(this.playerState,4)&&g.KD(this.videoData)||kJa(this.Fa,c));5<c&&(this.Xc.C=c);var d=g.or();d?g.Bn.zj(this.Cs):g.mq(this.Cs);var e=this.mediaElement.Vm();if((g.HF(this.playerState)||!e||aE(this.videoData))&&!g.V(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.V(b.playerState,128)){dC(b.U)&&g.eA(b.U.experiments,"html5_log_rebuffer_events")&&
zNa(b,"pfx");var h=b.getCurrentTime(),l=wF(b.mediaElement),m=g.V(b.playerState,8),n=xR(b.mx,h),p=yR(b.mx,h,(0,g.R)(),l);m&&n?b.Rb(CF(b.playerState,1)):m&&p?(m=b.getDuration(),n=b.videoData.isLivePlayback,(b.K("html5_set_ended_in_pfx_live")||!n)&&m&&1.1>Math.abs(m-h)?(b.ra("setended",{ct:h,bh:l,dur:m,live:n}),n&&b.K("html5_set_ended_in_pfx_live_cfl")||(b.mediaElement.Ar()?b.seekTo(0,{Ee:"videoplayer_loop"}):HN(b))):(g.HF(b.playerState)||NS(b,"progress_fix"),b.Rb(BF(b.playerState,1)))):(m&&!n&&!p&&
0<h&&(m=(Date.now()-b.By)/1E3,n=b.getDuration(),h>n-1&&b.ra("misspg",{t:h.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),g.V(b.playerState,4)&&g.HF(b.playerState)&&5<wF(b.mediaElement)&&b.Rb(CF(b.playerState,1)));b.Sb()}};
0===this.mediaElement.Cr().length?this.Cs=d?g.Bn.Yg(f,100):g.kq(f,100):this.Cs=d?g.Bn.Yg(f,500):g.kq(f,500)}this.videoData.Tw=c;!a&&this.Kc()&&vNa(this);pKa(this.ih,this.vf,this.Hd(),this.isBackground())&&nS(this);qKa(this.ih,this.videoData.B)&&(this.logging.xd("qoe.restart","droprate."+this.ih.J),gva(this.U.u),SQ(this));this.X("progresssync",this,a);!this.K("html5_progress_event_linear_paused_killswitch")&&e&&aE(this.videoData)&&this.X("onVideoProgress",this,this.getCurrentTime())}};
g.k.mW=function(){this.qg("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.Sx=function(){return this.logging.Sx()};
g.k.xG=function(){return this.Fa?this.Fa.xG():PA(this.U.schedule,!0)};
g.k.tV=function(){g.HF(this.playerState)&&nKa(this.ih,this.vf)&&nS(this)};
g.k.Rb=function(a){if(!g.EF(this.playerState,a)){var b=new g.TE(a,this.playerState);this.playerState=a;ANa(this);var c=!this.UC.length;this.UC.push(b);var d=this.mediaElement&&this.mediaElement.Hg();if(g.VE(b,1)&&!g.V(b.Up,16)&&!d&&g.V(this.playerState,8)&&!g.V(this.playerState,64)&&this.Fa){d=this.Fa;d.bv=!0;if(d.policy.Ze&&d.J){var e={rebuf:d.bv,ct:d.currentTime.toFixed(3)},f=d.u;f.V&&(e.ccr=f.V);f.C&&(e.sq=f.C.info.j[0].Ka,e.itag=f.C.info.j[0].j.info.id,e.mt=f.C.info.j[0].B.toFixed(3),e.st=f.C.state,
(f=f.C.lastError)&&(e.err=f));d.ra("sdai",e)}this.mediaElement&&5<=wF(this.mediaElement)&&((d=g.eA(this.U.experiments,"html5_non_network_rebuffer_duration_ms"))?this.wP.start(d):nKa(this.ih,this.vf)&&nS(this))}(d=g.eA(this.U.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.V(a,1)&&(g.V(a,8)||g.V(a,16))?this.oF.start(d):this.oF.stop();(0>UE(b,8)||g.VE(b,1024))&&this.Wr.stop();!g.VE(b,8)||this.videoData.kb||g.V(b.state,1024)||this.Wr.start();g.V(b.state,8)&&0>UE(b,16)&&!g.V(b.state,32)&&
!g.V(b.state,2)&&this.playVideo();g.V(b.state,2)&&LD(this.videoData)&&(this.bl(this.getCurrentTime()),this.Sb(!0));g.VE(b,2)&&this.nJ(!0);g.VE(b,128)&&this.jo();this.videoData.j&&this.videoData.isLivePlayback&&!this.YR&&(0>UE(b,8)?(a=this.videoData.j,a.B&&a.B.stop()):g.VE(b,8)&&this.videoData.j.resume());this.Xc.Wc(b);this.logging.Wc(b);if(c&&!this.isDisposed())try{for(var h=g.r(this.UC),l=h.next();!l.done;l=h.next()){var m=l.value;this.uh.Wc(m);this.X("statechange",m)}}finally{this.UC.length=0}}};
g.k.Uy=function(){this.videoData.isLivePlayback||this.X("connectionissue")};
g.k.zI=function(){this.zb.tick("qoes")};
g.k.CC=function(a,b,c,d){a:{var e=this.Bk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=gC(b);"drm.keyerror"===a&&this.me&&1<this.me.u.keys.length&&96>e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())fKa(e,a);else{if(e.qa.qg(a,b,d,c),ZJa(e,{detail:c}))break a}else e.xd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.ra("retrydrm",{sessionLimitExhausted:1}),e.D++,yNa(e.qa))}};
g.k.VY=function(){var a=this,b=g.eA(this.U.experiments,"html5_license_constraint_delay"),c=Mq();b&&c?(b=new g.K(function(){zS(a);uS(a)},b),g.J(this,b),b.start()):(zS(this),uS(this))};
g.k.Wy=function(a){this.X("heartbeatparams",a)};
g.k.aq=function(a){this.ra("keystatuses",EQ(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=IJa(b,c);d=DQ(a)?FQ(a,d):a.D.includes(d)}else{a:{b=IJa(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.Y&&d;c&&!b?fKa(this.Bk):d||FQ(a,"AUDIO")&&FQ(a,"SD")||(a=EQ(a),this.hJ?(this.X("drmoutputrestricted"),
this.K("html5_report_fatal_drm_restricted_error_killswitch")||this.qg("drm.keyerror",2,void 0,"info."+a)):(this.hJ=!0,this.xd(new fC("qoe.restart",Object.assign({},{retrydrm:1},a))),AS(this),yNa(this)))};
g.k.YY=function(){if(!this.videoData.kb&&this.mediaElement&&!this.isBackground()){var a="0";0<this.mediaElement.Pi()&&5<=wF(this.mediaElement)&&this.videoData.C&&this.videoData.C.j&&(this.Rb(BF(this.playerState,1)),NS(this,"load_soft_timeout"),this.X("playbackstalledatstart"),a="1");ANa(this);if(this.K("html5_new_video_qoe_restart_info_killswitch"))a={restartmsg:a},this.qm()&&(a.prerolls=this.Tj.join(",")),this.Fa&&Object.assign(a,this.Fa.Nb()),this.mediaElement&&Object.assign(a,this.mediaElement.Nb());
else{var b=this.videoData.C;a={restartmsg:a,mfmt:wD(this.videoData)?"0":"1",mdrm:b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].Wd&&!this.me?"1":"0",mfmtinfo:this.videoData.B?"0":"1",prerolls:this.qm()?this.Tj.join(","):"0"};if(this.me){b=a;var c=this.me;if(0>=c.u.size){var d="ns;";c.V||(d+="nr;");c=d+="ql."+c.B.length}else c=EQ(c.u.values().next().value),c=eC(c);b.drmp=c}var e;Object.assign(a,(null==(e=this.Fa)?void 0:e.Nb())||{});var f;Object.assign(a,(null==(f=this.mediaElement)?void 0:
f.Nb())||{})}this.logging.xd("qoe.start15s",eC(a));this.X("loadsofttimeout")}};
g.k.bl=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,uS(this))};
g.k.nJ=function(a){var b=this;a=void 0===a?!1:a;if(!this.JA){Cw("att_s","player_att")||Dw("att_s",void 0,"player_att");var c=new g.nCa(this.videoData);if("c1a"in c.j&&!g.gI.isInitialized()&&(Dw("att_wb",void 0,"player_att"),2===this.zF&&.01>Math.random()&&g.Bu(Error("Botguard not available after 2 attempts")),!a&&5>this.zF)){g.Fn(this.AF);this.zF++;return}if("c1b"in c.j){var d=bLa(this.logging);d&&qCa(c).then(function(e){e&&!b.JA&&d?(Dw("att_f",void 0,"player_att"),d(e),b.JA=!0):Dw("att_e",void 0,
"player_att")},function(){Dw("att_e",void 0,"player_att")})}else(a=g.oCa(c))?(Dw("att_f",void 0,"player_att"),aLa(this.logging,a),this.JA=!0):Dw("att_e",void 0,"player_att")}};
g.k.Gd=function(a){return this.Xc.Gd(void 0===a?!1:a)};
g.k.getMinSeekableTime=function(){return this.Xc.getMinSeekableTime()};
g.k.ud=function(){return this.Xc?this.Xc.ud():0};
g.k.getStreamTimeOffset=function(){return this.Xc?this.Xc.getStreamTimeOffset():0};
g.k.En=function(){var a=0;this.U.K("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.ud():this.getStreamTimeOffset());return a};
g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&VQ(this.ih,null==(b=this.videoData.C)?void 0:b.videoInfos)&&(this.ih.setPlaybackRate(a),AS(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=QE(this);b&&0<b.videoHeight&&(a=Zy(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.B&&this.videoData.B.video&&this.videoData.B.video.isHdr())};
g.k.hw=function(){this.logging.hw()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.logging;c.j?(c=pR(c.j,"engage"),c.V=a,c.send(b)):b&&b()};
g.k.ri=function(a){return this.logging.ri(a)};
g.k.isAtLiveHead=function(a,b){return this.videoData.isLiveHeadPlayable&&(this.kO||(void 0===b?0:b))?this.Xc.isAtLiveHead(a):!1};
g.k.wp=function(){var a=this.Gd(),b=this.getCurrentTime(),c;(c=!this.videoData.isLiveHeadPlayable)||(c=this.Xc,c=!(c.u&&c.u.B));return c||this.Mn()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.Wk=da(13);g.k.Zp=da(34);g.k.Yp=da(37);g.k.ey=function(){return this.mediaElement?this.mediaElement.wA():{}};
g.k.setLoop=function(a){this.loop=a;this.mediaElement&&this.mediaElement.setLoop(a)};
g.k.Ar=function(){return this.mediaElement?this.mediaElement.Ar():this.loop};
g.k.CI=function(a){this.ra("timestamp",{t:a.toString()});this.Xc.CI(a)};
g.k.Mc=function(a){this.zb.tick(a)};
g.k.Co=function(a){return this.zb.Co(a)};
g.k.ra=function(a,b,c){this.logging.ra(a,b,void 0===c?!1:c)};
g.k.YI=function(a,b,c){this.logging.ra(a,b,void 0===c?!1:c)};
g.k.xd=function(a){this.logging.xd(a.errorCode,eC(a.details))};
g.k.qz=function(a,b,c){this.logging.qz(a,b,c)};
g.k.getPlayerSize=function(){return this.Iz.getPlayerSize()};
g.k.xi=function(){return this.Iz.xi()};
g.k.Ti=function(){return this.zb};
g.k.K=function(a){return this.U.K(a)};
g.k.yF=function(){if(BD(this.videoData,"html5_set_debugging_opt_in")){var a=g.cr.getInstance();if(!g.dr(0,183)){var b="f"+(Math.floor(183/31)+1),c=Lna(b)||0;c|=268435456;0==c?delete br[b]:(c=c.toString(16),br[b]=c.toString());a.save()}}};
g.k.UQ=function(){if(g.FF(this.playerState)){var a=pS.CN();0!==Object.keys(a).length&&this.logging.ra("profile",a)}this.ZC.start()};
g.k.fl=function(){var a=this.getCurrentTime(),b=a-this.ud(),c=this.mediaElement?xz(this.mediaElement.Eg()):0;c=Math.floor(Math.max(c-b,0))+100;var d;return(null==(d=this.Fa)?0:d.fl(b,c))?(this.ra("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),this.Xc.fl(a),!0):!1};
g.k.LG=function(){return this.U.Me||""};
g.k.Fh=function(){return this.videoData.videoId};
g.k.Nu=function(a){return this.Fa?this.Fa.Nu(a):""};
g.k.JB=function(){return this.ph.us};g.w(g.QS,g.I);g.QS.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Ra(a),e=l0[d];if(e){try{e.dispose()}catch(h){g.S(h)}l0[d]=null}var f=new g.QS(a,b,c);g.Be(f,function(){l0[d]=null;f.SR&&f.SR()});
return l0[d]=f}catch(h){throw g.S(h),h.stack;}};
g.k=g.QS.prototype;g.k.Cp=function(){return this.visibility};
g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.im=function(){this.rH||(this.rH=g.cI(XF(),XBa()));return this.rH};
g.k.isVideoInfoVisible=function(){return!(!this.nk||!this.nk.ob)};
g.k.Kh=function(){if(this.mediaElement){this.pw&&(this.events.vc(this.pw),this.pw=null);g.hu(this.Qp);this.Db&&this.Db.Kh(!0);this.template.Kh();if(this.K("html5_use_async_stopVideo"))this.mediaElement.dispose();else try{this.mediaElement.hD()}catch(a){}this.mediaElement=null}};
g.k.Ic=function(){return this.Db};
g.k.ao=function(){this.Db!==this.rb&&IN(this,this.rb)};
g.k.Yo=function(a,b,c){var d=this,e=this.zb;2===a&&(e=new NI(this.U));return new g.qS(this.U,a,e,this.template,function(f){return d.Zn.X.apply(d.Zn,[f].concat(g.v(g.Ea.apply(1,arguments))))},function(){return d.Oa.getVisibilityState()},this.visibility,this,b,c)};
g.k.setIsExternalPlaylist=function(a){this.Ah=Qq(!1,a)};
g.k.kY=function(){RS(this)||this.Km(5)};
g.k.uZ=function(a){RS(this)||(gOa(this),g.FF(a.getPlayerState())&&this.playVideo())};
g.k.canPlayType=function(a){return mz(a)};
g.k.S=function(){return this.U};
g.k.getVideoData=function(){return this.Db.getVideoData()};
g.k.by=da(7);g.k.fd=function(){return this.rb.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.KI(this,a);return a?g.YD(a.getVideoData())?1:(a=a.Hd())?a.zr():0:0};
g.k.Ya=function(){return this.template};
g.k.ib=function(){return this.yc};
g.k.Ti=function(){return this.zb};
g.k.Sv=function(a){var b=g.KI(this,1);b&&HN(b,a)};
g.k.Vi=function(){var a=this.yc.OG();a.fs=this.Oa.isFullscreen();a.volume=Math.round(this.Oa.getVolume());a.muted=this.Oa.isMuted()?1:0;a.mos=a.muted;if(this.U.K("html5_enable_embedded_player_visibility_signals")&&g.YA(this.U)){if(this.pK){var b=this.pK;b=null==b.j?null:Math.round(100*b.j)/100;null!=b&&(a.inview=b)}b=this.template.getPlayerSize();if(0<b.height&&0<b.width){b=[Math.round(b.width),Math.round(b.height)];var c=g.wB();1<c&&b.push(c);a.size=b.join(":")}}this.Db===this.rb&&this.tb&&(a.clipid=
this.tb.postId);return a};
g.k.f0=function(){ACa(this.getVideoData(),this.U,this.im())};
g.k.addBgVersionChangeCallback=function(a){jI.push(a)};
g.k.Vj=function(a){1===a&&(this.zb.tick("vr"),this.rq||(this.rq=ys(uUa,this.JP,this)),tNa(this.Db),PCa(this.zb,this.Db.getVideoData(),fOa(this)),this.yc.dB());var b=this.U;($B(b)&&b.B||g.fB(b))&&(this.Ce()||this.Oa.La("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.Db===this.rb&&this.Db.Ar()!==a&&(this.Db.setLoop(a),this.Oa.La("onLoopChange",a))};
g.k.getLoopVideo=function(){return this.Db.Ar()};
g.k.setLoopRange=function(a){var b=!1;!!this.tb!==!!a?b=!0:this.tb&&a&&(b=this.tb.startTimeMs!==a.startTimeMs||this.tb.endTimeMs!==a.endTimeMs||this.tb.postId!==a.postId||this.tb.type!==a.type);b&&(this.rb.uh.Df("applooprange"),a?(b=new g.Av(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.rb.addCueRange(b)):this.fd().clipConfig=void 0,this.tb=a,this.Oa.La("onLoopRangeChange",a||void 0),this.Db===this.rb&&(this.pD(),this.Db.Xs()))};
g.k.getLoopRange=function(){return this.tb};
g.k.pD=function(){this.tb&&this.Db===this.rb&&(VNa(this,this.rb.getCurrentTime())?this.tb.loopCount=0:WNa(this))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=LNa(this,a),this.rb.getPlaybackRate()!==a&&(this.rb.setPlaybackRate(a),b&&!this.U.j&&g.Zu("yt-player-playback-rate",a),this.Oa.La("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return EI(this.yc).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.KI(this):g.KI(this,a);if(!a)return 0;if(b){if(c&&this.Id&&(b=this.Id.Sa/1E3,0!==b))return b;a=XS(this,a);return hT(this,a.getCurrentTime(),a)}c&&this.Id?(b=this.Id,a=a.getCurrentTime(),MN(b)?(b=WN(b,1E3*a))&&b.Oo&&(a-=b.Oo):(b=nGa(b,1E3*a))&&(a-=b.start/1E3)):a=a.getCurrentTime();return a};
g.k.Ku=function(){var a=g.KI(this);if(!a)return 0;a=XS(this,a);return hT(this,a.Ku(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai;a=d?g.KI(this):g.KI(this,a);if(!a)return 0;if(this.K("enable_linear_player_handling")&&c.hasProgressBarBoundaries()&&!d){var e,f=Number(null==(e=c.progressBarStartPosition)?void 0:e.utcTimeMillis),h;c=Number(null==(h=c.progressBarEndPosition)?void 0:h.utcTimeMillis);if(!isNaN(f)&&!isNaN(c))return(c-f)/1E3}if(b)return b=WS(this,a),hT(this,b.getDuration(),b);d&&this.Id?(b=this.Id,d=a.getCurrentTime(),
b=MN(b)?b.N?b.N.durationMs/1E3:0:(b=WN(b,1E3*d))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.k.getMinSeekableTime=function(a){a=g.KI(this,a);if(!a)return 0;a=WS(this,a);return hT(this,a.getMinSeekableTime(),a)};
g.k.getIngestionTime=function(a){var b=g.KI(this,a);return b?this.Ce(b)?(b=WS(this,b),b.getIngestionTime()-b.getCurrentTime()+this.getCurrentTime(a)):b.getIngestionTime():0};
g.k.cG=function(){this.template.cG();var a=this.G;a.element=this.template.element;var b=a.element,c;for(c in a.u)a.u.hasOwnProperty(c)&&(b[c]=a.u[c]);(a=eu(this.template.element))&&this.events.P(this.template,a,this.onFullscreenChange);this.events.P(window,"resize",this.QZ)};
g.k.getDebugText=function(a){var b=this.rb.Nb(a);if(this.Db&&this.Db!==this.rb){for(var c=this.Db.Nb(a),d=g.r(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=Sca("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.rg("video-ads");f?(lOa(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.rg("videoAdUiSkipContainer"),l=g.rg("ytp-ad-skip-button-container"),m=h||l;m?(lOa(m,f),f.ima=h?1:0,f.bulleit=l?1:0):f.missing=1;d=JSON.stringify({player:d,
videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(0===+eg(this.mediaElement.getSize())),b.op=this.mediaElement.getStyle("opacity"),c=this.mediaElement.zp().y+this.mediaElement.getSize().height,b.yof=""+(0>=+c),b.dis=this.mediaElement.getStyle("display"));(a=a?(0,g.gR)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Oa.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.S().experiments.experimentIds.join(", ")},b=this.xb().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(RS(this))return 3;var b;return a&&(null==(b=this.Id)?0:b.isAdPlaying(this.getCurrentTime()))?2:g.KI(this).getPlayerType()};
g.k.xb=function(a){return 3===this.getPresentingPlayerType()?EI(this.yc).Rd:g.KI(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.FI=function(a){switch(a.type){case "loadedmetadata":OI(this.zb,"fvb");OI(this.zb,"fvb_r");this.nD.start();a=g.r(this.Nv);for(var b=a.next();!b.done;b=a.next())b=b.value,dOa(this,b.id,b.A1,b.z1,!1);this.Nv=[];break;case "loadstart":OI(this.zb,"gv");break;case "progress":case "timeupdate":2<=xz(a.target.Eg())&&OI(this.zb,"l2s");break;case "playing":g.YB&&this.nD.start();if(g.oB(this.U))a=!1;else{b=g.GI(this.ib());a="none"===this.mediaElement.getStyle("display")||0===eg(this.mediaElement.getSize());
var c=CO(this.template),d=this.Db.getVideoData(),e=g.gB(this.U)||g.iB(this.U);d=xD(d);b=!c||b||e||d||this.U.Yc;a=a&&!b}a&&(this.Db.ra("hidden",{},!0),this.getVideoData().Zb||(this.K("html5_new_elem_on_hidden")?(this.getVideoData().Zb=1,this.UP(null),this.Db.playVideo()):US(this,"hidden",!0)))}};
g.k.onLoadProgress=function(a,b){this.Oa.La("onLoadProgress",b)};
g.k.m_=function(){this.Oa.X("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=XS(this,a);b=hT(this,a.getCurrentTime(),a);this.Oa.La("onVideoProgress",b)};
g.k.onAutoplayBlocked=function(){this.Oa.La("onAutoplayBlocked")};
g.k.EZ=function(){this.Oa.X("progresssync")};
g.k.mY=function(a){if(1===this.getPresentingPlayerType()){g.VE(a,1)&&!g.V(a.state,64)&&this.fd().isLivePlayback&&this.rb.isAtLiveHead()&&1<this.Oa.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.VE(a,2)){if(this.tb&&this.tb.endTimeMs>=1E3*(this.getDuration()-1)){WNa(this);return}PNa(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.Oa.La("onError",gVa[b.errorCode]||5);this.Oa.La("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.lG});6048E5<(0,g.R)()-this.U.Le&&this.Oa.La("onReloadRequired")}b={};if(a.state.Kc()&&!g.HF(a.state)&&!Cw("pbresume","ad_to_video")&&Cw("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);nw(b,"ad_to_video");if(this.K("html5_csi_delay_pbresume")){if(Cw("plev","ad_to_video")&&!isNaN(this.zb.u))if(b=1E3*(this.getCurrentTime()-this.zb.u),0>b){var d;null==(d=g.KI(this))||
d.ra("csir",{ossms:b})}else if(1E5<b){var e;null==(e=g.KI(this))||e.ra("csir",{oslms:b})}else d=(0,g.R)()-b,mw("pbresume",d,"ad_to_video"),this.zb.u=NaN}else mw("pbresume",void 0,"ad_to_video");this.yc.dB()}this.Oa.X("applicationplayerstatechange",a)}};
g.k.nQ=function(a){3!==this.getPresentingPlayerType()&&this.Oa.X("presentingplayerstatechange",a)};
g.k.hh=function(a){VS(this,IF(a.state));g.V(a.state,1024)&&this.Oa.isMutedByMutedAutoplay()&&(wI(this,{muted:!1,volume:this.lh.volume},!1),eT(this,!1))};
g.k.iY=function(a,b,c){"newdata"===a&&OS(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})};
g.k.Sy=function(){this.Oa.La("onPlaybackAudioChange",this.Oa.getAudioTrack().Fc.name)};
g.k.bz=function(a){var b=this.Db.getVideoData();a===b&&this.Oa.La("onPlaybackQualityChange",a.B.video.quality)};
g.k.onVideoDataChange=function(a,b,c){b===this.rb&&(this.U.md=c.oauthToken);this.getVideoData().enableServerStitchedDai&&!this.Id?this.Id=new g.NN(this.Oa,this.U,this.rb):!this.getVideoData().enableServerStitchedDai&&this.Id&&(this.Id.dispose(),this.Id=null);if("newdata"===a)hJ(this.yc,2),this.Oa.X("videoplayerreset",b);else{if(!this.mediaElement)return;if("dataloaded"===a)if(this.Db===this.rb){if(lB(c.u,c.YL),!this.rb.getPlayerState().isError()){var d=RS(this);this.fd().isLoaded();d&&this.Km(6);
RNa(this);gJ(this.yc)||YS(this)}}else RNa(this);if(1===b.getPlayerType()&&(this.U.ma&&kOa(this),this.getVideoData().isLivePlayback&&!this.U.cn&&this.Ef("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded())){if(c.Ke||c.gE||c.gt||c.jt||c.nS||c.N.focEnabled||c.N.rmktEnabled||this.getVideoData().dn){d=this.Xt;var e=this.getVideoData(),f=this.rb;qI(d,"part2viewed",1,0x8000000000000,f);qI(d,"engagedview",Math.max(1,1E3*e.Hc),0x8000000000000,f);e.isLivePlayback||(e=1E3*e.lengthSeconds,qI(d,"videoplaytime25",
.25*e,e,f),qI(d,"videoplaytime50",.5*e,e,f),qI(d,"videoplaytime75",.75*e,e,f),qI(d,"videoplaytime100",e,0x8000000000000,f),qI(d,"conversionview",e,0x8000000000000,f),qI(d,"videoplaybackstart",1,e,f),qI(d,"videoplayback2s",2E3,e,f),qI(d,"videoplayback10s",1E4,e,f))}if(c.hasProgressBarBoundaries()){var h;d=Number(null==(h=this.getVideoData().progressBarEndPosition)?void 0:h.utcTimeMillis)/1E3;!isNaN(d)&&(h=this.getIngestionTime())&&(h-=this.getCurrentTime(),h=1E3*(d-h),d=this.aD.progressEndBoundary,
(null==d?void 0:d.start)!==h&&(d&&this.gD([d]),h=new g.Av(h,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.rb.addCueRange(h),this.aD.progressEndBoundary=h))}}this.Oa.X("videodatachange",a,c,b.getPlayerType())}this.Oa.La("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.pD();if(b=c.zz){if(a=this.Jp,c=c.clientPlaybackNonce,a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=PF();var l=void 0===l?{}:l;Object.values(qUa).includes(c)||(g.Bu(new g.Ar("createClientScreen() called with a non-page VE",
c)),c=83769);l.isHistoryNavigation||b.j.push({rootVe:c,key:l.key||""});b.D=[];b.J=[];l.mN?rza(b,c,l):qza(b,c,l);XGa(a)}}else XGa(this.Jp)};
g.k.ju=function(){ZS(this,null);this.Oa.La("onPlaylistUpdate")};
g.k.AP=function(a){var b=a.getId(),c=this.fd();if("part2viewed"===b){if(c.mM&&g.Gs(c.mM),c.gE&&qT(this,c.gE),c.gt)for(var d={CPN:this.getVideoData().clientPlaybackNonce},e=g.r(c.gt),f=e.next();!f.done;f=e.next())qT(this,g.yn(f.value,d))}else"conversionview"===b?this.rb.hw():"engagedview"===b&&c.Ke&&(d={CPN:this.getVideoData().clientPlaybackNonce},g.Gs(g.yn(c.Ke,d)));c.oM&&(d=a.getId(),d=cq(c.oM,{label:d}),g.Gs(d));switch(b){case "videoplaytime25":c.gM&&qT(this,c.gM);c.jE&&rT(this,c.jE);c.GM&&g.Gs(c.GM);
break;case "videoplaytime50":c.iM&&qT(this,c.iM);c.kE&&rT(this,c.kE);c.VM&&g.Gs(c.VM);break;case "videoplaytime75":c.kM&&qT(this,c.kM);c.lE&&rT(this,c.lE);c.nN&&g.Gs(c.nN);break;case "videoplaytime100":c.eM&&qT(this,c.eM);c.hE&&rT(this,c.hE);c.qM&&g.Gs(c.qM);break;case "videoplaybackstart":var h,l=null==(h=c.jt)?void 0:h.j;l&&qT(this,l);break;case "videoplayback2s":(h=null==(l=c.jt)?void 0:l.B)&&qT(this,h);break;case "videoplayback10s":var m;(h=null==(m=c.jt)?void 0:m.u)&&qT(this,h)}(h=this.getVideoData().dn)&&
bOa(this,h,a.getId())&&bOa(this,h,a.getId()+"gaia");this.rb.removeCueRange(a)};
g.k.DZ=function(a){delete this.aD[a.getId()];this.rb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=(null==(b=a.watchNextResponse)?void 0:null==(c=b.contents)?void 0:null==(d=c.singleColumnWatchNextResults)?void 0:null==(e=d.autoplay)?void 0:null==(f=e.autoplay)?void 0:f.sets)||(null==(h=a.watchNextResponse)?void 0:null==(l=h.contents)?void 0:null==(m=l.twoColumnWatchNextResults)?void 0:null==(n=m.autoplay)?void 0:null==(p=n.autoplay)?void 0:p.sets);if(q)for(b=g.r(q),c=b.next();!c.done;c=
b.next())if(c=c.value,e=d=void 0,c=c.autoplayVideo||(null==(d=c.autoplayVideoRenderer)?void 0:null==(e=d.autoplayEndpointRenderer)?void 0:e.endpoint),h=f=e=d=void 0,(null==(d=c)?void 0:null==(e=d.watchEndpoint)?void 0:e.videoId)===a.videoId&&(null==(f=c)?0:null==(h=f.watchEndpoint)?0:h.continuePlayback)){a=c;break a}a=null}b=null==a?void 0:a.watchEndpoint;this.K("enable_linear_player_handling")&&b&&this.Oa.La("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,
watchEndpoint:b})};
g.k.Km=function(a){a!==this.appState&&(2===a&&1===this.getPresentingPlayerType()&&(VS(this,-1),VS(this,5)),this.appState=a,this.Oa.X("appstatechange",a))};
g.k.Ef=function(a,b,c,d,e){this.rb.qg(a,b,c,d,e)};
g.k.zo=function(a,b){this.rb.handleError(new fC(a,b))};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.KI(this,a);if(!c)return!1;a=WS(this,c);c=XS(this,c);return a!==c?a.isAtLiveHead(hT(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.wp=function(){var a=g.KI(this);return a?WS(this,a).wp():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.KI(this,d))2===this.appState&&cT(this),this.Ce(d)?gT(this)?this.Id.seekTo(a,b,c):this.jd.seekTo(a,b,c):d.seekTo(a,{PR:!b,QR:c,Ee:"application"})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.HC=function(){this.Oa.La("SEEK_COMPLETE")};
g.k.b_=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.V(a.getPlayerState(),512)||cT(this):this.Oa.La("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Oa.X("airplayactivechange");this.U.K("html5_external_airplay_events")&&this.Oa.La("onAirPlayActiveChange",this.Oa.eg())};
g.k.onAirPlayAvailabilityChange=function(){this.Oa.X("airplayavailabilitychange");this.U.K("html5_external_airplay_events")&&this.Oa.La("onAirPlayAvailabilityChange",this.Oa.uy())};
g.k.showAirplayPicker=function(){var a;null==(a=this.Db)||a.kq()};
g.k.gI=function(){this.Oa.X("beginseeking")};
g.k.lI=function(){this.Oa.X("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.KI(this,a))?WS(this,a).getVideoData().getStoryboardFormat():null};
g.k.wi=function(a){return(a=g.KI(this,a))?WS(this,a).getVideoData().wi():null};
g.k.Ce=function(a){a=a||this.Db;var b=!1;if(a){a=a.getVideoData();if(gT(this))a=a===this.Id.qa.getVideoData();else a:if(b=this.jd,a===b.j.getVideoData()&&b.u.length)a=!0;else{b=g.r(b.u);for(var c=b.next();!c.done;c=b.next())if(a.Ac===c.value.Ac){a=!0;break a}a=!1}b=a}return b};
g.k.Wt=function(a,b,c,d,e,f){var h=gT(this),l;null==(l=g.KI(this))||l.ra("appattl",{sstm:this.Id?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:h});return h?lGa(this.Id,a,b,c,d,e,f):CGa(this.jd,a,b,c,d,e)};
g.k.qy=function(a,b,c,d,e,f){gT(this)&&lGa(this.Id,a,b,c,d,e,f);return""};
g.k.bq=function(a){var b;null==(b=this.Id)||b.bq(a)};
g.k.er=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;gT(this)?this.U.K("web_player_ssdai_prevent_clearing_timeline_killswitch")&&ZN(this.Id,a,b):lO(this.jd,a,b)};
g.k.gw=function(a,b,c){if(gT(this)){var d=this.Id,e=d.qc.get(a);e?(void 0===c&&(c=e.Sc),e.durationMs=b,e.Sc=c,d.U.K("web_player_ssdai_prevent_updating_ad_cuerange_killswitch")&&oGa(d,e)):d.Ey("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.jd;e=null;for(var f=g.r(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.Ac===a){e=h;break}e?(void 0===c&&(c=e.Sc),IGa(d,e,b,c)):eO(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Ce();a=new g.mD(this.U,a);d&&(a.Ac=d);c=void 0===c?Infinity:c;b=b||this.Db.getPlayerType();var e;this.U.K("html5_gapless_preloading")&&(e=fT(this,b,a,!0));e||(e=this.Yo(b,a));2===b&&this.rb&&(b=e.getVideoData(),this.rb.Hv(b.clientPlaybackNonce,b.qd||"",b.breakType||0,b.Me));this.kB(e,c)};
g.k.kB=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.KI(this);e&&(WS(this,e).YR=!0);bGa(this.nw,a,b,c).then(function(){d.Oa.La("onQueuedVideoLoaded")},function(){})};
g.k.Zu=function(){return this.nw.Zu()};
g.k.clearQueue=function(){this.nw.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f=!1,h=new g.mD(this.U,a),l,m=null!=(l=h.Da)?l:"";this.zb.timerName=m;this.zb.Co("pl_i");this.K("web_player_early_cpn")&&h.clientPlaybackNonce&&this.zb.info("cpn",h.clientPlaybackNonce);if(!this.K("web_player_load_video_context_killswitch")&&e){for(;h.Hj.length&&h.Hj[0].isExpired();)h.Hj.shift();f=h.Hj.length-1;f=0<f&&e.u(h.Hj[f])&&e.u(h.Hj[f-1]);h.Hj.push(e)}c||(a&&QI(a)?(vB(this.U)&&!this.Ah&&(a.fetch=0),ZS(this,a)):this.playlist&&
ZS(this,null),a&&this.setIsExternalPlaylist(a.external_list),vB(this.U)&&!this.Ah&&$S(this));a=this.Op(h,b,d);f&&this.Ef("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+h.Hj.join()).replace(/[;:,]/g,"_"));return a};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;e=void 0===e?"":e;d=Xq(a);if(!this.iz.get(b+"_"+d+"_"+e)){a=new g.mD(this.U,a);e&&(a.Ac=e);e=b+"_"+a.videoId+"_"+a.Ac;if(d=this.Db){d=this.Db.getPlayerType();var f=this.Db.getVideoData().videoId,h=this.Db.getVideoData().Ac;d=e===d+"_"+f+"_"+h}d?(g.FN(this.Db,!0),a.dispose()):(a.Je=!0,a=this.Yo(b,a),1===b&&TB(this.U)||g.FN(a,!0),this.iz.set(e,a,c||3600))}};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.yc;a=a.G.S().showMiniplayerUiWhenMinimized?a.Sd.get("miniplayer"):void 0;a&&(this.sf()?a.load():a.unload());this.Oa.X("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.yc;a=a.G.S().showInlinePreviewUi?a.Sd.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Oa.La("onInlinePreviewModeChange"))};
g.k.Rv=function(a){var b=this.U.K("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.U.Lj&&this.U.K("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.uG&&b?this.uG.start():this.MM():this.visibility.Rv(a)};
g.k.MM=function(){var a,b=null==(a=this.mediaElement)?void 0:a.mf();b&&du(b).catch(function(c){return g.Bu(c)})};
g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.k.YZ=function(){"picture-in-picture"===this.mediaElement.mf().webkitPresentationMode?this.Rv(!0):this.Rv(!1)};
g.k.togglePictureInPicture=function(){var a=g.KI(this);a&&a.togglePictureInPicture()};
g.k.Op=function(a,b,c){b=void 0===b?1:b;Cw("_start",this.zb.timerName)||(mw("_start",void 0,this.zb.timerName),this.zb.info("srt",0));var d=fT(this,b,a,!1);d?a.dispose():(d=this.Yo(b,a,c),this.K("html5_onesie")&&sS(d)&&g.FN(d),this.nD.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),IN(this,d));d===this.rb&&(this.U.md=a.oauthToken);if(!sS(d))return!1;if(d===this.rb)return this.Km(1),cT(this);BS(d);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(a&&QI(a))if(this.Or=!0,ZS(this,a),(a=g.RI(this.playlist))&&a.isValid())lT(this,a,b);else this.playlist.onReady(function(){bT(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.ju();var d=new g.mD(this.U,a);!g.YA(this.U)||this.U.N||1!==b||d.isAd()||d.qd?lT(this,d,b):(this.Ic().getVideoData().va=!0,VCa(d,a?a:{}).then(function(e){lT(c,e,b)}),d.dispose())}};
g.k.vl=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if($A(this.U)||g.UB(this.U))return b=b||{},b.lact=xt(),b.vis=this.Oa.getVisibilityState(),this.Oa.La("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;QCa(this.zb);this.zb.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");h&&(a.oauth_token=h);c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0};
g.k.cuePlaylist=function(a,b,c,d){this.Or=!0;cOa(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Or=!1;cOa(this,a,b,c,d)};
g.k.Lx=function(){if(this.Oa.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;vB(this.U)&&!this.Ah&&$S(this);return!(!this.playlist||!this.playlist.hasNext())};
g.k.mp=da(3);
g.k.nextVideo=function(a,b){var c=g.bE(this.rb.getVideoData());g.JI(this.Oa)&&c?this.vl(c.videoId,b?c.Ex:c.sessionData,c.playlistId,b,void 0,c.EM||void 0):this.Ah?this.Oa.La("onPlaylistNext"):3===this.getPresentingPlayerType()?EI(this.yc).nextVideo():this.playlist&&(vB(this.U)&&!this.Oa.isFullscreen()?jT(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&SI(this.playlist,RCa(this.playlist)),this.playlist.loaded?(a=b&&this.U.K("html5_player_autonav_logging"),this.Op(g.RI(this.playlist,void 0,
b,a),1)):this.Or=!1))};
g.k.previousVideo=function(a){this.Ah?this.Oa.La("onPlaylistPrevious"):3===this.getPresentingPlayerType()?EI(this.yc).XC():this.playlist&&(vB(this.U)&&!this.Oa.isFullscreen()?jT(this,"yt.www.watch.lists.prev"):(this.playlist.tm(a)&&SI(this.playlist,SCa(this.playlist)),this.playlist.loaded?this.Op(g.RI(this.playlist),1):this.Or=!1))};
g.k.playVideoAt=function(a){this.Ah?this.Oa.La("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Op(g.RI(this.playlist,a),1):this.Or=!1,SI(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.Wx=da(11);g.k.gY=function(a){this.Oa.La("onCueRangeEnter",a.getId())};
g.k.hY=function(a){this.Oa.La("onCueRangeExit",a.getId())};
g.k.hx=function(a,b,c){var d=g.KI(this,b);d&&(d.hx(a,c),b&&this.getPresentingPlayerType()!==b||TS(this,"cuerangesadded",a))};
g.k.gD=function(a,b){var c=g.KI(this,b);c&&(c.gD(a),b&&this.getPresentingPlayerType()!==b||TS(this,"cuerangesremoved",a))};
g.k.lY=function(){var a=this;this.getPresentingPlayerType();this.rq||(this.rq=ys(uUa,this.JP,this));PCa(this.zb,this.Db.getVideoData(),fOa(this));PS(this)&&this.U.j&&"embedded"===SD(this.fd())&&this.XO&&.01>Math.random()&&g.vr("autoplayTriggered",{intentional:this.yO});this.XO=!1;this.yc.dB();this.K("web_player_defer_ad")&&YS(this);this.Oa.La("onPlaybackStartExternal");this.U.K("mweb_client_log_screen_associated");(function(){var c=g.Lu(a.eR||(a.sf()?3:0));if(c&&"UNDEFINED_CSN"!==c)if(a.U.K("il_via_jspb")){var d=
new qp,e=a.getVideoData().clientPlaybackNonce;g.E(d,1,e).Mh(c);a.U.K("web_playback_associated_ve")&&a.getVideoData().ma&&(e=g.Eu(a.getVideoData().ma),g.Qu(c,e),c=e.getAsJspb(),wd(d,op,2,c));if(a.U.K("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo){c=a.getVideoData().queueInfo;e=new rp;if(null==c?0:c.enqueueingVe)if(null==c?0:c.enqueueingVe.trackingParams){var f=g.Eu(c.enqueueingVe.trackingParams);f=f.getAsJspb();wd(e,op,1,f)}else g.Bu(new g.Ar("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));wd(d,rp,4,e)}c={};a.K("web_playback_associated_log_ctt")&&a.getVideoData().J&&(c.cttAuthInfo={token:a.getVideoData().J,videoId:a.getVideoData().videoId});e=new Kp;xd(e,qp,202,zu,d);yu(e,c)}else d={cpn:a.getVideoData().clientPlaybackNonce,csn:c},a.U.K("web_playback_associated_ve")&&a.getVideoData().ma&&(e=g.Eu(a.getVideoData().ma),g.Qu(c,e),d.playbackVe=e.getAsJson()),
a.U.K("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.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.vr("playbackAssociated",d,c);else g.Bu(new g.Ar("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});ow("player_att",b);this.getVideoData().botguardData&&(g.SB(this.U)||"MWEB"===mB(this.U)?g.lr(g.nr(),function(){dT(a)}):dT(this));
this.pD()};
g.k.qI=function(){this.Oa.X("internalAbandon");this.K("html5_ad_module_cleanup_killswitch")||iT(this)};
g.k.JP=function(a){a=a.j;!isNaN(a)&&0<a&&this.rb&&this.rb.pz(a)};
g.k.onApiChange=function(){this.U.B&&this.Db?this.Oa.La("onApiChange",this.Db.getPlayerType()):this.Oa.La("onApiChange")};
g.k.fZ=function(){var a=this.mediaElement;a={volume:g.Xf(Math.floor(100*a.getVolume()),0,100),muted:a.FB()};a.muted||eT(this,!1);this.lh=g.We(a);this.Oa.La("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Oa.La("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=nT(this);this.dk(a?1:0);iOa(this,!!a)};
g.k.dk=function(a){var b=!!a,c=!!this.Hu()!==b;this.visibility.dk(a);this.template.dk(b);this.K("html5_media_fullscreen")&&!b&&this.mediaElement&&nT(this)===this.mediaElement.mf()&&this.mediaElement.Gx();this.template.resize();c&&this.zb.tick("fsc");c&&(this.Oa.X("fullscreentoggled",b),a=this.fd(),b={fullscreen:b,videoId:a.eF||a.videoId,time:this.getCurrentTime()},this.Oa.getPlaylistId()&&(b.listId=this.Oa.getPlaylistId()),this.Oa.La("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.Hu=function(){return this.visibility.Hu()};
g.k.QZ=function(){this.Db&&(0!==this.Hu()&&1!==this.Hu()||this.dk(nT(this)?1:0),this.U.Lj&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.Gx())};
g.k.XY=function(a){3!==this.getPresentingPlayerType()&&this.Oa.X("liveviewshift",a)};
g.k.playVideo=function(a){if(a=g.KI(this,a))2===this.appState?cT(this):(null!=this.nk&&this.nk.ob&&this.nk.start(),g.V(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.k.pauseVideo=function(a){(a=g.KI(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){var a=this.rb.getVideoData(),b=new g.mD(this.U,{video_id:a.eF||a.videoId,oauth_token:a.oauthToken});b.W=g.We(a.W);this.cancelPlayback(6);lT(this,b,1);null!=this.nk&&this.nk.stop()};
g.k.cancelPlayback=function(a,b){xs(this.rq);this.rq=0;var c=g.KI(this,b);c&&(2===b&&1===c.getPlayerType()&&Wxa(this.fd())?c.ra("canclpb",{r:"no_adpb_ssdai"}):(this.U.K("html5_high_res_logging")&&c.ra("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Db&&hJ(this.yc,a),1===b&&(c.stopVideo(),iT(this)),c.jo(),TS(this,"cuerangesremoved",c.Ek()),c.uh.reset(),this.nw&&c.isGapless()&&(c.Kh(!0),c.setMediaElement(this.mediaElement)))))};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.KI(this,b))&&this.U.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.ri=function(a){var b=g.KI(this);return b&&this.U.enabledEngageTypes.has(a.toString())?b.ri(a):null};
g.k.updatePlaylist=function(){vB(this.U)?$S(this):g.YA(this.U)&&aT(this);this.Oa.La("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.qR=a;this.xH=b;this.Oa.X("sizestylechange",a,b);this.template.resize()};
g.k.isWidescreen=function(){return this.xH};
g.k.sf=function(){return this.visibility.sf()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.Xu=function(){return this.visibility.Xu()};
g.k.Uu=function(){return this.visibility.Uu()};
g.k.zy=function(){return this.qR};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return EI(this.yc).getAdState();if(!this.Ce()){var a=iJ(this.ib());if(a)return a.getAdState()}return-1};
g.k.PZ=function(a){var b=this.template.getVideoContentRect();Zk(this.QO,b)||(this.QO=b,this.Db&&zS(this.Db),this.rb&&this.rb!==this.Db&&zS(this.rb),1===this.Hu()&&this.cz&&iOa(this,!0));this.EH&&g.dg(this.EH,a)||(this.Oa.X("appresize",a),this.EH=a)};
g.k.Qf=function(){return this.Oa.Qf()};
g.k.h_=function(){2===this.getPresentingPlayerType()&&this.jd.isManifestless()&&!this.K("web_player_manifestless_ad_signature_expiration_killswitch")?HGa(this.jd):(this.Id&&(ZN(this.Id),iT(this)),US(this,"signature",void 0,!0))};
g.k.UP=function(){this.Kh();SS(this)};
g.k.lZ=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Oa.La("onPlayerRequestAuthFailed")};
g.k.Uy=function(){this.Oa.La("CONNECTION_ISSUE")};
g.k.Wy=function(a){this.Oa.X("heartbeatparams",a)};
g.k.lD=function(a){this.Oa.La("onAutonavChangeRequest",1!==a)};
g.k.Hd=function(){return this.mediaElement};
g.k.setBlackout=function(a){this.U.Yc=a;this.Db&&(this.Db.Xs(),this.U.ma&&kOa(this))};
g.k.setAccountLinkState=function(a){var b=g.KI(this);b&&(b.getVideoData().dM=a,b.Xs())};
g.k.updateAccountLinkingConfig=function(a){var b=g.KI(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Oa.X("videodatachange","dataupdated",c,b.getPlayerType())}};
g.k.nZ=function(){var a=g.KI(this);if(a){var b=!this.Oa.yy();(a.kO=b)||a.Wr.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.B&&c.B.stop()}a.U.K("html5_suspend_loader")&&a.Fa&&(b?a.Fa.resume():IS(a,!0));a.U.K("html5_fludd_suspend")&&(g.V(a.playerState,2)||b?g.V(a.playerState,512)&&b&&a.Rb(CF(a.playerState,512)):a.Rb(BF(a.playerState,512)));a=a.logging;a.qoe&&(a=a.qoe,g.aR(a,g.GN(a.j),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Oa.La("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Oa.La("onDrmOutputRestricted")};
g.k.yF=function(){this.K("html5_skip_empty_load")&&($Ua=!0);fza=this.K("html5_ios_force_seek_to_zero_on_stop");aVa=this.K("html5_ios7_force_play_on_stall");bVa=this.K("html5_ios4_seek_above_zero");R_=this.K("html5_use_async_stopVideo");cVa=this.K("html5_pause_for_async_stopVideo");fua=this.K("html5_retain_source_buffer_appends_for_debugging");this.K("html5_mediastream_applies_timestamp_offset")&&(xP=!0);this.K("html5_dont_override_default_sample_desc_index")&&(Zsa=!0);var a=g.eA(this.U.experiments,
"html5_cobalt_override_quic");a&&NFa(0<a);Error.stackTraceLimit=25;var b=g.eA(this.U.experiments,"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}});
IUa=this.K("html5_live_partial_response_resumable");yta=this.K("html5_onesie_nonzero_playback_start");Asa(this.K("web_player_cipher_use_experimental_client"))};
g.k.LH=function(){this.yO=!0};
g.k.ea=function(){this.yc.dispose();this.jd.dispose();this.Id&&this.Id.dispose();this.rb.dispose();this.Kh();g.Ae(Ne(this.Ws),this.playlist);xs(this.rq);this.rq=0;this.rJ&&(window.clearInterval(this.rJ),this.rJ=void 0);g.I.prototype.ea.call(this)};
g.k.K=function(a){return this.U.K(a)};
g.k.tD=function(){return this.Gz};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.eR=a};
g.k.seekToChapterWithAnimation=function(a){var b=this,c,d=null==(c=xI(this.ib()))?void 0:c.Du();if(d instanceof g.LJ&&!(0>a)){var e;if((c=null==(e=this.getVideoData())?void 0:e.Ag)&&a<c.length)for(e=g.r(c),c=e.next();!c.done;c=e.next())if(c=c.value,c.index===a){oOa(this,d,c.startTime,c.title);return}if(this.K("web_key_moments_markers")){var f;(e=null==(f=this.getVideoData())?void 0:f.KO)&&a<e.length&&e.forEach(function(h,l){l===a&&oOa(b,d,h.timeRangeStartMillis,h.title)})}}};
g.k.downloadVideo=function(a,b){var c=this,d,e,f;return g.B(function(h){if(1==h.j){d=lJ(c.yc);if(!d)return h.return(Promise.reject());b&&(e={ytMainDownloadedVideoEntityActionMetadata:{maximumDownloadQuality:b}});return g.A(h,d.VI([a],"ytMainDownloadedVideoEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e),3)}f=h.u;return h.return(f[0])})};
g.k.pauseVideoDownload=function(a){var b=lJ(this.yc);b&&b.II(a)};
g.k.resumeVideoDownload=function(a){var b=this,c;return g.B(function(d){return(c=lJ(b.yc))?d.return(c.xz(a)):d.return(Promise.reject())})};
g.k.refreshAllVideos=function(a){void 0===a&&(a=14400);var b=lJ(this.yc);return b?b.rz(a):Promise.reject()};
g.k.deleteVideos=function(a){var b=lJ(this.yc);return b?b.VI(a,"ytMainDownloadedVideoEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"):Promise.reject()};
g.k.deleteAllVideos=function(){var a=lJ(this.yc);return a?a.deleteAll():Promise.reject()};
g.k.isOrchestrationLeader=function(){var a=lJ(this.yc);return a?a.isOrchestrationLeader():!1};
g.k.getStatsForNerds=function(){var a=this.Oa,b=g.KI(this),c=a.getVideoData(),d=a.Hd(),e=d.mf(),f=b.ey(),h=b.HJ,l=8*wO(h,"bandwidth")/1024,m=wO(h,"networkactivity")/1024,n=wO(h,"bufferhealth");if(b.me){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.me.j.cg()+"/"+Pw(b.Ju());p+="/"+b.me.cg()}else p="";var q=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),u=tz(d.Eg(),",",3),x="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(x+="SS");x+="DAI, ";a:{if(b.jd){if(b.jd.bp){var y=
"D,";break a}y=b.jd.Aj;if(0<y){y="AD"+y+", ";break a}}y=""}y&&(x+=y)}if(c.fetchType){switch(c.fetchType){case "onesie":y="o";break;case "gp":y="gp";break;default:y="gvi"}x+="vd:"+y+", "}x+="s:"+q+" t:"+t+" b:"+u+" ";d.Hg()&&(x+="S");d.Vm()&&(x+="P");d.Gg()&&(x+="E");a.isOrchestrationLeader()&&(x+=" L");(d=b.Sx())&&(x+=" l:"+d.toFixed());d=b.getCurrentTime();q=c.Zw;d&&d>q.start&&d<q.end&&(x+=" as");d=x;x=g.wB();q=g.HI(a).VW;t=c.C&&!c.C.j?"display:none":"";if((u=c.clientPlaybackNonce)&&16==u.length){y=
0;for(var z="",D=0;10>D;D++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(u.charAt(D)),4==D%5){for(var H="",G=0;6>G;G++)H="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+H,y>>=5;z+=H}u=z.substr(0,4)+" "+z.substr(4,4)+" "+z.substr(8,4)}else u="";l={video_id_and_cpn:c.videoId+" / "+u,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:p?"":"display:none",drm:p,debug_info:d,
bandwidth_style:t,network_activity_style:t,network_activity_bytes:m.toFixed(0)+" KB",shader_info:q,shader_info_style:q?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1<x?"*"+x.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=Uxa(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.Me.toFixed(1);isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=
e.videoWidth+"x"+e.videoHeight;if(a=c.B)if(e=a.video)f=e.fps,1<f&&(l.resolution+="@"+f),(f=g.DS(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=OGa(a),!c.I||a.audio&&a.video?a.audio&&a.audio.itag&&(l.codecs+=" / "+a.audio.itag+"A"):l.codecs+=" / "+OGa(c.I),e.u||e.primaries?(a=e.u||"unknown","smpte2084"===a?a+=" (PQ)":"arib-std-b67"===a&&(a+=" (HLG)"),l.color=a+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style=
"display:none";e=c.isLivePlayback;a=c.Mf;l.live_mode_style=e||a?"":"display:none";l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(tD(c)?" Manifestless":"");else if(e){a=wO(h,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=tD(c)?"Manifestless, ":"";c.di&&(e+="Windowed, ");f="Uncertain";if(0<=a&&120>a)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":f="Optimized for Normal Latency";break;case "LOW":f="Optimized for Low Latency";break;case "ULTRALOW":f=
"Optimized for Ultra Low Latency";break;default:f="Unknown Latency Setting"}else f=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=f;(a=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+a.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=vO(h,"bandwidth");l.network_activity_samples=vO(h,"networkactivity");l.live_latency_samples=vO(h,
"livelatency");l.buffer_health_samples=vO(h,"bufferhealth");b=g.YD(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";BD(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20220531_01_RC00",l.release_style=""):l.release_style="display:none";return l};
g.k.getVideoUrl=function(a,b,c,d,e){return this.tb&&this.tb.postId?(a=this.U.getVideoUrl(a),a=Ph(a,"v"),a.replace("/watch","/clip/"+this.tb.postId)):this.U.getVideoUrl(a,b,c,d,e)};
var l0={};g.Ka("yt.player.Application.create",g.QS.create);g.Ka("yt.player.Application.createAlternate",g.QS.create);sqa(tu(),{Tn:[{Iy:/Unable to load player module/,weight:20},{Iy:/Failed to fetch/,weight:500},{Iy:/XHR API fetch failed/,weight:10},{Iy:/JSON parsing failed after XHR fetch/,weight:10},{Iy:/Retrying OnePlatform request/,weight:10}]});var sVa=g.La("ytcsi.tick");sVa&&sVa("pe");var rOa=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),pOa=new Map([["normal",{Gs:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Qs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Gs:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Qs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{Gs:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Qs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Gs:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Qs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Gs:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Qs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Gs:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Qs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{Gs:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Qs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);var tVa={Yea:"replaceUrlMacros",Ada:"onAboutThisAdPopupClosed",T7:"executeCommand"};AT.prototype.hm=function(){return"adLifecycleCommand"};
AT.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.Qg(function(){b.controller.gp()});
break;case "END_LINEAR_AD_PLACEMENT":g.Qg(function(){b.controller.cm()});
break;case "FILL_ABOVE_FEED_SLOT":g.Qg(function(){a.elementId&&b.controller.qB(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":g.Qg(function(){b.controller.VA()})}};
AT.prototype.Hn=function(a){this.handle(a)};BT.prototype.hm=function(){return"clearCueRangesCommand"};
BT.prototype.handle=function(){var a=this.TF();g.Qg(function(){a.Pg(Array.from(a.Pq))})};
BT.prototype.Hn=function(a){this.handle(a)};CT.prototype.hm=function(){return"muteAdEndpoint"};
CT.prototype.handle=function(a){wOa(this,a)};
CT.prototype.Hn=function(a,b){wOa(this,a,b)};DT.prototype.hm=function(){return"openPopupAction"};
DT.prototype.handle=function(){};
DT.prototype.Hn=function(a){this.handle(a)};ET.prototype.hm=function(){return"pingingEndpoint"};
ET.prototype.handle=function(){};
ET.prototype.Hn=function(a){this.handle(a)};FT.prototype.hm=function(){return"urlEndpoint"};
FT.prototype.handle=function(a,b){b=Object.assign({},b);if(jW(this.U_,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")){var c=this.Zk.Gf(2);c&&(b.AD_CPN=c.clientPlaybackNonce)}b=g.yn(a.url,b);var d,e;if((null==(d=a.browserConversionApiData)?0:d.impressiondata)&&(null==(e=a.browserConversionApiData)?0:e.conversiondestination)){var f;if(null==(f=a.browserConversionApiData)?0:f.originTrialToken)d=document.createElement("meta"),d.setAttribute("http-equiv","origin-trial"),d.setAttribute("content",
a.browserConversionApiData.originTrialToken),document.head.appendChild(d);a={attributionSourceEventId:a.browserConversionApiData.impressiondata,attributionDestination:a.browserConversionApiData.conversiondestination,attributionReportTo:a.browserConversionApiData.reportingorigin,attributionExpiry:Number(a.browserConversionApiData.impressionexpiry)||void 0}}else a=void 0;a&&g.S("ERROR: Attribution source params in prod traffic");a=new g.Si(b);void 0!==a.u.get("ase")&&("1"===a.u.get("ase")?g.S("ERROR: &ase=1 is already in prod traffic."):
g.S("ERROR: &ase is already in prod traffic, with value not equal to 1."));"1"===a.u.get("ase")?g.HH(b,void 0,void 0,b+"&asr=1"):g.HH(b)};
FT.prototype.Hn=function(a){this.handle(a,{})};GT.prototype.hm=function(){return"adPingingEndpoint"};
GT.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Qq.send(a,b,c)};
GT.prototype.Hn=function(a,b,c){FQa(this.Na.get(),a,b,void 0,c)};HT.prototype.hm=function(){return"changeEngagementPanelVisibilityAction"};
HT.prototype.handle=function(a){this.G.La("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
HT.prototype.Hn=function(a){this.handle(a)};IT.prototype.hm=function(){return"loggingUrls"};
IT.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.Uj.send(d.baseUrl,b,c,d.headers)};
IT.prototype.Hn=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,FQa(this.Na.get(),c.baseUrl,b,c.headers)};g.w(yOa,g.I);JT.prototype.get=function(){return this.value};
g.w(KT,JT);KT.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.w(LT,JT);LT.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.w(MT,JT);MT.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.w(NT,JT);NT.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.w(OT,JT);OT.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.w(PT,JT);PT.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.w(QT,JT);QT.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.w(RT,JT);RT.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.w(ST,JT);ST.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.w(TT,JT);TT.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.w(UT,JT);UT.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.w(VT,JT);VT.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.w(WT,JT);WT.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.w(XT,JT);XT.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.w(ZT,JT);ZT.prototype.getType=function(){return"metadata_type_ad_video_url"};
g.w($T,JT);$T.prototype.getType=function(){return"metadata_type_content_cpn"};
g.w(aU,JT);aU.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.w(bU,JT);bU.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.w(cU,JT);cU.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.w(dU,JT);dU.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.w(eU,JT);eU.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.w(fU,JT);fU.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.w(gU,JT);gU.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.w(hU,JT);hU.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.w(iU,JT);iU.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.w(jU,JT);jU.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.w(kU,JT);kU.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.w(lU,JT);lU.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.w(mU,JT);mU.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.w(nU,JT);nU.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.w(oU,JT);oU.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.w(pU,JT);pU.prototype.getType=function(){return"metadata_type_cue_point"};
g.w(qU,JT);qU.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.w(rU,JT);rU.prototype.getType=function(){return"metadata_type_player_vars"};
g.w(sU,JT);sU.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.w(tU,JT);tU.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.w(uU,JT);uU.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.w(vU,JT);vU.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.w(wU,JT);wU.prototype.getType=function(){return"metadata_type_dai"};
g.w(xU,JT);xU.prototype.getType=function(){return"metadata_type_ad_intro"};
g.w(yU,JT);yU.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.w(zU,JT);zU.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.w(AU,JT);AU.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.w(BU,JT);BU.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.w(CU,JT);CU.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.w(DU,JT);DU.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.w(EU,JT);EU.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.w(FU,JT);FU.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.w(GU,JT);GU.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.w(HU,JT);HU.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.w(IU,JT);IU.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.w(JU,JT);JU.prototype.getType=function(){return"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR"};
g.w(KU,JT);KU.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.w(LU,JT);LU.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.w(MU,JT);MU.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};var NOa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
"trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.w(NU,g.I);g.k=NU.prototype;g.k.JG=function(a,b){return this.j.JG(a,b)};
g.k.dj=function(a,b){NV(this.Tb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.r(this.je),d=c.next();!d.done;d=c.next())d.value.dj(a,b)};
g.k.Sf=function(a){if(RU(this.j,a)){jF(this.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.Sf(a);for(var b=g.r(this.je),c=b.next();!c.done;c=b.next())c.value.Sf(a);AOa(this,a)}};
g.k.Tf=function(a){if(RU(this.j,a)){jF(this.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.Tf(a);for(var b=g.r(this.je),c=b.next();!c.done;c=b.next())c.value.Tf(a);RU(this.j,a)&&SU(this.j,a).D&&PU(this,a,!1)}};
g.k.IC=function(a){jF(this.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);RU(this.j,a)&&(this.j.IC(a),PU(this,a,!1))};
g.k.Rc=function(a,b){if(RU(this.j,a)){TU(this.Tb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.r(this.je),d=c.next();!d.done;d=c.next())d.value.Rc(a,b)}};
g.k.hd=function(a,b,c){if(RU(this.j,a)){TU(this.Tb,qOa(c),a,b);this.j.hd(a,b);for(var d=g.r(this.je),e=d.next();!e.done;e=d.next())e.value.hd(a,b,c);(c=eV(this.j,a))&&b.layoutId===c.layoutId&&KOa(this,a,!1)}};
g.k.Ig=function(a,b,c){T(c,a,b,void 0,c.Rq);PU(this,a,!0)};
g.k.ea=function(){var a=MOa(this.j);a=g.r(a);for(var b=a.next();!b.done;b=a.next())PU(this,b.value,!1);g.I.prototype.ea.call(this)};LOa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.w(UU,Za);g.w(hV,g.I);g.k=hV.prototype;g.k.JG=function(a,b){b=dV(this,a+"_"+b);a=[];b=g.r(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.Hi=function(a){a=SU(this,a);"not_scheduled"!==a.j&&fV(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.k.Jx=function(a){a=SU(this,a);a.C="fill_requested";a.J.Jx()};
g.k.Sf=function(a){a=SU(this,a);"enter_requested"!==a.j&&fV(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.k.IC=function(a){SU(this,a).C="fill_canceled"};
g.k.Tf=function(a){a=SU(this,a);"exit_requested"!==a.j&&fV(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.k.hd=function(a,b){a=SU(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&fV(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.w(kV,g.I);kV.prototype.B=function(){return this.u};g.w(lV,g.I);lV.prototype.get=function(){this.isDisposed()&&T("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.j});this.j||(this.j=this.u());return this.j};mV.prototype.executeCommand=function(a,b){mG(this.j(),a,b)};
mV.prototype.yf=function(a,b){gAa(this.j(),a,b)};g.w(MV,g.I);g.w(PV,g.I);PV.prototype.onCueRangeEnter=function(){};
PV.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.hc.get().removeCueRange(a),iv(this.Pb.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.yb.get();d=ov(d.Va.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,Lb:c.Lb?qQa(c.slotId,d,c.Lb):void 0,Xb:rQa(c.slotId,d,c.Xb),lc:rQa(c.slotId,d,c.lc)})]},c.slotId))};
PV.prototype.Fi=function(){for(var a=g.r(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.hc.get().removeCueRange(b);this.j.clear()};
PV.prototype.Vk=function(){};g.w(QV,g.I);g.k=QV.prototype;g.k.Hi=function(){};
g.k.Sj=function(a){var b=this;g.lr(g.nr(),function(){var c=b.j.get(a);c&&T("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.v(c)).map(function(d){return d.layoutType})})},0)};
g.k.Sf=function(){};
g.k.Rj=function(){};
g.k.Tf=function(){};
g.k.Xk=function(){};
g.k.Yk=function(){};
g.k.Oj=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.k.Pj=function(a,b){this.ij.has(a)&&this.ij.get(a)===b&&T("Unscheduled a Layout that is currently entered.",a,b);if(this.j.has(a)){var c=this.j.get(a);c.has(b)?(c.delete(b),0===c.size&&this.j.delete(a)):T("Trying to unscheduled a Layout that was not scheduled.",a,b)}else T("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Rc=function(a,b){this.ij.set(a,b)};
g.k.hd=function(a){this.ij.delete(a)};
g.k.dj=function(){};$V.prototype.clone=function(a){var b=this;return new $V(function(){return b.triggerId},a)};aW.prototype.clone=function(a){var b=this;return new aW(function(){return b.triggerId},a)};bW.prototype.clone=function(a){var b=this;return new bW(function(){return b.triggerId},a)};cW.prototype.clone=function(a){var b=this;return new cW(function(){return b.triggerId},a)};dW.prototype.clone=function(a){var b=this;return new dW(function(){return b.triggerId},a)};eW.prototype.clone=function(a){var b=this;return new eW(function(){return b.triggerId},a)};g.w(iW,g.I);iW.prototype.logEvent=function(a){NV(this,a)};g.w(kW,iW);lW.prototype.clear=function(){this.j.clear()};g.w(mW,g.I);g.k=mW.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.Fi=function(a,b,c,d,e,f,h){if(""===a)T("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.G.S().K("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ca.get().Fi(a,b,c,d,e,f,h);this.Qa.get().Fi(a,b,c,d,e,f,h);var l;null==(l=this.Ae)||l.get().Fi(a,b,c,d,e,f,h);this.u.Fi(a,b,c,d,e,f,h);l=g.r(this.listeners);for(var m=l.next();!m.done;m=l.next())m.value.Fi(a,b,c,d,e,f,h)}};
g.k.qI=function(){this.j&&this.Vk(this.j)};
g.k.Vk=function(a){this.j=void 0;for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Vk(a)};g.w(nW,g.I);nW.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?3:f;h=void 0===h?1:h;this.j.has(a)?T("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new AQa(a,b,c,d,f),this.j.set(a.id,{Md:a,listener:e,ul:h}),this.G.Vd([a],h))};
nW.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.G.Pg([b.Md],b.ul),this.j.delete(a)):T("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
nW.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
nW.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.w(AQa,g.Av);oW.prototype.Vj=function(a){this.G.Vj(a)};
oW.prototype.La=function(a){this.G.La.apply(this.G,[a].concat(g.v(g.Ea.apply(1,arguments))))};g.k=rW.prototype;g.k.vg=function(a,b){if(!this.j.has(a))return{};if("seek"===b)return b=this.G.S().K("html5_dai_enable_active_view_creating_completed_adblock"),qja(a,b),{};b=wya(b);if(null===b||this.G.S().K("enable_server_stitched_dai")&&2!==this.G.getPresentingPlayerType(!0))return{};var c=this.G.Ic();c=c&&(this.G.S().K("enable_server_stitched_dai")||2===c.getPlayerType())&&QE(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Ca.get().isFullscreen()};return xn(b,a,c)};
g.k.Qy=function(a){var b;null==(b=this.j.get(a.queryId))||b.Qy()};
g.k.Py=function(a){var b;null==(b=this.j.get(a.queryId))||b.Py()};
g.k.Ry=function(a){var b;null==(b=this.j.get(a.queryId))||b.Ry()};
g.k.Ny=function(a){var b;null==(b=this.j.get(a.queryId))||b.Ny()};
g.k.Oy=function(a){var b;null==(b=this.j.get(a.queryId))||b.Oy()};g.w(vW,DE);vW.prototype.j=function(){return this.C()};
vW.prototype.u=function(){return this.D()};
vW.prototype.K=function(a){return this.B(a)};wW.prototype.ri=function(){var a=this.G.Ic();return a&&(a=a.ri(1))?a:null};
wW.prototype.Di=function(a,b){"string"===typeof b?this.G.getVideoData(1).YI(a,b):this.G.getVideoData(1).ra(a,b)};g.w(BW,g.I);g.k=BW.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.Fi=function(){this.tF.clear();this.GH=null;this.G.S().K("html5_clear_timeline_storage_killswitch")||this.yd.get().clear()};
g.k.Vk=function(){};
g.k.Gf=function(a){var b=this.G.getVideoData(a);return b?KQa(this,b,a||this.G.getPresentingPlayerType(!0)):null};
g.k.F_=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.Di("ads_ssm_vdc_s",{pt:c,dvt:a});(qW(this.Ja.get())||this.Ja.get().G.S().K("html5_debug_client_stitched"))&&"dataloaded"!==a||LQa(this,b,c)};
g.k.c_=function(a,b){void 0!==a&&(this.GH=a,void 0===b?T("Expected ad video start time on SS video changed"):this.tF.set(a,b));var c=this.G.getPresentingPlayerType(!0),d=this.G.getVideoData(c);this.G.getVideoData(1).ra("ads_ssvc",{pt:c,cpn:null==d?void 0:d.clientPlaybackNonce,crtt:this.G.getCurrentTime(1,!1),atlh:this.G.isAtLiveHead(),adstt:b});d?LQa(this,d,c):T("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.G.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.ea=function(){this.listeners.length=0;this.vr=null;g.I.prototype.ea.call(this)};
g.k.Di=function(a,b){this.G.getVideoData(1).ra(a,b)};g.w(CW,g.I);g.k=CW.prototype;g.k.Fi=function(){var a=this;this.xr=qf(function(){a.G.isDisposed()||a.G.lf("ad",1)})};
g.k.Vk=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.playVideo=function(){this.G.playVideo()};
g.k.pauseVideo=function(){this.G.pauseVideo()};
g.k.resumeVideo=function(a){this.Nn(a)&&this.G.playVideo()};
g.k.Nn=function(a){return 2===this.G.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b){var c=this.Qa.get().GH;return 2!==a||b||null===c?this.G.getCurrentTime(a,b):DW(this,c)};
g.k.getVolume=function(){return this.G.getVolume()};
g.k.isMuted=function(){return this.G.isMuted()};
g.k.getPresentingPlayerType=function(){return this.G.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.G.getPlayerState(a)};
g.k.isFullscreen=function(){return this.G.isFullscreen()};
g.k.isAtLiveHead=function(){return this.G.isAtLiveHead()};
g.k.Tv=function(a){this.G.Tv(a)};
g.k.FZ=function(){var a=this.G.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(2===a){var c=g.r(this.listeners);for(a=c.next();!a.done;a=c.next())a.value.bj(b)}else if(1===a&&this.Ja.get().G.S().K("enable_lr_home_infeed_ads_inline_playback_progress_pings"))for(b=g.r(this.bB),a=b.next();!a.done;a=b.next());};
g.k.wZ=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Qj(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.r(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.gh=function(){for(var a=this.G.sf(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.gh(a)};
g.k.wb=function(){for(var a=this.G.Ya().xi(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Mj(a)};
g.k.Tk=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Tk(a)};g.w(QQa,g.I);GW.prototype.addListener=function(a){this.listeners.add(a)};
GW.prototype.removeListener=function(a){this.listeners.delete(a)};IW.prototype.Jx=function(){var a=this;TQa(this.j,function(){var b=X(a.slot.Aa,"metadata_type_ad_break_request_data");return a.Ne.get().fetch({eS:b.getAdBreakUrl,jN:new g.Av(b.PQ,b.OQ),wx:X(a.slot.Aa,"metadata_type_cue_point")})},function(){VQa(a)},function(b){b=b.hn;
2<=b.length&&T("Unexpected ad placement renderers length",a.slot,null,{length:b.length});b.some(function(c){var d,e,f,h;return!!(null==(d=c.renderer)?0:null==(e=d.linearAdSequenceRenderer)?0:null==(f=e.linearAds)?0:f.length)||!(null==(h=c.renderer)||!h.instreamVideoAdRenderer)})||VQa(a)})};
IW.prototype.IF=function(){UQa(this.j)};JW.prototype.Jx=function(){var a=this;TQa(this.j,function(){var b=X(a.slot.Aa,"metadata_type_ad_break_request_data");return a.Ne.get().fetch({eS:b.getAdBreakUrl,jN:new g.Av(b.PQ,b.OQ)})})};
JW.prototype.IF=function(){UQa(this.j)};KW.prototype.Jx=function(){COa(this.callback,this.slot,X(this.slot.Aa,"metadata_type_fulfilled_layout"))};
KW.prototype.IF=function(){QU(this.callback,this.slot,new Jv("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter."))};MW.prototype.Pe=function(a,b){return LW(b,{ke:["metadata_type_fulfilled_layout"]})?new KW(a,b):this.j(a,b)};g.w(NW,MW);NW.prototype.j=function(a,b){if(LW(b,{ke:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new IW(a,b,this.Ne,this.gb,this.ub,this.re);if(LW(b,{ke:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new JW(a,b,this.Ne,this.gb,this.ub);throw new Jv("Unsupported slot with type: "+b.slotType+" and client metadata: "+tT(b.Aa)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.w(OW,MW);OW.prototype.j=function(a,b){throw new Jv("Unsupported slot with type: "+b.slotType+" and client metadata: "+tT(b.Aa)+" in DefaultFulfillmentAdapterFactory.");};g.k=WQa.prototype;g.k.pd=function(){return this.slot};
g.k.Fb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.Ig(this.slot,a,new UU("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=X(a.Aa,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.Rc(this.slot,a),mra(this.j,this.slot,b)):T("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.k.Pf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Ig(this.slot,a,new UU("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.hd(this.slot,a,b)};QW.prototype.Pe=function(a,b,c,d){if(PW(d,{ke:["metadata_type_ad_break_response_data"],Af:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new WQa(a,c,d,this.j);throw new UU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tT(d.Aa)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};RW.prototype.vg=function(a){var b=this.D.get(a)||[];XQa(this,a,b);this.C.add(a)};g.k=YQa.prototype;g.k.pd=function(){return this.slot};
g.k.Fb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Ig(this.slot,a,new UU("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Rc(this.slot,a),UW(this.u,"impression"),kX(this.j,a.layoutId))};
g.k.Pf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Ig(this.slot,a,new UU("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.hd(this.slot,a,b)};XW.prototype.Pe=function(a,b,c,d){if(PW(d,ZQa()))return new YQa(a,c,d,this.Na,this.j);throw new UU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tT(d.Aa)+" in ForecastingLayoutRenderingAdapterFactory.");};g.w(YW,g.iu);g.k=YW.prototype;g.k.pd=function(){return this.u.slot};
g.k.Fb=function(){return this.u.layout};
g.k.init=function(){this.B.get().addListener(this)};
g.k.release=function(){this.B.get().removeListener(this);this.dispose()};
g.k.YG=function(){};
g.k.WG=function(){};
g.k.VG=function(){};
g.k.QB=function(){};
g.k.startRendering=function(a){var b=this;aRa(this.u,a,function(){var c=b.B.get();CRa(c,b.j,1)})};
g.k.Pf=function(a,b){var c=this;aRa(this.u,a,function(){var d=c.B.get();CRa(d,c.j,3);c.j=[];c.callback.hd(c.slot,a,b)})};
g.k.ea=function(){this.B.get().removeListener(this);g.iu.prototype.ea.call(this)};
g.ha.Object.defineProperties(YW.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.u.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.u.layout}}});g.w(bRa,hE);g.w(aX,YW);g.k=aX.prototype;g.k.Fg=function(a,b){$W("action-companion",a,this.J.get().ij,this.Na.get(),this.C,this.D,this.pd(),this.Fb(),b)};
g.k.startRendering=function(a){ZW(this.I,this.pd(),this.Fb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new bRa(b,c,d,e,f)},this.j);
YW.prototype.startRendering.call(this,a)};
g.k.Rc=function(a,b){b.layoutId===this.layout.layoutId?UW(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Na.get().ri():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.hd=function(){};
g.k.Hi=function(){};
g.k.Sj=function(){};
g.k.Rj=function(){};
g.k.Sf=function(){};
g.k.Tf=function(){};
g.k.Xk=function(){};
g.k.Yk=function(){};
g.k.Oj=function(){};
g.k.Pj=function(){};
g.k.dj=function(){};
g.k.ea=function(){this.df().je.delete(this);YW.prototype.ea.call(this)};g.w(bX,YW);bX.prototype.init=function(){YW.prototype.init.call(this);var a=X(this.layout.Aa,"metadata_type_ad_action_interstitial_renderer"),b=TW(this.C);this.j.push(new YE(a,b,this.layout.layoutId,{adsClientData:this.layout.xc},!0,!0))};
bX.prototype.startRendering=function(a){YW.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
bX.prototype.Fg=function(){};
bX.prototype.ea=function(){YW.prototype.ea.call(this)};g.w(cX,YW);g.k=cX.prototype;g.k.init=function(){YW.prototype.init.call(this);var a=X(this.layout.Aa,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.xc},c=!X(this.layout.Aa,"metadata_type_player_bytes_callback").cC;this.j.push(new sH(a,this.layout.layoutId,X(this.layout.Aa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.Vp=function(){this.C||this.Ca.get().resumeVideo(2)};
g.k.startRendering=function(a){YW.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a);this.D.Tt=this};
g.k.Pf=function(a,b){YW.prototype.Pf.call(this,a,b);CZ(this.D,this)};
g.k.Fg=function(a){if(eQa(this.I.get(),this.J))switch(a){case "visit-advertiser":this.Na.get().G.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.C||this.Ca.get().resumeVideo(2);break;case "ad-info-icon-button":(this.C=this.Ca.get().Nn(2))||this.Ca.get().pauseVideo();break;case "visit-advertiser":this.Ca.get().pauseVideo();X(this.layout.Aa,"metadata_type_player_bytes_callback").jD();
break;case "skip-button":if(a=X(this.layout.Aa,"metadata_type_player_bytes_callback"),a.cC)a.Zy(this.pd(),this.layout);else{var b;if(a=null==(b=X(this.layout.Aa,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current){b=this.pd();var c=this.layout,d=a.Ge[a.Ld];if(c.layoutId!==hX(d,b,c))T("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",d.pd(),d.Fb(),{requestingSlot:b,requestingLayout:c});else{var e=X(d.Fb().Aa,"metadata_type_ad_pod_skip_target");
e&&0<e&&e<a.Ge.length?gRa(a,d.pd(),d.Fb(),e):T("Invalid Ad Pod Skip Target index",d.pd(),d.Fb(),{requestingSlot:b,requestingLayout:c})}}}}};
g.k.ea=function(){YW.prototype.ea.call(this)};eX.prototype.Pe=function(a,b,c,d){if(a=dX(a,c,d,this.Ub,this.Ca,this.Na,this.u,this.j))return a;throw new UU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tT(d.Aa)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.w(fX,g.I);g.k=fX.prototype;g.k.init=function(){var a=X(this.Fb().Aa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ip()};
g.k.release=function(){var a=X(this.Fb().Aa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.hq()};
g.k.startRendering=function(a){a.layoutId!==this.Fb().layoutId?this.callback.Ig(this.pd(),a,new UU("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Fb().layoutId+("and LayoutType: "+this.Fb().layoutType))):(this.Ca.get().addListener(this),OU(this.df(),this),OQa(this.Ca.get()),this.Fd.get().EJ(),this.nq(a))};
g.k.Pf=function(a,b){this.hH=!0;this.oq(a,b);this.Ca.get().G.ao();this.le.get().G.cueVideoByPlayerVars({},2);a=sW(this.Ca.get(),1);g.V(a,4)&&!g.V(a,2)&&this.Ca.get().playVideo();this.Ca.get().removeListener(this);this.hH&&this.dP()};
g.k.hd=function(a,b){b.layoutId===this.Fb().layoutId&&(this.hH=!1,this.df().je.delete(this))};
g.k.Qj=function(a,b){if(a.state.isError()){var c,d;this.Ig(null==(c=a.state.getData())?void 0:c.errorCode,new UU("There was a player error during this media layout.",{playerErrorCode:null==(d=a.state.getData())?void 0:d.errorCode}),b)}else this.cQ(a)};
g.k.Hi=function(){};
g.k.Sj=function(){};
g.k.Rj=function(){};
g.k.Sf=function(){};
g.k.Tf=function(){};
g.k.Xk=function(){};
g.k.Yk=function(){};
g.k.Oj=function(){};
g.k.Pj=function(){};
g.k.dj=function(){};
g.k.Tk=function(){};g.w(gX,fX);g.k=gX.prototype;g.k.pd=function(){return this.slot};
g.k.Fb=function(){return this.layout};
g.k.Ip=function(){if(1>=this.Ge.length)throw new Jv("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Ge.length)});var a=X(this.Fb().Aa,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=this);a=g.r(this.Ge);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),YU(this.j,this.slot,b.Fb()),ZU(this.j,this.slot,b.Fb())};
g.k.hq=function(){var a=X(this.Fb().Aa,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=null);a=g.r(this.Ge);for(var b=a.next();!b.done;b=a.next())b=b.value,kF(this.j,this.slot,b.Fb()),b.release()};
g.k.ys=function(a,b){var c=this.Ge[this.Ld];b.layoutId!==hX(c,a,b)?T("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.ys()};
g.k.Js=function(a,b){var c=this.Ge[this.Ld];b.layoutId!==hX(c,a,b)?T("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Js()};
g.k.Zy=function(a,b){var c=this.Ge[this.Ld];b.layoutId!==hX(c,a,b)?T("onSkipRequested for a PlayerBytes layout that is not currently active",c.pd(),c.Fb(),{requestingSlot:a,requestingLayout:b}):jX(this,c.pd(),c.Fb(),"skipped")};
g.k.nq=function(){-1===this.Ld&&iX(this,this.Ld+1)};
g.k.o_=function(a,b){$U(this.j,a,b)};
g.k.oq=function(a,b){var c=this;this.Ld!==this.Ge.length?(a=this.Ge[this.Ld],a.Pf(a.Fb(),b),this.B=function(){c.callback.hd(c.slot,c.layout,b)}):this.callback.hd(this.slot,this.layout,b)};
g.k.Rc=function(a,b){var c=this.Ge[this.Ld];c&&c.Rc(a,b)};
g.k.hd=function(a,b,c){fX.prototype.hd.call(this,a,b,c);var d=this.Ge[this.Ld];d&&d.hd(a,b,c)};
g.k.dP=function(){var a=this.Ge[this.Ld];a&&a.PB()};
g.k.bj=function(a){var b=this.Ge[this.Ld];b&&b.bj(a)};
g.k.cQ=function(a){var b=this.Ge[this.Ld];b&&b.Qj(a)};
g.k.Ig=function(a,b){-1===this.Ld&&(this.callback.Rc(this.slot,this.layout),this.Ld++);var c=this.Ge[this.Ld];c?c.Ly(a,b):T("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Ld),layoutId:this.Fb().layoutId})};
g.k.onFullscreenToggled=function(a){var b=this.Ge[this.Ld];if(b)b.onFullscreenToggled(a)};
g.k.gh=function(a){var b=this.Ge[this.Ld];b&&b.gh(a)};
g.k.Mj=function(a){var b=this.Ge[this.Ld];b&&b.Mj(a)};
g.k.onVolumeChange=function(){var a=this.Ge[this.Ld];if(a)a.onVolumeChange()};
g.k.q_=function(a,b,c){jX(this,a,b,c)};
g.k.p_=function(a,b){jX(this,a,b,"error")};g.w(oX,g.I);g.k=oX.prototype;g.k.pd=function(){return this.slot};
g.k.Fb=function(){return this.layout};
g.k.init=function(){var a=X(this.layout.Aa,"metadata_type_video_length_seconds"),b=X(this.layout.Aa,"metadata_type_active_view_traffic_type");nE(this.layout.Qb)&&tW(this.Cb.get(),this.layout.layoutId,b,a,this);zW(this.Na.get(),this);this.Ip()};
g.k.release=function(){nE(this.layout.Qb)&&uW(this.Cb.get(),this.layout.layoutId);AW(this.Na.get(),this);this.hq()};
g.k.ys=function(){};
g.k.Js=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Ig(this.slot,a,new UU("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.u="rendering_start_requested",aya(this.cf.get(),1)?(this.C(-1),this.nq(a),this.au(!1)):this.Ly("ui_unstable",new UU("Failed to render media layout because ad ui unstable.")))};
g.k.Rc=function(a,b){if(b.layoutId===this.layout.layoutId){this.u="rendering";UW(this.j,"impression");UW(this.j,"start");if(this.Ca.get().isMuted()){UW(this.j,"mute");var c;a=(null==(c=nX(this))?void 0:c.muteCommands)||[];this.Eb.get().yf(a,this.layout.layoutId)}if(this.Ca.get().isFullscreen()){this.j.vg("fullscreen");var d;c=(null==(d=nX(this))?void 0:d.fullscreenCommands)||[];this.Eb.get().yf(c,this.layout.layoutId)}this.D=this.Ca.get().isMuted()||0===this.Ca.get().getVolume();pX(this,"unmuted_impression");
pX(this,"unmuted_start");this.Ca.get().isFullscreen()&&rX(this,"unmuted_fullscreen");this.Fd.get().oJ();this.C(1);this.QP();var e;d=(null==(e=nX(this))?void 0:e.impressionCommands)||[];this.Eb.get().yf(d,this.layout.layoutId)}};
g.k.Ly=function(a,b,c){this.oa={RD:3,Wz:"load_timeout"===a?402:400,errorMessage:b.message};X(this.layout.Aa,"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR")&&T("There is a player error in this survey ads",this.pd(),this.Fb(),{playerType:String(c)});UW(this.j,"error");pX(this,"unmuted_error");var d;a=(null==(d=nX(this))?void 0:d.errorCommands)||[];this.Eb.get().yf(a,this.layout.layoutId);this.callback.Ig(this.slot,this.layout,b)};
g.k.PB=function(){this.N()};
g.k.cO=function(){if("rendering"===this.u){UW(this.j,"pause");rX(this,"unmuted_pause");var a,b=(null==(a=nX(this))?void 0:a.pauseCommands)||[];this.Eb.get().yf(b,this.layout.layoutId);this.C(2)}};
g.k.dO=function(){if("rendering"===this.u){UW(this.j,"resume");rX(this,"unmuted_resume");var a,b=(null==(a=nX(this))?void 0:a.resumeCommands)||[];this.Eb.get().yf(b,this.layout.layoutId)}};
g.k.Pf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Ig(this.slot,a,new UU("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):"rendering_stop_requested"!==this.u&&(this.u="rendering_stop_requested",this.J=b,this.oq(a,b))};
g.k.hd=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.u="not_rendering",this.J=void 0,(a="normal"!==c||this.position+1===this.Y)&&this.au(a),this.RP(c),this.C(0),c){case "abandoned":if(WW(this.j,"impression")){UW(this.j,"abandon");pX(this,"unmuted_abandon");var d,e=(null==(d=nX(this))?void 0:d.abandonCommands)||[];this.Eb.get().yf(e,this.layout.layoutId)}break;case "normal":UW(this.j,"complete");pX(this,"unmuted_complete");d=(null==(e=nX(this))?void 0:e.completeCommands)||[];this.Eb.get().yf(d,
this.layout.layoutId);break;case "skipped":UW(this.j,"skip");var f;d=(null==(f=nX(this))?void 0:f.skipCommands)||[];this.Eb.get().yf(d,this.layout.layoutId)}};
g.k.Tx=function(){return this.layout.layoutId};
g.k.vG=function(){return this.oa};
g.k.Qj=function(a){if("not_rendering"!==this.u){this.W||(a=new g.TE(a.state,new g.zF),this.W=!0);var b=2===this.Ca.get().getPresentingPlayerType();"rendering_start_requested"===this.u?b&&lX(a)&&this.V():b?g.VE(a,2)?this.FL():(lX(a)?this.C(1):g.VE(a,4)&&!g.VE(a,2)&&this.cO(),0>UE(a,4)&&!(0>UE(a,2))&&this.dO()):this.PB()}};
g.k.Qy=function(){if("rendering"===this.u){UW(this.j,"active_view_measurable");var a,b=(null==(a=nX(this))?void 0:a.activeViewMeasurableCommands)||[];this.Eb.get().yf(b,this.layout.layoutId)}};
g.k.Py=function(){if("rendering"===this.u){UW(this.j,"active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=nX(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.Eb.get().yf(b,this.layout.layoutId)}};
g.k.Ry=function(){if("rendering"===this.u){UW(this.j,"active_view_viewable");var a,b=(null==(a=nX(this))?void 0:a.activeViewViewableCommands)||[];this.Eb.get().yf(b,this.layout.layoutId)}};
g.k.Ny=function(){if("rendering"===this.u){UW(this.j,"audio_audible");var a,b=(null==(a=nX(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.Eb.get().yf(b,this.layout.layoutId)}};
g.k.Oy=function(){if("rendering"===this.u){UW(this.j,"audio_measurable");var a,b=(null==(a=nX(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.Eb.get().yf(b,this.layout.layoutId)}};
g.k.au=function(a){this.Fd.get().au(X(this.layout.Aa,"metadata_type_ad_placement_config").kind,a,this.position,this.Y,!1)};
g.k.onFullscreenToggled=function(a){if("rendering"===this.u)if(a){this.j.vg("fullscreen");rX(this,"unmuted_fullscreen");var b,c=(null==(b=nX(this))?void 0:b.fullscreenCommands)||[];this.Eb.get().yf(c,this.layout.layoutId)}else this.j.vg("end_fullscreen"),rX(this,"unmuted_end_fullscreen"),b=(null==(c=nX(this))?void 0:c.endFullscreenCommands)||[],this.Eb.get().yf(b,this.layout.layoutId)};
g.k.onVolumeChange=function(){if("rendering"===this.u)if(this.Ca.get().isMuted()){UW(this.j,"mute");pX(this,"unmuted_mute");var a,b=(null==(a=nX(this))?void 0:a.muteCommands)||[];this.Eb.get().yf(b,this.layout.layoutId)}else UW(this.j,"unmute"),pX(this,"unmuted_unmute"),a=(null==(b=nX(this))?void 0:b.unmuteCommands)||[],this.Eb.get().yf(a,this.layout.layoutId)};
g.k.gh=function(){};
g.k.Mj=function(){};
g.k.Tk=function(){};g.w(sX,oX);g.k=sX.prototype;g.k.Ip=function(){};
g.k.hq=function(){var a=this.Na.get();a.AD===this&&(a.AD=null);this.timer.stop()};
g.k.nq=function(){jW(this.Ja.get(),"enable_post_ad_perception_survey_in_desktop")&&OQa(this.Ca.get());this.Na.get().AD=this;Cw("pbp")||Cw("pbs")||Dw("pbp");Cw("pbp","watch")||Cw("pbs","watch")||Dw("pbp",void 0,"watch");this.V()};
g.k.QP=function(){lRa(this)};
g.k.FL=function(){};
g.k.ys=function(){this.timer.stop();oX.prototype.cO.call(this)};
g.k.Js=function(){lRa(this);oX.prototype.dO.call(this)};
g.k.Iu=function(){return X(this.Fb().Aa,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.oq=function(){this.timer.stop()};
g.k.Sb=function(){var a=Date.now(),b=a-this.B;this.B=a;this.Ll+=b;this.Ll>=this.Iu()?(this.Ll=this.Iu(),qX(this,this.Ll/1E3,!0),tX(this,this.Ll),this.N()):(qX(this,this.Ll/1E3),tX(this,this.Ll))};
g.k.RP=function(){};
g.k.bj=function(){};g.w(uX,oX);g.k=uX.prototype;g.k.Ip=function(){X(this.Fb().Aa,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=X(this.Fb().Aa,"metadata_type_shrunken_player_bytes_config")};
g.k.hq=function(){X(this.Fb().Aa,"metadata_type_player_bytes_callback_ref").current=null;this.B&&this.hc.get().removeCueRange(this.B);this.B=void 0;this.I.dispose()};
g.k.nq=function(a){var b=X(a.Aa,"metadata_type_ad_video_id"),c=X(a.Aa,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.kf.get().G.S().W.add(b,{qx:c});(b=X(a.Aa,"metadata_type_sodar_extension_data"))&&RQa(this.Zd.get(),b);PQa(this.Ca.get(),!1);b=this.le.get();a=X(a.Aa,"metadata_type_player_vars");b.G.cueVideoByPlayerVars(a,2);this.I.start();this.le.get().G.playVideo(2)};
g.k.QP=function(){this.I.stop();this.B="adcompletioncuerange:"+this.Fb().layoutId;this.hc.get().addCueRange(this.B,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var a;(this.adCpn=(null==(a=this.Qa.get().Gf(2))?void 0:a.clientPlaybackNonce)||"")||T("Media layout confirmed started, but ad CPN not set.");this.Vc.get().La("onAdStart",this.adCpn)};
g.k.FL=function(){this.N()};
g.k.Iu=function(){var a;return null==(a=this.Qa.get().Gf(2))?void 0:a.playbackDurationMs};
g.k.jD=function(){this.j.vg("clickthrough")};
g.k.oq=function(){this.I.stop();PQa(this.Ca.get(),!0);var a;(null==(a=this.shrunkenPlayerBytesConfig)?0:a.shouldRequestShrunkenPlayerBytes)&&this.Ca.get().Tv(!1)};
g.k.onCueRangeEnter=function(a){a!==this.B?T("Received CueRangeEnter signal for unknown layout.",this.pd(),this.Fb(),{cueRangeId:a}):(this.hc.get().removeCueRange(this.B),this.B=void 0,a=X(this.Fb().Aa,"metadata_type_video_length_seconds"),qX(this,a,!0),UW(this.j,"complete"))};
g.k.RP=function(a){"abandoned"!==a&&this.Vc.get().La("onAdComplete");this.Vc.get().La("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.bj=function(a){"rendering"===this.u&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ca.get().Tv(!0),qX(this,a))};g.w(vX,fX);g.k=vX.prototype;g.k.pd=function(){return this.j.pd()};
g.k.Fb=function(){return this.j.Fb()};
g.k.Ip=function(){this.j.init()};
g.k.hq=function(){this.j.release()};
g.k.ys=function(){this.j.ys()};
g.k.Js=function(){this.j.Js()};
g.k.Zy=function(a,b){T("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.pd(),this.Fb(),{requestingSlot:a,requestingLayout:b})};
g.k.nq=function(a){this.j.startRendering(a)};
g.k.oq=function(a,b){this.j.Pf(a,b)};
g.k.Rc=function(a,b){this.j.Rc(a,b)};
g.k.hd=function(a,b,c){fX.prototype.hd.call(this,a,b,c);this.j.hd(a,b,c);b.layoutId===this.Fb().layoutId&&this.Fd.get().Vv()};
g.k.dP=function(){this.j.PB()};
g.k.bj=function(a){this.j.bj(a)};
g.k.cQ=function(a){this.j.Qj(a)};
g.k.Ig=function(a,b,c){this.j.Ly(a,b,c)};
g.k.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)};
g.k.gh=function(a){this.j.gh(a)};
g.k.Mj=function(a){this.j.Mj(a)};
g.k.onVolumeChange=function(){this.j.onVolumeChange()};wX.prototype.Pe=function(a,b,c,d){if(a=oRa(a,b,c,d,this.df,this.j,this.Na,this.Cb,this.Zd,this.le,this.Qa,this.Ca,this.hc,this.Fd,this.Vc,this.cf,this.Eb,this.kf,this.Ja))return a;throw new UU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tT(d.Aa)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.w(xX,g.I);g.k=xX.prototype;g.k.SP=function(a){if(!this.j){var b;null==(b=this.re)||b.get().bq(a.identifier);return!1}pRa(this,this.j,a);return!0};
g.k.KP=function(){};
g.k.Fi=function(a){this.j&&this.j.contentCpn!==a&&(T("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.k.Vk=function(a){this.j&&this.j.contentCpn!==a&&T("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.ea=function(){g.I.prototype.ea.call(this);this.j=null};g.w(yX,g.I);g.k=yX.prototype;g.k.Rc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&cF(b,this.B)){var d=this.Qa.get().Gf(2),e=this.j(b,d);e?iv(this.Pb.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[tQa(c.yb.get(),e.contentCpn,e.cw,function(h){return c.u(h.slotId,"core",e,yT(c.ub.get(),h))},e.sO)];
e.instreamAdPlayerUnderlayRenderer&&DQa(c.Ja.get())&&f.push(qRa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):T("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.Hi=function(){};
g.k.Sj=function(){};
g.k.Sf=function(){};
g.k.Rj=function(){};
g.k.Tf=function(){};
g.k.Xk=function(){};
g.k.Yk=function(){};
g.k.Oj=function(){};
g.k.Pj=function(){};
g.k.dj=function(){};
g.k.hd=function(){};var wY=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=uRa.prototype;g.k.init=function(){};
g.k.pd=function(){return this.slot};
g.k.lB=function(){this.callback.Sf(this.slot)};
g.k.nB=function(){this.callback.Tf(this.slot)};
g.k.release=function(){};AX.prototype.Pe=function(a,b){return new uRa(a,b)};g.k=vRa.prototype;g.k.init=function(){};
g.k.pd=function(){return this.slot};
g.k.lB=function(){EW(this.Ca.get(),"ad-showing");this.callback.Sf(this.slot)};
g.k.nB=function(){this.callback.Tf(this.slot);FW(this.Ca.get(),"ad-showing")};
g.k.release=function(){};g.k=wRa.prototype;g.k.init=function(){};
g.k.pd=function(){return this.slot};
g.k.lB=function(){EW(this.Ca.get(),"ad-showing");EW(this.Ca.get(),"ad-interrupting");this.u=this.Ca.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.Sf(this.slot)};
g.k.nB=function(){FW(this.Ca.get(),"ad-showing");FW(this.Ca.get(),"ad-interrupting");var a=this.u?Infinity:this.Ca.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ca.get().G.seekTo(a,void 0,void 0,1);this.callback.Tf(this.slot)};
g.k.release=function(){};g.k=xRa.prototype;g.k.init=function(){};
g.k.pd=function(){return this.slot};
g.k.lB=function(){EW(this.Ca.get(),"ad-showing");EW(this.Ca.get(),"ad-interrupting");this.callback.Sf(this.slot)};
g.k.nB=function(){this.Ca.get().xr();FW(this.Ca.get(),"ad-showing");FW(this.Ca.get(),"ad-interrupting");this.callback.Tf(this.slot)};
g.k.release=function(){this.Ca.get().xr()};BX.prototype.Pe=function(a,b){if(kv(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new vRa(a,b,this.Ca);if(b.Lb instanceof OV&&kv(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new wRa(a,b,this.Ca);if(kv(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new xRa(a,b,this.Ca);throw new Jv("Unsupported slot with type "+b.slotType+" and client metadata: "+(tT(b.Aa)+" in PlayerBytesSlotAdapterFactory."));};g.w(DX,g.I);DX.prototype.j=function(a){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof xV&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.wf===a&&b.push(d)}b.length?aV(this.ME(),b):T("Mute requested but no registered triggers can be activated.")};g.w(EX,DX);g.k=EX.prototype;g.k.Fg=function(a,b){if(b)if("survey-submit"===a)yRa(this,b);else if("skip-button"===a){a=[];for(var c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof xV&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.wf===b&&a.push(d)}a.length&&aV(this.ME(),a)}else"survey-single-select-answer-button"===a&&yRa(this,b)};
g.k.YG=function(a){DX.prototype.j.call(this,a)};
g.k.Yj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new Jv("Tried to register duplicate trigger for slot.");if(!(b instanceof yV||b instanceof xV))throw new Jv("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Mb.set(b.triggerId,new CX(a,b,c,d))};
g.k.hk=function(a){this.Mb.delete(a.triggerId)};
g.k.WG=function(){};
g.k.VG=function(){};
g.k.QB=function(){};g.w(FX,g.I);g.k=FX.prototype;
g.k.Yj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new Jv("Tried to register duplicate trigger for slot.");if(!(b instanceof $V||b instanceof aW||b instanceof bW||b instanceof cW||b instanceof dW||b instanceof eW||b instanceof SV||b instanceof XV||b instanceof wV||b instanceof FV||b instanceof RV||b instanceof WV))throw new Jv("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new CX(a,b,c,d);this.Mb.set(b.triggerId,a);b instanceof
dW&&this.D.has(b.Sg)&&aV(this.j(),[a]);b instanceof $V&&this.B.has(b.Sg)&&aV(this.j(),[a]);b instanceof XV&&this.u.has(b.wf)&&aV(this.j(),[a])};
g.k.hk=function(a){this.Mb.delete(a.triggerId)};
g.k.Hi=function(a){this.D.add(a.slotId);for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof dW&&a.slotId===d.trigger.Sg&&b.push(d);0<b.length&&aV(this.j(),b)};
g.k.Sj=function(a){this.D.delete(a.slotId);for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof eW&&e.Sg===a.slotId&&b.push(d)}0<b.length&&aV(this.j(),b)};
g.k.Rj=function(a){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof SV&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&aV(this.j(),b)};
g.k.Sf=function(a){this.B.add(a.slotId);for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof $V&&a.slotId===d.trigger.Sg&&b.push(d);0<b.length&&aV(this.j(),b)};
g.k.Tf=function(a){this.B.delete(a.slotId);this.C.add(a.slotId);for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof aW)a.slotId===d.trigger.Sg&&b.push(d);else if(d.trigger instanceof WV){var e=d.trigger;a.slotId===e.slotId&&this.u.has(e.wf)&&b.push(d)}0<b.length&&aV(this.j(),b)};
g.k.Xk=function(a){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof bW&&a.slotId===d.trigger.Sg&&b.push(d);0<b.length&&aV(this.j(),b)};
g.k.Yk=function(a){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof cW&&a.slotId===d.trigger.Sg&&b.push(d);0<b.length&&aV(this.j(),b)};
g.k.Oj=function(a,b){this.I.add(b.layoutId)};
g.k.Pj=function(a,b){this.I.delete(b.layoutId)};
g.k.Rc=function(a,b){this.u.add(b.layoutId);for(var c=[],d=g.r(this.Mb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof XV)b.layoutId===e.trigger.wf&&c.push(e);else if(e.trigger instanceof RV){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof WV&&(f=e.trigger,b.layoutId===f.wf&&this.C.has(f.slotId)&&c.push(e));0<c.length&&aV(this.j(),c)};
g.k.hd=function(a,b,c){this.u.delete(b.layoutId);a=[];for(var d=g.r(this.Mb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof wV&&b.layoutId===e.trigger.wf&&a.push(e),e.trigger instanceof FV){var f=e.trigger;b.layoutId===f.wf&&c===f.j&&a.push(e)}0<a.length&&aV(this.j(),a)};
g.k.dj=function(){};
g.k.Fi=function(){this.C.clear()};
g.k.Vk=function(){};g.w(GX,g.I);GX.prototype.Yj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new Jv("Tried to register duplicate trigger for slot.");if(!(b instanceof lv||b instanceof AV))throw new Jv("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Mb.set(b.triggerId,new CX(a,b,c,d))};
GX.prototype.hk=function(a){this.Mb.delete(a.triggerId)};
GX.prototype.Fi=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.r(this.Mb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof lv&&l.trigger.Do===a&&f.push(l);e.call(d,b,g.v(f));b.push.apply(b,g.v(zRa(this.Mb,a,!1,c)));b.length&&aV(this.j(),b)};
GX.prototype.Vk=function(a){var b=[];b.push.apply(b,g.v(zRa(this.Mb,a,!0,!1)));b.length&&aV(this.j(),b)};g.w(HX,g.I);g.k=HX.prototype;
g.k.Yj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new Jv("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof OV)IX(this,a,b,c,d,e,b.j.start,b.j.end,b.Do,b.visible);else if(b instanceof YV)IX(this,a,b,c,d,e,b.j.start,b.j.end,b.Do,!1);else if(b instanceof VV)IX(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Do,b.visible);else throw new Jv("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
};
g.k.hk=function(a){var b=this.Mb.get(a.triggerId);b&&this.hc.get().removeCueRange(b.fB);this.Mb.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a){if(a=ARa(this,a))if(a=this.Mb.get(a))if(g.V(sW(this.Ca.get()),32))this.j.add(a.fB);else{var b=null==a?void 0:a.bundle.trigger;(b instanceof OV||b instanceof VV)&&aV(this.u(),[a.bundle])}};
g.k.onCueRangeExit=function(a){if(a=ARa(this,a))if(a=this.Mb.get(a))this.j.delete(a.fB),a.bundle.trigger instanceof YV&&aV(this.u(),[a.bundle])};
g.k.Qj=function(a){if(0>UE(a,16)){a=g.r(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value);this.j.clear()}};
g.k.bj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.gh=function(){};
g.k.Mj=function(){};
g.k.onVolumeChange=function(){};
g.k.Tk=function(){};g.w(JX,g.I);g.k=JX.prototype;g.k.Yj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new Jv("Tried to register duplicate trigger for slot.");if(!(b instanceof BV||b instanceof ZV))throw new Jv("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Mb.set(b.triggerId,new CX(a,b,c,d))};
g.k.hk=function(a){this.Mb.delete(a.triggerId)};
g.k.gp=function(){};
g.k.cm=function(){};
g.k.Rc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.j?T("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.j=b.layoutId)};
g.k.hd=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(this.j=null)};
g.k.Hi=function(){};
g.k.Sj=function(){};
g.k.Rj=function(){};
g.k.Sf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.u?T("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)};
g.k.Tf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null===this.u?T("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)};
g.k.Xk=function(){};
g.k.Yk=function(){};
g.k.Oj=function(){};
g.k.Pj=function(){};
g.k.dj=function(){};
g.k.VA=function(){null!=this.j&&kX(this,this.j)};
g.k.qB=function(a){if(null===this.u){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof ZV&&d.trigger.slotId===a&&b.push(d);b.length&&aV(this.B(),b)}};g.w(KX,g.I);g.k=KX.prototype;g.k.dj=function(a,b){for(var c=[],d=g.r(this.Mb.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&&aV(this.j(),c)};
g.k.Yj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new Jv("Tried to register duplicate trigger for slot.");if(!(b instanceof gQa))throw new Jv("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Mb.set(b.triggerId,new CX(a,b,c,d))};
g.k.hk=function(a){this.Mb.delete(a.triggerId)};
g.k.Hi=function(){};
g.k.Sj=function(){};
g.k.Rj=function(){};
g.k.Sf=function(){};
g.k.Tf=function(){};
g.k.Xk=function(){};
g.k.Yk=function(){};
g.k.Oj=function(){};
g.k.Pj=function(){};
g.k.Rc=function(){};
g.k.hd=function(){};g.w(LX,g.I);LX.prototype.ea=function(){this.Cm.get().removeListener(this);g.I.prototype.ea.call(this)};g.w(MX,g.I);MX.prototype.ea=function(){this.pe.get().removeListener(this);g.I.prototype.ea.call(this)};NX.prototype.fetch=function(a){var b=a.jN;return this.Nq.fetch(a.eS,{wx:void 0===a.wx?void 0:a.wx,Md:b}).then(function(c){return BRa(c,b)})};g.w(OX,g.I);g.k=OX.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.onAdUxClicked=function(a,b){PX(this,function(c){c.Fg(a,b)})};
g.k.cI=function(a){PX(this,function(b){b.WG(a)})};
g.k.bI=function(a){PX(this,function(b){b.VG(a)})};
g.k.cY=function(a){PX(this,function(b){b.QB(a)})};g.w(QX,g.I);g.k=QX.prototype;
g.k.Fi=function(){this.C=new nF(this,CQa(this.Ja.get()));this.u=new oF;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.jI,this),b.subscribe("cuepointupdated",this.jI,this),this.j=b)}this.HD.length=0;var d;b=(null==(d=a.j)?void 0:wua(d,0))||[];d=g.r(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.Xp(b)&&T("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
g.k.Vk=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.xI=function(a){this.HD.push(a);for(var b=!1,c=g.r(this.listeners),d=c.next();!d.done;d=c.next())b=d.value.SP(a)||b;this.B=b};
g.k.LP=function(a){g.pc(this.u.j,1E3*a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.KP(a)};
g.k.Xp=function(a){ERa(this,a);this.C.reduce(a);a=this.B;this.B=!1;return a};
g.k.jI=function(a){var b=this.G.getVideoData(1).isDaiEnabled();if(b||!g.UB(this.G.S())){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,ERa(this,c),b?this.C.reduce(c):0!==this.G.getCurrentTime(1)&&"start"===c.event&&this.xI(c)}};
g.k.ea=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.jI,this),this.j=null);this.listeners.length=0;this.HD.length=0;g.I.prototype.ea.call(this)};TX.prototype.addListener=function(a){this.listeners.push(a)};
TX.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=GRa.prototype;g.k.pd=function(){return this.slot};
g.k.Fb=function(){return this.layout};
g.k.init=function(){this.Ca.get().addListener(this);this.Ca.get().bB.push(this)};
g.k.release=function(){this.Ca.get().removeListener(this);MQa(this.Ca.get(),this)};
g.k.startRendering=function(a){this.callback.Rc(this.slot,a)};
g.k.Pf=function(a,b){this.callback.hd(this.slot,a,b)};
g.k.Tk=function(a){switch(a.id){case "part2viewed":UW(this.j,"start");break;case "videoplaytime25":UW(this.j,"first_quartile");break;case "videoplaytime50":UW(this.j,"midpoint");break;case "videoplaytime75":UW(this.j,"third_quartile");break;case "videoplaytime100":UW(this.j,"complete");break;case "engagedview":UW(this.j,"progress");break;default:T("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.Mj=function(){};
g.k.gh=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Qj=function(){};
g.k.bj=function(){};HRa.prototype.Pe=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.r(SW()),f=e.next();!f.done;f=e.next())b.push(f.value);if(PW(d,{ke:b,Af:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new GRa(a,c,d,this.Ca,this.Na);throw new UU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tT(d.Aa)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.k=UX.prototype;g.k.pd=function(){return this.slot};
g.k.Fb=function(){return this.layout};
g.k.init=function(){this.Ae.get().addListener(this);this.Ca.get().addListener(this);this.Ip();var a=X(this.layout.Aa,"metadata_type_layout_enter_ms"),b=X(this.layout.Aa,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Qa.get().vr)?void 0:c.clientPlaybackNonce;c=this.layout.xc.adClientDataEntry;yW(this.Na.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.Ae.get();e=pF(e.u,a,b);null!==e&&(yW(this.Na.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.re.get().er(e,b))};
g.k.release=function(){this.hq();this.Ae.get().removeListener(this);this.Ca.get().removeListener(this)};
g.k.startRendering=function(){this.nq();this.callback.Rc(this.slot,this.layout)};
g.k.Pf=function(a,b){this.oq(b);null!==this.driftRecoveryMs&&(VX(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(IRa(this)-X(this.layout.Aa,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ca.get().G.wp()).toString()}),this.driftRecoveryMs=null);this.callback.hd(this.slot,this.layout,b)};
g.k.SP=function(){return!1};
g.k.KP=function(a){var b=X(this.layout.Aa,"metadata_type_layout_enter_ms"),c=X(this.layout.Aa,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;yW(this.Na.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.Qa.get().vr)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.xc.adClientDataEntry}});this.re.get().er(a,c)}};
g.k.bj=function(a){this.zP(a);a=this.Ca.get().getCurrentTimeSec(2,!0);if(eQa(this.D.get(),this.layout.layoutId)){var b=X(this.layout.Aa,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=IRa(this),e=this.Ca.get().G.wp(),f=Math.min(a+e,d/1E3);f<=a?VX(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(VX(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-
b).toString(),driftFromHeadMs:Math.round(1E3*e).toString(),appliedDriftRecoveryMs:Math.round(1E3*a-b).toString(),destinationMs:Math.round(1E3*f-b).toString()}),this.Ca.get().G.seekTo(f,void 0,void 0,1))}}};
g.k.gh=function(){};
g.k.Mj=function(){};
g.k.onVolumeChange=function(){};
g.k.Tk=function(){};g.w(WX,UX);g.k=WX.prototype;g.k.Ip=function(){this.Qa.get().addListener(this);this.C.forEach(function(a){a.init()});
null!=this.B&&this.Na.get().Di("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
g.k.hq=function(){this.Qa.get().removeListener(this);this.u=null;this.C.forEach(function(a){a.release()})};
g.k.nq=function(){if(this.u)T("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=null==(a=this.Qa.get().vr)?void 0:a.layoutId;KRa(this,b)}};
g.k.oq=function(a){var b,c,d,e;null==(d=this.u)||null==(e=d.wj)||e.Pf(null==(b=this.u)?void 0:null==(c=b.wj)?void 0:c.Fb(),a);this.u=null};
g.k.YP=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;this.Na.get().Di("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.B+";slrs."+!!this.u+";slrslid."+(null==(c=this.u)?void 0:null==(d=c.wj)?void 0:d.Fb().layoutId))}var e;if(this.u&&(null==(e=this.u.wj)?void 0:e.Fb().layoutId)!==a){var f,h;null==(h=this.u.wj)||h.Pf(null==(f=this.u.wj)?void 0:f.Fb(),"normal");KRa(this,a)}};
g.k.zP=function(){};
g.k.Qj=function(){};
g.k.onFullscreenToggled=function(){};g.k=VRa.prototype;g.k.pd=function(){return this.slot};
g.k.Fb=function(){return this.layout};
g.k.init=function(){var a=this;X(this.layout.Aa,"metadata_type_player_bytes_callback_ref").current=this;this.Ac=LRa(this.slot,this.layout,X(this.layout.Aa,"metadata_type_player_vars"),X(this.layout.Aa,"metadata_type_layout_enter_ms"),X(this.layout.Aa,"metadata_type_layout_exit_ms"),1E3*X(this.layout.Aa,"metadata_type_video_length_seconds"),this.re.get(),this.yd.get(),function(){var e=Object,f=e.assign,h=$X(a.layout);var l=X(a.slot.Aa,"metadata_type_fulfilled_layout");l=Object.assign({},$X(l),{adPlacementConfig:X(l.Aa,
"metadata_type_ad_placement_config"),subLayouts:X(l.Aa,"metadata_type_sub_layouts").map($X)});return f.call(e,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},h,{compositeLayout:l,hasSurveyOverlay:jv(a.layout.Aa,"metadata_type_survey_overlay"),surveyOverlay:X(a.layout.Aa,"metadata_type_survey_overlay")})},this.Na.get());
this.Ca.get().addListener(this);var b=X(this.layout.Aa,"metadata_type_video_length_seconds"),c=X(this.layout.Aa,"metadata_type_active_view_traffic_type"),d=nE(this.layout.Qb);this.Ja.get().G.S().experiments.fb("html5_disable_lidar")&&this.Na.get().Di("ads_av","lid."+this.layout.layoutId+";enab."+d);d&&tW(this.Cb.get(),this.layout.layoutId,c,b,this);YU(this.callback,this.slot,this.layout);ZU(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Ca.get().removeListener(this);nE(this.layout.Qb)&&uW(this.Cb.get(),this.layout.layoutId);this.Ja.get().G.S().K("html5_unschedule_dai_media_sublayout_killswitch")||kF(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;jv(this.layout.Aa,"metadata_type_survey_overlay")&&this.Na.get().Di("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.u)T("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:jv(this.layout.Aa,"metadata_type_survey_overlay"),surveyOverlay:X(this.layout.Aa,"metadata_type_survey_overlay")});else{this.u={Qk:null,Az:!1};this.Ja.get().G.S().experiments.fb("html5_disable_sodar_for_tvhtml5")||MRa(this.slot,this.layout,
this.Zd.get());UW(this.j,"start");if(qW(this.Ja.get())){var b=sW(this.Ca.get()),c=X(this.layout.Aa,"metadata_type_video_length_seconds"),d=this.Ca.get().getCurrentTimeSec(2,!1);NRa(this.j,this.u.Qk,b,c,d,function(){return void XRa(a,"teois")})}$U(this.callback,this.slot,this.layout);
jv(this.layout.Aa,"metadata_type_survey_overlay")&&this.Na.get().Di("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.Pf=function(a,b){var c=this;if(this.u){if(qW(this.Ja.get()))if(null===this.Ac)T("Unexpected media sub layout exited without a timeline playback ID");else{a=X(this.layout.Aa,"metadata_type_video_length_seconds");var d=DW(this.Ca.get(),this.Ac);this.j.B=d;YX(this.j,null,this.u.Qk,a,d,function(e){return void WRa(c,e,"fue")})}this.u=null;
fF(this.callback,this.slot,this.layout,b)}else T("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.Ly=function(){};
g.k.PB=function(){};
g.k.bj=function(a){var b=this;if(this.u){if(WW(this.j,"impression")){var c=sW(this.Ca.get()),d=X(this.layout.Aa,"metadata_type_video_length_seconds");ZX(this.j,c,a,this.u.Qk,d,function(e){return void WRa(b,e,"tpaqe")})}this.u.Qk=a}};
g.k.Qj=function(a){var b=this;if(this.u){qW(this.Ja.get())||this.u.Az||(this.u.Az=!0,a=new g.TE(a.state,new g.zF));var c=X(this.layout.Aa,"metadata_type_video_length_seconds"),d=this.Ca.get().getCurrentTimeSec(2,!1);XX(this.j,this.u.Qk,a,c,d,!qW(this.Ja.get()),function(){return void XRa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){ORa(this.j,a)};
g.k.gh=function(){};
g.k.Mj=function(){};
g.k.Zy=function(){WW(this.j,"impression")&&UW(this.j,"skip");this.re.get().fl()||T("Unexpected failure to skip a server stitched ad",this.slot,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Rc=function(){};
g.k.hd=function(){};
g.k.ys=function(){};
g.k.Js=function(){};
g.k.jD=function(){PRa(this.j)};
g.k.Qy=function(){QRa(this.j)};
g.k.Py=function(){RRa(this.j)};
g.k.Ry=function(){SRa(this.j)};
g.k.Ny=function(){TRa(this.j)};
g.k.Oy=function(){URa(this.j)};
g.k.Tk=function(){};g.w(aY,UX);g.k=aY.prototype;
g.k.Ip=function(){var a=this;X(this.layout.Aa,"metadata_type_player_bytes_callback_ref").current=this;var b=X(this.layout.Aa,"metadata_type_layout_enter_ms"),c=X(this.layout.Aa,"metadata_type_layout_exit_ms");this.Ac=LRa(this.slot,this.layout,X(this.layout.Aa,"metadata_type_player_vars"),b,c,1E3*X(this.layout.Aa,"metadata_type_video_length_seconds"),this.re.get(),this.yd.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:X(a.layout.Aa,"metadata_type_ad_placement_config")}},
this.Na.get());
var d=X(this.layout.Aa,"metadata_type_video_length_seconds"),e=X(this.layout.Aa,"metadata_type_active_view_traffic_type");nE(this.layout.Qb)&&tW(this.Cb.get(),this.layout.layoutId,e,d,this)};
g.k.hq=function(){nE(this.layout.Qb)&&uW(this.Cb.get(),this.layout.layoutId)};
g.k.nq=function(){var a=this;if(this.u)T("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.u={Qk:null,Az:!1},MRa(this.slot,this.layout,this.Zd.get()),UW(this.j,"start"),qW(this.Ja.get())){var b=sW(this.Ca.get()),c=X(this.layout.Aa,"metadata_type_video_length_seconds"),d=this.Ca.get().getCurrentTimeSec(2,!1);NRa(this.j,this.u.Qk,b,c,d,function(){return void YRa(a,"teois")})}};
g.k.oq=function(){var a=this;if(this.u){if(qW(this.Ja.get()))if(null===this.Ac)T("Unexpected single media layout exited without a timeline playback ID");else{var b=X(this.layout.Aa,"metadata_type_video_length_seconds"),c=DW(this.Ca.get(),this.Ac);this.j.B=c;YX(this.j,null,this.u.Qk,b,c,function(d){return void ZRa(a,d,"fue")})}this.u=null}else T("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.zP=function(a){var b=this;if(this.u){if(WW(this.j,"impression")){var c=sW(this.Ca.get()),d=X(this.layout.Aa,"metadata_type_video_length_seconds");ZX(this.j,c,a,this.u.Qk,d,function(e){return void ZRa(b,e,"tpaqe")})}this.u.Qk=a}};
g.k.Qj=function(a){var b=this;if(this.u){qW(this.Ja.get())||this.u.Az||(this.u.Az=!0,a=new g.TE(a.state,new g.zF));var c=X(this.layout.Aa,"metadata_type_video_length_seconds"),d=this.Ca.get().getCurrentTimeSec(2,!1);XX(this.j,this.u.Qk,a,c,d,!qW(this.Ja.get()),function(){return void YRa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){ORa(this.j,a)};
g.k.jD=function(){PRa(this.j)};
g.k.Qy=function(){QRa(this.j)};
g.k.Py=function(){RRa(this.j)};
g.k.Ry=function(){SRa(this.j)};
g.k.Ny=function(){TRa(this.j)};
g.k.Oy=function(){URa(this.j)};bY.prototype.Pe=function(a,b,c,d){if(jv(c.Aa,"metadata_type_dai")){var e=X(d.Aa,"metadata_type_ad_placement_config");PW(d,{ke:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),Af:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new RW(d.Qb,this.Na,e,d.layoutId,null),e=new aY(a,c,d,this.Qa,this.re,this.yd,this.Ae,this.Ca,e,this.Na,this.Zd,this.j,this.Cb,this.Ja)):
e=null;if(e)return e;a:{var f=X(d.Aa,"metadata_type_sub_layouts"),h=X(d.Aa,"metadata_type_ad_placement_config");if(PW(d,{ke:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Af:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==h){e=[];f=g.r(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=X(l.Aa,"metadata_type_media_sub_layout_index");if(!PW(l,{ke:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),
Af:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new RW(l.Qb,this.Na,h,l.layoutId,m);e.push(new VRa(b,c,l,this.re,m,this.Ca,this.yd,this.Cb,this.Zd,this.Ja,this.Na,this.Qa))}b=new RW(d.Qb,this.Na,h,d.layoutId);a=new WX(a,c,d,this.Qa,this.re,this.Ae,this.Ca,b,this.Na,this.j,e)}else a=null}if(a)return a}else if(a=oRa(a,b,c,d,this.df,this.u,this.Na,this.Cb,this.Zd,this.le,this.Qa,this.Ca,this.hc,this.Fd,this.Vc,this.cf,this.Eb,this.kf,this.Ja))return a;throw new UU("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+tT(d.Aa)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.w(cY,g.I);cY.prototype.Yj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new Jv("Tried to register duplicate trigger for slot.");if(!(b instanceof IV))throw new Jv("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Mb.set(b.triggerId,new CX(a,b,c,d))};
cY.prototype.hk=function(a){this.Mb.delete(a.triggerId)};g.w(eY,g.I);
eY.prototype.Yj=function(a,b,c,d){if(this.u.has(b.triggerId)||this.B.has(b.triggerId))throw new Jv("Tried to re-register the trigger.");a=new CX(a,b,c,d);if(a.trigger instanceof oQa)this.u.set(a.trigger.triggerId,a);else if(a.trigger instanceof zV)this.B.set(a.trigger.triggerId,a);else throw new Jv("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&aV(this.C(),[a])};
eY.prototype.hk=function(a){this.u.delete(a.triggerId);this.B.delete(a.triggerId)};
eY.prototype.YP=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.v($Ra(this.B,this.j)));null!=a&&b.push.apply(b,g.v($Ra(this.u,a)));this.j=a;b.length&&aV(this.C(),b)}};g.k=fY.prototype;g.k.Wt=function(a,b,c,d,e,f){return this.G.Wt(a,b,c,d,e,f)};
g.k.er=function(a,b){this.G.er(a,b)};
g.k.gw=function(a,b,c){this.G.gw(a,b,c)};
g.k.bq=function(a){this.G.bq(a)};
g.k.qy=function(a,b,c,d,e,f){this.G.qy(a,b,c,d,e,f)};
g.k.fl=function(){return this.G.fl()};g.w(aSa,hE);g.w(gY,YW);g.k=gY.prototype;g.k.Fg=function(a,b){$W("image-companion",a,this.J.get().ij,this.Na.get(),this.C,this.D,this.pd(),this.Fb(),b)};
g.k.startRendering=function(a){ZW(this.I,this.pd(),this.Fb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new aSa(b,c,d,e,f)},this.j);
YW.prototype.startRendering.call(this,a)};
g.k.Rc=function(a,b){b.layoutId===this.layout.layoutId?UW(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Na.get().ri():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.hd=function(){};
g.k.Hi=function(){};
g.k.Sj=function(){};
g.k.Rj=function(){};
g.k.Sf=function(){};
g.k.Tf=function(){};
g.k.Xk=function(){};
g.k.Yk=function(){};
g.k.Oj=function(){};
g.k.Pj=function(){};
g.k.dj=function(){};
g.k.ea=function(){this.df().je.delete(this);YW.prototype.ea.call(this)};g.w(cSa,hE);g.w(hY,YW);g.k=hY.prototype;g.k.Fg=function(a,b){$W("shopping-companion",a,this.J.get().ij,this.Na.get(),this.C,this.D,this.pd(),this.Fb(),b)};
g.k.startRendering=function(a){ZW(this.I,this.pd(),this.Fb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new cSa(b,c,d,e,f)},this.j);
YW.prototype.startRendering.call(this,a)};
g.k.Rc=function(a,b){b.layoutId===this.layout.layoutId?UW(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Na.get().ri():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.hd=function(){};
g.k.Hi=function(){};
g.k.Sj=function(){};
g.k.Rj=function(){};
g.k.Sf=function(){};
g.k.Tf=function(){};
g.k.Xk=function(){};
g.k.Yk=function(){};
g.k.Oj=function(){};
g.k.Pj=function(){};
g.k.dj=function(){};
g.k.ea=function(){this.df().je.delete(this);YW.prototype.ea.call(this)};g.w(eSa,hE);g.w(iY,YW);g.k=iY.prototype;g.k.Fg=function(a,b){$W("ads-engagement-panel",a,this.J.get().ij,this.Na.get(),this.C,this.D,this.pd(),this.Fb(),b)};
g.k.startRendering=function(a){ZW(this.I,this.pd(),this.Fb(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new eSa(b,c,d,e,f)},this.j);
YW.prototype.startRendering.call(this,a)};
g.k.Rc=function(a,b){b.layoutId===this.layout.layoutId?UW(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Na.get().ri():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.hd=function(){};
g.k.Hi=function(){};
g.k.Sj=function(){};
g.k.Rj=function(){};
g.k.Sf=function(){};
g.k.Tf=function(){};
g.k.Xk=function(){};
g.k.Yk=function(){};
g.k.Oj=function(){};
g.k.Pj=function(){};
g.k.dj=function(){};
g.k.ea=function(){this.df().je.delete(this);YW.prototype.ea.call(this)};gSa.prototype.Pe=function(a,b,c,d){if(PW(d,fSa()))return new iY(a,c,d,this.Ub,this.Na,this.df,this.Cb,this.j);if(PW(d,cRa()))return new aX(a,c,d,this.Ub,this.Na,this.df,this.Cb,this.j);if(PW(d,bSa()))return new gY(a,c,d,this.Ub,this.Na,this.df,this.Cb,this.j);if(PW(d,dSa()))return new hY(a,c,d,this.Ub,this.Na,this.df,this.Cb,this.j);throw new UU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tT(d.Aa)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.w(jY,hE);g.w(kY,YW);kY.prototype.init=function(){YW.prototype.init.call(this);var a=X(this.layout.Aa,"metadata_type_player_underlay_renderer");this.j.push(new jY(a.instreamAdPlayerUnderlayRenderer,this.layout.layoutId,{adsClientData:this.layout.xc}))};
kY.prototype.Fg=function(){};
kY.prototype.startRendering=function(a){YW.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
kY.prototype.ea=function(){YW.prototype.ea.call(this)};hSa.prototype.Pe=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.r(SW()),f=e.next();!f.done;f=e.next())b.push(f.value);if(PW(d,{ke:b,Af:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new kY(a,c,d,this.Ub);throw new UU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tT(d.Aa)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.w(iSa,hE);g.w(lY,YW);lY.prototype.startRendering=function(a){var b=TW(this.C),c={adsClientData:this.layout.xc};this.j.push(new iSa(X(this.layout.Aa,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Fb().layoutId,c));YW.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
lY.prototype.Fg=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=X(this.layout.Aa,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.Zy(this.slot,this.layout):T("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
lY.prototype.ea=function(){YW.prototype.ea.call(this)};var nY=new g.cg(320,63);g.w(qY,hE);g.w(rY,YW);g.k=rY.prototype;g.k.bj=function(){};
g.k.Qj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.gh=function(a){a&&dY(this.C,this.layout)};
g.k.Mj=function(a){var b=pY(this.layout);if(this.J=oY(a,NQa(this.Ca.get())))b.onErrorCommand&&this.Eb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),dY(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Tx=function(){return this.Fb().layoutId};
g.k.vG=function(){return this.J};
g.k.Fg=function(a){this.D.Fg(a);"in_video_overlay_close_button"===a&&dY(this.C,this.layout)};
g.k.QB=function(a){"invideo-overlay"===a&&dY(this.C,this.layout)};
g.k.Vp=function(){this.D.Vp()};
g.k.startRendering=function(a){YW.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a);this.I.Tt=this};
g.k.Pf=function(a,b){YW.prototype.Pf.call(this,a,b);CZ(this.I,this)};
g.k.init=function(){YW.prototype.init.call(this);zW(this.Na.get(),this);this.Ca.get().addListener(this);this.j.push(new qY(pY(this.layout),TW(this.N),this.layout.layoutId,{adsClientData:this.layout.xc}))};
g.k.release=function(){YW.prototype.release.call(this);this.Ca.get().removeListener(this);AW(this.Na.get(),this)};
g.k.Tk=function(){};g.w(sY,YW);g.k=sY.prototype;g.k.init=function(){YW.prototype.init.call(this);zW(this.Na.get(),this);this.Ca.get().addListener(this);this.j.push(new qY(pY(this.layout),TW(this.V),this.layout.layoutId,{adsClientData:this.layout.xc}))};
g.k.Vp=function(){this.D.Vp()};
g.k.startRendering=function(a){YW.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a);this.I.Tt=this};
g.k.Pf=function(a,b){YW.prototype.Pf.call(this,a,b);CZ(this.I,this)};
g.k.Fg=function(a){this.D.Fg(a);"in_video_overlay_close_button"===a&&dY(this.C,this.layout)};
g.k.WG=function(a){if("invideo-overlay"===a){a=oSa(this.N,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.QB=function(a){"invideo-overlay"===a&&dY(this.C,this.layout)};
g.k.VG=function(a){if("invideo-overlay"===a){a=oSa(this.N,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.bj=function(){};
g.k.Qj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.gh=function(a){a&&dY(this.C,this.layout)};
g.k.Mj=function(a){var b=pY(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=NQa(this.Ca.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.Yb(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.cg(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.cg(0,0)}if(this.J=oY(a,d,c))b.onErrorCommand&&this.Eb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),dY(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Tx=function(){return this.Fb().layoutId};
g.k.vG=function(){return this.J};
g.k.release=function(){YW.prototype.release.call(this);this.Ca.get().removeListener(this);AW(this.Na.get(),this)};
g.k.Tk=function(){};tY.prototype.Fg=function(a){"ad-info-hover-text-button"===a&&((this.j=this.Ca.get().Nn(1))||this.Ca.get().pauseVideo())};
tY.prototype.Vp=function(){this.j||this.Ca.get().resumeVideo(1)};g.w(mSa,hE);g.w(uY,YW);g.k=uY.prototype;g.k.init=function(){YW.prototype.init.call(this);this.Ca.get().addListener(this)};
g.k.startRendering=function(a){var b=X(this.layout.Aa,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new mSa(b,this.layout.layoutId,{adsClientData:this.layout.xc}));YW.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
g.k.Rc=function(){};
g.k.Fg=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=X(this.layout.Aa,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.ys(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.Js(this.slot,this.layout):T("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.Mj=function(a){450>a.width&&dY(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.bj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.gh=function(){};
g.k.Qj=function(){};
g.k.Tk=function(){};
g.k.ea=function(){YW.prototype.ea.call(this)};
g.k.release=function(){YW.prototype.release.call(this);this.Ca.get().removeListener(this)};nSa.prototype.Pe=function(a,b,c,d){if(b=dX(a,c,d,this.Ub,this.Ca,this.Na,this.C,this.j))return b;if(PW(d,lSa()))return new sY(c,d,this.Na,this.Cb,this.Ub,a,this.u,this.B,this.Ca,this.Eb,this.Ja,this.j,new tY(this.Ca));if(PW(d,kSa()))return new rY(c,d,this.Na,this.Cb,this.Ub,a,this.u,this.Ca,this.Eb,this.Ja,this.j,new tY(this.Ca));if(PW(d,{ke:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Af:["LAYOUT_TYPE_SURVEY"]}))return new uY(c,d,a,this.Ub,this.u,this.Ca,this.Ja);if(PW(d,{ke:["metadata_type_player_bytes_layout_controls_callback_ref",
"metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Af:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new lY(c,d,a,this.Ub,this.Na);throw new UU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tT(d.Aa)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.w(vY,g.I);g.k=vY.prototype;g.k.Yj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new Jv("Tried to register duplicate trigger for slot.");if(!(b instanceof EV))throw new Jv("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Mb.set(b.triggerId,new CX(a,b,c,d));a=this.j.has(b.wf)?this.j.get(b.wf):new Set;a.add(b);this.j.set(b.wf,a)};
g.k.hk=function(a){this.Mb.delete(a.triggerId);if(!(a instanceof EV))throw new Jv("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.wf))b.delete(a),0===b.size&&this.j.delete(a.wf)};
g.k.Hi=function(){};
g.k.Sj=function(){};
g.k.Rj=function(){};
g.k.Sf=function(){};
g.k.Tf=function(){};
g.k.Xk=function(){};
g.k.Yk=function(){};
g.k.Oj=function(){};
g.k.Pj=function(){};
g.k.dj=function(){};
g.k.Rc=function(a,b){var c=this;if(this.j.has(b.layoutId)){b=this.j.get(b.layoutId);a={};b=g.r(b);for(var d=b.next();!d.done;a={ww:a.ww},d=b.next())a.ww=d.value,d=new g.K(function(e){return function(){var f=c.Mb.get(e.ww.triggerId);aV(c.B(),[f])}}(a),a.ww.durationMs),d.start(),this.u.set(a.ww.triggerId,d)}};
g.k.hd=function(){};g.w(pSa,g.I);qSa.prototype.Pe=function(a,b,c,d){if(b=dX(a,c,d,this.Ub,this.Ca,this.Na,this.C,this.j))return b;if(PW(d,lSa()))return new sY(c,d,this.Na,this.Cb,this.Ub,a,this.u,this.B,this.Ca,this.Eb,this.Ja,this.j,new tY(this.Ca));if(PW(d,kSa()))return new rY(c,d,this.Na,this.Cb,this.Ub,a,this.u,this.Ca,this.Eb,this.Ja,this.j,new tY(this.Ca));throw new UU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tT(d.Aa)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.w(rSa,g.I);g.w(sSa,g.I);g.w(tSa,g.I);g.w(xY,cX);xY.prototype.startRendering=function(a){cX.prototype.startRendering.call(this,a);X(this.layout.Aa,"metadata_ad_video_is_listed")&&(a=X(this.layout.Aa,"metadata_type_ad_info_ad_metadata"),this.zk.get().G.La("onAdMetadataAvailable",a))};vSa.prototype.Pe=function(a,b,c,d){if(PW(d,uSa()))return new xY(a,c,d,this.Ub,this.Ca,this.Na,this.u,this.zk,this.j);throw new UU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tT(d.Aa)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.w(wSa,g.I);xSa.prototype.Pe=function(a,b,c,d){if(PW(d,uSa()))return new xY(a,c,d,this.Ub,this.Ca,this.Na,this.u,this.zk,this.j);if(a=dX(a,c,d,this.Ub,this.Ca,this.Na,this.u,this.j))return a;throw new UU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tT(d.Aa)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.w(ySa,g.I);g.w(yY,g.I);yY.prototype.B=function(){return this.u};AY.prototype.qB=function(a){this.Sl.qB(a)};
AY.prototype.VA=function(){try{this.Sl.VA()}catch(a){}};
AY.prototype.gp=function(){this.j().gp()};
AY.prototype.cm=function(){this.j().cm()};g.w(VY,XG);
VY.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.La("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.La("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.La("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.La("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.La("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.La("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.La("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.La("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.La("updateEngagementPanelAction",b.addAction);this.j.La("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.La("changeEngagementPanelVisibility",b.hideAction),this.j.La("updateEngagementPanelAction",b.removeAction)}};g.w(fZ,eH);g.k=fZ.prototype;g.k.init=function(a,b,c){eH.prototype.init.call(this,a,b,c);g.al(this.C,"stroke-dasharray","0 "+this.B);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){gH(this);eH.prototype.hide.call(this)};
g.k.show=function(){fH(this);eH.prototype.show.call(this)};
g.k.Bs=function(){this.hide()};
g.k.fq=function(){if(this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&g.al(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.w(hZ,yG);g.k=hZ.prototype;
g.k.init=function(a,b,c){yG.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.S(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=
e&&0<e.length&&g.lb(g.ig(e[0].url))&&(e[0].url=d.profilePicture);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.lb(g.ig(e[0].url))&&(e[0].url=d.zf());e=b.headline;null!=e&&g.lb(g.ig(e.text))&&(e.text=d.author)}this.D.init(gE("ad-image"),b.image,c);this.N.init(gE("ad-text"),b.headline,c);this.I.init(gE("ad-text"),b.description,c);this.W.init(gE("ad-image"),b.backgroundImage,c);this.actionButton=new NG(this.api,this.Za,this.layoutId,this.j,this.Ua,["ytp-ad-action-interstitial-action-button"]);
g.J(this,this.actionButton);this.actionButton.xa(this.Ia);this.actionButton.init(gE("button"),b.actionButton.buttonRenderer,c);this.navigationEndpoint=b.navigationEndpoint;this.api.S().isMobile||(this.C.P(this.Ga,"click",this.mG,this),this.C.P(this.Da,"click",this.mG,this),this.C.P(this.va,"click",this.mG,this));this.u=this.AJ?new tH(this.api,a):new uH(a);g.J(this,this.u);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.u&&(this.skipButton=new oH(this.api,this.Za,this.layoutId,this.j,this.Ua,
this.u,this.uD),g.J(this,this.skipButton),this.skipButton.xa(this.element),this.skipButton.init(gE("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.u&&(this.B=new jH(this.api,this.Za,this.layoutId,this.j,this.Ua,this.u,!1),g.J(this,this.B),this.B.xa(this.element),this.B.init(gE("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,b.timedPieCountdownRenderer&&this.u&&(c=new fZ(this.api,this.Za,this.layoutId,this.j,this.Ua,this.u),
g.J(this,c),c.xa(this.element),c.init(gE("timed-pie-countdown"),b.timedPieCountdownRenderer,this.macros)));this.show();this.element.focus()}else g.S(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.S(Error("AdActionInterstitialRenderer has no button."));else g.S(Error("AdActionInterstitialRenderer has no background AdImage."));else g.S(Error("AdActionInterstitialRenderer has no description AdText."));else g.S(Error("AdActionInterstitialRenderer has no headline AdText."));
else g.S(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.hu(this.C);this.hide()};
g.k.show=function(){ASa(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();yG.prototype.show.call(this)};
g.k.hide=function(){ASa(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();yG.prototype.hide.call(this)};
g.k.mG=function(){this.navigationEndpoint&&(this.api.S().K("enable_macro_substitution_on_html5")?this.layoutId?this.Ua.executeCommand(this.navigationEndpoint,this.layoutId):g.S(Error("Missing layoutId for ad action interstitial.")):ZG(this.Ua,this.navigationEndpoint,this.macros))};var jZ={iconType:"CLOSE"},nZ=new g.cg(320,63);g.w(iZ,yG);g.k=iZ.prototype;
g.k.init=function(a,b,c){yG.prototype.init.call(this,a,b,c);this.D=b;this.N=g.ec(this.D.onClickCommands||[]);this.va=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.I=g.rg("ytp-ad-overlay-ad-info-button-container",this.C.element),lZ(this,b),a=ESa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.I=g.rg("ytp-ad-overlay-ad-info-button-container",this.B.element),
lZ(this,b),a=FSa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.I=g.rg("ytp-ad-overlay-ad-info-button-container",this.u.element),lZ(this,b),a=GSa(this,a.imageOverlayAdContentRenderer)):(g.S(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),HSa(this,!0))};
g.k.clear=function(){HSa(this,!1);this.Ga.reset();this.W=0;this.C.hide();this.Wa(this.C.element,!1);this.B.hide();this.Wa(this.B.element,!1);this.u.hide();this.Wa(this.u.element,!1);this.hide();this.dispose()};
g.k.t_=function(){this.Ia&&(this.api.S().K("enable_macro_substitution_on_html5")?this.layoutId?this.Ua.executeCommand(this.Ia,this.layoutId):g.S(Error("Missing layoutId for invideo_overlay_ad.")):ZG(this.Ua,this.Ia,this.macros));this.api.pauseVideo()};
g.k.Nj=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var a=this.D.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.r(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.api.S().K("enable_macro_substitution_on_html5")?this.layoutId?this.Ua.executeCommand(b,this.layoutId):g.S(Error("Missing layoutId for invideo_overlay_ad.")):ZG(this.Ua,b,this.macros);this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.VX=function(){this.Pa||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.wI=function(){this.Pa||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.wI("invideo-overlay")};
g.k.WX=function(a){a.target===this.I&&g.rg("ytp-ad-button",this.bb.element).click()};g.w(oZ,eH);g.k=oZ.prototype;g.k.init=function(a,b,c){eH.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=null==a||0===a?0:a+1E3*this.u.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(gE("ad-text"),d,c);this.messageText.xa(this.B.element);this.I.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){ISa(this,!1);eH.prototype.hide.call(this);this.B.hide();this.messageText.hide();gH(this)};
g.k.show=function(){ISa(this,!0);eH.prototype.show.call(this);fH(this);this.B.show();this.messageText.show()};
g.k.Bs=function(){this.hide()};
g.k.fq=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.N&&a>=this.C?(this.I.hide(),this.N=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.W&&(dH(this.messageText,{TIME_REMAINING:String(a)}),this.W=a)))}};g.w(pZ,yG);g.k=pZ.prototype;
g.k.init=function(a,b,c){yG.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?(this.C.init(gE("ad-image"),b.image,c),this.B.init(gE("ad-text"),b.headline,c),this.D.init(gE("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.S().K("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new NG(this.api,this.Za,this.layoutId,this.j,this.Ua,a),g.J(this,
this.actionButton),this.actionButton.xa(this.I),this.actionButton.init(gE("button"),b.actionButton.buttonRenderer,c),b=g.eA(this.api.S().experiments,"player_underlay_video_width_fraction"),this.api.S().K("place_shrunken_video_on_left_of_player")?(c=this.u,g.go(c,"ytp-ad-underlay-left-container"),g.N(c,"ytp-ad-underlay-right-container"),g.al(this.u,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.u,g.go(c,"ytp-ad-underlay-right-container"),g.N(c,"ytp-ad-underlay-left-container")),g.al(this.u,"width",
Math.round(100*(1-b-.04))+"%"),this.api.dC()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.GL.bind(this)),this.api.addEventListener("resize",this.hO.bind(this))):g.S(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){JSa(!0);this.actionButton&&this.actionButton.show();yG.prototype.show.call(this)};
g.k.hide=function(){JSa(!1);this.actionButton&&this.actionButton.hide();yG.prototype.hide.call(this)};
g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.GL.bind(this));this.api.removeEventListener("resize",this.hO.bind(this));this.hide()};
g.k.onClick=function(a){yG.prototype.onClick.call(this,a);this.actionButton&&g.Fg(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.GL=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.hO=function(a){1200<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):875<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium"));
g.al(this.B.element,"font-size",a.width/40+"px")};g.w(qZ,yG);
qZ.prototype.init=function(a,b,c){yG.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new NG(this.api,this.Za,this.layoutId,this.j,this.Ua,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.xa(this.answer),a.init(gE("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.u=new VG(this.api,this.Za,this.layoutId,this.j,this.Ua,
["ytp-ad-survey-answer-toggle-button"]),this.u.xa(this.answer),g.J(this,this.u),this.u.init(gE("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
qZ.prototype.oD=function(a){this.api.S().K("enable_macro_substitution_on_html5")?this.layoutId?(g.Bu(Error("Non-empty macros passed by Answer to the runCommand method.")),nV(this.Ua,a,this.layoutId,this.macros)):g.S(new g.Ar("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType})):ZG(this.Ua,a,this.macros)};
qZ.prototype.clear=function(){this.hide()};g.w(rZ,yG);rZ.prototype.init=function(a,b,c){yG.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new VG(this.api,this.Za,this.layoutId,this.j,this.Ua,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.xa(this.u),this.button.init(gE("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.w(sZ,NG);sZ.prototype.init=function(a,b,c){NG.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.Hv(b.text),a=!g.lb(b));a||g.Bu(Error("No submit text was present in the renderer."))};
sZ.prototype.onClick=function(a){this.X("l");NG.prototype.onClick.call(this,a)};g.w(tZ,yG);
tZ.prototype.init=function(a,b,c){yG.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new pH(this.api,this.Za,this.layoutId,this.j,this.Ua,this.C,!0),c.xa(this.I),c.init(gE("skip-button"),a,this.macros),g.J(this,c),this.u=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new jH(this.api,this.Za,this.layoutId,this.j,this.Ua,this.C,!1),c.xa(this.I),c.init(gE("ad-preview"),a,this.macros),kH(c),g.J(this,c),this.u=c);null==this.u&&g.S(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new sZ(this.api,this.Za,this.layoutId,this.j,this.Ua),c.xa(this.submitButton),c.init(gE("survey-submit"),a,this.macros),g.J(this,c),this.B=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new rH(this.api,this.Za,this.layoutId,this.j,this.Ua,!0),c.xa(this.D),c.init(gE("simple-ad-badge"),a,this.macros),g.J(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new xH(this.api,this.Za,this.layoutId,this.j,this.Ua,
this.C,void 0),c.xa(this.D),c.init(gE("ad-duration-remaining"),a,this.macros),g.J(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new bH(this.api,this.Za,this.layoutId,this.j,this.Ua,this.element),g.J(this,a),a.xa(this.D),a.init(gE("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
tZ.prototype.clear=function(){this.hide()};g.w(uZ,yG);uZ.prototype.init=function(a,b,c){yG.prototype.init.call(this,a,b,c);MSa(this)};
uZ.prototype.show=function(){this.C=g.Ua();yG.prototype.show.call(this)};
uZ.prototype.SQ=function(){};g.w(vZ,uZ);g.k=vZ.prototype;g.k.init=function(a,b,c){var d=this;uZ.prototype.init.call(this,a,b,c);b.questionText&&g.Gg(this.questionText,g.Hv(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&KSa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.I=new Set(this.B.map(function(e){return e.u.u}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&NSa(this,a,c);b.surveyAdQuestionCommon&&LSa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.P(this.element,"change",this.onChange);this.show()};
g.k.SQ=function(){wZ(this,!1);this.D.B.subscribe("l",this.r_,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.u?OSa(this):this.I.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),wZ(this,!0))};
g.k.r_=function(){var a=this.B.reduce(function(d,e){var f=e.toggledLoggingParams;e.u&&e.u.isToggled()&&f&&d.push(f);return d},[]).join("&"),b=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d;
d=g.Xe(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=Nh(e.baseUrl,a));return e});
return d});
if(b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.api.S().K("enable_macro_substitution_on_html5")?this.layoutId?nV(this.Ua,c,this.layoutId,this.macros):g.S(Error("Missing layoutId for multi_select_question.")):ZG(this.Ua,c,this.macros)}};
g.k.clear=function(){this.api.S().K("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(xZ,uZ);xZ.prototype.init=function(a,b,c){var d=this;uZ.prototype.init.call(this,a,b,c);b.questionText&&g.Gg(this.questionText,g.Hv(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&KSa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?LSa(this,b.surveyAdQuestionCommon):g.S(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
xZ.prototype.clear=function(){this.api.S().K("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(yZ,yG);
yZ.prototype.init=function(a,b,c){var d=this;yG.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new xZ(d.api,d.Za,d.layoutId,d.j,d.Ua);f.xa(d.u);f.init(gE("survey-question-single-select"),e,c);d.questions.push(f);g.J(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new vZ(d.api,d.Za,d.layoutId,d.j,d.Ua),f.xa(d.u),
f.init(gE("survey-question-multi-select"),e,c),d.questions.push(f),g.J(d,f))});
this.show()};
yZ.prototype.clear=function(){this.api.S().K("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.w(zZ,yG);
zZ.prototype.init=function(a,b,c){var d=this;yG.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;"number"!==typeof a||0>a?g.S(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.S(Error("Missing layoutId for survey interstitial.")),QSa(this.interstitial,
b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape),QSa(this.logoImage,b.brandImage),g.Gg(this.text,g.Hv(b.text)),this.actionButton=new NG(this.api,this.Za,this.layoutId,this.j,this.Ua,["ytp-ad-survey-interstitial-action-button"]),g.J(this,this.actionButton),this.actionButton.xa(this.B),this.actionButton.init(gE("button"),b.ctaButton.buttonRenderer,c),this.actionButton.show(),this.u=new tH(this.api,1E3*a),this.u.subscribe("g",function(){d.transition.hide()}),g.J(this,this.u),this.P(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.S(Error("SurveyTextInterstitialRenderer has no landscape background image.")):g.S(Error("SurveyTextInterstitialRenderer has no brandImage.")):g.S(Error("SurveyTextInterstitialRenderer has no button.")):g.S(Error("SurveyTextInterstitialRenderer has no text.")):g.S(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
zZ.prototype.clear=function(){this.hide()};
zZ.prototype.show=function(){RSa(!0);yG.prototype.show.call(this)};
zZ.prototype.hide=function(){RSa(!1);yG.prototype.hide.call(this)};var uVa="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.w(AZ,XG);
AZ.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!uVa.includes(d))switch(a.actionType){case 1:a=this.J();var e=this.api,f=this.Ua,h=c.layoutId,l=c.j,m=c instanceof YE?c.AJ:!1,n=c instanceof YE||c instanceof sH?c.uD:!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 iZ(e,a,h,l,f);break;case "player-overlay":a=new EH(e,a,h,l,f,new PJ(e),n);break;case "survey":a=new yZ(e,a,h,l,f);break;case "ad-action-interstitial":a=new hZ(e,a,h,l,f,
m,n);break;case "survey-interstitial":a=new zZ(e,a,h,l,f);break;case "ad-message":a=new oZ(e,a,h,l,f,new PJ(e,1));break;case "player-underlay":a=new pZ(e,a,h,l,f);break;default:a=null}if(!a){g.Bu(Error("No UI component returned from ComponentFactory for type: "+d));break}g.Pe(this.u,b)?g.Bu(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof jY?this.B?this.B.append(a.iJ):g.S(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(a.iJ);
break;case 2:b=SSa(this,a);if(null==b)break;b.bind(c);break;case 3:c=SSa(this,a),null!=c&&(g.ze(c),g.Pe(this.u,b)?g.Te(this.u,b):g.Bu(Error("Ad UI component does not exist: "+b)))}};
AZ.prototype.ea=function(){g.Ae(Object.values(this.u));this.u={};XG.prototype.ea.call(this)};g.w(BZ,g.WI);g.k=BZ.prototype;g.k.create=function(){try{TSa(this),this.load(),this.created=!0,TSa(this)}catch(a){T(a instanceof Error?a:String(a))}};
g.k.load=function(){g.WI.prototype.load.call(this);var a=zY(this.j).yh;qra(a.G.S().K("html5_reduce_ecatcher_errors"));try{this.player.getRootNode().classList.add("ad-created")}catch(l){T(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.fg()||!1;a=WSa(f,a,e,h,zY(this.j).Mk);f=c&&c.clientPlaybackNonce||"";c=c&&c.Yq||!1;h=1E3*this.player.getDuration(1);this.Za=new oG(this,this.player,this.Nq,b,zY(this.j));AAa(this.Za,a.nx);this.j.j.Wp.Fi(f,h,c,a.PC,a.PC.concat(a.nx),e,d);pG(this.Za)};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Wp.Vk(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.WI.prototype.unload.call(this);qra(!1);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){T(b instanceof Error?b:String(b))}if(null!==this.Za){var a=this.Za;this.Za=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.Nq.reset()};
g.k.hj=function(){return!1};
g.k.BJ=function(){return null===this.Za?!1:this.Za.BJ()};
g.k.Em=function(a){null!==this.Za&&this.Za.Em(a)};
g.k.getAdState=function(){return this.Za?this.Za.WB:-1};
g.k.getOptions=function(){return Object.values(tVa)};
g.k.Zf=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=AE(this.player),Object.assign(b,a.Gja),this.Za&&!b.AD_CPN&&(b.AD_CPN=this.Za.yB()),a=g.yn(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Vp(b);break;case "executeCommand":this.executeCommand(b);break;default:return null}};
g.k.Xp=function(a){var b;return!(null==(b=this.j.j.Ae)||!b.get().Xp(a))};
g.k.Vp=function(a){a.isMuted&&pAa(this.Za,zY(this.j).Bi,zY(this.j).Kj,a.layoutId);this.Tt&&this.Tt.Vp()};
g.k.executeCommand=function(a){zY(this.j).Ua.executeCommand(a.command,a.layoutId)};g.VI("ad",BZ);var YSa=g.Gc&&XSa();g.w(g.FZ,g.W);g.FZ.prototype.onClick=function(){this.G.La("onExpandMiniplayer")};})(_yt_player);

}

/*
     FILE ARCHIVED ON 02:13:03 Jun 03, 2022 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 22:29:22 Jul 22, 2026.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  capture_cache.get: 9.598
  load_resource: 205.464 (2)
  PetaboxLoader3.resolve: 142.712 (2)
  PetaboxLoader3.datanode: 34.357 (2)
*/