var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ 'use strict';var ba,ea,aaa,ia,ka,la,pa,qa,ra,ta,ua,va,wa,xa,baa,caa,ya,Aa,daa,Ca,Da,Ea,Fa,Ga,La,faa,gaa,Ua,Va,Wa,haa,Ya,iaa,ab,bb,cb,db,jaa,kaa,fb,lb,laa,sb,tb,maa,yb,vb,naa,wb,oaa,paa,qaa,Gb,Ib,Jb,Kb,Lb,Nb,Pb,Qb,Tb,Zb,ac,dc,ec,hc,kc,lc,taa,mc,nc,qc,yc,zc,Bc,Gc,Mc,Nc,Qc,Oc,xaa,Aaa,Baa,Caa,Uc,Vc,Xc,Wc,Zc,bd,Daa,Eaa,ad,Faa,id,ld,md,nd,od,pd,sd,td,ud,vd,Iaa,Jaa,wd,yd,Ad,Cd,zd,Dd,Ed,Gd,Hd,Id,Kd,Ld,Md,Nd,Od,Pd,Qd,Rd,Sd,Td,Ud,ee,ae,Yd,he,ie,le,me,ne,Maa,re,pe,se,te,ue,ze,xe,Ae,Be,Ce,De,Fe,Ge,ye,He,Ie,Ke, Le,Je,Me,Oaa,Ne,Qaa,Pe,Raa,Qe,Saa,Re,Taa,Te,Ue,$e,af,bf,cf,df,Uaa,jf,lf,mf,of,Waa,pf,qf,rf,sf,uf,zf,Xaa,tf,Ef,Ff,Cf,Zaa,Af,yf,Jf,Kf,Lf,$aa,Pf,Rf,Uf,Yf,Zf,eg,fg,hg,gg,jg,mg,lg,kg,cba,Wf,xg,vg,wg,zg,yg,Vf,Bg,eba,Cg,Dg,Eg,mda,Jg,Lg,Ng,Og,Sg,Tg,Ug,Wg,nda,Xg,Zg,bh,Yg,$g,Mg,Vg,uda,eh,ch,dh,gh,oda,fh,kh,lh,mh,nh,vda,oh,ph,wda,qh,rh,th,vh,wh,xh,Ada,yh,Bda,zh,Ah,Bh,Ch,Dh,Eh,Fh,Gh,Lh,Eda,Mh,Oh,Gda,Qh,Rh,Sh,Th,Hda,Zh,Yh,Vh,Wh,Xh,di,ai,ci,Ida,Jda,Kda,ei,fi,ji,ki,li,mi,ni,oi,pi,qi,si,ui,vi,xi,yi,zi,Mda,Nda,Oda, Ei,Ci,Oi,Di,Pi,Ni,Ri,Qda,Hi,Si,Rda,Ti,Ui,Vi,Wi,Xi,Yi,Zi,$i,ej,dj,fj,gj,Wda,Vda,hj,Xda,ij,jj,kj,lj,mj,nj,oj,pj,qj,sj,tj,Yda,vj,wj,xj,yj,zj,Aj,Cj,Zda,Dj,$da,aea,Ej,Fj,bea,Gj,Hj,Ij,Jj,Kj,Lj,cea,dea,Mj,Nj,Oj,Pj,gea,fea,Rj,Uj,Vj,Sj,Qj,Tj,Wj,Xj,Yj,ak,Zj,fk,gk,ok,jea,nk,rk,tk,sk,hea,kea,wk,yk,zk,Ak,Bk,Ck,Dk,Ek,Fk,Gk,Hk,lea,Ik,Jk,Kk,Lk,Mk,Nk,Ok,Qk,nea,Rk,Sk,Tk,Pk,Vk,oea,pea,Xk,Yk,Zk,Wk,al,bl,rea,tea,uea,$k,wea,cl,dl,el,fl,gl,il,hl,jl,kl,zea,Bea,Cea,Eea,ml,nl,ol,ql,rl,sl,ul,wl,yl,Dl,El,Hl,Fea,Kl,Jl,Ll,Gea, Tl,Ul,Vl,Hea,Wl,bm,cm,dm,em,fm,gm,Iea,hm,im,jm,Jea,Kea,km,mm,lm,om,pm,sm,qm,Mea,rm,tm,um,wm,vm,Oea,Nea,xm,Qea,Pea,Rea,Bm,Sea,Dm,Em,Fm,Cm,Gm,Tea,Hm,Uea,Vea,Jm,Km,Zea,Lm,Mm,Nm,$ea,Pm,Rm,Um,Xm,Zm,Wm,Vm,$m,afa,an,bn,cn,dn,cfa,jn,kn,ln,mn,efa,nn,on,pn,qn,rn,ffa,tn,un,vn,xn,wn,yn,zn,Bn,Cn,Dn,En,Fn,An,Gn,Hn,In,gfa,Jn,Kn,hfa,Ln,Mn,ifa,On,jfa,Pn,Qn,kfa,lfa,Rn,Sn,Un,Wn,Xn,Yn,Zn,$n,Tn,Vn,nfa,ao,bo,eo,co,ofa,pfa,qfa,fo,go,ho,io,ufa,vfa,wfa,xfa,yfa,jo,ko,zfa,lo,Afa,Bfa,mo,no,oo,Cfa,po,ro,so,to,uo,vo,wo,xo,yo, zo,Dfa,Efa,Ao,Ffa,Ko,Bo,No,Oo,Mo,Gfa,Kfa,Jfa,Ro,Lfa,Mfa,Nfa,Pfa,Ofa,So,To,Uo,Qfa,Wo,Xo,Rfa,Sfa,Yo,Zo,$o,ap,Tfa,bp,cp,Vfa,dp,Wfa,ep,gp,fp,hp,ip,kp,Yfa,lp,Xfa,mp,Zfa,np,$fa,aga,pp,rp,sp,tp,up,qp,yp,zp,wp,cga,ega,fga,Bp,Cp,Dp,Ep,gga,Fp,Gp,Hp,Ip,Jp,Kp,Lp,Mp,Pp,Op,iga,jga,Qp,Sp,Np,Rp,hga,Tp,Up,lga,mga,nga,oga,Yp,Zp,$p,Vp,aq,bq,kga,pga,qga,dq,cq,eq,gq,vga,rga,kq,lq,mq,nq,oq,pq,qo,wga,qq,xga,yga,zga,Aga,Bga,sq,tq,uq,vq,xq,zq,Gga,Cq,Dq,Hq,Iq,Jq,Kq,Qq,Hga,Sq,Tq,Jga,Uq,Vq,Oga,Kga,$q,Tga,ar,br,cr,Vga,fr,gr, hr,ir,Wga,lr,mr,nr,or,qr,rr,sr,tr,vr,wr,xr,yr,zr,Ar,Yga,Br,Zga,Dr,Fr,Gr,bha,cha,Hr,Ir,Kr,Lr,Or,Pr,Mr,Qr,dha,Tr,Ur,Wr,Xr,Yr,Zr,bs,cs,as,ds,es,fs,Vr,is,hs,iha,ks,ns,jha,rs,qs,lha,mha,nha,Rs,oha,pha,Os,Ts,Ss,qha,Vs,Ws,Xs,ct,dt,et,gt,ht,jt,kt,lt,nt,ot,pt,rt,ut,vt,ft,wt,zt,xt,rha,Ct,Dt,Et,Ft,Ht,It,Jt,Kt,tha,uha,Rt,St,Tt,vha,Yt,Zt,$t,bu,du,eu,au,hu,ku,ju,iu,mu,pu,nu,wha,Au,zu,yha,zha,Fu,Hu,Iu,Cha,Bha,Cu,Tu,Uu,Vu,$u,av,Yu,bv,dv,fv,gv,Dha,hv,iv,jv,lv,Eha,qv,pv,kv,rv,tv,uv,wv,xv,Fha,Ev,Fv,Iv,Hv,Jv,Kv,Mv,Nv, Jha,Kha,Lha,Ov,Pv,Rv,Sv,Qv,Tv,Mha,Uv,Vv,Wv,Xv,Yv,$v,Nha,aw,ew,fw,Zv,gw,Pha,Qha,bw,hw,Rha,dw,Oha,cw,jw,Sha,kw,lw,iw,Tha,mw,nw,ow,qw,rw,Uha,Vha,Wha,vw,ww,xw,Xha,Yha,Zha,$ha,aia,bia,yw,cia,zw,Bw,Ew,dia,eia,fia,Fw,Cw,Dw,Iw,Jw,Kw,hia,gia,Mw,Lw,Ow,Nw,Vw,Ww,Xw,Zw,Sw,jia,Pw,Tw,Rw,Qw,Uw,mia,kia,ex,fx,dx,hx,kx,lx,oia,ix,jx,mx,nx,px,qx,tx,rx,vx,ux,wx,pia,yx,zx,Bx,ria,Dx,Ex,Fx,Hx,sia,Jx,Lx,tia,uia,Ox,Nx,wia,Px,Sx,Qx,Rx,Av,Bia,Zx,cy,dy,Cia,$x,Dia,Uy,Zy,Gia,Hia,cz,gz,fz,iz,ez,hz,jz,Jia,Kia,oz,pz,R,qz,rz,sz,tz, vz,xz,yz,Qia,Az,Tia,Bz,Cz,Dz,Gz,Xia,Kz,Lz,Mz,Nz,Oz,Rz,Sz,Yia,Uz,Xz,Yz,Wz,Zz,$z,aA,cA,dA,Tz,eA,bA,gA,$ia,hA,jA,kA,iA,lA,mA,oA,pA,rA,uA,qA,vA,xA,yA,CA,AA,FA,EA,GA,HA,IA,JA,BA,LA,KA,zA,dja,eja,NA,OA,PA,QA,RA,TA,UA,WA,XA,YA,bB,cB,aB,hja,jja,jB,iB,gja,fja,hB,lB,mB,oB,qB,sB,tB,uB,vB,rB,kja,wB,xB,yB,zB,AB,BB,CB,DB,EB,FB,lja,GB,IB,JB,KB,HB,nja,LB,MB,OB,QB,oja,RB,TB,WB,SB,UB,XB,YB,pja,aC,bC,hC,qja,dC,jC,lC,nC,fC,kC,iC,rja,oC,sja,pC,qC,cC,eC,gC,mC,rC,sC,tja,uC,uja,vja,vC,wC,xC,zC,wja,yC,AC,BC,CC,DC,EC,FC,GC, JC,HC,xja,KC,LC,MC,NC,yja,IC,OC,PC,QC,RC,SC,TC,UC,WC,XC,YC,zja,ZC,$C,aD,bD,cD,Aja,Bja,Fja,Gja,Cja,Dja,Eja,dD,fD,eD,gD,hD,iD,Hja,jD,kD,lD,mD,nD,oD,pD,qD,rD,sD,tD,uD,vD,wD,xD,yD,zD,AD,CD,ED,DD,FD,GD,HD,ID,JD,KD,Ija,MD,LD,QD,RD,SD,TD,UD,VD,OD,WD,XD,YD,ZD,Jja,$D,aE,bE,cE,dE,eE,fE,gE,Kja,hE,iE,jE,kE,lE,oE,pE,qE,rE,sE,Lja,uE,vE,tE,wE,xE,yE,Mja,zE,CE,ija,fB,Oja,DE,EE,FE,Pja,Qja,ZA,Rja,GE,JE,Uja,Tja,HE,Sja,ME,IE,Yja,Vja,Wja,$ja,aka,OE,Zja,bka,QE,PE,RE,SE,cka,dka,eka,TE,NE,fka,gka,VE,hka,ika,jka,WE,XE,kka, lka,mka,kB,gB,ZE,aF,cF,dF,eF,fF,gF,bF,iF,oka,kF,qka,lF,ska,rka,pka,tka,uka,vka,mF,$A,nF,wka,dB,xka,pF,yka,qF,zka,rF,sF,Aka,tF,Cka,vF,Dka,wF,xF,yF,zF,Fka,Gka,Hka,Jka,BF,Kka,Ika,CF,DF,EF,FF,Nka,GF,HF,uG,$F,Ska,Xka,vG,yG,zG,RF,YF,dla,IF,Yka,aG,cG,CG,DG,ela,HG,Uka,fla,OF,KG,NF,Wka,LG,Pka,tG,bla,NG,OG,hla,ila,jla,kla,lla,mla,PG,nla,sla,rla,ola,qla,pla,QG,tla,RG,ula,vla,TG,UG,wla,VG,WG,xla,yla,Ala,Dla,Ela,YG,Hla,Ila,Jla,Kla,Bla,Fla,Gla,Lla,Pla,dH,Qla,eH,Sla,Ula,fH,gH,Vla,Xla,Yla,Zla,$la,fma,iH,gma,ima, hma,jma,kma,mH,lma,jH,nH,oH,mma,nma,pH,rma,oma,qma,xH,BH,Ema,Gma,zma,wH,FH,Dma,Fma,GH,Hma,Ima,HH,xma,Kma,Jma,tH,EH,AH,Qma,Mma,Rma,Nma,Oma,Pma,Sma,IH,Tma,Uma,KH,LH,Vma,NH,sH,DH,Ama,pma,Cma,Bma,PH,Lma,Xma,WH,XH,YH,ZH,$ma,yH,ana,aI,$H,yma,Wma,zH,bna,uma,vH,tma,Wla,eI,dna,fI,hI,ena,fna,hna,gna,iI,jI,ina,kI,jna,lI,mI,nI,oI,pI,qI,rI,kna,sI,lna,tI,vI,ona,uI,pna,mna,qna,nna,rna,sna,tna,wI,xI,vna,yI,zI,AI,wna,xna,BI,CI,DI,yna,Bna,II,FI,Ana,LI,zna,MI,HI,NI,KI,JI,GI,EI,Cna,QI,PI,RI,Dna,TI,VI,WI,Fna,Ena,XI,YI, ZI,$I,aJ,bJ,Gna,cJ,Hna,dJ,Jna,Kna,fJ,Lna,Mna,Nna,Qna,Ona,Pna,Rna,Sna,gJ,Tna,Una,Vna,Wna,Xna,Yna,hJ,iJ,jJ,kJ,lJ,mJ,nJ,oJ,pJ,qJ,rJ,sJ,tJ,uJ,vJ,wJ,xJ,yJ,zJ,AJ,BJ,CJ,DJ,EJ,FJ,GJ,HJ,IJ,JJ,KJ,LJ,MJ,NJ,OJ,PJ,QJ,RJ,SJ,TJ,UJ,VJ,WJ,XJ,YJ,ZJ,$J,aK,bK,$na,Zna,boa,coa,aoa,cK,doa,dK,eK,fK,gK,foa,eoa,ioa,joa,koa,jK,loa,moa,kK,noa,nK,oK,ooa,pK,soa,toa,uoa,qK,voa,rK,woa,xoa,sK,yoa,zoa,Boa,Coa,Doa,uK,tK,Aoa,vK,Eoa,Foa,Hoa,Goa,Ioa,Joa,wK,xK,Moa,Noa,yK,Ooa,Poa,zK,AK,CK,DK,EK,FK,IK,Qoa,KK,LK,Roa,Soa,Toa,MK,Voa,Woa,NK, Xoa,PK,Yoa,Zoa,QK,RK,$oa,apa,SK,cpa,bpa,TK,fpa,UK,gpa,VK,WK,hpa,ipa,jpa,kpa,lpa,mpa,YK,$K,qpa,tpa,npa,aL,Dpa,Cpa,bL,Fpa,Epa,Hpa,Ipa,Kpa,Jpa,Lpa,Mpa,Npa,Opa,Ppa,Qpa,Rpa,cL,dL,Spa,Tpa,Upa,Wpa,Xpa,Ypa,Zpa,$pa,kL,bqa,cqa,iL,jL,aqa,dqa,eqa,lL,hqa,fqa,jqa,iqa,kqa,mL,pqa,mqa,nqa,oqa,qqa,nL,rqa,tqa,uqa,sqa,oL,vqa,OK,xqa,yqa,Uoa,wqa,qL,rL,zqa,Aqa,Bqa,sL,uL,Dqa,vL,yL,Eqa,zL,Fqa,Gqa,AL,Iqa,Jqa,Kqa,Lqa,Mqa,Nqa,Oqa,Pqa,FL,Qqa,GL,Rqa,Sqa,Tqa,Uqa,Vqa,KL,LL,ML,Wqa,NL,Xqa,PL,Zqa,Yqa,QL,RL,SL,TL,$qa,UL,VL,ara,WL,XL, era,bra,dra,cra,fra,YL,ZL,gra,hra,ira,jra,$L,kra,mra,lra,aM,bM,cM,dM,eM,gM,hM,iM,jM,kM,nra,lM,mM,pra,ora,nM,oM,pM,qM,rM,sM,vM,wM,xM,yM,zM,AM,BM,CM,rra,DM,sra,vra,FM,wra,GM,HM,IM,JM,KM,Ara,Bra,zra,Dra,Cra,yra,LM,MM,NM,OM,PM,QM,RM,Fra,Gra,Ira,Hra,zv,Kra,Jra,VM,Mra,Lra,Ora,Nra,Pra,Qra,Rra,Tra,Ura,Wra,YM,Xra,aN,ZM,bN,$M,lqa,Yra,Zra,$ra,asa,gN,fN,iN,fsa,gsa,rN,hsa,uN,isa,jsa,vN,wN,ksa,yN,tsa,wsa,usa,xsa,ysa,zsa,Asa,Csa,GN,Gsa,JN,Isa,Fsa,Jsa,Ksa,IN,Hsa,MN,NN,ON,PN,dN,RN,Lsa,LN,SN,VN,Msa,UN,XN,Nsa,$N,aO, bO,fO,Psa,Qsa,hO,gO,Rsa,Ssa,iO,Tsa,Usa,jO,Vsa,Wsa,lO,mO,Xsa,pO,Zsa,rO,nO,$sa,ata,Ysa,sO,tO,wO,bta,vO,yO,xO,AO,dta,eta,EO,fta,HO,gta,jta,hta,LO,MO,kta,PO,QO,RO,SO,UO,lta,mta,WO,ota,nta,pta,qta,rta,sta,bP,cP,dP,tta,eP,fP,uta,vta,iP,xta,wta,jP,kP,lP,yta,mP,nP,oP,pP,zta,qP,rP,Ata,sP,Bta,Dta,Cta,xP,vP,wP,Eta,Fta,Gta,yP,zP,AP,BP,CP,Hta,FP,Ita,HP,IP,JP,LP,Jta,Mta,MP,Kta,Lta,Pta,Ota,OP,Qta,PP,QP,RP,Tta,Uta,TP,Vta,Wta,Xta,VP,Yta,Zta,bua,$ta,aua,cua,XP,YP,ZP,$P,dua,eua,fua,gua,hua,iua,lua,kua,jua,oua,nua,dQ, hQ,qua,rua,fQ,bQ,eQ,jQ,uua,kQ,gQ,mua,tua,iQ,pua,sua,vua,wua,mQ,nQ,oQ,pQ,yua,sQ,tQ,uQ,vQ,wQ,xQ,zua,yQ,AQ,zQ,BQ,CQ,Aua,DQ,Bua,Dua,Cua,EQ,FQ,Eua,GQ,HQ,Fua,IQ,Gua,JQ,Hua,KQ,PQ,OQ,Iua,NQ,SQ,Jua,Kua,TQ,UQ,VQ,WQ,YQ,Lua,FO,Pua,$O,Mua,RQ,Oua,aP,Nua,Qua,Uua,Tua,Vua,Wua,bR,Xua,cR,Yua,eR,fR,gR,hR,iR,jR,$ua,kR,lR,mR,nR,pR,ava,bva,qR,rR,eva,sR,fva,tR,uR,wR,xR,yR,gva,vR,zR,AR,BR,CR,jva,kva,DR,ER,iva,GR,ova,nva,pva,qva,HR,IR,JR,KR,rva,OR,sva,tva,uva,PR,vva,QR,RR,SR,zva,Bva,xva,yva,TR,wva,UR,VR,WR,Eva,Fva,Cva,Dva, YR,ZR,Iva,Jva,Hva,Lva,$R,Ova,Pva,Qva,Mva,Rva,Nva,Uva,aS,bS,Vva,Wva,Xva,Yva,Zva,dS,$va,awa,bwa,cwa,eS,gwa,fwa,fS,hwa,CS,dwa,jwa,iwa,ewa,lwa,mwa,nwa,owa,qwa,pwa,rwa,NS,swa,PS,twa,QS,uwa,vwa,wwa,RS,xwa,SS,Awa,zwa,ywa,US,Fwa,Gwa,Hwa,XS,WS,Iwa,TS,Bwa,Dwa,Ewa,Kwa,Jwa,Lwa,Mwa,Nwa,Pwa,Qwa,Rwa,Owa,Swa,Uwa,Vwa,Wwa,Xwa,Ywa,aT,bT,cxa,fxa,dxa,$wa,eT,Zwa,exa,hT,hxa,gxa,iT,jxa,lxa,mxa,kxa,lT,nxa,rxa,sxa,txa,rT,sT,uxa,mT,tT,vT,vxa,pT,wxa,xxa,wT,yxa,xT,Axa,Bxa,pxa,nT,zT,Hxa,AT,Ixa,Jxa,Fxa,CT,Kxa,DT,Dxa,GT,Gxa,Lxa, ET,BT,Mxa,HT,Nxa,Pxa,KT,IT,LT,JT,MT,Qxa,NT,OT,PT,QT,Rxa,RT,Sxa,TT,Uxa,Vxa,Wxa,WT,VT,UT,Xxa,Yxa,Zxa,$xa,$T,aU,bU,aya,bya,cya,dya,cU,eya,hya,dU,jya,fU,hU,eU,iU,fya,jU,iya,gya,gU,kU,lU,kya,mU,nU,oU,lya,nya,rya,oya,pya,qya,tU,uU,vU,wU,Cxa,xU,tya,yT,yU,uya,zya,Aya,Bya,DU,EU,Cya,FU,yya,Dya,Eya,zU,vya,Fya,AU,BU,wya,xya,Gya,CU,Hya,Iya,Jya,Kya,JU,Mya,Lya,GU,HU,IU,Nya,Oya,Pya,Qya,KU,Rya,LU,Sya,MU,Tya,OU,Uya,PU,Yya,RU,$ya,UU,Wya,Xya,Vya,SU,QU,Zya,eza,cza,aza,WU,fza,XU,gza,YU,ZU,hza,iza,jza,kza,lza,$U,nza,aV, bV,cV,dV,eV,oza,pza,qU,sU,sza,hV,iV,rU,sya,lV,gV,tza,fV,qza,rza,mV,nV,uza,kV,pU,jV,vza,wza,xza,oV,zza,yza,pV,Aza,Bza,qV,tV,Fza,rV,Nza,sV,Oza,uV,Jza,Gza,Kza,Dza,vV,Pza,Qza,Tza,Sza,Rza,wV,Uza,Yza,Zza,BV,CV,$za,EV,FV,HV,cAa,dAa,IV,eAa,zV,KV,fAa,gAa,iAa,dza,JV,hAa,Wza,NU,GV,aAa,jAa,kAa,lAa,Vza,AV,yV,TU,DV,mAa,bza,MV,NV,nAa,oAa,pAa,rAa,qAa,OV,sAa,uAa,tAa,wAa,QV,BAa,xAa,CAa,zAa,DAa,AAa,RV,HAa,FAa,GAa,MAa,JAa,NAa,OAa,SV,PV,IAa,LAa,EAa,PAa,TV,QAa,yAa,RAa,UV,VV,SAa,UAa,VAa,WV,TAa,XV,YV,ZV,$V,aW,cW,XAa,ZAa, aBa,$Aa,dW,YAa,fW,eW,bBa,bW,cBa,gW,jW,dBa,fBa,eBa,iW,gBa,hBa,jBa,iBa,kBa,kW,hW,lBa,lW,nBa,qBa,oBa,rBa,sBa,mBa,tBa,uBa,wBa,yBa,zBa,vBa,BBa,CBa,pBa,DBa,EBa,xBa,nW,FBa,GBa,HBa,IBa,oW,pW,sW,tW,MBa,uW,NBa,OBa,PBa,vW,KBa,QBa,RBa,yW,SBa,UBa,TBa,VBa,zW,AW,WBa,BW,CW,DW,ZBa,FW,EW,$Ba,HW,YBa,bCa,cCa,aCa,GW,dCa,IW,eCa,LBa,xW,gCa,hCa,iCa,jCa,kCa,lCa,mCa,oCa,pCa,qCa,nCa,rCa,sCa,KW,tCa,uCa,vCa,LW,MW,wCa,xCa,yCa,OW,ACa,RW,QW,BCa,CCa,PW,NW,zCa,UW,TW,DCa,VW,SW,ECa,XW,ICa,$W,bX,cX,KCa,GCa,YW,aX,dX,HCa,LCa,eX,NCa,WW, OCa,PCa,MCa,QCa,ZW,JCa,RCa,FCa,fX,gX,mX,TCa,UCa,nX,WCa,YCa,XCa,ZCa,aDa,bDa,$Ca,cDa,dDa,oX,qX,eDa,rX,Xza,fDa,mza,gDa,sX,hDa,iDa,jDa,kDa,mDa,nDa,oDa,pDa,qDa,tX,sDa,uX,uDa,vDa,tDa,wX,xX,yX,zX,AX,BX,CX,wDa,xDa,yDa,CDa,EDa,GDa,HDa,rDa,vX,IDa,NDa,LDa,ODa,MDa,JDa,PDa,KDa,RDa,DX,TDa,UDa,VDa,MX,OI,NX,VS,YDa,oxa,aEa,OX,LX,bEa,UX,QX,kT,ZDa,WX,dEa,dT,XX,YX,Cwa,TX,ZX,FX,cEa,WDa,JX,bY,cY,fT,kEa,IX,ixa,aY,uT,FT,PX,eEa,mEa,lEa,nEa,dY,bxa,oEa,pEa,iEa,EX,qEa,eY,RX,GX,KX,gT,SX,rEa,XDa,fY,qT,sEa,tEa,uEa,axa,$X,jEa,$Da, IEa,FEa,CEa,MEa,BEa,NEa,OEa,jY,nY,REa,PEa,lY,QEa,hY,pY,qY,TEa,rY,sY,GEa,HEa,yY,WEa,xY,iY,XEa,JEa,BY,YEa,LEa,uY,vY,tY,EY,cFa,oY,dFa,eFa,FY,AY,GY,HY,fFa,wY,SEa,DY,ZEa,gFa,hFa,cN,jFa,zY,IY,lFa,kY,JY,mY,nFa,oFa,EEa,CY,pFa,DEa,KY,LY,Txa,qFa,MY,NY,OY,rFa,PY,QY,RY,SY,TY,UY,tFa,sFa,VY,uFa,WY,X,XY,wFa,ZY,yFa,YY,zFa,aZ,AFa,bZ,$Y,cZ,dZ,qoa,roa,Ina,fZ,DFa,nZ,oZ,lK,mZ,pZ,GFa,HFa,IFa,JFa,CFa,KFa,eZ,LFa,MFa,sZ,jZ,rZ,xZ,tZ,hZ,NFa,gZ,qZ,uZ,yZ,kZ,lZ,wZ,vZ,PFa,zZ,AZ,QFa,BZ,Y,RFa,SFa,VFa,WFa,$Fa,CZ,aGa,XFa,bGa,DZ,EZ, FZ,dGa,gGa,eGa,jGa,mGa,lGa,nGa,qGa,pGa,tGa,vGa,yGa,zGa,BGa,CGa,GGa,RZ,DGa,JGa,HGa,LGa,UZ,nz,MGa,WZ,kz,YZ,ZZ,Iia,$Z,OGa,a_,SZ,HZ,b_,TZ,PZ,IZ,PGa,c_,d_,LZ,QGa,iGa,JZ,KZ,OZ,RGa,SGa,e_,f_,TGa,VZ,NZ,MZ,GZ,wGa,AGa,QZ,EGa,oGa,rGa,g_,h_,i_,UGa,j_,k_,l_,m_,n_,o_,p_,q_,TFa,r_,UFa,WGa,VGa,cGa,xGa,XGa,KGa,YGa,uGa,hGa,fGa,ZFa,YFa,kGa,FGa,IGa,sGa,$Ga,s_,ZGa,t_,mK,iZ,EFa,XZ,u_,v_,w_,aHa,x_,y_,z_,A_,pL,bHa,BFa,cHa,B_,C_,dHa,eHa,E_,F_,gHa,hHa,H_,I_,J_,fHa,G_,iHa,jHa,K_,mz,mHa,lHa,L_,D_,nHa,oHa,pHa,M_,N_,qHa,rHa,sHa, tHa,O_,P_,Q_,R_,S_,T_,U_,uHa,V_,W_,X_,Y_,Z_,$_,vHa,wHa,xHa,a0,b0,c0,d0,yHa,e0,zHa,f0,AHa,g0,BHa,h0,i0,j0,k0,l0,m0,CHa,o0,p0,DHa,EHa,FHa,r0,q0,s0,t0,GHa,HHa,u0,v0,IHa,w0,KHa,JHa,x0,y0,LHa,z0,NHa,OHa,MHa,PHa,A0,QHa,RHa,B0,C0,D0,SHa,E0,F0,G0,THa,H0,I0,UHa,J0,n0,K0,L0,poa,M0,VHa,N0,WHa,O0,P0,Q0,R0,XHa,YHa,$Ha,bIa,ZHa,S0,cIa,eIa,dIa,fIa,T0,U0,V0,NGa,gIa,W0,X0,Y0,hIa,Z0,aIa,iIa,jIa,$0,a1,kIa,b1,lIa,mIa,c1,nIa,oIa,d1,e1,g1,pIa,h1,i1,j1,qIa,k1,rIa,l1,m1,sIa,n1,tIa,o1,uIa,vIa,wIa,xIa,yIa,q1,zIa,AIa,BIa,CIa, DIa,r1,EIa,s1,t1,u1,v1,FIa,w1,GIa,HIa,IIa,z1,JIa,KIa,LIa,MIa,A1,y1,NIa,C1,OIa,D1,E1,F1,G1,H1,PIa,RIa,QIa,SIa,I1,TIa,UIa,J1,VIa,K1,L1,M1,WIa,XIa,N1,YIa,O1,P1,ZIa,$Ia,aJa,lz,bJa,cJa,aa,ha,fa,Fi,Oa,eaa;ba=function(a){return function(){return aa[a].apply(this,arguments)}}; g.ca=function(a,b){return aa[a]=b}; ea=function(a){var b=0;return function(){return b>=8);b[c++]=e}return b}; Ya=function(a){if(8192>=a.length)return String.fromCharCode.apply(null,a);for(var b="",c=0;ce?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b}; g.$a=function(a){for(var b=[],c=0,d=0;ce)b[d++]=String.fromCharCode(e);else if(191e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239e){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("")}; ab=function(a){return function(){return a}}; bb=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}; cb=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}; db=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}}; jaa=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.eb=function(a){return a[a.length-1]}; kaa=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.gb=function(a,b,c){b=fb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]}; fb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}; maa=function(a){for(var b=0,c=0,d={};c>>1),n=void 0;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0b?1:ac&&g.ub(a,-(c+1),0,b)}; g.Db=function(a,b,c){var d={};(0,g.Cb)(a,function(e,f){d[b.call(c,e,f,a)]=e}); return d}; paa=function(a){for(var b=[],c=0;c")&&(a=a.replace(uc,">"));-1!=a.indexOf('"')&&(a=a.replace(vc,"""));-1!=a.indexOf("'")&&(a=a.replace(wc,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(xc,"�"))}return a}; zc=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())}; g.Cc=function(a,b){var c=0;a=Ac(String(a)).split(".");b=Ac(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0}; g.Ec=function(a,b){this.i=b===Dc?a:""}; g.Fc=function(a){return a instanceof g.Ec&&a.constructor===g.Ec?a.i:"type_error:SafeUrl"}; Gc=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(vaa);return b&&waa.test(b[1])?new g.Ec(a,Dc):null}; g.Jc=function(a){a instanceof g.Ec||(a="object"==typeof a&&a.Xj?a.ph():String(a),a=Hc.test(a)?new g.Ec(a,Dc):Gc(a));return a||Ic}; g.Kc=function(a,b){if(a instanceof g.Ec)return a;a="object"==typeof a&&a.Xj?a.ph():String(a);if(b&&/^data:/i.test(a)&&(b=Gc(a)||Ic,b.ph()==a))return b;Hc.test(a)||(a="about:invalid#zClosurez");return new g.Ec(a,Dc)}; Mc=function(a,b){this.i=b===Lc?a:""}; Nc=function(a){return a instanceof Mc&&a.constructor===Mc?a.i:"type_error:SafeStyle"}; Qc=function(a){var b="",c;for(c in a)if(Object.prototype.hasOwnProperty.call(a,c)){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var d=a[c];null!=d&&(d=Array.isArray(d)?d.map(Oc).join(" "):Oc(d),b+=c+":"+d+";")}return b?new Mc(b,Lc):Pc}; Oc=function(a){if(a instanceof g.Ec)return'url("'+g.Fc(a).replace(/>>0;return b}; td=function(a){var b=Number(a);return 0==b&&g.rc(a)?NaN:b}; ud=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}; vd=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; Iaa=function(a){return a.replace(/(^|[\s]+)([a-z])/g,function(b,c,d){return c+d.toUpperCase()})}; Jaa=function(a){var b=1;a=a.split(":");for(var c=[];0>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=4294967296*b+(a>>>0);return c?-a:a}; yd=function(a){return a.constructor===Uint8Array?a:a.constructor===ArrayBuffer?new Uint8Array(a):a.constructor===Array?new Uint8Array(a):a.constructor===String?g.xd(a):a instanceof Uint8Array?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):new Uint8Array(0)}; Ad=function(a,b,c){this.l=null;this.i=this.u=this.B=0;this.C=!1;a&&zd(this,a,b,c)}; Cd=function(a,b,c){if(Bd.length){var d=Bd.pop();a&&zd(d,a,b,c);return d}return new Ad(a,b,c)}; zd=function(a,b,c,d){a.l=yd(b);a.B=void 0!==c?c:0;a.u=void 0!==d?a.B+d:a.l.length;a.i=a.B}; Dd=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)return wd(c>>>0,d>>>0);a.C=!0}; Ed=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}; Gd=function(a){this.i=Cd(a,void 0,void 0);this.C=this.i.i;this.l=this.u=-1;this.B=!1}; Hd=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=Ed(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}; Id=function(a){switch(a.l){case 0:if(0!=a.l)Id(a);else{for(a=a.i;a.l[a.i]&128;)a.i++;a.i++}break;case 1:1!=a.l?Id(a):a.i.advance(8);break;case 2:if(2!=a.l)Id(a);else{var b=Ed(a.i);a.i.advance(b)}break;case 5:5!=a.l?Id(a):a.i.advance(4);break;case 3:b=a.u;do{if(!Hd(a)){a.B=!0;break}if(4==a.l){a.u!=b&&(a.B=!0);break}Id(a)}while(1);break;default:a.B=!0}}; Kd=function(a){var b=Ed(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;var d=a.i,e=a.i+b;c=Jd?c.slice(d,e):new Uint8Array(c.subarray(d,e));a.i+=b;b=c}return b}; Ld=function(){this.i=new Uint8Array(64);this.l=0}; Md=function(a,b){for(;127>>=7;a.push(b)}; Nd=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)}; Od=function(){return Uc("iPhone")&&!Uc("iPod")&&!Uc("iPad")}; Pd=function(){return Od()||Uc("iPad")||Uc("iPod")}; Qd=function(){var a=g.Tc,b="";Uc("Windows")?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):Pd()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):Uc("Macintosh")?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):zc(g.Tc,"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):Uc("Android")?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):Uc("CrOS")&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);return b|| ""}; 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.Wd=function(a){return Td(Kaa,a,function(){return 0<=g.Cc(Vd,a)})}; g.Xd=function(a){return Number(Laa)>=a}; g.$d=function(a,b){void 0===b&&(b=0);Yd();b=Zd[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")}; ee=function(a){var b=[];ae(a,function(c){b.push(c)}); return b}; g.xd=function(a){!g.fe||g.Wd("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;ae(a,function(f){d[e++]=f}); return d.subarray(0,e)}; ae=function(a,b){function c(m){for(;d>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}}; Yd=function(){if(!ge){ge={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Zd[c]=d;for(var e=0;ed;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295>>7|b<<25)>>>0,b>>>=7;a.push(c)}}; me=function(a,b,c){null!=c&&(c=yd(c),Md(a.i,8*b+2),Md(a.i,c.length),b=a.i.end(),a.u.push(b),a.u.push(c),a.l+=b.length+c.length)}; ne=function(a,b,c,d){if(null!=c){Md(a.i,8*b+2);b=a.i.end();a.u.push(b);a.l+=b.length;var e=a.l;b=a.u.length-1;d(c,a);c=a.i.end();a.u.push(c);a.l+=c.length;Md(a.i,a.l+a.i.length()-e);c=a.i.end();a.l+=c.length;a.u.splice(1+b,0,c)}}; Maa=function(a){return pe(a,function(b){return b},function(b){return new Uint8Array(b)})}; re=function(a,b,c){return"object"===typeof a?qe&&!Array.isArray(a)&&a instanceof Uint8Array?c(a):pe(a,b,c):b(a)}; pe=function(a,b,c){if(Array.isArray(a)){for(var d=Array(a.length),e=0;ea.l&&(a.l++,b.next=a.i,a.i=b)}; $aa=function(a,b){return a+Math.random()*(b-a)}; g.Mf=function(a,b,c){return Math.min(Math.max(a,b),c)}; g.Nf=function(a,b){a%=b;return 0>a*b?a+b:a}; g.Of=function(a,b,c){return a+c*(b-a)}; Pf=function(a,b){return 1E-6>=Math.abs(a-b)}; g.Qf=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}; Rf=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; g.Sf=function(a,b){this.width=a;this.height=b}; g.Tf=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; Uf=function(a){return a.width*a.height}; Yf=function(a){return a?new Vf(Wf(a)):Xf||(Xf=new Vf)}; Zf=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a}; g.$f=function(a,b){return(b||document).getElementsByTagName(String(a))}; g.bg=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.ag(document,"*",a,b)}; g.cg=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.ag(c,"*",a,b)[0]||null}return a||null}; g.ag=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.kb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a}; eg=function(a,b){g.Eb(b,function(c,d){c&&"object"==typeof c&&c.Xj&&(c=c.ph());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:dg.hasOwnProperty(d)?a.setAttribute(dg[d],c):nc(d,"aria-")||nc(d,"data-")?a.setAttribute(d,c):a[d]=c})}; fg=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.Sf(a.clientWidth,a.clientHeight)}; hg=function(a){var b=gg(a);a=a.parentWindow||a.defaultView;return g.fe&&g.Wd("10")&&a.pageYOffset!=b.scrollTop?new g.Qf(b.scrollLeft,b.scrollTop):new g.Qf(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}; gg=function(a){return a.scrollingElement?a.scrollingElement:g.ig||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement}; jg=function(a){return a?a.parentWindow||a.defaultView:window}; mg=function(a,b,c){var d=arguments,e=document,f=String(d[0]),h=d[1];if(!aba&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',g.qd(h.name),'"');if(h.type){f.push(' type="',g.qd(h.type),'"');var l={};g.Yb(l,h);delete l.type;h=l}f.push(">");f=f.join("")}f=kg(e,f);h&&("string"===typeof h?f.className=h:Array.isArray(h)?f.className=h.join(" "):eg(f,h));2a}; zg=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return yg(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.kb(f.className.split(/\s+/),c))},!0,d)}; yg=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}; Vf=function(a){this.i=a||g.A.document||document}; Bg=function(a){"function"!==typeof g.A.setImmediate||g.A.Window&&g.A.Window.prototype&&!Uc("Edge")&&g.A.Window.prototype.setImmediate==g.A.setImmediate?(Ag||(Ag=eba()),Ag(a)):g.A.setImmediate(a)}; eba=function(){var a=g.A.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Uc("Presto")&&(a=function(){var e=g.ng("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.C)(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&&!Uc("Trident")&&!Uc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.jG;c.jG=null;e()}}; return function(e){d.next={jG:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.A.setTimeout(e,0)}}; Cg=function(a){g.A.setTimeout(function(){throw a;},0)}; Dg=function(){this.l=this.i=null}; Eg=function(){this.next=this.scope=this.i=null}; g.Ig=function(a,b){Fg||mda();Gg||(Fg(),Gg=!0);Hg.add(a,b)}; mda=function(){if(g.A.Promise&&g.A.Promise.resolve){var a=g.A.Promise.resolve(void 0);Fg=function(){a.then(Jg)}}else Fg=function(){Bg(Jg)}}; Jg=function(){for(var a;a=Hg.remove();){try{a.i.call(a.scope)}catch(b){Cg(b)}Lf(Kg,a)}Gg=!1}; Lg=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}}; Ng=function(a){this.Oa=0;this.Od=void 0;this.kq=this.hm=this.ip=null;this.Fw=this.VA=!1;if(a!=g.Ja)try{var b=this;a.call(void 0,function(c){Mg(b,2,c)},function(c){Mg(b,3,c)})}catch(c){Mg(this,3,c)}}; Og=function(){this.next=this.context=this.onRejected=this.l=this.i=null;this.u=!1}; Sg=function(a,b,c){var d=Rg.get();d.l=a;d.onRejected=b;d.context=c;return d}; Tg=function(a){if(a instanceof Ng)return a;var b=new Ng(g.Ja);Mg(b,2,a);return b}; Ug=function(a){return new Ng(function(b,c){c(a)})}; Wg=function(a,b,c){Vg(a,b,c,null)||g.Ig(g.Qa(b,a))}; nda=function(a){return new Ng(function(b,c){a.length||b(void 0);for(var d=0,e;d=a.B&&a.oK()}; nh=function(a,b){return a.G.has(b)?void 0:a.i.get(b)}; vda=function(a){for(var b=0;bu;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],B=e[3],G=e[4];for(u=0;80>u;u++){if(40>u)if(20>u){var H=B^x&(y^B);var I=1518500249}else H=x^y^B,I=1859775393;else 60>u?(H=x&y|B&(x|y),I=2400959708):(H=x^y^B,I=3395469782);H=((r<<5|r>>>27)&4294967295)+H+G+I+t[u]&4294967295;G=B;B=y;y=(x<<30|x>>>2)&4294967295;x=r;r=H}e[0]=e[0]+r&4294967295;e[1]=e[1]+x&4294967295;e[2]= e[2]+y&4294967295;e[3]=e[3]+B&4294967295;e[4]=e[4]+G&4294967295} function c(r,t){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var u=[],x=0,y=r.length;xn?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,vO:function(){for(var r=d(),t="",u=0;ub&&(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)]}; ni=function(a,b){return b?a?a+"&"+b:b:a}; oi=function(a,b){if(!b)return a;a=mi(a);a[1]=ni(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; pi=function(a,b,c){if(Array.isArray(b))for(var d=0;dd)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return pd(a.substr(d,e-d))}; yi=function(a,b){for(var c=a.search(wi),d=0,e,f=[];0<=(e=vi(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(Lda,"$1")}; zi=function(a,b,c){return ui(yi(a,b),b,c)}; Mda=function(a,b){a=mi(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]=ni(d.join("&"),g.ri(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; g.Ai=function(a){g.If.call(this);this.headers=new g.bi;this.xa=a||null;this.C=!1;this.va=this.i=null;this.La=this.U="";this.l=0;this.u="";this.G=this.Ea=this.Y=this.Aa=!1;this.J=0;this.X=null;this.Ga="";this.ma=this.K=!1}; Nda=function(a,b,c,d,e,f,h){var l=new g.Ai;Bi.push(l);b&&l.Ra("complete",b);l.Zw("ready",l.hO);f&&(l.J=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)}; Oda=function(a){return g.fe&&g.Wd(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout}; Ei=function(a,b){a.C=!1;a.i&&(a.G=!0,a.i.abort(),a.G=!1);a.u=b;a.l=5;Ci(a);Di(a)}; Ci=function(a){a.Aa||(a.Aa=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; Oi=function(a){if(a.C&&"undefined"!=typeof Fi)if(a.va[1]&&4==g.Gi(a)&&2==a.getStatus())Hi(a,"Local request error detected and ignored");else if(a.Y&&4==g.Gi(a))g.jh(a.oJ,0,a);else if(a.dispatchEvent("readystatechange"),4==g.Gi(a)){Hi(a,"Request complete");a.C=!1;try{if(Ni(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.l=6;try{var b=2a.yb()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.va}; gj=function(a,b){a.G=new g.Ve(1>b?1:b,3E5,.1);a.i.setInterval(a.G.getValue())}; Wda=function(a){Vda(a,function(b,c){b=ui(b,"format","json");b=jg().navigator.sendBeacon(b,Me(c));a.Ea&&!b&&(a.Ea=!1);return b})}; Vda=function(a,b){if(0!==a.l.length){var c=yi(fj(a),"format");c=si(c,"auth",a.Ga(),"authuser",a.U||"0");for(var d=0;10>d&&a.l.length;++d){var e=a.l.slice(0,32),f=Xi(Wi(a.C.clone()),e);0===d&&Yi(f,a.J);if(!b(c,f))break;a.l=a.l.slice(e.length)}a.i.enabled&&a.i.stop();a.J=0}}; hj=function(){g.hf.call(this,"event-logged",void 0)}; Xda=function(a,b,c){Nda(a.url,function(d){d=d.target;Ni(d)?b(g.Qi(d)):c(d.getStatus())},a.requestType,a.body,a.rp,a.timeoutMillis,a.withCredentials)}; ij=function(){this.u="https://play.google.com/log?format=json&hasfast=true";this.B=!1;this.J=Xda;this.i=""}; jj=function(){var a="",b=!1,c="1";a=void 0===a?"":a;c=void 0===c?"":c;var d=new ij;d.i="";""!=a&&(d.u=a);if(void 0===b?0:b)d.B=!0;c&&(d.l=c);this.i=d.He()}; kj=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}; lj=function(){}; mj=function(a){this.Kl=a;this.B=new jj;this.i=new lh(this.B);this.clientError=new wda(this.i);this.l=new ph(this.i);this.u=new oh(this.i)}; nj=function(a){ze(this,a,-1,null,null)}; oj=function(a){ze(this,a,-1,null,null)}; pj=function(a){ze(this,a,-1,null,null)}; qj=function(a){var b=this;this.l=this.u=this.C=null;this.i=!1;if(a.challenge instanceof pj){var c=Be(a.challenge,4,"");var d=Be(a.challenge,5,"")}else c=a.program,d=a.globalName;this.B=new Promise(function(e){var f=g.q((0,g.A[d].a)(c,function(h,l){Promise.resolve().then(function(){b.u=h;b.l=l||null;e(void 0)})},!0)).next().value; b.C=f})}; sj=function(a){if(a!==rj)throw Error("Bad secret");}; tj=function(){var a="undefined"!==typeof window?window.trustedTypes:void 0;return null!==a&&void 0!==a?a:null}; Yda=function(){var a,b;void 0===uj&&(uj=null!==(b=null===(a=tj())||void 0===a?void 0:a.createPolicy("google#safe",{createHTML:function(c){return c}, createScript:function(c){return c}, createScriptURL:function(c){return c}}))&&void 0!==b?b:null); return uj}; vj=function(){}; wj=function(a,b){sj(b);this.i=a}; xj=function(){}; yj=function(a,b){sj(b);this.i=a}; zj=function(a){if(a instanceof xj)if(a instanceof yj)a=a.i;else throw Error("wrong type");else a=g.Fc(a);return a}; Aj=function(a){var b,c=(a.ownerDocument&&a.ownerDocument.defaultView||window).document;(b=(c=null===(b=c.querySelector)||void 0===b?void 0:b.call(c,"script[nonce]"))?c.nonce||c.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)}; g.Bj=function(a,b){a.src=lc(b);Aj(a)}; Cj=function(){this.i={};this.l=null}; Zda=function(a,b,c,d){var e;if(!b&&!c)return Promise.resolve();if(!d)return Dj(b,c);(e=a.i)[d]||(e[d]=new Promise(function(f,h){Dj(b,c).then(function(){a.l=d;f()},function(l){delete a.i[d]; h(l)})})); return a.i[d]}; Dj=function(a,b){return b?$da(b):a?aea(a):Promise.resolve()}; $da=function(a){return new Promise(function(b,c){var d=g.ng("SCRIPT"),e=id(g.fc("From proto message. b/12014412"),Ae(a,4)||"");g.Bj(d,e);d.onload=function(){g.rg(d);b()}; d.onerror=function(){g.rg(d);c(Error("EWLS"))}; (g.$f("HEAD")[0]||document.documentElement).appendChild(d)})}; aea=function(a){return new Promise(function(b){var c=g.ng("SCRIPT"),d;if(a){var e=Ae(a,6);if(e){var f=null===(d=Yda())||void 0===d?void 0:d.createScript(e);d=new wj(null!==f&&void 0!==f?f:e,rj)}else d=null}else d=null;var h;if(d instanceof vj)if(null===(h=tj())||void 0===h?0:h.isScript(d))h=d;else if(d instanceof wj)h=d.i;else throw Error("wrong type");else h=d instanceof hc&&d.constructor===hc?d.i:"type_error:SafeScript";c.textContent=h;Aj(c);(g.$f("HEAD")[0]||document.documentElement).appendChild(c); g.rg(c);b()})}; Ej=function(a){this.i=a}; Fj=function(a){ze(this,a,-1,null,null)}; bea=function(a,b){return Fe(a,1,b,"")}; Gj=function(a){ze(this,a,-1,null,null)}; Hj=function(a,b,c){this.i=a;this.u=b;this.l=c}; Ij=function(a,b,c){c=void 0===c?{}:c;this.eU=a;this.i=c;this.l=b}; Jj=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.i=d;this.l=e}; Kj=function(a,b,c){c=void 0===c?{}:c;return new Hj(b,a,c)}; Lj=function(a){ze(this,a,-1,null,null)}; cea=function(a,b){return Fe(a,1,b,"")}; dea=function(a,b){return Fe(a,2,b,"")}; Mj=function(a){ze(this,a,-1,null,null)}; Nj=function(a){ze(this,a,-1,null,null)}; Oj=function(a){ze(this,a,-1,eea,null)}; Pj=function(a,b){this.J=a.pQ;this.K=b;this.i=a.xhr;this.u=[];this.C=[];this.G=[];this.B=[];this.l=[];this.J&&fea(this)}; gea=function(a,b){uf(a.i,"complete",function(){if(Ni(a.i)){var c=g.Qi(a.i);if(b&&"text/plain"===a.i.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}var d=a.K(c),e=kj(a.i.getStatus());Qj(a,Rj(a));0==e?Sj(a,d):Tj(a,{code:e,message:c})}else c=g.Qi(a.i),e={},c?(e=Uj(a,c),c=e.code,d=e.details,e=e.metadata):(c=2,d="Rpc failed due to xhr error. error code: "+a.i.l+", error: "+a.i.getLastError()),Qj(a,Rj(a)),Tj(a,{code:c,message:d,metadata:e})})}; fea=function(a){a.J.Cl("data",function(b){if("1"in b){var c=a.K(b["1"]);Sj(a,c)}if("2"in b)for(b=Uj(a,b["2"]),c=0;cb)throw Error("Bad port number "+b);a.u=b}else a.u=null}; fk=function(a,b,c){b instanceof nk?(a.l=b,hea(a.l,a.G)):(c||(b=ok(b,iea)),a.l=new nk(b,a.G))}; g.pk=function(a,b,c){a.l.set(b,c)}; g.qk=function(a){return a instanceof g.bk?a.clone():new g.bk(a,void 0)}; gk=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}; ok=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,jea),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}; jea=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}; nk=function(a,b){this.l=this.i=null;this.u=a||null;this.B=!!b}; rk=function(a){a.i||(a.i=new g.bi,a.l=0,a.u&&li(a.u,function(b,c){a.add(pd(b),c)}))}; tk=function(a,b){rk(a);b=sk(a,b);return a.i.has(b)}; g.uk=function(a,b,c){a.remove(b);0a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}; g.Il=function(a){var b=Wf(a),c=new g.Qf(0,0);var d=b?Wf(b):document;d=!g.fe||g.Xd(9)||"CSS1Compat"==Yf(d).i.compatMode?d.documentElement:d.body;if(a==d)return c;a=Hl(a);b=hg(Yf(b).i);c.x=a.left+b.x;c.y=a.top+b.y;return c}; Kl=function(a,b){var c=new g.Qf(0,0),d=jg(Wf(a));if(!Sd(d,"parent"))return c;do{var e=d==b?g.Il(a):Jl(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.Ml=function(a,b){a=Ll(a);b=Ll(b);return new g.Qf(a.x-b.x,a.y-b.y)}; Jl=function(a){a=Hl(a);return new g.Qf(a.left,a.top)}; Ll=function(a){if(1==a.nodeType)return Jl(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Qf(a.clientX,a.clientY)}; g.Nl=function(a,b,c){if(b instanceof g.Sf)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Fl(b,!0);a.style.height=g.Fl(c,!0)}; g.Fl=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}; g.Ol=function(a){var b=Gea;if("none"!=El(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}; Gea=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.ig&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Hl(a),new g.Sf(a.right-a.left,a.bottom-a.top)):new g.Sf(b,c)}; g.Pl=function(a,b){a.style.display=b?"":"none"}; Tl=function(){if(Ql&&!jl(Rl)){var a="."+Sl.domain;try{for(;2e?encodeURIComponent(wm(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))}; Oea=function(a,b,c){b=b+"//pagead2.googlesyndication.com"+c;var d=Nea(a)-c.length;if(0>d)return"";a.i.sort(function(p,r){return p-r}); c=null;for(var e="",f=0;f=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+""}; Nea=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}; xm=function(a,b){this.i=a;this.depth=b}; Qea=function(){function a(l,m){return null==l?m:l} var b=qm(),c=Math.max(b.length-1,0),d=sm(b);b=d.i;var e=d.l,f=d.u,h=[];f&&h.push(new xm([f.url,f.KB?2:0],a(f.depth,1)));e&&e!=f&&h.push(new xm([e.url,2],0));b.url&&b!=f&&h.push(new xm([b.url,0],a(b.depth,c)));d=g.Oe(h,function(l,m){return h.slice(0,h.length-m)}); !b.url||(f||e)&&b!=f||(e=Bea(b.url))&&d.push([new xm([e,1],a(b.depth,c))]);d.push([]);return g.Oe(d,function(l){return Pea(c,l)})}; Pea=function(a,b){g.ym(b,function(e){return 0<=e.depth}); var c=zm(b,function(e,f){return Math.max(e,f.depth)},-1),d=paa(c+2); d[0]=a;g.Cb(b,function(e){return d[e.depth+1]=e.i}); return d}; Rea=function(){var a=Qea();return g.Oe(a,function(b){return vm(b)})}; g.Am=function(a){if(a.ze&&a.hasOwnProperty("ze"))return a.ze;var b=new a;return a.ze=b}; Bm=function(){this.l=new pm;this.i=lm()?new mm:new km}; Sea=function(){Cm();var a=nm.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof nm.setInterval&&"function"===typeof nm.clearInterval&&"function"===typeof nm.setTimeout&&"function"===typeof nm.clearTimeout)}; Dm=function(a){Cm();var b=Tl()||nm;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)}; Em=function(){Cm();return Rea()}; Fm=function(){}; Cm=function(){return g.Am(Fm).getContext()}; Gm=function(a){ze(this,a,-1,null,null)}; Tea=function(a){this.u=a;this.i=-1;this.l=this.B=0}; Hm=function(a,b){return function(c){for(var d=[],e=0;eMath.random())}; Rm=function(a){a&&Qm&&Om()&&(Qm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Qm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; Um=function(){var a=Sm;this.i=Tm;this.LG="jserror";this.lD=!0;this.iA=null;this.l=this.WB;this.Gb=void 0===a?null:a}; Xm=function(a,b,c,d){return Hm(Km().i.i,function(){try{if(a.Gb&&a.Gb.i){var e=a.Gb.start(b.toString(),3);var f=c();a.Gb.end(e)}else f=c()}catch(m){var h=a.lD;try{Rm(e);var l=new Vm(Wm(m));h=a.l(b,l,void 0,d)}catch(n){a.WB(217,n)}if(!h)throw m;}return f})()}; Zm=function(a,b,c){var d=Ym;return Hm(Km().i.i,function(e){for(var f=[],h=0;hd?500:h}; jn=function(a,b,c){var d=new ml(0,0,0,0);this.time=a;this.volume=null;this.u=b;this.i=d;this.l=c}; kn=function(a,b,c,d,e,f,h){this.B=a;this.u=b;this.G=c;this.i=d;this.C=e;this.l=f;this.J=h}; ln=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,jl(a)&&(c=a,b=d);return{Vf:c,level:b}}; mn=function(a){var b=a!==a.top,c=a.top===ln(a).Vf,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),Ib(dfa,function(h){return"function"===typeof f[h]})||(e=1)); return{Yi:f,compatibility:e,rU:d}}; efa=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint}; nn=function(a,b,c,d){var e=void 0===e?!1:e;c=Zm(d,c,void 0);fl(a,b,c,{capture:e})}; on=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b}; pn=function(a){return new ml(a.top,a.right,a.bottom,a.left)}; qn=function(a){var b=a.top||0,c=a.left||0;return new ml(b,c+(a.width||0),b+(a.height||0),c)}; rn=function(a){return null!=a&&0<=a&&1>=a}; ffa=function(){var a=g.Tc;return a?sn("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return zc(a,b)})||zc(a,"OMI/")&&!zc(a,"XiaoMi/")?!0:zc(a,"Presto")&&zc(a,"Linux")&&!zc(a,"X11")&&!zc(a,"Android")&&!zc(a,"Mobi"):!1}; tn=function(){this.u=!jl(nm.top);this.isMobileDevice=hl()||il();var a=qm();this.domain=0c.height?m>p?(d=m,e=n):(d=p,e=r):mb.u?!1:a.lb.l?!1:typeof a.itypeof b.i?!1:a.ic++;){if(a===b)return!0;try{if(a=g.sg(a)||a){var d=Wf(a),e=d&&jg(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1}; pfa=function(a,b,c){if(!a||!b)return!1;b=ol(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Tl();jl(d.top)&&d.top&&d.top.document&&(d=d.top);if(!efa(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Wf(c))&&b.defaultView&&b.defaultView.frameElement)&&ofa(b,a);d=a===c;a=!d&&a&&yg(a,function(e){return e===c}); return!(b||d||a)}; qfa=function(a,b,c,d){return wn().u?!1:0>=nl(a)||0>=a.getHeight()?!0:c&&d?an(208,function(){return pfa(a,b,c)}):!1}; fo=function(a,b,c){g.E.call(this);this.position=rfa.clone();this.jx=this.zw();this.UB=-2;this.EU=Date.now();this.EK=-1;this.lastUpdateTime=b;this.Ww=null;this.Yv=!1;this.xx=null;this.opacity=-1;this.requestSource=c;this.PK=this.YB=g.Ja;this.Jg=new Kea;this.Jg.Um=a;this.Jg.i=a;this.Nq=!1;this.po={gC:null,eC:null};this.nK=!0;this.Mu=null;this.Iq=this.KP=!1;Km().G++;this.Ze=this.jB();this.zK=-1;this.xd=null;this.HP=!1;a=this.featureSet=new fm;gm(a,"od",sfa);gm(a,"opac",Im).i=!0;gm(a,"sbeos",Im).i=!0; gm(a,"prf",Im).i=!0;gm(a,"mwt",Im).i=!0;gm(a,"iogeo",Im);(a=this.Jg.Um)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(tfa&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+vd()):a.getAttribute("data-"+vd()))&&(wn().l=!0);1==this.requestSource?hm(this.featureSet,"od",1):hm(this.featureSet,"od",0)}; go=function(a,b){b!=a.Iq&&(a.Iq=b,a=wn(),b?a.G++:0c?0:a}; ufa=function(a,b,c){if(a.xd){a.xd.gm();var d=a.xd.J,e=d.B,f=e.i;if(null!=d.G){var h=d.u;a.xx=new g.Qf(h.left-f.left,h.top-f.top)}f=a.ly()?Math.max(d.i,d.C):d.i;h={};null!==e.volume&&(h.volume=e.volume);e=a.kH(d);a.Ww=d;a.Ma(f,b,c,!1,h,e,d.J)}}; vfa=function(a){if(a.Yv&&a.Mu){var b=1==im(a.featureSet,"od"),c=wn().i,d=a.Mu,e=a.xd?a.xd.getName():"ns",f=new g.Sf(nl(c),c.getHeight());c=a.ly();a={tU:e,xx:a.xx,aV:f,ly:c,Pc:a.Ze.Pc,YU:b};if(b=d.l){b.gm();e=b.J;f=e.B.i;var h=null,l=null;null!=e.G&&f&&(h=e.u,h=new g.Qf(h.left-f.left,h.top-f.top),l=new g.Sf(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.i,e.C):e.i;c={tU:b.getName(),xx:h,aV:l,ly:c,YU:!1,Pc:e}}else c=null;c&&lfa(d,a,c)}}; wfa=function(a,b,c){b&&(a.YB=b);c&&(a.PK=c)}; xfa=function(){this.B=this.i=this.u=this.l=this.C=0}; yfa=function(a){var b={};var c=g.Sa()-a.C;b=(b.ptlt=c,b);(c=a.l)&&(b.pnk=c);(c=a.u)&&(b.pnc=c);(c=a.B)&&(b.pnmm=c);(a=a.i)&&(b.pns=a);return b}; jo=function(){Wl.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; ko=function(a){return rn(a.volume)&&0Math.max(1E4,a.u/3)?0:b);var c=a.K(a)||{};c=void 0!==c.currentTime?c.currentTime:a.Y;var d=c-a.Y,e=0;0<=d?(a.X+=b,a.Aa+=Math.max(b-d,0),e=Math.min(d,a.X)):a.Da+=Math.abs(d);0!=d&&(a.X=0);-1==a.Ga&&0=a.u/2:0=a.xa:!1:!1}; Ffa=function(a){var b=on(a.Ze.Pc,2),c=a.Re.u,d=a.Ze,e=yo(a),f=xo(e.B),h=xo(e.G),l=xo(d.volume),m=on(e.J,2),n=on(e.X,2),p=on(d.Pc,2),r=on(e.ma,2),t=on(e.xa,2);d=on(d.Yg,2);a=a.Em().clone();a.round();e=bo(e,!1);return{ZU:b,Gt:c,kx:f,gx:h,ws:l,lx:m,hx:n,Pc:p,nx:r,ix:t,Yg:d,position:a,wx:e}}; Ko=function(a,b){Bo(a.i,b,function(){return{ZU:0,Gt:void 0,kx:-1,gx:-1,ws:-1,lx:-1,hx:-1,Pc:-1,nx:-1,ix:-1,Yg:-1,position:void 0,wx:[]}}); a.i[b]=Ffa(a)}; Bo=function(a,b,c){for(var d=a.length;dc.time?b:c},a[0])}; ep=function(a){a=void 0===a?nm:a;Hn.call(this,new zn(a,2))}; gp=function(){var a=fp();zn.call(this,nm.top,a,"geo")}; fp=function(){Km();var a=wn();return a.u||a.l?0:2}; hp=function(){}; ip=function(){this.done=!1;this.i={RN:0,RF:0,d8:0,JG:0,HB:-1,mO:0,lO:0,nO:0};this.C=null;this.G=!1;this.u=null;this.J=0;this.l=new yn(this)}; kp=function(){var a=jp;a.G||(a.G=!0,Xfa(a,function(b){for(var c=[],d=0;dm?1:0)?-m:m;if(0===m)ke=0<1/m?0:2147483648,je=0;else if(isNaN(m))ke=2147483647,je=4294967295;else if(1.7976931348623157E308>>0,je=0;else if(2.2250738585072014E-308>m)m/=Math.pow(2,-1074),ke=(h<<31|m/4294967296)>>>0,je=m>>>0;else{n=m;l=0;if(2<=n)for(;2<= n&&1023>l;)l++,n/=2;else for(;1>n&&-1022>>0;je=4503599627370496*m>>>0}Nd(y,je);Nd(y,ke)}y=Ce(f,2);0!==y&&le(x,2,y);y=Ce(f,3);0!==y&&le(x,3,y);y=Ce(f,4);0!==y&&le(x,4,y);y=Ce(f,5);if(0!==y&&(f=y,null!=f&&null!=f))if(Md(x.i,40),y=x.i,0<=f)Md(y,f);else{for(h=0;9>h;h++)y.push(f&127|128),f>>=7;y.push(1)}y=ie(x);y=(u.pf=g.$d(y),u)}else y={};g.Yb(t,y);g.Yb(c,e,d,t,a());if(e=Pn())d={},g.Yb(c,(d.v=encodeURIComponent(e),d))}])}; aga=function(){var a=op||nm;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("&")}; pp=function(a){return function(b){return void 0===b[a]?0:b[a]}}; rp=function(){var a=[0,2,4];return function(b){b=b.tos;if(Array.isArray(b)){for(var c=Array(b.length),d=0;dg.Mb(dga).length?null:zm(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Ap[d[0]]||!Ap[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}}; fga=function(a,b){if(void 0==a.i)return 0;switch(a.C){case "mtos":return a.l?Yn(b.i,a.i):Yn(b.l,a.i);case "tos":return a.l?Wn(b.i,a.i):Wn(b.l,a.i)}return 0}; Bp=function(a,b,c,d){po.call(this,b,d);this.G=a;this.J=c}; Cp=function(a){po.call(this,"fully_viewable_audible_half_duration_impression",a)}; Dp=function(a,b){po.call(this,a,b)}; Ep=function(){this.l=this.B=this.G=this.C=this.u=this.i=""}; gga=function(){}; Fp=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.Yb(f,a);void 0!==c&&g.Yb(f,c);a=Mn(Ln(new Kn,f));0String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1}; gq=function(a){return!!(1<>>0]|=f<>>0).toString(16)+"&"}); c=105;g.Cb(tga,function(d){var e="false";try{e=d(nm)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"}); g.Cb(uga,function(d){var e="";try{e=g.$d(g.Xa(d(nm)),3)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"}); return a.slice(0,-1)}; rga=function(){if(!hq){var a=function(){iq=!0;nm.document.removeEventListener("webdriver-evaluate",a,!0)}; nm.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){jq=!0;nm.document.removeEventListener("webdriver-evaluate-response",b,!0)}; nm.document.addEventListener("webdriver-evaluate-response",b,!0);hq=!0}}; kq=function(){this.blockSize=-1}; lq=function(){this.blockSize=-1;this.blockSize=64;this.i=Array(4);this.B=Array(this.blockSize);this.u=this.l=0;this.reset()}; mq=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}; nq=function(){this.l=null}; oq=function(a){return function(b){var c=new lq;c.update(b+a);return iaa(c.digest()).slice(-8)}}; pq=function(a,b){this.i=a;this.u=b}; qo=function(a,b,c){var d=a.l();if("function"===typeof d){var e={};e=(e.sv="899",e.cb=vp,e.e=wga(b),e);var f=No(c,b,xn());g.Yb(e,f);c.bL[b]=f;a=2==c.Uj()?jfa(e).join("&"):a.u.i(e).i;try{return d(c.Ef,a,b),0}catch(h){return 2}}else return 1}; wga=function(a){var b=zp(a)?"custom_metric_viewable":a;a=Pb(Lo,function(c){return c==b}); return xp[a]}; qq=function(){Tp.call(this);this.G=null;this.C=!1;this.B=new nq}; xga=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.l&&Array.isArray(c)&&lga(a,c,b)}; yga=function(a,b,c){var d=To(Vo,b);d||(d=c.opt_nativeTime||-1,d=Up(a,b,Zp(a),d),c.opt_osdId&&(d.La=c.opt_osdId));return d}; zga=function(a,b,c){var d=To(Vo,b);d||(d=Up(a,b,"n",c.opt_nativeTime||-1));return d}; Aga=function(a,b){var c=To(Vo,b);c||(c=Up(a,b,"h",-1));return c}; Bga=function(a){Km();switch(Zp(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}; sq=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Yb(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.B.i(yp("ol",d));if(void 0!==d)if(void 0!==wp(d))if(Wp)b=yp("ue",d);else if(oga(a),"i"==Xp)b=yp("i",d),b["if"]=0;else if(b=a.Dw(b,e))if(a.u&&3==b.hg)b="stopped";else{b:{"i"==Xp&&(b.Nq=!0,a.bD());c=e.opt_fullscreen;void 0!==c&&go(b,!!c);var f;if(c=!wn().l)(c=zc(g.Tc,"CrKey")||zc(g.Tc,"PlayStation")||zc(g.Tc,"Roku")||ffa()||zc(g.Tc,"Xbox"))||(c=g.Tc,c=zc(c,"AppleTV")||zc(c, "Apple TV")||zc(c,"CFNetwork")||zc(c,"tvOS")),c||(c=g.Tc,c=zc(c,"sdk_google_atv_x86")||zc(c,"Android TV")),c=!c;c&&(Cm(),c=0===om(Sl));if(f=c){switch(b.Uj()){case 1:aq(a,b,"pv");break;case 2:a.TC(b)}Yp("pv")}c=d.toLowerCase();if(f=!f)f=im(Km().featureSet,"ssmol")&&"loaded"===c?!1:g.kb(Cga,c);if(f&&0==b.hg){"i"!=Xp&&(jp.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;hn=f="number"===typeof f?f:dn();b.Yv=!0;var h=xn();b.hg=1;b.gf={};b.gf.start=!1;b.gf.firstquartile=!1;b.gf.midpoint=!1;b.gf.thirdquartile= !1;b.gf.complete=!1;b.gf.resume=!1;b.gf.pause=!1;b.gf.skip=!1;b.gf.mute=!1;b.gf.unmute=!1;b.gf.viewable_impression=!1;b.gf.measurable_impression=!1;b.gf.fully_viewable_audible_half_duration_impression=!1;b.gf.fullscreen=!1;b.gf.exitfullscreen=!1;b.LA=0;h||(b.Mg().K=f);lp(jp,[b],!h)}(f=b.Ip[c])&&lo(b.Re,f);g.kb(Dga,c)&&!b.Nq&&b.Yo&&0!=b.hg&&(f=b.Yo,f.i||(f.i=ro(f,b)));switch(b.Uj()){case 1:var l=zp(c)?a.J.custom_metric_viewable:a.J[c];break;case 2:l=a.K[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=yp(void 0, c);g.Yb(e,d);d=e;break b}d=void 0}3==b.hg&&(a.u?b.xd&&b.xd.Lr():a.Js(b));b=d}else b=yp("nf",d);else b=void 0;else Wp?b=yp("ue"):(b=a.Dw(b,e))?(d=yp(),g.Yb(d,Mo(b,!0,!1,!1)),b=d):b=yp("nf");return"string"===typeof b?a.u&&"stopped"===b?rq:a.B.i(void 0):a.B.i(b)}; tq=function(a){var b={};return b.viewability=a.i,b.googleViewability=a.u,b.moatInit=a.C,b.moatViewability=a.G,b.integralAdsViewability=a.B,b.doubleVerifyViewability=a.l,b}; uq=function(a,b,c){c=void 0===c?{}:c;a=sq(g.Am(qq),b,c,a);return tq(a)}; vq=function(a,b){b=void 0===b?!1:b;var c=g.Am(qq).Dw(a,{});c?wo(c):b&&(a=g.Am(qq).vu(null,dn(),!1,a),a.hg=3,Yo([a]))}; xq=function(a){if(g.rc(g.rd(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.bk(a)}catch(c){return null!=g.gb(wq,function(d){return 0e;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.i[0];c=a.i[1];var h=a.i[2],l=a.i[3],m=a.i[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=l^c&(h^l);var n=1518500249}else f=c^h^l,n=1859775393;else 60>e?(f=c&h|l&(c|h),n=2400959708): (f=c^h^l,n=3395469782);f=(b<<5|b>>>27)+f+m+n+d[e]&4294967295;m=l;l=h;h=(c<<30|c>>>2)&4294967295;c=b;b=f}a.i[0]=a.i[0]+b&4294967295;a.i[1]=a.i[1]+c&4294967295;a.i[2]=a.i[2]+h&4294967295;a.i[3]=a.i[3]+l&4294967295;a.i[4]=a.i[4]+m&4294967295}; Jq=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""}; Kq=function(a){return a.classList?a.classList:Jq(a).match(/\S+/g)||[]}; g.Lq=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)}; g.Mq=function(a,b){return a.classList?a.classList.contains(b):g.kb(Kq(a),b)}; g.K=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Mq(a,b)){var c=Jq(a);g.Lq(a,c+(0document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)}; Oga=function(a){if(!a)return Pc;var b=document.createElement("div").style;Kga(a).forEach(function(c){var d=g.ig&&c in Lga?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");nc(d,"--")||nc(d,"var")||(c=Vq(Mga,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Jga(c),null!=c&&Vq(Nga,b,b.setProperty?"setProperty":"setAttribute",[d,c]))}); return Faa(b.cssText||"")}; Kga=function(a){g.Ma(a)?a=g.rb(a):(a=g.Mb(a),g.ob(a,"cssText"));return a}; g.Xq=function(a){var b,c=b=0,d=!1;a=a.split(Pga);for(var e=0;eg.Sa()}; g.kr=function(a){this.i=a}; Wga=function(){}; lr=function(){}; mr=function(a){this.i=a}; nr=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.i=a}; or=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.i=a}; qr=function(a,b){this.l=a;this.i=null;if(g.fe&&!g.Xd(9)){pr||(pr=new g.bi);this.i=pr.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)),pr.set(a,this.i));try{this.i.load(this.l)}catch(c){this.i=null}}}; rr=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Xga[b]})}; sr=function(a){try{a.i.save(a.l)}catch(b){throw"Storage mechanism: Quota exceeded";}}; tr=function(a,b){this.l=a;this.i=b+"::"}; g.ur=function(a){var b=new nr;return b.isAvailable()?a?new tr(b,a):b:null}; vr=function(a,b){this.i=a;this.l=b}; wr=function(a){this.i=[];if(a)a:{if(a instanceof wr){var b=a.Rh();a=a.Ng();if(0>=this.i.length){for(var c=this.i,d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c}; yr=function(){wr.call(this)}; zr=function(){}; Ar=function(a){for(var b=[],c=0;cm.status,t=500<=m.status&&600>m.status;if(n||r||t)p=nha(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=m||403===ks(p.xhr))return Ug(new Ss("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var r=0a;a++)this.l.push(0);this.u=0;this.X=g.Ot(window,"mousemove",(0,g.C)(this.U,this));this.K=ns((0,g.C)(this.Y,this),25)}; $t=function(){}; bu=function(a,b,c){return au(b,0,c)}; g.cu=function(a,b){return au(a,1,b)}; du=function(){$t.apply(this,arguments)}; eu=function(){du.i||(du.i=new du);return du.i}; g.fu=function(){return!!g.Ia("yt.scheduler.instance")}; au=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ia("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.ms(a,c||0)}; g.gu=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ia("yt.scheduler.instance.cancelJob");b?b(a):g.os(a)}}; hu=function(a){var b=g.Ia("yt.scheduler.instance.setPriorityThreshold");b&&b(a)}; ku=function(){var a={},b=void 0===a.NT?!1:a.NT;a=void 0===a.BO?!0:a.BO;if(null==g.Ia("_lact",window)){var c=parseInt(g.O("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ha("_lact",c,window);g.Ha("_fact",c,window);-1==c&&iu();g.Ot(document,"keydown",iu);g.Ot(document,"keyup",iu);g.Ot(document,"mousedown",iu);g.Ot(document,"mouseup",iu);b?g.Ot(window,"touchmove",function(){ju("touchmove",200)},{passive:!0}):(g.Ot(window,"resize",function(){ju("resize",200)}),a&&g.Ot(window,"scroll",function(){ju("scroll", 200)})); new Zt(function(){ju("mouse",100)}); g.Ot(document,"touchstart",iu,{passive:!0});g.Ot(document,"touchend",iu,{passive:!0})}}; ju=function(a,b){lu[a]||(lu[a]=!0,g.cu(function(){iu();lu[a]=!1},b))}; iu=function(){null==g.Ia("_lact",window)&&(ku(),g.Ia("_lact",window));var a=Date.now();g.Ha("_lact",a,window);-1==g.Ia("_fact",window)&&g.Ha("_fact",a,window);(a=g.Ia("ytglobal.ytUtilActivityCallback_"))&&a()}; mu=function(){var a=g.Ia("_lact",window),b;null==a?b=-1:b=Math.max(Date.now()-a,0);return b}; g.ou=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.it())a&&(a=g.Fc(g.Jc(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.$c(bd(a)).toString(),a=od(g.Nh(a))),g.rc(a)||(a=mg("IFRAME",{src:'javascript:""',style:"display:none"}),Wf(a).body.appendChild(a)));else if(e)Os(a,b,"POST",e,d);else if(g.O("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Os(a,b,"GET","",d);else{b:{try{var f=new wea({url:a});if(f.u&&f.l||f.B){var h=fi(g.hi(5,a));var l=!(!h||!h.endsWith("/aclk")|| "1"!==xi(a,"ri"));break b}}catch(m){}l=!1}l?nu(a)?(b&&b(),c=!0):c=!1:c=!1;c||wha(a,b)}}; pu=function(a,b,c){c=void 0===c?"":c;nu(a,c)?b&&b():g.ou(a,b,void 0,void 0,c)}; nu=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1}; wha=function(a,b){var c=new Image,d=""+xha++;qu[d]=c;c.onload=c.onerror=function(){b&&qu[d]&&b();delete qu[d]}; c.src=a}; g.wu=function(a,b,c){var d=g.ru();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){tu[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)}; try{g.uu[a]?h():g.ms(h,0)}catch(l){g.Sr(l)}},c); tu[e]=!0;vu[a]||(vu[a]=[]);vu[a].push(e);return e}return 0}; g.xu=function(a){var b=g.ru();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Cb(a,function(c){b.unsubscribeByKey(c);delete tu[c]}))}; g.yu=function(a,b){var c=g.ru();return c?c.publish.apply(c,arguments):!1}; Au=function(a){var b=g.ru();if(b)if(b.clear(a),a)zu(a);else for(var c in vu)zu(c)}; g.ru=function(){return g.A.ytPubsubPubsubInstance}; zu=function(a){vu[a]&&(a=vu[a],g.Cb(a,function(b){tu[b]&&delete tu[b]}),a.length=0)}; yha=function(a,b){if("log_event"===a.endpoint){var c="";a.Wv?c="visitorOnlyApprovedKey":a.Ie&&(Bu[a.Ie.token]=Cu(a.Ie),c=a.Ie.token);var d=Du.get(c)||[];Du.set(c,d);d.push(a.payload);b&&(Eu=new b);a=Or("tvhtml5_logging_max_batch")||Or("web_logging_max_batch")||100;b=(0,g.P)();d.length>=a?Fu({writeThenSend:!0}):10<=b-Gu&&(Hu(),Gu=b)}}; zha=function(a,b){if("log_event"===a.endpoint){var c="";a.Wv?c="visitorOnlyApprovedKey":a.Ie&&(Bu[a.Ie.token]=Cu(a.Ie),c=a.Ie.token);var d=new Map;d.set(c,[a.payload]);b&&(Eu=new b);return new Ng(function(e){Eu&&Eu.isReady()?Iu(d,e,{bypassNetworkless:!0}):e()})}}; Fu=function(a){a=void 0===a?{}:a;new Ng(function(b){g.os(Ju);g.os(Ku);Ku=0;Eu&&Eu.isReady()?(Iu(Du,b,a),Du.clear()):(Hu(),b())})}; Hu=function(){g.Nr("web_gel_timeout_cap")&&!Ku&&(Ku=g.ms(function(){Fu({writeThenSend:!0})},6E4)); g.os(Ju);var a=g.O("LOGGING_BATCH_TIMEOUT",Or("web_gel_debounce_ms",1E4));g.Nr("shorten_initial_gel_batch_timeout")&&Lu&&(a=Aha);Ju=g.ms(function(){Fu({writeThenSend:!0})},a)}; Iu=function(a,b,c){var d=Eu;c=void 0===c?{}:c;var e=Math.round((0,g.P)()),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.Wb({context:g.Mu(d.config_||g.Nu())});l.events=m;(m=Bu[h])&&Bha(l,h,m);delete Bu[h];h="visitorOnlyApprovedKey"===h;Cha(l,e,h);g.Nr("send_beacon_before_gel")&&window.navigator&&window.navigator.sendBeacon&&!c.writeThenSend&&pu("/generate_204");g.Ou(d,"log_event",l,{retry:!0,onSuccess:function(){f--;f||b();Pu= Math.round((0,g.P)()-e)}, onError:function(){f--;f||b()}, zI:c,Wv:h});Lu=!1}}; Cha=function(a,b,c){a.requestTimeMs=String(b);g.Nr("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.O("EVENT_ID",void 0))&&((c=g.O("BATCH_CLIENT_COUNTER",void 0)||0)||(c=Math.floor(Math.random()*Qu/2)),c++,c>Qu&&(c=1),Kr("BATCH_CLIENT_COUNTER",c),b={serializedEventId:b,clientCounter:String(c)},a.serializedClientEventId=b,Ru&&Pu&&g.Nr("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:Ru,roundtripMs:String(Pu)}),Ru=b,Pu=0)}; Bha=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}]}; Cu=function(a){var b={};a.videoId?b.videoId=a.videoId:a.playlistId&&(b.playlistId=a.playlistId);return b}; Tu=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.P)());e.eventTimeMs=f=m)ew(h,r,B,n,G,b.join(),l),p=G;I.ub(2);break;case 3:return I.return(Promise.reject(p))}})})}; ew=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof Mv&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Fv("QUOTA_EXCEEDED",{dbName:Kv(a.i.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof Mv&&"UNKNOWN_ABORT"===e.type&&(c-=a.u,0>c&&c>=Math.pow(2,31)&&(c=0),Fv("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.l=!0),fw(a,!1,d,f,b,h.tag),Ev(e)):fw(a,!0,d,f,b,h.tag)}; fw=function(a,b,c,d,e,f){Fv("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.l,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; Zv=function(a){this.i=a}; gw=function(a,b,c){a.i.createIndex(b,c,{unique:!1})}; Pha=function(a,b){return hw(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})}; Qha=function(a,b,c){var d=[];return hw(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})}; bw=function(a,b,c){return Uv(a.i.put(b,c))}; hw=function(a,b,c){a=a.i.openCursor(b.query,b.direction);return iw(a).then(function(d){return Vv(d,c)})}; Rha=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 Xv(a).then(function(e){return Vv(e,b)})}; dw=function(a){var b=this;this.i=a;this.u=new Map;this.l=!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.l){e=Mv;for(var f=b.i.objectStoreNames,h=[],l=0;l=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})}; kw=function(a,b,c){a=a.i.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return iw(a).then(function(d){return Vv(d,c)})}; lw=function(a,b){this.request=a;this.cursor=b}; iw=function(a){return Uv(a).then(function(b){return null===b?null:new lw(a,b)})}; Tha=function(a,b,c){return new Promise(function(d,e){function f(){t||(t=new Yv(h.result,{closed:r}));return t} var h=self.indexedDB.open(a,b),l=c.blocked,m=c.blocking,n=c.BU,p=c.upgrade,r=c.closed,t;h.addEventListener("upgradeneeded",function(u){try{if(null===u.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");u.dataLoss&&"none"!==u.dataLoss&&Fv("IDB_DATA_CORRUPTED",{reason:u.dataLossMessage||"unknown reason",dbName:Kv(a)});var x=f(),y=new dw(h.transaction);p&&p(x,function(B){return u.oldVersion< B&&u.newVersion>=B},y); y.done.catch(function(B){e(B)})}catch(B){e(B)}}); h.addEventListener("success",function(){var u=h.result;m&&u.addEventListener("versionchange",function(){m(f())}); u.addEventListener("close",function(){Fv("IDB_UNEXPECTEDLY_CLOSED",{dbName:Kv(a),dbVersion:u.version});n&&n()}); d(f())}); h.addEventListener("error",function(){e(h.error)}); l&&h.addEventListener("blocked",function(){l()})})}; mw=function(a,b,c){c=void 0===c?{}:c;return Tha(a,b,c)}; nw=function(a,b){b=void 0===b?{}:b;return g.D(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,Mha(e),0)})})}; ow=function(a,b){this.name=a;this.options=b;this.u=!1}; qw=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,pw.open(),2);d=e.l;return e.return(aw(d,["databases"],{jh:!0,mode:"readwrite"},function(f){var h=cw(f,"databases");return h.get(a.actualName).then(function(l){if(l?a.actualName!==l.actualName||a.publicName!==l.publicName||a.userIdentifier!==l.userIdentifier:1)return bw(h,a).then(function(){})})}))})})}; rw=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,pw.open(),2);d=e.l;return e.return(d.delete("databases",a))})})}; Uha=function(a){return g.D(this,function c(){var d,e;return g.z(c,function(f){return 1==f.i?(d=[],g.w(f,pw.open(),2)):3!=f.i?(e=f.l,g.w(f,aw(e,["databases"],{jh:!0,mode:"readonly"},function(h){d.length=0;return hw(cw(h,"databases"),{},function(l){a(l.getValue())&&d.push(l.getValue());return l.continue()})}),3)):f.return(d)})})}; Vha=function(){return g.D(this,function b(){var c,d;return g.z(b,function(e){if(1==e.i)return c=Hv("YtIdbMeta"),g.w(e,Uha(function(f){return"yt-player-local-media"===f.publicName&&f.userIdentifier===c}),2); d=e.l;return e.return(0a.sendCount?g.w(m,fia(a.id), 8):g.w(m,Fw(a.id),4);case 8:g.cu(function(){Pw().Vi()&&Zw()},5E3); case 4:c(e,f),g.sa(m)}})})}; var d=a.options.onSuccess?a.options.onSuccess:function(){}; a.options.onSuccess=function(e,f){return g.D(b,function l(){return g.z(l,function(m){if(1==m.i)return void 0===(null===a||void 0===a?void 0:a.id)?m.ub(2):g.w(m,Fw(a.id),2);d(e,f);g.sa(m)})})}; return a}; Pw=function(){bx||(bx=new Ow({UP:!0,AO:!0}));return bx}; Tw=function(a){if(Pw().Vi())g.Sr(a);else if(g.Nr("offline_error_handling")){var b=Iw().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Iw().set("errors",b,2592E3,!0)}}; Rw=function(a,b){if(g.Nr("networkless_with_beacon")){var c=["method","postBody"];if(Object.keys(b).length>c.length)var d=!0;else{d=0;c=g.q(c);for(var e=c.next();!e.done;e=c.next())b.hasOwnProperty(e.value)&&d++;d=Object.keys(b).length!==d}d?g.Ps(a,b):g.Nr("networkless_with_ping_send")&&1===Object.keys(b).length&&b.allowPingSend?g.ou(a):pu(a,void 0,b.postBody)}else g.Nr("networkless_with_ping_send")&&1===Object.keys(b).length&&b.allowPingSend?g.ou(a):g.Ps(a,b)}; Qw=function(){return g.Ia("ytNetworklessLoggingInitializationOptions")?$w.isNwlInitialized:!1}; Uw=function(){return g.Ia("ytNetworklessLoggingInitializationOptions")?$w.isIdbSupported:!1}; g.cx=function(a){this.config_=null;a?this.config_=a:gv()&&(this.config_=g.Nu())}; g.Ou=function(a,b,c,d){function e(m){try{(void 0===m?0:m)&&d.retry&&!d.zI.bypassNetworkless?(f.method="POST",!d.zI.writeThenSend&&g.Nr("nwl_send_fast_on_unload")?Xw(l,f):Vw(l,f)):(f.method="POST",f.postParams||(f.postParams={}),g.Ps(l,f))}catch(n){if("InvalidAccessError"==n.name)Ur(Error("An extension is blocking network request."));else throw n;}} !g.O("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&Ur(new g.Gv("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Gv("innertube xhrclient not ready",b,c,d),g.Sr(a),a;var f={headers:{"Content-Type":"application/json"},method:"POST",postParams:c,postBodyFormat:"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(m,n){if(d.onSuccess)d.onSuccess(n)}, onFetchSuccess:function(m){if(d.onSuccess)d.onSuccess(m)}, onError:function(m,n){if(d.onError)d.onError(n)}, onFetchError:function(m){if(d.onError)d.onError(m)}, timeout:d.timeout,withCredentials:!0};c="";var h=a.config_.MH;h&&(c=h);h=Dha(a.config_.OH||!1,c,d);Object.assign(f.headers,h);f.headers.Authorization&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;h={alt:"json"};a.config_.NH&&f.headers.Authorization||(h.key=a.config_.innertubeApiKey);var l=bs(""+c+b,h);Qw()?vw().then(function(m){e(m)}):e(!1)}; g.Bv=function(a,b,c){c=void 0===c?{}:c;var d=g.cx;g.O("ytLoggingEventsDefaultDisabled",!1)&&g.cx==g.cx&&(d=null);Tu(a,b,d,c)}; mia=function(){var a=void 0===a?window.location.href:a;if(g.Nr("kevlar_disable_theme_param"))return null;var b=fi(g.hi(5,a));if(kia(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.$r(a).theme;return lia.get(c)||null}catch(d){}return null}; kia=function(a){var b=nia.map(function(c){return c.toLowerCase()}); return!g.Nr("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1}; ex=function(a,b,c){a&&(a.dataset?a.dataset[dx(b)]=String(c):a.setAttribute("data-"+b,c))}; fx=function(a){return a?a.dataset?a.dataset[dx("loaded")]:a.getAttribute("data-loaded"):null}; dx=function(a){return gx[a]||(gx[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))}; hx=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()}; kx=function(a){var b;ix()?jx()==a&&(b=document):b=a;return b&&(a=It(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()}; lx=function(a){return g.gb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})}; oia=function(){var a=document;return g.gb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})}; ix=function(){return!!It(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; jx=function(a){a=void 0===a?!1:a;var b=It(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null}; mx=function(a){g.E.call(this);this.G=[];this.Ga=a||this}; nx=function(a,b,c,d){for(var e=0;e>3;switch(e&7){case 0:e=Px(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Px(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(db)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity}; Sx=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;df&&(c=a.substring(f,e),c=c.replace(Eia,""),c=c.replace(Fia,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Gia(a,b,c)}; Gia=function(a,b,c){c=void 0===c?null:c;var d=cz(a),e=document.getElementById(d),f=e&&fx(e),h=e&&!f;f?b&&b():(b&&(f=g.wu(d,b),b=""+g.Pa(b),dz[b]=f),h||(e=Hia(a,d,function(){fx(e)||(ex(e,"loaded","true"),g.yu(d),g.ms(g.Qa(Au,d),0))},c)))}; Hia=function(a,b,c,d){d=void 0===d?null:d;var e=g.ng("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.Bj(e,g.xl(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e}; cz=function(a){var b=document.createElement("a");g.kd(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+sd(a)}; gz=function(a,b){for(var c=[],d=1;dMath.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.Gv(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.ob:"");c&&(d.layout=c?"layout: "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.Ux(a)}}; qz=function(a,b,c,d,e,f,h){g.E.call(this);this.u=a;this.l=b;this.gA=c;this.Qa=d;this.B=e;this.i=f;this.Fa=h}; rz=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}; sz=function(a,b,c,d){this.u=a;this.Fd=null;this.l=b;this.i=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.B=void 0===d?!1:d}; tz=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Ux(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a}; vz=function(a,b,c){return b&&b.test(a)||uz&&c&&c.test(a)?!0:!1}; xz=function(a){return(a=wz&&wz.exec(a))?a[0]:""}; yz=function(a){var b=void 0===b?!1:b;return tz(vz(a,Lia,Mia),a,b,"Trusted Stream URL")}; g.zz=function(a){var b=void 0===b?!1:b;return tz(vz(a,Nia,Oia),a,b,"Trusted Image URL")}; Qia=function(a){var b=void 0===b?!1:b;return tz(vz(a,Pia,null),a,b,"Trusted Ad Domain URL")}; Az=function(a){var b=void 0===b?!1:b;return tz(vz(a,Ria,null),a,b,"Trusted Promoted Video Domain URL")}; Tia=function(a){var b=void 0===b?!1:b;return tz(vz(a,Sia,null),a,b,"Drm Licensor URL")}; Bz=function(a,b){b=void 0===b?!1:b;return tz(vz(a,Uia,Via),a,b,"Captions URL")}; Cz=function(a){a=new g.bk(a);g.ck(a,document.location.protocol);g.dk(a,document.location.hostname);document.location.port&&g.ek(a,document.location.port);return a.toString()}; Dz=function(a){a=new g.bk(a);g.ck(a,document.location.protocol);return a.toString()}; g.Fz=function(a,b,c){this.start=a;this.end=b;this.active=!0;this.color="";this.B=Wia++;a=c||{};this.id=a.id||"";this.priority=a.priority||7;this.visible=a.visible||!1;this.style=a.style||Ez.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.ym(d.thumbnails,function(e){return g.zz(e.url)})}):null; this.visible=this.visible;this.style=this.style;this.start=this.start}; Gz=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()}; Xia=function(a,b){switch(a.style){case Ez.CHAPTER_MARKER:return b?8:5;case Ez.AD_MARKER:return 6;case Ez.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; g.Hz=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B}; g.Iz=function(a){return"crn_"+a}; g.Jz=function(a){return"crx_"+a}; Kz=function(a,b,c,d,e){g.Fz.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}; Lz=function(a){return"AD_PLACEMENT_KIND_START"==a.i}; Mz=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i}; Nz=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new $q(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new $q(Math.max(0,b.u-b.i),0x7ffffffffffff):new $q(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 $q(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d= b.Fd;a=1E3*d.startSecs;if(c){if(a1E5*Math.random()&&(c=new g.Gv("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.Ux(c)),!0):!1}; pA=function(a){return!!g.O("FORCE_CSI_ON_GEL",!1)||g.Nr("csi_on_gel")||g.Nr("enable_csi_on_gel")||!!cA(a).useGel}; rA=function(a,b,c){var d=qA(c);d.gelTicks&&(d.gelTicks["tick_"+a]=!0);c||b||(0,g.P)();return pA(c)?(jA(c||"").tick[a]=b||(0,g.P)(),d=eA(c),"_start"===a?(a=mA(),oA(a,"baseline_"+d)||g.Bv("latencyActionBaselined",{clientActionNonce:d},{timestamp:b})):mA().tick(a,d,b),gA(c),!0):!1}; uA=function(a,b,c){c=qA(c);if(c.gelInfos)c.gelInfos["info_"+a]=!0;else{var d={};c.gelInfos=(d["info_"+a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in sA){c=sA[a];g.kb(aja,c)&&(b=!!b);a in tA&&"string"===typeof b&&(b=tA[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;hc.duration?d:c},{duration:0}))&&0a)return!1}return!("function"!==typeof window.fetch||!window.ReadableStream)}; OA=function(a){if(a.Ws())return!1;a=a.getResponseHeader("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a}; PA=function(a,b){this.id=a;this.Jc=b;this.captionTracks=[];this.i=this.u=this.B=null;this.l="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"}; QA=function(a,b,c,d){this.u=c;this.reason=d;this.l=a||0;this.i=b||0}; RA=function(a,b){return a.l===b.l&&a.i===b.i&&a.u===b.u&&a.reason===b.reason}; TA=function(a,b,c,d){return new QA(g.SA[a]||0,g.SA[b]||0,c,d)}; UA=function(a){var b=g.SA.auto;return a.l===b&&a.i===b}; WA=function(a){return VA[a.i||a.l]||"auto"}; XA=function(a,b){b=g.SA[b];return a.l<=b&&(!a.i||a.i>=b)}; YA=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.Jc&&!a.has(c.Jc.id)){var d=new PA(c.id,c.Jc);a.add(c.Jc.id);this.audioTracks.push(d)}}; bB=function(a,b,c,d){var e=[],f=new Set,h=a.X||a.Ya,l={};if(ZA(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.kc();if(""===m.info.i)e.push(p),e.push("unkn");else if("304"!==p&&"266"!==p||!a.Pa)if(a.C&&m.info.video&&m.info.video.i>a.C)e.push(p),e.push("max"+a.C);else if(a.G&&m.info.video&&m.info.video.iy}; a.i&&e("lth."+x+".uth."+y);p=p.filter(function(G){return B(G.fb().i)}); r=r.filter(function(G){return!B(G.fb().i)})}u=[m, n];t=p.concat(r).filter(function(G){return G})}if(t.length&&!a.u){iB(t,d,u); if(a.i){a=[];m=g.q(t);for(n=m.next();!n.done;n=m.next())a.push(n.value.kc());e("hbdfmt."+a.join("."))}return Xs(new YA(t,d,jB(l,"",b)))}t=kB(a);t=g.gb(t,h);if(!t){if(l[m]&&a.eb)return e=l[m],iB(e,d),Xs(new YA(e,d,jB(l,m,b)));a.i&&e("novideo");return Ws()}a.wb&&("1"===t||"1h"===t)&&l[n]&&(m=hB(l[t]),hB(l[n])>m&&(t=n));"9"===t&&l.h&&(m=hB(l["9"]),hB(l.h)>1.5*m&&(t="h"));a.i&&e("vfmly."+cB(t));m=l[t];if(!m.length)return a.i&&e("novfmly."+cB(t)),Ws();iB(m,d);return Xs(new YA(m,d,jB(l,t,b)))}; jB=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)?(iB(d,e),new YA(d,e)):null}; iB=function(a,b,c){c=void 0===c?[]:c;g.zb(a,function(d,e){var f=e.fb().height*e.fb().width-d.fb().height*d.fb().width;if(!f&&c&&0c&&(b=a.J&&(a.Y||dB(a,eB.FRAMERATE))?g.Po(b,function(d){return 32a.getLastSegmentNumber())a.segments=[];else{var c=fb(a.segments,function(d){return d.Ka>=b},a); 0a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-bc;c++){var d=a.getInt8(b+c);if(97>d||122=a.l.byteLength}; hC=function(a,b,c){var d=new aC(c);if(!cC(d,a))return!1;d=dC(d);if(!eC(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.i;var e=fC(d,!0);d=a+(d.start+d.i-b)+e;d=9b;b++)c=256*c+nC(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+nC(a),d*=128;return b?c-d:c}; kC=function(a){var b=fC(a,!0);a.i+=b}; iC=function(a){var b=a.i;a.i=0;var c=!1;try{eC(a,440786851)&&(a.i=0,eC(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.i=0,c=!1,g.Ux(d);else throw d;}a.i=b;return c}; rja=function(a){if(!eC(a,440786851,!0))return null;var b=a.i;fC(a,!1);var c=fC(a,!0)+a.i-b;a.i=b+c;if(!eC(a,408125543,!1))return null;fC(a,!0);if(!eC(a,357149030,!0))return null;var d=a.i;fC(a,!1);var e=fC(a,!0)+a.i-d;a.i=d+e;if(!eC(a,374648427,!0))return null;var f=a.i;fC(a,!1);var h=fC(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}; oC=function(a){var b=a.i;a.i=0;var c=1E6;cC(a,[408125543,357149030,2807729])&&(c=jC(a));a.i=b;return c}; sja=function(a,b){var c=a.i;a.i=0;if(160!==a.l.getUint8(a.i)&&!pC(a)||!eC(a,160))return a.i=c,NaN;fC(a,!0);var d=a.i;if(!eC(a,161))return a.i=c,NaN;fC(a,!0);nC(a);var e=nC(a)<<8|nC(a);a.i=d;if(!eC(a,155))return a.i=c,NaN;d=jC(a);a.i=c;return(e+d)*b/1E9}; pC=function(a){if(!qC(a)||!eC(a,524531317))return!1;fC(a,!0);return!0}; qC=function(a){if(iC(a)){if(!eC(a,408125543))return!1;fC(a,!0)}return!0}; cC=function(a,b){for(var c=0;cb.lf?a.C+1E3*Math.pow(b.rh,a.l-b.lf)<(0,g.P)():!0}; BC=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.i=null;this.B=!1;this.C=null;this.K=0;this.G=this.u=null;this.info=b;this.l=new xC(a)}; CC=function(a){var b=g.q(a.info.id.split(";")),c=b.next().value;b=b.next().value;return c+";"+a.info.lastModified+";"+(void 0===b?"":b)}; DC=function(a,b){this.start=a;this.end=b;this.length=b-a+1}; EC=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new DC(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0a.zb&&b.zb+b.l<=a.zb+a.l}; QC=function(a,b){var c=b.i;a.G="updateWithEmsg";a.Ka=c;b.B&&(a.u=b.B)}; RC=function(a,b){var c=b.Ka;a.G="updateWithSegmentInfo";a.Ka=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,HC(a)}; SC=function(a,b){this.i=a;this.u=null;this.C=this.ye=NaN;this.G=this.requestId=null;this.l=a[0].i.l;this.B=b||"";this.range=this.i[0].range&&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 zB(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}}; jD=function(){this.count=0;this.u=1;this.l=!1;this.offsets=new Float64Array(128);this.i=new Float64Array(128)}; kD=function(a){a.offsets.lengthc&&(c=a.totalLength-b);a.focus(b);if(!pD(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);oD(a);a.focus(b)}d=a.i[a.l];return new DataView(d.buffer,d.byteOffset+b-a.u,c)}; sD=function(a,b,c){a=rD(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}; tD=function(a){a=sD(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;ce)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}; FD=function(a){g.BD(a.info.i.info)||a.info.i.info.De();if(a.l&&6===a.info.type)return a.l.zi;if(g.BD(a.info.i.info)){var b=xD(a);var c=0;b=g.ZB(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=WB(d.value),c+=d.tD[0]/d.yD;c=c||NaN;if(!(0<=c))a:{c=xD(a);b=a.info.i.i;for(var e=d=0,f=0;SB(c,d);){var h=TB(c,d);if(1836476516===h.type)e=g.PB(h);else if(1836019558===h.type){!e&&b&&(e=QB(b));if(!e){c=NaN;break a}var l=RB(h.data,h.dataOffset,1953653094),m=e,n=RB(l.data,l.dataOffset,1952868452); l=RB(l.data,l.dataOffset,1953658222);var p=n.Ne();n.Ne();p&2&&n.Ne();n=p&8?n.Ne():0;var r=l.Ne(),t=r&1;p=r&4;var u=r&256,x=r&512,y=r&1024;r&=2048;var B=l.Fc();t&&l.Ne();p&&l.Ne();for(var G=t=0;G=c+d)break}e.length||g.Tx(new g.Gv("b189619593",""+b,""+c,""+d));return new SC(e)}; KD=function(a,b,c,d){this.sampleRate=a||0;this.i=b||0;this.spatialAudioType=c||0;this.itag=d||""}; Ija=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d}; MD=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||LD(a,b);this.i=g.SA[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.SA[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+(2===c||3===c||4===c?"s":"p")+(55=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"}; QD=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;this.u=!0;this.isSupported=this.l=null;0=b)return c}catch(d){}return-1}; gE=function(a,b){return 0<=fE(a,b)}; Kja=function(a,b){if(!a)return NaN;b=fE(a,b);return 0<=b?a.start(b):NaN}; hE=function(a,b){if(!a)return NaN;b=fE(a,b);return 0<=b?a.end(b):NaN}; iE=function(a){return a&&a.length?a.end(a.length-1):NaN}; jE=function(a,b){a=hE(a,b);return 0<=a?a-b:0}; kE=function(a,b,c){for(var d=[],e=[],f=0;fc||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return dE(d,e)}; lE=function(a,b,c,d){g.Q.call(this);var e=this;this.jd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.yH={error:function(){!e.Ha()&&e.isActive&&e.W("error",e)}, updateend:function(){!e.Ha()&&e.isActive&&e.W("updateend",e)}}; px(this.jd,this.yH);this.Zu=this.isActive}; g.mE=function(a,b,c){c=void 0===c?{}:c;this.errorCode=a;this.i=b;this.details=c}; g.nE=function(a){var b;for(b in a)if(a.hasOwnProperty(b)&&void 0!==a[b]){var c=(""+a[b]).replace(/[:,=]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""}; oE=function(a){var b=void 0===b?!1:b;if(a instanceof g.mE)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.Tx(a):g.Ux(a);return new g.mE(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})}; pE=function(a,b,c,d,e){var f;g.Q.call(this);var h=this;this.Qb=a;this.qe=b;this.id=c;this.containerType=d;this.isVideo=e;this.ZH=this.Vw=this.Ee=null;this.appendWindowStart=this.timestampOffset=0;this.fG=dE([],[]);this.Jv=!1;this.Zd=function(l){return h.W(l.type,h)}; if(null===(f=this.Qb)||void 0===f?0:f.addEventListener)this.Qb.addEventListener("updateend",this.Zd),this.Qb.addEventListener("error",this.Zd)}; qE=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; rE=function(a,b){this.i=a;this.l=void 0===b?!1:b;this.u=!1}; sE=function(a,b,c){c=void 0===c?!1:c;g.E.call(this);this.mediaSource=a;this.qe=b;this.isView=c;this.u=0;this.callback=null;this.events=new mx(this);g.F(this,this.events);this.Pt=new rE(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.qe.webkitMediaSourceURL,!0);a=this.mediaSource||this.qe;nx(this.events,a,["sourceopen","webkitsourceopen"],this.dT);nx(this.events,a,["sourceclose","webkitsourceclose"],this.cT)}; Lja=function(a,b){tE(a)?g.Ig(function(){b(a)}):a.callback=b}; uE=function(a,b){try{a.mediaSource?a.mediaSource.duration=b:(a.u=b,a.qe.webkitSourceSetDuration(b))}catch(c){}}; vE=function(a){return!!a.i||!!a.l}; tE=function(a){try{return"open"===wE(a)}catch(b){return!1}}; wE=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.qe.webkitSourceState){case a.qe.SOURCE_OPEN:return"open";case a.qe.SOURCE_ENDED:return"ended";default:return"closed"}}; xE=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)}; yE=function(a,b,c,d){if(!a.i||!a.l)return null;var e=a.i.isView()?a.i.jd:a.i,f=a.l.isView()?a.l.jd:a.l,h=new sE(a.mediaSource,a.qe,!0);h.Pt=a.Pt;e=new lE(e,b,c,d);b=new lE(f,b,c,d);h.i=e;h.l=b;g.F(h,e);g.F(h,b);tE(a)||a.i.rr(a.i.Lc());return h}; Mja=function(a,b){return zE(function(c,d){return g.Us(c,d,4,1E3)},a,b)}; g.AE=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=EB(new Uint8Array(a.response))):b=a.responseText;return!b||2048a.U&&a.isLivePlayback;a.Da=Number(ZC(c,NE(a,"earliestMediaSequence")))||0;if(d=Date.parse(bD(ZC(c,NE(a,"mpdResponseTime")))))a.ma=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.ym(c.getElementsByTagName("Period"),a.IT,a);a.state=2;a.W("loaded");Zja(a)}return a}),function(c){if(c instanceof Ss){var d=c.xhr; a.X=d.status}a.state=3;a.W("loaderror");return Ug(d)})}; aka=function(a,b,c){return $ja(new CE(a,b,c),a)}; OE=function(a){return a.isLive&&(0,g.P)()-a.xa>=a.U}; Zja=function(a){var b=a.U;isFinite(b)&&(OE(a)?a.refresh():(b=Math.max(0,a.xa+b-(0,g.P)()),a.B||(a.B=new g.J(a.refresh,b,a),g.F(a,a.B)),a.B.start(b)))}; bka=function(a){a=a.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0}; QE=function(a){if(a.isManifestless&&a.K&&PE(a))return PE(a);a=a.i;var b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&(f.G&&(b=!0),h=h.getMaxKnownEndTime(),f.info.Qm()&&(isNaN(c)||ha.La&&(a.va=b);return b}if(a.isLive&&(d=b[c],d.zi))return d.zi}return NaN}; cka=function(a,b){a=Qb(a.i,function(d){return d.index.isLoaded()}); if(!a)return NaN;a=a.index;var c=a.getSegmentNumberForTime(b);return a.getStartTime(c)===b?b:ca.previousQuality)return 1;if(a.quality=navigator.hardwareConcurrency&&(d=e);(e=g.T(a.experiments,"html5_av1_thresh_hcc"))&&4=a*b?null:new g.Sf(a,b)}; GF=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(Oka))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0=QF;m=b?b.useNativeControls:a.use_native_controls;n=this.i&&!this.Z("embeds_enable_mobile_custom_controls");m=RF(this)||!r&&CF(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType= "0"!==n&&0!==n?m:"0";this.J=(this.Z("embeds_enable_mobile_custom_controls")||"1"===this.controlsType&&!this.Z("embeds_use_native_controls_killswitch"))&&g.MF(this)&&this.i;this.Ac=this.i;this.color=DF("red",b&&l?b.progressBarColor:a.color,Vka);this.Nk="3"===this.controlsType||CF(!1,b&&l?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.Ya=!this.l;this.xj=(m=!this.Ya&&!OF(this)&&!this.K&&!this.C&&!NF(this))&&!this.Nk&&"1"===this.controlsType;this.wb=g.SF(this)&&m&&"0"===this.controlsType&& !this.xj;this.Tk=this.Ok=r;this.Gi=TF&&!g.Wd(601)?!1:!0;this.Kj=this.l||!1;this.Vb=OF(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=FF("",b&&l?b.widgetReferrer:a.widget_referrer);var t;b&&l?b.disableCastApi&&(t=!1):t=a.enablecastapi;t=!this.u||CF(!0,t);r=!0;b&&b.disableMdxCast&&(r=!1);this.lf=this.Z("enable_cast_for_web_unplugged")&&g.UF(this)&&r||this.Z("enable_mdx_module_for_music_web")&&g.VF(this)&&r||t&&r&&"1"===this.controlsType&&!this.i&&(OF(this)|| g.SF(this)||g.WF(this))&&!g.XF(this)&&!YF(this);this.Sk=aE()||bE();t=b?!!b.supportsAutoplayOverride:CF(!1,a.autoplayoverride);this.uf=!this.i&&!ft("nintendo wiiu")&&!ft("nintendo 3ds")||t;t=b?!!b.enableMutedAutoplay:CF(!1,a.mutedautoplay);r=this.Z("embeds_enable_muted_autoplay")&&g.MF(this);this.xc=t&&r&&this.X&&!RF(this);t=(OF(this)||NF(this))&&"blazer"===this.playerStyle;this.mf=b?!!b.disableFullscreen:!CF(!0,a.fs);this.Pa=!this.mf&&(t||ix());this.rh=this.Z("uniplayer_block_pip")&&(gt()&&br(58)&& !ut()||qt);t=g.MF(this)&&!this.gi;var u;b?void 0!==b.disableRelatedVideos&&(u=!b.disableRelatedVideos):u=a.rel;this.qb=t||CF(!this.C,u);this.vj=CF(!1,b&&l?b.enableContentOwnerRelatedVideos:a.co_rel);this.G=ut()&&0=QF?"_top":"_blank";this.wc=g.WF(this);this.sf=CF("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":u="bl";break;case "gmail":u="gm";break;case "books":u="gb";break;case "docs":u="gd";break;case "duo":u="gu";break;case "google-live":u= "gl";break;case "google-one":u="go";break;case "play":u="gp";break;case "chat":u="hc";break;case "hangouts-meet":u="hm";break;case "photos-edu":case "picasaweb":u="pw";break;default:u="yt"}this.va=u;this.Y=FF("",b&&l?b.authorizedUserIndex:a.authuser);this.Ah=g.MF(this)&&(this.Ga||g.S(this.experiments,"embeds_web_enable_hiding_login_buttons")&&(!ct()||ut()||rt()));var x;b?void 0!==b.disableWatchLater&&(x=!b.disableWatchLater):x=a.showwatchlater;this.Aj=(!this.Ah||!!this.Y)&&CF(!this.K,this.u?x:void 0); this.Id=b?!!b.disableKeyboardControls:CF(!1,a.disablekb);this.loop=CF(!1,a.loop);this.pageId=FF("",!this.Z("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.Rk=CF(!0,a.canplaylive);this.zj=CF(!1,a.livemonitor);this.disableSharing=CF(this.C,b?b.disableSharing:a.ss);this.Hi=Nka(b&&this.Z("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override);this.mute=b?!!b.startMuted:CF(!1,a.mute);this.tf=!this.mute&&CF("0"!==this.controlsType,a.store_user_volume); x=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:DF(void 0,x,ZF);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":FF("",a.cc_lang_pref);x=DF(2,b&&l?b.captionsLanguageLoadPolicy:a.cc_load_policy,ZF);"3"===this.controlsType&&2===x&&(x=3);this.La=x;this.Tc=b?b.hl||"en_US":FF("en_US",a.hl);this.region=b?b.contentRegion||"US":FF("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":FF("en",a.host_language);this.Gj=!this.Ga&&Math.random()< g.T(this.experiments,"web_player_api_logging_fraction");this.Da=!this.Ga;this.enabledEngageTypes=new Set;this.deviceHasDisplay=b?!b.deviceIsAudioOnly:CF(!0,a.deviceHasDisplay);this.bd=EF(this.bd,a.ismb);this.Ii=Wka(this,a);$F(this,a,!0);this.U=new pF;g.F(this,this.U);this.qf=Xka(this,a,b);this.uj=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.B=new mF(this.experiments,this.Z("html5_force_hfr_support")?!0:aG(this)||kt()||lt()||Yka(this),g.aj&&g.Wd(56)||g.bj&&g.Wd(54)||Yka(this));this.schedule= new Cka(Hka(g.bG(this),this.bd,this.experiments));this.enableSafetyMode=null!==(d=null===b||void 0===b?void 0:b.initialEnableSafetyMode)&&void 0!==d?d:CF(!1,a.enable_safety_mode);x=this.ma?!1:OF(this)&&"blazer"!==this.playerStyle;var y;b&&l?null!=b.disableAutonav&&(y=!b.disableAutonav):y=a.allow_autonav;this.Bb=CF(x,!this.K&&y);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:CF(!1,a.send_visitor_id_header);this.bb=(0,g.P)();var B;"docs"===this.playerStyle&&(b&&l?B=b.disableNativeContextMenu:B= a.disable_native_context_menu);this.disableNativeContextMenu=CF(!1,B);this.Jj=aG(this)&&this.Z("enable_skip_intro_button");this.embedConfig=FF("",b&&l?b.serializedEmbedConfig:a.embed_config);this.nf=CF(!1,a.full_window);this.jb=!g.UF(this)&&!cG(this)&&!g.XF(this)&&!YF(this)&&!0;this.livingRoomAppMode=DF("LIVING_ROOM_APP_MODE_UNSPECIFIED",b?null===(e=b.device)||void 0===e?void 0:e.livingRoomAppMode:a.living_room_app_mode,Zka);this.transparentBackground=b?!!b.transparentBackground:CF(!1,a.transparent_background); this.useFastSizingOnWatchDefault=CF(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default);this.showMiniplayerButton=b?!!b.showMiniplayerButton:CF(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:CF(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:CF(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=CF(!1,a.showbackbutton);this.Fi=null!==(f=a.show_loop_video_toggle)&& void 0!==f?f:!0;this.Mk=1E-4>Math.random();this.rf=a.onesie_hot_config||(null===b||void 0===b?0:b.onesieHotConfig)?new zka(a.onesie_hot_config,null===b||void 0===b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.Z("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;this.Pk=c;this.Nb=new Jka;g.F(this,this.Nb);this.uh=CF(!1,a.force_gvi);this.datasyncId=(null===b||void 0===b?void 0:b.datasyncId)||g.O("DATASYNC_ID",void 0);this.Lk=g.O("LOGGED_IN",!1);this.Bj=(null===b||void 0=== b?void 0:b.allowWoffleManagement)||!1;this.fg=0;if(this.Z("html5_generate_session_po_token")){a={Kl:"O43z0dpjhgX20SCx4KAo"};try{this.yf=oea(a),tG(this),this.rj=ns(function(){tG(h)},g.T(this.experiments,"html5_session_po_token_interval_time"))}catch(G){G instanceof Error&&g.Ux(G)}}}; $F=function(a,b,c){c=void 0===c?!1:c;a.Hb=FF(a.Hb,b.video_id);a.xa=FF(a.xa,b.eventid);a.xa&&(xx=a.xa);for(var d=[],e=g.q(Object.keys($ka)),f=e.next();!f.done;f=e.next()){f=$ka[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0Number(c.get("dhmu",b.toString()))}; g.JG=function(a){return(a.deviceHasDisplay&&g.aj&&!qt&&"3"!==a.controlsType?g.tt?a.l&&g.Wd(51):!0:!1)||(a.deviceHasDisplay&&g.bj&&!qt&&"3"!==a.controlsType?g.tt?a.l&&g.Wd(48):g.Wd(38):!1)||(a.deviceHasDisplay&&g.Uk&&!qt&&"3"!==a.controlsType?g.tt?a.l&&g.Wd(37):g.Wd(27):!1)||a.deviceHasDisplay&&g.IG&&!pt()&&g.Wd(11)||a.deviceHasDisplay&&g.cj&&g.Wd("604.4")}; fla=function(a){if(g.SF(a)&&PF)return!1;if(g.bj){if(!g.Wd(47)||!g.Wd(52)&&g.Wd(51))return!1}else if(g.cj)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; OF=function(a){return"detailpage"===a.Ea}; g.SF=function(a){return"embedded"===a.Ea}; KG=function(a){return"leanback"===a.Ea}; NF=function(a){return"adunit"===a.Ea||"gvn"===a.playerStyle}; g.WF=function(a){return"profilepage"===a.Ea}; g.MF=function(a){return a.l&&g.SF(a)&&!NF(a)&&!a.C}; Wka=function(a,b){if(g.$E(a.experiments,"html5_qoe_intercept"))return g.$E(a.experiments,"html5_qoe_intercept");a.Jk?(b=b.vss_host||"s.youtube.com",a.Z("www_for_videostats")&&"s.youtube.com"===b&&(b=bla(a.Aa)||"www.youtube.com")):b="video.google.com";return b}; LG=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.Ux(new g.Gv("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage}; g.MG=function(a){var b=g.xG(a);!a.Z("yt_embeds_disable_new_error_lozenge_url")&&gla.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b}; Pka=function(a,b){b.brand&&(a.deviceParams.cbrand=b.brand);b.browser&&(a.deviceParams.cbr=b.browser);b.browserVersion&&(a.deviceParams.cbrver=b.browserVersion);a.deviceParams.c=b.interfaceName||"WEB";a.deviceParams.cver=b.interfaceVersion||"html5";b.interfaceTheme&&(a.deviceParams.ctheme=b.interfaceTheme);a.deviceParams.cplayer=b.interfacePlayerType||"UNIPLAYER";b.model&&(a.deviceParams.cmodel=b.model);b.network&&(a.deviceParams.cnetwork=b.network);b.os&&(a.deviceParams.cos=b.os);b.osVersion&&(a.deviceParams.cosver= b.osVersion);b.platform&&(a.deviceParams.cplatform=b.platform)}; tG=function(a){if(!a.yf)g.Ux(new g.Gv("Failed to update session PO token","webPo not initialized"));else if(a.yf.isReady()){var b=g.O("VISITOR_DATA",void 0);a.Ci=Ya(a.yf.qx({vG:a.Lk?a.datasyncId:b}))}}; bla=function(a){var b=g.ii(a);return(a=Number(g.hi(4,a))||null)?b+":"+a:b}; NG=function(a){this.i=a}; OG=function(a,b,c){if(c)return Ws();var d={};c=YD();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.Ue().mimeType)){var f=e.i.fb().quality;if(!d[f]||d[f].Ue().De())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.Cb(ND,function(l){(l=d[l])&&h.push(l)}); return h.length?Xs(h):Ws()}; hla=function(a,b,c){this.u=a;this.l=b;this.cpn=c;this.B=0;this.i=""}; ila=function(a,b,c){a.cpn&&(b=g.ti(b,{cpn:a.cpn}));c&&(b=g.ti(b,{T7:c}));return b}; jla=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a}; kla=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)}; lla=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.Jc=void 0===p?null:p;this.audioChannels=r;this.u=(null===l||void 0===l?void 0:l.split(","))||[];this.l=m||null;this.Jd=n||"";this.i=""}; mla=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!0:c;d=void 0===d?[]:d;var e={};a=g.q(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d.push(f.itag);d.push("tpus");continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){h={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"};var l=f.type.match(/codecs="([^"]*)"/); l=l?l[1]:"";var m=null;f.audio_track_id&&(m=new XD(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new lla(f.itag,f.url,l,+f.width,+f.height,+f.fps,+f.bitrate,f.audio_itag,n?h[n]:void 0,f.drm_families,m,+f.audio_channels);e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d.push(f.itag),d.push("enchdr")}return e}; PG=function(a,b,c){this.i=a;this.u=b;this.expiration=c;this.l=null}; nla=function(a,b){if(!(qt||nt()||jt()))return null;a=mla(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.Jc&&(f=h.Jc.getId(),c[f]||(h=new PA(f,h.Jc),c[f]=h,b.push(h)))}}return 0u.width*u.height*u.fps)u=G}else r.push(G)}else h.push(B),h.push("disdrmhfr");t.reduce(function(M,L){return L.Ue().bk()&&M},!0)&&(p=n); c=u||{};t.push(rla(r,m,e,"93",void 0===c.width?0:c.width,void 0===c.height?0:c.height,void 0===c.fps?0:c.fps,l,"auto",Math.max(d,0),p,x));h.length&&f(h.join("."));return OG(a.B,t,vG(a,b))}; rla=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 QD(d,"application/x-mpegURL",{audio:new KD(0,t,null,u),video:new MD(e,f,h,null,void 0,m,void 0,r),Jd:p});a=new hla(a,b,c);a.B=n?n:1369843;return new PG(d,a,l)}; ola=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}; qla=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.Jd===b.Jd&&!e.audioChannels)return d}return""}; pla=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]}; QG=function(a,b){this.i=a;this.l=b}; tla=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 g.pB(h.url,!0);if(h.s){var l=h.sp,m=oB(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=WD(h.type,h.quality,h.itag,h.width,h.height);e.push(new QG(h,f))}}return OG(a.B,e,vG(a,b))}; RG=function(a,b){this.i=a;this.l=b}; ula=function(a){var b=[];g.Cb(a,function(c){if(c&&c.url){var d=WD(c.type,"medium","0");b.push(new RG(d,c.url))}}); return b}; vla=function(a,b,c){c=ula(c);return OG(a.B,c,vG(a,b))}; TG=function(){void 0===SG&&(SG=g.ur());return SG}; UG=function(){var a=TG();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}}; wla=function(a){var b=TG();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))}; VG=function(a){return UG()[a]||0}; WG=function(a,b){var c=UG();b!==c[a]&&(0!==b?c[a]=b:delete c[a],wla(c))}; xla=function(a){var b=UG();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]):2!==b[c]&&(b[c]=4);Object.assign(b,a);wla(b);JSON.stringify(b);return b}; yla=function(){return g.D(this,function b(){return g.z(b,function(c){return c.return(bia())})})}; g.XG=function(){return g.D(this,function b(){return g.z(b,function(c){return c.return(zla().open())})})}; Ala=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,(0,g.XG)(),2);d=e.l;return e.return(aw(d,["index","media","captions"],"readwrite",function(f){var h=IDBKeyRange.bound(a+"|",a+"~");f=[cw(f,"index").delete(h),cw(f,"media").delete(h),cw(f,"captions").delete(h)];return Pv.all(f).then(function(){})}))})})}; Dla=function(){return g.D(this,function b(){var c;return g.z(b,function(d){if(1==d.i)return g.w(d,(0,g.XG)(),2);c=d.l;return d.return(aw(c,["index","media"],"readwrite",function(e){var f={};return hw(cw(e,"index"),{},function(h){var l,m=h.getKey().match(/^([\w\-_]+)\|(a|v)$/),n=Pv.resolve(void 0);if(m){var p=m[1];m=m[2];f[p]=f[p]||{};f[p][m]=Bla(null===(l=h.getValue())||void 0===l?void 0:l.fmts)}else n=h.delete().then(function(){}); return Pv.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=xla(h);return Rha(cw(e,"media"),function(r){var t=r.getKey().match(Cla);t&&h[t[1]]||cw(e,"media").delete(r.getKey());return r.continue()}).then(function(){return p})})}))})})}; Ela=function(a,b){return g.D(this,function d(){var e;return g.z(d,function(f){if(1==f.i)return g.w(f,(0,g.XG)(),2);e=f.l;return g.w(f,aw(e,["captions"],"readwrite",function(h){var l=[];h=cw(h,"captions");for(var m=0;m> "+a.translationLanguage.languageName);return c.join("")}; Pla=function(a,b,c,d){a||(a=b&&Mla.hasOwnProperty(b)&&Nla.hasOwnProperty(b)?Nla[b]+"_"+Mla[b]:void 0);b=a;if(!b)return null;a=b.match(Ola);if(!a||5!==a.length)return null;if(a=b.match(Ola)){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}; dH=function(a){for(var b={},c=g.q(Object.keys(cH)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[cH[d]];e&&(b[d]=e)}return b}; Qla=function(a,b){for(var c={},d=g.q(Object.keys(cH)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.zz(f)&&(c[cH[e]]=f)}return c}; eH=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(Rla)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Rla[e];for(var f=g.q(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=Sla(h.url);g.zz(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Sla(a.url),g.zz(a)&&(b["maxresdefault.jpg"]=a));return b}; Sla=function(a){return a.startsWith("//")?"https:"+a:a}; Ula=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return Tla[a];return null}; fH=function(a){return a&&a.baseUrl||""}; gH=function(a){a=g.$r(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}; Vla=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Ea=b)}; Xla=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=Wla(d.baseUrl);if(!e)return;d=new g.ZG({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.Pz(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.aA=b.audioTracks||[];a.XH=b.defaultAudioTrackIndex||0;a.bA=b.translationLanguages?g.Oe(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.Pz(f.languageName)}}): []; a.Nk=!!b.contribute&&!!b.contribute.captionsMetadataRenderer}; Yla=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},Yr(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,sj:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,sj: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, sj:0===f?5:7})}}}; Zla=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer}; $la=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)}; fma=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=Yr(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=ama[c]);(c=a.projectionType)&&(b.projection_type=bma[c]);(c=a.stereoLayout)&&(b.stereo_layout=cma[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=dma[c]);if(d=a.drmFamilies){c=[];d=g.q(d);for(var e=d.next();!e.done;e=d.next())c.push(hH[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=Ula(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=ema[a])&&(b.primaries=a);return g.ri(b)}; iH=function(a){g.Q.call(this);this.i=null;this.u=new yr;this.i=null;this.J=new Set;this.C=a||""}; gma=function(a,b,c){for(c=jH(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(Math.floor(b/(d.columns*d.rows)))&&(d=g.kH(d,b)))return d;c--}return g.kH(a.levels[0],b)}; ima=function(a,b,c){c=jH(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.J.has(h)||(d.J.add(h),xr(d.u,f,{hI:f,sI:e}))}hma(a)}; hma=function(a){if(!a.i&&!a.u.isEmpty()){var b=a.u.remove();a.i=jma(a,b)}}; jma=function(a,b){var c=document.createElement("img");a.C&&(c.crossOrigin=a.C);c.src=kma(a.levels[b.hI],b.sI);c.onload=function(){var d=b.hI,e=b.sI;null!==a.i&&(a.i.onload=null,a.i=null);d=a.levels[d];d.loaded.add(e);hma(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.fB()-1);e=[e,d];a.W("l",e[0],e[1])}; return c}; g.lH=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}; kma=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.ti(c,{sigh:a.signature}));return Dz(c)}; g.kH=function(a,b){b>=a.kz()&&a.Sr();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.Sr()+1-d*c;if(f=b)return a.B.set(b,d),d;a.B.set(b,c-1);return c-1}; nH=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.lH.call(this,a,b,c,0);this.l=null;this.G=d?2:0}; oH=function(a,b,c,d){mH.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;ab&&(qE()||g.S(d.experiments,"html5_format_hybridization"))&&(n.l.supportsChangeType=+qE(),n.J=b);2160<=b&&(n.jb=!0);nka()&&(n.l.serveVp9OverAv1IfHigherRes=0,n.wb=!1);n.yb=m;m=g.tw||vt()&&!m?!1:!0;n.Da=m;n.ma=g.S(d.experiments,"html5_format_hybridization");n.eb=g.S(d.experiments,"html5_offline_av1_fallback");n.X=g.S(d.experiments,"html5_disable_codec_on_errors_with_exp_backoff");n.Ya=g.S(d.experiments,"html5_disable_codec_on_platform_errors"); jt()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(n.U=!0,n.Y=!0);a.Tz&&(n.K=a.Tz);a.Rz&&(n.B=a.Rz);n.Ea=a.isLivePlayback&&AH(a)&&a.B.Z("html5_drm_live_audio_51");return a.Gc=n}; Ema=function(a){a.Ob||a.i&&fB(a.i);var b={};a.i&&(b=bB(BH(a),a.B.B,a.i,function(c){return a.W("ctmp","fmtflt",c)})); b=new kF(b,a.B.experiments,a.EF,Dma(a),function(c,d){a.Ja(c,d)}); g.F(a,b);a.Gi=!1;a.ma=!0;qka(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.Ob;e.J=a.WO;e.G=a.uO;break;case "widevine":e.B=a.HF}a.yf=c;if(0r&&(r=x.Ue().audio.i); 2=a.u.videoInfos.length)&&(b=UD(a.u.videoInfos[0]),b!=("fairplay"==a.G.flavor)))for(c=g.q(a.yf),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.G=d;break}}; IH=function(a,b){a.qb=b;Sma(a,new YA(g.Oe(a.qb,function(c){return c.Ue()})))}; Tma=function(a){var b={cpn:a.clientPlaybackNonce,c:a.B.deviceParams.c,cver:a.B.deviceParams.cver};a.Vo&&(b.ptk=a.Vo,b.oid=a.dE,b.ptchn=a.cE,b.pltype=a.eE);return b}; g.JH=function(a){return wH(a)&&a.Ob?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.l&&a.l.Jd||null}; Uma=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.Pz(b.text):a.paidContentOverlayText}; KH=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?td(b.durationMs):a.paidContentOverlayDurationMs}; LH=function(a){var b="";if(a.NC)return a.NC;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b}; g.MH=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]}; Vma=function(a){return a.i&&!isNaN(QE(a.i))?QE(a.i):GH(a)?0:a.lengthSeconds}; NH=function(a){return!!(a.Pa||a.adaptiveFormats||a.Bh||a.Ah||a.hlsvp)}; sH=function(a){var b=g.kb(a.Y,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.ma&&(NH(a)||g.kb(a.Y,"heartbeat")||b)}; DH=function(a,b){a=Zr(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}; Ama=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.Bj=!!b.copyTextEndpoint}; pma=function(a,b){var c,d,e,f,h,l,m=b.raw_embedded_player_response;if(!m){var n=b.embedded_player_response;n&&(m=JSON.parse(n))}m&&(a.Kg=m);if(a.Kg){if(m=a.Kg.videoFlags)m.playableInEmbed&&(a.allowEmbed=!0),m.isPrivate&&(a.isPrivate=!0),m.userDisplayName&&(b.user_display_name=m.userDisplayName),m.userDisplayImage&&(b.user_display_image=m.userDisplayImage);if(m=a.Kg.embedPreview){m=m.thumbnailPreviewRenderer;n=m.controlBgHtml;null!=n?(a.Da=n,a.C=!0):(a.Da="",a.C=!1);if(n=m.defaultThumbnail)a.Bb=eH(n), a.sampledThumbnailColor=n.sampledThumbnailColor;(n=null===(c=null===m||void 0===m?void 0:m.videoDetails)||void 0===c?void 0:c.embeddedPlayerOverlayVideoDetailsRenderer)&&Bma(a,b,n);if(n=null===(d=null===m||void 0===m?void 0:m.videoDetails)||void 0===d?void 0:d.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.ZA=n.title,a.JA=n.byline,n.musicVideoType&&(a.musicVideoType=n.musicVideoType);a.lf=!!m.addToWatchLaterButton;Ama(a,m.shareButton);if(n=null===(h=null===(f=null===(e=null===m||void 0===m?void 0: m.playButton)||void 0===e?void 0:e.buttonRenderer)||void 0===f?void 0:f.navigationEndpoint)||void 0===h?void 0:h.watchEndpoint){var p,r=null===(p=null===n||void 0===n?void 0:n.watchEndpointSupportedOnesieConfig)||void 0===p?void 0:p.html5PlaybackOnesieConfig;r&&(a.Uo=new Lla(r));a.videoId=n.videoId||a.videoId}m.videoDurationSeconds&&(a.lengthSeconds=td(m.videoDurationSeconds));a.Z("web_player_include_innertube_commands")&&m.webPlayerActionsPorting&&$la(a,m.webPlayerActionsPorting);if(p=null===(l= null===m||void 0===m?void 0:m.playlist)||void 0===l?void 0:l.playlistPanelRenderer){m=[];n=Number(p.currentIndex);if(p.contents){r=0;for(var t=p.contents.length;r(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.cd&&(c||dla(a.B))&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.Z("cast_prefer_audio_only_for_atv_and_uploads")||a.Z("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.cd=!0);return!a.B.deviceHasDisplay||a.cd&&a.B.u}; ana=function(a){return!!(a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.daiConfig&&a.playerResponse.playerConfig.daiConfig.enableDai)}; aI=function(a){return $H(a)&&!!a.adaptiveFormats}; $H=function(a){return!!(a.Z("woffle_orchestration")&&a.Rk&&a.B.u)}; yma=function(a){if(a.Z("woffle_orchestration")){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===VG(b);a=b&&!a.Rk}else a=!1;return a}; g.bI=function(a){if(!a.i||!a.l||!a.J)return!1;var b=a.i.i;return!!b[a.l.id]&&tB(b[a.l.id].l.i)&&!!b[a.J.id]&&tB(b[a.J.id].l.i)}; Wma=function(a){return(a=a.wj)&&a.showError?a.showError:!1}; g.CH=function(a){return a.Z("disable_rqs")?!1:zH(a,"html5_high_res_logging")}; zH=function(a,b){return a.Z(b)?!0:(a.fflags||"").includes(b+"=true")}; bna=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null}; uma=function(a,b){if(b=b.video_masthead_ad_quartile_urls)a.XD=b.quartile_0_url,a.nE=b.quartile_25_url,a.dF=b.quartile_50_url,a.fF=b.quartile_75_url,a.mE=b.quartile_100_url,a.qp=b.quartile_0_urls,a.ZD=b.quartile_25_urls,a.Vy=b.quartile_50_urls,a.Wy=b.quartile_75_urls,a.YD=b.quartile_100_urls}; vH=function(a){return a?nF()?!0:cI&&5>dI?!1:!0:!1}; tma=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}; Wla=function(a){if(a){if(Bz(a))return a;a=Cz(a);if(Bz(a,!0))return a}return""}; g.cna=function(a){return a.captionsLanguagePreference||a.B.captionsLanguagePreference||g.MH(a,"yt:cc_default_lang")||a.B.Tc}; eI=function(a,b){this.i=a;this.Ga=b||{};this.K=String(Math.floor(1E9*Math.random()));this.J={};this.U=0}; dna=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}}; fI=function(){g.Q.call(this);var a=this;this.i={};g.gf(this,function(){return Object.keys(a.i).forEach(function(b){return delete a.i[b]})})}; hI=function(){if(null===gI){gI=new fI;g.Am(qq).i="b";var a=g.Am(qq),b="h"==Zp(a)||"b"==Zp(a),c=!(Km(),!1);b&&c&&(a.C=!0,a.G=new Kfa)}return gI}; ena=function(a,b,c){a.i[b]=c}; fna=function(a){this.u=a;this.l={};this.i=il()?500:g.bG(a.T())?1E3:2500}; hna=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 gna(a,b)}; gna=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||ha.i||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&hc.maxBitrate&&(c=d));return c}; iI=function(a,b,c){this.i=a;this.C=b;this.u=c;this.l=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0); c=0;for(a+=1;a=a.l}; mI=function(){this.i=[];this.l=0}; nI=function(a,b){b&&a.i.push(b)}; oI=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}; pI=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}; qI=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0}; rI=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind}; kna=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=oI(a.impressionCommands)||[];b.error=oI(a.errorCommands)||[];b.mute=oI(a.muteCommands)||[];b.unmute=oI(a.unmuteCommands)||[];b.pause=oI(a.pauseCommands)||[];b.rewind=oI(a.rewindCommands)||[];b.resume=oI(a.resumeCommands)||[];b.skip=oI(a.skipCommands)||[];b.close=oI(a.closeCommands)||[];b.clickthrough=oI(a.clickthroughCommands)||[];b.fullscreen=oI(a.fullscreenCommands)||[];b.active_view_viewable=oI(a.activeViewViewableCommands)|| [];b.active_view_measurable=oI(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=oI(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=oI(a.endFullscreenCommands)||[];b.channel_clickthrough=oI(a.channelClickthroughCommands)||[];b.abandon=oI(a.abandonCommands)||[];b.progress=pI(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind})); b.start=pI(a.progressCommands.filter(function(c){return rI(c)&&Pf(qI(c),0)})); b.first_quartile=pI(a.progressCommands.filter(function(c){return rI(c)&&Pf(qI(c),.25)})); b.midpoint=pI(a.progressCommands.filter(function(c){return rI(c)&&Pf(qI(c),.5)})); b.third_quartile=pI(a.progressCommands.filter(function(c){return rI(c)&&Pf(qI(c),.75)})); b.complete=pI(a.progressCommands.filter(function(c){return rI(c)&&Pf(qI(c),1)})); return b}; sI=function(a){eI.call(this,a,kna(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}; lna=function(a,b,c,d){this.id=b;this.X=a.placementStartPings||[];this.Y=a.placementEndPings||[];this.B=d.Fd;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.G=e.getAdBreakUrl||"")?0:2;d.i=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=Nz(b,d);if(null==f)d=new Kz(b,new $q(-1,-1),!1,"adcuerange:invalid", 2),d.deactivate(),d=[null,d];else{e=":"+(zr.getInstance().i++).toString(36);var h=d.daiEnabled||d.Fd;f=new Kz(b,f,d.visible&&!h,"adcuerange:"+e,2);h=null;if(d.Fd||0=c*a.B.jE||d)&&HI(a,"first_quartile");(b>=c*a.B.SECOND||d)&&HI(a,"midpoint");(b>=c*a.B.xF||d)&&HI(a,"third_quartile")}; LI=function(a,b,c,d){if(null==a.C){if(cd||d>c)return;HI(a,b)}; zna=function(a,b,c){if(0l.B&&l.dh()}}; Jna=function(a){if(a.C&&a.U){a.U=!1;a=g.q(a.C.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;Ina(b.u(),c)}else R("Received AdNotify terminated event when no slot is active")}}; Kna=function(){QI.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.eJ=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={Sy:c.Sy},e=d.next())e=e.value,c.Sy=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.Sy}}(c)); return a}; fJ=function(a){return a?g.Pz(a):null}; Lna=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}; Mna=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null}; Nna=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}}; Qna=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&&(Ona(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=fJ(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&& Pna(a,b,c,d))}}; Ona=function(a,b,c){var d=fJ(b.confirmLabel)||"",e=fJ(b.title)||"",f=[];if(b.adReasons)for(var h=g.q(b.adReasons),l=h.next();!l.done;l=h.next())f.push(fJ(l.value)||"");h=b.headerTitle?g.Pz(b.headerTitle):"";d={closeButton:d,menuTitle:h,targetingReasonHeader:e,targetingReasons:f,dialogMessage:fJ(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)}}; Pna=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:fJ(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=Lna(b.navigationEndpoint);var h=Nna(b[1]),l=[Nna(b[0])];(b=Mna(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)}; Rna(a,e,d)}}}; Rna=function(a,b,c){a.muteAdInfo.goneText=fJ(b.title)||"";a.muteAdInfo.questionText=fJ(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=fJ(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=fJ(e.reason)||"";e=Lna(e.endpoint)[0];a.push({label:d,url:e})}}; Sna=function(a,b){var c=new Kna;c.adBadgeText="Ad";1=d.l&&(d.i=d.l,d.Gb.stop());e=d.i/1E3;d.C&&d.C.Rb(e);doa(d,{current:e,duration:d.l/1E3})}); g.F(this,this.Gb);this.i=0;this.u=null;g.gf(this,function(){d.u=null}); this.B=0}; doa=function(a,b){a.G.Na("onAdPlaybackProgress",b);a.u=b}; dK=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;QI.call(this,"survey",a,{},b,c);this.Zg=d;this.wi=e}; eK=function(a,b,c,d,e,f,h){VI.call(this,a,b,c,d,e,1);var l=this;this.C=b;this.B=new mx;g.F(this,this.B);this.B.N(this.I,"resize",function(){450>l.I.Za().Zf().width&&(g.ox(l.B),l.ag())}); this.K=0;this.J=h(this,function(){return""+(Date.now()-l.K)}); if(this.i=g.bG(a.T())?new cK(1E3*b.l,a,f):null)g.F(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.J.ld(m&&m.timeoutCommands)):g.Tx(Error("Expected a survey question in InstreamSurveyAdRenderer.")))})}; fK=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;QI.call(this,"survey-interstitial",a,b,c,d);this.Zg=e;this.jD=f}; gK=function(a,b,c,d,e){VI.call(this,a,b,c,d,e,1);this.i=b}; foa=function(a,b){var c=void 0===c?!0:c;var d=g.O("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.ii(window.location.href);e&&d.push(e);e=g.ii(a);if(g.kb(d,e)||!e&&nc(a,"/"))if(g.Nr("autoescape_tempdata_url")&&(d=document.createElement("a"),g.kd(d,a),a=d.href),a&&(a=ki(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.Ix()},b)),f){var f=parseInt(f,10);isFinite(f)&&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{oO:new $q(b,c),FP:new rz(b,c-b,a.context,a.identifier,a.event,a.i)}}; rK=function(){this.i=[]}; woa=function(a,b,c){var d=g.xb(a.i,b);if(0<=d)return b;b=-d-1;return b>=a.i.length||a.i[b]>c?null:a.i[b]}; xoa=function(){this.i=new rK}; sK=function(a){this.i=a}; yoa=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}; zoa=function(a,b,c){this.u=a;this.i=b;this.l=c;this.B=a.getCurrentTime()}; Boa=function(a,b){var c=void 0===c?Date.now():c;b=g.q(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=c,f=a.i;tK({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:Aoa(d.event),cuepointId:d.identifier,totalCueDurationMs:1E3*d.durationSecs,playheadTimeMs:d.i,cueStartTimeMs:1E3*d.startSecs,cuepointReceivedTimeMs:e,contentCpn:f}});a.l&&("unknown"===d.event&&uK("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.i),d=d.startSecs+d.i/1E3,d>a.B&&a.u.getCurrentTime()>d&&uK("DAI_ERROR_TYPE_LATE_CUEPOINT", a.i))}}; Coa=function(a,b,c){a.l&&tK({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.i}})}; Doa=function(a,b){a.l&&tK({adTrimmingInfo:{contentCpn:a.i,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.bO}})}; uK=function(a,b){tK({daiStateTrigger:{errorType:a,contentCpn:b}})}; tK=function(a){g.Bv("adsClientStateChange",a)}; Aoa=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"}}; vK=function(a){this.I=a;this.adVideoId=this.videoId=this.adCpn=this.contentCpn=null;this.u=!0;this.B=this.i=this.cg=!1;this.adFormat=null;this.l="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; Eoa=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.cg=!1;a.i=!1}; Foa=function(a){a.i=!1;CA("video_to_ad",["apbs"],void 0,void 0)}; Hoa=function(a){a.B?Goa(a):(a.i=!1,CA("ad_to_ad",["apbs"],void 0,void 0))}; Goa=function(a){a.i=!1;CA("ad_to_video",["pbresume"],void 0,void 0)}; Ioa=function(a){a.cg&&!a.i&&(a.u=!1,a.i=!0,"ad_to_video"!==a.actionType&&(EA("apbs",void 0,a.actionType),g.Nr("finalize_all_timelines")&&(a=a.actionType,zA("c",a),kA(a),yA(a))))}; Joa=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.Loa=function(a){return(a=Koa[a.toString()])?a:"LICENSE"}; wK=function(){g.E.call(this);this.l=null;this.G=this.C=!1;this.u=new g.If;g.F(this,this.u)}; xK=function(a){a=a.ut();return 1>a.length?NaN:a.end(a.length-1)}; Moa=function(a,b,c){a.Xl()||a.getCurrentTime()>b||10=Math.abs(b-a.i.i.end/1E3)):b=!0;if(b&&!a.i.C.hasOwnProperty("ad_placement_end")){b=g.q(a.i.Y);for(var d=b.next();!d.done;d=b.next())Soa(d.value);a.i.C.ad_placement_end=!0}b=a.i.K;if(null!==b){d=a.Zk;var e=a.i.B&&a.i.B.identifier,f=a.i.i.start,h=NK(a);d.l&&tK({driftRecoveryInfo:{contentCpn:d.i,cueIdentifier:e||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(h- f).toString(),driftFromHeadMs:Math.round(1E3*d.u.Cm()).toString()}});a.i.K=null}c||a.daiEnabled?OK(a.Lf,!0):a.U&&a.bF()&&a.Lt()?OK(a.Lf,!1,Yoa(a)):OK(a.Lf,!1);Toa(a,!0)}; Yoa=function(a){if(a.va)return function(c){c.seekTo(Infinity,!0,void 0,1)}; var b=Math.floor(g.Sa()/1E3)-a.ma;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}}; Zoa=function(a,b,c){this.i=a;this.l=b;this.u=c}; QK=function(){this.B=[];this.C=[];this.i=[];this.l=new Set;this.G=new Map}; RK=function(){QK.i||(QK.i=new QK);return QK.i}; $oa=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.Ix(c),l=g.Gx(c);h&&l&&(d.csn=h,(null===(e=d.response)||void 0===e?0:e.trackingParams)&&g.ay(a.client,h,l,[g.Cx(d.response.trackingParams)]),(null===(f=d.playerResponse)||void 0===f?0:f.trackingParams)&&g.ay(a.client,h,l,[g.Cx(d.playerResponse.trackingParams)]))})}; apa=function(a,b){SK(a,g.Cx(b),void 0,void 0)}; SK=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.Ix(d);c=c||g.Gx(d);e&&c&&g.ay(a.client,e,c,[b])}}; cpa=function(a,b,c){c=void 0===c?{}:c;a.l.add(c.layer||0);a.u=function(){bpa(a,b,c);var f=g.Gx(c.layer);if(f){for(var h=g.q(a.B),l=h.next();!l.done;l=h.next())l=l.value,SK(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.Ix(h);var n=m[0]||g.Gx(h);l&&n&&(h=a.client,m=m[1],m={csn:l,ve:n.getAsJson(),clientData:m},n={Ie:Jx(l),Ml:l},"UNDEFINED_CSN"==l?$x("visualElementStateChanged",m,n):h?Tu("visualElementStateChanged",m,h,n):g.Bv("visualElementStateChanged", m,n))}}}; g.Ix(c.layer)||a.u();if(c.GG)for(var d=g.q(c.GG),e=d.next();!e.done;e=d.next())$oa(a,e.value,c.layer);else g.Tx(Error("Delayed screen needs a data promise."))}; bpa=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.HT?c.HT:c.layer;var e=g.Ix(d);d=g.Gx(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));var h,l=g.O("EVENT_ID");"UNDEFINED_CSN"===e&&l&&(h={servletData:{serializedServletEventId:l}});try{var m=a.client;l=f;var n=c.DG,p=c.Ie,r=dpa(),t={csn:r,pageVe:(new Bx({veType:b,youtubeData:h})).getAsJson()};l&&l.visualElement?t.implicitGesture= {parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()}:l&&g.Ux(new g.Gv("newScreen() parent element does not have a VE - rootVe",b));n&&(t.cloneCsn=n);n={Ie:p,Ml:r};m?Tu("screenCreated",t,m,n):g.Bv("screenCreated",t,n);lv(gy,new Zx(r));var u=r}catch(x){Bia(x,{Du:b,rootVe:d,parentVisualElement:void 0,E7:e,U7:f,DG:c.DG});g.Tx(x);return}Lx(u,b,c.layer,c.Ie);if((b=e&&"UNDEFINED_CSN"!==e&&d)&&!(b=g.Nr("screen_manager_skip_hide_killswitch"))){a:{b=g.q(Object.values(epa));for(f=b.next();!f.done;f= b.next())if(g.Ix(f.value)==e){b=!0;break a}b=!1}b=!b}b&&cy(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=u||"");g.DA("csn",u);g.Am(Uy).clear();d=g.Gx(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.Nr("web_mark_root_visible")||g.Nr("music_web_mark_root_visible"))&&g.by(u,d,void 0);a.l.delete(c.layer||0);a.u=void 0;e=g.q(a.G);for(u=e.next();!u.done;u=e.next())u=g.q(u.value),b=u.next().value,u.next().value.has(c.layer)&&d&&SK(a,b,d,c.layer)}; TK=function(){this.i={};if(this.l=ct()){var a=g.at("CONSISTENCY");a&&fpa(this,{encryptedTokenJarContents:a})}}; fpa=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.$s("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}}; UK=function(){var a=g.O("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.O("INNERTUBE_CLIENT_NAME")&&(this.localStorage=gpa(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.i=void 0)}; gpa=function(a){return void 0===a.localStorage?new hv("yt-client-location"):a.localStorage}; VK=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.O("INNERTUBE_CONTEXT");if(!d)return g.Tx(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Wb(d);g.Nr("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.O("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio|| 1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.Am(g.Xu);var h="USER_INTERFACE_THEME_LIGHT";g.Zu(0,165)?h="USER_INTERFACE_THEME_DARK":g.Zu(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.Nr("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(h="USER_INTERFACE_THEME_DARK");f=f?h:mia()||h;e.userInterfaceTheme=f; if(g.Nr("web_log_connection")&&!b){if(f=dv())e.connectionType=f;g.Nr("web_log_effective_connection_type")&&(f=fv())&&(d.client.effectiveConnectionType=f)}f=g.$r(g.A.location.href);!g.Nr("web_populate_internal_geo_killswitch")&&f.internalcountrycode&&(e.internalGeo=f.internalcountrycode);if("MWEB"===e.clientName||"WEB"===e.clientName)e.mainAppWebInfo={graftUrl:g.A.location.href},g.Nr("kevlar_woffle")&&Uu.i&&(e.mainAppWebInfo.pwaInstallabilityStatus=Uu.i.i?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),g.Nr("web_include_display_mode_killswitch")||(e.mainAppWebInfo.webDisplayMode=Vu()),g.Nr("kevlar_share_panel_more_button")&&(e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share);if(!g.Nr("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(B){}l=void 0}l&&(e.timeZone=l)}(l=g.O("EXPERIMENTS_TOKEN",""))?e.experimentsToken=l:delete e.experimentsToken; l=Qr();TK.i||(TK.i=new TK);e=Lb(TK.i.i);d.request=Object.assign(Object.assign({},d.request),{internalExperimentFlags:l,consistencyTokenJars:e});e=g.Am(g.Xu);l=g.Zu(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);l&&(d.user.enableSafetyMode=l);e&&(d.user.lockedSafetyMode=!0);(l=g.O("DELEGATED_SESSION_ID"))&&!g.Nr("pageid_as_header_web")&&(d.user.onBehalfOfUser=l);g.Nr("warm_op_csn_cleanup")?c&&(b=g.Ix())&&(d.clientScreenNonce=b):!b&&(b=g.Ix())&&(d.clientScreenNonce=b);a&&(d.clickTracking= {clickTrackingParams:a});g.Nr("web_enable_client_location_service")&&UK.getInstance().setLocationOnInnerTubeContext(d);var m;try{var n=is(void 0),p=n.bid;delete n.bid;d.adSignalsInfo={params:[],bid:p};for(var r=g.q(Object.entries(n)),t=r.next();!t.done;t=r.next()){var u=g.q(t.value),x=u.next().value,y=u.next().value;null===(m=d.adSignalsInfo.params)||void 0===m?void 0:m.push({key:x,value:""+y})}}catch(B){g.Tx(B)}return d}; WK=function(){rv.apply(this,arguments);this.rp={}}; hpa=function(){XK||(XK=new WK);return XK}; ipa=function(a,b){b?a.rp.Authorization="Bearer "+b:delete a.rp.Authorization}; jpa=function(a){return a.isTimeout?"NO_BID":"ERR_BID"}; kpa=function(){var a=null;Ft().then(function(b){return a=b},function(b){return a=jpa(b)}); return a}; lpa=function(){var a=kh(1E3,"NO_BID");return Zg(g.ah(nda([Ft(),a]),jpa),function(){return a.cancel()})}; mpa=function(a){return a.Bb?g.Zu(g.Am(g.Xu),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; YK=function(a){this.player=a;this.l=this.i=1}; $K=function(a,b,c,d){c=void 0===c?{}:c;var e=c.Hs,f=c.Td;d=void 0===d?"":d;c=a.player.getVideoData(1);var h=a.player.T().Hj,l={AD_BLOCK:a.i++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:mpa(a.player.T()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Cm(),LACT:mu(),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.Za().Zf().height, P_W:a.player.Za().Zf().width,YT_REMOTE:h?h.join(","):""},m=hs(gs);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())}); ""!==d&&(l.BISCOTTI_ID=d);d={};fs(b)&&(d.sts="18802",(e=a.player.T().Va)&&(d.forced_experiments=e));b=cs(g.yq(b,l),d);a.player.getVideoData();if(2!==b.split("?").length)return Ug(Error("Invalid AdBreakInfo URL"));if((d=null===c||void 0===c?void 0:c.oauthToken)&&es()){var n=hpa();ipa(n,d)}n=a.player.ll(n);a=npa(a,b,l,c.isMdxPlayback);return g.ZK(n,a,"/youtubei/v1/player/ad_break")}; qpa=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=ds(b),f=opa(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=opa(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=Xr(is(c)).split("&");var l=new Map;b.forEach(function(m){m=m.split("=");1d.length||(d[0]in rpa&&(f.clientName=rpa[d[0]]),d[1]in spa&&(f.platform=spa[d[1]]),f.applicationState=h,f.clientVersion=2e&&(b+="0"));if(0f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d}; g.uM=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)}; vM=function(a,b,c,d,e,f){cM.call(this,a,b,{D:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.videoAdDurationSeconds=f;this.u=null;this.hide()}; wM=function(a,b,c,d){aM.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")}; xM=function(a,b){this.l=a;this.i=b}; yM=function(a){return a.i-a.l}; zM=function(a,b){return a.l+b*yM(a)}; AM=function(a,b,c){return yM(a)?g.Mf((b-a.l)/yM(a),0,1):null!=c?c:Infinity}; BM=function(a,b){g.xL.call(this,{D:"div",L:"ytp-ad-persistent-progress-bar-container",S:[{D:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.l=b;g.F(this,this.l);this.Ec=this.Ba("ytp-ad-persistent-progress-bar");this.i=-1;this.N(a,"presentingplayerstatechange",this.u);this.hide();this.u()}; CM=function(a,b,c,d,e,f){yL.call(this,a,b,{D:"div",L:"ytp-ad-player-overlay",S:[{D:"div",L:"ytp-ad-player-overlay-flyout-cta"},{D:"div",L:"ytp-ad-player-overlay-instream-info"},{D:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{D:"div",L:"ytp-ad-player-overlay-progress-bar"},{D:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d);this.G=f;this.K=this.Ba("ytp-ad-player-overlay-flyout-cta");this.u=this.Ba("ytp-ad-player-overlay-instream-info");this.B=null;rra(this)&&(a= mg("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 wM(this.api,this.Ta,this.layoutId,this.i),c.ya(a),c.init(PI("ad-title"),{text:b.title},this.macros),g.F(this,c)),this.B=a);this.C=this.Ba("ytp-ad-player-overlay-skip-or-preview");this.xa=this.Ba("ytp-ad-player-overlay-progress-bar");this.X=this.Ba("ytp-ad-player-overlay-instream-user-sentiment");this.l=e;g.F(this,this.l);this.hide()}; rra=function(a){a=a.api.T();return g.VF(a)&&a.i}; DM=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.ti("/sharing_services",a);g.ou(d)}; g.tra=function(a,b,c){b=sra(null,b,c);if(b=ld(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.wu("LOGGED_IN",function(d){g.xu(g.O("LOGGED_IN_PUBSUB_KEY",void 0));Kr("LOGGED_IN",!0);a(d)}),Kr("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)}; sra=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=si(c,"mode",a));a=si(d,"next",c);b&&(a=si(a,"feature",b));return a}; vra=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=ura[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(ura).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.EM=function(a){return"/youtubei/v1/"+vra(a)}; FM=function(a){var b=g.O("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(ki(a)));return a}; wra=function(a,b){g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null===b||void 0===b?0:b.Authorization)||(a=cs(a,{key:g.O("INNERTUBE_API_KEY")}));return a}; GM=function(a,b){return{method:void 0===b?"POST":b,mode:ds(a)?"same-origin":"cors",credentials:ds(a)?"same-origin":"include"}}; HM=function(){}; IM=function(){}; JM=function(a,b,c,d){var e=Av;this.i=a;this.B=b;this.l=c;this.handleError=e;this.u=d;a.Dp||(a.Dp={});a.Dp=Object.assign(Object.assign({},xra),a.Dp)}; KM=function(a,b,c){var d=void 0===d?Gw:d;var e=yra(a,b);if(!e)return g.Nr("web_innertube_transport_errors_reject_killswitch")?(a.handleError(new g.Gv("Error: No request builder found for command.",b)),Tg({})):Ug(new g.Gv("Error: No request builder found for command.",b));var f=e.C(b,c,d);return f?new Ng(function(h){return g.D(a,function m(){var n,p,r=this,t;return g.z(m,function(u){if(1==u.i)return p="cors"===(null===(n=f.tp)||void 0===n?void 0:n.mode)?"cors":void 0,g.w(u,zra(r,f.config,p),2);t=u.l; h(Ara(r,f,t));g.sa(u)})})}):g.Nr("web_innertube_transport_errors_reject_killswitch")?(a.handleError(new g.Gv("Error: Failed to build request for command.",b)),Tg({})):Ug(new g.Gv("Error: Failed to build request for command.",b))}; g.ZK=function(a,b,c){var d=void 0===d?{Tn:{identity:Gw}}:d;var e=void 0===e?!0:e;b.context||(b.context=VK(void 0,e));return new Ng(function(f){return g.D(a,function l(){var m,n,p=this,r,t,u;return g.z(l,function(x){if(1==x.i)return m=FM(c),n=ds(m)?"same-origin":"cors",g.w(x,zra(p,d,n),2);r=x.l;t=wra(FM(c),r);u={input:t,tp:GM(t),Et:b,config:d};f(Ara(p,u,r));g.sa(x)})})})}; Ara=function(a,b,c){return g.D(a,function e(){var f=this,h,l,m,n,p,r,t,u,x;return g.z(e,function(y){switch(y.i){case 1:y.ub(2);break;case 3:if((h=y.l)&&!h.isExpired())return y.return(Promise.resolve(h.i()));case 2:l=g.q([]);for(m=l.next();!m.done;m=l.next())n=m.value,n.Z7(b.Et.context);p=JSON.stringify(b.Et);b.tp=Object.assign(Object.assign({},b.tp),{headers:c});r=Object.assign({},b.tp);"POST"===b.tp.method&&(r=Object.assign(Object.assign({},r),{body:p}));return g.w(y,f.B.fetch(b.input,r),4);case 4:if((t= y.l)&&f.u)for(u=g.q(f.u),m=u.next();!m.done;m=u.next())x=m.value,x.handleResponse(t,b);return y.return(t)}})})}; Bra=function(a,b){var c,d;if(!b)return!1;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.i.Dp)return Pr("web_op_signal_type_banlist").includes(b.signalServiceEndpoint.signal)?!1:!!a.i.Dp[b.signalServiceEndpoint.signal];if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.i.EA)return Pr("web_op_continuation_type_banlist").includes(b.continuationCommand.request)?!1:!!a.i.EA[b.continuationCommand.request];for(var e in b)if(a.i.BA[e]){if(Pr("web_op_endpoint_banlist").includes(e))break; return!0}return!1}; zra=function(a,b,c){return g.D(a,function e(){var f=this;return g.z(e,function(h){if(f.l.zU){var l=h.return,m,n,p=(null===(n=null===b||void 0===b?void 0:b.Tn)||void 0===n?void 0:n.identity)||Gw;n=null===(m=null===b||void 0===b?void 0:b.Tn)||void 0===m?void 0:m.sessionIndex;m=f.l.pw(p,{sessionIndex:n});m=Object.assign(Object.assign({},Cra(c)),m);h=l.call(h,m)}else h=h.return(Dra(f,b,c));return h})})}; Dra=function(a,b,c){var d,e,f=(null===(d=null===b||void 0===b?void 0:b.Tn)||void 0===d?void 0:d.identity)||Gw;b=null===(e=null===b||void 0===b?void 0:b.Tn)||void 0===e?void 0:e.sessionIndex;return uv(a.l,f,{sessionIndex:b}).then(function(h){return Promise.resolve(Object.assign(Object.assign({},Cra(c)),h))})}; Cra=function(a){var b={"Content-Type":"application/json"},c=g.O("VISITOR_DATA");c&&(b["X-Goog-Visitor-Id"]=c);"cors"!==a&&((a=g.O("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.O("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.O("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a));return b}; yra=function(a,b){var c,d;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.i.Dp){var e=a.i.Dp[b.signalServiceEndpoint.signal];if(e)return new e}if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.i.EA&&(e=a.i.EA[b.continuationCommand.request]))return new e;for(var f in b)if(a.i.BA[f]&&(b=a.i.BA[f]))return new b}; LM=function(){}; MM=function(){}; NM=function(){}; OM=function(){}; PM=function(){}; QM=function(){}; RM=function(){this.i=this.l=void 0}; g.TM=function(a,b){if(!SM){var c={BA:{feedbackEndpoint:NM,modifyChannelNotificationPreferenceEndpoint:OM,playlistEditEndpoint:PM,subscribeEndpoint:LM,unsubscribeEndpoint:MM,webPlayerShareEntityServiceEndpoint:QM}},d=g.Nr("web_enable_client_location_service")?UK.getInstance():void 0,e=[];d&&e.push(d);void 0===a&&(a=tv());void 0===b&&(RM.i||(RM.i=new RM),b=RM.i);JM.i=new JM(c,b,a,e);SM=JM.i}return SM}; Fra=function(){if((!g.Nr("condition_ad_status_fetch_on_consent_cookie_html5_clients")||wt())&&"1"!=Tb(g.O("PLAYER_VARS",{}),"privembed",!1)){var a=function(){UM=!0;"google_ad_status"in window?Kr("DCLKSTAT",1):Kr("DCLKSTAT",2)}; try{g.bz("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}Era.push(g.cu(function(){if(!(UM||"google_ad_status"in window)){try{if(a){var b=""+g.Pa(a),c=dz[b];c&&g.xu(c)}}catch(d){}UM=!0;Kr("DCLKSTAT",3)}},5E3))}}; Gra=function(){var a=Number(g.O("DCLKSTAT",0));return isNaN(a)?0:a}; Ira=function(){var a,b;return g.D(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(Hra()):f.return()})})}; Hra=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."))})}; zv=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})}; Kra=function(a,b){Ira().then(function(c){c=Object.assign(Object.assign({},b),{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:Jra(null===c||void 0===c?void 0:c.usage),deviceStorageQuotaMbytes:Jra(null===c||void 0===c?void 0:c.quota)});a.i("idbQuotaExceeded",c)})}; Jra=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))}; VM=function(){this.l=!1;this.i=null}; Mra=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;c?(a.l=!0,g.bz(c,function(){a.l=!1;var l=0<=c.indexOf("/th/");if(l?window.trayride:window.botguard)Lra(a,d,!!h,l,e);else{l=cz(c);var m=document.getElementById(l);m&&(Au(l),m.parentNode.removeChild(m));g.Ux(new g.Gv("Unable to load Botguard","from "+c))}},f)):b&&(f=g.ng("SCRIPT"),f.textContent=b,f.nonce=nd(),document.head.appendChild(f),document.head.removeChild(f),((b=b.includes("trayride"))?window.trayride:window.botguard)?Lra(a,d,!!h,b,e):g.Ux(Error("Unable to load Botguard from JS")))}; Lra=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{Nra(a,new d(b,e?function(){return e(b)}:g.Ja))}catch(l){l instanceof Error&&g.Ux(l)}else{try{Nra(a,new d(b))}catch(l){l instanceof Error&&g.Ux(l)}e&&e(b)}else g.Ux(Error("Failed to finish initializing VM"))}; Ora=function(a,b){var c=WM;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)}; Nra=function(a,b){a.i=b}; Pra=function(){JA("bg_l","player_att");XM=(0,g.P)()}; Qra=function(a){a=void 0===a?{}:a;return WM.invoke(a)}; Rra=function(a){var b=Or("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return Ora(a,b)}; g.Sra=function(a){var b=this;this.videoData=a;a={};this.l=(a.c1a=function(){if(WM.Ud()){var c="";b.videoData&&b.videoData.Ea&&(c=b.videoData.Ea+("&r1b="+b.videoData.clientPlaybackNonce));var d={};c=(d.atr_challenge=c,d);JA("bg_v","player_att");c=Qra(c);JA("bg_s","player_att");c=c?"r1a="+c:"r1c=2"}else JA("bg_e","player_att"),c=window.trayride||window.botguard?"r1c=1":"r1c=4";return c},a.c3a=function(c){return"r3a="+Math.floor(b.videoData.lengthSeconds%Number(c.c3a)).toString()},a.c6a=function(c){return"r6a="+ (Number(c.c)^Gra())},a); this.videoData&&this.videoData.Ea?this.i=Yr(this.videoData.Ea):this.i={}}; Tra=function(a){if(a.videoData&&a.videoData.Ea){for(var b=[a.videoData.Ea],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}; g.Vra=function(a){var b={};Object.assign(b,a.l);"c1b"in a.i&&(b.c1a=function(){return Ura(a)}); if(a.videoData&&a.videoData.Ea){for(var c=[a.videoData.Ea],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)}; Ura=function(a){if(!WM.Ud())return JA("bg_e","player_att"),window.trayride||window.botguard?Promise.resolve("r1c=1"):Promise.resolve("r1c=4");var b="";a.videoData&&a.videoData.Ea&&(b=a.videoData.Ea+("&r1b="+a.videoData.clientPlaybackNonce));a={};var c=(a.atr_challenge=b,a);return new Promise(function(d){JA("bg_v","player_att");Rra(c).then(function(e){e?(JA("bg_s","player_att"),d("r1a="+e)):(JA("bg_e","player_att"),d("r1c=2"))},function(){JA("bg_e","player_att"); d("r1c=3")})})}; Wra=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 YM(a)}; YM=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;dd&&(d=-(d+1));g.qg(a,b,d);b.setAttribute("data-layer",String(c))}; g.pN=function(a){var b=a.T();if(!b.Bb)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.kb(c.Y,"ypc")&&!a&&(!g.MF(b)||f)}; fsa=function(a){a=g.W(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.l||!b.l.video||1080>b.l.video.i||b.UJ)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.l.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.Ja("iqss",d,!0),!0):!1}; g.qN=function(){mx.apply(this,arguments)}; gsa=function(){this.l=this.i=NaN}; rN=function(a,b){this.u=a;this.timerName="";this.l=!1;this.B=new gsa;this.i=b||null;this.l=!1}; hsa=function(a,b,c){var d=g.SF(b.B)&&!b.B.C;if(b.B.sf&&(OF(b.B)||KG(b.B)||d)&&!a.l){a.l=!0;g.O("TIMING_ACTION")||Kr("TIMING_ACTION",a.u.csiPageType);a.u.csiServiceName&&Kr("CSI_SERVICE_NAME",a.u.csiServiceName);if(a.i){b=a.i.Fo();d=g.q(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,EA(e,b[e],a.timerName);b=a.i.Gs;d=g.q(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,g.DA(e,b[e],a.timerName);b=a.i;b.i={};b.Gs={}}g.DA("yt_pvis",LA(),a.timerName);g.DA("yt_pt","html5",a.timerName); c&&!IA("pbs",a.timerName)&&a.tick("pbs",c);c=a.u;!KG(c)&&!OF(c)&&IA("_start",a.timerName)&&KA(a.timerName)}}; g.sN=function(a,b){this.type=a||"";this.id=b||""}; g.tN=function(a,b){g.Q.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.Qd=this.OA=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.Qd=Wr(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.sN("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=new g.sN(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=a.length?0:b}; jsa=function(a){var b=a.index-1;return 0>b?a.length-1:b}; vN=function(a,b){a.index=g.Mf(b,0,a.length-1);a.startSeconds=0}; wN=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.fb();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;ct.length))){r={applicationState:r?"INACTIVE":"ACTIVE",clientFormFactor:osa[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:psa[t[0]]||"UNKNOWN_INTERFACE",clientVersion:t[2]||"",platform:qsa[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(m){var u=void 0;try{u=JSON.parse(m)}catch(x){g.Ux(x)}u&& (t={params:[{key:"ms",value:u.ms}]},r.osName=u.os_name,r.userAgent=u.user_agent,r.windowHeightPoints=u.window_height_points,r.windowWidthPoints=u.window_width_points)}n.push({adSignalsInfo:t,remoteClient:r})}}l.remoteContexts=n}h.mdxContext=l;l=b.width;0Math.random()){var B=new g.Gv("Unable to load player module",(c||"lib")+".js from "+b+" on "+(document.location&&document.location.origin)+".");g.Tx(B)}Bg(e);t&&t(y)}; var u=m,x=u.onreadystatechange;u.onreadystatechange=function(y){switch(u.readyState){case "loaded":case "complete":Bg(f)}x&&x(y)}; l&&((h=a.I.T().cspNonce)&&m.setAttribute("nonce",h),g.Bj(m,g.xl(b)),h=g.$f("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.gf(a,function(){m.parentNode&&m.parentNode.removeChild(m);c&&(g.KN[c]=null);"annotations_module"===c&&(g.KN.creatorendscreen=null)}))}; SN=function(a,b,c){g.hf.call(this,b,a);this.i=c}; g.TN=function(a){wK.call(this);var b=this;this.i=a;this.B={};this.listener=function(c){b.dispatchEvent(new SN(b,c.type,c))}}; VN=function(a,b,c,d){g.Q.call(this);var e=this;this.target=a;this.Nv=b;this.l=0;this.G=!1;this.B=new g.Qf(NaN,NaN);this.i=new g.qN(this);this.va=this.u=this.J=null;g.F(this,this.i);b=d?4E3:3E3;this.U=new g.J(function(){UN(e,1,!1)},b,this); g.F(this,this.U);this.Y=new g.J(function(){UN(e,2,!1)},b,this); g.F(this,this.Y);this.X=new g.J(function(){UN(e,512,!1)},b,this); g.F(this,this.X);this.ma=c&&0=c.width||!c.height||0>=c.height||g.zz(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b}; iO=function(a){g.V.call(this,{D:"div",L:"ytp-paid-content-overlay",V:{"aria-live":"assertive","aria-atomic":"true"}});this.I=a;this.videoId=null;this.B=!1;this.hd=this.i=null;var b=a.T();a.Z("enable_new_paid_product_placement")&&!g.FG(b)?(this.l=new g.V({D:"a",L:"ytp-paid-content-overlay-link",V:{href:"{{href}}",target:"_blank"},S:[{D:"div",L:"ytp-paid-content-overlay-icon",oa:"{{icon}}"},{D:"div",L:"ytp-paid-content-overlay-text",oa:"{{text}}"},{D:"div",L:"ytp-paid-content-overlay-chevron",oa:"{{chevron}}"}]}), this.N(this.l.element,"click",this.onClick)):this.l=new g.V({D:"div",Ca:["ytp-button","ytp-paid-content-overlay-text"],oa:"{{text}}"});this.u=new g.fM(this.l,250,!1,100);g.F(this,this.l);this.l.ya(this.element);g.F(this,this.u);this.I.Ig(this.element,this);this.N(a,"videodatachange",this.kb);this.N(a,"presentingplayerstatechange",this.Dc)}; Tsa=function(a,b){var c=Uma(b),d=KH(b);if(a.i)b.videoId&&b.videoId!==a.videoId&&(g.Gq(a.i),a.videoId=b.videoId,a.B=!!d);else if(c&&d){var e,f,h,l;a.i=new g.J(a.Ab,d,a);g.F(a,a.i);b=null===(f=null===(e=b.getPlayerResponse())||void 0===e?void 0:e.paidContentOverlay)||void 0===f?void 0:f.paidContentOverlayRenderer;e=null===b||void 0===b?void 0:b.navigationEndpoint;f=null===(h=null===b||void 0===b?void 0:b.icon)||void 0===h?void 0:h.iconType;h=null===(l=null===e||void 0===e?void 0:e.urlEndpoint)||void 0=== l?void 0:l.url;a.I.Nl(a.element,(null===e||void 0===e?void 0:e.clickTrackingParams)||null);a.l.update({href:null!==h&&void 0!==h?h:"#",text:c,icon:"MONEY_HAND"===f?{D:"svg",V:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",V:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z", fill:"white"}}]}:null,chevron:h?g.CL():null})}}; Usa=function(a,b){a.i&&(g.U(b,8)&&a.B?(a.B=!1,a.Uc(),a.i.start()):(g.U(b,2)||g.U(b,64))&&a.videoId&&(a.videoId=null))}; jO=function(a){g.V.call(this,{D:"div",L:"ytp-spinner",S:[$N(),{D:"div",L:"ytp-spinner-message",oa:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Ba("ytp-spinner-message");this.i=new g.J(this.show,500,this);g.F(this,this.i);this.N(a,"presentingplayerstatechange",this.l);this.N(a,"playbackstalledatstart",this.u);a=a.sb();Vsa(a)?this.i.start():this.hide()}; Vsa=function(a){return g.U(a,128)?!1:g.U(a,16)||g.U(a,1)?!0:!1}; g.kO=function(a,b,c,d){d=void 0===d?!1:d;g.xL.call(this,b);var e=this;this.I=a;this.xa=d;this.J=new g.qN(this);this.U=new g.fM(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.F(this,this.J);g.F(this,this.U)}; Wsa=function(a){a.l&&(document.activeElement&&g.tg(a.element,document.activeElement)&&(xg(a.l),a.l.focus()),a.l.removeAttribute("aria-expanded"),a.l=void 0);g.ox(a.J);a.K=void 0}; lO=function(a,b,c){a.Pf()?a.Ab():a.Uc(b,c)}; mO=function(a){var b=g.$E(a.T().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{D:"div",Ca:["ytp-unmute-icon"],S:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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",Ca:["ytp-unmute-text"],oa:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({D:"div",Ca:["ytp-unmute-box"],S:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.kO.call(this,a,{D:"button",Ca:["ytp-unmute","ytp-popup","ytp-button"].concat(c),S:[{D:"div",L:"ytp-unmute-inner",S:d}]},100);this.i=this.u=!1;this.api=a;this.api.Xb(this.element,this,51663);this.N(a,"onMutedAutoplayChange",this.au,this);this.N(a,"presentingplayerstatechange", this.Tg);this.Ra("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.MF(this.api.T());g.wL(this,a);a&&Xsa(this);this.B=a}; Xsa=function(a){a.i||(a.i=!0,a.api.ib(a.element,!0))}; g.oO=function(a){g.qN.call(this);var b=this;this.api=a;this.hD=!1;this.Yj=null;this.Uv=!1;this.Xd=null;this.GA=this.wy=!1;this.FD=this.HD=null;this.dI=NaN;this.ED=this.Ks=!1;this.Ut=0;this.fA=[];var c=a.T(),d=a.Za();this.ZF=new g.J(this.kC,0,this);g.F(this,this.ZF);g.XF(c)||(this.rq=new XN(a),g.F(this,this.rq),g.oN(a,this.rq.element,4));if(Ysa()){var e=new jO(a);g.F(this,e);e=e.element;g.oN(a,e,4)}var f=a.getVideoData();this.fd=new VN(d,function(l){return b.Nv(l)},f,c.Ac); g.F(this,this.fd);this.fd.subscribe("autohideupdate",this.bj,this);var h=new iO(a);g.F(this,h);g.oN(a,h.element,4);this.Cy=new mO(a);g.F(this,this.Cy);g.oN(this.api,this.Cy.element,2);this.CB=this.api.isMutedByMutedAutoplay();this.N(a,"onMutedAutoplayChange",this.au);this.vy=new g.J(this.zr,200,this);g.F(this,this.vy);this.QB=f.videoId;this.ZJ=new g.J(function(){b.Ut=0},350); g.F(this,this.ZJ);this.Xv=new g.J(function(){b.ED||nO(b)},350,this); g.F(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.XF(c)&&g.K(f,"ytp-music-player");!g.S(a.T().experiments,"disable_mediasession2")&&navigator.mediaSession&&!navigator.mediaSession.metadata&&navigator.mediaSession.setActionHandler&&(f=new hO(a),g.F(this,f));this.N(a,"appresize",this.tb);this.N(a,"presentingplayerstatechange",this.Tg);this.N(a,"videodatachange",this.kb);this.N(a,"videoplayerreset",this.iS); this.N(a,"autonavvisibility",function(){b.Sl()}); this.N(a,"sizestylechange",function(){b.Sl()}); this.N(d,"click",this.JS,this);this.N(d,"dblclick",this.KS,this);c.Pa&&(this.N(d,"gesturechange",this.LS,this),this.N(d,"gestureend",this.MS,this));this.Xm=[d.Fs];this.rq&&this.Xm.push(this.rq.element);e&&this.Xm.push(e)}; pO=function(a,b){if(!b)return!1;var c=a.api.md();if(c.Ln()&&(c=c.ue())&&g.tg(c,b))return c.controls;for(c=0;c1+b&&a.api.toggleFullscreen()}; Ysa=function(){var a=gt()&&67<=dt();return!ft("tizen")&&!KF&&!a&&!0}; sO=function(a,b){b=void 0===b?2:b;g.Q.call(this);this.api=a;this.i=null;this.Zd=new mx(this);g.F(this,this.Zd);this.l=qra;this.Zd.N(this.api,"presentingplayerstatechange",this.Dc);this.i=this.Zd.N(this.api,"progresssync",this.Rb);this.sj=b;1===this.sj&&this.Rb()}; tO=function(a){g.V.call(this,{D:"button",Ca:["ytp-button","ytp-back-button"],S:[{D:"div",L:"ytp-arrow-back-icon",S:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},S:[{D:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",Mb:!0,V:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.I=a;g.wL(this,a.T().showBackButton);this.Ra("click",this.onClick)}; g.uO=function(a){g.V.call(this,{D:"div",S:[{D:"div",L:"ytp-bezel-text-wrapper",S:[{D:"div",L:"ytp-bezel-text",oa:"{{title}}"}]},{D:"div",L:"ytp-bezel",V:{role:"status","aria-label":"{{label}}"},S:[{D:"div",L:"ytp-bezel-icon",oa:"{{icon}}"}]}]});this.I=a;this.l=new g.J(this.show,10,this);this.i=new g.J(this.hide,500,this);g.F(this,this.l);g.F(this,this.i);this.hide()}; wO=function(a,b,c){if(0>=b){c=KL();b="muted";var d=0}else c=c?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{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",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{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";vO(a,c,b,d+"%")}; bta=function(a,b){b=b?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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.I.getPlaybackRate(),d=g.eJ("Speed is $RATE",{RATE:String(c)});vO(a,b,d,c+"x")}; vO=function(a,b,c,d){d=void 0===d?"":d;a.Sa("label",void 0===c?"":c);a.Sa("icon",b);g.Gq(a.i);a.l.start();a.Sa("title",d);g.N(a.element,"ytp-bezel-text-hide",!d)}; yO=function(a,b,c){g.V.call(this,{D:"button",Ca:["ytp-button","ytp-cards-button"],V:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.MF(a.T()))},S:[{D:"span",L:"ytp-cards-button-icon-default",S:[{D:"div",L:"ytp-cards-button-icon",S:[Oqa()]},{D:"div",L:"ytp-cards-button-title",oa:"Info"}]},{D:"span",L:"ytp-cards-button-icon-shopping",S:[{D:"div",L:"ytp-cards-button-icon",S:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"}, S:[{D:"path",L:"ytp-svg-shadow",V:{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",L:"ytp-svg-fill",V:{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",L:"ytp-svg-shadow-fill",V:{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", L:"ytp-cards-button-title",oa:"Shopping"}]}]});this.I=a;this.u=b;this.B=c;this.i=null;this.l=new g.fM(this,250,!0,100);g.F(this,this.l);g.N(this.B,"ytp-show-cards-title",g.MF(a.T()));this.hide();this.Ra("click",this.onClicked);this.Ra("mouseover",this.AR);xO(this,!0)}; xO=function(a,b){b?a.i=g.zO(a.u.ac(),a.element):(a.i=a.i,a.i(),a.i=null)}; AO=function(a,b,c){g.V.call(this,{D:"div",L:"ytp-cards-teaser",S:[{D:"div",L:"ytp-cards-teaser-box"},{D:"div",L:"ytp-cards-teaser-text",S:a.T().Z("player_new_info_card_format")?[{D:"button",L:"ytp-cards-teaser-info-icon",V:{"aria-label":"Show cards","aria-haspopup":"true"},S:[Oqa()]},{D:"span",L:"ytp-cards-teaser-label",oa:"{{text}}"},{D:"button",L:"ytp-cards-teaser-close-button",V:{"aria-label":"Close"},S:[g.DL()]}]:[{D:"span",L:"ytp-cards-teaser-label",oa:"{{text}}"}]}]});var d=this;this.I=a;this.U= b;this.Nh=c;this.B=new g.fM(this,250,!1,250);this.i=null;this.J=new g.J(this.SR,300,this);this.G=new g.J(this.RR,2E3,this);this.C=[];this.l=null;this.K=new g.J(function(){d.element.style.margin="0"},250); this.u=null;g.F(this,this.B);g.F(this,this.J);g.F(this,this.G);g.F(this,this.K);g.S(a.T().experiments,"player_new_info_card_format")?(g.K(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.N(this.Ba("ytp-cards-teaser-close-button"),"click",this.Zh),this.N(this.Ba("ytp-cards-teaser-info-icon"),"click",this.vD),this.N(this.Ba("ytp-cards-teaser-label"),"click",this.vD)):this.Ra("click",this.vD);this.N(c.element,"mouseover",this.CE);this.N(c.element,"mouseout",this.BE);this.N(a,"cardsteasershow",this.kT); this.N(a,"cardsteaserhide",this.Ab);this.N(a,"cardstatechange",this.QK);this.N(a,"presentingplayerstatechange",this.QK);this.N(a,"appresize",this.SD);this.N(a,"onShowControls",this.SD);this.N(a,"onHideControls",this.jO);this.Ra("mouseenter",this.KL)}; dta=function(a,b,c,d){var e=window.location.search;if(38===b.va&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.ti("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.oQ});if(30===b.va&&"docs"===a.playerStyle)return g.ti("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.nF,authkey:b.authKey,eurl:a.Vb});if(33===b.va&&"google-live"===a.playerStyle)return g.ti("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId}); "yt"!==a.va&&g.Tx(Error("getVideoInfoUrl for invalid namespace: "+a.va));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Vb,ps:a.playerStyle,el:WH(b),hl:a.Tc,list:b.playlistId,agcid:b.JF,aqi:b.adQueryId,sts:18802,lact:mu()};g.Ra(f,a.deviceParams);a.Va&&(f.forced_experiments=a.Va);b.xa?(f.vvt=b.xa,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):b.Ve()&&(f.access_token=b.Ve());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&& (f.break_type=b.breakType);null!==b.Vz&&(f.ad_id=b.Vz);null!==b.Xz&&(f.ad_sys=b.Xz);null!==b.lA&&(f.encoded_ad_playback_context=b.lA);b.bz&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.La&&2!==a.La&&(f.cc_load_policy=a.La);var h=g.Zu(g.Am(g.Xu),65);g.GG(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.Sk&&(f.endscreen_ad_tracking=b.Sk); (h=a.U.get(b.videoId))&&h.Uu&&(f.ic_track=h.Uu);b.Ga&&(f.itct=b.Ga);ZH(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.Zj&&(f.autonav="1");b.OB&&(f.noiba="1");g.S(a.experiments,"send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.Ff&&(f.ytr=b.Ff)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Ff);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Yk&&(f.ytrcc=b.Yk);b.hC&&(f.utpsa="1");b.isFling&&(f.is_fling="1");b.isInlinePlaybackNoAd&&(f.mute="1");b.vnd&&(f.vnd= b.vnd);b.sf&&(h=3===b.sf.split("|").length,f.force_ad_params=h?b.sf:"||"+b.sf);b.Kb&&(f.preload=b.Kb);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.Id&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");XH(b)&&(f.content_v=XH(b));b.yb&&(f.livemonitor=1);a.Y&&(f.authuser=a.Y);a.pageId&&(f.pageid=a.pageId);a.xa&&(f.ei=a.xa);a.l&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.u&&b.uD&&(f.live_start_walltime=b.uD);a.u&&b.uf&&(f.live_manifest_duration=b.uf);a.u&&b.playerParams&& (f.player_params=b.playerParams);a.u&&b.cycToken&&(f.cyc=b.cycToken);a.u&&b.cz&&(f.tkn=b.cz);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.eb&&(f.kpt=b.eb);b.Hi&&(f.kids_age_up_mode=b.Hi);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.Kp&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.U?(h=null!=b.U.latitudeE7&&null!=b.U.longitudeE7?b.U.latitudeE7+","+b.U.longitudeE7:",",h+=","+(b.U.clientPermissionState||0)+","+(b.U.locationRadiusMeters|| "")+","+(b.U.locationOverrideToken||"")):h=null;h&&(f.uloc=h);b.xj&&(f.internalipoverride=b.xj);a.embedConfig&&(f.embed_config=a.embedConfig);a.vj&&(f.co_rel="1");0=a.i.length)){var b=a.i.pop(),c=a.i[0];a.i=[c];WO(a,b,c,!0)}}; WO=function(a,b,c,d){nta(a);b&&(b.unsubscribe("size-change",a.Dr,a),b.unsubscribe("back",a.Wg,a));c.subscribe("size-change",a.Dr,a);c.subscribe("back",a.Wg,a);if(a.vb){g.K(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.ya(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;mta(a);g.Nl(a.element,e);a.B=new g.J(function(){ota(a,b,c,d)},20,a); a.B.start()}else c.ya(a.element),b&&b.detach()}; ota=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.Oq(c.element,"ytp-panel-animate-back")):(g.K(b.element,"ytp-panel-animate-back"),g.Oq(c.element,"ytp-panel-animate-forward"));g.Nl(a.element,a.size);a.G=new g.J(function(){g.Oq(a.element,"ytp-popup-animating");b.detach();g.Pq(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.G.dispose();a.G=null},250,a); a.G.start()}; nta=function(a){a.B&&g.Fq(a.B);a.G&&g.Fq(a.G)}; g.YO=function(a,b,c){g.VO.call(this,a);this.va=b;this.jc=c;this.u=new g.qN(this);this.X=new g.J(this.pT,1E3,this);this.ma=this.C=null;g.F(this,this.u);g.F(this,this.X);a.Xb(this.element,this,28656);g.K(this.element,"ytp-contextmenu");pta(this);this.hide()}; pta=function(a){g.ox(a.u);if("gvn"!==a.I.T().playerStyle){var b=a.I.Za();a.u.N(b,"contextmenu",a.eR);a.u.N(b,"touchstart",a.NL,null,!0);a.u.N(b,"touchmove",a.xJ,null,!0);a.u.N(b,"touchend",a.xJ,null,!0)}}; qta=function(a){a.I.isFullscreen()?g.oN(a.I,a.element,9):a.ya(document.body)}; g.ZO=function(a,b,c){c=void 0===c?240:c;g.V.call(this,{D:"button",Ca:["ytp-button","ytp-copylink-button"],V:{title:"{{title-attr}}","data-tooltip-opaque":String(g.MF(a.T()))},S:[{D:"div",L:"ytp-copylink-icon",oa:"{{icon}}"},{D:"div",L:"ytp-copylink-title",oa:"Copy link",V:{"aria-hidden":"true"}}]});this.api=a;this.i=b;this.l=c;this.visible=!1;this.tooltip=this.i.ac();b=a.T();FO(this.tooltip);g.N(this.element,"ytp-show-copylink-title",g.MF(b)&&!g.XF(b));a.Xb(this.element,this,86570);this.Ra("click", this.onClick);this.N(a,"videodatachange",this.Ma);this.N(a,"videoplayerreset",this.Ma);this.N(a,"appresize",this.Ma);this.Ma();g.gf(this,g.zO(this.tooltip,this.element))}; rta=function(a){a.Sa("icon",AL());if(a.api.T().i)$O(a.tooltip,a.element,"Link copied to clipboard");else{a.Sa("title-attr","Link copied to clipboard");aP(a.tooltip);$O(a.tooltip,a.element);var b=a.Ra("mouseleave",function(){a.fc(b);a.Ma();a.tooltip.Ni()})}}; sta=function(a,b){return g.D(a,function d(){var e=this;return g.z(d,function(f){if(1==f.i)return ta(f,2),g.w(f,navigator.clipboard.writeText(b),4);if(2!=f.i)return f.return(!0);va(f);var h=f.return,l=!1,m=g.ng("TEXTAREA");m.value=b;m.setAttribute("readonly","");var n=e.api.getRootNode();n.appendChild(m);if(qt){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)})})}; bP=function(a){g.V.call(this,{D:"div",L:"ytp-doubletap-ui",S:[{D:"div",L:"ytp-doubletap-fast-forward-ve"},{D:"div",L:"ytp-doubletap-rewind-ve"},{D:"div",L:"ytp-doubletap-static-circle",S:[{D:"div",L:"ytp-doubletap-ripple"}]},{D:"div",L:"ytp-doubletap-overlay-a11y"},{D:"div",L:"ytp-doubletap-seek-info-container",S:[{D:"div",L:"ytp-doubletap-arrows-container",S:[{D:"span",L:"ytp-doubletap-base-arrow"},{D:"span",L:"ytp-doubletap-base-arrow"},{D:"span",L:"ytp-doubletap-base-arrow"}]},{D:"div",L:"ytp-doubletap-tooltip", S:[{D:"div",L:"ytp-chapter-seek-text",oa:"{{seekText}}"},{D:"div",L:"ytp-doubletap-tooltip-label",oa:"{{seekTime}}"}]}]}]});this.I=a;this.u=new g.J(this.show,10,this);this.l=new g.J(this.hide,700,this);this.i=this.Ba("ytp-doubletap-static-circle");g.F(this,this.u);g.F(this,this.l);this.hide();this.B=this.Ba("ytp-doubletap-fast-forward-ve");this.C=this.Ba("ytp-doubletap-rewind-ve");this.I.Xb(this.B,this,28240);this.I.Xb(this.C,this,28239);this.I.ib(this.B,!0);this.I.ib(this.C,!0)}; cP=function(a,b,c){var d=a.I.Za().getPlayerSize();g.Gq(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";tta(a,c)}; dP=function(a,b,c){g.Gq(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.Sa("seekText",c);a.Sa("seekTime","")}; tta=function(a,b){b=g.eJ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Sa("seekTime",b)}; eP=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b}; fP=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}; uta=function(a,b){b=fP(a,b)+1;return bd;e={Ul:e.Ul},f++){e.Ul=c[f];a:switch(e.Ul.img||e.Ul.iconId){case "facebook":var h={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{D:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",V:{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",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{D:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",V:{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.V({D:"a",Ca:["ytp-share-panel-service-button","ytp-button"],V:{href:e.Ul.url,target:"_blank",title:e.Ul.sname||e.Ul.serviceName},S:[h]}),h.Ra("click",function(m){return function(n){if(g.uM(n)){var p=m.Ul.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.Ec?p:g.Jc("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(",");Pd()&&t.navigator&&t.navigator.standalone&&p&&"_self"!=p?(y=g.ng("A"),g.kd(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=ld("",t,p,y),r=g.Fc(u),t&&(g.IG&&-1!=r.indexOf(";")&&(r="'"+r.replace(/'/g,"%27")+"'"),t.opener=null,r=g.dd(g.fc("b/12014412, meta tag with sanitized URL"), ''),(u=t.document)&&u.write&&(u.write(g.$c(r)),u.close()))):(t=ld(u,t,p,y))&&r.noopener&&(t.opener=null);if(r=t)r.opener||(r.opener=window),r.focus();g.Ut(n)}}}(e)),g.gf(h,g.zO(a.tooltip,h.element)),a.i.push(h),d++)}var l=b.more||b.moreLink; b=new g.V({D:"a",Ca:["ytp-share-panel-service-button","ytp-button"],S:[{D:"span",L:"ytp-share-panel-service-button-more",S:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{D:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",V:{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"}}]}]}],V:{href:l,target:"_blank",title:"More"}});b.Ra("click",function(m){g.ZN(l,a.api,m)&&a.api.Na("SHARE_CLICKED")}); g.gf(b,g.zO(a.tooltip,b.element));a.i.push(b);a.Sa("buttons",a.i)}; Cta=function(a){for(var b=g.q(a.i),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.ef(c);a.i=[]}; xP=function(a,b,c){c=void 0===c?!0:c;g.V.call(this,{D:"div",L:"ytp-suggested-action"});var d=this;this.I=a;this.Ya=b;this.Ga=this.J=this.i=this.C=this.B=this.l=this.expanded=this.enabled=this.u=!1;this.Va=!0;this.Ea=new g.J(function(){d.badge.element.style.width=""},200,this); this.X=new g.J(function(){vP(d);wP(d)},200,this); this.dismissButton=new g.V({D:"button",Ca:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.F(this,this.dismissButton);this.G=new g.V({D:"div",L:"ytp-suggested-action-badge-expanded-content-container",S:[{D:"label",L:"ytp-suggested-action-badge-title",oa:"{{badgeLabel}}"},this.dismissButton]});g.F(this,this.G);this.badge=new g.V({D:"button",Ca:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],S:[c?{D:"div",L:"ytp-suggested-action-badge-icon"}: "",this.G]});g.F(this,this.badge);this.badge.ya(this.element);this.K=new g.fM(this.badge,250,!1,100);g.F(this,this.K);this.va=new g.fM(this.G,250,!1,100);g.F(this,this.va);this.Da=new g.Aq(this.sU,null,this);g.F(this,this.Da);this.ma=new g.Aq(this.DO,null,this);g.F(this,this.ma);g.F(this,this.Ea);g.F(this,this.X);this.I.Ig(this.badge.element,this.badge,!0);this.I.Ig(this.dismissButton.element,this.dismissButton,!0);this.N(this.I,"onHideControls",function(){d.i=!1;wP(d);vP(d);d.Eh()}); this.N(this.I,"onShowControls",function(){d.i=!0;wP(d);vP(d);d.Eh()}); this.N(this.badge.element,"click",this.lC);this.N(this.dismissButton.element,"click",this.mC);this.N(this.I,"pageTransition",this.RL);this.N(this.I,"appresize",this.Eh);this.N(this.I,"fullscreentoggled",this.tR);this.N(this.I,"cardstatechange",this.UQ);this.N(this.I,"annotationvisibility",this.SU,this);this.N(this.I,"offlineslatestatechange",this.TU,this)}; vP=function(a){g.N(a.badge.element,"ytp-suggested-action-badge-with-controls",a.i||!a.l)}; wP=function(a,b){var c=a.J||a.i||!a.l;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Da.stop(),a.ma.stop(),a.Ea.stop(),a.Da.start()):(g.wL(a.G,a.expanded),g.N(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),Eta(a))}; Eta=function(a){a.B&&a.I.ib(a.badge.element,a.Hu());a.C&&a.I.ib(a.dismissButton.element,a.Hu()&&(a.J||a.i||!a.l))}; Fta=function(a){var b=a.text||"";g.ug(g.cg("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.La?a.La:"")}; Gta=function(a,b){b?a.C&&a.I.Fb(a.dismissButton.element):a.B&&a.I.Fb(a.badge.element)}; yP=function(a,b){xP.call(this,a,b);var c=this;this.U=this.xa=this.Aa=!1;this.N(this.I,g.Iz("shopping_overlay_visible"),function(){c.Fe(!0)}); this.N(this.I,g.Jz("shopping_overlay_visible"),function(){c.Fe(!1)}); this.N(this.I,g.Iz("shopping_overlay_expanded"),function(){c.J=!0;wP(c)}); this.N(this.I,g.Jz("shopping_overlay_expanded"),function(){c.J=!1;wP(c)}); this.N(this.I,"changeProductsInVideoVisibility",this.mS);this.N(this.I,"videodatachange",this.kb);this.N(this.I,"paidcontentoverlayvisibilitychange",this.dS)}; zP=function(a){a.I.df("shopping_overlay_visible");a.I.df("shopping_overlay_expanded")}; AP=function(a){g.kO.call(this,a,{D:"button",Ca:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{D:"div",L:"ytp-skip-intro-button-text",oa:"Skip Intro"}]},100);var b=this;this.C=!1;this.B=new g.J(function(){b.hide()},5E3); this.i=this.u=NaN;g.F(this,this.B);this.ma=function(){b.show()}; this.X=function(){b.hide()}; this.G=function(){var c=b.I.getCurrentTime();c>b.u/1E3&&c=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+r+"px "+t+"px/"+l+"px "+m+"px"}; g.GP=function(a){g.V.call(this,{D:"div",L:"ytp-storyboard-framepreview",S:[{D:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.B=this.Ba("ytp-storyboard-framepreview-img");this.l=null;this.u=NaN;this.events=new g.qN(this);this.i=new g.fM(this,100);g.F(this,this.events);g.F(this,this.i);this.N(this.api,"presentingplayerstatechange",this.Dc)}; HP=function(a,b){var c=!!a.l;a.l=b;a.l?(c||(a.events.N(a.api,"videodatachange",function(){HP(a,a.api.oh())}),a.events.N(a.api,"progresssync",a.Yc),a.events.N(a.api,"appresize",a.C)),a.u=NaN,IP(a),a.i.show(200)):(c&&g.ox(a.events),a.i.hide(),a.i.stop())}; IP=function(a){var b=a.l,c=a.api.getCurrentTime(),d=a.api.Za().getPlayerSize(),e=jH(b,d.width);c=lma(b,e,c);c!==a.u&&(a.u=c,ima(b,c,d.width),b=gma(b,c,d.width),Ita(a.B,b,d.width,d.height))}; JP=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-fullerscreen-edu-button","ytp-button"],S:[{D:"div",Ca:["ytp-fullerscreen-edu-text"],oa:"Scroll for details"},{D:"div",Ca:["ytp-fullerscreen-edu-chevron"],S:[{D:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",V:{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.fM(this,250,void 0,100);this.C=this.u=!1;a.Xb(this.element,this,61214);this.B=b;g.F(this,this.l);this.N(a, "fullscreentoggled",this.Ma);this.N(a,"presentingplayerstatechange",this.Ma);this.Ra("click",this.onClick);this.Ma()}; g.KP=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-fullscreen-button","ytp-button"],V:{title:"{{title}}"},oa:"{{icon}}"});this.I=a;this.l=b;this.message=null;this.i=g.zO(this.l.ac(),this.element);this.u=new g.J(this.fO,2E3,this);g.F(this,this.u);this.N(a,"fullscreentoggled",this.ji);this.N(a,"presentingplayerstatechange",this.Ma);this.Ra("click",this.onClick);ix()&&(b=this.I.Za(),this.N(b,oia(),this.sC),this.N(b,lx(document),this.Fl));a.T().Pa||a.T().J||this.disable();this.Ma();this.ji(a.isFullscreen())}; LP=function(){g.E.call(this);this.l=null;this.startTime=this.duration=0;this.delay=new g.Aq(this.i,null,this);g.F(this,this.delay)}; Jta=function(a,b){if("path"===b.D)return b.V.d;if(b.S)for(var c=0;c=p.Uy&&r<=p.My}}(h)); bua(a.J[l],n,1===a.J.length);e+=m+(a.u?3:2)}}; nua=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(0l)a.i[c].width=n;else{a.i[c].width=0;var p=a,r=c,t=p.i[r-1];void 0!==t&&0a.Pa&&(a.Pa=m/f),d=!0)}c++}}return d}; dQ=function(a){if(a.C){var b=a.api.getProgressState();var c=b.seekableStart;var d=b.seekableEnd,e=!!a.B&&a.B.postId&&2!==a.api.getPresentingPlayerType(),f=g.S(a.api.T().experiments,"enable_fully_expanded_clip_range_in_progress_bar"),h=g.S(a.api.T().experiments,"enable_expanded_clip_range_in_progress_bar");e&&f?c=new xM(Math.max(c,a.B.startTimeMs/1E3),Math.min(d,a.B.endTimeMs/1E3)):e&&h?(e=a.B.startTimeMs/1E3,f=a.B.endTimeMs/1E3,h=(f-e)/20,c=new xM(Math.max(c,e-h),Math.min(d,f+h))):c=new xM(c,d);d= AM(c,b.loaded,0);b=AM(c,b.current,0);e=a.l.l!==c.l||a.l.i!==c.i;a.l=c;eQ(a,b,d);e&&fQ(a);pua(a)}}; hQ=function(a,b){var c=zM(a.l,b.u);if(1=a.i.length?!1:4>Math.abs(b-a.i[c].startTime/1E3)/a.l.i*(a.C-(a.u?3:2)*a.xa)}; rua=function(a,b,c,d){b=g.Mf(b,0,a.u?60:40);a.X=b;var e=a.Da;a.Da=b/(a.u?60:40)*(Math.max(yM(a.l)/a.C,1)-1)+1;b=a.C*a.Da;a.ma=g.Mf(d*b-c,0,b-a.C);e!==a.Da&&fQ(a)}; fQ=function(a){var b=bQ(a),c=-b.l/b.i,d=(-b.l+b.width)/b.i,e=cba(a.Ob),f=0;if(a.X>.2*(a.u?60:40)&&1===a.i.length)for(var h=yM(a.l)/60*d,l=Math.ceil(yM(a.l)/60*c);l=f;c--)g.rg(e[c]);a.element.style.height=a.X+(a.u?8:5)+"px";a.W("height-change",a.X);a.Gc.style.height=a.X+(a.u?20:13)+"px";e=g.q(Object.keys(a.Aa));for(f=e.next();!f.done;f=e.next())sua(a,f.value);iQ(a);eQ(a,a.U,a.La)}; bQ=function(a){var b=a.bb.x,c=a.C*a.Da;b=g.Mf(b,0,a.C);a.Vb.update(b,a.C,-a.ma,-(c-a.ma-a.C));return a.Vb}; eQ=function(a,b,c){var d,e;a.U=b;a.La=c;var f=bQ(a),h=a.l.i,l=zM(a.l,a.U),m=g.eJ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.tM(l,!0),DURATION:g.tM(h,!0)}),n=fP(a.i,1E3*l);n=a.i[n].title;a.update({ariamin:Math.floor(a.l.l),ariamax:Math.floor(h),arianow:Math.floor(l),arianowtext:n?n+" "+m:m});h=a.clipStart;l=a.clipEnd;a.B&&2!==a.api.getPresentingPlayerType()&&(h=a.B.startTimeMs/1E3,l=a.B.endTimeMs/1E3);h=AM(a.l,h,0);m=AM(a.l,l,1);n=!(null===(d=a.api.getVideoData())||void 0===d||!g.bI(d));l=g.Mf(b, h,m);c=n?1:g.Mf(c,h,m);b=mua(a,b,f);g.zl(a.Id,"transform","translateX("+b+"px)");jQ(a,f,h,l,"PLAY_PROGRESS");jQ(a,f,h,c,"LOAD_PROGRESS");a.api.Z("web_player_heat_map")&&(null===(e=a.J[0])||void 0===e?void 0:e.l.setAttribute("width",(100*l).toFixed(2)+"%"))}; jQ=function(a,b,c,d,e){var f=a.i.length,h=b.i-a.xa*(a.u?3:2),l=c*h;c=gQ(a,l);var m=d*h;h=gQ(a,m);"HOVER_PROGRESS"===e&&(h=gQ(a,b.i*d,!0),m=b.i*d-tua(a,b.i*d)*(a.u?3:2));b=Math.max(l-uua(a,c),0);for(d=c;d=a.i.length)return a.C;for(var c=0,d=0;de.width)b-=e.width;else break;d++}return d===a.i.length?d-1:d}; mua=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&&0e?0:e)+c.l}; tua=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.lQ=function(a,b,c,d){var e=a.C!==c;a.xc=b;a.C=c;a.u=d;fQ(a);1===a.i.length&&(a.i[0].width=c||0);e&&g.cQ(a)}; iQ=function(a){var b=!!a.B&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.B?(c=a.B.startTimeMs/1E3,d=a.B.endTimeMs/1E3):(e=c>a.l.l,f=0a.U);g.N(a.Gc,"ytp-scrubber-button-hover",d===e&&1b||b===a.l)){a.l=b;b=160*a.scale;var c=160*a.scale,d=gma(a.i,a.l,b);Ita(a.bg,d,b,c,!0);a.X.start()}}; Qua=function(a){var b=a.activeElement;3===a.type&&a.ma.stop();a.api.removeEventListener("appresize",a.U);a.J||b.setAttribute("title",a.C);a.C="";a.activeElement=null}; g.aR=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-watch-later-button","ytp-button"],V:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.MF(a.T()))},S:[{D:"div",L:"ytp-watch-later-icon",oa:"{{icon}}"},{D:"div",L:"ytp-watch-later-title",oa:"Watch later"}]});this.I=a;this.icon=null;this.visible=this.isRequestPending=this.i=!1;this.tooltip=b.ac();FO(this.tooltip);a.Xb(this.element,this,28665);this.Ra("click",this.onClick,this);this.N(a,"videoplayerreset",this.eM); this.N(a,"appresize",this.yv);this.N(a,"videodatachange",this.yv);this.N(a,"presentingplayerstatechange",this.yv);this.yv();a=this.I.T();var c=Rua();a.l&&c?(Sua(),Tua(this)):this.Ma(2);g.N(this.element,"ytp-show-watch-later-title",g.MF(a));g.gf(this,g.zO(b.ac(),this.element))}; Uua=function(a,b){g.tra(function(){Sua({videoId:b});window.location.reload()},"wl_button",g.wG(a.I.T()))}; Tua=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ma(3);var b=a.I.getVideoData();b=a.i?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.I.ll(),d=a.i?function(){a.i=!1;a.isRequestPending=!1;a.Ma(2);a.I.T().u&&a.I.Na("WATCH_LATER_VIDEO_REMOVED")}:function(){a.i=!0; a.isRequestPending=!1;a.Ma(1);a.I.T().i&&$O(a.tooltip,a.element);a.I.T().u&&a.I.Na("WATCH_LATER_VIDEO_ADDED")}; KM(c,b).then(d,function(){a.isRequestPending=!1;Vua(a,"An error occurred. Please try again later.")})}}; Vua=function(a,b){a.Ma(4,b);a.I.T().u&&a.I.Na("WATCH_LATER_ERROR",b)}; Wua=function(a,b){var c=a.I.T();if(b!==a.icon){switch(b){case 3:var d=$N();break;case 1:d=AL();break;case 2:d={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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",V:{height:"100%", version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Sa("icon",d); a.icon=b}}; bR=function(a){g.oO.call(this,a);var b=this;this.Qw=(this.Qo=g.MF(this.api.T()))&&(this.api.T().i||ut()||rt());this.yA=48;this.zA=69;this.Oj=null;this.Ym=[];this.jc=new g.uO(this.api);this.Ls=new bP(this.api);this.Ch=new g.V({D:"div",L:"ytp-chrome-top"});this.Tu=[];this.tooltip=new g.ZQ(this.api,this);this.backButton=this.Vq=null;this.channelAvatar=new HO(this.api,this);this.title=new YQ(this.api,this);this.Cg=new g.tL({D:"div",L:"ytp-chrome-top-buttons"});this.bh=null;this.Nh=new yO(this.api,this, this.Ch.element);this.overflowButton=this.Qf=null;this.Sf="1"===this.api.T().controlsType?new SQ(this.api,this,this.fd):null;this.contextMenu=new g.YO(this.api,this,this.jc);this.kA=!1;this.gw=new g.V({D:"div",V:{tabindex:"0"}});this.ew=new g.V({D:"div",V:{tabindex:"0"}});this.tu=null;this.hD=this.Uv=!1;var c=a.Za(),d=a.T(),e=a.getVideoData();this.Qo&&(g.K(a.getRootNode(),"ytp-embed"),g.K(a.getRootNode(),"ytp-embed-playlist"),g.S(d.experiments,"embeds_enable_player_overlays_autohide")&&this.Qw&&(g.K(a.getRootNode(), "ytp-embed-overlays-autohide"),g.K(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.yA=60,this.zA=89);this.api.T().i&&(g.K(a.getRootNode(),"ytp-mobile"),this.api.T().J&&g.K(a.getRootNode(),"ytp-embed-mobile-exp"));this.Kg=e&&e.Kg;g.F(this,this.jc);HG(d)||g.oN(a,this.jc.element,4);g.F(this,this.Ls);g.oN(a,this.Ls.element,4);e=new g.V({D:"div",L:"ytp-gradient-top"});g.F(this,e);g.oN(a,e.element,1);this.DD=new g.fM(e,250,!0,100);g.F(this,this.DD);g.F(this,this.Ch);g.oN(a,this.Ch.element, 1);this.CD=new g.fM(this.Ch,250,!0,100);g.F(this,this.CD);g.F(this,this.tooltip);g.oN(a,this.tooltip.element,4);var f=new nP(a);g.F(this,f);g.oN(a,f.element,5);f.subscribe("show",function(l){b.qm(f,l)}); this.Tu.push(f);this.Vq=new oP(a,this,f);g.F(this,this.Vq);d.showBackButton&&(this.backButton=new tO(a),g.F(this,this.backButton),this.backButton.ya(this.Ch.element));this.Qo||this.Vq.ya(this.Ch.element);this.channelAvatar.ya(this.Ch.element);g.F(this,this.channelAvatar);g.F(this,this.title);this.title.ya(this.Ch.element);g.F(this,this.Cg);this.Cg.ya(this.Ch.element);this.bh=new g.aR(a,this);g.F(this,this.bh);this.bh.ya(this.Cg.element);var h=new g.uP(a,this);g.F(this,h);g.oN(a,h.element,5);h.subscribe("show", function(l){b.qm(h,l)}); this.Tu.push(h);this.shareButton=new g.tP(a,this,h);g.F(this,this.shareButton);this.shareButton.ya(this.Cg.element);this.Hg=new g.ZO(a,this);g.F(this,this.Hg);this.Hg.ya(this.Cg.element);d.Jj&&(e=new AP(a),g.F(this,e),g.oN(a,e.element,4));this.Qo&&this.Vq.ya(this.Cg.element);g.F(this,this.Nh);this.Nh.ya(this.Cg.element);e=new AO(a,this,this.Nh);g.F(this,e);e.ya(this.Cg.element);this.Qf=new kP(a,this);g.F(this,this.Qf);g.oN(a,this.Qf.element,5);this.Qf.subscribe("show",function(){b.qm(b.Qf,b.Qf.Pf())}); this.Tu.push(this.Qf);this.overflowButton=new jP(a,this,this.Qf);g.F(this,this.overflowButton);this.overflowButton.ya(this.Cg.element);this.Sf&&g.F(this,this.Sf);"3"===d.controlsType&&(e=new sP(a,this),g.F(this,e),g.oN(a,e.element,8));g.F(this,this.contextMenu);this.contextMenu.subscribe("show",this.YK,this);e=new BM(a,new sO(a));g.F(this,e);g.oN(a,e.element,4);this.gw.Ra("focus",this.LO,this);g.F(this,this.gw);this.ew.Ra("focus",this.MO,this);g.F(this,this.ew);(this.xl=d.Ac?null:new g.gP(a,c,this.contextMenu, this.fd,this.jc,this.Ls,function(){return b.Sj()}))&&g.F(this,this.xl); this.Qo||(this.lK=new yP(this.api,this),g.F(this,this.lK),g.oN(a,this.lK.element,4));this.wK=new VQ(this.api,this);g.F(this,this.wK);g.oN(a,this.wK.element,4);this.Xm.push(this.jc.element);this.N(a,"fullscreentoggled",this.Fl);this.N(a,"offlineslatestatechange",function(){b.api.Kt()&&UN(b.fd,128,!1)}); this.N(a,"cardstatechange",function(){b.Ei()}); this.N(a,"resize",this.fR);this.N(a,"showpromotooltip",this.NR)}; Xua=function(a){var b=a.api.T(),c=g.U(a.api.sb(),128);return b.l&&c&&!a.api.isFullscreen()}; cR=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Dl(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=cR(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexb)return b;for(var c=b&127,d=1;128<=b;)b=uD(a.l,a.i),++a.i,d*=128,c+=(b&127)*d;return c}; hR=function(a,b){a.B=b;var c=a.u;for(a.u=-1;a.i+1<=a.l.totalLength;){0>c&&(c=gR(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.u=c;break}c=-1;switch(e){case 0:gR(a);break;case 1:a.i+=8;break;case 2:d=gR(a);a.i+=d;break;case 5:a.i+=4}}return!1}; iR=function(a,b,c){c=void 0===c?0:c;return hR(a,b)?gR(a):c}; jR=function(a,b){var c=void 0===c?null:c;if(!hR(a,b))return c;b=gR(a);c=sD(a.l,a.i,b);a.i+=b;return c}; $ua=function(){this.i=0;this.u=void 0;this.B=[];this.l=new Uint8Array(4096);this.view=new DataView(this.l.buffer);g.A.TextEncoder&&(this.u=new TextEncoder)}; kR=function(a,b){b=a.i+b;if(!(a.l.length>=b)){for(var c=2*a.l.length;cd;d++)a.view.setUint8(a.i,c&127|128),c>>=7,a.i+=1;b=Math.floor(b/268435456)}for(kR(a,4);127>=7,a.i+=1;a.view.setUint8(a.i,b);a.i+=1}; mR=function(a,b,c){lR(a,b<<3|0);lR(a,c)}; nR=function(a,b,c){lR(a,b<<3|2);b=c.length;lR(a,b);kR(a,b);a.l.set(c,a.i);a.i+=b}; pR=function(a,b,c){c=a.u?a.u.encode(c):new Uint8Array(oR(g.Za(c)).buffer);nR(a,b,c)}; ava=function(a){lR(a,18);a.B.push(a.i);a.i+=2}; bva=function(a){var b=a.B.pop()||0,c=a.i-b-2;a.view.setUint8(b,c&127|128);a.view.setUint8(b+1,c>>7)}; qR=function(a){var b=new fR(new lD([g.xd(decodeURIComponent(a))]));a=b.Oe(2);b=iR(b,4);return{FO:b,entityType:cva[b],entityId:a}}; rR=function(a,b){var c=new $ua;pR(c,2,a);mR(c,4,dva[b]);mR(c,5,1);a=new Uint8Array(c.l.buffer,0,c.i);return encodeURIComponent(g.$d(a))}; eva=function(a){a=a.key||a.id;if(!a)throw Error("Entity key is missing");return a}; sR=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);he.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))}; fva=function(a){this.i=a;this.l={}}; tR=function(a,b,c){return cw(a.i,"EntityStore").get(b).then(function(d){if(d){if(c&&d.entityType!==c)throw Error("Incorrect entity type");return d.data}})}; uR=function(a,b,c){return c?(c=c.map(function(d){return tR(a,d,b)}),Pv.all(c)):cw(a.i,"EntityStore").index("entityType").getAll(IDBKeyRange.only(b)).then(function(d){return d.map(function(e){return e.data})})}; wR=function(a,b,c){function d(){return bw(cw(a.i,"EntityStore"),f).then(function(h){vR(a,h,c);return h})} var e=eva(b),f={key:e,entityType:c,data:b};return c?cw(a.i,"EntityStore").get(e).then(function(h){if(h&&c&&h.entityType!==c)throw Error("Incorrect entity type");}).then(d):d()}; xR=function(a,b,c){b=b.map(function(d){return wR(a,d,c)}); return Pv.all(b)}; yR=function(a,b){var c=qR(b).entityType;return cw(a.i,"EntityStore").delete(b).then(function(){vR(a,b,c)})}; gva=function(a,b){return kw(cw(a.i,"EntityStore").index("entityType"),{query:IDBKeyRange.only(b)},function(c){return c.delete().then(function(){vR(a,c.mH(),b);return c.continue()})})}; vR=function(a,b,c){var d=a.l[c];d||(d=new Set,a.l[c]=d);d.add(b)}; zR=function(){g.E.apply(this,arguments);this.i=[];if(!Iv())throw Error("Datasync ID is missing");if("undefined"===typeof BroadcastChannel)var a=null;else a=new BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+Hv()),a.onmessage=this.l.bind(this);this.channel=a}; AR=function(a,b,c){return g.D(a,function e(){var f,h,l,m,n=this;return g.z(e,function(p){if(1==p.i)return g.w(p,hva().open(),2);if(3!=p.i)return f=p.l,g.w(p,aw(f,["EntityStore"],b,function(r){h=new fva(r);return c(h)}),3); l=p.l;h&&(m=h.l,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,nva(e),2)}e.length=0;g.sa(f)})})}; nva=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){return 1==e.i?g.w(e,GR(),2):(d=e.l)?g.w(e,AR(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=Jb(m.payload),"ENTITY_MUTATION_TYPE_REPLACE"===m.type&&h.push(wR(f,m.payload[n],n)),"ENTITY_MUTATION_TYPE_DELETE"=== m.type&&h.push(yR(f,m.entityKey)))}return Pv.all(h)}),0):e.return()})})}; pva=function(a){return void 0!==a}; qva=function(a,b){var c={};c=void 0===c?{}:c;g.D(this,function e(){return g.z(e,function(f){if("locks"in navigator)return f.return(navigator.locks.request(a,c,function(h){return b(h)})); throw Error("Web lock is not supported.");})})}; HR=function(a,b){g.Ux(Error("Woffle: "+a));b instanceof Error&&g.Ux(b)}; IR=function(){}; JR=function(){}; KR=function(a){if(a.includes(":"))throw Error("Invalid user cache name: "+a);return a+":"+Hv("CacheStorage get")}; rva=function(){return g.D(this,function b(){var c=this,d;return g.z(b,function(e){d=c;if(void 0!==LR)return e.return(LR);LR=new Promise(function(f){return g.D(d,function l(){var m;return g.z(l,function(n){switch(n.i){case 1:return ta(n,2),g.w(n,MR.open("test-only"),4);case 4:return g.w(n,MR.delete("test-only"),5);case 5:ua(n,3);break;case 2:if(m=va(n),m instanceof Error&&"SecurityError"===m.name)return f(!1),n.return();case 3:f("caches"in window),g.sa(n)}})})}); return e.return(LR)})})}; OR=function(){return g.D(this,function b(){return g.z(b,function(c){if(1==c.i)return g.w(c,rva(),2);if(!c.l)return c.return(void 0);NR||(NR=new JR);return c.return(NR)})})}; sva=function(){return g.D(this,function b(){var c;return g.z(b,function(d){return 1==d.i?g.w(d,OR(),2):(c=d.l)?d.return(c.delete("yt-player-local-img")):d.return(!0)})})}; tva=function(a){return g.D(this,function c(){var d,e;return g.z(c,function(f){if(1==f.i)return g.w(f,OR(),2);if(3!=f.i){d=f.l;if(!d)throw Error("Cache API not supported");return a.length?g.w(f,d.open("yt-player-local-img"),3):f.return()}e=f.l;return g.w(f,Promise.all(a.map(function(h){return e.delete(h)})),0)})})}; uva=function(a){return g.D(this,function c(){var d,e;return g.z(c,function(f){if(1==f.i)return g.w(f,OR(),2);if(3!=f.i){d=f.l;if(!d)throw Error("Cache API not supported");return a.length?g.w(f,d.open("yt-player-local-img"),3):f.return()}e=f.l;return g.w(f,e.addAll(a),0)})})}; PR=function(a){g.Bv("offlineTransferStatusChanged",a)}; vva=function(a){switch(a){case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":return"OFFLINE_DATABASE_ERROR";case "TRANSFER_FAILURE_REASON_PLAYABILITY":return"NOT_PLAYABLE";case "TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES":return"TOO_MANY_RETRIES";case "TRANSFER_FAILURE_REASON_INTERNAL":return"OFFLINE_DOWNLOAD_CONTROLLER_ERROR";case "TRANSFER_FAILURE_REASON_STREAM_MISSING":return"STREAM_VERIFICATION_FAILED";case "TRANSFER_FAILURE_REASON_SERVER":case "TRANSFER_FAILURE_REASON_SERVER_PROPERTY_MISSING":return"OFFLINE_REQUEST_FAILURE"; case "TRANSFER_FAILURE_REASON_NETWORK":return"OFFLINE_NETWORK_ERROR";default:return"UNKNOWN_FAILURE_REASON"}}; QR=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)}; RR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===a.actionType&&!!a.entityKey}; SR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"===a.actionType&&!!a.entityKey}; zva=function(a,b,c){return g.D(this,function e(){var f,h,l,m,n,p,r,t,u,x,y,B,G,H,I,M,L,da;return g.z(e,function(Ba){switch(Ba.i){case 1:return f=rR(a,"ytMainVideoEntity"),h=rR(a,"ytMainChannelEntity"),l=rR(a,"transfer"),g.w(Ba,AR(b,"readonly",function(za){return Pv.all([tR(za,f,"ytMainVideoEntity"),tR(za,h,"ytMainChannelEntity"),tR(za,l,"transfer"),uR(za,"ytMainChannelEntity"),uR(za,"offlineOrchestrationActionWrapperEntity")])}),2); case 2:m=Ba.l;n=g.q(m);p=n.next().value;r=n.next().value;t=n.next().value;u=n.next().value;x=n.next().value;if(!p&&!r){Ba.ub(3);break}y=p?TR(p.thumbnail):[];if(!r){B=[];Ba.ub(4);break}return g.w(Ba,wva(r,u),5);case 5:B=Ba.l;case 4:return G=B,g.w(Ba,tva(y.concat(G)),3);case 3:H=[rR(a,"ytMainDownloadedVideoEntity"),f,h,rR(a,"playbackData"),l,rR(a,"offlineVideoPolicy"),rR(a,"offlineVideoStreams")];I=g.q(x);for(M=I.next();!M.done;M=I.next())L=M.value,da=qR(L.key).entityId,da!==a||xva(c,L.actionProto)|| H.push(L.key);return g.w(Ba,AR(b,"readwrite",function(za){return Pv.all(H.map(function(ed){return yR(za,ed)})).then(function(){return m})}),7); case 7:yva(t),g.sa(Ba)}})})}; Bva=function(a,b){return g.D(this,function d(){var e,f,h,l;return g.z(d,function(m){if(1==m.i)return g.w(m,AR(a,"readwrite",function(n){var p=uR(n,"transfer"),r=uR(n,"offlineOrchestrationActionWrapperEntity");return Pv.all([p,r]).then(function(t){t=g.q(t);var u=t.next().value,x=t.next().value;t=Ava.map(function(H){return gva(n,H)}); x=g.q(x);for(var y=x.next();!y.done;y=x.next()){y=y.value;var B="ytMainDownloadedVideoEntity"===qR(y.actionProto.entityKey).entityType,G="OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===y.actionProto.actionType;xva(b,y.actionProto)||B&&(!B||G)||t.push(yR(n,y.key))}return Pv.all(t).then(function(){return u})})}),2); e=m.l;f=g.q(e);for(h=f.next();!h.done;h=f.next())l=h.value,yva(l);return g.w(m,sva(),0)})})}; xva=function(a,b){return a.actionType===b.actionType&&a.entityKey===b.entityKey}; yva=function(a){if(a&&"TRANSFER_STATE_COMPLETE"!==a.transferState&&"TRANSFER_STATE_FAILED"!==a.transferState){var b=qR(a.key).entityId;PR({encryptedVideoId:b,cotn:a.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_BY_USER",statusType:"CANCELLED"})}}; TR=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}; wva=function(a,b){return g.D(this,function d(){var e,f,h,l,m,n,p,r;return g.z(d,function(t){e=TR(a.avatar);f=g.q(b);for(h=f.next();!h.done;h=f.next())if(l=h.value,l.id!==a.id)for(m=g.q(TR(l.avatar)),n=m.next();!n.done;n=m.next())p=n.value,r=e.indexOf(p),-1!==r&&e.splice(r,1);return t.return(e)})})}; UR=function(a){this.i=a}; VR=function(a,b,c){this.status=a;this.i=b;this.l=c}; WR=function(a,b){this.i=a;this.u=b}; Eva=function(a,b){var c,d;return g.D(a,function f(){var h,l,m=this,n;return g.z(f,function(p){switch(p.i){case 1:return h=b.entityKey,l=null===(d=null===(c=b.actionMetadata)||void 0===c?void 0:c.playbackDataActionMetadata)||void 0===d?void 0:d.isEnqueuedForExpiredStreamUrlRefetch,ta(p,2),g.w(p,Cva(m,h,{isEnqueuedForExpiredStreamUrlRefetch:l}),4);case 4:return(n=p.l)?g.w(p,Dva(m,n,b),5):p.return(YR(b,!1));case 5:return p.return(YR(b,!0,n.orchestrationActions));case 2:return va(p),HR("PDE handleAdd error"), p.return(YR(b,!1))}})})}; Fva=function(a,b){return g.D(a,function d(){var e,f=this,h,l,m,n,p,r;return g.z(d,function(t){switch(t.i){case 1:return e=b.entityKey,g.w(t,AR(f.i,"readonly",function(u){var x=tR(u,e,"playbackData");u=tR(u,rR(qR(b.entityKey).entityId,"offlineVideoPolicy"),"offlineVideoPolicy");return Pv.all([x,u])}),2); case 2:h=t.l;l=g.q(h);m=l.next().value;n=l.next().value;if(!m||!n)return t.return(YR(b,!0));p={lastPlayerResponseTimestampSeconds:m.playerResponseTimestamp,offlineToken:n.offlineToken};ta(t,3);return g.w(t,Cva(f,e,{refreshData:p}),5);case 5:return(r=t.l)?g.w(t,Dva(f,r,b),6):t.return(YR(b,!1));case 6:return t.return(YR(b,!0,r.orchestrationActions));case 3:return va(t),t.return(YR(b,!1))}})})}; Cva=function(a,b,c){return g.D(a,function e(){var f,h=this,l,m;return g.z(e,function(n){f=g.TM();var p=h.u,r=c.refreshData,t=c.isEnqueuedForExpiredStreamUrlRefetch,u={entityKey:b};r&&(u.refreshData=r);t&&(u.isExpiredStreamUrlRefetch=t);l={context:ksa(p),signatureTimestamp:18802,videos:[u]};m=g.EM(Gva);return n.return(g.ZK(f,l,m))})})}; Dva=function(a,b,c){return g.D(a,function e(){var f,h=this;return g.z(e,function(l){if(1==l.i){if(!b.frameworkUpdates||!b.frameworkUpdates.entityBatchUpdate)return l.return();if(!(b.frameworkUpdates.entityBatchUpdate.mutations&&0e.retryScheduleIndex&&bwa(d.l,[e]);n.ub(5);break;case 6:return g.w(n,fS(d),0)}})})}; hwa=function(a,b,c){var d;return g.D(a,function f(){var h=this,l,m;return g.z(f,function(n){if(1==n.i){l=h;if("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS"===c.status)return m=null===(d=c.l)||void 0===d?void 0:d.map(function(p){return l.createAction(p,b)}),$va(b,c,m),g.w(n,AR(h.i,"readwrite",function(p){var r=[]; if(m){var t=m.map(function(u){return bS(u)}); r.push(xR(p,t,"offlineOrchestrationActionWrapperEntity"))}t=bS(b);r.push(yR(p,t.key));return Pv.all(r)}),9); if("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE"!==c.status)return n.ub(0);$va(b,c);if(c.i&&3>b.retryScheduleIndex+1)return g.w(n,iwa(h,b),0);HR("Orchestration result is not retryable, deleting action");return g.w(n,kva(h.i,bS(b).key),0)}dS(b,4);g.sa(n)})})}; CS=function(a,b){return g.D(a,function d(){var e=this,f,h,l,m,n,p,r,t,u,x,y,B;return g.z(d,function(G){f=[];h=Infinity;l=4E3;m=g.q(b);for(n=m.next();!n.done;n=m.next())p=n.value,r=Number(p.enqueueTimeSec),t=jwa(r),u=p.retryScheduleIndex,x=null!=u&&0c.retryScheduleIndex&&bwa(a.l,[c])})}; mwa=function(a,b){return g.D(a,function d(){var e=this,f;return g.z(d,function(h){if(1==h.i)return g.w(h,ER(e.i,"offlineOrchestrationActionWrapperEntity",b),2);f=h.l;return h.return(f.filter(pva))})})}; nwa=function(a,b){if(0===b.length)return Promise.resolve([]);b=b.map(function(c){return bS(c)}); return jva(a.i,b)}; owa=function(a){this.api=a;this.i=void 0}; qwa=function(a,b){return g.D(a,function d(){var e=this,f,h,l,m,n;return g.z(d,function(p){f=e;h=b.videoId;l=e.api.T();m=!0;if(b.captionTracks.length)e.i=new g.DN(e.api.T(),b,e.api.getAudioTrack());else if(b.Ac)n=g.cna(b),e.i=new g.FN(b.Ac,h,n,b.uj,l),m=b.uj;else return p.return();return p.return(new Promise(function(r){var t;null===(t=f.i)||void 0===t?void 0:t.Qq(function(){return g.D(f,function x(){var y=this;return g.z(x,function(B){if(1==B.i)return g.w(B,pwa(y,h,m),2);r();g.sa(B)})})})}))})})}; pwa=function(a,b,c){c=void 0===c?!0:c;return g.D(a,function e(){var f=this,h,l,m,n,p,r,t,u,x,y,B,G;return g.z(e,function(H){switch(H.i){case 1:if(!f.i)return H.return();h=[];l=g.AN(f.i.l,c);m=[];n={};p=g.q(l.entries());for(r=p.next();!r.done;n={Oy:n.Oy},r=p.next())t=r.value,u=g.q(t),n.Oy=u.next().value,x=u.next().value,y=f.i.Mo(x,"json3"),B=g.ah(g.Us(y,{withCredentials:!0},3,500).then(function(I){return function(M){M={metadata:g.aH(l[I.Oy]),trackData:M.xhr.responseText};m.push(M)}}(n)),function(I){HR("Caption fetch error", I)}),h.push(B); return g.w(H,Xg(h),2);case 2:return ta(H,3),g.w(H,Ela(b,m),5);case 5:ua(H,0);break;case 3:G=va(H),HR("Caption DB transaction error",G),g.sa(H)}})})}; rwa=function(){this.tag="woffle"}; NS=function(a,b,c,d){this.api=a;this.player=b;this.B=c;this.i=d;this.logger=new rwa;this.l=!1;a={};px(this.player,(a.localmediachange=this.G,a.signatureexpired=this.tC,a.statechange=this.C,a),this)}; swa=function(a){return g.D(this,function c(){return g.z(c,function(d){return d.return(Jla(a))})})}; PS=function(a,b){var c=VG(b);if(1===c||0===c)return Promise.resolve();(c=a.player.getVideoData().videoId===b?a.player:null)&&c.l&&(c=c.l,c.audioTrack.B.u=null,c.videoTrack.B.u=null,c.policy.i="");a.u=0;return swa(b)}; twa=function(){switch(g.Am(g.Xu).get("lmqf")){case "HD_1080":return"hd1080";case "HD":return"hd720";case "SD":return"large";case "LD":return"tiny";default:return"hd720"}}; QS=function(a){g.E.call(this);this.i=a;this.l=BR(this.i,this.u.bind(this))}; uwa=function(a,b){return g.D(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 rR(u,"transfer")}); return g.w(t,ER(f.i,"transfer",e),2);case 2:h=t.l;l=h.filter(pva).map(function(u){return qR(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.ub(5);break}r=p.value;return g.w(t,swa(r),4);case 4:p=n.next();t.ub(3);break;case 5:return t.return(m)}})})}; vwa=function(a,b,c,d,e,f){return g.D(this,function l(){var m,n,p;return g.z(l,function(r){m="STREAM_TYPE_UNKNOWN";c.video&&c.audio?(m="STREAM_TYPE_AUDIO_AND_VIDEO",HR("unexpected stream type")):c.video&&!c.audio?m="STREAM_TYPE_VIDEO":!c.video&&c.audio&&(m="STREAM_TYPE_AUDIO");n=rR(b,"offlineVideoStreams");p={numBytesDownloaded:e.toFixed(),numTotalBytes:f.toFixed(),streamType:m,streamState:"DOWNLOAD_STREAM_STATE_IN_PROGRESS",formatStreamBytes:JSON.stringify(d),itag:"STREAM_TYPE_AUDIO_AND_VIDEO"=== m?Number(c.kc()):void 0};return g.w(r,AR(a,"readwrite",function(t){return tR(t,n,"offlineVideoStreams").then(function(u){if(u&&u.streamsProgress){var x=u;a:{var y=d.itag+";"+d.xtags;for(var B=u.streamsProgress,G=0;G(a.transferRetryCount||0);b&&(a.transferRetryCount=(a.transferRetryCount||0)+1);return b}; XS=function(a,b){b=void 0===b?"TRANSFER_FAILURE_REASON_UNKNOWN":b;return g.D(a,function d(){var e=this,f;return g.z(d,function(h){if(1==h.i)return g.w(h,WS(e,"TRANSFER_STATE_FAILED","DOWNLOAD_STREAM_STATE_ERROR_STREAMS_MISSING",b),2);f=qR(e.i.key).entityId;var l=b,m={encryptedVideoId:f,cotn:e.i.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_WITH_FAILURE",statusType:"FAILED"};l&&(m.transferFailureReason=l,m.failureReason=vva(l));PR(m);g.sa(h)})})}; WS=function(a,b,c,d){return g.D(a,function f(){var h=this,l;return g.z(f,function(m){l=h;h.i.transferState=b;h.i.failureReason=d;return g.w(m,Iwa(h,function(n){return c?uR(n,"offlineVideoStreams",l.i.offlineVideoStreams).then(function(p){for(var r=g.q(p),t=r.next();!t.done;t=r.next())if((t=t.value)&&t.streamsProgress){t=g.q(t.streamsProgress);for(var u=t.next();!u.done;u=t.next())u.value.streamState=c}return xR(n,p.filter(function(x){return!!x}),"offlineVideoStreams")}):Pv.resolve(void 0)}),0)})})}; Iwa=function(a,b){return g.D(a,function d(){var e=this,f;return g.z(d,function(h){if(!e.i)return h.return();f=e.i;return g.w(h,AR(e.l,"readwrite",function(l){var m=[wR(l,f,"transfer")];b&&m.push(b(l));return Pv.all(m)}),0)})})}; TS=function(a){a.i=void 0;a.u=void 0}; Bwa=function(a,b){return g.D(a,function d(){var e,f,h,l=this,m;return g.z(d,function(n){if(1==n.i)return e=qR(b.key),f=e.entityId,h=rR(f,"playbackData"),g.w(n,DR(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");})})}; Dwa=function(a){return void 0!==YS[a.transferState]}; Ewa=function(a,b){var c=YS[a.transferState],d=YS[b.transferState];return c!==d?c-d:Number(a.enqueuedTimestampMs)-Number(b.enqueuedTimestampMs)}; Kwa=function(a,b,c,d){this.C=a;this.api=b;this.player=c;this.G=d;this.u=new Ow;this.B=!1;this.l=new cr;Jwa(this)}; Jwa=function(a){var b=Hv("OfflineManager");qva("woffle_orchestration_leader:"+b,function(){return Lwa(a)})}; Lwa=function(a){return g.D(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i){d.J=new cr;d.B=!0;d.api.Na("onOrchestrationBecameLeader");d.i&&d.K||Mwa(d).then(d.l.resolve).catch(d.l.reject);var f=d.l.promise;return g.w(e,f,2)}return g.w(e,d.J.promise,0)})})}; Mwa=function(a){return g.D(a,function c(){var d,e=this,f,h;return g.z(c,function(l){if(1==l.i)return g.w(l,GR(),2);if(3!=l.i){d=l.l;if(!d)return HR("PES is undefined"),l.return();e.i=new RS(d,e.api,e.player,e.G);f={};h=(f.ytMainDownloadedVideoEntity=new $R(d),f.playbackData=new WR(d,e.C),f.transfer=new ZR(d),f);return g.w(l,gwa(d,h),3)}e.K=l.l;return g.w(l,Nwa(e),0)})})}; Nwa=function(a){return g.D(a,function c(){var d=this,e;return g.z(c,function(f){if(1==f.i)return e=d,d.i?g.w(f,SS(d.i),2):(HR("transferManager is undefined"),f.return());if(3!=f.i)return g.w(f,Owa(d),3);d.U=ns(function(){Owa(e)},9E5); bu(eu(),function(){e.i&&xwa(e.i)}); g.sa(f)})})}; Pwa=function(a,b){return g.D(a,function d(){var e=this;return g.z(d,function(f){return f.return(e.uu(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"))})})}; Qwa=function(a,b){return g.D(a,function d(){var e=this;return g.z(d,function(f){return f.return(e.uu(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})})}; Rwa=function(a){return g.D(a,function c(){var d,e,f;return g.z(c,function(h){if(1==h.i)return g.w(h,GR(),2);if(3!=h.i)return(d=h.l)?g.w(h,ER(d,"transfer"),3):h.return([]);e=h.l;f=e.map(function(l){return qR(l.key).entityId}); return h.return(f)})})}; Owa=function(a){return g.D(a,function c(){var d=this,e,f,h,l,m,n,p,r;return g.z(c,function(t){if(1==t.i)return d.u.Vi()?g.w(t,GR(),2):t.return(Swa(d));if(3!=t.i){e=t.l;if(!e)return t.return();f=Date.now()/1E3;return g.w(t,ER(e,"offlineVideoPolicy"),3)}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=qR(p.key).entityId,l.push(r));return l.length?g.w(t,Qwa(d,l),0):t.ub(0)})})}; Swa=function(a){return g.D(a,function c(){var d,e,f,h,l,m;return g.z(c,function(n){switch(n.i){case 1:return g.w(n,GR(),2);case 2:d=n.l;if(!d)return n.return();e=Date.now()/1E3;return g.w(n,ER(d,"offlineVideoPolicy"),3);case 3:f=n.l,h=g.q(f),l=h.next();case 4:if(l.done){n.ub(0);break}m=l.value;if(!(m.expirationTimestamp&&Number(m.expirationTimestamp)a;a++){var b=g.ng("VIDEO");b.load();ZS.push(new g.TN(b))}}; Wwa=function(){this.l=200;this.i=12}; Xwa=function(a){var b=new Wwa;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.$S=function(a,b,c,d){d=void 0===d?!1:d;wK.call(this);this.i=a;this.start=b;this.end=c;this.B=d}; Ywa=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";c=f.u;if(b.jl()>d/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.i&&((b=b.md())&&b.isView()&&(b=b.i),b&&b.Ko().length>a.i&&g.JH(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.JH(f)&&g.JH(e))return"content-protection";a=c.i[0].audio; e=e.u.i[0].audio;return a.sampleRate===e.sampleRate||g.aj?(a.i||2)!==(e.i||2)?"channel-count":null:"sample-rate"}; aT=function(){var a=this;this.i=this.l=haa;this.promise=new Ng(function(b,c){a.l=b;a.i=c})}; bT=function(a,b,c,d){g.E.call(this);var e=this;this.policy=a;this.i=b;this.l=c;this.B=this.u=null;this.G=-1;this.J=!1;this.C=new aT;this.pj=d-1E3*b.Lc();this.C.then(void 0,function(){}); this.timeout=new g.J(function(){e.re("timeout")},1E4); g.F(this,this.timeout);this.K=isFinite(d);this.status={status:0,error:null};this.ea()}; cxa=function(a){return g.D(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.ea();d.timeout.start();f=g.cT.Ju("gtfta");return g.w(x,d.C,2)}g.cT.Ss(f);h=d.i.md();if(h.ck())return d.re("ended_in_finishTransition"),x.return(Promise.reject(Error(d.status.error||"")));if(!d.B||!tE(d.B))return d.re("next_mse_closed"),x.return(Promise.reject(Error(d.status.error||"")));if(d.l.mediaSource!== d.B)return d.re("next_mse_mismatch"),x.return(Promise.reject(Error(d.status.error||"")));l=Zwa(d);m=l.BI;n=l.FG;p=l.AI;d.i.yg(!1,!0);r=$wa(h,m,p,!d.l.getVideoData().isAd());dT(d.l,r);d.K&&(d.l.seekTo(d.l.getCurrentTime()+.001,{Ct:!0,BD:3,ke:"gapless_pseudo"}),r.play()||Xs());t=h.Cb();t.cpn=d.i.getVideoData().clientPlaybackNonce;t.st=""+m;t.et=""+p;d.l.Ja("gapless",g.nE(t));d.i.Ja("gaplessTo",d.l.getVideoData().clientPlaybackNonce);u=d.i.getPlayerType()===d.l.getPlayerType();axa(d.i,n,!1,u,d.l.getVideoData().clientPlaybackNonce); axa(d.l,d.l.getCurrentTime(),!0,u,d.i.getVideoData().clientPlaybackNonce);g.Ig(function(){!e.l.getVideoData().Ya&&g.HK(e.l.getPlayerState())&&bxa(e.l)}); eT(d,6);d.dispose();return x.return(Promise.resolve())})})}; fxa=function(a){if(a.l.getVideoData().u){fT(a.l,a.B);eT(a,3);dxa(a);var b=exa(a),c=b.kK;b=b.qU;c.subscribe("updateend",a.Xp,a);b.subscribe("updateend",a.Xp,a);a.Xp(c);a.Xp(b)}}; dxa=function(a){a.i.unsubscribe("internalvideodatachange",a.Sn,a);a.l.unsubscribe("internalvideodatachange",a.Sn,a);a.i.unsubscribe("mediasourceattached",a.Sn,a);a.l.unsubscribe("statechange",a.Dc,a)}; $wa=function(a,b,c,d){a=a.isView()?a.i:a;return new g.$S(a,b,c,d)}; eT=function(a,b){a.ea();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.C.resolve(void 0))}; Zwa=function(a){var b=a.i.md();b=b.isView()?b.start:0;var c=a.i.getVideoData().isLivePlayback?Infinity:gT(a.i,!0);c=Math.min(a.pj/1E3,c)+b;var d=a.K?100:0;a=c-a.l.jl()+d;return{qO:b,BI:a,FG:c,AI:Infinity}}; exa=function(a){return{kK:a.u.i.jd,qU:a.u.l.jd}}; hT=function(a){g.E.call(this);var b=this;this.api=a;this.C=this.i=this.l=null;this.J=!1;this.B=null;this.K=Xwa(this.api.T());this.u=null;this.G=function(){g.Ig(function(){gxa(b)})}}; hxa=function(a,b,c,d){d=void 0===d?0:d;a.ea();a.Mq()||iT(a);a.B=new aT;a.l=b;var e=c,f=a.api.Kc(),h=f.getVideoData().isLivePlayback?Infinity:1E3*gT(f,!0);e>h&&(e=h-a.K.l,a.J=!0);f.getCurrentTime()>=e/1E3?a.G():(a.i=f,f=e,e=a.i,a.api.addEventListener(g.Iz("vqueued"),a.G),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.C=new g.Fz(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,gT(a.i,!0)),l=Math.max(0,f-a.i.getCurrentTime()),h=Math.min(d,gT(b)+l));f=cka(e,h)||d;f!==d&&a.l.Ja("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.l;if(e=a.api.Kc())d.Jb=e;d.getVideoData().Kb=!0;d.getVideoData().Ua=!0;VS(d,!0);e="";a.i&&(e=g.jT(a.i.C.l),f=a.i.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.Ja("queued",e);0!==b&&d.seekTo(b+.01,{Ct:!0,BD:3,ke:"videoqueuer_queued"});a.u=new bT(a.K,a.api.Kc(),a.l,c);c=a.u;c.ea();Infinity!==c.status.status&&(eT(c, 1),c.i.subscribe("internalvideodatachange",c.Sn,c),c.l.subscribe("internalvideodatachange",c.Sn,c),c.i.subscribe("mediasourceattached",c.Sn,c),c.l.subscribe("statechange",c.Dc,c),c.i.subscribe("newelementrequired",c.dJ,c),c.Sn());return a.B}; gxa=function(a){g.D(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.ea();if(!d.B||!d.l)return d.ea(),m.return();d.J&&kT(d.api.Kc(),!0,!1);f=null;if(!d.u){m.ub(2);break}ta(m,3);return g.w(m,cxa(d.u),5);case 5:ua(m,2);break;case 3:f=h=va(m);case 2:return d.api.Pv(d.l),g.cT.PC("vqsp",function(){e.api.jj(e.l.getPlayerType())}),g.cT.PC("vqpv",function(){e.api.playVideo()}),f&&ixa(d.l,f.message),l=d.B,iT(d),m.return(l.resolve(void 0))}})})}; iT=function(a){if(a.i){var b=a.i;a.api.removeEventListener(g.Iz("vqueued"),a.G);b.removeCueRange(a.C);a.i=null;a.C=null}a.u&&(a.u.isFinished()||(b=a.u,Infinity!==b.status.status&&b.re("Canceled")),a.u=null);a.B=null;a.l=null;a.J=!1}; jxa=function(){var a=Ht();return!(!a||"visible"===a)}; lxa=function(a){var b=kxa();b&&document.addEventListener(b,a,!1)}; mxa=function(a){var b=kxa();b&&document.removeEventListener(b,a,!1)}; kxa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Gt+"VisibilityState"])return"";a=Gt+"visibilitychange"}return a}; lT=function(){g.Q.call(this);var a=this;this.fullscreen=0;this.l=this.pictureInPicture=this.i=this.u=this.inline=!1;this.B=function(){a.Fe()}; lxa(this.B);this.C=this.getVisibilityState(this.zf(),this.isFullscreen(),this.Ce(),this.isInline(),this.Lq(),this.Jq())}; nxa=function(a){this.end=this.start=a}; g.oT=function(a,b,c){g.E.call(this);var d=this;this.api=a;this.l=b;this.i=c;this.Ea=new Map;this.Pa=new Map;this.C=new Map;this.G=[];this.B=[];this.Va=NaN;this.Aa=this.ma=null;this.Ua=new g.J(function(){mT(d,d.Va)}); this.events=new g.qN(this);this.isLiveNow=!0;this.bb=g.T(this.l.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.J=new g.J(function(){d.K=!0;d.i.Ja("sdai","aftimeout."+d.bb.toString());nT(d,!1);d.xa=!1},this.bb); this.K=!1;this.va=new Map;this.La=[];this.Y=null;this.X=[];this.jb=[];this.eb=[];this.u=void 0;this.Ya=0;this.Ga=!0;this.xa=this.U=!1;this.Da=[];this.i.getPlayerType();oxa(this.i,this);g.F(this,this.Ua);g.F(this,this.events);g.F(this,this.J);this.events.N(this.api,g.Iz("serverstitchedcuerange"),this.yd);this.events.N(this.api,g.Jz("serverstitchedcuerange"),this.bf)}; rxa=function(a,b,c,d,e,f,h){var l=pxa(a,e,e+d);a.K&&a.i.Ja("sdai","adaftto");var m=g.S(a.l.experiments,"web_player_ssdai_reject_invalid_ads_killswitch"),n=a.i;f=void 0===f?e+d:f;e===f&&!d&&a.l.Z("html5_allow_zero_duration_ads_on_timeline")&&a.i.Ja("sdai","attl0d");if(e>f&&(a.wd("Invalid playback enterTimeMs="+e+" is greater than parentReturnTimeMs="+f),m))return"";var p=1E3*n.getMinSeekableTime();if(en&&(a.wd("Invalid playback parentReturnTimeMs="+f+" is greater than parentDurationMs="+n),m))return"";n=null;p=g.q(a.B);for(var r=p.next();!r.done;r=p.next()){r=r.value;if(e>=r.Ic&&er.Ic&&(a.wd("Overlapping child playbacks not allowed. New playback {video_id="+(b.video_id+" enterTimeMs="+ e+" parentReturnTimeMs="+f+"} overlaps existing ChildPlayback "+pT(r))),m)||f===r.Ic&&(a.wd("Neighboring child playbacks must be added sequentially. New playback {video_id="+(b.video_id+" enterTimeMs="+e+" parentReturnTimeMs="+f+"} added after existing ChildPlayback "+pT(r))),m))return"";e===r.pd&&(n=r)}if(l&&n)for(m=g.q(a.X.entries()),p=m.next();!p.done;p=m.next()){if(p=g.q(p.value),r=p.next().value,p.next().value.identifier===l.identifier){a.X.splice(r,1);break}}else if(l&&g.S(a.l.experiments,"web_player_ss_timeout_skip_ads"))return a.i.Ja("sdai", "rejectAttl"),h&&!sn(a.eb,function(t){return t===h})&&(a.i.Ja("sdai","rejectAdBreakAttl"),a.eb.push(h)),""; l="childplayback_"+qxa++;m=b.raw_player_response;m||g.S(a.l.experiments,"web_player_parse_ad_response_killswitch")||(p=b.player_response)&&(m=JSON.parse(p));b.cpn||(b.cpn=zx());p=b.cpn;b=new g.rH(a.l,b);b.Wc=l;c={Wc:l,playerType:c,durationMs:d,Ic:e,pd:f,playerResponse:m,cpn:p,videoData:b};a.B=a.B.concat(c).sort(function(t,u){return t.Ic-u.Ic}); h?c.Mi=h:n?c.Mi=n.Mi:c.Mi=c.cpn;a.J.isActive()&&(a.K=!1,a.J.stop(),nT(a,!0));a.ea();return l}; sxa=function(a,b){return new g.Fz(a,b,{namespace:"serverstitchedcuerange",priority:7})}; txa=function(a,b,c){var d=a.U,e={cpn:a.i.getVideoData().clientPlaybackNonce,durationMs:0,Ic:0,playerType:1,pd:0,videoData:a.i.getVideoData()};if(b.isAd&&c.isAd){e=a.B.find(function(h){return h.cpn===b.adCpn}); var f=a.B.find(function(h){return h.cpn===c.adCpn}); f&&e&&(a.api.W("serverstitchedvideochange",e.Wc),qT(a.i,f,e,c.Ql,b.Ql,d))}else!b.isAd&&c.isAd?(a.api.W("serverstitchedvideochange"),f=c.Td,a.Ya=f.end-f.start,(f=a.B.find(function(h){return h.cpn===c.adCpn}))&&qT(a.i,f,e,c.Ql,b.Ql,d)):b.isAd&&!c.isAd&&(f=a.B.find(function(h){return h.cpn===b.adCpn}))&&(a.api.W("serverstitchedvideochange",f.Wc),a.Ya=0,qT(a.i,e,f,c.Ql,b.Ql,d))}; rT=function(a,b,c){c=void 0===c?0:c;var d=0;a=g.q(a.B);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.Ic/1E3+d,h=f+e.durationMs/1E3;if(f>b+c)break;if(h>b)return{Xk:e,Zo:b-d};d=h-e.pd/1E3}return{Xk:void 0,Zo:b-d}}; sT=function(a,b){var c=uxa(a,b);if(c)return a.B.find(function(d){return d.cpn===a.C.get(c)})}; uxa=function(a,b){a=g.q(a.C.keys());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c}; mT=function(a,b){var c=a.Aa||a.api.Kc().getPlayerState();tT(a,!0);var d=b;g.S(a.l.experiments,"web_player_ssdai_seek_without_offset_killswitch")&&(d=rT(a,b).Zo);a.i.seekTo(d);a=a.api.Kc();b=a.getPlayerState();g.HK(c)&&!g.HK(b)?a.playVideo():g.U(c,4)&&!g.U(b,4)&&a.pauseVideo()}; tT=function(a,b){a.Va=NaN;a.Ua.stop();a.ma&&b&&uT(a.ma);a.Aa=null;a.ma=null}; vT=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.ea();for(var d=b,e=c,f=[],h=g.q(a.B),l=h.next();!l.done;l=h.next())l=l.value,(l.Ice)&&f.push(l);a.B=f;d=b;e=c;f=g.q(a.C.keys());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.i.removeCueRange(h),a.C.delete(h));d=rT(a,b/1E3);b=d.Xk;d=d.Zo;b&&(d=1E3*d-b.Ic,e=b.Ic+d,a.ea(),b.durationMs=d,b.pd=e,vxa(a,b));(b=rT(a,c/1E3).Xk)&&a.wd("Invalid clearEndTimeMs="+c+" that falls during "+pT(b)+".Child playbacks can only have duration updated not their start.")}; vxa=function(a,b){for(var c=null,d=g.q(a.C),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.G);for(d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Ic+b.durationMs:d.end===c.start&&(d.end=b.Ic);c.start=b.Ic;c.end=b.Ic+b.durationMs}}; pT=function(a){var b;return"playback={timelinePlaybackId="+a.Wc+" video_id="+(null===(b=a.videoData)||void 0===b?void 0:b.videoId)+" durationMs="+a.durationMs+" enterTimeMs="+a.Ic+" parentReturnTimeMs="+a.pd+"}"}; wxa=function(a,b,c){c=a.va.get(c);c||(c=0,a.l.Z("web_player_ss_media_time_offset")&&(c=0===a.i.getStreamTimeOffset()?a.i.Lc():a.i.getStreamTimeOffset()),c=rT(a,b+c,1).Xk);return c}; xxa=function(a,b,c,d){var e,f;if(3===d)return"";if(!g.S(a.l.experiments,"html5_ssdai_use_cached_daistate_killswitch")){if(1===d&&a.Ea.has(b))return a.Ea.get(b);if(2===d&&a.Pa.has(b))return a.Pa.get(b)}d=null===(f=null===(e=a.i.getVideoData().i.i[c])||void 0===e?void 0:e.index)||void 0===f?void 0:f.getStitchedVideoInfo(b);return d?d.i:(a.i.Ja("sdai","gdu.nodaist.seg."+b+".itag."+c),"")}; wT=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;yxa(a,c,f)}else if(e.start>=b&&e.startc)e.start=c;else if(e.end>b&&e.end<=c&&e.start=b&&e.end<=c){a.i.removeCueRange(e);a.Da.includes(e)&&a.bf(e);a.G.splice(d,1);continue}d++}else yxa(a,b,c)}; yxa=function(a,b,c){b=sxa(b,c);c=!0;g.Bb(a.G,b,function(h,l){return h.start-l.start}); for(var d=0;d=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.i.removeCueRange(e):c=!1;a.G.splice(d,1);continue}}d++}c&&a.i.addCueRange(b)}; xT=function(a,b,c){if(void 0===c||!c){c=g.q(a.La);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.La.push(new nxa(b))}}; g.zxa=function(a,b){a=g.q(a.La);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1}; Axa=function(a,b){var c=[];a=g.q(a.B);for(var d=a.next();!d.done;d=a.next())d=d.value,d.Mi===b&&d.cpn&&c.push(d.cpn);return c}; Bxa=function(a,b){var c,d=[];a=g.q(a.B);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=null===(c=e.videoData)||void 0===c?void 0:c.videoId;e.Mi===b&&f&&d.push(f)}return d}; pxa=function(a,b,c){if(a.X.length)for(var d={},e=g.q(a.X),f=e.next();!f.done;d={Bn:d.Bn},f=e.next()){d.Bn=f.value;f=1E3*d.Bn.startSecs;var h=1E3*d.Bn.durationSecs+f;if(b>f&&bf&&cf)return a.wd("e.enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3)),"";var l=1E3*h.getMinSeekableTime();if(el)return h="e.returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+l+". And timestampOffset in seconds is "+h.Lc(),a.wd(h),"";l=null; for(var m=g.q(a.i),n=m.next();!n.done;n=m.next()){n=n.value;if(e>=n.Ic&&en.Ic)return a.wd("e.overlappingReturn"),a.ea(),"";if(f===n.Ic)return a.wd("e.outOfOrder"),a.ea(),"";e===n.pd&&(l=n)}m="childplayback_"+Exa++;n={Td:AT(d,!0),pj:Infinity,target:null};var p={Wc:m,playerVars:b,playerType:c,durationMs:d,Ic:e,pd:f,wm:n};a.i=a.i.concat(p).sort(function(u,x){return u.Ic-x.Ic}); l?Fxa(a,l,{Td:AT(l.durationMs,!0),pj:a.C.Z("timeline_manager_transition_killswitch")?Infinity:l.wm.pj,target:p}):(b={Td:AT(e,!1),pj:e,target:p},a.J.set(b.Td,b),a.ea(),h.addCueRange(b.Td));b=g.S(a.C.experiments,"html5_gapless_preloading");if(a.l===a.api.Kc()&&(h=1E3*h.getCurrentTime(),h>=p.Ic&&hb)break;if(f>b)return{Xk:d,Zo:b-e};c=f-d.pd/1E3}return{Xk:null,Zo:b-c}}; Dxa=function(a,b){var c=a.G||a.api.Kc().getPlayerState();ET(a,!0);b=g.S(a.C.experiments,"html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:FT(a.l);var d=DT(a,b);b=d.Xk;d=d.Zo;var e=b&&!BT(a,b)||!b&&a.l!==a.api.Kc(),f=1E3*d;f=a.u&&a.u.start<=f&&f<=a.u.end;!e&&f||CT(a);a.ea();b?(a.ea(),Gxa(a,b,d,c)):(a.ea(),GT(a,d,c))}; GT=function(a,b,c){var d=a.l,e=a.api.Kc();d!==e&&a.api.jj(d.getPlayerType());d.seekTo(b,{ke:"application_timelinemanager"});Lxa(a,c)}; Gxa=function(a,b,c,d){var e=BT(a,b);if(!e){a.api.jj(b.playerType);b.playerVars.prefer_gapless=!0;var f=new g.rH(a.C,b.playerVars);f.Wc=b.Wc;a.api.Tm(f,b.playerType)}f=a.api.Kc();e||(b=b.wm,a.ea(),f.addCueRange(b.Td));f.seekTo(c,{ke:"application_timelinemanager"});Lxa(a,d)}; Lxa=function(a,b){a=a.api.Kc();var c=a.getPlayerState();g.HK(b)&&!g.HK(c)?a.playVideo():g.U(b,4)&&!g.U(c,4)&&a.pauseVideo()}; ET=function(a,b){a.Y=NaN;a.U.stop();a.B&&b&&uT(a.B);a.G=null;a.B=null}; BT=function(a,b){a=a.api.Kc();return!!a&&a.getVideoData().Wc===b.Wc}; Mxa=function(a){var b=a.i.find(function(d){return BT(a,d)}); if(b){CT(a);var c=new g.BK(8);b=Kxa(a,b)/1E3;GT(a,b,c);a.l.Ja("forceParentTransition","presentingPlaybackError")}}; HT=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.ea();for(var d=b,e=c,f=g.q(a.J),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.pj>=d&&l.target&&l.target.pd<=e&&(a.l.removeCueRange(h),a.J.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.Ic>=d&&l.pd<=e){var m=a;m.K===l&&CT(m);BT(m,l)&&m.api.jn(l.playerType)}else f.push(l);a.i=f;d=DT(a,b/1E3);b=d.Xk;d=d.Zo;b&&(d*=1E3,Nxa(a,b,d,b.pd===b.Ic+b.durationMs?b.Ic+d:b.pd)); (b=DT(a,c/1E3).Xk)&&a.wd("Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Wc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Ic+" parentReturnTimeMs="+b.pd+"}.Child playbacks can only have duration updated not their start."))}; Nxa=function(a,b,c,d){a.ea();b.durationMs=c;b.pd=d;d={Td:AT(c,!0),pj:c,target:null};Fxa(a,b,d);BT(a,b)&&1E3*a.api.Kc().getCurrentTime()>c&&(b=Kxa(a,b)/1E3,c=a.api.Kc().getPlayerState(),GT(a,b,c))}; Pxa=function(a){a&&"web"!==a&&Oxa.includes(a)}; KT=function(a,b){g.E.call(this);var c=this;this.data=[];this.u=a||NaN;this.l=b||null;this.i=new g.J(function(){IT(c);JT(c)}); g.F(this,this.i)}; IT=function(a){var b=(0,g.P)();a.data.forEach(function(c){c.expire=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)}; Sxa=function(a,b){ex(a,"version",b)}; TT=function(a){g.V.call(this,{D:"div",Ca:["html5-video-player"],V:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},S:[{D:"div",L:g.ST.VIDEO_CONTAINER,V:{"data-layer":"0"}}]});var b=this;this.app=a;this.Fs=this.Ba(g.ST.VIDEO_CONTAINER);this.Yq=new g.pl(0,0,0,0);this.Eb=null;this.Mx=new g.pl(0,0,0,0);this.rB=this.cC=this.bC=NaN;this.Kw=this.nG=!1;this.DA=NaN;this.MB=!1;this.Nt=null;this.dispatchEvent=function(){}; this.rC=function(){b.element.focus()}; this.Jy=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.dm("ytp-transparent");"0"===e.controlsType&&this.dm("ytp-hide-controls");g.K(this.element,"ytp-exp-bottom-control-flexbox");e.Z("html5_player_bottom_linear_gradient")&&g.K(this.element,"ytp-linear-gradient-bottom-experiment");e.Z("web_player_bigger_buttons_like_mobile")&&g.K(this.element,"ytp-exp-bigger-button-like-mobile");e.Z("enable_new_paid_product_placement")&&!g.FG(e)&&g.K(this.element,"ytp-exp-ppp-update");Sxa(this.element,Txa(a));this.mK=!1;zG(e)&& "blazer"!==e.playerStyle&&window.matchMedia&&(this.Jy="desktop-polymer"===e.playerStyle?[{query:window.matchMedia("(max-width: 656px)"),size:new g.Sf(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.Sf(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.Sf(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.Sf(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.Sf(854,480)},{query:window.matchMedia("(min-width: 1000px)"), size:new g.Sf(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.Sf(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.Sf(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.Sf(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.Sf(640,360)}]);this.UD=e.useFastSizingOnWatchDefault;this.Ts=new g.Sf(NaN,NaN);Uxa(this);this.N(a.Wa,"onMutedAutoplayChange",this.au)}; Uxa=function(a){function b(){a.Eb&&UT(a);VT(a)!==a.MB&&a.resize()} function c(h,l){a.Gq(h,l)} function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())} function e(){a.Mx=new g.pl(0,0,0,0);a.Yq=new g.pl(0,0,0,0)} var f=a.app.Wa;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.gf(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})}; Vxa=function(a){var b=g.W(a.app);if(b=b?b.getVideoData():null){if(g.QH(b)||g.RH(b)||g.TH(b))return 16/9;if(xH(b)&&b.u.i)return a=b.u.videoInfos[0].video,WT(a.width,a.height)}return(a=a.Eb)?WT(a.videoWidth,a.videoHeight):16/9}; Wxa=function(a,b,c,d){var e=c,f=WT(b.width,b.height);a.nG?e=cf?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cMath.abs(XT*b-a)||1>Math.abs(XT/a-b)?XT:a/b}; VT=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.W(a.app);if(!b||b.vl())return!1;var c=a.app.Wa.sb();a=!g.U(c,2)||!g.S(a.app.T().experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ua;b=g.U(c,1024);return c&&a&&!b&&!c.isCued()}; UT=function(a){var b="3"===a.app.T().controlsType&&!a.Kw&&VT(a)&&!a.app.Rt||!1;a.Eb.controls=b;a.Eb.tabIndex=b?0:-1;b?a.Eb.removeEventListener("focus",a.rC):g.S(a.app.T().experiments,"disable_focus_redirect")||a.Eb.addEventListener("focus",a.rC)}; Xxa=function(a){var b=a.Zf(),c=1,d=!1,e=Wxa(a,b,a.getVideoAspectRatio()),f=pt();if(VT(a)){var h=Vxa(a);var l=isNaN(h)||g.tw||ZT&&g.cj;qt&&!g.Wd(601)?h=e.aspectRatio:l=l||"3"===a.app.T().controlsType;l?l=new g.pl(0,0,b.width,b.height):(c=e.aspectRatio/h,l=new g.pl((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.cj&&(h=l.width-b.height*h,0b)return!0;var c=a.getLastSegmentNumber();return bb)return 1;c=a.getLastSegmentNumber();return be?(a.u+=d,.2d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=iU(a)?d+b:d+Math.max(b,c);a.U=d}; gU=function(a,b){for(var c="";4095>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))}; kU=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1}; lU=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.Ac&&(d=Math.abs(d));d/=a.playbackRate;var f=1/xF(a.schedule);var h=.9*(d-a.policy.yf);h=Math.max(h,vF(a.schedule)+2048*f);c=h/f*a.policy.Gp/(b+c);c=Math.min(c,d);a.policy.bd&&e&&(c=Math.max(c,a.policy.bd));return kya(a,c,b)}; kya=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.qp*c),Math.min(Math.min(a.policy.ma,31*c),Math.ceil(b*c))))||65536}; mU=function(a){return xF(a.schedule,!a.policy.Hk,a.policy.lp)}; nU=function(a){return mU(a)/a.playbackRate}; oU=function(a,b,c,d,e){g.Q.call(this);this.l=a;this.videoTrack=b;this.audioTrack=c;this.policy=d;this.G=e;this.seekCount=this.u=0;this.i=!1;this.C=null;this.B=this.l.isManifestless&&!this.l.Le}; lya=function(a,b,c){var d=b.i.index,e=b.l.Ka;fD(d,e)||c&&c.Ka===e?(a.ea(),b.C=!fD(d,e),b.K=!fD(d,e)):(a.ea(),b.C=!0,b.K=!0)}; nya=function(a,b,c,d){a.ea();if(!b.i.Be())return 0!==c&&pU(b),c;var e=qU(b,c);if(!isNaN(e))return a.ea(),e;rU(b);return d&&(a=hE(d.Te(),c),!isNaN(a))?(sU(b,a+mya),c):sU(b,c)}; rya=function(a,b,c,d){if(a.i&&a.u){var e=oya(a,b,c);if(-1!==e){a.videoTrack.C=!1;a.audioTrack.C=!1;a.B=!0;g.Ig(function(){tU(a,"seekreason","reason.behindMinSq;tgt."+e);pya(a,e)}); return}}c?a.videoTrack.K=!1:a.audioTrack.K=!1;var f=a.policy.xj||!a.B;if(0<=qU(a.videoTrack,a.u)&&0<=qU(a.audioTrack,a.u)&&f){if(a.videoTrack.C||a.audioTrack.C)a.ea(),tU(a,"iterativeSeeking","done;count."+a.seekCount,!1);a.videoTrack.C=!1;a.audioTrack.C=!1}else d&&g.Ig(function(){if(a.B||!a.policy.La)qya(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.G&&-1!==a.audioTrack.G,p=!a.videoTrack.K&&!a.audioTrack.K;m&&n&&p&&(a.u>=h&&a.ua.seekCount?(a.seekCount++,a.ea(),tU(a,"iterativeSeeking","inprogress;count."+a.seekCount+";target."+a.u+";actual."+h+";duration."+l+";isVideo."+c,!1),a.seek(a.u)):(a.ea(),tU(a,"iterativeSeeking","incomplete;count."+a.seekCount+";target."+a.u+";actual."+h,!1),a.seekCount=0,a.videoTrack.C=!1,a.audioTrack.C=!1,a.W("seekplayerrequired",h+.1,!0)))}})}; oya=function(a,b,c){if(!a.i)return-1;c=(c?a.videoTrack:a.audioTrack).i.index;var d=c.getSegmentNumberForTime(a.u);return(fD(c,a.l.Vd)||b.Ka===a.l.Vd)&&d=c||(c=new rz(a.i.Fd.startSecs-(a.policy.Vb&&!isNaN(a.K)?a.K:0),c,a.i.Fd.context,a.i.Fd.identifier,"stop",a.i.Fd.i+1E3*b.duration),yT(a,"cuepointdiscontinuity","segNum."+b.Ka),a.policy.Aa?wU(a,c,b.Ka):a.Cx(c,b.Ka))}}; tya=function(a,b,c,d){(void 0===d?0:d)?(a.l=1,yT(a,"sdai","rststate_skth")):0b)return!0;a.X.clear()}return!1}; Cya=function(a,b){return new yU(a.J,a.i,b||a.u.reason)}; FU=function(a){return a.u.isLocked()}; yya=function(a){a.Ea?a.Ea=!1:a.U=(0,g.P)();a.K=!1;return new yU(a.J,a.i,a.u.reason)}; Dya=function(a){var b=!FU(a)&&-1(0,g.P)()-a.U,c=a.nextVideo&&3*CU(a,a.nextVideo.info)a.policy.Da,l=e<=a.policy.Da?TD(d):RD(d);if(!f||h||l)c[e]=d}return c}; zU=function(a,b){a.u=b;var c=a.G.videoInfos;if(!FU(a)){var d=(0,g.P)();c=g.Po(c,function(n){if(n.Ib>this.policy.Ib)return this.ea(),!1;var p=this.C.i[n.id],r=p.info.i;return this.policy.yj&&this.Ga.has(r)||this.X.get(n.id)>d?!1:4=n.video.i})); else if(EU(a)){var e=g.Po(c,function(n){n=n.kc();return"140"===n||"134"===n||"243"===n}); e.length&&(c=e)}}c.length||(c=a.G.videoInfos);e=g.Po(c,b.B,b);if(a.policy.Aj||a.policy.gi){var f="m"===b.reason||"s"===b.reason;a.policy.Kj&&ZT&&g.cj&&(!f||1080>b.i)&&(e=e.filter(function(n){return!!n&&!!n.video&&!!n.l})); if(!qE()&&0f.video.width?(a.ea(),g.nb(e,c),c--):CU(a,b)*a.policy.l>CU(a,f)&&(a.ea(),g.nb(e,c-1),c--);c=e[e.length-1];a.Ua=!!a.i&&!!a.i.info&&a.i.info.i!==c.i;a.ea();a.B=e;Csa(a.policy,c)}; vya=function(a,b){b?a.l=a.C.i[b]:(b=(b=g.gb(a.G.i,function(c){return!!c.Jc&&c.Jc.isDefault}))||a.G.i[0],a.l=a.C.i[b.id]); AU(a)}; Fya=function(a,b){for(var c=0;c+1d}; AU=function(a){if(!a.l||!a.policy.i)if(!a.l||!a.l.info.Jc)if(a.l=a.C.i[a.G.i[0].id],1a.u.i:Fya(a,a.l);b&&(a.l=a.C.i[g.eb(a.G.i).id])}}; BU=function(a){a.policy.tf&&(a.Aa=a.Aa||new g.J(function(){a.policy.tf&&a.i&&!EU(a)&&1===Math.floor(10*Math.random())?(DU(a,a.i),a.K=!0):a.Aa.start()},6E4),g.Eq(a.Aa)); if(!a.nextVideo||!a.policy.i)if(FU(a))a.nextVideo=360>=a.u.i?a.C.i[a.B[0].id]:a.C.i[g.eb(a.B).id],a.ea();else{for(var b=Math.min(a.videoIndex,a.B.length-1),c=nU(a.ma),d=CU(a,a.l.info),e=c/a.policy.u-d;0=c);b++);a.nextVideo=a.C.i[a.B[b].id];a.videoIndex!==b&&a.ea();a.videoIndex=b}}; wya=function(a){var b=a.policy.u,c=nU(a.ma)/b-CU(a,a.l.info);b=g.ib(a.B,function(d){return CU(this,d)b&&(b=0);a.videoIndex=b;a.nextVideo=a.C.i[a.B[b].id];a.ea()}; xya=function(a){if(a.Va.length){var b=a.Va,c=function(d,e){if(b.includes(CC(d)))return d;for(var f=0;fa.policy.Jb&&(c*=1.5);return c}; Hya=function(a,b){a=Qb(a.C.i,function(c){return c.info.kc()===b}); if(!a)throw Error("Itag "+b+" from server not known.");return a}; Iya=function(a){var b=[];if("m"===a.u.reason||"s"===a.u.reason)return b;if(Qja(a.C)){for(var c=Math.max(0,a.videoIndex-2);c=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}; Oya=function(a){a=g.ZB(a,1886614376);g.Cb(a,function(b){return!b.NG}); return g.Oe(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})}; Pya=function(a){var b=zm(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0; g.Cb(a,function(e){c.set(e,d);d+=e.length}); return c}; Qya=function(a,b,c,d){this.ids=a;this.l=b;this.u=c;this.i=d}; KU=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.i=this.cryptoPeriodIndex=NaN;this.l=[];this.De=!1}; Rya=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0c;c++){var d=a.vg();-1===b&&255!==d&&(b=0);-1e&&d>c;e++)c=256*c+a.vg(),d*=128;return b?c:c-d}; OU=function(a,b,c){var d=this;this.K=a;this.policy=b;this.C=c;this.l=[];this.i=null;this.ma=-1;this.U=0;this.xa=NaN;this.Y=0;this.B=NaN;this.Aa=0;this.Ea=-1;this.u=this.X=this.Pa=this.Ga=this.Da=this.La=this.G=this.J=this.va=null;this.Ua=!1;this.timestampOffset=0;if(this.policy.i){var e=this.C,f=this.policy.i;this.u=new Jya(this.policy,e,function(h,l,m){NU(a,new LU(d.policy.i,2,{pu:new Sya(f,h,e.info,l,m)}))}); this.u.G.promise.then(function(h){d.u=null;1===h&&NU(a,new LU(d.policy.i,h))},function(){d.u=null; NU(a,new LU(d.policy.i,4))}); Kya(this.u)}}; Uya=function(a){return a.l.length?a.l[0]:null}; PU=function(a){return a.l.length?a.l[a.l.length-1]:null}; Yya=function(a,b,c){if(a.G){var d=a.G.zb+a.G.l;if(0=a.ma&&0===a.U){var f=a.i.i,h=-1;e=-1;if(c){for(var l=0;l+8 e&&(h=-1)}else{f=new MU(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var r=Tya(p,!0),t=Tya(p,!1);var u=r;var x=t}catch(B){x=u=-1}p=u;var y=x;if(!(0h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.getOffset()+y);if(160===p){0>h&&(e=h=f.getOffset()+y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.ma=h;a.U=e-h}if(a.ma>d)break;a.ma?(d=Wya(a,a.ma),d.u&&!d.info.i.Gg()&&Xya(a,d),Vya(a,b,d),SU(a, d),a.ma=0):a.U&&(d=Wya(a,0>a.U?Infinity:a.U),a.U-=d.i.totalLength,SU(a,d))}}a.i&&a.i.info.Nd&&(SU(a,a.i),a.i=null)}; RU=function(a,b){!b.info.i.Gg()&&0===b.info.zb&&(g.BD(b.info.i.info)||b.info.i.info.De())&&HD(b);if(1===b.info.type)try{Xya(a,b),Zya(a,b)}catch(d){g.Tx(d);var c=OC(b.info);c.hms="1";TU(a.K,!0,"fmt.unparseable",c||{})}b.info.i.wB(b);a.u&&Mya(a.u,b)}; $ya=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}; UU=function(a){return g.Oe(a.l,function(b){return b.info})}; Wya=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=zD(c,b);a.i=c[1];return c[0]}; Xya=function(a,b){var c=xD(b);if(!a.policy.Vo&&SD(b.info.i.info)&&"bt2020"===b.info.i.info.fb().primaries){var d=new aC(c);cC(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;RD(d)&&!SD(d)&&(d=xD(b),iC(new aC(d)),hC([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.u&&(g.BD(d.info)?d.u=oja(c):d.info.De()&&(d.u=qja(c))));b.info.i.info.De()&& b.info.isVideo()&&(c=xD(b),iC(new aC(c)),hC([408125543,374648427,174,224],30320,c)&&hC([408125543,374648427,174,224],21432,c));if(a.policy.uh&&b.info.i.info.De()){c=xD(b);var e=new aC(c);if(cC(e,[408125543,374648427,174,29637])){d=fC(e,!0);e=e.start+e.i;for(var f=0;fm||(e&&b.skip(4),f&&b.skip(4),e=b.Fc(),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.setUint32(b.Yb,e))}}if(b=a.va&&!!a.va.C.G)if(b=c.info.isVideo())b=GD(c),h=a.va,VU?(l=1/b,b=WU(a,b)>=WU(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&aza(c)&&(b=a.va,VU?(l=GD(c),h=1/l,l=WU(a,l),b=WU(b)+h-l):b=b.getDuration()- a.getDuration(),b=1+b/c.info.duration,OB(xD(c),b))}else{h=!1;a.J||(HD(c),c.l&&(a.J=c.l,h=!0,QC(c.info,c.l),l=c.info.i.info,f=xD(c),g.BD(l)?YB(f,1701671783):l.De()&&hC([408125543],307544935,f)));if(f=l=FD(c))f=c.info.i.info.De()&&160===uD(c.i,0);if(f)a.Y+=l,a.B=NaN;else{if(a.policy.En){var n;e=a.K;f=CD(c)/1;isNaN(e.timestampOffset)&&bza(e,f-Math.min(f,e.policy.Jh));e=n=f-e.timestampOffset;if(0<=a.B&&6!==c.info.type){f=n-a.B;var p=f-a.Aa;d=c.info.Ka;var r=a.La?a.La.Ka:-1,t=a.Ga?a.Ga:-1,u=a.Da?a.Da: -1;m=a.policy.dd&&f>a.policy.dd;var x=a.policy.cd&&p>a.policy.cd;1E-4m&&d>a.Ea)&&p&&(d=Math.max(.95,Math.min(1.05,(l-(x-f))/l)),OB(xD(c), d),d=FD(c),n=l-d,l=d)));a.Aa=f+n}}else isNaN(a.B)?e=c.info.startTime:e=a.B;DD(c,e)?(isNaN(a.xa)&&(a.xa=e),a.Y+=l,a.B=e+l):(l=OC(c.info),l.smst="1",TU(a.K,!0,"fmt.unparseable",l||{}))}a.La=c.info;a.Da=FD(c);c.B&&(a.Ga=c.B);if(h&&a.J){h=cza(a,!0);RC(c.info,h);a.i&&RC(a.i.info,h);b=g.q(b.info.i);for(l=b.next();!l.done;l=b.next())RC(l.value,h);(c.info.Nd||a.i&&a.i.info.Nd)&&6!==c.info.type||(a.X=h,b=a.K,b.i.isManifestless&&dza(b,h,!!a.C.info.video),a.policy.Aa||eza(a))}}Zya(a,c);a.timestampOffset&&ED(c, a.timestampOffset)}; SU=function(a,b){if(b.info.Nd){a.Pa=b.info;if(a.J){var c=cza(a,!1);a.K.uC(a.C,c);a.X||a.policy.Aa||eza(a);a.X=null}QU(a)}a.u&&Mya(a.u,b);if(c=PU(a))if(c=AD(c,b,a.policy.wj)){a.l.pop();a.l.push(c);return}a.l.push(b)}; QU=function(a){a.i=null;a.ma=-1;a.U=0;a.J=null;a.xa=NaN;a.Y=0;a.X=null}; Zya=function(a,b){if(a.C.info.Jd){if(b.info.i.info.De()){var c=new aC(xD(b));if(cC(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=fC(c,!0);c=16!==d?null:mC(c,d)}else c=null;d="webm"}else b.info.K=Oya(xD(b)),c=Pya(b.info.K),d="cenc";c&&c.length&&(c=new KU(c,d),c.De=b.info.i.info.De(),b.l&&b.l.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.l.cryptoPeriodIndex),a.policy.Ii&&b.l&&b.l.u&&(c.i=b.l.u),a.K.fp(c))}}; eza=function(a){var b=a.J,c=JB(b);c&&(c.startSecs+=a.xa,a.K.Cx(a.C,c,b.i))}; cza=function(a,b){var c,d=a.J;if(c=JB(d))c.startSecs+=a.xa;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 Qya(e,f,h,d.data["Serialized-State"]?d.data["Serialized-State"]:"")}return new zB(d.i,a.xa,b?d.zi:a.Y,d.ingestionTime,"sq/"+d.i,void 0,void 0,b,e,c)}; aza=function(a){return a.info.i.Gg()&&a.info.Ka===a.info.i.index.getLastSegmentNumber()}; WU=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.C.G&&b&&(b+=a.C.G.i);return b+a.getDuration()}; fza=function(a,b){0>b||(a.l.forEach(function(c){ED(c,b)}),a.timestampOffset=b)}; XU=function(a,b){this.info=a;this.callback=b;this.state=1;this.K=!1;this.B=0;this.C=!1;this.i=null}; gza=function(a){return g.ym(a.info.i,function(b){return 3===b.type})}; YU=function(a,b){var c=a.state;a.state=b;a.sz();a.callback&&a.callback(a,c)}; ZU=function(a,b){b&&a.state=b&&(e.l.pop(),e.B-=FD(l),f=!0)}f&&(e.G=0c?sU(a,d):a.l=a.i.Wl(b-1,!1).i[0]}; lV=function(a,b){var c;for(c=0;c=a.U:c}; tza=function(a){var b;return gV(a)||!(null===(b=PU(a.B))||void 0===b||!b.info.u)}; fV=function(a){var b=[],c=cV(a);c&&b.push(c);b=g.qb(b,UU(a.B));g.Cb(a.u,function(d){g.Cb(d.info.i,function(e){d.K&&(b=g.Po(b,function(f){return!(f.i!==e.i?0:f.range&&e.range?f.range.start+f.zb>=e.range.start+e.zb&&f.range.start+f.zb+f.l<=e.range.start+e.zb+e.l:f.Ka===e.Ka&&f.zb>=e.zb&&(f.zb+f.l<=e.zb+e.l||e.Nd))})); (LC(e)||4===e.type)&&b.push(e)})}); a.l&&!xja(a.l,g.eb(b),a.l.i.Gg())&&b.push(a.l);return b}; qza=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return 0>b?NaN:qza(a,c?b:0)?a[b].startTime:NaN}; mV=function(a){return!(!a.l||a.l.i===a.i)}; nV=function(a){return mV(a)&&a.i.Be()&&a.l.i.info.Ibb&&a.B=d.totalLength&&(c=sD(d),c=EB(c),yz(c)?a.ea():c="")}if(c)return b=rV(a),(0,g.P)(),b.started=0,b.timedOut=0,b.i=0,a.info.Ti(a.l,c),3;c=b.Jo();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.OC())return a.lastError="net.closed",5;Kza(a,!0);if(!d&&a.i&&(d=a.i.Gd,d.length&&!yD(d[0])))return a.lastError="net.closed", 5;var e=gza(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(b=gza(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.va=!0,a.policy.Uo&&(e=b);b=a.timing;d=(0,g.P)();e=e?Number(e):0;if(!b.va){b.va=!0;if(!b.dk){hU(b,d,c);jya(b,d,c);var f=dU(b);if(2===f&&e)fU(b,b.l/e,b.l);else if(2===f||1===f)e=(d-b.i)/1E3,(e<=b.schedule.Y.i||!b.schedule.Y.i)&&!b.Ga&&iU(b)&&fU(b,e,c),iU(b)&&(e=b.schedule,c=Math.max(c,2048),e.i.Fg(1,b.u/c),zF(e));c=b.schedule;d=(d-b.i)/1E3||.05;e=b.Y;f=b.Oh;c.G.Fg(d,b.l/d);c.B=uF();f||c.l.Fg(1, d-e)}b.deactivate()}b=rV(a);(0,g.P)();b.started=0;b.timedOut=0;b.i=0;a.info.l.l=0;(0,g.P)()b.indexOf("googlevideo.com")||(Mza({primary:b}),Lza=(0,g.P)());b=a.timing;a.ea("Succeeded, rtpd="+(1E3*b.Y+b.i-Date.now()).toFixed(0));return 4}; sV=function(a){var b;a.ea("Request failed, itag="+a.l.get("itag")+(" seg="+a.info.i[0].Ka)+(" sliced="+(null===(b=a.i)||void 0===b?void 0:b.l))+(" error="+a.lastError));if("net.timeout"===a.lastError){var c=a.timing,d=(0,g.P)();if(!c.dk){hU(c,d,1024*c.ma);var e=(d-c.i)/1E3;if(2!==dU(c))if(iU(c)){c.u+=(d-c.B)/1E3;var f=c.schedule,h=c.l;h=Math.max(h,2048);f.i.Fg(1,c.u/h);zF(f)}else iya(c)||c.dk||(f=c.schedule,f.J.Fg(1,e),zF(f)),c.xa=d;f=c.schedule;h=c.Y;var l=c.Oh;f.G.Fg(e,c.l/e);f.B=uF();l||f.l.Fg(1, e-h);Dka(c.schedule,(d-c.B)/1E3,0)}}else(0,g.P)();"net.nocontent"!==a.lastError&&("net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError?(c=rV(a),c.timedOut+=1):(c=rV(a),c.i+=1),a.timing.l||a.info.l.l++);YU(a,5)}; Oza=function(a,b){b&&(b=rV(a),b.l+=1);uV(a);a.lastError="net.timeout";sV(a)}; uV=function(a){a.ea();a.xhr&&a.xhr.abort();a.timing.deactivate()}; Jza=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.Ws();return(!a.xhr.xr()||!b||-1!==b.indexOf("text/plain"))&&(!c||2048>=c)}; Gza=function(a){if(tB(a.l.ih))return new zza(a.l,a);var b=g.tC(a.l);return a.policy.Ea&&(a.policy.Kp&&!isNaN(a.info.ye)&&a.info.ye>a.policy.Nk||a.C?0:NA())?new pV(b,a.policy.B,a):new qV(b,a)}; Kza=function(a,b){if(b||a.xhr.Nm()&&a.xhr.dg()&&!Jza(a)&&!a.C){if(!a.i){if(a.xhr.xr())a.info.range&&(c=a.info.range.length);else var c=a.xhr.Jo();a.i=new iza(a.info.i,c)}for(;a.xhr.dg();)jza(a.i,a.xhr.oi(),b&&!a.xhr.dg())}}; Dza=function(a){if(!a.policy.B.Jf||!isNaN(a.info.ye)&&0a.info.i[0].Ka)return!1}return!0}; vV=function(a,b,c,d,e){this.ma=a;this.policy=b;this.schedule=c;this.K=d;this.Y=e;this.X=NaN;this.l=this.J=this.B=null;this.i=this.C=this.G=this.startTimeSecs=NaN;this.u=!1;this.U=NaN}; Pza=function(a,b,c,d,e){return b.Va&&b.Pa&&3===mB(b)?new vV(a,b,c,d,e):null}; Qza=function(a,b){if(a.policy.Gn){var c=b.info.Ib,d=xF(a.schedule);b=b.index.Ag;c=Math.max(1,d/c);a.U=Math.round(1E3*Math.max(((c-1)*b+a.policy.K)/c,b-a.policy.Ob));a.ea()}}; Tza=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.G,f=e>=a.policy.Ah,h=!1;if(f){var l=0;!isNaN(b)&&b>a.C&&(l=b-a.C,a.C=b);l/e=a.policy.Ob&&!a.u;if(!f&&!c&&Rza(a,b))return NaN;c&&(a.u=!0,a.ea());a:{d=h;c=Date.now()/1E3-(a.K.Yf()||0)-a.J.l-a.policy.K;f=a.l.startTime;c=f+c;if(d){if(isNaN(b)){a.ea();wV(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Nb;d=a.policy.Lk&&!a.policy.Kb||!a.policy.Tk&&0=a.policy.Ok)return!1;if(!b.l)return!0;d=b.l;if(!AC(d.i.l,a.policy))return!1;4===d.type&&d.i.Be()&&(b.l=g.eb(d.i.Bu(d)),d=b.l);if(!d.u&&!d.i.Vl(d))return!1;var e=a.i.Le||a.i.K;if(a.i.isManifestless&&e){e=b.i.index.getLastSegmentNumber();var f=c.i.index.getLastSegmentNumber();e=Math.min(e,f);if(0=e)return b.U=e,c.U=e,!1}if(d.i.info.audio&&4===d.type)return!1;if(nV(b)&&!a.policy.Ua)return!0;if(d.u||hV(b)&&hV(b)+hV(c)>a.policy.bb)return!1;e=!b.C&&!c.C; f=b===a.videoTrack&&a.U;if(!(c=!!(c.l&&!c.l.u&&c.l.Ba}return c?!1:(b= b.Qb)&&b.isLocked()?!1:!0}; cAa=function(a,b,c){if(HV(a,b,c)){if(b.J){if(a.i.isLive){var d=a.i.Vd&&a.i.K?b.i.Wl(a.i.Vd,!1):b.i.Fm(Infinity);d.ye=a.ye}else d=b.i.Wl(0,!1);a.C?0===d.ye&&(d.C=a.C.U):d.C=a.Ya}else if(d=b.l,d.i.Be()){var e=d.B-a.currentTime,f=!d.range||0===d.l&&0===d.zb?0:d.range.length-(d.zb+d.l),h=d.i;if(mV(b)&&b.i.Be()){var l=Math.min(15,.5*GV(a,b,!0));var m=nV(b)||e<=l||a.l.K;a.ea("ready to adapt: "+m+", upgrade pending: "+nV(b)+", health: "+e+", max health: "+l);l=m}else l=!1;l&&0===f&&(a.i.isManifestless?h= b.i:(h=d.startTime+bAa,d.l&&(h+=d.duration),sU(b,h),d=b.l,h=d.i));h.Gg()?(f=a.l,c=lU(a.G,h.info.Ib,c.i.info.Ib,e,0h&&(c=d.i.Tp(d,c.range.length-e.l)))),d=c):(0>d.Ka&&(c=OC(d),c.pr=""+b.u.length,a.B.i&&(c.sk="1"),a.Ja("nosq",d.G+";"+g.nE(c))),d=h.Or(d));if(a.U)for(c=g.q(d.i),e=c.next();!e.done;e=c.next())e.value.type=6}else d.i.Gg()? (c=lU(a.G,b.i.info.Ib,c.i.info.Ib,0),d=d.i.Tp(d,c)):d=d.i.Or(d);if(a.K&&(c=a.u,e=d.i[0].Ka,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.K.Aq(h,c,d.i[0].i.info.id,b===a.audioTrack?1:2),0>c&&tya(a.u,0,0,!0),e)){h="decurl_itag"+d.i[0].i.info.kc()+"_sg"+c+"_st"+h.toFixed(3)+".";if(a.policy.Np&&b.isRequestPending(c-1)){a.Ja("sdai","wt_daistate_on_sg"+(c-1));return}a.Ja("sdai",h);c=d;e&&(c.u=new g.pB(e))}a.policy.Gi&&-1!==d.i[0].Ka&&d.i[0].Kaf)a.policy.Ya&&(f=eya(e.timing),m=e.timing,a.Ja("rqs",g.nE({rn:e.requestNumber.toString(),rt:f.rt,pt:f.pt,stall:f.stall,elt:f.elbowTime,elb:f.elbowBytes,rst:""+e.state,strm:""+e.xhr.xr(),d:m.C?m.C.join(""):""}))),e.va&&a.Ja("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,3===e.state?m?f.tick("vrr"):n&&f.tick("arr"):4===e.state?m?(f.l=g.tC(e.l),eu(), hu(4)):n&&(f.i=g.tC(e.l)):e.Yp()&&m&&(eu(),hu(4)),3===e.state)lV(l,e),UC(e.info)&&yV(a,l,h,!0),a.K&&(l=e.info.Aq())&&a.K.Ti(e.info.i[0].Ka,h.info.id,l),a.fh();else if(3<=e.state&&5===e.info.i[0].type)4===e.state&&(h=(e.info.i[0].i.info.video?a.videoTrack:a.audioTrack).u[0]||null)&&h instanceof tV&&h.B&&Oza(h,!0),e.dispose();else{if(!e.isFailed()&&e.C&&2<=e.state&&3!==e.state)if(h=e.xhr.getResponseHeader("X-Response-Itag")){a.ea();h=Hya(a.l,h);l=e.info.range.length-h.iB();h.B=!0;e.info.i[0].i.B=!1; f=h.Io(l);e.info=f;if(e.i){l=e.i;f=f.i;l.i=f;m=f[0].range;n=sD(l.Gd[0].i);sD(g.eb(l.Gd).i);for(var p=0;ph.B&&(h.B=NaN,h.C=NaN),h.i&&h.i.Ka===l.i[0].Ka)if(m=h.i.Fd.event,"start"===m||"continue"===m){if(1===h.l||5===h.l)h.B=l.i[0].Ka,h.C=l.i[0].C,yT(h,"sdai","joinad"+h.l+"_sg"+h.B+"_st"+h.C.toFixed(3)),h.l=2,f.tB(h.i.Fd)}else h.l=5;else 1===h.l&&(h.l=5)}else if(a.policy.Ea&&e.Xq()&&!(3<=e.state)&&!zV(a,e)&&!e.isFailed())break a;e.isFailed()&&(h=e.info.i[0].i,l=e.lastError,tB(h.l.i)&&(f=g.$d(g.Xa(e.Yd()),3),a.Ja("dldbrerr",f||"none")),e.canRetry()?(f=(h.info.video&& 1(0,g.P)()||(e=XC(e.info,!1))&&IV(a,e))}}}},d)}; eAa=function(a,b){b&&(a.ea(),a.W("videoformatchange",b));a.policy.Kk&&a.l.Pa&&a.W("audioformatchange",Cya(a.l,"a"))}; zV=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(),3<=b.state||b.Xq(),d.J=!1);b.dB()&&a.Aa.Fg(1,b.dB());var e=b.IE(),f=b.gH(),h=a.i,l;for(l in h.i){var m=h.i[l].index;m.Mj&&(e&&(m.Qr=Math.max(m.Qr,e)),f&&(m.i=Math.max(m.i||0,f)))}}if(b.info.Oh()&&!TC(b.info)){for(var n=g.q(b.vz()),p=n.next();!p.done;p=n.next())RU(d.B,p.value);a.W("metadata",c)}eV(d);return!!d.qg()}catch(r){return r instanceof Error&&(g.Tx(r),b=b.Xr(),b.origin="hrhs", TU(a,!0,"fmt.unplayable",b)),!1}}; KV=function(a){var b=a.mediaSource.i,c=a.mediaSource.l,d=fAa(a);if(d){if(a.policy.rj){if(!b.Ho()){var e=a.audioTrack.qg();e&&JV(a,b,e)}c.Ho()||(b=a.videoTrack.qg())&&JV(a,c,b)}a.ma||(a.ma=(0,g.P)(),a.ea(),a.policy.Y&&a.Ja("apdps","r."+d))}else{if(a.ma){d=(0,g.P)()-a.ma;e=iV(a.audioTrack,a.currentTime);var f=iV(a.videoTrack,a.currentTime);a.ea();a.policy.Y&&a.Ja("apdpe","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.ma=0}if(a.C){d=a.C;e=a.audioTrack;f=iE(a.mediaSource.l.Te()); if(d.B)d=Tza(d,f);else{if(f=e.qg()){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.ye&&(d.B=e,d.J=h,d.l=f.info,d.startTimeSecs=Date.now()/1E3,d.G=d.startTimeSecs,d.C=d.l.startTime,d.ea())}d=NaN}d&&a.W("seekplayerrequired",d,!0)}d=!1;gAa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.B||(e.B=Date.now(),e.tick("vda"),JA("vda","video_to_ad"),e.u&&(eu(),hu(4))));if(a.mediaSource&&!a.mediaSource.We()&&(gAa(a,a.audioTrack,b)&&(d=a.timing,d.u||(d.u=Date.now(),d.tick("ada"), JA("ada","video_to_ad"),d.B&&(eu(),hu(4))),d=!0),!a.Ha()&&a.mediaSource)){!a.policy.xa&&gV(a.videoTrack)&&gV(a.audioTrack)&&tE(a.mediaSource)&&!a.mediaSource.eg()&&(e=cV(a.audioTrack).i,e===a.i.i[e.info.id]&&(a.ea(),e=a.mediaSource,tE(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.qe.webkitSourceEndOfStream(e.qe.EOS_NO_ERROR)),e=a.schedule,Eka(yF(e)),e.C=uF()));e=a.policy.Pk;f=a.policy.Rp;d||!(0c*(10-e)/nU(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0a.currentTime||360(e?e.Ka:-1);e=!!f}if(e)return!1;e=d.info;f=cV(b);!f||f.Nd||MC(f,e)||c.abort();!c.ct()||qE()?c.PD(e.i.info.containerType,e.i.info.mimeType):e.i.info.containerType!==c.ct()&&a.Ja("ctu","ct."+qE()+";prev_c."+c.ct()+";curr_c."+e.i.info.containerType);f=e.i.G;a.policy.Bj&&f&&(e=0+f.duration,f=-f.i,0===c.ow()&&e===c.bB()||c.cD(0,e),f!== c.Lc()&&(c.rr(f),VU&&fza(a.audioTrack.B,c.nB())));if(a.i.u&&0===d.info.zb&&(g.BD(d.info.i.info)||a.policy.cq)){if(null==c.Ho()){e=cV(b);if(!(f=!e||e.i!==d.info.i)){b:if(e=e.K,f=d.info.K,e.length!==f.length)e=!1;else{for(var h=0;he)){a:if(a.policy.Tc&&(!d.info.zb||d.info.Nd||10>d.info.C)&&a.Ja("sba",c.Cb({as:IC(d.info)})),e=d.u?d.info.i.i:null,f=sD(d.i),d.u&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=hAa(a,c,f,d.info,e),"s"===e)a.Pa=0,e=!0;else{a.policy.zj|| (c.abort(),rU(b));if("i"===e||"x"===e)iAa(a,"checked",e,d.info);else{if("q"===e)if(d.info.isVideo()?(e=a.policy,e.G=Math.floor(.8*e.G),e.X=Math.floor(.8*e.X),e.C=Math.floor(.8*e.C)):(e=a.policy,e.J=Math.floor(.8*e.J),e.eb=Math.floor(.8*e.eb),e.C=Math.floor(.8*e.C)),a.policy.Bb)DU(a.l,d.info.i);else if(!c.eg()&&!a.mediaSource.isView&&c.Vu(Math.min(a.currentTime,d.info.startTime),!0,5)){e=!1;break a}a.W("reattachrequired")}e=!1}e=!e}if(e)return!1;b.oi(d);a.ea("Appended "+IC(d.info)+", buffered: "+eE(c.Te())); return!0}; iAa=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&&!EU(a.l)&&DU(a.l,d.i)):"i"===c&&(15>a.Pa?(a.Pa++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=OC(d);d.mrs=wE(a.mediaSource);d.origin=b;d.reason=c;TU(a,f,e,d)}; dza=function(a,b,c){var d=a.i,e=!1,f=-1,h;for(h in d.i){var l=VD(d.i[h].info.mimeType)||d.i[h].info.isVideo();if(c===l)if(l=d.i[h].index,!fD(l,b.Ka))l.jz(b),e=!0;else if(d.Ua){e=b;var m=l.Pi(e.Ka);m&&m.startTime!==e.startTime?(l.segments=[],l.jz(e),e=!0):e=!1;e&&(f=b.Ka)}}0<=f&&d.W("clienttemp","restMflIndex",(c?"v":"a")+"."+f,!1);rya(a.B,b,c,e);a.u.uC(b,c)}; JV=function(a,b,c){c.info.i.Be();var d=c.info.i.i;if(null==d||b.Ho()===d)return!1;var e=d,f=b.qw();if(a.policy.fg&&f&&b.isView()&&g.BD(c.info.i.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=pja(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Ja("fenc","1")}f=null;(h=c.info.i.Io(0))&&(f=h.i[0]);a.policy.Ci&&b.abort();d=hAa(a,b,e,f,d);if("s"!==d)return iAa(a,"sepInit",d,c.info),!0;a.ea();return b.eg()}; hAa=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(f instanceof DOMException){if(11===f.code)return"i";if(12===f.code)return"x";if(22===f.code||0===f.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:eE(b.Te()).replace(/,/g,"_"),message:g.$d(g.Xa(f.message),3),track:a.mediaSource?b===a.mediaSource.l?"v":"a":"u"},Uza()),TU(a,!1,"player.exception",b),"q";g.Tx(f)}return"u"}return a.mediaSource.We()?"m":"s"}; Wza=function(a,b){b.subscribe("seekplayerrequired",function(c,d){a.U||a.W("seekplayerrequired",c,d)}); b.subscribe("ctmp",function(c,d){a.Ja(c,d,!1)}); b.subscribe("error",function(c,d,e){TU(a,c,d,e)}); b.subscribe("setcurrenttime",function(c){a.currentTime=c})}; NU=function(a,b){a.W("localmediachange",b)}; GV=function(a,b,c){if(a.isSuspended)return 1;var d=b.i.info.audio?a.policy.J:a.policy.G;!a.policy.Ua&&FU(a.l)&&(d=Math.max(d,b.i.info.audio?a.policy.eb:a.policy.X));c&&(d+=a.policy.bb);var e=FU(a.l)?b.l?b.l.i.info.Ib:b.i.info.Ib:b.Ib;d/=e;0c&&a.Ja("bwcapped","1",!0),c=Math.max(c,15),d=Math.min(d,c));return d}; aAa=function(a){var b=g.Po(a.Ga.Bm(),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}; jAa=function(a,b){(new oV(b,"cms",null,function(c){for(var d=[],e=0;e=b&&Vza(a,d.startTime,!1)}); return c&&c.startTime=b.size||(b.forEach(function(c,d){var e=dF(a.l)?d:c;d=new Uint8Array(dF(a.l)?c:d);dF(a.l)&&IAa(d);c=g.$d(d,4);IAa(d);d=g.$d(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.ea("Key statuses changed: "+JAa(a,",")),PV(a,"onkeystatuschange"),a.status="kc",a.W("keystatuseschange",a))}; RV=function(a){var b;if(b=a.U&&null!=a.B)a=a.B,b=!(!a.i||!a.i.keyStatuses);return b}; HAa=function(a,b){var c,d;a.status="km";EA("drm_net_s",void 0,a.videoData.bb);if(a.videoData.useInnertubeDrmService()){var e=new g.cx(a.u.qf),f={context:g.Mu(e.config_||g.Nu())};f.drmSystem=KAa[a.l.flavor];f.videoId=a.videoData.videoId;f.cpn=a.videoData.clientPlaybackNonce;f.sessionId=a.sessionId;f.licenseRequest=g.$d(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.fb())||void 0===d||!d.isHdr());a.videoData.Z("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.ea();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.xa&&(f.context.user.credentialTransferTokens=[{token:a.videoData.xa,scope:"VIDEO"}]);f.context.request.mdxEnvironment=a.videoData.mdxEnvironment||f.context.request.mdxEnvironment;a.videoData.eb&&(f.context.user.kidsParent={oauthToken:a.videoData.eb});if(g.hF(a.l)){h=a.fairplayKeyId;for(var l=[],m=0;md;d++)c[2*d]=''.charCodeAt(d);a=a.u.createSession("video/mp4",b,c);return new TV(null,null,null,null,a)}; WV=function(a,b){var c=a.G[b.sessionId];!c&&a.B&&(c=a.B,a.B=null,c.sessionId=b.sessionId,a.G[b.sessionId]=c);return c}; TAa=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e=a&&(c=.75*a),b=.5*(a-c),c=new NV(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new YV(g.S(a,"disable_license_delay"),b,this);break a;default:c= null}if(this.J=c)g.F(this,this.J),this.J.subscribe("rotated_need_key_info_ready",this.UF,this);this.ea("Created, key system "+this.i.keySystem+", final EME "+iF(this.u.experiments));bW(this,"cks"+this.i.Ue());c=this.i;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.C&&(this.Ua=new XV(this.videoData.Ob,this.u.experiments),g.F(this,this.Ua))}; XAa=function(a){var b=VV(a.C);b?b.then(Tr(function(){YAa(a)}),Tr(function(c){if(!a.Ha()){a.ea(); g.Sr(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.W("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.ea(),bW(a,"mdkrdy"),a.Y=!0); a.X&&(b=VV(a.X))}; ZAa=function(a,b,c){a.Pa=!0;c=new KU(b,c);a.u.Z("html5_eme_loader_sync")&&(a.G.get(b)||a.G.set(b,c));a.u.Z("html5_process_all_encrypted_events")?dW(a,c):a.u.Z("html5_eme_loader_sync")?dW(a,c):0!==a.B.length&&a.videoData.u&&a.videoData.u.i?eW(a):dW(a,c)}; aBa=function(a,b){if(cF(a.i)&&!a.xa&&(b=Nya(b),0!==b.length)){var c=new KU(b);a.xa=!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){$Aa(a,e,c)})},null)}}; $Aa=function(a,b,c){var d=b.createSession(),e=a.l.values[0],f=CAa(e);d.addEventListener("message",function(h){h=new Uint8Array(h.message);PAa(h,d,a.i.u,f,"playready")}); d.addEventListener("keystatuseschange",function(){"usable"in d.keyStatuses&&(a.Aa=!0,bBa(a,MAa(e,a.Aa)))}); d.generateRequest("cenc",c.initData)}; dW=function(a,b){if(!a.Ha()){bW(a,"onInitData");if(g.S(a.u.experiments,"html5_eme_loader_sync")&&a.videoData.u&&a.videoData.u.i){var c=a.K.get(b.initData);b=a.G.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.G.remove(c);a.K.remove(c)}a.ea();bW(a,"initd."+b.initData.length+";ct."+b.contentType);if("widevine"===a.i.flavor)if(a.Ea&&!a.videoData.isLivePlayback)a.u.Z("html5_process_all_encrypted_events")&&eW(a);else{if(!(g.S(a.u.experiments,"vp9_drm_live")&&a.videoData.isLivePlayback&&b.De)){a.Ea= !0;c=b.cryptoPeriodIndex;var d=b.i;Rya(b);b.De||(d&&b.i!==d?a.W("ctmp","cpsmm","emsg."+d+";pssh."+b.i):c&&b.cryptoPeriodIndex!==c&&a.W("ctmp","cpimm","emsg."+c+";pssh."+b.cryptoPeriodIndex));a.W("widevine_set_need_key_info",b)}}else a.UF(b)}}; YAa=function(a){if(!a.Ha())if(g.S(a.u.experiments,"html5_drm_set_server_cert")&&!g.bG(a.u)){var b=a.C.setServerCertificate();b?b.then(Tr(function(c){a.videoData.X&&a.W("ctmp","ssc",c)}),Tr(function(c){a.W("ctmp","ssce","n."+c.name+";m."+c.message)})).then(Tr(function(){fW(a)})):fW(a)}else fW(a)}; fW=function(a){a.Ha()||(a.Y=!0,a.ea(),bW(a,"onmdkrdy"),eW(a))}; eW=function(a){if(a.Pa&&a.Y&&!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}Rya(b);break}a.B.length&&a.createSession(a.B[0])}}; bBa=function(a,b){var c=TA("auto",b,!1,"l");if(a.videoData.rf){if(RA(a.U,c))return}else if(XA(a.U,b))return;a.U=c;a.W("qualitychange");a.ea();bW(a,"updtlq"+b)}; bW=function(a,b){var c=void 0===c?!1:c;a.Ha()||(a.ea(),(a.videoData.X||c)&&a.W("ctmp","drmlog",b))}; cBa=function(a){var b;if(b=g.it()){var c;b=!(null===(c=a.C.l)||void 0===c||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.A.TextDecoder?(new TextDecoder).decode(b):g.$a(b),a.W("ctmp","drm",b))}; gW=function(a,b,c){g.Q.call(this);var d=this;this.videoData=a;this.i=b;this.playerVisibility=c;this.K=0;this.u=this.l=null;this.ma=this.J=this.G=this.B=!1;this.X=this.Y=0;this.U=g.T(this.i.experiments,"html5_delayed_retry_count");this.C=new g.J(function(){return d.W("newelementrequired",!1)},g.T(this.i.experiments,"html5_delayed_retry_delay_ms")); g.F(this,this.C)}; jW=function(a,b,c){var d=!1,e=a.K+3E4<(0,g.P)()||a.C.isActive(),f;if(f=!e)f=a.playerVisibility,f=!!(f.Ce()||f.isInline()||f.isBackground()||f.Lq()||f.Jq());f&&(c.nonfg="paused",e=!0,a.W("pausevideo"));!e&&0=a.i.Ua)return!1;b.exiled=""+a.i.Ua;hW(a,"qoe.start15s",b);a.W("playbackstalledatstart");return!0}; fBa=function(a){if("GAME_CONSOLE"!==a.i.deviceParams.cplatform)try{window.close()}catch(b){}}; eBa=function(a){return a.B?!0:a.G||"yt"!==a.i.va?!1:a.videoData.Ya?25>a.videoData.jb:!a.videoData.jb}; iW=function(a,b){b=void 0===b?!1:b;aI(a.videoData)?a.W("signatureexpiredreloadrequired"):a.i.Z("html5_signature_reload_refactor")?a.B||(a.B=!0,a.W("releasevideo"),b||a.W("signatureexpiredreloadrequired")):a.G||a.W("signatureexpiredreloadrequired")}; gBa=function(a,b){if(a.u&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.u.Ki();b.details.merr=c?c.toString():"0";b.details.msg=a.u.Yd()}}; hBa=function(a){return"net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&!!a.details.fmt_unav}; jBa=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&&!a.B)return!1;b.details.sts="18802";if(eBa(a))return!c||$H(a.videoData)||a.i.Z("html5_signature_reload_refactor")?(b.i&&(b=Object.assign({e:b.errorCode},b.details),b=new g.mE("qoe.restart",!1,b)),hW(a,b.errorCode,b.details),iW(a,c)):(a.J=!0,a.W("releaseloader")),!0;6048E5<(0,g.P)()-a.i.bb&&iBa(a,"signature");return!1}; iBa=function(a,b){try{window.location.reload();hW(a,"qoe.restart",{detail:"pr."+b});return}catch(c){}a.i.Z("tvhtml5_retire_old_players")&&g.bG(a.i)&&fBa(a)}; kBa=function(a,b){a.i.B.B=!1;hW(a,"qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});a.W("formatupdaterequested")}; kW=function(a,b,c,d){a.W("clienttemp",b,c,(void 0===d?{mD:!1}:d).mD)}; hW=function(a,b,c){a.W("qoeerror",b,c)}; lBa=function(a,b,c,d){this.videoData=a;this.i=b;this.reason=c;this.l=d}; lW=function(a,b,c){this.i=a;this.X=b;this.l=c;this.Y=this.J=this.K=this.B=this.u=this.G=this.U=this.C=0;this.playbackRate=1}; nBa=function(a,b,c){!g.S(a.i.experiments,"html5_tv_ignore_capable_constraint")&&g.bG(a.i)&&(c=c.compose(mBa(a,b)));return c}; qBa=function(a,b){return oBa(a).compose(pBa(a,b))}; oBa=function(a){a=rBa(a);return TA("auto",a,!1,"s")}; rBa=function(a){var b;a.Z("html5_exponential_memory_for_sticky")?b=.5>BF(a.i.Nb,"sticky-lifetime")?"auto":VA[AF()]:b=VA[AF()];return b}; sBa=function(a,b){return 1(0,g.P)()-a.G?0:f||0h?a.B+1:0;if(!e||g.bG(a.i))return!1;a.u=d>e?a.u+1:0;if(3!==a.u)return!1;vBa(a,b.videoData.l);a.l.Ja("dfd",xBa());return!0}; zBa=function(a,b){return 0>=g.T(a.i.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.fb()&&32=f){d=f;break}}return new QA(0,d,!1,"b")}; CBa=function(a,b){var c=g.T(a.i.experiments,"html5_background_quality_cap"),d=g.T(a.i.experiments,"html5_background_cap_idle_secs");return!c||"auto"!==rBa(a)||mu()/1E3e?(c&&(d=DBa(a,c,d)),new QA(0,d,!1,"e")):qH}; DBa=function(a,b,c){if(a.Z("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.i.videoInfos,b=1;ba.u)){var b=g.jT(a.i),c=b-a.C;a.C=b;8===a.playerState.state?a.playTimeSecs+=c:g.JK(a.playerState)&&!g.U(a.playerState,16)&&(a.rebufferTimeSecs+=c)}}; HBa=function(a){switch(a.i.Pk){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}}; IBa=function(a){return(!a.Z("html5_health_to_gel")||a.i.bb+36E5<(0,g.P)())&&(a.Z("html5_health_to_gel_canary_killswitch")||a.i.bb+36E5<(0,g.P)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===HBa(a))?a.Z("html5_health_to_qoe"):!0}; oW=function(a,b,c,d,e,f){var h={format:"RAW"},l={};if(ds(a)&&es()){if(f){var m;2!==(null===(m=JBa.uaChPolyfill)||void 0===m?void 0:m.state.type)?a=null:(a=JBa.uaChPolyfill.state.data.values,a={"Synth-Sec-CH-UA-Arch":a.architecture,"Synth-Sec-CH-UA-Model":a.model,"Synth-Sec-CH-UA-Platform":a.platform,"Synth-Sec-CH-UA-Platform-Version":a.platformVersion,"Synth-Sec-CH-UA-Full-Version":a.uaFullVersion});l=Object.assign(l,a);h.withCredentials=!0}c&&(l["X-Goog-Visitor-Id"]=c);b&&(l["X-Goog-PageId"]=b); d&&(l.Authorization="Bearer "+d);if(c||d||b)h.withCredentials=!0}0a.J.CI+100&&a.J){var d=a.J,e=d.isAd;a.Ga=1E3*b-d.gU-(1E3*c-d.CI)-d.TT;a.Ja("gllat","l."+a.Ga.toFixed()+";prev_ad."+ +e);delete a.J}}; tW=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.jT(a.i);var c=a.i.l.Cw();if(!isNaN(a.X)&&!isNaN(c.l)){var d=c.l-a.X;0a.i)&&2=e&&(g.Tx(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.yC()}return a.u}; LBa=function(a){if(navigator.connection&&navigator.connection.type)return fCa[navigator.connection.type]||fCa.other;if(g.bG(a.i)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0}; xW=function(a){var b=new dCa;b.B=a.Je().cc||"-";b.playbackRate=a.l.getPlaybackRate();var c=a.l.getVisibilityState();0!==c&&(b.visibilityState=c);a.i.yb&&(b.l=1);c=a.l.getAudioTrack();c.Jc&&c.Jc.id&&"und"!==c.Jc.id&&(b.u=c.Jc.id);b.connectionType=LBa(a);b.volume=a.Je().volume;b.muted=a.Je().muted;b.clipId=a.Je().clipid||"-";b.i=a.videoData.lF||"-";return b}; g.JW=function(a){g.E.call(this);var b=this;this.l=a;this.u=this.qoe=this.i=null;this.Mf=void 0;this.B=new Map;this.l.videoData.isValid()&&!this.l.videoData.Ah&&(this.i=new DW(this.l),g.F(this,this.i),this.qoe=new g.rW(this.l),g.F(this,this.qoe),this.l.videoData.enableServerStitchedDai&&(this.Mf=this.l.videoData.clientPlaybackNonce)&&this.B.set(this.Mf,this.i));IBa(this.l)&&(this.u=new nW(this.l,function(c){b.Ja("h5h",c)}),g.F(this,this.u))}; gCa=function(a){var b;a.l.videoData.enableServerStitchedDai&&a.Mf?null===(b=a.B.get(a.Mf))||void 0===b?void 0:yW(b.l):a.i&&yW(a.i.l)}; hCa=function(a,b,c,d){a.qoe&&(a=a.qoe,g.qW(a,g.jT(a.i),"ad_playback",[b,c,d]))}; iCa=function(a,b){a.i&&cCa(a.i,b)}; jCa=function(a){if(!a.i)return null;var b=EW(a.i,"atr");return function(c){a.i&&cCa(a.i,c,b)}}; kCa=function(a,b,c,d){c.adFormat=c.Tc;var e=b.l;b=new DW(new IW(c,b.i,{getDuration:function(){return c.lengthSeconds}, getCurrentTime:function(){return e.getCurrentTime()}, jl:function(){return e.jl()}, Cw:function(){return e.Cw()}, getPlayerSize:function(){return e.getPlayerSize()}, getAudioTrack:function(){return c.getAudioTrack()}, getPlaybackRate:function(){return e.getPlaybackRate()}, xt:function(){return e.xt()}, getVisibilityState:function(){return e.getVisibilityState()}, yC:function(){e.yC()}, Xt:function(){e.Xt()}},b.Je)); b.C=d;g.F(a,b);return b}; lCa=function(){this.Vn=0;this.C=this.B=this.l=this.u=NaN;this.i="";this.bandwidthEstimate=NaN}; mCa=function(){this.l=g.Hz;this.i=[]}; oCa=function(a,b,c){var d=[];for(b=nCa(a,b);bc)break}return d}; pCa=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}; qCa=function(a){return a.i.slice(nCa(a,0x7ffffffffffff),a.i.length)}; nCa=function(a,b){a=yb(a.i,function(c){return b-c.start||1}); return 0>a?-(a+1):a}; rCa=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.endb&&(isNaN(c)||d.starta.mediaTime+a.B&&b(d||!a.u?1500:400);a.mediaTime=b;a.l=c;return!1}; wCa=function(a,b){this.videoData=a;this.i=b}; xCa=function(a,b,c){return Qma(b,c).then(function(){return Xs(new wCa(b,b.u))},function(d){d instanceof Error&&Ur(d); d=b.isLivePlayback&&!g.oF(a.B,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.Pa,drm:""+ +AH(b),f18:""+ +(0<=b.Bh.indexOf("itag=18")),c18:""+ +ZD('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.i&&(AH(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=""+ +$D('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +$D('audio/mp4; codecs="mp4a.40.2"'), e.cVP9=""+ +$D('video/webm; codecs="vp9"'));if(b.G){e.drmsys=b.G.keySystem;var f=0;b.G.i&&(f=Object.keys(b.G.i).length);e.drmst=""+f}return new g.mE(d,!0,e)})}; yCa=function(a){this.C=a;this.u=this.l=0;this.B=new MT(50)}; OW=function(a,b,c){g.Q.call(this);this.videoData=a;this.experiments=b;this.K=c;this.l=[];this.B=0;this.u=!0;this.G=!1;this.J=0;c=new zCa;"ULTRALOW"===a.latencyClass&&(c.B=!1);a.yb?c.l=3:g.OH(a)&&(c.l=2);g.S(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.K=!0);var d=Ima(a);c.C=2===d||-1===d;c.C&&(c.X++,21530001===HH(a)&&(c.G=g.T(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(ft("trident/")||ft("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.U=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.Y=g.T(b,"html5_readahead_ratelimit"));switch(HH(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.yb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(HH(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.C&&b++;this.i=NW(this,b);this.ea()}; ACa=function(a,b){var c=a.i;(void 0===b?0:b)&&a.policy.J&&3===Ima(a.videoData)&&--c;return PW(a)*c}; RW=function(a,b){var c=QW(a),d=a.policy.i;a.G||(d=Math.max(d-1,0));a=d*PW(a);return b>=c-a}; QW=function(a){return Math.max(a.K()-ACa(a,!0),a.videoData.getMinSeekableTime())}; BCa=function(a,b,c){b=RW(a,b);c||b?b&&(a.u=!0):a.u=!1;a.C=2===a.policy.l||3===a.policy.l&&a.u}; CCa=function(a,b){b=RW(a,b);a.G!==b&&a.W("livestatusshift",b);a.G=b}; PW=function(a){return a.videoData.i?SE(a.videoData.i)||5:5}; NW=function(a,b){b=Math.max(Math.max(a.policy.X,Math.ceil(a.policy.u/PW(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.U/PW(a))),b)}; zCa=function(){this.X=1;this.u=0;this.U=Infinity;this.Y=0;this.B=!0;this.i=2;this.l=1;this.C=!1;this.G=NaN;this.J=this.K=!1}; UW=function(a,b,c,d,e){g.E.call(this);this.u=a;this.videoData=b;this.W=c;this.visibility=d;this.K=e;this.l=this.B=null;this.J=this.i=0;this.G={};this.playerState=new g.BK;this.C=new g.J(this.U,1E3,this);g.F(this,this.C);this.Da=new SW({delayMs:g.T(this.u.experiments,"html5_seek_timeout_delay_ms")});this.va=new SW({delayMs:g.T(this.u.experiments,"html5_long_rebuffer_threshold_ms")});this.Ga=TW(this,"html5_seek_set_cmt");this.xa=TW(this,"html5_seek_jiggle_cmt");this.Aa=TW(this,"html5_seek_new_elem"); this.Ua=TW(this,"html5_unreported_seek_reseek");this.X=TW(this,"html5_long_rebuffer_jiggle_cmt");this.ma=TW(this,"html5_reload_element_long_rebuffer");this.Y=TW(this,"html5_ads_preroll_lock_timeout");this.La=new SW({delayMs:g.T(this.u.experiments,"html5_skip_slow_ad_delay_ms")||5E3,qq:!g.S(this.u.experiments,"html5_report_slow_ads_as_error")});this.Pa=new SW({delayMs:g.T(this.u.experiments,"html5_skip_slow_ad_delay_ms")||5E3,qq:!g.S(this.u.experiments,"html5_skip_slow_buffering_ad")});this.Ea=TW(this, "html5_seek_over_discontinuities")}; TW=function(a,b){var c=g.T(a.u.experiments,b+"_delay_ms");a=g.S(a.u.experiments,b+"_cfl");return new SW({delayMs:c,qq:a})}; DCa=function(a,b,c,d,e,f,h){var l=fE(c,Math.max(d-3.5,0)),m=0<=l&&d>c.end(l)-1.1&&l+1c.start(l+1)-c.end(l);m=f&&h&&m;var n=l+1b.Ux,c=b.i&&c-b.i>b.SC||f?b.u=!0:!1):c=!1,c&&(c=a.Cb(b),c.wn=h,c.we=e,c.wsuc=""+ +d,h=g.nE(c),a.W("ctmp","workaroundReport",h),d&&(b.reset(),a.G[e]=!1)))}; SW=function(a){a=void 0===a?{}:a;var b=void 0===a.SC?1E3:a.SC,c=void 0===a.Ux?3E4:a.Ux,d=void 0===a.qq?!1:a.qq;this.B=Math.ceil((void 0===a.delayMs?0:a.delayMs)/1E3);this.SC=b;this.Ux=c;this.qq=d;this.i=this.triggerTimestamp=this.l=this.startTimestamp=0;this.u=!1}; ECa=function(a,b){if(!a.B||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.P)();if(!a.startTimestamp)a.startTimestamp=b,a.l=0;else if(a.l>=a.B)return a.triggerTimestamp=b,!0;a.l+=1;return!1}; XW=function(a,b,c,d){g.Q.call(this);var e=this;this.videoData=a;this.Y=b;this.visibility=c;this.Ya=d;this.policy=new FCa(this.Y);this.K=new UW(this.Y,this.videoData,(0,g.C)(this.W,this),this.visibility,this.Ya);a={};this.Ea=(a.seekplayerrequired=this.kU,a.videoformatchange=this.mM,a);this.playbackData=null;this.Va=new mx;this.U=this.u=this.B=this.i=null;this.l=NaN;this.C=0;this.G=null;this.Da=NaN;this.J=this.X=null;this.va=this.ma=!1;this.Aa=new g.J(function(){GCa(e,!1)},2E3); this.eb=new g.J(function(){WW(e)}); this.Ua=new g.J(function(){e.ea();e.ma=!0;HCa(e)}); this.Pa=this.timestampOffset=0;this.Ga=!0;this.La=0;this.bb=NaN;this.xa=new g.J(function(){var f=e.Y.Nb;f.i+=1E4/36E5;f.i-f.u>1/6&&(Ika(f),f.u=f.i);e.xa.start()},1E4); this.Z("html5_unrewrite_timestamps")?this.Ea.timestamp=this.rr:this.Ea.timestamp=this.nM;g.F(this,this.Va);g.F(this,this.Aa);g.F(this,this.Ua);g.F(this,this.eb);g.F(this,this.xa)}; ICa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.U=new yCa(function(){a:{if(a.playbackData&&a.playbackData.i.i){if(GH(a.videoData)&&a.B){var c=a.B.Aa.Yf()||0;break a}if(a.videoData.i){c=a.videoData.i.ma;break a}}c=0}return c}),a.u=new OW(a.videoData,a.Y.experiments,function(){return YW(a,!0)})); a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9=e.l&&cd.B||g.Sa()-d.J=YW(a)-.1)a.l=YW(a),a.G.resolve(YW(a)),a.W("ended");else try{var c=a.l-a.timestampOffset;a.ea();a.i.seekTo(c);a.K.i=c;a.Da=c;a.C=a.l}catch(d){a.ea()}}}; OCa=function(a){if(!a.i||0===a.i.eh()||0b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);hX=new Uint8Array(256);iX=[];jX=[];kX=[];lX=[];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;hX[f]=e;b=e<<1^(e>>7&&283);var h=b^e;iX.push(b<<24|e<<16|e<<8|h);jX.push(h<<24|iX[f]>>>8);kX.push(e<<24|jX[f]>>>8);lX.push(e<<24|kX[f]>>>8)}SCa=!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=(hX[a>>16&255]^d)<<24|hX[a>>8&255]<<16|hX[a&255]<<8|hX[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.key=e}; TCa=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}; UCa=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=iX[c>>>24]^jX[d>>16&255]^kX[e>>8&255]^lX[f&255]^b[h++];var m=iX[d>>>24]^jX[e>>16&255]^kX[f>>8&255]^lX[c&255]^b[h++];var n=iX[e>>>24]^jX[f>>16&255]^kX[c>>8&255]^lX[d&255]^b[h++];f=iX[f>>>24]^jX[c>>16&255]^kX[d>>8&255]^lX[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++]=hX[c[0]>>>24]^b[h]>>>24,a[d++]=hX[c[1]>> 16&255]^b[h]>>16&255,a[d++]=hX[c[2]>>8&255]^b[h]>>8&255,a[d++]=hX[c[3]&255]^b[h++]&255,c.push(c.shift())}; nX=function(a){this.C=new Uint8Array(64);this.u=new Uint8Array(64);this.B=0;this.G=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()}; WCa=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+VCa[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}; YCa=function(a){var b=new Uint8Array(32),c=64-a.l;55f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.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;XCa(a);return b}; XCa=function(a){a.i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.B=0;a.l=0}; ZCa=function(a,b,c){a=new mX(a);TCa(a,c);return a.encrypt(b)}; aDa=function(a,b,c){return g.D(this,function e(){var f,h,l,m,n;return g.z(e,function(p){if(1==p.i)return f=oX(),h={name:"AES-CTR",counter:c,length:128},g.w(p,$Ca(a),2);if(3!=p.i)return l=p.l,m=pX.Ju("oan2"),g.w(p,f.encrypt(h,l,b),3);n=p.l;pX.Ss(m,Math.ceil(b.byteLength/16));return p.return(new Uint8Array(n))})})}; bDa=function(a){var b=new mX(a);return function(c,d){TCa(b,d);return new Uint8Array(b.encrypt(c))}}; $Ca=function(a){return oX().importKey("raw",a,{name:"AES-CTR"},!1,["encrypt"])}; cDa=function(a){return g.D(this,function c(){var d=this,e,f,h;return g.z(c,function(l){if(1==l.i)return e=d,f=oX(),g.w(l,$Ca(a),2);h=l.l;return l.return(function(m,n){return g.D(e,function r(){var t,u,x;return g.z(r,function(y){if(1==y.i)return t={name:"AES-CTR",counter:n,length:128},u=pX.Ju("oan2"),g.w(y,f.encrypt(t,h,m),2);x=y.l;pX.Ss(u,Math.ceil(m.byteLength/16));return y.return(new Uint8Array(x))})})})})})}; dDa=function(){if(g.tw)return!1;var a=oX();return a?!!a.importKey&&!!a.sign&&!!a.encrypt:!1}; oX=function(){var a;return null===(a=window.crypto)||void 0===a?void 0:a.subtle}; qX=function(a){this.i=a;this.iv=oR(yx(16))}; eDa=function(a,b,c){return g.D(a,function e(){var f=this;return g.z(e,function(h){return h.return(aDa(f.i.i,b,c))})})}; rX=function(a){this.i=a;this.me={}}; Xza=function(a,b){return b in a.me}; fDa=function(a){for(var b=g.q(Object.keys(a.me)),c=b.next();!c.done;c=b.next())if(c=c.value,!a.me[c].Yc){var d=a;d.me[c].Gd=new lD;sX(d,c)}}; mza=function(a,b){a=a.me[b];return a.bytesReceived===a.Os&&a.oA+a.Gd.totalLength===a.bytesReceived}; gDa=function(a,b){var c=new g.J(function(){sX(a,b)},3E3); c.start();a.me[b]={Gd:new lD,oA:0,bytesReceived:0,PG:c,We:!1};a.ea()}; sX=function(a,b){a.ea();b=a.me[b];if(!b.We&&(b.PG.stop(),b.We=!0,b.Yc&&b.Yc(),hDa(a))){a=a.i;var c;a.Y&&(null===(c=a.xhr)||void 0===c?void 0:c.abort())}}; hDa=function(a){return Object.values(a.me).every(function(b){return b.We})}; iDa=function(a){this.iv=jR(new fR(a),5)}; jDa=function(a){a=jR(new fR(a),4);this.i=new iDa(new lD([a]))}; kDa=function(a){this.i=[];for(a=new fR(a);;){var b=iR(a,2);if(!b)break;this.i.push(b)}}; mDa=function(a){a=new fR(a);this.u=iR(a,1);this.itag=iR(a,3);this.lastModifiedTime=iR(a,4);this.xtags=a.Oe(5);iR(a,6);iR(a,8);iR(a,9,-1);iR(a,10);this.i=iR(a,14);this.l=this.itag+";"+this.lastModifiedTime+";"+this.xtags;this.Qm="audio"===lDa[PD[""+this.itag]]}; nDa=function(a){this.body=null;a=new fR(a);this.onesieProxyStatus=iR(a,1,-1);this.httpStatus=iR(a,2,-1);this.body=jR(a,4)}; oDa=function(a){a=new fR(a);this.startTimeMs=iR(a,1);this.endTimeMs=iR(a,2)}; pDa=function(a){var b=new fR(a);a=b.Oe(3);var c=iR(b,5);this.l=iR(b,7);var d=jR(b,14);new oDa(new lD([d]));b=b.Oe(15);this.i=a+";"+c+";"+b}; qDa=function(a){this.u=a;this.l=!1;this.i=[]}; tX=function(a){for(;a.i.length&&!a.i[0].bk;){var b=a.i.shift(),c=b.rD;if(b=b.buffer)rDa(a.u.Bd,c,b);else{b=a.u;b.i[c].zH=!0;var d=void 0;null===(d=b.Bd.Zp)||void 0===d?void 0:sX(d,c)}}}; sDa=function(a,b){a.i.push({rD:b,bk:!1});a.l||tX(a)}; uX=function(a){this.Bd=a;this.u={};this.i={};this.l=this.iv=null;this.queue=new qDa(this)}; uDa=function(a,b){var c=b.totalLength;a.ea();var d=!1;switch(a.l){case 0:tDa(a,b).then(function(e){var f=a.Bd;f.jf("oprr");f.u.resolve(e);f.Y=!0;f.C.stop()},function(e){vX(a.Bd,e)}); break;case 2:a.Bd.jf("ormk");b=sD(b);a.queue.decrypt(b);a.ea();break;default:d=!0,a.ea()}a.Bd.ul&&a.Bd.Ja("ombup","id.11;pt."+a.l+";len."+c+(d?";ignored.1":""));a.l=null}; vDa=function(a,b,c){var d=uD(b,0);a.Bd.ul&&a.Bd.Ja("ombup","id.21;enc."+ +c+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=sD(b,1),d=a.u[d]||null,a.ea(),d&&(a=a.queue,a.i.push({rD:d,buffer:b,bk:c}),a.l||tX(a)))}; tDa=function(a,b){return g.D(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){e.Bd.jf("orpr");f=sD(b);var y=e.Bd;var B=e.iv;y=dDa()?eDa(y.B,f,B):Promise.resolve(y.B.decrypt(f,B));return g.w(x,y,2)}h=x.l;l=new nDa(new lD([h]));if(1!==l.onesieProxyStatus)return m={st:l.onesieProxyStatus},n=new g.mE("onesie.response.badproxystatus",!1,m),x.return(Promise.reject(n));if(200!==l.httpStatus)return p={st:l.httpStatus},r=new g.mE("onesie.response.badstatus",!1,p),x.return(Promise.reject(r)); t=l.body;u=g.A.TextDecoder?(new TextDecoder).decode(t):g.$a(t);e.ea();e.ea();return x.return(u)})})}; wX=function(){}; xX=function(a){var b=new $ua;a.l(b);return new Uint8Array(b.l.buffer,0,b.i)}; yX=function(a){var b=a.value;this.name=a.name;this.value=b}; zX=function(a){var b=a.httpHeaders,c=a.postBody;this.url=a.url;this.httpHeaders=b;this.postBody=c}; AX=function(a){this.i=a}; BX=function(a,b,c,d){this.i=a;this.encryptedClientKey=b;this.iv=c;this.hmac=d;this.serializeResponseAsJson=!0}; CX=function(a,b,c){this.u=a;this.i=b;this.onesieUstreamerConfig=c}; wDa=function(a,b){if(b+1<=a.totalLength){var c=uD(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=uD(a,b++);else if(2===c)c=uD(a,b++),a=uD(a,b++),a=(c&63)+64*a;else if(3===c){c=uD(a,b++);var d=uD(a,b++);a=uD(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=uD(a,b++);d=uD(a,b++);var e=uD(a,b++);a=uD(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),pD(a,c,4)?a=qD(a).getUint32(c-a.u,!0):(d=uD(a,c+2)+256*uD(a,c+3),a=uD(a,c)+256*(uD(a,c+1)+ 256*d)),b+=5;return[a,b]}; xDa=function(a){this.l=a;this.i=new lD}; yDa=function(a){var b=g.q(wDa(a.i,0));var c=b.next().value;var d=b.next().value;d=g.q(wDa(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).Fp.split(b),b=d.Jw,d=d.Fp,a.l(c,b),a.i=d,yDa(a))}; CDa=function(a,b,c){var d=a.getVideoData().isAd()?.5:.9;c=c*d-16E3;a=qBa(a.pg,a.videoData);d=[];b=g.q(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=zDa[e]||0;if(!(f&&f>c)){var h=ADa[e]||0;a.i&&h>a.i||d.push({itag:e,byterate:f})}}return d.sort(function(l,m){return BDa.indexOf(PD[l.itag])-BDa.indexOf(PD[m.itag])||m.byterate-l.byterate}).map(function(l){return l.itag})}; EDa=function(a){return[a].concat(g.ma(DDa[a]||[]))}; GDa=function(a){function b(h){return h.id} function c(h){return f[h]||[]} var d=JE(FDa,null,0,!1,!1,void 0),e=a.T().B;a=BH(a);var f=bB(a,e,d,function(){return!0}); d=gB(a).map(c).flat();return{video:kB(a).map(c).flat().map(b),audio:d.map(b)}}; HDa=function(a,b){var c=this;this.i=a;this.playerRequest=b;this.xhr=null;this.u=new aT;this.Y=this.K=!1;this.C=new g.J(this.nP,1E4,this);this.U=!1;this.l=this.i.T();this.videoData=this.i.getVideoData();this.ul=g.CH(this.i.getVideoData());this.J=this.l.rf;this.B=new qX(this.J.i);this.X=new xDa(function(d,e){c.G.feed(d,e)}); g.S(this.l.experiments,"html5_onesie_media_bytes")&&NA()&&(this.Zp=new rX(this));this.G=new uX(this)}; rDa=function(a,b,c){var d;null===(d=a.Zp)||void 0===d?void 0:(d.ea(),a=d.me[b],a.We||(a.PG.start(),a.Gd.append(c),a.bytesReceived+=c.length,a.Yc&&a.Yc()))}; vX=function(a,b){var c;a.u.reject(b);a.C.stop();a.jf("ore");null===(c=a.xhr)||void 0===c?void 0:c.abort()}; IDa=function(a){var b=a.xhr;102400Math.random())try{g.Ux(new g.Gv("b/152131571",btoa(f)))}catch(B){}return y.return(Promise.reject(new g.mE(x,!0,{backend:"gvi"})))}})})}; RDa=function(a,b){return g.D(this,function d(){var e,f,h,l,m,n,p,r,t,u,x,y,B;return g.z(d,function(G){if(1==G.i)return a.fetchType="gvi",e=a.T(),(l=eta(a))?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=cs(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.$E(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n),0< Object.keys(m).length&&(f.headers=m),p=(0,g.P)(),r=function(H){if(!a.Ha()){H=H?H.status:-1;var I=400===H||429===H,M=((0,g.P)()-p).toFixed();M={backend:"gvi",rc:""+H,rt:M};var L="manifest.net.connect";429===H?L="auth":200n.l&&3!==n.i.l.getVisibilityState()&& FBa(n)}m.qoe&&(m=m.qoe,m.Aa&&0>m.u&&m.i.i.Ob&&PBa(m));g.T(l.u.experiments,"html5_background_quality_cap")&&l.l&&FX(l);l.u.Ik&&!l.videoData.backgroundable&&l.i&&!l.zf()&&(l.isBackground()&&l.i.tv()?(l.Ja("bgmobile","suspend"),l.Jl(!0)):l.isBackground()||GX(l)&&l.Ja("bgmobile","resume"))}; this.ea();this.Y=new KW(function(){return l.getCurrentTime()},function(){return l.getPlaybackRate()},function(){return l.getPlayerState()},function(m,n){m!==g.Iz("endcr")||g.U(l.playerState,32)||kT(l); e(m,n,l.playerType)}); g.F(this,this.Y);UDa(this,function(){return{}}); VDa(this);lxa(this.Fe);this.visibility.subscribe("visibilitystatechange",this.Fe);WDa(this);!this.Z("html5_log_coat_killswitch")&&this.Z("html5_high_res_logging")&&(a=uCa())&&this.Ja("cblt",a)}; UDa=function(a,b){!a.C||a.C.Ha();a.C=new g.JW(new IW(a.videoData,a.u,a,b))}; VDa=function(a){!a.G||a.G.Ha();a.G=new gW(a.videoData,a.u,a.visibility);a.G.subscribe("newelementrequired",function(b){return IX(a,b)}); a.G.subscribe("qoeerror",a.wz,a);a.G.subscribe("playbackstalledatstart",function(){return a.W("playbackstalledatstart")}); a.G.subscribe("signatureexpiredreloadrequired",function(){return a.W("signatureexpired")}); a.G.subscribe("releaseloader",function(){JX(a)}); a.G.subscribe("releasevideo",function(){a.Jl()}); a.G.subscribe("pausevideo",function(){a.pauseVideo()}); a.G.subscribe("clienttemp",a.Ja,a);a.G.subscribe("highrepfallback",a.rR,a);a.G.subscribe("playererror",a.Hf,a);a.G.subscribe("nonfatalerror",function(b){a.W("nonfatalerror",b)}); a.G.subscribe("removedrmplaybackmanager",function(){KX(a)}); a.G.subscribe("formatupdaterequested",function(){LX(a)}); a.G.subscribe("reattachvideosourcerequired",function(){XDa(a)})}; MX=function(a){var b=a.C;b.u&&b.u.send();if(b.qoe){var c=b.qoe;if(c.C){"PL"===c.hd&&(c.hd="N");var d=g.jT(c.i);g.qW(c,d,"vps",[c.hd]);c.G||(0<=c.u&&(c.l.user_intent=[c.u.toString()]),c.G=!0);c.va=!0;c.reportStats(d)}}if(b.l.videoData.enableServerStitchedDai)for(c=g.q(b.B.values()),d=c.next();!d.done;d=c.next())bCa(d.value);else b.i&&bCa(b.i);b.dispose();g.ef(a.C)}; OI=function(a){return a.i&&a.i.Ln()?a.i.ue():null}; NX=function(a){if(a.videoData.isValid())return!0;a.Hf("api.invalidparam",void 0,"invalidVideodata.1");return!1}; VS=function(a,b){b=void 0===b?!1:b;if(a.Jb&&a.Z("html5_match_codecs_for_gapless")){a.videoData.Ua=!0;a.videoData.Kb=!0;var c;var d=null===(c=a.Jb.l)||void 0===c?void 0:c.audioTrack.i.info.i;a.videoData.Rz=d;var e;d=null===(e=a.Jb.l)||void 0===e?void 0:e.videoTrack.i.info.i;a.videoData.Tz=d}a.Da=b;!NX(a)||a.ma.started?g.bG(a.u)&&a.videoData.isLivePlayback&&a.ma.started&&!a.ma.isFinished()&&!a.Da&&a.xA():(a.ma.start(),b=a.C,g.jT(b.l),b.qoe&&NBa(b.qoe),a.xA())}; YDa=function(a){var b=a.videoData;TDa(a).then(void 0,function(c){a.videoData!==b||b.Ha()||(c=oE(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Hf("auth",unescape(a.videoData.errorReason),g.nE(c.details),a.videoData.errorDetail,a.videoData.Qh||void 0):a.handleError(c))})}; oxa=function(a,b){a.Ya=b;a.l&&(a=a.l,b=new g.LV(b),a.K=b,a.u&&(a.u.Y=b))}; aEa=function(a){if(!g.U(a.playerState,128))if(a.videoData.isLoaded(),a.Ac=!0,a.ea(),4!==a.playerType&&(a.X=g.rb(a.videoData.Y)),NH(a.videoData)){OX(a).then(function(){a.Ha()||(a.Da&&(a.Z("embeds_enable_preloadvideobyplayervars_startseconds_fix")&&a.Lb(DK(DK(a.playerState,512),1)),GX(a)),ZDa(a,a.videoData),a.ma.i=!0,PX(a,"dataloaded"),a.xa.started?QX(a):a.Da&&!a.Z("embeds_enable_preloadvideobyplayervars_startseconds_fix")&&a.Lb(DK(DK(a.playerState,512),1)),EBa(a.pg,a.U))}); a.Z("html5_log_media_perf_info")&&a.Ja("loudness",""+a.videoData.Ji.toFixed(3),!0);var b=bna(a.videoData);b&&a.Ja("playerResponseExperiment",b,!0);$Da(a)}else PX(a,"dataloaded")}; OX=function(a){JX(a);a.U=null;var b=xCa(a.u,a.videoData,a.zf());a.Pa=b;a.Pa.then(function(c){bEa(a,c)},function(c){a.Ha()||(c=oE(c),a.visibility.isBackground()?(RX(a,"vp_none_avail"),a.Pa=null,a.ma.reset()):(a.ma.i=!0,a.Hf(c.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.nE(c.details))))}); return b}; LX=function(a){a.ea();OX(a).then(function(){return GX(a)}); g.HK(a.playerState)&&a.playVideo()}; bEa=function(a,b){if(!a.Ha()&&!b.videoData.Ha()&&(a.ea(),a.U=b,ICa(a.B,a.U),a.videoData.isLivePlayback&&(0b.startSeconds&&(b=b.endSeconds,a.va&&(a.removeCueRange(a.va),a.va=null),a.va=new g.Fz(1E3*b,0x7ffffffffffff),a.va.namespace="endcr",a.addCueRange(a.va))}; WX=function(a,b,c,d){a.videoData.l=c;d&&dEa(a,b,d);var e=(d=g.VX(a))?d.kc():"";d=a.C;c=new lBa(a.videoData,c,b,e);if(d.qoe){d=d.qoe;e=g.jT(d.i);g.qW(d,e,"vfs",[c.i.id,c.l,d.jb,c.reason]);d.jb=c.i.id;var f=d.i.l.getPlayerSize();if(01E3*p);n&&(l=Math.min(l,m))}m=g.T(b.i.experiments,"html5_random_playback_cap"); p=/[a-h]$/;m&&p.test(c.videoData.clientPlaybackNonce)&&(l=Math.min(l,m));(m=g.T(b.i.experiments,"html5_not_vp9_supported_quality_cap"))&&!$D('video/webm; codecs="vp9"')&&(l=Math.min(l,m));if(p=m=g.T(b.i.experiments,"html5_hfr_quality_cap"))a:{p=c.i;if(p.i)for(p=g.q(p.videoInfos),n=p.next();!n.done;n=p.next())if(32l&&0!==l&&b.i===l)){1b.i;e=a.l.Ua&&!qE();c||d||b||e?(a.Ja("reattachOnConstraint",c?"u":d?"drm":e?"codec":"perf"), a.W("reattachrequired")):g.Eq(a.Y)}}}; FX=function(a){a.Z("html5_nonblocking_media_capabilities")?ZX(a):TX(a)}; cEa=function(a){a.Z("html5_probe_media_capabilities")&&nma(a.videoData.u);dka(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.Bsa,e=Asa(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Wj:c.Wj});d.B=e;d.yj=b.Z("html5_disable_codec_for_playback_on_error");d.Fi=b.Z("html5_max_drift_per_track_secs")||b.Z("html5_rewrite_manifestless_for_sync")||b.Z("html5_check_segnum_discontinuity");d.Vb=b.Z("html5_unrewrite_timestamps"); d.Kb=b.Z("html5_stop_overlapping_requests");d.mf=g.T(b.experiments,"html5_min_readbehind_secs");d.Qk=g.T(b.experiments,"html5_min_readbehind_cap_secs");d.Pk=g.T(b.experiments,"html5_max_readbehind_secs");d.Rp=g.S(b.experiments,"html5_trim_future_discontiguous_ranges");d.rj=b.Z("html5_append_init_while_paused");d.Id=g.T(b.experiments,"html5_max_readahead_bandwidth_cap");d.sf=g.T(b.experiments,"html5_post_interrupt_readahead");d.K=g.T(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs"); d.Ob=g.T(b.experiments,"html5_subsegment_readahead_timeout_secs");d.Hn=g.T(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.Nb=g.T(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.In=g.T(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Ah=g.T(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.Jn=g.T(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.rf=b.Z("html5_peak_shave");d.Kp=b.Z("html5_restrict_streaming_xhr_on_sqless_requests"); d.Nk=g.T(b.experiments,"html5_max_headm_for_streaming_xhr");d.Tk=b.Z("html5_pipeline_manifestless_allow_nonstreaming");d.Uo=b.Z("html5_prefer_server_bwe3");d.Bh=1024*g.T(b.experiments,"html5_video_tbd_min_kb");d.Jk=b.Z("html5_last_slice_transition");d.Fn=b.Z("html5_store_xhr_headers_readable");d.Gj=b.Z("html5_enable_packet_train_response_rate");d.qb=g.T(b.experiments,"html5_probe_primary_delay_base_ms")||d.qb;d.qf=b.Z("html5_no_placeholder_rollbacks");d.Gn=b.Z("html5_subsegment_readahead_enable_mffa"); b.Z("html5_allow_video_keyframe_without_audio")&&(d.Pa=!0);d.uf=b.Z("html5_reattach_on_stuck");d.cq=b.Z("html5_webm_init_skipping");d.yf=g.T(b.experiments,"html5_request_size_padding_secs")||d.yf;d.Ac=b.Z("html5_abs_buffer_health");d.Ik=b.Z("html5_interruption_resets_seeked_time");d.Jh=g.T(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.Jh;d.gh=b.Z("html5_explicitly_dispose_xhr");d.Hp=b.Z("html5_restart_on_unexpected_detach");d.Lp=b.Z("html5_rewrite_manifestless_for_continuity");d.cd= g.T(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.dd=g.T(b.experiments,"html5_max_drift_per_track_secs");d.Mp=b.Z("html5_rewrite_manifestless_for_sync");d.Jb=g.T(b.experiments,"html5_static_abr_resolution_shelf");d.wj=!b.Z("html5_encourage_array_coalescing");d.Ii=b.Z("html5_crypto_period_secs_from_emsg");d.zj=b.Z("html5_disable_reset_on_append_error");d.Kj=b.Z("html5_filter_non_efficient_formats_for_safari");d.gi=b.Z("html5_format_hybridization");d.Ci=b.Z("html5_abort_before_separate_init"); d.Np=b.Z("html5_serialize_server_stitched_ad_request");d.va=b.Z("html5_resume_streaming_requests");d.nf=b.Z("html5_never_pause_appends");d.Rk=g.T(b.experiments,"html5_min_startup_buffered_media_duration_secs");d.Ij=b.Z("html5_mfl_extend_max_request_time");d.Bb=b.Z("html5_reattach_on_quota_exceeded");b.Z("html5_media_common_config_killswitch")||(d.C=c.maxReadAheadMediaTimeMs/1E3||d.C,e=b.schedule,e.u.Yf()===e.policy.u?d.U=10:d.U=c.minReadAheadMediaTimeMs/1E3||d.U,d.Gc=c.readAheadGrowthRateMs/1E3|| d.Gc);Bl&&(d.X=41943040);d.Ua=!xE();g.bG(b)||!xE()?(e=b.experiments,d.G=8388608,d.J=524288,d.vj=5,d.bb=2097152,d.ma=1048576,d.qp=1.5,d.Sk=!1,d.Ib=4587520,kt()&&(d.Ib=786432),d.l*=1.1,d.u*=1.1,d.Hb=!0,d.X=d.G,d.eb=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.aj&&ft("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.G=20971520,d.J=1572864,e&&(d.Ib=812500,d.xc=1E3,d.Sp=5,d.ma=2097152));!b.Z("html5_disable_firefox_init_skipping")&& g.bj&&(d.Hb=!0);b.supportsGaplessAudio()||(d.Bj=!1);KF&&(d.Ga=!0);ot()&&(d.uh=!0);var f;e=null===(f=c.i)||void 0===f?void 0:fB(f);if(GH(c)){d.Aa=b.Z("html5_used_segment_info_cuepoint");d.Hk=!0;d.En=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.Z("html5_disable_low_pipeline"))d.Lk=2,d.Ok=4;d.al=c.defraggedFromSubfragments;c.Md&&(d.yb=!0);g.OH(c)&&(d.La=!1);d.Gi=g.EG(b)}c.isAd()&&(d.jb=0,d.bd=0);Hma(c)&&(d.Ea=!0,d.va&&b.Z("html5_aggressive_timeout_for_streaming_xhr")&&(d.xc=400,d.wb*= 3,d.Mk=2,d.lf=3,d.rh=1.4));d.Va=b.Z("html5_enable_subsegment_readahead_v3")||b.Z("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;d.Ya=c.X;d.Y=d.Ya&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||g.CH(c));vt()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.Z("html5_disable_move_pssh_to_moov")&&e&&(d.Hb=!1);e&&(d.uf=!1);var h=0;b.Z("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.Y.i=GH(c)?.5:0;if(!f.policy.i&&h&&(f=f.u,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;pa.videoData.endSeconds&&isFinite(b)&&(a.removeCueRange(a.va),a.va=null);ba.mediaSource.getDuration()&&uE(a.mediaSource,c)):uE(a.mediaSource,d);var e=a.l,f=a.mediaSource;e.U&&(e.ea(),DV(e),e.U=!1);e.ea();$za(e);if(!vE(f)){var h=e.videoTrack.i.info.mimeType+e.policy.Hj,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.qe&&(f.qe.webkitSourceAddId("0",l),f.qe.webkitSourceAddId("1",h));var t=new pE(p,f.qe,"0",OD(l),!1),u=new pE(r,f.qe,"1",OD(h),!0);f.i=t;f.l=u;g.F(f,t);g.F(f,u)}bV(e.videoTrack,f.l||null);bV(e.audioTrack,f.i||null);e.mediaSource=f;e.resume();px(f.i,e.Da,e);px(f.l,e.Da,e);e.fh();a.W("mediasourceattached");a.Id.stop()}}catch(x){g.Ux(x), a.handleError(new g.mE("fmt.unplayable",!0,{msi:"1",ename:x.name}))}})}; kEa=function(a){a.l?g.ah(a.l.seek(a.getCurrentTime()-a.Lc()),function(){}):cEa(a)}; IX=function(a,b){b=void 0===b?!1:b;return g.D(a,function d(){var e=this;return g.z(d,function(f){if(1==f.i)return e.l&&e.l.Ha()&&JX(e),e.W("newelementrequired"),b?g.w(f,OX(e),2):f.ub(2);g.U(e.playerState,8)&&e.playVideo();g.sa(f)})})}; ixa=function(a,b){a.Ja("newelem",b);IX(a)}; aY=function(a){a.K.B.l=(0,g.P)();g.U(a.playerState,32)||(a.Lb(DK(a.playerState,32)),g.U(a.playerState,8)&&a.pauseVideo(!0),a.W("beginseeking",a));a.Rb()}; uT=function(a){g.U(a.playerState,32)?(a.Lb(FK(a.playerState,16,32)),a.W("endseeking",a)):g.U(a.playerState,2)||a.Lb(DK(a.playerState,16));var b=a.K.B,c=a.videoData.clientPlaybackNonce;c&&!isNaN(b.i)&&(a=g.U(a.playerState,4)?"pbp":"pbs",CA("seek",["pbp","pbs"],b.i),g.DA("cpn",c,"seek"),isNaN(b.l)||EA("pl_ss",b.l,"seek"),EA(a,(0,g.P)(),"seek"),b.reset())}; FT=function(a){a=a.B;return a.u?QW(a.u):Infinity}; PX=function(a,b){a.W("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)}; eEa=function(a){g.Cb("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Va.N(this.i,b,this.tM,this)},a); a.u.uj&&a.i.Ln()&&(a.Va.N(a.i,"webkitplaybacktargetavailabilitychanged",a.FQ,a),a.Va.N(a.i,"webkitcurrentplaybacktargetiswirelesschanged",a.GQ,a))}; mEa=function(a){a.Z("html5_enable_timeupdate_timeout")&&!a.videoData.isLivePlayback&&lEa(a)&&a.Ob.start()}; lEa=function(a){if(!a.i)return!1;var b=a.i.getCurrentTime();a=a.i.getDuration();return!!(1a-.3)}; nEa=function(a){window.clearInterval(a.yb);dY(a)||(a.yb=ns(function(){return dY(a)},100))}; dY=function(a){var b=a.i;b&&a.jb&&!a.videoData.Ya&&!IA("vfp",a.K.timerName)&&2<=b.eh()&&!b.ck()&&0b.l&&(b.l=c,b.delay.start()),b.u=c,b.C=c);g.Eq(a.xc);a.W("playbackstarted");g.fu()&&((a=g.Ia("yt.scheduler.instance.clearPriorityThreshold"))? a():hu(0))}; oEa=function(a){var b=a.getCurrentTime(),c=a.videoData;!IA("pbs",a.K.timerName)&&Vz.measure&&Vz.getEntriesByName&&(Vz.getEntriesByName("mark_nr")[0]?HA("mark_nr"):HA());c.videoId&&a.K.info("docid",c.videoId);c.eventId&&a.K.info("ei",c.eventId);c.clientPlaybackNonce&&a.K.info("cpn",c.clientPlaybackNonce);0a.rf+6283){if(!(!a.isAtLiveHead()||a.videoData.i&&OE(a.videoData.i))){var b=a.C;if(b.qoe){b=b.qoe;var c=b.i.l.Cw(),d=g.jT(b.i);MBa(b,d,c);c=c.C;isNaN(c)||g.qW(b,d,"e2el",[c.toFixed(3)])}}g.EG(a.u)&&a.Ja("rawlat","l."+PT(a.Nb,"rawlivelatency").toFixed(3));a.rf=Date.now()}a.videoData.l&&UD(a.videoData.l)&&(b=OI(a))&&b.videoHeight!==a.Tc&&(a.Tc=b.videoHeight,WX(a,"a",iEa(a,a.videoData.La)))}; iEa=function(a,b){if("auto"===b.i.fb().quality&&UD(b.Ue())&&a.videoData.qb)for(var c=g.q(a.videoData.qb),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.Tc&&"auto"!==d.i.fb().quality)return d.Ue();return b.Ue()}; EX=function(a){if(!a.videoData.isLivePlayback||!a.videoData.i||!a.l)return NaN;var b=GH(a.videoData)?a.l.Aa.Yf()||0:a.videoData.i.ma;return Date.now()/1E3-a.getIngestionTime()-b}; qEa=function(a){!a.Z("html5_ignore_airplay_events_on_new_video_killswitch")&&a.i&&a.i.zf()&&(a.wb=(0,g.P)());a.u.Qk?g.ms(function(){eY(a)},0):eY(a)}; eY=function(a){if(a.i)try{a.qb=a.i.playVideo()}catch(c){RX(a,"err."+c)}if(a.qb){var b=a.qb;b.then(void 0,function(c){a.ea();if(!g.U(a.playerState,4)&&!g.U(a.playerState,256)&&a.qb===b)if(c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))a.ea();else{var d="promise";c&&c.name&&(d+=";m."+c.name);RX(a,d);a.mf=!0;a.u.Z("embeds_enable_autoplayblocked_ping_fix")&&(a.videoData.OF=!0)}})}}; RX=function(a,b){g.U(a.playerState,128)||(a.Lb(FK(a.playerState,1028,9)),a.Ja("dompaused",b),a.W("onDompaused"))}; GX=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=cY(a),null===(b=a.l)||void 0===b?void 0:b.resume()):(JX(a),a.videoData.La&&(d=a.videoData.La.Rr()));b=d;d=a.i.tv();c=!1;d&&null!==b&&b.i===d.i||(a.K.tick("vta"),JA("vta","video_to_ad"),0=c&&b<=a}; JEa=function(a,b){var c=a.Wa.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}; BY=function(a,b,c){if(a.Md(c)){c=c.getVideoData();if(a.C)c=b;else{a=a.X;for(var d=g.q(a.i),e=d.next();!e.done;e=d.next())if(e=e.value,c.Wc===e.Wc){b+=e.Ic/1E3;break}d=b;a=g.q(a.i);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Wc===e.Wc)break;var f=e.Ic/1E3;if(fd?e=!0:1Math.random()}; $Y=function(a){var b;(b=a.i)||(a=a.Qa.get(),b=g.S(a.I.T().experiments,"html5_force_debug_data_for_client_tmp_logs")||g.S(a.I.T().experiments,"html5_force_debug_data_for_client_tmp_logs_live_infra"));return b}; cZ=function(a,b,c,d){g.E.call(this);this.Ed=b;this.Zb=c;this.Qa=d;this.i=a(this,this,this,this,this);g.F(this,this.i);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.F(this,b.value)}; dZ=function(a,b){a.Ed.add(b);g.F(a,b)}; qoa=function(a,b){mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.q(a.Ed);for(var c=a.next();!c.done;c=a.next())c.value.yh(b)}; roa=function(a,b){mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.q(a.Ed);for(var c=a.next();!c.done;c=a.next())c.value.Bf(b)}; Ina=function(a,b){mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.q(a.Ed);for(var c=a.next();!c.done;c=a.next())c.value.Cf(b)}; fZ=function(a,b,c){R(c,b,void 0,void 0,c.Rn);eZ(a,b,!0)}; DFa=function(a,b,c){if(gZ(a.i,b))if(hZ(a.i,b).B=c?"filled":"not_filled",null===c){iZ(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.q(a.Ed);for(var d=c.next();!d.done;d=c.next())d.value.jk(b);eZ(a,b,!1)}else{iZ(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.q(a.Ed);for(d=e.next();!d.done;d=e.next())d.value.lk(b);if(!BFa(a.Qa.get())||gZ(a.i,b))if(hZ(a.i,b).C)eZ(a,b,!1);else{iZ(a.Zb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.i;if(!hZ(f,b))throw new jZ("Unknown slotState for onLayout"); if(!f.zd.yl.get(b.ob))throw new jZ("No LayoutRenderingAdapterFactory registered for slot of type: "+b.ob);if(0==c.ud.length&&0==c.Qc.length&&0==c.Nc.length&&0==c.Rc.length)throw new jZ("Layout has no exit triggers.");kZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.ud);kZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Qc);kZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Nc);kZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Rc)}catch(n){a.cf(b,c,n);eZ(a,b,!0);return}hZ(a.i,b).G=!0;try{var h= a.i,l=hZ(h,b),m=h.zd.yl.get(b.ob).get().He(h.B,h.l,b,c);m.init();l.layout=c;if(l.u)throw new jZ("Already had LayoutRenderingAdapter registered for slot");l.u=m;lZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.ud);lZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Qc);lZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Nc);lZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Rc)}catch(n){mZ(a,b,!0);eZ(a,b,!0);a.cf(b,c,n);return}iZ(a.Zb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.q(a.Ed); for(d=e.next();!d.done;d=e.next())d.value.dj(b,c);mZ(a,b,!1);CFa(a,b)}}}; nZ=function(a,b,c){iZ(a.Zb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.q(a.Ed);for(var d=a.next();!d.done;d=a.next())d.value.dj(b,c)}; oZ=function(a,b,c){iZ(a.Zb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.Ed);for(var d=a.next();!d.done;d=a.next())d.value.Hc(b,c)}; lK=function(a,b,c,d){iZ(a.Zb,wFa(d),b,c);a=g.q(a.Ed);for(var e=a.next();!e.done;e=a.next())e.value.Oc(b,c,d)}; mZ=function(a,b,c){if(gZ(a.i,b)&&(hZ(a.i,b).G=!1,!BFa(a.Qa.get())||!c)){c=pZ;b=hZ(a.i,b);var d=[].concat(g.ma(b.K));lb(b.K);c(a,d)}}; pZ=function(a,b){b.sort(function(f,h){function l(m){R("TriggerCategoryOrder enum does not contain trigger category: "+m)} return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):uFa(f.category,l)-uFa(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,gZ(a.i,d.slot))if(hZ(a.i,d.slot).G)hZ(a.i,d.slot).K.push(d);else{EFa(a.Zb,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.q(FFa);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))&&GFa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&HFa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&IFa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&& JFa(a,c)}; GFa=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&qZ(a.i,d.slot)&&KFa(a,d.slot,d.layout,c)}; HFa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())eZ(a,c.value.slot,!1)}; IFa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(hZ(a.i,c.slot).B){case "not_filled":var d=!0;break a;default:d=!1}d&&(mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.i.Qs(c.slot))}}; JFa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.q(a.Ed),e=d.next();!e.done;e=d.next())e.value.gj(c.slot);try{var f=a.i,h=c.slot,l=hZ(f,h);if(!l)throw new rZ("Got enter request for unknown slot");if(!l.l)throw new rZ("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.i)throw new rZ("Tried to enter a slot from stage: "+l.i);if(sZ(l))throw new rZ("Got enter request for already active slot"); for(var m=g.q(tZ(f,h.ob+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&sZ(p))throw new rZ("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.i});}}catch(r){R(r,c.slot,uZ(a.i,c.slot),void 0,r.Rn);eZ(a,c.slot,!0);continue}c=hZ(a.i,c.slot);"scheduled"!==c.i&&vZ(c.slot,c.i,"enterSlot");c.i="enter_requested";c.l.RA()}}; CFa=function(a,b){var c;gZ(a.i,b)&&sZ(hZ(a.i,b))&&uZ(a.i,b)&&!qZ(a.i,b)&&(iZ(a.Zb,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=uZ(a.i,b))&&void 0!==c?c:void 0),a=hZ(a.i,b),"entered"!==a.i&&vZ(a.slot,a.i,"enterLayoutForSlot"),a.i="rendering",a.u.startRendering(a.layout))}; KFa=function(a,b,c,d){if(gZ(a.i,b)){var e=a.Zb,f;var h=(null===(f=vFa.get(d))||void 0===f?void 0:f.er)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";iZ(e,h,b,c);a=hZ(a.i,b);"rendering"!==a.i&&vZ(a.slot,a.i,"exitLayout");a.i="rendering_stop_requested";a.u.Pe(c,d)}}; eZ=function(a,b,c){if(gZ(a.i,b)){a:switch(hZ(a.i,b).i){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(hZ(a.i,b).i){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(hZ(a.i,b).C=!0,!c))return;if(sZ(hZ(a.i,b)))hZ(a.i,b).C=!0,LFa(a,b,c);else{a:switch(hZ(a.i,b).B){case "fill_requested":c=!0;break a;default:c=!1}if(c)hZ(a.i,b).C=!0,gZ(a.i,b)&&(mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=hZ(a.i,b),b.B="fill_cancel_requested",b.J.rA());else{c= uZ(a.i,b);mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=hZ(a.i,b);var e=b.Wb,f=d.ma.get(e.triggerId);f&&(f.Di(e),d.ma.delete(e.triggerId));e=g.q(b.uc);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d.Y.get(f.triggerId);h&&(h.Di(f),d.Y.delete(f.triggerId))}e=g.q(b.pc);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.U.get(f.triggerId))h.Di(f),d.U.delete(f.triggerId);null!=d.layout&&(e=d.layout,wZ(d,e.ud),wZ(d,e.Qc),wZ(d,e.Nc),wZ(d,e.Rc));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;hZ(d,b)&&(d=tZ(d,b.ob+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.q(a.Ed);for(d=a.next();!d.done;d=a.next())d=d.value,d.hj(b),c&&d.gk(b,c)}}}}; LFa=function(a,b,c){if(gZ(a.i,b)&&sZ(hZ(a.i,b))){var d=uZ(a.i,b);if(d&&qZ(a.i,b))KFa(a,b,d,c?"error":"abandoned");else{mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=hZ(a.i,b);if(!e)throw new rZ("Cannot exit slot it is unregistered");"enter_requested"!==e.i&&"entered"!==e.i&&"rendering"!==e.i&&vZ(e.slot,e.i,"exitSlot");e.i="exit_requested";if(void 0===e.l)throw e.i="scheduled",new rZ("Cannot exit slot because adapter is not defined");e.l.WA()}catch(f){R(f,b,void 0,void 0,f.Rn)}}}}; MFa=function(a){this.slot=a;this.ma=new Map;this.Y=new Map;this.U=new Map;this.X=new Map;this.u=this.layout=this.l=this.J=void 0;this.G=this.C=!1;this.K=[];this.i="not_scheduled";this.B="not_filled"}; sZ=function(a){return"enter_requested"===a.i||a.isActive()}; jZ=function(a,b,c){c=void 0===c?!1:c;Va.call(this,a);this.Rn=c;this.args=[];b&&this.args.push(b)}; rZ=function(a,b,c){c=void 0===c?!1:c;Va.call(this,a);this.Rn=c;this.args=[];b&&this.args.push(b)}; xZ=function(a,b,c,d,e){g.E.call(this);this.zd=a;this.u=b;this.C=c;this.B=d;this.l=e;this.i=new Map}; tZ=function(a,b){return(a=a.i.get(b))?a:new Map}; hZ=function(a,b){return tZ(a,b.ob+"_"+b.slotPhysicalPosition).get(b.slotId)}; NFa=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}; gZ=function(a,b){return null!=hZ(a,b)}; qZ=function(a,b){a=hZ(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}; uZ=function(a,b){a=hZ(a,b);return null!=a.layout?a.layout:null}; yZ=function(a,b,c){if(0==c.length)throw new rZ("No "+OFa.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.zd.Dh.get(d.triggerType))throw new rZ("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);}; kZ=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.zd.Dh.get(d.triggerType))throw new jZ("No trigger adapter registered for "+OFa.get(b)+" trigger of type: "+d.triggerType);}; lZ=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.zd.Dh.get(e.triggerType);f.di(c,e,b.slot,b.layout?b.layout:null);b.X.set(e.triggerId,f)}}; wZ=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.X.get(c.triggerId);d&&(d.Di(c),a.X.delete(c.triggerId))}}; vZ=function(a,b,c){R("Slot stage was "+b+" when calling method "+c,a)}; PFa=function(a){return zZ(a.hp).concat(zZ(a.Dh)).concat(zZ(a.il)).concat(zZ(a.Ol)).concat(zZ(a.yl))}; zZ=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Ui&&b.push(c);return b}; AZ=function(a){g.E.call(this);this.i=a;this.l=QFa(this)}; QFa=function(a){var b=new cZ(function(c,d,e,f){return new xZ(a.i.zd,c,d,e,f)},new Set(PFa(a.i.zd).concat(a.i.listeners)),a.i.Zb,a.i.Qa); g.F(a,b);return b}; BZ=function(a){g.E.call(this);var b=this;this.l=a;this.i=null;g.gf(this,function(){g.ef(b.i);b.i=null})}; Y=function(a){return new BZ(a)}; RFa=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)}; SFa=function(a){return null!=a.linearAd&&null!=a.adVideoStart}; VFa=function(a,b,c,d,e,f,h){b=TFa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof rZ?b:UFa(a,d,e,b,c);return a instanceof rZ?a:[a]}; WFa=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)}; $Fa=function(a,b,c,d,e){b=g.q(b);for(var f=b.next();!f.done;f=b.next())f=f.value,CZ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return XFa(n)}); a=[];b={};f=g.q(f);for(var h=f.next();!h.done;b={Op:b.Op},h=f.next()){b.Op=h.value;h={};for(var l=g.q(b.Op.hA),m=l.next();!m.done;h={Tl:h.Tl},m=l.next())h.Tl=m.value,m=function(n,p){return function(r){return n.Tl.AG(r,p.Op.instreamVideoAdRenderer.elementId,n.Tl.SF)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.Tl.gq?a.push(YFa(c,d,h.Tl.TF,e,b.Op.instreamVideoAdRenderer.elementId,h.Tl.adSlotLoggingData,m)):a.push(ZFa(c,d,e,b.Op.instreamVideoAdRenderer.elementId,h.Tl.adSlotLoggingData,m))}return a}; CZ=function(a,b,c){if(b=aGa(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=bGa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.Nw=c)}else R("InstreamVideoAdRenderer without externalVideoId")}}; aGa=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}; XFa=function(a){if(void 0===a.instreamVideoAdRenderer)return R("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.q(a.hA),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.AG)return!1;if(void 0===c.SF)return R("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.Nw||void 0===c.gq||a.Nw!==c.gq&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.gq)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return R("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:a.Nw,"matching APSR kind":c.gq}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.gq&&void 0===c.TF)return R("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0}; bGa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,Nw:void 0,adVideoId:b,hA:[]});return a.get(b)}; DZ=function(a,b,c,d,e,f,h){d?bGa(a,d).hA.push({TF:b,gq:c,SF:e,adSlotLoggingData:f,AG:h}):R("Companion AdPlacementSupportedRenderer without adVideoId")}; EZ=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}; FZ=function(a){var b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,B,G,H,I,M,L,da=(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);da=[].concat(g.ma((null===(f=a.playbackCommands)||void 0===f?void 0:f.instreamAdCompleteCommands)||[]),g.ma((null===da||void 0===da?void 0: da.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,A7:null===(y=a.playbackCommands)||void 0===y?void 0:y.clickthroughCommands,fullscreenCommands:null===(B=a.playbackCommands)||void 0===B?void 0:B.fullscreenCommands,activeViewViewableCommands:null===(G=a.playbackCommands)||void 0===G?void 0:G.activeViewViewableCommands, activeViewMeasurableCommands:null===(H=a.playbackCommands)||void 0===H?void 0:H.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null===(I=a.playbackCommands)||void 0===I?void 0:I.activeViewFullyViewableAudibleHalfDurationCommands,endFullscreenCommands:null===(M=a.playbackCommands)||void 0===M?void 0:M.endFullscreenCommands,abandonCommands:null===(L=a.playbackCommands)||void 0===L?void 0:L.abandonCommands,completeCommands:da}}; dGa=function(a,b,c,d,e,f,h){return function(l,m){return cGa(a,m.slotId,l,f,function(n,p){n=h(n);return GZ(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new zJ(c),d],c.adLayoutLoggingData)})}}; gGa=function(a,b,c,d,e,f,h){if(!eGa(a))return new rZ("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[fGa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=HZ(e.l.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",gb:"core"},r=new IZ(e.i,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Bc:new Map,ud:[r],Qc:[], Nc:[],Rc:[],gb:"core",Ia:new WY([new AJ(l)]),zc:n(p)}})]}; eGa=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}; jGa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]}; if(!$na(a))return function(){return new rZ("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})}; var h=a.playerOverlay.instreamSurveyAdRenderer,l=EZ(h);return 0>=l?function(){return new rZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=hGa(m,c,d,function(r){var t=n(r),u=r.slotId; r=FZ(h);u=HZ(e.l.get(),"LAYOUT_TYPE_SURVEY",u);var x={layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",gb:"core"},y=new IZ(e.i,d),B=new JZ(e.i,u),G=new KZ(e.i,u),H=new iGa(e.i);return{layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",Bc:new Map,ud:[y,H],Qc:[B],Nc:[],Rc:[G],gb:"core",Ia:new WY([new yJ(h),new qJ(b),new XJ(l/1E3),new $J(r)]),zc:t(x),adLayoutLoggingData:h.adLayoutLoggingData}}); m=gGa(a,c,p.slotId,d,e,m,n);return m instanceof rZ?m:[p].concat(g.ma(m))}}; mGa=function(a,b,c,d,e){var f=[];try{var h=[],l=kGa(a,d,function(t){t=lGa(t.slotId,c,b,e(t),d);h=t.yU;return t.rO}); 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 rZ)return r;f.push.apply(f,g.ma(r))}}catch(t){return new rZ(t,{errorMessage:t.message,AdPlacementRenderer:c})}return f}; lGa=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={uK:h,vK:0,vU:n};l=l.map(function(t){return nGa(a,t,p,c,d,f,e,m)}).map(function(t, u){u=new iI(u,n,m); return t(u)}); var r=l.map(function(t){return t.sO}); return{rO:oGa(c,a,h,r,f,new Map([["ad_placement_start",b.placementStartPings||[]],["ad_placement_end",b.placementEndPings||[]]]),pGa(b),d,m),yU:l.map(function(t){return t.xU})}}; nGa=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=Yr(m.playerVars);b=Number(n.length_seconds);if(isNaN(b))throw new TypeError("Expected valid length seconds in player vars");var p=qGa(n,m);if(!p)throw new TypeError("Expected valid video id in IVAR");var r=c.uK,t=c.vK,u=Number(m.trimmedMaxNonSkippableAdDurationMs),x=isNaN(u)?b:Math.min(b, u/1E3),y=Math.min(r+1E3*x,l);c.uK=y;c.vK++;c.vU.push(x);var B=m.pings?jI(m.pings):new Map;c=m.playerOverlay||{};var G=void 0===c.instreamAdPlayerOverlayRenderer?null:c.instreamAdPlayerOverlayRenderer;return function(H){2<=H.l&&(n.slot_pos=H.i);n.autoplay="1";var I=m.adLayoutLoggingData,M=m.sodarExtensionData,L=HZ(d.l.get(),"LAYOUT_TYPE_MEDIA",a),da={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};H={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",Bc:B,ud:[],Qc:[],Nc:[],Rc:[],gb:"adapter",Ia:new WY([new uJ(h), new JJ(x),new KJ(n),new MJ(r),new NJ(y),new OJ(t),new FJ({current:null}),G&&new vJ(G),new qJ(f),new sJ(p),new rJ(H),M&&new LJ(M)].filter(rGa)),zc:e(da),adLayoutLoggingData:I};I=jGa(m,f,h,H.layoutId,d);return{sO:H,xU:I}}}; qGa=function(a,b){if(a=a.video_id)return a;if(b=b.externalVideoId)return b}; pGa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a}; tGa=function(a,b,c,d,e,f,h,l){a=sGa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=HZ(b.l.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",gb:"core"},r=new Map,t=e.impressionUrls;t&&r.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Bc:r,ud:[new LZ(b.i,n)],Qc:[],Nc:[],Rc:[],gb:"core",Ia:new WY([new RJ(e),new qJ(c)]),zc:m(p)}}); return a instanceof rZ?a:[a]}; vGa=function(a,b,c,d,e,f,h,l){a=uGa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var r=e.contentSupportedRenderer;r?r.textOverlayAdContentRenderer?(r=HZ(b.l.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=MZ(b,r,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,NZ(b,n,p))):r.enhancedTextOverlayAdContentRenderer?(r=HZ(b.l.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=MZ(b,r,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,NZ(b,n,p))):r.imageOverlayAdContentRenderer?(r=HZ(b.l.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", p),n=NZ(b,n,p),n.push(new OZ(b.i,r)),n=MZ(b,r,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new jZ("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new jZ("InvideoOverlayAdRenderer without contentSupportedRenderer");return n}); return a instanceof rZ?a:[a]}; yGa=function(a,b,c,d,e,f,h){var l=Number(d.durationMilliseconds);return isNaN(l)?new rZ("Expected valid duration for AdActionInterstitialRenderer."):function(m){return wGa(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 xGa(a,n,e,function(p,r){var t=p.slotId;p=h(p);t=HZ(b.l.get(),"LAYOUT_TYPE_ENDCAP",t);return GZ(b, t,r,c,p,"LAYOUT_TYPE_ENDCAP",[new wJ(d)])})},d.adLayoutLoggingData,f)}}; zGa=function(a,b,c,d){if(!c.playerVars)return new rZ("No playerVars available in AdIntroRenderer.");var e=Yr(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=HZ(a.l.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};return{Ep:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Bc:new Map,ud:[],Qc:[],Nc:[],Rc:[],gb:"adapter",Ia:new WY([new QJ({}),new qJ(b),new FJ({current:null}),new KJ(e)]),zc:f(l)},mq:[new PZ(a.i,h)],jo:[],Tv:[]}}}; BGa=function(a,b,c,d,e,f,h,l){var m=EZ(e);if(!bK(e))return new rZ("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new rZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=dGa(a,b,e,f,c,d,h);return n instanceof rZ?n:function(p){return AGa(b,p.slotId,c,m,FZ(e),h(p),n,l)}}; CGa=function(a,b,c,d,e,f,h){function l(p){return xGa(a,p,d,m)} function m(p,r){var t=p.slotId;p=h(p);t=HZ(b.l.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return GZ(b,t,r,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new xJ(e),f],e.adLayoutLoggingData)} if(!(!isNaN(Number(e.timeoutSeconds))&&e.text&&e.ctaButton&&e.ctaButton.buttonRenderer&&e.brandImage&&e.backgroundImage&&e.backgroundImage.thumbnailLandscapePortraitRenderer&&e.backgroundImage.thumbnailLandscapePortraitRenderer.landscape))return new rZ("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var n=1E3*e.timeoutSeconds;return function(p){var r={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},t= h(p);p=QZ(b,p.slotId,c,n,r,new Map,t,l);r=new CJ(p.CC);return{Ep:{layoutId:p.layoutId,layoutType:p.layoutType,Bc:p.Bc,ud:[],Qc:[],Nc:[],Rc:[],gb:p.gb,Ia:new WY([].concat(g.ma(p.Es),[r])),zc:p.zc,adLayoutLoggingData:p.adLayoutLoggingData},mq:[],jo:p.Nc,Tv:p.Rc,Vg:p.Vg}}}; GGa=function(a,b,c,d,e,f,h,l,m,n,p){function r(u){var x=new iI(0,[t.Gv]),y=DGa(t.playerVars,t.TJ,l,p,x);u=m(u);var B=n.get(t.Gy.externalVideoId);x=EGa(b,"core",t.Gy,c,y,t.Gv,f,x,u,B);return{layout:{layoutId:x.layoutId,layoutType:x.layoutType,Bc:x.Bc,ud:x.ud,Qc:x.Qc,Nc:x.Nc,Rc:x.Rc,gb:x.gb,Ia:x.Ia,zc:x.zc,adLayoutLoggingData:x.adLayoutLoggingData},Gl:[],pc:[]}} var t=RZ(e);if(t instanceof jZ)return new rZ(t);if(r instanceof rZ)return r;a=FGa(a,c,f,h,d,r);return a instanceof rZ?a:a.Gl.concat(a.GC)}; RZ=function(a){if(!a.playerVars)return new jZ("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 jZ("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=Yr(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new jZ("Expected valid length seconds in player vars"): {Gy:a,playerVars:b,TJ:a.playerVars,Gv:c}}; DGa=function(a,b,c,d,e){a.iv_load_policy=d;b=Yr(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){R(f)}c.xg&&(a.ctrl=c.xg);c.Ff&&(a.ytr=c.Ff);c.Yk&&(a.ytrcc=c.Yk);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Gh&&(a.vss_credentials_token_type=c.Gh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.l&&(a.slot_pos=e.i);a.autoplay="1";return a}; JGa=function(a,b,c,d,e,f,h,l,m,n,p){b=HGa(a,b,c,e,f,l,m,n,p);a:{e=g.q(e);for(l=e.next();!l.done;l=e.next())if(l.value.instreamSurveyAdRenderer){e=!0;break a}e=!1}e?(c=IGa(a,c,f,h),c instanceof rZ?d=c:(f=SZ(a.l.get(),"SLOT_TYPE_IN_PLAYER"),h=HZ(a.l.get(),"LAYOUT_TYPE_SURVEY",f),c.pc.push(new TZ(a.i,h)),a=b({slotId:c.slotId,ob:c.ob,slotPhysicalPosition:c.slotPhysicalPosition,gb:c.gb,Wb:c.Wb,uc:c.uc,pc:c.pc},{slotId:f,layoutId:h}),d=a instanceof rZ?a:{GC:{slotId:c.slotId,ob:c.ob,slotPhysicalPosition:c.slotPhysicalPosition, Wb:c.Wb,uc:c.uc,pc:c.pc,gb:c.gb,Ia:new WY([new TJ(a.layout)]),adSlotLoggingData:d},Gl:a.Gl})):d=FGa(a,c,f,h,d,b);return d instanceof rZ?d:d.Gl.concat(d.GC)}; HGa=function(a,b,c,d,e,f,h,l,m){return function(n,p){a:{b:{var r=[];for(var t=g.q(d),u=t.next();!u.done;u=t.next())if(u=u.value,u.instreamVideoAdRenderer){u=RZ(u.instreamVideoAdRenderer);if(u instanceof jZ){r=new rZ(u);break b}r.push(u.Gv)}}if(r instanceof rZ)p=r;else{t=0;u=[];for(var x=[],y=[],B=[],G=[],H=new GJ({current:null}),I=[],M=g.q(d),L=M.next();!L.done;L=M.next())if(L=L.value,L.adIntroRenderer){L=zGa(b,c,L.adIntroRenderer,h);if(L instanceof rZ){p=L;break a}L=L(n);u.push(L.Ep);x=[].concat(g.ma(L.mq), g.ma(x));y=[].concat(g.ma(L.jo),g.ma(y));L.Vg&&(I=[L.Vg].concat(g.ma(I)))}else if(L.instreamVideoAdRenderer){var da=RZ(L.instreamVideoAdRenderer);if(da instanceof jZ){p=new rZ(da);break a}var Ba=new iI(t,r);L=b;var za=da.Gy,ed=DGa(da.playerVars,da.TJ,f,m,Ba),We=h(n),oc=l.get(da.Gy.externalVideoId);da=EGa(L,"adapter",za,c,ed,da.Gv,e,Ba,We,oc);Ba=da.Qc;za.isCritical&&(Ba=[new PZ(L.i,da.layoutId)].concat(g.ma(Ba)));L={layoutId:da.layoutId,layoutType:da.layoutType,Bc:da.Bc,ud:[],Qc:[],Nc:[],Rc:[],gb:da.gb, Ia:da.Ia,zc:da.zc,adLayoutLoggingData:da.adLayoutLoggingData};za=Ba;da=da.Nc;t++;u.push(L);x=[].concat(g.ma(za),g.ma(x));y=[].concat(g.ma(da),g.ma(y))}else if(L.adActionInterstitialRenderer){L=yGa(a,b,c,L.adActionInterstitialRenderer,e,t,h);if(L instanceof rZ){p=L;break a}L=L(n);u.push(L.Ep);x=[].concat(g.ma(L.mq),g.ma(x));y=[].concat(g.ma(L.jo),g.ma(y));L.Vg&&(I=[L.Vg].concat(g.ma(I)))}else if(L.instreamSurveyAdRenderer){if(void 0===p){p=new rZ("Composite Survey must already have a Survey Bundle with required metadata.", {instreamSurveyAdRenderer:L.instreamSurveyAdRenderer});break a}L=BGa(a,b,c,e,L.instreamSurveyAdRenderer,H,h,p);if(L instanceof rZ){p=L;break a}L=L(n);u.push(L.Ep);L.Vg&&I.push(L.Vg);x=[].concat(g.ma(L.mq),g.ma(x));y=[].concat(g.ma(L.jo),g.ma(y));B=[].concat(g.ma(L.Tv),g.ma(B));G=[H].concat(g.ma(G))}else if(L.surveyTextInterstitialRenderer){L=CGa(a,b,c,e,L.surveyTextInterstitialRenderer,H,h);if(L instanceof rZ){p=L;break a}L=L(n);u.push(L.Ep);L.Vg&&I.push(L.Vg);y=[].concat(g.ma(L.jo),g.ma(y))}else{p= new rZ("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={wU:u,Qc:x,Rc:B,Nc:y,Es:G,Gl:I}}}p instanceof rZ?n=p:(B=n.slotId,r=p.wU,t=p.Qc,u=p.Nc,x=p.Rc,y=p.Es,n=h(n),B=HZ(b.l.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",B),G={layoutId:B,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"},n={layout:{layoutId:B,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Bc:new Map,ud:[new LZ(b.i,B)],Qc:t,Nc:u,Rc:x,gb:"core",Ia:new WY([new HJ(r)].concat(g.ma(y))),zc:n(G)},Gl:p.Gl});return n}}; LGa=function(a,b,c,d,e,f,h){if(!bK(c))return new rZ("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=EZ(c);if(0>=l)return new rZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new GJ({current:null}),n=dGa(a,b,c,m,d,f,h);return KGa(a,d,f,l,e,function(p,r){var t=p.slotId,u=FZ(c);p=h(p);t=HZ(b.l.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"core"},y=n(t,r); X(y.Ia,"metadata_type_fulfilled_layout")||R("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new qJ(d),new YJ(l),new $J(u),new aK(!0),m];return{aQ:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Bc:new Map,ud:[new LZ(b.i,t)],Qc:[new JZ(b.i,r.layoutId)],Nc:[],Rc:[new KZ(b.i,r.layoutId)],gb:"core",Ia:new WY(u),zc:p(x)},CP:y}})}; UZ=function(a,b,c,d,e,f,h){this.l=a;this.i=b;this.Qa=c;this.u=d;this.C=e;this.B=f;this.loadPolicy=void 0===h?1:h}; nz=function(a,b,c,d,e,f,h){var l,m,n,p,r,t,u,x,y,B,G,H=[];if(0===b.length)return H;b=b.filter(RFa);for(var I=new Map,M=new Map,L=g.q(b),da=L.next();!da.done;da=L.next())(da=da.value.renderer.remoteSlotsRenderer)&&da.hostElementId&&M.set(da.hostElementId,da);L=g.q(b);for(da=L.next();!da.done;da=L.next()){da=da.value;var Ba=MGa(a,I,da,d,e,f,h,M);Ba instanceof rZ?R(Ba,void 0,void 0,{renderer:da.renderer,config:da.config.adPlacementConfig,kind:da.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}): H.push.apply(H,g.ma(Ba))}if(null===a.C||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),H.length||a||R("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}),H;c=c.filter(RFa);H.push.apply(H,g.ma($Fa(I,c,a.l.get(),a.C,d,a.Qa.get())));H.length||R("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(B=null===(y=null===(x=b[0])||void 0===x?void 0:x.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===B?void 0:B.kind,renderer:null=== (G=b[0])||void 0===G?void 0:G.renderer});return H}; MGa=function(a,b,c,d,e,f,h,l){function m(u){return aZ(a.u.get(),u)} var n=c.renderer,p=c.config.adPlacementConfig,r=p.kind,t=c.adSlotLoggingData;if(null!=n.actionCompanionAdRenderer)DZ(b,c.elementId,r,n.actionCompanionAdRenderer.adVideoId,p,t,function(u,x,y){var B=a.i.get(),G=n.actionCompanionAdRenderer,H=aZ(a.u.get(),u);return VZ(B,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new iJ(G),x,y,G.impressionPings,H,n.actionCompanionAdRenderer.adLayoutLoggingData)}); else if(n.imageCompanionAdRenderer)DZ(b,c.elementId,r,n.imageCompanionAdRenderer.adVideoId,p,t,function(u,x,y){var B=a.i.get(),G=n.imageCompanionAdRenderer,H=aZ(a.u.get(),u);return VZ(B,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new mJ(G),x,y,G.impressionPings,H,n.imageCompanionAdRenderer.adLayoutLoggingData)}); else if(n.shoppingCompanionCarouselRenderer)DZ(b,c.elementId,r,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(u,x,y){var B=a.i.get(),G=n.shoppingCompanionCarouselRenderer,H=aZ(a.u.get(),u);return VZ(B,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new nJ(G),x,y,G.impressionPings,H,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)}); else{if(n.adBreakServiceRenderer){if(!WFa(c))return[];if(f&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===p.kind){if(!a.B)return new rZ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");NGa(a.B,{adPlacementRenderer:c,contentCpn:d,wG:e});return[]}return VFa(a.l.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f)}if(n.clientForecastingAdRenderer)return tGa(a.l.get(),a.i.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return vGa(a.l.get(), a.i.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if(n.linearAdSequenceRenderer){if(f)return mGa(a.l.get(),a.i.get(),c,d,m);CZ(b,n,r);return null!=n.linearAdSequenceRenderer.linearAds?JGa(a.l.get(),a.i.get(),p,t,n.linearAdSequenceRenderer.linearAds,d,e,h,m,l,a.loadPolicy):new rZ("Received invalid LinearAdSequenceRenderer.")}if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!f)return CZ(b,n,r),GGa(a.l.get(),a.i.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy);if(n.instreamSurveyAdRenderer)return LGa(a.l.get(), a.i.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=n.sandwichedLinearAdRenderer)return SFa(n.sandwichedLinearAdRenderer)?JGa(a.l.get(),a.i.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,n.sandwichedLinearAdRenderer.linearAd],d,e,h,m,l,a.loadPolicy):new rZ("Received invalid SandwichedLinearAdRenderer.")}}return[]}; WZ=function(a){g.E.call(this);this.i=a}; kz=function(a,b,c,d){a.i().ai(b,d);c=c();a=a.i();XZ(a.Zb,"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;mK(d.Zb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.i;if(g.rc(c.slotId))throw new rZ("Slot ID was empty");if(hZ(e,c))throw new rZ("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Wb.triggerType});if(!e.zd.il.has(c.ob))throw new rZ("No fulfillment adapter factory registered for slot of type: "+ c.ob);if(!e.zd.Ol.has(c.ob))throw new rZ("No SlotAdapterFactory registered for slot of type: "+c.ob);yZ(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Wb?[c.Wb]:[]);yZ(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.uc);yZ(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.pc);var f=d.i,h=c.ob+"_"+c.slotPhysicalPosition,l=tZ(f,h);if(hZ(f,c))throw new rZ("Duplicate slots not supported");l.set(c.slotId,new MFa(c));f.i.set(h,l)}catch(za){R(za,c,void 0,void 0,za.Rn);break a}hZ(d.i,c).G=!0;try{var m=d.i,n=hZ(m,c),p=c.Wb,r=m.zd.Dh.get(p.triggerType); r&&(r.di("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ma.set(p.triggerId,r));for(var t=g.q(c.uc),u=t.next();!u.done;u=t.next()){var x=u.value,y=m.zd.Dh.get(x.triggerType);y&&(y.di("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.Y.set(x.triggerId,y))}for(var B=g.q(c.pc),G=B.next();!G.done;G=B.next()){var H=G.value,I=m.zd.Dh.get(H.triggerType);I&&(I.di("TRIGGER_CATEGORY_SLOT_EXPIRATION",H,c,null),n.U.set(H.triggerId,I))}var M=m.zd.il.get(c.ob).get().He(m.u,c);n.J=M;var L=m.zd.Ol.get(c.ob).get().He(m.C, c);L.init();n.l=L}catch(za){R(za,c,void 0,void 0,za.Rn);eZ(d,c,!0);break a}mK(d.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.i.yh(c);for(var da=g.q(d.Ed),Ba=da.next();!Ba.done;Ba=da.next())Ba.value.yh(c);mZ(d,c,!1)}}; YZ=function(a,b,c,d){this.zn=b;this.i=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)}; ZZ=function(a,b,c,d){g.E.call(this);var e=this;this.u=a;this.B=b;this.l=c;this.i=new Map;d.get().addListener(this);g.gf(this,function(){d.get().removeListener(e)})}; Iia=function(a,b){var c=0x8000000000000;for(var d=0,e=g.q(b.uc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof YZ?(c=Math.min(c,f.i.start),d=Math.max(d,f.i.end)):R("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new $q(c,d);d="throttledadcuerange:"+b.slotId;a.i.set(d,b);a.l.get().addCueRange(d,c.start,c.end,!1,a)}; $Z=function(){g.E.apply(this,arguments);this.Ui=!0;this.xi=new Map;this.i=new Map}; OGa=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}R("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.rc(b)),layoutId:b})}; a_=function(){this.l=new Map;this.i=new Map;this.u=new Map}; SZ=function(a,b){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.l.get(b)||0;c++;a.l.set(b,c);return b+"_"+c}return zx()}; HZ=function(a,b,c){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.i.get(b)||0;d++;a.i.set(b,d);return c+"_"+b+"_"+d}return zx()}; b_=function(a,b){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return zx()}; TZ=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)}; PZ=function(a,b){this.le=b;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)}; IZ=function(a,b){this.le=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)}; PGa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)}; c_=function(a,b){this.i=b;this.ob="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)}; d_=function(a,b){this.i=b;this.ob="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)}; LZ=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)}; QGa=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)}; iGa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)}; JZ=function(a,b){this.le=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)}; KZ=function(a,b){this.le=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)}; OZ=function(a,b){this.durationMs=45E3;this.le=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)}; RGa=function(a){return[new BJ(a.Ay),new vJ(a.instreamAdPlayerOverlayRenderer),new EJ(a.DJ),new qJ(a.adPlacementConfig),new JJ(a.videoLengthSeconds),new XJ(a.ZB)]}; SGa=function(a,b,c,d,e,f){a=c.FB?c.FB:HZ(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",gb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Bc:new Map,ud:[new IZ(function(l){return b_(f,l)},c.Ay)], Qc:[],Nc:[],Rc:[],gb:b,Ia:d,zc:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}}; e_=function(a){var b=this;this.l=a;this.i=function(c){return b_(b.l.get(),c)}}; f_=function(a,b,c,d,e){return SGa(b,c,d,new WY(RGa(d)),e,a.l.get())}; TGa=function(a,b,c,d,e){var f=RGa(d);f.push(new oJ(d.UN));f.push(new pJ(d.WN));return SGa(b,c,d,new WY(f),e,a.l.get())}; VZ=function(a,b,c,d,e,f,h,l,m){b=HZ(a.l.get(),c,b);var n={layoutId:b,layoutType:c,gb:"core"},p=new Map;h&&p.set("impression",h);return{layoutId:b,layoutType:c,Bc:p,ud:[new LZ(a.i,b),new c_(a.i,e)],Qc:[],Nc:[],Rc:[],gb:"core",Ia:new WY([d,new qJ(f),new BJ(e)]),zc:l(n),adLayoutLoggingData:m}}; NZ=function(a,b,c){var d=[];d.push(new d_(a.i,c));b&&d.push(b);return d}; MZ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,gb:"core"};return{layoutId:b,layoutType:c,Bc:new Map,ud:h,Qc:[new TZ(a.i,b)],Nc:[],Rc:[],gb:"core",Ia:new WY([new lJ(d),new qJ(e)]),zc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}}; GZ=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,gb:"core"};return{layoutId:b,layoutType:f,Bc:new Map,ud:[new IZ(a.i,c)],Qc:[],Nc:[],Rc:[],gb:"core",Ia:new WY([new qJ(d)].concat(g.ma(h))),zc:e(m),adLayoutLoggingData:l}}; wGa=function(a,b,c,d,e,f,h,l,m,n){a=QZ(a,b,c,d,e,f,h,l,m,n);return{Ep:{layoutId:a.layoutId,layoutType:a.layoutType,Bc:a.Bc,ud:[],Qc:[],Nc:[],Rc:[],gb:a.gb,Ia:new WY(a.Es),zc:a.zc,adLayoutLoggingData:a.adLayoutLoggingData},mq:a.Qc,jo:a.Nc,Tv:a.Rc,Vg:a.Vg}}; AGa=function(a,b,c,d,e,f,h,l){b=QZ(a,b,c,d,e,new Map,f,function(m){return h(m,l)},void 0); a=new KZ(a.i,b.CC);c=new CJ(b.CC);return{Ep:{layoutId:b.layoutId,layoutType:b.layoutType,Bc:b.Bc,ud:[],Qc:[],Nc:[],Rc:[],gb:b.gb,Ia:new WY([].concat(g.ma(b.Es),[c])),zc:b.zc,adLayoutLoggingData:b.adLayoutLoggingData},mq:b.Qc,jo:b.Nc,Tv:[].concat(g.ma(b.Rc),[a]),Vg:b.Vg}}; QZ=function(a,b,c,d,e,f,h,l,m,n){b=HZ(a.l.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"adapter"};l=l(b);var r=X(l.Ia,"metadata_type_fulfilled_layout");r||R("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");r=r?r.layoutId:"";c=[new qJ(c),new YJ(d),new $J(e)];n&&c.push(new OJ(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Bc:f,ud:[],Qc:[new JZ(a.i,r)],Nc:[],Rc:[],gb:"adapter",Es:c, zc:h(p),adLayoutLoggingData:m,Vg:l,CC:r}}; EGa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,r={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",gb:b};d=[new qJ(d),new rJ(l),new sJ(c.externalVideoId),new uJ(h),new vJ(c.playerOverlay.instreamAdPlayerOverlayRenderer),new $J({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new KJ(e),new FJ({current:null}),new JJ(f)];e=SZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?f:HZ(a.l.get(), "LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new CJ(f));d.push(new DJ(e));d.push(new OJ(l.i));c.adNextParams&&d.push(new jJ(c.adNextParams));c.clickthroughEndpoint&&d.push(new kJ(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new ZJ(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new LJ(c.sodarExtensionData));n&&d.push(new WJ(n));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",Bc:jI(c.pings),ud:[new LZ(a.i,p)],Qc:c.skipOffsetMilliseconds?[new JZ(a.i,f)]:[],Nc:[new JZ(a.i, f)],Rc:[],gb:b,Ia:new WY(d),zc:m(r),adLayoutLoggingData:c.adLayoutLoggingData}}; oGa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return VY(p,[],["LAYOUT_TYPE_MEDIA"])})||R("Unexpect subLayout type for DAI composite layout"); b=HZ(a.l.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Bc:f,ud:[new PGa(a.i)],Qc:[],Nc:[],Rc:[],gb:"core",Ia:new WY([new MJ(c),new NJ(m),new HJ(d),new qJ(e),new SJ(h)]),zc:l(n)}}; rGa=function(a){return null!=a}; g_=function(a,b,c){this.zn=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)}; h_=function(a,b,c){this.le=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)}; i_=function(a,b){this.le=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)}; UGa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)}; j_=function(a,b,c){this.zn=b;this.i=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)}; k_=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)}; l_=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)}; m_=function(a,b){this.Dg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)}; n_=function(a,b){this.Dg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)}; o_=function(a,b){this.Dg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)}; p_=function(a,b){this.Dg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)}; q_=function(a,b){this.Dg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)}; TFa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={qk:new $q(-0x8000000000000,-0x8000000000000),Nx:d},null!=c&&(d.xq=new $q(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={qk:new $q(0x7ffffffffffff,0x8000000000000),Nx:d},null!=c&&(d.xq=new $q(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||R("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); e.offsetEndMilliseconds||R("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 rZ("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={qk:new $q(a,e),Nx:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.xq=new $q(a,e)}return d;default:return new rZ("AdPlacementKind not supported in convertToRange.", {kind:e,adPlacementConfig:a})}}; r_=function(a){var b=this;this.l=a;this.i=function(c){return b_(b.l.get(),c)}}; UFa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=SZ(a.l.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.xq&&d.xq.start!==d.qk.start&&l.push(new YZ(a.i,c,new $q(d.xq.start,d.qk.start),!1));l.push(new YZ(a.i,c,new $q(d.qk.start,d.qk.end),d.Nx));d={getAdBreakUrl:b.getAdBreakUrl,SJ:d.qk.start,RJ:d.qk.end};b=new p_(a.i,h);f=[new UJ(d)].concat(g.ma(f));return{slotId:h,ob:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Wb:b,uc:l,pc:[new k_(a.i,c),new n_(a.i,h),new o_(a.i,h)],gb:"core",Ia:new WY(f),adSlotLoggingData:e}}; WGa=function(a,b,c){var d=[];c=g.q(c);for(var e=c.next();!e.done;e=c.next())d.push(VGa(a,b,e.value));return d}; VGa=function(a,b,c){return null!=c.Dg&&c.Dg===a?c.clone(b):c}; cGa=function(a,b,c,d,e){return XGa(a,b,c,d,e)}; xGa=function(a,b,c,d){var e=SZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");return XGa(a,e,b,c,d)}; XGa=function(a,b,c,d,e){var f=new i_(a.i,c),h=[new m_(a.i,b)];a=[new n_(a.i,b),new k_(a.i,d)];return{slotId:b,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:f,uc:h,pc:a,gb:"core",Ia:new WY([new TJ(e({slotId:b,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Wb:f,uc:h,pc:a},c))]),adSlotLoggingData:void 0}}; KGa=function(a,b,c,d,e,f){var h=SZ(a.l.get(),"SLOT_TYPE_PLAYER_BYTES"),l=SZ(a.l.get(),"SLOT_TYPE_IN_PLAYER"),m=HZ(a.l.get(),"LAYOUT_TYPE_SURVEY",l);b=s_(a,b,c,d);d=[new m_(a.i,h)];a=[new n_(a.i,h),new k_(a.i,c),new TZ(a.i,m)];if(b instanceof rZ)return b;f=f({slotId:h,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Wb:b,uc:d,pc:a},{slotId:l,layoutId:m});l=f.CP;return[{slotId:h,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Wb:b,uc:d,pc:a,gb:"core",Ia:new WY([new TJ(f.aQ)]),adSlotLoggingData:e}, l]}; YGa=function(a,b,c,d,e){e=e?e:SZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");c=new i_(a.i,c);var f=[new m_(a.i,e)];a=[new k_(a.i,b),new n_(a.i,e)];return{slotId:e,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:c,uc:f,pc:a,gb:"core",Ia:new WY([new TJ(d({slotId:e,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Wb:c,uc:f,pc:a}))])}}; uGa=function(a,b,c,d,e,f){b=s_(a,b,c,d);if(b instanceof rZ)return b;var h=b instanceof YZ?new j_(a.i,c,b.i):null;d=SZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");var l=[new m_(a.i,d)];a=[new k_(a.i,c),new n_(a.i,d)];f=f({slotId:d,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Wb:b,uc:l,pc:a},h);return f instanceof jZ?new rZ(f):{slotId:d,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:b,uc:l,pc:a,gb:"core",Ia:new WY([new TJ(f)]),adSlotLoggingData:e}}; hGa=function(a,b,c,d){var e=SZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");c=new i_(a.i,c);var f=[new m_(a.i,e)],h=[new n_(a.i,e),new k_(a.i,b)];f={slotId:e,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Wb:c,uc:f,pc:h};return{slotId:e,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:c,uc:[new m_(a.i,e)],pc:[new k_(a.i,b),new n_(a.i,e)],gb:"core",Ia:new WY([new TJ(d(f))])}}; fGa=function(a,b,c,d,e){var f=SZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");c=new h_(a.i,d,c);d=[new m_(a.i,f)];a=[new k_(a.i,b)];return{slotId:f,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:c,uc:d,pc:a,gb:"core",Ia:new WY([new TJ(e({slotId:f,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Wb:c,uc:d,pc:a}))])}}; ZFa=function(a,b,c,d,e,f){var h=SZ(a.l.get(),b);return ZGa(a,h,b,new i_(a.i,d),c,e,d,f)}; YFa=function(a,b,c,d,e,f,h){return ZGa(a,c,b,new l_(a.i,c),d,f,e,h)}; kGa=function(a,b,c){var d=SZ(a.l.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new UGa(a.i),f=[new q_(a.i,d)];a=[new k_(a.i,b)];return{slotId:d,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Wb:e,uc:f,pc:a,gb:"core",Ia:new WY([new TJ(c({slotId:d,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Wb:e,uc:f,pc:a})),new PJ({})])}}; FGa=function(a,b,c,d,e,f){a=IGa(a,b,c,d);if(a instanceof rZ)return a;f=f({slotId:a.slotId,ob:a.ob,slotPhysicalPosition:a.slotPhysicalPosition,Wb:a.Wb,uc:a.uc,pc:a.pc,gb:a.gb});return f instanceof rZ?f:{GC:{slotId:a.slotId,ob:a.ob,slotPhysicalPosition:a.slotPhysicalPosition,Wb:a.Wb,uc:a.uc,pc:a.pc,gb:a.gb,Ia:new WY([new TJ(f.layout)]),adSlotLoggingData:e},Gl:f.Gl}}; IGa=function(a,b,c,d){var e=SZ(a.l.get(),"SLOT_TYPE_PLAYER_BYTES");b=s_(a,b,c,d);if(b instanceof rZ)return b;d=[new m_(a.i,e)];a=[new n_(a.i,e),new k_(a.i,c)];return{slotId:e,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Wb:b,uc:d,pc:a,gb:"core"}}; sGa=function(a,b,c,d,e,f){var h=SZ(a.l.get(),"SLOT_TYPE_FORECASTING");b=s_(a,b,c,d);if(b instanceof rZ)return b;d=[new m_(a.i,h)];a=[new n_(a.i,h),new k_(a.i,c)];return{slotId:h,ob:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Wb:b,uc:d,pc:a,gb:"core",Ia:new WY([new TJ(f({slotId:h,ob:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,gb:"core",Wb:b,uc:d,pc:a}))]),adSlotLoggingData:e}}; $Ga=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new pz(a.i,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=TFa(b,d),a instanceof rZ?a:e(a.qk,f);case "AD_PLACEMENT_KIND_END":return new g_(a.i,c,f);default:return new rZ("Cannot construct entry trigger",{kind:b.kind})}}; s_=function(a,b,c,d){return $Ga(a,b,c,d,function(e,f){return new YZ(a.i,c,e,f)})}; ZGa=function(a,b,c,d,e,f,h,l){var m=[new q_(a.i,b)];a=[new k_(a.i,e),new n_(a.i,b),new PZ(a.i,h)];return{slotId:b,ob:c,slotPhysicalPosition:1,Wb:d,uc:m,pc:a,gb:"core",Ia:new WY([new TJ(l({slotId:b,ob:c,slotPhysicalPosition:1,gb:"core",Wb:d,uc:m,pc:a}))]),adSlotLoggingData:f}}; t_=function(a,b,c){g.E.call(this);this.Qa=a;this.l=b;this.i=c;this.eventCount=0}; mK=function(a,b,c){XZ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)}; iZ=function(a,b,c,d){XZ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,void 0,d?d.adLayoutLoggingData:void 0)}; EFa=function(a,b,c,d){var e=a.Qa.get();(g.S(e.I.T().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs")||g.S(e.I.T().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs_live_infra"))&&XZ(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)}; XZ=function(a,b,c,d,e,f,h,l,m,n){var p=a.Qa.get();if((g.S(p.I.T().experiments,"html5_enable_ads_client_monitoring_log")||g.S(p.I.T().experiments,"html5_enable_ads_client_monitoring_log_live_infra"))&&!g.S(a.Qa.get().I.T().experiments,"html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){p=$Y(a.l.get());b={eventType:b,eventOrder:++a.eventCount};var r,t={organicPlaybackContext:{contentCpn:mz(a.i.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=mz(a.i.get(), 1).Sh;var u=null===(r=mz(a.i.get(),2))||void 0===r?void 0:r.clientPlaybackNonce;u&&(t.adVideoPlaybackContext={adVideoCpn:u});a=a.Qa.get();a=g.T(a.I.T().experiments,"html5_experiment_id_label")||g.T(a.I.T().experiments,"html5_experiment_id_label_live_infra");0=.25*d||c)&&$_(a.i,"first_quartile"),(b>=.5*d||c)&&$_(a.i,"midpoint"),(b>=.75*d||c)&&$_(a.i,"third_quartile"),a=a.Ga,b*=1E3,c=a.G())){for(;a.BTI(c,4)&&!(0>TI(c,2))&&a.i.Ge("resume"),g.UI(c,16)&&.5<=a.Fa.get().getCurrentTimeSec(2,!1)&&a.i.Ge("seek"),g.UI(c,2)&&dIa(a,c.state,b))}; dIa=function(a,b,c){var d,e=X(a.layout.Ia,"metadata_type_video_length_seconds"),f=A_(a.Qa.get())?null!==(d=c.Xw)&&void 0!==d?d:0:a.Fa.get().getCurrentTimeSec(2,!1),h=1>=Math.abs(e-f);fIa(a,b,h?e:f,c.Xw);h&&$_(a.i,"complete")}; fIa=function(a,b,c,d){vHa(a.i,1E3*c);var e=X(a.layout.Ia,"metadata_type_video_length_seconds");0>=e||0>=c||(null===b||void 0===b?0:g.U(b,16))||(null===b||void 0===b?0:g.U(b,32))||(p0(c,.25*e,d)&&$_(a.i,"first_quartile"),p0(c,.5*e,d)&&$_(a.i,"midpoint"),p0(c,.75*e,d)&&$_(a.i,"third_quartile"))}; T0=function(a){return{enterMs:X(a.Ia,"metadata_type_layout_enter_ms"),exitMs:X(a.Ia,"metadata_type_layout_exit_ms")}}; U0=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,B,G){this.xe=a;this.Y=b;this.l=c;this.u=d;this.Fa=e;this.Xa=f;this.X=h;this.J=l;this.i=m;this.B=n;this.qd=p;this.K=r;this.kd=t;this.Cc=u;this.C=x;this.G=y;this.U=B;this.Qa=G}; V0=function(a,b,c,d,e,f,h){g.E.call(this);var l=this;this.B=a;this.C=b;this.u=c;this.l=e;this.Fa=f;this.Qa=h;this.i=null;d.get().addListener(this);g.gf(this,function(){d.get().removeListener(l)}); e.get().addListener(this);g.gf(this,function(){e.get().removeListener(l)})}; NGa=function(a,b){if(mz(a.u.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind)if(a.i)R("Unexpected multiple fetch instructions for the current content");else{a.i=b;b=g.q(a.l.get().zy);for(var c=b.next();!c.done;c=b.next())gIa(a,a.i,c.value)}}; gIa=function(a,b,c){var d=a.Fa.get().getCurrentTimeSec(1,!1);kz(a.B.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.C.get(),f=A_(a.Qa.get());var h=1E3*c.startSecs;h={qk:new $q(h,h+1E3*c.durationSecs),Nx:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new $q(1E3*(c.startSecs-4),1E3*l);else{var m=Math.max(0,c.startSecs-d-10);f=new $q(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}h.xq=f;return[UFa(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer, b.contentCpn,h,b.adPlacementRenderer.adSlotLoggingData,[new IJ(c)])]})}; W0=function(a){g.E.call(this);this.i=a;this.Db=new Map}; X0=function(a,b){for(var c=[],d=g.q(a.Db.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.i===b.layoutId&&c.push(e);c.length&&pZ(a.i(),c)}; Y0=function(a,b){var c;g.E.call(this);var d=this;this.B=a;this.l=new Map;this.u=new Map;this.i=null;b.get().addListener(this);g.gf(this,function(){b.get().removeListener(d)}); this.i=(null===(c=b.get().uo)||void 0===c?void 0:c.slotId)||null}; hIa=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}; Z0=function(a,b,c,d){g.E.call(this);this.I=a;this.B=b;this.Qa=c;this.Xa=d;this.listeners=[];this.i=new Set;this.zy=[];this.u=new qK(this,bHa(c.get()));this.l=new rK;iIa(this)}; aIa=function(a,b,c){return woa(a.l,b,c)}; iIa=function(a){var b,c=a.I.getVideoData(1);c.subscribe("cuepointupdated",a.pC,a);a.i.clear();a.zy.length=0;c=(null===(b=c.i)||void 0===b?void 0:ME(b,0))||[];a.pC(c)}; jIa=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");}}; $0=function(a){this.I=a}; a1=function(){this.listeners=new Set}; kIa=function(a,b,c,d,e){QI.call(this,"image-companion",a,b,c,d,e)}; b1=function(a,b,c,d,e,f,h,l){b0.call(this,a,b,c,d);this.Xa=e;this.xe=f;this.G=l;this.Ui=!0;this.u=null;this.B=X(c.Ia,"metadata_type_linked_player_bytes_layout_id");dZ(this.xe(),this);a=X(c.Ia,"metadata_type_ad_placement_config");this.C=new X_(c.Bc,this.Xa,a,c.layoutId)}; lIa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];Y_().forEach(function(b){a.push(b)}); return{Wd:a,Af:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; mIa=function(a,b,c,d,e){QI.call(this,"shopping-companion",a,b,c,d,e)}; c1=function(a,b,c,d,e,f,h,l){b0.call(this,a,b,c,d);this.Xa=e;this.xe=f;this.G=l;this.Ui=!0;this.u=null;this.B=X(c.Ia,"metadata_type_linked_player_bytes_layout_id");dZ(this.xe(),this);a=X(c.Ia,"metadata_type_ad_placement_config");this.C=new X_(c.Bc,this.Xa,a,c.layoutId)}; nIa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];Y_().forEach(function(b){a.push(b)}); return{Wd:a,Af:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; oIa=function(a,b,c,d,e){this.i=a;this.Xa=b;this.xe=c;this.l=d;this.u=e}; d1=function(a,b,c,d,e){b0.call(this,c,a,b,d);this.Xa=e;a=X(b.Ia,"metadata_type_ad_placement_config");this.u=new X_(b.Bc,e,a,b.layoutId)}; e1=function(a){return Math.round(a.width)+"x"+Math.round(a.height)}; g1=function(a,b,c){c=void 0===c?f1:c;c.widtha.width*a.height*.2)return{Ly:3,Wu:501,errorMessage:"ad("+e1(c)+") to container("+e1(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{Ly:3,Wu:501,errorMessage:"ad("+e1(c)+") covers container("+e1(a)+") center."}}; pIa=function(a,b){var c=X(a.Ia,"metadata_type_ad_placement_config");return new X_(a.Bc,b,c,a.layoutId)}; h1=function(a){return X(a.Ia,"metadata_type_invideo_overlay_ad_renderer")}; i1=function(a,b,c,d){QI.call(this,"invideo-overlay",a,b,c,d);this.i=d}; j1=function(a,b,c,d,e,f,h,l,m,n,p,r){b0.call(this,f,a,b,e);this.Xa=c;this.u=h;this.Fa=l;this.G=m;this.Qa=n;this.Cd=p;this.B=r;this.J=pIa(b,c)}; qIa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];Y_().forEach(function(b){a.push(b)}); return{Wd:a,Af:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; k1=function(a,b,c,d,e,f,h,l,m,n,p,r,t){b0.call(this,f,a,b,e);this.Xa=c;this.u=h;this.G=l;this.Fa=m;this.J=n;this.Qa=p;this.Cd=r;this.B=t;this.K=pIa(b,c)}; rIa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.q(Y_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Wd:a,Af:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; l1=function(a){this.Fa=a;this.i=!1}; m1=function(a,b,c,d,e,f){b0.call(this,c,a,b,d);this.u=e;this.Fa=f}; sIa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Fa=b;this.Xa=c;this.G=d;this.B=e;this.l=f;this.C=h;this.u=l;this.Qa=m;this.Cd=n}; n1=function(a){g.E.call(this);this.u=a;this.Ui=!0;this.Db=new Map;this.i=new Map;this.l=new Map}; tIa=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}; o1=function(a,b,c){g.E.call(this);this.u=a;this.B=b;this.C=c;this.i=this.l=void 0;this.B.get().addListener(this)}; uIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.Y=Y(function(){return new a_}); g.F(this,this.Y);this.Da=Y(function(){return new e_(f.Y)}); g.F(this,this.Da);this.B=Y(function(){return new $Z}); g.F(this,this.B);this.G=Y(function(){return new WZ(a)}); g.F(this,this.G);this.J=Y(function(){return new r_(f.Y)}); g.F(this,this.J);this.Bb=Y(function(){return new u_}); g.F(this,this.Bb);this.Nb=Y(function(){return new RI(b.T())}); g.F(this,this.Nb);this.ma=Y(function(){return new N0(b)}); g.F(this,this.ma);this.Pa=Y(function(){return new M_(e)}); g.F(this,this.Pa);this.kd=Y(function(){return new vK(b)}); g.F(this,this.kd);this.Aa=Y(function(){return new w_(b)}); g.F(this,this.Aa);this.qd=Y(function(){return new P0(b)}); g.F(this,this.qd);this.Cc=Y(function(){return new x_(b)}); g.F(this,this.Cc);this.Qa=Y(function(){return new y_(b)}); g.F(this,this.Qa);this.Hb=Y(function(){return new M0(d)}); g.F(this,this.Hb);this.u=Y(function(){return new bZ(f.Qa)}); g.F(this,this.u);this.Ga=Y(function(){return new UZ(f.J,f.Da,f.Qa,f.u,"SLOT_TYPE_ABOVE_FEED",f.Ya)}); g.F(this,this.Ga);this.wc=Y(function(){return new Q0(b)}); g.F(this,this.wc);this.eb=Y(function(){return new R0}); g.F(this,this.eb);this.bb=Y(function(){return new a1}); g.F(this,this.bb);this.i=Y(function(){return new K_(b,f.Bb,f.Qa)}); g.F(this,this.i);this.Zb=new t_(this.Qa,this.u,this.i);g.F(this,this.Zb);this.xa=Y(function(){return new Z0(b,f.i,f.Qa,f.Xa)}); g.F(this,this.xa);this.qb=Y(function(){return new $0(b)}); g.F(this,this.qb);this.Fa=Y(function(){return new L_(b)}); g.F(this,this.Fa);this.Id=Y(function(){return new N_}); this.X=Y(function(){return new C_(f.Fa,b)}); g.F(this,this.X);this.Xa=Y(function(){return new F_(b,f.B,f.X,f.i)}); g.F(this,this.Xa);this.Gc=new y0(z0,p1,function(l,m,n,p){return f_(f.Da.get(),l,m,n,p)},this.G,this.J,this.u,this.Qa,this.i); g.F(this,this.Gc);this.lc=new qz(this.G,this.Ga,c,this.Qa,a,this.i,this.Fa);g.F(this,this.lc);var h=new v_(b,this.lc,this.Fa,this.xa);this.Ua=Y(function(){return h}); this.El=h;this.Ya=new V0(this.G,this.J,this.i,this.Ua,this.xa,this.Fa,this.Qa);g.F(this,this.Ya);this.wb=new ZZ(this.G,this.J,this.Aa,this.Ua);g.F(this,this.wb);this.qc=new jz(this.G,this.J,this.Ga,this.i,this.wb,c);g.F(this,this.qc);this.Kb=Y(function(){return new T_(f.Hb,f.Da,f.u,f.qb)}); g.F(this,this.Kb);this.K=Y(function(){return new U_}); g.F(this,this.K);this.va=new E0(a,this.ma);g.F(this,this.va);this.l=new F0(a);g.F(this,this.l);this.La=new W0(a);g.F(this,this.La);this.Va=new G0(a,this.Ua,this.Qa);g.F(this,this.Va);this.Ea=new H0(a,this.Aa,this.Fa,this.i);g.F(this,this.Ea);this.jb=new Y0(a,this.i);g.F(this,this.jb);this.C=new J0(a);g.F(this,this.C);this.xc=new K0(a);g.F(this,this.xc);this.yb=new n1(a);g.F(this,this.yb);this.U=Y(function(){return new A0}); g.F(this,this.U);this.bd=Y(function(){return new B0(f.Fa)}); g.F(this,this.bd);this.Tc=Y(function(){return new oIa(f.ma,f.Xa,a,f.B,f.X)}); g.F(this,this.Tc);this.Jb=Y(function(){return new W_(f.qc)}); g.F(this,this.Jb);this.Ob=Y(function(){return new a0(f.Xa,f.C)}); g.F(this,this.Ob);this.Ac=Y(function(){return new U0(a,f.C,f.i,f.qb,f.Fa,f.Xa,f.Bb,f.xa,f.X,f.Id,f.qd,f.Aa,f.kd,f.Cc,f.Nb,f.Pa,f.wc,f.Qa)}); g.F(this,this.Ac);this.Vb=Y(function(){return new sIa(f.ma,f.Fa,f.Xa,f.B,f.X,f.La,f.yb,f.Pa,f.Qa,c)}); g.F(this,this.Vb);this.cd=new o1(a,this.bb,this.Y);g.F(this,this.cd);this.dd=new L0(a,this.eb,this.u,this.i,this.Qa,this.Y);g.F(this,this.dd);this.zd={hp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ya],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Gc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.wb]]),il:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Kb],["SLOT_TYPE_ABOVE_FEED",this.K],["SLOT_TYPE_FORECASTING",this.K],["SLOT_TYPE_IN_PLAYER",this.K],["SLOT_TYPE_PLAYER_BYTES",this.K]]),Dh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.va],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.va],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.l],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.l],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.l],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.l],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.l],["TRIGGER_TYPE_SLOT_ID_EXITED",this.l], ["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.l],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.l],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.l],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.l],["TRIGGER_TYPE_CLOSE_REQUESTED",this.La],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Va],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ea],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ea],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ea],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.jb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED", this.jb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.C],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.C],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Va],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.yb]]),Ol:new Map([["SLOT_TYPE_ABOVE_FEED",this.U],["SLOT_TYPE_AD_BREAK_REQUEST",this.U],["SLOT_TYPE_FORECASTING",this.U],["SLOT_TYPE_IN_PLAYER",this.U],["SLOT_TYPE_PLAYER_BYTES",this.bd]]),yl:new Map([["SLOT_TYPE_ABOVE_FEED", this.Tc],["SLOT_TYPE_AD_BREAK_REQUEST",this.Jb],["SLOT_TYPE_FORECASTING",this.Ob],["SLOT_TYPE_PLAYER_BYTES",this.Ac],["SLOT_TYPE_IN_PLAYER",this.Vb]])};this.listeners=[this.B.get()];this.pe={qc:this.qc,Lj:this.C,Al:this.eb.get(),kh:this.Qa.get(),cn:this.Fa.get(),lc:this.lc,zl:this.bb.get(),Xh:this.va,Pg:this.B.get()}}; vIa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Fa=b;this.Xa=c;this.G=d;this.B=e;this.l=f;this.C=h;this.u=l;this.Qa=m;this.Cd=n}; wIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.B=Y(function(){return new a_}); g.F(this,this.B);this.va=Y(function(){return new e_(f.B)}); g.F(this,this.va);this.C=Y(function(){return new $Z}); g.F(this,this.C);this.J=Y(function(){return new WZ(a)}); g.F(this,this.J);this.K=Y(function(){return new r_(f.B)}); g.F(this,this.K);this.xc=Y(function(){return new u_}); g.F(this,this.xc);this.wb=Y(function(){return new RI(b.T())}); g.F(this,this.wb);this.Ea=Y(function(){return new N0(b)}); g.F(this,this.Ea);this.La=Y(function(){return new M_(e)}); g.F(this,this.La);this.kd=Y(function(){return new vK(b)}); g.F(this,this.kd);this.U=Y(function(){return new w_(b)}); g.F(this,this.U);this.qd=Y(function(){return new P0(b)}); g.F(this,this.qd);this.Cc=Y(function(){return new x_(b)}); g.F(this,this.Cc);this.Qa=Y(function(){return new y_(b)}); g.F(this,this.Qa);this.eb=Y(function(){return new M0(d)}); g.F(this,this.eb);this.u=Y(function(){return new bZ(f.Qa)}); g.F(this,this.u);this.Aa=Y(function(){return new UZ(f.K,f.va,f.Qa,f.u,null,null)}); g.F(this,this.Aa);this.Jb=Y(function(){return new Q0(b)}); g.F(this,this.Jb);this.Va=Y(function(){return new R0}); g.F(this,this.Va);this.Ua=Y(function(){return new a1}); g.F(this,this.Ua);this.l=Y(function(){return new K_(b,f.xc,f.Qa)}); g.F(this,this.l);this.Zb=new t_(this.Qa,this.u,this.l);g.F(this,this.Zb);this.Fa=Y(function(){return new L_(b)}); g.F(this,this.Fa);this.xa=Y(function(){return new C_(f.Fa,b)}); g.F(this,this.xa);this.Xa=Y(function(){return new F_(b,f.C,f.xa,f.l)}); g.F(this,this.Xa);this.wc=Y(function(){return new N_}); g.F(this,this.wc);this.Ob=new y0(z0,p1,function(l,m,n,p){return f_(f.va.get(),l,m,n,p)},this.J,this.K,this.u,this.Qa,this.l); g.F(this,this.Ob);this.lc=new qz(this.J,this.Aa,c,this.Qa,a,this.l,this.Fa);g.F(this,this.lc);var h=new v_(b,this.lc,this.Fa);this.yb=Y(function(){return h}); this.El=h;this.Ya=new ZZ(this.J,this.K,this.U,this.yb);g.F(this,this.Ya);this.qc=new jz(this.J,this.K,this.Aa,this.l,this.Ya,c);g.F(this,this.qc);this.qb=Y(function(){return new T_(f.eb,f.va,f.u)}); g.F(this,this.qb);this.X=Y(function(){return new U_}); g.F(this,this.X);this.Da=new E0(a,this.Ea);g.F(this,this.Da);this.i=new F0(a);g.F(this,this.i);this.Ga=new W0(a);g.F(this,this.Ga);this.Pa=new G0(a,this.yb,this.Qa);g.F(this,this.Pa);this.Y=new H0(a,this.U,this.Fa,this.l);g.F(this,this.Y);this.G=new J0(a);g.F(this,this.G);this.Kb=new K0(a);g.F(this,this.Kb);this.bb=new n1(a);g.F(this,this.bb);this.ma=Y(function(){return new A0}); g.F(this,this.ma);this.Vb=Y(function(){return new B0(f.Fa)}); g.F(this,this.Vb);this.jb=Y(function(){return new W_(f.qc)}); g.F(this,this.jb);this.Bb=Y(function(){return new a0(f.Xa,f.G)}); g.F(this,this.Bb);this.Hb=Y(function(){return new vIa(f.Ea,f.Fa,f.Xa,f.C,f.xa,f.Ga,f.bb,f.La,f.Qa,c)}); g.F(this,this.Hb);this.Nb=Y(function(){return new x0(a,f.G,f.Xa,f.xa,f.wc,f.qd,f.l,f.Fa,f.U,f.kd,f.Cc,f.wb,f.La,f.Jb,f.Qa)}); g.F(this,this.Nb);this.Ac=new o1(a,this.Ua,this.B);g.F(this,this.Ac);this.Gc=new L0(a,this.Va,this.u,this.l,this.Qa,this.B);g.F(this,this.Gc);this.zd={hp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ob],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ya]]),il:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qb],["SLOT_TYPE_FORECASTING",this.X],["SLOT_TYPE_IN_PLAYER", this.X],["SLOT_TYPE_PLAYER_BYTES",this.X]]),Dh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Da],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.i],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.i],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_EXITED",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.i], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.i],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ga],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Pa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Y],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Y],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Y],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.G],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.G],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Pa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED", this.Kb],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.bb]]),Ol:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ma],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",this.Vb]]),yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jb],["SLOT_TYPE_FORECASTING",this.Bb],["SLOT_TYPE_IN_PLAYER",this.Hb],["SLOT_TYPE_PLAYER_BYTES",this.Nb]])};this.listeners=[this.C.get()];this.pe={qc:this.qc,Lj:null,Al:this.Va.get(),kh:this.Qa.get(),cn:this.Fa.get(),lc:this.lc,zl:this.Ua.get(), Xh:this.Da,Pg:this.C.get()}}; xIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.X=Y(function(){return new a_}); g.F(this,this.X);this.ma=Y(function(){return new e_(f.X)}); g.F(this,this.ma);this.C=Y(function(){return new $Z}); g.F(this,this.C);this.J=Y(function(){return new WZ(a)}); g.F(this,this.J);this.K=Y(function(){return new r_(f.X)}); g.F(this,this.K);this.Nb=Y(function(){return new u_}); g.F(this,this.Nb);this.bb=Y(function(){return new RI(b.T())}); g.F(this,this.bb);this.xa=Y(function(){return new N0(b)}); g.F(this,this.xa);this.eb=Y(function(){return new M_(e)}); g.F(this,this.eb);this.kd=Y(function(){return new vK(b)}); g.F(this,this.kd);this.U=Y(function(){return new w_(b)}); g.F(this,this.U);this.qd=Y(function(){return new P0(b)}); g.F(this,this.qd);this.Cc=Y(function(){return new x_(b)}); g.F(this,this.Cc);this.Qa=Y(function(){return new y_(b)}); g.F(this,this.Qa);this.Ua=Y(function(){return new M0(d)}); g.F(this,this.Ua);this.u=Y(function(){return new bZ(f.Qa)}); g.F(this,this.u);this.va=Y(function(){return new UZ(f.K,f.ma,f.Qa,f.u,null,null)}); g.F(this,this.va);this.wb=Y(function(){return new Q0(b)}); g.F(this,this.wb);this.Ga=Y(function(){return new R0}); g.F(this,this.Ga);this.l=Y(function(){return new K_(b,f.Nb,f.Qa)}); g.F(this,this.l);this.Zb=new t_(this.Qa,this.u,this.l);g.F(this,this.Zb);this.Fa=Y(function(){return new L_(b)}); g.F(this,this.Fa);this.La=Y(function(){return new C_(f.Fa,b)}); g.F(this,this.La);this.Xa=Y(function(){return new F_(b,f.C,f.La,f.l)}); g.F(this,this.Xa);this.Kb=Y(function(){return new N_}); g.F(this,this.Kb);this.Hb=new y0(z0,p1,function(l,m,n,p){return f_(f.ma.get(),l,m,n,p)},this.J,this.K,this.u,this.Qa,this.l); g.F(this,this.Hb);this.lc=new qz(this.J,this.va,c,this.Qa,a,this.l,this.Fa);g.F(this,this.lc);var h=new v_(b,this.lc,this.Fa);this.jb=Y(function(){return h}); this.El=h;this.Pa=new ZZ(this.J,this.K,this.U,this.jb);g.F(this,this.Pa);this.qc=new jz(this.J,this.K,this.va,this.l,this.Pa,c);g.F(this,this.qc);this.Ya=Y(function(){return new T_(f.Ua,f.ma,f.u)}); g.F(this,this.Ya);this.Y=Y(function(){return new U_}); g.F(this,this.Y);this.Aa=new E0(a,this.xa);g.F(this,this.Aa);this.i=new F0(a);g.F(this,this.i);this.Ea=new G0(a,this.jb,this.Qa);g.F(this,this.Ea);this.Da=new H0(a,this.U,this.Fa,this.l);g.F(this,this.Da);this.G=new J0(a);g.F(this,this.G);this.yb=new K0(a);g.F(this,this.yb);this.B=Y(function(){return new A0}); g.F(this,this.B);this.Jb=Y(function(){return new B0(f.Fa)}); g.F(this,this.Jb);this.Va=Y(function(){return new W_(f.qc)}); g.F(this,this.Va);this.qb=Y(function(){return new a0(f.Xa,f.G)}); g.F(this,this.qb);this.Ob=Y(function(){return new i0(f.xa,f.Fa,f.Xa,f.C,c)}); g.F(this,this.Ob);this.Bb=Y(function(){return new x0(a,f.G,f.Xa,f.La,f.Kb,f.qd,f.l,f.Fa,f.U,f.kd,f.Cc,f.bb,f.eb,f.wb,f.Qa)}); g.F(this,this.Bb);this.Vb=new L0(a,this.Ga,this.u,this.l,this.Qa,this.X);g.F(this,this.Vb);this.zd={hp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Hb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Pa]]),il:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ya],["SLOT_TYPE_FORECASTING",this.Y],["SLOT_TYPE_IN_PLAYER",this.Y],["SLOT_TYPE_PLAYER_BYTES", this.Y]]),Dh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Aa],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.i],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.i],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_EXITED",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.i],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Ea],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Da],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Da],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.G],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.G],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ea],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.yb]]),Ol:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.B],["SLOT_TYPE_ABOVE_FEED",this.B],["SLOT_TYPE_FORECASTING",this.B],["SLOT_TYPE_IN_PLAYER",this.B],["SLOT_TYPE_PLAYER_BYTES",this.Jb]]), yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Va],["SLOT_TYPE_FORECASTING",this.qb],["SLOT_TYPE_IN_PLAYER",this.Ob],["SLOT_TYPE_PLAYER_BYTES",this.Bb]])};this.listeners=[this.C.get()];this.pe={qc:this.qc,Lj:null,Al:this.Ga.get(),kh:this.Qa.get(),cn:this.Fa.get(),lc:this.lc,zl:null,Xh:this.Aa,Pg:this.C.get()}}; yIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.X=Y(function(){return new a_}); g.F(this,this.X);this.ma=Y(function(){return new e_(f.X)}); g.F(this,this.ma);this.B=Y(function(){return new $Z}); g.F(this,this.B);this.G=Y(function(){return new WZ(a)}); g.F(this,this.G);this.J=Y(function(){return new r_(f.X)}); g.F(this,this.J);this.Ob=Y(function(){return new u_}); g.F(this,this.Ob);this.Ya=Y(function(){return new RI(b.T())}); g.F(this,this.Ya);this.xa=Y(function(){return new N0(b)}); g.F(this,this.xa);this.bb=Y(function(){return new M_(e)}); g.F(this,this.bb);this.kd=Y(function(){return new vK(b)}); g.F(this,this.kd);this.K=Y(function(){return new w_(b)}); g.F(this,this.K);this.qd=Y(function(){return new P0(b)}); g.F(this,this.qd);this.Cc=Y(function(){return new x_(b)}); g.F(this,this.Cc);this.Qa=Y(function(){return new y_(b)}); g.F(this,this.Qa);this.Pa=Y(function(){return new M0(d)}); g.F(this,this.Pa);this.u=Y(function(){return new bZ(f.Qa)}); g.F(this,this.u);this.va=Y(function(){return new UZ(f.J,f.ma,f.Qa,f.u,null,null)}); g.F(this,this.va);this.yb=Y(function(){return new Q0(b)}); g.F(this,this.yb);this.Da=Y(function(){return new R0}); g.F(this,this.Da);this.l=Y(function(){return new K_(b,f.Ob,f.Qa)}); g.F(this,this.l);this.Zb=new t_(this.Qa,this.u,this.l);g.F(this,this.Zb);this.Fa=Y(function(){return new L_(b)}); g.F(this,this.Fa);this.Ga=Y(function(){return new C_(f.Fa,b)}); g.F(this,this.Ga);this.Xa=Y(function(){return new F_(b,f.B,f.Ga,f.l)}); g.F(this,this.Xa);this.Nb=Y(function(){return new N_}); g.F(this,this.Nb);this.Jb=new y0(z0,p1,function(l,m,n,p){return f_(f.ma.get(),l,m,n,p)},this.G,this.J,this.u,this.Qa,this.l); g.F(this,this.Jb);this.lc=new qz(this.G,this.va,c,this.Qa,a,this.l,this.Fa);g.F(this,this.lc);var h=new v_(b,this.lc,this.Fa);this.eb=Y(function(){return h}); this.El=h;this.La=new ZZ(this.G,this.J,this.K,this.eb);g.F(this,this.La);this.qc=new jz(this.G,this.J,this.va,this.l,this.La,c);g.F(this,this.qc);this.Va=Y(function(){return new T_(f.Pa,f.ma,f.u)}); g.F(this,this.Va);this.U=Y(function(){return new U_}); g.F(this,this.U);this.Aa=new E0(a,this.xa);g.F(this,this.Aa);this.i=new F0(a);g.F(this,this.i);this.Ea=new G0(a,this.eb,this.Qa);g.F(this,this.Ea);this.jb=new H0(a,this.K,this.Fa,this.l);g.F(this,this.jb);this.C=new J0(a);g.F(this,this.C);this.Bb=new K0(a);g.F(this,this.Bb);this.Y=Y(function(){return new A0}); g.F(this,this.Y);this.Kb=Y(function(){return new B0(f.Fa)}); g.F(this,this.Kb);this.Ua=Y(function(){return new W_(f.qc)}); g.F(this,this.Ua);this.qb=Y(function(){return new a0(f.Xa,f.C)}); g.F(this,this.qb);this.wb=Y(function(){return new i0(f.xa,f.Fa,f.Xa,f.B,c)}); g.F(this,this.wb);this.Hb=Y(function(){return new x0(a,f.C,f.Xa,f.Ga,f.Nb,f.qd,f.l,f.Fa,f.K,f.kd,f.Cc,f.Ya,f.bb,f.yb,f.Qa)}); g.F(this,this.Hb);this.Vb=new L0(a,this.Da,this.u,this.l,this.Qa,this.X);g.F(this,this.Vb);this.zd={hp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Jb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.La]]),il:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Va],["SLOT_TYPE_FORECASTING",this.U],["SLOT_TYPE_IN_PLAYER",this.U],["SLOT_TYPE_PLAYER_BYTES", this.U]]),Dh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Aa],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.i],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.i],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_EXITED",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.i],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Ea],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.jb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.C],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.C],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ea],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Bb]]),Ol:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Y],["SLOT_TYPE_FORECASTING",this.Y],["SLOT_TYPE_IN_PLAYER",this.Y],["SLOT_TYPE_PLAYER_BYTES",this.Kb]]),yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ua],["SLOT_TYPE_FORECASTING", this.qb],["SLOT_TYPE_IN_PLAYER",this.wb],["SLOT_TYPE_PLAYER_BYTES",this.Hb]])};this.listeners=[this.B.get()];this.pe={qc:this.qc,Lj:null,Al:this.Da.get(),kh:this.Qa.get(),cn:this.Fa.get(),lc:this.lc,zl:null,Xh:this.Aa,Pg:this.B.get()}}; q1=function(a,b,c,d,e,f,h,l,m){g0.call(this,a,b,c,d,e,f,h,m);this.G=l}; zIa=function(){var a=BHa();a.Wd.push("metadata_type_ad_info_ad_metadata");return a}; AIa=function(a,b,c,d,e,f){this.l=a;this.Fa=b;this.Xa=c;this.u=d;this.i=e;this.Cd=f}; BIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.X=Y(function(){return new a_}); g.F(this,this.X);this.ma=Y(function(){return new e_(f.X)}); g.F(this,this.ma);this.B=Y(function(){return new $Z}); g.F(this,this.B);this.G=Y(function(){return new WZ(a)}); g.F(this,this.G);this.J=Y(function(){return new r_(f.X)}); g.F(this,this.J);this.Ob=Y(function(){return new u_}); g.F(this,this.Ob);this.bb=Y(function(){return new XHa(b)}); g.F(this,this.bb);this.eb=Y(function(){return new RI(b.T())}); g.F(this,this.eb);this.xa=Y(function(){return new N0(b)}); g.F(this,this.xa);this.jb=Y(function(){return new M_(e)}); g.F(this,this.jb);this.kd=Y(function(){return new vK(b)}); g.F(this,this.kd);this.K=Y(function(){return new w_(b)}); g.F(this,this.K);this.qd=Y(function(){return new P0(b)}); g.F(this,this.qd);this.Cc=Y(function(){return new x_(b)}); g.F(this,this.Cc);this.Qa=Y(function(){return new y_(b)}); g.F(this,this.Qa);this.Ua=Y(function(){return new M0(d)}); g.F(this,this.Ua);this.u=Y(function(){return new bZ(f.Qa)}); g.F(this,this.u);this.va=Y(function(){return new UZ(f.J,f.ma,f.Qa,f.u,null,null)}); g.F(this,this.va);this.yb=Y(function(){return new Q0(b)}); g.F(this,this.yb);this.Ga=Y(function(){return new R0}); g.F(this,this.Ga);this.l=Y(function(){return new K_(b,f.Ob,f.Qa)}); g.F(this,this.l);this.Zb=new t_(this.Qa,this.u,this.l);g.F(this,this.Zb);this.Fa=Y(function(){return new L_(b)}); g.F(this,this.Fa);this.La=Y(function(){return new C_(f.Fa,b)}); g.F(this,this.La);this.Xa=Y(function(){return new F_(b,f.B,f.La,f.l)}); g.F(this,this.Xa);this.Nb=Y(function(){return new N_}); g.F(this,this.Nb);this.Jb=new y0(NHa,p1,function(l,m,n,p){return TGa(f.ma.get(),l,m,n,p)},this.G,this.J,this.u,this.Qa,this.l); g.F(this,this.Jb);this.lc=new qz(this.G,this.va,c,this.Qa,a,this.l,this.Fa);g.F(this,this.lc);var h=new v_(b,this.lc,this.Fa);this.qb=Y(function(){return h}); this.El=h;this.Pa=new ZZ(this.G,this.J,this.K,this.qb);g.F(this,this.Pa);this.qc=new jz(this.G,this.J,this.va,this.l,this.Pa,c);g.F(this,this.qc);this.Ya=Y(function(){return new T_(f.Ua,f.ma,f.u)}); g.F(this,this.Ya);this.U=Y(function(){return new U_}); g.F(this,this.U);this.Aa=new E0(a,this.xa);g.F(this,this.Aa);this.i=new F0(a);g.F(this,this.i);this.Ea=new G0(a,this.qb,this.Qa);g.F(this,this.Ea);this.Da=new H0(a,this.K,this.Fa,this.l);g.F(this,this.Da);this.C=new J0(a);g.F(this,this.C);this.Bb=new K0(a);g.F(this,this.Bb);this.Y=Y(function(){return new A0}); g.F(this,this.Y);this.Kb=Y(function(){return new B0(f.Fa)}); g.F(this,this.Kb);this.Va=Y(function(){return new W_(f.qc)}); g.F(this,this.Va);this.wb=Y(function(){return new a0(f.Xa,f.C)}); g.F(this,this.wb);this.Hb=Y(function(){return new x0(a,f.C,f.Xa,f.La,f.Nb,f.qd,f.l,f.Fa,f.K,f.kd,f.Cc,f.eb,f.jb,f.yb,f.Qa)}); g.F(this,this.Hb);this.Vb=Y(function(){return new AIa(f.xa,f.Fa,f.Xa,f.B,f.bb,c)}); g.F(this,this.Vb);this.wc=new L0(a,this.Ga,this.u,this.l,this.Qa,this.X);g.F(this,this.wc);this.zd={hp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Jb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Pa]]),il:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ya],["SLOT_TYPE_FORECASTING",this.U],["SLOT_TYPE_IN_PLAYER",this.U],["SLOT_TYPE_PLAYER_BYTES", this.U]]),Dh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Aa],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.i],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.i],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_EXITED",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.i],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Ea],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Da],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Da],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.C],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.C],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ea],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Bb]]),Ol:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Y],["SLOT_TYPE_FORECASTING",this.Y],["SLOT_TYPE_IN_PLAYER",this.Y],["SLOT_TYPE_PLAYER_BYTES",this.Kb]]),yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Va],["SLOT_TYPE_FORECASTING",this.wb],["SLOT_TYPE_IN_PLAYER",this.Vb],["SLOT_TYPE_PLAYER_BYTES",this.Hb]])};this.listeners=[this.B.get()];this.pe={qc:this.qc,Lj:null,Al:this.Ga.get(),kh:this.Qa.get(),cn:this.Fa.get(),lc:this.lc,zl:null,Xh:this.Aa,Pg:this.B.get()}}; CIa=function(a,b,c,d,e,f,h){this.i=a;this.Fa=b;this.Xa=c;this.l=d;this.u=e;this.Cd=f;this.Qa=h}; DIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.ma=Y(function(){return new a_}); g.F(this,this.ma);this.va=Y(function(){return new e_(f.ma)}); g.F(this,this.va);this.G=Y(function(){return new $Z}); g.F(this,this.G);this.B=Y(function(){return new WZ(a)}); g.F(this,this.B);this.C=Y(function(){return new r_(f.ma)}); g.F(this,this.C);this.jb=Y(function(){return new u_}); g.F(this,this.jb);this.Bb=Y(function(){return new XHa(b)}); g.F(this,this.Bb);this.Hb=Y(function(){return new RI(b.T())}); g.F(this,this.Hb);this.Aa=Y(function(){return new N0(b)}); g.F(this,this.Aa);this.Jb=Y(function(){return new M_(e)}); g.F(this,this.Jb);this.kd=Y(function(){return new vK(b)}); g.F(this,this.kd);this.U=Y(function(){return new w_(b)}); g.F(this,this.U);this.qd=Y(function(){return new P0(b)}); g.F(this,this.qd);this.Cc=Y(function(){return new x_(b)}); g.F(this,this.Cc);this.Qa=Y(function(){return new y_(b)}); g.F(this,this.Qa);this.qb=Y(function(){return new M0(d)}); g.F(this,this.qb);this.u=Y(function(){return new bZ(f.Qa)}); g.F(this,this.u);this.xa=Y(function(){return new UZ(f.C,f.va,f.Qa,f.u,null,f.La,3)}); g.F(this,this.xa);this.Ob=Y(function(){return new Q0(b)}); g.F(this,this.Ob);this.Ua=Y(function(){return new R0}); g.F(this,this.Ua);this.i=Y(function(){return new K_(b,f.jb,f.Qa)}); g.F(this,this.i);this.Zb=new t_(this.Qa,this.u,this.i);g.F(this,this.Zb);this.K=Y(function(){return new Z0(b,f.i,f.Qa,f.Xa)}); g.F(this,this.K);this.bb=Y(function(){return new $0(b)}); g.F(this,this.bb);this.Fa=Y(function(){return new L_(b)}); g.F(this,this.Fa);this.bd=Y(function(){return new N_}); this.Va=Y(function(){return new C_(f.Fa,b)}); g.F(this,this.Va);this.Xa=Y(function(){return new F_(b,f.G,f.Va,f.i)}); g.F(this,this.Xa);this.lc=new qz(this.B,this.xa,c,this.Qa,a,this.i,this.Fa);g.F(this,this.lc);var h=new v_(b,this.lc,this.Fa,this.K);this.Da=Y(function(){return h}); this.El=h;this.xc=new y0(OHa,p1,function(l,m,n,p){return TGa(f.va.get(),l,m,n,p)},this.B,this.C,this.u,this.Qa,this.i); g.F(this,this.xc);this.La=new V0(this.B,this.C,this.i,this.Da,this.K,this.Fa,this.Qa);g.F(this,this.La);this.eb=new ZZ(this.B,this.C,this.U,this.Da);g.F(this,this.eb);this.qc=new jz(this.B,this.C,this.xa,this.i,this.eb,c);g.F(this,this.qc);this.yb=Y(function(){return new T_(f.qb,f.va,f.u,f.bb)}); g.F(this,this.yb);this.Y=Y(function(){return new U_}); g.F(this,this.Y);this.Ea=new E0(a,this.Aa);g.F(this,this.Ea);this.l=new F0(a);g.F(this,this.l);this.Ga=new G0(a,this.Da,this.Qa);g.F(this,this.Ga);this.Pa=new H0(a,this.U,this.Fa,this.i);g.F(this,this.Pa);this.Ya=new Y0(a,this.i);g.F(this,this.Ya);this.J=new J0(a);g.F(this,this.J);this.Vb=new K0(a);g.F(this,this.Vb);this.X=Y(function(){return new A0}); g.F(this,this.X);this.Ac=Y(function(){return new B0(f.Fa)}); g.F(this,this.Ac);this.wb=Y(function(){return new W_(f.qc)}); g.F(this,this.wb);this.Kb=Y(function(){return new a0(f.Xa,f.J)}); g.F(this,this.Kb);this.wc=Y(function(){return new U0(a,f.J,f.i,f.bb,f.Fa,f.Xa,f.jb,f.K,f.Va,f.bd,f.qd,f.U,f.kd,f.Cc,f.Hb,f.Jb,f.Ob,f.Qa)}); g.F(this,this.wc);this.Nb=Y(function(){return new CIa(f.Aa,f.Fa,f.Xa,f.G,f.Bb,c,f.Qa)}); g.F(this,this.Nb);this.Gc=new L0(a,this.Ua,this.u,this.i,this.Qa,this.ma);g.F(this,this.Gc);this.zd={hp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.La],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.eb]]),il:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.yb],["SLOT_TYPE_FORECASTING",this.Y], ["SLOT_TYPE_IN_PLAYER",this.Y],["SLOT_TYPE_PLAYER_BYTES",this.Y]]),Dh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ea],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.l],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.l],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.l],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.l],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.l],["TRIGGER_TYPE_SLOT_ID_EXITED",this.l],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.l],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.l],["TRIGGER_TYPE_SLOT_ID_SCHEDULED", this.l],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ga],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Pa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Pa],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ya],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ya],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.J],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.J],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ga],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Vb]]),Ol:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.X],["SLOT_TYPE_FORECASTING",this.X],["SLOT_TYPE_IN_PLAYER",this.X],["SLOT_TYPE_PLAYER_BYTES",this.Ac]]),yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wb],["SLOT_TYPE_FORECASTING",this.Kb],["SLOT_TYPE_PLAYER_BYTES",this.wc],["SLOT_TYPE_IN_PLAYER",this.Nb]])};this.listeners=[this.G.get()];this.pe={qc:this.qc,Lj:null,Al:this.Ua.get(),kh:this.Qa.get(),cn:this.Fa.get(),lc:this.lc,zl:null,Xh:this.Ea,Pg:this.G.get()}}; r1=function(a,b,c,d){g.E.call(this);var e=this;this.i=EIa(function(){return e.l},a,b,c,d); g.F(this,this.i);this.l=(new AZ(this.i)).u();g.F(this,this.l)}; EIa=function(a,b,c,d,e){try{var f=b.T();if(g.BG(f))var h=new uIa(a,b,c,d,e);else if(g.FG(f))h=new wIa(a,b,c,d,e);else if(ela(f))h=new yIa(a,b,c,d,e);else if(cG(f))h=new xIa(a,b,c,d,e);else if(g.VF(f))h=new BIa(a,b,c,d,e);else if(g.UF(f))h=new DIa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.T(),R("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,interface:e.deviceParams.c,L7:e.deviceParams.cver,K7:e.deviceParams.ctheme, J7:e.deviceParams.cplayer,X7:e.playerStyle}),new pHa(a,b,c,d)}}; s1=function(a,b){this.i=a;this.Lj=b}; t1=function(a){WL.call(this,a)}; u1=function(a,b,c,d,e){cM.call(this,a,b,{D:"div",L:"ytp-ad-timed-pie-countdown-container",S:[{D:"svg",L:"ytp-ad-timed-pie-countdown",V:{viewBox:"0 0 20 20"},S:[{D:"circle",L:"ytp-ad-timed-pie-countdown-background",V:{r:"10",cx:"10",cy:"10"}},{D:"circle",L:"ytp-ad-timed-pie-countdown-inner",V:{r:"5",cx:"10",cy:"10"}},{D:"circle",L:"ytp-ad-timed-pie-countdown-outer",V:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e);this.B=this.Ba("ytp-ad-timed-pie-countdown-inner");this.u=Math.ceil(10*Math.PI); this.hide()}; v1=function(a,b,c,d,e,f){yL.call(this,a,b,{D:"div",L:"ytp-ad-action-interstitial",V:{tabindex:"0"},S:[{D:"div",L:"ytp-ad-action-interstitial-background-container"},{D:"div",L:"ytp-ad-action-interstitial-slot",S:[{D:"div",L:"ytp-ad-action-interstitial-card",S:[{D:"div",L:"ytp-ad-action-interstitial-image-container"},{D:"div",L:"ytp-ad-action-interstitial-headline-container"},{D:"div",L:"ytp-ad-action-interstitial-description-container"},{D:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]}, "ad-action-interstitial",c,d);this.Zg=e;this.wi=f;this.navigationEndpoint=this.l=this.skipButton=this.u=this.actionButton=null;this.Da=this.Ba("ytp-ad-action-interstitial-image-container");this.C=new SL(this.api,this.Ta,this.layoutId,this.i,"ytp-ad-action-interstitial-image");g.F(this,this.C);this.C.ya(this.Da);this.Aa=this.Ba("ytp-ad-action-interstitial-headline-container");this.X=new aM(this.api,this.Ta,this.layoutId,this.i,"ytp-ad-action-interstitial-headline");g.F(this,this.X);this.X.ya(this.Aa); this.xa=this.Ba("ytp-ad-action-interstitial-description-container");this.K=new aM(this.api,this.Ta,this.layoutId,this.i,"ytp-ad-action-interstitial-description");g.F(this,this.K);this.K.ya(this.xa);this.Pa=this.Ba("ytp-ad-action-interstitial-background-container");this.G=new SL(this.api,this.Ta,this.layoutId,this.i,"ytp-ad-action-interstitial-background",!0);g.F(this,this.G);this.G.ya(this.Pa);this.Ga=this.Ba("ytp-ad-action-interstitial-action-button-container");this.B=new mx;g.F(this,this.B);this.hide()}; FIa=function(a){var b=g.cg("html5-video-player");b&&g.N(b,"ytp-ad-display-override",a)}; w1=function(a,b,c,d){yL.call(this,a,b,{D:"div",L:"ytp-ad-overlay-slot",S:[{D:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.K=[];this.Va=this.xa=this.C=this.Pa=this.Da=null;this.Ga=!1;this.G=null;this.X=0;a=this.Ba("ytp-ad-overlay-container");this.Aa=new lM(a,45E3,6E3,.3,.4);g.F(this,this.Aa);this.B=GIa(this);g.F(this,this.B);this.B.ya(a);this.u=HIa(this);g.F(this,this.u);this.u.ya(a);this.l=IIa(this);g.F(this,this.l);this.l.ya(a);this.hide()}; GIa=function(a){var b=new g.xL({D:"div",L:"ytp-ad-text-overlay",S:[{D:"div",L:"ytp-ad-overlay-ad-info-button-container"},{D:"div",L:"ytp-ad-overlay-close-container",S:[{D:"button",L:"ytp-ad-overlay-close-button",S:[LL(x1)]}]},{D:"div",L:"ytp-ad-overlay-title",oa:"{{title}}"},{D:"div",L:"ytp-ad-overlay-desc",oa:"{{description}}"},{D:"div",Ca:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],oa:"{{displayUrl}}"}]});a.N(b.Ba("ytp-ad-overlay-title"),"click",function(c){return y1(a,b.element, c)}); a.N(b.Ba("ytp-ad-overlay-link"),"click",function(c){return y1(a,b.element,c)}); a.N(b.Ba("ytp-ad-overlay-close-container"),"click",a.Zh);b.hide();return b}; HIa=function(a){var b=new g.xL({D:"div",Ca:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{D:"div",L:"ytp-ad-overlay-ad-info-button-container"},{D:"div",L:"ytp-ad-overlay-close-container",S:[{D:"button",L:"ytp-ad-overlay-close-button",S:[LL(x1)]}]},{D:"div",L:"ytp-ad-overlay-text-image",S:[{D:"img",V:{src:"{{imageUrl}}"}}]},{D:"div",L:"ytp-ad-overlay-title",oa:"{{title}}"},{D:"div",L:"ytp-ad-overlay-desc",oa:"{{description}}"},{D:"div",Ca:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], oa:"{{displayUrl}}"}]});a.N(b.Ba("ytp-ad-overlay-title"),"click",function(c){return y1(a,b.element,c)}); a.N(b.Ba("ytp-ad-overlay-link"),"click",function(c){return y1(a,b.element,c)}); a.N(b.Ba("ytp-ad-overlay-close-container"),"click",a.Zh);a.N(b.Ba("ytp-ad-overlay-text-image"),"click",a.lT);b.hide();return b}; IIa=function(a){var b=new g.xL({D:"div",L:"ytp-ad-image-overlay",S:[{D:"div",L:"ytp-ad-overlay-ad-info-button-container"},{D:"div",L:"ytp-ad-overlay-close-container",S:[{D:"button",L:"ytp-ad-overlay-close-button",S:[LL(x1)]}]},{D:"div",L:"ytp-ad-overlay-image",S:[{D:"img",V:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.N(b.Ba("ytp-ad-overlay-image"),"click",function(c){return y1(a,b.element,c)}); a.N(b.Ba("ytp-ad-overlay-close-container"),"click",a.Zh);b.hide();return b}; z1=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.Tx(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.cg("video-ads ytp-ad-module")||null,null==b)g.Tx(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.xa=new g.xL({D:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.F(a,a.xa),a.xa.ya(b),b=new $L(a.api,a.Ta,a.layoutId,a.i,a.xa.element,!1),g.F(a,b),b.init(PI("ad-info-hover-text-button"),c, a.macros),a.G){b.ya(a.G,0);b.subscribe("f",a.uQ,a);b.subscribe("e",a.wC,a);a.N(a.G,"click",a.vQ);var d=g.cg("ytp-ad-button",b.element);a.N(d,"click",function(){var e,f,h;if(null===(h=null===(f=null===(e=c.button)||void 0===e?void 0:e.buttonRenderer)||void 0===f?void 0:f.serviceEndpoint)||void 0===h?0:h.adInfoDialogEndpoint)a.Ga=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}); a.Va=b}else g.Tx(Error("Ad info button container within overlay ad was not present."))}else g.Ux(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; JIa=function(a){return a.C&&a.C.closeButton&&a.C.closeButton.buttonRenderer&&(a=a.C.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]}; KIa=function(a,b){if(A1(a,B1)||a.api.Ce())return!1;var c=zL(b.title),d=zL(b.description);if(g.rc(c)||g.rc(d))return!1;a.Ig(a.B.element,b.trackingParams||null);a.B.Sa("title",zL(b.title));a.B.Sa("description",zL(b.description));a.B.Sa("displayUrl",zL(b.displayUrl));b.navigationEndpoint&&sb(a.K,b.navigationEndpoint);a.B.show();a.Aa.start();a.ib(a.B.element,!0);a.N(a.B.element,"mouseover",function(){a.X++}); return!0}; LIa=function(a,b){if(A1(a,B1)||a.api.Ce())return!1;var c=zL(b.title),d=zL(b.description);if(g.rc(c)||g.rc(d))return!1;a.Ig(a.u.element,b.trackingParams||null);a.u.Sa("title",zL(b.title));a.u.Sa("description",zL(b.description));a.u.Sa("displayUrl",zL(b.displayUrl));a.u.Sa("imageUrl",Fqa(b.image));b.navigationEndpoint&&sb(a.K,b.navigationEndpoint);a.Pa=b.imageNavigationEndpoint||null;a.u.show();a.Aa.start();a.ib(a.u.element,!0);a.N(a.u.element,"mouseover",function(){a.X++}); return!0}; MIa=function(a,b){if(a.api.Ce())return!1;var c=Gqa(b.image),d=c;c.widthdocument.documentMode)c=Pc;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.ng("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Oga(d.style)}b=Caa(c,Qc({"background-image":'url("'+b+'")'}));a.style.cssText=Nc(b)}}; XIa=function(a){var b=g.cg("html5-video-player");b&&g.N(b,"ytp-ad-display-override",a)}; N1=function(a,b){WL.call(this,a);this.api=a;this.l={};this.C=b;a=new g.V({D:"div",Ca:["video-ads","ytp-ad-module"]});g.F(this,a);KF&&g.K(a.element,"ytp-ads-tiny-mode");this.B=new rL(a.element);g.F(this,this.B);g.oN(this.api,a.element,4);g.F(this,Xqa())}; YIa=function(a,b){a=Tb(a.l,b.id,null);null==a&&g.Ux(Error("Component not found for element id: "+b.id));return a||null}; O1=function(a){g.zN.call(this,a);var b=this;this.l=this.Ta=null;this.created=!1;this.cm=new YK(this.player);this.u=function(){function d(){return b.Ta} if(null!=b.l)return b.l;var e=kqa({oo:a.getVideoData(1)});e=new tFa({VN:new s1(function(){return b.Ta},b.i.i.pe.Lj), Qn:e.NO(),iO:d,mQ:d,Xh:b.i.i.pe.Xh,ij:e.lB(),I:b.player,kh:b.i.i.pe.kh,Xa:b.i.i.Xa,Pg:b.i.i.pe.Pg,Cc:b.i.i.Cc});b.l=e.DM;return b.l}; this.i=new r1(this.player,this,this.cm,this.u);g.F(this,this.i);var c=a.T();!aG(c)||g.UF(c)||cG(c)||(g.F(this,new N1(a,function(){return b.Ta})),g.F(this,new t1(a)))}; P1=function(a,b){b===a.Nn&&(a.Nn=void 0)}; ZIa=function(a){a.Ta?a.i.i.pe.lc.AB()||a.Ta.AB()||a.i.i.pe.cn.Qj():R("AdService is null when calling maybeUnlockPrerollIfReady")}; $Ia=function(a){a=g.q(a.i.i.pe.Pg.xi.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.ob&&"core"===b.gb)return!0;return!1}; aJa=function(a){a=g.q(a.i.i.pe.Pg.xi.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1}; lz=function(a,b,c){c=void 0===c?"":c;var d=a.i.i.pe.kh,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.Sh()||!1;d=bJa(b,d,f,e);Kia(a.i.i.pe.qc,c,d.nk,b);a.Ta&&0>>0)+"_",e=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=e}}); ia("Array.prototype.find",function(a){return a?a:function(b,c){return Ea(this,b,c).aL}}); ia("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Da(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}}); ia("String.prototype.repeat",function(a){return a?a:function(b){var c=Da(this,null,"repeat");if(0>b||1342177279>>=1)c+=c;return d}}); ia("Array.prototype.entries",function(a){return a?a:function(){return Fa(this,function(b,c){return[b,c]})}}); ia("Object.setPrototypeOf",function(a){return a||oa}); var hJa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;cb?-c:c}}); 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));cc&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c>>0);eaa=0;g.Ta(Va,Error);Va.prototype.name="CustomError";var Xf;g.Ta(Wa,Va);Wa.prototype.name="AssertionError";var jb,zm,sn;jb=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0); for(var c=0;cc&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1}; g.Cb=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/g,vc=/"/g,wc=/'/g,xc=/\x00/g,uaa=/[\x00&<>"']/;g.k=g.Ec.prototype;g.k.Xj=!0;g.k.ph=function(){return this.i.toString()}; g.k.DB=!0;g.k.Bq=function(){return 1}; g.k.toString=function(){return this.i.toString()}; var waa=/^(?: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,vaa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Hc=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Dc={},Ic=new g.Ec("about:invalid#zClosurez",Dc);Mc.prototype.Xj=!0;Mc.prototype.ph=function(){return this.i}; Mc.prototype.toString=function(){return this.i.toString()}; var Lc={},Pc=new Mc("",Lc),yaa=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,Sc=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,Rc=/\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,zaa=/\/\*/;a:{var kJa=g.A.navigator;if(kJa){var lJa=kJa.userAgent;if(lJa){g.Tc=lJa;break a}}g.Tc=""};g.k=Zc.prototype;g.k.DB=!0;g.k.Bq=function(){return this.l}; g.k.Xj=!0;g.k.ph=function(){return this.i.toString()}; g.k.toString=function(){return this.i.toString()}; var mJa=/^[a-zA-Z0-9-]+$/,nJa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},oJa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Yc={},cd=new Zc(g.A.trustedTypes&&g.A.trustedTypes.emptyHTML||"",0,Yc);var Gaa=cb(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.$c(cd);return!b.parentElement}),Haa=/^[\w+/_-]+[=]{0,2}$/;g.pJa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Jd="function"===typeof Uint8Array.prototype.slice,je=0,ke=0;g.k=Ad.prototype;g.k.clone=function(){return Cd(this.l,this.B,this.u-this.B)}; g.k.clear=function(){this.l=null;this.i=this.u=this.B=0;this.C=!1}; g.k.reset=function(){this.i=this.B}; g.k.advance=function(a){this.i+=a}; g.k.vg=function(){var a=this.l[this.i+0];this.i+=1;return a}; g.k.rk=function(){var a=this.l[this.i+0],b=this.l[this.i+1];this.i+=2;return a<<0|b<<8}; g.k.Fc=function(){var a=this.l[this.i+0],b=this.l[this.i+1],c=this.l[this.i+2],d=this.l[this.i+3];this.i+=4;return(a<<0|b<<8|c<<16|d<<24)>>>0}; g.k.Ne=function(){var a=this.l[this.i+0],b=this.l[this.i+1],c=this.l[this.i+2],d=this.l[this.i+3];this.i+=4;return a<<0|b<<8|c<<16|d<<24}; g.k.dr=function(){var a=this.Fc(),b=this.Fc();return wd(a,b)}; g.k.Oe=function(a){var b=this.l,c=this.i;a=c+a;for(var d=[],e="";cf)d.push(f);else if(192>f)continue;else if(224>f){var h=b[c++];d.push((f&31)<<6|h&63)}else if(240>f){h=b[c++];var l=b[c++];d.push((f&15)<<12|(h&63)<<6|l&63)}else if(248>f){h=b[c++];l=b[c++];var m=b[c++];f=(f&7)<<18|(h&63)<<12|(l&63)<<6|m&63;f-=65536;d.push((f>>10&1023)+55296,(f&1023)+56320)}8192<=d.length&&(e+=String.fromCharCode.apply(null,d),d.length=0)}e+=Ya(d);this.i=c;return e}; var Bd=[];g.k=Gd.prototype;g.k.reset=function(){this.i.reset();this.l=this.u=-1}; g.k.advance=function(a){this.i.advance(a)}; g.k.Ne=function(){return Ed(this.i)}; g.k.dr=function(){return Dd(this.i)}; g.k.Fc=function(){return Ed(this.i)}; g.k.Oe=function(){var a=Ed(this.i);return this.i.Oe(a)};Ld.prototype.push=function(a){if(!(this.l+1parseFloat(V1)){U1=String(X1);break a}}U1=V1}var Vd=U1,Kaa={},Y1;if(g.A.document&&g.fe){var tJa=Ud();Y1=tJa?tJa:parseInt(Vd,10)||void 0}else Y1=void 0;var Laa=Y1;var TF,cI;g.bj=Vc();TF=Od()||Uc("iPod");cI=Uc("iPad");g.LF=Uc("Android")&&!(Wc()||Vc()||Uc("Opera")||Uc("Silk"));g.aj=Wc();g.cj=Xc()&&!Pd();var Zd={},ge=null;var qe="function"===typeof Uint8Array,Naa={MP:{value:!0,configurable:!0}};var ve,we=Object.freeze(se([]));ue.prototype.toString=function(){return Je(this).toString()}; ue.prototype.clone=function(){var a=Maa(Je(this));ve=a;a=new this.constructor(a);ve=null;return a};g.v(Pe,ue);g.v(Qe,ue);g.v(Re,ue);g.v(Te,ue);var Se=[[1,2,3]];var vea={cK:5,HH:100,oI:6E5},qea={cK:10,HH:500,oI:6E5};g.v(Ue,Error);g.Ve.prototype.l=0;g.Ve.prototype.reset=function(){this.i=this.u=this.B;this.l=0}; g.Ve.prototype.getValue=function(){return this.u};g.k=bf.prototype;g.k.XN=function(a,b){for(var c=[],d=1;d>>0);g.Ta(g.If,g.E);g.If.prototype[nf]=!0;g.k=g.If.prototype;g.k.addEventListener=function(a,b,c,d){uf(this,a,b,c,d)}; g.k.removeEventListener=function(a,b,c,d){Ef(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.qb;d=a.type||a;if("string"===typeof a)a=new g.hf(a,b);else if(a instanceof g.hf)a.target=a.target||b;else{var e=a;a=new g.hf(d,b);g.Yb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.l&&0<=f;f--){var h=a.currentTarget=c[f];e=Jf(h,d,!0,a)&&e}a.l||(h=a.currentTarget=b,e=Jf(h,d,!0,a)&&e,a.l||(e=Jf(h,d,!1,a)&&e));if(c)for(f=0;!a.l&&fl?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.i.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+ e:"")}; g.k.get=function(a,b){for(var c=a+"=",d=(this.i.cookie||"").split(";"),e=0,f;e2*this.size&&di(this),!0):!1}; g.k.get=function(a,b){return ci(this.l,a)?this.l[a]:b}; g.k.set=function(a,b){ci(this.l,a)||(this.size+=1,this.i.push(a),this.An++);this.l[a]=b}; g.k.forEach=function(a,b){for(var c=this.Rh(),d=0;d=d.i.length)throw g.$h;var f=d.i[b++];return a?f:d.l[f]}; e.next=e.i.bind(e);return e};var gi=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,wi=/#|$/,Lda=/[?&]($|#)/;g.Ta(g.Ai,g.If);var Pda=/^https?$/i,vJa=["POST","PUT"],Bi=[];g.k=g.Ai.prototype;g.k.hO=function(){this.dispose();g.ob(Bi,this)}; g.k.send=function(a,b,c,d){if(this.i)throw Error("[goog.net.XhrIo] Object is active with another request="+this.U+"; newUri="+a);b=b?b.toUpperCase():"GET";this.U=a;this.u="";this.l=0;this.La=b;this.Aa=!1;this.C=!0;this.i=this.xa?this.xa.i():Z1.i();this.va=this.xa?this.xa.getOptions():Z1.getOptions();this.i.onreadystatechange=(0,g.C)(this.oJ,this);try{Lh(Hi(this,"Opening Xhr")),this.Ea=!0,this.i.open(b,String(a),!0),this.Ea=!1}catch(f){Lh(Hi(this,"Error opening Xhr: "+f.message));Ei(this,f);return}a= c||"";var e=this.headers.clone();d&&Kda(d,function(f,h){e.set(h,f)}); d=e.Rh().find(function(f){return"content-type"==f.toLowerCase()}); c=g.A.FormData&&a instanceof g.A.FormData;!g.kb(vJa,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(f,h){this.i.setRequestHeader(h,f)},this); this.Ga&&(this.i.responseType=this.Ga);"withCredentials"in this.i&&this.i.withCredentials!==this.K&&(this.i.withCredentials=this.K);try{Pi(this),0d&&this.Aau||401===u||0===u)c.l=x.concat(c.l),c.X||c.i.enabled||c.i.start();b&&b("net-send-failed",u)},t=function(){c.La?c.La.send(n,p,r):c.eb(n,p,r)}; m?m.then(function(u){n.rp["Content-Encoding"]="gzip";n.rp["Content-Type"]="application/binary";n.body=u;n.i=2;t()},function(){t()}):t()}}}}; g.k.Rs=function(){this.flush()}; g.v(hj,g.hf);ij.prototype.He=function(){var a=new ej(1654,this.C?this.C:Fh,"0",this.J,this.u,this.B,!1,void 0,void 0,void 0,this.K?this.K:void 0);if(this.Y){var b=this.Y;Ae(b,1)||De(b,1,1);Ke(a.C,1,b)}if(this.l){b=this.l;var c=He(a.C,Ti,1),d=He(c,Si,11);d||(d=new Si);De(d,7,b);Ke(c,11,d);Ae(c,1)||De(c,1,1);Ke(a.C,1,c)}this.G&&(a.K=this.G);this.i&&(a.Y=this.i);this.U&&((b=this.U)?(a.u||(a.u=new Gh),b=Me(b),De(a.u,4,b)):a.u&&De(a.u,4,void 0));this.ma&&(b=this.ma,a.u||(a.u=new Gh),De(a.u,2,se(b||[])));this.X&&(b= this.X,a.Pa=!0,gj(a,b));return a};jj.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new wh,c=[],d=0;d>>3;1!=f.l&&2!=f.l&&15!=f.l&&Bk(f,h,l,"unexpected tag");f.Oa=1;f.i=0;f.u=0} function c(m){f.u++;5==f.u&&m&240&&Bk(f,h,l,"message length too long");f.i|=(m&127)<<7*(f.u-1);m&128||(f.Oa=2,f.G=0,"undefined"!==typeof Uint8Array?f.B=new Uint8Array(f.i):f.B=Array(f.i),0==f.i&&e())} function d(m){f.B[f.G++]=m;f.G==f.i&&e()} function e(){if(15>f.l){var m={};m[f.l]=f.B;f.Od.push(m)}f.Oa=0} for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;lb||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?Jk(this,7):7==c?Jk(this,8):d||Jk(this,3)),this.l||(this.l=lea(this.i),null==this.l&&Jk(this,5)),2this.u){var h=a.length;c=[];try{if(this.l.Fv())for(var l=0;lthis.u){l=e.substr(this.u);this.u=e.length;try{var n=this.l.parse(l);null!=n&&this.C&&this.C(n)}catch(p){Jk(this,5);Kk(this);break a}}4==b?(0!=e.length|| this.U?Jk(this,2):Jk(this,4),Kk(this)):Jk(this,1)}}}catch(p){Jk(this,6),Kk(this)}};g.k=Lk.prototype;g.k.Cl=function(a,b){var c=this.l[a];c||(c=[],this.l[a]=c);c.push(b);return this}; g.k.addListener=function(a,b){this.Cl(a,b);return this}; g.k.removeListener=function(a,b){var c=this.l[a];c&&g.ob(c,b);(a=this.i[a])&&g.ob(a,b);return this}; g.k.once=function(a,b){var c=this.i[a];c||(c=[],this.i[a]=c);c.push(b);return this}; g.k.jR=function(a){var b=this.l.data;b&&Mk(a,b);(b=this.i.data)&&Mk(a,b);this.i.data=[]}; g.k.fT=function(){switch(this.u.getStatus()){case 1:Nk(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Nk(this,"error");break;case 8:Nk(this,"close");break;case 2:Nk(this,"end")}};Ok.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Pk(function(h){var l=h.ww(),m=h.getMetadata(),n=Rk(e,!1);m=Sk(e,m,n,f+l.getName());var p=Tk(n,l.l,!0);h=l.i(h.i);n.send(m,"POST",h);return p},this.B).call(this,Kj(d,b,c))};Vk.prototype.create=function(a,b){return Qk(this.i,"https://waa-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},wJa)};g.v(Xk,g.E);g.v(Yk,Xk);Yk.prototype.qx=function(a){this.i+=1;var b=new Ej(this.G(a.vG));a=b.l;b=g.xd(b.u);var c=new Re;a=De(c,1,a);a=De(a,2,b);b=new Te;c=Se[0];b.i||(b.i={});var d=a?Je(a):a;b.i[3]=a;a=Ge(b,3,c,d);b=new he;c=He(a,Pe,1);null!=c&&ne(b,1,c,Raa);c=He(a,Qe,2);null!=c&&ne(b,2,c,Saa);c=He(a,Re,3);null!=c&&ne(b,3,c,Taa);return ie(b)}; Yk.prototype.u=function(){return this.i>=this.B}; Yk.prototype.dispose=function(){this.C.dispose()}; g.v(Zk,Xk);Zk.prototype.qx=function(){return this.i}; Zk.prototype.u=function(){return!1}; Wk.prototype.isReady=function(){return!!this.i}; Wk.prototype.ready=function(){return g.D(this,function b(){var c=this;return g.z(b,function(d){return g.w(d,c.C,0)})})}; Wk.prototype.refresh=function(){return g.D(this,function b(){var c=this,d,e;return g.z(b,function(f){if(1==f.i){if(c.u)return f.return();c.u=!0;f.G=0;f.B=2;d=c.i;d.l=!0;e=$k(c);return g.w(f,e,4)}2!=f.i&&(c.i=f.l,d.dispose());wa(f);c.u=!1;return xa(f,0)})})}; Wk.prototype.qx=function(a){if(!this.isReady())throw Error("Not ready");try{var b=this.i,c=Date.now();b.l&&this.logger.ax(6);try{var d=b.qx(a)}catch(e){throw al(this,5,e);}b.u()&&this.refresh();this.logger.bx("m",Date.now()-c);return d}catch(e){return this.onError(e instanceof Error?e:Error(String(e)),"Could not mint"),a="WE:",a=e instanceof Ue?a+(e.code+":"+e.message+":"+e.stack):e instanceof Error?a+(e.message+":"+e.stack):a+(""+e),new Uint8Array(g.Xa(a.substring(0,2048)))}};var Nn;Nn=["av.key","js","unreleased"].slice(-1)[0];var Sl=document,nm=window;var xea=cb(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 Aea=/https?:\/\/[^\/]+/,yea={xV:"allow-forms",yV:"allow-modals",zV:"allow-orientation-lock",AV:"allow-pointer-lock",BV:"allow-popups",CV:"allow-popups-to-escape-sandbox",EV:"allow-presentation",FV:"allow-same-origin",GV:"allow-scripts",HV:"allow-top-navigation",IV:"allow-top-navigation-by-user-activation"},Dea=cb(function(){return zea()});g.k=ml.prototype;g.k.getHeight=function(){return this.bottom-this.top}; g.k.clone=function(){return new ml(this.top,this.right,this.bottom,this.left)}; g.k.contains=function(a){return this&&a?a instanceof ml?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.pl.prototype;g.k.clone=function(){return new g.pl(this.left,this.top,this.width,this.height)}; g.k.contains=function(a){return a instanceof g.Qf?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.J?a:this;b!==this.i?(this.C=this.i.C,An(this)):this.C!==this.i.C&&(this.C=this.i.C,An(this))}; g.k.Mm=function(a){if(a.l===this.i){var b=this.u,c=this.K;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;this.u=a;!c&&Fn(this)}}; g.k.wk=function(){return this.K}; g.k.dispose=function(){this.ma=!0}; g.k.Ha=function(){return this.ma};g.k=Gn.prototype;g.k.gz=function(){return!0}; g.k.Lr=function(){}; g.k.dispose=function(){if(!this.Ha()){var a=this.l;g.ob(a.B,this);a.K&&this.wk()&&En(a);this.Lr();this.Y=!0}}; g.k.Ha=function(){return this.Y}; g.k.Dm=function(){return this.l.Dm()}; g.k.ol=function(){return this.l.ol()}; g.k.Cq=function(){return this.l.Cq()}; g.k.At=function(){return this.l.At()}; g.k.Hq=function(){}; g.k.Mm=function(){this.gm()}; g.k.wk=function(){return this.X};g.k=Hn.prototype;g.k.ol=function(){return this.i.ol()}; g.k.Cq=function(){return this.i.Cq()}; g.k.At=function(){return this.i.At()}; g.k.create=function(a,b,c){var d=null;this.i&&(d=this.fv(a,b,c),Cn(this.i,d));return d}; g.k.rE=function(){return this.Mr()}; g.k.Mr=function(){return!1}; g.k.init=function(a){return this.i.initialize()?(Cn(this.i,this),this.B=a,!0):!1}; g.k.Hq=function(a){0==a.ol()&&this.B(a.Cq(),this)}; g.k.Mm=function(){}; g.k.wk=function(){return!1}; g.k.dispose=function(){this.C=!0}; g.k.Ha=function(){return this.C}; g.k.Dm=function(){return{}};Kn.prototype.add=function(a,b,c){++this.u;var d=this.u/4096,e=this.i,f=e.push;a=new In(a,b,c);d=new In(a.l,a.i,a.u+d);f.call(e,d);this.l=!0;return this};On.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Mn(this.i);0=h;h=!(0=h)||c;this.i[e].update(f&&l,d,!f||h)}};ao.prototype.update=function(a,b,c,d){this.J=-1!=this.J?Math.min(this.J,b.Pc):b.Pc;this.X=Math.max(this.X,b.Pc);this.ma=-1!=this.ma?Math.min(this.ma,b.Yg):b.Yg;this.xa=Math.max(this.xa,b.Yg);this.Ua.update(b.Yg,c.Yg,b.i,a,d);this.l.update(b.Pc,c.Pc,b.i,a,d);c=d||c.Ro!=b.Ro?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.i;this.Da.update(c,a,b)}; ao.prototype.To=function(){return this.Da.u>=this.Pa};var GJa=new ml(0,0,0,0);var rfa=new ml(0,0,0,0);g.v(fo,g.E);g.k=fo.prototype;g.k.ra=function(){this.Jg.i&&(this.po.gC&&(gl(this.Jg.i,"mouseover",this.po.gC),this.po.gC=null),this.po.eC&&(gl(this.Jg.i,"mouseout",this.po.eC),this.po.eC=null));this.Mu&&this.Mu.dispose();this.xd&&this.xd.dispose();delete this.jx;delete this.YB;delete this.PK;delete this.Jg.Um;delete this.Jg.i;delete this.po;delete this.Mu;delete this.xd;delete this.featureSet;g.E.prototype.ra.call(this)}; g.k.Em=function(){return this.xd?this.xd.i:this.position}; g.k.KC=function(a){Km().KC(a)}; g.k.wk=function(){return!1}; g.k.zw=function(){return new ao}; g.k.Mg=function(){return this.jx}; g.k.kH=function(a){return io(this,a,1E4)}; g.k.Ma=function(a,b,c,d,e,f,h){this.Nq||(this.Yv&&(a=this.mA(a,c,e,h),d=d&&this.Ze.Pc>=(this.Ro()?.3:.5),this.RD(f,a,d),this.lastUpdateTime=b,0=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0=a.bottom||a.left>=a.right?new ml(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.RH(c)?c=new ml(0,0,0,0):(d=wn().B,b=new ml(0,d.height,d.width,0),d=eo(c,this.i),e=eo(c,wn().i),b=eo(c,b)));c=c.top>=c.bottom||c.left>=c.right?new ml(0,0,0, 0):ol(c,-this.i.left,-this.i.top);xn()||(e=d=0);this.J=new kn(a,this.i,c,d,e,this.timestamp,b)}; g.k.getName=function(){return this.l.getName()};var HJa=new ml(0,0,0,0);g.v(to,so);g.k=to.prototype;g.k.gz=function(){this.u();return!0}; g.k.Mm=function(){so.prototype.gm.call(this)}; g.k.hG=function(){}; g.k.pA=function(){}; g.k.gm=function(){this.u();so.prototype.gm.call(this)}; g.k.Hq=function(a){a=a.isActive();a!==this.G&&(a?this.u():(wn().i=new ml(0,0,0,0),this.i=new ml(0,0,0,0),this.B=new ml(0,0,0,0),this.timestamp=-1));this.G=a};var a2={},Hfa=(a2.firstquartile=0,a2.midpoint=1,a2.thirdquartile=2,a2.complete=3,a2);g.v(vo,fo);g.k=vo.prototype;g.k.wk=function(){return!0}; g.k.wl=function(){return 2==this.hg}; g.k.kH=function(a){return io(this,a,Math.max(1E4,this.u/3))}; g.k.Ma=function(a,b,c,d,e,f,h){var l=this,m=this.K(this)||{};g.Yb(m,e);this.u=m.duration||this.u;this.U=m.isVpaid||this.U;this.Ea=m.isYouTube||this.Ea;e=Dfa(this,b);1===zo(this)&&(f=e);fo.prototype.Ma.call(this,a,b,c,d,m,f,h);this.Yo&&this.Yo.i&&g.Cb(this.G,function(n){n.i||(n.i=ro(n,l))})}; g.k.RD=function(a,b,c){fo.prototype.RD.call(this,a,b,c);yo(this).update(a,b,this.Ze,c);this.Ua=ko(this.Ze)&&ko(b);-1==this.xa&&this.Pa&&(this.xa=this.Mg().u.i);this.Re.u=0;a=this.To();b.isVisible()&&lo(this.Re,"vs");a&&lo(this.Re,"vw");rn(b.volume)&&lo(this.Re,"am");ko(b)&&lo(this.Re,"a");this.Iq&&lo(this.Re,"f");-1!=b.l&&(lo(this.Re,"bm"),1==b.l&&lo(this.Re,"b"));ko(b)&&b.isVisible()&&lo(this.Re,"avs");this.Ua&&a&&lo(this.Re,"avw");0this.i.J&&(this.i=this,An(this)),this.J=a);return 2==a};ip.prototype.sE=function(){lp(this,Wo(),!1)}; ip.prototype.B=function(){var a=xn(),b=dn();a?(fn||(gn=b,g.Cb(Vo.i,function(c){var d=c.Mg();d.Ea=oo(d,b,1!=c.hg)})),fn=!0):(this.J=np(this,b),fn=!1,Qo=b,g.Cb(Vo.i,function(c){c.Yv&&(c.Mg().K=b)})); lp(this,Wo(),!a)}; var jp=g.Am(ip);var op=null,Xp="",Wp=!1;var b2=up([void 0,1,2,3,4,8,16]),c2=up([void 0,4,8,16]),JJa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:tp("p0",c2),p1:tp("p1",c2),p2:tp("p2",c2),p3:tp("p3",c2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:sp("mtos1",[0,2,4],!1,c2),mtos2:sp("mtos2",[0,2,4],!1,c2),mtos3:sp("mtos3",[0,2,4],!1,c2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:tp("a0",c2),a1:tp("a1",c2),a2:tp("a2",c2),a3:tp("a3",c2),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:tp("c0",c2),c1:tp("c1",c2),c2:tp("c2",c2),c3:tp("c3",c2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:tp("qmtos",b2),qnc:tp("qnc",b2),qmv:tp("qmv",b2),qnv:tp("qnv",b2),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:tp("ss0",c2),ss1:tp("ss1",c2),ss2:tp("ss2",c2),ss3:tp("ss3",c2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},KJa={c:pp("c"), at:"at",atos:sp("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:rp(),j:"dom",mtos:sp("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:pp("ss"),vsv:ab("w2"),t:"t"},LJa={atos:"atos",avt:sp("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:pp("ss"),t:"t"},MJa={a:"a",tos:rp(),at:"at",c:pp("c"),mtos:sp("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:ab("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},NJa={tos:rp(),at:"at",c:pp("c"),mtos:sp("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:ab("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:sp("qmtos", [0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return g.Oe(b,function(e){return 0=e?1:0})}}("qnc",[1, .5,0]),qmv:"qmv",qa:"qas",a:"a"};var vp="goog.define.default".includes("outstream")?"out":"goog.define.default".includes("drx_rewarded_web")?"r":"goog.define.default".includes("gam_native_web_video")?"n":"goog.define.default".includes("admob_interstitial_video")?"int":"j";var dga={mZ:"visible",PV:"audible",U5:"time",V5:"timetype"},Ap={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(Bp,po);Bp.prototype.getId=function(){return this.G}; Bp.prototype.C=function(){return!0}; Bp.prototype.B=function(a){var b=a.Mg(),c=a.getDuration();return sn(this.J,function(d){if(void 0!=d.i)var e=fga(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=d);return d})};g.v(Cp,po);Cp.prototype.B=function(a){var b=Wn(a.Mg().i,1);return Ao(a,b)};g.v(Dp,po);Dp.prototype.B=function(a){return a.Mg().To()};g.v(Gp,gga);Gp.prototype.i=function(a){var b=new Ep;b.i=Fp(a,JJa);b.u=Fp(a,LJa);return b};g.v(Hp,to);Hp.prototype.u=function(){var a=g.Ia("ima.admob.getViewability"),b=im(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)}; Hp.prototype.getName=function(){return"gsv"};g.v(Ip,Hn);Ip.prototype.getName=function(){return"gsv"}; Ip.prototype.Mr=function(){var a=wn();Km();return a.l&&!1}; Ip.prototype.fv=function(a,b,c){return new Hp(this.i,b,c)};g.v(Jp,to);Jp.prototype.u=function(){var a=this,b=g.Ia("ima.bridge.getNativeViewability"),c=im(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Rb(d)&&a.C++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.i=qn(d.opt_nativeViewBounds||{});var h=a.l.u;h.i=f?HJa.clone():qn(e);a.timestamp=d.opt_nativeTime||-1;wn().i=h.i;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})}; Jp.prototype.getName=function(){return"nis"};g.v(Kp,Hn);Kp.prototype.getName=function(){return"nis"}; Kp.prototype.Mr=function(){var a=wn();Km();return a.l&&!1}; Kp.prototype.fv=function(a,b,c){return new Jp(this.i,b,c)};g.v(Lp,zn);g.k=Lp.prototype;g.k.Kr=function(){return null!=this.l.Yi}; g.k.hH=function(){var a={};this.xa&&(a.mraid=this.xa);this.X&&(a.mlc=1);a.mtop=this.l.rU;this.G&&(a.mse=this.G);this.Aa&&(a.msc=1);a.mcp=this.l.compatibility;return a}; g.k.qn=function(a,b){for(var c=[],d=1;dthis.l?this.blockSize:2*this.blockSize)-this.l);a[0]=128;for(var b=1;bb;++b)for(var d=0;32>d;d+=8)a[c++]=this.i[b]>>>d&255;return a};g.v(nq,Gp);nq.prototype.i=function(a){var b=Gp.prototype.i.call(this,a);var c=fq=g.Sa();var d=gq(5);c=(iq?!d:d)?c|2:c&-3;d=gq(2);c=(jq?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.l||(this.l=vga());b.C=this.l;b.G=Fp(a,KJa,c,"h",oq("kArwaWEsTs"));b.B=Fp(a,MJa,{},"h",oq("b96YPMzfnx"));b.l=Fp(a,NJa,{},"h",oq("yb8Wev6QDg"));return b};pq.prototype.l=function(){return g.Ia(this.i)};g.v(qq,Tp);g.k=qq.prototype;g.k.Dw=function(a,b){var c=this,d=g.Am(Zo);if(null!=d.i)switch(d.i.getName()){case "nis":var e=zga(this,a,b);break;case "gsv":e=yga(this,a,b);break;case "exc":e=Aga(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=pga(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Uj()&&(e.K==g.Ja&&(e.K=function(f){return c.tE(f)}),xga(this,e,b)); return e}; g.k.tE=function(a){a.l=0;a.va=0;if("h"==a.B||"n"==a.B){Km();a.La&&(Km(),"h"!=Zp(this)&&Zp(this));var b=g.Ia("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Ef)}catch(e){a.l|=4}else a.l|=2}else if("b"==a.B)if(b=g.Ia("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Ef)}catch(e){a.l|=4}else a.l|=2;else if("ml"==a.B)if(b=g.Ia("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Ef)}catch(e){a.l|=4}else a.l|=2;else a.l|=1;a.l||(void 0===c?a.l|=8:null=== c?a.l|=16:g.Rb(c)?a.l|=32:null!=c.errorCode&&(a.va=c.errorCode,a.l|=64));null==c&&(c={});b=c;a.J=0;for(var d in EJa)null==b[d]&&(a.J|=EJa[d]);dq(b,"currentTime");dq(b,"duration");rn(c.volume)&&rn(void 0)&&(c.volume*=NaN);return c}; g.k.BG=function(){Km();"h"!=Zp(this)&&Zp(this);var a=Bga(this);return null!=a?new pq(a,this.B):null}; g.k.TC=function(a){!a.i&&a.Nq&&$p(this,a,"overlay_unmeasurable_impression")&&(a.i=!0)}; g.k.XJ=function(a){a.nK&&(a.To()?$p(this,a,"overlay_viewable_end_of_session_impression"):$p(this,a,"overlay_unviewable_impression"),a.nK=!1)}; g.k.vH=function(){}; g.k.bD=function(){}; g.k.vu=function(a,b,c,d){a=Tp.prototype.vu.call(this,a,b,c,d);this.C&&(b=this.G,null==a.C&&(a.C=new xfa),b.i[a.Ef]=a.C,a.C.C=IJa);return a}; g.k.Js=function(a){a&&1==a.Uj()&&this.C&&delete this.G.i[a.Ef];return Tp.prototype.Js.call(this,a)}; var rq=new Ep;rq.C="stopped";rq.i="stopped";rq.u="stopped";rq.G="stopped";rq.B="stopped";rq.l="stopped";Object.freeze(rq);var OJa=Zm(193,uq,cq);g.Ha("Goog_AdSense_Lidar_sendVastEvent",OJa,void 0);var PJa=bn(194,function(a,b){b=void 0===b?{}:b;a=sq(g.Am(qq),a,b);return tq(a)}); g.Ha("Goog_AdSense_Lidar_getViewability",PJa,void 0);var QJa=Zm(195,function(){return Em()},void 0); g.Ha("Goog_AdSense_Lidar_getUrlSignalsArray",QJa,void 0);var RJa=bn(196,function(){return JSON.stringify(Em())}); g.Ha("Goog_AdSense_Lidar_getUrlSignalsList",RJa,void 0);var hha=(new Date).getTime();var wq="://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(" "),Ega=/\bocr\b/;var Fga=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Zka={o0:"LIVING_ROOM_APP_MODE_UNSPECIFIED",l0:"LIVING_ROOM_APP_MODE_MAIN",k0:"LIVING_ROOM_APP_MODE_KIDS",m0:"LIVING_ROOM_APP_MODE_MUSIC",n0:"LIVING_ROOM_APP_MODE_UNPLUGGED",j0:"LIVING_ROOM_APP_MODE_GAMING"};zq.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.data_[a]!=b&&(this.data_[a]=b,this.i=-1)}; zq.prototype.get=function(a){return!!this.data_[a]};g.Ta(g.Aq,g.E);g.k=g.Aq.prototype;g.k.start=function(){this.stop();this.B=!1;var a=Cq(this),b=Dq(this);a&&!b&&this.l.mozRequestAnimationFrame?(this.i=uf(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(bb(this.u),20)}; g.k.stop=function(){if(this.isActive()){var a=Cq(this),b=Dq(this);a&&!b&&this.l.mozRequestAnimationFrame?Ff(this.i):a&&b?b.call(this.l,this.i):this.l.clearTimeout(this.i)}this.i=null}; g.k.isActive=function(){return null!=this.i}; g.k.wL=function(){this.B&&this.i&&Ff(this.i);this.i=null;this.G.call(this.C,g.Sa())}; g.k.ra=function(){this.stop();g.Aq.Rd.ra.call(this)};g.Ta(g.J,g.E);g.k=g.J.prototype;g.k.Nr=0;g.k.ra=function(){g.J.Rd.ra.call(this);this.stop();delete this.i;delete this.l}; g.k.start=function(a){this.stop();this.Nr=g.jh(this.u,void 0!==a?a:this.Of)}; g.k.stop=function(){this.isActive()&&g.A.clearTimeout(this.Nr);this.Nr=0}; g.k.isActive=function(){return 0!=this.Nr}; g.k.uE=function(){this.Nr=0;this.i&&this.i.call(this.l)};g.Ta(Hq,kq);Hq.prototype.reset=function(){this.i[0]=1732584193;this.i[1]=4023233417;this.i[2]=2562383102;this.i[3]=271733878;this.i[4]=3285377520;this.u=this.l=0}; Hq.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.C,f=this.l;dthis.l?this.update(this.B,56-this.l):this.update(this.B,this.blockSize-(this.l-56));for(var c=this.blockSize-1;56<=c;c--)this.C[c]=b&255,b/=256;Iq(this,this.C);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.i[c]>>d&255,++b;return a};g.Ta(g.Rq,g.If);g.k=g.Rq.prototype;g.k.tc=function(){return 1==this.Oa}; g.k.Bx=function(){this.Ph("begin")}; g.k.Yt=function(){this.Ph("end")}; g.k.onFinish=function(){this.Ph("finish")}; g.k.Ph=function(a){this.dispatchEvent(a)};var SJa=cb(function(){if(g.fe)return g.Wd("10.0");var a=g.ng("DIV"),b=g.ig?"-webkit":Bl?"-moz":g.fe?"-ms":g.Uk?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!mJa.test("div"))throw Error("");if("DIV"in oJa)throw Error("");c=null;var d="";if(b)for(h in b)if(Object.prototype.hasOwnProperty.call(b,h)){if(!mJa.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.Na(e))throw Error(""); e instanceof Mc||(e=Qc(e));e=Nc(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in nJa)if(e instanceof kc)e=lc(e).toString();else if(e instanceof g.Ec)e=g.Fc(e);else if("string"===typeof e)e=g.Jc(e).ph();else throw Error("");}e.Xj&&(e=e.ph());f=f+'="'+yc(String(e))+'"';d+=" "+f}}var h="":(c=Eaa(d),h+=">"+g.$c(c).toString()+"",c=c.Bq());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=ad(h,c);g.jd(a, b);return""!=g.Cl(a.firstChild,"transition")});g.Ta(Sq,g.Rq);g.k=Sq.prototype;g.k.play=function(){if(this.tc())return!1;this.Bx();this.Ph("play");this.startTime=g.Sa();this.Oa=1;if(SJa())return g.zl(this.i,this.G),this.l=g.jh(this.JT,void 0,this),!0;this.iz(!1);return!1}; g.k.JT=function(){g.Ol(this.i);Hga(this.i,this.J);g.zl(this.i,this.u);this.l=g.jh((0,g.C)(this.iz,this,!1),1E3*this.C)}; g.k.stop=function(){this.tc()&&this.iz(!0)}; g.k.iz=function(a){g.zl(this.i,"transition","");g.A.clearTimeout(this.l);g.zl(this.i,this.u);this.endTime=g.Sa();this.Oa=0;if(a)this.Ph("stop");else this.onFinish();this.Yt()}; g.k.ra=function(){this.stop();Sq.Rd.ra.call(this)}; g.k.pause=function(){};var Iga={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 Mga=Uq("getPropertyValue"),Nga=Uq("setProperty");var Lga={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Yq.prototype.clone=function(){return new g.Yq(this.i,this.C,this.u,this.G,this.B,this.J,this.l,this.K)};$q.prototype.clone=function(){return new $q(this.start,this.end)};var TJa=new WeakMap;(function(){if(kFa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Tc))?a[1]:"0"}return ZT?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Tc))?a[0].replace(/_/g,"."):"10"):g.tt?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Tc))?a[1]:""):qJa||rJa||sJa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Tc))?a[1].replace(/_/g,"."):""):""})();var Uga=function(){if(g.bj)return ar(/Firefox\/([0-9.]+)/);if(g.fe||g.tw||g.Uk)return Vd;if(g.aj)return Pd()?ar(/CriOS\/([0-9.]+)/):ar(/Chrome\/([0-9.]+)/);if(g.cj&&!Pd())return ar(/Version\/([0-9.]+)/);if(TF||cI){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Tc);if(a)return a[1]+"."+a[2]}else if(g.LF)return(a=ar(/Android\s+([0-9.]+)/))?a:ar(/Version\/([0-9.]+)/);return""}();g.Ta(g.dr,g.E);g.k=g.dr.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=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Tf(a)}return!1}; g.k.Tf=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.Ja):(c&&g.ob(c,a),delete this.i[a],delete this.i[a+1],delete this.i[a+2])}return!!b}; g.k.W=function(a,b){var c=this.l[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e=c.length)throw g.$h;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}; d.next=d.i.bind(d);return d}; g.k.clear=function(){this.i.clear()}; g.k.key=function(a){return this.i.key(a)};g.Ta(nr,mr);g.Ta(or,mr);g.Ta(qr,lr);var Xga={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},pr=null;g.k=qr.prototype;g.k.isAvailable=function(){return!!this.i}; g.k.set=function(a,b){this.i.setAttribute(rr(a),b);sr(this)}; g.k.get=function(a){a=this.i.getAttribute(rr(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; g.k.remove=function(a){this.i.removeAttribute(rr(a));sr(this)}; g.k.Eg=function(a){var b=0,c=this.i.XMLDocument.documentElement.attributes,d=new g.Uh;d.i=function(){if(b>=c.length)throw g.$h;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}; d.next=d.i.bind(d);return d}; g.k.clear=function(){for(var a=this.i.XMLDocument.documentElement,b=a.attributes.length;0=b)){if(1==b)lb(a);else{a[0]=a.pop();a=0;b=this.i;for(var d=b.length,e=b[a];a>1;){var f=2*a+1,h=2*a+2;f=he.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}}; g.k.Ng=function(){for(var a=this.i,b=[],c=a.length,d=0;dc;c++)b+=this.l[c]||0;3<=b&&this.J();this.C=d}this.B=a;this.G=this.i;this.u=(this.u+1)%4}}; Zt.prototype.ra=function(){window.clearInterval(this.K);g.Pt(this.X)};g.v(du,$t);du.prototype.start=function(){var a=g.Ia("yt.scheduler.instance.start");a&&a()}; du.prototype.pause=function(){var a=g.Ia("yt.scheduler.instance.pause");a&&a()};eu();var lu={};var qu={},xha=0;var XJa,tu,vu;XJa=g.A.ytPubsubPubsubInstance||new g.dr;tu=g.A.ytPubsubPubsubSubscribedKeys||{};vu=g.A.ytPubsubPubsubTopicToKeys||{};g.uu=g.A.ytPubsubPubsubIsSynchronous||{};g.dr.prototype.subscribe=g.dr.prototype.subscribe;g.dr.prototype.unsubscribeByKey=g.dr.prototype.Tf;g.dr.prototype.publish=g.dr.prototype.W;g.dr.prototype.clear=g.dr.prototype.clear;g.Ha("ytPubsubPubsubInstance",XJa,void 0);g.Ha("ytPubsubPubsubTopicToKeys",vu,void 0);g.Ha("ytPubsubPubsubIsSynchronous",g.uu,void 0); g.Ha("ytPubsubPubsubSubscribedKeys",tu,void 0);var g2;g2=window;g.P=g2.ytcsi&&g2.ytcsi.now?g2.ytcsi.now:g2.performance&&g2.performance.timing&&g2.performance.now&&g2.performance.timing.navigationStart?function(){return g2.performance.timing.navigationStart+g2.performance.now()}:function(){return(new Date).getTime()};var Aha=Or("initial_gel_batch_timeout",2E3),Qu=Math.pow(2,16)-1,Ru=null,Pu=0,Eu=void 0,Ju=0,Ku=0,Gu=0,Lu=!0,Du=g.A.ytLoggingTransportGELQueue_||new Map;g.Ha("ytLoggingTransportGELQueue_",Du,void 0);var Bu=g.A.ytLoggingTransportTokensToCttTargetIds_||{};g.Ha("ytLoggingTransportTokensToCttTargetIds_",Bu,void 0);var Su=g.A.ytLoggingGelSequenceIdObj_||{};g.Ha("ytLoggingGelSequenceIdObj_",Su,void 0);var Wu=g.Ia("ytglobal.prefsUserPrefsPrefs_")||{};g.Ha("ytglobal.prefsUserPrefsPrefs_",Wu,void 0);g.k=g.Xu.prototype;g.k.get=function(a,b){av(a);$u(a);a=void 0!==Wu[a]?Wu[a].toString():null;return null!=a?a:b?b:""}; g.k.set=function(a,b){av(a);$u(a);if(null==b)throw Error("ExpectedNotNull");Wu[a]=b.toString()}; g.k.remove=function(a){av(a);$u(a);delete Wu[a]}; g.k.save=function(){var a=!0;g.Nr("web_secure_pref_cookie_killswitch")&&(a=!1);g.$s(this.i,this.dump(),63072E3,this.l,a)}; g.k.clear=function(){g.Sb(Wu)}; g.k.dump=function(){var a=[],b;for(b in Wu)a.push(b+"="+encodeURIComponent(String(Wu[b])));return a.join("&")};var cv={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"},ev={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};hv.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.i)try{this.i.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Nh(b))}catch(f){return}else e=escape(b);g.$s(a,e,c,this.l)}; hv.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.at(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c}; hv.prototype.remove=function(a){this.i&&this.i.remove(a);g.bt(a,"/",this.l)};jv.prototype.toString=function(){return this.topic};var YJa=g.Ia("ytPubsub2Pubsub2Instance")||new g.dr;g.dr.prototype.subscribe=g.dr.prototype.subscribe;g.dr.prototype.unsubscribeByKey=g.dr.prototype.Tf;g.dr.prototype.publish=g.dr.prototype.W;g.dr.prototype.clear=g.dr.prototype.clear;g.Ha("ytPubsub2Pubsub2Instance",YJa,void 0);var mv=g.Ia("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ha("ytPubsub2Pubsub2SubscribedKeys",mv,void 0);var ov=g.Ia("ytPubsub2Pubsub2TopicToKeys")||{};g.Ha("ytPubsub2Pubsub2TopicToKeys",ov,void 0); var nv=g.Ia("ytPubsub2Pubsub2IsAsync")||{};g.Ha("ytPubsub2Pubsub2IsAsync",nv,void 0);g.Ha("ytPubsub2Pubsub2SkipSubKey",null,void 0);rv.prototype.pw=function(a,b){a={};var c=Fh([]);c&&(a.Authorization=c,c=b=null===b||void 0===b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.O("SESSION_INDEX",0)),c=isNaN(c)?0:c),a["X-Goog-AuthUser"]=c,"INNERTUBE_HOST_OVERRIDE"in Jr||(a["X-Origin"]=window.location.origin),g.Nr("pageid_as_header_web")&&void 0===b&&"DELEGATED_SESSION_ID"in Jr&&(a["X-Goog-PageId"]=g.O("DELEGATED_SESSION_ID")));return a};var Gw={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var vv=function(){var a;return function(){a||(a=new hv("ytidb"));return a}}(); xv.prototype.isSupported=function(){return this.i};var Cv=[],yv,Dv=!1;g.v(g.Gv,Error);var h2={},Lv=(h2.AUTH_INVALID="No user identifier specified.",h2.EXPLICIT_ABORT="Transaction was explicitly aborted.",h2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",h2.MISSING_OBJECT_STORE="Object store not created.",h2.DB_DELETED_BY_MISSING_OBJECT_STORE="Database is deleted because an expected object store was not created.",h2.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",h2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",h2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.", h2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",h2),i2={},Gha=(i2.AUTH_INVALID="ERROR",i2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",i2.EXPLICIT_ABORT="IGNORED",i2.IDB_NOT_SUPPORTED="ERROR",i2.MISSING_OBJECT_STORE="ERROR",i2.DB_DELETED_BY_MISSING_OBJECT_STORE="WARNING",i2.QUOTA_EXCEEDED="WARNING",i2.QUOTA_MAYBE_EXCEEDED="WARNING",i2.UNKNOWN_ABORT="WARNING",i2),j2={},Hha=(j2.AUTH_INVALID=!1,j2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,j2.EXPLICIT_ABORT=!1,j2.IDB_NOT_SUPPORTED= !1,j2.MISSING_OBJECT_STORE=!1,j2.DB_DELETED_BY_MISSING_OBJECT_STORE=!1,j2.QUOTA_EXCEEDED=!1,j2.QUOTA_MAYBE_EXCEEDED=!0,j2.UNKNOWN_ABORT=!0,j2);g.v(Mv,g.Gv);g.v(Nv,Mv);var Iha=["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"];Pv.all=function(a){return new Pv(new Ov(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Pp:0};f.Pp=y.aO&&!(m.i.version>=B)&&!m.i.objectStoreNames.contains(x)){t= x;break a}}}t=void 0}n=t;if(void 0===n){r.ub(5);break}if(l.u){r.ub(6);break}l.u=!0;return g.w(r,l.delete(),7);case 7:return Ev(new Mv("DB_DELETED_BY_MISSING_OBJECT_STORE",{dbName:l.name,dQ:n})),r.return(e());case 6:throw new Nv(n);case 5:return r.return(m);case 2:p=va(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 pw=new ow("YtIdbMeta",{Vt:{databases:!0},upgrade:function(a,b){b(1)&&$v(a,"databases",{keyPath:"actualName"})}});var uw;g.v(yw,ow);yw.prototype.l=function(a,b,c){c=void 0===c?{}:c;return(this.options.iy?Zha:Yha)(a,b,Object.assign({},c))}; yw.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.iy?aia:$ha)(this.name,a)};var Aw;var Hw;var iia=Or("network_polling_interval",3E4);g.v(Jw,g.If);g.k=Jw.prototype;g.k.Vi=function(){return this.i}; g.k.eQ=function(a){this.l=!0;if(void 0===a?0:a)this.K||Mw(this)}; g.k.qB=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; g.k.zO=function(){this.U=!0}; g.k.Ra=function(a,b){return g.If.prototype.Ra.call(this,a,b)}; g.k.wp=function(a){var b=this;return this.u?this.u:this.u=new Promise(function(c){return g.D(b,function e(){var f,h,l,m=this;return g.z(e,function(n){switch(n.i){case 1:return f=window.AbortController?new window.AbortController:void 0,h=null===f||void 0===f?void 0:f.signal,l=!1,ta(n,2,3),f&&(m.G=g.cu(function(){f.abort()},a||2E4)),g.w(n,fetch("/generate_204",{method:"HEAD", signal:h}),5);case 5:l=!0;case 3:wa(n);m.u=void 0;m.G&&g.gu(m.G);l!==m.i&&(m.i=l,m.i&&m.l?m.dispatchEvent("ytnetworkstatus-online"):m.l&&m.dispatchEvent("ytnetworkstatus-offline"));c(l);xa(n,0);break;case 2:va(n),l=!1,n.ub(3)}})})})}; Jw.prototype.sendNetworkCheckRequest=Jw.prototype.wp;Jw.prototype.listen=Jw.prototype.Ra;Jw.prototype.enableErrorFlushing=Jw.prototype.zO;Jw.prototype.getWindowStatus=Jw.prototype.qB;Jw.prototype.monitorNetworkStatusChange=Jw.prototype.eQ;Jw.prototype.isNetworkAvailable=Jw.prototype.Vi;Jw.getInstance=Kw;g.v(Ow,g.If);Ow.prototype.Vi=function(){var a=g.Ia("yt.networkStatusManager.instance.isNetworkAvailable").bind(this.i);return a?a():!0}; Ow.prototype.wp=function(a){return g.D(this,function c(){var d=this,e;return g.z(c,function(f){return(e=g.Ia("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(d.i))?f.return(e(a)):f.return(!0)})})};var Yw=0,ax=0,bx,$w=g.A.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,isIdbSupported:!1,potentialEsfErrorCounter:ax};g.Nr("export_networkless_options")&&g.Ha("ytNetworklessLoggingInitializationOptions",$w,void 0);g.cx.prototype.isReady=function(){!this.config_&&gv()&&(this.config_=g.Nu());return!!this.config_};var lia=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),nia=["/fashion","/feed/fashion_destination","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ"];var gx={};g.v(mx,g.E);mx.prototype.N=function(a,b,c,d,e){c=Tr((0,g.C)(c,d||this.Ga));c={target:a,name:b,callback:c};var f;e&&WJa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.G.push(c);return c}; mx.prototype.fc=function(a){for(var b=0;b=this.start&&(aiKa.length)m2=void 0;else{var n2=hKa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);m2=n2&&6==n2.length?Number(n2[5].replace("_",".")):0}var dI=m2,qO=0<=dI;qO&&0<=g.Tc.search("Safari")&&g.Tc.search("Version");g.v(Rz,iv);g.v(Sz,iv);var Zia=new jv("aft-recorded",Rz),MA=new jv("timing-sent",Sz);var o2=window,Vz=o2.performance||o2.mozPerformance||o2.msPerformance||o2.webkitPerformance||new Yia;var fA=!1,p2={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3/mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj", 'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc", 'script[name="mobile_blazer_watch_mod"]':"mbwj"},cja=(0,g.C)(Vz.clearResourceTimings||Vz.webkitClearResourceTimings||Vz.mozClearResourceTimings||Vz.msClearResourceTimings||Vz.oClearResourceTimings||g.Ja,Vz);var nA=g.A.ytLoggingLatencyUsageStats_||{};g.Ha("ytLoggingLatencyUsageStats_",nA,void 0);lA.prototype.tick=function(a,b,c){oA(this,"tick_"+a+"_"+b)||g.Bv("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c})}; lA.prototype.info=function(a,b){var c=Object.keys(a).join("");oA(this,"info_"+c+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Bv("latencyActionInfo",a))}; lA.prototype.span=function(a,b){var c=Object.keys(a).join("");oA(this,"span_"+c+"_"+b)||(a.clientActionNonce=b,g.Bv("latencyActionSpan",a))};var q2={},wA=(q2.auto_search="LATENCY_ACTION_AUTO_SEARCH",q2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",q2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",q2.app_startup="LATENCY_ACTION_APP_STARTUP",q2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",q2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",q2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",q2.browse="LATENCY_ACTION_BROWSE",q2.channels="LATENCY_ACTION_CHANNELS",q2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD", q2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",q2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",q2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",q2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",q2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",q2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",q2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",q2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS", q2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",q2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",q2.chips="LATENCY_ACTION_CHIPS",q2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",q2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",q2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",q2.embed="LATENCY_ACTION_EMBED",q2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",q2.entity_key_deserialization_perf= "LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",q2.home="LATENCY_ACTION_HOME",q2.library="LATENCY_ACTION_LIBRARY",q2.live="LATENCY_ACTION_LIVE",q2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",q2.onboarding="LATENCY_ACTION_KIDS_ONBOARDING",q2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",q2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",q2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",q2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", q2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",q2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",q2.prebuffer="LATENCY_ACTION_PREBUFFER",q2.prefetch="LATENCY_ACTION_PREFETCH",q2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",q2.profile_switcher="LATENCY_ACTION_LOGIN",q2.reel_watch="LATENCY_ACTION_REEL_WATCH",q2.results="LATENCY_ACTION_RESULTS",q2.search_ui="LATENCY_ACTION_SEARCH_UI",q2.search_suggest="LATENCY_ACTION_SUGGEST",q2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE", q2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",q2.seek="LATENCY_ACTION_PLAYER_SEEK",q2.settings="LATENCY_ACTION_SETTINGS",q2.tenx="LATENCY_ACTION_TENX",q2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",q2.watch="LATENCY_ACTION_WATCH",q2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",q2["watch,watch7"]="LATENCY_ACTION_WATCH",q2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",q2["watch,watch7ad"]="LATENCY_ACTION_WATCH",q2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",q2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", q2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",q2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",q2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",q2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",q2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",q2["video.video_editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",q2["video.video_editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",q2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION", q2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",q2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",q2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",q2),r2={},sA=(r2.ad_allowed="adTypesAllowed",r2.yt_abt="adBreakType",r2.ad_cpn="adClientPlaybackNonce",r2.ad_docid="adVideoId",r2.yt_ad_an="adNetworks",r2.ad_at="adType",r2.aida="appInstallDataAgeMs",r2.browse_id="browseId",r2.p="httpProtocol",r2.t="transportProtocol",r2.cpn="clientPlaybackNonce",r2.ccs= "creatorInfo.creatorCanaryState",r2.csn="clientScreenNonce",r2.docid="videoId",r2.GetHome_rid="requestIds",r2.GetSearch_rid="requestIds",r2.GetPlayer_rid="requestIds",r2.GetWatchNext_rid="requestIds",r2.GetBrowse_rid="requestIds",r2.GetLibrary_rid="requestIds",r2.is_continuation="isContinuation",r2.is_nav="isNavigation",r2.b_p="kabukiInfo.browseParams",r2.is_prefetch="kabukiInfo.isPrefetch",r2.is_secondary_nav="kabukiInfo.isSecondaryNav",r2.prev_browse_id="kabukiInfo.prevBrowseId",r2.query_source= "kabukiInfo.querySource",r2.voz_type="kabukiInfo.vozType",r2.yt_lt="loadType",r2.mver="creatorInfo.measurementVersion",r2.yt_ad="isMonetized",r2.nr="webInfo.navigationReason",r2.nrsu="navigationRequestedSameUrl",r2.ncnp="webInfo.nonPreloadedNodeCount",r2.pnt="performanceNavigationTiming",r2.prt="playbackRequiresTap",r2.plt="playerInfo.playbackType",r2.pis="playerInfo.playerInitializedState",r2.paused="playerInfo.isPausedOnLoad",r2.yt_pt="playerType",r2.fmt="playerInfo.itag",r2.yt_pl="watchInfo.isPlaylist", r2.yt_pre="playerInfo.preloadType",r2.yt_ad_pr="prerollAllowed",r2.pa="previousAction",r2.yt_red="isRedSubscriber",r2.rce="mwebInfo.responseContentEncoding",r2.scrh="screenHeight",r2.scrw="screenWidth",r2.st="serverTimeMs",r2.ssdm="shellStartupDurationMs",r2.br_trs="tvInfo.bedrockTriggerState",r2.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",r2.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",r2.label="tvInfo.label",r2.is_mdx="tvInfo.isMdx",r2.preloaded="tvInfo.isPreloaded",r2.upg_player_vis= "playerInfo.visibilityState",r2.query="unpluggedInfo.query",r2.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",r2.yt_vst="videoStreamType",r2.vph="viewportHeight",r2.vpw="viewportWidth",r2.yt_vis="isVisible",r2.rcl="mwebInfo.responseContentLength",r2.GetSettings_rid="requestIds",r2.GetTrending_rid="requestIds",r2.GetMusicSearchSuggestions_rid="requestIds",r2.REQUEST_ID="requestIds",r2),aja="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(" "), s2={},tA=(s2.ccs="CANARY_STATE_",s2.mver="MEASUREMENT_VERSION_",s2.pis="PLAYER_INITIALIZED_STATE_",s2.yt_pt="LATENCY_PLAYER_",s2.pa="LATENCY_ACTION_",s2.yt_vst="VIDEO_STREAM_TYPE_",s2),bja="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 t2=window;t2.ytcsi&&(t2.ytcsi.info=g.DA,t2.ytcsi.tick=EA);var sma={MY:1,cZ:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var XT=16/9,jKa=[.25,.5,.75,1,1.25,1.5,1.75,2],kKa=jKa.concat([3,4,5,6,7,8,9,10,15]);PA.prototype.getLanguageInfo=function(){return this.Jc}; PA.prototype.toString=function(){return this.Jc.name}; PA.prototype.getLanguageInfo=PA.prototype.getLanguageInfo;var u2,VA;u2={};g.SA=(u2.auto=0,u2.tiny=144,u2.light=144,u2.small=240,u2.medium=360,u2.large=480,u2.hd720=720,u2.hd1080=1080,u2.hd1440=1440,u2.hd2160=2160,u2.hd2880=2880,u2.highres=4320,u2);VA={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};QA.prototype.isLocked=function(){return this.u&&!!this.l&&this.l===this.i}; QA.prototype.compose=function(a){if(a.u&&UA(a))return qH;if(a.u||UA(this))return a;if(this.u||UA(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 QA(b,c,!1,c===this.i?this.reason:a.reason)}; QA.prototype.B=function(a){return a.video?XA(this,a.video.quality):!1}; var fEa=TA("auto","hd1080",!1,"l"),WAa=TA("auto","large",!1,"l"),qH=TA("auto","auto",!1,"p");TA("small","auto",!1,"p");YA.prototype.Am=function(a){a=a||qH;for(var b=g.Po(this.videoInfos,function(h){return a.B(h)}),c=[],d={},e=0;ea.Ka&&this.index.getFirstSegmentNumber()<=a.Ka+1}; g.k.update=function(a,b,c){this.index.append(a);BB(this.index,c);this.J=b}; g.k.Be=function(){return this.Pr()?!0:BC.prototype.Be.call(this)}; g.k.Wl=function(a,b){var c=this.index.getSegmentURL(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0c&&(this.segments=this.segments.slice(b))}}; g.k.yq=function(a){if(!this.Mj)return AB.prototype.yq.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a=b.endTime)b=b.Ka+Math.floor((a-b.endTime)/this.Ag+1);else{b=yb(this.segments,function(d){return a=d.endTime?1:0}); if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Ka-b.Ka-1))+1)+b.Ka}return this.Pi(b)}; g.k.Pi=function(a){if(!this.Mj)return AB.prototype.Pi.call(this,a);if(!this.segments.length)return null;var b=eD(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Ag;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ka-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ka-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ka-d.Ka-1),d=d.endTime+(a-d.Ka-1)*b);return new zB(a,d,b,0,"sq/"+a,void 0,void 0, !0)};g.v(gD,YC);g.k=gD.prototype;g.k.Jt=function(){return!0}; g.k.Be=function(){return!0}; g.k.Vl=function(a){return!a.u}; g.k.Io=function(){}; g.k.Fm=function(a,b){b=void 0===b?!1:b;return"number"!==typeof a||isFinite(a)?YC.prototype.Fm.call(this,a,b):(a=new JC(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.zi,void 0,this.zi*this.info.Ib),new SC([a],""))}; g.k.Wl=function(a,b){var c=void 0===c?!1:c;if(fD(this.index,a))return YC.prototype.Wl.call(this,a,b);var d=this.index.getStartTime(a),e=b?0:this.zi*this.info.Ib;b=!b;c=new JC(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.getLastSegmentNumber()&&!this.J&&0a.Ka&&this.index.getFirstSegmentNumber()<=a.Ka+1}; g.k.iB=function(){return 0}; g.k.FC=function(){return!1};g.k=jD.prototype;g.k.getOffset=function(a){return this.offsets[a]}; g.k.getStartTime=function(a){return this.i[a]/this.u}; g.k.getStartTimeInPeriod=function(){return 0}; g.k.getIngestionTime=function(){return NaN}; g.k.getStitchedVideoInfo=function(){return null}; g.k.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.u:-1}; g.k.getDurationTicks=function(a){return a+1=this.getLastSegmentNumber())return 0;var c=0;for(b=this.getStartTime(a)+b;athis.getStartTime(a);a++)c=Math.max(c,this.getByteLength(a)/this.getDuration(a));return c}; g.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.i;this.i=new Float64Array(a+1);for(a=0;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{Jw:b,Fp:c}}; lD.prototype.isFocused=function(a){return a>=this.u&&athis.info.l||4===this.info.type)return!0;var b=xD(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.zb)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=xD(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.zb)return 524531317===c||440786851===c}return!0};g.v(ID,BC);g.k=ID.prototype;g.k.Io=function(a){var b=new JC(1,this,this.initRange,"initInfo"),c=new JC(2,this,this.indexRange,"indexInfo");b=[b,c];0=this.index.getOffset(c+1);)c++;return JD(this,c,b,a.l).i}; g.k.Vl=function(a){return this.Be()?!0:a.range.end+1this.info.contentLength&&(b=new DC(b.start,this.info.contentLength-1)),a=[new JC(4,a.i,b,"getNextRequestInfoByLength")],new SC(a);4===a.type&&(a=this.Bu(a),a=a[a.length-1]);var c=0,d=a.range.start+a.zb+a.l;3===a.type&&(c=a.Ka,d===a.range.end+1&&(c+=1));return JD(this,c,d,b)}; g.k.Or=function(){return null}; g.k.Fm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return JD(this,a,this.index.getOffset(a),0)}; g.k.Gg=function(){return!0}; g.k.Jt=function(){return!1}; g.k.iB=function(){return this.indexRange.length+this.initRange.length}; g.k.FC=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var w2={},eB=(w2.WIDTH={name:"width",video:!0,valid:640,invalid:99999},w2.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},w2.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},w2.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},w2.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},w2.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},w2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},w2.DECODETOTEXTURE={name:"decode-to-texture", video:!0,valid:"false",invalid:"nope"},w2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},w2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},w2);var Z={},PD=(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 ND="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");MD.prototype.isHdr=function(){return"smpte2084"===this.l||"arib-std-b67"===this.l};g.k=QD.prototype;g.k.fb=function(){return this.video}; g.k.kc=function(){return this.id.split(";",1)[0]}; g.k.De=function(){return 2===this.containerType}; g.k.bk=function(){return!!this.Jd}; g.k.Qm=function(){return!!this.audio}; g.k.isVideo=function(){return!!this.video};XD.prototype.getName=function(){return this.name}; XD.prototype.getId=function(){return this.id}; XD.prototype.getIsDefault=function(){return this.isDefault}; XD.prototype.toString=function(){return this.name}; XD.prototype.getName=XD.prototype.getName;XD.prototype.getId=XD.prototype.getId;XD.prototype.getIsDefault=XD.prototype.getIsDefault;g.v(lE,g.Q);g.k=lE.prototype;g.k.appendBuffer=function(a,b,c){if(this.jd.ow()!==this.appendWindowStart+this.start||this.jd.bB()!==this.appendWindowEnd+this.start||this.jd.Lc()!==this.timestampOffset+this.start)this.jd.supports(1),this.jd.cD(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.jd.rr(this.timestampOffset+this.start);this.jd.appendBuffer(a,b,c)}; g.k.abort=function(){this.jd.abort()}; g.k.remove=function(a,b){this.jd.remove(a+this.start,b+this.start)}; g.k.cD=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b}; g.k.nB=function(){return this.timestampOffset+this.start}; g.k.ow=function(){return this.appendWindowStart}; g.k.bB=function(){return this.appendWindowEnd}; g.k.rr=function(a){this.timestampOffset=a}; g.k.Lc=function(){return this.timestampOffset}; g.k.Te=function(a){a=this.jd.Te(void 0===a?!1:a);return kE(a,this.start,this.end)}; g.k.eg=function(){return this.jd.eg()}; g.k.Ho=function(){return this.jd.Ho()}; g.k.qw=function(){return this.jd.qw()}; g.k.PD=function(a,b){this.jd.PD(a,b)}; g.k.supports=function(a){return this.jd.supports(a)}; g.k.uw=function(){return this.jd.uw()}; g.k.isView=function(){return!0}; g.k.Vu=function(a,b,c){return this.isActive?this.jd.Vu(a,b,c):!1}; g.k.qA=function(){return this.jd.qA()?this.isActive:!1}; g.k.isLocked=function(){return this.Zu&&!this.isActive}; g.k.Cb=function(a){return this.jd.Cb(a)+(";vw."+this.start+"-"+this.end)}; g.k.ct=function(){return this.jd.ct()}; g.k.ra=function(){qx(this.jd,this.yH);g.Q.prototype.ra.call(this)};var VU=!1;g.v(pE,g.Q);g.k=pE.prototype;g.k.appendBuffer=function(a,b,c){var d;this.Jv=!1;c&&(this.Vw=c);b&&(b.bk()&&(this.ZH=this.Vw),3===b.type&&(this.Ee=b));(null===(d=this.Qb)||void 0===d?0:d.appendBuffer)?this.Qb.appendBuffer(a):this.Qb?this.Qb.append(a):this.qe&&this.qe.webkitSourceAppend(this.id,a)}; g.k.abort=function(){try{this.Qb?this.Qb.abort():this.qe&&this.qe.webkitSourceAbort(this.id)}catch(a){}this.Vw=this.Ee=null}; g.k.remove=function(a,b){var c;this.Jv=!1;(null===(c=this.Qb)||void 0===c?0:c.remove)&&this.Qb.remove(a,b)}; g.k.ow=function(){var a;return VU&&this.isVideo?this.appendWindowStart:(null===(a=this.Qb)||void 0===a?void 0:a.appendWindowStart)||0}; g.k.bB=function(){var a;return(null===(a=this.Qb)||void 0===a?void 0:a.appendWindowEnd)||0}; g.k.cD=function(a,b){this.Qb&&(VU&&this.isVideo?(this.appendWindowStart=a,this.Qb.appendWindowEnd=b):a>this.ow()?(this.Qb.appendWindowEnd=b,this.Qb.appendWindowStart=a):(this.Qb.appendWindowStart=a,this.Qb.appendWindowEnd=b))}; g.k.nB=function(){return this.timestampOffset}; g.k.rr=function(a){VU?this.timestampOffset=a:this.supports(1)&&(this.Qb.timestampOffset=a)}; g.k.Lc=function(){return VU?this.timestampOffset:this.supports(1)?this.Qb.timestampOffset:0}; g.k.Te=function(a){if(void 0===a?0:a)return this.Jv||this.eg()||(this.fG=this.Te(!1),this.Jv=!0),this.fG;try{return this.Qb?this.Qb.buffered:this.qe?this.qe.webkitSourceBuffered(this.id):dE([0],[Infinity])}catch(b){return dE([],[])}}; g.k.eg=function(){var a;return(null===(a=this.Qb)||void 0===a?void 0:a.updating)||!1}; g.k.Ho=function(){return this.Vw}; g.k.qw=function(){return this.ZH}; g.k.PD=function(a,b){this.containerType!==a&&(this.supports(4),qE()&&this.Qb.changeType(b));this.containerType=a}; g.k.uw=function(){return this.Ee}; 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.Qb)||void 0===b?void 0:b.timestampOffset);case 0:return!(null===(c=this.Qb)||void 0===c||!c.appendBuffer);case 2:return!(null===(d=this.Qb)||void 0===d||!d.remove);case 3:return!!((null===(e=this.Qb)||void 0===e?0:e.addEventListener)&&(null===(f=this.Qb)||void 0===f?0:f.removeEventListener));case 4:return!(!this.Qb||!this.Qb.changeType);default:return!1}}; g.k.qA=function(){return!this.eg()}; g.k.isLocked=function(){return!1}; g.k.Cb=function(a){var b,c;a.to=""+this.Lc();a.up=""+ +this.eg();var d=(null===(b=this.Qb)||void 0===b?void 0:b.appendWindowStart)||0,e=(null===(c=this.Qb)||void 0===c?void 0:c.appendWindowEnd)||Infinity;a.aw=d.toFixed(3)+"-"+e.toFixed(3);try{a.bu=eE(this.Te())}catch(f){}return g.nE(a)}; g.k.ra=function(){this.supports(3)&&(this.Qb.removeEventListener("updateend",this.Zd),this.Qb.removeEventListener("error",this.Zd));g.Q.prototype.ra.call(this)}; g.k.Vu=function(a,b,c){if(!this.supports(2)||this.eg())return!1;var d=this.Te(),e=fE(d,a);if(0>e)return!1;try{if(b&&e+1(0,g.P)()-1E3*a))return 0;a=g.Yy("yt-player-quality");if("string"===typeof a){if(a=g.SA[a],0wKa){B2=wKa;break a}}var xKa=C2.match("("+g.Mb(uKa).join("|")+")");B2=xKa?uKa[xKa[0]]:0}else B2=void 0}var QF=B2,PF=0<=QF;var Vka={RED:"red",i7:"white"};var ala={vV:"adunit",FY:"detailpage",UY:"editpage",XY:"embedded",YY:"embedded_unbranded",T_:"leanback",l4:"previewpage",o4:"profilepage",t6:"unplugged",e4:"playlistoverview",H5:"sponsorshipsoffer",w5:"shortspage"};mF.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;qt?a=a||yKa[b]:2.2===QF?a=a||zKa[b]:gt()&&(a=a||AKa[b]);return!!a}; mF.prototype.isTypeSupported=function(a){this.ea();return this.G?window.cast.receiver.platform.canDisplayType(a):$D(a)}; mF.prototype.disableAv1=function(){this.K=!0}; mF.prototype.ea=function(){}; var zKa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},AKa={"application/x-mpegURL":"maybe"},yKa={"application/x-mpegURL":"maybe"};g.v(pF,g.Q);pF.prototype.add=function(a,b){!this.items[a]&&(b.Cs||b.Ov||b.Uu)&&(this.items[a]=Zb(b),this.W("vast_info_card_add",a))}; pF.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b}; pF.prototype.get=function(a){return this.items[a]||null}; pF.prototype.isEmpty=function(){return g.Rb(this.items)};var ZF={q0:1,r0:2,s0:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};rF.prototype.Fg=function(a,b){var c=Math.pow(this.alpha,a);this.i=b*(1-c)+c*this.i;this.l+=a}; rF.prototype.Yf=function(){return this.i/(1-Math.pow(this.alpha,this.l))};sF.prototype.Fg=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}; sF.prototype.Yf=function(){return this.C?(tF(this,this.u-this.C)+tF(this,this.u)+tF(this,this.u+this.C))/3:tF(this,this.u)};g.v(Jka,g.E);var Oka=/^([0-9\.]+):([0-9\.]+)$/;var Tka="area120-boutique blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),$ka={ZV:"cbrand",aW:"cbr",bW:"cbrver",e_:"c",h_:"cver",g_:"ctheme",f_:"cplayer",z2:"cmodel",g3:"cnetwork",C3:"cos",D3:"cosver",V3:"cplatform"};g.v(uG,g.E);g.k=uG.prototype;g.k.Z=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.xG(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.UF(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,qt&&(a=Hr())&&(b.ebc=a));return g.ti(d,b)}; g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.xG(this)+"/embed/"+a;c&&(a=g.ti(a,{list:c}));c=b.width;b=b.height;a=g.qd(a);return''}; g.k.supportsGaplessAudio=function(){return g.aj&&!qt&&74<=dt()||g.bj&&g.Wd(68)?!0:!1}; g.k.getPlayerType=function(){return this.deviceParams.cplayer}; g.k.ra=function(){this.rj&&window.clearInterval(this.rj);g.E.prototype.ra.call(this)}; var gla=["www.youtube-nocookie.com","youtube.googleapis.com"];g.k=NG.prototype;g.k.Ue=function(){return this.i}; g.k.Rr=function(){return null}; g.k.dH=function(){var a=this.Rr();return a?(a=g.$r(a.i),Number(a.expire)):NaN}; g.k.ZC=function(){}; g.k.kc=function(){return this.i.kc()}; g.k.getHeight=function(){return this.i.fb().height};hla.prototype.He=function(){kla(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.Jc){if(e.Jc.getIsDefault()){c=e.Jc.getId();break a}c||(c=e.Jc.getId())}}d=g.q(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,e.Jc&&e.Jc.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.i]){var f=a,h=f.push,l="#EXT-X-MEDIA:TYPE=AUDIO,",m="YES",n="audio";if(e.Jc){n= e.Jc;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=ila(this,e.url,p);l=l+('NAME="'+n+'",DEFAULT='+(m+',AUTOSELECT=YES,GROUP-ID="'))+(jla(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.i])e="#EXT-X-STREAM-INF:BANDWIDTH="+(d.bitrate+e.bitrate)+',CODECS="'+(d.codecs+","+e.codecs+'",RESOLUTION=')+(d.width+"x"+d.height+',AUDIO="')+(jla(e,d)+'",CLOSED-CAPTIONS=NONE'), 1f.getHeight())&&c.push(f)}return c}; mH.prototype.G=function(a,b,c,d){return new g.lH(a,b,c,d)};g.v(nH,g.lH);g.k=nH.prototype;g.k.fB=function(){return this.l.getNumberOfSegments()}; g.k.hv=function(a){var b=this.rows*this.columns*this.G,c=this.l,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a}; g.k.Sr=function(){return this.l.getLastSegmentNumber()}; g.k.kz=function(){return this.l.getFirstSegmentNumber()}; g.k.wE=function(a){this.l=a};g.v(oH,mH);oH.prototype.l=function(a,b){return mH.prototype.l.call(this,"$N|"+a,b)}; oH.prototype.G=function(a,b,c){return new nH(a,b,c,this.isLive)};g.v(g.rH,g.Q);g.k=g.rH.prototype;g.k.T=function(){return this.B}; g.k.Z=function(a){return g.S(this.B.experiments,a)}; g.k.Xe=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.k.TI=function(){this.Ha()||(this.i.u||this.i.unsubscribe("refresh",this.TI,this),this.rG(-1))}; g.k.rG=function(a){if(!this.isLivePlayback||!this.G||"fairplay"!=this.G.flavor){var b=ME(this.i,this.MC);if(0=this.K&&(g.Sr(Error("durationMs was specified incorrectly with a value of: "+this.K)),this.dh());this.wf();this.I.addEventListener("progresssync",this.Y)}; g.k.ag=function(){VI.prototype.ag.call(this);this.Zc("adabandonedreset")}; g.k.wf=function(){var a=this.I.T();VI.prototype.wf.call(this);this.i=g.S(this.I.T().experiments,"disable_rounding_ad_notify")?this.I.getCurrentTime():Math.floor(this.I.getCurrentTime());this.B=this.i+this.K/1E3;g.bG(a)?this.I.Na("onAdMessageChange",{renderer:this.J.i,startTimeSecs:this.i}):WI(this,[new Hna(this.J.i)]);a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Ix(),c=this.J.i.videoAdBreakOffsetMsInt64;b&&g.Bv("adNotify",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.B), timeToAdBreakSec:Math.ceil(this.B-this.i),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.C)for(this.U=!0,a=g.q(this.C.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.l?b.i?R("Received AdNotify started event before another one exited"):(b.i=b.l,roa(b.u(),b.i)):R("Received AdNotify started event without start requested event");g.U(this.I.sb(1),512)&&(a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Ix(),c=this.J.i.videoAdBreakOffsetMsInt64,b&&g.Bv("adNotifyFailure",{clientScreenNonce:b, adMediaTimeMs:Math.floor(1E3*this.B),timeToAdBreakSec:Math.ceil(this.B-this.i),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.dh())}; g.k.dh=function(){VI.prototype.dh.call(this);this.Zc("adended")}; g.k.Og=function(a){VI.prototype.Og.call(this,a);this.Zc("aderror")}; g.k.Zc=function(a){this.I.removeEventListener("progresssync",this.Y);this.Oi();this.W(a);Jna(this)}; g.k.dispose=function(){this.I.removeEventListener("progresssync",this.Y);Jna(this);VI.prototype.dispose.call(this)}; g.k.Oi=function(){g.bG(this.I.T())?this.I.Na("onAdMessageChange",{renderer:null,startTimeSecs:this.i}):VI.prototype.Oi.call(this)};g.v(Kna,QI);gJ.prototype.sendAdsPing=function(a){this.C.send(a,Vna(this),{})}; gJ.prototype.ld=function(a){var b=this;if(a){var c=Vna(this);Array.isArray(a)?a.forEach(function(d){return b.l.executeCommand(d,c)}):this.l.executeCommand(a,c)}};hJ.prototype.get=function(){return this.value}; g.v(iJ,hJ);iJ.prototype.Tb=function(){return"metadata_type_action_companion_ad_renderer"}; g.v(jJ,hJ);jJ.prototype.Tb=function(){return"metadata_type_ad_next_params"}; g.v(kJ,hJ);kJ.prototype.Tb=function(){return"metadata_type_ad_video_clickthrough_endpoint"}; g.v(lJ,hJ);lJ.prototype.Tb=function(){return"metadata_type_invideo_overlay_ad_renderer"}; g.v(mJ,hJ);mJ.prototype.Tb=function(){return"metadata_type_image_companion_ad_renderer"}; g.v(nJ,hJ);nJ.prototype.Tb=function(){return"metadata_type_shopping_companion_carousel_renderer"}; g.v(oJ,hJ);oJ.prototype.Tb=function(){return"metadata_type_ad_info_ad_metadata"}; g.v(pJ,hJ);pJ.prototype.Tb=function(){return"metadata_ad_video_is_listed"}; g.v(qJ,hJ);qJ.prototype.Tb=function(){return"metadata_type_ad_placement_config"}; g.v(rJ,hJ);rJ.prototype.Tb=function(){return"metadata_type_ad_pod_info"}; g.v(sJ,hJ);sJ.prototype.Tb=function(){return"metadata_type_ad_video_id"}; g.v(tJ,hJ);tJ.prototype.Tb=function(){return"metadata_type_ad_video_url"}; g.v(uJ,hJ);uJ.prototype.Tb=function(){return"metadata_type_content_cpn"}; g.v(vJ,hJ);vJ.prototype.Tb=function(){return"metadata_type_instream_ad_player_overlay_renderer"}; g.v(wJ,hJ);wJ.prototype.Tb=function(){return"metadata_type_ad_action_interstitial_renderer"}; g.v(xJ,hJ);xJ.prototype.Tb=function(){return"metadata_type_valid_survey_text_interstitial_renderer"}; g.v(yJ,hJ);yJ.prototype.Tb=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"}; g.v(zJ,hJ);zJ.prototype.Tb=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"}; g.v(AJ,hJ);AJ.prototype.Tb=function(){return"metadata_type_sliding_text_player_overlay_renderer"}; g.v(BJ,hJ);BJ.prototype.Tb=function(){return"metadata_type_linked_player_bytes_layout_id"}; g.v(CJ,hJ);CJ.prototype.Tb=function(){return"metadata_type_linked_in_player_layout_id"}; g.v(DJ,hJ);DJ.prototype.Tb=function(){return"metadata_type_linked_in_player_slot_id"}; g.v(EJ,hJ);EJ.prototype.Tb=function(){return"metadata_type_player_bytes_callback"}; g.v(FJ,hJ);FJ.prototype.Tb=function(){return"metadata_type_player_bytes_callback_ref"}; g.v(GJ,hJ);GJ.prototype.Tb=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"}; g.v(HJ,hJ);HJ.prototype.Tb=function(){return"metadata_type_sub_layouts"}; g.v(IJ,hJ);IJ.prototype.Tb=function(){return"metadata_type_cue_point"}; g.v(JJ,hJ);JJ.prototype.Tb=function(){return"metadata_type_video_length_seconds"}; g.v(KJ,hJ);KJ.prototype.Tb=function(){return"metadata_type_player_vars"}; g.v(LJ,hJ);LJ.prototype.Tb=function(){return"metadata_type_sodar_extension_data"}; g.v(MJ,hJ);MJ.prototype.Tb=function(){return"metadata_type_layout_enter_ms"}; g.v(NJ,hJ);NJ.prototype.Tb=function(){return"metadata_type_layout_exit_ms"}; g.v(OJ,hJ);OJ.prototype.Tb=function(){return"metadata_type_media_sub_layout_index"}; g.v(PJ,hJ);PJ.prototype.Tb=function(){return"metadata_type_dai"}; g.v(QJ,hJ);QJ.prototype.Tb=function(){return"metadata_type_ad_intro"}; g.v(RJ,hJ);RJ.prototype.Tb=function(){return"metadata_type_client_forecasting_ad_renderer"}; g.v(SJ,hJ);SJ.prototype.Tb=function(){return"metadata_type_drift_recovery_ms"}; g.v(TJ,hJ);TJ.prototype.Tb=function(){return"metadata_type_fulfilled_layout"}; g.v(UJ,hJ);UJ.prototype.Tb=function(){return"metadata_type_ad_break_request_data"}; g.v(VJ,hJ);VJ.prototype.Tb=function(){return"metadata_type_ad_break_response_data"}; g.v(WJ,hJ);WJ.prototype.Tb=function(){return"metadata_type_remote_slots_data"}; g.v(XJ,hJ);XJ.prototype.Tb=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}; g.v(YJ,hJ);YJ.prototype.Tb=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"}; g.v(ZJ,hJ);ZJ.prototype.Tb=function(){return"metadata_type_legacy_info_card_vast_extension"}; g.v($J,hJ);$J.prototype.Tb=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"}; g.v(aK,hJ);aK.prototype.Tb=function(){return"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR"};boa.prototype.ld=function(a){this.i.ld(a)};g.v(cK,g.Q);cK.prototype.getProgressState=function(){return this.u}; cK.prototype.start=function(){this.B=Date.now();doa(this,{current:this.i/1E3,duration:this.l/1E3});this.Gb.start()}; cK.prototype.stop=function(){this.Gb.stop()};g.v(dK,QI);g.v(eK,VI);g.k=eK.prototype;g.k.Up=function(){this.wf()}; g.k.wf=function(){var a=this.C.i;g.bG(this.I.T())?(g.S(this.I.T().experiments,"validate_tvhtml5_instream_survey_ad_renderer_in_bulleit")&&!bK(a)?(g.Tx(Error("Expected a valid VOD InstreamSurveyAdRenderer.")),this.Zc("aderror")):(a=coa(this.J,a),this.I.Na("onAdInfoChange",a)),this.K=Date.now(),this.i&&this.i.start()):WI(this,[new dK(a)]);VI.prototype.wf.call(this)}; g.k.getDuration=function(){return this.C.l}; g.k.Jm=function(){VI.prototype.Jm.call(this);this.i&&this.i.stop()}; g.k.Km=function(){VI.prototype.Km.call(this);this.i&&this.i.start()}; g.k.ag=function(){VI.prototype.ag.call(this);this.Zc("adabandoned")}; g.k.Lm=function(){VI.prototype.Lm.call(this);this.Zc("adended")}; g.k.Og=function(a){VI.prototype.Og.call(this,a);this.Zc("aderror")}; g.k.Zc=function(a){this.Oi();this.W(a)}; g.k.xf=function(a){switch(a){case "skip-button":this.Lm();break;case "survey-submit":this.Zc("adended")}}; g.k.Oi=function(){g.bG(this.I.T())?(this.i&&this.i.stop(),this.I.Na("onAdInfoChange",null)):VI.prototype.Oi.call(this)};g.v(fK,QI);g.v(gK,VI);gK.prototype.Up=function(){this.wf()}; gK.prototype.wf=function(){WI(this,[new fK(this.i.i,this.macros)]);VI.prototype.wf.call(this)}; gK.prototype.ag=function(){VI.prototype.ag.call(this);this.Zc("adabandoned")}; gK.prototype.Og=function(a){VI.prototype.Og.call(this,a);this.Zc("aderror")};g.v(ioa,QI);g.v(joa,QI);g.v(koa,QI);g.v(jK,QI);g.v(loa,QI);g.v(moa,QI);g.v(kK,VI);g.k=kK.prototype;g.k.Zs=function(){return{currentTime:this.I.getCurrentTime(2,!1),duration:this.i.l,isPlaying:vna(this.I),isVpaid:!1,isYouTube:!0,volume:this.I.isMuted()?0:this.I.getVolume()/100}}; g.k.Up=function(){if(this.i.Y)Fna(this),this.Zc("aderror");else{var a=this.i.i.legacyInfoCardVastExtension,b=this.i.B;a&&b&&this.I.T().U.add(b,{Cs:a});try{var c=this.i.i.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{cl(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.fc("//tpc.googlesyndication.com/sodar/%{path}");g.Ux(new g.Gv("Load Sodar Error.",d instanceof dc,d.constructor===dc,{Message:e.message,"Escaped injector basename":g.qd(c.siub),"BG vm basename":c.bgub}));if(d.constructor===dc)throw e; }}catch(e){g.Tx(e)}AI(this.I,!1);a=jna(this.i);b=this.I.T();g.S(this.I.T().experiments,"disable_force_iv_load_policy_on_bulleit")||(a.iv_load_policy=b.i||g.bG(b)||g.EG(b)?3:1);c=this.I.getVideoData(1);c.xg&&(a.ctrl=c.xg);c.Ff&&(a.ytr=c.Ff);c.Yk&&(a.ytrcc=c.Yk);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Gh&&(a.vss_credentials_token_type=c.Gh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));this.W("adunstarted",-1);!z_(this.K)&&g.bG(b)&&(b=pK(this),b=Yna(this.Aa,b, this.i.i.adNextParams||""),b.attributionInfo=Sna(this.i.u,this.i.B||""),this.I.Na("onAdInfoChange",b));this.J?this.C.start():(this.I.cueVideoByPlayerVars(a,2),this.C.start(),this.I.playVideo(2))}}; g.k.Jm=function(){VI.prototype.Jm.call(this);this.W("adpause",2)}; g.k.Km=function(){VI.prototype.Km.call(this);this.W("adplay",1)}; g.k.wf=function(){VI.prototype.wf.call(this);this.C.stop();this.va.N(this.I,g.Iz("bltplayback"),this.yL);var a=new g.Fz(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});this.I.Dd([a],2);a=oK(this);this.B.Ga=a;if(!z_(this.K)){a=[];var b=this.I.T(),c=this.I.getVideoData(2);if(g.VF(b)||g.bG(b)){var d;(d=c&&c.isListed?{channelId:c.Fh,channelThumbnailUrl:c.rg||"",channelTitle:c.author,videoTitle:c.title,channelVideoCount:0,showAdInfoIcon:!1,whyThisAdInfo:null,muteAdInfo:null}: null)&&this.I.Na("onAdMetadataAvailable",d)}g.bG(b)||(g.EG(b)&&!this.J&&(c&&c.videoId&&c.isListed&&c.videoId==this.i.B&&(b=c.title,d=c.author,c=c.rg,b&&d&&c?c=[new joa(b),new ioa(c),new koa(d)]:(g.Ux(new g.Gv("Channel metadata contains null for:",b?d?"channel icon thumbnail.":"channel name.":"video title.")),c=[]),WI(this,c)),a.push(Sna(this.i.u,this.i.B||"")),c=this.i.G,null==c?c=null:(b={},c.urlEndpoint&&(b.url=c.urlEndpoint.url,b.target="TARGET_NEW_WINDOW"),c=new moa({navigationEndpoint:{urlEndpoint:b}})), c&&a.push(c),this.i.isSkippable()&&!lI(this.i)&&(c=pK(this),(c=c.skipOrPreviewRenderer&&c.skipOrPreviewRenderer.skipAdRenderer)||(c=soa(this)),a.push(new loa(c)))),c=pK(this),a.push(new jK(c)),WI(this,a))}this.I.isMuted()&&(a=this.l,c=this.I.isMuted(),GI(a)||HI(a,c?"mute":"unmute"));this.W("adplay",1);if(null!==this.X){a=null!==this.B.i.getVideoData(1)?this.B.i.getVideoData(1).clientPlaybackNonce:"";c=ooa(this);b=this.i;d=noa(this);for(var e=g.q(this.X.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 sJ(p));r&&n.push(new tJ(r));(p=(p=l.i)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new vJ(p)),(p=p.elementId)&&n.push(new CJ(p))):R("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");l.i.adNextParams&&n.push(new jJ(l.i.adNextParams||""));(p=l.G)&&n.push(new kJ(p));(p=mz(f.J.get(),2))?(n.push(new oJ({channelId:p.Fh,channelThumbnailUrl:p.rg,channelTitle:p.author,videoTitle:p.title})),n.push(new pJ(p.isListed))): R("Expected meaningful PlaybackData on ad started.");n.push(new rJ(l.u));n.push(new JJ(l.l));n.push(new uJ(a));n.push(new FJ({current:this}));p=l.La;null!=p.kind&&n.push(new qJ(p));(p=l.X)&&n.push(new WJ(p));void 0!==m&&n.push(new XJ(m));f.i?R(f.i.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):poa(f,h,n,!0,l.i.adLayoutLoggingData)}}this.U.Nn=this;this.I.Na("onAdStart",oK(this));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.yL=function(a){"bltcompletion"==a.getId()&&(this.I.df("bltplayback",2),II(this.l,this.getDuration()),nK(this,"adended"),P1(this.U,this))}; g.k.dh=function(){VI.prototype.dh.call(this);this.Zc("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.ag=function(){VI.prototype.ag.call(this);this.Zc("adabandoned")}; g.k.RC=function(){var a=this.l;EI(a)||MI(a,"clickthrough")}; g.k.fu=function(){this.Lm()}; g.k.Lm=function(){VI.prototype.Lm.call(this);this.Zc("adended")}; g.k.Og=function(a){VI.prototype.Og.call(this,a);this.Zc("aderror")}; g.k.Zc=function(a){this.C.stop();z_(this.K)||this.Oi();AI(this.I,!0);"adabandoned"!=a&&this.I.Na("onAdComplete");nK(this,a);P1(this.U,this);this.I.Na("onAdEnd",oK(this));this.W(a)}; g.k.Oi=function(){var a=this.I.T();g.bG(a)&&(g.EG(a)||g.S(a.experiments,"enable_topsoil_wta_for_halftime")||g.S(a.experiments,"enable_topsoil_wta_for_halftime_live_infra")||g.bG(a))?this.I.Na("onAdInfoChange",null):VI.prototype.Oi.call(this)}; g.k.Dl=function(){this.Y||this.Xx()}; g.k.Xx=function(){this.WH&&this.I.playVideo()}; g.k.WH=function(){return 2==this.I.getPlayerState(2)}; g.k.xf=function(a){if(!z_(this.K)){var b=this.l;if(yI(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.Y||this.Xx();break;case "ad-info-icon-button":(this.Y=this.WH())||this.I.pauseVideo(); break;case "ad-channel-thumbnail":case "advertiser-name":a=this.I.T().protocol+"://"+g.wG(this.I.T())+"/channel/"+this.i.Aa;g.iK(a);break;case "ad-title":this.I.pauseVideo();g.iK(this.I.getVideoUrl());break;case "visit-advertiser":this.I.pauseVideo();if(g.EG(this.I.T())&&(a=this.i.G)){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&&KI(b,d.baseUrl,{},d.headers||[])}a.urlEndpoint&&a.urlEndpoint.url&&g.iK(a.urlEndpoint.url)}a=this.l;EI(a)|| MI(a,"clickthrough");break;case "skip-button":this.Lm()}}}; g.k.KG=function(a,b){if(this.i.Y)return Fna(this),this.Zc("aderror"),"";if(!Number.isFinite(a))return g.Tx(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.Tx(Error("Start time is not earlier than end time")),"";var c=1E3*this.i.l,d=jna(this.i);d=this.I.hq(d,2,c,a,b);a+c>b&&this.I.Cr(d,b-a);return d}; g.k.dispose=function(){vna(this.I)&&!this.J&&this.I.stopVideo(2);nK(this,"adabandoned");P1(this.U,this);VI.prototype.dispose.call(this)};qK.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={Is:null,fI:-Infinity},b=this.i[b]=c);c=a.startSecs+a.i/1E3;if(!(c=d)Eoa(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.cg=!0, a={adBreakType:Joa(this.l),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:this.videoStreamType},"ad_to_video"===this.actionType?(this.contentCpn&&(a.targetCpn=this.contentCpn),this.videoId&&(a.targetVideoId=this.videoId)):(this.adCpn&&(a.targetCpn=this.adCpn),this.adVideoId&&(a.targetVideoId=this.adVideoId)),this.adFormat&&(a.adType=this.adFormat),this.contentCpn&&(a.clientPlaybackNonce=this.contentCpn),this.videoId&&(a.videoId=this.videoId), this.adCpn&&(a.adClientPlaybackNonce=this.adCpn),this.adVideoId&&(a.adVideoId=this.adVideoId),FA(a,this.actionType)}; vK.prototype.reset=function(){return new vK(this.I)};var N2={},O2=(N2.BUFFERING="buffering-mode",N2.CUED="cued-mode",N2.ENDED="ended-mode",N2.PAUSED="paused-mode",N2.PLAYING="playing-mode",N2.SEEKING="seeking-mode",N2.UNSTARTED="unstarted-mode",N2);var BKa,P2,Koa; BKa={JV:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",QV:"AUTHENTICATION_MALFORMED",RV:"AUTHENTICATION_MISSING",WV:"BAD_REQUEST",hW:"CAST_SESSION_DEVICE_MISMATCHED",iW:"CAST_SESSION_VIDEO_MISMATCHED",jW:"CAST_TOKEN_EXPIRED",kW:"CAST_TOKEN_FAILED",lW:"CAST_TOKEN_MALFORMED",mW:"CGI_PARAMS_MALFORMED",nW:"CGI_PARAMS_MISSING",GY:"DEVICE_FALLBACK",fZ:"GENERIC_WITH_LINK_AND_CPN",gZ:"LICENSE",iZ:"VIDEO_UNAVAILABLE",tZ:"FORMAT_UNAVAILABLE",HZ:"GEO_FAILURE",WZ:"HTML5_AUDIO_RENDERER_ERROR",XZ:"GENERIC_WITHOUT_LINK", YZ:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",ZZ:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",a_:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",l_:"INVALID_DRM_MESSAGE",r4:"PURCHASE_NOT_FOUND",s4:"PURCHASE_REFUNDED",B4:"RENTAL_EXPIRED",J4:"RETRYABLE_ERROR",W4:"SERVER_ERROR",I5:"STOPPED_BY_ANOTHER_PLAYBACK",L5:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",M5:"STREAMING_NOT_ALLOWED",N5:"STREAM_LICENSE_NOT_FOUND",Z5:"TOO_MANY_REQUESTS",a6:"TOO_MANY_REQUESTS_WITH_LINK",b6:"TOO_MANY_STREAMS_PER_ENTITLEMENT", c6:"TOO_MANY_STREAMS_PER_USER",B6:"UNSUPPORTED_DEVICE",N6:"VIDEO_FORBIDDEN",Q6:"VIDEO_NOT_FOUND"};P2={}; g.eO=(P2.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.",P2.DEVICE_FALLBACK="Sorry, this video is not available on this device.",P2.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",P2.LICENSE="Sorry, there was an error licensing this video.",P2.VIDEO_UNAVAILABLE= "Video unavailable",P2.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",P2.GEO_FAILURE="This video isn't available in your country.",P2.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",P2.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",P2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",P2.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", P2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",P2.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",P2.PURCHASE_NOT_FOUND="This video requires payment.",P2.PURCHASE_REFUNDED="This video's purchase has been refunded.",P2.RENTAL_EXPIRED="This video's rental has expired.",P2.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",P2.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.", P2.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",P2.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",P2.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",P2.SERVER_ERROR="There was an internal server error. Please try again later.",P2.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",P2.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.", P2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",P2.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",P2.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",P2.TOO_MANY_REQUESTS="Please log in to watch this video.",P2.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",P2.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.", P2.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",P2.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",P2.VIDEO_FORBIDDEN="Access to this video is forbidden.",P2.VIDEO_NOT_FOUND="This video can not be found.",P2); Koa={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(wK,g.E);g.k=wK.prototype;g.k.tv=function(){return this.l}; g.k.fq=function(a){var b="";a&&(Noa(this,a),b=a.i);if(!this.vf()||b)b&&this.vf()!==b&&this.wv(b),vEa||a&&a.l||this.load(),this.G||(this.addEventListener("volumechange",this.tG),this.G=!0)}; g.k.qv=function(){var a=this.ue();a=window.MediaSource?new sE(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new sE(new window.WebKitMediaSource,void 0,!1):new sE(void 0,a,!1);this.fq(a.Pt);return a}; g.k.playVideo=function(){var a=this;this.ck()&&this.seekTo(0);!this.vf()&&this.l&&(g.Sr(Error("playVideo without src")),this.wv(this.l.i),this.l.l||this.load());var b=this.play();!b&&xEa&&qO&&7<=(dI||0)&&g.Xt(this,"playing",function(){g.ms(function(){Moa(a,a.getCurrentTime(),0)},500)}); return b}; g.k.seekTo=function(a){0dI&&(a=Math.max(.1,a)),this.by(a))}; g.k.stopVideo=function(){this.vf()&&(wEa&&qt&&0b.i.getCurrentTime(2,!1)&&!g.S(b.i.T().experiments,"html5_dai_pseudogapless_seek_killswitch")))){c= b.l;if(c.It()){var d=g.S(b.J.i.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock");vq(c.K,d)}b.l.J.seek=!0}0>TI(a,4)&&!(0>TI(a,2))&&(b=this.l.l,EI(b)||(GI(b)?MI(b,"resume"):HI(b,"resume")));!g.S(this.I.T().experiments,"html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.UI(a,512)&&!g.JK(a.state)&&Goa(this.C)}}}; g.k.kb=function(){return this.daiEnabled?Roa(this):!1}; g.k.resume=function(){this.l&&this.l.Xx()}; g.k.tm=function(){this.l&&this.l.Zc("adended")}; g.k.Rj=function(){this.tm()}; g.k.ci=function(a){this.Lf.ci(a)}; g.k.zL=function(a){this.Lf.i.Na("onAdUxUpdate",a)}; g.k.onAdUxClicked=function(a){this.l.xf(a)}; g.k.XG=function(){return 0}; g.k.ZG=function(){return 1}; g.k.ID=function(a){this.daiEnabled&&this.i.J&&this.i.i.start<=a&&a=this.B?this.u.i:this.u.i.slice(this.B)).some(function(a){return a.Kq()})}; g.k.Rm=function(){return this.G instanceof sI||this.G instanceof bJ}; g.k.Lt=function(){return this.G instanceof kI||this.G instanceof $I}; g.k.CJ=function(){this.daiEnabled?yI(this.I)&&Roa(this):Fpa(this)}; g.k.Ur=function(a){var b=Epa(a);this.G&&b&&this.K!==b&&(b?vqa(this.Lf):xqa(this.Lf),this.K=b);this.G=a;this.daiEnabled&&(this.B=this.u.i.findIndex(function(c){return c===a})); LK.prototype.Ur.call(this,a)}; g.k.Rj=function(){this.B=this.u.i.length;this.l&&this.l.Zc("adended");PK(this)}; g.k.tm=function(){this.bp()}; g.k.bp=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.ci(0),a?PK(this,a,b):Fpa(this))}; g.k.FI=function(){1==this.u.l?PK(this):this.bp()}; g.k.Aw=function(){var a=0>=this.B?this.u.i:this.u.i.slice(this.B);return 0TI(a,16)&&(this.K.forEach(this.qC,this),this.K.clear())}; g.k.xT=function(){this.l&&this.l.kb()}; g.k.AT=function(){if(yI(this.i)&&this.l){var a=this.i.getCurrentTime(2,!1),b=this.l;b.l&&(b=b.l,b.G&&Bna(b.l,a,b.getDuration()))}}; g.k.qQ=function(){this.Va=!0;if(this.l){var a=this.l;a.l&&a.l.ag()}}; g.k.AQ=function(a){if(this.l)this.l.onAdUxClicked(a)}; g.k.BT=function(){if(2==this.i.getPresentingPlayerType()&&this.l){var a=this.l.l,b=a.l;a=a.I.isMuted();GI(b)||HI(b,a?"mute":"unmute")}}; g.k.uR=function(a){if(this.l){var b=this.l.l.l;EI(b)||MI(b,a?"fullscreen":"end_fullscreen")}}; g.k.Rf=function(a,b){this.i.Rf(a,b);a=g.q(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Pn.delete(b),this.u.delete(b)}; g.k.VU=function(){for(var a=[],b=g.q(this.Pn),c=b.next();!c.done;c=b.next())c=c.value,Lz(c)||a.push(c);b=this.i.app;1!==b.getPresentingPlayerType()||kY(b,"cuerangemarkersupdated",a)}; g.k.ci=function(a){this.i.ci(a);switch(a){case 1:this.Mw=1;break;case 0:this.Mw=0}}; g.k.kD=function(){var a=this.i.getVideoData(2);return a?a.isListed&&!this.U:!1}; g.k.tm=function(){this.l&&this.l.Po()&&this.l.tm()}; g.k.Rj=function(){this.l&&this.l.Po()&&this.l.Rj()}; g.k.bw=function(){}; g.k.Qv=function(){}; g.k.Rb=function(a){if(this.l){var b=this.l;b.l&&(b=b.l,b.G&&Bna(b.l,a,b.getDuration()))}}; g.k.Rm=function(){return yI(this.i)&&!!this.l&&this.l.Rm()}; g.k.executeCommand=function(a,b,c){var d=this.bb,e=d.executeCommand;if(c=void 0===c?null:c){var f=!!this.l&&this.l||null;f?(f=f.l,c=f.ad.It()?JI(f.l,c):{}):c={}}else c={};e.call(d,a,b,c)}; g.k.VG=function(){return this.Ea}; g.k.WG=function(){return this.La};g.v(qL,g.E);qL.prototype.append=function(a){if(!this.l)throw Error("This does not support the append operation");this.i.appendChild(a.i)}; g.v(rL,qL);g.v(Aqa,g.E);var Cqa=1;g.v(g.tL,g.E);g.k=g.tL.prototype; g.k.createElement=function(a,b){b=b||"svg"===a.D;var c=a.L,d=a.Ca;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.D);g.IG&&(a.V||(a.V={}),a.V.focusable="false")}else e=g.ng(a.D);if(c){if(c=uL(this,e,"class",c))vL(this,e,"class",c),this.Ua[c]=e}else if(d){c=g.q(d);for(var f=c.next();!f.done;f=c.next())this.Ua[f.value]=e;vL(this,e,"class",d.join(" "))}d=a.oa;c=a.S;if(d)b=uL(this,e,"child",d),void 0!==b&&e.appendChild(g.og(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=uL(this,e,"child",f),null!=f&&e.appendChild(g.og(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Mb&&(h=sL(),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.qg(e,f,d++))}if(a=a.V)for(b=e,d=g.q(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],vL(this,b,c,"string"===typeof f? uL(this,b,c,f):f);return e}; g.k.Ba=function(a){return this.Ua[a]}; g.k.ya=function(a,b){"number"===typeof b?g.qg(a,this.element,b):a.appendChild(this.element)}; g.k.detach=function(){g.rg(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.Sa(c,a[c])}; g.k.Sa=function(a,b){(a=this.Hb["{{"+a+"}}"])&&vL(this,a[0],a[1],b)}; g.k.ra=function(){this.Ua={};this.Hb={};this.detach();g.E.prototype.ra.call(this)};g.v(g.V,g.tL);g.k=g.V.prototype;g.k.Vc=function(a,b){this.Sa(b||"content",a)}; g.k.show=function(){this.vb||(g.zl(this.element,"display",""),this.vb=!0)}; g.k.hide=function(){this.vb&&(g.zl(this.element,"display","none"),this.vb=!1)}; g.k.Ub=function(a){this.Y=a}; g.k.Ra=function(a,b,c){return this.N(this.element,a,b,c)}; g.k.N=function(a,b,c,d){c=(0,g.C)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d}; g.k.fc=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;xg(a);a.focus()}; g.k.ra=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.tL.prototype.ra.call(this)};g.v(g.xL,g.V);g.xL.prototype.subscribe=function(a,b,c){return this.Ea.subscribe(a,b,c)}; g.xL.prototype.unsubscribe=function(a,b,c){return this.Ea.unsubscribe(a,b,c)}; g.xL.prototype.Tf=function(a){return this.Ea.Tf(a)}; g.xL.prototype.W=function(a,b){for(var c=[],d=1;dMath.pow(5,2))b.B=!0}; g.k.CL=function(a){if(this.ma){var b=this.ma,c=a.changedTouches;c&&b.J&&1==b.l&&!b.B&&!b.C&&!b.G&&Bqa(b,c)&&(b.Y=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.Ig=function(a,b){this.api.Ig(a,this);this.api.Nl(a,b)}; g.k.ib=function(a,b){this.api.Bt(a)&&this.api.ib(a,b,this.i)}; g.k.ra=function(){this.clear(null);this.fc(this.Ya);for(var a=g.q(this.va),b=a.next();!b.done;b=a.next())this.fc(b.value);g.xL.prototype.ra.call(this)};g.v(ML,yL); ML.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);this.l=b;if(null==b.text&&null==b.icon)Ur(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.Pz(b.text),g.rc(a)||(this.element.setAttribute("aria-label",a),this.B=new g.xL({D:"span",L:"ytp-ad-button-text",oa:a}),g.F(this,this.B),this.B.ya(this.element)));null!=b.icon&&(b=LL(b.icon),null!= b&&(this.u=new g.xL({D:"span",L:"ytp-ad-button-icon",S:[b]}),g.F(this,this.u)),this.C?g.qg(this.element,this.u.element,0):this.u.ya(this.element))}}; ML.prototype.clear=function(){this.hide()}; ML.prototype.onClick=function(a){var b=this;yL.prototype.onClick.call(this,a);Wqa(this).forEach(function(c){return b.Ta.executeCommand(c,b.macros)}); this.api.onAdUxClicked(this.componentType,this.layoutId)};g.v(NL,g.E);NL.prototype.ra=function(){this.l&&g.Pt(this.l);this.i.clear();OL=null;g.E.prototype.ra.call(this)}; NL.prototype.register=function(a,b){b&&this.i.set(a,b)}; var OL=null;g.v(QL,yL); QL.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.Sr(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new ML(this.api,this.Ta,this.layoutId,this.i),g.F(this,this.button),this.button.init(PI("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.Pz(a)),this.button.ya(this.element),this.G&&!g.Mq(this.button.element,"ytp-ad-clickable")&&g.K(this.button.element,"ytp-ad-clickable"), a&&(this.u=new g.xL({D:"div",L:"ytp-ad-hover-text-container"}),this.C&&(b=new g.xL({D:"div",L:"ytp-ad-hover-text-callout"}),b.ya(this.u.element),g.F(this,b)),g.F(this,this.u),this.u.ya(this.element),b=PL(a),g.qg(this.u.element,b,0)),this.show())}; QL.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();yL.prototype.hide.call(this)}; QL.prototype.show=function(){this.button&&this.button.show();yL.prototype.show.call(this)};g.v(SL,yL);SL.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&RL(a)||"";g.rc(b)?(g.S(this.api.T().experiments,"web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&Ur(Error("Found AdImage without valid image URL")):(this.l?g.zl(this.element,"backgroundImage","url("+b+")"):eg(this.element,{src:b}),eg(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())}; SL.prototype.clear=function(){this.hide()};g.v(TL,yL);g.k=TL.prototype;g.k.hide=function(){yL.prototype.hide.call(this);this.B&&this.B.focus()}; g.k.show=function(){this.B=document.activeElement;yL.prototype.show.call(this);this.C.focus()}; g.k.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);this.u=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.Sr(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.Sr(Error("ConfirmDialogRenderer.cancelLabel was not set.")):$qa(this,b):g.Sr(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.k.clear=function(){g.ox(this.l);this.hide()}; g.k.nC=function(){this.hide()}; g.k.lz=function(){var a=this.u.cancelEndpoint;a&&this.Ta.executeCommand(a,this.macros);this.hide()}; g.k.oC=function(){var a=this.u.confirmNavigationEndpoint||this.u.confirmEndpoint;a&&this.Ta.executeCommand(a,this.macros);this.hide()};g.v(UL,yL);g.k=UL.prototype; g.k.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);this.u=b;if(null==b.defaultText&&null==b.defaultIcon)g.Sr(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.Sr(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.Pz(b.defaultText),g.rc(c)||(a.buttonText=c,this.l.setAttribute("aria-label",c))):g.Pl(this.xa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.l.hasAttribute("aria-label")||this.X.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=LL(b.defaultIcon),this.Sa("untoggledIconTemplateSpec",c),b.toggledIcon?(this.K=!0,c=LL(b.toggledIcon),this.Sa("toggledIconTemplateSpec",c)):(g.Pl(this.G,!0),g.Pl(this.C,!1)),g.Pl(this.l,!1)):g.Pl(this.X,!1);g.Rb(a)||this.update(a);b.isToggled&& (g.K(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));VL(this);this.N(this.element,"change",this.xE);this.show()}}; g.k.onClick=function(a){0a&&g.Sr(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Pa&&g.K(this.u.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.xa=null==a||0===a?this.l.Ys():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.B.init(PI("ad-text"),d,c);(d=this.api.getVideoData(1))&& d.Aj&&b.thumbnail?this.G.init(PI("ad-image"),b.thumbnail,c):this.K.hide()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.u.hide();this.B.hide();this.G.hide();eM(this);cM.prototype.hide.call(this)}; g.k.show=function(){dM(this);this.u.show();this.B.show();this.G.show();cM.prototype.show.call(this)}; g.k.pp=function(){this.hide()}; g.k.fn=function(){if(null!=this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Da&&a>=this.xa?(g.S(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")||this.X.hide(),this.Da=!0,this.W("i")):this.B&&this.B.isTemplated()&&(a=Math.max(0,Math.ceil((this.xa-a)/1E3)),a!=this.Ga&&(bM(this.B,{TIME_REMAINING:String(a)}),this.Ga=a)))}};g.v(jM,cM);g.k=jM.prototype; g.k.init=function(a,b,c){cM.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.actionButton&&b.actionButton.buttonRenderer&&b.actionButton.buttonRenderer.navigationEndpoint){a=this.api.getVideoData(2);if(null!=a)if(b.image&&b.image.thumbnail){var d=b.image.thumbnail.thumbnails;null!=d&&0=this.xa&&(eM(this),g.Oq(this.element,"ytp-flyout-cta-inactive"))}}; g.k.pp=function(){this.clear()}; g.k.clear=function(){this.hide()}; g.k.show=function(){this.u&&this.u.show();cM.prototype.show.call(this)}; g.k.hide=function(){this.u&&this.u.hide();cM.prototype.hide.call(this)};g.v(kM,yL);g.k=kM.prototype;g.k.init=function(a,b,c){var d=this;yL.prototype.init.call(this,a,b,c);this.l=b;this.l.rectangle&&(nra(this,c),this.C.show(100),this.show(),(this.l&&this.l.impressionCommands||[]).forEach(function(e){return d.Ta.executeCommand(e,d.macros)}))}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.B.hide();this.u.hide();yL.prototype.hide.call(this)}; g.k.show=function(){this.B.show();this.u.show();yL.prototype.show.call(this)}; g.k.zE=function(){Qq(this.element,"ytp-ad-instream-user-sentiment-selected");this.l.postMessageAction&&this.api.Na("onYtShowToast",this.l.postMessageAction);this.C.hide()}; g.k.onClick=function(a){0=this.G&&oM(this,!0):1E3*this.l.getProgressState().current>=this.G&&oM(this,!0)};g.v(pM,ML);pM.prototype.init=function(a,b,c){ML.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.Pz(b.text),a=!g.rc(a));a?null==b.navigationEndpoint?Ur(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?Ur(Error("Button style was not a link-style type in renderer,")):this.show():Ur(Error("No visit advertiser text was present in the renderer."))};g.v(qM,yL);qM.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);a=b.text;g.rc(zL(a))?Ur(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 aM(this.api,this.Ta,this.layoutId,this.i),a.init(PI("simple-ad-badge"),b,c),a.ya(this.element),g.F(this,a)),this.show())}; qM.prototype.clear=function(){this.hide()};g.v(rM,g.Q);g.k=rM.prototype;g.k.Ys=function(){return this.durationMs}; g.k.stop=function(){this.i&&this.Zd.fc(this.i)}; g.k.Rb=function(a){this.l={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.W("h")}; g.k.getProgressState=function(){return this.l}; g.k.Dc=function(a){g.UI(a,2)&&this.W("g")};g.v(sM,g.Q);g.k=sM.prototype;g.k.Ys=function(){return this.durationMs}; g.k.start=function(){this.u||(this.u=!0,this.l.start(),this.B=Date.now())}; g.k.stop=function(){this.u&&(this.u=!1,this.l.stop())}; g.k.Rb=function(){if(this.G){var a=Date.now(),b=a-this.B;this.B=a;this.i+=b}else this.i+=100;a=!1;this.i>this.durationMs&&(this.i=this.durationMs,this.l.stop(),a=!0);this.C={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.i/1E3};this.Ta&&this.Ta.Rb(this.C.current);this.W("h");a&&this.W("g")}; g.k.getProgressState=function(){return this.C};g.v(vM,cM);g.k=vM.prototype;g.k.init=function(a,b,c){var d;cM.prototype.init.call(this,a,b,c);if(null===(d=null===b||void 0===b?void 0:b.templatedCountdown)||void 0===d?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){Ur(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.u=new aM(this.api,this.Ta,this.layoutId,this.i);this.u.init(PI("ad-text"),a,{});this.u.ya(this.element);g.F(this,this.u)}this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){eM(this);cM.prototype.hide.call(this)}; g.k.pp=function(){this.hide()}; g.k.fn=function(){if(null!=this.l){var a=this.l.getProgressState();if(null!=a&&null!=a.current&&this.u){a=(this.l instanceof rM?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.l instanceof sM?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.tM(a);bM(this.u,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}}; g.k.show=function(){dM(this);cM.prototype.show.call(this)};g.v(wM,aM);wM.prototype.onClick=function(a){aM.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.v(BM,g.xL);BM.prototype.Rb=function(){var a=this.l.getProgressState();this.Ec.style.width=100*AM(new xM(a.seekableStart,a.seekableEnd),a.current,0)+"%"}; BM.prototype.u=function(){g.UF(this.api.T())||(2===this.api.getPresentingPlayerType()?-1===this.i&&(this.show(),this.i=this.l.subscribe("h",this.Rb,this),this.Rb()):-1!==this.i&&(this.hide(),this.l.Tf(this.i),this.i=-1))};g.v(CM,yL); CM.prototype.init=function(a,b,c,d){yL.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new nM(this.api,this.Ta,this.layoutId,this.i,this.l,this.G),c.ya(this.C),c.init(PI("skip-button"),a.skipAdRenderer,this.macros),g.F(this,c)):a.adPreviewRenderer&&(c=new hM(this.api,this.Ta,this.layoutId,this.i,this.l,!1),c.ya(this.C),c.init(PI("ad-preview"),a.adPreviewRenderer,this.macros),iM(c),g.F(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c= new kM(this.api,this.Ta,this.layoutId,this.i),c.ya(this.X),c.init(PI("instream-user-sentiment"),a,this.macros),g.F(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new jM(this.api,this.Ta,this.layoutId,this.i,this.l),g.F(this,c),c.ya(this.K),c.init(PI("flyout-cta"),a.flyoutCtaRenderer,this.macros)));d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),c=new qM(this.api,this.Ta,this.layoutId, this.i,!0),g.F(this,c),c.ya(this.u),c.init(PI("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 vM(this.api,this.Ta,this.layoutId,this.i,this.l,d),g.F(this,d),d.ya(this.u),d.init(PI("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new $L(this.api,this.Ta,this.layoutId, this.i,this.element),g.F(this,a),a.ya(this.u),a.init(PI("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=rra(this)&&this.B?this.B:this.u))&&(a=new pM(this.api,this.Ta,this.layoutId,this.i),g.F(this,a),a.ya(d),a.init(PI("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.T())&&!RF(b)&&"3"==b.controlsType&&(b=new BM(this.api,this.l),b.ya(this.xa),g.F(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()}; CM.prototype.clear=function(){this.hide()};g.Ha("yt.pubsub.publish",g.yu,void 0);var R2={},ura=(R2.WEB_UNPLUGGED="^unplugged/",R2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",R2.WEB_UNPLUGGED_OPS="^unplugged/",R2.WEB_UNPLUGGED_PUBLIC="^unplugged/",R2.WEB_CREATOR="^creator/",R2.WEB_KIDS="^kids/",R2.WEB_EXPERIMENTS="^experiments/",R2.WEB_MUSIC="^music/",R2.WEB_REMIX="^music/",R2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",R2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",R2);HM.prototype.C=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?Gw:c;var d={context:VK(a.clickTrackingParams,!1,this.B)};var e=this.i(a);if(e){this.l(d,e,b);var f,h;b=g.EM(this.u());(a=null===(h=null===(f=a.commandMetadata)||void 0===f?void 0:f.webCommandMetadata)||void 0===h?void 0:h.apiUrl)&&(b=a);f=wra(FM(b),void 0);d={input:f,tp:GM(f),Et:d,config:Object.assign({},void 0)};d.config.Tn?d.config.Tn.identity=c:d.config.Tn={identity:c};return d}g.Tx(new g.Gv("Error: Failed to create Request from Command.", a))}; fa.Object.defineProperties(HM.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.v(IM,HM);IM.prototype.C=function(){return{input:"/getDatasyncIdsEndpoint",tp:GM("/getDatasyncIdsEndpoint","GET"),Et:{}}}; IM.prototype.u=function(){return[]}; IM.prototype.i=function(){}; IM.prototype.l=function(){};var DKa={},xra=(DKa.GET_DATASYNC_IDS=IM,DKa);g.v(LM,HM);LM.prototype.u=function(){return cKa}; LM.prototype.i=function(a){return a.subscribeEndpoint}; LM.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)}; fa.Object.defineProperties(LM.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(MM,HM);MM.prototype.u=function(){return dKa}; MM.prototype.i=function(a){return a.unsubscribeEndpoint}; MM.prototype.l=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)}; fa.Object.defineProperties(MM.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(NM,HM);NM.prototype.u=function(){return $Ja}; NM.prototype.i=function(a){return a.feedbackEndpoint}; NM.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))}; fa.Object.defineProperties(NM.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(OM,HM);OM.prototype.u=function(){return aKa}; OM.prototype.i=function(a){return a.modifyChannelNotificationPreferenceEndpoint}; OM.prototype.l=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.v(PM,HM);PM.prototype.u=function(){return bKa}; PM.prototype.i=function(a){return a.playlistEditEndpoint}; PM.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(QM,HM);QM.prototype.u=function(){return ZJa}; QM.prototype.i=function(a){return a.webPlayerShareEntityServiceEndpoint}; QM.prototype.l=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};RM.prototype.fetch=function(a,b){var c=this,d;if(null===(d=this.l)||void 0===d?0:d.B(a,b))return Promise.resolve(this.l.u(a,b).catch(function(f){g.Ux(f)})); if(this.i){var e=fi(g.hi(5,yi(a,"key")))||"/UNKNOWN_PATH";this.i.start(e)}e=new window.Request(a,b);return Promise.resolve(fetch(e).then(function(f){return c.handleResponse(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.Ux(f)}))}; RM.prototype.handleResponse=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.Ux(new g.Gv("Error: API fetch failed",a.status,a.url,c));return Object.assign(Object.assign({},c),{errorMetadata:{status:a.status}})})); return b};var SM;var Era=[],UM=!1;zv.prototype.wd=function(a){this.handleError(a)}; zv.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Nr("idb_data_corrupted_killswitch")||this.i("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.i("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Nr("idb_is_supported_completed_killswitch")||this.i("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":Kra(this,b);break;case "TRANSACTION_ENDED":Math.random()<=Or("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)}};VM.prototype.initialize=function(a,b,c,d){d=void 0===d?!1:d;var e,f;if(a.program){var h=null!==(e=a.interpreterScript)&&void 0!==e?e:null,l=null!==(f=a.interpreterUrl)&&void 0!==f?f:null;if(a.interpreterSafeScript){h=a.interpreterSafeScript.privateDoNotAccessOrElseSafeScriptWrappedValue||"";var m=g.fc("From proto message. b/166824318");ec(m);ec(m);h=(m=ac())?m.createScript(h):h;h=(new hc(h,gc)).toString()}a.interpreterSafeUrl&&(l=id(g.fc("From proto message. b/166824318"),a.interpreterSafeUrl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue|| "").toString());Mra(this,h,l,a.program,b,c,d)}else g.Ux(Error("Cannot initialize botguard without program"))}; VM.prototype.Ud=function(){return!!this.i}; VM.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}; VM.prototype.dispose=function(){this.i=null};var WM=new VM,XM=0;var S2={},EKa=(S2["api.invalidparam"]=2,S2.auth=150,S2["drm.auth"]=150,S2["heartbeat.net"]=150,S2["heartbeat.servererror"]=150,S2["heartbeat.stop"]=150,S2["html5.unsupportedads"]=5,S2["fmt.noneavailable"]=5,S2["fmt.decode"]=5,S2["fmt.unplayable"]=5,S2["html5.missingapi"]=5,S2["html5.unsupportedlive"]=5,S2["drm.unavailable"]=5,S2);g.v(aN,g.E);g.k=aN.prototype; g.k.handleExternalCall=function(a,b,c){var d=this.C[a],e=this.J[a],f=d;if(e)if(c&&vz(c,fKa,gKa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.T();d.Gj&&!this.U.has(a)&&(this.U.add(a),g.Bv("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.Ux(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&&vz(b,fKa,gKa))}; g.k.getBandwidthEstimate=function(){return xF(this.app.T().schedule)}; g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.W(this.app);b&&(a={gpu:(0,g.wW)(),d:a},b.handleError(new g.mE("feedback",!1,a)))}; g.k.getApiInterface=function(){return this.K.slice()}; g.k.getInternalApiInterface=function(){return g.Mb(this.l)}; g.k.YN=function(a,b){if("string"===typeof b){var c=function(d){for(var e=[],f=0;f=c.qb.length)c=!1;else{for(var d=g.q(c.qb),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof PG)){c=!1;break a}var f=a.Jc.getId();e.u&&(e.u.i=f,e.l=null)}c.zj=a;c=!0}c&& (b.W("internalaudioformatchange",b.videoData,!0),GX(b)&&b.Ja("hlsaudio",a.id))}}}; g.k.IO=function(){return this.getAvailableAudioTracks()}; g.k.getAvailableAudioTracks=function(){return g.W(this.app,this.playerType).getAvailableAudioTracks()}; g.k.getMaxPlaybackQuality=function(){var a=g.W(this.app,this.playerType);return a&&a.getVideoData().l?WA(a.U?nBa(a.pg,a.U,YX(a)):qH):"unknown"}; g.k.getUserPlaybackQualityPreference=function(){var a=g.W(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"}; g.k.getSubtitlesUserSettings=function(){var a=g.HN(this.app.rb());return a?a.VO():null}; g.k.resetSubtitlesUserSettings=function(){g.HN(this.app.rb()).dU()}; 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.Za().setGlobalCrop(a)}; g.k.getVisibilityState=function(){var a=this.Ce();return this.app.getVisibilityState(this.zf(),this.isFullscreen()||RF(this.app.T()),a,this.isInline(),this.app.Lq(),this.app.Jq())}; g.k.isMutedByMutedAutoplay=function(){return this.app.Rt}; g.k.isInline=function(){return this.app.isInline()}; g.k.setInternalSize=function(a,b){this.app.Za().setInternalSize(new g.Sf(a,b))}; g.k.Lc=function(){var a=g.W(this.app,void 0);return a?a.Lc():0}; g.k.Ce=function(){return this.app.Ce()}; g.k.zf=function(){var a=g.W(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.Z("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.fb().videoId||(a.index=b.index)):tY(this.app,{list:a.list,index:a.index,playlist_length:d.length});wN(this.app.getPlaylist(),a);this.Na("onPlaylistUpdate")}else this.app.updatePlaylist()}; g.k.updateVideoData=function(a,b){var c=g.W(this.app,this.playerType||1);c&&g.uH(c.getVideoData(),a,b)}; g.k.updateEnvironmentData=function(a){$F(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.QN(this.app.rb());d&&d.hh()&&d.setCardsVisible(a,b,c)}; g.k.productsInVideoVisibilityUpdated=function(a){this.W("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.Za().getVideoAspectRatio()}; g.k.getPreferredQuality=function(){var a=g.W(this.app);return a?a.getPreferredQuality():"unknown"}; g.k.setPlaybackQualityRange=function(a,b){var c=g.W(this.app,this.playerType);c&&(a=TA(a,b||a,!0,"m"),Cwa(c,a,!0))}; g.k.onAdUxClicked=function(a,b){this.W("aduxclicked",a,b)}; g.k.W=function(a,b){for(var c=[],d=1;d([^<>]+)<\/a>/;g.v(hO,g.qN); hO.prototype.kb=function(){var a=this;this.Tg();var b=this.I.getVideoData();if(b.isValid()){var c=this.I.T(),d=[],e="";if(!c.K){var f=Rsa(this);g.S(c.experiments,"enable_web_media_session_metadata_fix")&&g.VF(c)&&f?(d=Ssa(f.thumbnailDetails),f.album&&(e=g.Pz(f.album))):d=[{src:b.Ke("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.lN(this.I)&&(this.i.delete("nexttrack"),this.i.delete("previoustrack"),b= function(){a.I.nextVideo()},c=function(){a.I.previousVideo()}); gO(this,"nexttrack",b);gO(this,"previoustrack",c)}}; hO.prototype.Tg=function(){var a=this.I.sb();a=a.isError()?"none":g.HK(a)?"playing":"paused";this.mediaSession.playbackState=a}; hO.prototype.ra=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.q(this.i),b=a.next();!b.done;b=a.next())gO(this,b.value,null);g.qN.prototype.ra.call(this)};g.v(iO,g.V);g.k=iO.prototype;g.k.onClick=function(a){g.YN(a,this.I,!0);this.I.Fb(this.element)}; g.k.kb=function(a,b){Tsa(this,b);this.hd&&Usa(this,this.hd)}; g.k.Dc=function(a){var b=this.I.getVideoData();this.videoId!==b.videoId&&Tsa(this,b);this.i&&Usa(this,a.state);this.hd=a.state}; g.k.Uc=function(){this.u.show();this.I.W("paidcontentoverlayvisibilitychange",!0);this.I.ib(this.element,!0)}; g.k.Ab=function(){this.u.hide();this.I.W("paidcontentoverlayvisibilitychange",!1);this.I.ib(this.element,!1)};g.v(jO,g.V);jO.prototype.hide=function(){this.i.stop();this.message.style.display="none";g.V.prototype.hide.call(this)}; jO.prototype.l=function(a){Vsa(a.state)?this.i.start():this.hide()}; jO.prototype.u=function(){this.message.style.display="block"};g.v(g.kO,g.xL);g.k=g.kO.prototype;g.k.show=function(){var a=this.Pf();g.xL.prototype.show.call(this);this.xa&&(this.J.N(window,"blur",this.Ab),this.J.N(document,"click",this.JL));a||this.W("show",!0)}; g.k.hide=function(){var a=this.Pf();g.xL.prototype.hide.call(this);Wsa(this);a&&this.W("show",!1)}; g.k.Uc=function(a,b){this.l=a;this.U.show();b?(this.K||(this.K=this.J.N(this.I,"appresize",this.WF)),this.WF()):this.K&&(this.J.fc(this.K),this.K=void 0)}; g.k.WF=function(){var a=g.eN(this.I);this.l&&a.mp(this.element,this.l)}; g.k.Ab=function(){var a=this.Pf();Wsa(this);this.U.hide();a&&this.W("show",!1)}; g.k.JL=function(a){var b=Rt(a);b&&(g.tg(this.element,b)||this.l&&g.tg(this.l,b)||!g.uM(a))||this.Ab()}; g.k.Pf=function(){return this.vb&&4!==this.U.state};g.v(mO,g.kO);mO.prototype.au=function(a){this.B&&(a?(Xsa(this),this.Uc()):(this.i&&this.Fb(),this.Ab()))}; mO.prototype.Tg=function(a){this.api.isMutedByMutedAutoplay()&&g.UI(a,2)&&this.Ab()}; mO.prototype.onClick=function(){this.api.unMute();this.Fb()}; mO.prototype.Fb=function(){this.u||(this.u=!0,this.api.Fb(this.element))};g.v(g.oO,g.qN);g.k=g.oO.prototype;g.k.init=function(){var a=this.api.sb();this.Lb(a);this.Sl();this.tb()}; g.k.kb=function(a,b){this.QB!==b.videoId&&(this.QB=b.videoId,a=this.fd,a.ma=b&&0=dI&&this.api.sb().isCued()?nO(this):this.Xv.start(),this.FD=this.N(this.api.Za(),"touchmove",this.OS,void 0,!0)):this.Xv.stop();!Zsa(this)||!rO(this,a)||this.api.T().J&&this.api.T().Z("embeds_enable_mobile_dtts")|| nO(this);var b=this.Cy.Pf();if(JF&&$sa(this,a))b&&g.Ut(a);else if(this.fd.l||pO(this,Rt(a))||this.Cy.Pf()||(this.api.sb().isCued(),g.Ut(a)),this.wy=!0,g.K(this.api.getRootNode(),"ytp-touch-mode"),this.fd.zk(),g.S(this.api.T().experiments,"player_doubletap_to_seek")||g.S(this.api.T().experiments,"embeds_enable_mobile_dtts")&&this.api.T().J)if(b=this.api.sb(),!(!this.api.Xe()||g.U(b,2)&&iN(this.api)||g.U(b,64))){b=Date.now()-this.dI;this.Ut+=1;if(350>=b){this.Ks=!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.Ut-1);02*b&&d<3*b&&(this.yu(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.Ut(a)}else this.api.T().J&&this.api.T().Z("embeds_enable_mobile_dtts")&&qO&&rO(this,a)&&g.Ut(a);this.dI=Date.now();this.ZJ.start()}}; g.k.JS=function(a){if(!$sa(this,a)){if(!Zsa(this)&&rO(this,a)&&!this.Xv.isActive()){if(g.FG(this.api.T())&&this.api.sb().isCued()){zA("warm");kA();yA();Zz(!1);Kr("TIMING_AFT_KEYS",[]);g.DA("yt_lt","warm");Kr("TIMING_ACTION","");Kr("TIMING_WAIT",[]);delete g.O("TIMING_INFO",{}).yt_lt;AA("warm",void 0);var b=["pbs","pbu"];jA("").info.actionType="watch";b&&Kr("TIMING_AFT_KEYS",b);Kr("TIMING_ACTION","watch");b=g.O("TIMING_INFO",{});for(var c in b)b.hasOwnProperty(c)&&g.DA(c,b[c]);g.DA("is_nav",1);(c= g.Ix())&&g.DA("csn",c);(c=g.O("PREVIOUS_ACTION",void 0))&&!pA()&&g.DA("pa",c);c=dA();b=g.O("CLIENT_PROTOCOL");var d=g.O("CLIENT_TRANSPORT");b&&g.DA("p",b);d&&g.DA("t",d);g.DA("yt_vis",LA());if("cold"===c.yt_lt){g.DA("yt_lt","cold");b=Xz();if(d=Yz())EA("srt",b.responseStart),1!==c.prerender&&AA("n",d);c=$ia();0=Yz()&&0this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)}; g.k.Sw=function(){return this.Ye()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)}; g.k.Th=function(){return this.wy}; g.k.Gm=function(){return null}; g.k.Ri=function(){var a=this.api.Za().getPlayerSize();return new g.pl(0,0,a.width,a.height)}; g.k.handleGlobalKeyDown=function(){return!1}; g.k.handleGlobalKeyUp=function(){return!1}; g.k.mp=function(){}; g.k.showControls=function(a){void 0!==a&&this.api.Za().Eu(a)}; g.k.zk=function(){}; g.k.oH=function(){return null};g.v(sO,g.Q);g.k=sO.prototype;g.k.Ys=function(){return 1E3*this.api.getDuration(this.sj,!1)}; g.k.stop=function(){this.i&&this.Zd.fc(this.i)}; g.k.Rb=function(){var a=this.api.getProgressState(this.sj);this.l={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:g.S(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.sj,!1)};this.W("h")}; g.k.getProgressState=function(){return this.l}; g.k.Dc=function(a){g.UI(a,2)&&this.W("g")};g.v(tO,g.V);tO.prototype.onClick=function(){this.I.Na("BACK_CLICKED")};g.v(g.uO,g.V);g.uO.prototype.show=function(){g.V.prototype.show.call(this);g.Eq(this.i)}; g.uO.prototype.hide=function(){this.l.stop();g.V.prototype.hide.call(this)}; g.uO.prototype.Cp=function(a){a?g.U(this.I.sb(),64)||vO(this,Tqa(),"Play"):(a=this.I.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?vO(this,Vqa(),"Stop live playback"):vO(this,Rqa(),"Pause"))};g.v(yO,g.V);g.k=yO.prototype;g.k.Uc=function(){this.I.T().Z("player_new_info_card_format")&&g.Mq(this.I.getRootNode(),"ytp-cards-teaser-shown")&&!g.MF(this.I.T())||(this.l.show(),g.yu("iv-button-shown"))}; g.k.Ab=function(){g.yu("iv-button-hidden");this.l.hide()}; g.k.Pf=function(){return this.vb&&4!==this.l.state}; g.k.ra=function(){this.i&&this.i();g.V.prototype.ra.call(this)}; g.k.AR=function(){g.yu("iv-button-mouseover")}; g.k.onClicked=function(a){this.I.hh();var b=g.Mq(this.I.getRootNode(),"ytp-cards-teaser-shown");g.yu("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.I.setCardsVisible(!this.I.Nj(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.v(AO,g.V);g.k=AO.prototype;g.k.QK=function(){this.I.hh()&&this.I.Nj()&&this.Pf()&&this.Ab()}; g.k.vD=function(){this.Ab();g.yu("iv-teaser-clicked",null!=this.i);this.I.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}; g.k.KL=function(){g.yu("iv-teaser-mouseover");this.i&&this.i.stop()}; g.k.kT=function(a){g.S(this.I.T().experiments,"player_new_info_card_format")&&!g.MF(this.I.T())&&this.Nh.Ab();this.i||!a||this.I.Nj()||this.l&&this.l.isActive()||(this.Uc(a),g.yu("iv-teaser-shown"))}; g.k.Uc=function(a){this.Sa("text",a.teaserText);this.element.setAttribute("dir",g.Xq(a.teaserText));this.B.show();this.l=new g.J(function(){g.K(this.I.getRootNode(),"ytp-cards-teaser-shown");this.I.Z("player_new_info_card_format")&&!g.MF(this.I.T())&&this.Nh.Ab();this.SD()},0,this); this.l.start();xO(this.Nh,!1);this.i=new g.J(this.Ab,580+a.durationMs,this);this.i.start();this.C.push(this.Ra("mouseover",this.CE,this));this.C.push(this.Ra("mouseout",this.BE,this))}; g.k.SD=function(){if(!g.S(this.I.T().experiments,"player_new_info_card_format")&&g.MF(this.I.T())&&this.vb){var a=this.Nh.element.offsetLeft,b=g.cg("ytp-cards-button-icon"),c=this.I.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Nh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}}; g.k.jO=function(){g.MF(this.I.T())&&this.U.Ye()&&this.vb&&this.K.start()}; g.k.CE=function(){this.G.stop();this.i&&this.i.isActive()&&this.J.start()}; g.k.BE=function(){this.J.stop();this.i&&!this.i.isActive()&&this.G.start()}; g.k.SR=function(){this.i&&this.i.stop()}; g.k.RR=function(){this.Ab()}; g.k.Zh=function(){this.Ab()}; g.k.Ab=function(){!this.i||this.u&&this.u.isActive()||(g.yu("iv-teaser-hidden"),this.B.hide(),g.Oq(this.I.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.fc(b.value);this.C=[];this.i&&(this.i.dispose(),this.i=null);xO(this.Nh,!0)},330,this),this.u.start())}; g.k.Pf=function(){return this.vb&&4!==this.B.state}; g.k.ra=function(){var a=this.I.getRootNode();a&&g.Oq(a,"ytp-cards-teaser-shown");g.ff(this.l,this.u,this.i);g.V.prototype.ra.call(this)};var cta=new Set("embed_config endscreen_ad_tracking home_group_info ic_track player_request watch_next_request".split(" "));var T2={},DO=(T2.BUTTON="ytp-button",T2.TITLE_NOTIFICATIONS="ytp-title-notifications",T2.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",T2.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",T2.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",T2);g.v(EO,g.V);EO.prototype.onClick=function(){this.api.Fb(this.element);var a=!this.i;this.Sa("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.Sa("pressed",a);fta(this,a)};g.v(g.GO,g.V);g.GO.prototype.l=function(){g.K(this.element,"ytp-sb-subscribed")}; g.GO.prototype.u=function(){g.Oq(this.element,"ytp-sb-subscribed")};g.v(HO,g.V);g.k=HO.prototype;g.k.WC=function(){jta(this);this.channel.classList.remove("ytp-title-expanded")}; g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; g.k.YA=function(){if(hta(this)&&!this.isExpanded()){this.Sa("flyoutUnfocusable","false");this.Sa("channelTitleFocusable","0");this.u&&this.u.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.ib(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.l&&a.uh&&a.subscribed&&(this.l.show(),this.api.ib(this.l.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; g.k.AA=function(){this.Sa("flyoutUnfocusable","true");this.Sa("channelTitleFocusable","-1");this.u&&this.u.start()}; g.k.Ma=function(){var a=this.api.getVideoData(),b=this.api.T(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Hb&&!!a.rg:g.MF(b)&&(c=!!a.videoId&&!!a.Hb&&!!a.rg&&!(a.C&&b.pfpChazalUi));var d=g.MG(this.api.T())+a.Hb;g.MF(this.api.T())&&(d=g.ti(d,g.CO("emb_ch_name_ex")));var e=a.Hb,f=a.rg;b=g.MF(b)?a.Tk:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;c?(e=g.MG(this.api.T())+e,this.J!==f&&(this.i.style.backgroundImage="url("+f+")",this.J=f),this.Sa("channelLink", e),this.Sa("channelLogoLabel",g.eJ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b})),g.K(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Oq(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.ib(this.i,c&&this.Y);this.subscribeButton&&(this.subscribeButton.channelId=a.Fh);this.Sa("expandedTitle",a.Tk);this.Sa("channelTitleLink",d);this.Sa("expandedSubtitle",a.expandedSubtitle)};g.v(g.JO,g.xL);g.JO.prototype.Sa=function(a,b){g.xL.prototype.Sa.call(this,a,b);this.W("size-change")};g.v(MO,g.xL);MO.prototype.NI=function(){this.W("size-change")}; MO.prototype.focus=function(){this.content.focus()}; MO.prototype.RQ=function(){this.W("back")};g.v(g.NO,MO);g.NO.prototype.yc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.xb(this.items,a,kta);if(0<=b)return;b=~b;g.ub(this.items,b,0,a);g.qg(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.vC,this);this.menuItems.W("size-change")}; g.NO.prototype.Gf=function(a){a.unsubscribe("size-change",this.vC,this);this.Ha()||(g.ob(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.W("size-change"))}; g.NO.prototype.vC=function(){this.menuItems.W("size-change")}; g.NO.prototype.focus=function(){for(var a=0,b=0;bb.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=a,e=b,f=5,65==(f&65)&&(h.x=d.right)&&(f&=-2),132==(f&132)&&(h.y=d.bottom)&& (f&=-5),h.xd.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.yd.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.pl(0,0,0,0);d.left= a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Gl(this.element,new g.Qf(d.left,d.top));g.ox(this.u);this.u.N(document,"contextmenu",this.nR);this.u.N(this.I,"fullscreentoggled",this.Me);this.u.N(this.I,"pageTransition",this.ML)}; g.k.nR=function(a){if(!g.Vt(a)){var b=Rt(a);g.tg(this.element,b)||this.Ab();this.I.T().disableNativeContextMenu&&g.Ut(a)}}; g.k.Me=function(){this.Ab();qta(this)}; g.k.ML=function(){this.Ab()};g.v(g.ZO,g.V);g.ZO.prototype.onClick=function(){return g.D(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,sta(c,h),2);l.l&&rta(c);c.api.Fb(c.element);g.sa(l)})})}; g.ZO.prototype.Ma=function(){var a=this.api.T(),b=this.api.getVideoData();this.Sa("icon",{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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.Sa("title-attr","Copy link");var c=this.api.Za().getPlayerSize().width;this.visible= !!b.videoId&&c>=this.l&&b.Bj&&!(b.C&&a.pfpChazalUi);g.N(this.element,"ytp-copylink-button-visible",this.visible);g.wL(this,this.visible);aP(this.tooltip);this.api.ib(this.element,this.visible&&this.Y)}; g.ZO.prototype.Ub=function(a){g.V.prototype.Ub.call(this,a);this.api.ib(this.element,this.visible&&a)}; g.ZO.prototype.ra=function(){g.V.prototype.ra.call(this);g.Oq(this.element,"ytp-copylink-button-visible")};g.v(bP,g.V);bP.prototype.show=function(){g.V.prototype.show.call(this);g.Eq(this.l)}; bP.prototype.hide=function(){this.u.stop();g.Oq(this.element,"ytp-chapter-seek");g.Oq(this.element,"ytp-time-seeking");g.V.prototype.hide.call(this)}; bP.prototype.yu=function(a,b,c,d){var e=-1===a?this.C:this.B;e&&this.I.Fb(e);g.Gq(this.l);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.I.Za().getPlayerSize().height;e=this.I.Za().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.Ba("ytp-doubletap-ripple");l.style.width=h+ "px";l.style.height=h+"px";1===a?(a=this.I.Za().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.Ba("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");tta(this,d)};var GKa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(GKa).reduce(function(a,b){a[GKa[b]]=b;return a},{}); var HKa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(HKa).reduce(function(a,b){a[HKa[b]]=b;return a},{}); var IKa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(IKa).reduce(function(a,b){a[IKa[b]]=b;return a},{});var U2,JKa;U2=[{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"}];JKa=[{option:0,text:eP(0)},{option:.25,text:eP(.25)},{option:.5,text:eP(.5)},{option:.75,text:eP(.75)},{option:1,text:eP(1)}]; g.hP=[{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:U2},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:eP(.5)},{option:-1,text:eP(.75)},{option:0,text:eP(1)},{option:1,text:eP(1.5)},{option:2,text:eP(2)}, {option:3,text:eP(3)},{option:4,text:eP(4)}]},{option:"background",text:"Background color",options:U2},{option:"backgroundOpacity",text:"Background opacity",options:JKa},{option:"windowColor",text:"Window color",options:U2},{option:"windowOpacity",text:"Window opacity",options:JKa},{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:eP(.25)},{option:.5,text:eP(.5)},{option:.75,text:eP(.75)},{option:1,text:eP(1)}]}];g.v(g.gP,g.qN);g.k=g.gP.prototype; g.k.wH=function(a){var b=!1,c=g.Wt(a),d=Rt(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.T();g.Vt(a)?(e=!1,h=!0):l.Id&&(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);wO(this.jc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);wO(this.jc,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Xe()&&(this.api.startSeekCsiAction(), this.api.seekTo(0),h=f=!0);break;case 35:this.api.Xe()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&this.fD(!0);(b||h)&&this.fd.zk();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.Ut(a);l.u&&(a={keyCode:g.Wt(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Vt(a),fullscreen:this.api.isFullscreen()},this.api.Na("onKeyPress",a))}; g.k.xH=function(a){this.handleGlobalKeyUp(g.Wt(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)}; g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.mN(this.api.rb());c&&(c=c.xn)&&c.vb&&(c.sH(a),b=!0);9===a&&(this.fD(!0),b=!0);return b}; g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.T();if(e.Id)return h;var l=g.mN(this.api.rb());if(l&&(l=l.xn)&&l.vb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.rH(a)}e.C||h||(h=f||String.fromCharCode(a).toLowerCase(),this.l+=h,0==="awesome".indexOf(this.l)?(h=!0,7===this.l.length&&Qq(this.api.getRootNode(),"ytp-color-party")):(this.l=h,h=0==="awesome".indexOf(this.l)));if(!h){f=(f=this.api.getVideoData())?f.Jk:[];l=ZT?d:c;switch(a){case 80:b&& !e.ma&&(vO(this.jc,Uqa(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.ma&&(vO(this.jc,GL(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.Xe()&&(this.api.startSeekCsiAction(),e.Z("web_player_seek_chapters_by_shortcut")&&this.i?cP(this.i,-1,10):vO(this.jc,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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.Xe()&&(this.api.startSeekCsiAction(),e.Z("web_player_seek_chapters_by_shortcut")&&this.i?cP(this.i,1,10):vO(this.jc,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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.Xe()&&(this.api.startSeekCsiAction(),l&&e.Z("web_player_seek_chapters_by_shortcut")?(l=vta(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(dP(this.i,-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.Z("web_player_seek_chapters_by_shortcut")&&this.i?cP(this.i,-1,5):vO(this.jc,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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.Xe()&&(this.api.startSeekCsiAction(),l&&e.Z("web_player_seek_chapters_by_shortcut")?(l=uta(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(dP(this.i,1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.Z("web_player_seek_chapters_by_shortcut")&&null!=this.i?cP(this.i,1,5):vO(this.jc,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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(),wO(this.jc,this.api.getVolume(),!1)):(this.api.mute(),wO(this.jc,0,!0));h=!0;break;case 32:case 75:e.ma||(h=!g.HK(this.api.sb()),this.jc.Cp(h),h?this.api.playVideo():this.api.pauseVideo(),h=!0);break;case 190:b?e.Kb&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),bta(this.jc,!1),h=!0):this.api.Xe()&&(xta(this,1),h=!0);break;case 188:b?e.Kb&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h- .25,!0),bta(this.jc,!0),h=!0):this.api.Xe()&&(xta(this,-1),h=!0);break;case 70:Nsa(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.HN(this.api.rb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),vO(this.jc,Lqa(),!e||e&&!e.displayName?"Subtitles/closed captions on":"Subtitles/closed captions off"),h=!0);break;case 79:iP(this,"textOpacity");break;case 87:iP(this,"windowOpacity");break;case 187:case 61:iP(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:iP(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.Xe()&&(this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.fd.zk()}return h}; g.k.fD=function(a){g.N(this.api.getRootNode(),"ytp-probably-keyboard-focus",a);g.N(this.contextMenu.element,"ytp-probably-keyboard-focus",a)}; g.k.ra=function(){g.Gq(this.u);g.qN.prototype.ra.call(this)};g.v(jP,g.V);jP.prototype.Ma=function(){var a=g.MF(this.I.T())&&g.lN(this.I)&&g.U(this.I.sb(),128),b=this.I.getPlayerSize();this.visible=this.i.Ye()&&!a&&240<=b.width&&!(this.I.getVideoData().C&&this.I.T().pfpChazalUi);g.N(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&aP(this.tooltip);this.I.ib(this.element,this.visible&&this.Y)}; jP.prototype.Ub=function(a){g.V.prototype.Ub.call(this,a);this.I.ib(this.element,this.visible&&a)}; jP.prototype.ra=function(){g.V.prototype.ra.call(this);g.Oq(this.element,"ytp-overflow-button-visible")};g.v(kP,g.kO);g.k=kP.prototype;g.k.OL=function(a){a=Rt(a);g.tg(this.element,a)&&(g.tg(this.i,a)||g.tg(this.closeButton,a)||lO(this))}; g.k.Ab=function(){g.kO.prototype.Ab.call(this);this.tooltip.Ni(this.element)}; g.k.show=function(){this.vb&&this.I.W("OVERFLOW_PANEL_OPENED");g.kO.prototype.show.call(this);this.element.setAttribute("aria-modal","true");yta(this,!0)}; g.k.hide=function(){g.kO.prototype.hide.call(this);this.element.removeAttribute("aria-modal");yta(this,!1)}; g.k.Me=function(a){!a&&this.Pf()&&lO(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(mP,g.V);mP.prototype.onClick=function(a){g.YN(a,this.api)&&this.api.playVideoAt(this.index)};g.v(nP,g.kO);g.k=nP.prototype;g.k.show=function(){g.kO.prototype.show.call(this);this.u.N(this.api,"videodatachange",this.nz);this.u.N(this.api,"onPlaylistUpdate",this.nz);this.nz()}; g.k.hide=function(){g.kO.prototype.hide.call(this);g.ox(this.u);this.updatePlaylist(null)}; g.k.nz=function(){this.updatePlaylist(this.api.getPlaylist())}; g.k.Wx=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;dthis.api.Za().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.eJ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.eJ("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.vb||(this.show(),aP(this.tooltip)),this.visible=!0,this.Ub(!0)): this.vb&&(this.hide(),this.Ub(!1),aP(this.tooltip))}; oP.prototype.Ub=function(a){g.V.prototype.Ub.call(this,a);this.api.ib(this.element,this.visible&&a)}; oP.prototype.i=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ma,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ma,this);this.Ma()};g.v(pP,g.V);g.k=pP.prototype; g.k.oz=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.Pl(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=this.l&&!a;g.N(this.element,"ytp-share-button-visible",this.visible);g.wL(this,this.visible);aP(this.tooltip);this.api.ib(this.element,this.visible&&this.Y)}; g.tP.prototype.Ub=function(a){g.V.prototype.Ub.call(this,a);this.api.ib(this.element,this.visible&&a)}; g.tP.prototype.ra=function(){g.V.prototype.ra.call(this);g.Oq(this.element,"ytp-share-button-visible")};g.v(g.uP,g.kO);g.k=g.uP.prototype;g.k.QL=function(a){a=Rt(a);g.tg(this.C,a)||g.tg(this.closeButton,a)||lO(this)}; g.k.Ab=function(){g.kO.prototype.Ab.call(this);this.tooltip.Ni(this.element)}; g.k.show=function(){var a=this.vb;g.kO.prototype.show.call(this);this.Ma();a||this.api.Na("onSharePanelOpened")}; g.k.XP=function(){this.vb&&this.Ma()}; g.k.Ma=function(){var a=this;g.K(this.element,"ytp-share-panel-loading");g.Oq(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.B.checked;b.getSharePanelCommand&&KM(this.api.ll(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.Ha()||(g.Oq(a.element,"ytp-share-panel-loading"),Dta(a,d))}); b=this.api.getVideoUrl(!0,!0,!1,!1);g.XF(this.api.T())&&(b=g.ti(b,g.CO("emb_share")));this.Sa("link",b);this.Sa("linkText",b);this.Sa("shareLinkWithUrl",g.eJ("Share link $URL",{URL:b}));aO(this.u)}; g.k.Me=function(a){!a&&this.Pf()&&lO(this)}; g.k.focus=function(){this.u.focus()}; g.k.ra=function(){g.kO.prototype.ra.call(this);Cta(this)};g.v(xP,g.V);g.k=xP.prototype;g.k.lC=function(){}; g.k.mC=function(){}; g.k.Hu=function(){return!0}; g.k.sU=function(){if(this.expanded){this.va.show();var a=this.G.element.scrollWidth}else a=this.G.element.scrollWidth,this.va.hide();this.Pa=34+a;g.N(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Pa)+"px";this.ma.start()}; g.k.DO=function(){this.badge.element.style.width=(this.expanded?this.Pa:34)+"px";this.Ea.start()}; g.k.TU=function(){g.N(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)}; g.k.Eh=function(){this.Hu()?this.K.show():this.K.hide();Eta(this)}; g.k.RL=function(){this.enabled=!1;this.Eh()}; g.k.SU=function(a){this.Va=a;this.Eh()}; g.k.UQ=function(a){this.Ga=1===a;this.Eh();g.N(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}; g.k.tR=function(){g.N(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.I.isFullscreen());this.Eh()};g.v(yP,xP);g.k=yP.prototype;g.k.ra=function(){zP(this);xP.prototype.ra.call(this)}; g.k.lC=function(a){a.target!==this.dismissButton.element&&(Gta(this,!1),this.I.Na("innertubeCommand",this.onClickCommand))}; g.k.mC=function(){this.u=!0;Gta(this,!0);this.Eh()}; g.k.mS=function(a){this.Aa=a;this.Eh()}; g.k.dS=function(a){var b=this.I.getVideoData();b&&b.videoId===this.videoId&&this.xa&&(this.U=a,a||(a=3+this.I.getCurrentTime(),this.Dd(a)))}; g.k.kb=function(a,b){var c;if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.u=!1,this.i=!0,this.U=this.xa=this.l=this.J=!1,zP(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;(this.B=!!h)&&this.I.Nl(this.badge.element,h||null)}this.C||(this.C=!(null===(e=a.dismissButton)||void 0===e||!e.trackingParams))&&this.I.Nl(this.dismissButton.element, (null===(f=a.dismissButton)||void 0===f?void 0:f.trackingParams)||null);this.text=g.Pz(a.text);if(d=null===(c=a.dismissButton)||void 0===c?void 0:c.a11yLabel)this.La=g.Pz(d);this.onClickCommand=a.onClickCommand;this.timing=a.timing;KH(b)?this.U=this.xa=!0:this.Dd()}Fta(this);wP(this);this.Eh()}; g.k.Hu=function(){return this.Va&&!this.Aa&&this.enabled&&!this.u&&!this.Ya.Ye()&&!this.Ga&&!this.U&&(this.l||this.i)}; g.k.Fe=function(a){(this.l=a)?(vP(this),wP(this,!1)):(zP(this),this.X.start());this.Eh()}; g.k.Dd=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.Fz(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:7,namespace:"shopping_overlay_visible"}));d&&b.push(new g.Fz(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:7,namespace:"shopping_overlay_expanded"}));this.I.Dd(b)};g.v(AP,g.kO);AP.prototype.show=function(){g.kO.prototype.show.call(this);this.B.start()}; AP.prototype.hide=function(){g.kO.prototype.hide.call(this);this.B.stop()}; AP.prototype.Gq=function(a,b){"dataloaded"===a&&((this.u=b.rF,this.i=b.pF,isNaN(this.u)||isNaN(this.i))?this.C&&(this.I.df("intro"),this.I.removeEventListener(g.Iz("intro"),this.ma),this.I.removeEventListener(g.Jz("intro"),this.X),this.I.removeEventListener("onShowControls",this.G),this.hide(),this.C=!1):(this.I.addEventListener(g.Iz("intro"),this.ma),this.I.addEventListener(g.Jz("intro"),this.X),this.I.addEventListener("onShowControls",this.G),a=new g.Fz(this.u,this.i,{priority:7,namespace:"intro"}), this.I.Dd([a]),this.C=!0))};g.v(BP,g.V);BP.prototype.onClick=function(){this.I.Bp()}; BP.prototype.Ma=function(){var a=!0,b=this.I.T();(b.Z("embeds_enable_mobile_custom_controls")||"1"===b.controlsType&&!b.Z("embeds_use_native_controls_killswitch")&&b.i)&&g.MF(b)&&(a=a&&480<=this.I.Za().getPlayerSize().width);g.wL(this,a);this.Sa("icon",this.I.zf()?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{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",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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 hv("yt.autonav");g.v(CP,g.V);g.k=CP.prototype; g.k.Vr=function(){if(3!==this.I.getPresentingPlayerType()&&g.pN(this.I)&&400<=this.I.Za().getPlayerSize().width&&!1!==this.I.getVideoData().NP){if(!this.i){this.i=!0;g.wL(this,this.i);this.l.push(this.N(this.I,"videodatachange",this.Vr));this.l.push(this.N(this.I,"videoplayerreset",this.Vr));this.l.push(this.N(this.I,"onPlaylistUpdate",this.Vr));this.l.push(this.N(this.I,"autonavchange",this.DE));var a=this.I.getVideoData();this.DE(a.autonavState);this.I.ib(this.element,this.i)}}else{this.i=!1;g.wL(this, this.i);a=g.q(this.l);for(var b=a.next();!b.done;b=a.next())this.fc(b.value)}}; g.k.DE=function(a){(a=1!==a)||(g.Am(g.Xu),a=g.Nr("web_autonav_allow_off_by_default")&&!g.Zu(0,141)&&g.O("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Zu(0,140));this.isChecked=a;Hta(this)}; g.k.onClick=function(){this.isChecked=!this.isChecked;this.I.Vx(this.isChecked?2:1);Hta(this);this.I.Fb(this.element)}; g.k.getValue=function(){return this.isChecked}; g.k.setValue=function(a){this.isChecked=a;this.Ba("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.v(g.EP,g.V);g.EP.prototype.ra=function(){this.ctx=null;g.V.prototype.ra.call(this)};g.v(FP,g.V);FP.prototype.onClick=function(){this.I.Na("innertubeCommand",this.u)}; FP.prototype.onClickCommand=function(a){(null===a||void 0===a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Rb()}; FP.prototype.updateVideoData=function(a,b){a=b.RT;this.u=null===a||void 0===a?void 0:a.command;this.l.disabled=null==this.u;g.N(this.l,"ytp-chapter-container-disabled",this.l.disabled);this.Rb()}; FP.prototype.Rb=function(){var a="",b=this.G.i;if(1d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.sC()}}; g.k.disable=function(){var a=this;if(!this.message){var b=(null!=It(["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.kO(this.I,{D:"div",Ca:["ytp-popup","ytp-generic-popup"],V:{role:"alert",tabindex:"0"},S:[b[0],{D:"a",V:{href:"https://support.google.com/youtube/answer/6276924", target:this.I.T().G},oa:b[2]},b[4]]},100,!0);this.message.hide();g.F(this,this.message);this.message.subscribe("show",function(c){a.l.wq(a.message,c)}); g.oN(this.I,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.i)();this.i=null}}; g.k.Ma=function(){g.wL(this,Nsa(this.I))}; g.k.ji=function(a){if(a){var b={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"g",L:"ytp-fullscreen-button-corner-2",S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",L:"ytp-fullscreen-button-corner-3",S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{D:"g",L:"ytp-fullscreen-button-corner-0",S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{D:"g", L:"ytp-fullscreen-button-corner-1",S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=bO(this.I,"Exit full screen","f");document.activeElement===this.element&&this.I.getRootNode().focus()}else b={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"g",L:"ytp-fullscreen-button-corner-0",S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{D:"g",L:"ytp-fullscreen-button-corner-1",S:[{D:"path", Mb:!0,L:"ytp-svg-fill",V:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{D:"g",L:"ytp-fullscreen-button-corner-2",S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",L:"ytp-fullscreen-button-corner-3",S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=bO(this.I,"Full screen","f");this.Sa("icon",b);this.Sa("title",this.message?null:a);aP(this.l.ac())}; g.k.ra=function(){this.message||((0,this.i)(),this.i=null);g.V.prototype.ra.call(this)};g.v(LP,g.E);LP.prototype.i=function(){var a=(0,g.P)()-this.startTime;a=aa&&this.delay.start()}; var LKa=new g.Yq(0,0,.4,0,.2,1,1,1),Nta=/[0-9.-]+|[^0-9.-]+/g;g.v(g.NP,g.V);g.NP.prototype.l=function(a){Ota(this,a.state);a=g.U(a.state,2);HG(this.I.T())&&(this.u||a?this.show():this.hide())}; g.NP.prototype.kb=function(){g.N(this.element,"ytp-play-button-playlist",g.lN(this.I))}; g.NP.prototype.zr=function(){g.HK(this.I.sb())?this.I.pauseVideo():(this.I.Ce()&&this.I.sb().isCued()&&CA("direct_playback",["pbs","pbu","pbp"]),this.I.Fo().timerName="direct_playback",this.I.playVideo())};g.v(OP,g.V);OP.prototype.i=function(a){Qta(this,a.state)};g.v(PP,g.V);PP.prototype.onClick=function(){this.I.Na("onCollapseMiniplayer");this.I.Fb(this.element)}; PP.prototype.Ma=function(){this.visible=!this.I.isFullscreen();g.wL(this,this.visible);this.I.ib(this.element,this.visible&&this.Y)}; PP.prototype.Ub=function(a){g.V.prototype.Ub.call(this,a);this.I.ib(this.element,this.visible&&a)};g.v(QP,g.V);QP.prototype.kb=function(a){this.Ma("newdata"===a)}; QP.prototype.Ma=function(a){var b=this.I.getVideoData(),c=b.wc,d=this.I.sb();d=(g.HK(d)||g.U(d,4))&&0this.clipEnd)&&this.Sx()}; g.k.UL=function(a){if(!g.Vt(a)){var b=!1;switch(g.Wt(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.Ut(a)}}; g.k.Gq=function(a,b){this.updateVideoData(b,"newdata"===a)}; g.k.gP=function(){this.Gq("newdata",this.api.getVideoData())}; g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();this.Jb=c&&a.allowLiveDvr;wua(this,this.api.Xe());b&&(c?(b=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=b,iQ(this),eQ(this,this.U,this.La)):this.Sx(),g.$Q(this.tooltip));if(a){b=a.watchNextResponse;if(a=!a.isLivePlayback&&b)a=this.api.getVideoData(),b=a.cA,a=null!=a.multiMarkersPlayerBarRenderer||null!=b&&0=e&&n.timeRangeStartMillisa.position&&(n=1);!m&&h/2>this.C-a.position&&(n=2);Pua(this.tooltip,c,d,b,!!f,l,e,n)}else Pua(this.tooltip,c,d,b,!!f,l);g.N(this.api.getRootNode(),"ytp-progress-bar-hover",!g.U(this.api.sb(),64));pua(this)}; g.k.oS=function(){g.$Q(this.tooltip);g.Oq(this.api.getRootNode(),"ytp-progress-bar-hover")}; g.k.nS=function(a,b){this.G&&(this.G.dispose(),this.G=null);this.Ac=b;1e||1e&&a.G.start()}); this.G.start()}if(g.U(this.api.sb(),32)||3===this.api.getPresentingPlayerType())this.api.startSeekCsiAction(),1.1*(this.u?60:40),a=bQ(this));g.N(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.qb!==b&&1===this.i.length&&(this.qb=b,this.G&&(this.G.dispose(),this.G=null),b)){var f=(0,g.P)();this.G=new g.Aq(function(){var h=c.C*(c.Da-1);c.ma=g.Mf(c.ma+ c.qb*((0,g.P)()-f)*.3,0,h);fQ(c);c.api.seekTo(hQ(c,bQ(c)),!1);0=b;g.wL(this,a);this.I.ib(this.element,a)}; nQ.prototype.u=function(){if(this.xb.vb)this.xb.Ab();else{var a=g.HN(this.I.rb());a&&!a.loaded&&(a.Se("tracklist",{includeAsr:!0}).length||a.load());this.I.Fb(this.element);this.xb.Uc(this.element)}}; nQ.prototype.updateBadge=function(){var a=this.I.isHdr(),b=this.I.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.nN(this.I),e=c&&!!g.mN(this.I.rb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.I.getPlaybackQuality();g.N(this.element,"ytp-hdr-quality-badge",a);g.N(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.N(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.N(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.N(this.element,"ytp-8k-quality-badge", !a&&"highres"===c);g.N(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.N(this.element,"ytp-3d-badge",!a&&e&&d)};g.v(pQ,RO);pQ.prototype.isLoaded=function(){var a=g.QN(this.I.rb());return void 0!==a&&a.loaded}; pQ.prototype.Ma=function(){void 0!==g.QN(this.I.rb())&&3!==this.I.getPresentingPlayerType()?this.i||(this.xb.yc(this),this.i=!0):this.i&&(this.xb.Gf(this),this.i=!1);this.setValue(this.isLoaded())}; pQ.prototype.l=function(a){this.isLoaded();a?this.I.loadModule("annotations_module"):this.I.unloadModule("annotations_module");this.I.W("annotationvisibility",a)}; pQ.prototype.ra=function(){this.i&&this.xb.Gf(this);RO.prototype.ra.call(this)};g.v(g.qQ,g.JO);g.k=g.qQ.prototype;g.k.open=function(){g.TO(this.xb,this.u)}; g.k.Hh=function(a){yua(this);this.options[a].element.setAttribute("aria-checked","true");this.Vc(this.Li(a));this.l=a}; g.k.nA=function(a,b,c){var d=this;b=new g.JO({D:"div",Ca:["ytp-menuitem"],V:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},S:[{D:"div",Ca:["ytp-menuitem-label"],oa:"{{label}}"}]},b,this.Li(a,!0));b.Ra("click",function(){d.kf(a)}); return b}; g.k.enable=function(a){this.B?a||(this.B=!1,this.Wp(!1)):a&&(this.B=!0,this.Wp(!0))}; g.k.Wp=function(a){a?this.xb.yc(this):this.xb.Gf(this)}; g.k.kf=function(a){this.W("select",a)}; g.k.Li=function(a){return a.toString()}; g.k.VL=function(a){g.Vt(a)||39!==g.Wt(a)||(this.open(),g.Ut(a))}; g.k.ra=function(){this.B&&this.xb.Gf(this);g.JO.prototype.ra.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(sQ,g.qQ);sQ.prototype.Ma=function(){var a=this.I.getAvailableAudioTracks();1(a.deltaX||-a.deltaY)?-this.C:this.C;this.zp(b);g.Ut(a)}; g.k.XL=function(a){a=(a-g.Il(this.l).x)/this.J*this.range+this.minimumValue;this.zp(a)}; g.k.zp=function(a,b){b=void 0===b?"":b;a=g.Mf(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Sa("valuenow",a);this.Sa("valuetext",b);this.K.style.left=(a-this.minimumValue)/this.range*(this.J-this.X)+"px";this.i=a}; g.k.focus=function(){this.ma.focus()};g.v(AQ,yQ);AQ.prototype.U=function(){this.I.setPlaybackRate(this.i,!0)}; AQ.prototype.zp=function(a){yQ.prototype.zp.call(this,a,BQ(this,a).toString());this.u&&(zQ(this),this.va())}; AQ.prototype.xa=function(){var a=this.I.getPlaybackRate();BQ(this,this.i)!==a&&(this.zp(a),zQ(this))};g.v(CQ,g.xL);CQ.prototype.focus=function(){this.i.focus()};g.v(Aua,MO);g.v(DQ,g.qQ);g.k=DQ.prototype;g.k.Li=function(a){return"1"===a?"Normal":a.toLocaleString()}; g.k.Ma=function(){var a=this.I.getPresentingPlayerType();this.enable(2!==a&&3!==a);Dua(this)}; g.k.Wp=function(a){g.qQ.prototype.Wp.call(this,a);a?(this.J=this.N(this.I,"onPlaybackRateChange",this.ZL),Dua(this),Bua(this,this.I.getPlaybackRate())):(this.fc(this.J),this.J=null)}; g.k.ZL=function(a){var b=this.I.getPlaybackRate();this.G.includes(b)||Cua(this,b);Bua(this,a)}; g.k.kf=function(a){g.qQ.prototype.kf.call(this,a);a===this.i?this.I.setPlaybackRate(this.C,!0):this.I.setPlaybackRate(Number(a),!0);this.xb.Wg()};g.v(FQ,g.qQ);g.k=FQ.prototype;g.k.Hh=function(a){g.qQ.prototype.Hh.call(this,a)}; g.k.getKey=function(a){return a.option.toString()}; g.k.getOption=function(a){return this.settings[a]}; g.k.Li=function(a){return this.getOption(a).text||""}; g.k.kf=function(a){g.qQ.prototype.kf.call(this,a);this.W("settingChange",this.setting,this.settings[a].option)};g.v(GQ,g.NO);GQ.prototype.hf=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.Vm[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Hh(e),c.C.element.setAttribute("aria-checked",String(!d)),c.i.element.setAttribute("aria-checked",String(d)))}}}; GQ.prototype.Ug=function(a,b){this.W("settingChange",a,b)};g.v(HQ,g.qQ);HQ.prototype.getKey=function(a){return a.languageCode}; HQ.prototype.Li=function(a){return this.languages[a].languageName||""}; HQ.prototype.kf=function(a){this.W("select",a);this.I.Fb(this.element);g.XO(this.xb)};g.v(IQ,g.qQ);g.k=IQ.prototype;g.k.getKey=function(a){return g.Rb(a)?"__off__":a.displayName}; g.k.Li=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName}; g.k.kf=function(a){"__translate__"===a?this.i.open():"__contribute__"===a?(this.I.pauseVideo(),this.I.isFullscreen()&&this.I.toggleFullscreen(),a=g.BO(this.I.T(),this.I.getVideoData()),g.iK(a)):(this.I.Fb(this.element),this.I.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.qQ.prototype.kf.call(this,a),this.xb.Wg())}; g.k.Ma=function(){var a,b=this.I.getOptions();b=b&&-1!==b.indexOf("captions");var c=this.I.getVideoData();c=c&&c.Nk;var d=!(null===(a=this.I.getVideoData())||void 0===a||!g.bI(a)),e={};if(b||c){if(b){var f=this.I.getOption("captions","track");e=this.I.getOption("captions","tracklist",{includeAsr:!0});var h=d?[]:this.I.getOption("captions","translationLanguages");this.tracks=g.Db(e,this.getKey,this);d=g.Oe(e,this.getKey);if(h.length&&!g.Rb(f)){var l=f.translationLanguage;if(l&&l.languageName){var m= l.languageName;l=h.findIndex(function(n){return n.languageName===m}); qaa(h,l)}Fua(this.i,h);d.push("__translate__")}h=this.getKey(f)}else this.tracks={},d=[],h="__off__";d.unshift("__off__");this.tracks.__off__={};c&&d.unshift("__contribute__");this.tracks[h]||(this.tracks[h]=f,d.push(h));g.rQ(this,d);this.Hh(h);f&&f.translationLanguage?this.i.Hh(this.i.getKey(f.translationLanguage)):yua(this.i);b&&this.C.hf(this.I.getSubtitlesUserSettings());this.J.Vc(e&&e.length?" ("+e.length+")":"");this.W("size-change");this.I.ib(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.k.aM=function(a){var b=this.I.getOption("captions","track");b=g.Vb(b);b.translationLanguage=this.i.languages[a];this.I.setOption("captions","track",b)}; g.k.Ug=function(a,b){if("reset"===a)this.I.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.I.updateSubtitlesUserSettings(c)}Gua(this,!0);this.G.start();this.C.hf(this.I.getSubtitlesUserSettings())}; g.k.WS=function(a){a||g.Gq(this.G)}; g.k.ra=function(){g.Gq(this.G);g.qQ.prototype.ra.call(this)};g.v(JQ,g.VO);g.k=JQ.prototype;g.k.initialize=function(){if(!this.Ud){this.Ud=!0;this.TB=new vQ(this.I,this);g.F(this,this.TB);var a=new xQ(this.I,this);g.F(this,a);a=new IQ(this.I,this);g.F(this,a);a=new pQ(this.I,this);g.F(this,a);this.I.T().Kb&&(a=new DQ(this.I,this),g.F(this,a));this.I.T().Bb&&!g.S(this.I.T().experiments,"web_player_move_autonav_toggle")&&(a=new tQ(this.I,this),g.F(this,a));a=new sQ(this.I,this);g.F(this,a);oQ(this.settingsButton,this.Kd.items.length)}}; g.k.yc=function(a){this.initialize();this.Kd.yc(a);oQ(this.settingsButton,this.Kd.items.length)}; g.k.Gf=function(a){this.vb&&1>=this.Kd.items.length&&this.hide();this.Kd.Gf(a);oQ(this.settingsButton,this.Kd.items.length)}; g.k.Uc=function(a){this.initialize();0=b;g.wL(this,b);this.I.ib(this.element,b);a&&this.Sa("pressed",this.isEnabled())};g.v(g.MQ,g.V);g.k=g.MQ.prototype; g.k.Rb=function(){var a=this.api.Za().getPlayerSize().width,b=this.J;this.api.T().J&&(b=300);b=a>=b&&(!this.l||!g.U(this.api.sb(),64));g.wL(this,b);g.N(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=g.tM(g.S(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1));this.u!==c&&(this.Sa("currenttime",c),this.u=c);b=g.tM(g.S(this.api.T().experiments,"halftime_ux_killswitch")?a.duration: this.api.getDuration(b,!1));this.B!==b&&(this.Sa("duration",b),this.B=b)}this.l&&(a=a.isAtLiveHead,this.G!==a||this.C!==this.isPremiere)&&(this.G=a,this.C=this.isPremiere,this.Rb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Vc(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.zO(this.tooltip,this.liveBadge.element)))}; g.k.kb=function(a,b,c){this.updateVideoData((g.S(this.api.T().experiments,"enable_topsoil_wta_for_halftime")||g.S(this.api.T().experiments,"enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Rb()}; g.k.updateVideoData=function(a){this.l=a.isLivePlayback&&!a.yb;this.isPremiere=a.isPremiere;g.N(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.ra=function(){this.i&&this.i();g.V.prototype.ra.call(this)};g.v(PQ,g.V);g.k=PQ.prototype;g.k.Fl=function(){var a=this.i.Ae();this.u!==a&&(this.u=a,OQ(this,this.api.getVolume(),this.api.isMuted()))}; g.k.GE=function(a){g.wL(this,350<=a.width)}; g.k.dM=function(a){if(!g.Vt(a)){var b=g.Wt(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.Mf(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.Ut(a))}}; g.k.bM=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.Mf(b/10,-10,10));g.Ut(a)}; g.k.aT=function(){NQ(this,this.l,!0,this.hasFocus,this.i.Th());this.K=this.volume;this.api.isMuted()&&this.api.unMute()}; g.k.cM=function(a){var b=this.u?78:52,c=this.u?18:12;a-=g.Il(this.J).x;this.api.setVolume(100*g.Mf((a-c/2)/(b-c),0,1))}; g.k.ZS=function(){NQ(this,this.l,!1,this.hasFocus,this.i.Th());0===this.volume&&(this.api.mute(),this.api.setVolume(this.K))}; g.k.Df=function(a){OQ(this,a.volume,a.muted)}; g.k.sG=function(){NQ(this,this.l,this.isDragging,this.hasFocus,this.i.Th())}; g.k.ra=function(){g.V.prototype.ra.call(this);g.Oq(this.G,"ytp-volume-slider-active")};g.v(g.QQ,g.V);g.QQ.prototype.kb=function(){var a=this.api.getVideoData(1).C,b=this.api.T();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.wL(this,this.visible);this.api.ib(this.element,this.visible&&this.Y);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Sa("url",a))}; g.QQ.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.uM(a),!1,!0,!0);if(g.MF(this.api.T())||g.XF(this.api.T()))b=g.ti(b,g.CO("emb_logo"));g.ZN(b,this.api,a);this.api.Fb(this.element)}; g.QQ.prototype.tb=function(){var a={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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.XF(this.api.T())){var b=this.Ba("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{D:"svg",V:{fill:"none",height:"24",width:"24"},S:[{D:"circle",V:{cx:"12",cy:"12",fill:"red",r:"12"}},{D:"ellipse",V:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{D:"path",V:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{D:"svg",V:{viewBox:"0 0 80 24"},S:[{D:"ellipse",V:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{D:"ellipse",V:{cx:"12.18", cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{D:"path",V:{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.N(b,"ytp-youtube-music-logo-icon-only",c)}this.Sa("logoSvg",a)}; g.QQ.prototype.Ub=function(a){g.V.prototype.Ub.call(this,a);this.api.ib(this.element,this.visible&&a)};g.v(SQ,g.qN);g.k=SQ.prototype;g.k.Yc=function(){this.Ec.Rb();this.Bg.Rb()}; g.k.bj=function(){this.qz();this.fd.l?this.Yc():g.$Q(this.Ec.tooltip)}; g.k.ep=function(){this.Yc();this.td.start()}; g.k.qz=function(){var a=!this.I.T().i&&300>g.xua(this.Ec)&&this.I.sb().tc()&&!!window.requestAnimationFrame,b=!a;this.fd.l||(a=b=!1);b?this.J||(this.J=this.N(this.I,"progresssync",this.Yc)):this.J&&(this.fc(this.J),this.J=null);a?this.td.isActive()||this.td.start():this.td.stop()}; g.k.tb=function(){var a=this.u.Ae(),b=this.I.Za().getPlayerSize(),c=TQ(this),d=Math.max(b.width-2*c,100);if(this.Ea!==b.width||this.Aa!==a){this.Ea=b.width;this.Aa=a;var e=Kua(this);this.l.element.style.width=e+"px";this.l.element.style.left=c+"px";g.lQ(this.Ec,c,e,a);this.u.ac().rz=e}c=this.i;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-UQ(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.xv=e;c.Dr();this.qz();!this.I.T().Z("html5_player_bottom_linear_gradient")&&g.S(this.I.T().experiments,"html5_player_dynamic_bottom_gradient")&& g.DP(this.Da,b.height)}; g.k.kb=function(){var a=this.I.getVideoData();this.ma.style.background=a.C?a.Da:"";g.wL(this.U,a.Yy)};g.v(VQ,xP);g.k=VQ.prototype;g.k.lC=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.I.Na("innertubeCommand",this.onClickCommand),this.u=!0,this.K.hide())}; g.k.mC=function(){this.u=!0;this.K.hide()}; g.k.kb=function(a,b){var c;"newdata"===a&&(this.l=this.u=!1,WQ(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.i=this.J=this.enabled=!0;this.text=Yta(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.Fz(e,d,{priority:7,CY:"suggested_action_button_visible"}));this.I.Dd(b)}this.onClickCommand=a.tapCommand;Fta(this);wP(this);this.Eh()}}; g.k.Hu=function(){return!this.u&&this.enabled&&(this.l||this.i)}; g.k.Fe=function(a){this.u||((this.l=a)?vP(this):(WQ(this),this.X.start()),this.Eh())}; g.k.ra=function(){WQ(this);xP.prototype.ra.call(this)};var V2={},XQ=(V2.CHANNEL_NAME="ytp-title-channel-name",V2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",V2.LINK="ytp-title-link",V2.SESSIONLINK="yt-uix-sessionlink",V2.SUBTEXT="ytp-title-subtext",V2.TEXT="ytp-title-text",V2.TITLE="ytp-title",V2);g.v(YQ,g.V);YQ.prototype.onClick=function(a){this.api.Fb(this.element);var b=this.api.getVideoUrl(!g.uM(a),!1,!0);g.MF(this.api.T())&&(b=g.ti(b,g.CO("emb_title")));g.ZN(b,this.api,a)}; YQ.prototype.Ma=function(){var a=this.api.getVideoData(),b=this.api.T();this.Sa("title",a.title);Lua(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Hb&&c.rg?(this.Sa("channelLink",c.Hb),this.Sa("channelName",c.author),this.Sa("channelTitleFocusable","0")):Lua(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.nf;g.N(this.link,XQ.FULLERSCREEN_LINK,c);b.K||!a.videoId||c||a.C&&b.pfpChazalUi?this.i&&(this.Sa("url",null),this.fc(this.i), this.i=null):(this.Sa("url",this.api.getVideoUrl(!0)),this.i||(this.i=this.N(this.link,"click",this.onClick)))};g.v(g.ZQ,g.V);g.k=g.ZQ.prototype;g.k.VI=function(a,b){a<=this.l&&this.l<=b&&(a=this.l,this.l=NaN,Nua(this,a))}; g.k.RP=function(){ima(this.i,this.l,160*this.scale)}; g.k.Cj=function(){switch(this.type){case 2:var a=this.activeElement;a.removeEventListener("mouseout",this.K);a.addEventListener("mouseover",this.u);a.removeEventListener("blur",this.K);a.addEventListener("focus",this.u);Qua(this);break;case 3:Qua(this);break;case 1:this.i&&(this.i.unsubscribe("l",this.VI,this),this.i=null),this.api.removeEventListener("videoready",this.U),this.X.stop()}this.type=null;this.G&&this.B.hide()}; g.k.Ni=function(a){for(var b=0;b(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.bj=function(a){a&&(this.tooltip.Ni(this.Ch.element),this.Sf&&this.tooltip.Ni(this.Sf.l.element));this.api.Z("embeds_enable_player_overlays_autohide")&&this.Qw&&(g.N(this.contextMenu.element,"ytp-autohide",a),g.N(this.contextMenu.element,"ytp-autohide-active",!0));g.oO.prototype.bj.call(this,a)}; g.k.kC=function(){g.oO.prototype.kC.call(this);this.api.Z("embeds_enable_player_overlays_autohide")&&this.Qw&&(g.N(this.contextMenu.element,"ytp-autohide-active",!1),this.api.Z("embeds_enable_player_overlays_autohide")&&this.Qw&&(this.contextMenu.hide(),this.Qf&&this.Qf.hide()))}; g.k.Ri=function(a,b){var c=this.api.Za().getPlayerSize();c=new g.pl(0,0,c.width,c.height);if(a||this.fd.l&&!this.vn()){if(this.api.T().wj||b)a=this.Ae()?this.zA:this.yA,c.top+=a,c.height-=a;this.Sf&&(c.height-=UQ(this.Sf))}return c}; g.k.Fl=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.gw.element,b),b.parentElement.insertBefore(this.ew.element,b.nextSibling))):g.Sr(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.gw.detach(),this.ew.detach());this.tb();this.Sl()}; g.k.Ae=function(){var a=this.api.T();return this.api.isFullscreen()&&!a.J||!1}; g.k.showControls=function(a){this.Uv=!a;this.Ei()}; g.k.tb=function(){var a=this.Ae();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.N(this.contextMenu.element,"ytp-big-mode",a);this.Ei();if(this.Ye()&&this.Qf)this.bh&&lP(this.Qf,this.bh),this.shareButton&&lP(this.Qf,this.shareButton),this.Hg&&lP(this.Qf,this.Hg);else{if(this.Qf){a=this.Qf;for(var b=g.q(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.bh&&!g.tg(this.Cg.element,this.bh.element)&&this.bh.ya(this.Cg.element);this.shareButton&&!g.tg(this.Cg.element, this.shareButton.element)&&this.shareButton.ya(this.Cg.element);this.Hg&&!g.tg(this.Cg.element,this.Hg.element)&&this.Hg.ya(this.Cg.element)}this.Sl();g.oO.prototype.tb.call(this)}; g.k.gB=function(){if(Xua(this)&&!g.lN(this.api))return!1;var a=this.api.getVideoData();return!g.MF(this.api.T())||2===this.api.getPresentingPlayerType()||!this.Kg||((a=this.Kg||a.Kg)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.oO.prototype.gB.call(this):!1}; g.k.Sl=function(){g.oO.prototype.Sl.call(this);this.api.ib(this.title.element,!!this.Yj);this.Vq&&this.Vq.Ub(!!this.Yj);this.channelAvatar.Ub(!!this.Yj);this.overflowButton&&this.overflowButton.Ub(this.Ye()&&!!this.Yj);this.shareButton&&this.shareButton.Ub(!this.Ye()&&!!this.Yj);this.bh&&this.bh.Ub(!this.Ye()&&!!this.Yj);this.Hg&&this.Hg.Ub(!this.Ye()&&!!this.Yj);if(!this.Yj){this.tooltip.Ni(this.Ch.element);for(var a=0;ab.i&&(c=1));return c};g.v(eS,g.E);eS.prototype.ra=function(){this.G&&this.G();g.E.prototype.ra.call(this)}; eS.prototype.createAction=function(a,b){var c=qR(a.entityKey).entityType,d=zx();return new aS(c,d,a,b.actionId,b.rootActionId)}; eS.prototype.K=function(a){var b;return g.D(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=qR(n),r=p.entityId,cwa(e.l,r)||h.push(n);return g.w(u,mwa(e,h),2)}t=u.l;return g.w(u,CS(e,t),0)})})};rwa.prototype.info=function(){};NS.prototype.C=function(a){var b;return g.D(this,function d(){var e=this,f;return g.z(d,function(h){if(!g.U(a.state,128))return h.ub(0);var l=null===(b=a.state.getData())||void 0===b?void 0:b.errorCode;f=(null===l||void 0===l?0:l.startsWith("net."))?"TRANSFER_FAILURE_REASON_NETWORK":"TRANSFER_FAILURE_REASON_INTERNAL";return g.w(h,e.ju(e.player.getVideoData().videoId,f),0)})})}; NS.prototype.ju=function(a,b){return g.D(this,function d(){var e=this;return g.z(d,function(f){if(1==f.i){if(e.l)return f.return();e.l=!0;return g.w(f,PS(e,a),2)}WG(a,4);return g.w(f,e.i.ju(b),0)})})}; NS.prototype.G=function(a){2===a.status?(a.status!==this.u&&(US(this.i),WG(a.videoId,2)),a.pu&&Gwa(this.i,a.videoId,a.pu)):4===a.status?this.ju(a.videoId,"TRANSFER_FAILURE_REASON_INTERNAL"):1===a.status&&Fwa(this.i);this.u=a.status;this.api.Na("localmediachange",{videoId:a.videoId,status:a.status})}; NS.prototype.tC=function(){return g.D(this,function b(){var c=this,d;return g.z(b,function(e){if(1==e.i){if(c.l)return e.return();c.l=!0;d=c.player.getVideoData().videoId;return g.w(e,PS(c,d),2)}return g.w(e,c.i.tC(),0)})})};g.v(QS,g.E);QS.prototype.ra=function(){this.l&&this.l();g.E.prototype.ra.call(this)}; QS.prototype.u=function(a){var b;return g.D(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=qR(m),p=n.entityId,f.push(p);return 0===f.length?t.return():g.w(t,uwa(r,f),0)})})};g.v(RS,g.E);RS.prototype.ra=function(){this.B&&this.B();this.C.dispose();g.E.prototype.ra.call(this)}; RS.prototype.K=function(a){return g.D(this,function c(){var d=this;return g.z(c,function(e){switch(e.i){case 1:if(!d.i){e.ub(2);break}if("TRANSFER_STATE_COMPLETE"===d.i.transferState||"TRANSFER_STATE_FAILED"===d.i.transferState||!a.transfer||!a.transfer.has(d.i.key)){e.ub(3);break}return g.w(e,DR(d.l,d.i.key,"transfer"),4);case 4:d.i=e.l;if(d.i){e.ub(3);break}return g.w(e,Awa(d),3);case 3:if(d.i)return e.return();case 2:return g.w(e,SS(d),0)}})})}; RS.prototype.ju=function(a,b){return g.D(this,function d(){var e=this,f;return g.z(d,function(h){if(1==h.i){a:switch(a){case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_PLAYABILITY":case "TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES":var l=!1;break a;default:l=!0}return l?Hwa(e)?g.w(h,WS(e,"TRANSFER_STATE_TRANSFER_IN_QUEUE"),3):g.w(h,XS(e,"TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES"),3):g.w(h,XS(e,a),3)}TS(e);f=SS(e,!0); b&&b(f);g.sa(h)})})}; RS.prototype.tC=function(a){return g.D(this,function c(){var d=this,e,f,h,l,m,n;return g.z(c,function(p){if(1==p.i)return Hwa(d)?g.w(p,WS(d,"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"),5):g.w(p,XS(d,"TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES"),3);if(3!=p.i)return e=qR(d.i.key).entityId,PR({encryptedVideoId:e,cotn:d.i.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_DEQUEUED_BY_PLAYER_RESPONSE_EXPIRATION",statusType:"ADDED_TO_QUEUE"}),f=Uva(),f.playbackDataActionMetadata={isEnqueuedForExpiredStreamUrlRefetch:!0}, h=rR(e,"playbackData"),l={actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",entityKey:h,actionMetadata:f},m=bS(new aS("playbackData",e,l)),g.w(p,CR(d.l,m,"offlineOrchestrationActionWrapperEntity"),3);TS(d);n=SS(d,!0);a&&a(n);g.sa(p)})})}; var Y2={},YS=(Y2.TRANSFER_STATE_TRANSFERRING=1,Y2.TRANSFER_STATE_TRANSFER_IN_QUEUE=2,Y2);g.k=Kwa.prototype;g.k.isOrchestrationLeader=function(){return this.B}; g.k.refreshAllVideos=function(){return g.D(this,function b(){var c=this,d;return g.z(b,function(e){switch(e.i){case 1:if(c.u.Vi()){e.ub(2);break}return g.w(e,Swa(c),3);case 3:return e.return([]);case 2:return d=c.uu,g.w(e,Rwa(c),4);case 4:return e.return(d.call(c,e.l,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))}})})}; g.k.deleteVideos=function(a){return g.D(this,function c(){var d=this;return g.z(c,function(e){return e.return(d.uu(a,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})}; g.k.deleteAllVideos=function(){return g.D(this,function b(){var c=this;return g.z(b,function(d){return d.return(c.uu(["!*$_ALL_VIDEOS_!*$"],"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})}; g.k.uu=function(a,b){return g.D(this,function d(){var e,f;return g.z(d,function(h){if(1==h.i)return g.w(h,GR(),2);e=h.l;if(!e)return h.return([]);f=a.map(function(l){var m=rR(l,"ytMainDownloadedVideoEntity");l=new aS("ytMainDownloadedVideoEntity",l,{actionType:b,entityKey:m,actionMetadata:RKa});return bS(l)}); return h.return(jva(e,f))})})};var ZS=[],zEa=!1;g.wW=cb(function(){var a="";try{var b=g.ng("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.$S,wK);g.k=g.$S.prototype;g.k.isView=function(){return!0}; g.k.VC=function(){var a=this.i.getCurrentTime();if(ae?this.re("next_player_future"):(this.G=d,this.u=yE(a,c,d,!0),this.B=yE(a,e,f,!1),a=this.l.getVideoData().clientPlaybackNonce, this.i.Ja("gaplessPrep","cpn."+a),fT(this.i,this.u),dT(this.i,$wa(b,c,d,!this.i.getVideoData().isAd())),eT(this,2),fxa(this))):this.ea():this.ea()}else this.re("no-elem")}else this.ea()}; g.k.Xp=function(a){var b=exa(this).kK,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.G;gE(a.Te(),d-.01)&&(eT(this,4),b.isActive=!1,b.Zu=b.Zu||b.isActive,this.l.Ja("sbh","1"),c.isActive=!0,c.Zu=c.Zu||c.isActive);a=this.B.l;this.B.i.isActive&&a.isActive&&eT(this,5)}}; g.k.dJ=function(){4<=this.status.status&&6>this.status.status&&this.re("player-reload-after-handoff")}; g.k.re=function(a){if(!this.Ha()&&!this.isFinished()){this.ea();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.Ja("gaplessError","cpn."+c+";msg."+a);a=this.i;a.videoData.Ua=!1;b&&IX(a);a.l&&(b=a.l,b.policy.xa=!1,b.mediaSource&&KV(b))}this.C.reject(void 0);this.dispose()}}; g.k.ra=function(){dxa(this);this.i.unsubscribe("newelementrequired",this.dJ,this);if(this.u){var a=this.u.l;this.u.i.jd.unsubscribe("updateend",this.Xp,this);a.jd.unsubscribe("updateend",this.Xp,this)}g.E.prototype.ra.call(this)}; g.k.Dc=function(a){g.UI(a,128)&&this.re("player-error-event")}; g.k.ea=function(){};g.v(hT,g.E);hT.prototype.clearQueue=function(){this.ea();this.B&&this.B.reject("Queue cleared");iT(this)}; hT.prototype.Mq=function(){return!this.l}; hT.prototype.ra=function(){iT(this);g.E.prototype.ra.call(this)}; hT.prototype.ea=function(){};g.v(lT,g.Q);g.k=lT.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:jxa()?3:b?2:c?1:d?5:e?7:f?8:0}; g.k.ji=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Fe())}; g.k.setMinimized=function(a){this.u!==a&&(this.u=a,this.Fe())}; g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Fe())}; g.k.lr=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Fe())}; g.k.setImmersivePreview=function(a){this.l!==a&&(this.l=a,this.Fe())}; g.k.zf=function(){return this.i}; g.k.isFullscreen=function(){return 0!==this.fullscreen}; g.k.Ce=function(){return this.u}; g.k.isInline=function(){return this.inline}; g.k.isBackground=function(){return jxa()}; g.k.Lq=function(){return this.pictureInPicture}; g.k.Jq=function(){return this.l}; g.k.Fe=function(){this.W("visibilitychange");var a=this.getVisibilityState(this.zf(),this.isFullscreen(),this.Ce(),this.isInline(),this.Lq(),this.Jq());a!==this.C&&this.W("visibilitystatechange");this.C=a}; g.k.ra=function(){mxa(this.B);g.Q.prototype.ra.call(this)};g.v(g.oT,g.E);g.k=g.oT.prototype;g.k.yd=function(a){this.Da.push(a);var b=this.C.get(a),c=null==b;if(this.Ga)this.Ga=!1,c||(a=this.B.find(function(d){return d.cpn===b}))&&this.api.W("serverstitchedvideochange",a.Wc),this.U=!1; else if(this.u){if(this.u.Ht)this.i.Ja("sdai","a_pair_of_same_transition_occurs_enter");else{if(this.u.Td===a){this.u=void 0;return}if(this.u.adCpn===b){this.i.Ja("sdai","dchtsc");this.u=void 0;return}a={Td:a,isAd:!c,Ht:!0,Ql:this.i.getCurrentTime(),adCpn:b};txa(this,a,this.u)}this.u=void 0;this.U=!1}else this.u={Td:a,isAd:!c,Ht:!0,Ql:this.i.getCurrentTime(),adCpn:b}}; g.k.bf=function(a){this.Da=this.Da.filter(function(d){return d!==a}); this.Ga&&(this.U=this.Ga=!1,this.i.Ja("sdai","cref"));var b=this.C.get(a),c=null==b;if(this.u){if(this.u.Ht){if(this.u.Td===a){this.u=void 0;return}if(this.u.adCpn===b){this.i.Ja("sdai","dchtsc");this.u=void 0;return}c={Td:a,isAd:!c,Ht:!1,Ql:this.i.getCurrentTime(),adCpn:b};txa(this,this.u,c)}else this.i.Ja("sdai","a_pair_of_same_transition_occurs_exit");this.u=void 0;this.U=!1}else this.u={Td:a,isAd:!c,Ht:!1,Ql:this.i.getCurrentTime(),adCpn:b};g.S(this.l.experiments,"web_player_halftime_dai")&&(c= this.B.find(function(d){return d.cpn===b}),this.isLiveNow&&c&&this.i.getCurrentTime()=a.oD&&n.set("skipsq",""+a.oD);(c=this.i.getVideoData().clientPlaybackNonce)&&n.set("cpn",c);c=[];a.Mi&&(c=Axa(this,a.Mi),0=a+c||(h=!1,f?athis.u;)(c=this.data.shift())&<(this,c,!0);JT(this)}; KT.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a}); c&&(LT(this,c,b),g.pb(this.data,function(d){return d.key===a}),JT(this))}; KT.prototype.ra=function(){var a=this;g.E.prototype.ra.call(this);this.data.forEach(function(b){LT(a,b,!0)}); this.data=[]};MT.prototype.add=function(a){this.i=(this.i+1)%this.data.length;this.data[this.i]=a}; MT.prototype.forEach=function(a){for(var b=this.i+1;b=this.i.totalLength)throw Error();return uD(this.i,this.offset++)}; MU.prototype.skip=function(a){this.offset+=a}; MU.prototype.getOffset=function(){return this.offset};OU.prototype.oi=function(){this.l.shift()}; OU.prototype.Qm=function(){return!!this.C.info.audio}; OU.prototype.getDuration=function(){return this.C.index.getMaxKnownEndTime()}; OU.prototype.ea=function(){};g.k=XU.prototype;g.k.dB=function(){return 0}; g.k.IE=function(){return null}; g.k.gH=function(){return null}; g.k.isFailed=function(){return 5===this.state}; g.k.sz=function(){}; g.k.Ha=function(){return-1===this.state}; g.k.dispose=function(){this.info.Oh()&&4!==this.state&&(this.info.i[0].i.B=!1);YU(this,-1)};g.v($U,XU);g.k=$U.prototype;g.k.sz=function(){if(this.Ha()){var a=this.u,b=this.l;a.me[b].Gd=new lD;sX(a,b)}}; g.k.Xr=function(){return{}}; g.k.cH=function(){return 0}; g.k.Yp=function(){return!0}; g.k.vz=function(){nza(this);this.K=!0;return kza(this.i)}; g.k.JE=function(){nza(this);return this.i.Gd}; g.k.Xq=function(){var a,b;return!(null===(b=null===(a=this.i)||void 0===a?void 0:a.Gd)||void 0===b||!b.length)||this.u.dg(this.l)};aV.prototype.qg=function(){return Uya(this.B)}; aV.prototype.oi=function(a){this.B.oi(a);a=a.info;a.i.info.Ib>=this.Ib&&(this.Ib=a.i.info.Ib)}; aV.prototype.getDuration=function(){return this.i.index.getMaxKnownEndTime()}; aV.prototype.isRequestPending=function(a){return this.u.length?a===this.u[this.u.length-1].info.i[0].Ka:!1};oV.prototype.send=function(){g.Ps(this.target,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:this.onComplete,onTimeout:this.onComplete,context:this});this.i=(0,g.P)()}; oV.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.P)()-this.i)/1E3).toFixed(3),shost:g.ii(this.target),trigger:this.trigger};204===a.status||a.response?this.l&&this.l(g.nE(c)):this.u(new g.mE("pathprobe.net",!1,c))};g.k=zza.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.i.get("type"):""}; g.k.abort=function(){}; g.k.Nm=function(){return!0}; g.k.Ws=function(){return this.range.length}; g.k.Jo=function(){return this.loaded}; g.k.Rx=function(){return!!this.loaded}; g.k.dg=function(){return!!this.l.totalLength}; g.k.oi=function(){var a=this.l;this.l=new lD;return a}; g.k.qg=function(){return this.l}; g.k.xr=function(){return!0}; g.k.OC=function(){return!!this.error}; g.k.Yd=function(){return this.error};var Cza=0;g.k=pV.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.va);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.Aa,this.onError).then(void 0,Av)}; g.k.onDone=function(){if(!this.Ha()){this.ea();this.Y=!0;if(Bza(this)&&!this.i.totalLength&&!this.G&&this.l){OA(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.C.mu()}}; g.k.getResponseHeader=function(a){return this.K?this.K.get(a):null}; g.k.Nm=function(){return!!this.K}; g.k.Jo=function(){return this.l}; g.k.Ws=function(){return+this.getResponseHeader("content-length")}; g.k.Rx=function(){return 200<=this.status&&300>this.status&&!!this.l}; g.k.ea=function(){}; g.k.dg=function(){if(this.Y)return!!this.i.totalLength;if(!this.Nm())return!1;var a=this.policy.u;if(a&&this.X+a>Date.now())return!1;a=this.Ws()||0;a=Math.max(16384,this.policy.i*a);this.ma||(a=Math.max(a,16384));this.policy.Jf&&OA(this)&&(a=1);return this.i.totalLength>=a}; g.k.oi=function(){this.dg();this.X=Date.now();this.ma=!0;var a=this.i;this.i=new lD;return a}; g.k.qg=function(){this.dg();return this.i}; g.k.Ha=function(){return this.U}; g.k.abort=function(){this.ea();this.u&&this.u.cancel().catch(function(){}); this.B&&this.B.abort();this.U=!0}; g.k.xr=function(){return!0}; g.k.OC=function(){return this.G}; g.k.Yd=function(){return this.errorMessage};g.k=qV.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.mu()}}; g.k.Yc=function(a){this.Ha||(this.status=this.xhr.status,this.i||(this.l=a.loaded),this.u.Ix((0,g.P)(),a.loaded))}; g.k.Nm=function(){return 2<=this.xhr.readyState}; g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return Ur(Error("Could not read XHR header "+a)),""}}; g.k.Ws=function(){return+this.getResponseHeader("content-length")}; g.k.Jo=function(){return this.l}; g.k.Rx=function(){return 200<=this.status&&300>this.status&&this.i&&!!this.l}; g.k.dg=function(){return this.i&&!!this.response&&!!this.response.byteLength}; g.k.oi=function(){this.dg();var a=this.response;this.response=void 0;return new lD([new Uint8Array(a)])}; g.k.qg=function(){this.dg();return new lD([new Uint8Array(this.response)])}; g.k.abort=function(){this.Ha=!0;this.xhr.abort()}; g.k.xr=function(){return!1}; g.k.OC=function(){return!1}; g.k.Yd=function(){return""};g.v(tV,XU);g.k=tV.prototype; g.k.Xr=function(){var a=eya(this.timing);a.shost=sB(this.l.ih);a.rn=this.requestNumber.toString();this.u&&(a.rc=this.u.toString());a.itag=this.info.i[0].i.info.kc();a.ml=""+ +this.info.i[0].i.Be();a.sq=""+this.info.i[0].Ka;if(this.l){var b=this.l.ih;rB(b);var c=decodeURIComponent(b.get("mn")||"").split(",");a.ifi=""+ +("/videoplayback"===b.path&&1a.Ua&&eU(a,a.l));return a}; g.k.Ix=function(a,b){if(!this.Ha()&&this.xhr){this.u=this.xhr.status;var c=this.Yp(),d=this.timing;hU(d,a,b);50>a-d.B&&iU(d)&&3!==dU(d)||jya(d,a,b);this.Xq()?ZU(this,2):!c&&this.Yp()&&ZU(this)}}; g.k.AC=function(){if(!this.Ha()&&this.xhr){if(!this.Y&&this.xhr.Nm()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Y=((0,g.P)()-a)/1E3}this.xhr.Nm()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Fn&&!Iza()&&pKa(!0);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.G=a||this.G;this.J=b||this.J}}; g.k.mu=function(){var a=this.xhr;!this.Ha()&&a&&(this.U.stop(),this.u=a.status,a=Nza(this,a),5===a?sV(this):YU(this,a))}; g.k.canRetry=function(){this.Ha();var a=rV(this);return 100>a.timedOut&&a.i=.8*this.ma?(this.B++,this.ea(),b=5<=this.B):this.B=0):(b=this.timing,b.Rg&&jU(b,b.now()),a-=b.X,this.policy.wb&&01E3*b)&&this.ea());this.B&&this.callback&&this.callback(this,this.state);b?Oza(this,!1):this.U.start()}}; g.k.dispose=function(){XU.prototype.dispose.call(this);this.U.dispose();this.policy.gh||uV(this)}; g.k.vz=function(){if(!this.JE().length)return[];this.K=!0;return kza(this.i)}; g.k.Xq=function(){return 1>this.state?!1:this.i&&this.i.Gd.length||this.xhr.dg()?!0:!1}; g.k.JE=function(){Kza(this,!1);return this.i?this.i.Gd:[]}; g.k.Jo=function(){return this.xhr.Jo()}; g.k.dB=function(){return this.Y}; g.k.ea=function(){}; g.k.IE=function(){this.xhr&&(this.G=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.G}; g.k.gH=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.J}; var Eza=0,Lza=-1;vV.prototype.clear=function(){this.l=this.J=this.B=null;this.i=this.C=this.G=this.startTimeSecs=NaN;this.u=!1}; vV.prototype.ea=function(){};g.v(g.xV,g.Q);g.k=g.xV.prototype; g.k.initialize=function(a,b,c){this.ea();a=a||0;this.W("videoformatchange",Cya(this.l));if(this.i.isManifestless){if(this.policy.Ai){b=mB(this.policy);for(var d in this.i.i)this.i.i.hasOwnProperty(d)&&(this.i.i[d].index.l=b)}Zza(this)}this.C&&Qza(this.C,this.videoTrack.i);this.policy.Ea&&NA()&&this.Ja("streaming","ac."+!!window.AbortController,!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.i.isManifestless?d:a;this.X&&(Yza(this,this.videoTrack),Yza(this,this.audioTrack),fDa(this.X), delete this.X);c?(this.policy.wc?(this.bb=c,CV(this,c)):CV(this,!1),g.Eq(this.Va)):(a=0===this.currentTime,yV(this,this.videoTrack,this.videoTrack.i,a),yV(this,this.audioTrack,this.audioTrack.i,a),g.ah(this.seek(this.currentTime),function(){}),this.timing.fb()); (this.i.Vd||this.i.gg||this.i.G||this.i.C||this.i.J)&&this.Ja("minMaxSq","minSq."+this.i.Vd+";maxSq."+this.i.gg+";minDvrTime."+this.i.G+";maxDvrTime."+this.i.C+";startWalltime."+this.i.J)}; g.k.resume=function(){if(this.isSuspended||this.va)this.ea(),this.La=this.va=this.isSuspended=!1,this.fh()}; g.k.setAudioTrack=function(a){if(!this.Ha()){var b=this.l;b.l=b.C.i[a.id];b.J=b.l;a=new yU(b.J,b.i,"m");this.ea();this.W("audioformatchange",a);this.W("reattachrequired")}}; g.k.setPlaybackRate=function(a){a!==this.G.getPlaybackRate()&&this.G.setPlaybackRate(a)}; g.k.fh=function(){FV(this);if(this.mediaSource&&tE(this.mediaSource)&&!this.mediaSource.eg()){var a=cV(this.videoTrack);a=this.policy.Jk&&a&&a.u;this.i.isManifestless&&this.i.K&&PE(this.i)?(this.J=PE(this.i),uE(this.mediaSource,this.J)):this.i.isLive&&!a?isNaN(this.J)?(this.J=this.currentTime+3600,uE(this.mediaSource,this.J)):this.J<=this.currentTime+1800&&(this.J=Math.max(this.J+1800,this.currentTime+3600),uE(this.mediaSource,this.J)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.J)||this.J!==a)&&0b&&c.l.pop();a.u.length?a.l=g.eb(g.eb(a.u).info.i):a.B.l.length?a.l=PU(a.B).info:a.l=cV(a);a.l&&b=c||cthis.u&&(this.u=c,g.Rb(this.i)||(this.i={},this.B.stop(),this.l.stop())),this.i[b]=a,g.Eq(this.l))}}; NV.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.W;for(var d=this.u,e=this.i[c].match(gi),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="+od(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=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.Eq(this.l,c)}; YV.prototype.ra=function(){this.i=[];MV.prototype.ra.call(this)};ZV.prototype.get=function(a){a=aW(this,a);return-1!==a?this.values[a]:null}; ZV.prototype.remove=function(a){a=aW(this,a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))}; ZV.prototype.set=function(a,b){var c=aW(this,a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};g.v(cW,g.Q);g.k=cW.prototype;g.k.lM=function(a){bW(this,"onecpt");a.initData&&ZAa(this,new Uint8Array(a.initData),a.initDataType)}; g.k.WR=function(a){bW(this,"onndky");ZAa(this,a.initData,a.contentType)}; g.k.fp=function(a){bW(this,"onneedkeyinfo");g.S(this.u.experiments,"html5_eme_loader_sync")&&(this.K.get(a.initData)||this.K.set(a.initData,a));dW(this,a)}; g.k.UF=function(a){this.B.push(a);eW(this)}; g.k.createSession=function(a){this.l.get(a.initData);this.va=!0;var b=new QV(this.videoData,this.u,a,this.drmSessionId);this.l.set(a.initData,b);b.subscribe("ctmp",this.II,this);b.subscribe("hdentitled",this.WI,this);b.subscribe("keystatuseschange",this.KE,this);b.subscribe("licenseerror",this.LE,this);b.subscribe("newlicense",this.fJ,this);b.subscribe("newsession",this.gJ,this);b.subscribe("sessionready",this.tJ,this);b.subscribe("fairplay_next_need_key_info",this.UI,this);BAa(b,this.C)}; g.k.fJ=function(a){this.Ha()||(this.ea(),bW(this,"onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.W("heartbeatparams",a)))}; g.k.gJ=function(){this.Ha()||(this.ea(),bW(this,"newlcssn"),this.B.shift(),this.va=!1,eW(this))}; g.k.tJ=function(){if(cF(this.i)&&(this.ea(),bW(this,"onsnrdy"),this.La--,0===this.La)){var a=this.X;a.element.msSetMediaKeys(a.u)}}; g.k.KE=function(a){this.Ha()||(!this.Da&&this.videoData.Z("html5_log_drm_metrics_on_key_statuses")&&(cBa(this),this.Da=!0),this.ea(),bW(this,"onksch"),bBa(this,MAa(a,this.Aa)),this.W("keystatuseschange",a))}; g.k.WI=function(){this.Ha()||this.xa||!eF(this.i)||(this.ea(),bW(this,"onhdet"),this.Ga=fEa,this.W("hdproberequired"),this.W("qualitychange"))}; g.k.II=function(a,b){this.Ha()||this.W("ctmp",a,b)}; g.k.UI=function(a,b){this.Ha()||this.W("fairplay_next_need_key_info",a,b)}; g.k.LE=function(a,b,c,d){this.Ha()||(this.videoData.Z("html5_log_drm_metrics_on_error")&&cBa(this),this.W("licenseerror",a,b,c,d))}; g.k.ra=function(){this.i.keySystemAccess&&this.element&&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.II,this),b.unsubscribe("hdentitled",this.WI,this),b.unsubscribe("keystatuseschange",this.KE,this),b.unsubscribe("licenseerror",this.LE,this),b.unsubscribe("newlicense",this.fJ,this),b.unsubscribe("newsession",this.gJ,this),b.unsubscribe("sessionready",this.tJ,this),b.unsubscribe("fairplay_next_need_key_info", this.UI,this),b.dispose();$V(this.l);$V(this.G);$V(this.K);this.heartbeatParams=null;g.Q.prototype.ra.call(this)}; g.k.Cb=function(){for(var a={systemInfo:this.i.Cb(),sessions:[]},b=g.q(this.l.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Cb());return a}; g.k.Ue=function(){return 0>=this.l.values.length?"no session":this.l.values[0].Ue()+(this.J?"/KR":"")}; g.k.ea=function(){};g.v(gW,g.Q); gW.prototype.handleError=function(a,b){var c=this;gBa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!jW(this,a.errorCode,a.details))&&!jBa(this,a,b))if(!this.i.Z("html5_disable_high_rep_fallback")&&hBa(a)&&this.videoData.u&&this.videoData.u.l)hW(this,a.errorCode,a.details),kW(this,"highrepfallback","1",{mD:!0}),!this.videoData.Z("html5_hr_logging_killswitch")&&/^hr/.test(this.videoData.clientPlaybackNonce)&&btoa&&kW(this,"afmts",btoa(this.videoData.adaptiveFormats), {mD:!0}),Xma(this.videoData),this.W("highrepfallback");else if(a.i){b=this.l?this.l.l.u:null;if(hBa(a)&&b&&b.isLocked())var d="FORMAT_UNAVAILABLE";else if(!this.i.C&&"auth"===a.errorCode&&"429"===a.details.rc){d="TOO_MANY_REQUESTS";var e="6"}this.W("playererror",a.errorCode,d,g.nE(a.details),e)}else this.W("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),hW(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.P)(),(new oV(a,"manifest",function(f){c.ma=!0;kW(c,"pathprobe",f)},function(f){hW(c,f.errorCode,f.details)})).send())}; gW.prototype.ra=function(){this.u=this.l=null;g.Q.prototype.ra.call(this)}; gW.prototype.ea=function(){};lW.prototype.setPlaybackRate=function(a){this.playbackRate=a}; lW.prototype.Z=function(a){return g.S(this.i.experiments,a)};g.v(nW,g.E);nW.prototype.Dc=function(a){GBa(this);this.playerState=a.state;0<=this.u&&g.UI(a,16)&&this.seekCount++;a.state.isError()&&this.send()}; nW.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(UKa)?this.networkErrorCount++:this.nonNetworkErrorCount++)}; nW.prototype.send=function(){if(!(this.B||0>this.l)){GBa(this);var a=g.jT(this.i)-this.l,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.U(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.U(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.U(this.playerState,16)||g.U(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.U(this.playerState,1)&&g.U(this.playerState, 4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.U(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.U(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.U(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");var d=LH(this.i.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=HBa(this.i);var e=0>this.u?a:this.u-this.l;a=this.i.i.bb+36E5<(0,g.P)();b={started:0<=this.u,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs, rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.i.videoData.isAd(),liveMode:c,hasDrm:!!g.JH(this.i.videoData),isGapless:this.i.videoData.Ua};!a&&this.i.Z("html5_health_to_gel")&&g.Bv("html5PlayerHealthEvent",b);this.i.Z("html5_health_to_qoe")&&(b.muted=a,this.J(g.nE(b)));this.B=!0;this.dispose()}}; nW.prototype.ra=function(){this.B||this.send();g.E.prototype.ra.call(this)}; var UKa=/\bnet\b/;var JBa=window;g.v(g.rW,g.E);g.k=g.rW.prototype;g.k.iP=function(){var a=g.jT(this.i);sW(this,a)}; g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.Ha()&&(a=0<=a?a:g.jT(this.i),-1<["PL","B","S"].indexOf(this.hd)&&(!g.Rb(this.l)||a>=this.B+30)&&(g.qW(this,a,"vps",[this.hd]),this.B=a),!g.Rb(this.l))){7E3===this.sequenceNumber&&g.Ux(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){tW(this,a);var b=a,c=this.i.l.xt(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Va,h=e&&!this.eb;if(d>c.totalVideoFrames||5E3=this.playTimeSecs&&(this.i.l.Xt(),this.l.qoealert=["1"],this.Da=!0)}"B"!==a||"PL"!==this.hd&&"PB"!==this.hd||(this.ma=!0);this.B=c}"PL"===this.hd&&("B"=== a||"S"===a)||this.i.videoData.X?tW(this,c):sW(this,c);"PL"===a&&g.Eq(this.wb);g.qW(this,c,"vps",[a]);this.hd=a;this.B=this.La=c;this.C=!0}a=b.getData();g.U(b,128)&&a&&OBa(this,c,a.errorCode,a.QJ);(g.U(b,2)||g.U(b,128))&&this.reportStats(c);b.tc()&&!this.G&&(0<=this.u&&(this.l.user_intent=[this.u.toString()]),this.G=!0);uW(this)}; g.k.cj=ba(15);g.k.getPlayerState=function(a){if(g.U(a,128))return"ER";if(g.U(a,512))return"SU";if(g.U(a,16)||g.U(a,32))return"S";var b=VKa[KK(a)];g.bG(this.i.i)&&"B"===b&&3===this.i.l.getVisibilityState()&&(b="SU");"B"===b&&g.U(a,4)&&(b="PB");return b}; g.k.ra=function(){g.E.prototype.ra.call(this);window.clearInterval(this.Pa)}; g.k.Ja=function(a,b,c){var d=this.l.ctmp||[],e=-1!==this.yb.indexOf(a);e||this.yb.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.jT(this.i);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.ea();this.l.ctmp=d;uW(this);return f}}; g.k.ea=function(){}; var a3={},VKa=(a3[5]="N",a3[-1]="N",a3[3]="B",a3[0]="EN",a3[2]="PA",a3[1]="PL",a3);RBa.prototype.update=function(){if(this.K){var a=this.l.l.getCurrentTime()||0,b=g.jT(this.l);if(a!==this.i||VBa(this,a,b)){var c;if(!(c=ab-this.lastUpdateTime+2||VBa(this,a,b))){var d=this.l.Je();c=d.volume;var e=c!==this.Y;d=d.muted;d!==this.U?(this.U=d,c=!0):(!e||0<=this.C||(this.Y=c,this.C=b),c=b-this.C,0<=this.C&&2=this.i.videoData.wb;a&&(this.B&&this.i.videoData.wb&&(a=EW(this,"delayplay"),a.Ac=!0,a.send(),this.Y=!0),YBa(this))}; g.k.Dc=function(a){this.Ha()||(g.U(a.state,2)?(this.currentPlayerState="paused",g.UI(a,2)&&this.B&&HW(this).send()):g.U(a.state,8)?(this.currentPlayerState="playing",this.B&&isNaN(this.u)&&FW(this,!1)):this.currentPlayerState="paused")}; g.k.ra=function(){g.E.prototype.ra.call(this);g.os(this.u);this.u=NaN;TBa(this.l)}; g.k.Cb=function(){return BW(EW(this,"playback"))}; g.k.lh=function(a){var b=EW(this,"engage");b.K=a;return WBa(b,eCa(this.i))};dCa.prototype.isEmpty=function(){return this.endTime===this.startTime};IW.prototype.Z=function(a){return g.S(this.i.experiments,a)}; var fCa={other:1,none:2,wifi:3,cellular:7};g.v(g.JW,g.E);g.k=g.JW.prototype;g.k.Dc=function(a){var b;if(g.UI(a,1024)||g.UI(a,512)||g.UI(a,4)){if(this.u){var c=this.u;0<=c.u||(c.l=-1,c.delay.stop())}this.qoe&&(c=this.qoe,c.G||(c.u=-1))}this.l.videoData.enableServerStitchedDai&&this.Mf?null===(b=this.B.get(this.Mf))||void 0===b?void 0:b.Dc(a):this.i&&this.i.Dc(a);this.qoe&&this.qoe.Dc(a);this.u&&this.u.Dc(a)}; g.k.Yc=function(){var a;this.l.videoData.enableServerStitchedDai&&this.Mf?null===(a=this.B.get(this.Mf))||void 0===a?void 0:a.Yc():this.i&&this.i.Yc()}; g.k.onError=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.u)this.u.onError(a)}; g.k.Ja=function(a,b,c){this.qoe&&this.qoe.Ja(a,b,c)}; g.k.cj=ba(14);g.k.Cb=function(){var a;if(this.l.videoData.enableServerStitchedDai&&this.Mf)null===(a=this.B.get(this.Mf))||void 0===a?void 0:a.Cb();else if(this.i)return this.i.Cb();return{}}; g.k.lh=function(a){return this.i?this.i.lh(a):function(){}};g.v(KW,g.E);g.k=KW.prototype;g.k.Dd=function(a){this.Ek();var b=this.i;if(1b.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||0a&&this.B.start()))}; g.k.SA=function(a){var b=[];if(!a.length)return b;for(var c=0;ca&&(a=(a-this.u)/this.X(),this.B.start(a)))}}; g.k.PH=function(){if(this.started&&!this.Ha()){this.B.stop();var a=this.J();g.U(a,32)&&this.U.start();for(var b=g.U(this.J(),2)?0x8000000000000:1E3*this.Y(),c=g.U(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.XA(e));f=e=null;c?(a=pCa(this.i,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=qCa(this.i)):a=this.u<=b&&IK(a)?oCa(this.i,this.u,b):pCa(this.i,b); d=d.concat(this.SA(a));e&&(d=d.concat(this.XA(e)));f&&(d=d.concat(this.SA(f)));this.u=b;tCa(this,d)}}; g.k.ra=function(){this.l=[];this.i.i=[];g.E.prototype.ra.call(this)}; g.cT.Ow(KW,{Dd:"crmacr",SA:"crmncr",XA:"crmxcr",PH:"crmis",Rf:"crmrcr"});g.v(OW,g.Q);OW.prototype.ea=function(){};g.v(UW,g.E);UW.prototype.Dc=function(a){this.playerState=a.state}; UW.prototype.U=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=Qoa(this.playerState),f=this.visibility.isBackground()||this.playerState.isSuspended();VW(this,this.Da,e&&!f,d,"qoe.slowseek",function(){},"timeout"); e=e&&isFinite(this.i)&&0c+5;m=e&&d&&m;VW(this,this.X,m&&!f,e&&!d,"qoe.longrebuffer",h,"jiggle_cmt");VW(this,this.ma,m&&!f,e&&!d,"qoe.longrebuffer",l,"new_elem_nnr");if(this.l){var p=this.l.getCurrentTime();h=b.Ko();h=Kja(h,p);h=!this.l.B.i&&c===h;VW(this,this.Ua,e&&d&&h&&!f,e&&!d&&!h,"qoe.longrebuffer",function(){b.seekTo(p)},"seek_to_loader")}VW(this,this.va, e&&d&&!f,e&&!d,"qoe.longrebuffer",function(){},"timeout"); f=this.playerState.isSuspended();f=this.K()&&!f;VW(this,this.Y,f,!f,"qoe.start15s",function(){return a.W("releaseadsprerolllock")},"ads_preroll_timeout"); f=.5>c-this.J;h=this.videoData.isAd()&&e&&!d&&f;e=function(){return a.W("skipslowad")}; VW(this,this.La,h,!h,"ad.rebuftimeout",e,"skip_slow_ad");f=this.videoData.isAd()&&d&&gE(b.Nf(),c+5)&&f;VW(this,this.Pa,f,!f,"ad.rebuftimeout",e,"skip_slow_ad_buf");this.J=c;this.C.start()}}; UW.prototype.wd=function(a,b,c){b=this.Cb(b);b.wn=c;b.wdup=this.G[a]?"1":"0";this.W("qoeerror",a,b);this.G[a]=!0}; UW.prototype.Cb=function(a){a=a.Cb();this.i&&(a.stt=this.i.toFixed(3));this.l&&Object.assign(a,this.l.Cb());this.B&&Object.assign(a,this.B.Cb());return a}; SW.prototype.reset=function(){this.i=this.triggerTimestamp=this.l=this.startTimestamp=0;this.u=!1}; SW.prototype.Cb=function(){var a={},b=(0,g.P)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.triggerTimestamp&&(a.wtd=(b-this.triggerTimestamp).toFixed());this.i&&(a.wssd=(b-this.i).toFixed());return a};g.v(XW,g.Q);g.k=XW.prototype;g.k.ni=function(a){ZW(this);this.videoData=a;this.U=this.u=null;this.C=this.Pa=this.timestampOffset=0;this.Ga=!0;this.K.dispose();a=this.K=new UW(this.Y,this.videoData,(0,g.C)(this.W,this),this.visibility,this.Ya);var b=this.i;(a.B=b)&&g.Eq(a.C);this.K.l=this.B}; g.k.Dc=function(a){this.K.Dc(a);this.Z("html5_exponential_memory_for_sticky")&&(a.state.tc()?g.Eq(this.xa):this.xa.stop());var b;if(b=this.i)b=8===a.Zm.state&&IK(a.state)&&g.JK(a.state)&&this.policy.u;if(b){a=this.i.getCurrentTime();b=this.i.Nf();var c=this.Z("manifestless_post_live_ufph")||this.Z("manifestless_post_live")?fE(b,Math.max(a-3.5,0)):fE(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.bb-c)||(this.W("ctmp","seekover","b."+eE(b, "_")+";cmt."+a),this.bb=c,this.seekTo(c,{Ct:!0,ke:"playbacktimeline_postLiveDisc"})))}}; g.k.getCurrentTime=function(){return!isNaN(this.l)&&isFinite(this.l)?this.l:this.i&&OCa(this)?this.i.getCurrentTime()+this.timestampOffset:this.C||0}; g.k.jl=function(){return this.getCurrentTime()-this.Lc()}; g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return RW(this.u,a)}; g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.NK?!1:c.NK;var d=void 0===c.OK?0:c.OK,e=void 0===c.Ct?!1:c.Ct,f=void 0===c.BD?0:c.BD;c=void 0===c.ke?null:c.ke;var h=a,l=!isFinite(h)||(this.u?RW(this.u,h):h>=YW(this))||!g.OH(this.videoData);l||this.W("ctmp","seeknotallowed",h+";"+YW(this));if(!l)return this.G&&(this.G=null,eX(this)),Tg(this.getCurrentTime());this.ea();if(.005>Math.abs(a-this.l)&&this.ma)return this.ea(),this.J;c&&(h=a,(g.CH(this.videoData)||this.Z("html5_log_seek_reasons"))&& this.W("ctmp","seekreason","reason."+c+";tgt."+h));this.ma&&ZW(this);this.J||(this.J=new aT);a&&!isFinite(a)&&aX(this,!1);c=a;(dX(this)&&!(this.i&&0this.i;)a[e++]^=d[this.i++];for(var f=c-(c-e)%16;e>31)}this.i.aI&&mR(a,16,this.i.aI);this.i.viewportHeight&&this.i.viewportWidth&&(mR(a,18,this.i.viewportWidth),mR(a,19,this.i.viewportHeight));this.i.tK&&mR(a,21,this.i.tK);this.i.cG&&mR(a,23,this.i.cG);void 0!==this.i.visibilityState&&mR(a,34,this.i.visibilityState);void 0!==this.i.AK&&mR(a,39,this.i.AK)};g.v(BX,wX);BX.prototype.l=function(a){nR(a,2,this.i);nR(a,5,this.encryptedClientKey);nR(a,6,this.iv);nR(a,7,this.hmac);mR(a,10,this.serializeResponseAsJson?1:0)};g.v(CX,wX);CX.prototype.l=function(a){ava(a);this.i.l(a);bva(a);nR(a,3,xX(this.u));this.onesieUstreamerConfig&&nR(a,4,this.onesieUstreamerConfig)};xDa.prototype.feed=function(a){nD(this.i,a);yDa(this)};var d3={init:"0-1",index:"2-3",clen:"",url:"",sp:"",s:"",lmt:""},FDa=[Object.assign({itag:"137",bitrate:"4000000",size:"1920x1080",fps:"30",type:'video/mp4; codecs="avc1.4d401e"'},d3),Object.assign({itag:"248",bitrate:"2000000",fps:"30",size:"1920x1080",type:'video/webm; codecs="vp9"'},d3),Object.assign({itag:"399",bitrate:"1000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="av01.0.08M.08"'},d3),Object.assign({itag:"299",bitrate:"5000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="avc1.64001e"'}, d3),Object.assign({itag:"303",bitrate:"3000000",fps:"60",size:"1920x1080",type:'video/webm; codecs="vp9"'},d3),Object.assign({itag:"140",type:'audio/mp4; codecs="mp4a.40.2"'},d3),Object.assign({itag:"251",audio_sample_rate:"48000",type:'audio/webm; codecs="opus"'},d3)],e3={},DDa=(e3["137"]=["136","135","134","133","160"],e3["248"]=["247","244","243","242","278"],e3["399"]=["398","397","396","395","394"],e3["299"]="298 137 136 135 134 133 160".split(" "),e3["303"]="302 248 247 244 243 242 278".split(" "), e3["140"]=[],e3["251"]=["250"],e3),f3={},zDa=(f3["160"]=0,f3["133"]=22639,f3["134"]=45778,f3["135"]=73749,f3["136"]=153645,f3["137"]=332697,f3["278"]=0,f3["242"]=22702,f3["243"]=42954,f3["244"]=73575,f3["247"]=139201,f3["248"]=259369,f3["298"]=260272,f3["299"]=589187,f3["302"]=295858,f3["303"]=528496,f3["394"]=0,f3["395"]=18457,f3["396"]=37231,f3["397"]=65872,f3["398"]=133087,f3["399"]=236318,f3),g3={},ADa=(g3["133"]=240,g3["134"]=360,g3["135"]=480,g3["136"]=720,g3["137"]=1080,g3["242"]=240,g3["243"]= 360,g3["244"]=480,g3["247"]=720,g3["248"]=1080,g3["298"]=720,g3["299"]=1080,g3["302"]=720,g3["303"]=1080,g3["395"]=240,g3["396"]=360,g3["397"]=480,g3["398"]=720,g3["399"]=1080,g3),BDa=["1","9","h"];g.k=HDa.prototype;g.k.jf=function(a){this.i.jf(a)}; g.k.Gx=function(a,b){var c;null===(c=this.Zp)||void 0===c?void 0:(c.me[a].Os=b,c.ea())}; g.k.Ja=function(a,b){this.i.Ja(a,b)}; g.k.fetch=function(){return g.D(this,function b(){var c=this,d,e,f,h,l,m,n,p,r,t;return g.z(b,function(u){c.ea();c.C.start();c.jf("ogpd");var x=c.playerRequest,y=c.l,B=c.videoData,G=y.qf;G="https://youtubei.googleapis.com/youtubei/"+G.innertubeApiVersion+"/player?key="+G.innertubeApiKey;var H=[new yX({name:"Content-Type",value:"application/json"})],I=B.Ve();I&&H.push(new yX({name:"Authorization",value:"Bearer "+I}));H.push(new yX({name:"User-Agent",value:g.Tc}));(B=B.visitorData||g.O("VISITOR_DATA", void 0))&&H.push(new yX({name:"X-Goog-Visitor-Id",value:B}));(y=g.$E(y.experiments,"debug_sherlog_username"))&&H.push(new yX({name:"X-Youtube-Sherlog-Username",value:y}));x=JSON.stringify(x);e=new zX({url:G,httpHeaders:H,postBody:x});try{var M=c.l;var L=c.i.getPlayerSize();var da=c.i.getVisibilityState();var Ba=c.J.onesieUstreamerConfig,za=c.B;var ed=za.encrypt(xX(e));var We=za.i.encryptedClientKey,oc=za.iv,Ee=za.iv,Fd=new nX(za.i.l);Fd.update(ed);Fd.update(Ee);var Hh=YCa(Fd);Fd.update(Fd.C);Fd.update(Hh); var Pg=YCa(Fd);Fd.reset();var jc=new BX(ed,We,oc,Pg);za={};var Xl=AF(0);if(Xl){za.aI=Xl;za.lastManualDirection=kka();var Yl=Zy()||0;0=a.start);return a}; g.k.tc=function(){return this.playerState.tc()}; g.k.getPlayerState=function(){return this.playerState}; g.k.getPlayerType=function(){return this.playerType}; g.k.getPreferredQuality=function(){if(this.U){var a=this.U;a=a.videoData.Lp.compose(a.videoData.UG);a=WA(a)}else a="auto";return a}; g.k.nt=ba(9);g.k.isGapless=function(){return!!this.i&&this.i.isView()}; g.k.yg=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.ea();if(this.i){var c=this.getCurrentTime();0this.i.getCurrentTime()&&this.l)return;break;case "resize":uEa(this);this.videoData.l&&"auto"===this.videoData.l.fb().quality&& this.W("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.mf&&g.U(this.playerState,8)&&!g.U(this.playerState,1024)&&0===this.getCurrentTime()&&g.cj){RX(this,"safari_autoplay_disabled");return}}if(this.i&&this.i.vf()===b){this.W("videoelementevent",a);b=this.playerState;if(!g.U(b,128)){c=this.eb;e=this.i;var f=this.u.experiments;d=b.state;e=e?e:a.target;var h=e.getCurrentTime();if(!g.U(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.ck()||1Math.abs(h-e.getDuration()); h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.U(b,4)&&!LW(c,h);if("pause"===a.type&&e.ck()||l&&h)0a-this.wb))this.wb=a,b!==this.zf()&&(a=this.visibility,a.i!==b&&(a.i=b,a.Fe()),this.Ja("airplay","rbld_"+b),LX(this)),this.W("airplayactivechange")}; g.k.Rb=function(a){var b=this;a=void 0===a?!1:a;if(this.i&&this.videoData){KCa(this.B,this.tc());var c=this.getCurrentTime();this.l&&(g.U(this.playerState,4)&&g.OH(this.videoData)||kAa(this.l,c));5Math.abs(l-f)?(b.Ja("setended","ct."+f+";bh."+h+";dur."+l+";live."+ +m),m&&b.Z("html5_set_ended_in_pfx_live_cfl")||(b.i.ov()?(b.ea(),b.seekTo(0,{ke:"videoplayer_loop"})):kT(b))):(g.JK(b.playerState)||fY(b,"progress_fix"),b.Lb(DK(b.playerState,1)))):(l&&!m&&!n&&0m-1&&b.Ja("misspg", "t:"+f.toFixed(2)+";d:"+m.toFixed(2)+";r:"+l.toFixed(2)+";bh:"+h.toFixed(2))),g.U(b.playerState,4)&&g.JK(b.playerState)&&5TI(b,8)||g.UI(b,1024))&&this.Ga.stop();!g.UI(b,8)||this.videoData.Ya||g.U(b.state,1024)||this.Ga.start();g.U(b.state,8)&&0>TI(b,16)&&!g.U(b.state,32)&&!g.U(b.state,2)&&this.playVideo();g.U(b.state,2)&&PH(this.videoData)&&(a=this.getCurrentTime(),this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,PX(this)),this.Rb(!0));g.UI(b,2)&&this.aD(!0);g.UI(b,128)&&this.Jl();this.videoData.i&&this.videoData.isLivePlayback&&!this.yf&& (0>TI(b,8)?(a=this.videoData.i,a.B&&a.B.stop()):g.UI(b,8)&&this.videoData.i.resume());this.B.Dc(b);this.C.Dc(b);if(c&&!this.Ha())try{for(var e=g.q(this.Hb),f=e.next();!f.done;f=e.next()){var h=f.value;this.Y.Dc(h);this.W("statechange",h)}}finally{this.Hb.length=0}}}; g.k.Xt=function(){this.videoData.isLivePlayback||this.W("connectionissue")}; g.k.yC=function(){this.K.tick("qoes")}; g.k.rM=function(a,b,c,d){a:{var e=this.G;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"===a&&this.J&&1e.Y)a="drm.sessionlimitexhausted",b=!1;else if(e.videoData.Z("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"===a&&2>e.X&&(e.X++,e.W("removedrmplaybackmanager"),1=e.l.values.length){var f="ns;";e.Y||(f+="nr;");e=f+="ql."+e.B.length}else e=NAa(e.l.values[0]);d.drmp=e}Object.assign(c,(null===(a=this.l)||void 0===a?void 0:a.Cb())||{});Object.assign(c,(null===(b=this.i)||void 0===b?void 0:b.Cb())||{})}this.C.onError("qoe.start15s",g.nE(c));this.W("loadsofttimeout")}}; g.k.bT=function(){g.U(this.playerState,128)||this.mediaSource&&vE(this.mediaSource)||(this.C.onError("qoe.restart",g.nE({detail:"bufferattach"})),this.uf++,IX(this))}; g.k.aD=function(a){var b=this;a=void 0===a?!1:a;if(!this.La){IA("att_s","player_att")||JA("att_s","player_att");var c=new g.Sra(this.videoData);if("c1a"in c.i&&!WM.Ud()&&(JA("att_wb","player_att"),2===this.bb&&.01>Math.random()&&g.Ux(Error("Botguard not available after 2 attempts")),!a&&5>this.bb)){g.Eq(this.xc);this.bb++;return}if("c1b"in c.i){var d=jCa(this.C);d&&g.Vra(c).then(function(e){e&&!b.La&&d?(JA("att_f","player_att"),d(e),b.La=!0):JA("att_e","player_att")},function(){JA("att_e","player_att")})}else(a= Tra(c))?(JA("att_f","player_att"),iCa(this.C,a),this.La=!0):JA("att_e","player_att")}}; g.k.getMinSeekableTime=function(){return this.B.getMinSeekableTime()}; 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&&32this.K.startTimeMs||this.l.seekTo(.001*this.K.startTimeMs,{ke:"application_loopRangeStart"}))}; g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=JEa(this,a),this.l.getPlaybackRate()!==a&&(this.l.setPlaybackRate(a),b&&!this.i.l&&nKa(a),this.Wa.Na("onPlaybackRateChange",a)))}; g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return g.kN(this.G).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.W(this):g.W(this,a);if(!a)return 0;if(b){if(c&&this.C&&(b=this.C.Ya/1E3,0!==b))return b;b=qY(this,a);return BY(this,b.getCurrentTime(),b)}c&&this.C?(b=a.getCurrentTime(),b=(c=uxa(this.C,1E3*b))?b-c.start/1E3:b):b=a.getCurrentTime();return b}; g.k.Fq=function(){var a=g.W(this,void 0);if(!a)return 0;a=qY(this,a);return BY(this,a.Fq(),a)}; g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.W(this):g.W(this,a);if(!a)return 0;if(b)return b=pY(this,a),BY(this,b.getDuration(),b);c&&this.C?(b=a.getCurrentTime(),b=(b=sT(this.C,1E3*b))?b.durationMs/1E3:0):b=a.getDuration();return b}; g.k.getMinSeekableTime=function(a){a=g.W(this,a);if(!a)return 0;a=pY(this,a);return BY(this,a.getMinSeekableTime(),a)}; g.k.getIngestionTime=function(a){var b=g.W(this,a);return b?this.Md(b)?(b=pY(this,b),b.getIngestionTime()-b.getCurrentTime()+this.getCurrentTime(a)):b.getIngestionTime():0}; g.k.KA=function(){this.template.KA();var a=this.I;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=lx(this.template.element))&&this.events.N(this.template,a,this.sR);this.events.N(window,"resize",this.HS)}; g.k.getDebugText=function(a){var b=this.l.Cb(a);if(this.u&&this.u!==this.l){for(var c=this.u.Cb(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=Zf("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.cg("video-ads");f?(pFa(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.cg("videoAdUiSkipContainer"),l=g.cg("ytp-ad-skip-button-container"),m=h||l;m?(pFa(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===Uf(this.B.Vp()),b.op=this.B.vt("opacity"),c=this.B.Em().y+this.B.Vp().height,b.yof=0>=c,b.dis=this.B.vt("display"));(a=a?(0,g.wW)():null)&&(b.gpu=a);b.cgr=!0;b.debug_playbackQuality=this.Wa.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.sb().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.Y?1:iY(this)?3:a&&(null===(b=this.C)||void 0===b?0:b.isAdPlaying(this.getCurrentTime()))?2:g.W(this).getPlayerType()}; g.k.sb=function(a){return 3===this.getPresentingPlayerType()?g.kN(this.G).hd:g.W(this,a).getPlayerState()}; g.k.getAppState=function(){return this.Y}; g.k.AM=function(a){switch(a.type){case "loadedmetadata":IA("fvb",this.J.timerName)||this.J.tick("fvb");JA("fvb","video_to_ad");this.Va.start();break;case "loadstart":IA("gv",this.J.timerName)||this.J.tick("gv");JA("gv","video_to_ad");break;case "progress":case "timeupdate":!IA("l2s",this.J.timerName)&&2<=iE(a.target.Nf())&&this.J.tick("l2s");break;case "playing":g.IG&&this.Va.start();if(g.bG(this.i))a=!1;else{var b=g.mN(this.rb());a="none"===this.B.vt("display")||0===Uf(this.B.Vp());var c=VT(this.template), d=this.u.getVideoData(),e=g.VF(this.i)||g.XF(this.i);d=yH(d);b=!c||b||e||d||this.i.yb;a=a&&!b}a&&(this.u.Ja("hidden","1",!0),this.getVideoData().jb||(this.Z("html5_new_elem_on_hidden")?(this.getVideoData().jb=1,this.eJ(null),this.u.playVideo()):mY(this,"hidden",!0)))}}; g.k.GR=function(a,b){this.Wa.Na("onLoadProgress",b)}; g.k.eT=function(){this.Wa.W("playbackstalledatstart")}; g.k.CM=function(a,b){a=qY(this,a);b=BY(this,a.getCurrentTime(),a);this.Wa.Na("onVideoProgress",b)}; g.k.oR=function(){this.Wa.Na("onDompaused")}; g.k.sS=function(){this.Wa.W("progresssync")}; g.k.NQ=function(a){if(1===this.getPresentingPlayerType()){g.UI(a,1)&&!g.U(a.state,64)&&rY(this).isLivePlayback&&this.l.isAtLiveHead()&&1Math.random()&&g.Bv("autoplayTriggered",{intentional:this.xc});this.Gc=!1;this.Wa.Na("onPlaybackStartExternal");g.S(this.i.experiments,"mweb_client_log_screen_associated");(function(){var c=g.Ix(a.Tc||(a.Ce()?3:0));if(c){var d={cpn:a.getVideoData().clientPlaybackNonce,csn:c};if(g.S(a.i.experiments, "web_playback_associated_ve")&&a.getVideoData().Ga){var e=g.Cx(a.getVideoData().Ga);g.by(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.Z("web_playback_associated_log_ctt")&&a.getVideoData().Va&&(c.Ie={token:a.getVideoData().Va,videoId:a.getVideoData().videoId});g.Bv("playbackAssociated",d,c)}})(); CA("player_att",["att_f","att_e"]);if(this.Z("web_player_inline_botguard")){var b=this.getVideoData().botguardData;b&&(this.Z("web_player_botguard_inline_skip_config_killswitch")&&(Kr("BG_I",b.interpreterScript),Kr("BG_IU",b.interpreterUrl),Kr("BG_P",b.program)),g.BG(this.i)?bu(eu(),function(){yY(a)}):yY(this))}this.Zx()}; g.k.yM=function(){this.Wa.W("internalAbandon");this.Z("html5_ad_module_cleanup_killswitch")||CY(this)}; g.k.OI=function(a){a=a.i;if(!isNaN(a)&&0window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.B.Ns())}; g.k.FR=function(a){3!==this.getPresentingPlayerType()&&this.Wa.W("liveviewshift",a)}; g.k.playVideo=function(a){this.ea();if(a=g.W(this,a))2===this.Y?xY(this):(null!=this.U&&this.U.vb&&this.U.start(),g.U(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())}; g.k.pauseVideo=function(a){(a=g.W(this,a))&&a.pauseVideo()}; g.k.stopVideo=function(){this.ea();var a=this.l.getVideoData(),b=new g.rH(this.i,{video_id:a.Pz||a.videoId,oauth_token:a.oauthToken});b.Bb=g.Vb(a.Bb);this.cancelPlayback(6);HY(this,b,1);null!=this.U&&this.U.stop()}; g.k.cancelPlayback=function(a,b){this.ea();pv(this.Aa);this.Aa=0;var c=g.W(this,b);c?1===this.Y||2===this.Y?this.ea():(c===this.u&&(this.ea(),MN(this.G,a)),1===b&&(g.S(this.i.experiments,"html5_stop_video_in_cancel_playback")&&c.stopVideo(),CY(this)),c.Jl(),kY(this,"cuerangesremoved",c.Bm()),c.Y.reset(),this.Da&&c.isGapless()&&(c.yg(!0),dT(c,this.B))):this.ea()}; g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.W(this,b))&&this.i.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()}; g.k.lh=function(a){var b=g.W(this,void 0);return b&&this.i.enabledEngageTypes.has(a.toString())?b.lh(a):null}; g.k.updatePlaylist=function(){zG(this.i)?uY(this):g.MF(this.i)&&vY(this);this.Wa.Na("onPlaylistUpdate")}; g.k.setSizeStyle=function(a,b){this.cd=a;this.Hb=b;this.Wa.W("sizestylechange",a,b);this.template.resize()}; g.k.isWidescreen=function(){return this.Hb}; g.k.Ce=function(){return this.visibility.Ce()}; g.k.isInline=function(){return this.visibility.isInline()}; g.k.Lq=function(){return this.visibility.Lq()}; g.k.Jq=function(){return this.visibility.Jq()}; g.k.LB=function(){return this.cd}; g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return g.kN(this.G).getAdState();if(!this.Md()){var a=NN(this.rb());if(a)return a.getAdState()}return-1}; g.k.GS=function(a){var b=this.template.getVideoContentRect();ql(this.Ac,b)||(this.Ac=b,this.u&&TX(this.u),this.l&&this.l!==this.u&&TX(this.l),1===this.visibility.fullscreen&&this.La&&lFa(this,!0));this.Jb&&g.Tf(this.Jb,a)||(this.Wa.W("appresize",a),this.Jb=a)}; g.k.Xe=function(){return this.Wa.Xe()}; g.k.YS=function(){2===this.getPresentingPlayerType()&&this.X.isManifestless()&&!this.Z("web_player_manifestless_ad_signature_expiration_killswitch")?Mxa(this.X):(this.C&&vT(this.C),mY(this,"signature",void 0,!0))}; g.k.eJ=function(){this.yg();jY(this)}; g.k.ES=function(a){fT(a,this.B.qv())}; g.k.YR=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Wa.Na("onPlayerRequestAuthFailed")}; g.k.Xt=function(){this.Wa.Na("CONNECTION_ISSUE")}; g.k.xM=function(a){this.Wa.W("heartbeatparams",a)}; g.k.Vx=function(a){this.Wa.Na("onAutonavChangeRequest",1!==a)}; g.k.md=function(){return this.B}; g.k.setBlackout=function(a){this.i.yb=a;this.u&&(this.u.Jp(),this.i.X&&oFa(this))}; g.k.setAccountLinkState=function(a){var b=g.W(this);b&&(b.getVideoData().lF=a,b.Jp())}; g.k.updateAccountLinkingConfig=function(a){var b=g.W(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Wa.W("videodatachange","dataupdated",c,b.getPlayerType())}}; g.k.aS=function(){var a=g.W(this);if(a){var b=!this.Wa.Kt();(a.Gc=b)||a.Ga.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():$X(a,!0));g.S(a.u.experiments,"html5_fludd_suspend")&&(g.U(a.playerState,2)||b?g.U(a.playerState,512)&&b&&a.Lb(EK(a.playerState,512)):a.Lb(DK(a.playerState,512)));a=a.C;a.qoe&&(a=a.qoe,g.qW(a,g.jT(a.i),"stream",[b?"A":"I"]))}}; g.k.IR=function(){this.Wa.Na("onLoadedMetadata")}; g.k.pR=function(){this.Wa.Na("onDrmOutputRestricted")}; g.k.VB=function(){this.xc=!0}; g.k.ra=function(){this.G.dispose();this.X.dispose();this.C&&this.C.dispose();this.l.dispose();this.yg();g.ff(Lb(this.Ob),this.playlist);pv(this.Aa);this.Aa=0;g.E.prototype.ra.call(this)}; g.k.ea=function(){}; g.k.Z=function(a){return g.S(this.i.experiments,a)}; g.k.jy=function(){return this.Ya}; g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)}; g.k.setScreenLayer=function(a){this.Tc=a}; g.k.seekToChapterWithAnimation=function(a){var b,c,d=null===(b=dN(this.rb()))||void 0===b?void 0:b.Vs(),e=null===(c=this.getVideoData())||void 0===c?void 0:c.Jk;if(this.Z("web_player_seek_chapters_by_shortcut")&&e&&d instanceof g.oO&&ar.start&&dG;G++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(u.charAt(G)),4==G% 5){for(var H="",I=0;6>I;I++)H="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+H,y>>=5;B+=H}u=B.substr(0,4)+" "+B.substr(4,4)+" "+B.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+(1a)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=OT(h,"bandwidth");l.network_activity_samples=OT(h,"networkactivity");l.live_latency_samples=OT(h,"livelatency");l.buffer_health_samples=OT(h,"bufferhealth");c.Z("woffle_orchestration")&&(b=g.bI(c),c.cotn||b)&&(l.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b); l.cotn_and_local_media_style=l.cotn_and_local_media?"":"display:none";zH(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20210623_1_RC0",l.release_style=""):l.release_style="display:none";return l}; g.k.getVideoUrl=function(a,b,c,d,e){return this.K&&this.K.postId?(a=this.i.getVideoUrl(a),a=yi(a,"v"),a.replace("/watch","/clip/"+this.K.postId)):this.i.getVideoUrl(a,b,c,d,e)}; var h3={};g.Ha("yt.player.Application.create",g.gY.create,void 0);g.Ha("yt.player.Application.createAlternate",g.gY.create,void 0);Nx(Ox(),{Bl:[{Qt:/Unable to load player module/,weight:5},{Qt:/Failed to fetch/,weight:500},{Qt:/XHR API fetch failed/,weight:10},{Qt:/JSON parsing failed after XHR fetch/,weight:10},{Qt:/Retrying OnePlatform request/,weight:10}]});var WKa=g.Ia("ytcsi.tick");WKa&&WKa("pe");var XKa={C4:"replaceUrlMacros",o_:"isExternalShelfAllowedFor",A3:"onAboutThisAdPopupClosed"};MY.prototype.Tj=function(){return"adLifecycleCommand"}; MY.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.Ig(function(){b.controller.tm()}); break;case "END_LINEAR_AD_PLACEMENT":g.Ig(function(){b.controller.Rj()}); break;case "FILL_ABOVE_FEED_SLOT":g.Ig(function(){a.elementId&&b.controller.bw(a.elementId)}); break;case "CLEAR_ABOVE_FEED_SLOT":g.Ig(function(){b.controller.Qv()})}}; MY.prototype.rl=function(a){this.handle(a)};NY.prototype.Tj=function(){return"clearCueRangesCommand"}; NY.prototype.handle=function(){var a=this.FA();g.Ig(function(){a.Rf(Array.from(a.Pn))})}; NY.prototype.rl=function(a){this.handle(a)};OY.prototype.Tj=function(){return"muteAdEndpoint"}; OY.prototype.handle=function(a){rFa(this,a)}; OY.prototype.rl=function(a,b){rFa(this,a,b)};PY.prototype.Tj=function(){return"openPopupAction"}; PY.prototype.handle=function(){}; PY.prototype.rl=function(a){this.handle(a)};QY.prototype.Tj=function(){return"pingingEndpoint"}; QY.prototype.handle=function(){}; QY.prototype.rl=function(a){this.handle(a)};RY.prototype.Tj=function(){return"urlEndpoint"}; RY.prototype.handle=function(a,b){b=g.yq(a.url,b);var c,d,e;if((null===(c=a.browserConversionApiData)||void 0===c?0:c.impressiondata)&&(null===(d=a.browserConversionApiData)||void 0===d?0:d.conversiondestination)){if(null===(e=a.browserConversionApiData)||void 0===e?0:e.originTrialToken)c=document.createElement("meta"),c.setAttribute("http-equiv","origin-trial"),c.setAttribute("content",a.browserConversionApiData.originTrialToken),document.head.appendChild(c);a={attributionSourceEventId:a.browserConversionApiData.impressiondata, attributionDestination:a.browserConversionApiData.conversiondestination,attributionReportTo:a.browserConversionApiData.reportingorigin,attributionExpiry:Number(a.browserConversionApiData.impressionexpiry)||void 0}}else a=void 0;g.iK(b,void 0,void 0,a)}; RY.prototype.rl=function(){R("Trying to handle UrlEndpoint with no macro in controlflow")};SY.prototype.Tj=function(){return"adPingingEndpoint"}; SY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Qn.send(a,b,c)}; SY.prototype.rl=function(a,b){gHa(this.Xa.get(),a,b,void 0)};TY.prototype.Tj=function(){return"changeEngagementPanelVisibilityAction"}; TY.prototype.handle=function(a){this.I.Na("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})}; TY.prototype.rl=function(a){this.handle(a)};UY.prototype.Tj=function(){return"loggingUrls"}; UY.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.ij.send(d.baseUrl,b,c,d.headers)}; UY.prototype.rl=function(a,b){a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,gHa(this.Xa.get(),c.baseUrl,b,c.headers)};g.v(tFa,g.E);var FFa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var OFa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED", "trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);var xFa=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"]]),vFa=new Map([["normal",{er:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",wr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{er:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",wr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], ["muted",{er:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",wr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{er:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",wr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{er:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",wr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{er:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",wr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}]]);g.v(cZ,g.E);g.k=cZ.prototype;g.k.mB=function(a,b){return this.i.mB(a,b)}; g.k.ai=function(a,b){XZ(this.Zb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.q(this.Ed),d=c.next();!d.done;d=c.next())d.value.ai(a,b)}; g.k.Bf=function(a){if(gZ(this.i,a)){mK(this.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.i.Bf(a);for(var b=g.q(this.Ed),c=b.next();!c.done;c=b.next())c.value.Bf(a);CFa(this,a)}}; g.k.Cf=function(a){if(gZ(this.i,a)){mK(this.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.i.Cf(a);for(var b=g.q(this.Ed),c=b.next();!c.done;c=b.next())c.value.Cf(a);gZ(this.i,a)&&hZ(this.i,a).C&&eZ(this,a,!1)}}; g.k.Fx=function(a){mK(this.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);gZ(this.i,a)&&(this.i.Fx(a),eZ(this,a,!1))}; g.k.Hc=function(a,b){if(gZ(this.i,a)){iZ(this.Zb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.q(this.Ed),d=c.next();!d.done;d=c.next())d.value.Hc(a,b)}}; g.k.Oc=function(a,b,c){if(gZ(this.i,a)){iZ(this.Zb,wFa(c),a,b);this.i.Oc(a,b);for(var d=g.q(this.Ed),e=d.next();!e.done;e=d.next())e.value.Oc(a,b,c);(c=uZ(this.i,a))&&b.layoutId===c.layoutId&&LFa(this,a,!1)}}; g.k.cf=function(a,b,c){R(c,a,b,void 0,c.Rn);eZ(this,a,!0)}; g.k.ra=function(){var a=NFa(this.i);a=g.q(a);for(var b=a.next();!b.done;b=a.next())eZ(this,b.value,!1);g.E.prototype.ra.call(this)};MFa.prototype.isActive=function(){switch(this.i){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.v(jZ,Va);g.v(rZ,Va);g.v(xZ,g.E);g.k=xZ.prototype;g.k.mB=function(a,b){b=tZ(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.yh=function(a){a=hZ(this,a);"not_scheduled"!==a.i&&vZ(a.slot,a.i,"onSlotScheduled");a.i="scheduled"}; g.k.Qs=function(a){a=hZ(this,a);a.B="fill_requested";a.J.Qs()}; g.k.Bf=function(a){a=hZ(this,a);"enter_requested"!==a.i&&vZ(a.slot,a.i,"onSlotEntered");a.i="entered"}; g.k.Fx=function(a){hZ(this,a).B="fill_canceled"}; g.k.Cf=function(a){a=hZ(this,a);"exit_requested"!==a.i&&vZ(a.slot,a.i,"onSlotExited");a.i="scheduled"}; g.k.Oc=function(a,b){a=hZ(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.i&&vZ(a.slot,a.i,"onLayoutExited"),a.i="entered")};g.v(AZ,g.E);AZ.prototype.u=function(){return this.l};g.v(BZ,g.E);BZ.prototype.get=function(){this.Ha()&&R("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(WZ,g.E);g.v(ZZ,g.E);ZZ.prototype.yd=function(){}; ZZ.prototype.bf=function(a){var b=this,c=this.i.get(a);c&&(this.i.delete(a),this.l.get().removeCueRange(a),kz(this.u.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.B.get();d=SZ(d.l.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign(Object.assign({},c),{slotId:d,Wb:c.Wb?VGa(c.slotId,d,c.Wb):void 0,uc:WGa(c.slotId,d,c.uc),pc:WGa(c.slotId,d,c.pc)})]},c.slotId))}; ZZ.prototype.wh=function(){for(var a=g.q(this.i.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.l.get().removeCueRange(b);this.i.clear()}; ZZ.prototype.ek=function(){};g.v($Z,g.E);g.k=$Z.prototype;g.k.yh=function(){}; g.k.hj=function(){}; g.k.Bf=function(){}; g.k.gj=function(){}; g.k.Cf=function(){}; g.k.jk=function(){}; g.k.lk=function(){}; g.k.dj=function(a,b){this.i.has(a)||this.i.set(a,new Set);this.i.get(a).add(b)}; g.k.gk=function(a,b){this.xi.has(a)&&this.xi.get(a)===b&&R("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)):R("Trying to unscheduled a Layout that was not scheduled.",a,b)}else R("Trying to unscheduled a Layout that was not scheduled.",a,b)}; g.k.Hc=function(a,b){this.xi.set(a,b)}; g.k.Oc=function(a){this.xi.delete(a)}; g.k.ai=function(){};m_.prototype.clone=function(a){var b=this;return new m_(function(){return b.triggerId},a)};n_.prototype.clone=function(a){var b=this;return new n_(function(){return b.triggerId},a)};o_.prototype.clone=function(a){var b=this;return new o_(function(){return b.triggerId},a)};p_.prototype.clone=function(a){var b=this;return new p_(function(){return b.triggerId},a)};q_.prototype.clone=function(a){var b=this;return new q_(function(){return b.triggerId},a)};g.v(t_,g.E);t_.prototype.logEvent=function(a){XZ(this,a)};g.v(v_,g.E);g.k=v_.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.wh=function(a,b,c,d,e,f,h){var l;if(""===a)R("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!g.S(this.I.T().experiments,"html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.i||c){this.i=a;this.Fa.get().wh(a,b,c,d,e,f,h);null===(l=this.l)||void 0===l?void 0:l.get().wh(a,b,c,d,e,f,h);this.u.wh(a,b,c,d,e,f,h);for(var m=g.q(this.listeners),n=m.next();!n.done;n=m.next())n.value.wh(a,b,c,d,e,f,h)}}; g.k.EM=function(){this.i&&this.ek(this.i)}; g.k.ek=function(a){this.i=void 0;for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.ek(a)};g.v(w_,g.E);w_.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)?R("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new aHa(a,b,c,d,f),this.i.set(a.id,{Td:a,listener:e,sj:h}),this.I.Dd([a],h))}; w_.prototype.removeCueRange=function(a){var b=this.i.get(a);b?(this.I.Rf([b.Td],b.sj),this.i.delete(a)):R("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})}; w_.prototype.yd=function(a){this.i.has(a.id)&&this.i.get(a.id).listener.yd(a.id)}; w_.prototype.bf=function(a){this.i.has(a.id)&&this.i.get(a.id).listener.bf(a.id)}; g.v(aHa,g.Fz);x_.prototype.ci=function(a){this.I.ci(a)}; x_.prototype.Na=function(a,b){for(var c=[],d=1;d=this.l.length)throw new rZ("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(),nZ(this.B,this.slot,b.Sb())}; g.k.wu=function(){for(var a=g.q(this.l),b=a.next();!b.done;b=a.next())b.value.release()}; g.k.kp=function(a,b){var c=this.l[this.i];b.layoutId!==l0(c,a,b)?R("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.kp()}; g.k.vp=function(a,b){var c=this.l[this.i];b.layoutId!==l0(c,a,b)?R("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.vp()}; g.k.fu=function(a,b){var c=this.l[this.i];b.layoutId!==l0(c,a,b)?R("onSkipRequested for a PlayerBytes layout that is not currently active",c.rd(),c.Sb(),{requestingSlot:a,requestingLayout:b}):m0(this,c.rd(),c.Sb(),"skipped")}; g.k.Ku=function(){-1===this.i&&CHa(this)}; g.k.gT=function(a,b){oZ(this.B,a,b)}; g.k.Lu=function(a,b){var c=this;this.i!==this.l.length?(a=this.l[this.i],a.Pe(a.Sb(),b),this.C=function(){c.callback.Oc(c.slot,c.layout,b)}):this.callback.Oc(this.slot,this.layout,b)}; g.k.Hc=function(a,b){var c=this.l[this.i];c&&c.Hc(a,b)}; g.k.Oc=function(a,b,c){j0.prototype.Oc.call(this,a,b,c);var d=this.l[this.i];d&&d.Oc(a,b,c)}; g.k.nI=function(){var a=this.l[this.i];a&&a.Gw()}; g.k.Yh=function(a){var b=this.l[this.i];b&&b.Yh(a)}; g.k.mJ=function(a){var b=this.l[this.i];b&&b.hk(a)}; g.k.cf=function(a,b){-1===this.i&&(this.callback.Hc(this.slot,this.layout),this.i++);var c=this.l[this.i];c?c.Tt(a,b):R("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Sb().layoutId})}; g.k.Me=function(a){var b=this.l[this.i];b&&b.Me(a)}; g.k.jg=function(a){var b=this.l[this.i];b&&b.jg(a)}; g.k.aj=function(a){var b=this.l[this.i];b&&b.aj(a)}; g.k.Df=function(){var a=this.l[this.i];a&&a.Df()}; g.k.iT=function(a,b,c){m0(this,a,b,c)}; g.k.hT=function(a,b){m0(this,a,b,"error")};g.v(r0,g.E);g.k=r0.prototype;g.k.rd=function(){return this.slot}; g.k.Sb=function(){return this.layout}; g.k.init=function(){var a=X(this.layout.Ia,"metadata_type_video_length_seconds");dHa(this.Y.get(),this.layout.layoutId,a,this);I_(this.Xa.get(),this);this.Dt()}; g.k.release=function(){eHa(this.Y.get(),this.layout.layoutId);J_(this.Xa.get(),this);this.wu()}; g.k.kp=function(){}; g.k.vp=function(){}; g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.cf(this.slot,a,new jZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.l="rendering_start_requested",Dna(this.Aa.get(),1)?(this.Bs(!1),this.C(-1),this.Ku(a)):this.Tt("ui_unstable",new jZ("Failed to render media layout because ad ui unstable.")))}; g.k.Hc=function(a,b){var c,d,e;b.layoutId===this.layout.layoutId&&(this.l="rendering",$_(this.i,"impression"),$_(this.i,"start"),this.Fa.get().isMuted()&&(this.i.Ge("mute"),a=(null===(c=q0(this))||void 0===c?void 0:c.muteCommands)||[],this.u.get().ld(a,this.layout.layoutId)),this.Fa.get().isFullscreen()&&(this.i.Ge("fullscreen"),a=(null===(d=q0(this))||void 0===d?void 0:d.fullscreenCommands)||[],this.u.get().ld(a,this.layout.layoutId)),Ioa(this.kd.get()),this.C(1),this.YI(),a=(null===(e=q0(this))|| void 0===e?void 0:e.impressionCommands)||[],this.u.get().ld(a,this.layout.layoutId))}; g.k.Tt=function(a,b,c){this.xa={Ly:3,Wu:"load_timeout"===a?402:400,errorMessage:b.message};var d;X(this.layout.Ia,"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR")&&R("There is a player error in this survey ads",this.rd(),this.Sb(),{playerType:String(c)});$_(this.i,"error");a=(null===(d=q0(this))||void 0===d?void 0:d.errorCommands)||[];this.u.get().ld(a,this.layout.layoutId);this.callback.cf(this.slot,this.layout,b)}; g.k.Gw=function(){this.U()}; g.k.tH=function(){var a;if("rendering"===this.l){this.i.Ge("pause");var b=(null===(a=q0(this))||void 0===a?void 0:a.pauseCommands)||[];this.u.get().ld(b,this.layout.layoutId);this.C(2)}}; g.k.uH=function(){var a;if("rendering"===this.l){this.i.Ge("resume");var b=(null===(a=q0(this))||void 0===a?void 0:a.resumeCommands)||[];this.u.get().ld(b,this.layout.layoutId)}}; g.k.Pe=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.cf(this.slot,a,new jZ("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.Lu(a,b))}; g.k.Oc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.l="not_rendering",this.J=void 0,Hoa(this.kd.get()),this.Bs(!0),this.ZI(c),this.C(0),c){case "abandoned":var d;if(this.i.i.has("impression")){$_(this.i,"abandon");var e=(null===(d=q0(this))||void 0===d?void 0:d.abandonCommands)||[];this.u.get().ld(e,this.layout.layoutId)}break;case "normal":$_(this.i,"complete");d=(null===(e=q0(this))||void 0===e?void 0:e.completeCommands)||[];this.u.get().ld(d,this.layout.layoutId);break;case "skipped":var f; $_(this.i,"skip");d=(null===(f=q0(this))||void 0===f?void 0:f.skipCommands)||[];this.u.get().ld(d,this.layout.layoutId)}}; g.k.gt=function(){return this.layout.layoutId}; g.k.aB=function(){return this.xa}; g.k.hk=function(a){if("not_rendering"!==this.l){this.va||(a=new g.SI(a.state,new g.BK),this.va=!0);var b=2===this.Fa.get().getPresentingPlayerType();"rendering_start_requested"===this.l?b&&o0(a)&&this.ma():b?g.UI(a,2)?this.ME():(o0(a)?this.C(1):g.UI(a,4)&&!g.UI(a,2)&&this.tH(),0>TI(a,4)&&!(0>TI(a,2))&&this.uH()):this.Gw()}}; g.k.zx=function(){var a;if("rendering"===this.l){$_(this.i,"active_view_measurable");var b=(null===(a=q0(this))||void 0===a?void 0:a.activeViewMeasurableCommands)||[];this.u.get().ld(b,this.layout.layoutId)}}; g.k.yx=function(){var a;if("rendering"===this.l){$_(this.i,"active_view_fully_viewable_audible_half_duration");var b=(null===(a=q0(this))||void 0===a?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.u.get().ld(b,this.layout.layoutId)}}; g.k.Ax=function(){var a;if("rendering"===this.l){$_(this.i,"active_view_viewable");var b=(null===(a=q0(this))||void 0===a?void 0:a.activeViewViewableCommands)||[];this.u.get().ld(b,this.layout.layoutId)}}; g.k.Bs=function(a){this.kd.get().Bs(X(this.layout.Ia,"metadata_type_ad_placement_config").kind,a,this.position,this.La,!1)}; g.k.Me=function(a){var b,c;"rendering"===this.l&&(a?(this.i.Ge("fullscreen"),a=(null===(b=q0(this))||void 0===b?void 0:b.fullscreenCommands)||[],this.u.get().ld(a,this.layout.layoutId)):(this.i.Ge("end_fullscreen"),a=(null===(c=q0(this))||void 0===c?void 0:c.endFullscreenCommands)||[],this.u.get().ld(a,this.layout.layoutId)))}; g.k.Df=function(){var a,b;if("rendering"===this.l)if(this.Fa.get().isMuted()){this.i.Ge("mute");var c=(null===(a=q0(this))||void 0===a?void 0:a.muteCommands)||[];this.u.get().ld(c,this.layout.layoutId)}else this.i.Ge("unmute"),c=(null===(b=q0(this))||void 0===b?void 0:b.unmuteCommands)||[],this.u.get().ld(c,this.layout.layoutId)}; g.k.jg=function(){}; g.k.aj=function(){};g.v(t0,r0);g.k=t0.prototype;g.k.Dt=function(){}; g.k.wu=function(){var a=this.Xa.get();a.sy===this&&(a.sy=null)}; g.k.Ku=function(){this.Xa.get().sy=this;this.ma()}; g.k.YI=function(){HHa(this)}; g.k.ME=function(){}; g.k.kp=function(){this.B.stop();r0.prototype.tH.call(this)}; g.k.vp=function(){HHa(this);r0.prototype.uH.call(this)}; g.k.Eq=function(){return X(this.Sb().Ia,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.k.Lu=function(){this.B.stop()}; g.k.Rb=function(){var a=Date.now(),b=a-this.G;this.G=a;this.Dj+=b;this.Dj>=this.Eq()?(this.Dj=this.Eq(),s0(this,this.Dj/1E3,!0),u0(this,this.Dj),this.U()):(s0(this,this.Dj/1E3),u0(this,this.Dj))}; g.k.ZI=function(){}; g.k.Yh=function(){};g.v(v0,r0);g.k=v0.prototype;g.k.Dt=function(){X(this.Sb().Ia,"metadata_type_player_bytes_callback_ref").current=this}; g.k.wu=function(){X(this.Sb().Ia,"metadata_type_player_bytes_callback_ref").current=null;this.B&&this.K.get().removeCueRange(this.B);this.B=void 0;this.G.dispose()}; g.k.Ku=function(a){var b=X(a.Ia,"metadata_type_ad_video_id"),c=X(a.Ia,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.Ea.get().I.T().U.add(b,{Cs:c});(b=X(a.Ia,"metadata_type_sodar_extension_data"))&&qHa(this.Da.get(),b);oHa(this.Fa.get(),!1);b=this.qd.get();a=X(a.Ia,"metadata_type_player_vars");b.I.cueVideoByPlayerVars(a,2);this.G.start();this.qd.get().I.playVideo(2)}; g.k.YI=function(){var a;this.G.stop();this.B="adcompletioncuerange:"+this.Sb().layoutId;this.K.get().addCueRange(this.B,0x7ffffffffffff,0x8000000000000,!1,this,1,2);(this.adCpn=(null===(a=mz(this.X.get(),2))||void 0===a?void 0:a.clientPlaybackNonce)||"")||R("Media layout confirmed started, but ad CPN not set.");this.Cc.get().Na("onAdStart",this.adCpn)}; g.k.ME=function(){this.U()}; g.k.Eq=function(){var a;return null===(a=mz(this.X.get(),2))||void 0===a?void 0:a.playbackDurationMs}; g.k.RC=function(){this.i.Ge("clickthrough")}; g.k.Lu=function(){this.G.stop();oHa(this.Fa.get(),!0)}; g.k.yd=function(a){a!==this.B?R("Received CueRangeEnter signal for unknown layout.",this.rd(),this.Sb(),{cueRangeId:a}):(this.K.get().removeCueRange(this.B),this.B=void 0,a=X(this.Sb().Ia,"metadata_type_video_length_seconds"),s0(this,a,!0),$_(this.i,"complete"))}; g.k.ZI=function(a){"abandoned"!==a&&this.Cc.get().Na("onAdComplete");this.Cc.get().Na("onAdEnd",this.adCpn)}; g.k.bf=function(){}; g.k.Yh=function(a){"rendering"===this.l&&s0(this,a)};g.v(w0,j0);g.k=w0.prototype;g.k.rd=function(){return this.i.rd()}; g.k.Sb=function(){return this.i.Sb()}; g.k.Dt=function(){this.i.init()}; g.k.wu=function(){this.i.release()}; g.k.kp=function(){this.i.kp()}; g.k.vp=function(){this.i.vp()}; g.k.fu=function(a,b){R("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.rd(),this.Sb(),{requestingSlot:a,requestingLayout:b})}; g.k.Ku=function(a){this.i.startRendering(a)}; g.k.Lu=function(a,b){this.i.Pe(a,b)}; g.k.Hc=function(a,b){this.i.Hc(a,b)}; g.k.Oc=function(a,b,c){j0.prototype.Oc.call(this,a,b,c);this.i.Oc(a,b,c)}; g.k.nI=function(){this.i.Gw()}; g.k.Yh=function(a){this.i.Yh(a)}; g.k.mJ=function(a){this.i.hk(a)}; g.k.cf=function(a,b,c){this.i.Tt(a,b,c)}; g.k.Me=function(a){this.i.Me(a)}; g.k.jg=function(a){this.i.jg(a)}; g.k.aj=function(a){this.i.aj(a)}; g.k.Df=function(){this.i.Df()};x0.prototype.He=function(a,b,c,d){if(a=KHa(a,b,c,d,this.xe,this.G,this.Xa,this.C,this.K,this.qd,this.J,this.Fa,this.u,this.kd,this.Cc,this.i,this.l,this.B,this.Qa))return a;throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.v(y0,g.E);g.k=y0.prototype;g.k.Hc=function(a,b){var c=this;if(LHa(this)&&"LAYOUT_TYPE_MEDIA"===b.layoutType&&VY(b,this.J)){var d=mz(this.i.get(),2),e=this.C(b,d);e?kz(this.u.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){return[YGa(c.B.get(),e.contentCpn,e.Ay,function(f){return c.G(f.slotId,"core",e,aZ(c.l.get(),f))},e.FH)]}):R("Expected MediaLayout to carry valid opportunity on entered",a,b)}}; g.k.yh=function(){}; g.k.hj=function(){}; g.k.Bf=function(){}; g.k.gj=function(){}; g.k.Cf=function(){}; g.k.jk=function(){}; g.k.lk=function(){}; g.k.dj=function(){}; g.k.gk=function(){}; g.k.ai=function(){}; g.k.Oc=function(){};var p1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=PHa.prototype;g.k.init=function(){}; g.k.rd=function(){return this.slot}; g.k.RA=function(){this.callback.Bf(this.slot)}; g.k.WA=function(){this.callback.Cf(this.slot)}; g.k.release=function(){};A0.prototype.He=function(a,b){return new PHa(a,b)};g.k=QHa.prototype;g.k.init=function(){}; g.k.rd=function(){return this.slot}; g.k.RA=function(){var a=this.Fa.get();g.K(a.I.getRootNode(),"ad-showing");this.callback.Bf(this.slot)}; g.k.WA=function(){this.callback.Cf(this.slot);var a=this.Fa.get();g.Oq(a.I.getRootNode(),"ad-showing")}; g.k.release=function(){};g.k=RHa.prototype;g.k.init=function(){}; g.k.rd=function(){return this.slot}; g.k.RA=function(){var a=this.Fa.get();g.K(a.I.getRootNode(),"ad-showing");a=this.Fa.get();g.K(a.I.getRootNode(),"ad-interrupting");this.callback.Bf(this.slot)}; g.k.WA=function(){this.Fa.get().Qj();var a=this.Fa.get();g.Oq(a.I.getRootNode(),"ad-showing");a=this.Fa.get();g.Oq(a.I.getRootNode(),"ad-interrupting");this.callback.Cf(this.slot)}; g.k.release=function(){this.Fa.get().Qj()};B0.prototype.He=function(a,b){if(oz(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new QHa(a,b,this.Fa);if(oz(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new RHa(a,b,this.Fa);throw new rZ("Unsupported slot with type "+b.ob+" and client metadata: "+(XY(b.Ia)+" in PlayerBytesSlotAdapterFactory."));};g.v(D0,g.E);D0.prototype.i=function(a){for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof JZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.le===a&&b.push(d)}b.length?pZ(this.xz(),b):R("Mute requested but no registered triggers can be activated.")};g.v(E0,D0);g.k=E0.prototype;g.k.xf=function(a,b){if(b)if("survey-submit"===a)SHa(this,b);else if("skip-button"===a){a=[];for(var c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof JZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.le===b&&a.push(d)}a.length&&pZ(this.xz(),a)}else"survey-single-select-answer-button"===a&&SHa(this,b)}; g.k.xB=function(a){D0.prototype.i.call(this,a)}; g.k.di=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new rZ("Tried to register duplicate trigger for slot.");if(!(b instanceof KZ||b instanceof JZ))throw new rZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Db.set(b.triggerId,new C0(a,b,c,d))}; g.k.Di=function(a){this.Db.delete(a.triggerId)}; g.k.vB=function(){}; g.k.uB=function(){}; g.k.Hw=function(){};g.v(F0,g.E);g.k=F0.prototype; g.k.di=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new rZ("Tried to register duplicate trigger for slot.");if(!(b instanceof m_||b instanceof n_||b instanceof o_||b instanceof p_||b instanceof q_||b instanceof d_||b instanceof i_||b instanceof IZ||b instanceof PZ||b instanceof c_||b instanceof h_))throw new rZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new C0(a,b,c,d);this.Db.set(b.triggerId,a);b instanceof q_&&this.C.has(b.Dg)&& pZ(this.i(),[a]);b instanceof m_&&this.u.has(b.Dg)&&pZ(this.i(),[a]);b instanceof i_&&this.l.has(b.le)&&pZ(this.i(),[a])}; g.k.Di=function(a){this.Db.delete(a.triggerId)}; g.k.yh=function(a){this.C.add(a.slotId);for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof q_&&a.slotId===d.trigger.Dg&&b.push(d);0TI(a,16)){a=g.q(this.i);for(var b=a.next();!b.done;b=a.next())this.yd(b.value);this.i.clear()}}; g.k.Yh=function(){}; g.k.Me=function(){}; g.k.jg=function(){}; g.k.aj=function(){}; g.k.Df=function(){};g.v(J0,g.E);g.k=J0.prototype;g.k.di=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new rZ("Tried to register duplicate trigger for slot.");if(!(b instanceof LZ||b instanceof l_))throw new rZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Db.set(b.triggerId,new C0(a,b,c,d))}; g.k.Di=function(a){this.Db.delete(a.triggerId)}; g.k.tm=function(){}; g.k.Rj=function(){}; g.k.Hc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.ob&&(null!=this.i?R("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.i=b.layoutId)}; g.k.Oc=function(a){"SLOT_TYPE_ABOVE_FEED"===a.ob&&(this.i=null)}; g.k.yh=function(){}; g.k.hj=function(){}; g.k.gj=function(){}; g.k.Bf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.ob&&(null!=this.l?R("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.ob&&(null===this.l?R("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.l=null)}; g.k.jk=function(){}; g.k.lk=function(){}; g.k.dj=function(){}; g.k.gk=function(){}; g.k.ai=function(){}; g.k.Qv=function(){null!=this.i&&n0(this,this.i)}; g.k.bw=function(a){if(null===this.l){for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof l_&&d.trigger.slotId===a&&b.push(d);b.length&&pZ(this.u(),b)}};g.v(K0,g.E);g.k=K0.prototype;g.k.ai=function(a,b){for(var c=[],d=g.q(this.Db.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&&pZ(this.i(),c)}; g.k.di=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new rZ("Tried to register duplicate trigger for slot.");if(!(b instanceof QGa))throw new rZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Db.set(b.triggerId,new C0(a,b,c,d))}; g.k.Di=function(a){this.Db.delete(a.triggerId)}; g.k.yh=function(){}; g.k.hj=function(){}; g.k.gj=function(){}; g.k.Bf=function(){}; g.k.Cf=function(){}; g.k.jk=function(){}; g.k.lk=function(){}; g.k.dj=function(){}; g.k.gk=function(){}; g.k.Hc=function(){}; g.k.Oc=function(){};g.v(L0,g.E);L0.prototype.ra=function(){this.B.get().removeListener(this);g.E.prototype.ra.call(this)};M0.prototype.fetch=function(a){var b=a.EG;return this.cm.fetch(a.ZK,{Hs:void 0===a.Hs?void 0:a.Hs,Td:b}).then(function(c){return VHa(c,b)})};g.v(N0,g.E);g.k=N0.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){O0(this,function(c){c.xf(a,b)})}; g.k.jC=function(a){O0(this,function(b){b.vB(a)})}; g.k.iC=function(a){O0(this,function(b){b.uB(a)})}; g.k.BQ=function(a){O0(this,function(b){b.Hw(a)})};R0.prototype.addListener=function(a){this.listeners.push(a)}; R0.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=YHa.prototype;g.k.rd=function(){return this.slot}; g.k.Sb=function(){return this.layout}; g.k.init=function(){var a;this.l.get().addListener(this);this.u.get().addListener(this);this.Fa.get().addListener(this);this.B.forEach(function(f){f.init()}); var b=X(this.layout.Ia,"metadata_type_layout_enter_ms"),c=X(this.layout.Ia,"metadata_type_layout_exit_ms"),d=null===(a=this.l.get().uo)||void 0===a?void 0:a.clientPlaybackNonce;H_(this.Xa.get(),{daiStateTrigger:{filledAdsDurationMs:c-b,contentCpn:d,adClientData:this.layout.zc.adClientDataEntry}});var e=aIa(this.u.get(),b,c);null!==e&&(H_(this.Xa.get(),{daiStateTrigger:{filledAdsDurationMs:e-b,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.zc.adClientDataEntry}}), this.C.get().ao(e,c))}; g.k.release=function(){this.i=null;this.B.forEach(function(a){a.release()}); this.l.get().removeListener(this);this.u.get().removeListener(this);this.Fa.get().removeListener(this)}; g.k.startRendering=function(){var a;if(this.i)R("Failed to restart rendering",this.slot,this.layout);else{var b=null===(a=this.l.get().uo)||void 0===a?void 0:a.layoutId;$Ha(this,b);this.callback.Hc(this.slot,this.layout);$_(this.G,"ad_placement_start")}}; g.k.Pe=function(a,b){var c,d,e,f;null===(d=null===(c=this.i)||void 0===c?void 0:c.Kh)||void 0===d?void 0:d.Pe(null===(f=null===(e=this.i)||void 0===e?void 0:e.Kh)||void 0===f?void 0:f.Sb(),b);this.i=null;null!==this.driftRecoveryMs&&(S0(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(bIa(this)-X(this.layout.Ia,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Fa.get().I.Cm()).toString()}),this.driftRecoveryMs=null);this.callback.Oc(this.slot, this.layout,b);"normal"!==b?a=!1:(a=this.Fa.get().getCurrentTimeSec(2,!0),b=X(this.layout.Ia,"metadata_type_layout_exit_ms")/1E3,a=1>=Math.abs(a-b));a&&$_(this.G,"ad_placement_end")}; g.k.iJ=function(a){a=a.layoutId;var b,c,d;this.i&&(null===(b=this.i.Kh)||void 0===b?void 0:b.Sb().layoutId)!==a&&(null===(c=this.i.Kh)||void 0===c?void 0:c.Pe(null===(d=this.i.Kh)||void 0===d?void 0:d.Sb(),"normal"),$Ha(this,a))}; g.k.cJ=function(){}; g.k.QI=function(a){var b,c=X(this.layout.Ia,"metadata_type_layout_enter_ms"),d=X(this.layout.Ia,"metadata_type_layout_exit_ms");a*=1E3;c<=a&&ad&&(c=d-c,this.u.get().Cr(b,c))}else c=this.slot,d=this.layout,e=Object,b=e.assign,f=Object.assign({},T0(this.layout)),h=X(this.slot.Ia,"metadata_type_fulfilled_layout"),h=Object.assign(Object.assign({},T0(h)),{adPlacementConfig:X(h.Ia,"metadata_type_ad_placement_config"),subLayouts:X(h.Ia,"metadata_type_sub_layouts").map(T0)}),R("Unexpected failure to add to playback timeline",c,d,b.call(e,f,{compositeLayout:h}));else this.u.get().Ft(b,2,e,c,d, this.slot.slotId);this.Fa.get().addListener(this);dHa(this.B.get(),this.layout.layoutId,a,this);nZ(this.callback,this.slot,this.layout)}; g.k.release=function(){this.Fa.get().removeListener(this);eHa(this.B.get(),this.layout.layoutId)}; g.k.startRendering=function(){if(this.l)R("Expected the layout not to be entered before start rendering",this.slot,this.layout);else{this.l={Xw:null,eK:!1};var a=X(this.layout.Ia,"metadata_type_sodar_extension_data");if(a)try{qHa(this.C.get(),a)}catch(b){R("Unexpected error when loading Sodar",this.slot,this.layout,{error:b})}$_(this.i,"start");A_(this.Qa.get())&&(a=D_(this.Fa.get()),a=new g.SI(a,new g.BK),eIa(this,this.l,a));oZ(this.callback,this.slot,this.layout)}}; g.k.Pe=function(a,b){this.l?(A_(this.Qa.get())&&dIa(this,null,this.l),this.l=null,lK(this.callback,this.slot,this.layout,b)):R("Expected the layout to be entered before stop rendering",this.slot,this.layout)}; g.k.Tt=function(){}; g.k.Gw=function(){}; g.k.Yh=function(a){if(this.l){if(this.i.i.has("impression")){var b=D_(this.Fa.get());fIa(this,b,a,this.l.Xw)}this.l.Xw=a}}; g.k.hk=function(a){this.l&&(A_(this.Qa.get())||this.l.eK||(this.l.eK=!0,a=new g.SI(a.state,new g.BK)),eIa(this,this.l,a))}; g.k.Me=function(a){this.i.i.has("impression")&&this.i.Ge(a?"fullscreen":"end_fullscreen")}; g.k.jg=function(){}; g.k.aj=function(){}; g.k.fu=function(){}; g.k.Df=function(){}; g.k.Hc=function(){}; g.k.Oc=function(){}; g.k.kp=function(){}; g.k.vp=function(){}; g.k.RC=function(){this.i.i.has("impression")&&this.i.Ge("clickthrough")}; g.k.zx=function(){this.i.Ge("active_view_measurable")}; g.k.yx=function(){this.i.i.has("impression")&&!this.i.i.has("seek")&&this.i.Ge("active_view_fully_viewable_audible_half_duration")}; g.k.Ax=function(){this.i.i.has("impression")&&!this.i.i.has("seek")&&this.i.Ge("active_view_viewable")};U0.prototype.He=function(a,b,c,d){if(c.Ia.i.has("metadata_type_dai")){a:{var e=X(d.Ia,"metadata_type_sub_layouts"),f=X(d.Ia,"metadata_type_ad_placement_config");if(V_(d,{Wd:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Af:["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=X(l.Ia,"metadata_type_media_sub_layout_index");if(!V_(l,{Wd:["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"],Af:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new X_(l.Bc,this.Xa,f,l.layoutId,m);h.push(new cIa(b,c,l,this.u,m,this.Fa,this.X,this.i,this.B,this.Qa))}b=new X_(d.Bc,this.Xa,f,d.layoutId);a=new YHa(a,c,d,this.l,this.u,this.J,this.Fa,b,this.Xa,h)}else a=null}if(a)return a}else if(a=KHa(a,b,c,d,this.xe,this.Y,this.Xa,this.i,this.B,this.qd,this.l,this.Fa,this.K, this.kd,this.Cc,this.C,this.G,this.U,this.Qa))return a;throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.v(V0,g.E);g.k=V0.prototype;g.k.cJ=function(a){this.i&&gIa(this,this.i,a)}; g.k.QI=function(){}; g.k.wh=function(a){this.i&&this.i.contentCpn!==a&&(R("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn}),this.i=null)}; g.k.ek=function(a){this.i&&this.i.contentCpn!==a&&R("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.ra=function(){g.E.prototype.ra.call(this);this.i=null};g.v(W0,g.E);W0.prototype.di=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new rZ("Tried to register duplicate trigger for slot.");if(!(b instanceof TZ))throw new rZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Db.set(b.triggerId,new C0(a,b,c,d))}; W0.prototype.Di=function(a){this.Db.delete(a.triggerId)};g.v(Y0,g.E); Y0.prototype.di=function(a,b,c,d){if(this.l.has(b.triggerId)||this.u.has(b.triggerId))throw new rZ("Tried to re-register the trigger.");a=new C0(a,b,c,d);if(a.trigger instanceof UGa)this.l.set(a.trigger.triggerId,a);else if(a.trigger instanceof PGa)this.u.set(a.trigger.triggerId,a);else throw new rZ("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.l.has(a.trigger.triggerId)&&a.slot.slotId===this.i&&pZ(this.B(),[a])}; Y0.prototype.Di=function(a){this.l.delete(a.triggerId);this.u.delete(a.triggerId)}; Y0.prototype.iJ=function(a){a=a.slotId;if(this.i!==a){var b=[];null!=this.i&&b.push.apply(b,g.ma(hIa(this.u,this.i)));null!=a&&b.push.apply(b,g.ma(hIa(this.l,a)));this.i=a;b.length&&pZ(this.B(),b)}};g.v(Z0,g.E);g.k=Z0.prototype;g.k.wh=function(){this.u=new qK(this,bHa(this.Qa.get()));this.l=new rK;iIa(this)}; g.k.ek=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.xC=function(a){this.zy.push(a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.cJ(a)}; g.k.SI=function(a){g.Bb(this.l.i,1E3*a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.QI(a)}; g.k.pC=function(a){var b=mz(this.B.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||B_(this.Qa.get()))&&H_(this.Xa.get(),{cuepointTrigger:{event:jIa(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.i,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.i.add(e),b?this.u.reduce(e):B_(this.Qa.get())&&0!==this.I.getCurrentTime(1)&&"start"===e.event&&this.xC(e)}; g.k.ra=function(){this.I.getVideoData(1).unsubscribe("cuepointupdated",this.pC,this);this.listeners.length=0;this.i.clear();this.zy.length=0;g.E.prototype.ra.call(this)};g.k=$0.prototype;g.k.hq=function(a,b,c,d,e,f){return this.I.hq(a,b,c,d,e,f)}; g.k.ao=function(a,b){this.I.ao(a,b)}; g.k.Cr=function(a,b,c){this.I.Cr(a,b,c)}; g.k.gp=function(a){this.I.gp(a)}; g.k.Ft=function(a,b,c,d,e,f){this.I.Ft(a,b,c,d,e,f)};a1.prototype.addListener=function(a){this.listeners.add(a)}; a1.prototype.removeListener=function(a){this.listeners.delete(a)};g.v(kIa,QI);g.v(b1,b0);g.k=b1.prototype;g.k.xf=function(a,b){d0("image-companion",a,this.G.get().xi,this.Xa.get(),this.u,this.B,this.rd(),this.Sb(),b)}; g.k.startRendering=function(a){c0(this.C,this.rd(),this.Sb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new kIa(b,c,d,e,f)},this.i); b0.prototype.startRendering.call(this,a)}; g.k.Hc=function(a,b){b.layoutId===this.layout.layoutId?$_(this.C,"impression"):this.B===b.layoutId&&(null===this.u?this.u=this.Xa.get().lh():R("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Oc=function(){}; g.k.yh=function(){}; g.k.hj=function(){}; g.k.gj=function(){}; g.k.Bf=function(){}; g.k.Cf=function(){}; g.k.jk=function(){}; g.k.lk=function(){}; g.k.dj=function(){}; g.k.gk=function(){}; g.k.ai=function(){}; g.k.ra=function(){this.xe().Ed.delete(this);b0.prototype.ra.call(this)};g.v(mIa,QI);g.v(c1,b0);g.k=c1.prototype;g.k.xf=function(a,b){d0("shopping-companion",a,this.G.get().xi,this.Xa.get(),this.u,this.B,this.rd(),this.Sb(),b)}; g.k.startRendering=function(a){c0(this.C,this.rd(),this.Sb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new mIa(b,c,d,e,f)},this.i); b0.prototype.startRendering.call(this,a)}; g.k.Hc=function(a,b){b.layoutId===this.layout.layoutId?$_(this.C,"impression"):this.B===b.layoutId&&(null===this.u?this.u=this.Xa.get().lh():R("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Oc=function(){}; g.k.yh=function(){}; g.k.hj=function(){}; g.k.gj=function(){}; g.k.Bf=function(){}; g.k.Cf=function(){}; g.k.jk=function(){}; g.k.lk=function(){}; g.k.dj=function(){}; g.k.gk=function(){}; g.k.ai=function(){}; g.k.ra=function(){this.xe().Ed.delete(this);b0.prototype.ra.call(this)};oIa.prototype.He=function(a,b,c,d){if(V_(d,zHa()))return new e0(a,c,d,this.i,this.Xa,this.xe,this.u,this.l);if(V_(d,lIa()))return new b1(a,c,d,this.i,this.Xa,this.xe,this.u,this.l);if(V_(d,nIa()))return new c1(a,c,d,this.i,this.Xa,this.xe,this.u,this.l);throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.v(d1,b0);d1.prototype.startRendering=function(a){var b=Z_(this.u),c={adsClientData:this.layout.zc};this.i.push(new fK(X(this.layout.Ia,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Sb().layoutId,c,!0,!0));b0.prototype.startRendering.call(this,a);this.callback.Hc(this.slot,a)}; d1.prototype.xf=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=X(this.layout.Ia,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.fu(this.slot,this.layout):R("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))}; d1.prototype.ra=function(){b0.prototype.ra.call(this)};var f1=new g.Sf(320,63);g.v(i1,QI);g.v(j1,b0);g.k=j1.prototype;g.k.Yh=function(){}; g.k.hk=function(){}; g.k.Me=function(){}; g.k.jg=function(a){a&&X0(this.u,this.layout)}; g.k.aj=function(a){var b=h1(this.layout);if(this.C=g1(a,nHa(this.Fa.get())))b.onErrorCommand&&this.G.get().executeCommand(b.onErrorCommand,this.layout.layoutId),X0(this.u,this.layout)}; g.k.Df=function(){}; g.k.gt=function(){return this.Sb().layoutId}; g.k.aB=function(){return this.C}; g.k.xf=function(a){this.B.xf(a);"in_video_overlay_close_button"===a&&X0(this.u,this.layout)}; g.k.Hw=function(a){"invideo-overlay"===a&&X0(this.u,this.layout)}; g.k.Dl=function(){this.B.Dl()}; g.k.startRendering=function(a){b0.prototype.startRendering.call(this,a);this.callback.Hc(this.slot,a);this.Cd.Nn=this}; g.k.Pe=function(a,b){b0.prototype.Pe.call(this,a,b);P1(this.Cd,this)}; g.k.init=function(){b0.prototype.init.call(this);I_(this.Xa.get(),this);this.Fa.get().addListener(this);this.i.push(new i1(h1(this.layout),Z_(this.J),this.layout.layoutId,{adsClientData:this.layout.zc}))}; g.k.release=function(){b0.prototype.release.call(this);this.Fa.get().removeListener(this);J_(this.Xa.get(),this)};g.v(k1,b0);g.k=k1.prototype;g.k.init=function(){b0.prototype.init.call(this);I_(this.Xa.get(),this);this.Fa.get().addListener(this);this.i.push(new i1(h1(this.layout),Z_(this.K),this.layout.layoutId,{adsClientData:this.layout.zc}))}; g.k.Dl=function(){this.B.Dl()}; g.k.startRendering=function(a){b0.prototype.startRendering.call(this,a);this.callback.Hc(this.slot,a);this.Cd.Nn=this}; g.k.Pe=function(a,b){b0.prototype.Pe.call(this,a,b);P1(this.Cd,this)}; g.k.xf=function(a){this.B.xf(a);"in_video_overlay_close_button"===a&&X0(this.u,this.layout)}; g.k.vB=function(a){if("invideo-overlay"===a){a=tIa(this.G,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}}; g.k.Hw=function(a){"invideo-overlay"===a&&X0(this.u,this.layout)}; g.k.uB=function(a){if("invideo-overlay"===a){a=tIa(this.G,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}}; g.k.Yh=function(){}; g.k.hk=function(){}; g.k.Me=function(){}; g.k.jg=function(a){a&&X0(this.u,this.layout)}; g.k.aj=function(a){var b=h1(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=nHa(this.Fa.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&0!=c.thumbnails.length&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.Sf(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Sf(0,0)}if(this.C=g1(a,d,c))b.onErrorCommand&&this.J.get().executeCommand(b.onErrorCommand,this.layout.layoutId),X0(this.u,this.layout)}; g.k.Df=function(){}; g.k.gt=function(){return this.Sb().layoutId}; g.k.aB=function(){return this.C}; g.k.release=function(){b0.prototype.release.call(this);this.Fa.get().removeListener(this);J_(this.Xa.get(),this)};l1.prototype.xf=function(a){"ad-info-hover-text-button"===a&&((this.i=this.Fa.get().wl(1))||this.Fa.get().pauseVideo())}; l1.prototype.Dl=function(){this.i||this.Fa.get().resumeVideo(1)};g.v(m1,b0);g.k=m1.prototype;g.k.init=function(){b0.prototype.init.call(this);this.Fa.get().addListener(this)}; g.k.startRendering=function(a){var b=X(this.layout.Ia,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.i.push(new dK(b,this.layout.layoutId,{adsClientData:this.layout.zc},!0,!0));b0.prototype.startRendering.call(this,a);this.callback.Hc(this.slot,a)}; g.k.Hc=function(){}; g.k.xf=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=X(this.layout.Ia,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.kp(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.vp(this.slot,this.layout):R("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))}; g.k.aj=function(a){450>a.width&&X0(this.u,this.layout)}; g.k.Df=function(){}; g.k.Yh=function(){}; g.k.Me=function(){}; g.k.jg=function(){}; g.k.hk=function(){}; g.k.ra=function(){b0.prototype.ra.call(this)}; g.k.release=function(){b0.prototype.release.call(this);this.Fa.get().removeListener(this)};sIa.prototype.He=function(a,b,c,d){if(b=h0(a,c,d,this.i,this.Fa,this.Xa,this.G,this.Cd))return b;if(V_(d,rIa()))return new k1(c,d,this.Xa,this.B,this.i,a,this.l,this.C,this.Fa,this.u,this.Qa,this.Cd,new l1(this.Fa));if(V_(d,qIa()))return new j1(c,d,this.Xa,this.B,this.i,a,this.l,this.Fa,this.u,this.Qa,this.Cd,new l1(this.Fa));if(V_(d,{Wd:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Af:["LAYOUT_TYPE_SURVEY"]}))return new m1(c,d,a,this.i,this.l,this.Fa);if(V_(d,{Wd:["metadata_type_player_bytes_layout_controls_callback_ref", "metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Af:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new d1(c,d,a,this.i,this.Xa);throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.v(n1,g.E);g.k=n1.prototype;g.k.di=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new rZ("Tried to register duplicate trigger for slot.");if(!(b instanceof OZ))throw new rZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Db.set(b.triggerId,new C0(a,b,c,d));a=this.i.has(b.le)?this.i.get(b.le):new Set;a.add(b);this.i.set(b.le,a)}; g.k.Di=function(a){this.Db.delete(a.triggerId);if(!(a instanceof OZ))throw new rZ("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.le))b.delete(a),0===b.size&&this.i.delete(a.le)}; g.k.yh=function(){}; g.k.hj=function(){}; g.k.gj=function(){}; g.k.Bf=function(){}; g.k.Cf=function(){}; g.k.jk=function(){}; g.k.lk=function(){}; g.k.dj=function(){}; g.k.gk=function(){}; g.k.ai=function(){}; g.k.Hc=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={Gr:a.Gr},d=b.next())a.Gr=d.value,d=new g.J(function(e){return function(){var f=c.Db.get(e.Gr.triggerId);pZ(c.u(),[f])}}(a),a.Gr.durationMs),d.start(),this.l.set(a.Gr.triggerId,d)}}; g.k.Oc=function(){};g.v(o1,g.E);o1.prototype.ra=function(){this.B.get().removeListener(this);g.E.prototype.ra.call(this)};g.v(uIa,g.E);vIa.prototype.He=function(a,b,c,d){if(b=h0(a,c,d,this.i,this.Fa,this.Xa,this.G,this.Cd))return b;if(V_(d,rIa()))return new k1(c,d,this.Xa,this.B,this.i,a,this.l,this.C,this.Fa,this.u,this.Qa,this.Cd,new l1(this.Fa));if(V_(d,qIa()))return new j1(c,d,this.Xa,this.B,this.i,a,this.l,this.Fa,this.u,this.Qa,this.Cd,new l1(this.Fa));throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.v(wIa,g.E);g.v(xIa,g.E);g.v(yIa,g.E);g.v(q1,g0);q1.prototype.startRendering=function(a){g0.prototype.startRendering.call(this,a);X(this.layout.Ia,"metadata_ad_video_is_listed")&&(a=X(this.layout.Ia,"metadata_type_ad_info_ad_metadata"),this.G.get().I.Na("onAdMetadataAvailable",a))};AIa.prototype.He=function(a,b,c,d){if(V_(d,zIa()))return new q1(a,c,d,this.l,this.Fa,this.Xa,this.u,this.i,this.Cd);throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.v(BIa,g.E);CIa.prototype.He=function(a,b,c,d){if(z_(this.Qa.get())&&V_(d,zIa()))return new q1(a,c,d,this.i,this.Fa,this.Xa,this.l,this.u,this.Cd);if(a=h0(a,c,d,this.i,this.Fa,this.Xa,this.l,this.Cd))return a;throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.v(DIa,g.E);g.v(r1,g.E);r1.prototype.u=function(){return this.l};s1.prototype.bw=function(a){this.Lj.bw(a)}; s1.prototype.Qv=function(){try{this.Lj.Qv()}catch(a){}}; s1.prototype.tm=function(){this.i().tm()}; s1.prototype.Rj=function(){this.i().Rj()};g.v(t1,WL); t1.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.Na("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.Na("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1); this.i.Na("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.Na("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.i.Na("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.Na("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.Na("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.i.Na("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.i.Na("updateEngagementPanelAction",b.addAction);this.i.Na("changeEngagementPanelVisibility", b.expandAction);break;case 3:this.i.Na("changeEngagementPanelVisibility",b.hideAction),this.i.Na("updateEngagementPanelAction",b.removeAction)}};g.v(u1,cM);g.k=u1.prototype;g.k.init=function(a,b,c){cM.prototype.init.call(this,a,b,c);g.zl(this.B,"stroke-dasharray","0 "+this.u);this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){eM(this);cM.prototype.hide.call(this)}; g.k.show=function(){dM(this);cM.prototype.show.call(this)}; g.k.pp=function(){this.hide()}; g.k.fn=function(){if(this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&g.zl(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.u+" "+this.u)}};g.v(v1,yL);g.k=v1.prototype; g.k.init=function(a,b,c){yL.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.Tx(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!= e&&0=this.B?(this.G.hide(),this.K=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.B-a)/1E3)),a!==this.X&&(bM(this.messageText,{TIME_REMAINING:String(a)}),this.X=a)))}};g.v(D1,yL); D1.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new ML(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.ya(this.answer),a.init(PI("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.l=new UL(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-survey-answer-toggle-button"]),this.l.ya(this.answer), g.F(this,this.l),this.l.init(PI("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()}; D1.prototype.clear=function(){this.hide()};g.v(E1,yL);E1.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new UL(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.ya(this.l),this.button.init(PI("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.v(F1,ML);F1.prototype.init=function(a,b,c){ML.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.Pz(b.text),a=!g.rc(b));a||g.Ux(Error("No submit text was present in the renderer."))}; F1.prototype.onClick=function(a){this.W("l");ML.prototype.onClick.call(this,a)};g.v(G1,yL); G1.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new nM(this.api,this.Ta,this.layoutId,this.i,this.B,this.wi),c.ya(this.G),c.init(PI("skip-button"),a,this.macros),g.F(this,c),this.l=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new hM(this.api,this.Ta,this.layoutId,this.i,this.B,!1),c.ya(this.G),c.init(PI("ad-preview"),a,this.macros),iM(c),g.F(this,c),this.l=c);null==this.l&&g.Tx(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b))); b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new F1(this.api,this.Ta,this.layoutId,this.i),c.ya(this.submitButton),c.init(PI("survey-submit"),a,this.macros),g.F(this,c),this.u=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new qM(this.api,this.Ta,this.layoutId,this.i,!0),c.ya(this.C),c.init(PI("simple-ad-badge"),a,this.macros),g.F(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new vM(this.api,this.Ta,this.layoutId,this.i,this.B,void 0),c.ya(this.C), c.init(PI("ad-duration-remaining"),a,this.macros),g.F(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new $L(this.api,this.Ta,this.layoutId,this.i,this.element),g.F(this,a),a.ya(this.C),a.init(PI("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()}; G1.prototype.clear=function(){this.hide()};g.v(H1,yL);H1.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);SIa(this)}; H1.prototype.show=function(){this.B=g.Sa();yL.prototype.show.call(this)}; H1.prototype.VJ=function(){};g.v(I1,H1);g.k=I1.prototype;g.k.init=function(a,b,c){var d=this;H1.prototype.init.call(this,a,b,c);b.questionText&&g.ug(this.questionText,g.Pz(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&PIa(d,e.instreamSurveyAdAnswerRenderer,c)}); this.G=new Set(this.u.map(function(e){return e.l.l})); (a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&TIa(this,a,c);b.surveyAdQuestionCommon&&RIa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.N(this.element,"change",this.onChange);this.show()}; g.k.VJ=function(){J1(this,!1);this.C.u.subscribe("l",this.jT,this)}; g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.l?UIa(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),J1(this,!0))}; g.k.jT=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.Wb(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=ui(e.baseUrl,b));return e}); return d}); c&&c.forEach(function(d){return a.Ta.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(K1,H1);K1.prototype.init=function(a,b,c){var d=this;H1.prototype.init.call(this,a,b,c);b.questionText&&g.ug(this.questionText,g.Pz(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&PIa(d,e.instreamSurveyAdAnswerRenderer,c)}); b.surveyAdQuestionCommon?RIa(this,b.surveyAdQuestionCommon):g.Tx(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()}; K1.prototype.clear=function(){g.S(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(L1,yL); L1.prototype.init=function(a,b,c){var d=this;yL.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new K1(d.api,d.Ta,d.layoutId,d.i,d.Zg,d.wi);f.ya(d.l);f.init(PI("survey-question-single-select"),e,c);d.questions.push(f);g.F(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new I1(d.api,d.Ta,d.layoutId,d.i,d.Zg,d.wi), f.ya(d.l),f.init(PI("survey-question-multi-select"),e,c),d.questions.push(f),g.F(d,f))}); this.show()}; L1.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(M1,yL); M1.prototype.init=function(a,b,c){var d=this;yL.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.Tx(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){WIa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape); WIa(this.logoImage,b.brandImage);g.ug(this.text,g.Pz(b.text));this.actionButton=new ML(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-survey-interstitial-action-button"]);g.F(this,this.actionButton);this.actionButton.ya(this.u);this.actionButton.init(PI("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands,f=g.S(this.api.T().experiments,"html5_use_normal_timer_for_survey");this.l=this.Zg?new rM(this.api,1E3*a):new sM(1E3*a,void 0,f);this.l.subscribe("g",function(){d.transition.hide(); if(!d.Zg){for(var h=g.q(e),l=h.next();!l.done;l=h.next())d.Ta.executeCommand(l.value,c);d.Ta.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)}}); g.F(this,this.l);this.N(this.element,"click",function(h){var l=b.dismissCommands,m=h.target===d.interstitial;h=d.actionButton.element.contains(h.target);if(m||h)if(d.transition.hide(),m)if(d.jD)d.api.onAdUxClicked(d.componentType,d.layoutId);else for(l=g.q(l),m=l.next();!m.done;m=l.next())d.Ta.executeCommand(m.value,d.macros)}); this.transition.show(100);if(!this.Zg&&b.impressionCommands)for(a=g.q(b.impressionCommands),f=a.next();!f.done;f=a.next())this.Ta.executeCommand(f.value,c)}else g.Tx(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Tx(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Tx(Error("SurveyTextInterstitialRenderer has no button."));else g.Tx(Error("SurveyTextInterstitialRenderer has no text."));else g.Tx(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; M1.prototype.clear=function(){this.hide()}; M1.prototype.show=function(){XIa(!0);yL.prototype.show.call(this)}; M1.prototype.hide=function(){XIa(!1);yL.prototype.hide.call(this)};var YKa="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(N1,WL); N1.prototype.u=function(a){var b=a.id,c=a.content,d=c.componentType;if(!YKa.includes(d))switch(a.actionType){case 1:a=this.C();var e=this.api,f=c.layoutId,h=c.i,l=c instanceof YI||c instanceof dK||c instanceof fK?c.Zg:!1,m=c instanceof YI||c instanceof jK||c instanceof dK?c.wi:!1,n=c instanceof fK?c.jD:!1;h=void 0===h?{}:h;l=void 0===l?!1:l;m=void 0===m?!1:m;n=void 0===n?!1:n;switch(d){case "invideo-overlay":a=new w1(e,a,f,h);break;case "player-overlay":a=new CM(e,a,f,h,new sO(e),m);break;case "survey":a= new L1(e,a,f,h,l,m);break;case "ad-action-interstitial":a=new v1(e,a,f,h,l,m);break;case "survey-interstitial":a=new M1(e,a,f,h,l,n);break;case "ad-message":a=new C1(e,a,f,h,new sO(e,1));break;default:a=null}if(!a){g.Ux(Error("No UI component returned from ComponentFactory for type: "+d));break}Nb(this.l,b)?g.Ux(Error("Ad UI component already registered: "+b)):this.l[b]=a;a.bind(c);this.B.append(a.dK);break;case 2:b=YIa(this,a);if(null==b)break;b.bind(c);break;case 3:c=YIa(this,a),null!=c&&(g.ef(c), Nb(this.l,b)?(c=this.l,b in c&&delete c[b]):g.Ux(Error("Ad UI component does not exist: "+b)))}}; N1.prototype.ra=function(){g.ff(Object.values(this.l));this.l={};WL.prototype.ra.call(this)};g.v(O1,g.zN);g.k=O1.prototype;g.k.create=function(){this.load();this.created=!0}; g.k.load=function(){g.zN.prototype.load.call(this);this.player.getRootNode().classList.add("ad-created");var a=this.i.i.pe.kh,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;var h=c&&c.Sh()||!1;f=bJa(f,a,e,h);h=c&&c.clientPlaybackNonce||"";c=c&&c.Xn||!1;var l=1E3*this.player.getDuration(1);pL(a,f.nk)?(this.Ta=new mL(this,this,this.player,this.cm,b,this.i.i.pe),pqa(this.Ta,f.Wn,f.nk),this.i.i.El.wh(h,l,c,f.nk,f.nk.concat(f.Wn),e,d),nL(this.Ta,f.nk)):(this.i.i.El.wh(h,l,c,f.nk,f.nk.concat(f.Wn),e,d),this.Ta=new mL(this,this,this.player,this.cm,b,this.i.i.pe),pqa(this.Ta,f.Wn,f.nk))}; g.k.destroy=function(){var a=this.player.getVideoData(1);this.i.i.El.ek(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; g.k.unload=function(){g.zN.prototype.unload.call(this);this.player.getRootNode().classList.remove("ad-created");if(null!==this.Ta){var a=this.Ta;this.Ta=null;a.dispose()}null!=this.l&&(a=this.l,this.l=null,a.dispose());this.cm.reset()}; g.k.ri=function(){return!1}; g.k.kD=function(){return null===this.Ta?!1:this.Ta.kD()}; g.k.fk=function(a){null!==this.Ta&&this.Ta.fk(a)}; g.k.getAdState=function(){return this.Ta?this.Ta.Mw:-1}; g.k.getOptions=function(){return Object.values(XKa)}; g.k.Se=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=vI(this.player),Object.assign(b,a.y7),this.Ta&&!b.AD_CPN&&(b.AD_CPN=this.Ta.nw()),a=g.yq(a.url,b)):a=null,a;case "isExternalShelfAllowedFor":a:if(b.playerResponse){a=b.playerResponse.adPlacements||[];for(b=0;b