var _yt_player={};(function(g){var window=this;/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
'use strict';var ba,da,aaa,ia,ka,la,qa,ra,sa,ua,va,wa,baa,caa,xa,ya,daa,za,Aa,Ba,Da,Ea,Ia,Ga,La,Ma,gaa,haa,Va,Wa,Xa,iaa,jaa,Ya,kaa,Za,$a,laa,maa,bb,ib,naa,pb,qb,oaa,vb,sb,paa,tb,qaa,raa,saa,Fb,Hb,Ib,Jb,Mb,Ob,Pb,Sb,Yb,$b,dc,ec,ic,kc,lc,vaa,mc,nc,oc,xc,yc,Ac,Fc,Mc,Nc,Rc,Pc,zaa,Caa,Daa,Eaa,Wc,Xc,Zc,Yc,ad,dd,Faa,Gaa,cd,Haa,jd,kd,ld,md,pd,qd,rd,sd,Jaa,td,ud,yd,zd,Ad,Bd,Cd,Dd,Ed,Fd,Hd,Jd,Kd,Md,Nd,Od,Laa,Pd,Qd,Rd,Sd,Td,Ud,be,de,ge,ke,le,te,ue,xe,ve,ze,Ce,Be,Ae,Qaa,ie,Qe,Oe,Pe,Se,Re,he,Te,Saa,Xe,Ze,We,af,
bf,cf,df,ef,hf,jf,kf,lf,mf,Taa,rf,nf,tf,wf,xf,Df,Af,Bf,Uaa,Ef,Cf,Ff,Gf,Vaa,Hf,If,Jf,Kf,Lf,Nf,Mf,Of,Pf,Yaa,$aa,aba,cba,Rf,Sf,Tf,Vf,Wf,Xf,Zf,Yf,eba,dba,ag,cg,ig,jg,mg,fba,pg,og,qg,gba,Ag,Bg,Cg,hba,Dg,Eg,Fg,Gg,Hg,Ig,Jg,iba,Kg,Lg,Mg,jba,kba,Ng,Pg,Og,Rg,Sg,Vg,Tg,mba,Ug,Wg,oba,nba,pba,Zg,qba,ah,bh,ch,$g,dh,rba,eh,sba,tba,hh,vba,ih,jh,kh,wba,mh,oh,uh,xh,zh,wh,vh,Ah,xba,Bh,Ch,Dh,Eh,zba,Jh,Kh,Lh,Mh,Bba,Nh,Oh,Ph,Qh,Rh,Cba,Th,Uh,Vh,Wh,Xh,Yh,$h,ai,bi,ci,di,Zh,ei,fi,gi,Dba,hi,ii,Eba,ji,ki,Fba,mi,Gba,ri,si,ti,
Hba,xi,yi,Ai,Ci,Di,Ei,Fi,Gi,zi,Bi,Jba,Hi,Ii,Ki,Ji,Kba,Lba,Mba,Li,Mi,Ni,Oi,Qba,Rba,Sba,Pi,Ri,Tba,Uba,Vba,Ti,Ui,Wba,Vi,Xba,Yba,Wi,Xi,Yi,Zi,Zba,$i,bj,cj,dj,ej,fj,gj,hj,ij,jj,$ba,aca,kj,bca,mj,lj,pj,qj,oj,cca,gca,fca,sj,hca,ica,jca,lca,kca,mca,tj,vj,xj,yj,zj,oca,Ej,Fj,pca,qca,Gj,Hj,Ij,Jj,rca,Kj,Lj,tca,Mj,uca,Nj,Pj,Oj,Qj,Rj,Tj,wca,Uj,vca,Vj,xca,Wj,yca,zca,Yj,ak,bk,ck,dk,Zj,gk,hk,ek,Aca,Cca,Dca,jk,kk,lk,mk,Eca,nk,ok,pk,qk,rk,sk,tk,uk,xk,wk,Gca,Hca,yk,Ak,vk,zk,Fca,Bk,Ck,Jca,Kca,Lca,Mca,Gk,Hk,Ik,Dk,Jk,Kk,
Ica,Nca,Oca,Pca,Nk,Lk,Ok,Qk,Uca,Qca,Vca,Uk,Vk,Wk,Xk,Yk,aj,Wca,Zk,$k,Xca,Yca,Zca,$ca,ada,bl,cl,dl,el,fl,gl,dda,hl,eda,il,jl,kl,ll,ul,vl,gda,wl,yl,Al,Cl,ida,Dl,El,Fl,Gl,Il,Kl,jda,Hl,Pl,Ql,Nl,lda,Ll,Jl,Ul,Vl,Wl,Yl,mda,Zl,$l,am,nda,fm,hm,jm,km,mm,nm,om,qm,oda,pda,sm,vm,rm,tm,im,pm,rda,ym,wm,xm,Am,qda,zm,Em,Hm,Gm,Mm,Nm,Pm,uda,Om,Rm,Tm,Sm,sda,Wm,Ym,xda,an,bn,en,fn,mn,yda,on,pn,Ada,qn,rn,Fda,Bda,yn,Kda,zn,An,Mda,Dn,En,Fn,Gn,Nda,Jn,Kn,Ln,Mn,On,Pn,Qn,Rn,bo,co,eo,fo,go,ho,Pda,io,Qda,ko,mo,no,Tda,Uda,po,qo,
oo,to,uo,vo,Vda,yo,zo,Bo,Lo,Ko,Yda,Zda,No,Ro,So,Po,To,Vo,Wo,Xo,Yo,aea,bea,ep,fp,gp,cea,lp,mp,np,pp,dea,rp,op,up,xp,wp,vp,zp,Ap,Bp,Dp,Ep,Fp,Gp,Kp,Ip,Lp,Mp,Np,Cp,Qp,Pp,iea,Sp,jea,Wp,Vp,lea,mea,nea,$p,oea,pea,Xp,aq,bq,dq,eq,gq,hq,iq,kq,lq,mq,oq,qq,rq,cq,uq,sq,qea,sea,tea,Aq,Cq,Dq,wea,vea,xq,Oq,Pq,Qq,xea,Zq,$q,Xq,ar,cr,er,fr,yea,gr,hr,ir,Gr,zea,Lr,Kr,jr,Mr,Aea,Bea,Tr,Ur,Xr,Yr,Wr,$r,as,cs,ds,Fea,Gea,Hea,fs,hs,is,gs,js,ks,ls,ms,ns,os,Iea,ps,rs,ws,ts,ys,zs,qs,Kea,Lea,us,As,Mea,xs,Jea,vs,Cs,Nea,Ds,Es,Bs,
Oea,Fs,Gs,Hs,Js,Ks,Pea,Qea,Rea,Sea,Ns,Ps,Qs,Rs,Tea,Uea,Vea,Wea,Xea,Yea,Ss,Ts,Us,Vs,Xs,Zs,Ys,$ea,Zea,at,$s,ct,et,bt,ft,gt,ht,afa,kt,bfa,lt,ot,mt,nt,Pr,gfa,wt,zt,hfa,xt,Bt,Dt,Et,Gt,Ft,It,Jt,Kt,Mt,Lt,jfa,Pt,Qt,Rt,St,mfa,kfa,Tt,Wt,Xt,ofa,Ut,Vt,Yt,Zt,au,bu,eu,cu,gu,fu,hu,pfa,ju,ku,mu,rfa,ou,pu,qu,tu,sfa,vu,xu,yu,Cu,Du,tfa,zu,ufa,Lu,Uu,Tu,Wu,Su,Vu,Xu,wfa,xfa,bv,cv,dv,ev,fv,gv,hv,iv,jv,kv,lv,mv,nv,ov,pv,qv,rv,tv,uv,vv,wv,xv,yv,zv,Av,Bv,Cv,Dv,Ev,Fv,Gv,Hv,Iv,Jv,Kv,Lv,Mv,Nv,Ov,Pv,Qv,Rv,Sv,Tv,Uv,Vv,Wv,Xv,Yv,
Zv,Q,$v,aw,bw,cw,dw,fw,hw,iw,kw,Efa,lw,mw,nw,qw,Ifa,vw,ww,xw,yw,zw,Cw,Dw,Jfa,Fw,Gw,Hw,Jw,Kw,Ew,Lw,Iw,Nw,Ow,Qw,Rw,Pw,Sw,Tw,Vw,Ww,Xw,Yw,Rx,$w,Ux,ax,Wx,Xx,Yx,Qx,Ofa,Zx,Zw,ay,by,cy,dy,ey,gy,hy,iy,jy,ky,oy,py,ny,Sfa,Ufa,wy,vy,Rfa,Qfa,uy,zy,Ay,Cy,Dy,Ey,Gy,Hy,Iy,Jy,Fy,Vfa,Ky,Ly,My,Ny,Py,Qy,Ry,Sy,Ty,Uy,Vy,Wy,Xy,Yy,Zy,Wfa,$y,bz,dz,ez,az,Yfa,fz,gz,iz,kz,Zfa,lz,pz,nz,jz,qz,mz,oz,rz,sz,tz,$fa,vz,wz,Cz,aga,yz,Ez,Gz,Jz,Iz,Az,Fz,Dz,cga,Kz,Mz,Nz,dga,Oz,Pz,xz,zz,Bz,Hz,Qz,Rz,ega,Tz,fga,gga,Uz,Vz,hga,Xz,iga,Wz,Yz,$z,
aA,bA,cA,dA,gA,eA,jga,hA,iA,jA,kA,kga,fA,lA,mA,nA,oA,pA,rA,sA,tA,lga,uA,vA,wA,xA,yA,mga,nga,rga,sga,oga,pga,qga,zA,BA,AA,CA,DA,EA,tga,FA,GA,HA,IA,JA,KA,LA,MA,NA,OA,PA,QA,RA,SA,TA,UA,WA,YA,XA,ZA,$A,aB,cB,dB,eB,fB,uga,hB,gB,lB,mB,nB,oB,pB,qB,jB,rB,sB,tB,uB,vga,vB,xB,yB,zB,AB,BB,CB,DB,wga,EB,FB,GB,HB,IB,LB,MB,NB,OB,PB,xga,RB,SB,QB,UB,TB,VB,WB,yga,XB,ZB,Tfa,sy,Aga,$B,aC,bC,Bga,Cga,ly,cC,fC,Fga,Ega,dC,Dga,iC,eC,lC,Gga,Hga,nC,Iga,oC,mC,Jga,qC,pC,rC,Kga,Lga,Mga,sC,jC,Nga,uC,Oga,vC,wC,xC,yC,zC,AC,Pga,yy,
ty,DC,FC,HC,IC,JC,KC,LC,GC,OC,Qga,QC,Sga,RC,SC,Tga,Rga,Uga,Vga,Wga,TC,my,UC,VC,qy,Xga,XC,Yga,YC,Zga,ZC,aD,$C,bD,aha,dD,eD,fD,gD,hD,iD,kD,lD,bha,nD,pD,oD,mD,U,rD,sD,tD,uD,vD,VD,PD,XD,$D,aE,GD,MD,bE,wD,RD,QD,TD,eE,gE,iE,jha,DD,mE,CD,nE,OD,pE,qE,rE,GE,HE,lha,mha,IE,JE,nha,rha,KE,oha,qha,pha,LE,sha,ME,tha,uha,NE,OE,PE,QE,vha,RE,SE,UE,VE,WE,XE,YE,ZE,$E,aF,wha,bF,xha,fF,hF,jF,zha,Aha,lF,Bha,Cha,Dha,Eha,mF,oF,pF,nF,qF,Fha,dF,iF,kF,gF,yha,Gha,wF,yF,zF,CF,BF,DF,EF,FF,GF,Iha,Jha,Kha,IF,KF,LF,OF,QF,PF,Qha,RF,
TF,UF,MF,VF,WF,Rha,Sha,XF,eG,ZF,dG,qG,uG,Xha,xG,mG,kG,zG,Wha,Yha,AG,CG,DG,BG,jG,Zha,bG,yG,tG,dia,$ha,eia,aia,bia,cia,GG,HG,fia,JG,KG,LG,NG,OG,aG,wG,nG,cG,pG,oG,RG,FG,gia,$G,aH,bH,cH,eH,rG,gH,fH,EG,lG,hH,PG,sG,hia,hG,iG,gG,HF,kH,iia,lH,jia,mH,oH,kia,lia,nia,mia,pH,qH,oia,rH,sH,tH,uH,vH,wH,xH,yH,zH,pia,AH,BH,CH,EH,sia,DH,tia,qia,FH,ria,GH,uia,HH,IH,JH,KH,LH,MH,wia,xia,NH,OH,PH,yia,zia,Aia,Dia,UH,RH,Cia,XH,Bia,YH,TH,ZH,WH,VH,SH,QH,Eia,bI,aI,cI,Fia,eI,gI,hI,Hia,Gia,iI,jI,kI,lI,mI,nI,oI,pI,qI,Iia,rI,Jia,
sI,Lia,tI,uI,Mia,vI,Nia,xI,Oia,Pia,Qia,Tia,Ria,Sia,Uia,Via,yI,Wia,Xia,Yia,Zia,$ia,aja,cja,dja,bja,fja,gja,eja,zI,hja,AI,BI,ija,CI,jja,DI,kja,mja,nja,oja,GI,pja,qja,HI,rja,LI,MI,sja,wja,NI,xja,yja,zja,OI,Aja,PI,Bja,Cja,QI,Dja,Eja,Gja,Hja,Ija,SI,RI,Fja,TI,Jja,Kja,Mja,Lja,Nja,Oja,UI,VI,Rja,Sja,WI,Tja,Uja,XI,YI,$I,aJ,bJ,cJ,fJ,Vja,hJ,iJ,Wja,Xja,Yja,jJ,$ja,aka,kJ,bka,cka,dka,lJ,mJ,eka,fka,nJ,hka,gka,oJ,kka,pJ,mka,lka,qJ,rJ,nka,oka,pka,qka,rka,ska,tJ,vJ,wka,zka,tka,wJ,Jka,Ika,xJ,Lka,Kka,Nka,Oka,Qka,Pka,
Rka,Ska,Tka,Uka,Vka,Wka,Xka,Yka,yJ,zJ,Zka,$ka,ala,dla,ela,fla,gla,hla,GJ,jla,kla,EJ,FJ,ila,lla,IJ,ola,mla,qla,pla,JJ,vla,sla,tla,ula,wla,KJ,xla,zla,Ala,yla,LJ,Bla,NJ,Dla,Ela,Zja,Cla,OJ,PJ,QJ,Fla,Gla,Hla,RJ,TJ,Jla,UJ,XJ,Kla,YJ,Lla,Mla,ZJ,Ola,Pla,Qla,Rla,Sla,Tla,Ula,Vla,dK,Wla,eK,Xla,Yla,Zla,$la,ama,iK,jK,kK,bma,lK,cma,nK,ema,dma,oK,pK,qK,rK,fma,sK,tK,gma,uK,vK,wK,xK,yK,zK,AK,DK,EK,kma,hma,jma,ima,lma,FK,GK,mma,nma,oma,pma,HK,qma,sma,rma,JK,KK,tma,LK,MK,NK,OK,PK,uma,QK,RK,wma,vma,SK,TK,UK,VK,WK,XK,
YK,ZK,$K,aL,bL,xma,cL,yma,Ama,Bma,dL,fL,Fma,Gma,Ema,Ima,Hma,Cma,Kma,hL,Dma,iL,jL,kL,lL,mL,nL,oL,Mma,Lma,Or,Oma,Nma,Pma,Qma,Rma,Sma,Tma,Vma,sL,Uma,Wma,tL,Xma,Yma,vL,fna,hna,wL,jna,kna,lna,ina,ona,pna,xL,nna,qna,rna,yL,mna,sna,DL,BL,EL,CL,rla,tna,una,vna,wna,JL,IL,LL,Bna,UL,Cna,Dna,XL,Ena,Fna,YL,ZL,$L,Ina,Gna,Jna,Kna,Mna,cM,Qna,fM,Sna,Pna,Tna,Una,eM,Rna,hM,iM,jM,kM,GL,mM,Vna,nM,qM,Wna,pM,sM,Xna,vM,wM,xM,BM,Zna,$na,DM,CM,EM,aoa,boa,FM,coa,doa,HM,IM,eoa,LM,goa,NM,JM,hoa,ioa,foa,OM,PM,SM,koa,RM,UM,TM,
WM,moa,noa,$M,ooa,cN,poa,soa,qoa,gN,hN,toa,kN,lN,mN,nN,pN,uoa,voa,rN,xoa,woa,yoa,zoa,Aoa,Boa,xN,yN,zN,Coa,AN,BN,Doa,Eoa,EN,Goa,Foa,FN,GN,HN,Hoa,IN,JN,KN,LN,Ioa,MN,NN,Joa,ON,Koa,Moa,Loa,TN,RN,SN,Noa,Ooa,Poa,UN,VN,WN,XN,YN,Qoa,aO,Roa,cO,dO,eO,gO,hO,iO,jO,Soa,Voa,kO,Toa,Uoa,Zoa,$oa,mO,bpa,apa,cpa,dpa,epa,pO,fpa,gpa,jpa,ipa,hpa,rO,sO,tO,uO,kpa,lpa,mpa,npa,qpa,ppa,opa,spa,yO,CO,upa,vpa,AO,wO,zO,EO,ypa,FO,BO,rpa,xpa,DO,tpa,wpa,zpa,Apa,HO,IO,JO,KO,Cpa,NO,OO,PO,QO,RO,SO,Dpa,TO,VO,UO,WO,XO,Epa,YO,Fpa,Hpa,
Gpa,ZO,$O,Ipa,aP,bP,Jpa,cP,Kpa,dP,Lpa,eP,jP,iP,Mpa,hP,mP,Npa,Opa,nP,oP,pP,qP,sP,Ppa,aN,Tpa,vN,Qpa,lP,Spa,wN,Rpa,Upa,Ypa,Xpa,Zpa,$pa,wP,aqa,xP,bqa,zP,AP,BP,CP,DP,EP,FP,GP,HP,IP,JP,KP,MP,NP,OP,PP,fqa,gqa,QP,hqa,RP,jqa,SP,iqa,TP,UP,VP,WP,mqa,XP,YP,lqa,oqa,rqa,qqa,sqa,$P,aQ,bQ,cQ,dQ,eQ,vqa,wqa,tqa,uqa,fQ,gQ,zqa,Aqa,yqa,hQ,Dqa,Eqa,Gqa,Bqa,Hqa,Cqa,iQ,Fqa,jQ,kQ,Jqa,FQ,Lqa,PQ,Mqa,QQ,Nqa,Kqa,Pqa,Qqa,Oqa,SQ,Sqa,Rqa,Tqa,TQ,Vqa,Uqa,UQ,VQ,Xqa,Wqa,ara,bra,cra,XQ,dra,WQ,Yqa,Zqa,$qa,era,fra,gra,hra,ZQ,ira,eR,kra,
lra,fR,nra,pra,ora,qra,sra,rra,hR,tra,ura,vra,wra,kR,lR,Bra,Era,Cra,yra,oR,xra,Dra,rR,Gra,Fra,sR,Ira,Kra,Lra,Jra,vR,Mra,yR,Qra,Rra,Sra,BR,CR,wR,DR,FR,Tra,zR,Ura,GR,Vra,Wra,Xra,Yra,Ora,xR,IR,dsa,JR,esa,fsa,bsa,LR,gsa,MR,$ra,PR,csa,hsa,NR,KR,isa,QR,jsa,lsa,TR,RR,UR,SR,VR,msa,WR,YR,ZR,$R,nsa,aS,osa,cS,qsa,rsa,ssa,fS,eS,dS,tsa,usa,vsa,wsa,iS,jS,kS,xsa,ysa,zsa,Asa,Bsa,Csa,Fsa,lS,Hsa,nS,pS,mS,qS,Dsa,rS,Gsa,Esa,oS,sS,tS,Isa,uS,vS,wS,Jsa,Lsa,Psa,Msa,Nsa,Osa,BS,CS,ES,GS,Zra,HS,Rsa,HR,Ssa,Tsa,IS,Usa,Ysa,Zsa,
$sa,NS,OS,ata,PS,Xsa,bta,cta,JS,Vsa,dta,KS,LS,Wsa,eta,fta,MS,gta,hta,ita,kta,SS,mta,lta,jta,QS,RS,nta,ota,pta,qta,TS,rta,US,VS,sta,WS,tta,XS,xta,ZS,zta,aT,vta,wta,uta,$S,YS,yta,Bta,Ata,cT,Cta,dT,Dta,eT,Eta,Fta,Gta,Hta,Ita,fT,Jta,Kta,Lta,Mta,gT,Nta,Ota,hT,iT,jT,kT,lT,Pta,Qta,yS,AS,Tta,oT,pT,zS,Qsa,sT,nT,mT,Rta,Sta,Uta,tT,uT,Vta,rT,xS,qT,Wta,Xta,DS,Yta,vT,$ta,Zta,wT,cua,bua,dua,eua,zT,hua,xT,pua,yT,qua,AT,lua,iua,mua,fua,BT,rua,sua,vua,uua,tua,CT,DT,Aua,Bua,Cua,HT,IT,Dua,KT,MT,OT,Gua,Hua,Iua,PT,Jua,
FT,RT,Kua,Lua,Nua,Oua,QT,Mua,xua,zua,NT,Eua,Pua,Qua,Rua,yua,GT,ET,LT,JT,Sua,wua,Tua,TT,UT,VT,Uua,Vua,Wua,Yua,Xua,WT,Zua,ava,$ua,cva,ZT,hva,dva,iva,jva,fva,kva,gva,$T,ova,mva,nva,tva,qva,uva,vva,wva,XT,pva,sva,lva,xva,aU,yva,eva,zva,bU,cU,Ava,Cva,Dva,dU,Bva,eU,fU,gU,hU,jU,Fva,Hva,Iva,Kva,Jva,kU,Gva,mU,lU,Lva,iU,Mva,nU,qU,Nva,Pva,Ova,pU,Qva,Rva,Tva,Sva,Uva,rU,oU,Vva,sU,Xva,Yva,Zva,Wva,$va,awa,cwa,ewa,fwa,bwa,hwa,iwa,dwa,vU,jwa,kwa,lwa,mwa,wU,xU,AU,BU,pwa,CU,qwa,rwa,swa,DU,nwa,twa,uwa,GU,vwa,wwa,ywa,
xwa,zwa,HU,IU,Awa,JU,KU,LU,Ewa,NU,MU,Fwa,QU,Dwa,Hwa,Cwa,PU,Iwa,Gwa,OU,Jwa,RU,Kwa,owa,FU,Mwa,Nwa,Owa,Pwa,Qwa,Rwa,Swa,Uwa,Vwa,Wwa,Twa,Xwa,Ywa,TU,ST,Zwa,$wa,axa,UU,VU,bxa,cxa,dxa,XU,fxa,$U,ZU,gxa,hxa,YU,WU,exa,cV,bV,dV,aV,ixa,fV,mxa,iV,kV,lV,oxa,kxa,gV,jV,mV,lxa,pxa,nV,rxa,eV,sxa,txa,qxa,uxa,hV,nxa,vxa,jxa,oV,pV,qV,wxa,xxa,yxa,Axa,Bxa,Cxa,Dxa,Exa,Fxa,Hxa,rV,Ixa,Jxa,sV,Kxa,Lxa,Mxa,Nxa,Oxa,Pxa,Qxa,Rxa,Sxa,Uxa,Wxa,Yxa,tV,Zxa,bya,uV,cya,$xa,aya,jya,eya,hya,kya,iya,fya,lya,gya,nya,vV,pya,qya,rya,EV,$H,FV,
AL,uya,Nra,xya,GV,DV,yya,NV,IV,uR,vya,PV,Aya,nR,QV,RV,zL,MV,SV,xV,zya,sya,BV,VV,WV,Hya,pR,Iya,AV,Hra,UV,ER,OR,HV,Bya,Kya,Jya,Lya,XV,Ara,Mya,Nya,Fya,wV,Oya,YV,JV,yV,CV,qR,KV,Pya,tya,ZV,AR,$V,Qya,Rya,LV,Sya,zra,TV,Gya,wya,eza,$ya,Zya,hza,iza,dW,gW,lza,jza,fW,kza,aW,iW,jW,nza,kW,lW,cza,dza,rW,qza,qW,cW,rza,fza,uW,sza,tza,nW,oW,mW,xW,yza,hW,zza,Aza,yW,tW,zW,AW,Bza,pW,mza,wW,uza,Cza,Dza,FL,Fza,sW,BW,Hza,eW,CW,Iza,Kza,Lza,bza,vW,Mza,aza,DW,EW,psa,Nza,FW,GW,HW,Oza,IW,JW,KW,LW,MW,NW,Qza,Pza,OW,Rza,PW,R,QW,
Tza,RW,Wza,Vza,Xza,TW,Yza,UW,SW,VW,WW,uja,vja,Kia,YW,$za,fX,gX,JI,eX,hX,cAa,dAa,eAa,fAa,Zza,gAa,XW,iAa,jAa,kX,bX,jX,pX,qX,lX,$W,kAa,hAa,ZW,iX,mX,rX,cX,dX,oX,nX,mAa,sX,tX,nAa,uX,Y,oAa,pAa,rAa,sAa,wAa,vX,xAa,tAa,yAa,wX,zAa,AAa,DAa,GAa,EAa,JAa,MAa,LAa,NAa,QAa,PAa,TAa,VAa,XAa,YAa,bBa,GX,ZAa,dBa,cBa,gBa,HX,av,hBa,JX,Yu,LX,vfa,MX,HJ,NX,OX,xX,PX,jBa,FX,yX,kBa,QX,RX,BX,lBa,IAa,zX,AX,EX,mBa,nBa,SX,TX,oBa,IX,DX,CX,BAa,WAa,fBa,$Aa,OAa,RAa,UX,VX,pBa,WX,XX,YX,ZX,$X,aY,bY,cY,dY,qAa,rBa,qBa,CAa,eBa,sBa,UAa,HAa,
FAa,vAa,uAa,KAa,aBa,SAa,eY,tBa,fY,KI,aX,aAa,KX,gY,hY,iY,uBa,jY,kY,lY,mY,MJ,nY,vBa,wBa,II,oY,xBa,yBa,qY,BBa,ABa,CBa,sY,tY,uY,zBa,rY,DBa,EBa,vY,$u,HBa,GBa,wY,pY,IBa,JBa,KBa,xY,yY,LBa,MBa,NBa,OBa,zY,AY,BY,CY,DY,EY,FY,PBa,GY,HY,IY,JY,KY,LY,QBa,RBa,SBa,MY,NY,OY,PY,TBa,QY,UBa,RY,VBa,SY,WBa,TY,UY,VY,WY,YBa,XBa,YY,ZY,ZBa,$Ba,aCa,aZ,$Y,bZ,cZ,bCa,cCa,dZ,eZ,dCa,fZ,fCa,eCa,gZ,hZ,gCa,iZ,iCa,jCa,hCa,kCa,jZ,lCa,mCa,kZ,lZ,mZ,nZ,oZ,pZ,nCa,qZ,rZ,oCa,sZ,XY,tZ,uZ,tja,vZ,pCa,wZ,qCa,xZ,yZ,zZ,AZ,rCa,sCa,uCa,wCa,tCa,BZ,
xCa,zCa,yCa,ACa,BCa,CZ,DZ,EZ,iBa,CCa,FZ,DCa,GZ,vCa,ECa,FCa,HZ,IZ,GCa,JZ,HCa,ICa,KZ,JCa,KCa,LZ,NZ,LCa,OZ,PZ,MCa,QZ,NCa,RZ,OCa,SZ,TZ,UZ,PCa,VZ,QCa,RCa,SCa,TCa,UCa,XZ,VCa,WCa,XCa,YCa,ZCa,YZ,$Ca,ZZ,$Z,a_,b_,c_,aDa,d_,bDa,e_,cDa,dDa,eDa,h_,fDa,gDa,hDa,iDa,i_,g_,jDa,k_,l_,m_,n_,o_,kDa,mDa,lDa,nDa,p_,oDa,pDa,q_,qDa,r_,s_,t_,rDa,sDa,tDa,u_,uDa,v_,w_,vDa,wDa,Zu,xDa,yDa,ADa,aa,fa,ea,eaa,Ha,Pa,faa;ba=function(a){return function(){return aa[a].apply(this,arguments)}};
g.ca=function(a,b){return aa[a]=b};
da=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
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");};
ia=function(a,b){if(b)a:{var c=ea;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&&fa(c,a,{configurable:!0,writable:!0,value:b})}};
ka=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
g.q=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:da(a)}};
la=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.ma=function(a){return a instanceof Array?a:la(g.q(a))};
g.v=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.me=b.prototype};
qa=function(){this.J=!1;this.B=null;this.l=void 0;this.i=1;this.C=this.I=0;this.W=this.u=null};
ra=function(a){if(a.J)throw new TypeError("Generator is already running");a.J=!0};
sa=function(a,b){a.u={iG:b,mH:!0};a.i=a.I||a.C};
g.w=function(a,b,c){a.i=c;return{value:b}};
ua=function(a,b,c){a.I=b;void 0!=c&&(a.C=c)};
va=function(a,b){a.i=b;a.I=0};
wa=function(a){a.I=0;var b=a.u.iG;a.u=null;return b};
baa=function(a){this.i=new qa;this.l=a};
caa=function(a,b){ra(a.i);var c=a.i.B;if(c)return xa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.i.return);
a.i.return(b);return ya(a)};
xa=function(a,b,c,d){try{var e=b.call(a.i.B,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.i.J=!1,e;var f=e.value}catch(h){return a.i.B=null,sa(a.i,h),ya(a)}a.i.B=null;d.call(a.i,f);return ya(a)};
ya=function(a){for(;a.i.i;)try{var b=a.l(a.i);if(b)return a.i.J=!1,{value:b.value,done:!1}}catch(c){a.i.l=void 0,sa(a.i,c)}a.i.J=!1;if(a.i.u){b=a.i.u;a.i.u=null;if(b.mH)throw b.iG;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
daa=function(a){this.next=function(b){ra(a.i);a.i.B?b=xa(a,a.i.B.next,b,a.i.L):(a.i.L(b),b=ya(a));return b};
this.throw=function(b){ra(a.i);a.i.B?b=xa(a,a.i.B["throw"],b,a.i.L):(sa(a.i,b),b=ya(a));return b};
this.return=function(b){return caa(a,b)};
this[Symbol.iterator]=function(){return this}};
g.z=function(a,b){b=new daa(new baa(b));pa&&a.prototype&&pa(b,a.prototype);return b};
za=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Aa=function(a,b,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{XG:e,xK:f}}return{XG:-1,xK:void 0}};
Ba=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Da=function(a){return a?a:Array.prototype.fill};
Ea=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};
g.Fa=function(a,b,c){a=a.split(".");c=c||g.A;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};
Ia=function(a){if(a&&a!=g.A)return Ga(a.document);null===Ha&&(Ha=Ga(g.A.document));return Ha};
Ga=function(a){return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&eaa.test(a)?a:""};
g.Ja=function(a,b){a=a.split(".");b=b||g.A;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
g.Ka=function(){};
La=function(a){a.yg=void 0;a.getInstance=function(){return a.yg?a.yg:a.yg=new a}};
Ma=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Na=function(a){var b=Ma(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Oa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Qa=function(a){return Object.prototype.hasOwnProperty.call(a,Pa)&&a[Pa]||(a[Pa]=++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.B=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.B=gaa:g.B=haa;return g.B.apply(null,arguments)};
g.Ra=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.Sa=function(a,b){for(var c in b)a[c]=b[c]};
g.Ta=function(){return Date.now()};
g.Ua=function(a,b){function c(){}
c.prototype=b.prototype;a.me=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Kh=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)}};
Va=function(a){return a};
Wa=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Wa);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
Xa=function(a,b){var c=Wa.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(Wa,this,d+a[e])};
iaa=function(){};
jaa=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.u=!b&&/[?&]ae=1(&|$)/.test(a);this.B=!b&&/[?&]ae=2(&|$)/.test(a);if((this.i=/[?&]adurl=([^&]*)/.exec(a))&&this.i[1]){try{var c=decodeURIComponent(this.i[1])}catch(d){c=null}this.l=c}};
Ya=function(a){return function(){return a}};
kaa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Za=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
$a=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
laa=function(a,b){var c=0;return function(d){g.A.clearTimeout(c);var e=arguments;c=g.A.setTimeout(function(){a.apply(b,e)},50)}};
g.ab=function(a){return a[a.length-1]};
maa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.cb=function(a,b,c){b=bb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
bb=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.db=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.fb=function(a,b){return 0<=eb(a,b)};
g.gb=function(a){return 0==a.length};
ib=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.kb=function(a,b){b=eb(a,b);var c;(c=0<=b)&&g.jb(a,b);return c};
g.jb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.lb=function(a,b){b=bb(a,b,void 0);0<=b&&g.jb(a,b)};
naa=function(a,b){var c=0;maa(a,function(d,e){b.call(void 0,d,e,a)&&g.jb(a,e)&&c++})};
g.nb=function(a){return Array.prototype.concat.apply([],arguments)};
g.ob=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[]};
pb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Na(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.rb=function(a,b,c,d){Array.prototype.splice.apply(a,qb(arguments,1))};
qb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
oaa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Oa(e)?"o"+g.Qa(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.ub=function(a,b,c){return sb(a,c||tb,!1,b)};
vb=function(a,b){return sb(a,b,!0,void 0,void 0)};
sb=function(a,b,c,d,e){for(var f=0,h=a.length,l;f<h;){var m=f+(h-f>>>1),n=void 0;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(h=m,l=!n)}return l?f:-f-1};
g.wb=function(a,b){a.sort(b||tb)};
paa=function(a,b){var c=tb;g.wb(a,function(d,e){return c(b(d),b(e))})};
g.xb=function(a,b){if(!g.Na(a)||!g.Na(b)||a.length!=b.length)return!1;for(var c=a.length,d=qaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
tb=function(a,b){return a>b?1:a<b?-1:0};
qaa=function(a,b){return a===b};
g.yb=function(a,b,c){c=g.ub(a,b,c);0>c&&g.rb(a,-(c+1),0,b)};
g.Ab=function(a,b,c){var d={};(0,g.zb)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
raa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
saa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
g.Cb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Db=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Fb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Gb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Hb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Ib=function(a){for(var b in a)return b};
Jb=function(a){for(var b in a)return a[b]};
g.Kb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Lb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
Mb=function(a,b){return null!==a&&b in a};
g.Nb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Ob=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Pb=function(a,b){return(b=Ob(a,b,void 0))&&a[b]};
g.Qb=function(a){for(var b in a)return!1;return!0};
g.Rb=function(a){for(var b in a)delete a[b]};
Sb=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.Tb=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.Ub=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.Vb=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();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.Vb(a[c]);return b};
g.Xb=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<Wb.length;f++)c=Wb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
Yb=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
$b=function(){if(void 0===Zb){var a=null,b=g.A.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Va,createScript:Va,createScriptURL:Va})}catch(c){g.A.console&&g.A.console.error(c.message)}Zb=a}else Zb=a}return Zb};
dc=function(a,b){this.i=a===ac&&b||"";this.l=cc};
ec=function(a){return a instanceof dc&&a.constructor===dc&&a.l===cc?a.i:"type_error:Const"};
g.gc=function(a){return new dc(ac,a)};
ic=function(a){this.i=hc===hc?a:"";this.Hk=!0};
kc=function(a,b){this.i=b===jc?a:""};
lc=function(a){return a instanceof kc&&a.constructor===kc?a.i:"type_error:TrustedResourceUrl"};
vaa=function(a,b){var c=ec(a);if(!taa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(uaa,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 dc?ec(d):encodeURIComponent(String(d))});
return mc(a)};
mc=function(a){var b=$b();a=b?b.createScriptURL(a):a;return new kc(a,jc)};
nc=function(a,b){return 0==a.lastIndexOf(b,0)};
oc=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.pc=function(a){return/^[\s\xa0]*$/.test(a)};
xc=function(a,b){if(b)a=a.replace(qc,"&amp;").replace(rc,"&lt;").replace(sc,"&gt;").replace(uc,"&quot;").replace(vc,"&#39;").replace(wc,"&#0;");else{if(!waa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(qc,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(rc,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(sc,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(uc,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(vc,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(wc,"&#0;"))}return a};
yc=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.Bc=function(a,b){var c=0;a=zc(String(a)).split(".");b=zc(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=Ac(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||Ac(0==f[2].length,0==h[2].length)||Ac(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
Ac=function(a,b){return a<b?-1:a>b?1:0};
g.Dc=function(a,b){this.i=b===Cc?a:""};
g.Ec=function(a){return a instanceof g.Dc&&a.constructor===g.Dc?a.i:"type_error:SafeUrl"};
Fc=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(xaa);return b&&yaa.test(b[1])?new g.Dc(a,Cc):null};
g.Ic=function(a){a instanceof g.Dc||(a="object"==typeof a&&a.Hk?a.Oh():String(a),a=Gc.test(a)?new g.Dc(a,Cc):Fc(a));return a||Hc};
g.Kc=function(a,b){if(a instanceof g.Dc)return a;a="object"==typeof a&&a.Hk?a.Oh():String(a);if(b&&/^data:/i.test(a)&&(b=Fc(a)||Hc,b.Oh()==a))return b;Gc.test(a)||(a="about:invalid#zClosurez");return new g.Dc(a,Cc)};
Mc=function(a,b){this.i=b===Lc?a:""};
Nc=function(a){return a instanceof Mc&&a.constructor===Mc?a.i:"type_error:SafeStyle"};
Rc=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)?g.Oc(d,Pc).join(" "):Pc(d),b+=c+":"+d+";")}return b?new Mc(b,Lc):Qc};
Pc=function(a){if(a instanceof g.Dc)return'url("'+g.Ec(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof dc?ec(a):zaa(String(a));if(/[{;}]/.test(a))throw new Xa("Value does not allow [{;}], got: %s.",[a]);return a};
zaa=function(a){var b=a.replace(Sc,"$1").replace(Sc,"$1").replace(Tc,"url");if(Aaa.test(b)){if(Baa.test(a))return"zClosurez";for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}if(!b||!c||!Caa(a))return"zClosurez"}else return"zClosurez";return Daa(a)};
Caa=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b};
Daa=function(a){return a.replace(Tc,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.Ic(d).Oh();return c+f+b+f+e})};
Eaa=function(a){function b(d){Array.isArray(d)?g.zb(d,b):c+=Nc(d)}
var c="";g.zb(arguments,b);return c?new Mc(c,Lc):Qc};
Wc=function(a){return-1!=g.Uc.indexOf(a)};
Xc=function(){return Wc("Firefox")||Wc("FxiOS")};
Zc=function(){return Wc("Safari")&&!(Yc()||Wc("Coast")||Wc("Opera")||Wc("Edge")||Wc("Edg/")||Wc("OPR")||Xc()||Wc("Silk")||Wc("Android"))};
Yc=function(){return(Wc("Chrome")||Wc("CriOS"))&&!Wc("Edge")};
ad=function(a,b,c){this.i=c===$c?a:"";this.l=b};
g.bd=function(a){return a instanceof ad&&a.constructor===ad?a.i:"type_error:SafeHtml"};
dd=function(a){if(a instanceof ad)return a;var b="object"==typeof a,c=null;b&&a.gB&&(c=a.Qq());return cd(xc(b&&a.Hk?a.Oh():String(a)),c)};
Faa=function(a){function b(f){Array.isArray(f)?g.zb(f,b):(f=dd(f),e.push(g.bd(f).toString()),f=f.Qq(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=dd(ed),d=c.Qq(),e=[];g.zb(a,b);return cd(e.join(g.bd(c).toString()),d)};
Gaa=function(a){return Faa(Array.prototype.slice.call(arguments))};
cd=function(a,b){var c=$b();a=c?c.createHTML(a):a;return new ad(a,b,$c)};
g.fd=function(a,b){ec(a);ec(a);return cd(b,null)};
Haa=function(a){var b=g.gc("Output of CSS sanitizer");ec(b);ec(b);return new Mc(a,Lc)};
g.gd=function(a,b){if(Iaa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.bd(b)};
g.hd=function(a,b){b=b instanceof g.Dc?b:g.Kc(b);a.href=g.Ec(b)};
g.id=function(a,b){a.src=lc(b);(b=Ia(a.ownerDocument&&a.ownerDocument.defaultView))&&a.setAttribute("nonce",b)};
jd=function(a,b,c,d){a=a instanceof g.Dc?a:g.Kc(a);b=b||g.A;c=c instanceof dc?ec(c):c||"";return void 0!==d?b.open(g.Ec(a),c,d,void 0):b.open(g.Ec(a),c)};
kd=function(a,b,c){return a.parseFromString(g.bd(b),c)};
ld=function(a){return encodeURIComponent(String(a))};
md=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.nd=function(a){return a=xc(a,void 0)};
g.od=function(a){return null==a?"":String(a)};
pd=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
qd=function(a){var b=Number(a);return 0==b&&g.pc(a)?NaN:b};
rd=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
sd=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Jaa=function(a){return a.replace(/(^|[\s]+)([a-z])/g,function(b,c,d){return c+d.toUpperCase()})};
td=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};
ud=function(a){return a?decodeURI(a):a};
g.wd=function(a,b){return b.match(vd)[a]||null};
g.xd=function(a){return ud(g.wd(3,a))};
yd=function(a){a=a.match(vd);return td(a[1],null,a[3],a[4])};
zd=function(a){a=a.match(vd);return td(null,null,null,null,a[5],a[6],a[7])};
Ad=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?md(e):"")}}};
Bd=function(a){var b=a.indexOf("#");0>b&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.substr(0,c),d,a.substr(b)]};
Cd=function(a,b){return b?a?a+"&"+b:b:a};
Dd=function(a,b){if(!b)return a;a=Bd(a);a[1]=Cd(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
Ed=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Ed(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+ld(b)))};
Fd=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Ed(a[b],a[b+1],c);return c.join("&")};
g.Gd=function(a){var b=[],c;for(c in a)Ed(c,a[c],b);return b.join("&")};
Hd=function(a,b){var c=2==arguments.length?Fd(arguments[1],0):Fd(arguments,1);return Dd(a,c)};
g.Id=function(a,b){b=g.Gd(b);return Dd(a,b)};
Jd=function(a,b,c){c=null!=c?"="+ld(c):"";return Dd(a,b+c)};
Kd=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};
Md=function(a,b){var c=a.search(Ld),d=Kd(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 md(a.substr(d,e-d))};
Nd=function(a,b){for(var c=a.search(Ld),d=0,e,f=[];0<=(e=Kd(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(Kaa,"$1")};
Od=function(a,b,c){return Jd(Nd(a,b),b,c)};
Laa=function(a,b){a=Bd(a);var c=a[1],d=[];c&&c.split("&").forEach(function(e){var f=e.indexOf("=");b.hasOwnProperty(0<=f?e.substr(0,f):e)||d.push(e)});
a[1]=Cd(d.join("&"),g.Gd(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
Pd=function(){return Wc("iPhone")&&!Wc("iPod")&&!Wc("iPad")};
Qd=function(){return Pd()||Wc("iPad")||Wc("iPod")};
Rd=function(a){Rd[" "](a);return a};
Sd=function(a,b){try{return Rd(a[b]),!0}catch(c){}return!1};
Td=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
Ud=function(){var a=g.A.document;return a?a.documentMode:void 0};
g.Xd=function(a){return Td(Maa,a,function(){return 0<=g.Bc(Vd,a)})};
g.Yd=function(a){return Number(Naa)>=a};
g.Zd=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.$d=function(a,b){a%=b;return 0>a*b?a+b:a};
g.ae=function(a,b,c){return a+c*(b-a)};
be=function(a,b){return 1E-6>=Math.abs(a-b)};
g.ce=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
de=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.ee=function(a,b){this.width=a;this.height=b};
g.fe=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
ge=function(a){return a.width*a.height};
ke=function(a){return a?new he(ie(a)):je||(je=new he)};
le=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.ne=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.me(document,"*",a,b)};
g.oe=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.me(c,"*",a,b)[0]||null}return a||null};
g.me=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.fb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
te=function(a,b){g.Cb(b,function(c,d){c&&"object"==typeof c&&c.Hk&&(c=c.Oh());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:pe.hasOwnProperty(d)?a.setAttribute(pe[d],c):nc(d,"aria-")||nc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
ue=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.ee(a.clientWidth,a.clientHeight)};
xe=function(a){var b=ve(a);a=a.parentWindow||a.defaultView;return g.we&&g.Xd("10")&&a.pageYOffset!=b.scrollTop?new g.ce(b.scrollLeft,b.scrollTop):new g.ce(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
ve=function(a){return a.scrollingElement?a.scrollingElement:g.ye||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
ze=function(a){return a?a.parentWindow||a.defaultView:window};
Ce=function(a,b,c){var d=arguments,e=document,f=String(d[0]),h=d[1];if(!Oaa&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',g.nd(h.name),'"');if(h.type){f.push(' type="',g.nd(h.type),'"');var l={};g.Xb(l,h);delete l.type;h=l}f.push(">");f=f.join("")}f=Ae(e,f);h&&("string"===typeof h?f.className=h:Array.isArray(h)?f.className=h.join(" "):te(f,h));2<d.length&&Be(e,f,d,2);return f};
Be=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.Na(f)||g.Oa(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Oa(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.zb(h?g.ob(f):f,e)}}};
g.De=function(a){return Ae(document,a)};
Ae=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.Ee=function(a){return document.createTextNode(String(a))};
g.Fe=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.Ge=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.He=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Qaa=function(a){return Paa&&void 0!=a.children?a.children:g.Ie(a.childNodes,function(b){return 1==b.nodeType})};
g.Je=function(a){var b;if(Raa&&!(g.we&&g.Xd("9")&&!g.Xd("10")&&g.A.SVGElement&&a instanceof g.A.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Oa(b)&&1==b.nodeType?b:null};
g.Me=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};
ie=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Ne=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.Fe(a);var c=ie(a);a.appendChild(c.createTextNode(String(b)))}};
Qe=function(a){var b;"A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?b=!a.disabled&&(!Oe(a)||Pe(a)):b=Oe(a)&&Pe(a);if(b&&g.we){var c;"function"!==typeof a.getBoundingClientRect||g.we&&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};
Oe=function(a){return g.we&&!g.Xd("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
Pe=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Se=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Re(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.fb(f.className.split(/\s+/),c))},!0,d)};
Re=function(a,b,c,d){a&&!c&&(a=a.parentNode);for(c=0;a&&(null==d||c<=d);){if(b(a))return a;a=a.parentNode;c++}return null};
he=function(a){this.i=a||g.A.document||document};
Te=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.nd(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=ke(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=vaa(g.gc("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.nd(a)+".js"});g.id(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
g.C=function(a,b){var c=void 0;return new (c||(c=Promise))(function(d,e){function f(m){try{l(b.next(m))}catch(n){e(n)}}
function h(m){try{l(b["throw"](m))}catch(n){e(n)}}
function l(m){m.done?d(m.value):(new c(function(n){n(m.value)})).then(f,h)}
l((b=b.apply(a,void 0)).next())})};
Saa=function(a){return g.Oc(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.Ue=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};
g.Ve=function(a){for(var b=[],c=0,d=0;c<a.length;){var e=a[c++];if(128>e)b[d++]=String.fromCharCode(e);else if(191<e&&224>e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239<e&&365>e){f=a[c++];var h=a[c++],l=a[c++];e=((e&7)<<18|(f&63)<<12|(h&63)<<6|l&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],h=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|h&63)}return b.join("")};
Xe=function(a,b,c){this.l=null;this.i=this.u=this.B=0;this.C=!1;a&&We(this,a,b,c)};
Ze=function(a,b,c){if(Ye.length){var d=Ye.pop();a&&We(d,a,b,c);return d}return new Xe(a,b,c)};
We=function(a,b,c,d){b=b.constructor===Uint8Array?b:b.constructor===ArrayBuffer?new Uint8Array(b):b.constructor===Array?new Uint8Array(b):b.constructor===String?g.$e(b):b instanceof Uint8Array?new Uint8Array(b.buffer,b.byteOffset,b.byteLength):new Uint8Array(0);a.l=b;a.B=void 0!==c?c:0;a.u=void 0!==d?a.B+d:a.l.length;a.i=a.B};
af=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.l[a.i++],c|=(b&127)<<7*e;128<=b&&(b=a.l[a.i++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.l[a.i++],d|=(b&127)<<7*e+3;if(128>b){a=c>>>0;b=d>>>0;if(d=b&2147483648)a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0);a=4294967296*b+(a>>>0);return d?-a:a}a.C=!0};
bf=function(a){var b=a.l;var c=b[a.i+0];var d=c&127;if(128>c)return a.i+=1,d;c=b[a.i+1];d|=(c&127)<<7;if(128>c)return a.i+=2,d;c=b[a.i+2];d|=(c&127)<<14;if(128>c)return a.i+=3,d;c=b[a.i+3];d|=(c&127)<<21;if(128>c)return a.i+=4,d;c=b[a.i+4];d|=(c&15)<<28;if(128>c)return a.i+=5,d>>>0;a.i+=5;128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&a.i++;return d};
cf=function(a){this.i=Ze(a,void 0,void 0);this.C=this.i.i;this.l=this.u=-1;this.B=!1};
df=function(a){var b=a.i;(b=b.i==b.u)||(b=a.B)||(b=a.i,b=b.C||0>b.i||b.i>b.u);if(b)return!1;a.C=a.i.i;b=bf(a.i);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.B=!0,!1;a.u=b>>>3;a.l=c;return!0};
ef=function(a){switch(a.l){case 0:if(0!=a.l)ef(a);else{for(a=a.i;a.l[a.i]&128;)a.i++;a.i++}break;case 1:1!=a.l?ef(a):a.i.advance(8);break;case 2:if(2!=a.l)ef(a);else{var b=bf(a.i);a.i.advance(b)}break;case 5:5!=a.l?ef(a):a.i.advance(4);break;case 3:b=a.u;do{if(!df(a)){a.B=!0;break}if(4==a.l){a.u!=b&&(a.B=!0);break}ef(a)}while(1);break;default:a.B=!0}};
hf=function(a){var b=bf(a.i);a=a.i;var c=a.l,d=a.i,e=d+b;b=[];for(var f="";d<e;){var h=c[d++];if(128>h)b.push(h);else if(192>h)continue;else if(224>h){var l=c[d++];b.push((h&31)<<6|l&63)}else if(240>h){l=c[d++];var m=c[d++];b.push((h&15)<<12|(l&63)<<6|m&63)}else if(248>h){l=c[d++];m=c[d++];var n=c[d++];h=(h&7)<<18|(l&63)<<12|(m&63)<<6|n&63;h-=65536;b.push((h>>10&1023)+55296,(h&1023)+56320)}8192<=b.length&&(f+=String.fromCharCode.apply(null,b),b.length=0)}c=f;if(8192>=b.length)b=String.fromCharCode.apply(null,
b);else{e="";for(f=0;f<b.length;f+=8192)h=qb(b,f,f+8192),e+=String.fromCharCode.apply(null,h);b=e}a.i=d;return c+b};
jf=function(a){var b=bf(a.i);a=a.i;if(0>b||a.i+b>a.l.length)a.C=!0,b=new Uint8Array(0);else{var c=a.l.subarray(a.i,a.i+b);a.i+=b;b=c}return b};
kf=function(){this.i=[]};
lf=function(a,b){for(;127<b;)a.i.push(b&127|128),b>>>=7;a.i.push(b)};
mf=function(a,b){a.i.push(b>>>0&255);a.i.push(b>>>8&255);a.i.push(b>>>16&255);a.i.push(b>>>24&255)};
g.pf=function(a,b){void 0===b&&(b=0);nf();b=of[b];for(var c=[],d=0;d<a.length;d+=3){var e=a[d],f=d+1<a.length,h=f?a[d+1]:0,l=d+2<a.length,m=l?a[d+2]:0,n=e>>2;e=(e&3)<<4|h>>4;h=(h&15)<<2|m>>6;m&=63;l||(m=64,f||(h=64));c.push(b[n],b[e],b[h]||"",b[m]||"")}return c.join("")};
g.qf=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.pf(b,3)};
Taa=function(a){var b=[];rf(a,function(c){b.push(c)});
return b};
g.$e=function(a){!g.we||g.Xd("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):-1!="=.".indexOf(a[b-1])&&(c=-1!="=.".indexOf(a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;rf(a,function(f){d[e++]=f});
return d.subarray(0,e)};
rf=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=sf[n];if(null!=p)return p;if(!g.pc(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
nf();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))}};
nf=function(){if(!sf){sf={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));of[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===sf[f]&&(sf[f]=e)}}}};
tf=function(){this.l=[];this.u=0;this.i=new kf};
wf=function(a,b,c){if(null!=c&&null!=c){lf(a.i,8*b);a=a.i;var d=c;c=0>d;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295<b&&(b=0,d++,4294967295<d&&(d=0)));uf=b;vf=d;c=uf;for(b=vf;0<b||127<c;)a.i.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.i.push(c)}};
xf=function(){};
Df=function(a,b,c,d,e,f){a.u=null;b||(b=c?[c]:[]);a.J=c?String(c):void 0;a.B=0===c?-1:0;a.i=b;a:{c=a.i.length;b=-1;if(c&&(b=c-1,c=a.i[b],!(null===c||"object"!=typeof c||Array.isArray(c)||yf&&c instanceof Uint8Array))){a.C=b-a.B;a.l=c;break a}-1<d?(a.C=Math.max(d,b+1-a.B),a.l=null):a.C=Number.MAX_VALUE}a.I={};if(e)for(d=0;d<e.length;d++)b=e[d],b<a.C?(b+=a.B,a.i[b]=a.i[b]||zf):(Af(a),a.l[b]=a.l[b]||zf);if(f&&f.length)for(d=0;d<f.length;d++){b=e=void 0;c=a;for(var h=f[d],l=0;l<h.length;l++){var m=h[l],
n=Bf(c,m);null!=n&&(b=m,e=n,Cf(c,m,void 0))}b&&Cf(c,b,e)}};
Af=function(a){var b=a.C+a.B;a.i[b]||(a.l=a.i[b]={})};
Bf=function(a,b){if(b<a.C){b+=a.B;var c=a.i[b];return c!==zf?c:a.i[b]=[]}if(a.l)return c=a.l[b],c===zf?a.l[b]=[]:c};
Uaa=function(a){return null==a||a instanceof Uint8Array?a:"string"===typeof a?g.$e(a):null};
Ef=function(a,b){a=Bf(a,b);return null==a?0:a};
Cf=function(a,b,c){b<a.C?a.i[b+a.B]=c:(Af(a),a.l[b]=c)};
Ff=function(a,b,c){0!==c?Cf(a,b,c):b<a.C?a.i[b+a.B]=null:(Af(a),delete a.l[b]);return a};
Gf=function(a){if(a.u)for(var b in a.u){var c=a.u[b];if(Array.isArray(c))for(var d=0;d<c.length;d++)c[d]&&Gf(c[d]);else c&&Gf(c)}return a.i};
Vaa=function(a){var b=Hf(Gf(a)),c=Df;Df=function(d,e,f,h,l,m){c(d,b,f,h,l,m);Df=c};
a=new a.constructor(b);Df!==c&&(Df=c);return a};
Hf=function(a){if(Array.isArray(a)){for(var b=Array(a.length),c=0;c<a.length;c++){var d=a[c];null!=d&&(b[c]="object"==typeof d?Hf(d):d)}return b}if(yf&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?Hf(d):d);return b};
If=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};
Jf=function(a){return a?a.passive&&Waa()?a:a.capture||!1:!1};
Kf=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Jf(d)),!0):!1};
Lf=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,Jf(void 0))};
Nf=function(){return!Mf()&&(Wc("iPod")||Wc("iPhone")||Wc("Android")||Wc("IEMobile"))};
Mf=function(){return Wc("iPad")||Wc("Android")&&!Wc("Mobile")||Wc("Silk")};
Of=function(a){try{return!!a&&null!=a.location.href&&Sd(a,"foo")}catch(b){return!1}};
Pf=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
Yaa=function(){var a=[];Pf(Xaa,function(b){a.push(b)});
return a};
$aa=function(a){return(a=Zaa.exec(a))&&a[0]||""};
aba=function(){var a=Qf;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};
cba=function(){var a=g.De("IFRAME"),b={};g.zb(bba(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
Rf=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
Sf=function(a){return a.right-a.left};
Tf=function(a,b,c){b instanceof g.ce?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a};
g.Uf=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
Vf=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};
Wf=function(){this.u="&";this.l={};this.B=0;this.i=[]};
Xf=function(a,b){var c={};c[a]=b;return[c]};
Zf=function(a,b,c,d,e){var f=[];Pf(a,function(h,l){(h=Yf(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
Yf=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(Yf(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(Zf(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
eba=function(a,b,c){b=b+"//pagead2.googlesyndication.com"+c;var d=dba(a)-c.length;if(0>d)return"";a.i.sort(function(p,r){return p-r});
c=null;for(var e="",f=0;f<a.i.length;f++)for(var h=a.i[f],l=a.l[h],m=0;m<l.length;m++){if(!d){c=null==c?h:c;break}var n=Zf(l[m],a.u,",$");if(n){n=e+n;if(d>=n.length){d-=n.length;b+=n;e=a.u;break}c=null==c?h:c}}a="";null!=c&&(a=e+"trn="+c);return b+a+""};
dba=function(a){var b=1,c;for(c in a.l)b=c.length>b?c.length:b;return 3997-b-a.u.length-1};
ag=function(a){$f();return cd(a,null)};
g.bg=function(a){$f();return mc(a)};
g.dg=function(a,b,c){if("string"===typeof b)(b=cg(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=cg(c,d);f&&(c.style[f]=e)}};
cg=function(a,b){var c=eg[b];if(!c){var d=rd(b);c=d;void 0===a.style[d]&&(d=(g.ye?"Webkit":fg?"Moz":g.we?"ms":g.gg?"O":null)+Jaa(d),void 0!==a.style[d]&&(c=d));eg[b]=c}return c};
g.hg=function(a,b){var c=a.style[rd(b)];return"undefined"!==typeof c?c:a.style[cg(a,b)]||""};
ig=function(a,b){var c=ie(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
jg=function(a,b){return ig(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.lg=function(a,b,c){if(b instanceof g.ce){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.kg(d,!1);a.style.top=g.kg(b,!1)};
mg=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
fba=function(a){if(g.we&&!g.Yd(8))return a.offsetParent;var b=ie(a),c=jg(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=jg(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.ng=function(a){var b=ie(a),c=new g.ce(0,0);var d=b?ie(b):document;d=!g.we||g.Yd(9)||"CSS1Compat"==ke(d).i.compatMode?d.documentElement:d.body;if(a==d)return c;a=mg(a);b=xe(ke(b).i);c.x=a.left+b.x;c.y=a.top+b.y;return c};
pg=function(a,b){var c=new g.ce(0,0),d=ze(ie(a));if(!Sd(d,"parent"))return c;do{var e=d==b?g.ng(a):og(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.rg=function(a,b){a=qg(a);b=qg(b);return new g.ce(a.x-b.x,a.y-b.y)};
og=function(a){a=mg(a);return new g.ce(a.left,a.top)};
qg=function(a){if(1==a.nodeType)return og(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.ce(a.clientX,a.clientY)};
g.sg=function(a,b,c){if(b instanceof g.ee)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.kg(b,!0);a.style.height=g.kg(c,!0)};
g.kg=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.tg=function(a){var b=gba;if("none"!=jg(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};
gba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.ye&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=mg(a),new g.ee(a.right-a.left,a.bottom-a.top)):new g.ee(b,c)};
g.ug=function(a,b){a.style.display=b?"":"none"};
Ag=function(){if(vg&&!Of(wg)){var a="."+zg.domain;try{for(;2<a.split(".").length&&!Of(wg);)zg.domain=a=a.substr(a.indexOf(".")+1),wg=window.parent}catch(b){}Of(wg)||(wg=window)}return wg};
Bg=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.ee(b.innerWidth,b.innerHeight)).round():ue(b||window).round()}catch(d){return new g.ee(-12245933,-12245933)}};
Cg=function(a,b,c){try{a&&(b=b.top);var d=Bg(a,b,void 0===c?!1:c),e=xe(ke(b.document).i);if(-12245933==d.width){var f=d.width;var h=new Rf(f,f,f,f)}else h=new Rf(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new Rf(-12245933,-12245933,-12245933,-12245933)}};
hba=function(a){var b={};g.zb(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.i(e)||(b[d]=null)):b[d]=c});
naa(a,function(c){return null===b[c.event]})};
Dg=function(){this.Sc=0;this.i=!1;this.l=-1;this.gp=!1;this.Dh=0};
Eg=function(){this.l=null;this.i=!1};
Fg=function(a){Eg.call(this);this.u=a};
Gg=function(){Eg.call(this)};
Hg=function(){Eg.call(this)};
Ig=function(){this.i={};this.l=!0;this.u={}};
Jg=function(a,b,c){a.i[b]||(a.i[b]=new Fg(c));return a.i[b]};
iba=function(a){a.i.queryid||(a.i.queryid=new Hg)};
Kg=function(a,b,c){(a=a.i[b])&&a.setValue(c)};
Lg=function(a,b){if(Mb(a.u,b))return a.u[b];if(a=a.i[b])return a.getValue()};
Mg=function(a){var b={},c=g.Db(a.i,function(d){return d.i});
g.Cb(c,function(d,e){d=void 0!==a.u[e]?String(a.u[e]):d.i&&null!==d.l?String(d.l):"";0<d.length&&(b[e]=d)},a);
return b};
jba=function(a){a=Mg(a);var b=[];g.Cb(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
kba=function(){this.i=this.on=null};
Ng=function(){};
Pg=function(){if(!Og())throw Error();};
Og=function(){return!(!Qg||!Qg.performance)};
Rg=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
Sg=function(){};
Vg=function(a){a=a||Tg();for(var b=new Ug(g.A.location.href,g.A,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&lba.test(f.url)&&(c=f);if(f.url&&!f.oB){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new mba(b,e,c)};
Tg=function(){var a=g.A,b=[],c=null;do{var d=a;if(Of(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Ug(e||"",d));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.A;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.oB=!0);return b};
mba=function(a,b,c){this.i=a;this.l=b;this.u=c};
Ug=function(a,b,c){this.url=a;this.Ig=b;this.oB=!!c;this.depth=null};
Wg=function(a,b){this.i=a;this.depth=b};
oba=function(){function a(l,m){return null==l?m:l}
var b=Tg(),c=Math.max(b.length-1,0),d=Vg(b);b=d.i;var e=d.l,f=d.u,h=[];f&&h.push(new Wg([f.url,f.oB?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Wg([e.url,2],0));b.url&&b!=f&&h.push(new Wg([b.url,0],a(b.depth,c)));d=g.Oc(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=$aa(b.url))&&d.push([new Wg([e,1],a(b.depth,c))]);d.push([]);return g.Oc(d,function(l){return nba(c,l)})};
nba=function(a,b){g.Xg(b,function(e){return 0<=e.depth});
var c=Yg(b,function(e,f){return Math.max(e,f.depth)},-1),d=raa(c+2);
d[0]=a;g.zb(b,function(e){return d[e.depth+1]=e.i});
return d};
pba=function(){var a=oba();return g.Oc(a,function(b){return Yf(b)})};
Zg=function(){this.l=new Sg;this.i=Og()?new Pg:new Ng};
qba=function(){$g();var a=Qg.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Qg.setInterval&&"function"===typeof Qg.clearInterval&&"function"===typeof Qg.setTimeout&&"function"===typeof Qg.clearTimeout)};
ah=function(a){$g();var b=Ag()||Qg;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)};
bh=function(){$g();return pba()};
ch=function(){};
$g=function(){return ch.getInstance().getContext()};
dh=function(a){Df(this,a,0,-1,null,null)};
rba=function(a){this.u=a;this.i=-1;this.l=this.B=0};
eh=function(a,b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];if(-1<a.i)return b.apply(null,g.ma(d));try{return a.i=a.u.i.now(),b.apply(null,g.ma(d))}finally{a.B+=a.u.i.now()-a.i,a.i=-1,a.l+=1}}};
sba=function(a,b){this.l=a;this.u=b;this.i=new rba(a)};
tba=function(){};
hh=function(){this.u=void 0;this.l=this.I=0;this.C=-1;this.featureSet=new Ig;Jg(this.featureSet,"mv",fh).i=!0;Jg(this.featureSet,"omid",gh);Jg(this.featureSet,"epoh",gh).i=!0;Jg(this.featureSet,"epph",gh).i=!0;Jg(this.featureSet,"umt",gh).i=!0;Jg(this.featureSet,"phel",gh).i=!0;Jg(this.featureSet,"phell",gh).i=!0;Jg(this.featureSet,"oseid",uba).i=!0;var a=this.featureSet;a.i.sloi||(a.i.sloi=new Gg);a.i.sloi.i=!0;Jg(this.featureSet,"xdi",gh).i=!0;Jg(this.featureSet,"amp",gh).i=!0;Jg(this.featureSet,
"prf",gh).i=!0;Jg(this.featureSet,"gtx",gh).i=!0;Jg(this.featureSet,"mvp_lv",gh).i=!0;Jg(this.featureSet,"vcm",gh).i=!0;Jg(this.featureSet,"dov",fh).i=!0;Jg(this.featureSet,"ssmol",gh).i=!0;Jg(this.featureSet,"aud",gh).i=!0;this.i=new sba($g(),this.featureSet);this.B=!1;this.flags=new tba};
vba=function(){var a="https:";Qg&&Qg.location&&"http:"===Qg.location.protocol&&(a="http:");this.l=a;this.i=.01;this.u=Math.random()};
ih=function(a,b,c,d,e){if((d?a.u:Math.random())<(e||a.i))try{if(c instanceof Wf)var f=c;else f=new Wf,Pf(c,function(l,m){var n=f,p=n.B++;l=Xf(m,l);n.i.push(p);n.l[p]=l});
var h=eba(f,a.l,"/pagead/gen_204?id="+b+"&");h&&ah(h)}catch(l){}};
jh=function(){var a=g.A.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Ta()};
kh=function(){var a=void 0===a?g.A:a;return(a=a.performance)&&a.now?a.now():null};
wba=function(a,b){var c=kh()||jh();this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
mh=function(){var a=Ag();this.events=[];this.l=a||g.A;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.i=lh()||(null!=b?b:1>Math.random())};
oh=function(a){a&&nh&&lh()&&(nh.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),nh.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
uh=function(){var a=ph;this.i=qh;this.hG="jserror";this.PC=!0;this.Iz=null;this.l=this.FB;this.Cb=void 0===a?null:a};
xh=function(a,b,c,d){return eh(hh.getInstance().i.i,function(){try{if(a.Cb&&a.Cb.i){var e=a.Cb.start(b.toString(),3);var f=c();a.Cb.end(e)}else f=c()}catch(m){var h=a.PC;try{oh(e);var l=new vh(wh(m));h=a.l(b,l,void 0,d)}catch(n){a.FB(217,n)}if(!h)throw m;}return f})()};
zh=function(a,b,c){var d=yh;return eh(hh.getInstance().i.i,function(e){for(var f=[],h=0;h<arguments.length;++h)f[h-0]=arguments[h];return xh(d,a,function(){return b.apply(void 0,f)},c)})};
wh=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};
vh=function(a){If.call(this,Error(a),{message:a})};
Ah=function(){var a=Ag();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||ph.disable())};
xba=function(a){yh.Iz=function(b){g.zb(a,function(c){c(b)})}};
Bh=function(a,b){return xh(yh,a,b,void 0)};
Ch=function(a,b){return zh(a,b,void 0)};
Dh=function(a,b,c,d){yh.FB(a,b,c,d)};
Eh=function(){return Date.now()-yba};
zba=function(){var a=hh.getInstance().u,b=0<=Fh?Eh()-Fh:-1,c=Gh?Eh()-Hh:-1,d=0<=Ih?Eh()-Ih:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Dh(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};
Jh=function(a,b,c){var d=new Rf(0,0,0,0);this.time=a;this.volume=null;this.u=b;this.i=d;this.l=c};
Kh=function(a,b,c,d,e,f,h){this.B=a;this.u=b;this.I=c;this.i=d;this.C=e;this.l=f;this.J=h};
Lh=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,Of(a)&&(c=a,b=d);return{Ig:c,level:b}};
Mh=function(a){var b=a!==a.top,c=a.top===Lh(a).Ig,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),Hb(Aba,function(h){return"function"===typeof f[h]})||(e=1));
return{tj:f,compatibility:e,jT:d}};
Bba=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint};
Nh=function(a,b,c,d){var e=void 0===e?!1:e;c=zh(d,c,void 0);Kf(a,b,c,{capture:e})};
Oh=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
Ph=function(a){return new Rf(a.top,a.right,a.bottom,a.left)};
Qh=function(a){var b=a.top||0,c=a.left||0;return new Rf(b,c+(a.width||0),b+(a.height||0),c)};
Rh=function(a){return null!=a&&0<=a&&1>=a};
Cba=function(){var a=g.Uc;return a?Sh("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return yc(a,b)})||yc(a,"OMI/")&&!yc(a,"XiaoMi/")?!0:yc(a,"Presto")&&yc(a,"Linux")&&!yc(a,"X11")&&!yc(a,"Android")&&!yc(a,"Mobi"):!1};
Th=function(){this.u=!Of(Qg.top);this.isMobileDevice=Mf()||Nf();var a=Tg();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.xd(a[a.length-1].url)||"":"";this.i=new Rf(0,0,0,0);this.B=new g.ee(0,0);this.C=new g.ee(0,0);this.J=new Rf(0,0,0,0);this.I=0;this.L=!1;this.l=!(!Qg||!Mh(Qg).tj);this.update(Qg)};
Uh=function(a,b){b&&b.screen&&(a.B=new g.ee(b.screen.width,b.screen.height))};
Vh=function(a,b){var c=a.i?new g.ee(Sf(a.i),a.i.getHeight()):new g.ee(0,0);b=void 0===b?Qg: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,r=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,r=h.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=r):m<p?(d=m,e=n):(d=p,e=r)}var t=new g.ee(e,d)}catch(u){t=new g.ee(-12245933,-12245933)}a.C=t};
Wh=function(){var a=Th.getInstance();if(0<a.I||a.L)return!0;a=$g().l.isVisible();var b=0===Rg(zg);return a||b};
Xh=function(a){this.u=a;this.l=0;this.i=null};
Yh=function(a,b,c){this.Ig=a;this.Ga=void 0===c?"na":c;this.B=[];this.Me=!1;this.u=new Jh(-1,!0,this);this.i=this;this.J=b;this.W=this.Da=this.L=!1;this.va="uk";this.ra=!1;this.C=!0};
$h=function(a,b,c){if(!a.W||(void 0===c?0:c))a.W=!0,a.va=b,a.J=0,a.i!=a||Zh(a)};
ai=function(a,b){g.fb(a.B,b)||(a.B.push(b),b.Zq(a.i),b.Ym(a.u),b.Rk()&&(a.L=!0))};
bi=function(a){a=a.i;a.QD();a.PD();var b=Th.getInstance();b.J=Cg(!1,a.Ig,b.isMobileDevice);a.SK();a.u.i=a.KG()};
ci=function(a){a.L=a.B.length?Sh(a.B,function(b){return b.Rk()}):!1};
di=function(a){var b=g.ob(a.B);g.zb(b,function(c){c.Ym(a.u)})};
Zh=function(a){var b=g.ob(a.B);g.zb(b,function(c){c.Zq(a.i)});
a.i!=a||di(a)};
ei=function(a,b,c,d){this.element=a;this.i=new Rf(0,0,0,0);this.Y=null;this.B=new Rf(0,0,0,0);this.l=b;this.featureSet=c;this.ra=d;this.X=!1;this.timestamp=-1;this.J=new Kh(b.u,this.i,new Rf(0,0,0,0),0,0,Eh(),0)};
fi=function(a){this.C=!1;this.i=a;this.B=g.Ka};
gi=function(a,b,c){this.u=void 0===c?0:c;this.l=a;this.i=null==b?"":b};
Dba=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}};
hi=function(a,b){return a.u<b.u?!0:a.u>b.u?!1:a.l<b.l?!0:a.l>b.l?!1:typeof a.i<typeof b.i?!0:typeof a.i>typeof b.i?!1:a.i<b.i};
ii=function(){this.u=0;this.i=[];this.l=!1};
Eba=function(a,b){(0,g.zb)(b.i,function(c){a.add(c.l,c.i,Dba(c))})};
ji=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Pf(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
ki=function(a){var b=Fba;a.l&&(g.wb(a.i,function(c,d){return hi(d,c)?1:hi(c,d)?-1:0}),a.l=!1);
return Yg(a.i,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
Fba=function(a){var b=a.l;a=a.i;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.fb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
mi=function(a){var b=void 0===b?!0:b;this.i=new ii;void 0!==a&&Eba(this.i,a);b&&this.i.add("v",li,-16)};
Gba=function(a){var b=[],c=[];g.Cb(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)};
ri=function(){if(li&&"unreleased"!==li)return li};
si=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=ri();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);ah(a)};
ti=function(){this.i=0};
g.ui=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.vi=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Na(d)?g.vi.apply(null,d):g.ui(d)}};
g.F=function(){this.di=this.di;this.Ih=this.Ih};
g.H=function(a,b){g.wi(a,g.Ra(g.ui,b))};
g.wi=function(a,b){a.di?b():(a.Ih||(a.Ih=[]),a.Ih.push(b))};
Hba=function(a,b,c){(0,g.zb)(a.u,function(d){var e=a.i;if(!d.i&&(d.u(b,c),d.B())){d.i=!0;var f=d.l(),h=new ii;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.C);d=ti.getInstance();h.add("i",d.i++);h.add("adk",e);ji(h,f);e=new mi(h);si(e)}})};
xi=function(){this.l=this.u=this.B=this.i=0};
yi=function(a){this.l=a=void 0===a?Iba:a;this.i=g.Oc(this.l,function(){return new xi})};
Ai=function(a,b){return zi(a,function(c){return c.i},void 0===b?!0:b)};
Ci=function(a,b){return Bi(a,b,function(c){return c.i})};
Di=function(a,b){return zi(a,function(c){return c.u},void 0===b?!0:b)};
Ei=function(a,b){return Bi(a,b,function(c){return c.u})};
Fi=function(a,b){return Bi(a,b,function(c){return c.l})};
Gi=function(a){g.zb(a.i,function(b){b.l=0})};
zi=function(a,b,c){a=g.Oc(a.i,function(d){return b(d)});
return c?a:Jba(a)};
Bi=function(a,b,c){var d=g.db(a.l,function(e){return b<=e});
return-1==d?0:c(a.i[d])};
Jba=function(a){return g.Oc(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Hi=function(){this.l=new yi;this.Ga=new xi;this.Y=this.J=-1;this.Sa=1E3;this.Ya=new yi([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ca=this.ra=-1};
Ii=function(a,b){return Di(a.l,void 0===b?!0:b)};
Ki=function(a,b){b=Ji(b);return 0===b?0:Ji(a)/b};
Ji=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Kba=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.Je(a)||a){var d=ie(a),e=d&&ze(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
Lba=function(a,b,c){if(!a||!b)return!1;b=Tf(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Ag();Of(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Bba(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=ie(c))&&b.defaultView&&b.defaultView.frameElement)&&Kba(b,a);d=a===c;a=!d&&a&&Re(a,function(e){return e===c});
return!(b||d||a)};
Mba=function(a,b,c,d){return Th.getInstance().u?!1:0>=Sf(a)||0>=a.getHeight()?!0:c&&d?Bh(208,function(){return Lba(a,b,c)}):!1};
Li=function(a,b,c){g.F.call(this);this.position=Nba.clone();this.bx=this.xw();this.DB=-2;this.vT=Date.now();this.cK=-1;this.lastUpdateTime=b;this.Rw=null;this.Yv=!1;this.lx=null;this.opacity=-1;this.requestSource=c;this.mK=this.HB=g.Ka;this.fh=new kba;this.fh.on=a;this.fh.i=a;this.lr=!1;this.Ko={OB:null,MB:null};this.RJ=!0;this.Pu=null;this.dr=this.TO=!1;hh.getInstance().I++;this.zf=this.MA();this.bK=-1;this.pd=null;this.QO=!1;a=this.featureSet=new Ig;Jg(a,"od",Oba);Jg(a,"opac",gh).i=!0;Jg(a,"sbeos",
gh).i=!0;Jg(a,"prf",gh).i=!0;Jg(a,"mwt",gh).i=!0;Jg(a,"iogeo",gh);(a=this.fh.on)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(Pba&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+sd()):a.getAttribute("data-"+sd()))&&(Th.getInstance().l=!0);1==this.requestSource?Kg(this.featureSet,"od",1):Kg(this.featureSet,"od",0)};
Mi=function(a,b){b!=a.dr&&(a.dr=b,a=Th.getInstance(),b?a.I++:0<a.I&&a.I--)};
Ni=function(a,b){if(a.pd){if(b.getName()===a.pd.getName())return;a.pd.dispose();a.pd=null}b=b.create(a.fh.i,a.featureSet,a.Rk());if(b=null!=b&&b.Sy()?b:null)a.pd=b};
Oi=function(a,b,c){if(!a.Rw||-1==a.lastUpdateTime||-1===b.l||-1===a.Rw.l)return 0;a=b.l-a.Rw.l;return a>c?0:a};
Qba=function(a,b,c){if(a.pd){a.pd.zm();var d=a.pd.J,e=d.B,f=e.i;if(null!=d.I){var h=d.u;a.lx=new g.ce(h.left-f.left,h.top-f.top)}f=a.Vx()?Math.max(d.i,d.C):d.i;h={};null!==e.volume&&(h.volume=e.volume);e=a.GG(d);a.Rw=d;a.Ja(f,b,c,!1,h,e,d.J)}};
Rba=function(a){if(a.Yv&&a.Pu){var b=1==Lg(a.featureSet,"od"),c=Th.getInstance().i,d=a.Pu,e=a.pd?a.pd.getName():"ns",f=new g.ee(Sf(c),c.getHeight());c=a.Vx();a={lT:e,lx:a.lx,QT:f,Vx:c,Sc:a.zf.Sc,OT:b};if(b=d.l){b.zm();e=b.J;f=e.B.i;var h=null,l=null;null!=e.I&&f&&(h=e.u,h=new g.ce(h.left-f.left,h.top-f.top),l=new g.ee(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.i,e.C):e.i;c={lT:b.getName(),lx:h,QT:l,Vx:c,OT:!1,Sc:e}}else c=null;c&&Hba(d,a,c)}};
Sba=function(a,b,c){b&&(a.HB=b);c&&(a.mK=c)};
Pi=function(){};
Ri=function(a){if(a instanceof Pi)return a;if("function"==typeof a.ul)return a.ul(!1);if(g.Na(a)){var b=0,c=new Pi;c.next=function(){for(;;){if(b>=a.length)throw Qi;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
g.Si=function(a,b,c){if(g.Na(a))try{g.zb(a,b,c)}catch(d){if(d!==Qi)throw d;}else{a=Ri(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==Qi)throw d;}}};
Tba=function(a){if(g.Na(a))return g.ob(a);a=Ri(a);var b=[];g.Si(a,function(c){b.push(c)});
return b};
Uba=function(){this.B=this.i=this.u=this.l=this.C=0};
Vba=function(a){var b={};b=(b.ptlt=g.Ta()-a.C,b);var c=a.l;c&&(b.pnk=c);(c=a.u)&&(b.pnc=c);(c=a.B)&&(b.pnmm=c);(a=a.i)&&(b.pns=a);return b};
Ti=function(){Dg.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
Ui=function(a){return Lg(hh.getInstance().featureSet,"aud")?Rh(a.volume)&&0<a.volume:Rh(a.volume)&&.1<=a.volume};
Wba=function(){var a={};this.l=(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.i={};for(var b in this.l)0<this.l[b][1]&&(this.i[b]=0);this.u=0};
Vi=function(a,b){var c=a.l[b],d=c[1];a.u+=c[0];0<d&&0==a.i[b]&&(a.i[b]=1)};
Xba=function(a){var b=g.Lb(a.l),c=0,d;for(d in a.i)g.fb(b,d)&&1==a.i[d]&&(c+=a.l[d][1],a.i[d]=2);return c};
Yba=function(a){var b=0,c;for(c in a.i){var d=a.i[c];if(1==d||2==d)b+=a.l[c][1]}return b};
Wi=function(){this.i=this.l=0};
Xi=function(){Hi.call(this);this.u=new xi;this.Da=this.W=this.va=0;this.L=-1;this.Xa=new xi;this.C=new xi;this.i=new yi;this.I=this.B=-1;this.X=new xi;this.Sa=2E3;this.Aa=new Wi;this.Ra=new Wi;this.Ma=new Wi};
Yi=function(a,b,c){var d=a.Da;Gh||c||-1==a.L||(d+=b-a.L);return d};
Zi=function(a){return Lg(hh.getInstance().featureSet,"aud")?0<a.B:.1<=a.B};
Zba=function(){this.i=!1};
$i=function(a,b){this.i=!1;this.l=a;this.L=b;this.u=0};
bj=function(a,b){return a.B(b)?(b=aj(a.L,a.l,b),a.u|=b,0==b):!1};
cj=function(a,b,c,d){ei.call(this,a,b,c,d)};
dj=function(a,b,c){ei.call(this,null,a,b,c);this.I=a.isActive();this.C=0};
ej=function(a){return[a.top,a.left,a.bottom,a.right]};
fj=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;Li.call(this,b,c,d);this.mA=0;this.Ef={};this.tf=new Wba;this.yK={};this.hg="";this.Br=null;this.Xa=!1;this.i=[];this.pp=e;this.I=f;this.B=null;this.u=-1;this.Da=this.W=void 0;this.Y=this.X=0;this.Ca=-1;this.Sa=this.Ra=!1;this.va=this.J=this.l=this.Vr=this.Ya=0;new yi;this.Aa=this.Ga=0;this.Ma=-1;this.mf=0;this.L=g.Ka;this.ra=[this.xw()];this.ib=2;this.Sp={};this.Sp.pause="p";this.Sp.resume="r";this.Sp.skip="s";this.Sp.mute="m";this.Sp.unmute=
"um";this.Sp.exitfullscreen="ef";this.C=null};
gj=function(a){0!=a.mf&&(a.mf=3)};
hj=function(a){return void 0===a?a:Number(a)?Oh(a,3):0};
ij=function(a,b){return a.ra[null!=b&&b<a.ra.length?b:a.ra.length-1]};
jj=function(a){var b=!!Lg(hh.getInstance().featureSet,"umt");return a.W||!b&&!a.Da?0:1};
$ba=function(a,b){2==a.mf?b=0:-1==a.lastUpdateTime?b=0:(b-=a.lastUpdateTime,b=b>Math.max(1E4,a.u/3)?0:b);var c=a.L(a)||{};c=void 0!==c.currentTime?c.currentTime:a.X;var d=c-a.X,e=0;0<=d?(a.Y+=b,a.Aa+=Math.max(b-d,0),e=Math.min(d,a.Y)):a.Ga+=Math.abs(d);0!=d&&(a.Y=0);-1==a.Ma&&0<d&&(a.Ma=0<=Ih?Eh()-Ih:-1);a.X=c;return e};
aca=function(a,b){Sh(a.I,function(c){return c.l==b.l})||a.I.push(b)};
kj=function(a,b,c){return 15E3<=b?!0:a.Ra?(void 0===c?0:c)?!0:0<a.u?b>=a.u/2:0<a.Ca?b>=a.Ca:!1:!1};
bca=function(a){var b=Oh(a.zf.Sc,2),c=a.tf.u,d=a.zf,e=ij(a),f=hj(e.B),h=hj(e.I),l=hj(d.volume),m=Oh(e.J,2),n=Oh(e.Y,2),p=Oh(d.Sc,2),r=Oh(e.ra,2),t=Oh(e.Ca,2);d=Oh(d.Dh,2);a=a.Rm().clone();a.round();e=Ii(e,!1);return{PT:b,Ot:c,dx:f,Yw:h,Js:l,ex:m,Zw:n,Sc:p,fx:r,ax:t,Dh:d,position:a,kx:e}};
mj=function(a,b){lj(a.i,b,function(){return{PT:0,Ot:void 0,dx:-1,Yw:-1,Js:-1,ex:-1,Zw:-1,Sc:-1,fx:-1,ax:-1,Dh:-1,position:void 0,kx:[]}});
a.i[b]=bca(a)};
lj=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
pj=function(a,b,c){var d=a.yK[b];if(null!=d)return d;d=cca(a,b);var e=Ob(nj,function(f){return f==b});
a=oj(a,d,d,c,dca[nj[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
qj=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
oj=function(a,b,c,d,e){if(a.lr)return{"if":0};var f=a.Rm().clone();f.round();var h=Th.getInstance(),l=hh.getInstance(),m=a.ih(),n=a.pd?a.pd.getName():"ns",p={};p["if"]=h.u?1:void 0;p.sdk=a.B?a.B:void 0;p.t=a.vT;p.p=[f.top,f.left,f.bottom,f.right];if(f=a.pd?a.pd.Y:null)f=f.clone(),f.round(),p.cp=ej(f);p.tos=Ai(m.l,!1);p.mtos=Ii(m);p.mcvt=m.Ga.u;p.ps=void 0;p.vht=Yi(m,Eh(),2==a.mf);p.mut=m.Xa.u;p.a=hj(a.zf.volume);p.mv=hj(m.I);p.fs=a.dr?1:0;p.ft=m.X.i;p.at=m.C.i;p.as=Zi(m)?1:0;p.atos=Ai(m.i);p.ssb=
Ai(m.Ya,!1);p.amtos=Di(m.i,!1);p.uac=a.Ya;p.vpt=m.u.i;"nio"==n&&(p.nio=1,p.avms="nio");p.gmm="4";p.gdr=kj(a,m.u.i,!0)?1:0;p.efpf=a.ib;if("gsv"==n||"nis"==n)n=a.pd,0<n.C&&(p.nnut=n.C);p.tcm=jj(a);p.nmt=a.Ga;p.bt=a.Aa;p.pst=a.Ma;p.vpaid=a.W;p.dur=a.u;p.vmtime=a.X;p.is=a.tf.u;1<=a.i.length&&(p.i0=a.i[0].Ot,p.a0=[a.i[0].Js],p.c0=[a.i[0].Sc],p.ss0=[a.i[0].Dh],n=a.i[0].position,p.p0=n?ej(n):void 0);2<=a.i.length&&(p.i1=a.i[1].Ot,p.a1=qj(a.i[1].dx,a.i[1].Js,a.i[1].Yw),p.c1=qj(a.i[1].ex,a.i[1].Sc,a.i[1].Zw),
p.ss1=qj(a.i[1].fx,a.i[1].Dh,a.i[1].ax),n=a.i[1].position,p.p1=n?ej(n):void 0,p.mtos1=a.i[1].kx);3<=a.i.length&&(p.i2=a.i[2].Ot,p.a2=qj(a.i[2].dx,a.i[2].Js,a.i[2].Yw),p.c2=qj(a.i[2].ex,a.i[2].Sc,a.i[2].Zw),p.ss2=qj(a.i[2].fx,a.i[2].Dh,a.i[2].ax),n=a.i[2].position,p.p2=n?ej(n):void 0,p.mtos2=a.i[2].kx);4<=a.i.length&&(p.i3=a.i[3].Ot,p.a3=qj(a.i[3].dx,a.i[3].Js,a.i[3].Yw),p.c3=qj(a.i[3].ex,a.i[3].Sc,a.i[3].Zw),p.ss3=qj(a.i[3].fx,a.i[3].Dh,a.i[3].ax),n=a.i[3].position,p.p3=n?ej(n):void 0,p.mtos3=a.i[3].kx);
p.cs=Yba(a.tf);b&&(p.ic=Xba(a.tf),p.dvpt=m.u.l,p.dvs=Fi(m.l,.5),p.dfvs=Fi(m.l,1),p.davs=Fi(m.i,.5),p.dafvs=Fi(m.i,1),c&&(m.u.l=0,Gi(m.l),Gi(m.i)),a.ip()&&(p.dtos=m.va,p.dav=m.W,p.dtoss=a.mA+1,c&&(m.va=0,m.W=0,a.mA++)),p.dat=m.C.l,p.dft=m.X.l,c&&(m.C.l=0,m.X.l=0));p.ps=[h.C.width,h.C.height];p.bs=[Sf(h.i),h.i.getHeight()];p.scs=[h.B.width,h.B.height];p.dom=h.domain;a.Vr&&(p.vds=a.Vr);if(0<a.I.length||a.pp)b=g.ob(a.I),a.pp&&b.push(a.pp),p.pings=g.Oc(b,function(r){return r.toString()});
b=g.Oc(g.Ie(a.I,function(r){return r.C()}),function(r){return r.getId()});
oaa(b);p.ces=b;a.l&&(p.vmer=a.l);a.J&&(p.vmmk=a.J);a.va&&(p.vmiec=a.va);p.avms=a.pd?a.pd.getName():"ns";a.pd&&g.Xb(p,a.pd.Pm());d?(p.c=Oh(a.zf.Sc,2),p.ss=Oh(a.zf.Dh,2)):p.tth=Eh()-rj;p.mc=Oh(m.Y,2);p.nc=Oh(m.J,2);p.mv=hj(m.I);p.nv=hj(m.B);p.lte=Oh(a.DB,2);d=ij(a,e);Ii(m);p.qmtos=Ii(d);p.qnc=Oh(d.J,2);p.qmv=hj(d.I);p.qnv=hj(d.B);p.qas=Zi(d)?1:0;p.qi=a.hg;p.avms||(p.avms="geo");p.psm=m.Aa.i;p.psv=m.Aa.getValue();p.psfv=m.Ra.getValue();p.psa=m.Ma.getValue();l=jba(l.featureSet);l.length&&(p.veid=l);a.C&&
g.Xb(p,Vba(a.C));return p};
cca=function(a,b){if(g.fb(eca,b))return!0;var c=a.Ef[b];return void 0!==c?(a.Ef[b]=!0,!c):!1};
gca=function(){this.i={};var a=ze();sj(this,a,document);var b=fca();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)sj(this,c,c.document);sj(this,a.top,a.top.document)}}catch(d){}};
fca=function(){var a=document.documentElement;try{if(!Of(ze().top))return"2";var b=[],c=ze(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"}};
sj=function(a,b,c){Nh(c,"mousedown",function(){return hca(a)},301);
Nh(b,"scroll",function(){return ica(a)},302);
Nh(c,"touchmove",function(){return jca(a)},303);
Nh(c,"mousemove",function(){return kca(a)},304);
Nh(c,"keydown",function(){return lca(a)},305)};
hca=function(a){g.Cb(a.i,function(b){1E5<b.u||++b.u})};
ica=function(a){g.Cb(a.i,function(b){1E5<b.i||++b.i})};
jca=function(a){g.Cb(a.i,function(b){1E5<b.i||++b.i})};
lca=function(a){g.Cb(a.i,function(b){1E5<b.l||++b.l})};
kca=function(a){g.Cb(a.i,function(b){1E5<b.B||++b.B})};
g.uj=function(a){var b=[];tj(new mca,a,b);return b.join("")};
mca=function(){};
tj=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),tj(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),vj(d,c),c.push(":"),tj(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":vj(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);}}};
vj=function(a,b){b.push('"',a.replace(nca,function(c){var d=wj[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),wj[c]=d);return d}),'"')};
xj=function(){this.i=[];this.l=[]};
yj=function(a,b){return g.cb(a.i,function(c){return c.hg==b})};
zj=function(a,b){return b?g.cb(a.i,function(c){return c.fh.on==b}):null};
oca=function(a,b){return g.cb(a.l,function(c){return 2==c.Ek()&&c.hg==b})};
Ej=function(){var a=Aj;return 0==a.i.length?a.l:0==a.l.length?a.i:g.nb(a.l,a.i)};
Fj=function(a,b){a=1==b.Ek()?a.i:a.l;var c=bb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.pd&&b.pd.Zr(),b.dispose(),!0):!1};
pca=function(a){var b=Aj;if(Fj(b,a)){switch(a.Ek()){case 0:var c=function(){return null};
case 2:c=function(){return oca(b,a.hg)};
break;case 1:c=function(){return yj(b,a.hg)}}for(var d=c();d;d=c())Fj(b,d)}};
qca=function(a,b){var c=Aj;a=g.Ie(a,(void 0===b?0:b)?function(d){return!yj(c,d.hg)}:function(d){return!zj(c,d.fh.on)});
c.i.push.apply(c.i,g.ma(a))};
Gj=function(a){var b=Aj,c=[];g.zb(a,function(d){Sh(b.i,function(e){return e.fh.on===d.fh.on&&e.hg===d.hg})||(b.i.push(d),c.push(d))})};
Hj=function(){this.i=this.l=null};
Ij=function(a,b){function c(d,e){b(d,e)}
if(null==a.l)return!1;a.i=g.cb(a.l,function(d){return null!=d&&d.SD()});
a.i&&(a.i.init(c)?bi(a.i.i):b(a.i.i.Rq(),a.i));return null!=a.i};
Jj=function(a){a=rca(a);fi.call(this,a.length?a[a.length-1]:new Yh(Qg,0));this.u=a;this.l=null};
rca=function(a){if(!a.length)return[];a=(0,g.Ie)(a,function(c){return null!=c&&c.RD()});
for(var b=1;b<a.length;b++)ai(a[b-1],a[b]);return a};
Kj=function(a,b,c,d){ei.call(this,a,b,c,d);this.W=this.L=this.C=this.I=this.u=null};
Lj=function(a){return a.u&&a.u.takeRecords?a.u.takeRecords():[]};
tca=function(a){if(!a.element)return!1;var b=a.element,c=a.l.i.Ig,d=hh.getInstance().i.i;a.u=new c.IntersectionObserver(eh(d,function(e){return Mj(a,e)}),sca);
d=eh(d,function(){a.u.unobserve(b);a.u.observe(b);Mj(a,Lj(a))});
c.ResizeObserver?(a.I=new c.ResizeObserver(d),a.I.observe(b)):c.MutationObserver&&(a.C=new g.A.MutationObserver(d),a.C.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.u.observe(b);Mj(a,Lj(a));return!0};
Mj=function(a,b){try{if(b.length){a.L||(a.L=Eh());var c=uca(b),d=pg(a.element,a.l.i.Ig),e=d.x,f=d.y;a.i=new Rf(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=Ph(c.intersectionRect);a.B=Tf(h,a.i.left-h.left,a.i.top-h.top)}}catch(l){a.Zr(),Dh(299,l)}};
uca=function(a){return Yg(a,function(b,c){return b.time>c.time?b:c},a[0])};
Nj=function(a){a=void 0===a?Qg:a;fi.call(this,new Yh(a,2))};
Pj=function(){var a=Oj();Yh.call(this,Qg.top,a,"geo")};
Oj=function(){hh.getInstance();var a=Th.getInstance();return a.u||a.l?0:2};
Qj=function(){};
Rj=function(){this.done=!1;this.i={oN:0,qF:0,G6:0,fG:0,iB:-1,GN:0,FN:0,HN:0};this.C=null;this.I=!1;this.u=null;this.J=0;this.l=new Xh(this)};
Tj=function(){var a=Sj;a.I||(a.I=!0,vca(a,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.B.apply(a,g.ma(c))}),a.B())};
wca=function(){Qj.getInstance();var a=Hj.getInstance();null!=a.i&&a.i.i?bi(a.i.i):Th.getInstance().update(Qg)};
Uj=function(a,b,c){if(!a.done&&(a.l.cancel(),0!=b.length)){a.u=null;try{wca();var d=Eh(),e=hh.getInstance();e.C=d;if(null!=Hj.getInstance().i)for(e=0;e<b.length;e++)Qba(b[e],d,c);else ih(qh,"",{strategy_not_selected:1,bin:e.l},!0,void 0);for(d=0;d<b.length;d++)Rba(b[d]);++a.i.fG;xca()}finally{c?g.zb(b,function(f){f.zf.Sc=0}):a.l.schedule()}}};
vca=function(a,b){if(!a.C){b=zh(142,b,void 0);$g();var c;zg.visibilityState?c="visibilitychange":zg.mozVisibilityState?c="mozvisibilitychange":zg.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Kf(zg,c,b,{capture:!1})&&(a.C=b)}};
Vj=function(){var a=Hj.getInstance();if(null!=a.i){var b=a.i;g.zb(Ej(),function(c){return Ni(c,b)})}};
xca=function(){var a=hh.getInstance();Lg(a.featureSet,"llp")};
Wj=function(a,b){a=a.J;Gh&&(a+=b-Hh);return a};
yca=function(a){var b=Sj;a=void 0===a?function(){return{}}:a;
yh.hG="av-js";qh.i=.01;xba([function(c){var d=hh.getInstance(),e={};e=(e.bin=d.l,e.type="error",e);d=Mg(d.featureSet);if(!b.u){var f=Qg.document,h=0<=Fh?Eh()-Fh:-1,l=Eh();-1==b.i.iB&&(h=l);var m=Th.getInstance(),n=hh.getInstance(),p=Mg(n.featureSet),r=Ej();try{if(0<r.length){var t=m.i;t&&(p.bs=[Sf(t),t.getHeight()]);var u=m.C;u&&(p.ps=[u.width,u.height]);Qg.screen&&(p.scs=[Qg.screen.width,Qg.screen.height])}else p.url=encodeURIComponent(Qg.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=Fh;p.bin=n.l;void 0!==Qg.google_osd_load_pub_page_exp&&(p.olpp=Qg.google_osd_load_pub_page_exp);p.deb=[1,b.i.oN,b.i.qF,b.i.fG,b.i.iB,0,b.l.l,b.i.GN,b.i.FN,b.i.HN].join("-");p.tvt=Wj(b,l);m.l&&(p.inapp=1);if(null!==Qg&&Qg!=Qg.top){0<r.length&&(p.iframe_loc=encodeURIComponent(Qg.location.href.substring(0,512)));var x=m.J;p.is=[Sf(x),x.getHeight()]}}catch(E){p.error=1}b.u=p}t=g.Ub(b.u);u=hh.getInstance().i;if(1==Lg(u.u,"prf")){x=new dh;f=u.i;h=0;-1<f.i&&(h=f.u.i.now()-f.i);x=Ff(x,
1,f.B+h);f=u.i;x=Ff(x,5,-1<f.i?f.l+1:f.l);x=Ff(x,2,u.l.i.u());x=Ff(x,3,u.l.i.l());f=Ff(x,4,u.l.i.i());u={};x=new tf;var y=void 0===y?0:y;h=Bf(f,1);h=null==h?h:+h;y=null==h?y:h;if(0!==y&&(h=y,null!=h)){lf(x.i,9);y=x.i;m=h;m=(h=0>m?1:0)?-m:m;if(0===m)vf=0<1/m?0:2147483648,uf=0;else if(isNaN(m))vf=2147483647,uf=4294967295;else if(1.7976931348623157E308<m)vf=(h<<31|2146435072)>>>0,uf=0;else if(2.2250738585072014E-308>m)m/=Math.pow(2,-1074),vf=(h<<31|m/4294967296)>>>0,uf=m>>>0;else{n=m;l=0;if(2<=n)for(;2<=
n&&1023>l;)l++,n/=2;else for(;1>n&&-1022<l;)n*=2,l--;m*=Math.pow(2,-l);vf=(h<<31|l+1023<<20|1048576*m&1048575)>>>0;uf=4503599627370496*m>>>0}mf(y,uf);mf(y,vf)}y=Ef(f,2);0!==y&&wf(x,2,y);y=Ef(f,3);0!==y&&wf(x,3,y);y=Ef(f,4);0!==y&&wf(x,4,y);y=Ef(f,5);if(0!==y&&(f=y,null!=f&&null!=f))if(lf(x.i,40),y=x.i,0<=f)lf(y,f);else{for(h=0;9>h;h++)y.i.push(f&127|128),f>>=7;y.i.push(1)}y=new Uint8Array(x.u+x.i.length());h=x.l;l=h.length;for(m=f=0;m<l;m++)n=h[m],y.set(n,f),f+=n.length;h=x.i.end();y.set(h,f);x.l=
[y];y=(u.pf=g.pf(y),u)}else y={};g.Xb(t,y);g.Xb(c,e,d,t,a());if(e=ri())d={},g.Xb(c,(d.v=encodeURIComponent(e),d))}])};
zca=function(){var a=Xj||Qg;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("&")};
Yj=function(a){return function(b){return void 0===b[a]?0:b[a]}};
ak=function(){var a=[0,2,4];return function(b){b=b.tos;if(Array.isArray(b)){for(var c=Array(b.length),d=0;d<b.length;d++)c[d]=0<d?c[d-1]+b[d]:b[d];return void 0!==a?Zj(c,a):c}}};
bk=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 Zj(f,b,c)}};
ck=function(a,b){return function(c){return b(c)?c[a]:void 0}};
dk=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}};
Zj=function(a,b,c){return void 0===c||c?g.Ie(a,function(d,e){return g.fb(b,e)}):g.Oc(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)})};
gk=function(a,b){var c={sv:"890",cb:"j"};c.nas=Aj.i.length;c.msg=a;void 0!==b&&(a=ek(b))&&(c.e=fk[a]);return c};
hk=function(a){return nc(a,"custom_metric_viewable")};
ek=function(a){var b=hk(a)?"custom_metric_viewable":a.toLowerCase();return Ob(nj,function(c){return c==b})};
Aca=function(){this.i=void 0;this.l=!1;this.u=0;this.B=-1;this.C="tos"};
Cca=function(a){try{var b=a.split(",");return b.length>g.Lb(Bca).length?null:Yg(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===ik[d[0]]||!ik[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
Dca=function(a,b){if(void 0==a.i)return 0;switch(a.C){case "mtos":return a.l?Ei(b.i,a.i):Ei(b.l,a.i);case "tos":return a.l?Ci(b.i,a.i):Ci(b.l,a.i)}return 0};
jk=function(a,b,c,d){$i.call(this,b,d);this.I=a;this.J=c};
kk=function(a){$i.call(this,"fully_viewable_audible_half_duration_impression",a)};
lk=function(a,b){$i.call(this,a,b)};
mk=function(){this.l=this.B=this.I=this.C=this.u=this.i=""};
Eca=function(){};
nk=function(a,b,c,d,e){var f={};if(void 0!==a)if(null!=b)for(var h in b){var l=b[h];h in Object.prototype||null!=l&&(f[h]="function"===typeof l?l(a):a[l])}else g.Xb(f,a);void 0!==c&&g.Xb(f,c);a=ki(ji(new ii,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
ok=function(){};
pk=function(a,b,c){dj.call(this,a,b,c)};
qk=function(a){a=void 0===a?Qg:a;fi.call(this,new Yh(a,2))};
rk=function(a,b,c){dj.call(this,a,b,c)};
sk=function(a){a=void 0===a?Qg:a;fi.call(this,new Yh(a,2))};
tk=function(){Yh.call(this,Qg,2,"mraid");this.Ca=0;this.X=this.Y=!1;this.I=null;this.l=Mh(this.Ig);this.u.i=new Rf(0,0,0,0);this.Aa=!1};
uk=function(a,b,c){a.Hn("addEventListener",b,c)};
xk=function(a){hh.getInstance().B=!!a.Hn("isViewable");uk(a,"viewableChange",Fca);"loading"===a.Hn("getState")?uk(a,"ready",vk):wk(a)};
wk=function(a){"string"===typeof a.l.tj.AFMA_LIDAR?(a.Y=!0,Gca(a)):(a.l.compatibility=3,a.I="nc",$h(a,"w"))};
Gca=function(a){a.X=!1;var b=1==Lg(hh.getInstance().featureSet,"rmmt"),c=!!a.Hn("isViewable");(b?!c:1)&&$g().setTimeout(Ch(524,function(){a.X||(yk(a),Dh(540,Error()),a.I="mt",$h(a,"w"))}),500);
Hca(a);uk(a,a.l.tj.AFMA_LIDAR,zk)};
Hca=function(a){var b=1==Lg(hh.getInstance().featureSet,"sneio"),c=void 0!==a.l.tj.AFMA_LIDAR_EXP_1,d=void 0!==a.l.tj.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.l.tj.AFMA_LIDAR_EXP_2=!0);c&&(a.l.tj.AFMA_LIDAR_EXP_1=!b)};
yk=function(a){a.Hn("removeEventListener",a.l.tj.AFMA_LIDAR,zk);a.Y=!1};
Ak=function(a,b){if("loading"===a.Hn("getState"))return new g.ee(-1,-1);b=a.Hn(b);if(!b)return new g.ee(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.ee(-1,-1):new g.ee(a,b)};
vk=function(){try{var a=tk.getInstance();a.Hn("removeEventListener","ready",vk);wk(a)}catch(b){Dh(541,b)}};
zk=function(a,b){try{var c=tk.getInstance();c.X=!0;var d=a?new Rf(a.y,a.x+a.width,a.y+a.height,a.x):new Rf(0,0,0,0);var e=Eh(),f=Wh();var h=new Jh(e,f,c);h.i=d;h.volume=b;c.Ym(h)}catch(l){Dh(542,l)}};
Fca=function(a){var b=hh.getInstance(),c=tk.getInstance();a&&!b.B&&(b.B=!0,c.Aa=!0,c.I&&$h(c,"w",!0))};
Bk=function(){this.Me=!1;this.i=null;this.u=new ok;this.l=null;var a={};this.L=(a.start=this.FO,a.firstquartile=this.AO,a.midpoint=this.CO,a.thirdquartile=this.GO,a.complete=this.yO,a.pause=this.hC,a.resume=this.HJ,a.skip=this.EO,a.viewable_impression=this.Um,a.mute=this.Sr,a.unmute=this.Sr,a.fullscreen=this.BO,a.exitfullscreen=this.zO,a.fully_viewable_audible_half_duration_impression=this.Um,a.measurable_impression=this.Um,a.abandon=this.hC,a.engagedview=this.Um,a.impression=this.Um,a.creativeview=
this.Um,a.progress=this.Sr,a.custom_metric_viewable=this.Um,a.bufferstart=this.hC,a.bufferfinish=this.HJ,a);a={};this.W=(a.overlay_resize=this.DO,a.abandon=this.cB,a.close=this.cB,a.collapse=this.cB,a.overlay_unmeasurable_impression=function(b){return pj(b,"overlay_unmeasurable_impression",Wh())},a.overlay_viewable_immediate_impression=function(b){return pj(b,"overlay_viewable_immediate_impression",Wh())},a.overlay_unviewable_impression=function(b){return pj(b,"overlay_unviewable_impression",Wh())},
a.overlay_viewable_end_of_session_impression=function(b){return pj(b,"overlay_viewable_end_of_session_impression",Wh())},a);
hh.getInstance().l=3;Ica(this);this.B=!1};
Ck=function(a,b,c,d){b=a.Au(null,d,!0,b);b.B=c;qca([b],a.B);return b};
Jca=function(a,b,c){hba(b);var d=a.l;g.zb(b,function(e){var f=g.Oc(e.l,function(h){var l=Cca(h);if(null==l)h=null;else if(h=new Aca,null!=l.visible&&(h.i=l.visible/100),null!=l.audible&&(h.l=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=oc(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(h.u=l,h.B=-1):(h.u=-1,h.B=l);h.C=void 0===m?"tos":m}return h});
Sh(f,function(h){return null==h})||aca(c,new jk(e.id,e.event,f,d))})};
Kca=function(a){a=a.l;return[new lk("viewable_impression",a),new kk(a)]};
Lca=function(){var a=[];Th.getInstance();var b=hh.getInstance();Lg(b.featureSet,"dov");a.push(Pj.getInstance());Lg(b.featureSet,"mvp_lv")&&a.push(tk.getInstance());b=[new qk,new sk];b.push(new Jj(a));b.push(new Nj(Qg));return b};
Mca=function(a){if(!a.Me){a.Me=!0;try{var b=Eh(),c=hh.getInstance(),d=Th.getInstance();Fh=b;c.u=79463069;"o"!==a.i&&(Xj=Lh(Qg).Ig);if(qba()){Sj.i.qF=0;Sj.i.iB=Eh()-b;var e=Lca(),f=Hj.getInstance();f.l=e;Ij(f,function(){Dk()})?Sj.done||(Vj(),ai(f.i.i,a),Tj()):d.u?Dk():Tj()}else Ek=!0}catch(h){throw Aj.reset(),h;
}}};
Gk=function(a){Sj.l.cancel();Fk=a;Sj.done=!0};
Hk=function(a){if(a.i)return a.i;var b=Hj.getInstance().i;if(b)switch(b.getName()){case "nis":a.i="n";break;case "gsv":a.i="m"}a.i||(a.i="h");return a.i};
Ik=function(a,b,c){if(null==a.l)return b.Vr|=4,!1;a=aj(a.l,c,b);b.Vr|=a;return 0==a};
Dk=function(){var a=[new Nj(Qg)],b=Hj.getInstance();b.l=a;Ij(b,function(){Gk("i")})?Sj.done||(Vj(),Tj()):Gk("i")};
Jk=function(a,b,c){if(!b.Xa){var d=pj(b,"start",Wh());a=a.u.i(d).i;var e={id:"lidarv"};e.r=c;e.v="890v";Ad(a,function(f,h){return e[f]="mtos"==f||"tos"==f?h:encodeURIComponent(h)});
c=zca();Ad(c,function(f,h){return e[f]=encodeURIComponent(h)});
c="//pagead2.googlesyndication.com/pagead/gen_204?"+ki(ji(new ii,e));si(c);b.Xa=!0}};
Kk=function(a,b,c){Uj(Sj,[a],!Wh());mj(a,c);4!=c&&lj(a.ra,c,a.xw);return pj(a,b,Wh())};
Ica=function(a){yca(function(){var b=Lk();null!=a.i&&(b.sdk=a.i);var c=Hj.getInstance();null!=c.i&&(b.avms=c.i.getName());return b})};
Nca=function(a,b,c,d){if(a.B)var e=yj(Aj,b);else e=zj(Aj,c),null!==e&&e.hg!==b&&(a.Ws(e),e=null);e||(b=a.Au(c,Eh(),!1,b),0==Aj.l.length&&(hh.getInstance().u=79463069),Gj([b]),e=b,e.B=Hk(a),d&&(e.Br=d));return e};
Oca=function(a,b){b.J=0;for(var c in Mk)null==a[c]&&(b.J|=Mk[c]);Nk(a,"currentTime");Nk(a,"duration")};
Pca=function(a){g.zb(Aj.i,function(b){3==b.mf&&a.Ws(b)})};
Nk=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
Lk=function(){var a=Th.getInstance(),b={};return b.sv="890",b["if"]=a.u?"1":"0",b.nas=String(Aj.i.length),b};
Ok=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
Qk=function(a){return!!(1<<a&Pk)};
Uca=function(){try{Qca()}catch(d){}var a="a=1&b="+Pk+"&",b=[],c=99;g.zb(Rca,function(d,e){var f=!1;try{f=d(Qg)}catch(h){}b[e/32>>>0]|=f<<e%32});
g.zb(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
c=105;g.zb(Sca,function(d){var e="false";try{e=d(Qg)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
g.zb(Tca,function(d){var e="";try{e=g.qf(d(Qg))}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
Qca=function(){if(!Rk){var a=function(){Sk=!0;Qg.document.removeEventListener("webdriver-evaluate",a,!0)};
Qg.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){Tk=!0;Qg.document.removeEventListener("webdriver-evaluate-response",b,!0)};
Qg.document.addEventListener("webdriver-evaluate-response",b,!0);Rk=!0}};
Vca=function(){this.l=-1};
Uk=function(){this.l=64;this.i=Array(4);this.C=Array(this.l);this.B=this.u=0;this.reset()};
Vk=function(a,b,c){c||(c=0);var d=Array(16);if("string"===typeof b)for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.i[0];c=a.i[1];e=a.i[2];var f=a.i[3];var h=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(h<<17&4294967295|h>>>15);
h=c+(b^e&(f^b))+d[3]+3250441966&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(h<<12&4294967295|
h>>>20);h=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(h<<
5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=
e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[7]+1735328473&4294967295;
e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(h<<11&4294967295|
h>>>21);h=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[12]+
3873151461&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[12]+1700485571&
4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[13]+1309151649&
4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.i[0]=a.i[0]+b&4294967295;a.i[1]=a.i[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.i[2]=a.i[2]+e&4294967295;a.i[3]=a.i[3]+f&4294967295};
Wk=function(){this.l=null};
Xk=function(a){return function(b){var c=new Uk;c.update(b+a);return Saa(c.digest()).slice(-8)}};
Yk=function(a,b){this.u=a;this.B=b};
aj=function(a,b,c){var d=a.i(c);if("function"===typeof d){var e={};e=(e.sv="890",e.cb="j",e.e=Wca(b),e);var f=pj(c,b,Wh());g.Xb(e,f);c.yK[b]=f;a=2==c.Ek()?Gba(e).join("&"):a.B.i(e).i;try{return d(c.hg,a,b),0}catch(h){return 2}}else return 1};
Wca=function(a){var b=hk(a)?"custom_metric_viewable":a;a=Ob(nj,function(c){return c==b});
return fk[a]};
Zk=function(a,b,c){Yk.call(this,a,b);this.l=c};
$k=function(){Bk.call(this);this.I=null;this.C=!1;this.J={};this.u=new Wk};
Xca=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.l&&Array.isArray(c)&&Jca(a,c,b)};
Yca=function(a,b,c){var d=yj(Aj,b);d||(d=c.opt_nativeTime||-1,d=Ck(a,b,Hk(a),d),c.opt_osdId&&(d.Br=c.opt_osdId));return d};
Zca=function(a,b,c){var d=yj(Aj,b);d||(d=Ck(a,b,"n",c.opt_nativeTime||-1));return d};
$ca=function(a,b){var c=yj(Aj,b);c||(c=Ck(a,b,"h",-1));return c};
ada=function(a){hh.getInstance();switch(Hk(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};
bl=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Xb(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.u.i(gk("ol",d));if(void 0!==d)if(void 0!==ek(d))if(Ek)b=gk("ue",d);else if(Mca(a),"i"==Fk)b=gk("i",d),b["if"]=0;else if(b=a.Cw(b,e))if(a.B&&3==b.mf)b="stopped";else{b:{"i"==Fk&&(b.lr=!0,a.DC());c=e.opt_fullscreen;void 0!==c&&Mi(b,!!c);var f;if(c=!Th.getInstance().l)(c=yc(g.Uc,"CrKey")||yc(g.Uc,"PlayStation")||yc(g.Uc,"Roku")||Cba()||yc(g.Uc,"Xbox"))||(c=g.Uc,c=yc(c,"AppleTV")||
yc(c,"Apple TV")||yc(c,"CFNetwork")||yc(c,"tvOS")),c||(c=g.Uc,c=yc(c,"sdk_google_atv_x86")||yc(c,"Android TV")),c=!c;c&&($g(),c=0===Rg(zg));if(f=c){switch(b.Ek()){case 1:Jk(a,b,"pv");break;case 2:a.vC(b)}Gk("pv")}c=d.toLowerCase();if(f=!f)f=Lg(hh.getInstance().featureSet,"ssmol")&&"loaded"===c?!1:g.fb(bda,c);if(f&&0==b.mf){"i"!=Fk&&(Sj.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;Ih=f="number"===typeof f?f:Eh();b.Yv=!0;var h=Wh();b.mf=1;b.Ef={};b.Ef.start=!1;b.Ef.firstquartile=!1;b.Ef.midpoint=!1;
b.Ef.thirdquartile=!1;b.Ef.complete=!1;b.Ef.resume=!1;b.Ef.pause=!1;b.Ef.skip=!1;b.Ef.mute=!1;b.Ef.unmute=!1;b.Ef.viewable_impression=!1;b.Ef.measurable_impression=!1;b.Ef.fully_viewable_audible_half_duration_impression=!1;b.Ef.fullscreen=!1;b.Ef.exitfullscreen=!1;b.mA=0;h||(b.ih().L=f);Uj(Sj,[b],!h)}(f=b.Sp[c])&&Vi(b.tf,f);g.fb(cda,c)&&!b.lr&&b.pp&&0!=b.mf&&(f=b.pp,f.i||(f.i=bj(f,b)));switch(b.Ek()){case 1:var l=hk(c)?a.L.custom_metric_viewable:a.L[c];break;case 2:l=a.W[c]}if(l&&(d=l.call(a,b,e,
d),void 0!==d)){e=gk(void 0,c);g.Xb(e,d);d=e;break b}d=void 0}3==b.mf&&(a.B?b.pd&&b.pd.Zr():a.Ws(b));b=d}else b=gk("nf",d);else b=void 0;else Ek?b=gk("ue"):(b=a.Cw(b,e))?(d=gk(),g.Xb(d,oj(b,!0,!1,!1)),b=d):b=gk("nf");return"string"===typeof b?a.B&&"stopped"===b?al:a.u.i(void 0):a.u.i(b)};
cl=function(a){return hh.getInstance(),"h"!=Hk(a)&&Hk(a),!1};
dl=function(a){var b={};return b.viewability=a.i,b.googleViewability=a.u,b.moatInit=a.C,b.moatViewability=a.I,b.integralAdsViewability=a.B,b.doubleVerifyViewability=a.l,b};
el=function(a,b,c){c=void 0===c?{}:c;a=bl($k.getInstance(),b,c,a);return dl(a)};
fl=function(a,b){b=void 0===b?!1:b;var c=$k.getInstance().Cw(a,{});c?gj(c):b&&(a=$k.getInstance().Au(null,Eh(),!1,a),a.mf=3,Gj([a]))};
gl=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));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};
dda=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(r){for(var t=h,u=0;64>u;u+=4)t[u/4]=r[u]<<24|r[u+1]<<16|r[u+2]<<8|r[u+3];for(u=16;80>u;u++)r=t[u-3]^t[u-8]^t[u-14]^t[u-16],t[u]=(r<<1|r>>>31)&4294967295;r=e[0];var x=e[1],y=e[2],E=e[3],D=e[4];for(u=0;80>u;u++){if(40>u)if(20>u){var G=E^x&(y^E);var I=1518500249}else G=x^y^E,I=1859775393;else 60>u?(G=x&y|E&(x|y),I=2400959708):(G=x^y^E,I=3395469782);G=((r<<5|r>>>27)&4294967295)+G+D+I+t[u]&4294967295;D=E;E=y;y=(x<<30|x>>>2)&4294967295;x=r;r=G}e[0]=e[0]+r&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+E&4294967295;e[4]=e[4]+D&4294967295}
function c(r,t){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var u=[],x=0,y=r.length;x<y;++x)u.push(r.charCodeAt(x));r=u}t||(t=r.length);u=0;if(0==n)for(;u+64<t;)b(r.slice(u,u+64)),u+=64,p+=64;for(;u<t;)if(f[n++]=r[u++],p++,64==n)for(n=0,b(f);u+64<t;)b(r.slice(u,u+64)),u+=64,p+=64}
function d(){var r=[],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)r[t++]=e[u]>>x&255;return r}
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,NN:function(){for(var r=d(),t="",u=0;u<r.length;u++)t+="0123456789ABCDEF".charAt(Math.floor(r[u]/16))+"0123456789ABCDEF".charAt(r[u]%16);return t}}};
hl=function(a,b,c){var d=String(g.A.location.href);return d&&a&&b?[b,eda(gl(d),a,c||null)].join(" "):null};
eda=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.zb(d,function(l){e.push(l)}),il(e.join(" "));
var f=[],h=[];g.zb(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.gb(f)?[c,b,a]:[f.join(":"),c,b,a];g.zb(d,function(l){e.push(l)});
a=il(e.join(" "));a=[c,a];g.gb(h)||a.push(h.join(""));return a.join("_")};
il=function(a){var b=dda();b.update(a);return b.NN().toLowerCase()};
jl=function(a){this.i=a||{cookie:""}};
kl=function(a){a=(a.i.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=zc(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}};
ll=function(a){return!!fda.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
ul=function(a,b,c,d){(a=g.A[a])||(a=(new jl(document)).get(b));return a?hl(a,c,d):null};
vl=function(){var a=[];var b=void 0===b?!1:b;var c=gl(String(g.A.location.href)),d=[];var e=b;e=void 0===e?!1:e;var f=g.A.__SAPISID||g.A.__APISID||g.A.__3PSAPISID||g.A.__OVERRIDE_SID;ll(e)&&(f=f||g.A.__1PSAPISID);if(f)e=!0;else{var h=new jl(document);f=h.get("SAPISID")||h.get("APISID")||h.get("__Secure-3PAPISID")||h.get("SID");ll(e)&&(f=f||h.get("__Secure-1PAPISID"));e=!!f}e&&(e=(c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:"))?g.A.__SAPISID:g.A.__APISID,
e||(e=new jl(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID")),(e=e?hl(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e),c&&ll(b)&&((b=ul("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=ul("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a)));return 0==d.length?null:d.join(" ")};
gda=function(a){var b=g.Ja("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.A.$googDebugFname||b}catch(h){e="Not available",c=!0}b=wl(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,xl[c])c=xl[c];else{c=String(c);if(!xl[c]){var f=/function\s+([^\(]+)/m.exec(c);xl[c]=f?f[1]:"[Anonymous]"}c=xl[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}};
wl=function(a,b){b||(b={});b[yl(a)]=!0;var c=a.stack||"";(a=a.b6)&&!b[yl(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=wl(a,b));return c};
yl=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
g.zl=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.l=!1};
Al=function(a,b){g.zl.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.i=null;a&&this.init(a,b)};
Cl=function(a){return!(!a||!a[Bl])};
ida=function(a,b,c,d,e){this.listener=a;this.i=null;this.src=b;this.type=c;this.capture=!!d;this.De=e;this.key=++hda;this.Bu=this.Ov=!1};
Dl=function(a){a.Bu=!0;a.listener=null;a.i=null;a.src=null;a.De=null};
El=function(a){this.src=a;this.listeners={};this.i=0};
Fl=function(a,b){var c=b.type;c in a.listeners&&g.kb(a.listeners[c],b)&&(Dl(b),0==a.listeners[c].length&&(delete a.listeners[c],a.i--))};
Gl=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Bu&&f.listener==b&&f.capture==!!c&&f.De==d)return e}return-1};
Il=function(a,b,c,d,e){if(d&&d.once)return Hl(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Il(a,b[f],c,d,e);return null}c=Jl(c);return Cl(a)?a.Na(b,c,g.Oa(d)?!!d.capture:!!d,e):Kl(a,b,c,!1,d,e)};
Kl=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Oa(e)?!!e.capture:!!e,l=Ll(a);l||(a[Ml]=l=new El(a));c=l.add(b,c,d,h,f);if(c.i)return c;d=jda();c.i=d;d.src=a;d.listener=c;if(a.addEventListener)kda||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Nl(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Ol++;return c};
jda=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=lda;return a};
Hl=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Hl(a,b[f],c,d,e);return null}c=Jl(c);return Cl(a)?a.CB(b,c,g.Oa(d)?!!d.capture:!!d,e):Kl(a,b,c,!0,d,e)};
Pl=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Pl(a,b[f],c,d,e);else d=g.Oa(d)?!!d.capture:!!d,c=Jl(c),Cl(a)?a.hc(b,c,d,e):a&&(a=Ll(a))&&(b=a.Ct(b,c,d,e))&&Ql(b)};
Ql=function(a){if("number"!==typeof a&&a&&!a.Bu){var b=a.src;if(Cl(b))Fl(b.l,a);else{var c=a.type,d=a.i;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Nl(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Ol--;(c=Ll(b))?(Fl(c,a),0==c.i&&(c.src=null,b[Ml]=null)):Dl(a)}}};
Nl=function(a){return a in Rl?Rl[a]:Rl[a]="on"+a};
lda=function(a,b){if(a.Bu)a=!0;else{b=new Al(b,this);var c=a.listener,d=a.De||a.src;a.Ov&&Ql(a);a=c.call(d,b)}return a};
Ll=function(a){a=a[Ml];return a instanceof El?a:null};
Jl=function(a){if("function"===typeof a)return a;a[Sl]||(a[Sl]=function(b){return a.handleEvent(b)});
return a[Sl]};
g.Tl=function(){g.F.call(this);this.l=new El(this);this.Sa=this;this.Da=null};
Ul=function(a,b,c,d){b=a.l.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.Bu&&h.capture==c){var l=h.listener,m=h.De||h.src;h.Ov&&Fl(a.l,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Vl=function(a,b){this.u=a;this.B=b;this.l=0;this.i=null};
Wl=function(a,b){a.B(b);100>a.l&&(a.l++,b.next=a.i,a.i=b)};
Yl=function(a){"function"!==typeof g.A.setImmediate||g.A.Window&&g.A.Window.prototype&&!Wc("Edge")&&g.A.Window.prototype.setImmediate==g.A.setImmediate?(Xl||(Xl=mda()),Xl(a)):g.A.setImmediate(a)};
mda=function(){var a=g.A.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Wc("Presto")&&(a=function(){var e=g.De("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.B)(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&&!Wc("Trident")&&!Wc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.GF;c.GF=null;e()}};
return function(e){d.next={GF:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.A.setTimeout(e,0)}};
Zl=function(a){g.A.setTimeout(function(){throw a;},0)};
$l=function(){this.l=this.i=null};
am=function(){this.next=this.scope=this.i=null};
g.em=function(a,b){bm||nda();cm||(bm(),cm=!0);dm.add(a,b)};
nda=function(){if(g.A.Promise&&g.A.Promise.resolve){var a=g.A.Promise.resolve(void 0);bm=function(){a.then(fm)}}else bm=function(){Yl(fm)}};
fm=function(){for(var a;a=dm.remove();){try{a.i.call(a.scope)}catch(b){Zl(b)}Wl(gm,a)}cm=!1};
hm=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
jm=function(a){this.bb=0;this.Gn=void 0;this.Eq=this.Am=this.zp=null;this.Ew=this.yA=!1;if(a!=g.Ka)try{var b=this;a.call(void 0,function(c){im(b,2,c)},function(c){im(b,3,c)})}catch(c){im(this,3,c)}};
km=function(){this.next=this.context=this.onRejected=this.l=this.i=null;this.u=!1};
mm=function(a,b,c){var d=lm.get();d.l=a;d.onRejected=b;d.context=c;return d};
nm=function(a){if(a instanceof jm)return a;var b=new jm(g.Ka);im(b,2,a);return b};
om=function(a){return new jm(function(b,c){c(a)})};
qm=function(a,b,c){pm(a,b,c,null)||g.em(g.Ra(b,a))};
oda=function(a){return new jm(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],qm(e,b,c)})};
pda=function(a){return new jm(function(b,c){var d=a.length,e=[];if(d)for(var f=function(n,p){d--;e[n]=p;0==d&&b(e)},h=function(n){c(n)},l=0,m;l<a.length;l++)m=a[l],qm(m,g.Ra(f,l),h);
else b(e)})};
sm=function(a,b){b=mm(b,b,void 0);b.u=!0;rm(a,b);return a};
g.um=function(a,b){return tm(a,null,b,void 0)};
vm=function(a,b){if(0==a.bb)if(a.zp){var c=a.zp;if(c.Am){for(var d=0,e=null,f=null,h=c.Am;h&&(h.u||(d++,h.i==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.bb&&1==d?vm(c,b):(f?(d=f,d.next==c.Eq&&(c.Eq=d),d.next=d.next.next):wm(c),xm(c,e,3,b)))}a.zp=null}else im(a,3,b)};
rm=function(a,b){a.Am||2!=a.bb&&3!=a.bb||ym(a);a.Eq?a.Eq.next=b:a.Am=b;a.Eq=b};
tm=function(a,b,c,d){var e=mm(null,null,null);e.i=new jm(function(f,h){e.l=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 zm?h(l):f(m)}catch(n){h(n)}}:h});
e.i.zp=a;rm(a,e);return e.i};
im=function(a,b,c){0==a.bb&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.bb=1,pm(c,a.FT,a.GT,a)||(a.Gn=c,a.bb=b,a.zp=null,ym(a),3!=b||c instanceof zm||qda(a,c)))};
pm=function(a,b,c,d){if(a instanceof jm)return rm(a,mm(b||g.Ka,c||null,d)),!0;if(hm(a))return a.then(b,c,d),!0;if(g.Oa(a))try{var e=a.then;if("function"===typeof e)return rda(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
rda=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)}};
ym=function(a){a.yA||(a.yA=!0,g.em(a.UN,a))};
wm=function(a){var b=null;a.Am&&(b=a.Am,a.Am=b.next,b.next=null);a.Am||(a.Eq=null);return b};
xm=function(a,b,c,d){if(3==c&&b.onRejected&&!b.u)for(;a&&a.Ew;a=a.zp)a.Ew=!1;if(b.i)b.i.zp=null,Am(b,c,d);else try{b.u?b.l.call(b.context):Am(b,c,d)}catch(e){Bm.call(null,e)}Wl(lm,b)};
Am=function(a,b,c){2==b?a.l.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
qda=function(a,b){a.Ew=!0;g.em(function(){a.Ew&&Bm.call(null,b)})};
zm=function(a){Wa.call(this,a)};
g.Cm=function(a,b){g.Tl.call(this);this.zg=a||1;this.Wu=b||g.A;this.AF=(0,g.B)(this.uT,this);this.xH=g.Ta()};
g.Dm=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.B)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.B)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.A.setTimeout(a,b||0)};
Em=function(a,b){var c=null;return g.um(new jm(function(d,e){c=g.Dm(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.A.clearTimeout(c);
throw d;})};
g.Fm=function(a,b){this.l={};this.i=[];this.Nn=this.u=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.Fm)for(c=a.xi(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Hm=function(a){if(a.u!=a.i.length){for(var b=0,c=0;b<a.i.length;){var d=a.i[b];Gm(a.l,d)&&(a.i[c++]=d);b++}a.i.length=c}if(a.u!=a.i.length){var e={};for(c=b=0;b<a.i.length;)d=a.i[b],Gm(e,d)||(a.i[c++]=d,e[d]=1),b++;a.i.length=c}};
Gm=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Im=function(a,b){this.i=this.L=this.B="";this.u=null;this.C=this.J="";this.I=!1;var c;a instanceof g.Im?(this.I=void 0!==b?b:a.I,g.Jm(this,a.B),this.L=a.L,g.Km(this,a.i),g.Lm(this,a.u),this.J=a.getPath(),Mm(this,a.l.clone()),this.C=a.C):a&&(c=String(a).match(vd))?(this.I=!!b,g.Jm(this,c[1]||"",!0),this.L=Nm(c[2]||""),g.Km(this,c[3]||"",!0),g.Lm(this,c[4]),this.J=Nm(c[5]||"",!0),Mm(this,c[6]||"",!0),this.C=Nm(c[7]||"")):(this.I=!!b,this.l=new Om(null,this.I))};
g.Jm=function(a,b,c){a.B=c?Nm(b,!0):b;a.B&&(a.B=a.B.replace(/:$/,""))};
g.Km=function(a,b,c){a.i=c?Nm(b,!0):b};
g.Lm=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.u=b}else a.u=null};
Mm=function(a,b,c){b instanceof Om?(a.l=b,sda(a.l,a.I)):(c||(b=Pm(b,tda)),a.l=new Om(b,a.I))};
g.Qm=function(a){return a instanceof g.Im?a.clone():new g.Im(a,void 0)};
Nm=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Pm=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,uda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
uda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Om=function(a,b){this.l=this.i=null;this.u=a||null;this.B=!!b};
Rm=function(a){a.i||(a.i=new g.Fm,a.l=0,a.u&&Ad(a.u,function(b,c){a.add(md(b),c)}))};
Tm=function(a,b){Rm(a);b=Sm(a,b);return Gm(a.i.l,b)};
g.Um=function(a,b,c){a.remove(b);0<c.length&&(a.u=null,a.i.set(Sm(a,b),g.ob(c)),a.l=a.l+c.length)};
Sm=function(a,b){b=String(b);a.B&&(b=b.toLowerCase());return b};
sda=function(a,b){b&&!a.B&&(Rm(a),a.u=null,a.i.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Um(this,e,c))},a));
a.B=b};
Wm=function(a){if(g.pc(g.od(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Im(a)}catch(c){return null!=g.cb(Vm,function(d){return 0<a.search(d)})}return b.C.match(vda)?!0:null!=g.cb(Vm,function(c){return null!=a.match(c)})};
g.Xm=function(a,b){return a.replace(wda,function(c,d){try{var e=Sb(b,d);if(null==e)return c;e=e.toString();if(""==e||!g.pc(g.od(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
Ym=function(){this.i=[];this.l=-1};
xda=function(a){-1==a.l&&(a.l=Yg(a.i,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.l};
g.Zm=function(a,b,c){g.F.call(this);this.i=null;this.B=!1;this.I=a;this.C=c;this.l=b||window;this.u=(0,g.B)(this.VD,this)};
g.$m=function(a){a.isActive()||a.start()};
an=function(a){a=a.l;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
bn=function(a){a=a.l;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.J=function(a,b,c){g.F.call(this);this.i=a;this.zg=b||0;this.l=c;this.u=(0,g.B)(this.WD,this)};
g.cn=function(a,b){a.isActive()||a.start(b)};
g.dn=function(a){a.isActive()&&a.gh()};
en=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
fn=function(a){return a.classList?a.classList:en(a).match(/\S+/g)||[]};
g.gn=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.hn=function(a,b){return a.classList?a.classList.contains(b):g.fb(fn(a),b)};
g.K=function(a,b){if(a.classList)a.classList.add(b);else if(!g.hn(a,b)){var c=en(a);g.gn(a,c+(0<c.length?" "+b:b))}};
g.jn=function(a,b){if(a.classList)g.zb(b,function(e){g.K(a,e)});
else{var c={};g.zb(fn(a),function(e){c[e]=!0});
g.zb(b,function(e){c[e]=!0});
b="";for(var d in c)b+=0<b.length?" "+d:d;g.gn(a,b)}};
g.kn=function(a,b){a.classList?a.classList.remove(b):g.hn(a,b)&&g.gn(a,g.Ie(fn(a),function(c){return c!=b}).join(" "))};
g.ln=function(a,b){a.classList?g.zb(b,function(c){g.kn(a,c)}):g.gn(a,g.Ie(fn(a),function(c){return!g.fb(b,c)}).join(" "))};
g.L=function(a,b,c){c?g.K(a,b):g.kn(a,b)};
mn=function(a,b){var c=!g.hn(a,b);g.L(a,b,c)};
g.nn=function(){g.Tl.call(this);this.bb=0;this.endTime=this.startTime=null};
yda=function(a,b){Array.isArray(b)||(b=[b]);b=g.Oc(b,function(c){return"string"===typeof c?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"});
g.dg(a,"transition",b.join(","))};
on=function(a,b,c,d,e){g.nn.call(this);this.i=a;this.C=b;this.I=c;this.B=d;this.J=Array.isArray(e)?e:[e]};
pn=function(a,b,c,d){return new on(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Ada=function(a){a=zc(a);if(""==a)return null;var b=String(a.substr(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in zda))return null}return a};
qn=function(a){var b=g.A.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
rn=function(a,b,c,d){if(a)return a.apply(b,d);if(g.we&&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)};
Fda=function(a){if(!a)return Qc;var b=document.createElement("div").style,c=Bda(a);g.zb(c,function(d){var e=g.ye&&d in Cda?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");nc(e,"--")||nc(e,"var")||(d=rn(Dda,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[d])||"",d=Ada(d),null!=d&&rn(Eda,b,b.setProperty?"setProperty":"setAttribute",[e,d]))});
return Haa(b.cssText||"")};
Bda=function(a){g.Na(a)?a=g.ob(a):(a=g.Lb(a),g.kb(a,"cssText"));return a};
g.tn=function(a){var b,c=b=0,d=!1;a=a.split(Gda);for(var e=0;e<a.length;e++){var f=a[e];g.sn.test(f)?(b++,c++):Hda.test(f)?d=!0:Ida.test(f)?c++:Jda.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.un=function(a,b,c,d,e,f,h,l){this.i=a;this.C=b;this.u=c;this.I=d;this.B=e;this.J=f;this.l=h;this.L=l};
g.vn=function(a,b){if(0==b)return a.i;if(1==b)return a.l;var c=g.ae(a.i,a.u,b),d=g.ae(a.u,a.B,b);a=g.ae(a.B,a.l,b);c=g.ae(c,d,b);d=g.ae(d,a,b);return g.ae(c,d,b)};
g.wn=function(a,b,c){this.B=a;this.C=b;this.i=this.u=a;this.I=c||0};
g.xn=function(a){a.i=Math.min(a.C,2*a.i);a.u=Math.min(a.C,a.i+(a.I?Math.round(a.I*(Math.random()-.5)*2*a.i):0));a.l++};
yn=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Kda=function(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\x0B")};
zn=function(a){return(a=a.exec(g.Uc))?a[1]:""};
An=function(a){return 0<=g.Bc(Lda,a)};
g.Bn=function(a){g.F.call(this);this.C=1;this.u=[];this.B=0;this.i=[];this.l={};this.I=!!a};
Mda=function(a,b,c){g.em(function(){a.apply(b,c)})};
g.Cn=function(a){this.i=a};
Dn=function(a){this.i=a};
En=function(a){this.data=a};
Fn=function(a){return void 0===a||a instanceof En?a:new En(a)};
Gn=function(a){this.i=a};
g.Hn=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Ta()||!!b&&b>g.Ta()};
g.In=function(a){this.i=a};
Nda=function(){};
Jn=function(){};
Kn=function(a){this.i=a};
Ln=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.i=a};
Mn=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.i=a};
On=function(a,b){this.l=a;this.i=null;if(g.we&&!g.Yd(9)){Nn||(Nn=new g.Fm);this.i=Nn.get(a);this.i||(b?this.i=document.getElementById(b):(this.i=document.createElement("userdata"),this.i.addBehavior("#default#userData"),document.body.appendChild(this.i)),Nn.set(a,this.i));try{this.i.load(this.l)}catch(c){this.i=null}}};
Pn=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Oda[b]})};
Qn=function(a){try{a.i.save(a.l)}catch(b){throw"Storage mechanism: Quota exceeded";}};
Rn=function(a,b){this.l=a;this.i=b+"::"};
g.Sn=function(a){var b=new Ln;return b.isAvailable()?a?new Rn(b,a):b:null};
bo=function(a,b){this.i=a;this.l=b};
co=function(a){this.i=[];if(a)a:{if(a instanceof co){var b=a.xi();a=a.kh();if(0>=this.i.length){for(var c=this.i,d=0;d<b.length;d++)c.push(new bo(b[d],a[d]));break a}}else b=g.Lb(a),a=g.Kb(a);for(d=0;d<b.length;d++)eo(this,b[d],a[d])}};
eo=function(a,b,c){var d=a.i;d.push(new bo(b,c));b=d.length-1;a=a.i;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};
fo=function(){co.call(this)};
go=function(){};
ho=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return 0===b.length?function(d){return d}:1===b.length?b[0]:b.reduce(function(d,e){return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];
return d(e.apply(null,g.ma(h)))}})};
Pda=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return function(d){return function(e,f){function h(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
e=d(e,f);var l={getState:e.getState,dispatch:function(m,n){for(var p=[],r=1;r<arguments.length;++r)p[r-1]=arguments[r];return h.apply(null,[m].concat(g.ma(p)))}};
f=b.map(function(m){return m(l)});
h=ho.apply(null,g.ma(f))(e.dispatch);return Object.assign(Object.assign({},e),{dispatch:h})}}};
io=function(){return Math.random().toString(36).substring(7).split("").join(".")};
Qda=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:jo}))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"+io()}))throw Error('Reducer "'+
b+"\" returned undefined when probed with a random type. Don't try to handle "+(jo+' 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.'));})};
ko=function(a,b,c,d){function e(){if(r)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(r)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(r)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(r)throw Error("Reducers may not dispatch actions.");try{r=!0,m=l(m,u)}finally{r=!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(ko)(a,b)}if("function"!==typeof a)throw Error("Expected the reducer to be a function.");
var l=a,m=b,n=[],p=n,r=!1;h({type:jo});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:Rda});return t},a[lo]=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[lo]=function(){return this},u},a);
return t};
mo=function(a){Df(this,a,0,-1,Sda,null)};
no=function(a){Df(this,a,0,-1,null,null)};
Tda=function(a,b){for(;df(b)&&4!=b.l;)switch(b.u){case 1:var c=jf(b);Cf(a,1,c);break;case 2:c=jf(b);Cf(a,2,c);break;case 3:c=jf(b);Cf(a,3,c);break;case 4:c=jf(b);Cf(a,4,c);break;case 5:c=bf(b.i);Cf(a,5,c);break;default:ef(b)}return a};
Uda=function(a){var b=a.split(""),c=[-940975376,950759391,43515148,null,-1744329865,43515148,null,b,6681420,1649552167,b,1211342011,1436048152,698542903,null,840054695,function(d,e){for(var f=64,h=[];++f-h.length-32;)switch(f){case 58:f=96;continue;case 91:f=44;break;case 65:f=47;continue;case 46:f=153;case 123:f-=58;default:h.push(String.fromCharCode(f))}d.forEach(function(l,m,n){this.push(n[m]=h[(h.indexOf(l)-h.indexOf(this[m])+m-32+f--)%h.length])},e.split(""))},
function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
6681420,-2040142757,function(d,e){d.push(e)},
-1019028265,305970844,-486125234,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)},
1809347271,-1855203355,"join",-1754012968,-56981589,393016358,-509904727,380086706,-486125234,467043547,function(d){d.reverse()},
1799392131,-674426690,-1947207234,function(d,e){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f},
524530544,-885740557,-1973213190,-2119936489,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
-378687265,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
1990464665,b];c[3]=c;c[6]=c;c[14]=c;try{c[24](c[3],c[1]),c[11](c[47],c[17]),c[11](c[47],c[0]),c[15](c[48],c[30]),c[11](c[44],c[50]),c[36](c[40],c[10]),c[8](c[5],c[32]),c[11](c[5],c[22]),c[31](c[47],c[4]),c[31](c[47],c[38]),c[36](c[40],c[29]),c[37](c[40]),c[16](c[48],c[39]),c[36](c[48],c[20]),c[16](c[48],c[2]),c[8](c[48],c[23]),c[36](c[5],c[50]),c[12](c[37],c[25]),c[28](c[52],c[32]),c[33](c[44],c[10]),c[52](c[30],c[49]),c[9](c[41],c[35]),c[13](c[45],c[24]),c[12](c[15]),c[37](c[22],c[8]),c[2](c[23]),
c[44](c[34],c[51]),c[21](c[3],c[4]),c[28](c[18],c[34]),c[11](c[35],c[37]),c[16](c[39],c[10]),c[8](c[12],c[45]),c[3](c[31],c[32]),c[9](c[19]),c[11](c[26],c[3]),c[20](c[26],c[27]),c[11](c[33],c[32]),c[12](c[41],c[40]),c[12](c[33],c[47]),c[50](c[33],c[9])}catch(d){return"enhanced_except_AAAAAAAAAAE_"+a}return b.join("")};
po=function(a,b,c){a&&(a.dataset?a.dataset[oo(b)]=String(c):a.setAttribute("data-"+b,c))};
qo=function(a){return a?a.dataset?a.dataset[oo("loaded")]:a.getAttribute("data-loaded"):null};
oo=function(a){return ro[a]||(ro[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
to=function(a){var b=arguments;1<b.length?so[b[0]]=b[1]:1===b.length&&Object.assign(so,b[0])};
g.M=function(a,b){return a in so?so[a]:b};
uo=function(a){return g.M(a,void 0)};
vo=function(a){var b=so.EXPERIMENT_FLAGS;return b?b[a]:void 0};
Vda=function(a){wo.forEach(function(b){return b(a)})};
yo=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.xo(b),Vda(b)}}:a};
g.xo=function(a,b,c,d){var e=g.Ja("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.M("ERRORS",[]),e.push([a,"ERROR",b,c,d]),to("ERRORS",e))};
zo=function(a){var b=g.Ja("yt.logging.errors.log");b?b(a,"WARNING",void 0,void 0,void 0):(b=g.M("ERRORS",[]),b.push([a,"WARNING",void 0,void 0,void 0]),to("ERRORS",b))};
g.Ao=function(a,b){"function"===typeof a&&(a=yo(a));return window.setTimeout(a,b)};
Bo=function(a,b){"function"===typeof a&&(a=yo(a));return window.setInterval(a,b)};
g.Co=function(a){window.clearTimeout(a)};
g.Ho=function(a,b,c){var d=g.Do();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){Eo[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.Fo[a]?h():g.Ao(h,0)}catch(l){g.xo(l)}},c);
Eo[e]=!0;Go[a]||(Go[a]=[]);Go[a].push(e);return e}return 0};
g.Io=function(a){var b=g.Do();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.zb(a,function(c){b.unsubscribeByKey(c);delete Eo[c]}))};
g.Jo=function(a,b){var c=g.Do();return c?c.publish.apply(c,arguments):!1};
Lo=function(a){var b=g.Do();if(b)if(b.clear(a),a)Ko(a);else for(var c in Go)Ko(c)};
g.Do=function(){return g.A.ytPubsubPubsubInstance};
Ko=function(a){Go[a]&&(a=Go[a],g.zb(a,function(b){Eo[b]&&delete Eo[b]}),a.length=0)};
g.Mo=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(Wda,""),c=c.replace(Xda,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Yda(a,b,c)};
Yda=function(a,b,c){c=void 0===c?null:c;var d=No(a),e=document.getElementById(d),f=e&&qo(e),h=e&&!f;f?b&&b():(b&&(f=g.Ho(d,b),b=""+g.Qa(b),Oo[b]=f),h||(e=Zda(a,d,function(){qo(e)||(po(e,"loaded","true"),g.Jo(d),g.Ao(g.Ra(Lo,d),0))},c)))};
Zda=function(a,b,c,d){d=void 0===d?null:d;var e=g.De("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.id(e,g.bg(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
No=function(a){var b=document.createElement("a");g.hd(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+pd(a)};
g.Qo=function(a){a=Po(a);return"string"===typeof a&&"false"===a?!1:!!a};
Ro=function(a,b){a=Po(a);return void 0===a&&void 0!==b?b:Number(a||0)};
So=function(a){a=Po(a);return Array.isArray(a)?g.Oc(a,function(b){return String(b||"")}):[String(a||"")]};
Po=function(a){var b=g.M("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.M("EXPERIMENT_FLAGS",{})[a]};
To=function(){var a=[],b=g.M("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.M("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
Vo=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Uo+"VisibilityState";if(b in a)return a[b]};
Wo=function(a,b){var c;Sh(a,function(d){c=b[d];return!!c});
return c};
Xo=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 $da||(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.i=a.pageX;this.l=a.pageY}}catch(e){}};
Yo=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.i=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.l=a.clientY+b}};
aea=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 Ob(Zo,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Oa(e[4])&&g.Oa(d)&&g.Tb(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.bp=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=aea(a,b,c,d);if(e)return e;e=++$o.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Xo(l);if(!Re(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Xo(l);
l.currentTarget=a;return c.call(a,l)};
h=yo(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),ap()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);Zo[e]=[a,b,c,h,d];return e};
bea=function(a,b){var c=document.body||document;return g.bp(c,"click",function(d){var e=Re(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.cp=function(a){a&&("string"==typeof a&&(a=[a]),g.zb(a,function(b){if(b in Zo){var c=Zo[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?ap()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Zo[b]}}))};
g.dp=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
ep=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.dp(a)};
fp=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};
gp=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.ce(b,c)};
g.hp=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.ip=function(a){a=a||window.event;return!1===a.returnValue||a.kH&&a.kH()};
g.jp=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
cea=function(a){return bea(a,function(b){return g.hn(b,"ytp-ad-has-logging-urls")})};
g.kp=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.bp(a,b,function(){g.cp(e);c.apply(a,arguments)},d)};
lp=function(a){for(var b in Zo)Zo[b][0]==a&&g.cp(b)};
mp=function(a){this.J=a;this.i=null;this.B=0;this.I=null;this.C=0;this.l=[];for(a=0;4>a;a++)this.l.push(0);this.u=0;this.Y=g.bp(window,"mousemove",(0,g.B)(this.W,this));this.L=Bo((0,g.B)(this.X,this),25)};
np=function(){};
pp=function(a,b){return op(a,0,b)};
g.qp=function(a,b){return op(a,1,b)};
dea=function(a,b){op(a,2,b)};
rp=function(){np.apply(this,arguments)};
g.sp=function(){return!!g.Ja("yt.scheduler.instance")};
op=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ja("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Ao(a,c||0)};
g.tp=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ja("yt.scheduler.instance.cancelJob");b?b(a):g.Co(a)}};
up=function(a){var b=g.Ja("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
xp=function(){var a={},b=void 0===a.MO?!0:a.MO;a=void 0===a.LS?!1:a.LS;if(null==g.Ja("_lact",window)){var c=parseInt(g.M("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Fa("_lact",c,window);g.Fa("_fact",c,window);-1==c&&vp();g.bp(document,"keydown",vp);g.bp(document,"keyup",vp);g.bp(document,"mousedown",vp);g.bp(document,"mouseup",vp);b&&(a?g.bp(window,"touchmove",function(){wp("touchmove",200)},{passive:!0}):(g.bp(window,"resize",function(){wp("resize",200)}),g.bp(window,"scroll",function(){wp("scroll",
200)})));
new mp(function(){wp("mouse",100)});
g.bp(document,"touchstart",vp,{passive:!0});g.bp(document,"touchend",vp,{passive:!0})}};
wp=function(a,b){yp[a]||(yp[a]=!0,g.qp(function(){vp();yp[a]=!1},b))};
vp=function(){null==g.Ja("_lact",window)&&(xp(),g.Ja("_lact",window));var a=Date.now();g.Fa("_lact",a,window);-1==g.Ja("_fact",window)&&g.Fa("_fact",a,window);(a=g.Ja("ytglobal.ytUtilActivityCallback_"))&&a()};
zp=function(){var a=g.Ja("_lact",window),b;null==a?b=-1:b=Math.max(Date.now()-a,0);return b};
Ap=function(){return g.Ja("yt.ads.biscotti.lastId_")||""};
Bp=function(a){g.Fa("yt.ads.biscotti.lastId_",a,void 0)};
Dp=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=Cp(f[0]||""),l=Cp(f[1]||"");h in c?Array.isArray(c[h])?pb(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(r){var m=r,n=f[0],p=String(Dp);m.args=[{key:n,value:f[1],query:a,method:eea==p?"unchanged":p}];fea.hasOwnProperty(n)||zo(m)}}return c};
Ep=function(a){var b=[];g.Cb(a,function(c,d){var e=ld(d),f;Array.isArray(c)?f=c:f=[c];g.zb(f,function(h){""==h?b.push(e):b.push(e+"="+ld(h))})});
return b.join("&")};
Fp=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Dp(a,"&")};
Gp=function(a){a=a.split(",");return a=a.map(function(b){return Fp(b)})};
g.Hp=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Fp(1<a.length?a[1]:a[0])):{}};
g.Jp=function(a,b){return Ip(a,b||{},!0)};
Kp=function(a,b){return Ip(a,b||{},!1)};
Ip=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=Fp(e[1]||"");for(var f in b)if(c||!Mb(e,f))e[f]=b[f];return g.Id(a,e)+d};
Lp=function(a){if(!b)var b=window.location.href;var c=g.wd(1,a),d=g.xd(a);c&&d?(a=a.match(vd),b=b.match(vd),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.xd(b)==d&&(Number(g.wd(4,b))||null)==(Number(g.wd(4,a))||null):!0;return a};
Mp=function(a){a||(a=document.location.href);a=g.wd(1,a);return null!==a&&"https"==a};
Np=function(a){a=g.xd(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Cp=function(a){return a&&a.match(gea)?a:md(a)};
Qp=function(a){var b=Op;a=void 0===a?Ap():a;var c=Object,d=c.assign,e=Pp(b);var f=b.i;try{var h=f.screenX;var l=f.screenY}catch(t){}try{var m=f.outerWidth;var n=f.outerHeight}catch(t){}try{var p=f.innerWidth;var r=f.innerHeight}catch(t){}f=[f.screenLeft,f.screenTop,h,l,f.screen?f.screen.availWidth:void 0,f.screen?f.screen.availTop:void 0,m,n,p,r];h=Bg(!1,b.i.top);l={};m=new Ym;g.A.SVGElement&&g.A.document.createElementNS&&m.set(0);n=cba();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&
m.set(2);g.A.crypto&&g.A.crypto.subtle&&m.set(3);g.A.TextDecoder&&g.A.TextEncoder&&m.set(4);m=xda(m);b=(l.bc=m,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Rg(b.l),l.wgl=!!Qg.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
Pp=function(a){var b={};b.dt=hea;b.flash="0";a:{try{var c=a.i.top.location.href}catch(f){a=2;break a}a=c?c===a.l.location.href?0:1:2}b=(b.frm=a,b);b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Qg:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!Qg.navigator&&"unknown"!==typeof Qg.navigator.javaEnabled&&!!Qg.navigator.javaEnabled&&Qg.navigator.javaEnabled();Qg.screen&&(b.u_h=Qg.screen.height,b.u_w=Qg.screen.width,b.u_ah=Qg.screen.availHeight,b.u_aw=Qg.screen.availWidth,b.u_cd=
Qg.screen.colorDepth);Qg.navigator&&Qg.navigator.plugins&&(b.u_nplug=Qg.navigator.plugins.length);Qg.navigator&&Qg.navigator.mimeTypes&&(b.u_nmime=Qg.navigator.mimeTypes.length);return b};
iea=function(){if(!Rp)return null;var a=Rp();return"open"in a?a:null};
g.Tp=function(a){switch(Sp(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Sp=function(a){return a&&"status"in a?a.status:-1};
jea=function(a,b){b=void 0===b?{}:b;var c=Lp(a),d=g.Qo("web_ajax_ignore_global_headers_if_set"),e;for(e in Up){var f=g.M(Up[e]);!f||!c&&!Vp(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||Vp(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||Vp(a,"X-YouTube-Time-Zone")){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}h&&(b["X-YouTube-Time-Zone"]=h)}if(c||Vp(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=Ep(Qp(void 0));return b};
Wp=function(a,b){var c=g.xd(a);g.Qo("debug_handle_relative_url_for_query_forward_killswitch")||c||!Lp(a)||(c=document.location.hostname);var d=ud(g.wd(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=Fp(b),f={};g.zb(kea,function(h){e[h]&&(f[h]=e[h])});
return Kp(a,f)};
Vp=function(a){return g.xd(a)?!1:!0};
g.Yp=function(a,b){var c=b.format||"JSON";a=lea(a,b);var d=mea(a,b),e=!1,f=Xp(a,function(m){if(!e){e=!0;l&&g.Co(l);var n=g.Tp(m),p=null,r=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||r||t)p=nea(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||{};r=b.context||g.A;n?b.onSuccess&&b.onSuccess.call(r,m,p):b.onError&&b.onError.call(r,m,p);b.onFinish&&b.onFinish.call(r,m,p)}},
b.method,d,b.headers,b.responseType,b.withCredentials);
if(b.onTimeout&&0<b.timeout){var h=b.onTimeout;var l=g.Ao(function(){e||(e=!0,f.abort(),g.Co(l),h.call(b.context||g.A,f))},b.timeout)}return f};
lea=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.M("XSRF_FIELD_NAME",void 0);if(b=b.urlParams)b[c]&&delete b[c],a=g.Jp(a,b);return a};
mea=function(a,b){var c=g.M("XSRF_FIELD_NAME",void 0),d=g.M("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.postParams,h=uo("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.xd(a)&&!b.withCredentials&&g.xd(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=Fp(e),g.Xb(e,f),e=b.postBodyFormat&&"JSON"==b.postBodyFormat?JSON.stringify(e):g.Gd(e));f=e||f&&!g.Qb(f);
!Zp&&f&&"POST"!=b.method&&(Zp=!0,g.xo(Error("AJAX request with postData should use POST")));return e};
nea=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,zo(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)?oea(a):null)e={},g.zb(a.getElementsByTagName("*"),function(h){e[h.tagName]=pea(h)})}d&&$p(e);
return e};
$p=function(a){if(g.Oa(a))for(var b in a)"html_content"==b||oc(b,"_html")?a[b]=g.fd(g.gc("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):$p(a[b])};
oea=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
pea=function(a){var b="";g.zb(a.childNodes,function(c){b+=c.nodeValue});
return b};
Xp=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&yo(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=iea();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.Qo("debug_forward_web_query_parameters")&&(a=Wp(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=jea(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};
aq=function(){var a=/Chrome\/(\d+)/.exec(g.Uc);return a?parseFloat(a[1]):NaN};
bq=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Uc);if(!a)return NaN;var b=[];a=g.q(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),0<=c&&b.push(c);return parseFloat(b.join("."))};
dq=function(){return cq("android")&&cq("chrome")&&!(cq("trident/")||cq("edge/"))&&!cq("cobalt")};
eq=function(){return cq("armv7")||cq("aarch64")||cq("android")};
g.fq=function(){return cq("cobalt")};
gq=function(){return cq("cobalt")&&cq("appletv")};
hq=function(){return cq("(ps3; leanback shell)")||cq("ps3")&&g.fq()};
iq=function(){return cq("(ps4; leanback shell)")||cq("ps4")&&g.fq()};
g.jq=function(){return g.fq()&&(cq("ps4 vr")||cq("ps4 pro vr"))};
kq=function(){var a=/WebKit\/([0-9]+)/.exec(g.Uc);return!!(a&&600<=parseInt(a[1],10))};
lq=function(){var a=/WebKit\/([0-9]+)/.exec(g.Uc);return!!(a&&602<=parseInt(a[1],10))};
mq=function(){return cq("iemobile")||cq("windows phone")&&cq("edge")};
oq=function(){return nq&&cq("applewebkit")&&!cq("version")&&(!cq("safari")||cq("gsa/"))};
qq=function(){return g.pq&&cq("version/")};
rq=function(){return cq("smart-tv")&&cq("samsung")};
cq=function(a){var b=g.Uc;return b?0<=b.toLowerCase().indexOf(a):!1};
g.tq=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.fq())a&&(a=g.Ec(g.Ic(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.bd(dd(a)).toString(),a=ld(g.uj(a))),g.pc(a)||(a=Ce("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),ie(a).body.appendChild(a)));else if(e)Xp(a,b,"POST",e,d);else if(g.M("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Xp(a,b,"GET","",d);else{b:{try{var f=new jaa({url:a});if(f.u&&f.l||f.B){var h=ud(g.wd(5,a));var l=!(!h||!h.endsWith("/aclk")||
"1"!==Md(a,"ri"));break b}}catch(m){}l=!1}l?sq(a)?(b&&b(),c=!0):c=!1:c=!1;c||qea(a,b)}};
uq=function(a,b,c){c=void 0===c?"":c;sq(a,c)?b&&b():g.tq(a,b,void 0,void 0,c)};
sq=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
qea=function(a,b){var c=new Image,d=""+rea++;vq[d]=c;c.onload=c.onerror=function(){b&&vq[d]&&b();delete vq[d]};
c.src=a};
sea=function(a,b){if("log_event"===a.endpoint){var c="";a.cf&&(wq[a.cf.token]=xq(a.cf),c=a.cf.token);var d=yq.get(c)||[];yq.set(c,d);d.push(a.payload);b&&(zq=new b);a=Ro("web_logging_max_batch")||100;b=(0,g.N)();d.length>=a?Aq({writeThenSend:!0}):10<=b-Bq&&(Cq(),Bq=b)}};
tea=function(a,b){if("log_event"===a.endpoint){var c="";a.cf&&(wq[a.cf.token]=xq(a.cf),c=a.cf.token);var d=new Map;d.set(c,[a.payload]);b&&(zq=new b);return new jm(function(e){zq&&zq.isReady()?Dq(d,e,{bypassNetworkless:!0}):e()})}};
Aq=function(a){a=void 0===a?{}:a;new jm(function(b){g.Co(Eq);g.Co(Fq);Fq=0;zq&&zq.isReady()?(Dq(yq,b,a),yq.clear()):(Cq(),b())})};
Cq=function(){g.Qo("web_gel_timeout_cap")&&!Fq&&(Fq=g.Ao(function(){Aq({writeThenSend:!0})},6E4));
g.Co(Eq);var a=g.M("LOGGING_BATCH_TIMEOUT",Ro("web_gel_debounce_ms",1E4));g.Qo("shorten_initial_gel_batch_timeout")&&Gq&&(a=uea);Eq=g.Ao(function(){Aq({writeThenSend:!0})},a)};
Dq=function(a,b,c){var d=zq;c=void 0===c?{}:c;var e=Math.round((0,g.N)()),f=a.size;a=g.q(a);for(var h=a.next();!h.done;h=a.next()){var l=g.q(h.value);h=l.next().value;var m=l.next().value;l=g.Vb({context:g.Hq(d.i||g.Iq())});l.events=m;(m=wq[h])&&vea(l,h,m);delete wq[h];wea(l,e);g.Qo("send_beacon_before_gel")&&window.navigator&&window.navigator.sendBeacon&&!c.writeThenSend&&uq("/generate_204");g.Jq(d,"log_event",l,{retry:!0,onSuccess:function(){f--;f||b();Kq=Math.round((0,g.N)()-e)},
onError:function(){f--;f||b()},
v6:c});Gq=!1}};
wea=function(a,b){a.requestTimeMs=String(b);g.Qo("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);if(b=g.M("EVENT_ID",void 0)){var c=g.M("BATCH_CLIENT_COUNTER",void 0)||0;c||(c=Math.floor(Math.random()*Lq/2));c++;c>Lq&&(c=1);to("BATCH_CLIENT_COUNTER",c);b={serializedEventId:b,clientCounter:String(c)};a.serializedClientEventId=b;Mq&&Kq&&g.Qo("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:Mq,roundtripMs:String(Kq)});Mq=b;Kq=0}};
vea=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}]};
xq=function(a){var b={};a.videoId?b.videoId=a.videoId:a.playlistId&&(b.playlistId=a.playlistId);return b};
Oq=function(a,b,c,d){d=void 0===d?{}:d;var e={};e.eventTimeMs=Math.round(d.timestamp||(0,g.N)());e[a]=b;a=zp();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.Qo("log_sequence_info_on_gel_web")&&d.Yl&&(a=e.context,b=d.Yl,Nq[b]=b in Nq?Nq[b]+1:0,a.sequence={index:Nq[b],groupKey:b},d.RN&&delete Nq[d.Yl]);(d.H6?tea:sea)({endpoint:"log_event",payload:e,cf:d.cf},c)};
Pq=function(a){var b=this;this.i=void 0;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.i=c})};
Qq=function(){if(!g.A.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.A.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.A.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.A.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.A.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
g.Sq=function(a,b,c,d,e){Rq.set(""+a,b,{Xw:c,path:"/",domain:void 0===d?"youtube.com":d,cT:void 0===e?!1:e})};
g.Tq=function(a,b){return Rq.get(""+a,b)};
g.Uq=function(a,b,c){Rq.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
xea=function(){if(!Rq.isEnabled())return!1;if(!Rq.isEmpty())return!0;Rq.set("TESTCOOKIESENABLED","1",{Xw:60});if("1"!==Rq.get("TESTCOOKIESENABLED"))return!1;Rq.remove("TESTCOOKIESENABLED");return!0};
g.Wq=function(){this.i=g.M("ALT_PREF_COOKIE_NAME","PREF");this.l=g.M("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.Tq(this.i);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])&&(Vq[d]=c.toString())}}};
g.Yq=function(a,b){return!!((Xq("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
Zq=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
$q=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
Xq=function(a){a=void 0!==Vq[a]?Vq[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
ar=function(){var a=g.A.navigator;return a?a.connection:void 0};
cr=function(){var a=ar();if(a){var b=br[a.type||"unknown"]||"CONN_UNKNOWN";a=br[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}};
er=function(){var a=ar();if(null!==a&&void 0!==a&&a.effectiveType)return dr.hasOwnProperty(a.effectiveType)?dr[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
fr=function(){return"INNERTUBE_API_KEY"in so&&"INNERTUBE_API_VERSION"in so};
g.Iq=function(){return{innertubeApiKey:g.M("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.M("INNERTUBE_API_VERSION",void 0),cH:g.M("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),dH:g.M("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.M("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),fH:g.M("INNERTUBE_CONTEXT_HL",void 0),eH:g.M("INNERTUBE_CONTEXT_GL",void 0),gH:g.M("INNERTUBE_HOST_OVERRIDE",void 0)||"",iH:!!g.M("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),hH:!!g.M("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.M("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}};
g.Hq=function(a){var b={client:{hl:a.fH,gl:a.eH,clientName:a.dH,clientVersion:a.innertubeContextClientVersion,configInfo:a.cH}},c=g.A.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=g.M("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=To();0<c.length&&(b.request={internalExperimentFlags:c});c=b.client.clientName;if("WEB"===c||"MWEB"===c||1===c||2===c){if(!g.Qo("web_include_display_mode_killswitch")){var d;b.client.mainAppWebInfo=null!=(d=b.client.mainAppWebInfo)?
d:{};b.client.mainAppWebInfo.webDisplayMode=Qq()}}else if(d=b.client.clientName,("WEB_REMIX"===d||76===d)&&!g.Qo("music_web_display_mode_killswitch")){var e;b.client.QH=null!=(e=b.client.QH)?e:{};b.client.QH.webDisplayMode=Qq()}a.appInstallData&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=a.appInstallData);g.M("DELEGATED_SESSION_ID")&&!g.Qo("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.M("DELEGATED_SESSION_ID")});if(a=cr())b.client.connectionType=a;g.Qo("web_log_effective_connection_type")&&
(a=er())&&(b.client.effectiveConnectionType=a);a=Object;e=a.assign;d=b.client;c={};for(var f=g.q(Object.entries(Fp(g.M("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;"cbrand"===h?c.deviceMake=l:"cmodel"===h?c.deviceModel=l:"cbr"===h?c.browserName=l:"cbrver"===h?c.browserVersion=l:"cos"===h?c.osName=l:"cosver"===h?c.osVersion=l:"cplatform"===h&&(c.platform=l)}b.client=e.call(a,d,c);return b};
yea=function(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||g.M("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.vF||g.M("AUTHORIZATION"))||(a?b="Bearer "+g.Ja("gapi.auth.getToken")().Z5:b=vl());b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.M("SESSION_INDEX",0),g.Qo("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.M("DELEGATED_SESSION_ID")));return d};
gr=function(a){var b;(b=g.Sn(a))||(a=new On(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.i=(a=b)?new Gn(a):null;this.l=document.domain||window.location.hostname};
hr=function(a,b){this.version=a;this.args=b};
ir=function(a,b){this.topic=a;this.i=b};
Gr=function(a,b){var c=jr();c&&c.publish.call(c,a.toString(),a,b)};
zea=function(a,b,c){var d=jr();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Ja("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(Hr[e])try{if(h&&a instanceof ir&&a!=f)try{var m=a.i,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Nn){var p=new m;m.Nn=p.version}var r=m.Nn}catch(t){}if(!r||n.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.ob(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.xo(t)}},Ir[a.toString()]?g.sp()?g.qp(l):g.Ao(l,0):l())});
Hr[e]=!0;Jr[a.toString()]||(Jr[a.toString()]=[]);Jr[a.toString()].push(e);return e};
Lr=function(a,b,c){var d=zea(a,function(e){b.apply(c,arguments);Kr(d)},c);
return d};
Kr=function(a){var b=jr();b&&("number"===typeof a&&(a=[a]),g.zb(a,function(c){b.unsubscribeByKey(c);delete Hr[c]}))};
jr=function(){return g.Ja("ytPubsub2Pubsub2Instance")};
Mr=function(){this.qT=!0};
Aea=function(a,b,c){return nm(a.ow(b,c))};
Bea=function(){var a={};for(Nr=new Or(void 0===a.handleError?Pr:a.handleError,void 0===a.logEvent?g.Qr:a.logEvent);0<Rr.length;)switch(a=Rr.shift(),a.type){case "ERROR":Nr.Gd(a.payload);break;case "EVENT":Nr.logEvent(a.eventType,a.payload)}};
Tr=function(a){Sr||(Nr?Nr.Gd(a):(Rr.push({type:"ERROR",payload:a}),10<Rr.length&&Rr.shift()))};
Ur=function(a,b){Sr||(Nr?Nr.logEvent(a,b):(Rr.push({type:"EVENT",eventType:a,payload:b}),10<Rr.length&&Rr.shift()))};
Xr=function(a,b,c){var d;this.l=void 0===a?!1:a;this.failureMessage=b;this.u=c;this.i=null===(d=Vr())||void 0===d?void 0:d.get("LAST_RESULT_ENTRY_KEY",!0);this.i||(this.i={createdTimestampMs:(0,g.N)(),isSupported:this.l,resultCount:0});var e;if(Wr()){var f;this.i.isSupported===this.l?f=Object.assign(Object.assign({},this.i),{resultCount:this.i.resultCount+1}):f={isSupported:this.l,resultCount:1,createdTimestampMs:(0,g.N)()};null===(e=Vr())||void 0===e?void 0:e.set("LAST_RESULT_ENTRY_KEY",f,2592E3,
!0)}};
Yr=function(a,b){return new Xr(!1,a instanceof Error?a.message:"",void 0===b?!1:b)};
Wr=function(){var a;return!!(g.Qo("ytidb_analyze_is_supported")&&(null===(a=Vr())||void 0===a?0:a.i))};
g.Zr=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=Error.call(this,a);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.args=[].concat(g.ma(c))};
$r=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
as=function(a){return a.substr(0,a.indexOf(":"))||a};
cs=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?bs[a]:c;d=void 0===d?Cea[a]:d;e=void 0===e?Dea[a]:e;g.Zr.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.i=e;Object.setPrototypeOf(this,cs.prototype)};
ds=function(a){cs.call(this,"MISSING_OBJECT_STORE",{u6:a},bs.MISSING_OBJECT_STORE);Object.setPrototypeOf(this,ds.prototype)};
Fea=function(a,b,c){b=as(b);var d=a instanceof Error?a:Error("Unexpected error: "+a);if(d instanceof cs)return d;if("QuotaExceededError"===d.name)return new cs("QUOTA_EXCEEDED",{objectStoreNames:c,dbName:b});if(g.es&&"UnknownError"===d.name)return new cs("QUOTA_MAYBE_EXCEEDED",{objectStoreNames:c,dbName:b});if("InvalidStateError"===d.name&&Eea.some(function(e){return d.message.includes(e)}))return new cs("EXECUTE_TRANSACTION_ON_CLOSED_DB",{objectStoreNames:c,
dbName:b});if("AbortError"===d.name)return new cs("UNKNOWN_ABORT",{objectStoreNames:c,dbName:b},d.message);d.args=[{name:"IdbError",x6:d.name,dbName:b,objectStoreNames:c}];d.level="WARNING";return d};
Gea=function(a){if(!a)throw Error();throw a;};
Hea=function(a){return a};
fs=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.q(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.q(d.i);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
var d=this;this.l=a;this.state={status:"PENDING"};this.i=[];this.onRejected=[];try{this.l(c,b)}catch(e){b(e)}};
hs=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 fs?gs(a,b,f,d,e):d(f)}catch(h){e(h)}};
is=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 fs?gs(a,b,f,d,e):d(f)}catch(h){e(h)}};
gs=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof fs?gs(a,b,f,d,e):d(f)},function(f){e(f)})};
js=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)};
ks=function(a){return new Promise(function(b,c){js(a,b,c)})};
ls=function(a){return new fs(function(b,c){js(a,b,c)})};
ms=function(a,b){return new fs(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()})};
ns=function(a,b){this.request=a;this.cursor=b};
os=function(a){return ls(a).then(function(b){return null===b?null:new ns(a,b)})};
Iea=function(a){return new Promise(function(b){dea(function(){b()},a)})};
ps=function(a,b){this.i=a;this.options=b;this.transactionCount=0;this.u=Math.round((0,g.N)());this.l=!1};
rs=function(a,b,c){a=a.i.createObjectStore(b,c);return new qs(a)};
ws=function(a,b,c,d){return ts(a,[b],{mode:"readwrite",Hm:g.Qo("ytidb_transaction_enable_retries_core_and_nwl")},function(e){return us(vs(e,b),c,d)})};
ts=function(a,b,c,d){return g.C(a,function f(){var h=this,l,m,n,p,r,t,u,x,y,E,D,G,I,O;return g.z(f,function(ha){switch(ha.i){case 1:var ta={mode:"readonly",Hm:!1};"string"===typeof c?ta.mode=c:ta=c;l=ta;h.transactionCount++;m=g.Qo("ytidb_transaction_exponential_backoff_retries");n=l.Hm?Ro("ytidb_transaction_try_count",1):1;p=500;r=0;case 2:if(t){ha.Mb(3);break}r++;u=Math.round((0,g.N)());ua(ha,4);x=h.i.transaction(b,l.mode);ta=new xs(x);ta=Jea(ta,d);return g.w(ha,ta,6);case 6:return y=ha.l,E=Math.round((0,g.N)()),
ys(h,u,E,r,void 0,b.join(),l),ha.return(y);case 4:D=wa(ha);G=Math.round((0,g.N)());I=Fea(D,h.i.name,b.join());if((O=I instanceof cs&&!I.i)||r>=n){ys(h,u,G,r,I,b.join(),l);t=I;ha.Mb(2);break}if(!m){ha.Mb(2);break}return g.w(ha,Iea(p),9);case 9:p*=2;ha.Mb(2);break;case 3:return ha.return(Promise.reject(t))}})})};
ys=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof cs&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Ur("QUOTA_EXCEEDED",{dbName:as(a.i.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof cs&&"UNKNOWN_ABORT"===e.type&&(Ur("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c-a.u}),a.l=!0),zs(a,!1,d,f,b),Tr(e)):zs(a,!0,d,f,b)};
zs=function(a,b,c,d,e){Ur("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.l,duration:e,isSuccessful:b,tryCount:c})};
qs=function(a){this.i=a};
Kea=function(a,b){return As(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
Lea=function(a,b,c){var d=[];return As(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
us=function(a,b,c){return ls(a.i.put(b,c))};
As=function(a,b,c){a=a.i.openCursor(b.query,b.direction);return Bs(a).then(function(d){return ms(d,c)})};
Mea=function(a,b){var c={},d=c.query;c=c.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.i.openKeyCursor(d,c):a.i.openCursor(d,c);return os(a).then(function(e){return ms(e,b)})};
xs=function(a){var b=this;this.i=a;this.l=new Map;this.aborted=!1;this.done=new Promise(function(c,d){b.i.addEventListener("complete",function(){c()});
b.i.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.i.error)});
b.i.addEventListener("abort",function(){var e=b.i.error;if(e)d(e);else if(!b.aborted){e=cs;for(var f=b.i.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.i.db.name,mode:b.i.mode});d(e)}})})};
Jea=function(a,b){var c=new Promise(function(d,e){b(a).then(function(f){a.commit();d(f)}).catch(e)});
return Promise.all([c,a.done]).then(function(d){return g.q(d).next().value})};
vs=function(a,b){b=a.i.objectStore(b);var c=a.l.get(b);c||(c=new qs(b),a.l.set(b,c));return c};
Cs=function(a){this.i=a};
Nea=function(a,b,c){var d=[];return Ds(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
Ds=function(a,b,c){a=a.i.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return Bs(a).then(function(d){return ms(d,c)})};
Es=function(a,b){this.request=a;this.cursor=b};
Bs=function(a){return ls(a).then(function(b){return null===b?null:new Es(a,b)})};
Oea=function(a,b,c){return g.C(this,function e(){var f,h,l,m,n,p,r,t,u,x;return g.z(e,function(y){if(1==y.i)return f=self.indexedDB.open(a,b),h=c,l=h.blocked,m=h.blocking,n=h.sT,p=h.upgrade,r=h.closed,u=function(){t||(t=new ps(f.result,{closed:r}));return t},f.addEventListener("upgradeneeded",function(E){if(null===E.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");
if(null===f.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");E.dataLoss&&"none"!==E.dataLoss&&Ur("IDB_DATA_CORRUPTED",{reason:E.dataLossMessage||"unknown reason",dbName:as(a)});var D=u(),G=new xs(f.transaction);p&&p(D,E.oldVersion,E.newVersion,G)}),l&&f.addEventListener("blocked",function(){l()}),g.w(y,ks(f),2);
x=y.l;m&&x.addEventListener("versionchange",function(){m(u())});
x.addEventListener("close",function(){Ur("IDB_UNEXPECTEDLY_CLOSED",{dbName:as(a),dbVersion:x.version});n&&n()});
return y.return(u())})})};
Fs=function(a,b,c){c=void 0===c?{}:c;return Oea(a,b,c)};
Gs=function(a,b){b=void 0===b?{}:b;return g.C(this,function d(){var e,f,h;return g.z(d,function(l){e=self.indexedDB.deleteDatabase(a);f=b;(h=f.blocked)&&e.addEventListener("blocked",function(){h()});
return g.w(l,ks(e),0)})})};
Hs=function(a,b){this.name=a;this.options=b;this.u=!1};
Js=function(a){return g.C(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,Is.open(),2);d=e.l;return e.return(ts(d,["databases"],"readwrite",function(f){var h=vs(f,"databases");return h.get(a.actualName).then(function(l){if(l?a.actualName!==l.actualName||a.publicName!==l.publicName||a.userIdentifier!==l.userIdentifier||a.clearDataOnAuthChange!==l.clearDataOnAuthChange:1)return us(h,a).then(function(){})})}))})})};
Ks=function(a){return g.C(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,Is.open(),2);d=e.l;return e.return(d.delete("databases",a))})})};
Pea=function(){return g.C(this,function b(){var c,d;return g.z(b,function(e){if(1==e.i)return g.w(e,Is.open(),2);if(3!=e.i)return c=e.l,g.w(e,c.count("databases"),3);d=e.l;return e.return(0<d)})})};
Qea=function(a){return g.C(this,function c(){var d,e;return g.z(c,function(f){return 1==f.i?(d=[],g.w(f,Is.open(),2)):3!=f.i?(e=f.l,g.w(f,ts(e,["databases"],"readonly",function(h){return As(vs(h,"databases"),{},function(l){a(l.getValue())&&d.push(l.getValue());return l.continue()})}),3)):f.return(d)})})};
Rea=function(){return Qea(function(a){return"yt-player-local-media"===a.publicName})};
Sea=function(){return g.C(this,function b(){var c,d,e,f;return g.z(b,function(h){switch(h.i){case 1:if(nq&&kq()&&!lq())return h.return(Yr(Error("YtIdb is not supported on iOS 8 or 9")));if(g.Ls)return h.return(Yr(Error("YtIdb is not supported on Edge")));try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return h.return(Yr(Error("Non-prefixed indexedDB APIs are missing")))}catch(l){return h.return(Yr(l))}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return h.return(Yr(Error("IDBTransaction.prototype.objectStoreNames is missing")));
ua(h,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return g.w(h,Js(d),4);case 4:return g.w(h,Ks("yt-idb-test-do-not-use"),5);case 5:return h.return(new Xr(!0));case 2:e=wa(h);if(!Wr()){h.Mb(6);break}ua(h,7);return g.w(h,Pea(),9);case 9:return f=h.l,h.return(Yr(e,f));case 7:return wa(h),h.return(Yr(e));case 6:return h.return(Yr(e))}})})};
Ns=function(){if(void 0!==Ms)return Ms;Sr=!0;return Ms=Sea().then(function(a){Sr=!1;a.log();return a.isSupported()})};
Ps=function(){if(void 0===Os)throw Error("Datasync ID not set");return Os};
Qs=function(a){if(void 0===Os)throw a=new cs("AUTH_INVALID"),Tr(a),a;var b=Ps();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
Rs=function(a,b,c,d){var e;return g.C(this,function h(){var l,m;return g.z(h,function(n){switch(n.i){case 1:return g.w(n,Tea({caller:"openDbImpl",publicName:a,version:b}),2);case 2:return $r(a),c?l={actualName:a,publicName:a,userIdentifier:void 0}:l=Qs(a),l.clearDataOnAuthChange=null!==(e=d.clearDataOnAuthChange)&&void 0!==e?e:!1,ua(n,3),g.w(n,Js(l),5);case 5:return g.w(n,Fs(l.actualName,b,d),6);case 6:return n.return(n.l);case 3:return m=wa(n),ua(n,7),g.w(n,Ks(l.actualName),9);case 9:va(n,8);break;
case 7:wa(n);case 8:throw m;}})})};
Tea=function(a){return g.C(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,Ns(),2);if(!e.l)throw d=new cs("IDB_NOT_SUPPORTED",{context:a}),Tr(d),d;e.i=0})})};
Uea=function(a,b,c){c=void 0===c?{}:c;return Rs(a,b,!1,c)};
Vea=function(a,b,c){c=void 0===c?{}:c;return Rs(a,b,!0,c)};
Wea=function(a,b){b=void 0===b?{}:b;return g.C(this,function d(){var e;return g.z(d,function(f){if(1==f.i)return g.w(f,Ns(),2);if(3!=f.i){if(!f.l)return f.return();$r(a);e=Qs(a);return g.w(f,Gs(e.actualName,b),3)}return g.w(f,Ks(e.actualName),0)})})};
Xea=function(a,b){var c=this;a=a.map(function(d){return g.C(c,function f(){return g.z(f,function(h){return 1==h.i?g.w(h,Gs(d.actualName,b),2):g.w(h,Ks(d.actualName),0)})})});
return Promise.all(a).then(function(){})};
Yea=function(){var a=void 0===a?{}:a;return g.C(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,Ns(),2);if(3!=e.i){if(!e.l)return e.return();$r("yt-player-local-media");return g.w(e,Rea(),3)}d=e.l;return g.w(e,Xea(d,a),0)})})};
Ss=function(a,b){b=void 0===b?{}:b;return g.C(this,function d(){return g.z(d,function(e){if(1==e.i)return g.w(e,Ns(),2);if(3!=e.i){if(!e.l)return e.return();$r(a);return g.w(e,Gs(a,b),3)}return g.w(e,Ks(a),0)})})};
Ts=function(a,b){Hs.call(this,a,b);this.options=b;$r(a)};
Us=function(a,b){var c;return function(){c||(c=new Ts(a,b));return c}};
Vs=function(){fs.call(this,function(){});
throw Error("Not allowed to instantiate the thennable outside of the core library.");};
Xs=function(){Ws||(Ws=new gr("yt.offline"));return Ws};
Zs=function(){g.Tl.call(this);this.u=this.C=this.I=this.B=!1;this.i=Ys();this.u=g.Qo("validate_network_status");Zea(this);$ea(this)};
Ys=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
$ea=function(a){window.addEventListener("online",function(){return g.C(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i)return d.u?g.w(e,$s(d),3):(d.i=!0,e.Mb(2));2!=e.i&&(d.i=e.l);d.B&&d.i&&d.dispatchEvent("ytnetworkstatus-online");at(d);if(d.C&&g.Qo("offline_error_handling")){var f=Xs().get("errors",!0);if(f){for(var h in f)if(f[h]){var l=new g.Zr(h,"sent via offline_errors");l.name=f[h].name;l.stack=f[h].stack;l.level=f[h].level;g.xo(l)}Xs().set("errors",{},2592E3,!0)}}e.i=0})})})};
Zea=function(a){window.addEventListener("offline",function(){return g.C(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i)return d.u?g.w(e,$s(d),3):(d.i=!1,e.Mb(2));2!=e.i&&(d.i=e.l);d.B&&!d.i&&d.dispatchEvent("ytnetworkstatus-offline");at(d);e.i=0})})})};
at=function(a){a.I&&(zo(new g.Zr("NetworkStatusManager state did not match poll",(0,g.N)()-0)),a.I=!1)};
$s=function(a){return g.C(a,function c(){var d;return g.z(c,function(e){switch(e.i){case 1:return ua(e,2),g.w(e,fetch("/generate_204",{method:"HEAD"}),4);case 4:d=!0;va(e,3);break;case 2:wa(e),d=!1;case 3:return e.return(d)}})})};
ct=function(a){a=void 0===a?{}:a;g.Tl.call(this);var b=this;this.u=this.C=0;Zs.i||(Zs.i=new Zs);this.i=Zs.i;this.i.B=!0;a.ZO&&(this.i.C=!0);a.Bx?(this.Bx=a.Bx,this.i.Na("ytnetworkstatus-online",function(){bt(b,"publicytnetworkstatus-online")}),this.i.Na("ytnetworkstatus-offline",function(){bt(b,"publicytnetworkstatus-offline")})):(this.i.Na("ytnetworkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),this.i.Na("ytnetworkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")}))};
et=function(){dt||(dt=new ct({ZO:!0}));var a=dt.i;a.u||a.i===Ys()||zo(new g.Zr("NetworkStatusManager isOnline does not match window status"))};
bt=function(a,b){a.Bx?a.u?(g.tp(a.C),a.C=g.qp(function(){a.B!==b&&(a.dispatchEvent(b),a.B=b,a.u=(0,g.N)())},a.Bx-((0,g.N)()-a.u))):(a.dispatchEvent(b),a.B=b,a.u=(0,g.N)()):a.dispatchEvent(b)};
ft=function(a,b){b=void 0===b?{}:b;g.Qo("skip_is_supported_killswitch")?Ns().then(function(){et();g.Yp(a,b)}):(et(),g.Yp(a,b))};
gt=function(a,b){b=void 0===b?{}:b;g.Qo("skip_is_supported_killswitch")?Ns().then(function(){g.Yp(a,b)}):g.Yp(a,b)};
ht=function(a,b){b=void 0===b?{}:b;g.Qo("skip_is_supported_killswitch")?Ns().then(function(){g.Yp(a,b)}):g.Yp(a,b)};
g.it=function(a){this.i=null;a?this.i=a:fr()&&(this.i=g.Iq())};
g.Jq=function(a,b,c,d){!g.M("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&zo(new g.Zr("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Zr("innertube xhrclient not ready",b,c,d),g.xo(a),a;c={headers:{"Content-Type":"application/json"},method:"POST",postParams:c,postBodyFormat:"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(h,l){if(d.onSuccess)d.onSuccess(l)},
onFetchSuccess:function(h){if(d.onSuccess)d.onSuccess(h)},
onError:function(h,l){if(d.onError)d.onError(l)},
onFetchError:function(h){if(d.onError)d.onError(h)},
timeout:d.timeout,withCredentials:!0};var e="",f=a.i.gH;f&&(e=f);f=yea(a.i.iH||!1,e,d);Object.assign(c.headers,f);c.headers.Authorization&&!e&&(c.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.i.innertubeApiVersion+"/"+b;f={alt:"json"};a.i.hH&&c.headers.Authorization||(f.key=a.i.innertubeApiKey);a=g.Jp(""+e+b,f);try{c.method="POST",c.postParams||(c.postParams={}),g.Yp(a,c)}catch(h){if("InvalidAccessError"==h.name)zo(Error("An extension is blocking network request."));else throw h;}};
g.Qr=function(a,b,c){c=void 0===c?{}:c;var d=g.it;g.M("ytLoggingEventsDefaultDisabled",!1)&&g.it==g.it&&(d=null);Oq(a,b,d,c)};
afa=function(){this.Fq=[];this.qp=[]};
kt=function(){jt||(jt=new afa);return jt};
bfa=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=lt(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=lt(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=lt(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)};
lt=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};
ot=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=mt(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=e;var h=a[e],l=b,m=c;f="string"!==typeof h||"clickTrackingParams"!==f&&"trackingParams"!==f?0:(h=bfa(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?mt(f+".ve",h,l,m):0;d+=f;d+=mt(e,a[e],b,c);if(500<d)break}}else c[b]=nt(a),d+=c[b].length;else c[b]=nt(a),d+=c[b].length;return d};
mt=function(a,b,c,d){c+="."+a;a=nt(b);d[c]=a;return c.length+a.length};
nt=function(a){return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)};
Pr=function(a){g.pt(a)};
g.qt=function(a){g.pt(a,"WARNING")};
g.pt=function(a,b){var c=void 0===c?{}:c;c.name=g.M("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.M("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);c=c||{};b=void 0===b?"ERROR":b;b=void 0===b?"ERROR":b;if(a){a.level&&(b=a.level);if(g.Qo("console_log_js_exceptions")){var d=[];d.push("Name: "+a.name);d.push("Message: "+a.message);a.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&d.push("Error args: "+JSON.stringify(a.args));d.push("File name: "+a.fileName);
d.push("Stacktrace: "+a.stack);window.console.log(d.join("\n"),a)}if(!(5<=rt)){d=cfa;var e=gda(a),f=e.message||"Unknown Error",h=e.name||"UnknownError",l=e.stack||a.l||"Not available";if(l.startsWith(h+": "+f)){var m=l.split("\n");m.shift();l=m.join("\n")}m=e.lineNumber||"Not available";e=e.fileName||"Not available";var n=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var p=0;p<a.args.length&&!(n=ot(a.args[p],"params."+p,c,n),500<=n);p++);else if(a.hasOwnProperty("params")&&a.params){var r=
a.params;if("object"===typeof a.params)for(p in r){if(r[p]){var t="params."+p,u=nt(r[p]);c[t]=u;n+=t.length+u.length;if(500<n)break}}else c.params=nt(r)}if(d.length)for(p=0;p<d.length&&!(n=ot(d[p],"params.context."+p,c,n),500<=n);p++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);c={message:f,name:h,lineNumber:m,fileName:e,stack:l,params:c,sampleWeight:1};p=Number(a.columnNumber);isNaN(p)||(c.lineNumber=c.lineNumber+":"+p);if("IGNORED"===a.level)a=0;else a:{a=
kt();p=g.q(a.qp);for(d=p.next();!d.done;d=p.next())if(d=d.value,c.message&&c.message.match(d.JH)){a=d.weight;break a}a=g.q(a.Fq);for(p=a.next();!p.done;p=a.next())if(p=p.value,p.callback(c)){a=p.weight;break a}a=1}c.sampleWeight=a;a=g.q(dfa);for(p=a.next();!p.done;p=a.next())if(p=p.value,p.gC[c.name])for(f=g.q(p.gC[c.name]),d=f.next();!d.done;d=f.next())if(h=d.value,d=c.message.match(h.Ki)){c.params["params.error.original"]=d[0];f=h.groups;h={};for(m=0;m<f.length;m++)h[f[m]]=d[m+1],c.params["params.error."+
f[m]]=d[m+1];c.message=p.IH(h);break}c.params||(c.params={});a=kt();c.params["params.errorServiceSignature"]="msg="+a.qp.length+"&cb="+a.Fq.length;c.params["params.serviceWorker"]="false";g.A.document&&g.A.document.querySelectorAll&&(c.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));window.yterr&&"function"===typeof window.yterr&&window.yterr(c);if(0!==c.sampleWeight&&!tt.has(c.message)){"ERROR"===b?(ut.V("handleError",c),g.Qo("record_app_crashed_web")&&
0===vt&&1===c.sampleWeight&&(vt++,g.Qr("appCrashed",{appCrashType:"APP_CRASH_TYPE_BREAKPAD"})),efa++):"WARNING"===b&&ut.V("handleWarning",c);if(g.Qo("kevlar_gel_error_routing")){a=b;b:{p=g.q(ffa);for(d=p.next();!d.done;d=p.next())if(cq(d.value.toLowerCase())){p=!0;break b}p=!1}if(p)p=void 0;else{d={stackTrace:c.stack};c.fileName&&(d.filename=c.fileName);p=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):[];0!==p.length&&(1!==p.length||isNaN(Number(p[0]))?2!==p.length||isNaN(Number(p[0]))||
isNaN(Number(p[1]))||(d.lineNumber=Number(p[0]),d.columnNumber=Number(p[1])):d.lineNumber=Number(p[0]));p={level:"ERROR_LEVEL_UNKNOWN",message:c.message,errorClassName:c.name,sampleWeight:c.sampleWeight};"ERROR"===a?p.level="ERROR_LEVEL_ERROR":"WARNING"===a&&(p.level="ERROR_LEVEL_WARNNING");d={isObfuscated:!0,browserStackInfo:d};f={pageUrl:window.location.href,kvPairs:[]};g.M("FEXP_EXPERIMENTS")&&(f.experimentIds=g.M("FEXP_EXPERIMENTS"));if(h=c.params)for(m=g.q(Object.keys(h)),e=m.next();!e.done;e=
m.next())e=e.value,f.kvPairs.push({key:"client."+e,value:String(h[e])});h=uo("SERVER_NAME");m=uo("SERVER_VERSION");h&&m&&(f.kvPairs.push({key:"server.name",value:h}),f.kvPairs.push({key:"server.version",value:m}));p={errorMetadata:f,stackTrace:d,logMessage:p}}p&&(g.Qr("clientError",p),("ERROR"===a||g.Qo("errors_flush_gel_always_killswitch"))&&Aq())}if(!g.Qo("suppress_error_204_logging")){a=c.params||{};b={urlParams:{a:"logerror",t:"jserror",type:c.name,msg:c.message.substr(0,250),line:c.lineNumber,
level:b,"client.name":a.name},postParams:{url:g.M("PAGE_NAME",window.location.href),file:c.fileName},method:"POST"};a.version&&(b["client.version"]=a.version);if(b.postParams){c.stack&&(b.postParams.stack=c.stack);p=g.q(Object.keys(a));for(d=p.next();!d.done;d=p.next())d=d.value,b.postParams["client."+d]=a[d];if(a=g.M("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(p=g.q(Object.keys(a)),d=p.next();!d.done;d=p.next())d=d.value,b.postParams[d]=a[d];a=g.M("SERVER_NAME",void 0);p=g.M("SERVER_VERSION",
void 0);a&&p&&(b.postParams["server.name"]=a,b.postParams["server.version"]=p)}g.Yp(g.M("ECATCHER_REPORT_HOST","")+"/error_204",b)}tt.add(c.message);rt++}}}};
gfa=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];a.args||(a.args=[]);a.args.push.apply(a.args,g.ma(c))};
wt=function(){this.l=!1;this.i=null};
zt=function(a,b,c,d,e){var f,h;if(d=d?null===(f=window.trayride)||void 0===f?void 0:f.ad:null===(h=window.botguard)||void 0===h?void 0:h.bg)if(c)try{xt(a,new d(b,e?function(){return e(b)}:g.Ka))}catch(l){l instanceof Error&&g.qt(l)}else{try{xt(a,new d(b))}catch(l){l instanceof Error&&g.qt(l)}e&&e(b)}else g.qt(Error("Failed to finish initializing VM"))};
hfa=function(a,b){var c=At;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.i?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.i?c.i.hasOwnProperty("hot")?c.i.hot(d,!0,a):c.i.invoke(d,!0,a):d(null)})]):Promise.resolve(null)};
xt=function(a,b){a.i=b};
Bt=function(){return g.Tq("CONSENT","").startsWith("YES+")};
Dt=function(){if(!g.Qo("disable_ad_status_on_html5_clients")&&(!g.Qo("condition_ad_status_fetch_on_consent_cookie_html5_clients")||Bt())&&"1"!=Sb(g.M("PLAYER_VARS",{}),"privembed",!1)){var a=function(){Ct=!0;"google_ad_status"in window?to("DCLKSTAT",1):to("DCLKSTAT",2)};
try{g.Mo("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}ifa.push(g.qp(function(){if(!(Ct||"google_ad_status"in window)){try{if(a){var b=""+g.Qa(a),c=Oo[b];c&&g.Io(c)}}catch(d){}Ct=!0;to("DCLKSTAT",3)}},5E3))}};
Et=function(){var a=Number(g.M("DCLKSTAT",0));return isNaN(a)?0:a};
Gt=function(a,b){var c=g.Ub(b),d;return g.um(new jm(function(e,f){c.onSuccess=function(h){g.Tp(h)?e(h):f(new Ft("Request failed, status="+Sp(h),"net.badstatus",h))};
c.onError=function(h){f(new Ft("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new Ft("Request timed out","net.timeout",h))};
d=g.Yp(a,c)}),function(e){e instanceof zm&&d.abort();
return om(e)})};
g.Ht=function(a,b,c,d){function e(h,l,m){return g.um(h,function(n){return 0>=l||403===Sp(n.xhr)?om(new Ft("Request retried too many times","net.retryexhausted",n.xhr)):f(m).then(function(){return e(Gt(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(h){return new jm(function(l){setTimeout(l,h)})}
return e(Gt(a,b),c-1,d)};
Ft=function(a,b,c){Wa.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
It=function(){this.bb=0;this.i=null};
Jt=function(a){var b=new It;a=void 0===a?null:a;b.bb=2;b.i=void 0===a?null:a;return b};
Kt=function(a){var b=new It;a=void 0===a?null:a;b.bb=1;b.i=void 0===a?null:a;return b};
Mt=function(a){Wa.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Lt;this.isTimeout=a instanceof Ft&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof zm};
Lt=function(){Wa.call(this,"Biscotti ID is missing from server")};
jfa=function(){if(g.Qo("disable_biscotti_fetch_on_html5_clients"))return om(Error("Fetching biscotti ID is disabled."));if(g.Qo("condition_biscotti_fetch_on_consent_cookie_html5_clients")&&!Bt())return om(Error("User has not consented - not fetching biscotti id."));if("1"==Sb(g.M("PLAYER_VARS",{}),"privembed",!1))return om(Error("Biscotti ID is not available in private embed mode"));Nt||(Nt=g.um(Gt("//googleads.g.doubleclick.net/pagead/id",Ot).then(Pt),function(a){return Qt(2,a)}));
return Nt};
Pt=function(a){a=a.responseText;if(!nc(a,")]}'"))throw new Lt;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new Lt;a=a.id;Bp(a);Nt=Kt(a);Rt(18E5,2);return a};
Qt=function(a,b){b=new Mt(b);Bp("");Nt=Jt(b);0<a&&Rt(12E4,a-1);throw b;};
Rt=function(a,b){g.Ao(function(){g.um(Gt("//googleads.g.doubleclick.net/pagead/id",Ot).then(Pt,function(c){return Qt(b,c)}),g.Ka)},a)};
St=function(){try{var a=g.Ja("yt.ads.biscotti.getId_");return a?a():jfa()}catch(b){return om(b)}};
mfa=function(){var a=void 0===a?window.location.href:a;if(g.Qo("kevlar_disable_theme_param"))return null;var b=ud(g.wd(5,a));if(kfa(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.Hp(a).theme;return lfa.get(c)||null}catch(d){}return null};
kfa=function(a){var b=nfa.map(function(c){return c.toLowerCase()});
return!g.Qo("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1};
Tt=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()};
Wt=function(a){var b;Ut()?Vt()==a&&(b=document):b=a;return b&&(a=Wo(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
Xt=function(a){return g.cb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
ofa=function(){var a=document;return g.cb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
Ut=function(){return!!Wo(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
Vt=function(a){a=void 0===a?!1:a;var b=Wo(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
Yt=function(a){g.F.call(this);this.I=[];this.Ma=a||this};
Zt=function(a,b,c,d){for(var e=0;e<c.length;e++)a.N(b,c[e],d)};
g.$t=function(a){for(;a.I.length;){var b=a.I.pop();b.target.removeEventListener(b.name,b.callback)}};
g.P=function(a){a=void 0===a?!1:a;g.F.call(this);this.pe=new g.Bn(a);g.H(this,this.pe)};
au=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
bu=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.du=function(a,b,c,d){g.P.call(this);this.u=!!b;this.I=a;this.W=c||a;this.L=!!d;this.i=new Yt(this);g.H(this,this.i);this.C=this.J=null;this.B=this.l=!1;b&&(g.ye&&a.setAttribute("draggable","true"),a.style.touchAction="none");cu(this)};
eu=function(a,b,c){a.i.N(a.W,b,c,void 0,!a.u)};
cu=function(a){a.C=null;a.J=null;eu(a,fu("over"),a.PH);eu(a,"touchstart",a.jD);a.u&&eu(a,fu("down"),a.gP)};
gu=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};
fu=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
hu=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Ub(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Ub(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||{}};
pfa=function(a){a instanceof hu||(a=new hu(a));return a};
ju=function(){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new Uint8Array(16);window.crypto.getRandomValues(b);for(var c=0;c<a.length;c++)a[c]=b[c];return a}catch(e){}a=Array(16);for(b=0;16>b;b++){c=Date.now();for(var d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(iu)for(b=1,c=0;c<iu.length;c++)a[b%16]=a[b%16]^a[(b-1)%16]/4^iu.charCodeAt(c),b++;return a};
ku=function(){for(var a=ju(),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.lu=function(){return g.Oc(ju(),function(a){return(a&15).toString(16)}).join("")};
mu=function(a){this.i=a};
g.nu=function(a){return new mu({trackingParams:a})};
rfa=function(a){var b=qfa++;return new mu({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
ou=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
pu=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
qu=function(a){return g.M(pu(void 0===a?0:a),void 0)};
g.ru=function(a){return(a=qu(void 0===a?0:a))?new mu({veType:a,youtubeData:void 0}):null};
tu=function(){var a=g.M("csn-to-ctt-auth-info");a||(a={},to("csn-to-ctt-auth-info",a));return a};
g.uu=function(a){a=void 0===a?0:a;var b=g.M(ou(a));if(!b&&!g.M("USE_CSN_FALLBACK",!0))return null;b||0!=a||(b="UNDEFINED_CSN");return b?b:null};
sfa=function(a,b,c){var d=tu();(c=g.uu(c))&&delete d[c];b&&(d[a]=b)};
vu=function(a){return tu()[a]};
xu=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.M(ou(c))||b!==g.M(pu(c)))sfa(a,d,c),to(ou(c),a),to(pu(c),b),b=function(){setTimeout(function(){a&&Oq("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:wu,clientScreenNonce:a},g.it)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
yu=function(a){hr.call(this,1,arguments);this.csn=a};
g.Au=function(a,b,c,d){c={csn:b,parentVe:c.getAsJson(),childVes:g.Oc(d,function(f){return f.getAsJson()})};
d=g.q(d);for(var e=d.next();!e.done;e=d.next())e=e.value.getAsJson(),(g.Qb(e)||!e.trackingParams&&!e.veType)&&g.qt(Error("Child VE logged with no data"));d={cf:vu(b),Yl:b};"UNDEFINED_CSN"==b?zu("visualElementAttached",c,d):a?Oq("visualElementAttached",c,a,d):g.Qr("visualElementAttached",c,d)};
g.Bu=function(a,b,c){var d=g.Qo("use_default_events_client")?void 0:g.it;b={csn:a,ve:b.getAsJson(),eventType:1};c&&(b.clientData=c);c={cf:vu(a),Yl:a};"UNDEFINED_CSN"==a?zu("visualElementShown",b,c):d?Oq("visualElementShown",b,d,c):g.Qr("visualElementShown",b,c)};
Cu=function(a,b,c,d,e){var f=(d=void 0===d?!1:d)?16:8;c={csn:b,ve:c.getAsJson(),eventType:f};e&&(c.clientData=e);d={cf:vu(b),Yl:b,RN:d};"UNDEFINED_CSN"==b?zu("visualElementHidden",c,d):a?Oq("visualElementHidden",c,a,d):g.Qr("visualElementHidden",c,d)};
Du=function(a,b,c,d){var e="INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";c={csn:b,ve:c.getAsJson(),gestureType:e};d&&(c.clientData=d);d={cf:vu(b),Yl:b};"UNDEFINED_CSN"==b?zu("visualElementGestured",c,d):a?Oq("visualElementGestured",c,a,d):g.Qr("visualElementGestured",c,d)};
tfa=function(){return g.qf(Math.random()+"")};
zu=function(a,b,c){Eu.push({payloadName:a,payload:b,options:c});Fu||(Fu=Lr(Gu,ufa))};
ufa=function(a){if(Eu){for(var b=g.q(Eu),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,Oq(c.payloadName,c.payload,null,c.options));Eu.length=0}Fu=0};
g.Hu=function(a,b,c){g.Au(g.Qo("use_default_events_client")?void 0:g.it,a,b,[c])};
g.Iu=function(a,b){var c=g.Qo("use_default_events_client")?void 0:g.it;g.zb(b,function(d){d={csn:a,ve:d.getAsJson(),eventType:4};var e={cf:vu(a),Yl:a};"UNDEFINED_CSN"==a?zu("visualElementShown",d,e):c?Oq("visualElementShown",d,c,e):g.Qr("visualElementShown",d,e)})};
g.Ju=function(a,b){var c=g.Qo("use_default_events_client")?void 0:g.it;g.zb(b,function(d){Cu(c,a,d,void 0,void 0)})};
g.Ku=function(a,b,c){Du(g.Qo("use_default_events_client")?void 0:g.it,a,b,c)};
Lu=function(){this.l=new Set;this.i=new Set;this.u=new Map};
g.Ou=function(a,b,c){var d=c&&0<c?c:0;c=d?g.Ta()+1E3*d:0;if((d=d?(0,g.Mu)():Nu())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.Pu=function(a){var b=Nu(),c=(0,g.Mu)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if("string"!==typeof d)try{d=c.get(a)}catch(e){}if("string"!==typeof d)return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
g.Qu=function(a){try{var b=Nu(),c=(0,g.Mu)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.Ru=function(){return g.Pu("yt-remote-session-screen-id")};
Uu=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!Su(a)||c.some(function(e){return!Su(e)}))throw Error("Only objects may be merged.");
c=g.q(c);for(d=c.next();!d.done;d=c.next())Tu(a,d.value);return a};
Tu=function(a,b){for(var c in b)if(Su(b[c])){if(c in a&&!Su(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Tu(a[c],b[c])}else if(Vu(b[c])){if(c in a&&!Vu(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Wu(a[c],b[c])}else a[c]=b[c];return a};
Wu=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Su(c)?a.push(Tu({},c)):Vu(c)?a.push(Wu([],c)):a.push(c);return a};
Su=function(a){return"object"===typeof a&&!Array.isArray(a)};
Vu=function(a){return"object"===typeof a&&Array.isArray(a)};
Xu=function(a,b,c,d,e,f){g.F.call(this);this.Ib=a;this.zb=b;this.Qc=c;this.Ta=d;this.l=e;this.i=f};
wfa=function(a,b,c){c.Pr?(Yu(a.Ib.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),vfa(a.l,b)):Zu(a.i,c.vl,b.slotId)};
xfa=function(a,b,c,d){var e=$u(a.Ta.get(),1);Yu(a.Ib.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return av(a.Qc.get(),c,d,e.clientPlaybackNonce,e.RF,e.daiEnabled,e)},b)};
bv=function(a){this.value=a};
cv=function(a){this.value=a};
dv=function(a){this.value=a};
ev=function(a){this.value=a};
fv=function(){bv.apply(this,arguments)};
gv=function(a){this.value=a};
hv=function(a){this.value=a};
iv=function(a){this.value=a};
jv=function(a){this.value=a};
kv=function(a){this.value=a};
lv=function(a){this.value=a};
mv=function(){bv.apply(this,arguments)};
nv=function(){bv.apply(this,arguments)};
ov=function(a){this.value=a};
pv=function(a){this.value=a};
qv=function(a){this.value=a};
rv=function(a){this.value=a};
tv=function(a){this.value=a};
uv=function(a){this.value=a};
vv=function(a){this.value=a};
wv=function(a){this.value=a};
xv=function(a){this.value=a};
yv=function(a){this.value=a};
zv=function(a){this.value=a};
Av=function(a){this.value=a};
Bv=function(a){this.value=a};
Cv=function(a){this.value=a};
Dv=function(a){this.value=a};
Ev=function(a){this.value=a};
Fv=function(a){this.value=a};
Gv=function(a){this.value=a};
Hv=function(a){this.value=a};
Iv=function(a){this.value=a};
Jv=function(a){this.value=a};
Kv=function(a){this.value=a};
Lv=function(a){this.value=a};
Mv=function(a){this.value=a};
Nv=function(a){this.value=a};
Ov=function(a){this.value=a};
Pv=function(a){this.value=a};
Qv=function(a){this.value=a};
Rv=function(a){this.value=a};
Sv=function(){bv.apply(this,arguments)};
Tv=function(){bv.apply(this,arguments)};
Uv=function(a,b,c){if(c&&c!==a.sb)return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.Fa.i.has(c.value))return!1;return!0};
Vv=function(a,b){this.em=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
Wv=function(a,b){this.Ae=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
Xv=function(a,b,c,d,e,f){this.em=b;this.i=c;this.visible=d;this.l=void 0===e?!1:e;this.u=void 0===f?!1:f;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
Yv=function(a){return a?"layout:  "+a.layoutType:""};
Zv=function(a,b){var c=a?"trigger type: "+a.triggerType:"empty";if(b){var d=String(b.end);if(a instanceof Xv&&a.l||a instanceof Wv&&0x7ffffffffffff===b.end)d="MediaEnd";c+=" |start: "+b.start+(" |end: "+d)}return c};
Q=function(a,b,c,d,e){d=void 0===d?{}:d;if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.Zr(a);if(a.args)for(var f=g.q(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign(Object.assign({},h),d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.sb:"");c&&(d.layout=Yv(c));e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.qt(a)}};
$v=function(a,b,c,d,e,f,h){g.F.call(this);this.Ib=a;this.Qc=b;this.Fz=c;this.Ka=d;this.i=e;this.Ta=f;this.Ea=h};
aw=function(a,b){a&&b&&"LAYOUT_TYPE_MEDIA"===a.layoutType&&"LAYOUT_TYPE_MEDIA"===b.layoutType?(a=R(a.Fa,"metadata_type_ad_video_id"),b=R(b.Fa,"metadata_type_ad_video_id"),b=a&&b?a===b:!1):b=!1;return b};
bw=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.i=f};
cw=function(a,b,c,d){this.u=a;this.Ld=null;this.l=b;this.i=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.B=void 0===d?!1:d};
dw=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.qt(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
fw=function(a,b,c){return b&&b.test(a)||ew&&c&&c.test(a)?!0:!1};
hw=function(a){return(a=gw&&gw.exec(a))?a[0]:""};
iw=function(a){var b=void 0===b?!1:b;return dw(fw(a,yfa,zfa),a,b,"Trusted Stream URL")};
g.jw=function(a){var b=void 0===b?!1:b;return dw(fw(a,Afa,Bfa),a,b,"Trusted Image URL")};
kw=function(a){var b=void 0===b?!1:b;return dw(fw(a,Cfa,null),a,b,"Trusted Promoted Video Domain URL")};
Efa=function(a){var b=void 0===b?!1:b;return dw(fw(a,Dfa,null),a,b,"Drm Licensor URL")};
lw=function(a,b){b=void 0===b?!1:b;return dw(fw(a,Ffa,Gfa),a,b,"Captions URL")};
mw=function(a){a=new g.Im(a);g.Jm(a,document.location.protocol);g.Km(a,document.location.hostname);document.location.port&&g.Lm(a,document.location.port);return a.toString()};
nw=function(a){a=new g.Im(a);g.Jm(a,document.location.protocol);return a.toString()};
g.pw=function(a,b,c){this.start=a;this.end=b;this.active=!0;this.color="";this.B=Hfa++;a=c||{};this.id=a.id||"";this.priority=a.priority||7;this.visible=a.visible||!1;this.style=a.style||ow.AD_MARKER;this.namespace=a.namespace||"";if(b=a.color)b=b.toString(16),this.color="#"+Array(7-b.length).join("0")+b;this.tooltip=a.tooltip;this.icons=a.icons?a.icons.filter(function(d){return g.Xg(d.thumbnails,function(e){return g.jw(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
qw=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Ifa=function(a,b){switch(a.style){case ow.CHAPTER_MARKER:return b?8:5;case ow.AD_MARKER:return 6;case ow.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.rw=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B};
g.tw=function(a){return"crn_"+a};
g.uw=function(a){return"crx_"+a};
vw=function(a,b,c,d,e){g.pw.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.i=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.l=!1;this.u=null};
ww=function(a){return"AD_PLACEMENT_KIND_START"==a.i};
xw=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i};
yw=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new yn(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new yn(Math.max(0,b.u-b.i),0x7ffffffffffff):new yn(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.u);if(c&&(d=a,a=Math.max(0,a-b.i),a==d))break;return new yn(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.Ld;a=1E3*d.startSecs;if(c){if(a<b.l)return new yn(a-4E3,a);c=Math.max(0,a-b.l-1E4);return new yn(b.B?b.l:Math.floor(b.l+Math.random()*c),a)}return new yn(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
zw=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.Aw=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.q(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
g.Bw=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=Ce("B",null,h||l));d.italics&&(h=Ce("I",null,h||l));d.strikethrough&&(h=Ce("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=Ce("A",null,h||l),g.hd(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||Ce("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:Ce("SPAN",null,b)};
Cw=function(a,b){hr.call(this,1,arguments)};
Dw=function(a,b){hr.call(this,1,arguments);this.i=a};
Jfa=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
Fw=function(a){var b=Ew(a);if(b.aft)return b.aft;a=g.M((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};
Gw=function(a){return!!g.Ja("yt.timing."+(a||"")+"pingSent_")};
Hw=function(a,b){g.Fa("yt.timing."+(b||"")+"pingSent_",a,void 0)};
Jw=function(a){return g.Ja("ytcsi."+(a||"")+"data_")||Iw(a)};
Kw=function(a){a=Jw(a);a.info||(a.info={});return a.info};
Ew=function(a){a=Jw(a);a.tick||(a.tick={});return a.tick};
Lw=function(a){var b=Jw(a).nonce;b||(b=ku(),Jw(a).nonce=b);return b};
Iw=function(a){var b={tick:{},info:{}};g.Fa("ytcsi."+(a||"")+"data_",b,void 0);return b};
Nw=function(a){var b=Ew(a||""),c=Fw(a);c&&!Mw&&(Gr(Kfa,new Cw(Math.round(c-b._start),a)),Mw=!0)};
Ow=function(){var a=g.Ja("ytcsi.debug");a||(a=[],g.Fa("ytcsi.debug",a,void 0),g.Fa("ytcsi.reference",{},void 0));return a};
Qw=function(a){a=a||"";var b=Pw();if(b[a])return b[a];var c=Ow(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d};
Rw=function(a){a=a||"";var b=Pw();b[a]&&delete b[a];var c=Ow(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);b[a]=d};
Pw=function(){var a=g.Ja("ytcsi.reference");if(a)return a;Ow();return g.Ja("ytcsi.reference")};
Sw=function(){this.i=0};
Tw=function(){Sw.i||(Sw.i=new Sw);return Sw.i};
Vw=function(a,b){Uw[b]=Uw[b]||{count:0};var c=Uw[b];c.count++;c.time=(0,g.N)();a.i||(a.i=pp(function(){var d=(0,g.N)(),e;for(e in Uw)Uw[e]&&6E4<d-Uw[e].time&&delete Uw[e];a&&(a.i=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.Zr("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.qt(c)),!0):!1};
Ww=function(a){return!!g.M("FORCE_CSI_ON_GEL",!1)||g.Qo("csi_on_gel")||!!Jw(a).useGel};
Xw=function(a){a=Jw(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
Yw=function(a){Iw(a);Lfa();Hw(!1,a);a||(g.M("TIMING_ACTION")&&to("PREVIOUS_ACTION",g.M("TIMING_ACTION")),to("TIMING_ACTION",""))};
Rx=function(a,b,c,d){d=d?d:a;Zw(d);Rw(d);Yw(d);Jw(d).useGel=!0;Qw(d||"").info.actionType=a;to(d+"TIMING_AFT_KEYS",b);to(d+"TIMING_ACTION",a);$w("yt_sts","c",d);ax("_start",c,d);if(Ww(d)){a={actionType:Px[uo((d||"")+"TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN",previousAction:Px[uo("PREVIOUS_ACTION")]||"LATENCY_ACTION_UNKNOWN"};if(b=g.uu())a.clientScreenNonce=b;b=Lw(d);Tw().info(a,b)}g.Fa("ytglobal.timing"+(d||"")+"ready_",!0,void 0);Qx(d)};
$w=function(a,b,c){if(null!==b)if(Kw(c)[a]=b,Ww(c)){var d=b;b=Xw(c);if(b.gelInfos)b.gelInfos["info_"+a]=!0;else{var e={};b.gelInfos=(e["info_"+a]=!0,e)}if(a.match("_rid")){var f=a.split("_rid")[0];a="REQUEST_ID"}if(a in Sx){b=Sx[a];g.fb(Mfa,b)&&(d=!!d);a in Tx&&"string"===typeof d&&(d=Tx[a]+d.toUpperCase());a=d;d=b.split(".");for(var h=e={},l=0;l<d.length-1;l++){var m=d[l];h[m]={};h=h[m]}h[d[d.length-1]]="requestIds"===b?[{id:a,endpoint:f}]:a;b=Uu({},e)}else g.fb(Nfa,a)||g.qt(new g.Zr("Unknown label logged with GEL CSI",
a)),b=void 0;b&&Ux(b,c)}else Qw(c||"").info[a]=b};
Ux=function(a,b){if(Ww(b)){var c=Qw(b||"");Uu(c.info,a);c=Xw(b);c.gelInfos||(c.gelInfos={});Uu(c.gelInfos,a);b=Lw(b);Tw().info(a,b)}};
ax=function(a,b,c){var d=Ew(c);if(!b&&"_"!==a[0]){var e=a;Vx.mark&&(nc(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),Vx.mark(e))}e=b||(0,g.N)();d[a]=e;e=Xw(c);e.gelTicks&&(e.gelTicks["tick_"+a]=!0);c||b||(0,g.N)();if(Ww(c)){Qw(c||"").tick[a]=b||(0,g.N)();e=Lw(c);if("_start"===a){var f=Tw();Vw(f,"baseline_"+e)||g.Qr("latencyActionBaselined",{clientActionNonce:e},{timestamp:b})}else Tw().tick(a,e,b);Nw(c);e=!0}else e=!1;e||(Qx(c),Qw(c||"").tick[a]=b||(0,g.N)());return d[a]};
Wx=function(a){var b="above_the_fold";Vx&&Vx.measure&&(nc(b,"measure_")||(b="measure_"+b),a?Vx.measure(b,a):Vx.measure(b))};
Xx=function(a,b){b=Ew(b);return a in b};
Yx=function(a,b){Xx("_start",b)&&!Xx(a,b)&&ax(a,void 0,b)};
Qx=function(a){if(!Gw(a)){var b=g.M((a||"")+"TIMING_ACTION",void 0),c=Ew(a);if(g.Ja("ytglobal.timing"+(a||"")+"ready_")&&b&&Xx("_start")&&Fw(a))if(Nw(a),a)Zx(a);else{b=!0;var d=g.M("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&Zx(a)}}};
Ofa=function(){switch(Vo()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
Zx=function(a){if(!Ww(a)){var b=Ew(a),c=Kw(a),d=b._start,e=g.M("CSI_SERVICE_NAME","youtube"),f={v:2,s:e,action:g.M((a||"")+"TIMING_ACTION",void 0)},h=c.srt;void 0!==b.srt&&delete c.srt;b.aft=Fw(a);var l=Ew(a),m=l.pbr,n=l.vc;l=l.pbs;m&&n&&l&&m<n&&n<l&&Kw(a).yt_pvis&&"youtube"===e&&($w("yt_lt","hot_bg",a),e=b.vc,m=b.pbs,delete b.aft,c.aft=Math.round(m-e));for(var p in c)"_"!==p.charAt(0)&&(f[p]=c[p]);b.ps=(0,g.N)();p={};e=[];for(var r in b)"_"!==r.charAt(0)&&(m=Math.round(b[r]-d),p[r]=m,e.push(r+"."+
m));f.rt=e.join(",");b=!!c.ap;c="";for(var t in f)f.hasOwnProperty(t)&&(c+="&"+t+"="+f[t]);f="/csi_204?"+c.substring(1);window.navigator&&window.navigator.sendBeacon&&(b||g.Qo("always_send_csi_204_with_beacon"))?uq(f):g.tq(f);Hw(!0,a);Gr($x,new Dw(p.aft+(Number(h)||0),a))}};
Zw=function(a){if(Ww(a))Xx("_start",a)&&ax("aa",void 0,a);else if(!Gw(a)){var b=g.M("CSI_SERVICE_NAME","youtube");g.M((a||"")+"TIMING_ACTION",void 0)&&b&&(ax("aa",void 0,a),$w("ap",1,a),$w("yt_fss","c",a),Zx(a))}};
ay=function(){return!("function"!==typeof window.fetch||!window.ReadableStream)};
by=function(a){if(a.vt())return!1;a=a.getResponseHeader("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
cy=function(a,b){this.id=a;this.i=b;this.captionTracks=[];this.l=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
dy=function(a,b,c,d){this.u=c;this.reason=d;this.l=a||0;this.i=b||0};
ey=function(a,b){return a.l===b.l&&a.i===b.i&&a.u===b.u&&a.reason===b.reason};
gy=function(a,b,c,d){return new dy(g.fy[a]||0,g.fy[b]||0,c,d)};
hy=function(a){var b=g.fy.auto;return a.l===b&&a.i===b};
iy=function(a){var b=a.i||a.l;return Pb(Pfa,function(c){return g.fy[c]===b})||"auto"};
jy=function(a,b){b=g.fy[b];return a.l<=b&&(!a.i||a.i>=b)};
ky=function(a,b,c){this.videoInfos=a;this.audioTracks=[];this.i=b||null;this.l=c||null;if(this.i)for(a=new Set,b=g.q(this.i),c=b.next();!c.done;c=b.next())if(c=c.value,c.u&&!a.has(c.u.id)){var d=new cy(c.id,c.u);a.add(c.u.id);this.audioTracks.push(d)}};
oy=function(a,b,c,d){var e=[],f=new Set,h=a.Y||a.ib,l={};if(ly(c)){for(var m in c.i)c.i.hasOwnProperty(m)&&(d=c.i[m],l[d.info.i]=[d.info]);return l}for(var n in c.i)if(c.i.hasOwnProperty(n)){m=c.i[n];var p=m.info.yc();if(""===m.info.i)e.push(p),e.push("unkn");else if("304"!==p&&"266"!==p||!a.Sa)if(a.C&&m.info.video&&m.info.video.i>a.C)e.push(p),e.push("max"+a.C);else if(a.I&&m.info.video&&m.info.video.i<a.I)e.push(p),e.push("min"+a.I);else if(a.Xa&&"h"===m.info.i&&m.info.video&&1080<m.info.video.i)e.push(p),
e.push("blkhigh264");else if(a.Ya&&m.info.video&&4320<=m.info.video.i&&32<m.info.video.fps)e.push(p),e.push("blk8khfr");else{var r=b.i.get(m.info.i);r=r&&0<r.zC;h&&r?(f.add(m.info.i),e.push(p),e.push("byerr")):(r=my(b,m.info),!0!==r?(e.push(p),e.push(r)):"(h"!==m.info.i||b.B?(r="MAC3"===m.info.i||"MEAC3"===m.info.i||"M"===m.info.i,c.isLive&&r&&!a.Da?(e.push(p),e.push("blk51live")):(l[m.info.i]=l[m.info.i]||[],l[m.info.i].push(m.info))):(e.push(p),e.push("enchdr")))}else e.push(p),e.push("blk2khfr")}a.i&&
(d(e.join(".")),c="bfflt."+ny(l),d(c));for(var t in l)l.hasOwnProperty(t)&&(c=t,l[c]&&l[c][0].isVideo()&&(l[c]=Qfa(a,l[c]),l[c]=Rfa(b,l[c])));if(h)for(f=g.q(f.values()),h=f.next();!h.done;h=f.next())(h=b.i.get(h.value))&&--h.zC;b=g.Db(l,function(u){return!!u.length});
a.i&&(l="aftflt."+ny(l),d(l));return b};
py=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
ny=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(py(d));d=g.q(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.yc())}return b.join(".")};
Sfa=function(a,b,c){var d={};g.Cb(b,function(e,f){e=e.filter(function(h){if(!h.Be)return!1;if("("===h.i||"(h"===h.i){if(a.l&&c&&"widevine"===c.flavor){var l=h.mimeType+"; experimental=allowed";return!!h.Be[c.flavor]&&!!c.i[l]}if(!qy(a,ry.CRYPTOBLOCKFORMAT)&&!a.Y||a.W)return!1}return c&&h.Be[c.flavor]&&c.i[h.mimeType]?!0:!1});
e.length&&(d[f]=e)});
return d};
Ufa=function(a,b,c,d,e,f){function h(D){return!!l[D]}
f=void 0===f?!1:f;var l=oy(a,b,c,e);sy(c)&&(l=Sfa(b,l,d),a.i&&(b="enflt."+ny(l),e(b)));if(ly(c))return e=g.cb(Object.values(l),function(D){return!!D.length&&!!D[0].audio}),a=g.cb(Object.values(l),function(D){return!!D.length&&!!D[0].video}),e&&a||Jt(),Kt(new ky(a,e));
b=ty(a);b=g.cb(b,h);if(!b)return a.i&&e("noaudio"),Jt();d=l[b];l["9"]&&l.h&&c.Lk&&!a.Ga&&(a.i&&e("dltvp9"),delete l["9"]);var m=l["1h"]?"1h":"1",n=l["9h"]?"9h":"9",p=l[m],r=l[n];p&&p.length&&(a.l.highestAv1Resolution=p[p.length-1].Za().i);r&&r.length&&(a.l.highestVp9Resolution=r[r.length-1].Za().i);var t=[],u=[];if(a.ra&&!a.u)for(u=Tfa(c)?l["1h"]||l["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],a.i&&e("newhybpref."+u.join(".")),c=g.q(u),f=c.next();!f.done;f=c.next())t=t.concat(l[f.value]).filter(function(D){return D});
else if(0<a.J&&r&&p){if(!f){var x=Math.min(a.J,uy(p)),y=uy(r),E=function(D){return D<=x||D>y};
a.i&&e("lth."+x+".uth."+y);p=p.filter(function(D){return E(D.Za().i)});
r=r.filter(function(D){return!E(D.Za().i)})}u=[m,
n];t=p.concat(r).filter(function(D){return D})}if(t.length&&!a.u){vy(t,d,u);
if(a.i){a=[];m=g.q(t);for(n=m.next();!n.done;n=m.next())a.push(n.value.yc());e("hbdfmt."+a.join("."))}return Kt(new ky(t,d,wy(l,"",b)))}t=yy(a);t=g.cb(t,h);if(!t){if(l[m]&&a.ub)return e=l[m],vy(e,d),Kt(new ky(e,d,wy(l,m,b)));a.i&&e("novideo");return Jt()}a.Wb&&("1"===t||"1h"===t)&&l[n]&&(m=uy(l[t]),uy(l[n])>m&&(t=n));"9"===t&&l.h&&(m=uy(l["9"]),uy(l.h)>1.5*m&&(t="h"));a.i&&e("vfmly."+py(t));m=l[t];if(!m.length)return a.i&&e("novfmly."+py(t)),Jt();vy(m,d);return Kt(new ky(m,d,wy(l,t,b)))};
wy=function(a,b,c){var d=a.h;"f"===b&&(d=a[b]);var e=a.a;b=a[b]!==d;a=a[c]!==e;return d&&e&&(b||a)?(vy(d,e),new ky(d,e)):null};
vy=function(a,b,c){c=void 0===c?[]:c;g.wb(a,function(d,e){var f=e.Za().height*e.Za().width-d.Za().height*d.Za().width;if(!f&&c&&0<c.length){f=c.indexOf(d.i)+1;var h=c.indexOf(e.i)+1;f=0===f||0===h?h||-1:f-h}f||(f=e.l-d.l);return f});
g.wb(b,function(d,e){return e.l-d.l})};
Rfa=function(a,b){var c=Yg(b,function(d,e){return 32<e.Za().fps?Math.min(d,e.Za().width):d},Infinity);
Infinity>c&&(b=a.J&&(a.X||qy(a,ry.FRAMERATE))?g.Ie(b,function(d){return 32<d.Za().fps||d.Za().width<c}):g.Ie(b,function(d){return!(32<d.Za().fps)}));
hq()&&(b=g.Ie(b,function(d){return"299"!==d.yc()}));
return b};
Qfa=function(a,b){return b=g.Ie(b,function(c){return c.Za().i<=a.tb})};
uy=function(a){return Yg(a,function(b,c){return Math.max(b,c.Za().i)},0)};
zy=function(a){a=void 0===a?{}:a;var b=void 0===a.Gk?!1:a.Gk,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.TC?!1:a.TC;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&ay()?3:2:c&&d?-1:1};
Ay=function(a){return zy({hasSubfragmentedFmp4:a.B.pg,Gk:a.B.pg,defraggedFromSubfragments:a.Bl,isManifestless:!0,TC:a.Ma})};
Cy=function(a){a=a.split("");By.c4(a,17);By.N2(a,2);By.c4(a,11);By.yV(a,68);By.yV(a,66);By.c4(a,80);return a.join("")};
Dy=function(a,b){this.l=a;this.C=void 0===b?!1:b;this.B=this.path=this.u="";this.i={};this.url=""};
Ey=function(a){a.url||(a.url=Vfa(a));return a.url};
Gy=function(a){Fy(a);return a.B};
Hy=function(a){return a.l?nc(a.l,"local"):"local"===a.u};
Iy=function(a){Fy(a);return g.Gb(a.i,function(b){return null!==b})};
Jy=function(a){Fy(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=Ey(a);b=new g.Im(c);var d=a.get("fvip");a=decodeURIComponent(a.get("mn")||"").split(",");if(d&&a&&1<a.length&&a[1])return c=b.i.replace(/^[^.]*/,""),g.Km(b,"r"+d+"---"+a[1]+c),b=new Dy(b.toString()),b.set("fallback_count","1"),b;d=b.i.match("\\.a1\\.googlevideo\\.com$");b.i.match("\\.googlevideo\\.com$")?(g.Km(b,"redirector.googlevideo.com"),c=b.toString()):b.i.match("r[1-9].*\\.c\\.youtube\\.com$")?
(g.Km(b,"www.youtube.com"),c=b.toString()):c=mw(c);b=new Dy(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
Fy=function(a){if(a.l){if(!iw(a.l)&&!a.l.startsWith("local"))throw Error("Untrusted URL: "+a.l);var b=g.Qm(a.l);a.u=b.B;a.B=b.i+(null!=b.u?":"+b.u:"");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.i;a.i=Ky(c);
g.Sa(a.i,Ly(b.l.toString()));g.Sa(a.i,d);"index.m3u8"===a.i.file&&(delete a.i.file,a.path+="/file/index.m3u8");a.l="";a.url="";a.C&&(b=a.get("n"))&&(b=Uda(b),a.set("n",b))}};
Vfa=function(a){Fy(a);var b=a.u+(a.u?"://":"//")+a.B+a.path;if(Iy(a)){var c=[];g.Cb(a.i,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
Ky=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&My(c,a[b],a[b+1]);return c};
Ly=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?My(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
My=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};
Ny=function(a,b,c,d,e,f,h,l,m,n){this.Ia=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.i=void 0===m?null:m;this.Ld=n;this.endTime=b+c;this.l=h||0;this.range=f||null;this.pending=l||!1;this.Ld=n||null};
g.Oy=function(){this.segments=[]};
Py=function(a,b){if(b>a.uc())a.segments=[];else{var c=bb(a.segments,function(d){return d.Ia>=b},a);
0<c&&a.segments.splice(0,c)}};
Qy=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
Ry=function(a){return String.fromCharCode.apply(null,a)};
Sy=function(a){return window.TextDecoder?(new TextDecoder).decode(a):Ry(a)};
Ty=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.i=(this.l=e)?0:8;this.dataOffset=this.offset+this.i};
Uy=function(a){var b=a.data.getUint8(a.offset+a.i);a.i+=1;return b};
Vy=function(a){var b=a.data.getUint16(a.offset+a.i);a.i+=2;return b};
Wy=function(a){var b=a.data.getInt32(a.offset+a.i);a.i+=4;return b};
Xy=function(a){var b=a.data.getUint32(a.offset+a.i);a.i+=4;return b};
Yy=function(a){var b=a.data;var c=a.offset+a.i;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.i+=8;return b};
Zy=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.i;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;b=new Uint8Array(a.data.buffer,a.offset+a.i+a.data.byteOffset,c-a.i);a.i=Math.min(c+1,a.size);return Sy(b)};
Wfa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
$y=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};
bz=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.i=az(this,"Sequence-Number");this.I=az(this,"Segment-Count");this.J=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=az(this,"Ingestion-Walltime-Us")/1E6;this.l=(az(this,"First-Frame-Time-Us")+az(this,"First-Frame-Uncertainty-Us"))/1E6;this.Ri=az(this,"Target-Duration-Us")/1E6;this.B="T"===this.data["Stream-Finished"];this.C="T"===this.data.Streamable;this.cryptoPeriodIndex=az(this,"Crypto-Period-Index");
this.u=az(this,"Crypto-Period-Seconds")};
dz=function(a){var b;a.data["Cuepoint-Type"]?b=new bw(cz?Number(a.data["Cuepoint-Playhead-Time-Sec"])||0:-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",Xfa[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):b=null;return b};
ez=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
az=function(a,b){return Number(a.data[b])||0};
Yfa=function(a,b){this.i=a;this.duration=b};
fz=function(a,b,c,d,e){this.l=e;this.i=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
gz=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};
iz=function(a,b){var c=g.hz(a,0,1952868452);a=g.hz(a,0,1953658222);if(c&&a){c.skip(1);var d=Uy(c)<<16|Vy(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.i;var e=Xy(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=Uy(a)<<16|Vy(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=Xy(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.i,h=Xy(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
kz=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.hz(a,0,1836476516))?jz(a):NaN};
Zfa=function(a){var b=g.hz(a,0,1937011556);if(!b)return null;b=lz(a,b.dataOffset+8,1635148593);if(!b)return null;var c=lz(a,b.dataOffset+78,1936995172),d=lz(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),Uy(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=lz(a,d.dataOffset,1886547818)){var h=lz(a,d.dataOffset,1886546020),l=lz(a,d.dataOffset,2037673328);if(!l&&(l=lz(a,d.dataOffset,1836279920),!l))return null;h&&(h.skip(4),c=
Wy(h)/65536,f=Wy(h)/65536,e=Wy(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new fz(b,c,f,e,a)}return null};
lz=function(a,b,c){for(;mz(a,b);){var d=nz(a,b);if(d.type===c)return d;b+=d.size}return null};
g.hz=function(a,b,c){for(;mz(a,b);){var d=nz(a,b);if(d.type===c)return d;b=oz(d.type)?b+8:b+d.size}return null};
pz=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;return 4294967296*b.getUint32(a)+b.getUint32(a+4)}return a.data.getUint32(a.dataOffset+4)};
nz=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new Ty(a,b,c,d)};
jz=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
qz=function(a){a=new Ty(a.data,a.offset,a.size,a.type,a.l);var b=Uy(a);a.skip(7);var c=Xy(a);if(0===b){b=Xy(a);var d=Xy(a)}else b=Yy(a),d=Yy(a);a.skip(2);for(var e=Vy(a),f=[],h=[],l=0;l<e;l++){var m=Xy(a);f.push(m);h.push(Xy(a));a.skip(4)}return{dy:c,QN:b,mG:d,rC:f,Zx:h}};
mz=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};
oz=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
rz=function(a){a.skip(4);return{bT:Zy(a,0),value:Zy(a,0),dy:Xy(a),D6:Xy(a),k6:Xy(a),id:Xy(a),KH:Zy(a),offset:a.offset}};
sz=function(a,b){for(var c=lz(a,0,b);c;)c.markAsSkip(),c=lz(a,c.offset+c.size,b)};
tz=function(a,b){for(var c=0,d=[];mz(a,c);){var e=nz(a,c);e.type===b&&d.push(e);c=oz(e.type)?c+8:c+e.size}return d};
$fa=function(a,b){var c=g.hz(a,0,1937011556),d=g.hz(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.hz(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 Wfa(a.byteLength+b);$y(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;$y(d,a,c.offset+16,c.size-16);$y(d,e,e.byteOffset+f.dataOffset+8,b);$y(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.q([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.hz(a,0,e.value),d.data.setUint32(e.offset,e.size+b);if(uz)return d.data;a=g.hz(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
vz=function(a,b){this.l=a;this.i=0;this.start=b||0};
wz=function(a){return a.i>=a.l.byteLength};
Cz=function(a,b,c){var d=new vz(c);if(!xz(d,a))return!1;d=yz(d);if(!zz(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.i;var e=Az(d,!0);d=a+(d.start+d.i-b)+e;d=9<d?Bz(d-9,8):Bz(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
aga=function(a){var b=new vz(a);Dz(b);if(xz(b,[408125543,374648427,174,224]))b=yz(b);else return null;for(var c=a=null;!wz(b);){var d=Az(b,!1);if(21432===d)switch(Ez(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=yz(b):Fz(b)}if(!c)return null;for(var e,f=d=b=null;!wz(c);)switch(Az(c,!1)){case 30321:if(3!==Ez(c))return null;break;case 30324:b=Gz(c);break;case 30323:f=Gz(c);break;case 30325:d=Gz(c);break;case 30322:e=Az(c,!0);e=Hz(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:Fz(c)}return e?new fz(a,b,f,d,e):null};
yz=function(a){var b=Az(a,!0),c=a.l.byteOffset+a.i;c=new DataView(a.l.buffer,c,Math.min(b,a.l.buffer.byteLength-c));c=new vz(c,a.start+a.i);a.i+=b;return c};
Ez=function(a){for(var b=Az(a,!0),c=Iz(a),d=1;d<b;d++)c=256*c+Iz(a);return c};
Gz=function(a){var b=Az(a,!0),c=0;4===b?c=a.l.getFloat32(a.i):8===b&&(c=a.l.getFloat64(a.i));a.i+=b;return c};
Jz=function(a){var b=Az(a,!0);return Sy(Hz(a,b))};
Iz=function(a){return a.l.getUint8(a.i++)};
Az=function(a,b){var c=Iz(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+Iz(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+Iz(a),d*=128;return b?c-d:c};
Fz=function(a){var b=Az(a,!0);a.i+=b};
Dz=function(a){var b=a.i;a.i=0;var c=!1;try{zz(a,440786851)&&(a.i=0,zz(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.i=0,c=!1,zo(d);else throw d;}a.i=b;return c};
cga=function(a){if(!zz(a,440786851,!0))return null;var b=a.i;Az(a,!1);var c=Az(a,!0)+a.i-b;a.i=b+c;if(!zz(a,408125543,!1))return null;Az(a,!0);if(!zz(a,357149030,!0))return null;var d=a.i;Az(a,!1);var e=Az(a,!0)+a.i-d;a.i=d+e;if(!zz(a,374648427,!0))return null;var f=a.i;Az(a,!1);var h=Az(a,!0)+a.i-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.l.buffer,a.l.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.l.buffer,
a.l.byteOffset+d,e),c+12);l.set(new Uint8Array(a.l.buffer,a.l.byteOffset+f,h),c+12+e);return l};
Kz=function(a){var b=a.i,c={aD:1E6,bD:1E9,duration:0,AC:0,Iu:0};if(!zz(a,408125543))return a.i=b,null;c.AC=Az(a,!0);c.Iu=a.start+a.i;if(zz(a,357149030))for(var d=yz(a);!wz(d);){var e=Az(d,!1);2807729===e?c.aD=Ez(d):2807730===e?c.bD=Ez(d):17545===e?c.duration=Gz(d):Fz(d)}else return a.i=b,null;a.i=b;return c};
Mz=function(a,b,c){var d=a.i,e=[];if(!zz(a,475249515))return a.i=d,null;for(var f=yz(a);zz(f,187);){var h=yz(f);if(zz(h,179)){var l=Ez(h);if(zz(h,183)){h=yz(h);for(var m=b;zz(h,241);)m=Ez(h)+b;e.push({Jo:m,Wv:l})}}}if(0<e.length&&c===e[0].Jo)for(Lz&&zo(Error("opus_oboe")),b=0;b<e.length;b++)e[b].Jo+=1;a.i=d;return e};
Nz=function(a){var b=a.i;a.i=0;var c=1E6;xz(a,[408125543,357149030,2807729])&&(c=Ez(a));a.i=b;return c};
dga=function(a,b){var c=a.i;a.i=0;if(160!==a.l.getUint8(a.i)&&!Oz(a)||!zz(a,160))return a.i=c,NaN;Az(a,!0);var d=a.i;if(!zz(a,161))return a.i=c,NaN;Az(a,!0);Iz(a);var e=Iz(a)<<8|Iz(a);a.i=d;if(!zz(a,155))return a.i=c,NaN;d=Ez(a);a.i=c;return(e+d)*b/1E9};
Oz=function(a){if(!Pz(a)||!zz(a,524531317))return!1;Az(a,!0);return!0};
Pz=function(a){if(Dz(a)){if(!zz(a,408125543))return!1;Az(a,!0)}return!0};
xz=function(a,b){for(var c=0;c<b.length;c++){if(!zz(a,b[c]))return!1;c!==b.length-1&&Az(a,!0)}return!0};
zz=function(a,b,c){c=void 0===c?!1:c;if(wz(a))return!1;for(var d=a.i;Az(a,!1)!==b;)if(Fz(a),d=a.i,wz(a))return!1;c&&(a.i=d);return!0};
Bz=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};
Hz=function(a,b){var c=new Uint8Array(a.l.buffer,a.l.byteOffset+a.i,b);a.i+=b;return c};
Qz=function(a){this.Kh=a;this.i={};this.url=""};
Rz=function(a,b){var c=b.indexOf("?");if(0<c){var d=Ly(b.substr(c+1));g.Cb(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=Ky(b);g.Cb(b,function(e,f){this.set(f,e)},a)};
g.Sz=function(a){a.url||(a.url=ega(a));return a.url};
ega=function(a){var b=Ey(a.Kh),c=[];g.Cb(a.i,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=Iy(a.Kh)?"&":"?";return b+a+d};
Tz=function(a,b){var c=new Dy(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Cb(a.i,function(d,e){c.set(e,null)});
return c};
fga=function(){this.u=this.i=this.l=this.started=this.B=0};
gga=function(a){a.B=(0,g.N)();a.started+=1};
Uz=function(a,b,c){var d=a.started+4*a.i;c&&(d+=a.u);return Math.pow(b.Ii,d)};
Vz=function(a,b){a[b]||(a[b]=new fga);return a[b]};
hga=function(a){this.u=null;this.C=this.l=0;this.i=a;this.B=a.clone()};
Xz=function(a,b,c){var d=Vz(c,Gy(a.i));if(d.l>=b.tq||1<=d.i)if(a=Wz(a),c=Vz(c,Gy(a)),c.l+c.i<=d.l+d.i)return!0;return!1};
iga=function(a,b){a=b?Wz(a):a.i;return new Qz(a)};
Wz=function(a){a.u||(a.u=Jy(a.B));return a.u};
Yz=function(a,b){return a.l>b.sf?a.C+1E3*Math.pow(b.Ii,a.l-b.sf)<(0,g.N)():!0};
g.Zz=function(a,b,c){b.Kh===a.i&&(a.i=Tz(b,c));b.Kh===a.u&&(a.u=Tz(b,c))};
$z=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.i=null;this.u=!1;this.C=null;this.L=0;this.B=null;this.W=NaN;this.I=null;this.info=b;this.l=new hga(a)};
aA=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
bA=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new aA(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
cA=function(a,b){return new aA(a,a+b-1)};
dA=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
gA=function(a,b,c,d,e,f,h,l,m,n,p){this.type=a;this.i=b;this.range=c;this.L=[];this.I="";this.Ia=-1;this.I=void 0===d?"":d;this.Ia=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Ab=l||0;this.l=0<=m?m:this.range?this.range.length:NaN;this.u=!!n;a=this.range?this.Ab+this.l===this.range.length:void 0===p?!!this.l:p;this.Zd=a;this.range?(this.C=this.startTime+this.duration*this.Ab/this.range.length,this.J=this.duration*this.l/this.range.length,this.B=this.C+this.J):eA(this);3!==this.type||0<=this.Ia||
!this.i.Jg()||g.qt(new g.Zr("b168859904",fA(this)))};
eA=function(a){a.C=a.startTime;a.J=a.duration;a.B=a.C+a.J};
jga=function(a,b,c){var d=!(!b||b.i!==a.i||b.type!==a.type||b.Ia!==a.Ia);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Ab+b.l===a.Ab+a.l:d};
hA=function(a){return 1===a.type||2===a.type};
iA=function(a){return 3===a.type||6===a.type};
jA=function(a,b){return a.i===b.i?a.range&&b.range?a.range.start+a.Ab+a.l===b.range.start+b.Ab:a.Ia===b.Ia?a.Ab+a.l===b.Ab:a.Ia+1===b.Ia&&0===b.Ab&&a.Zd:!1};
kA=function(a,b){return jA(a,b)||be(a.B,b.C)||a.Ia+1===b.Ia&&0===b.Ab&&a.Zd?!0:!1};
kga=function(a){1===a.length||g.Xg(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new aA(a[0].range.start+a[0].Ab,b.range.start+b.Ab+b.l-1)};
fA=function(a){a=lA(a);var b="";g.Cb(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
lA=function(a){var b={};b.itag=a.i.info.yc();b.type=""+a.type;b.seg=String(a.Ia);a.range&&(b.range=""+(a.range.start+a.Ab)+"-"+(a.range.start+a.Ab+a.l-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.J).toFixed(1);b.off=String(a.Ab);b.len=String(a.l);a.Zd&&(b.end="1");a.u&&(b.eos="1");return b};
mA=function(a,b){var c=b.i;a.I="updateWithEmsg";a.Ia=c;b.B&&(a.u=b.B)};
nA=function(a,b){var c=b.Ia;a.I="updateWithSegmentInfo";a.Ia=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,eA(a)};
oA=function(a,b){this.i=a;this.I="";this.B=this.Ue=NaN;this.C=this.requestId=null;this.l=a[0].i.l;this.u=b||"";this.range=this.i[0].range&&0<this.i[0].l?kga(this.i):null};
pA=function(a){return 4===a.i[a.i.length-1].type};
g.qA=function(a,b,c){if(a.I){var d=new Qz(new Dy(a.I));a.u&&Rz(d,a.u)}else/http[s]?:\/\//.test(a.u)?d=new Qz(new Dy(a.u)):(b=null===a.C?Xz(a.l,b,c):a.C,d=iga(a.l,b),a.u&&Rz(d,a.u));(b=a.range)&&d.set("range",b.toString());a.requestId&&d.set("req_id",a.requestId);isNaN(a.Ue)||d.set("headm",a.Ue.toString());isNaN(a.B)||d.set("mffa",a.B+"ms");a.urlParams&&g.Cb(a.urlParams,function(e,f){d.set(f,e)});
return d};
rA=function(a){if(a.range)return a.range.length;a=a.i[0];return Math.round(a.J*a.i.info.l)};
sA=function(a,b,c){var d=a.i[0];if(a.range)var e=cA(a.range.start,Math.min(4096,a.range.length));else if(c){if(a.u&&0<=a.u.indexOf("/range/")||"1"===a.l.B.get("defrag")||"1"===a.l.B.get("otf"))return null;e=cA(0,4096)}else if(d.i.info.video)return null;c=new gA(5,d.i,e,"createProbeRequestInfo"+d.I,d.Ia);a=new oA([c],a.u);a.C=b;return a};
tA=function(a,b,c,d,e,f){f=void 0===f?0:f;$z.call(this,a,b,d,void 0);this.X=c;this.Ri=f;this.J=!0;this.index=e||new g.Oy;this.jq()&&(this.u=!0)};
lga=function(a,b,c,d,e){this.Ia=a;this.startSecs=b;this.durationSecs=c;this.i=d||NaN;this.l=e||NaN};
uA=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""};
vA=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
wA=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};
xA=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
yA=function(){this.i=[];this.l=null;this.I=0;this.u=[];this.C=!1;this.J="";this.B=-1};
mga=function(a){var b=a.u;a.u=[];return b};
nga=function(){this.B=[];this.i=null;this.l={};this.u={}};
rga=function(a,b,c){var d=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.q(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.parentNode.parentNode,h=null;"Period"===f.nodeName?h=oga(a):"AdaptationSet"===f.nodeName?(f=f.getAttribute("id")||f.getAttribute("mimetype")||"",h=pga(a,f)):"Representation"===f.nodeName&&(f=f.getAttribute("id")||"",h=qga(a,f));if(null==h)return;h.update(e,c);pb(d,mga(h))}pb(a.B,d);paa(a.B,function(l){return 1E3*l.startSecs+l.i})};
sga=function(a){a.i&&(a.i.i=[]);g.Cb(a.l,function(b){b.i=[]});
g.Cb(a.u,function(b){b.i=[]})};
oga=function(a){a.i||(a.i=new yA);return a.i};
pga=function(a,b){a.l[b]||(a.l[b]=new yA);return a.l[b]};
qga=function(a,b){a.u[b]||(a.u[b]=new yA);return a.u[b]};
zA=function(a){var b=void 0===a?{}:a;a=void 0===b.Ri?0:b.Ri;var c=void 0===b.pk?!1:b.pk,d=void 0===b.Dl?0:b.Dl,e=void 0===b.ze?0:b.ze,f=void 0===b.Sg?Infinity:b.Sg,h=void 0===b.Xt?0:b.Xt;b=void 0===b.kf?!1:b.kf;this.segments=[];this.i=this.ls=-1;this.l=null;this.Yg=a;this.Dl=d;this.pk=c;this.ze=e;this.Sg=f;this.Xt=h;this.kf=b};
BA=function(a,b,c){b=AA(a,b);return 0<=b&&(c||!a.segments[b].pending)};
AA=function(a,b){return vb(a.segments,function(c){return b-c.Ia})};
CA=function(a,b,c){c=void 0===c?{}:c;tA.call(this,a,b,"",void 0,void 0,c.Ri||0);this.index=new zA(c)};
DA=function(a,b,c,d,e){$z.call(this,a,b,d,e);this.J=c;this.index=new g.Oy};
EA=function(a,b,c){var d=a.index.QA(b),e=a.index.Xf(b),f=a.index.getDuration(b),h=0;c?f=h=0:0<a.info.l&&(h=a.info.l*f);c=b===a.index.uc()&&0<h;a=new gA(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,h,c);return new oA([a],d)};
tga=function(a,b){if(!a.index.xd()){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 Ny(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
FA=function(a){var b=this;a=void 0===a?[]:a;this.i=[];this.u=this.l=0;this.B=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
GA=function(a,b){return 0===a.i.length?!1:(a=a.i[a.i.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
HA=function(a,b){b=g.q(b.i);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
IA=function(a){a.B=void 0;a.l=0;a.u=0};
JA=function(a,b,c){a.isFocused(b);return b-a.u+c<=a.i[a.l].length};
KA=function(a){if(!a.B){var b=a.i[a.l];a.B=new DataView(b.buffer,b.byteOffset,b.length)}return a.B};
LA=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!JA(a,b,c)){var d=a.l,e=a.u;a.focus(b+c-1);e=new Uint8Array(a.u+a.i[a.l].length-e);for(var f=0,h=d;h<=a.l;h++)e.set(a.i[h],f),f+=a.i[h].length;a.i.splice(d,a.l-d+1,e);IA(a);a.focus(b)}d=a.i[a.l];return new DataView(d.buffer,d.byteOffset+b-a.u,c)};
MA=function(a,b,c){a=LA(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
NA=function(a){a=MA(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};
OA=function(a,b){a.focus(b);return a.i[a.l][b-a.u]};
PA=function(a,b){a.focus(b);return JA(a,b,4)?KA(a).getUint32(b-a.u):256*(256*(256*OA(a,b)+OA(a,b+1))+OA(a,b+2))+OA(a,b+3)};
QA=function(a,b,c){this.info=a;this.u=c;this.l=null;this.B=-1;this.timestampOffset=0;this.i=b instanceof FA?b:new FA([b])};
RA=function(a){return LA(a.i)};
SA=function(a,b){if(1!==a.info.i.info.containerType||a.info.Ab||!a.info.Zd)return!0;a=RA(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};
TA=function(a,b){b=Math.min(b,a.info.l);var c=a.i.split(b),d=c.Hw;c=c.Np;var e=new gA(a.info.type,a.info.i,a.info.range,a.info.I,a.info.Ia,a.info.startTime,a.info.duration,a.info.Ab,b,!1,!1);d=new QA(e,d,a.u);a=new gA(a.info.type,a.info.i,a.info.range,a.info.I,a.info.Ia,a.info.startTime,a.info.duration,a.info.Ab+b,a.info.l-b,a.info.u,a.info.Zd);a=new QA(a,c,!1);return[d,a]};
UA=function(a,b,c){var d;if(!(d=!jA(a.info,b.info)||a.info.Zd)){if(c=void 0===c?!1:c)c=b.i,c=!(c.i.length?GA(a.i,c.i[0]):1);d=c}if(d)return null;c=new gA(a.info.type,a.info.i,a.info.range,a.info.I,a.info.Ia,a.info.startTime,a.info.duration,a.info.Ab,a.info.l,a.info.u,a.info.Zd);d=b.info;c.l+=d.l;c.range&&(c.J+=d.J);c.B=d.B;c.Zd=d.Zd;c.u=c.u||d.u;d=new FA;HA(d,a.i);HA(d,b.i);c=new QA(c,d,a.u);c.l=b.l||a.l;if(a=c.info.range)a=c.i,a=!(1===a.i.length&&0<a.i[0].byteOffset);a&&(c.u=!1);return c};
WA=function(a){g.VA(a.info.i.info)||a.info.i.info.Ne();if(-1!==a.B)return a.B;if(a.l&&ez(a.l))return a.B=ez(a.l),a.B;if(g.VA(a.info.i.info)){var b=RA(a);for(var c=a.info.i.i,d=NaN,e=NaN,f=0;mz(b,f);){var h=nz(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=jz(h):1952867444===h.type&&isNaN(d)&&(d=pz(h));f=oz(h.type)?f+8:f+h.size}!e&&c&&(e=kz(c));b=d/e}else b=new vz(RA(a)),c=a.u?b:new vz(new DataView(a.info.i.i.buffer)),d=Nz(c),c=b.i,b.i=0,Oz(b)?zz(b,231)?(d=Ez(b)*
d/1E9,b.i=c,b=d):(b.i=c,b=NaN):(b.i=c,b=NaN);a.B=b||a.info.C;return a.B};
YA=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=WA(a)+b;XA(a,c);a.timestampOffset=b};
XA=function(a,b){g.VA(a.info.i.info)||a.info.i.info.Ne();a.B=b;if(g.VA(a.info.i.info)){var c=RA(a);a=a.info.i.i;for(var d=NaN,e=NaN,f=0;mz(c,f);){var h=nz(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=jz(h)));if(1952867444===h.type){!d&&a&&(d=kz(a));var l=pz(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=oz(h.type)?f+8:f+h.size}return!0}c=new vz(RA(a));a=a.u?c:new vz(new DataView(a.info.i.i.buffer));d=Nz(a);a=c.i;c.i=0;if(Oz(c)&&zz(c,231))if(e=Az(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.l.setUint8(c.i+d,b&255),b>>>=8;c.i=a;b=!0}else b=!1;return b};
ZA=function(a){g.VA(a.info.i.info)||a.info.i.info.Ne();if(a.l&&6===a.info.type)return a.l.Ri;if(g.VA(a.info.i.info)){var b=RA(a);var c=0;b=tz(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=qz(d.value),c+=d.Zx[0]/d.dy;c=c||NaN;if(!(0<=c))a:{c=RA(a);b=a.info.i.i;for(var e=d=0,f=0;mz(c,d);){var h=nz(c,d);if(1836476516===h.type)e=jz(h);else if(1836019558===h.type){!e&&b&&(e=kz(b));if(!e){c=NaN;break a}var l=lz(h.data,h.dataOffset,1953653094),m=e,n=lz(l.data,l.dataOffset,1952868452);l=
lz(l.data,l.dataOffset,1953658222);var p=Wy(n);Wy(n);p&2&&Wy(n);n=p&8?Wy(n):0;var r=Wy(l),t=r&1;p=r&4;var u=r&256,x=r&512,y=r&1024;r&=2048;var E=Xy(l);t&&Wy(l);p&&Wy(l);for(var D=t=0;D<E;D++){var G=u?Wy(l):n;x&&Wy(l);p&&0===D||!y||Wy(l);r&&Wy(l);t+=G}f+=t/m}d=oz(h.type)?d+8:d+h.size}c=f||NaN}}else c=new vz(RA(a)),b=a.u?c:new vz(new DataView(a.info.i.i.buffer)),c=dga(c,Nz(b));return c||a.info.J};
$A=function(a){var b=RA(a);var c=(c=g.hz(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.i.i,c=(b=g.hz(b,0,1836476516))?jz(b):a?kz(a):NaN);return c};
aB=function(a){if(!a.l){g.VA(a.info.i.info)||a.info.i.info.Ne();if(g.VA(a.info.i.info)){var b=RA(a),c=lz(b,0,1701671783);if(c){var d=rz(c);var e=d.bT;d=gz(d.KH);if(b=lz(b,c.offset+c.size,1701671783))if(b=rz(b),b=gz(b.KH),d&&b){c=g.q(Object.keys(b));for(var f=c.next();!f.done;f=c.next())f=f.value,d[f]=b[f]}e=d?new bz(d,e):null}else e=null}else{e=new vz(RA(a));d=e.i;e.i=0;c=b=null;if(xz(e,[408125543,307544935,29555,26568]))for(f=yz(e);!wz(f);){var h=Az(f,!1);17543===h?c=gz(Jz(f)):17827===h?b=Jz(f):
Fz(f)}e.i=d;e=c?new bz(c,b):null}a.l=e}};
g.bB=function(){this.count=0;this.u=1;this.l=!1;this.offsets=new Float64Array(128);this.i=new Float64Array(128)};
cB=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
dB=function(a,b,c,d,e,f){$z.call(this,a,b,c,d);this.contentLength=e;this.lastModified=f;this.J=null;this.index=new g.bB};
eB=function(a,b,c,d){for(var e=[];b<=a.index.uc();b++){var f=a.index,h=b;f=cA(f.Il(h),h+1<f.count||f.l?f.offsets[h+1]-f.offsets[h]:-1);h=a.index.Xf(b);var l=a.index.getDuration(b),m=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+m),p=b===a.index.uc()&&m+n===f.length;e.push(new gA(3,a,f,"getRequestInfoForRange",b,h,l,m,n,p));if(f.start+m+n>=c+d)break}return new oA(e)};
fB=function(a,b,c,d){this.sampleRate=a||0;this.i=b||0;this.spatialAudioType=c||0;this.itag=d||""};
uga=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
hB=function(a,b,c,d,e,f,h,l,m,n){this.width=a;this.height=b;this.quality=f||gB(a,b);this.i=g.fy[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.fy[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.l=l||"";this.primaries=m||"";this.streamType=n||0};
gB=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=iB[0];for(var d=0;d<iB.length;d++){var e=iB[d],f=g.fy[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
lB=function(a,b,c,d,e,f,h,l,m){this.id=a;this.mimeType=b;this.audio=void 0===c?null:c;this.video=void 0===d?null:d;this.u=void 0===e?null:e;this.Be=void 0===f?null:f;this.captionTrack=void 0===m?null:m;this.I=!0;this.isSupported=this.B=null;this.containerType=jB(b);this.l=h||0;this.C=l||0;this.i=kB[this.yc()]||""};
mB=function(a){return"9"===a.i||"("===a.i||"9h"===a.i||"(h"===a.i};
nB=function(a){return"9h"===a.i||"(h"===a.i};
oB=function(a){return"1"===a.i||"1h"===a.i};
g.VA=function(a){return 1===a.containerType};
pB=function(a){return"application/x-mpegURL"===a.mimeType};
qB=function(a){return a.includes("vtt")||a.includes("text/mp4")};
jB=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};
rB=function(a,b,c,d,e){var f=new fB;b in g.fy||(b="small");d&&e?(e=Number(e),d=Number(d)):(e=g.fy[b],d=Math.round(16*e/9));d=new hB(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new lB(c,a,f,d)};
sB=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
tB=function(){var a=g.Ja("yt.player.utils.videoElement_");a||(a=g.De("VIDEO"),g.Fa("yt.player.utils.videoElement_",a,void 0));return a};
uB=function(a){var b=tB();return!!(b&&b.canPlayType&&b.canPlayType(a))};
vga=function(a){try{var b=vB('video/mp4; codecs="avc1.42001E"')||vB('video/webm; codecs="vp9"');return(vB('audio/mp4; codecs="mp4a.40.2"')||vB('audio/webm; codecs="opus"'))&&(b||!a)||uB('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
vB=function(a){if(/opus/.test(a)&&(g.wB&&!An("38")||g.wB&&cq("crkey")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!iq())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!uB(a)};
xB=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
yB=function(){var a=tB();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
zB=function(){var a=tB();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
AB=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
BB=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)};
CB=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};
DB=function(a,b){return 0<=CB(a,b)};
wga=function(a,b){if(!a)return NaN;b=CB(a,b);return 0<=b?a.start(b):NaN};
EB=function(a,b){if(!a)return NaN;b=CB(a,b);return 0<=b?a.end(b):NaN};
FB=function(a){return a&&a.length?a.end(a.length-1):NaN};
GB=function(a,b){a=EB(a,b);return 0<=a?a-b:0};
HB=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 AB(d,e)};
IB=function(a,b,c,d){g.P.call(this);var e=this;this.qd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.UG={error:function(){!e.Ha()&&e.isActive&&e.V("error",e)},
updateend:function(){!e.Ha()&&e.isActive&&e.V("updateend",e)}};
au(this.qd,this.UG);this.hv=this.isActive};
g.JB=function(a,b,c){this.errorCode=a;this.i=b;this.details=c||{}};
g.KB=function(a){var b;for(b in a)if(a.hasOwnProperty(b)){var c=(""+a[b]).replace(/[:,=]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""};
LB=function(a){var b=void 0===b?!1:b;if(a instanceof g.JB)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.pt(a):g.qt(a);return new g.JB(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
MB=function(a,b,c,d,e){var f;g.P.call(this);var h=this;this.Ob=a;this.Pe=b;this.id=c;this.containerType=d;this.isVideo=e;this.tH=this.Qw=this.We=null;this.appendWindowStart=this.timestampOffset=0;this.CF=AB([],[]);this.Mv=!1;this.De=function(l){return h.V(l.type,h)};
if(null===(f=this.Ob)||void 0===f?0:f.addEventListener)this.Ob.addEventListener("updateend",this.De),this.Ob.addEventListener("error",this.De)};
NB=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
OB=function(a,b){this.i=a;this.l=void 0===b?!1:b;this.u=!1};
PB=function(a,b,c){c=void 0===c?!1:c;g.F.call(this);this.mediaSource=a;this.Pe=b;this.isView=c;this.u=0;this.callback=null;this.events=new Yt(this);g.H(this,this.events);this.Yt=new OB(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Pe.webkitMediaSourceURL,!0);a=this.mediaSource||this.Pe;Zt(this.events,a,["sourceopen","webkitsourceopen"],this.C);Zt(this.events,a,["sourceclose","webkitsourceclose"],this.B)};
xga=function(a,b){QB(a)?g.em(function(){b(a)}):a.callback=b};
RB=function(a,b){try{a.mediaSource?a.mediaSource.duration=b:(a.u=b,a.Pe.webkitSourceSetDuration(b))}catch(c){}};
SB=function(a){return!!a.i||!!a.l};
QB=function(a){try{return"open"===TB(a)}catch(b){return!1}};
UB=function(a){try{return"closed"===TB(a)}catch(b){return!0}};
TB=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Pe.webkitSourceState){case a.Pe.SOURCE_OPEN:return"open";case a.Pe.SOURCE_ENDED:return"ended";default:return"closed"}};
VB=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
WB=function(a,b,c,d){if(!a.i||!a.l)return null;var e=a.i.isView()?a.i.qd:a.i,f=a.l.isView()?a.l.qd:a.l,h=new PB(a.mediaSource,a.Pe,!0);h.Yt=a.Yt;e=new IB(e,b,c,d);b=new IB(f,b,c,d);h.i=e;h.l=b;g.H(h,e);g.H(h,b);QB(a)||a.i.Nr(a.i.Lc());return h};
yga=function(a,b){return XB(function(c,d){return g.Ht(c,d,4,1E3)},a,b)};
g.YB=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=Sy(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
XB=function(a,b,c){b.match(zga);return a(b,c).then(function(d){var e=g.YB(d);return e?XB(a,e,c):d})};
ZB=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.P.call(this);this.sourceUrl=a;this.isLivePlayback=c;this.Aa=this.duration=0;this.kf=this.I=this.isLive=this.u=!1;this.Sg=this.ze=0;this.isOtf=this.Lk=!1;this.va=(0,g.N)();this.L=Infinity;this.i={};this.state=this.X=0;this.timeline=null;this.isManifestless=!1;this.W=[];this.B=null;this.Y=0;this.Da="";this.ra=NaN;this.C=this.J=this.l=0;this.Ma=!!b&&g.S(b,"html5_live_nonzero_first_segment_start_time");this.Sa=!!b&&g.S(b,"html5_live_self_init_segments");
this.withCredentials=!b||!g.S(b,"html5_manifest_without_credentials");this.Ca=!!b&&g.S(b,"disable_html5_manifest_namespace_redux");this.Ga=b&&g.S(b,"disable_html5_duration_caching")?Infinity:10;this.Ra=!!b&&g.S(b,"html5_reset_index_on_mismatch")};
Tfa=function(a){return g.Gb(a.i,function(b){return!!b.info.video&&b.info.video.isHdr()})};
sy=function(a){return g.Gb(a.i,function(b){return!!b.info.Be})};
Aga=function(a){return g.Gb(a.i,function(b){return qB(b.info.mimeType)})};
$B=function(a){return g.Gb(a.i,function(b){return b.info.video?2===b.info.video.projectionType:!1})};
aC=function(a){return g.Gb(a.i,function(b){return b.info.video?3===b.info.video.projectionType:!1})};
bC=function(a){return g.Gb(a.i,function(b){return b.info.video?4===b.info.video.projectionType:!1})};
Bga=function(a){return g.Gb(a.i,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
Cga=function(a){return Hb(a.i,function(b){return b.info.video?b.jC():!0})};
ly=function(a){return g.Gb(a.i,function(b){return Hy(b.l.i)})};
cC=function(a,b){a.i[b.info.id]=b};
fC=function(a,b,c,d,e,f){var h=Dga(a);if(d||e){c=new ZB("",f,!0);a=g.q(a);for(d=a.next();!d.done;d=a.next()){var l=d.value;d=dC(l,b);f=eC(l.url,l.sp,l.s);h=Number(l.target_duration_sec)||5;l=Number(l.max_dvr_duration_sec)||14400;var m=Number(f.get("mindsq")||f.get("min_sq")||"0"),n=Number(f.get("maxdsq")||f.get("max_sq")||"0")||Infinity;c.ze=c.ze||m;c.Sg=c.Sg||n;var p=!qB(d.mimeType);f&&cC(c,new CA(f,d,{Ri:h,pk:p,Dl:l,ze:m,Sg:n,Xt:300,kf:e}))}c.u=!e;c.Lk=!0;c.isManifestless=!0;c.isLive=!e;c.kf=e;
c.I=!!c.ze&&!!c.Sg&&isFinite(c.Sg);b=c}else b=3===h?Ega(a,b,c,f):Fga(a,b,c,f);return b};
Fga=function(a,b,c,d){c=void 0===c?0:c;var e=new ZB("",d,!1);e.duration=c||0;g.zb(a,function(f){var h=dC(f,b,e.duration),l=bA(f.init),m=bA(f.index),n=Number(f.clen),p=eC(f.url,f.sp,f.s);f=Number(f.lmt);p&&cC(e,new dB(p,h,l,m,n,f))});
return e};
Ega=function(a,b,c,d){c=void 0===c?0:c;var e=new ZB("",d,!1);e.duration=c||0;g.zb(a,function(f){var h=dC(f,b,e.duration),l=eC(f.url,f.sp,f.s);if(!g.VA(h)){var m=d&&g.S(d,"html5_manifestless_vp9_otf"),n=d&&g.S(d,"html5_otf_webm_audio_killswitch");if(!m||!h.isVideo()&&n)return}l&&(h.video&&3===h.video.streamType?cC(e,new DA(l,h,"sq/0")):(m=bA(f.init),f=bA(f.index),cC(e,new DA(l,h,"",m,f))))});
e.isOtf=!0;return e};
dC=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);var h=null;f=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){h=(a.size||"640x360").split("x");h=new hB(+h[0],+h[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries,+a.stream_type);var l=h;null===gC&&(gC=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((gC||hC)&&('video/webm; codecs="vp9"'===d||'video/webm; codecs="vp9.2"'===d)){var m="00",n="08",p="01",r="01",t="01";'video/webm; codecs="vp9.2"'===d&&(m="02",n="10","bt2020"===l.primaries&&(t=p="09"),"smpte2084"===l.l&&(r="16"),"arib-std-b67"===l.l&&(r="18"));d='video/webm; codecs="'+["vp09",m,"51",n,"01",p,r,t,"00"].join(".")+'"'}}m=l=null;/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)&&(l=new fB(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type),a.name&&(m=new sB(a.name,a.audio_track_id,
"1"===a.isDefault)));a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(f=new uga(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));n=Number(a.bitrate)/8;p=Number(a.clen);c=c&&p?p/c:0;p=null;if(b&&a.drm_families)for(p={},a=g.q(a.drm_families.split(",")),r=a.next();!r.done;r=a.next())r=r.value,p[r]=b[r];return new lB(e,d,l,h,m,p,n,c,f)};
Dga=function(a){return Sh(a,function(b){return 3===+b.stream_type})?3:0};
iC=function(a,b){return a.timeline?qb(a.timeline.B,b):a.W.length?qb(a.W,b):[]};
eC=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new Dy(a,!0);a.set("alr","yes");c&&(c=Cy(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
lC=function(a,b){var c=uA(b,"id");c=c.replace(":",";");var d=uA(b,"mimeType"),e=uA(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(uA(b,"bandwidth"))/8;var f=Number(vA(b,"BaseURL").getAttribute(jC(a,"contentLength")));f=a.duration&&f?f/a.duration:0;var h=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){h=Number(uA(b,"width"));var l=Number(uA(b,"height")),m=Number(uA(b,"frameRate")),n=Gga(uA(b,jC(a,"projectionType")));a:switch(uA(b,jC(a,"stereoLayout"))){case "layout_left_right":var p=1;break a;case "layout_top_bottom":p=
2;break a;default:p=0}uA(b,"video_level");h=new hB(h,l,m,n,p,void 0,void 0,void 0,void 0)}m=l=null;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d))if(l=Number(uA(b,"audioSamplingRate")),m=Number(uA(b.getElementsByTagName("AudioChannelConfiguration")[0],"value")),n=Hga(uA(b,jC(a,"spatialAudioType"))),l=new fB(l,m,n),m=uA(b,"lang")||"und",n=vA(b,"Role")){var r=uA(n,"value")||"";Mb(kC,r)?(n=m+"."+kC[r],p="main"===r,a=uA(b,jC(a,"langName"))||m+" - "+r,m=new sB(a,n,p)):m=null}else m=null;a=null;if(n=vA(b,"ContentProtection"))if("http://youtube.com/drm/2012/10/10"!==
n.getAttribute("schemeIdUri"))a=null;else{b={};for(a=n.firstChild;null!=a;a=a.nextSibling)a instanceof Element&&/SystemURL/.test(a.nodeName)&&(n=a.getAttribute("type"),p=a.textContent,n&&p&&(b[n]=p.trim()));a=b}return new lB(c,d,l,h,m,a,e,f)};
Gga=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}};
Hga=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}};
nC=function(a,b){b=void 0===b?"":b;a.state=1;a.va=(0,g.N)();return g.um(yga(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.withCredentials}).then(function(c){if(!a.Ha()){a.X=c.status;c=c.responseText;var d=new DOMParser;c=kd(d,ag(c),"text/xml").getElementsByTagName("MPD")[0];a.L=1E3*wA(uA(c,"minimumUpdatePeriod"))||Infinity;if(!a.Ca){b:{if(c.attributes){d=g.q(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];
break b}}d=""}a.Da=d}a.isLive=Infinity>a.L&&a.isLivePlayback;a.Aa=Number(uA(c,jC(a,"earliestMediaSequence")))||0;if(d=Date.parse(xA(uA(c,jC(a,"mpdResponseTime")))))a.Y=(g.Ta()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Xg(c.getElementsByTagName("Period"),a.HS,a);a.state=2;a.V("loaded");mC(a)}return a}),function(c){if(c instanceof Ft){var d=c.xhr;
a.X=d.status}a.state=3;a.V("loaderror");return om(d)})};
Iga=function(a,b,c){return nC(new ZB(a,b,c),a)};
oC=function(a){return a.isLive&&(0,g.N)()-a.va>=a.L};
mC=function(a){var b=a.L;isFinite(b)&&(oC(a)?a.refresh():(b=Math.max(0,a.va+b-(0,g.N)()),a.B||(a.B=new g.J(a.refresh,b,a),g.H(a,a.B)),a.B.start(b)))};
Jga=function(a){a=a.i;for(var b in a){var c=a[b].index;if(c.xd())return c.uc()+1}return 0};
qC=function(a){if(a.isManifestless&&a.I&&pC(a))return pC(a);a=a.i;var b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.xd()&&(f.I&&(b=!0),h=h.Qm(),f.info.isAudio()&&(isNaN(c)||h<c)?c=h:f.info.isVideo()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
pC=function(a){return a.J&&a.l?a.J-a.l:0};
rC=function(a){if(!isNaN(a.ra))return a.ra;var b=a.i,c;for(c in b){var d=b[c].index;if(d.xd()){b=0;for(c=d.ij();c<=d.uc();c++)b+=d.getDuration(c);b/=d.Wq();b=.5*Math.round(b/.5);d.Wq()>a.Ga&&(a.ra=b);return b}if(a.isLive&&(d=b[c],d.Ri))return d.Ri}return NaN};
Kga=function(a,b){a=Pb(a.i,function(d){return d.index.xd()});
if(!a)return NaN;a=a.index;var c=a.zi(b);return a.Xf(c)===b?b:c<a.uc()?a.Xf(c+1):NaN};
Lga=function(a,b){g.Cb(a.i,function(c){g.Cb(b,function(d,e){var f=c.l;f.i.set(e,d);f.B.set(e,d);f.u&&f.u.set(e,d)})})};
Mga=function(a,b){if(!a.i["0"]){var c=new lB("0","fakesb",void 0,new hB(0,0,0,void 0,void 0,"auto"),null,null,1);a.i["0"]=b?new tA(new Dy("http://www.youtube.com/videoplayback"),c,"fake"):new dB(new Dy("http://www.youtube.com/videoplayback"),c,new aA(0,0),new aA(0,0),0,NaN)}};
sC=function(a,b,c){for(var d in a.i){var e=qB(a.i[d].info.mimeType)||a.i[d].info.isVideo();if(c===e){e=a.i[d].index;var f=AA(e,b);0<=f&&e.segments.splice(f,1)}}};
jC=function(a,b){return a.Ca?"yt:"+b:a.Da+":"+b};
Nga=function(a){return g.cb(Object.values(a.i),function(b){return b.info.Be&&b.info.video?480<b.info.video.i&&"H"===b.info.i:!1})};
uC=function(){this.u=this.i=0;this.l=Array.from({length:tC.length}).fill(0)};
Oga=function(a,b,c){c=void 0===c?1:c;a.i+=c;a.u+=b;var d=b/c;tC.forEach(function(e,f){d<e||(a.l[f]+=c)})};
vC=function(){};
wC=function(a){this.name=a;this.startTimeMs=(0,g.N)();this.i=!1};
xC=function(){this.profiles=new vC};
yC=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new uC),Oga(a.profiles[b],c,d))};
zC=function(){};
AC=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
Pga=function(){this.Tb=this.u=this.Aa=this.X=this.W=this.va=this.Ca=this.Ra=this.Ma=!1;this.I=this.C=0;this.Xa=!1;this.Sa=!0;this.Ya=!1;this.J=0;this.Db=!1;this.tb=Infinity;this.xc=!1;this.Wb=!0;this.Ga=this.Da=!1;this.l={};this.ub=this.i=this.ra=!1;this.B=this.L=null;this.ib=this.Y=!1};
yy=function(a){if(a.Ra)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Db&&(b.unshift("1"),b.unshift("1h"));a.u&&b.unshift("h");a.L&&b.unshift(a.L);return b};
ty=function(a){var b=["o","a","A"];a.va&&(b=["m","M"].concat(b));a.W&&(b=["mac3","MAC3"].concat(b));a.X&&(b=["meac3","MEAC3"].concat(b));a.Ma&&(b=["so","sa"].concat(b));!a.Tb||a.Aa||a.B||b.unshift("a");a.Ca&&b.unshift("ah");a.B&&b.unshift(a.B);return b};
DC=function(a,b,c){b=void 0===b?{}:b;if(qy(a.B,ry.AV1_CODECS)&&qy(a.B,ry.HEIGHT)&&qy(a.B,ry.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=BC();if(d)return b.localPref=d}catch(f){}d=g.T(a.experiments,"html5_av1_thresh");var e=g.T(a.experiments,"html5_av1_thresh_lcc");e&&2>=navigator.hardwareConcurrency&&(d=e);(e=g.T(a.experiments,"html5_av1_thresh_hcc"))&&4<navigator.hardwareConcurrency&&(d=e);b.coreCount=navigator.hardwareConcurrency;(a=g.T(a.experiments,"html5_av1_thresh_arm"))&&eq()&&(b.isArm=
1,d=a);if(c){if((a=c.videoInfos.find(function(f){return oB(f)}))&&a.B)return d=8192,b.av1Threshold=d;
c=c.videoInfos[0].video;a=Math.min(CC("1",c.fps),CC("1",30));b.perfCap=a;d=Math.min(d,a);c.isHdr()&&(b.hdr=1,d*=.75)}else c=CC("1",30),b.perfCap30=c,d=Math.min(d,c),c=CC("1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
FC=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.u=c;this.experiments=d;this.i={};this.l=this.keySystemAccess=null;this.I=this.J=-1;this.B=null;this.C="";this.L=!!d&&g.S(d,"edge_nonprefixed_eme");this.C=d?g.EC(d,"html5_hdcp_probing_stream_url"):""};
HC=function(a){return a.L?!1:!a.keySystemAccess&&!!GC()&&"com.microsoft.playready"===a.keySystem};
IC=function(a){return"com.microsoft.playready"===a.keySystem};
JC=function(a){return g.Ls&&"com.microsoft.playready"===a.keySystem&&!!navigator.requestMediaKeySystemAccess};
KC=function(a){return!a.keySystemAccess&&!!GC()&&"com.apple.fps.1_0"===a.keySystem};
LC=function(a){return"com.youtube.fairplay"===a.keySystem};
g.MC=function(a){return"fairplay"===a.flavor};
GC=function(){var a=window,b=a.MSMediaKeys;kq()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
OC=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.wB&&!g.fq())return An("45");if(g.Ls||g.we)return g.S(a,"edge_nonprefixed_eme");if(g.NC)return An("47");if(g.es){if(g.S(a,"html5_enable_safari_fairplay"))return!1;if(a=g.T(a,"html5_safari_desktop_eme_min_version"))return An(a)}return!0};
Qga=function(a,b,c,d){var e=gq(),f=(c=e||c&&kq())?["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.ma(f),g.ma(PC.playready)):[].concat(g.ma(PC.playready),g.ma(f))};
QC=function(a,b,c,d,e){d=void 0===d?!1:d;g.F.call(this);this.experiments=b;this.useCobaltWidevine=d;this.Ua=e;this.i=[];this.l={};this.B={};this.callback=null;this.C=!1;this.u=[];this.initialize(a,!c);this.Z()};
Sga=function(a,b){a.callback=b;a.u=[];OC(a.experiments)?RC(a):Rga(a)};
RC=function(a){if(!a.Ha())if(0===a.i.length)a.callback(a.u);else{var b=a.i[0],c=a.l[b],d=Tga(a,c);a.Z();navigator.requestMediaKeySystemAccess(b,d).then(yo(function(e){if(!a.Ha()){a.Z();c.keySystemAccess=e;if(IC(c)){e=tB();for(var f=g.q(Object.keys(a.B[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.i[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.q(e.audioCapabilities),h=f.next();!h.done;h=f.next())SC(a,c,h.value);if(e.videoCapabilities)for(e=
g.q(e.videoCapabilities),f=e.next();!f.done;f=e.next())SC(a,c,f.value)}a.u.push(c);a.ea("html5_drm_fallback_to_playready_on_retry")||a.useCobaltWidevine?(a.i.shift(),RC(a)):a.callback(a.u)}}),yo(function(){a.Z();
a.C=!a.C&&"widevine"===a.l[a.i[0]].flavor;a.C||a.i.shift();RC(a)}))}};
SC=function(a,b,c){a.ea("log_robustness_for_drm")?b.i[c.contentType]=c.robustness||!0:b.i[c.contentType]=!0};
Tga=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};IC(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.q(Object.keys(a.B[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.C?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.ea("html5_enable_cobalt_experimental_vp9_decoder")&&
e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.ea("html5_query_sw_secure_crypto_for_android")&&(qq()||dq())&&(a.Ua("swcrypto","1"),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
Rga=function(a){if(GC()&&g.es)a.Z(),a.u.push(new FC("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=Uga(),c=g.cb(a.i,function(d){var e=a.l[d],f=!1,h=!1,l;for(l in a.B[e.flavor])b(l,d)&&(e.i[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c?(a.Z(),a.u.push(a.l[c])):a.Z();a.i=[]}a.callback(a.u)};
Uga=function(){var a=GC();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=tB();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
Vga=function(){this.i=0};
Wga=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Dp(b||"","&");var c={};g.zb(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.S=function(a,b){return"true"===a.flags[b]};
g.T=function(a,b){return Number(a.flags[b])||0};
g.EC=function(a,b){return(a=a.flags[b])?a.toString():""};
TC=function(a,b,c){this.experiments=a;this.X=b;this.Y=void 0===c?!1:c;this.I=!!g.Ja("cast.receiver.platform.canDisplayType");this.C={};this.L=!1;this.i=new Map;this.J=!0;this.B=!g.S(this.experiments,"html5_disable_protected_hdr");this.l=!1;this.W=g.S(this.experiments,"html5_disable_vp9_encrypted");a=g.Ja("cast.receiver.platform.getValue");this.u=!this.I&&a&&a("max-video-resolution-vpx")||null};
my=function(a,b,c){c=void 0===c?1:c;var d=b.yc();if("0"===d||g.S(a.experiments,"html5_use_media_capability")&&b.isSupported)return!0;var e=b.mimeType;if(oB(b)&&a.L)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(qy(a,ry.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if("338"===d&&!(g.wB?An(53):g.NC&&An(64)))return"dopus";var f=c;f=void 0===f?1:f;c=
{};b.video&&(b.video.width&&(c[ry.WIDTH.name]=b.video.width),b.video.height&&(c[ry.HEIGHT.name]=b.video.height),b.video.fps&&(c[ry.FRAMERATE.name]=b.video.fps*f),b.video.l&&(c[ry.EOTF.name]=b.video.l),b.l&&(c[ry.BITRATE.name]=8*b.l*f),"("===b.i&&(c[ry.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(c[ry.DECODETOTEXTURE.name]="true");b.audio&&b.audio.i&&(c[ry.CHANNELS.name]=b.audio.i);a.l&&mB(b)&&(c[ry.EXPERIMENTAL.name]="allowed");
f=g.q(Object.keys(ry));for(var h=f.next();!h.done;h=f.next()){h=ry[h.value];var l;if(l=c[h.name])(l=h===ry.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=g.S(a.experiments,"html5_ignore_h264_framerate_cap")&&h===ry.FRAMERATE&&("H"===l.i||"h"===l.i)),l=!(l||h===ry.DECODETOTEXTURE&&!g.S(a.experiments,"html5_decode_to_texture_cap"));if(l)if(qy(a,h))if(a.u){if(a.u[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(nB(b)&&h===ry.EOTF)return"dvp92"}!g.S(a.experiments,"disable_html5_cast_hdcp_filter2")&&
a.I&&b.video&&1080<b.video.i&&b.Be&&(e+="; hdcp=2.2");return"227"!==d||g.S(a.experiments,"html5_enable_1080p_hq_cenc")?"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||g.S(a.experiments,"html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc":"hqcenc"};
UC=function(){var a=dq()&&!An(29),b=cq("google tv")&&cq("chrome")&&!An(30),c=gq();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
VC=function(a,b,c){var d=480;b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,!(1080<e.video.i)&&my(a,e,c)){d=e.video.i;break}return d};
g.WC=function(a,b){b=void 0===b?!1:b;return UC()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(tB(),"application/x-mpegURL")?!0:!1};
qy=function(a,b){b.name in a.C||(a.C[b.name]=Xga(a,b));return a.C[b.name]};
Xga=function(a,b){if(a.u)return!!a.u[b.name];if(b===ry.BITRATE&&g.S(a.experiments,"html5_ignore_bad_bitrates")&&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===ry.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)};
XC=function(){g.P.call(this);this.items={}};
Yga=function(a,b){this.encryptedClientKey=b;this.i=new Uint8Array(a.buffer,0,16);this.l=new Uint8Array(a.buffer,16)};
YC=function(a){try{return g.$e(a)}catch(b){return null}};
Zga=function(a,b){this.onesieUstreamerConfig=null;if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?YC(b.clientKey):null;var c=b.encryptedClientKey?YC(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.N)():null;a&&c&&d&&(this.i=new Yga(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=YC(b.onesieUstreamerConfig));this.baseUrl=b.baseUrl}};
ZC=function(a){this.i=this.l=0;this.alpha=Math.exp(Math.log(.5)/a)};
aD=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.l=!1;this.B=!0;this.i=Math.round(a*this.resolution);this.values=Array(this.i);for(a=0;a<this.i;a++)this.values[a]=Infinity;this.I=$C(this);this.u=c;this.C=d};
$C=function(a){for(var b=Array(a.i),c=0;c<a.i;c++)b[c]=c;return b};
bD=function(a,b){if(!a.l&&0===a.valueIndex)return 0;a.B&&(g.wb(a.I,function(c,d){return a.values[c]-a.values[d]}),a.B=!1);
return a.values[a.I[Math.round(b*((a.l?a.i:a.valueIndex)-1))]]||0};
aha=function(a){var b=new Vga;this.policy=a;this.X=b;this.L=this.Y=0;this.B=-1;this.I=this.J=cD();this.C=new aD(4,1,.6,.4);this.i=new aD(10,1,.5,.4);this.l=a.i?new ZC(a.l):new aD(a.l,20,.5,.4);this.W=new aD(5,1,.25);this.u=new aD(30,1,.5);a=$ga();this.l.ji(this.policy.B,0<a.byterate?a.byterate:this.policy.u);0<a.delay&&this.C.ji(1,Math.min(+a.delay,2));0<a.stall&&this.i.ji(1,+a.stall);0<a.init&&(this.I=Math.min(a.init,this.I));this.B=cD()};
dD=function(a,b,c,d,e,f){f=void 0===f?!1:f;a.W.ji(b,c/b);f||(a.J=cD());e||a.u.ji(1,b-d)};
eD=function(a){a=a.C.Ng();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
fD=function(a,b,c){isNaN(c)||(a.L+=c);isNaN(b)||(a.Y+=b)};
gD=function(a){a=a.l.Ng();return 0<a?a:1};
hD=function(a){var b=gD(a);b=1/((a.i.Ng()||0)+1/b);a=a.W.Ng();return Math.max(b,0<a?a:1)};
iD=function(a){return{delay:eD(a),stall:a.i.Ng()||0,byterate:gD(a),init:a.I}};
kD=function(a){-1<a.B&&3E4<cD()-a.B&&(jD(iD(a)),a.B=cD())};
lD=function(a){return 4E3<=cD()-a.J};
bha=function(){this.l=17;this.u=13E4;this.B=.5;this.i=!1};
nD=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.F.call(this);var c=this;this.values=a;this.Kl=b;this.l={};this.u=this.i=0;this.B=new g.J(function(){mD(c)},1E4);
g.H(this,this.B)};
pD=function(a,b){oD(a,b);return a.values[b]&&a.Kl[b]?a.values[b]/Math.pow(2,a.i/a.Kl[b]):0};
oD=function(a,b){a.values[b]||(b=qD(),a.values=b.values||{},a.Kl=b.halfLives||{},a.l=b.values?Object.assign({},b.values):{})};
mD=function(a){var b=qD();if(b.values){b=b.values;for(var c={},d=g.q(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.l[e]&&(a.values[e]+=b[e]-a.l[e]),c[e]=pD(a,e);a.l=c}cha(a.l,a.Kl)};
U=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
rD=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
sD=function(a,b){return void 0===b||null===b?a:Number(b)};
tD=function(a,b){return void 0===b||null===b?a:b.toString()};
uD=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(dha))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
vD=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.Qo("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
VD=function(a,b,c){var d,e;g.F.call(this);this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Qd=this.Fc=this.Ec=this.Bd=this.userDisplayName=this.userDisplayImage="";this.deviceParams={};this.controlsType="0";this.pe=NaN;this.Wb=!1;this.Ra=0;this.Bg=this.Pc=this.Rg=this.Xk=!1;a=a?g.Ub(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.experiments=new Wga(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:
a.fflags);this.Sa=b?b.serializedForcedExperimentIds:tD("",a.forced_experiments)||void 0;this.cspNonce=(null===b||void 0===b?0:b.cspNonce)&&!this.ea("fill_csp_nonce_from_wpcc_killswitch")?b.cspNonce:tD("",a.csp_nonce);ew=this.ea("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(y){f=""}this.Gc=f;this.td=(f=window.location.ancestorOrigins)?Array.from(f):[];f=!this.ea("web_player_context_config_embeds_fields_killswitch");this.l=U(!1,b&&f?b.isEmbed:a.is_embed);if(b&&
b.device){var h=b.device;h.brand&&(this.deviceParams.cbrand=h.brand);h.browser&&(this.deviceParams.cbr=h.browser);h.browserVersion&&(this.deviceParams.cbrver=h.browserVersion);this.deviceParams.c=h.interfaceName||"WEB";this.deviceParams.cver=h.interfaceVersion||"html5";h.interfaceTheme&&(this.deviceParams.ctheme=h.interfaceTheme);this.deviceParams.cplayer=h.interfacePlayerType||"UNIPLAYER";h.model&&(this.deviceParams.cmodel=h.model);h.network&&(this.deviceParams.cnetwork=h.network);h.os&&(this.deviceParams.cos=
h.os);h.osVersion&&(this.deviceParams.cosver=h.osVersion);h.platform&&(this.deviceParams.cplatform=h.platform)}else this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER";b&&!this.ea("wpcc_loader_url_killswitch")?this.loaderUrl=this.l||wD(this)&&b.loaderUrl?b.loaderUrl||"":this.Gc:this.loaderUrl=this.l||wD(this)&&a.loaderUrl?tD("",a.loaderUrl):this.Gc;this.u=fw(this.loaderUrl,eha,fha);h=this.loaderUrl;var l=void 0===l?!1:l;this.hk=dw(fw(h,gha,null),
h,l,"Trusted Ad Domain URL");this.Da=U(!1,a.privembed);this.protocol=0===this.Gc.indexOf("http:")?"http":"https";this.va=hw((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||hw(this.Gc)||this.protocol+"://www.youtube.com/";l=b?b.eventLabel:a.el;h="detailpage";"adunit"===l?h=this.l?"embedded":"detailpage":"embedded"===l||this.u?h=rD(h,l,hha):l&&(h="embedded");this.Ca=h;xp();l=null;h=b?b.playerStyle:a.ps;var m=g.fb(xD,h);!h||m&&!this.u||(l=h);this.playerStyle=l;this.J=(this.I=g.fb(xD,this.playerStyle))&&
"area120-boutique"!==this.playerStyle&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Zj=!this.J;this.ra=U(!1,a.disableplaybackui);this.Jc=this.ea("variable_playback_rate")&&this.ea("enable_vsp")?!0:tB().defaultPlaybackRate?yD||g.pq||zD?g.NC&&An("20")||g.wB&&An("4")||g.gg&&An("11")||lq():!(g.gg&&!cq("chrome")||yD||cq("android")||cq("silk")):!1;this.Vj=U(!1,a.enable_faster_speeds);this.i=U("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.i?l=!this.I:(l=
Number(Date.now()/1E3),h=g.Wq.getInstance(),l=this.ea("block_desktop_background_playback_with_mobile_cookie")&&h&&l>Number(h.get("dhmu",l.toString())));this.Yj=l;this.tb="3"===this.controlsType||this.i||U(!1,a.use_media_volume);this.X=zB();this.ll=g.AD;this.Rh=U(!1,b&&f?b.embedOptOutDeprecation:a.opt_out_deprecation);this.pfpChazalUi=U(!1,(b&&f?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.ea("embeds_pfp_chazal_ui_killswitch"));var n;b?void 0!==b.hideInfo&&(n=!b.hideInfo):n=a.showinfo;this.Si=g.BD(this)&&
!this.Rh||U(!CD(this)&&!DD(this)&&!this.I,n);this.Ii=b?!!b.mobileIphoneSupportsInlinePlayback:U(!1,a.playsinline);n=this.i&&ED&&null!=FD&&0<FD&&2.3>=FD;l=b?b.useNativeControls:a.use_native_controls;h=this.i&&!this.ea("embeds_enable_mobile_custom_controls");l=GD(this)||!n&&U(h,l)?"3":"1";h=b?b.controlsType:a.controls;this.controlsType="0"!==h&&0!==h?l:"0";this.ld=this.i;this.color=rD("red",b&&f?b.progressBarColor:a.color,iha);this.lk="3"===this.controlsType||U(!1,b&&f?b.embedsShowModestBranding:a.modestbranding)&&
"red"===this.color;this.Ya=!this.l;this.Vi=(l=!this.Ya&&!DD(this)&&!this.J&&!this.I&&!CD(this))&&!this.lk&&"1"===this.controlsType;this.Tb=g.HD(this)&&l&&"0"===this.controlsType&&!this.Vi;this.rl=this.il=n;this.Mj=ID&&!g.Xd(601)?!1:!0;this.Xj=this.l||!1;this.Xa=DD(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=tD("",b&&f?b.widgetReferrer:a.widget_referrer);var p;b&&f?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.u||U(!0,p);n=!0;b&&b.disableMdxCast&&
(n=!1);this.sf=this.ea("enable_cast_for_web_unplugged")&&g.JD(this)&&n||p&&n&&"1"===this.controlsType&&!this.i&&(DD(this)||g.HD(this)||g.KD(this))&&!g.LD(this)&&!MD(this);this.ql=xB()||yB();p=b?!!b.supportsAutoplayOverride:U(!1,a.autoplayoverride);this.Xc=!this.i&&!cq("nintendo wiiu")&&!cq("nintendo 3ds")||p;p=b?!!b.enableMutedAutoplay:U(!1,a.mutedautoplay);n=this.ea("embeds_enable_muted_autoplay")&&g.BD(this);this.kd=p&&n&&this.X&&!GD(this);p=(DD(this)||CD(this))&&"blazer"===this.playerStyle;this.Kf=
b?!!b.disableFullscreen:!U(!0,a.fs);this.Ma=!this.Kf&&(p||Ut());this.xg=this.ea("uniplayer_block_pip")&&(dq()&&An(58)&&!qq()||nq);p=g.BD(this)&&!this.Rh;var r;b?void 0!==b.disableRelatedVideos&&(r=!b.disableRelatedVideos):r=a.rel;this.Db=p||U(!this.I,r);this.Mi=U(!1,b&&f?b.enableContentOwnerRelatedVideos:a.co_rel);this.C=qq()&&0<FD&&4.4>=FD?"_top":"_blank";this.Wc=g.KD(this);this.Rf=U("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":r="bl";break;
case "gmail":r="gm";break;case "books":r="gb";break;case "docs":r="gd";break;case "duo":r="gu";break;case "google-live":r="gl";break;case "google-one":r="go";break;case "play":r="gp";break;case "chat":r="hc";break;case "hangouts-meet":r="hm";break;case "photos-edu":case "picasaweb":r="pw";break;default:r="yt"}this.Y=r;this.W=tD("",b&&f?b.authorizedUserIndex:a.authuser);var t;b?void 0!==b.disableWatchLater&&(t=!b.disableWatchLater):t=a.showwatchlater;this.Rj=(this.l&&!this.Da||!!this.W)&&U(!this.J,
this.u?t:void 0);this.He=b?!!b.disableKeyboardControls:U(!1,a.disablekb);this.loop=U(!1,a.loop);this.pageId=tD("",!this.ea("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.ol=U(!0,a.canplaylive);this.Yk=U(!1,a.livemonitor);this.disableSharing=U(this.I,b?b.disableSharing:a.ss);(t=b&&this.ea("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(r=t.split("x"),2!==r.length?t=null:(t=Number(r[0]),r=Number(r[1]),t=isNaN(t)||isNaN(r)||
0>=t*r?null:new g.ee(t,r))):t=null;this.Pj=t;this.mute=b?!!b.startMuted:U(!1,a.mute);this.Sf=!this.mute&&U("0"!==this.controlsType,a.store_user_volume);t=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:rD(void 0,t,ND);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":tD("",a.cc_lang_pref);t=rD(2,b&&f?b.captionsLanguageLoadPolicy:a.cc_load_policy,ND);"3"===this.controlsType&&2===t&&(t=3);this.Ga=t;this.Ad=b?b.hl||"en_US":tD("en_US",a.hl);
this.region=b?b.contentRegion||"US":tD("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":tD("en",a.host_language);this.Tj=!this.Da&&Math.random()<g.T(this.experiments,"web_player_api_logging_fraction");this.Aa=!this.Da;this.enabledEngageTypes=new Set;this.deviceHasDisplay=b?!b.deviceIsAudioOnly:U(!0,a.deviceHasDisplay);this.pe=sD(this.pe,a.ismb);t=a;g.EC(this.experiments,"html5_qoe_intercept")?t=g.EC(this.experiments,"html5_qoe_intercept"):this.Zj?(t=t.vss_host||"s.youtube.com",this.ea("www_for_videostats")&&
"s.youtube.com"===t&&(t=OD(this.va)||"www.youtube.com")):t="video.google.com";this.Qj=t;PD(this,a,!0);this.L=new XC;g.H(this,this.L);t=b?b.innertubeApiKey:tD("",a.innertube_api_key);r=b?b.innertubeApiVersion:tD("",a.innertube_api_version);p=b?b.innertubeContextClientVersion:tD("",a.innertube_context_client_version);this.Mf={innertubeApiKey:uo("INNERTUBE_API_KEY")||t,innertubeApiVersion:uo("INNERTUBE_API_VERSION")||r,cH:g.M("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),dH:this.deviceParams.c,innertubeContextClientVersion:uo("INNERTUBE_CONTEXT_CLIENT_VERSION")||
p,fH:this.hostLanguage,eH:this.region,gH:uo("INNERTUBE_HOST_OVERRIDE")||"",iH:!!g.M("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),hH:!!g.M("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Ji=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.B=new TC(this.experiments,this.ea("html5_force_hfr_support")?!0:QD(this)||hq()||iq()||RD(this),g.wB&&g.Xd(56)||g.NC&&g.Xd(54)||RD(this));t=this.pe;r=this.experiments;p=new bha;g.SD(this)&&(p.i=!0,p.B=.1);g.S(r,"html5_pctile_bandwidth_estimator")&&(p.i=
!1);t&&(p.u=t/8);this.schedule=new aha(p);this.enableSafetyMode=null!==(d=null===b||void 0===b?void 0:b.initialEnableSafetyMode)&&void 0!==d?d:U(!1,a.enable_safety_mode);t=this.ra?!1:DD(this)&&"blazer"!==this.playerStyle;var u;b&&f?null!=b.disableAutonav&&(u=!b.disableAutonav):u=a.allow_autonav;this.xc=U(t,!this.J&&u);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:U(!1,a.send_visitor_id_header);this.ib=(0,g.N)();var x;"docs"===this.playerStyle&&(b&&f?x=b.disableNativeContextMenu:x=a.disable_native_context_menu);
this.disableNativeContextMenu=U(!1,x);this.Wj=QD(this)&&this.ea("enable_skip_intro_button");this.embedConfig=tD("",b&&f?b.serializedEmbedConfig:a.embed_config);this.Lf=U(!1,a.full_window);this.ub=!g.JD(this)&&!TD(this)&&!g.LD(this)&&!MD(this)&&!0;this.livingRoomAppMode=rD("LIVING_ROOM_APP_MODE_UNSPECIFIED",b?null===(e=b.device)||void 0===e?void 0:e.livingRoomAppMode:a.living_room_app_mode,UD);this.transparentBackground=b?!!b.transparentBackground:U(!1,a.transparent_background);this.useFastSizingOnWatchDefault=
U(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default);this.showMiniplayerButton=b?!!b.showMiniplayerButton:U(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:U(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:U(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=U(!1,a.showbackbutton);this.jk=1E-4>Math.random();this.Pf=a.onesie_hot_config||(null===b||void 0===
b?0:b.onesieHotConfig)?new Zga(a.onesie_hot_config,null===b||void 0===b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.ea("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;this.jl=c;this.Kc=new nD;g.H(this,this.Kc);this.Bg=U(!1,a.force_gvi);Os=this.datasyncId=(null===b||void 0===b?void 0:b.datasyncId)||g.M("DATASYNC_ID",void 0);this.Sj=(null===b||void 0===b?void 0:b.allowWoffleManagement)||!1;this.wg=0};
PD=function(a,b,c){c=void 0===c?!1:c;a.Fc=tD(a.Fc,b.video_id);a.Ec=tD(a.Ec,b.eventid);for(var d=[],e=g.q(Object.keys(WD)),f=e.next();!f.done;f=e.next()){f=WD[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0<d.length&&a.jk&&(d.sort(),g.qt(new g.Zr("Player client parameters changed after startup",d)));a.userAge=sD(a.userAge,b.user_age);a.userDisplayImage=tD(a.userDisplayImage,b.user_display_image);g.jw(a.userDisplayImage)||(a.userDisplayImage="");a.userDisplayName=
tD(a.userDisplayName,b.user_display_name);a.Bd=tD(a.Bd,b.user_gender);a.csiPageType=tD(a.csiPageType,b.csi_page_type);a.csiServiceName=tD(a.csiServiceName,b.csi_service_name);a.Rf=U(a.Rf,b.enablecsi);a.pageId=tD(a.pageId,b.pageid);if(b=b.enabled_engage_types)a.enabledEngageTypes=new Set(b.split(","))};
XD=function(a,b){return!a.I&&dq()&&An(55)&&"3"===a.controlsType&&!b};
g.YD=function(a){a=OD(a.va);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.ZD=function(a){return g.LD(a)?"music.youtube.com":g.YD(a)};
$D=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
aE=function(a){return DD(a)&&!g.JD(a)};
GD=function(a){return ID&&!a.Ii||cq("nintendo wiiu")||cq("nintendo 3ds")?!0:!1};
MD=function(a){return"area120-boutique"===a.playerStyle};
g.LD=function(a){return"music-embed"===a.playerStyle};
g.SD=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform};
bE=function(a){return"TVHTML5"===a.deviceParams.c&&a.deviceParams.cver.startsWith("7")};
wD=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c};
RD=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.cE=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
QD=function(a){return"web"===a.deviceParams.c.toLowerCase().substr(0,3)};
g.dE=function(a){return"WEB"===a.deviceParams.c.toUpperCase()};
TD=function(a){return"WEB_KIDS"===a.deviceParams.c};
g.JD=function(a){return"WEB_UNPLUGGED"===a.deviceParams.c};
eE=function(a){return"TVHTML5_UNPLUGGED"===a.deviceParams.c};
g.fE=function(a){return g.JD(a)||"TV_UNPLUGGED_CAST"===a.deviceParams.c||eE(a)};
gE=function(a){return"WEB_REMIX"===a.deviceParams.c};
g.hE=function(a){return"WEB_EMBEDDED_PLAYER"===a.deviceParams.c};
iE=function(a){return"WEB_MUSIC_EMBEDDED_PLAYER"===a.deviceParams.c};
g.jE=function(a){return g.dE(a)&&a.ea("web_player_i_see_captions")};
g.lE=function(a){return(a.deviceHasDisplay&&g.wB&&!nq&&"3"!==a.controlsType?g.pq?a.l&&g.Xd(51):!0:!1)||(a.deviceHasDisplay&&g.NC&&!nq&&"3"!==a.controlsType?g.pq?a.l&&g.Xd(48):g.Xd(38):!1)||(a.deviceHasDisplay&&g.gg&&!nq&&"3"!==a.controlsType?g.pq?a.l&&g.Xd(37):g.Xd(27):!1)||a.deviceHasDisplay&&g.kE&&!mq()&&g.Xd(11)||a.deviceHasDisplay&&g.es&&g.Xd("604.4")};
jha=function(a){if(g.HD(a)&&ED)return!1;if(g.NC){if(!g.Xd(47)||!g.Xd(52)&&g.Xd(51))return!1}else if(g.es)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
DD=function(a){return"detailpage"===a.Ca};
g.HD=function(a){return"embedded"===a.Ca};
mE=function(a){return"leanback"===a.Ca};
CD=function(a){return"adunit"===a.Ca||"gvn"===a.playerStyle};
g.KD=function(a){return"profilepage"===a.Ca};
g.BD=function(a){return a.l&&g.HD(a)&&!CD(a)&&!a.I};
nE=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.qt(new g.Zr("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.oE=function(a){var b=g.ZD(a);!a.ea("yt_embeds_disable_new_error_lozenge_url")&&kha.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
OD=function(a){var b=g.xd(a);return(a=Number(g.wd(4,a))||null)?b+":"+a:b};
pE=function(a){this.i=a};
qE=function(a,b,c){if(c)return Jt();var d={};c=tB();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.Uf().mimeType)){var f=e.i.Za().quality;if(!d[f]||d[f].Uf().Ne())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.zb(iB,function(l){(l=d[l])&&h.push(l)});
return h.length?Kt(h):Jt()};
rE=function(a,b,c){this.u=a;this.l=b;this.cpn=c;this.B=0;this.i=""};
GE=function(a,b,c){a.cpn&&(b=g.Id(b,{cpn:a.cpn}));c&&(b=g.Id(b,{y6:c}));return b};
HE=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
lha=function(a){for(var b=[],c=[],d=g.q(a.l),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.B?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.l=b.concat(c)};
mha=function(a,b,c,d,e,f,h,l,m,n,p,r){this.itag=a;this.url=b;this.codecs=c;this.width=d;this.height=e;this.fps=f;this.bitrate=h;this.i=void 0===p?null:p;this.audioChannels=r;this.B=(null===l||void 0===l?void 0:l.split(","))||[];this.u=m||null;this.Be=n||"";this.l=""};
IE=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!0:c;var d={};a=g.q(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var f=e.type;e.audio_channels&&(f=f+"; channels="+e.audio_channels);if(!MediaSource.isTypeSupported(f))continue}if(c||!e.drm_families||"smpte2084"!==e.eotf&&"arib-std-b67"!==e.eotf){f={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"};var h=e.type.match(/codecs="([^"]*)"/);h=h?h[1]:"";var l=null;e.audio_track_id&&(l=new sB(e.name,
e.audio_track_id,!!e.is_default));var m=e.eotf;e=new mha(e.itag,e.url,h,+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,m?f[m]:void 0,e.drm_families,l,+e.audio_channels);d[e.itag]=d[e.itag]||[];d[e.itag].push(e)}}return d};
JE=function(a,b,c){this.i=a;this.u=b;this.expiration=c;this.l=null};
nha=function(a,b){if(!(nq||kq()||gq()))return null;a=IE(b,g.S(a.experiments,"html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.q(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.q(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.i&&(f=h.i.getId(),c[f]||(h=new cy(f,h.i),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
rha=function(a,b,c,d,e){if(!(nq||kq()||gq()))return Jt();var f=oha(c);c=IE(c,g.S(a.experiments,"html5_filter_fmp4_in_hls"),a.B.B);if(!c)return Jt();g.S(a.experiments,"html5_filter_video_m2ts_in_hls_killswitch")||pha(c);var h={},l=(h.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",h);h=[];for(var m=[],n=[],p=null,r="",t=g.q(Object.keys(c)),u=t.next();!u.done;u=t.next())if(u=u.value,!g.S(a.experiments,"html5_disable_drm_hfr_1080")||"383"!==u&&"373"!==u){u=g.q(c[u]);for(var x=u.next();!x.done;x=
u.next())if(x=x.value,x.width){var y=g.q(x.B);for(var E=y.next();!E.done;E=y.next())if(E=E.value,c[E]){x.l=E;break}x.l||(x.l=qha(c,x));if(E=c[x.l]){h.push(x);y="fairplay"===x.Be?l:null;var D="";"PQ"===x.u?D="smpte2084":"HLG"===x.u&&(D="arib-std-b67");D&&(r=D);n.push(KE(E,[x],e,x.itag,x.width,x.height,x.fps,f,void 0,void 0,y,D));if(!p||x.width*x.height*x.fps>p.width*p.height*p.fps)p=x}}else m.push(x)}y=n.reduce(function(G,I){return I.Uf().isEncrypted()&&G},!0)?l:null;
c=p||{};n.push(KE(m,h,e,"93",void 0===c.width?0:c.width,void 0===c.height?0:c.height,void 0===c.fps?0:c.fps,f,"auto",Math.max(d,0),y,r));return qE(a.B,n,XD(a,b))};
KE=function(a,b,c,d,e,f,h,l,m,n,p,r){for(var t=0,u="",x=g.q(a),y=x.next();!y.done;y=x.next())y=y.value,u||(u=y.itag),y.audioChannels&&y.audioChannels>t&&(t=y.audioChannels,u=y.itag);d=new lB(d,"application/x-mpegURL",new fB(0,t,null,u),new hB(e,f,h,null,void 0,m,void 0,r),void 0,p);a=new rE(a,b,c);a.B=n?n:1369843;return new JE(d,a,l)};
oha=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN};
qha=function(a,b){for(var c=g.q(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Be===b.Be&&!e.audioChannels)return d}return""};
pha=function(a){for(var b=new Set,c=g.q(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.q(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.q(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
LE=function(a,b){this.i=a;this.l=b};
sha=function(a,b,c,d){var e=[];c=g.q(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new Dy(h.url,!0);if(h.s){var l=h.sp,m=Cy(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.q(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=rB(h.type,h.quality,h.itag,h.width,h.height);e.push(new LE(h,f))}}return qE(a.B,e,XD(a,b))};
ME=function(a,b){this.i=a;this.l=b};
tha=function(a){var b=[];g.zb(a,function(c){if(c&&c.url){var d=rB(c.type,"medium","0");b.push(new ME(d,c.url))}});
return b};
uha=function(a,b,c){c=tha(c);return qE(a.B,c,XD(a,b))};
NE=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.isHeadless?!1:d.isHeadless;var e=void 0===d.Cr?!1:d.Cr;d=void 0===d.videoDuration?0:d.videoDuration;this.videoId=a;this.status=b;this.isHeadless=c;this.Cr=e;this.videoDuration=d};
OE=function(a){return{videoId:a.videoId,status:a.status,isHeadless:a.isHeadless}};
PE=function(a){if(void 0===a?0:a){if(void 0===Os)throw Error("Datasync ID is not set.");return"yt-player-local-img:"+Ps()}return"yt-player-local-img"};
QE=function(){return"caches"in window?g.A.caches.keys().then(function(a){return Promise.all(a.filter(vha).map(function(b){return g.A.caches.delete(b)})).then(function(b){return b.every(function(c){return c})})}):Promise.resolve(!0)};
vha=function(a){return"yt-player-local-img"===a.split(":")[0]};
RE=function(a,b){return"caches"in window&&a.length?g.A.caches.open(PE(void 0===b?!1:b)).then(function(c){return Promise.all(a.map(function(d){return c.delete(d)}))}).then(function(){return Promise.resolve()}):Promise.resolve()};
SE=function(a,b){return"caches"in window&&fetch&&a.length?g.A.caches.open(PE(void 0===b?!1:b)).then(function(c){return c.addAll(a)}):Promise.resolve()};
UE=function(){void 0===TE&&(TE=g.Sn());return TE};
VE=function(){var a=UE();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
WE=function(a){var b=UE();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
XE=function(){var a=UE();a&&a.remove("yt-player-lv")};
YE=function(a){return VE()[a]||0};
ZE=function(){var a=VE();return Object.keys(a)};
$E=function(a){var b=VE();return Object.keys(b).filter(function(c){return b[c]===a})};
aF=function(a,b){var c=VE();b!==c[a]&&(0!==b?c[a]=b:delete c[a],WE(c))};
wha=function(a){var b=VE();b=Object.assign({},b);a=Object.assign({},a);for(var c in b)a[c]?(4!==b[c]&&(b[c]=a[c]),delete a[c]):3!==b[c]&&2!==b[c]&&(b[c]=4);Object.assign(b,a);WE(b);JSON.stringify(b);return b};
bF=function(a){return!!a&&1===YE(a)};
xha=function(){var a=UE();if(!a)return!1;try{return null!==a.get("yt-player-lv-id")}catch(b){return!1}};
fF=function(){return g.C(this,function b(){var c,d,e;return g.z(b,function(f){switch(f.i){case 1:c=UE();if(!c)return f.return(Promise.reject("No LocalStorage"));if(cF){f.Mb(2);break}d=Ps();e=c.get("yt-player-lv-id");if(!e){c.set("yt-player-lv-id",d);f.Mb(3);break}if(e===d){f.Mb(3);break}return g.w(f,dF(),5);case 5:return g.w(f,QE(),6);case 6:c.set("yt-player-lv-id",d);case 3:cF=!0;case 2:return f.return(eF().open())}})})};
hF=function(a,b){return g.C(this,function d(){var e;return g.z(d,function(f){if(1==f.i)return g.w(f,fF(),2);e=f.l;return f.return(ts(e,["index","media","metadata","playerdata","captions"],"readwrite",function(h){var l=gF(a);l=[vs(h,"index").delete(l),vs(h,"media").delete(l),vs(h,"playerdata").delete(l),vs(h,"captions").delete(l)];b&&l.push(vs(h,"metadata").delete(a));return Vs.all(l).then(function(){})}))})})};
jF=function(){return g.C(this,function b(){var c;return g.z(b,function(d){if(1==d.i)return g.w(d,fF(),2);c=d.l;return d.return(ts(c,["index","media"],"readwrite",function(e){var f={};return As(vs(e,"index"),{},function(h){var l,m=h.getKey().match(/^([\w\-_]+)\|(a|v)$/),n=Vs.resolve(void 0);if(m){var p=m[1];m=m[2];f[p]=f[p]||{};f[p][m]=iF(null===(l=h.getValue())||void 0===l?void 0:l.fmts)}else n=h.delete().then(function(){}),yha("Deleting unexpected index key "+h.getKey());
return Vs.all([h.continue(),n]).then(function(r){return g.q(r).next().value})}).then(function(){for(var h={},l=g.q(Object.keys(f)),m=l.next();!m.done;m=l.next()){m=m.value;
var n=f[m].v;h[m]=f[m].a&&n?1:2}var p=wha(h);return Mea(vs(e,"media"),function(r){var t=r.getKey().match(/^([\w\-_]+)\|(\d+)\|(\d+)$/);t&&h[t[1]]||(vs(e,"media").delete(r.getKey()),r.getKey());return r.continue()}).then(function(){return p})})}))})})};
zha=function(a,b){return g.C(this,function d(){var e,f;return g.z(d,function(h){if(1==h.i)return g.w(h,fF(),2);e=h.l;f={offlineVideoData:b};return g.w(h,ws(e,"metadata",f,a),0)})})};
Aha=function(a,b){var c=Math.floor(Date.now()/1E3);g.C(this,function e(){var f,h;return g.z(e,function(l){if(1==l.i)return JSON.stringify(b.offlineState),f={timestampSecs:c,player:b},g.w(l,fF(),2);h=l.l;return g.w(l,ws(h,"playerdata",f,a),0)})})};
lF=function(a,b,c,d,e,f){return g.C(this,function l(){var m,n,p,r;return g.z(l,function(t){switch(t.i){case 1:return m=YE(a),4===m?t.return(Promise.resolve(4)):g.w(t,fF(),2);case 2:return n=t.l,ua(t,3),g.w(t,ts(n,["index","media"],"readwrite",function(u){if(void 0!==e&&void 0!==f){var x=""+a+"|"+b.id+"|"+e;x=us(vs(u,"media"),f,x)}else x=Vs.resolve(void 0);var y=kF(a,b.isVideo()),E=kF(a,!b.isVideo()),D={fmts:d,format:c||{}};y=us(vs(u,"index"),D,y);var G=iF(d);u=G?vs(u,"index").get(E):Vs.resolve(void 0);
return Vs.all([u,x,y]).then(function(I){I=g.q(I).next().value;var O=YE(a);4!==O&&G&&void 0!==I&&iF(I.fmts)&&(O=1,aF(a,O));return O})}),5);
case 5:return t.return(t.l);case 3:p=wa(t);r=YE(a);if(4===r)return t.return(r);aF(a,4);throw p;}})})};
Bha=function(a){return g.C(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,fF(),2);d=e.l;return e.return(ts(d,["index"],"readonly",function(f){var h=gF(a);return vs(f,"index").getAll(h).then(function(l){return l.map(function(m){return m?m.format:{}})})}))})})};
Cha=function(a,b,c){return g.C(this,function e(){var f;return g.z(e,function(h){if(1==h.i)return g.w(h,fF(),2);f=h.l;return h.return(ts(f,["media"],"readonly",function(l){var m=""+a+"|"+b+"|"+c;return vs(l,"media").get(m)}))})})};
Dha=function(a){return g.C(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,fF(),2);d=e.l;return e.return(ts(d,["playerdata","index"],"readonly",function(f){var h=vs(f,"playerdata").get(a),l=gF(a);return vs(f,"index").getAll(l).then(function(m){return h.then(function(n){if(!n||!n.player)return n;delete n.player.streamingData;if(0===m.length)return n;for(var p=[],r=g.q(m),t=r.next();!t.done;t=r.next())t=t.value,t.format&&p.push(t.format);n.player.streamingData={adaptiveFormats:p};
return n})})}))})})};
Eha=function(a){return g.C(this,function c(){var d,e,f,h;return g.z(c,function(l){return 1==l.i?g.w(l,fF(),2):3!=l.i?(d=l.l,e=[],f=[],h=[],g.w(l,ts(d,["metadata"],"readonly",function(m){return As(vs(m,"metadata"),{},function(n){var p,r,t=n.getKey(),u=null===(p=n.getValue())||void 0===p?void 0:p.offlineVideoData;if(!u)return n.continue();if(t===a){if(t=null===(r=u.thumbnail)||void 0===r?void 0:r.thumbnails){t=g.q(t);for(var x=t.next();!x.done;x=t.next())x=x.value,x.url&&e.push(x.url)}f.push.apply(f,
g.ma(mF(u)))}else h.push.apply(h,g.ma(mF(u)));return n.continue()})}),3)):l.return(e.concat(f.filter(function(m){return!h.includes(m)})))})})};
mF=function(a){var b,c,d,e=null===(d=null===(c=null===(b=a.channel)||void 0===b?void 0:b.offlineChannelData)||void 0===c?void 0:c.thumbnail)||void 0===d?void 0:d.thumbnails;if(!e)return[];a=[];e=g.q(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.url&&a.push(f.url);return a};
oF=function(a){return g.C(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,fF(),2);d=e.l;return e.return(ts(d,["index","metadata"],"readonly",function(f){return nF(f,a)}))})})};
pF=function(){return g.C(this,function b(){var c;return g.z(b,function(d){if(1==d.i)return g.w(d,fF(),2);c=d.l;return d.return(ts(c,["index","metadata"],"readonly",function(e){return Vs.all(ZE().map(function(f){return nF(e,f)}))}))})})};
nF=function(a,b){var c=vs(a,"metadata").get(b),d=gF(b);return vs(a,"index").getAll(d).then(function(e){e=e.map(function(l){return l?l.fmts:""}).join(",");
var f={videoId:b,totalSize:0,downloadedSize:0,status:YE(b),videoData:null};if(e.length){e=Gp(e);e=g.q(e);for(var h=e.next();!h.done;h=e.next())h=h.value,f.totalSize+=+h.mket*+h.avbr,f.downloadedSize+=h.hasOwnProperty("dlt")?(+h.dlt||0)*+h.avbr:+h.mket*+h.avbr}return c.then(function(l){f.videoData=(null===l||void 0===l?void 0:l.offlineVideoData)||null;return f})})};
qF=function(a){return g.C(this,function c(){return g.z(c,function(d){aF(a,0);return d.return(hF(a,!0))})})};
Fha=function(){return g.C(this,function b(){var c;return g.z(b,function(d){c=UE();if(!c)return d.return(Promise.reject("No LocalStorage"));c.remove("yt-player-lv-id");XE();return g.w(d,eF().delete(),0)})})};
dF=function(){return g.C(this,function b(){var c;return g.z(b,function(d){if(1==d.i){c=UE();if(!c)return d.return(Promise.reject("No LocalStorage"));c.remove("yt-player-lv-id");XE();return g.w(d,eF().delete(),2)}return 3!=d.i?g.w(d,Yea(),3):g.w(d,Ss("yt-player-local-media"),0)})})};
iF=function(a){return!!a&&-1===a.indexOf("dlt")};
kF=function(a,b){return""+a+"|"+(b?"v":"a")};
gF=function(a){return IDBKeyRange.bound(a+"|",a+"~")};
yha=function(){};
Gha=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.ustreamerConfig=YC(a.ustreamerConfig))};
g.rF=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.i=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.sF=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("")};
wF=function(a,b,c,d){a||(a=b&&tF.hasOwnProperty(b)&&uF.hasOwnProperty(b)?uF[b]+"_"+tF[b]:void 0);b=a;if(!b)return null;a=b.match(vF);if(!a||5!==a.length)return null;if(a=b.match(vF)){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};
yF=function(a){for(var b={},c=g.q(Object.keys(xF)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[xF[d]];e&&(b[d]=e)}return b};
zF=function(a,b){for(var c={},d=g.q(Object.keys(xF)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.jw(f)&&(c[xF[e]]=f)}return c};
CF=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url});
a.sort(function(l,m){return l.width-m.width||l.height-m.height});
for(var c=g.q(Object.keys(AF)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=AF[e];for(var f=g.q(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=BF(h.url);g.jw(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=BF(a.url),g.jw(a)&&(b["maxresdefault.jpg"]=a));return b};
BF=function(a){return a.startsWith("//")?"https:"+a:a};
DF=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return Hha[a];return null};
EF=function(a){return a&&a.baseUrl||""};
FF=function(a){a=g.Hp(a);for(var b=g.q(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};
GF=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Ma=b)};
Iha=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.q(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=HF(d.baseUrl);if(!e)return;d=new g.rF({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.Aw(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.xz=b.audioTracks||[];a.hF=b.defaultAudioTrackIndex||0;a.jF=b.translationLanguages?g.Oc(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.Aw(f.languageName)}}):
[];
a.ql=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
Jha=function(a,b){b=g.q(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},Fp(h))});
d=g.q(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,Nj:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Nj: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,
Nj:0===f?5:7})}}};
Kha=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
IF=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)};
KF=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=Fp(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=Lha[c]);(c=a.projectionType)&&(b.projection_type=Mha[c]);(c=a.stereoLayout)&&(b.stereo_layout=Nha[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=Oha[c]);if(d=a.drmFamilies){c=[];d=g.q(d);for(var e=d.next();!e.done;e=d.next())c.push(JF[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=DF(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=Pha[a])&&(b.primaries=a);return g.Gd(b)};
LF=function(a){g.P.call(this);this.i=null;this.u=new fo;this.i=null;this.J=new Set;this.C=a||""};
OF=function(a,b,c){for(c=MF(a,c);0<=c;){var d=a.levels[c];if(d.xd(Math.floor(b/(d.columns*d.rows)))&&(d=g.NF(d,b)))return d;c--}return g.NF(a.levels[0],b)};
QF=function(a,b,c){c=MF(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.xd(e)){d=a;var f=c,h=f+"-"+e;d.J.has(h)||(d.J.add(h),eo(d.u,f,{BH:f,LH:e}))}PF(a)};
PF=function(a){if(!a.i&&!a.u.isEmpty()){var b=a.u.remove();a.i=Qha(a,b)}};
Qha=function(a,b){var c=document.createElement("img");a.C&&(c.crossOrigin=a.C);c.src=RF(a.levels[b.BH],b.LH);c.onload=function(){var d=b.BH,e=b.LH;null!==a.i&&(a.i.onload=null,a.i=null);d=a.levels[d];d.loaded.add(e);PF(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.IA()-1);e=[e,d];a.V("l",e[0],e[1])};
return c};
g.SF=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.u=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.i=Math.floor(Number(a[5]));this.B=a[6];this.signature=a[7];this.videoLength=d};
RF=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.Id(c,{sigh:a.signature}));return nw(c)};
g.NF=function(a,b){b>=a.Vy()&&a.rs();var c=Math.floor(b/(a.columns*a.rows)),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.rs()+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:RF(a,c),column:b,columns:h,row:e,rows:d,ix:a.width*h,hx:a.height*d}};
TF=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;LF.call(this,c);this.isLive=d;this.L=!!e;this.levels=this.l(a,b);this.B=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
UF=function(a,b,c){return(a=a.levels[b])?a.vv(c):-1};
MF=function(a,b){var c=a.B.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.B.set(b,d),d;a.B.set(b,c-1);return c-1};
VF=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.SF.call(this,a,b,c,0);this.l=null;this.I=d?3:0};
WF=function(a,b,c,d){TF.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].YD(c)};
Rha=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Id(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
Sha=function(a){navigator.mediaCapabilities?XF(a.videoInfos).then(function(){return a},function(){return a}):Kt(a)};
XF=function(a){var b=navigator.mediaCapabilities;if(!b)return Kt(a);var c=a.map(function(d){var e;if(e=b)d.video?(e=d.video,d={type:"media-source",video:{contentType:d.mimeType,width:e.width||640,height:e.height||360,bitrate:8*d.l||1E6,framerate:e.fps||30}}):d.audio?(e=d.audio,d={type:"media-source",audio:{contentType:d.mimeType,channels:e.i||2,bitrate:8*d.l||128E3,samplerate:e.sampleRate||44100}}):d=null,e=b.decodingInfo(d);return e});
return pda(c).then(function(d){for(var e=0;e<d.length;e++)a[e].I=d[e].smooth,a[e].B=d[e].powerEfficient,a[e].isSupported=d[e].supported;return a},function(){return a})};
g.$F=function(a,b){g.P.call(this);this.B=a;this.adModule=!1;this.adaptiveFormats="";this.aF=this.ll=this.adQueryId=this.xq=null;this.yq={start:NaN,end:NaN};this.Is="";this.Be=null;this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.ra="";this.wz=this.ol=!1;this.uJ=null;this.Bg=this.Qd=this.Rg=this.AB=!1;this.J=null;this.ld=!1;this.qq=this.Uj=NaN;this.nC={};this.Ky=this.cycToken=null;this.author="";this.cq=0;this.yz=!1;this.bq=null;this.rk=this.kF=!1;
this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.Fc=this.Ji="";this.contentCheckOk=!1;this.Wb=0;this.Xn=this.Pj=!1;this.endSeconds=0;this.YE=this.Pc=this.l=this.rA=null;this.Dz="";this.Y=!1;this.Ii=this.il=0;this.vz=this.pipable=this.pj=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.xc=this.isPrivate=this.isListed=this.CA=this.mutedAutoplay=this.Cj=!1;this.QB="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=
this.tB=this.Yk=this.kf=!1;this.latencyClass="UNKNOWN";this.enableServerStitchedDai=this.Yd=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.tb=0;this.reloadReason="";this.uB=this.dJ=this.He=!1;this.keywords={};this.ub="";this.Sj=0;this.Bp=!1;this.liveChunkReadahead=NaN;this.oo=0;this.Mf=null;this.eq=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.Ci=[];this.X=[];this.racyCheckOk=!1;this.DD={};this.Hu=0;this.u=
null;this.autonavState=1;this.yF=null;this.shortDescription="";this.Ya=this.Hy=!1;this.lp=this.Gc=this.startSeconds=0;this.Gp=this.fF=this.eF=YF;this.suggestions=null;this.rq=this.tq=void 0;this.xg=null;this.Jy=!1;this.expandedSubtitle=this.Zn=this.subtitle=this.title="";this.Mi=this.XE=this.multiMarkersPlayerBarRenderer=this.zz=void 0;this.jl=[];this.hlsFormats=this.Yj="";this.qo=this.kp=this.Kf=this.Db=this.Da=this.Vj=this.jo=null;this.Zh="vvt";this.Wc=!1;this.Oy=null;this.iF="";this.lk=NaN;this.Sn=
this.Wp=this.Vp=this.Up=this.Rp=this.Rn=this.hk=this.Qn=this.jk=this.Xp="";this.Rh=null;this.TE=!1;this.L={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.rH=this.pG=NaN;this.Jc=this.Rj=this.kd=this.GH=this.sH=!1;this.Wj=!0;this.Ec={};this.captionTracks=[];this.xz=[];this.hF=0;this.jF=[];this.ql=!1;this.Si=new cy("und",new sB("Default","und",!0));this.GB=0;this.I=null;this.Pf=[];this.Xc=[];this.Op=this.Ad="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.playerResponse=
this.mF=this.Mj=this.wi=this.Az=this.Ds=this.wq=null;this.Wn=!1;this.W=null;this.kA=this.Vi=this.useCobaltWidevine=this.VE=this.hp=this.Tb=!1;this.ME=this.OE=NaN;this.defraggedFromSubfragments=this.Gk=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.gq=this.Ny=this.Bd=!1;this.interstitials=[];this.C=this.eB=!1;this.Tj=this.jK=this.Ca="";this.Po=null;this.cd="";this.Ra=this.zH=!1;this.zJ=this.Zj="";this.oC=this.iC=this.Lz=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=
this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Xj=!1;this.wg=this.sf=!0;this.errorDetail=this.userGenderAge="";this.Ly=this.My=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Ak=this.errorReason=this.errorCode=null;this.Vn=this.rl="";this.td=!1;this.SE=this.QE=this.Sg=this.ze=0;this.No=this.fetchType=null;this.ED=!0;this.bF=void 0;this.dF=-1;this.Sf=this.Kc=!1;this.Qj=null;this.ib=
"";this.ea("web_player_ux_module_wait")&&this.B.ub&&this.X.push("ux");this.Kc=this.ea("web_new_autonav_countdown");this.Sf=this.ea("web_new_big_thumbnail_endscreen");ZF(this,b)};
g.fG=function(a,b,c,d){b&&b.cpn&&g.qt(new g.Zr("CPN provided in VideoData update",{w6:b.cpn,vg:a.clientPlaybackNonce,l6:c}));d&&(a.errorCode=null,a.errorDetail="",a.errorReason=null,a.Ak=null);c?(vD(b),ZF(a,b),aG(a)&&bG(a)):(b=b||{},a.ea("embeds_enable_updatedata_from_embeds_response_killswitch")||cG(a,b),dG(a,b),eG(a,b),a.V("dataupdated"))};
eG=function(a,b){a.fflags=tD(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.ra=nw(c));a.ol=U(a.ol,b.iv_ads_only);a.wz=U(a.wz,b.iv_allow_in_place_switch);a.isPharma=U(a.isPharma,b.is_pharma);a.author=tD(a.author,b.author);a.Ji=HF(b.ttsurl)||a.Ji;a.yz=U(a.yz,b.cc_asr);a.Fc=tD(a.Fc,b.channel_path);a.channelBanner=tD(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.Wg=tD(a.Wg,c);a.videoCountText=tD(a.videoCountText,b.video_count_text);a.autonavState=rD(a.autonavState,b.autonav_state,Tha);a.clientPlaybackNonce=
tD(a.clientPlaybackNonce,b.cpn);a.subscribed=U(a.subscribed,b.subscribed);a.rawViewCount=sD(a.rawViewCount,b.view_count);a.shortViewCount=tD(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=tD(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=tD(a.lengthText||"",b.lengthText);a.Sw=tD(a.Sw||"",b.Sw);a.Ls=tD(a.Ls||"",b.Ls);a.title=tD(a.title,b.title);a.subtitle=tD(a.subtitle,b.subtitle);a.Zn=tD(a.Zn,b.expanded_title);a.expandedSubtitle=tD(a.expandedSubtitle,b.expanded_subtitle);
a.Is=tD(a.Is,b.aria_label);a.ypcPreview=tD(a.ypcPreview,b.ypc_preview);a.Py=tD(a.Py,b.ypc_origin);a.Wc=U(a.Wc,b.ypc_is_premiere_trailer);a.Zj=tD(a.Zj,b.ypc_clickwrap_message);a.paygated=U(a.paygated,b.paygated);a.TE=U(a.TE,b.requires_purchase);a.showShareButton=!U(!a.showShareButton,b.ss);a.sf=U(a.sf,b.showwatchlater);a.wg=U(a.wg,b.shownotifybutton);a.Xj=U(a.Xj,b.copy_share);if(c=b.keywords)a.keywords=gG(c.split(","));if(c=b.rvs)a.suggestions=Gp(c);a.contentCheckOk=U(a.contentCheckOk,b.cco);a.racyCheckOk=
U(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=U(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=tD(a.oauthToken,b.oauth_token);a.ub=tD(a.ub,b.kpt);a.visitorData=tD(a.visitorData,b.visitor_data);if(c=b.session_data)a.ke=Dp(c,"&");if(c=b.endscreen_autoplay_session_data)a.rA=Dp(c,"&");a.Yn=tD(a.Yn,b.endscreen_ad_tracking_data);a.gF=U(a.gF,b.wait_for_vast_info_cards_xml);a.Iy=U(a.Iy,b.suppress_creator_endscreen);a.XH=U(a.XH,b.is_trueview_action);a.ZE=tD(a.ZE,b.tracking_list);a.rl=tD(a.rl,
b.clip);a.Vn=tD(a.Vn,b.clipt);hG(a,b)};
ZF=function(a,b){var c;b=b||{};var d=b.errordetail;null!=d&&(a.errorDetail=d);var e=b.errorcode;null!=e?a.errorCode=e:"fail"==b.status&&(a.errorCode="150");var f=b.reason;null!=f&&(a.errorReason=f);var h=b.subreason;null!=h&&(a.Ak=h);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||ku());a.xc=U(a.B.Yk,b.livemonitor);cG(a,b);var l=b.raw_player_response;if(!l){var m=b.player_response;m&&(l=JSON.parse(m))}l&&(a.playerResponse=l);if(a.playerResponse){var n=a.playerResponse.annotations;if(n)for(var p=
g.q(n),r=p.next();!r.done;r=p.next()){var t=r.value.playerAnnotationsUrlsRenderer;if(t){t.adsOnly&&(a.ol=!0);t.allowInPlaceSwitch&&(a.wz=!0);var u=t.loadPolicy;u&&(a.annotationsLoadPolicy=Uha[u]);var x=t.invideoUrl;x&&(a.ra=nw(x));a.AB=!0;break}}var y=a.playerResponse.attestation;y&&GF(a,y);var E=a.playerResponse.heartbeatParams;if(E){var D=E.heartbeatToken;D&&(a.drmSessionId=E.drmSessionId||"",a.heartbeatToken=D,a.pG=Number(E.intervalMilliseconds),a.rH=Number(E.maxRetries),a.sH=!!E.softFailOnError,
a.GH=!!E.useInnertubeHeartbeatsForDrm,a.Rg=!0);a.heartbeatServerData=E.heartbeatServerData;a.ea("heartbeat_iff_heartbeat_params_filled")&&(a.Rg=!0)}var G=a.playerResponse.messages;G&&Kha(a,G);var I=a.playerResponse.multicamera;if(I){var O=I.playerLegacyMulticameraRenderer;if(O){var ha=O.metadataList;ha&&(a.zJ=ha,a.Xc=Gp(ha))}}var ta=a.playerResponse.overlay;if(ta){var na=ta.playerControlsOverlayRenderer;if(na){var Bb=na.controlBgHtml;null!=Bb?(a.Ca=Bb,a.C=!0):(a.Ca="",a.C=!1);if(na.mutedAutoplay){var tc=
na.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(tc&&tc.endScreen){var qe=tc.endScreen.playerMutedAutoplayEndScreenRenderer;qe&&qe.text&&(a.jK=g.Aw(qe.text))}}else a.mutedAutoplay=!1}}var Ca=a.playerResponse.playabilityStatus;if(Ca){var Wd=Ca.backgroundability;Wd&&Wd.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var rh=Ca.offlineability;rh&&rh.offlineabilityRenderer.offlineable&&(a.offlineable=!0);var ml=Ca.contextParams;ml&&(a.contextParams=ml);var Bj=Ca.pictureInPicture;
Bj&&Bj.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);Ca.playableInEmbed&&(a.allowEmbed=!0);var ff=Ca.ypcClickwrap;if(ff){var bx=ff.playerLegacyDesktopYpcClickwrapRenderer,cx=ff.ypcRentalActivationRenderer;if(bx)a.Zj=bx.durationMessage||"",a.Bg=!0;else if(cx){var dx=cx.durationMessage;a.Zj=dx?g.Aw(dx):"";a.Bg=!0}}var sh=Ca.errorScreen;if(sh){if(sh.playerLegacyDesktopYpcTrailerRenderer){var bc=sh.playerLegacyDesktopYpcTrailerRenderer;a.Sn=bc.trailerVideoId||"";var ex=sh.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;
var re=ex&&ex.ypcTrailerRenderer}else if(sh.playerLegacyDesktopYpcOfferRenderer)bc=sh.playerLegacyDesktopYpcOfferRenderer;else if(sh.ypcTrailerRenderer){re=sh.ypcTrailerRenderer;var fx=re.fullVideoMessage;a.hk=fx?g.Aw(fx):""}bc&&(a.Vp=bc.itemTitle||"",bc.itemUrl&&(a.Wp=bc.itemUrl),bc.itemBuyUrl&&(a.Rp=bc.itemBuyUrl),a.Up=bc.itemThumbnail||"",a.Qn=bc.offerHeadline||"",a.jk=bc.offerDescription||"",a.Rn=bc.offerId||"",a.Xp=bc.offerButtonText||"",a.Oy=bc.offerButtonFormattedText||null,a.lk=bc.overlayDurationMsec||
NaN,a.hk=bc.fullVideoMessage||"",a.Qd=!0);if(re){var gx=re.unserializedPlayerResponse;if(gx)a.Rh={raw_player_response:gx};else{var nl=re.playerVars;a.Rh=nl?Fp(nl):null}a.Qd=!0}}}var Ke=a.playerResponse.playbackTracking;if(Ke){var hx=b,kr=EF(Ke.googleRemarketingUrl);kr&&(a.googleRemarketingUrl=kr);var ix=EF(Ke.youtubeRemarketingUrl);ix&&(a.youtubeRemarketingUrl=ix);var jx=EF(Ke.ptrackingUrl);if(jx){var ol=FF(jx),kx=ol.oid;kx&&(a.DK=kx);var lx=ol.pltype;lx&&(a.EK=lx);var mx=ol.ptchn;mx&&(a.BK=mx);var lr=
ol.ptk;lr&&(a.bp=encodeURIComponent(lr))}var nx=EF(Ke.ppvRemarketingUrl);nx&&(a.ppvRemarketingUrl=nx);var Tn=EF(Ke.qoeUrl);if(Tn){for(var pl=g.Hp(Tn),ox=g.q(Object.keys(pl)),xg=ox.next();!xg.done;xg=ox.next()){var px=xg.value,Un=pl[px];pl[px]=Array.isArray(Un)?Un.join(","):Un}var qx=pl.cat;qx&&(a.Tj=qx);var sE=pl.live;sE&&(a.QB=sE)}var Vn=EF(Ke.remarketingUrl);if(Vn){a.remarketingUrl=Vn;var mr=FF(Vn);mr.foc_id&&(a.L.focEnabled=!0);var rx=mr.data;rx&&(a.L.rmktEnabled=!0,rx.engaged&&(a.L.engaged="1"));
a.L.baseUrl=yd(Vn)+ud(g.wd(5,Vn))}var sx=EF(Ke.videostatsPlaybackUrl);if(sx){var Jc=FF(sx),ql=Jc.adformat;if(ql&&(hx.adformat=ql,!a.ea("process_video_data_ad_format_in_player_tracking_killswitch"))){var nr=a.T(),Vc=wF(ql,a.Op,nr.l,nr.u);Vc&&(a.adFormat=Vc)}var yg=Jc.aqi;yg&&(hx.ad_query_id=yg);var or=Jc.autoplay;or&&(a.Cj="1"==or);var tx=Jc.autonav;tx&&(a.pj="1"==tx);var ux=Jc.delay;ux&&(a.Wb=qd(ux));var vx=Jc.ei;vx&&(a.eventId=vx);"adunit"===Jc.el&&(a.Cj=!0);var wx=Jc.feature;wx&&(a.WE=wx);var pr=
Jc.list;pr&&(a.playlistId=pr);var qr=Jc.of;qr&&(a.wN=qr);var xx=Jc.osid;xx&&(a.osid=xx);var yx=Jc.referrer;yx&&(a.referrer=yx);var zx=Jc.sdetail;zx&&(a.UE=zx);var rr=Jc.sourceid;rr&&(a.r6=rr);var sr=Jc.ssrt;sr&&(a.hq="1"==sr);var Ax=Jc.subscribed;Ax&&(a.subscribed="1"==Ax,a.L.subscribed=Ax);var rl=Jc.uga;rl&&(a.userGenderAge=rl);var Cj=Jc.upt;Cj&&(a.xN=Cj);var tr=Jc.vm;tr&&(a.videoMetadata=tr)}var Bx=EF(Ke.videostatsWatchtimeUrl);if(Bx){var Cx=FF(Bx).ald;Cx&&(a.iN=Cx)}if(Ke.promotedPlaybackTracking){var se=
Ke.promotedPlaybackTracking;se.startUrls&&(a.jp=se.startUrls);se.firstQuartileUrls&&(a.zD=se.firstQuartileUrls);se.secondQuartileUrls&&(a.AD=se.secondQuartileUrls);se.thirdQuartileUrls&&(a.BD=se.thirdQuartileUrls);se.completeUrls&&(a.qD=se.completeUrls);se.engagedViewUrls&&(1<se.engagedViewUrls.length&&g.qt(new g.Zr("There are more than one engaged_view_urls.")),a.Rf=se.engagedViewUrls[0])}}var Dx=a.playerResponse.playerAds;if(Dx)for(var lQ=b,Le=g.q(Dx),Wn=Le.next();!Wn.done;Wn=Le.next()){var tE=
Wn.value;if(tE){var ur=tE.playerLegacyDesktopWatchAdsRenderer;if(ur){var ni=ur.playerAdParams;if(ni){"1"==ni.autoplay&&(a.Cj=!0);a.ll=ni.encodedAdSafetyReason||null;void 0!==ni.showContentThumbnail&&(a.Wj=!!ni.showContentThumbnail);lQ.enabled_engage_types=ni.enabledEngageTypes;break}}}}var Eb=a.playerResponse.playerConfig;if(Eb){var sl=Eb.manifestlessWindowedLiveConfig;if(sl){var vr=Number(sl.minDvrSequence),Ex=Number(sl.maxDvrSequence),wr=Number(sl.minDvrMediaTimeMs),Fx=Number(sl.maxDvrMediaTimeMs);
vr&&(a.ze=vr);wr&&(a.SE=wr/1E3);Ex&&(a.Sg=Ex);Fx&&(a.QE=Fx/1E3)}var xr=Eb.daiConfig;if(xr){xr.enableDai&&(a.Yd=!0);var Gx=xr.enableServerStitchedDai;Gx&&(a.enableServerStitchedDai=Gx)}var Xn=Eb.audioConfig;if(Xn){var Hx=Xn.loudnessDb;null!=Hx&&(a.Uj=Hx);Xn.audioMuted&&(a.ld=!0);Xn.muteOnStart&&(a.ld=!0)}var yr=Eb.playbackEndConfig;if(yr){var oi=yr.endSeconds;oi&&a.mutedAutoplay&&(a.endSeconds=oi)}var Yn=Eb.fairPlayConfig;if(Yn){var zr=Yn.certificate;zr&&(a.Pc=YC(zr));var uE=Number(Yn.keyRotationPeriodMs);
0<uE&&(a.kN=uE);var tl=Number(Yn.keyPrefetchMarginMs);0<tl&&(a.jN=tl)}var Zn=Eb.playbackStartConfig;if(Zn){a.oC=Number(Zn.startSeconds);var Ix=Zn.liveUtcStartSeconds,Ar=!1;a.ea("html5_start_seconds_priority")&&(Ar=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds);Ix&&!Ar&&(a.liveUtcStartSeconds=Number(Ix));var Br=Zn.startPosition;if(Br){var Jx=Br.utcTimeMillis;Jx&&!Ar&&(a.liveUtcStartSeconds=.001*Number(Jx));var Kx=Br.streamTimeMillis;Kx&&(a.lp=.001*Number(Kx))}}else{var Cr=Eb.skippableSegmentsConfig;
if(Cr){var Dr=Cr.introSkipDurationMs;Dr&&(a.Lz=Number(Dr)/1E3);var $n=Cr.outroSkipDurationMs;$n&&(a.iC=Number($n)/1E3)}}var mQ=Eb.skippableIntroConfig;if(mQ){var x8=Number(mQ.startMs),y8=Number(mQ.endMs);isNaN(x8)||isNaN(y8)||(a.OE=x8,a.ME=y8)}var z8=Eb.streamSelectionConfig;z8&&(a.Ii=Number(z8.maxBitrate));var A8=Eb.vrConfig;A8&&(a.hp="1"==A8.partialSpherical);var Lx=Eb.webDrmConfig;if(Lx){Lx.skipWidevine&&(a.VE=!0);var B8=Lx.widevineServiceCert;B8&&(a.YE=YC(B8));Lx.useCobaltWidevine&&(a.useCobaltWidevine=
!0);Lx.startWithNoQualityConstraint&&(a.Vi=!0)}var C8=Eb.mediaCommonConfig;if(C8){var vE=C8.dynamicReadaheadConfig;vE&&(a.maxReadAheadMediaTimeMs=vE.maxReadAheadMediaTimeMs||NaN,a.minReadAheadMediaTimeMs=vE.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=vE.readAheadGrowthRateMs||NaN)}}var Dj=a.playerResponse.streamingData;if(Dj){var D8=Dj.adaptiveFormats;if(D8){for(var E8=[],F8=g.q(D8),th=F8.next();!th.done;th=F8.next()){var wE=th.value;E8.push(KF(wE));var G8=wE.loudnessDb;wE.itag&&null!=G8&&
(a.nC[wE.itag.toString()]=G8)}a.adaptiveFormats=E8.join(",")}var nQ=Dj.formats;if(nQ){var Mx=[],H8=g.q(nQ);for(th=H8.next();!th.done;th=H8.next()){var oQ=th.value;Mx.push(oQ.itag+"/"+oQ.width+"x"+oQ.height)}a.Dz=Mx.join(",");Mx=[];var I8=g.q(nQ);for(th=I8.next();!th.done;th=I8.next()){var Er=th.value,Nx={itag:Er.itag,type:Er.mimeType,quality:Er.quality},J8=Er.url;J8&&(Nx.url=J8);var K8=Er.cipher||Er.signatureCipher;if(K8){var pQ=Fp(K8);Nx.sp=pQ.sp;Nx.s=pQ.s;Nx.url=pQ.url}Mx.push(g.Gd(Nx))}a.Yj=Mx.join(",")}var qQ=
Dj.hlsFormats;if(qQ){var L8=Eb||null,xE={};if(L8){var rQ=L8.audioPairingConfig;if(rQ&&rQ.pairs)for(var M8=g.q(rQ.pairs),sQ=M8.next();!sQ.done;sQ=M8.next()){var N8=sQ.value,tQ=N8.videoItag;xE[tQ]||(xE[tQ]=[]);xE[tQ].push(N8.audioItag)}}for(var O8={},P8=g.q(qQ),ao=P8.next();!ao.done;ao=P8.next()){var Q8=ao.value;O8[Q8.itag]=Q8.bitrate}var R8=[],S8=g.q(qQ);for(ao=S8.next();!ao.done;ao=S8.next()){var gf=ao.value,pi={itag:gf.itag,type:gf.mimeType,url:gf.url,bitrate:gf.bitrate,width:gf.width,height:gf.height,
fps:gf.fps},yE=gf.audioTrack;if(yE){var T8=yE.displayName;T8&&(pi.name=T8,pi.audio_track_id=yE.id,yE.audioIsDefault&&(pi.is_default="1"))}if(gf.drmFamilies){for(var U8=[],V8=g.q(gf.drmFamilies),uQ=V8.next();!uQ.done;uQ=V8.next())U8.push(JF[uQ.value]);pi.drm_families=U8.join(",")}var zE=xE[gf.itag];if(zE&&zE.length){pi.audio_itag=zE.join(",");var W8=O8[zE[0]];W8&&(pi.bitrate+=W8)}var X8=DF(gf);X8&&(pi.eotf=X8);gf.audioChannels&&(pi.audio_channels=gf.audioChannels);R8.push(g.Gd(pi))}a.hlsFormats=R8.join(",")}var vQ=
Dj.licenseInfos;if(vQ&&0<vQ.length){for(var Y8={},Z8=g.q(vQ),wQ=Z8.next();!wQ.done;wQ=Z8.next()){var $8=wQ.value,a9=$8.drmFamily,b9=$8.url;a9&&b9&&(Y8[JF[a9]]=b9)}a.Be=Y8}var c9=Dj.drmParams;c9&&(a.drmParams=c9);var d9=Dj.dashManifestUrl;d9&&(a.va=g.Id(d9,{cpn:a.clientPlaybackNonce}));var e9=Dj.hlsManifestUrl;e9&&(a.hlsvp=e9);var f9=Dj.probeUrl;f9&&(a.probeUrl=nw(g.Id(f9,{cpn:a.clientPlaybackNonce})))}var g9=a.playerResponse.trackingParams;g9&&(a.Aa=g9);var fc=a.playerResponse.videoDetails;if(fc){var qi=
b,xQ=fc.videoId;xQ&&(a.videoId=xQ,qi.video_id||(qi.video_id=xQ));var h9=fc.channelId;h9&&(a.L.uid=h9.substr(2));var yQ=fc.title;yQ&&(a.title=yQ,qi.title||(qi.title=yQ));var zQ=fc.lengthSeconds;zQ&&(a.lengthSeconds=Number(zQ),qi.length_seconds||(qi.length_seconds=zQ));var i9=fc.keywords;i9&&(a.keywords=gG(i9));var AQ=fc.channelId;AQ&&(a.Yh=AQ,qi.ucid||(qi.ucid=AQ));var j9=fc.viewCount;j9&&(a.rawViewCount=Number(j9));var BQ=fc.author;BQ&&(a.author=BQ,qi.author||(qi.author=BQ));var k9=fc.shortDescription;
k9&&(a.shortDescription=k9);var l9=fc.isCrawlable;l9&&(a.isListed=l9);var m9=fc.musicVideoType;m9&&(a.musicVideoType=m9);var CQ=fc.isLive;null!=CQ&&(a.isLivePlayback=CQ);if(CQ||fc.isUpcoming)a.isPremiere=!fc.isLiveContent;var n9=fc.thumbnail;n9&&(a.Ec=CF(n9));var o9=Eb||null,DQ=b;fc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);fc.isUpcoming&&(a.isUpcoming=!0);if(fc.isPostLiveDvr)a.kf=!0;else{var EQ=!1;if(a.xc)a.allowLiveDvr=iG(!0),a.isLivePlayback=!0;else if(fc.isLive){DQ.livestream="1";
a.allowLiveDvr=iG(!!fc.isLiveDvrEnabled);a.Xa=27;fc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var p9=fc.latencyClass;p9&&(a.latencyClass=Vha[p9]||"UNKNOWN");a.Pj=!0;var q9=fc.liveChunkReadahead;q9&&(a.liveChunkReadahead=q9);var Ox=o9&&o9.livePlayerConfig;if(Ox){Ox.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Ox.hasSubfragmentedWebm&&(a.Gk=!0);Ox.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var r9=Ox.liveExperimentalContentId;r9&&(a.liveExperimentalContentId=Number(r9))}EQ=
!0}else fc.isUpcoming&&(EQ=!0);EQ&&(a.isLivePlayback=!0,DQ.adformat&&"8"!==DQ.adformat.split("_")[1]||a.X.push("heartbeat"),a.ea("heartbeat_iff_heartbeat_params_filled")||(a.Rg=!0),a.Xn=!0)}var s9=fc.isPrivate;s9&&(a.isPrivate=U(a.isPrivate,s9))}if(Ca){var t9=fc||null,u9=!1,Fr=Ca.errorScreen;u9=Fr&&(Fr.playerLegacyDesktopYpcOfferRenderer||Fr.playerLegacyDesktopYpcTrailerRenderer||Fr.ypcTrailerRenderer)?!0:t9&&t9.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Ca.status);if(!u9){a.errorCode=
"150";var AE=Fr&&Fr.playerErrorMessageRenderer;if(AE){a.playerErrorMessageRenderer=AE;var v9=AE.reason;v9&&(a.errorReason=g.Aw(v9));var GQ=AE.subreason;GQ&&(a.Ak=g.Aw(GQ),a.ao=GQ)}else a.errorReason=Ca.reason||null;var HQ=Ca.status;if("LOGIN_REQUIRED"===HQ)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===HQ)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===HQ){var w9=Ca.errorScreen,x9=w9&&w9.playerKavRenderer;a.errorDetail=x9&&x9.kavUrl?"4":"3"}else a.errorDetail=Ca.isBlockedInRestrictedMode?"5":
"0"}}var y9=a.playerResponse.interstitialPods;y9&&Jha(a,y9);a.ra&&a.eventId&&(a.ra=Kp(a.ra,{ei:a.eventId}));var IQ=a.playerResponse.captions;IQ&&IQ.playerCaptionsTracklistRenderer&&Iha(a,IQ.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.oC=.001*Number(a.clipConfig.startTimeMs));a.accountLinkingConfig=a.playerResponse.accountLinkingConfig;a.accountLinkingConfig&&a.accountLinkingConfig.alsParam&&(a.IE=a.accountLinkingConfig.alsParam);
a.ea("web_player_include_innertube_commands")&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&IF(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}dG(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var z9=b.hlsdvr;null!=z9&&(a.allowLiveDvr=iG("1"==z9));a.adQueryId=b.ad_query_id||null;a.ll||(a.ll=b.encoded_ad_safety_reason||null);a.aF=b.agcid||null;a.wq=b.ad_id||
null;a.Ds=b.ad_sys||null;a.Az=b.encoded_ad_playback_context||null;a.ld=U(a.ld,b.infringe||b.muted);a.authKey=b.authkey;a.KE=b.authuser;a.yF=b.autonav_watch_endpoint||null;a.mutedAutoplay=U(a.mutedAutoplay,b&&b.playmuted)&&a.ea("embeds_enable_muted_autoplay");a.Pj=U(a.Pj,b.enable_cardio);a.Xn=U(a.Xn,b.enable_cardio_before_playback);a.endSeconds=sD(a.endSeconds,a.iC||b.end||b.endSeconds);a.Aa=tD(a.Aa,b.itct);a.CA=U(a.CA,b.noiba);a.tB=U(a.tB,b.is_live_destination);a.isLivePlayback=U(a.isLivePlayback,
b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=U(a.isUpcoming,b.isUpcoming));a.kf=U(a.kf,b.post_live_playback);a.isMdxPlayback=U(a.isMdxPlayback,b.mdx);var BE=b.mdx_control_mode;BE&&(a.mdxControlMode="number"===typeof BE?BE:qd(BE));a.kA=U(a.kA,b.is_inline_playback_no_ad);a.tb=sD(a.tb,b.reload_count);a.reloadReason=tD(a.reloadReason,b.reload_reason);a.Wj=U(a.Wj,b.show_content_thumbnail);a.uB=U(a.uB,b.utpsa);a.Jy=U(a.Jy,b.third_party_remapped_ad);
a.cycToken=b.cyc||null;a.Ky=b.tkn||null;var A9=zF(b);0<Object.keys(A9).length&&(a.Ec=A9);a.Ga=tD(a.Ga,b.vvt);a.mdxEnvironment=tD(a.mdxEnvironment,b.mdx_environment);a.MN=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=tD(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?sD(0,b.index):sD(a.playlistIndex,b.index));a.KD=b.pyv_view_beacon_url;a.JE=b.pyv_quartile25_beacon_url;a.LE=b.pyv_quartile50_beacon_url;a.NE=b.pyv_quartile75_beacon_url;a.MD=b.pyv_quartile100_beacon_url;
var B9=b.remarketing_url;B9&&(a.remarketingUrl=B9);var C9=b.ppv_remarketing_url;C9&&(a.ppvRemarketingUrl=C9);var D9=b.session_data;!a.PE&&D9&&(a.PE=Dp(D9,"&").feature);a.Tz=1==sD(a.Tz?1:0,b.is_fling);a.vnd=sD(a.vnd,b.vnd);a.Lf=tD(a.Lf,b.force_ads_url);a.Bh=tD(a.Bh,b.ctrl);a.jg=tD(a.jg,b.ytr);a.zl=b.ytrcc;a.RE=b.ytrexp;a.CD=b.ytrext;a.Ad=tD(a.Ad,b.adformat);a.Op=tD(a.Op,b.attrib);a.slotPosition=sD(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.hq=U(a.hq,b.ssrt);a.videoId=vD(b)||a.videoId;a.Sa=
tD(a.Sa,b.vss_credentials_token);a.Zh=tD(a.Zh,b.vss_credentials_token_type);a.Bd=U(a.Bd,b.audio_only);a.Ny=U(a.Ny,b.aac_high);a.gq=U(a.gq,b.prefer_low_quality_audio);a.Tj=tD(a.Tj,b.qoe_cat);a.td=U(a.td,b.download_media);a.Ra=U(a.Ra,b.prefer_gapless);a:{var JQ=a.playerResponse;if(JQ&&JQ.adPlacements)for(var E9=g.q(JQ.adPlacements),KQ=E9.next();!KQ.done;KQ=E9.next()){var CE=KQ.value.adPlacementRenderer;if(null!=CE&&"AD_PLACEMENT_KIND_START"==(CE.config&&CE.config.adPlacementConfig&&CE.config.adPlacementConfig.kind)){var F9=
!0;break a}}F9=!1}F9&&(a.adModule=!0,a.X.push("ad"));var G9=b.adaptive_fmts;G9&&(a.adaptiveFormats=G9);var H9=b.allow_embed;H9&&(a.allowEmbed="1"==H9);var I9=b.backgroundable;I9&&(a.backgroundable="1"==I9);var J9=b.autonav;J9&&(a.pj="1"==J9);var K9=b.autoplay;K9&&(a.Cj="1"==K9);var L9=b.iv_load_policy;L9&&(a.annotationsLoadPolicy=rD(a.annotationsLoadPolicy,L9,ND));var M9=b.cc_lang_pref;M9&&(a.captionsLanguagePreference=tD(M9,a.captionsLanguagePreference));var N9=b.cc_load_policy;N9&&(a.bq=rD(a.bq,
N9,ND));var O9=b.cached_load;O9&&(a.rk=U(a.rk,O9));"0"==b.dash&&(a.kF=!0);var P9=b.dashmpd;P9&&(a.va=g.Id(P9,{cpn:a.clientPlaybackNonce}));var Q9=b.delay;Q9&&(a.Wb=qd(Q9));var R9=a.iC||b.end;void 0!=R9&&(a.clipEnd=sD(a.clipEnd,R9));var S9=b.fmt_list;S9&&(a.Dz=S9);b.heartbeat_preroll&&a.X.push("heartbeat");a.il=-Math.floor(10*Math.random());a.eq=-Math.floor(40*Math.random());var T9=b.is_listed;T9&&(a.isListed=U(a.isListed,T9));var U9=b.is_private;U9&&(a.isPrivate=U(a.isPrivate,U9));var V9=b.is_dni;
V9&&(a.C=U(a.C,V9));var W9=b.dni_color;W9&&(a.Ca=tD(a.Ca,W9));var X9=b.pipable;X9&&(a.pipable=U(a.pipable,X9));a.vz=a.pipable&&a.B.ql;a.Hy=a.vz&&(!a.B.showMiniplayerButton||a.ea("web_player_pip"));var Y9=b.paid_content_overlay_duration_ms;Y9&&(a.paidContentOverlayDurationMs=qd(Y9));var Z9=b.paid_content_overlay_text;Z9&&(a.paidContentOverlayText=Z9);var $9=b.url_encoded_fmt_stream_map;$9&&(a.Yj=$9);var a$=b.hls_formats;a$&&(a.hlsFormats=a$);var b$=b.hlsvp;b$&&(a.hlsvp=b$);var DE=b.length_seconds;
DE&&(a.lengthSeconds="string"===typeof DE?qd(DE):DE);var EE=b.live_start_walltime;EE&&(a.oo="number"===typeof EE?EE:qd(EE));var FE=b.live_manifest_duration;FE&&(a.Mf="number"===typeof FE?FE:qd(FE));var c$=b.player_params;c$&&(a.playerParams=c$);var d$=b.partnerid;d$&&(a.Xa=sD(a.Xa,d$));var e$=b.probe_url;e$&&(a.probeUrl=nw(g.Id(e$,{cpn:a.clientPlaybackNonce})));var LQ=b.pyv_billable_url;LQ&&kw(LQ)&&(a.Rf=LQ);var MQ=b.pyv_conv_url;MQ&&kw(MQ)&&(a.LD=MQ);hG(a,b);0<a.startSeconds||(a.startSeconds=sD(a.startSeconds,
a.oC||a.Lz||b.start||b.startSeconds),a.Gc=a.startSeconds);if(a.ea("html5_start_seconds_priority")){if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var f$=b.live_utc_start;if(null!=f$)a.liveUtcStartSeconds=Number(f$);else{var NQ=a.startSeconds;NQ&&isFinite(NQ)&&1E9<NQ&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var g$$=b.utc_start_millis;g$$&&(a.liveUtcStartSeconds=.001*Number(g$$))}}else{var h$=b.live_utc_start;null!=h$&&(a.liveUtcStartSeconds=
Number(h$));var i$=b.utc_start_millis;i$&&(a.liveUtcStartSeconds=.001*Number(i$))}var j$=b.stream_time_start_millis;j$&&(a.lp=.001*Number(j$));var k$=a.Lz||b.start;void 0==k$||"1"==b.resume||a.isLivePlayback||(a.clipStart=sD(a.clipStart,k$));var l$=b.url_encoded_third_party_media;l$&&(a.xg=Gp(l$));var OQ=b.ypc_offer_button_formatted_text;if(OQ){var m$=JSON.parse(OQ);a.Oy=null!=m$?m$:null;a.iF=OQ}var n$=b.ypc_offer_button_text;n$&&(a.Xp=n$);var o$=b.ypc_offer_description;o$&&(a.jk=o$);var p$=b.ypc_offer_headline;
p$&&(a.Qn=p$);var q$=b.ypc_full_video_message;q$&&(a.hk=q$);var r$=b.ypc_offer_id;r$&&(a.Rn=r$);var s$=b.ypc_buy_url;s$&&(a.Rp=s$);var t$=b.ypc_item_thumbnail;t$&&(a.Up=t$);var u$=b.ypc_item_title;u$&&(a.Vp=u$);var v$=b.ypc_item_url;v$&&(a.Wp=v$);var w$=b.ypc_vid;w$&&(a.Sn=w$);b.ypc_overlay_timeout&&(a.lk=Number(b.ypc_overlay_timeout));var x$=b.ypc_trailer_player_vars;x$&&(a.Rh=Fp(x$));var y$=b.ypc_original_itct;y$&&(a.IO=y$);a.Yh=tD(a.Yh,b.ucid);b.baseUrl&&(a.L.baseUrl=b.baseUrl);b.uid&&(a.L.uid=
b.uid);b.oeid&&(a.L.oeid=b.oeid);b.ieid&&(a.L.ieid=b.ieid);b.ppe&&(a.L.ppe=b.ppe);b.engaged&&(a.L.engaged=b.engaged);b.subscribed&&(a.L.subscribed=b.subscribed);a.L.focEnabled=U(a.L.focEnabled,b.focEnabled);a.L.rmktEnabled=U(a.L.rmktEnabled,b.rmktEnabled);a.kp=b.storyboard_spec||null;a.qo=b.live_storyboard_spec||null;a.uJ=b.iv_endscreen_url||null;a.AB=U(a.AB,b.iv3_module);a.Rg=U(a.Rg,b.ypc_license_checker_module);a.Qd=U(a.Qd,b.ypc_module);a.Bg=U(a.Bg,b.ypc_clickwrap_module);a.Qd&&a.X.push("ypc");
a.Bg&&a.X.push("ypc_clickwrap");a.DD={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};
eG(a,b);jG(a)?kG(a)&&(a.isLivePlayback&&a.va?a.kd=!0:a.Pc&&(a.Rj=!0)):lG(a)?a.kd=!0:!mG(a,a.adaptiveFormats)&&a.va&&(a.kd=!0);var RQ=b.adpings;RQ&&(a.xq=RQ?Fp(RQ):null);var B$=b.feature;B$&&(a.WE=B$);var C$=b.referrer;C$&&(a.referrer=C$);var D$=b.cotn;D$&&(a.cotn=D$);a.clientScreenNonce=tD(a.clientScreenNonce,b.csn);a.Hu=sD(a.Hu,b.root_ve_type);a.Sj=sD(a.Sj,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.Bp=U(a.Bp,b.upg_content_filter_mode);var E$=b.unplugged_location_info;
E$&&(a.W=E$);var F$=b.unplugged_partner_opt_out;F$&&(a.uq=tD("",F$));a.Wn=U(a.Wn,b.disable_watch_next);a.Xk=tD(a.Xk,b.internal_ip_override);a.eB=!!b.is_yto_interstitial;(a.interstitials.length||a.eB)&&a.X.push("yto");var G$=b.Ci;G$&&(a.Ci=G$);b.Wx&&(a.Wx=b.Wx);a.ib=null!==(c=b.csi_timer)&&void 0!==c?c:""};
dG=function(a,b){var c,d,e,f,h,l,m,n,p,r,t,u,x,y,E,D,G,I,O,ha=b.raw_watch_next_response;if(!ha){var ta=b.watch_next_response;ta&&(ha=JSON.parse(ta))}if(ha){a.watchNextResponse=ha;var na=a.watchNextResponse.contents;if(na){var Bb=na.singleColumnWatchNextResults;if(Bb){var tc=sD(0,b.autoplay_count);if(Bb.autoplay&&Bb.autoplay.autoplay&&!Bb.playlist){var qe=Bb.autoplay.autoplay.sets,Ca={},Wd={},rh=null;if(qe){for(var ml=g.q(qe),Bj=ml.next();!Bj.done;Bj=ml.next()){var ff=Bj.value.autoplayVideoRenderer;
if(ff&&ff.compactVideoRenderer){rh=ff.compactVideoRenderer;break}}var bx=qe[0].autoplayVideo;if(bx){var cx=bx.clickTrackingParams;cx&&(Ca.itct=cx);Ca.autonav="1";Ca.playnext=String(tc)}}else Ca.feature="related-auto";if(rh){Wd.autonav="1";Wd.video_id=rh.videoId;var dx=rh.shortBylineText;dx&&(Wd.author=g.Aw(dx));var sh=rh.title;sh&&(Wd.title=g.Aw(sh))}Wd.endscreen_autoplay_session_data=g.Gd(Ca);a.suggestions=[Wd]}}var bc=na.twoColumnWatchNextResults}a.lN=!(null===(c=null===bc||void 0===bc?void 0:bc.autoplay)||
void 0===c||!c.autoplay);var ex=a.watchNextResponse.playerOverlays;if(ex){var re=ex.playerOverlayRenderer;if(re){var fx=re.endScreen;if(fx){var gx=fx.watchNextEndScreenRenderer;if(gx)var nl=gx.results}var Ke=re.videoDetails;if(Ke){var hx=Ke.embeddedPlayerOverlayVideoDetailsRenderer;var kr=Ke.musicEmbeddedPlayerOverlayVideoDetailsRenderer;kr&&(a.Cz=kr.title,a.Bz=kr.byline)}var ix=re.actions;if(ix)for(var jx=g.q(ix),ol=jx.next();!ol.done;ol=jx.next()){var kx=ol.value;kx.likeButtonRenderer&&(a.likeButtonRenderer=
kx.likeButtonRenderer)}var lx=null===(e=null===(d=re.suggestedActionsRenderer)||void 0===d?void 0:d.suggestedActionsRenderer)||void 0===e?void 0:e.suggestedActions;if(lx)for(var mx=g.q(lx),lr=mx.next();!lr.done;lr=mx.next()){var nx=lr.value;if(null===(h=null===(f=nx.suggestedActionRenderer)||void 0===f?void 0:f.trigger)||void 0===h?0:h.suggestedActionTimeRangeTrigger)a.XE=nx.suggestedActionRenderer}var Tn=null===(l=re.decoratedPlayerBarRenderer)||void 0===l?void 0:l.decoratedPlayerBarRenderer;Tn&&
(a.multiMarkersPlayerBarRenderer=null===(m=Tn.playerBar)||void 0===m?void 0:m.multiMarkersPlayerBarRenderer,a.zz=null===(p=null===(n=Tn.playerBar)||void 0===n?void 0:n.chapteredPlayerBarRenderer)||void 0===p?void 0:p.chapters,a.kO=null===(r=Tn.playerBarActionButton)||void 0===r?void 0:r.buttonRenderer);g.HD(a.B)&&(a.sf=!!re.addToMenu);nG(a,re.shareButton);var pl=re.productsInVideoOverlayRenderer;pl&&(a.shoppingOverlayRenderer=pl.shoppingOverlayRenderer);var ox=re.autoplay;if(ox)var xg=ox.playerOverlayAutoplayRenderer}}if(!nl&&
bc){var px=bc.endScreen&&bc.endScreen.endScreen;px&&(nl=px.results)}if(bc){var Un=bc.desktopOverlay&&bc.desktopOverlay.desktopOverlayConfigRenderer;Un&&(Un.suppressShareButton&&(a.showShareButton=!1),Un.suppressWatchLaterButton&&(a.sf=!1))}hx&&oG(a,b,hx);var qx=sD(0,b.autoplay_count);if(nl){for(var sE=bc||null,Vn=xg||null,mr=[],rx=!0,sx=g.q(nl),Jc=sx.next();!Jc.done;Jc=sx.next()){var ql=Jc.value,nr=void 0,Vc=null;if(ql.endScreenVideoRenderer){var yg=ql.endScreenVideoRenderer,or=yg.title;Vc={id:yg.videoId,
length_seconds:yg.lengthInSeconds};var tx=yg.publishedTimeText;tx&&(Vc.publishedTimeText=g.Aw(tx));var ux=yg.shortBylineText;ux&&(Vc.author=g.Aw(ux));var vx=yg.shortViewCountText;vx&&(Vc.short_view_count_text=g.Aw(vx));if(or){Vc.title=g.Aw(or);var wx=or.accessibility;if(wx){var pr=wx.accessibilityData;pr&&pr.label&&(Vc.aria_label=pr.label)}}var qr=yg.navigationEndpoint;if(qr){nr=qr.clickTrackingParams;var xx=qr.watchEndpoint;xx&&(Vc.sA=xx)}var yx=yg.thumbnailOverlays;if(yx)for(var zx=g.q(yx),rr=zx.next();!rr.done;rr=
zx.next()){var sr=rr.value.thumbnailOverlayTimeStatusRenderer;if(sr)if("LIVE"===sr.style){Vc.live_playback="1";break}else if("UPCOMING"===sr.style){Vc.isUpcoming=!0;break}}var Ax=CF(yg.thumbnail),rl=yF(Ax);rl.iurlmq&&(rl={iurlmq:rl.iurlmq,iurlhq:rl.iurlmq});Object.assign(Vc,rl)}else if(ql.endScreenPlaylistRenderer){var Cj=ql.endScreenPlaylistRenderer,tr=Cj.navigationEndpoint;if(!tr)continue;var Bx=tr.watchEndpoint;if(!Bx)continue;var Cx=Bx.videoId;Vc={list:Cj.playlistId,video_id:Cx,playlist_length:Cj.videoCount,
thumbnail_ids:Cx};var se=Cj.title;se&&(Vc.playlist_title=g.Aw(se));var Dx=Cj.shortBylineText;Dx&&(Vc.playlist_author=g.Aw(Dx));nr=tr.clickTrackingParams;var lQ=CF(Cj.thumbnail);Object.assign(Vc,yF(lQ))}Vc&&(Vc.session_data=g.Gd({itct:nr}),rx?(pG(Vc,sE,Vn,qx),mr.splice(0,0,Vc),rx=!1):mr.push(Vc))}a.suggestions=mr}if(xg){a.ED=!!xg.preferImmediateRedirect;a.Kc=a.Kc||!!xg.webShowNewAutonavCountdown;a.Sf=a.Sf||!!xg.webShowBigThumbnailEndscreen;if(a.Kc||a.Sf){var Le=xg,Wn=nl||null,tE=bc||null,ur,ni,Eb=
{id:Le.videoId},sl=null===(ni=null===(ur=null===Wn||void 0===Wn?void 0:Wn[0])||void 0===ur?void 0:ur.endScreenVideoRenderer)||void 0===ni?void 0:ni.navigationEndpoint;sl&&(Eb.session_data=g.Gd({itct:sl.clickTrackingParams}));var vr=Le.videoTitle;if(vr){Eb.title=g.Aw(vr);var Ex=vr.accessibility;if(Ex){var wr=Ex.accessibilityData;wr&&wr.label&&(Eb.aria_label=wr.label)}}var Fx=Le.byline;Fx&&(Eb.author=g.Aw(Fx));var xr=Le.publishedTimeText;xr&&(Eb.publishedTimeText=g.Aw(xr));var Gx=Le.shortViewCountText;
Gx&&(Eb.short_view_count_text=g.Aw(Gx));var Xn=Le.thumbnailOverlays;if(Xn)for(var Hx=g.q(Xn),yr=Hx.next();!yr.done;yr=Hx.next()){var oi=yr.value.thumbnailOverlayTimeStatusRenderer;if(oi)if("LIVE"===oi.style){Eb.live_playback="1";break}else if("UPCOMING"===oi.style){Eb.isUpcoming=!0;break}else if("DEFAULT"===oi.style&&oi.text){Eb.lengthText=g.Aw(oi.text);var Yn=oi.text.accessibility;if(Yn){var zr=Yn.accessibilityData;zr&&zr.label&&(Eb.Sw=zr.label)}break}}var uE=CF(Le.background),tl=yF(uE);tl.iurlmq&&
(tl={iurlmq:tl.iurlmq,iurlhq:tl.iurlmq});Object.assign(Eb,tl);var Zn=Le.nextButton;if(Zn){var Ix=Zn.buttonRenderer;if(Ix){var Ar=Ix.navigationEndpoint;if(Ar){var Br=Ar.watchEndpoint;Br&&(Eb.sA=Br)}}}if(Le.topBadges){var Jx=Le.topBadges[0];if(Jx){var Kx=Jx.metadataBadgeRenderer;Kx&&"BADGE_STYLE_TYPE_PREMIUM"==Kx.style&&(Eb.Wx=!0)}}var Cr=Le.alternativeTitle;Cr&&(Eb.Ls=g.Aw(Cr));pG(Eb,tE,Le,qx);a.suggestions||(a.suggestions=[]);a.suggestions[0]=Eb}null!=xg.countDownSecs&&(a.dF=1E3*xg.countDownSecs)}a.watchNextResponse.currentVideoThumbnail&&
(a.Ec=CF(a.watchNextResponse.currentVideoThumbnail));if(!a.ea("player_parse_profile_picture_from_watch_next_killswitch")){var Dr=null===(E=null===(y=null===(x=null===(u=null===(t=a.watchNextResponse)||void 0===t?void 0:t.contents)||void 0===u?void 0:u.twoColumnWatchNextResults)||void 0===x?void 0:x.results)||void 0===y?void 0:y.results)||void 0===E?void 0:E.contents;if(Dr&&Dr[1]){var $n=null===(O=null===(I=null===(G=null===(D=Dr[1].videoSecondaryInfoRenderer)||void 0===D?void 0:D.owner)||void 0===
G?void 0:G.videoOwnerRenderer)||void 0===I?void 0:I.thumbnail)||void 0===O?void 0:O.thumbnails;$n&&$n.length&&(a.Wg=$n[$n.length-1].url)}}}};
qG=function(a){return!!(a.u&&a.u.videoInfos&&a.u.videoInfos.length)};
uG=function(a){if(a.ea("html5_single_format_policy")&&a.Qj)return a.Qj;var b=a.Ra,c=!!a.i&&($B(a.i)||aC(a.i)||bC(a.i)),d=a.B,e=!!a.i&&a.i.Lk,f=rG(a),h=a.Ny;a.isAd();var l=a.isOtf(),m=sG(a,"html5_samsung_vp9_live"),n=new Pga;if(g.S(d.experiments,"html5_high_res_logging")||g.S(d.experiments,"html5_logging_format_selection"))n.i=!0;n.Ra=f;n.Ca=h&&d.u;cq("windows nt 5.1")&&!g.NC&&(n.u=!0);if(f=c)f=d.ea("disable_html5_ambisonic_audio")||!(g.lE(d)||d.ea("html5_enable_spherical")||d.ea("html5_enable_spherical3d"))?
!1:jha(d);f&&(n.Ma=!0);b&&(n.u=!0,n.Tb=!0);l&&!g.S(d.experiments,"html5_otf_prefer_vp9")&&(n.u=!0);qy(d.B,ry.CHANNELS)&&(g.S(d.experiments,"html5_enable_aac51")&&(n.va=!0),g.S(d.experiments,"html5_enable_ac3")&&(n.W=!0),g.S(d.experiments,"html5_enable_eac3")&&(n.X=!0),g.S(d.experiments,"html5_enable_ac3_gapless")&&(n.Aa=!0));g.S(d.experiments,"html5_block_8k_hfr")&&(n.Ya=!0);n.C=g.T(d.experiments,"html5_max_selectable_quality_ordinal");n.I=g.T(d.experiments,"html5_min_selectable_quality_ordinal");
!g.S(d.experiments,"html5_kaios_hd_killswitch")&&zD&&(n.tb=480);if(e||c)n.Sa=!1;n.Xa=!1;b=DC(d,n.l);0<b&&2160>b&&(NB()||g.S(d.experiments,"html5_format_hybridization"))&&(n.l.supportsChangeType=+NB(),n.J=b);2160<=b&&(n.Db=!0);BC()&&(n.l.serveVp9OverAv1IfHigherRes=0,n.Wb=!1);n.xc=m;m=g.Ls||rq()&&!m?!1:!0;n.Ga=m;n.ra=g.S(d.experiments,"html5_format_hybridization");n.ub=g.S(d.experiments,"html5_offline_av1_fallback");n.Y=g.S(d.experiments,"html5_disable_codec_on_errors_with_exp_backoff");n.ib=g.S(d.experiments,
"html5_disable_codec_on_platform_errors");gq()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(n.W=!0,n.X=!0);a.tq&&(n.L=a.tq);a.rq&&(n.B=a.rq);n.Da=a.isLivePlayback&&tG(a)&&a.B.ea("html5_drm_live_audio_51");return a.Qj=n};
Xha=function(a){a.Pc||a.i&&sy(a.i);var b={};a.i&&(b=oy(uG(a),a.B.B,a.i,function(c){return a.V("ctmp","fmtflt",c)}));
b=new QC(b,a.B.experiments,a.VE,Wha(a),function(c,d){a.Ua(c,d)});
g.H(a,b);a.Rj=!1;a.Y=!0;Sga(b,function(c){for(var d=g.q(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.l=a.Pc;e.J=a.kN;e.I=a.jN;break;case "widevine":e.B=a.YE}a.Pf=c;if(0<a.Pf.length&&(a.I=a.Pf[0],g.vG(a))){c=[];d=g.q(Object.entries(a.I.i));for(e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c.push(h+"_"+f)}a.Ua("drmProbe",c.join("."))}bG(a)})};
xG=function(a,b){var c;(c=!b)||(c=!(!kG(a)&&a.adaptiveFormats));if(c)return null;sG(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(hC=!0);c=wG(b);b=fC(c,a.Be,a.lengthSeconds,a.isLivePlayback,a.kf,a.B.experiments);0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=eC(c.url,c.sp,c.s),c=Number(c.get("max_sq"))||Infinity,isFinite(c)&&(a.Yk=!0)));if(c=b.isManifestless)c=!(a.ea("html5_manifestless_vp9")||a.ea("html5_manifestless_vp9_normal_latency")&&(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||!Yha(b));
return c?(b.dispose(),null):b};
mG=function(a,b){b=xG(a,b);if(!b)return!1;yG(a,b);return!0};
kG=function(a){return gq()?!zG(a):kq()?!(!a.Pc||!a.ea("html5_enable_safari_fairplay")):!1};
zG=function(a){return sG(a,"html5_enable_tvos_dash_dogfood")||a.ea("html5_enable_tvos_dash")&&(a.ea("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
Wha=function(a){return a.useCobaltWidevine?a.ea("html5_enable_tvos_widevine")&&gq()?zG(a):sG(a,"html5_enable_androidtv_cobalt_widevine")&&cq("cobalt")&&cq("android")?!0:!1:!1};
Yha=function(a){return a.isManifestless&&vB('video/webm; codecs="vp9"')&&g.Gb(a.i,function(b){return mB(b.info)})};
AG=function(a){return!(!a.i||!a.i.isManifestless)};
CG=function(a){if(!ay())return!1;if(a.ea("html5_streaming_debug"))return!0;if(g.Ls)return!1;if(g.fq()){var b=bq();if(16<=b&&17>b)return!1}return!AG(a)||"ULTRALOW"!=a.latencyClass&&21530001!=BG(a)?window.AbortController?a.ea("html5_streaming_xhr")||a.ea("html5_streaming_xhr_manifestless")&&AG(a)?!0:!1:!1:!0};
DG=function(a){return zy({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Gk:a.Gk,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:AG(a),TC:CG(a)})};
BG=function(a){return a.isLowLatencyLiveStream&&void 0!=a.i&&5<=rC(a.i)?21530001:a.liveExperimentalContentId};
jG=function(a){return gq()&&zG(a)?!1:!UC()||a.kF?!0:!1};
Zha=function(a){a.Y=!0;a.kd=!1;if(!a.va&&lG(a))Bha(a.videoId).then(function(d){var e=[];d=g.q(d);for(var f=d.next();!f.done;f=d.next())f=KF(f.value),e.push(f);a:if(d=e.join(","),e=xG(a,a.adaptiveFormats))if(d=xG(a,d)){f=g.q(Object.keys(d.i));for(var h=f.next();!h.done;h=f.next()){var l=h.value;h=d.i[l];l=e.i[l];if(!l||h.lastModified<l.lastModified){EG(a,!0);a.No=new NE(a.videoId,2,{Cr:!0});d.dispose();yG(a,e);break a}}e.dispose();yG(a,d)}else yG(a,e);a.Ua("dlr","")},function(){return mG(a,a.adaptiveFormats)}).then(function(){bG(a)});
else{iw(a.va)||g.qt(new g.Zr("DASH MPD Origin invalid: ",a.va));var b=a.va,c=g.T(a.B.experiments,"dash_manifest_version")||4;b=g.Id(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Id(b,{pacing:0}));Iga(b,a.B.experiments,a.isLivePlayback).then(function(d){a.Ha()||(yG(a,d,!0),ax("mrc",void 0,a.ib),bG(a))},function(d){a.Ha()||(a.Y=!1,a.V("dataloaderror",new g.JB("manifest.net.retryexhausted",!0,{backend:"manifest",
rc:d.status})))});
ax("mrs",void 0,a.ib)}};
bG=function(a){a.Ha()||(a.Y=!1,a.V("dataloaded"))};
yG=function(a,b,c){c=void 0===c?!1:c;a.i=b;g.H(a,b);b.ze=a.ze;b.Sg=a.Sg;b.C=a.SE;b.J=a.QE;FG(a)&&a.X.push("webgl");a.i.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.Mf=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.Ua,a),c?b.subscribe("refresh",a.nI,a):b.subscribe("cuepointsadded",a.NF,a));sy(b)&&(a.Rj=!0)};
tG=function(a){return a.Be?!0:!!a.i&&sy(a.i)};
dia=function(a,b){if(a.Ha())return Jt();a.u=null;a.Da=null;a.Db=null;var c=a.B.deviceParams.c;a.ea("disable_rqs")||(a.Tb=/^rq/.test(a.clientPlaybackNonce)||/^r/.test(a.clientPlaybackNonce)&&/UNPLUGGED/.test(c)||g.vG(a));return $ha(a,b).then(void 0,function(){return aia(a,b)}).then(void 0,function(){return bia(a)}).then(void 0,function(){return cia(a)})};
$ha=function(a,b){b=b||jG(a);return a.i&&!b?(rG(a)&&Mga(a.i,a.isLivePlayback),sG(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.B.B.l=!0),eia(a).then(function(){return Ufa(uG(a),a.B.B,a.i,a.I,function(c){return a.V("ctmp","fmtflt",c)},a.ea("html5_dynamic_av1_hybrid_threshold")).then(function(c){GG(a,c);
/^av/.test(a.clientPlaybackNonce)&&a.Qj&&a.Ua("av1",g.KB(a.Qj.l))})})):Jt()};
eia=function(a){if(!a.i||!a.i.i||!a.ea("html5_use_media_capability"))return Kt();for(var b=[],c=g.q(Object.keys(a.i.i)),d=c.next();!d.done;d=c.next())(d=a.i.i[d.value])&&d.info&&b.push(d.info);return XF(b)};
aia=function(a,b){if(b&&a.hlsvp)return Jt();if(a.hlsFormats){b=wG(a.hlsFormats);a.jo=nha(a.B,b);var c=a.clientPlaybackNonce;return rha(a.B,a.isAd(),b,a.Ii,c).then(function(d){for(var e,f,h=0,l=g.q(d),m=l.next();!m.done;m=l.next())m=m.value,(null===(f=null===(e=m.Uf())||void 0===e?void 0:e.audio)||void 0===f?void 0:f.i)>h&&(h=m.Uf().audio.i);2<h&&a.Ua("hlschl",""+h);HG(a,d)})}return Jt()};
bia=function(a){return a.xg&&a.dJ?uha(a.B,a.isAd(),a.xg).then(function(b){HG(a,b)}):Jt()};
cia=function(a){var b=wG(a.Yj,a.Dz);if(a.hlsvp){var c=Rha(a.hlsvp,a.clientPlaybackNonce,a.Ii);b.push(c)}return sha(a.B,a.isAd(),b,fia(a)).then(function(d){HG(a,d)})};
GG=function(a,b){a.u=b;b=a.getAvailableAudioTracks();b=b.concat(a.Si);for(var c=0;c<a.xz.length;c++)for(var d=a.xz[c],e=0;e<b.length;e++){var f=b[e],h=f.i.id==d.audioTrackId;if(f.i.isDefault&&c==a.hF||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.l=a.captionTracks[d.forcedCaptionTrackIndex]);
f.u=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}if(a.I&&a.u&&a.u.videoInfos&&!(0>=a.u.videoInfos.length)&&(b=pB(a.u.videoInfos[0]),b!=("fairplay"==a.I.flavor)))for(c=g.q(a.Pf),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.I=d;break}};
HG=function(a,b){a.Db=b;GG(a,new ky(g.Oc(a.Db,function(c){return c.Uf()})))};
fia=function(a){var b={cpn:a.clientPlaybackNonce,c:a.B.deviceParams.c,cver:a.B.deviceParams.cver};a.bp&&(b.ptk=a.bp,b.oid=a.DK,b.ptchn=a.BK,b.pltype=a.EK);return b};
g.IG=function(a){return kG(a)&&a.Pc?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.l&&a.l.Be||null};
JG=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.Aw(b.text):a.paidContentOverlayText};
KG=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?qd(b.durationMs):a.paidContentOverlayDurationMs};
LG=function(a){var b="";if(a.QB)return a.QB;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.MG=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
NG=function(a){return a.i&&!isNaN(qC(a.i))?qC(a.i):AG(a)?0:a.lengthSeconds};
OG=function(a){return!!(a.va||a.adaptiveFormats||a.Yj||a.xg||a.hlsvp)};
aG=function(a){var b=g.fb(a.X,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Y&&(OG(a)||g.fb(a.X,"heartbeat")||b)};
wG=function(a,b){a=Gp(a);var c={};if(b){b=g.q(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.q(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};
nG=function(a,b){var c,d;a.showShareButton=!!b;if(b=(null===(c=null===b||void 0===b?void 0:b.buttonRenderer)||void 0===c?void 0:c.navigationEndpoint)||(null===(d=null===b||void 0===b?void 0:b.buttonRenderer)||void 0===d?void 0:d.command))a.Xj=!!b.copyTextEndpoint};
cG=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.wi=c);if(a.wi){if(c=a.wi.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.wi.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.Ca=d,a.C=!0):(a.Ca="",a.C=!1);if(d=c.defaultThumbnail)a.Ec=CF(d);(d=c.videoDetails&&
c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer)&&oG(a,b,d);if(d=c.videoDetails&&c.videoDetails.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.Cz=d.title,a.Bz=d.byline,d.musicVideoType&&(a.musicVideoType=d.musicVideoType);a.sf=!!c.addToWatchLaterButton;nG(a,c.shareButton);if(c.playButton&&c.playButton.buttonRenderer&&c.playButton.buttonRenderer.navigationEndpoint&&(d=c.playButton.buttonRenderer.navigationEndpoint,d.watchEndpoint)){var e=d.watchEndpoint;e.watchEndpointSupportedOnesieConfig&&
e.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig&&(a.Po=new Gha(e.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig));a.ea("embeds_build_video_id_from_watchendpoint_killswitch")||(a.videoId=d.watchEndpoint.videoId||a.videoId)}c.videoDurationSeconds&&(a.lengthSeconds=qd(c.videoDurationSeconds));a.ea("web_player_include_innertube_commands")&&c.webPlayerActionsPorting&&IF(a,c.webPlayerActionsPorting);if(c.playlist&&c.playlist.playlistPanelRenderer){c=c.playlist.playlistPanelRenderer;
d=[];e=Number(c.currentIndex);if(c.contents)for(var f=0,h=c.contents.length;f<h;f++){var l=c.contents[f].playlistPanelVideoRenderer;if(l){var m=l.shortBylineText?g.Aw(l.shortBylineText):"",n=l.title?g.Aw(l.title):"",p=f===e?b.channel_path:"",r=f===e?b.profile_picture:"",t=f!==e||a.B.ea("embeds_enable_playlist_is_private_killswitch")?!1:a.isPrivate,u=f!==e||a.B.ea("embeds_enable_playlist_dni_killswitch")?!1:a.C,x=f!==e||a.B.ea("embeds_enable_playlist_dni_killswitch")?"":a.Ca;d.push({author:m,encrypted_id:l.videoId,
title:n,channel_path:p,profile_picture:r,is_private:t,is_dni:u,dni_color:x})}}b={index:c.currentIndex,list:c.playlistId,playlist_length:c.totalVideos,video:d};c.titleText&&(b.title=g.Aw(c.titleText));c.shortBylineText&&(b.author=g.Aw(c.shortBylineText));a.mF=b}}a.wi.playabilityStatus&&(a.Mj=a.wi.playabilityStatus,PG(a)&&(a.errorDetail="0",a.Mj&&(b=a.Mj.embeddedPlayerErrorMessageRenderer)))&&(a.lF=b.embeddedPlayerErrorMessageRenderer);(b=a.wi.attestation)&&GF(a,b)}};
pG=function(a,b,c,d){d={autonav:1,playnext:d};a.list&&(d.autoplay="1");if(b){if(b=b.autoplay)if(b=b.autoplay)if(b=b.sets)if(b=b[0])if(b=b.autoplayVideo)if((c=b.clickTrackingParams)&&(d.itct=c),b=b.watchEndpoint)a.autonav_watch_endpoint=b}else c&&(b=c.nextButton)&&(b=b.buttonRenderer)&&(b=b.navigationEndpoint)&&b.clickTrackingParams&&(d.itct=b.clickTrackingParams);d.itct||(d.feature="related-auto");a.endscreen_autoplay_session_data=g.Gd(d)};
oG=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);if(d=c.channelThumbnailEndpoint&&c.channelThumbnailEndpoint.channelThumbnailEndpoint)if(d=d.urlEndpoint&&d.urlEndpoint.urlEndpoint)b.channel_path=d.url;if(d=c.collapsedRenderer)if(d=d.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){var e=d.title;e&&(b.title=g.Aw(e));if(d=d.subtitle)b.subtitle=g.Aw(d)}if(c=c.expandedRenderer)if(c=c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(d=c.title)b.expanded_title=
g.Aw(d);if(d=c.subtitle)b.expanded_subtitle=g.Aw(d);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.wg=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.My=b.toggledServiceEndpoint||null,a.Ly=b.defaultServiceEndpoint||null):(a.My=b.defaultServiceEndpoint||null,a.Ly=b.toggledServiceEndpoint||
null))}};
g.QG=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
RG=function(a){return a.isLivePlayback&&a.allowLiveDvr};
g.SG=function(a){return!!a.i&&$B(a.i)};
g.TG=function(a){return!!a.i&&aC(a.i)};
FG=function(a){return g.TG(a)||g.SG(a)||g.UG(a)||g.VG(a)};
g.VG=function(a){return!!a.i&&bC(a.i)};
g.UG=function(a){return!!a.i&&Bga(a.i)};
gia=function(a){a.u=a.u.l};
g.WG=function(a){if(a.Iy)return null;var b=a.uJ;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.XG=function(a){return a.Iy?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.YG=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.ZG=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.q(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};
$G=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.B.Ca};
aH=function(a){if(a.isAd()&&a.videoId!=a.B.Fc)return a.B.Fc};
bH=function(a){return a.Cj||"detailpage"==$G(a)||a.mutedAutoplay};
cH=function(a){if(bH(a)){if("detailpage"==$G(a))return a.pj||0<a.tb;if(!("17_8"===a.adFormat&&!a.pj||"adunit"==$G(a)&&a.Rf))return!0}return!1};
g.dH=function(a){return a.oauthToken||a.B.Qd};
eH=function(a,b){b=void 0===b?!1:b;var c=1,d=g.T(a.B.experiments,"html5_default_ad_gain");d&&a.isAd()&&(c=d);d=a.Uj;a.u&&a.u.i&&a.u.i[0]&&a.nC[a.u.i[0].id]&&(d=a.nC[a.u.i[0].id]);b&&!a.qq&&null!=d&&(b=0,g.S(a.B.experiments,"html5_diff_bias_over_ad_content")&&(b=a.isAd()?0:3),d-=Math.min(0,b+Math.max(a.B.wg,g.T(a.B.experiments,"html5_stateful_audio_min_adjustment_value"))),a.qq=d);return Math.min(1,Math.pow(10,-d/20))||c};
rG=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===a.B.deviceParams.c&&"MUSIC"===a.B.deviceParams.ctheme;!a.Bd&&(gE(a.B)||c)&&b.includes(a.musicVideoType)&&(a.Bd=!0);if(b=g.fq())b=/Starboard\/([0-9]+)/.exec(g.Uc),b=10>(b?parseInt(b[1],10):NaN);c=a.B;c=("TVHTML5_CAST"===c.deviceParams.c||"TVHTML5"===c.deviceParams.c&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.B.deviceParams.ctheme;
!a.Bd&&(c||bE(a.B))&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.ea("cast_prefer_audio_only_for_atv_and_uploads")||a.ea("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.Bd=!0);return!a.B.deviceHasDisplay||a.Bd&&a.B.u};
gH=function(a){return fH(a)&&!!a.adaptiveFormats};
fH=function(a){return!!(a.ea("hoffle_save")&&a.td&&a.B.u)};
EG=function(a,b){if(a.td!=b&&(a.td=b)&&a.i){a=a.i;for(var c in a.i)b=a.i[c],b.u=!1,b.i=null}};
lG=function(a){return a.ea("hoffle_load")?!(!a.adaptiveFormats||!bF(a.videoId)||a.td):a.ea("woffle_orchestration")?!!a.cotn&&bF(a.videoId)&&!a.td:!1};
hH=function(a){if(!a.i||!a.l||!a.J)return!1;var b=a.i.i;return!!b[a.l.id]&&Hy(b[a.l.id].l.i)&&!!b[a.J.id]&&Hy(b[a.J.id].l.i)};
PG=function(a){return(a=a.Mj)&&a.showError?a.showError:!1};
g.vG=function(a){return a.ea("disable_rqs")?!1:sG(a,"html5_high_res_logging")};
sG=function(a,b){return a.ea(b)?!0:(a.fflags||"").includes(b+"=true")};
hia=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
hG=function(a,b){if(b=b.video_masthead_ad_quartile_urls)a.WC=b.quartile_0_url,a.GD=b.quartile_25_url,a.HD=b.quartile_50_url,a.JD=b.quartile_75_url,a.FD=b.quartile_100_url,a.jp=b.quartile_0_urls,a.zD=b.quartile_25_urls,a.AD=b.quartile_50_urls,a.BD=b.quartile_75_urls,a.qD=b.quartile_100_urls};
iG=function(a){return a?UC()?!0:iH&&5>jH?!1:!0:!1};
gG=function(a){var b={};a=g.q(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};
HF=function(a){if(a){if(lw(a))return a;a=mw(a);if(lw(a,!0))return a}return""};
kH=function(a){this.i=a};
iia=function(a){var b=new kH(a.G);return{eO:function(){return b}}};
lH=function(a,b){this.i=a;this.Ma=b||{};this.L=String(Math.floor(1E9*Math.random()));this.J={};this.W=0};
jia=function(a){switch(a){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}};
mH=function(){g.P.call(this);var a=this;this.i={};g.wi(this,function(){return Object.keys(a.i).forEach(function(b){return delete a.i[b]})})};
oH=function(){if(null===nH){nH=new mH;$k.getInstance().i="b";var a=$k.getInstance(),b="h"==Hk(a)||"b"==Hk(a),c=!(hh.getInstance(),!1);b&&c&&(a.C=!0,a.I=new gca)}return nH};
kia=function(a,b,c){a.i[b]=c};
lia=function(a){this.u=a;this.l={};this.i=Nf()?500:g.SD(a.T())?1E3:2500};
nia=function(a,b){if(!b.length)return null;b=b.filter(function(c){if(!c.mimeType)return!1;c.mimeType in a.l||(a.l[c.mimeType]=a.u.canPlayType(c.mimeType));return a.l[c.mimeType]?!!c.mimeType&&"application/x-mpegurl"==c.mimeType.toLowerCase()||!!c.mimeType&&"application/dash+xml"==c.mimeType.toLowerCase()||"PROGRESSIVE"==c.delivery:!1});
return mia(a,b)};
mia=function(a,b){for(var c=null,d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.minBitrate,h=e.maxBitrate;f>a.i||h<a.i||c&&!(f<c.minBitrate)||(c=e)}if(!c)for(c=null,d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.maxBitrate,h=e.minBitrate,f>a.i||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&h<c.minBitrate&&(c=e));if(!c)for(c=null,b=g.q(b),d=b.next();!d.done;d=b.next())d=d.value,e=d.minBitrate,f=d.maxBitrate,e<a.i||(!c||e<c.minBitrate?c=d:c&&e==c.minBitrate&&f>c.maxBitrate&&(c=d));return c};
pH=function(a,b){this.i=a;this.C=b;this.l=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
var c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
qH=function(a){return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",a.activeViewMeasurablePings||
[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",a.firstQuartilePings||[]],["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]]])};
oia=function(a){return(a=a.pings)?Object.fromEntries(qH(a)):{}};
rH=function(a,b,c,d,e){lH.call(this,a,oia(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Ra=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.u=new pH(0,[]);this.I=this.Aa=null;this.Sa=b;this.Ga=[];this.C={};this.Ca=null;this.l=0;this.X=this.ra=this.B=null;this.va=e;this.Y=null;b=this.i.skipOffsetMilliseconds||0;0<b&&(this.Ca=b);this.C=Fp(this.i.playerVars||"");if(b=this.i.external)this.Ga=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.l=b/1E3,this.C.length_seconds=
this.l.toString()),(b=nia(this.Sa,this.Ga))?(this.ra=b.uri,b=b.mimeType,this.C.url_encoded_third_party_media="url="+encodeURIComponent(this.ra)+"&type="+encodeURIComponent(b)):this.X=Error("Nonplayable third party ad media file.");else if(this.B=this.i.externalVideoId||null,this.Aa=this.C.ucid||null,this.l=sD(this.l,this.C.length_seconds),this.va&&this.B&&(this.Y=this.va(this.B)),this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=JSON.parse(this.C.cta_conversion_urls)}catch(f){g.xo(f)}this.I=
this.i.clickthroughEndpoint||null;this.u=new pH(0,[this.l])};
sH=function(a){var b=a.C||{};1<a.u.l&&(b.slot_pos=a.u.i);b.autoplay="1";return b};
tH=function(a){return 0<a.l&&7.05>=a.l};
uH=function(){this.i=[];this.u=null;this.l=0};
vH=function(a,b){b&&a.i.push(b)};
wH=function(a){if(!a)return[];var b=[];a=g.q(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.q(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
xH=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};
yH=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
zH=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
pia=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=wH(a.impressionCommands)||[];b.error=wH(a.errorCommands)||[];b.mute=wH(a.muteCommands)||[];b.unmute=wH(a.unmuteCommands)||[];b.pause=wH(a.pauseCommands)||[];b.rewind=wH(a.rewindCommands)||[];b.resume=wH(a.resumeCommands)||[];b.skip=wH(a.skipCommands)||[];b.close=wH(a.closeCommands)||[];b.clickthrough=wH(a.clickthroughCommands)||[];b.fullscreen=wH(a.fullscreenCommands)||[];b.active_view_viewable=wH(a.activeViewViewableCommands)||
[];b.active_view_measurable=wH(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=wH(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=wH(a.endFullscreenCommands)||[];b.channel_clickthrough=wH(a.channelClickthroughCommands)||[];b.abandon=wH(a.abandonCommands)||[];b.progress=xH(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=xH(a.progressCommands.filter(function(c){return zH(c)&&be(yH(c),0)}));
b.first_quartile=xH(a.progressCommands.filter(function(c){return zH(c)&&be(yH(c),.25)}));
b.midpoint=xH(a.progressCommands.filter(function(c){return zH(c)&&be(yH(c),.5)}));
b.third_quartile=xH(a.progressCommands.filter(function(c){return zH(c)&&be(yH(c),.75)}));
b.complete=xH(a.progressCommands.filter(function(c){return zH(c)&&be(yH(c),1)}));
return b};
AH=function(a){lH.call(this,a,pia(a));this.l=a.questions?a.questions.reduce(function(b,c){return(c=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer)?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0};
BH=function(a,b,c,d){this.id=b;this.Y=a.placementStartPings||[];this.X=a.placementEndPings||[];this.B=d.Ld;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.u=(this.I=e.getAdBreakUrl||"")?0:2;d.i=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=yw(b,d);if(null==f)d=new vw(b,new yn(-1,-1),!1,"adcuerange:invalid",
2),d.deactivate(),d=[null,d];else{e=":"+(go.getInstance().i++).toString(36);var h=d.daiEnabled||d.Ld;f=new vw(b,f,d.visible&&!h,"adcuerange:"+e,2);h=null;if(d.Ld||0<d.i)if(d=yw(b,d,!0))h=new vw(b,d,!1,"prefetch:"+e,3),f.u=h,h.u=f;d=[h,f]}this.ra=d[0];this.i=d[1];this.l=c;this.J=!1;this.C={};this.W={};this.L=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
CH=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i.i||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.i.i};
EH=function(a){var b={};qia(a,b);ria(b);b.LACT=DH(function(){return zp().toString()});
b.VIS=DH(function(){return a.getVisibilityState().toString()});
b.SDKV="h.3.0";b.VOL=DH(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
b.VED="";return b};
sia=function(a){var b={};if(!a.kind)return g.pt(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.pt(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=DH(Ya(Math.round(qd(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=DH(Ya("0"));return b};
DH=function(a){return{toString:function(){return a()}}};
tia=function(a,b,c){function d(l,m){(m=b[m])&&(f[l]=m)}
function e(l,m){(m=b[m])&&(f[l]=h(m))}
if(!b||g.Qb(b))return a;var f=Object.assign({},a),h=c?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
qia=function(a,b){b.CPN=DH(function(){var c;(c=a.getVideoData(1))?c=c.clientPlaybackNonce:(g.qt(Error("Video data is null.")),c=null);return c});
b.AD_MT=DH(function(){return FH(a,2)});
b.MT=DH(function(){return FH(a,1)});
b.P_H=DH(function(){return a.Wa().Og().height.toString()});
b.P_W=DH(function(){return a.Wa().Og().width.toString()});
b.PV_H=DH(function(){return a.Wa().getVideoContentRect().height.toString()});
b.PV_W=DH(function(){return a.Wa().getVideoContentRect().width.toString()})};
FH=function(a,b){a=1E3*a.getCurrentTime(b,!1);return Math.round(Math.max(0,a)).toString()};
ria=function(a){a.CONN=DH(Ya("0"));a.WT=DH(function(){return Date.now().toString()})};
GH=function(a){var b=Object.assign({},{});b.MIDROLL_POS=CH(a)?DH(Ya(Math.round(a.i.start/1E3).toString())):DH(Ya("0"));return b};
uia=function(a){var b={};b.SLOT_POS=DH(Ya(a.u.i.toString()));return b};
HH=function(a,b){var c=b&&-1!=b.indexOf("load_timeout")?"402":"400",d={};return d.YT_ERROR_CODE=a.toString(),d.ERRORCODE=c,d.ERROR_MSG=b,d};
IH=function(a){for(var b={},c=g.q(via),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
JH=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c={};Object.assign.apply(Object,[c].concat(g.ma(b)));return c};
KH=function(){};
LH=function(a){this.i=a};
MH=function(a){this.i=a;Mp()};
wia=function(a){g.F.call(this);var b=this;this.l=a;this.i=null;g.wi(this,function(){return b.i=null})};
xia=function(a){return NH(a)&&1==a.getPlayerState(2)};
NH=function(a){a=a.Ic();return void 0!==a&&2==a.getPlayerType()};
OH=function(a){a=a.T();return QD(a)&&!g.fE(a)&&"desktop-polymer"==a.playerStyle};
PH=function(a,b){var c=a.T();GD(c)||"3"!=c.controlsType||a.Wa().Ju(b)};
yia=function(a){switch(a){case "abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "complete":return"complete";case "end_fullscreen":return"exitfullscreen";case "first_quartile":return"firstquartile";case "fullscreen":return"fullscreen";case "impression":return"impression";case "midpoint":return"midpoint";
case "mute":return"mute";case "pause":return"pause";case "progress":return"progress";case "resume":return"resume";case "skip":return"skip";case "start":return"start";case "third_quartile":return"thirdquartile";case "unmute":return"unmute"}return null};
zia=function(a){this.i=a;var b=$k.getInstance(),c=a.Yd();b.B!==c&&((b.B=c)||Pca(b));g.S(a.T().experiments,"active_view_stop_starting_measurement_on_loaded")&&Kg(hh.getInstance().featureSet,"ssmol",1)};
Aia=function(a,b,c,d,e,f,h){f=void 0===f?new MH(new LH(d.getVideoData(1))):f;h=void 0===h?!1:h;g.F.call(this);this.l=a;this.J=b;this.u=c;this.i=d;this.W=f;this.I=Array.from(this.l.Ma.progress||[]);this.I.sort(function(l,m){return l.offsetMilliseconds-m.offsetMilliseconds});
this.B={ID:.25,SECOND:.5,cF:.75};this.C=null;this.L=h};
Dia=function(a,b,c){!QH(a)&&0<c&&(RH(a,b),SH(a)?Bia(a,b,c):Cia(a,b,c))};
UH=function(a,b){QH(a)||(SH(a)?(RH(a,0,!0),Bia(a,b,b)):(RH(a,0,!0),Cia(a,0,0,!0)),TH(a,"complete"))};
RH=function(a,b,c){for(c=void 0===c?!1:c;a.l.W<a.I.length;){var d=VH(a,"progress"),e=a.I[a.l.W];if(e.offsetMilliseconds<=1E3*b||c){var f=e.baseUrl;f&&WH(a,f,d,e.headers||[]);a.l.W++}else break}};
Cia=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.B.ID||d)&&TH(a,"first_quartile");(b>=c*a.B.SECOND||d)&&TH(a,"midpoint");(b>=c*a.B.cF||d)&&TH(a,"third_quartile")};
XH=function(a,b,c,d){if(null==a.C){if(c<d||1<c-d)return}else if(a.C>d||d>c)return;TH(a,b)};
Bia=function(a,b,c){if(0<c&&0<b){var d=a.i.rb(a.i.getPresentingPlayerType());g.V(d,16)||g.V(d,32)||(XH(a,"first_quartile",b,c*a.B.ID),XH(a,"midpoint",b,c*a.B.SECOND),XH(a,"third_quartile",b,c*a.B.cF))}a.C=b};
YH=function(a,b){for(var c=VH(a,b),d=g.q(a.l.Ma[b]||[]),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.baseUrl;f&&WH(a,f,c,e.headers||[])}a.l.J[b]=!0};
TH=function(a,b){a.l.J.hasOwnProperty(b)||YH(a,b)};
ZH=function(a,b){return a.l.J.hasOwnProperty(b)};
WH=function(a,b,c,d){for(var e=a.W,f=e.send,h={},l=EH(a.i),m=g.q(Object.keys(l)),n=m.next();!n.done;n=m.next())n=n.value,h[n]=l[n].toString();a=Object.assign(h,a.u);f.call(e,b,a,c,d)};
VH=function(a,b){var c=a.J;a=a.l;if(a.Rt())if(b=yia(b),null==b)c={};else{var d;(d=a.Da()())||(d=(d=c.i)&&d.Ic?(d=d.Ic())&&2==d.getPlayerType()?$H(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.i.isFullscreen()},c=el(b,a.L,c)):c={}}else c={};return c?Object.assign({},c):{}};
SH=function(a){return!g.S(a.i.T().experiments,"html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.L};
QH=function(a){return SH(a)&&!ZH(a,"impression")};
Eia=function(a){return SH(a)&&ZH(a,"seek")};
bI=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.i=e;this.l=f;this.id=aI(a)};
aI=function(a){return a+(":"+(go.getInstance().i++).toString(36))};
cI=function(a){this.i=a};
Fia=function(a,b){if(0===b||1===b&&(a.i.i||g.fE(a.i)||g.SD(a.i)||TD(a.i)||!g.es))return!0;a=g.oe("video-ads");return null!=a&&"none"!==ig(a,"display")};
g.dI=function(a,b){this.state=a;this.xn=b};
eI=function(a,b){return g.V(a.state,b)&&!g.V(a.xn,b)?1:!g.V(a.state,b)&&g.V(a.xn,b)?-1:0};
g.fI=function(a,b){return 0<eI(a,b)};
gI=function(a,b,c,d,e,f){f=void 0===f?0:f;g.P.call(this);this.G=a;this.l=d;this.u=e;this.u.i[b.L]=this;this.u.subscribe("adactiveviewmeasurable",this.nJ,this);this.u.subscribe("adfullyviewableaudiblehalfdurationimpression",this.oJ,this);this.u.subscribe("adoverlaymeasurableimpression",this.pJ,this);this.u.subscribe("adoverlayunviewableimpression",this.qJ,this);this.u.subscribe("adoverlayviewableendofsessionimpression",this.rJ,this);this.u.subscribe("adoverlayviewableimmediateimpression",this.sJ,this);
this.u.subscribe("adviewableimpression",this.tJ,this);this.ad=b;this.Aa=[];this.macros=c;this.J=!1;this.va=!Fia(new cI(this.G.T()),f)};
hI=function(a,b){pb(a.Aa,b);Gia(a,b,1)};
Hia=function(a){a=a.l;a.u=JH(a.u,HH(0,"No playable media files can be selected"));TH(a,"error")};
Gia=function(a,b,c){0!=b.length&&(b=g.Oc(b,function(d){return new zw(d,c,d.id)}),a.V("onAdUxUpdate",b))};
iI=function(a){var b={};b.abandon=a.abandonCommands&&wH(a.abandonCommands.commands)||[];lH.call(this,a,b)};
jI=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;bI.call(this,"ad-action-interstitial",a,b,c,d);this.i=d;this.MC=e;this.Ux=f};
kI=function(a,b,c,d,e,f){gI.call(this,a,b,c,d,e,1);this.B=b;this.i=b.i.durationMilliseconds||0;this.Cb=null;this.C=f};
lI=function(a){lH.call(this,a);this.l=Fp(this.i.playerVars||"")};
mI=function(){lH.apply(this,arguments)};
nI=function(){lH.apply(this,arguments)};
oI=function(){lH.apply(this,arguments)};
pI=function(){lH.apply(this,arguments)};
qI=function(){lH.apply(this,arguments)};
Iia=function(a,b,c,d,e,f,h,l,m){this.W=a;this.B=b;this.I=c;this.i=d;this.C=e;this.L=f;this.J=h;this.u=l;this.l=m};
rI=function(a,b,c,d,e){gI.call(this,a,b,c,d,e);var f=this;this.C=b;this.i=new g.J(function(){f.Te("load_timeout")},1E4);
g.H(this,this.i);this.B=new Yt(this);g.H(this,this.B)};
Jia=function(a){bI.call(this,"ad-message",a)};
sI=function(a,b,c,d,e,f,h){gI.call(this,a,b,c,d,e);var l=this;this.B=b;this.L=b.i.durationMs||0;this.I=h;this.W=!1;this.C=this.i=0;this.X=function(){var m=l.G.getProgressState().current;m<l.i?l.Yf():m>l.C&&l.If()}};
Lia=function(a){if(a.I&&a.W){a.W=!1;a=g.q(a.I.listeners);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.i){var c=b.i;b.i=void 0;b.l=void 0;Kia(b.u(),c)}else Q("Received AdNotify terminated event when no slot is active")}};
tI=function(a,b,c,d){bI.call(this,"invideo-overlay",a,b,c,d);this.i=d};
uI=function(a,b,c,d,e){gI.call(this,a,b,c,d,e);this.i=b};
Mia=function(a,b){bI.call(this,"persisting-overlay",a,b)};
vI=function(a,b,c,d,e){gI.call(this,a,b,c,d,e);this.i=b};
Nia=function(){bI.call(this,"ad-attribution-bar");this.adPodPositionInfoString=null;this.adPodPosition=0;this.adPodLength=1;this.adBreakLengthSeconds=0;this.adBadgeText=null;this.adBreakRemainingLengthSeconds=0;this.adBreakEndSeconds=null;this.adVideoId=""};
g.wI=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={Fy:c.Fy},e=d.next())e=e.value,c.Fy=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.Fy}}(c));
return a};
xI=function(a){return a?g.Aw(a):null};
Oia=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&a.push(c.baseUrl);return 0===a.length?[]:a};
Pia=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
Qia=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
Tia=function(a,b,c,d){if(b.button&&b.button.buttonRenderer&&(!b.button.buttonRenderer.command||!b.button.buttonRenderer.command.adInfoDialogChoiceEndpoint)&&b.button.buttonRenderer.serviceEndpoint&&b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint){var e=b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint.dialog;e&&e.adInfoDialogRenderer&&(Ria(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=xI(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
Sia(a,b,c,d))}};
Ria=function(a,b,c){var d=xI(b.confirmLabel)||"",e=xI(b.title)||"",f=[];if(b.adReasons)for(var h=g.q(b.adReasons),l=h.next();!l.done;l=h.next())f.push(xI(l.value)||"");h=b.headerTitle?g.Aw(b.headerTitle):"";d={closeButton:d,menuTitle:h,targetingReasonHeader:e,targetingReasons:f,dialogMessage:xI(b.dialogMessage)||"",adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdInfo=d;a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.q(b.impressionEndpoints),
n=m.next();!n.done;n=m.next())c(n.value)};
a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}};
Sia=function(a,b,c,d){if(b.navigationEndpoint&&b.navigationEndpoint.adFeedbackEndpoint&&b.navigationEndpoint.adFeedbackEndpoint.content){var e=b.navigationEndpoint.adFeedbackEndpoint.content.adFeedbackRenderer;if(e){var f={goneText:"",questionText:"",undoText:"",hoverText:xI(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=Oia(b.navigationEndpoint);var h=Qia(b[1]),l=[Qia(b[0])];(b=Pia(e))&&l.push(b);var m=!1;a.muteAdClicked=function(){m=!0;c(h)};
a.muteAd=function(){m||c(h);m=!1;for(var n=g.q(l),p=n.next();!p.done;p=n.next())c(p.value)};
Uia(a,e,d)}}};
Uia=function(a,b,c){a.muteAdInfo.goneText=xI(b.title)||"";a.muteAdInfo.questionText=xI(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=xI(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)};
a=a.muteAdInfo.surveyOptions;b=g.q(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=xI(e.reason)||"";e=Oia(e.endpoint)[0];a.push({label:d,url:e})}};
Via=function(a,b){var c=new Nia;c.adBadgeText="Ad";1<a.l&&(c.adPodPositionInfoString=g.wI("$AD_INDEX of $ADS_COUNT",{AD_INDEX:String(a.i+1),ADS_COUNT:String(a.l)}));c.adBreakLengthSeconds=a.adBreakLengthSeconds;c.adBreakRemainingLengthSeconds=a.adBreakRemainingLengthSeconds;c.adPodPosition=a.i+1;c.adPodLength=a.l;null!=a.u&&(c.adBreakEndSeconds=a.u/1E3);b&&(c.adVideoId=b);return c};
yI=function(a,b,c,d,e,f,h){this.u=a;this.B=b;this.i=EH(d);if(f)for(a=g.q(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.i[b]=f[b];this.C=c;this.J=d;this.I=e;this.l=h};
Wia=function(a,b,c,d){b.isSkippable=!0;b.skipTime=c.skipOffsetMilliseconds?Math.floor(c.skipOffsetMilliseconds/1E3):0;if(c.skippableRenderer)switch(Object.keys(c.skippableRenderer)[0]){case "skipButtonRenderer":var e=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var f;if(f=a.l)f=a.l,f=g.SD(f.G.T())&&g.S(f.G.T().experiments,"html5_check_video_ad_completed_before_ping_skip_on_tv");f&&d&&d()||((f=e.adRendererCommands&&e.adRendererCommands.clickCommand)?a.wd(f):a.C.Xm())};
b.skipShown=function(){a.wd(e.adRendererCommands&&e.adRendererCommands.impressionCommand)}}};
Xia=function(a,b,c){Tia(b,c,function(d){a.wd(d)},function(d){a.sendAdsPing(d)})};
Yia=function(a){if(g.S(a.J.T().experiments,"dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.B;for(var b={},c=g.q(Object.keys(a.i)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.i[d].toString();return Object.assign(b,a.B)};
Zia=function(){return{adNextParams:"",adSystem:0,attributionInfo:null,clickThroughUrl:"",executeCommand:function(){},
instreamAdPlayerOverlayRenderer:null,instreamSurveyAdRenderer:null,slidingTextPlayerOverlayRenderer:null,isBumper:!1,isPostroll:!1,isSkippable:!1,muteAdInfo:null,skipTime:0,videoId:"",videoUrl:"",whyThisAdInfo:null,muteAd:function(){},
muteAdClicked:function(){},
sendAdsPing:function(){},
skip:function(){},
endSurveyOnSubmitted:function(){},
skipShown:function(){},
whyThisAdClicked:function(){},
whyThisAdClosed:function(){},
daiEnabled:!1,remoteSlotsData:null,adBreakRemainingLengthSeconds:null}};
$ia=function(a,b,c,d,e,f,h,l){this.i=c;this.l=new yI(a,b,d,e,h,void 0,f);this.u=l};
aja=function(a,b,c,d){var e=Zia();e.instreamAdPlayerOverlayRenderer=b;c&&(e.adNextParams=c);e.executeCommand=function(f){a.l.wd(f)};
if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":Wia(a.l,e,b.skipOrPreviewRenderer.skipAdRenderer,d)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":Xia(a.l,e,b.adInfoRenderer.adHoverTextButtonRenderer)}e.isBumper=tH(a.i)&&!e.isSkippable;e.isPostroll=a.i.isPostroll;a.i.isSkippable();b=a.i.B;c=a.i.getVideoUrl();b?e.videoId=b:c&&(e.videoUrl=c);if(b=(b=a.i.I)&&b.urlEndpoint)e.clickThroughUrl=b.url||"";e.sendAdsPing=
function(f){a.l.sendAdsPing(f)};
e.daiEnabled=a.u;e.remoteSlotsData=a.i.Y;return e};
cja=function(a){var b,c;if(!a.questions||1!==a.questions.length||!a.playbackCommands)return!1;a=(null===(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===b?void 0:b.surveyAdQuestionCommon)||(null===(c=a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer)||void 0===c?void 0:c.surveyAdQuestionCommon);return bja(a)?!0:!1};
dja=function(a){a=((null===a||void 0===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?void 0:b.surveyAdQuestionCommon,b=bja(a)):b=!1:b=!1;return b};
bja=function(a){if(!a)return!1;a=(a.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;var b=((null===a||void 0===a?void 0:a.adInfoRenderer)||{}).adHoverTextButtonRenderer;return((null===a||void 0===a?void 0:a.skipOrPreviewRenderer)||{}).skipAdRenderer&&b?!0:!1};
fja=function(a,b,c,d,e,f){this.i=new yI(a,b,c,d,e,eja(f))};
gja=function(a,b){var c=Zia();c.instreamSurveyAdRenderer=b;c.executeCommand=function(d){a.i.wd(d)};
b=("instreamSurveyAdSingleSelectQuestionRenderer"in b.questions[0]?b.questions[0].instreamSurveyAdSingleSelectQuestionRenderer:b.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer;if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":Wia(a.i,c,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":Xia(a.i,
c,b.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(d){a.i.sendAdsPing(d)};
return c};
eja=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=DH(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=DH(a);return b};
zI=function(a,b,c){g.P.call(this,!0);var d=this;this.I=b;this.C=c;this.l=a;this.Cb=new g.Cm(200);this.Cb.Na("tick",function(){var e=Date.now(),f=e-d.B;d.B=e;d.i+=f;d.i>=d.l&&(d.i=d.l,d.Cb.stop());e=d.i/1E3;d.C&&d.C.Rb(e);hja(d,{current:e,duration:d.l/1E3})});
g.H(this,this.Cb);this.i=0;this.u=null;g.wi(this,function(){d.u=null});
this.B=0};
hja=function(a,b){a.I.La("onAdPlaybackProgress",b);a.u=b};
AI=function(a){bI.call(this,"survey",a)};
BI=function(a,b,c,d,e,f,h){gI.call(this,a,b,c,d,e,1);var l=this;this.C=b;this.B=new Yt;g.H(this,this.B);this.B.N(this.G,"resize",function(){450>l.G.Wa().Og().width&&(g.$t(l.B),l.Yf())});
this.L=0;this.I=h(this,function(){return""+(Date.now()-l.L)});
if(this.i=g.SD(a.T())?new zI(1E3*b.l,a,f):null)g.H(this,this.i),this.B.N(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&(m=l.C.i,(m=m.questions&&m.questions[0])?(m=(m=m.instreamSurveyAdMultiSelectQuestionRenderer||m.instreamSurveyAdSingleSelectQuestionRenderer)&&m.surveyAdQuestionCommon,l.I.wd(m&&m.timeoutCommands)):g.pt(Error("Expected a survey question in InstreamSurveyAdRenderer.")))})};
ija=function(a,b){bI.call(this,"survey-interstitial",a,b)};
CI=function(a,b,c,d,e){gI.call(this,a,b,c,d,e,1);this.i=b};
jja=function(a){bI.call(this,"ad-text-interstitial",a)};
DI=function(a,b,c,d,e,f){gI.call(this,a,b,c,d,e);this.B=b;this.i=b.i.durationMilliseconds||0;this.Cb=null;this.C=f};
kja=function(a,b){var c=void 0===c?!0:c;var d=g.M("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.xd(window.location.href);e&&d.push(e);e=g.xd(a);if(g.fb(d,e)||!e&&nc(a,"/"))if(g.Qo("autoescape_tempdata_url")&&(d=document.createElement("a"),g.hd(d,a),a=d.href),a&&(a=zd(a),d=a.indexOf("#"),a=0>d?a:a.substr(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.uu()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&(c="ST-"+pd(a).toString(36),b=b?g.Gd(b):"",g.Sq(c,b,f||5))}else f=b,b="ST-"+pd(a).toString(36),
f=f?g.Gd(f):"",g.Sq(b,f,5)};
g.lja=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.Id(a,b)+c;a=a instanceof g.Dc?a:g.Kc(a);d.href=g.Ec(a)};
g.EI=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.M("EVENT_ID");d&&(b.ei||(b.ei=d));b&&kja(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.lja(a))};
g.FI=function(a,b,c,d){c&&kja(a,c);c=g.Ic(a);c=g.Ec(c);a!=c&&zo(Error("Unsafe window.open URL: "+a));a=c;b=b||pd(a).toString(36);var e,f;if(d&&"function"===typeof(null==(e=document.featurePolicy)?void 0:e.features)&&(null==(f=document.featurePolicy)?0:f.features().includes("conversion-measurement")))try{window.open(a,b,void 0,d);return}catch(h){}window.open(a,b)};
mja=function(a){a=void 0===a?null:a;bI.call(this,"ad-channel-thumbnail");this.channelIconThumbnailUrl=a};
nja=function(a){a=void 0===a?null:a;bI.call(this,"ad-title");this.videoTitle=a};
oja=function(a){a=void 0===a?null:a;bI.call(this,"advertiser-name");this.channelName=a};
GI=function(a,b,c,d,e){e=void 0===e?!1:e;bI.call(this,"player-overlay",a,{},b,d);this.u=c;this.i=d;this.Ux=e};
pja=function(a){bI.call(this,"skip-button",a)};
qja=function(a){bI.call(this,"visit-advertiser",a);var b={};var c=a.text;a=a.navigationEndpoint;null!=c&&null!=c.runs&&null!=a?(b.runs=[g.Ub(c.runs[0])],b.runs[0].navigationEndpoint=a):(b={text:"Visit advertiser's site"},a&&(b.navigationEndpoint=a),b={runs:[b]});this.visitAdvertiserLabel=b};
HI=function(a,b,c,d,e,f,h,l,m,n,p,r){gI.call(this,a,b,c,d,e,1);var t=this;this.nB=!0;this.Y=n;this.i=b;this.B=h;this.Da=new Yt(this);g.H(this,this.Da);this.I=new g.J(function(){t.Te("load_timeout")},1E4);
g.H(this,this.I);this.X=!1;this.Ma=m(this);this.Ga=f;this.L=l;this.C=p;this.W=r;this.ra=this.Ca=!1};
rja=function(a){if(a.L&&g.S(a.G.T().experiments,"enable_topsoil_wta_for_halftime")){var b=a.i.u,c=b.B,d=b.u,e=b.i;b=b.C;if(void 0===c)g.pt(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.pt(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.i.l)}};
LI=function(a,b){if(null!==a.Y&&(a.Ca||II(a.C))){a.Ca=!1;var c=sja(a);a=g.q(a.Y.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;II(d.Ka.get())&&!d.i&&"aderror"===f&&(tja(d,e,[],!1),uja(d.u(),d.l),vja(d.u(),d.l),h=!0);if(d.i&&d.i.layoutId===e){if(II(d.Ka.get()))switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}else e="adabandoned"===f?"abandoned":"normal";JI(d.u(),d.l,d.i,e);if(h){e=d.u();h=d.l;KI(e.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
h);e=g.q(e.Ud);for(f=e.next();!f.done;f=e.next())f.value.Gi(h);Kia(d.u(),d.l)}d.l=null;d.i=null}else II(d.Ka.get())||Q("Received AD_ENDED for unknown layout")}}};
MI=function(a){return(a=a.G.getVideoData(2))?a.clientPlaybackNonce:""};
sja=function(a){if(a=a.i.i.elementId)return a;g.pt(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
wja=function(a,b){b=aja(a.Ma,b,a.i.i.adNextParams||"",function(){return a.ra});
b.attributionInfo=Via(a.i.u,a.i.B||"");a.G.La("onAdInfoChange",b);a.ra=!1};
NI=function(a){var b=a.i.i,c=b.playerOverlay&&b.playerOverlay.instreamAdPlayerOverlayRenderer;c||(c={});var d=a.G.T();if(g.fE(d)&&!c.skipOrPreviewRenderer){var e=a.G.getDuration(2);isFinite(e)&&33<e&&!a.i.isSkippable()&&!g.fE(d)&&g.pt(new g.Zr("Instream ad is skippable by length, but was was marked nonskippable.",{adLengthSecs:e,IVAR:b}));d={};a.i.isSkippable()&&!tH(a.i)?d.skipAdRenderer=xja(a):d.adPreviewRenderer=yja(a,!1,tH(a.i));c.skipOrPreviewRenderer=d}c.skipOrPreviewRenderer&&g.Qb(c.skipOrPreviewRenderer)&&
g.pt(new g.Zr("IAPOR.skipOrPreview was filled, but empty.",b));return c};
xja=function(a){var b={preskipRenderer:{}};b.preskipRenderer.adPreviewRenderer=yja(a,!0,!1);b.skippableRenderer={};a=b.skippableRenderer;var c={message:{}};c.message.text="Skip Ad";a.skipButtonRenderer=c;return b};
yja=function(a,b,c){var d=a.G.getVideoData(1),e={};if(b||c){var f={},h={};c=c?g.wI("Your video will begin in $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"}):g.wI("You can skip to video in $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"});h.text=c;h.isTemplated=!0;f.templatedAdText=h;e.templatedCountdown=f}else f={},h=g.wI("Video will play after ad",{NEW_LINE:"\n"}),f.text=h,f.isTemplated=!1,e.staticPreview=f;b&&(e.durationMilliseconds=5E3);e.thumbnail={};b=e.thumbnail;
f={};f.url=$D(a.G.T(),d.videoId,"mqdefault.jpg");f.width=320;f.height=180;b.thumbnail={thumbnails:[f]};return e};
zja=function(a){function b(p,r){p=a.JS;var t=Object.assign({},{});t.FINAL=DH(Ya("1"));t.SLOT_POS=DH(Ya("0"));return JH(p,IH(t),r)}
function c(p){return null==p?{create:function(){return null}}:{create:function(r,t,u){var x=b(r,t);
t=a.iy(r,x);r=p(r,x,t,u);g.H(r,t);return r}}}
var d=c(function(p,r,t){return new uI(a.G,p,r,t,a.Ck)}),e=c(function(p,r,t){return new kI(a.G,p,r,t,a.Ck,a.Pa)}),f=c(function(p,r,t){return new vI(a.G,p,r,t,a.Ck)}),h=c(function(p,r,t){return new DI(a.G,p,r,t,a.Ck,a.Pa)}),l=c(function(p,r,t){return new CI(a.G,p,r,t,a.Ck)}),m=c(function(p,r,t){return new sI(a.G,p,r,t,a.Ck,a.Pa,a.Rl)}),n=c(function(p,r,t){return new rI(a.G,p,r,t,a.Ck,a.Pa)});
this.pN=new Iia({create:function(p,r){var t=JH(b(p,r),IH(uia(p)));r=a.iy(p,t);var u=new HI(a.G,p,t,r,a.Ck,a.EN,a.Pa,a.daiEnabled,function(x){return new $ia(a.Pa,t,p,x,a.G,a.vf,a.Bj,a.daiEnabled)},a.Sl,a.vf,a.Kd);
g.H(u,r);return u}},d,{create:function(p,r){var t=a.iy(p,r);
p=new BI(a.G,p,r,t,a.Ck,a.Pa,function(u,x){return new fja(a.Pa,r,u,a.G,a.Bj,x)});
g.H(p,t);return p}},e,f,h,l,m,n)};
OI=function(a,b){this.l=a;this.i={};this.u=void 0===b?!1:b};
Aja=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{IN:new yn(b,c),OO:new bw(b,c-b,a.context,a.identifier,a.event,a.i)}};
PI=function(){this.i=[]};
Bja=function(a,b,c){var d=g.ub(a.i,b);if(0<=d)return b;b=-d-1;return b>=a.i.length||a.i[b]>c?null:a.i[b]};
Cja=function(){this.i=new PI};
QI=function(a){this.i=a};
Dja=function(a){a=[a,a.u].filter(function(d){return!!d});
for(var b=g.q(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
Eja=function(a,b,c){this.u=a;this.i=b;this.l=c;this.B=a.getCurrentTime()};
Gja=function(a,b){var c=void 0===c?Date.now():c;if(a.l){b=g.q(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=c,f=a.i;RI({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:Fja(d.event),cuepointId:d.identifier,totalCueDurationMs:1E3*d.durationSecs,playheadTimeMs:d.i,cueStartTimeMs:1E3*d.startSecs,cuepointReceivedTimeMs:e,contentCpn:f}});"unknown"===d.event&&SI("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.i);d=d.startSecs+d.i/1E3;d>a.B&&a.u.getCurrentTime()>d&&SI("DAI_ERROR_TYPE_LATE_CUEPOINT",
a.i)}}};
Hja=function(a,b,c){a.l&&RI({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.i}})};
Ija=function(a,b){a.l&&RI({adTrimmingInfo:{contentCpn:a.i,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.vN}})};
SI=function(a,b){RI({daiStateTrigger:{errorType:a,contentCpn:b}})};
RI=function(a){g.Qr("adsClientStateChange",a)};
Fja=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"}};
TI=function(a){this.G=a;this.adVideoId=this.videoId=this.adCpn=this.contentCpn=null;this.u=!0;this.B=this.i=this.Pg=!1;this.adFormat=null;this.l="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
Jja=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.l="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.Pg=!1;a.i=!1};
Kja=function(a){a.i=!1;Rx("video_to_ad",["apbs"],void 0,void 0)};
Mja=function(a){a.B?Lja(a):(a.i=!1,Rx("ad_to_ad",["apbs"],void 0,void 0))};
Lja=function(a){a.i=!1;Rx("ad_to_video",["pbresume"],void 0,void 0)};
Nja=function(a){a.Pg&&!a.i&&(a.u=!1,a.i=!0,"ad_to_video"!==a.actionType&&(ax("apbs",void 0,a.actionType),g.Qo("finalize_all_timelines")&&(a=a.actionType,Zw(a),Rw(a),Yw(a))))};
Oja=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"}};
g.Qja=function(a){return(a=Pja[a.toString()])?a:"LICENSE"};
UI=function(){g.F.call(this);this.l=null;this.I=this.C=!1;this.u=new g.Tl;g.H(this,this.u)};
VI=function(a){a=a.Gt();return 1>a.length?NaN:a.end(a.length-1)};
Rja=function(a,b,c){a.mm()||a.getCurrentTime()>b||10<c||(a.play(),g.Ao(function(){Rja(a,a.getCurrentTime(),c+1)},500))};
Sja=function(a,b){a.l&&null!==b&&b.i===a.l.i||(a.l&&a.l.dispose(),a.l=b)};
WI=function(a){return GB(a.Mg(),a.getCurrentTime())};
Tja=function(a,b){if(0===a.Gh()||0<a.Yi())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.Gt(),a.length||!c)?DB(a,b):c};
Uja=function(a){var b=a.Mg();return 0<FB(b)&&a.getDuration()?b.end(b.length-1):0};
XI=function(a){var b=a.getDuration();return Infinity===b?1:b?a.Vq()/b:0};
YI=function(a){switch(a.Yi()){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.ZI=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
$I=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.ZI(b,c)};
aJ=function(a,b){return $I(a,a.state|b)};
bJ=function(a,b){return $I(a,a.state&~b)};
cJ=function(a,b,c){return $I(a,(a.state|b)&~c)};
g.V=function(a,b){return!!(a.state&b)};
g.dJ=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.eJ=function(a){return g.V(a,8)&&!g.V(a,2)&&!g.V(a,1024)};
fJ=function(a){return a.pc()&&!g.V(a,16)&&!g.V(a,32)};
Vja=function(a){return g.V(a,8)&&g.V(a,16)};
g.gJ=function(a){return g.V(a,1)&&!g.V(a,2)};
hJ=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};
iJ=function(a,b,c,d,e,f,h,l){g.P.call(this);this.rg=a;this.G=b;this.i=d;this.L=this.i.l instanceof lH?this.i.l:null;this.l=null;this.Y=!1;this.I=c;this.X=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.va=0;this.Ca=!1;this.Al=e;this.Kq=f;this.tm=h;this.ra=!1;this.daiEnabled=l};
Wja=function(a){if(NH(a.G)){var b=a.G.getVideoData(2);b=a.i.W[b.cd]||null;if(!b)return a.zk(),!0;(!a.l||a.l&&a.l.ad!==b)&&a.ws(b)}else if(1===a.G.getPresentingPlayerType()&&a.l)return a.zk(),!0;return!1};
Xja=function(a){(a=a.baseUrl)&&g.tq(a,void 0,Wm(a))};
Yja=function(a,b){a.I.Ns(a.i.i.i,b,a.sG(),a.uG(),a.isLiveStream())};
jJ=function(a){Zja(a.rg,a.i.i,a);a.daiEnabled&&!a.i.J&&($ja(a,a.vG()),a.i.J=!0)};
$ja=function(a,b){for(var c=kJ(a),d=a.i.i.start,e=[],f=g.q(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=aka(h);e.push({externalVideoId:h.B,originalMediaDurationMs:(1E3*h.l).toString(),trimmedMediaDurationMs:(parseInt(h.i.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.u.B=a.i.i.start;h.u.u=c;if(!bka(a,h,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+aka(p)},0);
Hja(a.Al,a.i.i.xt(),b);Ija(a.Al,{cueIdentifier:a.i.B&&a.i.B.identifier,vN:e})};
aka=function(a){var b=1E3*a.l;return 0<parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10):b};
kJ=function(a){var b=a.i.i.end;a=Bja(a.Kq,a.i.i.start,b);return Math.min(b,null===a?Infinity:a)};
bka=function(a,b,c,d){var e=a.tm.create(b,IH(GH(a.i)),a.i.i.i);c=e.gG(c,d);g.ui(e);if(!c)return!1;a.i.W[c]=b;return!0};
cka=function(a){if(a.Ca)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Ta()/1E3)-a.va;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
dka=function(a,b,c){this.i=a;this.l=b;this.u=c};
lJ=function(){this.B=[];this.C=[];this.i=[];this.l=new Set;this.I=new Map};
mJ=function(){lJ.i||(lJ.i=new lJ);return lJ.i};
eka=function(a,b,c){c=void 0===c?0:c;b.then(function(d){var e,f;a.l.has(c)&&a.u&&a.u();var h=g.uu(c),l=g.ru(c);h&&l&&(d.csn=h,(null===(e=d.response)||void 0===e?0:e.trackingParams)&&g.Au(a.client,h,l,[g.nu(d.response.trackingParams)]),(null===(f=d.playerResponse)||void 0===f?0:f.trackingParams)&&g.Au(a.client,h,l,[g.nu(d.playerResponse.trackingParams)]))})};
fka=function(a,b){nJ(a,g.nu(b),void 0,void 0)};
nJ=function(a,b,c,d){d=void 0===d?0:d;if(a.l.has(d))a.B.push([b,c]);else{var e=g.uu(d);c=c||g.ru(d);e&&c&&g.Au(a.client,e,c,[b])}};
hka=function(a,b,c){c=void 0===c?{}:c;a.l.add(c.layer||0);a.u=function(){gka(a,b,c);var f=g.ru(c.layer);if(f){for(var h=g.q(a.B),l=h.next();!l.done;l=h.next())l=l.value,nJ(a,l[0],l[1]||f,c.layer);f=g.q(a.C);for(h=f.next();!h.done;h=f.next()){var m=h.value;h=void 0;h=void 0===h?0:h;l=g.uu(h);var n=m[0]||g.ru(h);l&&n&&(h=a.client,m=m[1],m={csn:l,ve:n.getAsJson(),clientData:m},n={cf:vu(l),Yl:l},"UNDEFINED_CSN"==l?zu("visualElementStateChanged",m,n):h?Oq("visualElementStateChanged",m,h,n):g.Qr("visualElementStateChanged",
m,n))}}};
g.uu(c.layer)||a.u();if(c.cG)for(var d=g.q(c.cG),e=d.next();!e.done;e=d.next())eka(a,e.value,c.layer);else g.pt(Error("Delayed screen needs a data promise."))};
gka=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.GS?c.GS:c.layer;var e=g.uu(d);d=g.ru(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));try{var h=a.client,l=f,m=c.ZF,n=c.cf,p=ika(),r={csn:p,pageVe:(new mu({veType:b,youtubeData:void 0})).getAsJson()};l&&l.visualElement?r.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()}:l&&g.qt(new g.Zr("newScreen() parent element does not have a VE - rootVe",
b));m&&(r.cloneCsn=m);m={cf:n,Yl:p};h?Oq("screenCreated",r,h,m):g.Qr("screenCreated",r,m);Gr(Gu,new yu(p));var t=p}catch(u){gfa(u,{Hu:b,rootVe:d,parentVisualElement:void 0,g6:e,z6:f,ZF:c.ZF});g.pt(u);return}xu(t,b,c.layer,c.cf);if((b=e&&"UNDEFINED_CSN"!==e&&d)&&!(b=g.Qo("screen_manager_skip_hide_killswitch"))){a:{b=g.q(Object.values(jka));for(f=b.next();!f.done;f=b.next())if(g.uu(f.value)==e){b=!0;break a}b=!1}b=!b}b&&Cu(a.client,e,d,!0);a.i[a.i.length-1]&&!a.i[a.i.length-1].csn&&(a.i[a.i.length-
1].csn=t||"");$w("csn",t);Lu.getInstance().clear();d=g.ru(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.Qo("web_mark_root_visible")||g.Qo("music_web_mark_root_visible"))&&g.Bu(t,d,void 0);a.l.delete(c.layer||0);a.u=void 0;e=g.q(a.I);for(t=e.next();!t.done;t=e.next())t=g.q(t.value),b=t.next().value,t.next().value.has(c.layer)&&d&&nJ(a,b,d,c.layer)};
oJ=function(){this.i={};if(this.l=xea()){var a=g.Tq("CONSISTENCY");a&&kka(this,{encryptedTokenJarContents:a})}};
kka=function(a,b){if(b.encryptedTokenJarContents&&(a.i[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.i[b.encryptedTokenJarContents]},1E3*c);
a.l&&g.Sq("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
pJ=function(){var a=g.M("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.M("INNERTUBE_CLIENT_NAME")&&(this.localStorage=lka(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.i=void 0)};
mka=function(){pJ.i||(pJ.i=new pJ);return pJ.i};
lka=function(a){return void 0===a.localStorage?new gr("yt-client-location"):a.localStorage};
qJ=function(a,b){b=void 0===b?!1:b;var c=g.M("INNERTUBE_CONTEXT");if(!c)return g.pt(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};c=g.Vb(c);g.Qo("web_no_tracking_params_in_shell_killswitch")||delete c.clickTracking;c.client||(c.client={});var d=c.client;"MWEB"===d.clientName&&(d.clientFormFactor=g.M("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");d.screenWidthPoints=window.innerWidth;d.screenHeightPoints=window.innerHeight;d.screenPixelDensity=Math.round(window.devicePixelRatio||
1);d.screenDensityFloat=window.devicePixelRatio||1;d.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var e=void 0===e?!1:e;g.Wq.getInstance();var f="USER_INTERFACE_THEME_LIGHT";g.Yq(0,165)?f="USER_INTERFACE_THEME_DARK":g.Yq(0,174)?f="USER_INTERFACE_THEME_LIGHT":!g.Qo("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(f="USER_INTERFACE_THEME_DARK");e=e?f:mfa()||f;d.userInterfaceTheme=
e;if(g.Qo("web_log_connection")&&!b){if(e=cr())d.connectionType=e;g.Qo("web_log_effective_connection_type")&&(e=er())&&(c.client.effectiveConnectionType=e)}if("MWEB"===d.clientName||"WEB"===d.clientName)d.mainAppWebInfo={graftUrl:g.A.location.href},g.Qo("kevlar_woffle")&&Pq.i&&(d.mainAppWebInfo.pwaInstallabilityStatus=Pq.i.i?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),g.Qo("web_include_display_mode_killswitch")||(d.mainAppWebInfo.webDisplayMode=Qq()),g.Qo("kevlar_share_panel_more_button")&&
(d.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share);if(!g.Qo("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(D){}h=void 0}h&&(d.timeZone=h)}(h="MWEB"===d.clientName?g.Tq("EXPERIMENTS_DEBUG"):Rq.get("EXPERIMENTS_DEBUG"))?d.experimentsToken="ZERO"===h?"GgIQAQ%3D%3D":h:delete d.experimentsToken;d=To();oJ.i||(oJ.i=new oJ);h=g.Kb(oJ.i.i);c.request=Object.assign(Object.assign({},
c.request),{internalExperimentFlags:d,consistencyTokenJars:h});h=g.Wq.getInstance();d=g.Yq(0,58);h=h.get("gsml","");c.user=Object.assign({},c.user);d&&(c.user.enableSafetyMode=d);h&&(c.user.lockedSafetyMode=!0);(d=g.M("DELEGATED_SESSION_ID"))&&!g.Qo("pageid_as_header_web")&&(c.user.onBehalfOfUser=d);!b&&(b=g.uu())&&(c.clientScreenNonce=b);a&&(c.clickTracking={clickTrackingParams:a});g.Qo("web_enable_client_location_service")&&(a=mka(),c.client||(c.client={}),a.i?(c.client.locationInfo||(c.client.locationInfo=
{}),c.client.locationInfo.latitudeE7=1E7*a.i.coords.latitude,c.client.locationInfo.longitudeE7=1E7*a.i.coords.longitude,c.client.locationInfo.horizontalAccuracyMeters=a.i.coords.accuracy,c.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):a.locationPlayabilityToken&&(c.client.locationPlayabilityToken=a.locationPlayabilityToken));var l,m;try{var n=null===(l=c.adSignalsInfo)||void 0===l?void 0:l.consentBumpParams,p=Qp(void 0),r=p.bid;delete p.bid;c.adSignalsInfo={params:[],bid:r};for(var t=
g.q(Object.entries(p)),u=t.next();!u.done;u=t.next()){var x=g.q(u.value),y=x.next().value,E=x.next().value;null===(m=c.adSignalsInfo.params)||void 0===m?void 0:m.push({key:y,value:""+E})}!Bt()&&n&&(c.adSignalsInfo.consentBumpParams=n)}catch(D){g.pt(D)}return c};
rJ=function(){Mr.apply(this,arguments);this.i={}};
nka=function(){sJ||(sJ=new rJ);return sJ};
oka=function(a,b){b?a.i.Authorization="Bearer "+b:delete a.i.Authorization};
pka=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
qka=function(){var a=null;St().then(function(b){return a=b},function(b){return a=pka(b)});
return a};
rka=function(){var a=Em(1E3,"NO_BID");return sm(g.um(oda([St(),a]),pka),function(){return a.cancel()})};
ska=function(a){return a.xc?g.Yq(g.Wq.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
tJ=function(a){this.player=a;this.l=this.i=1};
vJ=function(a,b,c,d){c=void 0===c?{}:c;var e=c.Us,f=c.ue;d=void 0===d?"":d;c=a.player.getVideoData(1);var h=a.player.T().Uj,l={AD_BLOCK:a.i++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:ska(a.player.T()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Om(),LACT:zp(),LIVE_INDEX:e?a.l++: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.Wa().Og().height,
P_W:a.player.Wa().Og().width,YT_REMOTE:h?h.join(","):""},m=Pp(Op);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};Np(b)&&(d.sts="18716",(e=a.player.T().Sa)&&(d.forced_experiments=e));b=Kp(g.Xm(b,l),d);a.player.getVideoData();if(2!==b.split("?").length)return om(Error("Invalid AdBreakInfo URL"));if((d=null===c||void 0===c?void 0:c.oauthToken)&&Mp()){var n=nka();oka(n,d)}n=a.player.Hl(n);a=tka(a,b,l,c.isMdxPlayback);return g.uJ(n,a,"/youtubei/v1/player/ad_break")};
wka=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=Lp(b),f=uka(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=uka(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=Ep(Qp(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=[];vka.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};
zka=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 xka&&(f.clientName=xka[d[0]]),d[1]in yka&&(f.platform=yka[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};
tka=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=Aka.exec(b);f=null!=f&&2<=f.length?f[1]:"";var h=Bka.test(b),l=Cka.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=Dka.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=Eka.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=g.YD(a.player.T()),r=qJ(a.player.getVideoData(1).Aa,!0),t="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";wka(r,b,t.toString(),a.player.T());a={splay:!1,
lactMilliseconds:c.LACT.toString(),playerHeightPixels:c.P_H,playerWidthPixels:c.P_W,vis:c.VIS,signatureTimestamp:18716,autonavState:ska(a.player.T())};d&&(d={},zka(d,c.YT_REMOTE)&&(a.mdxContext=d));if(d=Fka.includes(p)?void 0:g.Tq("PREF")){for(var u=d.split(/[:&]/),x=0,y=u.length;x<y;x++){var E=u[x].split("=");if(("SML"===E[0].toUpperCase()||"GSML"===E[0].toUpperCase())&&1<E.length&&"TRUE"===E[1].toUpperCase()){r.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in Gka)for(d=d.split(/[:&]/),
x=Gka.FLAG_AUTO_CAPTIONS_DEFAULT_ON,u="f"+(1+Math.floor(x/31)).toString(),x=1<<Math.floor(x%31),y=0,E=d.length;y<E;y++){var D=d[y].split("=");if(D[0]===u&&parseInt("0x"+D[1],16)&x){d=!0;break a}}d=!1}a.autoCaptionsDefaultOn=d}b=Hka.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(r.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:a};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,isProxyAdTagRequest:h,
context:r,adSignalsInfoString:Ep(Qp(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());return f};
wJ=function(a,b,c,d,e,f){g.P.call(this);this.I=a;this.l=b;this.B=c;this.C=d;this.i=e;this.u=f;Ika(this)};
Jka=function(a,b){var c={isEmpty:!0,oH:!1,vl:[]};if(!b)return c;b&&b.trackingParams&&fka(mJ(),b.trackingParams);if(b&&b.adThrottled)return c.oH=!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.gb(b))return c;if(0<a.i.i.end){var d=a.i.i.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.vl=b;
c.isEmpty=!1;return c};
Ika=function(a){[a.i.ra,a.i.i].filter(function(b){return null!=b}).forEach(function(b){Zja(a.l,b,a)})};
xJ=function(a,b,c,d,e,f,h,l){iJ.call(this,a,b,c,d,e,f,h,l);this.B=d.l;this.C=-1;this.J=this.u=null;this.W=Kka(this.yw())};
Lka=function(a){a.C++;var b=a.yw();b?a.ws(b):a.Im()};
Kka=function(a){return a?Mka.some(function(b){return a instanceof b}):!1};
Nka=function(a){this.i=new dka(function(b){b=new iJ(a.rg,a.G,a.YF(),b,a.Al,a.Kq,a.tm,a.daiEnabled);jJ(b);return b},function(b){return new wJ(a.Fz,a.rg,a.G,a.qm,b,a.Al)},function(b){b=new xJ(a.rg,a.G,a.YF(),b,a.Al,a.Kq,a.tm,a.daiEnabled);
jJ(b);return b})};
Oka=function(a,b){uH.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Qr("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),vH(this,new mI(a.adStart.adMessageRenderer)));if(a.linearAds){var c=[];a=g.q(a.linearAds);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.instreamVideoAdRenderer){var e=b(d.instreamVideoAdRenderer);vH(this,e);c.push(e.l);d.instreamVideoAdRenderer.isCritical&&(this.l=1)}else d.adActionInterstitialRenderer?(d=new iI(d.adActionInterstitialRenderer),
vH(this,d)):d.adIntroRenderer&&(d=new lI(d.adIntroRenderer),vH(this,d),this.l=1);this.i.filter(function(f){return f instanceof rH}).forEach(function(f,h){f instanceof rH&&(h=new pH(h,c),f.u=h)})}}};
Qka=function(a,b){uH.call(this);var c=a.persistingOverlay;this.u=c&&c.persistingAdOverlayRenderer?new oI(c.persistingAdOverlayRenderer):null;vH(this,Pka(this,a.adVideoStart));a:{if(c=a.linearAd){if(c.instreamVideoAdRenderer){b=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){b=new AH(c.instreamSurveyAdRenderer);break a}}b=null}vH(this,b);(a=a.adVideoEnd)?a.adActionInterstitialRenderer?(this.l=1,a=new iI(a.adActionInterstitialRenderer)):a=null:a=null;vH(this,a)};
Pka=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.l=1,new iI(b.adActionInterstitialRenderer)):b.adTextInterstitialRenderer?new qI(b.adTextInterstitialRenderer):b.adMessageRenderer?(g.Qr("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new mI(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new pI(b.surveyTextInterstitialRenderer):null};
Rka=function(a,b,c){this.u=a;this.i=b;this.l=c};
Ska=function(a){var b=new LH(a.SF),c=new MH(b);return{bO:function(){return b},
OA:function(){return c}}};
Tka=function(a){this.i=a};
Uka=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.i.create(e,f):null;return new BH(b,c,h,d)}catch(l){g.xo(l)}};
Vka=function(a){var b=new Tka(a.qN);return{rG:function(){return b}}};
Wka=function(a){g.F.call(this);this.i=a;this.l=new zia(a.G);this.Xy=new wia(a.G);g.H(this,this.Xy)};
Xka=function(a){return function(){return new TI(a.i.G)}};
Yka=function(a){return function(b,c){return new Aia(b,a.l,c,a.i.G,a.Xy,a.i.Bj,a.i.daiEnabled)}};
yJ=function(a){g.F.call(this);var b=this;this.l=a;this.i=null;g.wi(this,function(){return b.i=null});
var c=Xt(a);if(c){var d=function(){b.i&&b.i(!!Vt())};
this.l.addEventListener(c,d);g.wi(this,function(){b.l.removeEventListener(c,d)})}};
zJ=function(a){g.F.call(this);this.i=a};
Zka=function(a){var b=window.document;return g.fE(a.T())?new yJ(b):new zJ(a)};
$ka=function(a){g.F.call(this);this.VK=new Eja(a.G,a.contentCpn,a.daiEnabled)};
ala=function(a){AJ=a&&a.data};
dla=function(a){bla=a&&a.data};
ela=function(a){BJ=a&&a.data};
fla=function(a){CJ=a&&a.data};
gla=function(a){DJ=a&&a.data};
hla=function(){DJ=CJ=BJ=AJ=null};
GJ=function(a,b){g.F.call(this);var c=this;this.Hc=a;this.Cg=b;this.Hd=new Map;this.i=new Map;EJ(this,"commandExecutorCommand",function(d,e,f){c.wd(d.commands,e,f)});
FJ(this,"commandExecutorCommand",function(d,e,f){ila(c,d.commands,e,f)});
EJ(this,"clickTrackingParams",function(){});
FJ(this,"clickTrackingParams",function(){})};
jla=function(a,b){EJ(a,b.Dk(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
kla=function(a,b){FJ(a,b.Dk(),function(c,d,e,f){b.Ml(c,d,e,f)})};
EJ=function(a,b,c){a.Ha();a.Hd.get(b)&&g.pt(Error("Extension name "+b+" already registered"));a.Hd.set(b,c)};
FJ=function(a,b,c){a.Ha();a.i.get(b)&&g.pt(Error("Extension name "+b+" already registered"));a.i.set(b,c)};
ila=function(a,b,c,d){b=void 0===b?[]:b;a.Ha();var e=[],f=[],h=(HJ(a.Cg,c)?"Layout retrievable. ":"Layout not retrievable. ")+"Ordered commands: ";b=g.q(b);for(var l=b.next();!l.done;l=b.next()){l=l.value;var m="";l.loggingUrls&&(m="loggingUrls filled on ");var n="not recognized command";l.adPingingEndpoint?n="adPingingEndpoint":l.pingingEndpoint?n="pingingEndpoint":l.muteAdEndpoint?n="muteAdEndpoint: "+l.muteAdEndpoint.type:l.adLifecycleCommand?n="adLifecycleCommand: "+l.adLifecycleCommand.action:
l.clearCueRangesCommand?n="clearCueRangesCommand":l.openPopupAction?n="openPopupAction":l.changeEngagementPanelVisibilityAction?n="changeEngagementPanelVisibilityAction":l.clearCueRangesCommand?n="clearCueRangesCommand":l.urlEndpoint&&(n="urlEndpoint");h=h.concat(m.concat(n),", ");l.hasOwnProperty("pingingEndpoint")||l.hasOwnProperty("adPingingEndpoint")?e.push(l):f.push(l)}e=g.q(e);for(l=e.next();!l.done;l=e.next())IJ(a,l.value,c,d,h);d=g.q(f);for(l=d.next();!l.done;l=d.next())IJ(a,l.value,c)};
lla=function(a,b){a.Hc.get().La("innertubeCommand",{openPopupAction:b})};
IJ=function(a,b,c,d,e){a.Ha();b.loggingUrls&&mla(a,"loggingUrls",b.loggingUrls,c,d,e);b=g.q(Object.entries(b));for(var f=b.next();!f.done;f=b.next()){var h=g.q(f.value);f=h.next().value;h=h.next().value;"openPopupAction"===f?lla(a,h):nla.hasOwnProperty(f)||mla(a,f,h,c,d,e)}};
ola=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.Hd.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.pt(f)}else b=new g.Zr("Unhandled field",b),g.qt(b)};
mla=function(a,b,c,d,e,f){(a=a.i.get(b))||new g.Zr("Unhandled field",b);try{a(c,d,e,f)}catch(h){g.pt(h)}};
qla=function(a,b,c,d){for(var e=!1,f=g.q(b.Hj.entries()),h=f.next();!h.done;h=f.next())h=g.q(h.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===h.sb&&"core"===h.jb&&(e=!0);e?(d=pla(b,d))?c.Kt(d):Q("No triggering layout ID available when attempting to mute."):g.em(function(){a.zk()})};
pla=function(a,b){if(b)return b;a=g.q(a.Hj.entries());for(b=a.next();!b.done;b=a.next()){var c=g.q(b.value);b=c.next().value;c=c.next().value;if("SLOT_TYPE_IN_PLAYER"===b.sb&&"core"===b.jb)return c.layoutId}};
JJ=function(a,b,c,d,e,f){g.P.call(this);var h=this;this.i=c;this.Ma=null;this.tb=d;this.ra=f.vf;this.Y=f.zn;this.Sa=iia({G:c}).eO();this.l=null;this.u=new Map;d=this.i.T().experiments;var l=Ska({SF:c.getVideoData(1)}),m=new Wka({Bj:l.OA(),G:c,daiEnabled:!1});g.H(this,m);this.xo=new Set;this.Kw=-1;this.va=[];this.I=null;this.L=new Map;this.J=new Map;this.W=new Set;this.B=new Yt(this);g.H(this,this.B);this.C=new Yt(this);g.H(this,this.C);this.Ca=this.ib=this.Aa=!1;this.X=g.fE(c.T());this.ub=e;e=new $ka({contentCpn:this.i.getVideoData(1).clientPlaybackNonce,
e6:this,daiEnabled:!1,G:this.i});g.H(this,e);this.Ga=e.VK;this.Ya=(new Cja({f6:this,E6:g.S(d,"html5_recognize_predict_start_cue_point"),B6:g.S(d,"html5_persist_cue_range_killswitch")})).i;var n=Yb(IH(EH(this.i)));b=new zja({Pa:this,EN:m.Xy,Ck:oH(),Bj:l.OA(),G:this.i,JS:n,iy:Yka(m),daiEnabled:!1,Sl:f.Sl,vf:this.ra,Rl:f.Rl,Kd:b});this.Da=(new Nka({qm:this.tb,tm:b.pN,Fz:a,rg:this,d6:this.Sa,Ck:oH(),YF:Xka(m),Al:this.Ga,Kq:this.Ya,G:this.i,L6:n,iy:function(p){return Yka(m)(p,n)},
daiEnabled:!1})).qG();this.Ra=Vka({qN:new Rka(new lia(c),d,function(p){return h.J.has(p)?h.J.get(p):null})}).rG();
this.Xa=Zka(this.i);g.H(this,this.Xa);this.Db=mE(this.i.T())?g.S(this.i.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit_living_room"):g.S(this.i.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit")};
vla=function(a,b){var c=a.i.getVideoData(1);if(c.rk||g.M("SERVED_VIA_SPF_HISTORY"))g.S(a.i.T().experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?a.Y.yk():KJ(a);else{if(OH(a.i)){var d=rla(a.i);d.addEventListener("updateKevlarOrC3Companion",ala);d.addEventListener("onPlaShelfInfoCardsReady",dla);d.addEventListener("updateEngagementPanelAction",ela);d.addEventListener("changeEngagementPanelVisibility",fla);d.addEventListener("scrollToEngagementPanel",gla);window.addEventListener("yt-navigate-start",
hla)}a.B.N(a.i,"applicationplayerstatechange",a.NP);a.B.N(a.i,g.tw("ad"),a.ZB,a);a.B.N(a.i,g.uw("ad"),a.iQ,a);a.B.N(a.i,"aduxclicked",a.zP);a.B.N(a.i,"videodatachange",a.pS);b=sla(a,b);b=tla(a,b);b=ula(a,b);0<b.length&&LJ(a,b);a.I&&c.subscribe("cuepointupdated",a.lI,a);MJ(a.ra)||KJ(a);g.em(a.KT,a)}};
sla=function(a,b){return b.filter(function(c){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)?(g.fE(a.i.T())&&a.i.getVideoData(1).Lk()||(a.I=c),!1):!0})};
tla=function(a,b){a.L=new Map;return b.filter(function(c){return"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)&&c.elementId?(a.L.set(c.elementId,c),!1):!0})};
ula=function(a,b){a.J=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.J.set(c.hostElementId,c),!1):!0})};
wla=function(a,b){return b.every(function(c){c=a.u.get(c);return null==c?(g.xo(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof wJ?!1:c instanceof iJ?!c.ep():!0})};
KJ=function(a){var b=xla(a);if(0<b.length){MJ(a.ra)||wla(a,b)&&a.Y.yk();var c=g.T(a.i.T().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.X&&g.SD(a.i.T())?(c=new g.J(function(){yla(a,b)},c),g.H(a,c),c.start()):g.em(function(){yla(a,b)})}else MJ(a.ra)||a.Y.yk()};
xla=function(a){for(var b=zla(a),c=g.q(b),d=c.next();!d.done;d=c.next())a.xo.delete(d.value);return b};
zla=function(a){var b=[];a=g.q(a.xo);for(var c=a.next();!c.done;c=a.next())c=c.value,ww(c)&&b.push(c);return b};
Ala=function(a,b,c){c=void 0===c?null:c;var d=a.Ra,e=d.create;var f=1E3*a.i.getDuration(1);f=new cw(f,1E3*a.i.getCurrentTime(1)||0,!1,g.S(a.i.T().experiments,"html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.va.length,c);a.va=a.va.concat(b);return b};
yla=function(a,b){if(!a.Ha()){b=g.q(b);for(var c=b.next();!c.done;c=b.next())a.ZB(c.value)}};
LJ=function(a,b,c){b=Ala(a,b,void 0===c?null:c);return 0==b.length?null:b.map(function(d){return a.Da.create(d)})};
Bla=function(a){a.Aa||(a.C.N(a.i,"presentingplayerstatechange",a.WK),a.C.N(a.i,"internalAbandon",a.oP),a.C.N(a.i,"progresssync",a.sS),a.C.N(a.i,"onVolumeChange",a.tS),a.C.N(a.Xa,"fullscreentoggled",a.uQ),a.Aa=!0);g.K(a.i.getRootNode(),"ad-showing");g.K(a.i.getRootNode(),"ad-interrupting");g.S(a.i.T().experiments,"enable_html5_teal_ad_badge")&&OH(a.i)&&g.K(a.i.getRootNode(),"ad-teal-design");a.i.Gj(2)};
NJ=function(a,b,c){var d=!!a.l&&a.l||null,e=d&&d.ep()&&(NH(a.i)||!1);d=b&&d&&d.reset()||null;a.l&&Cla(a,a.l);a.l=null;a.Kw=-1;e&&Dla(a,c);a.Ca||a.Y.yk();b&&d&&(d.ND().l=!1,jJ(d))};
Dla=function(a,b){g.$t(a.C);a.Aa=!1;g.kn(a.i.getRootNode(),"ad-showing");a.Db?(a.Ca||a.Y.yk(),Ela(a),a.i.cueVideoByPlayerVars({},2)):(a.i.cueVideoByPlayerVars({},2),Ela(a));g.kn(a.i.getRootNode(),"ad-interrupting");g.S(a.i.T().experiments,"enable_html5_teal_ad_badge")&&g.kn(a.i.getRootNode(),"ad-teal-design");b&&b(a.i)};
Ela=function(a){if(a.ib)!a.X&&g.SD(a.i.T())&&(g.S(a.i.T().experiments,"release_player_on_abandon_for_bulleit_living_room")||g.S(a.i.T().experiments,"release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&a.i.Dn(2);else if(a.i.Dn(2),!a.X){var b=a.i.rb(1);g.V(b,4)&&!g.V(b,2)&&a.i.playVideo()}};
Zja=function(a,b,c){if(b instanceof vw){if(a.X&&xw(b)&&g.V(a.i.rb(1),64)){var d=1E3*a.i.getCurrentTime(1)||0;d!=b.start&&b.contains(d)&&b.deactivate()}a.u.has(b)?g.xo(Error(b.toString()+" has already been seen")):(a.xo.add(b),a.u.set(b,c),ww(b)||a.i.Td([b],1))}else g.xo(Error("Should use AdCueRange instead of CueRange"))};
Cla=function(a,b){a=a.u;for(var c=g.q(a),d=c.next();!d.done;d=c.next()){d=g.q(d.value);var e=d.next().value;if(d.next().value==b){a.delete(e);break}}g.ui(b)};
OJ=function(a,b){this.i=a;this.B=b};
PJ=function(a){g.F.call(this);this.l=a};
QJ=function(a){PJ.call(this,!0);this.i=a};
Fla=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.ll||null});
d.EI=c(function(){return e&&e.eventId||null});
d.AD_CPN=c(function(){return b.mw()});
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 zp().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
Gla=function(a,b){g.F.call(this);var c=this;this.u=[];this.J=!1;this.l=0;this.C=this.I=this.B=!1;this.X=null;var d=(0,g.B)(a,b);this.i=new g.J(function(){return d(c.X)},300);
g.H(this,this.i);this.W=this.L=Infinity};
Hla=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.u.includes(d.identifier))return!0}return!1};
RJ=function(){var a="ytp-id-"+Ila.toString();Ila++;return a};
g.SJ=function(a){g.F.call(this);this.Ya={};this.Fc={};this.element=this.createElement(a)};
TJ=function(a,b,c,d){if("{{"===d.substr(0,2))a.Fc[d]=[b,c];else return d};
Jla=function(a,b){var c=[];if(!b)return c;b=g.q(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.D?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.De("BR"));c.push(g.Ee(f))}):c.push(g.Ee(d))}return c};
UJ=function(a,b,c,d){if("child"===c){g.Fe(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.D?[d]:d;c=Jla(a,e);c=g.q(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.dg(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Ec(g.Ic(a))),b.setAttribute(c,a))};
g.W=function(a){g.SJ.call(this,a);this.vb=!0;this.W=!1;this.listeners=[]};
g.VJ=function(a,b){b?a.show():a.hide()};
g.WJ=function(a){g.W.call(this,a);this.Ca=new g.P;g.H(this,this.Ca)};
XJ=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.WJ.call(this,c);this.api=a;this.Pa=b;this.macros={};this.componentType=d;this.J=null;this.tb=h;this.layoutId=e;this.i=f;this.Ra=null;this.IJ=new QJ(this.element);g.H(this,this.IJ);this.ib=this.N(this.element,"click",this.onClick);this.va=[];this.ra=new Gla(this.onClick,this);g.H(this,this.ra);this.ub=!1;this.X=null};
Kla=function(a,b,c){a.Pa?a.Pa.executeCommand(b,a.macros,c):g.xo(Error("null or undefined adService"))};
YJ=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return zo(Error("Got null or undefined adText object")),"";var c=g.od(a.text);if(!a.isTemplated)return c;if(null==b)return zo(Error("Missing required parameters for a templated message")),c;a=g.q(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.q(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
Lla=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.gb(a.thumbnails)||null==a.thumbnails[0].url)?"":g.od(a.thumbnails[0].url)};
Mla=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.gb(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.ee(0,0):new g.ee(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
g.Nla=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,U:{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"}}]}};
ZJ=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",U:{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.$J=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{D:"path",U:{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.aK=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{D:"path",U:{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"}}]}};
Ola=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{D:"path",U:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{D:"path",U:{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"}}]}};
Pla=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{D:"path",Lb:!0,U:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
Qla=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{D:"path",Lb:!0,U:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.bK=function(){return{D:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",U:{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"}}]}};
Rla=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,U:{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"}}]}};
Sla=function(){return{D:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",U:{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"}}]}};
Tla=function(){return{D:"svg",U:{viewBox:"0 0 24 24"},S:[{D:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",U:{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"}}]}};
Ula=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{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"}}]}};
Vla=function(){return{D:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{D:"path",U:{d:"M0 0h48v48H0z",fill:"none"}},{D:"path",U:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
g.cK=function(){return{D:"svg",U:{viewBox:"0 0 24 24"},S:[{D:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",U:{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"}}]}};
dK=function(){return{D:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",U:{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"}}]}};
Wla=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{D:"path",Lb:!0,U:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
eK=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{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.fK=function(){return{D:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{D:"path",U:{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"}}]}};
Xla=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
Yla=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,U:{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"}}]}};
Zla=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{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"}}]}};
$la=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.gK=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{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.hK=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,U:{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"}}]}};
ama=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
iK=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{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"}}]}};
jK=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{D:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{D:"path",U:{d:"M0 0h48v48H0z",fill:"none"}},{D:"path",U:{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{D:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},
{D:"path",U:{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{D:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",U:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{D:"path",U:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.bK();case "INFO_OUTLINE":return Vla();case "REMOVE_CIRCLE":return{D:"svg",
U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",U:{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 eK();case "LIKE":return g.cK();case "DISLIKE":return Tla();default:return g.qt(new g.Zr("Unexpected icon:",a)),null}};
kK=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={D:"button",Ba:["ytp-ad-button"].concat(e)};null!=l&&(e.U={tabindex:l});XJ.call(this,a,b,e,void 0===f?"button":f,c,d);this.l=this.u=this.B=null;this.C=h;this.hide()};
bma=function(a){var b=null;null!=a.l&&(b=[a.l.serviceEndpoint,a.l.navigationEndpoint].filter(function(c){return null!=c}),a.l.command&&(b=b.concat(a.l.command)));
return b||[]};
lK=function(){g.F.call(this);var a=this;this.i=new Map;this.l=cea(function(b){if(b.target&&(b=a.i.get(b.target))&&b)for(var c=0;c<b.length;c++)g.tq(b[c],void 0,void 0)})};
cma=function(){null==mK&&(mK=new lK);return mK};
nK=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=dma(a))){b=Ce("SPAN",null,b);break a}b=g.Ee(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(ema(e,b))}return 1==c.length?c[0]:Ce("SPAN",null,c)};
ema=function(a,b){var c=null,d=a.text;b&&(d=dma(d)||d);a.bold&&(c=Ce("B",null,c||d));a.italics&&(c=Ce("I",null,c||d));a.strikethrough&&(c=Ce("STRIKE",null,c||d));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(b=a.navigationEndpoint.urlEndpoint,c=Ce("A",null,c||d),g.hd(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),cma().register(c,a),g.K(c,"ytp-ad-has-logging-urls"));
return c||Ce("SPAN",null,d)};
dma=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(Ce("BR")),b.push(a[c]);return b}return null};
oK=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;XJ.call(this,a,b,{D:"span",Ba:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,c,d);this.button=this.u=null;this.I=f;this.C=e;this.hide()};
pK=function(a){return a&&a.thumbnails&&!g.gb(a.thumbnails||null)&&a.thumbnails[0].url?g.od(a.thumbnails[0].url):""};
qK=function(a,b,c,d,e,f){f=void 0===f?!1:f;XJ.call(this,a,b,{D:"img",K:"ytp-ad-image"},"ad-image",c,d,void 0===e?null:e);this.l=f;this.hide()};
rK=function(a,b,c,d,e,f){e=void 0===e?[]:e;XJ.call(this,a,b,{D:"div",Ba:["ytp-ad-confirm-dialog-background"],S:[{D:"div",K:"ytp-ad-confirm-dialog-container",S:[{D:"div",Ba:["ytp-ad-confirm-dialog"].concat(e),U:{role:"dialog",tabindex:"-1"},S:[{D:"div",K:"ytp-ad-confirm-dialog-title",ma:"{{title}}"},{D:"div",K:"ytp-ad-confirm-dialog-messages"},{D:"div",K:"ytp-ad-confirm-dialog-confirm-container",S:[{D:"button",K:"ytp-ad-confirm-dialog-cancel-button",ma:"{{cancelLabel}}"},{D:"button",K:"ytp-ad-confirm-dialog-confirm-button",
ma:"{{confirmLabel}}"}]}]}]},{D:"button",Ba:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],S:[{D:"span",K:"ytp-ad-button-icon",S:[g.bK()]}]}]},void 0===f?"confirm-dialog":f,c,d);this.L=this.ya("ytp-ad-confirm-dialog-close-overlay-button");this.C=this.ya("ytp-ad-confirm-dialog-cancel-button");this.I=this.ya("ytp-ad-confirm-dialog-confirm-button");this.Y=this.ya("ytp-ad-confirm-dialog-messages");this.B=null;this.l=new Yt;g.H(this,this.l);this.u=null;this.hide()};
fma=function(a,b){if(b.title){var c=g.Aw(b.title);a.Oa("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=nK(d.value),a.Y.appendChild(d)}b.cancelLabel&&(c=g.Aw(b.cancelLabel),a.Oa("cancelLabel",c),a.l.N(a.C,"click",function(e){return a.Yy(e)}));
b.confirmLabel&&(b=g.Aw(b.confirmLabel),a.Oa("confirmLabel",b),a.l.N(a.I,"click",function(e){return a.XB(e)}));
a.l.N(a.L,"click",function(e){return a.WB(e)})};
sK=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=aI("ytp-ad-toggle-button-input");XJ.call(this,a,b,{D:"div",Ba:["ytp-ad-toggle-button"].concat(e),S:[{D:"label",K:"ytp-ad-toggle-button-label",U:{"for":h},S:[{D:"span",K:"ytp-ad-toggle-button-icon",U:{role:"button","aria-label":"{{tooltipText}}"},S:[{D:"span",K:"ytp-ad-toggle-button-untoggled-icon",ma:"{{untoggledIconTemplateSpec}}"},{D:"span",K:"ytp-ad-toggle-button-toggled-icon",ma:"{{toggledIconTemplateSpec}}"}]},{D:"input",
K:"ytp-ad-toggle-button-input",U:{id:h,type:"checkbox"}},{D:"span",K:"ytp-ad-toggle-button-text",ma:"{{buttonText}}"},{D:"span",K:"ytp-ad-toggle-button-tooltip",ma:"{{tooltipText}}"}]}]},f,c,d);this.B=this.ya("ytp-ad-toggle-button");this.l=this.ya("ytp-ad-toggle-button-input");this.ya("ytp-ad-toggle-button-label");this.Y=this.ya("ytp-ad-toggle-button-icon");this.I=this.ya("ytp-ad-toggle-button-untoggled-icon");this.C=this.ya("ytp-ad-toggle-button-toggled-icon");this.Aa=this.ya("ytp-ad-toggle-button-text");
this.u=null;this.L=!1;this.hide()};
tK=function(a){a.L&&(a.isToggled()?(g.ug(a.I,!1),g.ug(a.C,!0)):(g.ug(a.I,!0),g.ug(a.C,!1)))};
gma=function(a,b){var c=null;a.u&&(c=(b?[a.u.defaultServiceEndpoint,a.u.defaultNavigationEndpoint]:[a.u.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
uK=function(a){Yt.call(this);this.i=a;this.N(this.i,"onAdUxUpdate",this.J)};
vK=function(a,b,c,d,e,f,h){XJ.call(this,a,b,c,d,e,f);this.l=h;g.H(this,this.l);this.Da=this.I=-1};
wK=function(a){a.l&&-1===a.I&&(a.I=a.l.subscribe("b",a.Bn,a),a.Da=a.l.subscribe("a",a.Fp,a),a.Bn())};
xK=function(a){null!=a.l&&-1!==a.I&&(a.l.Hg(a.I),a.l.Hg(a.Da),a.Da=-1,a.I=-1)};
yK=function(a,b,c,d,e,f){XJ.call(this,a,b,{D:"div",K:"ytp-ad-text"},void 0===f?"ad-text":f,c,d,void 0===e?null:e);this.l=null;this.hide()};
zK=function(a,b){b&&g.Ne(a.element,YJ(a.l,b))};
AK=function(a,b){g.P.call(this);this.Pa=b;this.u=!1;this.l=0;this.De=new Yt(this);g.H(this,this.De);this.durationMs=a;this.i=new g.Cm(100);g.H(this,this.i);this.De.N(this.i,"tick",this.Rb);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.BK=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";d=(b+(" "+f+" Minutes ")+(c+" Seconds")).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.CK=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)};
DK=function(a,b,c,d,e,f){vK.call(this,a,b,{D:"span",K:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.u=null;this.B=f;this.hide()};
EK=function(a,b,c,d){XJ.call(this,a,b,{D:"div",K:"ytp-ad-feedback-dialog-background",S:[{D:"div",K:"ytp-ad-feedback-dialog-container",S:[{D:"div",K:"ytp-ad-feedback-dialog-form",U:{role:"dialog",tabindex:"-1"},S:[{D:"div",K:"ytp-ad-feedback-dialog-title",S:[{D:"span",ma:"{{title}}"}]},{D:"span",K:"ytp-ad-info-dialog-feedback-options-title",ma:"{{reasonsTitle}}"},{D:"div",K:"ytp-ad-info-dialog-feedback-options"},{D:"div",K:"ytp-ad-feedback-dialog-confirm-container",S:[{D:"button",K:"ytp-ad-feedback-dialog-cancel-button",
ma:"{{cancelLabel}}"},{D:"button",K:"ytp-ad-feedback-dialog-confirm-button",ma:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d);this.C=[];this.l=null;this.I=this.ya("ytp-ad-feedback-dialog-cancel-button");this.L=this.ya("ytp-ad-feedback-dialog-confirm-button");this.Y=this.ya("ytp-ad-info-dialog-feedback-options");this.Aa=this.ya("ytp-ad-feedback-dialog-title");this.B=this.u=null;this.hide()};
kma=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.l=new kK(a.api,a.Pa,a.layoutId,a.i,["ytp-ad-feedback-dialog-close-button"],"button"),g.H(a,a.l),a.l.init(aI("button"),c,a.macros),a.l.Na("click",a.gI,a),a.l.xa(a.element));b.title&&(c=g.Aw(b.title),a.Oa("title",c));b.reasonsTitle&&(c=g.Aw(b.reasonsTitle),a.Oa("reasonsTitle",c));b.reasons&&hma(a,b.reasons);b.cancelLabel&&(c=g.Aw(b.cancelLabel),a.Oa("cancelLabel",c),g.bp(a.I,"click",function(){return a.gI()}));
b.confirmLabel&&(c=g.Aw(b.confirmLabel),a.Oa("confirmLabel",c),g.bp(a.L,"click",function(){return ima(a)}));
b.undoRenderer&&jma(a,b.undoRenderer)};
hma=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;null==c?zo(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?zo(Error("AdFeedbackReason.endpoint was not set.")):(c=new lma(c,d),g.H(a,c),a.Y.appendChild(c.i.element),a.C.push(c)))}};
jma=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.u=new kK(a.api,a.Pa,a.layoutId,a.i,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.H(a,a.u),a.u.init(aI("ad-feedback-undo-mute-button"),b,a.macros),a.u.Na("click",a.nS,a),a.u.xa(a.Aa)):zo(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
ima=function(a){var b=a.C.filter(function(c){return c.isChecked()});
0!==b.length&&(a.Pa.executeCommand(b[0].l,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.V("c"),a.hide())};
lma=function(a,b){this.l=b;this.i=new g.WJ({D:"label",K:"ytp-ad-feedback-dialog-reason-label",S:[{D:"input",K:"ytp-ad-feedback-dialog-reason-input",U:{type:"radio",name:"feedback-reason-group"}},{D:"span",K:"ytp-ad-feedback-dialog-reason-text",ma:g.Aw(a)}]});this.u=this.i.ya("ytp-ad-feedback-dialog-reason-input")};
FK=function(a,b,c,d){rK.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
GK=function(a,b,c,d,e){XJ.call(this,a,b,{D:"div",K:"ytp-ad-info-dialog-background",S:[{D:"div",K:"ytp-ad-info-dialog-container",S:[{D:"div",K:"ytp-ad-info-dialog-form",U:{role:"dialog",tabindex:"-1"},S:[{D:"div",K:"ytp-ad-info-dialog-title",ma:"{{title}}"},{D:"ul",K:"ytp-ad-info-dialog-ad-reasons"},{D:"div",K:"ytp-ad-info-dialog-message"},{D:"div",K:"ytp-ad-info-dialog-mute-container"},{D:"div",K:"ytp-ad-info-dialog-confirm-container",S:[{D:"button",K:"ytp-ad-info-dialog-confirm-button",ma:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d);this.l=this.u=null;this.L=this.ya("ytp-ad-info-dialog-confirm-button");this.Sa=this.ya("ytp-ad-info-dialog-mute-container");this.Ma=this.ya("ytp-ad-info-dialog-message");this.Da=this.ya("ytp-ad-info-dialog-ad-reasons");this.C=this.B=null;this.Aa=e;this.I=null;this.Ga=!1;this.Y=null;this.hide()};
mma=function(a){(a.I&&a.I.impressionEndpoints||[]).forEach(function(b){return a.Pa.executeCommand(b,a.macros)})};
nma=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.u=new EK(a.api,a.Pa,a.layoutId,a.i),g.H(a,a.u),a.u.init(aI("ad-feedback-dialog"),b,a.macros),a.u.xa(a.Aa),a.u.subscribe("c",function(){return a.V("e")})};
oma=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.C=new FK(a.api,a.Pa,a.layoutId,a.i),g.H(a,a.C),a.C.init(aI("ad-mute-confirm-dialog"),b,a.macros),a.C.xa(a.Aa),a.C.subscribe("d",function(){return a.V("e")})};
pma=function(a){a.l&&a.l.Na("click",a.bE,a);g.bp(a.L,"click",function(){return a.bE()})};
HK=function(a,b,c,d,e,f){oK.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.l=null;this.B=e;this.hide()};
qma=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.xo(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.l=new GK(a.api,a.Pa,a.layoutId,a.i,a.B),g.H(a,a.l),a.l.init(aI("ad-info-dialog"),b,c),a.l.xa(a.B),a.l.subscribe("f",function(){return a.V("h")}),a.l.subscribe("e",function(){return a.V("g")}))};
sma=function(a,b,c){null==a.button?g.xo(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.u&&g.K(a.u.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null)?(qma(a,b,c),a.button.Na("click",function(){a.l&&!a.l.vb&&(a.l.show(),rma(a))})):a.button.Na("click",function(){return rma(a)}))};
rma=function(a){a.api.onAdUxClicked("ad-info-icon-button")};
g.IK=function(a,b,c,d,e,f){g.F.call(this);this.element=a;this.state=null;c||a.hide();this.u=b;this.B=void 0===d?b:d;this.i=f;this.l=e;this.delay=new g.J(this.sy,0,this);g.H(this,this.delay)};
JK=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
KK=function(a,b,c,d,e){vK.call(this,a,b,{D:"div",K:"ytp-ad-message-overlay",S:[{D:"div",K:"ytp-ad-message-slot"}]},"ad-message",c,d,e);var f=this;this.Y=-1;this.Ga=this.ya("ytp-ad-message-slot");this.B=new g.WJ({D:"span",K:"ytp-ad-message-container"});this.B.xa(this.Ga);g.H(this,this.B);this.u=new yK(this.api,this.Pa,this.layoutId,this.i,"ytp-ad-message-text");g.H(this,this.u);this.u.xa(this.B.element);this.L=new g.IK(this.B,400,!1,100,function(){return f.hide()});
g.H(this,this.L);this.C=0;this.Aa=!1;this.hide()};
tma=function(a,b){a=a.api.getRootNode();g.L(a,"ytp-ad-overlay-open",b);g.L(a,"ytp-ad-overlay-closed",!b)};
LK=function(a,b,c,d,e,f){vK.call(this,a,b,{D:"div",K:"ytp-ad-preview-slot"},"ad-preview",c,d,e);var h=this;this.Ga=-1;this.u=new g.WJ({D:"span",K:"ytp-ad-preview-container"});g.H(this,this.u);this.B=new yK(this.api,this.Pa,this.layoutId,this.i,"ytp-ad-preview-text");g.H(this,this.B);this.B.xa(this.u.element);this.L=new g.WJ({D:"span",K:"ytp-ad-preview-image"});g.H(this,this.L);this.C=new qK(this.api,this.Pa,this.layoutId,this.i);g.H(this,this.C);this.C.xa(this.L.element);this.L.xa(this.u.element);
this.u.xa(this.element);this.Y=new g.IK(this.u,400,!1,100,function(){return h.hide()});
g.H(this,this.Y);this.Aa=0;this.Ma=!1;this.Sa=f;this.hide()};
MK=function(a){a.Y.show(100);a.show()};
NK=function(a,b,c,d){yK.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
OK=function(a,b,c,d,e){vK.call(this,a,b,{D:"div",Ba:["ytp-flyout-cta","ytp-flyout-cta-inactive"],S:[{D:"div",K:"ytp-flyout-cta-icon-container"},{D:"div",K:"ytp-flyout-cta-body",S:[{D:"div",K:"ytp-flyout-cta-text-container",S:[{D:"div",K:"ytp-flyout-cta-headline-container"},{D:"div",K:"ytp-flyout-cta-description-container"}]},{D:"div",K:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e);this.L=new qK(this.api,this.Pa,this.layoutId,this.i,"ytp-flyout-cta-icon");g.H(this,this.L);this.L.xa(this.ya("ytp-flyout-cta-icon-container"));
this.C=new yK(this.api,this.Pa,this.layoutId,this.i,"ytp-flyout-cta-headline");g.H(this,this.C);this.C.xa(this.ya("ytp-flyout-cta-headline-container"));this.B=new yK(this.api,this.Pa,this.layoutId,this.i,"ytp-flyout-cta-description");g.H(this,this.B);this.B.xa(this.ya("ytp-flyout-cta-description-container"));this.u=new kK(this.api,this.Pa,this.layoutId,this.i,["ytp-flyout-cta-action-button"]);g.H(this,this.u);this.u.xa(this.ya("ytp-flyout-cta-action-button-container"));this.Y=null;this.Aa=0;this.hide()};
PK=function(a,b,c,d,e){XJ.call(this,a,b,{D:"div",K:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,void 0===e?null:e);var f=this;this.l=null;this.B=new sK(this.api,this.Pa,this.layoutId,this.i,["ytp-ad-instream-user-sentiment-like-button"]);g.H(this,this.B);this.B.xa(this.element);this.u=new sK(this.api,this.Pa,this.layoutId,this.i,["ytp-ad-instream-user-sentiment-dislike-button"]);g.H(this,this.u);this.u.xa(this.element);this.C=new g.IK(this,400,!1,500,function(){return f.hide()});
g.H(this,this.C);this.hide()};
uma=function(a,b){a.B.init(aI("toggle-button"),a.l.likeButton.toggleButtonRenderer,b);a.u.init(aI("toggle-button"),a.l.dislikeButton.toggleButtonRenderer,b);a.N(a.element,"change",a.cE)};
QK=function(a,b,c,d,e){e=void 0===e?0:e;g.F.call(this);this.u=a;this.l=!1;this.W=d;this.I=!1;this.i=null;0<b&&(this.i=new g.J(this.wF,b,this),g.H(this,this.i));this.C=new g.J(this.wF,c,this);g.H(this,this.C);this.L=pn(this.u,e,1,d);g.H(this,this.L);this.J=pn(this.u,0,d,1);g.H(this,this.J);this.B=new Yt;g.H(this,this.B)};
RK=function(a,b,c,d,e,f){vK.call(this,a,b,{D:"div",K:"ytp-ad-skip-button-slot"},"skip-button",c,d,e);var h=this;this.L=null;this.Aa=!1;this.Ga=f;this.B=new g.WJ({D:"span",Ba:["ytp-ad-skip-button-container"]});g.H(this,this.B);this.B.xa(this.element);this.u=this.C=null;this.Ma=new g.IK(this.B,500,!1,100,function(){return h.hide()});
g.H(this,this.Ma);this.Y=new QK(this.B.element,15E3,5E3,.5,.5);g.H(this,this.Y);this.hide()};
wma=function(a){var b=a.L&&a.L.adRendererCommands;b=b&&b.clickCommand&&b.clickCommand.commandExecutorCommand&&b.clickCommand.commandExecutorCommand.commands||[];return g.S(a.api.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf")?b.some(function(c){return c.adLifecycleCommand?vma(c.adLifecycleCommand):!1}):b.some(function(c){return c.adLifecycleCommand})};
vma=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
SK=function(a,b,c,d,e,f){vK.call(this,a,b,{D:"div",K:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e);this.Y=f;this.L=!1;this.C=0;this.B=this.u=null;this.hide()};
TK=function(a,b){a.L||(a.L=!0,a.u&&(b?a.u.Y.hide():a.u.hide()),b?(a=a.B,a.Ma.show(),a.show()):a.B.show())};
UK=function(a,b,c,d,e){XJ.call(this,a,b,{D:"div",K:"ytp-ad-persisting-overlay",S:[{D:"div",K:"ytp-ad-persisting-overlay-skip"}]},"persisting-overlay",c,d);this.u=this.ya("ytp-ad-persisting-overlay-skip");this.l=e;g.H(this,this.l);this.hide()};
VK=function(a,b,c,d){kK.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
WK=function(a,b,c,d,e){e=void 0===e?!1:e;XJ.call(this,a,b,{D:"span",K:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d);this.l=e;this.hide()};
XK=function(a,b){this.l=a;this.i=b};
YK=function(a){return a.i-a.l};
ZK=function(a,b){return a.l+b*YK(a)};
$K=function(a,b,c){return YK(a)?g.Zd((b-a.l)/YK(a),0,1):null!=c?c:Infinity};
aL=function(a,b){g.WJ.call(this,{D:"div",K:"ytp-ad-persistent-progress-bar-container",S:[{D:"div",K:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.l=b;g.H(this,this.l);this.Dc=this.ya("ytp-ad-persistent-progress-bar");this.i=-1;this.N(a,"presentingplayerstatechange",this.u);this.hide();this.u()};
bL=function(a,b,c,d,e,f){XJ.call(this,a,b,{D:"div",K:"ytp-ad-player-overlay",S:[{D:"div",K:"ytp-ad-player-overlay-flyout-cta"},{D:"div",K:"ytp-ad-player-overlay-instream-info"},{D:"div",K:"ytp-ad-player-overlay-skip-or-preview"},{D:"div",K:"ytp-ad-player-overlay-progress-bar"},{D:"div",K:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d);this.I=f;this.L=this.ya("ytp-ad-player-overlay-flyout-cta");this.u=this.ya("ytp-ad-player-overlay-instream-info");this.B=null;xma(this)&&(a=
Ce("div"),g.K(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.u,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new NK(this.api,this.Pa,this.layoutId,this.i),c.xa(a),c.init(aI("ad-title"),{text:b.title},this.macros),g.H(this,c)),this.B=a);this.C=this.ya("ytp-ad-player-overlay-skip-or-preview");this.Aa=this.ya("ytp-ad-player-overlay-progress-bar");this.Y=this.ya("ytp-ad-player-overlay-instream-user-sentiment");this.l=e;g.H(this,this.l);this.hide()};
xma=function(a){a=a.api.T();return gE(a)&&a.i};
cL=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.Id("/sharing_services",a);g.tq(d)};
g.zma=function(a,b,c){b=yma(null,b,c);if(b=jd(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.Ho("LOGGED_IN",function(d){g.Io(g.M("LOGGED_IN_PUBSUB_KEY",void 0));to("LOGGED_IN",!0);a(d)}),to("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
yma=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=Hd(c,"mode",a));a=Hd(d,"next",c);b&&(a=Hd(a,"feature",b));return a};
Ama=function(a,b){a=g.M("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null===b||void 0===b?0:b.Authorization)?a:Kp(a,{key:g.M("INNERTUBE_API_KEY")});(b=g.M("INNERTUBE_HOST_OVERRIDE"))&&(a=String(b)+String(zd(a)));return a};
Bma=function(a){return{method:"POST",mode:Lp(a)?"same-origin":"cors",credentials:Lp(a)?"same-origin":"include"}};
dL=function(a,b,c,d){var e=Pr;this.i=a;this.B=b;this.l=c;this.handleError=e;this.u=d};
fL=function(a,b,c){var d=void 0===d?eL:d;var e=Cma(a,b);if(!e)return a.handleError(new g.Zr("Error: No request builder found for command.",b)),nm({});var f=Dma(e,b,c,d);if(f)return new jm(function(h){return g.C(a,function m(){var n=this,p;return g.z(m,function(r){if(1==r.i)return g.w(r,Ema(n,f.config),2);p=r.l;h(Fma(n,f,p));r.i=0})})});
a.handleError(new g.Zr("Error: Failed to build request for command.",b));return nm({})};
g.uJ=function(a,b,c){var d=void 0===d?{Bo:{identity:eL}}:d;var e=void 0===e?!0:e;b.context||(b.context=qJ(void 0,e));return new jm(function(f){return g.C(a,function l(){var m=this,n,p,r;return g.z(l,function(t){if(1==t.i)return g.w(t,Ema(m,d),2);n=t.l;p=Ama(c,n);r={input:p,Fu:Bma(p),kB:b,config:d};f(Fma(m,r,n));t.i=0})})})};
Fma=function(a,b,c){return g.C(a,function e(){var f=this,h,l,m,n,p;return g.z(e,function(r){if(1==r.i)return h=f,r.Mb(2);if(2!=r.i&&(l=r.l)&&!l.isExpired())return r.return(Promise.resolve(l.i()));m=JSON.stringify(b.kB);b.Fu=Object.assign(Object.assign({},b.Fu),{headers:c});n=Object.assign({},b.Fu);"POST"===b.Fu.method&&(n=Object.assign(Object.assign({},n),{body:m}));p=f.B.fetch(b.input,n);return r.return(p.then(function(t){if(t&&h.u)for(var u=g.q(h.u),x=u.next();!x.done;x=u.next())x.value.Zo(t,b);
return Promise.resolve(t)}))})})};
Gma=function(a,b){var c,d;if(!b)return!1;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.i.OC)return-1<So("web_op_signal_type_banlist").indexOf(b.signalServiceEndpoint.signal)?!1:!!a.i.OC[b.signalServiceEndpoint.signal];if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.i.fA)return-1<So("web_op_continuation_type_banlist").indexOf(b.continuationCommand.request)?!1:!!a.i.fA[b.continuationCommand.request];for(var e in b)if(a.i.aA[e]){if(-1<So("web_op_endpoint_banlist").indexOf(e))break;
return!0}return!1};
Ema=function(a,b){return g.C(a,function d(){var e=this;return g.z(d,function(f){if(e.l.qT){var h=f.return,l,m,n=(null===(m=null===b||void 0===b?void 0:b.Bo)||void 0===m?void 0:m.identity)||eL;m=null===(l=null===b||void 0===b?void 0:b.Bo)||void 0===l?void 0:l.sessionIndex;l=e.l.ow(n,{sessionIndex:m});l=Object.assign(Object.assign({},Hma()),l);f=h.call(f,l)}else f=f.return(Ima(e,b));return f})})};
Ima=function(a,b){var c,d,e=(null===(c=null===b||void 0===b?void 0:b.Bo)||void 0===c?void 0:c.identity)||eL;b=null===(d=null===b||void 0===b?void 0:b.Bo)||void 0===d?void 0:d.sessionIndex;return Aea(a.l,e,{sessionIndex:b}).then(function(f){return Promise.resolve(Object.assign(Object.assign({},Hma()),f))})};
Hma=function(){var a={"Content-Type":"application/json"},b=g.M("VISITOR_DATA");b&&(a["X-Goog-Visitor-Id"]=b);(b=g.M("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(a["X-Youtube-Client-Name"]=b);(b=g.M("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(a["X-Youtube-Client-Version"]=b);g.Qo("webfe_track_one_platform_auth_mismatch")&&(a["X-Youtube-Bootstrap-Logged-In"]=g.M("LOGGED_IN",!1));(b=g.M("CHROME_CONNECTED_HEADER"))&&(a["X-Youtube-Chrome-Connected"]=b);return a};
Cma=function(a,b){var c,d;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.i.OC){var e=a.i.OC[b.signalServiceEndpoint.signal];if(e)return new e}if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.i.fA&&(e=a.i.fA[b.continuationCommand.request]))return new e;for(var f in b)if(a.i.aA[f]&&(b=a.i.aA[f]))return new b};
Kma=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=Jma[b];if(c){var d=new RegExp(c),e=g.q(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(Jma).forEach(function(h){var l=g.q(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.q(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
g.gL=function(a){return"/youtubei/v1/"+Kma(a)};
hL=function(){};
Dma=function(a,b,c,d){c=void 0===c?{}:c;d=void 0===d?eL:d;var e={context:qJ(b.clickTrackingParams)};var f=a.i(b);if(f){a.l(e,f,c);var h,l;a=g.gL(a.u());(b=null===(l=null===(h=b.commandMetadata)||void 0===h?void 0:h.webCommandMetadata)||void 0===l?void 0:l.apiUrl)&&(a=b);h=Ama(a);e={input:h,Fu:Bma(h),kB:e,config:Object.assign({},void 0)};e.config.Bo?e.config.Bo.identity=d:e.config.Bo={identity:d};return e}g.pt(new g.Zr("Error: Failed to create Request from Command.",b))};
iL=function(){};
jL=function(){};
kL=function(){};
lL=function(){};
mL=function(){};
nL=function(){};
oL=function(){this.i=this.l=void 0};
g.qL=function(a,b){if(!pL){var c={aA:{feedbackEndpoint:kL,modifyChannelNotificationPreferenceEndpoint:lL,playlistEditEndpoint:mL,subscribeEndpoint:iL,unsubscribeEndpoint:jL,webPlayerShareEntityServiceEndpoint:nL}},d=g.Qo("web_enable_client_location_service")?mka():void 0,e=[];d&&e.push(d);void 0===a&&(Mr.i||(Mr.i=new Mr),a=Mr.i);void 0===b&&(oL.i||(oL.i=new oL),b=oL.i);dL.i=new dL(c,b,a,e);pL=dL.i}return pL};
Mma=function(){var a,b;return g.C(this,function d(){var e;return g.z(d,function(f){e=navigator;return(null===(a=e.storage)||void 0===a?0:a.estimate)?f.return(e.storage.estimate()):(null===(b=e.webkitTemporaryStorage)||void 0===b?0:b.queryUsageAndQuota)?f.return(Lma()):f.return()})})};
Lma=function(){var a=navigator;return new Promise(function(b,c){var d;null!==(d=a.webkitTemporaryStorage)&&void 0!==d&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
Or=function(a,b){var c=this;this.handleError=a;this.i=b;this.l=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.l=!0})};
Oma=function(a,b){Mma().then(function(c){c=Object.assign(Object.assign({},b),{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:Nma(null===c||void 0===c?void 0:c.usage),deviceStorageQuotaMbytes:Nma(null===c||void 0===c?void 0:c.quota)});a.i("idbQuotaExceeded",c)})};
Nma=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
Pma=function(){Yx("bg_l","player_att");rL=(0,g.N)()};
Qma=function(a){a=void 0===a?{}:a;return At.invoke(a)};
Rma=function(a,b){a=void 0===a?{}:a;return hfa(a,b)};
Sma=function(a,b){var c=this;this.videoData=a;this.u=b;a={};this.l=(a.c1a=function(){if(sL(c)){var d="";c.videoData&&c.videoData.Ma&&(d=c.videoData.Ma+("&r1b="+c.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);Yx("bg_v","player_att");d=c.u?Qma(d):g.Ja("yt.abuse.player.invokeBotguard")(d);Yx("bg_s","player_att");d=d?"r1a="+d:"r1c=2"}else Yx("bg_e","player_att"),d="r1c=1";return d},a.c3a=function(d){return"r3a="+Math.floor(c.videoData.lengthSeconds%Number(d.c3a)).toString()},a.c6a=
function(d){d=Number(d.c);
var e=c.u?Et():(e=g.Ja("yt.abuse.dclkstatus.checkDclkStatus"))?e():NaN;return"r6a="+(d^e)},a);
this.videoData&&this.videoData.Ma?this.i=Fp(this.videoData.Ma):this.i={}};
Tma=function(a){if(a.videoData&&a.videoData.Ma){for(var b=[a.videoData.Ma],c=g.q(Object.keys(a.l)),d=c.next();!d.done;d=c.next())d=d.value,a.i[d]&&a.l[d]&&(d=a.l[d](a.i))&&b.push(d);return b.join("&")}return null};
Vma=function(a){var b={};Object.assign(b,a.l);"c1b"in a.i&&(b.c1a=function(){return Uma(a)});
if(a.videoData&&a.videoData.Ma){for(var c=[a.videoData.Ma],d=g.q(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.i[e]&&b[e]&&(e=b[e](a.i))&&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)};
sL=function(a){return a.u?At.Me():(a=g.Ja("yt.abuse.player.botguardInitialized"))&&a()};
Uma=function(a){if(!sL(a))return Yx("bg_e","player_att"),Promise.resolve("r1c=1");var b="";a.videoData&&a.videoData.Ma&&(b=a.videoData.Ma+("&r1b="+a.videoData.clientPlaybackNonce));var c={},d=(c.atr_challenge=b,c),e=a.u?Rma:g.Ja("yt.abuse.player.invokeBotguardAsync");return new Promise(function(f){Yx("bg_v","player_att");e(d,Ro("botguard_async_snapshot_timeout_ms",3E3)).then(function(h){h?(Yx("bg_s","player_att"),f("r1a="+h)):(Yx("bg_e","player_att"),f("r1c=2"))},function(){Yx("bg_e","player_att");
f("r1c=3")})})};
Wma=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 tL(a)};
tL=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};
Xma=function(a,b,c,d){if(g.Oa(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};
g.uL=function(a){var b=a.T(),c=Yma(b),d=a.Aa;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=$G(a);"leanback"===f?e="WATCH":b.ea("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.xc?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.Sj)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:Zma[e]}});a.Bp&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.W)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Jc&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=$ma[b];c.request=d;d=c.user||{};if(b=a.Ga)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.ub)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};
Yma=function(a){var b=qJ(),c=b.client||{};if(a.Sa){var d=a.Sa.split(","),e=[];d=g.q(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={livingRoomAppMode:e};b.client=c;c=b.user||{};a.enableSafetyMode&&(c.enableSafetyMode=!0);b.user=c;if(a=a.Xa)b.thirdParty={embedUrl:a};return b};
vL=function(a,b,c){var d=a.videoId,e=g.uL(a),f=a.T(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(zp()),referer:document.location.toString(),signatureTimestamp:18716};g.Wq.getInstance();a.pj&&(h.autonav=!0);g.Yq(0,141)&&(h.autonavState=g.Yq(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.Yq(0,66);cH(a)&&(h.autoplay=!0);f.u&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.Tz&&(h.fling=!0);var l=a.Lf;if(l){var m={},n=l.split("|");3===
n.length?(m.breakType=ana[n[0]],m.offset={kind:"OFFSET_MILLISECONDS",value:String(Number(n[1])||0)},m.url=n[2]):m.url=l;h.forceAdParameters={videoAds:[m]}}a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);l=a.oo;if(null!=l){l={startWalltime:String(l)};if(m=a.Mf)l.manifestDuration=String(m||14400);h.liveContext=l}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.He&&(h.splay=!0);l=a.vnd;5===l&&(h.vnd=l);if((l=a.isMdxPlayback)||g.S(f.experiments,"send_mdx_remote_data_if_present")){l={triggeredByMdx:l};var p=
a.jg;if(p)if(m=a.CD,n=p.startsWith("!"),p=p.split("-"),3===p.length){n&&(p[0]=p[0].substr(1));n={applicationState:n?"INACTIVE":"ACTIVE",clientFormFactor:bna[p[1]]||"UNKNOWN_FORM_FACTOR",clientName:cna[p[0]]||"UNKNOWN_INTERFACE",clientVersion:p[2]||"",platform:dna[p[1]]||"UNKNOWN_PLATFORM"};if(m){try{var r=JSON.parse(m)}catch(u){g.qt(u)}if(r){var t={params:[{key:"ms",value:r.ms}]};n.osName=r.os_name;n.userAgent=r.user_agent;n.windowHeightPoints=r.window_height_points;n.windowWidthPoints=r.window_width_points}}l.remoteContexts=
[{adSignalsInfo:t,remoteClient:n}]}else l.remoteContexts=[{remoteClient:{clientName:"UNKNOWN_INTERFACE"}}];if(t=a.zl)l.skippableAdsSupported=t.split(",").includes("ska");h.mdxContext=l}t=b.width;0<t&&(h.playerWidthPixels=t);if(b=b.height)h.playerHeightPixels=b;0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);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);a.ea("hoffle_save")&&fH(a)&&(d.forOffline=!0);a=a.T();if(e=a.embedConfig)d.serializedThirdPartyEmbedConfig=e;d.captionParams={};e=g.Yq(g.Wq.getInstance(),65);g.jE(a)&&(d.captionParams.deviceCaptionsOn=null!=e?!e:!1);g.dE(a)&&a.ea("web_player_i_see_captions_2")&&(a=(0,g.ena)(),null===a||void 0===a?0:a.length)&&(d.captionParams.viewerSelectedCaptionLangs=a);return d};
fna=function(a){var b=a.T();g.Wq.getInstance();var c={context:g.uL(a),videoId:a.videoId,racyCheckOk:a.racyCheckOk,contentCheckOk:a.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===$G(a)&&(c.isAdPlayback=!0);b.embedConfig&&(c.serializedThirdPartyEmbedConfig=b.embedConfig);b.Mi&&(c.showContentOwnerOnly=!0);g.Yq(0,141)&&(c.autonavState=g.Yq(0,140)?"STATE_OFF":"STATE_ON");return c};
hna=function(a){var b,c;return g.C(this,function e(){var f,h,l,m,n;return g.z(e,function(p){if(1==p.i)return f=g.qL(),h={context:qJ(),videoIds:[a]},l=g.gL(gna),g.w(p,g.uJ(f,h,l),2);m=p.l;if(!m)throw Error("Network request failed");if(!m.videos||1!==m.videos.length)throw Error("Failed request: "+(null!==(c=null===(b=m.error)||void 0===b?void 0:b.code)&&void 0!==c?c:"?"));n=m.videos[0].offlineVideoData;if(!n)throw Error("No data");return p.return(n)})})};
wL=function(a,b,c){this.api=a;this.player=b;this.player.subscribe("localmediachange",this.i,this);this.l=c;ina(this);this.Z()};
jna=function(a){return g.C(this,function c(){var d;return g.z(c,function(e){return 1==e.i?g.w(e,Eha(a),2):3!=e.i?(d=e.l,g.w(e,RE(d),3)):e.return(qF(a))})})};
kna=function(){return g.C(this,function b(){return g.z(b,function(c){if(1==c.i){var d=Promise,e=d.all;var f="caches"in window?g.A.caches.delete(PE(!1)):Promise.resolve(!0);c=g.w(c,e.call(d,[f,Fha()]),2)}else c=c.return();return c})})};
lna=function(){g.C(this,function b(){return g.z(b,function(c){return 1==c.i?g.w(c,Promise.all([QE(),dF()]),2):c.return()})})};
ina=function(a){jF().then(function(){var b=$E(2);b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=xL(a,c);a.Z();d||aF(c,3)}a.Z();yL(a)})};
ona=function(a,b){return g.C(a,function d(){var e,f=this;return g.z(d,function(h){if(1==h.i)return YE(b)?h.return():g.w(h,hna(b),2);if(3!=h.i)return e=h.l,g.w(h,mna(f,b,e),3);0===$E(2).length?nna(f,b):aF(b,3);h.i=0})})};
pna=function(a,b){var c,d;return g.C(a,function f(){var h,l,m;return g.z(f,function(n){if(1==n.i)return g.w(n,Dha(b),2);h=n.l;if(!h)return n.return(null);l=h.timestampSecs;m=null===(d=null===(c=h.player)||void 0===c?void 0:c.offlineState)||void 0===d?void 0:d.expiresInSeconds;return!m||l+m<=Math.floor(Date.now()/1E3)?n.return(null):n.return(h.player)})})};
xL=function(a,b){var c=a.api.Ic(),d=c?c.getVideoData():null;return c&&(null===d||void 0===d?0:gH(d))&&d.videoId===b?c:a.player.getVideoData().videoId===b?a.player:null};
nna=function(a,b){aF(b,2);var c=qna(a,{videoId:b,download_media:!0,start:Infinity,disable_watch_next:!0});c.subscribe("dataloaded",function(){var d;if(g.S(a.api.T().experiments,"hoffle_api")){var e=c.getPlayerResponse(),f=null===(d=null===e||void 0===e?void 0:e.videoDetails)||void 0===d?void 0:d.videoId;e&&f&&Aha(f,e)}});
a.player.Oi(c,a.l);b=rna();g.S(a.player.T().experiments,"hoffle_lmqf_killswitch")||(b=gy(b,b,!0,"m"),zL(a.player,b));a.Z();AL(a.player,!1)};
qna=function(a,b){return new g.$F(a.player.T(),b)};
rna=function(){switch(g.Wq.getInstance().get("lmqf")){case "HD_1080":return"hd1080";case "HD":return"hd720";case "SD":return"large";case "LD":return"tiny";default:return"hd720"}};
yL=function(a){if(!(0<$E(2).length)){var b=$E(3);0<b.length&&nna(a,b[0])}};
mna=function(a,b,c){return g.C(a,function e(){var f=this;return g.z(e,function(h){if(1==h.i)h=g.S(f.api.T().experiments,"hoffle_api")?g.w(h,zha(b,c),2):h.return();else{var l=h.return,m,n,p=sna(c.thumbnail);p=p.concat(sna(null===(n=null===(m=c.channel)||void 0===m?void 0:m.offlineChannelData)||void 0===n?void 0:n.thumbnail));m=p.length?SE(p):Promise.resolve(void 0);h=l.call(h,m)}return h})})};
sna=function(a){if(!a||!a.thumbnails)return[];var b=[];a=g.q(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&b.push(c.url);return b};
DL=function(a,b){g.F.call(this);var c=this;this.app=a;this.playerType=b;this.i=!0;this.element=null;this.C={};this.J={};this.l={};this.L=[];this.I={};this.B={};this.u=null;this.W=new Set;BL(this,"cueVideoById",this.cueVideoById);BL(this,"loadVideoById",this.loadVideoById);BL(this,"cueVideoByUrl",this.cueVideoByUrl);BL(this,"loadVideoByUrl",this.loadVideoByUrl);BL(this,"playVideo",this.playVideo);BL(this,"pauseVideo",this.pauseVideo);BL(this,"stopVideo",this.stopVideo);BL(this,"clearVideo",this.clearVideo);
BL(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);BL(this,"getVideoBytesTotal",this.getVideoBytesTotal);BL(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);BL(this,"getVideoStartBytes",this.getVideoStartBytes);BL(this,"cuePlaylist",this.cuePlaylist);BL(this,"loadPlaylist",this.loadPlaylist);BL(this,"nextVideo",this.nextVideo);BL(this,"previousVideo",this.previousVideo);BL(this,"playVideoAt",this.playVideoAt);BL(this,"setShuffle",this.setShuffle);BL(this,"setLoop",this.setLoop);BL(this,
"getPlaylist",this.gO);BL(this,"getPlaylistIndex",this.getPlaylistIndex);BL(this,"getPlaylistId",this.getPlaylistId);BL(this,"loadModule",this.loadModule);BL(this,"unloadModule",this.unloadModule);BL(this,"setOption",this.setOption);BL(this,"getOption",this.getOption);BL(this,"getOptions",this.getOptions);BL(this,"mute",this.mute);BL(this,"unMute",this.unMute);BL(this,"isMuted",this.isMuted);BL(this,"setVolume",this.setVolume);BL(this,"getVolume",this.getVolume);BL(this,"seekTo",this.seekTo);BL(this,
"getPlayerState",this.getPlayerState);BL(this,"getPlaybackRate",this.getPlaybackRate);BL(this,"setPlaybackRate",this.setPlaybackRate);BL(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);BL(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
BL(this,"setPlaybackQuality",this.setPlaybackQuality);BL(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);BL(this,"getCurrentTime",this.getCurrentTime);BL(this,"getDuration",this.getDuration);BL(this,"addEventListener",this.uN);BL(this,"removeEventListener",this.RS);BL(this,"getDebugText",this.getDebugText);BL(this,"getVideoData",function(){return c.Dw()});
BL(this,"addCueRange",this.addCueRange);BL(this,"removeCueRange",this.removeCueRange);BL(this,"setSize",this.setSize);BL(this,"getApiInterface",this.getApiInterface);BL(this,"destroy",this.destroy);BL(this,"showVideoInfo",this.showVideoInfo);BL(this,"hideVideoInfo",this.hideVideoInfo);BL(this,"isVideoInfoVisible",this.isVideoInfoVisible);BL(this,"getSphericalProperties",this.getSphericalProperties);BL(this,"setSphericalProperties",this.setSphericalProperties);this.app.T().I||(BL(this,"getVideoEmbedCode",
this.getVideoEmbedCode),BL(this,"getVideoUrl",this.getVideoUrl));BL(this,"getMediaReferenceTime",this.getMediaReferenceTime);CL(this,"getInternalApiInterface",this.getInternalApiInterface);CL(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);CL(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);CL(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);CL(this,"getAdState",this.getAdState);CL(this,"sendAbandonmentPing",this.sendAbandonmentPing);CL(this,"setLoopRange",this.setLoopRange);
CL(this,"getLoopRange",this.getLoopRange);CL(this,"setAutonavState",this.setAutonavState);CL(this,"seekToLiveHead",this.seekToLiveHead);CL(this,"seekToStreamTime",this.seekToStreamTime);CL(this,"seekToChapterWithAnimation",this.seekToChapterWithAnimation);CL(this,"getStreamTimeOffset",this.getStreamTimeOffset);CL(this,"getVideoData",this.Dw);CL(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);CL(this,"deleteLocalMediaById",this.deleteLocalMediaById);CL(this,"deleteAllLocalMedia",this.deleteAllLocalMedia);
CL(this,"cancelPendingLocalMediaById",this.cancelPendingLocalMediaById);CL(this,"fetchLocalMedia",this.XN);CL(this,"fetchLocalMediaById",this.fetchLocalMediaById);CL(this,"downloadVideo",this.downloadVideo);CL(this,"refreshAllVideos",this.refreshAllVideos);CL(this,"deleteVideos",this.deleteVideos);CL(this,"deleteAllVideos",this.deleteAllVideos);CL(this,"startOrchestration",this.startOrchestration);CL(this,"stopOrchestration",this.stopOrchestration);CL(this,"getLocalPlayerResponse",this.getLocalPlayerResponse);
CL(this,"getLocalMediaInfoById",this.getLocalMediaInfoById);CL(this,"getAllLocalMediaInfo",this.getAllLocalMediaInfo);CL(this,"getAppState",this.getAppState);CL(this,"addInfoCardXml",this.addInfoCardXml);CL(this,"updateLastActiveTime",this.updateLastActiveTime);CL(this,"setBlackout",this.setBlackout);CL(this,"setAccountLinkState",this.setAccountLinkState);CL(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);CL(this,"setUserEngagement",this.setUserEngagement);CL(this,"updateSubtitlesUserSettings",
this.updateSubtitlesUserSettings);CL(this,"setFauxFullscreen",this.setFauxFullscreen);CL(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);CL(this,"getPresentingPlayerType",this.getPresentingPlayerType);CL(this,"canPlayType",this.canPlayType);CL(this,"updatePlaylist",this.updatePlaylist);CL(this,"updateVideoData",this.updateVideoData);CL(this,"updateEnvironmentData",this.updateEnvironmentData);CL(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);CL(this,"setCardsVisible",
this.setCardsVisible);CL(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);CL(this,"setSafetyMode",this.setSafetyMode);CL(this,"isAtLiveHead",function(d){c.isAtLiveHead(void 0,d)});
CL(this,"getVideoAspectRatio",this.getVideoAspectRatio);CL(this,"getPreferredQuality",this.getPreferredQuality);CL(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);CL(this,"onAdUxClicked",this.onAdUxClicked);CL(this,"getFeedbackProductData",this.getFeedbackProductData);CL(this,"getStoryboardFrame",this.getStoryboardFrame);CL(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);CL(this,"getStoryboardLevel",this.getStoryboardLevel);CL(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
CL(this,"getCaptionWindowContainerId",this.getCaptionWindowContainerId);CL(this,"setAutonav",this.setAutonav);CL(this,"isNotServable",this.isNotServable);CL(this,"channelSubscribed",this.channelSubscribed);CL(this,"channelUnsubscribed",this.channelUnsubscribed);CL(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);CL(this,"togglePictureInPicture",this.togglePictureInPicture);CL(this,"supportsGaplessAudio",this.supportsGaplessAudio);CL(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
CL(this,"clearQueue",this.clearQueue);CL(this,"isFastLoad",function(){return!1});
CL(this,"getPlayerResponse",this.getPlayerResponse);CL(this,"getAudioTrack",this.VN);CL(this,"setAudioTrack",this.setAudioTrack);CL(this,"getAvailableAudioTracks",this.WN);CL(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);CL(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);CL(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);CL(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);CL(this,"setMinimized",this.setMinimized);CL(this,"confirmYpcRental",
this.confirmYpcRental);CL(this,"setInlinePreview",this.setInlinePreview);CL(this,"handleExternalCall",this.handleExternalCall);CL(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);CL(this,"getStatsForNerds",this.getStatsForNerds);CL(this,"setScreenLayer",this.setScreenLayer);CL(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);CL(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);CL(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);CL(this,
"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);CL(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);CL(this,"setGlobalCrop",this.setGlobalCrop);CL(this,"getVisibilityState",this.getVisibilityState);CL(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);CL(this,"setInternalSize",this.setInternalSize)};
BL=function(a,b,c){a.C[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.Z();return c.apply(a,e)};
a.l.hasOwnProperty(b)||CL(a,b,c);a.L.push(b)};
EL=function(a,b,c){a.J[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.Z();return c.apply(a,e)};
a.l.hasOwnProperty(b)||CL(a,b,c);a.L.push(b)};
CL=function(a,b,c){a.l[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.Z();return c.apply(a,e)}};
rla=function(a){a.u||(a.u={},g.Sa(a.u,a.C),g.Sa(a.u,a.J),a.u.addEventListener=function(b,c){tna(a,b,c)},a.u.removeEventListener=function(b,c){c="string"===typeof c?b+c:b+String(g.Qa(c));
var d=a.B[c];d&&(a.app.El.unsubscribe(b,d),b=a.B,c in b&&delete b[c])});
return a.u};
tna=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Qa(c));if(!a.B[d]){var e;"string"===typeof c?e=function(h){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];g.Ja(c).apply(window,l)}:e=c;
var f=function(h){e({target:a.u,data:h})};
a.B[d]=f;a.app.El.subscribe(b,f)}};
una=function(a,b,c){b=g.Zd(Math.floor(b),0,100);isFinite(b)&&FL(a.app,{volume:b,muted:a.isMuted()},c)};
vna=function(a,b){FL(a.app,{muted:!0,volume:a.getVolume()},b)};
wna=function(a,b){FL(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.HL=function(a){var b=GL(a.app.ob());if(b)return b.ut();a=a.app.ob();a=g.LD(a.G.T())?a.yd.get("music"):void 0;return a?a.ut():null};
JL=function(a,b){DL.call(this,a,b);var c=this;this.i=!1;EL(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(IL(c,d),e)});
EL(this,"loadVideoByPlayerVars",function(d,e,f,h){c.loadVideoByPlayerVars(IL(c,d),e,f,h)});
EL(this,"preloadVideoByPlayerVars",function(d,e,f,h){return void c.preloadVideoByPlayerVars(IL(c,d),e,f,h)});
EL(this,"seekBy",this.seekBy);EL(this,"mutedAutoplay",this.mutedAutoplay);EL(this,"showControls",this.showControls);EL(this,"hideControls",this.hideControls);EL(this,"cancelPlayback",this.cancelPlayback);EL(this,"getProgressState",this.getProgressState);EL(this,"isInline",this.isInline);EL(this,"setInline",this.setInline);EL(this,"getStoryboardFormat",this.getStoryboardFormat);EL(this,"getVideoContentRect",this.getVideoContentRect);EL(this,"toggleFullscreen",this.toggleFullscreen);EL(this,"isFullscreen",
this.isFullscreen);EL(this,"getVideoStats",this.getVideoStats);EL(this,"getPlayerSize",this.getPlayerSize);EL(this,"toggleSubtitles",this.toggleSubtitles);EL(this,"setCenterCrop",this.setCenterCrop);EL(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);EL(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);EL(this,"setSizeStyle",this.setSizeStyle);EL(this,"wakeUpControls",this.wakeUpControls)};
IL=function(a,b){var c={};if(a.app.T().J){a=g.q(xna);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d])}else for(a=g.q(yna),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
g.KL=function(a){JL.call(this,a);this.Zy=null};
LL=function(a){a=a.ob();var b=a.yd.get("endscreen");return b&&b.Kp()?!0:a.Lu()||g.LD(a.G.T())};
g.ML=function(a,b){3===a.getPresentingPlayerType()?a.V("mdxautoplaycancel"):a.V("autonavcancel",b)};
g.OL=function(a){var b=g.NL(a.ob());return a.app.Lg&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Fk()||!!a.getPlaylist()};
g.QL=function(a){return(a=g.PL(a.ob()))?a.zw():{}};
g.zna=function(a){a=(a=a.getVideoData())&&a.l;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.Ana=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.va)};
g.RL=function(a,b,c){a=a.Wa().element;var d=vb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.Ge(a,b,d);b.setAttribute("data-layer",String(c))};
g.SL=function(a){var b=a.T();if(!b.xc)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=!c.isLiveDefaultBroadcast||g.S(b.experiments,"allow_poltergust_autoplay");d=c.isLivePlayback&&(!g.S(b.experiments,"allow_live_autoplay")||!d);var e=c.isLivePlayback&&g.S(b.experiments,"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.C&&f;return!c.ypcPreview&&(!d||e)&&!g.fb(c.X,"ypc")&&!a&&(!g.BD(b)||f)};
Bna=function(a){if(!a.ea("html5_inline_video_quality_survey"))return!1;var b=g.X(a.app);if(!b)return!1;var c=b.getVideoData();if(!c.l||!c.l.video||1080>c.l.video.i||c.zH)return!1;var d=/^qsa/.test(c.clientPlaybackNonce),e="r";0<=c.l.id.indexOf(";")&&(d=/^[a-p]/.test(c.clientPlaybackNonce),e="x");a.ea("html5_inline_video_quality_survey_always")&&(d=!0,e="a");return d?(b.Ua("iqss",e,!0),!0):!1};
g.TL=function(){Yt.apply(this,arguments)};
UL=function(a,b){this.u=a;this.timerName="";this.l=!1;this.i=b||null;this.l=!1};
Cna=function(a){a=a.timerName;$w("yt_sts","p",a);ax("_start",void 0,a)};
Dna=function(a,b,c){var d=g.HD(b.B)&&b.B.Xc&&bH(b);if(b.B.Rf&&(DD(b.B)||mE(b.B)||d)&&!a.l){a.l=!0;g.M("TIMING_ACTION")||to("TIMING_ACTION",a.u.csiPageType);a.u.csiServiceName&&to("CSI_SERVICE_NAME",a.u.csiServiceName);if(a.i){b=a.i.wt();d=g.q(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,ax(e,b[e],a.timerName);b=a.i.Ts;d=g.q(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,$w(e,b[e],a.timerName);b=a.i;b.i={};b.Ts={}}$w("yt_pvis",Ofa(),a.timerName);$w("yt_pt","html5",a.timerName);
c&&!Xx("pbs",a.timerName)&&a.tick("pbs",c);c=a.u;!mE(c)&&!DD(c)&&Xx("_start",a.timerName)&&Zx(a.timerName)}};
g.VL=function(a,b){this.type=a||"";this.id=b||""};
g.WL=function(a,b){g.P.call(this);this.l=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.ke=this.rA=this.i=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.B={};this.u=0;if(a=b.session_data)this.ke=Dp(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 g.VL("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=new g.VL(a.substr(0,2),a.substr(2));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.q(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.B=zF(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
XL=function(a){return!!(a.playlist||a.list||a.api)};
Ena=function(a){var b=a.index+1;return b>=a.length?0:b};
Fna=function(a){var b=a.index-1;return 0>b?a.length-1:b};
YL=function(a,b){a.index=g.Zd(b,0,a.length-1);a.startSeconds=0};
ZL=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=a.Za();a.items=[];for(var d=g.q(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;if(b=b.index)a.index=b;else if(c&&(b=c.videoId,!a.items[a.index]||a.items[a.index].video_id!==b))for(c=0;c<a.items.length;c++)if(a.items[c].video_id===b){a.index=
c;break}a.setShuffle(!1);a.loaded=!0;a.u++;a.i&&a.i()}};
$L=function(a,b){a.i=b;a.loaded&&g.Ao(a.i,0)};
Ina=function(a,b){return g.C(this,function d(){var e,f,h,l,m;return g.z(d,function(n){if(1==n.i){e=g.qL();var p=a.T(),r={context:g.uL(a)};p=p.embedConfig;var t,u,x,y,E,D;var G=b.docid||b.video_id||b.videoId||b.id;if(!G){G=b.raw_embedded_player_response;if(!G&&!g.Qo("parse_video_id_from_serialized_embedded_player_response_killswitch")){var I=b.embedded_player_response;I&&(G=JSON.parse(I))}G=G?(null===(D=null===(E=null===(y=null===(x=null===(u=null===(t=null===G||void 0===G?void 0:G.embedPreview)||
void 0===t?void 0:t.thumbnailPreviewRenderer)||void 0===u?void 0:u.playButton)||void 0===x?void 0:x.buttonRenderer)||void 0===y?void 0:y.navigationEndpoint)||void 0===E?void 0:E.watchEndpoint)||void 0===D?void 0:D.videoId)||null:null}t=(t=G)?t:void 0;u=a.playlistId?a.playlistId:b.list;x=b.listType;if(u){var O;"user_uploads"===x?O={username:u}:O={playlistId:u};Gna(a,p,t,O);r.playlistRequest=O}else b.playlist?(O={templistVideoIds:b.playlist.toString().split(",")},Gna(a,p,t,O),r.playlistRequest=O):t&&
(O={videoId:t},p&&(O.serializedThirdPartyEmbedConfig=p),r.singleVideoRequest=O);f=r;h=g.gL(Hna);return g.w(n,g.uJ(e,f,h),2)}l=n.l;m=a.T();return n.return(new g.$F(m,{raw_embedded_player_response:l}))})})};
Gna=function(a,b,c,d){a=a.playlistIndex;d.playlistIndex=String(a?a:1);d.videoId=c?c:"";b&&(d.serializedThirdPartyEmbedConfig=b)};
g.aM=function(a){g.P.call(this);this.loaded=!1;this.player=a};
Jna=function(){this.i=.125;this.l=!1;this.u=0;this.pg=!1};
Kna=function(a,b){var c=void 0===b?{}:b;b=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.Gk?!1:c.Gk;var d=new Jna;d.l=a.ea("html5_streaming_xhr_no_mp4_holdback_chunk");d.u=g.T(a.experiments,"html5_time_based_consolidation_ms");a.ea("html5_resume_streaming_requests")&&(d.i=0);d.pg=b||c;return d};
g.Lna=function(){this.B=new Jna;this.lp=this.kp=!1;this.oo=2;this.I=20971520;this.J=8388608;this.C=120;this.Db=3145728;this.va=62914560;this.Tb=10485760;this.qo=this.No=this.Kf=0;this.uq=!1;this.W=NaN;this.Vi=0;this.Sj=this.xq=2;this.Rg=3;this.Vp=2;this.Aa=2097152;this.Up=1048576;this.ib=!1;this.Xc=1800;this.ao=5;this.ra=15;this.ld=1;this.l=1.15;this.u=1.05;this.bp=!0;this.Ma=!1;this.Wp=.8;this.rl=this.Fc=!1;this.Wb=6;this.pe=this.ub=!1;this.Si=.5;this.Gc=0;this.Yk=this.Jc=!1;this.Pf=this.He=0;this.tq=
2;this.Ec=5E3;this.ol=6;this.Po=!1;this.sf=1;this.Ii=1.6;this.tb=!1;this.Y=.5;this.Pc=2;this.Kc=this.hq=0;this.qq=1.5;this.rq=this.Mi=.5;this.Ih=15;this.Zn=1;this.Qn=this.Mf=!1;this.jo=0;this.jl=this.Bl=this.fq=this.Op=this.Wn=this.Rf=this.Gp=this.jp=!1;this.Sf=0;this.Rn=this.Yn=this.cq=this.Xj=!1;this.Qd=0;this.Ga=this.xc=this.Pj=this.yq=this.xg=this.Xa=this.gq=this.Lf=this.Sn=!1;this.Ya=!0;this.Wc=this.Da=this.Bp=this.Sa=!1;this.il=!0;this.Rh=!1;this.i="";this.Ds=1048576;this.Vn=this.Qj=this.kd=
this.jk=!1;this.di=46800;this.Ca=this.hk=this.Rj=this.td=this.Ad=!1;this.wq=!0;this.lk=this.Yj=this.Rp=this.Xp=this.Wj=this.Tj=this.eq=!1;this.Ra=0;this.ll="";this.Zj=this.Vj=!1;this.X=!0;this.Xk=this.Mj=this.ql=this.wg=!1;this.Bd=0;this.Bg=this.L=this.Uj=this.bq=this.Xn=this.Ji=!1};
Mna=function(a,b){1080<b.Za().i&&!a.kp&&(a.I=36700160,a.J=5242880,a.Db=10485760,a.Aa=4194304,a.kp=!0);2160<b.Za().i&&!a.lp&&(a.I=104857600,a.W=13107200,a.lp=!0);a.Up=Math.max(65536,Math.min(a.Aa,5*b.l))};
g.bM=function(a,b){return qB(a.info.mimeType)?b?a.info.yc()===b:!0:!1};
g.Nna=function(a,b){if(null!=a.i&&g.fE(b.T())&&!a.i.isManifestless&&null!=a.i.i.rawcc)return!0;if(!a.Lk())return!1;b=!!a.i&&a.i.isManifestless&&Object.values(a.i.i).some(function(c){return g.bM(c,"386")});
a=!!a.i&&!a.i.isManifestless&&Aga(a.i);return b||a};
cM=function(a,b){g.F.call(this);this.G=a;this.B=b;this.Ts={};this.i={};this.l=null;this.yd=new Map;this.u=g.S(a.T().experiments,"web_player_defer_modules")};
g.dM=function(a){return a.yd.get("captions")};
Qna=function(a,b){switch(b){case "ad":return eM(a);case "annotations_module":return b=a.G.T(),MD(b)?a=!1:(a=a.G.getVideoData(),a=a.XH||"3"===b.controlsType?!1:b.L.isEmpty()&&"annotation-editor"!==b.playerStyle&&"live-dashboard"!==b.playerStyle?!!a.ra||!!g.YG(a)||!!g.ZG(a):!0),a;case "attribution":return a=a.G.T(),g.S(a.experiments,"web_player_show_music_in_this_video")&&"desktop-polymer"===a.playerStyle;case "creatorendscreen":return b=a.G.T(),"3"===b.controlsType?a=!1:"creator-endscreen-editor"===
b.playerStyle?a=!0:(a=a.G.getVideoData(),a=!!a&&(!!g.WG(a)||!!g.XG(a))),a;case "embed":return g.BD(a.G.T());case "endscreen":return g.Ona(a);case "heartbeat":return a.LC();case "inline_preview":return a.G.T().showInlinePreviewUi;case "kids":return TD(a.G.T());case "remote":return a.G.T().sf;case "miniplayer":return a.G.T().showMiniplayerUiWhenMinimized;case "music":return g.LD(a.G.T());case "captions":return b=a.G.getVideoData(),!!b.Ji||!!b.captionTracks.length||g.Nna(b,a.G);case "unplugged":return g.JD(a.G.T());
case "ux":return a.G.T().ub;case "webgl":return Pna(a);case "ypc":return a.Lu();case "ypc_clickwrap":return a=a.G.getVideoData(),a.Bg&&!a.eB;case "yto":return!!a.G.getVideoData().X.includes("yto");default:return g.pt(Error("Module descriptor "+b+" does not match")),!1}};
fM=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;var f=a.yd.get(b);if(!f||e)if(c||(c=function(){fM(a,b,void 0,d,e)}),f=f||Rna(a,b,c,Qna(a,b)))a.yd.set(b,f),f.create(),d&&a.G.La("onApiChange")};
Sna=function(a){a.u&&(fM(a,"endscreen"),a.iA(),fM(a,"creatorendscreen",void 0,!0))};
g.Ona=function(a){var b=a.G.T();if(mE(b)||b.I||!b.Db&&!b.Wc)return!1;var c=a.G.getPresentingPlayerType();if(2===c)return!1;if(3===c)return g.S(b.experiments,"desktop_enable_autoplay");a=a.G.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||g.S(b.experiments,"allow_poltergust_autoplay");c=a.isLivePlayback&&(!g.S(b.experiments,"allow_live_autoplay")||!c);b=a.isLivePlayback&&g.S(b.experiments,"allow_live_autoplay_on_mweb");return!c||b};
g.PL=function(a){return a.yd.get("webgl")};
Pna=function(a){var b=a.G.getVideoData(),c=a.G.T().experiments,d=g.jq(),e=g.S(c,"enable_spherical_kabuki");a=g.lE(a.G.T());if(g.VG(b))return d||e||a||g.S(c,"html5_enable_spherical");if(g.SG(b))return a||d||e||g.S(c,"html5_enable_spherical");if(g.TG(b))return a||d||g.S(c,"html5_enable_spherical3d");if(g.UG(b))return a||g.S(c,"html5_enable_anaglyph3d")||!1;d=b.l&&b.l.video&&b.l.video.isHdr();return a&&!g.IG(b)&&!d&&(g.S(c,"enable_webgl_noop")||g.S(c,"html5_enable_bicubicsharp")||g.S(c,"html5_enable_smartsharp"))};
Tna=function(a){g.S(a.G.T().experiments,"web_player_ux_module_wait")&&a.yd.get("ux")&&a.G.Id("ux")};
Una=function(a){Tna(a);fM(a,"ux",void 0,!0)};
eM=function(a){if(a=a.G.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
Rna=function(a,b,c,d){try{if(d){var e=g.gM[b];if(e)return new e(a.G);"creatorendscreen"===b?Vna(a,"annotations_module",c):Vna(a,b,c)}else a.G.Id(b)}catch(f){a.G.Id(b),g.pt(f)}return null};
hM=function(a,b,c){for(var d=g.q(a.yd),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;(f=f.next().value)&&(c||f.Qi(b))&&(g.ui(f),a.yd.delete(e))}};
iM=function(a){return a.yd.get("ad")};
jM=function(a){if(TD(a.G.T()))return a.yd.get("kids")};
g.NL=function(a){if(a.G.T().sf)return a.yd.get("remote")};
kM=function(a){if(g.JD(a.G.T()))return a.yd.get("unplugged")};
GL=function(a){if(a.G.T().ub)return a.yd.get("ux")};
g.lM=function(a){return a.yd.get("annotations_module")};
mM=function(a){return a.yd.get("creatorendscreen")};
Vna=function(a,b,c){if(a.B){for(var d=a.B+b+".js",e=document.getElementsByTagName("SCRIPT"),f=!1,h,l=0;l<e.length;l++){var m=e[l];if(m.src===d||m.getAttribute("data-original-src")===d)h=m}h||(h=g.De("SCRIPT"),h.setAttribute("data-original-src",d),f=!0);var n=function(){a.Ha()||c.call(a)},p=function(){a.Ha()||a.G.Id(b)},r=h.onload;
h.onload=function(y){Yl(n);r&&r.apply(window,[y])};
var t=h.onerror;h.onerror=function(y){if(.01>Math.random()){var E=new g.Zr("Unable to load player module",b+".js from "+d+" on "+(document.location&&document.location.origin)+".");g.pt(E)}Yl(p);t&&t(y)};
var u=h,x=u.onreadystatechange;u.onreadystatechange=function(y){switch(u.readyState){case "loaded":case "complete":Yl(n)}x&&x(y)};
f&&((e=a.G.T().cspNonce)&&h.setAttribute("nonce",e),g.id(h,g.bg(d)),e=document.getElementsByTagName("HEAD")[0]||document.body,e.insertBefore(h,e.firstChild),g.wi(a,function(){h.parentNode&&h.parentNode.removeChild(h);g.gM[b]=null;"annotations_module"===b&&(g.gM.creatorendscreen=null)}))}};
nM=function(a,b,c){g.zl.call(this,b,a);this.i=c};
g.oM=function(a){UI.call(this);var b=this;this.i=a;this.B={};this.listener=function(c){b.dispatchEvent(new nM(b,c.type,c))}};
qM=function(a,b,c,d){g.P.call(this);var e=this;this.target=a;this.Qv=b;this.l=0;this.I=!1;this.B=new g.ce(NaN,NaN);this.i=new g.TL(this);this.va=this.u=this.J=null;g.H(this,this.i);b=d?4E3:3E3;this.W=new g.J(function(){pM(e,1,!1)},b,this);
g.H(this,this.W);this.X=new g.J(function(){pM(e,2,!1)},b,this);
g.H(this,this.X);this.Y=new g.J(function(){pM(e,512,!1)},b,this);
g.H(this,this.Y);this.ra=c&&0<c.Xc.length?5E3:3E3;d||(this.u=this.i.N(a,"mouseover",this.jx),this.i.N(a,"mousemove",this.hP),this.i.N(a,"mouseleave",this.iP));fg?this.i.N(a,"keypress",this.VO):this.i.N(a,"focusin",this.YN);this.C=this.i.N(a,"mousedown",this.MH);this.L=this.i.N(a,"touchstart",this.eK,void 0,!0);pM(this,640,!0)};
Wna=function(a){pM(a,4,!1);a.J&&(a.i.hc(a.J),a.J=null,a.u=a.i.N(a.target,"mouseover",a.jx));a.u&&(a.i.hc(a.u),a.u=a.i.N(a.target,"mouseover",a.jx))};
pM=function(a,b,c){a.Ha();var d=!a.l;c?(a.l|=b,b&1&&a.W.start(),b&2&&a.X.start()):(a.l&=~b,b&1&&a.W.stop(),b&2&&a.X.stop(),b&512&&a.Y.stop());a.l&512&&!(a.l&128)&&g.cn(a.Y,a.ra);b=!a.l;d!==b&&a.V("autohideupdate",b)};
g.rM=function(a){g.W.call(this,{D:"button",Ba:["ytp-large-play-button","ytp-button"],U:{"aria-label":"Play"},S:["{{largePlayButtonChildren}}"]});this.api=a;this.N(a,"videodatachange",this.Ja);this.Ja()};
sM=function(a){var b=a.T(),c=["ytp-cued-thumbnail-overlay"];(g.S(b.experiments,"web_player_contain_thumbnail")||b.I)&&c.push("ytp-exp-contain-thumbnail");g.W.call(this,{D:"div",Ba:c,S:[{D:"div",K:"ytp-cued-thumbnail-overlay-image"}]});b=this.ya("ytp-cued-thumbnail-overlay");c=new g.rM(a);g.H(this,c);c.xa(b);this.u=new g.TL(this);g.H(this,this.u);this.api=a;this.C=this.ya("ytp-cued-thumbnail-overlay-image");this.B=c;this.l=new g.IK(this,250);g.H(this,this.l);this.i=new g.J(this.Ja,0,this);g.H(this,
this.i);this.Ja();this.N(a,"appresize",this.kb);this.N(a,"presentingplayerstatechange",this.dL);this.N(a,"ypcStateChanged",this.zS);DD(a.T())&&this.N(a,"videoplayerreset",this.cL)};
Xna=function(a){var b=!a.T().Kf&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.tM=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.CK(a))return g.hp(a),!0;b.pauseVideo();a=e.getAttribute("href");g.EI(a,d,!0);return!1};
g.uM=function(a,b,c){if(aE(b.T())&&2!==b.getPresentingPlayerType()){if(g.CK(c))return b.isFullscreen()&&!b.T().externalFullscreen&&b.toggleFullscreen(),g.hp(c),!0}else if(!b.T().ea("embeds_enable_webview_nonjs_navigation")||!g.BD(b.T())||!qq()&&!oq()){var d=g.CK(c);d&&b.pauseVideo();g.EI(a,void 0,!0);d&&(g.FI(a),g.hp(c))}return!1};
vM=function(){return{D:"div",K:"ytp-spinner-container",S:[{D:"div",K:"ytp-spinner-rotator",S:[{D:"div",K:"ytp-spinner-left",S:[{D:"div",K:"ytp-spinner-circle"}]},{D:"div",K:"ytp-spinner-right",S:[{D:"div",K:"ytp-spinner-circle"}]}]}]}};
wM=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
xM=function(a,b,c){a=a.T();return g.S(a.experiments,"desktop_player_button_tooltip_with_shortcut")&&!a.He?g.wI("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.yM=function(a){g.W.call(this,{D:"div",Ba:["ytp-error"],U:{role:"alert"},S:[{D:"div",K:"ytp-error-content",S:[{D:"div",K:"ytp-error-icon-container",S:[{D:"svg",U:{fill:"#fff",viewBox:"0 0 48 48"},S:[{D:"path",U:{d:"M0 0h48v48H0V0z",fill:"none"}},{D:"path",U:{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"}}]}]},{D:"div",K:"ytp-error-content-wrap",
S:[{D:"div",K:"ytp-error-content-wrap-reason",ma:"{{content}}"},{D:"div",K:"ytp-error-content-wrap-subreason",ma:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.zM=function(a){a=a.split(Yna);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({D:"br"}),b.push(d[e]);c<a.length&&b.push({D:"a",U:{href:a[c],target:a[c+1]},ma:a[c+2]})}return{D:"span",S:b}};
BM=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.T().l);a=a.api.getVideoData();b=g.wI(g.AM[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({D:"h2",ma:f});d.push(b[0]);h&&d.push({D:"br"});d.push({D:"a",U:{href:c,target:e?"_blank":null},ma:b[2]});d.push(b[4]);return{D:"span",S:d}};
Zna=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.N(c[d],"click",b);a.keys.push(e)}};
$na=function(a){for(var b=0;b<a.keys.length;b++)a.hc(a.keys[b]);a.keys=[]};
DM=function(a){g.TL.call(this);this.G=a;this.i=new Set;this.mediaSession=navigator.mediaSession;CM(this,"play",function(){a.playVideo()});
CM(this,"pause",function(){a.pauseVideo()});
CM(this,"seekbackward",function(){a.seekBy(-5*a.getPlaybackRate())});
CM(this,"seekforward",function(){a.seekBy(5*a.getPlaybackRate())});
this.N(a,"videodatachange",this.fb);this.N(a,"presentingplayerstatechange",this.rh);this.fb()};
CM=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.i.add(b)};
EM=function(a){g.W.call(this,{D:"div",K:"ytp-paid-content-overlay",U:{"aria-live":"assertive","aria-atomic":"true"}});this.G=a;this.B=new g.W({D:"div",Ba:["ytp-button","ytp-paid-content-overlay-text"]});this.videoId=null;this.u=!1;this.l=new g.IK(this.B,250,!1,100);this.od=this.i=null;g.H(this,this.B);this.B.xa(this.element);g.H(this,this.l);this.N(a,"videodatachange",this.fb);this.N(a,"presentingplayerstatechange",this.wc)};
aoa=function(a,b){var c=JG(b),d=KG(b);a.i?b.videoId&&b.videoId!==a.videoId&&(g.dn(a.i),a.videoId=b.videoId,a.u=!!d):c&&d&&(a.i=new g.J(a.Bb,d,a),g.H(a,a.i),g.Ne(g.oe("ytp-paid-content-overlay-text",a.element),c))};
boa=function(a,b){a.i&&(g.V(b,8)&&a.u?(a.u=!1,a.Zc(),a.i.start()):(g.V(b,2)||g.V(b,64))&&a.videoId&&(a.videoId=null))};
FM=function(a){g.W.call(this,{D:"div",K:"ytp-spinner",S:[vM(),{D:"div",K:"ytp-spinner-message",ma:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.ya("ytp-spinner-message");this.i=new g.J(this.show,500,this);g.H(this,this.i);this.N(a,"presentingplayerstatechange",this.l);this.N(a,"playbackstalledatstart",this.u);a=a.rb();coa(a)?this.i.start():this.hide()};
coa=function(a){return g.V(a,128)?!1:g.V(a,16)||g.V(a,1)?!0:!1};
g.GM=function(a,b,c,d){d=void 0===d?!1:d;g.WJ.call(this,b);var e=this;this.G=a;this.Aa=d;this.J=new g.TL(this);this.X=new g.IK(this,c,!0,void 0,void 0,function(){e.l&&e.element&&(e.l.getAttribute("aria-haspopup"),e.l.setAttribute("aria-expanded","true"),e.focus())});
g.H(this,this.J);g.H(this,this.X)};
doa=function(a){a.l&&(document.activeElement&&g.Me(a.element,document.activeElement)&&(Qe(a.l),a.l.focus()),a.l.removeAttribute("aria-expanded"),a.l=void 0);g.$t(a.J);a.L=void 0};
HM=function(a,b,c){a.Ag()?a.Bb():a.Zc(b,c)};
IM=function(a){var b=g.EC(a.T().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{D:"div",Ba:["ytp-unmute-icon"],S:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{D:"div",Ba:["ytp-unmute-text"],ma:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({D:"div",Ba:["ytp-unmute-box"],S:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.GM.call(this,a,{D:"button",Ba:["ytp-unmute","ytp-popup","ytp-button"].concat(c),S:[{D:"div",K:"ytp-unmute-inner",S:d}]},100);this.seen=this.i=!1;this.api=a;this.api.Zb(this.element,this,51663);this.N(a,"onMutedAutoplayChange",this.pu,this);this.N(a,"presentingplayerstatechange",
this.rh);this.Na("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.BD(this.api.T());g.VJ(this,a);a&&eoa(this);this.u=a};
eoa=function(a){a.seen||(a.seen=!0,a.api.eb(a.element,!0))};
g.KM=function(a){g.TL.call(this);var b=this;this.api=a;this.JC=!1;this.Ik=null;this.Vv=!1;this.Ce=null;this.hA=this.gy=!1;this.iD=this.kD=null;this.wH=NaN;this.hD=this.Xs=!1;this.fu=0;this.Ez=[];var c=a.T(),d=a.Wa();this.xF=new g.J(this.TB,0,this);g.H(this,this.xF);g.LD(c)||(this.Jq=new sM(a),g.H(this,this.Jq),g.RL(a,this.Jq.element,4));if(foa()){var e=new FM(a);g.H(this,e);e=e.element;g.RL(a,e,4)}var f=a.getVideoData();this.md=new qM(d,function(l){return b.Qv(l)},f,c.ld);
g.H(this,this.md);this.md.subscribe("autohideupdate",this.vj,this);var h=new EM(a);g.H(this,h);g.RL(a,h.element,4);this.py=new IM(a);g.H(this,this.py);g.RL(this.api,this.py.element,2);this.fB=this.api.isMutedByMutedAutoplay();this.N(a,"onMutedAutoplayChange",this.pu);this.ey=new g.J(this.Qr,200,this);g.H(this,this.ey);this.wB=f.videoId;this.FJ=new g.J(function(){b.fu=0},350);
g.H(this,this.FJ);this.Xv=new g.J(function(){b.hD||JM(b)},350,this);
g.H(this,this.Xv);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.K(f,"ytp-color-white")}g.LD(c)&&g.K(f,"ytp-music-player");!g.S(a.T().experiments,"disable_mediasession2")&&navigator.mediaSession&&!navigator.mediaSession.metadata&&navigator.mediaSession.setActionHandler&&(f=new DM(a),g.H(this,f));this.N(a,"appresize",this.kb);this.N(a,"presentingplayerstatechange",this.rh);this.N(a,"videodatachange",this.fb);this.N(a,"videoplayerreset",this.fR);
this.N(a,"autonavvisibility",function(){b.gm()});
this.N(a,"sizestylechange",function(){b.gm()});
this.N(d,"click",this.FR,this);this.N(d,"dblclick",this.GR,this);c.Ma&&(this.N(d,"gesturechange",this.HR,this),this.N(d,"gestureend",this.IR,this));this.un=[d.Rs];this.Jq&&this.un.push(this.Jq.element);e&&this.un.push(e)};
LM=function(a,b){if(!b)return!1;var c=a.api.Dd();if(c.Tn()&&(c=c.Re())&&g.Me(c,b))return c.controls;for(c=0;c<a.un.length;c++)if(g.Me(a.un[c],b))return!1;return g.hn(b,"ytp-player-content")||g.hn(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
goa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.Wa().Iw||!1)&&a.api.T().i&&MM&&11<=jH;a=g.BD(a.api.T())&&a.api.T().ea("embeds_enable_mobile_custom_controls")&&a.api.T().i&&MM;return!(!b&&!a)};
NM=function(a,b){return!LM(a,ep(b))&&g.CK(b)};
JM=function(a){a.md.Uk();if(g.S(a.api.T().experiments,"web_player_touch_mode_improvements")&&a.gy&&a.hA)a.hA=!1;else if(!a.api.T().ra&&!a.Bk()){var b=a.api.rb();g.V(b,2)&&LL(a.api)||a.Mp(b);if(!a.api.T().Ma||b.isCued()||g.V(b,1024)){var c=a.api.Tx();g.Qr("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.V(b,2048);c&&(b.isCued()||d)?(g.Qr("embedsRequestStorageAccessState",{isCued:b.isCued(),isAutoplayBlocked:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||
g.Qr("embedsRequestStorageAccessFailedState",{state:b.state}),a.Qr())}else a.ey.isActive()?(a.Jw(),a.ey.stop()):a.ey.start()}};
hoa=function(a,b){return g.CK(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.rb(),!g.V(b,4)||g.V(b,8)||g.V(b,2)||a.Qr(),!0):!1};
ioa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
foa=function(){var a=dq()&&67<=aq();return!cq("tizen")&&!zD&&!a&&!0};
OM=function(a,b){b=void 0===b?2:b;g.P.call(this);this.api=a;this.i=null;this.De=new Yt(this);g.H(this,this.De);this.l=joa;this.De.N(this.api,"presentingplayerstatechange",this.wc);this.i=this.De.N(this.api,"progresssync",this.Rb);this.Nj=b;1===this.Nj&&this.Rb()};
PM=function(a){g.W.call(this,{D:"button",Ba:["ytp-button","ytp-back-button"],S:[{D:"div",K:"ytp-arrow-back-icon",S:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},S:[{D:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",Lb:!0,U:{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.VJ(this,a.T().showBackButton);this.Na("click",this.onClick)};
g.QM=function(a){g.W.call(this,{D:"div",S:[{D:"div",K:"ytp-bezel-text-wrapper",S:[{D:"div",K:"ytp-bezel-text",ma:"{{title}}"}]},{D:"div",K:"ytp-bezel",U:{role:"status","aria-label":"{{label}}"},S:[{D:"div",K:"ytp-bezel-icon",ma:"{{icon}}"}]}]});this.G=a;this.l=new g.J(this.show,10,this);this.i=new g.J(this.hide,500,this);g.H(this,this.l);g.H(this,this.i);this.hide()};
SM=function(a,b,c){if(0>=b){c=iK();b="muted";var d=0}else c=c?{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,U:{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";RM(a,c,b,d+"%")};
koa=function(a,b){b=b?{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{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"}}]}:{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{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.wI("Speed is $RATE",{RATE:String(c)});RM(a,b,d,c+"x")};
RM=function(a,b,c,d){d=void 0===d?"":d;a.Oa("label",void 0===c?"":c);a.Oa("icon",b);g.dn(a.i);a.l.start();a.Oa("title",d);g.L(a.element,"ytp-bezel-text-hide",!d)};
UM=function(a,b,c){g.W.call(this,{D:"button",Ba:["ytp-button","ytp-cards-button"],U:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.BD(a.T()))},S:[{D:"span",K:"ytp-cards-button-icon-default",S:[{D:"div",K:"ytp-cards-button-icon",S:[Ula()]},{D:"div",K:"ytp-cards-button-title",ma:"Info"}]},{D:"span",K:"ytp-cards-button-icon-shopping",S:[{D:"div",K:"ytp-cards-button-icon",S:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},
S:[{D:"path",K:"ytp-svg-shadow",U:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{D:"path",K:"ytp-svg-fill",U:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{D:"path",K:"ytp-svg-shadow-fill",U:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{D:"div",
K:"ytp-cards-button-title",ma:"Shopping"}]}]});this.G=a;this.u=b;this.B=c;this.i=null;this.l=new g.IK(this,250,!0,100);g.H(this,this.l);g.L(this.B,"ytp-show-cards-title",g.BD(a.T()));this.hide();this.Na("click",this.onClicked);this.Na("mouseover",this.wQ);TM(this,!0)};
TM=function(a,b){b?a.i=g.VM(a.u.ac(),a.element):(a.i=a.i,a.i(),a.i=null)};
WM=function(a,b,c){g.W.call(this,{D:"div",K:"ytp-cards-teaser",S:[{D:"div",K:"ytp-cards-teaser-box"},{D:"div",K:"ytp-cards-teaser-text",S:a.T().ea("player_new_info_card_format")?[{D:"div",K:"ytp-cards-teaser-info-icon",S:[Ula()]},{D:"span",K:"ytp-cards-teaser-label",ma:"{{text}}"},{D:"span",K:"ytp-cards-teaser-close-icon",S:[g.bK()]}]:[{D:"span",K:"ytp-cards-teaser-label",ma:"{{text}}"}]}]});var d=this;this.G=a;this.X=b;this.dj=c;this.B=new g.IK(this,250,!1,250);this.i=null;this.J=new g.J(this.QQ,
300,this);this.I=new g.J(this.PQ,2E3,this);this.C=[];this.l=null;this.L=new g.J(function(){d.element.style.margin="0"},250);
this.u=null;g.H(this,this.B);g.H(this,this.J);g.H(this,this.I);g.H(this,this.L);g.S(a.T().experiments,"player_new_info_card_format")?(this.ya("ytp-cards-teaser").classList.add("ytp-cards-teaser-dismissible"),this.N(this.ya("ytp-cards-teaser-close-icon"),"click",this.ph),this.N(this.ya("ytp-cards-teaser-info-icon"),"click",this.XC),this.N(this.ya("ytp-cards-teaser-label"),"click",this.XC)):this.Na("click",this.XC);this.N(c.element,"mouseover",this.fE);this.N(c.element,"mouseout",this.eE);this.N(a,
"cardsteasershow",this.cS);this.N(a,"cardsteaserhide",this.Bb);this.N(a,"cardstatechange",this.nK);this.N(a,"presentingplayerstatechange",this.nK);this.N(a,"appresize",this.vD);this.N(a,"onShowControls",this.vD);this.N(a,"onHideControls",this.CN);this.Na("mouseenter",this.fL)};
moa=function(a,b,c,d){var e=window.location.search;if(38===b.Xa&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.Id("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.MN});if(30===b.Xa&&"docs"===a.playerStyle)return g.Id("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.KE,authkey:b.authKey,eurl:a.Xa});if(33===b.Xa&&"google-live"===a.playerStyle)return g.Id("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.Y&&g.pt(Error("getVideoInfoUrl for invalid namespace: "+a.Y));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Xa,ps:a.playerStyle,el:$G(b),hl:a.Ad,list:b.playlistId,agcid:b.aF,aqi:b.adQueryId,sts:18716,lact:zp()};g.Sa(f,a.deviceParams);a.Sa&&(f.forced_experiments=a.Sa);b.Ga?(f.vvt=b.Ga,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):g.dH(b)&&(f.access_token=g.dH(b));b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&
(f.break_type=b.breakType);null!==b.wq&&(f.ad_id=b.wq);null!==b.Ds&&(f.ad_sys=b.Ds);null!==b.Az&&(f.encoded_ad_playback_context=b.Az);b.Jy&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Ga&&2!==a.Ga&&(f.cc_load_policy=a.Ga);var h=g.Yq(g.Wq.getInstance(),65);g.jE(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.Yn&&(f.endscreen_ad_tracking=
b.Yn);(h=a.L.get(b.videoId))&&h.Yu&&(f.ic_track=h.Yu);b.Aa&&(f.itct=b.Aa);cH(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.pj&&(f.autonav="1");b.CA&&(f.noiba="1");g.S(a.experiments,"send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.jg&&(f.ytr=b.jg)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.jg);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.zl&&(f.ytrcc=b.zl);b.uB&&(f.utpsa="1");b.Tz&&(f.is_fling="1");b.kA&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.Lf&&(h=
3===b.Lf.split("|").length,f.force_ad_params=h?b.Lf:"||"+b.Lf);b.Jc&&(f.preload=b.Jc);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.He&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");aH(b)&&(f.content_v=aH(b));b.xc&&(f.livemonitor=1);a.W&&(f.authuser=a.W);a.pageId&&(f.pageid=a.pageId);a.Ec&&(f.ei=a.Ec);a.l&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.u&&b.oo&&(f.live_start_walltime=b.oo);a.u&&b.Mf&&(f.live_manifest_duration=b.Mf);a.u&&b.playerParams&&(f.player_params=
b.playerParams);a.u&&b.cycToken&&(f.cyc=b.cycToken);a.u&&b.Ky&&(f.tkn=b.Ky);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.ub&&(f.kpt=b.ub);b.Sj&&(f.kids_age_up_mode=b.Sj);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.Bp&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.W?(h=null!=b.W.latitudeE7&&null!=b.W.longitudeE7?b.W.latitudeE7+","+b.W.longitudeE7:",",h+=","+(b.W.clientPermissionState||0)+","+(b.W.locationRadiusMeters||
"")+","+(b.W.locationOverrideToken||"")):h=null;h&&(f.uloc=h);b.Xk&&(f.internalipoverride=b.Xk);a.embedConfig&&(f.embed_config=a.embedConfig);a.Mi&&(f.co_rel="1");0<a.td.length&&(f.ancestor_origins=Array.from(a.td).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.rl&&b.Vn&&(f.clip=b.rl,f.clipt=
b.Vn);b.Wn&&(f.disable_watch_next="1");a.ea("web_player_gvi_wexit_diff")&&(f.player_request=JSON.stringify(vL(b,c,d)));a.ea("html5_onesie_watch_next_diff")&&(f.watch_next_request=JSON.stringify(fna(b)));for(var l in f)!loa.has(l)&&f[l]&&512<String(f[l]).length&&(g.qt(Error("GVI param too long: "+l)),f[l]="");b=a.va;g.JD(a)&&(b=hw(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.va);a=g.Id(b+"get_video_info",f);e&&(a=Wp(a,e));return a};
g.XM=function(a,b){return a.va+"timedtext_video?ref=player&v="+b.videoId};
g.YM=function(a){var b={};b.feature=a;return b};
noa=function(a){var b={};a.CD&&(b.ytrext=a.CD);return g.Qb(b)?void 0:b};
$M=function(a){g.W.call(this,{D:"button",Ba:[ZM.BUTTON,ZM.TITLE_NOTIFICATIONS],U:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},S:[{D:"div",K:ZM.TITLE_NOTIFICATIONS_ON,U:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},S:[g.fK()]},{D:"div",K:ZM.TITLE_NOTIFICATIONS_OFF,U:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},S:[{D:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{D:"path",U:{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.i=!1;a.Zb(this.element,this,36927);this.Na("click",this.onClick,this);this.Oa("pressed",!1);this.Oa("label","Get notified about every new video")};
ooa=function(a,b){a.i=b;a.element.classList.toggle(ZM.NOTIFICATIONS_ENABLED,a.i);var c=a.api.getVideoData();c?(b=b?c.My:c.Ly)?(a=a.api.Hl())?fL(a,b):g.xo(Error("No innertube service available when updating notification preferences.")):g.xo(Error("No update preferences command available.")):g.xo(Error("No video data when updating notification preferences."))};
g.bN=function(a,b,c,d,e,f,h,l,m,n,p,r,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=r.T();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.HD(u)||g.KD(u))c.target=u.C;g.W.call(this,{D:"div",Ba:["ytp-button","ytp-sb"],S:[{D:"a",K:"ytp-sb-subscribe",U:c,S:[{D:"div",K:"ytp-sb-text",S:[{D:"div",K:"ytp-sb-icon"},a]},b?{D:"div",K:"ytp-sb-count",ma:b}:""]}]});f&&g.K(this.element,
"ytp-sb-classic");this.channelId=h;this.i=t}else{p=u.userDisplayName&&g.HD(u)&&!g.S(u.experiments,"subscribe_tooltipkillswitch");g.W.call(this,{D:"div",Ba:["ytp-button","ytp-sb"],S:[{D:"div",K:"ytp-sb-subscribe",U:p?{title:g.wI("Subscribe as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":nE(u),"data-tooltip-opaque":String(g.BD(u)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},S:[{D:"div",K:"ytp-sb-text",S:[{D:"div",K:"ytp-sb-icon"},
a]},b?{D:"div",K:"ytp-sb-count",ma:b}:""]},{D:"div",K:"ytp-sb-unsubscribe",U:p?{title:g.wI("Subscribed as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":nE(u),"data-tooltip-opaque":String(g.BD(u)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},S:[{D:"div",K:"ytp-sb-text",S:[{D:"div",K:"ytp-sb-icon"},c]},d?{D:"div",K:"ytp-sb-count",ma:d}:""]}]});var x=this;this.channelId=h;this.i=t;var y=this.ya("ytp-sb-subscribe"),E=this.ya("ytp-sb-unsubscribe");
f&&g.K(this.element,"ytp-sb-classic");if(e){l?this.l():this.u();var D=function(){var I=x.channelId;if(m||n){var O={c:I};if(g.S(r.T().experiments,"embeds_botguard_with_subscribe_killswitch"))O="";else{var ha;At.Me()&&(ha=Qma(O));O=ha||""}if(ha=r.getVideoData())if(ha=ha.subscribeCommand){var ta=r.Hl();ta?(fL(ta,ha,{botguardResponse:O,feature:m}),r.La("SUBSCRIBE",I)):g.xo(Error("No innertube service available when updating subscriptions."))}else g.xo(Error("No subscribe command in videoData."));else g.xo(Error("No video data available when updating subscription."))}E.focus();
E.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},G=function(){var I=x.channelId;
if(m||n){var O=r.getVideoData();fL(r.Hl(),O.unsubscribeCommand,{feature:m});r.La("UNSUBSCRIBE",I)}y.focus();y.removeAttribute("aria-hidden");E.setAttribute("aria-hidden","true")};
this.N(y,"click",D);this.N(E,"click",G);this.N(y,"keypress",function(I){13===I.keyCode&&D(I)});
this.N(E,"keypress",function(I){13===I.keyCode&&G(I)});
this.N(r,"SUBSCRIBE",this.l);this.N(r,"UNSUBSCRIBE",this.u);this.i&&p&&(this.tooltip=this.i.ac(),aN(this.tooltip),g.wi(this,g.VM(this.tooltip,y)),g.wi(this,g.VM(this.tooltip,E)))}else g.K(y,"ytp-sb-disabled"),g.K(E,"ytp-sb-disabled")}};
cN=function(a,b){g.W.call(this,{D:"div",K:"ytp-title-channel",S:[{D:"div",K:"ytp-title-beacon"},{D:"a",K:"ytp-title-channel-logo",U:{href:"{{channelLink}}",target:a.T().C,"aria-label":"{{channelLogoLabel}}"}},{D:"div",K:"ytp-title-expanded-overlay",U:{"aria-hidden":"{{flyoutUnfocusable}}"},S:[{D:"div",K:"ytp-title-expanded-heading",S:[{D:"h2",K:"ytp-title-expanded-title",S:[{D:"a",ma:"{{expandedTitle}}",U:{href:"{{channelTitleLink}}",target:a.T().C,tabIndex:"{{channelTitleFocusable}}"}}]},{D:"h3",
K:"ytp-title-expanded-subtitle",ma:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.I=b;this.channel=this.ya("ytp-title-channel");this.i=this.ya("ytp-title-channel-logo");this.B=this.ya("ytp-title-expanded-overlay");this.u=this.l=this.subscribeButton=null;this.C=g.BD(this.api.T());a.Zb(this.i,this,36925);this.C&&poa(this);this.N(a,"videodatachange",this.Ja);this.N(a,"videoplayerreset",this.Ja);this.Ja()};
poa=function(a){var b=a.api.T(),c=a.api.getVideoData();if(!b.Da){var d=b.W?null:yma(),e=new g.bN("Subscribe",null,"Subscribed",null,!0,!1,c.Yh,c.subscribed,"channel_avatar",null,d,a.api,a.I);a.subscribeButton=e;g.H(a,e);e.xa(a.B);a.api.Zb(e.element,a,36926);e.hide();a.N(e.element,"click",function(){a.api.Kb(e.element)});
var f=new $M(a.api);a.l=f;g.H(a,f);f.xa(a.B);f.hide();a.N(a.api,"SUBSCRIBE",function(){c.wg&&f.show()});
a.N(a.api,"UNSUBSCRIBE",function(){c.wg&&(f.hide(),ooa(f,!1))})}a.Oa("flyoutUnfocusable","true");
a.Oa("channelTitleFocusable","-1");b.i?a.N(a.i,"click",function(h){qoa(a)&&(h.preventDefault(),a.isExpanded()?a.Zz():a.BA());a.api.Kb(a.i)}):(a.N(a.channel,"mouseenter",a.BA),a.N(a.channel,"mouseleave",a.Zz),a.N(a.channel,"focusin",a.BA),a.N(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.Zz()}),a.N(a.i,"click",function(){a.api.Kb(a.i)}));
a.u=new g.J(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.eb(a.subscribeButton.element,!1)),a.l&&(a.l.hide(),a.api.eb(a.l.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.H(a,a.u);a.N(a.channel,roa,function(){soa(a)});
a.N(a.api,"onHideControls",a.yC);a.N(a.api,"appresize",a.yC);a.N(a.api,"fullscreentoggled",a.yC)};
soa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
qoa=function(a){var b=a.api.getPlayerSize();return a.C&&524<=b.width};
g.eN=function(a,b,c,d){g.WJ.call(this,a);this.priority=b;c&&g.dN(this,c);d&&this.bd(d)};
g.fN=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{D:c?"a":"div",Ba:b,U:a,S:[{D:"div",K:"ytp-menuitem-icon",ma:"{{icon}}"},{D:"div",K:"ytp-menuitem-label",ma:"{{label}}"},{D:"div",K:"ytp-menuitem-content",ma:"{{content}}"}]}};
gN=function(a,b){a.Oa("icon",b)};
g.dN=function(a,b){a.Oa("label",b)};
hN=function(a,b,c,d,e,f){var h={D:"div",K:"ytp-panel"};if(c){var l="ytp-panel-title";var m={D:"div",K:"ytp-panel-header",S:[{D:"button",Ba:["ytp-button",l],S:[c]}]};if(e){var n="ytp-panel-options";m.S.unshift({D:"button",Ba:["ytp-button",n],S:[d]})}h.S=[m]}d=!1;f&&(f={D:"div",K:"ytp-panel-footer",S:[f]},d=!0,h.S?h.S.push(f):h.S=[f]);g.WJ.call(this,h);this.content=b;d&&h.S?b.xa(this.element,h.S.length-1):b.xa(this.element);this.VG=!1;this.HO=d;c&&(c=this.ya(l),this.N(c,"click",this.QP),this.VG=!0,
e&&(n=this.ya(n),this.N(n,"click",e)));b.subscribe("size-change",this.iI,this);this.N(a,"fullscreentoggled",this.iI)};
g.iN=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.WJ({D:"div",K:"ytp-panel-menu",U:h});hN.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.H(this,this.menuItems)};
g.jN=function(a){for(var b=g.q(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.cC,a);a.items=[];g.Fe(a.menuItems.element);a.menuItems.V("size-change")};
toa=function(a,b){return b.priority-a.priority};
kN=function(a){var b=g.fN({"aria-haspopup":"true"});g.eN.call(this,b,a);this.Na("keydown",this.i)};
lN=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
mN=function(a,b){g.eN.call(this,g.fN({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{D:"div",K:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Na("click",this.onClick)};
nN=function(a,b,c,d){g.iN.call(this,a);this.G=a;this.wb=c;this.lc=d;this.sj=new mN("Loop",7);this.getVideoUrl=new kN(6);this.lj=new kN(5);this.hj=new kN(4);this.Eb=new kN(3);this.Du=new g.eN(g.fN({href:"{{href}}",target:this.G.T().C},void 0,!0),2,"Troubleshoot playback issue");this.Hq=new g.WJ({D:"div",Ba:["ytp-copytext","ytp-no-contextmenu"],U:{draggable:"false",tabindex:"1"},ma:"{{text}}"});this.TF=new hN(this.G,this.Hq);this.cn=null;g.H(this,this.sj);this.zc(this.sj,!0);this.sj.Na("click",this.ES,
this);a.Zb(this.sj.element,this.sj,28661);g.H(this,this.getVideoUrl);this.zc(this.getVideoUrl,!0);this.getVideoUrl.Na("click",this.CS,this);a.Zb(this.getVideoUrl.element,this.getVideoUrl,28659);g.H(this,this.lj);this.zc(this.lj,!0);this.lj.Na("click",this.DS,this);a.Zb(this.lj.element,this.lj,28660);g.H(this,this.hj);this.zc(this.hj,!0);this.hj.Na("click",this.BS,this);a.Zb(this.hj.element,this.hj,28658);g.H(this,this.Eb);this.zc(this.Eb,!0);this.Eb.Na("click",this.AS,this);g.H(this,this.Du);this.zc(this.Du,
!0);this.Du.Na("click",this.AR,this);b=new g.eN(g.fN(),1,"Stats for nerds");g.H(this,b);this.zc(b,!0);b.Na("click",this.SR,this);g.H(this,this.Hq);this.Hq.Na("click",this.hQ,this);g.H(this,this.TF);c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.wB&&g.Xd(43)&&(c=!0);g.NC&&!g.Xd(41)&&(c=!1);c&&(this.cn=new g.W({D:"textarea",K:"ytp-html5-clipboard",U:{readonly:""}}),g.H(this,this.cn),this.cn.xa(this.element));gN(this.sj,{D:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",
width:"24"},S:[{D:"path",U:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});gN(this.Eb,{D:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{D:"path",U:{"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"}}]});gN(this.Du,{D:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{D:"path",U:{"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"}}]});gN(b,Vla());this.N(a,"loopchange",this.uI);this.N(a,"videodatachange",this.fb);uoa(this);this.Oi(this.G.getVideoData())};
pN=function(a,b){var c=!1;if(a.cn){var d=a.cn.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.wb.Bb():(a.Hq.bd(b,"text"),g.oN(a.wb,a.TF),wM(a.Hq.element),a.cn&&(a.cn=null,uoa(a)));return c};
uoa=function(a){var b=!!a.cn;g.dN(a.Eb,b?"Copy debug info":"Get debug info");lN(a.Eb,!b);g.dN(a.hj,b?"Copy embed code":"Get embed code");lN(a.hj,!b);g.dN(a.getVideoUrl,b?"Copy video URL":"Get video URL");lN(a.getVideoUrl,!b);g.dN(a.lj,b?"Copy video URL at current time":"Get video URL at current time");lN(a.lj,!b);gN(a.hj,b?Sla():null);gN(a.getVideoUrl,b?dK():null);gN(a.lj,b?dK():null)};
g.qN=function(a,b){g.GM.call(this,a,{D:"div",Ba:["ytp-popup",b||""]},100,!0);this.i=[];this.I=this.B=null;this.Bv=this.maxWidth=0;this.size=new g.ee(0,0);this.Na("keydown",this.gL)};
voa=function(a){var b=a.i[a.i.length-1];if(b){g.sg(a.element,a.maxWidth||"100%",a.Bv||"100%");g.dg(b.element,"minWidth","250px");g.dg(b.element,"width","");g.dg(b.element,"height","");g.dg(b.element,"maxWidth","100%");g.dg(b.element,"maxHeight","100%");g.dg(b.content.element,"height","");var c=g.tg(b.element);c.width+=1;c.height+=1;g.dg(b.element,"width",c.width+"px");g.dg(b.element,"height",c.height+"px");g.dg(b.element,"maxWidth","");g.dg(b.element,"maxHeight","");var d=0;b.VG&&(d=b.ya("ytp-panel-header"),
d=g.tg(d).height);var e=0;b.HO&&(e=b.ya("ytp-panel-footer"),g.dg(e,"width",c.width+"px"),e=g.tg(e).height);g.dg(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.dg(b.element,"width",c.width+"px")));a.size=c}};
g.oN=function(a,b){var c=a.i[a.i.length-1];a.i.push(b);rN(a,c,b)};
g.sN=function(a){if(!(1>=a.i.length)){var b=a.i.pop(),c=a.i[0];a.i=[c];rN(a,b,c,!0)}};
rN=function(a,b,c,d){woa(a);b&&(b.unsubscribe("size-change",a.Ur,a),b.unsubscribe("back",a.Ah,a));c.subscribe("size-change",a.Ur,a);c.subscribe("back",a.Ah,a);if(a.vb){g.K(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;voa(a);g.sg(a.element,e);a.B=new g.J(function(){xoa(a,b,c,d)},20,a);
a.B.start()}else c.xa(a.element),b&&b.detach()};
xoa=function(a,b,c,d){a.B.dispose();a.B=null;g.K(a.element,"ytp-popup-animating");d?(g.K(b.element,"ytp-panel-animate-forward"),g.kn(c.element,"ytp-panel-animate-back")):(g.K(b.element,"ytp-panel-animate-back"),g.kn(c.element,"ytp-panel-animate-forward"));g.sg(a.element,a.size);a.I=new g.J(function(){g.kn(a.element,"ytp-popup-animating");b.detach();g.ln(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.I.dispose();a.I=null},250,a);
a.I.start()};
woa=function(a){a.B&&a.B.gh();a.I&&a.I.gh()};
g.tN=function(a,b,c){g.qN.call(this,a);this.va=b;this.lc=c;this.u=new g.TL(this);this.Y=new g.J(this.hS,1E3,this);this.ra=this.C=null;g.H(this,this.u);g.H(this,this.Y);a.Zb(this.element,this,28656);g.K(this.element,"ytp-contextmenu");yoa(this);this.hide()};
yoa=function(a){g.$t(a.u);if("gvn"!==a.G.T().playerStyle){var b=a.G.Wa();a.u.N(b,"contextmenu",a.eQ);a.u.N(b,"touchstart",a.iL,null,!0);a.u.N(b,"touchmove",a.XI,null,!0);a.u.N(b,"touchend",a.XI,null,!0)}};
zoa=function(a){a.G.isFullscreen()?g.RL(a.G,a.element,9):a.xa(document.body)};
g.uN=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{D:"button",Ba:["ytp-button","ytp-copylink-button"],U:{title:"{{title-attr}}","data-tooltip-opaque":String(g.BD(a.T()))},S:[{D:"div",K:"ytp-copylink-icon",ma:"{{icon}}"},{D:"div",K:"ytp-copylink-title",ma:"Copy link",U:{"aria-hidden":"true"}}]});this.api=a;this.i=b;this.l=c;this.visible=!1;this.tooltip=this.i.ac();b=a.T();aN(this.tooltip);g.L(this.element,"ytp-show-copylink-title",g.BD(b)&&!g.LD(b));a.Zb(this.element,this,86570);this.Na("click",
this.onClick);this.N(a,"videodatachange",this.Ja);this.N(a,"videoplayerreset",this.Ja);this.N(a,"appresize",this.Ja);this.Ja();g.wi(this,g.VM(this.tooltip,this.element))};
Aoa=function(a){a.Oa("icon",ZJ());if(a.api.T().i)vN(a.tooltip,a.element,"Link copied to clipboard");else{a.Oa("title-attr","Link copied to clipboard");wN(a.tooltip);vN(a.tooltip,a.element);var b=a.Na("mouseleave",function(){a.hc(b);a.Ja();a.tooltip.cj()})}};
Boa=function(a,b){return g.C(a,function d(){var e=this;return g.z(d,function(f){if(1==f.i)return ua(f,2),g.w(f,navigator.clipboard.writeText(b),4);if(2!=f.i)return f.return(!0);wa(f);var h=f.return,l=!1,m=g.De("TEXTAREA");m.value=b;m.setAttribute("readonly","");var n=e.api.getRootNode();n.appendChild(m);if(nq){var p=window.getSelection();p.removeAllRanges();var r=document.createRange();r.selectNodeContents(m);p.addRange(r);m.setSelectionRange(0,b.length)}else m.select();try{l=document.execCommand("copy")}catch(t){}n.removeChild(m);
return h.call(f,l)})})};
xN=function(a){g.W.call(this,{D:"div",K:"ytp-doubletap-ui",S:[{D:"div",K:"ytp-doubletap-fast-forward-ve"},{D:"div",K:"ytp-doubletap-rewind-ve"},{D:"div",K:"ytp-doubletap-static-circle",S:[{D:"div",K:"ytp-doubletap-ripple"}]},{D:"div",K:"ytp-doubletap-overlay-a11y"},{D:"div",K:"ytp-doubletap-seek-info-container",S:[{D:"div",K:"ytp-doubletap-arrows-container",S:[{D:"span",K:"ytp-doubletap-base-arrow"},{D:"span",K:"ytp-doubletap-base-arrow"},{D:"span",K:"ytp-doubletap-base-arrow"}]},{D:"div",K:"ytp-doubletap-tooltip",
S:[{D:"div",K:"ytp-chapter-seek-text",ma:"{{seekText}}"},{D:"div",K:"ytp-doubletap-tooltip-label",ma:"{{seekTime}}"}]}]}]});this.G=a;this.u=new g.J(this.show,10,this);this.l=new g.J(this.hide,700,this);this.i=this.ya("ytp-doubletap-static-circle");g.H(this,this.u);g.H(this,this.l);this.hide();this.B=this.ya("ytp-doubletap-fast-forward-ve");this.C=this.ya("ytp-doubletap-rewind-ve");this.G.Zb(this.B,this,28240);this.G.Zb(this.C,this,28239);this.G.eb(this.B,!0);this.G.eb(this.C,!0)};
yN=function(a,b,c){var d=a.G.Wa().getPlayerSize();g.dn(a.l);a.u.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.K(a.element,"ytp-time-seeking");a.i.style.width="110px";a.i.style.height="110px";1===b?(a.i.style.right="",a.i.style.left=.8*d.width-30+"px"):-1===b&&(a.i.style.right="",a.i.style.left=.1*d.width-15+"px");a.i.style.top=.5*d.height+15+"px";Coa(a,c)};
zN=function(a,b,c){g.dn(a.l);a.u.start();a.element.setAttribute("data-side",-1===b?"back":"forward");a.i.style.width="0";a.i.style.height="0";g.K(a.element,"ytp-chapter-seek");a.Oa("seekText",c);a.Oa("seekTime","")};
Coa=function(a,b){b=g.wI("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Oa("seekTime",b)};
AN=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
BN=function(a,b){var c=0;a=g.q(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
Doa=function(a,b){b=BN(a,b)+1;return b<a.length?b:-1};
Eoa=function(a,b){return BN(a,b)-1};
g.CN=function(a,b,c,d,e,f,h){g.TL.call(this);var l=this;this.api=a;this.contextMenu=c;this.md=d;this.lc=e;this.i=f;this.B=h;this.u=new g.J(function(){Foa(l,!1)},1E3);
this.l="";g.H(this,this.u);a=g.Ra(this.HC,!1);this.N(b,"mousedown",a);this.N(c.element,"mousedown",a);this.N(b,"keydown",this.SG);this.N(c.element,"keydown",this.SG);this.N(b,"keyup",this.TG);this.N(c.element,"keyup",this.TG)};
EN=function(a,b,c,d){var e=g.dM(a.api.ob());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.DN.length;h++){var l=g.DN[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);Foa(a,!0);a.u.start()}};
Goa=function(a,b){a.api.yf();if(g.V(a.api.rb(),4)){var c=a.api.getVideoData().l;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
Foa=function(a,b){g.dM(a.api.ob())&&a.api.setOption("captions","sampleSubtitles",b)};
FN=function(a,b,c){g.W.call(this,{D:"button",Ba:["ytp-button","ytp-overflow-button"],U:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},S:[{D:"div",K:"ytp-overflow-icon",S:[{D:"svg",U:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},S:[{D:"path",U:{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.i=b;this.visible=!1;this.tooltip=this.i.ac();
a.Zb(this.element,this,16499);this.N(a,"appresize",this.Ja);this.N(a,"fullscreentoggled",this.Ja);this.N(a,"presentingplayerstatechange",this.Ja);this.Ja();g.wi(this,g.VM(this.tooltip,this.element));this.Na("click",function(){a.Kb(d.element);HM(c,d.element,!1)})};
GN=function(a,b){g.GM.call(this,a,{D:"div",K:"ytp-overflow-panel",U:{id:RJ(),role:"dialog"},S:[{D:"div",K:"ytp-overflow-panel-content",S:[{D:"div",K:"ytp-overflow-panel-action-buttons",ma:"{{buttons}}"}]},{D:"button",Ba:["ytp-overflow-panel-close","ytp-button"],U:{title:"Close"},S:[g.bK()]}]},250);this.actionButtons=[];this.tooltip=b.ac();this.i=this.ya("ytp-overflow-panel-content");this.closeButton=this.ya("ytp-overflow-panel-close");this.N(this.closeButton,"click",this.Bb);g.wi(this,g.VM(this.tooltip,
this.closeButton));this.Na("click",this.jL);this.N(a,"videoplayerreset",this.hide);this.N(a,"fullscreentoggled",this.cg);this.hide()};
HN=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.Oa("buttons",a.actionButtons))};
Hoa=function(a,b){a=g.q(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Qb(b)};
IN=function(a,b,c){var d=b.Za(c),e=a.T(),f=d.gf("default.jpg");g.W.call(this,{D:"a",Ba:["ytp-video-menu-item","ytp-button"],U:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},S:[{D:"div",K:"ytp-video-menu-item-index",ma:String(c+1)},{D:"div",K:"ytp-video-menu-item-now-playing",ma:"\u25b6"},{D:"div",K:"ytp-video-menu-item-thumbnail",U:{style:f?"background-image: url("+f+");":void 0}},{D:"div",K:"ytp-video-menu-item-title",ma:d.title},{D:"div",
K:"ytp-video-menu-item-author",ma:d.author}]});this.api=a;this.index=c;this.Na("click",this.onClick)};
JN=function(a){g.GM.call(this,a,{D:"div",K:"ytp-playlist-menu",U:{role:"dialog",id:RJ()},S:[{D:"div",K:"ytp-playlist-menu-header",S:[{D:"div",K:"ytp-playlist-menu-title",S:[{D:"a",K:"ytp-playlist-menu-title-name",U:{href:"{{playlisturl}}"},ma:"{{title}}"},{D:"button",Ba:["ytp-playlist-menu-close","ytp-button"],U:{"aria-label":"Close"},S:[g.bK()]}]},{D:"div",K:"ytp-playlist-menu-subtitle",ma:"{{subtitle}}"}]},{D:"div",K:"ytp-playlist-menu-items",U:{role:"menu"}}]},250);this.api=a;this.selected=this.B=
this.playlist=null;this.items=this.ya("ytp-playlist-menu-items");this.u=new g.TL(this);this.i=[];a=this.ya("ytp-playlist-menu-close");this.N(a,"click",this.Bb);a=this.ya("ytp-playlist-menu-title-name");this.N(a,"click",this.gS);g.H(this,this.u);this.hide()};
KN=function(a,b,c){g.W.call(this,{D:"button",Ba:["ytp-playlist-menu-button","ytp-button"],U:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},S:[{D:"div",K:"ytp-playlist-menu-button-icon",S:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,U:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{D:"div",K:"ytp-playlist-menu-button-text",ma:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.ac();a.Zb(this.element,this,70344);this.N(a,"videodatachange",this.i);this.N(a,"onPlaylistUpdate",this.i);this.N(a,"presentingplayerstatechange",this.Ja);this.N(a,"appresize",this.Ja);this.hide();this.i();g.wi(this,g.VM(this.tooltip,this.element));this.Na("click",function(){a.Kb(d.element);HM(c,d.element,!1)})};
LN=function(a,b,c){g.W.call(this,{D:"div",K:"ytp-promotooltip-wrapper",S:[{D:"div",K:"ytp-promotooltip-container",S:[{D:"div",K:"ytp-promotooltip-content",S:[{D:"div",K:"ytp-promotooltip-title",ma:"{{title}}"},{D:"div",K:"ytp-promotooltip-details",ma:"{{details}}"}]},{D:"div",K:"ytp-promotooltip-buttons",S:[{D:"div",K:"ytp-promotooltip-dismiss-button",ma:"{{dismissButtonText}}",U:{tabindex:"0"}},{D:"div",K:"ytp-promotooltip-accept-button",ma:"{{acceptButtonText}}",U:{tabindex:"0","aria-haspopup":"true"}}]}]},
{D:"div",K:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.J=b;this.G=c;this.i=this.u=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.I=this.C=this.l=this.B=!1;g.VJ(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.l=!!a)this.G.Lh(this.element,this,!0),this.G.Jn(this.element,a);this.N(c,"onShowControls",
this.cz);this.N(c,"onHideControls",this.gQ);this.N(c,"resize",this.kb);this.N(this.acceptButton,"click",this.pP);this.N(this.dismissButton,"click",this.lQ);this.N(document,"click",this.kL)};
Ioa=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
MN=function(a){g.VJ(a,!1);a.l&&a.G.eb(a.element,a.vb)};
NN=function(a,b){var c,d,e=a.tooltipRenderer.promoConfig;if(e){switch(b){case 0:if(null===(c=e.impressionEndpoints)||void 0===c?0:c.length)var f=e.impressionEndpoints[0];break;case 1:f=e.acceptCommand;break;case 2:f=e.dismissCommand}if(null===(d=null===f||void 0===f?void 0:f.feedbackEndpoint)||void 0===d?0:d.feedbackToken)b={feedbackTokens:[f.feedbackEndpoint.feedbackToken]},a=a.G.Hl(),(null===a||void 0===a?0:Gma(a,f))&&fL(a,f,b)}};
Joa=function(a){var b,c,d,e,f,h,l,m,n,p,r=(null===(e=null===(d=null===(c=null===(b=a.acceptButton)||void 0===b?void 0:b.buttonRenderer)||void 0===c?void 0:c.text)||void 0===d?void 0:d.runs)||void 0===e?void 0:e.length)&&!(null===(f=a.acceptButton)||void 0===f||!f.buttonRenderer.text.runs[0].text);a=(null===(n=null===(m=null===(l=null===(h=a.dismissButton)||void 0===h?void 0:h.buttonRenderer)||void 0===l?void 0:l.text)||void 0===m?void 0:m.runs)||void 0===n?void 0:n.length)&&!(null===(p=a.dismissButton)||
void 0===p||!p.buttonRenderer.text.runs[0].text);return r||a};
ON=function(a,b){g.W.call(this,{D:"button",Ba:["ytp-replay-button","ytp-button"],U:{title:"Replay"},S:[g.gK()]});this.G=a;this.N(a,"presentingplayerstatechange",this.i);this.Na("click",this.onClick,this);a=a.rb();g.VJ(this,g.V(a,2));g.VM(b.ac(),this.element)};
g.PN=function(a,b,c,d){d=void 0===d?240:d;g.W.call(this,{D:"button",Ba:["ytp-button","ytp-share-button"],U:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.BD(a.T()))},S:[{D:"div",K:"ytp-share-icon",ma:"{{icon}}"},{D:"div",K:"ytp-share-title",ma:"Share"}]});this.api=a;this.i=b;this.u=c;this.l=d;this.visible=!1;this.tooltip=this.i.ac();b=a.T();a.Zb(this.element,this,28664);this.Na("click",this.onClick);this.N(a,"videodatachange",this.Ja);this.N(a,"videoplayerreset",
this.Ja);this.N(a,"appresize",this.Ja);this.N(a,"presentingplayerstatechange",this.Ja);this.Ja();g.L(this.element,"ytp-show-share-title",g.BD(b)&&!g.LD(b));g.wi(this,g.VM(this.tooltip,this.element))};
Koa=function(a){"InvalidStateError"!==a.name&&g.pt(a)};
g.QN=function(a,b){var c=RJ(),d=a.T();c={D:"div",K:"ytp-share-panel",U:{id:RJ(),role:"dialog","aria-labelledby":c},S:[{D:"div",K:"ytp-share-panel-inner-content",S:[{D:"div",K:"ytp-share-panel-title",U:{id:c},ma:"Share"},{D:"a",Ba:["ytp-share-panel-link","ytp-no-contextmenu"],U:{href:"{{link}}",target:d.C,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},ma:"{{linkText}}"},{D:"label",K:"ytp-share-panel-include-playlist",S:[{D:"input",K:"ytp-share-panel-include-playlist-checkbox",U:{type:"checkbox",
checked:!0}},"Include playlist"]},{D:"div",K:"ytp-share-panel-loading-spinner",S:[vM()]},{D:"div",K:"ytp-share-panel-service-buttons",ma:"{{buttons}}"},{D:"div",K:"ytp-share-panel-error",ma:"An error occurred while retrieving sharing information. Please try again later."}]},{D:"button",Ba:["ytp-share-panel-close","ytp-button"],U:{title:"Close"},S:[g.bK()]}]};g.GM.call(this,a,c,250);this.api=a;this.tooltip=b.ac();this.i=[];this.C=this.ya("ytp-share-panel-inner-content");this.closeButton=this.ya("ytp-share-panel-close");
this.N(this.closeButton,"click",this.Bb);g.wi(this,g.VM(this.tooltip,this.closeButton));this.B=this.ya("ytp-share-panel-include-playlist-checkbox");this.N(this.B,"click",this.Ja);this.u=this.ya("ytp-share-panel-link");g.wi(this,g.VM(this.tooltip,this.u));this.Na("click",this.lL);this.N(a,"videoplayerreset",this.hide);this.N(a,"fullscreentoggled",this.cg);this.N(a,"onLoopRangeChange",this.bP);this.hide()};
Moa=function(a,b){Loa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={im:e.im},f++){e.im=c[f];a:switch(e.im.img||e.im.iconId){case "facebook":var h={D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{D:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",U:{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={D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{D:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",U:{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({D:"a",Ba:["ytp-share-panel-service-button","ytp-button"],U:{href:e.im.url,target:"_blank",title:e.im.sname||e.im.serviceName},S:[h]}),h.Na("click",function(m){return function(n){if(g.CK(n)){var p=m.im.url;var r=void 0===r?{}:r;r.target=r.target||"YouTube";r.width=r.width||"600";r.height=r.height||"600";r||(r={});var t=window;var u=p instanceof g.Dc?p:g.Ic("undefined"!=typeof p.href?p.href:String(p));p=r.target||p.target;var x=[];for(y in r)switch(y){case "width":case "height":case "top":case "left":x.push(y+
"="+r[y]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(y+"="+(r[y]?1:0))}var y=x.join(",");Qd()&&t.navigator&&t.navigator.standalone&&p&&"_self"!=p?(y=g.De("A"),g.hd(y,u),y.setAttribute("target",p),r.noreferrer&&y.setAttribute("rel","noreferrer"),r=document.createEvent("MouseEvent"),r.initMouseEvent("click",!0,!0,t,1),y.dispatchEvent(r),t={}):r.noreferrer?(t=jd("",t,p,y),r=g.Ec(u),t&&(g.kE&&-1!=r.indexOf(";")&&(r="'"+r.replace(/'/g,"%27")+"'"),t.opener=null,r=g.fd(g.gc("b/12014412, meta tag with sanitized URL"),
'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.nd(r)+'">'),(u=t.document)&&u.write&&(u.write(g.bd(r)),u.close()))):(t=jd(u,t,p,y))&&r.noopener&&(t.opener=null);if(r=t)r.opener||(r.opener=window),r.focus();g.hp(n)}}}(e)),g.wi(h,g.VM(a.tooltip,h.element)),a.i.push(h),d++)}var l=b.more||b.moreLink;
b=new g.W({D:"a",Ba:["ytp-share-panel-service-button","ytp-button"],S:[{D:"span",K:"ytp-share-panel-service-button-more",S:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{D:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",U:{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"}}]}]}],U:{href:l,target:"_blank",title:"More"}});b.Na("click",function(m){g.uM(l,a.api,m)&&a.api.La("SHARE_CLICKED")});
g.wi(b,g.VM(a.tooltip,b.element));a.i.push(b);a.Oa("buttons",a.i)};
Loa=function(a){for(var b=g.q(a.i),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.ui(c);a.i=[]};
TN=function(a,b,c){c=void 0===c?!0:c;g.W.call(this,{D:"div",K:"ytp-suggested-action"});var d=this;this.G=a;this.ib=b;this.Ma=this.J=this.i=this.C=this.B=this.l=this.expanded=this.enabled=this.u=!1;this.Xa=!0;this.Da=new g.J(function(){d.badge.element.style.width=""},200,this);
this.Y=new g.J(function(){RN(d);SN(d)},200,this);
this.dismissButton=new g.W({D:"button",Ba:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.H(this,this.dismissButton);this.I=new g.W({D:"div",K:"ytp-suggested-action-badge-expanded-content-container",S:[{D:"label",K:"ytp-suggested-action-badge-title",ma:"{{badgeLabel}}"},this.dismissButton]});g.H(this,this.I);this.badge=new g.W({D:"button",Ba:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],S:[c?{D:"div",K:"ytp-suggested-action-badge-icon"}:
"",this.I]});g.H(this,this.badge);this.badge.xa(this.element);this.L=new g.IK(this.badge,250,!1,100);g.H(this,this.L);this.va=new g.IK(this.I,250,!1,100);g.H(this,this.va);this.Ga=new g.Zm(this.kT,null,this);g.H(this,this.Ga);this.ra=new g.Zm(this.SN,null,this);g.H(this,this.ra);g.H(this,this.Da);g.H(this,this.Y);this.G.Lh(this.badge.element,this.badge,!0);this.G.Lh(this.dismissButton.element,this.dismissButton,!0);this.N(this.G,"onHideControls",function(){d.i=!1;SN(d);RN(d);d.Xh()});
this.N(this.G,"onShowControls",function(){d.i=!0;SN(d);RN(d);d.Xh()});
this.N(this.badge.element,"click",this.UB);this.N(this.dismissButton.element,"click",this.VB);this.N(this.G,"pageTransition",this.mL);this.N(this.G,"appresize",this.Xh);this.N(this.G,"fullscreentoggled",this.tQ);this.N(this.G,"cardstatechange",this.UP);this.N(this.G,"annotationvisibility",this.IT,this)};
RN=function(a){g.L(a.badge.element,"ytp-suggested-action-badge-with-controls",a.i||!a.l)};
SN=function(a,b){var c=a.J||a.i||!a.l;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Ga.stop(),a.ra.stop(),a.Da.stop(),a.Ga.start()):(g.VJ(a.I,a.expanded),g.L(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),Noa(a))};
Noa=function(a){a.B&&a.G.eb(a.badge.element,a.Mu());a.C&&a.G.eb(a.dismissButton.element,a.Mu()&&(a.J||a.i||!a.l))};
Ooa=function(a){var b=a.text||"";g.Ne(g.oe("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Ra?a.Ra:"")};
Poa=function(a,b){b?a.C&&a.G.Kb(a.dismissButton.element):a.B&&a.G.Kb(a.badge.element)};
UN=function(a,b){TN.call(this,a,b);var c=this;this.X=this.Ca=this.Aa=!1;this.N(this.G,g.tw("shopping_overlay_visible"),function(){c.Xe(!0)});
this.N(this.G,g.uw("shopping_overlay_visible"),function(){c.Xe(!1)});
this.N(this.G,g.tw("shopping_overlay_expanded"),function(){c.J=!0;SN(c)});
this.N(this.G,g.uw("shopping_overlay_expanded"),function(){c.J=!1;SN(c)});
this.N(this.G,"changeProductsInVideoVisibility",this.jR);this.N(this.G,"videodatachange",this.fb);this.N(this.G,"paidcontentoverlayvisibilitychange",this.aR)};
VN=function(a){a.G.Df("shopping_overlay_visible");a.G.Df("shopping_overlay_expanded")};
WN=function(a){g.GM.call(this,a,{D:"button",Ba:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{D:"div",K:"ytp-skip-intro-button-text",ma:"Skip Intro"}]},100);var b=this;this.C=!1;this.B=new g.J(function(){b.hide()},5E3);
this.i=this.u=NaN;g.H(this,this.B);this.ra=function(){b.show()};
this.Y=function(){b.hide()};
this.I=function(){var c=b.G.getCurrentTime();c>b.u/1E3&&c<b.i/1E3&&b.show()};
this.N(this.G,"videodatachange",function(c,d){b.Yq(c,d)});
this.N(this.element,"click",function(){b.G.seekTo(b.i/1E3)});
this.hide()};
XN=function(a,b){g.W.call(this,{D:"button",Ba:["ytp-airplay-button","ytp-button"],U:{title:"AirPlay"},ma:"{{icon}}"});this.G=a;this.Na("click",this.onClick);this.N(a,"airplayactivechange",this.Ja);this.N(a,"airplayavailabilitychange",this.Ja);this.Ja();g.wi(this,g.VM(b.ac(),this.element))};
YN=function(a,b){g.W.call(this,{D:"button",Ba:["ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},S:[{D:"div",K:"ytp-autonav-toggle-button-container",S:[{D:"div",K:"ytp-autonav-toggle-button",U:{"aria-checked":"true"}}]}]});this.G=a;this.l=[];this.i=!1;this.isChecked=!0;a.Zb(this.element,this,113681);this.N(a,"presentingplayerstatechange",this.xs);this.Na("click",this.onClick);this.tooltip=b.ac();g.wi(this,g.VM(b.ac(),this.element));this.xs()};
Qoa=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.Oa("title",b);a.Oa("label",b);wN(a.tooltip)};
g.$N=function(a){g.W.call(this,{D:"div",K:"ytp-gradient-bottom"});this.l=g.De("CANVAS");this.i=this.l.getContext("2d");this.B=NaN;this.l.width=1;this.u=g.LD(a.T());g.ZN(this,a.Wa().getPlayerSize().height)};
g.ZN=function(a,b){if(a.i){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.l.height=c;a.i.clearRect(0,0,1,c);var d=a.i.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.i.fillStyle=d;a.i.fillRect(0,2,1,b);a.element.style.height=
c+"px";try{a.element.style.backgroundImage="url("+a.l.toDataURL()+")"}catch(f){}}}};
aO=function(a,b){g.W.call(this,{D:"div",K:"ytp-chapter-container",S:[{D:"button",Ba:["ytp-chapter-title","ytp-button"],U:{title:"View chapter","aria-label":"View chapter"},S:[{D:"span",U:{"aria-hidden":"true"},K:"ytp-chapter-title-prefix",ma:"\u2022"},{D:"div",K:"ytp-chapter-title-content",ma:"{{title}}"},{D:"div",K:"ytp-chapter-title-chevron",S:[{D:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",U:{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.I=b;this.B="";this.currentIndex=0;this.u=void 0;this.i=!0;this.C=this.ya("ytp-chapter-container");this.l=this.ya("ytp-chapter-title");this.updateVideoData("newdata",this.G.getVideoData());this.N(a,"videodatachange",this.updateVideoData);this.N(this.C,"click",this.onClick);this.N(a,"onVideoProgress",this.Rb);this.N(a,"SEEK_TO",this.Rb);this.N(a,"innertubeCommand",this.onClickCommand)};
Roa=function(a,b,c,d,e){var f=b.hx/b.rows,h=Math.min(c/(b.ix/b.columns),d/f),l=b.ix*h,m=b.hx*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,r=-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+") "+r+"px "+t+"px/"+l+"px "+m+"px"};
g.bO=function(a){g.W.call(this,{D:"div",K:"ytp-storyboard-framepreview",S:[{D:"div",K:"ytp-storyboard-framepreview-img"}]});this.api=a;this.B=this.ya("ytp-storyboard-framepreview-img");this.l=null;this.u=NaN;this.events=new g.TL(this);this.i=new g.IK(this,100);g.H(this,this.events);g.H(this,this.i);this.N(this.api,"presentingplayerstatechange",this.wc)};
cO=function(a,b){var c=!!a.l;a.l=b;a.l?(c||(a.events.N(a.api,"videodatachange",function(){cO(a,a.api.Nh())}),a.events.N(a.api,"progresssync",a.Fe),a.events.N(a.api,"appresize",a.C)),a.u=NaN,dO(a),a.i.show(200)):(c&&g.$t(a.events),a.i.hide(),a.i.stop())};
dO=function(a){var b=a.l,c=a.api.getCurrentTime(),d=a.api.Wa().getPlayerSize(),e=MF(b,d.width);c=UF(b,e,c);c!==a.u&&(a.u=c,QF(b,c,d.width),b=OF(b,c,d.width),Roa(a.B,b,d.width,d.height))};
eO=function(a,b){g.W.call(this,{D:"button",Ba:["ytp-fullerscreen-edu-button","ytp-button"],S:[{D:"div",Ba:["ytp-fullerscreen-edu-text"],ma:"Scroll for details"},{D:"div",Ba:["ytp-fullerscreen-edu-chevron"],S:[{D:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",U:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.i=a;this.B=b;this.l=new g.IK(this,250,void 0,100);this.C=this.u=!1;a.Zb(this.element,this,61214);this.B=b;g.H(this,this.l);this.N(a,
"fullscreentoggled",this.Ja);this.N(a,"presentingplayerstatechange",this.Ja);this.Na("click",this.onClick);this.Ja()};
g.fO=function(a,b){g.W.call(this,{D:"button",Ba:["ytp-fullscreen-button","ytp-button"],U:{title:"{{title}}"},ma:"{{icon}}"});this.G=a;this.l=b;this.message=null;this.i=g.VM(this.l.ac(),this.element);this.u=new g.J(this.zN,2E3,this);g.H(this,this.u);this.N(a,"fullscreentoggled",this.Ni);this.N(a,"presentingplayerstatechange",this.Ja);this.Na("click",this.onClick);Ut()&&(b=this.G.Wa(),this.N(b,ofa(),this.bC),this.N(b,Xt(document),this.Vl));a.T().Ma||a.T().ea("embeds_enable_mobile_custom_controls")||
this.disable();this.Ja();this.Ni(a.isFullscreen())};
gO=function(a,b){g.W.call(this,{D:"button",Ba:["ytp-miniplayer-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:[Yla()]});this.G=a;this.visible=!1;this.Na("click",this.onClick);this.N(a,"fullscreentoggled",this.Ja);this.Oa("title",xM(a,"Miniplayer","i"));g.wi(this,g.VM(b.ac(),this.element));a.Zb(this.element,this,62946);this.Ja()};
hO=function(a,b,c){g.W.call(this,{D:"button",Ba:["ytp-multicam-button","ytp-button"],U:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},S:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,U:{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.i=!1;this.l=new g.J(this.u,400,this);this.tooltip=b.ac();aN(this.tooltip);g.H(this,this.l);this.Na("click",function(){HM(c,d.element,!1)});
this.N(a,"presentingplayerstatechange",function(){d.Ja(!1)});
this.N(a,"videodatachange",this.fb);this.Ja(!0);g.wi(this,g.VM(this.tooltip,this.element))};
iO=function(a){g.GM.call(this,a,{D:"div",K:"ytp-multicam-menu",U:{role:"dialog"},S:[{D:"div",K:"ytp-multicam-menu-header",S:[{D:"div",K:"ytp-multicam-menu-title",S:["Switch camera",{D:"button",Ba:["ytp-multicam-menu-close","ytp-button"],U:{"aria-label":"Close"},S:[g.bK()]}]}]},{D:"div",K:"ytp-multicam-menu-items"}]},250);this.api=a;this.u=new g.TL(this);this.items=this.ya("ytp-multicam-menu-items");this.i=[];g.H(this,this.u);a=this.ya("ytp-multicam-menu-close");this.N(a,"click",this.Bb);this.hide()};
jO=function(){g.F.call(this);this.l=null;this.startTime=this.duration=0;this.delay=new g.Zm(this.i,null,this);g.H(this,this.delay)};
Soa=function(a,b){if("path"===b.D)return b.U.d;if(b.S)for(var c=0;c<b.S.length;c++){var d=b.S[c];if(d&&"string"!==typeof d&&(d=Soa(a,d)))return d}};
Voa=function(a,b,c){c=Soa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=RJ();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=Toa(e),m=Toa(c);kO(a,function(n){d.setAttribute("d",Uoa(l,m,n))},200)};
kO=function(a,b,c){a.l=b;a.startTime=(0,g.N)();a.duration=c;a.i()};
Toa=function(a){var b=[];a=a.match(Woa);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};
Uoa=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.lO=function(a,b){g.W.call(this,{D:"button",Ba:["ytp-mute-button","ytp-button"],U:a.T().X?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},ma:"{{icon}}"});this.G=a;this.i=null;this.B=this.L=this.C=this.Y=NaN;this.ra=this.I=null;this.u=[];this.l=[];this.visible=!1;this.J=null;var c=this.G.T();this.Oa("icon",iK());this.tooltip=b.ac();this.i=new g.SJ({D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"defs",S:[{D:"clipPath",U:{id:"ytp-svg-volume-animation-mask"},
S:[{D:"path",U:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{D:"path",U:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{D:"path",K:"ytp-svg-volume-animation-mover",U:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{D:"clipPath",U:{id:"ytp-svg-volume-animation-slash-mask"},S:[{D:"path",K:"ytp-svg-volume-animation-mover",U:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{D:"path",Lb:!0,Ba:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],U:{"clip-path":"url(#ytp-svg-volume-animation-mask)",
d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{D:"path",Lb:!0,Ba:["ytp-svg-fill","ytp-svg-volume-animation-hider"],U:{"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.H(this,this.i);this.I=this.i.ya("ytp-svg-volume-animation-speaker");this.ra=this.I.getAttribute("d");this.u=g.ne("ytp-svg-volume-animation-mover",this.i.element);
this.l=g.ne("ytp-svg-volume-animation-hider",this.i.element);this.va=new jO;g.H(this,this.va);this.X=new jO;g.H(this,this.X);this.Na("click",this.RQ);this.N(a,"appresize",this.hE);this.N(a,"onVolumeChange",this.Ug);var d=null;if(c.X)g.wi(this,g.VM(b.ac(),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.GM(a,{D:"span",Ba:["ytp-popup","ytp-generic-popup"],U:{tabindex:"0"},S:[e[0],{D:"a",U:{href:"https://support.google.com/youtube/?p=noaudio",
target:c.C},ma:e[2]},e[4]]},100,!0);g.H(this,d);d.hide();d.subscribe("show",function(f){b.Mq(d,f)});
g.RL(a,d.element,4)}this.message=d;a.Zb(this.element,this,28662);this.hE(a.Wa().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
Zoa=function(a,b){a.Y=b;var c=a.ra;b&&(c+=Uoa(Xoa,Yoa,b));a.I.setAttribute("d",c)};
$oa=function(a,b){a.L=b;for(var c=20*b,d=0;d<a.u.length;d++)a.u[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=iK():e=a.i;for(c=0;c<a.l.length;c++)a.l[c].style.display=0===b?"none":"";e!==a.J&&(a.Oa("icon",e),a.J=e)};
mO=function(a,b){g.W.call(this,{D:"button",Ba:["ytp-pip-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},S:[Yla()]});this.G=a;this.Oa("title","Picture in Picture");this.Na("click",this.onClick);g.wi(this,g.VM(b.ac(),this.element))};
g.nO=function(a,b){g.W.call(this,{D:"button",Ba:["ytp-play-button","ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}"},ma:"{{icon}}"});this.G=a;this.i=null;this.transition=new jO;this.tooltip=b.ac();g.H(this,this.transition);this.N(a,"fullscreentoggled",this.fb);this.N(a,"presentingplayerstatechange",this.l);this.N(a,"videodatachange",this.fb);apa(this,a.rb());this.Na("click",this.Qr,this);g.wi(this,g.VM(b.ac(),this.element))};
bpa=function(a){switch(a){case 1:return Zla();case 2:return Xla();case 3:return g.gK();case 4:return ama();default:return null}};
apa=function(a,b){var c=g.QG(a.G.getVideoData()),d=!1;g.eJ(b)?b=c?4:2:g.V(b,2)?(b=3,d=c):b=1;a.element.disabled=d;if(a.i!==b){c=null;switch(b){case 2:c=xM(a.G,"Pause","k");break;case 3:c="Replay";break;case 1:c=xM(a.G,"Play","k");break;case 4:c="Stop live playback"}3===b?a.update({title:c,label:null,icon:bpa(b)}):(a.update({title:c,label:c}),(c=bpa(b))&&a.i&&3!==a.i?Voa(a.transition,a.element,c):a.Oa("icon",c));wN(a.tooltip);a.i=b}};
g.oO=function(a,b){return XL(b)?(b.fetch=0,new g.WL(a,b)):new g.$F(a,b)};
g.qO=function(a,b,c){g.W.call(this,{D:"a",Ba:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],U:{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}}"},S:[c?eK():$la()]});var d=this;this.G=a;this.i=c;this.playlist=this.videoData=null;this.I=!1;this.B=this.C=this.l=null;this.u=!1;this.tooltip=b.ac();this.N(a,"fullscreentoggled",this.fb);
this.N(a,"videodatachange",this.fb);this.N(a,"onPlaylistUpdate",this.fb);this.i||this.N(a,"appresize",this.ez);this.N(a,"mdxpreviousnextchange",function(){pO(d);d.ez()});
this.fb()};
cpa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.fb,a)};
dpa=function(a){return!!a.playlist&&!a.i&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.G.getCurrentTime()&&2!==a.G.getPresentingPlayerType()};
epa=function(a){var b=g.NL(a.G.ob());return b?a.i?b.hasNext():b.Fk():!1};
pO=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.OL(a.G)&&(!a.i||c);var d=a.i&&g.SL(a.G),e=epa(a),f=a.i&&5===a.G.getPresentingPlayerType(),h=xM(a.G,"Next","SHIFT+n"),l=xM(a.G,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.u)b.title="Replay";else if(c){var m=null;a.playlist&&(m=a.playlist.Za(a.i?Ena(a.playlist):Fna(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;b.url=a.G.T().getVideoUrl(m.videoId,n?n.toString():
void 0)}b.text=m.title;b.duration=m.lengthSeconds?g.BK(m.lengthSeconds):null;b.preview=m.gf("mqdefault.jpg")}b.title=a.i?h:l}else d&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(l=g.oO(a.G.T(),a.videoData.suggestions[0]),b.url=l.Vm(),b.text=l.title,b.duration=l instanceof g.$F?g.BK(l.lengthSeconds):null,b.preview=l.gf("mqdefault.jpg")),b.title=h);b.disabled=!d&&!c&&!e&&!f;a.update(b);a.I=!!b.url;d||c||a.u||e||f?a.l||(a.l=g.VM(a.tooltip,a.element),a.C=a.Na("click",a.onClick,
a)):a.l&&(a.l(),a.l=null,a.hc(a.C),a.C=null);wN(a.tooltip)};
fpa=function(a){if(a&&a.simpleText)return a.simpleText;var b="";if(a&&a.runs)for(var c=0;c<a.runs.length;c++)a.runs[c].text&&(b+=a.runs[c].text);return b};
gpa=function(){g.W.call(this,{D:"div",K:"ytp-heat-map-container",S:[{D:"svg",U:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},S:[{D:"defs",S:[{D:"clipPath",U:{id:"heatmap"},S:[{D:"path",K:"ytp-heat-map-path",U:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{D:"rect",U:{"clip-path":"url(#heatmap)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{D:"rect",K:"ytp-heat-map-played",U:{"clip-path":"url(#heatmap)",fill:"#dfcfbe","fill-opacity":"0.5",
height:"100%",width:"100%",x:"0",y:"0"}}]}]});this.i=this.ya("ytp-heat-map-path");this.l=this.ya("ytp-heat-map-played")};
jpa=function(a,b){function c(e){return"L "+e.x.toFixed(2)+" "+e.y.toFixed(2)}
var d=hpa(b);b=0===b.length?"":ipa(d,c);a.i.setAttribute("d",b)};
ipa=function(a,b){var c="";a=g.q(a.entries());for(var d=a.next();!d.done;d=a.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;c+=0===d?"M "+e.x+","+e.y:" "+b(e,d)}return c};
hpa=function(a){var b,c=1/Math.max.apply(Math,g.ma(a.map(function(l){var m;return(null===(m=l.markerRenderer)||void 0===m?void 0:m.heatmapIntensityScoreNormalized)||1}))),d=1E3/a.length,e=[];
e.push({x:0,y:100});a=g.q(a.entries());for(var f=a.next();!f.done;f=a.next()){var h=g.q(f.value);f=h.next().value;h=null===(b=h.next().value.markerRenderer)||void 0===b?void 0:b.heatmapIntensityScoreNormalized;e.push({x:(f+.5)*d,y:100-100*h*c})}e.push({x:1E3,y:100});return e};
rO=function(){g.W.call(this,{D:"div",K:"ytp-chapter-hover-container",S:[{D:"div",K:"ytp-progress-bar-padding"},{D:"div",K:"ytp-progress-list",S:[{D:"div",Ba:["ytp-play-progress","ytp-swatch-background-color"]},{D:"div",K:"ytp-load-progress"},{D:"div",K:"ytp-hover-progress"},{D:"div",K:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.width=0;this.u=this.ya("ytp-ad-progress-list");this.B=this.ya("ytp-load-progress");this.C=this.ya("ytp-play-progress");this.l=this.ya("ytp-hover-progress");
this.i=this.ya("ytp-chapter-hover-container")};
sO=function(a,b){g.dg(a.i,"width",b)};
tO=function(a,b){g.dg(a.i,"margin-right",b+"px")};
uO=function(a,b){return"PLAY_PROGRESS"===b?a.C:"LOAD_PROGRESS"===b?a.B:a.l};
kpa=function(){this.u=this.position=this.B=this.i=this.C=this.l=this.width=NaN};
lpa=function(){g.W.call(this,{D:"div",K:"ytp-timed-marker"});this.timeRangeStartMillis=NaN;this.thumbnailUrl=this.title="";this.onActiveCommand=void 0};
g.vO=function(a,b){g.WJ.call(this,{D:"div",K:"ytp-progress-bar-container",U:{"aria-disabled":"true"},S:[{D:"div",Ba:["ytp-progress-bar"],U:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},S:[{D:"div",K:"ytp-chapters-container"},{D:"div",K:"ytp-marker-crenellation-list"},{D:"div",K:"ytp-timed-markers-container"},{D:"div",K:"ytp-clip-start-exclude"},{D:"div",K:"ytp-clip-end-exclude"},
{D:"div",K:"ytp-scrubber-container",S:[{D:"div",Ba:["ytp-scrubber-button","ytp-swatch-background-color"],S:[{D:"div",K:"ytp-scrubber-pull-indicator"}]}]}]},{D:"div",K:"ytp-bound-time-left",ma:"{{boundTimeLeft}}"},{D:"div",K:"ytp-bound-time-right",ma:"{{boundTimeRight}}"},{D:"div",K:"ytp-clip-start",U:{title:"{{clipstarttitle}}"},ma:"{{clipstarticon}}"},{D:"div",K:"ytp-clip-end",U:{title:"{{clipendtitle}}"},ma:"{{clipendicon}}"}]});this.api=a;this.Jc=!1;this.B=this.kd=0;this.Aa=1;this.ld=this.X=0;
this.C=null;this.Y=this.Db=0;this.Pc=this.ya("ytp-marker-crenellation-list");this.va={};this.ub={};this.clipEnd=Infinity;this.Xa=this.ya("ytp-clip-end");this.Wb=new g.du(this.Xa,!0);this.Kc=this.ya("ytp-clip-end-exclude");this.Ad=this.ya("ytp-clip-start-exclude");this.clipStart=0;this.ib=this.ya("ytp-clip-start");this.xc=new g.du(this.ib,!0);this.L=this.Ma=0;this.Dc=this.ya("ytp-progress-bar");this.Ec={};this.Tb=this.ya("ytp-chapters-container");this.pe=this.ya("ytp-timed-markers-container");this.i=
[];this.Sa=[];this.Da=-1;this.Ra=this.ra=0;this.J=null;this.td=this.ya("ytp-scrubber-button");this.Bd=this.ya("ytp-scrubber-container");this.tb=new g.ce;this.Wc=new kpa;this.l=new XK(0,0);this.I=null;this.u=this.Gc=!1;this.Xc=null;this.Ga=new gpa(this.api);this.tooltip=b.ac();g.wi(this,g.VM(this.tooltip,this.Xa));g.H(this,this.Wb);this.Wb.subscribe("hoverstart",this.fI,this);this.Wb.subscribe("hoverend",this.eI,this);this.N(this.Xa,"click",this.Ex);g.wi(this,g.VM(this.tooltip,this.ib));g.H(this,this.xc);
this.xc.subscribe("hoverstart",this.fI,this);this.xc.subscribe("hoverend",this.eI,this);this.N(this.ib,"click",this.Ex);mpa(this);this.N(a,"resize",this.kb);this.N(a,"presentingplayerstatechange",this.oL);this.N(a,"videodatachange",this.Yq);this.N(a,"videoplayerreset",this.tO);this.N(a,"cuerangesadded",this.qK);this.N(a,"cuerangesremoved",this.SS);this.N(a,"cuerangemarkersupdated",this.qK);this.N(a,"onLoopRangeChange",this.pK);this.N(a,"innertubeCommand",this.onClickCommand);this.updateVideoData(a.getVideoData(),
!0);this.pK(a.getLoopRange());g.H(this,this.Ga);a.ea("web_player_heat_map")&&this.Ga.xa(this.element,0)};
mpa=function(a){if(0===a.i.length){var b=new rO;a.i.push(b);g.H(a,b);b.xa(a.Tb,0)}for(;1<a.i.length;)a.i.pop().dispose();sO(a.i[0],"100%");a.i[0].startTime=0;a.i[0].title=""};
npa=function(a){for(;a.Sa.length;)a.Sa.pop().dispose()};
qpa=function(a,b){var c,d,e=null===(c=a.Ec[b])||void 0===c?void 0:c.chapters;e&&(opa(a,e),a.api.getVideoData().jl=a.i);if(e=null===(d=a.Ec[b])||void 0===d?void 0:d.markers)if("REWIND_MARKERS"===b)jpa(a.Ga,e);else{var f;npa(a);b=g.q(e);for(e=b.next();!e.done;e=b.next()){var h=e.value;e=new lpa;if(h=h.markerRenderer)e.title=(null===(f=h.title)||void 0===f?void 0:f.simpleText)||"",e.timeRangeStartMillis=h.timeRangeStartMillis||NaN,e.thumbnailUrl=h.thumbnailUrl||"",e.onActiveCommand=(null===h||void 0===
h?void 0:h.onActiveCommand)||void 0,a.Sa.push(e),g.H(a,e),e.xa(a.pe,a.pe.children.length)}ppa(a,a.Sa)}};
ppa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=rpa(a,c.timeRangeStartMillis/(1E3*a.l.i),wO(a));g.dg(c.element,"transform","translateX("+d+"px)")}};
opa=function(a,b){var c=0;b=g.q(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(d.chapterRenderer){d=d.chapterRenderer;var e={startTime:NaN,title:null,onActiveCommand:void 0};e.title=fpa(d.title);var f=d.timeRangeStartMillis;null!=f&&(e.startTime=f);e.onActiveCommand=d.onActiveCommand;d=e;0===c&&0!==d.startTime&&(a.i[c].startTime=0,a.i[c].title="",a.i[c].onActiveCommand=d.onActiveCommand,c++);a.i.length<=c&&(e=new rO,a.i.push(e),g.H(a,e),e.xa(a.Tb,a.Tb.children.length));a.i[c].startTime=d.startTime;
a.i[c].title=d.title?d.title:"";a.i[c].onActiveCommand=d.onActiveCommand}c++}for(;c<a.i.length;)a.i.pop().dispose();g.xO(a);yO(a)};
g.xO=function(a){a.ra=a.i.length-1;a.Ra=0;spa(a,!0)&&spa(a,!1);for(var b=0,c=0;c<a.i.length;c++)if(0===a.i[c].width){if(c===a.i.length-1)for(var d=a.i.length-1;0<=d;d--)if(0<a.i[d].width){tO(a.i[d],0);sO(a.i[d],Math.floor(a.i[d].width)+"px");break}sO(a.i[c],"0")}else c===a.i.length-1?sO(a.i[c],Math.floor(a.i[c].width+b)+"px"):(b=a.i[c].width+b,d=Math.round(b),b-=d,sO(a.i[c],d+"px"))};
spa=function(a,b){var c=0,d=!1,e=a.i.length,f=1E3*a.l.i;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.B){for(var h=a.B-(a.u?3:2)*a.ra,l=0===a.Ra?3:h*a.Ra,m=g.q(a.i),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.i[c].startTime;c<e-1&&(m=a.i[c+1].startTime-a.i[c].startTime,tO(a.i[c],a.u?3:2));g.L(a.i[c].i,"ytp-exp-chapter-hover-container",1<a.i.length);n=(0===f?0:m/f*h)+a.i[c].width;if(n>l)a.i[c].width=n;else{a.i[c].width=0;var p=a,r=c,t=p.i[r-1];void 0!==t&&0<t.width?
t.width+=n:r<p.i.length-1&&(p.i[r+1].width+=n);tO(p.i[r],0);b&&(a.ra--,m/f>a.Ra&&(a.Ra=m/f),d=!0)}c++}}return d};
yO=function(a){if(a.B){var b=a.api.getProgressState(),c=new XK(b.seekableStart,b.seekableEnd),d=$K(c,b.loaded,0);b=$K(c,b.current,0);var e=a.l.l!==c.l||a.l.i!==c.i;a.l=c;zO(a,b,d);e&&AO(a);tpa(a)}};
CO=function(a,b){var c=ZK(a.l,b.u);if(1<a.i.length){c=BO(a,b.B,!0);for(var d=0,e=0;e<c;e++)0<a.i[e].width&&(d+=a.i[e].width,d+=a.u?3:2);c=(a.i[c].startTime+(b.B-d)/a.i[c].width*((c===a.i.length-1?1E3*a.l.i:a.i[c+1].startTime)-a.i[c].startTime))/1E3||0}return c};
upa=function(a,b,c){return c>=a.i.length?!1:4>Math.abs(b-a.i[c].startTime/1E3)/a.l.i*(a.B-(a.u?3:2)*a.ra)};
vpa=function(a,b,c,d){b=g.Zd(b,0,a.u?60:40);a.X=b;var e=a.Aa;a.Aa=b/(a.u?60:40)*(Math.max(YK(a.l)/a.B,1)-1)+1;b=a.B*a.Aa;a.Y=g.Zd(d*b-c,0,b-a.B);e!==a.Aa&&AO(a)};
AO=function(a){var b=wO(a),c=-b.l/b.i,d=(-b.l+b.width)/b.i,e=Qaa(a.Pc),f=0;if(a.X>.2*(a.u?60:40)&&1===a.i.length)for(var h=YK(a.l)/60*d,l=Math.ceil(YK(a.l)/60*c);l<h;l++){var m=e[f];m||(m=g.De("DIV"),a.Pc.appendChild(m));f++;0===l%60?g.gn(m,"ytp-60m-progress"):0===l%30?g.gn(m,"ytp-30m-progress"):0===l%15?g.gn(m,"ytp-15m-progress"):g.gn(m,"ytp-1m-progress");m.style.left=(60*l/YK(a.l)-c)*b.i+"px"}b=a.Gc?a.l.i:0;a.update({boundTimeLeft:g.BK(ZK(a.l,c)-b),boundTimeRight:g.BK(ZK(a.l,d)-b)});for(c=e.length-
1;c>=f;c--)g.He(e[c]);a.element.style.height=a.X+(a.u?8:5)+"px";a.V("height-change",a.X);a.td.style.height=a.X+(a.u?20:13)+"px";e=g.q(Object.keys(a.va));for(f=e.next();!f.done;f=e.next())wpa(a,f.value);DO(a);zO(a,a.L,a.Ma)};
wO=function(a){var b=a.tb.x,c=a.B*a.Aa;b=g.Zd(b,0,a.B);a.Wc.update(b,a.B,-a.Y,-(c-a.Y-a.B));return a.Wc};
zO=function(a,b,c){a.L=b;a.Ma=c;var d=wO(a),e=a.l.i,f=ZK(a.l,a.L),h=g.wI("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.BK(f,!0),DURATION:g.BK(e,!0)}),l=BN(a.i,1E3*f);l=a.i[l].title;a.update({ariamin:Math.floor(a.l.l),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.I&&2!==a.api.getPresentingPlayerType()&&(e=a.I.startTimeMs/1E3,f=a.I.endTimeMs/1E3);e=$K(a.l,e,0);h=$K(a.l,f,1);f=g.Zd(b,e,h);c=g.Zd(c,e,h);b=rpa(a,b,d);g.dg(a.Bd,"transform","translateX("+
b+"px)");EO(a,d,e,f,"PLAY_PROGRESS");EO(a,d,e,c,"LOAD_PROGRESS")};
EO=function(a,b,c,d,e){var f=a.i.length,h=b.i-a.ra*(a.u?3:2),l=c*h;c=BO(a,l);var m=d*h;h=BO(a,m);"HOVER_PROGRESS"===e&&(h=BO(a,b.i*d,!0),m=b.i*d-xpa(a,b.i*d)*(a.u?3:2));b=Math.max(l-ypa(a,c),0);for(d=c;d<f;d++)uO(a.i[d],e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.i[f].width,FO(a,uO(a.i[f],e),f===c?d-b:d,d);f=a.i[h].width;m=g.Zd(m-ypa(a,h),0,f);c===h&&(m-=b);FO(a,uO(a.i[h],e),m,f);m=a.i.length;for(h+=1;h<m;h++)FO(a,uO(a.i[h],e),0,a.i[h].width);for(h=0;h<c;h++)FO(a,uO(a.i[h],e),0,a.i[h].width)};
ypa=function(a,b){if(b>=a.i.length)return a.B;for(var c=0,d=0;d<b;)c+=a.i[d].width,d++;return c};
FO=function(a,b,c,d,e){e||a.api.T().i?b.style.width=c+"px":g.dg(b,"transform","scalex("+(d?c/d:0)+")")};
BO=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=xpa(a,b)*(a.u?3:2));c=g.q(a.i);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.i.length?d-1:d};
rpa=function(a,b,c){for(var d=b*a.l.i*1E3,e=-1,f=g.q(a.i),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.i-(a.u?3:2)*a.ra)+(a.u?3:2)*(0>e?0:e)+c.l};
xpa=function(a,b){for(var c=a.i.length,d=0,e=g.q(a.i),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.u?3:2,d++;else break;return d===c?c-1:d};
g.GO=function(a,b,c,d){var e=a.B!==c;a.kd=b;a.B=c;a.u=d;AO(a);1===a.i.length&&(a.i[0].width=c||0);e&&g.xO(a)};
DO=function(a){var b=!!a.I&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.I?(c=a.I.startTimeMs/1E3,d=a.I.endTimeMs/1E3):(e=c>a.l.l,f=0<a.l.i&&d<a.l.i);g.L(a.element,"ytp-loop-range-enabled",b);g.L(a.element,"ytp-clip-start-enabled",e);g.L(a.element,"ytp-clip-end-enabled",f);b=e?$K(a.l,c,0):0;d=f?$K(a.l,d,1):1;a.ib.style.left=Math.round(1E3*b)/10+"%";a.Xa.style.left=Math.round(1E3*d)/10+"%";a.Ad.style.width=Math.round(1E3*b)/10+"%";a.Kc.style.left=Math.round(1E3*d)/10+
"%";a.Kc.style.width=Math.round(1E3*(1-d))/10+"%"};
tpa=function(a){var b=wO(a);EO(a,b,a.L,Math.max(b.u,a.L),"HOVER_PROGRESS");for(var c=BO(a,b.i*a.L,!0),d=BO(a,b.B,!0),e=c;e<=d;e++)g.L(a.i[e].l,"ytp-hover-progress-light",b.u>a.L);g.L(a.td,"ytp-scrubber-button-hover",c===d&&1<a.i.length);a.api.ea("web_player_heat_map")&&a.Ga.l.setAttribute("width",(100*b.u).toFixed(2)+"%")};
wpa=function(a,b){var c=a.va[b];b=a.ub[b];var d=wO(a),e=$K(a.l,c.start/1E3,0),f=Ifa(c,a.u)/d.width;var h=$K(a.l,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.Zd(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;e=!0;b.style.left=Math.max(c*d.i+d.l,0)+"px";FO(a,b,g.Zd((h-c)*d.i+d.l,0,d.width),d.width,void 0===e?!1:e)};
zpa=function(a,b){var c=b.getId();a.va[c]===b&&(g.He(a.ub[c]),delete a.va[c],delete a.ub[c])};
Apa=function(a,b){b?a.J||(a.element.removeAttribute("aria-disabled"),a.J=new g.du(a.Dc,!0),a.J.subscribe("hovermove",a.mR,a),a.J.subscribe("hoverend",a.lR,a),a.J.subscribe("dragstart",a.kR,a),a.J.subscribe("dragmove",a.oR,a),a.J.subscribe("dragend",a.nR,a),a.Xc=a.Na("keydown",a.pL)):a.J&&(a.element.setAttribute("aria-disabled","true"),a.hc(a.Xc),a.J.cancel(),a.J.dispose(),a.J=null)};
g.Bpa=function(a){var b=2*a.B*g.cE();return 1E3*YK(a.l)/a.api.getPlaybackRate()/b};
HO=function(a,b,c){g.W.call(this,{D:"button",K:"ytp-button",U:{title:"Play on TV","aria-haspopup":"true"},ma:"{{icon}}"});this.G=a;this.wb=c;this.i=null;this.N(a,"onMdxReceiversChange",this.Ja);this.N(a,"presentingplayerstatechange",this.Ja);this.N(a,"appresize",this.Ja);this.Ja();this.Na("click",this.l,this);g.wi(this,g.VM(b.ac(),this.element))};
IO=function(a,b,c){g.W.call(this,{D:"button",Ba:["ytp-button","ytp-settings-button"],U:{"aria-haspopup":"true","aria-owns":RJ(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},S:[g.hK()]});this.G=a;this.wb=c;this.l=!0;this.Na("click",this.u);this.N(a,"onPlaybackQualityChange",this.updateBadge);this.N(a,"videodatachange",this.updateBadge);this.N(a,"webglsettingschanged",this.updateBadge);this.N(a,"appresize",this.i);g.wi(this,g.VM(b.ac(),this.element));this.G.Zb(this.element,this,
28663);this.updateBadge();this.i(a.Wa().getPlayerSize())};
JO=function(a,b){a.l=!!b;a.i(a.G.Wa().getPlayerSize())};
KO=function(a,b){mN.call(this,"Annotations",6);this.G=a;this.wb=b;this.i=!1;this.N(a,"videodatachange",this.Ja);this.N(a,"onApiChange",this.Ja);this.subscribe("select",this.l,this);this.Ja()};
g.LO=function(a,b,c,d,e,f,h){g.eN.call(this,g.fN({"aria-haspopup":"true"}),b,a);this.wb=d;this.B=!1;this.l=null;this.options={};this.u=new g.iN(c,void 0,a,e,f,h);g.H(this,this.u);this.Na("keydown",this.qL);this.Na("click",this.open)};
Cpa=function(a){if(a.l){var b=a.options[a.l];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.l=null}};
g.MO=function(a,b){g.jN(a.u);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.l;l&&(d=!0);h&&h.priority===-e?(l=a,g.dN(l.options[f],l.Zi(f,!0)),delete a.options[f]):h=a.Nz(f,-e,l);c[f]=h;a.u.zc(h,!0)}d||(a.l=null);b=g.q(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
NO=function(a,b){g.LO.call(this,"Audio track",3,a,b);this.G=a;this.tracks={};this.i=new g.W({D:"div",S:[{D:"span",ma:"Audio track"},{D:"span",K:"ytp-menuitem-label-count",ma:"{{content}}"}]});g.H(this,this.i);g.dN(this,this.i);this.N(a,"videodatachange",this.Ja);this.N(a,"onPlaybackAudioChange",this.Ja);this.Ja()};
OO=function(a,b){mN.call(this,"Autoplay",7);this.G=a;this.wb=b;this.i=!1;this.u=[];this.N(a,"presentingplayerstatechange",this.l);this.subscribe("select",this.C,this);a.Zb(this.element,this,113682);this.l()};
PO=function(a,b,c,d){d=new g.W({D:"div",Ba:["ytp-linked-account-popup-button"],ma:d,U:{role:"button",tabindex:"0"}});b=new g.W({D:"div",K:"ytp-linked-account-popup",U:{role:"dialog","aria-modal":"true",tabindex:"-1"},S:[{D:"div",K:"ytp-linked-account-popup-title",ma:b},{D:"div",K:"ytp-linked-account-popup-description",ma:c},{D:"div",K:"ytp-linked-account-popup-buttons",S:[d]}]});g.GM.call(this,a,{D:"div",K:"ytp-linked-account-popup-container",S:[b]},100);var e=this;this.dialog=b;g.H(this,this.dialog);
d.Na("click",function(){e.Bb()});
g.H(this,d);g.RL(this.G,this.element,4);this.hide()};
QO=function(a,b){g.eN.call(this,g.fN({"aria-haspopup":"true"}),1);this.G=a;this.wb=b;this.l=this.i=!1;this.N(this.G,"videodatachange",this.B);this.Na("click",this.onClick);this.B()};
RO=function(a){return a?g.Aw(a):""};
SO=function(a,b){g.LO.call(this,"Quality",2,a,b);this.G=a;this.C={};this.i="unknown";g.K(this.u.element,"ytp-quality-menu");this.N(a,"videodatachange",this.ys);this.N(a,"videoplayerreset",this.ys);this.N(a,"onPlaybackQualityChange",this.iE);this.ys()};
Dpa=function(a,b,c){a=a.C[b];var d=g.fy[b];c={D:"span",Ba:c,S:[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.S.push(" "),c.S.push({D:"sup",K:"ytp-swatch-color",ma:e}));return c};
TO=function(a,b,c,d,e,f,h){g.W.call(this,{D:"div",K:"ytp-slider-section",U:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{D:"div",K:"ytp-slider",S:[{D:"div",K:"ytp-slider-handle"}]}]});this.I=a;this.C=b;this.minimumValue=c;this.maximumValue=d;this.J=e;this.Y=f;this.range=this.maximumValue-this.minimumValue;this.ra=this.ya("ytp-slider-section");this.l=this.ya("ytp-slider");this.L=this.ya("ytp-slider-handle");
this.B=new g.du(this.l,!0);this.i=h?h:c;g.H(this,this.B);this.B.subscribe("dragmove",this.sL,this);this.N(this.element,"keydown",this.tL);this.N(this.element,"wheel",this.rL);this.init()};
VO=function(a){TO.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.G=a;this.u=g.De("P");this.va=laa(this.X,this);g.K(this.l,"ytp-speedslider");g.K(this.u,"ytp-speedslider-text");a=this.u;var b=this.l;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);UO(this);this.N(this.G,"onPlaybackRateChange",this.Ca)};
UO=function(a){a.u.textContent=WO(a,a.i)+"x"};
WO=function(a,b){a=Number(g.Zd(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))};
XO=function(a){g.WJ.call(this,{D:"div",K:"ytp-speedslider-component"});this.i=new VO(a);g.H(this,this.i);this.element.appendChild(this.i.element)};
Epa=function(a){var b=new XO(a);hN.call(this,a,b,"Custom");g.H(this,b)};
YO=function(a,b){var c=new Epa(a);g.LO.call(this,"Playback speed",5,a,b,"Custom",function(){g.oN(b,c)});
g.H(this,c);this.G=a;this.C=this.i=this.J=null;this.I=this.G.getAvailablePlaybackRates();this.N(a,"presentingplayerstatechange",this.Ja);this.Ja()};
Fpa=function(a,b){var c=ZO(b);a.options[c]?a.ai(c):b===a.C&&a.i&&(a.ai(a.i),a.bd(b.toString()))};
Hpa=function(a){g.MO(a,a.I.map(ZO));a.i=null;a.C=null;var b=a.G.getPlaybackRate();a.I.includes(b)||(Gpa(a,b),g.LO.prototype.Jf.call(a,a.i))};
Gpa=function(a,b){a.C=b;a.i=g.wI("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.I.map(ZO);b.unshift(a.i);g.MO(a,b)};
ZO=function(a){return a.toString()};
$O=function(a,b,c,d){var e=new g.iN(b,void 0,"Video Override");g.LO.call(this,d.text||"",a,b,c,"Video Override",function(){g.oN(c,e)});
var f=this;g.K(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.Ab(a,this.getKey,this);this.I=e;g.H(this,this.I);b=new g.eN({D:"div",K:"ytp-menuitemtitle",ma:"Allow for a different caption style if specified by the video."},0);g.H(this,b);this.I.zc(b,!0);this.C=new g.eN({D:"div",K:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{D:"div",K:"ytp-menuitem-label",ma:"On"}]},-1);g.H(this,this.C);this.I.zc(this.C,!0);this.N(this.C.element,
"click",function(){Ipa(f,!0)});
this.i=new g.eN({D:"div",K:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{D:"div",K:"ytp-menuitem-label",ma:"Off"}]},-2);g.H(this,this.i);this.I.zc(this.i,!0);this.N(this.i.element,"click",function(){Ipa(f,!1)});
g.MO(this,g.Oc(a,this.getKey))};
Ipa=function(a,b){a.V("settingChange",a.setting+"Override",!b);a.wb.Ah()};
aP=function(a,b){g.iN.call(this,a,void 0,"Options");var c=this;this.pn={};for(var d=0;d<g.DN.length;d++){var e=g.DN[d],f=new $O(-d,a,b,e);g.H(this,f);f.subscribe("settingChange",this.uh,this);this.pn[e.option.toString()]=f;this.zc(f,!0)}a=new g.eN(g.fN(),-g.DN.length,"Reset");g.H(this,a);a.Na("click",function(){c.uh("reset",!0)});
this.zc(a,!0)};
bP=function(a,b){g.LO.call(this,"Auto-translate",0,a,b);this.languages={}};
Jpa=function(a,b){a.languages=g.Ab(b,a.getKey,a);g.MO(a,g.Oc(b,a.getKey))};
cP=function(a,b){var c=new aP(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.jE(a.T())&&(e={D:"div",K:"ytp-panel-footer-content",S:[{D:"span",ma:d[0]},{D:"a",K:"ytp-panel-footer-content-link",ma:"Settings",U:{href:"/account_playback"}},{D:"span",ma:d[1]}]});g.LO.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.oN(b,c)},e);
var f=this;this.G=a;this.wb=b;this.tracks={};this.I=new g.J(function(){Kpa(f,!1)},3E3);
g.H(this,this.I);this.J=new g.W({D:"div",S:[{D:"span",ma:"Subtitles/CC"},{D:"span",K:"ytp-menuitem-label-count",ma:"{{content}}"}]});g.H(this,this.J);g.dN(this,this.J);this.i=new bP(a,b);g.H(this,this.i);this.i.subscribe("select",this.vL,this);this.C=c;g.H(this,this.C);this.C.subscribe("settingChange",this.uh,this);b.subscribe("show",this.RR,this);this.N(a,"videodatachange",this.Ja);this.N(a,"onApiChange",this.Ja);this.N(a,"onCaptionsTrackListChanged",this.Ja);this.N(a,"captionschanged",this.Ja);
a.Zb(this.element,this,16500);this.Ja()};
Kpa=function(a,b){a.G.setOption("captions","sampleSubtitles",b)};
dP=function(a){g.qN.call(this,a,"ytp-settings-menu");var b=this;this.Wd=new g.iN(this.G);this.BB=this.settingsButton=null;this.Me=!1;g.H(this,this.Wd);this.hide();g.oN(this,this.Wd);a.Zb(this.element,this,108341,!0);this.subscribe("show",function(c){b.Xe(c)})};
Lpa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
eP=function(a,b){g.W.call(this,{D:"button",Ba:["ytp-size-button","ytp-button"],U:{title:"{{title}}"},ma:"{{icon}}"});this.G=a;this.isWidescreen=null;this.transition=new jO;this.tooltip=b.ac();g.H(this,this.transition);this.N(a,"sizestylechange",this.Ja);this.N(a,"fullscreentoggled",this.Ja);this.N(a,"presentingplayerstatechange",this.Ja);this.Ja();this.Na("click",this.onClick);g.wi(this,g.VM(this.tooltip,this.element))};
g.fP=function(a,b){g.W.call(this,{D:"button",Ba:["ytp-subtitles-button","ytp-button"],U:{"aria-pressed":"{{pressed}}",title:xM(a,"Subtitles/closed captions","c")},S:[Rla()]});this.G=a;this.N(a,"videodatachange",this.Ja);this.N(a,"appresize",this.Ja);this.N(a,"promotooltipacceptbuttonclicked",this.i);this.N(a,"onApiChange",this.Ja);this.N(a,"onCaptionsTrackListChanged",this.Ja);this.N(a,"captionschanged",this.Ja);this.G.Zb(this.element,this,16500);this.Ja();this.Na("click",this.onClick);g.wi(this,
g.VM(b.ac(),this.element))};
g.gP=function(a,b,c){c=void 0===c?350:c;g.W.call(this,{D:"div",Ba:["ytp-time-display","notranslate"],S:[{D:"span",K:"ytp-time-current",ma:"{{currenttime}}"},{D:"span",K:"ytp-time-separator",ma:" / "},{D:"span",K:"ytp-time-duration",ma:"{{duration}}"}]});this.api=a;this.J=c;this.liveBadge=new g.W({D:"button",Ba:["ytp-live-badge","ytp-button"],U:{disabled:"true"},ma:"{{content}}"});this.i=null;this.l=!1;this.I=this.C=null;this.isPremiere=!1;this.B=this.u=null;this.liveBadge.bd("Live");g.H(this,this.liveBadge);
this.liveBadge.xa(this.element);this.tooltip=b.ac();this.Na("click",this.onClick);this.N(a,"presentingplayerstatechange",this.Rb);this.N(a,"appresize",this.Rb);this.N(a,"videodatachange",this.fb);(a=a.getVideoData())&&this.updateVideoData(a);this.Rb()};
jP=function(a,b,c){g.W.call(this,{D:"div",K:"ytp-volume-panel",U:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{D:"div",K:"ytp-volume-slider",S:[{D:"div",K:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.i=b;this.J=c;this.Ai=!1;this.X=this.volume=0;this.I=null;this.hasFocus=this.l=this.u=!1;this.i=b;this.J=c;this.B=b.Ve();this.L=this.ya("ytp-volume-slider");this.Y=this.ya("ytp-volume-slider-handle");
this.C=new g.du(this.L,!0);g.H(this,this.C);this.C.subscribe("dragstart",this.VR,this);this.C.subscribe("dragmove",this.xL,this);this.C.subscribe("dragend",this.UR,this);this.N(a,"onVolumeChange",this.Ug);this.N(a,"appresize",this.jE);this.N(a,"fullscreentoggled",this.Vl);this.N(a,"onShowControls",this.OF);this.N(a,"onHideControls",this.OF);this.N(this.element,"keydown",this.yL);this.N(this.element,"focus",function(){hP(d,d.l,d.u,!0,d.i.Ai())});
this.N(this.element,"blur",function(){hP(d,d.l,d.u,!1,d.i.Ai())});
this.jE(a.Wa().getPlayerSize());iP(this,a.getVolume(),a.isMuted())};
iP=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.Oa("valuenow",d);a.Oa("valuetext",e);a.Y.style.left=(a.B?60:40)*c+"px";a.volume=b};
Mpa=function(a,b){g.L(a.element,"ytp-volume-control-hover",b);hP(a,b,a.u,a.hasFocus,a.i.Ai())};
hP=function(a,b,c,d,e){var f=a.l||a.u||a.hasFocus||a.Ai;a.l=b;a.u=c;a.hasFocus=d;a.Ai=e;b=a.l||a.u||a.hasFocus||a.Ai;f!==b&&(b?a.I=a.N(a.element,"wheel",a.wL):(a.hc(a.I),a.I=null),g.L(a.J,"ytp-volume-slider-active",b))};
g.kP=function(a,b){var c=a.T(),d=g.ZD(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];g.LD(c)&&e.push("ytp-youtube-music-button");g.W.call(this,{D:"a",Ba:e,U:{href:"{{url}}",target:c.C,title:g.wI("Watch on $WEBSITE",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},ma:"{{logoSvg}}"});this.api=a;this.visible=!1;a.Zb(this.element,this,28666);this.Na("click",this.onClick);this.N(a,"videodatachange",this.fb);this.N(a,"onLoopRangeChange",
this.fb);this.N(a,"appresize",this.kb);this.fb();g.wi(this,g.VM(b.ac(),this.element));this.kb()};
mP=function(a,b,c){g.TL.call(this);var d=this;this.G=a;this.u=b;this.md=c;this.Da=NaN;this.Ga=this.Aa=null;this.i=new dP(this.G);this.Dc=new g.vO(this.G,this.u);this.muteButton=null;this.Zg=new g.gP(this.G,this.u);this.C=this.B=this.L=this.va=null;this.W=new mO(this.G,this.u);this.Ca=new g.fO(this.G,this.u);this.Ed=new g.Zm(this.vp,null,this);this.J=null;c=a.T();this.md.subscribe("autohideupdate",this.vj,this);var e=!a.rb().isCued(),f=this.G.T().ea("html5_player_bottom_linear_gradient");f||!g.LD(c)&&
!g.S(a.T().experiments,"html5_player_dynamic_bottom_gradient")?f=f?new g.W({D:"div",K:"ytp-gradient-bottom-container",S:[{D:"div",K:"ytp-gradient-bottom-extension"},{D:"div",K:"ytp-gradient-bottom"}]}):new g.W({D:"div",K:"ytp-gradient-bottom"}):this.Ga=f=new g.$N(a);g.H(this,f);g.RL(a,f.element,8);this.Y=new g.IK(f,250,e,100);g.H(this,this.Y);this.l=new g.W({D:"div",K:"ytp-chrome-bottom",S:[{D:"div",K:"ytp-chrome-controls"}]});g.H(this,this.l);g.RL(a,this.l.element,8);this.X=new g.IK(this.l,250,e,
100);g.H(this,this.X);this.ra=this.l.element.children[0];g.wi(this.i,function(){a.Tm()===d.i&&(a.Zy=null)});
g.H(this,this.i);a.Zy=this.i;g.RL(a,this.i.element,6);this.i.subscribe("show",function(m){var n=d.u.ac(),p=!m;if(null!=n.type)if(p)switch(n.type){case 3:case 2:lP(n);n.B.show();break;default:n.B.show()}else n.B.hide();n.I=p;b.Qx(d.i,m)});
g.H(this,this.Dc);this.Dc.xa(this.l.element,0);e=new g.bO(a);g.H(this,e);g.RL(a,e.element,4);f=new g.SJ({D:"div",K:"ytp-left-controls"});g.H(this,f);f.xa(this.ra);e=new g.qO(a,b,!1);g.H(this,e);e.xa(f.element);c.ra||(e=new g.nO(a,b),g.H(this,e),e.xa(f.element));e=new g.qO(a,b,!0);g.H(this,e);e.xa(f.element);e=new g.W({D:"span",K:"ytp-volume-area"});g.H(this,e);e.xa(f.element);if(!c.tb&&(this.muteButton=new g.lO(a,b),g.H(this,this.muteButton),this.muteButton.xa(e.element),c.X)){var h=new jP(a,b,this.l.element);
g.H(this,h);h.xa(e.element);e=new g.du(e.element);g.H(this,e);e.subscribe("hoverstart",function(){Mpa(h,!0)});
e=new g.du(f.element);g.H(this,e);e.subscribe("hoverend",function(){Mpa(h,!1)})}g.H(this,this.Zg);
this.Zg.xa(f.element);e=new g.SJ({D:"div",K:"ytp-right-controls"});g.H(this,e);this.va=new aO(a,this.Dc);g.H(this,this.va);this.va.xa(f.element);e.xa(this.ra);a.T().xc&&g.S(c.experiments,"web_player_move_autonav_toggle")&&(f=new YN(a,b),g.H(this,f),f.xa(e.element));g.S(c.experiments,"external_fullscreen_with_edu")&&c.externalFullscreen&&aE(c)&&(this.L=new eO(a,b),g.H(this,this.L),this.L.xa(e.element));f=new g.fP(a,b);g.H(this,f);f.xa(e.element);f=new IO(a,b,this.i);g.H(this,f);Lpa(this.i,f);f.xa(e.element);
var l=new iO(a);g.H(this,l);g.RL(a,l.element,5);l.subscribe("show",function(m){b.Gm(l,m)});
f=new hO(a,b,l);g.H(this,f);f.xa(e.element);f=a.getVideoData();if(c.Vi||f.C&&"1"===c.controlsType)this.B=new g.kP(a,b),g.H(this,this.B),this.B.xa(e.element);c.showMiniplayerButton&&!g.S(a.T().experiments,"web_player_pip")&&(this.C=new gO(a,b),g.H(this,this.C),this.C.xa(e.element));g.H(this,this.W);this.W.xa(e.element);f.Hy||this.W.hide();c.Lf||(f=new eP(a,b),g.H(this,f),f.xa(e.element));c.sf&&(f=new HO(a,b,this.i),g.H(this,f),f.xa(e.element));c.Ji&&(c=new XN(a,b),g.H(this,c),c.xa(e.element));g.H(this,
this.Ca);this.Ca.xa(e.element);g.H(this,this.Ed);this.N(a,"appresize",this.kb);this.N(a,"fullscreentoggled",this.kb);this.N(a,"presentingplayerstatechange",this.fz);this.N(a,"videodatachange",this.fb);this.kb()};
Npa=function(a,b){a.G.rb().isCued()||b?b&&(a.X.hide(),a.Y.hide(),a.muteButton&&a.muteButton.Qb(!1),a.B&&a.B.Qb(!1),a.C&&a.C.Qb(!1),a.u.ac().cj(a.l.element)):b||(a.X.show(),a.Y.show(),a.muteButton&&a.muteButton.Qb(!0),a.B&&a.B.Qb(!0),a.C&&a.C.Qb(!0),a.vj())};
Opa=function(a){var b=a.G.Wa().getPlayerSize().width;return Math.max(b-2*nP(a),100)};
nP=function(a){var b=a.u.Ve();return 12*(a.G.getVideoData().C?0:b?2:1)};
oP=function(a){var b=a.u.Ve()?72:50;a=a.G.T();g.dE(a)&&(b=54,g.S(a.experiments,"web_player_bigger_buttons_like_mobile")&&(b=62));return b};
pP=function(a,b){TN.call(this,a,b,!1);var c=this;this.N(this.G,"videodatachange",this.fb);this.N(this.G,g.tw("suggested_action_button_visible"),function(){c.Xe(!0)});
this.N(this.G,g.uw("suggested_action_button_visible"),function(){c.Xe(!1)})};
qP=function(a){a.G.Df("suggested_action_button_visible")};
sP=function(a){g.W.call(this,{D:"div",K:rP.TITLE,S:[{D:"div",K:rP.TEXT,S:[{D:"a",Ba:[rP.LINK,rP.SESSIONLINK],U:{target:a.T().C,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},ma:"{{title}}"},{D:"div",K:rP.SUBTEXT,S:[{D:"a",K:rP.CHANNEL_NAME,U:{href:"{{channelLink}}",target:"_blank"},ma:"{{channelName}}"}]}]}]});this.api=a;this.i=null;this.link=this.ya(rP.LINK);a.Zb(this.element,this,23851);this.N(a,"videodatachange",this.Ja);this.N(a,"videoplayerreset",
this.Ja);this.Ja()};
Ppa=function(a){a.Oa("channelLink","");a.Oa("channelName","");a.Oa("channelTitleFocusable","-1")};
g.tP=function(a,b){g.W.call(this,{D:"div",S:[{D:"div",K:"ytp-tooltip-text-wrapper",S:[{D:"div",K:"ytp-tooltip-image"},{D:"div",K:"ytp-tooltip-title",ma:"{{title}}"},{D:"span",K:"ytp-tooltip-text",ma:"{{text}}"}]},{D:"div",K:"ytp-tooltip-bg",S:[{D:"div",K:"ytp-tooltip-duration",ma:"{{duration}}"}]}]});var c=this;this.api=a;this.Ca=b;this.env=this.api.T();this.va=this.env.i;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.L=function(d){(d=fp(d))&&g.Me(c.activeElement,d)||c.dk()};
this.u=function(d){3===c.type&&c.dk();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.u),d.addEventListener("mouseout",c.L),d.removeEventListener("focus",c.u),d.addEventListener("blur",c.L),Qpa(c,d,2))};
this.X=function(){c.dk()};
this.activeElement=null;this.B=new g.IK(this,100);this.type=null;this.J=!1;this.i=null;this.l=NaN;this.C="";this.gz=this.api.Wa().getPlayerSize().width;this.I=!0;this.scale=1;this.Y=new g.J(this.WO,250,this);this.ra=new g.J(this.dk,5E3,this);g.H(this,this.B);g.H(this,this.Y);g.H(this,this.ra);yD&&(a=this.ya("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
aN=function(a){a.element.setAttribute("aria-live","polite")};
Tpa=function(a,b,c,d,e,f,h,l){if(!a.va){3===a.type&&a.dk();1!==a.type&&(g.gn(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.I&&a.B.show(),a.i&&a.i.dispose(),a.i=a.api.Nh(),a.i&&a.i.subscribe("l",a.pI,a));a.update({text:d,title:h?h:""});g.L(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.L(a.element,"ytp-text-detail",!!e);d=-1;a.i&&(d=MF(a.i,160*a.scale),g.S(a.env.experiments,"web_l3_storyboard")&&4===a.i.levels.length&&(d=a.i.levels.length-1),d=UF(a.i,d,c));Rpa(a,d);if(l)switch(c=g.tg(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"}Spa(a,!!e,b,f)}};
g.uP=function(a){1===a.type&&a.dk()};
g.VM=function(a,b){if(a.va)return g.Ka;b.addEventListener("mouseover",a.u);b.addEventListener("focus",a.u);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.activeElement===b&&a.dk();b.removeEventListener("mouseover",a.u);b.removeEventListener("focus",a.u)}};
vN=function(a,b,c){if(a.type)if(3===a.type)a.dk();else return;Qpa(a,b,3,c)};
Qpa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Zr("showElementTooltip called with non-element.",b.toString()),g.pt(a);else{isNaN(a.l)||(a.l=NaN,a.bg.style.background="");a.activeElement=b;a.J=!!d;d?a.C=d:(a.C=b.getAttribute("title"),b.removeAttribute("title"));g.gn(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.L(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.L(a.element,"ytp-tooltip-opaque",
!!b);a.type=c;a.api.addEventListener("appresize",a.X);a.I&&(lP(a),a.B.show(0))}};
lP=function(a){var b;a.activeElement&&(b=a.activeElement.getAttribute("data-tooltip-text"));if(b&&!a.J){var c=a.activeElement;a.Oa("text",b);var d=c.getAttribute("data-duration");a.update({title:a.C,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.jn(a.element,
["ytp-text-detail","ytp-preview"]);g.L(a.element,"ytp-has-duration",!!d)}else a.Oa("text",a.C),g.ln(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);Spa(a,!!b)};
Spa=function(a,b,c,d){var e=Math.min(a.gz,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ca.Dp(a.element,a.activeElement,c,1===a.type,d);a.element.style.top?g.K(a.element,"ytp-bottom"):a.element.style.bottom&&g.K(a.element,"ytp-top");3===a.type&&a.ra.start()};
wN=function(a){a.activeElement&&!a.J&&a.activeElement.hasAttribute("title")&&(a.C=a.activeElement.getAttribute("title")||"",a.activeElement.removeAttribute("title"),a.I&&lP(a))};
Rpa=function(a,b){g.L(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.l)){a.l=b;b=160*a.scale;var c=160*a.scale,d=OF(a.i,a.l,b);Roa(a.bg,d,b,c,!0);a.Y.start()}};
Upa=function(a){var b=a.activeElement;3===a.type&&a.ra.stop();a.api.removeEventListener("appresize",a.X);a.J||b.setAttribute("title",a.C);a.C="";a.activeElement=null};
g.vP=function(a,b){g.W.call(this,{D:"button",Ba:["ytp-watch-later-button","ytp-button"],U:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.BD(a.T()))},S:[{D:"div",K:"ytp-watch-later-icon",ma:"{{icon}}"},{D:"div",K:"ytp-watch-later-title",ma:"Watch later"}]});this.G=a;this.icon=null;this.visible=this.i=this.l=!1;this.tooltip=b.ac();aN(this.tooltip);a.Zb(this.element,this,28665);this.Na("click",this.onClick,this);this.N(a,"videoplayerreset",this.zL);this.N(a,"appresize",
this.Cv);this.N(a,"videodatachange",this.Cv);this.N(a,"presentingplayerstatechange",this.Cv);this.Cv();a=this.G.T();var c=Vpa();a.l&&c?(Wpa(),Xpa(this)):this.Ja(2);g.L(this.element,"ytp-show-watch-later-title",g.BD(a));g.wi(this,g.VM(b.ac(),this.element))};
Ypa=function(a,b){g.zma(function(){Wpa({videoId:b});window.location.reload()},"wl_button",g.YD(a.G.T()))};
Xpa=function(a){if(!a.i){a.i=!0;a.Ja(3);var b=a.G.getVideoData();b=a.l?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.G.Hl(),d=a.l?function(){a.l=!1;a.i=!1;a.Ja(2);a.G.T().u&&a.G.La("WATCH_LATER_VIDEO_REMOVED")}:function(){a.l=!0;
a.i=!1;a.Ja(1);a.G.T().i&&vN(a.tooltip,a.element);a.G.T().u&&a.G.La("WATCH_LATER_VIDEO_ADDED")};
fL(c,b).then(d,function(){a.i=!1;Zpa(a,"An error occurred. Please try again later.")})}};
Zpa=function(a,b){a.Ja(4,b);a.G.T().u&&a.G.La("WATCH_LATER_ERROR",b)};
$pa=function(a,b){var c=a.G.T();if(b!==a.icon){switch(b){case 3:var d=vM();break;case 1:d=ZJ();break;case 2:d={D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{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=g.S(c.experiments,"watch_later_iconchange_killswitch")?{D:"svg",U:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{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"}}]}:{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,U:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Oa("icon",d);
a.icon=b}};
wP=function(a){g.KM.call(this,a);var b=this;this.mB=(this.fn=g.BD(this.api.T()))&&(this.api.T().i||qq()||oq());this.Xz=48;this.Yz=69;this.wk=null;this.vn=[];this.lc=new g.QM(this.api);this.Ys=new xN(this.api);this.Vh=new g.W({D:"div",K:"ytp-chrome-top"});this.Xu=[];this.tooltip=new g.tP(this.api,this);this.backButton=this.Dr=null;this.channelAvatar=new cN(this.api,this);this.title=new sP(this.api,this);this.bh=new g.SJ({D:"div",K:"ytp-chrome-top-buttons"});this.Fh=null;this.dj=new UM(this.api,this,
this.Vh.element);this.overflowButton=this.yh=null;this.Gg="1"===this.api.T().controlsType?new mP(this.api,this,this.md):null;this.contextMenu=new g.tN(this.api,this,this.lc);this.Kz=!1;this.ew=new g.W({D:"div",U:{tabindex:"0"}});this.dw=new g.W({D:"div",U:{tabindex:"0"}});this.xu=null;this.JC=this.Vv=!1;var c=a.Wa(),d=a.T(),e=a.getVideoData();this.fn&&(g.K(a.getRootNode(),"ytp-embed"),g.K(a.getRootNode(),"ytp-embed-playlist"),g.S(d.experiments,"embeds_enable_player_overlays_autohide")&&this.mB&&(g.K(a.getRootNode(),
"ytp-embed-overlays-autohide"),g.K(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.Xz=60,this.Yz=89);this.api.T().i&&(g.K(a.getRootNode(),"ytp-mobile"),this.fn&&this.api.T().ea("embeds_enable_mobile_custom_controls")&&g.K(a.getRootNode(),"ytp-embed-mobile-exp"));this.api.ea("web_player_heat_map")&&g.K(a.getRootNode(),"ytp-heat-map");this.wi=e&&e.wi;g.H(this,this.lc);g.RL(a,this.lc.element,4);g.H(this,this.Ys);g.RL(a,this.Ys.element,4);e=new g.W({D:"div",K:"ytp-gradient-top"});g.H(this,
e);g.RL(a,e.element,1);this.gD=new g.IK(e,250,!0,100);g.H(this,this.gD);g.H(this,this.Vh);g.RL(a,this.Vh.element,1);this.fD=new g.IK(this.Vh,250,!0,100);g.H(this,this.fD);g.H(this,this.tooltip);g.RL(a,this.tooltip.element,4);var f=new JN(a);g.H(this,f);g.RL(a,f.element,5);f.subscribe("show",function(l){b.Gm(f,l)});
this.Xu.push(f);this.Dr=new KN(a,this,f);g.H(this,this.Dr);d.showBackButton&&(this.backButton=new PM(a),g.H(this,this.backButton),this.backButton.xa(this.Vh.element));this.fn||this.Dr.xa(this.Vh.element);this.channelAvatar.xa(this.Vh.element);g.H(this,this.channelAvatar);g.H(this,this.title);this.title.xa(this.Vh.element);g.H(this,this.bh);this.bh.xa(this.Vh.element);this.Fh=new g.vP(a,this);g.H(this,this.Fh);this.Fh.xa(this.bh.element);var h=new g.QN(a,this);g.H(this,h);g.RL(a,h.element,5);h.subscribe("show",
function(l){b.Gm(h,l)});
this.Xu.push(h);this.shareButton=new g.PN(a,this,h);g.H(this,this.shareButton);this.shareButton.xa(this.bh.element);this.eh=new g.uN(a,this);g.H(this,this.eh);this.eh.xa(this.bh.element);d.Wj&&(e=new WN(a),g.H(this,e),g.RL(a,e.element,4));this.fn&&this.Dr.xa(this.bh.element);g.H(this,this.dj);this.dj.xa(this.bh.element);e=new WM(a,this,this.dj);g.H(this,e);e.xa(this.bh.element);this.yh=new GN(a,this);g.H(this,this.yh);g.RL(a,this.yh.element,5);this.yh.subscribe("show",function(){b.Gm(b.yh,b.yh.Ag())});
this.Xu.push(this.yh);this.overflowButton=new FN(a,this,this.yh);g.H(this,this.overflowButton);this.overflowButton.xa(this.bh.element);this.Gg&&g.H(this,this.Gg);"3"===d.controlsType&&(e=new ON(a,this),g.H(this,e),g.RL(a,e.element,8));g.H(this,this.contextMenu);this.contextMenu.subscribe("show",this.vK,this);e=new aL(a,new OM(a));g.H(this,e);g.RL(a,e.element,4);this.ew.Na("focus",this.ZN,this);g.H(this,this.ew);this.dw.Na("focus",this.aO,this);g.H(this,this.dw);(this.Pl=d.ld?null:new g.CN(a,c,this.contextMenu,
this.md,this.lc,this.Ys,function(){return b.Bk()}))&&g.H(this,this.Pl);
this.fn||(this.PJ=new UN(this.api,this),g.H(this,this.PJ),g.RL(a,this.PJ.element,4));this.YJ=new pP(this.api,this);g.H(this,this.YJ);g.RL(a,this.YJ.element,4);this.un.push(this.lc.element);this.N(a,"fullscreentoggled",this.Vl);this.N(a,"offlineslatestatechange",function(){b.api.Tt()&&pM(b.md,128,!1)});
this.N(a,"cardstatechange",function(){b.Xi()});
this.N(a,"resize",this.fQ);this.N(a,"showpromotooltip",this.IQ)};
aqa=function(a){var b=a.api.T(),c=g.V(a.api.rb(),128);return b.l&&c&&!a.api.isFullscreen()};
xP=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==ig(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=xP(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};
bqa=function(a,b,c){var d;if(g.S(a.api.T().experiments,"web_player_nitrate_promo_tooltip")){var e=a.api.getVideoData();if(null===e||void 0===e?0:e.tooltipRenderer){e=e.tooltipRenderer;var f;if(f=!a.xu){if(!(b=!b)){var h,l;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null===(h=e.tooltipDisplayStrategy)||void 0===h?void 0:h.type)&&"dtip-edu-player-iseecaptions"!==(null===(l=e.promoConfig)||void 0===l?void 0:l.promoId)}f=b}f&&(a.xu=new LN(e,a,a.api),g.H(a,a.xu),g.RL(a.api,a.xu.element,8));null===
(d=a.xu)||void 0===d?void 0:d.cz(e,c)}}};
g.yP=function(a){g.aM.call(this,a);this.chrome=null;this.load()};
zP=function(){var a=cqa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=ho.apply(null,[Pda.apply(null,g.ma(b))].concat(g.ma(c)));this.store=ko(a,void 0,b)};
AP=function(a,b,c,d){if(void 0===d){d=a[b]||{};var e=["symbol"===typeof c?c:c+""];c={};for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&0>e.indexOf(f)&&(c[f]=d[f]);if(null!=d&&"function"===typeof Object.getOwnPropertySymbols){var h=0;for(f=Object.getOwnPropertySymbols(d);h<f.length;h++)0>e.indexOf(f[h])&&(c[f[h]]=d[f[h]])}f={};return Object.assign(Object.assign({},a),(f[b]=c,f))}f={};e={};return Object.assign(Object.assign({},a),(e[b]=Object.assign(Object.assign({},a[b]),(f[c]=d,f)),e))};
BP=function(a){this.l=a;this.B=this.i=0;this.u=-1};
CP=function(a){var b=OA(a.l,a.i);++a.i;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=OA(a.l,a.i),++a.i,d*=128,c+=(b&127)*d;return c};
DP=function(a,b){for(a.B=b;a.i+1<=a.l.totalLength;){var c=a.u;0>c&&(c=CP(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.u=c;break}switch(e){case 0:CP(a);break;case 1:a.i+=8;break;case 2:c=CP(a);a.i+=c;break;case 5:a.i+=4}}return!1};
EP=function(a,b,c){c=void 0===c?0:c;return DP(a,b)?CP(a):c};
FP=function(a,b){var c=void 0===c?"":c;if(!DP(a,b))return c;b=CP(a);if(!b)return"";c=MA(a.l,a.i,b);a.i+=b;return g.A.TextDecoder?(new TextDecoder).decode(c):g.Ve(c)};
GP=function(a,b){var c=void 0===c?null:c;if(!DP(a,b))return c;b=CP(a);c=MA(a.l,a.i,b);a.i+=b;return c};
HP=function(){this.i=0;this.u=void 0;this.l=new Uint8Array(4096);this.view=new DataView(this.l.buffer);g.A.TextEncoder&&(this.u=new TextEncoder)};
IP=function(a,b){b=a.i+b;if(!(a.l.length>=b)){for(var c=2*a.l.length;c<b;)c*=2;b=new Uint8Array(c);b.set(a.l);a.l=b;a.view=new DataView(a.l.buffer)}};
JP=function(a,b){if(268435455<b){IP(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.i,c&127|128),c>>=7,a.i+=1;b=Math.floor(b/268435456)}for(IP(a,4);127<b;)a.view.setUint8(a.i,b&127|128),b>>=7,a.i+=1;a.view.setUint8(a.i,b);a.i+=1};
KP=function(a,b,c){JP(a,b<<3|2);b=c.length;JP(a,b);IP(a,b);a.l.set(c,a.i);a.i+=b};
MP=function(a,b,c){c=a.u?a.u.encode(c):new Uint8Array(LP(g.Ue(c)).buffer);KP(a,b,c)};
NP=function(a){return new Uint8Array(a.l.buffer,0,a.i)};
OP=function(a){var b=new BP(new FA([g.$e(decodeURIComponent(a))]));a=FP(b,2);b=EP(b,4);return{j6:b,entityType:dqa[b],entityId:a}};
PP=function(a,b){var c=new HP;MP(c,2,a);a=eqa[b];JP(c,32);JP(c,a);JP(c,40);JP(c,1);c=NP(c);return encodeURIComponent(g.pf(c))};
fqa=function(a){a=a.key||a.id;if(!a)throw Error("Entity key is missing");return a};
gqa=function(a){this.i=a;this.l={}};
QP=function(a,b,c){return vs(a.i,"EntityStore").get(b).then(function(d){if(d){if(c&&d.entityType!==c)throw Error("Incorrect entity type");return d.data}})};
hqa=function(a,b,c){return c?(c=c.map(function(d){return QP(a,d,b)}),Vs.all(c)):vs(a.i,"EntityStore").index("entityType").getAll(IDBKeyRange.only(b)).then(function(d){return d.map(function(e){return e.data})})};
RP=function(a,b,c){function d(){return us(vs(a.i,"EntityStore"),f).then(function(h){iqa(a,h,c);return h})}
var e=fqa(b),f={key:e,entityType:c,data:b};return c?vs(a.i,"EntityStore").get(e).then(function(h){if(h&&c&&h.entityType!==c)throw Error("Incorrect entity type");}).then(d):d()};
jqa=function(a,b){b=b.map(function(c){return RP(a,c,"offlineOrchestrationActionWrapperEntity")});
return Vs.all(b)};
SP=function(a,b){var c=OP(b).entityType;return vs(a.i,"EntityStore").delete(b).then(function(){iqa(a,b,c)})};
iqa=function(a,b,c){var d=a.l[c];d||(d=new Set,a.l[c]=d);d.add(b)};
TP=function(){g.F.apply(this,arguments);this.i=[];if(void 0===Os)throw Error("Datasync ID is missing");if("undefined"===typeof BroadcastChannel)var a=null;else a=new BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+Ps()),a.onmessage=this.l.bind(this);this.channel=a};
UP=function(a,b,c){return g.C(a,function e(){var f,h,l,m,n=this;return g.z(e,function(p){if(1==p.i)return g.w(p,kqa().open(),2);if(3!=p.i)return f=p.l,g.w(p,ts(f,["EntityStore"],b,function(r){h=new gqa(r);return c(h)}),3);
l=p.l;h&&(m=h.l,0<Object.keys(m).length&&(n.channel&&n.channel.postMessage(m),lqa(n,m)));return p.return(l)})})};
VP=function(a,b){a.i.push(b);return function(){var c=a.i.indexOf(b);0<=c&&a.i.splice(c,1)}};
WP=function(a,b,c){return UP(a,"readwrite",function(d){return RP(d,b,c)})};
mqa=function(a,b){return UP(a,"readwrite",function(c){return jqa(c,b)})};
XP=function(a,b,c){return UP(a,"readonly",function(d){return QP(d,b,c)})};
YP=function(a,b,c){return UP(a,"readonly",function(d){return hqa(d,b,c)})};
lqa=function(a,b){a=g.q(a.i);for(var c=a.next();!c.done;c=a.next())c=c.value,c=c(b),nqa&&c&&nqa.push(c)};
oqa=function(){return g.C(this,function b(){var c;return g.z(b,function(d){if(1==d.i)return(c=!g.Qo("enable_web_pes"))?d.Mb(2):g.w(d,Ns(),3);2!=d.i&&(c=!d.l);if(c)return d.return();if(ZP)return d.return(ZP);ZP=new TP;return d.return(ZP)})})};
rqa=function(a){var b=pqa;return g.C(this,function d(){var e;return g.z(d,function(f){if(1==f.i){e=a.mutations;if(!e||0>=e.length)return f.return();if(b){var h=e,l={type:"ENTITY_LOADED"};void 0!==h&&(l.payload=h);b.dispatch(l)}return g.w(f,qqa(e),2)}e.length=0;f.i=0})})};
qqa=function(a){return g.C(this,function c(){var d;return g.z(c,function(e){return 1==e.i?g.w(e,oqa(),2):(d=e.l)?g.w(e,UP(d,"readwrite",function(f){for(var h=[],l=g.q(a),m=l.next();!m.done;m=l.next()){m=m.value;var n;if(n=m.entityKey){n=void 0;var p=null===(n=m.options)||void 0===n?void 0:n.persistenceOption;n="ENTITY_PERSISTENCE_OPTION_PERSIST"===p||"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"===p}n&&(n=Ib(m.payload),"ENTITY_MUTATION_TYPE_REPLACE"===m.type&&h.push(RP(f,m.payload[n],n)),"ENTITY_MUTATION_TYPE_DELETE"===
m.type&&h.push(SP(f,m.entityKey)))}return Vs.all(h)}),0):e.return()})})};
sqa=function(a){return void 0!==a};
$P=function(a){var b,c,d;return 0<(null!==(d=null===(c=null===(b=a.actionMetadata)||void 0===b?void 0:b.retryScheduleIntervalsInSeconds)||void 0===c?void 0:c.length)&&void 0!==d?d:0)};
aQ=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===a.actionType&&!!a.entityKey};
bQ=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"===a.actionType&&!!a.entityKey};
cQ=function(a){this.i=a};
dQ=function(a,b,c){this.status=a;this.l=b;this.i=c};
eQ=function(a,b){this.i=a;this.u=b};
vqa=function(a,b){return g.C(a,function d(){var e,f=this,h;return g.z(d,function(l){switch(l.i){case 1:return e=b.entityKey,ua(l,2),g.w(l,tqa(f,e),4);case 4:return(h=l.l)?g.w(l,uqa(f,h),5):l.return(fQ(b,!1));case 5:return l.return(fQ(b,!0,h.orchestrationActions));case 2:return wa(l),l.return(fQ(b,!1))}})})};
wqa=function(a,b){return g.C(a,function d(){var e,f=this,h,l,m,n;return g.z(d,function(p){switch(p.i){case 1:return e=b.entityKey,g.w(p,XP(f.i,e,"playbackData"),2);case 2:return h=p.l,g.w(p,XP(f.i,PP(OP(b.entityKey).entityId,"offlineVideoPolicy"),"offlineVideoPolicy"),3);case 3:l=p.l;if(!h||!l)return p.return(fQ(b,!1));m={lastPlayerResponseTimestampSeconds:h.playerResponseTimestamp,offlineToken:l.offlineToken};ua(p,4);return g.w(p,tqa(f,e,m),6);case 6:return(n=p.l)?g.w(p,uqa(f,n),7):p.return(fQ(b,
!1));case 7:return p.return(fQ(b,!0,n.orchestrationActions));case 4:return wa(p),p.return(fQ(b,!1))}})})};
tqa=function(a,b,c){return g.C(a,function e(){var f,h=this,l,m;return g.z(e,function(n){f=g.qL();var p=h.u,r={entityKey:b};c&&(r.refreshData=c);l={context:Yma(p),signatureTimestamp:18716,videos:[r]};m=g.gL(xqa);return n.return(g.uJ(f,l,m))})})};
uqa=function(a,b){return g.C(a,function d(){return g.z(d,function(e){return b.frameworkUpdates&&b.frameworkUpdates.entityBatchUpdate?g.w(e,rqa(b.frameworkUpdates.entityBatchUpdate),0):e.return()})})};
fQ=function(a,b,c){return new dQ(b?"OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS":"OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",$P(a),c)};
gQ=function(){cQ.apply(this,arguments)};
zqa=function(a,b){return g.C(a,function d(){var e,f=this,h;return g.z(d,function(l){switch(l.i){case 1:return e=$P(b),g.w(l,XP(f.i,b.entityKey,"transfer"),2);case 2:if(h=l.l)return l.return(new dQ("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));ua(l,3);return g.w(l,yqa(f,b),5);case 5:va(l,4);break;case 3:return wa(l),l.return(new dQ("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 4:return l.return(new dQ("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e))}})})};
Aqa=function(a,b){return g.C(a,function d(){var e,f=this,h;return g.z(d,function(l){switch(l.i){case 1:return e=$P(b),g.w(l,XP(f.i,b.entityKey,"transfer"),2);case 2:h=l.l;if(!h||"TRANSFER_STATE_COMPLETE"!==h.transferState)return l.return(new dQ("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));ua(l,3);return g.w(l,yqa(f,b),5);case 5:va(l,4);break;case 3:return wa(l),l.return(new dQ("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 4:return l.return(new dQ("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",
e))}})})};
yqa=function(a,b){var c;return g.C(a,function e(){var f,h,l=this;return g.z(e,function(m){f=null===(c=b.actionMetadata)||void 0===c?void 0:c.transferEntityActionMetadata;h={key:b.entityKey,transferState:"TRANSFER_STATE_TRANSFER_IN_QUEUE",cotn:ku(),enqueuedTimestampMs:Date.now().toString(),maximumDownloadQuality:null===f||void 0===f?void 0:f.maximumDownloadQuality,preferredAudioTrack:null===f||void 0===f?void 0:f.preferredAudioTrack};return g.w(m,WP(l.i,h,"transfer"),0)})})};
hQ=function(){cQ.apply(this,arguments)};
Dqa=function(a,b){return g.C(a,function d(){var e,f,h,l=this,m;return g.z(d,function(n){switch(n.i){case 1:return e=$P(b),f=OP(b.entityKey),h=f.entityId,ua(n,2),g.w(n,Bqa(l,h),4);case 4:va(n,3);break;case 2:return wa(n),n.return(new dQ("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 3:return m=Cqa("OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",h),n.return(new dQ("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e,[m]))}})})};
Eqa=function(a,b){return g.C(a,function d(){var e,f,h,l=this,m,n;return g.z(d,function(p){switch(p.i){case 1:return e=$P(b),f=OP(b.entityKey),h=f.entityId,g.w(p,XP(l.i,b.entityKey,"ytMainDownloadedVideoEntity"),2);case 2:m=p.l;if(!m)return p.return(new dQ("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));ua(p,3);return g.w(p,Bqa(l,h),5);case 5:va(p,4);break;case 3:return wa(p),p.return(new dQ("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 4:return n=Cqa("OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
h),p.return(new dQ("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e,[n]))}})})};
Gqa=function(a,b){return g.C(a,function d(){var e,f,h,l,m,n=this,p,r,t,u,x,y,E,D;return g.z(d,function(G){switch(G.i){case 1:return e=$P(b),ua(G,2),f=OP(b.entityKey).entityId,h=PP(f,"ytMainVideoEntity"),l=PP(f,"ytMainChannelEntity"),m=PP(f,"transfer"),g.w(G,UP(n.i,"readonly",function(I){var O=QP(I,h,"ytMainVideoEntity"),ha=QP(I,l,"ytMainChannelEntity");I=QP(I,m,"transfer");return Vs.all([O,ha,I])}),4);
case 4:p=G.l;r=g.q(p);t=r.next().value;u=r.next().value;x=r.next().value;if(!t&&!u){G.Mb(5);break}y=t?iQ(t.thumbnail):[];if(!u){E=[];G.Mb(6);break}return g.w(G,Fqa(n,u),7);case 7:E=G.l;case 6:return D=E,g.w(G,RE(y.concat(D),!0),5);case 5:return g.w(G,UP(n.i,"readwrite",function(I){var O=[b.entityKey,h,l,PP(f,"playbackData"),m,PP(f,"offlineVideoPolicy")];(null===x||void 0===x?0:x.offlineVideoStreams)&&O.push.apply(O,g.ma(x.offlineVideoStreams));return Vs.all(O.map(function(ha){return SP(I,ha)}))}),
9);
case 9:va(G,3);break;case 2:return wa(G),G.return(new dQ("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 3:return G.return(new dQ("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e))}})})};
Bqa=function(a,b){return g.C(a,function d(){var e=this,f,h,l,m;return g.z(d,function(n){if(1==n.i)return g.w(n,hna(b),2);if(3!=n.i)return f=n.l,g.w(n,Hqa(e,f),3);h=n.l;l=h.videoEntity;m=h.channelEntity;var p=iQ(l.thumbnail),r=iQ(m.avatar);return g.w(n,SE(p.concat(r),!0),0)})})};
Hqa=function(a,b){var c;return g.C(a,function e(){var f,h,l,m,n=this;return g.z(e,function(p){switch(p.i){case 1:if(!(b&&b.channel&&b.channel.offlineChannelData&&b.videoId))throw Error("Invalid OfflineVideoData");f=null===(c=b.channel)||void 0===c?void 0:c.offlineChannelData;h={id:PP(b.videoId,"ytMainChannelEntity"),channelId:f.channelId,title:f.title,avatar:f.thumbnail};l={id:PP(b.videoId,"ytMainVideoEntity"),videoId:b.videoId,title:b.title,thumbnail:b.thumbnail,localizedStrings:{viewCount:b.shortViewCountText},
lengthSeconds:b.lengthSeconds?Number(b.lengthSeconds):void 0,publishedTimestampMillis:b.publishedTimestamp?(1E3*Number(b.publishedTimestamp)).toString():void 0,formattedDescription:b.description,channelOwner:h.id};m={id:PP(b.videoId,"ytMainDownloadedVideoEntity"),video:l.id,playbackData:PP(b.videoId,"playbackData"),offlineVideoPolicy:PP(b.videoId,"offlineVideoPolicy")};return g.w(p,WP(n.i,h,"ytMainChannelEntity"),2);case 2:return g.w(p,WP(n.i,l,"ytMainVideoEntity"),3);case 3:return g.w(p,WP(n.i,m,
"ytMainDownloadedVideoEntity"),4);case 4:return p.return({videoEntity:l,channelEntity:h,h6:m})}})})};
Cqa=function(a,b){b=PP(b,"playbackData");return{actionType:a,entityKey:b,actionMetadata:{priority:0,retryScheduleIntervalsInSeconds:Iqa}}};
iQ=function(a){if(!a||!a.thumbnails)return[];var b=[];a=g.q(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&b.push(c.url);return b};
Fqa=function(a,b){return g.C(a,function d(){var e=this,f,h,l,m,n,p,r,t,u;return g.z(d,function(x){if(1==x.i)return f=iQ(b.avatar),g.w(x,YP(e.i,"ytMainChannelEntity"),2);h=x.l;l=g.q(h);for(m=l.next();!m.done;m=l.next())if(n=m.value,n.id!==b.id)for(p=g.q(iQ(n.avatar)),r=p.next();!r.done;r=p.next())t=r.value,u=f.indexOf(t),-1!==u&&f.splice(u,1);return x.return(f)})})};
jQ=function(a,b,c,d,e,f,h,l,m,n,p){this.entityType=a;this.actionId=b;this.action=c;this.parentActionId=d;this.rootActionId=void 0===e?b:e;this.childActionIds=f;this.prereqActionId=h;this.postreqActionIds=l;this.hasChildActionFailed=n;this.retryScheduleIndex=0;this.i=p||Date.now();this.retryScheduleIndex=m||0};
kQ=function(a){return{key:PP(a.actionId,"offlineOrchestrationActionWrapperEntity"),actionProto:a.action,parentActionId:a.parentActionId,rootActionId:a.rootActionId,childActionIds:a.childActionIds,prereqActionId:a.prereqActionId,postreqActionIds:a.postreqActionIds,retryScheduleIndex:a.retryScheduleIndex,hasChildActionFailed:a.hasChildActionFailed,enqueueTimeSec:(a.i/1E3).toFixed()}};
Jqa=function(){this.actions=[]};
FQ=function(a,b){g.F.call(this);this.i=a;this.I=b;this.u=new Jqa;this.B=VP(this.i,this.C.bind(this))};
Lqa=function(a,b){return g.C(this,function d(){var e;return g.z(d,function(f){if(1==f.i)return e=new FQ(a,b),g.w(f,Kqa(e),2);e.l?Promise.resolve():PQ(e);return f.return(e)})})};
PQ=function(a){return g.C(a,function c(){var d=this,e,f,h;return g.z(c,function(l){switch(l.i){case 1:if(d.l)throw Error("Already processing an action");if(d.Ha())return l.return();e=d.u.actions.shift();if(void 0===e)return l.return();d.l=e;f=d.I[e.entityType];ua(l,2,3);return g.w(l,f.l(e.action),5);case 5:return h=l.l,g.w(l,Mqa(d,e,h),3);case 3:l.W=[l.u];l.I=0;l.C=0;d.l=void 0;var m=l.W.splice(0)[0];(m=l.u=l.u||m)?m.mH?l.i=l.I||l.C:void 0!=m.Mb&&l.C<m.Mb?(l.i=m.Mb,l.u=null):l.i=l.C:l.i=4;break;case 2:return wa(l),
ua(l,7),g.w(l,Nqa(d,e),9);case 9:va(l,3);break;case 7:wa(l);QQ(d,e);l.Mb(3);break;case 4:return g.w(l,PQ(d),0)}})})};
Mqa=function(a,b,c){return g.C(a,function e(){var f=this,h;return g.z(e,function(l){h=f;return"OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS"===c.status?g.w(l,UP(f.i,"readwrite",function(m){var n=[];if(c.i){var p=c.i.map(function(r){return kQ(h.createAction(r,b))});
n.push(jqa(m,p))}p=kQ(b);n.push(SP(m,p.key));return Vs.all(n)}),0):"OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE"!==c.status?l.Mb(0):c.l?g.w(l,Nqa(f,b),0):l.Mb(0)})})};
QQ=function(a,b){return 3>b.retryScheduleIndex?(a=a.u,a.actions.push.apply(a.actions,g.ma([b])),a.actions.sort(a.i),!0):!1};
Nqa=function(a,b){return g.C(a,function d(){var e=this,f;return g.z(d,function(h){return 1==h.i?(b.retryScheduleIndex++,f=QQ(e,b),g.w(h,Oqa(e,[b]),2)):h.return(f)})})};
Kqa=function(a){return g.C(a,function c(){var d=this,e;return g.z(c,function(f){if(1==f.i)return g.w(f,YP(d.i,"offlineOrchestrationActionWrapperEntity"),2);e=f.l;Pqa(d,e);f.i=0})})};
Pqa=function(a,b){0!==b.length&&b.forEach(function(c){if(!c.key)throw Error("Entity key is required.");if(!c.actionProto)throw Error("OfflineOrchestrationAction is required.");var d=OP(c.key),e=OP(c.actionProto.entityKey);QQ(a,new jQ(e.entityType,d.entityId,c.actionProto,c.parentActionId,c.rootActionId,c.childActionIds,c.prereqActionId,c.postreqActionIds,c.retryScheduleIndex,c.hasChildActionFailed,1E3*Number(c.enqueueTimeSec)))})};
Qqa=function(a,b){return g.C(a,function d(){var e=this,f;return g.z(d,function(h){if(1==h.i)return g.w(h,YP(e.i,"offlineOrchestrationActionWrapperEntity",b),2);f=h.l;return h.return(f.filter(sqa))})})};
Oqa=function(a,b){if(0===b.length)return Promise.resolve([]);b=b.map(function(c){return kQ(c)});
return mqa(a.i,b)};
SQ=function(a,b,c,d){this.api=a;this.player=b;this.i=d;this.player.subscribe("localmediachange",this.B,this);this.u=c;Rqa(this);this.Z()};
Sqa=function(a){return g.C(this,function c(){return g.z(c,function(d){return d.return(qF(a))})})};
Rqa=function(a){jF().then(function(){var b=$E(2);b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a;d=d.player.getVideoData().videoId===c?d.player:null;a.Z();d||aF(c,3)}a.Z()})};
Tqa=function(){switch(g.Wq.getInstance().get("lmqf")){case "HD_1080":return"hd1080";case "HD":return"hd720";case "SD":return"large";case "LD":return"tiny";default:return"hd720"}};
TQ=function(a){g.F.call(this);this.i=a;this.l=VP(this.i,this.u.bind(this))};
Vqa=function(a){var b=ZE();return Uqa(a,b)};
Uqa=function(a,b){return g.C(a,function d(){var e,f=this,h,l,m,n,p,r;return g.z(d,function(t){switch(t.i){case 1:if(0===b.length)return t.return([]);e=b.map(function(u){return PP(u,"transfer")});
return g.w(t,YP(f.i,"transfer",e),2);case 2:h=t.l;l=h.filter(sqa).map(function(u){return OP(u.key).entityId});
m=b.filter(function(u){return-1===l.indexOf(u)});
if(0===m.length)return t.return([]);n=g.q(m);p=n.next();case 3:if(p.done){t.Mb(5);break}r=p.value;return g.w(t,Sqa(r),4);case 4:p=n.next();t.Mb(3);break;case 5:return t.return(m)}})})};
UQ=function(a,b,c,d){g.F.call(this);this.l=a;this.u=VP(this.l,this.C.bind(this));this.J=new SQ(b,c,d,this);this.B=new TQ(this.l)};
VQ=function(a){return g.C(a,function c(){var d=this,e;return g.z(c,function(f){if(1==f.i){if(d.i)throw Error("Already downloading a video");return g.w(f,Wqa(d),2)}return(e=f.l)?g.w(f,Xqa(d,e),0):f.Mb(0)})})};
Xqa=function(a,b){return g.C(a,function d(){var e=this,f;return g.z(d,function(h){switch(h.i){case 1:return e.i=b,f=null,ua(h,2),g.w(h,Yqa(e,b),4);case 4:f=h.l;e.I=f;va(h,3);break;case 2:return wa(h),WQ(e),h.return();case 3:var l=e.J,m=f,n=b.cotn;2===l.l?l.Z():(aF(m.videoDetails.videoId,2),l.l=2,m=new g.$F(l.player.T(),{cotn:n,raw_player_response:m,download_media:!0,start:Infinity,disable_watch_next:!0}),l.player.Oi(m,l.u),m=Tqa(),g.S(l.player.T().experiments,"hoffle_lmqf_killswitch")||(m=gy(m,m,
!0,"m"),zL(l.player,m)),l.Z(),AL(l.player,!1));h.i=0}})})};
Wqa=function(a){return g.C(a,function c(){var d=this,e,f;return g.z(c,function(h){if(1==h.i)return g.w(h,YP(d.l,"transfer"),2);e=h.l;f=e.filter(Zqa).sort($qa);return 0===f.length?h.return():h.return(f[0])})})};
ara=function(a){g.C(a,function c(){var d=this;return g.z(c,function(e){return g.w(e,XQ(d,"TRANSFER_STATE_TRANSFERRING"),0)})})};
bra=function(a){g.C(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i)return g.w(e,XQ(d,"TRANSFER_STATE_COMPLETE"),2);WQ(d);VQ(d);e.i=0})})};
cra=function(a){g.C(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i)return g.w(e,XQ(d,"TRANSFER_STATE_FAILED","TRANSFER_FAILURE_REASON_INTERNAL"),2);WQ(d);VQ(d);e.i=0})})};
XQ=function(a,b,c){return g.C(a,function e(){var f=this;return g.z(e,function(h){f.i.transferState=b;f.i.failureReason=c;return g.w(h,dra(f),0)})})};
dra=function(a){return g.C(a,function c(){var d=this;return g.z(c,function(e){return d.i?g.w(e,WP(d.l,d.i,"transfer"),0):e.Mb(0)})})};
WQ=function(a){a.i=void 0;a.I=void 0};
Yqa=function(a,b){return g.C(a,function d(){var e,f,h,l=this,m;return g.z(d,function(n){if(1==n.i)return e=OP(b.key),f=e.entityId,h=PP(f,"playbackData"),g.w(n,XP(l.l,h,"playbackData"),2);m=n.l;if(null===m||void 0===m?0:m.playerResponseJson)return n.return(JSON.parse(m.playerResponseJson));throw Error("No PlayerResponse found");})})};
Zqa=function(a){return void 0!==YQ[a.transferState]};
$qa=function(a,b){var c=YQ[a.transferState],d=YQ[b.transferState];return c!==d?c-d:Number(a.enqueuedTimestampMs)-Number(b.enqueuedTimestampMs)};
era=function(a,b,c,d){this.I=a;this.api=b;this.player=c;this.J=d;this.B=this.init()};
fra=function(a,b){return g.C(a,function d(){var e=this;return g.z(d,function(f){return f.return(e.yu(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"))})})};
gra=function(a,b){return g.C(a,function d(){var e=this;return g.z(d,function(f){return f.return(e.yu(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})})};
hra=function(a,b){return g.C(a,function d(){var e=this,f,h;return g.z(d,function(l){if(1==l.i){if(!e.i)return l.return(Promise.reject());f=PP(b,"playbackData");return g.w(l,XP(e.i,f,"playbackData"),2)}h=l.l;return(null===h||void 0===h?0:h.playerResponseJson)?l.return(JSON.parse(h.playerResponseJson)):l.return(null)})})};
ZQ=function(a){return g.C(a,function c(){var d=this,e,f;return g.z(c,function(h){if(1==h.i)return g.w(h,d.isReady(),2);if(3!=h.i)return d.i?g.w(h,YP(d.i,"ytMainDownloadedVideoEntity"),3):h.return([]);e=h.l;f=e.map(function(l){return OP(l.id).entityId});
return h.return(f)})})};
ira=function(a,b){b=void 0===b?!1:b;return g.C(a,function d(){var e=this,f,h,l,m,n,p,r;return g.z(d,function(t){if(1==t.i)return b?t.Mb(2):g.w(t,e.isReady(),2);if(4!=t.i){if(!e.i)return t.return();f=Date.now()/1E3;return g.w(t,YP(e.i,"offlineVideoPolicy"),4)}h=t.l;l=[];m=g.q(h);for(n=m.next();!n.done;n=m.next())p=n.value,Number(p.lastUpdatedTimestampSeconds)+43200<=f&&(r=OP(p.key).entityId,l.push(r));return l.length?g.w(t,gra(e,l),0):t.Mb(0)})})};
eR=function(a){this.counter=[0,0,0,0];this.l=new Uint8Array(16);this.i=16;if(!jra){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);$Q=new Uint8Array(256);aR=[];bR=[];cR=[];dR=[];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;$Q[f]=e;b=e<<1^(e>>7&&283);var h=b^e;aR.push(b<<24|e<<16|e<<8|h);bR.push(h<<24|aR[f]>>>8);cR.push(e<<24|bR[f]>>>8);dR.push(e<<24|cR[f]>>>8)}jra=!0}e=[];for(c=0;4>c;c++)e.push(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=($Q[a>>16&255]^d)<<24|$Q[a>>8&255]<<16|$Q[a&255]<<8|$Q[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.key=e};
kra=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.i=16};
lra=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(h=4;40>h;){var l=aR[c>>>24]^bR[d>>16&255]^cR[e>>8&255]^dR[f&255]^b[h++];var m=aR[d>>>24]^bR[e>>16&255]^cR[f>>8&255]^dR[c&255]^b[h++];var n=aR[e>>>24]^bR[f>>16&255]^cR[c>>8&255]^dR[d&255]^b[h++];f=aR[f>>>24]^bR[c>>16&255]^cR[d>>8&255]^dR[e&255]^b[h++];c=l;d=m;e=n}a=a.l;c=[c,d,e,f];for(d=0;16>d;)a[d++]=$Q[c[0]>>>24]^b[h]>>>24,a[d++]=$Q[c[1]>>
16&255]^b[h]>>16&255,a[d++]=$Q[c[2]>>8&255]^b[h]>>8&255,a[d++]=$Q[c[3]&255]^b[h++]&255,c.push(c.shift())};
fR=function(a){this.C=new Uint8Array(64);this.u=new Uint8Array(64);this.B=0;this.I=new Uint8Array(64);this.l=0;this.C.set(a);this.u.set(a);for(a=0;64>a;a++)this.C[a]^=92,this.u[a]^=54;this.reset()};
nra=function(a,b,c){for(var d=[],e=0;16>e;e++)d.push(b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3]),c+=4;for(b=16;64>b;b++)c=d[b-7]+d[b-16],e=d[b-2],c+=(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10,e=d[b-15],c+=(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3,d.push(c);b=a.i[0];c=a.i[1];e=a.i[2];for(var f=a.i[3],h=a.i[4],l=a.i[5],m=a.i[6],n=a.i[7],p,r,t=0;64>t;t++)p=n+mra[t]+d[t]+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^~h&m),r=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&c^b&e^c&e),n=m,m=l,l=h,h=f+p,f=e,e=c,c=b,b=
p+r;a.i[0]=b+a.i[0]|0;a.i[1]=c+a.i[1]|0;a.i[2]=e+a.i[2]|0;a.i[3]=f+a.i[3]|0;a.i[4]=h+a.i[4]|0;a.i[5]=l+a.i[5]|0;a.i[6]=m+a.i[6]|0;a.i[7]=n+a.i[7]|0};
pra=function(a){var b=new Uint8Array(32),c=64-a.l;55<a.l&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.B,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.i[c]>>>24,b[4*c+1]=a.i[c]>>>16&255,b[4*c+2]=a.i[c]>>>8&255,b[4*c+3]=a.i[c]&255;ora(a);return b};
ora=function(a){a.i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.B=0;a.l=0};
qra=function(a,b,c){return g.C(this,function e(){var f,h,l,m,n,p,r,t;return g.z(e,function(u){switch(u.i){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){u.Mb(2);break}h=window.crypto.subtle;l={name:"HMAC",hash:{name:"SHA-256"}};m=["sign"];n=new Uint8Array(b.length+c.length);n.set(b);n.set(c,b.length);ua(u,3);return g.w(u,h.importKey("raw",a,l,!1,m),5);case 5:return p=u.l,g.w(u,h.sign(l,p,n),6);case 6:r=u.l;f=new Uint8Array(r);va(u,2);break;case 3:wa(u);case 2:if(!f){t=
new fR(a);t.update(b);t.update(c);var x=pra(t);t.update(t.C);t.update(x);x=pra(t);t.reset();f=x}return u.return(f)}})})};
sra=function(a,b,c){return g.C(this,function e(){var f,h,l,m,n,p,r;return g.z(e,function(t){switch(t.i){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){t.Mb(2);break}h=window.crypto.subtle;l={name:"AES-CTR",counter:c,length:128};ua(t,3);return g.w(t,rra(a),5);case 5:return m=t.l,n=gR.Ou("oan2"),g.w(t,h.encrypt(l,m,b),6);case 6:p=t.l;gR.nt(n,Math.ceil(b.byteLength/16));f=new Uint8Array(p);va(t,2);break;case 3:wa(t);case 2:return f||(r=new eR(a),kra(r,c),f=r.encrypt(b)),
t.return(f)}})})};
rra=function(a){return window.crypto.subtle.importKey("raw",a,{name:"AES-CTR"},!1,["encrypt"])};
hR=function(a){var b=this,c=new eR(a);return function(d,e){return g.C(b,function h(){return g.z(h,function(l){kra(c,e);return l.return(new Uint8Array(c.encrypt(d)))})})}};
tra=function(){for(var a=iR.length;4>a;a++){var b=g.De("VIDEO");b.load();iR.push(new g.oM(b))}};
ura=function(){this.l=200;this.i=12};
vra=function(a){var b=new ura;b.l=g.T(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.i=g.T(a.experiments,"html5_gapless_max_played_ranges");return b};
g.jR=function(a,b,c,d){d=void 0===d?!1:d;UI.call(this);this.i=a;this.start=b;this.end=c;this.B=d};
wra=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";c=f.u;if(b.Gl()>d/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.i&&((b=b.Dd())&&b.isView()&&(b=b.i),b&&b.Wo().length>a.i&&g.IG(e)))return"played-ranges";if(!e.u)return null;if(!e.u.i||!c.i)return"non-dash";if(e.u.videoInfos[0].containerType!==c.videoInfos[0].containerType)return"container";if(g.IG(f)&&g.IG(e))return"content-protection";a=c.i[0].audio;
e=e.u.i[0].audio;return a.sampleRate===e.sampleRate||g.wB?(a.i||2)!==(e.i||2)?"channel-count":null:"sample-rate"};
kR=function(){var a=this;this.i=this.l=iaa;this.promise=new jm(function(b,c){a.l=b;a.i=c})};
lR=function(a,b,c,d){g.F.call(this);var e=this;this.policy=a;this.i=b;this.l=c;this.B=this.u=null;this.I=-1;this.J=!1;this.C=new kR;this.Ui=d-1E3*b.Lc();this.C.then(void 0,function(){});
this.timeout=new g.J(function(){e.Qe("timeout")},1E4);
g.H(this,this.timeout);this.L=isFinite(d);this.status={status:0,error:null};this.Z()};
Bra=function(a){return g.C(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,u;return g.z(c,function(x){if(1==x.i){e=d;if(d.Ha())return x.return(Promise.reject(Error(d.status.error||"disposed")));d.Z();d.timeout.start();f=g.mR.Ou("gtfta");return g.w(x,d.C,2)}g.mR.nt(f);h=d.i.Dd();if(h.Jk())return d.Qe("ended_in_finishTransition"),x.return(Promise.reject(Error(d.status.error||"")));if(!d.B||!QB(d.B))return d.Qe("next_mse_closed"),x.return(Promise.reject(Error(d.status.error||"")));if(d.l.mediaSource!==d.B)return d.Qe("next_mse_mismatch"),
x.return(Promise.reject(Error(d.status.error||"")));l=xra(d);m=l.TH;n=l.bG;p=l.SH;d.i.Xg(!1,!0);r=yra(h,m,p,!d.l.getVideoData().isAd());nR(d.l,r);d.L&&(d.l.seekTo(d.l.getCurrentTime()+.001,{Nt:!0,eD:3}),r.play()||Kt());t=h.Eb();t.cpn=d.i.getVideoData().clientPlaybackNonce;t.st=""+m;t.et=""+p;d.l.Ua("gapless",g.KB(t));d.i.Ua("gaplessTo",d.l.getVideoData().clientPlaybackNonce);u=d.i.getPlayerType()===d.l.getPlayerType();zra(d.i,n,!1,u,d.l.getVideoData().clientPlaybackNonce);zra(d.l,d.l.getCurrentTime(),
!0,u,d.i.getVideoData().clientPlaybackNonce);g.em(function(){!e.l.getVideoData().Ya&&g.eJ(e.l.getPlayerState())&&Ara(e.l)});
oR(d,6);d.dispose();return x.return(Promise.resolve())})})};
Era=function(a){if(a.l.getVideoData().u){pR(a.l,a.B);oR(a,3);Cra(a);var b=Dra(a),c=b.OJ;b=b.iT;c.subscribe("updateend",a.mq,a);b.subscribe("updateend",a.mq,a);a.mq(c);a.mq(b)}};
Cra=function(a){a.i.unsubscribe("internalvideodatachange",a.Ao,a);a.l.unsubscribe("internalvideodatachange",a.Ao,a);a.i.unsubscribe("mediasourceattached",a.Ao,a);a.l.unsubscribe("statechange",a.wc,a)};
yra=function(a,b,c,d){a=a.isView()?a.i:a;return new g.jR(a,b,c,d)};
oR=function(a,b){a.Z();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.C.resolve(void 0))};
xra=function(a){var b=a.i.Dd();b=b.isView()?b.start:0;var c=a.i.getVideoData().isLivePlayback?Infinity:qR(a.i,!0);c=Math.min(a.Ui/1E3,c)+b;var d=a.L?100:0;a=c-a.l.Gl()+d;return{JN:b,TH:a,bG:c,SH:Infinity}};
Dra=function(a){return{OJ:a.u.i.qd,iT:a.u.l.qd}};
rR=function(a){g.F.call(this);var b=this;this.api=a;this.C=this.i=this.l=null;this.J=!1;this.B=null;this.L=vra(this.api.T());this.u=null;this.I=function(){g.em(function(){Fra(b)})}};
Gra=function(a,b,c,d){d=void 0===d?0:d;a.Z();a.jr()||sR(a);a.B=new kR;a.l=b;var e=c,f=a.api.Ic(),h=f.getVideoData().isLivePlayback?Infinity:1E3*qR(f,!0);e>h&&(e=h-a.L.l,a.J=!0);f.getCurrentTime()>=e/1E3?a.I():(a.i=f,f=e,e=a.i,a.api.addEventListener(g.tw("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.C=new g.pw(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.C));f=d/=1E3;e=b.getVideoData().i;if(d&&e&&a.i){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/
1E3,qR(a.i,!0)),l=Math.max(0,f-a.i.getCurrentTime()),h=Math.min(d,qR(b)+l));f=Kga(e,h)||d;f!==d&&a.l.Ua("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.l;if(e=a.api.Ic())d.Kc=e;d.getVideoData().Jc=!0;d.getVideoData().Ra=!0;AL(d,!0);e="";a.i&&(e=g.tR(a.i.C.provider),f=a.i.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.Ua("queued",e);0!==b&&d.seekTo(b+.01,{Nt:!0,eD:3});a.u=new lR(a.L,a.api.Ic(),a.l,c);c=a.u;c.Z();Infinity!==c.status.status&&(oR(c,1),c.i.subscribe("internalvideodatachange",
c.Ao,c),c.l.subscribe("internalvideodatachange",c.Ao,c),c.i.subscribe("mediasourceattached",c.Ao,c),c.l.subscribe("statechange",c.wc,c),c.i.subscribe("newelementrequired",c.zI,c),c.Ao());return a.B};
Fra=function(a){g.C(a,function c(){var d=this,e,f,h,l;return g.z(c,function(m){switch(m.i){case 1:e=d;if(d.Ha())return m.return();d.Z();if(!d.B||!d.l)return d.Z(),m.return();d.J&&uR(d.api.Ic(),!0,!1);f=null;if(!d.u){m.Mb(2);break}ua(m,3);return g.w(m,Bra(d.u),5);case 5:va(m,2);break;case 3:f=h=wa(m);case 2:return d.api.Sv(d.l),g.mR.qC("vqsp",function(){e.api.Gj(e.l.getPlayerType())}),g.mR.qC("vqpv",function(){e.api.playVideo()}),f&&Hra(d.l,f.message),l=d.B,sR(d),m.return(l.resolve(void 0))}})})};
sR=function(a){if(a.i){var b=a.i;a.api.removeEventListener(g.tw("vqueued"),a.I);b.removeCueRange(a.C);a.i=null;a.C=null}a.u&&(a.u.isFinished()||(b=a.u,Infinity!==b.status.status&&b.Qe("Canceled")),a.u=null);a.B=null;a.l=null;a.J=!1};
Ira=function(){var a=Vo();return!(!a||"visible"===a)};
Kra=function(a){var b=Jra();b&&document.addEventListener(b,a,!1)};
Lra=function(a){var b=Jra();b&&document.removeEventListener(b,a,!1)};
Jra=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Uo+"VisibilityState"])return"";a=Uo+"visibilitychange"}return a};
vR=function(){g.P.call(this);var a=this;this.fullscreen=0;this.l=this.pictureInPicture=this.i=this.u=this.inline=!1;this.B=function(){a.Xe()};
Kra(this.B);this.C=this.getVisibilityState(this.Zf(),this.isFullscreen(),this.jf(),this.isInline(),this.ir(),this.gr())};
Mra=function(a){this.end=this.start=a};
yR=function(a,b,c){g.F.call(this);var d=this;this.api=a;this.B=b;this.i=c;this.Sa=new Map;this.I=new Map;this.C=[];this.u=[];this.Ga=NaN;this.va=this.ra=null;this.Da=new g.J(function(){wR(d,d.Ga)});
this.events=new g.TL(this);this.isLiveNow=!0;this.Ya=g.T(this.B.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.J=new g.J(function(){d.L=!0;d.i.Ua("sdai","aftimeout."+d.Ya.toString());xR(d,!1)},this.Ya);
this.L=!1;this.Ma=new Map;this.Aa=[];this.X=null;this.Y=[];this.Xa=[];this.l=void 0;this.Ra=0;this.Ca=!0;this.W=!1;this.i.getPlayerType();Nra(this.i,this);g.H(this,this.Da);g.H(this,this.events);g.H(this,this.J);this.events.N(this.api,g.tw("serverstitchedcuerange"),this.ge);this.events.N(this.api,g.uw("serverstitchedcuerange"),this.ag)};
Qra=function(a,b,c,d,e,f,h){var l=Ora(a,e,e+d);a.L&&a.i.Ua("sdai","adaftto");var m=a.i;f=void 0===f?e+d:f;if(e>f)return a.Gd("Invalid playback enterTimeMs="+e+" is greater than parentReturnTimeMs="+f),"";var n=1E3*m.fd();if(e<n)return a.Gd("Invalid playback enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n),"";m=1E3*m.getDuration();if(f>m)return a.Gd("Invalid playback parentReturnTimeMs="+f+" is greater than parentDurationMs="+m),"";m=null;n=g.q(a.u);for(var p=n.next();!p.done;p=n.next()){p=
p.value;if(e>=p.Cc&&e<p.zd||f<=p.zd&&f>p.Cc)return a.Gd("Overlapping child playbacks not allowed. New playback {video_id="+(b.video_id+" enterTimeMs="+e+" parentReturnTimeMs="+f+"} overlaps existing ChildPlayback "+zR(p))),"";if(f===p.Cc)return a.Gd("Neighboring child playbacks must be added sequentially. New playback {video_id="+(b.video_id+" enterTimeMs="+e+" parentReturnTimeMs="+f+"} added after existing ChildPlayback "+zR(p))),"";e===p.zd&&(m=p)}if(l&&m)for(n=g.q(a.Y.entries()),p=n.next();!p.done;p=
n.next()){p=g.q(p.value);var r=p.next().value;if(p.next().value.identifier===l.identifier){a.Y.splice(r,1);break}}else if(l&&g.S(a.B.experiments,"web_player_ss_timeout_skip_ads"))return"";l="childplayback_"+Pra++;h=h||b.raw_player_response;h||g.S(a.B.experiments,"web_player_parse_ad_response_killswitch")||(n=b.player_response)&&(h=JSON.parse(n));b.cpn||(b.cpn=ku());n=b.cpn;b=new g.$F(a.B,b);b.cd=l;c={cd:l,playerType:c,durationMs:d,Cc:e,zd:f,playerResponse:h,cpn:n,videoData:b};a.u=a.u.concat(c).sort(function(t,
u){return t.Cc-u.Cc});
m?c.uo=m.uo:c.uo=c.cpn;a.J.isActive()&&(a.L=!1,a.J.stop(),xR(a,!0));a.Z();return l};
Rra=function(a,b){return new g.pw(a,b,{namespace:"serverstitchedcuerange",priority:7})};
Sra=function(a,b,c){var d=a.W,e={cpn:a.i.getVideoData().clientPlaybackNonce,durationMs:0,Cc:0,playerType:1,zd:0,videoData:a.i.getVideoData()};if(b.isAd&&c.isAd){e=a.u.find(function(h){return h.cpn===b.adCpn});
var f=a.u.find(function(h){return h.cpn===c.adCpn});
f&&e&&(a.api.V("serverstitchedvideochange",e.cd),AR(a.i,f,e,c.dm,b.dm,d))}else!b.isAd&&c.isAd?(a.api.V("serverstitchedvideochange"),f=c.ue,a.Ra=f.end-f.start,(f=a.u.find(function(h){return h.cpn===c.adCpn}))&&AR(a.i,f,e,c.dm,b.dm,d)):b.isAd&&!c.isAd&&(f=a.u.find(function(h){return h.cpn===b.adCpn}))&&(a.api.V("serverstitchedvideochange",f.cd),a.Ra=0,AR(a.i,e,f,c.dm,b.dm,d))};
BR=function(a,b,c){c=void 0===c?0:c;var d=0;a=g.q(a.u);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.Cc/1E3+d,h=f+e.durationMs/1E3;if(f>b+c)break;if(h>b)return{yl:e,rp:b-d};d=h-e.zd/1E3}return{yl:void 0,rp:b-d}};
CR=function(a,b){for(var c={},d=g.q(a.I),e=d.next();!e.done;c={By:c.By},e=d.next()){e=g.q(e.value);var f=e.next().value;c.By=e.next().value;if(f.start<=b&&f.end>=b)return a.u.find(function(h){return function(l){return l.cpn===h.By}}(c))}};
wR=function(a,b){var c=a.va||a.api.Ic().getPlayerState();DR(a,!0);b=BR(a,b).rp;a.Z();a.Z();a.i.seekTo(b);a=a.api.Ic();b=a.getPlayerState();g.eJ(c)&&!g.eJ(b)?a.playVideo():g.V(c,4)&&!g.V(b,4)&&a.pauseVideo()};
DR=function(a,b){a.Ga=NaN;a.Da.stop();a.ra&&b&&ER(a.ra);a.va=null;a.ra=null};
FR=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.Z();for(var d=b,e=c,f=g.q(a.Sa),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.Ui>=d&&l.target&&l.target.zd<=e&&(a.i.removeCueRange(h),a.Sa.delete(h))}d=b;e=c;f=[];h=g.q(a.u);for(l=h.next();!l.done;l=h.next())l=l.value,(l.Cc<d||l.zd>e)&&f.push(l);a.u=f;d=b;e=c;f=g.q(a.I.keys());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.i.removeCueRange(h),a.I.delete(h));d=BR(a,b/1E3);b=
d.yl;d=d.rp;b&&(d=1E3*d-b.Cc,Tra(a,b,d,b.Cc+d));(b=BR(a,c/1E3).yl)&&a.Gd("Invalid clearEndTimeMs="+c+" that falls during "+zR(b)+".Child playbacks can only have duration updated not their start.")};
Tra=function(a,b,c,d){a.Z();b.durationMs=c;b.zd=d;c=null;d=g.q(a.I);for(var e=d.next();!e.done;e=d.next()){e=g.q(e.value);var f=e.next().value;e.next().value===b.cpn&&(c=f)}if(c){a=g.q(a.C);for(d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Cc+b.durationMs:d.end===c.start&&(d.end=b.Cc);c.start=b.Cc;c.end=b.Cc+b.durationMs}};
zR=function(a){var b;return"playback={timelinePlaybackId="+a.cd+" video_id="+(null===(b=a.videoData)||void 0===b?void 0:b.videoId)+" durationMs="+a.durationMs+" enterTimeMs="+a.Cc+" parentReturnTimeMs="+a.zd+"}"};
Ura=function(a,b,c){c=a.Ma.get(c);c||(c=0,a.B.ea("web_player_ss_media_time_offset")&&(c=0===a.i.getStreamTimeOffset()?a.i.Lc():a.i.getStreamTimeOffset()),c=BR(a,b+c,1).yl);return c};
GR=function(a,b,c,d){if(d)for(d=0;d<a.C.length;){var e=a.C[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;Vra(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.i.removeCueRange(e);a.C.splice(d,1);continue}d++}else Vra(a,b,c)};
Vra=function(a,b,c){b=Rra(b,c);a.i.addCueRange(b);g.yb(a.C,b,function(e,f){return e.start-f.start});
for(b=0;b<a.C.length;){if(0<b){c=a.C[b];var d=a.C[b-1];if(Math.round(d.end/1E3)>=Math.round(c.start/1E3)){d.end=c.end;a.i.removeCueRange(c);a.C.splice(b,1);continue}}b++}};
Wra=function(a,b){for(var c=g.q(a.Aa),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.Aa.push(new Mra(b))};
Xra=function(a,b){a=g.q(a.Aa);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
Yra=function(a,b){var c=[];a=g.q(a.u);for(var d=a.next();!d.done;d=a.next())d=d.value,d.uo===b&&d.cpn&&c.push(d.cpn);return c};
Ora=function(a,b,c){if(a.Y.length)for(var d={},e=g.q(a.Y),f=e.next();!f.done;d={On:d.On},f=e.next()){d.On=f.value;f=1E3*d.On.startSecs;var h=1E3*d.On.durationSecs+f;if(b>f&&b<h||c>f&&c<h)return Sh(a.Xa,function(l){return function(m){return m.identifier===l.On.identifier}}(d))||(a.i.Ua("sdai","adskip_"+b),a.Xa.push(d.On)),d.On}};
xR=function(a,b){g.S(a.B.experiments,"html5_high_res_logging")&&a.i.Ua("sdai","adf.0");a.L&&a.X&&a.Y.push(a.X);a.X=null;a=a.i;if(a.l){a=a.l;var c=a.u,d=a.currentTime;HR(c,"sdai","adfetchdone_to"+b);b&&!isNaN(c.C)&&Zra(c,d,c.C,c.B);c.l=4;g.cn(a.W)}};
IR=function(a,b,c){g.F.call(this);var d=this;this.api=a;this.C=b;this.l=c;this.I=new Map;this.i=[];this.u=this.L=null;this.X=NaN;this.J=this.B=null;this.W=new g.J(function(){$ra(d,d.X)});
this.Y=[];this.ra=new g.J(function(){var e=d.Y.pop();if(e){var f=e.cd,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.Y.length&&g.cn(d.ra,4500))}});
this.events=new g.TL(this);c.getPlayerType();g.H(this,this.W);g.H(this,this.ra);g.H(this,this.events);this.events.N(this.api,g.tw("childplayback"),this.ge);this.events.N(this.api,"onQueuedVideoLoaded",this.sR);this.events.N(this.api,"presentingplayerstatechange",this.rh)};
dsa=function(a,b,c,d,e,f){var h=a.l;f=void 0===f?e+d:f;if(e>f)return a.Gd("e.enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3)),"";var l=1E3*h.fd();if(e<l)return a.Gd("e.enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+l),"";l=1E3*h.getDuration();if(f>l)return h="e.returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+l+". And timestampOffset in seconds is "+h.Lc(),a.Gd(h),"";l=null;for(var m=g.q(a.i),
n=m.next();!n.done;n=m.next()){n=n.value;if(e>=n.Cc&&e<n.zd)return a.Gd("e.overlappingEnter"),a.Z(),"";if(f<=n.zd&&f>n.Cc)return a.Gd("e.overlappingReturn"),a.Z(),"";if(f===n.Cc)return a.Gd("e.outOfOrder"),a.Z(),"";e===n.zd&&(l=n)}m="childplayback_"+asa++;n={ue:JR(d,!0),Ui:Infinity,target:null};var p={cd:m,playerVars:b,playerType:c,durationMs:d,Cc:e,zd:f,Km:n};a.i=a.i.concat(p).sort(function(u,x){return u.Cc-x.Cc});
l?bsa(a,l,{ue:JR(l.durationMs,!0),Ui:a.C.ea("timeline_manager_transition_killswitch")?Infinity:l.Km.Ui,target:p}):(b={ue:JR(e,!1),Ui:e,target:p},a.I.set(b.ue,b),a.Z(),h.addCueRange(b.ue));b=g.S(a.C.experiments,"html5_gapless_preloading");if(a.l===a.api.Ic()&&(h=1E3*h.getCurrentTime(),h>=p.Cc&&h<p.zd)){var r=a.api.Ic().getPlayerState(),t=h-p.Cc;Yl(function(){csa(a,p,t/1E3,r)});
b=!1}b&&(a.Y.unshift(p),g.cn(a.ra,0));a.Z();return m};
JR=function(a,b){return new g.pw(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
esa=function(a,b,c,d){a.Z();a.u=d;a.api.Zv(a.l,c,b)};
fsa=function(a,b,c,d){a.Z();a.u=d;d=b.cd;var e=b.playerVars,f=b.playerType;a.L=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
bsa=function(a,b,c){var d=b.Km;b.Km=c;KR(a,b)&&(c=a.api.Ic(),d.ue===a.u&&LR(a),a.Z(),c.removeCueRange(d.ue),b=b.Km,a.Z(),c.addCueRange(b.ue))};
LR=function(a){a.L=null;a.u=null;a.api.jr()||a.api.clearQueue()};
gsa=function(a,b){KR(a,b)||a.Gd("e.childPlaybackIsNotPresenting");return b.zd===b.Cc+b.durationMs?(a=a.api.Ic(),b.Cc+1E3*a.getCurrentTime()):b.zd};
MR=function(a,b){var c=0;a=g.q(a.i);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Cc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{yl:d,rp:b-e};c=f-d.zd/1E3}return{yl:null,rp:b-c}};
$ra=function(a,b){var c=a.J||a.api.Ic().getPlayerState();NR(a,!0);b=g.S(a.C.experiments,"html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:OR(a.l);var d=MR(a,b);b=d.yl;d=d.rp;var e=b&&!KR(a,b)||!b&&a.l!==a.api.Ic(),f=1E3*d;f=a.u&&a.u.start<=f&&f<=a.u.end;!e&&f||LR(a);a.Z();b?(a.Z(),csa(a,b,d,c)):(a.Z(),PR(a,d,c))};
PR=function(a,b,c){var d=a.l,e=a.api.Ic();d!==e&&a.api.Gj(d.getPlayerType());d.seekTo(b);hsa(a,c)};
csa=function(a,b,c,d){var e=KR(a,b);if(!e){a.api.Gj(b.playerType);b.playerVars.prefer_gapless=!0;var f=new g.$F(a.C,b.playerVars);f.cd=b.cd;a.api.jn(f,b.playerType)}f=a.api.Ic();e||(b=b.Km,a.Z(),f.addCueRange(b.ue));f.seekTo(c);hsa(a,d)};
hsa=function(a,b){a=a.api.Ic();var c=a.getPlayerState();g.eJ(b)&&!g.eJ(c)?a.playVideo():g.V(b,4)&&!g.V(c,4)&&a.pauseVideo()};
NR=function(a,b){a.X=NaN;a.W.stop();a.B&&b&&ER(a.B);a.J=null;a.B=null};
KR=function(a,b){a=a.api.Ic();return!!a&&a.getVideoData().cd===b.cd};
isa=function(a){var b=a.i.find(function(d){return KR(a,d)});
if(b){LR(a);var c=new g.ZI(8);b=gsa(a,b)/1E3;PR(a,b,c)}};
QR=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.Z();for(var d=b,e=c,f=g.q(a.I),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.Ui>=d&&l.target&&l.target.zd<=e&&(a.l.removeCueRange(h),a.I.delete(h))}d=b;e=c;f=[];h=g.q(a.i);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Cc>=d&&l.zd<=e){var m=a;m.L===l&&LR(m);KR(m,l)&&m.api.Dn(l.playerType)}else f.push(l);a.i=f;d=MR(a,b/1E3);b=d.yl;d=d.rp;b&&(d*=1E3,jsa(a,b,d,b.zd===b.Cc+b.durationMs?b.Cc+d:b.zd));
(b=MR(a,c/1E3).yl)&&a.Gd("Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.cd+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Cc+" parentReturnTimeMs="+b.zd+"}.Child playbacks can only have duration updated not their start."))};
jsa=function(a,b,c,d){a.Z();b.durationMs=c;b.zd=d;d={ue:JR(c,!0),Ui:c,target:null};bsa(a,b,d);KR(a,b)&&1E3*a.api.Ic().getCurrentTime()>c&&(b=gsa(a,b)/1E3,c=a.api.Ic().getPlayerState(),PR(a,b,c))};
lsa=function(a){a&&"web"!==a&&ksa.includes(a)};
TR=function(a,b){g.F.call(this);var c=this;this.data=[];this.u=a||NaN;this.l=b||null;this.i=new g.J(function(){RR(c);SR(c)});
g.H(this,this.i)};
RR=function(a){var b=(0,g.N)();a.data.forEach(function(c){c.expire<b&&UR(a,c,!0)});
a.data=g.Ie(a.data,function(c){return!(c.expire<b)})};
UR=function(a,b,c){c&&a.l&&a.l(b.value)};
SR=function(a){a.i.stop();var b=Infinity;for(var c=g.q(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&a.i.start(Math.max(b-Date.now(),0))};
VR=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.l=this.i=a-1};
msa=function(a){return a.data[a.i]||0};
WR=function(a){g.F.call(this);this.B=a;this.i=new Map;this.l=new g.J(this.u,250,this);g.H(this,this.l);this.start()};
YR=function(a,b){var c;if(null===(c=a.i.get(b))||void 0===c)a=void 0;else{a=c.buffer;for(b=[];a.l!==a.i;)a.l=(a.l+1)%a.data.length,b.push(a.data[a.l]);a=b}return a||[]};
ZR=function(a,b){var c;return(null===(c=a.i.get(b))||void 0===c?void 0:msa(c.buffer))||0};
$R=function(a){this.l=a;this.i=NaN;this.buffer=new VR(100)};
nsa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.yc()+")":a.yc()};
aS=function(a,b){g.F.call(this);var c=this;this.i=null;for(var d=[],e=0;100>=e;e++)d.push(e/100);e={threshold:d};b&&(e={threshold:d,trackVisibility:!0,delay:1E3});(this.l=window.IntersectionObserver?new IntersectionObserver(function(f){f=f[f.length-1];b?"undefined"===typeof f.isVisible?c.i=null:c.i=f.isVisible?f.intersectionRatio:0:c.i=f.intersectionRatio},e):null)&&this.l.observe(a)};
osa=function(a,b){po(a,"version",b)};
cS=function(a){g.W.call(this,{D:"div",Ba:["html5-video-player"],U:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},S:[{D:"div",K:g.bS.VIDEO_CONTAINER,U:{"data-layer":"0"}}]});var b=this;this.app=a;this.Rs=this.ya(g.bS.VIDEO_CONTAINER);this.Gr=new g.Uf(0,0,0,0);this.Gb=null;this.zx=new g.Uf(0,0,0,0);this.VA=this.KB=this.JB=NaN;this.Iw=this.JF=!1;this.eA=NaN;this.sB=!1;this.Wt=null;this.dispatchEvent=function(){};
this.aC=function(){b.element.focus()};
this.zy=null;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.T();e.transparentBackground&&this.wm("ytp-transparent");"0"===e.controlsType&&this.wm("ytp-hide-controls");g.K(this.element,"ytp-exp-bottom-control-flexbox");e.ea("html5_player_bottom_linear_gradient")&&g.K(this.element,"ytp-linear-gradient-bottom-experiment");e.ea("web_player_bigger_buttons_like_mobile")&&g.K(this.element,"ytp-exp-bigger-button-like-mobile");osa(this.element,psa(a));this.QJ=!1;aE(e)&&"blazer"!==e.playerStyle&&window.matchMedia&&(this.zy="desktop-polymer"===e.playerStyle?
[{query:window.matchMedia("(max-width: 656px)"),size:new g.ee(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.ee(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.ee(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.ee(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.ee(854,480)},{query:window.matchMedia("(min-width: 1000px)"),size:new g.ee(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),
size:new g.ee(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.ee(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.ee(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.ee(640,360)}]);this.xD=e.useFastSizingOnWatchDefault;this.ot=new g.ee(NaN,NaN);qsa(this);this.N(a.Qa,"onMutedAutoplayChange",this.pu)};
qsa=function(a){function b(){a.Gb&&dS(a);eS(a)!==a.sB&&a.resize()}
function c(h,l){a.Yq(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.zx=new g.Uf(0,0,0,0);a.Gr=new g.Uf(0,0,0,0)}
var f=a.app.Qa;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.wi(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
rsa=function(a){var b=g.S(a.app.T().experiments,"html5_aspect_from_adaptive_format"),c=g.X(a.app);if(c=c?c.getVideoData():null){if(g.SG(c)||g.TG(c)||g.VG(c))return 16/9;if(b&&qG(c)&&c.u.i)return b=c.u.videoInfos[0].video,fS(b.width,b.height)}return(a=a.Gb)?fS(a.videoWidth,a.videoHeight):b?16/9:NaN};
ssa=function(a,b,c,d){var e=c,f=fS(b.width,b.height);a.JF?e=c<f?Infinity:0:isNaN(a.VA)?isNaN(a.KB)||(e=a.KB):e=a.VA;isFinite(e)||(e=Math.max(c,f));var h;e>f?h={width:b.width,height:b.width/e,aspectRatio:e}:e<f?h={width:b.height*e,height:b.height,aspectRatio:e}:h={width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?h.width=h.height*c:c<e&&(h.height=h.width/c),h.aspectRatio=c);return h};
fS=function(a,b){return 1>Math.abs(gS*b-a)||1>Math.abs(gS/a-b)?gS:a/b};
eS=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.X(a.app);if(!b||b.Nl())return!1;var c=a.app.Qa.rb();a=!g.V(c,2)||!g.S(a.app.T().experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ra;b=g.V(c,1024);return c&&a&&!b&&!c.isCued()};
dS=function(a){var b="3"===a.app.T().controlsType&&!a.Iw&&eS(a)&&!a.app.Zt||!1;a.Gb.controls=b;a.Gb.tabIndex=b?0:-1;b?a.Gb.removeEventListener("focus",a.aC):g.S(a.app.T().experiments,"disable_focus_redirect")||a.Gb.addEventListener("focus",a.aC)};
tsa=function(a){var b=a.Og(),c=1,d=!1,e=ssa(a,b,a.getVideoAspectRatio()),f=mq();if(eS(a)){var h=rsa(a);var l=isNaN(h)||g.Ls||hS&&g.es;nq&&!g.Xd(601)?h=e.aspectRatio:l=l||"3"===a.app.T().controlsType;l?l=new g.Uf(0,0,b.width,b.height):(c=e.aspectRatio/h,l=new g.Uf((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.es&&(h=l.width-b.height*h,0<h&&(l.width+=h,l.height+=h)));if(f||a.QJ)a.Gb.style.display="";a.sB=!0}else{l=-b.height;nq?l*=window.devicePixelRatio:g.kE&&(l-=window.screen.height);
l=new g.Uf(0,l,b.width,b.height);if(f||a.QJ)a.Gb.style.display="none";a.sB=!1}Vf(a.zx,l)||(a.zx=l,g.JD(a.app.T())?(a.Gb.style.setProperty("width",l.width+"px","important"),a.Gb.style.setProperty("height",l.height+"px","important")):g.sg(a.Gb,new g.ee(l.width,l.height)),d=new g.ce(l.left,l.top),g.lg(a.Gb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Uf((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Vf(a.Gr,b)||(a.Gr=b,d=!0);g.dg(a.Gb,"transform",1===c?"":"scaleX("+c+")");return d};
usa=function(){this.csn=g.uu();this.clientPlaybackNonce=null;this.elements=new Set;this.u=new Set;this.i=new Set;this.l=new Set};
vsa=function(a,b){a.elements.has(b);a.elements.delete(b);a.u.delete(b);a.i.delete(b);a.l.delete(b)};
wsa=function(a){if(a.csn!==g.uu())if("UNDEFINED_CSN"===a.csn)a.csn=g.uu();else{var b=g.uu(),c=g.ru();if(b&&c){a.csn=b;for(var d=g.q(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.Hu(b,c,e)}if(b)for(a=g.q(a.i),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.Bu(b,c,void 0)}};
iS=function(a,b,c,d,e){g.W.call(this,{D:"div",K:"ytp-horizonchart"});this.I=b;this.sampleCount=c;this.B=d;this.C=e;this.index=0;this.heightPx=-1;this.u=this.l=null;this.i=Math.round(a/c);this.element.style.width=this.i*this.sampleCount+"px";this.element.style.height=this.I+"em"};
jS=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.De("CANVAS"),a.l=c.getContext("2d")}catch(e){}if(a.l){var d=a.i*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.i*=4,c=0;c<a.sampleCount;c++)d=g.De("SPAN"),d.style.width=a.i+"px",d.style.left=a.i*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.l&&(c=1<(window.devicePixelRatio||1)?2:1,a.u.height=a.heightPx*c,a.u.style.height=
a.heightPx+"px",a.l.scale(1,c)));b=g.q(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.l?a.l.clearRect(b*a.i,0,a.i,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
kS=function(a){var b=null;b={D:"button",Ba:["html5-video-info-panel-close","ytp-button"],U:{title:"close"},ma:"[x]"};g.W.call(this,{D:"div",K:"html5-video-info-panel",S:[b,{D:"div",K:"html5-video-info-panel-content",S:[{D:"div",S:[{D:"div",ma:"Video ID / sCPN"},{D:"span",ma:"{{video_id_and_cpn}}"}]},{D:"div",S:[{D:"div",ma:"Viewport / Frames"},{D:"span",ma:"{{dims_and_frames}}"}]},{D:"div",S:[{D:"div",ma:"Current / Optimal Res"},{D:"span",ma:"{{resolution}}"}]},{D:"div",S:[{D:"div",ma:"Volume / Normalized"},
{D:"span",ma:"{{volume}}"}]},{D:"div",S:[{D:"div",ma:"Codecs"},{D:"span",ma:"{{codecs}}"}]},{D:"div",U:{style:"{{shader_info_style}}"},S:[{D:"div",ma:"Shader Info"},{D:"span",ma:"{{shader_info}}"}]},{D:"div",U:{style:"{{color_style}}"},S:[{D:"div",ma:"Color"},{D:"span",ma:"{{color}}"}]},{D:"div",U:{style:"{{drm_style}}"},S:[{D:"div",ma:"Protected"},{D:"span",ma:"{{drm}}"}]},{D:"div",U:{style:"{{bandwidth_style}}"},S:[{D:"div",ma:"Connection Speed"},{D:"span",S:[{D:"span",ma:"{{bandwidth_chart}}"},
{D:"span",ma:"{{bandwidth_kbps}}"}]}]},{D:"div",U:{style:"{{network_activity_style}}"},S:[{D:"div",ma:"Network Activity"},{D:"span",S:[{D:"span",ma:"{{network_activity_chart}}"},{D:"span",ma:"{{network_activity_bytes}}"}]}]},{D:"div",S:[{D:"div",ma:"Buffer Health"},{D:"span",S:[{D:"span",ma:"{{buffer_health_chart}}"},{D:"span",ma:"{{buffer_health_seconds}}"}]}]},{D:"div",U:{style:"{{live_latency_style}}"},S:[{D:"div",ma:"Live Latency"},{D:"span",S:[{D:"span",ma:"{{live_latency_chart}}"},{D:"span",
ma:"{{live_latency_secs}}"}]}]},{D:"div",U:{style:"{{live_mode_style}}"},S:[{D:"div",ma:"Live Mode"},{D:"span",ma:"{{live_mode}}"}]},{D:"div",U:{style:"{{playback_categories_style}}"},S:[{D:"div",ma:"Playback Categories"},{D:"span",ma:"{{playback_categories}}"}]},{D:"div",S:[{D:"div",ma:"Mystery Text"},{D:"span",ma:"{{debug_info}}"}]},{D:"div",U:{style:"{{release_style}}"},S:[{D:"div",ma:"Player Release"},{D:"span",ma:"{{release_name}}"}]}]}]});b&&(b=this.ya("html5-video-info-panel-close"),this.N(b,
"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.i=new iS(300,1,150,b,c);g.H(this,this.i);this.Oa("bandwidth_chart",this.i);this.u=new iS(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.H(this,this.u);this.Oa("live_latency_chart",this.u);this.l=new iS(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.H(this,this.l);this.Oa("buffer_health_chart",this.l);this.B=new iS(300,1,150,d,c);g.H(this,this.B);this.Oa("network_activity_chart",this.B);this.delay=new g.J(this.Ja,
500,this);g.H(this,this.delay);this.C=a};
xsa=function(a){a=void 0===a?{}:a;var b=a.pg,c=a.Yg,d=a.uc,e=a.Tq;this.Bl=a.Bl;this.pg=b;this.Yg=c;this.uc=d;this.Tq=e};
ysa=function(a,b){if(0>b)return!0;var c=a.uc();return b<c||b===c&&!a.Bl||b===c&&(a=a.Tq())&&b===a.Ia?!0:!1};
zsa=function(a,b,c){if(!ysa(a,b))return 0;if(!a.pg||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.uc();return b<c||b===c&&(a=a.Tq())&&b===a.Ia&&!a.pending?2:1};
Asa=function(a){this.schedule=a;this.i=NaN;this.l=[];this.totalBytes=0};
Bsa=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.oi?!1:e.oi;var f=void 0===e.Kk?!1:e.Kk,h=void 0===e.fp?!1:e.fp,l=e.oh,m=e.Ia;e=e.Ue;this.Aa=null;this.Ca=this.i=NaN;this.Sa=0;this.Y=this.Da=this.l=this.B=NaN;this.Ma=this.va=this.isActive=!1;this.u=0;this.ra=NaN;this.L=this.I=Infinity;this.X=NaN;this.Ra=!1;this.J=this.W=NaN;this.C=this.Ga=void 0;this.oi=d;this.Kk=f;this.fp=h;this.oh=l;this.Ia=m;this.Ue=e;this.schedule=a;this.Ya=b;this.Xa=c;this.snapshot=iD(this.schedule)};
Csa=function(a){return{rt:(Date.now()-a.i).toFixed(),lb:a.l.toFixed(),pt:(1E3*a.ra).toFixed(),pb:a.Ya.toFixed(),stall:(1E3*a.u).toFixed(),elbowTime:(a.Ca-a.i).toFixed(),elbowBytes:a.Sa.toFixed()}};
Fsa=function(a){a.i=Date.now();a.B=a.i;a.l=0;a.Da=a.i;a.Y=0;a.C&&(a.C=[]);a.va=!1;a.Ma=!1;a.u=0;a.snapshot=iD(a.schedule);a.I=Infinity;a.L=Infinity;Dsa(a);Esa(a,a.i);a.ra=(a.W-a.i)/1E3;a.J=NaN;a.Ga=void 0};
lS=function(a){!a.J&&a.Aa&&(a.J=a.Aa(),3===a.J&&(a.Ga=new Asa(a.schedule)));return a.J};
Hsa=function(a,b,c,d){var e=(b-a.B)/1E3,f=c-a.l,h=lS(a);if(3===h&&f){var l=a.Ga;l.l.push({s6:f,M6:isNaN(l.i)?NaN:d-l.i,A6:d});l.i=d}a.isActive?1===h&&0<f&&(.2<e||1024>f?(a.u+=e,.2<e&&nS(a,.05,f)):nS(a,e,f),a.Ma=!0):mS(a,c)&&(1===h&&(d=(b-a.i)/1E3,Gsa(a)||a.Kk||(h=a.schedule,h.C.ji(1,d),kD(h))),a.Ca=b,a.Sa=c,a.isActive=!0);a.Kk||fD(a.schedule,e,f);a.B=b;a.l=c};
nS=function(a,b,c){if(!a.Kk){b=Math.max(b,.05);var d=a.schedule,e=b;a=a.fp;a=void 0===a?!1:a;d.l.ji(void 0===b?e:b,c/e);a||(d.J=cD())}};
pS=function(a,b,c){c=Math.round(c/1024);a.C&&a.C.push(oS(b-a.Da,c-a.Y));a.Da=b;a.Y=c};
mS=function(a,b){return b?a.oh&&1!==lS(a)?!0:2048<=b:!1};
qS=function(a){return mS(a,a.l)};
Dsa=function(a){a.X=a.i+1E3*a.snapshot.delay;a.Ra=!1};
rS=function(a,b){if(a.oh&&void 0!==a.Ia&&void 0!==a.Ue){var c=Math,d=c.min,e=a.I;var f=a.oh;var h=a.i;if(ysa(f,a.Ia))f=b;else{var l=0;f.pg&&(l=.2);f=h+1E3*(f.Yg+l)}a.I=d.call(c,e,f);c=Math;d=c.min;e=a.L;f=a.oh;h=a.i;l=zsa(f,a.Ia,a.Ue);2!==l&&(b=l?b:h+1E3*f.Yg,f.pg&&(b+=1E3*f.Yg));a.L=d.call(c,e,b);a.I<=a.i?Dsa(a):(a.X=a.I,a.Ra=!0)}};
Gsa=function(a){a.oh&&rS(a,Date.now());return a.Ra};
Esa=function(a,b){b=void 0===b?Date.now():b;if(a.oh){rS(a,b);var c=a.J?a.oh?1!==lS(a):!1:a.I!==a.L;if(c){if(c=a.L,b<c){a.W=a.L;return}}else c=a.I;c=Math.max(c,a.X)}else c=a.X;var d=a.Ya-a.l;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=qS(a)?d+b:d+Math.max(b,c);a.W=d};
oS=function(a,b){for(var c="";4095<a;)c+=oS(4095,0),a-=4095;for(;4095<b;)c+=oS(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))};
sS=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
tS=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.kd&&(d=Math.abs(d));d/=a.playbackRate;var f=1/hD(a.schedule);var h=.9*(d-a.policy.Rg);h=Math.max(h,eD(a.schedule)+2048*f);c=h/f*a.policy.Wp/(b+c);c=Math.min(c,d);a.policy.Ih&&e&&(c=Math.max(c,a.policy.Ih));return Isa(a,c,b)};
Isa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.Vp*c),Math.min(Math.min(a.policy.Aa,31*c),Math.ceil(b*c))))||65536};
uS=function(a){var b=hD(a.schedule);if(a.policy.rl)return b;var c=a.policy.Up,d=1E-9+eD(a.schedule);b*=Math.min(1,c/(b*d));a.policy.Si&&(c=((bD(a.schedule.u,.98)||0)-1)/2,c=Math.max(0,Math.min(1,c)),b*=1-a.policy.Si*c);return b};
vS=function(a){return uS(a)/a.playbackRate};
wS=function(a,b,c,d,e){g.P.call(this);this.u=a;this.videoTrack=b;this.audioTrack=c;this.policy=d;this.I=e;this.seekCount=this.l=0;this.i=!1;this.C=null;this.B=this.u.isManifestless&&!this.u.kf};
Jsa=function(a,b,c){var d=b.i.index,e=b.l.Ia;BA(d,e)||c&&c.Ia===e?(a.Z(),b.C=!BA(d,e),b.L=!BA(d,e)):(a.Z(),b.C=!0,b.L=!0)};
Lsa=function(a,b,c,d){a.Z();if(!b.i.hf())return 0!==c&&xS(b),c;var e=yS(b,c);if(!isNaN(e))return a.Z(),e;zS(b);return d&&(a=EB(d.wf(),c),!isNaN(a))?(AS(b,a+Ksa),c):AS(b,c)};
Psa=function(a,b,c,d){if(a.i&&a.l){var e=Msa(a,b,c);if(-1!==e){a.videoTrack.C=!1;a.audioTrack.C=!1;a.B=!0;g.em(function(){BS(a,"seekreason","behindMinSq");Nsa(a,e)});
return}}c?a.videoTrack.L=!1:a.audioTrack.L=!1;var f=a.policy.Uj||!a.B;if(0<=yS(a.videoTrack,a.l)&&0<=yS(a.audioTrack,a.l)&&f){if(a.videoTrack.C||a.audioTrack.C)a.Z(),BS(a,"iterativeSeeking","done;count."+a.seekCount,!1);a.videoTrack.C=!1;a.audioTrack.C=!1}else d&&g.em(function(){if(a.B||!a.policy.Ya)Osa(a);else{var h=b.startTime,l=b.duration,m=c?a.videoTrack.C:a.audioTrack.C;m=!a.Ha()&&m;var n=-1!==a.videoTrack.I&&-1!==a.audioTrack.I,p=!a.videoTrack.L&&!a.audioTrack.L;m&&n&&p&&(a.l>=h&&a.l<h+l+.1?
((c?a.videoTrack:a.audioTrack).C=!1,a.videoTrack.C||a.audioTrack.C||(a.Z(),BS(a,"iterativeSeeking","done;count."+a.seekCount,!1),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.Z(),BS(a,"iterativeSeeking","inprogress;count."+a.seekCount+";target."+a.l+";actual."+h+";duration."+l+";isVideo."+c,!1),a.seek(a.l)):(a.Z(),BS(a,"iterativeSeeking","incomplete;count."+a.seekCount+";target."+a.l+";actual."+h,!1),a.seekCount=0,a.videoTrack.C=!1,a.audioTrack.C=!1,a.V("seekplayerrequired",h+.1,!0)))}})};
Msa=function(a,b,c){if(!a.i)return-1;c=(c?a.videoTrack:a.audioTrack).i.index;var d=c.zi(a.l);return(BA(c,a.u.ze)||b.Ia===a.u.ze)&&d<a.u.ze?(a.Z(),a.u.fd()):-1};
Nsa=function(a,b){!a.Ha()&&a.B&&-1!==a.videoTrack.I&&-1!==a.audioTrack.I&&(a.B=!1,a.Z(),a.V("seekplayerrequired",b+.1,!0))};
Osa=function(a){var b=-1!==a.videoTrack.I,c=-1!==a.audioTrack.I;if(!b||!c)if(b=!b&&a.videoTrack.Vg(),c=!c&&a.audioTrack.Vg(),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.I=c.Vg().info.Ia,-1!==b.I){var d=Math.max(b.i.index.Xf(b.I),c.i.index.Xf(c.I));BS(a,"seekreason","initManifestlessSync");g.em(function(){return Nsa(a,d)});
a.C&&(a.C.resolve(d+.1),a.C=null)}};
BS=function(a,b,c,d){a.V("ctmp",b,c,void 0===d?!1:d)};
CS=function(){this.u=this.B=0;this.ticks={}};
ES=function(a,b,c,d,e){g.P.call(this);this.L=a;this.policy=b;this.I=c;this.u=this.Y=this.i=null;this.W=!1;this.B=this.C=NaN;this.J=0;this.X=null;this.l=e?1:0;this.policy.L&&a.isManifestless||DS(this.I,"cuepoint",this.ra,this);this.va=d};
GS=function(a,b,c){a.policy.Ga&&(b.startSecs+=isNaN(a.J)?0:a.J);a=a.L;a.W.push(b);a.V("cuepointsadded",c)};
Zra=function(a,b,c,d){Qsa(a.I,d,c,b);Qsa(a.va,d,c,b);sC(a.L,d,!0);sC(a.L,d,!1);HR(a,"sdai","rollbk2_seg"+d+"_rbt"+c.toFixed(3)+"_lt"+b.toFixed(3))};
HS=function(a,b){if(a.i){a.u=null;a.W=!1;var c=a.i.Ld.durationSecs-(b.startTime+a.J-a.i.Ld.startSecs);0>=c||(c=new bw(a.i.Ld.startSecs-(a.policy.Ga&&!isNaN(a.J)?a.J:0),c,a.i.Ld.context,a.i.Ld.identifier,"stop",a.i.Ld.i+1E3*b.duration),HR(a,"cuepointdiscontinuity","segNum."+b.Ia),a.policy.L?GS(a,c,b.Ia):a.ra(c,b.Ia))}};
Rsa=function(a,b){a.u=null;a.W=!1;0<b&&4===a.l&&(a.l=5)};
HR=function(a,b,c){a.V("ctmp",b,c,!1)};
Ssa=function(){this.length=3;this.count=this.index=0;this.buffer=Array(3)};
Tsa=function(a,b){for(var c={},d=0,e=a.index;e<a.index+a.length;e++){var f=a.buffer[e%a.length];if(void 0!==f){f=Object.entries(b(f));f=g.q(f);for(var h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;c[d+"_"+h]=l}d++}}return c};
IS=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
Usa=function(a,b,c,d,e,f){e=void 0===e?[]:e;this.ra=a;this.policy=b;this.C=c;this.I=d;this.Sa=e;this.Ga=void 0===f?function(){}:f;
this.l=YF;this.i=this.L=null;this.X=-1;this.nextVideo=this.u=null;this.B=[];this.Ca={};this.J=0;this.Ma=this.Y=this.W=!1;this.va=0;this.Da=new Set;this.Ra=!1;this.Aa=null;this.l=YF;this.Da=new Set};
Ysa=function(a,b,c){JS(a,b);Vsa(a,c);a.L=a.u;Wsa(a);a.i=a.nextVideo;return Xsa(a)};
Zsa=function(a,b){if(ey(a.l,b))return null;if("m"===b.reason&&b.isLocked())return a.Z(),JS(a,b),a.J=a.B.length-1,KS(a),LS(a),a.Y=a.Y||a.i!==a.nextVideo,a.i=a.nextVideo,new IS(a.u,a.i,b.reason);"r"===b.reason&&(a.X=-1);JS(a,b);LS(a);if("r"===b.reason&&a.nextVideo===a.i)return new IS(a.u,a.nextVideo,b.reason);a.i&&a.nextVideo&&MS(a,a.i.info)<MS(a,a.nextVideo.info)&&(b=a.l.reason,a.W=a.W||"r"===b||"u"===b||"v"===b);return null};
$sa=function(a,b){if(b.info.video){if(a.i!==b)return a.i=b,Xsa(a)}else a.Ma=a.L!==b,a.L=b;return null};
NS=function(a,b){b.W=(0,g.N)();a.X=-1;JS(a,a.l)};
OS=function(a){for(var b=(0,g.N)()-6E4,c=g.q(a.I.videoInfos),d=c.next();!d.done;d=c.next())if(a.C.i[d.value.id].W>b)return!0;return!1};
ata=function(a,b){return new IS(a.L,a.i,b||a.l.reason)};
PS=function(a){return a.l.isLocked()};
Xsa=function(a){a.X=(0,g.N)();a.W=!1;return new IS(a.L,a.i,a.l.reason)};
bta=function(a){var b=!PS(a)&&-1<a.X&&8E3>(0,g.N)()-a.X,c=a.nextVideo&&3*MS(a,a.nextVideo.info)<vS(a.ra);if(!b||c)KS(a),LS(a),a.Y=a.Y||a.nextVideo!==a.i};
cta=function(a,b){var c={};b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.i,f=c[e],h=f&&oB(f)&&f.video.i>a.policy.Ra,l=e<=a.policy.Ra?oB(d):mB(d);if(!f||h||l)c[e]=d}return c};
JS=function(a,b){a.l=b;var c=a.I.videoInfos;if(!PS(a)){var d=(0,g.N)()-6E4;c=g.Ie(c,function(n){if(n.l>this.policy.W)return this.Z(),!1;n=this.C.i[n.id];var p=n.info.i;return this.policy.Zj&&this.Da.has(p)||n.W>d?!1:4<n.l.l||4<n.L?(this.Z(),!1):n.C?!1:!0},a);
if(OS(a)){var e=g.Ie(c,function(n){n=n.yc();return"140"===n||"134"===n||"243"===n});
e.length&&(c=e)}}c.length||(c=a.I.videoInfos);e=g.Ie(c,b.B,b);if(a.policy.lk||a.policy.Mj){var f="m"===b.reason||"s"===b.reason;a.policy.ql&&hS&&g.es&&(!f||1080>b.i)&&(e=e.filter(function(n){return!!n&&!!n.video&&!!n.B}));
if(!NB()&&0<e.length){var h=(b=e[0])&&b.video&&b.video.i;if(h){b=e.filter(function(n){return!!n&&!!n.video&&n.video.i===h});
var l=cta(a,b)[h].i;e=e.filter(function(n){return!!n&&!!n.video&&n.i===l})}}var m=cta(a,e);
e=e.filter(function(n){return!!n&&!!n.video&&n.i===m[n.video.i].i})}e.length||(e=[c[0]]);
e.sort(function(n,p){return MS(a,n)-MS(a,p)});
for(c=1;c<e.length;c++)b=e[c-1],f=e[c],b.video.width>f.video.width?(a.Z(),g.jb(e,c),c--):MS(a,b)*a.policy.l>MS(a,f)&&(a.Z(),g.jb(e,c-1),c--);c=e[e.length-1];a.Ra=!!a.i&&!!a.i.info&&a.i.info.i!==c.i;a.Z();a.B=e;Mna(a.policy,c)};
Vsa=function(a,b){b?a.u=a.C.i[b]:(b=(b=g.cb(a.I.i,function(c){return!!c.u&&c.u.isDefault}))||a.I.i[0],a.u=a.C.i[b.id]);
KS(a)};
dta=function(a,b){for(var c=0;c+1<a.B.length&&"tiny"===a.B[c].Za().quality;)c++;var d=vS(a.ra)/a.policy.l;return MS(a,b.info)+MS(a,a.B[c])>d};
KS=function(a){if(!a.u||!a.policy.i)if(!a.u||!a.u.info.u)if(a.u=a.C.i[a.I.i[0].id],1<a.I.i.length){var b=!1;if(a.policy.Sa){if(b=!0,a.policy.Bp){var c=bb(a.I.i,function(d){return"250"===d.yc()});
0<=c&&(a.u=a.C.i[a.I.i[c].id],b=dta(a,a.u))}}else b=a.l.isLocked()?240>a.l.i:dta(a,a.u);b&&(a.u=a.C.i[g.ab(a.I.i).id])}};
LS=function(a){a.policy.wg&&(a.Aa=a.Aa||new g.J(function(){a.policy.wg&&a.i&&!OS(a)&&1===Math.floor(10*Math.random())?(NS(a,a.i),a.W=!0):a.Aa.start()},6E4),g.cn(a.Aa));
if(!a.nextVideo||!a.policy.i)if(PS(a))a.nextVideo=360>=a.l.i?a.C.i[a.B[0].id]:a.C.i[g.ab(a.B).id],a.Z();else{for(var b=Math.min(a.J,a.B.length-1),c=vS(a.ra),d=MS(a,a.u.info),e=c/a.policy.u-d;0<b&&!(MS(a,a.B[b])<=e);b--);for(c=c/a.policy.l-d;b<a.B.length-1&&!(MS(a,a.B[b+1])>=c);b++);a.nextVideo=a.C.i[a.B[b].id];a.J!==b&&a.Z();a.J=b}};
Wsa=function(a){var b=a.policy.u,c=vS(a.ra)/b-MS(a,a.u.info);b=g.db(a.B,function(d){return MS(this,d)<c},a);
0>b&&(b=0);a.J=b;a.nextVideo=a.C.i[a.B[b].id];a.Z();a.Sa.length&&eta(a)};
eta=function(a){var b=a.Sa;if(!b.includes(a.nextVideo.Sq())){for(var c=g.q(a.I.videoInfos),d=c.next();!d.done;d=c.next()){d=a.C.i[d.value.id];var e=d.Sq();if(b.includes(e)){b=a.nextVideo.info.yc();c=d.info.yc();a.Ga("ombifa","f."+b+";t."+c);a.Z();a.nextVideo=d;return}}a.Ga("ombifa","mismatch."+b.join("."))}};
fta=function(a,b){a.policy.Ra=DC(b,{},a.I);JS(a,a.l);bta(a);a.W=a.nextVideo!==a.i};
MS=function(a,b){if(!a.Ca[b.id]){var c=a.C.i[b.id].index.FG(a.va,15);c=b.C&&a.i&&a.i.index.xd()?c||b.C:c||b.l;a.Ca[b.id]=c}c=a.Ca[b.id];a.policy.Gc&&b.video&&b.video.i>a.policy.Gc&&(c*=1.5);return c};
gta=function(a,b){a=Pb(a.C.i,function(c){return c.info.yc()===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
hta=function(a){var b=[];if("m"===a.l.reason||"s"===a.l.reason)return b;if(Cga(a.C)){for(var c=Math.max(0,a.J-2);c<a.J&&c<a.B.length;c++){var d=a.B[c].yc();b.push(d)}b.reverse()}return b};
ita=function(a,b){this.policy=a;this.i=b;this.u=this.l=0;this.We=null;this.C=[];this.indexRange=this.initRange=null;this.chunkSize=a.Ds;this.B=new Uint8Array(this.chunkSize);this.I=new kR};
kta=function(a){var b=jta(a);b=lF(a.policy.i,a.i.info,QS(a),b);RS(a,b)};
SS=function(a){return!!a.We&&a.We.u};
mta=function(a,b){if(!SS(a)){if(1===b.info.type)a.initRange=cA(0,b.i.totalLength);else if(2===b.info.type){if(!a.We||1!==a.We.type)return;a.indexRange=cA(a.u*a.chunkSize+a.l,b.i.totalLength)}else if(3===b.info.type){if(3===a.We.type&&!jA(a.We,b.info)){a.C=[];var c=a.We;if(b.info.Ia!==c.Ia+(c.Zd?1:0)||0!==b.info.Ab)return}if(b.info.Zd){c=g.q(a.C);for(var d=c.next();!d.done;d=c.next())lta(a,d.value);a.C=[]}else{a.C.push(b);a.We=b.info;return}}a.We=b.info;lta(a,b);SS(a)&&(b=new Uint8Array(a.B.buffer,
0,a.l),c={mket:Math.round(a.i.index.Qm()).toString(),avbr:Math.round(a.i.info.C).toString()},c=Ep(c),b=lF(a.policy.i,a.We.i.info,QS(a),c,a.u,b),RS(a,b,!0))}};
lta=function(a,b){for(var c=0,d=MA(b.i);c<d.length;){var e=Math.min(d.length-c,a.B.byteLength-a.l),f=new Uint8Array(d.buffer,d.byteOffset+c,e);a.B.set(f,a.l);a.l+=e;c+=e;if(a.l===a.B.length){if(b.info===a.We&&SS(a)&&c===d.length)break;e=jta(a);e=lF(a.policy.i,a.i.info,QS(a),e,a.u,a.B);RS(a,e);a.B=new Uint8Array(a.chunkSize);a.l=0;a.u+=1}}};
jta=function(a){a={dlt:Math.round(a.We?a.We.B:0),mket:Math.round(a.i.index.Qm()),avbr:Math.round(a.i.info.C)};return Ep(a)};
QS=function(a){var b,c,d={lmt:a.i.lastModified,docid:a.policy.i,fmtid:a.i.info.id,type:a.i.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.u*a.chunkSize+a.l};d="local://localhost/videoplayback?"+Ep(d);d={itag:+a.i.info.yc(),mimeType:a.i.info.mimeType,bitrate:8*a.i.info.l,lastModified:String(a.i.lastModified),initRange:null===(b=a.initRange)||void 0===b?void 0:dA(b),indexRange:null===(c=a.indexRange)||void 0===c?void 0:dA(c),url:d};var e=a.i.info;if(e=0<e.id.indexOf(";")?e.id.split(";")[1]:null)d.xtags=
e;if(e=a.i.info.video)if(d.quality=e.quality,d.qualityLabel=e.qualityLabel,d.width=e.width,d.height=e.height,e=e.fps)d.fps=e;if(a=a.i.info.audio){if(e=a.sampleRate)d.audioSampleRate=String(e);if(a=a.i)d.audioChannels=a}return d};
RS=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){(c||4===d)&&a.I.resolve(d)},function(d){a.I.reject(d)})};
nta=function(a){for(var b=new Uint8Array(0),c=new DataView(a.buffer,a.byteOffset,a.length),d=0;d<a.length-8;){var e=c.getUint32(d);if(1>=e)break;var f=c.getUint32(d+4);if(1836019574===f)d+=8;else{if(1886614376===f){f=a.subarray(d,d+e);var h=new Uint8Array(b.length+f.length);h.set(b);h.set(f,b.length);b=h}d+=e}}return b};
ota=function(a){a=tz(a,1886614376);g.zb(a,function(b){return!b.l});
return g.Oc(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
pta=function(a){var b=Yg(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
g.zb(a,function(e){c.set(e,d);d+=e.length});
return c};
qta=function(a,b,c,d){this.ids=a;this.l=b;this.u=c;this.i=d};
TS=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.i=this.cryptoPeriodIndex=NaN;this.l=[];this.Ne=!1};
rta=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{for(var m=b.subarray(c+f,c+f+l),n=new mo,p=new cf(m);df(p)&&4!=p.l;){var r;switch(p.u){case 2:f=r=jf(p);Bf(n,2).push(f);break;case 4:r=jf(p);Cf(n,4,r);break;case 7:r=bf(p.i);Cf(n,7,r);break;case 9:r=bf(p.i);Cf(n,9,r);break;case 10:r=bf(p.i);Cf(n,
10,r);break;case 11:r=af(p.i);Cf(n,11,r);break;case 12:r=bf(p.i);Cf(n,12,r);break;case 13:f=r=jf(p);Bf(n,13).push(f);break;case 14:r=new no;f=p;var t=r,u=Tda,x=f.i.u,y=bf(f.i),E=f.i.i+y;f.i.u=E;u(t,f);f.i.i=E;f.i.u=x;f=n;t=r;u=no;var D=f,G=D,I=u;G.u||(G.u={});if(!G.u[14]){for(var O=Bf(G,14),ha=[],ta=0;ta<O.length;ta++)ha[ta]=new I(O[ta]);G.u[14]=ha}var na=D.u[14];na==zf&&(na=D.u[14]=[]);var Bb=na;var tc=t?t:new u;var qe=Bf(f,14);Bb.push(tc);qe.push(Gf(tc));break;case 15:r=hf(p);Cf(n,15,r);break;case 16:r=
hf(p);Cf(n,16,r);break;case 17:r=bf(p.i);Cf(n,17,r);break;case 1:r=af(p.i);Cf(n,1,r);break;case 3:r=hf(p);Cf(n,3,r);break;case 5:r=hf(p);Cf(n,5,r);break;case 6:r=hf(p);Cf(n,6,r);break;case 8:r=jf(p);Cf(n,8,r);break;default:ef(p)}}f=n;if(null!==f){var Ca=f;break a}}catch(Wd){}}c+=e}Ca=null}catch(Wd){Ca=null}}if(null!=Ca)for(b=Bf(Ca,7),null==b||a.Ne||(a.cryptoPeriodIndex=b),b=Bf(Ca,10),null!=b&&0<b&&!a.Ne&&(a.i=b),Ca=Bf(Ca,2),Ca=!Ca.length||Ca[0]instanceof Uint8Array?Ca:g.Oc(Ca,Uaa),Ca=g.q(Ca),b=Ca.next();!b.done;b=
Ca.next())a.l.push(g.pf(b.value,4))};
US=function(a){this.i=a;this.offset=0};
VS=function(a){if(a.offset>=a.i.totalLength)throw Error();return OA(a.i,a.offset++)};
sta=function(a,b){b=void 0===b?!1:b;var c=VS(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=VS(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+VS(a),d*=128;return b?c:c-d};
WS=function(a,b,c){g.P.call(this);var d=this;this.policy=a;this.u=b;this.Ya=c;this.l=[];this.i=null;this.Y=-1;this.L=0;this.va=NaN;this.W=0;this.C=NaN;this.Ca=0;this.Aa=-1;this.B=this.X=this.Ra=this.Ga=this.Da=this.Ma=this.J=this.I=this.ra=null;this.Sa=!1;this.timestampOffset=0;this.Ya=c;this.policy.i&&(this.B=new ita(this.policy,this.u),this.B.I.promise.then(function(e){d.B=null;1===e&&d.V("localmediachange",e)},function(){d.B=null;
d.V("localmediachange",4)}),kta(this.B))};
tta=function(a){return a.l.length?a.l[0]:null};
XS=function(a){return a.l.length?a.l[a.l.length-1]:null};
xta=function(a,b,c){if(a.J){var d=a.J.Ab+a.J.l;if(a.policy.X&&0<c.info.Ab&&c.info.Ia===a.J.Ia&&c.info.Ab<d){if(c.info.Ab+c.info.l<=d)return;c=TA(c,d-c.info.Ab)[1]}if(a.policy.Vj){d=a.J;var e=c.info;d=d.Ia!==e.Ia&&e.Ia!==d.Ia+1||d.type!==e.type||be(d.C,e.C)&&d.Ia===e.Ia?!1:kA(d,e)}else d=kA(a.J,c.info);d||(a.C=NaN,a.Ca=0,a.Aa=-1)}a.J=c.info;a.u=c.info.i;0===c.info.Ab?YS(a):!a.u.Jg()&&a.I&&mA(c.info,a.I);if(a.i){d=UA(a.i,c);if(!d)throw new g.Zr("failed_to_merge",fA(a.i.info),fA(c.info));a.i=d}else a.i=
c;a:{c=g.VA(a.i.info.i.info);if(3!==a.i.info.type){if(!a.i.info.Zd)break a;6===a.i.info.type?uta(a,b,a.i):ZS(a,a.i);a.i=null}for(;a.i;){d=a.i.i.totalLength;if(0>=a.Y&&0===a.L){var f=a.i.i,h=-1;e=-1;if(c){for(var l=0;l+8<f.totalLength;){var m=PA(f,l),n=PA(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 US(f);for(m=l=!1;;){n=f.Il();var p=f;try{var r=sta(p,!0),t=sta(p,!1);var u=r;var x=t}catch(E){x=u=-1}p=u;var y=x;if(0>p)break;if(408125543!==p)if(524531317===
p)l=!0,0<=y&&(e=f.Il()+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.Il()+y);if(160===p){0>h&&(e=h=f.Il()+y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.Y=h;a.L=e-h}if(a.Y>d)break;a.Y?(d=vta(a,a.Y),d.u&&!a.u.Jg()&&wta(a,d),uta(a,b,d),$S(a,d),a.Y=0):a.L&&(d=vta(a,0>a.L?Infinity:a.L),a.L-=d.i.totalLength,$S(a,d))}}a.i&&a.i.info.Zd&&($S(a,a.i),a.i=null)};
ZS=function(a,b){!a.u.Jg()&&0===b.info.Ab&&(g.VA(b.info.i.info)||b.info.i.info.Ne())&&aB(b);if(1===b.info.type)try{wta(a,b),yta(a,b)}catch(d){g.pt(d);var c=lA(b.info);c.hms="1";a.V("error",c||{})}b.info.i.aB(b);a.B&&mta(a.B,b)};
zta=function(a){var b=a.l.reduce(function(c,d){return c+d.i.totalLength},0);
a.i&&(b+=a.i.i.totalLength);return b};
aT=function(a){return g.Oc(a.l,function(b){return b.info})};
vta=function(a,b){var c=a.i;b=Math.min(b,c.i.totalLength);if(b===c.i.totalLength)return a.i=null,c;c=TA(c,b);a.i=c[1];return c[0]};
wta=function(a,b){var c=RA(b);if(!a.policy.Op&&nB(b.info.i.info)&&"bt2020"===b.info.i.info.Za().primaries){var d=new vz(c);xz(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.i,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.i.info;mB(d)&&!nB(d)&&(d=RA(b),Dz(new vz(d)),Cz([408125543,374648427,174,224],21936,d));b.info.i.info.isVideo()&&(d=b.info.i,d.info&&d.info.video&&4===d.info.video.projectionType&&!d.B&&(g.VA(d.info)?d.B=Zfa(c):d.info.Ne()&&(d.B=aga(c))));b.info.i.info.Ne()&&
b.info.isVideo()&&(c=RA(b),Dz(new vz(c)),Cz([408125543,374648427,174,224],30320,c)&&Cz([408125543,374648427,174,224],21432,c));if(a.policy.Ji&&b.info.i.info.Ne()){c=RA(b);var e=new vz(c);if(xz(e,[408125543,374648427,174,29637])){d=Az(e,!0);e=e.start+e.i;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.isAudio()&&g.VA(b.info.i.info)){d=RA(b);c=g.hz(d,0,1701606260);f=g.hz(d,0,1836476516);if(c&&f){c.skip(2);var h=Vy(c),l=Xy(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(Yy(c)),
e.push(Yy(c)),m.push(Vy(c)),n.push(Vy(c));else for(h=0;h<l;++h)d.push(Wy(c)),e.push(Wy(c)),m.push(Vy(c)),n.push(Vy(c));c=jz(f);c=new Yfa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.VA(b.info.i.info))for(d=RA(b),e=g.hz(d,0,1701082227);e;)e.markAsSkip(),e=g.hz(d,e.offset+e.size,1701082227);a.Sa=!0;b.info.i.I=c}}a.u.Jg()||b.info.i.i||b.info.i.indexRange||(g.VA(b.info.i.info)?(a=RA(b),(c=lz(a,0,1836019574))?(c=c.offset+c.size,d=new Uint8Array(c),d.set(new Uint8Array(a.buffer,a.byteOffset,c)),a=d):a=null):a=
cga(new vz(RA(b))),a&&(b.info.i.i=a))};
uta=function(a,b,c){if(a.u.Jg()){if(a.Sa&&a.u.Jg()&&c.info.Ia===c.info.i.index.uc()&&(b=RA(c),b=g.hz(b,0,1953658222))){b.skip(1);var d=Uy(b)<<16|Vy(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=Xy(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=Xy(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.i,e))}}if(b=a.ra&&!!a.ra.u.I)if(b=c.info.isVideo())b=$A(c),h=a.ra,bT?(l=1/b,b=cT(a,b)>=cT(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&a.u.Jg()&&c.info.Ia===c.info.i.index.uc()&&
(b=a.ra,bT?(l=$A(c),h=1/l,l=cT(a,l),b=cT(b)+h-l):b=b.getDuration()-a.getDuration(),b=1+b/c.info.duration,iz(RA(c),b))}else{h=!1;a.I||(aB(c),c.l&&(a.I=c.l,h=!0,mA(c.info,c.l),l=c.info.i.info,f=RA(c),g.VA(l)?sz(f,1701671783):l.Ne()&&Cz([408125543],307544935,f)));if(f=l=ZA(c))f=c.info.i.info.Ne()&&160===OA(c.i,0);if(f)a.W+=l,a.C=NaN;else{if(a.policy.cq){var n=a.Ya(WA(c),1);e=n;if(0<=a.C&&6!==c.info.type){f=n-a.C;var p=f-a.Ca;d=c.info.Ia;var r=a.Ma?a.Ma.Ia:-1,t=a.Ga?a.Ga:-1,u=a.Da?a.Da:-1;m=a.policy.Qd&&
f>a.policy.Qd;var x=a.policy.Bd&&p>a.policy.Bd;1E-4<Math.abs(p)&&(a.policy.Yn&&a.V("avsyncissue",{audio:""+ +a.isAudio(),sq:d.toFixed(),sliceStart:n,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:u,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+(+m||x)}),a.Aa=d);n=0;a.policy.Rn&&(m||x||(e=a.C),a.policy.Sn&&a.ra&&!a.isAudio()&&g.VA(c.info.i.info)&&(x=a.ra,m=x.Aa,x=x.Ca,p=.02<Math.abs(x-f),(d===m||d>m&&d>a.Aa)&&p&&(d=Math.max(.95,Math.min(1.05,(l-(x-f))/l)),iz(RA(c),d),
d=ZA(c),n=l-d,l=d)));a.Ca=f+n}}else isNaN(a.C)?e=c.info.startTime:e=a.C;XA(c,e)?(isNaN(a.va)&&(a.va=e),a.W+=l,a.C=e+l):(l=lA(c.info),l.smst="1",a.V("error",l||{}))}a.Ma=c.info;a.Da=ZA(c);c.B&&(a.Ga=c.B);if(h&&a.I){h=Ata(a,!0);nA(c.info,h);a.i&&nA(a.i.info,h);b=g.q(b.info.i);for(l=b.next();!l.done;l=b.next())nA(l.value,h);(c.info.Zd||a.i&&a.i.info.Zd)&&6!==c.info.type||(a.X=h,a.V("placeholderinfo",h),a.policy.L||Bta(a))}}yta(a,c);a.timestampOffset&&YA(c,a.timestampOffset)};
$S=function(a,b){if(b.info.Zd){a.Ra=b.info;if(a.I){var c=Ata(a,!1);a.V("segmentinfo",c);a.X||a.policy.L||Bta(a);a.X=null}YS(a)}a.B&&mta(a.B,b);if(c=XS(a))if(c=UA(c,b,a.policy.Tj)){a.l.pop();a.l.push(c);return}a.l.push(b)};
YS=function(a){a.i=null;a.Y=-1;a.L=0;a.I=null;a.va=NaN;a.W=0;a.X=null};
yta=function(a,b){if(a.u.info.Be){if(b.info.i.info.Ne()){var c=new vz(RA(b));if(xz(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=Az(c,!0);c=16!==d?null:Hz(c,d)}else c=null;d="webm"}else b.info.L=ota(RA(b)),c=pta(b.info.L),d="cenc";c&&c.length&&(c=new TS(c,d),c.Ne=b.info.i.info.Ne(),b.l&&b.l.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.l.cryptoPeriodIndex),a.policy.Yj&&b.l&&b.l.u&&(c.i=b.l.u),a.V("needkeyinfo",c))}};
Bta=function(a){var b=a.I,c=dz(b);c&&(c.startSecs+=a.va,a.V("cuepoint",c,b.i))};
Ata=function(a,b){var c,d=a.I;a.policy.L&&(c=dz(d))&&(c.startSecs+=a.va);if(d.data["Stitched-Video-Id"]||d.data["Stitched-Video-Cpn"]||d.data["Stitched-Video-Duration-Us"]||d.data["Stitched-Video-Start-Frame-Index"]||d.data["Serialized-State"]){var e=d.data["Stitched-Video-Id"]?d.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=d.data["Stitched-Video-Cpn"]?d.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[],h=[];if(d.data["Stitched-Video-Duration-Us"])for(var l=g.q(d.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(d.data["Stitched-Video-Start-Frame-Index"]){m=g.q(d.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)}e=new qta(e,f,h,d.data["Serialized-State"]?d.data["Serialized-State"]:"")}return new Ny(d.i,a.va,b?d.Ri:a.W,d.ingestionTime,"sq/"+d.i,void 0,void 0,b,e,c)};
cT=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.u.I&&b&&(b+=a.u.I.i);return b+a.getDuration()};
Cta=function(a,b){0>b||(a.l.forEach(function(c){YA(c,b)}),a.timestampOffset=b)};
dT=function(a,b){this.info=a;this.callback=b;this.L=!1;this.B=0;this.C=!1;this.i=null;this.state=1};
Dta=function(a){return g.Xg(a.info.i,function(b){return 3===b.type})};
eT=function(a,b){var c=a.state;a.state=b;a.uu(c)};
Eta=function(a){a.i&&a.i.B?(a=a.i.B,a=new gA(a.type,a.i,a.range,"getEmptyStubAfter"+a.I,a.Ia,a.startTime+a.duration,0,a.Ab+a.l,0,!1)):(a=a.info.i[0],a=new gA(a.type,a.i,a.range,"getEmptyStubBefore"+a.I,a.Ia,a.startTime,0,a.Ab,0,!1));return a};
Fta=function(a,b){this.i=a;this.I=this.C=!1;this.l=0;this.u=null;this.slices=[];this.B=null;(this.length=b?b:0)?1!==this.i.length||this.i[0].l||(this.i[0].l=this.length):1===this.i.length||g.Xg(this.i,function(c){return!!c.range})};
Gta=function(a,b,c){a.u&&(HA(a.u,b),b=a.u,a.u=null);for(var d=0,e=0,f=g.q(a.i),h=f.next();!h.done;h=f.next())if(h=h.value,h.range&&d+h.l<=a.l)d+=h.l;else{if(hA(h)&&!c&&a.l+b.totalLength-e<d+h.l){a.u=b.split(e).Np;break}var l=a.l-d;var m=a;if(1===h.type)m.C=!0,m=!1;else if(3===h.type||4===h.type){var n=m.C&&!m.I;m.I=!0;m=n}else m=!1;m=m||h.i.jq()&&!l;n=a;var p=e,r=b,t=!!c,u=r.totalLength-p;h.range&&(u=Math.min(h.l-l,u));t=h.range?h.Ab+l+u===h.range.length:t;l=new gA(h.type,h.i,h.range,"reslice"+h.I,
h.Ia,h.startTime,h.duration,h.Ab+l,u,t&&h.u,t);t=u;p=r.split(p).Np.split(t).Hw;n.slices.push(new QA(l,p,m));l=u;a.l+=l;e+=l;d+=h.l;if(e===b.totalLength)break}};
Hta=function(a){var b=a.slices;a.slices=[];a.B=g.ab(b).info;return b};
Ita=function(a){return a.length-a.l+a.slices.reduce(function(b,c){return b+c.i.totalLength},0)};
fT=function(){g.P.apply(this,arguments);this.i={}};
Jta=function(a,b){return new g.J(function(){a.i[b].isFailed=!0;a.V("FAILED",{formatId:b})},3E3)};
Kta=function(a){return Object.values(a.i).some(function(b){return 0<b.bytesShifted})};
Lta=function(a){return Object.keys(a.i).every(function(b){return a.isComplete(b)})};
Mta=function(a){return Object.values(a.i).some(function(b){return b.isFailed})};
gT=function(a,b,c,d){dT.call(this,b,d);this.formatId=a;this.l=c;this.i=new Fta(this.info.i,this.info.range.length);Nta(this);this.l.isFailed(this.formatId)?eT(this,6):this.l.isComplete(this.formatId)?eT(this,5):this.l.nh(this.formatId)&&eT(this,2)};
Nta=function(a){a.l.subscribe("PROGRESS",function(b){b.formatId===a.formatId&&eT(a,Math.max(2,a.state))});
a.l.subscribe("DONE",function(b){b.formatId===a.formatId&&eT(a,5)});
a.l.subscribe("FAILED",function(b){b.formatId===a.formatId&&eT(a,6)})};
Ota=function(a){for(;a.l.nh(a.formatId);){var b=a.i,c=a.l.Pi(a.formatId);var d=a.l;var e=a.formatId;d=0===d.i[e].expectedBytes-d.i[e].bytesShifted&&d.isComplete(e);Gta(b,c,d)}};
hT=function(a,b,c,d){d=void 0===d?function(e){return e}:d;
this.policy=a;this.i=b;this.Y=c;this.u=[];this.l=this.Ob=null;this.ra=this.va=0;this.I=-1;this.L=!1;this.W=-1;this.xB=null;this.Gx=0;this.kG=!1;this.Y=c;this.B=new WS(a,b,d);this.X=b.info.l;this.J=b.St();this.isManifestless=b.St();this.C=this.J};
iT=function(a,b){b&&bT&&Cta(a.B,b.SA());a.Ob=b};
jT=function(a){return a.Ob&&a.Ob.qw()};
kT=function(a,b){a.u.push(b);a.l=g.ab(b.info.i)};
lT=function(a){for(;a.u.length&&5===a.u[0].state;){var b=a.u.shift();Pta(a,b);a.va=b.xG()}a.u.length&&(b=a.u[0],b.Fr()&&(!b.info.oi()||b instanceof gT)&&Pta(a,b))};
Pta=function(a,b){if(b.Fr()){var c=b.mE();if(a.policy.pe&&b instanceof gT){var d=a.i.info.yc();a.Y("omblss","itag."+d+";len."+c.length)}c=g.q(c);for(d=c.next();!d.done;d=c.next())Qta(a,b,d.value)}};
Qta=function(a,b,c){switch(c.info.type){case 1:case 2:ZS(a.B,c);break;case 4:var d=c.info.i.XD(c);c=c.info;var e=a.l;e&&e.i===c.i&&e.type===c.type&&(c.range&&e.range?e.range.start===c.range.start&&e.range.end===c.range.end:e.range===c.range)&&e.Ia===c.Ia&&e.Ab===c.Ab&&e.l===c.l&&(a.l=g.ab(d).info);d=g.q(d);for(c=d.next();!c.done;c=d.next())Qta(a,b,c.value);break;case 3:xta(a.B,b,c);break;case 6:xta(a.B,b,c),a.l=c.info}};
yS=function(a,b,c){c=void 0===c?!1:c;if(a.Ob){var d=a.Ob.wf(),e=EB(d,b),f=NaN,h=jT(a);h&&(f=EB(d,h.i.index.Xf(h.Ia)));if(e===f&&a.l&&a.l.l&&Rta(mT(a),0))return b}a=Sta(a,b,c);return 0<=a?a:NaN};
AS=function(a,b){a.i.hf();var c=Sta(a,b);if(0<=c)return c;c=a.B;c.B?(c=c.B,c=c.We&&3===c.We.type?c.We.startTime:0):c=Infinity;b=Math.min(b,c);a.l=a.i.Sm(b).i[0];nT(a)&&a.Ob&&a.Ob.abort();a.ra=0;return a.l.startTime};
Tta=function(a){a.J=!0;a.C=!0;a.I=-1;AS(a,Infinity)};
oT=function(a){var b=0;g.zb(a.u,function(c){var d=b;c=c.i&&c.i.length?Ita(c.i):rA(c.info);b=d+c},a);
return b+=zta(a.B)};
pT=function(a,b){if(!a.Ob)return 0;var c=jT(a);if(c&&c.u)return c.B;a=a.Ob.wf(!0);return GB(a,b)};
zS=function(a){xS(a);a=a.B;a.l=[];YS(a)};
Qsa=function(a,b,c,d){xS(a);for(var e=a.B,f=!1,h=e.l.length-1;0<=h;h--){var l=e.l[h];l.info.Ia>=b&&(e.l.pop(),e.C-=ZA(l),f=!0)}f&&(e.J=0<e.l.length?e.l[e.l.length-1].info:null);d>c?AS(a,d):a.l=a.i.lm(b-1,!1).i[0]};
sT=function(a,b){var c;for(c=0;c<a.u.length&&b!==a.u[c];c++);if(c===a.u.length)qT(a,b);else{for(;c<a.u.length;)qT(a,a.u.pop());var d=rT(a);a.policy.X&&d&&d.i.Jg()&&Sh(b.info.i,function(e){return e.i===d.i&&e.Ia===d.Ia&&!!d.l&&d.Ab+d.l>e.Ab&&d.Ab+d.l<=e.Ab+e.l})?a.l=d:iA(b.info.i[0])?a.l=Eta(b):a.l=null}};
nT=function(a){var b;!(b=!a.policy.Rj&&"f"===a.i.info.i)&&(b=a.policy.i)&&(b=a.B,b=!!b.B&&SS(b.B));if(b)return!0;b=jT(a);if(!b)return!1;var c=b.u&&b.Zd;return a.isManifestless&&0<a.W?c||b.Ia>=a.W:c};
mT=function(a){var b=[],c=jT(a);c&&b.push(c);b=g.nb(b,aT(a.B));g.zb(a.u,function(d){g.zb(d.info.i,function(e){d.L&&(b=g.Ie(b,function(f){return!(f.i!==e.i?0:f.range&&e.range?f.range.start+f.Ab>=e.range.start+e.Ab&&f.range.start+f.Ab+f.l<=e.range.start+e.Ab+e.l:f.Ia===e.Ia&&f.Ab>=e.Ab&&(f.Ab+f.l<=e.Ab+e.l||e.Zd))}));
(iA(e)||4===e.type)&&b.push(e)})});
a.l&&!jga(a.l,g.ab(b),a.l.i.Jg())&&b.push(a.l);return b};
Rta=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!kA(a[b-1],a[b]))return!1;return!0};
Sta=function(a,b,c){c=void 0===c?!1:c;if(!a.l||!a.l.l)return NaN;a=mT(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.C<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:Rta(a,c?b:0)?a[b].startTime:NaN};
Uta=function(a){return Sh(a.u,function(b){return 3<=b.state})};
tT=function(a){return!(!a.l||a.l.i===a.i)};
uT=function(a){return tT(a)&&a.i.hf()&&a.l.i.info.l<a.i.info.l};
Vta=function(a,b,c){return(a=rT(a))&&!a.u?a.B>b&&a.B<b+c:!1};
rT=function(a){var b=XS(a.B);return b?b.info:jT(a)};
xS=function(a){g.zb(a.u,function(b){qT(this,b)},a);
a.u=[];a.l=null};
qT=function(a,b){var c=a.policy.X&&b.info.i[0].i.Jg();b.L&&!c&&(a=a.B,a.Z(),a.X&&!a.policy.Lf&&a.V("placeholderrollback",a.X),a.X=null,a.I=null,a.J=a.Ra,a.C-=a.W,YS(a));b.dispose()};
Wta=function(a){return!!a.l&&-1!==a.l.Ia&&a.l.Ia<a.i.index.ij()};
Xta=function(a){var b=a.l;b&&-1===b.Ia&&(a=XS(a.B))&&iA(a.info)&&(a=a.info.Ia,b.I="updateLastSliceRequested",b.Ia=a)};
DS=function(a,b,c,d){a.B.subscribe(b,c,d)};
Yta=function(a){return Sh(a.u,function(b){return b.C})};
vT=function(a,b,c,d){this.target=a;this.trigger=b;this.l=c;this.u=d;this.i=0};
$ta=function(a,b,c){var d=this;this.l=a;this.Fe=b;this.loaded=this.status=0;this.error="";a=bA(this.l.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.i=new FA;Zta(this).then(c,function(e){d.error=""+e||"unknown_err";c()})};
Zta=function(a){return g.C(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,u,x,y,E;return g.z(c,function(D){if(1==D.i){d.status=200;e=d.l.get("docid");f=md(d.l.get("fmtid")||"");h=+(d.l.get("csz")||0);if(!e||!f||!h)throw Error("Invalid local URL");l=d.range;m=Math.floor(l.start/h);n=Math.floor(l.end/h);p=m}if(5!=D.i)return p<=n?g.w(D,Cha(e,f,p),5):D.Mb(0);r=D.l;if(void 0===r)throw Error("invariant: data is undefined");t=p*h;u=(p+1)*h;x=Math.max(0,l.start-t);y=Math.min(l.end+1,u)-(x+t);E=new Uint8Array(r.buffer,
x,y);d.i.append(E);d.loaded+=y;d.loaded<l.length&&d.Fe(Date.now(),d.loaded);p++;return D.Mb(2)})})};
wT=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.method?"GET":h.method;var l=h.headers,m=h.body;h=void 0===h.credentials?"include":h.credentials;this.ra=b;this.Y=c;this.va=d;this.policy=e;this.status=0;this.response=void 0;this.X=!1;this.l=0;this.W=NaN;this.aborted=this.C=this.L=!1;this.errorMessage="";this.method=f;this.headers=l;this.body=m;this.credentials=h;this.i=new FA;this.id=aua++;this.B=window.AbortController?new AbortController:void 0;this.start(a);this.startTime=Date.now()};
cua=function(a,b){a.status=b.status;if(b.ok&&b.body)a.status=a.status||242,a.u=b.body.getReader(),a.Ha()?a.u.cancel().catch(function(){}):(a.J=b.headers,a.va(),bua(a));
else a.onDone()};
bua=function(a){a.u.read().then(function(b){if(!a.Ha()){var c;window.performance&&window.performance.now&&(c=window.performance.now());var d=Date.now(),e=b.value?b.value:void 0;a.I&&(a.i.append(a.I),a.I=void 0);b.done?(a.u=void 0,a.onDone()):(a.l+=e.length,dua(a)?a.i.append(e):a.I=e,a.ra(d,a.l,c),bua(a))}},function(b){a.onError(b)}).then(void 0,g.xo)};
dua=function(a){var b=a.getResponseHeader("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.l&&a.policy.pg&&by(a)&&b};
eua=function(a,b,c,d){var e=this;this.status=0;this.Ha=this.i=!1;this.l=NaN;this.xhr=new XMLHttpRequest;this.xhr.open("GET",a);this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){2===e.xhr.readyState&&e.C()};
this.u=c;this.B=b;this.C=d;a=yo(function(f){e.onDone(f)});
this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);this.xhr.send();this.xhr.addEventListener("progress",yo(function(f){e.Fe(f)}),!1)};
zT=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.vu?[]:h.vu;var l=void 0===h.Qu?!1:h.Qu;h=void 0===h.Do?0:h.Do;dT.call(this,b,e);var m=this;this.policy=a;this.timing=c;this.lastError=null;this.X=this.u=0;this.va=!1;this.J=this.I=null;this.timing.Aa=function(){var n;if(fua(m)){if(n=m.policy.jl&&!(!window.performance||!window.performance.now)&&m.xhr&&m.xhr.Zm()&&m.Mk())n=m.xhr,n=n.policy.pg&&by(n);n=n?m.info.i[0].i.info.video?3:4:2}else n=1;return n};
this.Y=d;this.Qu=l;this.requestNumber=++gua;this.l=g.qA(this.info,this.policy,this.Y);this.l.set("rn",this.requestNumber.toString());this.l.set("rbuf",(1E3*h).toFixed().toString());this.Qu&&this.l.set("smb","1");this.vu=f||null;this.C=hua(this);this.ra=this.policy.Xc*(this.policy.X?Uz(xT(this),this.policy,!1):1);this.W=new g.J(this.VS,this.ra,this);this.info.l.C=(0,g.N)();gga(xT(this));Fsa(this.timing);try{this.xhr=iua(this),this.W.start(),this.Z("Sent, itag="+this.l.get("itag")+(" seg="+this.info.i[0].Ia)+
(" range="+this.l.get("range"))+(" time="+Math.round(this.info.i[0].C)+"-"+Math.round(g.ab(this.info.i).B))+(" rtp="+(this.timing.W-Date.now()).toFixed(0))+(" isStreaming="+this.Mk()))}catch(n){zo(n),this.lastError="net.ssl",g.em(function(){yT(m)})}};
hua=function(a){if(!(pA(a.info)&&a.info.oi()&&a.policy.Mf&&a.vu)||2<=a.info.l.l||jua()||!kua())return!1;var b=a.l.get("aitags");if(!b)return!1;b=md(b).split(",");for(var c=[],d=g.q(a.vu),e=d.next();!e.done;e=d.next())e=e.value,g.fb(b,e)&&c.push(e);if(!c.length)return!1;a.l.set("altitags",ld(c.join(",")));return!0};
xT=function(a){return Vz(a.Y,Gy(a.l.Kh))};
pua=function(a,b){if(400<=b.status)return a.lastError="net.badstatus",6;if(!b.Gw())return a.lastError=204===b.status?"net.nocontent":"net.connect",6;var c="";if(lua(a)){var d=b.Vg();2048>=d.totalLength&&(c=MA(d),c=Sy(c),iw(c)?a.Z():c="")}if(c)return b=xT(a),(0,g.N)(),b.started=0,b.l=0,b.i=0,b=a.info,a=a.l,g.Zz(b.l,a,c),b.requestId=a.get("req_id"),4;c=b.Qo();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.pC())return a.lastError="net.closed",6;mua(a,!0);if(a.policy.wq&&!d&&a.i&&(d=a.i.slices,
d.length&&!SA(d[0])))return a.lastError="net.closed",6;d=Dta(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(b=Dta(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.va=!0,a.policy.Gp&&(d=b);b=a.timing;var e=d?Number(d):0;d=g.Ta();if(!b.va){b.va=!0;if(!b.Kk){d=d>b.i&&4E12>d?d:Date.now();pS(b,d,c);Hsa(b,d,c);var f=lS(b);if(2===f&&e)nS(b,b.l/e,b.l);else if(2===f||1===f)e=(d-b.i)/1E3,(e<=b.schedule.X.i||!b.schedule.X.i)&&!b.Ma&&qS(b)&&nS(b,e,c),qS(b)&&(e=b.schedule,c=Math.max(c,2048),e.i.ji(1,b.u/c),kD(e));
dD(b.schedule,(d-b.i)/1E3||.05,b.l,b.ra,b.oi,b.fp)}b.deactivate()}c=xT(a);(0,g.N)();c.started=0;c.l=0;c.i=0;a.info.l.l=0;(0,g.N)()<nua+3E5||!a.l||Hy(a.l.Kh)||!(c=Gy(a.l.Kh))||0>c.indexOf("googlevideo.com")||(oua({primary:c}),nua=(0,g.N)());a.Z();return 5};
yT=function(a){a.Z("Request failed, itag="+a.l.get("itag")+(" seg="+a.info.i[0].Ia)+(" sliced="+(a.i&&a.i.l))+(" error="+a.lastError));if("net.timeout"===a.lastError){var b=a.timing,c=g.Ta();if(!b.Kk){c=c>b.i&&4E12>c?c:Date.now();pS(b,c,1024*b.Y);var d=(c-b.i)/1E3;if(2!==lS(b))if(qS(b)){b.u+=(c-b.B)/1E3;var e=b.schedule,f=b.l;f=Math.max(f,2048);e.i.ji(1,b.u/f);kD(e)}else Gsa(b)||b.Kk||(e=b.schedule,e.C.ji(1,d),kD(e)),b.Ca=c;dD(b.schedule,d,b.l,b.ra,b.oi,b.fp);fD(b.schedule,(c-b.B)/1E3,0)}}"net.nocontent"!==
a.lastError&&("net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError&&a.policy.Po?(b=xT(a),b.l+=1):(b=xT(a),b.i+=1),a.info.l.l++);eT(a,6)};
qua=function(a,b){b&&(b=xT(a),b.u+=1);AT(a);a.lastError="net.timeout";yT(a)};
AT=function(a){a.Z();a.xhr&&a.xhr.abort();a.timing.deactivate()};
lua=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.vt();return(!a.Mk()||!b||-1!==b.indexOf("text/plain"))&&(!c||2048>=c)};
iua=function(a){var b=a.AL.bind(a),c=a.BL.bind(a),d=a.xS.bind(a);if(Hy(a.l.Kh))return new $ta(a.l,c,b);var e=g.Sz(a.l);return a.policy.Ma&&(a.policy.Qn&&!isNaN(a.info.Ue)&&a.info.Ue>a.policy.jo||a.C?0:ay())?new wT(e,c,b,d,a.policy.B):new eua(e,c,b,d)};
mua=function(a,b){if(b||a.xhr.Zm()&&a.xhr.nh()&&!lua(a)&&!a.C){if(!a.i){if(a.Mk())a.info.range&&(c=a.info.range.length);else var c=a.xhr.Qo();a.i=new Fta(a.info.i,c)}for(;a.xhr.nh();)Gta(a.i,a.xhr.Pi(),b&&!a.xhr.nh())}};
fua=function(a){if(!a.policy.B.pg||!isNaN(a.info.Ue)&&0<a.info.Ue)return!1;if(!a.xhr.Zm())return a.Z(),!0;if(!by(a.xhr))return!1;if(isNaN(a.info.Ue)){var b=a.xhr.getResponseHeader("x-head-seqnum");if(!b)a.Z();else if(Number(b)>a.info.i[0].Ia)return!1}return!0};
BT=function(a,b,c,d){g.P.call(this);this.policy=a;this.schedule=b;this.W=c;this.X=d;this.Y=NaN;this.l=this.J=this.B=null;this.i=this.C=this.I=this.startTimeSecs=NaN;this.u=!1;this.L=NaN};
rua=function(a,b,c,d){return a.tb&&a.Xa&&3===Ay(a)?new BT(a,b,c,d):null};
sua=function(a,b){if(a.policy.gq){var c=b.info.l;if(0>=c)a.L=NaN;else{var d=hD(a.schedule);b=b.index.Yg;c=Math.max(1,d/c);a.L=Math.round(1E3*Math.max(((c-1)*b+a.policy.Y)/c,b-a.policy.Pc));a.Z()}}};
vua=function(a,b){var c=g.Ta()/1E3,d=c-a.startTimeSecs,e=c-a.I,f=e>=a.policy.Mi,h=!1;if(f){var l=0;!isNaN(b)&&b>a.C&&(l=b-a.C,a.C=b);l/e<a.policy.qq&&(h=!0);a.Z();a.I=c}c=d>=a.policy.Pc&&!a.u;if(!f&&!c&&tua(a,b))return NaN;c&&(a.u=!0,a.Z());a:{d=h;c=g.Ta()/1E3-(a.W.Ng()||0)-a.J.l-a.policy.Y;f=a.l.startTime;c=f+c;if(d){if(isNaN(b)){a.Z();CT(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Kc;d<c&&(a.Z(),c=d)}else a.u&&(d=c+a.policy.Y-a.Y+a.policy.rq,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.Kc))),c=d);
c=Math.max(c,f);a.Z();f=c}a.i=f;if(isNaN(a.i))return a.Z(),a.clear(),NaN;if(!h&&tua(a,b))return uua(a,b),NaN;if(a.i<=a.l.startTime)return CT(a,NaN,"y",b),a.clear(),NaN;if(!a.X(a.i,!1))return!uua(a,b)&&h&&(CT(a,NaN,"t",b),a.clear()),NaN;a.Z();h=a.i;CT(a,h,"s",b);a.clear();return h};
uua=function(a,b){return a.X(a.i,!0)?!1:(CT(a,NaN,"ns",b),a.Z(),a.clear(),!0)};
tua=function(a,b){return isNaN(b)?!0:isNaN(a.i)?!1:b<a.i+(a.u?a.policy.Kc:a.policy.hq)};
CT=function(a,b,c,d){var e=a.B.zs();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.i).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.startTimeSecs).toFixed(0);e.ssr_n=g.Ta().toFixed(0);e.ssr_f=(1E3*a.J.l).toFixed(0);e.ssr_fa=a.u?"1":"0";e.ssr_o=(1E3*a.W.Ng()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.l.i.index;BA(b,a.l.Ia,!0)&&(e.ssr_ist=(1E3*b.Xf(a.l.Ia)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.l.Ia)).toFixed(0));e=g.KB(e);a.V("ctmp","ssr",e,!1)};
DT=function(a,b,c,d,e,f,h,l,m){l=void 0===l?!1:l;g.P.call(this);var n=this;this.schedule=a;this.policy=b;this.i=c;this.Xa=h;this.X=m;this.timing=new CS;this.mediaSource=null;this.J=this.currentTime=NaN;this.Ca=this.Sa=0;this.ra=this.Ma=this.isSuspended=!1;this.Da="";this.va={};this.ib=this.Ue=NaN;this.oh=null;this.timestampOffset=NaN;this.tb=!1;this.Ra=0;this.L=!1;this.Y=null;this.Db=!1;this.Tb=new Ssa;this.I=new sS(a,b);a=m&&Object.keys(m.i);this.l=new Usa(this.I,b,this.i,d,a,this.Vc.bind(this));
b=Ysa(this.l,e,f&&f.id);this.audioTrack=new hT(this.policy,b.audio,this.Vc.bind(this),function(p,r){return wua(n,p,r)});
this.videoTrack=new hT(this.policy,b.video,this.Vc.bind(this),function(p,r){return wua(n,p,r)});
xua(this,this.audioTrack);xua(this,this.videoTrack);this.videoTrack.B.ra=this.audioTrack.B;this.Ga={updateend:this.CL,error:this.JP};this.W=new g.J(this.Hh,0,this);g.H(this,this.W);this.Ya=new g.J(this.Hh,1E3,this);g.H(this,this.Ya);this.Wb=new g.J(this.Hh,void 0,this);g.H(this,this.Wb);this.ub=new g.J(this.Hh,1E4,this);g.H(this,this.ub);this.Aa=new ZC(5);(this.C=rua(this.policy,this.schedule,this.Aa,function(p,r){return yua(n,p,r)}))&&this.C.subscribe("ctmp",this.Vc,this);
this.u=new ES(this.i,this.policy,this.videoTrack,this.audioTrack,l);g.H(this,this.u);this.u.subscribe("ctmp",this.Vc,this);this.B=new wS(this.i,this.videoTrack,this.audioTrack,this.policy,this.u);g.H(this,this.B);zua(this,this.B);this.Z()};
Aua=function(a){if(!a.X)return!1;var b=a.videoTrack.i.Sq(),c=a.audioTrack.i.Sq();c=void 0!==a.X.i[c]&&!a.X.isFailed(c);a=void 0!==a.X.i[b]&&!a.X.isFailed(b);return c&&a};
Bua=function(a,b,c){function d(m){m.isFailed()?(a.Vc("ombf","1",!0),sT(b,m),pA(m.info)&&ET(a,b,c,!0),a.Hh()):FT(a,m)&&a.Hh()}
var e=c.Sq(),f=c.Vo((a.X.i[e].expectedBytes||0)-(c.indexRange.length+c.initRange.length));c.u=!0;for(var h=0;h<f.length;h++){var l=new gT(e,f[h],a.X,d);kT(b,l)}};
Cua=function(a){var b=a.videoTrack.i.index;a.oh=new xsa({Bl:a.policy.Bl,pg:a.policy.B.pg,Yg:b.Yg,uc:function(){return b.uc()},
Tq:function(){return b.Tq()}})};
HT=function(a,b){b=b||a.videoTrack&&a.videoTrack.l&&a.videoTrack.l.startTime||a.currentTime;var c=a.videoTrack,d=a.l;b=d.nextVideo&&d.nextVideo.index.zi(b)||0;d.va!==b&&(d.Ca={},d.va=b,JS(d,d.l));bta(d);d.nextVideo&&!d.nextVideo.index.xd()&&(d.va=-1);GT(a,c,d.nextVideo);GT(a,a.audioTrack,a.l.u)};
IT=function(a,b){a.Ma=b;a.L||(a.Z(),a.isSuspended=!0)};
Dua=function(a){a.mediaSource&&a.mediaSource.i&&a.mediaSource.l&&(bu(a.mediaSource.i,a.Ga,a),bu(a.mediaSource.l,a.Ga,a));iT(a.audioTrack,null);iT(a.videoTrack,null);a.mediaSource=null};
KT=function(a,b){b=void 0===b?!1:b;a.Z();Dua(a);b?(a.Z(),a.L=!0):a.policy.Wc?IT(a,a.tb):IT(a,!1);JT(a)};
MT=function(a){a.mediaSource&&UB(a.mediaSource)&&(KT(a),a.policy.Xp&&LT(a,!0,"fmt.unplayable",{unexpected:1}))};
OT=function(a,b,c){var d=a.u;if(2===d.l||3===d.l||a.isSuspended&&(!lD(a.schedule)||a.Ma)||a.policy.i&&!lD(a.schedule))return!1;if(a.i.isManifestless){if(0<b.u.length&&b.l&&-1===b.l.Ia||b.u.length>=a.policy.Zn&&!a.policy.Jc||!a.policy.jp&&0<b.u.length&&!a.policy.B.pg)return!1;if(b.J)return!a.i.isLive||!isNaN(a.Ue)}if(Yta(b))return a.Z(),!1;if(!(b.l||a.i.isManifestless&&a.policy.Jc&&b.J)){if(!b.i.hf())return!1;AS(b,a.currentTime)}d=b.u.length+c.u.length;(Uta(b)||Uta(c)||a.i.isLive&&(!a.policy.Jc||!b.u.length))&&
--d;if(d+1>=a.policy.oo)return!1;if(!b.l)return!0;d=b.l;if(!Yz(d.i.l,a.policy))return!1;4===d.type&&d.i.hf()&&(b.l=g.ab(d.i.Kx(d)),d=b.l);if(!d.u&&!d.i.jm(d))return!1;var e=a.i.kf||a.i.I;if(a.i.isManifestless&&e){e=b.i.index.uc();var f=c.i.index.uc();e=Math.min(e,f);if(0<b.i.index.ls&&0<e&&d.Ia>=e)return b.W=e,c.W=e,!1}if(d.i.info.audio&&4===d.type)return!1;if(uT(b)&&!a.policy.ib)return!0;if(d.u||oT(b)&&oT(b)+oT(c)>a.policy.Db)return!1;e=!b.C&&!c.C;f=b===a.videoTrack&&a.L;if(!(c=!!(c.l&&!c.l.u&&c.l.B<
d.B)&&(!a.i.isManifestless||c.l&&c.l.B&&d.B)&&e&&!f||a.policy.Ya&&!b.C&&c.C)&&(c=iA(d))){c=d.B;a:if(d=a.u,d=d.i?d.i.Ld:null,a.L&&d)a=d.startSecs+d.durationSecs;else{d=NT(a,b,!0);!PS(a.l)&&0<a.policy.ra&&(e=((0,g.N)()-a.Sa)/1E3,d=Math.min(d,a.policy.ra+a.policy.ld*e));d=a.currentTime+d;if(a.policy.Pf&&(e=Eua(a)+a.policy.Pf,e<d)){a.Vc("mrl","ori."+d+";mod."+e,!0);a.policy.Vn&&(a.Sa=(0,g.N)());a=e;break a}a=d}c=c>a}return c?!1:(b=b.Ob)&&b.isLocked()?!1:!0};
Gua=function(a,b,c){if(OT(a,b,c)){if(b.J){if(a.i.isLive){var d=a.i.ze&&a.i.I?b.i.lm(a.i.ze,!1):b.i.Sm(Infinity);d.Ue=a.Ue}else d=b.i.lm(0,!1);a.C?0===d.Ue&&(d.B=a.C.L):d.B=a.ib}else if(d=b.l,d.i.hf()){var e=d.B-a.currentTime,f=!d.range||0===d.l&&0===d.Ab?0:d.range.length-(d.Ab+d.l),h=d.i;if(tT(b)&&b.i.hf()){var l=Math.min(15,.5*NT(a,b,!0));var m=uT(b)||e<=l||a.l.W;a.Z("ready to adapt: "+m+", upgrade pending: "+uT(b)+", health: "+e+", max health: "+l);l=m}else l=!1;l&&0===f&&(a.i.isManifestless?h=
b.i:(h=d.startTime+Fua,d.l&&(h+=d.duration),AS(b,h),d=b.l,h=d.i));h.Jg()?(f=a.l,c=tS(a.I,h.info.l,c.i.info.l,e,0<f.B.length&&0===f.J&&a.ra),e=tT(b),c=d.i.iq(d,c),c.range&&1<c.i.length&&(e||c.l.l||c.i[0].i!==d.i?c=d.i.iq(d,c.i[0].l):(e=c.i[c.i.length-1],h=e.l/c.range.length,!e.Zd&&.4>h&&(c=d.i.iq(d,c.range.length-e.l)))),d=c):(0>d.Ia&&(c=lA(d),c.pr=""+b.u.length,a.B.i&&(c.sk="1"),a.Vc("nosq",d.I+";"+g.KB(c))),d=h.hs(d));if(a.L)for(c=g.q(d.i),e=c.next();!e.done;e=c.next())e.value.type=6}else d.i.Jg()?
(c=tS(a.I,b.i.info.l,c.i.info.l,0),d=d.i.iq(d,c)):d=d.i.hs(d);if(a.policy.eq&&a.i.isManifestless&&!b.J&&0>d.i[0].Ia)a.Vc("invalidsq",fA(d.i[0]));else{if(a.Y&&(c=a.u,e=d.i[0].Ia,c=0>e&&!isNaN(c.B)?c.B:e,e=a.u,h=(0>c||c===e.B)&&!isNaN(e.C)?e.C:d.i[0].C,e=a.Y.GA(h,c,d.i[0].i.info.id))){h="decurl_itag"+d.i[0].i.info.yc()+"_sg"+c+"_st"+h.toFixed(3)+".";if(a.policy.bq&&b.u.length&&c-1===b.u[b.u.length-1].info.i[0].Ia){a.Vc("sdai","wt_daistate_on_sg"+(c-1));return}a.Vc("sdai",h);d.I=e}a.policy.Wj&&-1!==
d.i[0].Ia&&d.i[0].Ia<a.i.ze&&(d=b.i.lm(a.i.ze,!1));c=d.i[0].Ia;b.xB===c?b.Gx++:(b.xB=c,b.Gx=0);!a.policy.Bg&&40<b.Gx&&!a.Db&&a.i.isManifestless&&(a.Db=!0,LT(a,!0,"net.retryexhausted",{err:"mflRequestLoop",sq:c}));kT(b,PT(a,d))}}};
Hua=function(a){for(var b=g.q([a.videoTrack,a.audioTrack]),c=b.next();!c.done;c=b.next())if(c=c.value,20<c.Gx&&!c.kG){var d=c.xB;a.Vc("requestLoopDispose","segNum."+d,!0);zo(new g.Zr("b172965563","requestLoopDispose.segNum."+d));c.kG=!0}};
Iua=function(a,b){var c=rA(b),d=a.I,e=Math.min(2.5,eD(d.schedule));d=uS(d);var f=hA(b.i[0]),h=Hy(b.l.i),l=a.policy.i,m;a.oh?m={oi:f,Kk:h,fp:l,oh:a.oh,Ia:b.i[0].Ia,Ue:b.Ue}:m={oi:f,Kk:h,fp:l};return new Bsa(a.schedule,c,c-e*d,m)};
PT=function(a,b){iA(b.i[b.i.length-1])&&Jua(a,$sa(a.l,b.i[0].i));var c=Iua(a,b);a.policy.pe&&(c.C=[]);var d={Do:Math.max(0,b.i[0].C-a.currentTime),vu:a.policy.Mf&&pA(b)&&b.i[0].i.info.video?hta(a.l):void 0,Qu:a.L};return new zT(a.policy,b,c,a.va,function(e,f){a:{var h=e.info.i[0].i,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||!e.Mk()||e.B||!(!a.mediaSource||a.isSuspended||3<pT(l,a.currentTime))){var m=a.policy.Sf;if(!(!m||e.isComplete()||e.B<m||Xz(e.info.l,a.policy,a.va))){m=
a.va;var n=Gy(Wz(e.info.l));m=Vz(m,n);m.i||m.l||m.started||(m=sA(e.info,!0,a.policy.Rf))&&PT(a,m)}if(e.isComplete()||e.Ha()&&4>f)a.policy.ub&&(f=Csa(e.timing),m=e.timing,a.Vc("rqs",g.KB({rn:e.requestNumber.toString(),rt:f.rt,pt:f.pt,stall:f.stall,elt:f.elbowTime,elb:f.elbowBytes,rst:""+e.state,strm:""+e.Mk(),d:m.C?m.C.join(""):""}))),e.va&&a.Vc("sbwe3","1",!0);if(!a.Ha()&&2<=e.state)if(f=a.timing,n=e.info.i[0].i,m=!f.l&&n.info.video,n=!f.i&&n.info.audio,4===e.state?m?f.tick("vrr"):n&&f.tick("arr"):
5===e.state?m?(f.l=g.Sz(e.l),up(4)):n&&(f.i=g.Sz(e.l)):3===e.state&&m&&up(4),4===e.state)sT(l,e),pA(e.info)&&ET(a,l,h,!0),a.Hh();else if(e.isComplete()&&5===e.info.i[0].type)5===e.state&&(h=(e.info.i[0].i.info.video?a.videoTrack:a.audioTrack).u[0]||null)&&h instanceof zT&&h.B&&qua(h,!0),e.dispose();else{if(!e.isFailed()&&e.C&&2<=e.state&&4!==e.state)if(h=e.xhr?e.xhr.getResponseHeader("X-Response-Itag"):null){a.Z();h=gta(a.l,h);l=e.info.range.length-h.LA();h.u=!0;e.info.i[0].i.u=!1;f=h.Vo(l)[0];e.info=
f;if(e.i){l=e.i;f=f.i;l.i=f;m=f[0].range;n=MA(l.slices[0].i);MA(g.ab(l.slices).i);for(var p=0;p<l.slices.length;p++){l.slices[p].info=f[p];var r=f[p].range;l.slices[p].i=new FA([new Uint8Array(n.buffer,r.start-m.start,r.length)])}}e.C=!1;GT(a,a.videoTrack,h);l=a.videoTrack;l.l&&(l.l.i=h);a.V("constraint",h.info.Za().quality);(l=e.xhr?e.xhr.getResponseHeader("X-Segment-Lmt"):null)&&h instanceof dB&&(isNaN(h.lastModified)||h.lastModified===+l||sT(a.videoTrack,e))}else e.C=!1;if(5===e.state){if(FT(a,
e),a.u&&(h=a.u,l=e.info,f=a.Y,0!==h.l&&f&&l.i[0].isVideo()))if(l.i[0].Ia>h.B&&(h.B=NaN,h.C=NaN),h.i&&h.i.Ia===l.i[0].Ia)if(m=h.i.Ld.event,"start"===m||"continue"===m){if(1===h.l||5===h.l)h.B=l.i[0].Ia,h.C=l.i[0].C,HR(h,"sdai","joinad"+h.l+"_sg"+h.B+"_st"+h.C.toFixed(3)),h.l=2,f.XA(h.i.Ld)}else h.l=5;else 1===h.l&&(h.l=5)}else if(a.policy.Ma&&e.Fr()&&!e.isComplete()&&!FT(a,e)&&!e.isFailed())break a;e.isFailed()&&(h=e.info.i[0].i,l=e.lastError,Hy(h.l.i)&&(f=g.qf(e.xf()),a.Vc("dldbrerr",f||"none")),
e.canRetry()?(f=(h.info.video&&1<h.l.l||410===e.u||500===e.u||503===e.u)&&!OS(a.l),m=e.zs(),n=h.info.video?a.videoTrack:a.audioTrack,f&&(m.stun="1"),LT(a,!1,l,m),a.Ha()||(f&&(a.Z(),NS(a.l,h)),a.policy.xg&&1===e.info.i.length&&0<e.info.i[0].Ab&&h!==n.i&&a.ra?a.V("reattachrequired"):(sT(n,e),a.Hh()))):Hy(h.l.i)?(a.V("localplaybackfailed"),LT(a,!1,"net.closed",{err:e.lastError||"",rn:e.requestNumber.toString()})):(LT(a,!1,l,e.zs()),e.info.oi()?(h.C=l,a.Hh()):LT(a,!0,"net.retryexhausted",{err:l,rn:e.requestNumber.toString()})));
a.Hh();a.policy.Ec&&e.isComplete()&&e.canRetry()&&Xz(e.info.l,a.policy,a.va)&&(h=a.va,l=Gy(e.info.l.i),h=Vz(h,l),h.B+a.policy.Ec*Uz(h,a.policy,!0)>(0,g.N)()||(e=sA(e.info,!1,a.policy.Rf))&&PT(a,e))}}}},d)};
Jua=function(a,b){b&&(a.Z(),a.V("videoformatchange",b));a.policy.Xn&&a.l.Ma&&a.V("audioformatchange",ata(a.l,"a"))};
FT=function(a,b){try{var c=b.info.i[0].i,d=c.info.video?a.videoTrack:a.audioTrack;if(a.i.isManifestless&&d){d.J&&(b.Ha(),b.isComplete()||b.Mk()||b.Fr(),d.J=!1);b.FA()&&a.Aa.ji(1,b.FA());var e=b.lE(),f=b.CG(),h=a.i,l;for(l in h.i){var m=h.i[l].index;m.pk&&(e&&(m.ls=Math.max(m.ls,e)),f&&(m.i=Math.max(m.i||0,f)))}}var n;if(n=b.info.oi()){var p=b.info;n=!!hA(p.i[p.i.length-1])}if(n){for(var r=g.q(b.iz()),t=r.next();!t.done;t=r.next())ZS(d.B,t.value);a.V("metadata",c)}lT(d);return!!d.Vg()}catch(u){return u instanceof
Error&&(g.xo(u),b=b.zs(),b.origin="hrhs",LT(a,!0,"fmt.unplayable",b)),!1}};
RT=function(a){var b=a.mediaSource.i,c=a.mediaSource.l;if(Kua(a)){if(a.policy.Yk){if(!b.Uo()){var d=a.audioTrack.Vg();d&&QT(a,b,d)}c.Uo()||(b=a.videoTrack.Vg())&&QT(a,c,b)}a.Ca||(a.Ca=(0,g.N)())}else{if(a.Ca){d=(0,g.N)()-a.Ca;var e=pT(a.audioTrack,a.currentTime),f=pT(a.videoTrack,a.currentTime);a.Z();a.Vc("appendpause","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.Ca=0}if(a.C){d=a.C;e=a.audioTrack;f=FB(a.mediaSource.l.wf());if(d.B)d=vua(d,f);else{if(f=e.Vg()){var h=
f.l;h&&h.C&&h.l&&(e=e.u.length?e.u[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.Ue&&e.Mk()&&(d.B=e,d.J=h,d.l=f.info,d.startTimeSecs=g.Ta()/1E3,d.I=d.startTimeSecs,d.C=d.l.startTime,d.Z())}d=NaN}d&&a.V("seekplayerrequired",d,!0)}d=!1;Lua(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.B||(e.B=g.Ta(),e.tick("vda"),Yx("vda","video_to_ad"),e.u&&up(4)));if(a.mediaSource&&!UB(a.mediaSource)&&(Lua(a,a.audioTrack,b)&&(d=a.timing,d.u||(d.u=g.Ta(),d.tick("ada"),Yx("ada","video_to_ad"),d.B&&up(4)),d=!0),!a.Ha()&&a.mediaSource)){!a.policy.Da&&
nT(a.videoTrack)&&nT(a.audioTrack)&&QB(a.mediaSource)&&!a.mediaSource.Qg()&&(e=jT(a.audioTrack).i,e===a.i.i[e.info.id]&&(a.Z(),e=a.mediaSource,QB(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Pe.webkitSourceEndOfStream(e.Pe.EOS_NO_ERROR)),e=a.schedule,jD(iD(e)),e.B=cD()));e=a.policy.qo;f=a.policy.uq;d||!(0<e||f)||!QB(a.mediaSource)||nT(a.videoTrack)||nT(a.audioTrack)||(b.Zu(a.currentTime,f,e),c.Zu(a.currentTime,f,e));if(c=d)c=a.mediaSource,c=!(c.i?c.i.supports(0):VB());c&&g.cn(a.W)}}};
Kua=function(a){if(Yta(a.videoTrack))return a.Z(),!0;var b=a.u;if(1===b.l||2===b.l||3===b.l)return!0;if(a.policy.xc)return!1;if(b=a.B.i){b=a.I;var c=a.videoTrack,d=a.audioTrack;if(c.u.length||d.u.length){var e=0,f=aT(c.B).concat(aT(d.B));f=g.q(f);for(var h=f.next();!h.done;h=f.next())e+=h.value.l;c=c.i.info.l+d.i.info.l;e/=c;b=10<e?!0:10>c*(10-e)/vS(b)}else b=!0;(b=!b)||(b=a.videoTrack,b=0<b.u.length&&1===b.B.l.length&&tta(b.B).info.J<b.va)}if(b)return!0;if(!a.ra||!a.policy.Wb||10>a.currentTime||
360<a.videoTrack.i.info.Za().i)return!1;b=Vta(a.videoTrack,a.currentTime,a.policy.Wb)||Vta(a.audioTrack,a.currentTime,a.policy.Wb);return(0<a.videoTrack.u.length||0<a.audioTrack.u.length||OT(a,a.videoTrack,a.audioTrack)||OT(a,a.audioTrack,a.videoTrack))&&b};
Lua=function(a,b,c){if(c.Qg())return!0;if(!c.Pz())return!1;var d=b.Vg(),e;if(!(e=!d||6===d.info.type)&&(e=a.u)){e=a.u;var f;if(f=0!==e.l&&b===e.va)e=rT(e.I),f=d.info.Ia>(e?e.Ia:-1);e=!!f}if(e)return!1;e=d.info;f=jT(b);!f||f.Zd||jA(f,e)||c.abort();!c.At()||NB()?c.sD(e.i.info.containerType,e.i.info.mimeType):e.i.info.containerType!==c.At()&&a.Vc("ctu","ct."+NB()+";prev_c."+c.At()+";curr_c."+e.i.info.containerType);f=e.i.I;a.policy.il&&f&&(e=0+f.duration,f=-f.i,0===c.nw()&&e===c.EA()||c.EC(0,e),f!==
c.Lc()&&(c.Nr(f),bT&&Cta(a.audioTrack.B,c.SA())));if(a.i.u&&0===d.info.Ab&&(g.VA(d.info.i.info)||a.policy.yq)){if(null==c.Uo()){e=jT(b);if(!(f=!e||e.i!==d.info.i)){b:if(e=e.L,f=d.info.L,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.xb(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.Uo(),f=d.info.i.i,e=e!==f&&!g.xb(e,f);e&&a.Vc("initchg","it."+d.info.i.info.id+".ty."+d.info.type+".seg."+d.info.Ia);a.policy.Fc&&!e&&(g.VA(d.info.i.info)?(sz(RA(d),1836019574),sz(RA(d),1718909296)):(e=
new vz(RA(d)),Pz(e),zz(e,524531317,!0),d.i=d.i.split(e.start+e.i).Np),d.u=!1)}a.policy.Rh&&d.u&&(d.u=!1);e=a.C&&!!a.C.B&&b.i.info.audio;f=a.i.isManifestless||d.u;if(!(a.i.u&&0!==d.info.Ab||f&&!e)&&QT(a,c,d))return!0;if(e)return!1;e=a.currentTime+NT(a,b,!1);if(!(e=d.info.C>e)){a:if(a.Tb.push(d.info),a.policy.Ad&&(!d.info.Ab||d.info.Zd||10>d.info.C)&&a.Vc("sba",c.Eb({as:fA(d.info)})),e=d.u?d.info.i.i:null,f=MA(d.i),d.u&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=Mua(a,c,f,d.info,e),"s"===
e)a.Ra=0,e=!0;else{a.policy.hk||(c.abort(),zS(b));if("i"===e||"x"===e)Nua(a,"checked",e,d.info);else{if("q"===e&&(d.info.isVideo()?(e=a.policy,e.I=Math.floor(.8*e.I),e.va=Math.floor(.8*e.va),e.C=Math.floor(.8*e.C)):(e=a.policy,e.J=Math.floor(.8*e.J),e.Tb=Math.floor(.8*e.Tb),e.C=Math.floor(.8*e.C)),!c.Qg()&&!a.mediaSource.isView&&c.Zu(Math.min(a.currentTime,d.info.startTime),!0,5))){e=!1;break a}a.V("reattachrequired")}e=!1}e=!e}if(e)return!1;b.Pi(d);a.Z("Appended "+fA(d.info)+", buffered: "+BB(c.wf()));
return!0};
Nua=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"===c||"m"===c?(e="fmt.unparseable",d.i.C=e,d.i.info.video&&!OS(a.l)&&NS(a.l,d.i)):"i"===c&&(15>a.Ra?(a.Ra++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=lA(d);d.mrs=TB(a.mediaSource);d.origin=b;d.reason=c;LT(a,f,e,d)};
Oua=function(a,b,c){var d=a.i,e=!1;for(l in d.i){var f=qB(d.i[l].info.mimeType)||d.i[l].info.isVideo();if(c===f)if(f=d.i[l].index,!BA(f,b.Ia))f.Uy(b),e=!0;else if(d.Ra){e=b;var h=f.gj(e.Ia);h&&h.startTime!==e.startTime?(f.segments=[],f.Uy(e),e=!0):e=!1;e&&d.V("clienttemp","restMflIndex","1",!1)}}Psa(a.B,b,c,e);if(c)a:if(a=a.u,a.X&&(c=[],d=[],b.i&&(c=b.i.l,d=b.i.u),a.X.fC(b.startTime,a.l,c,d)),a.policy.Ca){if(a.policy.L){c=a.Y&&b.Ia===a.Y.Ia+1;a.Y=b;d=a.i&&b.Ia===a.i.Ia+1;d=a.i&&c&&d&&"stop"!==a.i.Ld.event&&
"predictStart"!==a.i.Ld.event;var l=b.Ld||null;f=a.I.i.index.uc()<=b.Ia;e=a.L.isManifestless&&a.policy.Ca;if(l){a.i={Ld:l,Ia:b.Ia};if(!c){GS(a,l,b.Ia);break a}if(d&&f&&e){GS(a,l,b.Ia);break a}"continue"===l.event||"stop"===l.event?HS(a,b):GS(a,l,b.Ia)}else d&&HS(a,b)}c=a.i&&a.u&&a.i.Ia===a.u.Ia-1;c=a.i&&c&&"stop"!==a.i.Ld.event&&"predictStart"!==a.i.Ld.event;a.u&&a.u.Ia<b.Ia&&(c?HS(a,a.u):a.W=!0);a.u=b}};
QT=function(a,b,c){c.info.i.hf();var d=c.info.i.i;if(null==d||b.Uo()===d)return!1;var e=d,f=b.pw();if(a.policy.Rh&&f&&b.isView()&&g.VA(c.info.i.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=$fa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Vc("fenc","1")}f=null;h=c.info.i.Vo(0);h.length&&(f=h[0].i[0]);a.policy.Xk&&b.abort();d=Mua(a,b,e,f,d);if("s"!==d)return Nua(a,"sepInit",d,c.info),!0;a.Z();return b.Qg()};
Mua=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(11===f.code)return"i";if(12===f.code)return"x";if(22!==f.code&&0!==f.message.indexOf("Not enough storage"))return g.xo(f),"u";c=BB(b.wf()).replace(/,/g,"_");d=g.qf(f.message);a.Vc("quex","br."+c+";t."+(a.mediaSource?b===a.mediaSource.l?"v":"a":"u")+";e."+d);return"q"}return UB(a.mediaSource)?"m":"s"};
xua=function(a,b){DS(b,"needkeyinfo",a.nP,a);DS(b,"error",a.MQ,a);DS(b,"avsyncissue",a.LQ,a);DS(b,"placeholderinfo",function(c){a.i.isManifestless&&Oua(a,c,b===a.videoTrack)});
DS(b,"placeholderrollback",function(c){a.i.isManifestless&&sC(a.i,c.Ia,b===a.videoTrack)});
DS(b,"segmentinfo",function(c){a.i.isManifestless&&Oua(a,c,b===a.videoTrack)});
DS(b,"localmediachange",a.NQ.bind(a))};
zua=function(a,b){b.subscribe("seekplayerrequired",function(c,d){a.L||a.V("seekplayerrequired",c,d)});
b.subscribe("ctmp",function(c,d){a.Vc(c,d,!1)});
b.subscribe("error",function(c,d,e){LT(a,c,d,e)});
b.subscribe("setcurrenttime",function(c){a.currentTime=c})};
NT=function(a,b,c){if(a.isSuspended)return 1;var d=b.i.info.audio?a.policy.J:a.policy.I;!a.policy.ib&&PS(a.l)&&(d=Math.max(d,b.i.info.audio?a.policy.Tb:a.policy.va));c&&(d+=a.policy.Db);var e=PS(a.l)?b.l?b.l.i.info.l:b.i.info.l:b.X;d/=e;0<a.policy.Kf&&a.mediaSource&&QB(a.mediaSource)&&(b=b.i.info.video?a.mediaSource.l:a.mediaSource.i)&&!b.Qg()&&(b=b.wf(),e=CB(b,a.currentTime),0<=e&&(b=a.currentTime-b.start(e),d+=Math.max(0,Math.min(b-a.policy.Kf,a.policy.No))));0<a.policy.C&&(d=Math.min(d,a.policy.C));
a.policy.He&&c&&!PS(a.l)&&(c=a.l,c=MS(c,g.ab(c.B))+MS(c,c.I.i[0]),c=a.policy.He*(c/uS(a.I)),c<d&&15>c&&a.Vc("bwcapped","1",!0),c=Math.max(c,15),d=Math.min(d,c));return d};
Eua=function(a){if(!a.Xa)return Infinity;var b=g.Ie(ST(a.Xa),function(d){return"ad"===d.namespace});
b=g.q(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.currentTime)return c.start/1E3;return Infinity};
Pua=function(a,b){(new vT(b,"cms",null,function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];return a.V.apply(a,["error"].concat(g.ma(d)))})).send()};
Qua=function(a,b){if(a.mediaSource&&a.mediaSource.l){b-=!isNaN(a.timestampOffset)&&a.policy.Ga?a.timestampOffset:0;a.currentTime!==b&&a.resume();if(a.B.i&&!UB(a.mediaSource)){var c=a.currentTime<=b&&b<a.currentTime+10,d=DB(a.mediaSource.l.wf(),a.currentTime+Fua);c&&d&&(a.B.i=!1)}a.B.i||(a.currentTime=b);g.cn(a.Ya)}};
Rua=function(a,b){var c=mT(a.videoTrack).find(function(d){return d.startTime>=b&&yua(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
yua=function(a,b,c){if(!(a.videoTrack.i.hf()&&a.audioTrack.i.hf()&&a.mediaSource&&a.mediaSource.l&&a.mediaSource.i))return!1;if(c&&a.i.isManifestless&&(-1===a.videoTrack.I||-1===a.audioTrack.I))return!0;var d=yS(a.videoTrack,b,c);if(isNaN(d))return!1;a=yS(a.audioTrack,a.policy.Xa?b:d,c);return isNaN(a)?!1:!0};
GT=function(a,b,c){b.i!==c&&(a.Z(),b.i=c)};
ET=function(a,b,c,d){if(!c.hf()&&!c.u&&Yz(c.l,a.policy)){if(d){d=a.I;var e=c.info,f=Isa(d,e.video?d.policy.xq:d.policy.Sj,e.l);d=d.policy.Vi&&e.video?Math.max(f,d.policy.Vi):f}else d=0;d=c.Vo(d);d=g.q(d);for(e=d.next();!e.done;e=d.next()){e=e.value;if("f"===e.i[0].i.info.i)return;f=PT(a,e);!hA(e.i[e.i.length-1])&&kT(b,f)}c.u=!0}};
LT=function(a,b,c,d){a.Ha()||(d=new g.JB(c,b,d),g.Qa(a),g.KB(d.details),a.V("error",d),"html5.invalidstate"!==c&&"fmt.unplayable"!==d.errorCode&&"fmt.unparseable"!==c&&b&&a.dispose())};
JT=function(a){zS(a.audioTrack);zS(a.videoTrack)};
Sua=function(a,b){var c=b.info.video?a.videoTrack:a.audioTrack;null!=c&&ET(a,c,b,!1)};
wua=function(a,b,c){b/=c;isNaN(a.timestampOffset)&&Tua(a,b-Math.min(b,a.policy.di));return(b-a.timestampOffset)*c};
Tua=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.Z(),a.u.J=a.timestampOffset,a.V("timestamp",a.timestampOffset),a.i.isManifestless&&!a.policy.Ga&&(a.i.l=a.timestampOffset))};
TT=function(a){this.i=a};
UT=function(){g.P.apply(this,arguments)};
VT=function(a,b,c,d){UT.call(this);var e=this;this.u=-1;this.i={};this.B=new g.J(this.C,0,this);g.H(this,this.B);this.l=new g.J(function(){e.Ha()||(e.B.start(Math.random()*c),e.l.start(b))},a,this);
g.H(this,this.l);d.subscribe("fairplay_next_need_key_info",this.I,this)};
Uua=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
Vua=function(a){var b=a.interval,c=a.Gu,d=a.AK,e=a.drmSessionId;this.url=a.url;this.interval=b;this.Gu=c;this.AK=d;this.drmSessionId=e};
Wua=function(a,b){this.statusCode=a;this.message=b;this.i=this.heartbeatParams=this.errorMessage=null;this.l={};this.nextFairplayKeyId=null};
Yua=function(a){var b=Ry(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=gz(b.slice(d+2));if(null==b)return null;a=new Wua(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.Qja(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new Vua({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Gu:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.i=c.split(",");if(c=b["Key-Ids"])a.l=Xua(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
Xua=function(a){if(!a)return{};a=a.split(";");var b={};g.zb(a,function(c){c=c.split(",");2===c.length&&(b[c[1]]=c[0])});
return b};
WT=function(a,b,c){c=void 0===c?"":c;g.F.call(this);this.message=a;this.requestNumber=b;this.l=c;this.onError=this.onSuccess=null;this.i=new g.wn(5E3,2E4,.2)};
Zua=function(a,b,c){a.onSuccess=b;a.onError=c};
ava=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.Ha())if(a.Z(),0!==e.status&&e.response)if(ax("drm_net_r",void 0,a.l),e=new Uint8Array(e.response),e=Yua(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else $ua(a,e)},
onError:function(e){$ua(a,e)}};
c&&(b=Od(b,"access_token",c));g.Yp(b,d);a.Z()};
$ua=function(a,b){if(!a.Ha())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
cva=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.Ha()){a.Z();ax("drm_net_r",void 0,a.l);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=g.$e(f.license)}catch(x){}if(0!==h||l){l=new Wua(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.q(f.authorizedFormats),r=p.next();!r.done;r=p.next())if(r=r.value,r.trackType&&r.keyId){var t=bva[r.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");r.isHdr&&(t+="HDR");h[t]||
(m.push(t),h[t]=!0);var u=null;try{u=g.$e(r.keyId)}catch(x){}u&&(n[g.pf(u,4)]=t)}}l.i=m;l.l=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.Ha())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.vF="Bearer "+d);g.Jq(c,"player/get_drm_license",b,e)};
ZT=function(a,b,c,d){g.P.call(this);this.videoData=a;this.u=b;this.Da=c;this.sessionId=d;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.L=this.Y=!1;this.B=null;this.Ca=[];this.I=[];this.ra=!1;this.i={};this.va=NaN;this.status="";this.W=!1;this.J=NaN;this.l=a.I;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.u.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Ga&&(a.vvt=this.videoData.Ga,this.videoData.mdxEnvironment&&(a.mdx_environment=
this.videoData.mdxEnvironment));this.u.W&&(a.authuser=this.u.W);this.u.pageId&&(a.pageid=this.u.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());if(this.videoData.ea("html5_send_device_type_in_drm_license_request")){var e;(e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Uc))?e[1]:"")&&(a.cdt=e)}this.C=a;this.C.session_id=d;this.X=!0;"widevine"===this.l.flavor&&(this.C.hdr="1");"playready"===this.l.flavor&&(b=Number(g.EC(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&
0<=b&&(this.C.mfpe=""+b),this.X=!1,this.videoData.ea("html5_playready_enable_non_persist_license")&&(this.C.pst="0"));this.videoData.ea("html5_ytlfe_use_py3_spork")&&(this.C.dlc3="1");this.baseUrl=g.MC(this.l)?Uua(c.initData).replace("skd://","https://"):this.l.u;this.fairplayKeyId=Md(this.baseUrl,"ek")||"";if(b=Md(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Aa=this.videoData.ea("html5_use_drm_retry");this.Ca=c.l;this.Z();XT(this,"sessioninit."+c.cryptoPeriodIndex);this.status="in"};
hva=function(a,b){XT(a,"createkeysession");a.status="gr";ax("drm_gk_s",void 0,a.videoData.ib);a.url=dva(a);try{a.B=b.createSession(a.Da,function(c){XT(a,c)})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.V("licenseerror","drm.unavailable",!0,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.B&&(eva(a.B,function(c,d){fva(a,c,d)},function(c){a.Ha()||(a.Z(),a.error("drm.keyerror",!0,c))},function(){a.Ha()||(a.Z(),XT(a,"onkyadd"),a.L||(a.V("sessionready"),a.L=!0))},function(c){gva(a,c)}),g.H(a,a.B))};
dva=function(a){var b=a.baseUrl;Efa(b)||a.error("drm.net",!0,"t.x");if(!Md(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.q(Object.keys(a.C));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Od(b,d,a.C[d]);return b};
iva=function(a){var b={};Object.assign(b,a.C);return b};
jva=function(a,b){b=new Vua({AK:g.pf(b),drmSessionId:a.sessionId});a.V("heartbeatparams",b)};
fva=function(a,b,c){if(!a.Ha())if(b){a.Z();XT(a,"onkmtyp."+c);a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":kva(a,b);return;default:a.V("ctmp","message_type","t."+c+";l."+b.byteLength)}a.Y||(ax("drm_gk_f",void 0,a.videoData.ib),a.Y=!0,a.V("newsession",a));if(a.videoData.ea("use_innertube_heartbeats_for_widevine")&&a.videoData.useInnertubeDrmService()&&a.W&&"widevine"===a.l.flavor)a.W&&"license-request"!==c&&XT(a,
"wvrenew.mt."+c,!0),jva(a,b);else{if(IC(a.l)&&(b=lva(b),!b))return;g.MC(a.l)&&!a.videoData.useInnertubeDrmService()&&(b=Qy(g.pf(b)));b=new WT(b,++a.requestNumber,a.videoData.ib);Zua(b,function(d,e){mva(a,d,e)},function(d,e,f,h){if(!a.Ha()){var l=!1,m=3;
void 0!==h&&400<=h&&500>h&&(m=g.T(a.u.experiments,"html5_license_server_error_retry_limit")||3);(h=d.i.l>=m)||(h=a.Aa&&36E4<(0,g.N)()-a.va);h&&(l=!0,e="drm.net.retryexhausted");a.Z();XT(a,"onlcsrqerr."+e+";"+f);a.error(e,l,f);a.shouldRetry(l,d)&&nva(a,d)}});
g.H(a,b);ova(a,b)}}else a.error("drm.unavailable",!1,"km.empty")};
kva=function(a,b){a.Z();XT(a,"sdpvrq");a.J=Date.now();if("widevine"!==a.l.flavor)a.error("drm.provision",!0,"e.flavor;f."+a.l.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.u.deviceParams);c=g.Id("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:Ry(b)}),responseType:"arraybuffer"};
g.Ht(c,b,3,500).then(yo(function(d){if(!a.Ha()){d=new Uint8Array(d.response);var e=Ry(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.V("ctmp","drminfo","provisioning"),f=(Date.now()-a.J)/1E3,a.J=NaN,a.V("ctmp","provs",""+f.toFixed(3)),a.B&&a.B.update(d)):(d=f&&f.error&&f.error.message,f="e.parse",d&&(f+=";m."+d),a.error("drm.provision",!0,f))}}),yo(function(d){a.Ha()||a.error("drm.provision",!0,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
gva=function(a,b){a.Ha()||0>=b.size||(b.forEach(function(c,d){var e=IC(a.l)?d:c;d=new Uint8Array(IC(a.l)?c:d);IC(a.l)&&pva(d);c=g.pf(d,4);pva(d);d=g.pf(d,4);a.i[c]?a.i[c].status=e:a.i[d]?a.i[d].status=e:a.i[c]={type:"",status:e}}),a.Z("Key statuses changed: "+qva(a,",")),XT(a,"onkeystatuschange"),a.status="kc",a.V("keystatuseschange",a))};
$T=function(a){var b;if(b=a.X&&null!=a.B)a=a.B,b=!(!a.i||!a.i.keyStatuses);return b};
ova=function(a,b){var c,d;a.status="km";ax("drm_net_s",void 0,a.videoData.ib);if(a.videoData.useInnertubeDrmService()){var e=new g.it(a.u.Mf),f={context:g.Hq(e.i||g.Iq())};f.drmSystem=rva[a.l.flavor];f.videoId=a.videoData.videoId;f.cpn=a.videoData.clientPlaybackNonce;f.sessionId=a.sessionId;f.licenseRequest=g.pf(b.message);f.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(f.isKeyRotated=!0,f.cryptoPeriodIndex=a.cryptoPeriodIndex);var h=!(null===(d=null===(c=a.videoData.l)||void 0===c?
void 0:c.Za())||void 0===d||!d.isHdr());a.videoData.ea("html5_request_only_hdr_or_sdr_keys")&&(f.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR");if(!f.context||!f.context.client){a.Z();a.error("drm.net",!0,"t.r;ic.0");return}if(h=a.u.deviceParams)f.context.client.deviceMake=h.cbrand,f.context.client.deviceModel=h.cmodel,f.context.client.browserName=h.cbr,f.context.client.browserVersion=h.cbrver,f.context.client.osName=h.cos,f.context.client.osVersion=h.cosver;f.context.user=
f.context.user||{};f.context.request=f.context.request||{};a.videoData.Ga&&(f.context.user.credentialTransferTokens=[{token:a.videoData.Ga,scope:"VIDEO"}]);f.context.request.mdxEnvironment=a.videoData.mdxEnvironment||f.context.request.mdxEnvironment;a.videoData.ub&&(f.context.user.kidsParent={oauthToken:a.videoData.ub});if(g.MC(a.l)){h=a.fairplayKeyId;for(var l=[],m=0;m<h.length;m+=2)l.push(parseInt(h.substring(m,m+2),16));f.fairplayKeyId=g.pf(l)}cva(b,f,e,g.dH(a.videoData))}else ava(b,a.url,a.videoData.oauthToken);
a.status="rs"};
mva=function(a,b,c){if(!a.Ha()){if(a.requestNumber!==c&&"widevine"===a.l.flavor&&((a.u.ea("html5_drm_ignore_out_of_order_responses")||a.u.ea("html5_drm_ignore_out_of_order_responses_cfl"))&&XT(a,"drmOOO."+a.requestNumber+"."+c,!0),a.u.ea("html5_drm_ignore_out_of_order_responses")))return;XT(a,"onlcsrsp");a.status="rr";0!==b.statusCode?a.error("drm.auth",!0,"t.f;c."+b.statusCode,b.errorMessage||void 0):(ax("drm_kr_s",void 0,a.videoData.ib),b.heartbeatParams&&b.heartbeatParams.url&&(a.videoData.ea("outertube_streaming_data_always_use_staging_license_service")&&
(c=a.l.u.match(/(.*)youtube.com/g))&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url),a.videoData.ea("html5_ytlfe_use_py3_spork")&&(b.heartbeatParams.url+="&dlc3=1")),b.heartbeatParams&&a.V("newlicense",b.heartbeatParams),b.i&&(a.I=b.i,a.W=!0,a.ra=Sh(a.I,function(d){return d.includes("HDR")})),b.l&&(a.i=Fb(b.l,function(d){return{type:d,
status:"unknown"}})),KC(a.l)&&!a.videoData.useInnertubeDrmService()?b.message=g.$e(Ry(b.message)):LC(a.l)&&a.videoData.useInnertubeDrmService()&&(b.message=Qy(g.pf(b.message))),a.B&&(a.Z(),XT(a,"updtks"),a.status="ku",a.B.update(b.message).then(function(){ax("drm_kr_f",void 0,a.videoData.ib);
if(!$T(a))if(XT(a,"ksApiUnsup"),JC(a.l)){var d=sva(a.I);480<g.fy[d]&&a.V("hdentitled",a)}else a.V("keystatuseschange",a)},function(d){d="msuf.req."+a.requestNumber+";msg."+g.qf(d.message);
a.error("drm.keyerror",!0,d)})),a.L&&(a.va=(0,g.N)()),g.MC(a.l)&&a.V("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId))}};
nva=function(a,b){var c=b.i.getValue();c=new g.J(function(){ova(a,b)},c);
g.H(a,c);c.start();g.xn(b.i);a.Z();XT(a,"rtyrq")};
tva=function(a,b){if(!$T(a)&&JC(a.l)&&!b)return"large";b=[];var c=!0;if($T(a))for(var d=g.q(Object.keys(a.i)),e=d.next();!e.done;e=d.next())e=e.value,"usable"===a.i[e].status&&b.push(a.i[e].type),"unknown"!==a.i[e].status&&(c=!1);if(!$T(a)||c)b=a.I;return sva(b)};
qva=function(a,b){for(var c=[],d=g.q(Object.keys(a.i)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.i[e].type+"_"+a.i[e].status);return c.join(b)};
uva=function(a){var b=a.status+".";return $T(a)?b+qva(a,"."):b+a.I.join(".")};
vva=function(a,b,c){a:{switch(b){case "highres":case "hd2880":b="UHD2";break;case "hd2160":case "hd1440":b="UHD1";break;case "hd1080":case "hd720":b="HD";break;case "large":case "medium":case "small":case "light":case "tiny":b="SD";break;default:c="";break a}c&&(b+="HDR");c=b}for(var d in a.i)if("output-restricted"===a.i[d].status&&(b=a.i[d].type,""===c||"AUDIO"===b||c===b))return!0;return!1};
wva=function(a,b){for(var c in a.i)if("usable"===a.i[c].status&&a.i[c].type===b)return!0;return!1};
XT=function(a,b,c){c=void 0===c?!1:c;a.Z();(c||g.vG(a.videoData)||"playready"===a.l.flavor&&a.videoData.ea("html5_log_playready_high_res"))&&a.V("ctmp","drmlog",b)};
pva=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};
sva=function(a){return g.fb(a,"UHD2")?"highres":g.fb(a,"UHD1")?"hd2160":g.fb(a,"HD")?"hd1080":g.fb(a,"HD720")?"hd720":"large"};
lva=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=kd(new DOMParser,g.fd(g.gc("Uses only text content."),b),"text/xml");return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(LP(Taa(a.childNodes[0].nodeValue)).buffer):null:null};
xva=function(a,b,c,d,e){var f;"playready"===e?f=lva(a):"fairplay"===e&&(f=Qy(g.pf(a)));f&&(a={format:"RAW",method:"POST",postBody:f,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Laa(c,d),g.Ht(c,a,3,500).then(function(h){h=new Uint8Array(h.response);(h=Yua(h))&&h.message&&b.update(h.message)}))};
aU=function(a,b,c,d,e){g.F.call(this);this.element=a;this.L=b;this.initData=c;this.i=d;this.l=e;this.sessionId="";this.J=this.I=this.u=this.C=null;this.B=new Yt(this);g.H(this,this.B);yva(this)};
yva=function(a){a.i?(a.B.N(a.i,"message",a.DL),a.B.N(a.i,"keystatuseschange",a.EL),a.i.closed&&a.i.closed.then(yo(function(){a.Ha()||cq("xboxone")&&a.u&&a.u("closed")}),null)):a.l&&(Zt(a.B,a.l,["mskeymessage",
"webkitkeymessage"],a.JI),Zt(a.B,a.l,["mskeyerror","webkitkeyerror"],a.II),Zt(a.B,a.l,["mskeyadded","webkitkeyadded"],a.HI))};
eva=function(a,b,c,d,e){a.C=b;a.u=c;a.I=d;a.J=e};
zva=function(a,b,c){g.xo(c);a.u&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.u(b))};
bU=function(a,b){g.F.call(this);this.element=a;this.i=b;this.I={};this.B=null;this.C=new Yt(this);this.u=this.l=null;g.H(this,this.C)};
cU=function(a){if(a.i.keySystemAccess)return a.i.keySystemAccess.createMediaKeys().then(function(b){a.Ha()||(a.l=b,a.element.setMediaKeys(b))});
HC(a.i)?a.u=new (GC())(a.i.keySystem):KC(a.i)?(a.u=new (GC())(a.i.keySystem),a.element.webkitSetMediaKeys(a.u)):Ava(a);return null};
Ava=function(a){Zt(a.C,a.element,["keymessage","webkitkeymessage"],a.HL);Zt(a.C,a.element,["keyerror","webkitkeyerror"],a.GL);Zt(a.C,a.element,["keyadded","webkitkeyadded"],a.FL)};
Cva=function(a,b){b=Bva(b,a.i.l);a=a.u.createSession("video/mp4",b);return new aU(null,null,null,null,a)};
Dva=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.u.createSession("video/mp4",b,c);return new aU(null,null,null,null,a)};
dU=function(a,b){var c=a.I[b.sessionId];!c&&a.B&&(c=a.B,a.B=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c};
Bva=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};
eU=function(a,b){g.F.call(this);this.i=g.De("video");this.l=null;this.C=[];this.B=new Yt(this);this.u=new FC("fairplay","com.youtube.fairplay","",b);this.u.l=a;g.H(this,this.B);this.init()};
fU=function(a,b,c){UT.call(this);var d=this;this.B=a;this.u=b;this.i=[];this.l=new g.J(function(){var e=d.i.shift().info;a:{var f=e.cryptoPeriodIndex;if(isNaN(f)&&0<d.u.values.length)f=!0;else{for(var h=g.q(d.u.values),l=h.next();!l.done;l=h.next())if(l.value.cryptoPeriodIndex===f){f=!0;break a}f=!1}}f||d.V("rotated_need_key_info_ready",e);0<d.i.length&&(e=d.i[0].time-(0,g.N)(),d.l.start(Math.max(0,e)))},0);
g.H(this,this.l);c.subscribe("widevine_set_need_key_info",this.C,this)};
gU=function(){this.keys=[];this.values=[]};
hU=function(a,b){return g.db(a.keys,function(c){return g.xb(b,c)})};
jU=function(a,b,c){g.P.call(this);this.element=a;this.videoData=b;this.u=c;this.i=this.videoData.I;this.drmSessionId=this.videoData.drmSessionId||g.lu();this.l=new gU;this.J=new gU;this.W=new gU;this.B=[];this.Ra=2;this.ra=new Yt(this);this.Sa=this.Da=!1;this.heartbeatParams=null;this.va=this.Aa=this.Ca=this.X=!1;this.I=null;this.Ga=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||GC()||OC(c.experiments);c=this.videoData.Vi;this.L="fairplay"===this.i.flavor||c?YF:Eva;this.C=new bU(this.element,this.i);
g.H(this,this.C);HC(this.i)&&(this.Y=new bU(this.element,this.i),g.H(this,this.Y));g.H(this,this.ra);c=this.element;this.i.keySystemAccess?this.ra.N(c,"encrypted",this.IL):Zt(this.ra,c,HC(this.i)?["msneedkey"]:["needkey","webkitneedkey"],this.UQ);Fva(this);a:switch(c=this.i,a=this.u.experiments,b=this.l,c.flavor){case "fairplay":19.2999<bq()?(a=c.J,c=c.I,c>=a&&(c=.75*a),b=.5*(a-c),c=new VT(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new fU(g.S(a,"disable_license_delay"),b,this);break a;default:c=
null}if(this.I=c)g.H(this,this.I),this.I.subscribe("rotated_need_key_info_ready",this.tF,this);this.Z("Created, key system "+this.i.keySystem+", final EME "+OC(this.u.experiments));iU(this,"cks"+this.i.Uf());c=this.i;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.C&&(this.Ya=new eU(this.videoData.Pc,this.u.experiments),g.H(this,this.Ya))};
Fva=function(a){var b=cU(a.C);b?b.then(yo(function(){Gva(a)}),yo(function(c){if(!a.Ha()){a.Z();
g.xo(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.V("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.Z(),iU(a,"mdkrdy"),a.X=!0);
a.Y&&(b=cU(a.Y))};
Hva=function(a,b,c){a.Sa=!0;c=new TS(b,c);a.u.ea("html5_eme_loader_sync")&&(a.J.get(b)||a.J.set(b,c));a.u.ea("html5_process_all_encrypted_events")?kU(a,c):a.u.ea("html5_eme_loader_sync")?kU(a,c):0!==a.B.length&&a.videoData.u&&a.videoData.u.i?lU(a):kU(a,c)};
Iva=function(a,b){iU(a,"onneedkeyinfo");g.S(a.u.experiments,"html5_eme_loader_sync")&&(a.W.get(b.initData)||a.W.set(b.initData,b));kU(a,b)};
Kva=function(a,b){if(HC(a.i)&&!a.Ca&&(b=nta(b),0!==b.length)){var c=new TS(b);a.Ca=!0;navigator.requestMediaKeySystemAccess("com.microsoft.playready",[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}]).then(function(d){d.createMediaKeys().then(function(e){Jva(a,e,c)})},null)}};
Jva=function(a,b,c){var d=b.createSession(),e=a.l.values[0],f=iva(e);d.addEventListener("message",function(h){h=new Uint8Array(h.message);xva(h,d,a.i.u,f,"playready")});
d.addEventListener("keystatuseschange",function(){"usable"in d.keyStatuses&&(a.Aa=!0,Lva(a,tva(e,a.Aa)))});
d.generateRequest("cenc",c.initData)};
kU=function(a,b){if(!a.Ha()){iU(a,"onInitData");if(g.S(a.u.experiments,"html5_eme_loader_sync")&&a.videoData.u&&a.videoData.u.i){var c=a.W.get(b.initData);b=a.J.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.J.remove(c);a.W.remove(c)}a.Z();iU(a,"initd."+b.initData.length+";ct."+b.contentType);if("widevine"===a.i.flavor)if(a.Da&&!a.videoData.isLivePlayback)a.u.ea("html5_process_all_encrypted_events")&&lU(a);else{if(!(g.S(a.u.experiments,"vp9_drm_live")&&a.videoData.isLivePlayback&&b.Ne)){a.Da=
!0;c=b.cryptoPeriodIndex;var d=b.i;rta(b);b.Ne||(d&&b.i!==d?a.V("ctmp","cpsmm","emsg."+d+";pssh."+b.i):c&&b.cryptoPeriodIndex!==c&&a.V("ctmp","cpimm","emsg."+c+";pssh."+b.cryptoPeriodIndex));a.V("widevine_set_need_key_info",b)}}else a.tF(b)}};
Gva=function(a){if(!a.Ha())if(g.S(a.u.experiments,"html5_drm_set_server_cert")&&!g.SD(a.u)){var b=a.C.setServerCertificate();b?b.then(yo(function(c){g.vG(a.videoData)&&a.V("ctmp","ssc",c)}),yo(function(c){a.V("ctmp","ssce","n."+c.name+";m."+c.message)})).then(yo(function(){mU(a)})):mU(a)}else mU(a)};
mU=function(a){a.Ha()||(a.X=!0,a.Z(),iU(a,"onmdkrdy"),lU(a))};
lU=function(a){if(a.Sa&&a.X&&!a.va){for(;a.B.length;){var b=a.B[0];if(a.l.get(b.initData))if("fairplay"===a.i.flavor)a.l.remove(b.initData);else{a.B.shift();continue}rta(b);break}a.B.length&&a.createSession(a.B[0])}};
Lva=function(a,b){var c=gy("auto",b,!1,"l");if(a.videoData.Vi){if(ey(a.L,c))return}else if(jy(a.L,b))return;a.L=c;a.V("qualitychange");a.Z();iU(a,"updtlq"+b)};
iU=function(a,b,c){c=void 0===c?!1:c;a.Ha()||(a.Z(),(g.vG(a.videoData)||c)&&a.V("ctmp","drmlog",b))};
Mva=function(a){var b;if(b=g.fq()){var c;b=!(null===(c=a.C.l)||void 0===c||!c.getMetrics)}b&&(b=a.C.getMetrics())&&iU(a,"mtr."+g.pf(b,3),!0)};
nU=function(a,b,c){g.P.call(this);this.videoData=a;this.i=b;this.playerVisibility=c;this.I=0;this.u=this.l=null;this.W=this.C=this.B=!1;this.L=this.J=0};
qU=function(a,b,c){var d=!1,e=a.I+3E4<(0,g.N)()||!1,f;if(f=a.videoData.ea("html5_pause_on_nonforeground_platform_errors")&&!e)f=a.playerVisibility,f=!!(f.jf()||f.isInline()||f.isBackground()||f.ir()||f.gr());f&&(c.nonfg="paused",e=!0,a.V("pausevideo"));f=a.videoData.l;if(!e&&!a.videoData.ea("html5_disable_codec_on_platform_errors_cfl")&&((null===f||void 0===f?0:oB(f))||(null===f||void 0===f?0:mB(f)))){if(a.videoData.ea("html5_disable_codec_on_platform_errors")){a.i.B.i.set(f.i,{jG:1,zC:Number.MAX_SAFE_INTEGER});
var h="cfalls"}else if(a.videoData.ea("html5_disable_codec_on_errors_with_exp_backoff")){h=a.i.B;var l=f.i,m=0;h.i.has(l)&&(m=h.i.get(l).jG);h.i.set(l,{jG:m+1,zC:Math.pow(2,m+1)});h="cfallexp"}else a.videoData.ea("html5_disable_codec_for_playback_on_error")&&a.l&&(l=a.l.l,m=f.i,l.Da.has(m)?l=!1:(l.Da.add(m),l.X=-1,JS(l,l.l),l=!0),l&&(h="cfallp"));h&&(d=e=!0,c[h]=f.i)}if(!e)return Nva(a,c);a.I=(0,g.N)();e=a.videoData;e=e.Da?e.Da.zG()<Date.now()/1E3+1800:!1;c.e=b;e&&(c.staleprog="1");oU(a,"qoe.restart",
c);if(e&&Ova(a))return pU(a),!0;cq("philips")&&Pva(a);!a.videoData.ea("html5_disable_codec_on_platform_errors")&&f&&oB(f)?(a.i.B.disableAv1(),d=!0):a.l?(b=a.l,c=(c=jT(b.videoTrack)||b.videoTrack.l)?c.i:b.videoTrack.i,c.L+=1,NS(b.l,c)):a.videoData.Da&&a.videoData.Da.BC();a.V("newelementrequired",d);return!0};
Nva=function(a,b){if(a.videoData.Ya)return!1;a.i.Ra+=1;if(10>=a.i.Ra)return!1;b.exiled=""+a.i.Ra;oU(a,"qoe.start15s",b);a.V("playbackstalledatstart");return!0};
Pva=function(a){if("GAME_CONSOLE"!==a.i.deviceParams.cplatform)try{window.close()}catch(b){}};
Ova=function(a){return a.B||"yt"!==a.i.Y?!1:a.videoData.Ya?25>a.videoData.tb:!a.videoData.tb};
pU=function(a){a.B||(a.B=!0,a.V("signatureexpiredreloadrequired"))};
Qva=function(a,b){if(a.u&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.u.Yi();b.details.merr=c?c.toString():"0";b.details.msg=a.u.xf()}};
Rva=function(a){return"net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&!!a.details.fmt_unav};
Tva=function(a,b,c){if("403"===b.details.rc){var d=b.errorCode;d="net.badstatus"===d||"manifest.net.retryexhausted"===d}else d=!1;if(!d)return!1;b.details.sts="18716";if(Ova(a))return c?(a.C=!0,a.V("releaseloader")):(b.i&&(b.details.e=b.errorCode,b.errorCode="qoe.restart",b.i=!1),oU(a,b.errorCode,b.details),pU(a)),!0;6048E5<(0,g.N)()-a.i.ib&&Sva(a,"signature");return!1};
Sva=function(a,b){try{window.location.reload();oU(a,"qoe.restart",{detail:"pr."+b});return}catch(c){}a.i.ea("tvhtml5_retire_old_players")&&g.SD(a.i)&&Pva(a)};
Uva=function(a,b){a.i.B.B=!1;oU(a,"qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});a.V("formatupdaterequested")};
rU=function(a,b,c,d){a.V("clienttemp",b,c,(void 0===d?{QC:!1}:d).QC)};
oU=function(a,b,c){a.V("qoeerror",b,c)};
Vva=function(a,b,c,d){this.videoData=a;this.i=b;this.reason=c;this.l=d};
sU=function(a,b,c){this.i=a;this.Y=b;this.l=c;this.X=this.J=this.L=this.B=this.u=this.I=this.W=this.C=0;this.playbackRate=1};
Xva=function(a,b,c){!g.S(a.i.experiments,"html5_tv_ignore_capable_constraint")&&g.SD(a.i)&&(c=c.compose(Wva(a,b)));return c};
Yva=function(a){return a.ea("html5_exponential_memory_for_sticky")?.5>pD(a.i.Kc,"sticky-lifetime")?"auto":tU():tU()};
Zva=function(a,b){var c=new dy(0,0,!1,"o");a.ea("html5_varispeed_playback_rate")&&1<a.playbackRate?(a=VC(a.i.B,b.i.videoInfos,a.playbackRate),c=new dy(0,a,!0,"o")):1<a.playbackRate&&(c=new dy(0,480,!0,"o"));return c};
Wva=function(a,b){if(g.SD(a.i)&&qy(a.i.B,ry.HEIGHT))a=b.i.videoInfos[0].Za().i;else{var c=!!b.i.i,d;GD(a.i)&&(d=window.screen&&window.screen.width?new g.ee(window.screen.width,window.screen.height):null);d||(d=a.i.Pj?a.i.Pj.clone():a.Y.Og());(ID||hS||c)&&d.scale(g.cE());a=d;rG(b.videoData)||gH(b.videoData);var e=b.i.videoInfos;if(e.length){b=.85;c=e[0].Za();4!==c.projectionType&&2!==c.projectionType&&3!==c.projectionType||ED||(b=.45);c=e[0];d=c.Za();e=g.q(e);for(var f=e.next();!f.done&&!(c=d=f.value,
d=d.Za(),null===a||d.width*b<a.width&&d.height*b<a.height);f=e.next());a="93"===c.yc()?gB(d.width,d.height):d.quality;a=gy("auto",a,!1,"r")}else a=YF;a=a.i}a&&(a=Math.max(a,360));return new dy(0,a,!1,"r")};
$va=function(a,b){return g.C(a,function d(){var e;return g.z(d,function(f){if(!b.i.i)return f.return(void 0);e=b.i.videoInfos;return f.return(XF(e))})})};
awa=function(a,b){return g.C(a,function d(){var e,f,h,l,m=this;return g.z(d,function(n){if(1==n.i)return(e=b.i.videoInfos.find(function(p){return oB(p)}))?null!==e.B?n.Mb(2):g.w(n,XF([e]),2):n.return(!1);
f=e.B||!1;h=b.i.videoInfos[0].video;l=Math.min(CC("1",h.fps),CC("1",30));m.l.Ua("mcrsp","itag."+e.id+";smooth."+ +e.I+";efficient."+ +f+";perf."+l);return n.return(f)})})};
cwa=function(a,b){if(!b.videoData.l||a.ea("html5_disable_performance_downgrade"))return!1;6E4<g.Ta()-a.W&&(a.C=0);a.C++;a.W=g.Ta();if(4!==a.C)return!1;bwa(a,b.videoData.l);return!0};
ewa=function(a,b,c,d){if(!b||!c||!b.videoData.l)return!1;var e=g.T(a.i.experiments,"html5_df_downgrade_thresh"),f=a.ea("html5_log_media_perf_info"),h=g.T(a.i.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.N)()-a.I?0:f||0<e||0<h))return!1;a.I=(0,g.N)();c=c.Av();if(!c)return!1;var l=c.droppedVideoFrames-a.J,m=c.totalVideoFrames-a.X;a.J=c.droppedVideoFrames;a.X=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&b.videoData.Tb&&a.l.Ua("ddf",
"dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames+";comp."+n);if(d)return a.u=0,a.B=0,!1;d=60<m?l/m:0;0<d&&(a.L=d);a.B=0<h&&60*d>h?a.B+1:0;if(!e||g.SD(a.i))return!1;a.u=d>e?a.u+1:0;if(3!==a.u)return!1;bwa(a,b.videoData.l);a.l.Ua("dfd",dwa());return!0};
fwa=function(a,b){return 0>=g.T(a.i.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.Za()&&32<b.Za().fps)?!1:3<=a.B?(a.B=0,!0):!1};
bwa=function(a,b){var c=b.Za().i-1;gwa(b.i,b.Za().fps,c);a=a.l;a.l&&fta(a.l.l,a.u)};
hwa=function(a,b){if(!b.i.i)return YF;var c=a.i.ea("html5_dynamic_av1_hybrid_threshold"),d=0,e=g.T(a.i.experiments,"html5_performance_cap_floor");a=a.i.i?240:e;b=g.q(b.i.videoInfos);for(e=b.next();!e.done;e=b.next()){var f=e.value;if(!c||!oB(f))if(e=CC(f.i,f.Za().fps),f=f.Za().i,Math.max(e,a)>=f){d=f;break}}return new dy(0,d,!1,"b")};
iwa=function(a,b){a.ea("html5_log_media_perf_info")&&(a.l.Ua("perfdb",dwa()),a.l.Ua("hwc",""+navigator.hardwareConcurrency,!0),b&&a.l.Ua("mcdb",b.i.videoInfos.filter(function(c){return!1===c.I}).map(function(c){return c.yc()}).join("-")))};
dwa=function(){var a=Fb(uU(),function(b){return""+b});
return g.KB(a)};
vU=function(a,b){g.F.call(this);this.provider=a;this.I=b;this.i=-1;this.C=!1;this.l=-1;this.playerState=new g.ZI;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.B=0;this.delay=new g.J(this.send,6E4,this);this.u=!1;g.H(this,this.delay)};
jwa=function(a){0<=a.i||(3===a.provider.l.getVisibilityState()?a.C=!0:(a.i=g.tR(a.provider),a.delay.start()))};
kwa=function(a){if(!(0>a.l)){var b=g.tR(a.provider),c=b-a.B;a.B=b;8===a.playerState.state?a.playTimeSecs+=c:g.gJ(a.playerState)&&!g.V(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
lwa=function(a){switch(a.i.jl){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}};
mwa=function(a){return(!a.ea("html5_health_to_gel")||a.i.ib+36E5<(0,g.N)())&&(a.ea("html5_health_to_gel_canary_killswitch")||a.i.ib+36E5<(0,g.N)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===lwa(a))?a.ea("html5_health_to_qoe"):!0};
wU=function(a,b,c,d,e){var f={format:"RAW"},h={};Lp(a)&&Mp()&&(c&&(h["X-Goog-Visitor-Id"]=c),b&&(h["X-Goog-PageId"]=b),d&&(h.Authorization="Bearer "+d),c||d||b)&&(f.withCredentials=!0);0<Object.keys(h).length&&(f.headers=h);e&&(f.onFinish=e);return 1<Object.keys(f).length?f:null};
xU=function(a,b,c,d,e,f,h){Mp()&&c.token&&(a=g.Id(a,{ctt:c.token,cttype:c.dD,mdx_environment:c.mdxEnvironment}));e?(null==b?b={}:(c=g.Hp(a),Object.keys(c).includes("cpn")),h?ht(a,b):f?gt(a,b):ft(a,b)):b?(f=g.Hp(a),Object.keys(f).includes("cpn"),g.Yp(a,b)):g.tq(a,d)};
g.zU=function(a){g.F.call(this);var b=this;this.provider=a;this.i={};this.sequenceNumber=1;this.Ra=NaN;this.od="N";this.I=this.tb=this.Ya=this.Ma=this.u=0;this.va=this.ub="";this.Xa=this.X=NaN;this.Sa=0;this.Db=-1;this.ib=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Da=this.ra=this.isOffline=this.Y=!1;this.Wb=[];this.L=null;this.W=this.Aa=this.B=!1;this.l=-1;this.Ca=!1;this.Tb=new g.J(this.vO,750,this);this.J=this.adCpn="";this.adFormat=void 0;this.xc=0;g.H(this,this.Tb);(a=navigator.getBattery?
navigator.getBattery():null)&&a.then&&a.then(function(c){b.L=c});
g.yU(this,0,"vps",["N"])};
g.yU=function(a,b,c,d){var e=a.i[c];e||(e=[],a.i[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
AU=function(a,b){var c=a.provider.l.getCurrentTime();g.yU(a,b,"cmt",[c.toFixed(3)]);c=a.provider.l.Gl();if(a.C&&1E3*c>a.C.UH+100&&a.C){var d=a.C,e=d.isAd;a.Ga=1E3*b-d.ZS-(1E3*c-d.UH)-d.QS;a.Ua("gllat","l."+a.Ga.toFixed()+";prev_ad."+ +e);delete a.C}};
BU=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.tR(a.provider);var c=a.provider.l.Bw();if(!isNaN(a.X)&&!isNaN(c.l)){var d=c.l-a.X;0<d&&g.yU(a,b,"bwm",[d,(c.B-a.Xa).toFixed(3)])}isNaN(a.X)&&c.l&&a.isOffline&&nwa(a,!1);a.X=c.l;a.Xa=c.B;isNaN(c.bandwidthEstimate)||g.yU(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.videoData.Tb&&c.i&&a.Ua("bwinfo",c.i);a.L&&g.yU(a,b,"bat",[a.L.level,a.L.charging?"1":"0"]);d=a.provider.l.getVisibilityState();a.Db!==d&&(g.yU(a,b,"vis",[d]),a.Db=d);AU(a,b);(d=owa(a.provider))&&
d!==a.Sa&&(g.yU(a,b,"conn",[d]),a.Sa=d);pwa(a,b,c)};
pwa=function(a,b,c){if(!isNaN(c.Do)){var d=c.Do;c.u<d&&(d=c.u);g.yU(a,b,"bh",[d.toFixed(3)])}};
CU=function(a){for(var b=0,c=g.q(Object.keys(a.i)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(Yg(a.i[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.J(a.reportStats,0,a)).start()};
qwa=function(a){a.provider.videoData.Jc&&DU(a,"prefetch");a.provider.videoData.tb&&a.Ua("reload","r."+a.provider.videoData.reloadReason+";ct."+a.provider.videoData.tb);a.provider.videoData.xc&&DU(a,"monitor");a.provider.videoData.isLivePlayback&&DU(a,"live");a.provider.videoData.Bh&&a.Ua("ctrl",a.provider.videoData.Bh,!0);if(a.provider.videoData.jg){var b=a.provider.videoData.jg.replace(/,/g,"_");a.Ua("ytp",b,!0)}a.provider.videoData.RE&&(b=a.provider.videoData.RE.replace(/,/g,"."),a.Ua("ytrexp",
b,!0));if(!g.S(a.provider.i.experiments,"html5_disable_gpu_reporting")){var c=a.provider.i.experiments;b=a.provider.videoData;c=g.S(c,"enable_white_noise")||g.S(c,"enable_webgl_noop")||g.S(c,"enable_gpu_logging");var d=g.UG(b)||g.SG(b)||g.TG(b)||g.VG(b),e=b.u&&oB(g.ab(b.u.videoInfos))&&/^g/.test(b.clientPlaybackNonce);b=/^gp/.test(b.clientPlaybackNonce);(c||d||b||e)&&(b=(0,g.EU)())&&(a.i.gpu=[b])}a.Ra=Bo(function(){a.reportStats()},1E4)};
rwa=function(a,b,c,d){var e=a.provider.l.getCurrentTime();c=[c,e.toFixed(3)];d&&c.push(d);g.yU(a,b,"error",c);a.W=!0};
swa=function(a){0<=a.l||(a.provider.i.Pc||3!==a.provider.l.getVisibilityState()?a.l=g.tR(a.provider):a.Ca=!0)};
DU=function(a,b){var c=a.i.cat||[];c.push(b);a.i.cat=c};
nwa=function(a,b){a.isOffline=b;g.yU(a,g.tR(a.provider),"is_offline",[a.isOffline?"1":"0"]);(b=a.provider.videoData.cotn)&&!a.i.cotn&&(a.i.cotn=[b])};
twa=function(a,b,c,d,e){var f=g.tR(a.provider);1===b&&g.yU(a,f,"vps",[a.od]);var h=a.i.xvt||[];h.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.i.xvt=h};
uwa=function(a){this.provider=a;this.J=!1;this.i=0;this.B=-1;this.lastUpdateTime=NaN;this.l=0;this.segments=[];this.I=this.C=0;this.W=this.provider.df().volume;this.L=this.provider.df().muted;this.u=FU(this.provider)};
GU=function(a){a.u.startTime=a.l;a.u.endTime=a.i;a.segments.length&&g.ab(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.u:a.segments.length&&a.u.isEmpty()||a.segments.push(a.u);a.C+=a.i-a.l;a.u=FU(a.provider);a.l=a.i};
vwa=function(a){return a.C+a.provider.l.getCurrentTime()-a.l};
wwa=function(a){a.segments.length&&a.i===a.l||GU(a);var b=a.segments;a.segments=[];return b};
ywa=function(a){xwa(a);a.I=Bo(function(){a.update()},100);
a.lastUpdateTime=g.tR(a.provider);a.u=FU(a.provider)};
xwa=function(a){window.clearInterval(a.I);a.I=NaN};
zwa=function(a,b,c){c-=a.lastUpdateTime;return b===a.i&&.5<c};
HU=function(a,b,c,d){this.segments=[];this.experimentIds=[];this.Ca=this.Db=this.isFinal=this.kd=this.ib=this.autoplay=this.autonav=!1;this.xc="yt";this.B=this.I=null;this.sendVisitorIdHeader=this.Aa=!1;this.pageId="";this.u="watchtime"===c;this.C="playback"===c;this.ub="delayplay"===c;this.tb="atr"===c;this.ld="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.tb?"/api/stats/"+c:"//"+b.Qj+"/api/stats/"+c;this.Qd=!b.ea("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.C&&b.pfpChazalUi&&
a.C;this.Gc=b.ea("embeds_enable_intersection_observer_v2");d&&(this.Db=d.fs,d.rtn&&(this.B=d.rtn),this.u?(this.playerState=d.state,0<d.rti&&(this.I=d.rti)):(this.td=d.mos,this.Ad=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Fc=d.inview),d.size&&(this.Ec=d.size));this.deviceParams=g.Ub(b.deviceParams);this.Xc=b.Xa;this.experimentIds=b.experiments.experimentIds;this.va=b.Ad;this.xc=b.Y;this.region=b.region;this.userAge=b.userAge;this.Ra=b.Bd;this.di=zp();
this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.W=g.S(b.experiments,"vss_pings_using_networkless");this.X=g.S(b.experiments,"vss_send_then_write");this.Ih=g.S(b.experiments,"vss_final_ping_send_and_write");this.pageId=b.pageId;b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.accessToken=g.dH(a);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=cH(a);this.autonav=a.pj||this.autonav;this.contentVideoId=aH(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.ib=
a.C;a.Sa&&(this.J=a.Sa,this.Xa=a.Zh);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.i=a.cq;this.ra=a.Wb;a.l&&(this.videoFormat=a.l.yc(),a.J&&a.J.yc()!==this.videoFormat&&(this.Ya=a.J.yc()));a.i&&ly(a.i)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.Qd?"embedded_unbranded":$G(a);this.Ca=a.He;this.Jc=a.il;if(b=LG(a))this.pe=b;this.Kc=a.eq;this.eventId=a.eventId;this.playlistId=a.ZE||a.playlistId;this.Bh=a.Bh;this.jg=a.jg;this.Wc=a.hq;this.subscribed=a.subscribed;this.videoId=
a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.Pc=a.wN;this.referrer=a.referrer;this.Da=a.PE||a.WE;this.Ga=a.uq;this.Ma=a.xN;this.userGenderAge=a.userGenderAge;this.Y=a.iN};
IU=function(a,b){return wU(a.uri,a.pageId,a.sendVisitorIdHeader?a.visitorData:void 0,a.accessToken,b)};
Awa=function(a,b){return function(){var c=a.uri,d=JU(a),e=IU(a),f=a.W,h=a.X;d.cmt=d.len;d.lact="0";var l=b().toFixed(3);d.rt=Number(l).toString();c=g.Id(c,d);f?(null==e&&(e={}),h?gt(c,e):ft(c,e)):e?g.Yp(c,e):g.tq(c)}};
JU=function(a){var b={ns:a.xc,el:a.eventLabel,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.l(a.i),ei:a.eventId,fmt:a.videoFormat,fs:a.Db?"1":"0",rt:a.l(a.Bd),of:a.Pc,adformat:a.adFormat,content_v:a.contentVideoId,euri:a.Xc,lact:a.di,live:a.pe,cl:(365664078).toString(),mos:a.td,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.Ad};a.adQueryId&&(b.aqi=a.adQueryId);a.subscribed&&(b.subscribed="1");g.Sa(b,a.deviceParams);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay=
"1");a.ib&&(b.dni="1");a.isFinal&&(b["final"]="1");a.Ca&&(b.splay="1");a.ra&&(b.delay=a.ra);a.va&&(b.hl=a.va);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.Ra&&(b.uga=a.Ra+a.userAge);void 0!==a.Wb&&(b.len=a.l(a.Wb));!a.u&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.B&&(b.rtn=a.l(a.B));a.Da&&(b.feature=a.Da);a.playlistId&&(b.list=a.playlistId);a.Bh&&(b.ctrl=a.Bh);a.jg&&(b.ytr=a.jg);a.Wc&&(b.ssrt="1");a.Ya&&(b.afmt=a.Ya);a.offlineDownloadUserChoice&&
(b.ODUC=a.offlineDownloadUserChoice);a.Tb&&(b.lio=a.l(a.Tb));a.u?(b.idpj=a.Jc,b.ldpj=a.Kc,null!=a.I&&(b.rti=a.l(a.I)),a.Y&&(b.ald=a.Y)):void 0!==a.adType&&(b.at=a.adType);a.Ec&&(a.C||a.ub||a.u&&a.Gc)&&(b.size=a.Ec);null!=a.Fc&&(a.C||a.ub||a.u&&a.Gc)&&(b.inview=a.l(a.Fc));a.u&&(b.volume=KU(a,g.Oc(a.segments,function(d){return d.volume})),b.muted=KU(a,g.Oc(a.segments,function(d){return d.muted?1:0})),b.st=KU(a,g.Oc(a.segments,function(d){return d.startTime})),b.et=KU(a,g.Oc(a.segments,function(d){return d.endTime})),
Sh(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=KU(a,g.Oc(a.segments,function(d){return d.playbackRate}))),Sh(a.segments,function(d){return"-"!==d.i})&&(b.als=g.Oc(a.segments,function(d){return d.i}).join(",")));
Sh(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=KU(a,g.Oc(a.segments,function(d){return d.visibilityState})));
Sh(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=KU(a,g.Oc(a.segments,function(d){return d.connectionType})));
Sh(a.segments,function(d){return 0!==d.l})&&(b.blo=KU(a,g.Oc(a.segments,function(d){return d.l})));
Sh(a.segments,function(d){return"-"!==d.B})&&(b.cc=g.Oc(a.segments,function(d){return d.B}).join(","));
Sh(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Oc(a.segments,function(d){return d.clipId}).join(","));
if(Sh(a.segments,function(d){return!!d.u})){var c="au";
a.C&&(c="au_d");b[c]=g.Oc(a.segments,function(d){return d.u}).join(",")}Mp()&&a.J&&(b.ctt=a.J,b.cttype=a.Xa,b.mdx_environment=a.mdxEnvironment);
a.ld&&(b.etype=void 0!==a.L?a.L:0);a.Ga&&(b.uoo=a.Ga);a.Ma&&(b.upt=a.Ma);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=Bwa[a.livingRoomAppMode]||a.livingRoomAppMode);return b};
KU=function(a,b){return g.Oc(b,a.l).join(",")};
LU=function(a){g.F.call(this);this.provider=a;this.currentPlayerState="paused";this.l=NaN;this.I=[10,10,10,40];this.L=this.J=0;this.ra=this.Y=this.Ca=this.va=this.X=this.W=this.u=!1;this.B=this.C=NaN;this.i=new uwa(a)};
Ewa=function(a){if(!a.u){g.S(a.provider.i.experiments,"disable_embedpage_playback_logging")||16623!==a.provider.videoData.Hu||zo(Error("Playback for EmbedPage"));var b=MU(a,"playback");a.I=[10+a.provider.videoData.il,10,10,40+a.provider.videoData.eq-a.provider.videoData.il,40];ywa(a.i);b.B=NU(a,!0);a.provider.videoData.enableServerStitchedDai&&0<a.B&&(b.i-=a.B);b.send();if(a.provider.videoData.bp){b=a.provider.i;var c=a.provider.videoData;c={html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,
ei:c.eventId,ptk:c.bp,oid:c.DK,ptchn:c.BK,pltype:c.EK,content_v:aH(c)};b=g.Id(b.va+"ptracking",c);OU(a,b)}a.provider.videoData.Pj&&(PU(a,"playback"),a.C||Cwa(a));a.provider.videoData.Wb||Dwa(a);a.u=!0;a=a.i;a.i=a.provider.l.getCurrentTime();a.lastUpdateTime=g.tR(a.provider);!(0===a.l&&5>a.i)&&2<a.i-a.l&&(a.l=a.i);a.J=!0}};
NU=function(a,b,c){c=void 0===c?NaN:c;var d=g.tR(a.provider);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.l=g.Ao(function(){if(!a.Ha()){a.l=NaN;a.i.update();var h=wwa(a.i),l=Fwa(a,h);b&&(l.I=f);var m=a.provider.ea("html5_expanded_max_vss_pings")?1E3:400;m=a.L>m;!(1<h.length)&&h[0].isEmpty()||m||(l.B=NU(a,!0,f));l.send();a.L++}},1E3*(f-d));
return f};
MU=function(a,b){var c=a.provider;c=Object.assign(c.df(),c.videoData.df());g.Sa(c,{state:a.currentPlayerState});b=new HU(a.provider.videoData,a.provider.i,b,c);b.i=a.provider.l.getCurrentTime();a.provider.videoData.isLivePlayback||(b.Wb=a.provider.l.getDuration());a.provider.videoData.i&&(c=a.provider.videoData.i.Vf(b.i))&&(b.Tb=c-b.i);b.Bd=g.tR(a.provider);b.segments=[FU(a.provider)];return b};
Fwa=function(a,b){var c=MU(a,"watchtime");if(a.provider.videoData.enableServerStitchedDai&&0<a.B){for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.B,e.endTime-=a.B;c.i-=a.B}else c.i=a.i.i;c.segments=b;return c};
QU=function(a){a.i.update();return Fwa(a,wwa(a.i))};
Dwa=function(a){a.provider.videoData.remarketingUrl&&!a.va&&(OU(a,a.provider.videoData.remarketingUrl),a.va=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.Ca&&(OU(a,a.provider.videoData.youtubeRemarketingUrl),a.Ca=!0);a.provider.videoData.googleRemarketingUrl&&!a.Y&&(OU(a,a.provider.videoData.googleRemarketingUrl),a.Y=!0);a.provider.videoData.ppvRemarketingUrl&&!a.ra&&(OU(a,a.provider.videoData.ppvRemarketingUrl),a.ra=!0);Gwa(a)};
Hwa=function(a){if(!a.Ha()&&a.u){a.currentPlayerState="paused";var b=QU(a);b.isFinal=!0;b.send();g.Co(a.C);a.dispose()}};
Cwa=function(a){a.C=Bo(function(){PU(a,"heartbeat")},3E4)};
PU=function(a,b){var c=a.provider.i,d=a.provider.videoData,e={ns:c.Y,el:$G(d),eurl:c.Xa,fmt:d.l?d.l.yc():0,html5:1,list:d.playlistId,cpn:d.clientPlaybackNonce,ei:d.eventId,ps:c.playerStyle,noflv:1,st:a.provider.l.getCurrentTime(),video_id:d.videoId,metric:b};cH(d)&&(e.autoplay="1");"heartbeat"===b&&(e.tpmt=vwa(a.i));Object.assign(e,c.deviceParams);OU(a,g.Id(c.va+"live_204",e))};
Iwa=function(a,b,c){a.W||(c||(c=MU(a,"atr")),c.Sa=b,c.send(),a.W=!0)};
Gwa=function(a){a.provider.videoData.L.eventLabel=$G(a.provider.videoData);a.provider.videoData.L.playerStyle=a.provider.i.playerStyle;a.provider.videoData.Rf&&(a.provider.videoData.L.feature="pyv");a.provider.videoData.L.vid=a.provider.videoData.videoId;var b=a.provider.videoData.L;a=a.provider.videoData;a=a.isAd()||!!a.Rf;b.isAd=a};
OU=function(a,b){var c=g.dH(a.provider.videoData),d=a.provider.ea("web_player_vss_pageid_header")?a.provider.i.pageId:void 0,e=a.provider.i.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,f=g.S(a.provider.i.experiments,"vss_pings_using_networkless"),h=g.S(a.provider.i.experiments,"vss_send_then_write");c=wU(b,d,e,c,void 0);xU(b,c,{token:a.provider.videoData.Sa,dD:a.provider.videoData.Zh,mdxEnvironment:a.provider.videoData.mdxEnvironment},void 0,f,h)};
Jwa=function(){this.endTime=this.startTime=-1;this.B="-";this.playbackRate=1;this.visibilityState=0;this.u="";this.volume=this.connectionType=this.l=0;this.muted=!1;this.i=this.clipId="-"};
RU=function(a,b,c,d){this.videoData=a;this.i=b;this.l=c;this.df=d;this.u=void 0};
g.tR=function(a){return Kwa(a)()};
Kwa=function(a){if(!a.u){var b=g.Ra(function(d){var e=(0,g.N)();d&&631152E6>=e&&(g.xo(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},g.S(a.i.experiments,"html5_validate_yt_now")),c=b();
a.u=function(){return Math.round(b()-c)/1E3};
a.l.eC()}return a.u};
owa=function(a){if(navigator.connection&&navigator.connection.type)return Lwa[navigator.connection.type]||Lwa.other;if(g.SD(a.i)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
FU=function(a){var b=new Jwa;b.B=a.df().cc||"-";b.playbackRate=a.l.getPlaybackRate();var c=a.l.getVisibilityState();0!==c&&(b.visibilityState=c);a.i.Wb&&(b.l=1);c=a.l.getAudioTrack();c.i&&c.i.id&&"und"!==c.i.id&&(b.u=c.i.id);b.connectionType=owa(a);b.volume=a.df().volume;b.muted=a.df().muted;b.clipId=a.df().clipid||"-";b.i=a.videoData.IE||"-";return b};
g.SU=function(a){g.F.call(this);var b=this;this.provider=a;this.l=this.qoe=this.i=null;this.vg=void 0;this.u=new Map;this.provider.videoData.isValid()&&!this.provider.videoData.xg&&(this.i=new LU(this.provider),g.H(this,this.i),this.qoe=new g.zU(this.provider),g.H(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.vg=this.provider.videoData.clientPlaybackNonce)&&this.u.set(this.vg,this.i));mwa(this.provider)&&(this.l=new vU(this.provider,function(c){b.Ua("h5h",c)}),g.H(this,this.l))};
Mwa=function(a){var b;a.provider.videoData.enableServerStitchedDai&&a.vg?null===(b=a.u.get(a.vg))||void 0===b?void 0:GU(b.i):a.i&&GU(a.i.i)};
Nwa=function(a,b,c,d){a.qoe&&(a=a.qoe,g.yU(a,g.tR(a.provider),"ad_playback",[b,c,d]))};
Owa=function(a,b){a.i&&Iwa(a.i,b)};
Pwa=function(a){if(!a.i)return null;var b=MU(a.i,"atr");return function(c){a.i&&Iwa(a.i,c,b)}};
Qwa=function(a,b,c,d){c.adFormat=c.Ad;var e=b.l;b=new LU(new RU(c,b.i,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Gl:function(){return e.Gl()},
Bw:function(){return e.Bw()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
It:function(){return e.It()},
getVisibilityState:function(){return e.getVisibilityState()},
eC:function(){e.eC()},
mu:function(){e.mu()}},b.df));
b.B=d;g.H(a,b);return b};
Rwa=function(){this.Do=0;this.C=this.B=this.l=this.u=NaN;this.i="";this.bandwidthEstimate=NaN};
Swa=function(){this.l=g.rw;this.i=[]};
Uwa=function(a,b,c){var d=[];for(b=Twa(a,b);b<a.i.length;++b){var e=a.i[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
Vwa=function(a,b){var c=[];a=g.q(a.i);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
Wwa=function(a){return a.i.slice(Twa(a,0x7ffffffffffff),a.i.length)};
Twa=function(a,b){a=vb(a.i,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
Xwa=function(a,b){var c=NaN;a=g.q(a.i);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};
Ywa=function(a,b){a.i=a.i.filter(function(c){return!b.has(c)})};
TU=function(a,b,c,d){g.F.call(this);this.X=a;this.Y=b;this.J=c;this.L=d;this.u=NaN;this.C=this.I=this.started=!1;this.l=[];this.W=new g.J(this.bl,250,this);g.H(this,this.W);this.B=new g.J(this.bl,0,this);g.H(this,this.B);this.i=new Swa};
ST=function(a){return a.Ha()?[]:a.i.i};
Zwa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.L(g.tw(d.namespace),d):a.L(g.uw(d.namespace),d)}};
$wa=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.ma(new Uint8Array(c))));a.close()}return b};
axa=function(a){this.l=this.mediaTime=NaN;this.u=this.i=!1;this.B=.001;g.SD(a)&&g.T(a.experiments,"tvhtml5_min_has_advanced_secs_float")&&(this.B=g.T(a.experiments,"tvhtml5_min_has_advanced_secs_float"))};
UU=function(a,b){return b>a.mediaTime+a.B&&b<a.mediaTime+5};
VU=function(a,b,c,d){if(d=1<d)a.u=!0;if(a.i)b!==a.mediaTime&&(a.i=!1);else if(0<b&&a.mediaTime===b)return c-a.l>(d||!a.u?1500:400);a.mediaTime=b;a.l=c;return!1};
bxa=function(a,b){this.videoData=a;this.i=b};
cxa=function(a,b,c){return dia(b,c).then(function(){return Kt(new bxa(b,b.u))},function(d){d instanceof Error&&zo(d);
d=b.isLivePlayback&&!g.WC(a.B,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.va,drm:""+ +tG(b),f18:""+ +(0<=b.Yj.indexOf("itag=18")),c18:""+ +uB('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.i&&(tG(b)?(e.f142=""+ +!!b.i.i["142"],e.f149=""+ +!!b.i.i["149"],e.f279=""+ +!!b.i.i["279"]):(e.f133=""+ +!!b.i.i["133"],e.f140=""+ +!!b.i.i["140"],e.f242=""+ +!!b.i.i["242"]),e.cAVC=""+ +vB('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +vB('audio/mp4; codecs="mp4a.40.2"'),
e.cVP9=""+ +vB('video/webm; codecs="vp9"'));if(b.I){e.drmsys=b.I.keySystem;var f=0;b.I.i&&(f=Object.keys(b.I.i).length);e.drmst=""+f}return new g.JB(d,!0,e)})};
dxa=function(a){this.C=a;this.u=this.l=0;this.B=new VR(50)};
XU=function(a,b,c){g.P.call(this);this.videoData=a;this.experiments=b;this.L=c;this.l=[];this.B=0;this.u=!0;this.I=!1;this.J=0;c=new exa;"ULTRALOW"===a.latencyClass&&(c.B=!1);a.xc?c.l=3:g.QG(a)&&(c.l=2);g.S(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.L=!0);var d=DG(a);c.C=2===d||-1===d;c.C&&(c.Y++,21530001===BG(a)&&(c.I=g.T(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(cq("trident/")||cq("edge/"))d=g.T(b,"html5_platform_minimum_readahead_seconds")||3,c.u=Math.max(c.u,
d);g.T(b,"html5_minimum_readahead_seconds")&&(c.u=g.T(b,"html5_minimum_readahead_seconds"));g.T(b,"html5_maximum_readahead_seconds")&&(c.W=g.T(b,"html5_maximum_readahead_seconds"));g.S(b,"html5_force_adaptive_readahead")&&(c.B=!0);g.T(b,"html5_allowable_liveness_drift_chunks")&&(c.i=g.T(b,"html5_allowable_liveness_drift_chunks"));g.T(b,"html5_readahead_ratelimit")&&(c.X=g.T(b,"html5_readahead_ratelimit"));switch(BG(a)){case 21530001:c.i=(c.i+1)/5,"LOW"===a.latencyClass&&(c.i*=2),c.J=g.S(b,"html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.C=1!==this.policy.l;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.xc&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(BG(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.C&&b++;this.i=WU(this,b);this.Z()};
fxa=function(a,b){var c=a.i;(void 0===b?0:b)&&a.policy.J&&3===DG(a.videoData)&&--c;return YU(a)*c};
$U=function(a,b){var c=ZU(a),d=a.policy.i;a.I||(d=Math.max(d-1,0));a=d*YU(a);return b>=c-a};
ZU=function(a){return Math.max(a.L()-fxa(a,!0),a.videoData.fd())};
gxa=function(a,b,c){b=$U(a,b);c||b?b&&(a.u=!0):a.u=!1;a.C=2===a.policy.l||3===a.policy.l&&a.u};
hxa=function(a,b){b=$U(a,b);a.I!==b&&a.V("livestatusshift",b);a.I=b};
YU=function(a){return a.videoData.i?rC(a.videoData.i)||5:5};
WU=function(a,b){b=Math.max(Math.max(a.policy.Y,Math.ceil(a.policy.u/YU(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.W/YU(a))),b)};
exa=function(){this.Y=1;this.u=0;this.W=Infinity;this.X=0;this.B=!0;this.i=2;this.l=1;this.C=!1;this.I=NaN;this.J=this.L=!1};
cV=function(a,b,c,d,e){g.F.call(this);this.u=a;this.videoData=b;this.V=c;this.visibility=d;this.L=e;this.l=this.B=null;this.J=this.i=0;this.I={};this.playerState=new g.ZI;this.C=new g.J(this.W,1E3,this);g.H(this,this.C);this.Da=new aV({delayMs:g.T(this.u.experiments,"html5_seek_timeout_delay_ms")});this.va=new aV({delayMs:g.T(this.u.experiments,"html5_long_rebuffer_threshold_ms")});this.Ga=bV(this,"html5_seek_set_cmt");this.Ca=bV(this,"html5_seek_jiggle_cmt");this.Aa=bV(this,"html5_seek_new_elem");
this.Ra=bV(this,"html5_unreported_seek_reseek");this.Y=bV(this,"html5_long_rebuffer_jiggle_cmt");this.ra=bV(this,"html5_reload_element_long_rebuffer");this.X=bV(this,"html5_ads_preroll_lock_timeout");this.Ma=new aV({delayMs:g.T(this.u.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Ss:!g.S(this.u.experiments,"html5_report_slow_ads_as_error")})};
bV=function(a,b){var c=g.T(a.u.experiments,b+"_delay_ms");a=g.S(a.u.experiments,b+"_cfl");return new aV({delayMs:c,Ss:a})};
dV=function(a,b,c,d,e,f,h){ixa(b,c)?(a.Gd(e,b,h),b.Ss||f()):(b.Hx&&b.l&&!b.B?(c=(0,g.N)(),d?b.i||(b.i=c):b.i=0,f=!d&&c-b.l>b.Hx,c=b.i&&c-b.i>b.uC||f?b.B=!0:!1):c=!1,c&&(c=a.Eb(b),c.wn=h,c.we=e,c.wsuc=""+ +d,h=g.KB(c),a.V("ctmp","workaroundReport",h),d&&(b.reset(),a.I[e]=!1)))};
aV=function(a){a=void 0===a?{}:a;var b=void 0===a.uC?1E3:a.uC,c=void 0===a.Hx?3E4:a.Hx,d=void 0===a.Ss?!1:a.Ss;this.C=Math.ceil((void 0===a.delayMs?0:a.delayMs)/1E3);this.uC=b;this.Hx=c;this.Ss=d;this.i=this.l=this.u=this.startTimestamp=0;this.B=!1};
ixa=function(a,b){if(!a.C||a.l)return!1;if(!b)return a.reset(),!1;b=(0,g.N)();if(!a.startTimestamp)a.startTimestamp=b,a.u=0;else if(a.u>=a.C)return a.l=b,!0;a.u+=1;return!1};
fV=function(a,b,c,d){g.P.call(this);var e=this;this.videoData=a;this.X=b;this.visibility=c;this.ib=d;this.policy=new jxa(this.X);this.L=new cV(this.X,this.videoData,(0,g.B)(this.V,this),this.visibility,this.ib);a={};this.Da=(a.seekplayerrequired=this.dT,a.videoformatchange=this.JL,a);this.playbackData=null;this.Xa=new Yt;this.W=this.u=this.B=this.i=null;this.l=NaN;this.C=0;this.I=null;this.Ga=NaN;this.J=this.Y=null;this.va=this.ra=!1;this.Aa=new g.J(function(){kxa(e,!1)},2E3);
this.ub=new g.J(function(){eV(e)});
this.Ya=new g.J(function(){e.Z();e.ra=!0;lxa(e)});
this.Sa=this.timestampOffset=0;this.Ma=!0;this.Ra=0;this.tb=NaN;this.Ca=new g.J(function(){var f=e.X.Kc;f.i+=1E4/36E5;f.i-f.u>1/6&&(mD(f),f.u=f.i);e.Ca.start()},1E4);
this.ea("html5_unrewrite_timestamps")?this.Da.timestamp=this.Nr:this.Da.timestamp=this.KL;g.H(this,this.Xa);g.H(this,this.Aa);g.H(this,this.Ya);g.H(this,this.ub);g.H(this,this.Ca)};
mxa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.W=new dxa(function(){a:{if(a.playbackData&&a.playbackData.i.i){if(AG(a.videoData)&&a.B){var c=a.B.Aa.Ng()||0;break a}if(a.videoData.i){c=a.videoData.i.Y;break a}}c=0}return c}),a.u=new XU(a.videoData,a.X.experiments,function(){return gV(a,!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.C=a.C||a.videoData.startSeconds||0)};
iV=function(a,b){g.$t(a.Xa);(a.i=b)?(nxa(a),eV(a)):hV(a);a=a.L;(a.B=b)&&g.cn(a.C)};
kV=function(a,b){a.B&&bu(a.B,a.Da,a);(a.B=b)?(au(b,a.Da,a),jV(a,!0)):hV(a);a.L.l=b};
lV=function(a){return!!a.u&&a.u.C};
oxa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.W&&d){var e=a.W;if(e.i&&!(c>=e.l&&c<e.u)){var f=e.i.zi(c);-1!==f&&(e.l=e.i.Xf(f),e.u=e.l+e.i.getDuration(f),f=g.Ta()/1E3-e.i.Vf(f),f-=e.C(),e.B.add(f))}}a.u&&(d&&(d=a.u,e=a.i?WI(a.i):0,d.B++,3>d.B||g.Ta()-d.J<d.policy.X||(d.J=g.Ta(),d.l.push(e),50<d.l.length&&d.l.shift(),d.Z())),d=a.u,gxa(d,c,void 0===b?!0:b),hxa(d,c),b&&kxa(a,!0))};
kxa=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!$U(c,d)&&c.C?(c.Z(),c.policy.L&&(c.policy.i=Math.max(c.policy.i+1,10)),c=Infinity):d<c.videoData.fd()?(c.Z(),c=Math.min(c.videoData.fd()+10,ZU(c))):c=NaN;if(!isNaN(c)){if(a.B&&b&&(b=a.Aa.isActive(),d=ZU(a.u),(d=Rua(a.B,d-a.Lc()))&&!b)){a.Aa.start();a.V("ctmp","inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(d+a.Lc()));a.seekTo(d+a.Lc());return}a.ea("html5_peg_to_live_logging")&&a.V("ctmp","ptl","cmt."+a.getCurrentTime()+";seekTo"+(c+
a.Lc()));a.seekTo(c)}}};
gV=function(a,b){if(!a.videoData.isLivePlayback)return NG(a.videoData);if(AG(a.videoData)&&a.videoData.Yk&&a.videoData.i)return qC(a.videoData.i);if(a.videoData.u&&a.videoData.u.i){if(!b&&a.u)return ZU(a.u);b=NG(a.videoData);a.policy.i&&a.i&&(b=Math.max(b,Uja(a.i)));return b+a.timestampOffset}a.i?gq()?(a=a.i.zv().getTime(),a=isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)):a=VI(a.i)+a.timestampOffset||a.timestampOffset:a=a.timestampOffset;return a};
jV=function(a,b){if(a.u&&a.B){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.l.length){c=b.i;b:{if(b.l.length){if(1<Math.min.apply(null,b.l)){b.Z();var d=WU(b,b.i-1);break b}if(b.policy.B){b.Z();d=WU(b,b.i+1);break b}}d=b.i}b.i=d;if(c=c!==b.i)b.Z(),b.l=[],b.B=0}else c=!1;c&&a.V("livereadaheadchanged",fxa(a.u));b=a.B;c=a.u.i;d=a.u;d=(d.i-1+d.policy.i)*YU(d);a=a.u.policy.I;b.Ue=Math.max(c-1,0);b.C&&(b.C.Y=
d);b.ib=a}};
mV=function(a){return a.videoData.isLivePlayback&&!!a.videoData.u&&!a.videoData.u.i};
lxa=function(a){pxa(a).then(void 0,function(){hV(a)});
nV(a).then(function(c){qxa(a,c)},function(){hV(a)});
a.V("seekstart");a.B&&Hua(a.B);if(g.vG(a.videoData)){var b=a.Eb();b["native"]=""+ +a.va;b.tgt=""+a.l;a.V("ctmp","seekStart",g.KB(b))}};
pxa=function(a){if(!a.Y)if(a.B)if(isFinite(a.l))a.Z(),a.Y=a.B.seek(a.l-a.timestampOffset);else{a.Z();var b=a.B;JT(b);b.B.i&&b.Z();b.C&&sua(b.C,b.videoTrack.i);g.cn(b.W);b=b.B;var c=Math.max(b.videoTrack.B.C||0,b.audioTrack.B.C||0);Tta(b.videoTrack);Tta(b.audioTrack);var d=b.u,e;for(e in d.i)Py(d.i[e].index,Infinity);b.u.isManifestless&&(b.B=!0);b.V("setcurrenttime",c);b.i=!0;b.C=new kR;a.Y=b.C;a.l=a.B.getCurrentTime()+a.timestampOffset}else a.Y=nm(a.l-a.timestampOffset);return a.Y};
nV=function(a){var b=a.I;b||(a.I=new kR,b=a.I,eV(a));return b};
rxa=function(a,b,c){return isNaN(b)?NaN:g.Zd(b,a.fd(),gV(a,c))};
eV=function(a){if(a.I)if(!a.ea("html5_nondash_live_seek_killswitch")&&mV(a)&&a.i&&0<a.i.Gh()&&0<VI(a.i)&&(a.l=rxa(a,a.l,!1)),!a.i||!sxa(a))a.ub.start(750);else if(!isNaN(a.l)&&isFinite(a.l)&&a.Ga!==a.l-a.timestampOffset){var b=a.i.getCurrentTime()-a.l;if(Math.abs(b)<=a.Ra)txa(a);else if(!a.videoData.isLivePlayback&&a.l>=gV(a)-.1)a.l=gV(a),a.I.resolve(gV(a)),a.V("ended");else try{var c=a.l-a.timestampOffset;a.Z();a.i.seekTo(c);a.L.i=c;a.Ga=c;a.C=a.l}catch(d){a.Z()}}};
sxa=function(a){if(!a.i||0===a.i.Gh()||0<a.i.Yi())return!1;var b=0<a.i.getCurrentTime();if(!(a.ea("html5_nondash_mediaelementready_killswitch")||a.videoData.u&&a.videoData.u.i||a.videoData.isLivePlayback)&&tG(a.videoData))return b;if(0<=a.l){var c=a.i.Gt();if(c.length||!b)return DB(c,a.l-a.timestampOffset)}return b};
txa=function(a){a.I?a.I.resolve(a.i.getCurrentTime()):a.Z()};
qxa=function(a,b){a.Z();a.J&&(a.J.resolve(b),a.V("seekend"),g.vG(a.videoData)&&(b=a.Eb(),b["native"]=""+ +a.va,a.V("ctmp","seekEnd",g.KB(b))));uxa(a)};
uxa=function(a){a.l=NaN;a.Ga=NaN;a.I=null;a.Y=null;a.J=null;a.ra=!1;a.va=!1;a.Ra=0;a.Aa.stop();a.Ya.stop()};
hV=function(a){a.J&&a.Z();uxa(a)};
nxa=function(a){if(a.i){for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Xa.N(a.i,c.value,function(d){var e=a.i;d=d.type;a.Z();switch(d){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.I||a.va&&d!==a.l)a.I=new kR,a.Ga=d,e=e.getCurrentTime(),a.L.i=e,a.seekTo(d),a.va=!0;break;case "seeked":txa(a);break;case "loadedmetadata":a.Ma?(e="ss.",d=0,(RG(a.videoData)||a.videoData.liveUtcStartSeconds)&&(a.videoData.liveUtcStartSeconds||a.videoData.startSeconds&&
isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds)&&a.videoData.i?(d=a.videoData.liveUtcStartSeconds||a.videoData.Gc,e="utc.",d=gV(a)-a.Vf(gV(a))+d):a.videoData.i&&a.videoData.i.isManifestless&&a.videoData.Gc?(e="mss.",d=a.videoData.Gc+a.Lc()):a.ea("html5_unrewrite_timestamps")&&a.videoData.lp&&(e="stss.",d=a.videoData.lp),d?(a.seekTo(d),a.V("ctmp","startSeconds",e+String(d)),a.Ma=!1):a.videoData.Gc&&a.V("ctmp","startSeconds",""+e+(a.videoData.Gc+a.Lc())),e=!!d):e=!1;a.ea("html5_nondash_live_seek_killswitch")&&
!e&&mV(a)&&(a.l=isFinite(a.l)?g.Zd(a.l,a.fd(),gV(a)):gV(a));eV(a);break;case "progress":eV(a)}});
a.J||a.C||a.policy.l||!a.i.xC()||a.seekTo(.01)}};
vxa=function(a,b){a.l=b;a.C=b;nV(a).then(function(c){qxa(a,c)},function(){hV(a)})};
jxa=function(a){this.i=g.S(a.experiments,"html5_live_smoothly_extend_max_seekable_time");this.u=a.ea("html5_seek_over_discontinuities");this.l=a.ea("html5_requires_seek_for_playback_at_zero_killswitch")};
oV=function(){this.i=this.started=!1};
pV=function(){this.i=this.l=void 0};
qV=function(a){this.i=a;this.iv=LP(ju())};
wxa=function(a,b){return g.C(a,function d(){var e=this;return g.z(d,function(f){return f.return(qra(e.i.l,b,e.iv))})})};
xxa=function(a){this.iv=GP(new BP(a),5)};
yxa=function(a){a=GP(new BP(a),4);this.i=new xxa(new FA([a]))};
Axa=function(a){a=new BP(a);this.i=EP(a,1);this.itag=EP(a,3);this.lastModifiedTime=EP(a,4);this.xtags=FP(a,5);EP(a,6);EP(a,8);EP(a,9,-1);EP(a,10);this.formatId=this.itag+";"+this.lastModifiedTime+";"+this.xtags;this.isAudio="audio"===zxa[kB[""+this.itag]]};
Bxa=function(a){this.body=null;a=new BP(a);this.onesieProxyStatus=EP(a,1,-1);this.body=GP(a,4)};
Cxa=function(a){a=new BP(a);this.startTimeMs=EP(a,1);this.endTimeMs=EP(a,2)};
Dxa=function(a){var b=new BP(a);a=FP(b,3);var c=EP(b,5);this.i=EP(b,7);var d=GP(b,14);this.l=new Cxa(new FA([d]));b=FP(b,15);this.formatId=a+";"+c+";"+b};
Exa=function(a){this.u=a;this.l=!1;this.i=[]};
Fxa=function(a){for(;a.i.length&&!a.i[0].isEncrypted;){var b=a.i.shift();a.u(b.streamId,b.buffer,!1)}};
Hxa=function(a){var b,c;return g.C(this,function e(){var f=this,h,l,m,n;return g.z(e,function(p){switch(p.i){case 1:h=f;if(Gxa||null===(c=null===(b=window.crypto)||void 0===b?void 0:b.subtle)||void 0===c||!c.importKey)return p.return(hR(a));l=window.crypto.subtle;ua(p,2);return g.w(p,rra(a),4);case 4:m=p.l;va(p,3);break;case 2:return wa(p),p.return(hR(a));case 3:return p.return(function(r,t){return g.C(h,function x(){var y,E,D;return g.z(x,function(G){if(1==G.i){if(n)return G.return(n(r,t));y={name:"AES-CTR",
counter:t,length:128};ua(G,2);E=gR.Ou("oan2");return g.w(G,l.encrypt(y,m,r),4)}if(2!=G.i)return D=G.l,gR.nt(E,Math.ceil(r.byteLength/16)),G.return(new Uint8Array(D));wa(G);n=hR(a);return G.return(n(r,t))})})})}})})};
rV=function(a,b,c){g.P.call(this);var d=this;this.L=a;this.J=b;this.Ua=c;this.u={};this.i={};this.iv=null;this.C=this.B=this.I=!1;this.l=null;this.queue=new Exa(function(e,f,h){d.V("STREAM_DATA",{formatId:e,data:f,isDecrypted:h});f=d.i[e];f.numSlicesProcessing--;0===f.numSlicesProcessing&&(f.hasEnded?d.V("STREAM_ENDED",{formatId:e}):d.I&&(d.Ua("ombpf","reason."+(d.B&&!d.C?"no_decryption_key":"no_media_end"),!0),d.V("STREAM_FAILED",{formatId:e})))})};
Ixa=function(a,b,c){a.Ua("ombup","id.21;enc."+ +c+";len."+b.totalLength,!1,!0);if(1!==b.totalLength){c&&(a.B=!0);var d=OA(b,0);b=MA(b,1);d=a.u[d]||null;a.Z();d&&(a.i[d].numSlicesProcessing+=1,a=a.queue,a.i.push({streamId:d,buffer:b,isEncrypted:c}),a.l||Fxa(a))}};
Jxa=function(a,b){g.C(a,function d(){var e=this,f,h,l,m,n,p,r,t;return g.z(d,function(u){switch(u.i){case 1:return e.V("PLAYER_RESPONSE_RECEIVED"),f=MA(b),ua(u,2),g.w(u,e.L(f,e.iv),4);case 4:h=u.l;va(u,3);break;case 2:return l=wa(u),e.Z(),e.V("PLAYER_RESPONSE_FAILED",{errorInfo:l}),u.return();case 3:m=new Bxa(new FA([h]));if(1!==m.onesieProxyStatus)return n={st:m.onesieProxyStatus},p=new g.JB("onesie.response.badproxystatus",!1,n),e.V("PLAYER_RESPONSE_FAILED",{errorInfo:p}),u.return();r=m.body;t=
g.A.TextDecoder?(new TextDecoder).decode(r):g.Ve(r);e.Z();e.Z();e.V("PLAYER_RESPONSE_READY",t);u.i=0}})})};
sV=function(a){var b=a.value;this.name=a.name;this.value=b};
Kxa=function(a){var b=a.httpHeaders,c=a.postBody;this.url=a.url;this.httpHeaders=b;this.postBody=c};
Lxa=function(a,b,c){var d=b.Mf;d="https://youtubei.googleapis.com/youtubei/"+d.innertubeApiVersion+"/player?key="+d.innertubeApiKey;var e=[new sV({name:"Content-Type",value:"application/json"})],f=g.dH(c);f&&e.push(new sV({name:"Authorization",value:"Bearer "+f}));e.push(new sV({name:"User-Agent",value:g.Uc}));(c=c.visitorData||g.M("VISITOR_DATA",void 0))&&e.push(new sV({name:"X-Goog-Visitor-Id",value:c}));(b=g.EC(b.experiments,"debug_sherlog_username"))&&e.push(new sV({name:"X-Youtube-Sherlog-Username",
value:b}));a=JSON.stringify(a);return new Kxa({url:d,httpHeaders:e,postBody:a})};
Mxa=function(a){var b=a.pA,c=a.encryptedClientKey,d=a.iv;a=a.hmac;this.serializeResponseAsJson=!0;this.pA=b;this.encryptedClientKey=c;this.iv=d;this.hmac=a};
Nxa=function(a,b){return g.C(this,function d(){var e,f,h,l,m,n;return g.z(d,function(p){switch(p.i){case 1:return ua(p,2),g.w(p,b.encrypt(a.Qp()),4);case 4:e=p.l;va(p,3);break;case 2:return wa(p),f=new g.JB("onesie.request.encrypt",!1),p.return(Promise.reject(f));case 3:return h=b.i.encryptedClientKey,l=b.iv,g.w(p,wxa(b,e),5);case 5:return m=p.l,n={pA:e,encryptedClientKey:h,iv:l,hmac:m},p.return(new Mxa(n))}})})};
Oxa=function(a){var b=a.onesieUstreamerConfig;this.qA=a.qA;this.onesieUstreamerConfig=b};
Pxa=function(a,b,c){return g.C(this,function e(){var f,h;return g.z(e,function(l){if(1==l.i)return g.w(l,Nxa(a,b),2);f=l.l;h={qA:f,onesieUstreamerConfig:c};return l.return(new Oxa(h))})})};
Qxa=function(a,b){if(b+1<=a.totalLength){var c=OA(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=OA(a,b++);else if(2===c)c=OA(a,b++),a=OA(a,b++),a=(c&63)+64*a;else if(3===c){c=OA(a,b++);var d=OA(a,b++);a=OA(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=OA(a,b++);d=OA(a,b++);var e=OA(a,b++);a=OA(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),JA(a,c,4)?a=KA(a).getUint32(c-a.u,!0):(d=OA(a,c+2)+256*OA(a,c+3),a=OA(a,c)+256*(OA(a,c+1)+
256*d)),b+=5;return[a,b]};
Rxa=function(a){this.l=a;this.i=new FA};
Sxa=function(a){var b=g.q(Qxa(a.i,0));var c=b.next().value;var d=b.next().value;d=g.q(Qxa(a.i,d));b=d.next().value;d=d.next().value;!(0>c||0>b)&&d+b<=a.i.totalLength&&(d=a.i.split(d).Np.split(b),b=d.Hw,d=d.Np,a.l(c,b),a.i=d,Sxa(a))};
Uxa=function(a){return[a].concat(g.ma(Txa[a]||[]))};
Wxa=function(a){return g.C(this,function c(){var d,e,f,h,l,m,n,p,r,t;return g.z(c,function(u){d=fC(Vxa,null,0,!1,!1,void 0);e=a.T();f=e.B;h=function(){return!0};
l=uG(a);m=oy(l,f,d,h);n=function(x){return m[x]||[]};
p=ty(l).map(n).flat();r=yy(l).map(n).flat();t=function(x){return x.id};
return u.return({video:r.map(t),audio:p.map(t)})})})};
Yxa=function(a,b){var c,d;a:{var e,f=a.T().Pf;if(f){var h=null===(d=Xxa())||void 0===d?void 0:d.primary;if(h&&f.baseUrl){d=new Dy("https://"+h+f.baseUrl);if(f=null===(e=a.Po)||void 0===e?void 0:e.urlQueryOverride)for(e=Ly(f),e=g.q(Object.entries(e)),f=e.next();!f.done;f=e.next())h=g.q(f.value),f=h.next().value,h=h.next().value,d.set(f,h);if(!d.get("id")){f=YC(a.videoId);e=[];if(f)for(f=g.q(f),h=f.next();!h.done;h=f.next())e.push(h.value.toString(16).padStart(2,"0"));e=e.join("");if(!e){d=void 0;break a}d.set("id",
e)}break a}}d=void 0}!d&&(null===(c=a.Po)||void 0===c?0:c.url)&&(d=new Dy(a.Po.url));if(!d)return"";d.set("ack","1");d.set("cpn",a.clientPlaybackNonce);d.set("opr","1");d.set("pvi","135");d.set("pai","140");d.set("oaad","0");d.set("oavd","0");b?(a=b.audio,d.set("pvi",b.video.join(",")),d.set("pai",a.join(","))):(d.set("oad","0"),d.set("ovd","0"));return Ey(d)};
tV=function(a,b,c){var d=this;this.videoData=a;this.i=b;this.playerRequest=c;this.xhr=null;this.B=new kR;this.J=!1;this.C=new g.J(this.Y,1E4,this);this.L=!1;this.u=a.T();this.I=this.u.Pf;this.X=new qV(this.I.i);var e=g.vG(this.videoData);this.Ua=function(f,h,l,m){m&&!e||d.videoData.Ua(f,h,l)};
this.ra=new Rxa(function(f,h){d.W.feed(f,h)});
g.S(this.u.experiments,"html5_onesie_media_bytes")&&(this.l=new fT);this.W=Zxa(this)};
Zxa=function(a){var b=new rV(function(c,d){return a.X.decrypt(c,d)},a.i,a.Ua);
b.subscribe("FIRST_BYTE_RECEIVED",function(){a.i.tick("orfb");a.J=!0});
b.subscribe("PLAYER_RESPONSE_READY",function(c){a.i.tick("oprr");a.B.resolve(c);a.C.stop()});
b.subscribe("PLAYER_RESPONSE_RECEIVED",function(){a.i.tick("orpr")});
b.subscribe("PLAYER_RESPONSE_FAILED",function(c){uV(a,c.errorInfo)});
a.l&&(b.subscribe("STREAM_STARTED",function(c){var d=a.l;c=c.formatId;var e=Jta(d,c);d.i[c]={slices:new FA,isComplete:!1,bytesShifted:0,bytesReceived:0,hasDecryptedBytes:!1,failureTimeout:e,isFailed:!1};d.Z();e.start()}),b.subscribe("STREAM_METADATA",function(c){var d=a.l;
d.i[c.formatId].expectedBytes=c.numBytes;d.Z()}),b.subscribe("STREAM_DATA",function(c){var d=a.l,e=c.formatId,f=c.data;
c=c.isDecrypted;c=void 0===c?!1:c;var h=d.i[e];h.failureTimeout.start();!h.hasDecryptedBytes&&c&&(h.hasDecryptedBytes=!0);h.slices.append(f);h.bytesReceived+=f.length;d.V("PROGRESS",{formatId:e});d.Z()}),b.subscribe("STREAM_ENDED",function(c){var d=a.l;
c=c.formatId;var e=d.i[c];e.expectedBytes?(e.failureTimeout.stop(),e.isComplete=!0,d.V("DONE",{formatId:c}),d.Z()):d.i[c].failureTimeout.gh()}),b.subscribe("STREAM_FAILED",function(c){a.l.i[c.formatId].failureTimeout.gh()}));
return b};
bya=function(a){return g.C(a,function c(){var d=this,e,f,h,l;return g.z(c,function(m){if(1==m.i){if(!d.l)return m.return();e=hD(d.u.schedule);return g.w(m,$xa(d.videoData),2)}f=m.l;h=f.video;l=f.audio;h=aya(h,e);return h.length?m.return({video:h,audio:l}):(d.Ua("ombspf","limit."+e),m.return())})})};
uV=function(a,b){a.B.reject(b);a.C.stop();a.i.tick("ore");a.xhr&&a.xhr.abort()};
cya=function(a){var b=a.xhr;102400<b.Qo()&&!a.L&&(a.i.tick("or100k"),a.L=!0);for(;b.nh();){var c=b.Pi(),d=c.totalLength;a.Z();a.Ua("ombrss","len."+d,!1,!0);a.ra.feed(c)}};
$xa=function(a){return g.C(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,Wxa(a),2);d=e.l;return e.return({video:d.video.map(Uxa).flat(),audio:d.audio.map(Uxa).flat()})})})};
aya=function(a,b){b=.9*b-16E3;var c=[];a=g.q(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=dya[d];!e||e>b||c.push({itag:d,BF:e})}return c.sort(function(f,h){return h.BF-f.BF}).map(function(f){return f.itag})};
jya=function(a,b,c,d,e,f){function h(m){return eya(l,a)?fya(a,e,f,c).then(function(){vV(a)},function(n){vV(a,!0);
throw n;}):gya(a,b,c,m)}
a.Ha();a.Y=!0;var l=a.T();return g.S(l.experiments,"html5_onesie")&&g.S(l.experiments,"html5_onesie_player_config")&&"yt"===l.Y?hya(a).then(function(){return iya(a,d,e,f)}).then(function(){vV(a)},function(m){m=LB(m);
if(m.i)return vV(a,!0),Promise.reject(m);c(m);return h("onesie")}):h("gvi")};
eya=function(a,b){return!((a.Bg?0:a.ea("web_player_gvi_wexit")||("MWEB"===a.deviceParams.c?a.ea("web_player_gvi_wexit_mweb"):bE(a)?a.ea("web_player_gvi_wexit_living_room_pangea"):g.SD(a)?a.ea("web_player_gvi_wexit_living_room"):g.dE(a)?a.ea("web_player_gvi_wexit_web"):g.hE(a)?a.ea("web_player_gvi_wexit_embeds"):a.ea("web_player_gvi_wexit_other")))||g.S(a.experiments,"hoffle_api")&&fH(b))||"yt"!==a.Y||"adunit"===$G(b)&&!g.S(a.experiments,"web_player_gvi_wexit_adunit")?!1:!0};
hya=function(a){a=a.T().Pf;if(!a||!a.i)return Promise.reject(new g.JB("onesie.unavailable.hotconfig",!1,{key:"0"}));a={};ay()||(a.fetch="0");window.Uint8Array||(a.uint8="0");return 0<Object.keys(a).length?(a.onesie="0",Promise.reject(new g.JB("html5.missingapi",!1,a))):Promise.resolve()};
kya=function(a){var b=nka();(a=g.dH(a))&&oka(b,a);pV.i||(pV.i=new pV);return g.qL(b,pV.i)};
iya=function(a,b,c,d){return g.C(this,function f(){var h,l,m,n,p,r;return g.z(f,function(t){if(1==t.i)return a.fetchType="onesie",h=vL(a,c,d),l=new tV(a,b,h),g.w(t,l.fetch(),2);m=t.l;n={player_response:m};a.Y=!1;a.fq=l.l;g.fG(a,n,!0);if(a.Y||aG(a))return t.return(Promise.resolve());a.fq=void 0;p={};a.errorCode?(p.ec=a.errorCode,p.ed=a.errorDetail,p.es=a.Ak||""):p.successButUnplayable="1";r=new g.JB("onesie.response",!1,p);return t.return(Promise.reject(r))})})};
fya=function(a,b,c,d){return g.C(this,function f(){var h,l,m,n,p,r,t;return g.z(f,function(u){switch(u.i){case 1:l=(h=a.isAd())?1:3,m=0;case 2:if(!(m<l)){u.Mb(4);break}if(!(0<m)){u.Mb(5);break}return g.w(u,Em(5E3),6);case 6:n=new g.Zr("Retrying OnePlatform request",{attempt:m}),g.qt(n);case 5:return ua(u,7),g.w(u,lya(a,b,c),9);case 9:return u.return();case 7:p=wa(u);r=LB(p);if("auth"===r.errorCode||"manifest.net.retryexhausted"===r.errorCode)return u.return(Promise.reject(r));d(r);if(r.i){u.Mb(4);
break}case 3:m++;u.Mb(2);break;case 4:return t=h?"auth":"manifest.net.retryexhausted",u.return(Promise.reject(new g.JB(t,!0,{backend:"op"})))}})})};
lya=function(a,b,c){return g.C(this,function e(){var f,h,l,m,n,p,r,t,u,x,y,E,D,G,I;return g.z(e,function(O){if(1==O.i)return a.fetchType="gp",f=kya(a),h=vL(a,b,c),l=g.gL(mya),m=(0,g.N)(),n=!1,p="empty",r=0,g.w(O,g.uJ(f,h,l),2);t=O.l;if(a.Ha())return O.return();t?t.error?(n=!0,p="esf:"+t.error.message,r=t.error.code):t.errorMetadata&&(n=!0,p="its",r=t.errorMetadata.status):n=!0;if(n)return u=400===r||429===r,x=((0,g.N)()-m).toFixed(),y=window.fetch,E={backend:"op",rc:""+r,rt:x,reason:p,fetch_exists:y?
"1":"0",fetch_polyfill:y.polyfill?"1":"0",fetch_request:window.Request?"1":"0"},D="manifest.net.connect",429===r?D="auth":200<r&&(D="manifest.net.badstatus"),O.return(Promise.reject(new g.JB(D,u,E)));a.Y=!1;g.fG(a,{raw_player_response:t},!0);if(a.errorCode)return G={ec:a.errorCode,ed:a.errorDetail,es:a.Ak||""},O.return(Promise.reject(new g.JB("auth",!0,G)));if(!a.Y&&!aG(a))return I=a.isAd()?"auth":"manifest.net.retryexhausted",O.return(Promise.reject(new g.JB(I,!0,{successButUnplayable:"1"})));O.i=
0})})};
gya=function(a,b,c,d){return g.C(this,function f(){var h,l,m,n,p,r,t,u,x;return g.z(f,function(y){switch(y.i){case 1:h=function(){return!0},l=function(E){E=LB(E);
if(E.i)return Promise.reject(E);c(E);return!1},n=(m=a.isAd())?1:3,p=0;
case 2:if(!(p<n)){y.Mb(4);break}r=b;if(!(0<p)){y.Mb(5);break}return g.w(y,Em(5E3),6);case 6:t={playerretry:p,playerretrysrc:d},m||(t.recover="embedded"),r=Kp(b,t);case 5:return g.w(y,nya(a,r).then(h,l),7);case 7:if(u=y.l)return y.return();p++;y.Mb(2);break;case 4:x=m?"auth":"manifest.net.retryexhausted";if(!m&&1E-4>Math.random())try{g.qt(new g.Zr("b/152131571",btoa(b)))}catch(E){}return y.return(Promise.reject(new g.JB(x,!0,{backend:"gvi"})))}})})};
nya=function(a,b){return g.C(this,function d(){var e,f,h,l,m,n,p,r,t,u,x,y,E;return g.z(d,function(D){if(1==D.i)return a.fetchType="gvi",e=a.T(),(l=noa(a))?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=Kp(b,{action_display_post:1})):(f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},h=b),m={},e.sendVisitorIdHeader&&a.visitorData&&(m["X-Goog-Visitor-Id"]=a.visitorData),(n=g.EC(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n),0<
Object.keys(m).length&&(f.headers=m),p=(0,g.N)(),r=function(G){if(!a.Ha()){G=G?G.status:-1;var I=400===G||429===G,O=((0,g.N)()-p).toFixed();O={backend:"gvi",rc:""+G,rt:O};var ha="manifest.net.connect";429===G?ha="auth":200<G&&(ha="manifest.net.badstatus");return Promise.reject(new g.JB(ha,I,O))}},t=function(G){return r(G.xhr)},g.w(D,XB(Gt,h,f).then(void 0,t),2);
u=D.l;if(!u||!u.responseText)return D.return(r(u));a.Y=!1;x=Fp(u.responseText);g.fG(a,x,!0,void 0);if(a.errorCode)return y={ec:a.errorCode,ed:a.errorDetail,es:a.Ak||""},D.return(Promise.reject(new g.JB("auth",!0,y)));if(!a.Y&&!aG(a))return E=a.isAd()?"auth":"manifest.net.retryexhausted",D.return(Promise.reject(new g.JB(E,!0,{successButUnplayable:"1"})));D.i=0})})};
vV=function(a,b){b=void 0===b?!1:b;g.C(this,function d(){var e,f,h,l,m;return g.z(d,function(n){if(1==n.i){e=a.T();if(b&&(!g.hE(e)||"embedded"!==$G(a))||a.Wn||"adunit"!==$G(a)&&(g.SD(e)||TD(e)||gE(e)||g.JD(e)||"WEB_CREATOR"===e.deviceParams.c))return n.return();ua(n,2);f=kya(a);h=fna(a);l=g.gL(oya);return g.w(n,g.uJ(f,h,l),4)}if(2!=n.i)return(m=n.l)&&!m.error&&g.fG(a,{raw_watch_next_response:m},!1),va(n,0);wa(n);n.i=0})})};
pya=function(a,b,c,d,e,f){function h(){d.tick("virc");Yx("virc","video_to_ad")}
d.tick("vir");Yx("vir","video_to_ad");a=jya(a,b,c,d,e,f);a.then(h,h);return a};
g.zV=function(a,b,c,d,e,f,h){g.P.call(this);var l=this;this.u=a;this.playerType=b;this.W=c;this.xc=d;this.getVisibilityState=f;this.visibility=h;this.Db=new axa(this.u);this.J=null;this.Xa=new gU;this.Ca=null;this.Y=new sU(this.u,this.xc,this);this.Ad=!0;this.mediaSource=this.l=null;this.ra=[];this.va=new oV;this.L=this.Ya=null;this.Aa=new oV;this.Wb=null;this.Mf=this.Ma=!1;this.Fc=NaN;this.Xc=new g.J(this.fS,500,this);this.playerState=new g.ZI;this.Jc=[];this.ib=new Yt;this.videoData=new g.$F(this.u);
this.i=null;this.Ra=new g.J(this.DQ,15E3,this);this.sf=new g.J(this.WR,g.T(this.u.experiments,"html5_source_buffer_attach_delay_time")||15E3,this);this.xg=0;this.He=this.Tb=!1;this.Ga=NaN;this.Sa=!1;this.ub=0;this.ld=new g.J(this.CC,4500,this);this.Pt=!1;this.Ec=NaN;this.Wc=new WR(new Map([["bufferhealth",function(){var m=l.B;return m.i?WI(m.i):0}],
["bandwidth",function(){return l.l?uS(l.l.I):hD(l.u.schedule)}],
["networkactivity",function(){return l.u.schedule.L}],
["livelatency",function(){return l.isAtLiveHead()&&l.pc()?wV(l):NaN}],
["rawlivelatency",function(){return wV(l)}]]));
this.td=!0;this.Kf=0;this.loop=!1;this.playbackRate=1;this.Rf=0;this.Da=null;this.Lf=!1;this.Gc=[];this.Bd=this.wg=0;this.Qd=this.Bg=!1;this.kd=new g.J(this.lO,0,this);this.tb=null;this.Kc=void 0;this.Pf=0;this.Sf=new g.J(this.AN,0,this);this.Pc=new g.J(this.EJ,3E4,this);this.Rg=[this.Xc,this.ib,this.kd,this.Ra,this.Pc,this.Xc,this.ld,this.Wc,this.Sf,this.sf];this.Xe=function(){var m=l.C;m.provider.i.Pc||3===m.provider.l.getVisibilityState()||(m.provider.i.Pc=!0);Mwa(m);if(m.l){var n=m.l;n.C&&0>n.i&&
3!==n.provider.l.getVisibilityState()&&jwa(n)}m.qoe&&(m=m.qoe,m.Ca&&0>m.l&&m.provider.i.Pc&&swa(m));g.T(l.u.experiments,"html5_background_quality_cap")&&l.l&&xV(l);l.u.Yj&&!l.videoData.backgroundable&&l.i&&!l.Zf()&&(l.isBackground()&&l.i.yv()?(l.Ua("bgmobile","suspend"),l.En(!0)):l.isBackground()||yV(l)&&l.Ua("bgmobile","resume"))};
this.Z();this.X=new TU(function(){return l.getCurrentTime()},function(){return l.getPlaybackRate()},function(){return l.getPlayerState()},function(m,n){m!==g.tw("endcr")||g.V(l.playerState,32)||uR(l);
e(m,n,l.playerType)});
g.H(this,this.X);qya(this,function(){return{}});
rya(this);Kra(this.Xe);this.visibility.subscribe("visibilitystatechange",this.Xe);sya(this);!this.ea("html5_log_coat_killswitch")&&this.ea("html5_high_res_logging")&&(a=$wa())&&this.Ua("cblt",a);this.ea("html5_enable_web_assembly")&&loadWasm().then(function(m){m=m.version();"string"===typeof m&&l.Ua("wasm",m)})};
qya=function(a,b){!a.C||a.C.Ha();a.C=new g.SU(new RU(a.videoData,a.u,a,b))};
rya=function(a){!a.I||a.I.Ha();a.I=new nU(a.videoData,a.u,a.visibility);a.I.subscribe("newelementrequired",function(b){return AV(a,b)});
a.I.subscribe("qoeerror",a.jz,a);a.I.subscribe("playbackstalledatstart",function(){return a.V("playbackstalledatstart")});
a.I.subscribe("signatureexpiredreloadrequired",function(){return a.V("signatureexpired")});
a.I.subscribe("releaseloader",function(){BV(a)});
a.I.subscribe("pausevideo",function(){a.pauseVideo()});
a.I.subscribe("clienttemp",a.Ua,a);a.I.subscribe("highrepfallback",a.rQ,a);a.I.subscribe("playererror",a.Fg,a);a.I.subscribe("removedrmplaybackmanager",function(){CV(a)});
a.I.subscribe("formatupdaterequested",function(){DV(a)});
a.I.subscribe("reattachvideosourcerequired",function(){tya(a)})};
EV=function(a){var b=a.C;b.l&&b.l.send();if(b.qoe){var c=b.qoe;if(c.W){"PL"===c.od&&(c.od="N");var d=g.tR(c.provider);g.yU(c,d,"vps",[c.od]);c.B||(0<=c.l&&(c.i.user_intent=[c.l.toString()]),c.B=!0);c.ra=!0;c.reportStats(d)}}if(b.provider.videoData.enableServerStitchedDai)for(c=g.q(b.u.values()),d=c.next();!d.done;d=c.next())Hwa(d.value);else b.i&&Hwa(b.i);b.dispose();g.ui(a.C)};
$H=function(a){return a.i&&a.i.Tn()?a.i.Re():null};
FV=function(a){if(a.videoData.isValid())return!0;a.Fg("api.invalidparam",void 0,"invalidVideodata.1");return!1};
AL=function(a,b){b=void 0===b?!1:b;if(a.Kc&&a.ea("html5_match_codecs_for_gapless")){a.videoData.Ra=!0;a.videoData.Jc=!0;var c;var d=null===(c=a.Kc.l)||void 0===c?void 0:c.audioTrack.i.info.i;a.videoData.rq=d;var e;d=null===(e=a.Kc.l)||void 0===e?void 0:e.videoTrack.i.info.i;a.videoData.tq=d}a.Ma=b;!FV(a)||a.va.started?g.SD(a.u)&&a.videoData.isLivePlayback&&a.va.started&&!a.va.isFinished()&&!a.Ma&&a.Wz():(a.va.start(),b=a.C,g.tR(b.provider),b.qoe&&qwa(b.qoe),a.Wz())};
uya=function(a){var b=a.videoData,c=a.xc.getPlayerSize(),d=a.getVisibilityState(),e=moa(a.u,a.videoData,c,d,a.isFullscreen());pya(a.videoData,e,function(f){a.handleError(f)},a.W,c,d).then(void 0,function(f){a.videoData!==b||b.Ha()||(f=LB(f),"auth"===f.errorCode&&a.videoData.errorDetail?a.Fg("auth",unescape(a.videoData.errorReason),g.KB(f.details),a.videoData.errorDetail,a.videoData.Ak||void 0):a.handleError(f))})};
Nra=function(a,b){a.tb=b;a.l&&(a=a.l,b=new TT(b),a.Y=b,a.u&&(a.u.X=b))};
xya=function(a){if(!g.V(a.playerState,128))if(a.videoData.xd(),a.td=!0,a.Z(),4!==a.playerType&&(a.ra=g.ob(a.videoData.X)),OG(a.videoData)){GV(a).then(function(){a.Ha()||(a.Ma&&(a.ea("embeds_enable_preloadvideobyplayervars_startseconds_fix")&&a.Jb(aJ(aJ(a.playerState,512),1)),yV(a)),vya(a,a.videoData),a.va.i=!0,HV(a,"dataloaded"),a.Aa.started?IV(a):a.Ma&&!a.ea("embeds_enable_preloadvideobyplayervars_startseconds_fix")&&a.Jb(aJ(aJ(a.playerState,512),1)),iwa(a.Y,a.L))});
a.Ua("loudness",""+a.videoData.Uj.toFixed(3),!0);var b=hia(a.videoData);b&&a.Ua("playerResponseExperiment",b,!0);wya(a)}else HV(a,"dataloaded")};
GV=function(a){BV(a);a.L=null;var b=cxa(a.u,a.videoData,a.Zf());a.Ya=b;a.Ya.then(function(c){yya(a,c)},function(c){a.Ha()||(c=LB(c),a.visibility.isBackground()?(JV(a,"vp_none_avail"),a.Ya=null,a.va.reset()):(a.va.i=!0,a.Fg(c.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.KB(c.details))))});
return b};
DV=function(a){a.Z();GV(a).then(function(){return yV(a)});
g.eJ(a.playerState)&&a.playVideo()};
yya=function(a,b){if(!a.Ha()&&!b.videoData.Ha()&&(a.Z(),a.L=b,mxa(a.B,a.L),!a.videoData.isLivePlayback||0<a.videoData.Gc&&!AG(a.videoData)||(a.seekTo(KV(a)),LV(a,"playbackData")),a.videoData.u.i&&(a.l?g.qt(Error("Duplicated Loader")):zya(a)),MV(a),a.ea("html5_nonblocking_media_capabilities"))){var c=Date.now();$va(a.Y,b).then(function(){a.Ua("mclatency",(Date.now()-c).toString())})}};
NV=function(a){a.Z();a.i&&a.i.zq();AL(a);FV(a)&&!g.V(a.playerState,128)&&(a.Aa.started||(a.Aa.start(),a.Jb(aJ(aJ(a.playerState,8),1))),IV(a))};
IV=function(a){a.Ha();a.Z();if(a.Aa.isFinished())a.Z();else if(a.va.isFinished())if(g.V(a.playerState,128))a.Z();else if(a.ra.length)a.Z();else{if(!a.X.started){var b=a.X;b.started=!0;b.bl()}if(a.Nl())a.Z();else{a.l&&(b=a.l.timing,a.Mf=!!b.i&&!!b.l);a.Aa.isFinished()||(a.Aa.i=!0);!a.videoData.isLivePlayback||0<a.videoData.Gc&&!AG(a.videoData)||(a.Z(),a.seekTo(Infinity),LV(a,"readying"),a.isBackground()&&(a.He=!0));b=a.C;if(b.i){var c=b.i;c.provider.videoData.Pj&&c.provider.videoData.Xn&&(PU(c,"connected"),
Cwa(c))}b.qoe&&(b=b.qoe,b.provider.videoData.Tj&&DU(b,b.provider.videoData.Tj),b.provider.videoData.isLivePlayback&&(c=b.provider.videoData.i,AG(b.provider.videoData)&&DU(b,"manifestless"),c&&rC(c)&&DU(b,"live-segment-"+rC(c).toFixed(1))),"yt"!==b.provider.i.Y&&(b.i.len=[b.provider.videoData.lengthSeconds.toFixed(2)]),b.provider.videoData.cotn&&!gH(b.provider.videoData)&&nwa(b,!0));a.Z();a.V("playbackready",a);Xx("pbr",a.W.timerName)||(a.W.tick("pbr"),Yx("pbr","video_to_ad"))}}else a.Z()};
uR=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.i&&a.i.pause();b=b?new g.ZI(14):new g.ZI;a.Jb(b)};
vya=function(a,b){b.endSeconds&&b.endSeconds>b.startSeconds&&(b=b.endSeconds,a.Ca&&(a.removeCueRange(a.Ca),a.Ca=null),a.Ca=new g.pw(1E3*b,0x7ffffffffffff),a.Ca.namespace="endcr",a.addCueRange(a.Ca))};
PV=function(a,b,c,d){a.videoData.l=c;d&&Aya(a,b,d);var e=(d=g.OV(a))?d.yc():"";d=a.C;c=new Vva(a.videoData,c,b,e);if(d.qoe){d=d.qoe;e=g.tR(d.provider);g.yU(d,e,"vfs",[c.i.id,c.l,d.ub,c.reason]);d.ub=c.i.id;var f=d.provider.l.getPlayerSize();if(0<f.width&&0<f.height){f=[Math.round(f.width),Math.round(f.height)];var h=g.cE();1<h&&f.push(h);g.yU(d,e,"view",f)}d.Aa||(d.provider.videoData.Tb&&DU(d,"rqs"),d.provider.videoData.i&&ly(d.provider.videoData.i)&&(d.i.preload=["1"]));d.Aa=!0;d.W=!0;"m"===c.reason&&
100===++d.xc&&(c=d.i.fcnz,c||(c=[],d.i.fcnz=c),c.push("2"));g.yU(d,e,"vps",[d.od]);d.reportStats(e)}c=a.Y;c.C=0;c.u=0;a.V("internalvideoformatchange",a.videoData,"m"===b)};
g.OV=function(a){var b=QV(a);return hy(b)||!a.L?null:g.cb(a.L.i.videoInfos,function(c){return b.B(c)})};
Aya=function(a,b,c){if(c!==a.videoData.J){var d=!a.videoData.J;a.videoData.J=c;"m"!==b&&(b=d?"i":"a");var e=a.C;c=new Vva(a.videoData,c,b,"");if(e.qoe){e=e.qoe;var f=g.tR(e.provider);c.i.id!==e.va&&(g.yU(e,f,"afs",[c.i.id,e.va,c.reason]),e.va=c.i.id)}d||a.V("internalaudioformatchange",a.videoData,"m"===b)}};
nR=function(a,b){a.Z();if(a.i&&b.Re()===a.i.Re()&&(b.isView()||a.i.isView())){if(b.isView()||!a.i.isView())g.$t(a.ib),a.i=b,Bya(a),iV(a.B,a.i),a.I.u=a.i}else{a.i&&a.Xg();if(!a.playerState.isError()){var c=bJ(a.playerState,512);g.V(c,8)&&!g.V(c,2)&&(c=aJ(c,1));b.isView()&&(c=bJ(c,64));a.Jb(c)}a.i=b;a.i.setLoop(a.loop);a.i.setPlaybackRate(a.playbackRate);Bya(a);iV(a.B,a.i);a.I.u=a.i}};
QV=function(a){if(a.L){var b=a.Y;var c=a.L,d=RV(a),e=a.isBackground();a=Yva(b);a=gy("auto",a,!1,"s");if(hy(a)){a=Zva(b,c);var f=c.videoData.eF,h=hwa(b,c);var l=g.T(b.i.experiments,"html5_autonav_quality_cap");var m=g.T(b.i.experiments,"html5_autonav_cap_idle_secs");l=l&&c.videoData.pj&&zp()/1E3>m?new dy(0,l,!1,"e"):YF;m=g.T(b.i.experiments,"html5_background_quality_cap");var n=g.T(b.i.experiments,"html5_background_cap_idle_secs");e=!m||"auto"!==Yva(b)||zp()/1E3<n?YF:e?new dy(0,m,!1,"v"):YF;m=0;!b.i.i||
g.HD(b.i)||mq()||g.S(b.i.experiments,"hls_for_vod")||(m=g.fy.medium);if(n=g.T(b.i.experiments,"html5_default_quality_cap")){var p=!!c.i.i&&!c.videoData.Bh&&!c.videoData.Be,r=g.T(b.i.experiments,"html5_quality_cap_min_age_secs");p&&r&&(p=b.i.schedule.I,p=(0,g.N)()-p>1E3*r);p&&(m=m?Math.min(m,n):n)}n=g.T(b.i.experiments,"html5_random_playback_cap");r=/[a-h]$/;n&&r.test(c.videoData.clientPlaybackNonce)&&(m=m?Math.min(m,n):n);(n=g.T(b.i.experiments,"html5_not_vp9_supported_quality_cap"))&&!vB('video/webm; codecs="vp9"')&&
(m=m?Math.min(m,n):n);if(r=n=g.T(b.i.experiments,"html5_hfr_quality_cap"))a:{r=c.i;if(r.i)for(r=g.q(r.videoInfos),p=r.next();!p.done;p=r.next())if(32<p.value.Za().fps){r=!0;break a}r=!1}r&&(m=m?Math.min(m,n):n);(n=g.T(b.i.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(m=m?Math.min(m,n):n);m=new dy(0,m,!1,"d");n=Wva(b,c);r=n.compose;a:if((p=c.i)&&p.videoInfos.length){for(var t=g.q(p.videoInfos),u=t.next();!u.done;u=t.next())if(u=u.value,u.I){p=u.Za().i;break a}p=p.videoInfos[0].Za().i}else p=
0;eq()&&!g.SD(b.i)&&mB(c.i.videoInfos[0])&&(p=Math.min(p,g.fy.large));p=new dy(0,p,!1,"o");a=r.call(n,p).compose(m).compose(e).compose(l).compose(h).compose(f).compose(a)}else b.ea("html5_perf_cap_override_sticky")&&(a=a.compose(hwa(b,c)));b.ea("html5_varispeed_playback_rate")&&(a=a.compose(Zva(b,c)));b=c.videoData.Gp.compose(a).compose(c.videoData.fF).compose(d)}else b=YF;return b};
RV=function(a,b){if(a.J){var c=a.J;b=void 0===b?!1:b;c=(void 0===b?0:b)&&c.Ma?c.Ma:c.L}else c=qG(a.videoData)&&a.videoData.i&&sy(a.videoData.i)?a.videoData.Vi?YF:Eva:YF;a.Qd&&(c=c.compose(Cya));return c};
zL=function(a,b){a.videoData.Gp=b;if(a.L){var c=a.Y,d=a.L;if(d.i.i){var e=g.fy[tU()],f=d.i.videoInfos[0].Za().i;if(!(e>f&&0!==f&&b.i===f)){1<c.playbackRate&&c.ea("html5_varispeed_playback_rate")&&(d=VC(c.i.B,d.i.videoInfos,c.playbackRate),0!==b.i&&d<b.i&&c.l.setPlaybackRate(1));Dya(iy(b));if(c.ea("html5_exponential_memory_for_sticky")){b=c.i.Kc;d=1;var h=void 0===h?!1:h;oD(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.Kl["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.Kl["sticky-lifetime"]=
0);h&&.0625<pD(b,"sticky-lifetime")&&(d=2*b.Kl["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.i/d);b.Kl["sticky-lifetime"]=d;b.B.start()}c.ea("html5_perf_cap_override_sticky")&&Eya(c.ea("html5_perserve_av1_perf_cap"))}}}MV(a)};
MV=function(a){if(!a.Ha()&&!g.V(a.playerState,128)&&a.videoData.u){if(a.videoData.u.i)SV(a);else{var b=QV(a),c=a.videoData;a:{var d=a.videoData.Db;if(b.i){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.Uf(),l=g.fy[h.Za().quality];if((!b.u||"auto"!==h.Za().quality)&&l<=b.i){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.Da=d;PV(a,b.reason,Fya(a,a.videoData.Da))}a.pc()&&(a.B.Ma=!1,a.playVideo())}};
SV=function(a){if(a.videoData.u&&a.videoData.u.i){var b=QV(a),c=a.videoData.l;if(!a.ea("html5_dynamic_av1_hybrid_threshold")&&c&&oB(c)){var d=DC(a.u);if(d&&d<c.Za().i&&d!==a.Pf){a.Pf=d;GV(a);return}}if(a.l&&(a=a.l,!a.Ha()&&!ey(a.l.l,b)&&a.videoTrack)){a.Z();var e=a.l.l;Jua(a,Zsa(a.l,b));HT(a);c=PS(a.l)&&"m"===b.reason&&a.l.Y;d=a.policy.Xj&&"l"===b.reason&&tT(a.videoTrack);b=("b"===b.reason||"o"===b.reason)&&e.i>b.i;e=a.l.Ra&&!NB();c||d||b||e?(a.Vc("reattachOnConstraint",c?"u":d?"drm":e?"codec":"perf"),
a.V("reattachrequired")):g.cn(a.W)}}};
xV=function(a){a.ea("html5_nonblocking_media_capabilities")?SV(a):MV(a)};
zya=function(a){a.ea("html5_probe_media_capabilities")&&Sha(a.videoData.u);Lga(a.videoData.i,{cpn:a.videoData.clientPlaybackNonce,c:a.u.deviceParams.c,cver:a.u.deviceParams.cver});var b=a.u,c=a.videoData,d=new g.Lna,e=Kna(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Gk:c.Gk});d.B=e;d.Zj=b.ea("html5_disable_codec_for_playback_on_error");d.Vj=b.ea("html5_max_drift_per_track_secs")||b.ea("html5_rewrite_manifestless_for_sync")||b.ea("html5_check_segnum_discontinuity");d.Ga=b.ea("html5_unrewrite_timestamps");
d.Jc=b.ea("html5_stop_overlapping_requests");d.Kf=g.T(b.experiments,"html5_min_readbehind_secs");d.No=g.T(b.experiments,"html5_min_readbehind_cap_secs");d.qo=g.T(b.experiments,"html5_max_readbehind_secs");d.uq=g.S(b.experiments,"html5_trim_future_discontiguous_ranges");d.Yk=b.ea("html5_append_init_while_paused");d.He=g.T(b.experiments,"html5_max_readahead_bandwidth_cap");d.Pf=g.T(b.experiments,"html5_post_interrupt_readahead");d.Y=g.T(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");
d.Pc=g.T(b.experiments,"html5_subsegment_readahead_timeout_secs");d.hq=g.T(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.Kc=g.T(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.qq=g.T(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Mi=g.T(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.rq=g.T(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Mf=b.ea("html5_peak_shave");d.Qn=b.ea("html5_restrict_streaming_xhr_on_sqless_requests");
d.jo=g.T(b.experiments,"html5_max_headm_for_streaming_xhr");d.Po=b.ea("html5_net_closed_is_timeout");d.jp=b.ea("html5_pipeline_manifestless_allow_nonstreaming");d.Gp=b.ea("html5_prefer_server_bwe3");d.Vi=1024*g.T(b.experiments,"html5_video_tbd_min_kb");d.Rf=b.ea("html5_probe_live_using_range");d.Wn=b.ea("html5_last_slice_transition");d.fq=b.ea("html5_store_xhr_headers_readable");d.jl=b.ea("html5_enable_packet_train_response_rate");if(e=g.T(b.experiments,"html5_probe_secondary_during_timeout_miss_count"))d.Sf=
e,d.tq=1;d.Ec=g.T(b.experiments,"html5_probe_primary_delay_base_ms")||d.Ec;d.Lf=b.ea("html5_no_placeholder_rollbacks");d.gq=b.ea("html5_subsegment_readahead_enable_mffa");b.ea("html5_allow_video_keyframe_without_audio")&&(d.Xa=!0);d.xg=b.ea("html5_reattach_on_stuck");d.yq=b.ea("html5_webm_init_skipping");d.Rg=g.T(b.experiments,"html5_request_size_padding_secs")||d.Rg;d.Pj=b.ea("html5_log_timestamp_offset");d.kd=b.ea("html5_abs_buffer_health");d.Vn=b.ea("html5_interruption_resets_seeked_time");d.di=
g.T(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.di;d.td=b.ea("html5_explicitly_dispose_xhr");d.eq=b.ea("html5_skip_invalid_sq");d.Xp=b.ea("html5_restart_on_unexpected_detach");d.Yn=b.ea("html5_log_live_discontinuity");d.Rn=b.ea("html5_rewrite_manifestless_for_continuity");d.Bd=g.T(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.Qd=g.T(b.experiments,"html5_max_drift_per_track_secs");d.Sn=b.ea("html5_rewrite_manifestless_for_sync");d.Gc=g.T(b.experiments,"html5_static_abr_resolution_shelf");
d.Tj=!b.ea("html5_encourage_array_coalescing");d.Yj=b.ea("html5_crypto_period_secs_from_emsg");d.hk=b.ea("html5_disable_reset_on_append_error");d.ql=b.ea("html5_filter_non_efficient_formats_for_safari");d.Mj=b.ea("html5_format_hybridization");d.Xk=b.ea("html5_abort_before_separate_init");d.bq=b.ea("html5_serialize_server_stitched_ad_request");b.ea("html5_media_common_config_killswitch")||(d.C=c.maxReadAheadMediaTimeMs/1E3||d.C,e=b.schedule,e.l.Ng()===e.policy.u?d.ra=10:d.ra=c.minReadAheadMediaTimeMs/
1E3||d.ra,d.ld=c.readAheadGrowthRateMs/1E3||d.ld);fg&&(d.va=41943040);d.ib=!VB();g.SD(b)||!VB()?(e=b.experiments,d.I=8388608,d.J=524288,d.Sj=5,d.Db=2097152,d.Aa=1048576,d.Vp=1.5,d.bp=!1,d.W=4587520,hq()&&(d.W=786432),d.l*=1.1,d.u*=1.1,d.Fc=!0,d.va=d.I,d.Tb=d.J,d.Wc=g.S(e,"persist_disable_player_preload_on_tv")||g.S(e,"persist_disable_player_preload_on_tv_for_living_room")||!1):b.i&&(d.l*=1.3,d.u*=1.3);g.wB&&cq("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.I=20971520,d.J=1572864,e&&(d.W=
812500,d.Xc=1E3,d.xq=5,d.Aa=2097152));!b.ea("html5_disable_firefox_init_skipping")&&g.NC&&(d.Fc=!0);b.supportsGaplessAudio()||(d.il=!1);zD&&(d.Sa=!0);lq()&&(d.Ji=!0);var f;e=null===(f=c.i)||void 0===f?void 0:sy(f);if(AG(c)){d.L=b.ea("html5_used_segment_info_cuepoint");d.rl=!0;d.cq=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.ea("html5_disable_low_pipeline"))d.Zn=2,d.oo=4;d.Bl=c.defraggedFromSubfragments;c.Yd&&(d.Ca=!0);g.QG(c)&&(d.Ya=!1);d.Wj=g.fE(b)}g.fE(b)||(d.Bg=!0);c.isAd()&&
(d.Wb=0,d.Ih=0);CG(c)&&(d.Ma=!0,b.ea("html5_resume_streaming_requests")&&(d.X=!0,d.Xc=400,d.ao=2,d.sf=3,d.Ii=1.4));d.tb=b.ea("html5_enable_subsegment_readahead_v3")||b.ea("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;d.ub=c.Tb;d.pe=d.ub&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||g.vG(c));rq()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.ea("html5_disable_move_pssh_to_moov")&&e&&(d.Fc=!1);e&&(d.xg=!1);var h=0;b.ea("html5_live_use_alternate_bandwidth_window_sizes")&&
(h=b.schedule.policy.l,c.isLivePlayback&&(h=g.T(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.X.i=AG(c)?.5:0;if(!f.policy.i&&h&&(f=f.l,h=Math.round(h*f.resolution),h!==f.i)){var l=Array(h),m=Math.min(h,f.l?f.i:f.valueIndex),n=f.valueIndex-m;0>n&&(n+=f.i);for(var p=0;p<m;++p)l[p]=f.values[(n+p)%f.i];for(;p<h;++p)l[p]=Infinity;
f.i=h;f.values=l;f.valueIndex=m%h;f.l=m===h;f.B=!0;f.I=$C(f)}d.xc=c.isLivePlayback;switch(BG(c)){case 21530001:d.Qj=b.ea("html5_live_smoothly_extend_max_seekable_time");d.tb=!0;"LOW"===c.latencyClass?d.Y=g.T(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===c.latencyClass&&(d.Y=g.T(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Lf=!0;break;case 2153E4:d.tb=!1}d.Sa=d.Sa||c.gq;d.Da=c.Ra;g.vG(c)&&(d.Ad=!0);c.Ra&&!e&&b.ea("html5_hack_gapless_init")&&(d.Rh=!0);
(e=g.T(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.Ra&&c.isAd()&&(d.l*=e,d.u*=e);gH(c)&&(d.i=c.videoId,d.kd=!0);d.Xj=c.Vi;b.ea("html5_dynamic_av1_hybrid_threshold")&&(d.lk=!0,d.Ra=DC(b,{},c.u||void 0));c=jua();e=g.T(b.experiments,"html5_deadzone_multiplier")||1;(f=g.T(b.experiments,"html5_sticky_reduces_discount_by"))&&c&&(e-=f);d.l*=e;d.u*=e;if(e=g.T(b.experiments,"html5_request_sizing_multiplier"))d.Wp=e;qy(b.B,ry.BITRATE)&&(d.W=NaN);b.B.l&&(d.ll="; "+ry.EXPERIMENTAL.name+"=allowed");
c&&(d.Si=0,d.Gc=0);d.Op=b.ea("html5_rec_2020_matrix_correction_killswitch");c=d.xc&&!b.ea("html5_pause_appends_killswitch");d.xc=c||b.ea("html5_never_pause_appends");g.S(b.experiments,"html5_prefer_low_quality_audio_means_64k")&&zD&&(d.Bp=!0);g.S(b.experiments,"debug_html5_random_stun_format")&&(d.wg=!0);g.S(b.experiments,"html5_log_audio_abr")&&(d.Xn=!0);b=b.experiments;g.S(b,"html5_validate_lengthless_slices_killswitch")&&(d.wq=!1);g.S(b,"html5_audio_only_eos_fix_killswitch")&&(d.Rj=!0);g.S(b,"html5_reject_promise_if_seeking_to_head_killswitch")&&
(d.Rp=!0);g.S(b,"html5_rewrite_webm_track_uid_killswitch")&&(d.Ji=!1);g.S(b,"html5_skip_buffer_check_seek_to_head")&&(d.Uj=!0);g.S(b,"html5_request_loop_retry_exhausted_killswitch")&&(d.Bg=!0);b=a.getAudioTrack();b=b.i.isDefault?void 0:b;c=a.Xa;c.keys=[];c.values=[];a.l=new DT(a.u.schedule,d,a.videoData.i,a.videoData.u,QV(a),b,a.X,a.videoData.enableServerStitchedDai,a.videoData.fq);a.l.subscribe("needkeyinfo",a.CI,a);a.l.subscribe("newDrmInfo",a.VQ,a);a.l.subscribe("videoformatchange",a.PL,a);a.l.subscribe("audioformatchange",
a.FQ,a);a.l.subscribe("error",a.handleError,a);a.l.subscribe("ctmp",a.Ua,a);a.l.subscribe("reattachrequired",a.XS,a);a.l.subscribe("metadata",a.vI,a);a.l.subscribe("constraint",a.oS,a);a.l.subscribe("timestamp",a.LL,a);a.l.subscribe("localmediachange",a.GQ,a);a.l.subscribe("localplaybackfailed",a.nN,a);d=Gya(a)?!0:a.Ma&&g.SD(a.u)&&a.videoData.isLivePlayback;a.l.initialize(a.getCurrentTime(),QV(a),d);a.videoData.probeUrl&&(a.l.Da=a.videoData.probeUrl);(a.ra.length||a.Ma)&&TV(a,!1);kV(a.B,a.l);a.I.l=
a.l;a.tb&&(d=a.l,b=new TT(a.tb),d.Y=b,d.u&&(d.u.X=b));hH(a.videoData)&&(a.l.policy.ol=2)};
sya=function(a){a.B=new fV(a.videoData,a.u,a.visibility,function(){return g.fb(a.ra,"ad")});
g.H(a,a.B);a.B.subscribe("seekto",function(b,c){a.B.C=b;var d=a.Db;d.mediaTime=b;d.i=!0;c||UV(a);a.Ca&&b>a.videoData.endSeconds&&isFinite(b)&&(a.removeCueRange(a.Ca),a.Ca=null);b<KV(a)-.01&&(c=bJ(a.playerState,2),g.V(c,8)&&(c=bJ(c,4)),a.Jb(c));a.V("SEEK_TO",a,b)});
a.B.subscribe("seekstart",function(){ER(a)});
a.B.subscribe("seekend",function(){return a.V("SEEK_COMPLETE")});
a.B.subscribe("newmediaelementrequired",function(){return AV(a)});
a.B.subscribe("ended",function(){uR(a)});
a.B.subscribe("ctmp",a.Ua,a);a.B.subscribe("qoeerror",a.jz,a);a.B.subscribe("livereadaheadchanged",function(b){var c=a.C;c.qoe&&(c=c.qoe,g.yU(c,g.tR(c.provider),"lra",[b]),c.Ua("live-readahead-seconds",b.toString()))});
a.B.subscribe("releaseadsprerolllock",function(){a.Id("ad")});
a.B.subscribe("skipslowad",function(){a.Fg("ad.rebuftimeout","RETRYABLE_ERROR","skipslad.vid."+a.videoData.videoId)})};
BV=function(a){a.l&&(a.l.dispose(),a.l=null,kV(a.B,null),a.I.l=null);VV(a)};
VV=function(a){if(a.mediaSource){a.Z();if(a.l){var b=AG(a.videoData)&&a.videoData.Yd&&!a.videoData.isAd();KT(a.l,b)}a.mediaSource.dispose();a.mediaSource=null}};
WV=function(a){if(a.mediaSource)return a.mediaSource.Yt;a.Z();Hya(a);return a.mediaSource?a.mediaSource.Yt:null};
Hya=function(a){if(a.ea("html5_application_media_source"))a.V("requestmediasource",a);else{var b=g.T(a.u.experiments,"html5_source_buffer_attach_retry_limit")||0;a.xg<b&&a.sf.start();try{var c=a.i.xv()}catch(d){if(qU(a.I,"html5.missingapi",{updateMs:"1"}))return;g.qt(d);d.message="window.URL object overwritten by external code";window.setTimeout(function(){throw d;},0);
a.Fg("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");return}pR(a,c)}};
pR=function(a,b){Iya(a);a.mediaSource=b;xga(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){a.Z();var d=a.getDuration();!d&&AG(a.videoData)&&(d=g.T(a.u.experiments,"html5_manifestless_media_source_duration")||3600);a.mediaSource.isView?(c=d,a.Z(),c>a.mediaSource.getDuration()&&RB(a.mediaSource,c)):RB(a.mediaSource,d);var e=a.l,f=a.mediaSource;e.L&&(e.Z(),JT(e),e.L=!1);e.Z();Dua(e);if(!SB(f)){var h=e.videoTrack.i.info.mimeType+e.policy.ll,l=e.audioTrack.i.info.mimeType,m,n,
p=null===(m=f.mediaSource)||void 0===m?void 0:m.addSourceBuffer(l),r="fakesb"===h.split(";")[0]?void 0:null===(n=f.mediaSource)||void 0===n?void 0:n.addSourceBuffer(h);f.Pe&&(f.Pe.webkitSourceAddId("0",l),f.Pe.webkitSourceAddId("1",h));var t=new MB(p,f.Pe,"0",jB(l),!1),u=new MB(r,f.Pe,"1",jB(h),!0);f.i=t;f.l=u;g.H(f,t);g.H(f,u)}iT(e.videoTrack,f.l||null);iT(e.audioTrack,f.i||null);e.mediaSource=f;e.resume();au(f.i,e.Ga,e);au(f.l,e.Ga,e);e.policy.Pj&&1E-4>=Math.random()&&e.Vc("toff",""+f.i.supports(1),
!0);e.Hh();a.V("mediasourceattached");a.sf.stop()}}catch(x){g.qt(x),a.handleError(new g.JB("fmt.unplayable",!0,{msi:"1",ename:x.name}))}})};
Iya=function(a){a.l?g.um(a.l.seek(a.getCurrentTime()-a.Lc()),function(){}):zya(a)};
AV=function(a,b){b=void 0===b?!1:b;return g.C(a,function d(){var e=this;return g.z(d,function(f){if(1==f.i)return e.l&&e.l.Ha()&&BV(e),e.V("newelementrequired"),b?g.w(f,GV(e),2):f.Mb(2);g.V(e.playerState,8)&&e.playVideo();f.i=0})})};
Hra=function(a,b){a.Ua("newelem",b);AV(a)};
UV=function(a){g.V(a.playerState,32)||(a.Jb(aJ(a.playerState,32)),g.V(a.playerState,8)&&a.pauseVideo(!0),a.V("beginseeking",a));a.Rb()};
ER=function(a){g.V(a.playerState,32)?(a.Jb(cJ(a.playerState,16,32)),a.V("endseeking",a)):g.V(a.playerState,2)||a.Jb(aJ(a.playerState,16))};
OR=function(a){a=a.B;return a.u?ZU(a.u):Infinity};
HV=function(a,b){a.V("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
Bya=function(a){g.zb("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.ib.N(this.i,b,this.QL,this)},a);
a.u.Ji&&a.i.Tn()&&(a.ib.N(a.i,"webkitplaybacktargetavailabilitychanged",a.EP,a),a.ib.N(a.i,"webkitcurrentplaybacktargetiswirelesschanged",a.FP,a))};
Kya=function(a){a.ea("html5_enable_timeupdate_timeout")&&!a.videoData.isLivePlayback&&Jya(a)&&a.Xc.start()};
Jya=function(a){if(!a.i)return!1;var b=a.i.getCurrentTime();a=a.i.getDuration();return!!(1<b&&b>a-.3)};
Lya=function(a){window.clearInterval(a.Fc);XV(a)||(a.Fc=Bo(function(){return XV(a)},100))};
XV=function(a){var b=a.i;b&&a.Tb&&!a.videoData.Ya&&!Xx("vfp",a.W.timerName)&&2<=b.Gh()&&!b.Jk()&&0<FB(b.Mg())&&a.W.tick("vfp");return(b=a.i)&&!a.videoData.Ya&&0<b.getDuration()&&(!Xx("pbp",a.W.timerName)&&b.mm()&&2<=b.Gh()&&0<FB(b.Mg())&&a.W.tick("pbp"),b=b.getCurrentTime(),UU(a.Db,b))?(Ara(a),!0):!1};
Ara=function(a){window.clearInterval(a.Fc);a.Ra.stop();a.videoData.Ya=!0;a.u.Xk=!0;a.u.Ra=0;var b=a.I,c=b.videoData.l;c&&b.videoData.ea("html5_disable_codec_on_errors_with_exp_backoff")&&b.i.B.i.delete(c.i);a.u.wg=a.videoData.qq;Mya(a);g.V(a.playerState,8)&&a.Jb(bJ(a.playerState,65));b=a.C;b.i&&Ewa(b.i);b.l&&(b=b.l,c=g.tR(b.provider),0>b.i&&(b.i=c,b.delay.start()),b.l=c,b.B=c);g.cn(a.ld);a.V("playbackstarted");g.sp()&&((a=g.Ja("yt.scheduler.instance.clearPriorityThreshold"))?a():up(0))};
Mya=function(a){var b=a.getCurrentTime(),c=a.videoData;!Xx("pbs",a.W.timerName)&&Vx.measure&&Vx.getEntriesByName&&(Vx.getEntriesByName("mark_nr")[0]?Wx("mark_nr"):Wx());c.videoId&&a.W.info("docid",c.videoId);c.eventId&&a.W.info("ei",c.eventId);c.clientPlaybackNonce&&a.W.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.W.info("start",c.startSeconds.toString());a.i&&a.i.mm()&&a.W.info("paused",1);c.l?a.W.info("fmt",c.l.yc()):a.W.info("fmt","-1");c.Jc&&a.W.info("yt_pre",a.Mf?"2":"1");a.isFullscreen()&&
a.W.info("yt_fs","1");a.W.info("cmt",b.toFixed(3));if(a.l){b=a.l.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.l&&(c=window.performance.getEntriesByName(b.l),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("vrc",c.responseEnd))),b.i&&(c=window.performance.getEntriesByName(b.i),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("arc",c.responseEnd))));b=b.ticks;for(var d in b)b.hasOwnProperty(d)&&a.W.tick(d,b[d])}};
Nya=function(a){a.C.Fe();if(a.videoData.isLivePlayback&&Date.now()>a.Rf+6283){if(!(!a.isAtLiveHead()||a.videoData.i&&oC(a.videoData.i))){var b=a.C;if(b.qoe){b=b.qoe;var c=b.provider.l.Bw(),d=g.tR(b.provider);pwa(b,d,c);c=c.C;isNaN(c)||g.yU(b,d,"e2el",[c.toFixed(3)])}}g.fE(a.u)&&a.Ua("rawlat","l."+ZR(a.Wc,"rawlivelatency").toFixed(3));a.Rf=Date.now()}a.videoData.l&&pB(a.videoData.l)&&(b=$H(a))&&b.videoHeight!==a.Bd&&(a.Bd=b.videoHeight,PV(a,"a",Fya(a,a.videoData.Da)))};
Fya=function(a,b){if("auto"===b.i.Za().quality&&pB(b.Uf())&&a.videoData.Db)for(var c=g.q(a.videoData.Db),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.Bd&&"auto"!==d.i.Za().quality)return d.Uf();return b.Uf()};
wV=function(a){if(!a.videoData.isLivePlayback||!a.videoData.i||!a.l)return NaN;var b=AG(a.videoData)?a.l.Aa.Ng()||0:a.videoData.i.Y;return Date.now()/1E3-a.Vf()-b};
Oya=function(a){!a.ea("html5_ignore_airplay_events_on_new_video_killswitch")&&a.i&&a.i.Zf()&&(a.Ec=(0,g.N)());a.u.ll?g.Ao(function(){YV(a)},0):YV(a)};
YV=function(a){if(a.i)try{a.Wb=a.i.playVideo()}catch(c){JV(a,"err."+c)}if(a.Wb){var b=a.Wb;b.then(void 0,function(c){a.Z();if(!g.V(a.playerState,4)&&!g.V(a.playerState,256)&&a.Wb===b)if(c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))a.Z();else{var d="promise";c&&c.name&&(d+=";m."+c.name);try{a.Jb(aJ(a.playerState,2048))}catch(e){}JV(a,d);a.Lf=!0}})}};
JV=function(a,b){g.V(a.playerState,128)||(a.Jb(cJ(a.playerState,1028,9)),a.Ua("dompaused",b),a.V("onDompaused"))};
yV=function(a){if(!a.i||!a.videoData.u)return!1;var b,c,d=null;(null===(c=a.videoData.u)||void 0===c?0:c.i)?(d=WV(a),null===(b=a.l)||void 0===b?void 0:b.resume()):(BV(a),a.videoData.Da&&(d=a.videoData.Da.qs()));b=d;d=a.i.yv();c=!1;d&&null!==b&&b.i===d.i||(a.W.tick("vta"),Yx("vta","video_to_ad"),0<a.getCurrentTime()&&(c=a.getCurrentTime(),a.B.C=c),a.i.zq(b),a.mediaSource&&up(4),!a.videoData.Ya&&g.eJ(a.playerState)&&a.Ra.start(),c=!0);g.V(a.playerState,2)||(b=a.B,b.J||!(0<b.C)||b.i&&0<b.i.getCurrentTime()||
b.seekTo(b.C));a:if(b=c,g.IG(a.videoData)&&a.i)if((d=a.videoData.I)&&a.i.Tn()){var e=a.i.Re();if(a.J)if(e!==a.J.element)CV(a);else if(b&&"fairplay"===d.flavor&&!gq())CV(a);else break a;a.J=new jU(e,a.videoData,a.u);a.J.subscribe("licenseerror",a.OL,a);a.J.subscribe("qualitychange",a.zQ,a);a.J.subscribe("heartbeatparams",a.ML,a);a.J.subscribe("keystatuseschange",a.NL,a);a.J.subscribe("hdproberequired",a.yQ,a);a.J.subscribe("ctmp",a.Ua,a);b=g.q(a.Xa.keys);for(d=b.next();!d.done;d=b.next())d=a.Xa.get(d.value),
Iva(a.J,d);a.ea("html5_eme_loader_sync")||(a=a.Xa,a.keys=[],a.values=[])}else a.Fg("fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return c};
CV=function(a){a.J&&(a.J.dispose(),a.J=null)};
qR=function(a,b){b=void 0===b?!1:b;return a.videoData.isLivePlayback&&(a.isAtLiveHead()&&(a.ea("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.V(a.playerState,4))||lV(a.B)||g.QG(a.videoData))?a.getCurrentTime():KV(a,b)};
KV=function(a,b){return gV(a.B,void 0===b?!1:b)};
Pya=function(a){return a.i?a.i.wv():a.loop};
tya=function(a){a.Z();a.i&&(a.mediaSource?(CV(a),VV(a),WV(a)):(a.videoData.Da&&a.videoData.Da.BC(),a.i.stopVideo()),a.playVideo())};
ZV=function(a,b){g.S(a.u.experiments,"html5_log_rebuffer_reason")&&a.Ua("bufreason","r."+b+";lact."+zp())};
AR=function(a,b,c,d,e,f){var h;if(null===(h=a.videoData.i)||void 0===h?0:h.isLive){var l=2===c.playerType?c:b,m=b.videoData.videoId,n=c.videoData.videoId;if(m&&n){var p=a.C;if(p.qoe){p=p.qoe;var r=b.cpn,t=c.cpn,u=l.videoData.Ad,x=p.provider.videoData.clientPlaybackNonce,y=p.provider.videoData.videoId,E=t!==x&&n!==y;x=r!==x&&m!==y;p.reportStats();p.adCpn&&p.adCpn!==r||(p.adCpn=x?r:"",p.J=x?m:"",p.adFormat=x?u:void 0,twa(p,f?2:0,t,n,e),p.reportStats(),p.adCpn=E?t:"",p.J=E?n:"",p.adFormat=E?u:void 0,
twa(p,f?3:1,r,m,d),p.reportStats())}d=a.C;b=b.cpn;d.u.has(b)?(b=d.u.get(b),QU(b).send(),g.Co(b.l),b.l=NaN):(d.vg=d.provider.videoData.clientPlaybackNonce,d.vg&&d.i&&d.u.set(d.vg,d.i));a=a.C;c=c.cpn;b=l.videoData;l=l.Cc/1E3;var D;a.u.has(c)?null===(D=a.u.get(c))||void 0===D?void 0:D.u&&isNaN(D.l)&&NU(D,!1):(D=Qwa(a,a.provider,b,l),a.u.set(c,D),Ewa(D));a.vg=c}}};
$V=function(a){a.l&&(a=a.l,a.audioTrack.B.B=null,a.videoTrack.B.B=null,a.policy.i="",a.policy.jk=!1)};
Qya=function(a,b){if(a.videoData.Tb){var c=g.T(a.u.experiments,"html5_log_rebuffer_events");if(c&&a.i){var d=a.i.Eb();d.rt=(1E3*g.tR(a.C.provider)).toFixed();d.e=b.substr(0,3);a.Gc[a.wg++%c]=d}}"timeupdate"!==b&&"progress"!==b&&a.Z()};
Rya=function(a){if(a.videoData.Tb){a.Gc.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.q(a.Gc),c=b.next();!c.done;c=b.next())c=c.value,a.Ua("vpe","t."+c.rt+";"+g.KB(c));a.Gc=[];a.wg=0}};
LV=function(a,b){a.Ua("seekreason",b)};
Sya=function(a){if(cq("cobalt")&&cq("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Ua("nxdock",""+ +b)}};
zra=function(a,b,c,d,e){a.Ua("xvt","m."+b+";g.1;tt."+(c?1:0)+";np."+(d?1:0)+";c."+e)};
TV=function(a,b){IT(a.l,b||Gya(a))};
Gya=function(a){var b=a.ea("disable_prefetch_when_ad_pending_for_living_room")&&g.SD(a.u),c=a.ea("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.fb(a.ra,"ad")};
wya=function(a){if(sG(a.videoData,"html5_set_debugging_opt_in")&&(a=g.Wq.getInstance(),!g.Yq(0,183))){var b="f"+(Math.floor(183/31)+1),c=Xq(b)||0;c|=268435456;0==c?delete Vq[b]:(c=c.toString(16),Vq[b]=c.toString());a.save()}};
g.bW=function(a,b,c){g.F.call(this);var d=this;this.Zt=this.Lg=!1;this.X=null;this.Wc={};this.Tb={};this.kd=!1;this.Fc=null;this.ld=!1;this.Ga=!0;this.Pc=!1;this.td=this.Jc=null;this.pe=!0;this.B=this.L=null;this.ub=this.Sa=!1;this.Bd=this.Xa=this.u=this.playlist=null;this.ib=void 0;this.Da=0;this.Ca=this.Ra=this.Y=null;this.Z();this.config=pfa(b||{});this.webPlayerContextConfig=c;Bea();b=this.config.args||{};this.i=new VD(b,c,c?c.canaryState:this.config.assets.player_canary_state);g.H(this,this.i);
void 0!==navigator.mediaCapabilities&&(hC=!0);g.S(this.i.experiments,"html5_disable_subtract_cuepoint_offset")&&(cz=!0);g.S(this.i.experiments,"html5_log_opus_oboe_killswitch")&&(Lz=!1);g.S(this.i.experiments,"html5_skip_empty_load")&&(Tya=!0);Uya=g.S(this.i.experiments,"html5_ios_force_seek_to_zero_on_stop");Vya=g.S(this.i.experiments,"html5_ios7_force_play_on_stall");Wya=g.S(this.i.experiments,"html5_ios4_seek_above_zero");g.S(this.i.experiments,"html5_mediastream_applies_timestamp_offset")&&(bT=
!0);g.S(this.i.experiments,"html5_dont_override_default_sample_desc_index")&&(uz=!0);g.S(this.i.experiments,"html5_onesie_media_bytes_disable_hw_crypto")&&(Gxa=!0);this.i.i&&!Xya&&(window.addEventListener(yD?"touchstart":"click",tra,{capture:!0,passive:!0}),Xya=!0);this.Qd=U(DD(this.i)&&!0,b.enablesizebutton);this.Gc=U(!1,b.player_wide);this.visibility=new vR;g.H(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.TL(this);g.H(this,this.events);this.Ej=new g.Bn;g.H(this,
this.Ej);this.El=new g.Bn;g.H(this,this.El);this.dn=new usa;this.Qa=new g.KL(this);g.H(this,this.Qa);this.template=new cS(this);g.H(this,this.template);this.ra=1;this.Eh=this.i.Sf?Yya():{volume:100,muted:this.i.mute};this.G=this.i.u?new JL(this,1):new DL(this,1);g.H(this,this.G);c={};this.Wb=(c.internalvideodatachange=this.IP,c.playbackready=this.KP,c.playbackstarted=this.LP,c.statechange=this.MP,c);this.C=Zya(this);this.Kc=new g.TL(this);g.H(this,this.Kc);this.J=new UL(this.i,this.C);this.l=$ya(this);
c={};this.Ad=(c.airplayactivechange=this.CP,c.airplayavailabilitychange=this.DP,c.beginseeking=this.SP,c.endseeking=this.pQ,c.internalAbandon=this.TL,c.internalaudioformatchange=this.RL,c.internalvideodatachange=this.fb,c.internalvideoformatchange=this.XL,c.liveviewshift=this.BQ,c.playbackstalledatstart=this.XR,c.progresssync=this.pR,c.onLoadProgress=this.CQ,c.SEEK_COMPLETE=this.VL,c.SEEK_TO=this.OR,c.onVideoProgress=this.YL,c.onLoadedMetadata=this.EQ,c.onDompaused=this.nQ,c.playbackready=this.eR,
c.statechange=this.aJ,c.connectionissue=this.mu,c.newelementrequired=this.AI,c.heartbeatparams=this.SL,c.videoelementevent=this.WL,c.drmoutputrestricted=this.oQ,c.requestmediasource=this.BR,c.signatureexpired=this.TR,c.localmediachange=this.UL,c);this.Aa=new g.TL(this);g.H(this,this.Aa);c=10;g.SD(this.i)&&(c=3);eE(this.i)&&(c=g.T(this.i.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Ya=new TR(c,function(e){e!==g.X(d,e.getPlayerType())&&e.dispose()});
g.H(this,this.Ya);this.xc=this.tb=-1;this.Db=new g.J(this.template.resize,16,this.template);g.H(this,this.Db);aza(this);this.va=new IR(this.Qa,this.i,this.l);this.Ma=new rR(this.Qa);g.H(this,this.Ma);lsa(this.i.deviceParams.c);this.events.N(this.Qa,g.tw("appapi"),this.GP);this.events.N(this.Qa,g.uw("appapi"),this.HP);this.events.N(this.Qa,g.tw("appad"),this.bI);this.events.N(this.Qa,g.uw("appad"),this.bI);this.ea("html5_clip_seek_to_start_behavior_killswitch")?this.events.N(this.Qa,g.uw("applooprange"),
this.JJ):this.events.N(this.Qa,g.uw("applooprange"),this.Nx);this.events.N(this.Qa,"presentingplayerstatechange",this.rh);this.events.N(this.Qa,"resize",this.CR);this.template.xa(le(a));this.events.N(this.Qa,"offlineslatestatechange",this.XQ);this.Xc=bza(this,this.template.element);g.H(this,this.Xc);this.i.Sj&&(this.ea("woffle_orchestration")?this.W=new era(this.i,this.Qa,aW(this,1),function(){return d.df()}):this.ea("hoffle_save")?this.X=new wL(this.Qa,aW(this,1),function(){return d.df()}):xha()&&
lna());
this.i.ub&&(g.gM.ux=g.yP);cza(this);this.J.tick("fs");dza(this);this.I=null;this.i.ub&&Una(this.C);g.LD(this.C.G.T())&&fM(this.C,"music");g.BD(this.C.G.T())&&fM(this.C,"embed");this.ea("web_player_sentinel_is_uniplayer")||zo(Error("Player flag missing: web_player_sentinel_is_uniplayer"));this.He=eza(this);if(a=g.T(this.i.experiments,"html5_block_pip_safari_delay"))this.Ec=new g.J(this.FF,a,this),g.H(this,this.Ec);this.Z()};
eza=function(a){function b(c){if(c.stack&&-1!==c.stack.indexOf("player"))(a.u||a.l).C.onError("player.exception",g.KB({n:c.name,m:c.message}))}
wo.push(b);return function(){var c=wo.indexOf(b);-1!==c&&wo.splice(c,1)}};
$ya=function(a){var b=new g.zV(a.i,1,a.J,a.template,function(c,d){for(var e=[],f=1;f<arguments.length;++f)e[f-1]=arguments[f];return a.Ej.V.apply(a.Ej,[c].concat(g.ma(e)))},function(){return a.Qa.getVisibilityState()},a.visibility);
b.setPlaybackRate(a.i.l?1:fza(a,gza()));au(b,a.Wb,a);return b};
Zya=function(a){var b="",c=psa(a);0===c.indexOf("//")&&(c=a.i.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)||zo(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new cM(a.Qa,b);hza(a,b);return b};
hza=function(a,b){var c={};c=(c.destroyed=function(){a.i.u&&a.u?a.Qa.La("onApiChange",a.u.getPlayerType()):a.Qa.La("onApiChange")},c);
b.l=c};
iza=function(a,b){var c=a.isVideoInfoVisible();a.Y||(a.Y=new kS(a.Qa),g.H(a,a.Y),g.RL(a.Qa,a.Y.element,4));g.VJ(a.Y,b);cW(a)&&c!==b&&g.NL(a.C).cD();a=a.u;b&&a&&a.Ua("sfn","1",!0)};
dW=function(a){a.B=a.i.deviceHasDisplay?iR.pop()||new g.oM(g.De("VIDEO")):new g.oM(g.De("AUDIO"));g.H(a,a.B);a.u&&nR(a.u,a.B);try{a.i.tb?(a.Ra&&a.events.hc(a.Ra),a.Ra=a.events.N(a.B,"volumechange",a.OQ)):(a.B.Kr(a.Eh.muted),a.B.setVolume(a.Eh.volume/100))}catch(d){a.Qe("html5.missingapi","UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.$t(a.Aa);jza(a);var b=a.template;b.Gb=a.B.Re();b.Iw=!1;b.Gb.parentNode||g.Ge(b.Rs,b.Gb,0);b.zx=new g.Uf(0,0,0,0);tsa(b);
dS(b);g.K(b.Gb,"video-stream");g.K(b.Gb,g.bS.MAIN_VIDEO);var c=b.app.T();c.Kf&&b.Gb.setAttribute("data-no-fullscreen","true");c.Ii&&(b.Gb.setAttribute("webkit-playsinline",""),b.Gb.setAttribute("playsinline",""));c.il&&b.Gb&&b.N(b.Gb,"click",b.Gb.play,b.Gb);try{a.B.zq()}catch(d){a.Qe("html5.missingapi","UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
gW=function(a,b){if(a.u!==b){a.Z("start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId);var c=null;a.u&&(c=a.u.getPlayerState(),a.Z(),hM(a.C,3),eW(a,"cuerangesremoved",ST(a.u.X)||[]),a.Ma&&!b.isGapless()&&a.u.isGapless()&&a.B&&a.B.stopVideo(),kza(a));fW(a,b);a.u=b;a.B&&nR(b,a.B);au(b,a.Ad,a);a.fb("newdata",b,b.getVideoData());c&&!g.dJ(c,b.getPlayerState())&&a.aJ(new g.dI(b.getPlayerState(),c));b.va.isFinished()&&a.fb("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().l)&&
c.video)&&a.Qa.La("onPlaybackQualityChange",c.quality);eW(a,"cuerangesadded",ST(a.u.X)||[]);c=b.getPlayerState();g.V(c,2)?lza(a):g.V(c,8)&&b.playVideo();a.Z()}};
lza=function(a){if(!mza(a)){var b=a.l.Dd();b&&(b=b.ct(),b instanceof Promise&&b.catch(function(){}));
hW(a,hJ(a.rb()))}};
jza=function(a){var b=a.B;yB()?a.Aa.N(b,"webkitpresentationmodechanged",a.LR):xB()&&(a.Aa.N(b,"enterpictureinpicture",function(){a.Lr(!0)}),a.Aa.N(b,"leavepictureinpicture",function(){a.Lr(!1)}));
ID&&(a.Aa.N(b,"webkitbeginfullscreen",function(){a.Ni(3)}),a.Aa.N(b,"webkitendfullscreen",function(){a.Ni(0)}))};
fW=function(a,b){if(b!==a.l){var c=b.getPlayerType();a.Wc[c]=b}};
kza=function(a){a.Z();var b;if(b=a.Ca)b=a.B,b=!!b&&b===a.Ca.l;b&&(a.Xg(),dW(a));a.u&&(a.u.Xg(),bu(a.u,a.Ad,a));a.u=null;a.Z()};
g.X=function(a,b){return b?1===b?a.l:a.getVideoData().enableServerStitchedDai&&2===b?a.u:a.Wc[b]||null:a.u};
aW=function(a,b){var c=a.J;2===b&&(c=new UL(a.i));return new g.zV(a.i,b,c,a.template,function(d,e){for(var f=[],h=1;h<arguments.length;++h)f[h-1]=arguments[h];return a.Ej.V.apply(a.Ej,[d].concat(g.ma(f)))},function(){return a.Qa.getVisibilityState()},a.visibility)};
iW=function(a,b){return a.Yd(b)?a.l:b};
jW=function(a,b){var c=a.u;return c&&b===a.l&&a.Yd(b)&&a.Yd(c)?c:b};
nza=function(a){a.Z();var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.C;d.UF();fM(d,"attribution",void 0,!1,!0);fM(d,"embed");fM(d,"inline_preview");fM(d,"kids");fM(d,"remote");fM(d,"miniplayer");fM(d,"music");fM(d,"captions",void 0,!0);fM(d,"unplugged");fM(d,"ypc",void 0,!1,!0);fM(d,"ypc_clickwrap",void 0,!1,!0);fM(d,"yto",void 0,!1,!0);fM(d,"webgl",void 0,!1,!0);d.u&&c?d.G.Id("endscreen"):fM(d,"endscreen");d.u&&c?(d.G.Id("annotations_module"),d.G.Id("creatorendscreen")):(d.iA(),fM(d,"creatorendscreen",
void 0,!0));d.VF();Tna(d);c&&bH(b)?a.Kc.N(a.Qa,"presentingplayerstatechange",a.gR):Sna(a.C);a.Qa.V("videoready",b)};
kW=function(a){return a.l.getVideoData()};
lW=function(a){a=kW(a);a.isValid();return bH(a)};
cza=function(a){var b=new g.$F(a.i,a.config.args);g.Ru()&&b.X.push("remote");b.isValid()&&(a.l.Oi(b,function(){return a.df()}),a.ea("html5_androidtv_quic")&&(b=window,"h5vcc"in b&&"settings"in b.h5vcc&&b.h5vcc.settings.set("QUIC",1)),!g.S(a.i.experiments,"html5_delay_initial_loading")&&lW(a)&&(a.i.Xc||a.i.kd)&&AL(a.l))};
dza=function(a){a.Z();a.lA();var b=a.config.args;dW(a);var c=kW(a);a.Qa.La("onVolumeChange",a.Eh);if(b&&XL(b)){var d=aE(a.i);d&&!a.Lg&&(b.fetch=0);var e=g.BD(a.i);e&&!a.Lg&&(b.fetch=0);mW(a,b);g.BD(a.i)&&a.J.tick("ep_pr_s");d&&!a.Lg?nW(a):e&&!a.Lg?oW(a):c.isValid()||$L(a.playlist,function(){pW(a)})}gW(a,a.l);
g.V(a.l.getPlayerState(),128)||(b=vga(a.i.deviceHasDisplay),"fmt.noneavailable"===b?a.Qe("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Qe(b,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&lW(a)&&(a.i.Xc||a.i.kd)?qW(a):oza()?(g.Qr("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.i.W}),pza(!1),qW(a)):mE(a.i)||qza(a),a.ea("web_player_inline_botguard")&&(g.dE(a.i)?(pp(function(){rW(a)}),pp(function(){Dt()})):(rW(a),Dt())),a.Z())};
rW=function(a){var b=a.getVideoData().botguardData;a.ea("web_player_botguard_inline_skip_config_killswitch")&&(b={},b.interpreterScript=g.M("BG_I",null),b.interpreterUrl=g.M("BG_IU",null),b.program=g.M("BG_P",null));if(b){var c=a.getVideoData().Ma||"";a=a.i.cspNonce;c=c?"c1b"in Fp(c):!1;var d=b.interpreterScript,e=b.interpreterUrl;if(b.interpreterSafeScript){d=b.interpreterSafeScript.privateDoNotAccessOrElseSafeScriptWrappedValue||"";var f=g.gc("From proto message. b/166824318");ec(f);ec(f);d=(f=
$b())?f.createScript(d):d;d=(new ic(d)).toString()}b.interpreterSafeUrl&&(e=b.interpreterSafeUrl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"",f=g.gc("From proto message. b/166824318"),ec(f),ec(f),e=mc(e).toString());b.program&&(At.l?0:!rL||72E5<(0,g.N)()-rL)&&(d||e)&&(Yx("bg_i","player_att"),At.initialize(d,e,b.program,Pma,a,c))}};
qza=function(a){a.Z();a.Qa.V("initializingmode");a.Sk(2);fM(a.C,"remote");g.S(a.i.experiments,"player_cued_miniplayer_module_killswitch")||fM(a.C,"miniplayer");a.Z()};
qW=function(a){a.Z();if(g.V(a.l.getPlayerState(),128))return!1;lW(a)&&a.i.kd&&(iR.length&&a.Zt?(FL(a,{muted:!1,volume:a.Eh.volume},!1),sW(a,!1)):iR.length||a.Eh.muted||(FL(a,{muted:!0,volume:a.Eh.volume},!1),sW(a,!0)));tW(a,1,a.l.getVideoData(),!1);a.Qa.V("initializingmode");gW(a,a.l);a.Sk(3);var b;if(!(b=!a.i.Mj)){if(b=a.Ca)b=a.B,b=!!b&&b===a.Ca.l;b=b&&a.kd}b&&(a.Xg(),dW(a),nR(a.l,a.B));NV(a.l);if(g.V(a.l.getPlayerState(),128))return!1;hW(a,3);return a.kd=!0};
cW=function(a){a=g.NL(a.C);return!!a&&a.loaded};
rza=function(a,b){if(!a.L)return!1;var c=.001*a.L.startTimeMs;a=.001*a.L.endTimeMs;return be(b,c)||be(b,a)||b>=c&&b<=a};
fza=function(a,b){var c=a.Qa.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};
uW=function(a,b,c){if(a.Yd(c)){c=c.getVideoData();if(a.I)c=b;else{a=a.va;for(var d=g.q(a.i),e=d.next();!e.done;e=d.next())if(e=e.value,c.cd===e.cd){b+=e.Cc/1E3;break}d=b;a=g.q(a.i);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.cd===e.cd)break;var f=e.Cc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.zd/1E3;else break}c=d}return c}return b};
sza=function(a,b){var c;return 3===a.getPresentingPlayerType()?hJ(g.NL(a.C).od):a.getVideoData().enableServerStitchedDai&&2===b?(null===(c=a.I)||void 0===c?0:c.isAdPlaying(a.getCurrentTime()))?a.tb:-1:2!==b||a.Yd()?a.tb:a.xc};
tza=function(a){a.Z();vW(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Tb={};var b=a.J;if(b.i){var c=b.i;c.i={};c.Ts={}}b.l=!1;a.I?(b=a.I,a=a.l,a.getPlayerType(),b.Z(),DR(b,!1),FR(b),b.i=a):(b=a.va,a=a.l,1!==a.getPlayerType()&&b.Gd("e.invalidParentVideoPlayerType"),b.Z(),NR(b,!1),QR(b),b.l=a)};
nW=function(a){var b=uza();if(b)if(!b.list)a.Dv();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Qa.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==a.playlist.Za().videoId||(b.index=a.playlist.index));ZL(a.playlist,b);a.Xa&&wW(a,a.Xa)}else a.Xa=null};
oW=function(a,b){var c=(b?b:kW(a)).mF;a.J.tick("ep_pr_r");null!=c&&(ZL(a.playlist,c),a.Pc&&$L(a.playlist,function(){pW(a,b)}))};
mW=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.Dv,a),g.ui(a.playlist),a.playlist=null);b&&(a.Lg&&(b.fetch=0),a.playlist=new g.WL(a.i,b),a.playlist.subscribe("error",a.Dv,a))};
xW=function(a,b,c,d){b in a.Tb||(c=new g.pw(c,d,{id:b,priority:1,namespace:"appad"}),a.l.addCueRange(c),a.Tb[b]=c)};
yza=function(a,b){if(!(b in a))return!1;a=a[b];Array.isArray(a)||(a=[a]);a.forEach(function(c){var d=void 0===d?!1:d;if(!(d=dw(fw(c,vza,null),c,d,"Active View 3rd Party Integration URL"))){var e=void 0===e?!1:e;d=dw(fw(c,wza,null),c,e,"Google/YouTube Brand Lift URL")}if(!(e=d)){var f=void 0===f?!1:f;e=dw(fw(c,xza,null),c,f,"Nielsen OCR URL")}g.tq(c,void 0,e)});
return!0};
hW=function(a,b){a.Z();if(a.u){var c=a.u.getPlayerType();if(2===c&&!a.Yd()){a.xc!==b&&(a.xc=b,a.Qa.La("onAdStateChange",b));return}if(2===c&&a.Yd()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.tb!==b&&(a.tb=b,a.Qa.La("onStateChange",b))};
zza=function(a,b,c,d){d=void 0===d?Infinity:d;a.Z();c=c||a.u.getPlayerType();var e;g.S(a.i.experiments,"html5_gapless_preloading")&&(e=tW(a,c,b,!0));e||(e=aW(a,c),e.Oi(b,function(){return a.df()}));
a.Zv(e,d)};
Aza=function(a,b,c,d){var e=yW(c,b.videoId,b.cd);a.Z();b.Jc=!0;var f=a.u&&e===yW(a.u.getPlayerType(),a.u.getVideoData().videoId,a.u.getVideoData().cd)?a.u:aW(a,c);f.Oi(b,function(){return a.df()});
!g.S(a.i.experiments,"unplugged_tvhtml5_video_preload_no_dryrun")&&1===c&&eE(a.i)||AL(f,!0);a.Ya.set(e,f,d||3600)};
yW=function(a,b,c){return a+"_"+b+"_"+c};
tW=function(a,b,c,d){if(!f){var e=yW(b,c.videoId,c.cd);var f=a.Ya.get(e);if(!f)return null;a.Ya.remove(e);if(g.V(f.getPlayerState(),128))return f.dispose(),null}if(f===g.X(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||a.Sv(f);return f};
zW=function(a,b,c){c=g.X(a,c);b&&c===a.l&&(c.getVideoData().He=!0)};
AW=function(a,b,c){a.Z();var d=g.X(a,c);d&&(a.cancelPlayback(4,c),d.Oi(b,function(){return a.df()}),2===c&&a.l&&Nwa(a.l.C,b.clientPlaybackNonce,b.Ad||"",b.breakType||0),d===a.l&&(a.Sk(1),qza(a)));
a.Z()};
Bza=function(a,b,c,d,e){b=Xma(b,c,d,e);(c=g.BD(a.i)&&!a.i.J)&&!a.Lg&&(b.fetch=0);mW(a,b);g.BD(a.i)&&a.J.tick("ep_a_pr_s");c&&!a.Lg?(c=kW(a),Ina(c,b).then(function(f){a.Pc=!0;oW(a,f)})):$L(a.playlist,function(){pW(a)});
g.BD(a.i)&&a.J.tick("ep_a_pr_r")};
pW=function(a,b){var c=g.BD(a.i)&&!a.i.J,d=c&&b?b:a.playlist.Za();b=c&&b?b:a.getVideoData();d&&(b.Cj&&(a.i.Xc||a.i.kd)||!a.Ga?(b=b.He,d=a.jn(d),b&&zW(a,d)):AW(a,d));g.BD(a.i)&&a.J.tick("ep_p_l");a.Pc=!1;a.Qa.La("onPlaylistUpdate")};
mza=function(a){if(a.playlist&&g.HD(a.i)&&a.qt()){var b=g.S(a.i.experiments,"html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
wW=function(a,b){var c=g.Ja(b);c?((b=uza())&&b.list&&c(),a.Xa=null):a.Xa=b};
uza=function(){var a=g.Ja("yt.www.watch.lists.getState");return a?a():null};
Cza=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"===f?(b.style=ow.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=ow.AD_MARKER:(b.style=ow.TIME_MARKER,b.color=e),b.visible=!0);a.Gs([new g.pw(1E3*c,1E3*d,b)],1);return!0};
Dza=function(a){var b=(0,g.N)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
FL=function(a,b,c){a.i.X&&(a.Eh=b,b.muted||sW(a,!1),c&&a.i.Sf&&!a.i.tb&&Eza({volume:Math.floor(b.volume),muted:b.muted}),Fza(a),c=g.wB&&a.B&&!a.B.Wf(),!a.i.tb||c)&&(b=g.Ub(b),a.i.Sf||(b.unstorable=!0),a.Qa.La("onVolumeChange",b))};
Fza=function(a){var b=a.getVideoData();if(!b.ld){b=a.i.tb?1:eH(b,a.i.ea("html5_stateful_audio_normalization"));var c=a.B;c.Kr(a.Eh.muted);c.setVolume(a.Eh.volume*b/100)}};
sW=function(a,b){b!==a.Zt&&(a.Zt=b,a.Qa.La("onMutedAutoplayChange",b))};
BW=function(a){var b=Vt(!0);return b&&(b===a.template.element||a.B&&b===a.B.Re())?b:null};
Hza=function(a,b){var c=window.screen&&window.screen.orientation;if((g.S(a.i.experiments,"lock_fullscreen2")||a.i.ea("embeds_enable_mobile_custom_controls")&&a.i.i)&&c&&c.lock&&(!g.wB||!Gza))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.Sa||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](g.Ka);a.Sa=!0}}else a.Sa&&(a.Sa=!1,c.unlock())};
eW=function(a,b,c){a.Qa.V(b,c);var d=g.SD(a.i)||g.JD(a.i)||gE(a.i);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Qa.La(e,c)}};
CW=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.X(a,e);if(!h||(2!==h.getPlayerType()||a.Yd(h)||f)&&!g.QG(h.getVideoData()))3===a.getPresentingPlayerType()?g.NL(a.C).Qk("control_seek",b,c):(h===a.l&&a.L&&!rza(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
Iza=function(a,b,c,d){if(!a.ub){c&&(a.Xg(),dW(a));a.ub=!0;c=g.X(a);c.I.B=!0;c.jz("staleconfig",{reason:b});var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;a.ea("propagate_aqi_on_player_reload")&&e.adQueryId&&(f.ad_query_id=e.adQueryId);e.isLivePlayback?AG(e)&&g.fE(a.i)&&(f.live_utc_start=c.Vf(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.Ga&&(f.vvt=e.Ga);e.Sa&&(f.vss_credentials_token=e.Sa,f.vss_credentials_token_type=e.Zh);e.oauthToken&&(f.oauth_token=e.oauthToken);
f.autoplay=1;f.reload_count=e.tb+1;f.reload_reason=b;e.uq&&(f.unplugged_partner_opt_out=e.uq);e.Wc&&(f.ypc_is_premiere_trailer=e.Wc);a.loadVideoByPlayerVars(f,void 0,d)}};
Kza=function(a,b){kW(a).autonavState=b;Jza(b);a.Qa.V("autonavchange",b)};
Lza=function(a){var b=a.getVideoData().ld,c=a.i.Wb,d=a.B;b||c?d.nA():(d.oA(),FL(a,a.Eh))};
bza=function(a,b){return g.S(a.i.experiments,"html5_enable_embedded_player_visibility_signals")&&g.BD(a.i)?new aS(b,a.i.ea("embeds_enable_intersection_observer_v2")):null};
vW=function(a){var b=iM(a.ob());b&&b.created&&(a.Z(),b.destroy())};
Mza=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.q(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=ig(a,d);b.hidden=!!a.hidden};
aza=function(a){var b=a.i,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;g.S(b.experiments,"embeds_enable_request_storage_access_safari_itp")&&g.es&&d&&b.l?oq()||b.Da?(g.Qr("embedsStorageAccessNotChecked",{isIosWebview:oq(),isPemPlayer:b.Da}),a.ib=!1):c.hasStorageAccess().then(function(e){g.Qr("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.ib=!e},function(e){g.Qr("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});zo(Error("Embeds ITP Error: "+e));a.ib=!1}):a.ib=!1};
DW=function(a,b){var c=void 0;g.SD(a.i)&&Np(b)&&Mp(b)&&(a=g.dH(a.getVideoData()))&&(c={Authorization:"Bearer "+a});g.tq(b,void 0,void 0,c)};
EW=function(a,b){b.forEach(function(c){DW(a,c)})};
psa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
Nza=function(a){var b;a=null===(b=GL(a.ob()))||void 0===b?void 0:b.ut();if(!(a instanceof g.KM))return null;a=a.JG();return(null===a||void 0===a?void 0:a.L)||null};
FW=function(a){this.controller=a};
GW=function(a){this.gA=a};
HW=function(a,b,c){this.gA=a;this.Cg=b;this.Di=c};
Oza=function(a,b,c){var d=a.gA();switch(b.type){case "SKIP":qla(d,a.Cg,a.Di,c)}};
IW=function(){};
JW=function(){};
KW=function(){};
LW=function(a,b){this.Fs=a;this.Va=b};
MW=function(a){this.G=a};
NW=function(a,b){this.Bj=a;this.Va=b};
Qza=function(a){g.F.call(this);this.i=a;this.ZL=Pza(this)};
Pza=function(a){var b=new GJ(a.i.Hc,a.i.Cg);g.H(a,b);a=g.q([new FW(a.i.sN),new LW(a.i.Fs,a.i.Va),new MW(a.i.G),new NW(a.i.Bj,a.i.Va),new HW(a.i.lP,a.i.Cg,a.i.Di),new GW(a.i.BN),new JW,new KW,new IW]);for(var c=a.next();!c.done;c=a.next())c=c.value,jla(b,c),kla(b,c);a=g.q(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())EJ(b,c.value,function(){});
return b};
OW=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.Fa.i.has(c.value))return!1;return!0};
Rza=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;default:return b(a),7}};
PW=function(a){var b=new Map;a.forEach(function(c){b.set(c.Vb(),c)});
this.i=b};
R=function(a,b){a=a.i.get(b);if(void 0!==a)return a.get()};
QW=function(a){return Array.from(a.i.keys())};
Tza=function(a){var b;return(null===(b=Sza.get(a))||void 0===b?void 0:b.Ru)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
RW=function(a,b){var c={type:b.sb,controlFlowManagerLayer:Uza.get(b.jb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.kc&&(c.entryTriggerType=b.kc.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);a&&(c.debugData={slotId:b.slotId},a=b.kc)&&(c.debugData.slotEntryTriggerData=Vza(a));return c};
Wza=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:Uza.get(b.jb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
Vza=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.dh&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.dh);null!=a.Ae&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.Ae);return c};
Xza=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(b.debugData={slots:g.Oc(d||[],function(e){return RW(a,e)}),
associatedSlotId:c});return b};
TW=function(a,b){return function(c){return Yza(SW(a),b.slotId,b.sb,b.slotPhysicalPosition,b.jb,b.kc,c.layoutId,c.layoutType,c.jb)}};
Yza=function(a,b,c,d,e,f,h,l,m){return{adClientDataEntry:{slotData:RW(a,{slotId:b,sb:c,slotPhysicalPosition:d,jb:e,kc:f,nf:[],Gf:[],Fa:new PW([])}),layoutData:Wza(a,{layoutId:h,layoutType:l,jb:m,Md:[],jd:[],hd:[],Nd:[],Oc:new Map,Fa:new PW([]),Nc:{}})}}};
UW=function(a){this.Ka=a;this.i=.1>Math.random()};
SW=function(a){return a.i||g.S(a.Ka.get().G.T().experiments,"html5_force_debug_data_for_client_tmp_logs")};
VW=function(a,b,c,d){g.F.call(this);this.Ud=b;this.Xb=c;this.Ka=d;this.i=a(this,this,this,this,this);g.H(this,this.i);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.H(this,b.value)};
WW=function(a,b){a.Ud.add(b);g.H(a,b)};
uja=function(a,b){KI(a.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.q(a.Ud);for(var c=a.next();!c.done;c=a.next())c.value.wh(b)};
vja=function(a,b){KI(a.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.q(a.Ud);for(var c=a.next();!c.done;c=a.next())c.value.Bf(b)};
Kia=function(a,b){KI(a.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.q(a.Ud);for(var c=a.next();!c.done;c=a.next())c.value.Cf(b)};
YW=function(a,b,c){Q(c,b,void 0,void 0,c.zo);XW(a,b,!0)};
$za=function(a,b,c){if(ZW(a.i,b))if($W(a.i,b).B=c?"filled":"not_filled",null===c){aX(a.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.q(a.Ud);for(var d=c.next();!d.done;d=c.next())d.value.zj(b);XW(a,b,!1)}else{aX(a.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.q(a.Ud);for(d=e.next();!d.done;d=e.next())d.value.Aj(b);if($W(a.i,b).C)XW(a,b,!1);else{aX(a.Xb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.i;if(!$W(f,b))throw new bX("Unknown slotState for onLayout");
if(!f.Hd.Ql.get(b.sb))throw new bX("No LayoutRenderingAdapterFactory registered for slot of type: "+b.sb);if(g.gb(c.Md)&&g.gb(c.jd)&&g.gb(c.hd)&&g.gb(c.Nd))throw new bX("Layout has no exit triggers.");cX(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Md);cX(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.jd);cX(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.hd);cX(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Nd)}catch(n){a.Af(b,c,n);XW(a,b,!0);return}$W(a.i,b).I=!0;try{var h=a.i,l=$W(h,b),m=
h.Hd.Ql.get(b.sb).get().Qf(h.B,h.l,b,c);m.init();l.layout=c;if(l.u)throw new bX("Already had LayoutRenderingAdapter registered for slot");l.u=m;dX(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Md);dX(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.jd);dX(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.hd);dX(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Nd)}catch(n){eX(a,b);XW(a,b,!0);a.Af(b,c,n);return}aX(a.Xb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.q(a.Ud);for(d=e.next();!d.done;d=
e.next())d.value.Ei(b,c);eX(a,b);Zza(a,b)}}};
fX=function(a,b,c){aX(a.Xb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.q(a.Ud);for(var d=a.next();!d.done;d=a.next())d.value.Ei(b,c)};
gX=function(a,b,c){aX(a.Xb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.Ud);for(var d=a.next();!d.done;d=a.next())d.value.Tc(b,c)};
JI=function(a,b,c,d){aX(a.Xb,Tza(d),b,c);a=g.q(a.Ud);for(var e=a.next();!e.done;e=a.next())e.value.Od(b,c,d)};
eX=function(a,b){if(ZW(a.i,b)){$W(a.i,b).I=!1;var c=hX;b=$W(a.i,b);var d=[].concat(g.ma(b.L));ib(b.L);c(a,d)}};
hX=function(a,b){b.sort(function(f,h){function l(m){Q("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):Rza(f.category,l)-Rza(h.category,l)});
var c=new Map;b=g.q(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,ZW(a.i,d.slot))if($W(a.i,d.slot).I)$W(a.i,d.slot).L.push(d);else{aAa(a.Xb,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.q(bAa.entries());for(d=b.next();!d.done;d=b.next())e=g.q(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&cAa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&dAa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&eAa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
fAa(a,c)};
cAa=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&iX(a.i,d.slot)&&gAa(a,d.slot,d.layout,c)};
dAa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())XW(a,c.value.slot,!1)};
eAa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch($W(a.i,c.slot).B){case "not_filled":var d=!0;break a;default:d=!1}d&&(KI(a.Xb,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.i.kt(c.slot))}};
fAa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;KI(a.Xb,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.q(a.Ud),e=d.next();!e.done;e=d.next())e.value.Fi(c.slot);try{var f=a.i,h=c.slot,l=$W(f,h);if(!l)throw new jX("Got enter request for unknown slot");if(!l.l)throw new jX("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.i)throw new jX("Tried to enter a slot from stage: "+l.i);if(kX(l))throw new jX("Got enter request for already active slot");
for(var m=g.q(lX(f,h.sb+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&kX(p)){var r=void 0;e=d=void 0;var t=f,u=p,x=h,y=t.Ea.get().getCurrentTimeSec(1,!1),E=$u(t.Ta.get(),1),D=Yv(u.layout),G=u.slot.kc,I=hAa(t,G),O=Zv(G,I),ha=x.Fa.i.has("metadata_type_fulfilled_layout")?Yv(R(x.Fa,"metadata_type_fulfilled_layout")):"unknown",ta=x.kc,na=hAa(t,ta),Bb=Zv(ta,na);t=I;var tc=na;if(t&&tc){if(t.start>tc.start){var qe=g.q([tc,t]);t=qe.next().value;tc=qe.next().value}r=
t.end>tc.start}else r=!1;var Ca={details:y+" |"+(O+" |"+Bb),activeSlotStatus:u.i,activeLayout:D?D:"empty",activeLayoutId:(null===(e=u.layout)||void 0===e?void 0:e.layoutId)||"empty",enteringLayout:ha,enteringLayoutId:(null===(d=R(x.Fa,"metadata_type_fulfilled_layout"))||void 0===d?void 0:d.layoutId)||"empty",hasOverlap:String(r),contentCpn:E.clientPlaybackNonce,contentVideoId:E.videoId,isAutonav:String(E.pj),isAutoplay:String(E.Cj)};throw new jX("Trying to enter a slot when a slot of same type is already active.",
Ca);}}}catch(Wd){Q(Wd,c.slot,mX(a.i,c.slot),void 0,Wd.zo);XW(a,c.slot,!0);continue}c=$W(a.i,c.slot);"scheduled"!==c.i&&nX(c.slot,c.i,"enterSlot");c.i="enter_requested";c.l.uA()}};
Zza=function(a,b){var c;ZW(a.i,b)&&kX($W(a.i,b))&&mX(a.i,b)&&!iX(a.i,b)&&(aX(a.Xb,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=mX(a.i,b))&&void 0!==c?c:void 0),a=$W(a.i,b),"entered"!==a.i&&nX(a.slot,a.i,"enterLayoutForSlot"),a.i="rendering",a.u.startRendering(a.layout))};
gAa=function(a,b,c,d){if(ZW(a.i,b)){var e=a.Xb,f;var h=(null===(f=Sza.get(d))||void 0===f?void 0:f.Eu)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";aX(e,h,b,c);a=$W(a.i,b);"rendering"!==a.i&&nX(a.slot,a.i,"exitLayout");a.i="rendering_stop_requested";a.u.qf(c,d)}};
XW=function(a,b,c){if(ZW(a.i,b)){a:switch($W(a.i,b).i){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch($W(a.i,b).i){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&($W(a.i,b).C=!0,!c))return;if(kX($W(a.i,b)))$W(a.i,b).C=!0,iAa(a,b,c);else{a:switch($W(a.i,b).B){case "fill_requested":c=!0;break a;default:c=!1}if(c)$W(a.i,b).C=!0,ZW(a.i,b)&&(KI(a.Xb,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=$W(a.i,b),b.B="fill_cancel_requested",b.J.Qz());else{c=
mX(a.i,b);KI(a.Xb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=$W(a.i,b);var e=b.kc,f=d.ra.get(e.triggerId);f&&(f.Wi(e),d.ra.delete(e.triggerId));e=g.q(b.nf);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d.X.get(f.triggerId);h&&(h.Wi(f),d.X.delete(f.triggerId))}e=g.q(b.Gf);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.W.get(f.triggerId))h.Wi(f),d.W.delete(f.triggerId);null!=d.layout&&(e=d.layout,oX(d,e.Md),oX(d,e.jd),oX(d,e.hd),oX(d,e.Nd));d.J=void 0;null!=d.l&&(d.l.release(),
d.l=void 0);null!=d.u&&(d.u.release(),d.u=void 0);d=a.i;$W(d,b)&&(d=lX(d,b.sb+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);KI(a.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.q(a.Ud);for(d=a.next();!d.done;d=a.next())d=d.value,d.Gi(b),c&&d.xj(b,c)}}}};
iAa=function(a,b,c){if(ZW(a.i,b)&&kX($W(a.i,b))){var d=mX(a.i,b);if(d&&iX(a.i,b))gAa(a,b,d,c?"error":"abandoned");else{KI(a.Xb,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=$W(a.i,b);if(!e)throw new jX("Cannot exit slot it is unregistered");"enter_requested"!==e.i&&"entered"!==e.i&&"rendering"!==e.i&&nX(e.slot,e.i,"exitSlot");e.i="exit_requested";if(void 0===e.l)throw e.i="scheduled",new jX("Cannot exit slot because adapter is not defined");e.l.zA()}catch(f){Q(f,b,void 0,void 0,f.zo)}}}};
jAa=function(a){this.slot=a;this.ra=new Map;this.X=new Map;this.W=new Map;this.Y=new Map;this.u=this.layout=this.l=this.J=void 0;this.I=this.C=!1;this.L=[];this.i="not_scheduled";this.B="not_filled"};
kX=function(a){return"enter_requested"===a.i||a.isActive()};
bX=function(a,b,c){c=void 0===c?!1:c;Wa.call(this,a);this.zo=c;this.args=[];b&&this.args.push(b)};
jX=function(a,b,c){c=void 0===c?!1:c;Wa.call(this,a);this.zo=c;this.args=[];b&&this.args.push(b)};
pX=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Fj:new yn(-0x8000000000000,-0x8000000000000),Ax:d},null!=c&&(d.Nq=new yn(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Fj:new yn(0x7ffffffffffff,0x8000000000000),Ax:d},null!=c&&(d.Nq=new yn(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||Q("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||Q("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 jX("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Fj:new yn(a,e),Ax:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Nq=new yn(a,e)}return d;default:return new jX("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
qX=function(a,b,c,d,e,f,h,l){g.F.call(this);this.Hd=a;this.u=b;this.C=c;this.B=d;this.l=e;this.dc=f;this.Ea=h;this.Ta=l;this.i=new Map};
lX=function(a,b){return(a=a.i.get(b))?a:new Map};
$W=function(a,b){return lX(a,b.sb+"_"+b.slotPhysicalPosition).get(b.slotId)};
kAa=function(a){var b=[];a.i.forEach(function(c){c=g.q(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
hAa=function(a,b){if(b instanceof Xv)return b.i;if(b instanceof Wv&&(a=HJ(a.dc.get(),b.Ae),a=null===a||void 0===a?void 0:R(a.Fa,"metadata_type_ad_placement_config")))return a=pX(a,0x7ffffffffffff),a instanceof jX?void 0:a.Fj};
ZW=function(a,b){return null!=$W(a,b)};
iX=function(a,b){a=$W(a,b);if(b=null!=a.layout)a:switch(a.i){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
mX=function(a,b){a=$W(a,b);return null!=a.layout?a.layout:null};
rX=function(a,b,c){if(g.gb(c))throw new jX("No "+lAa.get(b)+" triggers found for slot.");c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Hd.Wh.get(d.triggerType))throw new jX("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
cX=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Hd.Wh.get(d.triggerType))throw new bX("No trigger adapter registered for "+lAa.get(b)+" trigger of type: "+d.triggerType);};
dX=function(a,b,c,d){d=g.q(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Hd.Wh.get(e.triggerType);f.Li(c,e,b.slot,b.layout?b.layout:null);b.Y.set(e.triggerId,f)}};
oX=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.Y.get(c.triggerId);d&&(d.Wi(c),a.Y.delete(c.triggerId))}};
nX=function(a,b,c){Q("Slot stage was "+b+" when calling method "+c,a)};
mAa=function(a){return sX(a.xp).concat(sX(a.Wh)).concat(sX(a.Fl)).concat(sX(a.Zl)).concat(sX(a.Ql))};
sX=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.nj&&b.push(c);return b};
tX=function(a){g.F.call(this);this.i=a;this.l=nAa(this)};
nAa=function(a){var b=new VW(function(c,d,e,f){return new qX(a.i.Hd,c,d,e,f,a.i.dc,a.i.Ea,a.i.Ta)},new Set(mAa(a.i.Hd).concat(a.i.listeners)),a.i.Xb,a.i.Ka);
g.H(a,b);return b};
uX=function(a){g.F.call(this);var b=this;this.l=a;this.i=null;g.wi(this,function(){g.ui(b.i);b.i=null})};
Y=function(a){return new uX(a)};
oAa=function(a){var b,c=null===(b=a.config)||void 0===b?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
pAa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
rAa=function(a,b,c,d,e,f,h){b=pX(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof jX?b:qAa(a,d,e,b,c);return a instanceof jX?a:[a]};
sAa=function(a){var b,c;return void 0!==(null===(c=null===(b=a.renderer)||void 0===b?void 0:b.adBreakServiceRenderer)||void 0===c?void 0:c.getAdBreakUrl)};
wAa=function(a,b,c,d,e,f){b=g.q(b);for(var h=b.next();!h.done;h=b.next())h=h.value,vX(a,h.renderer,h.config.adPlacementConfig.kind);h=Array.from(a.values()).filter(function(p){return tAa(p)});
a=[];b={};h=g.q(h);for(var l=h.next();!l.done;b={Yp:b.Yp},l=h.next()){b.Yp=l.value;l={};for(var m=g.q(b.Yp.Hz),n=m.next();!n.done;l={hm:l.hm},n=m.next())l.hm=n.value,n=function(p,r){return function(t){return p.hm.WF(t,r.Yp.instreamVideoAdRenderer.elementId,p.hm.rF)}}(l,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===l.hm.Aq?a.push(uAa(c,d,l.hm.sF,e,b.Yp.instreamVideoAdRenderer.elementId,l.hm.adSlotLoggingData,f,n)):a.push(vAa(c,d,e,b.Yp.instreamVideoAdRenderer.elementId,l.hm.adSlotLoggingData,f,n))}return a};
vX=function(a,b,c){if(b=xAa(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=yAa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.Lw=c)}else Q("InstreamVideoAdRenderer without externalVideoId")}};
xAa=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.q(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};
tAa=function(a){if(void 0===a.instreamVideoAdRenderer)return Q("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.q(a.Hz),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.WF)return!1;if(void 0===c.rF)return Q("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.Lw||void 0===c.Aq||a.Lw!==c.Aq&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.Aq)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return Q("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.Lw,"matching APSR kind":c.Aq}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.Aq&&void 0===c.sF)return Q("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
yAa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,Lw:void 0,adVideoId:b,Hz:[]});return a.get(b)};
wX=function(a,b,c,d,e,f,h){d?yAa(a,d).Hz.push({sF:b,Aq:c,rF:e,adSlotLoggingData:f,WF:h}):Q("Companion AdPlacementSupportedRenderer without adVideoId")};
zAa=function(a){var b,c=0;a=g.q(a.questions);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d=d.instreamSurveyAdMultiSelectQuestionRenderer||d.instreamSurveyAdSingleSelectQuestionRenderer)c+=(null===(b=d.surveyAdQuestionCommon)||void 0===b?void 0:b.durationMilliseconds)||0;return c};
AAa=function(a){var b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,E,D,G,I,O,ha,ta=(null===(c=null===(b=a.questions)||void 0===b?void 0:b[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===c?void 0:c.surveyAdQuestionCommon)||(null===(e=null===(d=a.questions)||void 0===d?void 0:d[0].instreamSurveyAdSingleSelectQuestionRenderer)||void 0===e?void 0:e.surveyAdQuestionCommon);ta=[].concat(g.ma((null===(f=a.playbackCommands)||void 0===f?void 0:f.instreamAdCompleteCommands)||[]),g.ma((null===ta||void 0===ta?void 0:
ta.timeoutCommands)||[]));return{impressionCommands:null===(h=a.playbackCommands)||void 0===h?void 0:h.impressionCommands,errorCommands:null===(l=a.playbackCommands)||void 0===l?void 0:l.errorCommands,muteCommands:null===(m=a.playbackCommands)||void 0===m?void 0:m.muteCommands,unmuteCommands:null===(n=a.playbackCommands)||void 0===n?void 0:n.unmuteCommands,pauseCommands:null===(p=a.playbackCommands)||void 0===p?void 0:p.pauseCommands,rewindCommands:null===(r=a.playbackCommands)||void 0===r?void 0:
r.rewindCommands,resumeCommands:null===(t=a.playbackCommands)||void 0===t?void 0:t.resumeCommands,skipCommands:null===(u=a.playbackCommands)||void 0===u?void 0:u.skipCommands,progressCommands:null===(x=a.playbackCommands)||void 0===x?void 0:x.progressCommands,c6:null===(y=a.playbackCommands)||void 0===y?void 0:y.clickthroughCommands,fullscreenCommands:null===(E=a.playbackCommands)||void 0===E?void 0:E.fullscreenCommands,activeViewViewableCommands:null===(D=a.playbackCommands)||void 0===D?void 0:D.activeViewViewableCommands,
activeViewMeasurableCommands:null===(G=a.playbackCommands)||void 0===G?void 0:G.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null===(I=a.playbackCommands)||void 0===I?void 0:I.activeViewFullyViewableAudibleHalfDurationCommands,endFullscreenCommands:null===(O=a.playbackCommands)||void 0===O?void 0:O.endFullscreenCommands,abandonCommands:null===(ha=a.playbackCommands)||void 0===ha?void 0:ha.abandonCommands,completeCommands:ta}};
DAa=function(a,b,c,d,e,f){function h(l,m){var n=f(l);return BAa(b,l.slotId,m,d,n,"LAYOUT_TYPE_SURVEY",new tv(c))}
return function(l){return CAa(a,l,e,h)}};
GAa=function(a,b,c,d,e,f,h){if(!EAa(a))return new jX("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[FAa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=xX(e.gb.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",jb:"core"},r=new yX(e.i,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Oc:new Map,Md:[r],jd:[],
hd:[],Nd:[],jb:"core",Fa:new PW([new uv(l)]),Nc:n(p)}})]};
EAa=function(a){a=((null===a||void 0===a?void 0:a.additionalPlayerOverlay)||{}).slidingTextPlayerOverlayRenderer;if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
JAa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!dja(a))return function(){return new jX("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=zAa(h);return 0>=l?function(){return new jX("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=HAa(m,c,d,function(r){var t=n(r),u=r.slotId;
r=AAa(h);u=xX(e.gb.get(),"LAYOUT_TYPE_SURVEY",u);var x={layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",jb:"core"},y=new yX(e.i,d),E=new zX(e.i,u),D=new AX(e.i,u),G=new IAa(e.i);return{layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",Oc:new Map,Md:[y,G],jd:[E],hd:[],Nd:[D],jb:"core",Fa:new PW([new rv(h),new kv(b),new Qv(l/1E3),new Tv(r)]),Nc:t(x),adLayoutLoggingData:h.adLayoutLoggingData}});
m=GAa(a,c,p.slotId,d,e,m,n);return m instanceof jX?m:[p].concat(g.ma(m))}};
MAa=function(a,b,c,d,e){var f=[];try{var h=[],l=KAa(a,d,function(t){t=LAa(t.slotId,c,b,e(t),d);h=t.pT;return t.KN});
f.push(l);for(var m=g.q(h),n=m.next();!n.done;n=m.next()){var p=n.value,r=p(a,e);if(r instanceof jX)return r;f.push.apply(f,g.ma(r))}}catch(t){return new jX(t,{errorMessage:t.message,AdPlacementRenderer:c})}return f};
LAa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,h=f.adTimeOffset||{},l=h.offsetEndMilliseconds;h=Number(h.offsetStartMilliseconds);if(isNaN(h))throw new TypeError("Expected valid start offset");var m=Number(l);if(isNaN(m))throw new TypeError("Expected valid end offset");l=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null===l||void 0===l||!l.length)throw new TypeError("Expected linear ads");var n=[],p={WJ:h,XJ:0,mT:n};l=l.map(function(t){return NAa(a,t,p,c,d,f,e,m)}).map(function(t,
u){u=new pH(u,n);
return t(u)});
var r=l.map(function(t){return t.LN});
return{KN:OAa(c,a,h,r,f,new Map([["ad_placement_start",b.placementStartPings||[]],["ad_placement_end",b.placementEndPings||[]]]),PAa(b),d,m),pT:l.map(function(t){return t.oT})}};
NAa=function(a,b,c,d,e,f,h,l){var m=b.instreamVideoAdRenderer;if(!m)throw new TypeError("Expected instream video ad renderer");if(!m.playerVars)throw new TypeError("Expected player vars in url encoded string");var n=Fp(m.playerVars);b=Number(n.length_seconds);if(isNaN(b))throw new TypeError("Expected valid length seconds in player vars");var p=QAa(n,m);if(!p)throw new TypeError("Expected valid video id in IVAR");var r=c.WJ,t=c.XJ,u=Number(m.trimmedMaxNonSkippableAdDurationMs),x=isNaN(u)?b:Math.min(b,
u/1E3),y=Math.min(r+1E3*x,l);c.WJ=y;c.XJ++;c.mT.push(x);var E=m.pings?qH(m.pings):new Map;c=m.playerOverlay||{};var D=void 0===c.instreamAdPlayerOverlayRenderer?null:c.instreamAdPlayerOverlayRenderer;return function(G){2<=G.l&&(n.slot_pos=G.i);n.autoplay="1";var I=m.adLayoutLoggingData,O=m.sodarExtensionData,ha=xX(d.gb.get(),"LAYOUT_TYPE_MEDIA",a),ta={layoutId:ha,layoutType:"LAYOUT_TYPE_MEDIA",jb:"adapter"};G={layoutId:ha,layoutType:"LAYOUT_TYPE_MEDIA",Oc:E,Md:[],jd:[],hd:[],Nd:[],jb:"adapter",Fa:new PW([new ov(h),
new Cv(x),new Dv(n),new Fv(r),new Gv(y),new Hv(t),new zv({current:null}),D&&new pv(D),new kv(f),new mv(p),new lv(G),O&&new Ev(O)].filter(RAa)),Nc:e(ta),adLayoutLoggingData:I};I=JAa(m,f,h,G.layoutId,d);return{LN:G,oT:I}}};
QAa=function(a,b){if(a=a.video_id)return a;if(b=b.externalVideoId)return b};
PAa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
TAa=function(a,b,c,d,e,f,h,l){a=SAa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=xX(b.gb.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",jb:"core"},r=new Map,t=e.impressionUrls;t&&r.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Oc:r,Md:[new BX(b.i,n)],jd:[],hd:[],Nd:[],jb:"core",Fa:new PW([new Kv(e),new kv(c)]),Nc:m(p)}});
return a instanceof jX?a:[a]};
VAa=function(a,b,c,d,e,f,h,l){a=UAa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var r=e.contentSupportedRenderer;r?r.textOverlayAdContentRenderer?(r=xX(b.gb.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=CX(b,r,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,DX(b,n,p))):r.enhancedTextOverlayAdContentRenderer?(r=xX(b.gb.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=CX(b,r,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,DX(b,n,p))):r.imageOverlayAdContentRenderer?(r=xX(b.gb.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=DX(b,n,p),n.push(new EX(b.i,r)),n=CX(b,r,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new bX("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new bX("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof jX?a:[a]};
XAa=function(a,b,c,d,e,f,h){var l=Number(d.durationMilliseconds);return isNaN(l)?new jX("Expected valid duration for AdActionInterstitialRenderer."):function(m){return WAa(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 CAa(a,n,e,function(p,r){var t=h(p);return BAa(b,p.slotId,r,c,t,"LAYOUT_TYPE_ENDCAP",new qv(d))})},
d.adLayoutLoggingData,f)}};
YAa=function(a,b,c,d){if(!c.playerVars)return new jX("No playerVars available in AdIntroRenderer.");var e=Fp(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=xX(a.gb.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",jb:"adapter"};return{UC:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Oc:new Map,Md:[],jd:[],hd:[],Nd:[],jb:"adapter",Fa:new PW([new Jv({}),new kv(b),new zv({current:null}),new Dv(e)]),Nc:f(l)},cA:[new FX(a.i,h)],bA:[]}}};
bBa=function(a,b,c,d,e,f,h,l,m,n,p){function r(u){var x=new pH(0,[t.Jv]),y=ZAa(t.playerVars,t.yJ,l,p,x);u=m(u);var E=n.get(t.vy.externalVideoId);x=$Aa(b,"core",t.vy,c,y,t.Jv,f,x,u,E);return{layout:{layoutId:x.layoutId,layoutType:x.layoutType,Oc:x.Oc,Md:x.Md,jd:x.jd,hd:x.hd,Nd:x.Nd,jb:x.jb,Fa:x.Fa,Nc:x.Nc,adLayoutLoggingData:x.adLayoutLoggingData},yp:[]}}
var t=GX(e);if(t instanceof bX)return new jX(t);if(r instanceof jX)return r;a=aBa(a,c,f,h,d,r);return a instanceof jX?a:a.yp.concat(a.gJ)};
GX=function(a){if(!a.playerVars)return new bX("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?void 0:b.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new bX("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=Fp(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new bX("Expected valid length seconds in player vars"):
{vy:a,playerVars:b,yJ:a.playerVars,Jv:c}};
ZAa=function(a,b,c,d,e){a.iv_load_policy=d;b=Fp(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){Q(f)}c.Bh&&(a.ctrl=c.Bh);c.jg&&(a.ytr=c.jg);c.zl&&(a.ytrcc=c.zl);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Zh&&(a.vss_credentials_token_type=c.Zh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.l&&(a.slot_pos=e.i);a.autoplay="1";return a};
dBa=function(a,b,c,d,e,f,h,l,m,n,p){b=cBa(a,b,c,e,f,l,m,n,p);if(b instanceof jX)return new jX(b);a=aBa(a,c,f,h,d,b);return a instanceof jX?a:a.yp.concat(a.gJ)};
cBa=function(a,b,c,d,e,f,h,l,m){return function(n){a:{b:{var p=[];for(var r=g.q(d),t=r.next();!t.done;t=r.next())if(t=t.value,t.instreamVideoAdRenderer){t=GX(t.instreamVideoAdRenderer);if(t instanceof bX){p=new jX(t);break b}p.push(t.Jv)}}if(!(p instanceof jX)){r=0;t=[];for(var u=[],x=[],y=[],E=g.q(d),D=E.next();!D.done;D=E.next())if(D=D.value,D.adIntroRenderer){D=YAa(b,c,D.adIntroRenderer,h);if(D instanceof jX){p=D;break a}D=D(n);t.push(D.UC);u=[].concat(g.ma(D.cA),g.ma(u));x=[].concat(g.ma(D.bA),
g.ma(x));D.yn&&(y=[D.yn].concat(g.ma(y)))}else if(D.instreamVideoAdRenderer){D=GX(D.instreamVideoAdRenderer);if(D instanceof bX){p=new jX(D);break a}var G=new pH(r,p),I=ZAa(D.playerVars,D.yJ,f,m,G),O=h(n),ha=l.get(D.vy.externalVideoId);I=$Aa(b,"adapter",D.vy,c,I,D.Jv,e,G,O,ha);D={layoutId:I.layoutId,layoutType:I.layoutType,Oc:I.Oc,Md:[],jd:[],hd:[],Nd:[],jb:I.jb,Fa:I.Fa,Nc:I.Nc,adLayoutLoggingData:I.adLayoutLoggingData};G=I.jd;I=I.hd;r++;t.push(D);u=[].concat(g.ma(G),g.ma(u));x=[].concat(g.ma(I),
g.ma(x))}else if(D.adActionInterstitialRenderer){D=XAa(a,b,c,D.adActionInterstitialRenderer,e,r,h);if(D instanceof jX){p=D;break a}D=D(n);t.push(D.UC);u=[].concat(g.ma(D.cA),g.ma(u));x=[].concat(g.ma(D.bA),g.ma(x));D.yn&&(y=[D.yn].concat(g.ma(y)))}else{p=new jX("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={nT:t,jd:u,hd:x,yp:y}}}p instanceof jX?n=p:(x=n.slotId,r=p.nT,t=p.jd,u=p.hd,n=h(n),x=xX(b.gb.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",x),y={layoutId:x,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",
jb:"core"},n={layout:{layoutId:x,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Oc:new Map,Md:[new BX(b.i,x)],jd:t,hd:u,Nd:[],jb:"core",Fa:new PW([new Av(r)]),Nc:n(y)},yp:p.yp});return n}};
gBa=function(a,b,c,d,e,f,h){if(!cja(c))return new jX("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=zAa(c);if(0>=l)return new jX("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=DAa(a,b,c,d,f,h);return eBa(a,d,f,l,e,function(n){var p=AAa(c),r=h(n);n=fBa(b,n.slotId,"core",d,l,p,new Map,r,m,void 0,void 0);p=R(n.yn.Fa,"metadata_type_fulfilled_layout").layoutId;p=new AX(b.i,p);return{eP:{layoutId:n.layoutId,
layoutType:n.layoutType,Oc:n.Oc,Md:n.Md,jd:n.jd,hd:n.hd,Nd:n.Nd.concat(p),jb:n.jb,Fa:n.Fa,Nc:n.Nc,adLayoutLoggingData:n.adLayoutLoggingData},LO:n.yn}})};
HX=function(a,b,c,d,e,f,h){this.zb=a;this.Pb=b;this.Ka=c;this.xb=d;this.i=e;this.vk=f;this.loadPolicy=void 0===h?1:h};
av=function(a,b,c,d,e,f,h){var l,m,n,p,r,t,u,x,y,E,D,G=[];if(0===b.length)return G;b=b.filter(oAa);for(var I=new Map,O=new Map,ha=g.q(b),ta=ha.next();!ta.done;ta=ha.next())(ta=ta.value.renderer.remoteSlotsRenderer)&&ta.hostElementId&&O.set(ta.hostElementId,ta);ha=g.q(b);for(ta=ha.next();!ta.done;ta=ha.next()){ta=ta.value;var na=hBa(a,I,ta,d,e,f,h,O);na instanceof jX?Q(na,void 0,void 0,{renderer:ta.renderer,config:ta.config.adPlacementConfig,kind:ta.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):
G.push.apply(G,g.ma(na))}if(null===a.i||f)return a=f&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null===(m=null===(l=b[0].config)||void 0===l?void 0:l.adPlacementConfig)||void 0===m?void 0:m.kind)&&(null===(n=b[0].renderer)||void 0===n?void 0:n.adBreakServiceRenderer),G.length||a||Q("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(t=null===(r=null===(p=b[0])||void 0===p?void 0:p.config)||
void 0===r?void 0:r.adPlacementConfig)||void 0===t?void 0:t.kind,renderer:null===(u=b[0])||void 0===u?void 0:u.renderer}),G;c=c.filter(oAa);G.push.apply(G,g.ma(wAa(I,c,a.zb.get(),a.i,d,a.Ka.get())));G.length||Q("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(E=null===(y=null===(x=b[0])||void 0===x?void 0:x.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===E?void 0:E.kind,renderer:null===
(D=b[0])||void 0===D?void 0:D.renderer});return G};
hBa=function(a,b,c,d,e,f,h,l){function m(u){return TW(a.xb.get(),u)}
var n=c.renderer,p=c.config.adPlacementConfig,r=p.kind,t=c.adSlotLoggingData;if(null!=n.actionCompanionAdRenderer)wX(b,c.elementId,r,n.actionCompanionAdRenderer.adVideoId,p,t,function(u,x,y){var E=a.Pb.get(),D=n.actionCompanionAdRenderer,G=TW(a.xb.get(),u);return IX(E,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new cv(D),x,y,D.impressionPings,G,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)wX(b,c.elementId,r,n.imageCompanionAdRenderer.adVideoId,p,t,function(u,x,y){var E=a.Pb.get(),D=n.imageCompanionAdRenderer,G=TW(a.xb.get(),u);return IX(E,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new gv(D),x,y,D.impressionPings,G,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)wX(b,c.elementId,r,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(u,x,y){var E=a.Pb.get(),D=n.shoppingCompanionCarouselRenderer,G=TW(a.xb.get(),u);return IX(E,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new hv(D),x,y,D.impressionPings,G,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else{if(n.adBreakServiceRenderer){if(!sAa(c))return[];if(f&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===p.kind){if(!a.vk)return new jX("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");iBa(a.vk,{adPlacementRenderer:c,contentCpn:d,RF:e});return[]}return rAa(a.zb.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f)}if(n.clientForecastingAdRenderer)return TAa(a.zb.get(),a.Pb.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return VAa(a.zb.get(),
a.Pb.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if(n.linearAdSequenceRenderer){if(f)return MAa(a.zb.get(),a.Pb.get(),c,d,m);vX(b,n,r);return null!=n.linearAdSequenceRenderer.linearAds?dBa(a.zb.get(),a.Pb.get(),p,t,n.linearAdSequenceRenderer.linearAds,d,e,h,m,l,a.loadPolicy):new jX("Received invalid LinearAdSequenceRenderer.")}if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!f)return vX(b,n,r),bBa(a.zb.get(),a.Pb.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy);if(n.instreamSurveyAdRenderer)return gBa(a.zb.get(),
a.Pb.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=n.sandwichedLinearAdRenderer)return pAa(n.sandwichedLinearAdRenderer)?dBa(a.zb.get(),a.Pb.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,n.sandwichedLinearAdRenderer.linearAd],d,e,h,m,l,a.loadPolicy):new jX("Received invalid SandwichedLinearAdRenderer.")}}return[]};
JX=function(a){g.F.call(this);this.i=a};
Yu=function(a,b,c,d){a.i().Uh(b,d);c=c();a=a.i();KX(a.Xb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.q(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;KI(d.Xb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.i;if(g.pc(c.slotId))throw new jX("Slot ID was empty");if($W(e,c))throw new jX("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.kc.triggerType});if(!e.Hd.Fl.has(c.sb))throw new jX("No fulfillment adapter factory registered for slot of type: "+
c.sb);if(!e.Hd.Zl.has(c.sb))throw new jX("No SlotAdapterFactory registered for slot of type: "+c.sb);rX(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.kc?[c.kc]:[]);rX(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.nf);rX(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.Gf);var f=d.i,h=c.sb+"_"+c.slotPhysicalPosition,l=lX(f,h);if($W(f,c))throw new jX("Duplicate slots not supported");l.set(c.slotId,new jAa(c));f.i.set(h,l)}catch(Bb){Q(Bb,c,void 0,void 0,Bb.zo);break a}$W(d.i,c).I=!0;try{var m=d.i,n=$W(m,c),p=c.kc,r=m.Hd.Wh.get(p.triggerType);
r&&(r.Li("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ra.set(p.triggerId,r));for(var t=g.q(c.nf),u=t.next();!u.done;u=t.next()){var x=u.value,y=m.Hd.Wh.get(x.triggerType);y&&(y.Li("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.X.set(x.triggerId,y))}for(var E=g.q(c.Gf),D=E.next();!D.done;D=E.next()){var G=D.value,I=m.Hd.Wh.get(G.triggerType);I&&(I.Li("TRIGGER_CATEGORY_SLOT_EXPIRATION",G,c,null),n.W.set(G.triggerId,I))}var O=m.Hd.Fl.get(c.sb).get().Qf(m.u,c);n.J=O;var ha=m.Hd.Zl.get(c.sb).get().Qf(m.C,
c);ha.init();n.l=ha}catch(Bb){Q(Bb,c,void 0,void 0,Bb.zo);XW(d,c,!0);break a}KI(d.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.i.wh(c);for(var ta=g.q(d.Ud),na=ta.next();!na.done;na=ta.next())na.value.wh(c);eX(d,c)}};
LX=function(a,b,c,d){g.F.call(this);var e=this;this.Ib=a;this.zb=b;this.Sb=c;this.i=new Map;d.get().addListener(this);g.wi(this,function(){d.get().removeListener(e)})};
vfa=function(a,b){var c=0x8000000000000;for(var d=0,e=g.q(b.nf),f=e.next();!f.done;f=e.next())f=f.value,f instanceof Xv?(c=Math.min(c,f.i.start),d=Math.max(d,f.i.end)):Q("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new yn(c,d);d="throttledadcuerange:"+b.slotId;a.i.set(d,b);a.Sb.get().addCueRange(d,c.start,c.end,!1,a)};
MX=function(){g.F.apply(this,arguments);this.nj=!0;this.Hj=new Map;this.i=new Map};
HJ=function(a,b){a=g.q(a.i.values());for(var c=a.next();!c.done;c=a.next()){c=g.q(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}Q("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.pc(b)),layoutId:b})};
NX=function(){this.l=new Map;this.i=new Map;this.u=new Map};
OX=function(a,b){if(g.M("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.l.get(b)||0;c++;a.l.set(b,c);return b+"_"+c}return ku()};
xX=function(a,b,c){if(g.M("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.i.get(b)||0;d++;a.i.set(b,d);return c+"_"+b+"_"+d}return ku()};
PX=function(a,b){if(g.M("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return ku()};
jBa=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
FX=function(a,b){this.Ae=b;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
yX=function(a,b){this.Ae=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
kBa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
QX=function(a,b){this.i=b;this.sb="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
RX=function(a,b){this.i=b;this.sb="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
BX=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
lBa=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)};
IAa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
zX=function(a,b){this.Ae=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
AX=function(a,b){this.Ae=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
EX=function(a,b){this.durationMs=45E3;this.Ae=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
mBa=function(a){return[new vv(a.ly),new pv(a.instreamAdPlayerOverlayRenderer),new yv(a.fJ),new kv(a.adPlacementConfig),new Cv(a.videoLengthSeconds),new Qv(a.IB)]};
nBa=function(a,b,c,d,e,f){a=c.er?c.er:xX(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",jb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Oc:new Map,Md:[new yX(function(l){return PX(f,l)},c.ly)],
jd:[],hd:[],Nd:[],jb:b,Fa:d,Nc:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
SX=function(a,b){var c=this;this.Ka=a;this.gb=b;this.i=function(d){return PX(c.gb.get(),d)}};
TX=function(a,b,c,d,e){return nBa(b,c,d,new PW(mBa(d)),e,a.gb.get())};
oBa=function(a,b,c,d,e){var f=mBa(d);f.push(new iv(d.rN));f.push(new jv(d.tN));return nBa(b,c,d,new PW(f),e,a.gb.get())};
IX=function(a,b,c,d,e,f,h,l,m){b=xX(a.gb.get(),c,b);var n={layoutId:b,layoutType:c,jb:"core"},p=new Map;h&&p.set("impression",h);return{layoutId:b,layoutType:c,Oc:p,Md:[new BX(a.i,b),new QX(a.i,e)],jd:[],hd:[],Nd:[],jb:"core",Fa:new PW([d,new kv(f),new vv(e)]),Nc:l(n),adLayoutLoggingData:m}};
DX=function(a,b,c){var d=[];d.push(new RX(a.i,c));g.S(a.Ka.get().G.T().experiments,"html5_make_pacf_in_video_overlay_evictable")||b&&d.push(b);return d};
CX=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,jb:"core"};return{layoutId:b,layoutType:c,Oc:new Map,Md:h,jd:[new jBa(a.i,b)],hd:[],Nd:[],jb:"core",Fa:new PW([new fv(d),new kv(e)]),Nc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
BAa=function(a,b,c,d,e,f,h){b=xX(a.gb.get(),f,b);var l={layoutId:b,layoutType:f,jb:"core"};return{layoutId:b,layoutType:f,Oc:new Map,Md:[new yX(a.i,c)],jd:[],hd:[],Nd:[],jb:"core",Fa:new PW([new kv(d),h]),Nc:e(l)}};
WAa=function(a,b,c,d,e,f,h,l,m,n){a=fBa(a,b,"adapter",c,d,e,f,h,l,m,n);return{UC:{layoutId:a.layoutId,layoutType:a.layoutType,Oc:a.Oc,Md:[],jd:[],hd:[],Nd:[],jb:a.jb,Fa:a.Fa,Nc:a.Nc,adLayoutLoggingData:a.adLayoutLoggingData},cA:a.jd,bA:a.hd,yn:a.yn}};
fBa=function(a,b,c,d,e,f,h,l,m,n,p){b=xX(a.gb.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var r={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",jb:c};m=m(b);var t=R(m.Fa,"metadata_type_fulfilled_layout");t||Q("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");t=t?t.layoutId:"";d=[new kv(d),new Rv(e),new Tv(f)];p&&d.push(new Hv(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Oc:h,Md:[new BX(a.i,b)],jd:[new zX(a.i,t)],hd:[],Nd:[],jb:c,
Fa:new PW(d),Nc:l(r),adLayoutLoggingData:n,yn:m}};
$Aa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,r={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",jb:b};d=[new kv(d),new lv(l),new mv(c.externalVideoId),new ov(h),new pv(c.playerOverlay.instreamAdPlayerOverlayRenderer),new Tv({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new Dv(e),new zv({current:null}),new Cv(f)];e=OX(a.gb.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?f:xX(a.gb.get(),
"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new wv(f));d.push(new xv(e));d.push(new Hv(l.i));c.adNextParams&&d.push(new dv(c.adNextParams));c.clickthroughEndpoint&&d.push(new ev(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new Sv(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new Ev(c.sodarExtensionData));n&&d.push(new Pv(n));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",Oc:qH(c.pings),Md:[new BX(a.i,p)],jd:c.skipOffsetMilliseconds?[new zX(a.i,f)]:[],hd:[new zX(a.i,
f)],Nd:[],jb:b,Fa:new PW(d),Nc:m(r),adLayoutLoggingData:c.adLayoutLoggingData}};
OAa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return OW(p,[],["LAYOUT_TYPE_MEDIA"])})||Q("Unexpect subLayout type for DAI composite layout");
b=xX(a.gb.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",jb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Oc:f,Md:[new kBa(a.i)],jd:[],hd:[],Nd:[],jb:"core",Fa:new PW([new Fv(c),new Gv(m),new Av(d),new kv(e),new Lv(h)]),Nc:l(n)}};
RAa=function(a){return null!=a};
UX=function(a,b,c){this.em=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
VX=function(a,b,c){this.Ae=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
pBa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
WX=function(a,b,c){this.em=b;this.i=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
XX=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
YX=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
ZX=function(a,b){this.dh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
$X=function(a,b){this.dh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
aY=function(a,b){this.dh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
bY=function(a,b){this.dh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
cY=function(a,b){this.dh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
dY=function(a){var b=this;this.gb=a;this.i=function(c){return PX(b.gb.get(),c)}};
qAa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=OX(a.gb.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Nq&&d.Nq.start!==d.Fj.start&&l.push(new Xv(a.i,c,new yn(d.Nq.start,d.Fj.start),!1));l.push(new Xv(a.i,c,new yn(d.Fj.start,d.Fj.end),d.Ax));d={getAdBreakUrl:b.getAdBreakUrl,xJ:d.Fj.start,wJ:d.Fj.end};b=new bY(a.i,h);f=[new Nv(d)].concat(g.ma(f));return{slotId:h,sb:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,kc:b,nf:l,Gf:[new XX(a.i,c),new $X(a.i,h),new aY(a.i,h)],jb:"core",Fa:new PW(f),adSlotLoggingData:e}};
rBa=function(a,b,c){var d=[];c=g.q(c);for(var e=c.next();!e.done;e=c.next())d.push(qBa(a,b,e.value));return d};
qBa=function(a,b,c){return null!=c.dh&&c.dh===a?c.clone(b):c};
CAa=function(a,b,c,d){var e=OX(a.gb.get(),"SLOT_TYPE_IN_PLAYER"),f=new Wv(a.i,b),h={slotId:e,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jb:"core",kc:f};return{slotId:e,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kc:f,nf:[new ZX(a.i,e)],Gf:[new $X(a.i,e),new XX(a.i,c)],jb:"core",Fa:new PW([new Mv(d(h,b))]),adSlotLoggingData:void 0}};
eBa=function(a,b,c,d,e,f){var h=OX(a.gb.get(),"SLOT_TYPE_PLAYER_BYTES");b=eY(a,b,c,d);if(b instanceof jX)return b;d=f({slotId:h,sb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,jb:"core",kc:b});f=d.eP;d=d.LO;return[{slotId:h,sb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,kc:b,nf:[new ZX(a.i,h)],Gf:[new $X(a.i,h),new XX(a.i,c)],jb:"core",Fa:new PW([new Mv(f)]),adSlotLoggingData:e},d]};
sBa=function(a,b,c,d,e){e=e?e:OX(a.gb.get(),"SLOT_TYPE_IN_PLAYER");c=new Wv(a.i,c);var f={slotId:e,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jb:"core",kc:c};return{slotId:e,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kc:c,nf:[new ZX(a.i,e)],Gf:[new XX(a.i,b),new $X(a.i,e)],jb:"core",Fa:new PW([new Mv(d(f))])}};
UAa=function(a,b,c,d,e,f){var h=eY(a,b,c,d);if(h instanceof jX)return h;h instanceof Xv&&(h=new Xv(a.i,h.em,h.i,h.visible,h.l,!0));d=h instanceof Xv?new WX(a.i,c,h.i):null;b=OX(a.gb.get(),"SLOT_TYPE_IN_PLAYER");f=f({slotId:b,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jb:"core",kc:h},d);return f instanceof bX?new jX(f):{slotId:b,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kc:h,nf:[new ZX(a.i,b)],Gf:[new XX(a.i,c),new $X(a.i,b)],jb:"core",Fa:new PW([new Mv(f)]),adSlotLoggingData:e}};
HAa=function(a,b,c,d){var e=OX(a.gb.get(),"SLOT_TYPE_IN_PLAYER");c=new Wv(a.i,c);var f={slotId:e,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jb:"core",kc:c};return{slotId:e,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kc:c,nf:[new ZX(a.i,e)],Gf:[new XX(a.i,b),new $X(a.i,e)],jb:"core",Fa:new PW([new Mv(d(f))])}};
FAa=function(a,b,c,d,e){var f=OX(a.gb.get(),"SLOT_TYPE_IN_PLAYER");c=new VX(a.i,d,c);d={slotId:f,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jb:"core",kc:c};return{slotId:f,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kc:c,nf:[new ZX(a.i,f)],Gf:[new XX(a.i,b)],jb:"core",Fa:new PW([new Mv(e(d))])}};
vAa=function(a,b,c,d,e,f,h){var l=OX(a.gb.get(),b);return tBa(a,l,b,new Wv(a.i,d),c,e,d,f,h)};
uAa=function(a,b,c,d,e,f,h,l){return tBa(a,c,b,new YX(a.i,c),d,f,e,h,l)};
KAa=function(a,b,c){var d=OX(a.gb.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new pBa(a.i),f={slotId:d,sb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,jb:"core",kc:e};return{slotId:d,sb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,kc:e,nf:[new cY(a.i,d)],Gf:[new XX(a.i,b)],jb:"core",Fa:new PW([new Mv(c(f)),new Iv({})])}};
aBa=function(a,b,c,d,e,f){var h=OX(a.gb.get(),"SLOT_TYPE_PLAYER_BYTES");b=eY(a,b,c,d);if(b instanceof jX)return b;f=f({slotId:h,sb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,jb:"core",kc:b});return f instanceof jX?f:{gJ:{slotId:h,sb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,kc:b,nf:[new ZX(a.i,h)],Gf:[new $X(a.i,h),new XX(a.i,c)],jb:"core",Fa:new PW([new Mv(f.layout)]),adSlotLoggingData:e},yp:f.yp}};
SAa=function(a,b,c,d,e,f){var h=OX(a.gb.get(),"SLOT_TYPE_FORECASTING");b=eY(a,b,c,d);if(b instanceof jX)return b;d={slotId:h,sb:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,jb:"core",kc:b};return{slotId:h,sb:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,kc:b,nf:[new ZX(a.i,h)],Gf:[new $X(a.i,h),new XX(a.i,c)],jb:"core",Fa:new PW([new Mv(f(d))]),adSlotLoggingData:e}};
eY=function(a,b,c,d){var e=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new Vv(a.i,c);case "AD_PLACEMENT_KIND_MILLISECONDS":b=pX(b,d);if(b instanceof jX)return b;b=b.Fj;return new Xv(a.i,c,b,e,b.end===d);case "AD_PLACEMENT_KIND_END":return new UX(a.i,c,e);default:return new jX("Cannot construct entry trigger",{kind:b.kind})}};
tBa=function(a,b,c,d,e,f,h,l,m){var n={slotId:b,sb:c,slotPhysicalPosition:1,jb:"core",kc:d};e=[new XX(a.i,e),new $X(a.i,b)];II(l)&&e.push(new FX(a.i,h));return{slotId:b,sb:c,slotPhysicalPosition:1,kc:d,nf:[new cY(a.i,b)],Gf:e,jb:"core",Fa:new PW([new Mv(m(n))]),adSlotLoggingData:f}};
fY=function(a,b,c){g.F.call(this);this.Ka=a;this.i=b;this.Ta=c;this.eventCount=0};
KI=function(a,b,c){KX(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)};
aX=function(a,b,c,d){KX(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,void 0,d?d.adLayoutLoggingData:void 0)};
aAa=function(a,b,c,d){g.S(a.Ka.get().G.T().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs")&&KX(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,void 0,d?d.adLayoutLoggingData:void 0)};
KX=function(a,b,c,d,e,f,h,l,m,n){if(g.S(a.Ka.get().G.T().experiments,"html5_enable_ads_client_monitoring_log")&&!g.S(a.Ka.get().G.T().experiments,"html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var p=SW(a.i.get());b={eventType:b,eventOrder:++a.eventCount};var r,t={organicPlaybackContext:{contentCpn:$u(a.Ta.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=$u(a.Ta.get(),1).Lk;var u=null===(r=$u(a.Ta.get(),2))||void 0===r?void 0:r.clientPlaybackNonce;
u&&(t.adVideoPlaybackContext={adVideoCpn:u});a=g.T(a.Ka.get().G.T().experiments,"html5_experiment_id_label");0<a&&(t.html5ExperimentContext={ytExperimentId:a});a={};f&&(a.slotData=RW(p,f));h&&(a.layoutData=Wza(p,h));l&&(a.triggerData=Vza(l.trigger,l.category));c&&(a.opportunityData=Xza(p,c,d,e));t&&(a.externalContext=t);b.adClientData=a;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);g.Qr("adsClientStateChange",{adsClientEvent:b})}};
gY=function(){this.i=new Map};
hY=function(a,b,c,d){g.F.call(this);this.l=b;this.Ea=c;this.Se=d;this.listeners=[];var e=new Yt(this);g.H(this,e);e.N(a,"internalAbandon",this.aM);g.wi(this,function(){g.$t(e)})};
iY=function(a){g.F.call(this);this.G=a;this.i=new Map;this.l=new Yt(this);g.H(this,this.l);this.l.N(this.G,g.tw("ad"),this.ge,this);this.l.N(this.G,g.uw("ad"),this.ag,this)};
uBa=function(a,b,c,d,e){g.pw.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
jY=function(a){this.G=a};
kY=function(a){this.G=a};
lY=function(a){if(eE(a.G.T()))return g.S(a.G.T().experiments,"tvhtml5_unplugged_pacf_enable_video_overlay_on_inplayer_slot");if(g.fE(a.G.T()))return!1;var b=g.dE(a.G.T())||a.G.T().i||g.hE(a.G.T())||iE(a.G.T())||TD(a.G.T())||gE(a.G.T());a=g.SD(a.G.T())&&g.S(a.G.T().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_tv");return b||a};
mY=function(a){return g.S(a.G.T().experiments,"enable_server_stitched_dai")};
MJ=function(a){return g.S(a.G.T().experiments,"html5_handle_preroll_lock_in_pacf")};
nY=function(a){return g.S(a.G.T().experiments,"html5_listen_to_state_changes_in_base_player_bytes_lra")};
vBa=function(a){return g.S(a.G.T().experiments,"html5_recognize_predict_start_cue_point")};
wBa=function(a){return g.S(a.G.T().experiments,"html5_enable_logging_of_bulleit_above_feed_slot_commands")};
II=function(a){return g.S(a.G.T().experiments,"html5_unschedule_companions_with_terminated_video_ad")};
oY=function(a,b){this.Ea=a;this.G=b;this.i=new Map;oH().subscribe("adactiveviewmeasurable",this.nx,this);oH().subscribe("adfullyviewableaudiblehalfdurationimpression",this.mx,this);oH().subscribe("adviewableimpression",this.ox,this)};
xBa=function(a,b,c,d){d=void 0===d?null:d;a.i.has(b)?Q("Unexpected registration of layout in LidarApi"):(a.i.set(b,d),kia(oH(),b,{zt:function(){return c?{currentTime:a.Ea.get().getCurrentTimeSec(2,!1),duration:c,pc:2===a.Ea.get().getPresentingPlayerType()&&1===pY(a.Ea.get(),2),p6:!1,q6:!0,volume:a.Ea.get().isMuted()?0:a.Ea.get().getVolume()/100}:{}}}))};
yBa=function(a,b){a.i.has(b)?(a.i.delete(b),delete oH().i[b]):Q("Unexpected unregistration of layout in LidarApi")};
qY=function(a,b,c,d){var e=void 0===e?new OJ(function(){var f=a.getVideoData(1);return f?g.dH(f):""},function(){return a.T().pageId}):e;
this.G=a;this.u=b;this.yb=c;this.Ta=d;this.Fs=e;this.i=null;this.l=new Map;this.Bj=new MH(e)};
BBa=function(a,b,c,d,e,f){d=void 0===d?[]:d;var h=HJ(a.u.get(),c);h?(c=rY(a,zBa(h),h),b.hasOwnProperty("baseUrl")?a.Fs.send(b,c):a.Bj.send(b,c,{},d)):b.hasOwnProperty("baseUrl")?Q("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c,adPodDebugInfo:f,playerType:String(a.G.getPresentingPlayerType(!0)),ping:ABa(b.baseUrl),commandsDebugInfo:e}):Q("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c,adPodDebugInfo:f,playerType:String(a.G.getPresentingPlayerType(!0)),ping:ABa(b),
commandsDebugInfo:e})};
ABa=function(a){if(!a)return"empty url";var b=a.length;if(300>b)return a;var c="";if(a.includes("event=")){var d=a.indexOf("event=");c=c.concat(a.substring(d,d+100),", ")}a.includes("label=")&&(d=a.indexOf("label="),c=c.concat(a.substring(d,d+100)));return 0<c.length?c:a.substring(0,Math.min(b,300))};
CBa=function(a,b,c,d){d=void 0===d?[]:d;var e=HJ(a.u.get(),b);if(e)for(b=a.yb.get().bf(b,c),e=rY(a,zBa(e),e),d=g.q(d),c=d.next();!c.done;c=d.next())c=c.value,c.baseUrl&&a.Bj.send(c.baseUrl,e,b,c.headers);else Q("Trying to track from an unknown layout.",void 0,void 0,{layoutId:b,trackingType:c})};
sY=function(a,b){g.Qr("adsClientStateChange",b)};
tY=function(a,b){a.l.has(b.Bt())?Q("Trying to register an existing AdErrorInfoSupplier."):a.l.set(b.Bt(),b)};
uY=function(a,b){a.l.delete(b.Bt())||Q("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
zBa=function(a){var b=R(a.Fa,"metadata_type_ad_placement_config");a=R(a.Fa,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,HH:a}};
rY=function(a,b,c){var d=c?DBa(a):{};c=c?EBa(a,c.layoutId):{};var e={},f={};d=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},EH(a.G)),sia(b.adPlacementConfig)),(e.SLOT_POS=DH(function(){return(b.HH||0).toString()}),e)),c),d),(f.FINAL=DH(function(){return"1"}),f.AD_CPN=DH(function(){var l;
return(null===(l=$u(a.Ta.get(),2))||void 0===l?void 0:l.clientPlaybackNonce)||""}),f));
c={};e=g.q(Object.values(FBa));for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d[f];null!=h&&(c[f]=h.toString())}return c};
DBa=function(a){var b,c={},d=null===(b=a.i)||void 0===b?void 0:b.ek/1E3;null!=d&&(c.SURVEY_ELAPSED_MS=DH(function(){return(1E3*d).toString()}));
c.SURVEY_LOCAL_TIME_EPOCH_S=DH(function(){return Math.round(Date.now()/1E3).toString()});
return c};
EBa=function(a,b){a=a.l.get(b);if(!a)return{};a=a.DA();if(!a)return{};b={};return b.YT_ERROR_CODE=a.Ay.toString(),b.ERRORCODE=a.bv.toString(),b.ERROR_MSG=a.errorMessage,b};
vY=function(a,b){g.F.call(this);this.G=a;this.rd=b;this.listeners=[];b=new g.TL(this);g.H(this,b);b.N(a,"videodatachange",this.qS);b.N(a,"serverstitchedvideochange",this.PR);this.Mo=$u(this);this.contentCpn=$u(this,1).clientPlaybackNonce};
$u=function(a,b){var c=a.G.getVideoData(b);return c?GBa(a,c,b||a.G.getPresentingPlayerType(!0)):null};
HBa=function(a,b,c){var d=GBa(a,b,c);a.Mo=d;a.listeners.forEach(function(e){e.GI(d)});
b=$u(a,1);b.clientPlaybackNonce!==a.contentCpn&&(a.contentCpn=b.clientPlaybackNonce,a.listeners.forEach(function(){}))};
GBa=function(a,b,c){var d,e,f,h,l=b.author,m=b.clientPlaybackNonce,n=b.isListed,p=b.cd,r=b.title,t=b.Bh,u=b.jg,x=b.isMdxPlayback,y=b.Zh,E=b.mdxEnvironment,D=b.pj,G=b.Cj,I=b.rk,O=b.videoId||"",ha=b.Wg||"",ta=b.Yh||"";b=b.zl||void 0;p=a.rd.get().i.get(p)||{layoutId:null,slotId:null};var na=a.G.getVideoData(1),Bb=na.Lk();na=na.getPlayerResponse();c=1E3*a.G.getDuration(c);a=1E3*a.G.getDuration(1);na=(null===(e=null===(d=null===na||void 0===na?void 0:na.playerConfig)||void 0===d?void 0:d.daiConfig)||void 0===
e?void 0:e.enableDai)||(null===(h=null===(f=null===na||void 0===na?void 0:na.playerConfig)||void 0===f?void 0:f.daiConfig)||void 0===h?void 0:h.enableServerStitchedDai)||!1;return Object.assign(Object.assign({},p),{videoId:O,author:l,clientPlaybackNonce:m,playbackDurationMs:c,RF:a,daiEnabled:na,isListed:n,Lk:Bb,Wg:ha,title:r,Yh:ta,Bh:t,jg:u,zl:b,isMdxPlayback:x,Zh:y,mdxEnvironment:E,pj:D,Cj:G,rk:I})};
wY=function(a){g.F.call(this);this.G=a;this.listeners=[];this.yk=function(){Q("Called 'doUnlockPreroll' before it's initialized.")};
var b=new Yt(this);g.H(this,b);b.N(a,"progresssync",this.qR);b.N(a,"presentingplayerstatechange",this.hR);b.N(a,"fullscreentoggled",this.cg);b.N(a,"onVolumeChange",this.Ug);b.N(a,"minimized",this.Th);b.N(a,"resize",this.kb)};
pY=function(a,b){return a.G.rb(b)};
IBa=function(a){var b=a.G.Wa().Og();a=a.G.jj(!0,!0);return b.height-(a.height+a.top)};
JBa=function(a,b){var c=a.G.T();GD(c)||"3"!==c.controlsType||a.G.Wa().Ju(b)};
KBa=function(a,b,c){g.F.call(this);var d=this;this.gb=Y(function(){return new NX});
g.H(this,this.gb);this.Pb=Y(function(){return new SX(d.Ka,d.gb)});
g.H(this,this.Pb);this.dc=Y(function(){return new MX});
g.H(this,this.dc);this.Ib=Y(function(){return new JX(a)});
g.H(this,this.Ib);this.zb=Y(function(){return new dY(d.gb)});
g.H(this,this.zb);this.rd=Y(function(){return new gY});
g.H(this,this.rd);this.Sb=Y(function(){return new iY(b)});
g.H(this,this.Sb);this.Hc=Y(function(){return new jY(b)});
g.H(this,this.Hc);this.Ka=Y(function(){return new kY(b)});
g.H(this,this.Ka);this.xb=Y(function(){return new UW(d.Ka)});
g.H(this,this.xb);this.Qc=Y(function(){return new HX(d.zb,d.Pb,d.Ka,d.xb,null,null)});
g.H(this,this.Qc);this.Ta=Y(function(){return new vY(b,d.rd)});
g.H(this,this.Ta);this.Xb=new fY(this.Ka,this.xb,this.Ta);g.H(this,this.Xb);this.Ea=Y(function(){return new wY(b)});
g.H(this,this.Ea);this.yb=Y(function(){return new oY(d.Ea,b)});
g.H(this,this.yb);this.Va=Y(function(){return new qY(b,d.dc,d.yb,d.Ta)});
g.H(this,this.Va);this.qc=new $v(this.Ib,this.Qc,c,this.Ka,a,this.Ta,this.Ea);g.H(this,this.qc);var e=new hY(b,this.qc,this.Ea);this.Ke=Y(function(){return e});
this.Ul=e;this.Jd=new LX(this.Ib,this.zb,this.Sb,this.Ke);g.H(this,this.Jd);this.tc=new Xu(this.Ib,this.zb,this.Qc,this.Ta,this.Jd,c);g.H(this,this.tc);this.Hd={xp:new Map,Fl:new Map,Wh:new Map,Zl:new Map,Ql:new Map};this.listeners=[];this.Oe={tc:this.tc,nk:null,Sl:null,vf:this.Ka.get(),zn:this.Ea.get(),qc:this.qc,Rl:null,Di:{Kt:function(){}},
Cg:this.dc.get()}};
xY=function(a){this.i=a};
yY=function(){};
LBa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&Te(b.siub,b.scs,b.bgub,b.bgp)};
MBa=function(a,b,c,d){this.callback=a;this.slot=b;this.Pb=c;this.xb=d;this.i=null};
NBa=function(a,b,c){a.i&&Q("Currently active request ongoing for slot. This should never happen",a.slot);a.i=b();a.i.then(function(d){a.i=null;c&&c(d);var e=d.Pr?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",f=a.Pb.get(),h=a.slot.slotId,l=TW(a.xb.get(),{slotId:a.slot.slotId,sb:a.slot.sb,slotPhysicalPosition:a.slot.slotPhysicalPosition,jb:a.slot.jb,kc:a.slot.kc}),m=xX(f.gb.get(),e,h),n={layoutId:m,layoutType:e,jb:"core"};d={layoutId:m,layoutType:e,Oc:new Map,Md:[new lBa(f.i,
h)],jd:[],hd:[],Nd:[],jb:"core",Fa:new PW([new Ov(d)]),Nc:l(n)};$za(a.callback,a.slot,d)},function(d){a.i=null;
d instanceof zm||YW(a.callback,a.slot,new jX(d,void 0,!0))})};
OBa=function(a){if(null==a.i)a.callback.vx(a.slot);else try{a.i.cancel(),a.i=null,a.callback.vx(a.slot)}catch(b){a.i=null,YW(a.callback,a.slot,new jX(b))}};
zY=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.Rd=c;this.Ye=f;this.i=new MBa(a,b,d,e)};
AY=function(a,b,c,d,e){this.callback=a;this.slot=b;this.Rd=c;this.i=new MBa(a,b,d,e)};
BY=function(a,b){this.callback=a;this.slot=b};
CY=function(a,b){return Uv(a,b.Je,b.sb)?!0:!1};
DY=function(){};
EY=function(a,b,c,d){this.Rd=a;this.Pb=b;this.xb=c;this.Ye=d};
FY=function(){};
PBa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.i=d};
GY=function(a,b){return OW(a,b.Je,b.Dg)?!0:!1};
HY=function(a){this.i=a};
IY=function(a,b,c,d,e){e=void 0===e?null:e;this.B=a;this.Va=b;this.layoutId=d;this.l=0;this.i=new Set;this.u=Array.from(this.B.get("progress")||[]);this.u.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.C={adPlacementConfig:c,HH:e}};
JY=function(){return["metadata_type_ad_placement_config"]};
KY=function(a){var b=a.Va.get();return rY(b,a.C)};
LY=function(a,b){a.i.has(b)||a.bf(b)};
QBa=function(a,b,c){for(c=void 0===c?!1:c;a.l<a.u.length;){var d=a.u[a.l];if(d.offsetMilliseconds<=b||c){var e=a;d=[d];CBa(e.Va.get(),e.layoutId,"progress",d);a.l++}else break}};
RBa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Va=d;this.i=e;a=R(this.layout.Fa,"metadata_type_ad_placement_config");this.l=new IY(c.Oc,this.Va,a,c.layoutId)};
SBa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];JY().forEach(function(b){a.push(b)});
return{Je:a,Dg:["LAYOUT_TYPE_FORECASTING"]}};
MY=function(a,b,c){this.Va=a;this.i=b;this.yb=c};
NY=function(a,b,c,d){g.P.call(this);this.callback=a;this.slot=b;this.layout=c;this.l=d;this.i=[]};
OY=function(a,b,c,d,e,f,h){e=R(c.Fa,e);a=KY(a);var l=$a(function(){d.Tc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.Nc},function(){l()}))};
PY=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.q(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.sb&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.G.sendVideoStatsEngageEvent(1,void 0,2):e?e():Q("Tried to call engagePingCallback but it is null",h,l)}}else Q("Companion AdUxClick received without a layoutId",h,l)};
TBa=function(a,b,c,d,e){bI.call(this,"action-companion",a,b,c,d,e)};
QY=function(a,b,c,d,e,f,h,l){NY.call(this,a,b,c,d);this.Va=e;this.B=f;this.J=l;this.nj=!0;this.u=null;this.C=R(c.Fa,"metadata_type_linked_player_bytes_layout_id");WW(this.B(),this);a=R(c.Fa,"metadata_type_ad_placement_config");this.I=new IY(c.Oc,this.Va,a,c.layoutId)};
UBa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];JY().forEach(function(b){a.push(b)});
return{Je:a,Dg:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
RY=function(a,b,c,d,e){NY.call(this,a,b,c,d);a=R(c.Fa,"metadata_type_ad_placement_config");this.u=new IY(c.Oc,e,a,c.layoutId)};
VBa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];JY().forEach(function(b){a.push(b)});
return{Je:a,Dg:["LAYOUT_TYPE_ENDCAP"]}};
SY=function(a,b,c,d,e,f,h,l){NY.call(this,a,b,c,d);this.Ea=e;this.Va=f;this.B=h;this.Kd=l;this.u=!1;this.C=R(this.layout.Fa,"metadata_type_linked_player_bytes_layout_id")};
WBa=function(){return{Je:["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"],Dg:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
TY=function(a,b,c,d,e,f,h,l){return GY(c,WBa())?new SY(a,b,c,d,e,f,h,l):GY(c,VBa())?new RY(a,b,c,d,f):null};
UY=function(a,b,c,d,e){this.Yb=a;this.Ea=b;this.Va=c;this.i=d;this.Kd=e};
VY=function(a,b,c,d,e){g.F.call(this);this.callback=a;this.Cd=b;this.Ea=c;this.ud=d;this.Ka=e};
WY=function(a,b,c,d,e,f,h,l,m){VY.call(this,a,b,c,d,m);this.u=e;this.slot=f;this.layout=h;this.C=l;this.l=[];this.i=-1};
YBa=function(a,b,c,d){var e=a.l[a.i];e?(e.Ub().layoutId!==c.layoutId&&Q("SubLayout mismatch in exitSubLayoutAndPlayNext",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:e.Ub().layoutId}),e.qf(e.Ub(),d),JI(a.u,b,c,d),a.B?a.B():XBa(a)):Q("No active adapter when exitSubLayoutAndPlayNext in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)};
XBa=function(a){a.i===a.l.length-1?(a.i++,XY(a.C,a.layout.layoutId)):(-1===a.i&&a.callback.Tc(a.slot,a.layout),a.i++,a=a.l[a.i],a.startRendering(a.Ub()))};
YY=function(a){return!a.xn.pc()&&a.state.pc()};
ZY=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
ZBa=function(a){var b,c;return"AD_VIDEO_PROGRESS_KIND_PERCENT"!==(null===(b=a.adVideoOffset)||void 0===b?void 0:b.kind)?!1:null!=(null===(c=a.adVideoOffset)||void 0===c?void 0:c.percent)};
$Ba=function(a){var b,c;return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"!==(null===(b=a.adVideoOffset)||void 0===b?void 0:b.kind)?!1:null!=(null===(c=a.adVideoOffset)||void 0===c?void 0:c.milliseconds)&&!isNaN(Number(a.adVideoOffset.milliseconds))};
aCa=function(a,b,c,d){var e;this.Hb=a;this.layoutId=c;this.C=d;this.l=[];this.i=[];this.u=this.B=0;a=g.q(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,null===(e=b.adVideoOffset)||void 0===e?void 0:e.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":ZBa(b)?this.l.push(b):Q("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":$Ba(b)?this.i.push(b):Q("Invalid AdVideoProgressMillisecondsCommand");break;default:Q("Unknown or invalid AdVideoProgressOffSet kind")}this.l.sort(function(f,
h){return f.adVideoOffset.percent-h.adVideoOffset.percent});
this.i.sort(function(f,h){return Number(f.adVideoOffset.milliseconds)-Number(h.adVideoOffset.milliseconds)})};
aZ=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x){var y;g.F.call(this);var E=this;this.callback=a;this.slot=b;this.layout=c;this.L=d;this.Va=e;this.yb=f;this.Ea=h;this.ud=l;this.qe=m;this.Hb=n;this.B=p;this.position=t;this.Y=u;this.Ka=x;this.nj=!0;this.X=!1;this.l="not_rendering";a=R(this.layout.Fa,"metadata_type_ad_placement_config");this.i=new IY(c.Oc,this.Va,a,c.layoutId);a=(null===(y=$Y(this))||void 0===y?void 0:y.progressCommands)||[];this.va=new aCa(n,a,c.layoutId,function(){return E.Uq()});
this.W=$a(function(){E.callback.Tc(E.slot,E.layout)});
this.C=$a(function(){"rendering_stop_requested"!==E.l&&r(E);E.J?E.callback.Od(E.slot,E.layout,E.J):Q("Received layout exit signal when not in layout exit flow.",E.slot,E.layout)})};
$Y=function(a){return R(a.layout.Fa,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
bZ=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.l){QBa(a.i,1E3*b,c);var d=a.Uq();if(d&&(d/=1E3,(b>=.25*d||c)&&LY(a.i,"first_quartile"),(b>=.5*d||c)&&LY(a.i,"midpoint"),(b>=.75*d||c)&&LY(a.i,"third_quartile"),a=a.va,b*=1E3,c=a.C())){for(;a.B<a.l.length;)if(d=a.l[a.B],d.adVideoOffset.percent*c<=b)a.Hb.get().executeCommand(d.command,a.layoutId),a.B++;else break;for(;a.u<a.i.length;)if(c=a.i[a.u],Number(c.adVideoOffset.milliseconds)<=b)a.Hb.get().executeCommand(c.command,a.layoutId),a.u++;else break}}};
cZ=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y){aZ.call(this,a,b,c,d,e,f,h,l,n,p,r,t,u,x,y);var E=this;this.Hc=m;this.I=this.ek=0;this.u=new g.Cm(200);this.u.Na("tick",function(){E.Rb()});
g.H(this,this.u)};
bCa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.q(JY()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Je:a,Dg:["LAYOUT_TYPE_MEDIA_BREAK"]}};
cCa=function(a){a.I=Date.now();dZ(a,a.ek);a.u.start()};
dZ=function(a,b){b={current:b/1E3,duration:a.Uq()/1E3};a.Hc.get().La("onAdPlaybackProgress",b)};
eZ=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,E,D,G,I,O){aZ.call(this,a,b,c,d,e,f,n,r,u,x,E,D,G,I,O);var ha=this;this.le=h;this.Cd=l;this.Ta=m;this.Sb=p;this.Hc=t;this.ye=y;this.adCpn="";this.I=new g.J(function(){ha.du("load_timeout",new bX("Media layout load timeout.",{},!0))},1E4)};
dCa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.q(JY()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Je:a,Dg:["LAYOUT_TYPE_MEDIA"]}};
fZ=function(a,b,c,d,e,f){VY.call(this,a,b,c,d,f);this.i=e};
fCa=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,E,D,G){if(GY(d,{Je:["metadata_type_sub_layouts"],Dg:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var I=R(d.Fa,"metadata_type_sub_layouts");a=new WY(a,n,r,u,b,c,d,f,G);b=[];for(var O={Pn:0};O.Pn<I.length;O={Pn:O.Pn},O.Pn++){var ha=eCa({Tc:a.YR.bind(a),Od:a.aS.bind(a),Af:a.ZR.bind(a)},c,I[O.Pn],e,h,l,m,n,p,r,t,u,x,y,E,D,function(ta){return function(na){na.qf(I[ta.Pn],"normal")}}(O),O.Pn,I.length,G);
if(!ha)return;b.push(ha)}a.l=b;return a}if(GY(d,{Je:[],Dg:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=eCa({Tc:a.Tc.bind(a),Od:a.Od.bind(a),Af:a.Af.bind(a)},c,d,e,h,l,m,n,p,r,t,u,x,y,E,D,function(){XY(f,d.layoutId)},0,1,G))?new fZ(a,n,r,u,c,G):c};
eCa=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,E,D,G,I){if(GY(c,bCa()))return new cZ(a,b,c,d,e,f,n,r,t,u,x,function(){},E,D,G,I);
if(GY(c,dCa()))return c.Fa.i.has("metadata_type_ad_intro")?new eZ(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,function(O){t.get().La("onAdIntroStateChange",O)},E,D,G,I):new eZ(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,function(O){t.get().Hi(O)},E,D,G,I)};
gZ=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x){this.i=a;this.l=b;this.Va=c;this.yb=d;this.le=e;this.Cd=f;this.Ta=h;this.Ea=l;this.Sb=m;this.ud=n;this.Hc=p;this.qe=r;this.Hb=t;this.ye=u;this.Ka=x};
hZ=function(a,b,c,d,e,f,h,l){g.F.call(this);this.i=a;this.u=b;this.l=c;this.Ib=d;this.zb=e;this.xb=f;this.Ka=h;this.Ta=l;this.nj=!0};
gCa=function(a){var b;return lY(a.Ka.get())?!0:!(null===(b=$u(a.Ta.get()))||void 0===b||!b.daiEnabled)};
iZ=function(a){var b,c=null===(b=R(a.Fa,"metadata_type_player_bytes_callback_ref"))||void 0===b?void 0:b.current;if(c){var d=a.layoutId,e=R(a.Fa,"metadata_type_content_cpn"),f=R(a.Fa,"metadata_type_instream_ad_player_overlay_renderer"),h=R(a.Fa,"metadata_type_ad_placement_config"),l=R(a.Fa,"metadata_type_video_length_seconds");var m=a.Fa.i.has("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?R(a.Fa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):a.Fa.i.has("metadata_type_layout_enter_ms")&&a.Fa.i.has("metadata_type_layout_exit_ms")?
(R(a.Fa,"metadata_type_layout_exit_ms")-R(a.Fa,"metadata_type_layout_enter_ms"))/1E3:void 0;a={ly:d,contentCpn:e,fJ:c,instreamAdPlayerOverlayRenderer:f,adPlacementConfig:h,videoLengthSeconds:l,IB:m,er:R(a.Fa,"metadata_type_linked_in_player_layout_id"),ZG:R(a.Fa,"metadata_type_linked_in_player_slot_id")}}else a=null;return a};
iCa=function(a,b){return hCa(a,b)};
jCa=function(a,b){var c;b=hCa(a,b);if(!b)return null;b.IB=null===(c=R(a.Fa,"metadata_type_ad_pod_info"))||void 0===c?void 0:c.adBreakRemainingLengthSeconds;return b};
hCa=function(a,b){var c,d=null===(c=R(a.Fa,"metadata_type_player_bytes_callback_ref"))||void 0===c?void 0:c.current;if(!d)return null;if(a.Fa.i.has("metadata_ad_video_is_listed"))var e=R(a.Fa,"metadata_ad_video_is_listed");else b?e=b.isListed:(Q("No layout metadata nor AdPlayback specified for ad video isListed"),e=!1);a.Fa.i.has("metadata_type_ad_info_ad_metadata")?b=R(a.Fa,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.Yh,channelThumbnailUrl:b.Wg,channelTitle:b.author,videoTitle:b.title}:
(Q("No layout metadata nor AdPlayback specified for AdMetaData"),b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{rN:b,adPlacementConfig:R(a.Fa,"metadata_type_ad_placement_config"),tN:e,contentCpn:R(a.Fa,"metadata_type_content_cpn"),er:R(a.Fa,"metadata_type_linked_in_player_layout_id"),ZG:R(a.Fa,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:R(a.Fa,"metadata_type_instream_ad_player_overlay_renderer"),IB:void 0,fJ:d,ly:a.layoutId,videoLengthSeconds:R(a.Fa,
"metadata_type_video_length_seconds")}};
kCa=function(a,b){this.callback=a;this.slot=b};
jZ=function(){};
lCa=function(a,b,c){this.callback=a;this.slot=b;this.Ea=c};
mCa=function(a,b,c){this.callback=a;this.slot=b;this.Ea=c};
kZ=function(a){this.Ea=a};
lZ=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
mZ=function(a){g.F.call(this);this.kz=a;this.Fb=new Map};
nZ=function(a,b){mZ.call(this,a);var c=this;this.nj=!0;this.Tv=new Set;b.get().addListener(this);g.wi(this,function(){b.get().removeListener(c)})};
oZ=function(a){g.F.call(this);this.i=a;this.nj=!0;this.Fb=new Map;this.C=new Set;this.u=new Set;this.B=new Set;this.I=new Set;this.l=new Set};
pZ=function(a,b,c){g.F.call(this);var d=this;this.i=a;this.Ka=c;this.Fb=new Map;b.get().addListener(this);g.wi(this,function(){b.get().removeListener(d)})};
nCa=function(a,b,c,d,e){var f=[];b=g.q(b.values());for(var h=b.next();!h.done;h=b.next())if(h=h.value,h.trigger instanceof XX){var l=h.trigger.i===c;l===d?f.push(h):MJ(a.get())&&e&&l&&(Q("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:c}),f.push(h))}return f};
qZ=function(a,b,c,d){g.F.call(this);var e=this;this.u=a;this.Sb=b;this.Ea=c;this.Ta=d;this.Fb=new Map;this.i=new Set;this.l=new Set;c.get().addListener(this);g.wi(this,function(){c.get().removeListener(e)})};
rZ=function(a,b,c,d,e,f,h,l,m,n){if($u(a.Ta.get(),1).clientPlaybackNonce!==m)throw new jX("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Fb.set(c.triggerId,{bundle:new lZ(b,c,d,e),Iq:f});a.Sb.get().addCueRange(f,h,l,n,a)};
oCa=function(a,b){a=g.q(a.Fb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.q(c.value);c=d.next().value;d=d.next().value;if(b===d.Iq)return c}return""};
sZ=function(a){g.F.call(this);this.u=a;this.nj=!0;this.Fb=new Map;this.l=this.i=null};
XY=function(a,b){for(var c=[],d=g.q(a.Fb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof BX){var f;if(f=e.trigger.layoutId===b)f=(f=bAa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&hX(a.u(),c)};
tZ=function(a){g.F.call(this);this.i=a;this.nj=!0;this.Fb=new Map};
uZ=function(a,b,c,d,e,f){g.F.call(this);this.u=a;this.Fd=b;this.xb=c;this.Ta=d;this.Ka=e;this.gb=f;this.i=this.l=null;this.Fd.get().addListener(this)};
tja=function(a,b,c,d,e){var f=OX(a.gb.get(),"SLOT_TYPE_PLAYER_BYTES");a.l={slotId:f,sb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,kc:void 0,nf:[],Gf:[],jb:"surface",Fa:new PW([])};a.i={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Oc:new Map,Md:[],jd:[],hd:[],Nd:[],jb:"surface",Fa:new PW(c),Nc:Yza(SW(a.xb.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};d&&(fX(a.u(),a.l,a.i),gX(a.u(),a.l,a.i))};
vZ=function(a){this.qm=a};
pCa=function(a,b){if(!a)return{vl:[],Pr:!0};a.trackingParams&&fka(mJ(),a.trackingParams);if(a.adThrottled)return{vl:[],Pr:!0};a=a.playerAds;if(!a||!a.length)return{vl:[],Pr:!1};a=a.map(function(d){return d.adPlacementRenderer}).filter(function(d){return!(!d||!d.renderer)});
if(!a.length)return{vl:[],Pr:!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{vl:a,
Pr:!1}};
wZ=function(a){g.F.call(this);this.G=a;this.listeners=[];this.i=new Yt(this);g.H(this,this.i);this.i.N(this.G,"aduxclicked",this.onAdUxClicked);this.i.N(this.G,"aduxmouseover",this.SB);this.i.N(this.G,"aduxmouseout",this.RB);this.i.N(this.G,"muteadaccepted",this.AP)};
qCa=function(a,b,c){b=g.Oc(b,function(d){return new zw(d,c,d.id)});
a.G.La("onAdUxUpdate",b)};
xZ=function(a,b){a=g.q(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
yZ=function(a){this.G=a};
zZ=function(a){this.G=a};
AZ=function(){this.listeners=[]};
rCa=function(a){this.G=a};
sCa=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Ta=d;this.Ye=e;this.Se=f;this.Ea=h;this.u=l;this.Va=m;this.l=n;this.i=null;this.driftRecoveryMs=R(c.Fa,"metadata_type_drift_recovery_ms")||null};
uCa=function(a,b){b=tCa(a,b);a.i={gi:b};b&&b.startRendering(b.Ub())};
wCa=function(a){var b=R(a.layout.Fa,"metadata_type_layout_enter_ms"),c=R(a.layout.Fa,"metadata_type_layout_exit_ms");a=vCa(a.Se.get(),b,c);return Math.min(c,null!==a?a:Infinity)};
tCa=function(a,b){return null==b?null:a.l.find(function(c){return c.Ub().layoutId===b})||null};
BZ=function(a,b){var c;sY(a.Va.get(),{driftRecoveryInfo:Object.assign({contentCpn:null===(c=a.Ta.get().Mo)||void 0===c?void 0:c.clientPlaybackNonce,adClientData:a.layout.Nc.adClientDataEntry},b)})};
xCa=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Ye=d;this.i=e;this.Ea=f;this.rd=h;this.yb=l;this.le=m;this.Ka=n;this.nB=!0;this.l=null};
zCa=function(a,b,c){var d=a.Ea.get().getCurrentTimeSec(2,!1);YY(c)&&ZY(d,0,null)&&LY(a.i,"impression");a.i.i.has("impression")&&(g.fI(c,4)&&!g.fI(c,2)&&a.i.bf("pause"),0>eI(c,4)&&!(0>eI(c,2))&&a.i.bf("resume"),g.fI(c,16)&&.5<=a.Ea.get().getCurrentTimeSec(2,!1)&&a.i.bf("seek"),g.fI(c,2)&&yCa(a,c.state,b))};
yCa=function(a,b,c){var d=R(a.layout.Fa,"metadata_type_video_length_seconds"),e=a.Ea.get().getCurrentTimeSec(2,!1),f=1>=Math.abs(d-e);ACa(a,b,f?d:e,c.zB);f&&LY(a.i,"complete")};
ACa=function(a,b,c,d){QBa(a.i,1E3*c);var e=R(a.layout.Fa,"metadata_type_video_length_seconds");0>=e||0>=c||(null===b||void 0===b?0:g.V(b,16))||(null===b||void 0===b?0:g.V(b,32))||(ZY(c,.25*e,d)&&LY(a.i,"first_quartile"),ZY(c,.5*e,d)&&LY(a.i,"midpoint"),ZY(c,.75*e,d)&&LY(a.i,"third_quartile"))};
BCa=function(a){return Object.assign(Object.assign({},CZ(a)),{adPlacementConfig:R(a.Fa,"metadata_type_ad_placement_config"),subLayouts:R(a.Fa,"metadata_type_sub_layouts").map(CZ)})};
CZ=function(a){return{enterMs:R(a.Fa,"metadata_type_layout_enter_ms"),exitMs:R(a.Fa,"metadata_type_layout_exit_ms")}};
DZ=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,E,D){this.i=a;this.l=b;this.Ta=c;this.Ye=d;this.Ea=e;this.Va=f;this.rd=h;this.Se=l;this.yb=m;this.le=n;this.Cd=p;this.Sb=r;this.ud=t;this.Hc=u;this.qe=x;this.Hb=y;this.ye=E;this.Ka=D};
EZ=function(a,b,c,d,e,f,h){g.F.call(this);var l=this;this.Ib=a;this.zb=b;this.Ta=c;this.Se=e;this.Ea=f;this.Ka=h;this.i=null;d.get().addListener(this);g.wi(this,function(){d.get().removeListener(l)});
e.get().addListener(this);g.wi(this,function(){e.get().removeListener(l)})};
iBa=function(a,b){if($u(a.Ta.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind)if(a.i)Q("Unexpected multiple fetch instructions for the current content");else{a.i=b;b=g.q(a.Se.get().jy);for(var c=b.next();!c.done;c=b.next())CCa(a,a.i,c.value)}};
CCa=function(a,b,c){var d=a.Ea.get().getCurrentTimeSec(1,!1);Yu(a.Ib.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.zb.get(),f=mY(a.Ka.get());var h=1E3*c.startSecs;h={Fj:new yn(h,h+1E3*c.durationSecs),Ax:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new yn(1E3*(c.startSecs-4),1E3*l);else{var m=Math.max(0,c.startSecs-d-10);f=new yn(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}h.Nq=f;return[qAa(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,
b.contentCpn,h,b.adPlacementRenderer.adSlotLoggingData,[new Bv(c)])]})};
FZ=function(a,b){var c;g.F.call(this);var d=this;this.B=a;this.l=new Map;this.u=new Map;this.i=null;b.get().addListener(this);g.wi(this,function(){b.get().removeListener(d)});
this.i=(null===(c=b.get().Mo)||void 0===c?void 0:c.slotId)||null};
DCa=function(a,b){var c=[];a=g.q(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
GZ=function(a,b,c,d){g.F.call(this);this.G=a;this.Ta=b;this.Ka=c;this.Va=d;this.listeners=[];this.i=new Set;this.jy=[];this.u=new OI(this,vBa(c.get()));this.l=new PI;ECa(this)};
vCa=function(a,b,c){return Bja(a.l,b,c)};
ECa=function(a){var b,c=a.G.getVideoData(1);c.subscribe("cuepointupdated",a.YB,a);a.i.clear();a.jy.length=0;c=(null===(b=c.i)||void 0===b?void 0:iC(b,0))||[];a.YB(c)};
FCa=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");}};
HZ=function(a){this.G=a};
IZ=function(){this.listeners=new Set};
GCa=function(a,b,c,d,e){bI.call(this,"image-companion",a,b,c,d,e)};
JZ=function(a,b,c,d,e,f,h,l){NY.call(this,a,b,c,d);this.Va=e;this.B=f;this.J=l;this.nj=!0;this.u=null;this.C=R(c.Fa,"metadata_type_linked_player_bytes_layout_id");WW(this.B(),this);a=R(c.Fa,"metadata_type_ad_placement_config");this.I=new IY(c.Oc,this.Va,a,c.layoutId)};
HCa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];JY().forEach(function(b){a.push(b)});
return{Je:a,Dg:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
ICa=function(a,b,c,d,e){bI.call(this,"shopping-companion",a,b,c,d,e)};
KZ=function(a,b,c,d,e,f,h,l){NY.call(this,a,b,c,d);this.Va=e;this.B=f;this.J=l;this.nj=!0;this.u=null;this.C=R(c.Fa,"metadata_type_linked_player_bytes_layout_id");WW(this.B(),this);a=R(c.Fa,"metadata_type_ad_placement_config");this.I=new IY(c.Oc,this.Va,a,c.layoutId)};
JCa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];JY().forEach(function(b){a.push(b)});
return{Je:a,Dg:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
KCa=function(a,b,c,d,e){this.Yb=a;this.Va=b;this.i=c;this.l=d;this.yb=e};
LZ=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
NZ=function(a,b,c){c=void 0===c?MZ:c;c.width<MZ.width&&(c=MZ);if(a.width<c.width||a.height<c.height)return{Ay:3,bv:501,errorMessage:"ad("+LZ(c)+") larger than container("+LZ(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{Ay:3,bv:501,errorMessage:"ad("+LZ(c)+") to container("+LZ(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{Ay:3,bv:501,errorMessage:"ad("+LZ(c)+") covers container("+LZ(a)+") center."}};
LCa=function(a,b){var c=R(a.Fa,"metadata_type_ad_placement_config");return new IY(a.Oc,b,c,a.layoutId)};
OZ=function(a){return R(a.Fa,"metadata_type_invideo_overlay_ad_renderer")};
PZ=function(a,b,c,d,e,f,h,l,m,n,p){NY.call(this,f,a,b,e);this.Va=c;this.u=h;this.Ea=l;this.Hb=m;this.Ka=n;this.Kd=p;this.C=LCa(b,c)};
MCa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];JY().forEach(function(b){a.push(b)});
return{Je:a,Dg:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
QZ=function(a,b,c,d,e,f,h,l,m,n,p,r){NY.call(this,f,a,b,e);this.Va=c;this.u=h;this.C=l;this.Ea=m;this.Hb=n;this.Ka=p;this.Kd=r;this.I=LCa(b,c)};
NCa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.q(JY()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Je:a,Dg:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
RZ=function(a,b,c,d){NY.call(this,c,a,b,d)};
OCa=function(a,b,c,d,e,f,h,l,m,n){this.Yb=a;this.Ea=b;this.Va=c;this.u=d;this.yb=e;this.i=f;this.l=h;this.Hb=l;this.Ka=m;this.Kd=n};
SZ=function(a){g.F.call(this);this.i=a;this.Fb=new Map};
TZ=function(a,b){for(var c=[],d=g.q(a.Fb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.layoutId===b.layoutId&&c.push(e);c.length&&hX(a.i(),c)};
UZ=function(a){g.F.call(this);this.u=a;this.nj=!0;this.Fb=new Map;this.i=new Map;this.l=new Map};
PCa=function(a,b){var c=[];if(b=a.i.get(b.layoutId)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())(d=a.l.get(d.value.triggerId))&&c.push(d)}return c};
VZ=function(a,b,c){g.F.call(this);this.u=a;this.Nk=b;this.gb=c;this.i=this.l=void 0;this.Nk.get().addListener(this)};
QCa=function(a,b,c,d,e){g.F.call(this);var f=this;this.gb=Y(function(){return new NX});
g.H(this,this.gb);this.Pb=Y(function(){return new SX(f.Ka,f.gb)});
g.H(this,this.Pb);this.dc=Y(function(){return new MX});
g.H(this,this.dc);this.Ib=Y(function(){return new JX(a)});
g.H(this,this.Ib);this.zb=Y(function(){return new dY(f.gb)});
g.H(this,this.zb);this.rd=Y(function(){return new gY});
g.H(this,this.rd);this.qe=Y(function(){return new cI(b.T())});
g.H(this,this.qe);this.Yb=Y(function(){return new wZ(b)});
g.H(this,this.Yb);this.Hb=Y(function(){return new xY(e)});
g.H(this,this.Hb);this.ud=Y(function(){return new TI(b)});
g.H(this,this.ud);this.Sb=Y(function(){return new iY(b)});
g.H(this,this.Sb);this.Cd=Y(function(){return new yZ(b)});
g.H(this,this.Cd);this.Hc=Y(function(){return new jY(b)});
g.H(this,this.Hc);this.Ka=Y(function(){return new kY(b)});
g.H(this,this.Ka);this.Rd=Y(function(){return new vZ(d)});
g.H(this,this.Rd);this.xb=Y(function(){return new UW(f.Ka)});
g.H(this,this.xb);this.Qc=Y(function(){return new HX(f.zb,f.Pb,f.Ka,f.xb,"SLOT_TYPE_ABOVE_FEED",f.vk)});
g.H(this,this.Qc);this.ye=Y(function(){return new zZ(b)});
g.H(this,this.ye);this.Fd=Y(function(){return new AZ});
g.H(this,this.Fd);this.Nk=Y(function(){return new IZ});
g.H(this,this.Nk);this.Ta=Y(function(){return new vY(b,f.rd)});
g.H(this,this.Ta);this.Xb=new fY(this.Ka,this.xb,this.Ta);g.H(this,this.Xb);this.Se=Y(function(){return new GZ(b,f.Ta,f.Ka,f.Va)});
g.H(this,this.Se);this.Ye=Y(function(){return new HZ(b)});
g.H(this,this.Ye);this.Ea=Y(function(){return new wY(b)});
g.H(this,this.Ea);this.le=Y(function(){return new yY});
this.yb=Y(function(){return new oY(f.Ea,b)});
g.H(this,this.yb);this.Va=Y(function(){return new qY(b,f.dc,f.yb,f.Ta)});
g.H(this,this.Va);this.fg=new hZ(iZ,WZ,function(l,m,n,p){return TX(f.Pb.get(),l,m,n,p)},this.Ib,this.zb,this.xb,this.Ka,this.Ta);
g.H(this,this.fg);this.qc=new $v(this.Ib,this.Qc,c,this.Ka,a,this.Ta,this.Ea);g.H(this,this.qc);var h=new hY(b,this.qc,this.Ea,this.Se);this.Ke=Y(function(){return h});
this.Ul=h;this.vk=new EZ(this.Ib,this.zb,this.Ta,this.Ke,this.Se,this.Ea,this.Ka);g.H(this,this.vk);this.Jd=new LX(this.Ib,this.zb,this.Sb,this.Ke);g.H(this,this.Jd);this.tc=new Xu(this.Ib,this.zb,this.Qc,this.Ta,this.Jd,c);g.H(this,this.tc);this.Of=Y(function(){return new EY(f.Rd,f.Pb,f.xb,f.Ye)});
g.H(this,this.Of);this.Yc=Y(function(){return new FY});
g.H(this,this.Yc);this.Sd=new nZ(a,this.Yb);g.H(this,this.Sd);this.qb=new oZ(a);g.H(this,this.qb);this.Io=new SZ(a);g.H(this,this.Io);this.re=new pZ(a,this.Ke,this.Ka);g.H(this,this.re);this.Vd=new qZ(a,this.Sb,this.Ea,this.Ta);g.H(this,this.Vd);this.mp=new FZ(a,this.Ta);g.H(this,this.mp);this.Ac=new sZ(a);g.H(this,this.Ac);this.dg=new tZ(a);g.H(this,this.dg);this.Pp=new UZ(a);g.H(this,this.Pp);this.Rc=Y(function(){return new jZ});
g.H(this,this.Rc);this.gg=Y(function(){return new kZ(f.Ea)});
g.H(this,this.gg);this.pF=Y(function(){return new KCa(f.Yb,f.Va,a,f.dc,f.yb)});
g.H(this,this.pF);this.Nf=Y(function(){return new HY(f.tc)});
g.H(this,this.Nf);this.Tf=Y(function(){return new MY(f.Va,f.Ac,f.yb)});
g.H(this,this.Tf);this.eg=Y(function(){return new DZ(a,f.Ac,f.Ta,f.Ye,f.Ea,f.Va,f.rd,f.Se,f.yb,f.le,f.Cd,f.Sb,f.ud,f.Hc,f.qe,f.Hb,f.ye,f.Ka)});
g.H(this,this.eg);this.mj=Y(function(){return new OCa(f.Yb,f.Ea,f.Va,f.dc,f.yb,f.Io,f.Pp,f.Hb,f.Ka,c)});
g.H(this,this.mj);this.Gz=new VZ(a,this.Nk,this.gb);g.H(this,this.Gz);this.Dj=new uZ(a,this.Fd,this.xb,this.Ta,this.Ka,this.gb);g.H(this,this.Dj);this.Hd={xp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.vk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Jd]]),Fl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Of],["SLOT_TYPE_ABOVE_FEED",this.Yc],["SLOT_TYPE_FORECASTING",this.Yc],["SLOT_TYPE_IN_PLAYER",this.Yc],["SLOT_TYPE_PLAYER_BYTES",this.Yc]]),Wh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Sd],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Sd],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.qb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.qb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.qb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.qb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.qb],["TRIGGER_TYPE_SLOT_ID_EXITED",
this.qb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.qb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.qb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.qb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.qb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Io],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.re],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Vd],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Vd],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Vd],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.mp],
["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.mp],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ac],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Ac],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.re],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.dg],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Pp]]),Zl:new Map([["SLOT_TYPE_ABOVE_FEED",this.Rc],["SLOT_TYPE_AD_BREAK_REQUEST",this.Rc],["SLOT_TYPE_FORECASTING",this.Rc],["SLOT_TYPE_IN_PLAYER",this.Rc],["SLOT_TYPE_PLAYER_BYTES",
this.gg]]),Ql:new Map([["SLOT_TYPE_ABOVE_FEED",this.pF],["SLOT_TYPE_AD_BREAK_REQUEST",this.Nf],["SLOT_TYPE_FORECASTING",this.Tf],["SLOT_TYPE_PLAYER_BYTES",this.eg],["SLOT_TYPE_IN_PLAYER",this.mj]])};this.listeners=[this.dc.get()];this.Oe={tc:this.tc,nk:this.Ac,Sl:this.Fd.get(),vf:this.Ka.get(),zn:this.Ea.get(),qc:this.qc,Rl:this.Nk.get(),Di:this.Sd,Cg:this.dc.get()}};
RCa=function(a,b,c,d,e,f,h,l,m,n){this.Yb=a;this.Ea=b;this.Va=c;this.u=d;this.yb=e;this.i=f;this.l=h;this.Hb=l;this.Ka=m;this.Kd=n};
SCa=function(a,b,c,d,e){g.F.call(this);var f=this;this.gb=Y(function(){return new NX});
g.H(this,this.gb);this.Pb=Y(function(){return new SX(f.Ka,f.gb)});
g.H(this,this.Pb);this.dc=Y(function(){return new MX});
g.H(this,this.dc);this.Ib=Y(function(){return new JX(a)});
g.H(this,this.Ib);this.zb=Y(function(){return new dY(f.gb)});
g.H(this,this.zb);this.rd=Y(function(){return new gY});
g.H(this,this.rd);this.qe=Y(function(){return new cI(b.T())});
g.H(this,this.qe);this.Yb=Y(function(){return new wZ(b)});
g.H(this,this.Yb);this.Hb=Y(function(){return new xY(e)});
g.H(this,this.Hb);this.ud=Y(function(){return new TI(b)});
g.H(this,this.ud);this.Sb=Y(function(){return new iY(b)});
g.H(this,this.Sb);this.Cd=Y(function(){return new yZ(b)});
g.H(this,this.Cd);this.Hc=Y(function(){return new jY(b)});
g.H(this,this.Hc);this.Ka=Y(function(){return new kY(b)});
g.H(this,this.Ka);this.Rd=Y(function(){return new vZ(d)});
g.H(this,this.Rd);this.xb=Y(function(){return new UW(f.Ka)});
g.H(this,this.xb);this.Qc=Y(function(){return new HX(f.zb,f.Pb,f.Ka,f.xb,null,null)});
g.H(this,this.Qc);this.ye=Y(function(){return new zZ(b)});
g.H(this,this.ye);this.Fd=Y(function(){return new AZ});
g.H(this,this.Fd);this.Nk=Y(function(){return new IZ});
g.H(this,this.Nk);this.Ta=Y(function(){return new vY(b,f.rd)});
g.H(this,this.Ta);this.Xb=new fY(this.Ka,this.xb,this.Ta);g.H(this,this.Xb);this.Ea=Y(function(){return new wY(b)});
g.H(this,this.Ea);this.yb=Y(function(){return new oY(f.Ea,b)});
g.H(this,this.yb);this.Va=Y(function(){return new qY(b,f.dc,f.yb,f.Ta)});
g.H(this,this.Va);this.le=Y(function(){return new yY});
g.H(this,this.le);this.fg=new hZ(iZ,WZ,function(l,m,n,p){return TX(f.Pb.get(),l,m,n,p)},this.Ib,this.zb,this.xb,this.Ka,this.Ta);
g.H(this,this.fg);this.qc=new $v(this.Ib,this.Qc,c,this.Ka,a,this.Ta,this.Ea);g.H(this,this.qc);var h=new hY(b,this.qc,this.Ea);this.Ke=Y(function(){return h});
this.Ul=h;this.Jd=new LX(this.Ib,this.zb,this.Sb,this.Ke);g.H(this,this.Jd);this.tc=new Xu(this.Ib,this.zb,this.Qc,this.Ta,this.Jd,c);g.H(this,this.tc);this.Of=Y(function(){return new EY(f.Rd,f.Pb,f.xb)});
g.H(this,this.Of);this.Yc=Y(function(){return new FY});
g.H(this,this.Yc);this.Sd=new nZ(a,this.Yb);g.H(this,this.Sd);this.qb=new oZ(a);g.H(this,this.qb);this.Io=new SZ(a);g.H(this,this.Io);this.re=new pZ(a,this.Ke,this.Ka);g.H(this,this.re);this.Vd=new qZ(a,this.Sb,this.Ea,this.Ta);g.H(this,this.Vd);this.Ac=new sZ(a);g.H(this,this.Ac);this.dg=new tZ(a);g.H(this,this.dg);this.Pp=new UZ(a);g.H(this,this.Pp);this.Rc=Y(function(){return new jZ});
g.H(this,this.Rc);this.gg=Y(function(){return new kZ(f.Ea)});
g.H(this,this.gg);this.Nf=Y(function(){return new HY(f.tc)});
g.H(this,this.Nf);this.Tf=Y(function(){return new MY(f.Va,f.Ac,f.yb)});
g.H(this,this.Tf);this.mj=Y(function(){return new RCa(f.Yb,f.Ea,f.Va,f.dc,f.yb,f.Io,f.Pp,f.Hb,f.Ka,c)});
g.H(this,this.mj);this.eg=Y(function(){return new gZ(a,f.Ac,f.Va,f.yb,f.le,f.Cd,f.Ta,f.Ea,f.Sb,f.ud,f.Hc,f.qe,f.Hb,f.ye,f.Ka)});
g.H(this,this.eg);this.Gz=new VZ(a,this.Nk,this.gb);g.H(this,this.Gz);this.Dj=new uZ(a,this.Fd,this.xb,this.Ta,this.Ka,this.gb);g.H(this,this.Dj);this.Hd={xp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Jd]]),Fl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Of],["SLOT_TYPE_FORECASTING",this.Yc],
["SLOT_TYPE_IN_PLAYER",this.Yc],["SLOT_TYPE_PLAYER_BYTES",this.Yc]]),Wh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Sd],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.qb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.qb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.qb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.qb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.qb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.qb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.qb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.qb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.qb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.qb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Io],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.re],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Vd],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Vd],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Vd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ac],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Ac],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.re],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",
this.dg],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Pp]]),Zl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Rc],["SLOT_TYPE_FORECASTING",this.Rc],["SLOT_TYPE_IN_PLAYER",this.Rc],["SLOT_TYPE_PLAYER_BYTES",this.gg]]),Ql:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Nf],["SLOT_TYPE_FORECASTING",this.Tf],["SLOT_TYPE_IN_PLAYER",this.mj],["SLOT_TYPE_PLAYER_BYTES",this.eg]])};this.listeners=[this.dc.get()];this.Oe={tc:this.tc,nk:null,Sl:this.Fd.get(),vf:this.Ka.get(),zn:this.Ea.get(),qc:this.qc,Rl:this.Nk.get(),
Di:this.Sd,Cg:this.dc.get()}};
TCa=function(a,b,c,d,e){g.F.call(this);var f=this;this.gb=Y(function(){return new NX});
g.H(this,this.gb);this.Pb=Y(function(){return new SX(f.Ka,f.gb)});
g.H(this,this.Pb);this.dc=Y(function(){return new MX});
g.H(this,this.dc);this.Ib=Y(function(){return new JX(a)});
g.H(this,this.Ib);this.zb=Y(function(){return new dY(f.gb)});
g.H(this,this.zb);this.rd=Y(function(){return new gY});
g.H(this,this.rd);this.qe=Y(function(){return new cI(b.T())});
g.H(this,this.qe);this.Yb=Y(function(){return new wZ(b)});
g.H(this,this.Yb);this.Hb=Y(function(){return new xY(e)});
g.H(this,this.Hb);this.ud=Y(function(){return new TI(b)});
g.H(this,this.ud);this.Sb=Y(function(){return new iY(b)});
g.H(this,this.Sb);this.Cd=Y(function(){return new yZ(b)});
g.H(this,this.Cd);this.Hc=Y(function(){return new jY(b)});
g.H(this,this.Hc);this.Ka=Y(function(){return new kY(b)});
g.H(this,this.Ka);this.Rd=Y(function(){return new vZ(d)});
g.H(this,this.Rd);this.xb=Y(function(){return new UW(f.Ka)});
g.H(this,this.xb);this.Qc=Y(function(){return new HX(f.zb,f.Pb,f.Ka,f.xb,null,null)});
g.H(this,this.Qc);this.ye=Y(function(){return new zZ(b)});
g.H(this,this.ye);this.Fd=Y(function(){return new AZ});
g.H(this,this.Fd);this.Ta=Y(function(){return new vY(b,f.rd)});
g.H(this,this.Ta);this.Xb=new fY(this.Ka,this.xb,this.Ta);g.H(this,this.Xb);this.Ea=Y(function(){return new wY(b)});
g.H(this,this.Ea);this.yb=Y(function(){return new oY(f.Ea,b)});
g.H(this,this.yb);this.Va=Y(function(){return new qY(b,f.dc,f.yb,f.Ta)});
g.H(this,this.Va);this.le=Y(function(){return new yY});
g.H(this,this.le);this.fg=new hZ(iZ,WZ,function(l,m,n,p){return TX(f.Pb.get(),l,m,n,p)},this.Ib,this.zb,this.xb,this.Ka,this.Ta);
g.H(this,this.fg);this.qc=new $v(this.Ib,this.Qc,c,this.Ka,a,this.Ta,this.Ea);g.H(this,this.qc);var h=new hY(b,this.qc,this.Ea);this.Ke=Y(function(){return h});
this.Ul=h;this.Jd=new LX(this.Ib,this.zb,this.Sb,this.Ke);g.H(this,this.Jd);this.tc=new Xu(this.Ib,this.zb,this.Qc,this.Ta,this.Jd,c);g.H(this,this.tc);this.Of=Y(function(){return new EY(f.Rd,f.Pb,f.xb)});
g.H(this,this.Of);this.Yc=Y(function(){return new FY});
g.H(this,this.Yc);this.Sd=new nZ(a,this.Yb);g.H(this,this.Sd);this.qb=new oZ(a);g.H(this,this.qb);this.re=new pZ(a,this.Ke,this.Ka);g.H(this,this.re);this.Vd=new qZ(a,this.Sb,this.Ea,this.Ta);g.H(this,this.Vd);this.Ac=new sZ(a);g.H(this,this.Ac);this.dg=new tZ(a);g.H(this,this.dg);this.Rc=Y(function(){return new jZ});
g.H(this,this.Rc);this.gg=Y(function(){return new kZ(f.Ea)});
g.H(this,this.gg);this.Nf=Y(function(){return new HY(f.tc)});
g.H(this,this.Nf);this.Tf=Y(function(){return new MY(f.Va,f.Ac,f.yb)});
g.H(this,this.Tf);this.cJ=Y(function(){return new UY(f.Yb,f.Ea,f.Va,f.dc,c)});
g.H(this,this.cJ);this.eg=Y(function(){return new gZ(a,f.Ac,f.Va,f.yb,f.le,f.Cd,f.Ta,f.Ea,f.Sb,f.ud,f.Hc,f.qe,f.Hb,f.ye,f.Ka)});
g.H(this,this.eg);this.Dj=new uZ(a,this.Fd,this.xb,this.Ta,this.Ka,this.gb);g.H(this,this.Dj);this.Hd={xp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Jd]]),Fl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Of],["SLOT_TYPE_FORECASTING",this.Yc],["SLOT_TYPE_IN_PLAYER",this.Yc],["SLOT_TYPE_PLAYER_BYTES",
this.Yc]]),Wh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Sd],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.qb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.qb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.qb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.qb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.qb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.qb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.qb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.qb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.qb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.re],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Vd],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Vd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ac],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Ac],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.re],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.dg]]),Zl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Rc],["SLOT_TYPE_ABOVE_FEED",this.Rc],["SLOT_TYPE_FORECASTING",this.Rc],["SLOT_TYPE_IN_PLAYER",this.Rc],["SLOT_TYPE_PLAYER_BYTES",
this.gg]]),Ql:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Nf],["SLOT_TYPE_FORECASTING",this.Tf],["SLOT_TYPE_IN_PLAYER",this.cJ],["SLOT_TYPE_PLAYER_BYTES",this.eg]])};this.listeners=[this.dc.get()];this.Oe={tc:this.tc,nk:null,Sl:this.Fd.get(),vf:this.Ka.get(),zn:this.Ea.get(),qc:this.qc,Rl:null,Di:this.Sd,Cg:this.dc.get()}};
UCa=function(a,b,c,d,e){g.F.call(this);var f=this;this.gb=Y(function(){return new NX});
g.H(this,this.gb);this.Pb=Y(function(){return new SX(f.Ka,f.gb)});
g.H(this,this.Pb);this.dc=Y(function(){return new MX});
g.H(this,this.dc);this.Ib=Y(function(){return new JX(a)});
g.H(this,this.Ib);this.zb=Y(function(){return new dY(f.gb)});
g.H(this,this.zb);this.rd=Y(function(){return new gY});
g.H(this,this.rd);this.qe=Y(function(){return new cI(b.T())});
g.H(this,this.qe);this.Yb=Y(function(){return new wZ(b)});
g.H(this,this.Yb);this.Hb=Y(function(){return new xY(e)});
g.H(this,this.Hb);this.ud=Y(function(){return new TI(b)});
g.H(this,this.ud);this.Sb=Y(function(){return new iY(b)});
g.H(this,this.Sb);this.Cd=Y(function(){return new yZ(b)});
g.H(this,this.Cd);this.Hc=Y(function(){return new jY(b)});
g.H(this,this.Hc);this.Ka=Y(function(){return new kY(b)});
g.H(this,this.Ka);this.Rd=Y(function(){return new vZ(d)});
g.H(this,this.Rd);this.xb=Y(function(){return new UW(f.Ka)});
g.H(this,this.xb);this.Qc=Y(function(){return new HX(f.zb,f.Pb,f.Ka,f.xb,null,null)});
g.H(this,this.Qc);this.ye=Y(function(){return new zZ(b)});
g.H(this,this.ye);this.Fd=Y(function(){return new AZ});
g.H(this,this.Fd);this.Ta=Y(function(){return new vY(b,f.rd)});
g.H(this,this.Ta);this.Xb=new fY(this.Ka,this.xb,this.Ta);g.H(this,this.Xb);this.Ea=Y(function(){return new wY(b)});
g.H(this,this.Ea);this.yb=Y(function(){return new oY(f.Ea,b)});
g.H(this,this.yb);this.Va=Y(function(){return new qY(b,f.dc,f.yb,f.Ta)});
g.H(this,this.Va);this.le=Y(function(){return new yY});
g.H(this,this.le);this.fg=new hZ(iZ,WZ,function(l,m,n,p){return TX(f.Pb.get(),l,m,n,p)},this.Ib,this.zb,this.xb,this.Ka,this.Ta);
g.H(this,this.fg);this.qc=new $v(this.Ib,this.Qc,c,this.Ka,a,this.Ta,this.Ea);g.H(this,this.qc);var h=new hY(b,this.qc,this.Ea);this.Ke=Y(function(){return h});
this.Ul=h;this.Jd=new LX(this.Ib,this.zb,this.Sb,this.Ke);g.H(this,this.Jd);this.tc=new Xu(this.Ib,this.zb,this.Qc,this.Ta,this.Jd,c);g.H(this,this.tc);this.Of=Y(function(){return new EY(f.Rd,f.Pb,f.xb)});
g.H(this,this.Of);this.Yc=Y(function(){return new FY});
g.H(this,this.Yc);this.Sd=new nZ(a,this.Yb);g.H(this,this.Sd);this.qb=new oZ(a);g.H(this,this.qb);this.re=new pZ(a,this.Ke,this.Ka);g.H(this,this.re);this.Vd=new qZ(a,this.Sb,this.Ea,this.Ta);g.H(this,this.Vd);this.Ac=new sZ(a);g.H(this,this.Ac);this.dg=new tZ(a);g.H(this,this.dg);this.Rc=Y(function(){return new jZ});
g.H(this,this.Rc);this.gg=Y(function(){return new kZ(f.Ea)});
g.H(this,this.gg);this.Nf=Y(function(){return new HY(f.tc)});
g.H(this,this.Nf);this.Tf=Y(function(){return new MY(f.Va,f.Ac,f.yb)});
g.H(this,this.Tf);this.mj=Y(function(){return new UY(f.Yb,f.Ea,f.Va,f.dc,c)});
g.H(this,this.mj);this.eg=Y(function(){return new gZ(a,f.Ac,f.Va,f.yb,f.le,f.Cd,f.Ta,f.Ea,f.Sb,f.ud,f.Hc,f.qe,f.Hb,f.ye,f.Ka)});
g.H(this,this.eg);this.Dj=new uZ(a,this.Fd,this.xb,this.Ta,this.Ka,this.gb);g.H(this,this.Dj);this.Hd={xp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Jd]]),Fl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Of],["SLOT_TYPE_FORECASTING",this.Yc],["SLOT_TYPE_IN_PLAYER",this.Yc],["SLOT_TYPE_PLAYER_BYTES",
this.Yc]]),Wh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Sd],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.qb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.qb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.qb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.qb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.qb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.qb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.qb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.qb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.qb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.re],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Vd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ac],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Ac],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.re],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.dg]]),Zl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Rc],["SLOT_TYPE_FORECASTING",this.Rc],["SLOT_TYPE_IN_PLAYER",this.Rc],["SLOT_TYPE_PLAYER_BYTES",this.gg]]),Ql:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Nf],["SLOT_TYPE_FORECASTING",
this.Tf],["SLOT_TYPE_IN_PLAYER",this.mj],["SLOT_TYPE_PLAYER_BYTES",this.eg]])};this.listeners=[this.dc.get()];this.Oe={tc:this.tc,nk:null,Sl:this.Fd.get(),vf:this.Ka.get(),zn:this.Ea.get(),qc:this.qc,Rl:null,Di:this.Sd,Cg:this.dc.get()}};
XZ=function(a,b,c,d,e,f,h,l,m){SY.call(this,a,b,c,d,e,f,h,m);this.aj=l};
VCa=function(){var a=WBa();a.Je.push("metadata_type_ad_info_ad_metadata");return a};
WCa=function(a,b,c,d,e,f){this.Yb=a;this.Ea=b;this.Va=c;this.i=d;this.aj=e;this.Kd=f};
XCa=function(a,b,c,d,e){g.F.call(this);var f=this;this.gb=Y(function(){return new NX});
g.H(this,this.gb);this.Pb=Y(function(){return new SX(f.Ka,f.gb)});
g.H(this,this.Pb);this.dc=Y(function(){return new MX});
g.H(this,this.dc);this.Ib=Y(function(){return new JX(a)});
g.H(this,this.Ib);this.zb=Y(function(){return new dY(f.gb)});
g.H(this,this.zb);this.rd=Y(function(){return new gY});
g.H(this,this.rd);this.aj=Y(function(){return new rCa(b)});
g.H(this,this.aj);this.qe=Y(function(){return new cI(b.T())});
g.H(this,this.qe);this.Yb=Y(function(){return new wZ(b)});
g.H(this,this.Yb);this.Hb=Y(function(){return new xY(e)});
g.H(this,this.Hb);this.ud=Y(function(){return new TI(b)});
g.H(this,this.ud);this.Sb=Y(function(){return new iY(b)});
g.H(this,this.Sb);this.Cd=Y(function(){return new yZ(b)});
g.H(this,this.Cd);this.Hc=Y(function(){return new jY(b)});
g.H(this,this.Hc);this.Ka=Y(function(){return new kY(b)});
g.H(this,this.Ka);this.Rd=Y(function(){return new vZ(d)});
g.H(this,this.Rd);this.xb=Y(function(){return new UW(f.Ka)});
g.H(this,this.xb);this.Qc=Y(function(){return new HX(f.zb,f.Pb,f.Ka,f.xb,null,null)});
g.H(this,this.Qc);this.ye=Y(function(){return new zZ(b)});
g.H(this,this.ye);this.Fd=Y(function(){return new AZ});
g.H(this,this.Fd);this.Ta=Y(function(){return new vY(b,f.rd)});
g.H(this,this.Ta);this.Xb=new fY(this.Ka,this.xb,this.Ta);g.H(this,this.Xb);this.Ea=Y(function(){return new wY(b)});
g.H(this,this.Ea);this.yb=Y(function(){return new oY(f.Ea,b)});
g.H(this,this.yb);this.Va=Y(function(){return new qY(b,f.dc,f.yb,f.Ta)});
g.H(this,this.Va);this.le=Y(function(){return new yY});
g.H(this,this.le);this.fg=new hZ(iCa,WZ,function(l,m,n,p){return oBa(f.Pb.get(),l,m,n,p)},this.Ib,this.zb,this.xb,this.Ka,this.Ta);
g.H(this,this.fg);this.qc=new $v(this.Ib,this.Qc,c,this.Ka,a,this.Ta,this.Ea);g.H(this,this.qc);var h=new hY(b,this.qc,this.Ea);this.Ke=Y(function(){return h});
this.Ul=h;this.Jd=new LX(this.Ib,this.zb,this.Sb,this.Ke);g.H(this,this.Jd);this.tc=new Xu(this.Ib,this.zb,this.Qc,this.Ta,this.Jd,c);g.H(this,this.tc);this.Of=Y(function(){return new EY(f.Rd,f.Pb,f.xb)});
g.H(this,this.Of);this.Yc=Y(function(){return new FY});
g.H(this,this.Yc);this.Sd=new nZ(a,this.Yb);g.H(this,this.Sd);this.qb=new oZ(a);g.H(this,this.qb);this.re=new pZ(a,this.Ke,this.Ka);g.H(this,this.re);this.Vd=new qZ(a,this.Sb,this.Ea,this.Ta);g.H(this,this.Vd);this.Ac=new sZ(a);g.H(this,this.Ac);this.dg=new tZ(a);g.H(this,this.dg);this.Rc=Y(function(){return new jZ});
g.H(this,this.Rc);this.gg=Y(function(){return new kZ(f.Ea)});
g.H(this,this.gg);this.Nf=Y(function(){return new HY(f.tc)});
g.H(this,this.Nf);this.Tf=Y(function(){return new MY(f.Va,f.Ac,f.yb)});
g.H(this,this.Tf);this.eg=Y(function(){return new gZ(a,f.Ac,f.Va,f.yb,f.le,f.Cd,f.Ta,f.Ea,f.Sb,f.ud,f.Hc,f.qe,f.Hb,f.ye,f.Ka)});
g.H(this,this.eg);this.zK=Y(function(){return new WCa(f.Yb,f.Ea,f.Va,f.dc,f.aj,c)});
g.H(this,this.zK);this.Dj=new uZ(a,this.Fd,this.xb,this.Ta,this.Ka,this.gb);g.H(this,this.Dj);this.Hd={xp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Jd]]),Fl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Of],["SLOT_TYPE_FORECASTING",this.Yc],["SLOT_TYPE_IN_PLAYER",this.Yc],["SLOT_TYPE_PLAYER_BYTES",
this.Yc]]),Wh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Sd],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.qb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.qb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.qb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.qb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.qb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.qb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.qb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.qb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.qb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.re],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Vd],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Vd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ac],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Ac],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.re],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.dg]]),Zl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Rc],["SLOT_TYPE_FORECASTING",this.Rc],["SLOT_TYPE_IN_PLAYER",this.Rc],["SLOT_TYPE_PLAYER_BYTES",this.gg]]),Ql:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Nf],["SLOT_TYPE_FORECASTING",this.Tf],["SLOT_TYPE_IN_PLAYER",this.zK],["SLOT_TYPE_PLAYER_BYTES",this.eg]])};this.listeners=[this.dc.get()];this.Oe={tc:this.tc,nk:null,Sl:this.Fd.get(),vf:this.Ka.get(),zn:this.Ea.get(),qc:this.qc,Rl:null,Di:this.Sd,Cg:this.dc.get()}};
YCa=function(a,b,c,d,e,f){this.Yb=a;this.Ea=b;this.Va=c;this.i=d;this.aj=e;this.Kd=f};
ZCa=function(a,b,c,d,e){g.F.call(this);var f=this;this.gb=Y(function(){return new NX});
g.H(this,this.gb);this.Pb=Y(function(){return new SX(f.Ka,f.gb)});
g.H(this,this.Pb);this.dc=Y(function(){return new MX});
g.H(this,this.dc);this.Ib=Y(function(){return new JX(a)});
g.H(this,this.Ib);this.zb=Y(function(){return new dY(f.gb)});
g.H(this,this.zb);this.rd=Y(function(){return new gY});
g.H(this,this.rd);this.aj=Y(function(){return new rCa(b)});
g.H(this,this.aj);this.qe=Y(function(){return new cI(b.T())});
g.H(this,this.qe);this.Yb=Y(function(){return new wZ(b)});
g.H(this,this.Yb);this.Hb=Y(function(){return new xY(e)});
g.H(this,this.Hb);this.ud=Y(function(){return new TI(b)});
g.H(this,this.ud);this.Sb=Y(function(){return new iY(b)});
g.H(this,this.Sb);this.Cd=Y(function(){return new yZ(b)});
g.H(this,this.Cd);this.Hc=Y(function(){return new jY(b)});
g.H(this,this.Hc);this.Ka=Y(function(){return new kY(b)});
g.H(this,this.Ka);this.Rd=Y(function(){return new vZ(d)});
g.H(this,this.Rd);this.xb=Y(function(){return new UW(f.Ka)});
g.H(this,this.xb);this.Qc=Y(function(){return new HX(f.zb,f.Pb,f.Ka,f.xb,null,f.vk,3)});
g.H(this,this.Qc);this.ye=Y(function(){return new zZ(b)});
g.H(this,this.ye);this.Fd=Y(function(){return new AZ});
g.H(this,this.Fd);this.Ta=Y(function(){return new vY(b,f.rd)});
g.H(this,this.Ta);this.Xb=new fY(this.Ka,this.xb,this.Ta);g.H(this,this.Xb);this.Se=Y(function(){return new GZ(b,f.Ta,f.Ka,f.Va)});
g.H(this,this.Se);this.Ye=Y(function(){return new HZ(b)});
g.H(this,this.Ye);this.Ea=Y(function(){return new wY(b)});
g.H(this,this.Ea);this.le=Y(function(){return new yY});
this.yb=Y(function(){return new oY(f.Ea,b)});
g.H(this,this.yb);this.Va=Y(function(){return new qY(b,f.dc,f.yb,f.Ta)});
g.H(this,this.Va);this.qc=new $v(this.Ib,this.Qc,c,this.Ka,a,this.Ta,this.Ea);g.H(this,this.qc);var h=new hY(b,this.qc,this.Ea,this.Se);this.Ke=Y(function(){return h});
this.Ul=h;this.fg=new hZ(jCa,WZ,function(l,m,n,p){return oBa(f.Pb.get(),l,m,n,p)},this.Ib,this.zb,this.xb,this.Ka,this.Ta);
g.H(this,this.fg);this.vk=new EZ(this.Ib,this.zb,this.Ta,this.Ke,this.Se,this.Ea,this.Ka);g.H(this,this.vk);this.Jd=new LX(this.Ib,this.zb,this.Sb,this.Ke);g.H(this,this.Jd);this.tc=new Xu(this.Ib,this.zb,this.Qc,this.Ta,this.Jd,c);g.H(this,this.tc);this.Of=Y(function(){return new EY(f.Rd,f.Pb,f.xb,f.Ye)});
g.H(this,this.Of);this.Yc=Y(function(){return new FY});
g.H(this,this.Yc);this.Sd=new nZ(a,this.Yb);g.H(this,this.Sd);this.qb=new oZ(a);g.H(this,this.qb);this.re=new pZ(a,this.Ke,this.Ka);g.H(this,this.re);this.Vd=new qZ(a,this.Sb,this.Ea,this.Ta);g.H(this,this.Vd);this.mp=new FZ(a,this.Ta);g.H(this,this.mp);this.Ac=new sZ(a);g.H(this,this.Ac);this.dg=new tZ(a);g.H(this,this.dg);this.Rc=Y(function(){return new jZ});
g.H(this,this.Rc);this.gg=Y(function(){return new kZ(f.Ea)});
g.H(this,this.gg);this.Nf=Y(function(){return new HY(f.tc)});
g.H(this,this.Nf);this.Tf=Y(function(){return new MY(f.Va,f.Ac,f.yb)});
g.H(this,this.Tf);this.eg=Y(function(){return new DZ(a,f.Ac,f.Ta,f.Ye,f.Ea,f.Va,f.rd,f.Se,f.yb,f.le,f.Cd,f.Sb,f.ud,f.Hc,f.qe,f.Hb,f.ye,f.Ka)});
g.H(this,this.eg);this.mj=Y(function(){return new YCa(f.Yb,f.Ea,f.Va,f.dc,f.aj,c)});
g.H(this,this.mj);this.Dj=new uZ(a,this.Fd,this.xb,this.Ta,this.Ka,this.gb);g.H(this,this.Dj);this.Hd={xp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.vk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Jd]]),Fl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Of],["SLOT_TYPE_FORECASTING",this.Yc],
["SLOT_TYPE_IN_PLAYER",this.Yc],["SLOT_TYPE_PLAYER_BYTES",this.Yc]]),Wh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Sd],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.qb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.qb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.qb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.qb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.qb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.qb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.qb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.qb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.qb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.re],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Vd],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Vd],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.mp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.mp],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ac],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Ac],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.re],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.dg]]),Zl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Rc],["SLOT_TYPE_FORECASTING",this.Rc],["SLOT_TYPE_IN_PLAYER",this.Rc],["SLOT_TYPE_PLAYER_BYTES",this.gg]]),Ql:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Nf],["SLOT_TYPE_FORECASTING",this.Tf],["SLOT_TYPE_PLAYER_BYTES",this.eg],["SLOT_TYPE_IN_PLAYER",this.mj]])};this.listeners=[this.dc.get()];this.Oe={tc:this.tc,nk:null,Sl:this.Fd.get(),vf:this.Ka.get(),zn:this.Ea.get(),qc:this.qc,Rl:null,Di:this.Sd,Cg:this.dc.get()}};
YZ=function(a,b,c,d){g.F.call(this);var e=this;this.i=$Ca(function(){return e.l},a,b,c,d);
g.H(this,this.i);this.l=(new tX(this.i)).u();g.H(this,this.l)};
$Ca=function(a,b,c,d,e){try{var f=b.T();if(g.dE(f))var h=new QCa(a,b,c,d,e);else if(g.hE(f))h=new SCa(a,b,c,d,e);else if(iE(f))h=new UCa(a,b,c,d,e);else if(TD(f))h=new TCa(a,b,c,d,e);else if(gE(f))h=new XCa(a,b,c,d,e);else if(g.JD(f))h=new ZCa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.T(),Q("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,interface:e.deviceParams.c,o6:e.deviceParams.cver,n6:e.deviceParams.ctheme,
m6:e.deviceParams.cplayer,C6:e.playerStyle}),new KBa(a,b,c,d)}};
ZZ=function(a,b,c,d){this.i=a;this.nk=b;this.l=c;this.vf=d};
$Z=function(a){uK.call(this,a)};
a_=function(a,b,c,d,e){vK.call(this,a,b,{D:"div",K:"ytp-ad-timed-pie-countdown-container",S:[{D:"svg",K:"ytp-ad-timed-pie-countdown",U:{viewBox:"0 0 20 20"},S:[{D:"circle",K:"ytp-ad-timed-pie-countdown-background",U:{r:"10",cx:"10",cy:"10"}},{D:"circle",K:"ytp-ad-timed-pie-countdown-inner",U:{r:"5",cx:"10",cy:"10"}},{D:"circle",K:"ytp-ad-timed-pie-countdown-outer",U:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e);this.B=this.ya("ytp-ad-timed-pie-countdown-inner");this.u=Math.ceil(10*Math.PI);
this.hide()};
b_=function(a,b){g.P.call(this);this.api=a;this.durationMs=b;this.i=null;this.De=new Yt(this);g.H(this,this.De);this.l=joa;this.De.N(this.api,"presentingplayerstatechange",this.wc);this.i=this.De.N(this.api,"onAdPlaybackProgress",this.Rb)};
c_=function(a,b,c,d,e,f){XJ.call(this,a,b,{D:"div",K:"ytp-ad-action-interstitial",U:{tabindex:"0"},S:[{D:"div",K:"ytp-ad-action-interstitial-background-container"},{D:"div",K:"ytp-ad-action-interstitial-slot",S:[{D:"div",K:"ytp-ad-action-interstitial-card",S:[{D:"div",K:"ytp-ad-action-interstitial-image-container"},{D:"div",K:"ytp-ad-action-interstitial-headline-container"},{D:"div",K:"ytp-ad-action-interstitial-description-container"},{D:"div",K:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d);this.MC=e;this.Ux=f;this.navigationEndpoint=this.l=this.skipButton=this.u=this.actionButton=null;this.Ga=this.ya("ytp-ad-action-interstitial-image-container");this.C=new qK(this.api,this.Pa,this.layoutId,this.i,"ytp-ad-action-interstitial-image");g.H(this,this.C);this.C.xa(this.Ga);this.Da=this.ya("ytp-ad-action-interstitial-headline-container");this.Y=new yK(this.api,this.Pa,this.layoutId,this.i,"ytp-ad-action-interstitial-headline");g.H(this,this.Y);this.Y.xa(this.Da);
this.Aa=this.ya("ytp-ad-action-interstitial-description-container");this.L=new yK(this.api,this.Pa,this.layoutId,this.i,"ytp-ad-action-interstitial-description");g.H(this,this.L);this.L.xa(this.Aa);this.Sa=this.ya("ytp-ad-action-interstitial-background-container");this.I=new qK(this.api,this.Pa,this.layoutId,this.i,"ytp-ad-action-interstitial-background",!0);g.H(this,this.I);this.I.xa(this.Sa);this.Ma=this.ya("ytp-ad-action-interstitial-action-button-container");this.B=new Yt;g.H(this,this.B);this.hide()};
aDa=function(a){var b=g.oe("html5-video-player");b&&g.L(b,"ytp-ad-display-override",a)};
d_=function(a,b,c,d){XJ.call(this,a,b,{D:"div",K:"ytp-ad-text-interstitial"},"ad-text-interstitial",c,d);this.l=this.ya("ytp-ad-text-interstitial");this.messageText=new yK(this.api,this.Pa,this.layoutId,this.i,"ytp-ad-text-interstitial-message");g.H(this,this.messageText);this.messageText.xa(this.l);this.hide()};
bDa=function(a){var b=g.oe("html5-video-player");b&&g.L(b,"ytp-ad-display-override",a)};
e_=function(a,b,c,d){XJ.call(this,a,b,{D:"div",K:"ytp-ad-overlay-slot",S:[{D:"div",K:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.L=[];this.Xa=this.Aa=this.C=this.Sa=this.Ga=null;this.Ma=!1;this.I=null;this.Y=0;a=this.ya("ytp-ad-overlay-container");this.Da=new QK(a,45E3,6E3,.3,.4);g.H(this,this.Da);this.B=cDa(this);g.H(this,this.B);this.B.xa(a);this.u=dDa(this);g.H(this,this.u);this.u.xa(a);this.l=eDa(this);g.H(this,this.l);this.l.xa(a);this.hide()};
cDa=function(a){var b=new g.WJ({D:"div",K:"ytp-ad-text-overlay",S:[{D:"div",K:"ytp-ad-overlay-ad-info-button-container"},{D:"div",K:"ytp-ad-overlay-close-container",S:[{D:"button",K:"ytp-ad-overlay-close-button",S:[jK(f_)]}]},{D:"div",K:"ytp-ad-overlay-title",ma:"{{title}}"},{D:"div",K:"ytp-ad-overlay-desc",ma:"{{description}}"},{D:"div",Ba:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],ma:"{{displayUrl}}"}]});a.N(b.ya("ytp-ad-overlay-title"),"click",function(c){return g_(a,b.element,
c)});
a.N(b.ya("ytp-ad-overlay-link"),"click",function(c){return g_(a,b.element,c)});
a.N(b.ya("ytp-ad-overlay-close-container"),"click",a.ph);b.hide();return b};
dDa=function(a){var b=new g.WJ({D:"div",Ba:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{D:"div",K:"ytp-ad-overlay-ad-info-button-container"},{D:"div",K:"ytp-ad-overlay-close-container",S:[{D:"button",K:"ytp-ad-overlay-close-button",S:[jK(f_)]}]},{D:"div",K:"ytp-ad-overlay-text-image",S:[{D:"img",U:{src:"{{imageUrl}}"}}]},{D:"div",K:"ytp-ad-overlay-title",ma:"{{title}}"},{D:"div",K:"ytp-ad-overlay-desc",ma:"{{description}}"},{D:"div",Ba:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
ma:"{{displayUrl}}"}]});a.N(b.ya("ytp-ad-overlay-title"),"click",function(c){return g_(a,b.element,c)});
a.N(b.ya("ytp-ad-overlay-link"),"click",function(c){return g_(a,b.element,c)});
a.N(b.ya("ytp-ad-overlay-close-container"),"click",a.ph);a.N(b.ya("ytp-ad-overlay-text-image"),"click",a.dS);b.hide();return b};
eDa=function(a){var b=new g.WJ({D:"div",K:"ytp-ad-image-overlay",S:[{D:"div",K:"ytp-ad-overlay-ad-info-button-container"},{D:"div",K:"ytp-ad-overlay-close-container",S:[{D:"button",K:"ytp-ad-overlay-close-button",S:[jK(f_)]}]},{D:"div",K:"ytp-ad-overlay-image",S:[{D:"img",U:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.N(b.ya("ytp-ad-overlay-image"),"click",function(c){return g_(a,b.element,c)});
a.N(b.ya("ytp-ad-overlay-close-container"),"click",a.ph);b.hide();return b};
h_=function(a,b){if(b)if(b=b.adHoverTextButtonRenderer||null,null==b)g.xo(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else{var c=g.oe("video-ads ytp-ad-module")||null;null==c?g.xo(Error("Could not locate the root ads container element to attach the ad info dialog.")):(a.Aa=new g.WJ({D:"div",K:"ytp-ad-overlay-ad-info-dialog-container"}),g.H(a,a.Aa),a.Aa.xa(c),c=new HK(a.api,a.Pa,a.layoutId,a.i,a.Aa.element,!1),g.H(a,c),c.init(aI("ad-info-hover-text-button"),b,a.macros),a.I?
(c.xa(a.I,0),c.subscribe("h",a.tP,a),c.subscribe("g",a.dC,a),a.N(a.I,"click",a.uP),b=g.oe("ytp-ad-button",c.element),a.N(b,"click",a.sP),a.Xa=c):g.xo(Error("Ad info button container within overlay ad was not present.")))}else zo(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
fDa=function(a){return a.C&&a.C.closeButton&&a.C.closeButton.buttonRenderer&&(a=a.C.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
gDa=function(a,b){if(i_(a,j_)||a.api.jf())return!1;var c=YJ(b.title),d=YJ(b.description);if(g.pc(c)||g.pc(d))return!1;a.Lh(a.B.element,b.trackingParams||null);a.B.Oa("title",YJ(b.title));a.B.Oa("description",YJ(b.description));a.B.Oa("displayUrl",YJ(b.displayUrl));b.navigationEndpoint&&pb(a.L,b.navigationEndpoint);a.B.show();a.Da.start();a.eb(a.B.element,!0);a.N(a.B.element,"mouseover",function(){a.Y++});
return!0};
hDa=function(a,b){if(i_(a,j_)||a.api.jf())return!1;var c=YJ(b.title),d=YJ(b.description);if(g.pc(c)||g.pc(d))return!1;a.Lh(a.u.element,b.trackingParams||null);a.u.Oa("title",YJ(b.title));a.u.Oa("description",YJ(b.description));a.u.Oa("displayUrl",YJ(b.displayUrl));a.u.Oa("imageUrl",Lla(b.image));b.navigationEndpoint&&pb(a.L,b.navigationEndpoint);a.Sa=b.imageNavigationEndpoint||null;a.u.show();a.Da.start();a.eb(a.u.element,!0);a.N(a.u.element,"mouseover",function(){a.Y++});
return!0};
iDa=function(a,b){if(a.api.jf())return!1;var c=Mla(b.image),d=c;c.width<j_.width&&(d=j_);if(0===c.width||0===c.height||i_(a,d))return!1;a.Lh(a.l.element,b.trackingParams||null);a.l.Oa("imageUrl",Lla(b.image));a.l.Oa("width",c.width);a.l.Oa("height",c.height);b.navigationEndpoint&&pb(a.L,b.navigationEndpoint);b=a.l.ya("ytp-ad-image-overlay");g.dg(b,"max-width",c.width+"px");a.l.show();a.eb(a.l.element,!0);a.N(a.l.element,"mouseover",function(){a.Y++;a.api.SB("invideo-overlay",a.layoutId)});
a.N(a.l.element,"mouseout",function(){a.api.RB("invideo-overlay",a.layoutId)});
return!0};
i_=function(a,b){var c=a.api.Wa().Og(),d=a.api.jj(!0,!1);return(b=NZ(c,c.height-(d.height+d.top),b))?(a.Ga&&b&&(c=g.Ub(a.macros),c.ERRORCODE=b.bv.toString(),c.ERROR_MSG=b.errorMessage,a.Pa.executeCommand(a.Ga,c)),!0):!1};
g_=function(a,b,c){var d=g.Ub(a.macros),e=g.tg(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.rg(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.Y.toString()}};
a.L.forEach(function(h){return a.Pa.executeCommand(h,d)});
a.api.pauseVideo()};
jDa=function(a,b){a=a.api.getRootNode();g.L(a,"ytp-ad-overlay-open",b);g.L(a,"ytp-ad-overlay-closed",!b)};
k_=function(a,b,c,d){XJ.call(this,a,b,{D:"div",K:"ytp-ad-survey-answer"},"survey-answer",c,d);this.l=null;this.toggledLoggingParams="";this.answer=this.ya("ytp-ad-survey-answer");this.hide()};
l_=function(a,b,c,d){XJ.call(this,a,b,{D:"div",K:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d);this.button=null;this.l=this.ya("ytp-ad-survey-none-of-the-above");this.hide()};
m_=function(a,b,c,d){kK.call(this,a,b,c,d,["ytp-ad-survey-submit-button"],"survey-submit")};
n_=function(a,b,c,d,e){XJ.call(this,a,b,{D:"div",K:"ytp-ad-survey-player-overlay",S:[{D:"div",K:"ytp-ad-survey-player-overlay-instream-info"},{D:"div",K:"ytp-ad-survey-player-overlay-skip-preview-submit",S:[{D:"div",K:"ytp-ad-survey-player-overlay-skip-or-preview"},{D:"div",K:"ytp-ad-survey-player-overlay-submit"}]},{D:"div",K:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d);this.B=e;this.u=this.l=null;this.C=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.H(this,this.B);this.hide()};
o_=function(a,b,c,d,e){XJ.call(this,a,b,{D:"div",K:"ytp-ad-survey-question",S:[{D:"div",Ba:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{D:"div",Ba:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{D:"div",Ba:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{D:"div",K:"ytp-ad-survey-question-background"}]},e,c,d);this.C=null;this.u=[];this.l=null;this.question=this.ya("ytp-ad-survey-question");this.L=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.B=g.Ta()};
kDa=function(a,b,c){var d=new k_(a.api,a.Pa,a.layoutId,a.i);d.xa(a.answers);d.init(aI("survey-answer"),b,c);a.u.push(d)};
mDa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&pK(c)||"",g.pc(c)?zo(Error("Found ThumbnailDetails without valid image URL")):g.dg(a.L,"backgroundImage","url("+c+")"));lDa(a,b)}else g.xo(Error("addCommonComponents() needs to be called before starting countdown."))};
lDa=function(a,b){if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.xo(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.B=g.Ta();a.l=new AK(b.durationMilliseconds,a.Pa);g.H(a,a.l);if(b.timeoutCommands){var c=b.timeoutCommands;a.l.subscribe("a",function(){c.forEach(function(e){return a.Pa.executeCommand(e,a.macros)})})}if(a.l&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=
new n_(a.api,a.Pa,a.layoutId,a.i,a.l);
d.xa(a.playerOverlay);d.init(aI("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.C=d;g.H(a,d);a.AJ()}catch(e){g.xo(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.xo(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.l&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new aL(a.api,a.l),b.xa(a.playerOverlay),g.H(a,b)):g.xo(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
nDa=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.Ta()-a.B).toString()})};
p_=function(a,b,c,d){o_.call(this,a,b,c,d,"survey-question-multi-select");this.noneOfTheAbove=null;this.submitEndpoints=[];this.I=null;this.hide()};
oDa=function(a,b,c){a.noneOfTheAbove=new l_(a.api,a.Pa,a.layoutId,a.i);a.noneOfTheAbove.xa(a.answers);a.noneOfTheAbove.init(aI("survey-none-of-the-above"),b,c)};
pDa=function(a){a.u.forEach(function(b){b.l.toggleButton(!1)});
q_(a,!0)};
q_=function(a,b){var c=a.C;a=qDa(a);b=void 0===b?!1:b;c.l&&(a?c.l.hide():c.l.show(),b&&c.l instanceof SK&&!c.l.L&&TK(c.l,!1));c.u&&(a?c.u.show():c.u.hide())};
qDa=function(a){return a.u.some(function(b){return b.l.isToggled()})||a.noneOfTheAbove.button.isToggled()};
r_=function(a,b,c,d){o_.call(this,a,b,c,d,"survey-question-single-select");this.hide()};
s_=function(a,b,c,d){XJ.call(this,a,b,{D:"div",K:"ytp-ad-survey",S:[{D:"div",K:"ytp-ad-survey-questions"}]},"survey",c,d);this.questions=[];this.l=this.ya("ytp-ad-survey-questions");this.hide()};
t_=function(a,b,c,d){XJ.call(this,a,b,{D:"div",K:"ytp-ad-survey-interstitial",S:[{D:"div",K:"ytp-ad-survey-interstitial-contents",S:[{D:"div",K:"ytp-ad-survey-interstitial-logo",S:[{D:"div",K:"ytp-ad-survey-interstitial-logo-image"}]},{D:"div",K:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d);this.l=this.actionButton=null;this.interstitial=this.ya("ytp-ad-survey-interstitial");this.u=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.IK(this,500,!1,300);g.H(this,this.transition)};
rDa=function(a,b,c){c=c.dismissCommands;var d=b.target===a.interstitial;b=a.actionButton.element.contains(b.target);if(d||b)a.transition.hide(),d&&c.forEach(function(e){return a.Pa.executeCommand(e,a.macros)})};
sDa=function(a,b){b=b&&pK(b)||"";if(g.pc(b))zo(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.we&&10>document.documentMode)c=Qc;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.De("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Fda(d.style)}b=Eaa(c,Rc({"background-image":'url("'+b+'")'}));a.style.cssText=Nc(b)}};
tDa=function(a){var b=g.oe("html5-video-player");b&&g.L(b,"ytp-ad-display-override",a)};
u_=function(a,b){uK.call(this,a);this.api=a;this.l={};this.C=b;a=new g.W({D:"div",Ba:["video-ads","ytp-ad-module"]});g.H(this,a);zD&&g.K(a.element,"ytp-ads-tiny-mode");this.B=new QJ(a.element);g.H(this,this.B);g.RL(this.api,a.element,4);g.H(this,cma())};
uDa=function(a,b){a=Sb(a.l,b.id,null);null==a&&zo(Error("Component not found for element id: "+b.id));return a||null};
v_=function(a){g.aM.call(this,a);var b=this;this.l=this.Pa=null;this.created=!1;this.qm=new tJ(this.player);this.u=function(){function d(){return b.Pa}
if(null!=b.l)return b.l;var e=Ska({SF:a.getVideoData(1)});e=new Qza({sN:new ZZ(function(){return b.Pa},b.i.i.Oe.nk,b.i.u(),b.i.i.Oe.vf),
Fs:e.bO(),BN:d,lP:d,Di:b.i.i.Oe.Di,Bj:e.OA(),G:b.player,vf:b.i.i.Oe.vf,Va:b.i.i.Va,Cg:b.i.i.Oe.Cg,Hc:b.i.i.Hc});b.l=e.ZL;return b.l};
this.i=new YZ(this.player,this,this.qm,this.u);g.H(this,this.i);var c=a.T();!QD(c)||g.JD(c)||TD(c)||(g.H(this,new u_(a,function(){return b.Pa})),g.H(this,new $Z(a)))};
w_=function(a,b){b===a.po&&(a.po=void 0)};
vDa=function(a){a.Pa?a.i.i.Oe.qc.dB()||a.Pa.dB()||a.i.i.Oe.zn.yk():Q("AdService is null when calling maybeUnlockPrerollIfReady")};
wDa=function(a){a=g.q(a.i.i.Oe.Cg.Hj.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.sb&&"core"===b.jb)return!0;return!1};
Zu=function(a,b,c){c=void 0===c?"":c;var d=a.i.i.Oe.vf,e=a.player.getVideoData(1);e=e&&e.getPlayerResponse()||{};d=xDa(b,d,e&&e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1);xfa(a.i.i.Oe.tc,c,d.Ar,b);a.Pa&&0<d.Eo.length&&(a=a.Pa,b=d.Eo,b=tla(a,b),b=ula(a,b),LJ(a,b))};
xDa=function(a,b,c){var d={Eo:[],Ar:[]};a=g.q(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&null!=e.renderer){var f=e.renderer,h=e.config&&e.config.adPlacementConfig&&e.config.adPlacementConfig.kind,l=b;c||null!=f.clientForecastingAdRenderer||null!=f.actionCompanionAdRenderer||null!=f.imageCompanionAdRenderer||null!=f.shoppingCompanionCarouselRenderer||null!=f.invideoOverlayAdRenderer||null!=f.adBreakServiceRenderer&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==h||(null!=f.instreamVideoAdRenderer||
null!=f.remoteSlotsRenderer?g.fE(l.G.T())?0:QD(l.G.T())&&g.S(l.G.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf"):f.linearAdSequenceRenderer&&f.linearAdSequenceRenderer.linearAds?f.linearAdSequenceRenderer.adStart?0:g.fE(l.G.T())?0:QD(l.G.T())&&g.S(l.G.T().experiments,"html5_enable_non_notify_composite_vod_lsar_pacf"):null!=f.instreamSurveyAdRenderer?f.instreamSurveyAdRenderer.controlflowEnabled:null!=f.sandwichedLinearAdRenderer&&null!=f.sandwichedLinearAdRenderer.linearAd&&null!=f.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer&&
f.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer.controlflowEnabled)?d.Ar.push(e):d.Eo.push(e)}return d};
yDa=function(){if(!g.we)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.x_=function(a){if("undefined"!=typeof DOMParser)return kd(new DOMParser,ag(a),"application/xml");if(zDa){var 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.y_=function(a){g.F.call(this);this.l=a;this.i={}};
ADa=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)ADa(a,b,c[h],d,e,f);else{b=Hl(b,c,d||a.handleEvent,e,f||a.l||a);if(!b)return a;a.i[b.key]=b}return a};
g.BDa=function(a){g.Cb(a.i,function(b,c){this.i.hasOwnProperty(c)&&Ql(b)},a);
a.i={}};
g.z_=function(a,b){var c="ytp-miniplayer-button-bottom-right",d={D:"svg",U:{height:"18px",version:"1.1",viewBox:"0 0 22 18",width:"22px"},S:[{D:"g",U:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},S:[{D:"g",U:{transform:"translate(-1.000000, -3.000000)"},S:[{D:"polygon",U:{points:"0 0 24 0 24 24 0 24"}},{D:"path",U:{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.T().ea("kevlar_miniplayer_expand_top")&&(c="ytp-miniplayer-button-top-left",d={D:"svg",U:{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px"},S:[{D:"g",U:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},S:[{D:"g",U:{transform:"translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000) "},S:[{D:"path",U:{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,{D:"button",Ba:["ytp-miniplayer-expand-watch-page-button","ytp-button",c],U:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-expand-watch-page-button"},S:[d]});this.G=a;this.Na("click",this.onClick,this);this.Oa("title",xM(a,e,"i"));g.wi(this,g.VM(b.ac(),this.element))};
aa=[];fa="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};
ea=aaa(this);ia("Symbol",function(a){function b(e){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c("jscomp_symbol_"+(e||"")+"_"+d++,e)}
function c(e,f){this.i=e;fa(this,"description",{configurable:!0,writable:!0,value:f})}
if(a)return a;c.prototype.toString=function(){return this.i};
var d=0;return b});
ia("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=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&fa(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ka(da(this))}})}return a});
var oa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},CDa=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}}(),A_;
if("function"==typeof Object.setPrototypeOf)A_=Object.setPrototypeOf;else{var B_;a:{var DDa={a:!0},EDa={};try{EDa.__proto__=DDa;B_=EDa.a;break a}catch(a){}B_=!1}A_=B_?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var pa=A_;
qa.prototype.L=function(a){this.l=a};
qa.prototype.return=function(a){this.u={return:a};this.i=this.C};
qa.prototype.Mb=function(a){this.i=a};
ia("Reflect",function(a){return a?a:{}});
ia("Reflect.construct",function(){return CDa});
ia("Reflect.setPrototypeOf",function(a){return a?a:pa?function(b,c){try{return pa(b,c),!0}catch(d){return!1}}:null});
ia("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=za(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}});
ia("Array.prototype.find",function(a){return a?a:function(b,c){return Aa(this,b,c).xK}});
ia("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=za(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}});
ia("String.prototype.repeat",function(a){return a?a:function(b){var c=za(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
ia("Object.setPrototypeOf",function(a){return a||pa});
var FDa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ba(d,e)&&(a[e]=d[e])}return a};
ia("Object.assign",function(a){return a||FDa});
ia("Promise",function(a){function b(h){this.bb=0;this.Gn=void 0;this.i=[];this.C=!1;var l=this.l();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.i=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.l=function(h){if(null==this.i){this.i=[];var l=this;this.u(function(){l.C()})}this.i.push(h)};
var e=ea.setTimeout;c.prototype.u=function(h){e(h,0)};
c.prototype.C=function(){for(;this.i&&this.i.length;){var h=this.i;this.i=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.B(n)}}}this.i=null};
c.prototype.B=function(h){this.u(function(){throw h;})};
b.prototype.l=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.X),reject:h(this.u)}};
b.prototype.X=function(h){if(h===this)this.u(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.ra(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.W(h):this.B(h)}};
b.prototype.W=function(h){var l=void 0;try{l=h.then}catch(m){this.u(m);return}"function"==typeof l?this.va(l,h):this.B(h)};
b.prototype.u=function(h){this.I(2,h)};
b.prototype.B=function(h){this.I(1,h)};
b.prototype.I=function(h,l){if(0!=this.bb)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.bb);this.bb=h;this.Gn=l;2===this.bb&&this.Y();this.J()};
b.prototype.Y=function(){var h=this;e(function(){if(h.L()){var l=ea.console;"undefined"!==typeof l&&l.error(h.Gn)}},1)};
b.prototype.L=function(){if(this.C)return!1;var h=ea.CustomEvent,l=ea.Event,m=ea.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=ea.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.Gn;return m(h)};
b.prototype.J=function(){if(null!=this.i){for(var h=0;h<this.i.length;++h)f.l(this.i[h]);this.i=null}};
var f=new c;b.prototype.ra=function(h){var l=this.l();h.Pv(l.resolve,l.reject)};
b.prototype.va=function(h,l){var m=this.l();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,r=new b(function(t,u){n=t;p=u});
this.Pv(m(h,n),m(l,p));return r};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.Pv=function(h,l){function m(){switch(n.bb){case 1:h(n.Gn);break;case 2:l(n.Gn);break;default:throw Error("Unexpected state: "+n.bb);}}
var n=this;null==this.i?f.l(m):this.i.push(m);this.C=!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.q(h),p=n.next();!p.done;p=n.next())d(p.value).Pv(l,m)})};
b.all=function(h){var l=g.q(h),m=l.next();return m.done?d([]):new b(function(n,p){function r(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).Pv(r(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ia("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Aa(this,b,c).XG}});
ia("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ia("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}});
ia("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==za(this,b,"includes").indexOf(b,c||0)}});
ia("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ba(b,d)&&c.push([d,b[d]]);return c}});
ia("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}});
ia("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}});
ia("Int8Array.prototype.fill",Da);ia("Uint8Array.prototype.fill",Da);ia("Uint8ClampedArray.prototype.fill",Da);ia("Int16Array.prototype.fill",Da);ia("Uint16Array.prototype.fill",Da);ia("Int32Array.prototype.fill",Da);ia("Uint32Array.prototype.fill",Da);ia("Float32Array.prototype.fill",Da);ia("Float64Array.prototype.fill",Da);ia("Array.prototype.keys",function(a){return a?a:function(){return Ea(this,function(b){return b})}});
ia("Array.prototype.values",function(a){return a?a:function(){return Ea(this,function(b,c){return c})}});
ia("Array.prototype.entries",function(a){return a?a:function(){return Ea(this,function(b,c){return[b,c]})}});
ia("Array.prototype.flat",function(a){return a?a:function(b){b=void 0===b?1:b;for(var c=[],d=0;d<this.length;d++){var e=this[d];Array.isArray(e)&&0<b?(e=Array.prototype.flat.call(e,b-1),c.push.apply(c,e)):c.push(e)}return c}});
ia("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}});
ia("WeakMap",function(a){function b(m){this.i=(l+=Math.random()+1).toString();if(m){m=g.q(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!Ba(m,h)){var n=new c;fa(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(r){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(!Ba(m,h))throw Error("WeakMap key fail: "+m);m[h][this.i]=n;return this};
b.prototype.get=function(m){return d(m)&&Ba(m,h)?m[h][this.i]:void 0};
b.prototype.has=function(m){return d(m)&&Ba(m,h)&&Ba(m[h],this.i)};
b.prototype.delete=function(m){return d(m)&&Ba(m,h)&&Ba(m[h],this.i)?delete m[h][this.i]:!1};
return b});
ia("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ia("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.i;return ka(function(){if(n){for(;n.head!=l.i;)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.l[n];if(p&&Ba(l.l,n))for(l=0;l<p.length;l++){var r=p[l];if(m!==m&&r.key!==r.key||m===r.key)return{id:n,list:p,index:l,Kg:r}}return{id:n,list:p,index:-1,Kg:void 0}}
function e(l){this.l={};this.i=b();this.size=0;if(l){l=g.q(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.q([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(r){return!1}}())return a;
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.l[n.id]=[]);n.Kg?n.Kg.value=m:(n.Kg={next:this.i,previous:this.i.previous,head:this.i,key:l,value:m},n.list.push(n.Kg),this.i.previous.next=n.Kg,this.i.previous=n.Kg,this.size++);return this};
e.prototype.delete=function(l){l=d(this,l);return l.Kg&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.l[l.id],l.Kg.previous.next=l.Kg.next,l.Kg.next.previous=l.Kg.previous,l.Kg.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.l={};this.i=this.i.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).Kg};
e.prototype.get=function(l){return(l=d(this,l).Kg)&&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});
ia("Set",function(a){function b(c){this.i=new Map;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.i.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.q([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.i.set(c,c);this.size=this.i.size;return this};
b.prototype.delete=function(c){c=this.i.delete(c);this.size=this.i.size;return c};
b.prototype.clear=function(){this.i.clear();this.size=0};
b.prototype.has=function(c){return this.i.has(c)};
b.prototype.entries=function(){return this.i.entries()};
b.prototype.values=function(){return this.i.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.i.forEach(function(f){return c.call(d,f,f,e)})};
return b});
ia("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ba(b,d)&&c.push(b[d]);return c}});
ia("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ia("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}});
ia("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ia("WeakSet",function(a){function b(c){this.i=new WeakMap;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
b.prototype.add=function(c){this.i.set(c,!0);return this};
b.prototype.has=function(c){return this.i.has(c)};
b.prototype.delete=function(c){return this.i.delete(c)};
return b});
ia("String.prototype.padStart",function(a){return a?a:function(b,c){var d=za(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}});
ia("Number.parseInt",function(a){return a||parseInt});
ia("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
g.C_=g.C_||{};g.A=this||self;eaa=/^[\w+/_-]+[=]{0,2}$/;Ha=null;Pa="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.Ua(Wa,Error);Wa.prototype.name="CustomError";var je;g.Ua(Xa,Wa);Xa.prototype.name="AssertionError";var eb,Yg,Sh;eb=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.GDa=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.zb=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.Ie=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.Oc=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};
Yg=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.zb)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Sh=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.Xg=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};var Wb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var HDa={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 Zb;dc.prototype.Hk=!0;dc.prototype.Oh=function(){return this.i};
var cc={},ac={};var hc={};ic.prototype.Oh=function(){return this.i.toString()};
ic.prototype.toString=function(){return this.i.toString()};var Ida,Hda,Gda,Jda;Ida=/[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/;g.sn=/^[^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]/;Hda=/^http:\/\/.*/;Gda=/\s+/;Jda=/[\d\u06f0-\u06f9]/;g.k=kc.prototype;g.k.Hk=!0;g.k.Oh=function(){return this.i.toString()};
g.k.gB=!0;g.k.Qq=function(){return 1};
g.k.toString=function(){return this.i+""};
var uaa=/%{(\w+)}/g,taa=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,jc={};var zc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},qc=/&/g,rc=/</g,sc=/>/g,uc=/"/g,vc=/'/g,wc=/\x00/g,waa=/[\x00&<>"']/;g.k=g.Dc.prototype;g.k.Hk=!0;g.k.Oh=function(){return this.i.toString()};
g.k.gB=!0;g.k.Qq=function(){return 1};
g.k.toString=function(){return this.i.toString()};
var yaa=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,xaa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Gc=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Cc={},Hc=new g.Dc("about:invalid#zClosurez",Cc);Mc.prototype.Hk=!0;Mc.prototype.Oh=function(){return this.i};
Mc.prototype.toString=function(){return this.i.toString()};
var Lc={},Qc=new Mc("",Lc),Aaa=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,Tc=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,Sc=/\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?)\([-+*/0-9a-z.%\[\], ]+\)/g,Baa=/\/\*/;a:{var IDa=g.A.navigator;if(IDa){var JDa=IDa.userAgent;if(JDa){g.Uc=JDa;break a}}g.Uc=""};g.k=ad.prototype;g.k.gB=!0;g.k.Qq=function(){return this.l};
g.k.Hk=!0;g.k.Oh=function(){return this.i.toString()};
g.k.toString=function(){return this.i.toString()};
var KDa=/^[a-zA-Z0-9-]+$/,LDa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},MDa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},$c={},ed=new ad(g.A.trustedTypes&&g.A.trustedTypes.emptyHTML||"",0,$c);var Iaa=Za(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.bd(ed);return!b.parentElement});g.NDa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var vd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Ld=/#|$/,Kaa=/[?&]($|#)/;Rd[" "]=g.Ka;var fg,hS,Gza,ODa,PDa,QDa,yD,zD,D_;g.gg=Wc("Opera");g.we=Wc("Trident")||Wc("MSIE");g.Ls=Wc("Edge");g.kE=g.Ls||g.we;fg=Wc("Gecko")&&!(yc(g.Uc,"WebKit")&&!Wc("Edge"))&&!(Wc("Trident")||Wc("MSIE"))&&!Wc("Edge");g.ye=yc(g.Uc,"WebKit")&&!Wc("Edge");hS=Wc("Macintosh");Gza=Wc("Windows");g.pq=Wc("Android");ODa=Pd();PDa=Wc("iPad");QDa=Wc("iPod");yD=Qd();zD=yc(g.Uc,"KaiOS");
a:{var E_="",F_=function(){var a=g.Uc;if(fg)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.Ls)return/Edge\/([\d\.]+)/.exec(a);if(g.we)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.ye)return/WebKit\/(\S+)/.exec(a);if(g.gg)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
F_&&(E_=F_?F_[1]:"");if(g.we){var G_=Ud();if(null!=G_&&G_>parseFloat(E_)){D_=String(G_);break a}}D_=E_}var Vd=D_,Maa={},H_;if(g.A.document&&g.we){var RDa=Ud();H_=RDa?RDa:parseInt(Vd,10)||void 0}else H_=void 0;var Naa=H_;try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var Oaa=!g.we||g.Yd(9),Paa=!fg&&!g.we||g.we&&g.Yd(9)||fg&&g.Xd("1.9.1");g.we&&g.Xd("9");var Raa=g.we||g.gg||g.ye;g.k=g.ce.prototype;g.k.clone=function(){return new g.ce(this.x,this.y)};
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.ee.prototype;g.k.clone=function(){return new g.ee(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!ge(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};var pe={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=he.prototype;g.k.getElementsByTagName=function(a,b){return(b||this.i).getElementsByTagName(String(a))};
g.k.ya=function(a){return g.oe(a,this.i)};
g.k.createElement=function(a){return Ae(this.i,a)};
g.k.createTextNode=function(a){return this.i.createTextNode(String(a))};
g.k.appendChild=function(a,b){a.appendChild(b)};
g.k.append=function(a,b){Be(ie(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.He;g.k.contains=g.Me;var uf=0,vf=0;Xe.prototype.clone=function(){return Ze(this.l,this.B,this.u-this.B)};
Xe.prototype.clear=function(){this.l=null;this.i=this.u=this.B=0;this.C=!1};
Xe.prototype.reset=function(){this.i=this.B};
Xe.prototype.advance=function(a){this.i+=a};
var Ye=[];cf.prototype.reset=function(){this.i.reset();this.l=this.u=-1};
cf.prototype.advance=function(a){this.i.advance(a)};kf.prototype.length=function(){return this.i.length};
kf.prototype.end=function(){var a=this.i;this.i=[];return a};var ID,iH;g.NC=Xc();ID=Pd()||Wc("iPod");iH=Wc("iPad");g.AD=Wc("Android")&&!(Yc()||Xc()||Wc("Opera")||Wc("Silk"));g.wB=Yc();g.es=Zc()&&!Qd();var of={},sf=null;tf.prototype.reset=function(){this.l=[];this.i.end();this.u=0};var yf="function"==typeof Uint8Array,zf=[];xf.prototype.toString=function(){return Gf(this).toString()};
xf.prototype.clone=function(){return Vaa(this)};var li;li=["av.key","js","unreleased"].slice(-1)[0];var zg=document,Qg=window;var Waa=Za(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.A.addEventListener("test",null,b)}catch(c){}return a});var Zaa=/https?:\/\/[^\/]+/,Xaa={nU:"allow-forms",oU:"allow-modals",pU:"allow-orientation-lock",qU:"allow-pointer-lock",rU:"allow-popups",sU:"allow-popups-to-escape-sandbox",tU:"allow-presentation",uU:"allow-same-origin",vU:"allow-scripts",wU:"allow-top-navigation",xU:"allow-top-navigation-by-user-activation"},bba=Za(function(){return Yaa()});g.k=Rf.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new Rf(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof Rf?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};g.k=g.Uf.prototype;g.k.clone=function(){return new g.Uf(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.ce?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.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 $f=g.Ka;var eg={};var vg=!!window.google_async_iframe_id,wg=vg&&window.parent||window;var Oba={NONE:0,HX:1};Dg.prototype.isVisible=function(){return this.gp?.3<=this.Sc:.5<=this.Sc};var gh={sV:0,WX:1},fh={NONE:0,bZ:1,sY:2};Eg.prototype.getValue=function(){return this.l};
g.v(Fg,Eg);Fg.prototype.setValue=function(a){if(null!==this.l||!g.Nb(this.u,a))return!1;this.l=a;return!0};
g.v(Gg,Eg);Gg.prototype.setValue=function(a){if(null!==this.l||"number"!==typeof a)return!1;this.l=a;return!0};
g.v(Hg,Eg);Hg.prototype.setValue=function(a){if(null!==this.l||"string"!==typeof a)return!1;this.l=a;return!0};Ig.prototype.disable=function(){this.l=!1};
Ig.prototype.enable=function(){this.l=!0};
Ig.prototype.isEnabled=function(){return this.l};
Ig.prototype.reset=function(){this.i={};this.l=!0;this.u={}};var Pba=!g.we&&!Zc();Ng.prototype.now=function(){return 0};
Ng.prototype.l=function(){return 0};
Ng.prototype.u=function(){return 0};
Ng.prototype.i=function(){return 0};g.v(Pg,Ng);Pg.prototype.now=function(){return Og()&&Qg.performance.now?Qg.performance.now():Ng.prototype.now.call(this)};
Pg.prototype.l=function(){return Og()&&Qg.performance.memory?Qg.performance.memory.totalJSHeapSize||0:Ng.prototype.l.call(this)};
Pg.prototype.u=function(){return Og()&&Qg.performance.memory?Qg.performance.memory.usedJSHeapSize||0:Ng.prototype.u.call(this)};
Pg.prototype.i=function(){return Og()&&Qg.performance.memory?Qg.performance.memory.jsHeapSizeLimit||0:Ng.prototype.i.call(this)};Sg.prototype.isVisible=function(){return 1===Rg(zg)};var lba=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/;Zg.prototype.setInterval=function(a,b){return Qg.setInterval(a,b)};
Zg.prototype.clearInterval=function(a){Qg.clearInterval(a)};
Zg.prototype.setTimeout=function(a,b){return Qg.setTimeout(a,b)};
Zg.prototype.clearTimeout=function(a){Qg.clearTimeout(a)};
La(Zg);ch.prototype.getContext=function(){if(!this.i){if(!Qg)throw Error("Context has not been set and window is undefined.");this.i=Zg.getInstance()}return this.i};
La(ch);g.Ua(dh,xf);var uba={P2:1,hN:2,l1:3};mc(ec(g.gc("https://pagead2.googlesyndication.com/pagead/osd.js")));hh.prototype.lC=function(a){if("string"===typeof a&&0!=a.length){var b=this.featureSet;if(b.l){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=d[0];d=1<d.length?parseInt(d[1],10):1;isNaN(d)||(e=b.i[e])&&e.setValue(d)}}}};
La(hh);var I_=null;var nh=g.A.performance,SDa=!!(nh&&nh.mark&&nh.measure&&nh.clearMarks),lh=Za(function(){var a;if(a=SDa){var b;if(null===I_){I_="";try{a="";try{a=g.A.top.location.hash}catch(c){a=g.A.location.hash}a&&(I_=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=I_;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
mh.prototype.disable=function(){this.i=!1;this.events!=this.l.google_js_reporting_queue&&(lh()&&g.zb(this.events,oh),this.events.length=0)};
mh.prototype.start=function(a,b){if(!this.i)return null;a=new wba(a,b);b="goog_"+a.label+"_"+a.uniqueId+"_start";nh&&lh()&&nh.mark(b);return a};
mh.prototype.end=function(a){if(this.i&&"number"===typeof a.value){a.duration=(kh()||jh())-a.value;var b="goog_"+a.label+"_"+a.uniqueId+"_end";nh&&lh()&&nh.mark(b);!this.i||2048<this.events.length||this.events.push(a)}};uh.prototype.FB=function(a,b,c,d,e){e=e||this.hG;try{var f=new Wf;f.i.push(1);f.l[1]=Xf("context",a);b.error&&b.meta&&b.id||(b=new vh(wh(b)));if(b.msg){var h=b.msg.substring(0,512);f.i.push(2);f.l[2]=Xf("msg",h)}var l=b.meta||{};if(this.Iz)try{this.Iz(l)}catch(r){}if(d)try{d(l)}catch(r){}b=[l];f.i.push(3);f.l[3]=b;var m=Vg();if(m.l){var n=m.l.url||"";f.i.push(4);f.l[4]=Xf("top",n)}var p=[{url:m.i.url||""},{url:m.i.url?yd(m.i.url):""}];f.i.push(5);f.l[5]=p;ih(this.i,e,f,!1,c)}catch(r){try{ih(this.i,
e,{context:"ecmserr",rctx:a,msg:wh(r),url:m&&m.i.url},!1,c)}catch(t){}}return this.PC};
g.v(vh,If);var qh,yh,ph=new mh;(function(){qh=new vba;yh=new uh;var a=Ag();a&&a.document&&("complete"==a.document.readyState?Ah():ph.i&&Kf(a,"load",function(){Ah()}))})();var yba=Date.now(),Hh=-1,Fh=-1,rj,Ih=-1,Gh=!1;var Mk={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},nj={cN:"start",OK:"firstquartile",YM:"midpoint",eN:"thirdquartile",JK:"complete",XM:"metric",PAUSE:"pause",aN:"resume",bN:"skip",gN:"viewable_impression",ZM:"mute",fN:"unmute",PK:"fullscreen",NK:"exitfullscreen",IK:"bufferstart",HK:"bufferfinish",QK:"fully_viewable_audible_half_duration_impression",WM:"measurable_impression",FK:"abandon",MK:"engagedview",RK:"impression",KK:"creativeview",VM:"loaded",V2:"progress",CLOSE:"close",
jV:"collapse",k2:"overlay_resize",l2:"overlay_unmeasurable_impression",m2:"overlay_unviewable_impression",o2:"overlay_viewable_immediate_impression",n2:"overlay_viewable_end_of_session_impression",LK:"custom_metric_viewable",e2:"verification_debug"},bda="start firstquartile midpoint thirdquartile resume loaded".split(" "),cda=["start","firstquartile","midpoint","thirdquartile"],eca=["abandon"],fk={UNKNOWN:-1,cN:0,OK:1,YM:2,eN:3,JK:4,XM:5,PAUSE:6,aN:7,bN:8,gN:9,ZM:10,fN:11,PK:12,NK:13,QK:14,WM:15,
FK:16,MK:17,RK:18,KK:19,VM:20,LK:21,IK:22,HK:23};var Aba={bU:"addEventListener",uY:"getMaxSize",vY:"getScreenSize",wY:"getState",xY:"getVersion",j3:"removeEventListener",iZ:"isViewable"};if(zg&&zg.URL){var TDa,Qf=zg.URL;TDa=!!Qf&&0<aba().length;yh.PC=!TDa};Th.prototype.update=function(a){a&&a.document&&(this.J=Cg(!1,a,this.isMobileDevice),this.i=Cg(!0,a,this.isMobileDevice),Vh(this,a),Uh(this,a))};
La(Th);Xh.prototype.cancel=function(){$g().clearTimeout(this.i);this.i=null};
Xh.prototype.schedule=function(){var a=this;this.i=$g().setTimeout(eh(hh.getInstance().i.i,Ch(143,function(){a.l++;a.u.TD()})),zba())};g.k=Yh.prototype;g.k.RD=function(){return this.tv()};
g.k.tv=function(){return!1};
g.k.initialize=function(){return this.Me=!0};
g.k.Rq=function(){return this.i.va};
g.k.Lt=function(){return this.i.W};
g.k.getName=function(){return this.i.Ga};
g.k.Pm=function(){return this.i.DG()};
g.k.DG=function(){return{}};
g.k.Jl=function(){return this.i.J};
g.k.PD=function(){var a=Th.getInstance();a.i=Cg(!0,this.Ig,a.isMobileDevice)};
g.k.QD=function(){Uh(Th.getInstance(),this.Ig)};
g.k.SK=function(){Vh(Th.getInstance(),this.Ig)};
g.k.KG=function(){return this.u.i};
g.k.TD=function(){};
g.k.isActive=function(){return this.i.C};
g.k.Zq=function(a){var b=this.i,c=a.Jl();this.i=c>=this.J?a:this;b!==this.i?(this.C=this.i.C,Zh(this)):this.C!==this.i.C&&(this.C=this.i.C,Zh(this))};
g.k.Ym=function(a){if(a.l===this.i){var b;if(!(b=this.Da)){b=this.u;var c=this.L;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.u==a.u)b=b.i,c=a.i,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;b=!c}this.u=a;b&&di(this)}};
g.k.Rk=function(){return this.L};
g.k.dispose=function(){this.ra=!0};
g.k.Ha=function(){return this.ra};g.k=ei.prototype;g.k.Sy=function(){return!0};
g.k.Zr=function(){};
g.k.dispose=function(){if(!this.Ha()){var a=this.l;g.kb(a.B,this);a.L&&this.Rk()&&ci(a);this.Zr();this.X=!0}};
g.k.Ha=function(){return this.X};
g.k.Pm=function(){return this.l.Pm()};
g.k.Jl=function(){return this.l.Jl()};
g.k.Rq=function(){return this.l.Rq()};
g.k.Lt=function(){return this.l.Lt()};
g.k.Zq=function(){};
g.k.Ym=function(){this.zm()};
g.k.Rk=function(){return this.ra};g.k=fi.prototype;g.k.Jl=function(){return this.i.Jl()};
g.k.Rq=function(){return this.i.Rq()};
g.k.Lt=function(){return this.i.Lt()};
g.k.create=function(a,b,c){var d=null;this.i&&(d=this.uv(a,b,c),ai(this.i,d));return d};
g.k.SD=function(){return this.ds()};
g.k.ds=function(){return!1};
g.k.init=function(a){return this.i.initialize()?(ai(this.i,this),this.B=a,!0):!1};
g.k.Zq=function(a){0==a.Jl()&&this.B(a.Rq(),this)};
g.k.Ym=function(){};
g.k.Rk=function(){return!1};
g.k.dispose=function(){this.C=!0};
g.k.Ha=function(){return this.C};
g.k.Pm=function(){return{}};ii.prototype.add=function(a,b,c){++this.u;var d=this.u/4096,e=this.i,f=e.push;a=new gi(a,b,c);d=new gi(a.l,a.i,a.u+d);f.call(e,d);this.l=!0;return this};mi.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=ki(this.i);0<b.length&&(a+="?"+b);return a};La(ti);g.F.prototype.di=!1;g.F.prototype.Ha=function(){return this.di};
g.F.prototype.dispose=function(){this.di||(this.di=!0,this.oa())};
g.F.prototype.oa=function(){if(this.Ih)for(;this.Ih.length;)this.Ih.shift()()};xi.prototype.update=function(a,b,c){a&&(this.i+=b,this.l+=b,this.B+=b,this.u=Math.max(this.u,this.B));if(void 0===c?!a:c)this.B=0};var Iba=[1,.75,.5,.3,0];yi.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.l.length;e++){var h=this.l[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.i[e].update(f&&l,d,!f||h)}};Hi.prototype.update=function(a,b,c,d){this.J=-1!=this.J?Math.min(this.J,b.Sc):b.Sc;this.Y=Math.max(this.Y,b.Sc);this.ra=-1!=this.ra?Math.min(this.ra,b.Dh):b.Dh;this.Ca=Math.max(this.Ca,b.Dh);this.Ya.update(b.Dh,c.Dh,b.i,a,d);this.l.update(b.Sc,c.Sc,b.i,a,d);c=d||c.gp!=b.gp?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.i;this.Ga.update(c,a,b)};
Hi.prototype.ip=function(){return this.Ga.u>=this.Sa};var UDa=new Rf(0,0,0,0);var Nba=new Rf(0,0,0,0);g.v(Li,g.F);g.k=Li.prototype;g.k.oa=function(){this.fh.i&&(this.Ko.OB&&(Lf(this.fh.i,"mouseover",this.Ko.OB),this.Ko.OB=null),this.Ko.MB&&(Lf(this.fh.i,"mouseout",this.Ko.MB),this.Ko.MB=null));this.Pu&&this.Pu.dispose();this.pd&&this.pd.dispose();delete this.bx;delete this.HB;delete this.mK;delete this.fh.on;delete this.fh.i;delete this.Ko;delete this.Pu;delete this.pd;delete this.featureSet;g.F.prototype.oa.call(this)};
g.k.Rm=function(){return this.pd?this.pd.i:this.position};
g.k.lC=function(a){hh.getInstance().lC(a)};
g.k.Rk=function(){return!1};
g.k.xw=function(){return new Hi};
g.k.ih=function(){return this.bx};
g.k.GG=function(a){return Oi(this,a,1E4)};
g.k.Ja=function(a,b,c,d,e,f,h){this.lr||(this.Yv&&(a=this.Mz(a,c,e,h),d=d&&this.zf.Sc>=(this.gp()?.3:.5),this.uD(f,a,d),this.lastUpdateTime=b,0<a.Sc&&-1===this.bK&&(this.bK=b),-1==this.cK&&this.ip()&&(this.cK=b),-2==this.DB&&(this.DB=Ji(this.Rm())?a.Sc:-1),this.zf=a),this.HB(this))};
g.k.uD=function(a,b,c){this.ih().update(a,b,this.zf,c)};
g.k.MA=function(){return new Dg};
g.k.Mz=function(a,b,c,d){c=this.MA();c.i=b;b=$g().l;b=0===Rg(zg)?-1:b.isVisible()?0:1;c.l=b;c.Sc=this.dA(a);c.gp=this.gp();c.Dh=d;return c};
g.k.dA=function(a){return 0===this.opacity&&1===Lg(this.featureSet,"opac")?0:a};
g.k.gp=function(){return!1};
g.k.Vx=function(){return this.QO||this.TO};
g.k.jx=function(){};
g.k.NB=function(){};
g.k.Ek=function(){return 0};
g.k.ip=function(){return this.bx.ip()};var Qi="StopIteration"in g.A?g.A.StopIteration:{message:"StopIteration",stack:""};Pi.prototype.next=function(){throw Qi;};
Pi.prototype.ul=function(){return this};g.v(Ti,Dg);Wi.prototype.getValue=function(){return this.l};
Wi.prototype.update=function(a,b){32<=a||(this.i&1<<a&&!b?this.l&=~(1<<a):this.i&1<<a||!b||(this.l|=1<<a),this.i|=1<<a)};g.v(Xi,Hi);
Xi.prototype.update=function(a,b,c,d){if(!b.paused){Hi.prototype.update.call(this,a,b,c,d);var e=d?Math.min(b.Sc,c.Sc):c.Sc,f=Ui(b)&&Ui(c);e=.5<=e;Rh(b.volume)&&(this.B=-1!=this.B?Math.min(this.B,b.volume):b.volume,this.I=Math.max(this.I,b.volume));e&&(this.va+=a,this.W+=f?a:0);this.i.update(b.Sc,c.Sc,b.i,a,d,f);this.u.update(!0,a);this.C.update(f,a);this.X.update(c.fullscreen,a);this.Xa.update(f&&!e,a);a=Math.floor(b.mediaTime/1E3);this.Aa.update(a,b.isVisible());this.Ra.update(a,1<=b.Sc);this.Ma.update(a,
Ui(b))}};g.v($i,Zba);$i.prototype.B=function(){return!0};
$i.prototype.C=function(){return!1};
$i.prototype.getId=function(){var a=this,b=Ob(nj,function(c){return c==a.l});
return fk[b].toString()};
$i.prototype.toString=function(){var a="";this.C()&&(a+="c");this.i&&(a+="s");0<this.u&&(a+=":"+this.u);return this.getId()+a};g.v(cj,ei);g.k=cj.prototype;g.k.Oz=function(){if(this.element){var a=this.element,b=this.l.i.Ig;try{try{var c=Ph(a.getBoundingClientRect())}catch(n){c=new Rf(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=pg(a,b),h=f.x,l=f.y;var m=new Rf(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=UDa.clone()}this.i=m}};
g.k.DF=function(){this.B=this.l.u.i};
g.k.lH=function(a){var b=1==Lg(this.featureSet,"od");return Mba(a,this.B,this.element,b)};
g.k.EF=function(){this.timestamp=Eh()};
g.k.zm=function(){this.EF();this.Oz();if(1===Lg(hh.getInstance().featureSet,"vcm")&&this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element,b=new g.ee(a.videoWidth,a.videoHeight);this.Y=this.i;a=this.i;var c=Sf(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.i=a}this.DF();a=this.i;c=this.B;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new Rf(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 Rf(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new Rf(0,0,0,0):a;a=this.l.u;b=e=d=0;0<(this.i.bottom-this.i.top)*(this.i.right-this.i.left)&&(this.lH(c)?c=new Rf(0,0,0,0):(d=Th.getInstance().B,b=new Rf(0,d.height,d.width,0),d=Ki(c,this.i),e=Ki(c,Th.getInstance().i),
b=Ki(c,b)));c=c.top>=c.bottom||c.left>=c.right?new Rf(0,0,0,0):Tf(c,-this.i.left,-this.i.top);Wh()||(e=d=0);this.J=new Kh(a,this.i,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.l.getName()};var VDa=new Rf(0,0,0,0);g.v(dj,cj);g.k=dj.prototype;g.k.Sy=function(){this.u();return!0};
g.k.Ym=function(){cj.prototype.zm.call(this)};
g.k.EF=function(){};
g.k.Oz=function(){};
g.k.zm=function(){this.u();cj.prototype.zm.call(this)};
g.k.Zq=function(a){a=a.isActive();a!==this.I&&(a?this.u():(Th.getInstance().i=new Rf(0,0,0,0),this.i=new Rf(0,0,0,0),this.B=new Rf(0,0,0,0),this.timestamp=-1));this.I=a};var J_={},dca=(J_.firstquartile=0,J_.midpoint=1,J_.thirdquartile=2,J_.complete=3,J_);g.v(fj,Li);g.k=fj.prototype;g.k.Rk=function(){return!0};
g.k.GG=function(a){return Oi(this,a,Math.max(1E4,this.u/3))};
g.k.Ja=function(a,b,c,d,e,f,h){var l=this,m=this.L(this)||{};g.Xb(m,e);this.u=m.duration||this.u;this.W=m.isVpaid||this.W;this.Da=m.isYouTube||this.Da;e=$ba(this,b);1===jj(this)&&(f=e);Li.prototype.Ja.call(this,a,b,c,d,m,f,h);this.pp&&this.pp.i&&g.zb(this.I,function(n){n.i||(n.i=bj(n,l))})};
g.k.uD=function(a,b,c){Li.prototype.uD.call(this,a,b,c);ij(this).update(a,b,this.zf,c);this.Sa=Ui(this.zf)&&Ui(b);-1==this.Ca&&this.Ra&&(this.Ca=this.ih().u.i);this.tf.u=0;a=this.ip();b.isVisible()&&Vi(this.tf,"vs");a&&Vi(this.tf,"vw");Rh(b.volume)&&Vi(this.tf,"am");Ui(b)&&Vi(this.tf,"a");this.dr&&Vi(this.tf,"f");-1!=b.l&&(Vi(this.tf,"bm"),1==b.l&&Vi(this.tf,"b"));Ui(b)&&b.isVisible()&&Vi(this.tf,"avs");this.Sa&&a&&Vi(this.tf,"avw");0<b.Sc&&Vi(this.tf,"pv");kj(this,this.ih().u.i,!0)&&Vi(this.tf,"gdr");
2E3<=Ei(this.ih().l,1)&&Vi(this.tf,"pmx")};
g.k.xw=function(){return new Xi};
g.k.ih=function(){return this.bx};
g.k.MA=function(){return new Ti};
g.k.Mz=function(a,b,c,d){a=Li.prototype.Mz.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.dr;a.paused=2==this.mf;a.volume=c.volume;Rh(a.volume)||(this.Ya++,b=this.zf,Rh(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.dA=function(a){return Th.getInstance(),this.dr?1:Li.prototype.dA.call(this,a)};
g.k.Ek=function(){return 1};
g.k.getDuration=function(){return this.u};var WDa=g.Ta();var wj={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},nca=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;xj.prototype.reset=function(){this.i=[];this.l=[]};
La(xj);var Aj=xj.getInstance();La(Hj);g.v(Jj,fi);g.k=Jj.prototype;g.k.getName=function(){return(this.l?this.l:this.i).getName()};
g.k.Pm=function(){return(this.l?this.l:this.i).Pm()};
g.k.Jl=function(){return(this.l?this.l:this.i).Jl()};
g.k.init=function(a){var b=!1;(0,g.zb)(this.u,function(c){c.initialize()&&(b=!0)});
b&&(this.B=a,ai(this.i,this));return b};
g.k.dispose=function(){(0,g.zb)(this.u,function(a){a.dispose()});
fi.prototype.dispose.call(this)};
g.k.SD=function(){return Sh(this.u,function(a){return a.RD()})};
g.k.ds=function(){return Sh(this.u,function(a){return a.tv()})};
g.k.uv=function(a,b,c){return new cj(a,this.i,b,c)};
g.k.Ym=function(a){this.l=a.l};var sca={threshold:[0,.3,.5,.75,1]};g.v(Kj,cj);g.k=Kj.prototype;g.k.Sy=function(){var a=this;this.W||(this.W=Eh());if(Bh(298,function(){return tca(a)}))return!0;
$h(this.l,"msf");return!1};
g.k.Zr=function(){if(this.u&&this.element)try{this.u.unobserve(this.element),this.I?(this.I.unobserve(this.element),this.I=null):this.C&&(this.C.disconnect(),this.C=null)}catch(a){}};
g.k.zm=function(){var a=Lj(this);0<a.length&&Mj(this,a);cj.prototype.zm.call(this)};
g.k.Oz=function(){};
g.k.lH=function(){return!1};
g.k.DF=function(){};
g.k.Pm=function(){var a={};return Object.assign(this.l.Pm(),(a.niot_obs=this.W,a.niot_cbk=this.L,a))};
g.k.getName=function(){return"nio"};g.v(Nj,fi);Nj.prototype.getName=function(){return"nio"};
Nj.prototype.ds=function(){return!Th.getInstance().l&&null!=this.i.i.Ig.IntersectionObserver};
Nj.prototype.uv=function(a,b,c){return new Kj(a,this.i,b,c)};g.v(Pj,Yh);Pj.prototype.KG=function(){return Th.getInstance().i};
Pj.prototype.tv=function(){var a=Oj();this.J!==a&&(this.i!=this&&a>this.i.J&&(this.i=this,Zh(this)),this.J=a);return 2==a};
La(Pj);La(Qj);Rj.prototype.TD=function(){Uj(this,Ej(),!1)};
Rj.prototype.B=function(){var a=Wh(),b=Eh();a?(Gh||(Hh=b,g.zb(Aj.i,function(c){var d=c.ih();d.Da=Yi(d,b,1!=c.mf)})),Gh=!0):(this.J=Wj(this,b),Gh=!1,rj=b,g.zb(Aj.i,function(c){c.Yv&&(c.ih().L=b)}));
Uj(this,Ej(),!a)};
La(Rj);var Sj=Rj.getInstance();var Xj=null,Fk="",Ek=!1;var K_=dk([void 0,1,2,3,4,8,16]),L_=dk([void 0,4,8,16]),XDa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:ck("p0",L_),p1:ck("p1",L_),p2:ck("p2",L_),p3:ck("p3",L_),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:bk("mtos1",[0,2,4],!1,L_),mtos2:bk("mtos2",[0,2,4],!1,L_),mtos3:bk("mtos3",[0,2,4],!1,L_),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:ck("a0",L_),a1:ck("a1",L_),a2:ck("a2",L_),a3:ck("a3",L_),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:ck("c0",L_),c1:ck("c1",L_),c2:ck("c2",L_),c3:ck("c3",L_),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:ck("qmtos",K_),qnc:ck("qnc",K_),qmv:ck("qmv",K_),qnv:ck("qnv",K_),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:ck("ss0",L_),ss1:ck("ss1",L_),ss2:ck("ss2",L_),ss3:ck("ss3",L_),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},YDa={c:Yj("c"),
at:"at",atos:bk("atos",[0,2,4]),ta:function(a,b){return function(c){if(void 0===c[a])return b}}("tth","1"),
a:"a",dur:"dur",p:"p",tos:ak(),j:"dom",mtos:bk("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:Yj("ss"),vsv:Ya("w2"),t:"t"},ZDa={atos:"atos",avt:bk("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:Yj("ss"),t:"t"},$Da={a:"a",tos:ak(),at:"at",c:Yj("c"),mtos:bk("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:Ya("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},aEa={tos:ak(),at:"at",c:Yj("c"),mtos:bk("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:Ya("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:bk("qmtos",
[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return g.Oc(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};var Bca={YX:"visible",EU:"audible",y4:"time",z4:"timetype"},ik={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},
audible:function(a){return"0"==a||"1"==a},
timetype:function(a){return"mtos"==a||"tos"==a},
time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};g.v(jk,$i);jk.prototype.getId=function(){return this.I};
jk.prototype.C=function(){return!0};
jk.prototype.B=function(a){var b=a.ih(),c=a.getDuration();return Sh(this.J,function(d){if(void 0!=d.i)var e=Dca(d,b);else b:{switch(d.C){case "mtos":e=d.l?b.C.u:b.u.i;break b;case "tos":e=d.l?b.C.i:b.u.i;break b}e=0}0==e?d=!1:(d=-1!=d.u?d.u:void 0!==c&&0<c?d.B*c:-1,d=-1!=d&&e>=d);return d})};g.v(kk,$i);kk.prototype.B=function(a){var b=Ci(a.ih().i,1);return kj(a,b)};g.v(lk,$i);lk.prototype.B=function(a){return a.ih().ip()};g.v(ok,Eca);ok.prototype.i=function(a){var b=new mk;b.i=nk(a,XDa);b.u=nk(a,ZDa);return b};g.v(pk,dj);pk.prototype.u=function(){var a=g.Ja("ima.admob.getViewability"),b=Lg(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
pk.prototype.getName=function(){return"gsv"};g.v(qk,fi);qk.prototype.getName=function(){return"gsv"};
qk.prototype.ds=function(){var a=Th.getInstance();hh.getInstance();return a.l&&!1};
qk.prototype.uv=function(a,b,c){return new pk(this.i,b,c)};g.v(rk,dj);rk.prototype.u=function(){var a=this,b=g.Ja("ima.bridge.getNativeViewability"),c=Lg(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Qb(d)&&a.C++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.i=Qh(d.opt_nativeViewBounds||{});var h=a.l.u;h.i=f?VDa.clone():Qh(e);a.timestamp=d.opt_nativeTime||-1;Th.getInstance().i=h.i;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
rk.prototype.getName=function(){return"nis"};g.v(sk,fi);sk.prototype.getName=function(){return"nis"};
sk.prototype.ds=function(){var a=Th.getInstance();hh.getInstance();return a.l&&!1};
sk.prototype.uv=function(a,b,c){return new rk(this.i,b,c)};g.v(tk,Yh);g.k=tk.prototype;g.k.tv=function(){return null!=this.l.tj};
g.k.DG=function(){var a={};this.Ca&&(a.mraid=this.Ca);this.Y&&(a.mlc=1);a.mtop=this.l.jT;this.I&&(a.mse=this.I);this.Aa&&(a.msc=1);a.mcp=this.l.compatibility;return a};
g.k.Hn=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];try{return this.l.tj[a].apply(this.l.tj,c)}catch(e){Dh(538,e,.01,function(f){f.method=a})}};
g.k.initialize=function(){var a=this;if(this.Me)return!this.Lt();this.Me=!0;if(2===this.l.compatibility)return this.I="ng",$h(this,"w"),!1;if(1===this.l.compatibility)return this.I="mm",$h(this,"w"),!1;Th.getInstance().L=!0;this.Ig.document.readyState&&"complete"==this.Ig.document.readyState?xk(this):Nh(this.Ig,"load",function(){$g().setTimeout(Ch(292,function(){return xk(a)}),100)},292);
return!0};
g.k.PD=function(){var a=Th.getInstance(),b=Ak(this,"getMaxSize");a.i=new Rf(0,b.width,b.height,0)};
g.k.QD=function(){Th.getInstance().B=Ak(this,"getScreenSize")};
g.k.dispose=function(){yk(this);Yh.prototype.dispose.call(this)};
La(tk);g.k=Bk.prototype;g.k.Ws=function(a){Mi(a,!1);pca(a)};
g.k.Cw=function(){};
g.k.Au=function(a,b,c,d){var e=this;this.l||(this.l=this.XF());b=c?b:-1;a=null==this.l?new fj(Qg,a,b,7):new fj(Qg,a,b,7,new $i("measurable_impression",this.l),Kca(this));a.hg=d;iba(a.featureSet);Kg(a.featureSet,"queryid",a.hg);a.lC("");Sba(a,function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];return e.QG.apply(e,g.ma(h))},function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];
return e.xO.apply(e,g.ma(h))});
(d=Hj.getInstance().i)&&Ni(a,d);a.fh.on&&Qj.getInstance();return a};
g.k.Zq=function(a){switch(a.Jl()){case 0:if(a=Hj.getInstance().i)a=a.i,g.kb(a.B,this),a.L&&this.Rk()&&ci(a);Dk();break;case 2:Tj()}};
g.k.Ym=function(){};
g.k.Rk=function(){return!1};
g.k.xO=function(a,b){a.lr=!0;switch(a.Ek()){case 1:Jk(this,a,b);break;case 2:this.vC(a)}this.DC()};
g.k.FO=function(a){mj(a,0);return pj(a,"start",Wh())};
g.k.Sr=function(a,b,c){Uj(Sj,[a],!Wh());return this.Um(a,b,c)};
g.k.Um=function(a,b,c){return pj(a,c,Wh())};
g.k.AO=function(a){return Kk(a,"firstquartile",1)};
g.k.CO=function(a){a.Ra=!0;return Kk(a,"midpoint",2)};
g.k.GO=function(a){return Kk(a,"thirdquartile",3)};
g.k.yO=function(a){var b=Kk(a,"complete",4);gj(a);return b};
g.k.HJ=function(a,b,c){b=Wh();2!=a.mf||b||(a.ih().L=Eh());Uj(Sj,[a],!b);2==a.mf&&(a.mf=1);return pj(a,c,b)};
g.k.EO=function(a,b){b=this.Sr(a,b||{},"skip");gj(a);return b};
g.k.BO=function(a,b){Mi(a,!0);return this.Sr(a,b||{},"fullscreen")};
g.k.zO=function(a,b){Mi(a,!1);return this.Sr(a,b||{},"exitfullscreen")};
g.k.hC=function(a,b,c){b=a.ih();b.Da=Yi(b,Eh(),1!=a.mf);Uj(Sj,[a],!Wh());1==a.mf&&(a.mf=2);return pj(a,c,Wh())};
g.k.DO=function(a){Uj(Sj,[a],!Wh());return a.l()};
g.k.cB=function(a){Uj(Sj,[a],!Wh());this.DJ(a);gj(a);return a.l()};
g.k.QG=function(){};
g.k.vC=function(){};
g.k.DJ=function(){};
g.k.UD=function(){};
g.k.DC=function(){};
g.k.XF=function(){};var Pk=g.Ta(),Rk=!1,Sk=!1,Tk=!1,Rca=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return Qk(0)},
function(a){return!!a.ActiveXObject},
function(a){return!!a.chrome},
function(a){return!!a.navigator.serviceWorker},
function(a){return!!a.opera},
function(a){return!!a.sidebar},
function(){return!+"\v1"},
function(){return Qk(1)},
function(a){return!a.ActiveXObject},
function(a){return"-ms-ime-align"in a.document.documentElement.style},
function(a){return"-ms-scroll-limit"in a.document.documentElement.style},
function(a){return"-webkit-font-feature-settings"in a.document.body.style},
function(){return Qk(2)},
function(a){return"ActiveXObject"in a},
function(a){return"MozAppearance"in a.document.documentElement.style},
function(a){return"_phantom"in a},
function(a){return"callPhantom"in a},
function(a){return"content"in a.document.createElement("template")},
function(a){return"getEntriesByType"in a.performance},
function(){return Qk(3)},
function(a){return"image-rendering"in a.document.body.style},
function(a){return"object-fit"in a.document.body.style},
function(a){return"open"in a.document.createElement("details")},
function(a){return"orientation"in a.screen},
function(a){return"performance"in a},
function(a){return"shape-image-threshold"in a.document.body.style},
function(){return Qk(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return Sk},
function(){return Tk},
function(){return Qk(5)},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="-webkit-min-content";a.style.width="min-content";return"1px"!=a.style.width},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="calc(1px - 1px)";a.style.width="-webkit-calc(1px - 1px)";return"1px"!=a.style.width},
function(){var a=!1;eval('var DummyFunction1 = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{DummyFunction1()}catch(b){a=!0}return a},
function(){var a=!1;try{DummyFunction2()}catch(b){a=!0}return a},
function(){return!1},
function(){return Qk(6)},
function(a){var b=a.document.createElement("canvas");b.width=b.height=1;b=b.getContext("2d");b.globalCompositeOperation="multiply";b.fillStyle="rgb(0,255,255)";b.fillRect(0,0,1,1);b.fill();b.fillStyle="rgb(255,255,0)";b.fillRect(0,0,1,1);b.fill();b=b.getImageData(0,0,1,1).data;return b[0]==b[2]&&b[1]==b[3]||Ok(a.navigator.vibrate)},
function(a){a=a.document.createElement("canvas");a.width=a.height=1;a=a.getContext("2d");a.globalCompositeOperation="multiply";a.fillStyle="rgb(0,255,255)";a.fillRect(0,0,1,1);a.fill();a.fillStyle="rgb(255,255,0)";a.fillRect(0,0,1,1);a.fill();a=a.getImageData(0,0,1,1).data;return a[0]==a[2]&&a[1]==a[3]},
function(a){a=a.document.createElement("div");return Ok(a.matches)},
function(a){a=a.document.createElement("input");a.setAttribute("type","range");return"text"!==a.type},
function(a){return a.CSS.supports("image-rendering","pixelated")},
function(a){return a.CSS.supports("object-fit","contain")},
function(){return Qk(7)},
function(a){return a.CSS.supports("object-fit","inherit")},
function(a){return a.CSS.supports("shape-image-threshold","0.9")},
function(a){return a.CSS.supports("word-break","keep-all")},
function(){return eval("1 == [for (item of [1,2,3]) item][0]")},
function(a){return Ok(a.CSS.supports)},
function(){return Ok(Intl.Collator)},
function(a){return Ok(a.document.createElement("dialog").show)},
function(){return Qk(8)},
function(a){return Ok(a.document.createElement("div").animate([{transform:"scale(1)",easing:"ease-in"},{transform:"scale(1.3)",easing:"ease-in"}],{duration:1300,iterations:1}).reverse)},
function(a){return Ok(a.document.createElement("div").animate)},
function(a){return Ok(a.document.documentElement.webkitRequestFullScreen)},
function(a){return Ok(a.navigator.getBattery)},
function(a){return Ok(a.navigator.permissions.query)},
function(){return!1},
function(){return Qk(9)},
function(){return Ok(webkitRequestAnimationFrame)},
function(a){return Ok(a.BroadcastChannel.call)},
function(a){return Ok(a.FontFace)},
function(a){return Ok(a.Gamepad)},
function(){return Qk(10)},
function(a){return Ok(a.MutationEvent)},
function(a){return Ok(a.MutationObserver)},
function(a){return Ok(a.crypto.getRandomValues)},
function(a){return Ok(a.document.body.createShadowRoot)},
function(a){return Ok(a.document.body.webkitCreateShadowRoot)},
function(a){return Ok(a.fetch)},
function(){return Qk(11)},
function(a){return Ok(a.navigator.serviceWorker.register)},
function(a){return Ok(a.navigator.webkitGetGamepads)},
function(a){return Ok(a.speechSynthesis.speak)},
function(a){return Ok(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return Qk(12)},
function(a){return a.CSS.supports("cursor","grab")},
function(a){return a.CSS.supports("cursor","zoom-in")},
function(a){return a.CSS.supports("image-orientation","270deg")},
function(){return Qk(13)},
function(a){return a.CSS.supports("position","sticky")},
function(a){return void 0===a.document.createElement("style").scoped},
function(a){return a.performance.getEntriesByType("resource")instanceof Array},
function(){return"undefined"==typeof InstallTrigger},
function(){return"object"==typeof(new Intl.Collator).resolvedOptions()},
function(a){return"boolean"==typeof a.navigator.onLine},
function(){return Qk(14)},
function(a){return"undefined"==typeof a.navigator.N6},
function(a){return"number"==typeof a.performance.now()},
function(){return 0==(new Uint16Array(1))[0]},
function(a){return-1==a.ActiveXObject.toString().indexOf("native")},
function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],Sca=[function(a){a=a.document.createElement("div");
var b=null,c=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];try{a.style.behavior="url(#default#clientcaps)"}catch(e){}for(var d=0;d<c.length;d++){try{b=a.getComponentVersion(c[d],"componentid").replace(/,/g,".")}catch(e){}if(b)return b.split(".")[0]}return!1},
function(){return(new Date).getTimezoneOffset()},
function(a){return(a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth)/(a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight)},
function(a){return(a.outerWidth||a.document&&a.document.body&&a.document.body.offsetWidth)/(a.outerHeight||a.document&&a.document.body&&a.document.body.offsetHeight)},
function(a){return a.screen.availWidth/a.screen.availHeight},
function(a){return a.screen.width/a.screen.height}],Tca=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.Ua(Uk,Vca);Uk.prototype.reset=function(){this.i[0]=1732584193;this.i[1]=4023233417;this.i[2]=2562383102;this.i[3]=271733878;this.B=this.u=0};
Uk.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.l,d=this.C,e=this.u,f=0;f<b;){if(0==e)for(;f<=c;)Vk(this,a,f),f+=this.l;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.l){Vk(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.l){Vk(this,d);e=0;break}}this.u=e;this.B+=b};
Uk.prototype.digest=function(){var a=Array((56>this.u?this.l:2*this.l)-this.u);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.B;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.i[b]>>>d&255;return a};g.v(Wk,ok);Wk.prototype.i=function(a){var b=ok.prototype.i.call(this,a);var c=Pk=g.Ta();var d=Qk(5);c=(Sk?!d:d)?c|2:c&-3;d=Qk(2);c=(Tk?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.l||(this.l=Uca());b.C=this.l;b.I=nk(a,YDa,c,"h",Xk("kArwaWEsTs"));b.B=nk(a,$Da,{},"h",Xk("b96YPMzfnx"));b.l=nk(a,aEa,{},"h",Xk("yb8Wev6QDg"));return b};Yk.prototype.i=function(){return g.Ja(this.u)};g.v(Zk,Yk);Zk.prototype.i=function(a){if(!a.Br)return Yk.prototype.i.call(this,a);var b=this.l[a.Br];if(b)return function(c,d,e){b.l(c,d,e)};
Dh(393,Error());return null};g.v($k,Bk);g.k=$k.prototype;g.k.Cw=function(a,b){var c=this,d=Hj.getInstance();if(null!=d.i)switch(d.i.getName()){case "nis":var e=Zca(this,a,b);break;case "gsv":e=Yca(this,a,b);break;case "exc":e=$ca(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Nca(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Ek()&&(e.L==g.Ka&&(e.L=function(f){return c.UD(f)}),Xca(this,e,b));
return e};
g.k.UD=function(a){a.l=0;a.va=0;if("h"==a.B||"n"==a.B){var b;hh.getInstance();if(a.Br&&cl(this)){var c=this.J[a.Br];c?b=function(e){return c.i(e)}:null!==c&&Dh(379,Error())}else b=g.Ja("ima.common.getVideoMetadata");
if("function"===typeof b)try{var d=b(a.hg)}catch(e){a.l|=4}else a.l|=2}else if("b"==a.B)if(b=g.Ja("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{d=b(a.hg)}catch(e){a.l|=4}else a.l|=2;else if("ml"==a.B)if(b=g.Ja("ima.common.getVideoMetadata"),"function"===typeof b)try{d=b(a.hg)}catch(e){a.l|=4}else a.l|=2;else a.l|=1;a.l||(void 0===d?a.l|=8:null===d?a.l|=16:g.Qb(d)?a.l|=32:null!=d.errorCode&&(a.va=d.errorCode,a.l|=64));null==d&&(d={});Oca(d,a);Rh(d.volume)&&Rh(void 0)&&(d.volume*=NaN);
return d};
g.k.XF=function(){if(cl(this))return new Zk("ima.common.triggerExternalActivityEvent",this.u,this.J);var a=ada(this);return null!=a?new Yk(a,this.u):null};
g.k.vC=function(a){!a.i&&a.lr&&Ik(this,a,"overlay_unmeasurable_impression")&&(a.i=!0)};
g.k.DJ=function(a){a.RJ&&(a.ip()?Ik(this,a,"overlay_viewable_end_of_session_impression"):Ik(this,a,"overlay_unviewable_impression"),a.RJ=!1)};
g.k.QG=function(){};
g.k.DC=function(){};
g.k.Au=function(a,b,c,d){a=Bk.prototype.Au.call(this,a,b,c,d);this.C&&(b=this.I,null==a.C&&(a.C=new Uba),b.i[a.hg]=a.C,a.C.C=WDa);return a};
g.k.Ws=function(a){a&&1==a.Ek()&&this.C&&delete this.I.i[a.hg];return Bk.prototype.Ws.call(this,a)};
La($k);var al=new mk;al.C="stopped";al.i="stopped";al.u="stopped";al.I="stopped";al.B="stopped";al.l="stopped";Object.freeze(al);var bEa=zh(193,el,Lk);g.Fa("Goog_AdSense_Lidar_sendVastEvent",bEa,void 0);var cEa=Ch(194,function(a,b){b=void 0===b?{}:b;a=bl($k.getInstance(),a,b);return dl(a)});
g.Fa("Goog_AdSense_Lidar_getViewability",cEa,void 0);var dEa=zh(195,function(){return bh()},void 0);
g.Fa("Goog_AdSense_Lidar_getUrlSignalsArray",dEa,void 0);var eEa=Ch(196,function(){return g.uj(bh())});
g.Fa("Goog_AdSense_Lidar_getUrlSignalsList",eEa,void 0);var hea=(new Date).getTime();var fda={};g.k=jl.prototype;g.k.isEnabled=function(){if(!g.A.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{Xw: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.F6;d=c.cT||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.Xw}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);this.i.cookie=a+"="+b+(f?";domain="+f:"")+(h?";path="+h:"")+(0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString())+(d?";secure":"")+(null!=e?";samesite="+e:"")};
g.k.get=function(a,b){for(var c=a+"=",d=(this.i.cookie||"").split(";"),e=0,f;e<d.length;e++){f=zc(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(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,"",{Xw:0,path:b,domain:c});return d};
g.k.xi=function(){return kl(this).keys};
g.k.kh=function(){return kl(this).values};
g.k.isEmpty=function(){return!this.i.cookie};
g.k.clear=function(){for(var a=kl(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Rq=new jl("undefined"==typeof document?null:document);var xl={};var kda=function(){if(!g.A.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{g.A.addEventListener("test",g.Ka,b),g.A.removeEventListener("test",g.Ka,b)}catch(c){}return a}();g.zl.prototype.stopPropagation=function(){this.l=!0};
g.zl.prototype.preventDefault=function(){this.defaultPrevented=!0};var roa;roa=g.ye?"webkitAnimationEnd":g.gg?"oanimationend":"animationend";g.Ua(Al,g.zl);var fEa={2:"touch",3:"pen",4:"mouse"};
Al.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)?fg&&(Sd(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:fEa[a.pointerType]||"";this.state=a.state;this.i=a;a.defaultPrevented&&Al.me.preventDefault.call(this)};
Al.prototype.stopPropagation=function(){Al.me.stopPropagation.call(this);this.i.stopPropagation?this.i.stopPropagation():this.i.cancelBubble=!0};
Al.prototype.preventDefault=function(){Al.me.preventDefault.call(this);var a=this.i;a.preventDefault?a.preventDefault():a.returnValue=!1};var Bl="closure_listenable_"+(1E6*Math.random()|0);var hda=0;El.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.i++);var h=Gl(a,b,d,e);-1<h?(b=a[h],c||(b.Ov=!1)):(b=new ida(b,this.src,f,!!d,e),b.Ov=c,a.push(b));return b};
El.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Gl(e,b,c,d);return-1<b?(Dl(e[b]),g.jb(e,b),0==e.length&&(delete this.listeners[a],this.i--),!0):!1};
El.prototype.Ct=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Gl(a,b,c,d));return-1<e?a[e]:null};var Ml="closure_lm_"+(1E6*Math.random()|0),Rl={},Ol=0,Sl="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Ua(g.Tl,g.F);g.Tl.prototype[Bl]=!0;g.k=g.Tl.prototype;g.k.addEventListener=function(a,b,c,d){Il(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){Pl(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.Da;if(b){var c=[];for(var d=1;b;b=b.Da)c.push(b),++d}b=this.Sa;d=a.type||a;if("string"===typeof a)a=new g.zl(a,b);else if(a instanceof g.zl)a.target=a.target||b;else{var e=a;a=new g.zl(d,b);g.Xb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.l&&0<=f;f--){var h=a.currentTarget=c[f];e=Ul(h,d,!0,a)&&e}a.l||(h=a.currentTarget=b,e=Ul(h,d,!0,a)&&e,a.l||(e=Ul(h,d,!1,a)&&e));if(c)for(f=0;!a.l&&f<c.length;f++)h=a.currentTarget=c[f],e=Ul(h,d,!1,a)&&e;return e};
g.k.oa=function(){g.Tl.me.oa.call(this);if(this.l){var a=this.l,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,Dl(d[e]);delete a.listeners[c];a.i--}}this.Da=null};
g.k.Na=function(a,b,c,d){return this.l.add(String(a),b,!1,c,d)};
g.k.CB=function(a,b,c,d){return this.l.add(String(a),b,!0,c,d)};
g.k.hc=function(a,b,c,d){this.l.remove(String(a),b,c,d)};
g.k.Ct=function(a,b,c,d){return this.l.Ct(String(a),b,c,d)};Vl.prototype.get=function(){if(0<this.l){this.l--;var a=this.i;this.i=a.next;a.next=null}else a=this.u();return a};var Xl;$l.prototype.add=function(a,b){var c=gm.get();c.set(a,b);this.l?this.l.next=c:this.i=c;this.l=c};
$l.prototype.remove=function(){var a=null;this.i&&(a=this.i,this.i=this.i.next,this.i||(this.l=null),a.next=null);return a};
var gm=new Vl(function(){return new am},function(a){return a.reset()});
am.prototype.set=function(a,b){this.i=a;this.scope=b;this.next=null};
am.prototype.reset=function(){this.next=this.scope=this.i=null};var bm,cm=!1,dm=new $l;km.prototype.reset=function(){this.context=this.onRejected=this.l=this.i=null;this.u=!1};
var lm=new Vl(function(){return new km},function(a){a.reset()});
jm.prototype.then=function(a,b,c){return tm(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
jm.prototype.$goog_Thenable=!0;jm.prototype.cancel=function(a){if(0==this.bb){var b=new zm(a);g.em(function(){vm(this,b)},this)}};
jm.prototype.FT=function(a){this.bb=0;im(this,2,a)};
jm.prototype.GT=function(a){this.bb=0;im(this,3,a)};
jm.prototype.UN=function(){for(var a;a=wm(this);)xm(this,a,this.bb,this.Gn);this.yA=!1};
var Bm=Zl;g.Ua(zm,Wa);zm.prototype.name="cancel";g.Ua(g.Cm,g.Tl);g.k=g.Cm.prototype;g.k.enabled=!1;g.k.Cb=null;g.k.setInterval=function(a){this.zg=a;this.Cb&&this.enabled?(this.stop(),this.start()):this.Cb&&this.stop()};
g.k.uT=function(){if(this.enabled){var a=g.Ta()-this.xH;0<a&&a<.8*this.zg?this.Cb=this.Wu.setTimeout(this.AF,this.zg-a):(this.Cb&&(this.Wu.clearTimeout(this.Cb),this.Cb=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.Cb||(this.Cb=this.Wu.setTimeout(this.AF,this.zg),this.xH=g.Ta())};
g.k.stop=function(){this.enabled=!1;this.Cb&&(this.Wu.clearTimeout(this.Cb),this.Cb=null)};
g.k.oa=function(){g.Cm.me.oa.call(this);this.stop();delete this.Wu};g.k=g.Fm.prototype;g.k.kh=function(){Hm(this);for(var a=[],b=0;b<this.i.length;b++)a.push(this.l[this.i[b]]);return a};
g.k.xi=function(){Hm(this);return this.i.concat()};
g.k.isEmpty=function(){return 0==this.u};
g.k.clear=function(){this.l={};this.Nn=this.u=this.i.length=0};
g.k.remove=function(a){return Gm(this.l,a)?(delete this.l[a],this.u--,this.Nn++,this.i.length>2*this.u&&Hm(this),!0):!1};
g.k.get=function(a,b){return Gm(this.l,a)?this.l[a]:b};
g.k.set=function(a,b){Gm(this.l,a)||(this.u++,this.i.push(a),this.Nn++);this.l[a]=b};
g.k.forEach=function(a,b){for(var c=this.xi(),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.Fm(this)};
g.k.ul=function(a){Hm(this);var b=0,c=this.Nn,d=this,e=new Pi;e.next=function(){if(c!=d.Nn)throw Error("The map has changed since the iterator was created");if(b>=d.i.length)throw Qi;var f=d.i[b++];return a?f:d.l[f]};
return e};g.Im.prototype.toString=function(){var a=[],b=this.B;b&&a.push(Pm(b,gEa,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.L)&&a.push(Pm(b,gEa,!0),"@"),a.push(ld(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.u,null!=c&&a.push(":",String(c));if(c=this.getPath())this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(Pm(c,"/"==c.charAt(0)?hEa:iEa,!0));(c=this.l.toString())&&a.push("?",c);(c=this.C)&&a.push("#",Pm(c,jEa));return a.join("")};
g.Im.prototype.resolve=function(a){var b=this.clone(),c=!!a.B;c?g.Jm(b,a.B):c=!!a.L;c?b.L=a.L:c=!!a.i;c?g.Km(b,a.i):c=null!=a.u;var d=a.getPath();if(c)g.Lm(b,a.u);else if(c=!!a.J){if("/"!=d.charAt(0))if(this.i&&!this.J)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=nc(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.l.toString();c?Mm(b,a.l.clone()):c=!!a.C;c&&(b.C=a.C);return b};
g.Im.prototype.clone=function(){return new g.Im(this)};
g.Im.prototype.getPath=function(){return this.J};
var gEa=/[#\/\?@]/g,iEa=/[#\?:]/g,hEa=/[#\?]/g,tda=/[#\?@]/g,jEa=/#/g;g.k=Om.prototype;g.k.add=function(a,b){Rm(this);this.u=null;a=Sm(this,a);var c=this.i.get(a);c||this.i.set(a,c=[]);c.push(b);this.l=this.l+1;return this};
g.k.remove=function(a){Rm(this);a=Sm(this,a);return Gm(this.i.l,a)?(this.u=null,this.l=this.l-this.i.get(a).length,this.i.remove(a)):!1};
g.k.clear=function(){this.i=this.u=null;this.l=0};
g.k.isEmpty=function(){Rm(this);return 0==this.l};
g.k.forEach=function(a,b){Rm(this);this.i.forEach(function(c,d){g.zb(c,function(e){a.call(b,e,d,this)},this)},this)};
g.k.xi=function(){Rm(this);for(var a=this.i.kh(),b=this.i.xi(),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.kh=function(a){Rm(this);var b=[];if("string"===typeof a)Tm(this,a)&&(b=g.nb(b,this.i.get(Sm(this,a))));else{a=this.i.kh();for(var c=0;c<a.length;c++)b=g.nb(b,a[c])}return b};
g.k.set=function(a,b){Rm(this);this.u=null;a=Sm(this,a);Tm(this,a)&&(this.l=this.l-this.i.get(a).length);this.i.set(a,[b]);this.l=this.l+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.kh(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.u)return this.u;if(!this.i)return"";for(var a=[],b=this.i.xi(),c=0;c<b.length;c++){var d=b[c],e=ld(d);d=this.kh(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+ld(d[f]));a.push(h)}}return this.u=a.join("&")};
g.k.clone=function(){var a=new Om;a.u=this.u;this.i&&(a.i=this.i.clone(),a.l=this.l);return a};var Vm="://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(" "),vda=/\bocr\b/;var wda=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var UD={f_:"LIVING_ROOM_APP_MODE_UNSPECIFIED",c_:"LIVING_ROOM_APP_MODE_MAIN",b_:"LIVING_ROOM_APP_MODE_KIDS",d_:"LIVING_ROOM_APP_MODE_MUSIC",e_:"LIVING_ROOM_APP_MODE_UNPLUGGED",a_:"LIVING_ROOM_APP_MODE_GAMING"};Ym.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.i[a]!=b&&(this.i[a]=b,this.l=-1)};
Ym.prototype.get=function(a){return!!this.i[a]};g.Ua(g.Zm,g.F);g.k=g.Zm.prototype;g.k.start=function(){this.stop();this.B=!1;var a=an(this),b=bn(this);a&&!b&&this.l.mozRequestAnimationFrame?(this.i=Il(this.l,"MozBeforePaint",this.u),this.l.mozRequestAnimationFrame(null),this.B=!0):this.i=a&&b?a.call(this.l,this.u):this.l.setTimeout(kaa(this.u),20)};
g.k.stop=function(){if(this.isActive()){var a=an(this),b=bn(this);a&&!b&&this.l.mozRequestAnimationFrame?Ql(this.i):a&&b?b.call(this.l,this.i):this.l.clearTimeout(this.i)}this.i=null};
g.k.gh=function(){this.stop();this.VD()};
g.k.isActive=function(){return null!=this.i};
g.k.VD=function(){this.B&&this.i&&Ql(this.i);this.i=null;this.I.call(this.C,g.Ta())};
g.k.oa=function(){this.stop();g.Zm.me.oa.call(this)};g.Ua(g.J,g.F);g.k=g.J.prototype;g.k.gs=0;g.k.oa=function(){g.J.me.oa.call(this);this.stop();delete this.i;delete this.l};
g.k.start=function(a){this.stop();this.gs=g.Dm(this.u,void 0!==a?a:this.zg)};
g.k.stop=function(){this.isActive()&&g.A.clearTimeout(this.gs);this.gs=0};
g.k.gh=function(){this.stop();this.WD()};
g.k.isActive=function(){return 0!=this.gs};
g.k.WD=function(){this.gs=0;this.i&&this.i.call(this.l)};g.Ua(g.nn,g.Tl);g.k=g.nn.prototype;g.k.pc=function(){return 1==this.bb};
g.k.qx=function(){this.ri("begin")};
g.k.nu=function(){this.ri("end")};
g.k.onFinish=function(){this.ri("finish")};
g.k.ri=function(a){this.dispatchEvent(a)};var kEa=Za(function(){if(g.we)return g.Xd("10.0");var a=g.De("DIV"),b=g.ye?"-webkit":fg?"-moz":g.we?"-ms":g.gg?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!KDa.test("div"))throw Error("");if("DIV"in MDa)throw Error("");c=null;var d="";if(b)for(h in b)if(Object.prototype.hasOwnProperty.call(b,h)){if(!KDa.test(h))throw Error("");var e=b[h];if(null!=e){var f=h;if(e instanceof dc)e=ec(e);else if("style"==f.toLowerCase()){if(!g.Oa(e))throw Error("");
e instanceof Mc||(e=Rc(e));e=Nc(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in LDa)if(e instanceof kc)e=lc(e).toString();else if(e instanceof g.Dc)e=g.Ec(e);else if("string"===typeof e)e=g.Ic(e).Oh();else throw Error("");}e.Hk&&(e=e.Oh());f=f+'="'+xc(String(e))+'"';d+=" "+f}}var h="<div"+d;d=void 0;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===HDa.div?h+=">":(c=Gaa(d),h+=">"+g.bd(c).toString()+"</div>",c=c.Qq());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=cd(h,c);g.gd(a,
b);return""!=g.hg(a.firstChild,"transition")});g.Ua(on,g.nn);g.k=on.prototype;g.k.play=function(){if(this.pc())return!1;this.qx();this.ri("play");this.startTime=g.Ta();this.bb=1;if(kEa())return g.dg(this.i,this.I),this.u=g.Dm(this.IS,void 0,this),!0;this.Ty(!1);return!1};
g.k.IS=function(){g.tg(this.i);yda(this.i,this.J);g.dg(this.i,this.B);this.u=g.Dm((0,g.B)(this.Ty,this,!1),1E3*this.C)};
g.k.stop=function(){this.pc()&&this.Ty(!0)};
g.k.Ty=function(a){g.dg(this.i,"transition","");g.A.clearTimeout(this.u);g.dg(this.i,this.B);this.endTime=g.Ta();this.bb=0;if(a)this.ri("stop");else this.onFinish();this.nu()};
g.k.oa=function(){this.stop();on.me.oa.call(this)};
g.k.pause=function(){};var zda={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};var Dda=qn("getPropertyValue"),Eda=qn("setProperty");var Cda={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.un.prototype.clone=function(){return new g.un(this.i,this.C,this.u,this.I,this.B,this.J,this.l,this.L)};g.wn.prototype.l=0;g.wn.prototype.reset=function(){this.i=this.u=this.B;this.l=0};
g.wn.prototype.getValue=function(){return this.u};yn.prototype.clone=function(){return new yn(this.start,this.end)};var lEa=new WeakMap;(function(){if(Gza){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Uc))?a[1]:"0"}return hS?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Uc))?a[0].replace(/_/g,"."):"10"):g.pq?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Uc))?a[1]:""):ODa||PDa||QDa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Uc))?a[1].replace(/_/g,"."):""):""})();var Lda=function(){if(g.NC)return zn(/Firefox\/([0-9.]+)/);if(g.we||g.Ls||g.gg)return Vd;if(g.wB)return Qd()?zn(/CriOS\/([0-9.]+)/):zn(/Chrome\/([0-9.]+)/);if(g.es&&!Qd())return zn(/Version\/([0-9.]+)/);if(ID||iH){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Uc);if(a)return a[1]+"."+a[2]}else if(g.AD)return(a=zn(/Android\s+([0-9.]+)/))?a:zn(/Version\/([0-9.]+)/);return""}();g.Ua(g.Bn,g.F);g.k=g.Bn.prototype;g.k.subscribe=function(a,b,c){var d=this.l[a];d||(d=this.l[a]=[]);var e=this.C;this.i[e]=a;this.i[e+1]=b;this.i[e+2]=c;this.C=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.l[a]){var d=this.i;if(a=g.cb(a,function(e){return d[e+1]==b&&d[e+2]==c}))return this.Hg(a)}return!1};
g.k.Hg=function(a){var b=this.i[a];if(b){var c=this.l[b];0!=this.B?(this.u.push(a),this.i[a+1]=g.Ka):(c&&g.kb(c,a),delete this.i[a],delete this.i[a+1],delete this.i[a+2])}return!!b};
g.k.V=function(a,b){var c=this.l[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.I)for(e=0;e<c.length;e++){var h=c[e];Mda(this.i[h+1],this.i[h+2],d)}else{this.B++;try{for(e=0,f=c.length;e<f;e++)h=c[e],this.i[h+1].apply(this.i[h+2],d)}finally{if(this.B--,0<this.u.length&&0==this.B)for(;c=this.u.pop();)this.Hg(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.l[a];b&&(g.zb(b,this.Hg,this),delete this.l[a])}else this.i.length=0,this.l={}};
g.k.oa=function(){g.Bn.me.oa.call(this);this.clear();this.u.length=0};g.Cn.prototype.set=function(a,b){void 0===b?this.i.remove(a):this.i.set(a,g.uj(b))};
g.Cn.prototype.get=function(a){try{var b=this.i.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.Cn.prototype.remove=function(a){this.i.remove(a)};g.Ua(Dn,g.Cn);Dn.prototype.set=function(a,b){Dn.me.set.call(this,a,Fn(b))};
Dn.prototype.l=function(a){a=Dn.me.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Dn.prototype.get=function(a){if(a=this.l(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Ua(Gn,Dn);Gn.prototype.set=function(a,b,c){if(b=Fn(b)){if(c){if(c<g.Ta()){Gn.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Ta()}Gn.me.set.call(this,a,b)};
Gn.prototype.l=function(a,b){var c=Gn.me.l.call(this,a);if(c)if(!b&&g.Hn(c))Gn.prototype.remove.call(this,a);else return c};g.Ua(g.In,Gn);g.Ua(Jn,Nda);Jn.prototype.clear=function(){var a=Tba(this.ul(!0)),b=this;g.zb(a,function(c){b.remove(c)})};g.Ua(Kn,Jn);g.k=Kn.prototype;g.k.isAvailable=function(){if(!this.i)return!1;try{return this.i.setItem("__sak","1"),this.i.removeItem("__sak"),!0}catch(a){return!1}};
g.k.set=function(a,b){try{this.i.setItem(a,b)}catch(c){if(0==this.i.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.k.get=function(a){a=this.i.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.i.removeItem(a)};
g.k.ul=function(a){var b=0,c=this.i,d=new Pi;d.next=function(){if(b>=c.length)throw Qi;var e=c.key(b++);if(a)return e;e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e};
return d};
g.k.clear=function(){this.i.clear()};
g.k.key=function(a){return this.i.key(a)};g.Ua(Ln,Kn);g.Ua(Mn,Kn);g.Ua(On,Jn);var Oda={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Nn=null;g.k=On.prototype;g.k.isAvailable=function(){return!!this.i};
g.k.set=function(a,b){this.i.setAttribute(Pn(a),b);Qn(this)};
g.k.get=function(a){a=this.i.getAttribute(Pn(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.i.removeAttribute(Pn(a));Qn(this)};
g.k.ul=function(a){var b=0,c=this.i.XMLDocument.documentElement.attributes,d=new Pi;d.next=function(){if(b>=c.length)throw Qi;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e};
return d};
g.k.clear=function(){for(var a=this.i.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);Qn(this)};g.Ua(Rn,Jn);Rn.prototype.set=function(a,b){this.l.set(this.i+a,b)};
Rn.prototype.get=function(a){return this.l.get(this.i+a)};
Rn.prototype.remove=function(a){this.l.remove(this.i+a)};
Rn.prototype.ul=function(a){var b=this.l.ul(!0),c=this,d=new Pi;d.next=function(){for(var e=b.next();e.substr(0,c.i.length)!=c.i;)e=b.next();return a?e.substr(c.i.length):c.l.get(e)};
return d};bo.prototype.getKey=function(){return this.i};
bo.prototype.getValue=function(){return this.l};
bo.prototype.clone=function(){return new bo(this.i,this.l)};g.k=co.prototype;g.k.remove=function(){var a=this.i,b=a.length,c=a[0];if(!(0>=b)){if(1==b)ib(a);else{a[0]=a.pop();a=0;b=this.i;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.kh=function(){for(var a=this.i,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.xi=function(){for(var a=this.i,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.k.clone=function(){return new co(this)};
g.k.isEmpty=function(){return g.gb(this.i)};
g.k.clear=function(){ib(this.i)};g.Ua(fo,co);La(go);go.prototype.i=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 jo="@@redux/INIT"+io(),Rda="@@redux/REPLACE"+io();var lo="function"===typeof Symbol&&Symbol.observable||"@@observable";g.Ua(mo,xf);g.Ua(no,xf);var Sda=[2,13,14];no.prototype.getKey=function(){return Bf(this,3)};
mo.prototype.Vb=function(){var a=Bf(this,11);return null==a?0:a};var ro={};var so=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.Fa("yt.config_",so,void 0);var wo=[];var mEa,Eo,Go;mEa=g.A.ytPubsubPubsubInstance||new g.Bn;Eo=g.A.ytPubsubPubsubSubscribedKeys||{};Go=g.A.ytPubsubPubsubTopicToKeys||{};g.Fo=g.A.ytPubsubPubsubIsSynchronous||{};g.Bn.prototype.subscribe=g.Bn.prototype.subscribe;g.Bn.prototype.unsubscribeByKey=g.Bn.prototype.Hg;g.Bn.prototype.publish=g.Bn.prototype.V;g.Bn.prototype.clear=g.Bn.prototype.clear;g.Fa("ytPubsubPubsubInstance",mEa,void 0);g.Fa("ytPubsubPubsubTopicToKeys",Go,void 0);g.Fa("ytPubsubPubsubIsSynchronous",g.Fo,void 0);
g.Fa("ytPubsubPubsubSubscribedKeys",Eo,void 0);var Wda=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Xda=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Oo={};var nEa=0,Uo=g.ye?"webkit":fg?"moz":g.we?"ms":g.gg?"o":"",oEa=g.Ja("ytDomDomGetNextId")||function(){return++nEa};
g.Fa("ytDomDomGetNextId",oEa,void 0);var $da={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};Xo.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Xo.prototype.kH=function(){return this.event?!1===this.event.returnValue:!1};
Xo.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Xo.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Zo=g.A.ytEventsEventsListeners||{};g.Fa("ytEventsEventsListeners",Zo,void 0);var $o=g.A.ytEventsEventsCounter||{count:0};g.Fa("ytEventsEventsCounter",$o,void 0);var pEa=Za(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),ap=Za(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var cD=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.Ua(mp,g.F);mp.prototype.W=function(a){void 0===a.i&&Yo(a);var b=a.i;void 0===a.l&&Yo(a);this.i=new g.ce(b,a.l)};
mp.prototype.Rm=function(){return this.i||new g.ce};
mp.prototype.X=function(){if(this.i){var a=cD();if(0!=this.B){var b=this.I,c=this.i,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.B);this.l[this.u]=.5<Math.abs((d-this.C)/this.C)?1:0;for(c=b=0;4>c;c++)b+=this.l[c]||0;3<=b&&this.J();this.C=d}this.B=a;this.I=this.i;this.u=(this.u+1)%4}};
mp.prototype.oa=function(){window.clearInterval(this.L);g.cp(this.Y)};g.v(rp,np);rp.prototype.start=function(){var a=g.Ja("yt.scheduler.instance.start");a&&a()};
rp.prototype.pause=function(){var a=g.Ja("yt.scheduler.instance.pause");a&&a()};
La(rp);rp.getInstance();var yp={};var gea=/^[\w.]*$/,fea={q:!0,search_query:!0},eea=String(Dp);var Op=new function(){var a=window.document;this.i=window;this.l=a};
g.Fa("yt.ads_.signals_.getAdSignalsString",function(a){return Ep(Qp(a))},void 0);var Rp="XMLHttpRequest"in g.A?function(){return new XMLHttpRequest}:null;var Up={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","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"},
kea="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 client_dev_root_url".split(" "),Zp=!1,uka=Vp;var nq=ID||iH;var vq={},rea=0;var M_;M_=window;g.N=M_.ytcsi&&M_.ytcsi.now?M_.ytcsi.now:M_.performance&&M_.performance.timing&&M_.performance.now&&M_.performance.timing.navigationStart?function(){return M_.performance.timing.navigationStart+M_.performance.now()}:function(){return(new Date).getTime()};var uea=Ro("initial_gel_batch_timeout",1E3),Lq=Math.pow(2,16)-1,Mq=null,Kq=0,zq=void 0,Eq=0,Fq=0,Bq=0,Gq=!0,yq=g.A.ytLoggingTransportGELQueue_||new Map;g.Fa("ytLoggingTransportGELQueue_",yq,void 0);var wq=g.A.ytLoggingTransportTokensToCttTargetIds_||{};g.Fa("ytLoggingTransportTokensToCttTargetIds_",wq,void 0);var Nq=g.A.ytLoggingGelSequenceIdObj_||{};g.Fa("ytLoggingGelSequenceIdObj_",Nq,void 0);var Vq=g.Ja("ytglobal.prefsUserPrefsPrefs_")||{};g.Fa("ytglobal.prefsUserPrefsPrefs_",Vq,void 0);g.k=g.Wq.prototype;g.k.get=function(a,b){$q(a);Zq(a);a=void 0!==Vq[a]?Vq[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){$q(a);Zq(a);if(null==b)throw Error("ExpectedNotNull");Vq[a]=b.toString()};
g.k.remove=function(a){$q(a);Zq(a);delete Vq[a]};
g.k.save=function(){var a=!0;g.Qo("web_secure_pref_cookie_killswitch")&&(a=!1);g.Sq(this.i,this.dump(),63072E3,this.l,a)};
g.k.clear=function(){g.Rb(Vq)};
g.k.dump=function(){var a=[],b;for(b in Vq)a.push(b+"="+encodeURIComponent(String(Vq[b])));return a.join("&")};
La(g.Wq);var br={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"},dr={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};gr.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.i)try{this.i.set(a,b,g.Ta()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.uj(b))}catch(f){return}else e=escape(b);g.Sq(a,e,c,this.l)};
gr.prototype.get=function(a,b){var c=void 0,d=!this.i;if(!d)try{c=this.i.get(a)}catch(e){d=!0}if(d&&(c=g.Tq(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
gr.prototype.remove=function(a){this.i&&this.i.remove(a);g.Uq(a,"/",this.l)};ir.prototype.toString=function(){return this.topic};var qEa=g.Ja("ytPubsub2Pubsub2Instance")||new g.Bn;g.Bn.prototype.subscribe=g.Bn.prototype.subscribe;g.Bn.prototype.unsubscribeByKey=g.Bn.prototype.Hg;g.Bn.prototype.publish=g.Bn.prototype.V;g.Bn.prototype.clear=g.Bn.prototype.clear;g.Fa("ytPubsub2Pubsub2Instance",qEa,void 0);var Hr=g.Ja("ytPubsub2Pubsub2SubscribedKeys")||{};g.Fa("ytPubsub2Pubsub2SubscribedKeys",Hr,void 0);var Jr=g.Ja("ytPubsub2Pubsub2TopicToKeys")||{};g.Fa("ytPubsub2Pubsub2TopicToKeys",Jr,void 0);
var Ir=g.Ja("ytPubsub2Pubsub2IsAsync")||{};g.Fa("ytPubsub2Pubsub2IsAsync",Ir,void 0);g.Fa("ytPubsub2Pubsub2SkipSubKey",null,void 0);Mr.prototype.ow=function(a,b){a={};var c=vl();c&&(a.Authorization=c,c=b=null===b||void 0===b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.M("SESSION_INDEX",0)),c=isNaN(c)?0:c),a["X-Goog-AuthUser"]=c,"INNERTUBE_HOST_OVERRIDE"in so||(a["X-Origin"]=window.location.origin),g.Qo("pageid_as_header_web")&&void 0===b&&"DELEGATED_SESSION_ID"in so&&(a["X-Goog-PageId"]=g.M("DELEGATED_SESSION_ID")));return a};var eL={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Rr=[],Nr,Sr=!1;var Vr=function(){var a;return function(){a||(a=new gr("ytidb"));return a}}();
Xr.prototype.isSupported=function(){return this.l};
Xr.prototype.log=function(){Wr()&&Ur("IS_SUPPORTED_COMPLETED",{isSupported:this.l,lastIsSupported:this.i.isSupported,failureMessage:this.failureMessage,sameResultCount:this.i.resultCount,sameResultDurationMs:Math.floor((0,g.N)()-this.i.createdTimestampMs),canDetectDataOnFailure:this.u})};g.v(g.Zr,Error);var N_={},bs=(N_.AUTH_INVALID="No user identifier specified.",N_.EXPLICIT_ABORT="Transaction was explicitly aborted.",N_.IDB_NOT_SUPPORTED="IndexedDB is not supported.",N_.MISSING_OBJECT_STORE="Object store not created.",N_.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",N_.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",N_.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",N_.EXECUTE_TRANSACTION_ON_CLOSED_DB=
"Can't start a transaction on a closed database",N_),O_={},Cea=(O_.AUTH_INVALID="ERROR",O_.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",O_.EXPLICIT_ABORT="IGNORED",O_.IDB_NOT_SUPPORTED="ERROR",O_.MISSING_OBJECT_STORE="ERROR",O_.QUOTA_EXCEEDED="WARNING",O_.QUOTA_MAYBE_EXCEEDED="WARNING",O_.UNKNOWN_ABORT="WARNING",O_),P_={},Dea=(P_.AUTH_INVALID=!1,P_.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,P_.EXPLICIT_ABORT=!1,P_.IDB_NOT_SUPPORTED=!1,P_.MISSING_OBJECT_STORE=!1,P_.QUOTA_EXCEEDED=!1,P_.QUOTA_MAYBE_EXCEEDED=
!0,P_.UNKNOWN_ABORT=!0,P_);g.v(cs,g.Zr);g.v(ds,cs);var Eea=["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"];fs.all=function(a){return new fs(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Zp:0};f.Zp<a.length;f={Zp:f.Zp},++f.Zp)fs.resolve(a[f.Zp]).then(function(h){return function(l){d[h.Zp]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})})};
fs.resolve=function(a){return new fs(function(b,c){a instanceof fs?a.then(b,c):b(a)})};
fs.reject=function(a){return new fs(function(b,c){c(a)})};
fs.prototype.then=function(a,b){var c=this,d=null!==a&&void 0!==a?a:Hea,e=null!==b&&void 0!==b?b:Gea;return new fs(function(f,h){"PENDING"===c.state.status?(c.i.push(function(){hs(c,c,d,f,h)}),c.onRejected.push(function(){is(c,c,e,f,h)})):"FULFILLED"===c.state.status?hs(c,c,d,f,h):"REJECTED"===c.state.status&&is(c,c,e,f,h)})};
fs.prototype.catch=function(a){return this.then(void 0,a)};ns.prototype.advance=function(a){this.cursor.advance(a);return os(this.request)};
ns.prototype.continue=function(a){this.cursor.continue(a);return os(this.request)};
ns.prototype.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return os(this.request)};
ns.prototype.getKey=function(){return this.cursor.key};g.k=ps.prototype;g.k.add=function(a,b,c){return ts(this,[a],{mode:"readwrite",Hm:g.Qo("ytidb_transaction_enable_retries_core_and_nwl")},function(d){return vs(d,a).add(b,c)})};
g.k.clear=function(a){return ts(this,[a],{mode:"readwrite",Hm:g.Qo("ytidb_transaction_enable_retries_core_and_nwl")},function(b){return vs(b,a).clear()})};
g.k.close=function(){var a;this.i.close();(null===(a=this.options)||void 0===a?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return ts(this,[a],{mode:"readonly",Hm:g.Qo("ytidb_transaction_enable_retries_core_and_nwl")},function(c){return vs(c,a).count(b)})};
g.k.delete=function(a,b){return ts(this,[a],{mode:"readwrite",Hm:g.Qo("ytidb_transaction_enable_retries_core_and_nwl")},function(c){return vs(c,a).delete(b)})};
g.k.get=function(a,b){return ts(this,[a],{mode:"readonly",Hm:g.Qo("ytidb_transaction_enable_retries_core_and_nwl")},function(c){return vs(c,a).get(b)})};
g.k.getAll=function(a,b,c){return ts(this,[a],{mode:"readonly",Hm:g.Qo("ytidb_transaction_enable_retries_core_and_nwl")},function(d){return vs(d,a).getAll(b,c)})};
g.k=qs.prototype;g.k.add=function(a,b){return ls(this.i.add(a,b))};
g.k.clear=function(){return ls(this.i.clear()).then(function(){})};
g.k.count=function(a){return ls(this.i.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?Kea(this,a):ls(this.i.delete(a))};
g.k.get=function(a){return ls(this.i.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?ls(this.i.getAll(a,b)):Lea(this,a,b)};
g.k.index=function(a){return new Cs(this.i.index(a))};
g.k.getName=function(){return this.i.name};
xs.prototype.abort=function(){this.i.abort();this.aborted=!0;throw new cs("EXPLICIT_ABORT");};
xs.prototype.commit=function(){var a=this.i;a.commit&&!this.aborted&&a.commit()};
g.k=Cs.prototype;g.k.count=function(a){return ls(this.i.count(a))};
g.k.delete=function(a){return Ds(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.k.get=function(a){return ls(this.i.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?ls(this.i.getAll(a,b)):Nea(this,a,b)};
g.k.getKey=function(a){return ls(this.i.getKey(a))};
g.k=Es.prototype;g.k.advance=function(a){this.cursor.advance(a);return Bs(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return Bs(this.request)};
g.k.delete=function(){return ls(this.cursor.delete()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return ls(this.cursor.update(a))};Hs.prototype.l=function(a,b,c){c=void 0===c?{}:c;return Fs(a,b,c)};
Hs.prototype.delete=function(a){a=void 0===a?{}:a;return Gs(this.name,a)};
Hs.prototype.open=function(){var a=this;if(!this.i){var b,c=function(){a.i===b&&(a.i=void 0)},d={blocking:function(f){f.close()},
closed:c,sT:c,upgrade:this.options.upgrade},e=function(){return g.C(a,function h(){var l=this,m,n,p;return g.z(h,function(r){switch(r.i){case 1:return ua(r,2),g.w(r,l.l(l.name,l.options.version,d),4);case 4:m=r.l;a:{var t=g.q(Object.keys(l.options.PB));for(var u=t.next();!u.done;u=t.next())if(u=u.value,!m.i.objectStoreNames.contains(u)){t=u;break a}t=void 0}n=t;if(void 0===n){r.Mb(5);break}if(l.u){r.Mb(6);break}l.u=!0;return g.w(r,l.delete(),7);case 7:return r.return(e());case 6:throw new ds(n);case 5:return r.return(m);
case 2:p=wa(r);if(p instanceof DOMException?"VersionError"===p.name:"DOMError"in self&&p instanceof DOMError?"VersionError"===p.name:p instanceof Object&&"message"in p&&"An attempt was made to open a database using a lower version than the existing version."===p.message)return r.return(l.l(l.name,void 0,Object.assign(Object.assign({},d),{upgrade:void 0})));c();throw p;}})})};
this.i=b=e()}return this.i};var Is=new Hs("YtIdbMeta",{PB:{databases:!0},upgrade:function(a,b){1>b&&rs(a,"databases",{keyPath:"actualName"})}});var Ms;var Os;g.v(Ts,Hs);Ts.prototype.l=function(a,b,c){c=void 0===c?{}:c;return(this.options.KC?Vea:Uea)(a,b,Object.assign(Object.assign({},c),{clearDataOnAuthChange:this.options.clearDataOnAuthChange}))};
Ts.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.KC?Ss:Wea)(this.name,a)};g.v(Vs,fs);Vs.reject=fs.reject;Vs.resolve=fs.resolve;Vs.all=fs.all;var Ws;g.v(Zs,g.Tl);g.v(ct,g.Tl);var dt;g.it.prototype.isReady=function(){!this.i&&fr()&&(this.i=g.Iq());return!!this.i};var dfa=[{IH:function(a){return"Cannot read property '"+a.key+"'"},
gC:{TypeError:[{Ki:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Ki:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Ki:/\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"]},{Ki:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,
groups:["key"]},{Ki:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]}],Error:[{Ki:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}]}},{IH:function(a){return"Cannot call '"+a.key+"'"},
gC:{TypeError:[{Ki:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Ki:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Ki:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Ki:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Ki:/\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"]},
{Ki:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}}];var jt;var ut=new g.Bn;var tt=new Set,rt=0,efa=0,vt=0,cfa=[],ffa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];wt.prototype.initialize=function(a,b,c,d,e,f){var h=this;f=void 0===f?!1:f;b?(this.l=!0,g.Mo(b,function(){h.l=!1;var l=0<=b.indexOf("/th/");if(l?window.trayride:window.botguard)zt(h,c,!!f,l,d);else{l=No(b);var m=document.getElementById(l);m&&(Lo(l),m.parentNode.removeChild(m));g.qt(new g.Zr("Unable to load Botguard","from "+b))}},e)):a&&(e=g.De("SCRIPT"),e.textContent=a,e.nonce=Ia(),document.head.appendChild(e),document.head.removeChild(e),((a=a.includes("trayride"))?window.trayride:window.botguard)?
zt(this,c,!!f,a,d):g.qt(Error("Unable to load Botguard from JS")))};
wt.prototype.Me=function(){return!!this.i};
wt.prototype.invoke=function(a){a=void 0===a?{}:a;return this.i?this.i.hasOwnProperty("hot")?this.i.hot(void 0,void 0,a):this.i.invoke(void 0,void 0,a):null};
wt.prototype.dispose=function(){this.i=null};var ifa=[],Ct=!1;g.v(Ft,Wa);It.prototype.then=function(a,b,c){return 1===this.bb&&a?(a=a.call(c,this.i),hm(a)?a:Kt(a)):2===this.bb&&b?(a=b.call(c,this.i),hm(a)?a:Jt(a)):this};
It.prototype.getValue=function(){return this.i};
It.prototype.$goog_Thenable=!0;g.v(Mt,Wa);Mt.prototype.name="BiscottiError";g.v(Lt,Wa);Lt.prototype.name="BiscottiMissingError";var Ot={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Nt=null;var lfa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),nfa=["/fashion","/feed/fashion_destination","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ"];g.v(Yt,g.F);Yt.prototype.N=function(a,b,c,d,e){c=yo((0,g.B)(c,d||this.Ma));c={target:a,name:b,callback:c};var f;e&&pEa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.I.push(c);return c};
Yt.prototype.hc=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}};
Yt.prototype.oa=function(){g.$t(this);g.F.prototype.oa.call(this)};g.Ua(g.P,g.F);g.P.prototype.subscribe=function(a,b,c){return this.Ha()?0:this.pe.subscribe(a,b,c)};
g.P.prototype.unsubscribe=function(a,b,c){return this.Ha()?!1:this.pe.unsubscribe(a,b,c)};
g.P.prototype.Hg=function(a){return this.Ha()?!1:this.pe.Hg(a)};
g.P.prototype.V=function(a,b){return this.Ha()?!1:this.pe.V.apply(this.pe,arguments)};g.v(g.du,g.P);g.k=g.du.prototype;g.k.cancel=function(){this.B&&(this.B=!1,this.V("dragend",0,0,null));this.l&&(this.l=!1,this.V("hoverend",0,0,null),g.$t(this.i),cu(this))};
g.k.PH=function(a){g.$t(this.i);eu(this,fu("move"),this.NH);eu(this,fu("out"),this.OH);eu(this,"touchstart",this.jD);this.u&&eu(this,fu("down"),this.LB);var b=g.dp(a);a=gp(a);this.l=!0;this.V("hoverstart",a.x,a.y,b);this.V("hovermove",a.x,a.y,b)};
g.k.NH=function(a){var b=g.dp(a);a=gp(a);if(this.C){var c=this.C;this.C=null;if(fp(c)==b&&de(gp(c),a))return}this.V("hovermove",a.x,a.y,b)};
g.k.OH=function(a){var b=gp(a),c=fp(a);try{if(c&&g.Me(this.I,c)){this.C=a;this.V("hovermove",b.x,b.y,c);return}}catch(d){}g.$t(this.i);cu(this);this.l=!1;this.V("hoverend",b.x,b.y,c)};
g.k.gP=function(a){this.PH(a);this.LB(a)};
g.k.LB=function(a){if("number"!==typeof a.button||0==a.button){g.$t(this.i);this.i.N(document,fu("move"),this.fP);this.i.N(document,fu("up"),this.kP);var b=g.dp(a);if(g.ye)eu(this,"dragstart",this.ON);else if(g.hp(a),(g.kE||fg)&&b)a:{for(var c=b;c;){if(Qe(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=gp(a);this.V("dragstart",a.x,a.y,b);this.V("dragmove",a.x,a.y,b)}};
g.k.ON=function(a){g.hp(a)};
g.k.fP=function(a){var b=g.dp(a);b==document&&(b=null);a=gp(a);this.V("hovermove",a.x,a.y,b);this.V("dragmove",a.x,a.y,b)};
g.k.kP=function(a){g.$t(this.i);this.B=!1;var b=ep(a),c=g.dp(a);a=gp(a);b&&g.Me(this.I,b)?(eu(this,fu("move"),this.NH),eu(this,fu("out"),this.OH),eu(this,fu("down"),this.LB),eu(this,"touchstart",this.jD),this.V("dragend",a.x,a.y,c)):(cu(this),this.l=!1,this.V("dragend",a.x,a.y,c),this.V("hoverend",a.x,a.y,c))};
g.k.jD=function(a){var b=a.changedTouches[0];b&&(g.$t(this.i),eu(this,"touchmove",this.yT),eu(this,"touchend",this.dK),eu(this,"touchcancel",this.dK),this.J=b.identifier,a=g.dp(a),this.l||(this.l=!0,this.V("hoverstart",b.pageX,b.pageY,a)),this.V("hovermove",b.pageX,b.pageY,a),this.u&&(this.B=!0,this.V("dragstart",b.pageX,b.pageY,a),this.V("dragmove",b.pageX,b.pageY,a)))};
g.k.yT=function(a){var b=gu(this,a);b&&(this.u&&g.hp(a),a=g.dp(a),this.V("hovermove",b.pageX,b.pageY,a),this.u&&this.V("dragmove",b.pageX,b.pageY,a))};
g.k.dK=function(a){var b=gu(this,a);if(b){g.$t(this.i);cu(this);this.l=!1;var c=g.dp(a);this.u&&(this.L||g.hp(a),this.B=!1,this.V("dragend",b.pageX,b.pageY,c));this.V("hoverend",b.pageX,b.pageY,c)}};
g.k.oa=function(){this.u&&(g.ye&&this.I.removeAttribute("draggable"),this.I.style.touchAction="");g.$t(this.i);g.P.prototype.oa.call(this)};hu.prototype.clone=function(){var a=new hu,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Ma(c)?g.Ub(c):c}return a};var Hna=["embedded_player"],rEa=["share/get_web_player_share_panel"],sEa=["feedback"],tEa=["notification/modify_channel_preference"],gna=["offline"],xqa=["offline/get_playback_data_entity"],mya=["player"],uEa=["browse/edit_playlist"],vEa=["subscription/subscribe"],wEa=["subscription/unsubscribe"],oya=["next","unplugged/watch_next"];var iu=Date.now().toString();var wu,Q_=g.A.ytLoggingDocDocumentNonce_;Q_||(Q_=ku(),g.Fa("ytLoggingDocDocumentNonce_",Q_,void 0));wu=Q_;var jka={pX:0,eV:1,tV:2,R0:3,tX:4,B5:5,O1:6,I3:7,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE"};var qfa=1;mu.prototype.getAsJson=function(){var a={};void 0!==this.i.trackingParams?a.trackingParams=this.i.trackingParams:(a.veType=this.i.veType,void 0!==this.i.veCounter&&(a.veCounter=this.i.veCounter),void 0!==this.i.elementIndex&&(a.elementIndex=this.i.elementIndex));void 0!==this.i.dataElement&&(a.dataElement=this.i.dataElement.getAsJson());void 0!==this.i.youtubeData&&(a.youtubeData=this.i.youtubeData);return a};
mu.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
mu.prototype.isClientVe=function(){return!this.i.trackingParams&&!!this.i.veType};g.Fa("yt_logging_screen.getRootVeType",qu,void 0);g.Fa("yt_logging_screen.getCurrentCsn",g.uu,void 0);g.Fa("yt_logging_screen.getCttAuthInfo",vu,void 0);g.Fa("yt_logging_screen.setCurrentScreen",xu,void 0);g.v(yu,hr);var Gu=new ir("screen-created",yu),Eu=[],ika=tfa,Fu=0;var xEa={SU:29434,dV:3611,OY:3854,J_:42993,z3:4724,K4:96370,RT:27686,TT:85013,UT:23462,XT:42016,ZT:62407,aU:26926,VT:43781,cU:51236,dU:79148,eU:50160,fU:77504,zU:87907,AU:18630,CU:54445,DU:80935,JU:105675,KU:37521,LU:47786,NU:98349,RU:6827,cV:7282,lV:32276,kV:76278,mV:93911,oV:106531,pV:27259,qV:27262,rV:27263,uV:21759,vV:27107,wV:62936,xV:49568,AV:38408,BV:80637,CV:68727,EV:68728,FV:80353,GV:80356,HV:74610,IV:45707,JV:83962,KV:83970,LV:46713,MV:89711,NV:74612,OV:93265,PV:74611,RV:113533,SV:93252,
TV:99357,VV:94521,WV:114252,XV:113532,YV:94522,UV:94583,ZV:88E3,aW:93253,bW:93254,cW:94387,dW:94388,eW:93255,fW:97424,QV:72502,gW:110111,hW:76019,jW:117092,kW:117093,iW:89431,lW:110466,mW:77240,nW:60508,oW:105350,pW:73393,qW:113534,rW:92098,sW:84517,tW:83759,uW:80357,vW:86113,wW:72598,xW:72733,yW:107349,zW:118203,BW:117431,DW:117429,EW:117430,FW:117432,GW:120080,HW:117259,IW:121692,JW:97615,KW:31402,LW:84774,MW:95117,NW:98930,OW:98931,PW:98932,QW:43347,RW:45474,SW:100352,TW:84758,UW:98443,VW:117985,
WW:74613,XW:74614,YW:64502,ZW:74615,aX:74616,bX:122224,cX:74617,dX:77820,eX:74618,fX:93278,gX:93274,hX:93275,iX:93276,jX:22110,kX:29433,qX:120541,uX:82047,vX:113550,wX:75836,xX:75837,zX:42352,DX:84512,EX:76065,GX:75989,KX:16623,LX:32594,MX:27240,PX:32633,XX:74858,aY:3945,ZX:16989,bY:45520,cY:25488,dY:25492,eY:25494,gY:55760,hY:14057,iY:18451,jY:57204,kY:57203,lY:17897,mY:57205,nY:18198,oY:17898,pY:17909,qY:43980,rY:46220,zY:11721,GY:49954,MY:96369,VY:56251,WY:25624,cZ:16906,dZ:99999,fZ:68172,gZ:27068,
jZ:47973,kZ:72773,lZ:26970,mZ:26971,nZ:96805,oZ:17752,pZ:73233,qZ:109512,rZ:22256,sZ:14115,tZ:22696,uZ:89278,vZ:89277,wZ:109513,xZ:43278,yZ:43459,zZ:43464,AZ:89279,BZ:43717,CZ:55764,DZ:22255,EZ:89281,FZ:40963,GZ:43277,HZ:43442,JZ:91824,MZ:120137,OZ:96367,QZ:36850,RZ:72694,SZ:37414,TZ:36851,UZ:121343,VZ:73491,WZ:54473,XZ:43375,YZ:46674,l_:32473,m_:72901,n_:72906,o_:50947,p_:50612,q_:50613,r_:50942,s_:84938,t_:84943,u_:84939,v_:84941,w_:84944,x_:84940,y_:84942,z_:35585,A_:51926,B_:79983,C_:63238,D_:18921,
E_:63241,F_:57893,G_:41182,H_:33424,I_:22207,K_:36229,L_:22206,M_:22205,N_:18993,O_:19001,P_:18990,Q_:18991,R_:18997,S_:18725,T_:19003,U_:36874,V_:44763,W_:33427,X_:67793,Y_:22182,Z_:37091,b0:34650,d0:50617,e0:47261,f0:22287,g0:25144,h0:97917,k0:62397,l0:36961,m0:108035,n0:27426,o0:27857,q0:27846,r0:27854,s0:69692,t0:61411,u0:39299,v0:38696,w0:62520,x0:36382,y0:108701,z0:50663,A0:36387,B0:14908,C0:37533,D0:105443,E0:61635,F0:62274,G0:65702,H0:65703,I0:65701,J0:76256,M0:37671,N0:49953,U0:36216,V0:28237,
W0:39553,X0:29222,Y0:26107,Z0:38050,b1:26108,e1:120745,d1:26109,f1:26110,g1:66881,h1:28236,j1:14586,m1:57929,o1:74723,q1:44098,r1:44099,t1:23528,u1:61699,v1:59149,w1:101951,x1:97346,y1:118051,z1:95102,A1:64882,B1:119505,C1:63595,D1:63349,E1:95101,F1:75240,G1:27039,H1:68823,I1:21537,J1:83464,K1:75707,L1:83113,M1:101952,N1:101953,P1:79610,S1:24402,T1:24400,U1:32925,V1:57173,W1:122502,X1:64423,Y1:64424,Z1:33986,b2:100828,d2:21409,q2:11070,r2:11074,s2:17880,t2:14001,v2:30709,w2:30707,x2:30711,y2:30710,
z2:30708,u2:26984,A2:63648,B2:63649,D2:51879,I2:111059,K2:5754,L2:20445,Q2:110386,S2:113746,T2:66557,Z2:17310,b3:28631,e3:21589,f3:68012,g3:60480,h3:31571,m3:76980,n3:41577,o3:45469,t3:38669,u3:13768,v3:13777,y3:62985,A3:59369,B3:43927,C3:43928,F3:12924,H3:100355,K3:56219,L3:27669,M3:10337,J3:47896,N3:122629,O3:121258,P3:107598,Q3:96639,R3:107536,S3:96661,T3:96658,U3:116646,V3:121122,W3:96660,X3:104443,Y3:96659,Z3:106442,d4:63667,e4:63668,f4:63669,l4:78314,o4:55761,s4:96368,t4:67374,u4:48992,x4:49956,
C4:31961,D4:26388,I4:23811,J4:5E4,L4:47355,M4:47356,N4:37935,O4:45521,P4:21760,Q4:83769,R4:49977,S4:49974,T4:93497,U4:93498,V4:34325,X4:115803,Y4:100081,Z4:35309,a5:68314,b5:25602,c5:100339,e5:59018,f5:18248,g5:50625,h5:9729,i5:37168,j5:37169,k5:21667,l5:16749,m5:18635,n5:39305,o5:18046,q5:53969,r5:8213,t5:93926,w5:102852,x5:110099,y5:22678,z5:69076,C5:100856,E5:17736,F5:3832,H5:55759,I5:64031,J5:93044,L5:93045,N5:34388,O5:17657,P5:17655,Q5:39579,R5:39578,S5:77448,T5:8196,U5:11357,V5:69877,W5:8197,
Y5:82039};Lu.prototype.clear=function(){this.l.clear();this.i.clear();this.u.clear()};
La(Lu);var Nu;g.Mu=Za(function(){var a=new Ln;return a.isAvailable()?new g.In(a):null});
Nu=Za(function(){var a=new Mn;return a.isAvailable()?new g.In(a):null});g.v(Xu,g.F);bv.prototype.get=function(){return this.value};
g.v(cv,bv);cv.prototype.Vb=function(){return"metadata_type_action_companion_ad_renderer"};
g.v(dv,bv);dv.prototype.Vb=function(){return"metadata_type_ad_next_params"};
g.v(ev,bv);ev.prototype.Vb=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.v(fv,bv);fv.prototype.Vb=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.v(gv,bv);gv.prototype.Vb=function(){return"metadata_type_image_companion_ad_renderer"};
g.v(hv,bv);hv.prototype.Vb=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.v(iv,bv);iv.prototype.Vb=function(){return"metadata_type_ad_info_ad_metadata"};
g.v(jv,bv);jv.prototype.Vb=function(){return"metadata_ad_video_is_listed"};
g.v(kv,bv);kv.prototype.Vb=function(){return"metadata_type_ad_placement_config"};
g.v(lv,bv);lv.prototype.Vb=function(){return"metadata_type_ad_pod_info"};
g.v(mv,bv);mv.prototype.Vb=function(){return"metadata_type_ad_video_id"};
g.v(nv,bv);nv.prototype.Vb=function(){return"metadata_type_ad_video_url"};
g.v(ov,bv);ov.prototype.Vb=function(){return"metadata_type_content_cpn"};
g.v(pv,bv);pv.prototype.Vb=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.v(qv,bv);qv.prototype.Vb=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.v(rv,bv);rv.prototype.Vb=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.v(tv,bv);tv.prototype.Vb=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.v(uv,bv);uv.prototype.Vb=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.v(vv,bv);vv.prototype.Vb=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.v(wv,bv);wv.prototype.Vb=function(){return"metadata_type_linked_in_player_layout_id"};
g.v(xv,bv);xv.prototype.Vb=function(){return"metadata_type_linked_in_player_slot_id"};
g.v(yv,bv);yv.prototype.Vb=function(){return"metadata_type_player_bytes_callback"};
g.v(zv,bv);zv.prototype.Vb=function(){return"metadata_type_player_bytes_callback_ref"};
g.v(Av,bv);Av.prototype.Vb=function(){return"metadata_type_sub_layouts"};
g.v(Bv,bv);Bv.prototype.Vb=function(){return"metadata_type_cue_point"};
g.v(Cv,bv);Cv.prototype.Vb=function(){return"metadata_type_video_length_seconds"};
g.v(Dv,bv);Dv.prototype.Vb=function(){return"metadata_type_player_vars"};
g.v(Ev,bv);Ev.prototype.Vb=function(){return"metadata_type_sodar_extension_data"};
g.v(Fv,bv);Fv.prototype.Vb=function(){return"metadata_type_layout_enter_ms"};
g.v(Gv,bv);Gv.prototype.Vb=function(){return"metadata_type_layout_exit_ms"};
g.v(Hv,bv);Hv.prototype.Vb=function(){return"metadata_type_media_sub_layout_index"};
g.v(Iv,bv);Iv.prototype.Vb=function(){return"metadata_type_dai"};
g.v(Jv,bv);Jv.prototype.Vb=function(){return"metadata_type_ad_intro"};
g.v(Kv,bv);Kv.prototype.Vb=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.v(Lv,bv);Lv.prototype.Vb=function(){return"metadata_type_drift_recovery_ms"};
g.v(Mv,bv);Mv.prototype.Vb=function(){return"metadata_type_fulfilled_layout"};
g.v(Nv,bv);Nv.prototype.Vb=function(){return"metadata_type_ad_break_request_data"};
g.v(Ov,bv);Ov.prototype.Vb=function(){return"metadata_type_ad_break_response_data"};
g.v(Pv,bv);Pv.prototype.Vb=function(){return"metadata_type_remote_slots_data"};
g.v(Qv,bv);Qv.prototype.Vb=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.v(Rv,bv);Rv.prototype.Vb=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.v(Sv,bv);Sv.prototype.Vb=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.v(Tv,bv);Tv.prototype.Vb=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};var R_={},ow=(R_.AD_MARKER="ytp-ad-progress",R_.CHAPTER_MARKER="ytp-chapter-marker",R_.TIME_MARKER="ytp-time-marker",R_);g.v($v,g.F);
$v.prototype.dB=function(){var a=this.i().PA("SLOT_TYPE_PLAYER_BYTES",1),b=$u(this.Ta.get(),1).clientPlaybackNonce,c=$u(this.Ta.get(),1).rk,d=!1,e=void 0;a=g.q(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;var h="SLOT_TYPE_PLAYER_BYTES"===f.sb&&f.kc instanceof Vv?f.kc.em:void 0;if(h&&h===b){h=R(f.Fa,"metadata_type_fulfilled_layout");if(d){d=String(e&&h?e.layoutId===h.layoutId:!1);var l=String(aw(e,h)),m=String;if(e&&h&&"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"===e.layoutType&&"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"===h.layoutType){var n=
R(e.Fa,"metadata_type_sub_layouts");var p=R(h.Fa,"metadata_type_sub_layouts");n=n&&p?aw(n[0],p[0]):!1}else n=!1;Q("More than 1 preroll playerBytes slot detected",f,h,{matches_layout_id:d,matches_ad_video_id_media:l,matches_ad_video_id_composite_first:m(n),found_layout_id:(null===e||void 0===e?void 0:e.layoutId)||"empty",collide_layout_id:(null===h||void 0===h?void 0:h.layoutId)||"empty",is_cached_playback:c?"true":"false"})}d=!0;e=h}}return d};
$v.prototype.Sh=function(a,b,c,d,e,f){var h=this,l=$u(this.Ta.get(),1);MJ(this.Ka.get())&&c!==l.rk&&Q("isCachedPlayback !== contentPlaybackData.cachedLoad",void 0,void 0,{cpn:l.clientPlaybackNonce,isCachedPlayback:String(c),"contentPlaybackData.cachedLoad":String(l.rk)});MJ(this.Ka.get())&&l.rk?(Q("Ignoring ads for cached playback.",void 0,void 0,{cpn:l.clientPlaybackNonce,"adPlacementRenderers length":String(d.length),"allAdPlacementRenderers length":String(e.length)}),this.Ea.get().yk()):(Yu(this.Ib.get(),
"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return av(h.Qc.get(),d,e,a,b,f,l)}),MJ(this.Ka.get())&&vDa(this.Fz))};
$v.prototype.Pk=function(){};var cz=!1;var vza=/^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\/)/,gw=/^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)?\.com\/|([A-Za-z0-9-]{1,63}\.)*(youtube\.googleapis\.com)[.]?(:[0-9]+)?\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.c\.googlers\.com(:[0-9]+)?\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|(tv|tv-green-qa|tv-release-qa)\.youtube\.com\/|[A-Za-z0-9-]+\.prod\.google\.com(:[0-9]+)?\/|m?web-ppg\.corp\.google\.com\/)/,
wza=/^https?:\/\/(www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/slav)/,Ffa=/^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|youtube\-nocookie\.com|youtubekids\.com)[.]?(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$))/,
Gfa=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?\//,Dfa=/^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)|$))/,Afa=/^((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\/)/,
Bfa=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?\//,xza=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/,Cfa=/^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)/,yfa=/^((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|xfx7\.com|yt\.akamaized\.net|chat\.google\.com|shopping\.google\.com|cdn\.shoploop\.tv)[.]?(:[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\/.*$)/,
zfa=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?\//,gha=/^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)/,
eha=/^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|class\.photos\.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|youtube\-nocookie\.com|youtubekids\.com|vevo\.com|chat\.google\.com|meet\.google\.com|stadia\.google\.com|shoploop\.area120\.google\.com|shopping\.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)/,
fha=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?(\/|$)/,yEa=/^(https\:\/\/photos\.google\.com|https\:\/\/get\.google\.com|https\:\/\/class\.photos\.google\.com|https\:\/\/currents\.google\.com|https\:\/\/mail\.google\.com|https\:\/\/chat\.google\.com|https\:\/\/stadia\.google\.com|https\:\/\/one\.google\.com|https\:\/\/shoploop\.area120\.google\.com|https\:\/\/shopping\.google\.com)$|^http:\/\/[0-9]+\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?$|^https:\/\/((staging|stream|today)\.)?meet\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)*(crowdsource|datacompute)\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)*(youtube|youtubekids)\.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$)/,
zEa=/^(https\:\/\/plus\.google\.com)$/;var ew=!1;g.pw.prototype.getId=function(){return this.id};
g.pw.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+qw(this.start)+", "+qw(this.end)+"]"};
g.pw.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 Hfa=1;g.pw.prototype.getId=g.pw.prototype.getId;g.v(vw,g.pw);vw.prototype.deactivate=function(){this.l=!0};
vw.prototype.xt=function(){return this.end-this.start};var S_;var AEa=g.Uc,BEa=AEa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!BEa||2>BEa.length)S_=void 0;else{var T_=AEa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);S_=T_&&6==T_.length?Number(T_[5].replace("_",".")):0}var jH=S_,MM=0<=jH;MM&&0<=g.Uc.search("Safari")&&g.Uc.search("Version");g.v(Cw,hr);g.v(Dw,hr);var Kfa=new ir("aft-recorded",Cw),$x=new ir("timing-sent",Dw);var U_=window,Vx=U_.performance||U_.mozPerformance||U_.msPerformance||U_.webkitPerformance||new Jfa;var Mw=!1,Lfa=(0,g.B)(Vx.clearResourceTimings||Vx.webkitClearResourceTimings||Vx.mozClearResourceTimings||Vx.msClearResourceTimings||Vx.oClearResourceTimings||g.Ka,Vx);var Uw=g.A.ytLoggingLatencyUsageStats_||{};g.Fa("ytLoggingLatencyUsageStats_",Uw,void 0);Sw.prototype.tick=function(a,b,c){Vw(this,"tick_"+a+"_"+b)||g.Qr("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c})};
Sw.prototype.info=function(a,b){var c=Object.keys(a).join("");Vw(this,"info_"+c+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Qr("latencyActionInfo",a))};
Sw.prototype.span=function(a,b){var c=Object.keys(a).join("");Vw(this,"span_"+c+"_"+b)||(a.clientActionNonce=b,g.Qr("latencyActionSpan",a))};var V_={},Px=(V_.auto_search="LATENCY_ACTION_AUTO_SEARCH",V_.ad_to_ad="LATENCY_ACTION_AD_TO_AD",V_.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",V_.app_startup="LATENCY_ACTION_APP_STARTUP",V_["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",V_["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",V_["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",V_.browse="LATENCY_ACTION_BROWSE",V_.channels="LATENCY_ACTION_CHANNELS",V_.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",
V_["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",V_["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",V_["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",V_["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",V_["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",V_["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",V_["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",V_["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",
V_["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",V_["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",V_.chips="LATENCY_ACTION_CHIPS",V_["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",V_["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",V_.embed="LATENCY_ACTION_EMBED",V_.home="LATENCY_ACTION_HOME",V_.library="LATENCY_ACTION_LIBRARY",V_.live="LATENCY_ACTION_LIVE",V_.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",V_.onboarding="LATENCY_ACTION_KIDS_ONBOARDING",
V_.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",V_.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",V_.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",V_.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",V_["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",V_["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",V_.prebuffer="LATENCY_ACTION_PREBUFFER",V_.prefetch="LATENCY_ACTION_PREFETCH",V_.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",
V_.profile_switcher="LATENCY_ACTION_KIDS_PROFILE_SWITCHER",V_.results="LATENCY_ACTION_RESULTS",V_.search_ui="LATENCY_ACTION_SEARCH_UI",V_.search_suggest="LATENCY_ACTION_SUGGEST",V_.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",V_.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",V_.settings="LATENCY_ACTION_SETTINGS",V_.tenx="LATENCY_ACTION_TENX",V_.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",V_.watch="LATENCY_ACTION_WATCH",V_.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",V_["watch,watch7"]=
"LATENCY_ACTION_WATCH",V_["watch,watch7_html5"]="LATENCY_ACTION_WATCH",V_["watch,watch7ad"]="LATENCY_ACTION_WATCH",V_["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",V_.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",V_.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",V_["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",V_["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",V_["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",V_["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",V_["video.video_editor"]=
"LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",V_["video.video_editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",V_["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",V_.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",V_.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",V_.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",V_),W_={},Sx=(W_.ad_allowed="adTypesAllowed",W_.yt_abt="adBreakType",W_.ad_cpn="adClientPlaybackNonce",W_.ad_docid=
"adVideoId",W_.yt_ad_an="adNetworks",W_.ad_at="adType",W_.aida="appInstallDataAgeMs",W_.browse_id="browseId",W_.p="httpProtocol",W_.t="transportProtocol",W_.cpn="clientPlaybackNonce",W_.ccs="creatorInfo.creatorCanaryState",W_.csn="clientScreenNonce",W_.docid="videoId",W_.GetHome_rid="requestIds",W_.GetSearch_rid="requestIds",W_.GetPlayer_rid="requestIds",W_.GetWatchNext_rid="requestIds",W_.GetBrowse_rid="requestIds",W_.GetLibrary_rid="requestIds",W_.is_continuation="isContinuation",W_.is_nav="isNavigation",
W_.b_p="kabukiInfo.browseParams",W_.is_prefetch="kabukiInfo.isPrefetch",W_.is_secondary_nav="kabukiInfo.isSecondaryNav",W_.prev_browse_id="kabukiInfo.prevBrowseId",W_.query_source="kabukiInfo.querySource",W_.voz_type="kabukiInfo.vozType",W_.yt_lt="loadType",W_.mver="creatorInfo.measurementVersion",W_.yt_ad="isMonetized",W_.nr="webInfo.navigationReason",W_.nrsu="navigationRequestedSameUrl",W_.ncnp="webInfo.nonPreloadedNodeCount",W_.pnt="performanceNavigationTiming",W_.prt="playbackRequiresTap",W_.plt=
"playerInfo.playbackType",W_.pis="playerInfo.playerInitializedState",W_.paused="playerInfo.isPausedOnLoad",W_.yt_pt="playerType",W_.fmt="playerInfo.itag",W_.yt_pl="watchInfo.isPlaylist",W_.yt_pre="playerInfo.preloadType",W_.yt_ad_pr="prerollAllowed",W_.pa="previousAction",W_.yt_red="isRedSubscriber",W_.rce="mwebInfo.responseContentEncoding",W_.scrh="screenHeight",W_.scrw="screenWidth",W_.st="serverTimeMs",W_.ssdm="shellStartupDurationMs",W_.br_trs="tvInfo.bedrockTriggerState",W_.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",
W_.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",W_.label="tvInfo.label",W_.is_mdx="tvInfo.isMdx",W_.preloaded="tvInfo.isPreloaded",W_.upg_player_vis="playerInfo.visibilityState",W_.query="unpluggedInfo.query",W_.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",W_.yt_vst="videoStreamType",W_.vph="viewportHeight",W_.vpw="viewportWidth",W_.yt_vis="isVisible",W_.rcl="mwebInfo.responseContentLength",W_.GetSettings_rid="requestIds",W_.GetTrending_rid="requestIds",W_.GetMusicSearchSuggestions_rid=
"requestIds",W_.REQUEST_ID="requestIds",W_),Mfa="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(" "),X_={},Tx=(X_.ccs="CANARY_STATE_",X_.mver="MEASUREMENT_VERSION_",X_.pis="PLAYER_INITIALIZED_STATE_",X_.yt_pt="LATENCY_PLAYER_",
X_.pa="LATENCY_ACTION_",X_.yt_vst="VIDEO_STREAM_TYPE_",X_),Nfa="all_vc ap aq c cver cbrand cmodel cplatform ctheme ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");var Y_=window;Y_.ytcsi&&(Y_.ytcsi.info=$w,Y_.ytcsi.tick=ax);var Tha={yX:1,OX:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var gS=16/9,CEa=[.25,.5,.75,1,1.25,1.5,1.75,2],DEa=CEa.concat([3,4,5,6,7,8,9,10,15]);cy.prototype.getLanguageInfo=function(){return this.i};
cy.prototype.toString=function(){return this.i.name};
cy.prototype.getLanguageInfo=cy.prototype.getLanguageInfo;var Pfa={HU:"auto",A4:"tiny",PZ:"light",j4:"small",L0:"medium",LZ:"large",FY:"hd720",BY:"hd1080",CY:"hd1440",DY:"hd2160",EY:"hd2880",LY:"highres",UNKNOWN:"unknown"};var Z_;Z_={};g.fy=(Z_.auto=0,Z_.tiny=144,Z_.light=144,Z_.small=240,Z_.medium=360,Z_.large=480,Z_.hd720=720,Z_.hd1080=1080,Z_.hd1440=1440,Z_.hd2160=2160,Z_.hd2880=2880,Z_.highres=4320,Z_);dy.prototype.isLocked=function(){return this.u&&!!this.l&&this.l===this.i};
dy.prototype.compose=function(a){if(a.u&&hy(a))return YF;if(a.u||hy(this))return a;if(this.u||hy(a))return this;var b=this.l&&a.l?Math.max(this.l,a.l):this.l||a.l,c=this.i&&a.i?Math.min(this.i,a.i):this.i||a.i;b=Math.min(b,c);return b===this.l&&c===this.i?this:new dy(b,c,!1,c===this.i?this.reason:a.reason)};
dy.prototype.B=function(a){return a.video?jy(this,a.video.quality):!1};
var Cya=gy("auto","hd1080",!1,"l"),Eva=gy("auto","large",!1,"l"),YF=gy("auto","auto",!1,"p");gy("small","auto",!1,"p");ky.prototype.So=function(a){a=a||YF;for(var b=g.Ie(this.videoInfos,function(h){return a.B(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].Za();
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
ky.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var By={c4:function(a){a.reverse()},
N2:function(a,b){a.splice(0,b)},
yV:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}};Dy.prototype.set=function(a,b){this.i[a]!==b&&(this.i[a]=b,this.url="")};
Dy.prototype.get=function(a){Fy(this);return this.i[a]||null};
Dy.prototype.clone=function(){var a=new Dy(this.l,this.C);a.u=this.u;a.path=this.path;a.B=this.B;a.i=g.Ub(this.i);a.url=this.url;return a};g.k=g.Oy.prototype;g.k.Uy=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.gj(a))?a.duration:0};
g.k.yG=function(a){return this.getDuration(a)};
g.k.ij=function(){return this.segments.length?this.segments[0].Ia:-1};
g.k.Vf=function(a){return(a=this.gj(a))?a.ingestionTime:NaN};
g.k.RA=function(a){return(a=this.gj(a))?a.i:null};
g.k.uc=function(){return this.segments.length?this.segments[this.segments.length-1].Ia:-1};
g.k.Qm=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.fd=function(){return this.segments[0].startTime};
g.k.Wq=function(){return this.segments.length};
g.k.Il=function(){return 0};
g.k.zi=function(a){return(a=this.Oq(a))?a.Ia:-1};
g.k.QA=function(a){return(a=this.gj(a))?a.sourceURL:""};
g.k.Xf=function(a){return(a=this.gj(a))?a.startTime:0};
g.k.Aw=ba(1);g.k.xd=function(){return 0<this.segments.length};
g.k.gj=function(a){a=g.ub(this.segments,new Ny(a,0,0,0,""),function(b,c){return b.Ia-c.Ia});
return 0<=a?this.segments[a]:null};
g.k.Oq=function(a){a=g.ub(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return 0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.k.append=function(a){if(a.length)if(a=g.ob(a),this.segments.length){var b=this.segments.length?g.ab(this.segments).endTime:0,c=a[0].Ia-this.uc();1<c&&ib(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.FG=function(){return 0};var LP=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}();Ty.prototype.skip=function(a){this.i+=a};
Ty.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var $_={},EEa=($_.predictStart="predictStart",$_.start="start",$_["continue"]="continue",$_.stop="stop",$_),Xfa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};var uz=!1;var Lz=!0;Qz.prototype.set=function(a,b){this.Kh.get(a);this.i[a]=b;this.url=""};
Qz.prototype.get=function(a){return this.i[a]||this.Kh.get(a)};g.k=$z.prototype;g.k.hf=function(){return!!this.i&&this.index.xd()};
g.k.jq=function(){return!1};
g.k.XD=function(a){return[a]};
g.k.Kx=function(a){return[a]};
g.k.Sq=function(){var a=g.q(this.info.id.split(";")),b=a.next().value;a=a.next().value;return b+";;"+(void 0===a?"":a)};aA.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};gA.prototype.isEncrypted=function(){return this.i.info.isEncrypted()};
gA.prototype.isVideo=function(){return!!this.i.info.video};oA.prototype.oi=function(){return hA(this.i[0])};g.v(tA,$z);g.k=tA.prototype;g.k.Jg=function(){return!1};
g.k.St=function(){return!1};
g.k.jq=function(){return!this.X};
g.k.Vo=function(){if(this.jq())return[];var a=new gA(1,this,this.initRange,"getMetadataRequestInfos");return[new oA([a],this.X)]};
g.k.iq=function(){return null};
g.k.hs=function(a){this.jm(a);return this.lm(a.Zd?a.Ia+1:a.Ia,!1)};
g.k.Sm=function(a,b){b=void 0===b?!1:b;a=this.index.zi(a);b&&(a=Math.min(this.index.uc(),a+1));return this.lm(a,!0)};
g.k.aB=function(a){this.i=new Uint8Array(RA(a).buffer)};
g.k.jm=function(a){return 0===a.l?!0:this.index.uc()>a.Ia&&this.index.ij()<=a.Ia+1};
g.k.update=function(a,b,c){this.index.append(a);Py(this.index,c);this.J=b};
g.k.hf=function(){return this.jq()?!0:$z.prototype.hf.call(this)};
g.k.lm=function(a,b){var c=this.index.QA(a),d=this.index.Xf(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.l?this.info.l*e:1E3;b=!b;var h=f;f=a===this.index.uc()&&!this.J&&0<f;a=new gA(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,h,f,b);return new oA([a],c)};
g.k.LA=function(){return this.jq()?0:this.initRange.length};
g.k.jC=function(){return!1};yA.prototype.update=function(a,b){var c=void 0;this.l&&(c=this.l);var d=new yA,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+uA(a,"timescale")||1,h=(+e[0].getAttribute("t")||0)/f,l=+uA(a,"startNumber")||0;d.B=h;var m=h,n=+uA(a,"presentationTimeOffset")||0;b=c?c.startSecs+c.durationSecs:b?m-n/f:0;m=Date.parse(xA(uA(a,"yt:segmentIngestTime")))/1E3;d.C="SegmentTemplate"===a.parentElement.tagName;d.C&&(d.J=uA(a,"media"));a=c?l-c.Ia:1;d.I=0<a?0:-a+1;a=g.q(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,r=+e.getAttribute("r")||0,t=0;t<=r;t++)if(c&&l<=c.Ia)l++;else{var u=new lga(l,b,n,m+p,h);d.i.push(u);var x=u.startSecs;u=e.getAttribute("yt:cuepointTimeOffset");var y=e.getAttribute("yt:cuepointDuration");if(u&&y){u=Number(u);x=(cz?u/f:-u/f)+x;y=Number(y)/f;var E=e.getAttribute("yt:cuepointContext")||null,D=e.getAttribute("yt:cuepointIdentifier")||"";var G=e.getAttribute("yt:cuepointEvent")||"";G=EEa[G]||"unknown";u=new bw(x,
y,E,D,G,u)}else u=null;u&&d.u.push(u);l++;b+=n;h+=n;m+=n+p}}d.i.length&&(d.l=g.ab(d.i))}this.I=d.I;this.l=d.l||this.l;pb(this.i,d.i);pb(this.u,d.u);this.C=d.C;this.J=d.J;-1===this.B&&(this.B=d.getStreamTimeOffset())};
yA.prototype.getStreamTimeOffset=function(){return-1===this.B?0:this.B};g.v(zA,g.Oy);g.k=zA.prototype;g.k.ij=function(){return this.pk?this.segments.length?this.Oq(this.fd()).Ia:-1:g.Oy.prototype.ij.call(this)};
g.k.fd=function(){if(this.kf)return 0;if(!this.pk)return g.Oy.prototype.fd.call(this);if(!this.segments.length)return 0;var a=Math.max(g.ab(this.segments).endTime-this.Dl,0);return 0<this.ze&&this.Oq(a).Ia<this.ze?this.gj(this.ze).startTime:a};
g.k.Qm=function(){if(!this.segments.length)return g.Oy.prototype.Qm.call(this);var a=this.uc();if(!this.pk||a<=this.segments[this.segments.length-1].Ia)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new Ny(a,Math.max(0,b.startTime-(b.Ia-a)*this.Yg),this.Yg,0,"sq/"+a,void 0,void 0,!0)}return null!==this.l&&a.pending&&3===this.l?this.kf?Math.min(this.Dl,a.startTime):a.startTime:this.kf?Math.min(this.Dl,a.endTime):a.endTime};
g.k.Wq=function(){return this.pk?this.segments.length?this.uc()-this.ij()+1:0:g.Oy.prototype.Wq.call(this)};
g.k.uc=function(){var a=Math.min(this.Sg,Math.max(g.Oy.prototype.uc.call(this),this.ls)),b=1E3*this.Dl;b=0<this.i&&this.i<b;this.kf&&0<this.Dl&&0<this.ls&&!b&&(b=this.Oq(this.Dl))&&(a=Math.min(b.Ia-1,a));return a};
g.k.Tq=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.Uy=function(a){var b=AA(this,a.Ia);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.Xt&&0===a.Ia%(300/this.Yg)){var c=this.segments[0].Ia,d=Math.floor(this.Xt/this.Yg);a=a.Ia-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.Oq=function(a){if(!this.pk)return g.Oy.prototype.Oq.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].Ia-Math.ceil((this.segments[0].startTime-a)/this.Yg));else if(a>=b.endTime)b=b.Ia+Math.floor((a-b.endTime)/this.Yg+1);else{b=vb(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.Ia-b.Ia-1))+1)+b.Ia}return this.gj(b)};
g.k.gj=function(a){if(!this.pk)return g.Oy.prototype.gj.call(this,a);if(!this.segments.length)return null;var b=AA(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Yg;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ia-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ia-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ia-d.Ia-1),d=d.endTime+(a-d.Ia-1)*b);return new Ny(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.v(CA,tA);g.k=CA.prototype;g.k.St=function(){return!0};
g.k.hf=function(){return!0};
g.k.jm=function(a){return!a.u};
g.k.Vo=function(){return[]};
g.k.Sm=function(a,b){b=void 0===b?!1:b;return"number"!==typeof a||isFinite(a)?tA.prototype.Sm.call(this,a,b):(a=new gA(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Ri,void 0,this.Ri*this.info.l),new oA([a],""))};
g.k.lm=function(a,b){var c=void 0===c?!1:c;if(BA(this.index,a))return tA.prototype.lm.call(this,a,b);var d=this.index.Xf(a),e=b?0:this.Ri*this.info.l;b=!b;c=new gA(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.uc()&&!this.J&&0<e,b);return new oA([c],0<=a?"sq/"+a:"")};g.v(DA,$z);g.k=DA.prototype;g.k.Jg=function(){return!1};
g.k.St=function(){return!1};
g.k.Vo=function(){if(this.J){var a=new gA(1,this,void 0,"otfInit");return[new oA([a],this.J)]}a=new gA(1,this,this.initRange,"otfInitInfo");var b=new gA(2,this,this.indexRange,"otfIndexInfo");return[new oA([a,b])]};
g.k.iq=function(){return null};
g.k.hs=function(a){this.jm(a);return EA(this,a.Ia+(a.Zd?1:0),!1)};
g.k.Sm=function(a,b){b=void 0===b?!1:b;a=this.index.zi(a);b&&(a=Math.min(this.index.uc(),a+1));return EA(this,a,!0)};
g.k.aB=function(a){if(1===a.info.type)this.i||(this.i=NA(a.i)),a.l&&"http://youtube.com/streaming/otf/durations/112015"===a.l.uri&&tga(this,a.l);else if(2===a.info.type)if(g.VA(this.info)){if(!this.index.xd()&&(a=g.hz(RA(a),0,1936286840))){var b=[],c=qz(a);a=c.rC.length;var d=c.dy,e=c.rC,f=c.Zx;c=this.indexRange.end+c.mG+1;for(var h=0,l=0;l<a;l++){var m=f[l]/d,n=e[l];b.push(new Ny(l,h,m,NaN,"range/"+c+"-"+(c+n-1)));h+=m;c+=n}this.index.append(b)}}else if(this.info.Ne()&&this.i&&(d=new vz(new DataView(this.i.buffer)),
b=Kz(d))&&(d=new vz(RA(a)),a=Mz(d,b.Iu,this.indexRange.end))){d=[];e=b.aD/b.bD;f=a.length-1;for(c=0;c<f;c++)h=a[c],l=a[c+1],m=h.Wv*e,d.push(new Ny(c,m,l.Wv*e-m,NaN,"range/"+h.Jo+"-"+(l.Jo-1)));c=a[f].Wv*e;d.push(new Ny(f,c,b.duration*e-c,NaN,"range/"+a[f].Jo+"-"+(b.AC+b.Iu)));this.index.append(d)}};
g.k.jm=function(a){return 0===a.l?!0:this.index.uc()>a.Ia&&this.index.ij()<=a.Ia+1};
g.k.LA=function(){return this.initRange&&this.indexRange?this.initRange.length+this.indexRange.length:0};
g.k.jC=function(){return!1};FA.prototype.append=function(a){if(GA(this,a)){var b=this.i[this.i.length-1];this.i[this.i.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);IA(this)}else this.i.push(a);this.totalLength+=a.length};
FA.prototype.split=function(a){for(var b=new FA,c=new FA,d=g.q(this.i),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{Hw:b,Np:c}};
FA.prototype.isFocused=function(a){return a>=this.u&&a<this.u+this.i[this.l].length};
FA.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.u&&IA(this);this.u+this.i[this.l].length<=a&&this.l<this.i.length;)this.u+=this.i[this.l].length,this.l+=1;this.B=void 0}};QA.prototype.verify=function(a){if(this.info.l!==this.i.totalLength)return a.slength=this.info.l.toString(),a.range=this.i.totalLength.toString(),!1;if(1===this.info.i.info.containerType){if(8>this.info.l||4===this.info.type)return!0;var b=RA(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.l&&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.i.info.containerType){if(4>this.info.l||4===this.info.type)return!0;c=RA(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.k=g.bB.prototype;g.k.Il=function(a){return this.offsets[a]};
g.k.Xf=function(a){return this.i[a]/this.u};
g.k.Aw=ba(0);g.k.Vf=function(){return NaN};
g.k.RA=function(){return null};
g.k.getDuration=function(a){a=this.yG(a);return 0<=a?a/this.u:-1};
g.k.yG=function(a){return a+1<this.count||this.l?this.i[a+1]-this.i[a]:-1};
g.k.ij=function(){return 0};
g.k.uc=function(){return this.count-1};
g.k.Qm=function(){return this.l?this.i[this.count]/this.u:NaN};
g.k.fd=function(){return 0};
g.k.Wq=function(){return this.count};
g.k.QA=function(){return""};
g.k.zi=function(a){a=g.ub(this.i.subarray(0,this.count),a*this.u);return 0<=a?a:Math.max(0,-a-2)};
g.k.xd=function(){return 0<=this.uc()};
g.k.FG=function(a,b){if(a>=this.uc())return 0;var c=0;for(b=this.Xf(a)+b;a<this.uc()&&b>this.Xf(a);a++)c=Math.max(c,(a+1<this.count||this.l?this.offsets[a+1]-this.offsets[a]:-1)/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.i;this.i=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.i[a]=c[a]};
g.k.cap=function(a,b){cB(this);this.l=!0;this.i[this.count]=b;this.offsets[this.count]=a};g.v(dB,$z);g.k=dB.prototype;g.k.Vo=function(a){var b=new gA(1,this,this.initRange,"initInfo"),c=new gA(2,this,this.indexRange,"indexInfo"),d=[],e=[b];jA(b,c)?e.push(c):(d.push(new oA([c])),a=0);isNaN(this.contentLength)&&(a=0);b=e[e.length-1];a=Math.min(a,this.contentLength-(b.range.end-e[0].range.start+1));0<a&&(a=cA(b.range.end+1,a),e.push(new gA(4,this,a,"tbdRange")));d.push(new oA(e));return d};
g.k.aB=function(a){if(1===a.info.type){if(this.i)return;this.i=NA(a.i)}else if(2===a.info.type){if(this.J||0<=this.index.uc())return;if(g.VA(this.info)){var b=this.index,c=RA(a);a=a.info.range.start;var d=g.hz(c,0,1936286840);c=qz(d);b.u=c.dy;var e=c.QN;b.offsets[0]=c.mG+a+d.size;b.i[0]=e;b.l=!0;a=c.Zx.length;for(d=0;d<a;d++){e=b;var f=c.rC[d],h=c.Zx[d];e.count++;cB(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.i[e.count]=e.i[e.count-1]+h}}else this.J=RA(a)}if(this.info.Ne()&&this.i&&this.J){c=new DataView(this.i.buffer);
b=this.index;a=this.J;d=this.indexRange.end;e=new vz(c);c=Kz(e);if(null!==c&&(b.u=c.bD/c.aD,e=new vz(a),a=Mz(e,c.Iu,d),null!==a)){a=g.q(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.Jo,f=f.Wv,cB(d),d.offsets[d.count]=e,d.i[d.count]=f,d.count++;b.cap(c.AC+c.Iu,c.duration)}this.J=null}};
g.k.XD=function(a){for(var b=this.Kx(a.info),c=a.info.range.start+a.info.Ab,d=a.u,e=[],f=0;f<b.length;f++){var h=b[f].l;h=a.i.split(b[f].range.start+b[f].Ab-c).Np.split(h).Hw;e.push(new QA(b[f],h,d));d=!1}return e};
g.k.Kx=function(a){for(var b=a.range.start+a.Ab,c=0;c<this.index.uc()&&b>=this.index.Il(c+1);)c++;return eB(this,c,b,a.l).i};
g.k.jm=function(a){return this.hf()?!0:isNaN(this.contentLength)?!1:a.range.end+1<this.contentLength};
g.k.iq=function(a,b){this.jm(a);if(!this.hf())return b=cA(a.range.end+1,b),b.end+1>this.contentLength&&(b=new aA(b.start,this.contentLength-1)),a=[new gA(4,a.i,b,"getNextRequestInfoByLength")],new oA(a);4===a.type&&(a=this.Kx(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Ab+a.l;3===a.type&&(c=a.Ia,d===a.range.end+1&&(c+=1));return eB(this,c,d,b)};
g.k.hs=function(){return null};
g.k.Sm=function(a,b){b=void 0===b?!1:b;a=this.index.zi(a);b&&(a=Math.min(this.index.uc(),a+1));return eB(this,a,this.index.Il(a),0)};
g.k.Jg=function(){return!0};
g.k.St=function(){return!1};
g.k.LA=function(){return this.indexRange.length+this.initRange.length};
g.k.jC=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};
g.k.Sq=function(){var a=g.q(this.info.id.split(";")),b=a.next().value;a=a.next().value;return b+";"+this.lastModified+";"+(void 0===a?"":a)};var a0={},ry=(a0.WIDTH={name:"width",video:!0,valid:640,invalid:99999},a0.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},a0.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},a0.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},a0.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},a0.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},a0.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},a0.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},a0.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},a0.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},a0);var Z={},kB=(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 iB="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");hB.prototype.isHdr=function(){return"smpte2084"===this.l||"arib-std-b67"===this.l};g.k=lB.prototype;g.k.Za=function(){return this.video};
g.k.yc=function(){return this.id.split(";",1)[0]};
g.k.Ne=function(){return 2===this.containerType};
g.k.isEncrypted=function(){return!!this.Be};
g.k.isAudio=function(){return!!this.audio};
g.k.isVideo=function(){return!!this.video};sB.prototype.getName=function(){return this.name};
sB.prototype.getId=function(){return this.id};
sB.prototype.getIsDefault=function(){return this.isDefault};
sB.prototype.toString=function(){return this.name};
sB.prototype.getName=sB.prototype.getName;sB.prototype.getId=sB.prototype.getId;sB.prototype.getIsDefault=sB.prototype.getIsDefault;g.v(IB,g.P);g.k=IB.prototype;g.k.appendBuffer=function(a,b,c){if(this.qd.nw()!==this.appendWindowStart+this.start||this.qd.EA()!==this.appendWindowEnd+this.start||this.qd.Lc()!==this.timestampOffset+this.start)this.qd.supports(1),this.qd.EC(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.qd.Nr(this.timestampOffset+this.start);this.qd.appendBuffer(a,b,c)};
g.k.abort=function(){this.qd.abort()};
g.k.remove=function(a,b){this.qd.remove(a+this.start,b+this.start)};
g.k.EC=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.SA=function(){return this.timestampOffset+this.start};
g.k.nw=function(){return this.appendWindowStart};
g.k.EA=function(){return this.appendWindowEnd};
g.k.Nr=function(a){this.timestampOffset=a};
g.k.Lc=function(){return this.timestampOffset};
g.k.wf=function(a){a=this.qd.wf(void 0===a?!1:a);return HB(a,this.start,this.end)};
g.k.Qg=function(){return this.qd.Qg()};
g.k.Uo=function(){return this.qd.Uo()};
g.k.pw=function(){return this.qd.pw()};
g.k.sD=function(a,b){this.qd.sD(a,b)};
g.k.supports=function(a){return this.qd.supports(a)};
g.k.qw=function(){return this.qd.qw()};
g.k.isView=function(){return!0};
g.k.Zu=function(a,b,c){return this.isActive?this.qd.Zu(a,b,c):!1};
g.k.Pz=function(){return this.qd.Pz()?this.isActive:!1};
g.k.isLocked=function(){return this.hv&&!this.isActive};
g.k.Eb=function(a){return this.qd.Eb(a)+(";vw."+this.start+"-"+this.end)};
g.k.At=function(){return this.qd.At()};
g.k.oa=function(){bu(this.qd,this.UG);g.P.prototype.oa.call(this)};var bT=!1;g.v(MB,g.P);g.k=MB.prototype;g.k.appendBuffer=function(a,b,c){var d;this.Mv=!1;c&&(this.Qw=c);b&&(b.isEncrypted()&&(this.tH=this.Qw),3===b.type&&(this.We=b));(null===(d=this.Ob)||void 0===d?0:d.appendBuffer)?this.Ob.appendBuffer(a):this.Ob?this.Ob.append(a):this.Pe&&this.Pe.webkitSourceAppend(this.id,a)};
g.k.abort=function(){try{this.Ob?this.Ob.abort():this.Pe&&this.Pe.webkitSourceAbort(this.id)}catch(a){}this.Qw=this.We=null};
g.k.remove=function(a,b){var c;this.Mv=!1;(null===(c=this.Ob)||void 0===c?0:c.remove)&&this.Ob.remove(a,b)};
g.k.nw=function(){var a;return bT&&this.isVideo?this.appendWindowStart:(null===(a=this.Ob)||void 0===a?void 0:a.appendWindowStart)||0};
g.k.EA=function(){var a;return(null===(a=this.Ob)||void 0===a?void 0:a.appendWindowEnd)||0};
g.k.EC=function(a,b){this.Ob&&(bT&&this.isVideo?(this.appendWindowStart=a,this.Ob.appendWindowEnd=b):a>this.nw()?(this.Ob.appendWindowEnd=b,this.Ob.appendWindowStart=a):(this.Ob.appendWindowStart=a,this.Ob.appendWindowEnd=b))};
g.k.SA=function(){return this.timestampOffset};
g.k.Nr=function(a){bT?this.timestampOffset=a:this.supports(1)&&(this.Ob.timestampOffset=a)};
g.k.Lc=function(){return bT?this.timestampOffset:this.supports(1)?this.Ob.timestampOffset:0};
g.k.wf=function(a){if(void 0===a?0:a)return this.Mv||this.Qg()||(this.CF=this.wf(!1),this.Mv=!0),this.CF;try{return this.Ob?this.Ob.buffered:this.Pe?this.Pe.webkitSourceBuffered(this.id):AB([0],[Infinity])}catch(b){return AB([],[])}};
g.k.Qg=function(){var a;return(null===(a=this.Ob)||void 0===a?void 0:a.updating)||!1};
g.k.Uo=function(){return this.Qw};
g.k.pw=function(){return this.tH};
g.k.sD=function(a,b){this.containerType!==a&&(this.supports(4),NB()&&this.Ob.changeType(b));this.containerType=a};
g.k.qw=function(){return this.We};
g.k.isView=function(){return!1};
g.k.supports=function(a){var b,c,d,e,f;switch(a){case 1:return void 0!==(null===(b=this.Ob)||void 0===b?void 0:b.timestampOffset);case 0:return!(null===(c=this.Ob)||void 0===c||!c.appendBuffer);case 2:return!(null===(d=this.Ob)||void 0===d||!d.remove);case 3:return!!((null===(e=this.Ob)||void 0===e?0:e.addEventListener)&&(null===(f=this.Ob)||void 0===f?0:f.removeEventListener));case 4:return!(!this.Ob||!this.Ob.changeType);default:return!1}};
g.k.Pz=function(){return!this.Qg()};
g.k.isLocked=function(){return!1};
g.k.Eb=function(a){var b,c;a.to=""+this.Lc();a.up=""+ +this.Qg();var d=(null===(b=this.Ob)||void 0===b?void 0:b.appendWindowStart)||0,e=(null===(c=this.Ob)||void 0===c?void 0:c.appendWindowEnd)||Infinity;a.aw=d.toFixed(3)+"-"+e.toFixed(3);try{a.bu=BB(this.wf())}catch(f){}return g.KB(a)};
g.k.oa=function(){this.supports(3)&&(this.Ob.removeEventListener("updateend",this.De),this.Ob.removeEventListener("error",this.De));g.P.prototype.oa.call(this)};
g.k.Zu=function(a,b,c){if(!this.supports(2)||this.Qg())return!1;var d=this.wf(),e=CB(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.Z();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.Z(),this.remove(0,l),!0}catch(m){}return!1};
g.k.Z=function(){};
g.k.At=function(){return this.containerType};OB.prototype.dispose=function(){if(!this.Ha){if(this.l)try{URL.revokeObjectURL(this.i)}catch(a){}this.u=!0}};
OB.prototype.Ha=function(){return this.u};
OB.prototype.toString=function(){return"MediaResource {"+this.i+"}"};g.v(PB,g.F);PB.prototype.getDuration=function(){var a;return(null===(a=this.mediaSource)||void 0===a?void 0:a.duration)||this.u};
PB.prototype.Qg=function(){return!!(this.i&&this.i.Qg()||this.l&&this.l.Qg())};
PB.prototype.C=function(){!this.Ha()&&QB(this)&&this.callback&&(this.callback(this),this.callback=null)};
PB.prototype.B=function(){this.dispose()};var zga=/action_display_post/;g.v(ZB,g.P);g.k=ZB.prototype;g.k.isFailed=function(){return 3===this.state};
g.k.HS=function(a){var b,c=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Lk=this.u=!0;this.timeline||(this.timeline=new nga);rga(this.timeline,a,this.Ma);this.V("refresh");for(a=0;a<c.length;a++){var d=lC(this,c[a]),e=this.isLive&&g.VA(d)&&this.Sa;if(!this.i[d.id]){var f=eC(vA(c[a],"BaseURL").textContent),h=vA(c[a],"Initialization"),l=uA(h,"sourceURL");h=bA(uA(h,"range"));e&&(l="",h=void 0);this.i[d.id]=
new tA(f,d,l,null===h?void 0:h)}d=this.i[d.id];f=uA(c[a],"id","AdaptationSet");f=""!==f?f:uA(c[a],"mimetype","AdaptationSet");l=this.timeline;l=l.u[d.info.id]||l.l[f]||l.i||null;f=l.i;!this.l&&l.getStreamTimeOffset()&&(this.l=l.getStreamTimeOffset());if(l.C)for(e=[],f=g.q(f),h=f.next();!h.done;h=f.next()){h=h.value;var m=d.info.id,n=8*d.info.l,p=h.Ia,r=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$",r.toString());e.push(new Ny(h.Ia,h.startSecs,h.durationSecs,h.i,t.join("$"),null,h.l))}else{l=qb(vA(c[a],"SegmentList").getElementsByTagName("SegmentURL"),l.I);h=[];for(m=0;m<l.length;m++){n=h;p=n.push;r=f[m];t=void 0;var u=l[m];b=u.getAttribute("media");if(!e&&(u=u.getAttribute("mediaRange"),null!==u)){var x=u.split("-");x[1]&&0<=Number(x[1])?t=bA(u):b=b+"?range="+u}p.call(n,new Ny(r.Ia,r.startSecs,r.durationSecs,r.i,b,t,r.l))}e=
h}d.update(e,this.isLive,this.Aa)}sga(this.timeline);return!0}this.duration=wA(uA(a,"mediaPresentationDuration"));a:{for(a=0;a<c.length;a++){l=c[a];d=lC(this,l);f=vA(l,"BaseURL");e=eC(f.textContent);h=vA(l,"SegmentBase");l=bA(h.attributes.getNamedItem("indexRange").value);h=bA(h.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);f=Number(f.getAttribute(jC(this,"contentLength")));d=new dB(e,d,h,l,f,NaN);if(!d){c=!1;break a}cC(this,d)}c=!0}return c};
g.k.refresh=function(){if(1!==this.state&&!this.Ha()){var a=g.Id(this.sourceUrl,{start_seq:Jga(this).toString()});g.um(nC(this,a),function(){})}};
g.k.resume=function(){mC(this)};
g.k.fd=function(){if(this.isManifestless&&this.C&&this.l&&this.C-this.l)return this.C&&this.l?this.C-this.l:0;var a=this.i,b;for(b in a){var c=a[b].index;if(c.xd())return c.fd()}return 0};
g.k.getStreamTimeOffset=function(){return this.l};
g.k.Vf=function(a){for(var b in this.i){var c=this.i[b].index;if(c.xd()){var d=c.zi(a),e=c.Vf(d);if(e)return e+a-c.Xf(d)}}return NaN};
var gC=null,hC=!1,kC={commentary:1,alternate:2,dub:3,main:4};uC.prototype.toString=function(){return""};
var tC=[20,100,500,2E3];g.k=xC.prototype;g.k.isActive=function(){return!0};
g.k.Mw=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.Ey=a.prototype[e],d.Gy=b[e],a.prototype[e]=function(f){return function(h){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];m=(0,g.N)();l=f.Ey.apply(this,l);yC(c,f.Gy,(0,g.N)()-m);return l}}(d)),d={Ey:d.Ey,
Gy:d.Gy}}};
g.k.Uc=function(a,b){var c=this;return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];f=(0,g.N)();e=b.apply(null,e);yC(c,a,(0,g.N)()-f);return e}};
g.k.Ou=function(a){return new wC(a)};
g.k.nt=function(a,b){b=void 0===b?1:b;a instanceof wC&&(yC(this,a.name,(0,g.N)()-a.startTimeMs,b),a.i=!0)};
g.k.qC=function(a,b){var c=void 0===c?1:c;var d=(0,g.N)();b();yC(this,a,(0,g.N)()-d,c)};
g.k.oG=function(){var a="",b;for(b in this.profiles)if(this.profiles.hasOwnProperty(b)){var c=this.profiles[b];if(0===c.i)c=null;else{for(var d=c.i.toString()+"."+Math.round(c.u).toString(),e=0;e<tC.length;++e)if(0<c.l[e])d+="."+tC[e].toString()+"_"+Math.round(c.l[e]).toString();else break;c=d}c&&(a+=b+"."+c+";")}this.profiles=new vC;return a};
g.k.toString=function(){return""};g.k=zC.prototype;g.k.isActive=function(){return!1};
g.k.Mw=function(){};
g.k.Uc=function(a,b){return b};
g.k.Ou=function(){};
g.k.nt=function(){};
g.k.qC=function(a,b){b()};
g.k.oG=function(){return""};
g.k.toString=function(){return""};var FEa,b0,gR;FEa=new zC;b0=vo("html5_enable_profiler")||vo("html5_onesie_enable_profiler")?new xC:new zC;g.mR=vo("html5_enable_profiler")?b0:FEa;gR=vo("html5_onesie_enable_profiler")?b0:FEa;var Eza,Yya,jD,$ga,Dya,cha,tU,jua,qD,gwa,CC,uU,Eya,GEa,gza,Wpa,Vpa,Jza,HEa,IEa,kua,oua,Xxa,pza,oza,BC;Eza=g.mR.Uc("plssv",function(a){a.unstorable||(g.Ou("yt-player-volume",a),g.Ou("yt-player-volume",a,2592E3))});
Yya=g.mR.Uc("plsgv",function(){var a=g.Pu("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.Zd(Math.floor(b),0,100),muted:!!a.muted}});
jD=g.mR.Uc("plssbs",function(a){g.Ou("yt-player-bandwidth",a,2592E3)});
$ga=g.mR.Uc("plsgbs",function(){return g.Pu("yt-player-bandwidth")||{}});
Dya=g.mR.Uc("plssq",function(a){g.Ou("yt-player-quality",a,2592E3)});
cha=g.mR.Uc("plswm",function(a,b){var c={};c.values=a;c.halfLives=b;g.Ou("yt-player-memory",c,2592E3)});
tU=g.mR.Uc("plsgq",function(){return g.Pu("yt-player-quality")||"auto"});
jua=g.mR.Uc("plshsq",function(){return"auto"!==tU()});
qD=g.mR.Uc("plslm",function(){var a={values:{},Kl:{}};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});
gwa=g.mR.Uc("plsspc",function(a,b,c){var d=uU();a=AC(a,b);0<+d[a]&&(c=Math.min(+d[a],c));d[a]!==c&&(d[a]=c,g.Ou("yt-player-performance-cap",d,604800))});
CC=g.mR.Uc("plsgpc",function(a,b){return+uU()[AC(a,b)]||8192});
uU=g.mR.Uc("plsgrpd",function(){return g.Pu("yt-player-performance-cap")||{}});
Eya=g.mR.Uc("plscpc",function(a){if(a){a=uU();for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,0!==c.indexOf("1")&&(a[c]=0);g.Ou("yt-player-performance-cap",a,604800)}else g.Qu("yt-player-performance-cap")});
GEa=g.mR.Uc("plsspr",function(a){g.Ou("yt-player-playback-rate",a)});
gza=g.mR.Uc("plsgpr",function(){return Number(g.Pu("yt-player-playback-rate"))||1});
Wpa=g.mR.Uc("plsswlp",function(a){g.Ou("yt-player-watch-later-pending",a)});
Vpa=g.mR.Uc("plsgwlp",function(){return g.Pu("yt-player-watch-later-pending")});
Jza=g.mR.Uc("plssas",function(a){g.Ou("yt-player-autonavstate",a)});
HEa=g.mR.Uc("plsgas",function(){return g.Pu("yt-player-autonavstate")});
IEa=g.mR.Uc("plsshr",function(a){g.Ou("yt-player-headers-readable",a,2592E3)});
kua=g.mR.Uc("plsghr",function(){return g.Pu("yt-player-headers-readable")||!1});
oua=g.mR.Uc("plssrbh",function(a){g.Ou("yt-player-bandaid-host",a,432E3)});
Xxa=g.mR.Uc("plsgrbh",function(){return g.Pu("yt-player-bandaid-host")});
pza=g.mR.Uc("plsspor",function(a){g.Ou("yt-player-playback-on-reload",a)});
oza=g.mR.Uc("plsgpor",function(){return g.Pu("yt-player-playback-on-reload")});
BC=g.mR.Uc("plsgaup",function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}});
g.c0=g.mR.Uc("plssscp",function(a){g.Ou("yt-player-sticky-caption",a)});
g.JEa=g.mR.Uc("plssscp",function(){return g.Pu("yt-player-sticky-caption")});
g.KEa=g.mR.Uc("plssclp",function(a){g.Ou("yt-player-caption-language-preferences",a)});
g.ena=g.mR.Uc("plsgclp",function(){var a=g.Pu("yt-player-caption-language-preferences");return a?a:[]});FC.prototype.clone=function(a){return new FC(this.flavor,a,this.u,this.experiments)};
FC.prototype.Eb=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
FC.prototype.Uf=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 d0={},PC=(d0.playready=["com.youtube.playready","com.microsoft.playready"],d0.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],d0);g.v(QC,g.F);
QC.prototype.initialize=function(a,b){for(var c=this,d=g.q(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.q(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.Be)for(var h=g.q(Object.keys(f.Be)),l=h.next();!l.done;l=h.next())if(l=l.value,PC[l])for(var m=g.q(PC[l]),n=m.next();!n.done;n=m.next())n=n.value,this.l[n]=this.l[n]||new FC(l,n,f.Be[l],this.experiments),this.B[l]=this.B[l]||{},this.B[l][f.mimeType]=!0}gq()&&(this.l["com.youtube.fairplay"]=new FC("fairplay","com.youtube.fairplay","",
this.experiments),this.B.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.i=Qga(b,this.useCobaltWidevine,g.S(this.experiments,"html5_enable_safari_fairplay"),g.EC(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.l[p]})};
QC.prototype.Z=function(){};
QC.prototype.ea=function(a){return g.S(this.experiments,a)};var LEa={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},e0;a:{var f0=g.Uc;f0=f0.toLowerCase();if(-1!=f0.indexOf("android")){var MEa=f0.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(MEa){var NEa=parseFloat(MEa[1]);if(100>NEa){e0=NEa;break a}}var OEa=f0.match("("+g.Lb(LEa).join("|")+")");e0=OEa?LEa[OEa[0]]:0}else e0=void 0}var FD=e0,ED=0<=FD;var iha={RED:"red",K5:"white"};var hha={lU:"adunit",rX:"detailpage",FX:"editpage",IX:"embedded",JX:"embedded_unbranded",NZ:"leanback",R2:"previewpage",U2:"profilepage",W4:"unplugged",J2:"playlistoverview",m4:"sponsorshipsoffer"};TC.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;nq?a=a||PEa[b]:2.2===FD?a=a||QEa[b]:dq()&&(a=a||REa[b]);return!!a};
TC.prototype.isTypeSupported=function(a){this.Z();return this.I?window.cast.receiver.platform.canDisplayType(a):vB(a)};
TC.prototype.disableAv1=function(){this.L=!0};
TC.prototype.Z=function(){};
var QEa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},REa={"application/x-mpegURL":"maybe"},PEa={"application/x-mpegURL":"maybe"};g.v(XC,g.P);XC.prototype.add=function(a,b){!this.items[a]&&(b.Os||b.Rv||b.Yu)&&(this.items[a]=Yb(b),this.V("vast_info_card_add",a))};
XC.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
XC.prototype.get=function(a){return this.items[a]||null};
XC.prototype.isEmpty=function(){return g.Qb(this.items)};var ND={g_:1,h_:2,i_:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};ZC.prototype.ji=function(a,b){var c=Math.pow(this.alpha,a);this.i=b*(1-c)+c*this.i;this.l+=a};
ZC.prototype.Ng=function(){return this.i/(1-Math.pow(this.alpha,this.l))};aD.prototype.ji=function(a,b){a=Math.min(this.i,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.i&&(this.l=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.i;this.B=!0};
aD.prototype.Ng=function(){return this.C?(bD(this,this.u-this.C)+bD(this,this.u)+bD(this,this.u+this.C))/3:bD(this,this.u)};g.v(nD,g.F);var dha=/^([0-9\.]+):([0-9\.]+)$/;var xD="area120-boutique blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),WD={OU:"cbrand",PU:"cbr",QU:"cbrver",XY:"c",aZ:"cver",ZY:"ctheme",YY:"cplayer",k1:"cmodel",Q1:"cnetwork",h2:"cos",j2:"cosver",C2:"cplatform"};g.v(VD,g.F);g.k=VD.prototype;g.k.ea=function(a){return g.S(this.experiments,a)};
g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.ZD(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.JD(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,nq&&(a=Ap())&&(b.ebc=a));return g.Id(d,b)};
g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.ZD(this)+"/embed/"+a;c&&(a=g.Id(a,{list:c}));c=b.width;b=b.height;a=g.nd(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.wB&&!nq&&74<=aq()||g.NC&&g.Xd(68)?!0:!1};
g.k.getPlayerType=function(){return this.deviceParams.cplayer};
var kha=["www.youtube-nocookie.com","youtube.googleapis.com"];g.k=pE.prototype;g.k.Uf=function(){return this.i};
g.k.qs=function(){return null};
g.k.zG=function(){var a=this.qs();return a?(a=g.Hp(a.i),Number(a.expire)):NaN};
g.k.BC=function(){};
g.k.yc=function(){return this.i.yc()};
g.k.getHeight=function(){return this.i.Za().height};rE.prototype.Qf=function(){lha(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.i)var c=this.i;else{c="";for(var d=g.q(this.u),e=d.next();!e.done;e=d.next())if(e=e.value,e.i){if(e.i.getIsDefault()){c=e.i.getId();break a}c||(c=e.i.getId())}}d=g.q(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,e.i&&e.i.getId()!==c||(b[e.itag]=e);c=g.q(this.l);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.l]){var f=a,h=f.push,l="#EXT-X-MEDIA:TYPE=AUDIO,",m="YES",n="audio";if(e.i){n=e.i;
var p=n.getId().split(".")[0];p&&(l+='LANGUAGE="'+p+'",');this.i||n.getIsDefault()||(m="NO");n=n.getName()}p="";null!==d&&(p=d.itag.toString());p=GE(this,e.url,p);l=l+('NAME="'+n+'",DEFAULT='+(m+',AUTOSELECT=YES,GROUP-ID="'))+(HE(e,d)+'",URI="'+(p+'"'));h.call(f,l)}c=g.q(this.l);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.l])e="#EXT-X-STREAM-INF:BANDWIDTH="+(d.bitrate+e.bitrate)+',CODECS="'+(d.codecs+","+e.codecs+'",RESOLUTION=')+(d.width+"x"+d.height+',AUDIO="')+(HE(e,d)+'",CLOSED-CAPTIONS=NONE'),
1<d.fps&&(e+=",FRAME-RATE="+d.fps),d.u&&(e+=",VIDEO-RANGE="+d.u),a.push(e),a.push(GE(this,d.url,""));return a.join("\n")};g.v(JE,pE);JE.prototype.zG=function(){return this.expiration};
JE.prototype.qs=function(){if(!this.l||this.l.Ha()){var a=this.u.Qf();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.l=new OB(a)}return this.l};g.v(LE,pE);LE.prototype.qs=function(){return new OB(Ey(this.l))};
LE.prototype.BC=function(){this.l=Jy(this.l)};g.v(ME,pE);ME.prototype.qs=function(){return new OB(this.l)};var TE=void 0;var g0={},eF=Us("yt-player-local-media",{PB:(g0.index=!0,g0.media=!0,g0.metadata=!0,g0.playerdata=!0,g0.captions=!0,g0),KC:!1,upgrade:function(a,b){2>b&&(rs(a,"index"),rs(a,"media"));3>b&&rs(a,"metadata");4>b&&rs(a,"playerdata");5>b&&rs(a,"captions")},
version:5}),cF=!1;g.k=g.rF.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.i};
g.k.toString=function(){return this.languageCode+": "+g.sF(this)+" - "+this.vssId};
g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var tF={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},uF={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},vF=/^(\d*)_((\d*)_?(\d*))$/;var xF={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},AF={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var h0={},Uha=(h0.ALWAYS=1,h0.BY_REQUEST=3,h0.UNKNOWN=void 0,h0),i0={},Pha=(i0.COLOR_PRIMARIES_BT709="bt709",i0.COLOR_PRIMARIES_BT2020="bt2020",i0.COLOR_PRIMARIES_UNKNOWN=null,i0.COLOR_PRIMARIES_UNSPECIFIED=null,i0),j0={},Hha=(j0.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",j0.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",j0.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",j0.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",j0.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,j0.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,j0),k0={},JF=(k0.FAIRPLAY="fairplay",k0.PLAYREADY="playready",k0.WIDEVINE="widevine",k0.CLEARKEY=null,k0.FLASHACCESS=null,k0.UNKNOWN=null,k0.WIDEVINE_CLASSIC=null,k0),l0={},Vha=(l0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",l0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",l0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",l0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",l0),m0={},Mha=(m0.UNKNOWN=0,m0.RECTANGULAR=1,m0.EQUIRECTANGULAR=2,m0.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
3,m0.MESH=4,m0),n0={},Oha=(n0.SPATIAL_AUDIO_TYPE_NONE=0,n0.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,n0.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,n0.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,n0),o0={},Nha=(o0.STEREO_LAYOUT_UNKNOWN=0,o0.STEREO_LAYOUT_LEFT_RIGHT=1,o0.STEREO_LAYOUT_TOP_BOTTOM=2,o0),p0={},Lha=(p0.FORMAT_STREAM_TYPE_UNKNOWN=0,p0.FORMAT_STREAM_TYPE_OTF=3,p0);g.v(LF,g.P);LF.prototype.oa=function(){this.i&&(this.i=this.i.onload=null);g.P.prototype.oa.call(this)};g.k=g.SF.prototype;g.k.getHeight=function(){return this.height};
g.k.EG=ba(2);g.k.IA=function(){return this.u};
g.k.isDefault=function(){return-1!==this.B.indexOf("default")};
g.k.xd=function(a){return this.loaded.has(a)};
g.k.vv=function(a){var b=this.IA()-1;return g.Zd(0===this.i?Math.round(a*this.u/this.videoLength):Math.round(1E3*a/this.i),0,b)};
g.k.rs=function(){return this.u-1};
g.k.Vy=function(){return this.u?0:-1};
g.k.YD=function(){};g.v(TF,LF);TF.prototype.l=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.L||180>f.getHeight())&&c.push(f)}return c};
TF.prototype.I=function(a,b,c,d){return new g.SF(a,b,c,d)};g.v(VF,g.SF);g.k=VF.prototype;g.k.IA=function(){return this.l.Wq()};
g.k.vv=function(a){var b=this.rows*this.columns*this.I,c=this.l,d=c.uc();a=c.zi(a);return a>d-b?-1:a};
g.k.rs=function(){return this.l.uc()};
g.k.Vy=function(){return this.l.ij()};
g.k.YD=function(a){this.l=a};g.v(WF,TF);WF.prototype.l=function(a,b){return TF.prototype.l.call(this,"$N|"+a,b)};
WF.prototype.I=function(a,b,c){return new VF(a,b,c,this.isLive)};g.v(g.$F,g.P);g.k=g.$F.prototype;g.k.T=function(){return this.B};
g.k.ea=function(a){return g.S(this.B.experiments,a)};
g.k.yf=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.nI=function(){this.Ha()||(this.i.u||this.i.unsubscribe("refresh",this.nI,this),this.NF(-1))};
g.k.NF=function(a){if(!this.isLivePlayback||!this.I||"fairplay"!=this.I.flavor){var b=iC(this.i,this.GB);if(0<b.length&&(this.V("cuepointupdated",b,a),this.GB+=b.length,AG(this)&&g.vG(this))){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.Ua("cuepoint","segNum."+a+";event."+c.event+";startSecs."+c.startSecs),"start"===c.event&&(c=c.startSecs,this.yq.start=this.cq,this.yq.end=c+3)}}};
g.k.df=function(){var a={};this.l&&(a.fmt=this.l.yc(),this.J&&this.J.yc()!=this.l.yc()&&(a.afmt=this.J.yc()));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.ld&&(a.infringe=1);this.He&&(a.splay=1);var b=LG(this);b&&(a.live=b);this.Cj&&(a.autoplay=1);this.UE&&(a.sdetail=this.UE);this.Xa&&(a.partnerid=this.Xa);this.osid&&(a.osid=this.osid);return a};
g.k.Nh=function(){var a=g.fE(this.B)||this.ea("web_l3_storyboard");if(!this.Kf)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Kf=new TF(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.i&&(c=Jb(this.i.i).index)&&(this.Kf=new WF(b.spec,this.i.isLive,c,a))}else this.kp?this.Kf=new TF(this.kp,this.lengthSeconds,void 0,!1,a):this.qo&&this.i&&(b=Jb(this.i.i).index)&&
(this.Kf=new WF(this.qo,this.i.isLive,b,a));return this.Kf};
g.k.getStoryboardFormat=function(){if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.kp||this.qo};
g.k.fd=function(){return this.i&&!isNaN(this.i.fd())?this.i.fd():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.i&&this.l){var b=this.i.i[this.l.id];if(!b)return null;var c=b.index.zi(a);b=b.index.Xf(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.isValid=function(){return!this.Ha()&&!(!this.videoId&&!this.xg)};
g.k.xd=function(){return aG(this)&&!this.kd&&!this.Rj};
g.k.gf=function(a){if(30==this.Xa)return(a=this.Ec["default.jpg"])?a:this.videoId?g.Id("//docs.google.com/vt",{id:this.videoId,authuser:this.KE,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.Ec[a];return b||this.B.J||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:$D(this.B,this.videoId,a)};
g.k.Lk=function(){return this.isLivePlayback||this.kf||this.Yk||!(!this.liveUtcStartSeconds||!this.Mf)};
g.k.isOtf=function(){return!!this.i&&(this.i.isOtf||!this.kf&&!this.isLivePlayback&&this.i.u)};
g.k.getAvailableAudioTracks=function(){return this.u?0<this.u.getAvailableAudioTracks().length?this.u.getAvailableAudioTracks():this.jo||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.J&&!pB(this.J))return g.cb(this.getAvailableAudioTracks(),function(d){return d.id==a.J.id})||this.Si;
if(this.jo){if(!this.Vj)for(var b=g.q(this.jo),c=b.next();!c.done;c=b.next())if(c=c.value,c.i.getIsDefault()){this.Vj=c;break}return this.Vj||this.Si}return this.Si};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getPlaylistId=function(){return null};
g.k.Za=function(){return this};
g.k.Vm=function(){return this.B.getVideoUrl(this.videoId)};
g.k.isAd=function(){return!!this.adFormat};
g.k.LC=function(){return this.Rg||this.Wc};
g.k.Lu=function(){return this.Qd||this.Wc};
g.k.useInnertubeDrmService=function(){if(!(this.I&&this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webDrmConfig))return!1;var a="playready"===this.I.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForPlayready,b="fairplay"===this.I.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForFairplay;return!!("widevine"===this.I.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForWidevine||a||b)};
g.k.Ua=function(a,b,c){this.V("ctmp",a,b,c)};kH.prototype.showCompanion=function(a,b){b.contentVideoId||(b.contentVideoId=a);this.i.La("updateKevlarOrC3Companion",b)};lH.prototype.Rt=function(){return!1};
lH.prototype.Da=function(){return function(){return null}};var nH=null;g.v(mH,g.P);mH.prototype.zt=function(a){return this.i.hasOwnProperty(a)?this.i[a].zt():{}};
g.Fa("ytads.bulleit.getVideoMetadata",function(a){return oH().zt(a)},void 0);
g.Fa("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=oH();c=jia(c);null!==c&&d.V(c,{queryId:a,viewabilityString:b})},void 0);g.v(rH,lH);g.k=rH.prototype;g.k.Ol=function(){return!0};
g.k.bk=function(){return!1};
g.k.isSkippable=function(){return null!=this.Ca};
g.k.getVideoUrl=function(){return this.ra};
g.k.Rt=function(){return!0};g.v(AH,lH);AH.prototype.Ol=function(){return!0};
AH.prototype.bk=function(){return!1};
AH.prototype.Rt=function(){return!0};
AH.prototype.Da=function(){return function(){return g.oe("video-ads")}};BH.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.i.i};var FBa={ST:"FINAL",gU:"AD_BREAK_LENGTH",hU:"AD_CPN",iU:"AH",jU:"AD_MT",kU:"ASR",mU:"AW",gV:"NM",hV:"NX",iV:"NY",nV:"CONN",zV:"CPN",CX:"DV_VIEWABILITY",QX:"ERRORCODE",TX:"ERROR_MSG",VX:"EI",yY:"GOOGLE_VIEWABILITY",UY:"IAS_VIEWABILITY",KZ:"LACT",ZZ:"LIVE_TARGETING_CONTEXT",j_:"I_X",k_:"I_Y",K0:"MT",P0:"MIDROLL_POS",Q0:"MIDROLL_POS_MS",S0:"MOAT_INIT",T0:"MOAT_VIEWABILITY",E2:"P_H",F2:"PV_H",G2:"PV_W",H2:"P_W",M2:"TRIGGER_TYPE",x3:"SDKV",i4:"SLOT_POS",w4:"SURVEY_LOCAL_TIME_EPOCH_S",v4:"SURVEY_ELAPSED_MS",
hN:"VIS",u5:"VIEWABILITY",v5:"VED",A5:"VOL",D5:"WT",X5:"YT_ERROR_CODE"};var via=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];KH.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.Xm(a.baseUrl,tia(b,c,d)),f;if(a.headers)for(var h=g.q(a.headers),l=h.next();!l.done;l=h.next())switch(l.value.headerType){case "USER_AUTH":var m=this.l();m&&(f||(f={}),f.Authorization="Bearer "+m);break;case "PLUS_PAGE_ID":var n=this.u();n&&(f||(f={}),f["X-Goog-PageId"]=n)}g.tq(e,void 0,d,f)}catch(p){}};g.v(LH,KH);LH.prototype.l=function(){return this.i?g.dH(this.i):""};
LH.prototype.u=function(){return this.i?this.i.T().pageId:""};MH.prototype.send=function(a,b,c){try{var d=a.match(vd);if("https"===d[1])var e=a;else d[1]="https",e=td("https",d[2],d[3],d[4],d[5],d[6],d[7]);var f=Wm(e);a=[];Np(e)&&(a.push({headerType:"USER_AUTH"}),a.push({headerType:"PLUS_PAGE_ID"}));this.i.send({baseUrl:e,scrubReferrer:f,headers:a},b,c)}catch(h){}};g.v(wia,g.F);g.v(Aia,g.F);g.v(gI,g.P);g.k=gI.prototype;g.k.zt=function(){return{}};
g.k.Lx=function(){};
g.k.Bc=function(a){this.ej();this.V(a)};
g.k.ej=function(){Gia(this,this.Aa,3);this.Aa=[]};
g.k.getDuration=function(){return this.G.getDuration(2,!1)};
g.k.Wm=function(){var a=this.l;QH(a)||!ZH(a,"impression")&&!ZH(a,"start")||ZH(a,"abandon")||ZH(a,"complete")||ZH(a,"skip")||(SH(a)?YH(a,"pause"):TH(a,"pause"))};
g.k.Ll=function(){this.va||this.J||this.xe()};
g.k.If=function(){UH(this.l,this.getDuration())};
g.k.Yf=function(){var a=this.l;!ZH(a,"impression")||ZH(a,"skip")||ZH(a,"complete")||YH(a,"abandon")};
g.k.Xm=function(){var a=this.l;SH(a)?TH(a,"skip"):!ZH(a,"impression")||ZH(a,"abandon")||ZH(a,"complete")||TH(a,"skip")};
g.k.xe=function(){if(!this.J){var a=this.mw();this.l.u.AD_CPN=a;a=this.l;if(SH(a)){var b=a.i.getCurrentTime(2,!1);XH(a,"impression",b,0)}else TH(a,"impression");TH(a,"start");QH(a)||a.i.isFullscreen()&&YH(a,"fullscreen");this.J=!0}};
g.k.Te=function(a){a=a||"";var b="",c="",d="";NH(this.G)&&(b=this.G.rb(2).state,this.G.Dd()&&(c=this.G.Dd().Gh(),null!=this.G.Dd().Yi()&&(d=this.G.Dd().Yi())));var e=this.l;e.u=JH(e.u,HH(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));TH(e,"error")};
g.k.lh=function(){};
g.k.nJ=function(){this.V("adactiveviewmeasurable")};
g.k.oJ=function(){this.V("adfullyviewableaudiblehalfdurationimpression")};
g.k.pJ=function(){this.V("adoverlaymeasurableimpression")};
g.k.qJ=function(){this.V("adoverlayunviewableimpression")};
g.k.rJ=function(){this.V("adoverlayviewableendofsessionimpression")};
g.k.sJ=function(){this.V("adoverlayviewableimmediateimpression")};
g.k.tJ=function(){this.V("adviewableimpression")};
g.k.dispose=function(){this.Ha()||(this.ej(),this.u.unsubscribe("adactiveviewmeasurable",this.nJ,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.oJ,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.pJ,this),this.u.unsubscribe("adoverlayunviewableimpression",this.qJ,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.rJ,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.sJ,this),this.u.unsubscribe("adviewableimpression",
this.tJ,this),delete this.u.i[this.ad.L],g.P.prototype.dispose.call(this))};
g.k.mw=function(){var a=this.G.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.k.gG=function(){return""};g.v(iI,lH);iI.prototype.Ol=function(){return!0};
iI.prototype.bk=function(){return!1};g.v(jI,bI);g.v(kI,gI);g.k=kI.prototype;g.k.ck=function(){0<this.i&&this.xe()};
g.k.xe=function(){var a=this;this.Cb=new g.J(function(){a.If();for(var b=g.q(a.B.i.completionCommands||[]),c=b.next();!c.done;c=b.next())a.C.executeCommand(c.value,a.macros);a.Bc("adended")},this.i,this);
g.H(this,this.Cb);this.Cb.start();hI(this,[new jI(this.B.i,this.macros)]);gI.prototype.xe.call(this)};
g.k.Yf=function(){gI.prototype.Yf.call(this);this.Bc("adabandoned")};
g.k.If=function(){gI.prototype.If.call(this)};
g.k.Bc=function(a){this.Cb&&this.Cb.stop();gI.prototype.Bc.call(this,a)};g.v(lI,lH);lI.prototype.Ol=function(){return!0};
lI.prototype.bk=function(){return!1};g.v(mI,lH);mI.prototype.Ol=function(){return!0};
mI.prototype.bk=function(){return!1};g.v(nI,lH);nI.prototype.Ol=function(){return!0};
nI.prototype.bk=function(){return!0};g.v(oI,lH);oI.prototype.Ol=function(){return!0};
oI.prototype.bk=function(){return!1};g.v(pI,lH);pI.prototype.Ol=function(){return!0};
pI.prototype.bk=function(){return!1};g.v(qI,lH);qI.prototype.Ol=function(){return!0};
qI.prototype.bk=function(){return!1};Iia.prototype.create=function(a,b){return a instanceof rH?this.W.create(a,b):a instanceof nI?this.B.create(a,b):a instanceof AH?this.I.create(a,b):a instanceof iI?this.i.create(a,b):a instanceof oI?this.C.create(a,b):a instanceof qI?this.L.create(a,b):a instanceof pI?this.J.create(a,b):a instanceof mI?this.u.create(a,b):a instanceof lI?this.l.create(a,b):null};g.v(rI,gI);g.k=rI.prototype;g.k.Yf=function(){gI.prototype.Yf.call(this);this.Bc("adabandoned")};
g.k.Wm=function(){gI.prototype.Wm.call(this);this.V("adpause",2)};
g.k.Ll=function(){gI.prototype.Ll.call(this);this.V("adplay",1)};
g.k.xe=function(){gI.prototype.xe.call(this);this.i.stop();this.B.N(this.G,g.tw("bltplayback"),this.TK);var a=new g.pw(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});this.G.Td([a],2);this.V("adplay",1)};
g.k.If=function(){gI.prototype.If.call(this);this.Bc("adended")};
g.k.Te=function(a){gI.prototype.Te.call(this,a);this.Bc("aderror")};
g.k.ck=function(){PH(this.G,!1);var a=this.C.l||{};a.autoplay="1";this.G.cueVideoByPlayerVars(a,2);this.i.start();this.G.playVideo(2);this.G.La("onAdIntroStateChange",1)};
g.k.Bc=function(a){this.i.stop();PH(this.G,!0);"adabandoned"!=a&&this.G.La("onAdComplete");this.G.La("onAdEnd");this.V(a);this.G.La("onAdIntroStateChange",0)};
g.k.TK=function(a){"bltcompletion"==a.getId()&&(this.G.Df("bltplayback",2),UH(this.l,this.getDuration()))};g.v(Jia,bI);g.v(sI,gI);g.k=sI.prototype;
g.k.ck=function(){if(this.I)for(var a=g.q(this.I.listeners),b=a.next();!b.done;b=a.next()){b=b.value;b.l={slotId:OX(b.gb.get(),"SLOT_TYPE_IN_PLAYER"),sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kc:void 0,nf:[],Gf:[],jb:"surface",Fa:new PW([])};uja(b.u(),b.l);var c=b.u();b=b.l;c=g.q(c.Ud);for(var d=c.next();!d.done;d=c.next())d.value.Fi(b)}0>=this.L&&(g.xo(Error("durationMs was specified incorrectly with a value of: "+this.L)),this.If());this.xe();this.G.addEventListener("progresssync",this.X)};
g.k.Yf=function(){gI.prototype.Yf.call(this);this.Bc("adabandonedreset")};
g.k.xe=function(){var a=this.G.T();gI.prototype.xe.call(this);this.i=g.S(this.G.T().experiments,"disable_rounding_ad_notify")?this.G.getCurrentTime():Math.floor(this.G.getCurrentTime());this.C=this.i+this.L/1E3;g.SD(a)?this.G.La("onAdMessageChange",{renderer:this.B.i,startTimeSecs:this.i}):hI(this,[new Jia(this.B.i)]);a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.uu(),c=g.S(this.G.T().experiments,"use_video_ad_break_offset_ms_int64")?this.B.i.videoAdBreakOffsetMsInt64:this.B.i.videoAdBreakOffsetMs;
b&&g.Qr("adNotify",{clientScreenNonce:b,adMediaTimeMs:1E3*this.C,timeToAdBreakSec:Math.ceil(this.C-this.i),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.I)for(this.W=!0,a=g.q(this.I.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.l?b.i?Q("Received AdNotify started event before another one exited"):(b.i=b.l,vja(b.u(),b.i)):Q("Received AdNotify started event without start requested event");g.V(this.G.rb(1),512)&&(a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.uu(),
c=g.S(this.G.T().experiments,"use_video_ad_break_offset_ms_int64")?this.B.i.videoAdBreakOffsetMsInt64:this.B.i.videoAdBreakOffsetMs,b&&g.Qr("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:1E3*this.C,timeToAdBreakSec:Math.ceil(this.C-this.i),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.If())};
g.k.If=function(){gI.prototype.If.call(this);this.Bc("adended")};
g.k.Te=function(a){gI.prototype.Te.call(this,a);this.Bc("aderror")};
g.k.Bc=function(a){this.G.removeEventListener("progresssync",this.X);this.ej();this.V(a);Lia(this)};
g.k.dispose=function(){this.G.removeEventListener("progresssync",this.X);Lia(this);gI.prototype.dispose.call(this)};
g.k.ej=function(){g.SD(this.G.T())?this.G.La("onAdMessageChange",{renderer:null,startTimeSecs:this.i}):gI.prototype.ej.call(this)};g.v(tI,bI);g.v(uI,gI);uI.prototype.ck=function(){var a=new tI(this.i.i,this.macros);hI(this,[a])};g.v(Mia,bI);g.v(vI,gI);vI.prototype.ck=function(){this.xe()};
vI.prototype.xe=function(){hI(this,[new Mia(this.i.i,this.macros)]);gI.prototype.xe.call(this)};
vI.prototype.Te=function(a){gI.prototype.Te.call(this,a);this.Bc("aderror")};g.v(Nia,bI);yI.prototype.sendAdsPing=function(a){this.I.send(a,Yia(this),{})};
yI.prototype.wd=function(a){var b=this;if(a){var c=Yia(this);Array.isArray(a)?a.forEach(function(d){return b.u.executeCommand(d,c)}):this.u.executeCommand(a,c)}};fja.prototype.wd=function(a){this.i.wd(a)};g.v(zI,g.P);zI.prototype.getProgressState=function(){return this.u};
zI.prototype.start=function(){this.B=Date.now();hja(this,{current:this.i/1E3,duration:this.l/1E3});this.Cb.start()};
zI.prototype.stop=function(){this.Cb.stop()};g.v(AI,bI);g.v(BI,gI);g.k=BI.prototype;g.k.ck=function(){this.xe()};
g.k.xe=function(){var a=this.C.i;g.SD(this.G.T())?(g.S(this.G.T().experiments,"validate_tvhtml5_instream_survey_ad_renderer_in_bulleit")&&!cja(a)?(g.pt(Error("Expected a valid VOD InstreamSurveyAdRenderer.")),this.Bc("aderror")):(a=gja(this.I,a),this.G.La("onAdInfoChange",a)),this.L=Date.now(),this.i&&this.i.start()):hI(this,[new AI(a)]);gI.prototype.xe.call(this)};
g.k.getDuration=function(){return this.C.l};
g.k.Wm=function(){gI.prototype.Wm.call(this);this.i&&this.i.stop()};
g.k.Ll=function(){gI.prototype.Ll.call(this);this.i&&this.i.start()};
g.k.Yf=function(){gI.prototype.Yf.call(this);this.Bc("adabandoned")};
g.k.Xm=function(){gI.prototype.Xm.call(this);this.Bc("adended")};
g.k.Te=function(a){gI.prototype.Te.call(this,a);this.Bc("aderror")};
g.k.Bc=function(a){this.ej();this.V(a)};
g.k.lh=function(a){switch(a){case "skip-button":this.Xm();break;case "survey-submit":this.Bc("adended")}};
g.k.ej=function(){g.SD(this.G.T())?(this.i&&this.i.stop(),this.G.La("onAdInfoChange",null)):gI.prototype.ej.call(this)};g.v(ija,bI);g.v(CI,gI);CI.prototype.ck=function(){this.xe()};
CI.prototype.xe=function(){hI(this,[new ija(this.i.i,this.macros)]);gI.prototype.xe.call(this)};
CI.prototype.Yf=function(){gI.prototype.Yf.call(this);this.Bc("adabandoned")};
CI.prototype.Te=function(a){gI.prototype.Te.call(this,a);this.Bc("aderror")};g.v(jja,bI);g.v(DI,gI);g.k=DI.prototype;g.k.ck=function(){0<this.i&&this.xe()};
g.k.xe=function(){this.Cb=new g.J(this.If,this.i,this);g.H(this,this.Cb);this.Cb.start();hI(this,[new jja(this.B.i)]);gI.prototype.xe.call(this)};
g.k.If=function(){gI.prototype.If.call(this);this.Bc("adended");for(var a=g.q(this.B.i.completeCommands||[]),b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)};
g.k.Yf=function(){gI.prototype.Yf.call(this);this.Bc("adabandoned")};
g.k.Te=function(a){gI.prototype.Te.call(this,a);this.Bc("aderror")};
g.k.Bc=function(a){this.Cb&&this.Cb.stop();gI.prototype.Bc.call(this,a)};g.v(mja,bI);g.v(nja,bI);g.v(oja,bI);g.v(GI,bI);g.v(pja,bI);g.v(qja,bI);g.v(HI,gI);g.k=HI.prototype;g.k.zt=function(){return{currentTime:this.G.getCurrentTime(2,!1),duration:this.i.l,isPlaying:xia(this.G),isVpaid:!1,isYouTube:!0,volume:this.G.isMuted()?0:this.G.getVolume()/100}};
g.k.ck=function(){if(this.i.X)Hia(this),this.Bc("aderror");else{var a=this.i.i.legacyInfoCardVastExtension,b=this.i.B;a&&b&&this.G.T().L.add(b,{Os:a});try{var c=this.i.i.sodarExtensionData;c&&c.siub&&c.bgub&&c.scs&&c.bgp&&Te(c.siub,c.scs,c.bgub,c.bgp)}catch(d){g.pt(d)}PH(this.G,!1);a=sH(this.i);b=this.G.T();g.S(this.G.T().experiments,"disable_force_iv_load_policy_on_bulleit")||(a.iv_load_policy=b.i||g.SD(b)||g.fE(b)?3:1);c=this.G.getVideoData(1);c.Bh&&(a.ctrl=c.Bh);c.jg&&(a.ytr=c.jg);c.zl&&(a.ytrcc=
c.zl);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Zh&&(a.vss_credentials_token_type=c.Zh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));this.V("adunstarted",-1);!lY(this.C)&&g.SD(b)&&(b=NI(this),wja(this,b));this.L?this.I.start():(this.G.cueVideoByPlayerVars(a,2),this.I.start(),this.G.playVideo(2))}};
g.k.Wm=function(){gI.prototype.Wm.call(this);this.V("adpause",2)};
g.k.Ll=function(){gI.prototype.Ll.call(this);this.V("adplay",1)};
g.k.xe=function(){gI.prototype.xe.call(this);this.I.stop();this.Da.N(this.G,g.tw("bltplayback"),this.UK);var a=new g.pw(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});this.G.Td([a],2);a=MI(this);this.B.Ma=a;if(!lY(this.C)){a=[];var b=this.G.T(),c=this.G.getVideoData(2);if(gE(b)||g.SD(b)){var d;(d=c&&c.isListed?{channelId:c.Yh,channelThumbnailUrl:c.Wg||"",channelTitle:c.author,videoTitle:c.title,channelVideoCount:0,showAdInfoIcon:!1,whyThisAdInfo:null,muteAdInfo:null}:
null)&&this.G.La("onAdMetadataAvailable",d)}g.SD(b)||(g.fE(b)&&!this.L&&(c&&c.videoId&&c.isListed&&c.videoId==this.i.B&&(b=c.title,d=c.author,c=c.Wg,b&&d&&c?c=[new nja(b),new mja(c),new oja(d)]:(g.qt(new g.Zr("Channel metadata contains null for:",b?d?"channel icon thumbnail.":"channel name.":"video title.")),c=[]),hI(this,c)),a.push(Via(this.i.u,this.i.B||"")),c=this.i.I,null==c?c=null:(b={},c.urlEndpoint&&(b.url=c.urlEndpoint.url,b.target="TARGET_NEW_WINDOW"),c=new qja({navigationEndpoint:{urlEndpoint:b}})),
c&&a.push(c),this.i.isSkippable()&&!tH(this.i)&&(c=NI(this),(c=c.skipOrPreviewRenderer&&c.skipOrPreviewRenderer.skipAdRenderer)||(c=xja(this)),a.push(new pja(c)))),c=NI(this),a.push(new GI(c)),hI(this,a))}this.G.isMuted()&&(a=this.l,c=this.G.isMuted(),SH(a)||TH(a,c?"mute":"unmute"));this.V("adplay",1);if(null!==this.Y){a=null!==this.B.i.getVideoData(1)?this.B.i.getVideoData(1).clientPlaybackNonce:"";c=sja(this);b=this.i;d=rja(this);for(var e=g.q(this.Y.listeners),f=e.next();!f.done;f=e.next()){f=
f.value;var h=c,l=b,m=d,n=[],p=l.B,r=l.getVideoUrl();p&&n.push(new mv(p));r&&n.push(new nv(r));!g.S(f.Ka.get().G.T().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_tv")||p||r||Q("videoId and videoUrl missing for video overlay layout");(p=(p=l.i)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new pv(p)),(p=p.elementId)&&n.push(new wv(p))):Q("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");l.i.adNextParams&&n.push(new dv(l.i.adNextParams||
""));(p=l.I)&&n.push(new ev(p));(p=$u(f.Ta.get(),2))?(n.push(new iv({channelId:p.Yh,channelThumbnailUrl:p.Wg,channelTitle:p.author,videoTitle:p.title})),n.push(new jv(p.isListed))):Q("Expected meaningful PlaybackData on ad started.");n.push(new lv(l.u));n.push(new Cv(l.l));n.push(new ov(a));n.push(new zv({current:this}));p=l.Ra;null!=p.kind&&n.push(new kv(p));(p=l.Y)&&n.push(new Pv(p));void 0!==m&&n.push(new Qv(m));f.i?Q(f.i.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):
tja(f,h,n,!0,l.i.adLayoutLoggingData)}this.Ca=!0}this.W.po=this;this.G.La("onAdStart",MI(this));a=this.Ga;c=this.i.B||"";(b=a.l.Ic())&&b.getVideoData().videoId===c?a.i=b.jh(1):a.i=null;a=g.q(this.i.i.impressionCommands||[]);for(c=a.next();!c.done;c=a.next())this.B.executeCommand(c.value,this.macros)};
g.k.UK=function(a){"bltcompletion"==a.getId()&&(this.G.Df("bltplayback",2),UH(this.l,this.getDuration()),LI(this,"adended"),w_(this.W,this))};
g.k.If=function(){gI.prototype.If.call(this);this.Bc("adended");for(var a=g.q(this.i.i.completeCommands||[]),b=a.next();!b.done;b=a.next())this.B.executeCommand(b.value,this.macros)};
g.k.Yf=function(){gI.prototype.Yf.call(this);this.Bc("adabandoned")};
g.k.tC=function(){var a=this.l;QH(a)||YH(a,"clickthrough")};
g.k.UI=function(){this.Xm()};
g.k.Xm=function(){gI.prototype.Xm.call(this);this.Bc("adended")};
g.k.Te=function(a){gI.prototype.Te.call(this,a);this.Bc("aderror")};
g.k.Bc=function(a){this.I.stop();lY(this.C)||this.ej();PH(this.G,!0);"adabandoned"!=a&&this.G.La("onAdComplete");LI(this,a);w_(this.W,this);this.G.La("onAdEnd",MI(this));this.V(a)};
g.k.ej=function(){var a=this.G.T();g.SD(a)&&(g.fE(a)||g.S(a.experiments,"enable_topsoil_wta_for_halftime")||g.SD(a))?(this.G.La("onAdInfoChange",null),this.ra=!0):gI.prototype.ej.call(this)};
g.k.zr=function(){this.X||this.Lx()};
g.k.Lx=function(){this.qH&&this.G.playVideo()};
g.k.qH=function(){return 2==this.G.getPlayerState(2)};
g.k.lh=function(a){if(!lY(this.C)){var b=this.l;if(NH(b.i))switch(a){case "ad-title":b.i.sendVideoStatsEngageEvent(14,void 0,2);break;case "ad-channel-thumbnail":case "advertiser-name":b.i.sendVideoStatsEngageEvent(15,void 0,2);break;case "visit-advertiser":b.i.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.X||this.Lx();break;case "ad-info-icon-button":(this.X=this.qH())||this.G.pauseVideo();
break;case "ad-channel-thumbnail":case "advertiser-name":a=this.G.T().protocol+"://"+g.YD(this.G.T())+"/channel/"+this.i.Aa;g.FI(a);break;case "ad-title":this.G.pauseVideo();g.FI(this.G.getVideoUrl());break;case "visit-advertiser":this.G.pauseVideo();if(g.fE(this.G.T())&&(a=this.i.I)){b=this.l;var c=a.loggingUrls||null;if(c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&WH(b,d.baseUrl,{},d.headers||[])}a.urlEndpoint&&a.urlEndpoint.url&&g.FI(a.urlEndpoint.url)}a=this.l;QH(a)||
YH(a,"clickthrough");break;case "skip-button":this.Xm()}}};
g.k.gG=function(a,b){if(this.i.X)return Hia(this),this.Bc("aderror"),"";if(!Number.isFinite(a))return g.pt(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.pt(Error("Start time is not earlier than end time")),"";var c=1E3*this.i.l,d=sH(this.i);d=this.G.Bq(d,2,c,a,b);a+c>b&&this.G.Tr(d,b-a);return d};
g.k.dispose=function(){xia(this.G)&&!this.L&&this.G.stopVideo(2);LI(this,"adabandoned");w_(this.W,this);gI.prototype.dispose.call(this)};OI.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.i[b];c?b=c:(c={Vs:null,yH:-Infinity},b=this.i[b]=c);c=a.startSecs+a.i/1E3;if(!(c<b.yH))if(b.yH=c,b.Vs){if(c<b.Vs.end){a:{c=b.Vs;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.durationSecs;a=a<c.start?null:c.end<=a?null:a}null!==a&&(b.Vs.end=a,this.l.mI(a))}}else if(a=
Aja(a,this.u))c=a.OO,b.Vs=a.IN,this.l.yI(c)};
OI.prototype.updateTime=function(){};QI.prototype.Eg=function(a){var b=this.i;g.em(function(){return b.Eg(a,1)})};TI.prototype.Ns=function(a,b,c,d,e){Jja(this);var f=this.G.getVideoData(1),h=this.G.getVideoData(2);f&&(this.contentCpn=f.clientPlaybackNonce,this.videoId=f.videoId);h&&(this.adCpn=h.clientPlaybackNonce,this.adVideoId=h.videoId,this.adFormat=h.adFormat);this.l=a;if(0>=d)Jja(this);else if(this.actionType=this.u?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",this.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.B=c+1===d,"unknown_type"!==this.actionType)this.Pg=!0,
a={adBreakType:Oja(this.l),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:this.videoStreamType},this.contentCpn&&(a.clientPlaybackNonce=this.contentCpn,"ad_to_video"===this.actionType&&(a.targetCpn=this.contentCpn)),this.videoId&&(a.videoId=this.videoId),this.adCpn&&(a.adClientPlaybackNonce=this.adCpn,"ad_to_video"!==this.actionType&&(a.targetCpn=this.adCpn)),this.adVideoId&&(a.adVideoId=this.adVideoId),this.adFormat&&(a.adType=this.adFormat),
Ux(a,this.actionType)};
TI.prototype.reset=function(){return new TI(this.G)};var q0={},r0=(q0.BUFFERING="buffering-mode",q0.CUED="cued-mode",q0.ENDED="ended-mode",q0.PAUSED="paused-mode",q0.PLAYING="playing-mode",q0.SEEKING="seeking-mode",q0.UNSTARTED="unstarted-mode",q0);var SEa,s0,Pja;
SEa={yU:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",FU:"AUTHENTICATION_MALFORMED",GU:"AUTHENTICATION_MISSING",MU:"BAD_REQUEST",VU:"CAST_SESSION_DEVICE_MISMATCHED",WU:"CAST_SESSION_VIDEO_MISMATCHED",XU:"CAST_TOKEN_EXPIRED",YU:"CAST_TOKEN_FAILED",ZU:"CAST_TOKEN_MALFORMED",aV:"CGI_PARAMS_MALFORMED",bV:"CGI_PARAMS_MISSING",sX:"DEVICE_FALLBACK",RX:"GENERIC_WITH_LINK_AND_CPN",SX:"LICENSE",UX:"VIDEO_UNAVAILABLE",fY:"FORMAT_UNAVAILABLE",tY:"GEO_FAILURE",PY:"HTML5_AUDIO_RENDERER_ERROR",QY:"GENERIC_WITHOUT_LINK",
RY:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",SY:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",TY:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",eZ:"INVALID_DRM_MESSAGE",X2:"PURCHASE_NOT_FOUND",Y2:"PURCHASE_REFUNDED",k3:"RENTAL_EXPIRED",q3:"RETRYABLE_ERROR",D3:"SERVER_ERROR",n4:"STOPPED_BY_ANOTHER_PLAYBACK",p4:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",q4:"STREAMING_NOT_ALLOWED",r4:"STREAM_LICENSE_NOT_FOUND",E4:"TOO_MANY_REQUESTS",F4:"TOO_MANY_REQUESTS_WITH_LINK",G4:"TOO_MANY_STREAMS_PER_ENTITLEMENT",
H4:"TOO_MANY_STREAMS_PER_USER",d5:"UNSUPPORTED_DEVICE",p5:"VIDEO_FORBIDDEN",s5:"VIDEO_NOT_FOUND"};s0={};
g.AM=(s0.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.",s0.DEVICE_FALLBACK="Sorry, this video is not available on this device.",s0.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",s0.LICENSE="Sorry, there was an error licensing this video.",s0.VIDEO_UNAVAILABLE=
"Video unavailable",s0.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",s0.GEO_FAILURE="This video isn't available in your country.",s0.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",s0.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",s0.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",s0.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",
s0.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",s0.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",s0.PURCHASE_NOT_FOUND="This video requires payment.",s0.PURCHASE_REFUNDED="This video's purchase has been refunded.",s0.RENTAL_EXPIRED="This video's rental has expired.",s0.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",s0.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
s0.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",s0.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",s0.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",s0.SERVER_ERROR="There was an internal server error. Please try again later.",s0.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",s0.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
s0.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",s0.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",s0.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",s0.TOO_MANY_REQUESTS="Please log in to watch this video.",s0.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",s0.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
s0.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",s0.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",s0.VIDEO_FORBIDDEN="Access to this video is forbidden.",s0.VIDEO_NOT_FOUND="This video can not be found.",s0);
Pja={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",
5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};g.v(UI,g.F);g.k=UI.prototype;g.k.yv=function(){return this.l};
g.k.zq=function(a){var b="";a&&(Sja(this,a),b=a.i);if(!this.Wf()||b)b&&this.Wf()!==b&&this.Sx(b),Tya||a&&a.l||this.load(),this.I||(this.addEventListener("volumechange",this.PF),this.I=!0)};
g.k.xv=function(){var a=this.Re();a=window.MediaSource?new PB(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new PB(new window.WebKitMediaSource,void 0,!1):new PB(void 0,a,!1);this.zq(a.Yt);return a};
g.k.playVideo=function(){var a=this;this.Jk()&&this.seekTo(0);!this.Wf()&&this.l&&(g.xo(Error("playVideo without src")),this.Sx(this.l.i),this.l.l||this.load());var b=this.play();!b&&Vya&&MM&&7<=(jH||0)&&g.kp(this,"playing",function(){g.Ao(function(){Rja(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.Gh()&&(Wya&&MM&&4>jH&&(a=Math.max(.1,a)),this.Ox(a))};
g.k.stopVideo=function(){this.Wf()&&(Uya&&nq&&0<this.getCurrentTime()&&this.seekTo(0),this.Fx(),this.load(),Sja(this,null))};
g.k.Vq=function(){var a=this.Mg();return 0<FB(a)&&this.getDuration()?EB(a,this.getCurrentTime()):0};
g.k.Eb=function(){try{var a=this.kq();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:BB(this.Wo(),",",3),vbu:BB(this.Mg()),vpa:""+ +this.mm(),vsk:""+ +this.us(),ven:""+ +this.Jk(),vpr:""+this.getPlaybackRate(),vrs:""+this.Gh(),vns:""+this.ww(),vec:""+this.Yi(),vemsg:this.xf(),vvol:""+this.getVolume(),vdom:""+ +this.lB(),vsrc:""+ +!!this.Wf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.u.Na(a,b,!1,this);this.tA(a)};
g.k.removeEventListener=function(a,b){this.u.hc(a,b,!1,this)};
g.k.dispatchEvent=function(a){return this.u.dispatchEvent(a)};
g.k.oA=function(){this.C=!1};
g.k.nA=function(){this.C=!0;this.Kr(!0)};
g.k.PF=function(){this.C&&!this.uw()&&this.Kr(!0)};
g.k.oa=function(){this.I&&this.removeEventListener("volumechange",this.PF);g.F.prototype.oa.call(this)};
var Tya=!1,Uya=!0,Vya=!0,Wya=!0;g.k=g.ZI.prototype;g.k.getData=function(){return this.stateData};
g.k.pc=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.v(iJ,g.P);g.k=iJ.prototype;g.k.ep=function(){var a=this.i;return a.l instanceof rH||a.l instanceof AH||a.l instanceof uH};
g.k.Qy=function(){return this.i.l.bk()};
g.k.ND=function(){return this.i.i};
g.k.Ry=function(){return"AD_PLACEMENT_KIND_START"==this.i.i.i};
g.k.OD=function(){return CH(this.i)};
g.k.LG=function(a){if(!ww(a)){this.X&&(this.Ca=this.G.isAtLiveHead(),this.va=Math.ceil(g.Ta()/1E3));var b=new QI(this.rg);a=Dja(a);b.Eg(a)}this.Wy()};
g.k.nH=function(){return!0};
g.k.hn=function(){return this.L instanceof AH};
g.k.Ut=function(){return this.L instanceof rH};
g.k.Wy=function(){var a=this.rg;this.nH()&&(a.l&&NJ(a,!1),a.l=this,this.ep()&&Bla(a));if(!this.i.C.hasOwnProperty("ad_placement_start")){a=g.q(this.i.Y);for(var b=a.next();!b.done;b=a.next())Xja(b.value);this.i.C.ad_placement_start=!0}Kja(this.I);this.eJ()};
g.k.eJ=function(){this.L?this.ws(this.L):this.Im()};
g.k.tp=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.Hi(0);this.Im(a,b)};
g.k.ZH=function(){this.tp()};
g.k.qP=function(){TH(this.l.l,"active_view_measurable")};
g.k.rP=function(){var a=this.l.l;QH(a)||Eia(a)||TH(a,"active_view_fully_viewable_audible_half_duration")};
g.k.vP=function(){};
g.k.wP=function(){};
g.k.xP=function(){};
g.k.yP=function(){};
g.k.BP=function(){var a=this.l.l;QH(a)||Eia(a)||TH(a,"active_view_viewable")};
g.k.vG=function(){return this.Ut()?[this.yw()]:[]};
g.k.wc=function(a){if(null!==this.l){this.ra||(a=new g.dI(a.state,new g.ZI),this.ra=!0);var b=a.state;if(g.fI(a,2))this.l.If();else{var c=a;(g.S(this.G.T().experiments,"html5_bulleit_handle_gained_playing_state")?c.state.pc()&&!c.xn.pc():c.state.pc())?(Nja(this.I),this.l.Ll()):b.isError()?this.l.Te(b.getData().errorCode):g.fI(a,4)&&(this.Y||this.l.Wm())}if(null!==this.l){if(g.fI(a,16)&&(b=this.l.l,!(QH(b)||.5>b.i.getCurrentTime(2,!1)&&!g.S(b.i.T().experiments,"html5_dai_pseudogapless_seek_killswitch")))){c=
b.l;if(c.Rt()){var d=g.S(b.J.i.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock");fl(c.L,d)}b.l.J.seek=!0}0>eI(a,4)&&!(0>eI(a,2))&&(b=this.l.l,QH(b)||(SH(b)?YH(b,"resume"):TH(b,"resume")));!g.S(this.G.T().experiments,"html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.fI(a,512)&&!g.gJ(a.state)&&Lja(this.I)}}};
g.k.fb=function(){return this.daiEnabled?Wja(this):!1};
g.k.resume=function(){this.l&&this.l.Lx()};
g.k.Jm=function(){this.l&&this.l.Bc("adended")};
g.k.zk=function(){this.Jm()};
g.k.Hi=function(a){this.rg.Hi(a)};
g.k.ZD=function(a){this.rg.i.La("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.l.lh(a)};
g.k.sG=function(){return 0};
g.k.uG=function(){return 1};
g.k.lD=function(a){this.daiEnabled&&this.i.J&&this.i.i.start<=a&&a<kJ(this)&&this.G.Ho(a,this.i.i.end)};
g.k.ws=function(a){g.ui(this.l);this.l=a=this.tm.create(a,IH(GH(this.i)),this.i.i.i);a.subscribe("adabandoned",g.Ra(this.tp,!0),this);a.subscribe("adabandonedreset",g.Ra(this.tp,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.qP,this);a.subscribe("adended",this.tp,this);a.subscribe("aderror",this.ZH,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.rP,this);a.subscribe("adoverlaymeasurableimpression",this.vP,this);a.subscribe("adoverlayunviewableimpression",this.wP,this);
a.subscribe("adoverlayviewableendofsessionimpression",this.xP,this);a.subscribe("adoverlayviewableimmediateimpression",this.yP,this);a.subscribe("adpause",this.bB,this);a.subscribe("adplay",this.bB,this);a.subscribe("adunstarted",this.bB,this);a.subscribe("onAdUxUpdate",this.ZD,this);a.subscribe("adviewableimpression",this.BP,this);a.va?a.Te("ui_unstable"):a.ck();Yja(this,!1)};
g.k.Im=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.Y=!0;g.ui(this.l);Mja(this.I);a?a=!1:this.daiEnabled?(a=this.G.getCurrentTime(2,!0),a=1>=Math.abs(a-this.i.i.end/1E3)):a=!0;if(a&&!this.i.C.hasOwnProperty("ad_placement_end")){a=g.q(this.i.X);for(var c=a.next();!c.done;c=a.next())Xja(c.value);this.i.C.ad_placement_end=!0}a=this.i.L;if(null!==a){c=this.Al;var d=this.i.B&&this.i.B.identifier,e=this.i.i.start,f=kJ(this);c.l&&RI({driftRecoveryInfo:{contentCpn:c.i,cueIdentifier:d||void 0,driftRecoveryMs:a.toString(),
breakDurationMs:Math.round(f-e).toString(),driftFromHeadMs:Math.round(1E3*c.u.Om()).toString()}});this.i.L=null}b||this.daiEnabled?NJ(this.rg,!0):this.X&&this.OD()&&this.Ut()?NJ(this.rg,!1,cka(this)):NJ(this.rg,!1);Yja(this,!0)};
g.k.bB=function(a){this.Hi(a)};
g.k.yw=function(){return this.L};
g.k.isLiveStream=function(){return this.X};
g.k.reset=function(){return new iJ(this.rg,this.G,this.I.reset(),this.i,this.Al,this.Kq,this.tm,this.daiEnabled)};
g.k.oa=function(){g.ui(this.l);this.l=null;g.P.prototype.oa.call(this)};dka.prototype.create=function(a){return(a.l instanceof uH?this.u:""===a.I?this.i:this.l)(a)};lJ.prototype.clickCommand=function(a,b,c){c=g.uu(void 0===c?0:c);if(!a.clickTrackingParams||!c)return!1;Du(this.client,c,g.nu(a.clickTrackingParams),b);return!0};oJ.prototype.Zo=function(a,b){var c,d,e;b=(null===(d=null===(c=b.kB.context)||void 0===c?void 0:c.request)||void 0===d?void 0:d.consistencyTokenJars)||[];(a=null===(e=a.responseContext)||void 0===e?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
oJ.prototype.replace=function(a,b){a=g.q(a);for(var c=a.next();!c.done;c=a.next())delete this.i[c.value.encryptedTokenJarContents];kka(this,b)};pJ.prototype.Zo=function(a){var b,c,d=null===(b=a.responseContext)||void 0===b?void 0:b.locationPlayabilityToken;void 0!==d&&(this.locationPlayabilityToken=d,this.i=void 0,"TVHTML5"===(null===(c=a.responseContext)||void 0===c?void 0:c.clientName)?(this.localStorage=lka(this))&&this.localStorage.set("yt-location-playability-token",d,15552E3):g.Sq("YT_CL",JSON.stringify({t6:d}),15552E3,void 0,!0))};var sJ;g.v(rJ,Mr);rJ.prototype.ow=function(a,b){a=Mr.prototype.ow.call(this,a,b);return Object.assign(Object.assign({},a),this.i)};var Bka=/[&\?]action_proxy=1/,Aka=/[&\?]token=([\w-]*)/,Cka=/[&\?]video_id=([\w-]*)/,Dka=/[&\?]index=([\d-]*)/,Eka=/[&\?]m_pos_ms=([\d-]*)/,Hka=/[&\?]vvt=([\w-]*)/,vka="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(" "),Fka="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(" "),xka={android:"ANDROID",
"android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},yka={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Gka={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};tJ.prototype.vr=function(a){this.player.wt().tick(a)};
tJ.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return vJ(this,a,b);var d=1===this.i;d&&this.vr("a_bid_s");var e=qka();if(null!==e)return d&&this.vr("a_bid_f"),vJ(this,a,b,e);e=rka();d&&sm(e,function(){c.vr("a_bid_f")});
return e.then(function(f){return vJ(c,a,b,f)})};
tJ.prototype.reset=function(){this.l=this.i=1};g.v(wJ,g.P);g.k=wJ.prototype;g.k.ND=function(){return this.i.i};
g.k.Ry=function(){return"AD_PLACEMENT_KIND_START"==this.i.i.i};
g.k.OD=function(){return CH(this.i)};
g.k.ep=function(){return!1};
g.k.Qy=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.LG=function(a){var b=this;if(1!==this.i.u&&2!==this.i.u){var c=[];this.Ry()||(c=Dja(a));this.i.u=1;sm(this.C.fetch(this.i.I,{Us:this.i.B||void 0,ue:this.i.i}).then(function(d){if(!b.Ha()){var e=c;g.S(b.B.T().experiments,"enable_client_deferred_full_screen_filtering_for_mweb_phones")&&b.B.isFullscreen();d=Jka(b,d);var f=b.u;f.l&&d.isEmpty&&SI("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.i);d.oH||(b.i.u=2,(new QI(b.l)).Eg(e),d.isEmpty||Zu(b.I,d.vl))}},function(){(new QI(b.l)).Eg(c);
var d=b.u;d.l&&SI("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.i)}),function(){2!==b.i.u&&(b.i.u=0);
b.Ry()&&KJ(b.l)})}};
g.k.Wy=function(){};
g.k.lD=function(){};var Mka=Object.freeze([iI,lI,AH,pI,qI,rH]);g.v(xJ,iJ);g.k=xJ.prototype;g.k.vG=function(){for(var a=this.B.i,b=g.q(a),c=b.next();!c.done;c=b.next());return a};
g.k.nH=function(){return(0>=this.C?this.B.i:this.B.i.slice(this.C)).some(function(a){return a.Ol()})};
g.k.hn=function(){return this.J instanceof AH||this.J instanceof pI};
g.k.Ut=function(){return this.J instanceof rH||this.J instanceof lI};
g.k.eJ=function(){this.daiEnabled?NH(this.G)&&Wja(this):Lka(this)};
g.k.ws=function(a){var b=Kka(a);this.J&&b&&this.W!==b&&(b?Bla(this.rg):Dla(this.rg),this.W=b);this.J=a;this.daiEnabled&&(this.C=this.B.i.findIndex(function(c){return c===a}));
iJ.prototype.ws.call(this,a)};
g.k.Im=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.u&&(g.ui(this.u),this.u=null);iJ.prototype.Im.call(this,a,b)};
g.k.zk=function(){this.C=this.B.i.length;this.u&&this.u.Bc("adended");this.l&&this.l.Bc("adended");this.Im()};
g.k.Jm=function(){this.tp()};
g.k.wc=function(a){iJ.prototype.wc.call(this,a);a=a.state;g.V(a,2)&&this.u?this.u.If():a.pc()?(null==this.u&&(a=this.B.u)&&(this.u=this.tm.create(a,IH(GH(this.i)),this.i.i.i),this.u.subscribe("onAdUxUpdate",this.ZD,this),a=this.u,a.va?a.Te("ui_unstable"):a.ck()),this.u&&this.u.Ll()):a.isError()&&this.u&&this.u.Te(a.getData().errorCode)};
g.k.tp=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Hi(0),a?this.Im(a,b):Lka(this))};
g.k.ZH=function(){1==this.B.l?this.Im():this.tp()};
g.k.onAdUxClicked=function(a){iJ.prototype.onAdUxClicked.call(this,a);this.u&&this.u.lh(a)};
g.k.yw=function(){var a=0>=this.C?this.B.i:this.B.i.slice(this.C);return 0<a.length?a[0]:null};
g.k.oa=function(){g.ui(this.u);this.u=null;iJ.prototype.oa.call(this)};
g.k.ep=function(){return this.W};
g.k.Qy=function(){return this.B.i.every(function(a){return a.bk()})};
g.k.reset=function(){return new xJ(this.rg,this.G,this.I.reset(),this.i,this.Al,this.Kq,this.tm,this.daiEnabled)};
g.k.sG=function(){return this.C};
g.k.uG=function(){return this.B.i.length};Nka.prototype.qG=function(){return this.i};g.v(Oka,uH);g.v(Qka,uH);Rka.prototype.create=function(a,b){function c(m){return new rH(m,d.u,b,d.i,d.l)}
var d=this,e=a.instreamVideoAdRenderer,f=a.invideoOverlayAdRenderer,h=a.instreamSurveyAdRenderer,l=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new nI(f):null!=h?new AH(h):null!=l?new Qka(l,c,this.i):null!=a?new Oka(a,c):null};Tka.prototype.create=function(a,b,c,d){d=void 0===d?null:d;var e=[];c=void 0===c?0:c;if(d){d=g.q(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var h=b,l=new cw(h.u,h.l,h.daiEnabled,h.B),m=h.Ld;m&&(l.Ld=new bw(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.i));h.i&&(l.i=h.i);l.visible=h.visible;h=l;h.Ld=f;e.push(Uka(this,a[0],c,h));c++}}else for(a=g.q(a),d=a.next();!d.done;d=a.next())e.push(Uka(this,d.value,c,b)),c++;return e};g.v(Wka,g.F);g.v(yJ,g.F);yJ.prototype.addEventListener=function(a,b){this.i=b};
yJ.prototype.removeEventListener=function(){this.i=null};
g.v(zJ,g.F);zJ.prototype.addEventListener=function(a,b,c){this.i.addEventListener(a,b,c)};
zJ.prototype.removeEventListener=function(a,b){this.i.removeEventListener(a,b)};g.v($ka,g.F);var AJ=null,bla=null,BJ=null,CJ=null,DJ=null;g.Fa("yt.www.ads.eventcache.getLastCompanionData",function(){return AJ},void 0);
g.Fa("yt.www.ads.eventcache.getLastPlaShelfData",function(){return bla},void 0);
g.Fa("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return BJ},void 0);
g.Fa("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return CJ},void 0);
g.Fa("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return DJ},void 0);var nla={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.v(GJ,g.F);GJ.prototype.oa=function(){this.Hd.clear();g.F.prototype.oa.call(this)};
GJ.prototype.wd=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.Ha();a=g.q(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
GJ.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Ha();a.loggingUrls&&ola(this,"loggingUrls",a.loggingUrls,b,c);a=g.q(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?lla(this,e):nla.hasOwnProperty(d)||ola(this,d,e,b,c)}};g.v(JJ,g.P);g.k=JJ.prototype;g.k.dB=function(){return!wla(this,zla(this))};
g.k.mw=function(){return this.Ma};
g.k.oa=function(){this.Ca=!0;g.$t(this.B);this.I&&this.i.getVideoData(1).unsubscribe("cuepointupdated",this.lI,this);if(OH(this.i)){var a=rla(this.i);a.removeEventListener("updateKevlarOrC3Companion",ala);a.removeEventListener("onPlaShelfInfoCardsReady",dla);a.removeEventListener("updateEngagementPanelAction",ela);a.removeEventListener("changeEngagementPanelVisibility",fla);a.removeEventListener("scrollToEngagementPanel",gla);window.removeEventListener("yt-navigate-start",hla);DJ=CJ=BJ=AJ=null}a=
g.q(this.u.values());for(var b=a.next();!b.done;b=a.next())Cla(this,b.value);NJ(this,!1);this.xo.clear();this.va=[];this.W.clear();g.ui(this.L);this.L=new Map;g.ui(this.J);this.J=new Map;this.u.clear();g.P.prototype.oa.call(this)};
g.k.ZB=function(a){if(a instanceof vw&&!a.l&&(!xw(a)||a.contains(1E3*this.i.getCurrentTime(1)||0)))if(g.V(this.i.rb(1),32))this.W.add(a);else{var b=this.u.get(a);b&&((g.S(this.i.T().experiments,"enable_eviction_protection_for_bulleit")?this.l?this.l.Qy():1:1)?b.LG(a):a.deactivate())}};
g.k.iQ=function(a){a instanceof vw&&(a.l&&(a.l=!1),this.W.delete(a))};
g.k.lI=function(a){Gja(this.Ga,a);null==this.I?g.xo(Error("Dynamically inserted ad was requested, but no cuepoint AdPlacementRenderer was present to fulfill the request.")):0!=(this.i.getCurrentTime(1)||0)&&(a=a.filter(function(b){return"start"==b.event}),LJ(this,[this.I],a))};
g.k.yI=function(a){LJ(this,[this.I],[a])};
g.k.mI=function(a){var b=1E3*a;this.l&&this.l.lD(b);for(var c=g.q(this.u.values()),d=c.next();!d.done;d=c.next())d.value.lD(b);g.yb(this.Ya.i,1E3*a)};
g.k.Qk=function(a){switch(a){case "control_play":this.l&&(a=this.l,a.Ut()?a.G.Ic().playVideo():a.hn()&&a.l.Ll());break;case "control_pause":this.l&&(a=this.l,a.Ut()?a.G.Ic().pauseVideo():a.hn()&&a.l.Wm())}};
g.k.WK=function(a){this.l&&this.l.wc(a)};
g.k.NP=function(a){0>eI(a,16)&&(this.W.forEach(this.ZB,this),this.W.clear())};
g.k.pS=function(){this.l&&this.l.fb()};
g.k.sS=function(){if(NH(this.i)&&this.l){var a=this.i.getCurrentTime(2,!1),b=this.l;b.l&&(b=b.l,b.J&&Dia(b.l,a,b.getDuration()))}};
g.k.oP=function(){this.ib=!0;if(this.l){var a=this.l;a.l&&a.l.Yf()}};
g.k.zP=function(a){if(this.l)this.l.onAdUxClicked(a)};
g.k.tS=function(){if(2==this.i.getPresentingPlayerType()&&this.l){var a=this.l.l,b=a.l;a=a.G.isMuted();SH(b)||TH(b,a?"mute":"unmute")}};
g.k.uQ=function(a){if(this.l){var b=this.l.l.l;QH(b)||YH(b,a?"fullscreen":"end_fullscreen")}};
g.k.Eg=function(a,b){this.i.Eg(a,b);a=g.q(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.xo.delete(b),this.u.delete(b)};
g.k.KT=function(){for(var a=[],b=g.q(this.xo),c=b.next();!c.done;c=b.next())c=c.value,ww(c)||a.push(c);b=this.i.app;1!==b.getPresentingPlayerType()||eW(b,"cuerangemarkersupdated",a)};
g.k.Hi=function(a){this.i.Hi(a);switch(a){case 1:this.Kw=1;break;case 0:this.Kw=0}};
g.k.NC=function(){var a=this.i.getVideoData(2);return a?a.isListed&&!this.X:!1};
g.k.Jm=function(){this.l&&this.l.ep()&&this.l.Jm()};
g.k.zk=function(){this.l&&this.l.ep()&&this.l.zk()};
g.k.jt=function(a){(a=this.L.get(a))&&(a=LJ(this,[a]))&&0!=a.length&&a[0].Wy()};
g.k.Ps=function(){var a=this.Sa,b=a.i.getVideoData(1);a.i.La("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})};
g.k.Rb=function(a){if(this.l){var b=this.l;b.l&&(b=b.l,b.J&&Dia(b.l,a,b.getDuration()))}};
g.k.hn=function(){return NH(this.i)&&!!this.l&&this.l.hn()};
g.k.executeCommand=function(a,b,c){var d=this.ub,e=d.executeCommand;if(c=void 0===c?null:c){var f=!!this.l&&this.l||null;f?(f=f.l,c=f.ad.Rt()?VH(f.l,c):{}):c={}}else c={};e.call(d,a,b,c)};
g.k.qG=function(){return this.Da};
g.k.rG=function(){return this.Ra};g.v(OJ,KH);OJ.prototype.l=function(){return this.i()};
OJ.prototype.u=function(){return this.B()};g.v(PJ,g.F);PJ.prototype.append=function(a){if(!this.l)throw Error("This does not support the append operation");this.i.appendChild(a.i)};
g.v(QJ,PJ);g.v(Gla,g.F);var Ila=1;g.v(g.SJ,g.F);g.k=g.SJ.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.D;var c=a.K,d=a.Ba;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.D);g.kE&&(a.U||(a.U={}),a.U.focusable="false")}else e=g.De(a.D);if(c){if(c=TJ(this,e,"class",c))UJ(this,e,"class",c),this.Ya[c]=e}else if(d){c=g.q(d);for(var f=c.next();!f.done;f=c.next())this.Ya[f.value]=e;UJ(this,e,"class",d.join(" "))}d=a.ma;c=a.S;if(d)b=TJ(this,e,"child",d),void 0!==b&&e.appendChild(g.Ee(b));else if(c)for(d=0,c=g.q(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=TJ(this,e,"child",f),null!=f&&e.appendChild(g.Ee(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Lb&&(h=RJ(),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.Ge(e,f,d++))}if(a=a.U)for(b=e,d=g.q(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],UJ(this,b,c,"string"===typeof f?
TJ(this,b,c,f):f);return e};
g.k.ya=function(a){return this.Ya[a]};
g.k.xa=function(a,b){"number"===typeof b?g.Ge(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.He(this.element)};
g.k.update=function(a){for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.Oa(c,a[c])};
g.k.Oa=function(a,b){(a=this.Fc["{{"+a+"}}"])&&UJ(this,a[0],a[1],b)};
g.k.oa=function(){this.Ya={};this.Fc={};this.detach();g.F.prototype.oa.call(this)};g.v(g.W,g.SJ);g.k=g.W.prototype;g.k.bd=function(a,b){this.Oa(b||"content",a)};
g.k.show=function(){this.vb||(g.dg(this.element,"display",""),this.vb=!0)};
g.k.hide=function(){this.vb&&(g.dg(this.element,"display","none"),this.vb=!1)};
g.k.Qb=function(a){this.W=a};
g.k.Na=function(a,b,c){return this.N(this.element,a,b,c)};
g.k.N=function(a,b,c,d){c=(0,g.B)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.hc=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;Qe(a);a.focus()};
g.k.oa=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.SJ.prototype.oa.call(this)};g.v(g.WJ,g.W);g.WJ.prototype.subscribe=function(a,b,c){return this.Ca.subscribe(a,b,c)};
g.WJ.prototype.unsubscribe=function(a,b,c){return this.Ca.unsubscribe(a,b,c)};
g.WJ.prototype.Hg=function(a){return this.Ca.Hg(a)};
g.WJ.prototype.V=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return this.Ca.V.apply(this.Ca,[a].concat(g.ma(c)))};var TEa=new WeakSet;g.v(XJ,g.WJ);g.k=XJ.prototype;g.k.bind=function(a){if(!this.Ra&&a.renderer){var b=Object.assign({},Fla(this.api,this.Pa),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.k.init=function(a,b,c){this.Ra=a;this.element.setAttribute("id",this.Ra);this.tb&&g.K(this.element,this.tb);this.X=b&&b.adRendererCommands;this.macros=c;this.J=b.trackingParams||null;null!=this.J&&this.Lh(this.element,this.J)};
g.k.clear=function(){};
g.k.hide=function(){g.WJ.prototype.hide.call(this);null!=this.J&&this.eb(this.element,!1)};
g.k.show=function(){g.WJ.prototype.show.call(this);if(!this.ub){this.ub=!0;var a=this.X&&this.X.impressionCommand;a&&Kla(this,a,null)}null!=this.J&&this.eb(this.element,!0)};
g.k.onClick=function(a){if(this.J&&!TEa.has(a)){var b=this.element;this.api.Mt(b)&&this.vb&&this.api.Kb(b,this.i);TEa.add(a)}if(a=this.X&&this.X.clickCommand)a=this.mJ(a),Kla(this,a,this.wG())};
g.k.mJ=function(a){return a};
g.k.wG=function(){return null};
g.k.ZK=function(a){var b=this.ra;b.J=!0;b.l=a.touches.length;b.i.isActive()&&(b.i.stop(),b.C=!0);a=a.touches;b.I=Hla(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.L=Infinity,b.W=Infinity):(b.L=c.clientX,b.W=c.clientY);for(c=b.u.length=0;c<a.length;c++){var d=a.item(c);b.u.push(d.identifier)}};
g.k.YK=function(a){var b=this.ra;a=a.changedTouches.item(0);var c;if(c=Qd()){c=g.Uc;var d="";Wc("Windows")?(d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0"):Qd()?(d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".")):Wc("Macintosh")?(d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10"):yc(g.Uc,"KaiOS")?(d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1]):Wc("Android")?(d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1]):Wc("CrOS")&&(d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
d=(c=d.exec(c))&&c[1]);c=!(0<=g.Bc(d||"",8))}if(c||a&&Math.pow(a.clientX-b.L,2)+Math.pow(a.clientY-b.W,2)>Math.pow(5,2))b.B=!0};
g.k.XK=function(a){if(this.ra){var b=this.ra,c=a.changedTouches;c&&b.J&&1==b.l&&!b.B&&!b.C&&!b.I&&Hla(b,c)&&(b.X=a,b.i.start());b.l=a.touches.length;0===b.l&&(b.J=!1,b.B=!1,b.u.length=0);b.C=!1}};
g.k.Lh=function(a,b){this.api.Lh(a,this);this.api.Jn(a,b)};
g.k.eb=function(a,b){this.api.Mt(a)&&this.api.eb(a,b,this.i)};
g.k.oa=function(){this.clear(null);this.hc(this.ib);for(var a=g.q(this.va),b=a.next();!b.done;b=a.next())this.hc(b.value);g.WJ.prototype.oa.call(this)};g.v(kK,XJ);
kK.prototype.init=function(a,b,c){XJ.prototype.init.call(this,a,b,c);this.l=b;if(null==b.text&&null==b.icon)zo(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.K(this.element,a);null!=b.text&&(a=g.Aw(b.text),g.pc(a)||(this.element.setAttribute("aria-label",a),this.B=new g.WJ({D:"span",K:"ytp-ad-button-text",ma:a}),g.H(this,this.B),this.B.xa(this.element)));null!=b.icon&&(b=jK(b.icon),null!=
b&&(this.u=new g.WJ({D:"span",K:"ytp-ad-button-icon",S:[b]}),g.H(this,this.u)),this.C?g.Ge(this.element,this.u.element,0):this.u.xa(this.element))}};
kK.prototype.clear=function(){this.hide()};
kK.prototype.onClick=function(a){var b=this;XJ.prototype.onClick.call(this,a);bma(this).forEach(function(c){return b.Pa.executeCommand(c,b.macros)});
this.api.onAdUxClicked(this.componentType,this.layoutId)};g.v(lK,g.F);lK.prototype.oa=function(){this.l&&g.cp(this.l);this.i.clear();mK=null;g.F.prototype.oa.call(this)};
lK.prototype.register=function(a,b){b&&this.i.set(a,b)};
var mK=null;g.v(oK,XJ);
oK.prototype.init=function(a,b,c){XJ.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.xo(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new kK(this.api,this.Pa,this.layoutId,this.i),g.H(this,this.button),this.button.init(aI("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.Aw(a)),this.button.xa(this.element),this.I&&!g.hn(this.button.element,"ytp-ad-clickable")&&g.K(this.button.element,"ytp-ad-clickable"),
a&&(this.u=new g.WJ({D:"div",K:"ytp-ad-hover-text-container"}),this.C&&(b=new g.WJ({D:"div",K:"ytp-ad-hover-text-callout"}),b.xa(this.u.element),g.H(this,b)),g.H(this,this.u),this.u.xa(this.element),b=nK(a),g.Ge(this.u.element,b,0)),this.show())};
oK.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();XJ.prototype.hide.call(this)};
oK.prototype.show=function(){this.button&&this.button.show();XJ.prototype.show.call(this)};g.v(qK,XJ);qK.prototype.init=function(a,b,c){XJ.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&pK(a)||"";g.pc(b)?(g.S(this.api.T().experiments,"web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&zo(Error("Found AdImage without valid image URL")):(this.l?g.dg(this.element,"backgroundImage","url("+b+")"):te(this.element,{src:b}),te(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
qK.prototype.clear=function(){this.hide()};g.v(rK,XJ);g.k=rK.prototype;g.k.hide=function(){XJ.prototype.hide.call(this);this.B&&this.B.focus()};
g.k.show=function(){this.B=document.activeElement;XJ.prototype.show.call(this);this.C.focus()};
g.k.init=function(a,b,c){XJ.prototype.init.call(this,a,b,c);this.u=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.xo(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.xo(Error("ConfirmDialogRenderer.cancelLabel was not set.")):fma(this,b):g.xo(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.$t(this.l);this.hide()};
g.k.WB=function(){this.hide()};
g.k.Yy=function(){var a=this.u.cancelEndpoint;a&&this.Pa.executeCommand(a,this.macros);this.hide()};
g.k.XB=function(){var a=this.u.confirmNavigationEndpoint||this.u.confirmEndpoint;a&&this.Pa.executeCommand(a,this.macros);this.hide()};g.v(sK,XJ);g.k=sK.prototype;
g.k.init=function(a,b,c){XJ.prototype.init.call(this,a,b,c);this.u=b;if(null==b.defaultText&&null==b.defaultIcon)g.xo(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.xo(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.K(this.B,a)}a={};b.defaultText?
(c=g.Aw(b.defaultText),g.pc(c)||(a.buttonText=c,this.l.setAttribute("aria-label",c))):g.ug(this.Aa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.l.hasAttribute("aria-label")||this.Y.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=jK(b.defaultIcon),this.Oa("untoggledIconTemplateSpec",c),b.toggledIcon?(this.L=!0,c=jK(b.toggledIcon),this.Oa("toggledIconTemplateSpec",c)):(g.ug(this.I,!0),g.ug(this.C,!1)),g.ug(this.l,!1)):g.ug(this.Y,!1);g.Qb(a)||this.update(a);b.isToggled&&
(g.K(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));tK(this);this.N(this.element,"change",this.aE);this.show()}};
g.k.onClick=function(a){0<this.va.length&&(this.toggleButton(!this.isToggled()),this.aE());XJ.prototype.onClick.call(this,a)};
g.k.aE=function(){var a=this;g.L(this.B,"ytp-ad-toggle-button-toggled",this.isToggled());gma(this,this.isToggled()).forEach(function(b){return a.Pa.executeCommand(b,a.macros)});
if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);tK(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.L(this.B,"ytp-ad-toggle-button-toggled",a);this.l.checked=a;tK(this)};
g.k.isToggled=function(){return this.l.checked};g.v(uK,Yt);uK.prototype.J=function(a){if(Array.isArray(a)){a=g.q(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof zw&&this.u(b)}};var joa={seekableStart:0,seekableEnd:1,current:0};g.v(vK,XJ);vK.prototype.clear=function(){this.dispose()};g.v(yK,XJ);yK.prototype.init=function(a,b,c){XJ.prototype.init.call(this,a,b,c);this.l=b;this.isTemplated()||g.Ne(this.element,YJ(this.l));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?pK(a):"",c=(c=this.api.getVideoData(1))&&c.Wj,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}this.show()};
yK.prototype.isTemplated=function(){return this.l.isTemplated||!1};
yK.prototype.clear=function(){this.hide()};g.v(AK,g.P);g.k=AK.prototype;g.k.xt=function(){return this.durationMs};
g.k.start=function(){this.u||(this.u=!0,this.i.start())};
g.k.stop=function(){this.u&&(this.u=!1,this.i.stop())};
g.k.Rb=function(){this.l+=100;var a=!1;this.l>this.durationMs&&(this.l=this.durationMs,this.i.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.l/1E3};this.Pa&&this.Pa.Rb(this.B.current);this.V("b");a&&this.V("a")};
g.k.getProgressState=function(){return this.B};g.v(DK,vK);g.k=DK.prototype;g.k.init=function(a,b,c){vK.prototype.init.call(this,a,b,c);if(b.templatedCountdown){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){zo(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.u=new yK(this.api,this.Pa,this.layoutId,this.i);this.u.init(aI("ad-text"),a,{});this.u.xa(this.element);g.H(this,this.u)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){xK(this);vK.prototype.hide.call(this)};
g.k.Fp=function(){this.hide()};
g.k.Bn=function(){if(null!=this.l){var a=this.l.getProgressState();if(null!=a&&null!=a.current&&this.u){a=(void 0!==this.B?this.B:this.l instanceof AK?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.BK(a);zK(this.u,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.k.show=function(){wK(this);vK.prototype.show.call(this)};g.v(EK,XJ);g.k=EK.prototype;g.k.init=function(a,b,c){XJ.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.xo(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&zo(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&zo(Error("AdFeedbackRenderer.title was not set.")),kma(this,b)):g.xo(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){lp(this.I);lp(this.L);this.C.length=0;this.hide()};
g.k.hide=function(){this.l&&this.l.hide();this.u&&this.u.hide();XJ.prototype.hide.call(this);this.B&&this.B.focus()};
g.k.show=function(){this.l&&this.l.show();this.u&&this.u.show();this.B=document.activeElement;XJ.prototype.show.call(this);this.I.focus()};
g.k.gI=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.V("c");this.hide()};
g.k.nS=function(){this.hide()};
lma.prototype.isChecked=function(){return this.u.checked};g.v(FK,rK);FK.prototype.WB=function(a){rK.prototype.WB.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
FK.prototype.Yy=function(a){rK.prototype.Yy.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
FK.prototype.XB=function(a){rK.prototype.XB.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.V("d")};g.v(GK,XJ);g.k=GK.prototype;
g.k.init=function(a,b,c){XJ.prototype.init.call(this,a,b,c);this.I=b;if(null==b.dialogMessage&&null==b.title)g.xo(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&zo(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.l=new kK(this.api,this.Pa,this.layoutId,this.i,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.H(this,this.l),
this.l.init(aI("button"),a,this.macros),this.l.xa(this.element);b.title&&(a=g.Aw(b.title),this.Oa("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=nK(a[c]);if(!g.pc(d.textContent)){var e=Ce("LI");e.appendChild(d);this.Da.appendChild(e)}}else g.ug(this.Da,!1);b.dialogMessage&&(a=nK(b.dialogMessage,!0),this.Ma.appendChild(a));b.confirmLabel&&(a=g.Aw(b.confirmLabel),this.Oa("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?zo(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?nma(this,a):c&&oma(this,c),this.B=new kK(this.api,this.Pa,this.layoutId,this.i,["ytp-ad-info-dialog-mute-button"],"button",!0),g.H(this,this.B),this.B.init(aI("button"),b,this.macros),this.B.Na("click",this.SQ,this),this.B.xa(this.Sa)));
pma(this)}};
g.k.clear=function(){lp(this.L);this.hide()};
g.k.hide=function(){this.u?this.u.hide():this.C&&this.C.hide();this.l&&this.l.hide();this.B&&this.B.hide();XJ.prototype.hide.call(this);this.Y&&this.Y.focus()};
g.k.show=function(){this.l&&this.l.show();this.B&&this.B.show();this.Ga||(mma(this),this.Ga=!0);this.Y=document.activeElement;XJ.prototype.show.call(this);this.L.focus()};
g.k.bE=function(){this.I&&this.I.confirmServiceEndpoint&&this.Pa.executeCommand(this.I.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.V("f");this.hide()};
g.k.SQ=function(){var a=this.u?this.u:this.C;a&&!a.vb&&(this.hide(),a.show())};g.v(HK,oK);HK.prototype.init=function(a,b,c){oK.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(sma(this,a,c),this.show())};
HK.prototype.hide=function(){this.button&&this.button.hide();this.l&&this.l.hide();oK.prototype.hide.call(this)};
HK.prototype.show=function(){this.button&&this.button.show();oK.prototype.show.call(this)};
HK.prototype.clear=function(){this.hide()};(function(a,b){function c(f){var h=g.q(f);f=h.next().value;h=la(h);return a.apply(f,h)}
function d(f){f=g.q(f);f.next();f=la(f);return b(e,f)}
b=void 0===b?Kda:b;var e=g.Qa(a);return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];l=this||g.A;var m=lEa.get(l);m||(m={},lEa.set(l,m));return Td(m,[this].concat(g.ma(h)),c,d)}})(function(a){var b=g.De("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.De("DIV");g.sg(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.He(b);return a});g.v(g.IK,g.F);g.k=g.IK.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.sy(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.i&&this.i()):this.element.vb||(JK(this,!0),this.state=1,a?this.delay.start(a):this.sy()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.vb&&(JK(this,!0),this.state=4,this.delay.start(this.B)))};
g.k.sy=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:JK(this,!1);this.state=3;this.delay.start(this.u);break;case 3:this.state=null;this.i&&this.i();break;case 4:this.element.hide();JK(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.l&&this.l()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.sy()};
g.k.oa=function(){this.element.Ha()||this.element.element.removeAttribute("aria-hidden");g.F.prototype.oa.call(this)};g.v(KK,vK);g.k=KK.prototype;g.k.init=function(a,b,c){vK.prototype.init.call(this,a,b,c);a=b.durationMs;"number"===typeof a&&0>=a&&g.xo(Error("durationMs was specified incorrectly in AdMessageRenderer with a value of: "+a));a=b.durationMs;this.C=null==a||0===a?0:a+1E3*this.l.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.u.init(aI("ad-text"),d,c);this.u.xa(this.B.element);this.L.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){tma(this,!1);vK.prototype.hide.call(this);this.B.hide();this.u.hide();xK(this)};
g.k.show=function(){tma(this,!0);vK.prototype.show.call(this);wK(this);this.B.show();this.u.show()};
g.k.Fp=function(){this.hide()};
g.k.Bn=function(){if(null!=this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Aa&&a>=this.C?(this.L.hide(),this.Aa=!0):this.u&&this.u.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!=this.Y&&(zK(this.u,{TIME_REMAINING:String(a)}),this.Y=a)))}};g.v(LK,vK);g.k=LK.prototype;
g.k.init=function(a,b,c){vK.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.xo(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Sa&&g.K(this.u.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.Aa=null==a||0===a?this.l.xt():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.B.init(aI("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Wj&&b.thumbnail?this.C.init(aI("ad-image"),b.thumbnail,c):this.L.hide()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.u.hide();this.B.hide();this.C.hide();xK(this);vK.prototype.hide.call(this)};
g.k.show=function(){wK(this);this.u.show();this.B.show();this.C.show();vK.prototype.show.call(this)};
g.k.Fp=function(){this.hide()};
g.k.Bn=function(){if(null!=this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ma&&a>=this.Aa?(g.S(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")||this.Y.hide(),this.Ma=!0,this.V("i")):this.B&&this.B.isTemplated()&&(a=Math.max(0,Math.ceil((this.Aa-a)/1E3)),a!=this.Ga&&(zK(this.B,{TIME_REMAINING:String(a)}),this.Ga=a)))}};g.v(NK,yK);NK.prototype.onClick=function(a){yK.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.v(OK,vK);g.k=OK.prototype;
g.k.init=function(a,b,c){vK.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.pc(g.od(d[0].url))&&(d[0].url=a.Wg)}else g.qt(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.L.init(aI("ad-image"),b.image,c);this.C.init(aI("ad-text"),
b.headline,c);this.B.init(aI("ad-text"),b.description,c);this.u.init(aI("button"),b.actionButton.buttonRenderer,c);this.Y=b.actionButton.buttonRenderer.navigationEndpoint;this.show();this.Aa=b.startMs||0;wK(this)}else g.pt(Error("FlyoutCtaRenderer has no valid action button."));else g.pt(Error("FlyoutCtaRenderer has no description AdText."));else g.pt(Error("FlyoutCtaRenderer has no headline AdText."));else g.qt(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){vK.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Me(this.u.element,a.target)&&this.Y&&this.Pa.executeCommand(this.Y,this.macros)};
g.k.Bn=function(){if(this.l){var a=this.l.getProgressState();a&&a.current&&1E3*a.current>=this.Aa&&(xK(this),g.kn(this.element,"ytp-flyout-cta-inactive"))}};
g.k.Fp=function(){this.clear()};
g.k.clear=function(){this.hide()};
g.k.show=function(){this.u&&this.u.show();vK.prototype.show.call(this)};
g.k.hide=function(){this.u&&this.u.hide();vK.prototype.hide.call(this)};g.v(PK,XJ);g.k=PK.prototype;g.k.init=function(a,b,c){var d=this;XJ.prototype.init.call(this,a,b,c);this.l=b;this.l.rectangle&&(uma(this,c),this.C.show(100),this.show(),(this.l&&this.l.impressionCommands||[]).forEach(function(e){return d.Pa.executeCommand(e,d.macros)}))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.u.hide();XJ.prototype.hide.call(this)};
g.k.show=function(){this.B.show();this.u.show();XJ.prototype.show.call(this)};
g.k.cE=function(){mn(this.element,"ytp-ad-instream-user-sentiment-selected");this.l.postMessageAction&&this.api.La("onYtShowToast",this.l.postMessageAction);this.C.hide()};
g.k.onClick=function(a){0<this.va.length&&this.cE();XJ.prototype.onClick.call(this,a)};g.v(QK,g.F);g.k=QK.prototype;g.k.oa=function(){this.reset();g.F.prototype.oa.call(this)};
g.k.reset=function(){g.$t(this.B);this.I=!1;this.i&&this.i.stop();this.C.stop();this.l&&(this.l=!1,this.J.play())};
g.k.start=function(){this.reset();this.B.N(this.u,"mouseover",this.bL,this);this.B.N(this.u,"mouseout",this.aL,this);this.i?this.i.start():(this.I=this.l=!0,g.dg(this.u,{opacity:this.W}))};
g.k.bL=function(){this.l&&(this.l=!1,this.J.play());this.C.stop();this.i&&this.i.stop()};
g.k.aL=function(){this.I?this.C.start():this.i&&this.i.start()};
g.k.wF=function(){this.l||(this.l=!0,this.L.play(),this.I=!0)};g.v(RK,vK);g.k=RK.prototype;
g.k.init=function(a,b,c){vK.prototype.init.call(this,a,b,c);this.L=b;this.Aa=wma(this);if(!b||g.Qb(b))g.xo(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Qb(b.message))g.xo(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=jK(a);null==b?g.xo(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.C=new g.WJ({D:"button",Ba:["ytp-ad-skip-button","ytp-button"],S:[{D:"span",
K:"ytp-ad-skip-button-icon",S:[b]}]}),g.H(this,this.C),this.C.xa(this.B.element),this.u=new yK(this.api,this.Pa,this.layoutId,this.i,"ytp-ad-skip-button-text"),this.u.init(aI("ad-text"),this.L.message,c),g.H(this,this.u),g.Ge(this.C.element,this.u.element,0));var d=void 0===d?null:d;c=this.api.T();!(0<this.va.length)&&c.i&&(zD?0:"ontouchstart"in document.documentElement&&(Nf()||Mf()))&&(this.hc(this.ib),d&&this.hc(d),this.va=[this.N(this.element,"touchstart",this.ZK,this),this.N(this.element,"touchmove",
this.YK,this),this.N(this.element,"touchend",this.XK,this)])}};
g.k.clear=function(){this.Y.reset();this.hide()};
g.k.hide=function(){this.B.hide();this.u&&this.u.hide();xK(this);vK.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.C&&(a&&g.hp(a),vK.prototype.onClick.call(this,a),this.V("j"),this.Ga||!this.Aa))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.mJ=function(a){if(!g.S(this.api.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf")||!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&&vma(e.adLifecycleCommand)||e.pingingEndpoint||b.push(e)}return{commandExecutorCommand:{commands:b}}};
g.k.wG=function(){return"skip"};
g.k.show=function(){this.Y.start();this.B.show();this.u&&this.u.show();wK(this);vK.prototype.show.call(this)};
g.k.Fp=function(){this.V("k")};
g.k.Bn=function(){};g.v(SK,vK);g.k=SK.prototype;
g.k.init=function(a,b,c){vK.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.Qb(a)?null:a){this.C=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.EC(this.api.T().experiments,"preskip_button_style_ads_backend")&&QD(this.api.T());this.u=new LK(this.api,this.Pa,this.layoutId,this.i,this.l,d);this.u.init(aI("preskip-component"),a,c);MK(this.u);g.H(this,this.u);this.u.xa(this.element);
g.S(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")&&this.u.subscribe("i",this.iR,this)}else b.skipOffsetMilliseconds&&(this.C=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Qb(b)?null:b;null==b?g.xo(Error("SkipButtonRenderer was not set in player response.")):(this.B=new RK(this.api,this.Pa,this.layoutId,this.i,this.l,this.Y),this.B.init(aI("skip-button"),b,c),g.H(this,this.B),this.B.xa(this.element),this.show())};
g.k.show=function(){this.L&&this.B?this.B.show():this.u&&this.u.show();wK(this);vK.prototype.show.call(this)};
g.k.Fp=function(){};
g.k.clear=function(){this.u&&this.u.clear();this.B&&this.B.clear();xK(this);vK.prototype.hide.call(this)};
g.k.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();xK(this);vK.prototype.hide.call(this)};
g.k.iR=function(){TK(this,!0)};
g.k.Bn=function(){g.S(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")?this.u||1E3*this.l.getProgressState().current>=this.C&&TK(this,!0):1E3*this.l.getProgressState().current>=this.C&&TK(this,!0)};g.v(UK,XJ);UK.prototype.init=function(a,b,c){XJ.prototype.init.call(this,a,b,c);b.skipAd&&(a=b.skipAd,a.skipAdRenderer&&(b=new SK(this.api,this.Pa,this.layoutId,this.i,this.l,!1),b.xa(this.u),b.init(aI("skip-button"),a.skipAdRenderer,this.macros),g.H(this,b)));this.show()};g.v(VK,kK);VK.prototype.init=function(a,b,c){kK.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.Aw(b.text),a=!g.pc(a));a?null==b.navigationEndpoint?zo(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?zo(Error("Button style was not a link-style type in renderer,")):this.show():zo(Error("No visit advertiser text was present in the renderer."))};g.v(WK,XJ);WK.prototype.init=function(a,b,c){XJ.prototype.init.call(this,a,b,c);a=b.text;g.pc(YJ(a))?zo(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.l&&(b=this.api.T(),b=a.text+" "+(b&&b.i?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new yK(this.api,this.Pa,this.layoutId,this.i),a.init(aI("simple-ad-badge"),b,c),a.xa(this.element),g.H(this,a)),this.show())};
WK.prototype.clear=function(){this.hide()};g.v(aL,g.WJ);aL.prototype.Rb=function(){var a=this.l.getProgressState();this.Dc.style.width=100*$K(new XK(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
aL.prototype.u=function(){g.JD(this.api.T())||(2===this.api.getPresentingPlayerType()?-1===this.i&&(this.show(),this.i=this.l.subscribe("b",this.Rb,this),this.Rb()):-1!==this.i&&(this.hide(),this.l.Hg(this.i),this.i=-1))};g.v(bL,XJ);
bL.prototype.init=function(a,b,c,d){XJ.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new SK(this.api,this.Pa,this.layoutId,this.i,this.l,this.I),c.xa(this.C),c.init(aI("skip-button"),a.skipAdRenderer,this.macros),g.H(this,c)):a.adPreviewRenderer&&(c=new LK(this.api,this.Pa,this.layoutId,this.i,this.l,!1),c.xa(this.C),c.init(aI("ad-preview"),a.adPreviewRenderer,this.macros),MK(c),g.H(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=
new PK(this.api,this.Pa,this.layoutId,this.i),c.xa(this.Y),c.init(aI("instream-user-sentiment"),a,this.macros),g.H(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new OK(this.api,this.Pa,this.layoutId,this.i,this.l),g.H(this,c),c.xa(this.L),c.init(aI("flyout-cta"),a.flyoutCtaRenderer,this.macros)));d=d&&d.u;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),c=new WK(this.api,this.Pa,this.layoutId,this.i,!0),g.H(this,
c),c.xa(this.u),c.init(aI("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 DK(this.api,this.Pa,this.layoutId,this.i,this.l,d),g.H(this,d),d.xa(this.u),d.init(aI("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new HK(this.api,this.Pa,this.layoutId,this.i,this.element),
g.H(this,a),a.xa(this.u),a.init(aI("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=xma(this)&&this.B?this.B:this.u))&&(a=new VK(this.api,this.Pa,this.layoutId,this.i),g.H(this,a),a.xa(d),a.init(aI("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.T())&&!GD(b)&&"3"==b.controlsType&&(b=new aL(this.api,this.l),b.xa(this.Aa),g.H(this,b));g.S(this.api.T().experiments,"enable_updated_html5_player_focus_style")&&
g.K(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
bL.prototype.clear=function(){this.hide()};g.Fa("yt.pubsub.publish",g.Jo,void 0);var t0={},Jma=(t0.WEB_UNPLUGGED="^unplugged/",t0.WEB_UNPLUGGED_ONBOARDING="^unplugged/",t0.WEB_UNPLUGGED_OPS="^unplugged/",t0.WEB_UNPLUGGED_PUBLIC="^unplugged/",t0.WEB_CREATOR="^creator/",t0.WEB_KIDS="^kids/",t0.WEB_EXPERIMENTS="^experiments/",t0.WEB_MUSIC="^music/",t0.WEB_REMIX="^music/",t0.WEB_MUSIC_EMBEDDED_PLAYER="^music/",t0.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",t0);g.v(iL,hL);iL.prototype.u=function(){return vEa};
iL.prototype.i=function(a){return a.subscribeEndpoint};
iL.prototype.l=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.v(jL,hL);jL.prototype.u=function(){return wEa};
jL.prototype.i=function(a){return a.unsubscribeEndpoint};
jL.prototype.l=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};g.v(kL,hL);kL.prototype.u=function(){return sEa};
kL.prototype.i=function(a){return a.feedbackEndpoint};
kL.prototype.l=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.v(lL,hL);lL.prototype.u=function(){return tEa};
lL.prototype.i=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
lL.prototype.l=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.v(mL,hL);mL.prototype.u=function(){return uEa};
mL.prototype.i=function(a){return a.playlistEditEndpoint};
mL.prototype.l=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.v(nL,hL);nL.prototype.u=function(){return rEa};
nL.prototype.i=function(a){return a.webPlayerShareEntityServiceEndpoint};
nL.prototype.l=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};oL.prototype.fetch=function(a,b){var c=this,d;if(null===(d=this.l)||void 0===d?0:d.B(a,b))return nm(this.l.u(a,b).catch(function(f){g.qt(f)}));
if(this.i){var e=ud(g.wd(5,Nd(a,"key")))||"/UNKNOWN_PATH";this.i.start(e)}e=new Request(a,b);return nm(fetch(e).then(function(f){return c.Zo(f)}).catch(function(f){var h,l;
if(null===(h=c.l)||void 0===h?0:h.i(a,b))return f=c.l.l(a,b),null===(l=c.i)||void 0===l?void 0:l.success(),f;g.qt(f)}))};
oL.prototype.Zo=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))});
a.redirected||a.ok?this.i&&this.i.success():(this.i&&this.i.failure(),b=b.then(function(c){g.qt(new g.Zr("Error: API fetch failed",a.status,a.url,c));return Object.assign(Object.assign({},c),{errorMetadata:{status:a.status}})}));
return b};var pL;Or.prototype.Gd=function(a){this.handleError(a)};
Or.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Qo("idb_data_corrupted_killswitch")||this.i("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.i("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Qo("idb_is_supported_completed_killswitch")||this.i("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":Oma(this,b);break;case "TRANSACTION_ENDED":Math.random()<=Ro("ytidb_transaction_ended_event_rate_limit",.02)&&this.i("idbTransactionEnded",b);break;
case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign(Object.assign({},b),{hasWindowUnloaded:this.l}),this.i("idbTransactionAborted",a)}};var At=new wt,rL=0;var u0={},UEa=(u0["api.invalidparam"]=2,u0.auth=150,u0["drm.auth"]=150,u0["heartbeat.net"]=150,u0["heartbeat.servererror"]=150,u0["heartbeat.stop"]=150,u0["html5.unsupportedads"]=5,u0["fmt.noneavailable"]=5,u0["fmt.decode"]=5,u0["fmt.unplayable"]=5,u0["html5.missingapi"]=5,u0["html5.unsupportedlive"]=5,u0["drm.unavailable"]=5,u0);var bna={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},cna={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},dna={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},ana={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},Zma={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"},$ma={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};wL.prototype.getLocalMediaInfoById=function(a){return g.C(this,function c(){return g.z(c,function(d){return d.return(oF(a))})})};
wL.prototype.getAllLocalMediaInfo=function(){return g.C(this,function b(){return g.z(b,function(c){return c.return(pF())})})};
wL.prototype.i=function(a){if(a.Cr&&2===a.status)aF(a.videoId,2);else if(4===a.status){var b=a.videoId;aF(b,4);hF(b,!1)}g.S(this.api.T().experiments,"hoffle_api")&&this.api.La("localmediachange",OE(a));yL(this)};
wL.prototype.Z=function(){};g.v(DL,g.F);g.k=DL.prototype;
g.k.handleExternalCall=function(a,b,c){var d=this.C[a],e=this.J[a],f=d;if(e)if(c&&fw(c,yEa,zEa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.T();d.Tj&&!this.W.has(a)&&(this.W.add(a),g.Qr("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:c||void 0,playerStyle:d.playerStyle||void 0}));if(f){c=!1;d=g.q(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.qt(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.C[a]?!0:!!(this.J[a]&&b&&fw(b,yEa,zEa))};
g.k.getBandwidthEstimate=function(){return hD(this.app.T().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.X(this.app);b&&(a={gpu:(0,g.EU)(),d:a},b.handleError(new g.JB("feedback",!1,a)))};
g.k.getApiInterface=function(){return this.L.slice()};
g.k.getInternalApiInterface=function(){return g.Lb(this.l)};
g.k.uN=function(a,b){if("string"===typeof b){var c=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];g.Ja(b).apply(window,e)};
this.I[b]=c}else c=b;this.app.El.subscribe(a,c)};
g.k.RS=function(a,b){if("string"===typeof b){var c=this.I[b],d=this.I;b in d&&delete d[b];b=c}this.app.El.unsubscribe(a,b)};
g.k.getPlayerState=function(){return sza(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.i&&zW(this.app,!0,this.playerType);CW(this.app,a,b,c,this.playerType)};
g.k.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
g.k.seekToStreamTime=function(a,b,c){this.i&&zW(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.X(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.Lc()&&(l=h.getStreamTimeOffset());CW(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.X(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.X(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&CW(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.Vf(this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.k.getDuration=function(){return this.app.getDuration(this.playerType)};
g.k.getVolume=function(){return this.app.Eh.volume};
g.k.setVolume=function(a){una(this,a)};
g.k.isMuted=function(){return this.app.Eh.muted};
g.k.mute=function(){vna(this)};
g.k.unMute=function(){wna(this)};
g.k.playVideo=function(){this.i&&zW(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Yd()){var b=iM(this.app.ob());if(!wDa(b)){b.Qk("control_play");return}}3===a?g.NL(this.app.ob()).Qk("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Yd()){var b=iM(this.app.ob());if(!wDa(b)){b.Qk("control_pause");return}}3===a?g.NL(this.app.ob()).Qk("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.i.Ya&&a.Qa.V("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getPlaybackRate=function(){return g.X(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.k.getAvailablePlaybackRates=function(){var a=this.app.T();if(a.Jc){var b=a.l||a.ea("web_player_admin_origin_killswitch")?a.td[0]:window.location.origin;a=["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(b)||a.Vj?DEa:CEa}else a=[1];return a};
g.k.getPlaybackQuality=function(a){return(a=g.X(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.X(this.app,this.playerType);return a?(a=g.Oc(a.So(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
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.setSize=function(){this.app.Wa().resize()};
g.k.channelSubscribed=function(){this.La("SUBSCRIBE",kW(this.app).Yh)};
g.k.channelUnsubscribed=function(){this.La("UNSUBSCRIBE",kW(this.app).Yh)};
g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.X(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.X(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.updateFullerscreenEduButtonVisibility=function(a){var b=Nza(this.app);b&&(b.u=a,b.Ja())};
g.k.updateFullerscreenEduButtonSubtleModeState=function(a){var b=Nza(this.app);b&&(g.L(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.wi(b,g.VM(b.B.ac(),b.element)),b.C=!0))};
g.k.confirmYpcRental=function(){var a=g.X(this.app,this.playerType);a&&a.Id("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.T().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.T().Uj=a};
g.k.setLivingRoomAppMode=function(a){this.app.T().livingRoomAppMode=rD("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,UD)};
g.k.setEnablePrivacyFilter=function(a){this.app.T().enablePrivacyFilter=void 0===a?!1:a};
g.k.isPictureInPictureAllowed=function(){return kW(this.app).vz};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.loadModule=function(a){"captions"===a&&(a=g.dM(this.app.ob()))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.dM(this.app.ob()))&&a.loaded&&a.HT()};
g.k.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(tL(a,b,c),this.playerType),this.i&&zW(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(tL(a,b,c),this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=Wma(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.i&&zW(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=Wma(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.T();if(a.J)return"";var b=kW(this.app),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.T();return a.J?"":a.getVideoEmbedCode(kW(this.app).videoId,this.app.Wa().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return Cza(this.app,a,b,c)};
g.k.removeCueRange=function(a){a:{for(var b=this.app,c=ST(b.l.X)||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()===a){b.l.removeCueRange(e);eW(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.i&&zW(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.i&&zW(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.i&&zW(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.i&&zW(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.gO=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=a.Za(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.ob();return"captions"===a?(a=g.dM(d))&&a.uf(b,c):null};
g.k.getOption=function(a,b,c){var d=g.X(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.T().l?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.ob();if("captions"===a)return(b=g.dM(b))&&b.getOptions();if(!a)return a=[],g.dM(b)&&a.push("captions"),a};
g.k.Dw=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.X(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.l&&a.l.video){b.video_quality=a.l.video.quality;a=a.l.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(){iza(this.app,!0)};
g.k.hideVideoInfo=function(){iza(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.X(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.V(a,128)&&5===UEa[b.errorCode])};
g.k.getSphericalProperties=function(){var a=g.PL(this.app.ob());return a?2===this.playerType?{}:a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.PL(this.app.ob());b&&b.setSphericalProperties(a,!0)}};
g.k.supportsGaplessAudio=function(){return this.app.T().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.X(this.app);a&&a.sendAbandonmentPing()};
g.k.deleteLocalMediaById=function(a){return jna(a)};
g.k.deleteAllLocalMedia=function(){return kna()};
g.k.cancelPendingLocalMediaById=function(a){return this.app.cancelPendingLocalMediaById(a)};
g.k.XN=function(){};
g.k.fetchLocalMediaById=function(a){return this.app.fetchLocalMediaById(a)};
g.k.getLocalPlayerResponse=function(a){return this.app.getLocalPlayerResponse(a)};
g.k.getLocalMediaInfoById=function(a){return this.app.getLocalMediaInfoById(a)};
g.k.getAllLocalMediaInfo=function(){return this.app.getAllLocalMediaInfo()};
g.k.downloadVideo=function(a){return this.app.downloadVideo(a)};
g.k.refreshAllVideos=function(){return this.app.refreshAllVideos()};
g.k.deleteAllVideos=function(){return this.app.deleteAllVideos()};
g.k.deleteVideos=function(a){return this.app.deleteVideos(a)};
g.k.startOrchestration=function(){return this.app.startOrchestration()};
g.k.stopOrchestration=function(){return this.app.stopOrchestration()};
g.k.setAutonavState=function(a){Kza(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.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.addInfoCardXml=function(a,b,c){this.app.T().L.add(a,{Rv:b,Yu:c})};
g.k.updateLastActiveTime=function(){vp()};
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.T().Rg!==a&&(this.app.T().Rg=a,(a=g.X(this.app,this.playerType))&&MV(a))};
g.k.updateSubtitlesUserSettings=function(a){g.dM(this.app.ob()).tK(a,!0)};
g.k.getCaptionWindowContainerId=function(){var a=g.dM(this.app.ob());return a?a.getCaptionWindowContainerId():""};
g.k.setFauxFullscreen=function(a){Ut();this.app.Ni(a?2:0)};
g.k.setUseFastSizingOnWatch=function(a){this.app.Wa().setUseFastSizingOnWatch(a)};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Yd()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.X(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.Nh();if(!c)return null;b=c.levels[b];return b?(a=g.NF(b,a))?{column:a.column,columns:a.columns,height:a.hx,row:a.row,rows:a.rows,url:a.url,width:a.ix}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Nh();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Lc();return b.vv(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.Nh();return b?(b=b.levels[a])?{index:a,intervalMs:b.i,maxFrameIndex:b.rs(),minFrameIndex:b.Vy()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Nh();return a?a.levels.length:0};
g.k.VN=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.X(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().Si};
g.k.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&g.NL(this.app.ob()).Qk("control_set_audio_track",a);var b=g.X(this.app,this.playerType);if(b){var c;if(!b.Ha()&&!g.V(b.playerState,128))if(null===(c=b.videoData.u)||void 0===c?0:c.i)b.l.setAudioTrack(a);else{a:if(c=b.videoData,c.J&&!pB(c.J)||a==c.Vj||!c.Db||0>=c.Db.length)c=!1;else{for(var d=g.q(c.Db),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof JE)){c=!1;break a}var f=a.i.getId();e.u&&(e.u.i=f,e.l=null)}c.Vj=a;c=!0}c&&
(b.V("internalaudioformatchange",b.videoData,!0),yV(b)&&b.Ua("hlsaudio",a.id))}}};
g.k.WN=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.X(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.X(this.app,this.playerType);return a&&a.getVideoData().l?iy(a.L?Xva(a.Y,a.L,RV(a)):YF):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.X(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.dM(this.app.ob());return a?a.jO():null};
g.k.resetSubtitlesUserSettings=function(){g.dM(this.app.ob()).YS()};
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.Wa().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.app.T();a=this.jf()&&!g.S(a.experiments,"kevlar_miniplayer_disable_vis");return this.app.getVisibilityState(this.Zf(),this.isFullscreen()||GD(this.app.T()),a,this.isInline(),this.app.ir(),this.app.gr())};
g.k.isMutedByMutedAutoplay=function(){return this.app.Zt};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.Wa().setInternalSize(new g.ee(a,b))};
g.k.Lc=function(){var a=g.X(this.app,void 0);return a?a.Lc():0};
g.k.jf=function(){return this.app.jf()};
g.k.Zf=function(){var a=g.X(this.app,this.playerType);return!!a&&a.Zf()};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.setSafetyMode=function(a){this.app.T().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.ea("player_enable_playback_playlist_change"))c=!0;else return;void 0!==a.external_list&&this.app.setIsExternalPlaylist(a.external_list);var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==b.Za().videoId||(a.index=b.index)):mW(this.app,{list:a.list,index:a.index,playlist_length:d.length});ZL(this.app.getPlaylist(),a);this.La("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.X(this.app,this.playerType||1);c&&g.fG(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){PD(this.app.T(),a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.setCardsVisible=function(a,b,c){var d=g.lM(this.app.ob());d&&d.Jh()&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.V("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.Wa().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.X(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.setPlaybackQualityRange=function(a,b){var c=g.X(this.app,this.playerType);c&&(a=gy(a,b||a,!0,"m"),zL(c,a))};
g.k.onAdUxClicked=function(a,b){this.V("aduxclicked",a,b)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
g.k.V=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.T().u&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.El.V.apply(this.app.El,[a].concat(g.ma(c)));this.app.Ej.V.apply(this.app.Ej,[a].concat(g.ma(c)))};
g.k.La=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.El.V.apply(this.app.El,[a].concat(g.ma(c)));this.app.Ej.V.apply(this.app.Ej,[a].concat(g.ma(c)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.ea=function(a){return g.S(this.app.T().experiments,a)};
g.k.Z=function(){};
g.k.oa=function(){if(this.element){var a=this.element,b;for(b in this.l)this.l.hasOwnProperty(b)&&(a[b]=null);this.element=null}this.B={};this.I={};g.F.prototype.oa.call(this)};g.v(JL,DL);g.k=JL.prototype;g.k.addCueRange=function(a,b,c,d,e){return Cza(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return sza(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){CW(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){CW(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.Dw=function(a){a=void 0===a?this.playerType:a;var b=DL.prototype.Dw.call(this,a)||{};if(a=g.X(this.app,a))a=a.getVideoData(),b.backgroundable=a.backgroundable,b.eventId=a.eventId,b.cpn=a.clientPlaybackNonce,b.isLive=a.isLivePlayback,b.isWindowedLive=a.Yk,b.isManifestless=AG(a),b.allowLiveDvr=a.allowLiveDvr,b.isListed=a.isListed,b.itct=a.Aa,b.ypcOriginalItct=a.IO,b.ypcPreview=a.ypcPreview,b.paidContentOverlayText=JG(a),b.paidContentOverlayDurationMs=KG(a),null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=
a.liveUtcStartSeconds),a.i&&ly(a.i)&&(b.usingLocalMedia="true");return b};
g.k.getCurrentTime=function(a,b){var c;return 2===this.app.getAppState()&&5===this.getPlayerState()?(null===(c=this.app.getVideoData())||void 0===c?void 0:c.startSeconds)||0:a?this.app.getCurrentTime(a,b):DL.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){return 3===this.getPresentingPlayerType()?(a=g.NL(this.app.ob()).getProgressState(),(null===a||void 0===a?void 0:a.duration)||0):a?this.app.getDuration(a,b):DL.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return g.NL(this.app.ob()).getProgressState();var b=this.app.getVideoData(),c=(g.X(this.app,a)||g.X(this.app)).getPlayerType(),d=this.getCurrentTime(a);a=this.getDuration(a);var e=this.app.Vf(c),f=this.app.isAtLiveHead(c),h=this.app.Vq(),l=this.app.fd(c);var m=this.app;(c=g.X(m,c))?(c=iW(m,c),m=uW(m,qR(c),c)):m=0;return{allowSeeking:this.app.yf(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:d,displayedStart:-1,duration:a,ingestionTime:e,
isAtLiveHead:f,loaded:h,seekableStart:l,seekableEnd:m}};
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.HL(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.HL(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.HL(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.HL(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.Wa().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.toggleFullscreen=function(){var a=this.app.T();if(a.externalFullscreen)return this.isFullscreen()?Wt(window.document.documentElement):Tt(window.document.documentElement);if(Ut()||this.ea("embeds_enable_mobile_custom_controls"))return this.isFullscreen()?Wt(Vt()):"3"!==a.controlsType&&Ut()?Tt(this.app.Wa().element):(a=this.app.Dd().Re())?Tt(a):Promise.reject(Error("Media element missing"));this.La("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=iM(this.app.ob());a&&a.created&&a.destroy();(a=g.X(this.app))&&a.stopVideo();(a=this.app.ob().yd.get("endscreen"))&&a.PO()&&g.ML(this.app.Qa,!0)};
g.k.stopVideo=function(){var a=this.app.T();!g.S(a.experiments,"disable_new_pause_state3")&&aE(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():DL.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.X(this.app,this.playerType).Eb(!0)};
g.k.toggleSubtitles=function(){var a=g.dM(this.app.ob());a&&a.wT()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.PL(this.app.ob());b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.PL(this.app.ob());return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){una(this,a,b)};
g.k.mute=function(a){vna(this,a)};
g.k.unMute=function(a){wna(this,a)};
g.k.mutedAutoplay=function(){this.ea("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.lM(this.app.ob());b&&!b.loaded&&b.load()}DL.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.lM(this.app.ob());b&&b.loaded&&b.unload()}DL.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.ob();switch(a){case "ad":return(a=iM(d))&&a.uf&&a.uf(b,c);case "kids":return(a=jM(d))&&a.uf(b,c);case "remote":return(a=g.NL(d))&&a.uf(b,c);case "unplugged":return(a=kM(d))&&a.uf(b,c);case "annotations_module":return(a=g.lM(d))&&a.uf(b,c);case "creatorendscreen":return(a=mM(d))&&a.uf(b,c)}return DL.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.ob();switch(a){case "ad":return(b=iM(b))&&b.getOptions&&b.getOptions();case "remote":return(b=g.NL(b))&&b.getOptions();case "annotations_module":return(b=g.lM(b))&&b.getOptions();case "creatorendscreen":return(b=mM(b))&&b.getOptions();case "unplugged":return(b=kM(b))&&b.getOptions();case "kids":return(b=jM(b))&&b.getOptions()}if(!a){a=DL.prototype.getOptions.call(this);if(!a)return a;iM(b)&&a.push("ad");g.NL(b)&&a.push("remote");g.lM(b)&&a.push("annotations_module");
mM(b)&&a.push("creatorendscreen");kM(b)&&a.push("unplugged");jM(b)&&a.push("kids");return a}return DL.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.Wa().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.HL(this);a&&a.Uk()};
g.k.setCenterCrop=function(a){this.app.Wa().setCenterCrop(a)};
var xna="BASE_URL BASE_YT_URL adformat allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_cardio enable_faster_speeds enablecastapi end 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 start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
yna="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 enable_cardio 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_fast_sizing_on_watch_default use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");g.v(g.KL,JL);g.k=g.KL.prototype;g.k.Oj=function(a,b,c,d,e,f){return this.app.Oj(a,b,c,d,e,f)};
g.k.qt=function(){return this.app.qt()};
g.k.Ro=ba(4);g.k.ob=function(){return this.app.ob()};
g.k.Xd=function(){var a=this.ob().yd.get("endscreen");return!!a&&a.Xd()};
g.k.getRootNode=function(){return this.Wa().element};
g.k.T=function(){return this.app.T()};
g.k.Hl=function(a){return this.app.Hl(a)};
g.k.Tm=function(){return this.Zy};
g.k.rb=function(a){return this.app.rb(a)};
g.k.Wa=function(){return this.app.Wa()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.X(this.app,a);if(!b)return null;b=b.getVideoData();var c;b.enableServerStitchedDai&&2===a?(a=this.app,null===(c=a.I)||void 0===c?c=void 0:(b=a.getCurrentTime(),c=CR(c,1E3*b),c=null===c||void 0===c?void 0:c.videoData),c=c||a.getVideoData()):c=b;return c};
g.k.Nh=function(a){return this.app.Nh(a)};
g.k.isWidescreen=function(){return this.app.isWidescreen()};
g.k.isHdr=function(){var a=g.X(this.app);return a?a.isHdr():!1};
g.k.pB=function(){return this.app.pB()};
g.k.Hp=function(a){this.app.Hp(a)};
g.k.Fg=function(a,b,c,d){this.app.Qe(a,b,c,d)};
g.k.Tk=ba(6);g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){g.NL(this.app.ob()).Qk("control_play");return}if(2===this.getPresentingPlayerType()){var b=iM(this.app.ob());if(b&&b.hn())return}}catch(c){g.pt(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.X(this.app,a).stopVideo()};
g.k.En=function(a){g.X(this.app,a).En()};
g.k.addEventListener=function(a,b){this.app.Ej.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.Ej.unsubscribe(a,b)};
g.k.Hi=function(a){this.app.Hi(a)};
g.k.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.k.So=function(){var a={},b=g.X(this.app).So();b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.Dt=ba(8);g.k.Ix=function(a){this.app.Ix(a);a&&Kza(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)));return this.app.getVideoUrl(d.videoId,f?void 0:this.getPlaylistId()||void 0,h,b,c)};
g.k.Et=ba(10);g.k.wj=ba(14);g.k.vr=function(a,b){this.ob().vr(a,b)};
g.k.Jh=function(){var a=g.lM(this.ob());return!!a&&a.Jh()};
g.k.qk=function(){var a=g.lM(this.ob());return!!a&&a.qk()};
g.k.setCardsVisible=function(a,b,c){var d=g.lM(this.ob());d&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.V("changeProductsInVideoVisibility",a)};
g.k.Jr=ba(15);g.k.Tp=function(){var a=g.X(this.app);a&&a.Tp()};
g.k.Ju=function(a){this.La("onVideoAreaChange");this.La(a?"onShowControls":"onHideControls")};
g.k.jj=function(a,b){var c=g.HL(this);if(c)return c.jj(a,b);a=this.app.Wa().Og();return new g.Uf(0,0,a.width,a.height)};
g.k.Tt=function(){var a=this.ob().yd.get("heartbeat");return!!a&&a.Tt()};
g.k.yf=function(){if(this.T().ra)return!1;var a=g.X(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.QG(b)||2===this.getPresentingPlayerType()&&!this.app.Yd()||a.Nl()&&3!==this.getPresentingPlayerType()?!1:!0};
g.k.Pt=function(){var a;return(null===(a=g.X(this.app))||void 0===a?void 0:a.Pt)||!1};
g.k.Lp=function(){var a=g.X(this.app);a&&a.Lp()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.Td=function(a,b){this.app.Gs(a,b)};
g.k.Eg=function(a,b){this.app.sC(a,b)};
g.k.Df=function(a,b){var c=this.app,d=g.X(c,b);d&&(a=d.X.Df(a),b&&c.getPresentingPlayerType()!==b||eW(c,"cuerangesremoved",a))};
g.k.Id=function(a,b){(b=g.X(this.app,b))&&b.Id(a)};
g.k.Nl=function(){var a=g.X(this.app,void 0);return a?a.Nl():!0};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.Zd(a,0,100);FL(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){FL(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){FL(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.Dd=function(){return this.app.Dd()};
g.k.wt=function(){return this.app.wt()};
g.k.jh=function(a){return this.app.jh(a)};
g.k.getBandwidthEstimate=function(){return hD(this.T().schedule)};
g.k.Zb=function(a,b,c,d){this.T().Aa&&this.app.dn.Zb(a,b,c,void 0===d?!1:d)};
g.k.Lh=function(a,b,c){this.T().Aa&&this.app.dn.Lh(a,b,void 0===c?!1:c)};
g.k.Jn=function(a,b){this.T().Aa&&this.app.dn.Jn(a,b)};
g.k.Kb=function(a,b){this.T().Aa&&this.app.dn.click(a,b)};
g.k.eb=function(a,b,c){if(this.T().Aa){var d=this.app.dn;d.elements.has(a);b?d.i.add(a):d.i.delete(a);var e=g.uu(),f=a.visualElement;d.l.has(a)?e&&f&&(b?g.Iu(e,[f]):g.Ju(e,[f])):b&&!d.u.has(a)&&(e&&f&&g.Bu(e,f,c),d.u.add(a))}};
g.k.Mt=function(a){return this.T().Aa?this.app.dn.Mt(a):!1};
g.k.Ic=function(){return g.X(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.Gj=function(a){this.app.Gj(a)};
g.k.Sv=function(a){this.app.Sv(a)};
g.k.Dn=function(a){this.app.getPresentingPlayerType()===a&&this.app.Dn(a)};
g.k.NA=function(a){return this.app.NA(a)};
g.k.Sk=function(a){this.app.Sk(a)};
g.k.EB=function(){this.app.EB()};
g.k.Bq=function(a,b,c,d,e,f){return this.app.Bq(a,b,c,d,e,f)};
g.k.wp=function(a){this.app.wp(a)};
g.k.Ho=function(a,b){b=void 0===b?Infinity:b;this.app.Ho(void 0===a?-1:a,b)};
g.k.Tr=function(a,b,c){this.app.Tr(a,b,c)};
g.k.Om=function(){return this.app.Om()};
g.k.Zv=function(a,b,c){this.app.Zv(a,b,void 0===c?0:c)};
g.k.jr=function(){return this.app.jr()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.Yd=function(){return this.app.Yd()};
g.k.jn=function(a,b,c){return this.app.jn(a,b,c)};
g.k.Ua=function(a,b,c,d){c=void 0===c?!1:c;var e;null===(e=g.X(this.app,d))||void 0===e?void 0:e.Ua(a,b,c)};
g.k.Tx=function(){return this.app.Tx()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.k.SB=function(a,b){this.V("aduxmouseover",a,b)};
g.k.RB=function(a,b){this.V("aduxmouseout",a,b)};
g.k.dC=function(a,b){this.V("muteadaccepted",a,b)};g.v(g.TL,Yt);g.TL.prototype.N=function(a,b,c,d,e){return Yt.prototype.N.call(this,a,b,c,d,e)};UL.prototype.reset=function(){Yw(this.timerName)};
UL.prototype.tick=function(a,b){ax(a,b,this.timerName)};
UL.prototype.info=function(a,b){$w(a,b,this.timerName)};g.VL.prototype.toString=function(){return this.type+this.id};g.v(g.WL,g.P);g.k=g.WL.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.Fk=function(a){return this.loop||!!a||0<=this.index-1};
g.k.Za=function(a,b,c){a=void 0!==a?a:this.index;a=this.items&&a in this.items?this.items[this.order[a]]:null;var d=null;a&&(b&&(a.autoplay="1"),c&&(a.autonav="1"),d=new g.$F(this.l,a),g.H(this,d),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
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.u++;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.u++}this.V("shuffle")};
g.k.gf=function(a){a=a||"hqdefault.jpg";var b=this.B[a];if(b||this.l.J||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return $D(this.l,this.C[0],a)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Vm=function(){return this.l.getVideoUrl(this.Za().videoId,this.getPlaylistId())};
g.k.oa=function(){this.i=null;g.vi(this.items);g.P.prototype.oa.call(this)};g.v(g.aM,g.P);g.k=g.aM.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.uf=function(){};
g.k.Qi=function(){return!0};
g.k.oa=function(){this.loaded&&this.unload();g.P.prototype.oa.call(this)};
g.k.Eb=function(){return{}};
g.k.getOptions=function(){return[]};g.VEa=new Map;g.gM={};g.v(cM,g.F);g.k=cM.prototype;g.k.Lu=function(){return this.G.getVideoData().Lu()};
g.k.LC=function(){return this.G.getVideoData().LC()};
g.k.VF=function(){var a=this.yd.get("heartbeat");fM(this,"heartbeat",this.VF,!1,!0);!a&&this.yd.has("heartbeat")&&this.G.V("offlineslatestatechange")};
g.k.iA=function(){fM(this,"annotations_module",this.iA,!0);var a=this.yd.get("annotations_module");if(a)for(var b in this.l)if(this.l.hasOwnProperty(b)){var c=b;a.subscribe(c,this.l[c])}};
g.k.UF=function(){if(!this.yd.get("ad"))try{eM(this)?fM(this,"ad",this.UF,!1,!0):this.G.Id("ad")}catch(a){this.G.Id("ad"),g.pt(a)}};
g.k.wt=function(){return this.i};
g.k.UA=function(){var a={},b=g.dM(this);b&&g.Sa(a,b.UA());return a};
g.k.vr=function(a,b){g.Sa(this.i,a||null);g.Sa(this.Ts,b||null)};
g.k.oa=function(){g.F.prototype.oa.call(this);hM(this,1,!0)};g.v(nM,g.zl);nM.prototype.preventDefault=function(){g.zl.prototype.preventDefault.call(this);this.i&&this.i.preventDefault()};
nM.prototype.stopPropagation=function(){g.zl.prototype.stopPropagation.call(this);this.i&&this.i.stopPropagation()};g.v(g.oM,UI);g.k=g.oM.prototype;g.k.Tn=function(){return!0};
g.k.isView=function(){return!1};
g.k.xC=function(){return!1};
g.k.Re=function(){return this.i};
g.k.Wf=function(){return this.i.src};
g.k.Sx=function(a){this.Z();var b=this.getPlaybackRate();this.i.src=a;this.setPlaybackRate(b)};
g.k.Fx=function(){this.Z();this.i.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.i.playbackRate?this.i.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.Z();this.getPlaybackRate()!==a&&(this.i.playbackRate=a);return a};
g.k.wv=function(){return this.i.loop};
g.k.setLoop=function(a){this.Z();this.i.loop=a};
g.k.canPlayType=function(a,b){return this.i.canPlayType(a,b)};
g.k.mm=function(){return this.i.paused};
g.k.us=function(){return this.i.seeking};
g.k.Jk=function(){return this.i.ended};
g.k.uw=function(){return this.i.muted};
g.k.Kr=function(a){zB();this.Z();this.i.muted=a};
g.k.Wo=function(){return this.i.played||AB([],[])};
g.k.Mg=function(){try{var a=this.i.buffered}catch(b){}return a||AB([],[])};
g.k.Gt=function(){return this.i.seekable||AB([],[])};
g.k.zv=function(){var a=this.i;return a.getStartDate?a.getStartDate():null};
g.k.getCurrentTime=function(){return this.i.currentTime};
g.k.Ox=function(a){this.Z();this.i.currentTime=a};
g.k.getDuration=function(){return this.i.duration};
g.k.load=function(){this.Z();var a=this.i.playbackRate;try{this.i.load()}catch(b){}this.i.playbackRate=a};
g.k.pause=function(){this.Z();this.i.pause()};
g.k.play=function(){this.Z();var a=this.i.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.k.Gh=function(){return this.i.readyState};
g.k.ww=function(){return this.i.networkState};
g.k.Yi=function(){return this.i.error?this.i.error.code:null};
g.k.xf=function(){return this.i.error?this.i.error.message:""};
g.k.Av=function(){if(this.i instanceof HTMLVideoElement&&this.i.getVideoPlaybackQuality)return this.i.getVideoPlaybackQuality();if(this.i){var a=this.i,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}};
g.k.Zf=function(){return!!this.i.webkitCurrentPlaybackTargetIsWireless};
g.k.Lp=function(){return!!this.i.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){var a=this.i,b=window.document;xB()?this.i!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():yB()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.Rm=function(){var a=this.i;return new g.ce(a.offsetLeft,a.offsetTop)};
g.k.kq=function(){return g.tg(this.i)};
g.k.setSize=function(a){g.sg(this.i,a)};
g.k.getVolume=function(){return this.i.volume};
g.k.setVolume=function(a){zB();this.Z();this.i.volume=a};
g.k.tA=function(a){this.B[a]||(this.i.addEventListener(a,this.listener),this.B[a]=this.listener)};
g.k.setAttribute=function(a,b){this.i.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.i.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.i.hasAttribute(a)};
g.k.Hs=ba(17);g.k.Su=ba(19);g.k.Tu=ba(21);g.k.Qs=ba(23);g.k.ct=function(){return Wt(this.i)};
g.k.wm=function(a){g.K(this.i,a)};
g.k.Ht=function(a){return g.hg(this.i,a)};
g.k.lB=function(){return g.Me(document.body,this.i)};
g.k.oa=function(){for(var a=g.q(Object.keys(this.B)),b=a.next();!b.done;b=a.next())b=b.value,this.i.removeEventListener(b,this.B[b]);UI.prototype.oa.call(this)};
g.k.Z=function(){};g.v(qM,g.P);g.k=qM.prototype;g.k.hP=function(a){a=gp(a);if(!de(a,this.B)){var b=2;this.I&&(b|=8);this.B=a;pM(this,b,!0)}};
g.k.iP=function(){this.I&&pM(this,8,!0);pM(this,2,!1)};
g.k.jx=function(a){var b=gp(a);de(b,this.B)||(this.B=b,(a=g.dp(a))&&this.Qv(a)&&(pM(this,4,!0),this.i.hc(this.u),this.u=this.i.N(this.target,"mouseover",this.NB),this.J=this.i.N(this.target,"mouseout",this.NB)))};
g.k.NB=function(a){a=fp(a);a&&this.Qv(a)||(this.B=new g.ce(NaN,NaN),Wna(this))};
g.k.VO=function(){pM(this,1,!0)};
g.k.YN=function(a){a=g.dp(a);a instanceof Element&&!(0<a.tabIndex)||pM(this,1,!0)};
g.k.MH=function(){this.I=!0;this.i.hc(this.C);this.C=this.i.N(document,"mouseup",this.jP)};
g.k.jP=function(){this.I=!1;pM(this,8,!1);this.i.hc(this.C);this.C=this.i.N(this.target,"mousedown",this.MH)};
g.k.eK=function(a){if(a=(a=a.changedTouches)&&a[0])this.va=a.identifier,this.i.hc(this.L),this.L=this.i.N(this.target,"touchend",this.xT,void 0,!0),pM(this,1024,!0)};
g.k.xT=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.va){var d=c;break}}d&&(this.i.hc(this.L),this.L=this.i.N(this.target,"touchstart",this.eK,void 0,!0),pM(this,1024,!1))};
g.k.Uk=function(){pM(this,2,!0)};
g.k.resize=function(){g.wB&&Wna(this)};
g.k.toString=function(){return g.P.prototype.toString.call(this)};g.v(g.rM,g.W);
g.rM.prototype.Ja=function(){var a=this.api.getVideoData(),b=this.api.T();if(a.C&&(a.Ca||b.pfpChazalUi))var c=b.pfpChazalUi?[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},S:[{D:"path",K:"ytp-dni-large-play-button-bg",U:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{D:"path",U:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{D:"path",K:"ytp-dni-large-play-button-bg",U:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{D:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.I?(g.L(this.element,"ytp-touch-device",b.i),c=[b.I?{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},S:[{D:"path",K:"ytp-large-play-button-bg",U:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{D:"path",U:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{D:"path",K:"ytp-large-play-button-bg",
U:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{D:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{D:"path",K:"ytp-large-play-button-bg",
U:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#f00"}},{D:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.Oa("largePlayButtonChildren",c);a.C&&(a.Ca||b.pfpChazalUi)&&(a=a.Ca?a.Ca:"#1f1f1f",this.ya("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.v(sM,g.W);g.k=sM.prototype;g.k.show=function(){var a=this;this.vb||(this.u.N(this.api,"videodatachange",function(){g.cn(a.i)}),this.u.N(this.api,"videoplayerreset",function(){g.cn(a.i)}));
g.W.prototype.show.call(this)};
g.k.hide=function(){this.u&&g.$t(this.u);g.W.prototype.hide.call(this)};
g.k.kb=function(){g.cn(this.i)};
g.k.dL=function(a){var b=this.api.T();g.S(b.experiments,"disable_new_pause_state3")&&aE(b)&&(a=a.state.isCued()&&!a.xn.isCued()||g.OL(this.api)&&g.V(a.state,2),g.dg(this.element,"transition-delay",a?"2s":""));g.cn(this.i)};
g.k.zS=function(){g.cn(this.i)};
g.k.cL=function(){this.l.stop();this.hide();g.cn(this.i)};
g.k.Ja=function(){var a=this.api.rb();if(3===this.api.getPresentingPlayerType()&&(a.pc()||g.V(a,4)))var b=!0;else(b=this.api.ob().yd.get("ypc"))&&b.xx?b=!0:(b=this.api.T(),b=g.V(a,2)&&LL(this.api)&&b.Wc?!0:!1);b?(b=!0,this.B.hide()):(this.B.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!g.S(this.api.T().experiments,"disable_new_pause_state3"),b=!(!g.V(a,2)||LL(this.api)||b&&this.api.qt())||g.V(a,1024)?!0:!1));b?(this.l.show(),a=this.api.getVideoData(),this.LT(this.api.getPlaylist(),
a)):(this.l.hide(),g.V(a,1)||this.l.stop())};
g.k.LT=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=g.q(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof g.$F&&!c.videoId)){var d=this.api.Wa().getPlayerSize();var e=g.cE(),f=d.width*e;e*=d.height;if(1280<f||720<e)if(d=c.gf("maxresdefault.jpg"))break;if(640<f||480<e)if(d=c.gf("maxresdefault.jpg"))break;if(320<f||180<e)if(d=c.gf("sddefault.jpg")||c.gf("hqdefault.jpg")||c.gf("mqdefault.jpg"))break;if(d=c.gf("default.jpg"))break}this.C.style.backgroundImage=
d?"url("+d+")":""};g.v(g.yM,g.W);g.yM.prototype.resize=function(){};
g.yM.prototype.l=function(a){var b=this;$na(this);var c=a.wA,d=this.api.T();"GENERIC_WITHOUT_LINK"!==c||d.I?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.bd(BM(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Vm(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.I?this.bd(g.zM(a.errorMessage)):this.bd(BM(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=
g.Id(c,{hl:a})),this.bd(BM(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.Ya&&!d.l&&Zna(this,function(e){if(g.tM(e,b.api,!aE(b.api.T()))){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 Yna=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.v(DM,g.TL);DM.prototype.fb=function(){var a=this;this.rh();var b=this.G.getVideoData();if(b.isValid()){var c=[];this.G.T().J||c.push({src:b.gf("mqdefault.jpg")||"",sizes:"320x180"});this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:c});c=b=null;g.OL(this.G)&&(this.i.delete("nexttrack"),this.i.delete("previoustrack"),b=function(){a.G.nextVideo()},c=function(){a.G.previousVideo()});
CM(this,"nexttrack",b);CM(this,"previoustrack",c)}};
DM.prototype.rh=function(){var a=this.G.rb();a=a.isError()?"none":g.eJ(a)?"playing":"paused";this.mediaSession.playbackState=a};
DM.prototype.oa=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.q(this.i),b=a.next();!b.done;b=a.next())CM(this,b.value,null);g.TL.prototype.oa.call(this)};g.v(EM,g.W);EM.prototype.fb=function(a,b){aoa(this,b);this.od&&boa(this,this.od)};
EM.prototype.wc=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&aoa(this,b);this.i&&boa(this,a.state);this.od=a.state};
EM.prototype.Zc=function(){this.l.show();this.G.V("paidcontentoverlayvisibilitychange",!0)};
EM.prototype.Bb=function(){this.l.hide();this.G.V("paidcontentoverlayvisibilitychange",!1)};g.v(FM,g.W);FM.prototype.hide=function(){this.i.stop();this.message.style.display="none";g.W.prototype.hide.call(this)};
FM.prototype.l=function(a){coa(a.state)?this.i.start():this.hide()};
FM.prototype.u=function(){this.message.style.display="block"};g.v(g.GM,g.WJ);g.k=g.GM.prototype;g.k.show=function(){var a=this.Ag();g.WJ.prototype.show.call(this);this.Aa&&(this.J.N(window,"blur",this.Bb),this.J.N(document,"click",this.eL));a||this.V("show",!0)};
g.k.hide=function(){var a=this.Ag();g.WJ.prototype.hide.call(this);doa(this);a&&this.V("show",!1)};
g.k.Zc=function(a,b){this.l=a;this.X.show();b?(this.L||(this.L=this.J.N(this.G,"appresize",this.uF)),this.uF()):this.L&&(this.J.hc(this.L),this.L=void 0)};
g.k.uF=function(){var a=g.HL(this.G);this.l&&a.Dp(this.element,this.l)};
g.k.Bb=function(){var a=this.Ag();doa(this);this.X.hide();a&&this.V("show",!1)};
g.k.eL=function(a){var b=ep(a);b&&(g.Me(this.element,b)||this.l&&g.Me(this.l,b)||!g.CK(a))||this.Bb()};
g.k.Ag=function(){return this.vb&&4!==this.X.state};g.v(IM,g.GM);IM.prototype.pu=function(a){this.u&&(a?(eoa(this),this.Zc()):(this.seen&&this.Kb(),this.Bb()))};
IM.prototype.rh=function(a){this.api.isMutedByMutedAutoplay()&&g.fI(a,2)&&this.Bb()};
IM.prototype.onClick=function(){this.api.unMute();this.Kb()};
IM.prototype.Kb=function(){this.i||(this.i=!0,this.api.Kb(this.element))};g.v(g.KM,g.TL);g.k=g.KM.prototype;g.k.init=function(){var a=this.api.rb();this.Jb(a);this.gm();this.kb()};
g.k.fb=function(a,b){this.wB!==b.videoId&&(this.wB=b.videoId,a=this.md,a.ra=b&&0<b.Xc.length?5E3:3E3,pM(a,512,!0),this.gm())};
g.k.fR=function(){this.fb("newdata",this.api.getVideoData())};
g.k.Kn=function(){var a=this.api.Jh()&&this.api.qk();return this.Vv||a||this.fB};
g.k.Xi=function(){var a=!this.Kn();g.L(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.Qv=function(a){try{if(!g.Me(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Qe(a);)a=a===this.api.getRootNode()?null:g.Je(a);return!!a};
g.k.vj=function(a){var b=this.api.getRootNode();g.L(b,"ytp-autohide",a);g.L(b,"ytp-autohide-active",!0);this.xF.start(a?250:100);a&&(this.gy=!1,g.kn(b,"ytp-touch-mode"));this.hA=!a;this.api.Ju(!a)};
g.k.TB=function(){var a=this.api.getRootNode();g.L(a,"ytp-autohide-active",!1)};
g.k.KR=function(){this.hD=!0};
g.k.JR=function(a){if(g.S(this.api.T().experiments,"player_doubletap_to_seek")||g.S(this.api.T().experiments,"embeds_enable_mobile_dtts")&&this.api.T().i)this.hD=!1,this.iD&&this.hc(this.iD),0===this.fu&&NM(this,a)?(this.Jw(),this.api.T().ea("embeds_enable_mobile_dtts")&&g.BD(this.api.T())&&MM&&12>=jH&&this.api.rb().isCued()?JM(this):this.Xv.start(),this.iD=this.N(this.api.Wa(),"touchmove",this.KR,void 0,!0)):this.Xv.stop();!goa(this)||!NM(this,a)||g.BD(this.api.T())&&this.api.T().ea("embeds_enable_mobile_dtts")&&
this.api.T().i||JM(this);var b=this.py.Ag();if(yD&&hoa(this,a))b&&g.hp(a);else if(this.md.l||LM(this,ep(a))||this.py.Ag()||(this.api.rb().isCued(),g.hp(a)),this.gy=!0,g.K(this.api.getRootNode(),"ytp-touch-mode"),this.md.Uk(),g.S(this.api.T().experiments,"player_doubletap_to_seek")||g.S(this.api.T().experiments,"embeds_enable_mobile_dtts")&&this.api.T().i)if(b=this.api.rb(),!(!this.api.yf()||g.V(b,2)&&LL(this.api)||g.V(b,64))){b=Date.now()-this.wH;this.fu+=1;if(350>=b){this.Xs=!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.fu-1);0<d&&d<b?(this.Cu(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.Cu(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.hp(a)}else g.BD(this.api.T())&&this.api.T().ea("embeds_enable_mobile_dtts")&&this.api.T().i&&MM&&NM(this,a)&&g.hp(a);this.wH=Date.now();this.FJ.start()}};
g.k.FR=function(a){hoa(this,a)||(goa(this)||!NM(this,a)||this.Xv.isActive()||(JM(this),g.hp(a)),this.Xs&&(this.Xs=!1))};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Qr("embedsRequestStorageAccessResult",{resolved:!0});pza(!0);Aq();window.location.reload()},function(){g.Qr("embedsRequestStorageAccessResult",{resolved:!1});
a.Qr()})};
g.k.Jw=function(){};
g.k.Mp=function(){};
g.k.Cu=function(){};
g.k.CJ=function(){};
g.k.Qr=function(){var a=this.api.rb();g.V(a,2)&&LL(this.api)||(g.eJ(a)?this.api.pauseVideo():(this.api.EB(),this.api.playVideo(),this.Jq&&document.activeElement===this.Jq.B.element&&this.api.getRootNode().focus()))};
g.k.GR=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!LM(this,ep(a)))if(a=this.api.T(),(g.S(this.api.T().experiments,"player_doubletap_to_seek")||g.S(this.api.T().experiments,"embeds_enable_mobile_dtts")&&this.api.T().i)&&this.Xs)this.Xs=!1;else if(a.Ma&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.Jt(d)})}catch(d){this.Jt(d)}};
g.k.Jt=function(a){String(a).includes("fullscreen error")?g.qt(a):g.pt(a)};
g.k.HR=function(a){ioa(this,.3,a.scale);g.hp(a)};
g.k.IR=function(a){ioa(this,.1,a.scale)};
g.k.kb=function(){var a=this.api.Wa().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.md.resize();g.L(b,"ytp-fullscreen",this.api.isFullscreen());g.L(b,"ytp-large-width-mode",c);g.L(b,"ytp-small-mode",this.lf());g.L(b,"ytp-tiny-mode",this.Nw());g.L(b,"ytp-big-mode",this.Ve());this.Ce&&this.Ce.resize(a)};
g.k.rh=function(a){this.Jb(a.state);this.gm()};
g.k.JA=function(){var a=!!this.wB&&!this.api.Xd(),b=2===this.api.getPresentingPlayerType(),c=this.api.T();if(b){if(PDa&&g.S(c.experiments,"enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=iM(this.api.ob());return a&&b.NC()}return a&&(c.Si||this.api.isFullscreen()||c.Lf)};
g.k.gm=function(){var a=this.JA();this.Ik!==a&&(this.Ik=a,g.L(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Jb=function(a){var b=a.isCued()||this.api.Nl()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.kD&&this.hc(this.kD),this.kD=this.N(this.api.Wa(),"touchstart",this.JR,void 0,b));var c=a.pc()&&!g.V(a,32)||this.api.Tt();pM(this.md,128,!c);c=3===this.api.getPresentingPlayerType();pM(this.md,256,c);c=this.api.getRootNode();if(g.V(a,2))var d=[r0.ENDED];else d=[],g.V(a,8)?d.push(r0.PLAYING):g.V(a,4)&&d.push(r0.PAUSED),g.V(a,1)&&!g.V(a,32)&&d.push(r0.BUFFERING),g.V(a,32)&&
d.push(r0.SEEKING),g.V(a,64)&&d.push(r0.UNSTARTED);g.xb(this.Ez,d)||(g.ln(c,this.Ez),this.Ez=d,g.jn(c,d));d=this.api.T();var e=g.V(a,2);g.L(c,"ytp-hide-controls",("3"===d.controlsType?!e:"1"!==d.controlsType)||b);g.L(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.fB);g.V(a,128)&&!g.BD(d)?(this.Ce||(this.Ce=new g.yM(this.api),g.H(this,this.Ce),g.RL(this.api,this.Ce.element,4)),this.Ce.l(a.getData()),this.Ce.show()):this.Ce&&(this.Ce.dispose(),this.Ce=null)};
g.k.Bk=function(){return this.api.Jh()&&this.api.qk()?(this.api.setCardsVisible(!1,!1),!0):this.api.Xd()?(g.ML(this.api,!0),!0):!1};
g.k.pu=function(a){this.fB=a;this.Xi()};
g.k.Ve=function(){return!1};
g.k.lf=function(){return!this.Ve()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.Nw=function(){return this.lf()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.Ai=function(){return this.gy};
g.k.Tm=function(){return null};
g.k.jj=function(){var a=this.api.Wa().getPlayerSize();return new g.Uf(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.Dp=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.Wa().Ju(a)};
g.k.Uk=function(){};
g.k.JG=function(){return null};g.v(OM,g.P);g.k=OM.prototype;g.k.xt=function(){return 1E3*this.api.getDuration(this.Nj,!1)};
g.k.stop=function(){this.i&&this.De.hc(this.i)};
g.k.Rb=function(){var a=this.api.getProgressState(this.Nj);this.l={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:g.S(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.Nj,!1)};this.V("b")};
g.k.getProgressState=function(){return this.l};
g.k.wc=function(a){g.fI(a,2)&&this.V("a")};g.v(PM,g.W);PM.prototype.onClick=function(){this.G.La("BACK_CLICKED")};g.v(g.QM,g.W);g.QM.prototype.show=function(){g.W.prototype.show.call(this);g.cn(this.i)};
g.QM.prototype.hide=function(){this.l.stop();g.W.prototype.hide.call(this)};
g.QM.prototype.Mp=function(a){a?g.V(this.G.rb(),64)||RM(this,Zla(),"Play"):(a=this.G.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?RM(this,ama(),"Stop live playback"):RM(this,Xla(),"Pause"))};g.v(UM,g.W);g.k=UM.prototype;g.k.Zc=function(){this.G.T().ea("player_new_info_card_format")&&g.hn(this.G.getRootNode(),"ytp-cards-teaser-shown")&&!g.BD(this.G.T())||(this.l.show(),g.Jo("iv-button-shown"))};
g.k.Bb=function(){g.Jo("iv-button-hidden");this.l.hide()};
g.k.Ag=function(){return this.vb&&4!==this.l.state};
g.k.oa=function(){this.i&&this.i();g.W.prototype.oa.call(this)};
g.k.wQ=function(){g.Jo("iv-button-mouseover")};
g.k.onClicked=function(a){this.G.Jh();var b=g.hn(this.G.getRootNode(),"ytp-cards-teaser-shown");g.Jo("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.G.setCardsVisible(!this.G.qk(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.v(WM,g.W);g.k=WM.prototype;g.k.nK=function(){this.G.Jh()&&this.G.qk()&&this.Ag()&&this.Bb()};
g.k.XC=function(){this.Bb();g.Jo("iv-teaser-clicked",null!=this.i);this.G.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.k.fL=function(){g.Jo("iv-teaser-mouseover");this.i&&this.i.stop()};
g.k.cS=function(a){g.S(this.G.T().experiments,"player_new_info_card_format")&&!g.BD(this.G.T())&&this.dj.Bb();this.i||!a||this.G.qk()||this.l&&this.l.isActive()||(this.Zc(a),g.Jo("iv-teaser-shown"))};
g.k.Zc=function(a){this.Oa("text",a.teaserText);this.element.setAttribute("dir",g.tn(a.teaserText));this.B.show();this.l=new g.J(function(){g.K(this.G.getRootNode(),"ytp-cards-teaser-shown");this.vD()},0,this);
this.l.start();TM(this.dj,!1);this.i=new g.J(this.Bb,580+a.durationMs,this);this.i.start();this.C.push(this.Na("mouseover",this.fE,this));this.C.push(this.Na("mouseout",this.eE,this))};
g.k.vD=function(){if(g.BD(this.G.T())&&this.vb){var a=this.dj.element.offsetLeft,b=g.oe("ytp-cards-button-icon"),c=this.G.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.dj.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.CN=function(){g.BD(this.G.T())&&this.X.lf()&&this.vb&&this.L.start()};
g.k.fE=function(){this.I.stop();this.i&&this.i.isActive()&&this.J.start()};
g.k.eE=function(){this.J.stop();this.i&&!this.i.isActive()&&this.I.start()};
g.k.QQ=function(){this.i&&this.i.stop()};
g.k.PQ=function(){this.Bb()};
g.k.ph=function(){this.Bb()};
g.k.Bb=function(){!this.i||this.u&&this.u.isActive()||(g.Jo("iv-teaser-hidden"),this.B.hide(),g.kn(this.G.getRootNode(),"ytp-cards-teaser-shown"),this.u=new g.J(function(){for(var a=g.q(this.C),b=a.next();!b.done;b=a.next())this.hc(b.value);this.C=[];this.i&&(this.i.dispose(),this.i=null);TM(this.dj,!0)},330,this),this.u.start())};
g.k.Ag=function(){return this.vb&&4!==this.B.state};
g.k.oa=function(){var a=this.G.getRootNode();a&&g.kn(a,"ytp-cards-teaser-shown");g.vi(this.l,this.u,this.i);g.W.prototype.oa.call(this)};var loa=new Set("embed_config endscreen_ad_tracking home_group_info ic_track player_request watch_next_request".split(" "));var v0={},ZM=(v0.BUTTON="ytp-button",v0.TITLE_NOTIFICATIONS="ytp-title-notifications",v0.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",v0.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",v0.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",v0);g.v($M,g.W);$M.prototype.onClick=function(){this.api.Kb(this.element);var a=!this.i;this.Oa("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.Oa("pressed",a);ooa(this,a)};g.v(g.bN,g.W);g.bN.prototype.l=function(){g.K(this.element,"ytp-sb-subscribed")};
g.bN.prototype.u=function(){g.kn(this.element,"ytp-sb-subscribed")};g.v(cN,g.W);g.k=cN.prototype;g.k.yC=function(){soa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.BA=function(){if(qoa(this)&&!this.isExpanded()){this.Oa("flyoutUnfocusable","false");this.Oa("channelTitleFocusable","0");this.u&&this.u.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.eb(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.l&&a.wg&&a.subscribed&&(this.l.show(),this.api.eb(this.l.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.Zz=function(){this.Oa("flyoutUnfocusable","true");this.Oa("channelTitleFocusable","-1");this.u&&this.u.start()};
g.k.Ja=function(){var a=this.api.getVideoData(),b=this.api.T(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Fc&&!!a.Wg:g.BD(b)&&(c=!!a.videoId&&!!a.Fc&&!!a.Wg&&!(a.C&&b.pfpChazalUi));var d=g.oE(this.api.T())+a.Fc;g.BD(this.api.T())&&(d=g.Id(d,g.YM("emb_ch_name_ex")));var e=a.Fc,f=a.Wg;b=g.BD(b)?a.Zn:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;c?(e=g.oE(this.api.T())+e,this.J!==f&&(this.i.style.backgroundImage="url("+f+")",this.J=f),this.Oa("channelLink",
e),this.Oa("channelLogoLabel",g.wI("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b})),g.K(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.kn(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.eb(this.i,c&&this.W);this.subscribeButton&&(this.subscribeButton.channelId=a.Yh);this.Oa("expandedTitle",a.Zn);this.Oa("channelTitleLink",d);this.Oa("expandedSubtitle",a.expandedSubtitle)};g.v(g.eN,g.WJ);g.eN.prototype.Oa=function(a,b){g.WJ.prototype.Oa.call(this,a,b);this.V("size-change")};g.v(hN,g.WJ);hN.prototype.iI=function(){this.V("size-change")};
hN.prototype.focus=function(){this.content.focus()};
hN.prototype.QP=function(){this.V("back")};g.v(g.iN,hN);g.iN.prototype.zc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.ub(this.items,a,toa);if(0<=b)return;b=~b;g.rb(this.items,b,0,a);g.Ge(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.cC,this);this.menuItems.V("size-change")};
g.iN.prototype.og=function(a){a.unsubscribe("size-change",this.cC,this);this.Ha()||(g.kb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.V("size-change"))};
g.iN.prototype.cC=function(){this.menuItems.V("size-change")};
g.iN.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.v(kN,g.eN);kN.prototype.i=function(a){g.ip(a)||39!==g.jp(a)||(this.element.click(),g.hp(a))};g.v(mN,g.eN);mN.prototype.onClick=function(){this.setValue(!this.checked);this.V("select",this.checked)};
mN.prototype.getValue=function(){return this.checked};
mN.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.v(nN,g.iN);g.k=nN.prototype;g.k.hQ=function(){wM(this.Hq.element)};
g.k.AS=function(){pN(this,this.G.getDebugText(!0))&&RM(this.lc,ZJ())};
g.k.BS=function(){pN(this,this.G.getVideoEmbedCode())&&RM(this.lc,Sla());this.G.Kb(this.hj.element);cL("EMBED",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.CS=function(){pN(this,this.G.getVideoUrl(!0,!0))&&RM(this.lc,dK());this.G.Kb(this.getVideoUrl.element);cL("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.DS=function(){pN(this,this.G.getVideoUrl(!1,!0))&&RM(this.lc,dK());this.G.Kb(this.lj.element);cL("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.uI=function(a){this.sj.setValue(a)};
g.k.ES=function(){this.G.setLoopVideo(this.sj.getValue());this.wb.Bb();this.G.Kb(this.sj.element)};
g.k.AR=function(a){this.G.reportPlaybackIssue();if(g.tM(a,this.G,!aE(this.G.T()))){a=this.G;var b=a.app.getFeedbackProductData();a.La("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.wb.Bb()};
g.k.SR=function(){this.G.showVideoInfo();this.wb.Bb()};
g.k.fb=function(a,b){this.Oi(b)};
g.k.Oi=function(a){var b=this.G.T(),c=2===this.G.getPresentingPlayerType(),d=!c||a.isListed;d=!b.J&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.l&&(b.fmt=a.l.yc()),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.Xa&&(b.partnerid=a.Xa),b=g.Id("//support.google.com/googleplay/",b));g.VJ(this.hj,d&&a.allowEmbed);g.VJ(this.getVideoUrl,d);g.VJ(this.lj,d&&!a.isLivePlayback);
this.Du.bd(b,"href");g.VJ(this.sj,!a.isLivePlayback&&!c)};
g.k.Qb=function(a){g.iN.prototype.Qb.call(this,a);this.G.eb(this.hj.element,a);this.G.eb(this.getVideoUrl.element,a);this.G.eb(this.lj.element,a);this.G.eb(this.sj.element,a)};g.v(g.qN,g.GM);g.k=g.qN.prototype;g.k.show=function(){g.GM.prototype.show.call(this);this.Ur()};
g.k.hide=function(){g.GM.prototype.hide.call(this);1<this.i.length&&g.sN(this)};
g.k.Ur=function(){woa(this);this.vb&&(voa(this),g.sg(this.element,this.size))};
g.k.Ah=function(){var a=this.i.pop();rN(this,a,this.i[this.i.length-1],!0)};
g.k.gL=function(a){if(!g.ip(a))switch(g.jp(a)){case 27:this.Bb();g.hp(a);break;case 37:1<this.i.length&&this.Ah();g.hp(a);break;case 39:g.hp(a)}};
g.k.focus=function(){this.i.length&&this.i[this.i.length-1].focus()};
g.k.oa=function(){g.GM.prototype.oa.call(this);this.B&&this.B.dispose();this.I&&this.I.dispose()};g.v(g.tN,g.qN);g.k=g.tN.prototype;g.k.iL=function(a){var b,c=ep(a);c&&(Se(c,"a")||Se(c,null,"ytp-no-contextmenu",void 0))||this.vb||(this.ra=(a=null===(b=a.touches)||void 0===b?void 0:b.item(0))?new g.ce(a.clientX,a.clientY):new g.ce(0,0),this.Y.start())};
g.k.XI=function(){this.Y.stop()};
g.k.hS=function(){this.open(this.ra)};
g.k.show=function(){this.C||(this.C=new nN(this.G,this.va,this,this.lc),g.H(this,this.C),g.oN(this,this.C));this.C.uI(this.G.getLoopVideo());g.qN.prototype.show.call(this);this.G.eb(this.element,!0);this.C.Qb(!0)};
g.k.hide=function(){yoa(this);g.qN.prototype.hide.call(this);this.G.eb(this.element,!1);this.C&&this.C.Qb(!1)};
g.k.eQ=function(a){var b=ep(a);this.vb||b&&(Se(b,"a")||Se(b,null,"ytp-no-contextmenu",void 0))||(g.hp(a),this.open(gp(a)))};
g.k.open=function(a){zoa(this);var b=this.G.getVideoData();g.L(this.element,"ytp-dni",b.C);this.element.style.left="";this.element.style.top="";a.x++;a.y++;this.Zc();var c=document.body;b=new Rf(0,Infinity,Infinity,0);var d=ke(c);for(var e=d.i.body,f=d.i.documentElement,h=ve(d.i);c=fba(c);)if(!(g.we&&0==c.clientWidth||g.ye&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=jg(c,"overflow")){var l=g.ng(c),m=new g.ce(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.i;d=ue(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=a,e=b,f=5,65==(f&65)&&(h.x<d.left||h.x>=d.right)&&(f&=-2),132==(f&132)&&(h.y<d.top||h.y>=d.bottom)&&
(f&=-5),h.x<d.left&&f&1&&(h.x=d.left),f&16&&(c=h.x,h.x<d.left&&(h.x=d.left),h.x+e.width>d.right&&(e.width=Math.min(d.right-h.x,c+e.width-d.left),e.width=Math.max(e.width,0))),h.x+e.width>d.right&&f&1&&(h.x=Math.max(d.right-e.width,d.left)),h.y<d.top&&f&4&&(h.y=d.top),f&32&&(c=h.y,h.y<d.top&&(h.y=d.top),h.y+e.height>d.bottom&&(e.height=Math.min(d.bottom-h.y,c+e.height-d.top),e.height=Math.max(e.height,0))),h.y+e.height>d.bottom&&f&4&&(h.y=Math.max(d.bottom-e.height,d.top)));d=new g.Uf(0,0,0,0);d.left=
a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.lg(this.element,new g.ce(d.left,d.top));g.$t(this.u);this.u.N(document,"contextmenu",this.mQ);this.u.N(this.G,"fullscreentoggled",this.cg);this.u.N(this.G,"pageTransition",this.hL)};
g.k.mQ=function(a){if(!g.ip(a)){var b=ep(a);g.Me(this.element,b)||this.Bb();this.G.T().disableNativeContextMenu&&g.hp(a)}};
g.k.cg=function(){this.Bb();zoa(this)};
g.k.hL=function(){this.Bb()};g.v(g.uN,g.W);g.uN.prototype.onClick=function(){return g.C(this,function b(){var c=this,d,e,f,h;return g.z(b,function(l){if(1==l.i)return d=c.api.T(),e=c.api.getVideoData(),f=c.api.getPlaylistId(),h=d.getVideoUrl(e.videoId,f,void 0,!0),g.w(l,Boa(c,h),2);l.l&&Aoa(c);c.api.Kb(c.element);l.i=0})})};
g.uN.prototype.Ja=function(){var a=this.api.T(),b=this.api.getVideoData();this.Oa("icon",{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3  c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.Oa("title-attr","Copy link");var c=this.api.Wa().getPlayerSize().width;this.visible=
!!b.videoId&&c>=this.l&&b.Xj&&!(b.C&&a.pfpChazalUi);g.L(this.element,"ytp-copylink-button-visible",this.visible);g.VJ(this,this.visible);wN(this.tooltip);this.api.eb(this.element,this.visible&&this.W)};
g.uN.prototype.Qb=function(a){g.W.prototype.Qb.call(this,a);this.api.eb(this.element,this.visible&&a)};
g.uN.prototype.oa=function(){g.W.prototype.oa.call(this);g.kn(this.element,"ytp-copylink-button-visible")};g.v(xN,g.W);xN.prototype.show=function(){g.W.prototype.show.call(this);g.cn(this.l)};
xN.prototype.hide=function(){this.u.stop();g.kn(this.element,"ytp-chapter-seek");g.kn(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
xN.prototype.Cu=function(a,b,c,d){var e=-1===a?this.C:this.B;e&&this.G.Kb(e);g.dn(this.l);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.G.Wa().getPlayerSize().height;e=this.G.Wa().getPlayerSize();e=e.width/3-3*e.height;this.i.style.width=f+"px";this.i.style.height=f+"px";1===a?(this.i.style.left="",this.i.style.right=e+"px"):-1===a&&(this.i.style.right="",this.i.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.Wa().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");Coa(this,d)};var WEa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(WEa).reduce(function(a,b){a[WEa[b]]=b;return a},{});
var XEa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(XEa).reduce(function(a,b){a[XEa[b]]=b;return a},{});
var YEa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(YEa).reduce(function(a,b){a[YEa[b]]=b;return a},{});var w0,ZEa;w0=[{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"}];ZEa=[{option:0,text:AN(0)},{option:.25,text:AN(.25)},{option:.5,text:AN(.5)},{option:.75,text:AN(.75)},{option:1,text:AN(1)}];
g.DN=[{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:w0},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:AN(.5)},{option:-1,text:AN(.75)},{option:0,text:AN(1)},{option:1,text:AN(1.5)},{option:2,text:AN(2)},
{option:3,text:AN(3)},{option:4,text:AN(4)}]},{option:"background",text:"Background color",options:w0},{option:"backgroundOpacity",text:"Background opacity",options:ZEa},{option:"windowColor",text:"Window color",options:w0},{option:"windowOpacity",text:"Window opacity",options:ZEa},{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:AN(.25)},{option:.5,text:AN(.5)},{option:.75,text:AN(.75)},{option:1,text:AN(1)}]}];g.v(g.CN,g.TL);g.k=g.CN.prototype;
g.k.SG=function(a){var b=!1,c=g.jp(a),d=ep(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.T();g.ip(a)?(e=!1,h=!0):l.He&&(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);SM(this.lc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);SM(this.lc,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.yf()&&(this.api.seekTo(0),
h=f=!0);break;case 35:this.api.yf()&&(this.api.seekTo(Infinity),h=f=!0)}}b&&this.HC(!0);(b||h)&&this.md.Uk();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.hp(a);l.u&&(a={keyCode:g.jp(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.ip(a),fullscreen:this.api.isFullscreen()},this.api.La("onKeyPress",a))};
g.k.TG=function(a){this.handleGlobalKeyUp(g.jp(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.PL(this.api.ob());c&&(c=c.Ln)&&c.vb&&(c.NG(a),b=!0);9===a&&(this.HC(!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.T();if(e.He)return h;var l=g.PL(this.api.ob());if(l&&(l=l.Ln)&&l.vb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.MG(a)}e.I||h||(h=f||String.fromCharCode(a).toLowerCase(),this.l+=h,0==="awesome".indexOf(this.l)?(h=!0,7===this.l.length&&mn(this.api.getRootNode(),"ytp-color-party")):(this.l=h,h=0==="awesome".indexOf(this.l)));if(!h){f=(f=this.api.getVideoData())?f.jl:[];l=hS?d:c;switch(a){case 80:b&&
!e.ra&&(RM(this.lc,$la(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.ra&&(RM(this.lc,eK(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.yf()&&(e.ea("web_player_seek_chapters_by_shortcut")&&this.i?yN(this.i,-1,10):RM(this.lc,{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{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.yf()&&(e.ea("web_player_seek_chapters_by_shortcut")&&this.i?yN(this.i,1,10):RM(this.lc,{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{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.yf()&&(l&&e.ea("web_player_seek_chapters_by_shortcut")?(l=Eoa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(zN(this.i,-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.ea("web_player_seek_chapters_by_shortcut")&&this.i?yN(this.i,-1,5):RM(this.lc,{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{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.yf()&&(l&&e.ea("web_player_seek_chapters_by_shortcut")?(l=Doa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(zN(this.i,1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.ea("web_player_seek_chapters_by_shortcut")&&null!=this.i?yN(this.i,1,5):RM(this.lc,{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{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(),SM(this.lc,this.api.getVolume(),!1)):(this.api.mute(),SM(this.lc,0,!0));h=!0;break;case 32:case 75:e.ra||(h=!g.eJ(this.api.rb()),this.lc.Mp(h),h?this.api.playVideo():this.api.pauseVideo(),h=!0);break;case 190:b?e.Jc&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),koa(this.lc,!1),h=!0):this.api.yf()&&(Goa(this,1),h=!0);break;case 188:b?e.Jc&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h-
.25,!0),koa(this.lc,!0),h=!0):this.api.yf()&&(Goa(this,-1),h=!0);break;case 70:Xna(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0);
break;case 27:this.B()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.dM(this.api.ob())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),RM(this.lc,Rla(),!e||e&&!e.displayName?"Subtitles/closed captions on":"Subtitles/closed captions off"),h=!0);break;case 79:EN(this,"textOpacity");break;case 87:EN(this,"windowOpacity");break;case 187:case 61:EN(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:EN(this,"fontSizeIncrement",!0,!0)}var m;b||c||d||(48<=a&&57>=a?m=a-48:
96<=a&&105>=a&&(m=a-96));null!=m&&this.api.yf()&&(a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.md.Uk()}return h};
g.k.HC=function(a){g.L(this.api.getRootNode(),"ytp-probably-keyboard-focus",a);g.L(this.contextMenu.element,"ytp-probably-keyboard-focus",a)};
g.k.oa=function(){g.dn(this.u);g.TL.prototype.oa.call(this)};g.v(FN,g.W);FN.prototype.Ja=function(){var a=g.BD(this.G.T())&&g.OL(this.G)&&g.V(this.G.rb(),128),b=this.G.getPlayerSize();this.visible=this.i.lf()&&!a&&240<=b.width&&!(this.G.getVideoData().C&&this.G.T().pfpChazalUi);g.L(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&wN(this.tooltip);this.G.eb(this.element,this.visible&&this.W)};
FN.prototype.Qb=function(a){g.W.prototype.Qb.call(this,a);this.G.eb(this.element,this.visible&&a)};
FN.prototype.oa=function(){g.W.prototype.oa.call(this);g.kn(this.element,"ytp-overflow-button-visible")};g.v(GN,g.GM);g.k=GN.prototype;g.k.jL=function(a){a=ep(a);g.Me(this.element,a)&&(g.Me(this.i,a)||g.Me(this.closeButton,a)||HM(this))};
g.k.Bb=function(){g.GM.prototype.Bb.call(this);this.tooltip.cj(this.element)};
g.k.show=function(){this.vb&&this.G.V("OVERFLOW_PANEL_OPENED");g.GM.prototype.show.call(this);g.S(this.G.T().experiments,"embeds_enable_overflow_panel_aria_modal_killswitch")||this.element.setAttribute("aria-modal","true");Hoa(this,!0)};
g.k.hide=function(){g.GM.prototype.hide.call(this);g.S(this.G.T().experiments,"embeds_enable_overflow_panel_aria_modal_killswitch")||this.element.removeAttribute("aria-modal");Hoa(this,!1)};
g.k.cg=function(a){!a&&this.Ag()&&HM(this)};
g.k.focus=function(){for(var a=g.q(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.vb){b.focus();break}};g.v(IN,g.W);IN.prototype.onClick=function(a){g.tM(a,this.api)&&this.api.playVideoAt(this.index)};g.v(JN,g.GM);g.k=JN.prototype;g.k.show=function(){g.GM.prototype.show.call(this);this.u.N(this.api,"videodatachange",this.bz);this.u.N(this.api,"onPlaylistUpdate",this.bz);this.bz()};
g.k.hide=function(){g.GM.prototype.hide.call(this);g.$t(this.u);this.updatePlaylist(null)};
g.k.bz=function(){this.updatePlaylist(this.api.getPlaylist())};
g.k.Jx=function(){var a=this.playlist,b=a.u;if(b===this.B)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.i[a.index];else{for(var c=g.q(this.i),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.i=[];for(d=0;d<c;d++){var e=new IN(this.api,a,d);this.i.push(e);e.xa(this.items)}this.selected=this.i[a.index];this.B=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.gS=function(a){var b=this.api.getVideoUrl(!0);g.uM(b,this.api,a)};
g.k.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.Jx,this),this.playlist=a,this.B=null,a){a.subscribe("shuffle",this.Jx,this);var b=a.author,c={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(c.AUTHOR=b);this.update({title:a.title,subtitle:g.wI(b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",c),playlisturl:this.api.getVideoUrl(!0)});this.Jx()}else this.vb&&this.hide();
else this.playlist&&this.Jx()};
g.k.focus=function(){this.selected.focus()};
g.k.oa=function(){this.hide();g.GM.prototype.oa.call(this)};g.v(KN,g.W);
KN.prototype.Ja=function(){var a=g.BD(this.api.T());g.L(this.element,"ytp-playlist-menu-button-tiny",400>this.api.Wa().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.wI("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.wI("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.vb||(this.show(),wN(this.tooltip)),this.visible=!0,this.Qb(!0)):
this.vb&&(this.hide(),this.Qb(!1),wN(this.tooltip))};
KN.prototype.Qb=function(a){g.W.prototype.Qb.call(this,a);this.api.eb(this.element,this.visible&&a)};
KN.prototype.i=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ja,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ja,this);this.Ja()};g.v(LN,g.W);g.k=LN.prototype;
g.k.cz=function(a,b){if(!this.B){if(a){this.tooltipRenderer=a;var c,d,e,f,h,l,m,n;a=this.tooltipRenderer.text;var p=!1;(null===(c=null===a||void 0===a?void 0:a.runs)||void 0===c?0:c.length)&&a.runs[0].text&&(this.update({title:a.runs[0].text.toString()}),p=!0);g.ug(this.title,p);a=this.tooltipRenderer.detailsText;c=!1;if((null===(d=null===a||void 0===a?void 0:a.runs)||void 0===d?0:d.length)&&a.runs[0].text){p=a.runs[0].text.toString();d=p.indexOf("$TARGET_ICON");if(-1<d)if(this.tooltipRenderer.targetId){a=
[];p=p.split("$TARGET_ICON");var r=new g.SJ({D:"span",K:"ytp-promotooltip-details-icon",S:[$Ea[this.tooltipRenderer.targetId]]});g.H(this,r);for(var t=[],u=g.q(p),x=u.next();!x.done;x=u.next())x=new g.SJ({D:"span",K:"ytp-promotooltip-details-component",ma:x.value}),g.H(this,x),t.push(x);2===p.length?(a.push(t[0].element),a.push(r.element),a.push(t[1].element)):1===p.length&&(0===d?(a.push(r.element),a.push(t[0].element)):(a.push(t[0].element),a.push(r.element)));d=a.length?a:null}else d=null;else d=
p;if(d){if("string"!==typeof d)for(g.Fe(this.details),c=g.q(d),d=c.next();!d.done;d=c.next())this.details.appendChild(d.value);else this.update({details:d});c=!0}}g.ug(this.details,c);c=this.tooltipRenderer.acceptButton;d=!1;(null===(h=null===(f=null===(e=null===c||void 0===c?void 0:c.buttonRenderer)||void 0===e?void 0:e.text)||void 0===f?void 0:f.runs)||void 0===h?0:h.length)&&c.buttonRenderer.text.runs[0].text&&(this.update({acceptButtonText:c.buttonRenderer.text.runs[0].text.toString()}),d=!0);
g.ug(this.acceptButton,d);e=this.tooltipRenderer.dismissButton;f=!1;(null===(n=null===(m=null===(l=null===e||void 0===e?void 0:e.buttonRenderer)||void 0===l?void 0:l.text)||void 0===m?void 0:m.runs)||void 0===n?0:n.length)&&e.buttonRenderer.text.runs[0].text&&(this.update({dismissButtonText:e.buttonRenderer.text.runs[0].text.toString()}),f=!0);g.ug(this.dismissButton,f)}b&&(this.u=b);this.i=Ioa(this);this.C=!1;this.G.T().ea("web_player_hide_nitrate_promo_tooltip")||g.VJ(this,!0);(b=!this.i)||(b=this.i,
l=window.getComputedStyle(b),b="none"===l.display||"hidden"===l.visibility||"true"===b.getAttribute("aria-hidden"));b||this.G.jf()?g.VJ(this,!1):(b=g.tg(this.i),b.width&&b.height?(this.J.Dp(this.element,this.i),l=this.G.Wa().getPlayerSize().height-g.tg(this.element).height-b.height-12,this.element.style.top=l+"px",l=this.ya("ytp-promotooltip-pointer"),m=g.rg(this.i,this.G.getRootNode()),n=Number(this.element.style.left.replace(/[^\d\.]/g,"")),e=this.G.isFullscreen()?18:12,l.style.left=m.x-n+b.width/
2-e+"px"):g.VJ(this,!1));this.I||(this.I=!0,NN(this,0));this.l&&this.G.eb(this.element,this.vb)}};
g.k.gQ=function(){MN(this);this.C=!0};
g.k.pP=function(){this.B=!0;NN(this,1);this.G.V("promotooltipacceptbuttonclicked",this.acceptButton);MN(this);this.l&&this.G.Kb(this.acceptButton)};
g.k.lQ=function(){this.B=!0;NN(this,2);MN(this);this.l&&this.G.Kb(this.dismissButton)};
g.k.kL=function(a){var b,c;if(1===this.G.getPresentingPlayerType()){var d=!0,e=g.oe("ytp-ad-overlay-ad-info-dialog-container"),f=ep(a);if(this.u&&f&&g.Me(this.u,f))this.u=null;else{1===this.G.getPresentingPlayerType()&&f&&Array.from(f.classList).forEach(function(l){l.startsWith("ytp-ad")&&(d=!1)});
var h=Joa(this.tooltipRenderer);"TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null===(b=this.tooltipRenderer.dismissStrategy)||void 0===b?void 0:b.type)?h&&(d=d&&!g.Me(this.element,f)):"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null===(c=this.tooltipRenderer.dismissStrategy)||void 0===c?void 0:c.type)&&(d=h?!1:d&&g.Me(this.element,f));this.i&&this.vb&&!e&&(!f||d&&g.CK(a))&&(this.B=!0,MN(this))}}};
g.k.kb=function(){this.C||(this.i||(this.i=Ioa(this)),this.cz())};
var $Ea={"ytp-settings-button":g.hK()};g.v(ON,g.W);ON.prototype.i=function(a){g.VJ(this,g.V(a.state,2))};
ON.prototype.onClick=function(){this.G.rb();this.G.playVideo()};g.v(g.PN,g.W);g.PN.prototype.onClick=function(){var a=this.api.T(),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(Koa)}catch(e){e instanceof Error&&Koa(e)}else this.i.Bk(),HM(this.u,this.element,!1);this.api.Kb(this.element)};
g.PN.prototype.Ja=function(){var a=this.api.T(),b=this.api.getVideoData();this.i.lf();var c=g.BD(a)&&g.OL(this.api)&&g.V(this.api.rb(),128);this.Oa("icon",{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{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.Xj||c||b.C&&a.pfpChazalUi;c=this.api.Wa().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.l&&!a;g.L(this.element,"ytp-share-button-visible",this.visible);g.VJ(this,this.visible);wN(this.tooltip);this.api.eb(this.element,this.visible&&this.W)};
g.PN.prototype.Qb=function(a){g.W.prototype.Qb.call(this,a);this.api.eb(this.element,this.visible&&a)};
g.PN.prototype.oa=function(){g.W.prototype.oa.call(this);g.kn(this.element,"ytp-share-button-visible")};g.v(g.QN,g.GM);g.k=g.QN.prototype;g.k.lL=function(a){a=ep(a);g.Me(this.C,a)||g.Me(this.closeButton,a)||HM(this)};
g.k.Bb=function(){g.GM.prototype.Bb.call(this);this.tooltip.cj(this.element)};
g.k.show=function(){var a=this.vb;g.GM.prototype.show.call(this);this.Ja();a||this.api.La("onSharePanelOpened")};
g.k.bP=function(){this.vb&&this.Ja()};
g.k.Ja=function(){var a=this;g.K(this.element,"ytp-share-panel-loading");g.kn(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.B.checked;b.getSharePanelCommand&&fL(this.api.Hl(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.Ha()||(g.kn(a.element,"ytp-share-panel-loading"),Moa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.LD(this.api.T())&&(b=g.Id(b,g.YM("emb_share")));this.Oa("link",b);this.Oa("linkText",b);this.Oa("shareLinkWithUrl",g.wI("Share link $URL",{URL:b}));wM(this.u)};
g.k.cg=function(a){!a&&this.Ag()&&HM(this)};
g.k.focus=function(){this.u.focus()};
g.k.oa=function(){g.GM.prototype.oa.call(this);Loa(this)};g.v(TN,g.W);g.k=TN.prototype;g.k.UB=function(){};
g.k.VB=function(){};
g.k.Mu=function(){return!0};
g.k.kT=function(){if(this.expanded){this.va.show();var a=this.I.element.scrollWidth}else a=this.I.element.scrollWidth,this.va.hide();this.Sa=34+a;g.L(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Sa)+"px";this.ra.start()};
g.k.SN=function(){this.badge.element.style.width=(this.expanded?this.Sa:34)+"px";this.Da.start()};
g.k.Xh=function(){this.Mu()?this.L.show():this.L.hide();Noa(this)};
g.k.mL=function(){this.enabled=!1;this.Xh()};
g.k.IT=function(a){this.Xa=a;this.Xh()};
g.k.UP=function(a){this.Ma=1===a;this.Xh()};
g.k.tQ=function(){g.L(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.G.isFullscreen());this.Xh()};g.v(UN,TN);g.k=UN.prototype;g.k.oa=function(){VN(this);TN.prototype.oa.call(this)};
g.k.UB=function(a){a.target!==this.dismissButton.element&&(Poa(this,!1),this.G.La("innertubeCommand",this.onClickCommand))};
g.k.VB=function(){this.u=!0;Poa(this,!0);this.Xh()};
g.k.jR=function(a){this.Aa=a;this.Xh()};
g.k.aR=function(a){var b=this.G.getVideoData();b&&b.videoId===this.videoId&&this.Ca&&(this.X=a,a||(a=3+this.G.getCurrentTime(),this.Td(a)))};
g.k.fb=function(a,b){var c;if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.u=!1,this.i=!0,this.X=this.Ca=this.l=this.J=!1,VN(this);if(a||!b.videoId)this.C=this.B=!1;a=b.shoppingOverlayRenderer;this.Aa=this.enabled=!1;if(a){this.enabled=!0;var d,e,f;if(!this.B){var h=(null===(d=a.badgeInteractionLogging)||void 0===d?void 0:d.trackingParams)||a.trackingParams;(this.B=!!h)&&this.G.Jn(this.badge.element,h||null)}this.C||(this.C=!(null===(e=a.dismissButton)||void 0===e||!e.trackingParams))&&
this.G.Jn(this.dismissButton.element,(null===(f=a.dismissButton)||void 0===f?void 0:f.trackingParams)||null);this.text=g.Aw(a.text);if(d=null===(c=a.dismissButton)||void 0===c?void 0:c.a11yLabel)this.Ra=g.Aw(d);this.onClickCommand=a.onClickCommand;this.timing=a.timing;KG(b)?this.X=this.Ca=!0:this.Td()}Ooa(this);SN(this);this.Xh()};
g.k.Mu=function(){return this.Xa&&!this.Aa&&this.enabled&&!this.u&&!this.ib.lf()&&(g.S(this.G.T().experiments,"products_in_video_desktop_overlay_badge_should_show_on_fullscreen")||!this.G.isFullscreen())&&!this.Ma&&!this.X&&(this.l||this.i)};
g.k.Xe=function(a){(this.l=a)?(RN(this),SN(this,!1)):(VN(this),this.Y.start());this.Xh()};
g.k.Td=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.pw(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:7,namespace:"shopping_overlay_visible"}));d&&b.push(new g.pw(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:7,namespace:"shopping_overlay_expanded"}));this.G.Td(b)};g.v(WN,g.GM);WN.prototype.show=function(){g.GM.prototype.show.call(this);this.B.start()};
WN.prototype.hide=function(){g.GM.prototype.hide.call(this);this.B.stop()};
WN.prototype.Yq=function(a,b){"dataloaded"===a&&((this.u=b.OE,this.i=b.ME,isNaN(this.u)||isNaN(this.i))?this.C&&(this.G.Df("intro"),this.G.removeEventListener(g.tw("intro"),this.ra),this.G.removeEventListener(g.uw("intro"),this.Y),this.G.removeEventListener("onShowControls",this.I),this.hide(),this.C=!1):(this.G.addEventListener(g.tw("intro"),this.ra),this.G.addEventListener(g.uw("intro"),this.Y),this.G.addEventListener("onShowControls",this.I),a=new g.pw(this.u,this.i,{priority:7,namespace:"intro"}),
this.G.Td([a]),this.C=!0))};g.v(XN,g.W);XN.prototype.onClick=function(){this.G.Lp()};
XN.prototype.Ja=function(){g.VJ(this,this.G.Pt());this.Oa("icon",this.G.Zf()?{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,U:{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"}}]}:{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},
S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{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 gr("yt.autonav");g.v(YN,g.W);g.k=YN.prototype;
g.k.xs=function(){if(3!==this.G.getPresentingPlayerType()&&g.SL(this.G)&&400<=this.G.Wa().getPlayerSize().width&&!1!==this.G.getVideoData().lN){if(!this.i){this.i=!0;g.VJ(this,this.i);this.l.push(this.N(this.G,"videodatachange",this.xs));this.l.push(this.N(this.G,"videoplayerreset",this.xs));this.l.push(this.N(this.G,"onPlaylistUpdate",this.xs));this.l.push(this.N(this.G,"autonavchange",this.gE));var a=this.G.getVideoData();this.gE(a.autonavState);this.G.eb(this.element,this.i)}}else{this.i=!1;g.VJ(this,
this.i);a=g.q(this.l);for(var b=a.next();!b.done;b=a.next())this.hc(b.value)}};
g.k.gE=function(a){(a=1!==a)||(g.Wq.getInstance(),a=g.Qo("web_autonav_allow_off_by_default")&&!g.Yq(0,141)&&g.M("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Yq(0,140));this.isChecked=a;Qoa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.G.Ix(this.isChecked?2:1);Qoa(this);this.G.Kb(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.v(g.$N,g.W);g.$N.prototype.oa=function(){this.i=null;g.W.prototype.oa.call(this)};g.v(aO,g.W);aO.prototype.onClick=function(){this.G.La("innertubeCommand",this.u)};
aO.prototype.onClickCommand=function(a){(null===a||void 0===a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Rb()};
aO.prototype.updateVideoData=function(a,b){a=b.kO;this.u=null===a||void 0===a?void 0:a.command;this.l.disabled=null==this.u;g.L(this.l,"ytp-chapter-container-disabled",this.l.disabled);this.Rb()};
aO.prototype.Rb=function(){var a="",b=this.I.i;if(1<b.length){a=1E3*this.G.getProgressState().current;var c=BN(b,a);a=b[c].title;null==a&&(a="");if(c!==this.currentIndex||this.i)this.G.La("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.i=!1}else this.i=!0;a!==this.B&&(this.update({title:a}),this.B=a);a?this.show():this.hide()};g.v(g.bO,g.W);g.bO.prototype.wc=function(a){g.V(a.state,32)?cO(this,this.api.Nh()):this.vb&&(g.V(a.state,16)||g.V(a.state,1))||this.i.hide()};
g.bO.prototype.Fe=function(){var a=this.api.rb();(g.V(a,32)||g.V(a,16))&&dO(this)};
g.bO.prototype.C=function(){this.u=NaN;dO(this)};
g.bO.prototype.hide=function(){this.l&&cO(this,null);g.W.prototype.hide.call(this)};g.v(eO,g.W);eO.prototype.onClick=function(){this.i.Kb(this.element);this.i.La("onFullerscreenEduClicked")};
eO.prototype.Ja=function(){this.i.isFullscreen()?this.u?this.l.hide():this.l.show():this.hide();this.i.eb(this.element,this.i.isFullscreen()&&!this.u)};g.v(g.fO,g.W);g.k=g.fO.prototype;g.k.onClick=function(){var a=this;if(this.G.T().Ma||this.G.T().ea("embeds_enable_mobile_custom_controls"))try{this.G.toggleFullscreen().catch(function(b){a.Jt(b)})}catch(b){this.Jt(b)}else HM(this.message,this.element,!0)};
g.k.Jt=function(a){String(a).includes("fullscreen error")?g.qt(a):g.pt(a);this.bC()};
g.k.bC=function(){this.disable();this.message.Zc(this.element,!0)};
g.k.Vl=function(){Vt()===this.G.getRootNode()?this.u.start():(this.u.stop(),this.message&&this.message.hide())};
g.k.zN=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.bC()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=Wo(["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.GM(this.G,{D:"div",Ba:["ytp-popup","ytp-generic-popup"],U:{role:"alert",tabindex:"0"},S:[b[0],{D:"a",U:{href:"https://support.google.com/youtube/answer/6276924",
target:this.G.T().C},ma:b[2]},b[4]]},100,!0);this.message.hide();g.H(this,this.message);this.message.subscribe("show",function(c){a.l.Mq(a.message,c)});
g.RL(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.i)();this.i=null}};
g.k.Ja=function(){g.VJ(this,Xna(this.G))};
g.k.Ni=function(a){if(a){var b={D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"g",K:"ytp-fullscreen-button-corner-2",S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-3",S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-0",S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{D:"g",
K:"ytp-fullscreen-button-corner-1",S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=xM(this.G,"Exit full screen","f");document.activeElement===this.element&&this.G.getRootNode().focus()}else b={D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"g",K:"ytp-fullscreen-button-corner-0",S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-1",S:[{D:"path",
Lb:!0,K:"ytp-svg-fill",U:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-2",S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-3",S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=xM(this.G,"Full screen","f");this.Oa("icon",b);this.Oa("title",this.message?null:a);wN(this.l.ac())};
g.k.oa=function(){this.message||((0,this.i)(),this.i=null);g.W.prototype.oa.call(this)};g.v(gO,g.W);gO.prototype.onClick=function(){this.G.La("onCollapseMiniplayer");this.G.Kb(this.element)};
gO.prototype.Ja=function(){this.visible=!this.G.isFullscreen();g.VJ(this,this.visible);this.G.eb(this.element,this.visible&&this.W)};
gO.prototype.Qb=function(a){g.W.prototype.Qb.call(this,a);this.G.eb(this.element,this.visible&&a)};g.v(hO,g.W);hO.prototype.fb=function(a){this.Ja("newdata"===a)};
hO.prototype.Ja=function(a){var b=this.G.getVideoData(),c=b.Xc,d=this.G.rb();d=(g.eJ(d)||g.V(d,4))&&0<c.length;g.VJ(this,d);a&&(this.i=!0);if(d){this.i&&g.cn(this.l);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.wI("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.gf("default.jpg")});wN(this.tooltip)}else this.l.stop()};
hO.prototype.u=function(){vN(this.tooltip,this.element,"More cameras available");this.i=!1};g.v(iO,g.GM);g.k=iO.prototype;g.k.show=function(){var a=this.vb;g.GM.prototype.show.call(this);a||(this.u.N(this.api,"presentingplayerstatechange",this.Ja),this.u.N(this.api,"videodatachange",this.Ja),this.Ja())};
g.k.hide=function(){this.u&&(g.$t(this.u),g.GM.prototype.hide.call(this))};
g.k.Ja=function(){var a=this,b=this.api.getVideoData(),c=b.Xc,d,e={};for(d=0;d<c.length;e={Cy:e.Cy},d++){var f=this.i[d];f||(f=new g.W({D:"button",Ba:["ytp-multicam-menu-item","ytp-button"],U:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},S:[{D:"div",K:"ytp-multicam-menu-item-title",ma:"{{cameraName}}"}]}),e.Cy=d,f.Na("click",function(n){return function(){var p=n.Cy,r=a.api.getVideoData(),t=a.api,u=r.Xc[p];p=g.X(t.app,1).getVideoData();r=t.getCurrentTime();u.id===p.videoId?(u=g.X(t.app,1),
g.X(t.app)!==u&&(t.app.Gj(1),p.isLivePlayback||t.seekTo(r))):(t.app.Gj(4),t.app.loadVideoByPlayerVars({videoId:u.id,title:p.title,start:p.isLivePlayback?null:r,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.zJ}}}},4))}}(e)),f.xa(this.items),this.i[d]=f);
var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=$D(this.api.T(),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.i.length;)this.i.pop().dispose();d=this.api.rb();b=c.length||!b.xd();g.eJ(d)||g.V(d,4)||b||!this.Ag()||HM(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.Xc,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.i[c].focus();break}};
g.k.oa=function(){g.vi(this.i);g.GM.prototype.oa.call(this)};g.v(jO,g.F);jO.prototype.i=function(){var a=(0,g.N)()-this.startTime;a=a<this.duration?a/this.duration:1;this.l(g.vn(aFa,a));1>a&&this.delay.start()};
var aFa=new g.un(0,0,.4,0,.2,1,1,1),Woa=/[0-9.-]+|[^0-9.-]+/g;g.v(g.lO,g.W);g.k=g.lO.prototype;g.k.hE=function(a){this.visible=300<=a.width;g.VJ(this,this.visible);this.G.eb(this.element,this.visible&&this.W)};
g.k.RQ=function(){this.G.T().X?this.G.isMuted()?this.G.unMute():this.G.mute():HM(this.message,this.element,!0);this.G.Kb(this.element)};
g.k.Ug=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.T();a=0===d?1:50<a?1:0;if(this.C!==a){var f=this.Y;isNaN(f)?Zoa(this,a):kO(this.va,function(l){Zoa(c,f+(c.C-f)*l)},250);
this.C=a}d=0===d?1:0;if(this.B!==d){var h=this.L;isNaN(h)?$oa(this,d):kO(this.X,function(l){$oa(c,h+(c.B-h)*l)},250);
this.B=d}e.X&&(e=xM(this.G,"Mute","m"),d=xM(this.G,"Unmute","m"),b=b?d:e,this.Oa("title",b),this.Oa("label",b),wN(this.tooltip))};
g.k.Qb=function(a){g.W.prototype.Qb.call(this,a);this.G.eb(this.element,this.visible&&a)};
var Xoa=["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"],Yoa=["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.v(mO,g.W);mO.prototype.onClick=function(){this.G.togglePictureInPicture()};g.v(g.nO,g.W);g.nO.prototype.l=function(a){apa(this,a.state)};
g.nO.prototype.fb=function(){g.L(this.element,"ytp-play-button-playlist",g.OL(this.G))};
g.nO.prototype.Qr=function(){g.eJ(this.G.rb())?this.G.pauseVideo():this.G.playVideo()};g.v(g.qO,g.W);g.k=g.qO.prototype;g.k.fb=function(){cpa(this);this.B&&(this.hc(this.B),this.B=null);this.videoData=this.G.getVideoData(1);if(this.playlist=this.G.getPlaylist())this.playlist.subscribe("shuffle",this.fb,this),this.B=this.N(this.G,"progresssync",this.nL);this.u=dpa(this);pO(this);this.ez(this.G.Wa().getPlayerSize())};
g.k.ez=function(a){a=void 0===a?this.G.Wa().getPlayerSize():a;var b=g.OL(this.G)||this.i&&g.SL(this.G)||epa(this);g.VJ(this,b&&(this.i||400<=a.width))};
g.k.onClick=function(a){var b=!0;this.I?b=g.tM(a,this.G):g.hp(a);b&&(this.i&&5===this.G.getPresentingPlayerType()?this.G.V("ytoprerollinternstitialnext"):this.i?this.G.nextVideo(!0):this.u?this.G.seekTo(0):this.G.previousVideo(!0))};
g.k.nL=function(){var a=dpa(this);a!==this.u&&(this.u=a,pO(this))};
g.k.oa=function(){this.l&&(this.l(),this.l=null);cpa(this);g.W.prototype.oa.call(this)};g.v(gpa,g.W);g.v(rO,g.W);kpa.prototype.update=function(a,b,c,d){this.width=b;this.l=c;this.C=d;this.i=b-c-d;this.position=g.Zd(a,c,c+this.i);this.B=this.position-c;this.u=this.B/this.i};g.v(lpa,g.W);g.v(g.vO,g.WJ);g.k=g.vO.prototype;g.k.kb=function(){g.xO(this);yO(this);ppa(this,this.Sa)};
g.k.onClickCommand=function(a){if(null===a||void 0===a?0:a.changeKeyedMarkersVisibilityCommand){var b=a.changeKeyedMarkersVisibilityCommand.key;a.changeKeyedMarkersVisibilityCommand.isVisible&&b&&(this.api.getVideoData().Mi=b,qpa(this,b))}};
g.k.Rb=function(){yO(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.Ex()};
g.k.pL=function(a){if(!g.ip(a)){var b=!1;switch(g.jp(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.hp(a)}};
g.k.Yq=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.tO=function(){this.Yq("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();this.Gc=c&&a.allowLiveDvr;Apa(this,this.api.yf());b&&(c?(b=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=b,DO(this),zO(this,this.L,this.Ma)):this.Ex(),g.uP(this.tooltip));if(a){b=a.watchNextResponse;if(a=!a.isLivePlayback&&b)a=this.api.getVideoData(),b=a.zz,a=null!=a.multiMarkersPlayerBarRenderer||null!=b&&0<b.length;if(!a||this.I||this.I)mpa(this),npa(this),jpa(this.Ga,[]);else if(a=this.api.getVideoData(),b=a.multiMarkersPlayerBarRenderer){var d;
a=this.api.getVideoData();a.Mi=(null===(d=b.visibleOnLoad)||void 0===d?void 0:d.key)||a.Mi;d=g.q(b.markersMap);for(b=d.next();!b.done;b=d.next())b=b.value,b.key&&b.value&&(this.Ec[b.key]=b.value);null!=a.Mi&&qpa(this,a.Mi)}else if(d=a.zz)opa(this,d),a.jl=this.i}yO(this)};
g.k.oL=function(a){this.J&&!g.V(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.J.cancel()};
g.k.pK=function(a){var b=!!this.I!==!!a;(this.I=a)?(this.Oa("clipstarticon",Wla()),this.Oa("clipendicon",Wla()),this.Oa("clipstarttitle",null),this.Oa("clipendtitle",null)):(this.Oa("clipstarticon",Qla()),this.Oa("clipendicon",Pla()),this.Oa("clipstarttitle","Watch entire video"),this.Oa("clipendtitle","Watch entire video"));DO(this);zO(this,this.L,this.Ma);b&&(this.updateVideoData(this.api.getVideoData(),!0),g.xO(this))};
g.k.mR=function(a,b,c){var d=g.ng(this.element),e=wO(this).i,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=$K(this.l,Number(c.getAttribute("data-position")),0)*e+g.ng(this.Dc).x);this.tb.x=a-d.x;this.tb.y=b-d.y;a=wO(this);d=CO(this,a);b=f||g.BK(this.Gc?d-this.l.i:d);c=a.position+this.kd;d-=this.api.Lc();if(this.api.Nh()){if(1<this.i.length)for(e=BO(this,this.tb.x,!0),h=0;h<this.i.length;)g.L(this.i[h].i,
"ytp-exp-chapter-hover-effect",h===e),h++;h=this.tooltip.scale;l=(isNaN(l)?0:l)-45*h;e=BN(this.i,1E3*d);(e=this.i[e].title)||(l+=16*h);.6===this.tooltip.scale&&(l=e?110:126);h=BN(this.i,1E3*d);this.Da=upa(this,d,h)?h:upa(this,d,h+1)?h+1:-1;g.L(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.Da&&1<this.i.length);h=320*this.tooltip.scale;var m=e.length*(this.u?8.55:5.7);h=m<=h?m:h;m=h<160*this.tooltip.scale;var n=3;!m&&h/2>a.position&&(n=1);!m&&h/2>this.B-a.position&&(n=2);Tpa(this.tooltip,
c,d,b,!!f,l,e,n)}else Tpa(this.tooltip,c,d,b,!!f,l);g.L(this.api.getRootNode(),"ytp-progress-bar-hover",!g.V(this.api.rb(),64));tpa(this)};
g.k.lR=function(){g.uP(this.tooltip);g.kn(this.api.getRootNode(),"ytp-progress-bar-hover")};
g.k.kR=function(a,b){this.C&&(this.C.dispose(),this.C=null);this.ld=b;1<this.i.length&&-1!==this.Da?this.api.seekTo(this.i[this.Da].startTime/1E3,!1):this.api.seekTo(CO(this,wO(this)),!1);g.K(this.element,"ytp-drag");(this.Jc=g.eJ(this.api.rb()))&&this.api.pauseVideo()};
g.k.nR=function(){var a=this;this.Db=0;g.kn(this.element,"ytp-pull-ui");g.kn(this.element,"ytp-pulling");this.C&&(this.C.dispose(),this.C=null);if(0<this.X){var b=(0,g.N)();this.C=new g.Zm(function(){var c=a.X,d=wO(a).position,e=1-Math.pow(1-((0,g.N)()-b)/200,3);d+=e*(a.L*a.B-d);if(0>e||1<e)e=1;vpa(a,(1-e)*c,d,a.L);1>e&&a.C.start()});
this.C.start()}if(g.V(this.api.rb(),32)||3===this.api.getPresentingPlayerType())1<this.i.length&&-1!==this.Da?this.api.seekTo(this.i[this.Da].startTime/1E3):this.api.seekTo(CO(this,wO(this))),g.kn(this.element,"ytp-drag"),this.Jc&&!g.V(this.api.rb(),2)&&this.api.playVideo()};
g.k.oR=function(a,b){var c=this,d=!1,e=!1;a=wO(this);3600<=YK(this.l)&&1===this.i.length&&(vpa(this,this.ld-b-10,a.position,a.u),e=!0,d=this.X>.1*(this.u?60:40),a=wO(this));g.L(this.element,"ytp-pull-ui",e);d&&g.K(this.element,"ytp-pulling");b=0;a.l&&0>=a.position&&1===this.i.length?b=-1:a.C&&a.position>=a.width&&1===this.i.length&&(b=1);if(this.Db!==b&&1===this.i.length&&(this.Db=b,this.C&&(this.C.dispose(),this.C=null),b)){var f=(0,g.N)();this.C=new g.Zm(function(){var h=c.B*(c.Aa-1);c.Y=g.Zd(c.Y+
c.Db*((0,g.N)()-f)*.3,0,h);AO(c);c.api.seekTo(CO(c,wO(c)),!1);0<c.Y&&c.Y<h&&c.C.start()});
this.C.start()}this.api.seekTo(CO(this,a),!1)};
g.k.fI=function(){this.I||(this.Oa("clipstarticon",Ola()),this.Oa("clipendicon",Ola()),g.K(this.element,"ytp-clip-hover"))};
g.k.eI=function(){this.I||(this.Oa("clipstarticon",Qla()),this.Oa("clipendicon",Pla()),g.kn(this.element,"ytp-clip-hover"))};
g.k.Ex=function(){this.clipStart=0;this.clipEnd=Infinity;DO(this);zO(this,this.L,this.Ma)};
g.k.qK=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.va[c]){var d=g.De("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.va[c]=b;this.ub[c]=d;g.gn(d,b.style);wpa(this,c);g.S(this.api.T().experiments,"disable_ad_markers_on_content_progress_bar")||this.i[0].u.appendChild(d)}}else zpa(this,b)};
g.k.SS=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())zpa(this,b.value)};
g.k.oa=function(){Apa(this,!1);g.WJ.prototype.oa.call(this)};g.v(HO,g.W);HO.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
HO.prototype.Ja=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);g.VJ(this,a&&400<=this.G.Wa().getPlayerSize().width);var b=1;a&&this.isActive()&&(b=2);if(this.i!==b){this.i=b;switch(b){case 1:this.Oa("icon",{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,U:{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.Oa("icon",g.Nla())}g.L(this.element,"ytp-remote-button-active",this.isActive())}};
HO.prototype.l=function(){if(this.G.getOption("remote","quickCast"))this.G.setOption("remote","quickCast",!0);else{var a=this.wb,b=this.element;if(a.Ag())a.Bb();else{a.initialize();a:{var c=g.q(a.Wd.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,0===d.priority){c=d;break a}c=null}c&&(c.open(),a.Zc(b));a.Zc(b)}}};g.v(IO,g.W);IO.prototype.i=function(a){a=this.l&&400<=a.width;g.VJ(this,a);this.G.eb(this.element,a)};
IO.prototype.u=function(){if(this.wb.vb)this.wb.Bb();else{var a=g.dM(this.G.ob());a&&!a.loaded&&(a.uf("tracklist",{includeAsr:!0}).length||a.load());this.G.Kb(this.element);this.wb.Zc(this.element)}};
IO.prototype.updateBadge=function(){var a=this.G.isHdr(),b=this.G.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.QL(this.G),e=c&&!!g.PL(this.G.ob());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.G.getPlaybackQuality();g.L(this.element,"ytp-hdr-quality-badge",a);g.L(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.L(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.L(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.L(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.L(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.L(this.element,"ytp-3d-badge",!a&&e&&d)};g.v(KO,mN);KO.prototype.xd=function(){var a=g.lM(this.G.ob());return void 0!==a&&a.loaded};
KO.prototype.Ja=function(){void 0!==g.lM(this.G.ob())&&3!==this.G.getPresentingPlayerType()?this.i||(this.wb.zc(this),this.i=!0):this.i&&(this.wb.og(this),this.i=!1);this.setValue(this.xd())};
KO.prototype.l=function(a){this.xd();a?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.V("annotationvisibility",a)};
KO.prototype.oa=function(){this.i&&this.wb.og(this);mN.prototype.oa.call(this)};g.v(g.LO,g.eN);g.k=g.LO.prototype;g.k.open=function(){g.oN(this.wb,this.u)};
g.k.ai=function(a){Cpa(this);this.options[a].element.setAttribute("aria-checked","true");this.bd(this.Zi(a));this.l=a};
g.k.Nz=function(a,b,c){var d=this;b=new g.eN({D:"div",Ba:["ytp-menuitem"],U:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},S:[{D:"div",Ba:["ytp-menuitem-label"],ma:"{{label}}"}]},b,this.Zi(a,!0));b.Na("click",function(){d.Jf(a)});
return b};
g.k.enable=function(a){this.B?a||(this.B=!1,this.lq(!1)):a&&(this.B=!0,this.lq(!0))};
g.k.lq=function(a){a?this.wb.zc(this):this.wb.og(this)};
g.k.Jf=function(a){this.V("select",a)};
g.k.Zi=function(a){return a.toString()};
g.k.qL=function(a){g.ip(a)||39!==g.jp(a)||(this.open(),g.hp(a))};
g.k.oa=function(){this.B&&this.wb.og(this);g.eN.prototype.oa.call(this);for(var a=g.q(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.v(NO,g.LO);NO.prototype.Ja=function(){var a=this.G.getAvailableAudioTracks();1<a.length?(g.MO(this,g.Oc(a,this.C)),this.tracks=g.Ab(a,this.C,this),this.i.bd(a.length?" ("+a.length+")":""),this.V("size-change"),this.ai(this.C(this.G.getAudioTrack())),this.enable(!0)):this.enable(!1)};
NO.prototype.Jf=function(a){g.LO.prototype.Jf.call(this,a);this.G.setAudioTrack(this.tracks[a]);this.wb.Ah()};
NO.prototype.C=function(a){return a.toString()};g.v(OO,mN);
OO.prototype.l=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a&&g.SL(this.G))this.i||(this.wb.zc(this),this.i=!0,this.u.push(this.N(this.G,"videodatachange",this.l)),this.u.push(this.N(this.G,"videoplayerreset",this.l)),this.u.push(this.N(this.G,"onPlaylistUpdate",this.l)),this.u.push(this.N(this.G,"autonavchange",this.B)),a=this.G.getVideoData(),this.B(a.autonavState),this.G.eb(this.element,this.i));else if(this.i){this.wb.og(this);this.i=!1;a=g.q(this.u);for(var b=a.next();!b.done;b=a.next())this.hc(b.value)}};
OO.prototype.B=function(a){this.setValue(1!==a)};
OO.prototype.C=function(a){this.G.Ix(a?2:1);this.i&&(this.G.eb(this.element,this.i),this.G.Kb(this.element))};
OO.prototype.oa=function(){this.i&&this.wb.og(this);mN.prototype.oa.call(this)};g.v(PO,g.GM);PO.prototype.Zc=function(){g.GM.prototype.Zc.call(this);this.dialog.focus()};g.v(QO,g.eN);QO.prototype.Qb=function(a){this.l&&this.G.eb(this.element,this.i&&a)};
QO.prototype.B=function(){var a,b,c=null===(b=null===(a=this.G.getVideoData())||void 0===a?void 0:a.accountLinkingConfig)||void 0===b?void 0:b.linked;if(c&&!this.i){var d,e,f,h,l,m;c=null===(d=this.G.getVideoData())||void 0===d?void 0:d.accountLinkingConfig;g.dN(this,RO(null===(e=null===c||void 0===c?void 0:c.menuData)||void 0===e?void 0:e.connectedMenuLabel));this.u=new PO(this.G,RO(null===(f=null===c||void 0===c?void 0:c.menuData)||void 0===f?void 0:f.connectedDialogTitle),RO(null===(h=null===c||
void 0===c?void 0:c.menuData)||void 0===h?void 0:h.connectedDialogMessage),RO(null===(l=null===c||void 0===c?void 0:c.menuData)||void 0===l?void 0:l.confirmButtonText));g.H(this,this.u);d=(null===(m=null===c||void 0===c?void 0:c.menuData)||void 0===m?void 0:m.trackingParams)||null;if(this.l=!!d)this.G.Lh(this.element,this,!0),this.G.Jn(this.element,d);this.wb.zc(this);this.i=!0}else!c&&this.i&&(this.wb.og(this),this.i=!1)};
QO.prototype.onClick=function(){this.l&&this.G.Kb(this.element);this.wb.Bb();this.u&&this.u.Zc()};g.v(SO,g.LO);g.k=SO.prototype;g.k.ys=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a&&(this.C=this.G.So(),a=this.G.getAvailableQualityLevels(),g.zna(this.G)&&g.Ana(this.G)&&a.unshift("missing-qualities"),Bna(this.G)&&a.unshift("inline-survey"),g.MO(this,a),a.length)){this.iE();this.enable(!0);return}this.enable(!1)};
g.k.iE=function(){var a=this.G.getPreferredQuality();this.options[a]&&(this.i=this.G.getPlaybackQuality(),this.ai(a),"auto"===a&&this.bd(this.Zi(a)))};
g.k.Jf=function(a){"missing-qualities"!==a&&(g.LO.prototype.Jf.call(this,a),this.G.setPlaybackQuality(a),this.wb.Bb(),this.ys())};
g.k.Nz=function(a,b,c){var d=this;if("inline-survey"!==a)return g.LO.prototype.Nz.call(this,a,b,c);a=[{D:"span",ma:"Looks good?"}];c={};for(var e=g.q([!0,!1]),f=e.next();!f.done;c={qv:c.qv},f=e.next())c.qv=f.value,f=new g.W({D:"span",K:"ytp-menuitem-inline-survey-response",S:[c.qv?g.cK():Tla()],U:{tabindex:"0",role:"button"}}),f.Na("click",function(h){return function(){var l=h.qv,m=g.X(d.G.app);m&&(m.Ua("iqsr",l?"0":"1"),m.getVideoData().zH=!0);d.wb.Bb();d.ys()}}(c)),a.push(f);
return new g.eN({D:"div",K:"ytp-menuitem",U:{"aria-disabled":"true"},S:[{D:"div",Ba:["ytp-menuitem-label"],S:a}]},b)};
g.k.Zi=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{D:"a",U:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.G.T().C},ma:"Missing options?"};if("inline-survey"===a)return"";var c=[Dpa(this,a)],d=this.G.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(Dpa(this,this.i,["ytp-menu-label-secondary"])));return{D:"div",S:c}};g.v(TO,g.W);g.k=TO.prototype;g.k.init=function(){this.Jp(this.i);this.Oa("minvalue",this.minimumValue);this.Oa("maxvalue",this.maximumValue)};
g.k.tL=function(a){if(!g.ip(a)){switch(g.jp(a)){case 37:case 40:var b=-this.I;break;case 39:case 38:b=this.I;break;default:return}this.Jp(this.i+b);g.hp(a)}};
g.k.rL=function(a){var b=this.i;b+=0>(a.deltaX||-a.deltaY)?-this.C:this.C;this.Jp(b);g.hp(a)};
g.k.sL=function(a){a=(a-g.ng(this.l).x)/this.J*this.range+this.minimumValue;this.Jp(a)};
g.k.Jp=function(a,b){b=void 0===b?"":b;a=g.Zd(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Oa("valuenow",a);this.Oa("valuetext",b);this.L.style.left=(a-this.minimumValue)/this.range*(this.J-this.Y)+"px";this.i=a};
g.k.focus=function(){this.ra.focus()};g.v(VO,TO);VO.prototype.X=function(){this.G.setPlaybackRate(this.i,!0)};
VO.prototype.Jp=function(a){TO.prototype.Jp.call(this,a,WO(this,a).toString());this.u&&(UO(this),this.va())};
VO.prototype.Ca=function(){var a=this.G.getPlaybackRate();WO(this,this.i)!==a&&(this.Jp(a),UO(this))};g.v(XO,g.WJ);XO.prototype.focus=function(){this.i.focus()};g.v(Epa,hN);g.v(YO,g.LO);g.k=YO.prototype;g.k.Zi=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.Ja=function(){var a=this.G.getPresentingPlayerType();this.enable(2!==a&&3!==a);Hpa(this)};
g.k.lq=function(a){g.LO.prototype.lq.call(this,a);a?(this.J=this.N(this.G,"onPlaybackRateChange",this.uL),Hpa(this),Fpa(this,this.G.getPlaybackRate())):(this.hc(this.J),this.J=null)};
g.k.uL=function(a){var b=this.G.getPlaybackRate();this.I.includes(b)||Gpa(this,b);Fpa(this,a)};
g.k.Jf=function(a){g.LO.prototype.Jf.call(this,a);a===this.i?this.G.setPlaybackRate(this.C,!0):this.G.setPlaybackRate(Number(a),!0);this.wb.Ah()};g.v($O,g.LO);g.k=$O.prototype;g.k.ai=function(a){g.LO.prototype.ai.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.Zi=function(a){return this.getOption(a).text||""};
g.k.Jf=function(a){g.LO.prototype.Jf.call(this,a);this.V("settingChange",this.setting,this.settings[a].option)};g.v(aP,g.iN);aP.prototype.Ff=function(a){for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.pn[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.ai(e),c.C.element.setAttribute("aria-checked",String(!d)),c.i.element.setAttribute("aria-checked",String(d)))}}};
aP.prototype.uh=function(a,b){this.V("settingChange",a,b)};g.v(bP,g.LO);bP.prototype.getKey=function(a){return a.languageCode};
bP.prototype.Zi=function(a){return this.languages[a].languageName||""};
bP.prototype.Jf=function(a){this.V("select",a);g.sN(this.wb)};g.v(cP,g.LO);g.k=cP.prototype;g.k.getKey=function(a){return g.Qb(a)?"__off__":a.displayName};
g.k.Zi=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.Jf=function(a){"__translate__"===a?this.i.open():"__contribute__"===a?(this.G.pauseVideo(),this.G.isFullscreen()&&this.G.toggleFullscreen(),a=g.XM(this.G.T(),this.G.getVideoData()),g.FI(a)):("__off__"===a&&this.G.Kb(this.element),this.G.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.LO.prototype.Jf.call(this,a),this.wb.Ah())};
g.k.Ja=function(){var a=this.G.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.G.getVideoData();b=b&&b.ql;var c={};if(a||b){if(a){var d=this.G.getOption("captions","track");c=this.G.getOption("captions","tracklist",{includeAsr:!0});var e=this.G.getOption("captions","translationLanguages");this.tracks=g.Ab(c,this.getKey,this);var f=g.Oc(c,this.getKey);if(e.length&&!g.Qb(d)){var h=d.translationLanguage;if(h&&h.languageName){var l=h.languageName;h=e.findIndex(function(m){return m.languageName===
l});
saa(e,h)}Jpa(this.i,e);f.push("__translate__")}e=this.getKey(d)}else this.tracks={},f=[],e="__off__";f.unshift("__off__");this.tracks.__off__={};b&&f.unshift("__contribute__");this.tracks[e]||(this.tracks[e]=d,f.push(e));g.MO(this,f);this.ai(e);d&&d.translationLanguage?this.i.ai(this.i.getKey(d.translationLanguage)):Cpa(this.i);a&&this.C.Ff(this.G.getSubtitlesUserSettings());this.J.bd(c&&c.length?" ("+c.length+")":"");this.V("size-change");this.G.eb(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.vL=function(a){var b=this.G.getOption("captions","track");b=g.Ub(b);b.translationLanguage=this.i.languages[a];this.G.setOption("captions","track",b)};
g.k.uh=function(a,b){if("reset"===a)this.G.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.G.updateSubtitlesUserSettings(c)}Kpa(this,!0);this.I.start();this.C.Ff(this.G.getSubtitlesUserSettings())};
g.k.RR=function(a){a||g.dn(this.I)};
g.k.oa=function(){g.dn(this.I);g.LO.prototype.oa.call(this)};g.v(dP,g.qN);g.k=dP.prototype;g.k.initialize=function(){if(!this.Me){this.Me=!0;this.BB=new QO(this.G,this);g.H(this,this.BB);var a=new SO(this.G,this);g.H(this,a);a=new cP(this.G,this);g.H(this,a);a=new KO(this.G,this);g.H(this,a);this.G.T().Jc&&(a=new YO(this.G,this),g.H(this,a));this.G.T().xc&&!g.S(this.G.T().experiments,"web_player_move_autonav_toggle")&&(a=new OO(this.G,this),g.H(this,a));a=new NO(this.G,this);g.H(this,a);JO(this.settingsButton,this.Wd.items.length)}};
g.k.zc=function(a){this.initialize();this.Wd.zc(a);JO(this.settingsButton,this.Wd.items.length)};
g.k.og=function(a){this.vb&&1>=this.Wd.items.length&&this.hide();this.Wd.og(a);JO(this.settingsButton,this.Wd.items.length)};
g.k.Zc=function(a){this.initialize();0<this.Wd.items.length&&g.qN.prototype.Zc.call(this,a)};
g.k.show=function(){g.qN.prototype.show.call(this);g.K(this.G.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.qN.prototype.hide.call(this);g.kn(this.G.getRootNode(),"ytp-settings-shown")};
g.k.Xe=function(a){var b;this.G.eb(this.element,a);null===(b=this.BB)||void 0===b?void 0:b.Qb(a)};g.v(eP,g.W);eP.prototype.onClick=function(){var a=this.G.app;a.Qa.La("SIZE_CLICKED",!a.Gc)};
eP.prototype.Ja=function(){g.VJ(this,this.G.pB()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType());if(this.vb){var a=this.G.isWidescreen();if(this.isWidescreen!==a){var b=a?{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,U:{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"}}]}:{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Lb:!0,U:{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.Oa("icon",b):Voa(this.transition,this.element,b);this.isWidescreen=a;b=xM(this.G,"Default view","t");var c=xM(this.G,"Theater mode","t");this.Oa("title",a?b:c);wN(this.tooltip)}}};g.v(g.fP,g.W);g.fP.prototype.onClick=function(){this.G.toggleSubtitles();if(!this.isEnabled()){var a=!1,b=g.Yq(g.Wq.getInstance(),65);g.jE(this.G.T())&&null!=b&&(a=!b);a&&g.S(this.G.T().experiments,"web_player_nitrate_promo_tooltip")&&this.G.V("showpromotooltip",this.element);this.G.Kb(this.element)}};
g.fP.prototype.i=function(a){var b,c;null===(c=null===(b=g.HL(this.G))||void 0===b?void 0:b.Tm())||void 0===c?void 0:c.Zc(a)};
g.fP.prototype.isEnabled=function(){return!!this.G.getOption("captions","track").displayName};
g.fP.prototype.Ja=function(){var a=null!=g.dM(this.G.ob()),b=a&&300<=this.G.Wa().getPlayerSize().width;g.VJ(this,b);this.G.eb(this.element,b);a&&this.Oa("pressed",this.isEnabled())};g.v(g.gP,g.W);g.k=g.gP.prototype;
g.k.Rb=function(){var a=this.api.Wa().getPlayerSize().width,b=a>=this.J&&(!this.l||!g.V(this.api.rb(),64));g.VJ(this,b);g.L(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=g.BK(g.S(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1));this.u!==c&&(this.Oa("currenttime",c),this.u=c);b=g.BK(g.S(this.api.T().experiments,"halftime_ux_killswitch")?a.duration:this.api.getDuration(b,
!1));this.B!==b&&(this.Oa("duration",b),this.B=b)}this.l&&(a=a.isAtLiveHead,this.I!==a||this.C!==this.isPremiere)&&(this.I=a,this.C=this.isPremiere,this.Rb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.bd(this.isPremiere?"Premiere":"Live"),a?this.i&&(this.i(),this.i=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.i=g.VM(this.tooltip,this.liveBadge.element)))};
g.k.fb=function(a,b,c){this.updateVideoData(g.S(this.api.T().experiments,"enable_topsoil_wta_for_halftime")&&2===c?this.api.getVideoData(1):b);this.Rb()};
g.k.updateVideoData=function(a){this.l=a.isLivePlayback&&!a.xc;this.isPremiere=a.isPremiere;g.L(this.element,"ytp-live",this.l)};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.oa=function(){this.i&&this.i();g.W.prototype.oa.call(this)};g.v(jP,g.W);g.k=jP.prototype;g.k.Vl=function(){var a=this.i.Ve();this.B!==a&&(this.B=a,iP(this,this.api.getVolume(),this.api.isMuted()))};
g.k.jE=function(a){g.VJ(this,350<=a.width)};
g.k.yL=function(a){if(!g.ip(a)){var b=g.jp(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.Zd(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.hp(a))}};
g.k.wL=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.Zd(b/10,-10,10));g.hp(a)};
g.k.VR=function(){hP(this,this.l,!0,this.hasFocus,this.i.Ai());this.X=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.xL=function(a){var b=this.B?78:52,c=this.B?18:12;a-=g.ng(this.L).x;this.api.setVolume(100*g.Zd((a-c/2)/(b-c),0,1))};
g.k.UR=function(){hP(this,this.l,!1,this.hasFocus,this.i.Ai());0===this.volume&&(this.api.mute(),this.api.setVolume(this.X))};
g.k.Ug=function(a){iP(this,a.volume,a.muted)};
g.k.OF=function(){hP(this,this.l,this.u,this.hasFocus,this.i.Ai())};
g.k.oa=function(){g.W.prototype.oa.call(this);g.kn(this.J,"ytp-volume-slider-active")};g.v(g.kP,g.W);g.kP.prototype.fb=function(){var a=this.api.getVideoData(1).C,b=this.api.T();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.VJ(this,this.visible);this.api.eb(this.element,this.visible&&this.W);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Oa("url",a))};
g.kP.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.CK(a),!1,!0,!0);if(g.BD(this.api.T())||g.LD(this.api.T()))b=g.Id(b,g.YM("emb_logo"));g.uM(b,this.api,a);this.api.Kb(this.element)};
g.kP.prototype.kb=function(){var a={D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{D:"path",Lb:!0,K:"ytp-svg-fill",U:{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.LD(this.api.T())){var b=this.ya("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{D:"svg",U:{fill:"none",height:"24",width:"24"},S:[{D:"circle",U:{cx:"12",cy:"12",fill:"red",r:"12"}},{D:"ellipse",U:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{D:"path",U:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{D:"svg",U:{viewBox:"0 0 80 24"},S:[{D:"ellipse",U:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{D:"ellipse",U:{cx:"12.18",
cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{D:"path",U:{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.L(b,"ytp-youtube-music-logo-icon-only",c)}this.Oa("logoSvg",a)};
g.kP.prototype.Qb=function(a){g.W.prototype.Qb.call(this,a);this.api.eb(this.element,this.visible&&a)};g.v(mP,g.TL);g.k=mP.prototype;g.k.Fe=function(){this.Dc.Rb();this.Zg.Rb()};
g.k.vj=function(){this.fz();this.md.l?this.Fe():g.uP(this.Dc.tooltip)};
g.k.vp=function(){this.Fe();this.Ed.start()};
g.k.fz=function(){var a=!this.G.T().i&&300>g.Bpa(this.Dc)&&this.G.rb().pc()&&!!window.requestAnimationFrame,b=!a;this.md.l||(a=b=!1);b?this.J||(this.J=this.N(this.G,"progresssync",this.Fe)):this.J&&(this.hc(this.J),this.J=null);a?this.Ed.isActive()||this.Ed.start():this.Ed.stop()};
g.k.kb=function(){var a=this.u.Ve(),b=this.G.Wa().getPlayerSize(),c=nP(this),d=Math.max(b.width-2*c,100);if(this.Da!==b.width||this.Aa!==a){this.Da=b.width;this.Aa=a;var e=Opa(this);this.l.element.style.width=e+"px";this.l.element.style.left=c+"px";g.GO(this.Dc,c,e,a);this.u.ac().gz=e}c=this.i;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-oP(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.Bv=e;c.Ur();this.fz();!this.G.T().ea("html5_player_bottom_linear_gradient")&&g.S(this.G.T().experiments,"html5_player_dynamic_bottom_gradient")&&
g.ZN(this.Ga,b.height)};
g.k.fb=function(){var a=this.G.getVideoData();this.ra.style.background=a.C?a.Ca:"";g.VJ(this.W,a.Hy)};g.v(pP,TN);g.k=pP.prototype;g.k.UB=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.La("innertubeCommand",this.onClickCommand),this.u=!0,this.L.hide())};
g.k.VB=function(){this.u=!0;this.L.hide()};
g.k.fb=function(a,b){var c;"newdata"===a&&(this.l=this.u=!1,qP(this));a=b.XE;if(null==b.shoppingOverlayRenderer&&a){this.i=this.J=this.enabled=!0;this.text=fpa(a.title)||"View Chapters";var d=null===(c=a.trigger)||void 0===c?void 0:c.suggestedActionTimeRangeTrigger;if(d){b=[];var e=d.timeRangeStartMillis;d=d.timeRangeEndMillis;null!=e&&null!=d&&b.push(new g.pw(e,d,{priority:7,mX:"suggested_action_button_visible"}));this.G.Td(b)}this.onClickCommand=a.tapCommand;Ooa(this);SN(this);this.Xh()}};
g.k.Mu=function(){return!this.u&&this.enabled&&(this.l||this.i)};
g.k.Xe=function(a){this.u||((this.l=a)?RN(this):(qP(this),this.Y.start()),this.Xh())};
g.k.oa=function(){qP(this);TN.prototype.oa.call(this)};var x0={},rP=(x0.CHANNEL_NAME="ytp-title-channel-name",x0.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",x0.LINK="ytp-title-link",x0.SESSIONLINK="yt-uix-sessionlink",x0.SUBTEXT="ytp-title-subtext",x0.TEXT="ytp-title-text",x0.TITLE="ytp-title",x0);g.v(sP,g.W);sP.prototype.onClick=function(a){this.api.Kb(this.element);var b=this.api.getVideoUrl(!g.CK(a),!1,!0);g.BD(this.api.T())&&(b=g.Id(b,g.YM("emb_title")));g.uM(b,this.api,a)};
sP.prototype.Ja=function(){var a=this.api.getVideoData(),b=this.api.T();this.Oa("title",a.title);Ppa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Fc&&c.Wg?(this.Oa("channelLink",c.Fc),this.Oa("channelName",c.author),this.Oa("channelTitleFocusable","0")):Ppa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.Lf;g.L(this.link,rP.FULLERSCREEN_LINK,c);b.J||!a.videoId||c||a.C&&b.pfpChazalUi?this.i&&(this.Oa("url",null),this.hc(this.i),
this.i=null):(this.Oa("url",this.api.getVideoUrl(!0)),this.i||(this.i=this.N(this.link,"click",this.onClick)))};g.v(g.tP,g.W);g.k=g.tP.prototype;g.k.pI=function(a,b){a<=this.l&&this.l<=b&&(a=this.l,this.l=NaN,Rpa(this,a))};
g.k.WO=function(){QF(this.i,this.l,160*this.scale)};
g.k.dk=function(){switch(this.type){case 2:var a=this.activeElement;a.removeEventListener("mouseout",this.L);a.addEventListener("mouseover",this.u);a.removeEventListener("blur",this.L);a.addEventListener("focus",this.u);Upa(this);break;case 3:Upa(this);break;case 1:this.i&&(this.i.unsubscribe("l",this.pI,this),this.i=null),this.api.removeEventListener("videoready",this.X),this.Y.stop()}this.type=null;this.I&&this.B.hide()};
g.k.cj=function(a){for(var b=0;b<arguments.length;++b);if(this.activeElement)for(b=0;b<arguments.length;b++)g.Me(arguments[b],this.activeElement)&&this.dk()};
g.k.oa=function(){null!=this.type&&this.dk();this.i&&this.i.dispose();g.W.prototype.oa.call(this)};g.v(g.vP,g.W);g.k=g.vP.prototype;g.k.Cv=function(){var a=this.G.getPlayerSize(),b=this.G.T(),c=this.G.getVideoData(),d=g.BD(b)&&g.OL(this.G)&&g.V(this.G.rb(),128);this.visible=b.Rj&&240<=a.width&&!c.isAd()&&c.sf&&!d&&!(c.C&&b.pfpChazalUi);g.VJ(this,this.visible);this.icon&&$pa(this,this.icon);this.G.eb(this.element,this.visible&&this.W)};
g.k.kE=function(){return this.G.getVideoData().videoId};
g.k.onClick=function(){var a=this;this.G.Kb(this.element);var b=this.G.T(),c=this.kE();b.W?Xpa(this):this.G.Tx()?this.G.requestStorageAccess(function(){g.Qr("embedsItpWatchLaterResult",{accepted:!0});Aq();Ypa(a,c)},function(){g.Qr("embedsItpWatchLaterResult",{accepted:!1});
Zpa(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):Ypa(this,c)};
g.k.zL=function(){this.i=this.l=!1;this.Ja(2)};
g.k.Ja=function(a,b){var c=this.G.T();$pa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.l?g.wI("Added as $USER_NAME",a):g.wI("Watch later as $USER_NAME",a),image:nE(c)})):this.update({title:"Watch later",image:null});wN(this.tooltip)};
g.k.Qb=function(a){g.W.prototype.Qb.call(this,a);this.G.eb(this.element,this.visible&&a)};g.v(wP,g.KM);g.k=wP.prototype;g.k.ac=function(){return this.tooltip};
g.k.JG=function(){return this.Gg};
g.k.Gm=function(a,b){b?this.wk=a:this.wk=null;this.Xi()};
g.k.Mq=function(a,b){if(b)this.vn.push(a);else for(b=this.vn.length;0<=b;b--)if(this.vn[b]===a){this.vn.splice(b,1);break}pM(this.md,64,0<this.vn.length)};
g.k.Kn=function(){this.api.Jh()&&this.api.qk();return!!this.wk||aqa(this)||g.KM.prototype.Kn.call(this)};
g.k.Xi=function(){var a=!this.Kn(),b=a&&this.api.Jh()&&!g.V(this.api.rb(),2)&&!(this.api.getVideoData().C&&this.api.T().pfpChazalUi),c=this.fn&&g.OL(this.api)&&g.V(this.api.rb(),128);a||c?(this.fD.show(),this.gD.show()):(this.fD.hide(),this.gD.hide(),this.tooltip.cj(this.Vh.element));b?this.dj.Zc():this.dj.Bb();this.Gg&&Npa(this.Gg,!a);g.KM.prototype.Xi.call(this)};
g.k.Dp=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.tg(a),h=d||this.Gg&&g.Me(this.Gg.l.element,b),l=d=null;null!=c&&h||(d=g.tg(b),l=g.rg(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Gg,d=nP(b),l=Opa(b),h=this.api.Wa().getPlayerSize().height,c=g.Zd(c,d,d+l-f.width),f=h-oP(b)-f.height):g.Me(this.Vh.element,b)?(b=this.api.Wa().getPlayerSize().width,c=g.Zd(c,12,b-f.width-12),f=this.Ve()?this.Yz:this.Xz,"gvn"===this.api.T().playerStyle&&(f+=
20),this.fn&&(f-=this.Ve()?26:18)):(b=this.api.Wa().getPlayerSize(),c=g.Zd(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.vj=function(a){a&&(this.tooltip.cj(this.Vh.element),this.Gg&&this.tooltip.cj(this.Gg.l.element));g.S(this.api.T().experiments,"embeds_enable_player_overlays_autohide")&&this.mB&&(g.L(this.contextMenu.element,"ytp-autohide",a),g.L(this.contextMenu.element,"ytp-autohide-active",!0));g.KM.prototype.vj.call(this,a)};
g.k.TB=function(){g.S(this.api.T().experiments,"embeds_enable_player_overlays_autohide")&&this.mB&&g.L(this.contextMenu.element,"ytp-autohide-active",!1);g.KM.prototype.TB.call(this)};
g.k.jj=function(a,b){var c=this.api.Wa().getPlayerSize();c=new g.Uf(0,0,c.width,c.height);if(a||this.md.l&&!this.Kn()){if(this.api.T().Si||b)a=this.Ve()?this.Yz:this.Xz,c.top+=a,c.height-=a;this.Gg&&(c.height-=oP(this.Gg))}return c};
g.k.Vl=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.T().externalFullscreen||(b.parentElement.insertBefore(this.ew.element,b),b.parentElement.insertBefore(this.dw.element,b.nextSibling))):g.xo(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.ew.detach(),this.dw.detach());this.kb();this.gm()};
g.k.Ve=function(){var a=this.api.T();a=a.ea("embeds_enable_mobile_custom_controls")&&a.i;return this.api.isFullscreen()&&!a||!1};
g.k.showControls=function(a){this.Vv=!a;this.Xi()};
g.k.kb=function(){var a=this.Ve();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.L(this.contextMenu.element,"ytp-big-mode",a);this.Xi();if(this.lf()&&this.yh)this.Fh&&HN(this.yh,this.Fh),this.shareButton&&HN(this.yh,this.shareButton),this.eh&&HN(this.yh,this.eh);else{if(this.yh){a=this.yh;for(var b=g.q(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.Fh&&!g.Me(this.bh.element,this.Fh.element)&&this.Fh.xa(this.bh.element);this.shareButton&&!g.Me(this.bh.element,
this.shareButton.element)&&this.shareButton.xa(this.bh.element);this.eh&&!g.Me(this.bh.element,this.eh.element)&&this.eh.xa(this.bh.element)}this.gm();g.KM.prototype.kb.call(this)};
g.k.JA=function(){if(aqa(this)&&!g.OL(this.api))return!1;var a=this.api.getVideoData();return!g.BD(this.api.T())||2===this.api.getPresentingPlayerType()||!this.wi||((a=this.wi||a.wi)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.KM.prototype.JA.call(this):!1};
g.k.gm=function(){g.KM.prototype.gm.call(this);this.api.eb(this.title.element,!!this.Ik);this.Dr&&this.Dr.Qb(!!this.Ik);this.channelAvatar.Qb(!!this.Ik);this.overflowButton&&this.overflowButton.Qb(this.lf()&&!!this.Ik);this.shareButton&&this.shareButton.Qb(!this.lf()&&!!this.Ik);this.Fh&&this.Fh.Qb(!this.lf()&&!!this.Ik);this.eh&&this.eh.Qb(!this.lf()&&!!this.Ik);if(!this.Ik){this.tooltip.cj(this.Vh.element);for(var a=0;a<this.Xu.length;a++){var b=this.Xu[a];b.Ag()&&b.Bb()}}};
g.k.Jb=function(a){this.Gg&&Npa(this.Gg,this.Kn());this.Xi();g.KM.prototype.Jb.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.Pl?this.Pl.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.Pl?this.Pl.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.Bk=function(){return this.contextMenu.vb?(this.contextMenu.Bb(),!0):this.vn.length?(this.vn[this.vn.length-1].Bb(),!0):this.wk?(this.wk.Bb(),!0):g.KM.prototype.Bk.call(this)};
g.k.Qx=function(a,b){this.JC=b;this.Mq(a,b);this.vK()};
g.k.vK=function(){var a=this.JC||this.contextMenu.Ag();this.Kz!==a&&(this.Kz=a,this.api.La("onAutonavPauseRequest",this.Kz))};
g.k.ZN=function(){xP(this,this.api.getRootNode(),!0).focus()};
g.k.aO=function(){xP(this,this.api.getRootNode(),!1).focus()};
g.k.Tm=function(){return this.Gg&&this.Gg.i};
g.k.Uk=function(){this.md.Uk()};
g.k.Jw=function(){this.lc.hide()};
g.k.Mp=function(a){this.lc.Mp(!g.eJ(a))};
g.k.Cu=function(a,b,c,d){this.Ys.Cu(a,b,c,d)};
g.k.CJ=function(a,b){zN(this.Ys,a,b)};
g.k.fQ=function(){bqa(this,!0)};
g.k.IQ=function(a){bqa(this,!1,a)};g.v(g.yP,g.aM);g.yP.prototype.Qi=function(){return!1};
g.yP.prototype.create=function(){var a=this.player.T();gE(a)&&a.i?this.chrome=new g.KM(this.player):this.chrome=new wP(this.player);g.H(this,this.chrome);this.chrome.init();this.player.Id("ux")};
g.yP.prototype.ut=function(){return this.chrome};zP.prototype.getState=function(){return this.store.getState()};
zP.prototype.dispatch=function(a){return this.store.dispatch(a)};
zP.prototype.subscribe=function(a){return this.store.subscribe(a)};
zP.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
zP.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};var bFa={},kqa=Us("PersistentEntityStoreDb",{PB:(bFa.EntityStore=!0,bFa),KC:!1,clearDataOnAuthChange:!0,upgrade:function(a,b){1>b&&rs(a,"EntityStore",{keyPath:"key"}).i.createIndex("entityType","entityType",{unique:!1})},
version:1});for(var eqa={playbackData:119,transfer:120,offlineVideoPolicy:130,ytMainVideoEntity:151,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,offlineOrchestrationActionWrapperEntity:169,offlineVideoStreams:198,captionTrack:225},dqa={},cFa=g.q(Object.entries(eqa)),y0=cFa.next();!y0.done;y0=cFa.next()){var dFa=g.q(y0.value),eFa=dFa.next().value,fFa=dFa.next().value;fFa&&(dqa[fFa]=eFa)};g.v(TP,g.F);TP.prototype.l=function(a){lqa(this,a.data)};
TP.prototype.oa=function(){this.channel&&this.channel.close()};
var ZP,nqa=void 0;var cqa=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{Qda(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},r=0;r<f.length;r++){var t=f[r],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){if(!e.payload)return g.pt(Error("Entity "+e.entityKey+" missing EntityMutationPayload.")),d;if(!e.entityKey)return g.pt(Error("Missing entity key.")),d;var f=Ib(e.payload);return"ENTITY_MUTATION_TYPE_REPLACE"===e.type?AP(d,f,e.entityKey,e.payload[f]):d},a);
case "REPLACE_ENTITY":var c=b.payload;return AP(a,c.entityType,c.key,c.i6);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 AP(h,e,l,f[l])},d)},a);
default:return a}}}),pqa=new zP;g.v(eQ,cQ);eQ.prototype.l=function(a){return aQ(a)?vqa(this,a):bQ(a)?wqa(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};g.v(gQ,cQ);gQ.prototype.l=function(a){return aQ(a)?zqa(this,a):bQ(a)?Aqa(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};g.v(hQ,cQ);hQ.prototype.l=function(a){return aQ(a)?Dqa(this,a):bQ(a)?Eqa(this,a):"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"===a.actionType&&a.entityKey?Gqa(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};
var Iqa=[10];Jqa.prototype.i=function(a,b){var c=a.action.actionMetadata.priority-b.action.actionMetadata.priority;0===c&&(a.i<b.i?c=-1:a.i>b.i&&(c=1));return c};g.v(FQ,g.F);FQ.prototype.oa=function(){this.B&&this.B();g.F.prototype.oa.call(this)};
FQ.prototype.createAction=function(a,b){var c=OP(a.entityKey).entityType,d=ku();return new jQ(c,d,a,b.actionId,b.rootActionId)};
FQ.prototype.C=function(a){var b;return g.C(this,function d(){var e=this,f,h,l,m,n,p,r,t;return g.z(d,function(u){if(1==u.i){if(e.Ha())return u.return();f=null!==(b=a.offlineOrchestrationActionWrapperEntity)&&void 0!==b?b:new Set;h=[];l=g.q(f);for(m=l.next();!m.done;m=l.next()){n=m.value;p=OP(n);r=p.entityId;a:{var x=g.q(e.u.actions);for(var y=x.next();!y.done;y=x.next())if(y.value.actionId===r){x=!0;break a}x=!1}x||h.push(n)}return g.w(u,Qqa(e,h),2)}t=u.l;Pqa(e,t);x=e.l?Promise.resolve():PQ(e);return g.w(u,
x,0)})})};SQ.prototype.getLocalMediaInfoById=function(a){return g.C(this,function c(){return g.z(c,function(d){return d.return(oF(a))})})};
SQ.prototype.getAllLocalMediaInfo=function(){return g.C(this,function b(){return g.z(b,function(c){return c.return(pF())})})};
SQ.prototype.B=function(a){this.l=a.status;if(a.Cr&&2===a.status)aF(a.videoId,2),ara(this.i);else if(4===a.status){var b=a.videoId;aF(b,4);hF(b,!1);cra(this.i)}else 1===a.status&&bra(this.i);this.api.La("localmediachange",OE(a))};
SQ.prototype.Z=function(){};g.v(TQ,g.F);TQ.prototype.oa=function(){this.l&&this.l();g.F.prototype.oa.call(this)};
TQ.prototype.u=function(a){var b;return g.C(this,function d(){var e,f,h,l,m,n,p,r=this;return g.z(d,function(t){e=null!==(b=a.transfer)&&void 0!==b?b:new Set;f=[];h=g.q(e);for(l=h.next();!l.done;l=h.next())m=l.value,n=OP(m),p=n.entityId,f.push(p);return 0===f.length?t.return():g.w(t,Uqa(r,f),0)})})};g.v(UQ,g.F);UQ.prototype.oa=function(){this.u&&this.u();this.B.dispose();g.F.prototype.oa.call(this)};
UQ.prototype.C=function(){return g.C(this,function b(){var c=this;return g.z(b,function(d){return c.i?d.return():g.w(d,VQ(c),0)})})};
var z0={},YQ=(z0.TRANSFER_STATE_TRANSFERRING=1,z0.TRANSFER_STATE_TRANSFER_IN_QUEUE=2,z0);g.k=era.prototype;g.k.isReady=function(){return this.B};
g.k.init=function(){return g.C(this,function b(){var c=this;return g.z(b,function(d){if(1==d.i)return c.B?d.return(c.B):g.w(d,oqa(),2);c.i=d.l;return c.i?g.w(d,c.startOrchestration(!0),0):d.return()})})};
g.k.startOrchestration=function(a){a=void 0===a?!1:a;return g.C(this,function c(){var d=this,e,f,h;return g.z(c,function(l){switch(l.i){case 1:e=d;if(a){l.Mb(2);break}return g.w(l,d.isReady(),2);case 2:if(d.l&&d.u||!d.i)return l.return();d.l=new UQ(d.i,d.api,d.player,d.J);return g.w(l,Vqa(d.l.B),4);case 4:return g.w(l,VQ(d.l),5);case 5:return f={},h=(f.ytMainDownloadedVideoEntity=new hQ(d.i),f.playbackData=new eQ(d.i,d.I),f.transfer=new gQ(d.i),f),g.w(l,Lqa(d.i,h),6);case 6:return d.u=l.l,g.w(l,ira(d,
a),7);case 7:d.C=Bo(function(){ira(e)},9E5),l.i=0}})})};
g.k.stopOrchestration=function(){var a,b;return g.C(this,function d(){var e=this;return g.z(d,function(f){if(1==f.i)return g.w(f,e.isReady(),2);void 0!==e.C&&(window.clearInterval(e.C),e.C=void 0);null===(a=e.l)||void 0===a?void 0:a.dispose();e.l=void 0;null===(b=e.u)||void 0===b?void 0:b.dispose();e.u=void 0;f.i=0})})};
g.k.refreshAllVideos=function(){return g.C(this,function b(){var c=this,d;return g.z(b,function(e){return 1==e.i?(d=c.yu,g.w(e,ZQ(c),2)):e.return(d.call(c,e.l,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})})};
g.k.deleteVideos=function(a){return g.C(this,function c(){var d=this;return g.z(c,function(e){return e.return(d.yu(a,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})};
g.k.deleteAllVideos=function(){return g.C(this,function b(){var c=this,d;return g.z(b,function(e){return 1==e.i?(d=c.yu,g.w(e,ZQ(c),2)):e.return(d.call(c,e.l,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})};
g.k.getAllLocalMediaInfo=function(){return g.C(this,function b(){var c=this,d,e;return g.z(b,function(f){if(1==f.i)return d=c,g.w(f,ZQ(c),2);e=f.l;return f.return(Promise.all(e.map(function(h){return d.getLocalMediaInfoById(h)})))})})};
g.k.getLocalMediaInfoById=function(a){var b;return g.C(this,function d(){var e=this,f,h,l,m,n,p,r,t,u,x,y,E,D,G,I,O,ha,ta;return g.z(d,function(na){switch(na.i){case 1:if(!e.i)throw Error("PES is undefined");f=PP(a,"ytMainVideoEntity");return g.w(na,XP(e.i,f,"ytMainVideoEntity"),2);case 2:return h=na.l,l=PP(a,"ytMainChannelEntity"),g.w(na,XP(e.i,l,"ytMainChannelEntity"),3);case 3:return m=na.l,n=null,h&&m&&(n={videoId:a,title:h.title,thumbnail:h.thumbnail,shortViewCountText:null===(b=h.localizedStrings)||
void 0===b?void 0:b.viewCount,lengthSeconds:String(h.lengthSeconds),publishedTimestamp:String(Number(h.publishedTimestampMillis)/1E3),description:h.formattedDescription,channel:{offlineChannelData:{channelId:m.channelId,title:m.title,thumbnail:m.avatar}}}),p=0,r=PP(a,"transfer"),g.w(na,XP(e.i,r,"transfer"),4);case 4:if(t=na.l)switch(t.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_PRE_TRANSFER":p=3;break;case "TRANSFER_STATE_TRANSFERRING":p=2;break;case "TRANSFER_STATE_FAILED":p=
4;break;case "TRANSFER_STATE_COMPLETE":p=1}x=u=0;if(null===t||void 0===t||!t.offlineVideoStreams){na.Mb(5);break}y=g.q(t.offlineVideoStreams);E=y.next();case 6:if(E.done){na.Mb(5);break}D=E.value;return g.w(na,XP(e.i,D,"offlineVideoStreams"),9);case 9:if((G=na.l)&&G.streamsProgress)for(I=g.q(G.streamsProgress),O=I.next();!O.done;O=I.next())ha=O.value,u+=Number(ha.numTotalBytes),x+=Number(ha.numBytesDownloaded);E=y.next();na.Mb(6);break;case 5:return ta={videoId:a,totalSize:u,downloadedSize:x,status:p,
videoData:n},na.return(ta)}})})};
g.k.yu=function(a,b){return g.C(this,function d(){var e=this,f;return g.z(d,function(h){if(1==h.i)return g.w(h,e.isReady(),2);if(!e.u||!e.i)return h.return([]);f=a.map(function(l){var m=PP(l,"ytMainDownloadedVideoEntity");return kQ(new jQ("ytMainDownloadedVideoEntity",l,{actionType:b,entityKey:m,actionMetadata:{priority:0,retryScheduleIntervalsInSeconds:[10]}}))});
return h.return(mqa(e.i,f))})})};var jra=!1,$Q,aR,bR,cR,dR;
eR.prototype.encrypt=function(a){var b=gR.Ou("oap"),c=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+c));for(var d=this.l,e=0;e<c&&16>this.i;)a[e++]^=d[this.i++];for(var f=c-(c-e)%16;e<f;)lra(this),a[e++]^=d[0],a[e++]^=d[1],a[e++]^=d[2],a[e++]^=d[3],a[e++]^=d[4],a[e++]^=d[5],a[e++]^=d[6],a[e++]^=d[7],a[e++]^=d[8],a[e++]^=d[9],a[e++]^=d[10],a[e++]^=d[11],a[e++]^=d[12],a[e++]^=d[13],a[e++]^=d[14],a[e++]^=d[15];if(e<c)for(lra(this),this.i=0;e<c;)a[e++]^=d[this.i++];gR.nt(b,Math.ceil(c/
16));return a};fR.prototype.reset=function(){ora(this);this.update(this.u)};
fR.prototype.update=function(a){var b=0,c=a.length;this.B+=c;this.l&&64<=this.l+c&&(this.I.set(a.subarray(0,64-this.l),this.l),b=64-this.l,this.l=0,nra(this,this.I,0));for(;b+64<=c;b+=64)nra(this,a,b);b<c&&(a=a.subarray(b),this.I.set(a,this.l),this.l+=a.length)};
var mra=[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];var Gxa=!1;var iR=[],Xya=!1;g.EU=Za(function(){var a="";try{var b=g.De("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.v(g.jR,UI);g.k=g.jR.prototype;g.k.isView=function(){return!0};
g.k.xC=function(){var a=this.i.getCurrentTime();if(a<this.start)try{var b=this.i.Mg(),c=EB(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Wo=function(){return HB(this.i.Wo(),this.start,this.end)};
g.k.Mg=function(){return HB(this.i.Mg(),this.start,this.end)};
g.k.Gt=function(){return HB(this.i.Gt(),this.start,this.end)};
g.k.getCurrentTime=function(){return this.i.getCurrentTime()-this.start};
g.k.Ox=function(a){this.i.Ox(a+this.start)};
g.k.getDuration=function(){return isFinite(this.end)&&!this.B?this.end-this.start:this.i.getDuration()-this.start};
g.k.play=function(){if(this.xC()){this.i.getCurrentTime();try{this.i.Ox(this.start)}catch(a){}}return this.i.play()};
g.k.Eb=function(){var a=UI.prototype.Eb.call(this);a.view=this.start+"-"+this.end;return a};
g.k.addEventListener=function(a,b){this.i.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.i.removeEventListener(a,b)};
g.k.yv=function(){return this.i.yv()};
g.k.zq=function(a){this.i.zq(a)};
g.k.xv=function(){return this.i.xv()};
g.k.playVideo=function(){return this.i.playVideo()};
g.k.oA=function(){this.i.oA()};
g.k.nA=function(){this.i.nA()};
g.k.Tn=function(){return this.i.Tn()};
g.k.Re=function(){return this.i.Re()};
g.k.Wf=function(){return this.i.Wf()};
g.k.Sx=function(a){this.i.Sx(a)};
g.k.Fx=function(){this.i.Fx()};
g.k.getPlaybackRate=function(){return this.i.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.i.setPlaybackRate(a)};
g.k.wv=function(){return this.i.wv()};
g.k.setLoop=function(a){this.i.setLoop(a)};
g.k.canPlayType=function(a,b){return this.i.canPlayType(a,b)};
g.k.mm=function(){return this.i.mm()};
g.k.us=function(){return this.i.us()};
g.k.Jk=function(){return this.i.Jk()};
g.k.uw=function(){return this.i.uw()};
g.k.Kr=function(a){this.i.Kr(a)};
g.k.zv=function(){return this.i.zv()};
g.k.load=function(){this.i.load()};
g.k.pause=function(){this.i.pause()};
g.k.Gh=function(){return this.i.Gh()};
g.k.ww=function(){return this.i.ww()};
g.k.Yi=function(){return this.i.Yi()};
g.k.xf=function(){return this.i.xf()};
g.k.Av=function(){return this.i.Av()};
g.k.Zf=function(){return this.i.Zf()};
g.k.Lp=function(){return this.i.Lp()};
g.k.togglePictureInPicture=function(){this.i.togglePictureInPicture()};
g.k.Rm=function(){return this.i.Rm()};
g.k.kq=function(){return this.i.kq()};
g.k.setSize=function(a){this.i.setSize(a)};
g.k.getVolume=function(){return this.i.getVolume()};
g.k.setVolume=function(a){this.i.setVolume(a)};
g.k.setAttribute=function(a,b){this.i.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.i.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.i.hasAttribute(a)};
g.k.Hs=ba(16);g.k.Su=ba(18);g.k.Tu=ba(20);g.k.Qs=ba(22);g.k.ct=function(){return this.i.ct()};
g.k.wm=function(a){this.i.wm(a)};
g.k.Ht=function(a){return this.i.Ht(a)};
g.k.lB=function(){return this.i.lB()};
g.k.stopVideo=function(){this.i.stopVideo()};
g.k.tA=function(a){this.i.tA(a)};kR.prototype.then=function(a,b){return this.promise.then(a,b)};
kR.prototype.resolve=function(a){this.l(a)};
kR.prototype.reject=function(a){this.i(a)};g.v(lR,g.F);g.k=lR.prototype;g.k.isFinished=function(){return 6===this.status.status};
g.k.getStatus=function(){return this.status};
g.k.Ao=function(){var a=this.i.getVideoData(),b=this.l.getVideoData();if(a.u){var c;if(c=a.i){c=a.i;for(var d=!1,e=!1,f=g.q(Object.values(c.i)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.xd()&&(d=!0),h.info.video&&h.index.xd()&&(e=!0);c.i["0"]&&(e=!0);c=!(d&&e)}if(c)this.Z();else if(this.i.Dd()){h=wra(this.policy,this.i,this.l,this.Ui);f=xra(this);c=f.JN;e=f.TH;d=f.bG;f=f.SH;if(!this.J){var l=1E3*this.l.Gl(),m=this.i.Gl();m=1E3*(d-c-m);h&&"in-the-past"===h&&(m=0);a=a.isAd();var n=
this.l.C;n.qoe&&(n=n.qoe,n.C={ZS:Number(n.Ua("glrem","nst."+l.toFixed()+";rem."+m.toFixed()+";ca."+ +a)),UH:l,QS:m,isAd:a});this.J=!0}h?this.Qe("cannot_apply"+h+";transitionTimeMs."+this.Ui):2===this.status.status?Era(this):(a=this.i.mediaSource)?SB(a)?!QB(a)&&g.fq()?this.Qe("mse_closed"):b.i&&sy(b.i)&&a.l&&!a.l.pw()?this.Qe("encr_upgrade"):(b=this.i.Dd(),b.Jk()?this.Qe("elem_ended"):0>e?this.Qe("next_player_future"):(this.I=d,this.u=WB(a,c,d,!0),this.B=WB(a,e,f,!1),a=this.l.getVideoData().clientPlaybackNonce,
this.i.Ua("gaplessPrep","cpn."+a),pR(this.i,this.u),nR(this.i,yra(b,c,d,!this.i.getVideoData().isAd())),oR(this,2),Era(this))):this.Z():this.Z()}else this.Qe("no-elem")}else this.Z()};
g.k.mq=function(a){var b=Dra(this).OJ,c=a===b;b=c?this.u.i:this.u.l;c=c?this.B.i:this.B.l;if(b.isActive&&!c.isActive){var d=this.I;DB(a.wf(),d-.01)&&(oR(this,4),b.isActive=!1,b.hv=b.hv||b.isActive,this.l.Ua("sbh","1"),c.isActive=!0,c.hv=c.hv||c.isActive);a=this.B.l;this.B.i.isActive&&a.isActive&&oR(this,5)}};
g.k.zI=function(){4<=this.status.status&&6>this.status.status&&this.Qe("player-reload-after-handoff")};
g.k.Qe=function(a){if(!this.Ha()&&!this.isFinished()){this.Z();var b=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.i&&this.l){var c=this.l.getVideoData().clientPlaybackNonce;this.i.Ua("gaplessError","cpn."+c+";msg."+a);a=this.i;a.videoData.Ra=!1;b&&AV(a);a.l&&(b=a.l,b.policy.Da=!1,b.mediaSource&&RT(b))}this.C.reject(void 0);this.dispose()}};
g.k.oa=function(){Cra(this);this.i.unsubscribe("newelementrequired",this.zI,this);if(this.u){var a=this.u.l;this.u.i.qd.unsubscribe("updateend",this.mq,this);a.qd.unsubscribe("updateend",this.mq,this)}g.F.prototype.oa.call(this)};
g.k.wc=function(a){g.fI(a,128)&&this.Qe("player-error-event")};
g.k.Z=function(){};g.v(rR,g.F);rR.prototype.clearQueue=function(){this.Z();this.B&&this.B.reject("Queue cleared");sR(this)};
rR.prototype.jr=function(){return!this.l};
rR.prototype.oa=function(){sR(this);g.F.prototype.oa.call(this)};
rR.prototype.Z=function(){};g.v(vR,g.P);g.k=vR.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:Ira()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.Ni=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Xe())};
g.k.setMinimized=function(a){this.u!==a&&(this.u=a,this.Xe())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Xe())};
g.k.Lr=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Xe())};
g.k.setImmersivePreview=function(a){this.l!==a&&(this.l=a,this.Xe())};
g.k.Zf=function(){return this.i};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.jf=function(){return this.u};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return Ira()};
g.k.ir=function(){return this.pictureInPicture};
g.k.gr=function(){return this.l};
g.k.Xe=function(){this.V("visibilitychange");var a=this.getVisibilityState(this.Zf(),this.isFullscreen(),this.jf(),this.isInline(),this.ir(),this.gr());a!==this.C&&this.V("visibilitystatechange");this.C=a};
g.k.oa=function(){Lra(this.B);g.P.prototype.oa.call(this)};g.v(yR,g.F);g.k=yR.prototype;g.k.ge=function(a){var b=this.I.get(a),c=null==b;if(this.Ca)this.Ca=!1,c||(a=this.u.find(function(d){return d.cpn===b}))&&this.api.V("serverstitchedvideochange",a.cd),this.W=!1;
else if(this.l){if(this.l.Qt)this.i.Ua("sdai","a_pair_of_same_transition_occurs_enter");else{if(this.l.ue===a){this.l=void 0;return}if(this.l.adCpn===b){this.i.Ua("sdai","dchtsc");this.l=void 0;return}a={ue:a,isAd:!c,Qt:!0,dm:this.i.getCurrentTime(),adCpn:b};Sra(this,a,this.l)}this.l=void 0;this.W=!1}else this.l={ue:a,isAd:!c,Qt:!0,dm:this.i.getCurrentTime(),adCpn:b}};
g.k.ag=function(a){this.Ca&&(this.W=this.Ca=!1,this.i.Ua("sdai","cref"));var b=this.I.get(a),c=null==b;if(this.l){if(this.l.Qt){if(this.l.ue===a){this.l=void 0;return}if(this.l.adCpn===b){this.i.Ua("sdai","dchtsc");this.l=void 0;return}a={ue:a,isAd:!c,Qt:!1,dm:this.i.getCurrentTime(),adCpn:b};Sra(this,this.l,a)}else this.i.Ua("sdai","a_pair_of_same_transition_occurs_exit");this.l=void 0;this.W=!1}else this.l={ue:a,isAd:!c,Qt:!1,dm:this.i.getCurrentTime(),adCpn:b};g.S(this.B.experiments,"web_player_halftime_dai")&&
(a=this.u.find(function(d){return d.cpn===b}),this.isLiveNow&&a&&this.i.getCurrentTime()<OR(this.i)&&wR(this,Infinity))};
g.k.isAdPlaying=function(a){return!!CR(this,1E3*a)};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.W=!0;if(void 0===b?0:b)wR(this,a);else{b=this.api.Ic();var d=b===this.ra?this.va:null;DR(this,!1);this.Ga=a;null!=c&&this.Da.start(c);b&&(this.va=d||b.getPlayerState(),UV(b),this.ra=b)}};
g.k.oa=function(){DR(this,!1);FR(this);g.F.prototype.oa.call(this)};
g.k.Z=function(){};
g.k.GA=function(a,b,c){if(Xra(this,b))return null;a=Ura(this,a,b);var d=Number(c.split(";")[0]);if(a&&a.playerResponse&&a.playerResponse.streamingData){var e=a.playerResponse.streamingData.adaptiveFormats;if(e){var f=e.find(function(l){return l.itag===d});
if(f&&f.url){e=this.i.getVideoData();var h=e.i.i[c].index.RA(b-1);c=f.url;h&&h.i&&(c=c.concat("&daistate="+h.i));a.RC&&b>=a.RC&&(c=c.concat("&skipsq="+a.RC));(e=e.clientPlaybackNonce)&&(c=c.concat("&cpn="+e));a.uo&&(e=Yra(this,a.uo),0<e.length&&(c=c.concat("&acpns="+e.join(","))));g.S(this.B.experiments,"html5_high_res_logging")&&this.i.Ua("sdai","ast."+a.Cc.toFixed(3)+".alen."+a.durationMs.toFixed(3)+".acpn."+a.cpn);this.Ma.set(b,a);return c}}}Wra(this,b);return null};
g.k.skipAd=function(a,b){if(a=Ura(this,a,b)){a=a.uo;this.i.Ua("sdai","skip_adbreakid_"+a);for(var c=g.q(this.u),d=c.next();!d.done;d=c.next())d=d.value,d.uo===a&&(d.RC=b)}};
g.k.fC=function(a,b,c,d){if(c.length&&d.length)for(a*=1E3,c=g.q(c.entries()),b=c.next();!b.done;b=c.next()){b=g.q(b.value);var e=b.next().value;b=b.next().value;e=1E3*d[e];if(b===this.i.getVideoData().clientPlaybackNonce)GR(this,a,a+e,!1),a+=e;else{for(var f=void 0,h=g.q(this.I),l=h.next();!l.done;l=h.next()){l=g.q(l.value);var m=l.next().value;l.next().value===b&&(f=m)}f&&f.start<=a&&f.end>=a+e||(h=!1,f?a<f.start?f.start=a:f.end<a+e&&(f.end=a+e):(f=Rra(a,a+e),this.I.set(f,b),h=!0),a=f.end,GR(this,
f.start,f.end,!0),h&&this.i.addCueRange(f))}}else 5!==b&&4!==b||GR(this,1E3*a,1E3*a+5E3,!1)};
g.k.Gd=function(a){this.i.Ua("timelineerror",a)};
g.k.XA=function(a){var b;Sh(this.Y,function(c){return c.identifier===a.identifier})?(this.i.Ua("sdai","timedoutcp.1"),this.J.start(0)):this.J.isActive()?this.i.Ua("sdai","racingcp_"+(null===(b=this.X)||void 0===b?void 0:b.identifier)+"_"+a.identifier):(g.S(this.B.experiments,"html5_high_res_logging")&&this.i.Ua("sdai","adf.1"),this.L=!1,this.J.start(),this.X=a,this.Ma.clear(),this.Aa=[])};
g.k.wp=function(a){var b;(null===(b=this.X)||void 0===b?void 0:b.identifier)===a&&this.J.isActive()&&(this.L=!1,this.J.stop(),xR(this,!1))};
var Pra=0;g.v(IR,g.F);g.k=IR.prototype;g.k.ge=function(a){if(this.l===this.api.Ic()){var b=this.I.get(a);if(b){var c=b.target;this.Z();fsa(this,c,b.Ui,a)}else this.Gd("e.unexpectedCueRangeTriggered")}else if(b=this.i.find(function(e){return e.Km.ue===a})){var d=b.Km;
this.Z();c=d.target;d=d.Ui;c?fsa(this,c,d,a):esa(this,b.zd,d,a)}};
g.k.sR=function(){var a=this.L;LR(this);if(a){KR(this,a)||this.Gd("e.unexpectedPresentingPlayer");var b=this.api.Ic();a=a.Km;this.Z();b.addCueRange(a.ue)}};
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)$ra(this,a);else{b=this.api.Ic();var d=b===this.B?this.J:null;NR(this,!1);this.X=a;null!=c&&this.W.start(c);b&&(this.J=d||b.getPlayerState(),UV(b),this.B=b)}};
g.k.rh=function(a){g.fI(a,128)&&isa(this)};
g.k.isManifestless=function(){return AG(this.l.getVideoData())};
g.k.oa=function(){NR(this,!1);QR(this);g.F.prototype.oa.call(this)};
g.k.Z=function(){};
g.k.Gd=function(a){this.l.Ua("timelineerror",a)};
var asa=0;var ksa="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.v(TR,g.F);TR.prototype.get=function(a){RR(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
TR.prototype.set=function(a,b,c){this.remove(a,!0);RR(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.N)()+c);for(this.data.push(a);this.data.length>this.u;)(c=this.data.shift())&&UR(this,c,!0);SR(this)};
TR.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(UR(this,c,b),g.lb(this.data,function(d){return d.key===a}),SR(this))};
TR.prototype.oa=function(){var a=this;g.F.prototype.oa.call(this);this.data.forEach(function(b){UR(a,b,!0)});
this.data=[]};VR.prototype.add=function(a){this.i=(this.i+1)%this.data.length;this.data[this.i]=a};
VR.prototype.forEach=function(a){for(var b=this.i+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.i;b++)a(this.data[b]||0)};
VR.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.l=this.i=this.data.length-1};g.v(WR,g.F);WR.prototype.start=function(){this.l.start()};
WR.prototype.stop=function(){this.l.stop()};
WR.prototype.clear=function(){for(var a=g.q(this.i.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
WR.prototype.u=function(){for(var a=g.q(this.B),b=a.next();!b.done;b=a.next()){var c=g.q(b.value);b=c.next().value;c=c.next().value;this.i.has(b)||this.i.set(b,new $R(gFa.has(b)));this.i.get(b).update(c())}this.l.start()};
var gFa=new Set(["networkactivity"]);$R.prototype.update=function(a){this.l?(this.buffer.add(a-this.i||0),this.i=a):this.buffer.add(a)};
$R.prototype.clear=function(){this.buffer.clear();this.i=0};g.v(aS,g.F);aS.prototype.oa=function(){g.F.prototype.oa.call(this);this.i=null;this.l&&this.l.disconnect()};g.hFa=Za(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var A0;A0={};g.bS=(A0.STOP_EVENT_PROPAGATION="html5-stop-propagation",A0.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",A0.IV_DRAWER_OPEN="ytp-iv-drawer-open",A0.MAIN_VIDEO="html5-main-video",A0.VIDEO_CONTAINER="html5-video-container",A0.HOUSE_BRAND="house-brand",A0);g.v(cS,g.W);g.k=cS.prototype;g.k.wm=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];g.jn(this.element,b)};
g.k.Xg=function(){this.Gb&&(this.Gb.removeEventListener("focus",this.aC),g.He(this.Gb),this.Gb=null)};
g.k.lA=function(){this.Ha();var a=this.app.T();a.Mj||this.wm("tag-pool-enabled");a.I&&this.wm(g.bS.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.wm("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Ya&&(this.eA=g.Ho("yt-dom-content-change",this.resize,this));this.N(window,"orientationchange",this.resize,this);this.N(window,"resize",this.resize,this)};
g.k.Ju=function(a){GD(this.app.T());this.Iw=!a;dS(this)};
g.k.resize=function(){if(this.Gb){var a=this.Og();if(!a.isEmpty()){var b=this.Gr;b=!g.fe(a,new g.ee(b.width,b.height));var c=tsa(this);b&&(this.Gr.width=a.width,this.Gr.height=a.height);a=this.app.T();(c||b||a.Ya)&&this.app.Qa.V("resize",this.getPlayerSize())}}};
g.k.Yq=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.Gb){var b=this.app.T();nq&&(this.Gb.setAttribute("x-webkit-airplay","allow"),a.title?this.Gb.setAttribute("title",a.title):this.Gb.removeAttribute("title"));FG(a)?this.Gb.setAttribute("disableremoteplayback",""):this.Gb.removeAttribute("disableremoteplayback");this.Gb.setAttribute("controlslist","nodownload");b.rl&&a.videoId&&(this.Gb.poster=a.gf("default.jpg"))}b=g.MG(a,"yt:bgcolor");this.Rs.style.backgroundColor=b?b:"";this.JB=uD(g.MG(a,"yt:stretch"));this.KB=
uD(g.MG(a,"yt:crop"),!0);g.L(this.element,"ytp-dni",a.C);this.resize()};
g.k.setGlobalCrop=function(a){this.VA=uD(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.JF=a;this.resize()};
g.k.Ni=function(){};
g.k.getPlayerSize=function(){var a=this.app.T(),b=this.app.Qa.isFullscreen();if(b&&dq())return new g.ee(window.outerWidth,window.outerHeight);if(b||a.Xj){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Wt&&this.Wt.media===a||(this.Wt=window.matchMedia(a));var c=this.Wt&&this.Wt.matches}if(c)return new g.ee(window.innerWidth,window.innerHeight)}else{if(!isNaN(this.ot.width)&&!isNaN(this.ot.height))return this.ot.clone();if(this.zy&&this.xD&&!this.app.isWidescreen())for(a=
0;a<this.zy.length;a++)if(b=this.zy[a],b.query.matches)return new g.ee(b.size.width,b.size.height)}return new g.ee(this.element.clientWidth,this.element.clientHeight)};
g.k.Og=function(){return this.getPlayerSize()};
g.k.getVideoAspectRatio=function(){return isNaN(this.JB)?rsa(this):this.JB};
g.k.getVideoContentRect=function(a){var b=this.Og();a=ssa(this,b,this.getVideoAspectRatio(),a);return new g.Uf((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.pu=function(){dS(this)};
g.k.setUseFastSizingOnWatch=function(a){this.xD!==a&&(this.xD=a,this.resize())};
g.k.setInternalSize=function(a){g.fe(this.ot,a)||(this.ot=a,this.resize())};
g.k.oa=function(){this.eA&&g.Io(this.eA);this.Xg();g.W.prototype.oa.call(this)};g.k=usa.prototype;g.k.click=function(a,b){this.elements.has(a);this.i.has(a);var c=g.uu();c&&a.visualElement&&g.Ku(c,a.visualElement,b)};
g.k.Zb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=rfa(c);a.visualElement=c;var f=g.uu(),h=g.ru();f&&h&&g.Hu(f,h,c);g.wi(b,function(){vsa(e,a)});
d&&this.l.add(a)};
g.k.Lh=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.wi(b,function(){vsa(d,a)});
c&&this.l.add(a)};
g.k.Jn=function(a,b){this.elements.has(a);b&&(a.visualElement=g.nu(b))};
g.k.Mt=function(a){return this.elements.has(a)};g.v(iS,g.W);
iS.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.l)this.l.fillStyle=this.C[c],this.l.fillRect(a*this.i,0,this.i,this.heightPx),this.l.fillStyle=this.C[c+1],this.l.fillRect(a*this.i,this.heightPx*(1-b),this.i,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.v(kS,g.W);g.k=kS.prototype;g.k.show=function(){g.W.prototype.show.call(this);this.Ja()};
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.Ja()};
g.k.Ja=function(){var a=(0,g.N)(),b=this.C.getStatsForNerds();jS(this.i,b.bandwidth_samples);jS(this.B,b.network_activity_samples);jS(this.u,b.live_latency_samples);jS(this.l,b.buffer_health_samples);this.update(b);a=25<(0,g.N)()-a?5E3:500;this.delay.start(a)};Bsa.prototype.deactivate=function(){this.isActive&&(this.isActive=!1)};sS.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
sS.prototype.getPlaybackRate=function(){return this.playbackRate};g.v(wS,g.P);wS.prototype.seek=function(a){a!==this.l&&(this.seekCount=0);this.l=a;var b=this.videoTrack.l,c=this.audioTrack.l,d=this.audioTrack.Ob,e=Lsa(this,this.videoTrack,a,this.videoTrack.Ob);d=Lsa(this,this.audioTrack,this.policy.Xa?a:e,d);e=Math.max(a,e,d);this.i=!0;this.u.isManifestless&&(Jsa(this,this.videoTrack,b),Jsa(this,this.audioTrack,c));Rsa(this.I,a);return e};
wS.prototype.Z=function(){};
var Ksa=2/24;CS.prototype.Za=function(){this.tick("gv")};
CS.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.N)()};g.v(ES,g.P);ES.prototype.ra=function(a,b){var c=this.I.i.index.uc()<=b,d=this.L.isManifestless&&this.policy.Ca;this.i={Ld:a,Ia:b};this.policy.Ca&&this.W&&this.u&&(this.W=!1,"continue"!==a.event&&"stop"!==a.event||HS(this,this.u));this.u&&this.u.Ia===b&&(this.u=null);(c||d)&&GS(this,a,b)};Ssa.prototype.push=function(a){this.buffer[this.index%this.length]=a;this.index=(this.index+1)%this.length;this.count!==this.length&&this.count++};Usa.prototype.Z=function(){};US.prototype.skip=function(a){this.offset+=a};
US.prototype.Il=function(){return this.offset};g.v(WS,g.P);WS.prototype.Pi=function(){this.l.shift()};
WS.prototype.isAudio=function(){return!!this.u.info.audio};
WS.prototype.getDuration=function(){return this.u.index.Qm()};
WS.prototype.Z=function(){};g.k=dT.prototype;g.k.FA=function(){return 0};
g.k.lE=function(){return null};
g.k.CG=function(){return null};
g.k.isComplete=function(){return 4<=this.state};
g.k.isFailed=function(){return 6===this.state};
g.k.uu=function(a){this.callback&&this.callback(this,a)};
g.k.Ha=function(){return-1===this.state};
g.k.dispose=function(){this.info.oi()&&5!==this.state&&(this.info.i[0].i.u=!1);eT(this,-1)};g.v(fT,g.P);g.k=fT.prototype;g.k.hasDecryptedBytes=function(){return Object.values(this.i).some(function(a){return a.hasDecryptedBytes})};
g.k.isFailed=function(a){var b;return null===(b=this.i[a])||void 0===b?void 0:b.isFailed};
g.k.nh=function(a){a=(a=this.i[a])&&a.slices;return!(!a||!a.totalLength)};
g.k.isComplete=function(a){return(a=this.i[a])&&a.isComplete};
g.k.Pi=function(a){var b=this.i[a].slices;this.i[a].bytesShifted+=b.totalLength;this.i[a].slices=new FA;return b};
g.k.Z=function(){};g.v(gT,dT);g.k=gT.prototype;g.k.uu=function(a){Ota(this);dT.prototype.uu.call(this,a)};
g.k.zs=function(){return{}};
g.k.xG=function(){return 0};
g.k.Mk=function(){return!0};
g.k.mE=function(){this.L=!0;return Hta(this.i)};
g.k.Fr=function(){return 1>this.state?!1:!!this.i.slices.length};
g.k.iz=function(){Ota(this);return this.i.slices};hT.prototype.Vg=function(){return tta(this.B)};
hT.prototype.Pi=function(a){this.B.Pi(a);a=a.info;a.i.info.l>=this.X&&(this.X=a.i.info.l)};
hT.prototype.getDuration=function(){return this.i.index.Qm()};vT.prototype.send=function(){g.Yp(this.target,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:this.onComplete,onTimeout:this.onComplete,context:this});this.i=(0,g.N)()};
vT.prototype.onComplete=function(a){var b,c={rc:a.status,lb:(null===(b=a.response)||void 0===b?void 0:b.byteLength)||0,rt:(((0,g.N)()-this.i)/1E3).toFixed(3),shost:g.xd(this.target),trigger:this.trigger};204===a.status||a.response?this.l&&this.l(g.KB(c)):this.u(new g.JB("pathprobe.net",!1,c))};g.k=$ta.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.l.get("type"):""};
g.k.abort=function(){};
g.k.Zm=function(){return!0};
g.k.vt=function(){return this.range.length};
g.k.Qo=function(){return this.loaded};
g.k.Gw=function(){return!!this.i.totalLength};
g.k.nh=function(){return!!this.i.totalLength};
g.k.Pi=function(){var a=this.i;this.i=new FA;return a};
g.k.Vg=function(){return this.i};
g.k.VC=function(){return!0};
g.k.pC=function(){return!!this.error};
g.k.xf=function(){return this.error};var aua=0;g.k=wT.prototype;g.k.start=function(a){var b=this,c={method:this.method,credentials:this.credentials};this.headers&&(c.headers=new Headers(this.headers));this.body&&(c.body=this.body);this.B&&(c.signal=this.B.signal);a=new Request(a,c);fetch(a).then(function(d){cua(b,d)},function(d){b.onError(d)}).then(void 0,g.xo)};
g.k.onDone=function(){if(!this.Ha()){this.Z();this.L=!0;if(dua(this)&&!this.i.totalLength&&!this.C&&this.l){by(this);var a=new Uint8Array(8),b=new DataView(a.buffer);b.setUint32(0,8);b.setUint32(4,1936419184);this.i.append(a);this.l+=a.length}this.Y()}};
g.k.onError=function(a){this.Z();this.errorMessage=String(a);this.C=!0;this.onDone()};
g.k.getResponseHeader=function(a){return this.J?this.J.get(a):null};
g.k.Zm=function(){return!!this.J};
g.k.Qo=function(){return this.l};
g.k.vt=function(){return+this.getResponseHeader("content-length")};
g.k.Gw=function(){return 200<=this.status&&300>this.status&&!!this.l};
g.k.Z=function(){};
g.k.nh=function(){if(this.L)return!!this.i.totalLength;if(!this.Zm())return!1;var a=this.policy.u;if(a&&this.W+a>Date.now())return!1;a=this.vt()||0;a=Math.max(16384,this.policy.i*a);this.X||(a=Math.max(a,16384));this.policy.pg&&by(this)&&(a=1);return this.i.totalLength>=a};
g.k.Pi=function(){this.nh();this.W=Date.now();this.X=!0;var a=this.i;this.i=new FA;return a};
g.k.Vg=function(){this.nh();return this.i};
g.k.Ha=function(){return this.aborted};
g.k.abort=function(){this.Z();this.u&&this.u.cancel().catch(function(){});
this.B&&this.B.abort();this.aborted=!0};
g.k.VC=function(){return!0};
g.k.pC=function(){return this.C};
g.k.xf=function(){return this.errorMessage};g.k=eua.prototype;g.k.onDone=function(){if(!this.Ha){this.status=this.xhr.status;try{this.response=this.xhr.response,this.l=this.response.byteLength}catch(a){}this.i=!0;this.u()}};
g.k.Fe=function(a){this.Ha||(this.status=this.xhr.status,this.B(a.timeStamp,a.loaded))};
g.k.Zm=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return zo(Error("Could not read XHR header "+a)),""}};
g.k.vt=function(){return+this.getResponseHeader("content-length")};
g.k.Qo=function(){return this.l};
g.k.Gw=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
g.k.nh=function(){return this.i&&!!this.response&&!!this.response.byteLength};
g.k.Pi=function(){this.nh();var a=this.response;this.response=void 0;return new FA([new Uint8Array(a)])};
g.k.Vg=function(){this.nh();return new FA([new Uint8Array(this.response)])};
g.k.abort=function(){this.Ha=!0;this.xhr.abort()};
g.k.VC=function(){return!1};
g.k.pC=function(){return!1};
g.k.xf=function(){return""};g.v(zT,dT);g.k=zT.prototype;
g.k.zs=function(){var a=Csa(this.timing);a.shost=Gy(this.l.Kh);a.rn=this.requestNumber.toString();this.u&&(a.rc=this.u.toString());a.itag=""+this.info.i[0].i.info.yc();a.ml=""+ +this.info.i[0].i.hf();a.sq=""+this.info.i[0].Ia;if(this.l){var b=this.l.Kh;Fy(b);var c=decodeURIComponent(b.get("mn")||"").split(",");a.ifi=""+ +("/videoplayback"===b.path&&1<c.length&&!!c[1])}410!==this.u&&500!==this.u&&503!==this.u||(a.fmt_unav="true");this.xhr&&this.xhr.xf()&&(a.msg=this.xhr.xf());this.Qu&&(a.smb="1");
this.i&&(b=this.i.slices,b.length&&SA(b[0],a));return a};
g.k.xG=function(){var a=this.timing;return(a.B-a.i)/1E3};
g.k.xf=function(){return this.xhr.xf()||""};
g.k.BL=function(a,b,c){if(!this.Ha()&&this.xhr){this.u=this.xhr.status;var d=this.timing;a=a>d.i&&4E12>a?a:Date.now();pS(d,a,b);50>a-d.B&&qS(d)&&3!==lS(d)||Hsa(d,a,b,c);b=this.timing;b.l>b.Xa&&mS(b,b.l)&&3>this.state?(this.Z(),eT(this,3)):this.Mk()&&this.Fr()&&eT(this,Math.max(2,this.state))}};
g.k.xS=function(){if(!this.Ha()&&this.xhr){if(!this.X&&this.xhr.Zm()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.X=(g.Ta()-a)/1E3}this.xhr.Zm()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.fq&&!kua()&&IEa(!0);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.AL=function(){var a=this.xhr;!this.Ha()&&a&&(this.W.stop(),this.u=a.status,a=pua(this,a),6===a?yT(this):eT(this,a))};
g.k.canRetry=function(){this.Ha();var a=xT(this);return 100>a.l&&a.i<this.policy.ol};
g.k.uu=function(a){this.isComplete()&&(this.policy.td?AT(this):this.timing.deactivate());dT.prototype.uu.call(this,a)};
g.k.VS=function(){this.isComplete();if(!this.Ha()){var a=g.Ta(),b=!1;qS(this.timing)?(a=this.timing.W,Esa(this.timing),this.timing.W-a>=.8*this.ra?(this.B++,this.Z(),b=5<=this.B):this.B=0):(b=this.timing,b.oh&&rS(b,Date.now()),a-=b.X,this.policy.Sf&&0<a&&(this.B+=1),b=!this.policy.X,b=Uz(xT(this),this.policy,b)*this.policy.ao,(b=a>1E3*b)&&this.Z());this.B&&this.callback&&this.callback(this,this.state);b?qua(this,!1):this.W.start()}};
g.k.dispose=function(){dT.prototype.dispose.call(this);this.W.dispose();this.policy.td||AT(this)};
g.k.Mk=function(){return this.xhr.VC()};
g.k.mE=function(){if(!this.iz().length)return[];this.L=!0;return Hta(this.i)};
g.k.Fr=function(){return 1>this.state?!1:this.i&&this.i.slices.length||this.xhr.nh()?!0:!1};
g.k.iz=function(){mua(this,!1);return this.i?this.i.slices:[]};
g.k.Qo=function(){return this.xhr.Qo()};
g.k.FA=function(){return this.X};
g.k.Z=function(){};
g.k.lE=function(){this.xhr&&(this.I=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.I};
g.k.CG=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.J};
var gua=0,nua=-1;g.v(BT,g.P);BT.prototype.clear=function(){this.l=this.J=this.B=null;this.i=this.C=this.I=this.startTimeSecs=NaN;this.u=!1};
BT.prototype.Z=function(){};g.v(DT,g.P);g.k=DT.prototype;
g.k.initialize=function(a,b,c){this.Z();a=a||0;this.V("videoformatchange",ata(this.l));if(this.i.isManifestless){if(this.policy.Qj){b=Ay(this.policy);for(var d in this.i.i)this.i.i.hasOwnProperty(d)&&(this.i.i[d].index.l=b)}Cua(this)}this.C&&sua(this.C,this.videoTrack.i);this.policy.Ma&&ay()&&this.Vc("streaming","ac."+!!window.AbortController,!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.i.isManifestless?d:a;Aua(this)?(Bua(this,this.videoTrack,this.videoTrack.i),Bua(this,
this.audioTrack,this.audioTrack.i)):c?(this.policy.Wc?(this.tb=c,IT(this,c)):IT(this,!1),g.cn(this.Ya)):(a=0===this.currentTime,ET(this,this.videoTrack,this.videoTrack.i,a),ET(this,this.audioTrack,this.audioTrack.i,a),g.um(this.seek(this.currentTime),function(){}),this.timing.Za());
(this.i.ze||this.i.Sg)&&this.Vc("minMaxSq","minSq."+this.i.ze+";maxSq."+this.i.Sg+";minDvrTime."+this.i.C+";maxDvrTime."+this.i.J)};
g.k.resume=function(){if(this.isSuspended||this.ra)this.Z(),this.Ma=this.ra=this.isSuspended=!1,this.Hh()};
g.k.setAudioTrack=function(a){if(!this.Ha()){var b=this.l;b.u=b.C.i[a.id];b.L=b.u;a=new IS(b.L,b.i,"m");this.Z();this.V("audioformatchange",a);this.V("reattachrequired")}};
g.k.setPlaybackRate=function(a){a!==this.I.getPlaybackRate()&&this.I.setPlaybackRate(a)};
g.k.Hh=function(){MT(this);if(this.mediaSource&&QB(this.mediaSource)&&!this.mediaSource.Qg()){var a=jT(this.videoTrack);a=this.policy.Wn&&a&&a.u;this.i.isManifestless&&this.i.I&&pC(this.i)?(this.J=pC(this.i),RB(this.mediaSource,this.J)):this.i.isLive&&!a?isNaN(this.J)?(this.J=this.currentTime+3600,RB(this.mediaSource,this.J)):this.J<=this.currentTime+1800&&(this.J=Math.max(this.J+1800,this.currentTime+3600),RB(this.mediaSource,this.J)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.J)||this.J!==a)&&0<a&&(RB(this.mediaSource,a),this.J=a))}if(!this.Ha())if(oC(this.i)&&this.i.isFailed())LT(this,!0,"manifest.net.retryexhausted",{rc:this.i.X.toString()});else if(!this.i.u||!Wta(this.videoTrack)&&!Wta(this.audioTrack)||(this.videoTrack.C||this.audioTrack.C)&&this.policy.Ya?a=!1:(JT(this),this.V("seekplayerrequired",Infinity),a=!0),!a&&(MT(this),lT(this.videoTrack),!this.Ha()&&(lT(this.audioTrack),!this.Ha()))){this.i.isManifestless&&
(Xta(this.videoTrack),Xta(this.audioTrack),Osa(this.B),(a=this.videoTrack.Vg())&&a.l&&(a=a.l.C&&!this.policy.Bl,this.Vc(a===this.policy.B.pg?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.policy.B.pg?"1":"0")+";dfs."+(this.policy.Bl?"1":"0"),!0)));if(this.mediaSource)RT(this);else if(this.policy.i){(a=this.videoTrack.Vg())&&this.videoTrack.Pi(a);var b=this.audioTrack.Vg();b&&this.audioTrack.Pi(b);nT(this.videoTrack)&&nT(this.audioTrack)?this.Z():(a||b)&&g.cn(this.W)}HT(this);ET(this,this.videoTrack,
this.videoTrack.i,!1);ET(this,this.audioTrack,this.audioTrack.i,!1);a=this.audioTrack.i.C;b=this.videoTrack.i.C;if(a||b){var c="net.retryexhausted";if("fmt.unparseable"===a||"fmt.unparseable"===b)c="fmt.unparseable";LT(this,!0,c,{metadata:"1",video:this.videoTrack.i.C||"",audio:this.audioTrack.i.C||""})}else{a=this.videoTrack;var d=this.audioTrack;if((!this.mediaSource||QB(this.mediaSource)&&!this.policy.ib)&&!this.B.i&&tT(a)&&a.i.hf()&&this.l.W)a:{if(b=this.currentTime,c=this.I,d=tS(c,a.i.info.l,
d.i.info.l,0),c=eD(c.schedule)+d/hD(c.schedule),b+=Math.max(c,c+10-d/a.i.info.l),this.Z(),a.u.length){if(a.u[0].info.i[0].startTime<=b)break a;xS(a)}c=a.B;for(d=c.l.length-1;0<=d;d--)c.l[d].info.startTime>b&&c.l.pop();a.u.length?a.l=g.ab(g.ab(a.u).info.i):a.B.l.length?a.l=XS(a.B).info:a.l=jT(a);a.l&&b<a.l.startTime&&(a.ra=0,a.i.hf()?a.l=a.i.Sm(b,!0).i[0]:a.l=null)}Gua(this,this.videoTrack,this.audioTrack);Gua(this,this.audioTrack,this.videoTrack);this.policy.bp&&this.Da&&!this.isSuspended&&lD(this.schedule)&&
(Pua(this,this.Da),this.Da="");this.C&&(a=this.C,a.B?(b=a.I+a.policy.Mi,a.u||(b=Math.min(b,a.startTimeSecs+a.policy.Pc)),a=Math.max(0,1E3*b-g.Ta())):a=NaN,isNaN(a)||g.cn(this.Wb,a));g.cn(this.ub)}}};
g.k.CL=function(a){if(this.policy.Ad&&this.mediaSource){var b=a===this.mediaSource.i,c=a.qw();c&&(!c.Ab||c.Zd)&&this.Vc("sbu",a.Eb({a:""+ +b}))}this.Hh()};
g.k.JP=function(a){if(this.mediaSource){var b=jT(a===this.mediaSource.i?this.audioTrack:this.videoTrack);a=void 0;b&&(a=lA(b));b=Tsa(this.Tb,function(c){return lA(c)});
LT(this,!0,"fmt.unplayable",Object.assign(b,a))}};
g.k.MQ=function(a){LT(this,!0,"fmt.unparseable",a)};
g.k.nP=function(a){this.V("needkeyinfo",a)};
g.k.LQ=function(a){LT(this,!1,"qoe.avsync",a)};
g.k.NQ=function(a){this.V("localmediachange",new NE(this.policy.i,a,{isHeadless:this.policy.jk}))};
g.k.seek=function(a){if(this.Ha())return om();if(this.videoTrack.J||this.audioTrack.J)return this.policy.Rp?nm():om("seeking to head");MT(this);this.Sa=(0,g.N)();HT(this,a);this.mediaSource&&this.mediaSource.i&&this.mediaSource.l&&(this.mediaSource.i.isLocked()||this.mediaSource.l.isLocked())&&this.V("reattachrequired");this.currentTime=this.B.seek(a);Rsa(this.u,a);g.cn(this.W);return nm(this.currentTime)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.oa=function(){this.u.unsubscribe("ctmp",this.Vc,this);KT(this);xS(this.audioTrack);xS(this.videoTrack);g.P.prototype.oa.call(this)};
g.k.Z=function(){};
g.k.Eb=function(){var a=jT(this.audioTrack),b=jT(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.B.i,lmf:PS(this.l),lbw:gD(this.schedule).toFixed(3),lhd:eD(this.schedule).toFixed(3),lst:(1E9*(this.schedule.i.Ng()||0)).toFixed(3),laa:a?fA(a):"",lva:b?fA(b):"",lar:this.audioTrack.l?fA(this.audioTrack.l):"",lvr:this.videoTrack.l?fA(this.videoTrack.l):"",laq:""+oT(this.audioTrack),lvq:""+oT(this.videoTrack)};this.mediaSource&&!UB(this.mediaSource)&&this.mediaSource.i&&this.mediaSource.l&&
(a.lab=BB(this.mediaSource.i.wf()),a.lvb=BB(this.mediaSource.l.wf()));return a};
g.k.Vc=function(a,b,c){this.V("ctmp",a,b,void 0===c?!1:c)};
var Fua=2/24;TT.prototype.GA=function(a,b,c){return this.i.GA(a,b,c)};
TT.prototype.XA=function(a){this.i.XA(a)};
TT.prototype.skipAd=function(a,b){this.i.skipAd(a,b)};
TT.prototype.fC=function(a,b,c,d){this.i.fC(a,b,c,d)};g.v(UT,g.P);g.v(VT,UT);VT.prototype.I=function(a,b){if(a&&b){var c=1*Number(Md(a,"cpi"))+1;isNaN(c)||0>=c||c<this.u?(this.B.stop(),this.l.stop(),this.u=-1,this.i={}):(c>this.u&&(this.u=c,g.Qb(this.i)||(this.i={},this.B.stop(),this.l.stop())),this.i[b]=a,g.cn(this.l))}};
VT.prototype.C=function(){for(var a=g.q(Object.keys(this.i)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.V;for(var d=this.u,e=this.i[c].match(vd),f=[],h=g.q(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="+ld(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 TS(d,"fairplay",!0))}this.i={}};var B0={},bva=(B0.DRM_TRACK_TYPE_AUDIO="AUDIO",B0.DRM_TRACK_TYPE_SD="SD",B0.DRM_TRACK_TYPE_HD="HD",B0.DRM_TRACK_TYPE_UHD1="UHD1",B0);g.v(WT,g.F);WT.prototype.Z=function(){};g.v(ZT,g.P);g.k=ZT.prototype;g.k.error=function(a,b,c,d){this.Ha()||(this.V("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.J)/1E3,this.J=NaN,this.V("ctmp","provf",""+a.toFixed(3))));b&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Aa&&this.L?!1:!a&&this.requestNumber===b.requestNumber};
g.k.oa=function(){g.P.prototype.oa.call(this)};
g.k.Eb=function(){var a={requestedKeyIds:this.Ca,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.i);return a};
g.k.Uf=function(){var a=this.I.join();if($T(this)){var b=[],c;for(c in this.i)"usable"!==this.i[c].status&&b.push(this.i[c].type);a+="/UKS."+b}return a+="/"+this.cryptoPeriodIndex};
g.k.Z=function(){};
var C0={},rva=(C0.widevine="DRM_SYSTEM_WIDEVINE",C0.fairplay="DRM_SYSTEM_FAIRPLAY",C0.playready="DRM_SYSTEM_PLAYREADY",C0);g.v(aU,g.F);g.k=aU.prototype;g.k.DL=function(a){if(this.C){var b=a.messageType||"license-request";this.C(new Uint8Array(a.message),b)}};
g.k.EL=function(){this.J&&this.J(this.i.keyStatuses)};
g.k.JI=function(a){this.C&&this.C(a.message,"license-request")};
g.k.II=function(a){if(this.u){if(this.l){var b=this.l.error.code;a=this.l.error.systemCode}else b=a.errorCode,a=a.systemCode;this.u("t.prefixedKeyError;c."+b+";sc."+a)}};
g.k.HI=function(){this.I&&this.I()};
g.k.update=function(a){var b=this;if(this.i)return this.i.update(a).then(null,yo(function(c){zva(b,"t.update",c)}));
this.l?this.l.update(a):this.element.addKey?this.element.addKey(this.L.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.L.keySystem,a,this.initData,this.sessionId);return Kt()};
g.k.oa=function(){this.i&&this.i.close();this.element=null;g.F.prototype.oa.call(this)};g.v(bU,g.F);g.k=bU.prototype;g.k.setServerCertificate=function(){return"widevine"===this.i.flavor&&this.i.B&&this.l.setServerCertificate?this.l.setServerCertificate(this.i.B):null};
g.k.createSession=function(a,b){var c=a.initData;if(this.i.keySystemAccess){b&&b("createsession");var d=this.l.createSession();LC(this.i)&&(c=Bva(c,this.i.l));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new aU(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},yo(function(f){zva(e,"t.generateRequest",f)}));
return e}if(HC(this.i))return Dva(this,c);if(KC(this.i))return Cva(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.i.keySystem,c):this.element.webkitGenerateKeyRequest(this.i.keySystem,c);return this.B=new aU(this.element,this.i,c,null,null)};
g.k.HL=function(a){var b=dU(this,a);b&&b.JI(a)};
g.k.GL=function(a){var b=dU(this,a);b&&b.II(a)};
g.k.FL=function(a){var b=dU(this,a);b&&b.HI(a)};
g.k.getMetrics=function(){if(this.l&&this.l.getMetrics)try{var a=this.l.getMetrics()}catch(b){}return a};
g.k.oa=function(){g.F.prototype.oa.call(this);delete this.element};g.v(eU,g.F);
eU.prototype.init=function(){return g.C(this,function b(){var c=this,d,e;return g.z(b,function(f){if(1==f.i)return g.dg(c.i,{position:"absolute",width:"1px",height:"1px",display:"block"}),c.i.src=c.u.C,document.body.appendChild(c.i),c.B.N(c.i,"encrypted",c.I),d=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.w(f,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",d),2);e=f.l;c.u.keySystemAccess=
e;c.l=new bU(c.i,c.u);g.H(c,c.l);cU(c.l);f.i=0})})};
eU.prototype.I=function(a){var b=this;if(!this.Ha()){var c=new Uint8Array(a.initData);a=new TS(c,a.initDataType);var d=Uua(c).replace("skd://","https://"),e={},f=this.l.createSession(a,function(){b.Z()});
f&&(g.H(this,f),this.C.push(f),eva(f,function(h){xva(h,f.i,d,e,"fairplay")},function(){b.Z()},function(){},function(){}))}};
eU.prototype.Z=function(){};
eU.prototype.oa=function(){this.C=[];this.i&&this.i.parentNode&&this.i.parentNode.removeChild(this.i);g.F.prototype.oa.call(this)};g.v(fU,UT);fU.prototype.C=function(a){var b=(0,g.N)(),c;if(!(c=this.B)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c))for(var d=g.q(this.u.values),e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}c=!1}c=!c}c?c=0:(c=a.i,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.i.push({time:b+c,info:a});g.cn(this.l,c)};gU.prototype.get=function(a){a=hU(this,a);return-1!==a?this.values[a]:null};
gU.prototype.remove=function(a){a=hU(this,a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
gU.prototype.set=function(a,b){var c=hU(this,a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};g.v(jU,g.P);g.k=jU.prototype;g.k.IL=function(a){iU(this,"onecpt");a.initData&&Hva(this,new Uint8Array(a.initData),a.initDataType)};
g.k.UQ=function(a){iU(this,"onndky");Hva(this,a.initData,a.contentType)};
g.k.tF=function(a){this.B.push(a);lU(this)};
g.k.createSession=function(a){this.l.get(a.initData);this.va=!0;var b=new ZT(this.videoData,this.u,a,this.drmSessionId);this.l.set(a.initData,b);b.subscribe("ctmp",this.dI,this);b.subscribe("hdentitled",this.rI,this);b.subscribe("keystatuseschange",this.nE,this);b.subscribe("licenseerror",this.oE,this);b.subscribe("newlicense",this.BI,this);b.subscribe("newsession",this.DI,this);b.subscribe("sessionready",this.SI,this);b.subscribe("fairplay_next_need_key_info",this.oI,this);hva(b,this.C)};
g.k.BI=function(a){this.Ha()||(this.Z(),iU(this,"onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.V("heartbeatparams",a)))};
g.k.DI=function(){this.Ha()||(this.Z(),iU(this,"newlcssn"),this.B.shift(),this.va=!1,lU(this))};
g.k.SI=function(){if(HC(this.i)&&(this.Z(),iU(this,"onsnrdy"),this.Ra--,0===this.Ra)){var a=this.Y;a.element.msSetMediaKeys(a.u)}};
g.k.nE=function(a){this.Ha()||(!this.Ga&&this.videoData.ea("html5_log_drm_metrics_on_key_statuses")&&(Mva(this),this.Ga=!0),this.Z(),iU(this,"onksch"),Lva(this,tva(a,this.Aa)),this.V("keystatuseschange",a))};
g.k.rI=function(){this.Ha()||this.Ca||!JC(this.i)||(this.Z(),iU(this,"onhdet"),this.Ma=Cya,this.V("hdproberequired"),this.V("qualitychange"))};
g.k.dI=function(a,b){this.Ha()||this.V("ctmp",a,b)};
g.k.oI=function(a,b){this.Ha()||this.V("fairplay_next_need_key_info",a,b)};
g.k.oE=function(a,b,c,d){this.Ha()||(this.videoData.ea("html5_log_drm_metrics_on_error")&&Mva(this),this.V("licenseerror",a,b,c,d))};
g.k.oa=function(){this.i.keySystemAccess&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.q(this.l.values),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.dI,this),b.unsubscribe("hdentitled",this.rI,this),b.unsubscribe("keystatuseschange",this.nE,this),b.unsubscribe("licenseerror",this.oE,this),b.unsubscribe("newlicense",this.BI,this),b.unsubscribe("newsession",this.DI,this),b.unsubscribe("sessionready",this.SI,this),b.unsubscribe("fairplay_next_need_key_info",
this.oI,this),b.dispose();a=this.l;a.keys=[];a.values=[];g.P.prototype.oa.call(this)};
g.k.Eb=function(){for(var a={systemInfo:this.i.Eb(),sessions:[]},b=g.q(this.l.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Eb());return a};
g.k.Uf=function(){return 0>=this.l.values.length?"no session":this.l.values[0].Uf()+(this.I?"/KR":"")};
g.k.Z=function(){};g.v(nU,g.P);
nU.prototype.handleError=function(a,b){var c=this;Qva(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!qU(this,a.errorCode,a.details))&&!Tva(this,a,b))if(Rva(a)&&this.videoData.u&&this.videoData.u.l)oU(this,a.errorCode,a.details),rU(this,"highrepfallback","1",{QC:!0}),!this.videoData.ea("html5_hr_logging_killswitch")&&/^hr/.test(this.videoData.clientPlaybackNonce)&&btoa&&rU(this,"afmts",btoa(this.videoData.adaptiveFormats),{QC:!0}),
gia(this.videoData),this.V("highrepfallback");else if(a.i){b=this.l?this.l.l.l:null;if(Rva(a)&&b&&b.isLocked())var d="FORMAT_UNAVAILABLE";else if(!this.i.I&&"auth"===a.errorCode&&"429"===a.details.rc){d="TOO_MANY_REQUESTS";var e="6"}this.V("playererror",a.errorCode,d,g.KB(a.details),e)}else d=/^pp/.test(this.videoData.clientPlaybackNonce),oU(this,a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+
(0,g.N)(),(new vT(a,"manifest",function(f){c.W=!0;rU(c,"pathprobe",f)},function(f){oU(c,f.errorCode,f.details)})).send())};
nU.prototype.oa=function(){this.u=this.l=null;g.P.prototype.oa.call(this)};
nU.prototype.Z=function(){};sU.prototype.setPlaybackRate=function(a){this.playbackRate=a};
sU.prototype.ea=function(a){return g.S(this.i.experiments,a)};g.v(vU,g.F);vU.prototype.wc=function(a){kwa(this);this.playerState=a.state;0<=this.l&&g.fI(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
vU.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(iFa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
vU.prototype.send=function(){if(!(this.u||0>this.i)){kwa(this);var a=g.tR(this.provider)-this.i,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");var d=LG(this.provider.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=lwa(this.provider);var e=0>this.l?a:this.l-this.i;a=this.provider.i.ib+36E5<(0,g.N)();b={started:0<=this.l,stateAtSend:b,
joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.IG(this.provider.videoData),isGapless:this.provider.videoData.Ra};!a&&this.provider.ea("html5_health_to_gel")&&g.Qr("html5PlayerHealthEvent",b);this.provider.ea("html5_health_to_qoe")&&(b.muted=a,this.I(g.KB(b)));this.u=!0;
this.dispose()}};
vU.prototype.oa=function(){this.u||this.send();g.F.prototype.oa.call(this)};
var iFa=/\bnet\b/;g.v(g.zU,g.F);g.k=g.zU.prototype;g.k.vO=function(){var a=g.tR(this.provider);AU(this,a)};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.Ha()&&(a=0<=a?a:g.tR(this.provider),-1<["PL","B","S"].indexOf(this.od)&&(!g.Qb(this.i)||a>=this.u+30)&&(g.yU(this,a,"vps",[this.od]),this.u=a),!g.Qb(this.i)))if(7E3===this.sequenceNumber&&g.qt(Error("Sent over 7000 pings")),7E3<=this.sequenceNumber)this.i={};else{BU(this,a);var b=a,c=this.provider.l.It(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Ya,h=e&&!this.tb;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount",
"df."+d+";tf."+c.totalVideoFrames);else(0<f||h)&&g.yU(this,b,"df",[f]);this.Ya=d;this.tb=e;!g.S(this.provider.i.experiments,"disable_webgl_reporting")&&0<this.I&&(g.yU(this,a,"glf",[this.I]),this.I=0);a={event:"streamingstats"};this.provider.videoData.l&&(a.fmt=this.provider.videoData.l.yc(),(b=this.provider.videoData.J)&&b.yc()!==a.fmt&&(a.afmt=b.yc()));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.J&&(a.addocid=this.J);a.ei=this.provider.videoData.eventId;
a.el=$G(this.provider.videoData);a.docid=this.provider.videoData.videoId;a.content_v=aH(this.provider.videoData);a.ns=this.provider.i.Y;a.fexp=this.provider.i.experiments.experimentIds.toString();a.cl=(365664078).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=LG(this.provider.videoData))&&(a.live=b);tG(this.provider.videoData)&&(a.drm=1);Mp()&&this.provider.videoData.Sa&&(a.ctt=this.provider.videoData.Sa,a.cttype=this.provider.videoData.Zh,this.provider.videoData.mdxEnvironment&&
(a.mdx_environment=this.provider.videoData.mdxEnvironment));a.seq=this.sequenceNumber++;g.Xb(a,this.provider.i.deviceParams);a=g.Id("//"+this.provider.i.Qj+"/api/stats/qoe",a);b=c="";d=g.q(Object.keys(this.i));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.i[e]?g.qt(new g.Zr("Stats report key has invalid value",e)):(e="&"+e+"="+this.i[e].join(","),100<e.length?b+=e:c+=e);a+=c;d=b.replace(/ /g,"%20");f=g.dH(this.provider.videoData);e=g.S(this.provider.i.experiments,"qoe_with_networkless");
b=g.S(this.provider.i.experiments,"qoe_send_then_write");c=g.S(this.provider.i.experiments,"qoe_send_and_write");h=this.provider.ea("web_player_vss_pageid_header")?this.provider.i.pageId:void 0;(f=wU(a,h,this.provider.i.sendVisitorIdHeader?this.provider.videoData.visitorData:void 0,f))?(f.method="POST",f.postBody=d,xU(a,f,{token:this.provider.videoData.Sa,dD:this.provider.videoData.Zh,mdxEnvironment:this.provider.videoData.mdxEnvironment},void 0,e,b,c&&this.ra)):e?(d={method:"POST",postBody:d},c&&
this.ra?ht(a,d):b?gt(a,d):ft(a,d)):uq(a,void 0,d);this.i={}}};
g.k.MJ=function(){if(this.provider.videoData.I){var a=this.provider.videoData.I;DU(this,"drm-"+a.flavor);DU(this,"eme-"+(a.keySystemAccess?"final":HC(a)?"ms":LC(a)?"ytfp":KC(a)?"safarifp":"nonfinal"))}};
g.k.onError=function(a,b){var c=g.tR(this.provider);rwa(this,c,a,b);BU(this,c);CU(this)};
g.k.wc=function(a){var b=a.state,c=g.tR(this.provider);a=this.getPlayerState(a.state);if(a!==this.od){if(!(c<this.u)){if("PL"===this.od)this.playTimeSecs+=c-this.u;else if("B"===this.od&&this.Y){this.Y=!1;var d=g.T(this.provider.i.experiments,"html5_disable_last_state_change")?this.u:this.Ma;this.rebufferTimeSecs+=c-d;!this.Da&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.provider.l.mu(),this.i.qoealert=["1"],this.Da=!0)}"B"!==a||"PL"!==this.od&&"PB"!==this.od||(this.Y=!0);this.u=c}"PL"===
this.od&&("B"===a||"S"===a)||this.provider.videoData.Tb?BU(this,c):AU(this,c);"PL"===a&&g.cn(this.Tb);g.yU(this,c,"vps",[a]);this.od=a;this.u=this.Ma=c;this.W=!0}a=b.getData();g.V(b,128)&&a&&rwa(this,c,a.errorCode,a.vJ);(g.V(b,2)||g.V(b,128))&&this.reportStats(c);b.pc()&&!this.B&&(0<=this.l&&(this.i.user_intent=[this.l.toString()]),this.B=!0);CU(this)};
g.k.wj=ba(13);g.k.getPlayerState=function(a){if(g.V(a,128))return"ER";if(g.V(a,512))return"SU";if(g.V(a,16)||g.V(a,32))return"S";var b=jFa[hJ(a)];g.SD(this.provider.i)&&"B"===b&&3===this.provider.l.getVisibilityState()&&(b="SU");"B"===b&&g.V(a,4)&&(b="PB");return b};
g.k.oa=function(){g.F.prototype.oa.call(this);window.clearInterval(this.Ra)};
g.k.Ua=function(a,b,c){var d=this.i.ctmp||[],e=-1!==this.Wb.indexOf(a);e||this.Wb.push(a);if(!c||!e){/[^a-zA-Z0-9;.!_-]/.test(b)&&(b=b.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));if(!c&&!/^t[.]/.test(b)){var f=1E3*g.tR(this.provider);b="t."+f.toFixed()+";"+b}kFa(a,b);d.push(a+":"+b);this.i.ctmp=d;CU(this);return f}};
var kFa=g.Ka,D0={},jFa=(D0[5]="N",D0[-1]="N",D0[3]="B",D0[0]="EN",D0[2]="PA",D0[1]="PL",D0);uwa.prototype.update=function(){if(this.J){var a=this.provider.l.getCurrentTime()||0,b=g.tR(this.provider);if(a!==this.i||zwa(this,a,b)){var c;if(!(c=a<this.i||a-this.i>b-this.lastUpdateTime+2||zwa(this,a,b))){var d=this.provider.df();c=d.volume;var e=c!==this.W;d=d.muted;d!==this.L?(this.L=d,c=!0):(!e||0<=this.B||(this.W=c,this.B=b),c=b-this.B,0<=this.B&&2<c?(this.B=-1,c=!0):c=!1)}c&&(GU(this),this.l=a);this.lastUpdateTime=b;this.i=a}}};HU.prototype.send=function(a){if(!this.Aa){var b=JU(this);b=g.Id(this.uri,b);if(this.tb)this.Sa&&(a=IU(this)||{},a.method="POST",a.postParams={atr:this.Sa},this.W?this.X?gt(b,a):ft(b,a):g.Yp(b,a));else{var c=IU(this,a);xU(b,c,{token:this.J,dD:this.Xa,mdxEnvironment:this.mdxEnvironment},a,this.W,this.X,this.isFinal&&this.Ih)}this.Aa=!0}};
HU.prototype.l=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var E0={},Bwa=(E0.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,E0.LIVING_ROOM_APP_MODE_MAIN=1,E0.LIVING_ROOM_APP_MODE_KIDS=2,E0.LIVING_ROOM_APP_MODE_MUSIC=3,E0.LIVING_ROOM_APP_MODE_UNPLUGGED=4,E0.LIVING_ROOM_APP_MODE_GAMING=5,E0);g.v(LU,g.F);g.k=LU.prototype;g.k.Fe=function(){this.i.update();if(this.provider.videoData.xd()&&this.provider.videoData.Wb&&this.u&&!this.X&&vwa(this.i)>=this.provider.videoData.Wb){if(this.u&&this.provider.videoData.Wb){var a=MU(this,"delayplay");a.kd=!0;a.send();this.X=!0}Dwa(this)}};
g.k.wc=function(a){this.Ha()||(g.V(a.state,2)?(this.currentPlayerState="paused",g.fI(a,2)&&this.u&&QU(this).send()):g.V(a.state,8)?(this.currentPlayerState="playing",this.u&&isNaN(this.l)&&NU(this,!1)):this.currentPlayerState="paused",this.C&&g.V(a.state,128)&&(PU(this,"error-100"),g.Co(this.C)))};
g.k.oa=function(){g.F.prototype.oa.call(this);g.Co(this.l);this.l=NaN;xwa(this.i);g.Co(this.C)};
g.k.Eb=function(){return JU(MU(this,"playback"))};
g.k.jh=function(a){var b=MU(this,"engage");b.L=a;return Awa(b,Kwa(this.provider))};Jwa.prototype.isEmpty=function(){return this.endTime===this.startTime};RU.prototype.ea=function(a){return g.S(this.i.experiments,a)};
var Lwa={other:1,none:2,wifi:3,cellular:7};g.v(g.SU,g.F);g.k=g.SU.prototype;g.k.wc=function(a){var b;if(g.fI(a,1024)||g.fI(a,2048)||g.fI(a,512)||g.fI(a,4)){if(this.l){var c=this.l;0<=c.l||(c.i=-1,c.delay.stop())}this.qoe&&(c=this.qoe,c.B||(c.l=-1))}this.provider.videoData.enableServerStitchedDai&&this.vg?null===(b=this.u.get(this.vg))||void 0===b?void 0:b.wc(a):this.i&&this.i.wc(a);this.qoe&&this.qoe.wc(a);this.l&&this.l.wc(a)};
g.k.Fe=function(){var a;this.provider.videoData.enableServerStitchedDai&&this.vg?null===(a=this.u.get(this.vg))||void 0===a?void 0:a.Fe():this.i&&this.i.Fe()};
g.k.onError=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.l)this.l.onError(a)};
g.k.Ua=function(a,b,c){this.qoe&&this.qoe.Ua(a,b,c)};
g.k.wj=ba(12);g.k.Eb=function(){var a;if(this.provider.videoData.enableServerStitchedDai&&this.vg)null===(a=this.u.get(this.vg))||void 0===a?void 0:a.Eb();else if(this.i)return this.i.Eb();return{}};
g.k.jh=function(a){return this.i?this.i.jh(a):function(){}};g.v(TU,g.F);g.k=TU.prototype;g.k.Td=function(a){this.bl();var b=this.i;if(1<a.length&&a.length>b.i.length)b.i=b.i.concat(a),b.i.sort(b.l);else{a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.i.length||0<b.l(c,b.i[b.i.length-1])?b.i.push(c):g.yb(b.i,c,b.l)}this.u=NaN;this.bl()};
g.k.Eg=function(a){1E4<a.length&&g.qt(new g.Zr("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.Ha()){var b=new Set(a);this.l=this.l.filter(function(c){return!b.has(c)});
Ywa(this.i,b);this.bl()}};
g.k.reset=function(){this.started=!1;this.B.stop();this.i.i=[];this.l=[];this.bl()};
g.k.Df=function(a){var b=ST(this).filter(function(c){return c.namespace===a});
this.Eg(b);return b};
g.k.wc=function(a){this.started&&(this.bl(),g.V(a.xn,16)&&(a=Xwa(this.i,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.B.start()))};
g.k.vA=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.l.indexOf(d)&&(this.l.push(d),b.push([1,d]))}return b};
g.k.AA=function(a){var b=[];if(!a.length)return b;a.sort(g.rw);a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.l.splice(this.l.indexOf(c),1),b.push([2,c]);return b};
g.k.bl=function(){this.C=!0;if(!this.I){for(var a=3;this.C&&a;)this.C=!1,this.I=!0,this.jH(),this.I=!1,a--;this.J().pc()&&(a=Xwa(this.i,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.Y(),this.B.start(a)))}};
g.k.jH=function(){if(this.started&&!this.Ha()){this.B.stop();var a=this.J();g.V(a,32)&&this.W.start();for(var b=g.V(this.J(),2)?0x8000000000000:1E3*this.X(),c=g.V(a,2),d=[],e=[],f=g.q(this.l),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.AA(e));f=e=null;c?(a=Vwa(this.i,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=Wwa(this.i)):a=this.u<=b&&fJ(a)?Uwa(this.i,this.u,b):Vwa(this.i,b);
d=d.concat(this.vA(a));e&&(d=d.concat(this.AA(e)));f&&(d=d.concat(this.vA(f)));this.u=b;Zwa(this,d)}};
g.k.oa=function(){this.l=[];this.i.i=[];g.F.prototype.oa.call(this)};
g.mR.Mw(TU,{Td:"crmacr",vA:"crmncr",AA:"crmxcr",jH:"crmis",Eg:"crmrcr"});g.v(XU,g.P);XU.prototype.Z=function(){};g.v(cV,g.F);cV.prototype.wc=function(a){this.playerState=a.state};
cV.prototype.W=function(){var a=this;if(this.B&&!this.playerState.isError()){var b=this.B,c=b.getCurrentTime(),d=8===this.playerState.state&&c>this.i,e=Vja(this.playerState),f=this.visibility.isBackground()||this.playerState.isSuspended();dV(this,this.Da,e&&!f,d,"qoe.slowseek",function(){},"timeout");
e=e&&isFinite(this.i)&&0<this.i&&Tja(b,this.i);var h=!c||10<Math.abs(c-this.i);dV(this,this.Ga,e&&h&&!f,d,"qoe.slowseek",function(){b.seekTo(a.i)},"set_cmt");
e=e&&DB(b.Mg(),this.i);var l=!this.l||!this.l.policy.Da;h=function(){b.seekTo(a.i+.001)};
dV(this,this.Ca,e&&l&&!f,d,"qoe.slowseek",h,"jiggle_cmt");l=function(){return a.V("newmediaelementrequired")};
dV(this,this.Aa,e&&!f,d,"qoe.slowseek",l,"new_elem");d=fJ(this.playerState);e=g.gJ(this.playerState);var m=d&&e&&DB(b.Mg(),c+5);dV(this,this.Y,m&&!f,d&&!e,"qoe.longrebuffer",h,"jiggle_cmt");dV(this,this.ra,m&&!f,d&&!e,"qoe.longrebuffer",l,"new_elem_nnr");if(this.l){var n=this.l.getCurrentTime();h=b.Wo();h=wga(h,n);h=!this.l.B.i&&c===h;dV(this,this.Ra,d&&e&&h&&!f,d&&!e&&!h,"qoe.longrebuffer",function(){b.seekTo(n)},"seek_to_loader")}dV(this,this.va,d&&e&&!f,d&&!e,"qoe.longrebuffer",function(){},"timeout");
f=this.playerState.isSuspended();f=this.L()&&!f;dV(this,this.X,f,!f,"qoe.start15s",function(){return a.V("releaseadsprerolllock")},"ads_preroll_timeout");
f=.5>c-this.J;f=this.videoData.isAd()&&d&&!e&&f;dV(this,this.Ma,f,!f,"ad.rebuftimeout",function(){return a.V("skipslowad")},"skip_slow_ad");
this.J=c;this.C.start()}};
cV.prototype.Gd=function(a,b,c){b=this.Eb(b);b.wn=c;b.wdup=this.I[a]?"1":"0";this.V("qoeerror",a,b);this.I[a]=!0};
cV.prototype.Eb=function(a){a=a.Eb();this.i&&(a.stt=this.i.toFixed(3));this.l&&Object.assign(a,this.l.Eb());this.B&&Object.assign(a,this.B.Eb());return a};
aV.prototype.reset=function(){this.i=this.l=this.u=this.startTimestamp=0;this.B=!1};
aV.prototype.Eb=function(){var a={},b=(0,g.N)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.l&&(a.wtd=(b-this.l).toFixed());this.i&&(a.wssd=(b-this.i).toFixed());return a};g.v(fV,g.P);g.k=fV.prototype;g.k.Oi=function(a){hV(this);this.videoData=a;this.W=this.u=null;this.C=this.Sa=this.timestampOffset=0;this.Ma=!0;this.L.dispose();a=this.L=new cV(this.X,this.videoData,(0,g.B)(this.V,this),this.visibility,this.ib);var b=this.i;(a.B=b)&&g.cn(a.C);this.L.l=this.B};
g.k.wc=function(a){this.L.wc(a);this.ea("html5_exponential_memory_for_sticky")&&(a.state.pc()?g.cn(this.Ca):this.Ca.stop());var b;if(b=this.i)b=8===a.xn.state&&fJ(a.state)&&g.gJ(a.state)&&this.policy.u;if(b){a=this.i.getCurrentTime();b=this.i.Mg();var c=this.ea("manifestless_post_live_ufph")||this.ea("manifestless_post_live")?CB(b,Math.max(a-3.5,0)):CB(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.tb-c)||(this.V("ctmp","seekover","b."+BB(b,
"_")+";cmt."+a),this.tb=c,this.seekTo(c,{Nt:!0})))}};
g.k.getCurrentTime=function(){return!isNaN(this.l)&&isFinite(this.l)?this.l:this.i&&sxa(this)?this.i.getCurrentTime()+this.timestampOffset:this.C||0};
g.k.Gl=function(){return this.getCurrentTime()-this.Lc()};
g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return $U(this.u,a)};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.kK?!1:c.kK;var d=void 0===c.lK?0:c.lK,e=void 0===c.Nt?!1:c.Nt;c=void 0===c.eD?0:c.eD;var f=a,h=!isFinite(f)||(this.u?$U(this.u,f):f>=gV(this))||!g.QG(this.videoData);h||this.V("ctmp","seeknotallowed",f+";"+gV(this));if(!h)return this.I&&(this.I=null,nV(this)),nm(this.getCurrentTime());this.Z();if(a===this.l&&this.ra)return this.Z(),this.J;this.ra&&hV(this);this.J||(this.J=new kR);a&&!isFinite(a)&&jV(this,!1);f=a;(mV(this)&&!(this.i&&0<this.i.Gh()&&
0<VI(this.i))||AG(this.videoData)&&this.fd()===gV(this,!1)?0:isFinite(f)||!AG(this.videoData))&&(a=rxa(this,a,e));a&&!isFinite(a)&&jV(this,!1);this.C=a;this.Ra=c;this.l=a;this.u&&(e=this.u,c=a,gxa(e,c,!1),hxa(e,c));this.V("seekto",a,!b);this.J&&(b?d&&this.Ya.start(d):(this.Z(),this.ra=!0,lxa(this)));return this.J};
g.k.fd=function(){return this.videoData?this.videoData.fd()+this.timestampOffset:this.timestampOffset};
g.k.oa=function(){kV(this,null);this.L.dispose();g.P.prototype.oa.call(this)};
g.k.dT=function(a,b){b=void 0===b?!1:b;this.seekTo(a+this.Lc(),{Nt:b})};
g.k.Eb=function(){var a={};this.B&&Object.assign(a,this.B.Eb());this.i&&Object.assign(a,this.i.Eb());return a};
g.k.Nr=function(a){this.timestampOffset=a};
g.k.KL=function(a){this.Sa=a};
g.k.getStreamTimeOffset=function(){return AG(this.videoData)?this.Sa:this.videoData.i?this.videoData.i.getStreamTimeOffset():0};
g.k.Lc=function(){return this.timestampOffset};
g.k.Vf=function(a){return this.videoData.i.Vf(a-this.timestampOffset)};
g.k.JL=function(a){this.W&&(this.W.i=a.audio.index)};
g.k.ea=function(a){return this.X&&g.S(this.X.experiments,a)};
g.k.Z=function(){};oV.prototype.isFinished=function(){return this.i};
oV.prototype.start=function(){this.started=!0};
oV.prototype.reset=function(){this.i=this.started=!1};pV.prototype.fetch=function(a,b){var c=this,d;if(null===(d=this.l)||void 0===d?0:d.B(a,b))return nm(this.l.u(a,b).catch(function(f){g.qt(f)}));
if(this.i){var e=ud(g.wd(5,Nd(a,"key")))||"/UNKNOWN_PATH";this.i.start(e)}return new jm(function(f){var h,l,m=new XMLHttpRequest;m.onerror=function(){var t,u;if(null===(t=c.l)||void 0===t?0:t.i(a,b)){var x=c.l.l(a,b);null===(u=c.i)||void 0===u?void 0:u.success();f(x)}else f(c.Zo(a,m.status,m.response))};
m.onload=function(){f(c.Zo(a,m.status,m.response))};
m.open(null!==(h=b.method)&&void 0!==h?h:"GET",a,!0);m.responseType="text";m.withCredentials=!0;if(b.headers)for(var n=g.q(Object.entries(b.headers)),p=n.next();!p.done;p=n.next()){var r=g.q(p.value);p=r.next().value;r=r.next().value;m.setRequestHeader(p,r)}m.send(null!==(l=b.body)&&void 0!==l?l:null)})};
pV.prototype.Zo=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.qt(new g.Zr("JSON parsing failed after XHR fetch",a,b,c)),d={}}200===b?this.i&&this.i.success():(this.i&&this.i.failure(),g.qt(new g.Zr("XHR API fetch failed",a,b,c)),d=Object.assign(Object.assign({},d),{errorMetadata:{status:b}}));return d};qV.prototype.encrypt=function(a){return g.C(this,function c(){var d=this,e;return g.z(c,function(f){if(1==f.i)return g.w(f,sra(d.i.i,a,d.iv),2);e=f.l;return f.return(e)})})};
qV.prototype.decrypt=function(a,b){return g.C(this,function d(){var e=this,f;return g.z(d,function(h){if(1==h.i)return g.w(h,sra(e.i.i,a,b),2);f=h.l;return h.return(f)})})};var F0={},zxa=(F0.f="video",F0["1"]="video",F0["1h"]="video",F0.h="video",F0.H="video",F0["9"]="video",F0["("]="video",F0["9h"]="video",F0["(h"]="video",F0.o="audio",F0.O="audio",F0.a="audio",F0.ah="audio",F0.A="audio",F0.m="audio",F0.M="audio",F0.mac3="audio",F0.MAC3="audio",F0.meac3="audio",F0.MEAC3="audio",F0.so="audio",F0.sa="audio",F0["8"]="unknown",F0["*"]="unknown",F0.w="unknown",F0["3"]="unknown",F0["6"]="unknown",F0[""]="unknown",F0);Exa.prototype.decrypt=function(a){return g.C(this,function c(){var d=this,e,f,h,l;return g.z(c,function(m){switch(m.i){case 1:if(d.i.length&&!d.i[0].isEncrypted)return m.return();d.l=!0;e=new Uint8Array(16);return g.w(m,Hxa(a),2);case 2:f=m.l;case 3:if(!d.i.length||!d.i[0].isEncrypted){m.Mb(4);break}h=d.i.shift();return g.w(m,f(h.buffer,e),5);case 5:l=m.l;for(var n=0;n<e.length;n++)if(255===e[n])e[n]=0;else{e[n]+=1;break}d.u(h.streamId,l,!0);m.Mb(3);break;case 4:Fxa(d),d.l=!1,m.i=0}})})};g.v(rV,g.P);
rV.prototype.feed=function(a,b){var c=b.totalLength;this.Z();switch(a){case 10:a=EP(new BP(b),1);this.Z();c=!1;switch(a){case 5:this.V("FIRST_BYTE_RECEIVED");break;case 0:this.iv=(new yxa(b)).i.iv;break;case 16:var d=new Dxa(b),e=d.l,f=d.formatId;this.V("STREAM_METADATA",{formatId:f,startTimeMs:e.startTimeMs,endTimeMs:e.endTimeMs,numBytes:d.i,isAudio:this.i[f].isAudio});this.Z();break;case 2:break;default:c=!0}this.Ua("ombup","id.10;pt."+a+";len."+b.totalLength+(c?";ignored.1":""),!1,!0);this.l=a;
break;case 11:a=b.totalLength;this.Z();c=!1;switch(this.l){case 0:Jxa(this,b);break;case 2:this.C=!0;this.J.tick("ormk");b=MA(b);this.queue.decrypt(b);this.Z();break;default:c=!0,this.Z()}this.Ua("ombup","id.11;pt."+this.l+";len."+a+(c?";ignored.1":""),!1,!0);this.l=null;break;case 20:a=new Axa(b);c=a.formatId;d=a.isAudio;e=void 0!==this.i[c];this.u[a.i]=c;this.i[c]={hasEnded:!1,isAudio:d,numSlicesProcessing:0};this.Ua("ombup","id.20;len."+b.totalLength,!1,!0);this.Z();e||this.V("STREAM_STARTED",
{formatId:c});break;case 21:Ixa(this,b,!1);break;case 12:Ixa(this,b,!0);break;case 22:this.Ua("ombup","id.22;len."+b.totalLength,!1,!0);b=OA(b,0);b=this.u[b]||null;this.Z();b&&(a=this.i[b],a.hasEnded=!0,0===a.numSlicesProcessing&&this.V("STREAM_ENDED",{formatId:b}));break;default:this.Ua("ombup","id."+a+";len."+c+";ignored.1",!1,!0),this.Z()}};
rV.prototype.Z=function(){};sV.prototype.Qp=function(){var a=new HP;MP(a,1,this.name);MP(a,2,this.value);return NP(a)};Kxa.prototype.Qp=function(){var a=new HP;MP(a,1,this.url);for(var b=g.q(this.httpHeaders),c=b.next();!c.done;c=b.next())KP(a,2,c.value.Qp());MP(a,3,this.postBody);return NP(a)};Mxa.prototype.Qp=function(){var a=new HP;KP(a,2,this.pA);KP(a,5,this.encryptedClientKey);KP(a,6,this.iv);KP(a,7,this.hmac);var b=this.serializeResponseAsJson?1:0;JP(a,80);JP(a,b);return NP(a)};Oxa.prototype.Qp=function(){var a=new HP;KP(a,3,this.qA.Qp());null!=this.onesieUstreamerConfig&&KP(a,4,this.onesieUstreamerConfig);return NP(a)};Rxa.prototype.feed=function(a){HA(this.i,a);Sxa(this)};var G0={init:"0-1",index:"2-3",clen:"",url:"",sp:"",s:"",lmt:""},Vxa=[Object.assign({itag:"137",bitrate:"4000000",size:"1920x1080",fps:"30",type:'video/mp4; codecs="avc1.4d401e"'},G0),Object.assign({itag:"248",bitrate:"2000000",fps:"30",size:"1920x1080",type:'video/webm; codecs="vp9"'},G0),Object.assign({itag:"399",bitrate:"1000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="av01.0.08M.08"'},G0),Object.assign({itag:"299",bitrate:"5000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="avc1.64001e"'},
G0),Object.assign({itag:"303",bitrate:"3000000",fps:"60",size:"1920x1080",type:'video/webm; codecs="vp9"'},G0),Object.assign({itag:"140",type:'audio/mp4; codecs="mp4a.40.2"'},G0),Object.assign({itag:"251",audio_sample_rate:"48000",type:'audio/webm; codecs="opus"'},G0)],H0={},Txa=(H0["137"]=["136","135","134","133"],H0["248"]=["247","244","243","242"],H0["399"]=["398","397","396","395"],H0["299"]="298 137 136 135 134 133".split(" "),H0["303"]="302 248 247 244 243 242".split(" "),H0["140"]=[],H0["251"]=
[],H0),I0={},dya=(I0["133"]=22639,I0["134"]=45778,I0["135"]=73749,I0["136"]=153645,I0["137"]=332697,I0["242"]=22702,I0["243"]=42954,I0["244"]=73575,I0["247"]=139201,I0["248"]=259369,I0["298"]=260272,I0["299"]=589187,I0["302"]=295858,I0["303"]=528496,I0["395"]=18457,I0["396"]=37231,I0["397"]=65872,I0["398"]=133087,I0["399"]=236318,I0);tV.prototype.fetch=function(){return g.C(this,function b(){var c=this,d,e,f,h,l,m,n,p,r,t,u,x,y,E,D;return g.z(b,function(G){switch(G.i){case 1:return d=c,c.Z(),c.C.start(),c.i.tick("ogpd"),f=Lxa(c.playerRequest,c.u,c.videoData),ua(G,2),g.w(G,Pxa(f,c.X,c.I.onesieUstreamerConfig),4);case 4:e=G.l;va(G,3);break;case 2:return h=wa(G),c.Z(),h instanceof g.JB?uV(c,h):(l=new g.JB("onesie.request",!1),uV(c,l)),G.return(c.B);case 3:return c.i.tick("osor"),m=Kna(c.u),n=e.Qp(),g.fq()&&(n=new Uint8Array(n.buffer.slice(0,
n.length))),p={method:"POST",body:n,headers:{"Content-Type":"text/plain"}},r=function(){cya(d)},t=function(){d.Z();
cya(d);var I=d.xhr;if(I.xf()){var O={msg:I.xf()};O=new g.JB("onesie.net",!1,O)}else 400<=I.status?O=new g.JB("onesie.net.badstatus",!1):I.Gw()?d.J||(O=new g.JB("onesie.response.noplayerresponse",!1)):O=new g.JB(204===I.status?"onesie.net.nocontent":"onesie.net.connect",!1);O?uV(d,O):d.i.tick("orf");d.Ua("ombre","ok."+ +!!O,!0,!0);d.W.I=!0},u=g.Ka,g.w(G,bya(c),5);
case 5:x=G.l;y=Yxa(c.videoData,x);if(!y)return c.Z(),E={url:"0"},D=new g.JB("onesie.unavailable.hotconfig",!1,E),uV(c,D),G.return(c.B);c.i.tick("ocs");c.Z();c.Ua("ombrs","1",!0,!0);c.xhr=new wT(y,r,t,u,m,p);return G.return(c.B)}})})};
tV.prototype.Y=function(){this.Z();uV(this,new g.JB("onesie.request",!1,{timeout:"1"}))};
tV.prototype.Z=function(){};g.v(g.zV,g.P);g.k=g.zV.prototype;g.k.oa=function(){this.Z();this.EJ();this.Pc.stop();window.clearInterval(this.Fc);Lra(this.Xe);this.visibility.unsubscribe("visibilitystatechange",this.Xe);EV(this);BV(this);g.tp(this.Ga);this.Xg();this.L=null;g.ui(this.videoData);g.ui(this.I);g.vi(this.Rg);this.Ca=null;this.Sa=!1;this.ub=0;g.P.prototype.oa.call(this)};
g.k.Oi=function(a,b,c){c=void 0===c?!0:c;this.Z();this.ra.length=0;this.Ya=null;this.va.reset();this.Aa.reset();this.Tb=!1;this.Kf=0;this.Ad=!0;this.Wb=null;this.i&&this.i.stopVideo();CV(this);EV(this);BV(this);g.tp(this.Ga);this.Wc.clear();g.ui(this.videoData);g.ui(this.I);if(2===this.playerType||this.u.hk)a.dJ=!0;var d=wF(a.Ad,a.Op,this.u.l,this.u.u);d&&(a.adFormat=d);2===this.playerType&&(a.Cj=!0);if(this.isFullscreen()||this.u.l)d=HEa(),a.autonavState=d||(this.u.l?2:this.videoData.autonavState);
this.td=c;this.videoData=a;this.videoData.subscribe("dataupdated",this.rS,this);this.videoData.subscribe("dataloaded",this.Wz,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Ua,this);vya(this,a);qya(this,b);rya(this);this.Sa=!1;this.ub=0;HV(this,"newdata");this.Jb(new g.ZI);this.B.Oi(this.videoData);PG(a)&&(a=this.videoData.errorDetail,b=this.videoData.Mj,this.Fg("auth",unescape(b.reason),a,a,b.subreason||void 0));1===this.playerType&&b0.isActive()&&
this.Pc.start()};
g.k.getVideoData=function(){return this.videoData};
g.k.T=function(){return this.u};
g.k.Dd=function(){return this.i};
g.k.Wz=function(){if(this.videoData.xd()){var a=this.I;0<g.T(a.i.experiments,"html5_player_min_build_cl")&&365664078<g.T(a.i.experiments,"html5_player_min_build_cl")&&Sva(a,"oldplayer");xya(this)}else this.videoData.kd||this.videoData.Rj?this.Ma&&g.SD(this.u)&&this.videoData.isLivePlayback||(this.videoData.kd?Zha(this.videoData):(a=this.C,a.qoe&&(a=a.qoe,DU(a,"protected"),a.provider.videoData.I?a.MJ():a.provider.videoData.subscribe("dataloaded",a.MJ,a)),Xha(this.videoData))):!this.videoData.Y&&this.td&&
uya(this)};
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.V("internalAbandon"),this.CC(!0),EV(this),g.tp(this.Ga))};
g.k.Tp=function(){Mwa(this.C)};
g.k.Fg=function(a,b,c,d,e){this.Z();var f,h;g.Nb(SEa,b)?f=b:b?h=b:f="GENERIC_WITHOUT_LINK";c=(c||"")+(";a6s."+Et());(b=h)||(b=g.AM[f]||"");a={errorCode:a,errorDetail:d,errorMessage:b,wA:f,Ak:e||"",vJ:c};HV(this,"dataloaderror");this.Jb($I(this.playerState,128,a));g.tp(this.Ga);BV(this);this.En()};
g.k.Id=function(a){this.ra=this.ra.filter(function(b){return a!==b});
this.Z();this.Aa.started&&IV(this)};
g.k.Nl=function(){var a;(a=!!this.ra.length)||(a=this.X.i.i[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.pc=function(){return this.playerState.pc()};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.L){var a=this.L;a=a.videoData.Gp.compose(a.videoData.fF);a=iy(a)}else a="auto";return a};
g.k.Dt=ba(7);g.k.isGapless=function(){return!!this.i&&this.i.isView()};
g.k.Xg=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.Z();if(this.i){var c=this.getCurrentTime();0<c&&(this.B.C=c);iV(this.B,null);this.I.u=null;VV(this);this.l&&(g.cn(this.l.W),TV(this,b));this.Ra.stop();if(this.i){!this.Aa.started||this.playerState.isError()||g.V(this.playerState,2)||this.Jb(aJ(this.playerState,512));g.$t(this.ib);if(a||!this.i.isView())this.i.stopVideo(),CV(this);this.i=null}}};
g.k.playVideo=function(){return g.C(this,function b(){var c=this,d,e,f,h;return g.z(b,function(l){if(1==l.i){c.Z();var m;(m=g.V(c.playerState,128))||(m=c.I,m.C?(m.C=!1,pU(m),m=!0):m=!1);if(m)return l.return();c.i&&(m=c.C,m.l&&jwa(m.l),m.qoe&&swa(m.qoe));NV(c);g.V(c.playerState,64)&&c.Jb(aJ(c.playerState,8));return c.Aa.isFinished()&&c.i?c.L||!c.Ya?l.Mb(2):g.w(l,c.Ya,2):l.return()}if(!c.videoData.u)return d=c.videoData.isLivePlayback&&!g.WC(c.u.B,!0)?"html5.unsupportedlive":tG(c.videoData)?"fmt.unplayable":
"fmt.noneavailable",g.qt(Error("selectableFormats")),c.Fg(d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),l.return();if(c.Zf()&&c.videoData.u.i)return c.Z(),l.return(GV(c));if(c.videoData.isLivePlayback){e=c.getCurrentTime()<c.fd()-15;f=g.QG(c.videoData)&&g.V(c.playerState,4);h=!c.ea("html5_dompaused_unpause_killswitch")&&g.V(c.playerState,1024);h||!e&&!f||(f?(c.Z(),c.seekTo(Infinity),LV(c,"unpauseLiveOnly")):(c.Z(),c.seekTo(c.fd()),LV(c,"outOfWindow")));!c.isAtLiveHead(void 0,!0)&&
lV(c.B)&&(c.Z(),c.seekTo(Infinity),LV(c,"peggedToLive"));if(m=g.V(c.playerState,256)&&c.videoData.Ya)m=c.B,m=m.ra&&!isFinite(m.l);if(m)return c.Jb(cJ(c.playerState,8,4)),l.return()}g.V(c.playerState,4)&&g.V(c.playerState,16)&&c.Jb(cJ(c.playerState,9,4));if(yV(c))return Oya(c),l.return();YV(c);l.i=0})})};
g.k.nN=function(){var a=this.videoData;a.i.dispose();a.i=void 0;mG(a,a.adaptiveFormats);AV(this,!0);this.V("localmediachange",new NE(this.videoData.videoId,4,{Cr:!0}))};
g.k.XS=function(){this.Z();VV(this);var a=this.videoData.i&&sy(this.videoData.i),b=this.i&&this.i.isView();a||b?(this.l&&(a=this.l,a.policy.Da=!1,a.mediaSource&&RT(a)),AV(this)):(this.Jb(aJ(this.playerState,16)),yV(this),g.eJ(this.playerState)&&this.playVideo())};
g.k.rQ=function(){this.Z();CV(this);BV(this);WV(this);this.playVideo()};
g.k.So=function(){if(!this.L)return[];var a=Xva(this.Y,this.L,RV(this,!0));return this.L.i.So(a)};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.u&&!this.videoData.u.i?iy(this.videoData.Gp):tU()};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){return this.videoData.getAudioTrack()};
g.k.VQ=function(a,b){this.CI(new TS(b,a))};
g.k.CI=function(a){this.Z();this.Xa.set(a.initData,a);this.J&&(Iva(this.J,a),this.ea("html5_eme_loader_sync")||this.Xa.remove(a.initData))};
g.k.vI=function(){g.Ls&&this.Da&&this.Da.i&&this.J&&(Kva(this.J,this.Da.i),this.Da=null)};
g.k.oS=function(a){this.videoData.eF=gy("auto",a,!1,"u");xV(this)};
g.k.PL=function(a){var b=this;PV(this,a.reason,a.video.info,a.audio.info);this.ea("html5_probe_media_capabilities")&&this.ea("html5_dynamic_av1_hybrid_threshold")&&a.video.info&&oB(a.video.info)&&awa(this.Y,this.L).then(function(c){c&&b.l&&fta(b.l.l,b.u)})};
g.k.FQ=function(a){Aya(this,a.reason,a.audio.info)};
g.k.GQ=function(a){this.V("localmediachange",a)};
g.k.handleError=function(a){this.I.handleError(a,g.V(this.playerState,4)||g.V(this.playerState,512))};
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.Jb(cJ(this.playerState,4,8));else return;var b;if(b=this.ea("html5_enable_server_stitched_ad_skip")&&this.videoData.enableServerStitchedDai){var c;b=this.getCurrentTime();if(null===(c=this.l)||void 0===c)c=0;else{var d;if(d=c.Y){d=c.u;var e=c.Y,f=d.I.i.index.zi(b);0<=f&&d.I.i.index.RA(f)?(HR(d,"sdai","skipad_on"+f+"_t"+b.toFixed(3)),e.skipAd(b,f),Zra(d,b,b,f),d=!0):
d=!1}d?(Tua(c,c.timestampOffset-100),c=!0):c=!1}c?(vxa(this.B,b+100+5),b=!0):b=!1}b||(g.V(this.playerState,128)||(a?this.Jb(aJ(this.playerState,256)):this.Jb(cJ(this.playerState,4,8))),this.i&&this.i.pause(),g.QG(this.videoData)&&this.l&&TV(this,!1))};
g.k.stopVideo=function(){this.pauseVideo();this.l&&(TV(this,!1),JT(this.l))};
g.k.En=function(a){a=void 0===a?!1:a;this.i&&(this.i.stopVideo(),CV(this),BV(this),g.V(this.playerState,128)||(a?this.Jb(bJ(bJ(aJ(this.playerState,4),8),16)):this.Jb($I(this.playerState))),this.videoData.videoId&&this.u.L.remove(this.videoData.videoId))};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;this.Z("SeekTo "+a+", "+JSON.stringify(b));g.V(this.playerState,2)&&yV(this);if(this.tb){var c=this.tb;isFinite(a)&&a<OR(c.i)?c.isLiveNow=!1:c.isLiveNow=!0}this.B.seekTo(a,b)};
g.k.getCurrentTime=function(){return this.B.getCurrentTime()};
g.k.Gl=function(){return this.B.Gl()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Lc())};
g.k.Vq=function(){var a=NaN;this.i&&(a=this.i.Vq());return 0<=a?a:this.getCurrentTime()};
g.k.Vf=function(){if(this.videoData.i)return this.videoData.i.Vf(this.getCurrentTime()-this.Lc());if((!this.ea("html5_disable_limit_ingestion_tvos")||gq())&&this.i){var a=this.i.zv();if(a&&(a=a.getTime(),!isNaN(a)))return a/1E3+this.getCurrentTime()}return NaN};
g.k.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Lc():KV(this)?KV(this):0};
g.k.Bw=function(){var a=new Rwa;if(this.l){var b=this.u.schedule;a.l=b.L;a.B=b.Y;a.bandwidthEstimate=hD(b);a.i="d."+eD(b).toFixed(2)+";st."+(1E9*(b.i.Ng()||0)).toFixed(2)+";bw."+b.l.Ng().toFixed(0)+";abw."+b.W.Ng().toFixed(0)+";v50."+bD(b.u,.5).toFixed(2)+";v92."+bD(b.u,.92).toFixed(2)+";v96."+bD(b.u,.96).toFixed(2)+";v98."+bD(b.u,.98).toFixed(2);b=this.l;if(b.mediaSource&&!UB(b.mediaSource)&&(a.Do=pT(b.videoTrack,b.currentTime),a.u=pT(b.audioTrack,b.currentTime),b.policy.ub)){var c=oT(b.videoTrack),
d=oT(b.audioTrack),e=BB(b.mediaSource.l.wf(),"_",5),f=BB(b.mediaSource.i.wf(),"_",5);a.i=(a.i||"")+(";lvq."+c+";laq."+d+";lvb."+e+";lab."+f)}a.bandwidthEstimate=uS(b.I);b.Z()}else this.i&&(a.Do=WI(this.i));a.C=this.isAtLiveHead()&&this.pc()?wV(this):NaN;return a};
g.k.Eb=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.C.Eb());this.i&&(Object.assign(b,this.i.Eb()),Object.assign(b,this.It()));this.l&&Object.assign(b,this.l.Eb());this.J&&(b.drm=this.J.Eb());b.state=this.playerState.state.toString(16);g.V(this.playerState,128)&&(b.debug_error=this.playerState.getData());this.Nl()&&(b.prerolls=this.ra.join(","));this.videoData.Ii&&(b.ismb=this.videoData.Ii);"UNKNOWN"!==this.videoData.latencyClass&&(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&
(b.lowlatency="1");this.videoData.isLivePlayback&&(this.videoData.i&&rC(this.videoData.i)&&(b.segduration=rC(this.videoData.i)),a=this.B,b.lat=a.W?msa(a.W.B):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Uj.toFixed(3);if(a=g.OV(this))b.optimal_format=a.Za().qualityLabel;b.user_qual=tU()}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.Gs([a])};
g.k.removeCueRange=function(a){this.X.Eg([a])};
g.k.Gs=function(a){this.X.Td(a)};
g.k.sC=function(a){this.X.Eg(a)};
g.k.Zf=function(){return this.visibility.Zf()};
g.k.Lp=function(){this.i&&this.i.Lp()};
g.k.rS=function(){HV(this)};
g.k.togglePictureInPicture=function(){this.i&&this.i.togglePictureInPicture()};
g.k.QL=function(a){this.Xc.stop();var b=a.target.Wf();if(this.i&&this.i.Wf()&&this.i.Wf()===b){Qya(this,a.type);switch(a.type){case "error":var c=YI(this.i)||"";if("capability.changed"===c){GV(this);return}if(0<this.i.Yi()&&qU(this.I,c,{msg:this.i.xf()}))return;if(this.isBackground()&&4===this.i.Yi()){this.En();JV(this,"unplayable");return}break;case "durationchange":c=this.i.getDuration();(!this.mediaSource||isFinite(c)&&0<c)&&1!==c&&this.videoData.lengthSeconds!==c&&(this.videoData.lengthSeconds=
c,HV(this));break;case "ratechange":this.l&&this.l.setPlaybackRate(this.i.getPlaybackRate());c=this.X;c.started=!0;c.bl();var d=this.C;c=this.getPlaybackRate();if(d.qoe){d=d.qoe;var e=g.tR(d.provider);c&&c!==d.ib&&(g.yU(d,e,"rate",[c]),d.ib=c);d.reportStats(e)}break;case "loadedmetadata":Sya(this);this.V("onLoadedMetadata");Lya(this);break;case "loadstart":Lya(this);break;case "progress":case "suspend":this.Rb();c=this.V;this.i?g.QG(this.videoData)?d=1:RG(this.videoData)?this.isAtLiveHead()||lV(this.B)?
d=1:(e=this.B,e.i?RG(e.videoData)?(d=Uja(e.i)+e.timestampOffset-e.fd(),e=gV(e)-e.fd(),d=Math.max(0,Math.min(1,d/e))):d=XI(e.i):d=0):d=XI(this.i):d=0;c.call(this,"onLoadProgress",this,d);break;case "playing":if(this.ea("html5_force_manifestless_seeking_state")&&AG(this.videoData)&&this.l&&this.l.B.i){this.Ua("mflForceSeek","reason.play");return}this.W.tick("plev");Kya(this);Yx("plev","video_to_ad");this.He&&(this.He=!1,this.isAtLiveHead()||(this.Z(),this.seekTo(Infinity),LV(this,"onPlaying")));break;
case "timeupdate":Kya(this);c=this.i&&!this.i.getCurrentTime();d=this.i&&0===this.i.Gh();if(c&&(!this.Tb||d))return;this.Tb=this.Tb||!!this.i.getCurrentTime();XV(this);this.Rb();if(!this.i||this.i.Wf()!==b)return;this.V("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.i.Wo().length&&0===this.i.Mg().length&&0<this.i.getCurrentTime()&&5>this.i.getCurrentTime()&&this.l)return;break;case "resize":Sya(this);this.videoData.l&&"auto"===this.videoData.l.Za().quality&&this.V("internalvideoformatchange",
this.videoData,!1);break;case "pause":if(this.Lf&&g.V(this.playerState,8)&&!g.V(this.playerState,1024)&&0===this.getCurrentTime()&&g.es){JV(this,"safari_autoplay_disabled");return}}if(this.i&&this.i.Wf()===b){this.V("videoelementevent",a);b=this.playerState;if(!g.V(b,128)){c=this.Db;e=this.i;var f=this.u.experiments;d=b.state;e=e?e:a.target;var h=e.getCurrentTime();if(!g.V(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.Jk()||1<h&&1.1>Math.abs(h-e.getDuration());h="ended"===a.type||"waiting"===
a.type||"timeupdate"===a.type&&!g.V(b,4)&&!UU(c,h);if("pause"===a.type&&e.Jk()||l&&h)0<e.ww()&&e.Wf()&&(d=14);else switch(a.type){case "error":YI(e)&&(d|=128);break;case "pause":g.V(b,256)?(d^=256)||(d=64):g.V(b,32)||g.V(b,2)||g.V(b,4)||(d=4,g.V(b,1)&&g.V(b,8)&&(d|=1));break;case "playing":d=(d|8)&-3077;f&&g.S(f,"html5_playing_clears_unstarted_killswitch")||(d&=-65);UU(c,e.getCurrentTime())&&(d&=-2);g.V(b,1)&&VU(c,e.getCurrentTime(),(0,g.N)(),WI(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);VU(c,e.getCurrentTime(),(0,g.N)(),WI(e));break;case "timeupdate":f=g.V(b,16),l=g.V(b,4),(g.V(b,8)||f)&&!l&&UU(c,e.getCurrentTime())&&(d=8),VU(c,e.getCurrentTime(),(0,g.N)(),WI(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,(e=YI(d))?(f="GENERIC_WITHOUT_LINK",l=d.Eb(),l.mediaElem="1",/AUDIO_RENDERER/.test(d.xf())&&(f="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.AM[f]||"",wA:f,vJ:g.KB(l)}):d=null);b=$I(b,c,d)}!g.V(this.playerState,
1)&&g.V(b,1)&&ZV(this,"evt"+a.type);this.Jb(b)}}};
g.k.fS=function(){this.Ua("misstimeupdate","");Jya(this)&&!g.V(this.playerState,2)&&uR(this,!0,!1)};
g.k.EP=function(a){a="available"===a.i.availability;a!==this.Pt&&(this.Pt=a,this.V("airplayavailabilitychange"))};
g.k.FP=function(){var a=(0,g.N)(),b=this.i.Zf();this.Ua("airplay",b?"on":"off");if(!this.ea("html5_ignore_inactive_airplay_killswitch")&&b||isNaN(this.Ec)||!(2E3>a-this.Ec))this.Ec=a,b!==this.Zf()&&(a=this.visibility,a.i!==b&&(a.i=b,a.Xe()),this.Ua("airplay","rbld_"+b),DV(this)),this.V("airplayactivechange")};
g.k.Rb=function(a){var b=this;a=void 0===a?!1:a;if(this.i&&this.videoData){oxa(this.B,this.pc());var c=this.getCurrentTime();this.l&&(g.V(this.playerState,4)&&g.QG(this.videoData)||Qua(this.l,c));5<c&&(this.B.C=c);var d=g.sp();d?g.tp(this.Ga):g.Co(this.Ga);if((g.gJ(this.playerState)||!this.i.mm())&&!g.V(this.playerState,128)){var e=function(){if(b.i&&!g.V(b.playerState,128)){b.videoData.Tb&&g.T(b.u.experiments,"html5_log_rebuffer_events")&&Qya(b,"pfx");var f=b.getCurrentTime(),h=WI(b.i),l=g.V(b.playerState,
8),m=UU(b.Db,f),n=VU(b.Db,f,(0,g.N)(),h);l&&m?b.Jb(bJ(b.playerState,1)):l&&n?(l=b.getDuration(),m=b.videoData.isLivePlayback,(b.ea("html5_set_ended_in_pfx_live")||!m)&&l&&1.1>Math.abs(l-f)?(b.Ua("setended","ct."+f+";bh."+h+";dur."+l+";live."+ +m),m&&b.ea("html5_set_ended_in_pfx_live_cfl")||(b.i.wv()?(b.Z(),b.seekTo(0)):uR(b))):(g.gJ(b.playerState)||ZV(b,"progress_fix"),b.Jb(aJ(b.playerState,1)))):(l&&!m&&!n&&0<f&&(l=(Date.now()-b.Kf)/1E3,m=b.getDuration(),f>m-1&&b.Ua("misspg","t:"+f.toFixed(2)+";d:"+
m.toFixed(2)+";r:"+l.toFixed(2)+";bh:"+h.toFixed(2))),g.V(b.playerState,4)&&g.gJ(b.playerState)&&5<WI(b.i)&&b.Jb(bJ(b.playerState,1)));b.Rb()}};
0===this.i.Wo().length?this.Ga=d?g.qp(e,100):g.Ao(e,100):this.Ga=d?g.qp(e,500):g.Ao(e,500)}this.videoData.cq=c;!a&&this.pc()&&Nya(this);ewa(this.Y,this.L,this.Dd(),this.isBackground())&&xV(this);fwa(this.Y,this.videoData.l)&&(this.C.onError("qoe.restart","droprate."+this.Y.L),this.u.B.J=!1,DV(this));this.V("progresssync",this,a)}};
g.k.lO=function(){this.Fg("ad.rebuftimeout","RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.AN=function(){g.gJ(this.playerState)&&cwa(this.Y,this.L)&&xV(this)};
g.k.Jb=function(a){if(!g.dJ(this.playerState,a)){this.Z();var b=new g.dI(a,this.playerState);this.playerState=a;Rya(this);var c=!this.Jc.length;this.Jc.push(b);var d=this.i&&this.i.us();g.fI(b,1)&&!g.V(b.xn,16)&&!d&&g.V(this.playerState,8)&&!g.V(this.playerState,64)&&this.l&&(d=this.l,d.Z(),d.ra=!0,this.i&&5<=WI(this.i)&&((d=g.T(this.u.experiments,"html5_non_network_rebuffer_duration_ms"))?this.Sf.start(d):cwa(this.Y,this.L)&&xV(this)));(d=g.T(this.u.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&
g.V(a,1)&&(g.V(a,8)||g.V(a,16))?this.kd.start(d):this.kd.stop();(0>eI(b,8)||g.fI(b,1024))&&this.Ra.stop();!g.fI(b,8)||this.videoData.Ya||g.V(b.state,1024)||this.Ra.start();g.V(b.state,8)&&0>eI(b,16)&&!g.V(b.state,32)&&!g.V(b.state,2)&&this.playVideo();g.V(b.state,2)&&RG(this.videoData)&&(a=this.getCurrentTime(),this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,HV(this)),this.Rb(!0));g.fI(b,2)&&this.CC(!0);g.fI(b,128)&&this.En();this.videoData.i&&this.videoData.isLivePlayback&&!this.Bg&&
(0>eI(b,8)?(a=this.videoData.i,a.B&&a.B.stop()):g.fI(b,8)&&this.videoData.i.resume());this.B.wc(b);this.C.wc(b);if(c&&!this.Ha())try{for(var e=g.q(this.Jc),f=e.next();!f.done;f=e.next()){var h=f.value;this.X.wc(h);this.V("statechange",h)}}finally{this.Jc.length=0}}};
g.k.mu=function(){this.videoData.isLivePlayback||this.V("connectionissue")};
g.k.eC=function(){this.W.tick("qoes")};
g.k.OL=function(a,b,c,d){a:{var e=this.I;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"===a&&this.J&&1<this.J.l.keys.length&&96>e.J)a="drm.sessionlimitexhausted",b=!1;else if(e.videoData.ea("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"===a&&2>e.L&&(e.L++,e.V("removedrmplaybackmanager"),1<e.videoData.Pf.length&&(e.Z(),e.videoData.I=e.videoData.Pf[1]),qU(e,a,{detail:c})))break a;if(b)if(e.videoData.l&&e.videoData.l.Za().isHdr())Uva(e,a);else{if(e.V("playererror",a,d,c),e.videoData.ea("html5_exile_on_drm_fatal")&&
Nva(e,{detail:c}))break a}else oU(e,a,{detail:c});"drm.sessionlimitexhausted"===a&&(rU(e,"retrydrm","s"),e.J++,e.V("reattachvideosourcerequired"))}};
g.k.zQ=function(){var a=this,b=g.T(this.u.experiments,"html5_license_constraint_delay"),c=rq();b&&c?(b=new g.J(function(){MV(a);HV(a)},b),g.H(this,b),b.start()):(MV(this),HV(this))};
g.k.yQ=function(){var a=this;g.Ls&&(this.Da=Nga(this.videoData.i))&&(this.Da.i?g.em(function(){a.vI()}):Sua(this.l,this.Da))};
g.k.ML=function(a){this.V("heartbeatparams",a)};
g.k.NL=function(a){this.Ua("keystatuses",uva(a));var b="auto";this.videoData.l&&(b=this.videoData.l.Za().quality);!vva(a,b,!1)||wva(a,"AUDIO")&&wva(a,"SD")?this.videoData.l&&this.videoData.l.Za().isHdr()&&(!a.ra||vva(a,b,!0))&&Uva(this.I):(this.Z(),this.Qd?(this.Z(),this.V("drmoutputrestricted")):(this.Qd=!0,this.Ua("retrydrm","o"),SV(this),tya(this)))};
g.k.DQ=function(){var a,b;if(!this.videoData.Ya&&this.i&&!this.isBackground()){var c="0";0<this.i.Gh()&&5<=WI(this.i)&&this.videoData.u&&this.videoData.u.i&&(this.Jb(aJ(this.playerState,1)),ZV(this,"load_soft_timeout"),this.V("playbackstalledatstart"),c="1");Rya(this);if(this.ea("html5_new_video_qoe_restart_info_killswitch"))c={restartmsg:c},this.Nl()&&(c.prerolls=this.ra.join(",")),this.l&&Object.assign(c,this.l.Eb()),this.i&&Object.assign(c,this.i.Eb());else{var d=this.videoData.u;c={restartmsg:c,
mfmt:qG(this.videoData)?"0":"1",mdrm:d&&d.videoInfos&&d.videoInfos.length&&d.videoInfos[0].Be&&!this.J?"1":"0",mfmtinfo:this.videoData.l?"0":"1",prerolls:this.Nl()?this.ra.join(","):"0"};if(this.J){d=c;var e=this.J;if(0>=e.l.values.length){var f="ns;";e.X||(f+="nr;");e=f+="ql."+e.B.length}else e=uva(e.l.values[0]);d.drmp=e}Object.assign(c,(null===(a=this.l)||void 0===a?void 0:a.Eb())||{});Object.assign(c,(null===(b=this.i)||void 0===b?void 0:b.Eb())||{})}this.C.onError("qoe.start15s",g.KB(c));this.V("loadsofttimeout")}};
g.k.WR=function(){g.V(this.playerState,128)||this.mediaSource&&SB(this.mediaSource)||(this.C.onError("qoe.restart",g.KB({detail:"bufferattach"})),this.xg++,AV(this))};
g.k.CC=function(a){var b=this;a=void 0===a?!1:a;if(!this.Sa){Xx("att_s","player_att")||Yx("att_s","player_att");var c=new Sma(this.videoData,this.ea("web_player_inline_botguard"));if("c1a"in c.i&&!sL(c)&&(Yx("att_wb","player_att"),2===this.ub&&.01>Math.random()&&g.qt(Error("Botguard not available after 2 attempts")),!a&&5>this.ub)){g.cn(this.ld);this.ub++;return}if("c1b"in c.i){var d=Pwa(this.C);d&&Vma(c).then(function(e){e&&!b.Sa&&d?(Yx("att_f","player_att"),d(e),b.Sa=!0):Yx("att_e","player_att")},
function(){Yx("att_e","player_att")})}else(a=Tma(c))?(Yx("att_f","player_att"),Owa(this.C,a),this.Sa=!0):Yx("att_e","player_att")}};
g.k.fd=function(){return this.B.fd()};
g.k.Lc=function(){return this.B?this.B.Lc():0};
g.k.getStreamTimeOffset=function(){return this.B?this.B.getStreamTimeOffset():0};
g.k.setPlaybackRate=function(a){var b=this.videoData.u&&this.videoData.u.videoInfos&&32<this.videoData.u.videoInfos[0].Za().fps&&g.SD(this.u);this.playbackRate!==a&&b&&(this.Y.setPlaybackRate(a),SV(this));this.playbackRate=a;this.i&&this.i.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.playbackRate};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.l&&(a=this.videoData.l.Za().quality,"auto"===a&&this.i)){var b=$H(this);b&&0<b.videoHeight&&(a=gB(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.l&&this.videoData.l.video&&this.videoData.l.video.isHdr())};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.C;c.i?(c=MU(c.i,"engage"),c.L=a,c.send(b)):b&&b()};
g.k.jh=function(a){return this.C.jh(a)};
g.k.isAtLiveHead=function(a,b){return this.videoData.isLivePlayback&&(this.Ad||(void 0===b?0:b))?this.B.isAtLiveHead(a):!1};
g.k.Om=function(){var a=KV(this),b=this.getCurrentTime(),c;(c=!this.videoData.isLivePlayback)||(c=this.B,c=!(c.u&&c.u.u));return c||lV(this.B)||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.wj=ba(11);g.k.It=function(){return this.i?this.i.Av():{}};
g.k.setLoop=function(a){this.loop=a;this.i&&this.i.setLoop(a)};
g.k.LL=function(a){var b=this.ea("html5_unrewrite_timestamps");this.Ua("timestamp","enabled."+b+";t."+a.toString())};
g.k.Ua=function(a,b,c){this.C.Ua(a,b,void 0===c?!1:c)};
g.k.jz=function(a,b){this.C.onError(a,g.KB(b))};
g.k.getPlayerSize=function(){return this.xc.getPlayerSize()};
g.k.Og=function(){return this.xc.Og()};
g.k.Z=function(){};
g.k.ea=function(a){return g.S(this.u.experiments,a)};
g.k.EJ=function(){if(g.eJ(this.playerState)){var a=b0.oG();a&&this.C.Ua("profile",a)}this.Pc.start()};g.v(g.bW,g.F);g.bW.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Qa(a),e=J0[d];if(e){try{e.dispose()}catch(h){g.xo(h)}J0[d]=null}var f=new g.bW(a,b,c);g.wi(f,function(){J0[d]=null;f.He&&f.He()});
return J0[d]=f}catch(h){throw g.xo(h),h.stack;}};
g.k=g.bW.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.Hl=function(a){this.Fc||(this.Fc=g.qL(a));return this.Fc};
g.k.isVideoInfoVisible=function(){return!(!this.Y||!this.Y.vb)};
g.k.Xg=function(){if(this.B){this.Ra&&(this.events.hc(this.Ra),this.Ra=null);g.$t(this.Aa);this.u&&this.u.Xg(!0);this.template.Xg();if(!this.ea("html5_unset_src_on_remove_killswitch"))try{this.B.Fx()}catch(a){}this.B=null}};
g.k.Gj=function(a){a=this.NA(a);gW(this,a)};
g.k.Dn=function(a){if(a=g.X(this,a))this.Z("release presenting player, type "+a.getPlayerType()+", vid "+a.getVideoData().videoId),a!==this.l?gW(this,this.l):kza(this)};
g.k.NA=function(a){var b=g.X(this,a);b||(b=aW(this,a),fW(this,b));return b};
g.k.setIsExternalPlaylist=function(a){this.Lg=U(!1,a)};
g.k.KP=function(){cW(this)||(this.Z(),this.Sk(5))};
g.k.eR=function(a){cW(this)||(this.Z(),Fza(this),g.eJ(a.getPlayerState())&&this.playVideo())};
g.k.canPlayType=function(a){return uB(a)};
g.k.T=function(){return this.i};
g.k.getVideoData=function(){return this.u.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.X(this,a);return a?hH(a.getVideoData())?1:(a=a.Dd())?XI(a):0:0};
g.k.Wa=function(){return this.template};
g.k.ob=function(){return this.C};
g.k.wt=function(){return this.J};
g.k.Hp=function(a){var b=g.X(this,1);b&&uR(b,a)};
g.k.df=function(){var a=this.C.UA();a.fs=this.Qa.isFullscreen();a.volume=Math.round(this.Qa.getVolume());a.muted=this.Qa.isMuted()?1:0;a.mos=a.muted;if(g.S(this.i.experiments,"html5_enable_embedded_player_visibility_signals")&&g.BD(this.i)){if(this.Xc){var b=this.Xc;b=null==b.i?null:Math.round(100*b.i)/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.cE();1<c&&b.push(c);a.size=b.join(":")}}this.u===this.l&&this.L&&
(a.clipid=this.L.postId);return a};
g.k.Hi=function(a){1===a&&(this.J.tick("vr"),this.Da||(this.Da=Lr($x,this.jI,this)),Mya(this.u),Dna(this.J,this.u.getVideoData(),Dza(this)));var b=this.i;(mE(b)&&b.u||g.JD(b))&&(this.Yd()||this.Qa.La("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.u===this.l&&Pya(this.u)!==a&&(this.u.setLoop(a),this.Qa.V("loopchange",a))};
g.k.getLoopVideo=function(){return Pya(this.u)};
g.k.setLoopRange=function(a){var b=!1;!!this.L!==!!a?b=!0:this.L&&a&&(b=this.L.startTimeMs!==a.startTimeMs||this.L.endTimeMs!==a.endTimeMs||this.L.postId!==a.postId);b&&(this.l.X.Df("applooprange"),a?(b=new g.pw(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.l.addCueRange(b)):kW(this).clipConfig=void 0,this.L=a,this.Qa.La("onLoopRangeChange",a),this.u===this.l&&(this.Nx(),this.u.Tp()))};
g.k.getLoopRange=function(){return this.L};
g.k.Nx=function(){this.L&&this.u===this.l&&(rza(this,this.l.getCurrentTime())||this.JJ())};
g.k.JJ=function(){!this.ea("html5_live_clip_init_killswitch")&&g.V(this.l.getPlayerState(),64)&&kW(this).isLivePlayback&&5E3>this.L.startTimeMs||this.l.seekTo(.001*this.L.startTimeMs)};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=fza(this,a),this.l.getPlaybackRate()!==a&&(this.l.setPlaybackRate(a),b&&!this.i.l&&GEa(a),this.Qa.La("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return g.NL(this.C).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.X(this):g.X(this,a);if(!a)return 0;if(b){if(c&&this.I&&(b=this.I.Ra/1E3,0!==b))return b;b=jW(this,a);return uW(this,b.getCurrentTime(),b)}c&&this.I?(b=a.getCurrentTime(),b=(c=CR(this.I,1E3*b))?b-c.Cc/1E3:b):b=a.getCurrentTime();return b};
g.k.Vq=function(){var a=g.X(this,void 0);if(!a)return 0;a=jW(this,a);return uW(this,a.Vq(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.X(this):g.X(this,a);if(!a)return 0;if(b)return b=iW(this,a),uW(this,b.getDuration(),b);c&&this.I?(b=a.getCurrentTime(),b=(b=CR(this.I,1E3*b))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.k.fd=function(a){a=g.X(this,a);if(!a)return 0;a=iW(this,a);return uW(this,a.fd(),a)};
g.k.Vf=function(a){var b=g.X(this,a);return b?this.Yd(b)?(b=iW(this,b),b.Vf()-b.getCurrentTime()+this.getCurrentTime(a)):b.Vf():0};
g.k.lA=function(){this.template.lA();var a=this.G;a.element=this.template.element;var b=a.element,c;for(c in a.l)a.l.hasOwnProperty(c)&&(b[c]=a.l[c]);(a=Xt(this.template.element))&&this.events.N(this.template,a,this.sQ);this.events.N(window,"resize",this.DR)};
g.k.getDebugText=function(a){var b=this.l.Eb(a);if(this.u&&this.u!==this.l){for(var c=this.u.Eb(a),d=g.q(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=le("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.oe("video-ads");f?(Mza(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.oe("videoAdUiSkipContainer"),l=g.oe("ytp-ad-skip-button-container"),m=h||l;m?(Mza(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.B&&(b["0sz"]=0===ge(this.B.kq()),b.op=this.B.Ht("opacity"),c=this.B.Rm().y+this.B.kq().height,b.yof=0>=c,b.dis=this.B.Ht("display"));(a=a?(0,g.EU)():null)&&(b.gpu=a);b.cgr=!0;b.debug_playbackQuality=this.Qa.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.T().experiments.experimentIds.join(", ")},b=this.rb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(a){var b;return 1===this.ra?1:cW(this)?3:a&&(null===(b=this.I)||void 0===b?0:b.isAdPlaying(this.getCurrentTime()))?2:g.X(this).getPlayerType()};
g.k.rb=function(a){return 3===this.getPresentingPlayerType()?g.NL(this.C).od:g.X(this,a).getPlayerState()};
g.k.getAppState=function(){return this.ra};
g.k.WL=function(a){switch(a.type){case "loadedmetadata":Xx("fvb",this.J.timerName)||this.J.tick("fvb");Yx("fvb","video_to_ad");this.Db.start();break;case "loadstart":Xx("gv",this.J.timerName)||this.J.tick("gv");Yx("gv","video_to_ad");break;case "progress":case "timeupdate":!Xx("l2s",this.J.timerName)&&2<=FB(a.target.Mg())&&this.J.tick("l2s");break;case "playing":g.kE&&this.Db.start();if(g.SD(this.i))a=!1;else{var b=g.PL(this.ob());a="none"===this.B.Ht("display")||0===ge(this.B.kq());var c=eS(this.template),
d=this.u.getVideoData(),e=gE(this.i)||g.LD(this.i);d=rG(d);b=!c||b||e||d||this.i.Wb;a=a&&!b}a&&(this.u.Ua("hidden","1",!0),this.getVideoData().tb||(this.ea("html5_new_elem_on_hidden")?(this.getVideoData().tb=1,this.AI(null),this.u.playVideo()):Iza(this,"hidden",!0)))}};
g.k.CQ=function(a,b){this.Qa.La("onLoadProgress",b)};
g.k.XR=function(){this.Qa.V("playbackstalledatstart")};
g.k.YL=function(a,b){a=jW(this,a);b=uW(this,a.getCurrentTime(),a);this.Qa.La("onVideoProgress",b)};
g.k.nQ=function(){this.Qa.La("onDompaused")};
g.k.pR=function(){this.Qa.V("progresssync")};
g.k.MP=function(a){if(1===this.getPresentingPlayerType()){g.fI(a,1)&&!g.V(a.state,64)&&kW(this).isLivePlayback&&this.l.isAtLiveHead()&&1<this.Qa.getPlaybackRate()&&this.setPlaybackRate(1,!0);g.fI(a,2)&&lza(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.Qa.La("onError",UEa[b.errorCode]||5);this.Qa.La("onDetailedError",{errorCode:b.errorCode,errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.wA});
6048E5<(0,g.N)()-this.i.ib&&this.Qa.La("onReloadRequired")}b={};if(a.state.pc()&&!g.gJ(a.state)&&!Xx("pbresume","ad_to_video")&&Xx("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);Ux(b,"ad_to_video");ax("pbresume",void 0,"ad_to_video")}this.Qa.V("applicationplayerstatechange",a)}};
g.k.aJ=function(a){3!==this.getPresentingPlayerType()&&this.Qa.V("presentingplayerstatechange",a)};
g.k.rh=function(a){hW(this,hJ(a.state));g.V(a.state,1024)&&this.Qa.isMutedByMutedAutoplay()&&(FL(this,{muted:!1,volume:this.Eh.volume},!1),sW(this,!1))};
g.k.gR=function(a){a.state.pc()&&!g.gJ(a.state)&&(Sna(this.C),g.$t(this.Kc))};
g.k.IP=function(a,b,c){"newdata"===a&&tza(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})};
g.k.RL=function(){this.Qa.La("onPlaybackAudioChange",this.Qa.getAudioTrack().i.name)};
g.k.XL=function(a){var b=this.u.getVideoData();a===b&&this.Qa.La("onPlaybackQualityChange",a.l.Za().quality)};
g.k.fb=function(a,b,c){this.Z("on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId);b===this.l&&(this.i.Qd=c.oauthToken);if(this.i.u&&this.X){if(c.No&&gH(c)){var d=c.No;c.No=null}else d=null;d&&this.X.i(d)}this.getVideoData().enableServerStitchedDai&&!this.I&&(this.I=new yR(this.Qa,this.i,this.l));if("newdata"===a)this.Z(),hM(this.C,2),this.Qa.V("videoplayerreset",b);else{if(!this.B)return;"dataloaded"===a&&(this.u===this.l?(PD(c.B,c.DD),this.Z(),this.l.getPlayerState().isError()?
this.Z():(d=cW(this),kW(this).xd(),d&&this.Sk(6),nza(this),d||(d=iM(this.C))&&!d.created&&eM(this.C)&&d.create())):nza(this));1===b.getPlayerType()&&(this.i.X&&Lza(this),this.getVideoData().isLivePlayback&&!this.i.ol&&this.Qe("html5.unsupportedlive","DEVICE_FALLBACK"),c.xd()&&(c.Rf||c.WC||c.jp||c.L.focEnabled||c.L.rmktEnabled||this.getVideoData().xq)&&(d=this.getVideoData(),xW(this,"part2viewed",1,0x8000000000000),xW(this,"engagedview",Math.max(1,1E3*d.Wb),0x8000000000000),d.isLivePlayback||(d=1E3*
d.lengthSeconds,xW(this,"videoplaytime25",.25*d,d),xW(this,"videoplaytime50",.5*d,d),xW(this,"videoplaytime75",.75*d,d),xW(this,"videoplaytime100",d,0x8000000000000),xW(this,"conversionview",d,0x8000000000000))));this.Qa.V("videodatachange",a,c,b.getPlayerType())}this.Qa.La("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.Nx();if(b=c.Hu){if(a=this.dn,c=c.clientPlaybackNonce,a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=mJ();var e=void 0===e?{}:e;Object.values(xEa).includes(c)||
(g.qt(new g.Zr("createClientScreen() called with a non-page VE",c)),c=83769);e.isHistoryNavigation||b.i.push({rootVe:c,key:e.key||""});b.B=[];b.C=[];e.cG?hka(b,c,e):gka(b,c,e);wsa(a)}}else wsa(this.dn)};
g.k.Dv=function(){mW(this,null);this.Qa.La("onPlaylistUpdate")};
g.k.bI=function(a){var b=a.getId(),c=kW(this);if("part2viewed"===b)c.KD&&g.tq(c.KD),c.WC&&DW(this,c.WC),c.jp&&EW(this,c.jp);else if("conversionview"===b){var d=this.l.C;d.i&&Gwa(d.i)}else"engagedview"===b&&g.tq(c.Rf);if(c.LD){d=c.LD;var e={label:a.getId()};if(g.S(this.i.experiments,"send_pyv_ad_mt_and_abandon_pings")){var f=1E3*this.getCurrentTime();e.ad_mt=Math.round(Math.max(0,f)).toString()}d=g.Jp(d,e);g.tq(d)}switch(b){case "videoplaytime25":c.GD&&DW(this,c.GD);c.zD&&EW(this,c.zD);c.JE&&g.tq(c.JE);
break;case "videoplaytime50":c.HD&&DW(this,c.HD);c.AD&&EW(this,c.AD);c.LE&&g.tq(c.LE);break;case "videoplaytime75":c.JD&&DW(this,c.JD);c.BD&&EW(this,c.BD);c.NE&&g.tq(c.NE);break;case "videoplaytime100":c.FD&&DW(this,c.FD),c.qD&&EW(this,c.qD),c.MD&&g.tq(c.MD)}(b=this.getVideoData().xq)&&yza(b,a.getId())&&yza(b,a.getId()+"gaia");this.l.removeCueRange(a)};
g.k.Sk=function(a){a!==this.ra&&(this.Z(),2===a&&1===this.getPresentingPlayerType()&&(hW(this,-1),hW(this,5)),this.ra=a,this.Qa.V("appstatechange",a))};
g.k.Qe=function(a,b,c,d){this.l.Fg(a,b,c,d)};
g.k.Tk=ba(5);g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.X(this,a);if(!c)return!1;a=iW(this,c);c=jW(this,c);return a!==c?a.isAtLiveHead(uW(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Om=function(){var a=g.X(this,void 0);return a?iW(this,a).Om():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.X(this,d))2===this.ra&&qW(this),this.Yd(d)?this.I?this.I.seekTo(a,b,c):this.va.seekTo(a,b,c):d.seekTo(a,{kK:!b,lK:c})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.VL=function(){this.Qa.La("SEEK_COMPLETE")};
g.k.OR=function(a,b){var c=a.getVideoData();if(1===this.ra||2===this.ra)c.startSeconds=b;2===this.ra?this.ea("embeds_enable_preloadvideobyplayervars_startseconds_fix")&&g.V(a.getPlayerState(),512)||qW(this):this.Qa.La("SEEK_TO",b)};
g.k.CP=function(){this.Qa.V("airplayactivechange")};
g.k.DP=function(){this.Qa.V("airplayavailabilitychange")};
g.k.SP=function(){this.Qa.V("beginseeking")};
g.k.pQ=function(){this.Qa.V("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.X(this,a))?iW(this,a).getVideoData().getStoryboardFormat():null};
g.k.Nh=function(a){return(a=g.X(this,a))?iW(this,a).getVideoData().Nh():null};
g.k.Yd=function(a){if(a=a||this.u){a=a.getVideoData();if(this.I)a=a===this.I.i.getVideoData();else a:{var b=this.va;if(a===b.l.getVideoData()&&b.i.length)a=!0;else{b=g.q(b.i);for(var c=b.next();!c.done;c=b.next())if(a.cd===c.value.cd){a=!0;break a}a=!1}}if(a)return!0}return!1};
g.k.Bq=function(a,b,c,d,e,f){this.Z();a=this.I?Qra(this.I,a,b,c,d,e,f):dsa(this.va,a,b,c,d,e);this.Z();return a};
g.k.wp=function(a){var b;null===(b=this.I)||void 0===b?void 0:b.wp(a)};
g.k.Ho=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;this.I?FR(this.I,a,b):QR(this.va,a,b)};
g.k.Tr=function(a,b,c){if(this.I){for(var d=this.I,e=null,f=g.q(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.cd===a){e=h;break}e?(d.Z(),void 0===c&&(c=e.zd),Tra(d,e,b,c)):d.Gd("Invalid timelinePlaybackId="+a+" specified")}else{d=this.va;e=null;f=g.q(d.i);for(h=f.next();!h.done;h=f.next())if(h=h.value,h.cd===a){e=h;break}e?(d.Z(),void 0===c&&(c=e.zd),jsa(d,e,b,c)):d.Gd("e.InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Yd();a=new g.$F(this.i,a);d&&(a.cd=d);!g.S(this.i.experiments,"html5_report_dai_ad_playback_killswitch")&&2===b&&this.l&&Nwa(this.l.C,a.clientPlaybackNonce,a.Ad||"",a.breakType||0);zza(this,a,b,c)};
g.k.Zv=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.X(this);e&&(iW(this,e).Bg=!0);Gra(this.Ma,a,b,c).then(function(){d.Qa.La("onQueuedVideoLoaded")},function(){})};
g.k.jr=function(){return this.Ma.jr()};
g.k.clearQueue=function(){this.Z();this.Ma.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){var f,h=!1,l=new g.$F(this.i,a),m=null!==(f=l.ib)&&void 0!==f?f:"";this.J.timerName=m;if(!this.ea("web_player_load_video_context_killswitch")&&e){for(;l.Ci.length&&l.Ci[0].isExpired();)l.Ci.shift();h=l.Ci.length-1;h=0<h&&e.l(l.Ci[h])&&e.l(l.Ci[h-1]);l.Ci.push(e)}c||(a&&XL(a)?(aE(this.i)&&!this.Lg&&(a.fetch=0),mW(this,a)):this.playlist&&mW(this,null),a&&this.setIsExternalPlaylist(a.external_list),aE(this.i)&&!this.Lg&&nW(this));a=this.jn(l,b,d);h&&this.Qe("player.fatalexception",
"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+l.Ci.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=vD(a);d=yW(b,d,e);this.Ya.get(d)?this.Z():this.u&&this.u.va.started&&d===yW(this.u.getPlayerType(),this.u.getVideoData().videoId,this.u.getVideoData().cd)?this.Z():(a=new g.$F(this.i,a),e&&(a.cd=e),Aza(this,a,b,c))};
g.k.Sv=function(a){var b=a.getPlayerType();a!==g.X(this,b)&&(1===a.getPlayerType()?(a.getVideoData().autonavState=this.l.getVideoData().autonavState,bu(this.l,this.Wb,this),b=this.l.getPlaybackRate(),this.l.dispose(),this.l=a,this.l.setPlaybackRate(b),au(a,this.Wb,this),tza(this)):(b=g.X(this,b))&&b.dispose(),this.u.getPlayerType()===a.getPlayerType()?gW(this,a):fW(this,a))};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.C;a=a.G.T().showMiniplayerUiWhenMinimized?a.yd.get("miniplayer"):void 0;a&&(this.jf()?a.load():a.unload());this.Qa.V("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.C;a=a.G.T().showInlinePreviewUi?a.yd.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload())};
g.k.Lr=function(a){var b=this.i.xg&&g.S(this.i.experiments,"html5_block_pip_with_events")||g.S(this.i.experiments,"html5_block_pip_non_mse")&&"undefined"===typeof MediaSource;a&&b&&this.getVideoData()&&!this.getVideoData().backgroundable?this.Ec?this.Ec.start():this.FF():this.visibility.Lr(a)};
g.k.FF=function(){var a,b=null===(a=this.B)||void 0===a?void 0:a.Re();b&&Wt(b)};
g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.k.LR=function(){"picture-in-picture"===this.B.Re().webkitPresentationMode?this.Lr(!0):this.Lr(!1)};
g.k.togglePictureInPicture=function(){var a=g.X(this);a&&a.togglePictureInPicture()};
g.k.jn=function(a,b,c){var d=this;this.Z();Xx("_start",this.J.timerName)||(Cna(this.J),this.J.info("srt",0));var e=tW(this,b||this.u.getPlayerType(),a,!1);if(!e){e=g.X(this,b);if(!e)return!1;this.Db.stop();this.cancelPlayback(4,b);e.Oi(a,function(){return d.df()},c)}e===this.l&&(this.i.Qd=a.oauthToken);
if(!FV(e))return!1;this.ub&&(this.ub=e.I.B=!1);if(e===this.l)return this.Sk(1),qW(this);NV(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;if(a&&XL(a))this.Ga=!0,mW(this,a),(a=this.playlist.Za())&&a.isValid()?AW(this,a,b):$L(this.playlist,function(){pW(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.Dv();var d=new g.$F(this.i,a);g.BD(this.i)&&!this.i.J&&g.S(this.i.experiments,"embeds_enable_iframe_apis_through_oneplatform")?Ina(d,a?a:{}).then(function(e){AW(c,e,b)}):AW(this,d,b)}};
g.k.Oj=function(a,b,c,d,e,f){if(!a&&!c)throw Error("Playback source is invalid");if(DD(this.i)||g.fE(this.i))return b=b||{},b.lact=zp(),b.vis=this.Qa.getVisibilityState(),this.Qa.La("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;b=this.J;b.i&&(e=b.i,e.i={},e.Ts={});b.l=!1;this.J.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0};
g.k.cuePlaylist=function(a,b,c,d){this.Ga=!0;Bza(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Ga=!1;Bza(this,a,b,c,d)};
g.k.qt=function(){if(this.Qa.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;aE(this.i)&&!this.Lg&&nW(this);return!(!this.playlist||!this.playlist.hasNext())};
g.k.Ro=ba(3);
g.k.nextVideo=function(a,b){var c=this,d=this.l.getVideoData().suggestions;g.SL(this.Qa)&&d?(a=d.map(function(e){return g.oO(c.i,e)})[0],d=b?a.rA:a.ke,this.Oj(a.Za().videoId,d,a.getPlaylistId(),b,void 0,a.yF||void 0)):this.Lg?this.Qa.La("onPlaylistNext"):3===this.getPresentingPlayerType()?g.NL(this.C).nextVideo():this.playlist&&(aE(this.i)&&!this.Qa.isFullscreen()?wW(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&YL(this.playlist,Ena(this.playlist)),this.playlist.loaded?(a=b&&g.S(this.i.experiments,
"html5_player_autonav_logging"),this.jn(this.playlist.Za(void 0,b,a),1)):this.Ga=!1))};
g.k.previousVideo=function(a){this.Lg?this.Qa.La("onPlaylistPrevious"):3===this.getPresentingPlayerType()?g.NL(this.C).yx():this.playlist&&(aE(this.i)&&!this.Qa.isFullscreen()?wW(this,"yt.www.watch.lists.prev"):(this.playlist.Fk(a)&&YL(this.playlist,Fna(this.playlist)),this.playlist.loaded?this.jn(this.playlist.Za(),1):this.Ga=!1))};
g.k.playVideoAt=function(a){this.Lg?this.Qa.La("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.jn(this.playlist.Za(a),1):this.Ga=!1,YL(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.Et=ba(9);g.k.GP=function(a){this.Qa.La("onCueRangeEnter",a.getId())};
g.k.HP=function(a){this.Qa.La("onCueRangeExit",a.getId())};
g.k.Gs=function(a,b){var c=g.X(this,b);c&&(c.Gs(a),b&&this.getPresentingPlayerType()!==b||eW(this,"cuerangesadded",a))};
g.k.sC=function(a,b){var c=g.X(this,b);c&&(c.sC(a),b&&this.getPresentingPlayerType()!==b||eW(this,"cuerangesremoved",a))};
g.k.LP=function(){var a=this;this.getPresentingPlayerType();this.Da||(this.Da=Lr($x,this.jI,this));Dna(this.J,this.u.getVideoData(),Dza(this));lW(this)&&this.i.l&&"embedded"===$G(kW(this))&&this.pe&&.01>Math.random()&&g.Qr("autoplayTriggered",{intentional:this.ld});this.pe=!1;this.Qa.La("onPlaybackStartExternal");g.S(this.i.experiments,"mweb_client_log_screen_associated");(function(){var c=g.uu(a.Bd||(a.jf()?3:0));if(c){var d={cpn:a.getVideoData().clientPlaybackNonce,csn:c};if(g.S(a.i.experiments,
"web_playback_associated_ve")&&a.getVideoData().Aa){var e=g.nu(a.getVideoData().Aa);g.Bu(c,e,void 0);d.playbackVe=e.getAsJson()}g.S(a.i.experiments,"kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo);c={};a.ea("web_playback_associated_log_ctt")&&a.getVideoData().Sa&&(c.cf={token:a.getVideoData().Sa,videoId:a.getVideoData().videoId});g.Qr("playbackAssociated",d,c)}})();
Rx("player_att",["att_f","att_e"]);if(this.ea("web_player_inline_botguard")){var b=this.getVideoData().botguardData;b&&(this.ea("web_player_botguard_inline_skip_config_killswitch")&&(to("BG_I",b.interpreterScript),to("BG_IU",b.interpreterUrl),to("BG_P",b.program)),g.dE(this.i)?pp(function(){rW(a)}):rW(this))}this.Nx()};
g.k.TL=function(){this.Qa.V("internalAbandon");this.ea("html5_ad_module_cleanup_killswitch")||vW(this)};
g.k.jI=function(a){a=a.i;if(!isNaN(a)&&0<a&&this.l){var b=this.l.C;b.qoe&&0<a&&(b.qoe.i.aft=[a.toString()])}};
g.k.OQ=function(){var a=this.B;a={volume:g.Zd(Math.floor(100*a.getVolume()),0,100),muted:a.uw()};a.muted||sW(this,!1);this.Eh=g.Ub(a);this.Qa.La("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Qa.La("onMutedAutoplayStarts"))};
g.k.sQ=function(){var a=BW(this);this.Ni(a?1:0);Hza(this,!!a)};
g.k.Ni=function(a){var b=!!a,c=!!this.visibility.fullscreen!==b;this.visibility.Ni(a);this.template.Ni(b);this.ea("html5_media_fullscreen")&&!b&&this.B&&BW(this)===this.B.Re()&&this.B.ct();this.template.resize();c&&this.J.tick("fsc");c&&(this.Qa.V("fullscreentoggled",b),a=kW(this),b={fullscreen:b,videoId:a.Py||a.videoId,time:this.getCurrentTime()},this.Qa.getPlaylistId()&&(b.listId=this.Qa.getPlaylistId()),this.Qa.La("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.DR=function(){this.u&&(0!==this.visibility.fullscreen&&1!==this.visibility.fullscreen||this.Ni(BW(this)?1:0),this.i.xg&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.B&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.B.ct())};
g.k.BQ=function(a){3!==this.getPresentingPlayerType()&&this.Qa.V("liveviewshift",a)};
g.k.playVideo=function(a){this.Z();if(a=g.X(this,a))2===this.ra?qW(this):(null!=this.Y&&this.Y.vb&&this.Y.start(),g.V(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.k.pauseVideo=function(a){(a=g.X(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){this.Z();var a=this.l.getVideoData(),b=new g.$F(this.i,{video_id:a.Py||a.videoId,oauth_token:a.oauthToken});b.Ec=g.Ub(a.Ec);this.cancelPlayback(6);AW(this,b,1);null!=this.Y&&this.Y.stop()};
g.k.cancelPlayback=function(a,b){this.Z();Kr(this.Da);this.Da=0;var c=g.X(this,b);if(c)if(1===this.ra||2===this.ra)this.Z();else{c===this.u&&(this.Z(),hM(this.C,a));var d=c.getVideoData();if(this.X&&gH(d)&&d.videoId&&this.ea("hoffle_api")&&(a=this.X,d=d.videoId,2===YE(d))){var e=xL(a,d);e&&e!==a.player&&gH(e.getVideoData())&&($V(e),EG(e.getVideoData(),!1),aF(d,3),yL(a))}1===b&&(g.S(this.i.experiments,"html5_stop_video_in_cancel_playback")&&c.stopVideo(),vW(this));c.En();eW(this,"cuerangesremoved",
ST(c.X)||[]);c.X.reset();this.Ma&&c.isGapless()&&(c.Xg(!0),nR(c,this.B))}else this.Z()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.X(this,b))&&this.i.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.jh=function(a){var b=g.X(this,void 0);return b&&this.i.enabledEngageTypes.has(a.toString())?b.jh(a):null};
g.k.updatePlaylist=function(){aE(this.i)?nW(this):g.BD(this.i)&&oW(this);this.Qa.La("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.Qd=a;this.Gc=b;this.Qa.V("sizestylechange",a,b);this.template.resize()};
g.k.isWidescreen=function(){return this.Gc};
g.k.jf=function(){return this.visibility.jf()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.ir=function(){return this.visibility.ir()};
g.k.gr=function(){return this.visibility.gr()};
g.k.pB=function(){return this.Qd};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return g.NL(this.C).getAdState();if(!this.Yd()){var a=iM(this.ob());if(a)return a.getAdState()}return-1};
g.k.CR=function(a){var b=this.template.getVideoContentRect();Vf(this.td,b)||(this.td=b,this.u&&MV(this.u),this.l&&this.l!==this.u&&MV(this.l),1===this.visibility.fullscreen&&this.Sa&&Hza(this,!0));this.Jc&&g.fe(this.Jc,a)||(this.Qa.V("appresize",a),this.Jc=a)};
g.k.yf=function(){return this.Qa.yf()};
g.k.TR=function(){2===this.getPresentingPlayerType()&&this.va.isManifestless()&&!this.ea("web_player_manifestless_ad_signature_expiration_killswitch")?isa(this.va):(this.I&&FR(this.I),Iza(this,"signature",void 0,!0))};
g.k.AI=function(){this.Xg();dW(this)};
g.k.BR=function(a){pR(a,this.B.xv())};
g.k.UL=function(a){this.X&&this.X.i(a)};
g.k.mu=function(){this.Qa.La("CONNECTION_ISSUE")};
g.k.SL=function(a){this.Qa.V("heartbeatparams",a)};
g.k.Ix=function(a){this.Qa.La("onAutonavChangeRequest",1!==a)};
g.k.Dd=function(){return this.B};
g.k.setBlackout=function(a){this.i.Wb=a;this.u&&(this.u.Tp(),this.i.X&&Lza(this))};
g.k.setAccountLinkState=function(a){var b=g.X(this);b&&(b.getVideoData().IE=a,b.Tp())};
g.k.updateAccountLinkingConfig=function(a){var b=g.X(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Qa.V("videodatachange","dataupdated",c,b.getPlayerType())}};
g.k.XQ=function(){var a=g.X(this);if(a){var b=!this.Qa.Tt();(a.Ad=b)||a.Ra.stop();if(a.videoData.i)if(b)a.videoData.i.resume();else{var c=a.videoData.i;c.B&&c.B.stop()}g.S(a.u.experiments,"html5_suspend_loader")&&a.l&&(b?a.l.resume():TV(a,!0));g.S(a.u.experiments,"html5_fludd_suspend")&&(g.V(a.playerState,2)||b?g.V(a.playerState,512)&&b&&a.Jb(bJ(a.playerState,512)):a.Jb(aJ(a.playerState,512)));a=a.C;a.qoe&&(a=a.qoe,g.yU(a,g.tR(a.provider),"stream",[b?"A":"I"]))}};
g.k.EQ=function(){this.Qa.La("onLoadedMetadata")};
g.k.oQ=function(){this.Qa.La("onDrmOutputRestricted")};
g.k.EB=function(){this.ld=!0};
g.k.oa=function(){this.C.dispose();this.va.dispose();this.I&&this.I.dispose();this.l.dispose();this.Xg();g.vi(g.Kb(this.Wc),this.playlist);Kr(this.Da);this.Da=0;g.F.prototype.oa.call(this)};
g.k.Z=function(){};
g.k.ea=function(a){return g.S(this.i.experiments,a)};
g.k.Tx=function(){return this.ib};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.Bd=a};
g.k.seekToChapterWithAnimation=function(a){var b,c,d=null===(b=GL(this.ob()))||void 0===b?void 0:b.ut(),e=null===(c=this.getVideoData())||void 0===c?void 0:c.jl;if(this.ea("web_player_seek_chapters_by_shortcut")&&e&&d instanceof g.KM&&a<e.length&&0<=a){var f=1E3*this.getCurrentTime()<e[a].startTime?1:-1;d.CJ(f,e[a].title);CW(this,e[a].startTime/1E3)}};
g.k.cancelPendingLocalMediaById=function(a){if(this.X&&this.ea("hoffle_api")){var b=this.X,c=YE(a);1===c||0===c?a=Promise.resolve():(c=xL(b,a),c===b.player?(b.player.stopVideo(),$V(b.player)):c&&($V(c),EG(c.getVideoData(),!1)),a=jna(a))}else a=Promise.reject();return a};
g.k.fetchLocalMediaById=function(a){return this.X&&this.ea("hoffle_api")?ona(this.X,a):Promise.reject()};
g.k.getLocalPlayerResponse=function(a){return this.W&&this.ea("woffle_orchestration")?hra(this.W,a):this.X&&this.ea("hoffle_api")?pna(this.X,a):Promise.reject()};
g.k.getLocalMediaInfoById=function(a){return this.W&&this.ea("woffle_orchestration")?this.W.getLocalMediaInfoById(a):this.X&&this.ea("hoffle_api")?this.X.getLocalMediaInfoById(a):Promise.reject()};
g.k.getAllLocalMediaInfo=function(){return this.W&&this.ea("woffle_orchestration")?this.W.getAllLocalMediaInfo():this.X&&this.ea("hoffle_api")?this.X.getAllLocalMediaInfo():Promise.reject()};
g.k.downloadVideo=function(a){return g.C(this,function c(){var d=this,e;return g.z(c,function(f){if(1==f.i)return d.W&&d.ea("woffle_orchestration")?g.w(f,fra(d.W,[a]),2):f.return(Promise.reject());e=f.l;return f.return(e[0])})})};
g.k.refreshAllVideos=function(){return this.W&&this.ea("woffle_orchestration")?this.W.refreshAllVideos():Promise.reject()};
g.k.deleteVideos=function(a){return this.W&&this.ea("woffle_orchestration")?this.W.deleteVideos(a):Promise.reject()};
g.k.deleteAllVideos=function(){return this.W&&this.ea("woffle_orchestration")?this.W.deleteAllVideos():Promise.reject()};
g.k.startOrchestration=function(){return this.W&&this.ea("woffle_orchestration")?this.W.startOrchestration():Promise.reject()};
g.k.stopOrchestration=function(){return this.W&&this.ea("woffle_orchestration")?this.W.stopOrchestration():Promise.reject()};
g.k.getStatsForNerds=function(){var a=this.Qa,b=g.X(this),c=a.getVideoData(),d=a.Dd(),e=d.Re(),f=b.It(),h=b.Wc,l=8*ZR(h,"bandwidth")/1024,m=ZR(h,"networkactivity")/1024,n=ZR(h,"bufferhealth");if(b.J){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.J.i.Uf()+"/"+iy(RV(b));p+="/"+b.J.Uf()}else p="";var r=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),u=BB(d.Mg(),",",3),x="";c.playerResponse&&c.playerResponse.playerConfig&&c.playerResponse.playerConfig.daiConfig&&c.playerResponse.playerConfig.daiConfig.enableDai&&
(c.enableServerStitchedDai&&(x+="SS"),x+="DAI, ");if(c.fetchType){switch(c.fetchType){case "onesie":var y="o";break;case "gp":y="gp";break;default:y="gvi"}x+="vd:"+y+", "}if(y=c.fq)x+="mb:",Object.keys(y.i).length?(y.hasDecryptedBytes()&&(x+="e"),x=Lta(y)?x+"c":Kta(y)?x+"p":x+"x",Mta(y)&&(x+="f")):x+="0",x+=", ";x+="s:"+r+" t:"+t+" b:"+u+" ";d.us()&&(x+="S");d.mm()&&(x+="P");d.Jk()&&(x+="E");d=b.C;d=d.qoe?d.qoe.Ga:void 0;d&&(x+=" l:"+d.toFixed());d=b.getCurrentTime();r=c.yq;d&&d>r.start&&d<r.end&&
(x+=" as");d=x;x=g.cE();r=g.QL(a).NO;t=c.u&&!c.u.i?"display:none":"";if((u=c.clientPlaybackNonce)&&16==u.length){y=0;for(var E="",D=0;10>D;D++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(u.charAt(D)),4==D%5){for(var G="",I=0;6>I;I++)G="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+G,y>>=5;E+=G}u=E.substr(0,4)+" "+E.substr(4,4)+" "+E.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",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:r,shader_info_style:r?"":"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=eH(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.Uj.toFixed(1);
isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=e.videoWidth+"x"+e.videoHeight;if(a=c.l)if(e=a.video)f=e.fps,1<f&&(l.resolution+="@"+f),(f=g.OV(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=nsa(a),!c.J||a.audio&&a.video?a.audio&&a.audio.itag&&(l.codecs+=" / "+a.audio.itag+"A"):l.codecs+=" / "+nsa(c.J),e.l||e.primaries?(a=e.l||"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.kf;l.live_mode_style=e||a?"":"display:none";l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(AG(c)?" Manifestless":"");else if(e){a=ZR(h,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=AG(c)?"Manifestless, ":"";c.Yk&&(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=YR(h,"bandwidth");l.network_activity_samples=
YR(h,"networkactivity");l.live_latency_samples=YR(h,"livelatency");l.buffer_health_samples=YR(h,"bufferhealth");sG(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20210329_1_RC0",l.release_style=""):l.release_style="display:none";return l};
g.k.getVideoUrl=function(a,b,c,d,e){return this.L&&this.L.postId?(a=this.i.getVideoUrl(a),a=Nd(a,"v"),a.replace("/watch","/clip/"+this.L.postId)):this.i.getVideoUrl(a,b,c,d,e)};
var J0={};g.Fa("yt.player.Application.create",g.bW.create,void 0);g.Fa("yt.player.Application.createAlternate",g.bW.create,void 0);var K0=kt(),L0={qp:[{JH:/Unable to load player module/,weight:5},{JH:/Failed to fetch/,weight:500}]};L0.qp&&(K0.qp=K0.qp.concat(L0.qp));L0.Fq&&(K0.Fq=K0.Fq.concat(L0.Fq));var lFa=g.Ja("ytcsi.tick");lFa&&lFa("pe");var mFa={l3:"replaceUrlMacros",hZ:"isExternalShelfAllowedFor",f2:"onAboutThisAdPopupClosed"};FW.prototype.Dk=function(){return"adLifecycleCommand"};
FW.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.em(function(){b.controller.Jm()});
break;case "END_LINEAR_AD_PLACEMENT":g.em(function(){b.controller.zk()});
break;case "FILL_ABOVE_FEED_SLOT":g.em(function(){a.elementId&&b.controller.jt(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":g.em(function(){b.controller.Ps()})}};
FW.prototype.Ml=function(a){this.handle(a)};GW.prototype.Dk=function(){return"clearCueRangesCommand"};
GW.prototype.handle=function(){var a=this.gA();g.em(function(){a.Eg(Array.from(a.xo))})};
GW.prototype.Ml=function(a){this.handle(a)};HW.prototype.Dk=function(){return"muteAdEndpoint"};
HW.prototype.handle=function(a){Oza(this,a)};
HW.prototype.Ml=function(a,b){Oza(this,a,b)};IW.prototype.Dk=function(){return"openPopupAction"};
IW.prototype.handle=function(){};
IW.prototype.Ml=function(a){this.handle(a)};JW.prototype.Dk=function(){return"pingingEndpoint"};
JW.prototype.handle=function(){};
JW.prototype.Ml=function(a){this.handle(a)};KW.prototype.Dk=function(){return"urlEndpoint"};
KW.prototype.handle=function(a,b){b=g.Xm(a.url,b);var c,d;a=(null===(c=a.browserConversionApiData)||void 0===c?0:c.impressiondata)&&(null===(d=a.browserConversionApiData)||void 0===d?0:d.conversiondestination)?{attributionSourceEventId:a.browserConversionApiData.impressiondata,attributeOn:a.browserConversionApiData.conversiondestination,attributionReportTo:a.browserConversionApiData.reportingorigin,attributionExpiry:Number(a.browserConversionApiData.impressionexpiry)||void 0}:void 0;g.FI(b,void 0,
void 0,a)};
KW.prototype.Ml=function(){Q("Trying to handle UrlEndpoint with no macro in controlflow")};LW.prototype.Dk=function(){return"adPingingEndpoint"};
LW.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Fs.send(a,b,c)};
LW.prototype.Ml=function(a,b,c,d){BBa(this.Va.get(),a,b,void 0,d,c)};MW.prototype.Dk=function(){return"changeEngagementPanelVisibilityAction"};
MW.prototype.handle=function(a){this.G.La("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
MW.prototype.Ml=function(a){this.handle(a)};NW.prototype.Dk=function(){return"loggingUrls"};
NW.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.q(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.Bj.send(d.baseUrl,b,c,d.headers)};
NW.prototype.Ml=function(a,b,c,d){a=g.q(a);for(var e=a.next();!e.done;e=a.next())e=e.value,BBa(this.Va.get(),e.baseUrl,b,e.headers,d,c)};g.v(Qza,g.F);var bAa=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"]]);var lAa=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"]]);var Uza=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"]]),Sza=new Map([["normal",{Eu:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Ru:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Eu:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Ru:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{Eu:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Ru:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Eu:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Ru:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Eu:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Ru:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}]]);g.v(VW,g.F);g.k=VW.prototype;g.k.rB=function(a){return this.i.rB(a)};
g.k.qB=function(a,b){return this.i.qB(a,b)};
g.k.PA=function(a,b){return this.i.PA(a,b)};
g.k.Uh=function(a,b){KX(this.Xb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.q(this.Ud),d=c.next();!d.done;d=c.next())d.value.Uh(a,b)};
g.k.Bf=function(a){if(ZW(this.i,a)){KI(this.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.i.Bf(a);for(var b=g.q(this.Ud),c=b.next();!c.done;c=b.next())c.value.Bf(a);Zza(this,a)}};
g.k.Cf=function(a){if(ZW(this.i,a)){KI(this.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.i.Cf(a);for(var b=g.q(this.Ud),c=b.next();!c.done;c=b.next())c.value.Cf(a);ZW(this.i,a)&&$W(this.i,a).C&&XW(this,a,!1)}};
g.k.vx=function(a){KI(this.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);ZW(this.i,a)&&(this.i.vx(a),XW(this,a,!1))};
g.k.Tc=function(a,b){if(ZW(this.i,a)){aX(this.Xb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.q(this.Ud),d=c.next();!d.done;d=c.next())d.value.Tc(a,b)}};
g.k.Od=function(a,b,c){if(ZW(this.i,a)){aX(this.Xb,Tza(c),a,b);this.i.Od(a,b);for(var d=g.q(this.Ud),e=d.next();!e.done;e=d.next())e.value.Od(a,b,c);(c=mX(this.i,a))&&b.layoutId===c.layoutId&&iAa(this,a,!1)}};
g.k.Af=function(a,b,c){Q(c,a,b,void 0,c.zo);XW(this,a,!0)};
g.k.oa=function(){var a=kAa(this.i);a=g.q(a);for(var b=a.next();!b.done;b=a.next())XW(this,b.value,!1);g.F.prototype.oa.call(this)};jAa.prototype.isActive=function(){switch(this.i){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.v(bX,Wa);g.v(jX,Wa);g.v(qX,g.F);g.k=qX.prototype;g.k.PA=function(a,b){b=lX(this,a+"_"+b);a=[];b=g.q(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.rB=function(a){for(var b=g.q(this.i.values()),c=b.next();!c.done;c=b.next()){c=g.q(c.value.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.slot.slotId===a&&"scheduled"===d.i)return!0}return!1};
g.k.qB=function(a,b){a=lX(this,a+"_"+b);a=g.q(a.values());for(b=a.next();!b.done;b=a.next())if(kX(b.value))return!0;return!1};
g.k.wh=function(a){a=$W(this,a);"not_scheduled"!==a.i&&nX(a.slot,a.i,"onSlotScheduled");a.i="scheduled"};
g.k.kt=function(a){a=$W(this,a);a.B="fill_requested";a.J.kt()};
g.k.Bf=function(a){a=$W(this,a);"enter_requested"!==a.i&&nX(a.slot,a.i,"onSlotEntered");a.i="entered"};
g.k.vx=function(a){$W(this,a).B="fill_canceled"};
g.k.Cf=function(a){a=$W(this,a);"exit_requested"!==a.i&&nX(a.slot,a.i,"onSlotExited");a.i="scheduled"};
g.k.Od=function(a,b){a=$W(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.i&&nX(a.slot,a.i,"onLayoutExited"),a.i="entered")};g.v(tX,g.F);tX.prototype.u=function(){return this.l};g.v(uX,g.F);uX.prototype.get=function(){this.Ha()&&Q("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.i});this.i||(this.i=this.l());return this.i};g.v(JX,g.F);g.v(LX,g.F);LX.prototype.ge=function(){};
LX.prototype.ag=function(a){var b=this,c=this.i.get(a);c&&(this.i.delete(a),this.Sb.get().removeCueRange(a),Yu(this.Ib.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.zb.get();d=OX(d.gb.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign(Object.assign({},c),{slotId:d,kc:c.kc?qBa(c.slotId,d,c.kc):void 0,nf:rBa(c.slotId,d,c.nf),Gf:rBa(c.slotId,d,c.Gf)})]},c.slotId))};
LX.prototype.Sh=function(){for(var a=g.q(this.i.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.Sb.get().removeCueRange(b);this.i.clear()};
LX.prototype.Pk=function(){};g.v(MX,g.F);g.k=MX.prototype;g.k.wh=function(){};
g.k.Gi=function(){};
g.k.Bf=function(){};
g.k.Fi=function(){};
g.k.Cf=function(){};
g.k.zj=function(){};
g.k.Aj=function(){};
g.k.Ei=function(a,b){this.i.has(a)||this.i.set(a,new Set);this.i.get(a).add(b)};
g.k.xj=function(a,b){this.Hj.has(a)&&this.Hj.get(a)===b&&Q("Unscheduled a Layout that is currently entered.",a,b);if(this.i.has(a)){var c=this.i.get(a);c.has(b)?(c.delete(b),0===c.size&&this.i.delete(a)):Q("Trying to unscheduled a Layout that was not scheduled.",a,b)}else Q("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Tc=function(a,b){this.Hj.set(a,b)};
g.k.Od=function(a){this.Hj.delete(a)};
g.k.Uh=function(){};ZX.prototype.clone=function(a){var b=this;return new ZX(function(){return b.triggerId},a)};$X.prototype.clone=function(a){var b=this;return new $X(function(){return b.triggerId},a)};aY.prototype.clone=function(a){var b=this;return new aY(function(){return b.triggerId},a)};bY.prototype.clone=function(a){var b=this;return new bY(function(){return b.triggerId},a)};cY.prototype.clone=function(a){var b=this;return new cY(function(){return b.triggerId},a)};g.v(fY,g.F);fY.prototype.logEvent=function(a){KX(this,a)};g.v(hY,g.F);g.k=hY.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.Sh=function(a,b,c,d,e,f,h){var l;if(""===a)Q("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else{this.i=a;this.Ea.get().Sh(a,b,c,d,e,f,h);null===(l=this.Se)||void 0===l?void 0:l.get().Sh(a,b,c,d,e,f,h);this.l.Sh(a,b,c,d,e,f,h);for(var m=g.q(this.listeners),n=m.next();!n.done;n=m.next())n.value.Sh(a,b,c,d,e,f,h)}};
g.k.aM=function(){this.i&&this.Pk(this.i)};
g.k.Pk=function(a){this.i=void 0;for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Pk(a)};g.v(iY,g.F);iY.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?2:f;h=void 0===h?1:h;this.i.has(a)?Q("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new uBa(a,b,c,d,f),this.i.set(a.id,{ue:a,listener:e,Nj:h}),this.G.Td([a],h))};
iY.prototype.removeCueRange=function(a){var b=this.i.get(a);b?(this.G.Eg([b.ue],b.Nj),this.i.delete(a)):Q("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
iY.prototype.ge=function(a){this.i.has(a.id)&&this.i.get(a.id).listener.ge(a.id)};
iY.prototype.ag=function(a){this.i.has(a.id)&&this.i.get(a.id).listener.ag(a.id)};
g.v(uBa,g.pw);jY.prototype.Hi=function(a){this.G.Hi(a)};
jY.prototype.La=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.G.La.apply(this.G,[a].concat(g.ma(c)))};oY.prototype.bf=function(a,b){if(!this.i.has(a))return{};if("seek"===b){var c=g.S(this.G.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock");fl(a,c);return{}}c=yia(b);if(null===c)return{};if(g.S(this.G.T().experiments,"enable_server_stitched_dai")&&2!==this.G.getPresentingPlayerType(!0))return Q("Unexpected call to Lidar API when the player is not playing ads",void 0,void 0,{layoutId:a,trackingType:b}),{};b=(b=this.G.Ic())&&(g.S(this.G.T().experiments,"enable_server_stitched_dai")||
2===b.getPlayerType())&&$H(b);if(!b)return{};b={opt_adElement:b,opt_fullscreen:this.Ea.get().isFullscreen()};return el(c,a,b)};
oY.prototype.nx=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.nx()};
oY.prototype.mx=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.mx()};
oY.prototype.ox=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.ox()};qY.prototype.jh=function(){var a=this.G.Ic();return a&&(a=a.jh(1))?a:null};g.v(vY,g.F);g.k=vY.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.qS=function(a,b,c){HBa(this,b,c)};
g.k.PR=function(a){var b=this.G.getPresentingPlayerType(!0),c=this.G.getVideoData(b);c?HBa(this,c,b):Q("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.G.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.oa=function(){this.listeners.length=0;this.Mo=null;g.F.prototype.oa.call(this)};g.v(wY,g.F);g.k=wY.prototype;g.k.Sh=function(){var a=this;this.yk=$a(function(){a.G.Ha()||a.G.Id("ad",1)})};
g.k.Pk=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.getCurrentTimeSec=function(a,b){return this.G.getCurrentTime(a,b)};
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.qR=function(){if(2===this.G.getPresentingPlayerType(!0))for(var a=this.getCurrentTimeSec(2,!1),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ok(a)};
g.k.hR=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Wl(a)};
g.k.cg=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.cg(a)};
g.k.Ug=function(){for(var a=g.q(this.listeners),b=a.next();!b.done;b=a.next())b.value.Ug()};
g.k.Th=function(){for(var a=this.G.jf(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Th(a)};
g.k.kb=function(){for(var a=this.G.Wa().Og(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Tl(a)};g.v(KBa,g.F);xY.prototype.executeCommand=function(a,b,c){IJ(this.i(),a,b,c)};
xY.prototype.wd=function(a,b,c){ila(this.i(),a,b,c)};zY.prototype.kt=function(){var a=this;NBa(this.i,function(){var b=R(a.slot.Fa,"metadata_type_ad_break_request_data");return a.Rd.get().fetch({wK:b.getAdBreakUrl,aG:new g.pw(b.xJ,b.wJ),Us:R(a.slot.Fa,"metadata_type_cue_point")})},function(b){var c;
b=b.vl;2<=b.length&&Q("Unexpected ad placement renderers length",a.slot,null,{length:b.length});var d=R(a.slot.Fa,"metadata_type_cue_point");b.some(function(e){var f,h,l;return null===(l=null===(h=null===(f=e.renderer)||void 0===f?void 0:f.linearAdSequenceRenderer)||void 0===h?void 0:h.linearAds)||void 0===l?void 0:l.length})||(null===(c=a.Ye)||void 0===c?void 0:c.get().wp(d.identifier))})};
zY.prototype.Qz=function(){OBa(this.i)};AY.prototype.kt=function(){var a=this;NBa(this.i,function(){var b=R(a.slot.Fa,"metadata_type_ad_break_request_data");return a.Rd.get().fetch({wK:b.getAdBreakUrl,aG:new g.pw(b.xJ,b.wJ)})})};
AY.prototype.Qz=function(){OBa(this.i)};BY.prototype.kt=function(){$za(this.callback,this.slot,R(this.slot.Fa,"metadata_type_fulfilled_layout"))};
BY.prototype.Qz=function(){YW(this.callback,this.slot,new jX("Got CancelSlotFulfilling request for "+this.slot.sb+" in DirectFulfillmentAdapter."))};DY.prototype.Qf=function(a,b){return CY(b,{Je:["metadata_type_fulfilled_layout"]})?new BY(a,b):this.i(a,b)};g.v(EY,DY);EY.prototype.i=function(a,b){if(CY(b,{Je:["metadata_type_ad_break_request_data","metadata_type_cue_point"],sb:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new zY(a,b,this.Rd,this.Pb,this.xb,this.Ye);if(CY(b,{Je:["metadata_type_ad_break_request_data"],sb:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new AY(a,b,this.Rd,this.Pb,this.xb);throw new jX("Unsupported slot with type: "+b.sb+" and client metadata: "+QW(b.Fa)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.v(FY,DY);FY.prototype.i=function(a,b){throw new jX("Unsupported slot with type: "+b.sb+" and client metadata: "+QW(b.Fa)+" in DefaultFulfillmentAdapterFactory.");};g.k=PBa.prototype;g.k.Le=function(){return this.slot};
g.k.Ub=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.Af(this.slot,a,new bX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=R(a.Fa,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.sb?(this.callback.Tc(this.slot,a),wfa(this.i,this.slot,b)):Q("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.k.qf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Af(this.slot,a,new bX("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Od(this.slot,a,b)};HY.prototype.Qf=function(a,b,c,d){if(GY(d,{Je:["metadata_type_ad_break_response_data"],Dg:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new PBa(a,c,d,this.i);throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.Fa)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};IY.prototype.bf=function(a){var b=this.B.get(a)||[];CBa(this.Va.get(),this.layoutId,a,b);this.i.add(a)};g.k=RBa.prototype;g.k.Le=function(){return this.slot};
g.k.Ub=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Af(this.slot,a,new bX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Tc(this.slot,a),LY(this.l,"impression"),XY(this.i,a.layoutId))};
g.k.qf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Af(this.slot,a,new bX("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Od(this.slot,a,b)};MY.prototype.Qf=function(a,b,c,d){if(GY(d,SBa()))return new RBa(a,c,d,this.Va,this.i);throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.Fa)+" in ForecastingLayoutRenderingAdapterFactory.");};g.v(NY,g.P);g.k=NY.prototype;g.k.Le=function(){return this.slot};
g.k.Ub=function(){return this.layout};
g.k.init=function(){this.l.get().addListener(this)};
g.k.release=function(){this.l.get().removeListener(this);this.dispose()};
g.k.WH=function(){};
g.k.VH=function(){};
g.k.Kt=function(){};
g.k.ZA=function(){};
g.k.YA=function(){};
g.k.Fw=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.Af(this.slot,a,new bX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{a=this.l.get();var b=this.i,c=this.layout.layoutId;if(g.S(a.G.T().experiments,"html5_sync_ad_ux_clear_notification_in_pacf"))for(var d=g.q(a.listeners),e=d.next();!e.done;e=d.next())e.value.WH(c);qCa(a,b,1)}};
g.k.qf=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.Af(this.slot,a,new bX("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var c=this.l.get(),d=this.i,e=this.layout.layoutId;if(g.S(c.G.T().experiments,"html5_sync_ad_ux_clear_notification_in_pacf"))for(var f=g.q(c.listeners),h=f.next();!h.done;h=f.next())h.value.VH(e);qCa(c,d,3);this.i=[];this.callback.Od(this.slot,a,b)}};
g.k.oa=function(){this.l.get().removeListener(this);g.P.prototype.oa.call(this)};g.v(TBa,bI);g.v(QY,NY);g.k=QY.prototype;g.k.lh=function(a,b){PY("action-companion",a,this.J.get().Hj,this.Va.get(),this.u,this.C,this.Le(),this.Ub(),b)};
g.k.startRendering=function(a){OY(this.I,this.Le(),this.Ub(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new TBa(b,c,d,e,f)},this.i);
NY.prototype.startRendering.call(this,a)};
g.k.Tc=function(a,b){b.layoutId===this.layout.layoutId?LY(this.I,"impression"):this.C===b.layoutId&&(null===this.u?this.u=this.Va.get().jh():Q("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Od=function(){};
g.k.wh=function(){};
g.k.Gi=function(){};
g.k.Fi=function(){};
g.k.Bf=function(){};
g.k.Cf=function(){};
g.k.zj=function(){};
g.k.Aj=function(){};
g.k.Ei=function(){};
g.k.xj=function(){};
g.k.Uh=function(){};
g.k.oa=function(){this.B().Ud.delete(this);NY.prototype.oa.call(this)};g.v(RY,NY);RY.prototype.init=function(){NY.prototype.init.call(this);var a=R(this.layout.Fa,"metadata_type_ad_action_interstitial_renderer"),b=KY(this.u);this.i.push(new jI(a,b,this.layout.layoutId,{adsClientData:this.layout.Nc},!0,!0))};
RY.prototype.startRendering=function(a){NY.prototype.startRendering.call(this,a);this.callback.Tc(this.slot,a)};
RY.prototype.lh=function(){};
RY.prototype.oa=function(){NY.prototype.oa.call(this)};g.v(SY,NY);g.k=SY.prototype;g.k.init=function(){NY.prototype.init.call(this);var a=R(this.layout.Fa,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Nc},c=!R(this.layout.Fa,"metadata_type_player_bytes_callback").nB;this.i.push(new GI(a,this.layout.layoutId,R(this.layout.Fa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.zr=function(){if(!this.u){var a=this.Ea.get();2===a.G.getPlayerState(2)&&a.G.playVideo()}};
g.k.startRendering=function(a){NY.prototype.startRendering.call(this,a);this.callback.Tc(this.slot,a);this.Kd.po=this};
g.k.qf=function(a,b){NY.prototype.qf.call(this,a,b);w_(this.Kd,this)};
g.k.lh=function(a){a:{var b=this.B.get();var c=this.C;b=g.q(b.Hj.values());for(var d=b.next();!d.done;d=b.next())if(d.value.layoutId===c){c=!0;break a}c=!1}if(c)switch(a){case "visit-advertiser":this.Va.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.u||(a=this.Ea.get(),2===a.G.getPlayerState(2)&&a.G.playVideo());break;case "ad-info-icon-button":(this.u=2===this.Ea.get().G.getPlayerState(2))||
this.Ea.get().pauseVideo();break;case "visit-advertiser":this.Ea.get().pauseVideo();R(this.layout.Fa,"metadata_type_player_bytes_callback").tC();break;case "skip-button":a=R(this.layout.Fa,"metadata_type_player_bytes_callback"),a.nB&&a.UI()}};
g.k.oa=function(){NY.prototype.oa.call(this)};UY.prototype.Qf=function(a,b,c,d){if(a=TY(a,c,d,this.Yb,this.Ea,this.Va,this.i,this.Kd))return a;throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.Fa)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.v(VY,g.F);g.k=VY.prototype;g.k.startRendering=function(a){a.layoutId!==this.Ub().layoutId?this.callback.Af(this.Le(),a,new bX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Ub().layoutId+("and LayoutType: "+this.Ub().layoutType))):(this.Ea.get().addListener(this),this.Ea.get().G.Gj(2),Kja(this.ud.get()),this.pE(a))};
g.k.qf=function(a,b){this.qE(a,b);this.Ea.get().G.Dn(2);this.Cd.get().G.cueVideoByPlayerVars({},2);a=pY(this.Ea.get(),1);g.V(a,4)&&!g.V(a,2)&&this.Ea.get().playVideo();this.Ea.get().removeListener(this)};
g.k.Wl=function(a){var b,c;a.state.isError()?this.Af(null===(b=a.state.getData())||void 0===b?void 0:b.errorCode,new bX("There was a player error during this media layout.",{playerErrorCode:null===(c=a.state.getData())||void 0===c?void 0:c.errorCode})):nY(this.Ka.get())&&this.KI(a)};
g.k.Ok=function(a){nY(this.Ka.get())&&this.aI(a)};
g.k.cg=function(a){nY(this.Ka.get())&&this.qI(a)};
g.k.Th=function(a){nY(this.Ka.get())&&this.wI(a)};
g.k.Tl=function(a){nY(this.Ka.get())&&this.YH(a)};
g.k.Ug=function(){nY(this.Ka.get())&&this.bJ()};g.v(WY,VY);g.k=WY.prototype;g.k.Le=function(){return this.slot};
g.k.Ub=function(){return this.layout};
g.k.init=function(){if(1>=this.l.length)throw new jX("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.l.length)});for(var a=g.q(this.l),b=a.next();!b.done;b=a.next())b=b.value,b.init(),fX(this.u,this.slot,b.Ub())};
g.k.release=function(){for(var a=g.q(this.l),b=a.next();!b.done;b=a.next())b.value.release()};
g.k.pE=function(){-1===this.i&&XBa(this)};
g.k.YR=function(a,b){gX(this.u,a,b)};
g.k.qE=function(a,b){var c=this;this.i!==this.l.length?(a=this.l[this.i],a.qf(a.Ub(),b),this.B=function(){c.callback.Od(c.slot,c.layout,b)}):this.callback.Od(this.slot,this.layout,b)};
g.k.aI=function(a){var b=this.l[this.i];b?b.Ok(a):Q("No active adapter found onAdPlaybackProgressUpdatedHelper in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Ub().layoutId})};
g.k.KI=function(a){var b=this.l[this.i];b?b.Wl(a):Q("No active adapter found onPresentingPlayerControlsStateChangedHelper in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Ub().layoutId})};
g.k.Af=function(a,b){-1===this.i&&(this.callback.Tc(this.slot,this.layout),this.i++);var c=this.l[this.i];c?c.du(a,b):Q("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Ub().layoutId})};
g.k.qI=function(a){var b=this.l[this.i];b?b.cg(a):Q("No active adapter found onFullscreenToggledHelper in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Ub().layoutId})};
g.k.wI=function(a){var b=this.l[this.i];b?b.Th(a):Q("No active adapter found onMinimizeChangeHelper in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Ub().layoutId})};
g.k.YH=function(a){var b=this.l[this.i];b?b.Tl(a):Q("No active adapter found onAdContainerResizeHelper in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Ub().layoutId})};
g.k.bJ=function(){var a=this.l[this.i];a?a.Ug():Q("No active adapter found onVolumeChangeHelper in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Ub().layoutId})};
g.k.aS=function(a,b,c){YBa(this,a,b,c)};
g.k.ZR=function(a,b){YBa(this,a,b,"error")};g.v(aZ,g.F);g.k=aZ.prototype;g.k.Le=function(){return this.slot};
g.k.Ub=function(){return this.layout};
g.k.init=function(){WW(this.L(),this);nY(this.Ka.get())||this.Ea.get().addListener(this);var a=R(this.layout.Fa,"metadata_type_video_length_seconds");xBa(this.yb.get(),this.layout.layoutId,a,this);tY(this.Va.get(),this);this.bH()};
g.k.release=function(){this.L().Ud.delete(this);nY(this.Ka.get())||this.Ea.get().removeListener(this);yBa(this.yb.get(),this.layout.layoutId);uY(this.Va.get(),this);this.BJ()};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Af(this.slot,a,new bX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.l="rendering_start_requested",Fia(this.qe.get(),1)?(this.Ns(!1),this.B(-1),this.sE(a)):this.du("ui_unstable",new bX("Failed to render media layout because ad ui unstable.")))};
g.k.Tc=function(a,b){var c,d,e;b.layoutId===this.layout.layoutId&&(this.l="rendering",LY(this.i,"impression"),LY(this.i,"start"),this.Ea.get().isMuted()&&(this.i.bf("mute"),a=(null===(c=$Y(this))||void 0===c?void 0:c.muteCommands)||[],this.Hb.get().wd(a,this.layout.layoutId)),this.Ea.get().isFullscreen()&&(this.i.bf("fullscreen"),a=(null===(d=$Y(this))||void 0===d?void 0:d.fullscreenCommands)||[],this.Hb.get().wd(a,this.layout.layoutId)),Nja(this.ud.get()),this.B(1),this.sI(),a=(null===(e=$Y(this))||
void 0===e?void 0:e.impressionCommands)||[],this.Hb.get().wd(a,this.layout.layoutId))};
g.k.du=function(a,b){this.ra={Ay:3,bv:"load_timeout"===a?402:400,errorMessage:b.message};var c;LY(this.i,"error");a=(null===(c=$Y(this))||void 0===c?void 0:c.errorCommands)||[];this.Hb.get().wd(a,this.layout.layoutId);this.callback.Af(this.slot,this.layout,b)};
g.k.qf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Af(this.slot,a,new bX("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):"rendering_stop_requested"!==this.l&&(this.l="rendering_stop_requested",this.J=b,this.tE())};
g.k.Od=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.l="not_rendering",this.J=void 0,Mja(this.ud.get()),this.Ns(!0),this.tI(c),this.B(0),c){case "abandoned":var d;if(this.i.i.has("impression")){LY(this.i,"abandon");var e=(null===(d=$Y(this))||void 0===d?void 0:d.abandonCommands)||[];this.Hb.get().wd(e,this.layout.layoutId)}break;case "normal":LY(this.i,"complete");d=(null===(e=$Y(this))||void 0===e?void 0:e.completeCommands)||[];this.Hb.get().wd(d,this.layout.layoutId);break;case "skipped":var f;
LY(this.i,"skip");d=(null===(f=$Y(this))||void 0===f?void 0:f.skipCommands)||[];this.Hb.get().wd(d,this.layout.layoutId)}};
g.k.Bt=function(){return this.layout.layoutId};
g.k.DA=function(){return this.ra};
g.k.Wl=function(a){if("not_rendering"!==this.l){this.X||(a=new g.dI(a.state,new g.ZI),this.X=!0);var b=2===this.Ea.get().getPresentingPlayerType();if("rendering_start_requested"===this.l)b&&YY(a)&&this.W();else if(b)if(g.fI(a,2))this.rE();else{if(YY(a))this.B(1);else if(g.fI(a,4)&&!g.fI(a,2)){var c;"rendering"===this.l&&(this.i.bf("pause"),b=(null===(c=$Y(this))||void 0===c?void 0:c.pauseCommands)||[],this.Hb.get().wd(b,this.layout.layoutId),this.B(2),this.OG())}if(0>eI(a,4)&&!(0>eI(a,2))){var d;
"rendering"===this.l&&(this.i.bf("resume"),a=(null===(d=$Y(this))||void 0===d?void 0:d.resumeCommands)||[],this.Hb.get().wd(a,this.layout.layoutId),this.PG())}}else this.C()}};
g.k.nx=function(){var a;if("rendering"===this.l){LY(this.i,"active_view_measurable");var b=(null===(a=$Y(this))||void 0===a?void 0:a.activeViewMeasurableCommands)||[];this.Hb.get().wd(b,this.layout.layoutId)}};
g.k.mx=function(){var a;if("rendering"===this.l){LY(this.i,"active_view_fully_viewable_audible_half_duration");var b=(null===(a=$Y(this))||void 0===a?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.Hb.get().wd(b,this.layout.layoutId)}};
g.k.ox=function(){var a;if("rendering"===this.l){LY(this.i,"active_view_viewable");var b=(null===(a=$Y(this))||void 0===a?void 0:a.activeViewViewableCommands)||[];this.Hb.get().wd(b,this.layout.layoutId)}};
g.k.Ns=function(a){this.ud.get().Ns(R(this.layout.Fa,"metadata_type_ad_placement_config").kind,a,this.position,this.Y,!1)};
g.k.cg=function(a){var b,c;"rendering"===this.l&&(a?(this.i.bf("fullscreen"),a=(null===(b=$Y(this))||void 0===b?void 0:b.fullscreenCommands)||[],this.Hb.get().wd(a,this.layout.layoutId)):(this.i.bf("end_fullscreen"),a=(null===(c=$Y(this))||void 0===c?void 0:c.endFullscreenCommands)||[],this.Hb.get().wd(a,this.layout.layoutId)))};
g.k.Ug=function(){var a,b;if("rendering"===this.l)if(this.Ea.get().isMuted()){this.i.bf("mute");var c=(null===(a=$Y(this))||void 0===a?void 0:a.muteCommands)||[];this.Hb.get().wd(c,this.layout.layoutId)}else this.i.bf("unmute"),c=(null===(b=$Y(this))||void 0===b?void 0:b.unmuteCommands)||[],this.Hb.get().wd(c,this.layout.layoutId)};
g.k.Th=function(){};
g.k.Tl=function(){};
g.k.wh=function(){};
g.k.Gi=function(){};
g.k.Fi=function(){};
g.k.Bf=function(){};
g.k.Cf=function(){};
g.k.zj=function(){};
g.k.Aj=function(){};
g.k.Ei=function(){};
g.k.xj=function(){};
g.k.Uh=function(){};g.v(cZ,aZ);g.k=cZ.prototype;g.k.bH=function(){};
g.k.BJ=function(){};
g.k.sE=function(){var a=this.Va.get();a.i?Q("Trying to register a second SurveyProgressSupplier."):a.i=this;this.W()};
g.k.sI=function(){cCa(this)};
g.k.rE=function(){};
g.k.OG=function(){this.u.stop()};
g.k.PG=function(){cCa(this)};
g.k.Uq=function(){return R(this.Ub().Fa,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.tE=function(){this.u.stop();var a=this.Va.get();a.i!==this?Q("Trying to unregister a SurveyProgressSupplier that has not been registered yet."):a.i=null};
g.k.Rb=function(){var a=Date.now(),b=a-this.I;this.I=a;this.ek+=b;this.ek>=this.Uq()?(this.ek=this.Uq(),bZ(this,this.ek/1E3,!0),dZ(this,this.ek),this.C()):(bZ(this,this.ek/1E3),dZ(this,this.ek))};
g.k.tI=function(){};
g.k.Ok=function(){};g.v(eZ,aZ);g.k=eZ.prototype;g.k.bH=function(){R(this.Ub().Fa,"metadata_type_player_bytes_callback_ref").current=this};
g.k.BJ=function(){R(this.Ub().Fa,"metadata_type_player_bytes_callback_ref").current=null;this.u&&this.Sb.get().removeCueRange(this.u);this.u=void 0;this.I.dispose()};
g.k.sE=function(a){var b=R(a.Fa,"metadata_type_ad_video_id"),c=R(a.Fa,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.ye.get().G.T().L.add(b,{Os:c});(b=R(a.Fa,"metadata_type_sodar_extension_data"))&&LBa(this.le.get(),b);JBa(this.Ea.get(),!1);b=this.Cd.get();a=R(a.Fa,"metadata_type_player_vars");b.G.cueVideoByPlayerVars(a,2);this.I.start();this.Cd.get().G.playVideo(2)};
g.k.Tc=function(a,b){"not_rendering"!==this.l&&"SLOT_TYPE_IN_PLAYER"===a.sb&&"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===b.layoutType&&(this.er=b.layoutId);aZ.prototype.Tc.call(this,a,b)};
g.k.sI=function(){var a;this.I.stop();this.u="adcompletioncuerange:"+this.Ub().layoutId;this.Sb.get().addCueRange(this.u,0x7ffffffffffff,0x8000000000000,!1,this,1,2);(this.adCpn=(null===(a=$u(this.Ta.get(),2))||void 0===a?void 0:a.clientPlaybackNonce)||"")||Q("Media layout confirmed started, but ad CPN not set.");this.Hc.get().La("onAdStart",this.adCpn)};
g.k.rE=function(){this.C()};
g.k.OG=function(){};
g.k.PG=function(){};
g.k.Uq=function(){var a;return null===(a=$u(this.Ta.get(),2))||void 0===a?void 0:a.playbackDurationMs};
g.k.tC=function(){this.i.bf("clickthrough")};
g.k.tE=function(){this.I.stop();JBa(this.Ea.get(),!0)};
g.k.ge=function(a){a!==this.u?Q("Received CueRangeEnter signal for unknown layout.",this.Le(),this.Ub(),{cueRangeId:a}):(this.Sb.get().removeCueRange(this.u),this.u=void 0,a=R(this.Ub().Fa,"metadata_type_video_length_seconds"),bZ(this,a,!0),LY(this.i,"complete"),g.S(this.Ka.get().G.T().experiments,"html5_enable_layout_exit_on_cue_range_complete_in_pacf")&&this.C())};
g.k.tI=function(a){var b;this.Ub().Fa.i.has("metadata_type_ad_intro")||this.er||Q("InPlayer layout never entered for media layout.",this.Le(),this.Ub(),{adCpn:this.adCpn||"empty",layoutExitReason:String(a),layoutId:this.Ub().layoutId,slotEntryTrigger:String(null===(b=this.Le().kc)||void 0===b?void 0:b.triggerType),position:String(this.position),totalLayouts:String(this.Y)});this.er=void 0;"abandoned"!==a&&this.Hc.get().La("onAdComplete");this.Hc.get().La("onAdEnd",this.adCpn)};
g.k.ag=function(){};
g.k.Ok=function(a){"rendering"===this.l&&bZ(this,a)};g.v(fZ,VY);g.k=fZ.prototype;g.k.Le=function(){return this.i.Le()};
g.k.Ub=function(){return this.i.Ub()};
g.k.init=function(){this.i.init()};
g.k.release=function(){this.i.release()};
g.k.pE=function(a){this.i.startRendering(a)};
g.k.qE=function(a,b){this.i.qf(a,b)};
g.k.aI=function(a){this.i.Ok(a)};
g.k.KI=function(a){this.i.Wl(a)};
g.k.Af=function(a,b){this.i.du(a,b)};
g.k.qI=function(a){this.i.cg(a)};
g.k.wI=function(a){this.i.Th(a)};
g.k.YH=function(a){this.i.Tl(a)};
g.k.bJ=function(){this.i.Ug()};gZ.prototype.Qf=function(a,b,c,d){if(a=fCa(a,b,c,d,this.i,this.l,this.Va,this.yb,this.le,this.Cd,this.Ta,this.Ea,this.Sb,this.ud,this.Hc,this.qe,this.Hb,this.ye,this.Ka))return a;throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.Fa)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.v(hZ,g.F);g.k=hZ.prototype;g.k.Tc=function(a,b){var c=this;if(gCa(this)&&"LAYOUT_TYPE_MEDIA"===b.layoutType&&OW(b,this.u)){var d=$u(this.Ta.get(),2),e=this.i(b,d);e?Yu(this.Ib.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){return[sBa(c.zb.get(),e.contentCpn,e.ly,function(f){return c.l(f.slotId,"core",e,TW(c.xb.get(),f))},e.ZG)]}):Q("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.wh=function(){};
g.k.Gi=function(){};
g.k.Bf=function(){};
g.k.Fi=function(){};
g.k.Cf=function(){};
g.k.zj=function(){};
g.k.Aj=function(){};
g.k.Ei=function(){};
g.k.xj=function(){};
g.k.Uh=function(){};
g.k.Od=function(){};var WZ=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=kCa.prototype;g.k.init=function(){};
g.k.Le=function(){return this.slot};
g.k.uA=function(){this.callback.Bf(this.slot)};
g.k.zA=function(){this.callback.Cf(this.slot)};
g.k.release=function(){};jZ.prototype.Qf=function(a,b){return new kCa(a,b)};g.k=lCa.prototype;g.k.init=function(){};
g.k.Le=function(){return this.slot};
g.k.uA=function(){var a=this.Ea.get();g.K(a.G.getRootNode(),"ad-showing");this.callback.Bf(this.slot)};
g.k.zA=function(){this.callback.Cf(this.slot);var a=this.Ea.get();g.kn(a.G.getRootNode(),"ad-showing")};
g.k.release=function(){};g.k=mCa.prototype;g.k.init=function(){};
g.k.Le=function(){return this.slot};
g.k.uA=function(){var a=this.Ea.get();g.K(a.G.getRootNode(),"ad-showing");a=this.Ea.get();g.K(a.G.getRootNode(),"ad-interrupting");this.callback.Bf(this.slot)};
g.k.zA=function(){this.Ea.get().yk();var a=this.Ea.get();g.kn(a.G.getRootNode(),"ad-showing");a=this.Ea.get();g.kn(a.G.getRootNode(),"ad-interrupting");this.callback.Cf(this.slot)};
g.k.release=function(){this.Ea.get().yk()};kZ.prototype.Qf=function(a,b){if(Uv(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new lCa(a,b,this.Ea);if(Uv(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new mCa(a,b,this.Ea);throw new jX("Unsupported slot with type "+b.sb+" and client metadata: "+(QW(b.Fa)+" in PlayerBytesSlotAdapterFactory."));};g.v(mZ,g.F);mZ.prototype.Kt=function(a){for(var b=[],c=g.q(this.Fb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof zX&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.Ae===a&&b.push(d)}b.length&&hX(this.kz(),b)};g.v(nZ,mZ);g.k=nZ.prototype;
g.k.lh=function(a,b){if(b&&!this.Tv.has(b))if("survey-submit"===a){a=[];for(var c=g.q(this.Fb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof AX&&e.Ae===b&&a.push(d)}a.length?hX(this.kz(),a):Q("Survey is submitted but no registered triggers can be activated.")}else if("skip-button"===a){a=[];c=g.q(this.Fb.values());for(d=c.next();!d.done;d=c.next())d=d.value,e=d.trigger,e instanceof zX&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.Ae===b&&a.push(d);a.length&&
hX(this.kz(),a)}};
g.k.Kt=function(a){mZ.prototype.Kt.call(this,a)};
g.k.Li=function(a,b,c,d){if(this.Fb.has(b.triggerId))throw new jX("Tried to register duplicate trigger for slot.");if(!(b instanceof AX||b instanceof zX))throw new jX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Fb.set(b.triggerId,new lZ(a,b,c,d))};
g.k.Wi=function(a){this.Fb.delete(a.triggerId)};
g.k.WH=function(a){this.Tv.delete(a)};
g.k.VH=function(a){this.Tv.add(a)};
g.k.xj=function(a,b){this.Tv.delete(b.layoutId)};
g.k.ZA=function(){};
g.k.YA=function(){};
g.k.Fw=function(){};
g.k.wh=function(){};
g.k.Gi=function(){};
g.k.Fi=function(){};
g.k.Bf=function(){};
g.k.Cf=function(){};
g.k.zj=function(){};
g.k.Aj=function(){};
g.k.Ei=function(){};
g.k.Tc=function(){};
g.k.Od=function(){};
g.k.Uh=function(){};g.v(oZ,g.F);g.k=oZ.prototype;
g.k.Li=function(a,b,c,d){if(this.Fb.has(b.triggerId))throw new jX("Tried to register duplicate trigger for slot.");if(!(b instanceof ZX||b instanceof $X||b instanceof aY||b instanceof bY||b instanceof cY||b instanceof RX||b instanceof Wv||b instanceof yX||b instanceof FX||b instanceof QX||b instanceof VX))throw new jX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new lZ(a,b,c,d);this.Fb.set(b.triggerId,a);b instanceof cY&&this.C.has(b.dh)&&
hX(this.i(),[a]);b instanceof ZX&&this.u.has(b.dh)&&hX(this.i(),[a]);b instanceof Wv&&this.l.has(b.Ae)&&hX(this.i(),[a])};
g.k.Wi=function(a){this.Fb.delete(a.triggerId)};
g.k.wh=function(a){this.C.add(a.slotId);for(var b=[],c=g.q(this.Fb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof cY&&a.slotId===d.trigger.dh&&b.push(d);0<b.length&&hX(this.i(),b)};
g.k.Gi=function(a){this.C.delete(a.slotId)};
g.k.Fi=function(a){for(var b=[],c=g.q(this.Fb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof RX&&e.sb===a.sb&&e.i!==a.slotId&&b.push(d)}0<b.length&&hX(this.i(),b)};
g.k.Bf=function(a){this.u.add(a.slotId);for(var b=[],c=g.q(this.Fb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof ZX&&a.slotId===d.trigger.dh&&b.push(d);0<b.length&&hX(this.i(),b)};
g.k.Cf=function(a){this.u.delete(a.slotId);this.B.add(a.slotId);for(var b=[],c=g.q(this.Fb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof $X)a.slotId===d.trigger.dh&&b.push(d);else if(d.trigger instanceof VX){var e=d.trigger;a.slotId===e.slotId&&this.l.has(e.Ae)&&b.push(d)}0<b.length&&hX(this.i(),b)};
g.k.zj=function(a){for(var b=[],c=g.q(this.Fb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof aY&&a.slotId===d.trigger.dh&&b.push(d);0<b.length&&hX(this.i(),b)};
g.k.Aj=function(a){for(var b=[],c=g.q(this.Fb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof bY&&a.slotId===d.trigger.dh&&b.push(d);0<b.length&&hX(this.i(),b)};
g.k.Ei=function(a,b){this.I.add(b.layoutId)};
g.k.xj=function(a,b){this.I.delete(b.layoutId)};
g.k.Tc=function(a,b){this.l.add(b.layoutId);for(var c=[],d=g.q(this.Fb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof Wv)b.layoutId===e.trigger.Ae&&c.push(e);else if(e.trigger instanceof QX){var f=e.trigger;a.sb===f.sb&&b.layoutType===f.layoutType&&b.layoutId!==f.i&&c.push(e)}else e.trigger instanceof VX&&(f=e.trigger,b.layoutId===f.Ae&&this.B.has(f.slotId)&&c.push(e));0<c.length&&hX(this.i(),c)};
g.k.Od=function(a,b,c){this.l.delete(b.layoutId);a=[];for(var d=g.q(this.Fb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof yX&&b.layoutId===e.trigger.Ae&&a.push(e),e.trigger instanceof FX&&b.layoutId===e.trigger.Ae&&"error"===c&&a.push(e);0<a.length&&hX(this.i(),a)};
g.k.Uh=function(){};
g.k.Sh=function(){this.B.clear()};
g.k.Pk=function(){};g.v(pZ,g.F);pZ.prototype.Li=function(a,b,c,d){if(this.Fb.has(b.triggerId))throw new jX("Tried to register duplicate trigger for slot.");if(!(b instanceof Vv||b instanceof XX))throw new jX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Fb.set(b.triggerId,new lZ(a,b,c,d))};
pZ.prototype.Wi=function(a){this.Fb.delete(a.triggerId)};
pZ.prototype.Sh=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.q(this.Fb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof Vv&&l.trigger.em===a&&f.push(l);e.call(d,b,g.ma(f));b.push.apply(b,g.ma(nCa(this.Ka,this.Fb,a,!1,c)));b.length&&hX(this.i(),b)};
pZ.prototype.Pk=function(a){var b=[];b.push.apply(b,g.ma(nCa(this.Ka,this.Fb,a,!0,!1)));b.length&&hX(this.i(),b)};g.v(qZ,g.F);g.k=qZ.prototype;
g.k.Li=function(a,b,c,d){if(this.Fb.has(b.triggerId))throw new jX("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof Xv)rZ(this,a,b,c,d,e,b.i.start,b.i.end,b.em,b.visible);else if(b instanceof WX)rZ(this,a,b,c,d,e,b.i.start,b.i.end,b.em,!1);else if(b instanceof UX)rZ(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.em,b.visible);else throw new jX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
};
g.k.Wi=function(a){var b=this.Fb.get(a.triggerId);b&&(this.Sb.get().removeCueRange(b.Iq),this.l.delete(b.Iq));this.Fb.delete(a.triggerId)};
g.k.ge=function(a){if(!this.l.has(a)&&(a=oCa(this,a))&&(a=this.Fb.get(a)))if(g.V(pY(this.Ea.get()),32))this.i.add(a.Iq);else{var b=null===a||void 0===a?void 0:a.bundle.trigger;if(b instanceof Xv||b instanceof UX)b instanceof Xv&&b.u&&this.l.add(a.Iq),hX(this.u(),[a.bundle])}};
g.k.ag=function(a){if(a=oCa(this,a))if(a=this.Fb.get(a))this.i.delete(a.Iq),a.bundle.trigger instanceof WX&&hX(this.u(),[a.bundle])};
g.k.Wl=function(a){if(0>eI(a,16)){a=g.q(this.i);for(var b=a.next();!b.done;b=a.next())this.ge(b.value);this.i.clear()}};
g.k.Ok=function(){};
g.k.cg=function(){};
g.k.Th=function(){};
g.k.Tl=function(){};
g.k.Ug=function(){};g.v(sZ,g.F);g.k=sZ.prototype;g.k.Li=function(a,b,c,d){if(this.Fb.has(b.triggerId))throw new jX("Tried to register duplicate trigger for slot.");if(!(b instanceof BX||b instanceof YX))throw new jX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Fb.set(b.triggerId,new lZ(a,b,c,d))};
g.k.Wi=function(a){this.Fb.delete(a.triggerId)};
g.k.Jm=function(){};
g.k.zk=function(){};
g.k.Tc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.sb&&(null!=this.i?Q("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.i=b.layoutId)};
g.k.Od=function(a){"SLOT_TYPE_ABOVE_FEED"===a.sb&&(this.i=null)};
g.k.wh=function(){};
g.k.Gi=function(){};
g.k.Fi=function(){};
g.k.Bf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.sb&&(null!=this.l?Q("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.l=a.slotId)};
g.k.Cf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.sb&&(null===this.l?Q("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.l=null)};
g.k.zj=function(){};
g.k.Aj=function(){};
g.k.Ei=function(){};
g.k.xj=function(){};
g.k.Uh=function(){};
g.k.Ps=function(){null!=this.i&&XY(this,this.i)};
g.k.jt=function(a){if(null===this.l){for(var b=[],c=g.q(this.Fb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof YX&&d.trigger.slotId===a&&b.push(d);b.length&&hX(this.u(),b)}};g.v(tZ,g.F);g.k=tZ.prototype;g.k.Uh=function(a,b){for(var c=[],d=g.q(this.Fb.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&&hX(this.i(),c)};
g.k.Li=function(a,b,c,d){if(this.Fb.has(b.triggerId))throw new jX("Tried to register duplicate trigger for slot.");if(!(b instanceof lBa))throw new jX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Fb.set(b.triggerId,new lZ(a,b,c,d))};
g.k.Wi=function(a){this.Fb.delete(a.triggerId)};
g.k.wh=function(){};
g.k.Gi=function(){};
g.k.Fi=function(){};
g.k.Bf=function(){};
g.k.Cf=function(){};
g.k.zj=function(){};
g.k.Aj=function(){};
g.k.Ei=function(){};
g.k.xj=function(){};
g.k.Tc=function(){};
g.k.Od=function(){};g.v(uZ,g.F);uZ.prototype.oa=function(){this.Fd.get().removeListener(this);g.F.prototype.oa.call(this)};vZ.prototype.fetch=function(a){var b=a.aG;return this.qm.fetch(a.wK,{Us:void 0===a.Us?void 0:a.Us,ue:b}).then(function(c){return pCa(c,b)})};g.v(wZ,g.F);g.k=wZ.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){xZ(this,function(c){c.lh(a,b)})};
g.k.SB=function(a){xZ(this,function(b){b.ZA(a)})};
g.k.RB=function(a){xZ(this,function(b){b.YA(a)})};
g.k.AP=function(a){xZ(this,function(b){b.Fw(a)})};AZ.prototype.addListener=function(a){this.listeners.push(a)};
AZ.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=sCa.prototype;g.k.Le=function(){return this.slot};
g.k.Ub=function(){return this.layout};
g.k.init=function(){var a;this.Ta.get().addListener(this);this.Se.get().addListener(this);this.Ea.get().addListener(this);this.l.forEach(function(f){f.init()});
var b=R(this.layout.Fa,"metadata_type_layout_enter_ms"),c=R(this.layout.Fa,"metadata_type_layout_exit_ms"),d=null===(a=this.Ta.get().Mo)||void 0===a?void 0:a.clientPlaybackNonce;sY(this.Va.get(),{daiStateTrigger:{filledAdsDurationMs:c-b,contentCpn:d,adClientData:this.layout.Nc.adClientDataEntry}});var e=vCa(this.Se.get(),b,c);null!==e&&(sY(this.Va.get(),{daiStateTrigger:{filledAdsDurationMs:e-b,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Nc.adClientDataEntry}}),
this.Ye.get().Ho(e,c))};
g.k.release=function(){this.i=null;this.l.forEach(function(a){a.release()});
this.Ta.get().removeListener(this);this.Se.get().removeListener(this);this.Ea.get().removeListener(this)};
g.k.startRendering=function(){var a;if(this.i)Q("Failed to restart rendering",this.slot,this.layout);else{var b=null===(a=this.Ta.get().Mo)||void 0===a?void 0:a.layoutId;uCa(this,b);this.callback.Tc(this.slot,this.layout);LY(this.u,"ad_placement_start")}};
g.k.qf=function(a,b){var c,d,e,f;null===(d=null===(c=this.i)||void 0===c?void 0:c.gi)||void 0===d?void 0:d.qf(null===(f=null===(e=this.i)||void 0===e?void 0:e.gi)||void 0===f?void 0:f.Ub(),b);this.i=null;null!==this.driftRecoveryMs&&(BZ(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(wCa(this)-R(this.layout.Fa,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ea.get().G.Om()).toString()}),this.driftRecoveryMs=null);this.callback.Od(this.slot,
this.layout,b);"normal"!==b?a=!1:(a=this.Ea.get().getCurrentTimeSec(2,!0),b=R(this.layout.Fa,"metadata_type_layout_exit_ms")/1E3,a=1>=Math.abs(a-b));a&&LY(this.u,"ad_placement_end")};
g.k.GI=function(a){a=a.layoutId;var b,c,d;this.i&&(null===(b=this.i.gi)||void 0===b?void 0:b.Ub().layoutId)!==a&&(null===(c=this.i.gi)||void 0===c?void 0:c.qf(null===(d=this.i.gi)||void 0===d?void 0:d.Ub(),"normal"),uCa(this,a))};
g.k.xI=function(){};
g.k.kI=function(a){var b,c=R(this.layout.Fa,"metadata_type_layout_enter_ms"),d=R(this.layout.Fa,"metadata_type_layout_exit_ms");a*=1E3;c<=a&&a<d&&(sY(this.Va.get(),{daiStateTrigger:{filledAdsDurationMs:a-c,contentCpn:null===(b=this.Ta.get().Mo)||void 0===b?void 0:b.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Nc.adClientDataEntry}}),this.Ye.get().Ho(a,d))};
g.k.Ok=function(){var a=this.Ea.get().getCurrentTimeSec(2,!0);if(this.i){var b=R(this.layout.Fa,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=wCa(this),e=this.Ea.get().G.Om(),f=Math.min(a+e,d/1E3);f<=a?BZ(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(BZ(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.Ea.get().G.seekTo(f,void 0,void 0,1))}}};
g.k.Wl=function(){};
g.k.cg=function(){};
g.k.Th=function(){};
g.k.Tl=function(){};
g.k.Ug=function(){};g.k=xCa.prototype;g.k.Le=function(){return this.slot};
g.k.Ub=function(){return this.layout};
g.k.init=function(){R(this.layout.Fa,"metadata_type_player_bytes_callback_ref").current=this;var a=R(this.layout.Fa,"metadata_type_video_length_seconds"),b=R(this.layout.Fa,"metadata_type_player_vars"),c=R(this.layout.Fa,"metadata_type_layout_enter_ms"),d=R(this.layout.Fa,"metadata_type_layout_exit_ms"),e=1E3*a;if(d-c)if(b=this.Ye.get().Bq(b,2,e,c,d)){var f=this.rd.get(),h=this.slot.slotId,l=this.layout.layoutId;b?(f.i.has(b)&&Q("Unexpected remap of timeline playback"),f.i.set(b,{slotId:h,layoutId:l})):
Q("Invalid timeline playback ID");c+e>d&&(c=d-c,this.Ye.get().Tr(b,c))}else Q("Unexpected failure to add to playback timeline",this.slot,this.layout,Object.assign(Object.assign({},CZ(this.layout)),{compositeLayout:BCa(R(this.slot.Fa,"metadata_type_fulfilled_layout"))}));else Q("Expected non-zero layout duration",this.slot,this.layout,Object.assign(Object.assign({},CZ(this.layout)),{compositeLayout:BCa(R(this.slot.Fa,"metadata_type_fulfilled_layout"))}),!0);this.Ea.get().addListener(this);xBa(this.yb.get(),
this.layout.layoutId,a,this);fX(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Ea.get().removeListener(this);yBa(this.yb.get(),this.layout.layoutId)};
g.k.startRendering=function(){if(this.l)Q("Expected the layout not to be entered before start rendering",this.slot,this.layout);else{this.l={zB:null,KJ:!1};var a=R(this.layout.Fa,"metadata_type_sodar_extension_data");if(a)try{LBa(this.le.get(),a)}catch(b){Q("Unexpected error when loading Sodar",this.slot,this.layout,{error:b})}LY(this.i,"start");mY(this.Ka.get())&&(a=pY(this.Ea.get()),a=new g.dI(a,new g.ZI),zCa(this,this.l,a));gX(this.callback,this.slot,this.layout)}};
g.k.qf=function(a,b){this.l?(mY(this.Ka.get())&&yCa(this,null,this.l),this.l=null,JI(this.callback,this.slot,this.layout,b)):Q("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.du=function(){};
g.k.Ok=function(a){if(this.l){if(this.i.i.has("impression")){var b=pY(this.Ea.get());ACa(this,b,a,this.l.zB)}this.l.zB=a}};
g.k.Wl=function(a){this.l&&(mY(this.Ka.get())||this.l.KJ||(this.l.KJ=!0,a=new g.dI(a.state,new g.ZI)),zCa(this,this.l,a))};
g.k.cg=function(a){this.i.i.has("impression")&&this.i.bf(a?"fullscreen":"end_fullscreen")};
g.k.Th=function(){};
g.k.Tl=function(){};
g.k.UI=function(){};
g.k.Ug=function(){};
g.k.tC=function(){this.i.i.has("impression")&&this.i.bf("clickthrough")};
g.k.nx=function(){this.i.bf("active_view_measurable")};
g.k.mx=function(){this.i.i.has("impression")&&!this.i.i.has("seek")&&this.i.bf("active_view_fully_viewable_audible_half_duration")};
g.k.ox=function(){this.i.i.has("impression")&&!this.i.i.has("seek")&&this.i.bf("active_view_viewable")};DZ.prototype.Qf=function(a,b,c,d){if(c.Fa.i.has("metadata_type_dai")){a:{var e=R(d.Fa,"metadata_type_sub_layouts"),f=R(d.Fa,"metadata_type_ad_placement_config");if(GY(d,{Je:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Dg:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==e&&void 0!==f){var h=[];e=g.q(e);for(var l=e.next();!l.done;l=e.next()){l=l.value;var m=R(l.Fa,"metadata_type_media_sub_layout_index");if(!GY(l,{Je:["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"],Dg:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new IY(l.Oc,this.Va,f,l.layoutId,m);h.push(new xCa(b,c,l,this.Ye,m,this.Ea,this.rd,this.yb,this.le,this.Ka))}b=new IY(d.Oc,this.Va,f,d.layoutId);a=new sCa(a,c,d,this.Ta,this.Ye,this.Se,this.Ea,b,this.Va,h)}else a=null}if(a)return a}else if(a=fCa(a,b,c,d,this.i,this.l,this.Va,this.yb,this.le,this.Cd,this.Ta,this.Ea,
this.Sb,this.ud,this.Hc,this.qe,this.Hb,this.ye,this.Ka))return a;throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.Fa)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.v(EZ,g.F);g.k=EZ.prototype;g.k.xI=function(a){this.i&&CCa(this,this.i,a)};
g.k.kI=function(){};
g.k.Sh=function(a){this.i&&this.i.contentCpn!==a&&(Q("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn}),this.i=null)};
g.k.Pk=function(a){this.i&&this.i.contentCpn!==a&&Q("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn},!0);this.i=null};
g.k.oa=function(){g.F.prototype.oa.call(this);this.i=null};g.v(FZ,g.F);
FZ.prototype.Li=function(a,b,c,d){if(this.l.has(b.triggerId)||this.u.has(b.triggerId))throw new jX("Tried to re-register the trigger.");a=new lZ(a,b,c,d);if(a.trigger instanceof pBa)this.l.set(a.trigger.triggerId,a);else if(a.trigger instanceof kBa)this.u.set(a.trigger.triggerId,a);else throw new jX("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.l.has(a.trigger.triggerId)&&a.slot.slotId===this.i&&hX(this.B(),[a])};
FZ.prototype.Wi=function(a){this.l.delete(a.triggerId);this.u.delete(a.triggerId)};
FZ.prototype.GI=function(a){a=a.slotId;if(this.i!==a){var b=[];null!=this.i&&b.push.apply(b,g.ma(DCa(this.u,this.i)));null!=a&&b.push.apply(b,g.ma(DCa(this.l,a)));this.i=a;b.length&&hX(this.B(),b)}};g.v(GZ,g.F);g.k=GZ.prototype;g.k.Sh=function(){this.u=new OI(this,vBa(this.Ka.get()));this.l=new PI;ECa(this)};
g.k.Pk=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.yI=function(a){this.jy.push(a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.xI(a)};
g.k.mI=function(a){g.yb(this.l.i,1E3*a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.kI(a)};
g.k.YB=function(a){var b=$u(this.Ta.get(),1),c=b.clientPlaybackNonce;b=b.daiEnabled;var d=Date.now();a=g.q(a);for(var e=a.next();!e.done;e=a.next())e=e.value,b&&sY(this.Va.get(),{cuepointTrigger:{event:FCa(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.i,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.i.add(e),this.u.reduce(e)};
g.k.oa=function(){this.G.getVideoData(1).unsubscribe("cuepointupdated",this.YB,this);this.listeners.length=0;this.i.clear();this.jy.length=0;g.F.prototype.oa.call(this)};HZ.prototype.Bq=function(a,b,c,d,e){return this.G.Bq(a,b,c,d,e)};
HZ.prototype.Ho=function(a,b){this.G.Ho(a,b)};
HZ.prototype.Tr=function(a,b,c){this.G.Tr(a,b,c)};
HZ.prototype.wp=function(a){this.G.wp(a)};IZ.prototype.addListener=function(a){this.listeners.add(a)};
IZ.prototype.removeListener=function(a){this.listeners.delete(a)};g.v(GCa,bI);g.v(JZ,NY);g.k=JZ.prototype;g.k.lh=function(a,b){PY("image-companion",a,this.J.get().Hj,this.Va.get(),this.u,this.C,this.Le(),this.Ub(),b)};
g.k.startRendering=function(a){OY(this.I,this.Le(),this.Ub(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new GCa(b,c,d,e,f)},this.i);
NY.prototype.startRendering.call(this,a)};
g.k.Tc=function(a,b){b.layoutId===this.layout.layoutId?LY(this.I,"impression"):this.C===b.layoutId&&(null===this.u?this.u=this.Va.get().jh():Q("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Od=function(){};
g.k.wh=function(){};
g.k.Gi=function(){};
g.k.Fi=function(){};
g.k.Bf=function(){};
g.k.Cf=function(){};
g.k.zj=function(){};
g.k.Aj=function(){};
g.k.Ei=function(){};
g.k.xj=function(){};
g.k.Uh=function(){};
g.k.oa=function(){this.B().Ud.delete(this);NY.prototype.oa.call(this)};g.v(ICa,bI);g.v(KZ,NY);g.k=KZ.prototype;g.k.lh=function(a,b){PY("shopping-companion",a,this.J.get().Hj,this.Va.get(),this.u,this.C,this.Le(),this.Ub(),b)};
g.k.startRendering=function(a){OY(this.I,this.Le(),this.Ub(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new ICa(b,c,d,e,f)},this.i);
NY.prototype.startRendering.call(this,a)};
g.k.Tc=function(a,b){b.layoutId===this.layout.layoutId?LY(this.I,"impression"):this.C===b.layoutId&&(null===this.u?this.u=this.Va.get().jh():Q("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Od=function(){};
g.k.wh=function(){};
g.k.Gi=function(){};
g.k.Fi=function(){};
g.k.Bf=function(){};
g.k.Cf=function(){};
g.k.zj=function(){};
g.k.Aj=function(){};
g.k.Ei=function(){};
g.k.xj=function(){};
g.k.Uh=function(){};
g.k.oa=function(){this.B().Ud.delete(this);NY.prototype.oa.call(this)};KCa.prototype.Qf=function(a,b,c,d){if(GY(d,UBa()))return new QY(a,c,d,this.Yb,this.Va,this.i,this.yb,this.l);if(GY(d,HCa()))return new JZ(a,c,d,this.Yb,this.Va,this.i,this.yb,this.l);if(GY(d,JCa()))return new KZ(a,c,d,this.Yb,this.Va,this.i,this.yb,this.l);throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.Fa)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};var MZ=new g.ee(320,63);g.v(PZ,NY);g.k=PZ.prototype;g.k.Ok=function(){};
g.k.Wl=function(){};
g.k.cg=function(){};
g.k.Th=function(a){a&&TZ(this.u,this.layout)};
g.k.Tl=function(a){var b=OZ(this.layout);if(this.B=NZ(a,IBa(this.Ea.get())))b.onErrorCommand&&this.Hb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),TZ(this.u,this.layout)};
g.k.Ug=function(){};
g.k.Bt=function(){return this.Ub().layoutId};
g.k.DA=function(){return this.B};
g.k.lh=function(a){"in_video_overlay_close_button"===a&&TZ(this.u,this.layout)};
g.k.Fw=function(a){"invideo-overlay"===a&&TZ(this.u,this.layout)};
g.k.zr=function(){};
g.k.startRendering=function(a){NY.prototype.startRendering.call(this,a);this.callback.Tc(this.slot,a);this.Kd.po=this};
g.k.qf=function(a,b){NY.prototype.qf.call(this,a,b);w_(this.Kd,this)};
g.k.init=function(){NY.prototype.init.call(this);tY(this.Va.get(),this);this.Ea.get().addListener(this);this.i.push(new tI(OZ(this.layout),KY(this.C),this.layout.layoutId,{adsClientData:this.layout.Nc}))};
g.k.release=function(){NY.prototype.release.call(this);this.Ea.get().removeListener(this);uY(this.Va.get(),this)};g.v(QZ,NY);g.k=QZ.prototype;g.k.init=function(){NY.prototype.init.call(this);tY(this.Va.get(),this);this.Ea.get().addListener(this);this.i.push(new tI(OZ(this.layout),KY(this.I),this.layout.layoutId,{adsClientData:this.layout.Nc}))};
g.k.zr=function(){};
g.k.startRendering=function(a){NY.prototype.startRendering.call(this,a);this.callback.Tc(this.slot,a);this.Kd.po=this};
g.k.qf=function(a,b){NY.prototype.qf.call(this,a,b);w_(this.Kd,this)};
g.k.lh=function(a){"in_video_overlay_close_button"===a&&TZ(this.u,this.layout)};
g.k.ZA=function(a){if("invideo-overlay"===a){a=PCa(this.C,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.Fw=function(a){"invideo-overlay"===a&&TZ(this.u,this.layout)};
g.k.YA=function(a){if("invideo-overlay"===a){a=PCa(this.C,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Ok=function(){};
g.k.Wl=function(){};
g.k.cg=function(){};
g.k.Th=function(a){a&&TZ(this.u,this.layout)};
g.k.Tl=function(a){var b=OZ(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=IBa(this.Ea.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.gb(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.ee(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.ee(0,0)}if(this.B=NZ(a,d,c))b.onErrorCommand&&this.Hb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),TZ(this.u,this.layout)};
g.k.Ug=function(){};
g.k.Bt=function(){return this.Ub().layoutId};
g.k.DA=function(){return this.B};
g.k.release=function(){NY.prototype.release.call(this);this.Ea.get().removeListener(this);uY(this.Va.get(),this)};g.v(RZ,NY);RZ.prototype.startRendering=function(a){var b=R(this.layout.Fa,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.i.push(new AI(b));NY.prototype.startRendering.call(this,a);this.callback.Tc(this.slot,a)};
RZ.prototype.Tc=function(){};
RZ.prototype.lh=function(){};
RZ.prototype.oa=function(){NY.prototype.oa.call(this)};OCa.prototype.Qf=function(a,b,c,d){if(b=TY(a,c,d,this.Yb,this.Ea,this.Va,this.u,this.Kd))return b;if(GY(d,NCa()))return new QZ(c,d,this.Va,this.yb,this.Yb,a,this.i,this.l,this.Ea,this.Hb,this.Ka,this.Kd);if(GY(d,MCa()))return new PZ(c,d,this.Va,this.yb,this.Yb,a,this.i,this.Ea,this.Hb,this.Ka,this.Kd);if(GY(d,{Je:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Dg:["LAYOUT_TYPE_SURVEY"]}))return new RZ(c,d,a,this.Yb);throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+
QW(d.Fa)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.v(SZ,g.F);SZ.prototype.Li=function(a,b,c,d){if(this.Fb.has(b.triggerId))throw new jX("Tried to register duplicate trigger for slot.");if(!(b instanceof jBa))throw new jX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Fb.set(b.triggerId,new lZ(a,b,c,d))};
SZ.prototype.Wi=function(a){this.Fb.delete(a.triggerId)};g.v(UZ,g.F);g.k=UZ.prototype;g.k.Li=function(a,b,c,d){if(this.Fb.has(b.triggerId))throw new jX("Tried to register duplicate trigger for slot.");if(!(b instanceof EX))throw new jX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Fb.set(b.triggerId,new lZ(a,b,c,d));a=this.i.has(b.Ae)?this.i.get(b.Ae):new Set;a.add(b);this.i.set(b.Ae,a)};
g.k.Wi=function(a){this.Fb.delete(a.triggerId);if(!(a instanceof EX))throw new jX("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.l.get(a.triggerId);b&&(b.dispose(),this.l.delete(a.triggerId));if(b=this.i.get(a.Ae))b.delete(a),0===b.size&&this.i.delete(a.Ae)};
g.k.wh=function(){};
g.k.Gi=function(){};
g.k.Fi=function(){};
g.k.Bf=function(){};
g.k.Cf=function(){};
g.k.zj=function(){};
g.k.Aj=function(){};
g.k.Ei=function(){};
g.k.xj=function(){};
g.k.Uh=function(){};
g.k.Tc=function(a,b){var c=this;if(this.i.has(b.layoutId)){b=this.i.get(b.layoutId);a={};b=g.q(b);for(var d=b.next();!d.done;a={Xr:a.Xr},d=b.next())a.Xr=d.value,d=new g.J(function(e){return function(){var f=c.Fb.get(e.Xr.triggerId);hX(c.u(),[f])}}(a),a.Xr.durationMs),d.start(),this.l.set(a.Xr.triggerId,d)}};
g.k.Od=function(){};g.v(VZ,g.F);VZ.prototype.oa=function(){this.Nk.get().removeListener(this);g.F.prototype.oa.call(this)};g.v(QCa,g.F);RCa.prototype.Qf=function(a,b,c,d){if(b=TY(a,c,d,this.Yb,this.Ea,this.Va,this.u,this.Kd))return b;if(GY(d,NCa()))return new QZ(c,d,this.Va,this.yb,this.Yb,a,this.i,this.l,this.Ea,this.Hb,this.Ka,this.Kd);if(GY(d,MCa()))return new PZ(c,d,this.Va,this.yb,this.Yb,a,this.i,this.Ea,this.Hb,this.Ka,this.Kd);throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.Fa)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.v(SCa,g.F);g.v(TCa,g.F);g.v(UCa,g.F);g.v(XZ,SY);XZ.prototype.startRendering=function(a){SY.prototype.startRendering.call(this,a);R(this.layout.Fa,"metadata_ad_video_is_listed")&&(a=R(this.layout.Fa,"metadata_type_ad_info_ad_metadata"),this.aj.get().G.La("onAdMetadataAvailable",a))};WCa.prototype.Qf=function(a,b,c,d){if(GY(d,VCa()))return new XZ(a,c,d,this.Yb,this.Ea,this.Va,this.i,this.aj,this.Kd);throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.Fa)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.v(XCa,g.F);YCa.prototype.Qf=function(a,b,c,d){if(GY(d,VCa()))return new XZ(a,c,d,this.Yb,this.Ea,this.Va,this.i,this.aj,this.Kd);if(a=TY(a,c,d,this.Yb,this.Ea,this.Va,this.i,this.Kd))return a;throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.Fa)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.v(ZCa,g.F);g.v(YZ,g.F);YZ.prototype.u=function(){return this.l};ZZ.prototype.jt=function(a){if(wBa(this.vf)||this.l.rB(a))this.nk.jt(a);else try{this.i().jt(a)}catch(b){zo(b)}};
ZZ.prototype.Ps=function(){if(wBa(this.vf)||this.l.qB("SLOT_TYPE_ABOVE_FEED",1))try{this.nk.Ps()}catch(a){}else this.i().Ps()};
ZZ.prototype.Jm=function(){this.i().Jm()};
ZZ.prototype.zk=function(){this.i().zk()};g.v($Z,uK);
$Z.prototype.u=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.La("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.l,interactionLoggingClientData:b.i});break;case 3:this.i.La("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);
this.i.La("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.l,interactionLoggingClientData:b.i});break;case 3:b.renderer&&(b=this.i.getVideoData(1),this.i.La("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.i.La("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.La("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.l,interactionLoggingClientData:b.i});break;case 3:b=this.i.getVideoData(1),this.i.La("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.i.La("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.i.La("updateEngagementPanelAction",b.addAction);this.i.La("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.i.La("changeEngagementPanelVisibility",b.hideAction),this.i.La("updateEngagementPanelAction",b.removeAction)}};g.v(a_,vK);g.k=a_.prototype;g.k.init=function(a,b,c){vK.prototype.init.call(this,a,b,c);g.dg(this.B,"stroke-dasharray","0 "+this.u);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){xK(this);vK.prototype.hide.call(this)};
g.k.show=function(){wK(this);vK.prototype.show.call(this)};
g.k.Fp=function(){this.hide()};
g.k.Bn=function(){if(this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&g.dg(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.u+" "+this.u)}};g.v(b_,g.P);g.k=b_.prototype;g.k.xt=function(){return this.durationMs};
g.k.stop=function(){this.i&&this.De.hc(this.i)};
g.k.Rb=function(a){this.l={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.V("b")};
g.k.getProgressState=function(){return this.l};
g.k.wc=function(a){g.fI(a,2)&&this.V("a")};g.v(c_,XJ);g.k=c_.prototype;
g.k.init=function(a,b,c){XJ.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.xo(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.pc(g.od(e[0].url))&&(e[0].url=d.Wg);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.pc(g.od(e[0].url))&&(e[0].url=d.gf());e=b.headline;null!=e&&g.pc(g.od(e.text))&&(e.text=d.author)}this.C.init(aI("ad-image"),b.image,c);this.Y.init(aI("ad-text"),b.headline,c);this.L.init(aI("ad-text"),b.description,c);this.I.init(aI("ad-image"),b.backgroundImage,c);this.actionButton=new kK(this.api,this.Pa,this.layoutId,this.i,["ytp-ad-action-interstitial-action-button"]);g.H(this,
this.actionButton);this.actionButton.xa(this.Ma);this.actionButton.init(aI("button"),b.actionButton.buttonRenderer,c);this.navigationEndpoint=b.navigationEndpoint;this.api.T().i||(this.B.N(this.Ga,"click",this.xA,this),this.B.N(this.Da,"click",this.xA,this),this.B.N(this.Aa,"click",this.xA,this));this.l=this.MC?new b_(this.api,a):new AK(a);g.H(this,this.l);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.l&&(this.skipButton=new RK(this.api,this.Pa,this.layoutId,this.i,this.l,this.Ux),g.H(this,
this.skipButton),this.skipButton.xa(this.element),this.skipButton.init(aI("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.l&&(this.u=new LK(this.api,this.Pa,this.layoutId,this.i,this.l,!1),g.H(this,this.u),this.u.xa(this.element),this.u.init(aI("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,b.timedPieCountdownRenderer&&this.l&&(c=new a_(this.api,this.Pa,this.layoutId,this.i,this.l),g.H(this,c),c.xa(this.element),c.init(aI("timed-pie-countdown"),
b.timedPieCountdownRenderer,this.macros)));this.show();this.element.focus()}else g.xo(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.xo(Error("AdActionInterstitialRenderer has no button."));else g.xo(Error("AdActionInterstitialRenderer has no background AdImage."));else g.xo(Error("AdActionInterstitialRenderer has no description AdText."));else g.xo(Error("AdActionInterstitialRenderer has no headline AdText."));else g.xo(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.$t(this.B);this.hide()};
g.k.show=function(){aDa(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.u&&this.u.show();XJ.prototype.show.call(this)};
g.k.hide=function(){aDa(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.u&&this.u.hide();XJ.prototype.hide.call(this)};
g.k.xA=function(){this.navigationEndpoint&&this.Pa.executeCommand(this.navigationEndpoint,this.macros)};g.v(d_,XJ);g.k=d_.prototype;g.k.init=function(a,b,c){XJ.prototype.init.call(this,a,b,c);b.text?(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a?g.xo(Error("durationMilliseconds was specified incorrectly in AdTextInterstitialRenderer with a value of: "+a)):(this.messageText.init(aI("ad-text"),b.text,c),this.show())):g.xo(Error("AdTextInterstitialRenderer has no message AdText."))};
g.k.clear=function(){this.hide()};
g.k.show=function(){bDa(!0);XJ.prototype.show.call(this)};
g.k.hide=function(){bDa(!1);XJ.prototype.hide.call(this)};
g.k.onClick=function(){};var f_={iconType:"CLOSE"},j_=new g.ee(320,63);g.v(e_,XJ);g.k=e_.prototype;
g.k.init=function(a,b,c){XJ.prototype.init.call(this,a,b,c);this.C=b;this.L=g.ob(this.C.onClickCommands||[]);this.Ga=this.C.onErrorCommand||null;if(a=this.C.contentSupportedRenderer)a=this.C.contentSupportedRenderer,b=this.C.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.I=g.oe("ytp-ad-overlay-ad-info-button-container",this.B.element),h_(this,b),a=gDa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.I=g.oe("ytp-ad-overlay-ad-info-button-container",this.u.element),
h_(this,b),a=hDa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.I=g.oe("ytp-ad-overlay-ad-info-button-container",this.l.element),h_(this,b),a=iDa(this,a.imageOverlayAdContentRenderer)):(g.xo(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),jDa(this,!0))};
g.k.clear=function(){jDa(this,!1);this.Da.reset();this.Y=0;this.B.hide();this.eb(this.B.element,!1);this.u.hide();this.eb(this.u.element,!1);this.l.hide();this.eb(this.l.element,!1);this.hide();this.dispose()};
g.k.dS=function(){this.Sa&&this.Pa.executeCommand(this.Sa,this.macros);this.api.pauseVideo()};
g.k.ph=function(){var a=this;fDa(this).forEach(function(b){return a.Pa.executeCommand(b,a.macros)});
this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.sP=function(){this.Ma=2===this.api.getPlayerState(1);this.api.pauseVideo()};
g.k.tP=function(){this.Ma||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.dC=function(){this.Ma||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.dC("invideo-overlay")};
g.k.uP=function(a){a.target===this.I&&g.oe("ytp-ad-button",this.Xa.element).click()};g.v(k_,XJ);
k_.prototype.init=function(a,b,c){XJ.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new kK(this.api,this.Pa,this.layoutId,this.i,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.xa(this.answer),a.init(aI("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.l=new sK(this.api,this.Pa,this.layoutId,this.i,["ytp-ad-survey-answer-toggle-button"]),this.l.xa(this.answer),
g.H(this,this.l),this.l.init(aI("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
k_.prototype.clear=function(){this.hide()};g.v(l_,XJ);l_.prototype.init=function(a,b,c){XJ.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new sK(this.api,this.Pa,this.layoutId,this.i,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.xa(this.l),this.button.init(aI("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.v(m_,kK);m_.prototype.init=function(a,b,c){kK.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.Aw(b.text),a=!g.pc(b));a||zo(Error("No submit text was present in the renderer."))};
m_.prototype.onClick=function(a){this.V("l");kK.prototype.onClick.call(this,a)};g.v(n_,XJ);
n_.prototype.init=function(a,b,c){XJ.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new SK(this.api,this.Pa,this.layoutId,this.i,this.B,!1),c.xa(this.I),c.init(aI("skip-button"),a,this.macros),g.H(this,c),this.l=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new LK(this.api,this.Pa,this.layoutId,this.i,this.B,!1),c.xa(this.I),c.init(aI("ad-preview"),a,this.macros),MK(c),g.H(this,c),this.l=c);null==this.l&&g.xo(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new m_(this.api,this.Pa,this.layoutId,this.i),c.xa(this.submitButton),c.init(aI("survey-submit"),a,this.macros),g.H(this,c),this.u=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new WK(this.api,this.Pa,this.layoutId,this.i,!0),c.xa(this.C),c.init(aI("simple-ad-badge"),a,this.macros),g.H(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new DK(this.api,this.Pa,this.layoutId,this.i,this.B,void 0),c.xa(this.C),
c.init(aI("ad-duration-remaining"),a,this.macros),g.H(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new HK(this.api,this.Pa,this.layoutId,this.i,this.element),g.H(this,a),a.xa(this.C),a.init(aI("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
n_.prototype.clear=function(){this.hide()};g.v(o_,XJ);o_.prototype.init=function(a,b,c){XJ.prototype.init.call(this,a,b,c);nDa(this)};
o_.prototype.show=function(){this.B=g.Ta();XJ.prototype.show.call(this)};
o_.prototype.AJ=function(){};g.v(p_,o_);g.k=p_.prototype;g.k.init=function(a,b,c){var d=this;o_.prototype.init.call(this,a,b,c);b.questionText&&g.Ne(this.questionText,g.Aw(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&kDa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.I=new Set(this.u.map(function(e){return e.l.l}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&oDa(this,a,c);b.surveyAdQuestionCommon&&mDa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.N(this.element,"change",this.onChange);this.show()};
g.k.AJ=function(){q_(this,!1);this.C.u.subscribe("l",this.bS,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.l?pDa(this):this.I.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),q_(this,!0))};
g.k.bS=function(){var a=this,b=this.u.reduce(function(d,e){var f=e.toggledLoggingParams;e.l&&e.l.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d;
d=g.Vb(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=Jd(e.baseUrl,b));return e});
return d});
c&&c.forEach(function(d){return a.Pa.executeCommand(d,a.macros)})};
g.k.clear=function(){g.S(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(r_,o_);r_.prototype.init=function(a,b,c){var d=this;o_.prototype.init.call(this,a,b,c);b.questionText&&g.Ne(this.questionText,g.Aw(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&kDa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?mDa(this,b.surveyAdQuestionCommon):g.xo(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
r_.prototype.clear=function(){g.S(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(s_,XJ);
s_.prototype.init=function(a,b,c){var d=this;XJ.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new r_(d.api,d.Pa,d.layoutId,d.i);f.xa(d.l);f.init(aI("survey-question-single-select"),e,c);d.questions.push(f);g.H(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new p_(d.api,d.Pa,d.layoutId,d.i),f.xa(d.l),f.init(aI("survey-question-multi-select"),
e,c),d.questions.push(f),g.H(d,f))});
this.show()};
s_.prototype.clear=function(){g.S(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.v(t_,XJ);
t_.prototype.init=function(a,b,c){var d=this;XJ.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.xo(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&b.ctaButton.buttonRenderer)if(b.brandImage)if(b.backgroundImage&&b.backgroundImage.thumbnailLandscapePortraitRenderer&&b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape){sDa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);
sDa(this.logoImage,b.brandImage);g.Ne(this.text,g.Aw(b.text));this.actionButton=new kK(this.api,this.Pa,this.layoutId,this.i,["ytp-ad-survey-interstitial-action-button"]);g.H(this,this.actionButton);this.actionButton.xa(this.u);this.actionButton.init(aI("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands;this.l=new AK(1E3*a);this.l.subscribe("a",function(){d.transition.hide();e.forEach(function(f){return d.Pa.executeCommand(f,c)});
d.Pa.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)});
g.H(this,this.l);this.N(this.element,"click",function(f){return rDa(d,f,b)});
this.transition.show(100);b.impressionCommands&&b.impressionCommands.forEach(function(f){return d.Pa.executeCommand(f,c)})}else g.xo(Error("SurveyTextInterstitialRenderer has no landscape background image."));
else g.xo(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.xo(Error("SurveyTextInterstitialRenderer has no button."));else g.xo(Error("SurveyTextInterstitialRenderer has no text."));else g.xo(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
t_.prototype.clear=function(){this.hide()};
t_.prototype.show=function(){tDa(!0);XJ.prototype.show.call(this)};
t_.prototype.hide=function(){tDa(!1);XJ.prototype.hide.call(this)};var nFa="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["shopping-companion","action-companion","image-companion","ads-engagement-panel"]);g.v(u_,uK);
u_.prototype.u=function(a){var b=a.id,c=a.content,d=c.componentType;if(!nFa.includes(d))switch(a.actionType){case 1:a=this.C();var e=this.api,f=c.layoutId,h=c.i,l=c instanceof jI?c.MC:!1,m=c instanceof jI||c instanceof GI?c.Ux:!1;h=void 0===h?{}:h;l=void 0===l?!1:l;m=void 0===m?!1:m;switch(d){case "invideo-overlay":a=new e_(e,a,f,h);break;case "persisting-overlay":a=new UK(e,a,f,h,new OM(e));break;case "player-overlay":a=new bL(e,a,f,h,new OM(e),m);break;case "survey":a=new s_(e,a,f,h);break;case "ad-action-interstitial":a=
new c_(e,a,f,h,l,m);break;case "ad-text-interstitial":a=new d_(e,a,f,h);break;case "survey-interstitial":a=new t_(e,a,f,h);break;case "ad-message":a=new KK(e,a,f,h,new OM(e,1));break;default:a=null}if(!a){zo(Error("No UI component returned from ComponentFactory for type: "+d));break}Mb(this.l,b)?zo(Error("Ad UI component already registered: "+b)):this.l[b]=a;a.bind(c);this.B.append(a.IJ);break;case 2:b=uDa(this,a);if(null==b)break;b.bind(c);break;case 3:c=uDa(this,a),null!=c&&(g.ui(c),Mb(this.l,b)?
(c=this.l,b in c&&delete c[b]):zo(Error("Ad UI component does not exist: "+b)))}};
u_.prototype.oa=function(){g.vi(Object.values(this.l));this.l={};uK.prototype.oa.call(this)};g.v(v_,g.aM);g.k=v_.prototype;g.k.create=function(){this.load();this.created=!0};
g.k.load=function(){g.aM.prototype.load.call(this);this.player.getRootNode().classList.add("ad-created");var a=this.i.i.Oe.vf,b=this.u(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(m){return m.adPlacementRenderer});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;f=xDa(f,a,e);var h=c&&c.clientPlaybackNonce||"";c=c&&c.rk||!1;var l=1E3*this.player.getDuration(1);MJ(a)?(this.Pa=new JJ(this,this,this.player,this.qm,b,this.i.i.Oe),vla(this.Pa,f.Eo),this.i.i.Ul.Sh(h,l,c,f.Ar,f.Ar.concat(f.Eo),e,d),KJ(this.Pa)):(this.i.i.Ul.Sh(h,l,c,f.Ar,f.Ar.concat(f.Eo),e,d),this.Pa=new JJ(this,this,this.player,this.qm,b,this.i.i.Oe),vla(this.Pa,f.Eo))};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.i.i.Ul.Pk(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.aM.prototype.unload.call(this);this.player.getRootNode().classList.remove("ad-created");if(null!==this.Pa){var a=this.Pa;this.Pa=null;a.dispose()}null!=this.l&&(a=this.l,this.l=null,a.dispose());this.qm.reset()};
g.k.Qi=function(){return!1};
g.k.NC=function(){return null===this.Pa?!1:this.Pa.NC()};
g.k.Qk=function(a){null!==this.Pa&&this.Pa.Qk(a)};
g.k.getAdState=function(){return this.Pa?this.Pa.Kw:-1};
g.k.getOptions=function(){return Object.values(mFa)};
g.k.uf=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=EH(this.player),Object.assign(b,a.a6),this.Pa&&!b.AD_CPN&&(b.AD_CPN=this.Pa.mw()),a=g.Xm(a.url,b)):a=null,a;case "isExternalShelfAllowedFor":a:if(b.playerResponse){a=b.playerResponse.adPlacements||[];for(b=0;b<a.length;b++){var c=a[b];if(c.adPlacementRenderer&&c.adPlacementRenderer.renderer&&c.adPlacementRenderer.renderer.plaShelfRenderer){a=!1;break a}}a=!0}else a=!1;return a;case "onAboutThisAdPopupClosed":this.zr(b);
break;default:return null}};
g.k.zr=function(a){a.isMuted&&qla(this.Pa,this.i.i.Oe.Cg,this.i.i.Oe.Di,a.layoutId);this.po&&this.po.zr()};
g.k.hn=function(){return null===this.Pa?!1:this.Pa.hn()};g.gM.ad=v_;var zDa=g.we&&yDa();g.Ua(g.y_,g.F);var oFa=[];g.k=g.y_.prototype;g.k.Na=function(a,b,c,d){Array.isArray(b)||(b&&(oFa[0]=b.toString()),b=oFa);for(var e=0;e<b.length;e++){var f=Il(a,b[e],c||this.handleEvent,d||!1,this.l||this);if(!f)break;this.i[f.key]=f}return this};
g.k.CB=function(a,b,c,d){return ADa(this,a,b,c,d)};
g.k.hc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.hc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Oa(d)?!!d.capture:!!d,e=e||this.l||this,c=Jl(c),d=!!d,b=Cl(a)?a.Ct(b,c,d,e):a?(a=Ll(a))?a.Ct(b,c,d,e):null:null,b&&(Ql(b),delete this.i[b.key])};
g.k.oa=function(){g.y_.me.oa.call(this);g.BDa(this)};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};g.v(g.z_,g.W);g.z_.prototype.onClick=function(){this.G.La("onExpandMiniplayer")};})(_yt_player);
