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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
'use strict';var ba,da,aaa,ha,ia,ka,ma,pa,qa,ra,ta,ua,va,wa,ya,baa,caa,za,Aa,daa,eaa,Ca,Da,Ea,Fa,Ja,Ka,gaa,haa,Ua,Va,Wa,iaa,Ya,Za,$a,ab,bb,cb,db,jaa,gb,ib,tb,ub,wb,zb,Bb,Cb,Db,Fb,Eb,Gb,Hb,Jb,laa,Lb,Sb,maa,Yb,Zb,naa,fc,ac,oaa,bc,paa,qaa,raa,nc,oc,pc,qc,Ac,Dc,zc,uc,Gc,Fc,Ic,Kc,Lc,Nc,Mc,Oc,Pc,Sc,Tc,Uc,Vc,Wc,Xc,Yc,vaa,Zc,$c,cd,dd,ed,gd,hd,id,jd,ld,kd,md,waa,od,rd,qd,sd,ud,vd,td,wd,xd,zd,yd,Ad,Bd,Cd,Dd,xaa,Fd,Gd,Hd,Id,Kd,Nd,yaa,zaa,Aaa,Md,Od,Sd,Caa,Td,Ud,Vd,Wd,Xd,Daa,Yd,Eaa,Zd,Faa,$d,Gaa,ae,be,ce,de,Haa,
je,le,me,oe,Jaa,pe,se,ue,ve,we,xe,ze,Be,Ce,He,Ne,Oe,Pe,Qe,Se,Ue,Kaa,Re,Ze,bf,Xe,Maa,Ve,Te,ff,gf,hf,jf,kf,lf,mf,Naa,of,rf,sf,wf,yf,zf,Qaa,Af,Ef,Kf,Lf,Pf,Taa,Nf,Uaa,Xaa,Yaa,Tf,Wf,Zaa,$aa,Vf,aba,Zf,bg,cg,dba,gg,ig,lg,mg,ng,qg,rg,sg,tg,eba,fba,xg,yg,Eg,Fg,Hg,Gg,Jg,Mg,Lg,Kg,gba,vg,Wg,Vg,Yg,Xg,ug,ch,iba,dh,eh,jba,jh,lh,nh,oh,qh,rh,sh,uh,kba,lba,wh,zh,vh,xh,mh,th,nba,Ch,Ah,Bh,Eh,mba,Dh,Ih,Jh,Kh,Lh,oba,Mh,Nh,pba,Oh,Ph,Qh,Rh,Sh,Th,tba,Uh,uba,Vh,Wh,Xh,Yh,Zh,$h,di,ei,fi,xba,ii,ki,zba,mi,ni,oi,pi,qi,ui,vi,wi,
xi,yi,zi,Ai,Bi,Di,Fi,Gi,Ii,Ji,Ki,Bba,Cba,Dba,Pi,Ni,Ui,Oi,Vi,Ti,Xi,Fba,Gba,Si,Yi,Hba,Zi,$i,aj,bj,cj,dj,ej,fj,pj,oj,qj,rj,Mba,Lba,sj,Nba,tj,uj,vj,wj,xj,yj,zj,Aj,Bj,Cj,Dj,Ej,Oba,Pba,Qba,Gj,Hj,Ij,Jj,Mj,Nj,Oj,Pj,Qj,Sj,Tj,Uj,Sba,Rba,Vj,Tba,Uba,Wj,Xj,Vba,Wba,Yba,Zj,ak,bk,ck,dk,ek,fk,gk,hk,ik,aca,$ba,lk,nk,ok,mk,kk,jk,pk,qk,rk,tk,sk,yk,zk,Bk,dca,Ak,Lk,Nk,Mk,bca,eca,Qk,Sk,Tk,Uk,Vk,Wk,Xk,Yk,Zk,$k,al,fca,bl,cl,dl,el,fl,gl,hl,Yj,hca,jl,kl,ll,il,ml,ica,ol,jca,nl,kca,lca,ql,rl,tl,ul,vl,wl,sl,xl,pl,nca,oca,mca,
pca,yl,qca,zl,Al,Bl,Cl,Dl,El,Fl,rca,Gl,Hl,Il,sca,tca,Jl,Ll,Kl,Nl,Ol,Pl,Ql,Rl,Tl,Sl,Ul,Vl,wca,yca,zca,Bca,Xl,Yl,Zl,$l,am,cm,dm,Dca,Cca,em,jm,km,nm,Eca,qm,pm,rm,Fca,Dm,Gm,Em,Hca,Fm,Hm,Im,Km,Jm,Jca,Ica,Lm,Lca,Kca,Mca,Pm,Qm,Nca,Sm,Tm,Um,Rm,Vm,Oca,Pca,Wm,Qca,Rca,Ym,Zm,Vca,$m,an,bn,cn,Wca,en,gn,kn,nn,pn,mn,ln,qn,Xca,rn,sn,tn,un,Zca,zn,An,Bn,ada,Cn,Dn,En,Fn,Gn,Hn,In,bda,Kn,Ln,Mn,On,Nn,Pn,Qn,Rn,Sn,Tn,Un,Vn,Wn,Xn,Yn,cda,Zn,$n,dda,ao,bo,eda,eo,fda,fo,go,gda,hda,ho,io,ko,mo,no,oo,po,qo,jo,lo,jda,ro,so,uo,to,
kda,lda,mda,vo,wo,xo,yo,qda,rda,sda,tda,uda,Do,Eo,vda,Fo,wda,xda,Go,Ho,Io,yda,Jo,Lo,Mo,No,Oo,Po,Qo,Ro,So,To,zda,Ada,Uo,Bda,Wo,Vo,Zo,$o,Yo,Cda,Gda,Fda,cp,Hda,Ida,Jda,Lda,Kda,dp,ep,fp,Mda,hp,ip,Nda,Oda,jp,kp,lp,mp,Pda,np,op,Rda,pp,Sda,qp,Ap,zp,Bp,Cp,Ep,Uda,Fp,Tda,Gp,Vda,Hp,Wda,Xda,Jp,Lp,Mp,Np,Op,Kp,Pp,Qp,Vp,Wp,Tp,Yda,$da,aea,Yp,Zp,$p,aq,bea,bq,cq,dq,eq,fq,gq,hq,iq,lq,kq,dea,eea,mq,oq,jq,nq,cea,pq,qq,gea,hea,iea,jea,uq,vq,wq,rq,xq,yq,fea,kea,lea,Aq,zq,Bq,Dq,qea,mea,rea,Hq,Iq,Jq,Kq,Lq,Ko,sea,Mq,tea,Hga,
Iga,Jga,Rga,Oq,Pq,Qq,Rq,Vga,Wq,Vq,Uq,Xq,Xga,$q,ar,er,Yga,fr,gr,mr,rr,qr,nr,or,pr,ur,tr,Zga,wr,xr,zr,aha,Br,Cr,Dr,fha,bha,Ir,kha,Jr,Kr,mha,Nr,Or,Pr,Qr,nha,Tr,Ur,Vr,Wr,Yr,Zr,$r,as,cs,ds,es,fs,gs,hs,pha,is,qha,ks,ms,uha,ns,tha,vha,os,ps,qs,rs,ts,us,vs,ws,xs,ys,zs,As,Bs,Cs,Ds,Es,Fs,Gs,Hs,Is,Js,Ks,Ls,Ms,Ns,Os,Ps,Qs,Rs,Ts,Us,Ws,Vs,Xs,wha,$s,at,ct,dt,ft,it,jt,ht,kt,lt,mt,bt,Mt,Lt,Bha,Ot,Rt,Tt,Cha,Wt,Vt,Eha,Fha,Gha,$t,Hha,Iha,Xt,bu,au,Jha,du,eu,fu,lu,mu,nu,pu,qu,tu,uu,vu,xu,yu,zu,Bu,Du,Eu,ou,Fu,Hu,Gu,Kha,
Ku,Lu,Mu,Nu,Pu,Qu,Ru,Su,Mha,Nha,Zu,$u,av,Oha,fv,gv,hv,jv,Pha,kv,lv,iv,nv,qv,pv,ov,uv,xv,vv,Qha,Tha,Sha,Xha,Yha,Uha,Iv,Wha,Jv,cia,bia,aia,Rv,gia,Sv,Wv,Xv,hia,iia,kia,mia,nia,oia,Yv,$v,pia,gw,hw,kw,jw,lw,mw,nw,ow,pw,qw,uia,via,tw,uw,wia,xia,vw,yia,zia,ww,xw,Aia,yw,Bia,Aw,Bw,Dia,Eia,Cw,Gia,Hia,zw,Fw,Iia,Cia,Jia,Lia,Kia,Dw,Gw,Mia,Ew,Fia,Nia,Iw,Oia,Jw,Pia,Hw,Qia,Ria,Kw,Sia,Lw,Tia,Mw,Uia,Ow,Via,Wia,Xia,Yia,Sw,Zia,$ia,aja,bja,cja,dja,eja,fja,Uw,gja,Vw,jja,ija,hja,Ww,kja,Xw,Yw,$w,mja,dx,cx,Zw,ex,nja,fx,oja,
hx,ix,qja,rja,jx,kx,sja,tja,pja,vja,wja,xja,mx,yja,nx,ox,Bja,Aja,zja,Cja,px,Eja,qx,rx,Hja,Gja,Fja,Ija,yx,zx,Jja,wx,Kja,tx,xx,vx,ux,Lja,Oja,Mja,Rja,Sja,Qja,Fx,Ix,Jx,Uja,Hx,Kx,Lx,Nx,Ox,Rx,Sx,Px,Wja,Tx,Ux,Xja,Wx,Xx,Yx,$ja,$x,ay,aka,bka,cka,dy,eka,fka,gka,fy,hka,jka,gy,kka,hy,iy,cw,ska,my,tka,uka,vka,ny,xka,vy,yka,Bka,Eka,Cka,Gy,Fy,Fka,Ey,Hy,Iy,Ika,Kka,My,Ny,Mka,R,Oy,Py,Qy,Ry,Sy,Ty,Nka,Uy,Vy,Wy,Xy,Ska,Uka,Wka,Yka,Zka,Zy,ala,bla,ez,Qz,dla,ela,Rz,Uz,Vz,fla,Xz,gla,$z,Zz,aA,hla,bA,cA,Wz,dA,ila,lla,mla,eA,
fA,gA,nla,hA,iA,kA,lA,ola,tla,mA,ula,wla,nA,qA,pA,tA,sA,zla,uA,vA,yla,Ala,wA,oA,Bla,Cla,yA,zA,AA,BA,CA,DA,FA,GA,IA,Dla,JA,MA,Hla,NA,LA,Ila,Mla,RA,Gla,Fla,SA,Nla,Ola,Pla,VA,XA,YA,Rla,Sla,ZA,WA,Qla,Tla,$A,Ula,aB,bB,Vla,cB,dB,eB,fB,gB,hB,iB,jB,kB,lB,Wla,mB,oB,Yla,Zla,nB,ama,bma,pB,cma,sB,dma,tB,vB,ema,uB,wB,fma,yB,ima,AB,BB,GB,kma,DB,IB,KB,lma,MB,FB,JB,HB,mma,NB,nma,OB,oma,CB,EB,jma,LB,PB,pma,qma,RB,rma,sma,tma,SB,uma,UB,vma,TB,VB,wma,WB,XB,YB,ZB,$B,xma,bC,yma,zma,cC,dC,eC,fC,Ama,aC,gC,Bma,Cma,hC,iC,
jC,kC,Dma,Ema,mC,Fma,nC,oC,Gma,Hma,pC,Ima,Jma,Nma,Oma,Kma,Lma,Mma,qC,sC,rC,tC,uC,Pma,Qma,vC,wC,xC,Rma,yC,zC,AC,Sma,Tma,BC,Uma,CC,Vma,DC,EC,Wma,Xma,Yma,Zma,ana,$ma,GC,bna,cna,dna,HC,IC,JC,ena,LC,KC,PC,QC,RC,SC,TC,fna,UC,NC,gna,VC,XC,YC,hna,ZC,$C,aD,bD,cD,dD,eD,fD,ina,gD,hD,jna,iD,jD,mD,nD,oD,pD,qD,kna,rD,sD,tD,lna,mna,uD,vD,Kla,QA,qna,rna,sna,tna,una,vna,KA,wna,wD,Ana,zna,yna,xD,xna,Cna,yD,Gna,Dna,Ena,Ina,Jna,BD,Hna,Kna,CD,DD,ED,Lna,Mna,Nna,FD,AD,Ona,Pna,Qna,GD,Rna,Sna,Tna,ID,HD,Una,Vna,Wna,Xna,Yna,
$na,Lla,Jla,JD,LD,ND,OD,PD,QD,MD,SD,boa,UD,doa,VD,foa,eoa,coa,goa,hoa,ioa,WD,Ela,XD,joa,OA,koa,ZD,$D,aE,loa,moa,noa,ooa,poa,qoa,roa,bE,soa,cE,dE,toa,eE,uoa,gE,voa,hE,iE,jE,kE,woa,xoa,yoa,Aoa,lE,Boa,zoa,mE,nE,oE,pE,Coa,qE,rE,PE,KE,Goa,Loa,QE,TE,UE,CE,Toa,sE,Moa,LE,NE,XE,aF,Uoa,Ioa,Voa,zE,dF,yE,Noa,Koa,eF,Eoa,OE,Soa,gF,hF,Xoa,Yoa,iF,Zoa,$oa,apa,bpa,jF,cpa,hpa,gpa,dpa,fpa,epa,kF,ipa,lF,jpa,kpa,mF,oF,pF,npa,ppa,qpa,tF,rpa,uF,vF,spa,upa,xpa,ypa,zpa,yF,Dpa,Fpa,Gpa,vpa,Bpa,Cpa,Hpa,Ipa,Mpa,Opa,DF,EF,Ppa,
Rpa,Spa,Tpa,Upa,FF,$pa,HF,KF,bqa,aqa,cqa,dqa,MF,NF,IF,OF,PF,eqa,RF,iqa,fqa,hqa,ZF,bG,wqa,qqa,WF,fG,vqa,xqa,YF,yqa,zqa,gG,oqa,Bqa,Aqa,TF,XF,aG,Hqa,Dqa,Iqa,Eqa,Fqa,Gqa,Jqa,hG,Kqa,Lqa,jG,kG,mG,SF,eG,sqa,gqa,rqa,uqa,tqa,oG,Nqa,Cqa,vG,wG,xG,yG,Qqa,zG,Rqa,BG,AG,pqa,Sqa,Mqa,dG,Tqa,lqa,VF,kqa,Qpa,FG,GG,Vqa,HG,IG,JG,LG,KG,MG,Wqa,Xqa,NG,PG,Yqa,Zqa,ara,$qa,QG,RG,bra,SG,cra,TG,UG,VG,WG,XG,YG,dra,ZG,era,$G,bH,hra,aH,ira,fra,gra,jra,kra,cH,dH,eH,fH,gH,hH,mra,nra,mH,lH,qra,pra,rra,pH,ora,qH,iH,rH,oH,nH,kH,jH,tH,
uH,wH,yH,NH,ura,OH,tra,PH,QH,RH,SH,TH,UH,vra,VH,WH,Ly,W,XH,wra,xra,YH,yra,aI,zra,Ara,Bra,Era,Cra,Dra,Fra,bI,Gra,Hra,Ira,Jra,Kra,cI,dI,eI,fI,gI,hI,iI,jI,kI,lI,mI,nI,oI,pI,qI,rI,sI,tI,uI,vI,wI,xI,yI,zI,AI,BI,CI,DI,EI,FI,GI,HI,II,JI,KI,LI,MI,NI,OI,PI,QI,RI,SI,TI,UI,VI,WI,XI,YI,ZI,$I,aJ,bJ,Mra,Lra,Ora,Pra,Nra,cJ,Qra,dJ,eJ,fJ,gJ,Sra,Rra,hJ,iJ,jJ,Tra,oJ,pJ,Ura,Xra,qJ,Yra,rJ,sJ,Zra,tJ,$ra,asa,csa,dsa,esa,vJ,uJ,bsa,wJ,hsa,fsa,gsa,jsa,ksa,xJ,lsa,isa,yJ,zJ,osa,psa,AJ,qsa,rsa,BJ,DJ,EJ,FJ,GJ,JJ,LJ,MJ,ssa,tsa,
NJ,vsa,wsa,OJ,xsa,QJ,ysa,zsa,RJ,SJ,Asa,Bsa,TJ,Dsa,Csa,UJ,Gsa,VJ,Hsa,WJ,XJ,YJ,$J,Isa,Jsa,Ksa,Lsa,Msa,aK,cK,Qsa,Tsa,Nsa,dK,cta,bta,eK,eta,dta,gta,hta,jta,ita,kta,lta,mta,nta,fK,gK,ota,pta,qta,sta,tta,uta,vta,wta,nK,yta,zta,lK,mK,xta,Ata,Bta,oK,Eta,Cta,Gta,Fta,Hta,sra,Ita,Jta,Kta,Lta,pK,Qta,Nta,Ota,Pta,Rta,qK,Sta,Uta,Vta,Tta,rK,Wta,PJ,Yta,Zta,usa,Xta,sK,tK,$ta,aua,bua,uK,wK,dua,xK,AK,eua,BK,fua,gua,CK,iua,jua,kua,lua,mua,nua,oua,HK,pua,IK,qua,rua,sua,tua,uua,MK,NK,OK,vua,PK,wua,RK,yua,xua,SK,TK,UK,VK,
zua,WK,XK,Aua,YK,ZK,Eua,Bua,Dua,Cua,Fua,$K,aL,Gua,Hua,Iua,Jua,bL,Kua,Mua,Lua,cL,dL,eL,fL,gL,iL,jL,kL,lL,mL,Nua,nL,oL,Pua,Oua,pL,Qua,qL,rL,sL,tL,uL,xL,yL,zL,AL,BL,CL,DL,EL,Sua,Uua,Tua,FL,Xua,Yua,$ua,ava,IL,cva,KL,dva,LL,ML,NL,OL,fva,QL,hva,gva,jva,iva,RL,SL,TL,UL,VL,WL,XL,$L,kva,mva,nva,bM,ova,bw,qva,pva,cM,sva,rva,uva,tva,vva,xva,yva,Ava,Bva,Fva,Eva,Gva,hM,Hva,kM,iM,lM,jM,Mta,Iva,Jva,Kva,Lva,qM,pM,Ova,sM,Rva,BM,CM,Sva,DM,EM,Tva,Uva,GM,HM,Vva,bwa,cwa,fwa,dwa,gwa,hwa,iwa,jwa,lwa,SM,pwa,VM,rwa,owa,swa,
twa,UM,qwa,WM,XM,YM,uM,nM,aN,wwa,uwa,vwa,bN,eN,ywa,dN,gN,zwa,Awa,jN,kN,lN,pN,Cwa,Dwa,qN,rN,Ewa,Fwa,Gwa,Hwa,sN,Jwa,Iwa,Kwa,tN,Lwa,Mwa,vN,wN,Nwa,zN,Pwa,BN,xN,Qwa,Rwa,Owa,CN,DN,GN,Swa,Twa,FN,IN,HN,KN,MN,Uwa,PN,Vwa,Ywa,Wwa,TN,UN,Zwa,XN,YN,ZN,$N,bO,axa,$wa,bxa,dO,dxa,cxa,exa,fxa,gxa,hxa,jO,kO,ixa,lO,mO,jxa,kxa,nO,qO,mxa,lxa,rO,sO,tO,nxa,uO,vO,wO,xO,oxa,yO,zO,pxa,AO,qxa,sxa,rxa,FO,DO,EO,txa,uxa,vxa,GO,HO,IO,JO,KO,wxa,NO,OO,QO,RO,SO,UO,VO,WO,XO,xxa,Axa,YO,yxa,zxa,Exa,Fxa,$O,Hxa,Gxa,Ixa,Jxa,Kxa,bP,dP,Lxa,
Mxa,Nxa,Pxa,Oxa,eP,fP,gP,hP,Qxa,Rxa,Sxa,Txa,Uxa,lP,Wxa,Vxa,Yxa,nP,Zxa,sP,aya,bya,pP,mP,oP,uP,eya,vP,rP,Xxa,dya,tP,$xa,cya,fya,iP,gya,qP,xP,yP,zP,AP,iya,DP,EP,FP,GP,HP,IP,jya,JP,LP,KP,MP,NP,kya,OP,lya,nya,mya,PP,QP,oya,RP,SP,pya,TP,qya,UP,rya,VP,sya,ZP,YP,bQ,aQ,tya,$P,eQ,uya,vya,fQ,gQ,hQ,iQ,kQ,wya,NN,Aya,hO,xya,dQ,zya,iO,yya,Bya,Dya,Cya,Eya,Fya,oQ,Gya,pQ,Hya,rQ,sQ,tQ,uQ,vQ,wQ,xQ,yQ,Jya,zQ,AQ,BQ,CQ,EQ,FQ,GQ,HQ,IQ,JQ,KQ,Mya,LQ,RQ,Oya,Pya,SQ,TQ,UQ,VQ,Sya,Uya,Tya,WQ,Wya,Xya,Yya,Zya,$ya,aza,bza,XQ,YQ,ZQ,
cza,$Q,eza,fza,gza,hza,iza,jza,bR,cR,eR,fR,gR,mza,nza,dR,oza,hR,kza,lza,pza,iR,jR,kR,lR,rza,sza,mR,nR,qza,pR,uza,xza,wza,yza,zza,Aza,Bza,qR,Cza,Dza,Fza,Gza,Hza,Iza,Jza,rR,Eza,sR,tR,uR,vR,wR,Kza,AR,Lza,Mza,Nza,BR,Oza,CR,DR,ER,GR,Tza,Qza,Rza,FR,Pza,HR,Uza,IR,JR,Xza,Yza,Vza,Wza,KR,LR,aAa,bAa,$za,dAa,MR,gAa,hAa,iAa,eAa,jAa,fAa,lAa,mAa,NR,OR,nAa,oAa,pAa,qAa,rAa,QR,RR,sAa,tAa,uAa,SR,wAa,TR,xAa,UR,DAa,zAa,yAa,vAa,BAa,CAa,EAa,FAa,HAa,GAa,IAa,JAa,KAa,LAa,MAa,VR,WR,NAa,QAa,YR,RAa,TAa,UAa,SAa,ZR,VAa,$R,YAa,
ZAa,XAa,WAa,bS,OAa,PAa,dBa,eBa,fBa,gBa,eS,hBa,aS,$Aa,dS,bBa,cBa,kBa,iBa,lBa,mBa,jBa,nBa,oBa,pBa,gS,qBa,rBa,sBa,tBa,uBa,vBa,kS,wBa,xBa,yBa,lS,mS,nS,oS,DBa,GBa,EBa,ABa,qS,zBa,FBa,tS,IBa,HBa,uS,KBa,MBa,NBa,LBa,xS,OBa,SBa,TBa,ES,GS,HS,UBa,yS,IS,KS,WBa,VBa,CS,MS,NS,XBa,OS,LS,ZBa,$Ba,aCa,bCa,cCa,zS,QBa,PS,AS,QS,hCa,SS,iCa,jCa,fCa,US,kCa,VS,dCa,XS,gCa,lCa,WS,TS,mCa,YS,nCa,RS,pCa,aT,ZS,bT,$S,cT,dT,qCa,eT,fT,gT,hT,rCa,iT,sCa,kT,uCa,vCa,wCa,nT,mT,lT,xCa,yCa,zCa,ACa,pT,qT,rT,BCa,CCa,DCa,sT,ECa,uT,FCa,tT,vT,
wT,GCa,ICa,MCa,JCa,KCa,LCa,NCa,BT,CT,OCa,QCa,RCa,SCa,DT,ET,XCa,YCa,ZCa,JT,KT,$Ca,LT,WCa,aDa,FT,TCa,bDa,GT,HT,UCa,VCa,IT,cDa,dDa,eDa,Apa,Epa,NT,OT,gDa,fDa,PT,QT,RT,hDa,iDa,jDa,ST,kDa,lDa,UT,mDa,VT,WT,nDa,XT,pDa,ZT,tDa,bU,zT,oDa,vDa,dU,rDa,sDa,qDa,cU,aU,$T,uDa,zDa,xDa,wDa,fU,ADa,gU,BDa,hU,iU,CDa,DDa,EDa,FDa,GDa,kU,lU,IU,SU,UU,VU,JDa,KDa,yT,AT,NDa,YU,ZU,PCa,bV,XU,ODa,WU,LDa,MDa,cV,dV,PDa,aV,xT,$U,QDa,RDa,SDa,eV,UDa,TDa,fV,YDa,gV,$Da,ZDa,iV,hV,bEa,kV,jV,cEa,WDa,mV,aEa,XDa,lV,nV,dEa,eEa,oV,rV,gEa,pV,kEa,
qV,lEa,sV,iEa,hEa,mEa,tV,nEa,oEa,rEa,qEa,pEa,uV,sEa,vEa,wEa,AV,BV,yEa,zEa,CV,DV,FV,CEa,GV,DEa,xV,xEa,FEa,GEa,IEa,yDa,JV,HEa,EV,AEa,JEa,KEa,LEa,MEa,tEa,zV,wV,yV,NEa,MV,NV,OEa,PEa,QEa,SEa,REa,OV,TEa,VEa,UEa,XEa,QV,aFa,YEa,$Ea,bFa,RV,fFa,dFa,eFa,hFa,iFa,jFa,SV,PV,kFa,cFa,lFa,TV,mFa,ZEa,nFa,UV,VV,oFa,qFa,rFa,WV,pFa,XV,YV,sFa,ZV,$V,aW,bW,uFa,xFa,wFa,vFa,dW,yFa,cW,zFa,fW,hW,AFa,DFa,BFa,CFa,EFa,GFa,FFa,HFa,IFa,iW,KFa,MFa,LFa,NFa,OFa,JFa,PFa,RFa,TFa,UFa,QFa,VFa,jW,kW,WFa,XFa,SFa,lW,YFa,ZFa,$Fa,aGa,cGa,mW,
nW,eGa,qW,rW,hGa,sW,iGa,jGa,tW,fGa,kGa,lGa,mGa,wW,nGa,pGa,oGa,qGa,xW,yW,rGa,zW,tGa,AW,BW,vGa,DW,CW,wGa,FW,uGa,GW,xGa,EW,yGa,HW,zGa,gGa,vW,BGa,CGa,DGa,EGa,FGa,GGa,HGa,IGa,KGa,LGa,MGa,JGa,NGa,OGa,JW,PGa,QGa,KW,LW,RGa,SGa,TGa,NW,VGa,PW,WGa,XGa,OW,MW,UGa,SW,RW,YGa,TW,QW,ZGa,VW,cHa,YW,dHa,aHa,WW,eHa,ZW,bHa,fHa,$W,hHa,UW,iHa,jHa,gHa,kHa,XW,lHa,mHa,$Ga,aX,bX,cX,dX,nHa,eX,jU,IDa,oHa,pHa,uEa,HDa,fX,qHa,rHa,sHa,uHa,vHa,wHa,xHa,yHa,zHa,gX,BHa,CHa,DHa,EHa,FHa,iX,jX,kX,lX,mX,nX,oX,pX,GHa,qX,HHa,LHa,JHa,IHa,QHa,
PHa,OHa,rX,AHa,hX,RHa,WHa,UHa,XHa,VHa,SHa,YHa,THa,$Ha,sX,bIa,cIa,dIa,sH,yX,eIa,cS,gIa,PBa,hIa,zX,gW,iIa,GX,BX,wS,xX,HX,JX,IV,KV,KX,aBa,EX,FX,HV,mIa,lIa,jIa,CX,LX,oIa,rS,pIa,eW,JBa,NX,JS,fIa,AX,qIa,sIa,rIa,tIa,OX,CBa,uIa,vIa,kIa,tX,wIa,PX,DX,uX,xIa,QX,sS,yIa,RX,DS,zIa,AIa,BIa,BBa,MX,nIa,EEa,IIa,EIa,LIa,DIa,MIa,NIa,XX,$X,RIa,OIa,QIa,bY,PIa,cY,dY,TIa,UIa,SX,UX,HIa,jY,VIa,iY,WX,WIa,XIa,KIa,mY,YIa,ZIa,TX,fY,gY,eY,pY,dJa,aY,lY,qY,rY,eJa,hY,SIa,oY,$Ia,sY,fJa,gJa,hJa,mM,iJa,kY,tY,kJa,YX,uY,ZX,lJa,mJa,GIa,
nY,nJa,FIa,vY,wY,tCa,oJa,xY,yY,zY,pJa,AY,BY,CY,DY,EY,FY,rJa,qJa,GY,sJa,uJa,IY,wJa,HY,xJa,KY,yJa,LY,JY,MY,NY,kJ,zJa,lJ,ZH,PY,BJa,YY,Wra,ZY,mJ,WY,$Y,FJa,GJa,HJa,IJa,AJa,JJa,OY,KJa,LJa,cZ,TY,bZ,hZ,dZ,RY,MJa,QY,CJa,aZ,eZ,jZ,UY,VY,gZ,fZ,OJa,kZ,lZ,PJa,mZ,Y,QJa,RJa,UJa,VJa,ZJa,nZ,$Ja,WJa,aKa,oZ,pZ,qZ,cKa,fKa,dKa,iKa,qKa,pKa,jKa,rKa,lKa,mKa,kKa,uKa,wKa,zKa,AKa,CKa,DKa,HKa,CZ,EKa,KKa,IKa,MKa,EZ,Jka,NKa,HZ,Jy,JZ,KZ,Gka,LZ,PKa,QKa,DZ,AZ,sZ,vZ,MZ,NZ,wZ,RKa,hKa,tZ,uZ,zZ,SKa,TKa,OZ,UKa,PZ,VKa,FZ,yZ,xZ,rZ,xKa,BKa,
BZ,FKa,sKa,nKa,QZ,RZ,SZ,WKa,TZ,UZ,VZ,WZ,XZ,YZ,ZZ,$Z,SJa,a_,TJa,YKa,XKa,bKa,yKa,ZKa,LKa,$Ka,aLa,vKa,gKa,eKa,YJa,XJa,oKa,GKa,JKa,tKa,cLa,b_,bLa,c_,nJ,SY,DJa,IZ,d_,e_,f_,g_,dLa,h_,i_,j_,iZ,XY,eLa,GZ,k_,fLa,l_,n_,o_,p_,q_,hLa,s_,t_,u_,gLa,r_,iLa,jLa,v_,Ky,nLa,mLa,w_,x_,m_,oLa,pLa,y_,z_,qLa,A_,B_,C_,rLa,sLa,tLa,uLa,D_,vLa,E_,F_,G_,H_,I_,J_,wLa,K_,L_,M_,N_,O_,P_,Q_,R_,xLa,yLa,zLa,S_,T_,U_,V_,ALa,W_,BLa,X_,CLa,Y_,DLa,Z_,$_,a0,b0,c0,d0,ELa,f0,g0,FLa,GLa,HLa,i0,h0,k0,l0,j0,n0,ILa,JLa,lLa,m0,o0,KLa,p0,MLa,
LLa,q0,r0,OKa,NLa,s0,OLa,t0,QLa,RLa,PLa,SLa,u0,TLa,ULa,VLa,v0,w0,x0,WLa,y0,z0,A0,XLa,B0,C0,YLa,D0,e0,E0,F0,G0,Vra,H0,ZLa,I0,$La,J0,K0,aMa,bMa,L0,M0,N0,cMa,O0,dMa,P0,Q0,fMa,eMa,gMa,hMa,iMa,R0,S0,T0,jMa,kMa,lMa,mMa,nMa,oMa,pMa,qMa,rMa,sMa,U0,V0,tMa,uMa,W0,X0,Y0,Z0,vMa,$0,wMa,a1,xMa,yMa,b1,zMa,AMa,c1,BMa,CMa,d1,e1,DMa,f1,g1,i1,EMa,j1,k1,l1,FMa,m1,GMa,n1,o1,HMa,p1,IMa,JMa,KMa,LMa,MMa,NMa,r1,OMa,PMa,QMa,RMa,SMa,s1,t1,TMa,u1,v1,w1,x1,UMa,y1,VMa,WMa,XMa,B1,YMa,ZMa,$Ma,aNa,C1,A1,bNa,E1,cNa,F1,dNa,G1,H1,I1,
J1,K1,eNa,gNa,fNa,hNa,L1,iNa,jNa,M1,kNa,N1,O1,P1,lNa,mNa,Q1,nNa,R1,oNa,S1,pNa,qNa,rNa,Hka,sNa,tNa,aa,fa,ea,Qi,Oa,faa;ba=function(a){return function(){return aa[a].apply(this,arguments)}};
g.ca=function(a,b){return aa[a]=b};
da=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
aaa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ha=function(a,b){if(b)a:{var c=ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&fa(c,a,{configurable:!0,writable:!0,value:b})}};
ia=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
g.r=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:da(a)}};
ka=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.la=function(a){return a instanceof Array?a:ka(g.r(a))};
ma=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.w=function(a,b){a.prototype=na(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.ge=b.prototype};
pa=function(){this.K=!1;this.C=null;this.u=void 0;this.i=1;this.D=this.I=0;this.X=this.B=null};
qa=function(a){if(a.K)throw new TypeError("Generator is already running");a.K=!0};
ra=function(a,b){a.B={cK:b,kL:!0};a.i=a.I||a.D};
g.x=function(a,b,c){a.i=c;return{value:b}};
g.sa=function(a){a.i=0};
ta=function(a,b,c){a.I=b;void 0!=c&&(a.D=c)};
ua=function(a,b){a.i=b;a.I=0};
va=function(a){a.I=0;var b=a.B.cK;a.B=null;return b};
wa=function(a){a.X=[a.B];a.I=0;a.D=0};
ya=function(a,b){var c=a.X.splice(0)[0];(c=a.B=a.B||c)?c.kL?a.i=a.I||a.D:void 0!=c.fb&&a.D<c.fb?(a.i=c.fb,a.B=null):a.i=a.D:a.i=b};
baa=function(a){this.i=new pa;this.u=a};
caa=function(a,b){qa(a.i);var c=a.i.C;if(c)return za(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.i.return);
a.i.return(b);return Aa(a)};
za=function(a,b,c,d){try{var e=b.call(a.i.C,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.i.K=!1,e;var f=e.value}catch(h){return a.i.C=null,ra(a.i,h),Aa(a)}a.i.C=null;d.call(a.i,f);return Aa(a)};
Aa=function(a){for(;a.i.i;)try{var b=a.u(a.i);if(b)return a.i.K=!1,{value:b.value,done:!1}}catch(c){a.i.u=void 0,ra(a.i,c)}a.i.K=!1;if(a.i.B){b=a.i.B;a.i.B=null;if(b.kL)throw b.cK;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
daa=function(a){this.next=function(b){qa(a.i);a.i.C?b=za(a,a.i.C.next,b,a.i.S):(a.i.S(b),b=Aa(a));return b};
this.throw=function(b){qa(a.i);a.i.C?b=za(a,a.i.C["throw"],b,a.i.S):(ra(a.i,b),b=Aa(a));return b};
this.return=function(b){return caa(a,b)};
this[Symbol.iterator]=function(){return this}};
eaa=function(a){function b(d){return a.next(d)}
function c(d){return a.throw(d)}
return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
f(a.next())})};
g.A=function(a){return eaa(new daa(new baa(a)))};
g.Ba=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
Ca=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{UK:e,HO:f}}return{UK:-1,HO:void 0}};
Da=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};
e[Symbol.iterator]=function(){return e};
return e};
Ea=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Fa=function(a){return a?a:Array.prototype.fill};
g.Ga=function(a,b,c){a=a.split(".");c=c||g.B;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
g.Ha=function(a,b){a=a.split(".");b=b||g.B;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
g.Ia=function(){};
Ja=function(a){a.Re=void 0;a.getInstance=function(){return a.Re?a.Re:a.Re=new a}};
Ka=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Ma=function(a){var b=Ka(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Na=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Pa=function(a){return Object.prototype.hasOwnProperty.call(a,Oa)&&a[Oa]||(a[Oa]=++faa)};
gaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
haa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.D=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.D=gaa:g.D=haa;return g.D.apply(null,arguments)};
g.Ra=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
g.Sa=function(){return Date.now()};
g.Ta=function(a,b){function c(){}
c.prototype=b.prototype;a.ge=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Pf=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
Ua=function(a){return a};
Va=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Va);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.hR=b)};
Wa=function(a,b){var c=Va.call;a=a.split("%s");for(var d="",e=a.length-1,f=0;f<e;f++)d+=a[f]+(f<b.length?b[f]:"%s");c.call(Va,this,d+a[e])};
iaa=function(){};
Ya=function(a){g.B.setTimeout(function(){throw a;},0)};
Za=function(a){throw a;throw Error("invalid error level: 2");};
$a=function(a,b){Za(Error("Invalid wire type: "+a+" (at position "+b+")"))};
ab=function(){Za(Error("Failed to read varint, encoding is invalid."))};
bb=function(a,b){Za(Error("Tried to read past the end of the data "+b+" > "+a))};
cb=function(a){a.push(65533)};
db=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
jaa=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.eb=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};
g.fb=function(a){for(var b=[],c=0,d=0;c<a.length;){var e=a[c++];if(128>e)b[d++]=String.fromCharCode(e);else if(191<e&&224>e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239<e&&365>e){f=a[c++];var h=a[c++],l=a[c++];e=((e&7)<<18|(f&63)<<12|(h&63)<<6|l&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],h=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|h&63)}return b.join("")};
gb=function(a,b){return 0==a.lastIndexOf(b,0)};
ib=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.jb=function(a){return/^[\s\xa0]*$/.test(a)};
tb=function(a,b){if(b)a=a.replace(kb,"&amp;").replace(lb,"&lt;").replace(nb,"&gt;").replace(ob,"&quot;").replace(qb,"&#39;").replace(sb,"&#0;");else{if(!kaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(kb,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(lb,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(nb,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(ob,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(qb,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(sb,"&#0;"))}return a};
ub=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.xb=function(a,b){var c=0;a=vb(String(a)).split(".");b=vb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=wb(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||wb(0==f[2].length,0==h[2].length)||wb(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
wb=function(a,b){return a<b?-1:a>b?1:0};
zb=function(a){var b=yb;return b?b.brands.some(function(c){return(c=c.brand)&&-1!=c.indexOf(a)}):!1};
Bb=function(a){return-1!=g.Ab.indexOf(a)};
Cb=function(){var a=yb;return!!a&&0<a.brands.length};
Db=function(){return yb?!1:Bb("Firefox")||Bb("FxiOS")};
Fb=function(){return Cb()?!1:Bb("Safari")&&!(Eb()||(yb?0:Bb("Coast"))||(yb?0:Bb("Opera"))||(yb?0:Bb("Edge"))||(Cb()?zb("Microsoft Edge"):Bb("Edg/"))||(Cb()?zb("Opera"):Bb("OPR"))||Db()||Bb("Silk")||Bb("Android"))};
Eb=function(){return Cb()?zb("Chromium"):(Bb("Chrome")||Bb("CriOS"))&&!(yb?0:Bb("Edge"))||Bb("Silk")};
Gb=function(){return Bb("iPhone")&&!Bb("iPod")&&!Bb("iPad")};
Hb=function(){return Gb()||Bb("iPad")||Bb("iPod")};
Jb=function(){var a=g.Ab,b="";Bb("Windows")?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):Hb()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):Bb("Macintosh")?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):ub(g.Ab,"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):Bb("Android")?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):Bb("CrOS")&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);return b||
""};
g.Kb=function(a){return a[a.length-1]};
laa=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.Mb=function(a,b,c){b=Lb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
Lb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
g.Nb=function(a,b,c){var d=a.length,e="string"===typeof a?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
g.Qb=function(a,b){return 0<=Ob(a,b)};
g.Rb=function(a){return 0==a.length};
Sb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.Ub=function(a,b){b=Ob(a,b);var c;(c=0<=b)&&g.Tb(a,b);return c};
g.Tb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.Vb=function(a,b){b=Lb(a,b,void 0);0<=b&&g.Tb(a,b)};
maa=function(a,b){var c=0;laa(a,function(d,e){b.call(void 0,d,e,a)&&g.Tb(a,e)&&c++})};
g.Wb=function(a){return Array.prototype.concat.apply([],arguments)};
g.Xb=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
Yb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Ma(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
g.$b=function(a,b,c,d){Array.prototype.splice.apply(a,Zb(arguments,1))};
Zb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
naa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Na(e)?"o"+g.Pa(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.ec=function(a,b,c){return ac(a,c||bc,!1,b)};
fc=function(a,b){return ac(a,b,!0,void 0,void 0)};
ac=function(a,b,c,d,e){for(var f=0,h=a.length,l;f<h;){var m=f+(h-f>>>1),n=void 0;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(h=m,l=!n)}return l?f:-f-1};
g.gc=function(a,b){a.sort(b||bc)};
oaa=function(a,b){var c=bc;g.gc(a,function(d,e){return c(b(d),b(e))})};
g.hc=function(a,b){if(!g.Ma(a)||!g.Ma(b)||a.length!=b.length)return!1;for(var c=a.length,d=paa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
bc=function(a,b){return a>b?1:a<b?-1:0};
paa=function(a,b){return a===b};
g.ic=function(a,b,c){c=g.ec(a,b,c);0>c&&g.$b(a,-(c+1),0,b)};
g.kc=function(a,b,c){var d={};(0,g.jc)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
qaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
raa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
nc=function(a){nc[" "](a);return a};
oc=function(a,b){try{return nc(a[b]),!0}catch(c){}return!1};
pc=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
qc=function(){var a=g.B.document;return a?a.documentMode:void 0};
g.sc=function(a){return pc(saa,a,function(){return 0<=g.xb(rc,a)})};
g.tc=function(a){return Number(taa)>=a};
g.xc=function(a,b){void 0===b&&(b=0);uc();b=wc[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],l=a[e+1],m=a[e+2],n=b[h>>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")};
g.yc=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return g.xc(b,3)};
Ac=function(a){var b=[];zc(a,function(c){b.push(c)});
return b};
Dc=function(a){!g.Cc||g.sc("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;zc(a,function(f){d[e++]=f});
return d.subarray(0,e)};
zc=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Ec[n];if(null!=p)return p;if(!g.jb(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
uc();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}};
uc=function(){if(!Ec){Ec={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));wc[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Ec[f]&&(Ec[f]=e)}}}};
Gc=function(a){return null==a||Fc(a)?a:"string"===typeof a?Dc(a):null};
Fc=function(a){return Hc&&null!=a&&a instanceof Uint8Array};
Ic=function(a){this.i=a;if(null!==a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
Kc=function(a,b,c){return b===c?Jc||(Jc=new Uint8Array(0)):uaa?a.slice(b,c):new Uint8Array(a.subarray(b,c))};
Lc=function(a){if(a.constructor===Uint8Array)return a;if(a.constructor===ArrayBuffer)return new Uint8Array(a);if(a.constructor===Array)return new Uint8Array(a);if(a.constructor===String)return Dc(a);if(a.constructor===Ic)return a.isEmpty()?Jc||(Jc=new Uint8Array(0)):new Uint8Array(a.i=Gc(a.i));if(a instanceof Uint8Array)return new Uint8Array(a.buffer,a.byteOffset,a.byteLength);throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, or Array of numbers");
};
Nc=function(a,b){b=void 0===b?{}:b;b=void 0===b.Fl?!1:b.Fl;this.u=null;this.i=this.B=this.D=0;this.C=!1;this.Fl=b;a&&Mc(this,a)};
Mc=function(a,b){a.u=Lc(b);a.D=0;a.B=a.u.length;a.i=a.D};
Oc=function(a){a.i>a.B&&(a.C=!0,bb(a.B,a.i))};
Pc=function(a){var b=a.u,c=b[a.i+0],d=c&127;if(128>c)return a.i+=1,Oc(a),d;c=b[a.i+1];d|=(c&127)<<7;if(128>c)return a.i+=2,Oc(a),d;c=b[a.i+2];d|=(c&127)<<14;if(128>c)return a.i+=3,Oc(a),d;c=b[a.i+3];d|=(c&127)<<21;if(128>c)return a.i+=4,Oc(a),d;c=b[a.i+4];d|=(c&15)<<28;if(128>c)return a.i+=5,Oc(a),d>>>0;a.i+=5;if(128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++])return a.C=!0,ab(),d;Oc(a);return d};
Sc=function(a){var b={},c=void 0===b.AD?!1:b.AD;this.I={Fl:void 0===b.Fl?!1:b.Fl};this.AD=c;b=this.I;Rc.length?(c=Rc.pop(),b&&(c.Fl=b.Fl),a&&Mc(c,a),a=c):a=new Nc(a,b);this.i=a;this.D=this.i.i;this.u=this.B=-1;this.C=!1};
Tc=function(a){var b=a.i;(b=b.i==b.B)||(b=a.C)||(b=a.i,b=b.C||0>b.i||b.i>b.B);if(b)return!1;a.D=a.i.i;var c=Pc(a.i);b=c>>>3;c&=7;if(!(0<=c&&5>=c))return a.C=!0,$a(c,a.D),!1;a.B=b;a.u=c;return!0};
Uc=function(a){switch(a.u){case 0:if(0!=a.u)Uc(a);else a:{a=a.i;for(var b=a.i,c=0;10>c;c++){if(0===(a.u[b]&128)){a.i=b+1;Oc(a);break a}b++}a.C=!0;ab()}break;case 1:a.i.advance(8);break;case 2:2!=a.u?Uc(a):(b=Pc(a.i),a.i.advance(b));break;case 5:a.i.advance(4);break;case 3:b=a.B;do{if(!Tc(a)){a.C=!0;Za(Error("Unmatched start-group tag: stream EOF"));break}if(4==a.u){a.B!=b&&(a.C=!0,Za(Error("Unmatched end-group tag")));break}Uc(a)}while(1);break;default:a.C=!0,$a(a.u,a.D)}};
Vc=function(a){var b=Pc(a.i);a=a.i;if(0>b||a.i+b>a.u.length)a.C=!0,0>b?Za(Error("Tried to read a negative byte length: "+b)):bb(b,a.u.length-a.i),b=new Uint8Array(0);else{var c=a.Fl?a.u.subarray(a.i,a.i+b):Kc(a.u,a.i,a.i+b);a.i+=b;b=c}return b};
Wc=function(){this.i=new Uint8Array(64);this.u=0};
Xc=function(a,b){for(;127<b;)a.push(b&127|128),b>>>=7;a.push(b)};
Yc=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)};
vaa=function(){this.B=[];this.u=0;this.i=new Wc};
Zc=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)};
$c=function(a){Zc(a,a.i.end())};
cd=function(a,b,c){if(null!=c&&null!=c){Xc(a.i,8*b);a=a.i;var d=c;c=0>d;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295<b&&(b=0,d++,4294967295<d&&(d=0)));ad=b;bd=d;c=ad;for(b=bd;0<b||127<c;)a.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.push(c)}};
dd=function(a,b,c){null!=c&&(c=Lc(c),Xc(a.i,8*b+2),Xc(a.i,c.length),$c(a),Zc(a,c))};
ed=function(a,b,c,d){if(null!=c){Xc(a.i,8*b+2);$c(a);var e=a.u;b=a.B.length-1;d(c,a);$c(a);Xc(a.i,a.u+a.i.length()-e);c=a.i.end();a.u+=c.length;a.B.splice(1+b,0,c)}};
gd=function(a){Object.isFrozen(a)||(fd?a[fd]|=1:void 0!==a.i?a.i|=1:Object.defineProperties(a,{i:{value:1,configurable:!0,writable:!0,enumerable:!1}}));return a};
hd=function(a){return null!==a&&"object"===typeof a&&a.constructor===Object};
id=function(a){return Gc(a instanceof Ic?a.i||"":a)};
jd=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(Fc(a))return g.xc(a);if(a instanceof Ic){if(a.isEmpty())a="";else{var b=a.i;b=null==b||"string"===typeof b?b:Hc&&b instanceof Uint8Array?g.xc(b):null;a=a.i=b}return a}}return a};
ld=function(a,b){if(null!=a)return Array.isArray(a)||hd(a)?kd(a,b):b(a)};
kd=function(a,b){if(Array.isArray(a)){for(var c=Array(a.length),d=0;d<a.length;d++)c[d]=ld(a[d],b);if(b=Array.isArray(a)){var e;fd?e=a[fd]:e=a.i;b=(null==e?0:e)&1}b&&gd(c);return c}e={};for(c in a)e[c]=ld(a[c],b);return e};
md=function(a){a=jd(a);return Array.isArray(a)?kd(a,md):a};
waa=function(a){return Fc(a)?new Uint8Array(a):a};
od=function(a,b){nd=b;a=new a(b);nd=null;return a};
rd=function(a,b,c){var d=nd;nd=null;a||(a=d);d=this.constructor.aT;a||(a=d?[d]:[]);this.B=(d?0:-1)-(this.constructor.Nca||0);this.i=null;this.rg=a;a:{d=this.rg.length;a=d-1;if(d&&(d=this.rg[a],hd(d))){this.C=a-this.B;this.u=d;break a}void 0!==b&&-1<b?(this.C=Math.max(b,a+1-this.B),this.u=null):this.C=Number.MAX_VALUE}if(c)for(b=0;b<c.length;b++)a=c[b],a<this.C?(a+=this.B,(d=this.rg[a])?Array.isArray(d)&&gd(d):this.rg[a]=pd):(qd(this),(d=this.u[a])?Array.isArray(d)&&gd(d):this.u[a]=pd)};
qd=function(a){var b=a.C+a.B;a.rg[b]||(a.u=a.rg[b]={})};
sd=function(a,b,c){return-1===b?null:(void 0===c?0:c)||b>=a.C?a.u?a.u[b]:void 0:a.rg[b+a.B]};
ud=function(a,b,c){c=void 0===c?!1:c;var d=sd(a,b,c);null==d&&(d=pd);d===pd&&(d=gd(d.slice()),td(a,b,d,c));return d};
vd=function(a,b,c){a=sd(a,b);return null==a?c:a};
td=function(a,b,c,d){(void 0===d?0:d)||b>=a.C?(qd(a),a.u[b]=c):a.rg[b+a.B]=c;return a};
wd=function(a,b,c){var d=void 0===d?!1:d;return td(a,b,null==c?gd([]):Array.isArray(c)?gd(c):c,d)};
xd=function(a,b,c,d){c!==d?td(a,b,c):td(a,b,void 0,!1);return a};
zd=function(a,b,c,d){(c=yd(a,c))&&c!==b&&null!=d&&(a.i&&c in a.i&&(a.i[c]=void 0),td(a,c,void 0));td(a,b,d)};
yd=function(a,b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=sd(a,e)&&(0!==c&&td(a,c,void 0,!1),c=e)}return c};
Ad=function(a,b,c,d,e){if(-1===c)return null;a.i||(a.i={});var f=a.i[c];if(f)return f;e=sd(a,c,void 0===e?!1:e);if(null==e&&!d)return f;b=new b(e);return a.i[c]=b};
Bd=function(a,b,c,d){a.i||(a.i={});var e=a.i[c];if(!e){d=ud(a,c,void 0===d?!1:d);e=[];for(var f=0;f<d.length;f++)e[f]=new b(d[f]);a.i[c]=e}return e};
Cd=function(a,b,c){var d;a.i||(a.i={});var e=c?c.rg:c;a.i[b]=c;return td(a,b,e,void 0===d?!1:d)};
Dd=function(a,b,c){var d=void 0===d?!1:d;if(c){var e=gd([]);for(var f=0;f<c.length;f++)e[f]=c[f].rg;a.i||(a.i={});a.i[b]=c}else a.i&&(a.i[b]=void 0),e=pd;return td(a,b,e,d)};
xaa=function(a,b){return jd(b)};
Fd=function(a){Ed=!0;try{return JSON.stringify(a.toJSON(),xaa)}finally{Ed=!1}};
Gd=function(a,b){b.D&&(a.D=b.D.slice());var c=b.i;if(c){b=b.u;for(var d in c){var e=c[d];if(e){var f=!(!b||!b[d]),h=+d;if(Array.isArray(e)){if(e.length)for(f=Bd(a,e[0].constructor,h,f),h=0;h<Math.min(f.length,e.length);h++)Gd(f[h],e[h])}else(f=Ad(a,e.constructor,h,void 0,f))&&Gd(f,e)}}}};
Hd=function(a,b,c){return vd(a,b,void 0===c?0:c)};
Id=function(a,b){if(a=a.D){$c(b);for(var c=0;c<a.length;c++)Zc(b,a[c])}};
Kd=function(a,b,c){return a[Jd]||(a[Jd]=function(d,e){return b(d,e,c)})};
Nd=function(a){var b=a[Jd];if(!b){var c=a[Ld]||(a[Ld]=a());b=function(d,e){return Md(d,e,c)};
a[Jd]=b}return b};
yaa=function(a){var b=a.xca;if(b)return Nd(b);if(b=a.Vca){var c=a.bT;delete a.bT;return Kd(a.NR.i,b,c)}};
zaa=function(a){var b=yaa(a),c=a.NR,d=a.yca;return b?function(e,f){return d(e,f,c,b)}:function(e,f){return d(e,f,c)}};
Aaa=function(a){var b=a[0];switch(a.length){case 2:var c=a[1];return function(u,v,y){return b(u,v,y,c)};
case 3:var d=a[1],e=Nd(a[2]);return function(u,v,y){return b(u,v,y,d,e)};
case 4:var f=a[1],h=a[3],l=Nd(a[2]);return function(u,v,y){return b(u,v,y,f,l,h)};
case 5:var m=a[1],n=Kd(m,a[3],a[4]);return function(u,v,y){return b(u,v,y,m,n)};
case 6:var p=a[1],q=a[5],t=Kd(p,a[3],a[4]);return function(u,v,y){return b(u,v,y,p,t,q)};
default:throw Error("Unsupported number of parameters, expected [2-6], got "+a.length);}};
Md=function(a,b,c){for(;Tc(b)&&4!=b.u;){var d=b.B,e=c[d];if(e)Array.isArray(e)&&(e=c[d]=Aaa(e));else{var f=c[0];f&&(f=f[d])&&(e=c[d]=zaa(f))}e&&e(b,a,d)||(e=b,d=a,f=e.D,Uc(e),e.AD||(e=Kc(e.i.u,f,e.i.i),(f=d.D)?f.push(e):d.D=[e]))}return a};
Od=function(a,b){var c=new vaa;b(a,c);a=c.u+c.i.length();if(0===a)c=new Uint8Array(0);else{a=new Uint8Array(a);for(var d=c.B,e=d.length,f=b=0;f<e;f++){var h=d[f];0!==h.length&&(a.set(h,b),b+=h.length)}d=c.i;e=d.u;0!==e&&(a.set(d.i.subarray(0,e),b),d.u=0);c.B=[a];c=a}return c};
Sd=function(a,b,c){if(2!==a.u)return!1;var d=Pc(a.i);a=a.i;var e=a.i;a.i+=d;Oc(a);a=a.u;var f;if(Baa)(f=Rd)||(f=Rd=new TextDecoder("utf-8",{fatal:!1})),f=f.decode(a.subarray(e,e+d));else{d=e+d;for(var h=[],l=null,m,n,p;e<d;)m=a[e++],128>m?h.push(m):224>m?e>=d?cb(h):(n=a[e++],194>m||128!==(n&192)?(e--,cb(h)):h.push((m&31)<<6|n&63)):240>m?e>=d-1?cb(h):(n=a[e++],128!==(n&192)||224===m&&160>n||237===m&&160<=n||128!==((f=a[e++])&192)?(e--,cb(h)):h.push((m&15)<<12|(n&63)<<6|f&63)):244>=m?e>=d-2?cb(h):(n=
a[e++],128!==(n&192)||0!==(m<<28)+(n-144)>>30||128!==((f=a[e++])&192)||128!==((p=a[e++])&192)?(e--,cb(h)):(m=(m&7)<<18|(n&63)<<12|(f&63)<<6|p&63,m-=65536,h.push((m>>10&1023)+55296,(m&1023)+56320))):cb(h),8192<=h.length&&(l=db(l,h),h.length=0);f=db(l,h)}td(b,c,f);return!0};
Caa=function(a,b,c,d,e){if(2!==a.u)return!1;var f=new d,h=a.i.B,l=Pc(a.i),m=a.i.i+l;a.i.B=m;e(f,a);e=m-a.i.i;if(0!==e)throw Error("Message parsing ended unexpectedly. Expected to read "+(l+" bytes, instead read "+(l-e)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.i.i=m;a.i.B=h;a=Bd(b,d,c);d=f?f:new d;b=ud(b,c);a.push(d);b.push(d.rg);return!0};
Td=function(a,b,c){if(2!==a.u)return!1;td(b,c,Vc(a));return!0};
Ud=function(a,b,c){if(2!==a.u)return!1;a=Vc(a);ud(b,c).push(a);return!0};
Vd=function(a,b,c){if(0!==a.u)return!1;a=Pc(a.i);td(b,c,a);return!0};
Wd=function(a,b,c){if(0!==a.u)return!1;for(var d=a.i,e=128,f=0,h=a=0;4>h&&128<=e;h++)e=d.u[d.i++],f|=(e&127)<<7*h;128<=e&&(e=d.u[d.i++],f|=(e&127)<<28,a|=(e&127)>>4);if(128<=e)for(h=0;5>h&&128<=e;h++)e=d.u[d.i++],a|=(e&127)<<7*h+3;if(128>e){d=f>>>0;e=a>>>0;if(a=e&2147483648)d=~d+1>>>0,e=~e>>>0,0==d&&(e=e+1>>>0);d=4294967296*e+(d>>>0);a=a?-d:d}else d.C=!0,ab(),a=void 0;td(b,c,a);return!0};
Xd=function(a){rd.call(this,a)};
Daa=function(a,b){dd(b,1,sd(a,1));dd(b,2,sd(a,2));Id(a,b)};
Yd=function(a){rd.call(this,a)};
Eaa=function(a,b){dd(b,1,sd(a,1));dd(b,2,sd(a,2));Id(a,b)};
Zd=function(a){rd.call(this,a)};
Faa=function(a,b){dd(b,1,sd(a,1));dd(b,2,sd(a,2));Id(a,b)};
$d=function(a){rd.call(this,a)};
Gaa=function(a,b){ed(b,1,Ad(a,Xd,1),Daa);ed(b,2,Ad(a,Yd,2),Eaa);ed(b,3,Ad(a,Zd,3),Faa);Id(a,b)};
ae=function(a){this.wJ=a};
be=function(a,b,c){this.u=a;this.C=b;this.i=c||[];this.Pr=new Map};
ce=function(a,b){be.call(this,a,3,b)};
de=function(a,b){be.call(this,a,2,b)};
g.ee=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.ge=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Ma(d)?g.ge.apply(null,d):g.ee(d)}};
g.E=function(){this.Yh=this.Yh;this.Ah=this.Ah};
g.H=function(a,b){g.he(a,g.Ra(g.ee,b))};
g.he=function(a,b){a.Yh?b():(a.Ah||(a.Ah=[]),a.Ah.push(b))};
g.ie=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
Haa=function(a){var b=g.Ha("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.B.$googDebugFname||b}catch(h){e="Not available",c=!0}b=je(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
if(null==c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,ke[c])c=ke[c];else{c=String(c);if(!ke[c]){var f=/function\s+([^\(]+)/m.exec(c);ke[c]=f?f[1]:"[Anonymous]"}c=ke[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack=
b;return{message:a.message,name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:a.stack}};
je=function(a,b){b||(b={});b[le(a)]=!0;var c=a.stack||"";(a=a.hR)&&!b[le(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=je(a,b));return c};
le=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
me=function(a,b){g.ie.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.i=null;a&&this.init(a,b)};
oe=function(a){return!(!a||!a[ne])};
Jaa=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Ae=e;this.key=++Iaa;this.Vw=this.sy=!1};
pe=function(a){a.Vw=!0;a.listener=null;a.proxy=null;a.src=null;a.Ae=null};
g.qe=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.re=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
se=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.te=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
ue=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
ve=function(a){for(var b in a)return b};
we=function(a){for(var b in a)return a[b]};
xe=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.ye=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
ze=function(a,b){return null!==a&&b in a};
g.Ae=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Be=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Ce=function(a,b){return(b=Be(a,b,void 0))&&a[b]};
g.De=function(a){for(var b in a)return!1;return!0};
g.Ge=function(a){for(var b in a)delete a[b]};
He=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.Ie=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0};
g.Je=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.Ke=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();if("undefined"!==typeof Map&&a instanceof Map)return new Map(a);if("undefined"!==typeof Set&&a instanceof Set)return new Set(a);var b=Array.isArray(a)?[]:"function"!==typeof ArrayBuffer||"function"!==typeof ArrayBuffer.isView||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.Ke(a[c]);return b};
g.Me=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Le.length;f++)c=Le[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
Ne=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
Oe=function(a){this.src=a;this.listeners={};this.i=0};
Pe=function(a,b){var c=b.type;c in a.listeners&&g.Ub(a.listeners[c],b)&&(pe(b),0==a.listeners[c].length&&(delete a.listeners[c],a.i--))};
Qe=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Vw&&f.listener==b&&f.capture==!!c&&f.Ae==d)return e}return-1};
Se=function(a,b,c,d,e){if(d&&d.once)return Re(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Se(a,b[f],c,d,e);return null}c=Te(c);return oe(a)?a.Qa(b,c,g.Na(d)?!!d.capture:!!d,e):Ue(a,b,c,!1,d,e)};
Ue=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Na(e)?!!e.capture:!!e,l=Ve(a);l||(a[We]=l=new Oe(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=Kaa();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Laa||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Xe(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Ye++;return c};
Kaa=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=Maa;return a};
Re=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Re(a,b[f],c,d,e);return null}c=Te(c);return oe(a)?a.Pz(b,c,g.Na(d)?!!d.capture:!!d,e):Ue(a,b,c,!0,d,e)};
Ze=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Ze(a,b[f],c,d,e);else d=g.Na(d)?!!d.capture:!!d,c=Te(c),oe(a)?a.pc(b,c,d,e):a&&(a=Ve(a))&&(b=a.Gv(b,c,d,e))&&bf(b)};
bf=function(a){if("number"!==typeof a&&a&&!a.Vw){var b=a.src;if(oe(b))Pe(b.B,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Xe(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Ye--;(c=Ve(b))?(Pe(c,a),0==c.i&&(c.src=null,b[We]=null)):pe(a)}}};
Xe=function(a){return a in cf?cf[a]:cf[a]="on"+a};
Maa=function(a,b){if(a.Vw)a=!0;else{b=new me(b,this);var c=a.listener,d=a.Ae||a.src;a.sy&&bf(a);a=c.call(d,b)}return a};
Ve=function(a){a=a[We];return a instanceof Oe?a:null};
Te=function(a){if("function"===typeof a)return a;a[df]||(a[df]=function(b){return a.handleEvent(b)});
return a[df]};
g.ef=function(){g.E.call(this);this.B=new Oe(this);this.rb=this;this.La=null};
ff=function(a,b,c,d){b=a.B.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.Vw&&h.capture==c){var l=h.listener,m=h.Ae||h.src;h.sy&&Pe(a.B,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
gf=function(a,b){this.B=a;this.C=b;this.u=0;this.i=null};
hf=function(a,b){a.C(b);100>a.u&&(a.u++,b.next=a.i,a.i=b)};
jf=function(a){return function(){return a}};
kf=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
lf=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
mf=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
Naa=function(a,b){var c=0;return function(d){g.B.clearTimeout(c);var e=arguments;c=g.B.setTimeout(function(){a.apply(b,e)},50)}};
of=function(){if(void 0===nf){var a=null,b=g.B.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Ua,createScript:Ua,createScriptURL:Ua})}catch(c){g.B.console&&g.B.console.error(c.message)}nf=a}else nf=a}return nf};
rf=function(a,b){this.i=a===pf&&b||"";this.u=qf};
sf=function(a){return a instanceof rf&&a.constructor===rf&&a.u===qf?a.i:"type_error:Const"};
g.tf=function(a){return new rf(pf,a)};
wf=function(a,b){this.i=b===vf?a:"";this.Jk=!0};
yf=function(a,b){this.i=b===xf?a:""};
zf=function(a){return a instanceof yf&&a.constructor===yf?a.i:"type_error:TrustedResourceUrl"};
Qaa=function(a,b){var c=sf(a);if(!Oaa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(Paa,function(d,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));d=b[e];return d instanceof rf?sf(d):encodeURIComponent(String(d))});
return Af(a)};
Af=function(a){var b=of();a=b?b.createScriptURL(a):a;return new yf(a,xf)};
g.Cf=function(a,b){this.i=b===Bf?a:""};
g.Df=function(a){return a instanceof g.Cf&&a.constructor===g.Cf?a.i:"type_error:SafeUrl"};
Ef=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(Raa);return b&&Saa.test(b[1])?new g.Cf(a,Bf):null};
g.Hf=function(a){a instanceof g.Cf||(a="object"==typeof a&&a.Jk?a.Gh():String(a),a=Ff.test(a)?new g.Cf(a,Bf):Ef(a));return a||Gf};
g.If=function(a,b){if(a instanceof g.Cf)return a;a="object"==typeof a&&a.Jk?a.Gh():String(a);if(b&&/^data:/i.test(a)&&(b=Ef(a)||Gf,b.Gh()==a))return b;Ff.test(a)||(a="about:invalid#zClosurez");return new g.Cf(a,Bf)};
Kf=function(a,b){this.i=b===Jf?a:"";this.Jk=!0};
Lf=function(a){return a instanceof Kf&&a.constructor===Kf?a.i:"type_error:SafeStyle"};
Pf=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(Nf).join(" "):Nf(d),b+=c+":"+d+";")}return b?new Kf(b,Jf):Of};
Taa=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=Lf(d)}
var c="";Array.prototype.forEach.call(arguments,b);return c?new Kf(c,Jf):Of};
Nf=function(a){if(a instanceof g.Cf)return'url("'+g.Df(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof rf?sf(a):Uaa(String(a));if(/[{;}]/.test(a))throw new Wa("Value does not allow [{;}], got: %s.",[a]);return a};
Uaa=function(a){var b=a.replace(Qf,"$1").replace(Qf,"$1").replace(Rf,"url");if(Vaa.test(b)){if(Waa.test(a))return"zClosurez";for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}if(!b||!c||!Xaa(a))return"zClosurez"}else return"zClosurez";return Yaa(a)};
Xaa=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b};
Yaa=function(a){return a.replace(Rf,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.Hf(d).Gh();return c+f+b+f+e})};
Tf=function(a,b,c){this.i=c===Sf?a:"";this.u=b;this.Jk=this.uE=!0};
g.Uf=function(a){return a instanceof Tf&&a.constructor===Tf?a.i:"type_error:SafeHtml"};
Wf=function(a){if(a instanceof Tf)return a;var b="object"==typeof a,c=null;b&&a.uE&&(c=a.qs());return Vf(tb(b&&a.Jk?a.Gh():String(a)),c)};
Zaa=function(a){function b(f){Array.isArray(f)?f.forEach(b):(f=Wf(f),e.push(g.Uf(f).toString()),f=f.qs(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=Wf(Xf),d=c.qs(),e=[];a.forEach(b);return Vf(e.join(g.Uf(c).toString()),d)};
$aa=function(a){return Zaa(Array.prototype.slice.call(arguments))};
Vf=function(a,b){var c=of();a=c?c.createHTML(a):a;return new Tf(a,b,Sf)};
g.Yf=function(a,b){sf(a);sf(a);return Vf(b,null)};
aba=function(a,b){sf(a);sf(a);return new Kf(b,Jf)};
Zf=function(a,b){sf(a);sf(a);return Af(b)};
g.$f=function(a,b){if(bba())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.Uf(b)};
g.ag=function(a,b){b=b instanceof g.Cf?b:g.If(b);a.href=g.Df(b)};
bg=function(a,b,c,d){a=a instanceof g.Cf?a:g.If(a);b=b||g.B;c=c instanceof rf?sf(c):c||"";return void 0!==d?b.open(g.Df(a),c,d):b.open(g.Df(a),c)};
cg=function(){a:{var a=g.B.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&cba.test(a))break a;a=""}return a};
dba=function(a,b){return a+Math.random()*(b-a)};
g.dg=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.eg=function(a,b){a%=b;return 0>a*b?a+b:a};
g.fg=function(a,b,c){return a+c*(b-a)};
gg=function(a,b){return 1E-6>=Math.abs(a-b)};
g.hg=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
ig=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.jg=function(a,b){this.width=a;this.height=b};
g.kg=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
lg=function(a){return a.width*a.height};
mg=function(a){return encodeURIComponent(String(a))};
ng=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.og=function(a){return a=tb(a,void 0)};
g.pg=function(a){return null==a?"":String(a)};
qg=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
rg=function(a){var b=Number(a);return 0==b&&g.jb(a)?NaN:b};
sg=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
tg=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
eba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
fba=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};
xg=function(a){return a?new ug(vg(a)):wg||(wg=new ug)};
yg=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.zg=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.Qb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
Eg=function(a,b){g.qe(b,function(c,d){c&&"object"==typeof c&&c.Jk&&(c=c.Gh());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Dg.hasOwnProperty(d)?a.setAttribute(Dg[d],c):gb(d,"aria-")||gb(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.jg(a.clientWidth,a.clientHeight)};
Hg=function(a){var b=Gg(a);a=a.parentWindow||a.defaultView;return g.Cc&&g.sc("10")&&a.pageYOffset!=b.scrollTop?new g.hg(b.scrollLeft,b.scrollTop):new g.hg(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=d[1],h=Kg(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):Eg(h,f));2<d.length&&Lg(e,h,d,2);return h};
Lg=function(a,b,c,d){function e(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
for(;d<c.length;d++){var f=c[d];if(!g.Ma(f)||g.Na(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Na(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}g.jc(h?g.Xb(f):f,e)}}};
g.Ng=function(a){return Kg(document,a)};
Kg=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.Og=function(a){return document.createTextNode(String(a))};
g.Pg=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.Qg=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Rg=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
gba=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
g.Sg=function(a){var b;if(hba&&!(g.Cc&&g.sc("9")&&!g.sc("10")&&g.B.SVGElement&&a instanceof g.B.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Na(b)&&1==b.nodeType?b:null};
g.Tg=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
vg=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Ug=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else{g.Pg(a);var c=vg(a);a.appendChild(c.createTextNode(String(b)))}};
Wg=function(a){var b;if((b="A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!a.hasAttribute("tabindex")||Vg(a)):a.hasAttribute("tabindex")&&Vg(a))&&g.Cc){var c;"function"!==typeof a.getBoundingClientRect||g.Cc&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a};
Vg=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Yg=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Xg(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.Qb(f.className.split(/\s+/),c))},!0,d)};
Xg=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};
ug=function(a){this.i=a||g.B.document||document};
ch=function(a,b,c){var d=a;b&&(d=(0,g.D)(a,b));"function"!==typeof g.B.setImmediate||!c&&g.B.Window&&g.B.Window.prototype&&(yb||!Bb("Edge"))&&g.B.Window.prototype.setImmediate==g.B.setImmediate?(bh||(bh=iba()),bh(d)):g.B.setImmediate(d)};
iba=function(){var a=g.B.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Bb("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.D)(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&&!(yb?0:Bb("Trident")||Bb("MSIE"))){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.tJ;c.tJ=null;e()}};
return function(e){d.next={tJ:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.B.setTimeout(e,0)}};
dh=function(){this.u=this.i=null};
eh=function(){this.next=this.scope=this.i=null};
g.ih=function(a,b){fh||jba();gh||(fh(),gh=!0);hh.add(a,b)};
jba=function(){if(g.B.Promise&&g.B.Promise.resolve){var a=g.B.Promise.resolve(void 0);fh=function(){a.then(jh)}}else fh=function(){ch(jh)}};
jh=function(){for(var a;a=hh.remove();){try{a.i.call(a.scope)}catch(b){Ya(b)}hf(kh,a)}gh=!1};
lh=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
nh=function(a){this.i=0;this.K=void 0;this.C=this.u=this.B=null;this.D=this.I=!1;if(a!=g.Ia)try{var b=this;a.call(void 0,function(c){mh(b,2,c)},function(c){mh(b,3,c)})}catch(c){mh(this,3,c)}};
oh=function(){this.next=this.context=this.onRejected=this.u=this.i=null;this.B=!1};
qh=function(a,b,c){var d=ph.get();d.u=a;d.onRejected=b;d.context=c;return d};
rh=function(a){if(a instanceof nh)return a;var b=new nh(g.Ia);mh(b,2,a);return b};
sh=function(a){return new nh(function(b,c){c(a)})};
uh=function(a,b,c){th(a,b,c,null)||g.ih(g.Ra(b,a))};
kba=function(a){return new nh(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],uh(e,b,c)})};
lba=function(a){return new nh(function(b,c){var d=a.length,e=[];if(d)for(var f=function(n,p){d--;e[n]=p;0==d&&b(e)},h=function(n){c(n)},l=0,m;l<a.length;l++)m=a[l],uh(m,g.Ra(f,l),h);
else b(e)})};
wh=function(a,b){b=qh(b,b,void 0);b.B=!0;vh(a,b);return a};
g.yh=function(a,b){return xh(a,null,b,void 0)};
zh=function(a,b){if(0==a.i)if(a.B){var c=a.B;if(c.u){for(var d=0,e=null,f=null,h=c.u;h&&(h.B||(d++,h.i==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.i&&1==d?zh(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):Ah(c),Bh(c,e,3,b)))}a.B=null}else mh(a,3,b)};
vh=function(a,b){a.u||2!=a.i&&3!=a.i||Ch(a);a.C?a.C.next=b:a.u=b;a.C=b};
xh=function(a,b,c,d){var e=qh(null,null,null);e.i=new nh(function(f,h){e.u=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.onRejected=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof Dh?h(l):f(m)}catch(n){h(n)}}:h});
e.i.B=a;vh(a,e);return e.i};
mh=function(a,b,c){0==a.i&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.i=1,th(c,a.X,a.Z,a)||(a.K=c,a.i=b,a.B=null,Ch(a),3!=b||c instanceof Dh||mba(a,c)))};
th=function(a,b,c,d){if(a instanceof nh)return vh(a,qh(b||g.Ia,c||null,d)),!0;if(lh(a))return a.then(b,c,d),!0;if(g.Na(a))try{var e=a.then;if("function"===typeof e)return nba(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
nba=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
function h(m){l||(l=!0,c.call(e,m))}
var l=!1;try{b.call(a,h,f)}catch(m){f(m)}};
Ch=function(a){a.I||(a.I=!0,g.ih(a.S,a))};
Ah=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.C=null);return b};
Bh=function(a,b,c,d){if(3==c&&b.onRejected&&!b.B)for(;a&&a.D;a=a.B)a.D=!1;if(b.i)b.i.B=null,Eh(b,c,d);else try{b.B?b.u.call(b.context):Eh(b,c,d)}catch(e){Fh.call(null,e)}hf(ph,b)};
Eh=function(a,b,c){2==b?a.u.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
mba=function(a,b){a.D=!0;g.ih(function(){a.D&&Fh.call(null,b)})};
Dh=function(a){Va.call(this,a)};
g.Gh=function(a,b){g.ef.call(this);this.Uf=a||1;this.yx=b||g.B;this.mJ=(0,g.D)(this.yX,this);this.AL=g.Sa()};
g.Hh=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.D)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.D)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.B.setTimeout(a,b||0)};
Ih=function(a,b){var c=null;return g.yh(new nh(function(d,e){c=g.Hh(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.B.clearTimeout(c);
throw d;})};
Jh=function(a){this.K=a;this.i=new Map;this.I=new Set;this.B=0;this.C=100;this.flushInterval=3E4;this.u=new g.Gh(this.flushInterval);this.u.Qa("tick",this.SN,!1,this);this.D=!1};
Kh=function(a){a.u.enabled||a.u.start();a.B++;a.B>=a.C&&a.SN()};
Lh=function(a,b){return a.I.has(b)?void 0:a.i.get(b)};
oba=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
Mh=function(a){this.i=a;this.i.cJ("/client_streamz/po/w/rl",{un:3,qn:"mn"},{un:2,qn:"ac"},{un:2,qn:"sc"},{un:3,qn:"rk"})};
Nh=function(a){this.i=a;this.i.cJ("/client_streamz/po/w/el",{un:3,qn:"en"},{un:3,qn:"rk"})};
pba=function(a){this.i=a;this.i.bR("/client_streamz/po/w/cec",{un:2,qn:"ec"},{un:3,qn:"rk"})};
Oh=function(a){rd.call(this,a,-1,qba)};
Ph=function(a){rd.call(this,a,-1,rba)};
Qh=function(a){rd.call(this,a)};
Rh=function(a){rd.call(this,a)};
Sh=function(a){rd.call(this,a,-1,sba)};
Th=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==
c&&"app"!==c&&"devtools"!==c)throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
tba=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(q){for(var t=h,u=0;64>u;u+=4)t[u/4]=q[u]<<24|q[u+1]<<16|q[u+2]<<8|q[u+3];for(u=16;80>u;u++)q=t[u-3]^t[u-8]^t[u-14]^t[u-16],t[u]=(q<<1|q>>>31)&4294967295;q=e[0];var v=e[1],y=e[2],z=e[3],C=e[4];for(u=0;80>u;u++){if(40>u)if(20>u){var G=z^v&(y^z);var F=1518500249}else G=v^y^z,F=1859775393;else 60>u?(G=v&y|z&(v|y),F=2400959708):(G=v^y^z,F=3395469782);G=((q<<5|q>>>27)&4294967295)+G+C+F+t[u]&4294967295;C=z;z=y;y=(v<<30|v>>>2)&4294967295;v=q;q=G}e[0]=e[0]+q&4294967295;e[1]=e[1]+v&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+z&4294967295;e[4]=e[4]+C&4294967295}
function c(q,t){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var u=[],v=0,y=q.length;v<y;++v)u.push(q.charCodeAt(v));q=u}t||(t=q.length);u=0;if(0==n)for(;u+64<t;)b(q.slice(u,u+64)),u+=64,p+=64;for(;u<t;)if(f[n++]=q[u++],p++,64==n)for(n=0,b(f);u+64<t;)b(q.slice(u,u+64)),u+=64,p+=64}
function d(){var q=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var u=63;56<=u;u--)f[u]=t&255,t>>>=8;b(f);for(u=t=0;5>u;u++)for(var v=24;0<=v;v-=8)q[t++]=e[u]>>v&255;return q}
for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,zR:function(){for(var q=d(),t="",u=0;u<q.length;u++)t+="0123456789ABCDEF".charAt(Math.floor(q[u]/16))+"0123456789ABCDEF".charAt(q[u]%16);return t}}};
Uh=function(a,b,c){var d=String(g.B.location.href);return d&&a&&b?[b,uba(Th(d),a,c||null)].join(" "):null};
uba=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.jc(d,function(l){e.push(l)}),Vh(e.join(" "));
var f=[],h=[];g.jc(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.Rb(f)?[c,b,a]:[f.join(":"),c,b,a];g.jc(d,function(l){e.push(l)});
a=Vh(e.join(" "));a=[c,a];g.Rb(h)||a.push(h.join(""));return a.join("_")};
Vh=function(a){var b=tba();b.update(a);return b.zR().toLowerCase()};
Wh=function(a){this.i=a||{cookie:""}};
Xh=function(a){a=(a.i.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=vb(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
Yh=function(a){return!!vba.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
Zh=function(a){a=void 0===a?!1:a;var b=g.B.__SAPISID||g.B.__APISID||g.B.__3PSAPISID||g.B.__OVERRIDE_SID;Yh(a)&&(b=b||g.B.__1PSAPISID);if(b)return!0;var c=new Wh(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");Yh(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};
$h=function(a,b,c,d){(a=g.B[a])||(a=(new Wh(document)).get(b));return a?Uh(a,c,d):null};
di=function(a,b){b=void 0===b?!1:b;var c=Th(String(g.B.location.href)),d=[];if(Zh(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.B.__SAPISID:g.B.__APISID;e||(e=new Wh(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Uh(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&Yh(b)&&((b=$h("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=$h("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a))}return 0==
d.length?null:d.join(" ")};
ei=function(a){rd.call(this,a,-1,wba)};
fi=function(){};
g.gi=function(a,b,c,d){this.C=a;this.D=b;this.i=this.B=a;this.I=c||0;this.K=d||2};
g.hi=function(a){a.i=Math.min(a.D,a.i*a.K);a.B=Math.min(a.D,a.i+(a.I?Math.round(a.I*(Math.random()-.5)*2*a.i):0));a.u++};
g.ji=function(a){var b=[];ii(new xba,a,b);return b.join("")};
xba=function(){};
ii=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),ii(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),ki(d,c),c.push(":"),ii(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":ki(b,c);break;case "number":c.push(isFinite(b)&&
!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}};
ki=function(a,b){b.push('"',a.replace(yba,function(c){var d=li[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),li[c]=d);return d}),'"')};
zba=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};
mi=function(){};
ni=function(){};
oi=function(a){if(!a.B&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.B=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.B};
pi=function(a,b,c,d,e,f,h){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);h&&(l+="#"+h);return l};
qi=function(a){return a?decodeURI(a):a};
g.si=function(a,b){return b.match(ri)[a]||null};
g.ti=function(a){return qi(g.si(3,a))};
ui=function(a){a=a.match(ri);return pi(a[1],null,a[3],a[4])};
vi=function(a){a=a.match(ri);return pi(null,null,null,null,a[5],a[6],a[7])};
wi=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?ng(e):"")}}};
xi=function(a){var b=a.indexOf("#");0>b&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.substr(0,c),d,a.substr(b)]};
yi=function(a,b){return b?a?a+"&"+b:b:a};
zi=function(a,b){if(!b)return a;a=xi(a);a[1]=yi(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
Ai=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Ai(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+mg(b)))};
Bi=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Ai(a[b],a[b+1],c);return c.join("&")};
g.Ci=function(a){var b=[],c;for(c in a)Ai(c,a[c],b);return b.join("&")};
Di=function(a,b){var c=2==arguments.length?Bi(arguments[1],0):Bi(arguments,1);return zi(a,c)};
g.Ei=function(a,b){b=g.Ci(b);return zi(a,b)};
Fi=function(a,b,c){c=null!=c?"="+mg(c):"";return zi(a,b+c)};
Gi=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1};
Ii=function(a,b){var c=a.search(Hi),d=Gi(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return ng(a.substr(d,e-d))};
Ji=function(a,b){for(var c=a.search(Hi),d=0,e,f=[];0<=(e=Gi(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(Aba,"$1")};
Ki=function(a,b,c){return Fi(Ji(a,b),b,c)};
Bba=function(a,b){a=xi(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]=yi(d.join("&"),g.Ci(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
g.Li=function(a){g.ef.call(this);this.headers=new Map;this.Ba=a||null;this.D=!1;this.Aa=this.i=null;this.Va=this.X="";this.u=0;this.C="";this.I=this.Ka=this.Z=this.Ha=!1;this.K=0;this.oa=null;this.Sa="";this.va=this.S=!1};
Cba=function(a,b,c,d,e,f,h){var l=new g.Li;Mi.push(l);b&&l.Qa("complete",b);l.Pz("ready",l.mR);f&&(l.K=Math.max(0,f));h&&(l.S=h);l.send(a,c,d,e)};
Dba=function(a){return g.Cc&&g.sc(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
Pi=function(a,b){a.D=!1;a.i&&(a.I=!0,a.i.abort(),a.I=!1);a.C=b;a.u=5;Ni(a);Oi(a)};
Ni=function(a){a.Ha||(a.Ha=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Ui=function(a){if(a.D&&"undefined"!=typeof Qi)if(a.Aa[1]&&4==g.Ri(a)&&2==a.getStatus())Si(a,"Local request error detected and ignored");else if(a.Z&&4==g.Ri(a))g.Hh(a.JM,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){Si(a,"Request complete");a.D=!1;try{if(Ti(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2<g.Ri(a)?a.i.statusText:""}catch(c){b=""}a.C=b+" ["+a.getStatus()+"]";Ni(a)}}finally{Oi(a)}}};
Oi=function(a,b){if(a.i){Vi(a);var c=a.i,d=a.Aa[0]?g.Ia:null;a.i=null;a.Aa=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Vi=function(a){a.i&&a.va&&(a.i.ontimeout=null);a.oa&&(g.B.clearTimeout(a.oa),a.oa=null)};
Ti=function(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=g.si(1,String(a.X)),!a&&g.B.self&&g.B.self.location&&(a=g.B.self.location.protocol,a=a.substr(0,a.length-1)),b=!Eba.test(a?a.toLowerCase():"");c=b}return c};
g.Ri=function(a){return a.i?a.i.readyState:0};
g.Wi=function(a){try{return a.i?a.i.responseText:""}catch(b){return""}};
Xi=function(a){try{if(!a.i)return null;if("response"in a.i)return a.i.response;switch(a.Sa){case "":case "text":return a.i.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.i)return a.i.mozResponseArrayBuffer}return null}catch(b){return null}};
Fba=function(a){return a.i&&a.isComplete()?a.i.getAllResponseHeaders()||"":""};
Gba=function(a){var b={};a=Fba(a).split("\r\n");for(var c=0;c<a.length;c++)if(!g.jb(a[c])){var d=fba(a[c]),e=d[0];d=d[1];if("string"===typeof d){d=d.trim();var f=b[e]||[];b[e]=f;f.push(d)}}return se(b,function(h){return h.join(", ")})};
Si=function(a,b){return b+" ["+a.Va+" "+a.X+" "+a.getStatus()+"]"};
Yi=function(a){rd.call(this,a)};
Hba=function(){var a=new Yi,b=document.documentElement.getAttribute("lang");return td(a,5,b)};
Zi=function(a){rd.call(this,a)};
$i=function(a){rd.call(this,a,31,Iba)};
aj=function(a){rd.call(this,a,17,Jba)};
bj=function(a){var b=Date.now().toString();return td(a,4,b)};
cj=function(a,b){return Dd(a,3,b)};
dj=function(a,b){return td(a,14,b)};
ej=function(a){rd.call(this,a,6,Kba)};
fj=function(a){rd.call(this,a)};
pj=function(a,b,c,d,e,f,h,l,m,n,p){g.ef.call(this);var q=this;this.Z="";this.u=[];this.Za="";this.bb=this.Ha=-1;this.Sa=!1;this.S=this.C=null;this.K=0;this.vb=1;this.timeoutMillis=0;this.Ba=!1;g.ef.call(this);this.kb=a;this.Va=b||g.Ia;this.D=new aj;this.jb=d;this.Ka=p;this.wb=g.Ra(dba,0,1);this.va=e||null;this.X=c||null;this.Aa=h||!1;this.pageId=m||null;this.logger=null;this.withCredentials=!l;this.Wa=f||!1;!this.Wa&&(g.lj&&g.sc(65)||g.mj&&g.sc(45)||g.nj&&g.sc(12)||Hb()&&g.xb(Jb(),12));a=td(new Zi,
1,1);f||(f=Hba(),Cd(a,11,f));Cd(this.D,1,a);td(this.D,2,this.kb);this.I=new g.gi(1E4,3E5,.1);this.i=new g.Gh(this.I.getValue());g.H(this,this.i);Se(this.i,"tick",kf(oj(this,n)),!1,this);this.oa=new g.Gh(6E5);g.H(this,this.oa);Se(this.oa,"tick",kf(oj(this,n)),!1,this);this.Aa||this.oa.start();this.Wa||(Se(document,"visibilitychange",function(){"hidden"===document.visibilityState&&q.LD()}),Se(document,"pagehide",this.LD,!1,this))};
oj=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};
qj=function(a){a.va||(a.va=.01>a.wb()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.va};
rj=function(a,b){a.I=new g.gi(1>b?1:b,3E5,.1);a.i.setInterval(a.I.getValue())};
Mba=function(a){Lba(a,function(b,c){b=Fi(b,"format","json");b=Jg().navigator.sendBeacon(b,Fd(c));a.Ba&&!b&&(a.Ba=!1);return b})};
Lba=function(a,b){if(0!==a.u.length){var c=Ji(qj(a),"format");c=Di(c,"auth",a.Va(),"authuser",a.X||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=cj(bj(a.D.clone()),e);0===d&&dj(f,a.K);if(!b(c,f))break;a.u=a.u.slice(e.length)}a.i.enabled&&a.i.stop();a.K=0}};
sj=function(){g.ie.call(this,"event-logged",void 0)};
Nba=function(a,b,c){Cba(a.url,function(d){d=d.target;Ti(d)?b(g.Wi(d)):c(d.getStatus())},a.requestType,a.body,a.Aq,a.timeoutMillis,a.withCredentials)};
tj=function(){this.B="https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.I=Nba;this.i=""};
uj=function(){var a="",b=!1,c="2";a=void 0===a?"":a;c=void 0===c?"":c;var d=new tj;d.i="";""!=a&&(d.B=a);if(void 0===b?0:b)d.C=!0;c&&(d.u=c);this.i=d.Pe()};
vj=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}};
wj=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c};
xj=function(a,b){this.logger=a;this.i=b;this.startMillis=Date.now()};
yj=function(){};
zj=function(a){this.xm=a;this.C=new uj;this.i=new Jh(this.C);this.clientError=new pba(this.i);this.u=new Nh(this.i);this.B=new Mh(this.i)};
Aj=function(a){rd.call(this,a)};
Bj=function(a){rd.call(this,a)};
Cj=function(a){rd.call(this,a)};
Dj=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Ej=function(a){this.i=!1;if(a.challenge instanceof Cj){var b=vd(a.challenge,4,"");a=vd(a.challenge,5,"")}else b=a.program,a=a.globalName;var c=new Dj;this.u=c.promise;g.r((0,g.B[a].a)(b,function(d,e){Promise.resolve().then(function(){c.resolve({dR:d,kX:e})})},!0)).next();
c.promise.then(function(){})};
Oba=function(a){return Zf(g.tf("From proto message. b/12014412"),sd(a,4)||"")};
Pba=function(){var a="undefined"!==typeof window?window.trustedTypes:void 0;return null!==a&&void 0!==a?a:null};
Qba=function(){var a,b;if(void 0===Fj)try{Fj=null!==(b=null===(a=Pba())||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}catch(c){Fj=null}return Fj};
Gj=function(){};
Hj=function(a){this.i=a};
Ij=function(a){this.isValid=a};
Jj=function(a){return new Ij(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
Mj=function(a,b){b=void 0===b?Kj:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Ij&&d.isValid(a))return new Hj(a,Lj)}};
Nj=function(){};
Oj=function(a){this.i=a};
Pj=function(a){if(a instanceof Gj)if(a instanceof Hj)a=a.i;else throw Error("");else a=g.Df(a);return a};
Qj=function(a){var b,c=(a.ownerDocument&&a.ownerDocument.defaultView||window).document,d=null===(b=c.querySelector)||void 0===b?void 0:b.call(c,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};
g.Rj=function(a,b){a.src=zf(b);Qj(a)};
Sj=function(a,b){return a.parseFromString(g.Uf(b),"text/xml")};
Tj=function(){this.i={};this.u=null};
Uj=function(){Tj.i||(Tj.i=new Tj);return Tj.i};
Sba=function(a){var b=Uj();return Rba(b,Ad(a,Aj,1),Ad(a,Bj,2),vd(a,3,""))};
Rba=function(a,b,c,d){var e;if(!b&&!c)return Promise.resolve();if(!d)return Vj(b,c);(e=a.i)[d]||(e[d]=new Promise(function(f,h){Vj(b,c).then(function(){a.u=d;f()},function(l){delete a.i[d];
h(l)})}));
return a.i[d]};
Vj=function(a,b){return b?Tba(b):a?Uba(a):Promise.resolve()};
Tba=function(a){return new Promise(function(b,c){var d=g.Ng("SCRIPT"),e=Oba(a);g.Rj(d,e);d.onload=function(){g.Rg(d);b()};
d.onerror=function(){g.Rg(d);c(Error("EWLS"))};
(g.zg("HEAD")[0]||document.documentElement).appendChild(d)})};
Uba=function(a){return new Promise(function(b){var c=g.Ng("SCRIPT");if(a){var d=sd(a,6);if(null===d||void 0===d)var e=null;else{var f=null===(e=Qba())||void 0===e?void 0:e.createScript(d);e=new Oj(null!==f&&void 0!==f?f:d,Lj)}}else e=null;if(e instanceof Nj)if(e instanceof Oj)e=e.i;else throw Error("");else e=e instanceof wf&&e.constructor===wf?e.i:"type_error:SafeScript";c.textContent=e;Qj(c);(g.zg("HEAD")[0]||document.documentElement).appendChild(c);g.Rg(c);b()})};
Wj=function(a){rd.call(this,a)};
Xj=function(a){rd.call(this,a)};
Vba=function(a,b,c){this.client=a;this.xm=b;this.i=c};
Wba=function(a){var b=Uj().u,c,d,e,f,h;return g.A(function(l){if(1==l.i)return c=new Wj,xd(c,1,a.xm,""),b&&xd(c,2,b,""),d=a.i(),g.x(l,a.client.create(c,d),2);e=l.u;f=id(vd(e,2,""));if(f.length){var m=l.return;var n=new Uint8Array(f.length);for(var p=0;p<f.length;p++)n[p]=f[p]+97;if(g.B.TextDecoder)n=(new TextDecoder).decode(n);else if(8192>=n.length)n=String.fromCharCode.apply(null,n);else{p="";for(var q=0;q<n.length;q+=8192)p+=String.fromCharCode.apply(null,Array.prototype.slice.call(n,q,q+8192));
n=p}n=od(Cj,n?JSON.parse(n):null);return m.call(l,n)}h=Ad(e,Cj,1);if(!h)throw Error("Missing field");return l.return(h)})};
Yba=function(a,b){var c,d;return g.A(function(e){c=a.i();var f=new Xj;f=xd(f,1,a.xm,"");d=xd(f,2,b,"");f=e.return;var h=Yj(a.client.i,"https://waa-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},Xba);return f.call(e,h)})};
Zj=function(a){this.i=a};
ak=function(a){rd.call(this,a)};
bk=function(a,b,c){this.i=a;this.B=b;this.u=c};
ck=function(a,b,c){c=void 0===c?{}:c;this.VW=a;this.i=c;this.u=b};
dk=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.i=d;this.u=e};
ek=function(a,b,c){c=void 0===c?{}:c;return new bk(b,a,c)};
fk=function(a){rd.call(this,a)};
gk=function(a){rd.call(this,a)};
hk=function(a){rd.call(this,a,-1,Zba)};
ik=function(a,b){this.K=a.oT;this.S=b;this.i=a.xhr;this.B=[];this.D=[];this.I=[];this.C=[];this.u=[];this.K&&$ba(this)};
aca=function(a,b){Se(a.i,"complete",function(){if(Ti(a.i)){var c=g.Wi(a.i);if(b&&"text/plain"===a.i.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.S(c)}catch(f){jk(a,new wj(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=vj(a.i.getStatus());kk(a,lk(a));0==c?mk(a,d):jk(a,new wj(c,"Xhr succeeded but the status code is not 200"))}else{d=g.Wi(a.i);var e={};d?(e=nk(a,d),d=e.code,c=e.details,e=e.metadata):
(d=2,c="Rpc failed due to xhr error. error code: "+a.i.u+", error: "+a.i.getLastError());kk(a,lk(a));jk(a,new wj(d,c,e))}})};
$ba=function(a){a.K.lm("data",function(b){if("1"in b){var c=b["1"];try{var d=a.S(c)}catch(e){jk(a,new wj(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&mk(a,d)}if("2"in b)for(b=nk(a,b["2"]),c=0;c<a.I.length;c++)a.I[c](b)});
a.K.lm("end",function(){kk(a,lk(a));for(var b=0;b<a.C.length;b++)a.C[b]()});
a.K.lm("error",function(){if(0!=a.u.length){var b=a.i.u;0!==b||Ti(a.i)||(b=6);switch(b){case 0:var c=2;break;case 7:c=10;break;case 8:c=4;break;case 6:c=vj(a.i.getStatus());break;default:c=14}kk(a,lk(a));jk(a,new wj(c,zba(b)+", error: "+a.i.getLastError()))}})};
lk=function(a){var b={},c=Gba(a.i);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
nk=function(a,b){var c=2,d={};try{var e=od(hk,b?JSON.parse(b):null);c=Hd(e,1);var f=vd(e,2,"");Bd(e,gk,3).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.i&&404===a.i.getStatus()?(c=5,f="Not Found: "+String(a.i.X)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
ok=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
mk=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
kk=function(a,b){for(var c=0;c<a.D.length;c++)a.D[c](b)};
jk=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
pk=function(a){this.D=a.ZX||null;this.B=a.oX||!1};
qk=function(a,b){g.ef.call(this);this.va=a;this.K=b;this.I=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.X=new Headers;this.u=null;this.oa="GET";this.Z="";this.i=!1;this.S=this.C=this.D=null};
rk=function(a){a.C.read().then(a.eS.bind(a)).catch(a.vz.bind(a))};
tk=function(a){a.readyState=4;a.D=null;a.C=null;a.S=null;sk(a)};
sk=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
g.uk=function(a,b){this.i=this.S=this.C="";this.B=null;this.D=this.K="";this.I=!1;var c;a instanceof g.uk?(this.I=void 0!==b?b:a.I,g.vk(this,a.C),this.S=a.S,g.wk(this,a.i),g.xk(this,a.B),this.K=a.getPath(),yk(this,a.u.clone()),this.D=a.D):a&&(c=String(a).match(ri))?(this.I=!!b,g.vk(this,c[1]||"",!0),this.S=zk(c[2]||""),g.wk(this,c[3]||"",!0),g.xk(this,c[4]),this.K=zk(c[5]||"",!0),yk(this,c[6]||"",!0),this.D=zk(c[7]||"")):(this.I=!!b,this.u=new Ak(null,this.I))};
g.vk=function(a,b,c){a.C=c?zk(b,!0):b;a.C&&(a.C=a.C.replace(/:$/,""))};
g.wk=function(a,b,c){a.i=c?zk(b,!0):b};
g.xk=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.B=b}else a.B=null};
yk=function(a,b,c){b instanceof Ak?(a.u=b,bca(a.u,a.I)):(c||(b=Bk(b,cca)),a.u=new Ak(b,a.I))};
g.Ck=function(a,b,c){a.u.set(b,c)};
g.Kk=function(a){return a instanceof g.uk?a.clone():new g.uk(a,void 0)};
zk=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Bk=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,dca),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
dca=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Ak=function(a,b){this.u=this.i=null;this.B=a||null;this.C=!!b};
Lk=function(a){a.i||(a.i=new Map,a.u=0,a.B&&wi(a.B,function(b,c){a.add(ng(b),c)}))};
Nk=function(a,b){Lk(a);b=Mk(a,b);return a.i.has(b)};
g.Ok=function(a,b,c){a.remove(b);0<c.length&&(a.B=null,a.i.set(Mk(a,b),g.Xb(c)),a.u=a.u+c.length)};
Mk=function(a,b){b=String(b);a.C&&(b=b.toLowerCase());return b};
bca=function(a,b){b&&!a.C&&(Lk(a),a.B=null,a.i.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Ok(this,e,c))},a));
a.C=b};
eca=function(a){var b="";g.qe(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Pk=function(a){g.E.call(this);this.u=a;this.i={}};
Qk=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)Qk(a,b,c[h],d,e,f);else{b=Re(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.i[b.key]=b}return a};
g.Rk=function(a){g.qe(a.i,function(b,c){this.i.hasOwnProperty(c)&&bf(b)},a);
a.i={}};
Sk=function(){this.B=!0;this.u=0;this.i=""};
Tk=function(a,b,c){a.B=!1;throw Error("The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b);};
Uk=function(){this.I=null;this.K=[];this.C=this.i=this.B=this.u=this.X=0;this.D=null;this.S=0};
Vk=function(a,b,c,d){a.u=3;a.I="The stream is broken @"+a.X+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.I);};
Wk=function(){this.i=null;this.u=0;this.B=new Sk;this.C=new Uk};
Xk=function(a,b,c){a.i="The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b;throw Error(a.i);};
Yk=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
Zk=function(a){this.X=null;this.I=[];this.C="";this.oa=[];this.B=this.u=0;this.K=!1;this.S=0;this.va=/[\\"]/g;this.i=this.D=0;this.Z=!(!a||!a.yR)};
$k=function(a,b,c){a.D=3;a.X="The stream is broken @"+a.B+"/"+c+". With input:\n"+b;throw Error(a.X);};
al=function(){this.D=this.B=null;this.u=this.i=0;this.C=[];this.I=!1};
fca=function(a){var b=a.i?a.i.getResponseHeader("Content-Type"):null;if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new al:new Zk:b.startsWith("application/x-protobuf")?(a=a.i?a.i.getResponseHeader("Content-Transfer-Encoding"):null)?"base64"==a.toLowerCase()?new Wk:null:new Uk:null};
bl=function(a){this.i=a;this.u=null;this.C=this.B=0;this.X=!1;this.D=this.K=this.I=null;this.S=new g.Pk(this);this.S.Qa(this.i,"readystatechange",this.Z)};
cl=function(a,b){a.C!=b&&(a.C=b,a.K&&a.K())};
dl=function(a){g.Rk(a.S);if(a.i){var b=a.i;a.i=null;b.abort();b.dispose()}};
el=function(a){this.B=a;a=(0,g.D)(this.mU,this);this.B.D=a;a=(0,g.D)(this.WV,this);this.B.K=a;this.u={};this.i={}};
fl=function(a,b){for(var c={},d=0;d<a.length;c={CB:c.CB},d++)c.CB=a[d],b.forEach(function(e){return function(f){try{f(e.CB)}catch(h){}}}(c))};
gl=function(a,b){var c=a.u[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.i[b])&&c.forEach(function(d){d()});
a.i[b]=[]};
hl=function(a){a=void 0===a?{}:a;this.D=a.pda||g.Ha("suppressCorsPreflight",a)||!1;this.u=a.withCredentials||g.Ha("withCredentials",a)||!1;this.C=a.oda||[];this.I=a.qda||[];this.i=a.tda;this.B=a.rda||!1};
Yj=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return il(function(h){return new gca(function(l,m){var n={},p=hca(a,h,f);p.lm("error",function(q){return m(q)});
p.lm("metadata",function(q){n=q});
p.lm("data",function(q){var t=n;t=void 0===t?{}:t;l(new ck(q,h.gz(),t))})})},a.I).call(a,ek(e,c,d)).then(function(h){return h.VW})};
hca=function(a,b,c){var d=b.gz(),e=b.getMetadata(),f=jl(a,!0);a=kl(a,e,f,c+d.getName());c=ll(f,d.u,!1);aca(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.i(b.i);f.send(a,"POST",b);return c};
jl=function(a,b){b=a.B&&!b;return a.i||b?new g.Li(new pk({ZX:a.i,oX:b})):new g.Li};
kl=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.u)c.S=!0;if(a.D)a=d,g.De(b)?d=a:(b=eca(b),"string"===typeof a?d=Fi(a,mg("$httpHeaders"),b):(g.Ck(a,"$httpHeaders",b),d=a));else for(var f in b)c.headers.set(f,b[f]);return d};
ll=function(a,b,c){if(c)if(a.isActive(),!g.Cc||g.tc(10)){c=new bl(a);var d=new el(c)}else d=null;return new ik({xhr:a,oT:d},b)};
il=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
ml=function(){var a={format:"jspb"};this.i=new hl(a)};
ica=function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);0<a;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")};
ol=function(a){function b(){c-=d;c-=e;c^=e>>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15}
a=jca(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=nl(a,l),d+=nl(a,l+4),e+=nl(a,l+8),b();e+=f;switch(h){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return ica(e)};
jca=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
nl=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
kca=function(a){var b=new ml,c={"X-Goog-Api-Key":"AIzaSyBydTmf06EmN2pis9ljY6qe2XY0Rn8uK0k"};return new Vba(b,a,function(){return c})};
lca=function(a){var b=kca(a.xm);return new pl(Object.assign({Oy:b},a))};
ql=function(a,b){var c;var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;b instanceof Error?(this.message=b.message,this.stack=null!==(c=b.stack)&&void 0!==c?c:""):(this.message=String(b),this.stack="");Object.setPrototypeOf(this,ql.prototype)};
rl=function(){g.E.apply(this,arguments);this.u=new Dj};
tl=function(a,b){sl(b).then(function(){a.u.resolve()})};
ul=function(a,b,c,d){rl.call(this);this.B=b;this.D=c;this.C=0;g.H(this,a);tl(this,d);this.i=new $d};
vl=function(a,b){rl.call(this);this.i=a;tl(this,b)};
wl=function(a){rl.call(this);if(a instanceof ql){var b=a.code+":"+a.message+":"+a.stack;a=a.code+":_"+ol(a.message)+":_"+ol(a.stack)}else b=a.message+":"+a.stack,a="_"+ol(a.message)+":_"+ol(a.stack||"");this.i=new Uint8Array(g.eb(("WE:"+b).substring(0,2048)));this.B=new Uint8Array(g.eb(("WE:"+a).substring(0,2048)))};
sl=function(a){return new Promise(function(b){return void setTimeout(b,a)})};
xl=function(a,b){return Promise.race([a,sl(12E4).then(b)])};
pl=function(a){this.i=void 0;this.u=new Dj;this.Oy=a.Oy;this.tM=a.tM;this.onError=a.onError;this.logger=a.gda?new yj:new zj(a.xm);var b=new xj(this.logger,"r");this.ready().finally(function(){return void b.done()});
mca(this)};
nca=function(a,b){var c=window.webpocb;if(!c)throw new ql(4,Error("PMD:Undefined"));c=c(id(vd(a,1,"")));return new ul(b,c,Hd(a,3),1E3*Hd(a,2))};
oca=function(a){var b,c,d,e,f,h,l,m,n,p,q,t,u,v;return g.A(function(y){switch(y.i){case 1:d=void 0,e=a.i?6E4:1E3,f=new g.gi(e,6E5,.25,2),h=1;case 2:if(!(10>=h)){y.fb(4);break}ta(y,5);l=new xj(a.logger,"c");return g.x(y,xl(a.logger.RE("c",h,Wba(a.Oy)),function(){return Promise.reject(new ql(10,"JVZ:Timeout"))}),7);
case 7:return m=y.u,g.x(y,Sba(m),8);case 8:return n=new Ej({challenge:m}),l.done(),p=new xj(a.logger,"g"),g.x(y,xl(n.snapshot({}),function(){return Promise.reject(new ql(15,"MDA:Timeout"))}),9);
case 9:return q=y.u,g.x(y,xl(a.logger.RE("g",h,Yba(a.Oy,q)),function(){return Promise.reject(new ql(10,"BWB:Timeout"))}),10);
case 10:t=y.u;if(Hd(t,3))var z=nca(t,n);else n.dispose(),z=new vl(id(vd(t,1,"")),1E3*Hd(t,2));u=z;p.done();null===(b=a.tM)||void 0===b?void 0:b.call(a,id(vd(t,1,"")));return y.return(u);case 5:v=va(y);d=v instanceof ql?v:v instanceof wj?new ql(11,v):new ql(12,v);a.logger.dw(d.code);null===(c=a.onError)||void 0===c?void 0:c.call(a,d,"RE");a:{if(v instanceof wj)switch(v.code){case 2:case 13:case 14:case 4:break;default:z=!1;break a}z=!0}if(!z)throw d;return g.x(y,sl(f.getValue()),11);case 11:g.hi(f);
case 3:h++;y.fb(2);break;case 4:throw d;}})};
mca=function(a){var b,c,d,e;g.A(function(f){switch(f.i){case 1:return c=void 0,ta(f,4),g.x(f,oca(a),6);case 6:c=f.u;ua(f,5);break;case 4:if(d=va(f),e=d instanceof Error?d:Error(String(d)),a.i){a.logger.dw(13);f.fb(0);break}else a.logger.dw(14),c=new wl(e);case 5:return null===(b=a.i)||void 0===b?void 0:b.dispose(),a.i=c,a.u.resolve(),g.x(f,a.i.u.promise,1)}})};
pca=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.B=!b&&/[?&]ae=1(&|$)/.test(a);this.C=!b&&/[?&]ae=2(&|$)/.test(a);if((this.i=/[?&]adurl=([^&]*)/.exec(a))&&this.i[1]){try{var c=decodeURIComponent(this.i[1])}catch(d){c=null}this.u=c}};
yl=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.og(c)+".js";c=e.document;var h={};b&&(h._scs_=b);h._bgu_=f;h._bgp_=d;h._li_="v_h.3.0.0.0";(b=e.GoogleTyFxhY)&&"function"==typeof b.push||(b=e.GoogleTyFxhY=[]);b.push(h);e=xg(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=Qaa(g.tf("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.og(a)+".js"});g.Rj(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
qca=function(a){var b={};g.jc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.i(e)||(b[d]=null)):b[d]=c});
maa(a,function(c){return null===b[c.event]})};
zl=function(){this.cd=0;this.i=!1;this.u=-1;this.Up=!1;this.qh=0};
Al=function(){this.u=null;this.i=!1};
Bl=function(a){Al.call(this);this.B=a};
Cl=function(){Al.call(this)};
Dl=function(){Al.call(this)};
El=function(){this.i={};this.u=!0;this.B={}};
Fl=function(a,b,c){a.i[b]||(a.i[b]=new Bl(c));return a.i[b]};
rca=function(a){a.i.queryid||(a.i.queryid=new Dl)};
Gl=function(a,b,c){(a=a.i[b])&&a.setValue(c)};
Hl=function(a,b){if(ze(a.B,b))return a.B[b];if(a=a.i[b])return a.getValue()};
Il=function(a){var b={},c=g.re(a.i,function(d){return d.i});
g.qe(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.i&&null!==d.u?String(d.u):"";0<d.length&&(b[e]=d)},a);
return b};
sca=function(a){a=Il(a);var b=[];g.qe(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
tca=function(){this.i=this.Tn=null};
Jl=function(){};
Ll=function(){if(!Kl())throw Error();};
Kl=function(){return!(!Ml||!Ml.performance)};
Nl=function(a){return a?a.passive&&uca()?a:a.capture||!1:!1};
Ol=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Nl(d)),!0):!1};
Pl=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,Nl(void 0))};
Ql=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
Rl=function(){};
Tl=function(){return yb?yb.mobile:!Sl()&&(Bb("iPod")||Bb("iPhone")||Bb("Android")||Bb("IEMobile"))};
Sl=function(){return yb?!yb.mobile&&(Bb("iPad")||Bb("Android")||Bb("Silk")):Bb("iPad")||Bb("Android")&&!Bb("Mobile")||Bb("Silk")};
Ul=function(a){try{return!!a&&null!=a.location.href&&oc(a,"foo")}catch(b){return!1}};
Vl=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
wca=function(){var a=[];Vl(vca,function(b){a.push(b)});
return a};
yca=function(a){return(a=xca.exec(a))&&a[0]||""};
zca=function(){var a=Wl;if(!a)return"";var b=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};
Bca=function(){var a=Xl("IFRAME"),b={};g.jc(Aca(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
Xl=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
Yl=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Ul(a)&&(b=a);return b};
Zl=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
$l=function(a){return a.right-a.left};
am=function(a,b,c){b instanceof g.hg?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a};
g.bm=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
cm=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};
dm=function(a,b){a.google_image_requests||(a.google_image_requests=[]);var c=Xl("IMG",a.document);c.src=b;a.google_image_requests.push(c)};
Dca=function(){var a="https://pagead2.googlesyndication.com/pagead/gen_204?id=badpubwin";Vl({stack:Error().stack},function(b,c){b&&(a+="&"+c+"="+encodeURIComponent(b))});
Cca(a)};
Cca=function(a){var b=window;b.fetch?b.fetch(a,{keepalive:!0,credentials:"include",redirect:"follow",method:"get",mode:"no-cors"}):dm(b,a)};
g.fm=function(a,b,c){if("string"===typeof b)(b=em(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=em(c,d);f&&(c.style[f]=e)}};
em=function(a,b){var c=gm[b];if(!c){var d=sg(b);c=d;void 0===a.style[d]&&(d=(g.Ig?"Webkit":hm?"Moz":g.Cc?"ms":null)+eba(d),void 0!==a.style[d]&&(c=d));gm[b]=c}return c};
g.im=function(a,b){var c=a.style[sg(b)];return"undefined"!==typeof c?c:a.style[em(a,b)]||""};
jm=function(a,b){var c=vg(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
km=function(a,b){return jm(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.mm=function(a,b,c){if(b instanceof g.hg){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.lm(d,!1);a.style.top=g.lm(b,!1)};
nm=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
Eca=function(a){if(g.Cc&&!g.tc(8))return a.offsetParent;var b=vg(a),c=km(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=km(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null};
g.om=function(a){var b=vg(a),c=new g.hg(0,0);var d=b?vg(b):document;d=!g.Cc||g.tc(9)||"CSS1Compat"==xg(d).i.compatMode?d.documentElement:d.body;if(a==d)return c;a=nm(a);b=Hg(xg(b).i);c.x=a.left+b.x;c.y=a.top+b.y;return c};
qm=function(a,b){var c=new g.hg(0,0),d=Jg(vg(a));if(!oc(d,"parent"))return c;do{var e=d==b?g.om(a):pm(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.sm=function(a,b){a=rm(a);b=rm(b);return new g.hg(a.x-b.x,a.y-b.y)};
pm=function(a){a=nm(a);return new g.hg(a.left,a.top)};
rm=function(a){if(1==a.nodeType)return pm(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.hg(a.clientX,a.clientY)};
g.tm=function(a,b,c){if(b instanceof g.jg)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.lm(b,!0);a.style.height=g.lm(c,!0)};
g.lm=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.um=function(a){var b=Fca;if("none"!=km(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};
Fca=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Ig&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=nm(a),new g.jg(a.right-a.left,a.bottom-a.top)):new g.jg(b,c)};
g.vm=function(a,b){a.style.display=b?"":"none"};
Dm=function(){if(wm&&!Ul(xm)){.01>Math.random()&&Dca();var a="."+ym.domain;try{for(;2<a.split(".").length&&!Ul(xm);)ym.domain=a=a.substr(a.indexOf(".")+1),xm=window.parent}catch(b){}Ul(xm)||(xm=window)}return xm};
Gm=function(a){a=a||Em();for(var b=new Fm(g.B.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Gca.test(f.url)&&(c=f);if(f.url&&!f.CE){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Hca(b,e,c)};
Em=function(){var a=g.B,b=[],c=null;do{var d=a;if(Ul(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Fm(e||""));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.B;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)e=b[a],e.url||(e.url=d.location.ancestorOrigins[a-1]||"",e.CE=!0);return b};
Hca=function(a,b,c){this.i=a;this.u=b;this.B=c};
Fm=function(a,b){this.url=a;this.CE=!!b;this.depth=null};
Hm=function(){this.B="&";this.u={};this.C=0;this.i=[]};
Im=function(a,b){var c={};c[a]=b;return[c]};
Km=function(a,b,c,d,e){var f=[];Vl(a,function(h,l){(h=Jm(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
Jm=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],h=0;h<a.length;h++)f.push(Jm(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(Km(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Jca=function(a,b,c){b=b+"//pagead2.googlesyndication.com"+c;var d=Ica(a)-c.length;if(0>d)return"";a.i.sort(function(p,q){return p-q});
c=null;for(var e="",f=0;f<a.i.length;f++)for(var h=a.i[f],l=a.u[h],m=0;m<l.length;m++){if(!d){c=null==c?h:c;break}var n=Km(l[m],a.B,",$");if(n){n=e+n;if(d>=n.length){d-=n.length;b+=n;e=a.B;break}c=null==c?h:c}}a="";null!=c&&(a=e+"trn="+c);return b+a+""};
Ica=function(a){var b=1,c;for(c in a.u)b=c.length>b?c.length:b;return 3997-b-a.B.length-1};
Lm=function(a,b){this.i=a;this.depth=b};
Lca=function(){function a(l,m){return null==l?m:l}
var b=Em(),c=Math.max(b.length-1,0),d=Gm(b);b=d.i;var e=d.u,f=d.B,h=[];f&&h.push(new Lm([f.url,f.CE?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Lm([e.url,2],0));b.url&&b!=f&&h.push(new Lm([b.url,0],a(b.depth,c)));d=g.Mm(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=yca(b.url))&&d.push([new Lm([e,1],a(b.depth,c))]);d.push([]);return g.Mm(d,function(l){return Kca(c,l)})};
Kca=function(a,b){g.Nm(b,function(e){return 0<=e.depth});
var c=Om(b,function(e,f){return Math.max(e,f.depth)},-1),d=qaa(c+2);
d[0]=a;g.jc(b,function(e){return d[e.depth+1]=e.i});
return d};
Mca=function(){var a=Lca();return g.Mm(a,function(b){return Jm(b)})};
Pm=function(a){var b="Re";if(a.Re&&a.hasOwnProperty(b))return a.Re;var c=new a;a.Re=c;a.hasOwnProperty(b);return c};
Qm=function(){this.u=new Rl;this.i=Kl()?new Ll:new Jl};
Nca=function(){Rm();var a=Ml.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Ml.setInterval&&"function"===typeof Ml.clearInterval&&"function"===typeof Ml.setTimeout&&"function"===typeof Ml.clearTimeout)};
Sm=function(a){Rm();var b=Dm()||Ml;dm(b,a)};
Tm=function(){Rm();return Mca()};
Um=function(){};
Rm=function(){return Pm(Um).getContext()};
Vm=function(a){rd.call(this,a)};
Oca=function(a,b){var c=sd(a,1);if(null!=c){Xc(b.i,9);var d=b.i,e=c;e=(c=0>e?1:0)?-e:e;if(0===e)bd=0<1/e?0:2147483648,ad=0;else if(isNaN(e))bd=2147483647,ad=4294967295;else if(1.7976931348623157E308<e)bd=(c<<31|2146435072)>>>0,ad=0;else if(2.2250738585072014E-308>e){var f=e/Math.pow(2,-1074);bd=(c<<31|f/4294967296)>>>0;ad=f>>>0}else{var h=e;f=0;if(2<=h)for(;2<=h&&1023>f;)f++,h/=2;else for(;1>h&&-1022<f;)h*=2,f--;e*=Math.pow(2,-f);bd=(c<<31|f+1023<<20|1048576*e&1048575)>>>0;ad=4503599627370496*e>>>
0}Yc(d,ad);Yc(d,bd)}cd(b,2,sd(a,2));cd(b,3,sd(a,3));cd(b,4,sd(a,4));c=sd(a,5);if(null!=c&&null!=c)if(Xc(b.i,40),d=b.i,0<=c)Xc(d,c);else{for(f=0;9>f;f++)d.push(c&127|128),c>>=7;d.push(1)}Id(a,b)};
Pca=function(a){this.B=a;this.i=-1;this.u=this.C=0};
Wm=function(a,b){return function(){var c=g.Ba.apply(0,arguments);if(-1<a.i)return b.apply(null,g.la(c));try{return a.i=a.B.i.now(),b.apply(null,g.la(c))}finally{a.C+=a.B.i.now()-a.i,a.i=-1,a.u+=1}}};
Qca=function(a,b){this.u=a;this.B=b;this.i=new Pca(a)};
Rca=function(){};
Ym=function(){this.B=void 0;this.u=this.I=0;this.D=-1;this.featureSet=new El;Fl(this.featureSet,"mv",Sca).i=!0;Fl(this.featureSet,"omid",Xm);Fl(this.featureSet,"epoh",Xm).i=!0;Fl(this.featureSet,"epph",Xm).i=!0;Fl(this.featureSet,"umt",Xm).i=!0;Fl(this.featureSet,"phel",Xm).i=!0;Fl(this.featureSet,"phell",Xm).i=!0;Fl(this.featureSet,"oseid",Tca).i=!0;var a=this.featureSet;a.i.sloi||(a.i.sloi=new Cl);a.i.sloi.i=!0;Fl(this.featureSet,"ovms",Uca).i=!0;Fl(this.featureSet,"xdi",Xm).i=!0;Fl(this.featureSet,
"amp",Xm).i=!0;Fl(this.featureSet,"prf",Xm).i=!0;Fl(this.featureSet,"gtx",Xm).i=!0;Fl(this.featureSet,"mvp_lv",Xm).i=!0;Fl(this.featureSet,"ssmol",Xm).i=!0;this.i=new Qca(Rm(),this.featureSet);this.C=!1;this.flags=new Rca};
Zm=function(){return Pm(Ym)};
Vca=function(){var a="https:";Ml&&Ml.location&&"http:"===Ml.location.protocol&&(a="http:");this.u=a;this.i=.01;this.B=Math.random()};
$m=function(a,b,c,d,e){if((d?a.B:Math.random())<(e||a.i))try{if(c instanceof Hm)var f=c;else f=new Hm,Vl(c,function(l,m){var n=f,p=n.C++;l=Im(m,l);n.i.push(p);n.u[p]=l});
var h=Jca(f,a.u,"/pagead/gen_204?id="+b+"&");h&&Sm(h)}catch(l){}};
an=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};
bn=function(){var a=g.B.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Sa()};
cn=function(){var a=void 0===a?g.B:a;return(a=a.performance)&&a.now?a.now():null};
Wca=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
en=function(){var a=Dm();this.events=[];this.u=a||g.B;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.i=dn()||(null!=b?b:1>Math.random())};
gn=function(a){a&&fn&&dn()&&(fn.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),fn.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
kn=function(){var a=hn;this.i=jn;this.bK="jserror";this.wG=!0;this.QC=null;this.u=this.TE;this.Mb=void 0===a?null:a};
nn=function(a,b,c,d){return Wm(Zm().i.i,function(){try{if(a.Mb&&a.Mb.i){var e=a.Mb.start(b.toString(),3);var f=c();a.Mb.end(e)}else f=c()}catch(m){var h=a.wG;try{gn(e);var l=new ln(mn(m));h=a.u(b,l,void 0,d)}catch(n){a.TE(217,n)}if(!h)throw m;}return f})()};
pn=function(a,b,c){var d=on;return Wm(Zm().i.i,function(){var e=g.Ba.apply(0,arguments);return nn(d,a,function(){return b.apply(void 0,e)},c)})};
mn=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b};
ln=function(a){an.call(this,Error(a),{message:a})};
qn=function(){var a=Dm();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||hn.disable())};
Xca=function(a){on.QC=function(b){g.jc(a,function(c){c(b)})}};
rn=function(a,b){return nn(on,a,b,void 0)};
sn=function(a,b){return pn(a,b,void 0)};
tn=function(a,b,c,d){on.TE(a,b,c,d)};
un=function(){return Date.now()-Yca};
Zca=function(){var a=Zm().B,b=0<=vn?un()-vn:-1,c=wn?un()-xn:-1,d=0<=yn?un()-yn:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];tn(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h};
zn=function(a,b,c){var d=new Zl(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.i=d;this.u=c};
An=function(a,b,c,d,e,f,h){this.C=a;this.B=b;this.I=c;this.i=d;this.D=e;this.u=f;this.K=h};
Bn=function(a){var b=a!==a.top,c=a.top===Yl(a),d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),ue($ca,function(h){return"function"===typeof f[h]})||(e=1));
return{xj:f,compatibility:e,lX:d}};
ada=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint};
Cn=function(a,b,c,d){var e=void 0===e?!1:e;c=pn(d,c,void 0);Ol(a,b,c,{capture:e})};
Dn=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.jg(b.innerWidth,b.innerHeight)).round():Fg(b||window).round()}catch(d){return new g.jg(-12245933,-12245933)}};
En=function(a,b,c){try{a&&(b=b.top);var d=Dn(a,b,void 0===c?!1:c),e=Hg(xg(b.document).i);if(-12245933==d.width){var f=d.width;var h=new Zl(f,f,f,f)}else h=new Zl(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new Zl(-12245933,-12245933,-12245933,-12245933)}};
Fn=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
Gn=function(a){return new Zl(a.top,a.right,a.bottom,a.left)};
Hn=function(a){var b=a.top||0,c=a.left||0;return new Zl(b,c+(a.width||0),b+(a.height||0),c)};
In=function(a){return null!=a&&0<=a&&1>=a};
bda=function(){var a=g.Ab;return a?Jn("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return ub(a,b)})||ub(a,"OMI/")&&!ub(a,"XiaoMi/")?!0:ub(a,"Presto")&&ub(a,"Linux")&&!ub(a,"X11")&&!ub(a,"Android")&&!ub(a,"Mobi"):!1};
Kn=function(){this.B=!Ul(Ml.top);this.isMobileDevice=Sl()||Tl();var a=Em();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.ti(a[a.length-1].url)||"":"";this.i=new Zl(0,0,0,0);this.C=new g.jg(0,0);this.D=new g.jg(0,0);this.K=new Zl(0,0,0,0);this.I=0;this.S=!1;this.u=!(!Ml||!Bn(Ml).xj);this.update(Ml)};
Ln=function(a,b){b&&b.screen&&(a.C=new g.jg(b.screen.width,b.screen.height))};
Mn=function(a,b){var c=a.i?new g.jg($l(a.i),a.i.getHeight()):new g.jg(0,0);b=void 0===b?Ml:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=q):m<p?(d=m,e=n):(d=p,e=q)}var t=new g.jg(e,d)}catch(u){t=new g.jg(-12245933,-12245933)}a.D=t};
On=function(){var a=Nn();if(0<a.I||a.S)return!0;a=Rm().u.isVisible();var b=0===Ql(ym);return a||b};
Nn=function(){return Pm(Kn)};
Pn=function(a){this.B=a;this.u=0;this.i=null};
Qn=function(a,b,c){this.B=a;this.La=void 0===c?"na":c;this.D=[];this.isInitialized=!1;this.C=new zn(-1,!0,this);this.i=this;this.S=b;this.Z=this.X=!1;this.Ba="uk";this.Aa=!1;this.I=!0};
Rn=function(a,b){g.Qb(a.D,b)||(a.D.push(b),b.Gs(a.i),b.Kn(a.C),b.Uk()&&(a.X=!0))};
Sn=function(a){a=a.i;a.FH();a.EH();var b=Nn();b.K=En(!1,a.B,b.isMobileDevice);Mn(Nn(),a.B);a.C.i=a.BK()};
Tn=function(a){a.X=a.D.length?Jn(a.D,function(b){return b.Uk()}):!1};
Un=function(a){var b=g.Xb(a.D);g.jc(b,function(c){c.Kn(a.C)})};
Vn=function(a){var b=g.Xb(a.D);g.jc(b,function(c){c.Gs(a.i)});
a.i!=a||Un(a)};
Wn=function(a,b,c,d){this.element=a;this.i=new Zl(0,0,0,0);this.C=new Zl(0,0,0,0);this.u=b;this.featureSet=c;this.oa=d;this.Z=!1;this.timestamp=-1;this.K=new An(b.C,this.i,new Zl(0,0,0,0),0,0,un(),0)};
Xn=function(a){this.D=!1;this.i=a;this.C=g.Ia};
Yn=function(a,b,c){this.B=void 0===c?0:c;this.u=a;this.i=null==b?"":b};
cda=function(a){switch(Math.trunc(a.B)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Zn=function(a,b){return a.B<b.B?!0:a.B>b.B?!1:a.u<b.u?!0:a.u>b.u?!1:typeof a.i<typeof b.i?!0:typeof a.i>typeof b.i?!1:a.i<b.i};
$n=function(){this.B=0;this.i=[];this.u=!1};
dda=function(a,b){(0,g.jc)(b.i,function(c){a.add(c.u,c.i,cda(c))})};
ao=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Vl(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
bo=function(a){var b=eda;a.u&&(g.gc(a.i,function(c,d){return Zn(d,c)?1:Zn(c,d)?-1:0}),a.u=!1);
return Om(a.i,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
eda=function(a){var b=a.u;a=a.i;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.Qb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
eo=function(a){var b=void 0===b?!0:b;this.i=new $n;void 0!==a&&dda(this.i,a);b&&this.i.add("v",co,-16)};
fda=function(a){var b=[],c=[];g.qe(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d)switch(Array.isArray(d)&&(d=d.join(",")),d=[e,"=",d].join(""),e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(d);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(d);break;default:b.push(d)}});
return b.concat(c)};
fo=function(){if(co&&"unreleased"!==co)return co};
go=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=fo();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);Sm(a)};
gda=function(){this.i=0};
hda=function(a,b,c){(0,g.jc)(a.B,function(d){var e=a.i;if(!d.i&&(d.B(b,c),d.C())){d.i=!0;var f=d.u(),h=new $n;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.D);d=Pm(gda);h.add("i",d.i++);h.add("adk",e);ao(h,f);e=new eo(h);go(e)}})};
ho=function(){this.u=this.B=this.C=this.i=0};
io=function(a){this.u=a=void 0===a?ida:a;this.i=g.Mm(this.u,function(){return new ho})};
ko=function(a,b){return jo(a,function(c){return c.i},void 0===b?!0:b)};
mo=function(a,b){return lo(a,b,function(c){return c.i})};
no=function(a,b){return jo(a,function(c){return c.B},void 0===b?!0:b)};
oo=function(a,b){return lo(a,b,function(c){return c.B})};
po=function(a,b){return lo(a,b,function(c){return c.u})};
qo=function(a){g.jc(a.i,function(b){b.u=0})};
jo=function(a,b,c){a=g.Mm(a.i,function(d){return b(d)});
return c?a:jda(a)};
lo=function(a,b,c){var d=g.Nb(a.u,function(e){return b<=e});
return-1==d?0:c(a.i[d])};
jda=function(a){return g.Mm(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
ro=function(){this.u=new io;this.La=new ho;this.oa=this.K=-1;this.Wa=1E3;this.Za=new io([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ba=this.va=-1};
so=function(a,b){return no(a.u,void 0===b?!0:b)};
uo=function(a,b){b=to(b);return 0===b?0:to(a)/b};
to=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
kda=function(a,b){if(!a||!b)return!1;for(var c=0;null!==a&&100>c++;){if(a===b)return!0;try{if(a=g.Sg(a)||a){var d=vg(a),e=d&&Jg(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
lda=function(a,b,c){if(!a||!b)return!1;b=am(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Dm();Ul(d.top)&&d.top&&d.top.document&&(d=d.top);if(!ada(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=vg(c))&&b.defaultView&&b.defaultView.frameElement)&&kda(b,a);d=a===c;a=!d&&a&&Xg(a,function(e){return e===c});
return!(b||d||a)};
mda=function(a,b,c,d){return Nn().B?!1:0>=$l(a)||0>=a.getHeight()?!0:c&&d?rn(208,function(){return lda(a,b,c)}):!1};
vo=function(a,b,c){g.E.call(this);this.position=nda.clone();this.Wz=this.kz();this.QE=-2;this.zX=Date.now();this.jO=-1;this.lastUpdateTime=b;this.Nz=null;this.Iy=!1;this.gA=null;this.opacity=-1;this.requestSource=c;this.wO=this.VE=g.Ia;this.Pg=new tca;this.Pg.Tn=a;this.Pg.i=a;this.Os=!1;this.tp={fF:null,dF:null};this.QN=!0;this.ox=null;this.Is=this.NS=!1;Zm().I++;this.vf=this.bE();this.eO=-1;this.Md=null;this.KS=!1;a=this.featureSet=new El;Fl(a,"od",oda);Fl(a,"opac",Xm).i=!0;Fl(a,"sbeos",Xm).i=!0;
Fl(a,"prf",Xm).i=!0;Fl(a,"mwt",Xm).i=!0;Fl(a,"iogeo",Xm);(a=this.Pg.Tn)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(pda&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+tg()):a.getAttribute("data-"+tg()))&&(Nn().u=!0);1==this.requestSource?Gl(this.featureSet,"od",1):Gl(this.featureSet,"od",0)};
wo=function(a,b){b!=a.Is&&(a.Is=b,a=Nn(),b?a.I++:0<a.I&&a.I--)};
xo=function(a,b){if(a.Md){if(b.getName()===a.Md.getName())return;a.Md.dispose();a.Md=null}b=b.create(a.Pg.i,a.featureSet,a.Uk());if(b=null!=b&&b.TB()?b:null)a.Md=b};
yo=function(a,b,c){if(!a.Nz||-1==a.lastUpdateTime||-1===b.u||-1===a.Nz.u)return 0;a=b.u-a.Nz.u;return a>c?0:a};
qda=function(a,b,c){if(a.Md){a.Md.Wm();var d=a.Md.K,e=d.C,f=e.i;if(null!=d.I){var h=d.B;a.gA=new g.hg(h.left-f.left,h.top-f.top)}f=a.dB()?Math.max(d.i,d.D):d.i;h={};null!==e.volume&&(h.volume=e.volume);e=a.wK(d);a.Nz=d;a.Pa(f,b,c,!1,h,e,d.K)}};
rda=function(a){if(a.Iy&&a.ox){var b=1==Hl(a.featureSet,"od"),c=Nn().i,d=a.ox,e=a.Md?a.Md.getName():"ns",f=new g.jg($l(c),c.getHeight());c=a.dB();a={nX:e,gA:a.gA,XX:f,dB:c,cd:a.vf.cd,RX:b};if(b=d.u){b.Wm();e=b.K;f=e.C.i;var h=null,l=null;null!=e.I&&f&&(h=e.B,h=new g.hg(h.left-f.left,h.top-f.top),l=new g.jg(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.i,e.D):e.i;c={nX:b.getName(),gA:h,XX:l,dB:c,RX:!1,cd:e}}else c=null;c&&hda(d,a,c)}};
sda=function(a,b,c){b&&(a.VE=b);c&&(a.wO=c)};
g.zo=function(){};
g.Ao=function(a){return{value:a,done:!1}};
g.Co=function(a){if(a.done)throw g.Bo;return a.value};
tda=function(){this.C=this.i=this.B=this.u=this.D=0};
uda=function(a){var b={};var c=g.Sa()-a.D;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.B)&&(b.pnc=c);(c=a.C)&&(b.pnmm=c);(a=a.i)&&(b.pns=a);return b};
Do=function(){zl.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
Eo=function(a){return In(a.volume)&&0<a.volume};
vda=function(){var a={};this.u=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a);this.i={};for(var b in this.u)0<this.u[b][1]&&(this.i[b]=0);this.B=0};
Fo=function(a,b){var c=a.u[b],d=c[1];a.B+=c[0];0<d&&0==a.i[b]&&(a.i[b]=1)};
wda=function(a){var b=g.ye(a.u),c=0,d;for(d in a.i)g.Qb(b,d)&&1==a.i[d]&&(c+=a.u[d][1],a.i[d]=2);return c};
xda=function(a){var b=0,c;for(c in a.i){var d=a.i[c];if(1==d||2==d)b+=a.u[c][1]}return b};
Go=function(){this.i=this.u=0};
Ho=function(){ro.call(this);this.B=new ho;this.Ka=this.X=this.Aa=0;this.S=-1;this.bb=new ho;this.D=new ho;this.i=new io;this.I=this.C=-1;this.Z=new ho;this.Wa=2E3;this.Ha=new Go;this.Va=new Go;this.Sa=new Go};
Io=function(a,b,c){var d=a.Ka;wn||c||-1==a.S||(d+=b-a.S);return d};
yda=function(){this.i=!1};
Jo=function(a,b){this.i=!1;this.u=a;this.S=b;this.B=0};
Lo=function(a,b){return a.C(b)?(b=Ko(a.S,a.u,b),a.B|=b,0==b):!1};
Mo=function(a,b,c,d){Wn.call(this,a,b,c,d)};
No=function(a,b,c){Wn.call(this,null,a,b,c);this.I=a.isActive();this.D=0};
Oo=function(a){return[a.top,a.left,a.bottom,a.right]};
Po=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;vo.call(this,b,c,d);this.yD=0;this.xf={};this.hf=new vda;this.IO={};this.Df="";this.Va=null;this.kb=!1;this.i=[];this.hq=e;this.I=f;this.C=null;this.B=-1;this.Ka=this.X=void 0;this.oa=this.Z=0;this.Ba=-1;this.Za=this.Wa=!1;this.Aa=this.K=this.u=this.St=this.bb=0;new io;this.Ha=this.La=0;this.Sa=-1;this.wg=0;this.S=g.Ia;this.va=[this.kz()];this.jb=2;this.Mq={};this.Mq.pause="p";this.Mq.resume="r";this.Mq.skip="s";this.Mq.mute="m";this.Mq.unmute=
"um";this.Mq.exitfullscreen="ef";this.D=null};
Qo=function(a){0!=a.wg&&(a.wg=3)};
Ro=function(a){return void 0===a?a:Number(a)?Fn(a,3):0};
So=function(a,b){return a.va[null!=b&&b<a.va.length?b:a.va.length-1]};
To=function(a){var b=!!Hl(Zm().featureSet,"umt");return a.X||!b&&!a.Ka?0:1};
zda=function(a,b){a.em()?b=0:-1==a.lastUpdateTime?b=0:(b-=a.lastUpdateTime,b=b>Math.max(1E4,a.B/3)?0:b);var c=a.S(a)||{};c=void 0!==c.currentTime?c.currentTime:a.Z;var d=c-a.Z,e=0;0<=d?(a.oa+=b,a.Ha+=Math.max(b-d,0),e=Math.min(d,a.oa)):a.La+=Math.abs(d);0!=d&&(a.oa=0);-1==a.Sa&&0<d&&(a.Sa=0<=yn?un()-yn:-1);a.Z=c;return e};
Ada=function(a,b){Jn(a.I,function(c){return c.u==b.u})||a.I.push(b)};
Uo=function(a,b,c){return 15E3<=b?!0:a.Wa?(void 0===c?0:c)?!0:0<a.B?b>=a.B/2:0<a.Ba?b>=a.Ba:!1:!1};
Bda=function(a){var b=Fn(a.vf.cd,2),c=a.hf.B,d=a.vf,e=So(a),f=Ro(e.C),h=Ro(e.I),l=Ro(d.volume),m=Fn(e.K,2),n=Fn(e.oa,2),p=Fn(d.cd,2),q=Fn(e.va,2),t=Fn(e.Ba,2);d=Fn(d.qh,2);a=a.En().clone();a.round();e=so(e,!1);return{WX:b,Uv:c,Xz:f,Tz:h,Ku:l,Yz:m,Uz:n,cd:p,Zz:q,Vz:t,qh:d,position:a,eA:e}};
Wo=function(a,b){Vo(a.i,b,function(){return{WX:0,Uv:void 0,Xz:-1,Tz:-1,Ku:-1,Yz:-1,Uz:-1,cd:-1,Zz:-1,Vz:-1,qh:-1,position:void 0,eA:[]}});
a.i[b]=Bda(a)};
Vo=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Zo=function(a,b,c){var d=a.IO[b];if(null!=d)return d;d=Cda(a,b);var e=Be(Xo,function(f){return f==b});
a=Yo(a,d,d,c,Dda[Xo[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
$o=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Yo=function(a,b,c,d,e){if(a.Os)return{"if":0};var f=a.En().clone();f.round();var h=Nn(),l=Zm(),m=a.Vg(),n=a.Md?a.Md.getName():"ns",p={};p["if"]=h.B?1:void 0;p.sdk=a.C?a.C:void 0;p.t=a.zX;p.p=[f.top,f.left,f.bottom,f.right];p.tos=ko(m.u,!1);p.mtos=so(m);p.mcvt=m.La.B;p.ps=void 0;f=Io(m,un(),a.em());p.vht=f;p.mut=m.bb.B;p.a=Ro(a.vf.volume);p.mv=Ro(m.I);p.fs=a.Is?1:0;p.ft=m.Z.i;p.at=m.D.i;p.as=0<m.C?1:0;p.atos=ko(m.i);p.ssb=ko(m.Za,!1);p.amtos=no(m.i,!1);p.uac=a.bb;p.vpt=m.B.i;"nio"==n&&(p.nio=1,p.avms=
"nio");p.gmm="4";p.gdr=Uo(a,m.B.i,!0)?1:0;p.efpf=a.jb;if("gsv"==n||"nis"==n)n=a.Md,0<n.D&&(p.nnut=n.D);p.tcm=To(a);p.nmt=a.La;p.bt=a.Ha;p.pst=a.Sa;p.vpaid=a.X;p.dur=a.B;p.vmtime=a.Z;p.is=a.hf.B;1<=a.i.length&&(p.i0=a.i[0].Uv,p.a0=[a.i[0].Ku],p.c0=[a.i[0].cd],p.ss0=[a.i[0].qh],n=a.i[0].position,p.p0=n?Oo(n):void 0);2<=a.i.length&&(p.i1=a.i[1].Uv,p.a1=$o(a.i[1].Xz,a.i[1].Ku,a.i[1].Tz),p.c1=$o(a.i[1].Yz,a.i[1].cd,a.i[1].Uz),p.ss1=$o(a.i[1].Zz,a.i[1].qh,a.i[1].Vz),n=a.i[1].position,p.p1=n?Oo(n):void 0,
p.mtos1=a.i[1].eA);3<=a.i.length&&(p.i2=a.i[2].Uv,p.a2=$o(a.i[2].Xz,a.i[2].Ku,a.i[2].Tz),p.c2=$o(a.i[2].Yz,a.i[2].cd,a.i[2].Uz),p.ss2=$o(a.i[2].Zz,a.i[2].qh,a.i[2].Vz),n=a.i[2].position,p.p2=n?Oo(n):void 0,p.mtos2=a.i[2].eA);4<=a.i.length&&(p.i3=a.i[3].Uv,p.a3=$o(a.i[3].Xz,a.i[3].Ku,a.i[3].Tz),p.c3=$o(a.i[3].Yz,a.i[3].cd,a.i[3].Uz),p.ss3=$o(a.i[3].Zz,a.i[3].qh,a.i[3].Vz),n=a.i[3].position,p.p3=n?Oo(n):void 0,p.mtos3=a.i[3].eA);p.cs=xda(a.hf);b&&(p.ic=wda(a.hf),p.dvpt=m.B.u,p.dvs=po(m.u,.5),p.dfvs=
po(m.u,1),p.davs=po(m.i,.5),p.dafvs=po(m.i,1),c&&(m.B.u=0,qo(m.u),qo(m.i)),a.Xp()&&(p.dtos=m.Aa,p.dav=m.X,p.dtoss=a.yD+1,c&&(m.Aa=0,m.X=0,a.yD++)),p.dat=m.D.u,p.dft=m.Z.u,c&&(m.D.u=0,m.Z.u=0));p.ps=[h.D.width,h.D.height];p.bs=[$l(h.i),h.i.getHeight()];p.scs=[h.C.width,h.C.height];p.dom=h.domain;a.St&&(p.vds=a.St);if(0<a.I.length||a.hq)b=g.Xb(a.I),a.hq&&b.push(a.hq),p.pings=g.Mm(b,function(q){return q.toString()});
b=g.Mm(g.ap(a.I,function(q){return q.D()}),function(q){return q.getId()});
naa(b);p.ces=b;a.u&&(p.vmer=a.u);a.K&&(p.vmmk=a.K);a.Aa&&(p.vmiec=a.Aa);p.avms=a.Md?a.Md.getName():"ns";a.Md&&g.Me(p,a.Md.Dn());d?(p.c=Fn(a.vf.cd,2),p.ss=Fn(a.vf.qh,2)):p.tth=un()-bp;p.mc=Fn(m.oa,2);p.nc=Fn(m.K,2);p.mv=Ro(m.I);p.nv=Ro(m.C);p.lte=Fn(a.QE,2);d=So(a,e);so(m);p.qmtos=so(d);p.qnc=Fn(d.K,2);p.qmv=Ro(d.I);p.qnv=Ro(d.C);p.qas=0<d.C?1:0;p.qi=a.Df;p.avms||(p.avms="geo");p.psm=m.Ha.i;p.psv=m.Ha.getValue();p.psfv=m.Va.getValue();p.psa=m.Sa.getValue();l=sca(l.featureSet);l.length&&(p.veid=l);
a.D&&g.Me(p,uda(a.D));return p};
Cda=function(a,b){if(g.Qb(Eda,b))return!0;var c=a.xf[b];return void 0!==c?(a.xf[b]=!0,!c):!1};
Gda=function(){this.i={};var a=Jg();cp(this,a,document);var b=Fda();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)cp(this,c,c.document);cp(this,a.top,a.top.document)}}catch(d){}};
Fda=function(){var a=document.documentElement;try{if(!Ul(Jg().top))return"2";var b=[],c=Jg(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}};
cp=function(a,b,c){Cn(c,"mousedown",function(){return Hda(a)},301);
Cn(b,"scroll",function(){return Ida(a)},302);
Cn(c,"touchmove",function(){return Jda(a)},303);
Cn(c,"mousemove",function(){return Kda(a)},304);
Cn(c,"keydown",function(){return Lda(a)},305)};
Hda=function(a){g.qe(a.i,function(b){1E5<b.B||++b.B})};
Ida=function(a){g.qe(a.i,function(b){1E5<b.i||++b.i})};
Jda=function(a){g.qe(a.i,function(b){1E5<b.i||++b.i})};
Lda=function(a){g.qe(a.i,function(b){1E5<b.u||++b.u})};
Kda=function(a){g.qe(a.i,function(b){1E5<b.C||++b.C})};
dp=function(){this.i=[];this.u=[]};
ep=function(a,b){return g.Mb(a.i,function(c){return c.Df==b})};
fp=function(a,b){return b?g.Mb(a.i,function(c){return c.Pg.Tn==b}):null};
Mda=function(a,b){return g.Mb(a.u,function(c){return 2==c.Fk()&&c.Df==b})};
hp=function(){var a=gp;return 0==a.i.length?a.u:0==a.u.length?a.i:g.Wb(a.u,a.i)};
ip=function(a,b){a=1==b.Fk()?a.i:a.u;var c=Lb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.Md&&b.Md.nu(),b.dispose(),!0):!1};
Nda=function(a){var b=gp;if(ip(b,a)){switch(a.Fk()){case 0:var c=function(){return null};
case 2:c=function(){return Mda(b,a.Df)};
break;case 1:c=function(){return ep(b,a.Df)}}for(var d=c();d;d=c())ip(b,d)}};
Oda=function(a,b){var c=gp;a=g.ap(a,(void 0===b?0:b)?function(d){return!ep(c,d.Df)}:function(d){return!fp(c,d.Pg.Tn)});
c.i.push.apply(c.i,g.la(a))};
jp=function(a){var b=gp,c=[];g.jc(a,function(d){Jn(b.i,function(e){return e.Pg.Tn===d.Pg.Tn&&e.Df===d.Df})||(b.i.push(d),c.push(d))})};
kp=function(){this.i=this.u=null};
lp=function(a,b){function c(d,e){b(d,e)}
if(null==a.u)return!1;a.i=g.Mb(a.u,function(d){return null!=d&&d.GH()});
a.i&&(a.i.init(c)?Sn(a.i.i):b(a.i.i.rs(),a.i));return null!=a.i};
mp=function(a){a=Pda(a);Xn.call(this,a.length?a[a.length-1]:new Qn(Ml,0));this.B=a;this.u=null};
Pda=function(a){if(!a.length)return[];a=(0,g.ap)(a,function(c){return null!=c&&c.mu()});
for(var b=1;b<a.length;b++)Rn(a[b-1],a[b]);return a};
np=function(a,b,c,d){Wn.call(this,a,b,c,d);this.X=this.S=this.D=this.I=this.B=null};
op=function(a){return a.B&&a.B.takeRecords?a.B.takeRecords():[]};
Rda=function(a){if(!a.element)return!1;var b=a.element,c=a.u.i.B,d=Zm().i.i;a.B=new c.IntersectionObserver(Wm(d,function(e){return pp(a,e)}),Qda);
d=Wm(d,function(){a.B.unobserve(b);a.B.observe(b);pp(a,op(a))});
c.ResizeObserver?(a.I=new c.ResizeObserver(d),a.I.observe(b)):c.MutationObserver&&(a.D=new g.B.MutationObserver(d),a.D.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.B.observe(b);pp(a,op(a));return!0};
pp=function(a,b){try{if(b.length){a.S||(a.S=un());var c=Sda(b),d=qm(a.element,a.u.i.B),e=d.x,f=d.y;a.i=new Zl(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=Gn(c.intersectionRect);a.C=am(h,a.i.left-h.left,a.i.top-h.top)}}catch(l){a.nu(),tn(299,l)}};
Sda=function(a){return Om(a,function(b,c){return b.time>c.time?b:c},a[0])};
qp=function(a){a=void 0===a?Ml:a;Xn.call(this,new Qn(a,2))};
Ap=function(){var a=zp();Qn.call(this,Ml.top,a,"geo")};
zp=function(){Zm();var a=Nn();return a.B||a.u?0:2};
Bp=function(){};
Cp=function(){this.done=!1;this.i={TQ:0,YI:0,ida:0,XJ:0,yE:-1,rR:0,qR:0,sR:0};this.D=null;this.I=!1;this.B=null;this.K=0;this.u=new Pn(this)};
Ep=function(){var a=Dp;a.I||(a.I=!0,Tda(a,function(){return a.C.apply(a,g.la(g.Ba.apply(0,arguments)))}),a.C())};
Uda=function(){Pm(Bp);var a=Pm(kp);null!=a.i&&a.i.i?Sn(a.i.i):Nn().update(Ml)};
Fp=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{Uda();var d=un(),e=Zm();e.D=d;if(null!=Pm(kp).i)for(e=0;e<b.length;e++)qda(b[e],d,c);else $m(jn,"",{strategy_not_selected:1,bin:e.u},!0,void 0);for(d=0;d<b.length;d++)rda(b[d]);++a.i.XJ;Vda()}finally{c?g.jc(b,function(f){f.vf.cd=0}):a.u.schedule()}}};
Tda=function(a,b){if(!a.D){b=pn(142,b,void 0);Rm();var c;ym.visibilityState?c="visibilitychange":ym.mozVisibilityState?c="mozvisibilitychange":ym.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Ol(ym,c,b,{capture:!1})&&(a.D=b)}};
Gp=function(){var a=Pm(kp);if(null!=a.i){var b=a.i;g.jc(hp(),function(c){return xo(c,b)})}};
Vda=function(){var a=Zm();Hl(a.featureSet,"llp")};
Hp=function(a,b){a=a.K;wn&&(a+=b-xn);return a};
Wda=function(a){var b=Dp;a=void 0===a?function(){return{}}:a;
on.bK="av-js";jn.i=.01;Xca([function(c){var d=Zm(),e={};e=(e.bin=d.u,e.type="error",e);d=Il(d.featureSet);if(!b.B){var f=Ml.document,h=0<=vn?un()-vn:-1,l=un();-1==b.i.yE&&(h=l);var m=Nn(),n=Zm(),p=Il(n.featureSet),q=hp();try{if(0<q.length){var t=m.i;t&&(p.bs=[$l(t),t.getHeight()]);var u=m.D;u&&(p.ps=[u.width,u.height]);Ml.screen&&(p.scs=[Ml.screen.width,Ml.screen.height])}else p.url=encodeURIComponent(Ml.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=vn;p.bin=n.u;void 0!==Ml.google_osd_load_pub_page_exp&&(p.olpp=Ml.google_osd_load_pub_page_exp);p.deb=[1,b.i.TQ,b.i.YI,b.i.XJ,b.i.yE,0,b.u.u,b.i.rR,b.i.qR,b.i.sR].join("-");p.tvt=Hp(b,l);m.u&&(p.inapp=1);if(null!==Ml&&Ml!=Ml.top){0<q.length&&(p.iframe_loc=encodeURIComponent(Ml.location.href.substring(0,512)));var v=m.K;p.is=[$l(v),v.getHeight()]}}catch(y){p.error=1}b.B=p}t=g.Je(b.B);u=Zm().i;1==Hl(u.B,"prf")?(v=new Vm,f=u.i,h=0,-1<f.i&&(h=f.B.i.now()-f.i),v=xd(v,1,f.C+h,0),f=u.i,
v=xd(v,5,-1<f.i?f.u+1:f.u,0),v=xd(v,2,u.u.i.B(),0),v=xd(v,3,u.u.i.u(),0),u=xd(v,4,u.u.i.i(),0),v={},u=(v.pf=g.xc(Od(u,Oca)),v)):u={};g.Me(t,u);g.Me(c,e,d,t,a());if(e=fo())d={},g.Me(c,(d.v=encodeURIComponent(e),d))}])};
Xda=function(){var a=Ip||Ml;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("&")};
Jp=function(a){return function(b){return void 0===b[a]?0:b[a]}};
Lp=function(){var a=[0,2,4];return function(b){b=b.tos;if(Array.isArray(b)){for(var c=Array(b.length),d=0;d<b.length;d++)c[d]=0<d?c[d-1]+b[d]:b[d];return void 0!==a?Kp(c,a):c}}};
Mp=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?function(){return!0}:d;
return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return Kp(f,b,c)}};
Np=function(a,b){return function(c){return b(c)?c[a]:void 0}};
Op=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c]===b.e||void 0===a[c]&&!b.hasOwnProperty("e"))return!0;return!1}};
Kp=function(a,b,c){return void 0===c||c?g.ap(a,function(d,e){return g.Qb(b,e)}):g.Mm(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})};
Pp=function(){var a="youtube.player.web_20211110_01_RC01".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20211110_01_RC01".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20211110_01_RC01".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20211110_01_RC01".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20211110_01_RC01".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return 3==(null==(c=a)?void 0:c.length)?"20"+a[1]+a[2]:"906"};
Qp=function(){return"av.default_js".includes("ima_html5_sdk")?{vk:"ima",version:"906"}:"av.default_js".includes("ima_native_sdk")?{vk:"nima",version:"906"}:"av.default_js".includes("admob-native-video-javascript")?{vk:"an",version:"906"}:"youtube.player.web_20211110_01_RC01".includes("cast_js_sdk")?{vk:"cast",version:Pp()}:"youtube.player.web_20211110_01_RC01".includes("youtube.player.web")?{vk:"yw",version:Pp()}:"youtube.player.web_20211110_01_RC01".includes("outstream_web_client")?{vk:"out",version:Pp()}:
"youtube.player.web_20211110_01_RC01".includes("drx_rewarded_web")?{vk:"r",version:Pp()}:"youtube.player.web_20211110_01_RC01".includes("gam_native_web_video")?{vk:"n",version:Pp()}:"youtube.player.web_20211110_01_RC01".includes("admob_interstitial_video")?{vk:"int",version:Pp()}:{vk:"j",version:"906"}};
Vp=function(a,b){var c={sv:Rp,cb:Sp};c.nas=gp.i.length;c.msg=a;void 0!==b&&(a=Tp(b))&&(c.e=Up[a]);return c};
Wp=function(a){return gb(a,"custom_metric_viewable")};
Tp=function(a){var b=Wp(a)?"custom_metric_viewable":a.toLowerCase();return Be(Xo,function(c){return c==b})};
Yda=function(){this.i=void 0;this.u=!1;this.B=0;this.C=-1;this.D="tos"};
$da=function(a){try{var b=a.split(",");return b.length>g.ye(Zda).length?null:Om(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Xp[d[0]]||!Xp[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
aea=function(a,b){if(void 0==a.i)return 0;switch(a.D){case "mtos":return a.u?oo(b.i,a.i):oo(b.u,a.i);case "tos":return a.u?mo(b.i,a.i):mo(b.u,a.i)}return 0};
Yp=function(a,b,c,d){Jo.call(this,b,d);this.I=a;this.K=c};
Zp=function(a){Jo.call(this,"fully_viewable_audible_half_duration_impression",a)};
$p=function(a,b){Jo.call(this,a,b)};
aq=function(){this.u=this.C=this.I=this.D=this.B=this.i=""};
bea=function(){};
bq=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.Me(f,a);void 0!==c&&g.Me(f,c);a=bo(ao(new $n,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
cq=function(){};
dq=function(a,b,c){No.call(this,a,b,c)};
eq=function(a){a=void 0===a?Ml:a;Xn.call(this,new Qn(a,2))};
fq=function(a,b,c){No.call(this,a,b,c)};
gq=function(a){a=void 0===a?Ml:a;Xn.call(this,new Qn(a,2))};
hq=function(){Qn.call(this,Ml,2,"mraid");this.Ha=0;this.oa=this.va=!1;this.K=null;this.u=Bn(this.B);this.C.i=new Zl(0,0,0,0);this.Ka=!1};
iq=function(a,b,c){a.Go("addEventListener",b,c)};
lq=function(a){Zm().C=!!a.Go("isViewable");iq(a,"viewableChange",cea);"loading"===a.Go("getState")?iq(a,"ready",jq):kq(a)};
kq=function(a){"string"===typeof a.u.xj.AFMA_LIDAR?(a.va=!0,dea(a)):(a.u.compatibility=3,a.K="nc",a.Ch("w"))};
dea=function(a){a.oa=!1;var b=1==Hl(Zm().featureSet,"rmmt"),c=!!a.Go("isViewable");(b?!c:1)&&Rm().setTimeout(sn(524,function(){a.oa||(mq(a),tn(540,Error()),a.K="mt",a.Ch("w"))}),500);
eea(a);iq(a,a.u.xj.AFMA_LIDAR,nq)};
eea=function(a){var b=1==Hl(Zm().featureSet,"sneio"),c=void 0!==a.u.xj.AFMA_LIDAR_EXP_1,d=void 0!==a.u.xj.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.xj.AFMA_LIDAR_EXP_2=!0);c&&(a.u.xj.AFMA_LIDAR_EXP_1=!b)};
mq=function(a){a.Go("removeEventListener",a.u.xj.AFMA_LIDAR,nq);a.va=!1};
oq=function(a,b){if("loading"===a.Go("getState"))return new g.jg(-1,-1);b=a.Go(b);if(!b)return new g.jg(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.jg(-1,-1):new g.jg(a,b)};
jq=function(){try{var a=Pm(hq);a.Go("removeEventListener","ready",jq);kq(a)}catch(b){tn(541,b)}};
nq=function(a,b){try{var c=Pm(hq);c.oa=!0;var d=a?new Zl(a.y,a.x+a.width,a.y+a.height,a.x):new Zl(0,0,0,0);var e=un(),f=On();var h=new zn(e,f,c);h.i=d;h.volume=b;c.Kn(h)}catch(l){tn(542,l)}};
cea=function(a){var b=Zm(),c=Pm(hq);a&&!b.C&&(b.C=!0,c.Ka=!0,c.K&&c.Ch("w",!0))};
pq=function(){this.isInitialized=!1;this.i=null;this.C=new cq;this.u=null;var a={};this.K=(a.start=this.yS,a.firstquartile=this.tS,a.midpoint=this.vS,a.thirdquartile=this.zS,a.complete=this.rS,a.pause=this.KF,a.resume=this.EN,a.skip=this.xS,a.viewable_impression=this.Gn,a.mute=this.Nt,a.unmute=this.Nt,a.fullscreen=this.uS,a.exitfullscreen=this.sS,a.fully_viewable_audible_half_duration_impression=this.Gn,a.measurable_impression=this.Gn,a.abandon=this.KF,a.engagedview=this.Gn,a.impression=this.Gn,a.creativeview=
this.Gn,a.progress=this.Nt,a.custom_metric_viewable=this.Gn,a.bufferstart=this.KF,a.bufferfinish=this.EN,a);a={};this.S=(a.overlay_resize=this.wS,a.abandon=this.qE,a.close=this.qE,a.collapse=this.qE,a.overlay_unmeasurable_impression=function(b){return Zo(b,"overlay_unmeasurable_impression",On())},a.overlay_viewable_immediate_impression=function(b){return Zo(b,"overlay_viewable_immediate_impression",On())},a.overlay_unviewable_impression=function(b){return Zo(b,"overlay_unviewable_impression",On())},
a.overlay_viewable_end_of_session_impression=function(b){return Zo(b,"overlay_viewable_end_of_session_impression",On())},a);
Zm().u=3;fea(this);this.B=!1};
qq=function(a,b,c,d){b=a.Uw(null,d,!0,b);b.C=c;Oda([b],a.B);return b};
gea=function(a,b,c){qca(b);var d=a.u;g.jc(b,function(e){var f=g.Mm(e.criteria,function(h){var l=$da(h);if(null==l)h=null;else if(h=new Yda,null!=l.visible&&(h.i=l.visible/100),null!=l.audible&&(h.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=ib(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(h.B=l,h.C=-1):(h.B=-1,h.C=l);h.D=void 0===m?"tos":m}return h});
Jn(f,function(h){return null==h})||Ada(c,new Yp(e.id,e.event,f,d))})};
hea=function(a){a=a.u;return[new $p("viewable_impression",a),new Zp(a)]};
iea=function(){var a=[],b=Zm();a.push(Pm(Ap));Hl(b.featureSet,"mvp_lv")&&a.push(Pm(hq));b=[new eq,new gq];b.push(new mp(a));b.push(new qp(Ml));return b};
jea=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=un(),c=Zm(),d=Nn();vn=b;c.B=79463069;"o"!==a.i&&(Ip=Yl(Ml));if(Nca()){Dp.i.YI=0;Dp.i.yE=un()-b;var e=iea(),f=Pm(kp);f.u=e;lp(f,function(){rq()})?Dp.done||(Gp(),Rn(f.i.i,a),Ep()):d.B?rq():Ep()}else sq=!0}catch(h){throw gp.reset(),h;
}}};
uq=function(a){Dp.u.cancel();tq=a;Dp.done=!0};
vq=function(a){if(a.i)return a.i;var b=Pm(kp).i;if(b)switch(b.getName()){case "nis":a.i="n";break;case "gsv":a.i="m"}a.i||(a.i="h");return a.i};
wq=function(a,b,c){if(null==a.u)return b.St|=4,!1;a=Ko(a.u,c,b);b.St|=a;return 0==a};
rq=function(){var a=[new qp(Ml)],b=Pm(kp);b.u=a;lp(b,function(){uq("i")})?Dp.done||(Gp(),Ep()):uq("i")};
xq=function(a,b,c){if(!b.kb){var d=Zo(b,"start",On());a=a.C.i(d).i;var e={id:"lidarv"};e.r=c;e.v=Rp+"v";wi(a,function(f,h){return e[f]="mtos"==f||"tos"==f?h:encodeURIComponent(h)});
c=Xda();wi(c,function(f,h){return e[f]=encodeURIComponent(h)});
c="//pagead2.googlesyndication.com/pagead/gen_204?"+bo(ao(new $n,e));go(c);b.kb=!0}};
yq=function(a,b,c){Fp(Dp,[a],!On());Wo(a,c);4!=c&&Vo(a.va,c,a.kz);return Zo(a,b,On())};
fea=function(a){Wda(function(){var b=zq();null!=a.i&&(b.sdk=a.i);var c=Pm(kp);null!=c.i&&(b.avms=c.i.getName());return b})};
kea=function(a,b,c,d){if(a.B)var e=ep(gp,b);else e=fp(gp,c),null!==e&&e.Df!==b&&(a.Xu(e),e=null);e||(b=a.Uw(c,un(),!1,b),0==gp.u.length&&(Zm().B=79463069),jp([b]),e=b,e.C=vq(a),d&&(e.Va=d));return e};
lea=function(a){g.jc(gp.i,function(b){3==b.wg&&a.Xu(b)})};
Aq=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
zq=function(){var a=Nn(),b={};return b.sv=Rp,b["if"]=a.B?"1":"0",b.nas=String(gp.i.length),b};
Bq=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
Dq=function(a){return!!(1<<a&Cq)};
qea=function(){try{mea()}catch(d){}var a="a=1&b="+Cq+"&",b=[],c=99;g.jc(nea,function(d,e){var f=!1;try{f=d(Ml)}catch(h){}b[e/32>>>0]|=f<<e%32});
g.jc(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
c=105;g.jc(oea,function(d){var e="false";try{e=d(Ml)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
g.jc(pea,function(d){var e="";try{e=g.yc(d(Ml))}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
mea=function(){if(!Eq){var a=function(){Fq=!0;Ml.document.removeEventListener("webdriver-evaluate",a,!0)};
Ml.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){Gq=!0;Ml.document.removeEventListener("webdriver-evaluate-response",b,!0)};
Ml.document.addEventListener("webdriver-evaluate-response",b,!0);Eq=!0}};
rea=function(){this.blockSize=-1};
Hq=function(){this.blockSize=-1;this.blockSize=64;this.i=Array(4);this.C=Array(this.blockSize);this.B=this.u=0;this.reset()};
Iq=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};
Jq=function(){this.u=null};
Kq=function(a){return function(b){var c=new Hq;c.update(b+a);return jaa(c.digest()).slice(-8)}};
Lq=function(a,b){this.i=a;this.B=b};
Ko=function(a,b,c){var d=a.u();if("function"===typeof d){var e={};e=(e.sv=Rp,e.cb=Sp,e.e=sea(b),e);var f=Zo(c,b,On());g.Me(e,f);c.IO[b]=f;a=2==c.Fk()?fda(e).join("&"):a.B.i(e).i;try{return d(c.Df,a,b),0}catch(h){return 2}}else return 1};
sea=function(a){var b=Wp(a)?"custom_metric_viewable":a;a=Be(Xo,function(c){return c==b});
return Up[a]};
Mq=function(){pq.call(this);this.I=null;this.D=!1;this.C=new Jq};
tea=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.u&&Array.isArray(c)&&gea(a,c,b)};
Hga=function(a,b,c){var d=ep(gp,b);d||(d=c.opt_nativeTime||-1,d=qq(a,b,vq(a),d),c.opt_osdId&&(d.Va=c.opt_osdId));return d};
Iga=function(a,b,c){var d=ep(gp,b);d||(d=qq(a,b,"n",c.opt_nativeTime||-1));return d};
Jga=function(a,b){var c=ep(gp,b);c||(c=qq(a,b,"h",-1));return c};
Rga=function(a){Zm();switch(vq(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};
Oq=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Me(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.C.i(Vp("ol",d));if(void 0!==d)if(void 0!==Tp(d))if(sq)b=Vp("ue",d);else if(jea(a),"i"==tq)b=Vp("i",d),b["if"]=0;else if(b=a.pz(b,e))if(a.B&&3==b.wg)b="stopped";else{b:{"i"==tq&&(b.Os=!0,a.lG());c=e.opt_fullscreen;void 0!==c&&wo(b,!!c);var f;if(c=!Nn().u)(c=ub(g.Ab,"CrKey")||ub(g.Ab,"PlayStation")||ub(g.Ab,"Roku")||bda()||ub(g.Ab,"Xbox"))||(c=g.Ab,c=ub(c,"AppleTV")||ub(c,
"Apple TV")||ub(c,"CFNetwork")||ub(c,"tvOS")),c||(c=g.Ab,c=ub(c,"sdk_google_atv_x86")||ub(c,"Android TV")),c=!c;c&&(Rm(),c=0===Ql(ym));if(f=c){switch(b.Fk()){case 1:xq(a,b,"pv");break;case 2:a.ZF(b)}uq("pv")}c=d.toLowerCase();if(f=!f)f=Hl(Zm().featureSet,"ssmol")&&"loaded"===c?!1:g.Qb(Sga,c);if(f&&0==b.wg){"i"!=tq&&(Dp.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;yn=f="number"===typeof f?f:un();b.Iy=!0;var h=On();b.wg=1;b.xf={};b.xf.start=!1;b.xf.firstquartile=!1;b.xf.midpoint=!1;b.xf.thirdquartile=
!1;b.xf.complete=!1;b.xf.resume=!1;b.xf.pause=!1;b.xf.skip=!1;b.xf.mute=!1;b.xf.unmute=!1;b.xf.viewable_impression=!1;b.xf.measurable_impression=!1;b.xf.fully_viewable_audible_half_duration_impression=!1;b.xf.fullscreen=!1;b.xf.exitfullscreen=!1;b.yD=0;h||(b.Vg().S=f);Fp(Dp,[b],!h)}(f=b.Mq[c])&&Fo(b.hf,f);g.Qb(Tga,c)&&!b.Os&&b.hq&&0!=b.wg&&(f=b.hq,f.i||(f.i=Lo(f,b)));switch(b.Fk()){case 1:var l=Wp(c)?a.K.custom_metric_viewable:a.K[c];break;case 2:l=a.S[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=Vp(void 0,
c);g.Me(e,d);d=e;break b}d=void 0}3==b.wg&&(a.B?b.Md&&b.Md.nu():a.Xu(b));b=d}else b=Vp("nf",d);else b=void 0;else sq?b=Vp("ue"):(b=a.pz(b,e))?(d=Vp(),g.Me(d,Yo(b,!0,!1,!1)),b=d):b=Vp("nf");return"string"===typeof b?a.B&&"stopped"===b?Nq:a.C.i(void 0):a.C.i(b)};
Pq=function(a){var b={};return b.viewability=a.i,b.googleViewability=a.B,b.moatInit=a.D,b.moatViewability=a.I,b.integralAdsViewability=a.C,b.doubleVerifyViewability=a.u,b};
Qq=function(a,b,c){c=void 0===c?{}:c;a=Oq(Pm(Mq),b,c,a);return Pq(a)};
Rq=function(a,b){b=void 0===b?!1:b;var c=Pm(Mq).pz(a,{});c?Qo(c):b&&(a=Pm(Mq).Uw(null,un(),!1,a),a.wg=3,jp([a]))};
Vga=function(a){if(g.jb(g.pg(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.uk(a)}catch(c){return null!=g.Mb(Sq,function(d){return 0<a.search(d)})}return b.D.match(Uga)?!0:null!=g.Mb(Sq,function(c){return null!=a.match(c)})};
g.Tq=function(a,b){return a.replace(Wga,function(c,d){try{var e=He(b,d);if(null==e)return c;e=e.toString();if(""==e||!g.jb(g.pg(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
Wq=function(a){var b,c;g.ef.call(this);var d=this;this.I=this.u=0;this.uj=null!==a&&void 0!==a?a:{Of:function(e,f){return setTimeout(e,f)},
gi:clearTimeout};this.i=null!==(c=null===(b=window.navigator)||void 0===b?void 0:b.onLine)&&void 0!==c?c:!0;this.C=function(){return g.A(function(e){return g.x(e,Uq(d),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.I||Vq(this)};
Vq=function(a){a.I=a.uj.Of(function(){var b;return g.A(function(c){if(1==c.i)return a.i?(null===(b=window.navigator)||void 0===b?0:b.onLine)?c.fb(3):g.x(c,Uq(a),3):g.x(c,Uq(a),3);Vq(a);g.sa(c)})},3E4)};
Uq=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f;return g.A(function(h){switch(h.i){case 1:return d=window.AbortController?new window.AbortController:void 0,e=null===d||void 0===d?void 0:d.signal,f=!1,ta(h,2,3),d&&(a.u=a.uj.Of(function(){d.abort()},b||2E4)),g.x(h,fetch("/generate_204",{method:"HEAD",
signal:e}),5);case 5:f=!0;case 3:wa(h);a.D=void 0;a.u&&(a.uj.gi(a.u),a.u=0);f!==a.i&&(a.i=f,a.i?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(f);ya(h,0);break;case 2:va(h),f=!1,h.fb(3)}})})};
Xq=function(){this.data_=[];this.i=-1};
Xga=function(a){-1==a.i&&(a.i=Om(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.i};
g.Yq=function(a,b,c){g.E.call(this);this.i=null;this.C=!1;this.I=a;this.D=c;this.u=b||window;this.B=(0,g.D)(this.eP,this)};
g.Zq=function(a){a.isActive()||a.start()};
$q=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
ar=function(a){a=a.u;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.I=function(a,b,c){g.E.call(this);this.i=a;this.Uf=b||0;this.u=c;this.B=(0,g.D)(this.IH,this)};
g.br=function(a,b){a.isActive()||a.start(b)};
g.cr=function(a){a.stop();a.IH()};
g.dr=function(a){a.isActive()&&g.cr(a)};
er=function(a,b){this.i=a[g.B.Symbol.iterator]();this.u=b;this.B=0};
Yga=function(a,b){return new er(a,b)};
fr=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
gr=function(a){return a.classList?a.classList:fr(a).match(/\S+/g)||[]};
g.hr=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.ir=function(a,b){return a.classList?a.classList.contains(b):g.Qb(gr(a),b)};
g.L=function(a,b){if(a.classList)a.classList.add(b);else if(!g.ir(a,b)){var c=fr(a);g.hr(a,c+(0<c.length?" "+b:b))}};
g.jr=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.L(a,e)});
else{var c={};Array.prototype.forEach.call(gr(a),function(e){c[e]=!0});
Array.prototype.forEach.call(b,function(e){c[e]=!0});
b="";for(var d in c)b+=0<b.length?" "+d:d;g.hr(a,b)}};
g.kr=function(a,b){a.classList?a.classList.remove(b):g.ir(a,b)&&g.hr(a,Array.prototype.filter.call(gr(a),function(c){return c!=b}).join(" "))};
g.lr=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.kr(a,c)}):g.hr(a,Array.prototype.filter.call(gr(a),function(c){return!g.Qb(b,c)}).join(" "))};
g.M=function(a,b,c){c?g.L(a,b):g.kr(a,b)};
mr=function(a,b){var c=!g.ir(a,b);g.M(a,b,c)};
rr=function(a){if(a instanceof nr||a instanceof or||a instanceof pr)return a;if("function"==typeof a.yj)return new nr(function(){return qr(a)});
if("function"==typeof a[Symbol.iterator])return new nr(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Jg)return new nr(function(){return qr(a.Jg())});
throw Error("Not an iterator or iterable.");};
qr=function(a){if(!(a instanceof g.zo))return a;var b=!1;return{next:function(){for(var c;!b;)try{c=a.yj();break}catch(d){if(d!==g.Bo)throw d;b=!0}return{value:c,done:b}}}};
nr=function(a){this.i=a};
or=function(a){this.i=a};
pr=function(a){nr.call(this,function(){return a});
this.B=a};
g.sr=function(a,b){this.u={};this.i=[];this.Qo=this.size=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof g.sr)for(c=a.xs(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
ur=function(a){if(a.size!=a.i.length){for(var b=0,c=0;b<a.i.length;){var d=a.i[b];tr(a.u,d)&&(a.i[c++]=d);b++}a.i.length=c}if(a.size!=a.i.length){var e={};for(c=b=0;b<a.i.length;)d=a.i[b],tr(e,d)||(a.i[c++]=d,e[d]=1),b++;a.i.length=c}};
tr=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.vr=function(){g.ef.call(this);this.i=0;this.endTime=this.startTime=null};
Zga=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return"string"===typeof c?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"});
g.fm(a,"transition",b.join(","))};
wr=function(a,b,c,d,e){g.vr.call(this);this.u=a;this.I=b;this.K=c;this.D=d;this.S=Array.isArray(e)?e:[e]};
xr=function(a,b,c,d){return new wr(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
zr=function(a){yr();return Vf(a,null)};
g.Ar=function(a){yr();return Af(a)};
aha=function(a){a=vb(a);if(""==a)return null;var b=String(a.substr(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in $ga))return null}return a};
Br=function(a,b){a=g.B[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
Cr=function(a){var b=g.B.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Dr=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Cc&&10>document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)};
fha=function(a){if(!a)return Of;var b=document.createElement("div").style;bha(a).forEach(function(c){var d=g.Ig&&c in cha?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");gb(d,"--")||gb(d,"var")||(c=Dr(dha,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=aha(c),null!=c&&Dr(eha,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return aba(g.tf("Output of CSS sanitizer"),b.cssText||"")};
bha=function(a){g.Ma(a)?a=g.Xb(a):(a=g.ye(a),g.Ub(a,"cssText"));return a};
g.Fr=function(a){var b,c=b=0,d=!1;a=a.split(gha);for(var e=0;e<a.length;e++){var f=a[e];g.Er.test(f)?(b++,c++):hha.test(f)?d=!0:iha.test(f)?c++:jha.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.Gr=function(a,b,c,d,e,f,h,l){this.i=a;this.K=b;this.B=c;this.D=d;this.C=e;this.I=f;this.u=h;this.S=l};
g.Hr=function(a,b){if(0==b)return a.i;if(1==b)return a.u;var c=g.fg(a.i,a.B,b),d=g.fg(a.B,a.C,b);a=g.fg(a.C,a.u,b);c=g.fg(c,d,b);d=g.fg(d,a,b);return g.fg(c,d,b)};
Ir=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
kha=function(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\x0B")};
Jr=function(a){return(a=a.exec(g.Ab))?a[1]:""};
Kr=function(a){return 0<=g.xb(lha,a)};
g.Lr=function(a){g.E.call(this);this.I=1;this.B=[];this.C=0;this.i=[];this.u={};this.K=!!a};
mha=function(a,b,c){g.ih(function(){a.apply(b,c)})};
g.Mr=function(a){this.i=a};
Nr=function(a){this.i=a};
Or=function(a){this.data=a};
Pr=function(a){return void 0===a||a instanceof Or?a:new Or(a)};
Qr=function(a){this.i=a};
g.Rr=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Sa()||!!b&&b>g.Sa()};
g.Sr=function(a){this.i=a};
nha=function(){};
Tr=function(){};
Ur=function(a){this.i=a};
Vr=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.i=a};
Wr=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.i=a};
Yr=function(a,b){this.u=a;this.i=null;if(g.Cc&&!g.tc(9)){Xr||(Xr=new g.sr);this.i=Xr.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)),Xr.set(a,this.i));try{this.i.load(this.u)}catch(c){this.i=null}}};
Zr=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return oha[b]})};
$r=function(a){try{a.i.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
as=function(a,b){this.u=a;this.i=b+"::"};
g.bs=function(a){var b=new Vr;return b.isAvailable()?a?new as(b,a):b:null};
cs=function(a,b){this.i=a;this.u=b};
ds=function(a){this.i=[];if(a)a:{if(a instanceof ds){var b=a.xs();a=a.Mp();if(0>=this.i.length){for(var c=this.i,d=0;d<b.length;d++)c.push(new cs(b[d],a[d]));break a}}else b=g.ye(a),a=xe(a);for(d=0;d<b.length;d++)es(this,b[d],a[d])}};
es=function(a,b,c){var d=a.i;d.push(new cs(b,c));b=d.length-1;a=a.i;for(c=a[b];0<b;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};
fs=function(){ds.call(this)};
gs=function(){};
hs=function(){var a=g.Ba.apply(0,arguments);return 0===a.length?function(b){return b}:1===a.length?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,g.la(g.Ba.apply(0,arguments))))}})};
pha=function(){var a=g.Ba.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
c=b(c,d);var f={getState:c.getState,dispatch:function(h){return e.apply(null,[h].concat(g.la(g.Ba.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=hs.apply(null,g.la(d))(c.dispatch);return Object.assign(Object.assign({},c),{dispatch:e})}}};
is=function(){return Math.random().toString(36).substring(7).split("").join(".")};
qha=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:js}))throw Error('Reducer "'+b+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+is()}))throw Error('Reducer "'+
b+"\" returned undefined when probed with a random type. Don't try to handle "+(js+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})};
ks=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m}
function f(u){if("function"!==typeof u)throw Error("Expected the listener to be a function.");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var v=!0;p===n&&(p=n.slice());p.push(u);return function(){if(v){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
v=!1;p===n&&(p=n.slice());p.splice(p.indexOf(u),1);n=null}}}
function h(u){if("object"!==typeof u||null===u)var v=!1;else{for(v=u;null!==Object.getPrototypeOf(v);)v=Object.getPrototypeOf(v);v=Object.getPrototypeOf(u)===v}if(!v)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof u.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,u)}finally{q=!1}v=n=p;for(var y=0;y<v.length;y++)(0,v[y])();
return u}
if("function"===typeof b&&"function"===typeof c||"function"===typeof c&&"function"===typeof d)throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");"function"===typeof b&&"undefined"===typeof c&&(c=b,b=void 0);if("undefined"!==typeof c){if("function"!==typeof c)throw Error("Expected the enhancer to be a function.");return c(ks)(a,b)}if("function"!==typeof a)throw Error("Expected the reducer to be a function.");
var l=a,m=b,n=[],p=n,q=!1;h({type:js});a={};var t=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(u){if("function"!==typeof u)throw Error("Expected the nextReducer to be a function.");l=u;h({type:rha});return t},a[ls]=function(){var u={};
return u.subscribe=function(v){function y(){v.next&&v.next(e())}
if("object"!==typeof v||null===v)throw new TypeError("Expected the observer to be an object.");y();return{unsubscribe:f(y)}},u[ls]=function(){return this},u},a);
return t};
ms=function(a){rd.call(this,a,-1,sha)};
uha=function(){return{2:Ud,4:Td,7:Vd,9:Vd,10:Vd,11:Wd,12:Vd,13:Ud,14:[Caa,ns,tha],15:Sd,16:Sd,17:Vd,1:Wd,3:Sd,5:Sd,6:Sd,8:Td}};
ns=function(a){rd.call(this,a)};
tha=function(){return{1:Td,2:Td,3:Td,4:Td,5:Vd}};
vha=function(a){var b=a.split(""),c=[-1512047255,1020814366,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
-1361548671,function(d,e){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f},
-1427257144,function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 91:d=44;continue;case 123:d=65;break;case 65:d-=18;continue;case 58:d=96;continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
-1090105451,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
-627094650,-1320836334,1296023621,-1268798736,null,b,1816471771,-750777030,1706285582,-145914520,211684300,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
700035332,function(d){d.reverse()},
178911638,"7iFv0",1112298470,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
-1646077303,-857666356,null,562942066,-671394633,null,58039516,function(d,e,f){var h=f.length;d.forEach(function(l,m,n){this.push(n[m]=f[(f.indexOf(l)-f.indexOf(this[m])+m+h--)%f.length])},e.split(""))},
-1628334556,-296171745,b,363030319,701629700,1102504353,-1562551475,1728814458,1985354572,-138609948,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)},
276964325,b,-441378274];c[13]=c;c[29]=c;c[32]=c;try{c[4](c[14],c[16]),c[4](c[37],c[5]),c[8](c[32],c[9]),c[2](c[13]),c[44](c[35],c[36]),c[3](c[34],c[37]),c[14](c[1],c[24],c[42]()),c[26](c[19]),c[20](c[13],c[23]),c[0](c[43],c[44]),c[16](c[43],c[11]),c[4](c[9],c[3]),c[16](c[28],c[17]),c[35](c[45]),c[33](c[47]),c[13](c[22]),c[33](c[1],c[40]),c[39](c[11],c[5]),c[21](c[42],c[14]),c[21](c[27],c[46]),c[9](c[11],c[41]),c[21](c[42],c[43]),c[39](c[26],c[10]),c[47](c[9],c[7]),c[17](c[19],c[14]),c[24](c[34],c[39]),
c[23](c[34]),c[1](c[14],c[27]),c[38](c[27],c[45]),c[44](c[2],c[39]),c[33](c[21],c[14]),c[19](c[29],c[38]),c[19](c[13],c[28]),c[25](c[13]),c[24](c[47],c[32]),c[7](c[29],c[36]),c[31](c[29],c[23]),c[19](c[39],c[45]),c[19](c[29],c[33]),c[24](c[47],c[10]),c[19](c[14],c[17])}catch(d){return"enhanced_except__pMBgez-_w8_"+a}return b.join("")};
os=function(a){this.i=a};
ps=function(){os.apply(this,arguments)};
qs=function(){ps.apply(this,arguments)};
rs=function(){ps.apply(this,arguments)};
ts=function(){ps.apply(this,arguments)};
us=function(){ps.apply(this,arguments)};
vs=function(){os.apply(this,arguments)};
ws=function(){ps.apply(this,arguments)};
xs=function(){ps.apply(this,arguments)};
ys=function(){ps.apply(this,arguments)};
zs=function(){ps.apply(this,arguments)};
As=function(){ps.apply(this,arguments)};
Bs=function(){ps.apply(this,arguments)};
Cs=function(){ps.apply(this,arguments)};
Ds=function(){ps.apply(this,arguments)};
Es=function(){ps.apply(this,arguments)};
Fs=function(){ps.apply(this,arguments)};
Gs=function(){ps.apply(this,arguments)};
Hs=function(){ps.apply(this,arguments)};
Is=function(){ps.apply(this,arguments)};
Js=function(){ps.apply(this,arguments)};
Ks=function(){ps.apply(this,arguments)};
Ls=function(){ps.apply(this,arguments)};
Ms=function(){ps.apply(this,arguments)};
Ns=function(){ps.apply(this,arguments)};
Os=function(){return g.Ha("yt.ads.biscotti.lastId_")||""};
Ps=function(a){g.Ga("yt.ads.biscotti.lastId_",a,void 0)};
Qs=function(a){rd.call(this,a)};
Rs=function(){Qs.apply(this,arguments)};
Ts=function(){var a=arguments;1<a.length?Ss[a[0]]=a[1]:1===a.length&&Object.assign(Ss,a[0])};
g.N=function(a,b){return a in Ss?Ss[a]:b};
Us=function(a){var b=Ss.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.O=function(a){a=Vs(a);return"string"===typeof a&&"false"===a?!1:!!a};
Ws=function(a,b){a=Vs(a);return void 0===a&&void 0!==b?b:Number(a||0)};
Vs=function(a){var b=g.N("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.N("EXPERIMENT_FLAGS",{})[a]};
Xs=function(){var a=[],b=g.N("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.N("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
wha=function(a){Ys.forEach(function(b){return b(a)})};
$s=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.Zs(b)}}:a};
g.Zs=function(a,b,c,d){var e=g.Ha("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.N("ERRORS",[]),e.push([a,"ERROR",b,c,d]),Ts("ERRORS",e));wha(a)};
at=function(a,b,c,d){var e=g.Ha("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.N("ERRORS",[]),e.push([a,"WARNING",b,c,d]),Ts("ERRORS",e))};
ct=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1==f.length&&f[0]||2==f.length)try{var h=bt(f[0]||""),l=bt(f[1]||"");h in c?Array.isArray(c[h])?Yb(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(q){var m=q,n=f[0],p=String(ct);m.args=[{key:n,value:f[1],query:a,method:xha==p?"unchanged":p}];yha.hasOwnProperty(n)||at(m)}}return c};
dt=function(a){var b=[];g.qe(a,function(c,d){var e=mg(d),f;Array.isArray(c)?f=c:f=[c];g.jc(f,function(h){""==h?b.push(e):b.push(e+"="+mg(h))})});
return b.join("&")};
g.et=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return ct(a,"&")};
ft=function(a){a=a.split(",");return a=a.map(function(b){return g.et(b)})};
g.gt=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),g.et(1<a.length?a[1]:a[0])):{}};
it=function(a,b){return ht(a,b||{},!0)};
jt=function(a,b){return ht(a,b||{},!1)};
ht=function(a,b,c){var d=a.split("#",2);a=d[0];d=1<d.length?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=g.et(e[1]||"");for(var f in b)if(c||!ze(e,f))e[f]=b[f];return g.Ei(a,e)+d};
kt=function(a){if(!b)var b=window.location.href;var c=g.si(1,a),d=g.ti(a);c&&d?(a=a.match(ri),b=b.match(ri),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.ti(b)==d&&(Number(g.si(4,b))||null)==(Number(g.si(4,a))||null):!0;return a};
lt=function(a){a||(a=document.location.href);a=g.si(1,a);return null!==a&&"https"==a};
mt=function(a){a=g.ti(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
bt=function(a){return a&&a.match(zha)?a:ng(a)};
Mt=function(a){var b=Kt;a=void 0===a?Os():a;var c=Object,d=c.assign,e=Lt(b);var f=b.i;try{var h=f.screenX;var l=f.screenY}catch(z){}try{var m=f.outerWidth;var n=f.outerHeight}catch(z){}try{var p=f.innerWidth;var q=f.innerHeight}catch(z){}try{var t=f.screenLeft;var u=f.screenTop}catch(z){}try{p=f.innerWidth,q=f.innerHeight}catch(z){}try{var v=f.screen.availWidth;var y=f.screen.availTop}catch(z){}f=[t,u,h,l,v,y,m,n,p,q];h=Dn(!1,b.i.top);l={};m=new Xq;g.B.SVGElement&&g.B.document.createElementNS&&m.set(0);
n=Bca();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);g.B.crypto&&g.B.crypto.subtle&&m.set(3);g.B.TextDecoder&&g.B.TextEncoder&&m.set(4);m=Xga(m);b=(l.bc=m,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Ql(b.u),l.wgl=!!Ml.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
Lt=function(a){var b={};b.dt=Aha;b.flash="0";a:{try{var c=a.i.top.location.href}catch(p){a=2;break a}a=c?c===a.u.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Ml:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Ml.screen)?void 0:f.height;var h;b.u_w=null==(h=Ml.screen)?void 0:h.width;var l;b.u_ah=null==(l=Ml.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Ml.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Ml.screen)?void 0:
n.colorDepth}catch(p){}return b};
Bha=function(){if(!Nt)return null;var a=Nt();return"open"in a?a:null};
g.Pt=function(a){switch(Ot(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Ot=function(a){return a&&"status"in a?a.status:-1};
g.Qt=function(a,b){"function"===typeof a&&(a=$s(a));return window.setTimeout(a,b)};
Rt=function(a,b){"function"===typeof a&&(a=$s(a));return window.setInterval(a,b)};
g.St=function(a){window.clearTimeout(a)};
Tt=function(a){window.clearInterval(a)};
Cha=function(a,b){b=void 0===b?{}:b;var c=kt(a),d=g.O("web_ajax_ignore_global_headers_if_set"),e;for(e in Ut){var f=g.N(Ut[e]);!f||!c&&!Vt(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||Vt(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||Vt(a,"X-YouTube-Time-Zone")){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}h&&(b["X-YouTube-Time-Zone"]=h)}if(c||Vt(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=dt(Mt(void 0));return b};
Wt=function(a,b){var c=g.ti(a);g.O("debug_handle_relative_url_for_query_forward_killswitch")||c||!kt(a)||(c=document.location.hostname);var d=qi(g.si(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=g.et(b),f={};g.jc(Dha,function(h){e[h]&&(f[h]=e[h])});
return jt(a,f)};
Vt=function(a){return g.ti(a)?!1:!0};
g.Yt=function(a,b){var c=b.format||"JSON";a=Eha(a,b);var d=Fha(a,b),e=!1,f=Xt(a,function(m){if(!e){e=!0;l&&g.St(l);var n=g.Pt(m),p=null,q=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||q||t)p=Gha(a,c,m,b.convertToSafeHtml);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};q=b.context||g.B;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}},
b.method,d,b.headers,b.responseType,b.withCredentials);
if(b.onTimeout&&0<b.timeout){var h=b.onTimeout;var l=g.Qt(function(){e||(e=!0,f.abort(),g.St(l),h.call(b.context||g.B,f))},b.timeout)}return f};
Eha=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.N("XSRF_FIELD_NAME",void 0);if(b=b.urlParams)b[c]&&delete b[c],a=it(a,b);return a};
Fha=function(a,b){var c=g.N("XSRF_FIELD_NAME",void 0),d=g.N("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.postParams,h=g.N("XSRF_FIELD_NAME",void 0),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.ti(a)&&!b.withCredentials&&g.ti(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=g.et(e),g.Me(e,f),e=b.postBodyFormat&&"JSON"==b.postBodyFormat?JSON.stringify(e):g.Ci(e));f=e||
f&&!g.De(f);!Zt&&f&&"POST"!=b.method&&(Zt=!0,g.Zs(Error("AJAX request with postData should use POST")));return e};
Gha=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,at(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]}'\n"===f.substring(0,5)&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?Hha(a):null)e={},g.jc(a.getElementsByTagName("*"),function(h){e[h.tagName]=Iha(h)})}d&&$t(e);
return e};
$t=function(a){if(g.Na(a))for(var b in a)"html_content"==b||ib(b,"_html")?a[b]=g.Yf(g.tf("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):$t(a[b])};
Hha=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
Iha=function(a){var b="";g.jc(a.childNodes,function(c){b+=c.nodeValue});
return b};
Xt=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&$s(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=Bha();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.O("debug_forward_web_query_parameters")&&(a=Wt(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);h&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=Cha(a,e))for(var n in e)m.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(c=!1);c&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
m.send(d);return m};
bu=function(a,b){var c=g.Je(b),d;return g.yh(new nh(function(e,f){c.onSuccess=function(h){g.Pt(h)?e(new Jha(h)):f(new au("Request failed, status="+Ot(h),"net.badstatus",h))};
c.onError=function(h){f(new au("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new au("Request timed out","net.timeout",h))};
d=g.Yt(a,c)}),function(e){e instanceof Dh&&d.abort();
return sh(e)})};
g.cu=function(a,b,c,d){function e(l,m,n){return g.yh(l,function(p){if(0>=m||403===Ot(p.xhr))return sh(new au("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0<h?Math.min(h,p):p;return f(n).then(function(){return e(bu(a,b),m-1,q)})})}
function f(l){return new nh(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(bu(a,b),c-1,d)};
au=function(a,b,c){Va.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
Jha=function(a){this.xhr=a};
du=function(){this.u=0;this.i=null};
eu=function(a){var b=new du;a=void 0===a?null:a;b.u=2;b.i=void 0===a?null:a;return b};
fu=function(a){var b=new du;a=void 0===a?null:a;b.u=1;b.i=void 0===a?null:a;return b};
g.iu=function(a,b,c,d,e){gu||hu.set(""+a,b,{Sz:c,path:"/",domain:void 0===d?"youtube.com":d,cX:void 0===e?!1:e})};
g.ju=function(a,b){if(!gu)return hu.get(""+a,b)};
g.ku=function(a,b,c){gu||hu.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
lu=function(){if(!hu.isEnabled())return!1;if(!hu.isEmpty())return!0;hu.set("TESTCOOKIESENABLED","1",{Sz:60});if("1"!==hu.get("TESTCOOKIESENABLED"))return!1;hu.remove("TESTCOOKIESENABLED");return!0};
mu=function(){var a=/Chrome\/(\d+)/.exec(g.Ab);return a?parseFloat(a[1]):NaN};
nu=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Ab);if(!a)return NaN;var b=[];a=g.r(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),0<=c&&b.push(c);return parseFloat(b.join("."))};
pu=function(){return ou("android")&&ou("chrome")&&!(ou("trident/")||ou("edge/"))&&!ou("cobalt")};
qu=function(){return ou("armv7")||ou("aarch64")||ou("android")};
g.ru=function(){return ou("cobalt")};
tu=function(){return ou("cobalt")&&ou("appletv")};
uu=function(){return ou("(ps3; leanback shell)")||ou("ps3")&&g.ru()};
vu=function(){return ou("(ps4; leanback shell)")||ou("ps4")&&g.ru()};
g.wu=function(){return g.ru()&&(ou("ps4 vr")||ou("ps4 pro vr"))};
xu=function(){var a=/WebKit\/([0-9]+)/.exec(g.Ab);return!!(a&&600<=parseInt(a[1],10))};
yu=function(){var a=/WebKit\/([0-9]+)/.exec(g.Ab);return!!(a&&602<=parseInt(a[1],10))};
zu=function(){return ou("iemobile")||ou("windows phone")&&ou("edge")};
Bu=function(){return Au&&ou("applewebkit")&&!ou("version")&&(!ou("safari")||ou("gsa/"))};
Du=function(){return g.Cu&&ou("version/")};
Eu=function(){return ou("smart-tv")&&ou("samsung")};
ou=function(a){var b=g.Ab;return b?0<=b.toLowerCase().indexOf(a):!1};
Fu=function(){if(Zh())return!0;var a=g.N("INNERTUBE_CLIENT_NAME");return!a||"WEB"!==a&&"MWEB"!==a||Bu()||Du()?!0:(a=g.ju("CONSENT"))?a.startsWith("YES+"):!0};
Hu=function(a){Va.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Gu;this.isTimeout=a instanceof au&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Dh};
Gu=function(){Va.call(this,"Biscotti ID is missing from server")};
Kha=function(){if(g.O("disable_biscotti_fetch_entirely_for_all_web_clients"))return sh(Error("Biscotti id fetching has been disabled entirely."));if(!Fu())return sh(Error("User has not consented - not fetching biscotti id."));if("1"==He(g.N("PLAYER_VARS",{}),"privembed",!1))return sh(Error("Biscotti ID is not available in private embed mode"));Iu||(Iu=g.yh(bu("//googleads.g.doubleclick.net/pagead/id",Ju).then(Ku),function(a){return Lu(2,a)}));
return Iu};
Ku=function(a){a=a.xhr.responseText;if(!gb(a,")]}'"))throw new Gu;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new Gu;a=a.id;Ps(a);Iu=fu(a);Mu(18E5,2);return a};
Lu=function(a,b){b=new Hu(b);Ps("");Iu=eu(b);0<a&&Mu(12E4,a-1);throw b;};
Mu=function(a,b){g.Qt(function(){g.yh(bu("//googleads.g.doubleclick.net/pagead/id",Ju).then(Ku,function(c){return Lu(b,c)}),g.Ia)},a)};
Nu=function(){try{var a=g.Ha("yt.ads.biscotti.getId_");return a?a():Kha()}catch(b){return sh(b)}};
Pu=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Ou+"VisibilityState";if(b in a)return a[b]};
Qu=function(a,b){var c;Jn(a,function(d){c=b[d];return!!c});
return c};
Ru=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in Lha||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;
if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.i=a.pageX;this.u=a.pageY}}catch(e){}};
Su=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.i=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.u=a.clientY+b}};
Mha=function(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Be(Tu,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Na(e[4])&&g.Na(d)&&g.Ie(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.Wu=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Mha(a,b,c,d);if(e)return e;e=++Uu.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Ru(l);if(!Xg(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Ru(l);
l.currentTarget=a;return c.call(a,l)};
h=$s(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Vu()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);Tu[e]=[a,b,c,h,d];return e};
Nha=function(a,b){var c=document.body||document;return g.Wu(c,"click",function(d){var e=Xg(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.Xu=function(a){a&&("string"==typeof a&&(a=[a]),g.jc(a,function(b){if(b in Tu){var c=Tu[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Vu()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Tu[b]}}))};
g.Yu=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
Zu=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;return b&&b.length?b[0]:g.Yu(a)};
$u=function(a){a=a||window.event;var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b};
av=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&("number"!==typeof b&&(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),"number"!==typeof c&&(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));return new g.hg(b,c)};
g.bv=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.cv=function(a){a=a||window.event;return!1===a.returnValue||a.iL&&a.iL()};
g.dv=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
Oha=function(a){return Nha(a,function(b){return g.ir(b,"ytp-ad-has-logging-urls")})};
g.ev=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.Wu(a,b,function(){g.Xu(e);c.apply(a,arguments)},d)};
fv=function(a){for(var b in Tu)Tu[b][0]==a&&g.Xu(b)};
gv=function(a){this.K=a;this.i=null;this.C=0;this.I=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.oa=g.Wu(window,"mousemove",(0,g.D)(this.X,this));this.S=Rt((0,g.D)(this.Z,this),25)};
hv=function(){};
jv=function(a,b,c){return iv(b,0,c)};
Pha=function(a,b){iv(a,2,b)};
kv=function(){hv.apply(this,arguments)};
lv=function(){kv.i||(kv.i=new kv);return kv.i};
g.mv=function(){return!!g.Ha("yt.scheduler.instance")};
iv=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ha("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Qt(a,c||0)};
nv=function(a){var b=g.Ha("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
qv=function(){var a={},b=void 0===a.GW?!1:a.GW;a=void 0===a.ER?!0:a.ER;if(null==g.Ha("_lact",window)){var c=parseInt(g.N("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ga("_lact",c,window);g.Ga("_fact",c,window);-1==c&&ov();g.Wu(document,"keydown",ov);g.Wu(document,"keyup",ov);g.Wu(document,"mousedown",ov);g.Wu(document,"mouseup",ov);b?g.Wu(window,"touchmove",function(){pv("touchmove",200)},{passive:!0}):(g.Wu(window,"resize",function(){pv("resize",200)}),a&&g.Wu(window,"scroll",function(){pv("scroll",
200)}));
new gv(function(){pv("mouse",100)});
g.Wu(document,"touchstart",ov,{passive:!0});g.Wu(document,"touchend",ov,{passive:!0})}};
pv=function(a,b){rv[a]||(rv[a]=!0,g.tv.Of(function(){ov();rv[a]=!1},b))};
ov=function(){null==g.Ha("_lact",window)&&(qv(),g.Ha("_lact",window));var a=Date.now();g.Ga("_lact",a,window);-1==g.Ha("_fact",window)&&g.Ga("_fact",a,window);(a=g.Ha("ytglobal.ytUtilActivityCallback_"))&&a()};
uv=function(){var a=g.Ha("_lact",window),b;null==a?b=-1:b=Math.max(Date.now()-a,0);return b};
g.wv=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.ru())a&&(a=g.Df(g.Hf(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.Uf(Wf(a)).toString(),a=mg(g.ji(a))),g.jb(a)||(a=Mg("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),vg(a).body.appendChild(a)));else if(e)Xt(a,b,"POST",e,d);else if(g.N("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Xt(a,b,"GET","",d);else{b:{try{var f=new pca({url:a});if(f.B&&f.u||f.C){var h=qi(g.si(5,a));var l=!(!h||!h.endsWith("/aclk")||
"1"!==Ii(a,"ri"));break b}}catch(m){}l=!1}l?vv(a)?(b&&b(),c=!0):c=!1:c=!1;c||Qha(a,b)}};
xv=function(a,b,c){c=void 0===c?"":c;vv(a,c)?b&&b():g.wv(a,b,void 0,void 0,c)};
vv=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
Qha=function(a,b){var c=new Image,d=""+Rha++;yv[d]=c;c.onload=c.onerror=function(){b&&yv[d]&&b();delete yv[d]};
c.src=a};
g.Dv=function(a,b,c){var d=g.zv();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){Av[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.Bv[a]?h():g.Qt(h,0)}catch(l){g.Zs(l)}},c);
Av[e]=!0;Cv[a]||(Cv[a]=[]);Cv[a].push(e);return e}return 0};
g.Ev=function(a){var b=g.zv();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.jc(a,function(c){b.unsubscribeByKey(c);delete Av[c]}))};
g.Fv=function(a,b){var c=g.zv();return c?c.publish.apply(c,arguments):!1};
Tha=function(a){var b=g.zv();if(b)if(b.clear(a),a)Sha(a);else for(var c in Cv)Sha(c)};
g.zv=function(){return g.B.ytPubsubPubsubInstance};
Sha=function(a){Cv[a]&&(a=Cv[a],g.jc(a,function(b){Av[b]&&delete Av[b]}),a.length=0)};
Xha=function(a,b){if("log_event"===a.endpoint){var c=Uha(a),d=Gv.get(c)||[];Gv.set(c,d);d.push(a.payload);b&&(Hv=new b);a=Ws("tvhtml5_logging_max_batch")||Ws("web_logging_max_batch")||100;b=(0,g.P)();d.length>=a?Iv({writeThenSend:!0},g.O("flush_only_full_queue")?c:void 0):10<=b-Vha&&(Wha(),Vha=b)}};
Yha=function(a,b){if("log_event"===a.endpoint){var c=Uha(a),d=new Map;d.set(c,[a.payload]);b&&(Hv=new b);return new nh(function(e){Hv&&Hv.isReady()?Jv(d,e,{bypassNetworkless:!0},!0):e()})}};
Uha=function(a){var b="";if(a.vD)b="visitorOnlyApprovedKey";else if(a.cttAuthInfo){b=a.cttAuthInfo;var c={};b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId);Kv[a.cttAuthInfo.token]=c;b=a.cttAuthInfo.token}return b};
Iv=function(a,b){a=void 0===a?{}:a;new nh(function(c){g.St(Lv);g.St(Mv);Mv=0;if(Hv&&Hv.isReady())if(void 0!==b){var d=new Map,e=Gv.get(b)||[];d.set(b,e);Jv(d,c,a);Gv.delete(b)}else Jv(Gv,c,a),Gv.clear();else Wha(),c()})};
Wha=function(){g.O("web_gel_timeout_cap")&&!Mv&&(Mv=g.Qt(function(){Iv({writeThenSend:!0})},6E4));
g.St(Lv);var a=g.N("LOGGING_BATCH_TIMEOUT",Ws("web_gel_debounce_ms",1E4));g.O("shorten_initial_gel_batch_timeout")&&Zha&&(a=$ha);Lv=g.Qt(function(){Iv({writeThenSend:!0})},a)};
Jv=function(a,b,c,d){var e=Hv;c=void 0===c?{}:c;var f=Math.round((0,g.P)()),h=a.size;a=g.r(a);for(var l=a.next();!l.done;l=a.next()){var m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=g.Ke({context:g.Nv(e.config_||g.Ov())});m.events=n;(n=Kv[l])&&aia(m,l,n);delete Kv[l];l="visitorOnlyApprovedKey"===l;bia(m,f,l);g.O("always_send_and_write")&&(c.writeThenSend=!1);g.O("send_beacon_before_gel")&&window.navigator&&window.navigator.sendBeacon&&!c.writeThenSend&&xv("/generate_204");g.Pv(e,"log_event",
m,cia(c,l,function(){h--;h||b()},function(){h--;
h||b()},d));
Zha=!1}};
cia=function(a,b,c,d,e){return{retry:!0,onSuccess:c,onError:d,WL:a,vD:b,zca:!!e}};
bia=function(a,b,c){a.requestTimeMs=String(b);g.O("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.N("EVENT_ID",void 0))&&((c=g.N("BATCH_CLIENT_COUNTER",void 0)||0)||(c=Math.floor(Math.random()*dia/2)),c++,c>dia&&(c=1),Ts("BATCH_CLIENT_COUNTER",c),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
aia=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}]};
Rv=function(a,b,c,d){d=void 0===d?{}:d;if(g.O("lr_drop_other_and_business_payloads")){if(eia[a]||fia[a])return}else if(g.O("lr_drop_other_payloads")&&eia[a])return;var e={},f=Math.round(d.timestamp||(0,g.P)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=uv();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.O("log_sequence_info_on_gel_web")&&d.Bm&&(a=e.context,b=d.Bm,Qv[b]=b in Qv?Qv[b]+1:0,a.sequence={index:Qv[b],groupKey:b},d.GR&&delete Qv[d.Bm]);(d.dX?Yha:Xha)({endpoint:"log_event",
payload:e,cttAuthInfo:d.cttAuthInfo,vD:d.vD},c)};
gia=function(a){var b=this;this.i=void 0;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.i=c})};
Sv=function(){if(!g.B.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.B.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.B.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.B.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.B.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
g.Uv=function(){this.i=g.N("ALT_PREF_COOKIE_NAME","PREF");this.u=g.N("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.ju(this.i);if(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(Tv[d]=c.toString())}}};
g.Vv=function(a,b){return!!((hia("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
Wv=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
Xv=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
hia=function(a){a=void 0!==Tv[a]?Tv[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
iia=function(){var a=g.B.navigator;return a?a.connection:void 0};
kia=function(){var a=iia();if(a){var b=jia[a.type||"unknown"]||"CONN_UNKNOWN";a=jia[a.effectiveType||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===b&&"CONN_UNKNOWN"!==a&&(b=a);if("CONN_UNKNOWN"!==b)return b;if("CONN_UNKNOWN"!==a)return a}};
mia=function(){var a=iia();if(null!==a&&void 0!==a&&a.effectiveType)return lia.hasOwnProperty(a.effectiveType)?lia[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
nia=function(){return"INNERTUBE_API_KEY"in Ss&&"INNERTUBE_API_VERSION"in Ss};
g.Ov=function(){return{innertubeApiKey:g.N("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.N("INNERTUBE_API_VERSION",void 0),YK:g.N("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Bz:g.N("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),HS:g.N("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.N("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),aL:g.N("INNERTUBE_CONTEXT_HL",void 0),ZK:g.N("INNERTUBE_CONTEXT_GL",void 0),bL:g.N("INNERTUBE_HOST_OVERRIDE",void 0)||"",dL:!!g.N("INNERTUBE_USE_THIRD_PARTY_AUTH",
!1),cL:!!g.N("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:g.N("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}};
g.Nv=function(a){var b={client:{hl:a.aL,gl:a.ZK,clientName:a.Bz,clientVersion:a.innertubeContextClientVersion,configInfo:a.YK}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.B.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=g.N("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=Xs();0<c.length&&(b.request={internalExperimentFlags:c});c=a.Bz;if(("WEB"===c||"MWEB"===c||1===c||2===c)&&b){var d;b.client.mainAppWebInfo=null!=(d=b.client.mainAppWebInfo)?
d:{};b.client.mainAppWebInfo.webDisplayMode=Sv()}d=a.Bz;if(("WEB_REMIX"===d||76===d)&&!g.O("music_web_display_mode_killswitch")&&b){var e;b.client.UL=null!=(e=b.client.UL)?e:{};b.client.UL.webDisplayMode=Sv()}var f;if(g.O("web_log_memory_total_kbytes")&&(null==(f=g.B.navigator)?0:f.deviceMemory)){var h;e=null==(h=g.B.navigator)?void 0:h.deviceMemory;b&&(b.client.memoryTotalKbytes=""+1E6*e)}a.appInstallData&&b&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=a.appInstallData);
(a=kia())&&b&&(b.client.connectionType=a);g.O("web_log_effective_connection_type")&&(a=mia())&&b&&(b.client.effectiveConnectionType=a);g.N("DELEGATED_SESSION_ID")&&!g.O("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.N("DELEGATED_SESSION_ID")});a=Object;h=a.assign;e=b.client;f={};d=g.r(Object.entries(g.et(g.N("DEVICE",""))));for(c=d.next();!c.done;c=d.next()){var l=g.r(c.value);c=l.next().value;l=l.next().value;"cbrand"===c?f.deviceMake=l:"cmodel"===c?f.deviceModel=l:"cbr"===c?f.browserName=l:
"cbrver"===c?f.browserVersion=l:"cos"===c?f.osName=l:"cosver"===c?f.osVersion=l:"cplatform"===c&&(f.platform=l)}b.client=h.call(a,e,f);return b};
oia=function(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||g.N("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.eJ||g.N("AUTHORIZATION"))||(a?b="Bearer "+g.Ha("gapi.auth.getToken")().uca:b=di([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.N("SESSION_INDEX",0),g.O("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.N("DELEGATED_SESSION_ID")));return d};
Yv=function(a){var b;(b=g.bs(a))||(a=new Yr(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.i=(a=b)?new Qr(a):null;this.u=document.domain||window.location.hostname};
$v=function(){var a;return null===(a=Zv())||void 0===a?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
pia=function(){var a={};for(aw=new bw(void 0===a.handleError?cw:a.handleError,void 0===a.logEvent?g.dw:a.logEvent);0<ew.length;)switch(a=ew.shift(),a.type){case "ERROR":aw.wj(a.payload);break;case "EVENT":aw.logEvent(a.eventType,a.payload)}};
gw=function(a){fw||(aw?aw.wj(a):(ew.push({type:"ERROR",payload:a}),10<ew.length&&ew.shift()))};
hw=function(a,b){fw||(aw?aw.logEvent(a,b):(ew.push({type:"EVENT",eventType:a,payload:b}),10<ew.length&&ew.shift()))};
g.iw=function(a){var b=g.Ba.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.la(b))};
kw=function(){try{return jw(),!0}catch(a){return!1}};
jw=function(a){if(void 0!==g.N("DATASYNC_ID",void 0))return g.N("DATASYNC_ID",void 0);throw new g.iw("Datasync ID not set",void 0===a?"unknown":a);};
lw=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
mw=function(a){return a.substr(0,a.indexOf(":"))||a};
nw=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?qia[a]:c;d=void 0===d?ria[a]:d;e=void 0===e?sia[a]:e;g.iw.call(this,c,Object.assign({name:"YtIdbKnownError",isSw:void 0===self.document,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.i=e;Object.setPrototypeOf(this,nw.prototype)};
ow=function(a,b){nw.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},qia.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,ow.prototype)};
pw=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=a;this.objectStore=b;Object.setPrototypeOf(this,pw.prototype)};
qw=function(a,b,c,d){b=mw(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof nw)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new nw("QUOTA_EXCEEDED",a);if(g.nj&&"UnknownError"===e.name)return new nw("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof pw)return new nw("MISSING_INDEX",Object.assign(Object.assign({},a),{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&tia.some(function(f){return e.message.includes(f)}))return new nw("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new nw("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign(Object.assign({},a),{name:"IdbError",tA:e.name})];e.level="WARNING";return e};
g.rw=function(a,b,c){var d=$v();return new nw("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null===d||void 0===d?void 0:d.hasSucceededOnce}})};
uia=function(a){if(!a)throw Error();throw a;};
via=function(a){return a};
tw=function(a){this.i=a};
uw=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.r(d.onRejected);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
function c(e){if("PENDING"===d.state.status){d.state={status:"FULFILLED",value:e};e=g.r(d.i);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
var d=this;this.state={status:"PENDING"};this.i=[];this.onRejected=[];a=a.i;try{a(c,b)}catch(e){b(e)}};
wia=function(a,b,c,d,e){try{if("FULFILLED"!==a.state.status)throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof uw?vw(a,b,f,d,e):d(f)}catch(h){e(h)}};
xia=function(a,b,c,d,e){try{if("REJECTED"!==a.state.status)throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof uw?vw(a,b,f,d,e):d(f)}catch(h){e(h)}};
vw=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof uw?vw(a,b,f,d,e):d(f)},function(f){e(f)})};
yia=function(a,b,c){function d(){c(a.error);f()}
function e(){b(a.result);f()}
function f(){try{a.removeEventListener("success",e),a.removeEventListener("error",d)}catch(h){}}
a.addEventListener("success",e);a.addEventListener("error",d)};
zia=function(a){return new Promise(function(b,c){yia(a,b,c)})};
ww=function(a){return new uw(new tw(function(b,c){yia(a,b,c)}))};
xw=function(a,b){return new uw(new tw(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
Aia=function(a,b){this.request=a;this.cursor=b};
yw=function(a){return ww(a).then(function(b){return b?new Aia(a,b):null})};
Bia=function(a,b){this.i=a;this.options=b;this.transactionCount=0;this.B=Math.round((0,g.P)());this.u=!1};
Aw=function(a,b,c){a=a.i.createObjectStore(b,c);return new zw(a)};
Bw=function(a,b){a.i.objectStoreNames.contains(b)&&a.i.deleteObjectStore(b)};
Dia=function(a,b){return Cw(a,["captions"],{mode:"readonly",Lc:!0},function(c){return Cia(c.objectStore("captions"),b,void 0)})};
Eia=function(a,b){return Cw(a,["LogsRequestsStore"],{mode:"readwrite",Lc:!0},function(c){return Dw(c.objectStore("LogsRequestsStore"),b,void 0)})};
Cw=function(a,b,c,d){var e,f,h,l,m,n,p,q,t,u,v,y;return g.A(function(z){switch(z.i){case 1:var C={mode:"readonly",Lc:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?C.mode=c:Object.assign(C,c);e=C;a.transactionCount++;f=e.Lc?3:1;h=0;case 2:if(l){z.fb(3);break}h++;m=Math.round((0,g.P)());ta(z,4);n=a.i.transaction(b,e.mode);C=new Ew(n);C=Fia(C,d);return g.x(z,C,6);case 6:return p=z.u,q=Math.round((0,g.P)()),Gia(a,m,q,h,void 0,b.join(),e),z.return(p);case 4:t=va(z);u=Math.round((0,g.P)());
v=qw(t,a.i.name,b.join(),a.i.version);if((y=v instanceof nw&&!v.i)||h>=f)Gia(a,m,u,h,v,b.join(),e),l=v;z.fb(2);break;case 3:return z.return(Promise.reject(l))}})};
Gia=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof nw&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&hw("QUOTA_EXCEEDED",{dbName:mw(a.i.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof nw&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),hw("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),Hia(a,!1,d,f,b,h.tag),gw(e)):Hia(a,!0,d,f,b,
h.tag)};
Hia=function(a,b,c,d,e,f){hw("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
zw=function(a){this.i=a};
Fw=function(a,b,c){a.i.createIndex(b,c,{unique:!1})};
Iia=function(a,b){return Gw(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
Cia=function(a,b,c){return"getAll"in IDBObjectStore.prototype?ww(a.i.getAll(b,c)):Jia(a,b,c)};
Jia=function(a,b,c){var d=[];return Gw(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
Lia=function(a){return"getAllKeys"in IDBObjectStore.prototype?ww(a.i.getAllKeys(void 0,void 0)):Kia(a)};
Kia=function(a){var b=[];return Mia(a,{query:void 0},function(c){b.push(c.mz());return c.continue()}).then(function(){return b})};
Dw=function(a,b,c){return ww(a.i.put(b,c))};
Gw=function(a,b,c){a=a.i.openCursor(b.query,b.direction);return Hw(a).then(function(d){return xw(d,c)})};
Mia=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.i.openKeyCursor(d,b):a.i.openCursor(d,b);return yw(a).then(function(e){return xw(e,c)})};
Ew=function(a){var b=this;this.i=a;this.B=new Map;this.u=!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.u){e=nw;for(var f=b.i.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");h.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:b.i.db.name,mode:b.i.mode});d(e)}})})};
Fia=function(a,b){var c=new Promise(function(d,e){try{b(a).then(function(f){d(f)}).catch(e)}catch(f){e(f),a.abort()}});
return Promise.all([c,a.done]).then(function(d){return g.r(d).next().value})};
Nia=function(a){this.i=a};
Iw=function(a,b){return"getAll"in IDBIndex.prototype?ww(a.i.getAll(b,void 0)):Oia(a,b)};
Oia=function(a,b){var c=[];return Jw(a,{query:b},function(d){c.push(d.getValue());return d.continue()}).then(function(){return c})};
Jw=function(a,b,c){a=a.i.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return Hw(a).then(function(d){return xw(d,c)})};
Pia=function(a,b){this.request=a;this.cursor=b};
Hw=function(a){return ww(a).then(function(b){return b?new Pia(a,b):null})};
Qia=function(a,b,c){return new Promise(function(d,e){function f(){t||(t=new Bia(h.result,{closed:q}));return t}
var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.vX,p=c.upgrade,q=c.closed,t;h.addEventListener("upgradeneeded",function(u){try{if(null===u.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");u.dataLoss&&"none"!==u.dataLoss&&hw("IDB_DATA_CORRUPTED",{reason:u.dataLossMessage||"unknown reason",dbName:mw(a)});var v=f(),y=new Ew(h.transaction);
p&&p(v,function(z){return u.oldVersion<z&&u.newVersion>=z},y);
y.done.catch(function(z){e(z)})}catch(z){e(z)}});
h.addEventListener("success",function(){var u=h.result;m&&u.addEventListener("versionchange",function(){m(f())});
u.addEventListener("close",function(){hw("IDB_UNEXPECTEDLY_CLOSED",{dbName:mw(a),dbVersion:u.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
Ria=function(a,b,c){c=void 0===c?{}:c;return Qia(a,b,c)};
Kw=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.A(function(h){if(1==h.i)return ta(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.x(h,zia(c),4);
if(2!=h.i)return ua(h,0);f=va(h);throw qw(f,a,"",-1);})};
Sia=function(a){return new Promise(function(b){Pha(function(){b()},a)})};
Lw=function(a,b){this.name=a;this.options=b;this.C=!0;this.D=0;this.u=500};
Tia=function(a,b){return new nw("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
Mw=function(a,b){if(!b)throw g.rw("openWithToken",mw(a.name));return a.open()};
Uia=function(a,b){var c;return g.A(function(d){if(1==d.i)return g.x(d,Mw(Nw,b),2);c=d.u;return d.return(Cw(c,["databases"],{Lc:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return Dw(f,a).then(function(){})})}))})};
Ow=function(a,b){var c;return g.A(function(d){if(1==d.i)return a?g.x(d,Mw(Nw,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})};
Via=function(a,b){var c,d;return g.A(function(e){return 1==e.i?(c=[],g.x(e,Mw(Nw,b),2)):3!=e.i?(d=e.u,g.x(e,Cw(d,["databases"],{Lc:!0,mode:"readonly"},function(f){c.length=0;return Gw(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return h.continue()})}),3)):e.return(c)})};
Wia=function(a){return Via(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)};
Xia=function(){var a,b,c;return g.A(function(d){switch(d.i){case 1:a=$v();if(null===a||void 0===a?0:a.hasSucceededOnce)return d.return(!0);if(Au&&xu()&&!yu()||g.Pw)return d.return(!1);try{if(b=self,!(b.indexedDB&&b.IDBIndex&&b.IDBKeyRange&&b.IDBObjectStore))return d.return(!1)}catch(e){return d.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return d.return(!1);ta(d,2);c={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.x(d,Uia(c,Qw),4);case 4:return g.x(d,Ow("yt-idb-test-do-not-use",Qw),5);case 5:return d.return(!0);case 2:return va(d),d.return(!1)}})};
Yia=function(){if(void 0!==Rw)return Rw;fw=!0;return Rw=Xia().then(function(a){fw=!1;var b,c;null!==(b=Zv())&&void 0!==b&&b.i&&(b=$v(),b={hasSucceededOnce:(null===b||void 0===b?void 0:b.hasSucceededOnce)||a},null===(c=Zv())||void 0===c?void 0:c.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0));return a})};
Sw=function(){return g.Ha("ytglobal.idbToken_")||void 0};
g.Tw=function(){var a=Sw();return a?Promise.resolve(a):Yia().then(function(b){(b=b?Qw:void 0)&&g.Ga("ytglobal.idbToken_",b,void 0);return b})};
Zia=function(a){if(!kw())throw a=new nw("AUTH_INVALID",{dbName:a}),gw(a),a;var b=jw();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
$ia=function(a,b,c,d){var e,f,h,l,m,n;return g.A(function(p){switch(p.i){case 1:return f=null!==(e=Error().stack)&&void 0!==e?e:"",g.x(p,g.Tw(),2);case 2:h=p.u;if(!h)throw l=g.rw("openDbImpl",a,b),g.O("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),gw(l),l;lw(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Zia(a);ta(p,3);return g.x(p,Uia(m,h),5);case 5:return g.x(p,Ria(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=va(p),ta(p,7),g.x(p,
Ow(m.actualName,h),9);case 9:ua(p,8);break;case 7:va(p);case 8:throw n;}})};
aja=function(a,b,c){c=void 0===c?{}:c;return $ia(a,b,!1,c)};
bja=function(a,b,c){c=void 0===c?{}:c;return $ia(a,b,!0,c)};
cja=function(a,b){b=void 0===b?{}:b;var c,d;return g.A(function(e){if(1==e.i)return g.x(e,g.Tw(),2);if(3!=e.i){c=e.u;if(!c)return e.return();lw(a);d=Zia(a);return g.x(e,Kw(d.actualName,b),3)}return g.x(e,Ow(d.actualName,c),0)})};
dja=function(a,b,c){a=a.map(function(d){return g.A(function(e){return 1==e.i?g.x(e,Kw(d.actualName,b),2):g.x(e,Ow(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
eja=function(){var a=void 0===a?{}:a;var b,c;return g.A(function(d){if(1==d.i)return g.x(d,g.Tw(),2);if(3!=d.i){b=d.u;if(!b)return d.return();lw("LogsDatabaseV2");return g.x(d,Wia(b),3)}c=d.u;return g.x(d,dja(c,a,b),0)})};
fja=function(a,b){b=void 0===b?{}:b;var c;return g.A(function(d){if(1==d.i)return g.x(d,g.Tw(),2);if(3!=d.i){c=d.u;if(!c)return d.return();lw(a);return g.x(d,Kw(a,b),3)}return g.x(d,Ow(a,c),0)})};
Uw=function(a){var b,c,d,e,f,h,l,m;this.oe=!1;this.potentialEsfErrorCounter=this.i=0;this.handleError=function(){};
this.Hs=function(){};
this.now=Date.now;this.Yu=!1;this.dO=null!==(b=a.dO)&&void 0!==b?b:100;this.GN=null!==(c=a.GN)&&void 0!==c?c:1;this.AN=null!==(d=a.AN)&&void 0!==d?d:2592E6;this.rN=null!==(e=a.rN)&&void 0!==e?e:12E4;this.FN=null!==(f=a.FN)&&void 0!==f?f:5E3;this.Tc=null!==(h=a.Tc)&&void 0!==h?h:void 0;this.Jy=!!a.Jy;this.zy=null!==(l=a.zy)&&void 0!==l?l:.1;this.DA=null!==(m=a.DA)&&void 0!==m?m:10;a.handleError&&(this.handleError=a.handleError);a.Hs&&(this.Hs=a.Hs);a.Yu&&(this.Yu=a.Yu);this.ob=a.ob;this.uj=a.uj;this.bf=
a.bf;this.We=a.We;this.zm=a.zm;this.IF=a.IF;this.hF=a.hF;this.Tc&&(!this.ob||this.ob("networkless_logging"))&&gja(this)};
gja=function(a){return g.A(function(b){if(1==b.i)return!a.Tc||a.Yu?b.return():a.Jy&&Math.random()<=a.zy?g.x(b,a.bf.lR(a.Tc),2):b.fb(2);hja(a);a.We.Ce()&&a.wx();a.We.Qa(a.IF,a.wx.bind(a));a.We.Qa(a.hF,a.rJ.bind(a));a.oe=!0;g.sa(b)})};
Vw=function(a,b){var c,d;return g.A(function(e){switch(e.i){case 1:if(!a.Tc)throw c=g.rw("immediateSend"),c;if(void 0===b.id){e.fb(2);break}return g.x(e,a.bf.XS(b.id,a.Tc),3);case 3:(d=e.u)?b=d:a.Hs(Error("The request cannot be found in the database."));case 2:if(ija(a,b,a.AN)){e.fb(4);break}a.Hs(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.fb(5);break}return g.x(e,a.bf.Yr(b.id,a.Tc),5);case 5:return e.return();case 4:b.skipRetry||(b=jja(a,b));if(!b){e.fb(0);
break}if(!b.skipRetry||void 0===b.id){e.fb(8);break}return g.x(e,a.bf.Yr(b.id,a.Tc),8);case 8:a.zm(b.url,b.options,!!b.skipRetry),g.sa(e)}})};
jja=function(a,b){if(!a.Tc)throw g.rw("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var h;return g.A(function(l){switch(l.i){case 1:h=kja(f);if(!(a.ob&&a.ob("nwl_consider_error_code")&&h||a.ob&&!a.ob("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.DA)){l.fb(2);break}if(!a.We.Am){l.fb(3);break}return g.x(l,a.We.Am(),3);case 3:if(a.We.Ce()){l.fb(2);break}c(e,f);if(!a.ob||!a.ob("nwl_consider_error_code")||void 0===(null===b||void 0===b?void 0:b.id)){l.fb(6);break}return g.x(l,a.bf.dG(b.id,a.Tc,!1),6);case 6:return l.return();case 2:if(a.ob&&
a.ob("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.DA)return l.return();a.potentialEsfErrorCounter++;if(void 0===(null===b||void 0===b?void 0:b.id)){l.fb(8);break}return b.sendCount<a.GN?g.x(l,a.bf.dG(b.id,a.Tc),12):g.x(l,a.bf.Yr(b.id,a.Tc),8);case 12:a.uj.Of(function(){a.We.Ce()&&a.wx()},a.FN);
case 8:c(e,f),g.sa(l)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){return g.A(function(h){if(1==h.i)return void 0===(null===b||void 0===b?void 0:b.id)?h.fb(2):g.x(h,a.bf.Yr(b.id,a.Tc),2);a.We.Xn&&a.ob&&a.ob("vss_network_hint")&&a.We.Xn(!0);d(e,f);g.sa(h)})};
return b};
ija=function(a,b,c){b=b.timestamp;return a.now()-b>=c?!1:!0};
hja=function(a){if(!a.Tc)throw g.rw("retryQueuedRequests");a.bf.xK("QUEUED",a.Tc).then(function(b){b&&!ija(a,b,a.rN)?a.uj.Of(function(){return g.A(function(c){if(1==c.i)return void 0===b.id?c.fb(2):g.x(c,a.bf.dG(b.id,a.Tc),2);hja(a);g.sa(c)})}):a.We.Ce()&&a.wx()})};
Ww=function(a,b){a.JO&&!a.We.Ce()?a.JO(b):a.handleError(b)};
kja=function(a){var b;return(a=null===(b=null===a||void 0===a?void 0:a.error)||void 0===b?void 0:b.code)&&400<=a&&599>=a?!1:!0};
Xw=function(a,b){this.version=a;this.args=b};
Yw=function(a,b){this.topic=a;this.i=b};
$w=function(a,b){var c=Zw();c&&c.publish.call(c,a.toString(),a,b)};
mja=function(a,b,c){var d=Zw();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Ha("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(ax[e])try{if(h&&a instanceof Yw&&a!=f)try{var m=a.i,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Qo){var p=new m;m.Qo=p.version}var q=m.Qo}catch(t){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.Xb(n.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+t.message,t;}b.call(c||window,h)}catch(t){g.Zs(t)}},lja[a.toString()]?g.mv()?g.tv.Of(l):g.Qt(l,0):l())});
ax[e]=!0;bx[a.toString()]||(bx[a.toString()]=[]);bx[a.toString()].push(e);return e};
dx=function(a,b,c){var d=mja(a,function(e){b.apply(c,arguments);cx(d)},c);
return d};
cx=function(a){var b=Zw();b&&("number"===typeof a&&(a=[a]),g.jc(a,function(c){b.unsubscribeByKey(c);delete ax[c]}))};
Zw=function(){return g.Ha("ytPubsub2Pubsub2Instance")};
ex=function(a,b){Lw.call(this,a,b);this.options=b;lw(a)};
nja=function(a,b){var c;return function(){c||(c=new ex(a,b));return c}};
fx=function(a,b){return nja(a,b)};
oja=function(){if(gx)return gx();var a={};gx=fx("LogsDatabaseV2",{iq:(a.LogsRequestsStore={Sm:2},a),hx:!1,upgrade:function(b,c,d){c(2)&&Aw(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.i.indexNames.contains("newRequest")&&d.i.deleteIndex("newRequest"),Fw(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&Bw(b,"sapisid");c(9)&&Bw(b,"SWHealthLog")},
version:9});return gx()};
hx=function(a){return Mw(oja(),a)};
ix=function(a,b){var c,d,e,f;return g.A(function(h){if(1==h.i)return c={startTime:(0,g.P)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.x(h,hx(b),2);if(3!=h.i)return d=h.u,e=Object.assign(Object.assign({},a),{options:JSON.parse(JSON.stringify(a.options)),interface:g.N("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.x(h,Eia(d,e),3);f=h.u;c.DX=(0,g.P)();pja(c);return h.return(f)})};
qja=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){if(1==n.i)return c={startTime:(0,g.P)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.x(n,hx(b),2);if(3!=n.i)return d=n.u,e=g.N("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.P)()],l=IDBKeyRange.bound(f,h),m=void 0,g.x(n,Cw(d,["LogsRequestsStore"],{mode:"readwrite",Lc:!0},function(p){return Jw(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(q){q.getValue()&&(m=q.getValue(),"NEW"===
a&&(m.status="QUEUED",q.update(m)))})}),3);
c.DX=(0,g.P)();pja(c);return n.return(m)})};
rja=function(a,b){var c;return g.A(function(d){if(1==d.i)return g.x(d,hx(b),2);c=d.u;return d.return(Cw(c,["LogsRequestsStore"],{mode:"readwrite",Lc:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",Dw(f,h).then(function(){return h})})}))})};
jx=function(a,b,c){c=void 0===c?!0:c;var d;return g.A(function(e){if(1==e.i)return g.x(e,hx(b),2);d=e.u;return e.return(Cw(d,["LogsRequestsStore"],{mode:"readwrite",Lc:!0},function(f){var h=f.objectStore("LogsRequestsStore");return h.get(a).then(function(l){return l?(l.status="NEW",c&&(l.sendCount+=1),Dw(h,l).then(function(){return l})):uw.resolve(void 0)})}))})};
kx=function(a,b){var c;return g.A(function(d){if(1==d.i)return g.x(d,hx(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})};
sja=function(a){var b,c;return g.A(function(d){if(1==d.i)return g.x(d,hx(a),2);b=d.u;c=(0,g.P)()-2592E6;return g.x(d,Cw(b,["LogsRequestsStore"],{mode:"readwrite",Lc:!0},function(e){return Gw(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
tja=function(){g.A(function(a){return g.x(a,eja(),0)})};
pja=function(a){g.O("nwl_csi_killswitch")||.01>=Math.random()&&$w("nwl_transaction_latency_payload",a)};
vja=function(a){return Mw(uja(),a)};
wja=function(a){var b,c;g.A(function(d){if(1==d.i)return g.x(d,vja(a),2);b=d.u;c=(0,g.P)()-2592E6;return g.x(d,Cw(b,["SWHealthLog"],{mode:"readwrite",Lc:!0},function(e){return Gw(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
xja=function(a){var b;return g.A(function(c){if(1==c.i)return g.x(c,vja(a),2);b=c.u;return g.x(c,b.clear("SWHealthLog"),0)})};
mx=function(){lx||(lx=new Yv("yt.offline"));return lx};
yja=function(a){if(g.O("offline_error_handling")){var b=mx().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);mx().set("errors",b,2592E3,!0)}};
nx=function(){if(g.O("offline_error_handling")){var a=mx().get("errors",!0);if(a){for(var b in a)if(a[b]){var c=new g.iw(b,"sent via offline_errors");c.name=a[b].name;c.stack=a[b].stack;c.level=a[b].level;g.Zs(c)}mx().set("errors",{},2592E3,!0)}}};
ox=function(){g.ef.call(this);this.K=0;this.S=this.C=!1;this.u=this.hE();g.O("use_shared_nsm")?(Wq.i||(Wq.i=new Wq(g.tv)),this.i=Wq.i):(zja(this),Aja(this))};
Bja=function(){if(!ox.i){var a=g.Ha("yt.networkStatusManager.instance")||new ox;g.Ga("yt.networkStatusManager.instance",a,void 0);ox.i=a}return ox.i};
Aja=function(a){window.addEventListener("online",function(){return g.A(function(b){if(1==b.i)return g.x(b,a.Am(),2);a.S&&nx();g.sa(b)})})};
zja=function(a){window.addEventListener("offline",function(){return g.A(function(b){return g.x(b,a.Am(),0)})})};
Cja=function(a){a.K=jv(0,function(){return g.A(function(b){if(1==b.i)return a.u?a.hE()||!a.C?b.fb(3):g.x(b,a.Am(),3):g.x(b,a.Am(),3);Cja(a);g.sa(b)})},Dja)};
px=function(a){a=void 0===a?{}:a;g.ef.call(this);var b=this;this.u=this.K=0;this.C="ytnetworkstatus-offline";this.D="ytnetworkstatus-online";g.O("use_shared_nsm")&&(this.C="networkstatus-offline",this.D="networkstatus-online");this.i=Bja();var c=g.Ha("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.i);c&&c(a.YJ);a.Qz&&!g.O("use_shared_nsm")&&(c=g.Ha("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.i))&&c();if(c=g.Ha("yt.networkStatusManager.instance.listen").bind(this.i))a.JA?
(this.JA=a.JA,c(this.D,function(){Eja(b,"publicytnetworkstatus-online");g.O("use_shared_nsm")&&a.Qz&&nx()}),c(this.C,function(){Eja(b,"publicytnetworkstatus-offline")})):(c(this.D,function(){b.dispatchEvent("publicytnetworkstatus-online");
g.O("use_shared_nsm")&&a.Qz&&nx()}),c(this.C,function(){b.dispatchEvent("publicytnetworkstatus-offline")}))};
Eja=function(a,b){a.JA?a.u?(g.tv.gi(a.K),a.K=g.tv.Of(function(){a.I!==b&&(a.dispatchEvent(b),a.I=b,a.u=(0,g.P)())},a.JA-((0,g.P)()-a.u))):(a.dispatchEvent(b),a.I=b,a.u=(0,g.P)()):a.dispatchEvent(b)};
qx=function(){Uw.call(this,{bf:{lR:sja,Yr:kx,xK:qja,XS:rja,dG:jx,set:ix},We:Fja(),handleError:g.Zs,Hs:at,zm:Gja,now:g.P,JO:yja,uj:lv(),IF:"publicytnetworkstatus-online",hF:"publicytnetworkstatus-offline",Jy:!0,zy:.1,DA:Ws("potential_esf_error_limit",10),ob:g.O,Yu:!kw()});this.u=new Dj;this.Jy&&Math.random()<=this.zy&&this.Tc&&wja(this.Tc);g.O("networkless_immediately_drop_sw_health_store")&&Hja(this);g.O("networkless_immediately_drop_all_requests")&&tja();fja("LogsDatabaseV2")};
rx=function(){var a=g.Ha("yt.networklessRequestController.instance");a||(a=new qx,g.Ga("yt.networklessRequestController.instance",a,void 0),g.O("networkless_logging")&&g.Tw().then(function(b){return g.A(function(c){if(1==c.i)return a.Tc=b,g.x(c,gja(a),2);a.u.resolve();g.sa(c)})}));
return a};
Hja=function(a){var b;g.A(function(c){if(!a.Tc)throw b=g.rw("clearSWHealthLogsDb"),b;return c.return(xja(a.Tc).catch(function(d){a.handleError(d)}))})};
Gja=function(a,b,c){var d;if(null===(d=b.postParams)||void 0===d?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.P)());c&&0===Object.keys(b).length?g.wv(a):g.Yt(a,b)};
Fja=function(){sx||(sx=new px({Qz:!0,YJ:!0}));return sx};
Ija=function(a,b){function c(d){var e=tx().Ce();if(!ux()||!d||e&&g.O("vss_networkless_bypass_write"))vx(a,b);else{var f={url:a,options:b,timestamp:(0,g.P)(),status:"NEW",sendCount:0};ix(f,d).then(function(h){f.id=h;tx().Ce()&&wx(f)}).catch(function(h){wx(f);
xx(h)})}}
b=void 0===b?{}:b;g.O("skip_is_supported_killswitch")?g.Tw().then(function(d){c(d)}):c(Sw())};
yx=function(a,b,c){function d(e){if(ux()&&e){var f={url:a,options:b,timestamp:(0,g.P)(),status:"NEW",sendCount:0};g.O("nwl_skip_retry")&&(f.skipRetry=c);if(tx().Ce()||g.O("nwl_aggressive_send_then_write")&&!f.skipRetry){if(!f.skipRetry){var h=b.onError?b.onError:function(){};
b.onError=function(l,m){return g.A(function(n){if(1==n.i)return g.x(n,ix(f,e).catch(function(p){xx(p)}),2);
h(l,m);g.sa(n)})}}vx(a,b,f.skipRetry)}else ix(f,e).catch(function(l){vx(a,b,g.O("nwl_skip_retry")&&c);
xx(l)})}else vx(a,b,g.O("nwl_skip_retry")&&c)}
b=void 0===b?{}:b;g.O("skip_is_supported_killswitch")?g.Tw().then(function(e){d(e)}):d(Sw())};
zx=function(a,b){function c(d){if(ux()&&d){var e={url:a,options:b,timestamp:(0,g.P)(),status:"NEW",sendCount:0},f=!1,h=b.onSuccess?b.onSuccess:function(){};
e.options.onSuccess=function(l,m){void 0!==e.id?kx(e.id,d):f=!0;g.O("vss_network_hint")&&tx().Xn(!0);h(l,m)};
vx(e.url,e.options);ix(e,d).then(function(l){e.id=l;f&&kx(e.id,d)}).catch(function(l){xx(l)})}else vx(a,b)}
b=void 0===b?{}:b;g.O("skip_is_supported_killswitch")?g.Tw().then(function(d){c(d)}):c(Sw())};
Jja=function(){var a=Sw();if(!a)throw g.rw("throttleSend");Ax||(Ax=g.tv.Of(function(){var b;return g.A(function(c){if(1==c.i)return g.x(c,qja("NEW",a),2);if(3!=c.i)return b=c.u,b?g.x(c,wx(b),3):(g.tv.gi(Ax),Ax=0,c.return());Ax&&(Ax=0,Jja());g.sa(c)})},100))};
wx=function(a){var b,c,d;return g.A(function(e){switch(e.i){case 1:b=Sw();if(!b)throw c=g.rw("immediateSend"),c;if(void 0===a.id){e.fb(2);break}return g.x(e,rja(a.id,b),3);case 3:(d=e.u)?a=d:at(Error("The request cannot be found in the database."));case 2:var f=a.timestamp;if(!(2592E6<=(0,g.P)()-f)){e.fb(4);break}at(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.fb(5);break}return g.x(e,kx(a.id,b),5);case 5:return e.return();case 4:a.skipRetry||(a=Kja(a));
f=a;var h,l;if(null===(l=null===(h=null===f||void 0===f?void 0:f.options)||void 0===h?void 0:h.postParams)||void 0===l?0:l.requestTimeMs)f.options.postParams.requestTimeMs=Math.round((0,g.P)());a=f;if(!a){e.fb(0);break}if(!a.skipRetry||void 0===a.id){e.fb(8);break}return g.x(e,kx(a.id,b),8);case 8:vx(a.url,a.options,!!a.skipRetry),g.sa(e)}})};
Kja=function(a){var b=Sw();if(!b)throw g.rw("updateRequestHandlers");var c=a.options.onError?a.options.onError:function(){};
a.options.onError=function(e,f){var h;return g.A(function(l){switch(l.i){case 1:h=kja(f);if(!(g.O("nwl_consider_error_code")&&h||!g.O("nwl_consider_error_code")&&Lja()<=Ws("potential_esf_error_limit",10))){l.fb(2);break}return g.x(l,tx().Am(),3);case 3:if(tx().Ce()){l.fb(2);break}c(e,f);if(!g.O("nwl_consider_error_code")||void 0===(null===a||void 0===a?void 0:a.id)){l.fb(5);break}return g.x(l,jx(a.id,b,!1),5);case 5:return l.return();case 2:if(g.O("nwl_consider_error_code")&&!h&&Lja()>Ws("potential_esf_error_limit",
10))return l.return();g.Ha("ytNetworklessLoggingInitializationOptions")&&Bx.potentialEsfErrorCounter++;Cx++;if(void 0===(null===a||void 0===a?void 0:a.id)){l.fb(7);break}return 1>a.sendCount?g.x(l,jx(a.id,b),11):g.x(l,kx(a.id,b),7);case 11:g.tv.Of(function(){tx().Ce()&&Jja()},5E3);
case 7:c(e,f),g.sa(l)}})};
var d=a.options.onSuccess?a.options.onSuccess:function(){};
a.options.onSuccess=function(e,f){return g.A(function(h){if(1==h.i)return void 0===(null===a||void 0===a?void 0:a.id)?h.fb(2):g.x(h,kx(a.id,b),2);g.O("vss_network_hint")&&tx().Xn(!0);d(e,f);g.sa(h)})};
return a};
tx=function(){if(g.O("use_new_nwl"))return Fja();Dx||(Dx=new px({Qz:!0,YJ:!0}));return Dx};
xx=function(a){tx().Ce()?g.Zs(a):yja(a)};
vx=function(a,b,c){c&&0===Object.keys(b).length?g.wv(a):g.Yt(a,b)};
ux=function(){return g.Ha("ytNetworklessLoggingInitializationOptions")?Bx.isNwlInitialized:!1};
Lja=function(){return g.Ha("ytNetworklessLoggingInitializationOptions")?Bx.potentialEsfErrorCounter:Cx};
g.Ex=function(a){this.config_=null;a?this.config_=a:nia()&&(this.config_=g.Ov())};
g.Pv=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.WL.bypassNetworkless?(f.method="POST",d.WL.writeThenSend?g.O("use_new_nwl")?rx().writeThenSend(n,f):Ija(n,f):g.O("use_new_nwl")?rx().sendAndWrite(n,f):zx(n,f)):(f.method="POST",f.postParams||(f.postParams={}),g.Yt(n,f))}catch(q){if("InvalidAccessError"==q.name)at(Error("An extension is blocking network request."));else throw q;}}
!g.N("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&at(new g.iw("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.iw("innertube xhrclient not ready",b,c,d),g.Zs(a),a;var f={headers:{"Content-Type":"application/json"},method:"POST",postParams:c,postBodyFormat:"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)},
onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)},
onError:function(p,q){if(d.onError)d.onError(q)},
onFetchError:function(p){if(d.onError)d.onError(p)},
timeout:d.timeout,withCredentials:!0};c="";var h=a.config_.bL;h&&(c=h);h=oia(a.config_.dL||!1,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var l={alt:"json"},m=a.config_.cL&&h;g.O("omit_innertube_api_key_for_bearer_auth_header")&&(m=m&&h.startsWith("Bearer"));m||(l.key=a.config_.innertubeApiKey);var n=it(""+c+b,l);g.O("use_new_nwl")||ux()?Yia().then(function(p){e(p)}):e(!1)};
g.dw=function(a,b,c){c=void 0===c?{}:c;var d=g.Ex;g.N("ytLoggingEventsDefaultDisabled",!1)&&g.Ex==g.Ex&&(d=null);Rv(a,b,d,c)};
Oja=function(){var a=void 0===a?window.location.href:a;if(g.O("kevlar_disable_theme_param"))return null;var b=qi(g.si(5,a));if(Mja(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.gt(a).theme;return Nja.get(c)||null}catch(d){}return null};
Mja=function(a){var b=Pja.map(function(c){return c.toLowerCase()});
return!g.O("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1};
Rja=function(a,b,c){a&&(a.dataset?a.dataset[Qja(b)]=String(c):a.setAttribute("data-"+b,c))};
Sja=function(a){return a?a.dataset?a.dataset[Qja("loaded")]:a.getAttribute("data-loaded"):null};
Qja=function(a){return Tja[a]||(Tja[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
Fx=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()};
Ix=function(a){var b;g.Gx()?Hx()==a&&(b=document):b=a;return b&&(a=Qu(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
Jx=function(a){return g.Mb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Uja=function(){var a=document;return g.Mb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.Gx=function(){return!!Qu(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
Hx=function(a){a=void 0===a?!1:a;var b=Qu(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
Kx=function(a){g.E.call(this);this.D=[];this.Sa=a||this};
Lx=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
g.Mx=function(a,b){for(;a.D.length;){var c=a.D.pop(),d=void 0;b&&Vja()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
g.Q=function(a){a=void 0===a?!1:a;g.E.call(this);this.Vd=new g.Lr(a);g.H(this,this.Vd)};
Nx=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
Ox=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.Qx=function(a,b,c,d){g.Q.call(this);this.i=!!b;this.I=a;this.X=c||a;this.S=!!d;this.C=new Kx(this);g.H(this,this.C);this.D=this.K=null;this.B=this.u=!1;b&&(g.Ig&&a.setAttribute("draggable","true"),a.style.touchAction="none");Px(this)};
Rx=function(a,b,c){a.C.T(a.X,b,c,void 0,!a.i)};
Sx=function(a){g.Mx(a.C,!a.i)};
Px=function(a){a.D=null;a.K=null;Rx(a,Tx("over"),a.TL);Rx(a,"touchstart",a.SG);a.i&&Rx(a,Tx("down"),a.fT)};
Wja=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.K)return d}return null};
Tx=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
Ux=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Je(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Je(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
Xja=function(a){a instanceof Ux||(a=new Ux(a));return a};
Wx=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(a),c=new Uint8Array(a);window.crypto.getRandomValues(c);for(var d=0;d<b.length;d++)b[d]=c[d];return b}catch(f){}b=Array(a);for(c=0;c<a;c++){d=Date.now();for(var e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(256*Math.random())}if(Vx)for(c=1,d=0;d<Vx.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^Vx.charCodeAt(d),c++;return b};
Xx=function(){for(var a=Wx(16),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Yja=function(){return g.Mm(Wx(16),function(a){return(a&15).toString(16)}).join("")};
Yx=function(a){this.i=a};
g.Zx=function(a){return new Yx({trackingParams:a})};
$ja=function(a){var b=Zja++;return new Yx({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
$x=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
ay=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
aka=function(a){return g.N(ay(void 0===a?0:a),void 0)};
g.by=function(a){return(a=aka(void 0===a?0:a))?new Yx({veType:a,youtubeData:void 0}):null};
bka=function(){var a=g.N("csn-to-ctt-auth-info");a||(a={},Ts("csn-to-ctt-auth-info",a));return a};
g.cy=function(a){a=void 0===a?0:a;var b=g.N($x(a));if(!b&&!g.N("USE_CSN_FALLBACK",!0))return null;b||!g.O("use_undefined_csn_any_layer")&&0!=a||(b="UNDEFINED_CSN");return b?b:null};
cka=function(a,b,c){var d=bka();(c=g.cy(c))&&delete d[c];b&&(d[a]=b)};
dy=function(a){return bka()[a]};
eka=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.N($x(c))||b!==g.N(ay(c)))cka(a,d,c),Ts($x(c),a),Ts(ay(c),b),b=function(){setTimeout(function(){a&&Rv("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:dka,clientScreenNonce:a},g.Ex)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
fka=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
gka=function(){this.Xm=[];this.jm=[]};
fy=function(){if(!ey){var a=ey=new gka;a.jm.length=0;a.Xm.length=0;hka(a,ika)}return ey};
hka=function(a,b){b.jm&&a.jm.push.apply(a.jm,b.jm);b.Xm&&a.Xm.push.apply(a.Xm,b.Xm)};
jka=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=gy(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=gy(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=gy(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(d<c)};
gy=function(a){var b=a(),c=b&127;if(128>b)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity};
kka=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=hy(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=a[e];var h=b;var l=c;h="string"!==typeof f||"clickTrackingParams"!==e&&"trackingParams"!==e?0:(f=jka(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?hy(e+".ve",f,h,l):0;d+=h;d+=hy(e,a[e],b,c);if(500<d)break}}else c[b]=iy(a),d+=c[b].length;else c[b]=iy(a),d+=c[b].length;return d};
hy=function(a,b,c,d){c+="."+a;a=iy(b);d[c]=a;return c.length+a.length};
iy=function(a){try{return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}};
cw=function(a){g.jy(a)};
g.ky=function(a){g.jy(a,"WARNING")};
g.jy=function(a,b){var c=void 0===c?{}:c;c.name=g.N("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.N("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);c=c||{};b=void 0===b?"ERROR":b;b=void 0===b?"ERROR":b;if(a){a.hasOwnProperty("level")&&a.level&&(b=a.level);if(g.O("console_log_js_exceptions")){var d=[];d.push("Name: "+a.name);d.push("Message: "+a.message);a.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&d.push("Error args: "+JSON.stringify(a.args));
d.push("File name: "+a.fileName);d.push("Stacktrace: "+a.stack);window.console.log(d.join("\n"),a)}if(!(5<=lka)){d=mka;var e=Haa(a),f=e.message||"Unknown Error",h=e.name||"UnknownError",l=e.stack||a.u||"Not available";if(l.startsWith(h+": "+f)){var m=l.split("\n");m.shift();l=m.join("\n")}m=e.lineNumber||"Not available";e=e.fileName||"Not available";var n=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var p=0;p<a.args.length&&!(n=kka(a.args[p],"params."+p,c,n),500<=n);p++);else if(a.hasOwnProperty("params")&&
a.params){var q=a.params;if("object"===typeof a.params)for(p in q){if(q[p]){var t="params."+p,u=iy(q[p]);c[t]=u;n+=t.length+u.length;if(500<n)break}}else c.params=iy(q)}if(d.length)for(p=0;p<d.length&&!(n=kka(d[p],"params.context."+p,c,n),500<=n);p++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);c={message:f,name:h,lineNumber:m,fileName:e,stack:l,params:c,sampleWeight:1};p=Number(a.columnNumber);isNaN(p)||(c.lineNumber=c.lineNumber+":"+p);if("IGNORED"===a.level)a=
0;else a:{a=fy();p=g.r(a.jm);for(d=p.next();!d.done;d=p.next())if(d=d.value,c.message&&c.message.match(d.jw)){a=d.weight;break a}a=g.r(a.Xm);for(p=a.next();!p.done;p=a.next())if(p=p.value,p.callback(c)){a=p.weight;break a}a=1}c.sampleWeight=a;a=g.r(nka);for(p=a.next();!p.done;p=a.next())if(p=p.value,p.xA[c.name])for(f=g.r(p.xA[c.name]),d=f.next();!d.done;d=f.next())if(h=d.value,d=c.message.match(h.Ag)){c.params["params.error.original"]=d[0];f=h.groups;h={};for(m=0;m<f.length;m++)h[f[m]]=d[m+1],c.params["params.error."+
f[m]]=d[m+1];c.message=p.YE(h);break}c.params||(c.params={});a=fy();c.params["params.errorServiceSignature"]="msg="+a.jm.length+"&cb="+a.Xm.length;c.params["params.serviceWorker"]="false";g.B.document&&g.B.document.querySelectorAll&&(c.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.tf("sample").constructor!==rf&&(c.params["params.fconst"]="true");window.yterr&&"function"===typeof window.yterr&&window.yterr(c);if(0!==c.sampleWeight&&!oka.has(c.message)){"ERROR"===
b?(ly.ea("handleError",c),g.O("record_app_crashed_web")&&0===pka&&1===c.sampleWeight&&(pka++,g.dw("appCrashed",{appCrashType:"APP_CRASH_TYPE_BREAKPAD"})),qka++):"WARNING"===b&&ly.ea("handleWarning",c);if(g.O("kevlar_gel_error_routing")){a=b;b:{p=g.r(rka);for(d=p.next();!d.done;d=p.next())if(ou(d.value.toLowerCase())){p=!0;break b}p=!1}if(p)p=void 0;else{d={stackTrace:c.stack};c.fileName&&(d.filename=c.fileName);p=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):[];0!==p.length&&(1!==p.length||
isNaN(Number(p[0]))?2!==p.length||isNaN(Number(p[0]))||isNaN(Number(p[1]))||(d.lineNumber=Number(p[0]),d.columnNumber=Number(p[1])):d.lineNumber=Number(p[0]));p={level:"ERROR_LEVEL_UNKNOWN",message:c.message,errorClassName:c.name,sampleWeight:c.sampleWeight};"ERROR"===a?p.level="ERROR_LEVEL_ERROR":"WARNING"===a&&(p.level="ERROR_LEVEL_WARNNING");d={isObfuscated:!0,browserStackInfo:d};f={pageUrl:window.location.href,kvPairs:[]};g.N("FEXP_EXPERIMENTS")&&(f.experimentIds=g.N("FEXP_EXPERIMENTS"));m=g.N("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",
void 0);if(!Us("web_disable_gel_stp_ecatcher_killswitch")&&m)for(e=g.r(Object.keys(m)),h=e.next();!h.done;h=e.next())h=h.value,f.kvPairs.push({key:h,value:String(m[h])});if(m=c.params)for(e=g.r(Object.keys(m)),h=e.next();!h.done;h=e.next())h=h.value,f.kvPairs.push({key:"client."+h,value:String(m[h])});h=g.N("SERVER_NAME",void 0);m=g.N("SERVER_VERSION",void 0);h&&m&&(f.kvPairs.push({key:"server.name",value:h}),f.kvPairs.push({key:"server.version",value:m}));p={errorMetadata:f,stackTrace:d,logMessage:p}}p&&
(g.dw("clientError",p),("ERROR"===a||g.O("errors_flush_gel_always_killswitch"))&&Iv())}if(!g.O("suppress_error_204_logging")){a=c.params||{};b={urlParams:{a:"logerror",t:"jserror",type:c.name,msg:c.message.substr(0,250),line:c.lineNumber,level:b,"client.name":a.name},postParams:{url:g.N("PAGE_NAME",window.location.href),file:c.fileName},method:"POST"};a.version&&(b["client.version"]=a.version);if(b.postParams){c.stack&&(b.postParams.stack=c.stack);p=g.r(Object.keys(a));for(d=p.next();!d.done;d=p.next())d=
d.value,b.postParams["client."+d]=a[d];if(a=g.N("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(p=g.r(Object.keys(a)),d=p.next();!d.done;d=p.next())d=d.value,b.postParams[d]=a[d];a=g.N("SERVER_NAME",void 0);p=g.N("SERVER_VERSION",void 0);a&&p&&(b.postParams["server.name"]=a,b.postParams["server.version"]=p)}g.Yt(g.N("ECATCHER_REPORT_HOST","")+"/error_204",b)}try{oka.add(c.message)}catch(v){}lka++}}}};
ska=function(a){var b=g.Ba.apply(1,arguments),c=a;c.args||(c.args=[]);c.args.push.apply(c.args,g.la(b))};
my=function(a){Xw.call(this,1,arguments);this.csn=a};
g.oy=function(a,b,c,d){var e=d.filter(function(f){f.csn!==b?(f.csn=b,f=!0):f=!1;return f});
c={csn:b,parentVe:c.getAsJson(),childVes:g.Mm(e,function(f){return f.getAsJson()})};
d=g.r(d);for(e=d.next();!e.done;e=d.next())e=e.value.getAsJson(),(g.De(e)||!e.trackingParams&&!e.veType)&&g.ky(Error("Child VE logged with no data"));d={cttAuthInfo:dy(b),Bm:b};"UNDEFINED_CSN"==b?ny("visualElementAttached",c,d):a?Rv("visualElementAttached",c,a,d):g.dw("visualElementAttached",c,d)};
g.py=function(a,b,c){b={csn:a,ve:b.getAsJson(),eventType:1};c&&(b.clientData=c);c={cttAuthInfo:dy(a),Bm:a};"UNDEFINED_CSN"==a?ny("visualElementShown",b,c):g.dw("visualElementShown",b,c)};
tka=function(a,b,c,d,e){var f=(d=void 0===d?!1:d)?16:8;c={csn:b,ve:c.getAsJson(),eventType:f};e&&(c.clientData=e);d={cttAuthInfo:dy(b),Bm:b,GR:d};"UNDEFINED_CSN"==b?ny("visualElementHidden",c,d):a?Rv("visualElementHidden",c,a,d):g.dw("visualElementHidden",c,d)};
uka=function(a,b,c,d){var e="INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";c={csn:b,ve:c.getAsJson(),gestureType:e};d&&(c.clientData=d);d={cttAuthInfo:dy(b),Bm:b};"UNDEFINED_CSN"==b?ny("visualElementGestured",c,d):a?Rv("visualElementGestured",c,a,d):g.dw("visualElementGestured",c,d)};
vka=function(){return g.yc(Math.random()+"")};
ny=function(a,b,c){qy.push({payloadName:a,payload:b,options:c});ry||(ry=dx(wka,xka))};
xka=function(a){if(qy){for(var b=g.r(qy),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,Rv(c.payloadName,c.payload,null,c.options));qy.length=0}ry=0};
g.sy=function(a,b){g.jc(b,function(c){c={csn:a,ve:c.getAsJson(),eventType:4};var d={cttAuthInfo:dy(a),Bm:a};"UNDEFINED_CSN"==a?ny("visualElementShown",c,d):g.dw("visualElementShown",c,d)})};
g.ty=function(a,b){g.jc(b,function(c){tka(void 0,a,c,void 0,void 0)})};
g.uy=function(a,b,c){uka(void 0,a,b,c)};
vy=function(){this.u=new Set;this.i=new Set;this.B=new Map};
g.zy=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.wy)():yy())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.Ay=function(a){var b=yy(),c=(0,g.wy)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if("string"!==typeof d)try{d=c.get(a)}catch(e){}if("string"!==typeof d)return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
yka=function(){var a=(0,g.wy)();if(a&&(a=a.u("yt-player-quality")))return a.creation};
g.By=function(a){try{var b=yy(),c=(0,g.wy)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.Cy=function(){return g.Ay("yt-remote-session-screen-id")};
g.Dy=function(a,b,c){c=void 0===c?null:c;if(window.spf&&spf.script){c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1<d&&-1<e&&e>f&&(c=a.substring(f,e),c=c.replace(zka,""),c=c.replace(Aka,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Bka(a,b,c)};
Bka=function(a,b,c){c=void 0===c?null:c;var d=Cka(a),e=document.getElementById(d),f=e&&Sja(e),h=e&&!f;f?b&&b():(b&&(f=g.Dv(d,b),b=""+g.Pa(b),Dka[b]=f),h||(e=Eka(a,d,function(){Sja(e)||(Rja(e,"loaded","true"),g.Fv(d),g.Qt(g.Ra(Tha,d),0))},c)))};
Eka=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.Rj(e,g.Ar(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Cka=function(a){var b=document.createElement("a");g.ag(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+qg(a)};
Gy=function(a){var b=g.Ba.apply(1,arguments);if(!Ey(a)||b.some(function(e){return!Ey(e)}))throw Error("Only objects may be merged.");
var c=a;b=g.r(b);for(var d=b.next();!d.done;d=b.next())Fy(c,d.value);return c};
Fy=function(a,b){for(var c in b)if(Ey(b[c])){if(c in a&&!Ey(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Fy(a[c],b[c])}else if(Hy(b[c])){if(c in a&&!Hy(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Fka(a[c],b[c])}else a[c]=b[c];return a};
Fka=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Ey(c)?a.push(Fy({},c)):Hy(c)?a.push(Fka([],c)):a.push(c);return a};
Ey=function(a){return"object"===typeof a&&!Array.isArray(a)};
Hy=function(a){return"object"===typeof a&&Array.isArray(a)};
Iy=function(a,b,c,d,e,f){g.E.call(this);this.i=a;this.u=c;this.B=d;this.D=e;this.C=f};
Ika=function(a,b,c){c.Jt?(Jy(a.i.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),Gka(a.D,b)):Hka(a.C,c.Cl,b.slotId)};
Kka=function(a,b,c,d){var e=Ky(a.B.get(),1);Jy(a.i.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Jka(a.u.get(),c,d,e.clientPlaybackNonce,e.HJ,e.daiEnabled,e)},b)};
My=function(a,b,c){if(c&&c!==a.qb)return!1;b=g.r(b);for(c=b.next();!c.done;c=b.next())if(!Ly(a.Ia,c.value))return!1;return!0};
Ny=function(a,b){this.Po=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
Mka=function(a){Lka=void 0===a?!1:a};
R=function(a,b,c,d,e){d=void 0===d?{}:d;Lka&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.iw(a);if(a.args)for(var f=g.r(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign(Object.assign({},h),d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.qb:"");c&&(d.layout=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.ky(a)}};
Oy=function(a,b,c,d,e,f,h){g.E.call(this);this.B=a;this.u=b;this.NC=c;this.Oa=d;this.C=e;this.i=f;this.Ja=h};
Py=function(){this.u=new Map;this.i=new Map;this.B=new Map};
Qy=function(a,b){if(g.N("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return Xx()};
Ry=function(a,b,c){if(g.N("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.i.get(b)||0;d++;a.i.set(b,d);return c+"_"+b+"_"+d}return Xx()};
Sy=function(a,b){if(g.N("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return Xx()};
Ty=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};
Nka=function(a,b,c,d){this.B=a;this.le=null;this.u=b;this.i=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d};
Uy=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.ky(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
Vy=function(a,b){return b&&b.test(a)?!0:!1};
Wy=function(a){return(a=Oka&&Oka.exec(a))?a[0]:""};
Xy=function(a){var b=void 0===b?!1:b;return Uy(Vy(a,Pka),a,b,"Trusted Stream URL")};
g.Yy=function(a){var b=void 0===b?!1:b;return Uy(Vy(a,Qka),a,b,"Trusted Image URL")};
Ska=function(a){var b=void 0===b?!1:b;return Uy(Vy(a,Rka),a,b,"Trusted Ad Domain URL")};
Uka=function(a){var b=void 0===b?!1:b;return Uy(Vy(a,Tka),a,b,"Trusted Promoted Video Domain URL")};
Wka=function(a){var b=void 0===b?!1:b;return Uy(Vy(a,Vka),a,b,"Drm Licensor URL")};
Yka=function(a,b){b=void 0===b?!1:b;return Uy(Vy(a,Xka),a,b,"Captions URL")};
Zka=function(a){a=new g.uk(a);g.vk(a,document.location.protocol);g.wk(a,document.location.hostname);document.location.port&&g.xk(a,document.location.port);return a.toString()};
Zy=function(a){a=new g.uk(a);g.vk(a,document.location.protocol);return a.toString()};
g.az=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=$ka++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||$y.AD_MARKER;this.namespace=c.namespace||"";if(a=c.color)a=a.toString(16),this.color="#"+Array(7-a.length).join("0")+a;this.tooltip=c.tooltip;this.icons=c.icons?c.icons.filter(function(d){return g.Nm(d.thumbnails,function(e){return g.Yy(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
ala=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
bla=function(a,b){switch(a.style){case $y.CHAPTER_MARKER:return b?8:5;case $y.AD_MARKER:return 6;case $y.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.bz=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u};
g.cz=function(a){return"crn_"+a};
g.dz=function(a){return"crx_"+a};
ez=function(a,b,c,d,e){g.az.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.i=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null};
Qz=function(a){return"AD_PLACEMENT_KIND_START"==a.i};
dla=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i};
ela=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Ir(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Ir(Math.max(0,b.B-b.i),0x7ffffffffffff):new Ir(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.B);if(c&&(d=a,a=Math.max(0,a-b.i),a==d))break;return new Ir(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.le;a=1E3*d.startSecs;if(c){if(a<b.u)return new Ir(a-4E3,a);c=Math.max(0,a-b.u-1E4);return new Ir(b.C?b.u:Math.floor(b.u+Math.random()*c),a)}return new Ir(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
Rz=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.Sz=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.r(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
g.Tz=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];if(d.text){var e=b,f=e.push,h=null;var l=d.text;d.bold&&(h=Mg("B",null,h||l));d.italics&&(h=Mg("I",null,h||l));d.strikethrough&&(h=Mg("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=Mg("A",null,h||l),g.ag(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||Mg("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:Mg("SPAN",null,b)};
Uz=function(a,b){Xw.call(this,1,arguments)};
Vz=function(a,b){Xw.call(this,1,arguments);this.i=a};
fla=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
Xz=function(a){var b=Wz(a);if(b.aft)return b.aft;a=g.N((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=a.length,d=0;d<c;d++){var e=b[a[d]];if(e)return e}return NaN};
gla=function(){var a;if(g.O("csi_use_performance_navigation_timing")){var b,c,d,e=null===(d=null===(c=null===(b=null===(a=null===Yz||void 0===Yz?void 0:Yz.getEntriesByType)||void 0===a?void 0:a.call(Yz,"navigation"))||void 0===b?void 0:b[0])||void 0===c?void 0:c.toJSON)||void 0===d?void 0:d.call(c);e?(e.requestStart=Zz(e.requestStart),e.responseEnd=Zz(e.responseEnd),e.redirectStart=Zz(e.redirectStart),e.redirectEnd=Zz(e.redirectEnd),e.domainLookupEnd=Zz(e.domainLookupEnd),e.connectStart=Zz(e.connectStart),
e.connectEnd=Zz(e.connectEnd),e.responseStart=Zz(e.responseStart),e.secureConnectionStart=Zz(e.secureConnectionStart),e.domainLookupStart=Zz(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=Yz.timing}else a=Yz.timing;return a};
$z=function(){return g.O("csi_use_time_origin")&&Yz.timeOrigin?Math.floor(Yz.timeOrigin):Yz.timing.navigationStart};
Zz=function(a){return Math.round($z()+a)};
aA=function(a,b){g.Ga("ytglobal.timing"+(b||"")+"ready_",a,void 0)};
hla=function(a){g.Ga("yt.timing.pingSent_",a,void 0)};
bA=function(a){return g.Ha("ytcsi."+(a||"")+"data_")||ila(a)};
cA=function(a){a=bA(a);a.info||(a.info={});return a.info};
Wz=function(a){a=bA(a);a.tick||(a.tick={});return a.tick};
dA=function(a){var b=bA(a).nonce;b||(b=Xx(),bA(a).nonce=b);return b};
ila=function(a){var b={tick:{},info:{}};g.Ga("ytcsi."+(a||"")+"data_",b,void 0);return b};
lla=function(a){var b=Wz(a||""),c=Xz(a);c&&!jla&&($w(kla,new Uz(Math.round(c-b._start),a)),jla=!0)};
mla=function(){if(Yz.getEntriesByType){var a=Yz.getEntriesByType("paint");if(a=g.Mb(a,function(b){return"first-paint"===b.name}))return Zz(a.startTime)}a=Yz.timing;
return a.kT?Math.max(0,a.kT):0};
eA=function(){var a=g.Ha("ytcsi.debug");a||(a=[],g.Ga("ytcsi.debug",a,void 0),g.Ga("ytcsi.reference",{},void 0));return a};
fA=function(a){a=a||"";var b=nla();if(b[a])return b[a];var c=eA(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d};
gA=function(a){a=a||"";var b=nla();b[a]&&delete b[a];var c=eA(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);b[a]=d};
nla=function(){var a=g.Ha("ytcsi.reference");if(a)return a;eA();return g.Ha("ytcsi.reference")};
hA=function(){this.i=0};
iA=function(){hA.i||(hA.i=new hA);return hA.i};
kA=function(a,b){jA[b]=jA[b]||{count:0};var c=jA[b];c.count++;c.time=(0,g.P)();a.i||(a.i=jv(0,function(){var d=(0,g.P)(),e;for(e in jA)jA[e]&&6E4<d-jA[e].time&&delete jA[e];a&&(a.i=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.iw("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.ky(c)),!0):!1};
lA=function(a){return!!g.N("FORCE_CSI_ON_GEL",!1)||g.O("csi_on_gel")||g.O("enable_csi_on_gel")||g.O("unplugged_tvhtml5_csi_on_gel")||!!bA(a).useGel};
ola=function(a,b,c){var d=mA(c);d.gelTicks&&(d.gelTicks["tick_"+a]=!0);c||b||(0,g.P)();if(lA(c)){fA(c||"").tick[a]=b||(0,g.P)();d=dA(c);var e=bA(c).cttAuthInfo;"_start"===a?(a=iA(),kA(a,"baseline_"+d)||g.dw("latencyActionBaselined",{clientActionNonce:d},{timestamp:b,cttAuthInfo:e})):iA().tick(a,d,b,e);lla(c);return!0}return!1};
tla=function(a,b,c){c=mA(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 pla){c=pla[a];g.Qb(qla,c)&&(b=!!b);a in rla&&"string"===typeof b&&(b=rla[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;h<b.length-1;h++){var l=b[h];f[l]={};f=f[l]}f[b[b.length-1]]="requestIds"===c?[{id:a,endpoint:e}]:a;return Gy({},d)}g.Qb(sla,a)||g.ky(new g.iw("Unknown label logged with GEL CSI",a))};
mA=function(a){a=bA(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
ula=function(a){a=mA(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
wla=function(a){if(lA(a)){var b={actionType:vla[g.N((a||"")+"TIMING_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN",previousAction:vla[g.N("PREVIOUS_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN"},c=g.cy();c&&(b.clientScreenNonce=c);c=dA(a);a=bA(a).cttAuthInfo;iA().info(b,c,a)}};
nA=function(a){ila(a);xla();a||(g.N("TIMING_ACTION")&&Ts("PREVIOUS_ACTION",g.N("TIMING_ACTION")),Ts("TIMING_ACTION",""),hla(!1))};
qA=function(a,b,c){b=void 0===b?{}:b;c=c?c:a;oA("c",c);gA(c);nA(c);bA(c).useGel=!0;fA(c||"").info.actionType=a;b.cttAuthInfo&&(bA(c).cttAuthInfo=b.cttAuthInfo);Ts(c+"TIMING_ACTION",a);pA("c",b.startTime,c);wla(c);aA(!0,c)};
pA=function(a,b,c){g.rA("yt_sts",a,c);sA("_start",b,c)};
g.rA=function(a,b,c){null!==b&&(cA(c)[a]=b,lA(c)?(a=tla(a,b,c))&&tA(a,c):fA(c||"").info[a]=b)};
tA=function(a,b){if(lA(b)){var c=fA(b||"");Gy(c.info,a);Gy(ula(b),a);c=dA(b);b=bA(b).cttAuthInfo;iA().info(a,c,b)}};
sA=function(a,b,c){var d=Wz(c);if(!b&&"_"!==a[0]){var e=a;Yz.mark&&(gb(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),Yz.mark(e))}e=b||(0,g.P)();d[a]=e;ola(a,b,c)||c||(yla(),fA("").tick[a]=b||(0,g.P)());return d[a]};
zla=function(a){var b="above_the_fold";Yz&&Yz.measure&&(gb(b,"measure_")||(b="measure_"+b),a?Yz.measure(b,a):Yz.measure(b))};
uA=function(a,b){b=Wz(b);return a in b};
vA=function(a,b,c){uA("_start",c)&&!uA(a,c)&&sA(a,b,c)};
yla=function(){if(!g.Ha("yt.timing.pingSent_")){var a=g.N("TIMING_ACTION",void 0),b=Wz();if(g.Ha("ytglobal.timingready_")&&a&&uA("_start")&&Xz()){lla();a=!0;var c=g.N("TIMING_WAIT",[]);if(c.length)for(var d=0,e=c.length;d<e;++d)if(!(c[d]in b)){a=!1;break}a&&wA()}}};
Ala=function(){switch(Pu()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
wA=function(){if(!lA()){var a=Wz(),b=cA(),c=a._start,d=g.N("CSI_SERVICE_NAME","youtube"),e={v:2,s:d,action:g.N("TIMING_ACTION",void 0)},f=b.srt;void 0!==a.srt&&delete b.srt;a.aft=Xz();var h=Wz(void 0),l=h.pbr,m=h.vc;h=h.pbs;if(l=l&&m&&h&&l<m&&m<h)l=!!cA(void 0).yt_pvis;l&&"youtube"===d&&(g.rA("yt_lt","hot_bg"),d=a.vc,l=a.pbs,delete a.aft,b.aft=Math.round(l-d));for(var n in b)"_"!==n.charAt(0)&&(e[n]=b[n]);a.ps=(0,g.P)();n={};d=[];for(var p in a)"_"!==p.charAt(0)&&(l=Math.round(a[p]-c),n[p]=l,d.push(p+
"."+l));e.rt=d.join(",");a=!!b.ap;b="";for(var q in e)e.hasOwnProperty(q)&&(b+="&"+q+"="+e[q]);e="/csi_204?"+b.substring(1);window.navigator&&a?xv(e):g.wv(e);hla(!0);$w(xA,new Vz(n.aft+(Number(f)||0)))}};
oA=function(a,b){b||lA()?uA("_start",b)&&sA("aa",void 0,b):g.Ha("yt.timing.pingSent_")||(b=g.N("CSI_SERVICE_NAME","youtube"),g.N("TIMING_ACTION",void 0)&&b&&(sA("aa",void 0),g.rA("ap",1),g.rA("yt_fss",a),wA()))};
Bla=function(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;"SCRIPT"===d?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):"LINK"===d&&(c=a.href);cg()&&a.setAttribute("nonce",cg());return c?(a=Yz.getEntriesByName(c))&&a[0]&&(a=a[0],c=$z(),sA("rsf_"+b,c+Math.round(a.fetchStart)),sA("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
Cla=function(){var a=window.location.protocol,b=Yz.getEntriesByType("resource");b=g.ap(b,function(c){return 0===c.name.indexOf(a+"//fonts.gstatic.com/s/")});
(b=Om(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(sA("wffs",Zz(b.startTime)),sA("wffe",Zz(b.responseEnd)))};
yA=function(){if(g.Pw)return!1;if(g.ru()){var a=nu();if(16<=a&&17>a)return!1}return!("function"!==typeof window.fetch||!window.ReadableStream)};
zA=function(a){if(a.yv())return!1;a=a.getResponseHeader("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
AA=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
BA=function(a,b){this.id=a;this.zc=b;this.captionTracks=[];this.i=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
CA=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.i=b||0};
DA=function(a,b){return a.u===b.u&&a.i===b.i&&a.B===b.B&&a.reason===b.reason};
FA=function(a,b,c,d){return new CA(g.EA[a]||0,g.EA[b]||0,c,d)};
GA=function(a){var b=g.EA.auto;return a.u===b&&a.i===b};
IA=function(a){return HA[a.i||a.u]||"auto"};
Dla=function(a,b){b=g.EA[b];return a.u<=b&&(!a.i||a.i>=b)};
JA=function(a,b){this.videoInfos=a;this.i=b;this.audioTracks=[];if(this.i){a=new Set;b=g.r(this.i);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.zc&&!a.has(c.zc.id)){var d=new BA(c.id,c.zc);a.add(c.zc.id);this.audioTracks.push(d)}}};
MA=function(a,b,c,d,e){var f=[],h=new Set,l=a.Aa||a.wb,m={};if(KA(c)){for(var n in c.i)c.i.hasOwnProperty(n)&&(a=c.i[n],m[a.info.i]=[a.info]);return m}for(var p in c.i)if(c.i.hasOwnProperty(p)){n=c.i[p];var q=n.info.jc();if(""===n.info.i)f.push(q),f.push("unkn");else if("304"!==q&&"266"!==q||!a.bb)if(a.S&&n.info.video&&n.info.video.i>a.S)f.push(q),f.push("max"+a.S);else if(a.X&&n.info.video&&n.info.video.i<a.X)f.push(q),f.push("min"+a.X);else if(a.rb&&"h"===n.info.i&&n.info.video&&1080<n.info.video.i)f.push(q),
f.push("blkhigh264");else if(a.kb&&n.info.video&&4320<=n.info.video.i&&32<n.info.video.fps)f.push(q),f.push("blk8khfr");else{var t=b.i.get(n.info.i);t=t&&0<t.eG;l&&t?(h.add(n.info.i),f.push(q),f.push("byerr")):(t=Ela(b,n.info),!0!==t?(f.push(q),f.push(t)):"(h"!==n.info.i||b.C?a.La||"o"!==n.info.i&&"O"!==n.info.i||!g.lj||!ou("crkey")?(t="MAC3"===n.info.i||"MEAC3"===n.info.i||"M"===n.info.i,c.isLive&&t&&!a.Sa?(f.push(q),f.push("blk51live")):!a.jb||"9h"!==n.info.i&&"(h"!==n.info.i&&"1h"!==n.info.i?(m[n.info.i]=
m[n.info.i]||[],m[n.info.i].push(n.info)):(f.push(q),f.push("blkhdr"))):(f.push(q),f.push("opchr")):(f.push(q),f.push("enchdr")))}else f.push(q),f.push("blk2khfr")}e&&(d(f.join(".")),c="bfflt."+LA(m),d(c));for(var u in m)m.hasOwnProperty(u)&&(c=u,m[c]&&m[c][0].isVideo()&&(m[c]=Fla(a,m[c]),m[c]=Gla(b,m[c])));if(l)for(h=g.r(h.values()),l=h.next();!l.done;l=h.next())(l=b.i.get(l.value))&&--l.eG;b=g.re(m,function(v){return!!v.length});
e&&(m="aftflt."+LA(m),d(m));a.vb=Hla(b,a);return b};
Hla=function(a,b){var c=b.D&&!(!a.mac3&&!a.MAC3),d=b.I&&!(!a.meac3&&!a.MEAC3);return b.va&&!(!a.m&&!a.M)||c||d};
NA=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
LA=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(NA(d));d=g.r(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.jc())}return b.join(".")};
Ila=function(a,b,c,d,e){var f={},h=[];g.qe(b,function(l,m){l=l.filter(function(n){var p=n.jc();if(!n.Ed)return h.push(p),h.push("noenc"),!1;if("("===n.i||"(h"===n.i){if(a.u&&c&&"widevine"===c.flavor){var q=n.mimeType+"; experimental=allowed";q=!!n.Ed[c.flavor]&&!!c.i[q];q||(n=n.Ed[c.flavor]?"unspt":"noflv",h.push(p),h.push(n));return q}if(!OA(a,PA.CRYPTOBLOCKFORMAT)&&!a.oa||a.X)return h.push(p),h.push(a.X?"disvp":"vpsub"),!1}return c&&n.Ed[c.flavor]&&c.i[n.mimeType]?!0:(n=c?n.Ed[c.flavor]?"unspt":
"noflv":"nosys",h.push(p),h.push(n),!1)});
l.length&&(f[m]=l)});
d&&h.length&&e(h.join("."));return f};
Mla=function(a,b,c,d,e){function f(u){return!!l[u]}
var h=a.K||!!d,l=MA(a,b,c,e,h);QA(c)&&(l=Ila(b,l,d,h,e),h&&(b="enflt."+LA(l),e(b)));if(KA(c))return e=g.Mb(Object.values(l),function(u){return!!u.length&&!!u[0].audio}),h=g.Mb(Object.values(l),function(u){return!!u.length&&!!u[0].video}),e&&h||eu(),fu(new JA(h,e));
b=Jla(a);h&&e("audioPrefOrder."+b.join("_"));b=g.Mb(b,f);if(!b)return h&&e("noaudio"),eu();b=l[b];l["9"]&&l.h&&c.tf&&!a.Va&&(h&&e("dltvp9"),delete l["9"]);var m=l["1h"]?"1h":"1";d=l["9h"]?"9h":"9";var n=l[m],p=l[d];n&&n.length&&(a.u.highestAv1Resolution=n[n.length-1].video.i);p&&p.length&&(a.u.highestVp9Resolution=p[p.length-1].video.i);var q=[],t=[];if(a.Ba&&!a.i)for(t=Kla(c)?l["1h"]||l["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],h&&e("newhybpref."+t.join(".")),n=g.r(t),p=n.next();!p.done;p=n.next())q=
q.concat(l[p.value]).filter(function(u){return u});
else 0<a.B&&p&&n&&(t=[m,d],q=n.concat(p).filter(function(u){return u}));
if(q.length&&!a.i){RA(q,b,t);if(h){h=[];a=g.r(q);for(c=a.next();!c.done;c=a.next())h.push(c.value.jc());e("hbdfmt."+h.join("."))}return fu(new JA(q,b))}q=Lla(a);q=g.Mb(q,f);if(!q){if(l[m])return e=l[m],RA(e,b),fu(new JA(e,b));h&&e("novideo");return eu()}a.Nb&&("1"===q||"1h"===q)&&l[d]&&(m=SA(l[q]),SA(l[d])>m&&(q=d));"9"===q&&l.h&&(d=SA(l["9"]),SA(l.h)>1.5*d&&(q="h"));a.Db&&c.isLive&&"("===q&&l.H&&1440>SA(l["("])&&(q="H");h&&e("vfmly."+NA(q));a=l[q];if(!a.length)return h&&e("novfmly."+NA(q)),eu();
RA(a,b);return fu(new JA(a,b))};
RA=function(a,b,c){c=void 0===c?[]:c;g.gc(a,function(d,e){var f=e.video.height*e.video.width-d.video.height*d.video.width;if(!f&&c&&0<c.length){f=c.indexOf(d.i)+1;var h=c.indexOf(e.i)+1;f=0===f||0===h?h||-1:f-h}f||(f=e.Ob-d.Ob);return f});
g.gc(b,function(d,e){return e.Ob-d.Ob})};
Gla=function(a,b){var c=Om(b,function(d,e){return 32<e.video.fps?Math.min(d,e.video.width):d},Infinity);
Infinity>c&&(b=a.K&&(a.Z||OA(a,PA.FRAMERATE))?g.ap(b,function(d){return 32<d.video.fps||d.video.width<c}):g.ap(b,function(d){return!(32<d.video.fps)}));
uu()&&(b=g.ap(b,function(d){return"299"!==d.jc()}));
return b};
Fla=function(a,b){return b=g.ap(b,function(c){return c.video.i<=a.Eb})};
SA=function(a){return Om(a,function(b,c){return Math.max(b,c.video.i)},0)};
Nla=function(a){a=void 0===a?{}:a;var b=void 0===a.Ik?!1:a.Ik,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.DG?!1:a.DG;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&yA()?3:2:c&&d?-1:1};
Ola=function(a){return Nla({hasSubfragmentedFmp4:a.D.dg,Ik:a.D.dg,defraggedFromSubfragments:a.Ml,isManifestless:!0,DG:a.La})};
Pla=function(a){a=a.split("");TA.Sj(a,16);TA.gy(a,2);TA.Sj(a,0);return a.join("")};
g.UA=function(a,b){this.u=a;this.D=void 0===b?!1:b;this.C=this.path=this.B="";this.i={};this.url=""};
VA=function(a){a.url||(a.url=Qla(a));return a.url};
XA=function(a){WA(a);return a.C};
YA=function(a){return a.u?gb(a.u,"local"):"local"===a.B};
Rla=function(a){WA(a);return g.te(a.i,function(b){return null!==b})};
Sla=function(a){WA(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
ZA=function(a){WA(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=VA(a);b=new g.uk(c);var d=a.get("fvip");a=decodeURIComponent(a.get("mn")||"").split(",");if(d&&a&&1<a.length&&a[1]){c=b.i;var e=c.replace(/^[^.]*/,"");g.wk(b,(0===c.indexOf("rr")?"rr":"r")+d+"---"+a[1]+e);b=new g.UA(b.toString());b.set("fallback_count","1");return b}d=b.i.match("\\.a1\\.googlevideo\\.com$");b.i.match("\\.googlevideo\\.com$")?(g.wk(b,"redirector.googlevideo.com"),c=b.toString()):
b.i.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.wk(b,"www.youtube.com"),c=b.toString()):c=Zka(c);b=new g.UA(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
WA=function(a){if(a.u){if(!Xy(a.u)&&!a.u.startsWith("local"))throw new g.iw("Untrusted URL",a.u);var b=g.Kk(a.u);a.B=b.C;a.C=b.i+(null!=b.B?":"+b.B:"");var c=b.getPath();if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.i;a.i=Tla(c);
Object.assign(a.i,$A(b.u.toString()));Object.assign(a.i,d);"index.m3u8"===a.i.file&&(delete a.i.file,a.path+="/file/index.m3u8");a.u="";a.url="";a.D&&(b=a.get("n"))&&(b=vha(b),a.set("n",b))}};
Qla=function(a){WA(a);var b=a.B+(a.B?"://":"//")+a.C+a.path;if(Rla(a)){var c=[];g.qe(a.i,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
Tla=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Ula(c,a[b],a[b+1]);return c};
$A=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Ula(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
Ula=function(a,b,c){if("cmo"===b){var d;0<=(d=c.indexOf("="))?(b="cmo="+c.substr(0,d),c=c.substr(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.substr(0,d),c=c.substr(d+3))}a[b]=c};
aB=function(a,b,c,d,e,f,h,l,m){this.Ma=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.le=m;this.endTime=b+c;this.i=h||0;this.range=f||null;this.pending=l||!1;this.le=m||null};
bB=function(){this.segments=[]};
Vla=function(a,b){if(b>a.getLastSegmentNumber())a.segments=[];else{var c=Lb(a.segments,function(d){return d.Ma>=b},a);
0<c&&a.segments.splice(0,c)}};
cB=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
dB=function(a){return String.fromCharCode.apply(null,a)};
eB=function(a){return window.TextDecoder?(new TextDecoder).decode(a):dB(a)};
fB=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.i=(this.u=e)?0:8;this.dataOffset=this.offset+this.i};
gB=function(a){var b=a.data.getUint8(a.offset+a.i);a.i+=1;return b};
hB=function(a){var b=a.data.getUint16(a.offset+a.i);a.i+=2;return b};
iB=function(a){var b=a.data.getInt32(a.offset+a.i);a.i+=4;return b};
jB=function(a){var b=a.data.getUint32(a.offset+a.i);a.i+=4;return b};
kB=function(a){var b=a.data;var c=a.offset+a.i;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.i+=8;return b};
lB=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.i;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;b=new Uint8Array(a.data.buffer,a.offset+a.i+a.data.byteOffset,c-a.i);a.i=Math.min(c+1,a.size);return eB(b)};
Wla=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
mB=function(a,b,c,d){(new Uint8Array(a.data.buffer,a.offset,d)).set(new Uint8Array(b.buffer,c+b.byteOffset,d));a.offset+=d};
oB=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.i=nB(this,"Sequence-Number");this.I=nB(this,"Segment-Count");this.K=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=nB(this,"Ingestion-Walltime-Us")/1E6;this.u=(nB(this,"First-Frame-Time-Us")+nB(this,"First-Frame-Uncertainty-Us"))/1E6;this.Ri=nB(this,"Target-Duration-Us")/1E6;this.C="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=nB(this,"Crypto-Period-Index");
this.B=nB(this,"Crypto-Period-Seconds")};
Yla=function(a){var b;a.data["Cuepoint-Type"]?b=new Ty(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",Xla[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):b=null;return b};
Zla=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
nB=function(a,b){return Number(a.data[b])||0};
g.$la=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
ama=function(a,b){this.i=a;this.duration=b};
bma=function(a,b,c,d,e){this.u=e;this.i=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
pB=function(a){var b={};a=a.split("\r\n");for(var c=0;c<a.length;c++){if(0===a[c].length)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);null!=d&&(b[d[1]]=d[2])}return null};
cma=function(a,b){var c=g.qB(a,0,1952868452);a=g.qB(a,0,1953658222);if(c&&a){c.skip(1);var d=gB(c)<<16|hB(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.i;var e=jB(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=gB(a)<<16|hB(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=jB(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.i,h=jB(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
sB=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.qB(a,0,1836476516))?g.rB(a):NaN};
dma=function(a){var b=g.qB(a,0,1937011556);if(!b)return null;b=tB(a,b.dataOffset+8,1635148593);if(!b)return null;var c=tB(a,b.dataOffset+78,1936995172),d=tB(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),gB(c)){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var e=c=null,f=null;if(d=tB(a,d.dataOffset,1886547818)){var h=tB(a,d.dataOffset,1886546020),l=tB(a,d.dataOffset,2037673328);if(!l&&(l=tB(a,d.dataOffset,1836279920),!l))return null;h&&(h.skip(4),c=
iB(h)/65536,f=iB(h)/65536,e=iB(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new bma(b,c,f,e,a)}return null};
tB=function(a,b,c){for(;uB(a,b);){var d=vB(a,b);if(d.type===c)return d;b+=d.size}return null};
g.qB=function(a,b,c){for(;uB(a,b);){var d=vB(a,b);if(d.type===c)return d;b=wB(d.type)?b+8:b+d.size}return null};
g.xB=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;return 4294967296*b.getUint32(a)+b.getUint32(a+4)}return a.data.getUint32(a.dataOffset+4)};
vB=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new fB(a,b,c,d)};
g.rB=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
ema=function(a){a=new fB(a.data,a.offset,a.size,a.type,a.u);var b=gB(a);a.skip(7);var c=jB(a);if(0===b){b=jB(a);var d=jB(a)}else b=kB(a),d=kB(a);a.skip(2);for(var e=hB(a),f=[],h=[],l=0;l<e;l++){var m=jB(a);f.push(m);h.push(jB(a));a.skip(4)}return{JG:c,CR:b,OR:d,LW:f,EG:h}};
uB=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;c=a.getUint32(b+4);if(1635148593===c||1635148611===c||1937126244===c||1936995172===c)return!0;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(97>d||122<d)return!1}return!0};
wB=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
fma=function(a){a.skip(4);return{bX:lB(a,0),value:lB(a,0),JG:jB(a),dda:jB(a),Gca:jB(a),id:jB(a),OL:lB(a),offset:a.offset}};
g.gma=function(a){var b=tB(a,0,1701671783);if(!b)return null;var c=fma(b),d=c.bX;c=pB(c.OL);if(a=tB(a,b.offset+b.size,1701671783))if(a=fma(a),a=pB(a.OL),c&&a){b=g.r(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new oB(c,d):null};
yB=function(a,b){for(var c=tB(a,0,b);c;)c.markAsSkip(),c=tB(a,c.offset+c.size,b)};
g.zB=function(a,b){for(var c=0,d=[];uB(a,c);){var e=vB(a,c);e.type===b&&d.push(e);c=wB(e.type)?c+8:c+e.size}return d};
ima=function(a,b){var c=g.qB(a,0,1937011556),d=g.qB(a,0,1953654136);if(!c||!d||2<=a.getUint32(c.offset+12))return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.qB(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(1701733217!==d&&1701733238!==d)return null;d=new Wla(a.byteLength+b);mB(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;mB(d,a,c.offset+16,c.size-16);mB(d,e,e.byteOffset+f.dataOffset+8,b);mB(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.r([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.qB(a,0,e.value),d.data.setUint32(e.offset,e.size+b);if(hma)return d.data;a=g.qB(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
AB=function(a,b){this.u=a;this.i=0;this.start=b||0};
BB=function(a){return a.i>=a.u.byteLength};
GB=function(a,b,c){var d=new AB(c);if(!CB(d,a))return!1;d=DB(d);if(!EB(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.i;var e=FB(d,!0);d=a+(d.start+d.i-b)+e;d=9<d?jma(d-9,8):jma(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
kma=function(a){var b=new AB(a);HB(b);if(CB(b,[408125543,374648427,174,224]))b=DB(b);else return null;for(var c=a=null;!BB(b);){var d=FB(b,!1);if(21432===d)switch(IB(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=DB(b):JB(b)}if(!c)return null;for(var e,f=d=b=null;!BB(c);)switch(FB(c,!1)){case 30321:if(3!==IB(c))return null;break;case 30324:b=KB(c);break;case 30323:f=KB(c);break;case 30325:d=KB(c);break;case 30322:e=FB(c,!0);e=LB(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:JB(c)}return e?new bma(a,b,f,d,e):null};
DB=function(a){var b=FB(a,!0),c=a.u.byteOffset+a.i;c=new DataView(a.u.buffer,c,Math.min(b,a.u.buffer.byteLength-c));c=new AB(c,a.start+a.i);a.i+=b;return c};
IB=function(a){for(var b=FB(a,!0),c=MB(a),d=1;d<b;d++)c=256*c+MB(a);return c};
KB=function(a){var b=FB(a,!0),c=0;4===b?c=a.u.getFloat32(a.i):8===b&&(c=a.u.getFloat64(a.i));a.i+=b;return c};
lma=function(a){var b=FB(a,!0);return eB(LB(a,b))};
MB=function(a){return a.u.getUint8(a.i++)};
FB=function(a,b){var c=MB(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+MB(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+MB(a),d*=128;return b?c-d:c};
JB=function(a){var b=FB(a,!0);a.i+=b};
HB=function(a){var b=a.i;a.i=0;var c=!1;try{EB(a,440786851)&&(a.i=0,EB(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.i=0,c=!1,g.ky(d);else throw d;}a.i=b;return c};
mma=function(a){if(!EB(a,440786851,!0))return null;var b=a.i;FB(a,!1);var c=FB(a,!0)+a.i-b;a.i=b+c;if(!EB(a,408125543,!1))return null;FB(a,!0);if(!EB(a,357149030,!0))return null;var d=a.i;FB(a,!1);var e=FB(a,!0)+a.i-d;a.i=d+e;if(!EB(a,374648427,!0))return null;var f=a.i;FB(a,!1);var h=FB(a,!0)+a.i-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.u.buffer,
a.u.byteOffset+d,e),c+12);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+f,h),c+12+e);return l};
NB=function(a){var b=a.i;a.i=0;var c=1E6;CB(a,[408125543,357149030,2807729])&&(c=IB(a));a.i=b;return c};
nma=function(a,b){var c=a.i;a.i=0;if(160!==a.u.getUint8(a.i)&&!OB(a)||!EB(a,160))return a.i=c,NaN;FB(a,!0);var d=a.i;if(!EB(a,161))return a.i=c,NaN;FB(a,!0);MB(a);var e=MB(a)<<8|MB(a);a.i=d;if(!EB(a,155))return a.i=c,NaN;d=IB(a);a.i=c;return(e+d)*b/1E9};
OB=function(a){if(!oma(a)||!EB(a,524531317))return!1;FB(a,!0);return!0};
oma=function(a){if(HB(a)){if(!EB(a,408125543))return!1;FB(a,!0)}return!0};
CB=function(a,b){for(var c=0;c<b.length;c++){if(!EB(a,b[c]))return!1;c!==b.length-1&&FB(a,!0)}return!0};
EB=function(a,b,c){c=void 0===c?!1:c;if(BB(a))return!1;for(var d=a.i;FB(a,!1)!==b;)if(JB(a),d=a.i,BB(a))return!1;c&&(a.i=d);return!0};
jma=function(a,b){b||(b=Math.ceil(Math.log(a+2)/Math.log(2)/7));for(var c=1<<8-b,d=[];d.length<b-1;)d.unshift(a%256),a=Math.floor(a/256);d.unshift(a|c);return d};
LB=function(a,b){var c=new Uint8Array(a.u.buffer,a.u.byteOffset+a.i,b);a.i+=b;return c};
PB=function(a){this.Pf=a;this.i={};this.url=""};
pma=function(a,b){var c=b.indexOf("?");if(0<c){var d=$A(b.substr(c+1));g.qe(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=Tla(b);g.qe(b,function(e,f){this.set(f,e)},a)};
g.QB=function(a){a.url||(a.url=qma(a));return a.url};
qma=function(a){var b=VA(a.Pf),c=[];g.qe(a.i,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=Rla(a.Pf)?"&":"?";return b+a+d};
RB=function(a,b){var c=new g.UA(b);(b=c.get("req_id"))&&a.set("req_id",b);g.qe(a.i,function(d,e){c.set(e,null)});
return c};
rma=function(){this.u=this.i=this.timedOut=this.started=this.B=0};
sma=function(a){a.B=(0,g.P)();a.started+=1};
tma=function(a,b,c){var d=a.started+4*a.i;c&&(d+=a.u);return Math.pow(b.Yg,d)};
SB=function(a,b){a[b]||(a[b]=new rma);return a[b]};
uma=function(a){this.B=null;this.I=this.C=this.u=0;this.i=a;this.D=a.clone()};
UB=function(a,b){if(YA(a.i))return!1;var c=SB(b,XA(a.i));if(1<=c.timedOut||1<=c.i)if(a=TB(a),b=SB(b,XA(a)),b.timedOut+b.i<=c.timedOut+c.i)return!0;return!1};
vma=function(a,b){a=b?TB(a):a.i;return new PB(a)};
TB=function(a){a.B||(a.B=ZA(a.D));return a.B};
VB=function(a,b){return XA(b?TB(a):a.i)};
wma=function(a,b){var c=a.C+b.Wo*(a.u-a.C);b=c>b.Oe?1E3*Math.pow(b.Yg,c-b.Oe):0;return 0===b?!0:a.I+b<(0,g.P)()};
WB=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.i=null;this.I=!1;this.C=null;this.S=0;this.D=this.B=null;this.info=b;this.u=new uma(a)};
XB=function(a,b){var c=g.r(a.info.id.split(";")),d=c.next().value;c=c.next().value;return d+";"+(b?0:a.info.lastModified)+";"+(void 0===c?"":c)};
YB=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
ZB=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new YB(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
$B=function(a,b){return new YB(a,a+b-1)};
xma=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
bC=function(a,b,c,d,e,f,h,l,m,n,p){this.type=a;this.i=b;this.range=c;this.S=[];this.I="";this.Ma=-1;this.I=void 0===d?"":d;this.Ma=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Bb=l||0;this.u=0<=m?m:this.range?this.range.length:NaN;this.B=!!n;a=this.range?this.Bb+this.u===this.range.length:void 0===p?!!this.u:p;this.Sd=a;this.range?(this.C=this.startTime+this.duration*this.Bb/this.range.length,this.K=this.duration*this.u/this.range.length,this.D=this.C+this.K):yma(this);3!==this.type||0<=
this.Ma||!this.i.Mg()||g.ky(new g.iw("b168859904",aC(this)))};
yma=function(a){a.C=a.startTime;a.K=a.duration;a.D=a.C+a.K};
zma=function(a,b,c){var d=!(!b||b.i!==a.i||b.type!==a.type||b.Ma!==a.Ma);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Bb+b.u===a.Bb+a.u:d};
cC=function(a){return 1===a.type||2===a.type};
dC=function(a){return 3===a.type||6===a.type};
eC=function(a,b){return a.i===b.i?a.range&&b.range?a.range.start+a.Bb+a.u===b.range.start+b.Bb:a.Ma===b.Ma?a.Bb+a.u===b.Bb:a.Ma+1===b.Ma&&0===b.Bb&&a.Sd:!1};
fC=function(a,b){return eC(a,b)||gg(a.D,b.C)||a.Ma+1===b.Ma&&0===b.Bb&&a.Sd?!0:!1};
Ama=function(a){1===a.length||g.Nm(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new YB(a[0].range.start+a[0].Bb,b.range.start+b.Bb+b.u-1)};
aC=function(a){a=gC(a);var b="";g.qe(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
gC=function(a){var b={};b.itag=a.i.info.jc();b.type=""+a.type;b.seg=String(a.Ma);a.range&&(b.range=""+(a.range.start+a.Bb)+"-"+(a.range.start+a.Bb+a.u-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.K).toFixed(1);b.off=String(a.Bb);b.len=String(a.u);a.Sd&&(b.end="1");a.B&&(b.eos="1");return b};
Bma=function(a,b){return a.i!==b.i?!1:4===a.type&&3===b.type&&a.i.Te()?(a=a.i.Yw(a),Jn(a,function(c){return Bma(c,b)})):a.Ma===b.Ma&&!!b.u&&b.Bb+b.u>a.Bb&&b.Bb+b.u<=a.Bb+a.u};
Cma=function(a,b){var c=b.i;a.I="updateWithEmsg";a.Ma=c;b.C&&(a.B=b.C)};
hC=function(a,b){var c=b.Ma;a.I="updateWithSegmentInfo";a.Ma=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,yma(a)};
iC=function(a,b){this.i=a;this.B=null;this.D=this.Qe=NaN;this.I=this.requestId=null;this.u=a[0].i.u;this.C=b||"";this.range=this.i[0].range&&0<this.i[0].u?Ama(this.i):null};
jC=function(a){return!cC(a.i[a.i.length-1])};
kC=function(a){return 4===a.i[a.i.length-1].type};
g.lC=function(a,b,c){if(a.B){var d=new PB(a.B);b.Dr&&(d.get("alr")||d.set("alr","yes"));a.C&&pma(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new PB(new g.UA(a.C)):(b=null===a.I?UB(a.u,c):a.I,d=vma(a.u,b),a.C&&pma(d,a.C));(b=a.range)&&d.set("range",b.toString());a.requestId&&d.set("req_id",a.requestId);isNaN(a.Qe)||d.set("headm",a.Qe.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.urlParams&&g.qe(a.urlParams,function(e,f){d.set(f,e)});
return d};
Dma=function(a){if(a.range)return a.range.length;a=a.i[0];return Math.round(a.K*a.i.info.Ob)};
Ema=function(a,b){var c=a.i[0];if(a.range)var d=$B(a.range.start,Math.min(4096,a.range.length));else{if(a.C&&0<=a.C.indexOf("/range/")||"1"===a.u.D.get("defrag")||"1"===a.u.D.get("otf"))return null;d=$B(0,4096)}d=new bC(5,c.i,d,"createProbeRequestInfo"+c.I,c.Ma);a=new iC([d],a.C);a.I=b;return a};
mC=function(a,b,c,d,e,f){f=void 0===f?0:f;WB.call(this,a,b,d,void 0);this.X=c;this.Ri=f;this.K=!0;this.index=e||new bB};
Fma=function(a,b,c,d,e){this.Ma=a;this.startSecs=b;this.durationSecs=c;this.i=d||NaN;this.u=e||NaN};
nC=function(a,b,c){for(;a;a=a.parentNode)if(a.attributes&&(!c||a.nodeName===c)){var d=a.getAttribute(b);if(d)return d}return""};
oC=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
Gma=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(Number(b[2])|0)+60*(Number(b[4])|0)+(Number(b[6])|0):Number(a)|0};
Hma=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
pC=function(){this.i=[];this.u=null;this.I=0;this.B=[];this.D=!1;this.K="";this.C=-1};
Ima=function(a){var b=a.B;a.B=[];return b};
Jma=function(){this.C=[];this.i=null;this.u={};this.B={}};
Nma=function(a,b,c){var d=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.parentNode.parentNode,h=null;"Period"===f.nodeName?h=Kma(a):"AdaptationSet"===f.nodeName?(f=f.getAttribute("id")||f.getAttribute("mimetype")||"",h=Lma(a,f)):"Representation"===f.nodeName&&(f=f.getAttribute("id")||"",h=Mma(a,f));if(null==h)return;h.update(e,c);Yb(d,Ima(h))}Yb(a.C,d);oaa(a.C,function(l){return 1E3*l.startSecs+l.i})};
Oma=function(a){a.i&&(a.i.i=[]);g.qe(a.u,function(b){b.i=[]});
g.qe(a.B,function(b){b.i=[]})};
Kma=function(a){a.i||(a.i=new pC);return a.i};
Lma=function(a,b){a.u[b]||(a.u[b]=new pC);return a.u[b]};
Mma=function(a,b){a.B[b]||(a.B[b]=new pC);return a.B[b]};
qC=function(a){var b=void 0===a?{}:a;a=void 0===b.Ri?0:b.Ri;var c=void 0===b.pk?!1:b.pk,d=void 0===b.Nl?0:b.Nl,e=void 0===b.qe?0:b.qe,f=void 0===b.vg?Infinity:b.vg,h=void 0===b.gw?0:b.gw;b=void 0===b.Ze?!1:b.Ze;this.segments=[];this.i=this.vu=-1;this.u=null;this.Eg=a;this.Nl=d;this.pk=c;this.qe=e;this.vg=f;this.gw=h;this.Ze=b};
sC=function(a,b,c){b=rC(a,b);return 0<=b&&(c||!a.segments[b].pending)};
rC=function(a,b){return fc(a.segments,function(c){return b-c.Ma})};
tC=function(a,b,c){c=void 0===c?{}:c;mC.call(this,a,b,"",void 0,void 0,c.Ri||0);this.index=new qC(c)};
uC=function(a,b,c){WB.call(this,a,b);this.K=c;this.index=new bB};
Pma=function(a,b,c){var d=a.index.getSegmentURL(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.Ob*f;var h=b===a.index.getLastSegmentNumber()&&0<c;a=new bC(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c,h);return new iC([a],d)};
Qma=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.I;b=b.K.split(",").filter(function(p){return 0<p.length});
for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new aB(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
vC=function(){this.count=0;this.B=1;this.u=!1;this.offsets=new Float64Array(128);this.i=new Float64Array(128)};
wC=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
xC=function(a){var b=this;a=void 0===a?[]:a;this.i=[];this.B=this.u=0;this.C=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
Rma=function(a,b){return 0===a.i.length?!1:(a=a.i[a.i.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
yC=function(a,b){b=g.r(b.i);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
zC=function(a){a.C=void 0;a.u=0;a.B=0};
AC=function(a,b,c){a.isFocused(b);return b-a.B+c<=a.i[a.u].length};
Sma=function(a){if(!a.C){var b=a.i[a.u];a.C=new DataView(b.buffer,b.byteOffset,b.length)}return a.C};
Tma=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!AC(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.i[a.u].length-e);for(var f=0,h=d;h<=a.u;h++)e.set(a.i[h],f),f+=a.i[h].length;a.i.splice(d,a.u-d+1,e);zC(a);a.focus(b)}d=a.i[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)};
BC=function(a,b,c){a=Tma(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
Uma=function(a){a=BC(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;c<a.length;c++)b[c]=a[c]}return b};
CC=function(a,b){a.focus(b);return a.i[a.u][b-a.B]};
Vma=function(a,b){a.focus(b);return AC(a,b,4)?Sma(a).getUint32(b-a.B):256*(256*(256*CC(a,b)+CC(a,b+1))+CC(a,b+2))+CC(a,b+3)};
DC=function(a,b,c){this.info=a;this.B=c;this.u=null;this.C=-1;this.timestampOffset=0;this.i=b instanceof xC?b:new xC([b])};
EC=function(a){return Tma(a.i)};
Wma=function(a,b){if(1!==a.info.i.info.containerType||a.info.Bb||!a.info.Sd)return!0;a=EC(a);for(var c=0,d=0;c+4<a.byteLength;){d=a.getUint32(c);if(!d)return!1;c+=d}return c!==a.byteLength?(b&&(b.lastboxlen=d.toString(),4<=a.byteLength&&(b.lastbytes=a.getUint32(a.byteLength-4).toString()),b.boxlen=c.toString(),b.bytelen=a.byteLength.toString()),!1):!0};
Xma=function(a,b){b=Math.min(b,a.info.u);var c=a.i.split(b),d=c.wz;c=c.Jq;var e=new bC(a.info.type,a.info.i,a.info.range,a.info.I,a.info.Ma,a.info.startTime,a.info.duration,a.info.Bb,b,!1,!1);d=new DC(e,d,a.B);a=new bC(a.info.type,a.info.i,a.info.range,a.info.I,a.info.Ma,a.info.startTime,a.info.duration,a.info.Bb+b,a.info.u-b,a.info.B,a.info.Sd);a=new DC(a,c,!1);return[d,a]};
Yma=function(a,b,c){var d;if(!(d=!eC(a.info,b.info)||a.info.Sd)){if(c=void 0===c?!1:c)c=b.i,c=!(c.i.length?Rma(a.i,c.i[0]):1);d=c}if(d)return null;c=new bC(a.info.type,a.info.i,a.info.range,a.info.I,a.info.Ma,a.info.startTime,a.info.duration,a.info.Bb,a.info.u,a.info.B,a.info.Sd);d=b.info;c.u+=d.u;c.range&&(c.K+=d.K);c.D=d.D;c.Sd=d.Sd;c.B=c.B||d.B;d=new xC;yC(d,a.i);yC(d,b.i);c=new DC(c,d,a.B);c.u=b.u||a.u;if(a=c.info.range)a=c.i,a=!(1===a.i.length&&0<a.i[0].byteOffset);a&&(c.B=!1);return c};
Zma=function(a){g.FC(a.info.i.info)||a.info.i.info.pe();if(-1!==a.C)return a.C;if(a.u&&Zla(a.u))return a.C=Zla(a.u),a.C;if(g.FC(a.info.i.info)){var b=EC(a);for(var c=a.info.i.i,d=NaN,e=NaN,f=0;uB(b,f);){var h=vB(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.rB(h):1952867444===h.type&&isNaN(d)&&(d=g.xB(h));f=wB(h.type)?f+8:f+h.size}!e&&c&&(e=sB(c));b=d/e}else b=new AB(EC(a)),c=a.B?b:new AB(new DataView(a.info.i.i.buffer)),d=NB(c),c=b.i,b.i=0,OB(b)?EB(b,231)?(d=
IB(b)*d/1E9,b.i=c,b=d):(b.i=c,b=NaN):(b.i=c,b=NaN);a.C=b||a.info.C;return a.C};
ana=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=Zma(a)+b;$ma(a,c);a.timestampOffset=b};
$ma=function(a,b){g.FC(a.info.i.info)||a.info.i.info.pe();a.C=b;if(g.FC(a.info.i.info)){var c=EC(a);a=a.info.i.i;for(var d=NaN,e=NaN,f=0;uB(c,f);){var h=vB(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.rB(h)));if(1952867444===h.type){!d&&a&&(d=sB(a));var l=g.xB(h);isNaN(e)&&(e=Math.round(b*d)-l);l+=e;if(h.data.getUint8(h.dataOffset)){var m=h.data,n=h.dataOffset+4;m.setUint32(n,Math.floor(l/4294967296));m.setUint32(n+4,l&4294967295)}else h.data.setUint32(h.dataOffset+
4,l)}f=wB(h.type)?f+8:f+h.size}return!0}c=new AB(EC(a));a=a.B?c:new AB(new DataView(a.info.i.i.buffer));d=NB(a);a=c.i;c.i=0;if(OB(c)&&EB(c,231))if(e=FB(c,!0),b=Math.floor(1E9*b/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;0<=d;d--)c.u.setUint8(c.i+d,b&255),b>>>=8;c.i=a;b=!0}else b=!1;return b};
GC=function(a,b){b=void 0===b?!1:b;var c=bna(a);a=b?0:a.info.K;return c||a};
bna=function(a){g.FC(a.info.i.info)||a.info.i.info.pe();if(a.u&&6===a.info.type)return a.u.Ri;if(g.FC(a.info.i.info)){var b=EC(a);var c=0;b=g.zB(b,1936286840);b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=ema(d.value),c+=d.EG[0]/d.JG;c=c||NaN;if(!(0<=c))a:{c=EC(a);b=a.info.i.i;for(var e=d=0,f=0;uB(c,d);){var h=vB(c,d);if(1836476516===h.type)e=g.rB(h);else if(1836019558===h.type){!e&&b&&(e=sB(b));if(!e){c=NaN;break a}var l=tB(h.data,h.dataOffset,1953653094),m=e,n=tB(l.data,l.dataOffset,1952868452);
l=tB(l.data,l.dataOffset,1953658222);var p=iB(n);iB(n);p&2&&iB(n);n=p&8?iB(n):0;var q=iB(l),t=q&1;p=q&4;var u=q&256,v=q&512,y=q&1024;q&=2048;var z=jB(l);t&&iB(l);p&&iB(l);for(var C=t=0;C<z;C++){var G=u?iB(l):n;v&&iB(l);p&&0===C||!y||iB(l);q&&iB(l);t+=G}f+=t/m}d=wB(h.type)?d+8:d+h.size}c=f||NaN}c||g.ky(new g.iw("Missing duration while parsing bmff",aC(a.info)))}else c=new AB(EC(a)),a=a.B?c:new AB(new DataView(a.info.i.i.buffer)),c=nma(c,NB(a));return c};
cna=function(a){var b=EC(a);var c=(c=g.qB(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.i.i,c=(b=g.qB(b,0,1836476516))?g.rB(b):a?sB(a):NaN);return c};
dna=function(a){if(!a.u){g.FC(a.info.i.info)||a.info.i.info.pe();if(g.FC(a.info.i.info))var b=g.gma(EC(a));else{b=new AB(EC(a));var c=b.i;b.i=0;var d=null,e=null;if(CB(b,[408125543,307544935]))for(var f=b.i+FB(b,!0);b.i<f;)if(29555!==FB(b,!1))JB(b);else for(var h=b.i+FB(b,!0);b.i<h;)if(26568!==FB(b,!1))JB(b);else for(var l=b.i+FB(b,!0);b.i<l;){var m=FB(b,!1);if(17543===m){if(m=lma(b),m=pB(m))if(e)for(var n=g.r(Object.keys(m)),p=n.next();!p.done;p=n.next())p=p.value,e[p]=m[p];else e=m}else 17827===
m?(m=lma(b),d||(d=m)):JB(b)}b.i=c;b=e?new oB(e,d):null}a.u=b}};
HC=function(a,b,c,d,e){WB.call(this,a,b,c,d);this.K=null;this.index=e?new e.NativeSegmentIndex:new vC};
IC=function(a,b,c,d){for(var e=[],f=b;f<=a.index.getLastSegmentNumber();f++){var h=$B(a.index.getOffset(f),a.index.getByteLength(f)),l=a.index.getStartTime(f),m=a.index.getDuration(f),n=Math.max(0,c-h.start),p=Math.min(h.end+1,c+d)-(h.start+n),q=f===a.index.getLastSegmentNumber()&&n+p===h.length;e.push(new bC(3,a,h,"getRequestInfoForRange",f,l,m,n,p,q));if(h.start+n+p>=c+d)break}e.length||g.jy(new g.iw("b189619593",""+b,""+c,""+d));return new iC(e)};
JC=function(a,b,c,d){this.sampleRate=a||0;this.numChannels=b||0;this.spatialAudioType=c||0;this.itag=d||""};
ena=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
LC=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||KC(a,b);this.i=g.EA[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.EA[this.quality],0===a?a="\u0410\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430":(b=this.fps,c=this.projectionType,a=a.toString()+(2===c||3===c||4===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));this.qualityLabel=a;this.u=l||"";this.primaries=m||""};
KC=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=MC[0];for(var d=0;d<MC.length;d++){var e=MC[d],f=g.EA[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
PC=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.Ob||(c.Ob=16E3);Object.assign(this,c);this.containerType=NC(b);this.i=OC[this.jc()]||""};
QC=function(a){return"9"===a.i||"("===a.i||"9h"===a.i||"(h"===a.i};
RC=function(a){return"9h"===a.i||"(h"===a.i};
SC=function(a){return"1"===a.i||"1h"===a.i};
g.FC=function(a){return 1===a.containerType};
TC=function(a){return"application/x-mpegURL"===a.mimeType};
fna=function(a){var b=navigator.mediaCapabilities;if(!b||"f"===a.i)return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:8*a.Ob||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:a.audio.numChannels||2,bitrate:8*a.Ob||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.u=d})};
UC=function(a){return a.includes("vtt")||a.includes("text/mp4")};
NC=function(a){return 0<=a.indexOf("/mp4")?1:0<=a.indexOf("/webm")?2:0<=a.indexOf("/x-flv")?3:0<=a.indexOf("/vtt")?4:0};
gna=function(a,b,c,d,e){var f=new JC;b in g.EA||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.EA[b],d=Math.round(16*e/9));d=new LC(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new PC(c,a,{audio:f,video:d})};
VC=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.WC=function(){Kx.apply(this,arguments)};
XC=function(){var a=g.Ha("yt.player.utils.videoElement_");a||(a=g.Ng("VIDEO"),g.Ga("yt.player.utils.videoElement_",a,void 0));return a};
YC=function(a){var b=XC();return!!(b&&b.canPlayType&&b.canPlayType(a))};
hna=function(a){try{var b=ZC('video/mp4; codecs="avc1.42001E"')||ZC('video/webm; codecs="vp9"');return(ZC('audio/mp4; codecs="mp4a.40.2"')||ZC('audio/webm; codecs="opus"'))&&(b||!a)||YC('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
ZC=function(a){if(/opus/.test(a)&&g.lj&&!(0,Kr)("38")&&!g.ru())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!vu())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!YC(a)};
$C=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
aD=function(){var a=XC();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
bD=function(){var a=XC();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
cD=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
dD=function(a,b,c){b=void 0===b?",":b;c=void 0===c?a?a.length:0:c;var d=[];if(a)for(c=Math.max(a.length-c,0);c<a.length;c++)d.push(a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3));return d.join(b)};
eD=function(a,b){if(!a)return-1;try{for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c}catch(d){}return-1};
fD=function(a,b){return 0<=eD(a,b)};
ina=function(a,b){if(!a)return NaN;b=eD(a,b);return 0<=b?a.start(b):NaN};
gD=function(a,b){if(!a)return NaN;b=eD(a,b);return 0<=b?a.end(b):NaN};
hD=function(a){return a&&a.length?a.end(a.length-1):NaN};
jna=function(a,b){a=gD(a,b);return 0<=a?a-b:0};
iD=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;f++)a.end(f)<b||a.start(f)>c||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return cD(d,e)};
jD=function(a,b,c,d){g.Q.call(this);var e=this;this.Cd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.MK={error:function(){!e.isDisposed()&&e.isActive&&e.ea("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.ea("updateend",e)}};
Nx(this.Cd,this.MK);this.Gx=this.isActive};
g.kD=function(a){var b=[];if(a){a=g.r(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;void 0!==d&&(d="boolean"===typeof d?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")};
g.lD=function(a,b,c){c=void 0===c?{}:c;this.errorCode=a;this.i=b;this.details=c};
mD=function(a,b){b=void 0===b?!1:b;if(a instanceof g.lD)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.jy(a):g.ky(a);return new g.lD(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
nD=function(a,b,c,d,e){var f;g.Q.call(this);var h=this;this.Wb=a;this.Ke=b;this.id=c;this.containerType=d;this.isVideo=e;this.tL=this.Mz=this.Ue=null;this.appendWindowStart=this.timestampOffset=0;this.nJ=cD([],[]);this.py=!1;this.Ae=function(l){return h.ea(l.type,h)};
if(null===(f=this.Wb)||void 0===f?0:f.addEventListener)this.Wb.addEventListener("updateend",this.Ae),this.Wb.addEventListener("error",this.Ae)};
oD=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
pD=function(a,b){this.i=a;this.u=void 0===b?!1:b;this.B=!1};
qD=function(a,b,c){c=void 0===c?!1:c;g.E.call(this);this.mediaSource=a;this.Ke=b;this.isView=c;this.B=0;this.callback=null;this.events=new g.WC(this);g.H(this,this.events);this.hw=new pD(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Ke.webkitMediaSourceURL,!0);a=this.mediaSource||this.Ke;Lx(this.events,a,["sourceopen","webkitsourceopen"],this.UV);Lx(this.events,a,["sourceclose","webkitsourceclose"],this.TV)};
kna=function(a,b){rD(a)?(0,g.ih)(function(){b(a)}):a.callback=b};
rD=function(a){try{return"open"===sD(a)}catch(b){return!1}};
sD=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Ke.webkitSourceState){case a.Ke.SOURCE_OPEN:return"open";case a.Ke.SOURCE_ENDED:return"ended";default:return"closed"}};
tD=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
lna=function(a,b,c,d){if(!a.i||!a.u)return null;var e=a.i.isView()?a.i.Cd:a.i,f=a.u.isView()?a.u.Cd:a.u,h=new qD(a.mediaSource,a.Ke,!0);h.hw=a.hw;e=new jD(e,b,c,d);b=new jD(f,b,c,d);h.i=e;h.u=b;g.H(h,e);g.H(h,b);rD(a)||a.i.bB(a.i.Uc());return h};
mna=function(a,b){return uD(function(c,d){return g.cu(c,d,4,1E3)},a,b)};
g.nna=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=eB(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
uD=function(a,b,c){b.match(ona);return a(b,c).then(function(d){var e=g.nna(d.xhr);return e?uD(a,e,c):d.xhr})};
vD=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.Q.call(this);this.sourceUrl=a;this.isLivePlayback=c;this.La=this.duration=0;this.Ze=this.S=this.isLive=this.B=!1;this.vg=this.qe=0;this.isOtf=this.tf=!1;this.Ba=(0,g.P)();this.X=Infinity;this.i={};this.state=this.oa=0;this.timeline=null;this.isManifestless=!1;this.Z=[];this.C=null;this.va=0;this.Sa="";this.Aa=NaN;this.K=this.I=this.D=this.timestampOffset=this.u=0;this.Wa=!!b&&b.ob("html5_live_nonzero_first_segment_start_time");
this.bb=!!b&&b.ob("html5_live_self_init_segments");this.withCredentials=!b||!b.ob("html5_manifest_without_credentials");this.Ka=!!b&&b.ob("disable_html5_manifest_namespace_redux");this.Va=b&&b.ob("disable_html5_duration_caching")?Infinity:10;this.Za=!!b&&b.ob("html5_reset_index_on_mismatch");pna=!!b&&b.ob("html5_modern_vp9_mime_type");this.Ha=!!b&&b.ob("html5_unrewrite_timestamps")};
Kla=function(a){return g.te(a.i,function(b){return!!b.info.video&&b.info.video.isHdr()})};
QA=function(a){return g.te(a.i,function(b){return!!b.info.Ed})};
qna=function(a){return g.te(a.i,function(b){return UC(b.info.mimeType)})};
rna=function(a){return g.te(a.i,function(b){return b.info.video?2===b.info.video.projectionType:!1})};
sna=function(a){return g.te(a.i,function(b){return b.info.video?3===b.info.video.projectionType:!1})};
tna=function(a){return g.te(a.i,function(b){return b.info.video?4===b.info.video.projectionType:!1})};
una=function(a){return g.te(a.i,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
vna=function(a){return ue(a.i,function(b){return b.info.video?b.MF():!0})};
KA=function(a){return g.te(a.i,function(b){return YA(b.u.i)})};
wna=function(a){return g.te(a.i,function(b){return!(b.index instanceof vC)})};
wD=function(a,b){a.i[b.info.id]=b};
Ana=function(a,b,c,d,e,f){var h=xna(a);if(d||e){c=new vD("",null===f||void 0===f?void 0:f.experiments,!0);a=g.r(a);for(d=a.next();!d.done;d=a.next()){var l=d.value;d=xD(l,b);f=yD(l.url,l.sp,l.s);h=Number(l.target_duration_sec)||5;l=Number(l.max_dvr_duration_sec)||14400;var m=Number(f.get("mindsq")||f.get("min_sq")||"0"),n=Number(f.get("maxdsq")||f.get("max_sq")||"0")||Infinity;c.qe=c.qe||m;c.vg=c.vg||n;var p=!UC(d.mimeType);f&&wD(c,new tC(f,d,{Ri:h,pk:p,Nl:l,qe:m,vg:n,gw:300,Ze:e}))}c.B=!e;c.tf=!0;
c.isManifestless=!0;c.isLive=!e;c.Ze=e;c.S=!!c.qe&&!!c.vg&&isFinite(c.vg);b=c}else b=3===h?yna(a,b,c,null===f||void 0===f?void 0:f.experiments):zna(a,b,c,f);return b};
zna=function(a,b,c,d){c=void 0===c?0:c;var e=new vD("",null===d||void 0===d?void 0:d.experiments,!1);e.duration=c||0;g.jc(a,function(f){var h=xD(f,b,e.duration),l=ZB(f.init),m=ZB(f.index);(f=yD(f.url,f.sp,f.s))&&wD(e,new HC(f,h,l,m,null===d||void 0===d?void 0:d.gj))});
return e};
yna=function(a,b,c,d){c=void 0===c?0:c;var e=new vD("",d,!1);e.duration=c||0;g.jc(a,function(f){var h=xD(f,b,e.duration),l=yD(f.url,f.sp,f.s);if(l)if(3===h.streamType)wD(e,new uC(l,h,"sq/0"));else{var m=ZB(f.init);f=ZB(f.index);wD(e,new HC(l,h,m,f))}});
e.isOtf=!0;return e};
xD=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var h=(a.size||"640x360").split("x");h=new LC(+h[0],+h[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);f=h;null===zD&&(zD=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));
if(pna&&window.MediaSource&&MediaSource.isTypeSupported)!zD&&0<d.indexOf("vp09.00")?d='video/webm; codecs="vp9"':!zD&&0<d.indexOf("vp09.02")&&(d='video/webm; codecs="vp9.2"');else if((zD||Bna)&&('video/webm; codecs="vp9"'===d||'video/webm; codecs="vp9.2"'===d)){var l="00",m="08",n="01",p="01",q="01";'video/webm; codecs="vp9.2"'===d&&(l="02",m="10","bt2020"===f.primaries&&(q=n="09"),"smpte2084"===f.u&&(p="16"),"arib-std-b67"===f.u&&(p="18"));d='video/webm; codecs="'+["vp09",l,"51",m,"01",n,p,q,"00"].join(".")+
'"'}}var t;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var u=new JC(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type);a.name&&(t=new VC(a.name,a.audio_track_id,"1"===a.isDefault))}var v;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(v=new ena(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));f=Number(a.bitrate)/8;l=Number(a.clen);m=Number(a.lmt);c=c&&l?l/c:0;if(b&&a.drm_families){var y={};n=g.r(a.drm_families.split(","));for(p=
n.next();!p.done;p=n.next())p=p.value,y[p]=b[p]}return new PC(e,d,{audio:u,video:h,zc:t,Ed:y,Ob:f,Mu:c,contentLength:l,lastModified:m,captionTrack:v,streamType:+a.stream_type})};
xna=function(a){return Jn(a,function(b){return 3===+b.stream_type})?3:0};
Cna=function(a,b){return a.timeline?Zb(a.timeline.C,b):a.Z.length?Zb(a.Z,b):[]};
yD=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.UA(a,!0);a.set("alr","yes");c&&(c=Pla(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
Gna=function(a,b){var c=nC(b,"id");c=c.replace(":",";");var d=nC(b,"mimeType"),e=nC(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(nC(b,"bandwidth"))/8;var f=Number(oC(b,"BaseURL").getAttribute(AD(a,"contentLength"))),h=a.duration&&f?f/a.duration:0;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var l=Number(nC(b,"width"));var m=Number(nC(b,"height")),n=Number(nC(b,"frameRate")),p=Dna(nC(b,AD(a,"projectionType")));a:switch(nC(b,AD(a,"stereoLayout"))){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=
2;break a;default:q=0}l=new LC(l,m,n,p,q)}if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var t=Number(nC(b,"audioSamplingRate"));var u=Number(nC(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=Ena(nC(b,AD(a,"spatialAudioType")));t=new JC(t,u,m);a:{u=nC(b,"lang")||"und";if(m=oC(b,"Role"))if(p=nC(m,"value")||"",ze(Fna,p)){m=u+"."+Fna[p];n="main"===p;a=nC(b,AD(a,"langName"))||u+" - "+p;u=new VC(a,m,n);break a}u=void 0}}if(b=oC(b,"ContentProtection"))if("http://youtube.com/drm/2012/10/10"===
b.getAttribute("schemeIdUri")){var v={};for(b=b.firstChild;null!=b;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(v[a]=m.trim()))}else v=void 0;return new PC(c,d,{audio:t,video:l,zc:u,Ed:v,Ob:e,Mu:h,contentLength:f})};
Dna=function(a){switch(a){case "equirectangular":return 2;case "equirectangular_threed_top_bottom":return 3;case "mesh":return 4;case "rectangular":return 1;default:return 0}};
Ena=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return 1;case "spatial_audio_type_ambisonics_quad":return 2;case "spatial_audio_type_foa_with_non_diegetic":return 3;default:return 0}};
Ina=function(a,b){b=void 0===b?"":b;a.state=1;a.Ba=(0,g.P)();return g.yh(mna(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.withCredentials}).then(function(c){if(!a.isDisposed()){a.oa=c.status;c=c.responseText;var d=new DOMParser;c=Sj(d,zr(c)).getElementsByTagName("MPD")[0];a.X=1E3*Gma(nC(c,"minimumUpdatePeriod"))||Infinity;if(!a.Ka){b:{if(c.attributes){d=g.r(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];
break b}}d=""}a.Sa=d}a.isLive=Infinity>a.X&&a.isLivePlayback;a.La=Number(nC(c,AD(a,"earliestMediaSequence")))||0;if(d=Date.parse(Hma(nC(c,AD(a,"mpdResponseTime")))))a.va=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Nm(c.getElementsByTagName("Period"),a.BW,a);a.state=2;a.ea("loaded");Hna(a)}return a}),function(c){if(c instanceof au){var d=c.xhr;
a.oa=d.status}a.state=3;a.ea("loaderror");return sh(d)})};
Jna=function(a,b,c){return Ina(new vD(a,b,c),a)};
BD=function(a){return a.isLive&&(0,g.P)()-a.Ba>=a.X};
Hna=function(a){var b=a.X;isFinite(b)&&(BD(a)?a.refresh():(b=Math.max(0,a.Ba+b-(0,g.P)()),a.C||(a.C=new g.I(a.refresh,b,a),g.H(a,a.C)),a.C.start(b)))};
Kna=function(a){a=a.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0};
CD=function(a){return a.D&&(a.u||a.Ha)?a.D-(a.u||a.timestampOffset):0};
DD=function(a){return a.I&&(a.u||a.Ha)?a.I-(a.u||a.timestampOffset):0};
ED=function(a){if(!isNaN(a.Aa))return a.Aa;var b=a.i,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.getFirstSegmentNumber();c<=d.getLastSegmentNumber();c++)b+=d.getDuration(c);b/=d.getNumberOfSegments();b=.5*Math.round(b/.5);d.getNumberOfSegments()>a.Va&&(a.Aa=b);return b}if(a.isLive&&(d=b[c],d.Ri))return d.Ri}return NaN};
Lna=function(a,b){a=Ce(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:c<a.getLastSegmentNumber()?a.getStartTime(c+1):NaN};
Mna=function(a,b){g.qe(a.i,function(c){g.qe(b,function(d,e){var f=c.u;f.i.set(e,d);f.D.set(e,d);f.B&&f.B.set(e,d)})})};
Nna=function(a,b){if(!a.i["0"]){var c=new PC("0","fakesb",{video:new LC(0,0,0,void 0,void 0,"auto")});a.i["0"]=b?new mC(new g.UA("http://www.youtube.com/videoplayback"),c,"fake"):new HC(new g.UA("http://www.youtube.com/videoplayback"),c,new YB(0,0),new YB(0,0))}};
FD=function(a,b,c){for(var d in a.i){var e=UC(a.i[d].info.mimeType)||a.i[d].info.isVideo();if(c===e){e=a.i[d].index;var f=rC(e,b);0<=f&&e.segments.splice(f,1)}}};
AD=function(a,b){return a.Ka?"yt:"+b:a.Sa+":"+b};
Ona=function(a){a.I=0;a.D=0;a.K=0};
Pna=function(){var a=g.Ay("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.dg(Math.floor(b),0,100),muted:!!a.muted}};
Qna=function(a){g.zy("yt-player-bandwidth",a,2592E3)};
GD=function(a){a=void 0===a?2592E3:a;if(0<a&&!(yka()>(0,g.P)()-1E3*a))return 0;a=g.Ay("yt-player-quality");if("string"===typeof a){if(a=g.EA[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
Rna=function(){var a=g.Ay("yt-player-quality");if(a instanceof Object&&a.quality&&a.previousQuality){if(a.quality>a.previousQuality)return 1;if(a.quality<a.previousQuality)return-1}return 0};
Sna=function(){var a={values:{},Wl:{}};try{var b=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);a.values=b.values;a.halfLives=b.halfLives}catch(c){}return a};
Tna=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
ID=function(a,b){return+HD()[Tna(a,b)]||8192};
HD=function(){return g.Ay("yt-player-performance-cap")||{}};
Una=function(a){g.zy("yt-player-watch-later-pending",a)};
Vna=function(){return!!g.Ay("yt-player-headers-readable")};
Wna=function(a,b){g.zy("yt-player-bandaid-host",{primary:a,secondary:b},864E3)};
Xna=function(a){g.zy("yt-player-playback-on-reload",a)};
Yna=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.Zna=function(){var a=g.Ay("yt-player-caption-language-preferences");return a?a:[]};
$na=function(){this.Gb=this.i=this.Ka=this.I=this.D=this.va=this.Ha=this.Za=this.Wa=!1;this.X=this.S=0;this.rb=!1;this.bb=!0;this.jb=this.kb=!1;this.B=0;this.Z=!1;this.Eb=Infinity;this.SC=!1;this.Nb=!0;this.Va=this.Sa=!1;this.u={};this.Db=this.La=this.wb=this.Aa=this.K=this.Ba=!1;this.xe=0;this.vb=!1};
Lla=function(a){if(a.Za)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Z&&(b.unshift("1"),b.unshift("1h"));a.i&&b.unshift("h");a.oa&&(b=(aoa[a.oa]||[a.oa]).concat(b));return b};
Jla=function(a){var b=["o","a","A"];1===a.xe&&(a.va&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.I&&(b=["meac3","MEAC3"].concat(b)));a.Wa&&(b=["so","sa"].concat(b));!a.Gb||a.Ka||a.C||b.unshift("a");a.Ha&&b.unshift("ah");a.C&&(b=(aoa[a.C]||[a.C]).concat(b));return b};
JD=function(a,b,c){b=void 0===b?{}:b;var d;if(OA(a.B,PA.AV1_CODECS)&&OA(a.B,PA.HEIGHT)&&OA(a.B,PA.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=Yna();if(e)return b.localPref=e}catch(h){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;qu()&&(b.isArm=1,a=240);if(c){e=c.videoInfos.find(function(h){return SC(h)});
if(e=null===(d=null===e||void 0===e?void 0:e.u)||void 0===d?void 0:d.powerEfficient)a=8192,b.isEfficient=1;c=c.videoInfos[0].video;var f=Math.min(ID("1",c.fps),ID("1",30));b.perfCap=f;a=Math.min(a,f);c.isHdr()&&!e&&(b.hdr=1,a*=.75)}else c=ID("1",30),b.perfCap30=c,a=Math.min(a,c),c=ID("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
LD=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.C=c;this.experiments=d;this.i={};this.u=this.keySystemAccess=null;this.I=this.K=-1;this.B=null;this.D="";this.S=!!d&&d.ob("edge_nonprefixed_eme");this.D=d?g.KD(d,"html5_hdcp_probing_stream_url"):""};
ND=function(a){return a.S?!1:!a.keySystemAccess&&!!MD()&&"com.microsoft.playready"===a.keySystem};
OD=function(a){return"com.microsoft.playready"===a.keySystem};
PD=function(a){return!a.keySystemAccess&&!!MD()&&"com.apple.fps.1_0"===a.keySystem};
QD=function(a){return"com.youtube.fairplay"===a.keySystem};
g.RD=function(a){return"fairplay"===a.flavor};
MD=function(){var a=window,b=a.MSMediaKeys;xu()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
SD=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.lj&&!g.ru())return(0,Kr)("45");if(g.Pw||g.Cc)return a.ob("edge_nonprefixed_eme");if(g.mj)return(0,Kr)("47");if(g.nj){if(a.ob("html5_enable_safari_fairplay"))return!1;if(a=g.S(a,"html5_safari_desktop_eme_min_version"))return(0,Kr)(a)}return!0};
boa=function(a,b,c,d){var e=tu(),f=(c=e||c&&xu())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(f.unshift("com.youtube.widevine.l3"),e&&d&&f.unshift("com.youtube.widevine.forcehdcp"));return c?f:a?[].concat(g.la(f),g.la(TD.playready)):[].concat(g.la(TD.playready),g.la(f))};
UD=function(a,b,c,d,e){d=void 0===d?!1:d;g.E.call(this);this.experiments=b;this.useCobaltWidevine=d;this.Ca=e;this.i=[];this.u={};this.C={};this.callback=null;this.D=!1;this.B=[];this.initialize(a,!c);this.ma()};
doa=function(a,b){a.callback=b;a.B=[];SD(a.experiments)?VD(a):coa(a)};
VD=function(a){if(!a.isDisposed())if(0===a.i.length)a.callback(a.B);else{var b=a.i[0],c=a.u[b],d=eoa(a,c);a.ma();navigator.requestMediaKeySystemAccess(b,d).then($s(function(e){if(!a.isDisposed()){a.ma();c.keySystemAccess=e;if(OD(c)){e=XC();for(var f=g.r(Object.keys(a.C[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.i[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.r(e.audioCapabilities),h=f.next();!h.done;h=f.next())foa(a,c,h.value);if(e.videoCapabilities)for(e=
g.r(e.videoCapabilities),f=e.next();!f.done;f=e.next())foa(a,c,f.value)}a.B.push(c);a.useCobaltWidevine?(a.i.shift(),VD(a)):a.callback(a.B)}}),$s(function(){a.ma();
a.D=!a.D&&"widevine"===a.u[a.i[0]].flavor;a.D||a.i.shift();VD(a)}))}};
foa=function(a,b,c){a.N("log_robustness_for_drm")?b.i[c.contentType]=c.robustness||!0:b.i[c.contentType]=!0};
eoa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};OD(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.r(Object.keys(a.C[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.D?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.lj&&ou("windows nt")&&!a.N("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),
f=e,a.N("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.N("html5_query_sw_secure_crypto_for_android")&&(Du()||pu())&&(a.Ca("swcrypto","1"),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
coa=function(a){if(MD()&&g.nj)a.ma(),a.B.push(new LD("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=goa(),c=g.Mb(a.i,function(d){var e=a.u[d],f=!1,h=!1,l;for(l in a.C[e.flavor])b(l,d)&&(e.i[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c?(a.ma(),a.B.push(a.u[c])):a.ma();a.i=[]}a.callback(a.B)};
goa=function(){var a=MD();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=XC();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
hoa=function(){this.i=0};
ioa=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=ct(b||"","&");var c={};g.jc(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.S=function(a,b){return Number(a.flags[b])||0};
g.KD=function(a,b){return(a=a.flags[b])?a.toString():""};
WD=function(a,b,c){this.experiments=a;this.Z=b;this.oa=void 0===c?!1:c;this.I=!!g.Ha("cast.receiver.platform.canDisplayType");this.D={};this.S=!1;this.i=new Map;this.K=!0;this.C=!this.experiments.ob("html5_disable_protected_hdr");this.u=!1;this.X=this.experiments.ob("html5_disable_vp9_encrypted");a=g.Ha("cast.receiver.platform.getValue");this.B=!this.I&&a&&a("max-video-resolution-vpx")||null};
Ela=function(a,b,c){c=void 0===c?1:c;var d,e=b.jc();if("0"===e||a.experiments.ob("html5_blocking_media_capabilities")&&(null===(d=b.u)||void 0===d?0:d.supported))return!0;var f=b.mimeType;if(b.pe()&&tu()&&a.experiments.ob("html5_appletv_disable_vp9"))return"dwebm";if(SC(b)&&a.S)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(OA(a,PA.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";
if("338"===e&&!(g.lj?Kr(53):g.mj&&Kr(64)))return"dopus";var h=c;h=void 0===h?1:h;c={};b.video&&(b.video.width&&(c[PA.WIDTH.name]=b.video.width),b.video.height&&(c[PA.HEIGHT.name]=b.video.height),b.video.fps&&(c[PA.FRAMERATE.name]=b.video.fps*h),b.video.u&&(c[PA.EOTF.name]=b.video.u),b.Ob&&(c[PA.BITRATE.name]=8*b.Ob*h),"("===b.i&&(c[PA.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(c[PA.DECODETOTEXTURE.name]="true");b.audio&&
b.audio.numChannels&&(c[PA.CHANNELS.name]=b.audio.numChannels);a.u&&QC(b)&&(c[PA.EXPERIMENTAL.name]="allowed");h=g.r(Object.keys(PA));for(var l=h.next();!l.done;l=h.next()){l=PA[l.value];var m;if(m=c[l.name])(m=l===PA.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(m=b,m=a.experiments.ob("html5_ignore_h264_framerate_cap")&&l===PA.FRAMERATE&&("H"===m.i||"h"===m.i)),m=!(m||l===PA.DECODETOTEXTURE&&!a.experiments.ob("html5_decode_to_texture_cap"));if(m)if(OA(a,l))if(a.B){if(a.B[l.name]<c[l.name])return l.name}else f=
f+"; "+l.name+"="+c[l.name];else if(RC(b)&&l===PA.EOTF)return"dvp92"}!a.experiments.ob("disable_html5_cast_hdcp_filter2")&&a.I&&b.video&&1080<b.video.i&&b.Ed&&(f+="; hdcp=2.2");return"227"!==e||a.experiments.ob("html5_enable_1080p_hq_cenc")?"585"!==e&&"588"!==e&&"583"!==e&&"586"!==e&&"584"!==e&&"587"!==e&&"591"!==e&&"592"!==e||a.experiments.ob("html5_enable_new_hvc_enc")?a.isTypeSupported(f)?!0:"tpus":"newhvc":"hqcenc"};
XD=function(){var a=pu()&&!Kr(29),b=ou("google tv")&&ou("chrome")&&!Kr(30),c=tu();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
joa=function(a,b,c){var d=480;b=g.r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,!(1080<e.video.i)&&Ela(a,e,c)){d=e.video.i;break}return d};
g.YD=function(a,b){b=void 0===b?!1:b;return XD()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(XC(),"application/x-mpegURL")?!0:!1};
OA=function(a,b){b.name in a.D||(a.D[b.name]=koa(a,b));return a.D[b.name]};
koa=function(a,b){if(a.B)return!!a.B[b.name];if(b===PA.BITRATE&&a.experiments.ob("html5_ignore_bad_bitrates")&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===PA.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.invalid);if(b.video){var c='video/webm; codecs="vp9"';a.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c=
'audio/webm; codecs="opus"',a.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return a.isTypeSupported(c+"; "+b.name+"="+b.valid)&&!a.isTypeSupported(c+"; "+b.name+"="+b.invalid)};
ZD=function(){g.Q.call(this);this.items={}};
$D=function(a,b,c,d){function e(h){var l,m=!(204!==h.status&&200!==h.status&&!h.response);h={succ:""+ +m,rc:h.status,lb:(null===(l=h.response)||void 0===l?void 0:l.byteLength)||0,rt:((0,g.P)()-f).toFixed(),shost:g.ti(a),trigger:b};c&&c(h);d&&!m&&d(new g.lD("pathprobe.net",!1,h))}
var f=(0,g.P)();g.Yt(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
aE=function(a,b){g.E.call(this);this.experiments=a;this.C=b;this.B=[];this.i=g.Ay("yt-player-bandaid-host")};
loa=function(a){var b;(a=null===(b=a.i)||void 0===b?void 0:b.primary)&&g.Yt("https://"+a+"/initplayback?owc=1",{timeout:5E3})};
moa=function(a){loa(a);var b=g.S(a.experiments,"html5_onesie_prewarm_interval_ms"),c=g.S(a.experiments,"html5_onesie_prewarm_max_lact_ms");b&&c&&(a.u=Rt(function(){a.C()<c&&loa(a)},b))};
noa=function(){var a,b,c,d,e;return g.A(function(f){if(1==f.i)return a={format:"RAW",timeout:5E3},g.x(f,bu("https://redirector.googlevideo.com/initplayback?alr=yes&id=%s",a),2);b=f.u;if(200!==b.xhr.status||!b.xhr.responseText)return f.return(null);c=b.xhr.responseText;d=/https:\/\/(.*\.googlevideo.com)/;e=c.match(d);return f.return(e?e[1]:null)})};
ooa=function(a,b,c){$D("https://"+b+"/videoplayback?probe=1",c,function(d){a.B.push(d)})};
poa=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
qoa=function(a){var b=a.B;a.B=[];return b};
roa=function(a,b){this.encryptedClientKey=b;this.i=new Uint8Array(a.buffer,0,16);this.u=new Uint8Array(a.buffer,16)};
bE=function(a){try{return Dc(a)}catch(b){return null}};
soa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?bE(b.clientKey):null;var c=b.encryptedClientKey?bE(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.P)():null;a&&c&&d&&(this.i=new roa(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=bE(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
cE=function(a){this.i=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)};
dE=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.u=!1;this.C=!0;this.i=Math.round(a*this.resolution);this.values=Array(this.i);for(a=0;a<this.i;a++)this.values[a]=Infinity;this.I=toa(this);this.B=c;this.D=d};
toa=function(a){for(var b=Array(a.i),c=0;c<a.i;c++)b[c]=c;return b};
eE=function(a,b){if(!a.u&&0===a.valueIndex)return 0;a.C&&(g.gc(a.I,function(c,d){return a.values[c]-a.values[d]}),a.C=!1);
return a.values[a.I[Math.round(b*((a.u?a.i:a.valueIndex)-1))]]||0};
uoa=function(a){var b=new hoa;this.policy=a;this.va=b;this.Z=this.oa=0;this.D=-1;this.X=!1;this.S=this.C=fE();this.K=new dE(4,1,.6,.4);this.i=new dE(10,1,.5,.4);this.B=a.i?new cE(a.u):new dE(a.u,20,.5,.4);this.I=new dE(5,1,.25);this.u=new dE(30,1,.5);a=g.Ay("yt-player-bandwidth")||{};b=this.policy.B;0<a.byterate&&(b=a.byterate,this.X=!0);this.B.Kg(this.policy.D,b);0<a.delay&&this.K.Kg(1,Math.min(a.delay,2));0<a.stall&&this.i.Kg(1,a.stall);0<a.init&&(this.S=Math.min(a.init,this.S));this.D=fE()};
gE=function(a){a=a.K.jg();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
voa=function(a,b,c){isNaN(c)||(a.Z+=c);isNaN(b)||(a.oa+=b)};
hE=function(a){a=a.B.jg();return 0<a?a:1};
iE=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=hE(a);d=1/((a.i.jg()||0)+1/d);var e=a.I.jg();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+gE(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((eE(a.u,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
jE=function(a){return{delay:gE(a),stall:a.i.jg()||0,byterate:hE(a),init:a.S}};
kE=function(a){-1<a.D&&3E4<fE()-a.D&&(Qna(jE(a)),a.D=fE(),a.X=!0)};
woa=function(a){return 4E3<=fE()-a.C};
xoa=function(){this.u=17;this.B=13E4;this.D=.5;this.C=this.i=!1};
yoa=function(a,b,c){var d=new xoa;a&&(d.i=!0,d.D=.1);c.ob("html5_pctile_bandwidth_estimator")&&(d.i=!1);b&&(d.B=b/8);d.C=480<=GD();return d};
Aoa=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.E.call(this);var c=this;this.values=a;this.Wl=b;this.u={};this.B=this.i=0;this.C=new g.I(function(){zoa(c)},1E4);
g.H(this,this.C)};
lE=function(a,b){Boa(a,b);return a.values[b]&&a.Wl[b]?a.values[b]/Math.pow(2,a.i/a.Wl[b]):0};
Boa=function(a,b){a.values[b]||(b=Sna(),a.values=b.values||{},a.Wl=b.halfLives||{},a.u=b.values?Object.assign({},b.values):{})};
zoa=function(a){var b=Sna();if(b.values){b=b.values;for(var c={},d=g.r(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.u[e]&&(a.values[e]+=b[e]-a.u[e]),c[e]=lE(a,e);a.u=c}b=a.Wl;c={};c.values=a.u;c.halfLives=b;g.zy("yt-player-memory",c,2592E3)};
mE=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
nE=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
oE=function(a,b){return void 0===b||null===b?a:Number(b)};
pE=function(a,b){return void 0===b||null===b?a:b.toString()};
Coa=function(a){if(!a)return null;var b=a.split("x");if(2!==b.length)return null;a=Number(b[0]);b=Number(b[1]);return isNaN(a)||isNaN(b)||0>=a*b?null:new g.jg(a,b)};
qE=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(Doa))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
rE=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.O("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
PE=function(a,b,c){var d,e,f;g.E.call(this);var h=this;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Oe=this.Nb=this.Aa=this.ye=this.userDisplayName=this.userDisplayImage="";this.deviceParams={};this.controlsType="0";this.ue=NaN;this.Eb=!1;this.Wa=0;this.Ui=this.Tj=!1;this.bj=!0;this.Ni=this.fc=!1;this.gj=null;this.gk=Wx(4);this.qc=this.useLivingRoomPoToken=!1;a=a?g.Je(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);
this.experiments=new ioa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.Za=b?b.serializedForcedExperimentIds:pE("",a.forced_experiments)||void 0;this.cspNonce=(null===b||void 0===b?0:b.cspNonce)&&!this.N("fill_csp_nonce_from_wpcc_killswitch")?b.cspNonce:pE("",a.csp_nonce);this.N("web_player_deprecated_uvr_killswitch");try{var l=document.location.toString()}catch(G){l=""}this.Zb=l;this.ancestorOrigins=(l=window.location.ancestorOrigins)?Array.from(l):[];l=!this.N("web_player_context_config_embeds_fields_killswitch");
this.i=mE(!1,b&&l?b.isEmbed:a.is_embed);b&&b.device?Eoa(this,b.device):(this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER");b&&!this.N("wpcc_loader_url_killswitch")?this.loaderUrl=this.i||sE(this)&&b.loaderUrl?b.loaderUrl||"":this.Zb:this.loaderUrl=this.i||sE(this)&&a.loaderUrl?pE("",a.loaderUrl):this.Zb;this.N("embeds_js_api_set_1p_cookie")&&(this.embedsTokenValue=pE("",a.embedsTokenValue));this.u=Vy(this.loaderUrl,Foa);this.rl=Ska(this.loaderUrl);
this.La=mE(!1,a.privembed);this.protocol=0===this.Zb.indexOf("http:")?"http":"https";this.Ba=Wy((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||Wy(this.Zb)||this.protocol+"://www.youtube.com/";this.Ha=Goa(this,b?b.eventLabel:a.el);qv();var m=null,n=b?b.playerStyle:a.ps,p=g.Qb(Hoa,n);!n||p&&!this.u||(m=n);this.playerStyle=m;this.K=(this.D=g.Qb(Hoa,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.jk=!this.K;this.oa=mE(!1,a.disableplaybackui);this.disableSeek=mE(!1,null===
b||void 0===b?void 0:b.disableSeek);this.ac=this.N("variable_playback_rate")?!0:XC().defaultPlaybackRate?tE||g.Cu||uE?g.mj&&(0,Kr)("20")||g.lj&&(0,Kr)("4")||g.vE&&(0,Kr)("11")||yu():!(g.vE&&!ou("chrome")||tE||ou("android")||ou("silk")):!1;this.dk=mE(!1,a.enable_faster_speeds);this.isMobile=mE("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.hk=Ioa(this);this.jb="3"===this.controlsType||this.isMobile||mE(!1,a.use_media_volume);this.Z=bD();this.yl=g.wE;this.Yi=mE(!1,b&&
l?b.embedOptOutDeprecation:a.opt_out_deprecation);this.pfpChazalUi=(this.Qf=!(!b||!b.embedsEnablePfpImaIntegration||this.N("embeds_pfp_ima_integration_killswitch")))||mE(!1,(b&&l?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.N("embeds_pfp_chazal_ui_killswitch"));var q;b?void 0!==b.hideInfo&&(q=!b.hideInfo):q=a.showinfo;this.Qj=g.xE(this)&&!this.Yi||mE(!yE(this)&&!zE(this)&&!this.D,q);this.bd=b?!!b.mobileIphoneSupportsInlinePlayback:mE(!1,a.playsinline);q=this.isMobile&&AE&&null!=BE&&0<BE&&2.3>=BE;m=b?b.useNativeControls:
a.use_native_controls;this.C=(this.N("embeds_enable_mobile_custom_controls")||!1===m&&!this.N("embeds_use_native_controls_killswitch"))&&g.xE(this)&&this.isMobile;n=this.isMobile&&!this.C;m=CE(this)||!q&&mE(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType="0"!==n&&0!==n?m:"0";this.Vd=this.isMobile;this.color=nE("red",b&&l?b.progressBarColor:a.color,Joa);this.wl="3"===this.controlsType||mE(!1,b&&l?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.bb=!this.i;this.Rj=
(m=!this.bb&&!zE(this)&&!this.K&&!this.D&&!yE(this))&&!this.wl&&"1"===this.controlsType;this.Db=g.DE(this)&&m&&"0"===this.controlsType&&!this.Rj;this.Bl=this.xl=q;this.cj=EE&&!g.sc(601)?!1:!0;this.fk=this.i||!1;this.Fc=zE(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=pE("",b&&l?b.widgetReferrer:a.widget_referrer);var t;b&&l?b.disableCastApi&&(t=!1):t=a.enablecastapi;t=!this.u||mE(!0,t);q=!0;b&&b.disableMdxCast&&(q=!1);this.Mf=this.N("enable_cast_for_web_unplugged")&&
g.FE(this)&&q||this.N("enable_cast_on_music_web")&&g.GE(this)&&q||t&&q&&"1"===this.controlsType&&!this.isMobile&&(zE(this)||g.DE(this)||g.HE(this))&&!g.IE(this);this.Al=$C()||aD();t=b?!!b.supportsAutoplayOverride:mE(!1,a.autoplayoverride);this.dh=!this.isMobile&&!ou("nintendo wiiu")&&!ou("nintendo 3ds")||t;t=b?!!b.enableMutedAutoplay:mE(!1,a.mutedautoplay);q=this.N("embeds_enable_muted_autoplay")&&g.xE(this);this.Hd=t&&q&&this.Z&&!CE(this);t=(zE(this)||yE(this))&&"blazer"===this.playerStyle;this.Rg=
b?!!b.disableFullscreen:!mE(!0,a.fs);this.Va=!this.Rg&&(t||g.Gx());this.Li=this.N("uniplayer_block_pip")&&(pu()&&Kr(58)&&!Du()||Au);t=g.xE(this)&&!this.Yi;var u;b?void 0!==b.disableRelatedVideos&&(u=!b.disableRelatedVideos):u=a.rel;this.wb=t||mE(!this.D,u);this.Pj=mE(!1,b&&l?b.enableContentOwnerRelatedVideos:a.co_rel);this.I=Du()&&0<BE&&4.4>=BE?"_top":"_blank";this.wd=g.HE(this);this.bh=mE("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.X=pE("",b&&l?b.authorizedUserIndex:a.authuser);this.Si=g.xE(this)&&(this.La||this.N("embeds_web_enable_hiding_login_buttons")&&(!lu()||Du()||Bu())||this.N("embeds_web_enable_always_hiding_login_buttons"));
var v;b?void 0!==b.disableWatchLater&&(v=!b.disableWatchLater):v=a.showwatchlater;this.Uj=((u=!this.Si)||!!this.X&&u)&&mE(!this.K,this.u?v:void 0);this.Af=b?!!b.disableKeyboardControls:mE(!1,a.disablekb);this.loop=mE(!1,a.loop);this.pageId=pE("",!this.N("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.zl=mE(!0,a.canplaylive);this.rb=mE(!1,a.livemonitor);this.disableSharing=mE(this.D,b?b.disableSharing:a.ss);this.dj=Coa(b&&this.N("fill_video_container_size_override_from_wpcc")?
b.videoContainerOverride:a.video_container_override);this.mute=b?!!b.startMuted:mE(!1,a.mute);this.storeUserVolume=!this.mute&&mE("0"!==this.controlsType,b&&!this.N("store_user_volume_override_from_wpcc_killswitch_2")?b.storeUserVolume:a.store_user_volume);v=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:nE(void 0,v,JE);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":pE("",a.cc_lang_pref);v=nE(2,b&&l?b.captionsLanguageLoadPolicy:
a.cc_load_policy,JE);"3"===this.controlsType&&2===v&&(v=3);this.Sa=v;this.xe=b?b.hl||"en_US":pE("en_US",a.hl);this.region=b?b.contentRegion||"US":pE("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":pE("en",a.host_language);this.Wj=!this.La&&Math.random()<g.S(this.experiments,"web_player_api_logging_fraction");this.Ka=!this.La;this.enabledEngageTypes=new Set;this.deviceHasDisplay=b?!b.deviceIsAudioOnly:mE(!0,a.deviceHasDisplay);this.ue=oE(this.ue,a.ismb);this.ej=Koa(this,a);KE(this,a,!0);this.S=
new ZD;g.H(this,this.S);this.Ug=Loa(this,a,b);this.aj=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.B=new WD(this.experiments,this.N("html5_force_hfr_support")?!0:LE(this)||uu()||vu()||Moa(this),g.lj&&g.sc(56)||g.mj&&g.sc(54)||Moa(this));this.schedule=new uoa(yoa(g.ME(this),this.ue,this.experiments));this.enableSafetyMode=null!==(d=null===b||void 0===b?void 0:b.initialEnableSafetyMode)&&void 0!==d?d:mE(!1,a.enable_safety_mode);v=this.oa?!1:zE(this)&&"blazer"!==this.playerStyle;var y;b&&
l?null!=b.disableAutonav&&(y=!b.disableAutonav):y=a.allow_autonav;this.Gb=mE(v,!this.K&&y);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:mE(!1,a.send_visitor_id_header);this.kb=(0,g.P)();var z;"docs"===this.playerStyle&&(b&&l?z=b.disableNativeContextMenu:z=a.disable_native_context_menu);this.disableNativeContextMenu=mE(!1,z);this.ek=LE(this)&&this.N("enable_skip_intro_button");this.embedConfig=pE("",b&&l?b.serializedEmbedConfig:a.embed_config);this.qc="pfl"===Noa(a);this.Sg=mE(!1,a.full_window);
this.vb=!g.FE(this)&&!NE(this)&&!g.IE(this)&&!0;this.livingRoomAppMode=nE("LIVING_ROOM_APP_MODE_UNSPECIFIED",b?null===(e=b.device)||void 0===e?void 0:e.livingRoomAppMode:a.living_room_app_mode,Ooa);this.transparentBackground=b?!!b.transparentBackground:mE(!1,a.transparent_background);this.useFastSizingOnWatchDefault=mE(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default);this.showMiniplayerButton=b?!!b.showMiniplayerButton:mE(!1,a.show_miniplayer_button);this.externalFullscreen=
b?!!b.externalFullscreen:mE(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:mE(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=mE(!1,a.showbackbutton);this.bj=null!==(f=a.show_loop_video_toggle)&&void 0!==f?f:!0;this.vl=1E-4>Math.random();this.Zc=a.onesie_hot_config||(null===b||void 0===b?0:b.onesieHotConfig)?new soa(a.onesie_hot_config,null===b||void 0===b?void 0:b.onesieHotConfig):void 0;this.isTectonic=
b&&!this.N("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.dc=new Aoa;g.H(this,this.dc);this.Ni=mE(!1,a.force_gvi);this.datasyncId=(null===b||void 0===b?void 0:b.datasyncId)||g.N("DATASYNC_ID",void 0);this.ul=g.N("LOGGED_IN",!1);this.Vj=(null===b||void 0===b?void 0:b.allowWoffleManagement)||!1;this.embedsRct=pE("",b?b.embedsRct:a.rct);this.Oh=0;this.livingRoomPoTokenId=null===b||void 0===b?void 0:b.livingRoomPoTokenId;this.useLivingRoomPoToken=
!(null===b||void 0===b||!b.useLivingRoomPoToken);if(this.N("html5_generate_session_po_token")&&!this.useLivingRoomPoToken){a=g.ME(this)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo";this.N("html5_po_token_enable_webpo_experimental")&&(a="bxNLZUJrsnkb8KzwCOTR");try{this.hh=lca({xm:a});this.hh.ready().then(function(){OE(h)});
var C=g.S(this.experiments,"html5_session_po_token_interval_time_ms");0<C&&(this.Yg=Rt(function(){OE(h)},C))}catch(G){G instanceof Error&&g.ky(G)}}if(this.N("html5_onesie")||this.N("html5_host_selector"))this.Lh=new aE(this.experiments,function(){return uv()}),g.H(this,this.Lh)};
KE=function(a,b,c){c=void 0===c?!1:c;a.Nb=pE(a.Nb,b.video_id);a.Aa=pE(a.Aa,b.eventid);a.Aa&&(Vx=a.Aa);for(var d=[],e=g.r(Object.keys(Poa)),f=e.next();!f.done;f=e.next()){f=Poa[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0<d.length&&a.vl&&(d.sort(),g.ky(new g.iw("Player client parameters changed after startup",d)));a.userAge=oE(a.userAge,b.user_age);a.userDisplayImage=pE(a.userDisplayImage,b.user_display_image);g.Yy(a.userDisplayImage)||(a.userDisplayImage=
"");a.userDisplayName=pE(a.userDisplayName,b.user_display_name);a.ye=pE(a.ye,b.user_gender);a.csiPageType=pE(a.csiPageType,b.csi_page_type);a.csiServiceName=pE(a.csiServiceName,b.csi_service_name);a.bh=mE(a.bh,b.enablecsi);a.pageId=pE(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_poken&&(a.fd=b.living_room_session_po_poken.toString())};
Goa=function(a,b){var c="detailpage";"adunit"===b?c=a.i?"embedded":"detailpage":"embedded"===b||a.u?c=nE(c,b,Qoa):b&&(c="embedded");return c};
Loa=function(a,b,c){var d=c?c.innertubeApiKey:pE("",b.innertube_api_key),e=c?c.innertubeApiVersion:pE("",b.innertube_api_version);b=c?c.innertubeContextClientVersion:pE("",b.innertube_context_client_version);d=g.N("INNERTUBE_API_KEY",void 0)||d;e=g.N("INNERTUBE_API_VERSION",void 0)||e;c=g.N("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");var f=a.deviceParams.c;var h="number"===typeof a.deviceParams.c?Number(a.deviceParams.c):Object.keys(Roa).indexOf(a.deviceParams.c);return{innertubeApiKey:d,innertubeApiVersion:e,
YK:c,Bz:f,HS:h,innertubeContextClientVersion:g.N("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0)||b,aL:a.hostLanguage,ZK:a.region,bL:g.N("INNERTUBE_HOST_OVERRIDE",void 0)||"",dL:!!g.N("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),cL:!!g.N("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)}};
QE=function(a,b){return!a.D&&pu()&&Kr(55)&&"3"===a.controlsType&&!b};
g.RE=function(a){a=Soa(a.Ba);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.SE=function(a){return g.IE(a)?"music.youtube.com":g.RE(a)};
TE=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
UE=function(a){return zE(a)&&!g.FE(a)};
CE=function(a){return EE&&!a.bd||ou("nintendo wiiu")||ou("nintendo 3ds")?!0:!1};
g.IE=function(a){return"music-embed"===a.playerStyle};
g.ME=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform};
Toa=function(a){return"TVHTML5"===a.deviceParams.c&&a.deviceParams.cver.startsWith("7")};
sE=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c};
Moa=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.VE=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
LE=function(a){return"web"===a.deviceParams.c.toLowerCase().substr(0,3)};
g.WE=function(a){return"WEB"===a.deviceParams.c.toUpperCase()};
NE=function(a){return"WEB_KIDS"===a.deviceParams.c};
g.FE=function(a){return"WEB_UNPLUGGED"===a.deviceParams.c};
XE=function(a){return"TVHTML5_UNPLUGGED"===a.deviceParams.c};
g.YE=function(a){return g.FE(a)||"TV_UNPLUGGED_CAST"===a.deviceParams.c||XE(a)};
g.GE=function(a){return"WEB_REMIX"===a.deviceParams.c};
g.ZE=function(a){return"WEB_EMBEDDED_PLAYER"===a.deviceParams.c};
g.$E=function(a){return!a.N("web_player_i_see_captions_killswitch")&&g.WE(a)};
aF=function(a){return a.N("web_player_enable_hybrid_controls_on_touch_screen")&&window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches&&g.WE(a)};
Uoa=function(a){return!a.N("web_player_larger_tap_buttons_killswitch")&&g.WE(a)&&!g.DE(a)};
Ioa=function(a){if(a.isMobile)return!a.D;var b=Number(Date.now()/1E3),c=g.Uv.getInstance();return a.N("block_desktop_background_playback_with_mobile_cookie")&&c&&b>Number(c.get("dhmu",b.toString()))};
g.cF=function(a){return(a.deviceHasDisplay&&g.lj&&!Au&&"3"!==a.controlsType?g.Cu?a.i&&g.sc(51):!0:!1)||(a.deviceHasDisplay&&g.mj&&!Au&&"3"!==a.controlsType?g.Cu?a.i&&g.sc(48):g.sc(38):!1)||(a.deviceHasDisplay&&g.vE&&!Au&&"3"!==a.controlsType?g.Cu?a.i&&g.sc(37):g.sc(27):!1)||a.deviceHasDisplay&&g.bF&&!zu()&&g.sc(11)||a.deviceHasDisplay&&g.nj&&g.sc("604.4")};
Voa=function(a){if(g.DE(a)&&AE)return!1;if(g.mj){if(!g.sc(47)||!g.sc(52)&&g.sc(51))return!1}else if(g.nj)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
zE=function(a){return"detailpage"===a.Ha};
g.DE=function(a){return"embedded"===a.Ha};
dF=function(a){return"leanback"===a.Ha};
yE=function(a){return"adunit"===a.Ha||"gvn"===a.playerStyle};
g.HE=function(a){return"profilepage"===a.Ha};
g.xE=function(a){return a.i&&g.DE(a)&&!yE(a)&&!a.D};
Noa=function(a){var b=a.raw_embedded_player_response;b||(a=a.embedded_player_response)&&(b=JSON.parse(a));return b&&(b=b.embedPreview)?b.thumbnailPreviewRenderer.embedMode||"":""};
Koa=function(a,b){if(g.KD(a.experiments,"html5_qoe_intercept"))return g.KD(a.experiments,"html5_qoe_intercept");a.jk?(b=b.vss_host||"s.youtube.com",a.N("www_for_videostats")&&"s.youtube.com"===b&&(b=Soa(a.Ba)||"www.youtube.com")):b="video.google.com";return b};
eF=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.ky(new g.iw("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.fF=function(a){var b=g.SE(a);!a.N("yt_embeds_disable_new_error_lozenge_url")&&Woa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
Eoa=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)};
OE=function(a){var b,c,d,e;g.A(function(f){if(!a.N("html5_generate_session_po_token")||null===(b=a.hh)||void 0===b||!b.isReady()||a.useLivingRoomPoToken)return f.return();c=g.N("VISITOR_DATA",void 0);d=a.ul?a.datasyncId:c;e=a.hh.Us({GJ:d});a.fd=g.xc(e,2);g.sa(f)})};
Soa=function(a){var b=g.ti(a);return(a=Number(g.si(4,a))||null)?b+":"+a:b};
gF=function(a){this.i=a};
hF=function(a,b,c){if(c)return eu();var d={};c=XC();b=g.r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.lf().mimeType)){var f=e.i.video.quality;if(!d[f]||d[f].lf().pe())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.jc(MC,function(l){(l=d[l])&&h.push(l)});
return h.length?fu(h):eu()};
Xoa=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.I=e;this.C=0;this.i=""};
Yoa=function(a,b){a.B.some(function(c){var d;return(null===(d=c.zc)||void 0===d?void 0:d.getId())===b});
a.i=b};
iF=function(a,b,c){a.cpn&&(b=g.Ei(b,{cpn:a.cpn}));c&&(b=g.Ei(b,{Yca:c}));return b};
Zoa=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
$oa=function(a){for(var b=[],c=[],d=g.r(a.u),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.C?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate});
c.sort(function(f,h){return f.bitrate-h.bitrate});
a.u=b.concat(c)};
apa=function(a){var b;this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;this.u=(null===(b=a.audioItag)||void 0===b?void 0:b.split(","))||[];this.Vt=a.Vt;this.Ed=a.Ed||"";this.zc=a.zc;this.audioChannels=a.audioChannels;this.i=""};
bpa=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!0:c;d=void 0===d?[]:d;var e={};a=g.r(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d.push(f.itag);d.push("tpus");continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/);
m=m?m[1]:"";f.audio_track_id&&(h=new VC(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new apa({itag:f.itag,url:f.url,codecs:m,width:Number(f.width),height:Number(f.height),fps:Number(f.fps),bitrate:Number(f.bitrate),audioItag:f.audio_itag,Vt:n?l[n]:void 0,Ed:f.drm_families,zc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d.push(f.itag),d.push("enchdr")}return e};
jF=function(a,b,c){this.i=a;this.B=b;this.expiration=c;this.u=null};
cpa=function(a,b){if(!(Au||xu()||tu()))return null;a=bpa(b,a.N("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.r(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.r(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.zc&&(f=h.zc.getId(),c[f]||(h=new BA(f,h.zc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
hpa=function(a,b,c,d,e,f,h){if(!(Au||xu()||tu()))return eu();var l=[],m=dpa(c),n=bpa(c,a.N("html5_filter_fmp4_in_hls"),a.B.C,l);if(!n)return h("noplst"),eu();epa(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var t=[],u=[],v=null,y="";d=d&&d.match(/hls_timedtext_playlist/)?new apa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,zc:new VC("English","en",!1)}):null;for(var z=g.r(Object.keys(n)),C=z.next();!C.done;C=z.next())if(C=C.value,!a.N("html5_disable_drm_hfr_1080")||
"383"!==C&&"373"!==C){C=g.r(n[C]);for(var G=C.next();!G.done;G=C.next())if(G=G.value,G.width){for(var F=g.r(G.u),J=F.next();!J.done;J=F.next())if(J=J.value,n[J]){G.i=J;break}G.i||(G.i=fpa(n,G));if(F=n[G.i])if(c.push(G),"fairplay"===G.Ed&&(q=p),J="","PQ"===G.Vt?J="smpte2084":"HLG"===G.Vt&&(J="arib-std-b67"),J&&(y=J),u.push(gpa(F,[G],d,f,G.itag,G.width,G.height,G.fps,m,void 0,void 0,q,J)),!v||G.width*G.height*G.fps>v.width*v.height*v.fps)v=G}else t.push(G)}else l.push(C),l.push("disdrmhfr");u.reduce(function(U,
K){return K.lf().isEncrypted()&&U},!0)&&(q=p);
e=Math.max(e,0);p=v||{};n=void 0===p.fps?0:p.fps;v=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;z=a.N("html5_native_audio_track_switching");u.push(gpa(t,c,d,f,"93",v,p,n,m,"auto",e,q,y,z));l.length&&h(l.join("."));return hF(a.B,u,QE(a,b))};
gpa=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){for(var v=0,y="",z=g.r(a),C=z.next();!C.done;C=z.next())C=C.value,y||(y=C.itag),C.audioChannels&&C.audioChannels>v&&(v=C.audioChannels,y=C.itag);e=new PC(e,"application/x-mpegURL",{audio:new JC(0,v,null,y),video:new LC(f,h,l,null,void 0,n,void 0,t),Ed:q});a=new Xoa(a,b,c?[c]:[],d,!!u);a.C=p?p:1369843;return new jF(e,a,m)};
dpa=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN};
fpa=function(a,b){for(var c=g.r(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Ed===b.Ed&&!e.audioChannels)return d}return""};
epa=function(a){for(var b=new Set,c=g.r(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.r(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.r(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
kF=function(a,b){this.i=a;this.u=b};
ipa=function(a,b,c,d){var e=[];c=g.r(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.UA(h.url,!0);if(h.s){var l=h.sp,m=Pla(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.r(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=gna(h.type,h.quality,h.itag,h.width,h.height);e.push(new kF(h,f))}}return hF(a.B,e,QE(a,b))};
lF=function(a,b){this.i=a;this.u=b};
jpa=function(a){var b=[];g.jc(a,function(c){if(c&&c.url){var d=gna(c.type,"medium","0");b.push(new lF(d,c.url))}});
return b};
kpa=function(a,b,c){c=jpa(c);return hF(a.B,c,QE(a,b))};
mF=function(a,b){this.type=a||"";this.id=b||""};
g.nF=function(a){return new mF(a.substr(0,2),a.substr(2))};
oF=function(a,b){for(var c={},d=g.r(Object.keys(lpa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.Yy(f)&&(c[lpa[e]]=f)}return c};
pF=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url});
a.sort(function(l,m){return l.width-m.width||l.height-m.height});
for(var c=g.r(Object.keys(mpa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=mpa[e];for(var f=g.r(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=npa(h.url);g.Yy(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=npa(a.url),g.Yy(a)&&(b["maxresdefault.jpg"]=a));return b};
npa=function(a){return a.startsWith("//")?"https:"+a:a};
g.qF=function(a,b){var c;this.u=a;this.author="";this.fv=null;this.playlistLength=0;this.i=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=ct(a,"&");this.i=(null===(c=b.thumbnail_ids)||void 0===c?void 0:c.split(",")[0])||null;this.Z=oF(b,"playlist_");this.videoId=b.video_id||void 0;if(a=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new mF("UU","PLAYER_"+a)).toString();
break;default:var d=b.playlist_length;d&&(this.playlistLength=Number(d)||0);this.playlistId=g.nF(a).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}};
g.rF=function(a,b){this.i=a;this.Tm=this.author="";this.fv=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.eq=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.Dl=b.aria_label||void 0;this.author=b.author||"";this.Tm=b.Tm||"";if(a=b.endscreen_autoplay_session_data)this.fv=ct(a,"&");this.hv=b.hv;this.isLivePlayback="1"===b.live_playback;this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds="string"===typeof a?Number(a):a;this.lengthText=
b.lengthText||"";this.eq=b.eq||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=ct(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=oF(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
ppa=function(a,b){var c=g.Ha("ytDebugData.callbacks");c||(c={},g.Ga("ytDebugData.callbacks",c,void 0));if(g.O("web_dd_iu")||opa.includes(a))c[a]=b};
qpa=function(){void 0===sF&&(sF=g.bs());return sF};
tF=function(){var a=qpa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
rpa=function(a){var b=qpa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
uF=function(a){return tF()[a]||0};
vF=function(a,b){var c=tF();b!==c[a]&&(0!==b?c[a]=b:delete c[a],rpa(c))};
spa=function(a){var b=tF();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);rpa(b);JSON.stringify(b);return b};
g.wF=function(a){return g.A(function(b){return b.return(Mw(tpa(),a))})};
upa=function(a){var b,c;return g.A(function(d){if(1==d.i)return g.x(d,g.Tw(),2);if(3!=d.i)return(b=d.u)?g.x(d,g.wF(b),3):d.return();c=d.u;return d.return(Cw(c,["index","media","captions"],{mode:"readwrite",Lc:!0},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");e=[e.objectStore("index").delete(f),e.objectStore("media").delete(f),e.objectStore("captions").delete(f)];return uw.all(e).then(function(){})}))})};
xpa=function(){var a,b;return g.A(function(c){if(1==c.i)return g.x(c,g.Tw(),2);if(3!=c.i){a=c.u;if(!a)throw g.rw("rvdfd");return g.x(c,g.wF(a),3)}b=c.u;return c.return(Cw(b,["index","media"],{mode:"readwrite",Lc:!0},function(d){var e={};return Gw(d.objectStore("index"),{},function(f){var h,l=f.getKey().match(/^([\w\-_]+)\|(a|v)$/),m=uw.resolve(void 0);if(l){var n=l[1];l=l[2];e[n]=e[n]||{};e[n][l]=vpa(null===(h=f.getValue())||void 0===h?void 0:h.fmts)}else m=f.delete().then(function(){});
return uw.all([f.continue(),m]).then(function(p){return g.r(p).next().value})}).then(function(){for(var f={},h=g.r(Object.keys(e)),l=h.next();!l.done;l=h.next()){l=l.value;
var m=e[l].v;f[l]=e[l].a&&m?1:2}var n=spa(f);return Mia(d.objectStore("media"),{},function(p){var q=p.getKey().match(wpa);q&&f[q[1]]||d.objectStore("media").delete(p.getKey());return p.continue()}).then(function(){return n})})}))})};
ypa=function(a,b){var c,d;return g.A(function(e){if(1==e.i)return g.x(e,g.Tw(),2);if(3!=e.i){c=e.u;if(!c)throw g.rw("wct");return g.x(e,g.wF(c),3)}d=e.u;return g.x(e,Cw(d,["captions"],{mode:"readwrite",Lc:!0},function(f){var h=[];f=f.objectStore("captions");for(var l=0;l<b.length;l++){var m=Dw(f,b[l],a+"|"+b[l].metadata.vss_id);h.push(m)}return uw.all(h)}),0)})};
zpa=function(a){var b,c,d;return g.A(function(e){if(1==e.i)return b=IDBKeyRange.bound(a+"|",a+"~"),g.x(e,g.Tw(),2);if(3!=e.i){c=e.u;if(!c)throw g.rw("gactfv");return g.x(e,g.wF(c),3)}d=e.u;return e.return(Dia(d,b))})};
yF=function(a,b,c,d,e,f,h){var l,m,n,p,q,t;return g.A(function(u){switch(u.i){case 1:return l=uF(a),4===l?u.return(4):g.x(u,g.Tw(),2);case 2:m=u.u;if(!m)throw g.rw("wiac");if(!h||void 0===f){u.fb(3);break}return g.x(u,Apa(h,f),4);case 4:f=u.u;case 3:return n=c.lastModified||"0",g.x(u,g.wF(m),5);case 5:return p=u.u,ta(u,6),xF++,g.x(u,Cw(p,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Lc:!0},function(v){if(void 0!==e&&void 0!==f){var y=""+a+"|"+b.id+"|"+n+"|"+String(e).padStart(10,
"0");y=Dw(v.objectStore("media"),f,y)}else y=uw.resolve(void 0);var z=Bpa(a,b.isVideo()),C=Bpa(a,!b.isVideo()),G={fmts:Cpa(d),format:c||{}};z=Dw(v.objectStore("index"),G,z);var F=-1===d.downloadedEndTime;v=F?v.objectStore("index").get(C):uw.resolve(void 0);return uw.all([v,y,z]).then(function(J){J=g.r(J).next().value;xF--;var U=uF(a);4!==U&&F&&void 0!==J&&vpa(J.fmts)&&(U=1,vF(a,U));return U})}),8);
case 8:return u.return(u.u);case 6:q=va(u);xF--;t=uF(a);if(4===t)return u.return(t);vF(a,4);throw q;}})};
Dpa=function(a){var b,c;return g.A(function(d){if(1==d.i)return g.x(d,g.Tw(),2);if(3!=d.i){b=d.u;if(!b)throw g.rw("ri");return g.x(d,g.wF(b),3)}c=d.u;return d.return(Cw(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return Cia(e.objectStore("index"),f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})};
Fpa=function(a,b,c,d,e){var f,h,l;return g.A(function(m){if(1==m.i)return g.x(m,g.Tw(),2);if(3!=m.i){f=m.u;if(!f)throw g.rw("rc");return g.x(m,g.wF(f),3)}h=m.u;l=Cw(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)});
return e?m.return(l.then(function(n){return Epa(e,n)})):m.return(l)})};
Gpa=function(a){return g.A(function(b){vF(a,0);return b.return(upa(a))})};
vpa=function(a){return a?a.includes("dlt=-1")||!a.includes("dlt="):!1};
Bpa=function(a,b){return""+a+"|"+(b?"v":"a")};
Cpa=function(a){var b={};return dt((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
Hpa=function(a){var b={},c={};a=g.r(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(wpa)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.r(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(",");
return c};
Ipa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.i=bE(a.ustreamerConfig))};
g.zF=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.i=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null};
g.BF=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.AF(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.i,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b};
g.CF=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.AF=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0438\u0442\u0440\u044b)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")};
Mpa=function(a,b,c,d){a||(a=b&&Jpa.hasOwnProperty(b)&&Kpa.hasOwnProperty(b)?Kpa[b]+"_"+Jpa[b]:void 0);b=a;if(!b)return null;a=b.match(Lpa);if(!a||5!==a.length)return null;if(a=b.match(Lpa)){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};
Opa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return Npa[a];return null};
DF=function(a){return a&&a.baseUrl||""};
EF=function(a){a=g.gt(a);for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a};
Ppa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Ba=b)};
Rpa=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.r(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=Qpa(d.baseUrl);if(!e)return;d=new g.zF({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.Sz(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.gD=b.audioTracks||[];a.rO=b.defaultAudioTrackIndex||0;a.wD=b.translationLanguages?g.Mm(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.Sz(f.languageName)}}):
[];
a.Wo=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
Spa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=h.unserializedPlayerResponse;if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=h.playerVars)return Object.assign({is_yto_interstitial:!0},g.et(h))});
d=g.r(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,Nj:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Nj:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var f=Number(c.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:f,playerVars:e,
Nj:0===f?5:7})}}};
Tpa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
Upa=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)};
FF=function(a){var b=[];a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.baseUrl&&b.push(c.baseUrl);return b};
$pa=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=g.et(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=Vpa[c]);(c=a.projectionType)&&(b.projection_type=Wpa[c]);(c=a.stereoLayout)&&(b.stereo_layout=Xpa[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=Ypa[c]);if(d=a.drmFamilies){c=[];d=g.r(d);for(var e=d.next();!e.done;e=d.next())c.push(GF[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=Opa(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=Zpa[a])&&(b.primaries=a);return g.Ci(b)};
HF=function(a){g.Q.call(this);this.i=null;this.B=new fs;this.i=null;this.K=new Set;this.D=a||""};
KF=function(a,b,c){for(c=IF(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(Math.floor(b/(d.columns*d.rows)))&&(d=g.JF(d,b)))return d;c--}return g.JF(a.levels[0],b)};
bqa=function(a,b,c){c=IF(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.K.has(h)||(d.K.add(h),es(d.B,f,{DL:f,PL:e}))}aqa(a)};
aqa=function(a){if(!a.i&&!a.B.isEmpty()){var b=a.B.remove();a.i=cqa(a,b)}};
cqa=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=dqa(a.levels[b.DL],b.PL);c.onload=function(){var d=b.DL,e=b.PL;null!==a.i&&(a.i.onload=null,a.i=null);d=a.levels[d];d.loaded.add(e);aqa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.XD()-1);e=[e,d];a.ea("l",e[0],e[1])};
return c};
g.LF=function(a,b,c,d){this.level=a;this.D=b;this.loaded=new Set;this.level=a;this.D=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.B=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.C=a[6];this.signature=a[7];this.videoLength=d};
dqa=function(a,b){var c=a.D;c=c.replace("$N",a.C);c=c.replace("$L",a.level.toString());c=c.replace("$M",b.toString());a.signature&&(c=g.Ei(c,{sigh:a.signature}));return Zy(c)};
g.JF=function(a,b){b>=a.Mx()&&a.rr();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.rr()+1-d*c;if(f<a.columns){var h=f;d=1}else h=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:dqa(a,c),column:b,columns:h,row:e,rows:d,cA:a.width*h,bA:a.height*d}};
MF=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;HF.call(this,c);this.isLive=d;this.S=!!e;this.levels=this.u(a,b);this.C=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
NF=function(a,b,c){return(a=a.levels[b])?a.Lx(c):-1};
IF=function(a,b){var c=a.C.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].width>=b)return a.C.set(b,d),d;a.C.set(b,c-1);return c-1};
OF=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.LF.call(this,a,b,c,0);this.u=null;this.I=d?2:0};
PF=function(a,b,c,d){MF.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].LH(c)};
eqa=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Ei(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
RF=function(a,b){g.Q.call(this);this.u=a;this.adModule=!1;this.adaptiveFormats="";this.ML=this.Al=this.adQueryId=this.zl=null;this.IC={start:NaN,end:NaN};this.Dl="";this.Ed=null;this.GE=this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Va="";this.ZC=this.Bl=!1;this.wH=null;this.Si=this.Oe=this.Ui=this.HB=!1;this.K=null;this.bM=this.Rg=!1;this.ue=NaN;this.dh=!1;this.FC=0;this.UJ=!1;this.Pq={};this.rC=this.cycToken=null;this.author="";this.zC=0;this.Rj=
!1;this.xC=null;this.wC=[];this.lp=this.sE=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.dc=this.ac="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.Zb=0;this.CL=this.Zc=this.B=null;this.VF="";this.Ha=!1;this.Qj=this.Pj=0;this.KC=this.pipable=this.Mk=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.rb=this.isPrivate=this.isListed=this.iH=this.sL=this.mutedAutoplay=this.Qk=!1;this.JB="";this.isLowLatencyLiveStream=
this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.kH=this.ej=this.Ze=!1;this.latencyClass="UNKNOWN";this.ZG=this.enableServerStitchedDai=this.Rd=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.Db=0;this.reloadReason="";this.lH=this.vH=this.Af=!1;this.keywords={};this.wb="";this.Tj=0;this.ir=!1;this.liveChunkReadahead=NaN;this.bh=null;this.ul=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.zi=[];this.Aa=
[];this.racyCheckOk=!1;this.tI={};this.ax=0;this.C=null;this.autonavState=1;this.hJ=null;this.shortDescription="";this.kb=this.nC=!1;this.gr=this.qc=this.startSeconds=0;this.jr=this.vN=this.lr=QF;this.suggestions=null;this.xl=this.yl=void 0;this.Li=null;this.qC=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.Bp=this.suggestedAction=this.multiMarkersPlayerBarRenderer=this.KD=void 0;this.wl=[];this.hlsFormats=this.Ni="";this.Kq=this.er=this.Qf=this.Eb=this.bb=this.Wj=this.zq=
null;this.Uh="vvt";this.bd=!1;this.AC=null;this.EL="";this.jk=NaN;this.Hr=this.Dr=this.gk=this.Cr=this.Br=this.Yi=this.fk=this.Gr=this.hk=this.Er="";this.aj=null;this.lJ=!1;this.S={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.mH=this.NO=NaN;this.Hd=this.gj=this.wd=this.pH=this.nH=!1;this.bk=!0;this.Z={};this.captionTracks=[];this.gD=[];this.rO=0;this.wD=[];this.Wo=!1;this.bj=new BA("und",new VC("Default","und",!0));this.IB=0;this.I=null;this.Yt=[];this.gF=!1;this.fd=[];this.qN=
!1;this.Ar=this.Nb="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.playerResponse=this.MO=this.Qq=this.cj=this.gg=this.UE=this.JC=this.HC=null;this.Pp=!1;this.va=null;this.isInlinePlaybackNoAd=this.Sg=this.useCobaltWidevine=this.yJ=this.Vp=this.oa=!1;this.OE=!0;this.NI=this.QI=NaN;this.defraggedFromSubfragments=this.Ik=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.BC=this.yC=this.ye=!1;this.interstitials=[];this.D=this.jH=!1;this.Wa="";this.allowImaMonetization=
!1;this.Bc=this.Vj=this.yH="";this.La=this.oH=!1;this.xe=0;this.xH=this.ek="";this.OB=this.NB=this.FG=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.dk=!1;this.Oh=this.Mf=!0;this.errorDetail=this.userGenderAge="";this.tC=this.vC=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.ri=this.errorReason=this.errorCode=null;this.xp=
this.Xo="";this.Yp=!1;this.rl=[];this.rL=this.UI=this.SI=this.vg=this.qe=0;this.fetchType=null;this.xI=!0;this.SK=void 0;this.YM=-1;this.hh=this.Fc=!1;this.fc=null;this.vb="";this.Yg=!1;this.watchUrl=null;this.N("web_player_ux_module_wait")&&this.u.vb&&this.Aa.push("ux");this.Fc=this.N("web_new_autonav_countdown");this.hh=this.N("web_new_big_thumbnail_endscreen");fqa(this,b)};
g.UF=function(a,b,c,d){b&&b.cpn&&g.ky(new g.iw("CPN provided in VideoData update",{Wca:b.cpn,Rf:a.clientPlaybackNonce,Ica:c}));d&&(a.errorCode=null,a.errorDetail="",a.errorReason=null,a.ri=null);c?(rE(b),fqa(a,b),SF(a)&&TF(a)):(b=b||{},gqa(a,b),hqa(a,b),iqa(a,b),a.ea("dataupdated"))};
iqa=function(a,b){a.fflags=pE(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Va=Zy(c));a.Bl=mE(a.Bl,b.iv_ads_only);a.ZC=mE(a.ZC,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.IX=c;a.isPharma=mE(a.isPharma,b.is_pharma);a.author=pE(a.author,b.author);a.ac=Qpa(b.ttsurl)||a.ac;a.Rj=mE(a.Rj,b.cc_asr);a.dc=pE(a.dc,b.channel_path);a.channelBanner=pE(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.Nh=pE(a.Nh,c);a.videoCountText=pE(a.videoCountText,b.video_count_text);a.autonavState=
nE(a.autonavState,b.autonav_state,jqa);a.clientPlaybackNonce=pE(a.clientPlaybackNonce,b.cpn);a.subscribed=mE(a.subscribed,b.subscribed);a.rawViewCount=oE(a.rawViewCount,b.view_count);a.shortViewCount=pE(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=pE(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=pE(a.lengthText||"",b.lengthText);a.eq=pE(a.eq||"",b.eq);a.Tm=pE(a.Tm||"",b.Tm);a.title=pE(a.title,b.title);a.subtitle=pE(a.subtitle,b.subtitle);a.expandedTitle=pE(a.expandedTitle,
b.expanded_title);a.expandedSubtitle=pE(a.expandedSubtitle,b.expanded_subtitle);a.Dl=pE(a.Dl,b.aria_label);a.ypcPreview=pE(a.ypcPreview,b.ypc_preview);a.CC=pE(a.CC,b.ypc_origin);a.bd=mE(a.bd,b.ypc_is_premiere_trailer);a.ek=pE(a.ek,b.ypc_clickwrap_message);a.paygated=mE(a.paygated,b.paygated);a.lJ=mE(a.lJ,b.requires_purchase);a.showShareButton=!mE(!a.showShareButton,b.ss);a.Mf=mE(a.Mf,b.showwatchlater);a.Oh=mE(a.Oh,b.shownotifybutton);a.dk=mE(a.dk,b.copy_share);if(c=b.keywords)a.keywords=kqa(c.split(","));
if(c=b.rvs)a.suggestions=ft(c).map(function(d){return d.playlist||d.list||d.api?new g.qF(a.u,d):new g.rF(a.u,d)});
a.contentCheckOk=mE(a.contentCheckOk,b.cco);a.racyCheckOk=mE(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=mE(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=pE(a.oauthToken,b.oauth_token);a.wb=pE(a.wb,b.kpt);a.visitorData=pE(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=ct(c,"&");a.bq=pE(a.bq,b.endscreen_ad_tracking_data);a.qL=mE(a.qL,b.wait_for_vast_info_cards_xml);a.pC=mE(a.pC,b.suppress_creator_endscreen);a.qH=mE(a.qH,b.is_trueview_action);a.CK=pE(a.CK,b.tracking_list);
a.Xo=pE(a.Xo,b.clip);a.xp=pE(a.xp,b.clipt);lqa(a,b)};
fqa=function(a,b){var c,d,e,f;b=b||{};var h=b.errordetail;null!=h&&(a.errorDetail=h);var l=b.errorcode;null!=l?a.errorCode=l:"fail"==b.status&&(a.errorCode="150");var m=b.reason;null!=m&&(a.errorReason=m);var n=b.subreason;null!=n&&(a.ri=n);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||Xx());a.rb=mE(a.u.rb,b.livemonitor);gqa(a,b);var p=b.raw_player_response;if(!p){var q=b.player_response;q&&(p=JSON.parse(q))}p&&(a.playerResponse=p);if(a.playerResponse){var t=a.playerResponse.annotations;if(t)for(var u=
g.r(t),v=u.next();!v.done;v=u.next()){var y=v.value.playerAnnotationsUrlsRenderer;if(y){y.adsOnly&&(a.Bl=!0);y.allowInPlaceSwitch&&(a.ZC=!0);var z=y.loadPolicy;z&&(a.annotationsLoadPolicy=mqa[z]);var C=y.invideoUrl;C&&(a.Va=Zy(C));a.HB=!0;break}}var G=a.playerResponse.attestation;G&&Ppa(a,G);var F=a.playerResponse.cotn;F&&(a.cotn=F);var J=a.playerResponse.heartbeatParams;if(J){var U,K=J.heartbeatToken;K&&(a.drmSessionId=J.drmSessionId||"",a.heartbeatToken=K,a.NO=Number(J.intervalMilliseconds),a.mH=
Number(J.maxRetries),a.nH=!!J.softFailOnError,a.pH=!!J.useInnertubeHeartbeatsForDrm,a.Ui=!0);a.heartbeatServerData=J.heartbeatServerData;a.N("heartbeat_iff_heartbeat_params_filled")&&(a.Ui=!0);a.dh=!(null===(U=J.heartbeatAttestationConfig)||void 0===U||!U.requiresAttestation)}var V=a.playerResponse.messages;V&&Tpa(a,V);var xa=a.playerResponse.multicamera;if(xa){var La=xa.playerLegacyMulticameraRenderer;if(La){var rb=La.metadataList;rb&&(a.xH=rb,a.fd=ft(rb))}}var pb=a.playerResponse.overlay;if(pb){var Pb=
pb.playerControlsOverlayRenderer;if(Pb){var lc=Pb.controlBgHtml;null!=lc?(a.Wa=lc,a.D=!0):(a.Wa="",a.D=!1);if(Pb.mutedAutoplay){var Qa=Pb.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(Qa&&Qa.endScreen){var cc=Qa.endScreen.playerMutedAutoplayEndScreenRenderer;cc&&cc.text&&(a.yH=g.Sz(cc.text))}}else a.mutedAutoplay=!1}}var Ib=a.playerResponse.playabilityStatus;if(Ib){var Zg=Ib.backgroundability;Zg&&Zg.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var ai=Ib.offlineability;ai&&
ai.offlineabilityRenderer.offlineable&&(a.offlineable=!0);var $g=Ib.contextParams;$g&&(a.contextParams=$g);var gj=Ib.pictureInPicture;gj&&gj.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);Ib.playableInEmbed&&(a.allowEmbed=!0);var Dk=Ib.ypcClickwrap;if(Dk){var $e=Dk.playerLegacyDesktopYpcClickwrapRenderer,vc=Dk.ypcRentalActivationRenderer;if($e)a.ek=$e.durationMessage||"",a.Si=!0;else if(vc){var Ee=vc.durationMessage;a.ek=Ee?g.Sz(Ee):"";a.Si=!0}}var Xa=Ib.errorScreen;if(Xa){if(Xa.playerLegacyDesktopYpcTrailerRenderer){var Qc=
Xa.playerLegacyDesktopYpcTrailerRenderer;a.Hr=Qc.trailerVideoId||"";var fz=Xa.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var bi=fz&&fz.ypcTrailerRenderer}else if(Xa.playerLegacyDesktopYpcOfferRenderer)Qc=Xa.playerLegacyDesktopYpcOfferRenderer;else if(Xa.ypcTrailerRenderer){bi=Xa.ypcTrailerRenderer;var rp=bi.fullVideoMessage;a.fk=rp?g.Sz(rp):""}Qc&&(a.gk=Qc.itemTitle||"",Qc.itemUrl&&(a.Dr=Qc.itemUrl),Qc.itemBuyUrl&&(a.Br=Qc.itemBuyUrl),a.Cr=Qc.itemThumbnail||"",a.Gr=Qc.offerHeadline||"",a.hk=
Qc.offerDescription||"",a.Yi=Qc.offerId||"",a.Er=Qc.offerButtonText||"",a.AC=Qc.offerButtonFormattedText||null,a.jk=Qc.overlayDurationMsec||NaN,a.fk=Qc.fullVideoMessage||"",a.Oe=!0);if(bi){var gz=bi.unserializedPlayerResponse;if(gz)a.aj={raw_player_response:gz};else{var nt=bi.playerVars;a.aj=nt?g.et(nt):null}a.Oe=!0}}}var fe=a.playerResponse.playbackTracking;if(fe){var hz=b,iz=DF(fe.googleRemarketingUrl);iz&&(a.googleRemarketingUrl=iz);var ot=DF(fe.youtubeRemarketingUrl);ot&&(a.youtubeRemarketingUrl=
ot);var jz=DF(fe.ptrackingUrl);if(jz){var zm=EF(jz),kz=zm.oid;kz&&(a.rI=kz);var pt=zm.pltype;pt&&(a.sI=pt);var lz=zm.ptchn;lz&&(a.pI=lz);var sp=zm.ptk;sp&&(a.Oq=encodeURIComponent(sp));var mz=zm.m;mz&&(a.Zp=mz)}var nz=DF(fe.ppvRemarketingUrl);nz&&(a.ppvRemarketingUrl=nz);var ah=DF(fe.qoeUrl);if(ah){for(var hj=g.gt(ah),qt=g.r(Object.keys(hj)),rt=qt.next();!rt.done;rt=qt.next()){var zH=rt.value,oz=hj[zH];hj[zH]=Array.isArray(oz)?oz.join(","):oz}a.YX=hj;var tt=hj.cat;tt&&(a.Vj=tt);var pz=hj.live;pz&&
(a.JB=pz);var qz=hj.drm_product;qz&&(a.GE=qz)}var Ek=DF(fe.remarketingUrl);if(Ek){a.remarketingUrl=Ek;var tp=EF(Ek);tp.foc_id&&(a.S.focEnabled=!0);var up=tp.data;up&&(a.S.rmktEnabled=!0,up.engaged&&(a.S.engaged="1"));a.S.baseUrl=ui(Ek)+qi(g.si(5,Ek))}var mc=DF(fe.videostatsPlaybackUrl);if(mc){var dc=EF(mc);a.LI=dc;var vp=dc.adformat;if(vp&&(hz.adformat=vp,!a.N("process_video_data_ad_format_in_player_tracking_killswitch"))){var rz=a.V(),sz=Mpa(vp,a.Ar,rz.i,rz.u);sz&&(a.adFormat=sz)}var tz=dc.aqi;tz&&
(hz.ad_query_id=tz);var uz=dc.autoplay;uz&&(a.Qk="1"==uz);var ut=dc.autonav;ut&&(a.Mk="1"==ut);var Am=dc.delay;Am&&(a.Zb=rg(Am));var vz=dc.ei;vz&&(a.eventId=vz);"adunit"===dc.el&&(a.Qk=!0);var wz=dc.feature;wz&&(a.pL=wz);var xz=dc.list;xz&&(a.playlistId=xz);var vt=dc.of;vt&&(a.iX=vt);var wt=dc.osid;wt&&(a.osid=wt);var Fk=dc.referrer;Fk&&(a.referrer=Fk);var xt=dc.sdetail;xt&&(a.iK=xt);var yz=dc.sourceid;yz&&(a.lZ=yz);var zz=dc.ssrt;zz&&(a.EC="1"==zz);var zt=dc.subscribed;zt&&(a.subscribed="1"==zt,
a.S.subscribed=zt);var Az=dc.uga;Az&&(a.userGenderAge=Az);var uf=dc.upt;uf&&(a.xX=uf);var At=dc.vm;At&&(a.videoMetadata=At)}var AH=DF(fe.videostatsWatchtimeUrl);if(AH){var Bt=EF(AH).ald;Bt&&(a.cT=Bt)}if(fe.promotedPlaybackTracking){var Fe=fe.promotedPlaybackTracking;Fe.startUrls&&(a.Uj=Fe.startUrls);Fe.firstQuartileUrls&&(a.Yq=Fe.firstQuartileUrls);Fe.secondQuartileUrls&&(a.Zq=Fe.secondQuartileUrls);Fe.thirdQuartileUrls&&(a.dr=Fe.thirdQuartileUrls);Fe.completeUrls&&(a.Xq=Fe.completeUrls);Fe.engagedViewUrls&&
(1<Fe.engagedViewUrls.length&&g.ky(new g.iw("There are more than one engaged_view_urls.")),a.Gb=Fe.engagedViewUrls[0])}}a:{var Pd=a.playerResponse.adPlacements;if(Pd)for(var Bz=g.r(Pd),Ct=Bz.next();!Ct.done;Ct=Bz.next()){var Bm=Ct.value;if(Bm.adPlacementRenderer&&Bm.adPlacementRenderer.renderer&&Bm.adPlacementRenderer.renderer.videoAdTrackingRenderer){var Cz=Bm.adPlacementRenderer.renderer.videoAdTrackingRenderer;break a}}Cz=null}var Cm=Cz;fe&&fe.promotedPlaybackTracking&&Cm&&g.ky(new g.iw("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));
if(Cm)if(Cm.pings){var af=Cm.pings;af.startPings&&(a.Uj=FF(af.startPings));af.firstQuartilePings&&(a.Yq=FF(af.firstQuartilePings));af.secondQuartilePings&&(a.Zq=FF(af.secondQuartilePings));af.thirdQuartilePings&&(a.dr=FF(af.thirdQuartilePings));af.completePings&&(a.Xq=FF(af.completePings));af.progressPings&&(1<af.progressPings.length&&g.ky(new g.iw("There is more than one Progress Ping in VideoAdTracking.")),a.Gb=af.progressPings[0].baseUrl)}else g.ky(new g.iw("VideoAdTrackingRenderer without pings"));
var Dz=a.playerResponse.playerAds;if(Dz)for(var BH=b,Ez=g.r(Dz),Dt=Ez.next();!Dt.done;Dt=Ez.next()){var Et=Dt.value;if(Et){var ij=Et.playerLegacyDesktopWatchAdsRenderer;if(ij){var Gk=ij.playerAdParams;if(Gk){"1"==Gk.autoplay&&(a.Qk=!0);a.Al=Gk.encodedAdSafetyReason||null;void 0!==Gk.showContentThumbnail&&(a.bk=!!Gk.showContentThumbnail);BH.enabled_engage_types=Gk.enabledEngageTypes;break}}}}var Qd=a.playerResponse.playerConfig;if(Qd){var Hk=Qd.manifestlessWindowedLiveConfig;if(Hk){var Fz=Number(Hk.minDvrSequence),
Gz=Number(Hk.maxDvrSequence),Hz=Number(Hk.minDvrMediaTimeMs),Iz=Number(Hk.maxDvrMediaTimeMs),Jz=Number(Hk.startWalltimeMs);Fz&&(a.qe=Fz);Hz&&(a.UI=Hz/1E3);Gz&&(a.vg=Gz);Iz&&(a.SI=Iz/1E3);Jz&&(a.rL=Jz/1E3)}var wp=Qd.daiConfig;if(wp){if(wp.enableDai){a.Rd=!0;var Ft=wp.enableServerStitchedDai;Ft&&(a.enableServerStitchedDai=Ft)}"DAI_TYPE_SS_DISABLED"===wp.daiType&&(a.ZG=!0)}var Ik=Qd.audioConfig;if(Ik){var Kz=Ik.loudnessDb;null!=Kz&&(a.ue=Kz);Ik.audioMuted&&(a.Rg=!0);Ik.muteOnStart&&(a.bM=!0)}var Lz=
Qd.playbackEndConfig;if(Lz){var Gt=Lz.endSeconds;Gt&&a.mutedAutoplay&&(a.endSeconds=Gt)}var xp=Qd.fairPlayConfig;if(xp){var uea=xp.certificate;uea&&(a.Zc=bE(uea));var vea=Number(xp.keyRotationPeriodMs);0<vea&&(a.KW=vea);var wea=Number(xp.keyPrefetchMarginMs);0<wea&&(a.nT=wea)}var Ht=Qd.playbackStartConfig;if(Ht){a.OB=Number(Ht.startSeconds);var xea=Ht.liveUtcStartSeconds,mU=!1;a.N("html5_start_seconds_priority")&&(mU=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds);xea&&!mU&&(a.liveUtcStartSeconds=
Number(xea));var nU=Ht.startPosition;if(nU){var yea=nU.utcTimeMillis;yea&&!mU&&(a.liveUtcStartSeconds=.001*Number(yea));var zea=nU.streamTimeMillis;zea&&(a.gr=.001*Number(zea))}a.progressBarStartPosition=Ht.progressBarStartPosition;a.progressBarEndPosition=Ht.progressBarEndPosition}else{var oU=Qd.skippableSegmentsConfig;if(oU){var Aea=oU.introSkipDurationMs;Aea&&(a.FG=Number(Aea)/1E3);var Bea=oU.outroSkipDurationMs;Bea&&(a.NB=Number(Bea)/1E3)}}var pU=Qd.skippableIntroConfig;if(pU){var Cea=Number(pU.startMs),
Dea=Number(pU.endMs);isNaN(Cea)||isNaN(Dea)||(a.QI=Cea,a.NI=Dea)}var Eea=Qd.streamSelectionConfig;Eea&&(a.Qj=Number(Eea.maxBitrate));var Fea=Qd.vrConfig;Fea&&(a.Vp="1"==Fea.partialSpherical);var Mz=Qd.webDrmConfig;if(Mz){Mz.skipWidevine&&(a.yJ=!0);var Gea=Mz.widevineServiceCert;Gea&&(a.CL=bE(Gea));Mz.useCobaltWidevine&&(a.useCobaltWidevine=!0);Mz.startWithNoQualityConstraint&&(a.Sg=!0)}var Hea=Qd.mediaCommonConfig;if(Hea){var CH=Hea.dynamicReadaheadConfig;CH&&(a.maxReadAheadMediaTimeMs=CH.maxReadAheadMediaTimeMs||
NaN,a.minReadAheadMediaTimeMs=CH.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=CH.readAheadGrowthRateMs||NaN)}var Iea=Qd.inlinePlaybackConfig;Iea&&(a.OE=!!Iea.showAudioControls)}var Jk=a.playerResponse.streamingData;if(Jk){var Jea=Jk.adaptiveFormats;if(Jea){for(var Kea=[],Lea=g.r(Jea),ci=Lea.next();!ci.done;ci=Lea.next()){var DH=ci.value;Kea.push($pa(DH));var Mea=DH.loudnessDb;DH.itag&&null!=Mea&&(a.Pq[DH.itag.toString()]=Mea)}a.adaptiveFormats=Kea.join(",")}var qU=Jk.formats;if(qU){var Nz=
[],Nea=g.r(qU);for(ci=Nea.next();!ci.done;ci=Nea.next()){var rU=ci.value;Nz.push(rU.itag+"/"+rU.width+"x"+rU.height)}a.VF=Nz.join(",");Nz=[];var Oea=g.r(qU);for(ci=Oea.next();!ci.done;ci=Oea.next()){var It=ci.value,Oz={itag:It.itag,type:It.mimeType,quality:It.quality},Pea=It.url;Pea&&(Oz.url=Pea);var Qea=It.cipher||It.signatureCipher;if(Qea){var sU=g.et(Qea);Oz.sp=sU.sp;Oz.s=sU.s;Oz.url=sU.url}Nz.push(g.Ci(Oz))}a.Ni=Nz.join(",")}var tU=Jk.hlsFormats;if(tU){var Rea=Qd||null,EH={};if(Rea){var uU=Rea.audioPairingConfig;
if(uU&&uU.pairs)for(var Sea=g.r(uU.pairs),vU=Sea.next();!vU.done;vU=Sea.next()){var Tea=vU.value,wU=Tea.videoItag;EH[wU]||(EH[wU]=[]);EH[wU].push(Tea.audioItag)}}for(var Uea={},Vea=g.r(tU),yp=Vea.next();!yp.done;yp=Vea.next()){var Wea=yp.value;Uea[Wea.itag]=Wea.bitrate}var Xea=[],Yea=g.r(tU);for(yp=Yea.next();!yp.done;yp=Yea.next()){var Mf=yp.value,jj={itag:Mf.itag,type:Mf.mimeType,url:Mf.url,bitrate:Mf.bitrate,width:Mf.width,height:Mf.height,fps:Mf.fps},FH=Mf.audioTrack;if(FH){var Zea=FH.displayName;
Zea&&(jj.name=Zea,jj.audio_track_id=FH.id,FH.audioIsDefault&&(jj.is_default="1"))}if(Mf.drmFamilies){for(var $ea=[],afa=g.r(Mf.drmFamilies),xU=afa.next();!xU.done;xU=afa.next())$ea.push(GF[xU.value]);jj.drm_families=$ea.join(",")}var GH=EH[Mf.itag];if(GH&&GH.length){jj.audio_itag=GH.join(",");var bfa=Uea[GH[0]];bfa&&(jj.bitrate+=bfa)}var cfa=Opa(Mf);cfa&&(jj.eotf=cfa);Mf.audioChannels&&(jj.audio_channels=Mf.audioChannels);Xea.push(g.Ci(jj))}a.hlsFormats=Xea.join(",")}var yU=Jk.licenseInfos;if(yU&&
0<yU.length){for(var dfa={},efa=g.r(yU),zU=efa.next();!zU.done;zU=efa.next()){var ffa=zU.value,gfa=ffa.drmFamily,hfa=ffa.url;gfa&&hfa&&(dfa[GF[gfa]]=hfa)}a.Ed=dfa}var ifa=Jk.drmParams;ifa&&(a.drmParams=ifa);var jfa=Jk.dashManifestUrl;jfa&&(a.jb=g.Ei(jfa,{cpn:a.clientPlaybackNonce}));var kfa=Jk.hlsManifestUrl;kfa&&(a.hlsvp=kfa);var lfa=Jk.probeUrl;lfa&&(a.probeUrl=Zy(g.Ei(lfa,{cpn:a.clientPlaybackNonce})))}var mfa=a.playerResponse.trackingParams;mfa&&(a.Za=mfa);var Bc=a.playerResponse.videoDetails;
if(Bc){var kj=b,AU=Bc.videoId;AU&&(a.videoId=AU,kj.video_id||(kj.video_id=AU));var nfa=Bc.channelId;nfa&&(a.S.uid=nfa.substr(2));var BU=Bc.title;BU&&(a.title=BU,kj.title||(kj.title=BU));var CU=Bc.lengthSeconds;CU&&(a.lengthSeconds=Number(CU),kj.length_seconds||(kj.length_seconds=CU));var ofa=Bc.keywords;ofa&&(a.keywords=kqa(ofa));var DU=Bc.channelId;DU&&(a.Xi=DU,kj.ucid||(kj.ucid=DU));var pfa=Bc.viewCount;pfa&&(a.rawViewCount=Number(pfa));var EU=Bc.author;EU&&(a.author=EU,kj.author||(kj.author=EU));
var qfa=Bc.shortDescription;qfa&&(a.shortDescription=qfa);var rfa=Bc.isCrawlable;rfa&&(a.isListed=rfa);var sfa=Bc.musicVideoType;sfa&&(a.musicVideoType=sfa);var FU=Bc.isLive;null!=FU&&(a.isLivePlayback=FU);if(FU||Bc.isUpcoming)a.isPremiere=!Bc.isLiveContent;var tfa=Bc.thumbnail;tfa&&(a.Z=pF(tfa));var ufa=Qd||null,GU=b;Bc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Bc.isUpcoming&&(a.isUpcoming=!0);if(Bc.isPostLiveDvr)a.Ze=!0;else{var HU=!1;if(a.rb)a.allowLiveDvr=VF(!0),a.isLivePlayback=!0;
else if(Bc.isLive){GU.livestream="1";a.allowLiveDvr=VF(!!Bc.isLiveDvrEnabled);a.Ka=27;Bc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var vfa=Bc.latencyClass;vfa&&(a.latencyClass=nqa[vfa]||"UNKNOWN");var wfa=Bc.liveChunkReadahead;wfa&&(a.liveChunkReadahead=wfa);var Pz=ufa&&ufa.livePlayerConfig;if(Pz){Pz.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Pz.hasSubfragmentedWebm&&(a.Ik=!0);Pz.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var xfa=Pz.liveExperimentalContentId;xfa&&
(a.liveExperimentalContentId=Number(xfa))}HU=!0}else Bc.isUpcoming&&(HU=!0);HU&&(a.isLivePlayback=!0,GU.adformat&&"8"!==GU.adformat.split("_")[1]||a.Aa.push("heartbeat"),a.N("heartbeat_iff_heartbeat_params_filled")||(a.Ui=!0))}var yfa=Bc.isPrivate;yfa&&(a.isPrivate=mE(a.isPrivate,yfa))}if(Ib){var zfa=Bc||null,Afa=!1,Jt=Ib.errorScreen;Afa=Jt&&(Jt.playerLegacyDesktopYpcOfferRenderer||Jt.playerLegacyDesktopYpcTrailerRenderer||Jt.ypcTrailerRenderer)?!0:zfa&&zfa.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE",
"FULLSCREEN_ONLY"].includes(Ib.status);if(!Afa){a.errorCode="150";var HH=Jt&&Jt.playerErrorMessageRenderer;if(HH){a.playerErrorMessageRenderer=HH;var Bfa=HH.reason;Bfa&&(a.errorReason=g.Sz(Bfa));var JU=HH.subreason;JU&&(a.ri=g.Sz(JU),a.tq=JU)}else a.errorReason=Ib.reason||null;var KU=Ib.status;if("LOGIN_REQUIRED"===KU)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===KU)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===KU){var Cfa=Ib.errorScreen,Dfa=Cfa&&Cfa.playerKavRenderer;a.errorDetail=Dfa&&
Dfa.kavUrl?"4":"3"}else a.errorDetail=Ib.isBlockedInRestrictedMode?"5":"0"}}var Efa=a.playerResponse.interstitialPods;Efa&&Spa(a,Efa);a.Va&&a.eventId&&(a.Va=jt(a.Va,{ei:a.eventId}));var LU=a.playerResponse.captions;LU&&LU.playerCaptionsTracklistRenderer&&Rpa(a,LU.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.OB=.001*Number(a.clipConfig.startTimeMs));a.accountLinkingConfig=a.playerResponse.accountLinkingConfig;a.accountLinkingConfig&&
a.accountLinkingConfig.alsParam&&(a.HI=a.accountLinkingConfig.alsParam);a.N("web_player_include_innertube_commands")&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Upa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}hqa(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var Ffa=b.hlsdvr;null!=Ffa&&(a.allowLiveDvr=VF("1"==Ffa));a.adQueryId=b.ad_query_id||null;
a.Al||(a.Al=b.encoded_ad_safety_reason||null);a.ML=b.agcid||null;a.HC=b.ad_id||null;a.JC=b.ad_sys||null;a.UE=b.encoded_ad_playback_context||null;a.Rg=mE(a.Rg,b.infringe||b.muted);a.authKey=b.authkey;a.JI=b.authuser;a.mutedAutoplay=mE(a.mutedAutoplay,b&&b.playmuted)&&a.N("embeds_enable_muted_autoplay");a.endSeconds=oE(a.endSeconds,a.NB||b.end||b.endSeconds);a.limitedPlaybackDurationInSeconds=oE(a.limitedPlaybackDurationInSeconds,b.limited_playback_duration_in_seconds);a.Za=pE(a.Za,b.itct);a.iH=mE(a.iH,
b.noiba);a.kH=mE(a.kH,b.is_live_destination);a.isLivePlayback=mE(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=mE(a.isUpcoming,b.isUpcoming));a.Ze=mE(a.Ze,b.post_live_playback);a.isMdxPlayback=mE(a.isMdxPlayback,b.mdx);var IH=b.mdx_control_mode;IH&&(a.mdxControlMode="number"===typeof IH?IH:rg(IH));a.isInlinePlaybackNoAd=mE(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Db=oE(a.Db,b.reload_count);a.reloadReason=
pE(a.reloadReason,b.reload_reason);a.bk=mE(a.bk,b.show_content_thumbnail);a.lH=mE(a.lH,b.utpsa);a.qC=mE(a.qC,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.rC=b.tkn||null;var Gfa=oF(b);0<Object.keys(Gfa).length&&(a.Z=Gfa);a.Sa=pE(a.Sa,b.vvt);a.mdxEnvironment=pE(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);a.aY=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=pE(a.playlistId,b.list);
b.index&&(a.playlistIndex=void 0===a.playlistIndex?oE(0,b.index):oE(a.playlistIndex,b.index));a.CI=b.pyv_view_beacon_url;a.MI=b.pyv_quartile25_beacon_url;a.OI=b.pyv_quartile50_beacon_url;a.RI=b.pyv_quartile75_beacon_url;a.KI=b.pyv_quartile100_beacon_url;var Hfa=b.remarketing_url;Hfa&&(a.remarketingUrl=Hfa);var Ifa=b.ppv_remarketing_url;Ifa&&(a.ppvRemarketingUrl=Ifa);var Jfa=b.session_data;!a.TI&&Jfa&&(a.TI=ct(Jfa,"&").feature);a.isFling=1==oE(a.isFling?1:0,b.is_fling);a.vnd=oE(a.vnd,b.vnd);a.Ug=pE(a.Ug,
b.force_ads_url);a.Zf=pE(a.Zf,b.ctrl);a.Ef=pE(a.Ef,b.ytr);a.Il=b.ytrcc;a.VI=b.ytrexp;a.QB=b.ytrext;a.Nb=pE(a.Nb,b.adformat);a.Ar=pE(a.Ar,b.attrib);a.slotPosition=oE(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.EC=mE(a.EC,b.ssrt);a.videoId=rE(b)||a.videoId;a.X=pE(a.X,b.vss_credentials_token);a.Uh=pE(a.Uh,b.vss_credentials_token_type);a.ye=mE(a.ye,b.audio_only);a.yC=mE(a.yC,b.aac_high);a.BC=mE(a.BC,b.prefer_low_quality_audio);a.Vj=pE(a.Vj,b.qoe_cat);a.Yp=mE(a.Yp,b.download_media);a.La=mE(a.La,
b.prefer_gapless);a:{var MU=a.playerResponse;if(MU&&MU.adPlacements)for(var Kfa=g.r(MU.adPlacements),NU=Kfa.next();!NU.done;NU=Kfa.next()){var JH=NU.value.adPlacementRenderer;if(null!=JH&&"AD_PLACEMENT_KIND_START"==(JH.config&&JH.config.adPlacementConfig&&JH.config.adPlacementConfig.kind)){var Lfa=!0;break a}}Lfa=!1}Lfa&&(a.adModule=!0,a.Aa.push("ad"));var Mfa=b.adaptive_fmts;Mfa&&(a.adaptiveFormats=Mfa);var Nfa=b.allow_embed;Nfa&&(a.allowEmbed="1"==Nfa);var Ofa=b.backgroundable;Ofa&&(a.backgroundable=
"1"==Ofa);var Pfa=b.autonav;Pfa&&(a.Mk="1"==Pfa);var Qfa=b.autoplay;Qfa&&(a.Qk="1"==Qfa);var Rfa=b.iv_load_policy;Rfa&&(a.annotationsLoadPolicy=nE(a.annotationsLoadPolicy,Rfa,JE));var Sfa=b.cc_lang_pref;Sfa&&(a.captionsLanguagePreference=pE(Sfa,a.captionsLanguagePreference));var Tfa=b.cc_load_policy;Tfa&&(a.xC=nE(a.xC,Tfa,JE));a.deviceCaptionsOn=null!==(c=b.device_captions_on)&&void 0!==c?c:void 0;a.KO=null!==(d=b.device_captions_lang_pref)&&void 0!==d?d:"";a.wC=null!==(e=b.viewer_selected_caption_langs)&&
void 0!==e?e:[];var Ufa=b.cached_load;Ufa&&(a.lp=mE(a.lp,Ufa));"0"==b.dash&&(a.sE=!0);var Vfa=b.dashmpd;Vfa&&(a.jb=g.Ei(Vfa,{cpn:a.clientPlaybackNonce}));var Wfa=b.delay;Wfa&&(a.Zb=rg(Wfa));var Xfa=a.NB||b.end;void 0!=Xfa&&(a.clipEnd=oE(a.clipEnd,Xfa));var Yfa=b.fmt_list;Yfa&&(a.VF=Yfa);b.heartbeat_preroll&&a.Aa.push("heartbeat");a.Pj=-Math.floor(10*Math.random());a.ul=-Math.floor(40*Math.random());var Zfa=b.is_listed;Zfa&&(a.isListed=mE(a.isListed,Zfa));var $fa=b.is_private;$fa&&(a.isPrivate=mE(a.isPrivate,
$fa));var aga=b.is_dni;aga&&(a.D=mE(a.D,aga),a.u.C&&"1"==a.u.controlsType&&(a.u.controlsType="3",a.u.C=!1,a.u.bd=!1));var cga=b.dni_color;cga&&(a.Wa=pE(a.Wa,cga));var dga=b.pipable;dga&&(a.pipable=mE(a.pipable,dga));a.KC=a.pipable&&a.u.Al;a.nC=a.KC&&(!a.u.showMiniplayerButton||a.N("web_player_pip"));var ega=b.paid_content_overlay_duration_ms;ega&&(a.paidContentOverlayDurationMs=rg(ega));var fga=b.paid_content_overlay_text;fga&&(a.paidContentOverlayText=fga);var gga=b.url_encoded_fmt_stream_map;gga&&
(a.Ni=gga);var hga=b.hls_formats;hga&&(a.hlsFormats=hga);var iga=b.hlsvp;iga&&(a.hlsvp=iga);var KH=b.length_seconds;KH&&(a.lengthSeconds="string"===typeof KH?rg(KH):KH);var LH=b.live_start_walltime;LH&&(a.KB="number"===typeof LH?LH:rg(LH));var MH=b.live_manifest_duration;MH&&(a.bh="number"===typeof MH?MH:rg(MH));var jga=b.player_params;jga&&(a.playerParams=jga);var kga=b.partnerid;kga&&(a.Ka=oE(a.Ka,kga));var lga=b.probe_url;lga&&(a.probeUrl=Zy(g.Ei(lga,{cpn:a.clientPlaybackNonce})));var OU=b.pyv_billable_url;
OU&&Uka(OU)&&(a.Gb=OU);var PU=b.pyv_conv_url;PU&&Uka(PU)&&(a.II=PU);lqa(a,b);0<a.startSeconds||(a.startSeconds=oE(a.startSeconds,a.OB||a.FG||b.start||b.startSeconds),a.qc=a.startSeconds);if(a.N("html5_start_seconds_priority")){if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var mga=b.live_utc_start;if(null!=mga)a.liveUtcStartSeconds=Number(mga);else{var QU=a.startSeconds;QU&&isFinite(QU)&&1E9<QU&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var nga=
b.utc_start_millis;nga&&(a.liveUtcStartSeconds=.001*Number(nga))}}else{var oga=b.live_utc_start;null!=oga&&(a.liveUtcStartSeconds=Number(oga));var pga=b.utc_start_millis;pga&&(a.liveUtcStartSeconds=.001*Number(pga))}var qga=b.stream_time_start_millis;qga&&(a.gr=.001*Number(qga));var rga=a.FG||b.start;void 0==rga||"1"==b.resume||a.isLivePlayback||(a.clipStart=oE(a.clipStart,rga));var sga=b.url_encoded_third_party_media;sga&&(a.Li=ft(sga));var RU=b.ypc_offer_button_formatted_text;if(RU){var tga=JSON.parse(RU);
a.AC=null!=tga?tga:null;a.EL=RU}var uga=b.ypc_offer_button_text;uga&&(a.Er=uga);var vga=b.ypc_offer_description;vga&&(a.hk=vga);var wga=b.ypc_offer_headline;wga&&(a.Gr=wga);var xga=b.ypc_full_video_message;xga&&(a.fk=xga);var yga=b.ypc_offer_id;yga&&(a.Yi=yga);var zga=b.ypc_buy_url;zga&&(a.Br=zga);var Aga=b.ypc_item_thumbnail;Aga&&(a.Cr=Aga);var Bga=b.ypc_item_title;Bga&&(a.gk=Bga);var Cga=b.ypc_item_url;Cga&&(a.Dr=Cga);var Dga=b.ypc_vid;Dga&&(a.Hr=Dga);b.ypc_overlay_timeout&&(a.jk=Number(b.ypc_overlay_timeout));
var Ega=b.ypc_trailer_player_vars;Ega&&(a.aj=g.et(Ega));var Fga=b.ypc_original_itct;Fga&&(a.cY=Fga);a.Xi=pE(a.Xi,b.ucid);b.baseUrl&&(a.S.baseUrl=b.baseUrl);b.uid&&(a.S.uid=b.uid);b.oeid&&(a.S.oeid=b.oeid);b.ieid&&(a.S.ieid=b.ieid);b.ppe&&(a.S.ppe=b.ppe);b.engaged&&(a.S.engaged=b.engaged);b.subscribed&&(a.S.subscribed=b.subscribed);a.S.focEnabled=mE(a.S.focEnabled,b.focEnabled);a.S.rmktEnabled=mE(a.S.rmktEnabled,b.rmktEnabled);a.er=b.storyboard_spec||null;a.Kq=b.live_storyboard_spec||null;a.wH=b.iv_endscreen_url||
null;a.HB=mE(a.HB,b.iv3_module);a.Ui=mE(a.Ui,b.ypc_license_checker_module);a.Oe=mE(a.Oe,b.ypc_module);a.Si=mE(a.Si,b.ypc_clickwrap_module);a.Oe&&a.Aa.push("ypc");a.Si&&a.Aa.push("ypc_clickwrap");a.tI={video_id:b.video_id,eventid:b.eventid,cbrand:b.cbrand,cbr:b.cbr,cbrver:b.cbrver,c:b.c,cver:b.cver,ctheme:b.ctheme,cplayer:b.cplayer,cmodel:b.cmodel,cnetwork:b.cnetwork,cos:b.cos,cosver:b.cosver,cplatform:b.cplatform,user_age:b.user_age,user_display_image:b.user_display_image,user_display_name:b.user_display_name,
user_gender:b.user_gender,csi_page_type:b.csi_page_type,csi_service_name:b.csi_service_name,enablecsi:b.enablecsi,enabled_engage_types:b.enabled_engage_types};iqa(a,b);var Gga=b.cotn;Gga&&(a.cotn=Gga);if(oqa(a))WF(a)&&(a.isLivePlayback&&a.jb&&(a.wd=!0),a.Zc&&(a.gj=!0));else if(pqa(a))a.wd=!0;else{var Kga=qqa(a,a.adaptiveFormats);if(Kga){XF(a,Kga);var Lga=!0}else Lga=!1;Lga?a.N("html5_disable_manifestfull_ssdai_killswitch")||(a.enableServerStitchedDai=a.enableServerStitchedDai&&YF(a)):a.jb&&(a.wd=
!0)}var TU=b.adpings;TU&&(a.zl=TU?g.et(TU):null);var Mga=b.feature;Mga&&(a.pL=Mga);var Nga=b.referrer;Nga&&(a.referrer=Nga);a.clientScreenNonce=pE(a.clientScreenNonce,b.csn);a.ax=oE(a.ax,b.root_ve_type);a.Tj=oE(a.Tj,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.ir=mE(a.ir,b.upg_content_filter_mode);var Oga=b.unplugged_location_info;Oga&&(a.va=Oga);var Pga=b.unplugged_partner_opt_out;Pga&&(a.GC=pE("",Pga));a.Pp=mE(a.Pp,b.disable_watch_next);a.dj=pE(a.dj,b.internal_ip_override);
a.jH=!!b.is_yto_interstitial;(a.interstitials.length||a.jH)&&a.Aa.push("yto");var Qga=b.zi;Qga&&(a.zi=Qga);b.eB&&(a.eB=b.eB);a.vb=null!==(f=b.csi_timer)&&void 0!==f?f:"";a.Yg=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);a.N("html5_attach_watch_endpoint_ustreamer_config")&&b.watch_endpoint&&rqa(a,b.watch_endpoint)};
hqa=function(a,b){var c,d,e,f,h,l,m,n,p,q,t,u,v,y,z,C,G,F,J,U,K=b.raw_watch_next_response;if(!K){var V=b.watch_next_response;V&&(K=JSON.parse(V))}if(K){a.watchNextResponse=K;var xa=a.watchNextResponse.contents;if(xa){var La=xa.singleColumnWatchNextResults;if(La){var rb=oE(0,b.autoplay_count),pb;if(La.autoplay&&La.autoplay.autoplay&&!La.playlist){var Pb=La.autoplay.autoplay.sets,lc={},Qa=new g.rF(a.u),cc=null,Ib;if(Pb){for(var Zg=g.r(Pb),ai=Zg.next();!ai.done;ai=Zg.next()){var $g=ai.value.autoplayVideoRenderer;
if($g&&$g.compactVideoRenderer){cc=$g.compactVideoRenderer;break}}if(Ib=Pb[0].autoplayVideo){var gj=Ib.clickTrackingParams;gj&&(lc.itct=gj);lc.autonav="1";lc.playnext=String(rb)}}else lc.feature="related-auto";if(cc){Qa.videoId=cc.videoId;var Dk=cc.shortBylineText;Dk&&(Qa.author=g.Sz(Dk));var $e=cc.title;$e&&(Qa.title=g.Sz($e))}else if(null===(pb=null===Ib||void 0===Ib?void 0:Ib.watchEndpoint)||void 0===pb?0:pb.videoId)Qa.videoId=Ib.watchEndpoint.videoId;Qa.fv=lc;a.suggestions=[Qa]}}var vc=xa.twoColumnWatchNextResults}a.YW=
!(null===(c=null===vc||void 0===vc?void 0:vc.autoplay)||void 0===c||!c.autoplay);var Ee=a.watchNextResponse.playerOverlays;if(Ee){var Xa=Ee.playerOverlayRenderer;if(Xa){var Qc=Xa.endScreen;if(Qc){var fz=Qc.watchNextEndScreenRenderer;if(fz)var bi=fz.results}var rp=Xa.videoDetails;if(rp){var gz=rp.embeddedPlayerOverlayVideoDetailsRenderer;var nt=rp.musicEmbeddedPlayerOverlayVideoDetailsRenderer;nt&&(a.TF=nt.title,a.LF=nt.byline);var fe=rp.playerOverlayVideoDetailsRenderer;fe&&(fe.title&&(b.title=g.Sz(fe.title)),
fe.subtitle&&(b.subtitle=g.Sz(fe.subtitle)))}var hz=Xa.actions;if(hz)for(var iz=g.r(hz),ot=iz.next();!ot.done;ot=iz.next()){var jz=ot.value;jz.likeButtonRenderer&&(a.likeButtonRenderer=jz.likeButtonRenderer)}var zm=null===(e=null===(d=Xa.suggestedActionsRenderer)||void 0===d?void 0:d.suggestedActionsRenderer)||void 0===e?void 0:e.suggestedActions;if(zm)for(var kz=g.r(zm),pt=kz.next();!pt.done;pt=kz.next()){var lz=pt.value;if(null===(h=null===(f=lz.suggestedActionRenderer)||void 0===f?void 0:f.trigger)||
void 0===h?0:h.suggestedActionTimeRangeTrigger)a.suggestedAction=lz.suggestedActionRenderer}var sp=null===(l=Xa.decoratedPlayerBarRenderer)||void 0===l?void 0:l.decoratedPlayerBarRenderer;sp&&(a.multiMarkersPlayerBarRenderer=null===(m=sp.playerBar)||void 0===m?void 0:m.multiMarkersPlayerBarRenderer,a.KD=null===(p=null===(n=sp.playerBar)||void 0===n?void 0:n.chapteredPlayerBarRenderer)||void 0===p?void 0:p.chapters,a.bY=null===(q=sp.playerBarActionButton)||void 0===q?void 0:q.buttonRenderer);g.DE(a.u)&&
(a.Mf=!!Xa.addToMenu);sqa(a,Xa.shareButton);var mz=Xa.productsInVideoOverlayRenderer;mz&&(a.shoppingOverlayRenderer=mz.shoppingOverlayRenderer);var nz=Xa.autoplay;if(nz)var ah=nz.playerOverlayAutoplayRenderer;a.progressBarStartPosition=Xa.startPosition;a.progressBarEndPosition=Xa.endPosition}}if(!bi&&vc){var hj=vc.endScreen&&vc.endScreen.endScreen;hj&&(bi=hj.results)}if(vc){var qt=vc.desktopOverlay&&vc.desktopOverlay.desktopOverlayConfigRenderer;qt&&(qt.suppressShareButton&&(a.showShareButton=!1),
qt.suppressWatchLaterButton&&(a.Mf=!1))}gz&&tqa(a,b,gz);var rt=oE(0,b.autoplay_count);if(bi){for(var zH=vc||null,oz=ah||null,tt=[],pz=!0,qz=g.r(bi),Ek=qz.next();!Ek.done;Ek=qz.next()){var tp=Ek.value,up=void 0,mc=null;if(tp.endScreenVideoRenderer){var dc=tp.endScreenVideoRenderer,vp=dc.title;mc=new g.rF(a.u);mc.videoId=dc.videoId;mc.lengthSeconds=dc.lengthInSeconds||0;var rz=dc.publishedTimeText;rz&&(mc.publishedTimeText=g.Sz(rz));var sz=dc.shortBylineText;sz&&(mc.author=g.Sz(sz));var tz=dc.shortViewCountText;
tz&&(mc.shortViewCount=g.Sz(tz));if(vp){mc.title=g.Sz(vp);var uz=vp.accessibility;if(uz){var ut=uz.accessibilityData;ut&&ut.label&&(mc.Dl=ut.label)}}var Am=dc.navigationEndpoint;if(Am){up=Am.clickTrackingParams;var vz=Am.watchEndpoint;vz?mc.hv=vz:Am.urlEndpoint&&(mc.watchUrl=Am.urlEndpoint.url)}var wz=dc.thumbnailOverlays;if(wz)for(var xz=g.r(wz),vt=xz.next();!vt.done;vt=xz.next()){var wt=vt.value.thumbnailOverlayTimeStatusRenderer;if(wt)if("LIVE"===wt.style){mc.isLivePlayback=!0;break}else if("UPCOMING"===
wt.style){mc.isUpcoming=!0;break}}mc.Z=pF(dc.thumbnail)}else if(tp.endScreenPlaylistRenderer){var Fk=tp.endScreenPlaylistRenderer,xt=Fk.navigationEndpoint;if(!xt)continue;var yz=xt.watchEndpoint;if(!yz)continue;var zz=yz.videoId;mc=new g.qF(a.u);mc.playlistId=Fk.playlistId;mc.playlistLength=Number(Fk.videoCount)||0;mc.i=zz||null;mc.videoId=zz;var zt=Fk.title;zt&&(mc.title=g.Sz(zt));var Az=Fk.shortBylineText;Az&&(mc.author=g.Sz(Az));up=xt.clickTrackingParams;mc.Z=pF(Fk.thumbnail)}mc&&(up&&(mc.sessionData=
{itct:up}),pz?(uqa(mc,zH,oz,rt),tt.splice(0,0,mc),pz=!1):tt.push(mc))}a.suggestions=tt}if(ah){a.xI=!!ah.preferImmediateRedirect;a.Fc=a.Fc||!!ah.webShowNewAutonavCountdown;a.hh=a.hh||!!ah.webShowBigThumbnailEndscreen;if(a.Fc||a.hh){var uf=ah,At=bi||null,AH=vc||null,Bt,Fe,Pd=new g.rF(a.u);Pd.videoId=uf.videoId;var Bz=null===(Fe=null===(Bt=null===At||void 0===At?void 0:At[0])||void 0===Bt?void 0:Bt.endScreenVideoRenderer)||void 0===Fe?void 0:Fe.navigationEndpoint;if(Bz){var Ct=Bz.clickTrackingParams;
Ct&&(Pd.sessionData={itct:Ct})}var Bm=uf.videoTitle;if(Bm){Pd.title=g.Sz(Bm);var Cz=Bm.accessibility;if(Cz){var Cm=Cz.accessibilityData;Cm&&Cm.label&&(Pd.Dl=Cm.label)}}var af=uf.byline;af&&(Pd.author=g.Sz(af));var Dz=uf.publishedTimeText;Dz&&(Pd.publishedTimeText=g.Sz(Dz));var BH=uf.shortViewCountText;BH&&(Pd.shortViewCount=g.Sz(BH));var Ez=uf.thumbnailOverlays;if(Ez)for(var Dt=g.r(Ez),Et=Dt.next();!Et.done;Et=Dt.next()){var ij=Et.value.thumbnailOverlayTimeStatusRenderer;if(ij)if("LIVE"===ij.style){Pd.isLivePlayback=
!0;break}else if("UPCOMING"===ij.style){Pd.isUpcoming=!0;break}else if("DEFAULT"===ij.style&&ij.text){Pd.lengthText=g.Sz(ij.text);var Gk=ij.text.accessibility;if(Gk){var Qd=Gk.accessibilityData;Qd&&Qd.label&&(Pd.eq=Qd.label||"")}break}}Pd.Z=pF(uf.background);var Hk=uf.nextButton;if(Hk){var Fz=Hk.buttonRenderer;if(Fz){var Gz=Fz.navigationEndpoint;if(Gz){var Hz=Gz.watchEndpoint;Hz&&(Pd.hv=Hz)}}}if(uf.topBadges){var Iz=uf.topBadges[0];if(Iz){var Jz=Iz.metadataBadgeRenderer;Jz&&"BADGE_STYLE_TYPE_PREMIUM"==
Jz.style&&(Pd.eB=!0)}}var wp=uf.alternativeTitle;wp&&(Pd.Tm=g.Sz(wp));uqa(Pd,AH,uf,rt);a.suggestions||(a.suggestions=[]);a.suggestions[0]=Pd}null!=ah.countDownSecs&&(a.YM=1E3*ah.countDownSecs);a.UX=null===(t=ah.cancelButton)||void 0===t?void 0:t.buttonRenderer}a.watchNextResponse.currentVideoThumbnail&&(a.Z=pF(a.watchNextResponse.currentVideoThumbnail));if(!a.N("player_parse_profile_picture_from_watch_next_killswitch")){var Ft=null===(C=null===(z=null===(y=null===(v=null===(u=a.watchNextResponse)||
void 0===u?void 0:u.contents)||void 0===v?void 0:v.twoColumnWatchNextResults)||void 0===y?void 0:y.results)||void 0===z?void 0:z.results)||void 0===C?void 0:C.contents;if(Ft&&Ft[1]){var Ik=null===(U=null===(J=null===(F=null===(G=Ft[1].videoSecondaryInfoRenderer)||void 0===G?void 0:G.owner)||void 0===F?void 0:F.videoOwnerRenderer)||void 0===J?void 0:J.thumbnail)||void 0===U?void 0:U.thumbnails;Ik&&Ik.length&&(a.Nh=Ik[Ik.length-1].url)}}var Kz=a.watchNextResponse.onResponseReceivedEndpoints;if(Kz)for(var Lz=
g.r(Kz),Gt=Lz.next();!Gt.done;Gt=Lz.next()){var xp=Gt.value;xp.changeKeyedMarkersVisibilityCommand&&(a.LB=xp.changeKeyedMarkersVisibilityCommand)}}};
ZF=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
bG=function(a){if(a.N("html5_single_format_policy")&&a.fc)return a.fc;var b=a.La,c=!!a.i&&(rna(a.i)||sna(a.i)||tna(a.i)),d=a.u,e=!!a.i&&a.i.tf,f=a.Pn(),h=a.yC,l=a.isOtf(),m=a.SC(),n=a.rb,p=a.xe,q=new $na;if(a.oa||d.N("html5_logging_format_selection"))q.K=!0;d.N("html5_allow_chromecast_opus")&&(q.La=!0);q.Za=f;q.Ha=h&&d.u;q.xe=p;ou("windows nt 5.1")&&!g.mj&&(q.i=!0);if(f=c)f=d.N("disable_html5_ambisonic_audio")||!(g.cF(d)||d.N("html5_enable_spherical")||d.N("html5_enable_spherical3d"))?!1:Voa(d);f&&
(q.Wa=!0);b&&(q.i=!0,q.Gb=!0);l&&!d.N("html5_otf_prefer_vp9")&&(q.i=!0);n&&(q.i=!0);OA(d.B,PA.CHANNELS)&&(d.N("html5_enable_aac51")&&(q.va=!0),d.N("html5_enable_ac3")&&(q.D=!0),d.N("html5_enable_eac3")&&(q.I=!0),d.N("html5_enable_ac3_gapless")&&(q.Ka=!0));d.N("html5_block_8k_hfr")&&(q.kb=!0);!$F||d.N("html5_enable_hdr_on_macos")||navigator.hardwareConcurrency&&10!==navigator.hardwareConcurrency||(q.jb=!0);q.S=g.S(d.experiments,"html5_max_selectable_quality_ordinal");q.X=g.S(d.experiments,"html5_min_selectable_quality_ordinal");
!d.N("html5_kaios_hd_killswitch")&&uE&&(q.Eb=480);if(e||c)q.bb=!1;q.rb=!1;b=JD(d,q.u);0<b&&2160>b&&(oD()||d.N("html5_format_hybridization"))&&(q.u.supportsChangeType=+oD(),q.B=b);2160<=b&&(q.Z=!0);Yna()&&(q.u.serveVp9OverAv1IfHigherRes=0,q.Nb=!1);q.SC=m;m=g.Pw||Eu()&&!m?!1:!0;q.Va=m;q.Ba=d.N("html5_format_hybridization");q.Aa=d.N("html5_disable_codec_on_errors_with_exp_backoff");q.wb=d.N("html5_disable_codec_on_platform_errors");q.Db=d.N("html5_disable_encrypted_vp9_live_non_2k_4k");tu()&&a.playerResponse&&
a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.D=!0,q.I=!0);a.La&&a.isAd()&&(a.yl&&(q.oa=a.yl),a.xl&&(q.C=a.xl));q.Sa=a.isLivePlayback&&aG(a)&&a.u.N("html5_drm_live_audio_51");return a.fc=q};
wqa=function(a){a.Zc||a.i&&QA(a.i);var b={};a.i&&(b=MA(bG(a),a.u.B,a.i,function(c){return a.ea("ctmp","fmtflt",c)},!0));
b=new UD(b,a.u.experiments,a.yJ,vqa(a),function(c,d){a.Ca(c,d)});
g.H(a,b);a.gj=!1;a.Ha=!0;doa(b,function(c){for(var d=g.r(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.u=a.Zc;e.K=a.KW;e.I=a.nT;break;case "widevine":e.B=a.CL}a.Yt=c;if(0<a.Yt.length&&(a.I=a.Yt[0],g.cG(a))){c=[];d=g.r(Object.entries(a.I.i));for(e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c.push(h+"_"+f)}a.Ca("drmProbe",c.join("."))}TF(a)})};
qqa=function(a,b){var c;(c=!b)||(c=!(!a.N("html5_manifestless_unplugged")&&a.isLivePlayback&&g.YE(a.u)&&g.ME(a.u)?0:!WF(a)&&a.adaptiveFormats));if(c)return null;dG(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(Bna=!0);c=eG(b);var d=Date.now();b=Ana(c,a.Ed,a.lengthSeconds,a.isLivePlayback,a.Ze,a.u);d=Date.now()-d;if(a.N("html5_log_manifest_performance")){var e=wna(b)?1:0;a.Ca("mfsp","wasm."+e+";t."+d)}0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=yD(c.url,c.sp,c.s),c=Number(c.get("max_sq"))||Infinity,
isFinite(c)&&(a.ej=!0)));if(c=b.isManifestless)c=!(a.N("html5_manifestless_vp9")||a.N("html5_manifestless_vp9_normal_latency")&&(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||!xqa(b));return c?(b.dispose(),null):b};
WF=function(a){return tu()?!fG(a):xu()?!(!a.Zc||!a.N("html5_enable_safari_fairplay")):!1};
fG=function(a){return dG(a,"html5_enable_tvos_dash_dogfood")||a.N("html5_enable_tvos_dash")&&(a.N("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
vqa=function(a){return a.useCobaltWidevine?tu()?fG(a):!1:!1};
xqa=function(a){return a.isManifestless&&ZC('video/webm; codecs="vp9"')&&g.te(a.i,function(b){return QC(b.info)})};
YF=function(a){return!(!a.i||!a.i.isManifestless)};
yqa=function(a){var b;return yA()?a.N("html5_streaming_debug")||YF(a)&&("ULTRALOW"==a.latencyClass||21530001==gG(a))?!0:!window.AbortController&&!AA()||a.La?!1:a.N("html5_streaming_xhr")||a.N("html5_streaming_xhr_vod")&&!1===(null===(b=a.i)||void 0===b?void 0:b.tf)||a.N("html5_streaming_xhr_manifestless")&&YF(a)?!0:!1:!1};
zqa=function(a){return Nla({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Ik:a.Ik,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:YF(a),DG:yqa(a)})};
gG=function(a){return a.isLowLatencyLiveStream&&void 0!=a.i&&5<=ED(a.i)?21530001:a.liveExperimentalContentId};
oqa=function(a){return tu()&&fG(a)?!1:WF(a)&&g.YE(a.u)&&!a.isLivePlayback||!XD()||a.sE?!0:!1};
Bqa=function(a){a.Ha=!0;a.wd=!1;if(pqa(a))Dpa(a.videoId).then(function(d){Aqa(a,d)}).then(function(){TF(a)});
else{Xy(a.jb)||g.ky(new g.iw("DASH MPD Origin invalid: ",a.jb));var b=a.jb,c=g.S(a.u.experiments,"dash_manifest_version")||4;b=g.Ei(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Ei(b,{pacing:0}));Jna(b,a.u.experiments,a.isLivePlayback).then(function(d){a.isDisposed()||(XF(a,d,!0),sA("mrc",void 0,a.vb),TF(a))},function(d){a.isDisposed()||(a.Ha=!1,a.ea("dataloaderror",new g.lD("manifest.net.retryexhausted",!0,{backend:"manifest",
rc:d.status})))});
sA("mrs",void 0,a.vb)}};
Aqa=function(a,b){var c=b.map(function(e){return e.itag}),d=a.playerResponse.streamingData.adaptiveFormats.filter(function(e){return c.includes(e.itag)}).map(function(e){e=Object.assign({},e);
e.url=b.find(function(f){return f.itag===e.itag}).url;
e.signatureCipher="";return $pa(e)}).join(",");
d=qqa(a,d);XF(a,d);a.Ca("dlr","")};
TF=function(a){a.isDisposed()||(a.Ha=!1,a.ea("dataloaded"))};
XF=function(a,b,c){c=void 0===c?!1:c;a.i=b;g.H(a,b);b.qe=a.qe;b.vg=a.vg;b.I=a.UI;b.D=a.SI;a.N("html5_start_walltime_min_seekable_killswitch")||(b.K=a.rL);Cqa(a)&&a.Aa.push("webgl");a.i.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.bh=Number(d[d.indexOf("manifest_duration")+1]));b.B&&(b.subscribe("clienttemp",a.Ca,a),c?b.subscribe("refresh",a.qM,a):b.subscribe("cuepointsadded",a.CJ,a));QA(b)&&(a.gj=!0)};
aG=function(a){return a.Ed?!0:!!a.i&&QA(a.i)};
Hqa=function(a,b){if(a.isDisposed())return eu();a.C=null;a.bb=null;a.Eb=null;var c=a.u.deviceParams.c;if(!a.N("disable_rqs")){c=/UNPLUGGED/.test(c)?256:16;var d=a.u.gk;a.oa=g.cG(a)||1==d[0]&&d[1]<c}return Dqa(a,b).then(void 0,function(){return Eqa(a,b)}).then(void 0,function(){return Fqa(a)}).then(void 0,function(){return Gqa(a)})};
Dqa=function(a,b){var c=b||oqa(a);if(!a.i||c)return a.Ca("skipDash","dm."+ +!!a.i+";air."+ +b+";dd."+ +a.sE+";mss."+ +XD()),eu();a.Pn()&&Nna(a.i,a.isLivePlayback);dG(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.u.B.u=!0);return Iqa(a).then(function(){return Mla(bG(a),a.u.B,a.i,a.I,function(d){return a.ea("ctmp","fmtflt",d)}).then(function(d){Jqa(a,d);
/^av/.test(a.clientPlaybackNonce)&&a.fc&&a.Ca("av1",g.kD(a.fc.u))})})};
Iqa=function(a){if(!(a.i&&a.i.i&&navigator.mediaCapabilities&&a.N("html5_blocking_media_capabilities")))return fu();a=Object.values(a.i.i);return Promise.all(Array.from(a,function(b){return fna(b.info)}))};
Eqa=function(a,b){var c,d,e,f,h;if(b&&a.hlsvp)return eu();if(a.hlsFormats){b=eG(a.hlsFormats);if((null===(c=a.fc)||void 0===c?0:c.K)&&b){for(var l=[],m=g.r(b),n=m.next();!n.done;n=m.next())l.push(n.value.itag);a.Ca("hlsfmt",l.join("."))}a.zq=cpa(a.u,b);l=a.clientPlaybackNonce;return hpa(a.u,a.isAd(),b,null!==(h=null===(f=null===(e=null===(d=a.playerResponse)||void 0===d?void 0:d.captions)||void 0===e?void 0:e.playerCaptionsRenderer)||void 0===f?void 0:f.baseUrl)&&void 0!==h?h:null,a.Qj,l,function(p){return a.ea("ctmp",
"hlsflt",p)}).then(function(p){for(var q,t,u,v,y=0,z=[],C=g.r(p),G=C.next();!G.done;G=C.next())G=G.value,z.push(null===(q=G.lf())||void 0===q?void 0:q.jc()),(null===(u=null===(t=G.lf())||void 0===t?void 0:t.audio)||void 0===u?void 0:u.numChannels)>y&&(y=G.lf().audio.numChannels);
2<y&&a.Ca("hlschl",""+y);(null===(v=a.fc)||void 0===v?0:v.K)&&a.Ca("hlsfmtaf",z.join("."));hG(a,p)})}return eu()};
Fqa=function(a){return a.Li&&a.vH?kpa(a.u,a.isAd(),a.Li).then(function(b){hG(a,b)}):eu()};
Gqa=function(a){var b=eG(a.Ni,a.VF);if(a.hlsvp){var c=eqa(a.hlsvp,a.clientPlaybackNonce,a.Qj);b.push(c)}return ipa(a.u,a.isAd(),b,Kqa(a)).then(function(d){hG(a,d)})};
Jqa=function(a,b){a.C=b;b=a.getAvailableAudioTracks();b=b.concat(a.bj);for(var c=0;c<a.gD.length;c++)for(var d=a.gD[c],e=0;e<b.length;e++){var f=b[e],h=f.zc.id==d.audioTrackId;if(f.zc.isDefault&&c==a.rO||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.B=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.i=a.captionTracks[d.forcedCaptionTrackIndex]);
f.u=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}if(a.I&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=TC(a.C.videoInfos[0]),b!=("fairplay"==a.I.flavor)))for(c=g.r(a.Yt),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.I=d;break}};
hG=function(a,b){a.Eb=b;Jqa(a,new JA(g.Mm(a.Eb,function(c){return c.lf()})))};
Kqa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.u.deviceParams.c,cver:a.u.deviceParams.cver};a.Oq&&(b.ptk=a.Oq,b.oid=a.rI,b.ptchn=a.pI,b.pltype=a.sI,a.Zp&&(b.m=a.Zp));return b};
g.iG=function(a){return WF(a)&&a.Zc?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.Ed||null};
Lqa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.Sz(b.text):a.paidContentOverlayText};
jG=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?rg(b.durationMs):a.paidContentOverlayDurationMs};
kG=function(a){var b="";if(a.JB)return a.JB;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.lG=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
mG=function(a){return!!(a.jb||a.adaptiveFormats||a.Ni||a.Li||a.hlsvp)};
SF=function(a){if(a.N("html5_onesie")&&a.errorCode)return!1;var b=g.Qb(a.Aa,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Ha&&(mG(a)||g.Qb(a.Aa,"heartbeat")||b)};
eG=function(a,b){a=ft(a);var c={};if(b){b=g.r(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.r(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a};
sqa=function(a,b){var c,d;a.showShareButton=!!b;var e=(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);e&&(a.dk=!!e.copyTextEndpoint)};
gqa=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.gg=m);if(a.gg){if(m=a.gg.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.gg.embedPreview){m=m.thumbnailPreviewRenderer;n=m.controlBgHtml;null!=n?(a.Wa=n,a.D=!0,a.u.C&&"1"==a.u.controlsType&&(a.u.controlsType="3",
a.u.C=!1,a.u.bd=!1)):(a.Wa="",a.D=!1);if(n=m.defaultThumbnail)a.Z=pF(n),a.sampledThumbnailColor=n.sampledThumbnailColor;(n=null===(c=null===m||void 0===m?void 0:m.videoDetails)||void 0===c?void 0:c.embeddedPlayerOverlayVideoDetailsRenderer)&&tqa(a,b,n);if(n=null===(d=null===m||void 0===m?void 0:m.videoDetails)||void 0===d?void 0:d.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.TF=n.title,a.LF=n.byline,n.musicVideoType&&(a.musicVideoType=n.musicVideoType);a.Mf=!!m.addToWatchLaterButton;sqa(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)rqa(a,n),a.videoId=n.videoId||a.videoId;m.videoDurationSeconds&&(a.lengthSeconds=rg(m.videoDurationSeconds));a.N("web_player_include_innertube_commands")&&m.webPlayerActionsPorting&&Upa(a,m.webPlayerActionsPorting);if(m=null===(l=null===m||void 0===m?void 0:m.playlist)||void 0===l?void 0:l.playlistPanelRenderer){n=
[];var p=Number(m.currentIndex);if(m.contents)for(var q=0,t=m.contents.length;q<t;q++){var u=m.contents[q].playlistPanelVideoRenderer;if(u){var v=u.shortBylineText?g.Sz(u.shortBylineText):"",y=u.title?g.Sz(u.title):"";n.push({author:v,encrypted_id:u.videoId,title:y,channel_path:q===p?b.channel_path:"",profile_picture:q===p?b.profile_picture:"",is_private:q===p?a.isPrivate:!1,is_dni:q===p?a.D:!1,dni_color:q===p?a.Wa:""})}}b={index:m.currentIndex,list:m.playlistId,playlist_length:m.totalVideos,video:n};
m.titleText&&(b.title=g.Sz(m.titleText));m.shortBylineText&&(b.author=g.Sz(m.shortBylineText));a.MO=b}}if(a.gg.previewPlayabilityStatus){a.Qq=a.gg.previewPlayabilityStatus;b=a.Qq;var z;if(!["OK","LIVE_STREAM_OFFLINE"].includes(b.status)){m=b.errorScreen;if(n=null===m||void 0===m?void 0:m.playerErrorMessageRenderer){a.HE=n;if(p=n.reason)a.errorReason=g.Sz(p);if(n=n.subreason)a.ri=g.Sz(n)}else a.errorReason=b.reason||null;switch(b.status){case "LOGIN_REQUIRED":a.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":a.errorDetail=
"2";break;case "AGE_CHECK_REQUIRED":(null===(z=null===m||void 0===m?void 0:m.playerKavRenderer)||void 0===z?0:z.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}}else a.gg.playabilityStatus&&(a.cj=a.gg.playabilityStatus,Mqa(a)&&(a.errorDetail="0",a.cj&&((z=a.cj.embeddedPlayerErrorMessageRenderer)?a.HE=z.embeddedPlayerErrorMessageRenderer:a.N("embeds_playabilitystatus_deprecation_killswitch")||(a.errorReason=a.cj.reason||null))));(z=a.gg.attestation)&&
Ppa(a,z);(z=a.gg.permissions)&&z.allowImaMonetization&&(a.allowImaMonetization=!0)}};
rqa=function(a,b){var c;if(b=null===(c=null===b||void 0===b?void 0:b.watchEndpointSupportedOnesieConfig)||void 0===c?void 0:c.html5PlaybackOnesieConfig)a.Lq=new Ipa(b)};
uqa=function(a,b,c,d){var e,f,h,l,m,n,p;d={autonav:"1",playnext:String(d)};a.playlistId&&(d.autoplay="1");if(b){if(b=null===(l=null===(h=null===(f=null===(e=b.autoplay)||void 0===e?void 0:e.autoplay)||void 0===f?void 0:f.sets)||void 0===h?void 0:h[0])||void 0===l?void 0:l.autoplayVideo)if((c=b.clickTrackingParams)&&(d.itct=c),b=b.watchEndpoint)a.hJ=b}else c&&(b=null===(p=null===(n=null===(m=c.nextButton)||void 0===m?void 0:m.buttonRenderer)||void 0===n?void 0:n.navigationEndpoint)||void 0===p?void 0:
p.clickTrackingParams)&&(d.itct=b);d.itct||(d.feature="related-auto");a.fv=d};
tqa=function(a,b,c){var d,e,f,h=c.channelThumbnail;h&&(h=h.thumbnails)&&(h=h[0])&&(b.profile_picture=h.url);if(h=null===(f=null===(e=null===(d=null===c||void 0===c?void 0:c.channelThumbnailEndpoint)||void 0===d?void 0:d.channelThumbnailEndpoint)||void 0===e?void 0:e.urlEndpoint)||void 0===f?void 0:f.urlEndpoint)b.channel_path=h.url;if(h=c.collapsedRenderer)if(h=h.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){var l=h.title;l&&(b.title=g.Sz(l));if(h=h.subtitle)b.subtitle=g.Sz(h)}if(c=c.expandedRenderer)if(c=
c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(h=c.title)b.expanded_title=g.Sz(h);if(h=c.subtitle)b.expanded_subtitle=g.Sz(h);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.Oh=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.vC=b.toggledServiceEndpoint||null,a.tC=b.defaultServiceEndpoint||
null):(a.vC=b.defaultServiceEndpoint||null,a.tC=b.toggledServiceEndpoint||null))}};
g.nG=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
oG=function(a){return a.isLivePlayback&&a.allowLiveDvr};
Nqa=function(a){var b=new BA("und",new VC("Default","und",!0));b.captionTracks=a.captionTracks;return b};
g.pG=function(a){return!!a.i&&rna(a.i)};
g.qG=function(a){return!!a.i&&sna(a.i)};
Cqa=function(a){return g.qG(a)||g.pG(a)||g.rG(a)||g.sG(a)};
g.sG=function(a){return!!a.i&&tna(a.i)};
g.rG=function(a){return!!a.i&&una(a.i)};
g.Oqa=function(a){if(a.pC)return null;var b=a.wH;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.Pqa=function(a){return a.pC?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.tG=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.uG=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.r(a.playerResponse.annotations);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.playerAnnotationsExpandedRenderer&&b.playerAnnotationsExpandedRenderer.featuredChannel)return b.playerAnnotationsExpandedRenderer;return null};
vG=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.u.Ha};
wG=function(a){if(a.isAd()&&a.videoId!=a.u.Nb)return a.u.Nb};
xG=function(a){return a.Qk||"detailpage"==vG(a)||"shortspage"==vG(a)||a.mutedAutoplay};
yG=function(a){if(xG(a)){if("detailpage"==vG(a))return a.Mk||0<a.Db;if(!("17_8"===a.adFormat&&!a.Mk||a.N("embeds_enable_autoplayblocked_ping_fix")&&a.sL||"adunit"==vG(a)&&a.Gb))return!0}return!1};
Qqa=function(a){var b=1,c=g.S(a.u.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.ue;a.C&&a.C.i&&a.C.i[0]&&a.Pq[a.C.i[0].id]&&(c=a.Pq[a.C.i[0].id]);if(a.N("html5_stateful_audio_normalization")&&null!=c){if(a.UJ)return Math.min(1,Math.pow(10,-a.FC/20))||b;var d=0;a.N("html5_diff_bias_over_ad_content")&&(d=a.isAd()?0:3);c-=Math.min(0,d+Math.max(a.u.Oh,g.S(a.u.experiments,"html5_stateful_audio_min_adjustment_value")));a.FC=c}return Math.min(1,Math.pow(10,-c/20))||b};
zG=function(a){return!!(a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.daiConfig&&a.playerResponse.playerConfig.daiConfig.enableDai)};
Rqa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
BG=function(a){return AG(a)&&!!a.adaptiveFormats};
AG=function(a){return!!(a.N("woffle_orchestration")&&a.Yp&&a.u.u)};
pqa=function(a){if(a.N("woffle_orchestration")){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===uF(b);a=b&&!a.Yp}else a=!1;return a};
g.CG=function(a){if(!a.i||!a.B||!a.K)return!1;var b=a.i.i;return!!b[a.B.id]&&YA(b[a.B.id].u.i)&&!!b[a.K.id]&&YA(b[a.K.id].u.i)};
Sqa=function(a){return a.Qq?["OK","LIVE_STREAM_OFFLINE"].includes(a.Qq.status):!0};
Mqa=function(a){return(a=a.cj)&&a.showError?a.showError:!1};
g.cG=function(a){return a.N("disable_rqs")?!1:dG(a,"html5_high_res_logging")||dG(a,"html5_high_res_logging_live_infra")};
dG=function(a,b){return a.N(b)?!0:(a.fflags||"").includes(b+"=true")};
Tqa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
lqa=function(a,b){if(b=b.video_masthead_ad_quartile_urls)a.PB=b.quartile_0_url,a.zI=b.quartile_25_url,a.AI=b.quartile_50_url,a.BI=b.quartile_75_url,a.yI=b.quartile_100_url,a.Uj=b.quartile_0_urls,a.Yq=b.quartile_25_urls,a.Zq=b.quartile_50_urls,a.dr=b.quartile_75_urls,a.Xq=b.quartile_100_urls};
VF=function(a){return a?XD()?!0:DG&&5>EG?!1:!0:!1};
kqa=function(a){var b={};a=g.r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b};
Qpa=function(a){if(a){if(Yka(a))return a;a=Zka(a);if(Yka(a,!0))return a}return""};
g.Uqa=function(a){return a.captionsLanguagePreference||a.u.captionsLanguagePreference||g.lG(a,"yt:cc_default_lang")||a.u.xe};
FG=function(a){return!!(a.N("enable_linear_player_handling")&&a.isLivePlayback&&a.hasProgressBarBoundaries())};
GG=function(a,b){this.i=a;this.oa=b||{};this.K=String(Math.floor(1E9*Math.random()));this.I={};this.Z=this.S=0};
Vqa=function(a){return HG(a)&&1==a.getPlayerState(2)};
HG=function(a){a=a.Jc();return void 0!==a&&2==a.getPlayerType()};
IG=function(a){a=a.V();return LE(a)&&!g.YE(a)&&"desktop-polymer"==a.playerStyle};
JG=function(a,b){var c=a.V();CE(c)||"3"!=c.controlsType||a.eb().ex(b)};
LG=function(a,b,c,d,e,f){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.layoutId=d;this.i=e;this.u=f;this.id=KG(a)};
KG=function(a){return a+(":"+(gs.getInstance().i++).toString(36))};
MG=function(a){this.Y=a};
Wqa=function(a,b){if(0===b||1===b&&(a.Y.isMobile&&g.nj?0:a.Y.isMobile||g.YE(a.Y)||g.ME(a.Y)||NE(a.Y)||!g.nj))return!0;a=g.Cg("video-ads");return null!=a&&"none"!==jm(a,"display")};
Xqa=function(a){switch(a){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression";
case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}};
NG=function(){g.Q.call(this);var a=this;this.i={};g.he(this,function(){for(var b=g.r(Object.keys(a.i)),c=b.next();!c.done;c=b.next())delete a.i[c.value]})};
PG=function(){if(null===OG){OG=new NG;Pm(Mq).i="b";var a=Pm(Mq),b="h"==vq(a)||"b"==vq(a),c=!(Zm(),!1);b&&c&&(a.D=!0,a.I=new Gda)}return OG};
Yqa=function(a,b,c){a.i[b]=c};
Zqa=function(a){this.B=a;this.u={};this.i=Tl()?500:g.ME(a.V())?1E3:2500};
ara=function(a,b){if(!b.length)return null;b=b.filter(function(c){if(!c.mimeType)return!1;c.mimeType in a.u||(a.u[c.mimeType]=a.B.canPlayType(c.mimeType));return a.u[c.mimeType]?!!c.mimeType&&"application/x-mpegurl"==c.mimeType.toLowerCase()||!!c.mimeType&&"application/dash+xml"==c.mimeType.toLowerCase()||"PROGRESSIVE"==c.delivery:!1});
return $qa(a,b)};
$qa=function(a,b){for(var c=null,d=g.r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.minBitrate,h=e.maxBitrate;f>a.i||h<a.i||c&&!(f<c.minBitrate)||(c=e)}if(!c)for(c=null,d=g.r(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.maxBitrate,h=e.minBitrate,f>a.i||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&h<c.minBitrate&&(c=e));if(!c)for(c=null,b=g.r(b),d=b.next();!d.done;d=b.next())d=d.value,e=d.minBitrate,f=d.maxBitrate,e<a.i||(!c||e<c.minBitrate?c=d:c&&e==c.minBitrate&&f>c.maxBitrate&&(c=d));return c};
QG=function(a,b,c){this.i=a;this.D=b;this.B=c;this.u=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
RG=function(a){var b,c;return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",a.activeViewMeasurablePings||
[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",(null===(b=a.activeViewTracking)||void 0===b?void 0:b.activeViewAudioAudiblePings)||[]],["audio_measurable",(null===(c=a.activeViewTracking)||void 0===c?void 0:c.activeViewAudioMeasurablePings)||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",
a.firstQuartilePings||[]],["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]],["unmuted_impression",a.unmutedImpressionPings||[]],["unmuted_error",a.unmutedErrorPings||[]],["unmuted_mute",a.unmutedMutePings||[]],["unmuted_unmute",a.unmutedUnmutePings||[]],["unmuted_pause",a.unmutedPausePings||[]],["unmuted_resume",a.unmutedResumePings||[]],["unmuted_close",a.unmutedClosePings||[]],["unmuted_progress",a.unmutedProgressPings||[]],["unmuted_clickthrough",
a.unmutedClickthroughPings||[]],["unmuted_fullscreen",a.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",a.unmutedEndFullscreenPings||[]],["unmuted_abandon",a.unmutedAbandonPings||[]],["unmuted_start",a.unmutedStartPings||[]],["unmuted_first_quartile",a.unmutedFirstQuartilePings||[]],["unmuted_midpoint",a.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",a.unmutedThirdQuartilePings||[]],["unmuted_complete",a.unmutedCompletePings||[]]])};
bra=function(a){return(a=a.pings)?Object.fromEntries(RG(a)):{}};
SG=function(a,b,c,d,e){GG.call(this,a,bra(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Va=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.B=new QG(0,[]);this.Ha=null;this.Wa=b;this.La=[];this.C={};this.Ba=null;this.u=0;this.X=this.va=this.D=null;this.Aa=e;this.Sa=null;b=this.i.skipOffsetMilliseconds||0;0<b&&(this.Ba=b);this.C=g.et(this.i.playerVars||"");if(b=this.i.external)R("external non youtube video ad"),this.La=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.u=
b/1E3,this.C.length_seconds=this.u.toString()),(b=ara(this.Wa,this.La))?(this.va=b.uri,b=b.mimeType,this.C.url_encoded_third_party_media="url="+encodeURIComponent(this.va)+"&type="+encodeURIComponent(b)):this.X=Error("Nonplayable third party ad media file.");else if(this.D=this.i.externalVideoId||null,this.u=oE(this.u,this.C.length_seconds),this.Aa&&this.D&&(this.Sa=this.Aa(this.D)),this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=JSON.parse(this.C.cta_conversion_urls)}catch(f){g.Zs(f)}this.Ha=
this.i.clickthroughEndpoint||null;this.B=new QG(0,[this.u])};
cra=function(a){var b=a.C||{};1<a.B.u&&(b.slot_pos=a.B.i);b.autoplay="1";return b};
TG=function(){this.i=[];this.u=0};
UG=function(a,b){b&&a.i.push(b)};
VG=function(a){if(!a)return[];var b=[];a=g.r(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.r(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
WG=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};
XG=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
YG=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
dra=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=VG(a.impressionCommands)||[];b.error=VG(a.errorCommands)||[];b.mute=VG(a.muteCommands)||[];b.unmute=VG(a.unmuteCommands)||[];b.pause=VG(a.pauseCommands)||[];b.rewind=VG(a.rewindCommands)||[];b.resume=VG(a.resumeCommands)||[];b.skip=VG(a.skipCommands)||[];b.close=VG(a.closeCommands)||[];b.clickthrough=VG(a.clickthroughCommands)||[];b.fullscreen=VG(a.fullscreenCommands)||[];b.active_view_viewable=VG(a.activeViewViewableCommands)||
[];b.active_view_measurable=VG(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=VG(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];a.activeViewTracking&&(b.audio_audible=VG(a.activeViewTracking.activeViewAudioAudibleCommands)||[],b.audio_measurable=VG(a.activeViewTracking.activeViewAudioMeasurableCommands)||[]);b.end_fullscreen=VG(a.endFullscreenCommands)||[];b.channel_clickthrough=VG(a.channelClickthroughCommands)||[];b.abandon=VG(a.abandonCommands)||
[];b.progress=WG(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=WG(a.progressCommands.filter(function(c){return YG(c)&&gg(XG(c),0)}));
b.first_quartile=WG(a.progressCommands.filter(function(c){return YG(c)&&gg(XG(c),.25)}));
b.midpoint=WG(a.progressCommands.filter(function(c){return YG(c)&&gg(XG(c),.5)}));
b.third_quartile=WG(a.progressCommands.filter(function(c){return YG(c)&&gg(XG(c),.75)}));
b.complete=WG(a.progressCommands.filter(function(c){return YG(c)&&gg(XG(c),1)}));
return b};
ZG=function(a){GG.call(this,a,dra(a));this.u=a.questions?a.questions.reduce(function(b,c){return(c=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer)?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0};
era=function(a,b,c,d){this.id=b;this.C=d.le;b=a.config&&a.config.adPlacementConfig;if(!b)throw Error("Malformed AdPlacementRenderer: missing AdPlacementConfig");var e=a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer||{};this.B=(this.D=e.getAdBreakUrl||"")?0:2;d.i=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=ela(b,d);if(null==f)d=new ez(b,new Ir(-1,-1),!1,"adcuerange:invalid",3),d.deactivate(),d=[null,d];else{e=":"+(gs.getInstance().i++).toString(36);
var h=d.daiEnabled||d.le;f=new ez(b,f,d.visible&&!h,"adcuerange:"+e,3);h=null;if(d.le||0<d.i)if(d=ela(b,d,!0))h=new ez(b,d,!1,"prefetch:"+e,5),f.C=h,h.C=f;d=[h,f]}this.X=d[0];this.i=d[1];this.u=c;this.I=!1;this.S={};this.K=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
$G=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i.i||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.i.i};
bH=function(a,b){var c={};fra(a,c,b);gra(c);c.LACT=aH(function(){return uv().toString()});
c.VIS=aH(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=aH(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
hra=function(a){var b={};if(!a.kind)return g.jy(Error("AdPlacementConfig without kind")),b;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.jy(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=aH(jf(Math.round(rg(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=aH(jf("0"));return b};
aH=function(a){return{toString:function(){return a()}}};
ira=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)}
function e(l,m){(m=c[m])&&(f[l]=h(m))}
if(!c||g.De(c))return a;var f=Object.assign({},a),h=b?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
fra=function(a,b,c){b.CPN=aH(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.ky(Error("Video data is null.")),d=null);return d});
b.AD_MT=aH(function(){return Math.round(Math.max(0,1E3*(null!==c&&void 0!==c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=aH(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=aH(function(){return a.eb().pg().height.toString()});
b.P_W=aH(function(){return a.eb().pg().width.toString()});
b.PV_H=aH(function(){return a.eb().getVideoContentRect().height.toString()});
b.PV_W=aH(function(){return a.eb().getVideoContentRect().width.toString()})};
gra=function(a){a.CONN=aH(jf("0"));a.WT=aH(function(){return Date.now().toString()})};
jra=function(a){var b=Object.assign({},{});b.MIDROLL_POS=$G(a)?aH(jf(Math.round(a.i.start/1E3).toString())):aH(jf("0"));return b};
kra=function(a){var b={};b.SLOT_POS=aH(jf(a.B.i.toString()));return b};
cH=function(a,b){var c=b&&-1!=b.indexOf("load_timeout")?"402":"400",d={};return d.YT_ERROR_CODE=a.toString(),d.ERRORCODE=c,d.ERROR_MSG=b,d};
dH=function(a){for(var b={},c=g.r(lra),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
eH=function(){var a={};Object.assign.apply(Object,[a].concat(g.la(g.Ba.apply(0,arguments))));return a};
fH=function(){};
gH=function(a){this.rp=a};
hH=function(a){this.ep=a};
mra=function(a,b,c,d,e,f){e=void 0===e?new hH(new gH(d.getVideoData(1))):e;f=void 0===f?!1:f;g.E.call(this);this.ad=a;this.B=b;this.macros=c;this.i=d;this.Mh=e;this.daiEnabled=f;this.u={MB:.25,SECOND:.5,DC:.75};this.lastUpdatedTimeSecs=null;this.progressPings=Array.from(this.ad.oa.progress||[]);this.progressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
this.unmutedProgressPings=Array.from(this.ad.oa.unmuted_progress||[]);this.unmutedProgressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds})};
nra=function(a,b,c){a.macros=eH(a.macros,cH(b,c));iH(a,"unmuted_error")};
mH=function(a,b){jH(a)||(kH(a)?(lH(a,0,!0),ora(a,b,b)):(lH(a,0,!0),pra(a,0,0,!0)),iH(a,"complete"))};
lH=function(a,b,c){for(c=void 0===c?!1:c;a.ad.S<a.progressPings.length;){var d=nH(a,"progress"),e=a.progressPings[a.ad.S];if(e.offsetMilliseconds<=1E3*b||c)oH(a,e,d),a.ad.S++;else break}};
qra=function(a,b,c){for(c=void 0===c?!1:c;a.ad.Z<a.unmutedProgressPings.length;){var d=nH(a,"unmuted_progress"),e=a.unmutedProgressPings[a.ad.Z];if(e.offsetMilliseconds<=1E3*b||c)oH(a,e,d),a.ad.Z++;else break}};
pra=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.MB||d)&&iH(a,"first_quartile");(b>=c*a.u.SECOND||d)&&iH(a,"midpoint");(b>=c*a.u.DC||d)&&iH(a,"third_quartile")};
rra=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.MB||d)&&iH(a,"unmuted_first_quartile");(b>=c*a.u.SECOND||d)&&iH(a,"unmuted_midpoint");(b>=c*a.u.DC||d)&&iH(a,"unmuted_third_quartile")};
pH=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(c<d||1<c-d)return}else if(a.lastUpdatedTimeSecs>d||d>c)return;iH(a,b)};
ora=function(a,b,c){if(0<c&&0<b){var d=a.i.zb(a.i.getPresentingPlayerType());g.T(d,16)||g.T(d,32)||(pH(a,"first_quartile",b,c*a.u.MB),pH(a,"midpoint",b,c*a.u.SECOND),pH(a,"third_quartile",b,c*a.u.DC))}a.lastUpdatedTimeSecs=b};
qH=function(a,b){for(var c=nH(a,b),d=g.r(a.ad.oa[b]||[]),e=d.next();!e.done;e=d.next())oH(a,e.value,c);a.ad.I[b]=!0};
iH=function(a,b){a.ad.I.hasOwnProperty(b)||qH(a,b)};
rH=function(a,b){return a.ad.I.hasOwnProperty(b)};
oH=function(a,b,c){var d=b.baseUrl;if(d){b=b.headers||[];for(var e=a.Mh,f=e.send,h={},l=bH(a.i),m=g.r(Object.keys(l)),n=m.next();!n.done;n=m.next())n=n.value,h[n]=l[n].toString();a=Object.assign(h,a.macros);f.call(e,d,a,c,b)}};
nH=function(a,b){var c=a.B;a=a.ad;if(a.Wv())if(b=sra(b),null==b)c={};else{var d;(d=a.Ka()())||(d=(d=c.J)&&d.Jc?(d=d.Jc())&&2==d.getPlayerType()?sH(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.J.isFullscreen()},c=Qq(b,a.K,c)):c={}}else c={};return c?Object.assign({},c):{}};
kH=function(a){return!a.i.V().N("html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.daiEnabled};
jH=function(a){return kH(a)&&!rH(a,"impression")};
tH=function(a){return kH(a)&&rH(a,"seek")};
uH=function(a,b){kH(a)?qH(a,b):iH(a,b)};
g.vH=function(a,b){this.state=a;this.ao=b};
wH=function(a,b){return g.T(a.state,b)&&!g.T(a.ao,b)?1:!g.T(a.state,b)&&g.T(a.ao,b)?-1:0};
g.xH=function(a,b){return 0<wH(a,b)};
yH=function(a,b,c,d,e,f){f=void 0===f?0:f;g.Q.call(this);this.J=a;this.i=d;this.u=e;this.u.i[b.K]=this;this.u.subscribe("adactiveviewmeasurable",this.jN,this);this.u.subscribe("adfullyviewableaudiblehalfdurationimpression",this.kN,this);this.u.subscribe("adoverlaymeasurableimpression",this.lN,this);this.u.subscribe("adoverlayunviewableimpression",this.mN,this);this.u.subscribe("adoverlayviewableendofsessionimpression",this.nN,this);this.u.subscribe("adoverlayviewableimmediateimpression",this.oN,this);
this.u.subscribe("adviewableimpression",this.pN,this);this.ad=b;this.va=[];this.macros=c;this.S=!1;this.Aa=!Wqa(new MG(this.J.V()),f);this.C=!1};
NH=function(a,b){Yb(a.va,b);tra(a,b,1)};
ura=function(a){var b=a.i;b.macros=eH(b.macros,cH(0,"No playable media files can be selected"));iH(b,"error");a.C||nra(a.i,0,"No playable media files can be selected")};
OH=function(a,b){if(a.S){var c=a.i,d=a.getDuration();!jH(c)&&0<d&&(lH(c,b),kH(c)?ora(c,b,d):pra(c,b,d,!1));a.C||(c=a.i,a=a.getDuration(),!jH(c)&&0<a&&(qra(c,b),rra(c,b,a,!1)))}};
tra=function(a,b,c){0!=b.length&&(b=g.Mm(b,function(d){return new Rz(d,c,d.id)}),a.ea("onAdUxUpdate",b))};
PH=function(a){var b={};b.abandon=a.abandonCommands&&VG(a.abandonCommands.commands)||[];GG.call(this,a,b)};
QH=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;LG.call(this,"ad-action-interstitial",a,b,c,d);this.i=d;this.Dg=e;this.Qi=f};
RH=function(a,b,c,d,e,f){yH.call(this,a,b,c,d,e,1);this.D=b;this.B=b.i.durationMilliseconds||0;this.Mb=null;this.I=f};
SH=function(a){GG.call(this,a);this.u=g.et(this.i.playerVars||"")};
TH=function(){GG.apply(this,arguments)};
UH=function(){GG.apply(this,arguments)};
vra=function(a,b,c,d,e,f){this.I=a;this.C=b;this.i=c;this.D=d;this.B=e;this.u=f};
VH=function(a,b,c,d,e){yH.call(this,a,b,c,d,e);var f=this;this.I=b;this.B=new g.I(function(){f.Xg("load_timeout")},1E4);
g.H(this,this.B);this.D=new Kx(this);g.H(this,this.D)};
WH=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.i=b};
Ly=function(a,b){return a.i.has(b)};
W=function(a,b){a=a.i.get(b);if(void 0!==a)return a.get()};
XH=function(a){return Array.from(a.i.keys())};
wra=function(a){return{slotId:Qy(a,"SLOT_TYPE_IN_PLAYER"),qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:void 0,uc:[],tc:[],ib:"surface",Ia:new WH([])}};
xra=function(a){LG.call(this,"ad-message",a)};
YH=function(a,b,c,d,e,f,h,l){yH.call(this,a,b,c,d,e);var m=this;this.K=b;this.X=b.i.durationMs||0;this.sj=h;this.slot=void 0;this.B=l;this.Z=!1;this.I=this.D=0;this.oa=function(){var n=m.J.getProgressState().current;n<m.D?m.qg():n>m.I&&m.uh()}};
yra=function(a){if(a.B&&a.Z)if(a.Z=!1,a.J.V().experiments.ob("html5_externally_manage_ad_notify_layout"))if(a.slot){for(var b=a.slot,c=g.r(a.B.listeners),d=c.next();!d.done;d=c.next()){var e=b;ZH(d.value.Nm(),e)}a.slot=void 0}else at(Error("AdNotify terminated when no slot is active"));else for(a=g.r(a.B.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.i?(c=b.i,b.i=void 0,b.u=void 0,ZH(b.Nm(),c)):R("Received AdNotify terminated event when no slot is active")};
g.$H=function(a,b){for(var c={},d=g.r(Object.keys(b)),e=d.next();!e.done;c={FB:c.FB},e=d.next())e=e.value,c.FB=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.FB}}(c));
return a};
aI=function(a){return a?g.Sz(a):null};
zra=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.r(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};
Ara=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
Bra=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
Era=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&&(Cra(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=aI(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
Dra(a,b,c,d))}};
Cra=function(a,b,c){var d=aI(b.confirmLabel)||"",e=aI(b.title)||"",f=[];if(b.adReasons)for(var h=g.r(b.adReasons),l=h.next();!l.done;l=h.next())f.push(aI(l.value)||"");h=b.headerTitle?g.Sz(b.headerTitle):"";d={closeButton:d,menuTitle:h,targetingReasonHeader:e,targetingReasons:f,dialogMessage:aI(b.dialogMessage)||"",adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdInfo=d;a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.r(b.impressionEndpoints),
n=m.next();!n.done;n=m.next())c(n.value)};
a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}};
Dra=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:aI(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=zra(b.navigationEndpoint);var h=Bra(b[1]),l=[Bra(b[0])];(b=Ara(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.r(l),p=n.next();!p.done;p=n.next())c(p.value)};
Fra(a,e,d)}}};
Fra=function(a,b,c){a.muteAdInfo.goneText=aI(b.title)||"";a.muteAdInfo.questionText=aI(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=aI(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)};
a=a.muteAdInfo.surveyOptions;b=g.r(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=aI(e.reason)||"";e=zra(e.endpoint)[0];a.push({label:d,url:e})}};
bI=function(a,b,c,d,e,f){this.u=a;this.B=b;this.i=bH(d);if(f)for(a=g.r(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.i[b]=f[b];this.C=c;this.D=d;this.I=e};
Gra=function(a,b,c){b.isSkippable=!0;b.skipTime=c.skipOffsetMilliseconds?Math.floor(c.skipOffsetMilliseconds/1E3):0;if(c.skippableRenderer)switch(Object.keys(c.skippableRenderer)[0]){case "skipButtonRenderer":var d=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var e=d.adRendererCommands&&d.adRendererCommands.clickCommand;e?a.yd(e):a.C.Op()};
b.skipShown=function(){a.yd(d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
Hra=function(a,b,c){Era(b,c,function(d){a.yd(d)},function(d){a.sendAdsPing(d)})};
Ira=function(a){if(a.D.V().N("dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.B;for(var b={},c=g.r(Object.keys(a.i)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.i[d].toString();return Object.assign(b,a.B)};
Jra=function(){return{adNextParams:"",adSystem:0,attributionInfo:null,clickThroughUrl:"",executeCommand:function(){},
instreamAdPlayerOverlayRenderer:null,instreamSurveyAdRenderer:null,slidingTextPlayerOverlayRenderer:null,isBumper:!1,isPostroll:!1,isSkippable:!1,muteAdInfo:null,skipTime:0,videoId:"",videoUrl:"",whyThisAdInfo:null,muteAd:function(){},
muteAdClicked:function(){},
sendAdsPing:function(){},
skip:function(){},
endSurveyOnSubmitted:function(){},
skipShown:function(){},
whyThisAdClicked:function(){},
whyThisAdClosed:function(){},
daiEnabled:!1,remoteSlotsData:null,adBreakRemainingLengthSeconds:null,adBreakEndSeconds:null}};
Kra=function(a,b,c,d,e){new bI(a,b,c,d,e,void 0)};
cI=function(a){this.value=a};
dI=function(a){this.value=a};
eI=function(a){this.value=a};
fI=function(a){this.value=a};
gI=function(a){this.value=a};
hI=function(){cI.apply(this,arguments)};
iI=function(a){this.value=a};
jI=function(a){this.value=a};
kI=function(a){this.value=a};
lI=function(a){this.value=a};
mI=function(a){this.value=a};
nI=function(a){this.value=a};
oI=function(){cI.apply(this,arguments)};
pI=function(){cI.apply(this,arguments)};
qI=function(a){this.value=a};
rI=function(a){this.value=a};
sI=function(a){this.value=a};
tI=function(a){this.value=a};
uI=function(a){this.value=a};
vI=function(a){this.value=a};
wI=function(a){this.value=a};
xI=function(a){this.value=a};
yI=function(a){this.value=a};
zI=function(a){this.value=a};
AI=function(a){this.value=a};
BI=function(a){this.value=a};
CI=function(a){this.value=a};
DI=function(a){this.value=a};
EI=function(a){this.value=a};
FI=function(a){this.value=a};
GI=function(a){this.value=a};
HI=function(a){this.value=a};
II=function(a){this.value=a};
JI=function(a){this.value=a};
KI=function(a){this.value=a};
LI=function(a){this.value=a};
MI=function(a){this.value=a};
NI=function(a){this.value=a};
OI=function(a){this.value=a};
PI=function(a){this.value=a};
QI=function(a){this.value=a};
RI=function(a){this.value=a};
SI=function(a){this.value=a};
TI=function(a){this.value=a};
UI=function(a){this.value=a};
VI=function(a){this.value=a};
WI=function(a){this.value=a};
XI=function(){cI.apply(this,arguments)};
YI=function(){cI.apply(this,arguments)};
ZI=function(){cI.apply(this,arguments)};
$I=function(){cI.apply(this,arguments)};
aJ=function(){cI.apply(this,arguments)};
bJ=function(a){var b,c;if(!a.questions||1!==a.questions.length||!a.playbackCommands)return!1;var d=(null===(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===b?void 0:b.surveyAdQuestionCommon)||(null===(c=a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer)||void 0===c?void 0:c.surveyAdQuestionCommon);return Lra(d)?!0:!1};
Mra=function(a){a=((null===a||void 0===a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;a?a.playbackCommands&&a.questions&&1===a.questions.length?(a=null===(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===b?void 0:b.surveyAdQuestionCommon,b=Lra(a)):b=!1:b=!1;return b};
Lra=function(a){if(!a)return!1;var b=(a.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;a=(null===b||void 0===b?void 0:b.skipOrPreviewRenderer)||{};var c=a.skipAdRenderer;b=((null===b||void 0===b?void 0:b.adInfoRenderer)||{}).adHoverTextButtonRenderer;return(a.adPreviewRenderer||c)&&b?!0:!1};
Ora=function(a,b,c,d,e,f){this.i=new bI(a,b,c,d,e,Nra(f))};
Pra=function(a,b){var c=Jra();c.instreamSurveyAdRenderer=b;c.executeCommand=function(d){a.i.yd(d)};
b=("instreamSurveyAdSingleSelectQuestionRenderer"in b.questions[0]?b.questions[0].instreamSurveyAdSingleSelectQuestionRenderer:b.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer;if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":Gra(a.i,c,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":Hra(a.i,
c,b.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(d){a.i.sendAdsPing(d)};
return c};
Nra=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=aH(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=aH(a);return b};
cJ=function(a,b,c){g.Q.call(this,!0);var d=this;this.I=b;this.D=c;this.u=a;this.Mb=new g.Gh(200);this.Mb.Qa("tick",function(){var e=Date.now(),f=e-d.C;d.C=e;d.i+=f;d.i>=d.u&&(d.i=d.u,d.Mb.stop());e=d.i/1E3;d.D&&d.D.Xb(e);Qra(d,{current:e,duration:d.u/1E3})});
g.H(this,this.Mb);this.i=0;this.B=null;g.he(this,function(){d.B=null});
this.C=0};
Qra=function(a,b){a.I.Na("onAdPlaybackProgress",b);a.B=b};
dJ=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;LG.call(this,"survey",a,{},b,c);this.Dg=d;this.Qi=e};
eJ=function(a,b,c){g.Q.call(this);var d=this;this.durationMs=a;this.D=b;this.I=c;this.B=!1;this.C=this.i=0;this.u=new g.Gh(200);g.H(this,this.u);this.u.Qa("tick",function(){d.Xb()})};
fJ=function(){uA("pbp")||uA("pbs")||vA("pbp");uA("pbp","watch")||uA("pbs","watch")||vA("pbp",void 0,"watch")};
gJ=function(a,b,c,d,e,f,h){yH.call(this,a,b,c,d,e,1);var l=this;this.D=b;this.I=new Kx;g.H(this,this.I);this.I.T(this.J,"resize",function(){450>l.J.eb().pg().width&&(g.Mx(l.I),l.qg())});
this.Z=0;this.K=null;this.X=h(this,function(){return""+(Date.now()-l.Z)});
if(this.B=g.ME(a.V())?new cJ(1E3*b.u,a,f):null)g.H(this,this.B),this.I.T(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&Rra(l)})};
Sra=function(a,b){a.J.V().experiments.ob("validate_tvhtml5_instream_survey_ad_renderer_in_bulleit")&&!bJ(b)?(g.jy(Error("Expected a valid VOD InstreamSurveyAdRenderer.")),a.td("aderror")):(b=Pra(a.X,b),a.J.Na("onAdInfoChange",b))};
Rra=function(a){var b=a.D.i;(b=b.questions&&b.questions[0])?(b=(b=b.instreamSurveyAdMultiSelectQuestionRenderer||b.instreamSurveyAdSingleSelectQuestionRenderer)&&b.surveyAdQuestionCommon,a.X.yd(b&&b.timeoutCommands)):g.jy(Error("Expected a survey question in InstreamSurveyAdRenderer."))};
hJ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;LG.call(this,"survey-interstitial",a,b,c,d);this.Dg=e;this.uG=f};
iJ=function(a,b,c,d,e){yH.call(this,a,b,c,d,e,1);this.B=b};
jJ=function(a,b,c,d,e,f,h,l,m){yH.call(this,a,b,c,d,e,1);var n=this;this.Gz=!0;this.K=m;this.B=b;this.D=f;this.Z=new Kx(this);g.H(this,this.Z);this.I=new g.I(function(){n.Xg("load_timeout")},1E4);
g.H(this,this.I);this.X=h};
Tra=function(a){if(a.X&&(a.J.V().experiments.ob("enable_topsoil_wta_for_halftime")||a.J.V().experiments.ob("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.B.B,c=b.C,d=b.B,e=b.i;b=b.D;if(void 0===c)g.jy(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.jy(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,h){return f+h},0),Math.min(Math.max((d-c)/1E3-e,0),a.B.u)}};
oJ=function(a,b){if(null!==a.K){var c=Ura(a);a=g.r(a.K.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;d.i||"aderror"!==f||(Vra(d,e,[],!1),kJ(d.B(),d.u),lJ(d.B(),d.u),h=!0);if(d.i&&d.i.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}mJ(d.B(),d.u,d.i,e);if(h){e=d.B();h=d.u;nJ(e.u,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.r(e.Id);for(f=e.next();!f.done;f=e.next())f.value.Ji(h);ZH(d.B(),d.u)}d.Oa.get().J.V().N("html5_send_layout_unscheduled_signal_for_externally_managed")&&
d.C&&Wra(d.B(),d.u,d.i);d.u=null;d.i=null;d.C=!1}}}};
pJ=function(a){return(a=a.J.getVideoData(2))?a.clientPlaybackNonce:""};
Ura=function(a){if(a=a.B.i.elementId)return a;g.jy(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
Xra=function(a){function b(l,m){l=a.FW;var n=Object.assign({},{});n.FINAL=aH(jf("1"));n.SLOT_POS=aH(jf("0"));return eH(l,dH(n),m)}
function c(l){return null==l?{create:function(){return null}}:{create:function(m,n,p){var q=b(m,n);
n=a.mB(m,q);m=l(m,q,n,p);g.H(m,n);return m}}}
var d=c(function(l,m,n){return new RH(a.J,l,m,n,a.Ap,a.Xa)}),e=c(function(l,m,n){return new iJ(a.J,l,m,n,a.Ap)}),f=c(function(l,m,n){return new YH(a.J,l,m,n,a.Ap,a.Xa,a.sj,a.hm)}),h=c(function(l,m,n){return new VH(a.J,l,m,n,a.Ap,a.Xa)});
this.UQ=new vra({create:function(l,m){var n=eH(b(l,m),dH(kra(l)));m=a.mB(l,n);l=new jJ(a.J,l,n,m,a.Ap,a.Xa,a.daiEnabled,function(p){return new Kra(a.Xa,n,p,a.J,a.Mh)},a.im,a.Sf);
g.H(l,m);return l}},{create:function(l,m){var n=a.mB(l,m);
l=new gJ(a.J,l,m,n,a.Ap,a.Xa,function(p,q){return new Ora(a.Xa,m,p,a.J,a.Mh,q)});
g.H(l,n);return l}},d,e,f,h)};
qJ=function(a,b){this.u=a;this.i={};this.B=void 0===b?!1:b};
Yra=function(a,b){var c=a.startSecs+a.durationSecs;c=0>=c?null:c;if(null===c)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}b=Math.max(a.startSecs,0);return{tR:new Ir(b,c),IS:new Ty(b,c-b,a.context,a.identifier,a.event,a.i)}};
rJ=function(){this.i=[]};
sJ=function(a,b,c){var d=g.ec(a.i,b);if(0<=d)return b;b=-d-1;return b>=a.i.length||a.i[b]>c?null:a.i[b]};
Zra=function(){this.i=new rJ};
tJ=function(a){this.i=a};
$ra=function(a){a=[a,a.C].filter(function(d){return!!d});
for(var b=g.r(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
asa=function(a,b,c){this.B=a;this.i=b;this.u=c;this.C=a.getCurrentTime()};
csa=function(a,b){var c=void 0===c?Date.now():c;b=g.r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=c,f=a.i;uJ({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:bsa(d.event),cuepointId:d.identifier,totalCueDurationMs:1E3*d.durationSecs,playheadTimeMs:d.i,cueStartTimeMs:1E3*d.startSecs,cuepointReceivedTimeMs:e,contentCpn:f}});a.u&&("unknown"===d.event&&vJ("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.i),d=d.startSecs+d.i/1E3,d>a.C&&a.B.getCurrentTime()>d&&vJ("DAI_ERROR_TYPE_LATE_CUEPOINT",
a.i))}};
dsa=function(a,b,c){a.u&&uJ({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.i}})};
esa=function(a,b){a.u&&uJ({adTrimmingInfo:{contentCpn:a.i,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.cR}})};
vJ=function(a,b){uJ({daiStateTrigger:{errorType:a,contentCpn:b}})};
uJ=function(a){g.dw("adsClientStateChange",a)};
bsa=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"}};
wJ=function(a){this.J=a;this.adVideoId=this.i=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.oe=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
hsa=function(a,b,c,d,e){fsa(a,b,c,d,e,function(){gsa(a)})};
fsa=function(a,b,c,d,e,f){f();var h=a.J.getVideoData(1),l=a.J.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId,a.i=h.X);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=d?f():(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==a.actionType&&(a.oe=!0,a.oe&&(b={adBreakType:isa(a.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},
videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),a.adFormat&&(b.adType=a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),tA(b,a.actionType))))};
gsa=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.B="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.oe=!1;a.u=!1};
jsa=function(a){a.u=!1;var b={};!a.J.N("web_player_csi_ctt_killswitch")&&a.i&&a.videoId&&(b.cttAuthInfo={token:a.i,videoId:a.videoId});qA("video_to_ad",b,void 0)};
ksa=function(a){a.u=!1;var b={};!a.J.N("web_player_csi_ctt_killswitch")&&a.i&&a.videoId&&(b.cttAuthInfo={token:a.i,videoId:a.videoId});qA("ad_to_ad",b,void 0)};
xJ=function(a){a.u=!1;var b={};!a.J.N("web_player_csi_ctt_killswitch")&&a.i&&a.videoId&&(b.cttAuthInfo={token:a.i,videoId:a.videoId});qA("ad_to_video",b,void 0)};
lsa=function(a){a.oe&&!a.u&&(a.C=!1,a.u=!0,"ad_to_video"!==a.actionType&&(sA("apbs",void 0,a.actionType),g.O("finalize_all_timelines")&&(a=a.actionType,oA("c",a),gA(a),nA(a))))};
isa=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.nsa=function(a){return(a=msa[a.toString()])?a:"LICENSE"};
yJ=function(){g.E.call(this);this.u=null;this.I=this.D=!1;this.B=new g.ef;g.H(this,this.B)};
zJ=function(a){a=a.Kv();return 1>a.length?NaN:a.end(a.length-1)};
osa=function(a,b,c){a.il()||a.getCurrentTime()>b||10<c||(a.play(),g.Qt(function(){osa(a,a.getCurrentTime(),c+1)},500))};
psa=function(a,b){a.u&&null!==b&&b.i===a.u.i||(a.u&&a.u.dispose(),a.u=b)};
AJ=function(a){return jna(a.Tf(),a.getCurrentTime())};
qsa=function(a,b){if(0===a.wh()||0<a.hj())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.Kv(),a.length||!c)?fD(a,b):c};
rsa=function(a){var b=a.Tf();return 0<hD(b)&&a.getDuration()?b.end(b.length-1):0};
BJ=function(a){switch(a.hj()){case 2:return"progressive.net.retryexhausted";case 3:return"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
g.CJ=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
DJ=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.CJ(b,c)};
EJ=function(a,b){return DJ(a,a.state|b)};
FJ=function(a,b){return DJ(a,a.state&~b)};
GJ=function(a,b,c){return DJ(a,(a.state|b)&~c)};
g.T=function(a,b){return!!(a.state&b)};
g.HJ=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.IJ=function(a){return g.T(a,8)&&!g.T(a,2)&&!g.T(a,1024)};
JJ=function(a){return a.Ec()&&!g.T(a,16)&&!g.T(a,32)};
g.KJ=function(a){return g.T(a,1)&&!g.T(a,2)};
LJ=function(a){return g.T(a,128)?-1:g.T(a,2)?0:g.T(a,64)?-1:g.T(a,1)&&!g.T(a,32)?3:g.T(a,8)?1:g.T(a,4)?2:-1};
MJ=function(a,b,c,d,e,f,h,l){g.Q.call(this);this.Nf=a;this.J=b;this.u=d;this.K=this.u.u instanceof GG?this.u.u:null;this.i=null;this.Z=!1;this.D=c;this.X=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.va=0;this.Aa=!1;this.Ll=e;this.Xr=f;this.Zo=h;this.oa=!1;this.daiEnabled=l};
ssa=function(a){if(HG(a.J)){var b=a.J.getVideoData(2);b=a.u.S[b.Bc]||null;if(!b)return a.yk(),!0;(!a.i||a.i&&a.i.ad!==b)&&a.yu(b)}else if(1===a.J.getPresentingPlayerType()&&a.i)return a.yk(),!0;return!1};
tsa=function(a,b){a.J.N("web_csi_notification_ad_fix")?a.D.Or(a.u.i.i,b,a.lK(),a.PD(),a.isLiveStream()):hsa(a.D,a.u.i.i,b,a.PD(),a.isLiveStream())};
NJ=function(a){usa(a.Nf,a.u.i,a);a.daiEnabled&&!a.u.I&&(vsa(a,a.nK()),a.u.I=!0)};
vsa=function(a,b){for(var c=OJ(a),d=a.u.i.start,e=[],f=g.r(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=wsa(h);e.push({externalVideoId:h.D,originalMediaDurationMs:(1E3*h.u).toString(),trimmedMediaDurationMs:(parseInt(h.i.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.B.C=a.u.i.start;h.B.B=c;if(!xsa(a,h,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+wsa(p)},0);
dsa(a.Ll,a.u.i.Av(),b);esa(a.Ll,{cueIdentifier:a.u.C&&a.u.C.identifier,cR:e})};
wsa=function(a){var b=1E3*a.u;return 0<parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10):b};
OJ=function(a){var b=a.u.i.end;a=sJ(a.Xr,a.u.i.start,b);return Math.min(b,null===a?Infinity:a)};
xsa=function(a,b,c,d){var e=a.Zo.create(b,dH(jra(a.u)),a.u.i.i);c=e.ZJ(c,d);g.ee(e);if(!c)return!1;a.u.S[c]=b;return!0};
QJ=function(a,b){b=void 0===b?!1:b;a.Z=!0;g.ee(a.i);xJ(a.D);var c=a.u.K;if(null!==c){var d=a.Ll,e=a.u.C&&a.u.C.identifier,f=a.u.i.start,h=OJ(a);d.u&&uJ({driftRecoveryInfo:{contentCpn:d.i,cueIdentifier:e||void 0,driftRecoveryMs:c.toString(),breakDurationMs:Math.round(h-f).toString(),driftFromHeadMs:Math.round(1E3*d.B.Cn()).toString()}});a.u.K=null}b||a.daiEnabled?PJ(a.Nf,!0):a.X&&a.BH()&&a.Zv()?PJ(a.Nf,!1,ysa(a)):PJ(a.Nf,!1);tsa(a,!0)};
ysa=function(a){if(a.Aa)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Sa()/1E3)-a.va;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
zsa=function(a,b,c){this.i=a;this.u=b;this.B=c};
RJ=function(){this.D=[];this.K=[];this.i=[];this.C=[];this.I=[];this.u=new Set;this.S=new Map};
SJ=function(){RJ.i||(RJ.i=new RJ);return RJ.i};
Asa=function(a,b,c){c=void 0===c?0:c;b.then(function(d){var e,f;a.u.has(c)&&a.B&&a.B();var h=g.cy(c),l=g.by(c);h&&l&&((null===(e=null===d||void 0===d?void 0:d.response)||void 0===e?0:e.trackingParams)&&g.oy(a.client,h,l,[g.Zx(d.response.trackingParams)]),(null===(f=null===d||void 0===d?void 0:d.playerResponse)||void 0===f?0:f.trackingParams)&&g.oy(a.client,h,l,[g.Zx(d.playerResponse.trackingParams)]))})};
Bsa=function(a,b){TJ(a,g.Zx(b),void 0,void 0)};
TJ=function(a,b,c,d){d=void 0===d?0:d;if(a.u.has(d))a.D.push([b,c]);else{var e=g.cy(d);c=c||g.by(d);e&&c&&g.oy(a.client,e,c,[b])}};
Dsa=function(a,b,c){c=void 0===c?{}:c;a.u.add(c.layer||0);a.B=function(){Csa(a,b,c);var f=g.by(c.layer);if(f){for(var h=g.r(a.D),l=h.next();!l.done;l=h.next())l=l.value,TJ(a,l[0],l[1]||f,c.layer);f=g.r(a.K);for(h=f.next();!h.done;h=f.next()){var m=h.value;h=void 0;h=void 0===h?0:h;l=g.cy(h);var n=m[0]||g.by(h);l&&n&&(h=a.client,m=m[1],m={csn:l,ve:n.getAsJson(),clientData:m},n={cttAuthInfo:dy(l),Bm:l},"UNDEFINED_CSN"==l?ny("visualElementStateChanged",m,n):h?Rv("visualElementStateChanged",m,h,n):g.dw("visualElementStateChanged",
m,n))}}};
g.cy(c.layer)||a.B();if(c.TJ)for(var d=g.r(c.TJ),e=d.next();!e.done;e=d.next())Asa(a,e.value,c.layer);else g.jy(Error("Delayed screen needs a data promise."))};
Csa=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.zW?c.zW:c.layer;var e=g.cy(d);d=g.by(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.N("EVENT_ID");"UNDEFINED_CSN"===e&&l&&(h={servletData:{serializedServletEventId:l}});try{var m=a.client;l=f;var n=c.OJ,p=c.cttAuthInfo,q=c.Jca,t=Esa(),u={csn:t,pageVe:(new Yx({veType:b,youtubeData:h})).getAsJson()};l&&l.visualElement?
(u.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()},q&&(u.implicitGesture.gestureType=q)):l&&g.ky(new g.iw("newScreen() parent element does not have a VE - rootVe",b));n&&(u.cloneCsn=n);n={cttAuthInfo:p,Bm:t};m?Rv("screenCreated",u,m,n):g.dw("screenCreated",u,n);$w(wka,new my(t));var v=t}catch(y){ska(y,{ax:b,rootVe:d,parentVisualElement:void 0,Eca:e,Zca:f,OJ:c.OJ});g.jy(y);return}eka(v,b,c.layer,c.cttAuthInfo);if((b=e&&"UNDEFINED_CSN"!==e&&d)&&!(b=g.O("screen_manager_skip_hide_killswitch"))){a:{b=
g.r(Object.values(Fsa));for(f=b.next();!f.done;f=b.next())if(g.cy(f.value)==e){b=!0;break a}b=!1}b=!b}b&&tka(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=v||"");g.rA("csn",v);vy.getInstance().clear();d=g.by(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.O("web_mark_root_visible")||g.O("music_web_mark_root_visible"))&&g.py(v,d,void 0);a.u.delete(c.layer||0);a.B=void 0;e=g.r(a.S);for(v=e.next();!v.done;v=e.next())b=g.r(v.value),v=b.next().value,b=b.next().value,b.has(c.layer)&&
d&&TJ(a,v,d,c.layer);for(c=0;c<a.C.length;c++){e=a.C[c];try{e()}catch(y){g.jy(y)}}for(c=a.C.length=0;c<a.I.length;c++){e=a.I[c];try{e()}catch(y){g.jy(y)}}};
UJ=function(){this.i={};if(this.u=lu()){var a=g.ju("CONSISTENCY");a&&Gsa(this,{encryptedTokenJarContents:a})}};
Gsa=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.u&&g.iu("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
VJ=function(){var a=g.N("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.N("INNERTUBE_CLIENT_NAME")&&(this.localStorage=Hsa(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.i=void 0)};
Hsa=function(a){return void 0===a.localStorage?new Yv("yt-client-location"):a.localStorage};
WJ=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.N("INNERTUBE_CONTEXT");if(!d)return g.jy(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Ke(d);g.O("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;var e,f;d.client||(d.client={});var h=d.client;"MWEB"===h.clientName&&(h.clientFormFactor=g.N("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");h.screenWidthPoints=window.innerWidth;h.screenHeightPoints=window.innerHeight;h.screenPixelDensity=
Math.round(window.devicePixelRatio||1);h.screenDensityFloat=window.devicePixelRatio||1;h.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var l=void 0===l?!1:l;g.Uv.getInstance();var m="USER_INTERFACE_THEME_LIGHT";g.Vv(0,165)?m="USER_INTERFACE_THEME_DARK":g.Vv(0,174)?m="USER_INTERFACE_THEME_LIGHT":!g.O("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(m="USER_INTERFACE_THEME_DARK");
l=l?m:Oja()||m;h.userInterfaceTheme=l;if(!b){if(l=kia())h.connectionType=l;g.O("web_log_effective_connection_type")&&(l=mia())&&(d.client.effectiveConnectionType=l)}g.O("web_log_memory_total_kbytes")&&(null===(e=g.B.navigator)||void 0===e?0:e.deviceMemory)&&(e=null===(f=g.B.navigator)||void 0===f?void 0:f.deviceMemory,d.client.memoryTotalKbytes=""+1E6*e);f=g.gt(g.B.location.href);!g.O("web_populate_internal_geo_killswitch")&&f.internalcountrycode&&(h.internalGeo=f.internalcountrycode);"MWEB"===h.clientName||
"WEB"===h.clientName?(h.mainAppWebInfo={graftUrl:g.B.location.href},g.O("kevlar_woffle")&&gia.i&&(h.mainAppWebInfo.pwaInstallabilityStatus=gia.i.i?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),h.mainAppWebInfo.webDisplayMode=Sv(),h.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===h.clientName&&(!g.O("web_lr_app_quality_killswitch")&&(f=g.N("LIVING_ROOM_APP_QUALITY"))&&(h.tvAppInfo=Object.assign(h.tvAppInfo||{},{appQuality:f})),
f=g.N("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(h.tvAppInfo=Object.assign(h.tvAppInfo||{},{certificationScope:f}));if(!g.O("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(G){}n=void 0}n&&(h.timeZone=n)}(n=g.N("EXPERIMENTS_TOKEN",""))?h.experimentsToken=n:delete h.experimentsToken;n=Xs();UJ.i||(UJ.i=new UJ);h=xe(UJ.i.i);d.request=Object.assign(Object.assign({},d.request),{internalExperimentFlags:n,consistencyTokenJars:h});
!g.O("web_prequest_context_killswitch")&&(n=g.N("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);h=g.Uv.getInstance();n=g.Vv(0,58);h=h.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);h&&(d.user.lockedSafetyMode=!0);g.O("warm_op_csn_cleanup")?c&&(b=g.cy())&&(d.clientScreenNonce=b):!b&&(b=g.cy())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Ha("yt.mdx.remote.remoteClient_"))d.remoteClient=a;g.O("web_enable_client_location_service")&&
VJ.getInstance().setLocationOnInnerTubeContext(d);var p;try{var q=Mt(void 0),t=q.bid;delete q.bid;d.adSignalsInfo={params:[],bid:t};for(var u=g.r(Object.entries(q)),v=u.next();!v.done;v=u.next()){var y=g.r(v.value),z=y.next().value,C=y.next().value;q=z;t=C;null===(p=d.adSignalsInfo.params)||void 0===p?void 0:p.push({key:q,value:""+t})}}catch(G){g.jy(G)}return d};
XJ=function(){this.tX=!0};
YJ=function(){XJ.apply(this,arguments);this.Aq={}};
$J=function(){ZJ||(ZJ=new YJ);return ZJ};
Isa=function(a,b){b?a.Aq.Authorization="Bearer "+b:delete a.Aq.Authorization};
Jsa=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
Ksa=function(){var a=null;Nu().then(function(b){return a=b},function(b){return a=Jsa(b)});
return a};
Lsa=function(){var a=Ih(1E3,"NO_BID");return wh(g.yh(kba([Nu(),a]),Jsa),function(){return a.cancel()})};
Msa=function(a){return a.Gb?g.Vv(g.Uv.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
aK=function(a){this.player=a;this.u=this.i=1};
cK=function(a,b,c,d){c=void 0===c?{}:c;var e=c.Vu,f=c.Fd;d=void 0===d?"":d;c=a.player.getVideoData(1);var h=a.player.V().bk,l={AD_BLOCK:a.i++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:Msa(a.player.V()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Cn(),LACT:uv(),LIVE_INDEX:e?a.u++:1,LIVE_TARGETING_CONTEXT:e&&e.context?e.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.eb().pg().height,
P_W:a.player.eb().pg().width,YT_REMOTE:h?h.join(","):""},m=Lt(Kt);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};mt(b)&&(d.sts="18942",(e=a.player.V().Za)&&(d.forced_experiments=e));b=jt(g.Tq(b,l),d);a.player.getVideoData();if(2!==b.split("?").length)return sh(Error("Invalid AdBreakInfo URL"));if((d=null===c||void 0===c?void 0:c.oauthToken)&&lt()){var n=$J();Isa(n,d)}n=a.player.Sl(n);a=Nsa(a,b,l,c.isMdxPlayback);return g.bK(n,a,"/youtubei/v1/player/ad_break")};
Qsa=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=kt(b),f=Osa(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=Osa(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=dt(Mt(c)).split("&");var l=new Map;b.forEach(function(m){m=m.split("=");1<m.length&&l.set(m[0].toString(),decodeURIComponent(m[1].toString()))});
l.has("bid")&&(h.bid=l.get("bid"));h.params=[];Psa.forEach(function(m){l.has(m)&&(m={key:m,value:l.get(m)},h.params.push(m))});
a.adSignalsInfo=h}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;b=d.deviceParams.cosver;null!=b&&"cosver"!==b&&(a.client.osVersion=b);b=d.deviceParams.cplatform;null!=b&&"cplatform"!==b&&""!==b&&(a.client.platform=b);b=d.deviceParams.cmodel;null!=b&&"cmodel"!==b&&(a.client.deviceModel=b);b=d.deviceParams.cplayer;null!=b&&"cplayer"!==b&&(a.client.playerType=b);d=d.deviceParams.cbrand;null!=d&&"cbrand"!==d&&(a.client.deviceMake=d);a.user||(a.user=
{});a.user.lockedSafetyMode=!1};
Tsa=function(a,b){var c=!1;if(""===b)return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";"!"===d[0]&&(d=d.substring(1),h="INACTIVE");d=d.split("-");3>d.length||(d[0]in Rsa&&(f.clientName=Rsa[d[0]]),d[1]in Ssa&&(f.platform=Ssa[d[1]]),f.applicationState=h,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
Nsa=function(a,b,c,d){var e=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?Math.trunc(c.DRIFT_FROM_HEAD_MS):0,f=Usa.exec(b);f=null!=f&&2<=f.length?f[1]:"";var h=Vsa.test(b),l=Wsa.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=Xsa.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=Ysa.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=g.RE(a.player.V()),q=WJ(a.player.getVideoData(1).Za,!0),t="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";Qsa(q,b,t.toString(),a.player.V());var u=
{splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:18942,autonavState:Msa(a.player.V())};d&&(d={},Tsa(d,c.YT_REMOTE)&&(u.mdxContext=d));if(d=Zsa.includes(p)?void 0:g.ju("PREF")){for(var v=d.split(RegExp("[:&]")),y=0,z=v.length;y<z;y++){var C=v[y].split("=");if(("SML"===C[0].toUpperCase()||"GSML"===C[0].toUpperCase())&&1<C.length&&"TRUE"===C[1].toUpperCase()){q.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in
$sa)for(d=d.split(RegExp("[:&]")),y=$sa.FLAG_AUTO_CAPTIONS_DEFAULT_ON,v="f"+(1+Math.floor(y/31)).toString(),y=1<<Math.floor(y%31),z=0,C=d.length;z<C;z++){var G=d[z].split("=");if(G[0]===v&&parseInt("0x"+G[1],16)&y){d=!0;break a}}d=!1}u.autoCaptionsDefaultOn=d}b=ata.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(q.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:u};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,
isProxyAdTagRequest:h,context:q,adSignalsInfoString:dt(Mt(t.toString())),overridePlaybackContext:b};l&&(f.videoId=l);c.LIVE_TARGETING_CONTEXT&&(f.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(f.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());e&&(f.driftFromHeadMs=e.toString());a.player.V().N("html5_populate_media_position_in_ad_break_request")&&(f.currentMediaTimeMs=Math.round(1E3*a.player.getCurrentTime(1)));return f};
dK=function(a,b,c,d,e,f){g.Q.call(this);this.I=a;this.u=b;this.B=c;this.D=d;this.i=e;this.C=f;this.B.V().N("html5_pacf_enable_non_dai_live_video_ads")||bta(this)};
cta=function(a,b){var c={isEmpty:!0,nL:!1,Cl:[]};if(!b)return c;b&&b.trackingParams&&Bsa(SJ(),b.trackingParams);if(b&&b.adThrottled)return c.nL=!0,c;b=b.playerAds;if(!b||!b.length)return c;b=b.map(function(e){return e.adPlacementRenderer}).filter(function(e){return e&&null!=e.renderer});
if(g.Rb(b))return c;if(0<a.i.i.end){var d=a.i.i.end.toString();b.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==e.kind&&"-1"==e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!=d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}c.Cl=b;
c.isEmpty=!1;return c};
bta=function(a){[a.i.X,a.i.i].filter(function(b){return null!=b}).forEach(function(b){usa(a.u,b,a)})};
eK=function(a,b,c,d,e,f,h,l){MJ.call(this,a,b,c,d,e,f,h,l);this.B=d.u;this.C=-1;this.I=null;this.S=dta(this.lz())};
eta=function(a){a.C++;var b=a.lz();b?(0<a.C&&ksa(a.D),a.yu(b)):QJ(a)};
dta=function(a){return a?fta.some(function(b){return a instanceof b}):!1};
gta=function(a){this.i=new zsa(function(b){b=new MJ(a.Nf,a.J,a.NJ(),b,a.Ll,a.Xr,a.Zo,a.daiEnabled);NJ(b);return b},function(b){return new dK(a.NC,a.Nf,a.J,a.Yo,b,a.Ll)},function(b){b=new eK(a.Nf,a.J,a.NJ(),b,a.Ll,a.Xr,a.Zo,a.daiEnabled);
NJ(b);return b})};
hta=function(a,b){TG.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.dw("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),UG(this,new TH(a.adStart.adMessageRenderer)));if(a.linearAds){var c=[];a=g.r(a.linearAds);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.instreamVideoAdRenderer){var e=b(d.instreamVideoAdRenderer);UG(this,e);c.push(e.u);d.instreamVideoAdRenderer.isCritical&&(this.u=1)}else d.adActionInterstitialRenderer?(d=new PH(d.adActionInterstitialRenderer),
UG(this,d)):d.adIntroRenderer&&(d=new SH(d.adIntroRenderer),UG(this,d),this.u=1);this.i.filter(function(f){return f instanceof SG}).forEach(function(f,h){f instanceof SG&&(h=new QG(h,c),f.B=h)})}}};
jta=function(a,b){TG.call(this);UG(this,ita(this,a.adVideoStart));a:{var c=a.linearAd;if(c){if(c.instreamVideoAdRenderer){b=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){b=new ZG(c.instreamSurveyAdRenderer);break a}}b=null}UG(this,b);(a=a.adVideoEnd)?a.adActionInterstitialRenderer?(this.u=1,a=new PH(a.adActionInterstitialRenderer)):a=null:a=null;UG(this,a)};
ita=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.u=1,new PH(b.adActionInterstitialRenderer)):b.adMessageRenderer?(g.dw("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new TH(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new UH(b.surveyTextInterstitialRenderer):null};
kta=function(a,b,c){this.B=a;this.i=b;this.u=c};
lta=function(a){this.i=a};
mta=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.i.create(e,f):null;return new era(b,c,h,d)}catch(l){g.Zs(l)}};
nta=function(a){var b=new lta(a.VQ);return{kK:function(){return b}}};
fK=function(a){g.E.call(this);var b=this;this.u=a;this.i=null;g.he(this,function(){return b.i=null});
var c=Jx(a);if(c){var d=function(){b.i&&b.i(!!Hx())};
this.u.addEventListener(c,d);g.he(this,function(){b.u.removeEventListener(c,d)})}};
gK=function(a){g.E.call(this);this.i=a};
ota=function(a){var b=window.document;return g.YE(a.V())?new fK(b):new gK(a)};
pta=function(a){g.E.call(this);this.iP=new asa(a.J,a.contentCpn,a.daiEnabled)};
qta=function(a){hK=a&&a.data};
sta=function(a){rta=a&&a.data};
tta=function(a){iK=a&&a.data};
uta=function(a){jK=a&&a.data};
vta=function(a){kK=a&&a.data};
wta=function(){kK=jK=iK=hK=null};
nK=function(a){g.E.call(this);var b=this;this.Mc=a;this.Nd=new Map;this.i=new Map;lK(this,"commandExecutorCommand",function(c,d,e){b.yd(c.commands,d,e)});
mK(this,"commandExecutorCommand",function(c,d){xta(b,c.commands,d)});
lK(this,"clickTrackingParams",function(){});
mK(this,"clickTrackingParams",function(){})};
yta=function(a,b){lK(a,b.Dk(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
zta=function(a,b){mK(a,b.Dk(),function(c,d){b.Xl(c,d)})};
lK=function(a,b,c){a.isDisposed();a.Nd.get(b)&&g.jy(Error("Extension name "+b+" already registered"));a.Nd.set(b,c)};
mK=function(a,b,c){a.isDisposed();a.i.get(b)&&g.jy(Error("Extension name "+b+" already registered"));a.i.set(b,c)};
xta=function(a,b,c){b=void 0===b?[]:b;a.isDisposed();var d=[],e=[],f=g.r(b);for(b=f.next();!b.done;b=f.next())b=b.value,b.hasOwnProperty("pingingEndpoint")||b.hasOwnProperty("adPingingEndpoint")?d.push(b):e.push(b);d=g.r(d);for(b=d.next();!b.done;b=d.next())oK(a,b.value,c);e=g.r(e);for(b=e.next();!b.done;b=e.next())oK(a,b.value,c)};
Ata=function(a,b){a.Mc.get().Na("innertubeCommand",{openPopupAction:b})};
Bta=function(a,b){a.Mc.get().Na("innertubeCommand",{confirmDialogEndpoint:b})};
oK=function(a,b,c){a.isDisposed();b.loggingUrls&&Cta(a,"loggingUrls",b.loggingUrls,c);b=g.r(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.r(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?Ata(a,e):"confirmDialogEndpoint"===d?Bta(a,e):Dta.hasOwnProperty(d)||Cta(a,d,e,c)}};
Eta=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.Nd.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.jy(f)}else b=new g.iw("Unhandled field",b),g.ky(b)};
Cta=function(a,b,c,d){(a=a.i.get(b))||new g.iw("Unhandled field",b);try{a(c,d)}catch(e){g.jy(e)}};
Gta=function(a,b,c,d){for(var e=!1,f=g.r(b.Qh.entries()),h=f.next();!h.done;h=f.next())h=g.r(h.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===h.qb&&"core"===h.ib&&(e=!0);e?(d=Fta(b,d))?c.oE(d):R("No triggering layout ID available when attempting to mute."):(0,g.ih)(function(){a.yk()})};
Fta=function(a,b){if(b)return b;a=g.r(a.Qh.entries());for(b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;if("SLOT_TYPE_IN_PLAYER"===b.qb&&"core"===b.ib)return c.layoutId}};
Hta=function(a){var b=new gH(a.rp),c=new hH(b);return{SR:function(){return b},
cE:function(){return c}}};
sra=function(a){switch(a){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen";
case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "skip":return"skip";case "start":case "unmuted_start":return"start";
case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}};
Ita=function(a){this.J=a;var b=Pm(Mq),c=a.Rd();b.B!==c&&((b.B=c)||lea(b));a.V().N("active_view_stop_starting_measurement_on_loaded")&&Gl(Zm().featureSet,"ssmol",1)};
Jta=function(a){g.E.call(this);this.i=a;this.u=new Ita(a.J)};
Kta=function(a){return function(){return new wJ(a.i.J)}};
Lta=function(a){return function(b,c){return new mra(b,a.u,c,a.i.J,a.i.Mh,a.i.daiEnabled)}};
pK=function(a,b,c,d,e){g.Q.call(this);var f=this;this.i=b;this.Ka=null;this.bb=c;this.kb=e.Sf;this.Za=e.Ao;this.u=null;this.B=new Map;c=this.i.V().experiments;var h=Hta({rp:b.getVideoData(1)}),l=new Jta({Mh:h.cE(),J:b,daiEnabled:!1});g.H(this,l);this.bp=new Set;this.Cz=-1;this.Z=[];this.I=null;this.oa=new Map;this.K=new Map;this.S=new Set;this.C=new Kx(this);g.H(this,this.C);this.D=new Kx(this);g.H(this,this.D);this.va=this.Wa=this.Aa=!1;this.X=g.YE(b.V());this.jb=d;d=new pta({contentCpn:this.i.getVideoData(1).clientPlaybackNonce,
Cca:this,daiEnabled:!1,J:this.i});g.H(this,d);this.Ha=d.iP;this.Sa=(new Zra({Dca:this,fda:c.ob("html5_recognize_predict_start_cue_point"),bda:c.ob("html5_persist_cue_range_killswitch")})).i;var m=Ne(dH(bH(this.i)));e=new Xra({Xa:this,Ap:PG(),Mh:h.cE(),J:this.i,FW:m,mB:Lta(l),daiEnabled:!1,im:e.im,Sf:this.kb,sj:e.sj,hm:e.hm});this.Ba=(new gta({Yo:this.bb,Zo:e.UQ,NC:a,Nf:this,Ap:PG(),NJ:Kta(l),Ll:this.Ha,Xr:this.Sa,J:this.i,nda:m,mB:function(n){return Lta(l)(n,m)},
daiEnabled:!1})).jK();this.La=nta({VQ:new kta(new Zqa(b),c,function(n){return f.K.has(n)?f.K.get(n):null})}).kK();
this.Va=ota(this.i);g.H(this,this.Va);this.rb=dF(this.i.V())?this.i.V().experiments.ob("align_ad_to_video_player_lifecycle_for_bulleit_living_room"):this.i.V().experiments.ob("align_ad_to_video_player_lifecycle_for_bulleit")};
Qta=function(a,b){var c=a.i.getVideoData(1);if(c.lp||g.N("SERVED_VIA_SPF_HISTORY"))qK(a);else{if(IG(a.i)){var d=Mta(a.i);d.addEventListener("updateKevlarOrC3Companion",qta);d.addEventListener("onPlaShelfInfoCardsReady",sta);d.addEventListener("updateEngagementPanelAction",tta);d.addEventListener("changeEngagementPanelVisibility",uta);d.addEventListener("scrollToEngagementPanel",vta);window.addEventListener("yt-navigate-start",wta)}a.C.T(a.i,"applicationplayerstatechange",a.PT);a.C.T(a.i,g.cz("ad"),
a.qF,a);a.C.T(a.i,g.dz("ad"),a.lU,a);a.C.T(a.i,"aduxclicked",a.CT);a.C.T(a.i,"videodatachange",a.oW);b=Nta(a,b);b=Ota(a,b);b=Pta(a,b);0<b.length&&rK(a,b);a.I&&c.subscribe("cuepointupdated",a.oM,a);g.ih(a.OX,a)}};
Nta=function(a,b){return b.filter(function(c){if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)){if(a.i.V().experiments.ob("html5_pacf_enable_non_dai_live_video_ads"))return R("Tries to extract CuePoint triggered AdPlacementRenderer."),!1;g.YE(a.i.V())&&a.i.getVideoData(1).tf()||(a.I=c);return!1}return!0})};
Ota=function(a,b){a.oa=new Map;return b.filter(function(c){return"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)&&c.elementId?(a.oa.set(c.elementId,c),!1):!0})};
Pta=function(a,b){a.K=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.K.set(c.hostElementId,c),!1):!0})};
Rta=function(a,b){return b.every(function(c){c=a.B.get(c);return null==c?(g.Zs(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof dK?!1:c instanceof MJ?!c.Rp():!0})};
qK=function(a){var b=Sta(a);if(0<b.length){var c=g.S(a.i.V().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.X&&g.ME(a.i.V())?(c=new g.I(function(){Tta(a,b)},c),g.H(a,c),c.start()):g.ih(function(){Tta(a,b)})}};
Sta=function(a){for(var b=Uta(a),c=g.r(b),d=c.next();!d.done;d=c.next())a.bp.delete(d.value);return b};
Uta=function(a){var b=[];a=g.r(a.bp);for(var c=a.next();!c.done;c=a.next())c=c.value,Qz(c)&&b.push(c);return b};
Vta=function(a,b,c){c=void 0===c?null:c;var d=a.La,e=d.create;var f=1E3*a.i.getDuration(1);f=new Nka(f,1E3*a.i.getCurrentTime(1)||0,!1,a.i.V().experiments.ob("html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.Z.length,c);a.Z=a.Z.concat(b);return b};
Tta=function(a,b){if(!a.isDisposed()){b=g.r(b);for(var c=b.next();!c.done;c=b.next())a.qF(c.value)}};
rK=function(a,b,c){b=Vta(a,b,void 0===c?null:c);0==b.length||b.map(function(d){return a.Ba.create(d)})};
Wta=function(a){a.Aa||(a.D.T(a.i,"presentingplayerstatechange",a.jP),a.D.T(a.i,"internalAbandon",a.qT),a.D.T(a.i,"progresssync",a.rW),a.D.T(a.i,"onVolumeChange",a.sW),a.D.T(a.Va,"fullscreentoggled",a.uU),a.Aa=!0);g.L(a.i.getRootNode(),"ad-showing");g.L(a.i.getRootNode(),"ad-interrupting");a.i.V().experiments.ob("enable_html5_teal_ad_badge")&&IG(a.i)&&g.L(a.i.getRootNode(),"ad-teal-design");a.i.Wk(2)};
PJ=function(a,b,c){var d=!!a.u&&a.u||null,e=d&&d.Rp()&&(HG(a.i)||!1);d=b&&d&&d.reset()||null;a.u&&Xta(a,a.u);a.u=null;a.Cz=-1;e&&Yta(a,c);a.va||a.Za.zp();b&&d&&(d.zH().B=!1,NJ(d))};
Yta=function(a,b){g.Mx(a.D);a.Aa=!1;g.kr(a.i.getRootNode(),"ad-showing");a.rb?(a.va||a.Za.zp(),Zta(a),a.i.cueVideoByPlayerVars({},2)):(a.i.cueVideoByPlayerVars({},2),Zta(a));g.kr(a.i.getRootNode(),"ad-interrupting");a.i.V().experiments.ob("enable_html5_teal_ad_badge")&&g.kr(a.i.getRootNode(),"ad-teal-design");b&&b(a.i)};
Zta=function(a){if(a.Wa)!a.X&&g.ME(a.i.V())&&a.i.Eo(2);else if(a.i.Eo(2),!a.X){var b=a.i.zb(1);g.T(b,4)&&!g.T(b,2)&&a.i.playVideo()}};
usa=function(a,b,c){if(b instanceof ez){if(a.X&&dla(b)&&g.T(a.i.zb(1),64)){var d=1E3*a.i.getCurrentTime(1)||0;d!=b.start&&b.contains(d)&&b.deactivate()}a.B.has(b)?g.Zs(Error(b.toString()+" has already been seen")):(a.bp.add(b),a.B.set(b,c),Qz(b)||a.i.Dd([b],1))}else g.Zs(Error("Should use AdCueRange instead of CueRange"))};
Xta=function(a,b){a=a.B;for(var c=g.r(a),d=c.next();!d.done;d=c.next()){d=g.r(d.value);var e=d.next().value;if(d.next().value==b){a.delete(e);break}}g.ee(b)};
sK=function(a){g.E.call(this);this.u=a};
tK=function(a){sK.call(this,!0);this.i=a};
$ta=function(a,b){function c(f){return{toString:f}}
var d={},e=a.getVideoData(1);d.CPN=c(function(){return e&&e.clientPlaybackNonce||null});
d.ASR=c(function(){return e&&e.Al||null});
d.EI=c(function(){return e&&e.eventId||null});
d.AD_CPN=c(function(){return b.Yy()});
d.AD_MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(2))).toString()});
d.MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1))).toString()});
d.P_H=c(function(){return a.getPlayerSize().height.toString()});
d.PV_H=d.P_H;d.P_W=c(function(){return a.getPlayerSize().width.toString()});
d.PV_W=d.P_W;d.CONN="0";d.WT=c(function(){return Date.now().toString()});
d.LACT=c(function(){return uv().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
aua=function(a,b){g.E.call(this);var c=this;this.B=[];this.K=!1;this.u=0;this.D=this.I=this.C=!1;this.Z=null;var d=(0,g.D)(a,b);this.i=new g.I(function(){return d(c.Z)},300);
g.H(this,this.i);this.X=this.S=Infinity};
bua=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.B.includes(d.identifier))return!0}return!1};
uK=function(){var a="ytp-id-"+cua.toString();cua++;return a};
g.vK=function(a){g.E.call(this);this.kb={};this.bd={};this.element=this.createElement(a)};
wK=function(a,b,c,d){if("{{"===d.substr(0,2))a.bd[d]=[b,c];else return d};
dua=function(a,b){var c=[];if(!b)return c;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,null!=d){var e=d.nodeType;1===e||3===e?c.push(d):d&&"string"===typeof d.G?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.Ng("BR"));c.push(g.Og(f))}):c.push(g.Og(d))}return c};
xK=function(a,b,c,d){if("child"===c){g.Pg(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.G?[d]:d;c=dua(a,e);c=g.r(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.fm(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Df(g.Hf(a))),b.setAttribute(c,a))};
g.X=function(a){g.vK.call(this,a);this.yb=!0;this.oa=!1;this.listeners=[]};
g.yK=function(a,b){b?a.show():a.hide()};
g.zK=function(a){g.X.call(this,a);this.Sa=new g.Q;g.H(this,this.Sa)};
AK=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.zK.call(this,c);this.api=a;this.Xa=b;this.macros={};this.componentType=d;this.K=null;this.jb=h;this.layoutId=e;this.i=f;this.Va=null;this.gG=new tK(this.element);g.H(this,this.gG);this.bb=this.T(this.element,"click",this.onClick);this.Aa=[];this.va=new aua(this.onClick,this);g.H(this,this.va);this.rb=!1;this.X=null};
eua=function(a,b,c){a.Xa?a.Xa.executeCommand(b,a.macros,c):g.Zs(Error("null or undefined adService"))};
BK=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return at(Error("Got null or undefined adText object")),"";var c=g.pg(a.text);if(!a.isTemplated)return c;if(null==b)return at(Error("Missing required parameters for a templated message")),c;a=g.r(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.r(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
fua=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.Rb(a.thumbnails)||null==a.thumbnails[0].url)?"":g.pg(a.thumbnails[0].url)};
gua=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.Rb(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.jg(0,0):new g.jg(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
g.hua=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
CK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",W:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.DK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},U:[{G:"path",W:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.EK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},U:[{G:"path",W:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
iua=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",W:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{G:"path",W:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
jua=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
kua=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.FK=function(){return{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
lua=function(){return{G:"svg",W:{height:"100%",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",W:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
mua=function(){return{G:"svg",W:{viewBox:"0 0 24 24"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",W:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
nua=function(){return{G:"svg",W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},U:[{G:"path",W:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",W:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
oua=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
g.GK=function(){return{G:"svg",W:{viewBox:"0 0 24 24"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",W:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
HK=function(){return{G:"svg",W:{height:"100%",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",W:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
pua=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
IK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.JK=function(){return{G:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{G:"path",W:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
qua=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
rua=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
sua=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
tua=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.KK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
g.LK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
uua=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
MK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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"}}]}};
NK=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{G:"svg",W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},U:[{G:"path",W:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",W:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]};case "CHECK_BOX":return{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},
{G:"path",W:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.FK();case "INFO_OUTLINE":return nua();case "REMOVE_CIRCLE":return{G:"svg",
W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",W:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return IK();case "LIKE":return g.GK();case "DISLIKE":return mua();default:return g.ky(new g.iw("Unexpected icon:",a)),null}};
OK=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={G:"button",Ga:["ytp-ad-button"].concat(e)};null!=l&&(e.W={tabindex:l});AK.call(this,a,b,e,void 0===f?"button":f,c,d);this.u=this.B=this.C=null;this.D=h;this.hide()};
vua=function(a){var b=null;null!=a.u&&(b=[a.u.serviceEndpoint,a.u.navigationEndpoint].filter(function(c){return null!=c}),a.u.command&&(b=b.concat(a.u.command)));
return b||[]};
PK=function(){g.E.call(this);var a=this;this.i=new Map;this.u=Oha(function(b){if(b.target&&(b=a.i.get(b.target))&&b)for(var c=0;c<b.length;c++)g.wv(b[c],void 0,void 0)})};
wua=function(){null==QK&&(QK=new PK);return QK};
RK=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=xua(a))){b=Mg("SPAN",null,b);break a}b=g.Og(a)}return b}var c=[];if(a.runs)for(var d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(yua(e,b))}return 1==c.length?c[0]:Mg("SPAN",null,c)};
yua=function(a,b){var c=null,d=a.text;b&&(d=xua(d)||d);a.bold&&(c=Mg("B",null,c||d));a.italics&&(c=Mg("I",null,c||d));a.strikethrough&&(c=Mg("STRIKE",null,c||d));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(b=a.navigationEndpoint.urlEndpoint,c=Mg("A",null,c||d),g.ag(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),wua().register(c,a),g.L(c,"ytp-ad-has-logging-urls"));
return c||Mg("SPAN",null,d)};
xua=function(a){a=a.split(/(?:\r\n|\r|\n)/g);if(1<a.length){for(var b=[a[0]],c=1;c<a.length;c++)b.push(Mg("BR")),b.push(a[c]);return b}return null};
SK=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;AK.call(this,a,b,{G:"span",Ga:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,c,d);this.button=this.B=null;this.I=f;this.D=e;this.hide()};
TK=function(a){return a&&a.thumbnails&&!g.Rb(a.thumbnails||null)&&a.thumbnails[0].url?g.pg(a.thumbnails[0].url):""};
UK=function(a,b,c,d,e,f){f=void 0===f?!1:f;AK.call(this,a,b,{G:"img",L:"ytp-ad-image"},"ad-image",c,d,void 0===e?null:e);this.u=f;this.hide()};
VK=function(a,b,c,d,e,f){e=void 0===e?[]:e;AK.call(this,a,b,{G:"div",Ga:["ytp-ad-confirm-dialog-background"],U:[{G:"div",L:"ytp-ad-confirm-dialog-container",U:[{G:"div",Ga:["ytp-ad-confirm-dialog"].concat(e),W:{role:"dialog",tabindex:"-1"},U:[{G:"div",L:"ytp-ad-confirm-dialog-title",ya:"{{title}}"},{G:"div",L:"ytp-ad-confirm-dialog-messages"},{G:"div",L:"ytp-ad-confirm-dialog-confirm-container",U:[{G:"button",L:"ytp-ad-confirm-dialog-cancel-button",ya:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-confirm-dialog-confirm-button",
ya:"{{confirmLabel}}"}]}]}]},{G:"button",Ga:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],U:[{G:"span",L:"ytp-ad-button-icon",U:[g.FK()]}]}]},void 0===f?"confirm-dialog":f,c,d);this.S=this.Fa("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.Fa("ytp-ad-confirm-dialog-cancel-button");this.I=this.Fa("ytp-ad-confirm-dialog-confirm-button");this.Z=this.Fa("ytp-ad-confirm-dialog-messages");this.C=null;this.u=new Kx;g.H(this,this.u);this.B=null;this.hide()};
zua=function(a,b){if(b.title){var c=g.Sz(b.title);a.Ra("title",c)}if(b.dialogMessages){c=g.r(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=RK(d.value),a.Z.appendChild(d)}b.cancelLabel&&(c=g.Sz(b.cancelLabel),a.Ra("cancelLabel",c),a.u.T(a.D,"click",function(e){return a.WB(e)}));
b.confirmLabel&&(b=g.Sz(b.confirmLabel),a.Ra("confirmLabel",b),a.u.T(a.I,"click",function(e){return a.pF(e)}));
a.u.T(a.S,"click",function(e){return a.oF(e)})};
WK=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=KG("ytp-ad-toggle-button-input");AK.call(this,a,b,{G:"div",Ga:["ytp-ad-toggle-button"].concat(e),U:[{G:"label",L:"ytp-ad-toggle-button-label",W:{"for":h},U:[{G:"span",L:"ytp-ad-toggle-button-icon",W:{role:"button","aria-label":"{{tooltipText}}"},U:[{G:"span",L:"ytp-ad-toggle-button-untoggled-icon",ya:"{{untoggledIconTemplateSpec}}"},{G:"span",L:"ytp-ad-toggle-button-toggled-icon",ya:"{{toggledIconTemplateSpec}}"}]},{G:"input",
L:"ytp-ad-toggle-button-input",W:{id:h,type:"checkbox"}},{G:"span",L:"ytp-ad-toggle-button-text",ya:"{{buttonText}}"},{G:"span",L:"ytp-ad-toggle-button-tooltip",ya:"{{tooltipText}}"}]}]},f,c,d);this.C=this.Fa("ytp-ad-toggle-button");this.u=this.Fa("ytp-ad-toggle-button-input");this.Fa("ytp-ad-toggle-button-label");this.Z=this.Fa("ytp-ad-toggle-button-icon");this.I=this.Fa("ytp-ad-toggle-button-untoggled-icon");this.D=this.Fa("ytp-ad-toggle-button-toggled-icon");this.Ba=this.Fa("ytp-ad-toggle-button-text");
this.B=null;this.S=!1;this.hide()};
XK=function(a){a.S&&(a.isToggled()?(g.vm(a.I,!1),g.vm(a.D,!0)):(g.vm(a.I,!0),g.vm(a.D,!1)))};
Aua=function(a,b){var c=null;a.B&&(c=(b?[a.B.defaultServiceEndpoint,a.B.defaultNavigationEndpoint]:[a.B.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
YK=function(a){Kx.call(this);this.i=a;this.T(this.i,"onAdUxUpdate",this.S)};
ZK=function(a,b,c,d){AK.call(this,a,b,{G:"div",L:"ytp-ad-feedback-dialog-background",U:[{G:"div",L:"ytp-ad-feedback-dialog-container",U:[{G:"div",L:"ytp-ad-feedback-dialog-form",W:{role:"dialog",tabindex:"-1"},U:[{G:"div",L:"ytp-ad-feedback-dialog-title",U:[{G:"span",ya:"{{title}}"}]},{G:"span",L:"ytp-ad-info-dialog-feedback-options-title",ya:"{{reasonsTitle}}"},{G:"div",L:"ytp-ad-info-dialog-feedback-options"},{G:"div",L:"ytp-ad-feedback-dialog-confirm-container",U:[{G:"button",L:"ytp-ad-feedback-dialog-cancel-button",
ya:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-feedback-dialog-confirm-button",ya:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d);this.D=[];this.u=null;this.I=this.Fa("ytp-ad-feedback-dialog-cancel-button");this.S=this.Fa("ytp-ad-feedback-dialog-confirm-button");this.Z=this.Fa("ytp-ad-info-dialog-feedback-options");this.Ba=this.Fa("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
Eua=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.u=new OK(a.api,a.Xa,a.layoutId,a.i,["ytp-ad-feedback-dialog-close-button"],"button"),g.H(a,a.u),a.u.init(KG("button"),c,a.macros),a.u.Qa("click",a.jM,a),a.u.Ea(a.element));b.title&&(c=g.Sz(b.title),a.Ra("title",c));b.reasonsTitle&&(c=g.Sz(b.reasonsTitle),a.Ra("reasonsTitle",c));b.reasons&&Bua(a,b.reasons);b.cancelLabel&&(c=g.Sz(b.cancelLabel),a.Ra("cancelLabel",c),g.Wu(a.I,"click",function(){return a.jM()}));
b.confirmLabel&&(c=g.Sz(b.confirmLabel),a.Ra("confirmLabel",c),g.Wu(a.S,"click",function(){return Cua(a)}));
b.undoRenderer&&Dua(a,b.undoRenderer)};
Bua=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;null==c?at(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?at(Error("AdFeedbackReason.endpoint was not set.")):(c=new Fua(c,d),g.H(a,c),a.Z.appendChild(c.i.element),a.D.push(c)))}};
Dua=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new OK(a.api,a.Xa,a.layoutId,a.i,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.H(a,a.B),a.B.init(KG("ad-feedback-undo-mute-button"),b,a.macros),a.B.Qa("click",a.nW,a),a.B.Ea(a.Ba)):at(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
Cua=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(a.Xa.executeCommand(b[0].u,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.ea("a"),a.hide())};
Fua=function(a,b){this.u=b;this.i=new g.zK({G:"label",L:"ytp-ad-feedback-dialog-reason-label",U:[{G:"input",L:"ytp-ad-feedback-dialog-reason-input",W:{type:"radio",name:"feedback-reason-group"}},{G:"span",L:"ytp-ad-feedback-dialog-reason-text",ya:g.Sz(a)}]});this.B=this.i.Fa("ytp-ad-feedback-dialog-reason-input")};
$K=function(a,b,c,d){VK.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
aL=function(a,b,c,d,e){AK.call(this,a,b,{G:"div",L:"ytp-ad-info-dialog-background",U:[{G:"div",L:"ytp-ad-info-dialog-container",U:[{G:"div",L:"ytp-ad-info-dialog-form",W:{role:"dialog",tabindex:"-1"},U:[{G:"div",L:"ytp-ad-info-dialog-title",ya:"{{title}}"},{G:"ul",L:"ytp-ad-info-dialog-ad-reasons"},{G:"div",L:"ytp-ad-info-dialog-message"},{G:"div",L:"ytp-ad-info-dialog-mute-container"},{G:"div",L:"ytp-ad-info-dialog-confirm-container",U:[{G:"button",L:"ytp-ad-info-dialog-confirm-button",ya:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d);this.u=this.B=null;this.S=this.Fa("ytp-ad-info-dialog-confirm-button");this.Wa=this.Fa("ytp-ad-info-dialog-mute-container");this.La=this.Fa("ytp-ad-info-dialog-message");this.Ha=this.Fa("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.Ba=e;this.I=null;this.Ka=!1;this.Z=null;this.hide()};
Gua=function(a){(a.I&&a.I.impressionEndpoints||[]).forEach(function(b){return a.Xa.executeCommand(b,a.macros)})};
Hua=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new ZK(a.api,a.Xa,a.layoutId,a.i),g.H(a,a.B),a.B.init(KG("ad-feedback-dialog"),b,a.macros),a.B.Ea(a.Ba),a.B.subscribe("a",function(){return a.ea("c")})};
Iua=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new $K(a.api,a.Xa,a.layoutId,a.i),g.H(a,a.D),a.D.init(KG("ad-mute-confirm-dialog"),b,a.macros),a.D.Ea(a.Ba),a.D.subscribe("b",function(){return a.ea("c")})};
Jua=function(a){a.u&&a.u.Qa("click",a.NH,a);g.Wu(a.S,"click",function(){return a.NH()})};
bL=function(a,b,c,d,e,f){SK.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.u=null;this.C=e;this.hide()};
Kua=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.Zs(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.u=new aL(a.api,a.Xa,a.layoutId,a.i,a.C),g.H(a,a.u),a.u.init(KG("ad-info-dialog"),b,c),a.u.Ea(a.C),a.u.subscribe("d",function(){return a.ea("f")}),a.u.subscribe("c",function(){return a.ea("e")}))};
Mua=function(a,b,c){null==a.button?g.Zs(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.L(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null)?(Kua(a,b,c),a.button.Qa("click",function(){a.u&&!a.u.yb&&(a.u.show(),Lua(a))})):a.button.Qa("click",function(){return Lua(a)}))};
Lua=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
cL=function(a,b,c,d,e,f){AK.call(this,a,b,{G:"div",L:"ytp-ad-text"},void 0===f?"ad-text":f,c,d,void 0===e?null:e);this.u=null;this.hide()};
dL=function(a,b){b&&g.Ug(a.element,BK(a.u,b))};
eL=function(a,b,c,d,e,f,h){AK.call(this,a,b,c,d,e,f);this.u=h;g.H(this,this.u);this.Ha=this.D=-1};
fL=function(a){a.u&&-1===a.D&&(a.D=a.u.subscribe("h",a.Bo,a),a.Ha=a.u.subscribe("g",a.xq,a),a.Bo())};
gL=function(a){null!=a.u&&-1!==a.D&&(a.u.cg(a.D),a.u.cg(a.Ha),a.Ha=-1,a.D=-1)};
g.hL=function(a,b,c,d,e,f){g.E.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=void 0===d?b:d;this.i=f;this.u=e;this.delay=new g.I(this.sB,0,this);g.H(this,this.delay)};
iL=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
jL=function(a,b,c,d,e,f){eL.call(this,a,b,{G:"div",L:"ytp-ad-preview-slot"},"ad-preview",c,d,e);var h=this;this.La=-1;this.B=new g.zK({G:"span",L:"ytp-ad-preview-container"});g.H(this,this.B);this.C=new cL(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-preview-text");g.H(this,this.C);this.C.Ea(this.B.element);this.S=new g.zK({G:"span",L:"ytp-ad-preview-image"});g.H(this,this.S);this.I=new UK(this.api,this.Xa,this.layoutId,this.i);g.H(this,this.I);this.I.Ea(this.S.element);this.S.Ea(this.B.element);
this.B.Ea(this.element);this.Z=new g.hL(this.B,400,!1,100,function(){return h.hide()});
g.H(this,this.Z);this.Ba=0;this.Ka=!1;this.Wa=f;this.hide()};
kL=function(a){a.Z.show(100);a.show()};
lL=function(a,b,c,d,e){eL.call(this,a,b,{G:"div",Ga:["ytp-flyout-cta","ytp-flyout-cta-inactive"],U:[{G:"div",L:"ytp-flyout-cta-icon-container"},{G:"div",L:"ytp-flyout-cta-body",U:[{G:"div",L:"ytp-flyout-cta-text-container",U:[{G:"div",L:"ytp-flyout-cta-headline-container"},{G:"div",L:"ytp-flyout-cta-description-container"}]},{G:"div",L:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e);this.S=new UK(this.api,this.Xa,this.layoutId,this.i,"ytp-flyout-cta-icon");g.H(this,this.S);this.S.Ea(this.Fa("ytp-flyout-cta-icon-container"));
this.I=new cL(this.api,this.Xa,this.layoutId,this.i,"ytp-flyout-cta-headline");g.H(this,this.I);this.I.Ea(this.Fa("ytp-flyout-cta-headline-container"));this.C=new cL(this.api,this.Xa,this.layoutId,this.i,"ytp-flyout-cta-description");g.H(this,this.C);this.C.Ea(this.Fa("ytp-flyout-cta-description-container"));this.B=new OK(this.api,this.Xa,this.layoutId,this.i,["ytp-flyout-cta-action-button"]);g.H(this,this.B);this.B.Ea(this.Fa("ytp-flyout-cta-action-button-container"));this.Z=null;this.Ba=0;this.hide()};
mL=function(a,b,c,d,e){AK.call(this,a,b,{G:"div",L:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,void 0===e?null:e);var f=this;this.u=null;this.C=new WK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-instream-user-sentiment-like-button"]);g.H(this,this.C);this.C.Ea(this.element);this.B=new WK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-instream-user-sentiment-dislike-button"]);g.H(this,this.B);this.B.Ea(this.element);this.D=new g.hL(this,400,!1,500,function(){return f.hide()});
g.H(this,this.D);this.hide()};
Nua=function(a,b){a.C.init(KG("toggle-button"),a.u.likeButton.toggleButtonRenderer,b);a.B.init(KG("toggle-button"),a.u.dislikeButton.toggleButtonRenderer,b);a.T(a.element,"change",a.PH)};
nL=function(a,b,c,d,e){e=void 0===e?0:e;g.E.call(this);this.B=a;this.u=!1;this.X=d;this.I=!1;this.i=null;0<b&&(this.i=new g.I(this.fJ,b,this),g.H(this,this.i));this.D=new g.I(this.fJ,c,this);g.H(this,this.D);this.S=xr(this.B,e,1,d);g.H(this,this.S);this.K=xr(this.B,0,d,1);g.H(this,this.K);this.C=new Kx;g.H(this,this.C)};
oL=function(a,b,c,d,e,f){eL.call(this,a,b,{G:"div",L:"ytp-ad-skip-button-slot"},"skip-button",c,d,e);var h=this;this.S=null;this.Ba=!1;this.Ka=f;this.C=new g.zK({G:"span",Ga:["ytp-ad-skip-button-container"]});g.H(this,this.C);this.C.Ea(this.element);this.B=this.I=null;this.La=new g.hL(this.C,500,!1,100,function(){return h.hide()});
g.H(this,this.La);this.Z=new nL(this.C.element,15E3,5E3,.5,.5);g.H(this,this.Z);this.hide()};
Pua=function(a){var b=a.S&&a.S.adRendererCommands;b=b&&b.clickCommand&&b.clickCommand.commandExecutorCommand&&b.clickCommand.commandExecutorCommand.commands||[];return a.api.V().N("html5_enable_single_video_vod_ivar_on_pacf")?b.some(function(c){return c.adLifecycleCommand?Oua(c.adLifecycleCommand):!1}):b.some(function(c){return c.adLifecycleCommand})};
Oua=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
pL=function(a,b,c,d,e,f){eL.call(this,a,b,{G:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e);this.Z=f;this.I=!1;this.S=0;this.C=this.B=null;this.hide()};
Qua=function(a,b){a.I||(a.I=!0,a.B&&(b?a.B.Z.hide():a.B.hide()),b?(a=a.C,a.La.show(),a.show()):a.C.show())};
qL=function(a,b,c,d){OK.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
rL=function(a,b,c,d,e){e=void 0===e?!1:e;AK.call(this,a,b,{G:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d);this.u=e;this.hide()};
sL=function(a,b,c,d,e){e=void 0===e?!1:e;LG.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.i=d;this.Qi=e};
tL=function(a,b){g.Q.call(this);this.api=a;this.durationMs=b;this.i=null;this.Ae=new Kx(this);g.H(this,this.Ae);this.u=Rua;this.Ae.T(this.api,"presentingplayerstatechange",this.Nc);this.i=this.Ae.T(this.api,"onAdPlaybackProgress",this.Xb)};
uL=function(a,b){g.Q.call(this);this.Xa=b;this.B=!1;this.u=0;this.Ae=new Kx(this);g.H(this,this.Ae);this.durationMs=a;this.i=new g.Gh(100);g.H(this,this.i);this.Ae.T(this.i,"tick",this.Xb);this.C={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.vL=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){b="";0<d&&(b+=" "+d+" \u0434\u043d.");if(0<d||0<e)b+=" "+e+" \u0447.";d=(b+(" "+f+" \u043c\u0438\u043d. ")+(c+" \u0441\u0435\u043a.")).trim()}else{b="";0<d&&(b+=d+":",10>e&&(b+="0"));if(0<d||0<e)b+=e+":",10>f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d};
g.wL=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)};
xL=function(a,b,c,d,e,f){eL.call(this,a,b,{G:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.videoAdDurationSeconds=f;this.B=null;this.hide()};
yL=function(a,b,c,d){cL.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
zL=function(a,b){this.u=a;this.i=b};
AL=function(a){return a.i-a.u};
BL=function(a,b){return a.u+b*AL(a)};
CL=function(a,b,c){return AL(a)?g.dg((b-a.u)/AL(a),0,1):null!=c?c:Infinity};
DL=function(a,b){g.zK.call(this,{G:"div",L:"ytp-ad-persistent-progress-bar-container",U:[{G:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.H(this,this.u);this.Hc=this.Fa("ytp-ad-persistent-progress-bar");this.i=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
EL=function(a,b,c,d,e,f){AK.call(this,a,b,{G:"div",L:"ytp-ad-player-overlay",U:[{G:"div",L:"ytp-ad-player-overlay-flyout-cta"},{G:"div",L:"ytp-ad-player-overlay-instream-info"},{G:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-player-overlay-progress-bar"},{G:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d);this.I=f;this.S=this.Fa("ytp-ad-player-overlay-flyout-cta");this.B=this.Fa("ytp-ad-player-overlay-instream-info");this.C=null;Sua(this)&&(a=
Mg("div"),g.L(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.B,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new yL(this.api,this.Xa,this.layoutId,this.i),c.Ea(a),c.init(KG("ad-title"),{text:b.title},this.macros),g.H(this,c)),this.C=a);this.D=this.Fa("ytp-ad-player-overlay-skip-or-preview");this.Ba=this.Fa("ytp-ad-player-overlay-progress-bar");this.Z=this.Fa("ytp-ad-player-overlay-instream-user-sentiment");this.u=e;g.H(this,this.u);this.hide()};
Sua=function(a){a=a.api.V();return g.GE(a)&&a.isMobile};
Uua=function(a,b){var c=void 0===c?!0:c;var d=g.N("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.ti(window.location.href);e&&d.push(e);e=g.ti(a);if(g.Qb(d,e)||!e&&gb(a,"/"))if(g.O("autoescape_tempdata_url")&&(d=document.createElement("a"),g.ag(d,a),a=d.href),a&&(a=vi(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.cy()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&Tua(a,b,f)}else Tua(a,b)};
Tua=function(a,b,c){a="ST-"+qg(a).toString(36);b=b?g.Ci(b):"";c=c||5;Fu()&&g.iu(a,b,c)};
FL=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.Ei("/sharing_services",a);g.wv(d)};
g.Wua=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;d=d.location;a=g.Ei(a,b)+c;var e=void 0===e?Kj:e;e=Mj(a,e)||Vua;d.href=Pj(e)};
g.GL=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.N("EVENT_ID");d&&(b.ei||(b.ei=d));b&&Uua(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.Wua(a))};
g.HL=function(a,b,c,d){c&&Uua(a,c);c=g.Hf(a);c=g.Df(c);a!=c&&at(Error("Unsafe window.open URL: "+a));a=c;b=b||qg(a).toString(36);var e,f;if(d&&"function"===typeof(null==(e=document.featurePolicy)?void 0:e.features)&&(null==(f=document.featurePolicy)?0:f.features().includes("attribution-reporting")))try{a=Xua(a);var h=Object.keys(d).map(function(l){return l.toLowerCase()+"="+d[l]}).join(",");
window.open(a,b,h);return}catch(l){}window.open(a,b)};
Xua=function(a){return"www.googleadservices.com"!==g.ti(a)?a:a+"&nis=3"};
g.Zua=function(a,b,c){b=Yua(null,b,c);if(b=bg(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.Dv("LOGGED_IN",function(d){g.Ev(g.N("LOGGED_IN_PUBSUB_KEY",void 0));Ts("LOGGED_IN",!0);a(d)}),Ts("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
Yua=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=Di(c,"mode",a));a=Di(d,"next",c);b&&(a=Di(a,"feature",b));return a};
$ua=function(a,b){var c,d;if(!a)return!1;if((null===(c=a.signalServiceEndpoint)||void 0===c?0:c.signal)&&b.Hq)return!!b.Hq[a.signalServiceEndpoint.signal];if((null===(d=a.continuationCommand)||void 0===d?0:d.request)&&b.qD)return!!b.qD[a.continuationCommand.request];for(var e in a)if(b.nD[e])return!0;return!1};
ava=function(a,b){var c,d;if((null===(c=a.signalServiceEndpoint)||void 0===c?0:c.signal)&&b.Hq){var e=b.Hq[a.signalServiceEndpoint.signal];if(e)return e()}if((null===(d=a.continuationCommand)||void 0===d?0:d.request)&&b.qD&&(e=b.qD[a.continuationCommand.request]))return e();for(var f in a)if(b.nD[f]&&(a=b.nD[f]))return a()};
IL=function(a){return function(){return new a}};
cva=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=bva[b];if(c){var d=new RegExp(c),e=g.r(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(bva).forEach(function(h){var l=g.r(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
d=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
e=g.r(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
g.JL=function(a){return"/youtubei/v1/"+cva(a)};
KL=function(a){var b=g.N("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(vi(a)));return a};
dva=function(a,b){g.N("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null===b||void 0===b?0:b.Authorization)||(a=jt(a,{key:g.N("INNERTUBE_API_KEY")}));return a};
LL=function(a,b){return{method:void 0===b?"POST":b,mode:kt(a)?"same-origin":"cors",credentials:kt(a)?"same-origin":"include"}};
ML=function(){};
NL=function(){};
OL=function(a,b,c,d){this.B=a;this.We=b;this.u=c;this.C=d;this.i=void 0;a.Hq||(a.Hq={});a.Hq=Object.assign(Object.assign({},eva),a.Hq)};
fva=function(a,b,c,d){if(void 0!==OL.i){if(d=OL.i,a=[a!==d.B,b!==d.We,c!==d.u,!1,!1,void 0!==d.i],a.some(function(e){return e}))throw new g.iw("InnerTubeTransportService is already initialized",a);
}else OL.i=new OL(a,b,c,d)};
QL=function(a,b,c){var d=void 0===d?PL:d;var e=ava(b,a.B);if(!e)return sh(new g.iw("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?new nh(function(h){var l,m,n;return g.A(function(p){if(1==p.i)return m="cors"===(null===(l=f.Bq)||void 0===l?void 0:l.mode)?"cors":void 0,g.x(p,gva(a,f.config,m),2);n=p.u;h(hva(a,f,n));g.sa(p)})}):sh(new g.iw("Error: Failed to build request for command.",b))};
g.bK=function(a,b,c,d,e){e=void 0===e?{ip:{identity:PL}}:e;var f=void 0===f?!0:f;b.context||(b.context=WJ(d,f));return new nh(function(h){var l,m,n,p,q;return g.A(function(t){if(1==t.i)return l=KL(c),m=kt(l)?"same-origin":"cors",g.x(t,gva(a,e,m),2);n=t.u;p=dva(KL(c),n);q={input:p,Bq:LL(p),Zl:b,config:e};h(hva(a,q,n));g.sa(t)})})};
hva=function(a,b,c){var d,e,f,h,l,m,n,p,q,t,u,v,y;return g.A(function(z){switch(z.i){case 1:z.fb(2);break;case 3:if((l=z.u)&&!l.isExpired())return z.return(Promise.resolve(l.i()));case 2:m=g.r([]);for(n=m.next();!n.done;n=m.next())p=n.value,p.eda(b.Zl.context);if(null===(d=a.i)||void 0===d?0:d.C(b.input,b.Zl))return z.return(a.i.B(b.input,b.Zl));q=JSON.stringify(b.Zl);b.Bq=Object.assign(Object.assign({},b.Bq),{headers:c});t=Object.assign({},b.Bq);"POST"===b.Bq.method&&(t=Object.assign(Object.assign({},
t),{body:q}));(null===(e=b.config)||void 0===e?0:e.SW)&&sA(b.config.SW);return g.x(z,a.We.fetch(b.input,t,b.config),4);case 4:u=z.u;(null===(f=b.config)||void 0===f?0:f.WW)&&sA(b.config.WW);if(u||null===(h=a.i)||void 0===h||!h.i(b.input,b.Zl)){z.fb(5);break}return g.x(z,a.i.u(b.input,b.Zl),6);case 6:u=z.u;case 5:if(u&&a.C)for(v=g.r(a.C),n=v.next();!n.done;n=v.next())y=n.value,y.handleResponse(u,b);return z.return(u)}})};
gva=function(a,b,c){return g.A(function(d){if(a.u.tX){var e=d.return,f,h,l=(null===(h=null===b||void 0===b?void 0:b.ip)||void 0===h?void 0:h.identity)||PL;h=null===(f=null===b||void 0===b?void 0:b.ip)||void 0===f?void 0:f.sessionIndex;f=a.u.bz(l,{sessionIndex:h});f=Object.assign(Object.assign({},iva(c)),f);d=e.call(d,f)}else d=d.return(jva(a,b,c));return d})};
jva=function(a,b,c){var d,e,f,h,l;return g.A(function(m){if(1==m.i){f=(null===(d=null===b||void 0===b?void 0:b.ip)||void 0===d?void 0:d.identity)||PL;h=null===(e=null===b||void 0===b?void 0:b.ip)||void 0===e?void 0:e.sessionIndex;var n=rh(a.u.bz(f,{sessionIndex:h}));return g.x(m,n,2)}l=m.u;return m.return(Promise.resolve(Object.assign(Object.assign({},iva(c)),l)))})};
iva=function(a){var b={"Content-Type":"application/json"},c=g.N("VISITOR_DATA");c&&(b["X-Goog-Visitor-Id"]=c);"cors"!==a&&((a=g.N("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.N("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.N("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),g.O("forward_domain_admin_state_on_embeds")&&(a=g.N("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
RL=function(){};
SL=function(){};
TL=function(){};
UL=function(){};
VL=function(){};
WL=function(){};
XL=function(){};
g.ZL=function(a,b){if(!YL){var c={nD:{feedbackEndpoint:IL(TL),modifyChannelNotificationPreferenceEndpoint:IL(UL),playlistEditEndpoint:IL(VL),subscribeEndpoint:IL(RL),unsubscribeEndpoint:IL(SL),webPlayerShareEntityServiceEndpoint:IL(WL)}},d=g.O("web_enable_client_location_service")?VJ.getInstance():void 0,e=[];d&&e.push(d);void 0===a&&(XJ.i||(XJ.i=new XJ),a=XJ.i);void 0===b&&(XL.i||(XL.i=new XL),b=XL.i);fva(c,b,a,e);YL=OL.i}return YL};
$L=function(){};
kva=function(){$L.i||($L.i=new $L);return $L.i};
mva=function(){if(!g.O("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.O("disable_biscotti_fetch_entirely_for_all_web_clients")&&Fu()&&"1"!=He(g.N("PLAYER_VARS",{}),"privembed",!1)){var a=function(){aM=!0;"google_ad_status"in window?Ts("DCLKSTAT",1):Ts("DCLKSTAT",2)};
try{g.Dy("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}lva.push(g.tv.Of(function(){if(!(aM||"google_ad_status"in window)){try{if(a){var b=""+g.Pa(a),c=Dka[b];c&&g.Ev(c)}}catch(d){}aM=!0;Ts("DCLKSTAT",3)}},5E3))}};
nva=function(){var a=Number(g.N("DCLKSTAT",0));return isNaN(a)?0:a};
bM=function(){};
ova=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."))})};
bw=function(a,b){var c=this;this.handleError=a;this.i=b;this.u=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.u=!0});
this.B=Math.random()<=Ws("ytidb_transaction_ended_event_rate_limit",.02)};
qva=function(a,b){bM.getInstance().estimate().then(function(c){c=Object.assign(Object.assign({},b),{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:pva(null===c||void 0===c?void 0:c.usage),deviceStorageQuotaMbytes:pva(null===c||void 0===c?void 0:c.quota)});a.i("idbQuotaExceeded",c)})};
pva=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
cM=function(){this.u=!1;this.i=null};
sva=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;c?(a.u=!0,g.Dy(c,function(){a.u=!1;var l=0<=c.indexOf("/th/");if(l?window.trayride:window.botguard)rva(a,d,!!h,l,e);else{l=Cka(c);var m=document.getElementById(l);m&&(Tha(l),m.parentNode.removeChild(m));g.ky(new g.iw("Unable to load Botguard","from "+c))}},f)):b&&(f=g.Ng("SCRIPT"),f.textContent=b,f.nonce=cg(),document.head.appendChild(f),document.head.removeChild(f),((b=b.includes("trayride"))?window.trayride:window.botguard)?rva(a,d,!!h,b,e):g.ky(Error("Unable to load Botguard from JS")))};
rva=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{tva(a,new d(b,e?function(){return e(b)}:g.Ia))}catch(l){l instanceof Error&&g.ky(l)}else{try{tva(a,new d(b))}catch(l){l instanceof Error&&g.ky(l)}e&&e(b)}else g.ky(Error("Failed to finish initializing VM"))};
uva=function(a,b){var c=g.dM;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)};
tva=function(a,b){a.i=b};
vva=function(){vA("bg_l",void 0,"player_att");eM=(0,g.P)()};
g.wva=function(a,b,c){var d=g.S(b.experiments,"bg_vm_reinit_threshold");b.N("always_reinit_bg_vm")&&(d=0);a.program&&(g.dM.u?0:!eM||(0,g.P)()-eM>d)&&(vA("bg_i",void 0,"player_att"),g.dM.initialize(a,vva,b.cspNonce,c))};
xva=function(a){a=void 0===a?{}:a;return g.dM.invoke(a)};
yva=function(a){var b=Ws("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return uva(a,b)};
Ava=function(a,b,c,d){var e=window.location.search;if(38===b.Ka&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.Ei("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.aY});if(30===b.Ka&&"docs"===a.playerStyle)return g.Ei("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.JI,authkey:b.authKey,eurl:a.Fc});if(33===b.Ka&&"google-live"===a.playerStyle)return g.Ei("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.va&&g.jy(Error("getVideoInfoUrl for invalid namespace: "+a.va));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Fc,ps:a.playerStyle,el:vG(b),hl:a.xe,list:b.playlistId,agcid:b.ML,aqi:b.adQueryId,sts:18942,lact:uv()};Object.assign(f,a.deviceParams);a.Za&&(f.forced_experiments=a.Za);b.Sa?(f.vvt=b.Sa,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):b.mf()&&(f.access_token=b.mf());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&
(f.break_type=b.breakType);null!==b.HC&&(f.ad_id=b.HC);null!==b.JC&&(f.ad_sys=b.JC);null!==b.UE&&(f.encoded_ad_playback_context=b.UE);b.qC&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Sa&&2!==a.Sa&&(f.cc_load_policy=a.Sa);var h=g.Vv(g.Uv.getInstance(),65);g.$E(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.bq&&(f.endscreen_ad_tracking=
b.bq);(h=a.S.get(b.videoId))&&h.Ax&&(f.ic_track=h.Ax);b.Za&&(f.itct=b.Za);yG(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.Mk&&(f.autonav="1");b.iH&&(f.noiba="1");a.N("send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.Ef&&(f.ytr=b.Ef)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Ef);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Il&&(f.ytrcc=b.Il);b.lH&&(f.utpsa="1");b.isFling&&(f.is_fling="1");b.isInlinePlaybackNoAd&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);
b.Ug&&(h=3===b.Ug.split("|").length,f.force_ad_params=h?b.Ug:"||"+b.Ug);b.Hd&&(f.preload=b.Hd);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.Af&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");wG(b)&&(f.content_v=wG(b));b.rb&&(f.livemonitor=1);a.X&&(f.authuser=a.X);a.pageId&&(f.pageid=a.pageId);a.Aa&&(f.ei=a.Aa);a.i&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.u&&b.KB&&(f.live_start_walltime=b.KB);a.u&&b.bh&&(f.live_manifest_duration=b.bh);a.u&&b.playerParams&&
(f.player_params=b.playerParams);a.u&&b.cycToken&&(f.cyc=b.cycToken);a.u&&b.rC&&(f.tkn=b.rC);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.wb&&(f.kpt=b.wb);b.Tj&&(f.kids_age_up_mode=b.Tj);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.ir&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.va?(c=null!=b.va.latitudeE7&&null!=b.va.longitudeE7?b.va.latitudeE7+","+b.va.longitudeE7:",",c+=","+(b.va.clientPermissionState||0)+","+
(b.va.locationRadiusMeters||"")+","+(b.va.locationOverrideToken||"")):c=null;c&&(f.uloc=c);b.dj&&(f.internalipoverride=b.dj);a.embedConfig&&(f.embed_config=a.embedConfig);a.Pj&&(f.co_rel="1");0<a.ancestorOrigins.length&&(f.ancestor_origins=Array.from(a.ancestorOrigins).join(","));void 0!==a.homeGroupInfo&&(f.home_group_info=a.homeGroupInfo);void 0!==a.livingRoomAppMode&&(f.living_room_app_mode=a.livingRoomAppMode);a.enablePrivacyFilter&&(f.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(f.is_living_room_deeplink=
"1");b.Xo&&b.xp&&(f.clip=b.Xo,f.clipt=b.xp);b.Pp&&(f.disable_watch_next="1");b.Yg&&(f.forced_by_var="1");for(var l in f)!zva.has(l)&&f[l]&&512<String(f[l]).length&&(g.ky(Error("GVI param too long: "+l)),f[l]="");b=a.Ba;g.FE(a)&&(b=Wy(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.Ba);a=g.Ei(b+"get_video_info",f);e&&(a=Wt(a,e));return a};
g.fM=function(a,b){return a.Ba+"timedtext_video?ref=player&v="+b.videoId};
g.gM=function(a){var b={};b.feature=a;return b};
Bva=function(a){var b={};a.QB&&(b.ytrext=a.QB);return g.De(b)?void 0:b};
g.Cva=function(a){var b=this;this.videoData=a;a={};this.u=(a.c1a=function(){if(g.dM.isInitialized()){var c="";b.videoData&&b.videoData.Ba&&(c=b.videoData.Ba+("&r1b="+b.videoData.clientPlaybackNonce));var d={};c=(d.atr_challenge=c,d);vA("bg_v",void 0,"player_att");c=xva(c);vA("bg_s",void 0,"player_att");c=c?"r1a="+c:"r1c=2"}else vA("bg_e",void 0,"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)^nva())},a);
this.videoData&&this.videoData.Ba?this.i=g.et(this.videoData.Ba):this.i={}};
g.Dva=function(a){if(a.videoData&&a.videoData.Ba){for(var b=[a.videoData.Ba],c=g.r(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,a.i[d]&&a.u[d]&&(d=a.u[d](a.i))&&b.push(d);return b.join("&")}return null};
Fva=function(a){var b={};Object.assign(b,a.u);"c1b"in a.i&&(b.c1a=function(){return Eva(a)});
if(a.videoData&&a.videoData.Ba){for(var c=[a.videoData.Ba],d=g.r(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)};
Eva=function(a){if(!g.dM.isInitialized())return vA("bg_e",void 0,"player_att"),window.trayride||window.botguard?Promise.resolve("r1c=1"):Promise.resolve("r1c=4");var b="";a.videoData&&a.videoData.Ba&&(b=a.videoData.Ba+("&r1b="+a.videoData.clientPlaybackNonce));a={};var c=(a.atr_challenge=b,a);return new Promise(function(d){vA("bg_v",void 0,"player_att");yva(c).then(function(e){e?(vA("bg_s",void 0,"player_att"),d("r1a="+e)):(vA("bg_e",void 0,"player_att"),d("r1c=2"))},function(){vA("bg_e",void 0,"player_att");
d("r1c=3")})})};
Gva=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 hM(a)};
hM=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b=["endSeconds","startSeconds","mediaContentUrl","suggestedQuality","videoId"];c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c};
Hva=function(a,b,c,d){if(g.Na(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
kM=function(a,b){g.E.call(this);var c=this;this.app=a;this.playerType=b;this.i=!0;this.element=null;this.D={};this.K={};this.u={};this.S=[];this.I={};this.C={};this.B=null;this.X=new Set;iM(this,"cueVideoById",this.cueVideoById);iM(this,"loadVideoById",this.loadVideoById);iM(this,"cueVideoByUrl",this.cueVideoByUrl);iM(this,"loadVideoByUrl",this.loadVideoByUrl);iM(this,"playVideo",this.playVideo);iM(this,"pauseVideo",this.pauseVideo);iM(this,"stopVideo",this.stopVideo);iM(this,"clearVideo",this.clearVideo);
iM(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);iM(this,"getVideoBytesTotal",this.getVideoBytesTotal);iM(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);iM(this,"getVideoStartBytes",this.getVideoStartBytes);iM(this,"cuePlaylist",this.cuePlaylist);iM(this,"loadPlaylist",this.loadPlaylist);iM(this,"nextVideo",this.nextVideo);iM(this,"previousVideo",this.previousVideo);iM(this,"playVideoAt",this.playVideoAt);iM(this,"setShuffle",this.setShuffle);iM(this,"setLoop",this.setLoop);iM(this,
"getPlaylist",this.XR);iM(this,"getPlaylistIndex",this.getPlaylistIndex);iM(this,"getPlaylistId",this.getPlaylistId);iM(this,"loadModule",this.loadModule);iM(this,"unloadModule",this.unloadModule);iM(this,"setOption",this.setOption);iM(this,"getOption",this.getOption);iM(this,"getOptions",this.getOptions);iM(this,"mute",this.mute);iM(this,"unMute",this.unMute);iM(this,"isMuted",this.isMuted);iM(this,"setVolume",this.setVolume);iM(this,"getVolume",this.getVolume);iM(this,"seekTo",this.seekTo);iM(this,
"getPlayerMode",this.getPlayerMode);iM(this,"getPlayerState",this.getPlayerState);iM(this,"getPlaybackRate",this.getPlaybackRate);iM(this,"setPlaybackRate",this.setPlaybackRate);iM(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);iM(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
iM(this,"setPlaybackQuality",this.setPlaybackQuality);iM(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);iM(this,"getCurrentTime",this.getCurrentTime);iM(this,"getDuration",this.getDuration);iM(this,"addEventListener",this.aR);iM(this,"removeEventListener",this.NW);iM(this,"getDebugText",this.getDebugText);iM(this,"getVideoData",function(){return c.qz()});
iM(this,"addCueRange",this.addCueRange);iM(this,"removeCueRange",this.removeCueRange);iM(this,"setSize",this.setSize);iM(this,"getApiInterface",this.getApiInterface);iM(this,"destroy",this.destroy);iM(this,"showVideoInfo",this.showVideoInfo);iM(this,"hideVideoInfo",this.hideVideoInfo);iM(this,"isVideoInfoVisible",this.isVideoInfoVisible);iM(this,"getSphericalProperties",this.getSphericalProperties);iM(this,"setSphericalProperties",this.setSphericalProperties);a=this.app.V();a.D||(iM(this,"getVideoEmbedCode",
this.getVideoEmbedCode),iM(this,"getVideoUrl",this.getVideoUrl));iM(this,"getMediaReferenceTime",this.getMediaReferenceTime);iM(this,"getSize",this.getSize);a.D||iM(this,"logImaAdEvent",this.logImaAdEvent);jM(this,"getInternalApiInterface",this.getInternalApiInterface);jM(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);jM(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);jM(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);jM(this,"getAdState",this.getAdState);jM(this,"sendAbandonmentPing",
this.sendAbandonmentPing);jM(this,"setLoopRange",this.setLoopRange);jM(this,"getLoopRange",this.getLoopRange);jM(this,"setAutonavState",this.setAutonavState);jM(this,"seekToLiveHead",this.seekToLiveHead);jM(this,"seekToStreamTime",this.seekToStreamTime);jM(this,"seekToChapterWithAnimation",this.seekToChapterWithAnimation);jM(this,"startSeekCsiAction",this.startSeekCsiAction);jM(this,"getStreamTimeOffset",this.getStreamTimeOffset);jM(this,"getVideoData",this.qz);jM(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);
jM(this,"downloadVideo",this.downloadVideo);jM(this,"pauseVideoDownload",this.pauseVideoDownload);jM(this,"resumeVideoDownload",this.resumeVideoDownload);jM(this,"refreshAllVideos",this.refreshAllVideos);jM(this,"deleteVideos",this.deleteVideos);jM(this,"deleteAllVideos",this.deleteAllVideos);jM(this,"isOrchestrationLeader",this.isOrchestrationLeader);jM(this,"getAppState",this.getAppState);jM(this,"addInfoCardXml",this.addInfoCardXml);jM(this,"updateLastActiveTime",this.updateLastActiveTime);jM(this,
"setBlackout",this.setBlackout);jM(this,"setAccountLinkState",this.setAccountLinkState);jM(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);jM(this,"setUserEngagement",this.setUserEngagement);jM(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);jM(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);jM(this,"getPresentingPlayerType",this.getPresentingPlayerType);jM(this,"canPlayType",this.canPlayType);jM(this,"updatePlaylist",this.updatePlaylist);jM(this,
"updateVideoData",this.updateVideoData);jM(this,"updateEnvironmentData",this.updateEnvironmentData);jM(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);jM(this,"setCardsVisible",this.setCardsVisible);jM(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);jM(this,"setSafetyMode",this.setSafetyMode);jM(this,"isAtLiveHead",function(d){c.isAtLiveHead(void 0,d)});
jM(this,"getVideoAspectRatio",this.getVideoAspectRatio);jM(this,"getPreferredQuality",this.getPreferredQuality);jM(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);jM(this,"onAdUxClicked",this.onAdUxClicked);jM(this,"getFeedbackProductData",this.getFeedbackProductData);jM(this,"getStoryboardFrame",this.getStoryboardFrame);jM(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);jM(this,"getStoryboardLevel",this.getStoryboardLevel);jM(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
jM(this,"getCaptionWindowContainerId",this.getCaptionWindowContainerId);jM(this,"getAvailableQualityLabels",this.getAvailableQualityLabels);jM(this,"addUtcCueRange",this.addUtcCueRange);jM(this,"showAirplayPicker",this.showAirplayPicker);jM(this,"setAutonav",this.setAutonav);jM(this,"isNotServable",this.isNotServable);jM(this,"channelSubscribed",this.channelSubscribed);jM(this,"channelUnsubscribed",this.channelUnsubscribed);jM(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);jM(this,
"togglePictureInPicture",this.togglePictureInPicture);jM(this,"supportsGaplessAudio",this.supportsGaplessAudio);jM(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
jM(this,"clearQueue",this.clearQueue);jM(this,"isFastLoad",function(){return!1});
jM(this,"getPlayerResponse",this.getPlayerResponse);jM(this,"getAudioTrack",this.LR);jM(this,"setAudioTrack",this.setAudioTrack);jM(this,"getAvailableAudioTracks",this.MR);jM(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);jM(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);jM(this,"getStatsForNerds",this.getStatsForNerds);jM(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);jM(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);jM(this,
"setMinimized",this.setMinimized);jM(this,"confirmYpcRental",this.confirmYpcRental);jM(this,"setInlinePreview",this.setInlinePreview);jM(this,"toggleSubtitlesOn",this.toggleSubtitlesOn);jM(this,"handleExternalCall",this.handleExternalCall);jM(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);jM(this,"setScreenLayer",this.setScreenLayer);jM(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);jM(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);jM(this,
"shouldSendVisibilityState",this.shouldSendVisibilityState);jM(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);jM(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);jM(this,"setGlobalCrop",this.setGlobalCrop);jM(this,"getVisibilityState",this.getVisibilityState);jM(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);jM(this,"setInternalSize",this.setInternalSize)};
iM=function(a,b,c){a.D[b]=function(){var d=g.Ba.apply(0,arguments);a.ma();return c.apply(a,d)};
a.u.hasOwnProperty(b)||jM(a,b,c);a.S.push(b)};
lM=function(a,b,c){a.K[b]=function(){var d=g.Ba.apply(0,arguments);a.ma();return c.apply(a,d)};
a.u.hasOwnProperty(b)||jM(a,b,c);a.S.push(b)};
jM=function(a,b,c){a.u[b]=function(){var d=g.Ba.apply(0,arguments);a.ma();return c.apply(a,d)}};
Mta=function(a){a.B||(a.B={},Object.assign(a.B,a.D),Object.assign(a.B,a.K),a.B.addEventListener=function(b,c){Iva(a,b,c)},a.B.removeEventListener=function(b,c){c="string"===typeof c?b+c:b+String(g.Pa(c));
var d=a.C[c];d&&(a.app.Pl.unsubscribe(b,d),b=a.C,c in b&&delete b[c])});
return a.B};
Iva=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Pa(c));if(!a.C[d]){var e;"string"===typeof c?e=function(){var h=g.Ba.apply(0,arguments);g.Ha(c).apply(window,h)}:e=c;
var f=function(h){e({target:a.B,data:h})};
a.C[d]=f;a.app.Pl.subscribe(b,f)}};
Jva=function(a,b,c){b=g.dg(Math.floor(b),0,100);isFinite(b)&&mM(a.app,{volume:b,muted:a.isMuted()},c)};
Kva=function(a,b){mM(a.app,{muted:!0,volume:a.getVolume()},b)};
Lva=function(a,b){mM(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.oM=function(a){var b=nM(a.app.tb());if(b)return b.xv();a=a.app.tb();a=g.IE(a.J.V())?a.Gd.get("music"):void 0;return a?a.xv():null};
qM=function(a,b){kM.call(this,a,b);var c=this;this.i=!1;lM(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(pM(c,d),e)});
lM(this,"loadVideoByPlayerVars",function(d,e,f,h){c.loadVideoByPlayerVars(pM(c,d),e,f,h)});
lM(this,"preloadVideoByPlayerVars",function(d,e,f,h){return void c.preloadVideoByPlayerVars(pM(c,d),e,f,h)});
lM(this,"seekBy",this.seekBy);lM(this,"mutedAutoplay",this.mutedAutoplay);lM(this,"showControls",this.showControls);lM(this,"hideControls",this.hideControls);lM(this,"cancelPlayback",this.cancelPlayback);lM(this,"getProgressState",this.getProgressState);lM(this,"isInline",this.isInline);lM(this,"setInline",this.setInline);lM(this,"setLoopVideo",this.setLoopVideo);lM(this,"getLoopVideo",this.getLoopVideo);lM(this,"getStoryboardFormat",this.getStoryboardFormat);lM(this,"getVideoContentRect",this.getVideoContentRect);
lM(this,"toggleFullscreen",this.toggleFullscreen);lM(this,"isFullscreen",this.isFullscreen);lM(this,"getVideoStats",this.getVideoStats);lM(this,"getPlayerSize",this.getPlayerSize);lM(this,"toggleSubtitles",this.toggleSubtitles);lM(this,"setCenterCrop",this.setCenterCrop);lM(this,"setFauxFullscreen",this.setFauxFullscreen);lM(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);lM(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);lM(this,"setSizeStyle",this.setSizeStyle);lM(this,"wakeUpControls",this.wakeUpControls)};
pM=function(a,b){var c={};if(a.app.V().K){a=g.r(Mva);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d])}else for(a=g.r(Nva),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
Ova=function(a,b,c){var d=a.app.getIngestionTime(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
g.rM=function(a){qM.call(this,a);this.settingsMenu=null};
sM=function(a){a=a.tb();var b=a.Gd.get("endscreen");return b&&b.Fq()?!0:a.ix()||g.IE(a.J.V())};
g.tM=function(a,b){3===a.getPresentingPlayerType()?a.ea("mdxautoplaycancel"):a.ea("autonavcancel",b)};
g.vM=function(a){var b=uM(a.tb());return a.app.hg&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Hk()||!!a.getPlaylist()};
g.xM=function(a){return(a=g.wM(a.tb()))?a.nz():{}};
g.Pva=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.Qva=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.jb)};
g.yM=function(a,b,c){a=a.eb().element;var d=fc(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.Qg(a,b,d);b.setAttribute("data-layer",String(c))};
g.zM=function(a){var b=a.V();if(!b.Gb)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay"))&&!FG(c);d=c.isLivePlayback&&(!b.N("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.N("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.hasNext();var f=c.watchNextResponse&&c.watchNextResponse.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.D&&f;return!c.ypcPreview&&
(!d||e)&&!g.Qb(c.Aa,"ypc")&&!a&&(!g.xE(b)||f)};
Rva=function(a){a=g.AM(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.i||b.oH)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.B.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.Ca("iqss",d,!0),!0):!1};
BM=function(a){this.Y=a;this.u=this.i=NaN;this.B=g.S(this.Y.experiments,"h5_csi_seek_latency_action_sampling")||1};
CM=function(a,b){this.Y=a;this.timerName="";this.u=!1;this.B=new BM(a);this.i=b||null;this.u=!1};
Sva=function(a,b,c){var d=g.DE(b.u)&&!b.u.D;if(b.u.bh&&(zE(b.u)||dF(b.u)||d)&&!a.u){a.u=!0;g.N("TIMING_ACTION")||Ts("TIMING_ACTION",a.Y.csiPageType);a.Y.csiServiceName&&Ts("CSI_SERVICE_NAME",a.Y.csiServiceName);if(a.i){b=a.i.Dp();d=g.r(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,sA(e,b[e],a.timerName);b=a.i.Uu;d=g.r(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,g.rA(e,b[e],a.timerName);b=a.i;b.i={};b.Uu={}}g.rA("yt_pvis",Ala(),a.timerName);g.rA("yt_pt","html5",a.timerName);
c&&!uA("pbs",a.timerName)&&a.tick("pbs",c);c=a.Y;dF(c)||zE(c)||a.timerName||!uA("_start")||wA()}};
DM=function(a,b){g.Q.call(this);this.u=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.i=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.B=0;if(a=b.session_data)this.sessionData=ct(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 mF("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.nF(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0<this.index&&(this.items=[]);a=g.r(a);for(c=a.next();!c.done;c=a.next())(c=
c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.Z=oF(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
EM=function(a){return!!(a.playlist||a.list||a.api)};
Tva=function(a){var b=a.index+1;return b>=a.length?0:b};
Uva=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.FM=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new RF(a.u,b),g.H(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
GM=function(a,b){a.index=g.dg(b,0,a.length-1);a.startSeconds=0};
HM=function(a,b){if(b.video&&b.video.length){a.title=b.title||"";a.description=b.description;a.views=b.views;a.likes=b.likes;a.dislikes=b.dislikes;a.author=b.author||"";var c=b.loop;c&&(a.loop=c);c=g.FM(a);a.items=[];for(var d=g.r(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;if(b=b.index)a.index=b;else if(c&&(b=c.videoId,!a.items[a.index]||a.items[a.index].video_id!==b))for(c=0;c<a.items.length;c++)if(a.items[c].video_id===b){a.index=
c;break}a.setShuffle(!1);a.loaded=!0;a.B++;a.i&&a.i()}};
g.IM=function(a){var b=a.V(),c=Vva(b),d=a.Za;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=vG(a);"leanback"===f?e="WATCH":b.N("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.rb?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.Tj)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:Wva[e]}});a.ir&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.va)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Hd&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=Xva[b];c.request=d;d=c.user||{};if(b=a.Sa)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.wb)d.delegatePurchases={oauthToken:b},d.kidsParent={oauthToken:b};c.user=d;if(d=a.contextParams)c.activePlayers=[{playerContextParams:d}];if(a=a.clientScreenNonce)c.clientScreenNonce=a;return c};
Vva=function(a){var b=WJ(),c=b.client||{};if(a.Za){var d=a.Za.split(","),e=[];d=g.r(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.deviceParams.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign(Object.assign({},c.tvAppInfo),{livingRoomAppMode:e});if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign(Object.assign({},c.tvAppInfo),{livingRoomPoTokenId:e});
b.client=c;c=b.user||{};a.enableSafetyMode&&(c.enableSafetyMode=!0);b.user=c;if(a=a.Fc)b.thirdParty={embedUrl:a};return b};
bwa=function(a,b,c){var d=a.videoId,e=g.IM(a),f=a.V(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(uv()),referer:document.location.toString(),signatureTimestamp:18942};g.Uv.getInstance();a.Mk&&(h.autonav=!0);g.Vv(0,141)&&(h.autonavState=g.Vv(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.Vv(0,66);yG(a)&&(h.autoplay=!0);f.u&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.Ug;if(l){var m={},n=[];l=l.split(",");
l=g.r(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.r(q);for(var t=q.next();!t.done;t=q.next()){var u=g.r(t.value.split("="));t=u.next().value;u=ka(u);p[t]=u.join("=")}q=p.url;t=p.presetad;u=p.viralresponseurl;var v=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),t&&(m.presetAd=t),u&&(m.viralAdResponseUrl=u),v&&(m.viralCampaignId=String(v));
else if("video_ad"===p.adtype){var y={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=Yva[p.breaktype])y.breakType=p;q&&(y.url=q);t&&(y.presetAd=t);u&&(y.viralAdResponseUrl=u);v&&(y.viralCampaignId=String(v));n.push(y)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.KB;if(null!=m){m={startWalltime:String(m)};if(n=a.bh)m.manifestDuration=String(n||14400);h.liveContext=
m}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.Af&&(h.splay=!0);m=a.vnd;5===m&&(h.vnd=m);m={};if((n=a.isMdxPlayback)||f.N("send_mdx_remote_data_if_present"))m.triggeredByMdx=n;if(n=a.Il)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Ef){n=a.QB;l=[];p=g.r(p.split(","));for(q=p.next();!q.done;q=p.next())if(t=q.value)if((q=t.startsWith("!"))&&(t=t.substr(1)),t=t.split("-"),!(3>t.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:Zva[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:$va[t[0]]||
"UNKNOWN_INTERFACE",clientVersion:t[2]||"",platform:awa[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(n){u=void 0;try{u=JSON.parse(n)}catch(z){g.ky(z)}u&&(t={params:[{key:"ms",value:u.ms}]},q.osName=u.os_name,q.userAgent=u.user_agent,q.windowHeightPoints=u.window_height_points,q.windowWidthPoints=u.window_width_points)}l.push({adSignalsInfo:t,remoteClient:q})}m.remoteContexts=l}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext={mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}});
h.mdxContext=m;m=b.width;0<m&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.xE(f)&&!f.N("embeds_enable_sending_ancestor_origins_killswitch")&&h&&(h.ancestorOrigins=f.ancestorOrigins);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=
e;a.racyCheckOk&&(d.racyCheckOk=!0);e=a.V();if(f=e.embedConfig)d.serializedThirdPartyEmbedConfig=f;d.captionParams={};f=g.Vv(g.Uv.getInstance(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.$E(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.KO&&(d.captionParams.deviceCaptionsLangPref=a.KO);a.wC.length?d.captionParams.viewerSelectedCaptionLangs=a.wC:g.WE(e)&&e.N("web_player_i_see_captions_2")&&(e=g.Zna(),null===e||void 0===e?0:e.length)&&(d.captionParams.viewerSelectedCaptionLangs=
e);e="onesie"===a.fetchType&&a.N("html5_onesie_attach_po_token");f="onesie"!==a.fetchType&&a.N("html5_non_onesie_attach_po_token");if(e||f)a=a.V(),a.fd&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.fd),g.S(a.experiments,"html5_session_po_token_interval_time_ms")||OE(a);return d};
cwa=function(a){return{context:WJ(),videoIds:a}};
fwa=function(a,b){var c,d,e,f,h;return g.A(function(l){if(1==l.i){c=g.ZL();var m=a.V(),n={context:g.IM(a)};m=m.embedConfig;var p,q,t,u,v,y;var z=b.docid||b.video_id||b.videoId||b.id;if(!z){z=b.raw_embedded_player_response;if(!z&&!g.O("parse_video_id_from_serialized_embedded_player_response_killswitch")){var C=b.embedded_player_response;C&&(z=JSON.parse(C))}z=z?(null===(y=null===(v=null===(u=null===(t=null===(q=null===(p=null===z||void 0===z?void 0:z.embedPreview)||void 0===p?void 0:p.thumbnailPreviewRenderer)||
void 0===q?void 0:q.playButton)||void 0===t?void 0:t.buttonRenderer)||void 0===u?void 0:u.navigationEndpoint)||void 0===v?void 0:v.watchEndpoint)||void 0===y?void 0:y.videoId)||null:null}p=(p=z)?p:void 0;q=a.playlistId?a.playlistId:b.list;t=b.listType;if(q){var G;"user_uploads"===t?G={username:q}:G={playlistId:q};dwa(m,p,b,G);n.playlistRequest=G}else b.playlist?(G={templistVideoIds:b.playlist.toString().split(",")},dwa(m,p,b,G),n.playlistRequest=G):p&&(G={videoId:p},m&&(G.serializedThirdPartyEmbedConfig=
m),n.singleVideoRequest=G);d=n;e=g.JL(ewa);return g.x(l,g.bK(c,d,e),2)}f=l.u;h=a.V();b.raw_embedded_player_response=f;return l.return(new RF(h,b))})};
dwa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.KM=function(a,b){JM.get(a);JM.set(a,b)};
g.LM=function(a){g.Q.call(this);this.loaded=!1;this.player=a};
gwa=function(){this.u=[];this.i=[]};
g.MM=function(a,b){return b?a.i.concat(a.u):a.i};
g.NM=function(a,b){switch(b.kind){case "asr":hwa(b,a.u);break;default:hwa(b,a.i)}};
hwa=function(a,b){g.Mb(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)};
g.OM=function(a){g.E.call(this);this.Y=a;this.u=new gwa;this.C=[]};
g.PM=function(a,b,c){g.OM.call(this,a);this.audioTrack=c;this.i=null;this.C=b.wD};
iwa=function(){this.i=this.dg=this.u=!1};
jwa=function(a,b){var c=void 0===b?{}:b;b=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.Ik?!1:c.Ik;var d=new iwa;d.u=a.N("html5_streaming_xhr_no_mp4_holdback_chunk");d.dg=b||c;d.i=a.N("html5_simplify_streaming_xhr");return d};
g.kwa=function(a){this.i=a;this.D=new iwa;this.ul=this.rl=!1;this.dk=2;this.K=20971520;this.X=8388608;this.I=120;this.jb=3145728;this.Ba=62914560;this.rb=10485760;this.fk=g.S(this.i.experiments,"html5_min_readbehind_secs");this.jr=g.S(this.i.experiments,"html5_min_readbehind_cap_secs");this.ir=g.S(this.i.experiments,"html5_max_readbehind_secs");this.Er=this.i.N("html5_trim_future_discontiguous_ranges");this.Ob=NaN;this.Oh=0;this.Ui=this.Pq=2;this.Sg=3;this.Al=2;this.Ka=2097152;this.zl=1048576;this.Wa=
!1;this.Zc=1800;this.Wj=5;this.Aa=15;this.fd=1;this.B=1.15;this.C=1.05;this.hk=!0;this.La=!1;this.Bl=.8;this.ej=this.Eb=!1;this.vb=6;this.Z=this.bb=!1;this.Zb=0;this.bh=this.i.N("html5_stop_overlapping_requests");this.gk=0;this.Xq=this.i.N("html5_append_init_while_paused");this.ek=g.S(this.i.experiments,"html5_max_readahead_bandwidth_cap");this.vl=g.S(this.i.experiments,"html5_post_interrupt_readahead");this.wb=5E3;this.Oq=100;this.cj=6;this.Oe=1;this.Yg=1.6;this.Za=!1;this.oa=.5;this.dc=2;this.ac=
this.zq=0;this.Kq=1.5;this.Lq=this.dh=.5;this.Hd=15;this.Vj=1;this.xp=this.Mf=!1;this.bk=0;this.Ml=this.bq=this.Tj=this.xl=this.jk=!1;this.Db=2;this.Bp=this.Zp=this.Pj=!1;this.ue=0;this.Yh=this.Qq=this.Rg=this.va=this.tq=this.Af=this.Pp=!1;this.hh=this.i.N("html5_unrewrite_timestamps");this.Va=!0;this.Fc=this.Nb=this.wl=this.Sa=!1;this.Rj=!0;this.Ug=!1;this.u="";this.er=1048576;this.qc=[];this.gr=this.i.N("html5_woffle_resume");this.gj=this.Li=this.bd=this.wd=!1;this.xe=46800;this.Qj=this.Xo=this.aj=
this.Yi=this.yl=this.Ah=this.kb=!1;this.S=0;this.bj="";this.Zq=this.i.N("html5_max_drift_per_track_secs")||this.i.N("html5_rewrite_manifestless_for_sync")||this.i.N("html5_check_segnum_discontinuity");this.dr=this.i.N("html5_disable_codec_for_playback_on_error");this.Ni=this.Yt=this.dj=this.Qf=!1;this.Vd=0;this.Cr=yu();this.Yp=this.Uj=!1;this.Yq=this.i.N("html5_skip_buffer_check_seek_to_head");this.fc=!1;this.Dr=this.i.N("html5_enable_server_stitched_alr");this.Br=!this.i.N("html5_reset_media_stream_discontinuity_killswitch");
this.Si=!1;this.ye=8192;this.Ha=this.Gb=!1;this.Wo=1;this.Hr=this.i.N("html5_update_readahead_from_real_byterates");this.Gr=this.i.N("html5_onesie_live");this.Ar=this.i.N("html5_onesie_probe_during_read");this.lr=g.S(this.i.experiments,"html5_onesie_live_ttl_secs")||8};
lwa=function(a,b){1080<b.video.i&&!a.rl&&(a.K=36700160,a.X=5242880,a.jb=10485760,a.Ka=4194304,a.rl=!0);2160<b.video.i&&!a.ul&&(a.K=104857600,a.Ob=13107200,a.ul=!0);b.isEncrypted()&&g.ru()&&ou("kant")&&(a.Ob=1310720);b.Ob&&(a.zl=Math.max(65536,Math.min(a.Ka,5*b.Ob)))};
g.QM=function(a,b){return UC(a.info.mimeType)?b?a.info.jc()===b:!0:!1};
g.mwa=function(a,b){if(null!=a.i&&g.YE(b.V())&&!a.i.isManifestless&&null!=a.i.i.rawcc)return!0;if(!a.tf())return!1;b=!!a.i&&a.i.isManifestless&&Object.values(a.i.i).some(function(c){return g.QM(c,"386")});
a=!!a.i&&!a.i.isManifestless&&qna(a.i);return b||a};
g.RM=function(a,b,c,d,e){g.OM.call(this,a);this.videoId=c;this.WK=e;this.D={};this.i=null;a=d||g.gt(b).hl||"";a=a.split("_").join("-");this.B=it(b,{hl:a})};
SM=function(a,b){g.E.call(this);this.J=a;this.D=b;this.Uu={};this.i={};this.u=null;this.C=new Set;this.Gd=new Map;this.B=a.V().N("web_player_defer_modules")};
g.TM=function(a){return a.Gd.get("captions")};
pwa=function(a,b){switch(b){case "ad":return UM(a);case "annotations_module":return b=a.J.V(),a=a.J.getVideoData(),a.qH||"3"===b.controlsType?!1:b.S.isEmpty()&&"annotation-editor"!==b.playerStyle&&"live-dashboard"!==b.playerStyle?!!a.Va||!!g.tG(a)||!!g.uG(a):!0;case "attribution":return a=a.J.V(),a.N("web_player_show_music_in_this_video")&&"desktop-polymer"===a.playerStyle;case "creatorendscreen":return b=a.J.V(),"3"===b.controlsType?a=!1:"creator-endscreen-editor"===b.playerStyle?a=!0:(a=a.J.getVideoData(),
a=!!a&&(!!g.Oqa(a)||!!g.Pqa(a))),a;case "embed":return g.xE(a.J.V());case "endscreen":return g.nwa(a);case "heartbeat":return a.sG();case "inline_preview":return a.J.V().showInlinePreviewUi;case "kids":return NE(a.J.V());case "remote":return a.J.V().Mf;case "miniplayer":return a.J.V().showMiniplayerUiWhenMinimized;case "music":return g.IE(a.J.V());case "captions":return b=a.J.getVideoData(),!!b.ac||!!b.captionTracks.length||g.mwa(b,a.J);case "unplugged":return g.FE(a.J.V());case "ux":return a.J.V().vb;
case "webgl":return owa(a);case "ypc":return a.ix();case "ypc_clickwrap":return a=a.J.getVideoData(),a.Si&&!a.jH;case "yto":return!!a.J.getVideoData().Aa.includes("yto");default:return g.jy(Error("Module descriptor "+b+" does not match")),!1}};
VM=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.Gd.get(b);if(!h||d)if(e||(e=function(){VM(a,b,c,d)}),f||(f=function(){a.J.Od(b)}),h=h||qwa(a,b,pwa(a,b),e,f))a.Gd.set(b,h),h.create(),c&&a.J.Na("onApiChange")};
rwa=function(a){a.B&&(VM(a,"endscreen"),a.tD(),VM(a,"creatorendscreen",!0))};
g.nwa=function(a){var b=a.J.V();if(dF(b)||b.D||!b.wb&&!b.wd)return!1;var c=a.J.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.N("desktop_enable_autoplay");a=a.J.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.N("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.N("allow_live_autoplay_on_mweb");return!c||b};
g.wM=function(a){return a.Gd.get("webgl")};
owa=function(a){var b=a.J.getVideoData();a=a.J.V();var c=g.wu(),d=a.N("enable_spherical_kabuki"),e=g.cF(a);if(g.sG(b))return c||d||e||a.N("html5_enable_spherical");if(g.pG(b))return e||c||d||a.N("html5_enable_spherical");if(g.qG(b))return e||c||a.N("html5_enable_spherical3d");if(g.rG(b))return e||!1;c=b.B&&b.B.video&&b.B.video.isHdr();return e&&!g.iG(b)&&!c&&(a.N("enable_webgl_noop")||a.N("html5_enable_bicubicsharp"))};
swa=function(a){a.J.V().N("web_player_ux_module_wait")&&a.Gd.get("ux")&&a.J.Od("ux")};
twa=function(a){swa(a);VM(a,"ux",!0)};
UM=function(a){if(a=a.J.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
qwa=function(a,b,c,d,e){try{if(c){var f=JM.get(b);if(f)return new f(a.J);uwa(a,b,d,e)}else a.J.Od(b)}catch(h){a.J.Od(b),g.jy(h)}return null};
WM=function(a,b,c){for(var d=g.r(a.Gd),e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;(f=f.next().value)&&(c||f.Pi(b))&&((0,g.ee)(f),a.Gd.delete(e))}};
XM=function(a){return a.Gd.get("ad")};
YM=function(a){if(NE(a.J.V()))return a.Gd.get("kids")};
uM=function(a){if(a.J.V().Mf)return a.Gd.get("remote")};
g.ZM=function(a){if(g.FE(a.J.V()))return a.Gd.get("unplugged")};
nM=function(a){if(a.J.V().vb)return a.Gd.get("ux")};
g.$M=function(a){return a.Gd.get("annotations_module")};
aN=function(a){return a.Gd.get("creatorendscreen")};
wwa=function(a){var b=a.D.split("/").slice(0,4).join("/")+"/wasm/lib.js";return new Promise(function(c,d){vwa(a,b,function(){var e,f;return g.A(function(h){if(1==h.i)return e=g.B.loadWasm,"function"!==typeof e?(d("noloadwasm"),h.fb(0)):g.x(h,e(),3);f=h.u;c(f);g.sa(h)})},function(){d("player wasm load failure")})})};
uwa=function(a,b,c,d){if(a.D){var e=xwa[b];vwa(a,a.D+e,function(){a.C.add(e);c.call(a)},d)}};
vwa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var h=g.zg("SCRIPT"),l=!1,m,n=0;n<h.length;n++){var p=h[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.Ng("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(y){(0,ch)(f);q&&q.apply(window,[y])};
var t=m.onerror;m.onerror=function(y){if(.01>Math.random()){var z=new g.iw("Unable to load player module",b,document.location&&document.location.origin);g.jy(z)}(0,ch)(e);t&&t(y)};
var u=m,v=u.onreadystatechange;u.onreadystatechange=function(y){switch(u.readyState){case "loaded":case "complete":(0,ch)(f)}v&&v(y)};
l&&((h=a.J.V().cspNonce)&&m.setAttribute("nonce",h),g.Rj(m,g.Ar(b)),h=g.zg("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.he(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
bN=function(a,b,c){g.ie.call(this,b,a);this.i=c};
g.cN=function(a){yJ.call(this);var b=this;this.i=a;this.C={};this.listener=function(c){b.dispatchEvent(new bN(b,c.type,c))}};
eN=function(a,b,c,d,e){g.Q.call(this);var f=this;this.target=a;this.wy=b;this.u=0;this.I=!1;this.C=new g.hg(NaN,NaN);this.i=new g.WC(this);this.Aa=this.B=this.K=null;g.H(this,this.i);b=d||e?4E3:3E3;this.X=new g.I(function(){dN(f,1,!1)},b,this);
g.H(this,this.X);this.Z=new g.I(function(){dN(f,2,!1)},b,this);
g.H(this,this.Z);this.oa=new g.I(function(){dN(f,512,!1)},b,this);
g.H(this,this.oa);this.va=c&&0<c.fd.length?5E3:3E3;d||(this.B=this.i.T(a,"mouseover",this.dA),this.i.T(a,"mousemove",this.gT),this.i.T(a,"mouseleave",this.hT));hm?this.i.T(a,"keypress",this.QS):this.i.T(a,"focusin",this.PR);this.D=this.i.T(a,"mousedown",this.QL);this.S=this.i.T(a,"touchstart",this.mO,void 0,!0);dN(this,640,!0)};
ywa=function(a){dN(a,4,!1);a.K&&(a.i.pc(a.K),a.K=null,a.B=a.i.T(a.target,"mouseover",a.dA));a.B&&(a.i.pc(a.B),a.B=a.i.T(a.target,"mouseover",a.dA))};
dN=function(a,b,c){a.isDisposed();var d=!a.u;c?(a.u|=b,b&1&&a.X.start(),b&2&&a.Z.start()):(a.u&=~b,b&1&&a.X.stop(),b&2&&a.Z.stop(),b&512&&a.oa.stop());a.u&512&&!(a.u&128)&&g.br(a.oa,a.va);b=!a.u;d!==b&&a.ea("autohideupdate",b)};
g.fN=function(a){g.X.call(this,{G:"button",Ga:["ytp-large-play-button","ytp-button"],W:{"aria-label":"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c"},U:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Pa);this.Pa()};
gN=function(a){var b=["ytp-cued-thumbnail-overlay"];a.V().D&&b.push("ytp-exp-contain-thumbnail");g.X.call(this,{G:"div",Ga:b,U:[{G:"div",L:"ytp-cued-thumbnail-overlay-image"}]});b=this.Fa("ytp-cued-thumbnail-overlay");var c=new g.fN(a);g.H(this,c);c.Ea(b);this.B=new g.WC(this);g.H(this,this.B);this.api=a;this.D=this.Fa("ytp-cued-thumbnail-overlay-image");this.C=c;this.u=new g.hL(this,250);g.H(this,this.u);this.i=new g.I(this.Pa,0,this);g.H(this,this.i);this.Pa();this.T(a,"appresize",this.xb);this.T(a,
"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.yW);zE(a.V())&&this.T(a,"videoplayerreset",this.pP)};
zwa=function(a){var b=!a.V().Rg&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.hN=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.wL(a))return g.bv(a),!0;b.pauseVideo();a=e.getAttribute("href");g.GL(a,d,!0);return!1};
g.iN=function(a,b,c){if(UE(b.V())&&2!==b.getPresentingPlayerType()){if(g.wL(c))return b.isFullscreen()&&!b.V().externalFullscreen&&b.toggleFullscreen(),g.bv(c),!0}else if(b.V().N("embeds_enable_webview_nonjs_navigation")&&g.xE(b.V())&&(Du()||Bu()))b=c.target,b instanceof HTMLAnchorElement&&(a=Mj(a),b.href=Pj(a));else{var d=g.wL(c);d&&b.pauseVideo();g.GL(a,void 0,!0);d&&(g.HL(a),g.bv(c))}return!1};
Awa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}],L:"ytp-subtitles-button-icon"}};
jN=function(){return{G:"div",L:"ytp-spinner-container",U:[{G:"div",L:"ytp-spinner-rotator",U:[{G:"div",L:"ytp-spinner-left",U:[{G:"div",L:"ytp-spinner-circle"}]},{G:"div",L:"ytp-spinner-right",U:[{G:"div",L:"ytp-spinner-circle"}]}]}]}};
kN=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
lN=function(a,b,c){a=a.V();return a.N("desktop_player_button_tooltip_with_shortcut")&&!a.Af?g.$H("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.mN=function(a){g.X.call(this,{G:"div",Ga:["ytp-error"],W:{role:"alert"},U:[{G:"div",L:"ytp-error-content",U:[{G:"div",L:"ytp-error-icon-container",U:[{G:"svg",W:{fill:"#fff",viewBox:"0 0 48 48"},U:[{G:"path",W:{d:"M0 0h48v48H0V0z",fill:"none"}},{G:"path",W:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{G:"div",L:"ytp-error-content-wrap",
U:[{G:"div",L:"ytp-error-content-wrap-reason",ya:"{{content}}"},{G:"div",L:"ytp-error-content-wrap-subreason",ya:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.nN=function(a){a=a.split(Bwa);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({G:"br"}),b.push(d[e]);c<a.length&&b.push({G:"a",W:{href:a[c],target:a[c+1]},ya:a[c+2]})}return{G:"span",U:b}};
pN=function(a,b,c,d,e,f,h){d=void 0===d?!1:d;e=void 0===e?!1:e;h=void 0===h?!0:h;e||(e=a.api.V().i);a=a.api.getVideoData();b=g.$H(g.oN[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({G:"h2",ya:f});d.push(b[0]);h&&d.push({G:"br"});d.push({G:"a",W:{href:c,target:e?"_blank":null},ya:b[2]});d.push(b[4]);return{G:"span",U:d}};
Cwa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.T(c[d],"click",b);a.keys.push(e)}};
Dwa=function(a){for(var b=0;b<a.keys.length;b++)a.pc(a.keys[b]);a.keys=[]};
qN=function(a){g.WC.call(this);this.J=a;this.i=new Set;this.mediaSession=navigator.mediaSession;this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Kh);this.onVideoDataChange()};
rN=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.i.add(b)};
Ewa=function(a){rN(a,"play",function(){a.J.playVideo()});
rN(a,"pause",function(){a.J.pauseVideo()});
rN(a,"seekbackward",function(){a.J.seekBy(-5*a.J.getPlaybackRate())});
rN(a,"seekforward",function(){a.J.seekBy(5*a.J.getPlaybackRate())})};
Fwa=function(a){var b,c;a=a.J.getVideoData();a=a.watchNextResponse&&a.watchNextResponse.playerOverlays||null;return null===(c=null===(b=null===a||void 0===a?void 0:a.playerOverlayRenderer)||void 0===b?void 0:b.browserMediaSession)||void 0===c?void 0:c.browserMediaSessionRenderer};
Gwa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.r(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&(!c.width||0>=c.width||!c.height||0>=c.height||g.Yy(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
Hwa=function(a){var b=a.J.zb();b=b.isCued()||b.isError()?"none":g.IJ(b)?"playing":"paused";a.mediaSession.playbackState=b};
sN=function(a){g.X.call(this,{G:"div",L:"ytp-paid-content-overlay",W:{"aria-live":"assertive","aria-atomic":"true"}});this.J=a;this.videoId=null;this.B=!1;this.Ad=this.i=null;var b=a.V();a.N("enable_new_paid_product_placement")&&!g.ZE(b)?(this.u=new g.X({G:"a",L:"ytp-paid-content-overlay-link",W:{href:"{{href}}",target:"_blank"},U:[{G:"div",L:"ytp-paid-content-overlay-icon",ya:"{{icon}}"},{G:"div",L:"ytp-paid-content-overlay-text",ya:"{{text}}"},{G:"div",L:"ytp-paid-content-overlay-chevron",ya:"{{chevron}}"}]}),
this.T(this.u.element,"click",this.onClick)):this.u=new g.X({G:"div",Ga:["ytp-button","ytp-paid-content-overlay-text"],ya:"{{text}}"});this.C=new g.hL(this.u,250,!1,100);g.H(this,this.u);this.u.Ea(this.element);g.H(this,this.C);this.J.Og(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Nc)};
Jwa=function(a,b){var c=Lqa(b),d=jG(b);a.i?b.videoId&&b.videoId!==a.videoId&&(g.dr(a.i),a.videoId=b.videoId,a.B=!!d,a.B&&c&&Iwa(a,d,c,b)):c&&d&&Iwa(a,d,c,b)};
Iwa=function(a,b,c,d){var e,f,h,l;a.i&&a.i.dispose();a.i=new g.I(a.Fb,b,a);g.H(a,a.i);d=null===(f=null===(e=d.getPlayerResponse())||void 0===e?void 0:e.paidContentOverlay)||void 0===f?void 0:f.paidContentOverlayRenderer;b=null===d||void 0===d?void 0:d.navigationEndpoint;d=null===(h=null===d||void 0===d?void 0:d.icon)||void 0===h?void 0:h.iconType;var m=null===(l=null===b||void 0===b?void 0:b.urlEndpoint)||void 0===l?void 0:l.url;a.J.Cm(a.element,(null===b||void 0===b?void 0:b.clickTrackingParams)||
null);a.u.update({href:null!==m&&void 0!==m?m:"#",text:c,icon:"MONEY_HAND"===d?{G:"svg",W:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{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:m?g.EK():null})};
Kwa=function(a,b){a.i&&(g.T(b,8)&&a.B?(a.B=!1,a.zd(),a.i.start()):(g.T(b,2)||g.T(b,64))&&a.videoId&&(a.videoId=null))};
tN=function(a){g.X.call(this,{G:"div",L:"ytp-spinner",U:[jN(),{G:"div",L:"ytp-spinner-message",ya:"\u041f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e. \u0415\u0441\u043b\u0438 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0442\u0430\u043a \u0438 \u043d\u0435 \u043d\u0430\u0447\u043d\u0435\u0442\u0441\u044f, \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e."}]});
this.api=a;this.message=this.Fa("ytp-spinner-message");this.i=new g.I(this.show,500,this);g.H(this,this.i);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.u);a=a.zb();Lwa(a)?this.i.start():this.hide()};
Lwa=function(a){return g.T(a,128)?!1:g.T(a,16)||g.T(a,1)?!0:!1};
g.uN=function(a,b,c,d){d=void 0===d?!1:d;g.zK.call(this,b);var e=this;this.J=a;this.Ba=d;this.K=new g.WC(this);this.X=new g.hL(this,c,!0,void 0,void 0,function(){e.u&&e.element&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),e.focus())});
g.H(this,this.K);g.H(this,this.X)};
Mwa=function(a){a.u&&(document.activeElement&&g.Tg(a.element,document.activeElement)&&(Wg(a.u),a.u.focus()),a.u.removeAttribute("aria-expanded"),a.u=void 0);g.Mx(a.K);a.S=void 0};
vN=function(a,b,c){a.Vf()?a.Fb():a.zd(b,c)};
wN=function(a){var b=g.KD(a.V().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",Ga:["ytp-unmute-icon"],U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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"}}]}]},
{G:"div",Ga:["ytp-unmute-text"],ya:"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",Ga:["ytp-unmute-box"],U:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.uN.call(this,a,{G:"button",Ga:["ytp-unmute","ytp-popup","ytp-button"].concat(c),U:[{G:"div",L:"ytp-unmute-inner",U:d}]},100);this.i=this.clicked=!1;this.api=a;this.api.Jb(this.element,this,51663);this.T(a,"onMutedAutoplayChange",
this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange",this.Kh);this.Qa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.xE(this.api.V());g.yK(this,a);a&&Nwa(this);this.B=a};
Nwa=function(a){a.i||(a.i=!0,a.api.gb(a.element,!0))};
g.yN=function(a){g.WC.call(this);var b=this;this.api=a;this.rG=!1;this.Kk=null;this.Fy=!1;this.ze=null;this.sD=this.lB=!1;this.QG=this.TG=null;this.yL=NaN;this.PG=this.Zu=!1;this.ow=0;this.LC=[];var c=a.V(),d=a.eb();this.gJ=new g.I(this.kF,0,this);g.H(this,this.gJ);g.IE(c)||(this.Wr=new gN(a),g.H(this,this.Wr),g.yM(a,this.Wr.element,4));if(Owa(this)){var e=new tN(a);g.H(this,e);e=e.element;g.yM(a,e,4)}var f=a.getVideoData();this.xd=new eN(d,function(l){return b.wy(l)},f,c.Vd,aF(c));
g.H(this,this.xd);this.xd.subscribe("autohideupdate",this.Bj,this);var h=new sN(a);g.H(this,h);g.yM(a,h.element,4);this.qB=new wN(a);g.H(this,this.qB);g.yM(this.api,this.qB.element,2);this.tE=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.kB=new g.I(this.Kt,200,this);g.H(this,this.kB);this.KE=f.videoId;this.BN=new g.I(function(){b.ow=0},350);
g.H(this,this.BN);this.Hy=new g.I(function(){b.PG||xN(b)},350,this);
g.H(this,this.Hy);f=a.getRootNode();f.setAttribute("aria-label","\u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c YouTube");switch(c.color){case "white":g.L(f,"ytp-color-white")}g.IE(c)&&g.L(f,"ytp-music-player");!a.N("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new qN(a),g.H(this,f));this.T(a,"appresize",this.xb);this.T(a,"presentingplayerstatechange",this.Kh);this.T(a,"videodatachange",this.onVideoDataChange);
this.T(a,"videoplayerreset",this.cV);this.T(a,"autonavvisibility",function(){b.Im()});
this.T(a,"sizestylechange",function(){b.Im()});
this.T(d,"click",this.BV,this);this.T(d,"dblclick",this.CV,this);c.Va&&(this.T(d,"gesturechange",this.EV,this),this.T(d,"gestureend",this.FV,this));this.Yn=[d.Tu];this.Wr&&this.Yn.push(this.Wr.element);e&&this.Yn.push(e)};
zN=function(a,b){if(!b)return!1;var c=a.api.kd();if(c.Uo()&&(c=c.Me())&&g.Tg(c,b))return c.controls;for(c=0;c<a.Yn.length;c++)if(g.Tg(a.Yn[c],b))return!1;return g.ir(b,"ytp-player-content")||g.ir(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
Pwa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.eb().xz||!1)&&a.api.V().isMobile&&AN&&11<=EG;a=a.api.V().C&&AN;return!(!b&&!a)};
BN=function(a,b){return!zN(a,Zu(b))&&g.wL(b)};
xN=function(a){a.xd.Zk();if(a.api.V().N("web_player_touch_mode_improvements")&&a.lB&&a.sD)a.sD=!1;else if(!a.api.V().oa&&!a.Ak()){var b=a.api.zb();g.T(b,2)&&sM(a.api)||a.Gq(b);if(!a.api.V().Va||b.isCued()||g.T(b,1024)){var c=a.api.cB();g.dw("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.T(b,1024);c&&(b.isCued()||d)?(g.dw("embedsRequestStorageAccessState",{isCued:b.isCued(),Oca:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.dw("embedsRequestStorageAccessFailedState",
{state:b.state}),a.Kt())}else a.kB.isActive()?(a.yz(),a.kB.stop()):a.kB.start()}};
Qwa=function(a,b){return g.wL(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.zb(),!g.T(b,4)||g.T(b,8)||g.T(b,2)||a.Kt(),!0):!1};
Rwa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
Owa=function(a){a=pu()&&67<=mu()&&!a.api.V().C;return!ou("tizen")&&!uE&&!a&&!0};
CN=function(a,b){b=void 0===b?2:b;g.Q.call(this);this.api=a;this.i=null;this.Ae=new Kx(this);g.H(this,this.Ae);this.u=Rua;this.Ae.T(this.api,"presentingplayerstatechange",this.Nc);this.i=this.Ae.T(this.api,"progresssync",this.Xb);this.Nj=b;1===this.Nj&&this.Xb()};
DN=function(a){g.X.call(this,{G:"button",Ga:["ytp-button","ytp-back-button"],U:[{G:"div",L:"ytp-arrow-back-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",Pb:!0,W:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.J=a;g.yK(this,a.V().showBackButton);this.Qa("click",this.onClick)};
g.EN=function(a){g.X.call(this,{G:"div",U:[{G:"div",L:"ytp-bezel-text-wrapper",U:[{G:"div",L:"ytp-bezel-text",ya:"{{title}}"}]},{G:"div",L:"ytp-bezel",W:{role:"status","aria-label":"{{label}}"},U:[{G:"div",L:"ytp-bezel-icon",ya:"{{icon}}"}]}]});this.J=a;this.u=new g.I(this.show,10,this);this.i=new g.I(this.hide,500,this);g.H(this,this.u);g.H(this,this.i);this.hide()};
GN=function(a,b,c){if(0>=b){c=MK();b="\u0437\u0432\u0443\u043a \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d";var d=0}else c=c?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{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"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{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+"\u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c";FN(a,c,b,d+"%")};
Swa=function(a,b){b=b?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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.J.getPlaybackRate(),d=g.$H("\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f\u00a0\u2013 $RATE",
{RATE:String(c)});FN(a,b,d,c+"x")};
Twa=function(a,b){b=b?"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b":"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b";FN(a,Awa(),b)};
FN=function(a,b,c,d){d=void 0===d?"":d;a.Ra("label",void 0===c?"":c);aF(a.J.V())?a.Ra("icon",null):a.Ra("icon",b);g.dr(a.i);a.u.start();a.Ra("title",d);g.M(a.element,"ytp-bezel-text-hide",!d)};
IN=function(a,b,c){g.X.call(this,{G:"button",Ga:["ytp-button","ytp-cards-button"],W:{"aria-label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.xE(a.V()))},U:[{G:"span",L:"ytp-cards-button-icon-default",U:[{G:"div",L:"ytp-cards-button-icon",U:[a.V().N("player_new_info_card_format")?oua():{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},
U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},{G:"div",L:"ytp-cards-button-title",ya:"\u041e \u0432\u0438\u0434\u0435\u043e"}]},{G:"span",L:"ytp-cards-button-icon-shopping",U:[{G:"div",L:"ytp-cards-button-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",L:"ytp-svg-shadow",
W:{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"}},{G:"path",L:"ytp-svg-fill",W:{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"}},{G:"path",L:"ytp-svg-shadow-fill",W:{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"}}]}]},{G:"div",
L:"ytp-cards-button-title",ya:"\u041f\u043e\u043a\u0443\u043f\u043a\u0438"}]}]});this.J=a;this.B=b;this.C=c;this.i=null;this.u=new g.hL(this,250,!0,100);g.H(this,this.u);g.M(this.C,"ytp-show-cards-title",g.xE(a.V()));this.hide();this.Qa("click",this.onClicked);this.Qa("mouseover",this.AU);HN(this,!0)};
HN=function(a,b){b?a.i=g.JN(a.B.hc(),a.element):(a.i=a.i,a.i(),a.i=null)};
KN=function(a,b,c){g.X.call(this,{G:"div",L:"ytp-cards-teaser",U:[{G:"div",L:"ytp-cards-teaser-box"},{G:"div",L:"ytp-cards-teaser-text",U:a.V().N("player_new_info_card_format")?[{G:"button",L:"ytp-cards-teaser-info-icon",W:{"aria-label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438","aria-haspopup":"true"},U:[oua()]},{G:"span",L:"ytp-cards-teaser-label",ya:"{{text}}"},{G:"button",L:"ytp-cards-teaser-close-button",W:{"aria-label":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},
U:[g.FK()]}]:[{G:"span",L:"ytp-cards-teaser-label",ya:"{{text}}"}]}]});var d=this;this.J=a;this.X=b;this.ji=c;this.C=new g.hL(this,250,!1,250);this.i=null;this.K=new g.I(this.OU,300,this);this.I=new g.I(this.NU,2E3,this);this.D=[];this.u=null;this.S=new g.I(function(){d.element.style.margin="0"},250);
this.B=null;g.H(this,this.C);g.H(this,this.K);g.H(this,this.I);g.H(this,this.S);a.V().N("player_new_info_card_format")?(g.L(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Fa("ytp-cards-teaser-close-button"),"click",this.Fi),this.T(this.Fa("ytp-cards-teaser-info-icon"),"click",this.GG),this.T(this.Fa("ytp-cards-teaser-label"),"click",this.GG)):this.Qa("click",this.GG);this.T(c.element,"mouseover",this.RH);this.T(c.element,"mouseout",this.QH);this.T(a,"cardsteasershow",this.bW);this.T(a,
"cardsteaserhide",this.Fb);this.T(a,"cardstatechange",this.xO);this.T(a,"presentingplayerstatechange",this.xO);this.T(a,"appresize",this.eH);this.T(a,"onShowControls",this.eH);this.T(a,"onHideControls",this.oR);this.Qa("mouseenter",this.rP)};
MN=function(a){g.X.call(this,{G:"button",Ga:[LN.BUTTON,LN.TITLE_NOTIFICATIONS],W:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},U:[{G:"div",L:LN.TITLE_NOTIFICATIONS_ON,W:{title:"\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435","aria-label":"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430\u0445 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b"},
U:[g.JK()]},{G:"div",L:LN.TITLE_NOTIFICATIONS_OFF,W:{title:"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435","aria-label":"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430\u0445 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b"},
U:[{G:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{G:"path",W:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=a;this.i=!1;a.Jb(this.element,this,36927);this.Qa("click",this.onClick,this);this.Ra("pressed",!1);this.Ra("label","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435")};
Uwa=function(a,b){a.i=b;a.element.classList.toggle(LN.NOTIFICATIONS_ENABLED,a.i);var c=a.api.getVideoData();c?(b=b?c.vC:c.tC)?(a=a.api.Sl())?QL(a,b):g.Zs(Error("No innertube service available when updating notification preferences.")):g.Zs(Error("No update preferences command available.")):g.Zs(Error("No video data when updating notification preferences."))};
g.ON=function(a,b,c,d,e,f,h,l,m,n,p,q,t){t=void 0===t?null:t;f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var u=q.V();if(p){c={href:p,"aria-label":"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u0430\u043d\u0430\u043b"};if(g.DE(u)||g.HE(u))c.target=u.I;g.X.call(this,{G:"div",Ga:["ytp-button","ytp-sb"],U:[{G:"a",L:"ytp-sb-subscribe",W:c,U:[{G:"div",L:"ytp-sb-text",
U:[{G:"div",L:"ytp-sb-icon"},a]},b?{G:"div",L:"ytp-sb-count",ya:b}:""]}]});f&&g.L(this.element,"ytp-sb-classic");this.channelId=h;this.i=t}else{p=u.userDisplayName&&g.DE(u)&&!u.N("subscribe_tooltipkillswitch");g.X.call(this,{G:"div",Ga:["ytp-button","ytp-sb"],U:[{G:"div",L:"ytp-sb-subscribe",W:p?{title:g.$H("\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u0430\u043d\u0430\u043b",
"data-tooltip-image":eF(u),"data-tooltip-opaque":String(g.xE(u)),tabindex:"0",role:"button"}:{"aria-label":"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u0430\u043d\u0430\u043b"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},a]},b?{G:"div",L:"ytp-sb-count",ya:b}:""]},{G:"div",L:"ytp-sb-unsubscribe",W:p?{title:g.$H("\u041f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0430 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435 $USER_NAME",
{USER_NAME:u.userDisplayName}),"aria-label":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0443 \u043d\u0430 \u043a\u0430\u043d\u0430\u043b","data-tooltip-image":eF(u),"data-tooltip-opaque":String(g.xE(u)),tabindex:"0",role:"button"}:{"aria-label":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0443 \u043d\u0430 \u043a\u0430\u043d\u0430\u043b"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},c]},
d?{G:"div",L:"ytp-sb-count",ya:d}:""]}]});var v=this;this.channelId=h;this.i=t;var y=this.Fa("ytp-sb-subscribe"),z=this.Fa("ytp-sb-unsubscribe");f&&g.L(this.element,"ytp-sb-classic");if(e){l?this.u():this.B();var C=function(){var F=v.channelId;if(m||n){var J={c:F};if(q.V().N("embeds_botguard_with_subscribe_killswitch"))J="";else{var U;g.dM.isInitialized()&&(U=xva(J));J=U||""}if(U=q.getVideoData())if(U=U.subscribeCommand){var K=q.Sl();K?(QL(K,U,{botguardResponse:J,feature:m}),q.Na("SUBSCRIBE",F)):
g.Zs(Error("No innertube service available when updating subscriptions."))}else g.Zs(Error("No subscribe command in videoData."));else g.Zs(Error("No video data available when updating subscription."))}z.focus();z.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},G=function(){var F=v.channelId;
if(m||n){var J=q.getVideoData();QL(q.Sl(),J.unsubscribeCommand,{feature:m});q.Na("UNSUBSCRIBE",F)}y.focus();y.removeAttribute("aria-hidden");z.setAttribute("aria-hidden","true")};
this.T(y,"click",C);this.T(z,"click",G);this.T(y,"keypress",function(F){13===F.keyCode&&C(F)});
this.T(z,"keypress",function(F){13===F.keyCode&&G(F)});
this.T(q,"SUBSCRIBE",this.u);this.T(q,"UNSUBSCRIBE",this.B);this.i&&p&&(this.tooltip=this.i.hc(),NN(this.tooltip),g.he(this,g.JN(this.tooltip,y)),g.he(this,g.JN(this.tooltip,z)))}else g.L(y,"ytp-sb-disabled"),g.L(z,"ytp-sb-disabled")}};
PN=function(a,b){g.X.call(this,{G:"div",L:"ytp-title-channel",U:[{G:"div",L:"ytp-title-beacon"},{G:"a",L:"ytp-title-channel-logo",W:{href:"{{channelLink}}",target:a.V().I,"aria-label":"{{channelLogoLabel}}"}},{G:"div",L:"ytp-title-expanded-overlay",W:{"aria-hidden":"{{flyoutUnfocusable}}"},U:[{G:"div",L:"ytp-title-expanded-heading",U:[{G:"h2",L:"ytp-title-expanded-title",U:[{G:"a",ya:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:a.V().I,tabIndex:"{{channelTitleFocusable}}"}}]},{G:"h3",
L:"ytp-title-expanded-subtitle",ya:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.I=b;this.channel=this.Fa("ytp-title-channel");this.i=this.Fa("ytp-title-channel-logo");this.C=this.Fa("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.D=g.xE(this.api.V());a.Jb(this.i,this,36925);this.D&&Vwa(this);this.T(a,"videodatachange",this.Pa);this.T(a,"videoplayerreset",this.Pa);this.Pa();g.xE(this.api.V())&&(this.api.V().N("embeds_web_enable_hiding_login_buttons")||this.api.V().N("embeds_web_enable_always_hiding_login_buttons"))&&
g.L(this.element,"ytp-flyout-fix-experiment")};
Vwa=function(a){var b=a.api.V(),c=a.api.getVideoData();if(!b.Si){var d=b.X?null:Yua(),e=new g.ON("\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f",null,"\u0412\u044b \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u044b",null,!0,!1,c.Xi,c.subscribed,"channel_avatar",null,d,a.api,a.I);a.subscribeButton=e;g.H(a,e);e.Ea(a.C);a.api.Jb(e.element,a,36926);e.hide();a.T(e.element,"click",function(){a.api.Cb(e.element)});
var f=new MN(a.api);a.u=f;g.H(a,f);f.Ea(a.C);f.hide();a.T(a.api,"SUBSCRIBE",function(){c.Oh&&f.show()});
a.T(a.api,"UNSUBSCRIBE",function(){c.Oh&&(f.hide(),Uwa(f,!1))})}a.Ra("flyoutUnfocusable","true");
a.Ra("channelTitleFocusable","-1");b.isMobile?a.T(a.i,"click",function(h){Wwa(a)&&(h.preventDefault(),a.isExpanded()?a.mD():a.ID());a.api.Cb(a.i)}):(a.T(a.channel,"mouseenter",a.ID),a.T(a.channel,"mouseleave",a.mD),a.T(a.channel,"focusin",a.ID),a.T(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.mD()}),a.T(a.i,"click",function(){a.api.Cb(a.i)}));
a.B=new g.I(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.gb(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.gb(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.H(a,a.B);a.T(a.channel,Xwa,function(){Ywa(a)});
a.T(a.api,"onHideControls",a.cG);a.T(a.api,"appresize",a.cG);a.T(a.api,"fullscreentoggled",a.cG)};
Ywa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
Wwa=function(a){var b=a.api.getPlayerSize();return a.D&&524<=b.width};
g.RN=function(a,b,c,d){g.zK.call(this,a);this.priority=b;c&&g.QN(this,c);d&&this.md(d)};
g.SN=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{G:c?"a":"div",Ga:b,W:a,U:[{G:"div",L:"ytp-menuitem-icon",ya:"{{icon}}"},{G:"div",L:"ytp-menuitem-label",ya:"{{label}}"},{G:"div",L:"ytp-menuitem-content",ya:"{{content}}"}]}};
TN=function(a,b){a.Ra("icon",b)};
g.QN=function(a,b){a.Ra("label",b)};
UN=function(a,b,c,d,e,f){var h={G:"div",L:"ytp-panel"};if(c){var l="ytp-panel-title";var m={G:"div",L:"ytp-panel-header",U:[{G:"button",Ga:["ytp-button",l],U:[c]}]};if(e){var n="ytp-panel-options";m.U.unshift({G:"button",Ga:["ytp-button",n],U:[d]})}h.U=[m]}d=!1;f&&(f={G:"div",L:"ytp-panel-footer",U:[f]},d=!0,h.U?h.U.push(f):h.U=[f]);g.zK.call(this,h);this.content=b;d&&h.U?b.Ea(this.element,h.U.length-1):b.Ea(this.element);this.QK=!1;this.AS=d;c&&(c=this.Fa(l),this.T(c,"click",this.ST),this.QK=!0,
e&&(n=this.Fa(n),this.T(n,"click",e)));b.subscribe("size-change",this.lM,this);this.T(a,"fullscreentoggled",this.lM)};
g.VN=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.zK({G:"div",L:"ytp-panel-menu",W:h});UN.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.H(this,this.menuItems)};
g.WN=function(a){for(var b=g.r(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.zF,a);a.items=[];g.Pg(a.menuItems.element);a.menuItems.ea("size-change")};
Zwa=function(a,b){return b.priority-a.priority};
XN=function(a){var b=g.SN({"aria-haspopup":"true"});g.RN.call(this,b,a);this.Qa("keydown",this.i)};
YN=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
ZN=function(a,b){g.RN.call(this,g.SN({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Qa("click",this.onClick)};
$N=function(a,b,c,d){var e;g.VN.call(this,a);this.J=a;this.Ab=c;this.wc=d;this.getVideoUrl=new XN(6);this.pj=new XN(5);this.lj=new XN(4);this.Kb=new XN(3);this.Ww=new g.RN(g.SN({href:"{{href}}",target:this.J.V().I},void 0,!0),2,"\u0420\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0441 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c");this.Ur=new g.zK({G:"div",Ga:["ytp-copytext","ytp-no-contextmenu"],W:{draggable:"false",
tabindex:"1"},ya:"{{text}}"});this.IJ=new UN(this.J,this.Ur);this.Mn=null;this.J.V().bj&&(this.Bi=new ZN("\u041f\u043e\u0432\u0442\u043e\u0440",7),g.H(this,this.Bi),this.Gc(this.Bi,!0),this.Bi.Qa("click",this.HU,this),a.Jb(this.Bi.element,this.Bi,28661));g.H(this,this.getVideoUrl);this.Gc(this.getVideoUrl,!0);this.getVideoUrl.Qa("click",this.xU,this);a.Jb(this.getVideoUrl.element,this.getVideoUrl,28659);g.H(this,this.pj);this.Gc(this.pj,!0);this.pj.Qa("click",this.yU,this);a.Jb(this.pj.element,this.pj,
28660);g.H(this,this.lj);this.Gc(this.lj,!0);this.lj.Qa("click",this.wU,this);a.Jb(this.lj.element,this.lj,28658);g.H(this,this.Kb);this.Gc(this.Kb,!0);this.Kb.Qa("click",this.vU,this);g.H(this,this.Ww);this.Gc(this.Ww,!0);this.Ww.Qa("click",this.wV,this);b=new g.RN(g.SN(),1,"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0434\u043b\u044f \u0441\u0438\u0441\u0430\u0434\u043c\u0438\u043d\u043e\u0432");g.H(this,b);this.Gc(b,!0);b.Qa("click",this.PV,this);g.H(this,this.Ur);this.Ur.Qa("click",
this.kU,this);g.H(this,this.IJ);c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.lj&&g.sc(43)&&(c=!0);g.mj&&!g.sc(41)&&(c=!1);c&&(this.Mn=new g.X({G:"textarea",L:"ytp-html5-clipboard",W:{readonly:""}}),g.H(this,this.Mn),this.Mn.Ea(this.element));null===(e=this.Bi)||void 0===e?void 0:TN(e,{G:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});TN(this.Kb,
{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
fill:"white","fill-rule":"evenodd"}}]});TN(this.Ww,{G:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
fill:"white","fill-rule":"evenodd"}}]});TN(b,nua());this.T(a,"loopchange",this.wM);this.T(a,"videodatachange",this.onVideoDataChange);$wa(this);axa(this,this.J.getVideoData())};
bO=function(a,b){var c=!1;if(a.Mn){var d=a.Mn.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Ab.Fb():(a.Ur.md(b,"text"),g.aO(a.Ab,a.IJ),kN(a.Ur.element),a.Mn&&(a.Mn=null,$wa(a)));return c};
axa=function(a,b){var c,d=a.J.V(),e=2===a.J.getPresentingPlayerType(),f=!e||b.isListed;f=!d.K&&!!b.videoId&&f;"play"!==d.playerStyle?d="https://support.google.com/youtube/?p=report_playback":(d={contact_type:"playbackissue",html5:1,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.B&&(d.fmt=b.B.jc()),b.clientPlaybackNonce&&(d.cpn=b.clientPlaybackNonce),b.Ka&&(d.partnerid=b.Ka),d=g.Ei("//support.google.com/googleplay/",d));g.yK(a.lj,f&&b.allowEmbed);g.yK(a.getVideoUrl,f);g.yK(a.pj,f&&!b.isLivePlayback);
a.Ww.md(d,"href");null===(c=a.Bi)||void 0===c?void 0:g.yK(c,!b.isLivePlayback&&!e)};
$wa=function(a){var b=!!a.Mn;g.QN(a.Kb,b?"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u043e\u0442\u043b\u0430\u0434\u043a\u0435");YN(a.Kb,!b);g.QN(a.lj,b?"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c HTML-\u043a\u043e\u0434":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u044f");
YN(a.lj,!b);g.QN(a.getVideoUrl,b?"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e");YN(a.getVideoUrl,!b);g.QN(a.pj,b?"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438");
YN(a.pj,!b);TN(a.lj,b?lua():null);TN(a.getVideoUrl,b?HK():null);TN(a.pj,b?HK():null)};
g.cO=function(a,b){g.uN.call(this,a,{G:"div",Ga:["ytp-popup",b||""]},100,!0);this.i=[];this.I=this.C=null;this.Sx=this.maxWidth=0;this.size=new g.jg(0,0);this.Qa("keydown",this.sP)};
bxa=function(a){var b=a.i[a.i.length-1];if(b){g.tm(a.element,a.maxWidth||"100%",a.Sx||"100%");g.fm(b.element,"minWidth","250px");g.fm(b.element,"width","");g.fm(b.element,"height","");g.fm(b.element,"maxWidth","100%");g.fm(b.element,"maxHeight","100%");g.fm(b.content.element,"height","");var c=g.um(b.element);c.width+=1;c.height+=1;g.fm(b.element,"width",c.width+"px");g.fm(b.element,"height",c.height+"px");g.fm(b.element,"maxWidth","");g.fm(b.element,"maxHeight","");var d=0;b.QK&&(d=b.Fa("ytp-panel-header"),
d=g.um(d).height);var e=0;b.AS&&(e=b.Fa("ytp-panel-footer"),g.fm(e,"width",c.width+"px"),e=g.um(e).height);g.fm(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0<d.offsetWidth-d.clientWidth&&0<e&&(c.width+=e,g.fm(b.element,"width",c.width+"px")));a.size=c}};
g.aO=function(a,b){var c=a.i[a.i.length-1];a.i.push(b);dO(a,c,b)};
g.eO=function(a){if(!(1>=a.i.length)){var b=a.i.pop(),c=a.i[0];a.i=[c];dO(a,b,c,!0)}};
dO=function(a,b,c,d){cxa(a);b&&(b.unsubscribe("size-change",a.Rt,a),b.unsubscribe("back",a.oh,a));c.subscribe("size-change",a.Rt,a);c.subscribe("back",a.oh,a);if(a.yb){g.L(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ea(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;bxa(a);g.tm(a.element,e);a.C=new g.I(function(){dxa(a,b,c,d)},20,a);
a.C.start()}else c.Ea(a.element),b&&b.detach()};
dxa=function(a,b,c,d){a.C.dispose();a.C=null;g.L(a.element,"ytp-popup-animating");d?(g.L(b.element,"ytp-panel-animate-forward"),g.kr(c.element,"ytp-panel-animate-back")):(g.L(b.element,"ytp-panel-animate-back"),g.kr(c.element,"ytp-panel-animate-forward"));g.tm(a.element,a.size);a.I=new g.I(function(){g.kr(a.element,"ytp-popup-animating");b.detach();g.lr(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.I.dispose();a.I=null},250,a);
a.I.start()};
cxa=function(a){a.C&&g.cr(a.C);a.I&&g.cr(a.I)};
g.fO=function(a,b,c){g.cO.call(this,a);this.Aa=b;this.wc=c;this.B=new g.WC(this);this.Z=new g.I(this.hW,1E3,this);this.va=this.D=null;g.H(this,this.B);g.H(this,this.Z);a.Jb(this.element,this,28656);g.L(this.element,"ytp-contextmenu");exa(this);this.hide()};
exa=function(a){g.Mx(a.B);if("gvn"!==a.J.V().playerStyle){var b=a.J.eb();a.B.T(b,"contextmenu",a.hU);a.B.T(b,"touchstart",a.uP,null,!0);a.B.T(b,"touchmove",a.TM,null,!0);a.B.T(b,"touchend",a.TM,null,!0)}};
fxa=function(a){a.J.isFullscreen()?g.yM(a.J,a.element,9):a.Ea(document.body)};
g.gO=function(a,b,c){c=void 0===c?240:c;g.X.call(this,{G:"button",Ga:["ytp-button","ytp-copylink-button"],W:{title:"{{title-attr}}","data-tooltip-opaque":String(g.xE(a.V()))},U:[{G:"div",L:"ytp-copylink-icon",ya:"{{icon}}"},{G:"div",L:"ytp-copylink-title",ya:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443",W:{"aria-hidden":"true"}}]});this.api=a;this.i=b;this.u=c;this.visible=!1;this.tooltip=this.i.hc();b=a.V();NN(this.tooltip);g.M(this.element,"ytp-show-copylink-title",
g.xE(b)&&!g.IE(b));a.Jb(this.element,this,86570);this.Qa("click",this.onClick);this.T(a,"videodatachange",this.Pa);this.T(a,"videoplayerreset",this.Pa);this.T(a,"appresize",this.Pa);this.Pa();g.he(this,g.JN(this.tooltip,this.element))};
gxa=function(a){a.Ra("icon",CK());if(a.api.V().isMobile)hO(a.tooltip,a.element,"\u0421\u0441\u044b\u043b\u043a\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430");else{a.Ra("title-attr","\u0421\u0441\u044b\u043b\u043a\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430");iO(a.tooltip);hO(a.tooltip,a.element);
var b=a.Qa("mouseleave",function(){a.pc(b);a.Pa();a.tooltip.jj()})}};
hxa=function(a,b){return g.A(function(c){if(1==c.i)return ta(c,2),g.x(c,navigator.clipboard.writeText(b),4);if(2!=c.i)return c.return(!0);va(c);var d=c.return,e=!1,f=g.Ng("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(Au){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f);return d.call(c,
e)})};
jO=function(){g.X.call(this,{G:"div",L:"ytp-doubletap-ui",U:[{G:"div",Ga:["ytp-seek-info-container","ytp-seek-static-circle"],U:[{G:"div",L:"ytp-seek-arrows-container",U:[{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"}]},{G:"div",L:"ytp-seek-tooltip",U:[{G:"div",L:"ytp-chapter-seek-text",ya:"{{chapterSeekText}}"},{G:"div",L:"ytp-seek-tooltip-label",ya:"{{seekTime}}"}]}]}]});this.u=new g.I(this.show,10,this);this.i=new g.I(this.hide,700,this);
g.H(this,this.u);g.H(this,this.i);this.hide()};
kO=function(a){g.X.call(this,{G:"div",L:"ytp-doubletap-ui-legacy",U:[{G:"div",L:"ytp-doubletap-fast-forward-ve"},{G:"div",L:"ytp-doubletap-rewind-ve"},{G:"div",L:"ytp-doubletap-static-circle",U:[{G:"div",L:"ytp-doubletap-ripple"}]},{G:"div",L:"ytp-doubletap-overlay-a11y"},{G:"div",L:"ytp-doubletap-seek-info-container",U:[{G:"div",L:"ytp-doubletap-arrows-container",U:[{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"}]},{G:"div",
L:"ytp-doubletap-tooltip",U:[{G:"div",L:"ytp-chapter-seek-text-legacy",ya:"{{seekText}}"},{G:"div",L:"ytp-doubletap-tooltip-label",ya:"{{seekTime}}"}]}]}]});this.J=a;this.B=new g.I(this.show,10,this);this.u=new g.I(this.hide,700,this);this.i=this.Fa("ytp-doubletap-static-circle");g.H(this,this.B);g.H(this,this.u);this.hide();this.C=this.Fa("ytp-doubletap-fast-forward-ve");this.D=this.Fa("ytp-doubletap-rewind-ve");this.J.Jb(this.C,this,28240);this.J.Jb(this.D,this,28239);this.J.gb(this.C,!0);this.J.gb(this.D,
!0)};
ixa=function(a,b){b=g.$H("$TOTAL_SEEK_TIME \u0441\u0435\u043a.",{TOTAL_SEEK_TIME:b.toString()});a.Ra("seekTime",b)};
lO=function(a){var b=null;try{b=a.toLocaleString("ru",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
mO=function(a,b){var c=0;a=g.r(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
jxa=function(a,b){b=mO(a,b)+1;return b<a.length?b:-1};
kxa=function(a,b){return mO(a,b)-1};
g.oO=function(a,b,c,d,e,f,h){g.WC.call(this);var l=this;this.api=a;this.contextMenu=c;this.xd=d;this.wc=e;this.i=f;this.C=h;this.B=new g.I(function(){lxa(l,!1)},1E3);
this.u="";g.H(this,this.B);this.T(b,"mousedown",function(){nO(l,!1)});
this.T(c.element,"mousedown",function(){nO(l,!1)});
this.T(b,"keydown",this.JK);this.T(c.element,"keydown",this.JK);this.T(b,"keyup",this.KK);this.T(c.element,"keyup",this.KK)};
nO=function(a,b){g.M(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.M(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
qO=function(a,b,c,d){var e=g.TM(a.api.tb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.pO.length;h++){var l=g.pO[h];if(l.option===b){e=l.options;break}}h=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(h=l);if(d)if(c){if(0===h)return}else if(h===e.length-1)return;d={};d[b]=e[(h+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);lxa(a,!0);a.B.start()}};
mxa=function(a,b){a.api.sf();if(g.T(a.api.zb(),4)){var c=a.api.getVideoData().B;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
lxa=function(a,b){g.TM(a.api.tb())&&a.api.setOption("captions","sampleSubtitles",b)};
rO=function(a,b,c){g.X.call(this,{G:"button",Ga:["ytp-button","ytp-overflow-button"],W:{title:"\u0414\u0440\u0443\u0433\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b","aria-haspopup":"true","aria-owns":c.element.id},U:[{G:"div",L:"ytp-overflow-icon",U:[{G:"svg",W:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},U:[{G:"path",W:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",
fill:"#fff"}}]}]}]});var d=this;this.J=a;this.i=b;this.visible=!1;this.tooltip=this.i.hc();a.Jb(this.element,this,16499);this.T(a,"appresize",this.Pa);this.T(a,"fullscreentoggled",this.Pa);this.T(a,"presentingplayerstatechange",this.Pa);this.Pa();g.he(this,g.JN(this.tooltip,this.element));this.Qa("click",function(){a.Cb(d.element);vN(c,d.element,!1)})};
sO=function(a,b){g.uN.call(this,a,{G:"div",L:"ytp-overflow-panel",W:{id:uK(),role:"dialog"},U:[{G:"div",L:"ytp-overflow-panel-content",U:[{G:"div",L:"ytp-overflow-panel-action-buttons",ya:"{{buttons}}"}]},{G:"button",Ga:["ytp-overflow-panel-close","ytp-button"],W:{title:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},U:[g.FK()]}]},250);this.actionButtons=[];this.tooltip=b.hc();this.i=this.Fa("ytp-overflow-panel-content");this.closeButton=this.Fa("ytp-overflow-panel-close");this.T(this.closeButton,"click",
this.Fb);g.he(this,g.JN(this.tooltip,this.closeButton));this.Qa("click",this.vP);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
tO=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.Ra("buttons",a.actionButtons))};
nxa=function(a,b){a=g.r(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Yb(b)};
uO=function(a,b,c){var d=g.FM(b,c),e=a.V(),f=d.Ie("default.jpg");g.X.call(this,{G:"a",Ga:["ytp-video-menu-item","ytp-button"],W:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},U:[{G:"div",L:"ytp-video-menu-item-index",ya:String(c+1)},{G:"div",L:"ytp-video-menu-item-now-playing",ya:"\u25b6"},{G:"div",L:"ytp-video-menu-item-thumbnail",W:{style:f?"background-image: url("+f+");":void 0}},{G:"div",L:"ytp-video-menu-item-title",ya:d.title},{G:"div",
L:"ytp-video-menu-item-author",ya:d.author}]});this.api=a;this.index=c;this.Qa("click",this.onClick)};
vO=function(a){g.uN.call(this,a,{G:"div",L:"ytp-playlist-menu",W:{role:"dialog",id:uK()},U:[{G:"div",L:"ytp-playlist-menu-header",U:[{G:"div",L:"ytp-playlist-menu-title",U:[{G:"a",L:"ytp-playlist-menu-title-name",W:{href:"{{playlisturl}}"},ya:"{{title}}"},{G:"button",Ga:["ytp-playlist-menu-close","ytp-button"],W:{"aria-label":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},U:[g.FK()]}]},{G:"div",L:"ytp-playlist-menu-subtitle",ya:"{{subtitle}}"}]},{G:"div",L:"ytp-playlist-menu-items",W:{role:"menu"}}]},
250);this.api=a;this.selected=this.C=this.playlist=null;this.items=this.Fa("ytp-playlist-menu-items");this.B=new g.WC(this);this.i=[];a=this.Fa("ytp-playlist-menu-close");this.T(a,"click",this.Fb);a=this.Fa("ytp-playlist-menu-title-name");this.T(a,"click",this.gW);g.H(this,this.B);this.hide()};
wO=function(a,b,c){g.X.call(this,{G:"button",Ga:["ytp-playlist-menu-button","ytp-button"],W:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"\u041f\u043b\u0435\u0439\u043b\u0438\u0441\u0442"},U:[{G:"div",L:"ytp-playlist-menu-button-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{G:"div",L:"ytp-playlist-menu-button-text",ya:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.hc();a.Jb(this.element,this,70344);this.T(a,"videodatachange",this.i);this.T(a,"onPlaylistUpdate",this.i);this.T(a,"presentingplayerstatechange",this.Pa);this.T(a,"appresize",this.Pa);this.hide();this.i();g.he(this,g.JN(this.tooltip,this.element));this.Qa("click",function(){a.Cb(d.element);vN(c,d.element,!1)})};
xO=function(a,b,c){g.X.call(this,{G:"div",L:"ytp-promotooltip-wrapper",U:[{G:"div",L:"ytp-promotooltip-container",U:[{G:"div",L:"ytp-promotooltip-content",U:[{G:"div",L:"ytp-promotooltip-title",ya:"{{title}}"},{G:"div",L:"ytp-promotooltip-details",ya:"{{details}}"}]},{G:"div",L:"ytp-promotooltip-buttons",U:[{G:"div",L:"ytp-promotooltip-dismiss-button",ya:"{{dismissButtonText}}",W:{tabindex:"0"}},{G:"div",L:"ytp-promotooltip-accept-button",ya:"{{acceptButtonText}}",W:{tabindex:"0","aria-haspopup":"true"}}]}]},
{G:"div",L:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.K=b;this.J=c;this.i=this.B=null;this.title=this.Fa("ytp-promotooltip-title");this.details=this.Fa("ytp-promotooltip-details");this.acceptButton=this.Fa("ytp-promotooltip-accept-button");this.dismissButton=this.Fa("ytp-promotooltip-dismiss-button");this.I=this.D=this.u=this.C=!1;g.yK(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.u=!!a)this.J.Og(this.element,this,!0),this.J.Cm(this.element,a);this.T(c,"onShowControls",
this.YB);this.T(c,"onHideControls",this.jU);this.T(c,"resize",this.xb);this.T(this.acceptButton,"click",this.rT);this.T(this.dismissButton,"click",this.pU);this.T(document,"click",this.wP)};
oxa=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
yO=function(a){g.yK(a,!1);a.u&&a.J.gb(a.element,a.yb)};
zO=function(a,b){var c,d,e=a.tooltipRenderer.promoConfig;if(e){switch(b){case 0:if(null===(c=e.impressionEndpoints)||void 0===c?0:c.length)var f=e.impressionEndpoints[0];break;case 1:f=e.acceptCommand;break;case 2:f=e.dismissCommand}if(null===(d=null===f||void 0===f?void 0:f.feedbackEndpoint)||void 0===d?0:d.feedbackToken)b={feedbackTokens:[f.feedbackEndpoint.feedbackToken]},a=a.J.Sl(),(null===a||void 0===a?0:$ua(f,a.B))&&QL(a,f,b)}};
pxa=function(a){var b,c,d,e,f,h,l,m,n,p,q=(null===(e=null===(d=null===(c=null===(b=a.acceptButton)||void 0===b?void 0:b.buttonRenderer)||void 0===c?void 0:c.text)||void 0===d?void 0:d.runs)||void 0===e?void 0:e.length)&&!(null===(f=a.acceptButton)||void 0===f||!f.buttonRenderer.text.runs[0].text),t=(null===(n=null===(m=null===(l=null===(h=a.dismissButton)||void 0===h?void 0:h.buttonRenderer)||void 0===l?void 0:l.text)||void 0===m?void 0:m.runs)||void 0===n?void 0:n.length)&&!(null===(p=a.dismissButton)||
void 0===p||!p.buttonRenderer.text.runs[0].text);return q||t};
AO=function(a,b){g.X.call(this,{G:"button",Ga:["ytp-replay-button","ytp-button"],W:{title:"\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c"},U:[g.KK()]});this.J=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.Qa("click",this.onClick,this);a=a.zb();g.yK(this,g.T(a,2));g.JN(b.hc(),this.element)};
g.BO=function(a,b,c,d){d=void 0===d?240:d;g.X.call(this,{G:"button",Ga:["ytp-button","ytp-share-button"],W:{title:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.xE(a.V()))},U:[{G:"div",L:"ytp-share-icon",ya:"{{icon}}"},{G:"div",L:"ytp-share-title",ya:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f"}]});this.api=a;this.i=b;this.B=c;this.u=d;this.visible=!1;this.tooltip=this.i.hc();b=a.V();a.Jb(this.element,
this,28664);this.Qa("click",this.onClick);this.T(a,"videodatachange",this.Pa);this.T(a,"videoplayerreset",this.Pa);this.T(a,"appresize",this.Pa);this.T(a,"presentingplayerstatechange",this.Pa);this.Pa();g.M(this.element,"ytp-show-share-title",g.xE(b)&&!g.IE(b));g.he(this,g.JN(this.tooltip,this.element))};
qxa=function(a){"InvalidStateError"!==a.name&&g.jy(a)};
g.CO=function(a,b){var c=uK(),d=a.V();c={G:"div",L:"ytp-share-panel",W:{id:uK(),role:"dialog","aria-labelledby":c},U:[{G:"div",L:"ytp-share-panel-inner-content",U:[{G:"div",L:"ytp-share-panel-title",W:{id:c},ya:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f"},{G:"a",Ga:["ytp-share-panel-link","ytp-no-contextmenu"],W:{href:"{{link}}",target:d.I,title:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0441\u044b\u043b\u043a\u043e\u0439","aria-label":"{{shareLinkWithUrl}}"},
ya:"{{linkText}}"},{G:"label",L:"ytp-share-panel-include-playlist",U:[{G:"input",L:"ytp-share-panel-include-playlist-checkbox",W:{type:"checkbox",checked:!0}},"\u0412 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u0430"]},{G:"div",L:"ytp-share-panel-loading-spinner",U:[jN()]},{G:"div",L:"ytp-share-panel-service-buttons",ya:"{{buttons}}"},{G:"div",L:"ytp-share-panel-error",ya:"\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435."}]},
{G:"button",Ga:["ytp-share-panel-close","ytp-button"],W:{title:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},U:[g.FK()]}]};g.uN.call(this,a,c,250);this.api=a;this.tooltip=b.hc();this.i=[];this.D=this.Fa("ytp-share-panel-inner-content");this.closeButton=this.Fa("ytp-share-panel-close");this.T(this.closeButton,"click",this.Fb);g.he(this,g.JN(this.tooltip,this.closeButton));this.C=this.Fa("ytp-share-panel-include-playlist-checkbox");this.T(this.C,"click",this.Pa);this.B=this.Fa("ytp-share-panel-link");
g.he(this,g.JN(this.tooltip,this.B));this.Qa("click",this.xP);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.WS);this.hide()};
sxa=function(a,b){rxa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Km:e.Km},f++){e.Km=c[f];a:switch(e.Km.img||e.Km.iconId){case "facebook":var h={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{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={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{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.X({G:"a",Ga:["ytp-share-panel-service-button","ytp-button"],W:{href:e.Km.url,target:"_blank",title:e.Km.sname||e.Km.serviceName},U:[h]}),h.Qa("click",function(m){return function(n){if(g.wL(n)){var p=m.Km.url;var q=void 0===q?{}:q;q.target=q.target||"YouTube";q.width=q.width||"600";q.height=q.height||"600";q||(q={});var t=window;var u=p instanceof g.Cf?p:g.Hf("undefined"!=typeof p.href?p.href:String(p));var v=void 0!==self.Bca,y="strict-origin-when-cross-origin";
window.Request&&(y=(new Request("/")).referrerPolicy);y="unsafe-url"===y;if(v&&q.noreferrer){if(y)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");q.noreferrer=!1}p=q.target||p.target;v=[];for(var z in q)switch(z){case "width":case "height":case "top":case "left":v.push(z+"="+q[z]);break;case "target":case "noopener":case "noreferrer":break;default:v.push(z+"="+(q[z]?1:0))}z=v.join(",");Hb()&&t.navigator&&t.navigator.standalone&&
p&&"_self"!=p?(z=g.Ng("A"),g.ag(z,u),z.setAttribute("target",p),q.noreferrer&&z.setAttribute("rel","noreferrer"),q=document.createEvent("MouseEvent"),q.initMouseEvent("click",!0,!0,t,1),z.dispatchEvent(q),t={}):q.noreferrer?(t=bg("",t,p,z),q=g.Df(u),t&&(g.bF&&-1!=q.indexOf(";")&&(q="'"+q.replace(/'/g,"%27")+"'"),t.opener=null,q=g.Yf(g.tf("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.og(q)+'">'),(u=t.document)&&
u.write&&(u.write(g.Uf(q)),u.close()))):(t=bg(u,t,p,z))&&q.noopener&&(t.opener=null);if(q=t)q.opener||(q.opener=window),q.focus();g.bv(n)}}}(e)),g.he(h,g.JN(a.tooltip,h.element)),a.i.push(h),d++)}var l=b.more||b.moreLink;
b=new g.X({G:"a",Ga:["ytp-share-panel-service-button","ytp-button"],U:[{G:"span",L:"ytp-share-panel-service-button-more",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{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"}}]}]}],W:{href:l,target:"_blank",title:"\u0415\u0449\u0451"}});b.Qa("click",function(m){g.iN(l,a.api,m)&&a.api.Na("SHARE_CLICKED")});
g.he(b,g.JN(a.tooltip,b.element));a.i.push(b);a.Ra("buttons",a.i)};
rxa=function(a){for(var b=g.r(a.i),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),(0,g.ee)(c);a.i=[]};
FO=function(a,b,c){c=void 0===c?!0:c;g.X.call(this,{G:"div",L:"ytp-suggested-action"});var d=this;this.J=a;this.bb=b;this.Sa=this.K=this.i=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.Za=!0;this.Ka=new g.I(function(){d.badge.element.style.width=""},200,this);
this.Z=new g.I(function(){DO(d);EO(d)},200,this);
this.dismissButton=new g.X({G:"button",Ga:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.H(this,this.dismissButton);this.I=new g.X({G:"div",L:"ytp-suggested-action-badge-expanded-content-container",U:[{G:"label",L:"ytp-suggested-action-badge-title",ya:"{{badgeLabel}}"},this.dismissButton]});g.H(this,this.I);this.badge=new g.X({G:"button",Ga:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],U:[c?{G:"div",L:"ytp-suggested-action-badge-icon"}:
"",this.I]});g.H(this,this.badge);this.badge.Ea(this.element);this.S=new g.hL(this.badge,250,!1,100);g.H(this,this.S);this.Aa=new g.hL(this.I,250,!1,100);g.H(this,this.Aa);this.La=new g.Yq(this.mX,null,this);g.H(this,this.La);this.va=new g.Yq(this.HR,null,this);g.H(this,this.va);g.H(this,this.Ka);g.H(this,this.Z);this.J.Og(this.badge.element,this.badge,!0);this.J.Og(this.dismissButton.element,this.dismissButton,!0);this.T(this.J,"onHideControls",function(){d.i=!1;EO(d);DO(d);d.Th()});
this.T(this.J,"onShowControls",function(){d.i=!0;EO(d);DO(d);d.Th()});
this.T(this.badge.element,"click",this.lF);this.T(this.dismissButton.element,"click",this.mF);this.T(this.J,"pageTransition",this.yP);this.T(this.J,"appresize",this.Th);this.T(this.J,"fullscreentoggled",this.tU);this.T(this.J,"cardstatechange",this.VT);this.T(this.J,"annotationvisibility",this.KX,this);this.T(this.J,"offlineslatestatechange",this.LX,this)};
DO=function(a){g.M(a.badge.element,"ytp-suggested-action-badge-with-controls",a.i||!a.u)};
EO=function(a,b){var c=a.K||a.i||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.La.stop(),a.va.stop(),a.Ka.stop(),a.La.start()):(g.yK(a.I,a.expanded),g.M(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),txa(a))};
txa=function(a){a.C&&a.J.gb(a.badge.element,a.kx());a.D&&a.J.gb(a.dismissButton.element,a.kx()&&(a.K||a.i||!a.u))};
uxa=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.Va?a.Va:"")};
vxa=function(a,b){b?a.D&&a.J.Cb(a.dismissButton.element):a.C&&a.J.Cb(a.badge.element)};
GO=function(a,b){FO.call(this,a,b);var c=this;this.X=this.Ba=this.Ha=!1;this.T(this.J,g.cz("shopping_overlay_visible"),function(){c.Ee(!0)});
this.T(this.J,g.dz("shopping_overlay_visible"),function(){c.Ee(!1)});
this.T(this.J,g.cz("shopping_overlay_expanded"),function(){c.K=!0;EO(c)});
this.T(this.J,g.dz("shopping_overlay_expanded"),function(){c.K=!1;EO(c)});
this.T(this.J,"changeProductsInVideoVisibility",this.fV);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,"paidcontentoverlayvisibilitychange",this.XU)};
HO=function(a){a.J.Xe("shopping_overlay_visible");a.J.Xe("shopping_overlay_expanded")};
IO=function(a){g.uN.call(this,a,{G:"button",Ga:["ytp-skip-intro-button","ytp-popup","ytp-button"],U:[{G:"div",L:"ytp-skip-intro-button-text",ya:"\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0437\u0430\u0441\u0442\u0430\u0432\u043a\u0443"}]},100);var b=this;this.D=!1;this.C=new g.I(function(){b.hide()},5E3);
this.i=this.B=NaN;g.H(this,this.C);this.va=function(){b.show()};
this.Z=function(){b.hide()};
this.I=function(){var c=b.J.getCurrentTime();c>b.B/1E3&&c<b.i/1E3&&b.show()};
this.T(this.J,"videodatachange",function(c,d){b.Fs(c,d)});
this.T(this.element,"click",function(){b.J.seekTo(b.i/1E3)});
this.hide()};
JO=function(a,b){g.X.call(this,{G:"button",Ga:["ytp-airplay-button","ytp-button"],W:{title:"AirPlay"},ya:"{{icon}}"});this.J=a;this.Qa("click",this.onClick);this.T(a,"airplayactivechange",this.Pa);this.T(a,"airplayavailabilitychange",this.Pa);this.Pa();g.he(this,g.JN(b.hc(),this.element))};
KO=function(a,b){g.X.call(this,{G:"button",Ga:["ytp-button"],W:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},U:[{G:"div",L:"ytp-autonav-toggle-button-container",U:[{G:"div",L:"ytp-autonav-toggle-button",W:{"aria-checked":"true"}}]}]});this.J=a;this.u=[];this.i=!1;this.isChecked=!0;a.Jb(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.Au);this.Qa("click",this.onClick);this.tooltip=b.hc();g.he(this,g.JN(b.hc(),this.element));this.Au()};
wxa=function(a){a.setValue(a.isChecked);var b=a.isChecked?"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e":"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u043e";a.Ra("title",b);a.Ra("label",b);iO(a.tooltip)};
g.MO=function(a){g.X.call(this,{G:"div",L:"ytp-gradient-bottom"});this.i=g.Ng("CANVAS");this.ctx=this.i.getContext("2d");this.B=NaN;this.i.width=1;this.u=g.IE(a.V());g.LO(this,a.eb().getPlayerSize().height)};
g.LO=function(a,b){if(a.ctx){b=Math.floor(b*(a.u?1:.4));b=Math.max(b,47);var c=b+2;if(a.B!==c){a.B=c;a.i.height=c;a.ctx.clearRect(0,0,1,c);var d=a.ctx.createLinearGradient(0,2,0,2+b);if(a.u)d.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),d.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),d.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var e=b-42;d.addColorStop(0,"rgba(0, 0, 0, 0)");d.addColorStop(e/b,"rgba(0, 0, 0, 0.3)");d.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.ctx.fillStyle=d;a.ctx.fillRect(0,2,1,b);a.element.style.height=
c+"px";try{a.element.style.backgroundImage="url("+a.i.toDataURL()+")"}catch(f){}}}};
NO=function(a,b,c){g.X.call(this,{G:"div",L:"ytp-chapter-container",U:[{G:"button",Ga:["ytp-chapter-title","ytp-button"],U:[{G:"span",W:{"aria-hidden":"true"},L:"ytp-chapter-title-prefix",ya:"\u2022"},{G:"div",L:"ytp-chapter-title-content",ya:"{{title}}",W:{title:"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u044d\u043f\u0438\u0437\u043e\u0434\u043e\u0432","aria-label":"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u044d\u043f\u0438\u0437\u043e\u0434\u043e\u0432"}},
{G:"div",L:"ytp-chapter-title-chevron",U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.J=a;this.K=c;this.C="";this.currentIndex=0;this.B=void 0;this.i=!0;this.D=this.Fa("ytp-chapter-container");this.u=this.Fa("ytp-chapter-title");this.I=this.Fa("ytp-chapter-title-content");this.updateVideoData("newdata",this.J.getVideoData());this.T(a,"videodatachange",this.updateVideoData);
this.T(this.D,"click",this.onClick);this.T(a,g.cz("chapterCueRange"),this.Xb);this.T(a,"innertubeCommand",this.onClickCommand);g.xE(this.J.V())||g.he(this,g.JN(b.hc(),this.I))};
OO=function(a,b,c,d,e){var f=b.bA/b.rows,h=Math.min(c/(b.cA/b.columns),d/f),l=b.cA*h,m=b.bA*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,q=-b.column*n,t=-b.row*p;e&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+t+"px/"+l+"px "+m+"px"};
g.PO=function(a){g.X.call(this,{G:"div",L:"ytp-storyboard-framepreview",U:[{G:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Fa("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.WC(this);this.i=new g.hL(this,100);g.H(this,this.events);g.H(this,this.i);this.T(this.api,"presentingplayerstatechange",this.Nc)};
QO=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.T(a.api,"videodatachange",function(){QO(a,a.api.og())}),a.events.T(a.api,"progresssync",a.rd),a.events.T(a.api,"appresize",a.D)),a.B=NaN,RO(a),a.i.show(200)):(c&&g.Mx(a.events),a.i.hide(),a.i.stop())};
RO=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.eb().getPlayerSize(),e=IF(b,d.width);c=NF(b,e,c);c!==a.B&&(a.B=c,bqa(b,c,d.width),b=KF(b,c,d.width),OO(a.C,b,d.width,d.height))};
SO=function(a,b){g.X.call(this,{G:"button",Ga:["ytp-fullerscreen-edu-button","ytp-button"],U:[{G:"div",Ga:["ytp-fullerscreen-edu-text"],ya:"\u041f\u0440\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u0435 \u044d\u043a\u0440\u0430\u043d \u0432\u043d\u0438\u0437, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e"},{G:"div",Ga:["ytp-fullerscreen-edu-chevron"],
U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Ta=a;this.B=b;this.i=new g.hL(this,250,void 0,100);this.C=this.u=!1;a.Jb(this.element,this,61214);this.B=b;g.H(this,this.i);this.T(a,"fullscreentoggled",this.Pa);this.T(a,"presentingplayerstatechange",this.Pa);this.Qa("click",this.onClick);this.Pa()};
g.TO=function(a,b){g.X.call(this,{G:"button",Ga:["ytp-fullscreen-button","ytp-button"],W:{title:"{{title}}","aria-label":"{{label}}"},ya:"{{icon}}"});this.J=a;this.u=b;this.message=null;this.i=g.JN(this.u.hc(),this.element);this.B=new g.I(this.jR,2E3,this);g.H(this,this.B);this.T(a,"fullscreentoggled",this.Oi);this.T(a,"presentingplayerstatechange",this.Pa);this.Qa("click",this.onClick);g.Gx()&&(b=this.J.eb(),this.T(b,Uja(),this.uF),this.T(b,Jx(document),this.mm));a.V().Va||a.V().C||this.disable();
a.Jb(this.element,this,139117);this.Pa();this.Oi(a.isFullscreen())};
UO=function(a,b){g.X.call(this,{G:"button",Ga:["ytp-miniplayer-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},U:[rua()]});this.J=a;this.visible=!1;this.Qa("click",this.onClick);this.T(a,"fullscreentoggled",this.Pa);this.Ra("title",lN(a,"\u041c\u0438\u043d\u0438-\u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c","i"));g.he(this,g.JN(b.hc(),this.element));a.Jb(this.element,this,62946);this.Pa()};
VO=function(a,b,c){g.X.call(this,{G:"button",Ga:["ytp-multicam-button","ytp-button"],W:{title:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0430\u043a\u0443\u0440\u0441","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});var d=this;this.J=a;this.i=!1;this.u=new g.I(this.B,400,this);this.tooltip=b.hc();NN(this.tooltip);g.H(this,this.u);this.Qa("click",function(){vN(c,d.element,!1)});
this.T(a,"presentingplayerstatechange",function(){d.Pa(!1)});
this.T(a,"videodatachange",this.onVideoDataChange);this.Pa(!0);g.he(this,g.JN(this.tooltip,this.element))};
WO=function(a){g.uN.call(this,a,{G:"div",L:"ytp-multicam-menu",W:{role:"dialog"},U:[{G:"div",L:"ytp-multicam-menu-header",U:[{G:"div",L:"ytp-multicam-menu-title",U:["\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0430\u043a\u0443\u0440\u0441",{G:"button",Ga:["ytp-multicam-menu-close","ytp-button"],W:{"aria-label":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},U:[g.FK()]}]}]},{G:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.WC(this);this.items=this.Fa("ytp-multicam-menu-items");
this.i=[];g.H(this,this.B);a=this.Fa("ytp-multicam-menu-close");this.T(a,"click",this.Fb);this.hide()};
XO=function(){g.E.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.Yq(this.i,null,this);g.H(this,this.delay)};
xxa=function(a,b){if("path"===b.G)return b.W.d;if(b.U)for(var c=0;c<b.U.length;c++){var d=b.U[c];if(d&&"string"!==typeof d&&(d=xxa(a,d)))return d}};
Axa=function(a,b,c){c=xxa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=uK();b=b.getElementsByTagName("use");for(var h=0;h<b.length;h++)b[h].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=yxa(e),m=yxa(c);YO(a,function(n){d.setAttribute("d",zxa(l,m,n))},200)};
YO=function(a,b,c){a.u=b;a.startTime=(0,g.P)();a.duration=c;a.i()};
yxa=function(a){var b=[];a=a.match(Bxa);for(var c=0;c<a.length;c++){var d=" "===a[c]?NaN:Number(a[c]);b.push(isNaN(d)?a[c]:d)}return b};
zxa=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d="number"===typeof f?d+(f+(b[e]-f)*c):d+f}return d};
g.ZO=function(a,b){g.X.call(this,{G:"button",Ga:["ytp-mute-button","ytp-button"],W:a.V().Z?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},ya:"{{icon}}"});this.J=a;this.i=null;this.C=this.S=this.D=this.Z=NaN;this.va=this.I=null;this.B=[];this.u=[];this.visible=!1;this.K=null;var c=this.J.V();this.Ra("icon",MK());this.tooltip=b.hc();this.i=new g.vK({G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"defs",U:[{G:"clipPath",W:{id:"ytp-svg-volume-animation-mask"},
U:[{G:"path",W:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",W:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"path",L:"ytp-svg-volume-animation-mover",W:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{G:"clipPath",W:{id:"ytp-svg-volume-animation-slash-mask"},U:[{G:"path",L:"ytp-svg-volume-animation-mover",W:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{G:"path",Pb:!0,Ga:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],W:{"clip-path":"url(#ytp-svg-volume-animation-mask)",
d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{G:"path",Pb:!0,Ga:["ytp-svg-fill","ytp-svg-volume-animation-hider"],W:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.H(this,this.i);this.I=this.i.Fa("ytp-svg-volume-animation-speaker");this.va=this.I.getAttribute("d");this.B=g.Bg("ytp-svg-volume-animation-mover",this.i.element);
this.u=g.Bg("ytp-svg-volume-animation-hider",this.i.element);this.Aa=new XO;g.H(this,this.Aa);this.X=new XO;g.H(this,this.X);this.Qa("click",this.PU);this.T(a,"appresize",this.TH);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.Z)g.he(this,g.JN(b.hc(),this.element));else{var e="\u0412 \u0432\u0430\u0448\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c \u0437\u0432\u0443\u043a\u0430. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK".split(/\$(BEGIN|END)_LINK/);
d=new g.uN(a,{G:"span",Ga:["ytp-popup","ytp-generic-popup"],W:{tabindex:"0"},U:[e[0],{G:"a",W:{href:"https://support.google.com/youtube/?p=noaudio",target:c.I},ya:e[2]},e[4]]},100,!0);g.H(this,d);d.hide();d.subscribe("show",function(f){b.ds(d,f)});
g.yM(a,d.element,4)}this.message=d;a.Jb(this.element,this,28662);this.TH(a.eb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
Exa=function(a,b){a.Z=b;var c=a.va;b&&(c+=zxa(Cxa,Dxa,b));a.I.setAttribute("d",c)};
Fxa=function(a,b){a.S=b;for(var c=20*b,d=0;d<a.B.length;d++)a.B[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=MK():e=a.i;for(c=0;c<a.u.length;c++)if(d=a.u[c],null===d||void 0===d?0:d.style)d.style.display=0===b?"none":"";e!==a.K&&(a.Ra("icon",e),a.K=e)};
$O=function(a,b){g.X.call(this,{G:"button",Ga:["ytp-pip-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},U:[rua()]});this.J=a;this.Ra("title","\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435");this.Qa("click",this.onClick);g.he(this,g.JN(b.hc(),this.element))};
g.aP=function(a,b,c){g.X.call(this,{G:"button",Ga:["ytp-play-button","ytp-button"],W:{title:"{{title}}","aria-label":"{{label}}"},ya:"{{icon}}"});this.J=a;this.i=null;this.transition=new XO;this.tooltip=b.hc();g.H(this,this.transition);this.u=!!c;a.Jb(this.element,this,36842);a.gb(this.element,!0);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"videodatachange",this.onVideoDataChange);Gxa(this,a.zb());this.Qa("click",this.Kt,
this);g.he(this,g.JN(b.hc(),this.element))};
Hxa=function(a){switch(a){case 1:return sua();case 2:return qua();case 3:return g.KK();case 4:return uua();default:return null}};
Gxa=function(a,b){var c=g.nG(a.J.getVideoData()),d=!1;g.IJ(b)?b=c?4:2:g.T(b,2)?(b=3,d=c):b=1;a.element.disabled=d;if(a.i!==b){c=null;switch(b){case 2:c=lN(a.J,"\u041f\u0430\u0443\u0437\u0430","k");break;case 3:c="\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c";break;case 1:c=lN(a.J,"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c","k");break;case 4:c="\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u044f\u043c\u0443\u044e \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044e"}3===
b?a.update({title:c,label:null,icon:Hxa(b)}):(a.update({title:c,label:c}),(c=Hxa(b))&&a.i&&3!==a.i?Axa(a.transition,a.element,c):a.Ra("icon",c));iO(a.tooltip);a.i=b}};
g.cP=function(a,b,c){g.X.call(this,{G:"a",Ga:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],W:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},U:[c?IK():tua()]});var d=this;this.J=a;this.i=c;this.playlist=this.videoData=null;this.isLinkable=!1;this.C=this.D=this.u=null;this.B=!1;this.tooltip=b.hc();c?a.Jb(this.element,this,6193):
a.Jb(this.element,this,6194);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onPlaylistUpdate",this.onVideoDataChange);this.i||this.T(a,"appresize",this.ZB);this.T(a,"mdxpreviousnextchange",function(){bP(d);d.ZB()});
this.onVideoDataChange()};
Ixa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
Jxa=function(a){return!!a.playlist&&!a.i&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.J.getCurrentTime()&&2!==a.J.getPresentingPlayerType()};
Kxa=function(a){var b=uM(a.J.tb());return b?a.i?b.hasNext():b.Hk():!1};
bP=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.vM(a.J)&&(!a.i||c);var d=a.i&&g.zM(a.J),e=Kxa(a),f=a.i&&5===a.J.getPresentingPlayerType(),h=lN(a.J,"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435","SHIFT+n"),l=lN(a.J,"\u041d\u0430\u0437\u0430\u0434","SHIFT+p");if(f)b.title="\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e";else if(a.B)b.title="\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c";
else if(c){var m=null;a.playlist&&(m=g.FM(a.playlist,a.i?Tva(a.playlist):Uva(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;b.url=a.J.V().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.vL(m.lengthSeconds):null;b.preview=m.Ie("mqdefault.jpg")}b.title=a.i?h:l}else d&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(l=a.videoData.suggestions[0],b.url=l.Gk(),b.text=l.title,b.duration=l.lengthText?l.lengthText:
l.lengthSeconds?g.vL(l.lengthSeconds):null,b.preview=l.Ie("mqdefault.jpg")),b.title=h);b.disabled=!d&&!c&&!e&&!f;a.update(b);a.isLinkable=!!b.url;d||c||a.B||e||f?a.u||(a.u=g.JN(a.tooltip,a.element),a.D=a.Qa("click",a.onClick,a)):a.u&&(a.u(),a.u=null,a.pc(a.D),a.D=null);iO(a.tooltip)};
dP=function(a){if(a&&a.simpleText)return a.simpleText;var b="";if(a&&a.runs)for(var c=0;c<a.runs.length;c++)a.runs[c].text&&(b+=a.runs[c].text);return b};
Lxa=function(a){g.X.call(this,{G:"div",L:"ytp-fine-scrubbing"});this.api=a;this.u=!1;this.i=null;this.thumbnails=[];this.i=this.api.og()};
Mxa=function(){g.X.call(this,{G:"div",L:"ytp-fine-scrubbing-thumbnail"})};
Nxa=function(a){g.X.call(this,{G:"div",L:"ytp-heat-map-chapter",U:[{G:"svg",L:"ytp-heat-map-svg",W:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},U:[{G:"defs",U:[{G:"clipPath",W:{id:"{{id}}"},U:[{G:"path",L:"ytp-heat-map-path",W:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{G:"rect",L:"ytp-heat-map-graph",W:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",L:"ytp-heat-map-hover",W:{"clip-path":"url(#hm_1)",
height:"100%",x:"0",y:"0"}},{G:"rect",L:"ytp-heat-map-play",W:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.I=this.Fa("ytp-heat-map-svg");this.D=this.Fa("ytp-heat-map-path");this.C=this.Fa("ytp-heat-map-graph");this.B=this.Fa("ytp-heat-map-play");this.u=this.Fa("ytp-heat-map-hover");this.isValid=!1;this.i=60};
Pxa=function(a,b,c,d){d=void 0===d?!1:d;b=new Oxa(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.i:b.i),y:a.y+.2*((void 0===d?0:d)?-1*b.u:b.u)}};
Oxa=function(a,b){this.u=this.i=0;this.i=b.x-a.x;this.u=b.y-a.y};
eP=function(){g.X.call(this,{G:"div",L:"ytp-chapter-hover-container",U:[{G:"div",L:"ytp-progress-bar-padding"},{G:"div",L:"ytp-progress-list",U:[{G:"div",Ga:["ytp-play-progress","ytp-swatch-background-color"]},{G:"div",L:"ytp-progress-linear-live-buffer"},{G:"div",L:"ytp-load-progress"},{G:"div",L:"ytp-hover-progress"},{G:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.Fa("ytp-progress-linear-live-buffer");this.B=this.Fa("ytp-ad-progress-list");
this.D=this.Fa("ytp-load-progress");this.I=this.Fa("ytp-play-progress");this.u=this.Fa("ytp-hover-progress");this.i=this.Fa("ytp-chapter-hover-container")};
fP=function(a,b){g.fm(a.i,"width",b)};
gP=function(a,b){g.fm(a.i,"margin-right",b+"px")};
hP=function(a,b){return"PLAY_PROGRESS"===b?a.I:"LOAD_PROGRESS"===b?a.D:"LIVE_BUFFER"===b?a.C:a.u};
Qxa=function(){this.B=this.position=this.C=this.i=this.D=this.u=this.width=NaN};
Rxa=function(){g.X.call(this,{G:"div",L:"ytp-timed-marker"});this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.jP=function(a,b){g.zK.call(this,{G:"div",L:"ytp-progress-bar-container",W:{"aria-disabled":"true"},U:[{G:"div",Ga:["ytp-heat-map-container"],U:[{G:"div",L:"ytp-heat-map-edu"}]},{G:"div",Ga:["ytp-progress-bar"],W:{tabindex:"0",role:"slider","aria-label":"\u041f\u043e\u043b\u0437\u0443\u043d\u043e\u043a \u043f\u043e\u0438\u0441\u043a\u0430","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},U:[{G:"div",L:"ytp-chapters-container"},
{G:"div",L:"ytp-marker-crenellation-list"},{G:"div",L:"ytp-timed-markers-container"},{G:"div",L:"ytp-clip-start-exclude"},{G:"div",L:"ytp-clip-end-exclude"},{G:"div",L:"ytp-scrubber-container",U:[{G:"div",Ga:["ytp-scrubber-button","ytp-swatch-background-color"],U:[{G:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{G:"div",Ga:["ytp-fine-scrubbing-container"]},{G:"div",L:"ytp-bound-time-left",ya:"{{boundTimeLeft}}"},{G:"div",L:"ytp-bound-time-right",ya:"{{boundTimeRight}}"},{G:"div",L:"ytp-clip-start",
W:{title:"{{clipstarttitle}}"},ya:"{{clipstarticon}}"},{G:"div",L:"ytp-clip-end",W:{title:"{{clipendtitle}}"},ya:"{{clipendicon}}"}]});this.api=a;this.fd=!1;this.C=this.ye=0;this.Va=1;this.Fc=this.I=0;this.K=null;this.Aa=this.Gb=0;this.Hd=this.Fa("ytp-marker-crenellation-list");this.La={};this.Db={};this.clipEnd=Infinity;this.jb=this.Fa("ytp-clip-end");this.ac=new g.Qx(this.jb,!0);this.wd=this.Fa("ytp-clip-end-exclude");this.Mf=this.Fa("ytp-clip-start-exclude");this.clipStart=0;this.rb=this.Fa("ytp-clip-start");
this.dc=new g.Qx(this.rb,!0);this.X=this.Za=0;this.Hc=this.Fa("ytp-progress-bar");this.Eb={};this.Zb=this.Fa("ytp-chapters-container");this.Af=this.Fa("ytp-timed-markers-container");this.i=[];this.Ba=[];this.Oe={};this.Wa=-1;this.bb=this.Ha=0;this.S=null;this.Zc=this.Fa("ytp-scrubber-button");this.Qf=this.Fa("ytp-scrubber-container");this.wb=new g.hg;this.ue=new Qxa;this.u=new zL(0,0);this.Sb=null;this.B=this.Nb=!1;this.xe=null;this.fc=this.Fa("ytp-fine-scrubbing-container");this.Z=this.Fa("ytp-heat-map-container");
this.Vd=this.Fa("ytp-heat-map-edu");this.D=[];this.qc=this.Ka=!1;this.heatMarkersDecorations=[];this.vb=!1;this.va=void 0;this.tooltip=b.hc();g.he(this,g.JN(this.tooltip,this.jb));g.H(this,this.ac);this.ac.subscribe("hoverstart",this.iM,this);this.ac.subscribe("hoverend",this.hM,this);this.T(this.jb,"click",this.NA);g.he(this,g.JN(this.tooltip,this.rb));g.H(this,this.dc);this.dc.subscribe("hoverstart",this.iM,this);this.dc.subscribe("hoverend",this.hM,this);this.T(this.rb,"click",this.NA);Sxa(this);
this.T(a,"resize",this.xb);this.T(a,"presentingplayerstatechange",this.AP);this.T(a,"videodatachange",this.Fs);this.T(a,"videoplayerreset",this.jS);this.T(a,"cuerangesadded",this.AO);this.T(a,"cuerangesremoved",this.OW);this.T(a,"cuerangemarkersupdated",this.AO);this.T(a,"onLoopRangeChange",this.UH);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.cz("timedMarkerCueRange"),this.fW);this.updateVideoData(a.getVideoData(),!0);this.UH(a.getLoopRange());iP(this)&&!this.va&&(this.va=new Lxa(this.api),
this.va.Ea(this.fc),g.H(this,this.va));this.api.Jb(this.Z,this,139609);this.api.Jb(this.Vd,this,140127)};
Sxa=function(a){if(0===a.i.length){var b=new eP;a.i.push(b);g.H(a,b);b.Ea(a.Zb,0)}for(;1<a.i.length;)a.i.pop().dispose();fP(a.i[0],"100%");a.i[0].startTime=0;a.i[0].title=""};
Txa=function(a){for(;a.Ba.length;)a.Ba.pop().dispose()};
Uxa=function(a){for(var b=a.i,c=[],d=0;d<b.length;d++)if(!isNaN(b[d].startTime)){var e=b[d].startTime;e=new g.az(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.Xe("chapterCueRange");a.api.Dd(c)};
lP=function(a,b){var c,d,e,f,h,l,m=null===(c=a.Eb[b])||void 0===c?void 0:c.chapters;m&&(Vxa(a,m),a.api.getVideoData().wl=a.i,Uxa(a));if((m=null===(d=a.Eb[b])||void 0===d?void 0:d.markers)&&"HEATSEEKER"!==b){var n,p,q;Txa(a);m=g.r(m);for(var t=m.next();!t.done;t=m.next()){var u=t.value;t=new Rxa;if(u=u.markerRenderer)t.title=(null===(n=u.title)||void 0===n?void 0:n.simpleText)||"",t.timeRangeStartMillis=null!==(p=u.timeRangeStartMillis)&&void 0!==p?p:NaN,t.onActiveCommand=null!==(q=null===u||void 0===
u?void 0:u.onActiveCommand)&&void 0!==q?q:void 0,a.Ba.push(t),g.H(a,t),t.Ea(a.Af,a.Af.children.length)}Wxa(a,a.Ba);n=a.Ba;p=a.Oe;q=[];for(m=0;m<n.length;m++)!isNaN(n[m].timeRangeStartMillis)&&n[m].onActiveCommand&&(t=n[m].timeRangeStartMillis,t=new g.az(t,m===n.length-1?Infinity:n[m+1].timeRangeStartMillis,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+t}),q.push(t),p[t.id]=n[m].onActiveCommand);a.api.Dd(q)}if(b=null===(f=null===(e=a.Eb[b])||void 0===e?void 0:e.heatmap)||void 0===f?void 0:f.heatmapRenderer){n=
b.heatMarkers||[];p=null!==(h=b.minHeightDp)&&void 0!==h?h:0;q=null!==(l=b.maxHeightDp)&&void 0!==l?l:60;var v,y;m=a.i.length;t=null;for(u=0;u<m;u++){var z=a.i[u].startTime,C=u===m-1?Infinity:a.i[u+1].startTime;if(u===a.D.length){var G=void 0,F=a;G=void 0===G?NaN:G;var J=new Nxa(F.api);F.D.push(J);g.H(F,J);J.Ea(F.Z);var U=J;F="hm_"+F.D.length;U.update({id:F});F="url(#"+F+")";U.C.setAttribute("clip-path",F);U.B.setAttribute("clip-path",F);U.u.setAttribute("clip-path",F);0<=G&&(J.element.style.width=
G+"px")}G=[];t&&G.push(t);J=g.r(n);for(U=J.next();!U.done;U=J.next())U=U.value,F=null!==(y=null===(v=null===U||void 0===U?void 0:U.heatMarkerRenderer)||void 0===v?void 0:v.timeRangeStartMillis)&&void 0!==y?y:-1,F>=z&&F<=C&&G.push(U);0<q&&(a.Z.style.height=q+"px");z=a.D[u];U=0===u;U=void 0===U?!1:U;C=z;0<q&&(C.i=q,C.I.style.height=C.i+"px");C=void 0;J=z;U=void 0===U?!1:U;F=1E3/G.length;var K=[];K.push({x:0,y:100});for(var V=g.r(G.entries()),xa=V.next();!xa.done;xa=V.next()){var La=g.r(xa.value);xa=
La.next().value;La=La.next().value;var rb=(null===(C=La.heatMarkerRenderer)||void 0===C?void 0:C.heatMarkerIntensityScoreNormalized)||0;La=(xa+.5)*F;rb=100-g.dg(100*rb,p/J.i*100,q/J.i*100);0!==xa||U||K.push({x:0,y:rb});K.push({x:La,y:rb});xa===G.length-1&&K.push({x:1E3,y:rb})}K.push({x:1E3,y:100});C=K;if(0===G.length)C="";else{J="";U=g.r(C.entries());for(F=U.next();!F.done;F=U.next())K=g.r(F.value),F=K.next().value,K=K.next().value,0===F?F="M "+K.x.toFixed(1)+","+K.y.toFixed(1):(V=Pxa(C[F-1],C[F-
2],K),F=Pxa(K,C[F-1],C[F+1],!0),F=" C "+(V.x.toFixed(1)+","+V.y.toFixed(1)+" "+F.x.toFixed(1)+","+F.y.toFixed(1)+" "+K.x.toFixed(1)+","+K.y.toFixed(1))),J+=F;C=J}z.D.setAttribute("d",C);z.isValid=""!==C;g.M(z.api.getRootNode(),"ytp-heat-map",z.isValid);g.M(z.api.getRootNode(),"ytp-heat-map-played_bar",z.api.N("web_player_heat_map_played_bar")&&""!==C);0<G.length&&(t=G[G.length-1])}g.kP(a);var pb,Pb,lc;v=[];y=g.r(b.heatMarkersDecorations||[]);for(b=y.next();!b.done;b=y.next())(b=b.value.timedMarkerDecorationRenderer)&&
v.push({visibleTimeRangeStartMillis:null!==(pb=b.visibleTimeRangeStartMillis)&&void 0!==pb?pb:-1,visibleTimeRangeEndMillis:null!==(Pb=b.visibleTimeRangeEndMillis)&&void 0!==Pb?Pb:-1,decorationTimeMillis:null!==(lc=b.decorationTimeMillis)&&void 0!==lc?lc:NaN,label:dP(b.label)});a.heatMarkersDecorations=v}};
Wxa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Xxa(a,c.timeRangeStartMillis/(1E3*a.u.i),mP(a));g.fm(c.element,"transform","translateX("+d+"px)")}};
Vxa=function(a,b){var c=0,d=!1;b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(e.chapterRenderer){e=e.chapterRenderer;var f={startTime:NaN,title:null,onActiveCommand:void 0};f.title=dP(e.title);var h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.i[c].startTime=0,a.i[c].title="",a.i[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.i.length<=c&&(f=new eP,a.i.push(f),g.H(a,f),f.Ea(a.Zb,a.Zb.children.length));a.i[c].startTime=
e.startTime;a.i[c].title=e.title?e.title:"";a.i[c].onActiveCommand=e.onActiveCommand;a.i[c].index=d?c-1:c}c++}for(;c<a.i.length;)a.i.pop().dispose();g.kP(a);nP(a)};
g.kP=function(a){a.Ha=a.i.length-1;a.bb=0;Yxa(a,!0)&&Yxa(a,!1);for(var b=0,c=0;c<a.i.length;c++)if(0===a.i[c].width){if(c===a.i.length-1)for(var d=a.i.length-1;0<=d;d--)if(0<a.i[d].width){gP(a.i[d],0);var e=Math.floor(a.i[d].width);a.i[d].width=e;fP(a.i[d],e+"px");break}a.i[c].width=0;fP(a.i[c],"0")}else c===a.i.length-1?(d=Math.floor(a.i[c].width+b),a.i[c].width=d,fP(a.i[c],d+"px")):(b=a.i[c].width+b,d=Math.round(b),b-=d,a.i[c].width=d,fP(a.i[c],d+"px"));c=0;if(a.D.length===a.i.length)for(b=0;b<
a.D.length;b++)d=a.i[b].width,a.D[b].element.style.width=d+"px",a.D[b].element.style.left=c+"px",c+=d+(a.B?3:2)};
Yxa=function(a,b){var c=0,d=!1,e=a.i.length,f=1E3*a.u.i;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.C){for(var h=a.C-(a.B?3:2)*a.Ha,l=0===a.bb?3:h*a.bb,m=g.r(a.i),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.i[c].startTime;c<e-1&&(m=a.i[c+1].startTime-a.i[c].startTime,gP(a.i[c],a.B?3:2));g.M(a.i[c].i,"ytp-exp-chapter-hover-container",1<a.i.length);n=(0===f?0:m/f*h)+a.i[c].width;if(n>l)a.i[c].width=n;else{a.i[c].width=0;var p=a,q=c,t=p.i[q-1];void 0!==t&&0<t.width?
t.width+=n:q<p.i.length-1&&(p.i[q+1].width+=n);gP(p.i[q],0);b&&(a.Ha--,m/f>a.bb&&(a.bb=m/f),d=!0)}c++}}return d};
nP=function(a){var b;if(a.C){var c=a.api.getProgressState();var d=(null===(b=a.api.getVideoData())||void 0===b?0:FG(b))&&c.airingStart&&c.airingEnd?Zxa(a,c.airingStart,c.airingEnd):Zxa(a,c.seekableStart,c.seekableEnd);var e=CL(d,c.loaded,0);c=CL(d,c.current,0);var f=a.u.u!==d.u||a.u.i!==d.i;a.u=d;oP(a,c,e);f&&pP(a);$xa(a)}};
Zxa=function(a,b,c){var d=a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar"),e=a.api.V().N("enable_expanded_clip_range_in_progress_bar");return qP(a)&&d?new zL(Math.max(b,a.Sb.startTimeMs/1E3),Math.min(c,a.Sb.endTimeMs/1E3)):qP(a)&&e?(d=a.Sb.startTimeMs/1E3,a=a.Sb.endTimeMs/1E3,e=(a-d)/20,new zL(Math.max(b,d-e),Math.min(c,a+e))):new zL(b,c)};
sP=function(a,b){var c=BL(a.u,b.B);if(1<a.i.length){c=rP(a,b.C,!0);for(var d=0,e=0;e<c;e++)0<a.i[e].width&&(d+=a.i[e].width,d+=a.B?3:2);c=(a.i[c].startTime+(b.C-d)/a.i[c].width*((c===a.i.length-1?1E3*a.u.i:a.i[c+1].startTime)-a.i[c].startTime))/1E3||0}return c};
aya=function(a,b,c){return c>=a.i.length?!1:4>Math.abs(b-a.i[c].startTime/1E3)/a.u.i*(a.C-(a.B?3:2)*a.Ha)};
bya=function(a,b,c,d){b=g.dg(b,0,a.B?60:40);a.I=b;var e=a.Va;a.Va=b/(a.B?60:40)*(Math.max(AL(a.u)/a.C,1)-1)+1;b=a.C*a.Va;a.Aa=g.dg(d*b-c,0,b-a.C);e!==a.Va&&pP(a)};
pP=function(a){if(1!==a.i.length||iP(a))a.Zc.style.removeProperty("height");else{var b=mP(a),c=-b.u/b.i,d=(-b.u+b.width)/b.i,e=gba(a.Hd),f=0;if(a.I>.2*(a.B?60:40))for(var h=AL(a.u)/60*d,l=Math.ceil(AL(a.u)/60*c);l<h;l++){var m=e[f];m||(m=g.Ng("DIV"),a.Hd.appendChild(m));f++;0===l%60?g.hr(m,"ytp-60m-progress"):0===l%30?g.hr(m,"ytp-30m-progress"):0===l%15?g.hr(m,"ytp-15m-progress"):g.hr(m,"ytp-1m-progress");m.style.left=(60*l/AL(a.u)-c)*b.i+"px"}b=a.Nb?a.u.i:0;a.update({boundTimeLeft:g.vL(BL(a.u,c)-
b),boundTimeRight:g.vL(BL(a.u,d)-b)});for(c=e.length-1;c>=f;c--)g.Rg(e[c]);a.element.style.height=a.I+(a.B?8:5)+"px";a.ea("height-change",a.I);a.Zc.style.height=a.I+(a.B?20:13)+"px"}e=g.r(Object.keys(a.La));for(f=e.next();!f.done;f=e.next())cya(a,f.value);tP(a);oP(a,a.X,a.Za)};
mP=function(a){var b=a.wb.x,c=a.C*a.Va;b=g.dg(b,0,a.C);a.ue.update(b,a.C,-a.Aa,-(c-a.Aa-a.C));return a.ue};
oP=function(a,b,c){var d;a.X=b;a.Za=c;var e=mP(a),f=a.u.i,h=BL(a.u,a.X),l=g.$H("$PLAY_PROGRESS (\u043e\u0431\u0449\u0430\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c $DURATION)",{PLAY_PROGRESS:g.vL(h,!0),DURATION:g.vL(f,!0)}),m=mO(a.i,1E3*h);m=a.i[m].title;a.update({ariamin:Math.floor(a.u.u),ariamax:Math.floor(f),arianow:Math.floor(h),arianowtext:m?m+" "+l:l});f=a.clipStart;h=a.clipEnd;a.Sb&&2!==a.api.getPresentingPlayerType()&&(f=a.Sb.startTimeMs/1E3,h=a.Sb.endTimeMs/
1E3);f=CL(a.u,f,0);m=CL(a.u,h,1);l=a.api.getVideoData();h=g.dg(b,f,m);c=(null===l||void 0===l?0:g.CG(l))?1:g.dg(c,f,m);b=Xxa(a,b,e);g.fm(a.Qf,"transform","translateX("+b+"px)");uP(a,e,f,h,"PLAY_PROGRESS");(null===l||void 0===l?0:FG(l))?(b=a.api.getProgressState().seekableEnd)&&uP(a,e,h,CL(a.u,b),"LIVE_BUFFER"):uP(a,e,f,c,"LOAD_PROGRESS");a.api.N("web_player_heat_map_played_bar")&&(null===(d=a.D[0])||void 0===d?void 0:d.B.setAttribute("width",(100*h).toFixed(2)+"%"))};
uP=function(a,b,c,d,e){var f=a.i.length,h=b.i-a.Ha*(a.B?3:2),l=c*h;c=rP(a,l);var m=d*h;h=rP(a,m);"HOVER_PROGRESS"===e&&(h=rP(a,b.i*d,!0),m=b.i*d-dya(a,b.i*d)*(a.B?3:2));b=Math.max(l-eya(a,c),0);for(d=c;d<f;d++)hP(a.i[d],e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.i[f].width,vP(a,hP(a.i[f],e),f===c?d-b:d,d);f=a.i[h].width;m=g.dg(m-eya(a,h),0,f);c===h&&(m-=b);vP(a,hP(a.i[h],e),m,f);m=a.i.length;for(h+=1;h<m;h++)vP(a,hP(a.i[h],e),0,a.i[h].width);for(h=0;h<c;h++)vP(a,hP(a.i[h],e),0,a.i[h].width)};
eya=function(a,b){if(b>=a.i.length)return a.C;for(var c=0,d=0;d<b;)c+=a.i[d].width,d++;return c};
vP=function(a,b,c,d,e){e||a.api.V().isMobile?b.style.width=c+"px":g.fm(b,"transform","scalex("+(d?c/d:0)+")")};
rP=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=dya(a,b)*(a.B?3:2));c=g.r(a.i);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.i.length?d-1:d};
Xxa=function(a,b,c){for(var d=b*a.u.i*1E3,e=-1,f=g.r(a.i),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.i-(a.B?3:2)*a.Ha)+(a.B?3:2)*(0>e?0:e)+c.u};
dya=function(a,b){for(var c=a.i.length,d=0,e=g.r(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.B?3:2,d++;else break;return d===c?c-1:d};
g.wP=function(a,b,c,d){var e,f=a.C!==c;a.ye=b;a.C=c;a.B=d;iP(a)&&(null===(e=a.va)||void 0===e?void 0:e.u=d);pP(a);1===a.i.length&&(a.i[0].width=c||0);f&&g.kP(a)};
tP=function(a){var b,c=!!a.Sb&&2!==a.api.getPresentingPlayerType(),d=a.clipStart,e=a.clipEnd,f=!0,h=!0;c&&a.Sb?(d=a.Sb.startTimeMs/1E3,e=a.Sb.endTimeMs/1E3):(f=d>a.u.u,h=0<a.u.i&&e<a.u.i);(null===(b=a.Sb)||void 0===b?0:b.postId)&&a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(h=f=!1);g.M(a.element,"ytp-loop-range-enabled",c);g.M(a.element,"ytp-clip-start-enabled",f);g.M(a.element,"ytp-clip-end-enabled",h);c=f?CL(a.u,d,0):0;e=h?CL(a.u,e,1):1;a.rb.style.left=Math.round(1E3*c)/10+
"%";a.jb.style.left=Math.round(1E3*e)/10+"%";a.Mf.style.width=Math.round(1E3*c)/10+"%";a.wd.style.left=Math.round(1E3*e)/10+"%";a.wd.style.width=Math.round(1E3*(1-e))/10+"%"};
$xa=function(a){var b,c;if(null===(b=a.api.getVideoData())||void 0===b||!FG(b)){var d=mP(a);uP(a,d,a.X,Math.max(d.B,a.X),"HOVER_PROGRESS");for(var e=rP(a,d.i*a.X,!0),f=rP(a,d.C,!0),h=e;h<=f;h++)g.M(a.i[h].u,"ytp-hover-progress-light",d.B>a.X);g.M(a.Zc,"ytp-scrubber-button-hover",e===f&&1<a.i.length);a.api.N("web_player_heat_map_played_bar")&&(null===(c=a.D[0])||void 0===c?void 0:c.u.setAttribute("width",(100*d.B).toFixed(2)+"%"))}};
cya=function(a,b){var c=a.La[b];b=a.Db[b];var d=mP(a),e=CL(a.u,c.start/1E3,0),f=bla(c,a.B)/d.width;var h=CL(a.u,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.dg(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;e=!0;b.style.left=Math.max(c*d.i+d.u,0)+"px";vP(a,b,g.dg((h-c)*d.i+d.u,0,d.width),d.width,void 0===e?!1:e)};
fya=function(a,b){var c=b.getId();a.La[c]===b&&(g.Rg(a.Db[c]),delete a.La[c],delete a.Db[c])};
iP=function(a){return a.api.V().N("web_player_fine_scrubbing")};
gya=function(a,b){b?a.S||(a.element.removeAttribute("aria-disabled"),a.S=new g.Qx(a.Hc,!0),a.S.subscribe("hovermove",a.iV,a),a.S.subscribe("hoverend",a.hV,a),a.S.subscribe("dragstart",a.gV,a),a.S.subscribe("dragmove",a.kV,a),a.S.subscribe("dragend",a.jV,a),a.xe=a.Qa("keydown",a.BP)):a.S&&(a.element.setAttribute("aria-disabled","true"),a.pc(a.xe),a.S.cancel(),a.S.dispose(),a.S=null)};
g.hya=function(a){var b=2*a.C*g.VE();return 1E3*AL(a.u)/a.api.getPlaybackRate()/b};
qP=function(a){var b;return!(null===(b=a.Sb)||void 0===b||!b.postId)&&2!==a.api.getPresentingPlayerType()};
xP=function(a,b,c){g.X.call(this,{G:"button",Ga:["ytp-remote-button","ytp-button"],W:{title:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440\u0435","aria-haspopup":"true"},ya:"{{icon}}"});this.J=a;this.Ab=c;this.i=null;this.T(a,"onMdxReceiversChange",this.Pa);this.T(a,"presentingplayerstatechange",this.Pa);this.T(a,"appresize",this.Pa);a.Jb(this.element,this,139118);this.Pa();this.Qa("click",this.u,
this);g.he(this,g.JN(b.hc(),this.element))};
yP=function(a,b,c){g.X.call(this,{G:"button",Ga:["ytp-button","ytp-settings-button"],W:{"aria-haspopup":"true","aria-owns":uK(),title:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","data-tooltip-target-id":"ytp-settings-button"},U:[g.LK()]});this.J=a;this.Ab=c;this.u=!0;this.Qa("click",this.B);this.T(a,"onPlaybackQualityChange",this.updateBadge);this.T(a,"videodatachange",this.updateBadge);this.T(a,"webglsettingschanged",this.updateBadge);this.T(a,"appresize",this.i);g.he(this,g.JN(b.hc(),
this.element));this.J.Jb(this.element,this,28663);this.updateBadge();this.i(a.eb().getPlayerSize())};
zP=function(a,b){a.u=!!b;a.i(a.J.eb().getPlayerSize())};
AP=function(a,b){ZN.call(this,"\u0410\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438",6);this.J=a;this.Ab=b;this.i=!1;a.N("web_settings_menu_icons")&&TN(this,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7             M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7             M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z             M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
fill:"white"}}]});this.T(a,"videodatachange",this.Pa);this.T(a,"onApiChange",this.Pa);this.subscribe("select",this.u,this);this.Pa()};
g.BP=function(a,b,c,d,e,f,h){g.RN.call(this,g.SN({"aria-haspopup":"true"}),b,a);this.Ab=d;this.C=!1;this.u=null;this.options={};this.B=new g.VN(c,void 0,a,e,f,h);g.H(this,this.B);this.Qa("keydown",this.CP);this.Qa("click",this.open)};
iya=function(a){if(a.u){var b=a.options[a.u];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.u=null}};
g.CP=function(a,b){g.WN(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.u;l&&(d=!0);h&&h.priority===-e?(l=a,g.QN(l.options[f],l.ij(f,!0)),delete a.options[f]):h=a.bD(f,-e,l);c[f]=h;a.B.Gc(h,!0)}d||(a.u=null);b=g.r(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
DP=function(a,b){g.BP.call(this,"\u0417\u0432\u0443\u043a\u043e\u0432\u0430\u044f \u0434\u043e\u0440\u043e\u0436\u043a\u0430",3,a,b);this.J=a;this.tracks={};this.i=new g.X({G:"div",U:[{G:"span",ya:"\u0417\u0432\u0443\u043a\u043e\u0432\u0430\u044f \u0434\u043e\u0440\u043e\u0436\u043a\u0430"},{G:"span",L:"ytp-menuitem-label-count",ya:"{{content}}"}]});g.H(this,this.i);g.QN(this,this.i);this.T(a,"videodatachange",this.Pa);this.T(a,"onPlaybackAudioChange",this.Pa);this.Pa()};
EP=function(a,b){ZN.call(this,"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435",7);this.J=a;this.Ab=b;this.i=!1;this.B=[];this.T(a,"presentingplayerstatechange",this.u);this.subscribe("select",this.D,this);a.Jb(this.element,this,113682);this.u()};
FP=function(a,b,c,d){d=new g.X({G:"div",Ga:["ytp-linked-account-popup-button"],ya:d,W:{role:"button",tabindex:"0"}});b=new g.X({G:"div",L:"ytp-linked-account-popup",W:{role:"dialog","aria-modal":"true",tabindex:"-1"},U:[{G:"div",L:"ytp-linked-account-popup-title",ya:b},{G:"div",L:"ytp-linked-account-popup-description",ya:c},{G:"div",L:"ytp-linked-account-popup-buttons",U:[d]}]});g.uN.call(this,a,{G:"div",L:"ytp-linked-account-popup-container",U:[b]},100);var e=this;this.dialog=b;g.H(this,this.dialog);
d.Qa("click",function(){e.Fb()});
g.H(this,d);g.yM(this.J,this.element,4);this.hide()};
GP=function(a,b){g.RN.call(this,g.SN({"aria-haspopup":"true"}),1);this.J=a;this.Ab=b;this.u=this.i=!1;this.T(this.J,"videodatachange",this.C);this.Qa("click",this.onClick);this.C()};
HP=function(a){return a?g.Sz(a):""};
IP=function(a,b){g.BP.call(this,"\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e",2,a,b);this.J=a;this.D={};this.i="unknown";a.N("web_settings_menu_icons")&&TN(this,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z            M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.L(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.Bu);this.T(a,
"videoplayerreset",this.Bu);this.T(a,"onPlaybackQualityChange",this.VH);this.Bu();a.Jb(this.element,this,137721)};
jya=function(a,b,c){a=a.D[b];var d=g.EA[b];c={G:"span",Ga:c,U:[a?a.qualityLabel:d?d+"p":"\u0410\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430"]};var e;"highres"===b?e="8K":"hd2880"===b?e="5K":"hd2160"===b?e="4K":0===b.indexOf("hd")&&"hd720"!==b&&(e="HD");e&&(c.U.push(" "),c.U.push({G:"sup",L:"ytp-swatch-color",ya:e}));return c};
JP=function(a,b,c,d,e,f,h){g.X.call(this,{G:"div",L:"ytp-slider-section",W:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{G:"div",L:"ytp-slider",U:[{G:"div",L:"ytp-slider-handle"}]}]});this.I=a;this.D=b;this.minimumValue=c;this.maximumValue=d;this.K=e;this.Z=f;this.range=this.maximumValue-this.minimumValue;this.va=this.Fa("ytp-slider-section");this.u=this.Fa("ytp-slider");this.S=this.Fa("ytp-slider-handle");
this.C=new g.Qx(this.u,!0);this.i=h?h:c;g.H(this,this.C);this.C.subscribe("dragmove",this.EP,this);this.T(this.element,"keydown",this.FP);this.T(this.element,"wheel",this.DP);this.init()};
LP=function(a){JP.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.B=g.Ng("P");this.Aa=Naa(this.X,this);g.L(this.u,"ytp-speedslider");g.L(this.B,"ytp-speedslider-text");a=this.B;var b=this.u;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);KP(this);this.T(this.J,"onPlaybackRateChange",this.Ba)};
KP=function(a){a.B.textContent=MP(a,a.i)+"x"};
MP=function(a,b){a=Number(g.dg(b,a.minimumValue,a.maximumValue).toFixed(2));b=Math.floor(100*(a+.001)%5+2E-15);var c=a;0!==b&&(c=a-.01*b);return Number(c.toFixed(2))};
NP=function(a){g.zK.call(this,{G:"div",L:"ytp-speedslider-component"});this.i=new LP(a);g.H(this,this.i);this.element.appendChild(this.i.element)};
kya=function(a){var b=new NP(a);UN.call(this,a,b,"\u0414\u0440\u0443\u0433\u0430\u044f");g.H(this,b)};
OP=function(a,b){var c=new kya(a);g.BP.call(this,"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f",5,a,b,"\u0414\u0440\u0443\u0433\u0430\u044f",function(){g.aO(b,c)});
a.N("web_settings_menu_icons")&&TN(this,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z            M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z            M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z            M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z            M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
fill:"white"}}]});g.H(this,c);this.J=a;this.D=this.i=this.K=null;this.I=this.J.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Pa);this.Pa()};
lya=function(a,b){var c=PP(b);a.options[c]?a.Vh(c):b===a.D&&a.i&&(a.Vh(a.i),a.md(b.toString()))};
nya=function(a){g.CP(a,a.I.map(PP));a.i=null;a.D=null;var b=a.J.getPlaybackRate();a.I.includes(b)||(mya(a,b),g.BP.prototype.zf.call(a,a.i))};
mya=function(a,b){a.D=b;a.i=g.$H("\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u0430\u044f ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.I.map(PP);b.unshift(a.i);g.CP(a,b)};
PP=function(a){return a.toString()};
QP=function(a,b,c,d){var e=new g.VN(b,void 0,"\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432");g.BP.call(this,d.text||"",a,b,c,"\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432",function(){g.aO(c,e)});
var f=this;g.L(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.kc(a,this.getKey,this);this.I=e;g.H(this,this.I);b=new g.RN({G:"div",L:"ytp-menuitemtitle",ya:"\u0415\u0441\u043b\u0438 \u0432 \u0432\u0438\u0434\u0435\u043e \u0437\u0430\u0434\u0430\u043d\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432, \u043e\u043d\u0438 \u0438\u043c\u0435\u044e\u0442 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442."},
0);g.H(this,b);this.I.Gc(b,!0);this.D=new g.RN({G:"div",L:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},U:[{G:"div",L:"ytp-menuitem-label",ya:"\u0412\u041a\u041b"}]},-1);g.H(this,this.D);this.I.Gc(this.D,!0);this.T(this.D.element,"click",function(){oya(f,!0)});
this.i=new g.RN({G:"div",L:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},U:[{G:"div",L:"ytp-menuitem-label",ya:"\u0412\u042b\u041a\u041b"}]},-2);g.H(this,this.i);this.I.Gc(this.i,!0);this.T(this.i.element,"click",function(){oya(f,!1)});
g.CP(this,g.Mm(a,this.getKey))};
oya=function(a,b){a.ea("settingChange",a.setting+"Override",!b);a.Ab.oh()};
RP=function(a,b){g.VN.call(this,a,void 0,"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b");var c=this;this.Wn={};for(var d=0;d<g.pO.length;d++){var e=g.pO[d],f=new QP(-d,a,b,e);g.H(this,f);f.subscribe("settingChange",this.jh,this);this.Wn[e.option.toString()]=f;this.Gc(f,!0)}a=new g.RN(g.SN(),-g.pO.length,"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c");g.H(this,a);a.Qa("click",function(){c.jh("reset",!0)});
this.Gc(a,!0)};
SP=function(a,b){g.BP.call(this,"\u041f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438",0,a,b);this.J=a;this.languages={};a.Jb(this.element,this,127301);a.gb(this.element,!0)};
pya=function(a,b){a.languages=g.kc(b,a.getKey,a);g.CP(a,g.Mm(b,a.getKey))};
TP=function(a,b){var c=new RP(a,b),d=["\u0412\u0430\u0448 \u0432\u044b\u0431\u043e\u0440 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e. \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0440\u043e\u043b\u0438\u043a\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 ",
"."],e;g.$E(a.V())&&(e={G:"div",L:"ytp-panel-footer-content",U:[{G:"span",ya:d[0]},{G:"a",L:"ytp-panel-footer-content-link",ya:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",W:{href:"/account_playback"}},{G:"span",ya:d[1]}]});g.BP.call(this,"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b",4,a,b,"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b",function(){g.aO(b,c)},e);
var f=this;this.J=a;this.Ab=b;this.tracks={};this.I=new g.I(function(){qya(f,!1)},3E3);
g.H(this,this.I);this.K=new g.X({G:"div",U:[{G:"span",ya:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b"},{G:"span",L:"ytp-menuitem-label-count",ya:"{{content}}"}]});g.H(this,this.K);g.QN(this,this.K);a.N("web_settings_menu_icons")&&TN(this,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z            M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z            M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
fill:"white"}}]});this.i=new SP(a,b);g.H(this,this.i);this.i.subscribe("select",this.GP,this);this.D=c;g.H(this,this.D);this.D.subscribe("settingChange",this.jh,this);b.subscribe("show",this.OV,this);this.T(a,"videodatachange",this.Pa);this.T(a,"onApiChange",this.Pa);this.T(a,"onCaptionsTrackListChanged",this.Pa);this.T(a,"captionschanged",this.Pa);a.Jb(this.element,this,127300);this.Pa()};
qya=function(a,b){a.J.setOption("captions","sampleSubtitles",b)};
UP=function(a){g.cO.call(this,a,"ytp-settings-menu");var b=this;this.Wd=new g.VN(this.J);this.PE=this.settingsButton=null;this.isInitialized=!1;g.H(this,this.Wd);this.hide();g.aO(this,this.Wd);a.Jb(this.element,this,108341,!0);this.subscribe("show",function(c){b.Ee(c)})};
rya=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
VP=function(a,b){g.X.call(this,{G:"button",Ga:["ytp-size-button","ytp-button"],W:{title:"{{title}}"},ya:"{{icon}}"});this.J=a;this.isWidescreen=null;this.transition=new XO;this.tooltip=b.hc();g.H(this,this.transition);this.T(a,"sizestylechange",this.Pa);this.T(a,"fullscreentoggled",this.Pa);this.T(a,"presentingplayerstatechange",this.Pa);a.Jb(this.element,this,139116);this.Pa();this.Qa("click",this.onClick);g.he(this,g.JN(this.tooltip,this.element))};
g.WP=function(a,b){g.X.call(this,{G:"button",Ga:["ytp-subtitles-button","ytp-button"],W:{"aria-pressed":"{{pressed}}",title:"{{title}}"},U:[Awa()]});this.J=a;this.tooltip=b.hc();this.T(a,"videodatachange",this.Pa);this.T(a,"appresize",this.Pa);this.T(a,"promotooltipacceptbuttonclicked",this.i);this.T(a,"onApiChange",this.Pa);this.T(a,"onCaptionsTrackListChanged",this.Pa);this.T(a,"captionschanged",this.Pa);this.J.Jb(this.element,this,127299);this.Pa();this.Qa("click",this.onClick);g.he(this,g.JN(b.hc(),
this.element))};
g.XP=function(a,b,c){c=void 0===c?350:c;g.X.call(this,{G:"div",Ga:["ytp-time-display","notranslate"],U:[{G:"span",L:"ytp-time-clip-icon",ya:"{{clipicon}}"},{G:"span",U:[{G:"span",L:"ytp-time-current",ya:"{{currenttime}}"},{G:"span",L:"ytp-time-separator",ya:" / "},{G:"span",L:"ytp-time-duration",ya:"{{duration}}"}]},{G:"span",L:"ytp-clip-watch-full-video-button-separator",ya:"\u2022"},{G:"span",L:"ytp-clip-watch-full-video-button",ya:"{{watchfullvideo}}"}]});this.api=a;this.K=c;this.liveBadge=new g.X({G:"button",
Ga:["ytp-live-badge","ytp-button"],W:{disabled:"true"},ya:"{{content}}"});this.i=null;this.isLiveVideo=this.u=!1;this.I=this.D=null;this.isPremiere=!1;this.Sb=this.C=this.B=null;this.S=this.Fa("ytp-clip-watch-full-video-button");this.liveBadge.md("\u0412 \u044d\u0444\u0438\u0440\u0435");g.H(this,this.liveBadge);this.liveBadge.Ea(this.element);this.tooltip=b.hc();this.Qa("click",this.onClick);this.T(this.S,"click",this.uW);this.T(a,"presentingplayerstatechange",this.Xb);this.T(a,"appresize",this.Xb);
this.T(a,"onLoopRangeChange",this.aC);this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Xb();this.aC(a.getLoopRange())};
sya=function(a){a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(a.Ra("clipicon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]}),
a.isLiveVideo&&!a.u?a.Ra("watchfullvideo","\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044e"):a.Ra("watchfullvideo","\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0446\u0435\u043b\u0438\u043a\u043e\u043c"),g.M(a.element,"ytp-clip",YP(a)),g.M(a.element,"ytp-live",ZP(a)))};
ZP=function(a){var b=YP(a)&&a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar");return a.isLiveVideo&&!a.u&&!b};
YP=function(a){return!!a.Sb&&!!a.Sb.postId&&2!==a.api.getPresentingPlayerType()};
bQ=function(a,b,c){g.X.call(this,{G:"div",L:"ytp-volume-panel",W:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{G:"div",L:"ytp-volume-slider",U:[{G:"div",L:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.i=b;this.K=c;this.xi=!1;this.X=this.volume=0;this.I=null;this.B=this.u=this.isDragging=!1;this.i=b;this.K=c;this.C=b.Se();this.S=this.Fa("ytp-volume-slider");this.Z=this.Fa("ytp-volume-slider-handle");
this.D=new g.Qx(this.S,!0);g.H(this,this.D);this.D.subscribe("dragstart",this.SV,this);this.D.subscribe("dragmove",this.IP,this);this.D.subscribe("dragend",this.RV,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.WH);this.T(a,"fullscreentoggled",this.mm);this.T(a,"onShowControls",this.DJ);this.T(a,"onHideControls",this.DJ);this.T(this.element,"keydown",this.JP);this.T(this.element,"focus",function(){$P(d,d.u,d.isDragging,!0,d.i.xi())});
this.T(this.element,"blur",function(){$P(d,d.u,d.isDragging,!1,d.i.xi())});
this.WH(a.eb().getPlayerSize());aQ(this,a.getVolume(),a.isMuted())};
aQ=function(a,b,c){var d=Math.floor(b),e=d+"% \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"+(c?" \u0437\u0432\u0443\u043a \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d":"");c=c?0:b/100;a.Ra("valuenow",d);a.Ra("valuetext",e);a.Z.style.left=(a.C?60:40)*c+"px";a.volume=b};
tya=function(a,b){g.M(a.element,"ytp-volume-control-hover",b);$P(a,b,a.isDragging,a.B,a.i.xi())};
$P=function(a,b,c,d,e){var f=a.u||a.isDragging||a.B||a.xi;a.u=b;a.isDragging=c;a.B=d;a.xi=e;b=a.u||a.isDragging||a.B||a.xi;f!==b&&(b?a.I=a.T(a.element,"wheel",a.HP):(a.pc(a.I),a.I=null),g.M(a.K,"ytp-volume-slider-active",b))};
g.cQ=function(a,b){var c=a.V(),d=g.SE(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];g.IE(c)&&e.push("ytp-youtube-music-button");g.X.call(this,{G:"a",Ga:e,W:{href:"{{url}}",target:c.I,title:g.$H("\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0430\u00a0$WEBSITE",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},ya:"{{logoSvg}}"});this.api=a;this.visible=!1;a.Jb(this.element,
this,28666);this.Qa("click",this.onClick);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onLoopRangeChange",this.onVideoDataChange);this.T(a,"appresize",this.xb);this.onVideoDataChange();g.he(this,g.JN(b.hc(),this.element));this.xb()};
eQ=function(a,b,c){g.WC.call(this);var d=this;this.J=a;this.u=b;this.xd=c;this.Ka=NaN;this.La=this.Ha=null;this.settingsMenu=new UP(this.J);this.Hc=new g.jP(this.J,this.u);this.muteButton=null;this.Fg=new g.XP(this.J,this.u);this.K=this.C=this.B=this.S=this.Aa=null;this.X=new $O(this.J,this.u);this.Ba=new g.TO(this.J,this.u);this.Ld=new g.Yq(this.kq,null,this);this.I=null;c=a.V();this.xd.subscribe("autohideupdate",this.Bj,this);var e=!a.zb().isCued(),f=this.J.V().N("html5_player_bottom_linear_gradient");
f||!g.IE(c)&&!a.V().N("html5_player_dynamic_bottom_gradient")?f=f?new g.X({G:"div",L:"ytp-gradient-bottom-container",U:[{G:"div",L:"ytp-gradient-bottom-extension"},{G:"div",L:"ytp-gradient-bottom"}]}):new g.X({G:"div",L:"ytp-gradient-bottom"}):this.La=f=new g.MO(a);g.H(this,f);g.yM(a,f.element,8);this.oa=new g.hL(f,250,e,100);g.H(this,this.oa);this.i=new g.X({G:"div",L:"ytp-chrome-bottom",U:[{G:"div",L:"ytp-chrome-controls"}]});g.H(this,this.i);g.yM(a,this.i.element,8);this.Z=new g.hL(this.i,250,
e,100);g.H(this,this.Z);this.va=this.i.element.children[0];g.he(this.settingsMenu,function(){a.Fn()===d.settingsMenu&&(a.settingsMenu=null)});
g.H(this,this.settingsMenu);a.settingsMenu=this.settingsMenu;g.yM(a,this.settingsMenu.element,6);this.settingsMenu.subscribe("show",function(m){var n=d.u.hc(),p=!m;if(null!=n.type)if(p)switch(n.type){case 3:case 2:dQ(n);n.D.show();break;default:n.D.show()}else n.D.hide();n.K=p;b.ZA(d.settingsMenu,m)});
g.H(this,this.Hc);this.Hc.Ea(this.i.element,0);e=new g.PO(a);g.H(this,e);g.yM(a,e.element,4);f=new g.vK({G:"div",L:"ytp-left-controls"});g.H(this,f);f.Ea(this.va);e=new g.cP(a,b,!1);g.H(this,e);e.Ea(f.element);c.oa||(e=new g.aP(a,b),g.H(this,e),e.Ea(f.element),aF(c)&&(e=new g.vK({G:"div",L:"ytp-hybrid-controls"}),g.H(this,e),this.K=new g.aP(a,b,!0),g.H(this,this.K),this.K.Ea(e.element),g.yM(a,e.element,4)));e=new g.cP(a,b,!0);g.H(this,e);e.Ea(f.element);e=new g.X({G:"span",L:"ytp-volume-area"});g.H(this,
e);e.Ea(f.element);if(!c.jb&&(this.muteButton=new g.ZO(a,b),g.H(this,this.muteButton),this.muteButton.Ea(e.element),c.Z)){var h=new bQ(a,b,this.i.element);g.H(this,h);h.Ea(e.element);e=new g.Qx(e.element);g.H(this,e);e.subscribe("hoverstart",function(){tya(h,!0)});
e=new g.Qx(f.element);g.H(this,e);e.subscribe("hoverend",function(){tya(h,!1)})}g.H(this,this.Fg);
this.Fg.Ea(f.element);e=new g.vK({G:"div",L:"ytp-right-controls"});g.H(this,e);this.Aa=new NO(a,b,this.Hc);g.H(this,this.Aa);this.Aa.Ea(f.element);e.Ea(this.va);a.V().Gb&&c.N("web_player_move_autonav_toggle")&&(f=new KO(a,b),g.H(this,f),f.Ea(e.element));c.N("external_fullscreen_with_edu")&&c.externalFullscreen&&UE(c)&&(this.S=new SO(a,b),g.H(this,this.S),this.S.Ea(e.element));f=new g.WP(a,b);g.H(this,f);f.Ea(e.element);f=new yP(a,b,this.settingsMenu);g.H(this,f);rya(this.settingsMenu,f);f.Ea(e.element);
var l=new WO(a);g.H(this,l);g.yM(a,l.element,5);l.subscribe("show",function(m){b.hn(l,m)});
f=new VO(a,b,l);g.H(this,f);f.Ea(e.element);f=a.getVideoData();if(c.Rj||f.D&&"1"===c.controlsType)this.B=new g.cQ(a,b),g.H(this,this.B),this.B.Ea(e.element);c.showMiniplayerButton&&!a.V().N("web_player_pip")&&(this.C=new UO(a,b),g.H(this,this.C),this.C.Ea(e.element));g.H(this,this.X);this.X.Ea(e.element);f.nC||this.X.hide();c.Sg||(f=new VP(a,b),g.H(this,f),f.Ea(e.element));c.Mf&&(f=new xP(a,b,this.settingsMenu),g.H(this,f),f.Ea(e.element));c.aj&&(c=new JO(a,b),g.H(this,c),c.Ea(e.element));g.H(this,
this.Ba);this.Ba.Ea(e.element);g.H(this,this.Ld);this.T(a,"appresize",this.xb);this.T(a,"fullscreentoggled",this.xb);this.T(a,"presentingplayerstatechange",this.bC);this.T(a,"videodatachange",this.onVideoDataChange);this.xb()};
uya=function(a,b){a.J.zb().isCued()||b?b&&(a.Z.hide(),a.oa.hide(),a.muteButton&&a.muteButton.Yb(!1),a.B&&a.B.Yb(!1),a.C&&a.C.Yb(!1),a.u.hc().jj(a.i.element)):b||(a.Z.show(),a.oa.show(),a.muteButton&&a.muteButton.Yb(!0),a.B&&a.B.Yb(!0),a.C&&a.C.Yb(!0),a.Bj())};
vya=function(a){var b=a.J.eb().getPlayerSize().width;return Math.max(b-2*fQ(a),100)};
fQ=function(a){var b=a.u.Se();return 12*(a.J.getVideoData().D?0:b?2:1)};
gQ=function(a){var b=a.u.Se()?72:50;a=a.J.V();g.WE(a)&&(b=54,Uoa(a)&&(b=62));return b};
hQ=function(a,b){FO.call(this,a,b,!1);var c=this;this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.cz("suggested_action_button_visible"),function(){c.Ee(!0)});
this.T(this.J,g.dz("suggested_action_button_visible"),function(){c.Ee(!1)})};
iQ=function(a){a.J.Xe("suggested_action_button_visible")};
kQ=function(a){g.X.call(this,{G:"div",L:jQ.TITLE,U:[{G:"div",L:jQ.TEXT,U:[{G:"a",Ga:[jQ.LINK,jQ.SESSIONLINK],W:{target:a.V().I,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},ya:"{{title}}"},{G:"div",L:jQ.SUBTEXT,U:[{G:"a",L:jQ.CHANNEL_NAME,W:{href:"{{channelLink}}",target:"_blank"},ya:"{{channelName}}"}]}]}]});this.api=a;this.i=null;this.link=this.Fa(jQ.LINK);a.Jb(this.element,this,23851);this.T(a,"videodatachange",this.Pa);this.T(a,"videoplayerreset",
this.Pa);this.Pa()};
wya=function(a){a.Ra("channelLink","");a.Ra("channelName","");a.Ra("channelTitleFocusable","-1")};
g.lQ=function(a,b){g.X.call(this,{G:"div",U:[{G:"div",L:"ytp-tooltip-text-wrapper",U:[{G:"div",L:"ytp-tooltip-image"},{G:"div",L:"ytp-tooltip-title",U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"g",U:[{G:"rect",W:{fill:"none",height:"24",width:"24",x:"0"}}]},{G:"g",U:[{G:"g",U:[{G:"polygon",W:{points:"19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25"}},{G:"polygon",W:{points:"19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75"}},{G:"path",
W:{d:"M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z"}}]}]}]},{G:"span",ya:"{{title}}"}]},{G:"span",L:"ytp-tooltip-text",ya:"{{text}}"}]},{G:"div",L:"ytp-tooltip-bg",U:[{G:"div",L:"ytp-tooltip-duration",ya:"{{duration}}"}]}]});var c=this;this.api=a;this.Ha=b;this.env=this.api.V();this.Ba=this.env.isMobile;this.bg=this.Fa("ytp-tooltip-bg");this.image=this.Fa("ytp-tooltip-image");this.text=this.Fa("ytp-tooltip-text");
this.title=this.Fa("ytp-tooltip-title");this.X=function(d){(d=$u(d))&&g.Tg(c.u,d)||c.Xj()};
this.C=function(d){3===c.type&&c.Xj();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.C),d.addEventListener("mouseout",c.X),d.removeEventListener("focus",c.C),d.addEventListener("blur",c.X),xya(c,d,2))};
this.Z=function(){c.Xj()};
this.u=null;this.D=new g.hL(this,100);this.type=null;this.S=!1;this.i=null;this.B=NaN;this.I="";this.cC=this.api.eb().getPlayerSize().width;this.K=!0;this.scale=1;this.va=new g.I(this.RS,250,this);this.Aa=new g.I(this.Xj,5E3,this);g.H(this,this.D);g.H(this,this.va);g.H(this,this.Aa);tE&&(a=this.Fa("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
NN=function(a){a.element.setAttribute("aria-live","polite")};
Aya=function(a,b,c,d,e,f,h,l){if(!a.Ba||a.env.C){3===a.type&&a.Xj();1!==a.type&&(g.hr(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.K&&a.D.show(),a.i&&a.i.dispose(),a.i=a.api.og(),a.i&&a.i.subscribe("l",a.sM,a));a.update({text:d,title:null!==h&&void 0!==h?h:""});g.M(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.M(a.element,"ytp-text-detail",!!e);d=-1;a.i&&(d=IF(a.i,160*a.scale),a.env.N("web_l3_storyboard")&&4===a.i.levels.length&&(d=a.i.levels.length-1),d=NF(a.i,d,c));yya(a,d);if(l)switch(c=
g.um(a.element).width,l){case 1:a.title.style.right="0";a.title.style.textAlign="left";break;case 2:a.title.style.right=c+"px";a.title.style.textAlign="right";break;case 3:a.title.style.right=c/2+"px",a.title.style.textAlign="center"}zya(a,!!e,b,f)}};
g.mQ=function(a){1===a.type&&a.Xj()};
g.JN=function(a,b){if(a.Ba)return g.Ia;b.addEventListener("mouseover",a.C);b.addEventListener("focus",a.C);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.u===b&&a.Xj();b.removeEventListener("mouseover",a.C);b.removeEventListener("focus",a.C)}};
hO=function(a,b,c){if(a.type)if(3===a.type)a.Xj();else return;xya(a,b,3,c)};
xya=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.iw("showElementTooltip called with non-element.",b.toString()),g.jy(a);else{isNaN(a.B)||(a.B=NaN,a.bg.style.background="");a.u=b;a.S=!!d;d?a.I=d:(a.I=b.getAttribute("title"),b.removeAttribute("title"));g.hr(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.M(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.M(a.element,"ytp-tooltip-opaque",!!b);a.type=
c;a.api.addEventListener("appresize",a.Z);a.K&&(dQ(a),a.D.show(0))}};
dQ=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.S){var c=a.u;a.Ra("text",b);var d=c.getAttribute("data-duration");a.update({title:a.I,duration:d});c=c.getAttribute("data-preview");var e=160*a.scale,f=90*a.scale,h=160*a.scale,l=90*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=c?"url("+c+")":"";a.bg.style.backgroundPosition=(e-h)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=h+"px "+l+"px";g.jr(a.element,["ytp-text-detail","ytp-preview"]);
g.M(a.element,"ytp-has-duration",!!d)}else a.Ra("text",a.I),g.lr(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);zya(a,!!b)};
zya=function(a,b,c,d){var e=Math.min(a.cC,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ha.uq(a.element,a.u,c,1===a.type,d);a.element.style.top?g.L(a.element,"ytp-bottom"):a.element.style.bottom&&g.L(a.element,"ytp-top");3===a.type&&a.Aa.start()};
iO=function(a){a.u&&!a.S&&a.u.hasAttribute("title")&&(a.I=a.u.getAttribute("title")||"",a.u.removeAttribute("title"),a.K&&dQ(a))};
yya=function(a,b){g.M(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.B)){a.B=b;b=160*a.scale;var c=160*a.scale,d=KF(a.i,a.B,b);OO(a.bg,d,b,c,!0);a.va.start()}};
Bya=function(a){var b=a.u;3===a.type&&a.Aa.stop();a.api.removeEventListener("appresize",a.Z);a.S||b.setAttribute("title",a.I);a.I="";a.u=null};
g.nQ=function(a,b){g.X.call(this,{G:"button",Ga:["ytp-watch-later-button","ytp-button"],W:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.xE(a.V()))},U:[{G:"div",L:"ytp-watch-later-icon",ya:"{{icon}}"},{G:"div",L:"ytp-watch-later-title",ya:"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435"}]});this.J=a;this.icon=null;this.visible=this.isRequestPending=this.i=!1;this.tooltip=b.hc();NN(this.tooltip);a.Jb(this.element,this,28665);this.Qa("click",
this.onClick,this);this.T(a,"videoplayerreset",this.KP);this.T(a,"appresize",this.Tx);this.T(a,"videodatachange",this.Tx);this.T(a,"presentingplayerstatechange",this.Tx);this.Tx();a=this.J.V();var c=g.Ay("yt-player-watch-later-pending");a.i&&c?(Una(),Cya(this)):this.Pa(2);g.M(this.element,"ytp-show-watch-later-title",g.xE(a));g.he(this,g.JN(b.hc(),this.element))};
Dya=function(a,b){g.Zua(function(){Una({videoId:b});window.location.reload()},"wl_button",g.RE(a.J.V()))};
Cya=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Pa(3);var b=a.J.getVideoData();b=a.i?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.J.Sl(),d=a.i?function(){a.i=!1;a.isRequestPending=!1;a.Pa(2);a.J.V().u&&a.J.Na("WATCH_LATER_VIDEO_REMOVED")}:function(){a.i=!0;
a.isRequestPending=!1;a.Pa(1);a.J.V().isMobile&&hO(a.tooltip,a.element);a.J.V().u&&a.J.Na("WATCH_LATER_VIDEO_ADDED")};
QL(c,b).then(d,function(){a.isRequestPending=!1;Eya(a,"\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.")})}};
Eya=function(a,b){a.Pa(4,b);a.J.V().u&&a.J.Na("WATCH_LATER_ERROR",b)};
Fya=function(a,b){var c=a.J.V();if(b!==a.icon){switch(b){case 3:var d=jN();break;case 1:d=CK();break;case 2:d={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:d=c.N("watch_later_iconchange_killswitch")?{G:"svg",W:{height:"100%",version:"1.1",
viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Ra("icon",d);a.icon=b}};
oQ=function(a){g.yN.call(this,a);var b=this;this.Fz=(this.Sp=g.xE(this.api.V()))&&(this.api.V().isMobile||Du()||Bu());this.kD=48;this.lD=69;this.xk=null;this.Zn=[];this.wc=new g.EN(this.api);this.bv=this.api.N("web_player_deprecate_double_tap_ux")?new jO:new kO(this.api);this.Rh=new g.X({G:"div",L:"ytp-chrome-top"});this.zx=[];this.tooltip=new g.lQ(this.api,this);this.backButton=this.kt=null;this.channelAvatar=new PN(this.api,this);this.title=new kQ(this.api,this);this.Gg=new g.vK({G:"div",L:"ytp-chrome-top-buttons"});
this.rh=null;this.ji=new IN(this.api,this,this.Rh.element);this.overflowButton=this.Xf=null;this.ag="1"===this.api.V().controlsType?new eQ(this.api,this,this.xd):null;this.contextMenu=new g.fO(this.api,this,this.wc);this.YC=!1;this.Ty=new g.X({G:"div",W:{tabindex:"0"}});this.Sy=new g.X({G:"div",W:{tabindex:"0"}});this.Ow=null;this.rG=this.Fy=!1;var c=a.eb(),d=a.V(),e=a.getVideoData();this.Sp&&(g.L(a.getRootNode(),"ytp-embed"),g.L(a.getRootNode(),"ytp-embed-playlist"),this.Fz&&(g.L(a.getRootNode(),
"ytp-embed-overlays-autohide"),g.L(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.kD=60,this.lD=89);this.api.V().isMobile&&(g.L(a.getRootNode(),"ytp-mobile"),this.api.V().C&&g.L(a.getRootNode(),"ytp-embed-mobile-exp"));this.gg=e&&e.gg;g.H(this,this.wc);g.yM(a,this.wc.element,4);g.H(this,this.bv);g.yM(a,this.bv.element,4);e=new g.X({G:"div",L:"ytp-gradient-top"});g.H(this,e);g.yM(a,e.element,1);this.OG=new g.hL(e,250,!0,100);g.H(this,this.OG);g.H(this,this.Rh);g.yM(a,this.Rh.element,
1);this.NG=new g.hL(this.Rh,250,!0,100);g.H(this,this.NG);g.H(this,this.tooltip);g.yM(a,this.tooltip.element,4);var f=new vO(a);g.H(this,f);g.yM(a,f.element,5);f.subscribe("show",function(l){b.hn(f,l)});
this.zx.push(f);this.kt=new wO(a,this,f);g.H(this,this.kt);d.showBackButton&&(this.backButton=new DN(a),g.H(this,this.backButton),this.backButton.Ea(this.Rh.element));this.Sp||this.kt.Ea(this.Rh.element);this.channelAvatar.Ea(this.Rh.element);g.H(this,this.channelAvatar);g.H(this,this.title);this.title.Ea(this.Rh.element);g.H(this,this.Gg);this.Gg.Ea(this.Rh.element);this.rh=new g.nQ(a,this);g.H(this,this.rh);this.rh.Ea(this.Gg.element);var h=new g.CO(a,this);g.H(this,h);g.yM(a,h.element,5);h.subscribe("show",
function(l){b.hn(h,l)});
this.zx.push(h);this.shareButton=new g.BO(a,this,h);g.H(this,this.shareButton);this.shareButton.Ea(this.Gg.element);this.Ng=new g.gO(a,this);g.H(this,this.Ng);this.Ng.Ea(this.Gg.element);d.ek&&(e=new IO(a),g.H(this,e),g.yM(a,e.element,4));this.Sp&&this.kt.Ea(this.Gg.element);g.H(this,this.ji);this.ji.Ea(this.Gg.element);e=new KN(a,this,this.ji);g.H(this,e);e.Ea(this.Gg.element);this.Xf=new sO(a,this);g.H(this,this.Xf);g.yM(a,this.Xf.element,5);this.Xf.subscribe("show",function(){b.hn(b.Xf,b.Xf.Vf())});
this.zx.push(this.Xf);this.overflowButton=new rO(a,this,this.Xf);g.H(this,this.overflowButton);this.overflowButton.Ea(this.Gg.element);this.ag&&g.H(this,this.ag);"3"===d.controlsType&&(e=new AO(a,this),g.H(this,e),g.yM(a,e.element,8));g.H(this,this.contextMenu);this.contextMenu.subscribe("show",this.EO,this);e=new DL(a,new CN(a));g.H(this,e);g.yM(a,e.element,4);this.Ty.Qa("focus",this.QR,this);g.H(this,this.Ty);this.Sy.Qa("focus",this.RR,this);g.H(this,this.Sy);(this.fm=d.Vd?null:new g.oO(a,c,this.contextMenu,
this.xd,this.wc,this.bv,function(){return b.Ak()}))&&g.H(this,this.fm);
this.Sp||(this.ON=new GO(this.api,this),g.H(this,this.ON),g.yM(a,this.ON.element,4));this.aO=new hQ(this.api,this);g.H(this,this.aO);g.yM(a,this.aO.element,4);this.Yn.push(this.wc.element);this.T(a,"fullscreentoggled",this.mm);this.T(a,"offlineslatestatechange",function(){b.api.Yv()&&dN(b.xd,128,!1)});
this.T(a,"cardstatechange",function(){b.Wi()});
this.T(a,"resize",this.iU);this.T(a,"showpromotooltip",this.JU)};
Gya=function(a){var b=a.api.V(),c=g.T(a.api.zb(),128);return b.i&&c&&!a.api.isFullscreen()};
pQ=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==jm(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=pQ(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d};
Hya=function(a,b,c){var d;if(a.api.V().N("web_player_nitrate_promo_tooltip")){var e=a.api.getVideoData();if(null===e||void 0===e?0:e.tooltipRenderer){e=e.tooltipRenderer;var f;if(f=!a.Ow){if(!(b=!b)){var h,l;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null===(h=e.tooltipDisplayStrategy)||void 0===h?void 0:h.type)&&"dtip-edu-player-iseecaptions"!==(null===(l=e.promoConfig)||void 0===l?void 0:l.promoId)}f=b}f&&(a.Ow=new xO(e,a,a.api),g.H(a,a.Ow),g.yM(a.api,a.Ow.element,8));null===(d=a.Ow)||
void 0===d?void 0:d.YB(e,c)}}};
g.qQ=function(a){g.LM.call(this,a);this.chrome=null;this.load()};
rQ=function(){var a=Iya;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=hs.apply(null,[pha.apply(null,g.la(b))].concat(g.la(c)));this.store=ks(a,void 0,b)};
sQ=function(a,b,c){for(var d=Object.assign({},a),e=g.r(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.la(h),g.la(l)):l;else if(!Array.isArray(l)&&g.Na(l)&&!Array.isArray(h)&&g.Na(h))d[f]=sQ(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.iw("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,Xca:h,Ra:l}),g.jy(b),a}return d};
tQ=function(a){this.u=a;this.C=this.i=0;this.B=-1};
uQ=function(a){var b=CC(a.u,a.i);++a.i;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=CC(a.u,a.i),++a.i,d*=128,c+=(b&127)*d;return c};
vQ=function(a,b){a.C=b;var c=a.B;for(a.B=-1;a.i+1<=a.u.totalLength;){0>c&&(c=uQ(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.B=c;break}c=-1;switch(e){case 0:uQ(a);break;case 1:a.i+=8;break;case 2:d=uQ(a);a.i+=d;break;case 5:a.i+=4}}return!1};
wQ=function(a,b,c){c=void 0===c?0:c;return vQ(a,b)?uQ(a):c};
xQ=function(a,b){var c=void 0===c?"":c;if(!vQ(a,b))return c;b=uQ(a);if(!b)return"";c=BC(a.u,a.i,b);a.i+=b;return g.B.TextDecoder?(new TextDecoder).decode(c):g.fb(c)};
yQ=function(a,b){var c=void 0===c?null:c;if(!vQ(a,b))return c;b=uQ(a);c=BC(a.u,a.i,b);a.i+=b;return c};
Jya=function(){this.i=0;this.B=void 0;this.C=[];this.u=new Uint8Array(4096);this.view=new DataView(this.u.buffer);g.B.TextEncoder&&(this.B=new TextEncoder)};
zQ=function(a,b){b=a.i+b;if(!(a.u.length>=b)){for(var c=2*a.u.length;c<b;)c*=2;b=new Uint8Array(c);b.set(a.u);a.u=b;a.view=new DataView(a.u.buffer)}};
AQ=function(a,b){if(268435455<b){zQ(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.i,c&127|128),c>>=7,a.i+=1;b=Math.floor(b/268435456)}for(zQ(a,4);127<b;)a.view.setUint8(a.i,b&127|128),b>>=7,a.i+=1;a.view.setUint8(a.i,b);a.i+=1};
BQ=function(a,b,c){AQ(a,b<<3|0);AQ(a,c)};
CQ=function(a,b,c){AQ(a,b<<3|2);b=c.length;AQ(a,b);zQ(a,b);a.u.set(c,a.i);a.i+=b};
EQ=function(a,b,c){c=a.B?a.B.encode(c):new Uint8Array(DQ(g.eb(c)).buffer);CQ(a,b,c)};
FQ=function(a,b){AQ(a,b<<3|2);a.C.push(a.i);a.i+=2};
GQ=function(a){var b=a.C.pop()||0,c=a.i-b-2;a.view.setUint8(b,c&127|128);a.view.setUint8(b+1,c>>7)};
HQ=function(a){var b=new tQ(new xC([Dc(decodeURIComponent(a))]));a=xQ(b,2);b=wQ(b,4);var c=Kya[b];if("undefined"===typeof c)throw a=new g.iw("Failed to recognize field number",{name:"EntityKeyHelperError",Hca:b}),g.jy(a),a;return{KR:b,entityType:c,entityId:a}};
IQ=function(a,b){var c=new Jya;EQ(c,2,a);a=Lya[b];if("undefined"===typeof a)throw b=new g.iw("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.jy(b),b;BQ(c,4,a);BQ(c,5,1);b=new Uint8Array(c.u.buffer,0,c.i);return encodeURIComponent(g.xc(b))};
JQ=function(a){a=a.key||a.id;if(!a)throw Error("Entity key is missing");return a};
KQ=function(a,b,c,d){if(void 0===d){d=a[b]||{};var e=["symbol"===typeof c?c:c+""];c={};for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&0>e.indexOf(f)&&(c[f]=d[f]);if(null!=d&&"function"===typeof Object.getOwnPropertySymbols){var h=0;for(f=Object.getOwnPropertySymbols(d);h<f.length;h++)0>e.indexOf(f[h])&&(c[f[h]]=d[f[h]])}f={};return Object.assign(Object.assign({},a),(f[b]=c,f))}f={};e={};return Object.assign(Object.assign({},a),(e[b]=Object.assign(Object.assign({},a[b]),(f[c]=d,f)),e))};
Mya=function(a,b,c,d,e){var f=a[b];if(null===f||void 0===f||!f[c])return a;d=sQ(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign(Object.assign({},a),(f[b]=Object.assign(Object.assign({},a[b]),(e[c]=d,e)),f))};
LQ=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
RQ=function(a){this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.i=16;if(!Nya){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;256>b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);MQ=new Uint8Array(256);NQ=LQ(256);OQ=LQ(256);PQ=LQ(256);QQ=LQ(256);for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;MQ[f]=e;b=e<<1^(e>>7&&283);var h=b^e;NQ[f]=b<<24|e<<16|e<<8|h;OQ[f]=h<<24|NQ[f]>>>8;PQ[f]=e<<24|OQ[f]>>>8;QQ[f]=e<<24|PQ[f]>>>8}Nya=!0}e=LQ(44);for(c=0;4>c;c++)e[c]=
a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;44>c;c++)a=e[c-1],c%4||(a=(MQ[a>>16&255]^d)<<24|MQ[a>>8&255]<<16|MQ[a&255]<<8|MQ[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
Oya=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};
Pya=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;40>n;)h=NQ[c>>>24]^OQ[d>>16&255]^PQ[e>>8&255]^QQ[f&255]^b[n++],l=NQ[d>>>24]^OQ[e>>16&255]^PQ[f>>8&255]^QQ[c&255]^b[n++],m=NQ[e>>>24]^OQ[f>>16&255]^PQ[c>>8&255]^QQ[d&255]^b[n++],f=NQ[f>>>24]^OQ[c>>16&255]^PQ[d>>8&255]^QQ[e&255]^b[n++],c=h,d=l,e=m;a=a.u;h=b[40];a[0]=MQ[c>>>24]^h>>>24;a[1]=MQ[d>>16&255]^h>>16&255;a[2]=MQ[e>>8&255]^
h>>8&255;a[3]=MQ[f&255]^h&255;h=b[41];a[4]=MQ[d>>>24]^h>>>24;a[5]=MQ[e>>16&255]^h>>16&255;a[6]=MQ[f>>8&255]^h>>8&255;a[7]=MQ[c&255]^h&255;h=b[42];a[8]=MQ[e>>>24]^h>>>24;a[9]=MQ[f>>16&255]^h>>16&255;a[10]=MQ[c>>8&255]^h>>8&255;a[11]=MQ[d&255]^h&255;h=b[43];a[12]=MQ[f>>>24]^h>>>24;a[13]=MQ[c>>16&255]^h>>16&255;a[14]=MQ[d>>8&255]^h>>8&255;a[15]=MQ[e&255]^h&255};
SQ=function(){var a;if(!Qya&&!g.Pw){var b=null===(a=window.crypto)||void 0===a?void 0:a.subtle;if((null===b||void 0===b?0:b.importKey)&&(null===b||void 0===b?0:b.sign)&&(null===b||void 0===b?0:b.encrypt))return b}};
TQ=function(a){this.C=a};
UQ=function(a){this.u=a};
VQ=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.I=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()};
Sya=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,q,t=0;64>t;t++)p=n+Rya[t]+d[t]+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^~h&m),q=((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+q;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};
Uya=function(a){var b=new Uint8Array(32),c=64-a.u;55<a.u&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.C,f=1;9>f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.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;Tya(a);return b};
Tya=function(a){a.i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.C=0;a.u=0};
WQ=function(a,b){b=void 0===b?{}:b;g.iw.call(this,Vya[a],Object.assign({name:"PESEncoderError",type:a},b));this.type=a;this.level="WARNING";Object.setPrototypeOf(this,WQ.prototype)};
Wya=function(a){return new WQ("WRONG_DATA_TYPE",{FR:a})};
Xya=function(a){return a instanceof Error?new WQ("UNKNOWN_ENCODE_ERROR",{originalMessage:a.message}):new WQ("UNKNOWN_ENCODE_ERROR")};
Yya=function(a){return a instanceof Error?new WQ("UNKNOWN_DECODE_ERROR",{originalMessage:a.message}):new WQ("UNKNOWN_DECODE_ERROR")};
Zya=function(a,b){a=a instanceof WQ?a:b(a);g.jy(a);throw a;};
$ya=function(){};
aza=function(a,b,c){try{return a.B(b,c)}catch(d){Zya(d,Xya)}};
bza=function(a,b,c){try{return a.u(b,c)}catch(d){Zya(d,Yya)}};
XQ=function(a){a=(new TextEncoder).encode(a).slice(0,16);var b=new Uint8Array(16);b.set(a);return b};
YQ=function(a){this.i=a};
ZQ=function(){};
cza=function(){this.i={};this.i[0]=new ZQ;if(!g.O("aes_pes_encoder_killswitch")){var a=this.i;try{var b=jw();var c=XQ(b);var d=new YQ(new UQ(c),new TQ(c))}catch(e){throw a=new WQ("KEY_CREATION_FAILED"),g.jy(a),a;}a[1]=d}};
$Q=function(a,b){b=void 0===b?0:b;a=a.i[b];if(!a)throw b=new WQ("INVALID_ENCODER_VERSION",{FR:b}),g.jy(b),b;return a};
eza=function(a){var b=dza[a];if(b)return b;g.ky(new g.iw("Entity model not found.",{entityType:a}))};
fza=function(a){var b=new cza,c=a.objectStore("EntityStore"),d=a.objectStore("EntityAssociationStore");Gw(c,{},function(e){var f=e.getValue(),h=bza($Q(b,f.version),f.data,f.key),l=HQ(f.key).entityType;l=eza(l);if(!l)return e.continue();l=(new l(h)).Qd();h=[];l=g.r(l);for(var m=l.next();!m.done;m=l.next())h.push(Dw(d,{parentEntityKey:f.key,childEntityKey:m.value}));return uw.all(h).then(function(){return e.continue()})})};
gza=function(){if(aR)return aR();var a={};aR=fx("PersistentEntityStoreDb",{iq:(a.EntityStore={Sm:1},a.EntityAssociationStore={Sm:2},a),hx:!1,upgrade:function(b,c,d){c(1)&&Fw(Aw(b,"EntityStore",{keyPath:"key"}),"entityType","entityType");c(2)&&(b=Aw(b,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Fw(b,"byParentEntityKey","parentEntityKey"),Fw(b,"byChildEntityKey","childEntityKey"));c(3)&&!c(1)&&fza(d)},
version:g.O("pes_migrate_association_data")?3:2});return aR()};
hza=function(a){return Mw(gza(),a)};
iza=function(a,b){this.i=a;this.u=b;this.B={}};
jza=function(a,b){return bza($Q(a.u,b.version),b.data,b.key)};
bR=function(a,b,c){return a.i.objectStore("EntityStore").get(b).then(function(d){if(d){if(c&&d.entityType!==c)throw Error("Incorrect entity type");return jza(a,d)}})};
cR=function(a,b,c){return c?(c=c.map(function(d){return bR(a,d,b)}),uw.all(c)):Iw(a.i.objectStore("EntityStore").index("entityType"),IDBKeyRange.only(b)).then(function(d){return d.map(function(e){return jza(a,e)})})};
eR=function(a,b,c){var d=JQ(b),e=$Q(a.u,1),f={key:d,entityType:c,data:aza(e,b,d),version:1};return a.i.objectStore("EntityStore").get(d).then(function(h){if(h&&h.entityType!==c)throw Error("Incorrect entity type");}).then(function(){return uw.all([Dw(a.i.objectStore("EntityStore"),f),
kza(a,b,c)])}).then(function(){dR(a,d,c);
return d})};
fR=function(a,b,c){b=b.map(function(d){return eR(a,d,c)});
return uw.all(b)};
gR=function(a,b,c){if(null===c||void 0===c?0:c.sJ){var d=new Set;return lza(a,b,d).then(function(){for(var f=[],h=g.r(d),l=h.next();!l.done;l=h.next())f.push(gR(a,l.value));return uw.all(f).then(function(){})})}var e=HQ(b).entityType;
return uw.all([a.i.objectStore("EntityStore").delete(b),hR(a,b)]).then(function(){dR(a,b,e)})};
mza=function(a,b){return Jw(a.i.objectStore("EntityStore").index("entityType"),{query:IDBKeyRange.only(b)},function(c){return uw.all([c.delete(),hR(a,c.mz())]).then(function(){dR(a,c.mz(),b);return c.continue()})})};
nza=function(a,b,c,d){var e=$Q(a.u,1);return bR(a,b,d).then(function(f){if(f){f=sQ(f,c,void 0);var h={key:b,entityType:d,data:aza(e,f,b),version:1};return uw.all([Dw(a.i.objectStore("EntityStore"),h),kza(a,f,d)])}}).then(function(){dR(a,b,d);
return b})};
dR=function(a,b,c){var d=a.B[c];d||(d=new Set,a.B[c]=d);d.add(b)};
oza=function(a,b,c){var d=JQ(b);c=eza(c);if(!c)return uw.resolve([]);c=new c(b);a=a.i.objectStore("EntityAssociationStore");b=[];c=g.r(c.Qd());for(var e=c.next();!e.done;e=c.next())b.push(Dw(a,{parentEntityKey:d,childEntityKey:e.value}));return uw.all(b).then(function(f){return f.map(function(h){return h[1]})})};
hR=function(a,b){return a.i.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b))};
kza=function(a,b,c){var d=JQ(b);return hR(a,d).then(function(){return oza(a,b,c)})};
lza=function(a,b,c){if(c.has(b))return uw.resolve(void 0);c.add(b);return pza(a,b).then(function(d){return a.i.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b)).then(function(){return d})}).then(function(d){var e=uw.resolve(void 0),f={};
d=g.r(d);for(var h=d.next();!h.done;f={EB:f.EB},h=d.next())f.EB=h.value,e=e.then(function(l){return function(){return lza(a,l.EB,c)}}(f));
return e}).then(function(){})};
pza=function(a,b){var c=a.i.objectStore("EntityAssociationStore");return Iw(c.index("byParentEntityKey"),IDBKeyRange.only(b)).then(function(d){var e=[];d=g.r(d);for(var f=d.next();!f.done;f=d.next())f=f.value,e.push(Iw(c.index("byChildEntityKey"),f.childEntityKey));return uw.all(e)}).then(function(d){var e=[];
d=g.r(d);for(var f=d.next();!f.done;f=d.next())f=f.value,1===f.length&&e.push(f[0].childEntityKey);return e})};
iR=function(a,b){g.E.call(this);this.token=a;this.u=b;this.i=[];a=new g.B.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+jw());a.onmessage=this.B.bind(this);this.channel=a};
jR=function(a,b,c){var d,e,f,h;return g.A(function(l){if(1==l.i)return g.x(l,hza(a.token),2);if(3!=l.i)return d=l.u,g.x(l,Cw(d,["EntityStore","EntityAssociationStore"],b,function(m){e=new iza(m,a.u);return c(e)}),3);
f=l.u;e&&(h=e.B,0<Object.keys(h).length&&(a.channel.postMessage(h),qza(a,h)));return l.return(f)})};
kR=function(a,b){a.i.push(b);return function(){var c=a.i.indexOf(b);0<=c&&a.i.splice(c,1)}};
lR=function(a,b,c){return jR(a,{mode:"readwrite",Lc:!0},function(d){return eR(d,b,c)})};
rza=function(a,b){return jR(a,{mode:"readwrite",Lc:!0},function(c){return fR(c,b,"offlineOrchestrationActionWrapperEntity")})};
sza=function(a,b){return jR(a,{mode:"readwrite",Lc:!0},function(c){return gR(c,b,void 0)})};
mR=function(a,b,c){return jR(a,{mode:"readonly",Lc:!0},function(d){return bR(d,b,c)})};
nR=function(a,b,c){return jR(a,{mode:"readonly",Lc:!0},function(d){return cR(d,b,c)})};
qza=function(a,b){a=g.r(a.i);for(var c=a.next();!c.done;c=a.next())c=c.value,c=c(b),tza&&c&&tza.push(c)};
pR=function(){oR||(oR=uza());return oR};
uza=function(){var a,b,c;return g.A(function(d){if(1==d.i)return ta(d,2),g.x(d,g.Tw(),4);if(2!=d.i){a=d.u;if(!a||!kw()||"undefined"===typeof g.B.BroadcastChannel)return d.return();b=new cza;return d.return(new iR(a,b))}c=va(d);c instanceof Error&&g.jy(c);return d.return()})};
xza=function(a){var b=vza,c;return g.A(function(d){if(1==d.i){c=a.mutations;if(!c||0>=c.length)return d.return();if(b){var e=c,f={type:"ENTITY_LOADED"};void 0!==e&&(f.payload=e);b.dispatch(f)}return g.x(d,wza(c),2)}c.length=0;g.sa(d)})};
wza=function(a){var b;return g.A(function(c){return 1==c.i?g.x(c,pR(),2):(b=c.u)?g.x(c,jR(b,"readwrite",function(d){for(var e={},f={},h=g.r(a),l=h.next();!l.done;f={fg:f.fg,Wq:f.Wq},l=h.next())f.fg=l.value,f.fg.entityKey&&yza(f.fg)&&(f.Wq=ve(f.fg.payload),l=void 0,"ENTITY_MUTATION_TYPE_REPLACE"===f.fg.type&&(l=function(m){return function(){return eR(d,m.fg.payload[m.Wq],m.Wq)}}(f)),"ENTITY_MUTATION_TYPE_DELETE"===f.fg.type&&(l=function(m){return function(){return gR(d,m.fg.entityKey)}}(f)),"ENTITY_MUTATION_TYPE_UPDATE"===
f.fg.type&&(l=function(m){return function(){return nza(d,m.fg.entityKey,m.fg.payload[m.Wq],m.Wq)}}(f)),l&&(e[f.fg.entityKey]=e[f.fg.entityKey]?e[f.fg.entityKey].then(l):l()));
return uw.all(Object.values(e))}),0):c.return()})};
yza=function(a){var b;a=null===(b=a.options)||void 0===b?void 0:b.persistenceOption;return"ENTITY_PERSISTENCE_OPTION_PERSIST"===a||"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"===a};
zza=function(a){return void 0!==a};
Aza=function(){this.locks=navigator.locks};
Bza=function(){try{var a=g.Ha("ytglobal.locks_");if(a)return a;var b;if(b=navigator){var c=navigator;b="locks"in c&&!!c.locks}if(b)return g.B.localStorage&&g.B.localStorage.getItem("noop"),a=new Aza,g.Ga("ytglobal.locks_",a,void 0),a}catch(d){}};
qR=function(a,b,c){g.ky(new g.iw("Woffle: "+a,c?{cotn:c}:""));b instanceof Error&&g.ky(b)};
Cza=function(a){var b,c,d,e,f,h,l,m,n,p,q,t,u,v,y,z,C;return g.A(function(G){if(1==G.i)return g.x(G,jR(a,{mode:"readonly",Lc:!0},function(F){return cR(F,"playbackData").then(function(J){var U=J.map(function(V){return V.transfer}).filter(function(V){return!!V}),K=J.map(function(V){return V.offlineVideoPolicy}).filter(function(V){return!!V});
U=cR(F,"transfer",U);K=cR(F,"offlineVideoPolicy",K);return uw.all([U,K]).then(function(V){var xa=g.r(V);V=xa.next().value;xa=xa.next().value;return[J,V,xa]})})}),2);
b=G.u;c=g.r(b);d=c.next().value;e=c.next().value;f=c.next().value;h=d;l=e;m=f;n={};p={};q=g.r(l);for(t=q.next();!t.done;t=q.next())(u=t.value)&&(n[u.key]=u);v=g.r(m);for(y=v.next();!y.done;y=v.next())(z=y.value)&&(p[z.key]=z);C=h.map(function(F){var J=n[F.transfer],U=p[F.offlineVideoPolicy];F=HQ(U.key).entityId;if("OFFLINE_VIDEO_POLICY_ACTION_DISABLE"===U.action){var K="OFFLINE_VIDEO_STATE_DISABLED";U.expirationTimestamp&&Number(U.expirationTimestamp)<Date.now()/1E3&&(K="OFFLINE_VIDEO_STATE_EXPIRED");
U=K}else if("OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED"===U.action)U="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(null===J||void 0===J?void 0:J.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":K="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":K="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":K="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":K="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":K=
"OFFLINE_VIDEO_STATE_PLAYABLE";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":K="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:K="OFFLINE_VIDEO_STATE_UNKNOWN"}if("OFFLINE_VIDEO_STATE_OFFLINE_FAILED"===K)switch(null===J||void 0===J?void 0:J.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":K="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":K="OFFLINE_VIDEO_STATE_STREAMS_MISSING";
break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":K="OFFLINE_VIDEO_STATE_NETWORK_ERROR"}U=K}F={id:F,videoState:U};if(null===J||void 0===J?0:J.cotn)F.cotn=J.cotn;if(null===J||void 0===J?0:J.maximumDownloadQuality)F.selectedVideoQuality=null===J||void 0===J?void 0:J.maximumDownloadQuality;return F});
return G.return({offlineVideos:C})})};
Dza=function(a){var b;return g.A(function(c){if(1==c.i)return g.x(c,Cza(a),2);b=c.u;g.dw("offlineStateSnapshot",b);g.sa(c)})};
Fza=function(a,b,c,d){var e=this,f;this.S=a;this.X=b;this.visibility=c;this.N=d;this.C=this.I=this.D=this.u=this.i=!1;this.K=new g.I(function(){Eza(e)});
null===(f=this.visibility)||void 0===f?void 0:f.subscribe("visibilitystatechange",function(){e.Ee()})};
Gza=function(a){if(!a.u&&!a.i){var b=Bza();if(b){a.u=!0;var c=jw("OfflineLockManager");b.request("woffle_orchestration_leader:"+c,{},function(){var d,e,f;return g.A(function(h){switch(h.i){case 1:return ta(h,2),a.B=new Dj,a.i=!0,a.u=!1,g.x(h,a.S(),4);case 4:return g.x(h,a.B.promise,5);case 5:ua(h,0);break;case 2:e=va(h),(null===(d=a.N)||void 0===d?0:d.call(a,"wo_relinquish_leadership_on_lock_request_error"))||Eza(a),e instanceof Error&&(f=e,f.args=[{name:"WoLockManagerError",tA:e.name}],g.jy(f)),
g.sa(h)}})})}}};
Hza=function(a){a.i&&(a.C=!0,rR(a))};
Iza=function(a,b){a.i&&(a.D=b,rR(a))};
Jza=function(a,b){a.i&&(a.I=b,rR(a))};
rR=function(a){a.visibility&&(a.I&&a.D&&a.C&&a.visibility.isBackground()?g.br(a.K,6E4):a.K.stop())};
Eza=function(a){a.B&&a.B.resolve();a.i=!1;a.u=!1;a.X()};
sR=function(a){g.E.call(this);this.api=a;"undefined"!==typeof g.B.BroadcastChannel&&(this.channel=new g.B.BroadcastChannel("PLAYER_OFFLINE_ERROR_SYNC:"+jw()),this.channel.onmessage=this.i.bind(this))};
tR=function(a,b){var c;a.api.Na("onOfflineOperationFailure",b);null===(c=a.channel)||void 0===c?void 0:c.postMessage(b)};
uR=function(){};
vR=function(){};
wR=function(a){if(a.includes(":"))throw Error("Invalid user cache name: "+a);return a+":"+jw("CacheStorage get")};
Kza=function(){return g.A(function(a){if(void 0!==xR)return a.return(xR);xR=new Promise(function(b){var c;return g.A(function(d){switch(d.i){case 1:return ta(d,2),g.x(d,yR.open("test-only"),4);case 4:return g.x(d,yR.delete("test-only"),5);case 5:ua(d,3);break;case 2:if(c=va(d),c instanceof Error&&"SecurityError"===c.name)return b(!1),d.return();case 3:b("caches"in window),g.sa(d)}})});
return a.return(xR)})};
AR=function(){return g.A(function(a){if(1==a.i)return g.x(a,Kza(),2);if(!a.u)return a.return(void 0);zR||(zR=new vR);return a.return(zR)})};
Lza=function(){var a;return g.A(function(b){return 1==b.i?g.x(b,AR(),2):(a=b.u)?b.return(a.delete("yt-player-local-img")):b.return(!0)})};
Mza=function(a){var b,c;return g.A(function(d){if(1==d.i)return g.x(d,AR(),2);if(3!=d.i){b=d.u;if(!b)throw Error("Cache API not supported");return a.length?g.x(d,b.open("yt-player-local-img"),3):d.return()}c=d.u;return g.x(d,Promise.all(a.map(function(e){return c.delete(e)})),0)})};
Nza=function(a){var b,c;return g.A(function(d){if(1==d.i)return g.x(d,AR(),2);if(3!=d.i){b=d.u;if(!b)throw Error("Cache API not supported");return a.length?g.x(d,b.open("yt-player-local-img"),3):d.return()}c=d.u;return g.x(d,c.addAll(a),0)})};
BR=function(a,b){var c=b.Gm,d,e;a.encryptedVideoId=b.videoId;a.cotn=c.cotn;a.offlineabilityFormatType=c.maximumDownloadQuality;a.isRefresh=null!==(d=c.isRefresh)&&void 0!==d?d:!1;a.softErrorCount=null!==(e=c.transferRetryCount)&&void 0!==e?e:0;g.dw("offlineTransferStatusChanged",a)};
Oza=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"}};
CR=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)};
DR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===a.actionType&&!!a.entityKey};
ER=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"===a.actionType&&!!a.entityKey};
GR=function(a,b,c,d){var e,f,h,l,m,n,p,q,t,u,v,y,z,C,G,F,J,U,K,V,xa,La,rb,pb;return g.A(function(Pb){switch(Pb.i){case 1:return e=IQ(a,"ytMainVideoEntity"),f=IQ(a,"ytMainChannelEntity"),h=IQ(a,"transfer"),g.x(Pb,jR(b,{mode:"readonly",Lc:!0},function(lc){return uw.all([bR(lc,e,"ytMainVideoEntity"),bR(lc,f,"ytMainChannelEntity"),bR(lc,h,"transfer"),cR(lc,"ytMainChannelEntity"),cR(lc,"offlineOrchestrationActionWrapperEntity")])}),2);
case 2:l=Pb.u;m=g.r(l);n=m.next().value;p=m.next().value;q=m.next().value;t=m.next().value;u=m.next().value;v=n;y=p;z=q;C=t;G=u;if(!v&&!y){Pb.fb(3);break}F=v?FR(v.thumbnail):[];if(!y){J=[];Pb.fb(4);break}return g.x(Pb,Pza(y,C),5);case 5:J=Pb.u;case 4:return U=J,g.x(Pb,Mza(F.concat(U)),3);case 3:K=[];V=IQ(a,"ytMainDownloadedVideoEntity");g.O("orchestration_use_cascading_delete")||K.push(V,e,f,IQ(a,"playbackData"),h,IQ(a,"offlineVideoPolicy"),IQ(a,"offlineVideoStreams"));xa=g.r(G);for(La=xa.next();!La.done;La=
xa.next())rb=La.value,pb=HQ(rb.key).entityId,pb!==a||Qza(c,rb.actionProto)||K.push(rb.key);return g.x(Pb,jR(b,{mode:"readwrite",Lc:!0},function(lc){var Qa=K.map(function(cc){return gR(lc,cc)});
g.O("orchestration_use_cascading_delete")&&Qa.push(gR(lc,V,{sJ:!0}));return uw.all(Qa)}),7);
case 7:Rza(z),tR(d,{entityKey:V,failureReason:"OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"}),g.sa(Pb)}})};
Tza=function(a,b,c){var d,e,f,h,l,m;return g.A(function(n){if(1==n.i)return g.x(n,jR(a,{mode:"readwrite",Lc:!0},function(p){var q=cR(p,"transfer"),t=cR(p,"offlineOrchestrationActionWrapperEntity"),u=g.O("orchestration_use_cascading_delete");return uw.all([q,t]).then(function(v){v=g.r(v);var y=v.next().value,z=v.next().value;v=Sza.map(function(J){return mza(p,J)});
z=g.r(z);for(var C=z.next();!C.done;C=z.next()){C=C.value;var G="ytMainDownloadedVideoEntity"===HQ(C.actionProto.entityKey).entityType,F="OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===C.actionProto.actionType;Qza(b,C.actionProto)||G&&(!G||F)||v.push(gR(p,C.key,{sJ:u}))}return uw.all(v).then(function(){return y})})}),2);
d=n.u;e=g.r(d);for(f=e.next();!f.done;f=e.next())h=f.value,Rza(h),l=HQ(h.key).entityId,m=IQ(l,"ytMainDownloadedVideoEntity"),tR(c,{entityKey:m,failureReason:"OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"});return g.x(n,Lza(),0)})};
Qza=function(a,b){return a.actionType===b.actionType&&a.entityKey===b.entityKey};
Rza=function(a){if(a&&"TRANSFER_STATE_COMPLETE"!==a.transferState&&"TRANSFER_STATE_FAILED"!==a.transferState){var b=HQ(a.key).entityId;BR({transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_BY_USER",statusType:"CANCELLED"},{videoId:b,Gm:a})}};
FR=function(a){if(!a||!a.thumbnails)return[];var b=[];a=g.r(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&b.push(c.url);return b};
Pza=function(a,b){var c,d,e,f,h,l,m,n;return g.A(function(p){c=FR(a.avatar);d=g.r(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,f.id!==a.id)for(h=g.r(FR(f.avatar)),l=h.next();!l.done;l=h.next())m=l.value,n=c.indexOf(m),-1!==n&&c.splice(n,1);return p.return(c)})};
HR=function(a){this.i=a};
Uza=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){switch(n.i){case 1:c=new Map,d=g.r(b),e=d.next();case 2:if(e.done){n.fb(4);break}f=e.value;h=c;l=h.set;m=f;return g.x(n,a.B(f),5);case 5:l.call(h,m,n.u);e=d.next();n.fb(2);break;case 4:return n.return(c)}})};
IR=function(a,b,c,d){this.status=a;this.i=b;this.u=c;this.failureReason=d};
JR=function(a,b,c){this.i=a;this.Y=b;this.u=c};
Xza=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){switch(n.i){case 1:e=b.entityKey;f=null===(d=null===(c=b.actionMetadata)||void 0===c?void 0:c.playbackDataActionMetadata)||void 0===d?void 0:d.isEnqueuedForExpiredStreamUrlRefetch;ta(n,2);var p;var q=null!==(p=b.actionMetadata)&&void 0!==p&&p.playbackDataActionMetadata?{maximumDownloadQuality:b.actionMetadata.playbackDataActionMetadata.maximumDownloadQuality}:void 0;return g.x(n,Vza(a,e,{isEnqueuedForExpiredStreamUrlRefetch:f,GO:q}),4);case 4:return(h=
n.u)?g.x(n,Wza(a,h,b),5):n.return(KR(b,!1,void 0,"OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED"));case 5:return n.return(KR(b,!0,h.orchestrationActions));case 2:return l=va(n),m="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",l instanceof nw&&"QUOTA_EXCEEDED"===l.type&&(m="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),qR("PDE handleAdd error"),n.return(KR(b,!1,void 0,m))}})};
Yza=function(a,b){var c,d,e,f,h,l,m,n,p,q,t,u,v,y;return g.A(function(z){switch(z.i){case 1:return c=b.entityKey,g.x(z,jR(a.i,{mode:"readonly",Lc:!0},function(C){var G=bR(C,c,"playbackData"),F=bR(C,IQ(HQ(b.entityKey).entityId,"offlineVideoPolicy"),"offlineVideoPolicy");C=bR(C,IQ(HQ(b.entityKey).entityId,"transfer"),"transfer");return uw.all([G,F,C])}),2);
case 2:d=z.u;e=g.r(d);f=e.next().value;h=e.next().value;l=e.next().value;m=f;n=h;p=l;if(!m||!n)return z.return(KR(b,!0));q={lastPlayerResponseTimestampSeconds:m.playerResponseTimestamp,offlineToken:n.offlineToken};t={};if(null===p||void 0===p?0:p.maximumDownloadQuality)t.maximumDownloadQuality=p.maximumDownloadQuality;ta(z,3);return g.x(z,Vza(a,c,{refreshData:q,GO:t}),5);case 5:return(u=z.u)?g.x(z,Wza(a,u,b),6):z.return(KR(b,!1,void 0,"OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED"));case 6:return z.return(KR(b,
!0,u.orchestrationActions));case 3:return v=va(z),y="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",v instanceof nw&&"QUOTA_EXCEEDED"===v.type&&(y="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),z.return(KR(b,!1,void 0,y))}})};
Vza=function(a,b,c){var d,e,f;return g.A(function(h){d=g.ZL();var l=a.Y,m=c.refreshData,n=c.isEnqueuedForExpiredStreamUrlRefetch,p=c.GO,q={entityKey:b};m&&(q.refreshData=m);n&&(q.isExpiredStreamUrlRefetch=n);p&&(q.downloadParameters=p);e={context:Vva(l),signatureTimestamp:18942,videos:[q]};f=g.JL(Zza);return h.return(g.bK(d,e,f))})};
Wza=function(a,b,c){var d;return g.A(function(e){if(1==e.i){if(!b.frameworkUpdates||!b.frameworkUpdates.entityBatchUpdate)return e.return();if(!(b.frameworkUpdates.entityBatchUpdate.mutations&&0<b.frameworkUpdates.entityBatchUpdate.mutations.length&&"ENTITY_MUTATION_TYPE_DELETE"===b.frameworkUpdates.entityBatchUpdate.mutations[0].type))return e.fb(2);d=HQ(b.frameworkUpdates.entityBatchUpdate.mutations[0].entityKey).entityId;return g.x(e,GR(d,a.i,c,a.u),2)}return g.x(e,xza(b.frameworkUpdates.entityBatchUpdate),
0)})};
KR=function(a,b,c,d){return new IR(b?"OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS":"OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",CR(a),c,d)};
LR=function(){HR.apply(this,arguments)};
aAa=function(a,b){var c,d;return g.A(function(e){switch(e.i){case 1:return c=CR(b),g.x(e,mR(a.i,b.entityKey,"transfer"),2);case 2:if(d=e.u)return e.return(new IR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c));ta(e,3);return g.x(e,$za(a,b),5);case 5:ua(e,4);break;case 3:return va(e),e.return(new IR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 4:return e.return(new IR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c))}})};
bAa=function(a,b){var c,d;return g.A(function(e){switch(e.i){case 1:return c=CR(b),g.x(e,mR(a.i,b.entityKey,"transfer"),2);case 2:d=e.u;if(!d||"TRANSFER_STATE_COMPLETE"!==d.transferState)return e.return(new IR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c));ta(e,3);return g.x(e,$za(a,b,!0),5);case 5:ua(e,4);break;case 3:return va(e),e.return(new IR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 4:return e.return(new IR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",
c))}})};
$za=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h;return g.A(function(l){if(1==l.i)return e=null===(d=b.actionMetadata)||void 0===d?void 0:d.transferEntityActionMetadata,f={key:b.entityKey,transferState:"TRANSFER_STATE_TRANSFER_IN_QUEUE",cotn:Xx(),enqueuedTimestampMs:Date.now().toString(),maximumDownloadQuality:null===e||void 0===e?void 0:e.maximumDownloadQuality,preferredAudioTrack:null===e||void 0===e?void 0:e.preferredAudioTrack,transferRetryCount:0,isRefresh:c},h=HQ(f.key).entityId,g.x(l,jR(a.i,
{mode:"readwrite",Lc:!0},function(m){var n=[];c&&n.push(gR(m,IQ(h,"offlineVideoStreams")));n.push(eR(m,f,"transfer"));return uw.all(n)}),2);
BR({transferStatusType:"TRANSFER_STATUS_TYPE_ENQUEUED",statusType:"ADDED_TO_QUEUE"},{videoId:h,Gm:f});g.sa(l)})};
dAa=function(a){var b,c,d,e;return g.A(function(f){if(1==f.i)return b=g.ZL(),c=cwa(a),d=g.JL(cAa),g.x(f,g.bK(b,c,d),2);e=f.u;if(!e)throw Error("Network request failed");if(!e.videos||!e.videos.length)throw Error("No data");return f.return(e.videos.map(function(h){return h.offlineVideoData}))})};
MR=function(a,b,c){this.i=a;this.Y=b;this.u=c};
gAa=function(a,b){var c,d,e,f,h,l;return g.A(function(m){switch(m.i){case 1:return c=CR(b),d=HQ(b.entityKey),e=d.entityId,ta(m,2),g.x(m,eAa(a,e),4);case 4:ua(m,3);break;case 2:return f=va(m),h="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",f instanceof nw&&"QUOTA_EXCEEDED"===f.type&&(h="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),m.return(new IR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,h));case 3:var n;var p=null!==(n=b.actionMetadata)&&void 0!==n&&n.ytMainDownloadedVideoEntityActionMetadata?
{playbackDataActionMetadata:{maximumDownloadQuality:b.actionMetadata.ytMainDownloadedVideoEntityActionMetadata.maximumDownloadQuality}}:void 0;l=fAa("OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e,p);return m.return(new IR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c,[l]))}})};
hAa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){switch(n.i){case 1:return c=CR(b),d=HQ(b.entityKey),e=d.entityId,g.x(n,mR(a.i,b.entityKey,"ytMainDownloadedVideoEntity"),2);case 2:f=n.u;if(!f)return n.return(new IR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c));ta(n,3);return g.x(n,eAa(a,e,f.addedTimestampMillis),5);case 5:h=fAa("OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",e);ua(n,4);break;case 3:return l=va(n),l instanceof Error&&"No data"===l.message?g.x(n,GR(e,a.i,b,a.u),4):(m="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",
l instanceof nw&&"QUOTA_EXCEEDED"===l.type&&(m="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),n.return(new IR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,m)));case 4:return n.return(new IR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c,h?[h]:void 0))}})};
iAa=function(a,b){var c,d;return g.A(function(e){switch(e.i){case 1:return c=CR(b),ta(e,2),d=HQ(b.entityKey).entityId,"!*$_ALL_VIDEOS_!*$"===d?g.x(e,Tza(a.i,b,a.u),5):g.x(e,GR(d,a.i,b,a.u),5);case 5:ua(e,3);break;case 2:return va(e),e.return(new IR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 3:return e.return(new IR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c))}})};
eAa=function(a,b,c){var d,e,f,h,l,m;return g.A(function(n){switch(n.i){case 1:return g.x(n,dAa([b]),2);case 2:return d=n.u,e=d[0],g.x(n,jAa(a,e,c),3);case 3:f=n.u;h=f.videoEntity;l=f.channelEntity;ta(n,4);var p=FR(h.thumbnail),q=FR(l.avatar);return g.x(n,Nza(p.concat(q)),6);case 6:ua(n,0);break;case 4:m=va(n);if(!a.Y.N("woffle_disable_thumbnails"))throw m;g.sa(n)}})};
jAa=function(a,b,c){var d,e,f,h,l;return g.A(function(m){if(1==m.i){if(!(b&&b.channel&&b.channel.offlineChannelData&&b.videoId))throw Error("Invalid OfflineVideoData");c||(c=Date.now().toString());e=null===(d=b.channel)||void 0===d?void 0:d.offlineChannelData;f={id:IQ(b.videoId,"ytMainChannelEntity"),channelId:e.channelId,title:e.title,avatar:e.thumbnail};h={id:IQ(b.videoId,"ytMainVideoEntity"),videoId:b.videoId,title:b.title,thumbnail:b.thumbnail,localizedStrings:{viewCount:b.shortViewCountText},
lengthSeconds:b.lengthSeconds?Number(b.lengthSeconds):void 0,publishedTimestampMillis:b.publishedTimestamp?(1E3*Number(b.publishedTimestamp)).toString():void 0,formattedDescription:b.description,channelOwner:f.id};l={id:IQ(b.videoId,"ytMainDownloadedVideoEntity"),video:h.id,playbackData:IQ(b.videoId,"playbackData"),offlineVideoPolicy:IQ(b.videoId,"offlineVideoPolicy"),addedTimestampMillis:c};return g.x(m,jR(a.i,{mode:"readwrite",Lc:!0},function(n){var p=eR(n,f,"ytMainChannelEntity"),q=eR(n,h,"ytMainVideoEntity");
n=eR(n,l,"ytMainDownloadedVideoEntity");return uw.all([p,q,n])}),2)}return m.return({videoEntity:h,
channelEntity:f,Fca:l})})};
fAa=function(a,b,c){b=IQ(b,"playbackData");c=Object.assign(Object.assign({},c),{priority:1,retryScheduleIntervalsInSeconds:kAa});return{actionType:a,entityKey:b,actionMetadata:c}};
lAa=function(a,b,c){return new RF(a,{cotn:b,raw_player_response:c,download_media:!0,start:Infinity,disable_watch_next:!0})};
mAa=function(){return{priority:1,retryScheduleIntervalsInSeconds:[1,2,4]}};
NR=function(a,b,c,d,e,f,h,l,m,n,p){this.entityType=a;this.actionId=b;this.action=c;this.parentActionId=d;this.rootActionId=void 0===e?b:e;this.childActionIds=f;this.prereqActionId=h;this.postreqActionIds=l;this.hasChildActionFailed=n;this.retryScheduleIndex=0;this.i=p||Date.now();this.retryScheduleIndex=m||0};
OR=function(a){return{key:IQ(a.actionId,"offlineOrchestrationActionWrapperEntity"),actionProto:a.action,parentActionId:a.parentActionId,rootActionId:a.rootActionId,childActionIds:a.childActionIds,prereqActionId:a.prereqActionId,postreqActionIds:a.postreqActionIds,retryScheduleIndex:a.retryScheduleIndex,hasChildActionFailed:a.hasChildActionFailed,enqueueTimeSec:(a.i/1E3).toFixed()}};
nAa=function(){this.i=new Map};
oAa=function(){PR||(PR=new nAa);return PR};
pAa=function(a,b){return{eventType:{flowEventNamespace:"FLOW_EVENT_NAMESPACE_OFFLINE_ORCHESTRATION",flowEventType:a},metadata:b,statusCode:void 0,csn:void 0}};
qAa=function(a,b,c){if(!c){var d=void 0===d?!1:d;c=a.i.get("FLOW_TYPE_OFFLINE_ORCHESTRATION");if(!c||d)c=Xx(),a.i.set("FLOW_TYPE_OFFLINE_ORCHESTRATION",c)}a={flowNonce:c,flowType:"FLOW_TYPE_OFFLINE_ORCHESTRATION",flowEventType:b.eventType};b.metadata&&(a.flowMetadata=b.metadata);void 0!==b.statusCode&&(a.flowEventStatus=b.statusCode);b.csn&&(a.csn=b.csn);g.dw("flowEvent",a,void 0)};
rAa=function(a,b,c){if(!a.action.entityKey)throw Error("entityKey is missing.");var d=HQ(a.action.entityKey);a={entityType:d.KR,entityId:d.entityId,offlineOrchestrationActionType:a.action.actionType,orchestrationAction:{orchestrationActionId:a.actionId}};b&&(a.offlineOrchestrationActionResult=b.status,a.isRetryable=b.i);c&&(a.additionalOrchestrationActions=c.map(function(e){return{orchestrationActionId:e.actionId}}));
return a};
QR=function(a,b){var c={offlineOrchestrationContext:rAa(a)};b=pAa(b,c);qAa(oAa(),b,a.rootActionId)};
RR=function(a,b,c){c=void 0===c?[]:c;b={offlineOrchestrationContext:rAa(a,b,c)};b=pAa(3,b);qAa(oAa(),b,a.rootActionId)};
sAa=function(){this.actions=[]};
tAa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,QR(c,1),a.actions.push(c);a.actions.sort(a.i)};
uAa=function(a,b){a=g.r(a.actions);for(var c=a.next();!c.done;c=a.next())if(c.value.actionId===b)return!0;return!1};
SR=function(a,b,c,d){g.E.call(this);var e=this;this.u=a;this.oa=b;this.X=c;this.D=d;this.i=new sAa;this.S=new px;this.C=new g.I(function(){e.retry()});
this.I=NaN;g.H(this,this.C);this.K=kR(this.u,this.Z.bind(this))};
wAa=function(a,b,c,d){var e;return g.A(function(f){if(1==f.i)return e=new SR(a,b,c,d),g.x(f,vAa(e),2);e.B?Promise.resolve():TR(e);return f.return(e)})};
TR=function(a){var b,c,d,e,f,h,l,m,n,p,q,t,u,v,y;return g.A(function(z){switch(z.i){case 1:if(a.B)throw Error("Already processing an action");if(a.isDisposed())return z.return();b=a.i.actions.shift();Iza(a.X,!b);if(void 0===b)return z.return();for(c=[b];;)if((d=a.i.actions[0])&&0===d.retryScheduleIndex&&d.entityType===b.entityType)c.push(a.i.actions.shift());else break;a.B=c;if(e=a.oa[b.entityType]){z.fb(2);break}a.B=void 0;return g.x(z,TR(a),3);case 3:return z.return();case 2:f=g.r(c);for(h=f.next();!h.done;h=
f.next())l=h.value,QR(l,2);ta(z,4,5);return g.x(z,Uza(e,c.map(function(C){return C.action})),7);
case 7:m=z.u,n=g.r(c),h=n.next();case 8:if(h.done){z.fb(5);break}p=h.value;q=m.get(p.action);return g.x(z,xAa(a,p,q),9);case 9:h=n.next();z.fb(8);break;case 5:wa(z);a.B=void 0;ya(z,6);break;case 4:return t=va(z),qR("Orchestration error",t),ta(z,12),g.x(z,yAa(a,c),14);case 14:ua(z,5);break;case 12:u=va(z);qR("Orchestration retry error",u);v=g.r(c);for(h=v.next();!h.done;h=v.next())y=h.value,3>y.retryScheduleIndex&&tAa(a.i,[y]);z.fb(5);break;case 6:return g.x(z,TR(a),0)}})};
xAa=function(a,b,c){var d,e,f,h,l;return g.A(function(m){if(1==m.i){if("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS"===c.status){h=void 0;try{h=null===(d=c.u)||void 0===d?void 0:d.map(function(n){return a.createAction(n,b)})}catch(n){return RR(b,c),l={entityKey:b.action.entityKey,
failureReason:"OFFLINE_OPERATION_FAILURE_REASON_UNSUPPORTED_ENTITY_FAILED"},tR(a.D,l),qR("Orchestration subactions creation error",n),m.return()}RR(b,c,h);return g.x(m,jR(a.u,{mode:"readwrite",Lc:!0},function(n){var p=[];if(h){var q=h.map(function(t){return OR(t)});
p.push(fR(n,q,"offlineOrchestrationActionWrapperEntity"))}q=OR(b);p.push(gR(n,q.key));return uw.all(p)}),9)}if("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE"!==c.status)return m.fb(0);
RR(b,c);if(c.i&&3>b.retryScheduleIndex+1)return g.x(m,yAa(a,[b]),0);e=(null===c||void 0===c?0:c.failureReason)?c.failureReason:"OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN";f={entityKey:b.action.entityKey,failureReason:e};tR(a.D,f);qR("Orchestration result is not retryable, deleting action");return g.x(m,sza(a.u,OR(b).key),0)}QR(b,4);g.sa(m)})};
UR=function(a,b){var c,d,e,f,h,l,m,n,p,q,t,u;return g.A(function(v){c=[];d=Infinity;e=4E3;f=g.r(b);for(h=f.next();!h.done;h=f.next())l=h.value,m=Number(l.enqueueTimeSec),n=zAa(m),p=l.retryScheduleIndex,q=null!=p&&0<p,0<n&&q?(d=Math.min(d,m),e=Math.min(n,e)):c.push(l);isFinite(d)&&(!a.C.isActive()||d<a.I)&&(a.I=d,a.C.start(e));a.S.Ce()||(t=c.length,c=c.filter(function(y){var z;y=(null===(z=y.actionProto)||void 0===z?void 0:z.actionType)||"OFFLINE_ORCHESTRATION_ACTION_TYPE_UNKNOWN";return!AAa.includes(y)}),
u=c.length<t,!a.C.isActive()&&u&&a.C.start(1));
0<c.length&&BAa(a,c);return g.x(v,a.B?Promise.resolve():TR(a),0)})};
DAa=function(a){var b,c,d,e,f,h,l;return g.A(function(m){if(1==m.i)return g.x(m,CAa(a),2);b=m.u;c=[];d=g.r(b);for(e=d.next();!e.done;e=d.next())f=e.value,h=HQ(f.key),l=h.entityId,uAa(a.i,l)||c.push(f);return g.x(m,UR(a,c),0)})};
zAa=function(a){a=1E3*a-Date.now();return 4E3<a?4E3:a};
yAa=function(a,b){var c,d,e;return g.A(function(f){c=g.r(b);for(d=c.next();!d.done;d=c.next()){e=d.value;var h=void 0,l=void 0,m=(null===(h=null===(l=e.action)||void 0===l?void 0:l.actionMetadata)||void 0===h?void 0:h.retryScheduleIntervalsInSeconds)||[1,2,4];h=1;e.retryScheduleIndex<m.length&&(h=m[e.retryScheduleIndex]);e.i=1E3*h+Date.now();e.retryScheduleIndex++}return g.x(f,EAa(a,b),0)})};
vAa=function(a){var b;return g.A(function(c){if(1==c.i)return g.x(c,nR(a.u,"offlineOrchestrationActionWrapperEntity"),2);b=c.u;return g.x(c,UR(a,b),0)})};
BAa=function(a,b){0!==b.length&&b.forEach(function(c){if(!c.key)throw Error("Entity key is required.");if(!c.actionProto)throw Error("OfflineOrchestrationAction is required.");var d=HQ(c.key),e=HQ(c.actionProto.entityKey);c=new NR(e.entityType,d.entityId,c.actionProto,c.parentActionId,c.rootActionId,c.childActionIds,c.prereqActionId,c.postreqActionIds,c.retryScheduleIndex,c.hasChildActionFailed,1E3*Number(c.enqueueTimeSec));3>c.retryScheduleIndex&&tAa(a.i,[c])})};
CAa=function(a,b){var c;return g.A(function(d){if(1==d.i)return g.x(d,nR(a.u,"offlineOrchestrationActionWrapperEntity",b),2);c=d.u;return d.return(c.filter(zza))})};
EAa=function(a,b){if(0===b.length)return Promise.resolve([]);b=b.map(function(c){return OR(c)});
return rza(a.u,b)};
FAa=function(){this.i=void 0};
HAa=function(a,b){var c,d,e,f,h;return g.A(function(l){c=b.videoId;d=b.V();e=!0;if(b.captionTracks.length)f=Nqa(b),a.i=new g.PM(d,b,f);else if(b.ac)h=g.Uqa(b),a.i=new g.RM(d,b.ac,c,h,b.Rj),e=b.Rj;else return l.return();return l.return(new Promise(function(m){var n;null===(n=a.i)||void 0===n?void 0:n.Rs(function(){return g.A(function(p){if(1==p.i)return g.x(p,GAa(a,c,e),2);m();g.sa(p)})})}))})};
GAa=function(a,b,c){c=void 0===c?!0:c;var d,e,f,h,l,m,n,p,q,t,u,v,y,z;return g.A(function(C){switch(C.i){case 1:if(!a.i)return C.return();d=[];e=g.MM(a.i.u,c);f=[];h={};l=g.r(e.entries());for(m=l.next();!m.done;h={AB:h.AB},m=l.next())n=m.value,p=g.r(n),q=p.next().value,t=p.next().value,h.AB=q,u=t,v=a.i.Lp(u,"json3"),y=g.yh(g.cu(v,{withCredentials:!0},3,500).then(function(G){return function(F){F={metadata:g.BF(e[G.AB]),trackData:F.xhr.responseText};f.push(F)}}(h)),function(G){qR("Caption fetch error",
G)}),d.push(y);
return g.x(C,lba(d),2);case 2:return ta(C,3),g.x(C,ypa(b,f),5);case 5:ua(C,0);break;case 3:z=va(C),qR("Caption DB transaction error",z),g.sa(C)}})};
IAa=function(a){var b;return g.A(function(c){if(1==c.i)return g.x(c,zpa(a),2);b=c.u;return c.return(!!b&&0<b.length)})};
JAa=function(){this.tag="woffle"};
KAa=function(a,b){this.api=a;this.i=b;this.logger=new JAa;this.u=!1};
LAa=function(a){return g.A(function(b){return b.return(Gpa(a))})};
MAa=function(a){var b;return g.A(function(c){if(1==c.i)return g.x(c,Dpa(a),2);b=c.u;return c.return(b.filter(function(d){return!!d.url}).map(function(d){return d.url}))})};
VR=function(a,b){var c=uF(b);if(1===c||0===c)return Promise.resolve();(c=NAa(a,b))&&c.stopVideo();a.B=0;return LAa(b)};
WR=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!0:d;var e="string"===typeof b?b:b.videoDetails.videoId;2===uF(e)&&((b=NAa(a,e))?b.stopVideo():a.logger.info(function(){return"Corresponding player for "+e+" not found. Pausing anyway"}),vF(e,2),a.B=2,c?OAa(a.i):d&&PAa(a.i))};
NAa=function(a,b){var c;return(null===(c=a.player)||void 0===c?void 0:c.getVideoData().videoId)===b?a.player:null};
QAa=function(a){switch(a){case "HD_1080":return"hd1080";case "HD":return"hd720";case "SD":return"large";case "LD":return"tiny";default:return"hd720"}};
YR=function(a){g.E.call(this);this.i=a;this.u=kR(this.i,this.B.bind(this))};
RAa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){switch(n.i){case 1:if(0===b.length)return n.return([]);c=b.map(function(p){return IQ(p,"transfer")});
return g.x(n,nR(a.i,"transfer",c),2);case 2:d=n.u;e=d.filter(zza).map(function(p){return HQ(p.key).entityId});
f=b.filter(function(p){return-1===e.indexOf(p)});
if(0===f.length)return n.return([]);h=g.r(f);l=h.next();case 3:if(l.done){n.fb(5);break}m=l.value;return g.x(n,LAa(m),4);case 4:l=h.next();n.fb(3);break;case 5:return n.return(f)}})};
TAa=function(a,b,c,d,e,f){var h,l,m;return g.A(function(n){h="STREAM_TYPE_UNKNOWN";c.video&&c.audio?(h="STREAM_TYPE_AUDIO_AND_VIDEO",qR("unexpected stream type")):c.video&&!c.audio?h="STREAM_TYPE_VIDEO":!c.video&&c.audio&&(h="STREAM_TYPE_AUDIO");l=IQ(b,"offlineVideoStreams");m={numBytesDownloaded:e.toFixed(),numTotalBytes:f.toFixed(),streamType:h,streamState:"DOWNLOAD_STREAM_STATE_IN_PROGRESS",formatStreamBytes:JSON.stringify(d),itag:"STREAM_TYPE_AUDIO_AND_VIDEO"===h?Number(c.jc()):void 0};return g.x(n,
jR(a,{mode:"readwrite",Lc:!0},function(p){var q=bR(p,l,"offlineVideoStreams"),t=bR(p,IQ(b,"transfer"),"transfer");return uw.all([q,t]).then(function(u){var v=g.r(u);u=v.next().value;v=v.next().value;if(!v)return gR(p,l).then(function(){});
u=[eR(p,SAa(u,d,m,l),"offlineVideoStreams")];v.offlineVideoStreams||(v.offlineVideoStreams=[]);-1===v.offlineVideoStreams.indexOf(l)&&(v.offlineVideoStreams.push(l),u.push(eR(p,v,"transfer")));return uw.all(u)})}),0)})};
UAa=function(a,b){var c,d,e,f,h;return g.A(function(l){if(1==l.i)return c=IQ(b,"offlineVideoStreams"),g.x(l,mR(a,c,"offlineVideoStreams"),2);d=l.u;if(!d||!d.streamsProgress)return l.return();e=g.r(d.streamsProgress);for(f=e.next();!f.done;f=e.next())h=f.value,h.streamState="DOWNLOAD_STREAM_STATE_COMPLETE",h.numTotalBytes!==h.numBytesDownloaded&&(h.numBytesDownloaded=h.numTotalBytes);return g.x(l,lR(a,d,"offlineVideoStreams"),0)})};
SAa=function(a,b,c,d){if(a&&a.streamsProgress){d=a;a:{b=b.itag+";"+b.xtags;for(var e=a.streamsProgress,f=0;f<e.length;f++){var h=JSON.parse(e[f].formatStreamBytes);if(h.itag+";"+h.xtags===b){e[f]=c;c=e;break a}}e.push(c);c=e}d.streamsProgress=c}else a={key:d,streamsProgress:[c]};return a};
ZR=function(a,b,c,d){g.E.call(this);var e=this;this.u=a;this.api=b;this.Aa=c;this.va=d;this.D=new px;this.C=new g.I(function(){e.i&&"TRANSFER_STATE_TRANSFERRING"===e.i.transferState&&e.D.Ce()&&(3>(e.i.transferRetryCount||0)?WR(e.I,e.B,!1,!1):VR(e.I,e.B.videoDetails.videoId),e.lq("TRANSFER_FAILURE_REASON_TIMEOUT_NO_PROGRESS"))});
this.X=0;this.K=kR(this.u,this.LP.bind(this));this.I=new KAa(b,this);this.Ha=new FAa;this.S=new YR(this.u);this.oa=this.D.Qa("publicytnetworkstatus-online",this.XW.bind(this));this.Z=this.D.Qa("publicytnetworkstatus-offline",this.DW.bind(this));this.Ba=g.S(this.api.V().experiments,"web_player_transfer_timeout_threshold_ms")};
VAa=function(a){g.A(function(b){if(1==b.i)b=g.x(b,xpa(),2);else{var c=a.S;var d=tF();d=Object.keys(d);c=RAa(c,d);b=g.x(b,c,0)}return b})};
$R=function(a,b){b=void 0===b?!1:b;var c;return g.A(function(d){if(1==d.i){if(a.i)throw Error("Already downloading a video");return g.x(d,WAa(a),2)}return 4!=d.i?(c=d.u,Jza(a.Aa,!c),c&&a.D.Ce()?b?g.x(d,new Promise(function(e){g.Qt(e,1E3)}),4):d.fb(4):d.fb(0)):g.x(d,XAa(a,c),0)})};
YAa=function(a){return g.A(function(b){if(1==b.i)return a.B?g.x(b,VR(a.I,a.B.videoDetails.videoId),3):b.fb(0);aS(a);g.sa(b)})};
ZAa=function(a,b){var c,d,e;return g.A(function(f){switch(f.i){case 1:return ta(f,2),(c=!!b.captionTracks.length||!!b.ac)?g.x(f,IAa(b.videoId),4):f.return();case 4:return(d=f.u)?f.return():g.x(f,HAa(a.Ha,b),5);case 5:ua(f,0);break;case 2:e=va(f),qR("Caption downloading error",e,b.cotn),g.sa(f)}})};
XAa=function(a,b){var c,d,e,f,h;return g.A(function(l){switch(l.i){case 1:return a.i=b,"TRANSFER_STATE_TRANSFERRING"===a.i.transferState&&(c=HQ(a.i.key),BR({transferStatusType:"TRANSFER_STATUS_TYPE_RESUME_PROCESSING",statusType:"OFFLINING_RETRIED"},{videoId:c.entityId,Gm:a.i})),g.x(l,bS(a),2);case 2:return d=null,ta(l,3),g.x(l,$Aa(a,b),5);case 5:d=l.u;a.B=d;ua(l,4);break;case 3:return e=va(l),qR("error getting player response",e,b.cotn),g.x(l,a.lq("TRANSFER_FAILURE_REASON_INTERNAL"),6);case 6:return l.return();
case 4:return f=lAa(a.api.V(),b.cotn,d),g.x(l,ZAa(a,f),7);case 7:return h=f,g.x(l,MAa(f.videoId),8);case 8:h.rl=l.u;var m=a.I,n=b.maximumDownloadQuality,p;f.getPlayerResponse()&&AG(f);vF(f.videoId,2);m.B=2;m.u=!1;null===(p=m.player)||void 0===p?void 0:p.dispose();m.player=m.api.Jl(9,f);p={};Nx(m.player,(p.localmediachange=m.Ws,p.signatureexpired=m.xF,p.statechange=m.rU,p),m);n=QAa(n);m.N("hoffle_lmqf_killswitch")||(n=FA(n,n,!0,"m"),aBa(m.player,n,!1));cS(m.player,!1);dS(a);g.sa(l)}})};
WAa=function(a){var b,c;return g.A(function(d){if(1==d.i)return g.x(d,nR(a.u,"transfer"),2);b=d.u;c=b.filter(bBa).sort(cBa);return 0===c.length?d.return():d.return(c[0])})};
bS=function(a){return g.A(function(b){dS(a);return g.x(b,eS(a,"TRANSFER_STATE_TRANSFERRING"),0)})};
OAa=function(a){g.A(function(b){a.C.stop();return g.x(b,eS(a,"TRANSFER_STATE_PAUSED_BY_USER"),0)})};
PAa=function(a){g.A(function(b){if(1==b.i)return a.C.stop(),g.x(b,eS(a,"TRANSFER_STATE_TRANSFER_IN_QUEUE"),2);aS(a);g.sa(b)})};
dBa=function(a){var b,c,d;g.A(function(e){switch(e.i){case 1:a.C.stop();if(!a.i||!a.B){e.fb(2);break}b=lAa(a.api.V(),a.i.cotn,a.B);return g.x(e,ZAa(a,b),2);case 2:return g.x(e,eS(a,"TRANSFER_STATE_COMPLETE","DOWNLOAD_STREAM_STATE_COMPLETE"),4);case 4:return c=HQ(a.i.key),d=c.entityId,g.x(e,UAa(a.u,d),5);case 5:BR({transferStatusType:"TRANSFER_STATUS_TYPE_COMPLETED",statusType:"SUCCESS"},{videoId:d,Gm:a.i}),aS(a),$R(a),g.sa(e)}})};
eBa=function(a,b,c){var d;g.A(function(e){switch(e.i){case 1:if("TRANSFER_STATE_TRANSFERRING"===a.i.transferState){e.fb(2);break}return g.x(e,bS(a),2);case 2:d=Date.now();if(!(1E3<d-a.X)){e.fb(4);break}a.X=d;return g.x(e,TAa(a.u,c.videoId,c.u,c.formatStream,c.bytesDownloaded,c.i),5);case 5:var f=Math.floor(c.bytesDownloaded/1024).toFixed();BR({transferStatusType:"TRANSFER_STATUS_TYPE_PROCESSING",statusType:"OFFLINING_STARTED",alreadyDownloadedKbytes:f,totalFetchedKbytes:f,totalContentKbytes:Math.floor(c.i/
1024).toFixed()},{videoId:b,Gm:a.i});case 4:dS(a),g.sa(e)}})};
fBa=function(a){var b=3>(a.i.transferRetryCount||0);b&&(a=a.i,a.transferRetryCount=(a.transferRetryCount||0)+1);return b};
gBa=function(a,b){b=void 0===b?"TRANSFER_FAILURE_REASON_UNKNOWN":b;var c,d;return g.A(function(e){if(1==e.i)return c="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN","TRANSFER_FAILURE_REASON_NETWORK"===b?c="OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED":"TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE"===b&&(c="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),g.x(e,eS(a,"TRANSFER_STATE_FAILED","DOWNLOAD_STREAM_STATE_ERROR_STREAMS_MISSING",b),2);tR(a.va,{entityKey:a.i.key,failureReason:c});
d=HQ(a.i.key).entityId;var f={videoId:d,Gm:a.i},h=b,l={transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_WITH_FAILURE",statusType:"FAILED"};h&&(l.transferFailureReason=h,l.failureReason=Oza(h));BR(l,f);g.sa(e)})};
eS=function(a,b,c,d){var e;return g.A(function(f){if(1==f.i)return a.i.transferState=b,a.i.failureReason=d,ta(f,2),g.x(f,hBa(a,function(h){return c?cR(h,"offlineVideoStreams",a.i.offlineVideoStreams).then(function(l){for(var m=g.r(l),n=m.next();!n.done;n=m.next())if((n=n.value)&&n.streamsProgress){n=g.r(n.streamsProgress);for(var p=n.next();!p.done;p=n.next())p.value.streamState=c}return fR(h,l.filter(function(q){return!!q}),"offlineVideoStreams")}):uw.resolve(void 0)}),4);
if(2!=f.i)return ua(f,0);e=va(f);return e instanceof nw&&"QUOTA_EXCEEDED"===e.type?g.x(f,a.lq("TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE"),0):f.fb(0)})};
hBa=function(a,b){var c;return g.A(function(d){if(!a.i)return d.return();c=a.i;return g.x(d,jR(a.u,{mode:"readwrite",Lc:!0},function(e){var f=[eR(e,c,"transfer")];b&&f.push(b(e));return uw.all(f)}),0)})};
aS=function(a){a.i=void 0;a.B=void 0;a.C.stop()};
$Aa=function(a,b){var c,d,e,f;return g.A(function(h){if(1==h.i)return c=HQ(b.key),d=c.entityId,e=IQ(d,"playbackData"),g.x(h,mR(a.u,e,"playbackData"),2);f=h.u;if(null===f||void 0===f?0:f.playerResponseJson)return h.return(JSON.parse(f.playerResponseJson));throw Error("No PlayerResponse found");})};
dS=function(a){a.C.start(a.Ba||6E4)};
bBa=function(a){return void 0!==fS[a.transferState]};
cBa=function(a,b){var c=fS[a.transferState],d=fS[b.transferState];return c!==d?c-d:Number(a.enqueuedTimestampMs)-Number(b.enqueuedTimestampMs)};
kBa=function(a,b){var c=this;this.Y=a;this.api=b;this.K=new px;this.u=new Fza(function(){return iBa(c)},function(){jBa(c)},this.api.Np(),this.api.N.bind(this.api));
this.C=new sR(this.api);this.B=new Dj;Gza(this.u)};
iBa=function(a){return g.A(function(b){a.api.Na("onOrchestrationBecameLeader");a.i&&a.D||lBa(a).then(a.B.resolve).catch(a.B.reject);var c=a.B.promise;return g.x(b,c,0)})};
lBa=function(a){var b,c,d,e;return g.A(function(f){if(1==f.i)return g.x(f,pR(),2);if(3!=f.i){b=f.u;if(!b)return qR("PES is undefined"),f.return();a.i=new ZR(b,a.api,a.u,a.C);c={};d=(c.ytMainDownloadedVideoEntity=new MR(b,a.Y,a.C),c.playbackData=new JR(b,a.Y,a.C),c.transfer=new LR(b),c);e=a;return g.x(f,wAa(b,d,a.u,a.C),3)}e.D=f.u;return g.x(f,mBa(a),0)})};
mBa=function(a){var b;return g.A(function(c){switch(c.i){case 1:if(!a.i)return qR("transferManager is undefined"),c.return();if(!a.api.N("woffle_orch_init_killswitch")&&a.i.i){c.fb(2);break}return g.x(c,$R(a.i),2);case 2:return g.x(c,gS(a),4);case 4:return a.I=Rt(function(){gS(a)},9E5),jv(lv(),function(){a.i&&VAa(a.i)}),g.x(c,pR(),5);
case 5:return b=c.u,g.x(c,Dza(b),6);case 6:Hza(a.u),g.sa(c)}})};
jBa=function(a){var b,c;g.A(function(d){if(1==d.i)return a.i||a.D?g.x(d,a.B.promise,2):d.return();void 0!==a.I&&(Tt(a.I),a.I=void 0);null===(b=a.i)||void 0===b?void 0:b.dispose();a.i=void 0;null===(c=a.D)||void 0===c?void 0:c.dispose();a.D=void 0;a.api.Na("onOrchestrationLostLeader");a.B=new Dj;g.sa(d)})};
nBa=function(a,b,c){return g.A(function(d){var e=c?{ytMainDownloadedVideoEntityActionMetadata:{maximumDownloadQuality:c}}:void 0;return d.return(a.Pw(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e))})};
oBa=function(a,b){return g.A(function(c){return c.return(a.Pw(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})};
pBa=function(){var a,b,c;return g.A(function(d){if(1==d.i)return g.x(d,pR(),2);if(3!=d.i)return(a=d.u)?g.x(d,nR(a,"transfer"),3):d.return([]);b=d.u;c=b.map(function(e){return HQ(e.key).entityId});
return d.return(c)})};
gS=function(a,b){b=void 0===b?43200:b;var c,d,e,f,h,l,m,n;return g.A(function(p){if(1==p.i)return a.K.Ce()?g.x(p,pR(),2):p.return(qBa());if(3!=p.i){c=p.u;if(!c)return p.return([]);d=Date.now()/1E3;return g.x(p,nR(c,"offlineVideoPolicy"),3)}e=p.u;f=[];h=g.r(e);for(l=h.next();!l.done;l=h.next())m=l.value,Number(m.lastUpdatedTimestampSeconds)+b<=d&&(n=HQ(m.key).entityId,f.push(n));return f.length?p.return(oBa(a,f)):p.return([])})};
qBa=function(){var a,b,c,d,e,f;return g.A(function(h){switch(h.i){case 1:return g.x(h,pR(),2);case 2:a=h.u;if(!a)return h.return([]);b=Date.now()/1E3;return g.x(h,nR(a,"offlineVideoPolicy"),3);case 3:c=h.u,d=g.r(c),e=d.next();case 4:if(e.done){h.fb(6);break}f=e.value;if(!(f.expirationTimestamp&&Number(f.expirationTimestamp)<b)){h.fb(5);break}f.action="OFFLINE_VIDEO_POLICY_ACTION_DISABLE";return g.x(h,lR(a,f,"offlineVideoPolicy"),5);case 5:e=d.next();h.fb(4);break;case 6:return h.return(c.map(function(l){return l.key}))}})};
rBa=function(){var a=void 0===a?!1:a;try{var b=g.B.parent===g.B.top,c=!!Bza()||a;return b&&c&&"undefined"!==typeof g.B.BroadcastChannel&&"undefined"!==typeof g.B.indexedDB}catch(d){return!1}};
sBa=function(){for(var a=hS.length;4>a;a++){var b=g.Ng("VIDEO");b.load();hS.push(new g.cN(b))}};
tBa=function(){this.u=200;this.i=12};
uBa=function(a){var b=new tBa;b.u=g.S(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.i=g.S(a.experiments,"html5_gapless_max_played_ranges");return b};
g.iS=function(a,b,c,d){d=void 0===d?!1:d;yJ.call(this);this.ra=a;this.start=b;this.end=c;this.i=d};
vBa=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};c=f.C;if(b.Dh()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};if(a.i&&((b=b.kd())&&b.isView()&&(b=b.ra),b&&b.Kp().length>a.i&&g.iG(e)))return{msg:"played-ranges"};if(!e.C)return null;if(!e.C.i||!c.i)return{msg:"non-dash"};if(e.C.videoInfos[0].containerType!==c.videoInfos[0].containerType)return{msg:"container"};if(g.iG(f)&&g.iG(e))return{msg:"content-protection"};
a=c.i[0];e=e.C.i[0];f=a.audio;b=e.audio;return f.sampleRate===b.sampleRate||g.lj?(f.numChannels||2)!==(b.numChannels||2)?{msg:"channel-count"}:null:{msg:"sample-rate",ci:a.jc(),cr:f.sampleRate,ni:e.jc(),nr:b.sampleRate}};
kS=function(){this.B=this.i=0;this.u=Array.from({length:jS.length}).fill(0)};
wBa=function(){};
xBa=function(a){this.name=a;this.startTimeMs=(0,g.P)();this.i=!1};
yBa=function(){this.profiles=new wBa};
lS=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new kS),a.profiles[b].Sk(c,d))};
mS=function(){};
nS=function(){var a=this;this.i=this.u=iaa;this.promise=new nh(function(b,c){a.u=b;a.i=c})};
oS=function(a,b,c,d){g.E.call(this);var e=this;this.policy=a;this.i=b;this.u=c;this.C=this.B=null;this.D=-1;this.I=!1;this.Yk=new nS;this.Lj=d-1E3*b.Uc();this.Yk.then(void 0,function(){});
this.timeout=new g.I(function(){e.Le("timeout")},1E4);
g.H(this,this.timeout);this.K=isFinite(d);this.status={status:0,error:null};this.ma()};
DBa=function(a){var b,c,d,e,f,h,l,m,n;return g.A(function(p){if(1==p.i){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.ma();a.timeout.start();b=g.pS.Ko("gtfta");return g.x(p,a.Yk,2)}g.pS.vn(b);c=a.i.kd();if(c.Nk())return a.Le("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.C||!rD(a.C))return a.Le("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.u.Ip()!==a.C)return a.Le("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error||
"")));d=zBa(a);e=d.YL;f=d.RJ;h=d.XL;a.i.Bg(!1,!0);l=ABa(c,e,h,!a.u.getVideoData().isAd());a.u.setMediaElement(l);a.K&&(a.u.seekTo(a.u.getCurrentTime()+.001,{Qp:!0,MG:3,Td:"gapless_pseudo"}),l.play()||fu());m=c.Kb();m.cpn=a.i.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+h;a.u.Ca("gapless",g.kD(m));a.i.Ca("gaplessTo",a.u.getVideoData().clientPlaybackNonce);n=a.i.getPlayerType()===a.u.getPlayerType();BBa(a.i,f,!1,n,a.u.getVideoData().clientPlaybackNonce);BBa(a.u,a.u.getCurrentTime(),!0,n,a.i.getVideoData().clientPlaybackNonce);
(0,g.ih)(function(){!a.u.getVideoData().kb&&g.IJ(a.u.getPlayerState())&&CBa(a.u)});
qS(a,6);a.dispose();return p.return(Promise.resolve())})};
GBa=function(a){if(a.u.getVideoData().C){rS(a.u,a.C);qS(a,3);EBa(a);var b=FBa(a),c=b.NN;b=b.jX;c.subscribe("updateend",a.xr,a);b.subscribe("updateend",a.xr,a);a.xr(c);a.xr(b)}};
EBa=function(a){a.i.unsubscribe("internalvideodatachange",a.gp,a);a.u.unsubscribe("internalvideodatachange",a.gp,a);a.i.unsubscribe("mediasourceattached",a.gp,a);a.u.unsubscribe("statechange",a.Nc,a)};
ABa=function(a,b,c,d){a=a.isView()?a.ra:a;return new g.iS(a,b,c,d)};
qS=function(a,b){a.ma();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Yk.resolve(void 0))};
zBa=function(a){var b=a.i.kd();b=b.isView()?b.start:0;var c=a.i.getVideoData().isLivePlayback?Infinity:sS(a.i,!0);c=Math.min(a.Lj/1E3,c)+b;var d=a.K?100:0;a=c-a.u.Dh()+d;return{vR:b,YL:a,RJ:c,XL:Infinity}};
FBa=function(a){return{NN:a.B.i.Cd,jX:a.B.u.Cd}};
tS=function(a){g.E.call(this);var b=this;this.app=a;this.D=this.i=this.u=null;this.K=!1;this.C=null;this.S=uBa(this.app.V());this.B=null;this.I=function(){(0,g.ih)(function(){HBa(b)})}};
IBa=function(a,b,c,d){d=void 0===d?0:d;a.ma();a.Ns()||uS(a);a.C=new nS;a.u=b;var e=c,f=a.app.Jc(),h=f.getVideoData().isLivePlayback?Infinity:1E3*sS(f,!0);e>h&&(e=h-a.S.u,a.K=!0);f.getCurrentTime()>=e/1E3?a.I():(a.i=f,f=e,e=a.i,a.app.Ta.addEventListener(g.cz("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.az(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));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,sS(a.i,!0)),l=Math.max(0,f-a.i.getCurrentTime()),h=Math.min(d,sS(b)+l));f=Lna(e,h)||d;f!==d&&a.u.Ca("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.u;d.getVideoData().Hd=!0;d.getVideoData().La=!0;cS(d,!0);e="";a.i&&(e=g.vS(a.i.Rb.u),f=a.i.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.Ca("queued",e);0!==b&&d.seekTo(b+.01,{Qp:!0,MG:3,Td:"videoqueuer_queued"});a.B=new oS(a.S,a.app.Jc(),a.u,c);c=a.B;c.ma();Infinity!==c.status.status&&(qS(c,1),c.i.subscribe("internalvideodatachange",
c.gp,c),c.u.subscribe("internalvideodatachange",c.gp,c),c.i.subscribe("mediasourceattached",c.gp,c),c.u.subscribe("statechange",c.Nc,c),c.i.subscribe("newelementrequired",c.yM,c),c.gp());return a.C};
HBa=function(a){var b,c,d;g.A(function(e){switch(e.i){case 1:if(a.isDisposed())return e.return();a.ma();if(!a.C||!a.u)return a.ma(),e.return();a.K&&wS(a.app.Jc(),!0,!1);b=null;if(!a.B){e.fb(2);break}ta(e,3);return g.x(e,DBa(a.B),5);case 5:ua(e,2);break;case 3:b=c=va(e);case 2:if(!a.u)return a.ma(),e.return();a.app.Ru(a.u);g.pS.WF("vqsp",function(){a.app.Wk(a.u.getPlayerType())});
g.pS.WF("vqpv",function(){a.app.playVideo()});
b&&JBa(a.u,b.message);d=a.C;uS(a);return e.return(d.resolve(void 0))}})};
uS=function(a){if(a.i){var b=a.i;a.app.Ta.removeEventListener(g.cz("vqueued"),a.I);b.removeCueRange(a.D);a.i=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.Le("Canceled")),a.B=null);a.C=null;a.u=null;a.K=!1};
KBa=function(){var a=Pu();return!(!a||"visible"===a)};
MBa=function(a){var b=LBa();b&&document.addEventListener(b,a,!1)};
NBa=function(a){var b=LBa();b&&document.removeEventListener(b,a,!1)};
LBa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Ou+"VisibilityState"])return"";a=Ou+"visibilitychange"}return a};
xS=function(){g.Q.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.i=this.B=this.inline=!1;this.C=function(){a.Ee()};
MBa(this.C);this.D=this.getVisibilityState(this.qf(),this.isFullscreen(),this.Je(),this.isInline(),this.Ls(),this.Js())};
OBa=function(a){this.end=this.start=a};
g.BS=function(a,b,c){g.E.call(this);var d=this;this.api=a;this.Y=b;this.Da=c;this.Ha=new Map;this.Za=new Map;this.Ka=new Map;this.D=new Map;this.C=[];this.u=[];this.B=new Map;this.vb=new Map;this.I=new Map;this.rb=NaN;this.bb=this.Ba=null;this.jb=new g.I(function(){yS(d,d.rb)});
this.events=new g.WC(this);this.isLiveNow=!0;this.qc=g.S(this.Y.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.X=new g.I(function(){d.S=!0;d.Da.Ca("sdai",{aftimeout:d.qc});zS(d);d.Nv(!1)},this.qc);
this.S=!1;this.Aa=new Map;this.Wa=[];this.K=null;this.fc=new Set;this.va=[];this.wb=[];this.Zb=[];this.Gb=[];this.i=void 0;this.kb=0;this.Va=!0;this.oa=!1;this.La=[];this.Nb=new Set;this.dc=new Set;this.ac=new Set;this.Fc=g.S(this.Y.experiments,"html5_server_stitched_dai_decorated_url_retry_limit");this.Kl=0;this.Sa=new Set;this.Eb=0;this.Db=!1;this.Da.getPlayerType();PBa(this.Da,this);this.Z=this.Da.getVideoData().oa;g.H(this,this.jb);g.H(this,this.events);g.H(this,this.X);AS(this)||(this.events.T(this.api,
g.cz("serverstitchedcuerange"),this.onCueRangeEnter),this.events.T(this.api,g.dz("serverstitchedcuerange"),this.onCueRangeExit))};
SBa=function(a,b,c,d,e,f,h){var l=QBa(a,e,e+d);a.S&&a.Da.Ca("sdai","adaftto");var m=a.Y.N("web_player_ssdai_reject_invalid_ads_killswitch"),n=a.Da;f=void 0===f?e+d:f;e===f&&!d&&a.Y.N("html5_allow_zero_duration_ads_on_timeline")&&a.Da.Ca("sdai","attl0d");if(e>f&&(a.wj("Invalid_playback_enterTimeMs_"+e+"_is_greater_than_parentReturnTimeMs_"+f),m))return"";var p=1E3*n.getMinSeekableTime();if(e<p&&(a.wj("Invalid_playback_enterTimeMs_"+e+"_is_less_than_parentMinSeekableTimeMs_"+p),m))return"";n=1E3*n.getDuration();
if(f>n&&(a.wj("Invalid_playback_parentReturnTimeMs_"+f+"_is_greater_than_parentDurationMs_"+n),m))return"";n=null;if(m)for(m=g.r(a.u),p=m.next();!p.done;p=m.next()){p=p.value;if(e>=p.Cc&&e<p.Xc||f<=p.Xc&&f>p.Cc)return a.wj("Overlapping_child_playbacks_not_allowed._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_overlaps_existing_ChildPlayback_"+CS(p))),"";if(f===p.Cc)return a.wj("Neighboring_child_playbacks_must_be_added_sequentially._New_playback_video_id_"+(b.video_id+
"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_added_after_existing_ChildPlayback_"+CS(p))),"";e===p.Xc&&(n=p)}else m=g.ec(a.u,{Xc:e},function(t,u){return t.Xc-u.Xc}),0<=m&&(n=a.u[m]);
if(l&&n)for(m=g.r(a.va.entries()),p=m.next();!p.done;p=m.next()){var q=g.r(p.value);p=q.next().value;q=q.next().value;if(q.identifier===l.identifier){a.va.splice(p,1);break}}else if(l&&a.Y.N("web_player_ss_timeout_skip_ads"))return a.Da.Ca("sdai","rejectAttl"),h&&!Jn(a.Gb,function(t){return t===h})&&(a.Da.Ca("sdai","rejectAdBreakAttl"),a.Gb.push(h)),"";
l="ss_childplayback_"+RBa++;m=b.raw_player_response;m||a.Y.N("web_player_parse_ad_response_killswitch")||(p=b.player_response)&&(m=JSON.parse(p));b.cpn||(b.cpn=Xx());p=b.cpn;b=new RF(a.Y,b);b.Bc=l;c={Bc:l,playerType:c,durationMs:d,Cc:e,Xc:f,playerResponse:m,cpn:p,videoData:b,errorCount:0};g.ic(a.u,c,function(t,u){return t.Cc-u.Cc});
a.B.set(p,c);a.vb.set(l,c);a.Da.Ca("sdai",{attlDone:f-e});h?c.lk=h:n?c.lk=n.lk:c.lk=c.cpn;if(e=c.lk)(d=a.I.get(e))?(d.push(c),g.gc(d,function(t,u){return t.Cc-u.Cc})):a.I.set(e,[c]);
a.X.isActive()&&(a.S=!1,a.X.stop(),zS(a),a.Nv(!0));a.ma();return l};
TBa=function(a,b,c){return new g.az(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
ES=function(a,b,c){var d=a.oa,e=a.Da.getVideoData().clientPlaybackNonce,f={cpn:e,durationMs:0,Cc:0,playerType:1,Xc:0,videoData:a.Da.getVideoData(),errorCount:0},h=b.Jf-c.Jf;.5<Math.abs(h)&&a.Da.Ca("sdai",{ttdtb:1,delta:h,cpn:e,enter:b.adCpn,exit:c.adCpn});if(b.isAd&&c.isAd){if(b.adCpn&&c.adCpn){var l=a.B.get(b.adCpn);var m=a.B.get(c.adCpn)}m&&l&&(a.api.ea("serverstitchedvideochange",l.Bc,l.Qm),a.Da.Ca("sdai",{ssvc:"a2a"}),a.Kl++,DS(a.Da,m,l,c.Jf,b.Jf,d))}else if(!b.isAd&&c.isAd){a.api.ea("serverstitchedvideochange");
a.Da.Ca("sdai",{ssvc:"a2c"});a.Kl=0;a.kb=c.Fd.end;var n;c.adCpn&&(n=a.B.get(c.adCpn));n&&DS(a.Da,n,f,c.Jf,b.Jf,d)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.B.get(b.adCpn));p&&(a.kb=0,a.api.ea("serverstitchedvideochange",p.Bc,p.Qm),a.Da.Ca("sdai",{ssvc:"c2a"}),a.Kl=1,DS(a.Da,f,p,c.Jf,b.Jf,d))}};
GS=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.ec(a.u,{Cc:c},function(e,f){return e.Cc-f.Cc});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.u[d],a.Xc>=c)?{Hl:a,jq:b}:{Hl:void 0,jq:b}};
HS=function(a,b){var c="";AS(a)?c=a.Da.Ds(b/1E3):(b=UBa(a,b))&&(c=b.getId());return c?a.B.get(c):void 0};
UBa=function(a,b){a=g.r(a.D.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
yS=function(a,b){var c=a.bb||a.api.Jc().getPlayerState();IS(a,!0);var d=b;a.Y.N("web_player_ssdai_seek_without_offset_killswitch")&&(d=GS(a,b).jq);a.Da.seekTo(d);a=a.api.Jc();b=a.getPlayerState();g.IJ(c)&&!g.IJ(b)?a.playVideo():g.T(c,4)&&!g.T(b,4)&&a.pauseVideo()};
IS=function(a,b){a.rb=NaN;a.jb.stop();a.Ba&&b&&JS(a.Ba);a.bb=null;a.Ba=null};
KS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.ma();for(var d=b,e=c,f=[],h=g.r(a.u),l=h.next();!l.done;l=h.next())l=l.value,(l.Cc<d||l.Xc>e)&&f.push(l);a.u=f;d=b;e=c;f=g.r(a.D.values());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.Da.removeCueRange(h),a.D.delete(h.getId()),a.Da.Ca("sdai","rmAdCR"));d=GS(a,b/1E3);b=d.Hl;d=d.jq;b&&(d=1E3*d-b.Cc,e=b.Cc+d,a.ma(),b.durationMs=d,b.Xc=e,VBa(a,b));(b=GS(a,c/1E3).Hl)&&a.wj("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+
CS(b)+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")};
WBa=function(a){a.Y.N("web_player_ss_timeline_manager_reset_all_killswitch")||(a.Ha.clear(),a.Za.clear(),a.Ka.clear(),a.D.clear(),a.C=[],a.u=[],a.B.clear(),a.vb.clear(),a.I.clear(),a.Aa.clear(),a.Wa=[],a.K=null,a.fc.clear(),a.va=[],a.wb=[],a.Zb=[],a.Gb=[],a.La=[],a.Nb.clear(),a.dc.clear(),a.ac.clear(),a.Sa.clear(),a.isLiveNow=!0,a.S=!1,a.i=void 0,a.kb=0,a.Va=!0,a.oa=!1,a.Kl=0,a.Eb=0,a.Db=!1)};
VBa=function(a,b){var c=a.D.get(b.cpn);if(c){a=g.r(a.C);for(var d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Cc+b.durationMs:d.end===c.start&&(d.end=b.Cc);c.start=b.Cc;c.end=b.Cc+b.durationMs}};
CS=function(a){var b;return"playback_timelinePlaybackId_"+a.Bc+"_video_id_"+(null===(b=a.videoData)||void 0===b?void 0:b.videoId)+"_durationMs_"+a.durationMs+"_enterTimeMs_"+a.Cc+"_parentReturnTimeMs_"+a.Xc};
MS=function(a,b,c){c=a.Aa.get(c);c||(b+=LS(a),c=GS(a,b,1).Hl);return c};
NS=function(a,b,c,d){if(d)for(d=0;d<a.C.length;){var e=a.C[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;XBa(a,c,f)}else if(e.start>=b&&e.start<c&&e.end>c)e.start=c;else if(e.end>b&&e.end<=c&&e.start<b)e.end=b;else if(e.start>=b&&e.end<=c){a.Da.removeCueRange(e);if(a.La.includes(e))a.onCueRangeExit(e);a.C.splice(d,1);continue}d++}else XBa(a,b,c)};
XBa=function(a,b,c){b=TBa(b,c);c=!0;g.ic(a.C,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.C.length;){if(0<d){var e=a.C[d],f=a.C[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.Da.removeCueRange(e):c=!1;a.C.splice(d,1);continue}}d++}if(c)for(a.Da.addCueRange(b),b=a.Da.qv("serverstitchedcuerange",36E5),b=g.r(b),c=b.next();!c.done;c=b.next())a.D.delete(c.value.getId())};
OS=function(a,b,c){if(void 0===c||!c){c=g.r(a.Wa);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.Wa.push(new OBa(b))}};
g.YBa=function(a,b){a=g.r(a.Wa);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
LS=function(a){var b=0;a.Y.N("web_player_ss_media_time_offset")&&(b=0===a.Da.getStreamTimeOffset()?a.Da.Uc():a.Da.getStreamTimeOffset());return b};
ZBa=function(a,b){var c=[];a=a.I.get(b);if(!a)return[];a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
$Ba=function(a,b,c){var d=0;a=a.I.get(c);if(!a)return-1;a=g.r(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
aCa=function(a,b){var c,d=[];a=a.I.get(b);if(!a)return[];a=g.r(a);for(b=a.next();!b.done;b=a.next())(b=null===(c=b.value.videoData)||void 0===c?void 0:c.videoId)&&d.push(b);return d};
bCa=function(a,b){var c=0;a=a.I.get(b);if(!a)return 0;a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Xc!==b.Cc&&c++;return c};
cCa=function(a,b,c){var d=!1;if(c&&(c=a.I.get(c))){c=g.r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Xc!==e.Cc&&(e=e.cpn,b===e&&(d=!0),d&&!a.dc.has(e)&&(a.Da.Ca("sdai","decoratedAd."+e),a.dc.add(e)))}};
zS=function(a){a.Z&&a.Da.Ca("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Eb)+"_isTimeout_"+a.S})};
QBa=function(a,b,c){if(a.va.length)for(var d={},e=g.r(a.va),f=e.next();!f.done;d={Ro:d.Ro},f=e.next()){d.Ro=f.value;f=1E3*d.Ro.startSecs;var h=1E3*d.Ro.durationSecs+f;if(b>f&&b<h||c>f&&c<h)return Jn(a.Zb,function(l){return function(m){return m.identifier===l.Ro.identifier}}(d))||(a.Da.Ca("sdai","adskip_"+b),a.Zb.push(d.Ro)),d.Ro}};
PS=function(a){a.S=!1;a.X.isActive()&&zS(a);a.X.stop();a.Nv(!1)};
AS=function(a){return a.Y.experiments.ob("html5_ssdai_use_new_ad_report")};
QS=function(a,b,c){g.E.call(this);var d=this;this.api=a;this.Y=b;this.i=c;this.I=new Map;this.u=[];this.B=this.K=null;this.X=NaN;this.D=this.C=null;this.S=new g.I(function(){dCa(d,d.X)});
this.Z=[];this.oa=new g.I(function(){var e=d.Z.pop();if(e){var f=e.Bc,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.Z.length&&g.br(d.oa,4500))}});
this.events=new g.WC(this);c.getPlayerType();g.H(this,this.S);g.H(this,this.oa);g.H(this,this.events);this.events.T(this.api,g.cz("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Kh)};
hCa=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.i;f=void 0===f?e+d:f;if(e>f)return RS(a,"e.enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.getMinSeekableTime();if(e<n)return RS(a,"e.enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,h,l),"";n=1E3*m.getDuration();if(f>n)return m="e.returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
m.Uc(),RS(a,m,h,l),"";n=null;for(var p=g.r(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Cc&&e<q.Xc)return RS(a,"e.overlappingEnter",h,l),a.ma(),"";if(f<=q.Xc&&f>q.Cc)return RS(a,"e.overlappingReturn",h,l),a.ma(),"";if(f===q.Cc)return RS(a,"e.outOfOrder",h,l),a.ma(),"";e===q.Xc&&(n=q)}h="cs_childplayback_"+eCa++;l={Fd:SS(d,!0),Lj:Infinity,target:null};var t={Bc:h,playerVars:b,playerType:c,durationMs:d,Cc:e,Xc:f,pn:l};a.u=a.u.concat(t).sort(function(y,z){return y.Cc-z.Cc});
n?fCa(a,n,{Fd:SS(n.durationMs,!0),Lj:a.Y.N("timeline_manager_transition_killswitch")?Infinity:n.pn.Lj,target:t}):(b={Fd:SS(e,!1),Lj:e,target:t},a.I.set(b.Fd,b),a.ma(),m.addCueRange(b.Fd));b=a.Y.N("html5_gapless_preloading");if(a.i===a.api.Jc()&&(m=1E3*m.getCurrentTime(),m>=t.Cc&&m<t.Xc)){var u=a.api.Jc().getPlayerState(),v=m-t.Cc;(0,ch)(function(){gCa(a,t,v/1E3,u)});
b=!1}b&&(a.Z.unshift(t),g.br(a.oa,0));a.ma();return h};
SS=function(a,b){return new g.az(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
iCa=function(a,b,c,d){a.ma();a.B=d;a.api.Ky(a.i,c,b)};
jCa=function(a,b,c,d){a.ma();a.B=d;d=b.Bc;var e=b.playerVars,f=b.playerType;a.K=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
fCa=function(a,b,c){var d=b.pn;b.pn=c;TS(a,b)&&(c=a.api.Jc(),d.Fd===a.B&&US(a),a.ma(),c.removeCueRange(d.Fd),b=b.pn,a.ma(),c.addCueRange(b.Fd))};
US=function(a){a.K=null;a.B=null;a.api.Ns()||a.api.clearQueue()};
kCa=function(a,b){TS(a,b)||RS(a,"e.childPlaybackIsNotPresenting");return b.Xc===b.Cc+b.durationMs?(a=a.api.Jc(),b.Cc+1E3*a.getCurrentTime()):b.Xc};
VS=function(a,b){var c=0;a=g.r(a.u);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Cc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{Hl:d,jq:b-e};c=f-d.Xc/1E3}return{Hl:null,jq:b-c}};
dCa=function(a,b){var c=a.D||a.api.Jc().getPlayerState();WS(a,!0);b=a.Y.N("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.i.mj();var d=VS(a,b);b=d.Hl;d=d.jq;var e=b&&!TS(a,b)||!b&&a.i!==a.api.Jc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||US(a);a.ma();b?(a.ma(),gCa(a,b,d,c)):(a.ma(),XS(a,d,c))};
XS=function(a,b,c){var d=a.i,e=a.api.Jc();d!==e&&a.api.Wk(d.getPlayerType());d.seekTo(b,{Td:"application_timelinemanager"});lCa(a,c)};
gCa=function(a,b,c,d){var e=TS(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new RF(a.Y,b.playerVars);f.Bc=b.Bc;a.api.Sn(f,b.playerType)}f=a.api.Jc();e||(b=b.pn,a.ma(),f.addCueRange(b.Fd));f.seekTo(c,{Td:"application_timelinemanager"});lCa(a,d)};
lCa=function(a,b){a=a.api.Jc();var c=a.getPlayerState();g.IJ(b)&&!g.IJ(c)?a.playVideo():g.T(b,4)&&!g.T(c,4)&&a.pauseVideo()};
WS=function(a,b){a.X=NaN;a.S.stop();a.C&&b&&JS(a.C);a.D=null;a.C=null};
TS=function(a,b){a=a.api.Jc();return!!a&&a.getVideoData().Bc===b.Bc};
mCa=function(a){var b=a.u.find(function(e){return TS(a,e)});
if(b){var c=a.api.Jc();US(a);var d=new g.CJ(8);b=kCa(a,b)/1E3;XS(a,b,d);c.Ca("forceParentTransition","childPlayback");a.i.Ca("forceParentTransition","parentPlayback")}};
YS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.ma();for(var d=b,e=c,f=g.r(a.I),h=f.next();!h.done;h=f.next()){var l=g.r(h.value);h=l.next().value;l=l.next().value;l.Lj>=d&&l.target&&l.target.Xc<=e&&(a.i.removeCueRange(h),a.I.delete(h))}d=b;e=c;f=[];h=g.r(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Cc>=d&&l.Xc<=e){var m=a;m.K===l&&US(m);TS(m,l)&&m.api.Eo(l.playerType)}else f.push(l);a.u=f;d=VS(a,b/1E3);b=d.Hl;d=d.jq;b&&(d*=1E3,nCa(a,b,d,b.Xc===b.Cc+b.durationMs?b.Cc+d:b.Xc));
(b=VS(a,c/1E3).Hl)&&RS(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Bc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Cc+" parentReturnTimeMs="+b.Xc+"}.Child playbacks can only have duration updated not their start."))};
nCa=function(a,b,c,d){a.ma();b.durationMs=c;b.Xc=d;d={Fd:SS(c,!0),Lj:c,target:null};fCa(a,b,d);TS(a,b)&&1E3*a.api.Jc().getCurrentTime()>c&&(b=kCa(a,b)/1E3,c=a.api.Jc().getPlayerState(),XS(a,b,c))};
RS=function(a,b,c,d){c||d?a.i.Ca("timelineerror",b+";cpn."+(c+";videoId."+d)):a.i.Ca("timelineerror",b)};
pCa=function(a){a&&"web"!==a&&oCa.includes(a)};
aT=function(a,b){g.E.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.i=new g.I(function(){ZS(c);$S(c)});
g.H(this,this.i)};
ZS=function(a){var b=(0,g.P)();a.data.forEach(function(c){c.expire<b&&bT(a,c,!0)});
a.data=g.ap(a.data,function(c){return!(c.expire<b)})};
bT=function(a,b,c){c&&a.u&&a.u(b.value)};
$S=function(a){a.i.stop();var b=Infinity;for(var c=g.r(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&(b=Math.max(b-Date.now(),100),a.i.start(b))};
cT=function(){g.Lr.call(this);this.D=new Map};
dT=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.u=this.i=a-1};
qCa=function(a){return a.data[a.i]||0};
eT=function(a){g.E.call(this);this.B=a;this.i=new Map;this.u=new g.I(this.sample,250,this);g.H(this,this.u);this.start()};
fT=function(a,b){var c;if(null===(c=a.i.get(b))||void 0===c)a=void 0;else{a=c.buffer;for(b=[];a.u!==a.i;)a.u=(a.u+1)%a.data.length,b.push(a.data[a.u]);a=b}return a||[]};
gT=function(a,b){var c;return(null===(c=a.i.get(b))||void 0===c?void 0:qCa(c.buffer))||0};
hT=function(a){this.u=a;this.i=NaN;this.buffer=new dT(100)};
rCa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.jc()+")":a.jc()};
iT=function(a){g.E.call(this);var b=this;this.i=null;for(var c=[],d=0;100>=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.u=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.i=null:b.i=e.isVisible?e.intersectionRatio:0},c):null)&&this.u.observe(a)};
sCa=function(a,b){Rja(a,"version",b)};
kT=function(a){g.X.call(this,{G:"div",Ga:["html5-video-player"],W:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},U:[{G:"div",L:g.jT.VIDEO_CONTAINER,W:{"data-layer":"0"}}]});var b=this;this.app=a;this.Tu=this.Fa(g.jT.VIDEO_CONTAINER);this.ot=new g.bm(0,0,0,0);this.Lb=null;this.FA=new g.bm(0,0,0,0);this.iE=this.aF=this.ZE=NaN;this.xz=this.CA=this.PF=this.xJ=!1;this.pD=NaN;this.EE=!1;this.ew=null;this.tF=function(){b.element.focus()};
var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
var e=a.V();e.transparentBackground&&this.Rm("ytp-transparent");"0"===e.controlsType&&this.Rm("ytp-hide-controls");g.L(this.element,"ytp-exp-bottom-control-flexbox");e.N("html5_player_bottom_linear_gradient")&&g.L(this.element,"ytp-linear-gradient-bottom-experiment");Uoa(e)&&g.L(this.element,"ytp-larger-tap-buttons");e.N("enable_new_paid_product_placement")&&!g.ZE(e)&&g.L(this.element,"ytp-exp-ppp-update");aF(e)&&g.L(this.element,"ytp-exp-hybrid-controls");sCa(this.element,tCa(a));this.PN=!1;this.vv=
new g.jg(NaN,NaN);uCa(this);this.T(a.Ta,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
uCa=function(a){function b(){a.Lb&&lT(a);mT(a)!==a.EE&&a.resize()}
function c(h,l){a.Fs(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.FA=new g.bm(0,0,0,0);a.ot=new g.bm(0,0,0,0)}
var f=a.app.Ta;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.he(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
vCa=function(a){var b=g.AM(a.app);if(b=b?b.getVideoData():null){if(g.pG(b)||g.qG(b)||g.sG(b))return 16/9;if(ZF(b)&&b.C.i)return a=b.C.videoInfos[0].video,nT(a.width,a.height)}return(a=a.Lb)?nT(a.videoWidth,a.videoHeight):16/9};
wCa=function(a,b,c,d){var e=c,f=nT(b.width,b.height);a.xJ?e=c<f?Infinity:0:isNaN(a.iE)?isNaN(a.aF)||(e=a.aF):e=a.iE;isFinite(e)||(e=Math.max(c,f));a=e>f?{width:b.width,height:b.width/e,aspectRatio:e}:e<f?{width:b.height*e,height:b.height,aspectRatio:e}:{width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?a.width=a.height*c:c<e&&(a.height=a.width/c),a.aspectRatio=c);return a};
nT=function(a,b){return 1>Math.abs(oT*b-a)||1>Math.abs(oT/a-b)?oT:a/b};
mT=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.AM(a.app);if(!b||b.Yl())return!1;var c=a.app.Ta.zb();a=!g.T(c,2)||!a.app.V().N("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().La;b=g.T(c,1024);return c&&a&&!b&&!c.isCued()};
lT=function(a){var b="3"===a.app.V().controlsType&&!a.xz&&mT(a)&&!a.app.lw||!1;a.Lb.controls=b;a.Lb.tabIndex=b?0:-1;b?a.Lb.removeEventListener("focus",a.tF):a.app.V().N("disable_focus_redirect")||a.Lb.addEventListener("focus",a.tF)};
xCa=function(a){var b=a.pg(),c=1,d=!1,e=wCa(a,b,a.getVideoAspectRatio()),f=a.app.V().N("enable_desktop_player_underlay"),h=zu(),l=f&&a.PF&&768<a.getPlayerSize().width;if(mT(a)){var m=vCa(a);var n=isNaN(m)||g.Pw||$F&&g.nj||l;Au&&!g.sc(601)?m=e.aspectRatio:n=n||"3"===a.app.V().controlsType;n?l?(n=a.app.V().N("place_shrunken_video_on_left_of_player"),m=(.5-.46)/2,m*=a.getPlayerSize().width,n=n?m:a.getPlayerSize().width-b.width-m,n=new g.bm(n,0,b.width,b.height)):n=new g.bm(0,0,b.width,b.height):(c=e.aspectRatio/
m,n=new g.bm((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.nj&&(m=n.width-b.height*m,0<m&&(n.width+=m,n.height+=m)));if(h||a.PN)a.Lb.style.display="";a.EE=!0}else{n=-b.height;Au?n*=window.devicePixelRatio:g.bF&&(n-=window.screen.height);n=new g.bm(0,n,b.width,b.height);if(h||a.PN)a.Lb.style.display="none";a.EE=!1}cm(a.FA,n)||(a.FA=n,g.FE(a.app.V())?(a.Lb.style.setProperty("width",n.width+"px","important"),a.Lb.style.setProperty("height",n.height+"px","important")):g.tm(a.Lb,
n.getSize()),d=new g.hg(n.left,n.top),g.mm(a.Lb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.bm((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);cm(a.ot,b)||(a.ot=b,d=!0);g.fm(a.Lb,"transform",1===c?"":"scaleX("+c+")");f&&l!==a.CA&&(a.CA=l,a.app.Ta.ea("playerUnderlayVisibilityChange",a.CA));return d};
yCa=function(){this.csn=g.cy();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.i=new Set;this.u=new Set};
zCa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.i.delete(b);a.u.delete(b)};
ACa=function(a){if(a.csn!==g.cy())if("UNDEFINED_CSN"===a.csn)a.csn=g.cy();else{var b=g.cy(),c=g.by();if(b&&c){a.csn=b;for(var d=g.r(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.oy(void 0,b,c,[e])}if(b)for(a=g.r(a.i),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.py(b,c,void 0)}};
pT=function(a,b,c,d,e){g.X.call(this,{G:"div",L:"ytp-horizonchart"});this.D=b;this.sampleCount=c;this.B=d;this.C=e;this.index=0;this.heightPx=-1;this.u=this.ctx=null;this.i=Math.round(a/c);this.element.style.width=this.i*this.sampleCount+"px";this.element.style.height=this.D+"em"};
qT=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.Ng("CANVAS"),a.ctx=c.getContext("2d")}catch(e){}if(a.ctx){var d=a.i*a.sampleCount;a.u=c;a.u.width=d;a.u.style.width=d+"px";a.element.appendChild(a.u)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.i*=4,c=0;c<a.sampleCount;c++)d=g.Ng("SPAN"),d.style.width=a.i+"px",d.style.left=a.i*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.ctx&&(c=1<(window.devicePixelRatio||1)?2:1,a.u.height=a.heightPx*
c,a.u.style.height=a.heightPx+"px",a.ctx.scale(1,c)));b=g.r(b);for(c=b.next();!c.done;c=b.next())a.setValue(a.index,c.value),a.index=(a.index+1)%a.sampleCount;b=a.index;a.ctx?a.ctx.clearRect(b*a.i,0,a.i,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
rT=function(a){var b=null;b={G:"button",Ga:["html5-video-info-panel-close","ytp-button"],W:{title:"close"},ya:"[x]"};g.X.call(this,{G:"div",L:"html5-video-info-panel",U:[b,{G:"div",L:"html5-video-info-panel-content",U:[{G:"div",U:[{G:"div",ya:"Video ID / sCPN"},{G:"span",ya:"{{video_id_and_cpn}}"}]},{G:"div",U:[{G:"div",ya:"Viewport / Frames"},{G:"span",ya:"{{dims_and_frames}}"}]},{G:"div",U:[{G:"div",ya:"Current / Optimal Res"},{G:"span",ya:"{{resolution}}"}]},{G:"div",U:[{G:"div",ya:"Volume / Normalized"},
{G:"span",ya:"{{volume}}"}]},{G:"div",U:[{G:"div",ya:"Codecs"},{G:"span",ya:"{{codecs}}"}]},{G:"div",W:{style:"{{shader_info_style}}"},U:[{G:"div",ya:"Shader Info"},{G:"span",ya:"{{shader_info}}"}]},{G:"div",W:{style:"{{color_style}}"},U:[{G:"div",ya:"Color"},{G:"span",ya:"{{color}}"}]},{G:"div",W:{style:"{{drm_style}}"},U:[{G:"div",ya:"Protected"},{G:"span",ya:"{{drm}}"}]},{G:"div",W:{style:"{{bandwidth_style}}"},U:[{G:"div",ya:"Connection Speed"},{G:"span",U:[{G:"span",ya:"{{bandwidth_chart}}"},
{G:"span",ya:"{{bandwidth_kbps}}"}]}]},{G:"div",W:{style:"{{network_activity_style}}"},U:[{G:"div",ya:"Network Activity"},{G:"span",U:[{G:"span",ya:"{{network_activity_chart}}"},{G:"span",ya:"{{network_activity_bytes}}"}]}]},{G:"div",U:[{G:"div",ya:"Buffer Health"},{G:"span",U:[{G:"span",ya:"{{buffer_health_chart}}"},{G:"span",ya:"{{buffer_health_seconds}}"}]}]},{G:"div",W:{style:"{{live_latency_style}}"},U:[{G:"div",ya:"Live Latency"},{G:"span",U:[{G:"span",ya:"{{live_latency_chart}}"},{G:"span",
ya:"{{live_latency_secs}}"}]}]},{G:"div",W:{style:"{{live_mode_style}}"},U:[{G:"div",ya:"Live Mode"},{G:"span",ya:"{{live_mode}}"}]},{G:"div",W:{style:"{{playback_categories_style}}"},U:[{G:"div",ya:"Playback Categories"},{G:"span",ya:"{{playback_categories}}"}]},{G:"div",U:[{G:"div",ya:"Mystery Text"},{G:"span",ya:"{{debug_info}}"}]},{G:"div",W:{style:"{{cotn_and_local_media_style}}"},U:[{G:"div",ya:"COTN / Local Media"},{G:"span",ya:"{{cotn_and_local_media}}"}]},{G:"div",W:{style:"{{release_style}}"},
U:[{G:"div",ya:"Player Release"},{G:"span",ya:"{{release_name}}"}]}]}]});b&&(b=this.Fa("html5-video-info-panel-close"),this.T(b,"click",this.hide));b=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];var c="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" "),d=b.map(function(e){return e/4});
this.i=new pT(300,1,150,b,c);g.H(this,this.i);this.Ra("bandwidth_chart",this.i);this.B=new pT(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.H(this,this.B);this.Ra("live_latency_chart",this.B);this.u=new pT(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.H(this,this.u);this.Ra("buffer_health_chart",this.u);this.C=new pT(300,1,150,d,c);g.H(this,this.C);this.Ra("network_activity_chart",this.C);this.delay=new g.I(this.Pa,
500,this);g.H(this,this.delay);this.Ta=a};
BCa=function(a){a=void 0===a?{}:a;var b=a.dg,c=a.Eg,d=a.getLastSegmentNumber,e=a.ys;this.Ml=a.Ml;this.dg=b;this.Eg=c;this.getLastSegmentNumber=d;this.ys=e};
CCa=function(a,b){if(0>b)return!0;var c=a.getLastSegmentNumber();return b<c||b===c&&!a.Ml||b===c&&(a=a.ys())&&b===a.Ma?!0:!1};
DCa=function(a,b,c){if(!CCa(a,b))return 0;if(!a.dg||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.getLastSegmentNumber();return b<c||b===c&&(a=a.ys())&&b===a.Ma&&!a.pending?2:1};
sT=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
ECa=function(a,b){var c=Math.min(2.5,gE(a.schedule));a=tT(a);return b-c*a};
uT=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.bd&&(d=Math.abs(d));d/=a.playbackRate;var f=1/iE(a.schedule);var h=.9*(d-a.policy.Sg);h=Math.max(h,gE(a.schedule)+2048*f);c=h/f*a.policy.Bl/(b+c);c=Math.min(c,d);a.policy.Hd&&e&&(c=Math.max(c,a.policy.Hd));return FCa(a,c,b)};
FCa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.Al*c),Math.min(Math.min(a.policy.Ka,31*c),Math.ceil(b*c))))||65536};
tT=function(a){return iE(a.schedule,!a.policy.ej,a.policy.zl)};
vT=function(a){return tT(a)/a.playbackRate};
wT=function(a,b,c,d,e){this.Ya=a;this.u=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.B=0;this.i=!1;this.C=this.u.isManifestless&&!this.u.Ze;this.D=null};
GCa=function(a,b,c){var d=b.i.index,e=b.u.Ma;sC(d,e)||c&&c.Ma===e?(a.ma(),b.D=!sC(d,e),b.S=!sC(d,e)):(a.ma(),b.D=!0,b.S=!0)};
ICa=function(a,b,c,d){a.ma();if(!b.i.Te())return 0!==c&&xT(b),c;var e=yT(b,c);if(!isNaN(e))return a.ma(),e;xT(b);zT(b.C);return d&&(a=gD(d.kf(),c),!isNaN(a))?(AT(b,a+HCa),c):AT(b,c)};
MCa=function(a,b,c,d){if(a.i&&a.B){var e=JCa(a,b,c);if(-1!==e){a.videoTrack.D=!1;a.audioTrack.D=!1;a.C=!0;(0,g.ih)(function(){a.Ya.Ca("seekreason","reason.behindMinSq;tgt."+e);KCa(a,e)});
return}}c?a.videoTrack.S=!1:a.audioTrack.S=!1;var f=a.policy.Yq||!a.C;if(0<=yT(a.videoTrack,a.B)&&0<=yT(a.audioTrack,a.B)&&f){if(a.videoTrack.D||a.audioTrack.D)a.ma(),a.Ya.Ca("iterativeSeeking","done;count."+a.seekCount);a.videoTrack.D=!1;a.audioTrack.D=!1}else d&&(0,g.ih)(function(){if(a.C||!a.policy.Va)LCa(a);else{var h=b.startTime,l=b.duration,m=-1!==a.videoTrack.I&&-1!==a.audioTrack.I,n=!a.videoTrack.S&&!a.audioTrack.S;(c?a.videoTrack.D:a.audioTrack.D)&&m&&n&&(a.B>=h&&a.B<h+l+.1?((c?a.videoTrack:
a.audioTrack).D=!1,a.videoTrack.D||a.audioTrack.D||(a.ma(),a.Ya.Ca("iterativeSeeking","done;count."+a.seekCount),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.ma(),a.Ya.Ca("iterativeSeeking","inprogress;count."+a.seekCount+";target."+a.B+";actual."+h+";duration."+l+";isVideo."+c),a.seek(a.B)):(a.ma(),a.Ya.Ca("iterativeSeeking","incomplete;count."+a.seekCount+";target."+a.B+";actual."+h),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Ya.Da.seekTo(h+.1,{Qp:!0,Td:"chunkSelectorSynchronizeMedia",
hp:!0})))}})};
JCa=function(a,b,c){if(!a.i)return-1;c=(c?a.videoTrack:a.audioTrack).i.index;var d=c.getSegmentNumberForTime(a.B);return(sC(c,a.u.qe)||b.Ma===a.u.qe)&&d<a.u.qe?(a.ma(),a.u.getMinSeekableTime()):-1};
KCa=function(a,b){a.C&&-1!==a.videoTrack.I&&-1!==a.audioTrack.I&&(a.C=!1,a.ma(),a.Ya.Da.seekTo(b+.1,{Qp:!0,Td:"chunkSelectorSynchronize",hp:!0}))};
LCa=function(a){var b=-1!==a.videoTrack.I,c=-1!==a.audioTrack.I;if(!b||!c)if(b=!b&&a.videoTrack.Yf(),c=!c&&a.audioTrack.Yf(),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.I=c.Yf().info.Ma,-1!==b.I){var d=Math.max(b.i.index.getStartTime(b.I),c.i.index.getStartTime(c.I));DD(a.u)&&432E3<Math.abs(d-DD(a.u))&&Ona(a.u);a.Ya.Ca("seekreason","reason.initManifestlessSync;tgt."+d);(0,g.ih)(function(){return KCa(a,d)});
a.D&&(a.D.resolve(d+.1),a.D=null)}};
NCa=function(){this.B=this.C=0;this.ticks={}};
BT=function(a,b,c,d,e,f){g.Q.call(this);this.Ya=a;this.S=b;this.policy=c;this.I=d;this.va=e;this.Z=this.u=null;this.B=this.C=NaN;this.K=0;this.D=null;this.oa=new Map;this.X="";this.i=f?1:0};
CT=function(a,b,c){a.policy.hh&&(b.startSecs+=isNaN(a.K)?0:a.K);a=a.S;a.Z.push(b);a.ea("cuepointsadded",c)};
OCa=function(a,b,c){return(0>c||c===a.B)&&!isNaN(a.C)?a.C:b};
QCa=function(a,b,c,d){PCa(a.I,d,c,b);PCa(a.va,d,c,b);FD(a.S,d,!0);FD(a.S,d,!1);a.Ca("sdai","rollbk2_seg"+d+"_rbt"+c.toFixed(3)+"_lt"+b.toFixed(3))};
RCa=function(a,b){if(a.u){var c=a.u.le.durationSecs-(b.startTime+a.K-a.u.le.startSecs);0>=c||(c=new Ty(a.u.le.startSecs-(a.policy.hh&&!isNaN(a.K)?a.K:0),c,a.u.le.context,a.u.le.identifier,"stop",a.u.le.i+1E3*b.duration),a.Ca("cuepointdiscontinuity","segNum."+b.Ma),CT(a,c,b.Ma))}};
SCa=function(a,b,c,d){(void 0===d?0:d)?(a.i=1,a.Ca("sdai","rststate_skth")):0<b&&5<=Math.abs(b-c)&&4===a.i&&(a.Ca("sdai","rststate_skt_"+b.toFixed(2)+"_ct_"+c.toFixed(2)),a.i=5)};
DT=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
ET=function(a,b,c,d,e,f){f=void 0===f?[]:f;this.Ya=a;this.va=b;this.policy=c;this.D=d;this.I=e;this.Za=f;this.B=QF;this.i=this.K=null;this.X=-1;this.Ka=!1;this.nextVideo=this.u=null;this.C=[];this.Ba={};this.videoIndex=0;this.Va=this.Z=this.S=!1;this.Aa=0;this.Sa=new Set;this.Wa=!1;this.oa=new Map;this.La=0;this.bb=!1;this.Ha=null};
XCa=function(a,b,c){FT(a,b);TCa(a,c);a.K=a.u;UCa(a);VCa(a);a.i=a.nextVideo;a.K=a.u;return WCa(a)};
YCa=function(a,b){if(DA(a.B,b))return null;if("m"===b.reason&&b.isLocked())return a.ma(),FT(a,b),a.videoIndex=a.C.length-1,GT(a),HT(a),a.Z=a.Z||a.i!==a.nextVideo,a.i=a.nextVideo,new DT(a.u,a.i,b.reason);"r"===b.reason&&(a.X=-1);FT(a,b);HT(a);if("r"===b.reason&&a.nextVideo===a.i)return new DT(a.u,a.nextVideo,b.reason);a.i&&a.nextVideo&&IT(a,a.i.info)<IT(a,a.nextVideo.info)&&(b=a.B.reason,a.S=a.S||"r"===b||"u"===b||"v"===b);return null};
ZCa=function(a,b){if(b.info.video){if(a.i!==b)return a.i=b,WCa(a)}else a.Va=a.K!==b,a.K=b;return null};
JT=function(a,b,c){a.La+=1;if(void 0===c?0:c)a.bb=!0;c=6E4*Math.pow(2,a.La);a.oa.set(b.info.id,(0,g.P)()+c);a.X=-1;FT(a,a.B)};
KT=function(a){if(a.oa.size){for(var b=(0,g.P)(),c=g.r(a.oa.values()),d=c.next();!d.done;d=c.next())if(d.value>b)return!0;a.oa.clear()}return!1};
$Ca=function(a,b){return new DT(a.K,a.i,b||a.B.reason)};
LT=function(a){return a.B.isLocked()};
WCa=function(a){a.Ka?a.Ka=!1:a.X=(0,g.P)();a.S=!1;return new DT(a.K,a.i,a.B.reason)};
aDa=function(a,b){var c={};b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.i,f=c[e],h=f&&SC(f)&&f.video.i>a.policy.S,l=e<=a.policy.S?SC(d):QC(d);if(!f||h||l)c[e]=d}return c};
FT=function(a,b){var c;a.B=b;var d=a.I.videoInfos;if(!LT(a)){var e=(0,g.P)();d=g.ap(d,function(p){if(p.Ob>this.policy.Ob)return this.ma(),!1;var q=this.D.i[p.id],t=q.info.i;return this.policy.dr&&this.Sa.has(t)||this.oa.get(p.id)>e?!1:4<q.u.u||4<q.S?(this.ma(),!1):q.C?!1:!0},a);
a.bb&&KT(a)&&(d=g.ap(d,function(p){return 480>=p.video.i}))}d.length||(d=a.I.videoInfos);
var f=g.ap(d,b.C,b),h="m"===b.reason||"s"===b.reason;a.policy.dj&&$F&&g.nj&&(!h||1080>b.i)&&(f=f.filter(function(p){return p.video&&(!p.u||p.u.powerEfficient)}));
if(0<f.length)if(oD()){var l=aDa(a,f);f=f.filter(function(p){return!!p&&!!p.video&&p.i===l[p.video.i].i})}else{b=f[0];
var m=null===(c=null===b||void 0===b?void 0:b.video)||void 0===c?void 0:c.i;if(m){b=f.filter(function(p){return!!p&&!!p.video&&p.video.i===m});
var n=aDa(a,b)[m].i;f=f.filter(function(p){return!!p&&!!p.video&&p.i===n})}}f.length||(f=[d[0]]);
f.sort(function(p,q){return IT(a,p)-IT(a,q)});
for(d=1;d<f.length;d++)b=f[d-1],h=f[d],b.video.width>h.video.width?(a.ma(),g.Tb(f,d),d--):IT(a,b)*a.policy.B>IT(a,h)&&(a.ma(),g.Tb(f,d-1),d--);d=f[f.length-1];a.Wa=!!a.i&&!!a.i.info&&a.i.info.i!==d.i;a.ma();a.C=f;lwa(a.policy,d)};
TCa=function(a,b){b?a.u=a.D.i[b]:(b=(b=g.Mb(a.I.i,function(c){return!!c.zc&&c.zc.isDefault}))||a.I.i[0],a.u=a.D.i[b.id]);
GT(a)};
bDa=function(a,b){for(var c=0;c+1<a.C.length&&"tiny"===a.C[c].video.quality;)c++;var d=vT(a.va)/a.policy.B;return IT(a,b.info)+IT(a,a.C[c])>d};
GT=function(a){if(!a.u||!a.policy.u)if(!a.u||!a.u.info.zc)if(a.u=a.D.i[a.I.i[0].id],1<a.I.i.length){var b=!1;if(a.policy.Sa){if(b=!0,a.policy.wl){var c=Lb(a.I.i,function(d){return"250"===d.jc()});
0<=c&&(a.u=a.D.i[a.I.i[c].id],b=bDa(a,a.u))}}else b=a.B.isLocked()?240>a.B.i:bDa(a,a.u);b&&(a.u=a.D.i[g.Kb(a.I.i).id])}};
HT=function(a){a.policy.Qf&&(a.Ha=a.Ha||new g.I(function(){a.policy.Qf&&a.i&&!KT(a)&&1===Math.floor(10*Math.random())?(JT(a,a.i),a.S=!0):a.Ha.start()},6E4),g.br(a.Ha));
if(!a.nextVideo||!a.policy.u)if(LT(a))a.nextVideo=360>=a.B.i?a.D.i[a.C[0].id]:a.D.i[g.Kb(a.C).id],a.ma();else{for(var b=Math.min(a.videoIndex,a.C.length-1),c=vT(a.va),d=IT(a,a.u.info),e=c/a.policy.C-d;0<b&&!(IT(a,a.C[b])<=e);b--);for(c=c/a.policy.B-d;b<a.C.length-1&&!(IT(a,a.C[b+1])>=c);b++);a.nextVideo=a.D.i[a.C[b].id];a.videoIndex!==b&&a.ma();a.videoIndex=b}};
UCa=function(a){var b=a.policy.C,c=vT(a.va)/b-IT(a,a.u.info);b=g.Nb(a.C,function(d){return IT(this,d)<c},a);
0>b&&(b=0);a.videoIndex=b;a.nextVideo=a.D.i[a.C[b].id];a.ma()};
VCa=function(a){if(a.Za.length){var b=a.Za,c=function(d,e){if("f"===d.info.i||b.includes(XB(d,a.D.isLive)))return d;for(var f=0;f<e.length;f++){var h=a.D.i[e[f].id],l=XB(h,a.D.isLive);if(b.includes(l)){l=d.info.i;var m=h.info.i;if(l===m||oD())return d=d.info.jc(),e=h.info.jc(),a.Ya.Ca("ombifa","f."+d+";t."+e),a.ma(),a.Ka=!0,h;a.Ya.Ca("ombifa","mismatch.efficient;fc."+l+";tc."+m)}}a.Ya.Ca("ombifa","mismatch.unselectable;fmts."+b.join("."));return d};
a.nextVideo=c(a.nextVideo,a.I.videoInfos);a.u=c(a.u,a.I.i)}};
IT=function(a,b){if(!a.Ba[b.id]){var c=a.D.i[b.id].index.getLocalMaxByterate(a.Aa,15);c=b.Mu&&a.i&&a.i.index.isLoaded()?c||b.Mu:c||b.Ob;a.Ba[b.id]=c}c=a.Ba[b.id];a.policy.Zb&&b.video&&b.video.i>a.policy.Zb&&(c*=1.5);return c};
cDa=function(a,b){a=Ce(a.D.i,function(c){return c.info.jc()===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
dDa=function(a){var b=[];if("m"===a.B.reason||"s"===a.B.reason)return b;if(vna(a.D)){for(var c=Math.max(0,a.videoIndex-2);c<a.videoIndex&&c<a.C.length;c++){var d=a.C[c].jc();b.push(d)}b.reverse()}return b};
eDa=function(a,b){this.u=(new TextEncoder).encode(a);this.i=(new TextEncoder).encode(b)};
Apa=function(a,b){var c,d,e;return g.A(function(f){if(1==f.i){if(!b)return f.return(b);c=MT.Ko("woe");d=new TQ(a.u);return g.x(f,d.encrypt(b,a.i),2)}e=f.u;MT.vn(c,Math.ceil(b.byteLength/16));return f.return(e)})};
Epa=function(a,b){var c,d,e;return g.A(function(f){if(1==f.i){if(!b)return f.return(b);c=MT.Ko("wod");d=new TQ(a.u);return g.x(f,d.decrypt(b,a.i),2)}e=f.u;MT.vn(c,Math.ceil(b.byteLength/16));return f.return(e)})};
NT=function(a,b,c){this.policy=a;this.i=b;this.va=c;this.B=this.u=0;this.Ue=null;this.S=[];this.indexRange=this.initRange=null;this.X=new nS;this.Z=this.oa=!1;a:{if(this.policy.qc&&this.policy.gr){b={};c=g.r(this.policy.qc);for(var d=c.next();!d.done;b={Hx:b.Hx,Ix:b.Ix},d=c.next())if(d=g.gt(d.value),b.Hx=+d.clen,b.Ix=+d.csz,0<b.Hx&&0<b.Ix&&this.policy.u===d.docid&&this.i.info.id===d.fmtid&&this.i.info.lastModified===+d.lmt){c={};b=(c.clen=b.Hx,c.csz=b.Ix,c.ck=d.ck,c.civ=d.civ,c);break a}}b=void 0}b?
(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.K=b.ck,this.I=b.civ):(this.chunkSize=a.er,this.C=0,this.policy.wd&&(this.K=Xx(),this.I=Xx()));this.D=new Uint8Array(this.chunkSize);this.K&&this.I&&(this.crypto=new eDa(this.K,this.I))};
OT=function(a){return!!a.Ue&&a.Ue.B};
gDa=function(a,b){if(!OT(a)&&!a.isDisposed()){if(!(a.oa||(a.oa=!0,0<a.C))){var c=PT(a);c=yF(a.policy.u,a.i.info,QT(a),c);RT(a,c)}if(1===b.info.type)a.initRange=$B(0,b.i.totalLength);else if(2===b.info.type){if(!a.Ue||1!==a.Ue.type)throw Error("deprecated use case");a.indexRange=$B(a.initRange.end+1,b.i.totalLength)}else if(3===b.info.type){if(3===a.Ue.type&&!eC(a.Ue,b.info)&&(a.S=[],c=a.Ue,b.info.Ma!==c.Ma+(c.Sd?1:0)||0!==b.info.Bb))return;if(b.info.Sd){c=g.r(a.S);for(var d=c.next();!d.done;d=c.next())fDa(a,
d.value);a.S=[]}else{a.S.push(b);a.Ue=b.info;return}}a.Ue=b.info;fDa(a,b);OT(a)&&(b=new Uint8Array(a.D.buffer,0,a.u),c={downloadedEndTime:-1,maxKnownEndTime:Math.round(a.i.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.i.info.Mu)},b=yF(a.policy.u,a.Ue.i.info,QT(a),c,a.B,b,a.crypto),RT(a,b,!0))}};
fDa=function(a,b){var c,d=0,e=BC(b.i);if(a.B<a.C){d=a.C*a.chunkSize;var f=((null===(c=b.info.range)||void 0===c?void 0:c.start)||0)+b.info.Bb;d-=f;if(d>=e.length)return;if(0>d)throw Error("Missing data");a.B=a.C;a.u=0}for(f={};d<e.length;){f.au=Math.min(e.length-d,a.D.byteLength-a.u);var h=new Uint8Array(e.buffer,e.byteOffset+d,f.au);a.D.set(h,a.u);a.u+=f.au;d+=f.au;if(a.u===a.D.length){if(b.info===a.Ue&&OT(a)&&d===e.length)break;h=PT(a);h=yF(a.policy.u,a.i.info,QT(a),h,a.B,a.D,a.crypto);RT(a,h);
a.isDisposed()||(h=PT(a),a.va(QT(a),void 0!==h?(h.downloadedEndTime||0)*h.averageByteRate:h.maxKnownEndTime*h.averageByteRate,h.maxKnownEndTime*h.averageByteRate));a.D=new Uint8Array(a.chunkSize);a.u=0;a.B+=1}f={au:f.au}}};
PT=function(a){return{downloadedEndTime:Math.round(a.Ue?a.Ue.D:0),maxKnownEndTime:Math.round(a.i.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.i.info.Mu)}};
QT=function(a){var b,c,d={lmt:a.i.info.lastModified,docid:a.policy.u,fmtid:a.i.info.id,type:a.i.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.B*a.chunkSize+a.u};a.crypto&&(d.ck=a.K,d.civ=a.I);var e="local://localhost/videoplayback?"+dt(d);d={itag:+a.i.info.jc(),mimeType:a.i.info.mimeType,bitrate:8*a.i.info.Ob,lastModified:String(a.i.info.lastModified),initRange:null===(b=a.initRange)||void 0===b?void 0:xma(b),indexRange:null===(c=a.indexRange)||void 0===c?void 0:xma(c),url:e};e=a.i.info;if(e=
0<e.id.indexOf(";")?e.id.split(";")[1]:null)d.xtags=e;if(e=a.i.info.video)if(d.quality=e.quality,d.qualityLabel=e.qualityLabel,d.width=e.width,d.height=e.height,e=e.fps)d.fps=e;if(a=a.i.info.audio){if(e=a.sampleRate)d.audioSampleRate=String(e);if(a=a.numChannels)d.audioChannels=a}return d};
RT=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){(c||4===d)&&a.X.resolve(d)},function(d){a.X.reject(d)})};
hDa=function(a){a=g.zB(a,1886614376);g.jc(a,function(b){return!b.u});
return g.Mm(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
iDa=function(a){var b=Om(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
g.jc(a,function(e){c.set(e,d);d+=e.length});
return c};
jDa=function(a,b,c,d,e){this.ids=a;this.i=b;this.u=c;this.C=d;this.B=e};
ST=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.i=this.cryptoPeriodIndex=NaN;this.u=[];this.pe=!1;if("webm"===(null===b||void 0===b?void 0:b.toLowerCase())||16===a.length)this.pe=!0};
kDa=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var h=d.getUint32(c+28);f+=16*h+4}var l=d.getUint32(c+f-4);try{b:{var m=void 0,n=b.subarray(c+f,c+f+l);f=ms;var p=uha;if(TT.length){var q=TT.pop();n&&(Mc(q.i,n),q.B=-1,q.u=-1);m=q}else m=new Sc(n);try{var t=new f;var u=Md(t,m,p[Ld]||(p[Ld]=p()));break b}finally{m.i.clear(),m.B=-1,m.u=-1,m.C=!1,100>TT.length&&
TT.push(m)}u=void 0}m=u;if(null!==m){var v=m;break a}}catch(y){}}c+=e}v=null}catch(y){v=null}}if(null!=v)for(b=sd(v,7),null==b||a.pe||(a.cryptoPeriodIndex=b),b=sd(v,10),null!=b&&0<b&&!a.pe&&(a.i=b),v=ud(v,2),v=!v.length||v[0]instanceof Uint8Array?v:g.Mm(v,id),v=g.r(v),b=v.next();!b.done;b=v.next())a.u.push(g.xc(b.value,4))};
lDa=function(a){return isNaN(a.cryptoPeriodIndex)?g.xc(a.initData):""+a.cryptoPeriodIndex};
UT=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.Nw?void 0:d.Nw;d=void 0===d.Az?!1:d.Az;this.videoId=a;this.status=b;this.videoDuration=c;this.Nw=e;this.Az=d};
mDa=function(a,b,c,d,e){this.videoId=a;this.formatStream=b;this.u=c;this.bytesDownloaded=d;this.i=e};
VT=function(a){this.i=a;this.offset=0};
WT=function(a){if(a.offset>=a.i.totalLength)throw Error();return CC(a.i,a.offset++)};
nDa=function(a,b){b=void 0===b?!1:b;var c=WT(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=WT(a);-1===b&&255!==d&&(b=0);-1<b&&(b=256*b+d)}return b}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+WT(a),d*=128;return b?c:c-d};
XT=function(a,b,c){var d=this;this.Ya=a;this.policy=b;this.D=c;this.u=[];this.i=null;this.va=-1;this.S=0;this.oa=NaN;this.X=0;this.B=NaN;this.Ba=0;this.La=-1;this.Ka=this.K=this.I=this.Aa=null;this.Sa=this.Ha=NaN;this.C=this.Z=this.Va=null;this.Wa=!1;this.timestampOffset=0;if(this.policy.u){var e=this.D,f=this.policy.u;this.C=new NT(this.policy,e,function(h,l,m){h=new UT(d.policy.u,2,{Nw:new mDa(f,h,e.info,l,m)});a.Da.Ws(h)});
this.C.X.promise.then(function(h){d.C=null;1===h&&(h=new UT(d.policy.u,h),a.Da.Ws(h))},function(h){h=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
d.ma();d.Ya.Ca("dldbwerr",h);oDa(d);h=new UT(d.policy.u,4,{Az:!0});a.Da.Ws(h)})}};
pDa=function(a){return a.u.length?a.u[0]:null};
ZT=function(a){return a.u.length?a.u[a.u.length-1]:null};
tDa=function(a,b,c){if(a.K){var d=a.K.Bb+a.K.u;if(0<c.info.Bb)if(c.info.Ma===a.K.Ma&&c.info.Bb<d){if(c.info.Bb+c.info.u<=d)return;c=Xma(c,d-c.info.Bb)[1]}else if(0<=c.info.Ma&&0<=a.K.Ma&&!eC(a.K,c.info))throw new g.iw("improper_continuation",aC(a.K),aC(c.info));if(a.policy.Zq){d=a.K;var e=c.info;d=d.Ma!==e.Ma&&e.Ma!==d.Ma+1||d.type!==e.type||gg(d.C,e.C)&&d.Ma===e.Ma?!1:fC(d,e)}else d=fC(a.K,c.info);d||$T(a)}else if(0<c.info.Bb)throw new g.iw("continuation_of_null",aC(c.info));a.K=c.info;a.D=c.info.i;
if(0===c.info.Bb){if(a.i)throw new g.iw("slice_not_fully_processed",aC(a.i.info),aC(c.info));aU(a)}else!c.info.i.Mg()&&a.I&&Cma(c.info,a.I);if(a.i){d=Yma(a.i,c);if(!d)throw new g.iw("failed_to_merge",aC(a.i.info),aC(c.info));a.i=d}else a.i=c;a:{c=g.FC(a.i.info.i.info);if(3!==a.i.info.type){if(!a.i.info.Sd)break a;6===a.i.info.type?qDa(a,b,a.i):bU(a,a.i);a.i=null}for(;a.i;){d=a.i.i.totalLength;if(0>=a.va&&0===a.S){var f=a.i.i,h=-1;e=-1;if(c){for(var l=0;l+8<f.totalLength;){var m=Vma(f,l),n=Vma(f,l+
4);l+=m||1;if(1836019558===n)h=l;else if(1835295092===n){e=l;break}}0>e&&(h=-1)}else{f=new VT(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var q=nDa(p,!0),t=nDa(p,!1);var u=q;var v=t}catch(z){v=u=-1}p=u;var y=v;if(!(0<p))break;if(408125543!==p)if(524531317===p)l=!0,0<=y&&(e=f.getOffset()+y,m=!0);else{if(l&&(160===p||163===p)&&(0>h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.getOffset()+y);if(160===p){0>h&&(e=h=f.getOffset()+y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.va=h;a.S=e-h}if(a.va>d)break;
a.va?(d=rDa(a,a.va),d.B&&!d.info.i.Mg()&&sDa(a,d),qDa(a,b,d),cU(a,d),a.va=0):a.S&&(d=rDa(a,0>a.S?Infinity:a.S),a.S-=d.i.totalLength,cU(a,d))}}a.i&&a.i.info.Sd&&(cU(a,a.i),a.i=null)};
bU=function(a,b){!b.info.i.Mg()&&0===b.info.Bb&&(g.FC(b.info.i.info)||b.info.i.info.pe())&&dna(b);if(1===b.info.type)try{sDa(a,b),uDa(a,b)}catch(d){g.jy(d);var c=gC(b.info);c.hms="1";a.Ya.handleError(!0,"fmt.unparseable",c||{})}b.info.i.nE(b);a.C&&gDa(a.C,b)};
zT=function(a){a.u=[];aU(a);oDa(a)};
oDa=function(a){var b;null===(b=a.C)||void 0===b?void 0:b.dispose();a.C=null};
vDa=function(a){var b=a.u.reduce(function(c,d){return c+d.i.totalLength},0);
a.i&&(b+=a.i.i.totalLength);return b};
dU=function(a){return g.Mm(a.u,function(b){return b.info})};
rDa=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=Xma(c,b);a.i=c[1];return c[0]};
sDa=function(a,b){var c=EC(b);if(RC(b.info.i.info)&&"bt2020"===b.info.i.info.video.primaries){var d=new AB(c);CB(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;QC(d)&&!RC(d)&&(d=EC(b),HB(new AB(d)),GB([408125543,374648427,174,224],21936,d));b.info.i.info.isVideo()&&(d=b.info.i,d.info&&d.info.video&&4===d.info.video.projectionType&&!d.B&&(g.FC(d.info)?d.B=dma(c):d.info.pe()&&(d.B=kma(c))));b.info.i.info.pe()&&
b.info.isVideo()&&(c=EC(b),HB(new AB(c)),GB([408125543,374648427,174,224],30320,c)&&GB([408125543,374648427,174,224],21432,c));if(a.policy.Cr&&b.info.i.info.pe()){c=EC(b);var e=new AB(c);if(CB(e,[408125543,374648427,174,29637])){d=FB(e,!0);e=e.start+e.i;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.Lk()&&g.FC(b.info.i.info)){d=EC(b);c=g.qB(d,0,1701606260);f=g.qB(d,0,1836476516);if(c&&f){c.skip(2);var h=hB(c),l=jB(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(kB(c)),e.push(kB(c)),
m.push(hB(c)),n.push(hB(c));else for(h=0;h<l;++h)d.push(iB(c)),e.push(iB(c)),m.push(hB(c)),n.push(hB(c));c=g.rB(f);c=new ama(e[0]/c,d[0]/c)}else c=null;if(c){if(g.FC(b.info.i.info))for(d=EC(b),e=g.qB(d,0,1701082227);e;)e.markAsSkip(),e=g.qB(d,e.offset+e.size,1701082227);a.Wa=!0;b.info.i.D=c}}b.info.i.Mg()||b.info.i.i||b.info.i.indexRange||(g.FC(b.info.i.info)?(a=EC(b),(c=tB(a,0,1836019574))?(c=c.offset+c.size,d=new Uint8Array(c),d.set(new Uint8Array(a.buffer,a.byteOffset,c)),a=d):a=null):a=mma(new AB(EC(b))),
a&&(b.info.i.i=a))};
qDa=function(a,b,c){if(c.info.i.Mg()){if(a.Wa&&wDa(c)&&(b=EC(c),b=g.qB(b,0,1953658222))){b.skip(1);var d=gB(b)<<16|hB(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=jB(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=jB(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.i,e))}}if(b=a.Aa&&!!a.Aa.D.D)if(b=c.info.isVideo())b=cna(c),h=a.Aa,eU?(l=1/b,b=fU(a,b)>=fU(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&wDa(c)&&(b=a.Aa,eU?(l=cna(c),h=1/l,l=fU(a,l),b=fU(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,cma(EC(c),b))}else{h=!1;a.I||(dna(c),c.u&&(a.I=c.u,h=!0,Cma(c.info,c.u),l=c.info.i.info,f=EC(c),g.FC(l)?yB(f,1701671783):l.pe()&&GB([408125543],307544935,f)));a:{if(f=l=GC(c,a.policy.Ha))f=c.info.i.info.pe()&&160===CC(c.i,0);if(f)a.X+=l,a.B=a.policy.Gb?a.B+l:NaN;else{if(a.policy.Zp){var n=a.Ya.hp(Zma(c),1);e=n;if(0<=a.B&&6!==c.info.type){if(a.policy.Gb&&isNaN(a.Ha)){g.ky(new g.iw("Missing duration while processing previous chunk",aC(c.info)));$T(a);break a}f=
n-a.B;var p=f-a.Ba;d=c.info.Ma;var q=a.Ka?a.Ka.Ma:-1,t=a.Sa,u=a.Ha;m=a.policy.ue&&f>a.policy.ue;var v=a.policy.Vd&&p>a.policy.Vd;1E-4<Math.abs(p)&&(n={audio:""+ +a.Lk(),sq:d.toFixed(),sliceStart:n,lastSq:q.toFixed(),lastSliceStart:t,lastSliceDuration:u,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+(+m||v)},a.Ya.handleError(!1,"qoe.avsync",n),a.La=d);n=0;a.policy.Bp&&(m||v||(e=a.B),a.policy.Pp&&a.Aa&&!a.Lk()&&g.FC(c.info.i.info)&&(v=a.Aa,m=v.La,v=v.Ba,p=.02<Math.abs(v-f),(d===
m||d>m&&d>a.La)&&p&&(d=Math.max(.95,Math.min(1.05,(l-(v-f))/l)),cma(EC(c),d),d=GC(c,a.policy.Ha),n=l-d,l=d)));a.Ba=f+n}}else isNaN(a.B)?e=c.info.startTime:e=a.B;$ma(c,e)?(isNaN(a.oa)&&(a.oa=e),a.X+=l,a.B=e+l):(l=gC(c.info),l.smst="1",a.Ya.handleError(!0,"fmt.unparseable",l||{}))}}a.Ka=c.info;a.Ha=bna(c);0<=c.C&&(a.Sa=c.C);if(h&&a.I){h=xDa(a,!0);hC(c.info,h);a.i&&hC(a.i.info,h);b=g.r(b.info.i);for(l=b.next();!l.done;l=b.next())hC(l.value,h);(c.info.Sd||a.i&&a.i.info.Sd)&&6!==c.info.type||(a.Z=h,b=
a.Ya,b.i.isManifestless&&yDa(b,h,null,!!a.D.info.video),a.policy.fc||zDa(a))}}uDa(a,c);a.timestampOffset&&ana(c,a.timestampOffset)};
cU=function(a,b){if(b.info.Sd){a.Va=b.info;if(a.I){var c=a.I,d=xDa(a,!1),e=null;if(a.I.Rv()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=c.data["Stitched-Video-Cpn"]?c.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[],h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.r(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=
g.r(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n=m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.r(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new jDa(e,f,h,l,g.$la(c))}a.Ya.kA(a.D,d,e);a.Z||a.policy.fc||zDa(a);a.Z=null}aU(a)}a.C&&gDa(a.C,b);if(c=ZT(a))if(c=Yma(c,b,a.policy.Yi)){a.u.pop();a.u.push(c);return}a.u.push(b)};
aU=function(a){a.i=null;a.va=-1;a.S=0;a.I=null;a.oa=NaN;a.X=0;a.Z=null};
$T=function(a){a.B=NaN;a.Ba=0;a.La=-1;a.Ka=null;a.Sa=NaN;a.Ha=NaN};
uDa=function(a,b){if(a.D.info.Ed){if(b.info.i.info.pe()){var c=new AB(EC(b));if(CB(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=FB(c,!0);c=16!==d?null:LB(c,d)}else c=null;d="webm"}else b.info.S=hDa(EC(b)),c=iDa(b.info.S),d="cenc";c&&c.length&&(c=new ST(c,d),c.pe=b.info.i.info.pe(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),a.policy.Qj&&b.u&&b.u.B&&(c.i=b.u.B),a.Ya.Xs(c))}};
zDa=function(a){var b=a.I,c=Yla(b);c&&(c.startSecs+=a.oa,a.Ya.yF(a.D,c,b.i,b.Rv()))};
xDa=function(a,b){var c,d=a.I;if(c=Yla(d))c.startSecs+=a.oa;return new aB(d.i,a.oa,b?d.Ri:a.X,d.ingestionTime,"sq/"+d.i,void 0,void 0,b,c)};
wDa=function(a){return a.info.i.Mg()&&a.info.Ma===a.info.i.index.getLastSegmentNumber()};
fU=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.D.D&&b&&(b+=a.D.D.i);return b+a.getDuration()};
ADa=function(a,b){0>b||(a.u.forEach(function(c){ana(c,b)}),a.timestampOffset=b)};
gU=function(a,b){this.info=a;this.callback=b;this.state=1;this.S=!1;this.C=0;this.D=!1;this.i=null};
BDa=function(a){return g.Nm(a.info.i,function(b){return 3===b.type})};
hU=function(a,b){var c=a.state;a.state=b;a.onStateChange(c);a.callback&&a.callback(a,c)};
iU=function(a,b){b&&a.state<b?hU(a,b):a.callback&&a.callback(a,a.state)};
CDa=function(a){a.i&&a.i.C?(a=a.i.C,a=new bC(a.type,a.i,a.range,"getEmptyStubAfter"+a.I,a.Ma,a.startTime+a.duration,0,a.Bb+a.u,0,!1)):(a=a.info.i[0],a=new bC(a.type,a.i,a.range,"getEmptyStubBefore"+a.I,a.Ma,a.startTime,0,a.Bb,0,!1));return a};
DDa=function(a,b){this.i=a;this.u=0;this.B=null;this.Zd=[];this.C=null;(this.length=b?b:0)?1!==this.i.length||this.i[0].u||(this.i[0].u=this.length):1===this.i.length||g.Nm(this.i,function(c){return!!c.range})};
EDa=function(a,b,c){a.B&&(yC(a.B,b),b=a.B,a.B=null);for(var d=!1,e=!1,f=0,h=0,l=g.r(a.i),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.u<=a.u)f+=m.u;else{if(cC(m)&&!c&&a.u+b.totalLength-h<f+m.u){a.B=b.split(h).Jq;break}var n=3===m.type||4===m.type,p=a.u-f,q=a,t=h,u=b,v=m.i.uu()&&!p||n&&d&&!e&&1===b.i.length,y=!!c,z=u.totalLength-t;m.range&&(z=Math.min(m.u-p,z));y=m.range?m.Bb+p+z===m.range.length:y;p=new bC(m.type,m.i,m.range,"reslice"+m.I,m.Ma,m.startTime,m.duration,m.Bb+p,z,y&&m.B,y);
y=z;t=u.split(t).Jq.split(y).wz;q.Zd.push(new DC(p,t,v));q=z;a.u+=q;h+=q;f+=m.u;1===m.type&&(d=!0);n&&(e=!0);if(h===b.totalLength)break}};
FDa=function(a){if(!a.Zd.length)return[];var b=a.Zd;a.Zd=[];a.C=g.Kb(b).info;return b};
GDa=function(a){return a.length-a.u+a.Zd.reduce(function(b,c){return b+c.i.totalLength},0)};
kU=function(a,b,c,d){var e;gU.call(this,b,d);var f=this;this.u=a;this.De=c;this.B=new g.I(function(){f.isComplete()||hU(f,5)},3E3);
this.rd=function(){f.isDisposed()||(jU(f.De,f.u)?(f.isComplete()||f.B.start(),f.De.Wf(f.u)&&iU(f,2),f.De.rf(f.u)&&(HDa(f.De,f.u)?hU(f,4):hU(f,5))):hU(f,5))};
this.B.start();this.i=new DDa(this.info.i,null===(e=this.info.range)||void 0===e?void 0:e.length);IDa(this.De,this.u,this.rd);(0,g.ih)(this.rd)};
lU=function(a,b,c){this.Ya=a;this.policy=b;this.i=c;this.B=[];this.u=this.Wb=null;this.Z=this.oa=0;this.I=-1;this.S=!1;this.X=-1;this.C=new XT(a,b,c);this.Ob=c.info.Ob;this.K=c.Xv();this.isManifestless=c.Xv();this.D=this.K};
IU=function(a,b){b&&eU&&ADa(a.C,b.eE());a.Wb=b};
SU=function(a){return a.Wb&&a.Wb.fz()};
UU=function(a,b){a.B.push(b);a.u=g.Kb(b.info.i)};
VU=function(a){for(;a.B.length&&4===a.B[0].state;){var b=a.B.shift();JDa(a,b);a.oa=b.pK()}a.B.length&&(b=a.B[0],b.nt()&&(!b.info.wk()||b instanceof kU)&&JDa(a,b))};
JDa=function(a,b){if(b.nt()){var c=b.dC();c=g.r(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.Z&&b instanceof kU&&a.Ya.Ca("omblss","s."+aC(d.info)),KDa(a,b,d)}};
KDa=function(a,b,c){switch(c.info.type){case 1:case 2:bU(a.C,c);break;case 4:var d=c.info.i.JH(c);c=c.info;var e=a.u;e&&e.i===c.i&&e.type===c.type&&(c.range&&e.range?e.range.start===c.range.start&&e.range.end===c.range.end:e.range===c.range)&&e.Ma===c.Ma&&e.Bb===c.Bb&&e.u===c.u&&(a.u=g.Kb(d).info);d=g.r(d);for(c=d.next();!c.done;c=d.next())KDa(a,b,c.value);break;case 3:tDa(a.C,b,c);break;case 6:tDa(a.C,b,c),a.u=c.info}};
yT=function(a,b,c){c=void 0===c?!1:c;if(a.Wb){var d=a.Wb.kf(),e=gD(d,b),f=NaN,h=SU(a);h&&(f=gD(d,h.i.index.getStartTime(h.Ma)));if(e===f&&a.u&&a.u.u&&LDa(WU(a),0))return b}a=MDa(a,b,c);return 0<=a?a:NaN};
AT=function(a,b){a.i.Te();var c=MDa(a,b);if(0<=c)return c;c=Math;var d=c.min,e=a.C;if(e.C)if(e=e.C,e.Ue&&3===e.Ue.type)e=e.Ue.startTime;else if(0<e.C){var f=e.i.index;f=g.ec(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.i.index.getStartTime(0<=f?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);a.u=a.i.Ul(b).i[0];XU(a)&&a.Wb&&a.Wb.abort();a.Z=0;return a.u.startTime};
NDa=function(a){a.K=!0;a.D=!0;a.I=-1;AT(a,Infinity)};
YU=function(a){var b=0;g.jc(a.B,function(c){var d=b;c=c.i&&c.i.length?GDa(c.i):Dma(c.info);b=d+c},a);
return b+=vDa(a.C)};
ZU=function(a,b){if(!a.Wb)return 0;var c=SU(a);if(c&&c.B)return c.D;a=a.Wb.kf(!0);return jna(a,b)};
PCa=function(a,b,c,d){xT(a);for(var e=a.C,f=!1,h=e.u.length-1;0<=h;h--){var l=e.u[h];l.info.Ma>=b&&(e.u.pop(),e.B-=GC(l,e.policy.Ha),f=!0)}f&&(e.K=0<e.u.length?e.u[e.u.length-1].info:null,e.policy.Br&&0===e.u.length&&isNaN(e.oa)&&$T(e));d>c?AT(a,d):a.u=a.i.Mm(b-1,!1).i[0]};
bV=function(a,b){var c;for(c=0;c<a.B.length&&b!==a.B[c];c++);if(c===a.B.length)$U(a,b);else{for(;c<a.B.length;)$U(a,a.B.pop());var d=aV(a);d&&d.i.Mg()&&Jn(b.info.i,function(e){return Bma(e,d)})?a.u=d:dC(b.info.i[0])?a.u=CDa(b):a.u=null}};
XU=function(a){var b;!(b="f"===a.i.info.i)&&(b=a.policy.u)&&(b=a.C,b=!!b.C&&OT(b.C));if(b)return!0;b=SU(a);if(!b)return!1;var c=b.B&&b.Sd;return a.isManifestless&&0<a.X?c||b.Ma>=a.X:c};
ODa=function(a){var b;return XU(a)||!(null===(b=ZT(a.C))||void 0===b||!b.info.B)};
WU=function(a){var b=[],c=SU(a);c&&b.push(c);b=g.Wb(b,dU(a.C));g.jc(a.B,function(d){g.jc(d.info.i,function(e){d.S&&(b=g.ap(b,function(f){return!(f.i!==e.i?0:f.range&&e.range?f.range.start+f.Bb>=e.range.start+e.Bb&&f.range.start+f.Bb+f.u<=e.range.start+e.Bb+e.u:f.Ma===e.Ma&&f.Bb>=e.Bb&&(f.Bb+f.u<=e.Bb+e.u||e.Sd))}));
(dC(e)||4===e.type)&&b.push(e)})});
a.u&&!zma(a.u,g.Kb(b),a.u.i.Mg())&&b.push(a.u);return b};
LDa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!fC(a[b-1],a[b]))return!1;return!0};
MDa=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.u)return NaN;a=WU(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.C<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:LDa(a,c?b:0)?a[b].startTime:NaN};
cV=function(a){return!(!a.u||a.u.i===a.i)};
dV=function(a){return cV(a)&&a.i.Te()&&a.u.i.info.Ob<a.i.info.Ob};
PDa=function(a,b,c){return(a=aV(a))&&!a.B?a.D>b&&a.D<b+c:!1};
aV=function(a){var b=ZT(a.C);return b?b.info:SU(a)};
xT=function(a){g.jc(a.B,function(b){$U(this,b)},a);
a.B=[];a.u=null};
$U=function(a,b){var c=b.info.i[0].i.Mg();b.S&&!c&&(a=a.C,a.ma(),a.Z&&!a.policy.Af&&(c=a.Ya,c.i.isManifestless&&FD(c.i,a.Z.Ma,!!a.D.info.video)),a.Z=null,a.I=null,a.K=a.Va,a.B-=a.X,aU(a));b.dispose()};
QDa=function(a){return!!a.u&&-1!==a.u.Ma&&a.u.Ma<a.i.index.getFirstSegmentNumber()};
RDa=function(a){var b=a.u;b&&-1===b.Ma&&(a=ZT(a.C))&&dC(a.info)&&(a=a.info.Ma,b.I="updateLastSliceRequested",b.Ma=a)};
SDa=function(a){return Jn(a.B,function(b){return b.D})};
eV=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.C=c;this.status=0;this.i=new xC;this.B=0;this.isDisposed=this.D=!1;this.I=0;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.Ys()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.u&&e.i.append(e.u);e.u=f;e.B+=f.length;f=(0,g.P)();10<f-e.I&&(e.C.mq(f,e.B),e.I=f)},function(){},d.body||null)};
UDa=function(a,b){var c=this;this.i=a;this.B=b;this.loaded=this.status=0;this.error="";a=ZB(this.i.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new xC;TDa(this).then(function(){c.B.zo()},function(d){c.error=""+d||"unknown_err";
c.B.zo()})};
TDa=function(a){var b,c,d,e,f,h,l,m,n,p,q,t,u,v,y;return g.A(function(z){if(1==z.i){a.status=200;b=a.i.get("docid");c=ng(a.i.get("fmtid")||"");d=a.i.get("lmt")||"0";e=+(a.i.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.i.get("ck")&&a.i.get("civ")&&(f=new eDa(a.i.get("ck"),a.i.get("civ")));h=a.range;l=Math.floor(h.start/e);m=Math.floor(h.end/e);n=l}if(5!=z.i)return n<=m?g.x(z,Fpa(b,c,d,n,f),5):z.fb(0);p=z.u;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;t=(n+1)*e;
u=Math.max(0,h.start-q);v=Math.min(h.end+1,t)-(u+q);y=new Uint8Array(p.buffer,u,v);a.u.append(y);a.loaded+=v;a.loaded<h.length&&a.B.mq((0,g.P)(),a.loaded);n++;return z.fb(2)})};
fV=function(a,b){var c=b.Lg,d=void 0===b.Bk?1:b.Bk,e=void 0===b.uA?d:b.uA,f=void 0===b.wk?!1:b.wk,h=void 0===b.cm?!1:b.cm,l=void 0===b.CD?!1:b.CD,m=b.gh,n=b.Ma;b=b.Qe;this.K=a;this.requestNumber=++VDa;this.i=this.now();this.Aa=this.Sa=NaN;this.Ka=0;this.C=this.i;this.u=0;this.Va=this.i;this.Ba=0;this.Wa=this.La=this.isActive=!1;this.B=0;this.S=NaN;this.Z=this.D=Infinity;this.oa=NaN;this.Ha=!1;this.I=NaN;this.X=void 0;this.Lg=c;this.policy=this.Lg.va;this.Bk=d;this.uA=e;this.wk=f;this.cm=h;l&&(this.X=
[]);this.gh=m;this.Ma=n;this.Qe=b;this.snapshot=jE(this.Lg);WDa(this);XDa(this,this.i);this.S=(this.I-this.i)/1E3};
YDa=function(a,b){a.url=b;performance.onresourcetimingbufferfull||(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
gV=function(a){var b={rn:a.requestNumber,rt:(a.now()-a.i).toFixed(),lb:a.u,pt:(1E3*a.S).toFixed(),pb:a.Bk,stall:(1E3*a.B).toFixed(),hrt:(a.Sa-a.i).toFixed(),elt:(a.Aa-a.i).toFixed(),elb:a.Ka};a.url&&(null===performance||void 0===performance?0:performance.getEntriesByName)&&(a=null===performance||void 0===performance?void 0:performance.getEntriesByName(a.url))&&a.length&&(a=a[0],b.pedns=(a.domainLookupEnd-a.startTime).toFixed(),b.pecon=(a.connectEnd-a.domainLookupEnd).toFixed(),b.perqs=(a.requestStart-
a.connectEnd).toFixed());return b};
$Da=function(a,b,c,d){if(!a.La){a.La=!0;if(!a.cm){hV(a,b,c);ZDa(a,b,c);var e=a.Bn();if(2===e&&d)iV(a,a.u/d,a.u);else if(2===e||1===e)d=(b-a.i)/1E3,(d<=a.policy.i||!a.policy.i)&&!a.Wa&&jV(a)&&iV(a,d,c),jV(a)&&(d=a.Lg,c=Math.max(c,2048),d.i.Kg(1,a.B/c),kE(d));c=a.Lg;b=(b-a.i)/1E3||.05;d=a.S;e=a.wk;c.I.Kg(b,a.u/b);c.C=fE();e||c.u.Kg(1,b-d)}a.deactivate()}};
ZDa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u,f=a.Bn();if(a.isActive)1===f&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&iV(a,.05,e)):iV(a,d,e),a.Wa=!0);else if(kV(a,c)){if(1===f&&(f=(b-a.i)/1E3,!aEa(a)&&!a.cm)){var h=a.Lg;h.K.Kg(1,f);kE(h)}a.Aa=b;a.Ka=c;a.isActive=!0}a.cm||voa(a.Lg,d,e);a.C=b;a.u=c};
iV=function(a,b,c){if(!a.cm){b=Math.max(b,.05);a=a.Lg;var d=b;a.B.Kg(void 0===b?d:b,c/d);a.C=fE()}};
hV=function(a,b,c){c=Math.round(c/1024);a.X&&a.X.push(lV(b-a.Va,c-a.Ba));a.Va=b;a.Ba=c};
bEa=function(a){return a.X?a.X.join(""):""};
kV=function(a,b){return b?a.gh&&1!==a.Bn()?!0:2048<=b:!1};
jV=function(a){return kV(a,a.u)};
cEa=function(a){return(a.C-a.i)/1E3};
WDa=function(a){a.oa=a.i+1E3*a.snapshot.delay;a.Ha=!1};
mV=function(a,b){if(a.gh&&void 0!==a.Ma&&void 0!==a.Qe){var c=Math,d=c.min,e=a.D;var f=a.gh;var h=a.i;if(CCa(f,a.Ma))f=b;else{var l=0;f.dg&&(l=.2);f=h+1E3*(f.Eg+l)}a.D=d.call(c,e,f);c=Math;d=c.min;e=a.Z;f=a.gh;h=a.i;l=DCa(f,a.Ma,a.Qe);2!==l&&(b=l?b:h+1E3*f.Eg,f.dg&&(b+=1E3*f.Eg));a.Z=d.call(c,e,b);a.D<=a.i?WDa(a):(a.oa=a.D,a.Ha=!0)}};
aEa=function(a){a.gh&&mV(a,a.now());return a.Ha};
XDa=function(a,b){b=void 0===b?a.now():b;if(a.gh){mV(a,b);var c=a.va?a.gh?1!==a.Bn():!1:a.D!==a.Z;if(c){if(c=a.Z,b<c){a.I=a.Z;return}}else c=a.D;c=Math.max(c,a.oa)}else c=a.oa;var d=a.Bk-a.u;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=jV(a)?d+b:d+Math.max(b,c);a.I=d};
lV=function(a,b){for(var c="";4095<a;)c+=lV(4095,0),a-=4095;for(;4095<b;)c+=lV(a,4095),b-=4095,a=0;return c+("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))};
nV=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.D=c;this.Ba=d;this.status=0;this.response=void 0;this.Aa=!1;this.u=0;this.va=NaN;this.oa=0;this.X=this.I=this.Z=!1;this.errorMessage="";this.Ka=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.B=f.body.getReader(),e.isDisposed()?e.B.cancel().catch(function(){}):(e.S=f.headers,e.D.Zs(),dEa(e));
else e.onDone()};
this.Ha=function(f){var h=(0,g.P)();if(!e.isDisposed())if(e.K&&(e.i.append(e.K),e.K=void 0),f.done)e.B=void 0,e.onDone();else{f=f.value;e.u+=f.length;eEa(e)?e.i.append(f):e.K=f;f=(0,g.P)();if(!e.policy.i||10<f-e.oa)e.oa=f,e.D.mq(h,e.u);dEa(e)}};
this.onError=function(f){e.ma();e.errorMessage=String(f);e.I=!0;e.onDone()};
this.i=new xC;this.id=fEa++;this.C=window.AbortController||AA()?new AbortController:void 0;this.start(a);this.startTime=Date.now()};
dEa=function(a){a.B.read().then(a.Ha,a.onError).then(void 0,cw)};
eEa=function(a){if(a.policy.i)return!1;var b=a.getResponseHeader("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.u&&a.policy.dg&&zA(a)&&b};
oV=function(a,b,c){var d=this;c=void 0===c?{}:c;this.B=b;this.u=this.status=0;this.isDisposed=this.i=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.r(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.Ys(f)};
a=$s(function(f){d.onDone(f)});
this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);c.body?this.xhr.send(c.body):this.xhr.send();this.xhr.addEventListener("progress",$s(function(f){d.rd(f)}),!1)};
rV=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.Jw?[]:h.Jw;var l=void 0===h.qx?!1:h.qx,m=void 0===h.kp?0:h.kp,n=void 0===h.poToken?"":h.poToken;h=void 0===h.Lh?void 0:h.Lh;gU.call(this,b,e);var p=this;this.policy=a;this.lastError=null;this.Z=this.B=0;this.Ba=!1;this.K=this.I=null;this.Aa=!1;this.timing=new fV(this,c);this.oa=d;this.qx=l;this.u=g.lC(this.info,this.policy,this.oa);this.u.set("rn",this.timing.requestNumber.toString());this.u.set("rbuf",(1E3*m).toFixed().toString());this.qx&&
this.u.set("smb","1");this.policy.Si&&n&&this.u.set("pot",n);this.Jw=f||null;this.Lh=h;this.D=gEa(this);this.va=1*this.policy.Zc;this.X=new g.I(this.RW,this.va,this);this.info.u.I=(0,g.P)();sma(pV(this));try{this.xhr=hEa(this),this.X.start(),this.ma("Sent, itag="+this.u.get("itag")+(" seg="+this.info.i[0].Ma)+(" range="+this.u.get("range"))+(" time="+Math.round(this.info.i[0].C)+"-"+Math.round(g.Kb(this.info.i).D))+(" rtp="+(this.timing.I-Date.now()).toFixed(0)))}catch(q){g.ky(q),this.lastError="net.ssl",
(0,g.ih)(function(){qV(p)})}};
gEa=function(a){if(!(kC(a.info)&&a.info.wk()&&a.policy.Mf&&a.Jw)||2<=a.info.u.u||0<GD()||!Vna())return!1;var b=a.u.get("aitags");if(!b)return!1;b=ng(b).split(",");for(var c=[],d=g.r(a.Jw),e=d.next();!e.done;e=d.next())e=e.value,g.Qb(b,e)&&c.push(e);if(!c.length)return!1;a.u.set("altitags",mg(c.join(",")));return!0};
pV=function(a){return SB(a.oa,XA(a.u.Pf))};
kEa=function(a,b){if(400<=b.status)return a.lastError="net.badstatus",5;if(!b.Rw())return a.lastError=204===b.status?"net.nocontent":"net.connect",5;var c="";if(iEa(a)){var d=b.Yf();d.totalLength<=a.policy.ye&&(c=BC(d),c=eB(c),Xy(c)?a.ma():c="")}if(c){var e=pV(a);(0,g.P)();e.started=0;e.timedOut=0;e.i=0;a.info.qj(a.u,c);return 3}c=b.Ek();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.KA())return a.lastError="net.closed",5;a.Jn(!0);if(!d&&a.i&&(d=a.i.Zd,d.length&&!Wma(d[0])))return a.lastError=
"net.closed",5;d=BDa(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(b=BDa(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.Ba=!0,a.policy.xl&&(d=b);$Da(a.timing,(0,g.P)(),c,d?Number(d):0);b=pV(a);(0,g.P)();b.started=0;b.timedOut=0;b.i=0;b=a.info.u;b.u=0;b.C=0;!a.Lh||(0,g.P)()<jEa+3E5||!a.u||YA(a.u.Pf)||!(b=XA(a.u.Pf))||0>b.indexOf("googlevideo.com")||(Sla(a.u.Pf)&&(e=XA(ZA(a.u.Pf))),a.Lh.i={primary:b,secondary:e},Wna(b,e),jEa=(0,g.P)());e=a.timing;a.ma("Succeeded, rtpd="+(1E3*e.S+e.i-Date.now()).toFixed(0));
return 4};
qV=function(a){var b;a.ma("Request failed, itag="+a.u.get("itag")+(" seg="+a.info.i[0].Ma)+(" sliced="+(null===(b=a.i)||void 0===b?void 0:b.u))+(" error="+a.lastError));if("net.timeout"===a.lastError){var c=a.timing,d=(0,g.P)();if(!c.cm){hV(c,d,1024*c.Ba);var e=(d-c.i)/1E3;if(2!==c.Bn())if(jV(c)){c.B+=(d-c.C)/1E3;var f=c.Lg,h=c.u;h=Math.max(h,2048);f.i.Kg(1,c.B/h);kE(f)}else aEa(c)||c.cm||(f=c.Lg,f.K.Kg(1,e),kE(f)),c.Aa=d;f=c.Lg;h=c.S;var l=c.wk;f.I.Kg(e,c.u/e);f.C=fE();l||f.u.Kg(1,e-h);voa(c.Lg,
(d-c.C)/1E3,0)}}"net.nocontent"!==a.lastError&&((c="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!YA(a.u.Pf)?(d=pV(a),d.timedOut+=1):(d=pV(a),d.i+=1),a.timing.u||(d=a.info.u,++d.u,c&&++d.C));hU(a,5)};
lEa=function(a,b){b&&(b=pV(a),b.u+=1);sV(a);a.lastError="net.timeout";qV(a)};
sV=function(a){a.ma();a.xhr&&a.xhr.abort();a.timing.deactivate()};
iEa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.yv();c=!c||c<=a.policy.ye;return(!a.xhr.It()||!b||-1!==b.indexOf("text/plain"))&&c};
hEa=function(a){if(YA(a.u.Pf))return new UDa(a.u,a.timing);var b=g.QB(a.u);return a.policy.La&&(a.policy.xp&&!isNaN(a.info.Qe)&&a.info.Qe>a.policy.bk||a.D?0:yA())?AA()?new eV(b,a.policy.D,a.timing):new nV(b,a.policy.D,a.timing):new oV(b,a.timing)};
mEa=function(a){if(!a.policy.D.dg||!isNaN(a.info.Qe)&&0<a.info.Qe)return!1;if(!a.xhr.Ln())return a.ma(),!0;if(!zA(a.xhr))return!1;if(isNaN(a.info.Qe)){var b=a.xhr.getResponseHeader("x-head-seqnum");if(!b)a.ma();else if(Number(b)>a.info.i[0].Ma)return!1}return!0};
tV=function(a,b,c,d,e){this.Ya=a;this.policy=b;this.schedule=c;this.S=d;this.Z=e;this.oa=NaN;this.u=this.K=this.C=null;this.i=this.D=this.I=this.startTimeSecs=NaN;this.B=!1;this.X=NaN};
nEa=function(a,b,c,d,e){return b.Za&&b.va&&3===Ola(b)?new tV(a,b,c,d,e):null};
oEa=function(a,b){if(a.policy.tq){var c=b.info.Ob,d=iE(a.schedule);b=b.index.Eg;c=Math.max(1,d/c);a.X=Math.round(1E3*Math.max(((c-1)*b+a.policy.oa)/c,b-a.policy.dc));a.ma()}};
rEa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.I,f=e>=a.policy.dh,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e<a.policy.Kq&&(h=!0);a.ma();a.I=c}c=d>=a.policy.dc&&!a.B;if(!f&&!c&&pEa(a,b))return NaN;c&&(a.B=!0,a.ma());a:{d=h;c=Date.now()/1E3-(a.S.jg()||0)-a.K.u-a.policy.oa;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){a.ma();uV(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.ac;d<c&&(a.ma(),c=d)}else a.B&&(d=c+a.policy.oa-a.oa+a.policy.Lq,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.ac))),
c=d);c=Math.max(c,f);a.ma();f=c}a.i=f;if(isNaN(a.i))return a.ma(),a.clear(),NaN;if(!h&&pEa(a,b))return qEa(a,b),NaN;if(a.i<=a.u.startTime)return uV(a,NaN,"y",b),a.clear(),NaN;if(!a.Z(a.i,!1))return!qEa(a,b)&&h&&(uV(a,NaN,"t",b),a.clear()),NaN;a.ma();h=a.i;uV(a,h,"s",b);a.clear();return h};
qEa=function(a,b){return a.Z(a.i,!0)?!1:(uV(a,NaN,"ns",b),a.ma(),a.clear(),!0)};
pEa=function(a,b){return isNaN(b)?!0:isNaN(a.i)?!1:b<a.i+(a.B?a.policy.ac:a.policy.zq)};
uV=function(a,b,c,d){var e=a.C.Bv();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.i).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.startTimeSecs).toFixed(0);e.ssr_n=Date.now().toFixed(0);e.ssr_f=(1E3*a.K.u).toFixed(0);e.ssr_fa=a.B?"1":"0";e.ssr_o=(1E3*a.S.jg()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.u.i.index;sC(b,a.u.Ma,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.u.Ma)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.u.Ma)).toFixed(0));a.Ya.Ca("ssr",g.kD(e))};
sEa=function(){if(!window.performance)return{};var a=window.performance.memory;return a?{jsTotal:a.totalJSHeapSize,jsUsed:a.usedJSHeapSize,msUsed:a.usedMediaSourceMemorySize}:{}};
g.vV=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.E.call(this);var p=this;this.Da=a;this.schedule=b;this.policy=c;this.i=d;this.oa=m;this.Lh=n;this.timing=new NCa;this.I=new sT(this.schedule,this.policy);this.mediaSource=null;this.X=new g.I(this.yh,0,this);this.La=new g.I(this.yh,1E3,this);this.wb=new g.I(this.yh,void 0,this);this.rb=new g.I(this.yh,1E4,this);this.S=this.currentTime=NaN;this.va=this.bb=0;this.Aa=this.Wa=this.isSuspended=!1;this.Ka="";this.Ha=new cE(5);this.Ba={};this.kb=this.Qe=
NaN;this.gh=null;this.timestampOffset=NaN;this.jb=!1;this.Za=0;this.Z=!1;this.K=null;this.Sa=NaN;this.vb=!1;a=m&&Array.from(m.Ne.keys());m&&(this.Sa=Date.now());this.u=new ET(this,this.I,c,this.i,e,a);c=XCa(this.u,f,h&&h.id);this.audioTrack=new lU(this,this.policy,c.audio);this.videoTrack=new lU(this,this.policy,c.video);this.videoTrack.C.Aa=this.audioTrack.C;this.Va={updateend:this.MP,error:this.KT};g.H(this,this.X);g.H(this,this.La);g.H(this,this.wb);g.H(this,this.rb);this.D=nEa(this,this.policy,
this.schedule,this.Ha,function(q,t){return tEa(p,q,t)});
this.B=new BT(this,this.i,this.policy,this.videoTrack,this.audioTrack,l);this.C=new wT(this,this.i,this.videoTrack,this.audioTrack,this.policy);this.ma()};
vEa=function(a,b){var c=b.i,d=a.i.isLive;if(a.i.isLive){var e=Date.now();if(!isNaN(a.Sa)&&e-a.Sa>1E3*a.policy.lr){a.Ca("ombttl","1");return}}if(a.oa&&jU(a.oa,XB(c,d))){d=XB(c,a.i.isLive);if(a.i.isLive&&a.policy.Gr)e=c.Ul(Infinity);else{if(!c.indexRange||!c.initRange)return;e=c.indexRange.length+c.initRange.length;var f=uEa(a.oa,d);if(!f){a.Ca("ombooo","1");return}e=c.Jp(f-e)}e&&(f=function(h){try{h.isFailed()?(a.Ca("ombf","1"),bV(b,h),kC(h.info)&&wV(a,b,c,!0),a.yh()):xV(a,h)&&a.yh()}catch(l){h=mD(l),
a.handleError(h.i,h.errorCode,h.details),yV(a)}},c.I=!0,jC(e)&&UU(b,new kU(d,e,a.oa,f)))}else a.Ca("ombfmt","1")};
wEa=function(a){var b=a.videoTrack.i.index;a.gh=new BCa({Ml:a.policy.Ml,dg:a.policy.D.dg,Eg:b.Eg,getLastSegmentNumber:function(){return b.getLastSegmentNumber()},
ys:function(){return b.ys()}})};
AV=function(a,b){b=b||a.videoTrack&&a.videoTrack.u&&a.videoTrack.u.startTime||a.currentTime;var c=a.videoTrack,d=a.u;b=d.nextVideo&&d.nextVideo.index.getSegmentNumberForTime(b)||0;d.Aa!==b&&(d.Ba={},d.Aa=b,FT(d,d.B));b=!LT(d)&&-1<d.X&&8E3>(0,g.P)()-d.X;var e=d.nextVideo&&3*IT(d,d.nextVideo.info)<vT(d.va);if(!b||e)GT(d),HT(d),d.Z=d.Z||d.nextVideo!==d.i;d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.Aa=-1);zV(a,c,d.nextVideo);zV(a,a.audioTrack,a.u.u)};
BV=function(a,b){a.Wa=b;a.Z||(a.ma(),a.isSuspended=!0)};
yEa=function(a){a.policy.Nb=!1;try{xEa(a)}catch(b){g.jy(b)}};
zEa=function(a){a.mediaSource&&a.mediaSource.i&&a.mediaSource.u&&(Ox(a.mediaSource.i,a.Va,a),Ox(a.mediaSource.u,a.Va,a));IU(a.audioTrack,null);IU(a.videoTrack,null);a.mediaSource=null};
CV=function(a,b){b=void 0===b?!1:b;a.ma();zEa(a);b?(a.ma(),a.Z=!0):a.policy.Fc?BV(a,a.jb):BV(a,!1);yV(a)};
DV=function(a){a.mediaSource&&a.mediaSource.rf()&&(CV(a),a.policy.Xo&&a.handleError(!0,"fmt.unplayable",{unexpected:1}))};
FV=function(a,b,c){var d=a.B;if(2===d.i||3===d.i||a.isSuspended&&(!woa(a.schedule)||a.Wa))return!1;if(a.policy.u&&5<=xF)return g.br(a.La),!1;if(a.i.isManifestless){if(0<b.B.length&&b.u&&-1===b.u.Ma||b.B.length>=a.policy.Vj&&!a.policy.bh||!a.policy.jk&&0<b.B.length&&!a.policy.D.dg)return!1;if(b.K)return!a.i.isLive||!isNaN(a.Qe)}if(SDa(b))return a.ma(),!1;if(!(b.u||a.i.isManifestless&&a.policy.bh&&b.K)){if(!b.i.Te())return!1;AT(b,a.currentTime)}d=b.B.length+c.B.length;(b.B.length&&b.B[0].Cu()||c.B.length&&
c.B[0].Cu()||a.i.isLive&&(!a.policy.bh||!b.B.length))&&--d;if(d+1>=a.policy.dk)return!1;if(!b.u)return!0;d=b.u;if(!wma(d.i.u,a.policy))return!1;4===d.type&&d.i.Te()&&(b.u=g.Kb(d.i.Yw(d)),d=b.u);if(!d.B&&!d.i.Lm(d))return!1;var e=a.i.Ze||a.i.S;if(a.i.isManifestless&&e){e=b.i.index.getLastSegmentNumber();var f=c.i.index.getLastSegmentNumber();e=Math.min(e,f);if(0<b.i.index.vu&&0<e&&d.Ma>=e)return b.X=e,c.X=e,!1}if(d.i.info.audio&&4===d.type)return!1;if(dV(b)&&!a.policy.Wa)return!0;if(d.B||YU(b)&&YU(b)+
YU(c)>a.policy.jb)return!1;e=!b.D&&!c.D;f=b===a.videoTrack&&a.Z;if(!(c=!!(c.u&&!c.u.B&&c.u.D<d.D)&&(!a.i.isManifestless||c.u&&c.u.D&&d.D)&&e&&!f||a.policy.Va&&!b.D&&c.D)&&(c=dC(d))){c=d.D;a:if(d=a.B,d=d.u?d.u.le:null,a.Z&&d)a=d.startSecs+d.durationSecs+15;else{d=EV(a,b,!0);!LT(a.u)&&0<a.policy.Aa&&(e=((0,g.P)()-a.bb)/1E3,d=Math.min(d,a.policy.Aa+a.policy.fd*e));d=a.currentTime+d;if(a.policy.vl&&(e=AEa(a)+a.policy.vl,e<d)){a.Ca("mrl","ori."+d+";mod."+e,!0);a.policy.gj&&(a.bb=(0,g.P)());a=e;break a}a=
d}c=c>a}return c?!1:(b=b.Wb)&&b.isLocked()?!1:!0};
CEa=function(a,b,c){if(FV(a,b,c)){if(b.K){if(a.i.isLive){var d=a.i.qe&&a.i.S?b.i.Mm(a.i.qe,!1):b.i.Ul(Infinity);d.Qe=a.Qe}else d=b.i.Mm(0,!1);a.D?0===d.Qe&&(d.D=a.D.X):d.D=a.kb}else if(d=b.u,d.i.Te()){var e=d.D-a.currentTime,f=!d.range||0===d.u&&0===d.Bb?0:d.range.length-(d.Bb+d.u),h=d.i;if(cV(b)&&b.i.Te()){var l=Math.min(15,.5*EV(a,b,!0));var m=dV(b)||e<=l||a.u.S;a.ma("ready to adapt: "+m+", upgrade pending: "+dV(b)+", health: "+e+", max health: "+l);l=m}else l=!1;l&&0===f&&(a.i.isManifestless?h=
b.i:(h=d.startTime+BEa,d.u&&(h+=d.duration),AT(b,h),d=b.u,h=d.i));h.Mg()?(f=a.u,c=uT(a.I,h.info.Ob,c.i.info.Ob,e,0<f.C.length&&0===f.videoIndex&&a.Aa),e=cV(b),c=d.i.qr(d,c),c.range&&1<c.i.length&&(e||c.u.u||c.i[0].i!==d.i?c=d.i.qr(d,c.i[0].u):(e=c.i[c.i.length-1],h=e.u/c.range.length,!e.Sd&&.4>h&&(c=d.i.qr(d,c.range.length-e.u)))),d=c):(0>d.Ma&&(c=gC(d),c.pr=""+b.B.length,a.C.i&&(c.sk="1"),a.Ca("nosq",d.I+";"+g.kD(c))),d=h.tu(d));if(a.Z)for(c=g.r(d.i),e=c.next();!e.done;e=c.next())e.value.type=6}else d.i.Mg()?
(c=uT(a.I,b.i.info.Ob,c.i.info.Ob,0),d=d.i.qr(d,c)):d=d.i.tu(d);if(a.K&&(c=a.B,e=d.i[0].Ma,e=0>e&&!isNaN(c.B)?c.B:e,h=OCa(a.B,d.i[0].C,e),c=a.K.Ep(h,e,d.i[0].i.info.id,b===a.audioTrack?1:2),0>e&&SCa(a.B,0,0,!0),c)){h="decurl_itag"+d.i[0].i.info.jc()+"_sg"+e+"_st"+h.toFixed(3)+".";if(a.policy.Yp&&b.isRequestPending(e-1)){a.Ca("sdai","wt_daistate_on_sg"+(e-1));return}a.Ca("sdai",h);e=d;c&&(e.B=new g.UA(c))}a.policy.aj&&-1!==d.i[0].Ma&&d.i[0].Ma<a.i.qe&&(d=b.i.Mm(a.i.qe,!1));UU(b,GV(a,d))}};
GV=function(a,b){dC(b.i[b.i.length-1])&&DEa(a,ZCa(a.u,b.i[0].i));var c=Dma(b);c={Lg:a.schedule,Bk:c,uA:ECa(a.I,c),wk:cC(b.i[0]),cm:YA(b.u.i),CD:a.policy.Z};a.gh&&(c.Ma=b.i[0].Ma,c.Qe=b.Qe,c.gh=a.gh);var d={kp:Math.max(0,b.i[0].C-a.currentTime),Jw:a.policy.Mf&&kC(b)&&b.i[0].i.info.video?dDa(a.u):void 0,qx:a.Z,poToken:EEa(a.Da),Lh:a.Lh};return new rV(a.policy,b,c,a.Ba,function(e,f){try{a:{var h=e.info.i[0].i,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.C||!(!a.mediaSource||
a.isSuspended||3<ZU(l,a.currentTime))){var m=a.policy.Db;if(!(!m||e.isComplete()||e.C<m||UB(e.info.u,a.Ba))){var n=SB(a.Ba,VB(e.info.u,!0));if(!(n.i||n.timedOut||n.started)){var p=Ema(e.info,!0);p&&GV(a,p)}}if(e.isComplete()||e.isDisposed()&&3>f){if(a.policy.bb){var q=Object.assign(gV(e.timing),{rst:""+e.state,strm:""+e.xhr.It(),d:bEa(e.timing)});a.Ca("rqs",g.kD(q))}e.Ba&&a.Ca("sbwe3","1",!0)}if(!a.isDisposed()&&2<=e.state){var t=a.timing,u=e.info.i[0].i,v=!t.u&&u.info.video,y=!t.i&&u.info.audio;
3===e.state?v?t.tick("vrr"):y&&t.tick("arr"):4===e.state?v?(t.u=g.QB(e.u),lv(),nv(4)):y&&(t.i=g.QB(e.u)):e.Cu()&&v&&(lv(),nv(4));if(3===e.state){bV(l,e);kC(e.info)&&wV(a,l,h,!0);if(a.K){var z=e.info.Ep();z&&a.K.qj(e.info.i[0].Ma,h.info.id,z)}a.yh()}else if(e.isComplete()&&5===e.info.i[0].type){if(4===e.state){var C=(e.info.i[0].i.info.video?a.videoTrack:a.audioTrack).B[0]||null;C&&C instanceof rV&&C.C&&lEa(C,!0)}e.dispose()}else{if(!e.isFailed()&&e.D&&2<=e.state&&3!==e.state){var G=e.xhr.getResponseHeader("X-Response-Itag");
if(G){a.ma();var F=cDa(a.u,G),J=e.info.range.length-F.aE();F.I=!0;e.info.i[0].i.I=!1;var U=F.Jp(J);e.info=U;if(e.i){var K=e.i,V=U.i;K.i=V;var xa=V[0].range,La=BC(K.Zd[0].i);BC(g.Kb(K.Zd).i);for(f=0;f<K.Zd.length;f++){K.Zd[f].info=V[f];var rb=V[f].range;K.Zd[f].i=new xC([new Uint8Array(La.buffer,rb.start-xa.start,rb.length)])}}e.D=!1;zV(a,a.videoTrack,F);var pb=a.videoTrack;pb.u&&(pb.u.i=F);var Pb=a.Da;Pb.videoData.lr=FA("auto",F.info.video.quality,!1,"u");HV(Pb);var lc=e.xhr.getResponseHeader("X-Segment-Lmt");
lc&&F.info.lastModified&&F.info.lastModified!==+lc&&bV(a.videoTrack,e)}else e.D=!1}if(4===e.state){if(xV(a,e),a.B){var Qa=a.B,cc=e.info,Ib=a.K;if(0!==Qa.i&&Ib&&cc.i[0].isVideo())if(cc.i[0].Ma>Qa.B&&(Qa.B=NaN,Qa.C=NaN),Qa.u&&Qa.u.Ma===cc.i[0].Ma){var Zg=Qa.u.le.event;if("start"===Zg||"continue"===Zg){if(1===Qa.i||5===Qa.i)Qa.u.Rv?(Qa.Ca("sdai","ignore."+Zg+";sq."+cc.i[0].Ma),Qa.i=4):(Qa.B=cc.i[0].Ma,Qa.C=cc.i[0].C,Qa.Ca("sdai","joinad"+Qa.i+"_sg"+Qa.B+"_st"+Qa.C.toFixed(3)),Qa.i=2,Ib.kE(Qa.u.le))}else"stop"!==
Zg||1!==Qa.i&&5!==Qa.i||Qa.Ca("sdai","joinstop;st."+Qa.i+";sg."+Qa.B+";"),Qa.i=5}else 1===Qa.i&&(Qa.i=5)}}else if(a.policy.La&&e.nt()&&!e.isComplete()&&!xV(a,e)&&!e.isFailed())break a;e.isFailed()&&a.Pv(e);a.yh();if(a.policy.wb&&e.isComplete()&&e.canRetry()&&UB(e.info.u,a.Ba)){var ai=SB(a.Ba,VB(e.info.u,!1));if(!(ai.B+a.policy.wb*tma(ai,a.policy,!0)>(0,g.P)())){var $g=Ema(e.info,!1);$g&&GV(a,$g)}}}}}}}catch(gj){e=a.vb,a.vb=!0,F=mD(gj,e),a.handleError(F.i,F.errorCode,F.details),e||yV(a)}},d)};
DEa=function(a,b){b&&(a.ma(),a.Da.jA(b));a.policy.Uj&&a.u.Va&&(b=$Ca(a.u,"a"),IV(a.Da,b.reason,b.audio.info))};
xV=function(a,b){try{var c=b.info.i[0].i.info.video?a.videoTrack:a.audioTrack;if(a.i.isManifestless&&c){c.K&&(b.isDisposed(),b.isComplete()||b.nt(),c.K=!1);b.TD()&&a.Ha.Kg(1,b.TD());var d=b.YH(),e=b.sK(),f=a.i,h;for(h in f.i){var l=f.i[h].index;l.pk&&(d&&(l.vu=Math.max(l.vu,d)),e&&(l.i=Math.max(l.i||0,e)))}}if(b.info.wk()&&!jC(b.info))for(var m=g.r(b.dC()),n=m.next();!n.done;n=m.next())bU(c.C,n.value);VU(c);return!!c.Yf()}catch(p){return p instanceof Error&&(g.ky(p),b=b.Bv(),b.origin="hrhs",b.msg||
(b.msg=""+p.message),a.handleError(!0,"fmt.unplayable",b)),!1}};
xEa=function(a){if(a.mediaSource){var b=a.mediaSource.i,c=a.mediaSource.u,d=FEa(a);if(d){if(a.policy.Xq){if(!b.Fp()){var e=a.audioTrack.Yf();e&&JV(a,b,e)}c.Fp()||(b=a.videoTrack.Yf())&&JV(a,c,b)}a.va||(a.va=(0,g.P)(),a.ma(),a.policy.Z&&a.Ca("apdps","r."+d))}else{if(a.va){d=(0,g.P)()-a.va;e=ZU(a.audioTrack,a.currentTime);var f=ZU(a.videoTrack,a.currentTime);a.ma();a.policy.Z&&a.Ca("apdpe","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.va=0}if(a.D){d=a.D;e=a.audioTrack;
f=hD(a.mediaSource.u.kf());if(d.C)d=rEa(d,f);else{if(f=e.Yf()){var h=f.u;h&&h.D&&h.u&&(e=e.B.length?e.B[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.Qe&&(d.C=e,d.K=h,d.u=f.info,d.startTimeSecs=Date.now()/1E3,d.I=d.startTimeSecs,d.D=d.u.startTime,d.ma())}d=NaN}d&&a.Da.seekTo(d,{Qp:!0,Td:"pollSubsegmentReadahead",hp:!0})}d=!1;GEa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.C||(e.C=Date.now(),e.tick("vda"),vA("vda",void 0,"video_to_ad"),e.B&&(lv(),nv(4))));if(a.mediaSource&&!a.mediaSource.rf()&&(GEa(a,
a.audioTrack,b)&&(d=a.timing,d.B||(d.B=Date.now(),d.tick("ada"),vA("ada",void 0,"video_to_ad"),d.C&&(lv(),nv(4))),d=!0),!a.isDisposed()&&a.mediaSource)){!a.policy.Nb&&XU(a.videoTrack)&&XU(a.audioTrack)&&rD(a.mediaSource)&&!a.mediaSource.Zg()&&(e=SU(a.audioTrack).i,e===a.i.i[e.info.id]&&(a.ma(),e=a.mediaSource,rD(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Ke.webkitSourceEndOfStream(e.Ke.EOS_NO_ERROR)),e=a.schedule,Qna(jE(e)),e.D=fE(),e.X=!0));e=a.policy.ir;f=a.policy.Er;d||!(0<e||f)||!rD(a.mediaSource)||
XU(a.videoTrack)||XU(a.audioTrack)||(b.oB(a.currentTime,f,e),c.oB(a.currentTime,f,e));if(c=d)c=a.mediaSource,c=!(c.i?c.i.supports(0):tD());c&&g.br(a.X)}}}};
FEa=function(a){if(SDa(a.videoTrack))return a.ma(),"ssf";var b=a.B;if(1===b.i||2===b.i||3===b.i)return"cpm";if(a.policy.Yh||ODa(a.videoTrack)||ODa(a.audioTrack))return"";if(a.C.i){b=a.I;var c=a.videoTrack,d=a.audioTrack;if(c.B.length||d.B.length){var e=0,f=dU(c.C).concat(dU(d.C));f=g.r(f);for(var h=f.next();!h.done;h=f.next())e+=h.value.u;c=c.i.info.Ob+d.i.info.Ob;e/=c;b=e<b.policy.gk?!1:10<e?!0:10>c*(10-e)/vT(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0<b.B.length&&1===b.C.u.length&&pDa(b.C).info.K<
b.oa)return"seek"}if(!a.Aa||!a.policy.vb||10>a.currentTime||360<a.videoTrack.i.info.video.i)return"";b=PDa(a.videoTrack,a.currentTime,a.policy.vb)||PDa(a.audioTrack,a.currentTime,a.policy.vb);return(0<a.videoTrack.B.length||0<a.audioTrack.B.length||FV(a,a.videoTrack,a.audioTrack)||FV(a,a.audioTrack,a.videoTrack))&&b?"nord":""};
GEa=function(a,b,c){if(c.Zg())return!0;if(!c.vy())return!1;var d=b.Yf(),e;if(!(e=!d||6===d.info.type)&&(e=a.B)){e=a.B;var f;if(f=0!==e.i&&b===e.va)e=aV(e.I),f=d.info.Ma>(e?e.Ma:-1);e=!!f}if(e)return!1;e=d.info;f=SU(b);!f||f.Sd||eC(f,e)||c.abort();!c.Dv()||oD()?c.bH(e.i.info.containerType,e.i.info.mimeType):e.i.info.containerType!==c.Dv()&&a.Ca("ctu","ct."+oD()+";prev_c."+c.Dv()+";curr_c."+e.i.info.containerType);f=e.i.D;a.policy.Rj&&f&&(e=0+f.duration,f=-f.i,0===c.Zy()&&e===c.QD()||c.mG(0,e),f!==
c.Uc()&&(c.bB(f),eU&&ADa(a.audioTrack.C,c.eE())));if(a.i.B&&0===d.info.Bb&&(g.FC(d.info.i.info)||a.policy.Qq)){if(null==c.Fp()){e=SU(b);if(!(f=!e||e.i!==d.info.i)){b:if(e=e.S,f=d.info.S,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.hc(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.Fp(),f=d.info.i.i,e=e!==f&&!g.hc(e,f);e&&a.Ca("initchg","it."+d.info.i.info.id+".ty."+d.info.type+".seg."+d.info.Ma);a.policy.Eb&&!e&&(g.FC(d.info.i.info)?(yB(EC(d),1836019574),yB(EC(d),1718909296)):(e=
new AB(EC(d)),oma(e),EB(e,524531317,!0),d.i=d.i.split(e.start+e.i).Jq),d.B=!1)}a.policy.Ug&&d.B&&(d.B=!1);e=a.D&&!!a.D.C&&b.i.info.audio;f=a.i.isManifestless||d.B;if(!(a.i.B&&0!==d.info.Bb||f&&!e)&&JV(a,c,d))return!0;if(e)return!1;e=a.currentTime+EV(a,b,!1);(e=d.info.C>e)||(a.policy.kb&&(!d.info.Bb||d.info.Sd||10>d.info.C)&&a.Ca("sba",c.Kb({as:aC(d.info)})),e=d.B?d.info.i.i:null,f=BC(d.i),d.B&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=HEa(a,c,f,d.info,e),"s"===e?(a.Za=0,e=!0):("i"===
e||"x"===e?IEa(a,"checked",e,d.info):("q"===e&&(d.info.isVideo()?(f=a.policy,f.K=Math.floor(.8*f.K),f.Ba=Math.floor(.8*f.Ba),f.I=Math.floor(.8*f.I)):(f=a.policy,f.X=Math.floor(.8*f.X),f.rb=Math.floor(.8*f.rb),f.I=Math.floor(.8*f.I)),JT(a.u,d.info.i)),KV(a.Da,{reattachOnAppend:e})),e=!1),e=!e);if(e)return!1;b.Ph(d);a.ma("Appended "+aC(d.info)+", buffered: "+dD(c.kf()));return!0};
IEa=function(a,b,c,d){var e,f="fmt.unplayable",h=!0;"x"===c||"m"===c?(f="fmt.unparseable",d.i.C=f,d.i.info.video&&!KT(a.u)&&JT(a.u,d.i)):"i"===c&&(15>a.Za?(a.Za++,f="html5.invalidstate",h=!1):f="fmt.unplayable");d=gC(d);d.mrs=null===(e=a.mediaSource)||void 0===e?void 0:sD(e);d.origin=b;d.reason=c;a.handleError(h,f,d)};
yDa=function(a,b,c,d){var e=a.i,f=!1,h=-1,l;for(l in e.i){var m=UC(e.i[l].info.mimeType)||e.i[l].info.isVideo();if(d===m)if(m=e.i[l].index,!sC(m,b.Ma))m.VB(b),f=!0;else if(e.Za){f=b;var n=m.Ck(f.Ma);n&&n.startTime!==f.startTime?(m.segments=[],m.VB(f),f=!0):f=!1;f&&(h=b.Ma)}}0<=h&&e.ea("clienttemp","restMflIndex",(d?"v":"a")+"."+h,!1);MCa(a.C,b,d,f);a.B.kA(b,c,d)};
JV=function(a,b,c){c.info.i.Te();var d=c.info.i.i;if(!d||!b.vy()||b.Fp()===d)return!1;var e=d,f=b.ez();if(a.policy.Ug&&f&&b.isView()&&g.FC(c.info.i.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=ima(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Ca("fenc","1")}f=null;(h=c.info.i.Jp(0))&&(f=h.i[0]);a.policy.kb&&a.Ca("sbi",b.Kb({as:aC(c.info)}));a.policy.Ni&&b.abort();d=HEa(a,b,e,f,d);if("s"!==d)return IEa(a,"sepInit",d,c.info),!0;a.ma();return b.Zg()};
HEa=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:dD(b.kf()).replace(/,/g,"_"),message:g.yc(f.message),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},sEa()),a.handleError(!1,"player.exception",b),"q";g.jy(f)}return"u"}return a.mediaSource.rf()?"m":"s"};
EV=function(a,b,c){if(a.isSuspended)return 1;var d=b.i.info.audio?a.policy.X:a.policy.K;!a.policy.Wa&&LT(a.u)&&(d=Math.max(d,b.i.info.audio?a.policy.rb:a.policy.Ba));c&&(d+=a.policy.jb);var e=LT(a.u)?b.u?b.u.i.info.Ob:b.i.info.Ob:b.Ob;d/=e;0<a.policy.fk&&a.mediaSource&&rD(a.mediaSource)&&(b=b.i.info.video?a.mediaSource.u:a.mediaSource.i)&&!b.Zg()&&(b=b.kf(),e=eD(b,a.currentTime),0<=e&&(b=a.currentTime-b.start(e),d+=Math.max(0,Math.min(b-a.policy.fk,a.policy.jr))));0<a.policy.I&&(d=Math.min(d,a.policy.I));
a.policy.ek&&c&&!LT(a.u)&&(c=a.u,c=IT(c,g.Kb(c.C))+IT(c,c.I.i[0]),c=a.policy.ek*(c/tT(a.I)),c<d&&15>c&&a.Ca("bwcapped","1",!0),c=Math.max(c,15),d=Math.min(d,c));return d};
AEa=function(a){var b=g.ap(a.Da.Rl(),function(d){return"ad"===d.namespace});
b=g.r(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.currentTime)return c.start/1E3;return Infinity};
JEa=function(a,b){$D(b,"cms",function(c){a.policy.Z&&a.Ca("pathprobe",c)},function(c){a.Da.handleError(c)})};
KEa=function(a,b){a.K=b;a.B&&(a.B.D=b);a.K.qG(a.videoTrack.i.info.pe())};
LEa=function(a,b){if(a.mediaSource&&a.mediaSource.u){b-=!isNaN(a.timestampOffset)&&a.policy.hh?a.timestampOffset:0;var c=a.B;if(0!==c.i&&c.D){var d=c.Ds(b);d!==c.X&&(c.D.DF(c.X,d),c.X=d)}a.currentTime!==b&&a.resume();a.C.i&&a.mediaSource&&!a.mediaSource.rf()&&(c=a.currentTime<=b&&b<a.currentTime+10,d=fD(a.mediaSource.u.kf(),a.currentTime+BEa),c&&d&&(a.C.i=!1));a.C.i||(a.currentTime=b);g.br(a.La)}};
MEa=function(a,b){var c=WU(a.videoTrack).find(function(d){return d.startTime>=b&&tEa(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
tEa=function(a,b,c){if(!(a.videoTrack.i.Te()&&a.audioTrack.i.Te()&&a.mediaSource&&a.mediaSource.u&&a.mediaSource.i))return!1;if(c&&a.i.isManifestless&&(-1===a.videoTrack.I||-1===a.audioTrack.I))return!0;var d=yT(a.videoTrack,b,c);if(isNaN(d))return!1;a=yT(a.audioTrack,a.policy.va?b:d,c);return isNaN(a)?!1:!0};
zV=function(a,b,c){b.i!==c&&(a.ma(),b.i=c)};
wV=function(a,b,c,d){if(!(c.Te()||c.uu()||c.I)&&wma(c.u,a.policy)&&"f"!==c.info.i){if(d){d=a.I;var e=c.info,f=FCa(d,e.video?d.policy.Pq:d.policy.Ui,e.Ob);d=d.policy.Oh&&e.video?Math.max(f,d.policy.Oh):f}else d=0;d=c.Jp(d);a=GV(a,d);jC(d)&&UU(b,a);c.I=!0}};
yV=function(a){try{var b=a.audioTrack;xT(b);zT(b.C);var c=a.videoTrack;xT(c);zT(c.C)}catch(d){g.jy(d)}a.policy.u=""};
NEa=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.ma(),a.B.K=a.timestampOffset,a.Da.FF(a.timestampOffset),a.i.isManifestless&&(b=a.i,a=a.timestampOffset,b.Ha?b.timestampOffset=a:b.u=a))};
g.LV=function(a){this.od=a};
MV=function(){g.Q.apply(this,arguments)};
NV=function(a,b,c,d){MV.call(this);var e=this;this.B=-1;this.i={};this.C=new g.I(this.D,0,this);g.H(this,this.C);this.u=new g.I(function(){e.isDisposed()||(e.C.start(Math.random()*c),e.u.start(b))},a,this);
g.H(this,this.u);d.subscribe("fairplay_next_need_key_info",this.I,this)};
OEa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
PEa=function(a){var b=a.interval,c=a.Zw;this.url=a.url;this.interval=b;this.Zw=c};
QEa=function(a,b){this.statusCode=a;this.message=b;this.i=this.heartbeatParams=this.errorMessage=null;this.u={};this.nextFairplayKeyId=null};
SEa=function(a){var b=dB(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(-1===c)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null==e)return null;e=e[1];isFinite(e)&&(e=String(e));e="string"===typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=pB(b.slice(d+2));if(null==b)return null;a=new QEa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.nsa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new PEa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Zw:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.i=c.split(",");if(c=b["Key-Ids"])a.u=REa(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
REa=function(a){if(!a)return{};a=a.split(";");var b={};g.jc(a,function(c){c=c.split(",");2===c.length&&(b[c[1]]=c[0])});
return b};
OV=function(a,b,c){c=void 0===c?"":c;g.E.call(this);this.message=a;this.requestNumber=b;this.u=c;this.onError=this.onSuccess=null;this.i=new g.gi(5E3,2E4,.2)};
TEa=function(a,b,c){a.onSuccess=b;a.onError=c};
VEa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.isDisposed())if(a.ma(),0!==e.status&&e.response)if(sA("drm_net_r",void 0,a.u),e=new Uint8Array(e.response),e=SEa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else UEa(a,e)},
onError:function(e){UEa(a,e)}};
c&&(b=Ki(b,"access_token",c));g.Yt(b,d);a.ma()};
UEa=function(a,b){if(!a.isDisposed())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
XEa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){a.ma();sA("drm_net_r",void 0,a.u);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Dc(f.license)}catch(v){g.jy(v)}if(0!==h||l){l=new QEa(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.r(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var t=WEa[q.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");q.isHdr&&(t+=
"HDR");h[t]||(m.push(t),h[t]=!0);var u=null;try{u=Dc(q.keyId)}catch(v){g.jy(v)}u&&(n[g.xc(u,4)]=t)}}l.i=m;l.u=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}},
onError:function(f){if(!a.isDisposed())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")},
onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.eJ="Bearer "+d);g.Pv(c,"player/get_drm_license",b,e)};
QV=function(a,b,c,d){g.Q.call(this);this.videoData=a;this.Y=b;this.Ba=c;this.sessionId=d;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.K=this.X=!1;this.B=null;this.va=[];this.D=[];this.Z=!1;this.i={};this.oa=NaN;this.status="";this.I=NaN;this.u=a.I;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.Y.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Sa&&(a.vvt=this.videoData.Sa,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.Y.X&&(a.authuser=this.Y.X);this.Y.pageId&&(a.pageid=this.Y.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Ab))?e[1]:"";"ATV"===e&&(a.cdt=e);this.C=a;this.C.session_id=d;this.S=!0;"widevine"===this.u.flavor&&(this.C.hdr="1");"playready"===this.u.flavor&&(b=Number(g.KD(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.C.mfpe=""+b),this.S=!1);this.baseUrl=g.RD(this.u)?OEa(c.initData).replace("skd://",
"https://"):this.u.C;this.fairplayKeyId=Ii(this.baseUrl,"ek")||"";if(b=Ii(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Aa=this.videoData.N("html5_use_drm_retry");this.va=c.u;this.ma();PV(this,"sessioninit."+c.cryptoPeriodIndex);this.status="in"};
aFa=function(a,b){PV(a,"createkeysession");a.status="gr";sA("drm_gk_s",void 0,a.videoData.vb);a.url=YEa(a);try{a.B=b.createSession(a.Ba,function(c){PV(a,c)})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.ea("licenseerror","drm.unavailable",!0,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.B&&(ZEa(a.B,function(c,d){$Ea(a,c,d)},function(c,d,e){if(!a.isDisposed()){a.ma();
d=void 0;var f=!0;g.RD(a.u)&&g.FE(a.Y)&&a.Y.N("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=!a.Y.N("html5_safari_fairplay_ignore_hdcp"));a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(a.ma(),PV(a,"onkyadd"),a.K||(a.ea("sessionready"),a.K=!0))},function(c){a.uo(c)}),g.H(a,a.B))};
YEa=function(a){var b=a.baseUrl;Wka(b)||a.error("drm.net",!0,"t.x");if(!Ii(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.Y.experiments.experiments[e]});
0<c.length&&(a.C.fexp=c.join())}c=g.r(Object.keys(a.C));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Ki(b,d,a.C[d]);return b};
$Ea=function(a,b,c){if(!a.isDisposed())if(b){a.ma();PV(a,"onkmtyp."+c);a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":bFa(a,b);return;default:a.ea("ctmp","message_type","t."+c+";l."+b.byteLength)}a.X||(sA("drm_gk_f",void 0,a.videoData.vb),a.X=!0,a.ea("newsession",a));if(OD(a.u)&&(b=cFa(b),!b))return;g.RD(a.u)&&!a.videoData.useInnertubeDrmService()&&(b=cB(g.xc(b)));b=new OV(b,++a.requestNumber,a.videoData.vb);TEa(b,
function(d,e){dFa(a,d,e)},function(d,e,f){if(!a.isDisposed()){var h=!1,l;
(l=3<=d.i.u)||(l=a.Aa&&36E4<(0,g.P)()-a.oa);l&&(h=!0,e="drm.net.retryexhausted");a.ma();PV(a,"onlcsrqerr."+e+";"+f);a.error(e,h,f);a.shouldRetry(h,d)&&eFa(a,d)}});
g.H(a,b);fFa(a,b)}else a.error("drm.unavailable",!1,"km.empty")};
bFa=function(a,b){a.ma();PV(a,"sdpvrq");a.I=Date.now();if("widevine"!==a.u.flavor)a.error("drm.provision",!0,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.Y.deviceParams);c=g.Ei("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);b={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:dB(b)}),responseType:"arraybuffer"};
g.cu(c,b,3,500).then($s(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=dB(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.ea("ctmp","drminfo","provisioning"),f=(Date.now()-a.I)/1E3,a.I=NaN,a.ea("ctmp","provs",""+f.toFixed(3)),a.B&&a.B.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",!0,d))}}),$s(function(d){a.isDisposed()||a.error("drm.provision",!0,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
RV=function(a){var b;if(b=a.S&&null!=a.B)a=a.B,b=!(!a.i||!a.i.keyStatuses);return b};
fFa=function(a,b){var c,d;a.status="km";sA("drm_net_s",void 0,a.videoData.vb);if(a.videoData.useInnertubeDrmService()){var e=new g.Ex(a.Y.Ug),f={context:g.Nv(e.config_||g.Ov())};f.drmSystem=gFa[a.u.flavor];f.videoId=a.videoData.videoId;f.cpn=a.videoData.clientPlaybackNonce;f.sessionId=a.sessionId;f.licenseRequest=g.xc(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.B)||void 0===
c?void 0:c.video)||void 0===d||!d.isHdr());f.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(!f.context||!f.context.client){a.ma();a.error("drm.net",!0,"t.r;ic.0");return}if(h=a.Y.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.Sa&&(f.context.user.credentialTransferTokens=[{token:a.videoData.Sa,scope:"VIDEO"}]);f.context.request.mdxEnvironment=a.videoData.mdxEnvironment||f.context.request.mdxEnvironment;a.videoData.wb&&(f.context.user.kidsParent={oauthToken:a.videoData.wb});if(g.RD(a.u)){h=a.fairplayKeyId;for(var l=[],m=0;m<h.length;m+=2)l.push(parseInt(h.substring(m,m+2),16));f.fairplayKeyId=g.xc(l)}XEa(b,f,e,a.videoData.mf())}else VEa(b,a.url,a.videoData.oauthToken);a.status="rs"};
dFa=function(a,b,c){if(!a.isDisposed()){if(a.requestNumber!==c&&"widevine"===a.u.flavor&&((a.Y.N("html5_drm_ignore_out_of_order_responses")||a.Y.N("html5_drm_ignore_out_of_order_responses_cfl"))&&PV(a,"drmOOO."+a.requestNumber+"."+c,!0),a.Y.N("html5_drm_ignore_out_of_order_responses")))return;PV(a,"onlcsrsp");a.status="rr";0!==b.statusCode?a.error("drm.auth",!0,"t.f;c."+b.statusCode,b.errorMessage||void 0):(sA("drm_kr_s",void 0,a.videoData.vb),b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.N("outertube_streaming_data_always_use_staging_license_service")&&
(c=a.u.C.match(/(.*)youtube.com/g))&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url),b.heartbeatParams&&a.ea("newlicense",b.heartbeatParams),b.i&&(a.D=b.i,a.Y.N("html5_heartbeat_wait_for_drm_killswitch")||(a.videoData.useInnertubeDrmService()&&!a.videoData.gF&&a.ea("newlicense",new PEa({})),a.videoData.gF=!0),a.Z=Jn(a.D,function(d){return d.includes("HDR")})),b.u&&(a.i=se(b.u,function(d){return{type:d,
status:"unknown"}})),PD(a.u)&&!a.videoData.useInnertubeDrmService()?b.message=Dc(dB(b.message)):QD(a.u)&&a.videoData.useInnertubeDrmService()&&(b.message=cB(g.xc(b.message))),a.B&&(a.ma(),PV(a,"updtks"),a.status="ku",a.B.update(b.message).then(function(){sA("drm_kr_f",void 0,a.videoData.vb);
RV(a)||(PV(a,"ksApiUnsup"),a.ea("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.yc(d.message);
a.error("drm.keyerror",!0,d)})),a.K&&(a.oa=(0,g.P)()),g.RD(a.u)&&a.ea("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId))}};
eFa=function(a,b){var c=b.i.getValue();c=new g.I(function(){fFa(a,b)},c);
g.H(a,c);c.start();g.hi(b.i);a.ma();PV(a,"rtyrq")};
hFa=function(a,b){for(var c=[],d=g.r(Object.keys(a.i)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.i[e].type+"_"+a.i[e].status);return c.join(b)};
iFa=function(a){var b=a.status+".";return RV(a)?b+hFa(a,"."):b+a.D.join(".")};
jFa=function(a,b){switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:return""}b&&(a+="HDR");return a};
SV=function(a,b){for(var c in a.i)if("usable"===a.i[c].status&&a.i[c].type===b)return!0;return!1};
PV=function(a,b,c){c=void 0===c?!1:c;a.ma();(c||a.videoData.oa)&&a.ea("ctmp","drmlog",b)};
kFa=function(a){var b=a[0];a[0]=a[3];a[3]=b;b=a[1];a[1]=a[2];a[2]=b;b=a[4];a[4]=a[5];a[5]=b;b=a[6];a[6]=a[7];a[7]=b};
cFa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=Sj(new DOMParser,g.Yf(g.tf("Uses only text content."),b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(DQ(Ac(a.childNodes[0].nodeValue)).buffer):null:null};
lFa=function(a,b,c,d){if(a=cB(g.xc(a)))a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Bba(c,d),g.cu(c,a,3,500).then(function(e){e=new Uint8Array(e.xhr.response);(e=SEa(e))&&e.message&&b.update(e.message)})};
TV=function(a,b,c,d,e){g.E.call(this);this.element=a;this.S=b;this.initData=c;this.i=d;this.u=e;this.sessionId="";this.K=this.I=this.B=this.D=null;this.C=new g.WC(this);g.H(this,this.C);mFa(this)};
mFa=function(a){a.i?(a.C.T(a.i,"message",a.NP),a.C.T(a.i,"keystatuseschange",a.uo),a.i.closed&&a.i.closed.then($s(function(){a.isDisposed()||ou("xboxone")&&a.B&&a.B("closed")}),null)):a.u&&(Lx(a.C,a.u,["mskeymessage",
"webkitkeymessage"],a.GM),Lx(a.C,a.u,["mskeyerror","webkitkeyerror"],a.FM),Lx(a.C,a.u,["mskeyadded","webkitkeyadded"],a.EM))};
ZEa=function(a,b,c,d,e){a.D=b;a.B=c;a.I=d;a.K=e};
nFa=function(a,b,c){g.Zs(c);a.B&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.B(b))};
UV=function(a,b){g.E.call(this);this.element=a;this.i=b;this.I={};this.C=null;this.D=new g.WC(this);this.B=this.u=null;g.H(this,this.D)};
VV=function(a){if(a.i.keySystemAccess)return a.i.keySystemAccess.createMediaKeys().then(function(b){a.isDisposed()||(a.u=b,a.element.setMediaKeys(b))});
ND(a.i)?a.B=new (MD())(a.i.keySystem):PD(a.i)?(a.B=new (MD())(a.i.keySystem),a.element.webkitSetMediaKeys(a.B)):oFa(a);return null};
oFa=function(a){Lx(a.D,a.element,["keymessage","webkitkeymessage"],a.QP);Lx(a.D,a.element,["keyerror","webkitkeyerror"],a.PP);Lx(a.D,a.element,["keyadded","webkitkeyadded"],a.OP)};
qFa=function(a,b){b=pFa(b,a.i.u);a=a.B.createSession("video/mp4",b);return new TV(null,null,null,null,a)};
rFa=function(a,b){for(var c=new Uint8Array(270),d=0;135>d;d++)c[2*d]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);a=a.B.createSession("video/mp4",b,c);return new TV(null,null,null,null,a)};
WV=function(a,b){var c=a.I[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c};
pFa=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e<c.length;e+=2)d+=String.fromCharCode(parseInt(c.substr(e,2),16));c=d;d=new ArrayBuffer(2*c.length);e=new Uint16Array(d);for(var f=0;f<c.length;f++)e[f]=c.charCodeAt(f);c=new Uint8Array(d);d=0;f=new ArrayBuffer(a.byteLength+4+c.byteLength+4+b.byteLength);e=new Uint8Array(f);f=new DataView(f);e.set(a);d+=a.byteLength;f.setUint32(d,
c.length,!0);d+=4;e.set(c,d);d+=c.length;f.setUint32(d,b.byteLength,!0);e.set(b,d+4);return e};
XV=function(a,b){g.E.call(this);this.i=g.Ng("video");this.u=null;this.D=[];this.C=new g.WC(this);this.B=new LD("fairplay","com.youtube.fairplay","",b);this.B.u=a;g.H(this,this.C);this.init()};
YV=function(a,b,c,d){MV.call(this);var e=this;this.D=a;this.C=b;this.B=c;this.i=[];this.u=new g.I(function(){e.ea("log_qoe","wvagt.timer;reqlen."+(e.i?e.i.length:-1));if(e.i){if(0<e.i.length){var f=e.i.shift();sFa(e,f.info)}0<e.i.length&&(f=e.i[0].time-(0,g.P)(),e.u.start(Math.max(0,f)))}},0);
g.H(this,this.u);d.subscribe("widevine_set_need_key_info",this.I,this)};
sFa=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.B.size)c=!0;else{for(var d=g.r(a.B.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.ea("log_qoe","wvagt.reqnews;canskip."+c);c||a.ea("rotated_need_key_info_ready",b)};
ZV=function(){this.keys=[];this.values=[]};
$V=function(a){a.keys=[];a.values=[]};
aW=function(a,b){return g.Nb(a.keys,function(c){return g.hc(b,c)})};
bW=function(a,b,c){g.Q.call(this);this.element=a;this.videoData=b;this.Y=c;this.i=this.videoData.I;this.drmSessionId=this.videoData.drmSessionId||g.Yja();this.u=new Map;this.I=new ZV;this.K=new ZV;this.B=[];this.Ha=2;this.oa=new g.WC(this);this.Ka=this.Aa=!1;this.heartbeatParams=null;this.va=this.X=!1;this.D=null;this.Ba=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||MD()||SD(c.experiments);c=this.videoData.Sg;this.S="fairplay"===this.i.flavor||c?QF:tFa;this.C=new UV(this.element,this.i);g.H(this,
this.C);ND(this.i)&&(this.Z=new UV(this.element,this.i),g.H(this,this.Z));g.H(this,this.oa);c=this.element;this.i.keySystemAccess?this.oa.T(c,"encrypted",this.RP):Lx(this.oa,c,ND(this.i)?["msneedkey"]:["needkey","webkitneedkey"],this.RU);uFa(this);a:switch(c=this.i,a=this.Y.experiments,b=this.u,c.flavor){case "fairplay":19.2999<nu()?(a=c.K,c=c.I,c>=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(a.ob("disable_license_delay"),!a.ob("h5_widevine_keyrotationagent_optimization_killswitch"),
b,this);break a;default:c=null}if(this.D=c)g.H(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.bJ,this),this.D.subscribe("log_qoe",this.Ig,this);this.ma("Created, key system "+this.i.keySystem+", final EME "+SD(this.Y.experiments));this.Ig("cks"+this.i.lf());c=this.i;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.D&&(this.La=new XV(this.videoData.Zc,this.Y.experiments),g.H(this,this.La))};
uFa=function(a){var b=VV(a.C);b?b.then($s(function(){vFa(a)}),$s(function(c){if(!a.isDisposed()){a.ma();
g.Zs(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ea("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.ma(),a.Ig("mdkrdy"),a.X=!0);
a.Z&&(b=VV(a.Z))};
xFa=function(a,b,c){a.Ka=!0;c=new ST(b,c);a.Y.N("html5_eme_loader_sync")&&(a.I.get(b)||a.I.set(b,c));wFa(a,c)};
wFa=function(a,b){if(!a.isDisposed()){a.Ig("onInitData");if(a.Y.N("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.i){var c=a.K.get(b.initData);b=a.I.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.I.remove(c);a.K.remove(c)}a.ma();a.Ig("initd."+b.initData.length+";ct."+b.contentType);if("widevine"===a.i.flavor)if(a.Aa&&!a.videoData.isLivePlayback)cW(a);else{if(!(a.Y.N("vp9_drm_live")&&a.videoData.isLivePlayback&&b.pe)){a.Aa=!0;c=b.cryptoPeriodIndex;var d=b.i;kDa(b);b.pe||(d&&b.i!==d?a.ea("ctmp",
"cpsmm","emsg."+d+";pssh."+b.i):c&&b.cryptoPeriodIndex!==c&&a.ea("ctmp","cpimm","emsg."+c+";pssh."+b.cryptoPeriodIndex));a.ea("widevine_set_need_key_info",b)}}else a.bJ(b)}};
vFa=function(a){if(!a.isDisposed())if(a.Y.N("html5_drm_set_server_cert")&&!g.ME(a.Y)){var b=a.C.setServerCertificate();b?b.then($s(function(c){a.videoData.oa&&a.ea("ctmp","ssc",c)}),$s(function(c){a.ea("ctmp","ssce","n."+c.name+";m."+c.message)})).then($s(function(){dW(a)})):dW(a)}else dW(a)};
dW=function(a){a.isDisposed()||(a.X=!0,a.ma(),a.Ig("onmdkrdy"),cW(a))};
yFa=function(a){return"widevine"===a.i.flavor&&a.videoData.N("html5_drm_cpi_license_key")};
cW=function(a){if(a.Ka&&a.X&&!a.va){for(;a.B.length;){var b=a.B[0],c=yFa(a)?lDa(b):g.xc(b.initData);if(a.u.get(c))if("fairplay"===a.i.flavor)a.u.delete(c);else{a.B.shift();continue}kDa(b);break}a.B.length&&a.createSession(a.B[0])}};
zFa=function(a){var b;if(b=g.ru()){var c;b=!(null===(c=a.C.u)||void 0===c||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.B.TextDecoder?(new TextDecoder).decode(b):g.fb(b),a.ea("ctmp","drm",b))};
fW=function(a){g.E.call(this);var b=this;this.Da=a;this.i=this.Da.V();this.videoData=this.Da.getVideoData();this.Oz=0;this.I=this.B=!1;this.D=0;this.C=g.S(this.i.experiments,"html5_delayed_retry_count");this.u=new g.I(function(){eW(b.Da)},g.S(this.i.experiments,"html5_delayed_retry_delay_ms"));
g.H(this,this.u)};
hW=function(a,b,c){var d=a.videoData.B;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.Da.zg.C&&d&&"22"===d.jc())return a.Da.zg.C=!0,a.ld("qoe.restart",{reason:"fmt.unplayable.22"}),gW(a.Da),!0;var e=!1,f=a.Oz+3E4<(0,g.P)()||a.u.isActive();if(a.i.N("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.ld("auth",c),!0;var h;if(h=!f)h=a.Da.Np(),h=!!(h.Je()||h.isInline()||h.isBackground()||h.Ls()||h.Js());
h&&(c.nonfg="paused",f=!0,a.Da.pauseVideo());!f&&0<a.C&&(a.u.start(),f=!0,c.delayed="1",--a.C);h=a.Da.Ya;if(!f&&!a.videoData.N("html5_disable_codec_on_platform_errors_cfl")&&((null===d||void 0===d?0:SC(d))||(null===d||void 0===d?0:QC(d)))){if(a.videoData.N("html5_disable_codec_on_platform_errors")){a.i.B.i.set(d.i,{eK:1,eG:Number.MAX_SAFE_INTEGER});var l="cfalls"}else if(a.videoData.N("html5_disable_codec_on_errors_with_exp_backoff")){l=a.i.B;var m=d.i,n=0;l.i.has(m)&&(n=l.i.get(m).eK);l.i.set(m,
{eK:n+1,eG:Math.pow(2,n+1)});l="cfallexp"}else a.videoData.N("html5_disable_codec_for_playback_on_error")&&h&&(m=h.u,n=d.i,m.Sa.has(n)?m=!1:(m.Sa.add(n),m.X=-1,FT(m,m.B),m=!0),m&&(l="cfallp"));l&&(e=f=!0,c[l]=d.i)}if(!f)return AFa(a,c);a.Oz=(0,g.P)();f=a.videoData;f.bb?(f=f.bb.KH(),l=Date.now()/1E3+1800,f=f<l):f=!1;c.e=b;f&&(c.staleprog="1");a.ld("qoe.restart",c);if(f&&BFa(a))return CFa(a),!0;ou("philips")&&DFa(a);!a.videoData.N("html5_disable_codec_on_platform_errors")&&d&&SC(d)?(a.i.B.disableAv1(),
e=!0):h?(b=(b=SU(h.videoTrack)||h.videoTrack.u)?b.i:h.videoTrack.i,b.S+=1,JT(h.u,b,!0)):a.videoData.bb&&a.videoData.bb.jG();a.u.isActive()||eW(a.Da,e);return!0};
AFa=function(a,b){if(a.videoData.kb)return!1;a.i.Wa+=1;if(10>=a.i.Wa)return!1;b.exiled=""+a.i.Wa;a.ld("qoe.start15s",b);a.Da.ea("playbackstalledatstart");return!0};
DFa=function(a){if("GAME_CONSOLE"!==a.i.deviceParams.cplatform)try{window.close()}catch(b){}};
BFa=function(a){return a.B?!0:"yt"!==a.i.va?!1:a.videoData.kb?25>a.videoData.Db:!a.videoData.Db};
CFa=function(a){if(!a.B){a.B=!0;var b=a.Da.getPlayerState();b=g.T(b,4)||b.isSuspended();a.Da.wm();b&&!BG(a.videoData)||a.Da.ea("signatureexpired")}};
EFa=function(a,b){if((a=a.Da.kd())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.hj();b.details.merr=c?c.toString():"0";b.details.msg=a.me()}};
GFa=function(a,b){if("403"===b.details.rc){var c=b.errorCode;c="net.badstatus"===c||"manifest.net.retryexhausted"===c}else c=!1;if(!c&&!a.B)return!1;b.details.sts="18942";if(BFa(a))return b.i&&(b=Object.assign({e:b.errorCode},b.details),b=new g.lD("qoe.restart",!1,b)),a.ld(b.errorCode,b.details),CFa(a),!0;6048E5<(0,g.P)()-a.i.kb&&FFa(a,"signature");return!1};
FFa=function(a,b){try{window.location.reload();a.ld("qoe.restart",{detail:"pr."+b});return}catch(c){}a.i.N("tvhtml5_retire_old_players")&&g.ME(a.i)&&DFa(a)};
HFa=function(a,b){a.i.B.C=!1;a.ld("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});gW(a.Da)};
IFa=function(a,b,c,d){this.videoData=a;this.i=b;this.reason=c;this.u=d};
iW=function(a,b,c){this.Y=a;this.mx=b;this.Da=c;this.X=this.I=this.K=this.u=this.i=this.D=this.S=this.B=0;this.playbackRate=1;this.C=!1};
KFa=function(a,b,c){!a.Y.N("html5_tv_ignore_capable_constraint")&&g.ME(a.Y)&&(c=c.compose(JFa(a,b)));return c};
MFa=function(a){a=LFa(a);return FA("auto",a,!1,"s")};
LFa=function(a){var b;a.N("html5_exponential_memory_for_sticky")?b=.5>lE(a.Y.dc,"sticky-lifetime")?"auto":HA[GD()]:b=HA[GD()];return b};
NFa=function(a,b){return 1<a.playbackRate?(a=joa(a.Y.B,b.i.videoInfos,a.playbackRate),new CA(0,a,!0,"o")):new CA(0,0,!1,"o")};
OFa=function(a){var b=a.videoData.MD;if(b&&b.i.length&&GA(a.videoData.lr)){for(var c=new Map,d=g.r(a.i.videoInfos),e=d.next();!e.done;e=d.next())e=e.value,c.set(+e.jc(),e.video.i);d=[];b=g.r(b.i);for(e=b.next();!e.done;e=b.next())(e=c.get(e.value))&&d.push(e);c=Math.max.apply(Math,g.la(d));a.videoData.lr=new CA(0,c,!1,"u")}return a.videoData.lr};
JFa=function(a,b){if(g.ME(a.Y)&&OA(a.Y.B,PA.HEIGHT))var c=b.i.videoInfos[0].video.i;else{var d=!!b.i.i;var e;CE(a.Y)&&(e=window.screen&&window.screen.width?new g.jg(window.screen.width,window.screen.height):null);e||(e=a.Y.dj?a.Y.dj.clone():a.mx.pg());(EE||$F||d)&&e.scale(g.VE());d=e;b.videoData.Pn()||BG(b.videoData);b=b.i.videoInfos;if(b.length){e=.85;var f=b[0].video;4!==f.projectionType&&2!==f.projectionType&&3!==f.projectionType||AE||(e=.45);a=g.S(a.Y.experiments,"html5_viewport_undersend_maximum");
for(f=0;f<b.length;f++){c=b[f];var h=c.video;if(null===d||h.width*e<d.width&&h.height*e<d.height){a&&f&&h.width<d.width*a&&h.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c="93"===c.jc()?g.EA[KC(d.width,d.height)]:d.i;c=new CA(0,c,!1,"r")}else c=QF;c=c.i}c&&(c=Math.max(c,360));return new CA(0,c,!1,"r")};
PFa=function(a){var b,c,d;return g.A(function(e){switch(e.i){case 1:return a.i.i&&navigator.mediaCapabilities?g.x(e,Promise.resolve(),2):e.return(Promise.resolve());case 2:b=g.r(a.i.videoInfos),c=b.next();case 3:if(c.done){e.fb(0);break}d=c.value;return g.x(e,fna(d),4);case 4:c=b.next(),e.fb(3)}})};
RFa=function(a,b){if(!b.videoData.B||a.N("html5_disable_performance_downgrade"))return!1;6E4<g.Sa()-a.S&&(a.B=0);a.B++;a.S=g.Sa();if(4!==a.B)return!1;QFa(a,b.videoData.B);return!0};
TFa=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.S(a.Y.experiments,"html5_df_downgrade_thresh"),f=a.N("html5_log_media_perf_info"),h=g.S(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.P)()-a.D?0:f||0<e||0<h))return!1;a.D=(0,g.P)();c=c.Px();if(!c)return!1;var l=c.droppedVideoFrames-a.I,m=c.totalVideoFrames-a.X;a.I=c.droppedVideoFrames;a.X=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&b.videoData.oa&&a.Da.Ca("ddf",
"dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames+";comp."+n);if(d)return a.i=0,a.u=0,!1;d=60<m?l/m:0;0<d&&(a.K=d);a.u=0<h&&60*d>h?a.u+1:0;if(!e||g.ME(a.Y))return!1;a.i=d>e?a.i+1:0;if(3!==a.i)return!1;QFa(a,b.videoData.B);a.Da.Ca("dfd","dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames+";"+SFa());return!0};
UFa=function(a,b){return 0>=g.S(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32<b.video.fps)?!1:3<=a.u?(a.u=0,!0):!1};
QFa=function(a,b){var c=b.i,d=b.video.fps;b=b.video.i-1;var e=HD();c=Tna(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.zy("yt-player-performance-cap",e,604800));a.Da.Ot()};
VFa=function(a,b){if(!b.i.i)return a.C?new CA(0,360,!1,"b"):QF;for(var c=!1,d=!1,e=g.r(b.i.videoInfos),f=e.next();!f.done;f=e.next())SC(f.value)?c=!0:d=!0;c=c&&d;d=0;f=g.S(a.Y.experiments,"html5_performance_cap_floor");a=a.Y.isMobile?240:f;b=g.r(b.i.videoInfos);for(f=b.next();!f.done;f=b.next())if(e=f.value,!c||!SC(e))if(f=ID(e.i,e.video.fps),e=e.video.i,Math.max(f,a)>=e){d=e;break}return new CA(0,d,!1,"b")};
jW=function(a){var b=a.Da.Np(),c=g.S(a.Y.experiments,"html5_inline_quality_cap"),d=g.S(a.Y.experiments,"html5_background_quality_cap"),e=g.S(a.Y.experiments,"html5_background_cap_idle_secs");return c&&b.isInline()?new CA(0,c,!1,"v"):!d||"auto"!==LFa(a)||uv()/1E3<e?QF:b.isBackground()?new CA(0,d,!1,"v"):QF};
kW=function(a,b,c){if(g.ME(a.Y)&&(1080<=GD(-1)||b.osid))return QF;var d=g.S(a.Y.experiments,"html5_autonav_quality_cap"),e=g.S(a.Y.experiments,"html5_autonav_cap_idle_secs");return d&&b.Mk&&uv()/1E3>e?(c&&(d=WFa(a,c,d)),new CA(0,d,!1,"e")):QF};
WFa=function(a,b,c){if(a.N("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.i.videoInfos,b=1;b<a.length;b++)if(a[b].video.i<c)return a[b-1].video.i;return c};
XFa=function(a,b){a.N("html5_log_media_perf_info")&&(a.Da.Ca("perfdb",SFa()),a.Da.Ca("hwc",""+navigator.hardwareConcurrency,!0),b&&a.Da.Ca("mcdb",b.i.videoInfos.filter(function(c){var d;return!1===(null===(d=c.u)||void 0===d?void 0:d.smooth)}).map(function(c){return c.jc()}).join("-")))};
SFa=function(){var a=se(HD(),function(b){return""+b});
return g.kD(a)};
lW=function(a,b){g.E.call(this);this.i=a;this.K=b;this.u=-1;this.I=!1;this.B=-1;this.playerState=new g.CJ;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.I(this.send,6E4,this);this.C=!1;g.H(this,this.delay)};
YFa=function(a){0<=a.u||(3===a.i.Da.getVisibilityState()?a.I=!0:(a.u=g.vS(a.i),a.delay.start()))};
ZFa=function(a){if(!(0>a.B)){var b=g.vS(a.i),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.KJ(a.playerState)&&!g.T(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
$Fa=function(a){switch(a.Y.playerCanaryState){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}};
aGa=function(a){return(!a.N("html5_health_to_gel")||a.Y.kb+36E5<(0,g.P)())&&(a.N("html5_health_to_gel_canary_killswitch")||a.Y.kb+36E5<(0,g.P)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===$Fa(a))?a.N("html5_health_to_qoe"):!0};
cGa=function(a,b){b?bGa.test(a):(a=g.gt(a),Object.keys(a).includes("cpn"))};
mW=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(kt(a)&&lt()){if(h){var n;2!==(null===(n=dGa.uaChPolyfill)||void 0===n?void 0:n.state.type)?h=null:(h=dGa.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}d&&(m["X-Goog-Visitor-Id"]=d);c&&(m["X-Goog-PageId"]=c);
e&&(m.Authorization="Bearer "+e);d||e||c?l.withCredentials=!0:b.N("html5_send_cpn_with_options")&&bGa.test(a)&&(l.withCredentials=!0)}0<Object.keys(m).length&&(l.headers=m);f&&(l.onFinish=f);return 1<Object.keys(l).length?l:null};
nW=function(a,b,c,d,e,f,h,l){lt()&&c.token&&(a=it(a,{ctt:c.token,cttype:c.LG,mdx_environment:c.mdxEnvironment}));f||l&&d.N("nwl_skip_retry")?(null==b?b={}:cGa(a,d.N("html5_assert_cpn_with_regex")),h?d.N("use_new_nwl")?rx().sendAndWrite(a,b):zx(a,b):d.N("use_new_nwl")?rx().sendThenWrite(a,b,l):yx(a,b,l)):b?(cGa(a,d.N("html5_assert_cpn_with_regex")),g.Yt(a,b)):g.wv(a,e)};
eGa=function(){var a=window.H5vccPlatformService,b="";if(a&&a.has("dev.cobalt.coat.clientloginfo")&&(a=a.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=a.send(new ArrayBuffer(0));
c&&(b=String.fromCharCode.apply(String,g.la(new Uint8Array(c))));a.close()}return b};
g.pW=function(a){g.E.call(this);var b=this;this.i=a;this.u={};this.sequenceNumber=1;this.Wa=NaN;this.Ad="N";this.X=this.rb=this.bb=this.Va=this.C=0;this.Ha=this.vb="";this.kb=this.oa=NaN;this.Za=0;this.wb=-1;this.jb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Sa=this.Aa=this.isOffline=this.va=!1;this.Eb=[];this.Z=null;this.I=this.La=this.K=!1;this.B=-1;this.Ka=!1;this.Db=new g.I(this.lS,750,this);this.D=this.adCpn="";this.adFormat=void 0;this.Gb=0;g.H(this,this.Db);(a="function"===typeof navigator.getBattery?
navigator.getBattery():null)&&a.then&&a.then(function(c){b.Z=c});
g.oW(this,0,"vps",["N"])};
g.oW=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
qW=function(a,b){var c=a.i.Da.getCurrentTime();g.oW(a,b,"cmt",[c.toFixed(3)]);c=a.i.Da.Dh();if(a.S&&1E3*c>a.S.ZL+100&&a.S){var d=a.S,e=d.isAd;b*=1E3;c=1E3*c-d.ZL;a.Ba=b-d.ZW-c-d.MW;if(!a.i.videoData.N("web_player_dai_csi_killswitch")){d=a.Ba;b-=c;c=a.i.videoData;var f=c.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};!c.N("web_player_csi_ctt_killswitch")&&c.X&&(h.cttAuthInfo={token:c.X,videoId:c.videoId});h.startTime=b-d;qA(f,h);tA({targetVideoId:c.videoId,targetCpn:c.clientPlaybackNonce},
f);sA("pbs",b,f)}}a.Ca("gllat",{l:a.Ba.toFixed(),prev_ad:+e});delete a.S}};
rW=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.vS(a.i);var c=a.i.Da.oz();if(!isNaN(a.oa)&&!isNaN(c.u)){var d=c.u-a.oa;0<d&&g.oW(a,b,"bwm",[d,(c.C-a.kb).toFixed(3)])}isNaN(a.oa)&&c.u&&a.isOffline&&fGa(a,!1);a.oa=c.u;a.kb=c.C;isNaN(c.bandwidthEstimate)||g.oW(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.i.videoData.oa&&0!==Object.keys(c.i).length&&a.Ca("bwinfo",c.i);if(a.i.videoData.oa||a.i.Y.N("html5_log_meminfo"))d=sEa(),Object.values(d).some(function(e){return void 0!==e})&&a.Ca("meminfo",d);
a.Z&&g.oW(a,b,"bat",[a.Z.level,a.Z.charging?"1":"0"]);d=a.i.Da.getVisibilityState();a.wb!==d&&(g.oW(a,b,"vis",[d]),a.wb=d);qW(a,b);(d=gGa(a.i))&&d!==a.Za&&(g.oW(a,b,"conn",[d]),a.Za=d);hGa(a,b,c)};
hGa=function(a,b,c){if(!isNaN(c.kp)){var d=c.kp;c.B<d&&(d=c.B);g.oW(a,b,"bh",[d.toFixed(3)])}};
sW=function(a){for(var b=0,c=g.r(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(Om(a.u[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.I(a.reportStats,0,a)).start()};
iGa=function(a){a.i.videoData.Hd&&tW(a,"prefetch");a.i.videoData.Db&&a.Ca("reload",{r:a.i.videoData.reloadReason,ct:a.i.videoData.Db});a.i.videoData.rb&&tW(a,"monitor");a.i.videoData.isLivePlayback&&tW(a,"live");a.i.videoData.Zf&&a.Ca("ctrl",a.i.videoData.Zf,!0);if(a.i.videoData.Ef){var b=a.i.videoData.Ef.replace(/,/g,"_");a.Ca("ytp",b,!0)}a.i.videoData.VI&&(b=a.i.videoData.VI.replace(/,/g,"."),a.Ca("ytrexp",b,!0));if(!a.i.Y.N("html5_disable_gpu_reporting")){var c=a.i.videoData;b=a.i.Y.N("enable_white_noise")||
a.i.Y.N("enable_webgl_noop")||a.i.Y.N("enable_gpu_logging");var d=g.rG(c)||g.pG(c)||g.qG(c)||g.sG(c),e=c.C&&SC(g.Kb(c.C.videoInfos))&&/^g/.test(c.clientPlaybackNonce);c=/^gp/.test(c.clientPlaybackNonce);(b||d||c||e)&&(b=(0,g.uW)())&&(a.u.gpu=[b])}BG(a.i.videoData)&&g.oW(a,g.vS(a.i),"dt",["1"]);a.I=!0;a.Wa=Rt(function(){a.reportStats()},1E4)};
jGa=function(a){0<=a.B||(a.i.Y.fc||3!==a.i.Da.getVisibilityState()?a.B=g.vS(a.i):a.Ka=!0)};
tW=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
fGa=function(a,b){a.isOffline=b;g.oW(a,g.vS(a.i),"is_offline",[a.isOffline?"1":"0"])};
kGa=function(a,b,c,d,e){var f=g.vS(a.i);1===b&&g.oW(a,f,"vps",[a.Ad]);var h=a.u.xvt||[];h.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.u.xvt=h};
lGa=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
mGa=function(a){this.i=a;this.S=!1;this.u=0;this.D=-1;this.lastUpdateTime=NaN;this.B=0;this.segments=[];this.K=this.I=0;this.Z=this.i.Eh().volume;this.X=this.i.Eh().muted;this.C=vW(this.i)};
wW=function(a){a.C.startTime=a.B;a.C.endTime=a.u;a.segments.length&&g.Kb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.C:a.segments.length&&a.C.isEmpty()||a.segments.push(a.C);a.I+=a.u-a.B;a.C=vW(a.i);a.B=a.u};
nGa=function(a){a.segments.length&&a.u===a.B||wW(a);var b=a.segments;a.segments=[];return b};
pGa=function(a){oGa(a);a.K=Rt(function(){a.update()},100);
a.lastUpdateTime=g.vS(a.i);a.C=vW(a.i)};
oGa=function(a){Tt(a.K);a.K=NaN};
qGa=function(a,b,c){c-=a.lastUpdateTime;return b===a.u&&.5<c};
xW=function(a,b,c,d){this.Y=b;this.segments=[];this.experimentIds=[];this.Ka=this.wb=this.isFinal=this.fd=this.jb=this.autoplay=this.autonav=!1;this.Gb="yt";this.I=this.K=null;this.sendVisitorIdHeader=this.La=!1;this.pageId="";this.D="watchtime"===c;this.C="playback"===c;this.vb="delayplay"===c;this.rb="atr"===c;this.wd="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.rb?"/api/stats/"+c:"//"+b.ej+"/api/stats/"+c;this.Oe=!b.N("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.C&&
b.pfpChazalUi&&a.D;d&&(this.wb=d.fs,d.rtn&&(this.I=d.rtn),this.D?(this.playerState=d.state,0<d.rti&&(this.K=d.rti)):(this.Ah=d.mos,this.xe=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Zb=d.inview),d.size&&(this.Nb=d.size));this.deviceParams=g.Je(b.deviceParams);this.bd=b.Fc;b.N("embeds_js_api_set_1p_cookie")&&b.embedsTokenValue&&(this.embedsTokenValue=b.embedsTokenValue);this.experimentIds=b.experiments.experimentIds;this.Ha=b.xe;this.Gb=b.va;this.region=
b.region;this.userAge=b.userAge;this.Za=b.ye;this.Yh=uv();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Z=b.N("vss_pings_using_networkless")||b.N("kevlar_woffle");this.Hd=b.N("vss_final_ping_send_and_write");this.oa=b.N("vss_use_send_and_write");this.pageId=b.pageId;this.Vd=b.N("vss_playback_use_send_and_write");this.va=b.N("use_new_nwl");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Fc=b.i&&b.N("embeds_append_synth_ch_headers");this.accessToken=a.mf();a.LI&&(this.B=
a.LI);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=yG(a);this.autonav=a.Mk||this.autonav;this.Zc=wG(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.jb=a.D;a.X&&(this.S=a.X,this.kb=a.Uh);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.i=a.zC;this.Ba=a.Zb;a.B&&(this.videoFormat=a.B.jc(),a.K&&a.K.jc()!==this.videoFormat&&(this.bb=a.K.jc()));a.i&&KA(a.i)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.Oe?"embedded_unbranded":vG(a);this.Ka=a.Af;this.ac=
a.Pj;if(b=kG(a))this.ue=b;this.dc=a.ul;this.eventId=a.eventId;this.playlistId=a.CK||a.playlistId;this.Zf=a.Zf;this.Ef=a.Ef;this.qc=a.EC;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.fc=a.iX;this.referrer=a.referrer;this.Sa=a.TI||a.pL;this.Va=a.GC;this.Wa=a.xX;this.userGenderAge=a.userGenderAge;this.Aa=a.cT};
yW=function(a,b){return mW(a.uri,a.Y,a.pageId,a.sendVisitorIdHeader?a.visitorData:void 0,a.accessToken,b,a.Fc)};
rGa=function(a,b){return function(){var c=a.uri,d=zW(a),e=yW(a),f=a.Z,h=a.oa,l=a.va;l=void 0===l?!1:l;d.cmt=d.len;d.lact="0";var m=b().toFixed(3);d.rt=Number(m).toString();c=g.Ei(c,d);f?(null==e&&(e={}),h?l?rx().sendAndWrite(c,e):zx(c,e):l?rx().sendThenWrite(c,e):yx(c,e)):e?g.Yt(c,e):g.wv(c)}};
zW=function(a){var b={ns:a.Gb,el:a.eventLabel,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,cmt:a.u(a.i),fmt:a.videoFormat,fs:a.wb?"1":"0",rt:a.u(a.ye),adformat:a.adFormat,content_v:a.Zc,etv:a.embedsTokenValue,euri:a.bd,lact:a.Yh,live:a.ue,cl:(409174836).toString(),mos:a.Ah,state:a.playerState,volume:a.xe};a.subscribed&&(b.subscribed="1");Object.assign(b,a.deviceParams);a.autoplay&&(b.autoplay="1");a.jb&&(b.dni="1");a.isFinal&&(b["final"]="1");a.Ka&&(b.splay="1");a.Ba&&(b.delay=a.Ba);a.Ha&&(b.hl=
a.Ha);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.Za&&(b.uga=a.Za+a.userAge);void 0!==a.Eb&&(b.len=a.u(a.Eb));!a.D&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.I&&(b.rtn=a.u(a.I));a.Sa&&(b.feature=a.Sa);a.playlistId&&(b.list=a.playlistId);a.Zf&&(b.ctrl=a.Zf);a.Ef&&(b.ytr=a.Ef);a.bb&&(b.afmt=a.bb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Db&&(b.lio=a.u(a.Db));a.D?(b.idpj=a.ac,b.ldpj=a.dc,null!=a.K&&(b.rti=
a.u(a.K)),a.Aa&&(b.ald=a.Aa)):void 0!==a.adType&&(b.at=a.adType);a.Nb&&(a.C||a.vb||a.D)&&(b.size=a.Nb);null!=a.Zb&&(a.C||a.vb||a.D)&&(b.inview=a.u(a.Zb));a.D&&(b.volume=AW(a,g.Mm(a.segments,function(d){return d.volume})),b.st=AW(a,g.Mm(a.segments,function(d){return d.startTime})),b.et=AW(a,g.Mm(a.segments,function(d){return d.endTime})),Jn(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=AW(a,g.Mm(a.segments,function(d){return d.playbackRate}))),Jn(a.segments,function(d){return"-"!==d.i})&&
(b.als=g.Mm(a.segments,function(d){return d.i}).join(",")));
b.muted=AW(a,g.Mm(a.segments,function(d){return d.muted?1:0}));
Jn(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=AW(a,g.Mm(a.segments,function(d){return d.visibilityState})));
Jn(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=AW(a,g.Mm(a.segments,function(d){return d.connectionType})));
Jn(a.segments,function(d){return 0!==d.u})&&(b.blo=AW(a,g.Mm(a.segments,function(d){return d.u})));
Jn(a.segments,function(d){return"-"!==d.C})&&(b.cc=g.Mm(a.segments,function(d){return d.C}).join(","));
Jn(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Mm(a.segments,function(d){return d.clipId}).join(","));
if(Jn(a.segments,function(d){return!!d.B})){var c="au";
a.C&&(c="au_d");b[c]=g.Mm(a.segments,function(d){return d.B}).join(",")}lt()&&a.S&&(b.ctt=a.S,b.cttype=a.kb,b.mdx_environment=a.mdxEnvironment);
a.wd&&(b.etype=void 0!==a.X?a.X:0);a.Va&&(b.uoo=a.Va);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=sGa[a.livingRoomAppMode]||a.livingRoomAppMode);a.B&&a.Y.N("html5_log_server_url_param")?tGa(a,b):(b.referrer=a.referrer,b.ei=a.eventId,b.of=a.fc,b.osid=a.osid,b.vm=a.videoMetadata,a.adQueryId&&(b.aqi=a.adQueryId),a.autonav&&(b.autonav="1"),a.qc&&(b.ssrt="1"),a.Wa&&(b.upt=a.Wa));return b};
tGa=function(a,b){if(b&&a.B){for(var c=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=g.r(Object.keys(a.B)),f=e.next();!f.done;f=e.next())f=f.value,d.has(f)||c.has(f)||(b[f]=a.B[f]||b[f]);c=g.r(Object.keys(new Set(["docid","list","uga"])));for(f=c.next();!f.done;f=c.next())d=f.value,a.C&&b[d]&&a.B&&!a.B[d]&&g.ky(new g.iw("b161906944_pending_missing",d,b[d]))}};
AW=function(a,b){return g.Mm(b,a.u).join(",")};
BW=function(a){g.E.call(this);this.i=a;this.currentPlayerState="paused";this.B=NaN;this.I=[10,10,10,40];this.S=this.K=0;this.va=this.oa=this.Ba=this.Aa=this.Z=this.X=this.C=!1;this.D=NaN;this.u=new mGa(a)};
vGa=function(a){if(!a.C){a.i.Y.N("disable_embedpage_playback_logging")||16623!==a.i.videoData.ax||g.ky(Error("Playback for EmbedPage"));var b=CW(a,"playback");a:{var c;if(a.i.Y.N("web_player_use_server_vss_schedule")){var d=null===(c=a.i.videoData.getPlayerResponse())||void 0===c?void 0:c.playbackTracking,e=null===d||void 0===d?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=null===d||void 0===d?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&0<e.length&&d){c=[];var f=a.i.videoData.Pj,h=a.i.videoData.ul,
l=-f;e=g.r(e);for(var m=e.next();!m.done;m=e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.I=c;break a}}a.I=[10+a.i.videoData.Pj,10,10,40+a.i.videoData.ul-a.i.videoData.Pj,40]}pGa(a.u);b.I=DW(a,!0);0<a.D&&(b.i-=a.D);b.send();a.i.videoData.Oq&&(b=a.i.Y,d=a.i.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Oq,oid:d.rI,ptchn:d.pI,pltype:d.sI,content_v:wG(d)},d.Zp&&Object.assign(c,{m:d.Zp}),b=g.Ei(b.Ba+"ptracking",c),EW(a,b));a.i.videoData.Zb||uGa(a);
a.C=!0;a=a.u;a.u=a.i.Da.getCurrentTime();a.i.Y.N("html5_vss_media_time_killswitch")||(a.u=a.i.Da.Dh());a.lastUpdateTime=g.vS(a.i);!(0===a.B&&5>a.u)&&2<a.u-a.B&&(a.B=a.u);a.S=!0}};
DW=function(a,b,c){c=void 0===c?NaN:c;var d=g.vS(a.i);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.I[a.K];a.K+1<a.I.length&&a.K++;var f=c+e;a.B=g.Qt(function(){if(!a.isDisposed()){a.B=NaN;a.u.update();var h=nGa(a.u),l=wGa(a,h);b&&(l.K=f);var m=1E3<a.S;!(1<h.length)&&h[0].isEmpty()||m||(l.I=DW(a,!0,f));l.send();a.S++}},1E3*(f-d));
return f};
CW=function(a,b){var c=a.i;c=Object.assign(c.Eh(),c.videoData.Eh());Object.assign(c,{state:a.currentPlayerState});b=new xW(a.i.videoData,a.i.Y,b,c);b.i=a.i.Da.getCurrentTime();a.i.Y.N("html5_vss_media_time_killswitch")||(b.i=a.i.Da.Dh());a.i.videoData.isLivePlayback||(b.Eb=a.i.Da.getDuration());a.i.videoData.i&&(c=a.i.videoData.i.getIngestionTime(b.i))&&(b.Db=c-b.i);b.ye=g.vS(a.i);b.segments=[vW(a.i)];return b};
wGa=function(a,b){var c=CW(a,"watchtime");if(0<a.D){for(var d=g.r(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.D,e.endTime-=a.D;c.i-=a.D}else c.i=a.u.u;c.segments=b;return c};
FW=function(a){a.u.update();return wGa(a,nGa(a.u))};
uGa=function(a){a.i.videoData.remarketingUrl&&!a.Aa&&(EW(a,a.i.videoData.remarketingUrl),a.Aa=!0);a.i.videoData.youtubeRemarketingUrl&&!a.Ba&&(EW(a,a.i.videoData.youtubeRemarketingUrl),a.Ba=!0);a.i.videoData.googleRemarketingUrl&&!a.oa&&(EW(a,a.i.videoData.googleRemarketingUrl),a.oa=!0);a.i.videoData.ppvRemarketingUrl&&!a.va&&(EW(a,a.i.videoData.ppvRemarketingUrl),a.va=!0);a.Qt()};
GW=function(a){if(!a.isDisposed()&&a.C){a.currentPlayerState="paused";var b=FW(a);b.isFinal=!0;b.send();a.dispose()}};
xGa=function(a,b,c){if(!a.X){c||(c=CW(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.X=!0}};
EW=function(a,b){var c=a.i.videoData.mf(),d=a.i.Y,e=a.i.N("web_player_vss_pageid_header")?a.i.Y.pageId:void 0,f=a.i.Y.sendVisitorIdHeader?a.i.videoData.visitorData:void 0,h=a.i.Y.N("vss_pings_using_networkless")||a.i.Y.N("kevlar_woffle"),l=a.i.Y.N("allow_skip_networkless");c=mW(b,d,e,f,c,void 0);nW(b,c,{token:a.i.videoData.X,LG:a.i.videoData.Uh,mdxEnvironment:a.i.videoData.mdxEnvironment},d,void 0,h&&!l,!1,!0)};
yGa=function(){this.endTime=this.startTime=-1;this.C="-";this.playbackRate=1;this.visibilityState=0;this.B="";this.volume=this.connectionType=this.u=0;this.muted=!1;this.i=this.clipId="-"};
HW=function(a,b,c,d){this.videoData=a;this.Y=b;this.Da=c;this.Eh=d;this.i=void 0};
g.vS=function(a){return zGa(a)()};
zGa=function(a){if(!a.i){var b=g.Ra(function(d){var e=(0,g.P)();d&&631152E6>=e&&(g.jy(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.Y.N("html5_validate_yt_now")),c=b();
a.i=function(){return Math.round(b()-c)/1E3};
a.Da.CF()}return a.i};
gGa=function(a){if(navigator.connection&&navigator.connection.type)return AGa[navigator.connection.type]||AGa.other;if(g.ME(a.Y)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
vW=function(a){var b=new yGa;b.C=a.Eh().cc||"-";b.playbackRate=a.Da.getPlaybackRate();var c=a.Da.getVisibilityState();0!==c&&(b.visibilityState=c);a.Y.Eb&&(b.u=1);c=a.Da.getAudioTrack();c.zc&&c.zc.id&&"und"!==c.zc.id&&(b.B=c.zc.id);b.connectionType=gGa(a);b.volume=a.Eh().volume;b.muted=a.Eh().muted;b.clipId=a.Eh().clipid||"-";b.i=a.videoData.HI||"-";return b};
g.IW=function(a){g.E.call(this);var b=this;this.u=a;this.B=this.qoe=this.i=null;this.Rf=void 0;this.C=new Map;this.u.videoData.isValid()&&!this.u.videoData.Li&&(this.i=new BW(this.u),g.H(this,this.i),this.qoe=new g.pW(this.u),g.H(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.Rf=this.u.videoData.clientPlaybackNonce)&&this.C.set(this.Rf,this.i));aGa(this.u)&&(this.B=new lW(this.u,function(c){b.Ca("h5h",c)}),g.H(this,this.B))};
BGa=function(a){a.B&&YFa(a.B);a.qoe&&jGa(a.qoe)};
CGa=function(a){var b;a.u.videoData.enableServerStitchedDai&&a.Rf?null===(b=a.C.get(a.Rf))||void 0===b?void 0:wW(b.u):a.i&&wW(a.i.u)};
DGa=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.I){"PL"===b.Ad&&(b.Ad="N");var c=g.vS(b.i);g.oW(b,c,"vps",[b.Ad]);b.K||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.K=!0);b.Aa=!0;b.reportStats(c)}}if(a.u.videoData.enableServerStitchedDai)for(b=g.r(a.C.values()),c=b.next();!c.done;c=b.next())GW(c.value);else a.i&&GW(a.i);a.dispose()};
EGa=function(a,b){a.i&&xGa(a.i,b)};
FGa=function(a){if(!a.i)return null;var b=CW(a.i,"atr");return function(c){a.i&&xGa(a.i,c,b)}};
GGa=function(a,b,c,d){c.adFormat=c.Nb;var e=b.Da;b=new BW(new HW(c,b.Y,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Dh:function(){return e.Dh()},
oz:function(){return e.oz()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
Mv:function(){return e.Mv()},
getVisibilityState:function(){return e.getVisibilityState()},
CF:function(){e.CF()},
Aw:function(){e.Aw()}},b.Eh));
b.D=d;g.H(a,b);return b};
HGa=function(){this.kp=0;this.D=this.C=this.u=this.B=NaN;this.i={};this.bandwidthEstimate=NaN};
IGa=function(){this.u=g.bz;this.i=[]};
KGa=function(a,b,c){var d=[];for(b=JGa(a,b);b<a.i.length;++b){var e=a.i[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
LGa=function(a,b){var c=[];a=g.r(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};
MGa=function(a){return a.i.slice(JGa(a,0x7ffffffffffff),a.i.length)};
JGa=function(a,b){a=fc(a.i,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
NGa=function(a,b){var c=NaN;a=g.r(a.i);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.end<c)&&(c=d.end),d.start>b&&(isNaN(c)||d.start<c)){c=d.start;break}return c};
OGa=function(a,b){a.i=a.i.filter(function(c){return!b.has(c)})};
JW=function(a,b,c,d){g.E.call(this);this.S=a;this.oa=b;this.D=c;this.X=d;this.u=NaN;this.I=this.K=this.started=!1;this.B=[];this.Z=new g.I(this.jl,250,this);g.H(this,this.Z);this.C=new g.I(this.jl,0,this);g.H(this,this.C);this.i=new IGa};
PGa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.X(g.cz(d.namespace),d):a.X(g.dz(d.namespace),d)}};
QGa=function(a){this.u=this.mediaTime=NaN;this.B=this.i=!1;this.C=.001;g.ME(a)&&g.S(a.experiments,"tvhtml5_min_has_advanced_secs_float")&&(this.C=g.S(a.experiments,"tvhtml5_min_has_advanced_secs_float"))};
KW=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
LW=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.i)b!==a.mediaTime&&(a.i=!1);else if(0<b&&a.mediaTime===b)return c-a.u>(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1};
RGa=function(a,b){this.videoData=a;this.i=b};
SGa=function(a,b,c){return Hqa(b,c).then(function(){return fu(new RGa(b,b.C))},function(d){d instanceof Error&&at(d);
d=b.isLivePlayback&&!g.YD(a.B,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.jb,drm:""+ +aG(b),f18:""+ +(0<=b.Ni.indexOf("itag=18")),c18:""+ +YC('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.i&&(aG(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=""+ +ZC('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +ZC('audio/mp4; codecs="mp4a.40.2"'),
e.cVP9=""+ +ZC('video/webm; codecs="vp9"'));if(b.I){e.drmsys=b.I.keySystem;var f=0;b.I.i&&(f=Object.keys(b.I.i).length);e.drmst=""+f}return new g.lD(d,!0,e)})};
TGa=function(a){this.D=a;this.B=this.u=0;this.C=new dT(50)};
NW=function(a,b,c){g.Q.call(this);this.videoData=a;this.experiments=b;this.S=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.I=0;c=new UGa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.rb?c.u=3:g.nG(a)&&(c.u=2);b.ob("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.S=!0);var d=zqa(a);c.D=2===d||-1===d;c.D&&(c.oa++,21530001===gG(a)&&(c.I=g.S(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(ou("trident/")||ou("edge/"))d=g.S(b,"html5_platform_minimum_readahead_seconds")||3,c.B=Math.max(c.B,
d);g.S(b,"html5_minimum_readahead_seconds")&&(c.B=g.S(b,"html5_minimum_readahead_seconds"));g.S(b,"html5_maximum_readahead_seconds")&&(c.X=g.S(b,"html5_maximum_readahead_seconds"));b.ob("html5_force_adaptive_readahead")&&(c.C=!0);g.S(b,"html5_allowable_liveness_drift_chunks")&&(c.i=g.S(b,"html5_allowable_liveness_drift_chunks"));g.S(b,"html5_readahead_ratelimit")&&(c.Z=g.S(b,"html5_readahead_ratelimit"));switch(gG(a)){case 21530001:c.i=(c.i+1)/5,"LOW"===a.latencyClass&&(c.i*=2),c.K=b.ob("html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.K=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.rb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(gG(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.i=MW(this,b);this.ma()};
VGa=function(a,b){var c=a.i;(void 0===b?0:b)&&a.policy.K&&3===zqa(a.videoData)&&--c;return OW(a)*c};
PW=function(a,b){var c=a.mj(),d=a.policy.i;a.D||(d=Math.max(d-1,0));a=d*OW(a);return b>=c-a};
WGa=function(a,b,c){b=PW(a,b);c||b?b&&(a.B=!0):a.B=!1;a.K=2===a.policy.u||3===a.policy.u&&a.B};
XGa=function(a,b){b=PW(a,b);a.D!==b&&a.ea("livestatusshift",b);a.D=b};
OW=function(a){return a.videoData.i?ED(a.videoData.i)||5:5};
MW=function(a,b){b=Math.max(Math.max(a.policy.oa,Math.ceil(a.policy.B/OW(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.X/OW(a))),b)};
UGa=function(){this.oa=1;this.B=0;this.X=Infinity;this.Z=0;this.C=!0;this.i=2;this.u=1;this.D=!1;this.I=NaN;this.K=this.S=!1};
SW=function(a){g.E.call(this);this.Da=a;this.Y=this.Da.V();this.C=this.i=0;this.B=new g.I(this.D,1E3,this);this.Ba=new QW({delayMs:g.S(this.Y.experiments,"html5_seek_timeout_delay_ms")});this.X=new QW({delayMs:g.S(this.Y.experiments,"html5_long_rebuffer_threshold_ms")});this.Ha=RW(this,"html5_seek_set_cmt");this.oa=RW(this,"html5_seek_jiggle_cmt");this.va=RW(this,"html5_seek_new_elem");this.Va=RW(this,"html5_unreported_seek_reseek");this.K=RW(this,"html5_long_rebuffer_jiggle_cmt");this.S=new QW({delayMs:2E4});
this.I=RW(this,"html5_ads_preroll_lock_timeout");this.Ka=new QW({delayMs:g.S(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Vr:!this.Y.N("html5_report_slow_ads_as_error")});this.La=new QW({delayMs:g.S(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Vr:!this.Y.N("html5_skip_slow_buffering_ad")});this.Aa=RW(this,"html5_seek_over_discontinuities");this.Sa=new QW({delayMs:g.S(this.Y.experiments,"html5_slow_start_timeout_delay_ms")});this.Z=RW(this,"html5_slow_start_no_media_source");this.u=
{};g.H(this,this.B)};
RW=function(a,b){var c=g.S(a.Y.experiments,b+"_delay_ms");a=a.Y.N(b+"_cfl");return new QW({delayMs:c,Vr:a})};
YGa=function(a,b,c,d,e,f,h){var l=eD(c,Math.max(d-3.5,0)),m=0<=l&&d>c.end(l)-1.1&&l+1<c.length&&11>c.start(l+1)-c.end(l);m=f&&h&&m;var n=l+1<c.length?c.start(l+1):d;TW(a,a.Aa,m&&!e,f&&!h,"qoe.longrebuffer",function(){b.seekTo(n+.2)},"seekover")};
TW=function(a,b,c,d,e,f,h){ZGa(b,c)?(a.ld(e,b,h),b.Vr||f()):(b.SA&&b.triggerTimestamp&&!b.B?(c=(0,g.P)(),d?b.i||(b.i=c):b.i=0,f=!d&&c-b.triggerTimestamp>b.SA,c=b.i&&c-b.i>b.YF||f?b.B=!0:!1):c=!1,c&&(c=a.Kb(b),c.wn=h,c.we=e,c.wsuc=""+ +d,h=g.kD(c),a.Da.Ca("workaroundReport",h),d&&(b.reset(),a.u[e]=!1)))};
QW=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.YF?1E3:b.YF,d=void 0===b.SA?3E4:b.SA;b=void 0===b.Vr?!1:b.Vr;this.i=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.YF=c;this.SA=d;this.Vr=b};
ZGa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.P)();if(!a.startTimestamp)a.startTimestamp=b,a.u=0;else if(a.u>=a.C)return a.triggerTimestamp=b,!0;a.u+=1;return!1};
VW=function(a){g.E.call(this);var b=this;this.Da=a;this.Y=this.Da.V();this.videoData=this.Da.getVideoData();this.policy=new $Ga(this.Y);this.Z=new SW(this.Da);this.playbackData=null;this.Ka=new g.WC;this.I=this.u=this.Ya=this.ra=null;this.i=NaN;this.B=0;this.C=null;this.Aa=NaN;this.D=this.K=null;this.X=this.S=!1;this.va=new g.I(function(){aHa(b,!1)},2E3);
this.Wa=new g.I(function(){UW(b)});
this.Ha=new g.I(function(){b.ma();b.S=!0;bHa(b)});
this.Sa=this.timestampOffset=0;this.La=!0;this.Ba=0;this.Va=NaN;this.oa=new g.I(function(){var c=b.Y.dc;c.i+=1E4/36E5;c.i-c.B>1/6&&(zoa(c),c.B=c.i);b.oa.start()},1E4);
g.H(this,this.Z);g.H(this,this.Ka);g.H(this,this.va);g.H(this,this.Ha);g.H(this,this.Wa);g.H(this,this.oa)};
cHa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.I=new TGa(function(){a:{if(a.playbackData&&a.playbackData.i.i){if(YF(a.videoData)&&a.Ya){var c=a.Ya.Ha.jg()||0;break a}if(a.videoData.i){c=a.videoData.i.va;break a}}c=0}return c}),a.u=new NW(a.videoData,a.Y.experiments,function(){return a.jd(!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.B=a.B||a.videoData.startSeconds||0)};
YW=function(a,b){(a.Ya=b)?WW(a,!0):XW(a)};
dHa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.I&&d){var e=a.I;if(e.i&&!(c>=e.u&&c<e.B)){var f=e.i.getSegmentNumberForTime(c);-1!==f&&(e.u=e.i.getStartTime(f),e.B=e.u+e.i.getDuration(f),f=Date.now()/1E3-e.i.getIngestionTime(f),f-=e.D(),e.C.add(f))}}a.u&&(d&&(d=a.u,e=a.ra?AJ(a.ra):0,d.C++,3>d.C||g.Sa()-d.I<d.policy.Z||(d.I=g.Sa(),d.u.push(e),50<d.u.length&&d.u.shift(),d.ma())),d=a.u,WGa(d,c,void 0===b?!0:b),XGa(d,c),b&&aHa(a,!0))};
aHa=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!PW(c,d)&&c.dm()?(c.ma(),c.policy.S&&(c.policy.i=Math.max(c.policy.i+1,10)),c=Infinity):d<c.videoData.getMinSeekableTime()?(c.ma(),c=Math.min(c.videoData.getMinSeekableTime()+10,c.mj())):c=NaN;if(!isNaN(c)){if(a.Ya&&b&&(b=a.va.isActive(),d=a.u.mj(),(d=MEa(a.Ya,d-a.Uc()))&&!b)){a.va.start();a.Da.Ca("inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(d+a.Uc()));a.seekTo(d+a.Uc(),{Td:"playbacktimeline_inBufferSeek"});return}a.N("html5_peg_to_live_logging")&&
a.Da.Ca("ptl","cmt."+a.getCurrentTime()+";seekTo"+(c+a.Uc()));a.seekTo(c,{Td:"playbacktimeline_pegToLive"})}}};
WW=function(a,b){if(a.u&&a.Ya){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.u,b.u.length){c=b.i;b:{if(b.u.length){if(1<Math.min.apply(null,b.u)){b.ma();var d=MW(b,b.i-1);break b}if(b.policy.C){b.ma();d=MW(b,b.i+1);break b}}d=b.i}b.i=d;if(c=c!==b.i)b.ma(),b.u=[],b.C=0}else c=!1;c&&(c=a.Da.Rb,b=VGa(a.u),c.qoe&&(c=c.qoe,g.oW(c,g.vS(c.i),"lra",[b]),c.Ca("live-readahead-seconds",{v:b})));b=a.Ya;c=a.u.i;d=a.u;
d=(d.i-1+d.policy.i)*OW(d);a=a.u.policy.I;b.Qe=Math.max(c-1,0);b.D&&(b.D.oa=d);b.kb=a}};
eHa=function(a,b){a.B=b};
ZW=function(a){return a.videoData.isLivePlayback&&!!a.videoData.C&&!a.videoData.C.i};
bHa=function(a){fHa(a).then(void 0,function(){XW(a)});
$W(a).then(function(c){gHa(a,c)},function(){XW(a)});
JS(a.Da);if(g.cG(a.videoData)){var b=a.Kb();b["native"]=""+ +a.X;b.tgt=""+a.i;a.Da.Ca("startSeek",g.kD(b))}};
fHa=function(a){if(!a.K)if(a.Ya)if(isFinite(a.i))a.ma(),a.K=a.Ya.seek(a.i-a.timestampOffset);else{a.ma();var b=a.Ya;yV(b);b.C.i&&b.ma();b.D&&oEa(b.D,b.videoTrack.i);g.br(b.X);b=b.C;var c=Math.max(b.videoTrack.C.B||0,b.audioTrack.C.B||0);NDa(b.videoTrack);NDa(b.audioTrack);var d=b.u,e;for(e in d.i)Vla(d.i[e].index,Infinity);b.u.isManifestless&&(b.C=!0);b.Ya.currentTime=c;b.i=!0;b.D=new nS;a.K=b.D;a.i=a.Ya.getCurrentTime()+a.timestampOffset}else a.K=rh(a.i-a.timestampOffset);return a.K};
$W=function(a){var b=a.C;b||(a.C=new nS,b=a.C,UW(a));return b};
hHa=function(a,b,c){return isNaN(b)?NaN:g.dg(b,a.getMinSeekableTime(),a.jd(c))};
UW=function(a){if(a.C)if(!a.N("html5_nondash_live_seek_killswitch")&&ZW(a)&&a.ra&&0<a.ra.wh()&&0<zJ(a.ra)&&(a.i=hHa(a,a.i,!1)),!a.ra||!iHa(a))a.Wa.start(750);else if(!isNaN(a.i)&&isFinite(a.i)&&a.Aa!==a.i-a.timestampOffset){var b=a.ra.getCurrentTime()-a.i;if(Math.abs(b)<=a.Ba)jHa(a);else if(!a.videoData.isLivePlayback&&a.i>=a.jd()-.1)a.i=a.jd(),a.C.resolve(a.jd()),wS(a.Da);else try{var c=a.i-a.timestampOffset;a.ma();a.ra.seekTo(c);a.Z.i=c;a.Aa=c;a.B=a.i}catch(d){a.ma()}}};
iHa=function(a){if(!a.ra||0===a.ra.wh()||0<a.ra.hj())return!1;var b=0<a.ra.getCurrentTime();if(!(a.N("html5_nondash_mediaelementready_killswitch")||a.videoData.C&&a.videoData.C.i||a.videoData.isLivePlayback)&&aG(a.videoData))return b;if(0<=a.i){var c=a.ra.Kv();if(c.length||!b)return fD(c,a.i-a.timestampOffset)}return b};
jHa=function(a){a.C?a.C.resolve(a.ra.getCurrentTime()):a.ma()};
gHa=function(a,b){a.ma();a.D&&(a.D.resolve(b),a.Da.ea("SEEK_COMPLETE"),g.cG(a.videoData)&&(b=a.Kb(),b["native"]=""+ +a.X,a.Da.Ca("seekEnd",g.kD(b))));kHa(a)};
kHa=function(a){a.i=NaN;a.Aa=NaN;a.C=null;a.K=null;a.D=null;a.S=!1;a.X=!1;a.Ba=0;a.va.stop();a.Ha.stop()};
XW=function(a){a.D&&a.ma();kHa(a)};
lHa=function(a){if(a.ra){for(var b=g.r(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Ka.T(a.ra,c.value,function(d){var e=a.ra;d=d.type;a.ma();switch(d){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.C||a.X&&d!==a.i)a.C=new nS,a.Aa=d,e=e.getCurrentTime(),a.Z.i=e,a.seekTo(d,{Td:"playbacktimeline_mediaElementEvent"}),a.X=!0;break;case "seeked":jHa(a);break;case "loadedmetadata":a.La?(e="ss.",d=0,(oG(a.videoData)||a.videoData.liveUtcStartSeconds)&&(a.videoData.liveUtcStartSeconds||
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds)&&a.videoData.i?(d=a.videoData.liveUtcStartSeconds||a.videoData.qc,e="utc.",d=a.jd()-a.getIngestionTime(a.jd())+d):a.videoData.i&&a.videoData.i.isManifestless&&a.videoData.qc?(e="mss.",d=a.videoData.qc+a.Uc()):a.N("html5_unrewrite_timestamps")&&a.videoData.gr&&(e="stss.",d=a.videoData.gr),d?(a.seekTo(d,{Td:"playbacktimeline_startSeconds"}),a.Da.Ca("startSeconds",e+String(d)),a.La=!1):a.videoData.qc&&a.Da.Ca("startSeconds",
""+e+(a.videoData.qc+a.Uc())),e=!!d):e=!1;a.N("html5_nondash_live_seek_killswitch")&&!e&&ZW(a)&&(a.i=isFinite(a.i)?g.dg(a.i,a.getMinSeekableTime(),a.jd()):a.jd());UW(a);break;case "progress":UW(a)}});
a.D||a.B||a.policy.u||!a.ra.bG()||a.seekTo(.01,{Td:"playbacktimeline_setupMediaElement"})}};
mHa=function(a,b){a.i=b;a.B=b;$W(a).then(function(c){gHa(a,c)},function(){XW(a)})};
$Ga=function(a){this.i=a.N("html5_live_smoothly_extend_max_seekable_time");this.B=a.N("html5_seek_over_discontinuities");this.u=a.N("html5_requires_seek_for_playback_at_zero_killswitch")};
aX=function(){this.i=this.started=!1};
bX=function(){TQ.apply(this,arguments)};
cX=function(){UQ.apply(this,arguments)};
dX=function(a){this.i=a;this.iv=DQ(Wx(16))};
nHa=function(a,b,c){var d;return g.A(function(e){d=new bX(a.i.i);return e.return(d.decrypt(b,c))})};
eX=function(a){g.E.call(this);this.i=a;this.Ne=new Map};
jU=function(a,b){return a.Ne.has(b)};
IDa=function(a,b,c){a.Ne.get(b).rd=c};
oHa=function(a,b){jU(a,b)&&(a.Ne.get(b).Zd=new xC,fX(a,b))};
pHa=function(a){for(var b=g.r(a.Ne),c=b.next();!c.done;c=b.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;d.rd||oHa(a,c)}};
uEa=function(a,b){var c;return(null===(c=a.Ne.get(b))||void 0===c?void 0:c.Bk)||0};
HDa=function(a,b){a=a.Ne.get(b);return a.bytesReceived===a.Bk&&a.cD+a.Zd.totalLength===a.bytesReceived};
fX=function(a,b){a.ma();if((b=a.Ne.get(b))&&!b.rf){b.rf=!0;b.rd&&b.rd();a:{b=g.r(a.Ne.values());for(var c=b.next();!c.done;c=b.next())if(!c.value.rf){b=!1;break a}b=!0}if(b){a=a.i;var d;a.playerResponse&&(null===(d=a.xhr)||void 0===d?void 0:d.abort())}}};
qHa=function(a){this.iv=yQ(new tQ(a),5)};
rHa=function(a){a=yQ(new tQ(a),4);this.i=new qHa(new xC([a]))};
sHa=function(a){this.i=[];for(a=new tQ(a);;){var b=wQ(a,2);if(!b)break;this.i.push(b)}};
uHa=function(a){a=new tQ(a);this.B=wQ(a,1);this.itag=wQ(a,3);this.lastModifiedTime=wQ(a,4);this.xtags=xQ(a,5);wQ(a,6);vQ(a,8)&&uQ(a);wQ(a,9,-1);wQ(a,10);this.i=wQ(a,14);this.u=this.itag+";"+this.lastModifiedTime+";"+this.xtags;this.Lk="audio"===tHa[OC[""+this.itag]]};
vHa=function(a){a=new tQ(a);a=yQ(a,23);a=new tQ(new xC([a]));this.videoId=xQ(a,2)};
wHa=function(a){this.body=null;a=new tQ(a);this.onesieProxyStatus=wQ(a,1,-1);this.httpStatus=wQ(a,2,-1);this.body=yQ(a,4)};
xHa=function(a){a=new tQ(a);this.startTimeMs=wQ(a,1);this.endTimeMs=wQ(a,2)};
yHa=function(a){var b=new tQ(a);a=xQ(b,3);var c=wQ(b,5);this.u=wQ(b,7);var d=yQ(b,14);new xHa(new xC([d]));b=xQ(b,15);this.i=a+";"+c+";"+b};
zHa=function(a){this.Vn=a;this.u=!1;this.i=[]};
gX=function(a){for(;a.i.length&&!a.i[0].isEncrypted;){var b=a.i.shift(),c=b.CG;if(b=b.buffer)AHa(a.Vn.ud,c,b);else{var d=a.Vn;d.i[c].PK=!0;var e=b=void 0;d=d.ud;if(null===(e=d.De)||void 0===e?0:jU(e,c))null===(b=d.De)||void 0===b?void 0:fX(b,c)}}};
BHa=function(a,b){a.i.push({CG:b,isEncrypted:!1});a.u||gX(a)};
CHa=function(a){this.ud=a;this.B={};this.i={};this.u=this.iv=null;this.queue=new zHa(this)};
DHa=function(a){var b=a.queue;b.i.length&&b.i[0].isEncrypted&&!b.u&&(b.i.length=0);b=g.r(Object.keys(a.i));for(var c=b.next();!c.done;c=b.next())c=c.value,a.i[c].PK||BHa(a.queue,c)};
EHa=function(a,b){var c=b.totalLength;a.ma();var d=!1;switch(a.u){case 0:a.rF(b).then(function(e){var f=a.ud;f.re("oprr");f.playerResponse=e;f.XE||(f.Xw=!1);hX(f)},function(e){a.ud.Ch(e)});
break;case 2:a.re("ormk");b=BC(b);a.queue.decrypt(b);a.ma();break;default:d=!0,a.ma()}a.ud.rj&&a.ud.Ca("ombup","id.11;pt."+a.u+";len."+c+(d?";ignored.1":""));a.u=null};
FHa=function(a,b,c){var d=CC(b,0);a.ud.rj&&a.ud.Ca("ombup","id."+(c?12:21)+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=BC(b,1),d=a.B[d]||null,a.ma(),d&&(a=a.queue,a.i.push({CG:d,buffer:b,isEncrypted:c}),a.u||gX(a)))};
iX=function(){};
jX=function(a){var b=new Jya;a.u(b);return new Uint8Array(b.u.buffer,0,b.i)};
kX=function(a){var b=a.value;this.name=a.name;this.value=b};
lX=function(a){var b=a.httpHeaders,c=a.postBody;this.url=a.url;this.httpHeaders=b;this.postBody=c};
mX=function(a){this.i=a};
nX=function(a){this.i=a};
oX=function(a,b,c,d){this.i=a;this.encryptedClientKey=b;this.iv=c;this.hmac=d;this.serializeResponseAsJson=!0};
pX=function(a,b,c,d){this.C=a;this.B=b;this.onesieUstreamerConfig=c;this.i=d};
GHa=function(a,b){if(b+1<=a.totalLength){var c=CC(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=CC(a,b++);else if(2===c)c=CC(a,b++),a=CC(a,b++),a=(c&63)+64*a;else if(3===c){c=CC(a,b++);var d=CC(a,b++);a=CC(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=CC(a,b++);d=CC(a,b++);var e=CC(a,b++);a=CC(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),AC(a,c,4)?a=Sma(a).getUint32(c-a.B,!0):(d=CC(a,c+2)+256*CC(a,c+3),a=CC(a,c)+256*(CC(a,c+1)+
256*d)),b+=5;return[a,b]};
qX=function(a){this.u=a;this.i=new xC};
HHa=function(a){var b=g.r(GHa(a.i,0));var c=b.next().value;var d=b.next().value;d=g.r(GHa(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).Jq.split(b),b=d.wz,d=d.Jq,a.u.Vn.feed(c,b),a.i=d,HHa(a))};
LHa=function(a){var b=bG(a);a=IHa(b,a.V());var c=a.video.map(JHa).flat();0<b.B&&!b.Z&&(c=c.filter(function(d){return"1"!==OC[d]||KHa[d]<b.B}));
return{video:c,audio:a.audio.map(JHa).flat()}};
JHa=function(a){var b=MHa[a]||[];"9"===OC[a]&&(b=[].concat(g.la(b),["278"]));return[a].concat(g.la(b))};
IHa=function(a,b){function c(l){return l.id}
function d(l){return(l=f[l])?(RA(l,[]),[l[0]]):[]}
var e=Ana(NHa,null,0,!1,!1,void 0),f=MA(a,b.B,e,function(){return!0},!1);
b=Jla(a).map(d).flat();e=Lla(a);var h=["1","1h"];0<a.B&&!a.Z&&(e=h.concat(e));return{video:e.map(d).flat().map(c),audio:b.map(c)}};
QHa=function(a){var b,c,d,e;return g.A(function(f){return 1==f.i?(b=a.V().Zc,null!==b&&void 0!==b&&b.baseUrl?g.x(f,OHa(),3):f.fb(2)):2!=f.i&&(c=f.u)?(d=""+c+b.baseUrl,e=new g.UA(d),f.return(PHa(e,a))):f.return(null)})};
PHa=function(a,b){var c,d=null===(c=b.Lq)||void 0===c?void 0:c.urlQueryOverride;if(d){d=$A(d);d=g.r(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;a.set(e,f)}}if(!a.get("id")){d=bE(b.videoId);b=[];if(d)for(d=g.r(d),e=d.next();!e.done;e=d.next())b.push(e.value.toString(16).padStart(2,"0"));b=b.join("");if(!b)return null;a.set("id",b)}return a};
OHa=function(){var a,b,c,d,e;return g.A(function(f){if(1==f.i)return a={format:"RAW",method:"GET",timeout:5E3},g.x(f,bu("https://redirector.googlevideo.com/initplayback?alr=yes&id=%s",a),2);b=f.u;if(200!==b.xhr.status||!b.xhr.responseText)return f.return(null);c=b.xhr.responseText;d=/https:\/\/(.*)\.googlevideo.com/g;e=c.match(d);return f.return(e?e[0]:null)})};
rX=function(a,b){g.E.call(this);this.Da=a;this.playerRequest=b;this.Y=this.Da.V();this.videoData=this.Da.getVideoData();this.rj=g.cG(this.videoData);this.PJ=this.Y.Zc;this.HF=new dX(this.PJ.i);this.xhr=null;this.Yk=new nS;this.OK=!1;this.playerResponse="";this.uO=new qX(this);this.Vn=new CHa(this);this.sA=new g.I(this.LK,1E4,this);this.XM=g.S(this.Y.experiments,"html5_onesie_progress_timeout_ms");this.rA=new g.I(this.LK,this.XM,this);this.gL=!1;this.zz=this.Y.Lh;this.gt="";this.Xw=this.N("html5_onesie_wait_for_media_availability");
this.XE=this.lL=!1;g.H(this.videoData,this);g.H(this,this.sA);g.H(this,this.rA);this.N("html5_onesie_media_bytes")&&yA()&&(this.De=new eX(this),g.H(this,this.De))};
AHa=function(a,b,c){var d;null===(d=a.De)||void 0===d?void 0:(d.ma(),(a=d.Ne.get(b))&&!a.rf&&(a.Zd.append(c),a.bytesReceived+=c.length,a.rd&&a.rd()))};
hX=function(a){if(!a.playerResponse)return!1;if(a.lL)return!0;var b=a.videoData.N("html5_onesie_audio_only_playback")&&a.videoData.Pn(),c;if(c=a.Xw&&a.De){c=a.De;for(var d=!1,e=g.r(c.Ne.keys()),f=e.next();!f.done;f=e.next())f=c.Ne.get(f.value),(null===f||void 0===f?0:f.Bk)&&0<(null===f||void 0===f?void 0:f.Bk)&&(f.Lk?d=!0:b=!0);c=!(b&&d)}if(c)return!1;a.re("ofr");a.Yk.resolve(a.playerResponse);a.sA.stop();return a.lL=!0};
RHa=function(a){if(!a.Tk)return{};var b=gV(a.Tk);b.d=bEa(a.Tk);b.ty="o";return b};
WHa=function(a){function b(e){return(d.Yg&&!c.N("web_player_no_force_gvi")||!(c.Ni?0:c.N("web_player_gvi_wexit")||(g.ME(c)?"TVHTML5"===c.deviceParams.c?Toa(c)?c.N("web_player_gvi_wexit_living_room_pangea"):c.N("web_player_gvi_wexit_living_room_bedrock"):"TVHTML5_KIDS"===c.deviceParams.c?c.N("web_player_gvi_wexit_living_room_kids"):"TVHTML5_SIMPLY"===c.deviceParams.c||sE(c)?c.N("web_player_gvi_wexit_living_room_simply"):XE(c)||"TV_UNPLUGGED_CAST"===c.deviceParams.c?c.N("web_player_gvi_wexit_living_room_unplugged"):
c.N("web_player_gvi_wexit_living_room_other"):1))&&!AG(d)?0:"yt"!==c.va?38===d.Ka&&"books"===c.playerStyle||30===d.Ka&&"docs"===c.playerStyle||33===d.Ka&&"google-live"===c.playerStyle?0:c.N("web_player_gvi_wexit_all_player_styles"):"adunit"!==vG(d)||c.N("web_player_gvi_wexit_adunit"))?SHa(a,d).then(function(){sX(a,d)},function(f){sX(a,d,!0);
throw f;}):THa(a,d,e)}
var c=a.V(),d=a.getVideoData();d.isDisposed();d.Ha=!0;return UHa(a)?VHa(a,d).then(function(){sX(a,d)},function(e){e=mD(e);
if(e.i)return sX(a,d,!0),Promise.reject(e);a.handleError(e);return b("onesie")}):b("gvi")};
UHa=function(a){var b=a.V();if(!b.N("html5_onesie"))return!1;var c=a.getVideoData();if(!b.N("html5_onesie_cast")&&(c.X||c.Zf)||!b.N("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.va)return!1;b=b.Zc;if(!b||!b.i)return a.handleError(new g.lD("onesie.unavailable.hotconfig",!1,{key:"0"})),!1;b={};window.Uint8Array||(b.uint8="0");return 0<Object.keys(b).length?(b.onesie="0",a.handleError(new g.lD("html5.missingapi",!1,b)),!1):!0};
XHa=function(a){var b=$J();Isa(b,a.mf());return g.ZL(b,kva())};
VHa=function(a,b){var c,d,e,f,h,l,m,n;return g.A(function(p){if(1==p.i)return b.fetchType="onesie",c=bwa(b,a.getPlayerSize(),a.getVisibilityState()),d=new rX(a,c),g.x(p,d.fetch(),2);e=p.u;f={player_response:e};b.Ha=!1;b.vl=d.De;b.MD=d.MD;g.UF(b,f,!0);if(b.Ha||SF(b))return p.return(Promise.resolve());b.vl=void 0;h={};l="onesie.response";m=!1;b.errorCode?(l="auth",h.ec=b.errorCode,h.ed=b.errorDetail,h.es=b.ri||"",m=!0):(h.successButUnplayable="1",h.disposed=""+ +b.isDisposed(),h.afmts=""+ +/adaptiveFormats/.test(e),
h.cpn=b.clientPlaybackNonce);n=new g.lD(l,m,h);return p.return(Promise.reject(n))})};
SHa=function(a,b){var c,d,e,f,h,l,m,n,p;return g.A(function(q){switch(q.i){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){q.fb(4);break}if(!(0<f)){q.fb(5);break}return g.x(q,Ih(5E3),6);case 6:h=new g.iw("Retrying OnePlatform request",{attempt:f}),g.ky(h);case 5:return ta(q,7),g.x(q,YHa(a,b),9);case 9:return q.return();case 7:l=va(q);m=mD(l);n=m.errorCode;d&&"manifest.net.badstatus"===n&&"401"===m.details.rc&&(d=!1,f===e-1&&(e+=1));if("auth"===n||"manifest.net.retryexhausted"===n)return q.return(Promise.reject(m));
a.handleError(m);if(m.i){q.fb(4);break}case 3:f++;q.fb(2);break;case 4:return p=c?"auth":"manifest.net.retryexhausted",q.return(Promise.reject(new g.lD(p,!0,{backend:"op"})))}})};
YHa=function(a,b){var c,d,e,f,h,l,m,n,p,q,t,u,v,y,z,C,G,F;return g.A(function(J){if(1==J.i)return b.fetchType="gp",c=XHa(b),d=bwa(b,a.getPlayerSize(),a.getVisibilityState()),e=g.JL(ZHa),f=b.mf(),h=(0,g.P)(),l=!1,m="empty",n=0,a.re("ps_s"),p=function(U){2===U.readyState&&a.re("ps_c")},q={Ys:p},g.x(J,g.bK(c,d,e,void 0,q),2);
t=J.u;a.re("ps_r");if(b.isDisposed())return J.return();t?t.error?(l=!0,m="esf:"+t.error.message,n=t.error.code):t.errorMetadata&&(l=!0,m="its",n=t.errorMetadata.status):l=!0;if(l)return u=a.V(),v=400===n||429===n,y=((0,g.P)()-h).toFixed(),z={backend:"op",rc:""+n,rt:y,reason:m,has_kpt:b.wb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.N("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:u.pageId?"1":"0",has_token:f?"1":"0",has_vvt:b.Sa?"1":"0",is_mdx:b.isMdxPlayback?
"1":"0",mdx_ctrl:b.Zf||"",token_eq:f===b.mf()?"1":"0"},C="manifest.net.connect",429===n?C="auth":200<n&&(C="manifest.net.badstatus"),J.return(Promise.reject(new g.lD(C,v,z)));b.Ha=!1;g.UF(b,{raw_player_response:t},!0);if(b.errorCode)return G={ec:b.errorCode,ed:b.errorDetail,es:b.ri||""},J.return(Promise.reject(new g.lD("auth",!0,G)));if(!b.Ha&&!SF(b))return F=b.isAd()?"auth":"manifest.net.retryexhausted",J.return(Promise.reject(new g.lD(F,!0,{successButUnplayable:"1",hasMedia:mG(b)?"1":"0"})));g.sa(J)})};
THa=function(a,b,c){var d,e,f,h,l,m,n,p,q,t;return g.A(function(u){switch(u.i){case 1:d=Ava(a.V(),b,a.getPlayerSize(),a.getVisibilityState(),a.isFullscreen()),e=function(){return!0},f=function(v){v=mD(v);
if(v.i)return Promise.reject(v);a.handleError(v);return!1},l=(h=b.isAd())?1:3,m=0;
case 2:if(!(m<l)){u.fb(4);break}n=d;if(!(0<m)){u.fb(5);break}return g.x(u,Ih(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=jt(d,p);case 5:return g.x(u,$Ha(b,n).then(e,f),7);case 7:if(q=u.u)return u.return();m++;u.fb(2);break;case 4:t=h?"auth":"manifest.net.retryexhausted";if(!h&&1E-4>Math.random())try{g.ky(new g.iw("b/152131571",btoa(d)))}catch(v){}return u.return(Promise.reject(new g.lD(t,!0,{backend:"gvi"})))}})};
$Ha=function(a,b){var c,d,e,f,h,l,m,n,p,q,t,u,v;return g.A(function(y){if(1==y.i)return a.fetchType="gvi",c=a.V(),(f=Bva(a))?(d={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:f},e=jt(b,{action_display_post:1})):(d={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e=b),h={},c.sendVisitorIdHeader&&a.visitorData&&(h["X-Goog-Visitor-Id"]=a.visitorData),(l=g.KD(c.experiments,"debug_sherlog_username"))&&(h["X-Youtube-Sherlog-Username"]=l),0<Object.keys(h).length&&(d.headers=
h),m=(0,g.P)(),n=function(z){if(!a.isDisposed()){z=z?z.status:-1;var C=400===z||429===z,G=((0,g.P)()-m).toFixed();G={backend:"gvi",rc:""+z,rt:G};var F="manifest.net.connect";429===z?F="auth":200<z&&(F="manifest.net.badstatus");return Promise.reject(new g.lD(F,C,G))}},p=function(z){return n(z.xhr)},g.x(y,uD(bu,e,d).then(void 0,p),2);
q=y.u;if(!q||!q.responseText)return y.return(n(q));a.Ha=!1;t=g.et(q.responseText);g.UF(a,t,!0,void 0);if(a.errorCode)return u={ec:a.errorCode,ed:a.errorDetail,es:a.ri||""},y.return(Promise.reject(new g.lD("auth",!0,u)));if(!a.Ha&&!SF(a))return v=a.isAd()?"auth":"manifest.net.retryexhausted",y.return(Promise.reject(new g.lD(v,!0,{successButUnplayable:"1"})));g.sa(y)})};
sX=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h,l;g.A(function(m){if(1==m.i){d=a.V();if(c&&(!g.ZE(d)||"embedded"!==vG(b))||b.Pp||"adunit"!==vG(b)&&(g.ME(d)||NE(d)||g.GE(d)||g.FE(d)||"WEB_CREATOR"===d.deviceParams.c))return m.return();ta(m,2);e=XHa(b);var n=b.V();g.Uv.getInstance();var p={context:g.IM(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===vG(b)&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);
n.Pj&&(p.showContentOwnerOnly=!0);g.Vv(0,141)&&(p.autonavState=g.Vv(0,140)?"STATE_OFF":"STATE_ON");if(g.$E(n)){n=g.Vv(0,65);n=null!=n?!n:!1;var q=!!g.Ay("yt-player-sticky-caption");p.captionsRequested=n&&q}f=p;h=g.JL(aIa);a.re("wn_s");return g.x(m,g.bK(e,f,h),4)}if(2!=m.i)return l=m.u,a.re("wn_r"),l&&!l.error&&g.UF(b,{raw_watch_next_response:l},!1),ua(m,0);va(m);g.sa(m)})};
bIa=function(a){function b(){a.re("virc");vA("virc",void 0,"video_to_ad")}
a.re("vir");vA("vir",void 0,"video_to_ad");var c=WHa(a);c.then(b,b);return c};
g.wX=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new RF(a):m;n=void 0===n?!0:n;g.Q.call(this);var p=this;this.Y=a;this.playerType=b;this.Qb=c;this.mx=d;this.getVisibilityState=f;this.visibility=h;this.jy=l;this.videoData=m;this.gR=n;this.Ou=new QGa(this.Y);this.Kd=null;this.jt=new ZV;this.Ol=null;this.zg=new iW(this.Y,this.mx,this);this.NK=!0;this.mediaSource=this.Ya=null;this.Hj=[];this.pm=new aX;this.Fe=this.Iw=null;this.qm=new aX;this.yA=null;this.RK=this.Ms=!1;this.zA=NaN;this.jB=new g.I(this.eW,
500,this);this.playerState=new g.CJ;this.BA=[];this.Tt=new g.WC;this.zk=new fW(this);this.ra=null;this.fq=new g.I(this.FU,15E3,this);this.hG=this.fA=!1;this.yq=NaN;this.ly=!1;this.WC=0;this.XC=new g.I(this.kG,4500,this);this.Vv=!1;this.Lz=NaN;this.AG=new eT(new Map([["bufferhealth",function(){var q=p.Oc;return q.ra?AJ(q.ra):0}],
["bandwidth",function(){return p.RD()}],
["networkactivity",function(){return p.Y.schedule.Z}],
["livelatency",function(){return p.isAtLiveHead()&&p.Ec()?tX(p):NaN}],
["rawlivelatency",function(){return tX(p)}]]));
this.Oz=0;this.loop=!1;this.playbackRate=1;this.uL=0;this.Oc=new VW(this);this.iJ=!1;this.AA=[];this.JE=this.dN=0;this.fG=this.zO=!1;this.MC=new g.I(this.aS,0,this);this.od=null;this.aM=new g.I(this.kR,0,this);this.GA=new g.I(this.zN,3E4,this);this.pT=[this.jB,this.Tt,this.MC,this.fq,this.GA,this.jB,this.XC,this.AG,this.aM];this.Ee=function(){var q=p.Rb;q.u.Y.fc||3===q.u.Da.getVisibilityState()||(q.u.Y.fc=!0);CGa(q);if(q.B){var t=q.B;t.I&&0>t.u&&3!==t.i.Da.getVisibilityState()&&YFa(t)}q.qoe&&(q=q.qoe,
q.Ka&&0>q.B&&q.i.Y.fc&&jGa(q));g.S(p.Y.experiments,"html5_background_quality_cap")&&p.Ya&&HV(p);p.Y.hk&&!p.videoData.backgroundable&&p.ra&&!p.qf()&&(p.isBackground()&&p.ra.Nx()?(p.Ca("bgmobile","suspend"),p.wm(!0)):p.isBackground()||uX(p)&&p.Ca("bgmobile","resume"))};
this.ma();this.Qg=new JW(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,t){q!==g.cz("endcr")||g.T(p.playerState,32)||wS(p);
e(q,t,p.playerType)});
g.H(this,this.Qg);g.H(this,this.Oc);cIa(this,m);this.videoData.subscribe("dataupdated",this.qW,this);this.videoData.subscribe("dataloaded",this.jD,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Ca,this);dIa(this);MBa(this.Ee);this.visibility.subscribe("visibilitystatechange",this.Ee);this.videoData.La&&eIa(this);!Mqa(this.videoData)&&Sqa(this.videoData)||fIa(this);1===this.playerType&&vX.isActive()&&this.GA.start();this.videoData.xe=this.getUserAudio51Preference()};
cIa=function(a,b){if(2===a.playerType||a.Y.rl)b.vH=!0;var c=Mpa(b.Nb,b.Ar,a.Y.i,a.Y.u);c&&(b.adFormat=c);2===a.playerType&&(b.Qk=!0);if(a.isFullscreen()||a.Y.i)c=g.Ay("yt-player-autonavstate"),b.autonavState=c||(a.Y.i?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&xX(a,b.endSeconds)};
dIa=function(a){!a.Rb||a.Rb.isDisposed();a.Rb=new g.IW(new HW(a.videoData,a.Y,a,function(){return a.jy.Eh()}))};
sH=function(a){return a.ra&&a.ra.Uo()?a.ra.Me():null};
yX=function(a){if(a.videoData.isValid())return!0;a.Hf("api.invalidparam",void 0,"invalidVideodata.1");return!1};
eIa=function(a){var b=a.jy.Jc();a.videoData.xl=a.videoData.xl||(null===b||void 0===b?void 0:b.UD());a.videoData.yl=a.videoData.yl||(null===b||void 0===b?void 0:b.VD())};
cS=function(a,b){(b=void 0===b?!1:b)||BGa(a.Rb);a.Ms=b;!yX(a)||a.pm.started?g.ME(a.Y)&&a.videoData.isLivePlayback&&a.pm.started&&!a.pm.isFinished()&&!a.Ms&&a.jD():(a.pm.start(),b=a.Rb,g.vS(b.u),b.qoe&&iGa(b.qoe),a.jD())};
gIa=function(a){var b=a.videoData;bIa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=mD(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Hf("auth",unescape(a.videoData.errorReason),g.kD(c.details),a.videoData.errorDetail,a.videoData.ri||void 0):a.handleError(c))})};
PBa=function(a,b){a.od=b;a.Ya&&KEa(a.Ya,new g.LV(b))};
hIa=function(a){if(!g.T(a.playerState,128))if(a.videoData.isLoaded(),a.ma(),4!==a.playerType&&(a.Hj=g.Xb(a.videoData.Aa)),mG(a.videoData)){zX(a).then(function(){if(!a.isDisposed()){a.Ms&&(a.Ub(EJ(EJ(a.playerState,512),1)),uX(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&xX(a,c.endSeconds);a.pm.i=!0;AX(a,"dataloaded");a.qm.started&&BX(a);XFa(a.zg,a.Fe)}});
a.N("html5_log_media_perf_info")&&a.Ca("loudness",""+a.videoData.ue.toFixed(3),!0);var b=Tqa(a.videoData);b&&a.Ca("playerResponseExperiment",b,!0);a.VC()}else AX(a,"dataloaded")};
zX=function(a){CX(a);a.Fe=null;var b=SGa(a.Y,a.videoData,a.qf());a.Iw=b;a.Iw.then(function(c){iIa(a,c)},function(c){a.isDisposed()||(c=mD(c),a.visibility.isBackground()?(DX(a,"vp_none_avail"),a.Iw=null,a.pm.reset()):(a.pm.i=!0,a.Hf(c.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.kD(c.details))))});
return b};
gW=function(a){a.ma();zX(a).then(function(){return uX(a)});
g.IJ(a.playerState)&&a.playVideo()};
iIa=function(a,b){a.isDisposed()||b.videoData.isDisposed()||(a.ma(),a.Fe=b,cHa(a.Oc,a.Fe),a.videoData.isLivePlayback&&(0<a.videoData.qc&&!YF(a.videoData)||a.seekTo(a.jd(),{Td:"videoplayer_playbackData"})),a.videoData.C.i?a.Ya?g.ky(Error("Duplicated Loader")):jIa(a):!a.videoData.C.i&&BG(a.videoData)&&a.Ws(new UT(a.videoData.videoId||"",4)),EX(a),PFa(b).then(function(){a.Ot();FX(a)}))};
GX=function(a){a.ma();a.ra&&a.ra.Jr();cS(a);yX(a)&&!g.T(a.playerState,128)&&(a.qm.started||(a.qm.start(),a.Ub(EJ(EJ(a.playerState,8),1))),BX(a))};
BX=function(a){a.isDisposed();a.ma();if(a.qm.isFinished())a.ma();else if(a.pm.isFinished())if(g.T(a.playerState,128))a.ma();else if(a.Hj.length)a.ma();else{if(!a.Qg.started){var b=a.Qg;b.started=!0;b.jl()}if(a.Yl())a.ma();else{a.Ya&&(b=a.Ya.timing,a.RK=!!b.i&&!!b.u);a.qm.isFinished()||(a.qm.i=!0);b=a.N("html5_onesie_live")&&a.Ya&&!isNaN(a.Ya.Sa);!a.videoData.isLivePlayback||0<a.videoData.qc&&!YF(a.videoData)||b||(a.ma(),a.seekTo(Infinity,{Td:"videoplayer_readying"}),a.isBackground()&&(a.hG=!0));b=
a.Rb;if(b.qoe){b=b.qoe;b.i.videoData.Vj&&tW(b,b.i.videoData.Vj);if(b.i.videoData.isLivePlayback){var c=b.i.videoData.i;YF(b.i.videoData)&&tW(b,"manifestless");c&&ED(c)&&tW(b,"live-segment-"+ED(c).toFixed(1))}"yt"!==b.i.Y.va&&(b.u.len=[b.i.videoData.lengthSeconds.toFixed(2)]);b.i.videoData.cotn&&!BG(b.i.videoData)&&fGa(b,!0);b.i.videoData.oa&&(c=eGa())&&b.Ca("cblt",c);zG(b.i.videoData)?tW(b,b.i.videoData.enableServerStitchedDai?"ssdai":"csdai"):b.i.videoData.ZG&&tW(b,"dsdai")}a.ma();a.ea("playbackready",
a);uA("pbr",a.Qb.timerName)||(a.Qb.tick("pbr"),vA("pbr",void 0,"video_to_ad"))}}else a.ma()};
wS=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.ra&&a.ra.pause();b=b?new g.CJ(14):new g.CJ;a.Ub(b)};
xX=function(a,b){a.Ol&&HX(a);a.Ol=new g.az(1E3*b,0x7ffffffffffff);a.Ol.namespace="endcr";a.addCueRange(a.Ol)};
HX=function(a){a.removeCueRange(a.Ol);a.Ol=null};
JX=function(a,b,c,d){a.videoData.B=c;d&&IV(a,b,d);d=(d=g.IX(a))?d.jc():"";a.Rb.Gw(new IFa(a.videoData,c,b,d));c=a.zg;c.B=0;c.i=0;a.ea("internalvideoformatchange",a.videoData,"m"===b)};
g.IX=function(a){var b=KX(a);return GA(b)||!a.Fe?null:g.Mb(a.Fe.i.videoInfos,function(c){return b.C(c)})};
IV=function(a,b,c){if(c!==a.videoData.K){var d=!a.videoData.K;a.videoData.K=c;"m"!==b&&(b=d?"i":"a");a.Rb.yw(new IFa(a.videoData,c,b,""));d||a.ea("internalaudioformatchange",a.videoData,"m"===b)}};
KV=function(a,b){a.ma();b&&a.ld(new g.lD("qoe.restart",!1,b));LX(a);b=a.videoData.i&&QA(a.videoData.i);var c=a.ra&&a.ra.isView();b||c?(a.Ya&&yEa(a.Ya),eW(a)):(a.Ub(EJ(a.playerState,16)),uX(a),g.IJ(a.playerState)&&a.playVideo())};
KX=function(a){if(a.Fe){var b=a.zg;var c=a.Fe;a=a.zs();var d=MFa(b);if(GA(d)){d=JFa(b,c);var e=d.compose,f;a:{var h=c.i;if(h&&h.videoInfos.length){for(var l=g.r(h.videoInfos),m=l.next();!m.done;m=l.next())if(m=m.value,null===(f=m.u)||void 0===f?0:f.smooth){f=m.video.i;break a}f=h.videoInfos[0].video.i}else f=0}qu()&&!g.ME(b.Y)&&QC(c.i.videoInfos[0])&&(f=Math.min(f,g.EA.large));f=new CA(0,f,!1,"o");d=e.call(d,f);e=d.compose;f=4320;!b.Y.isMobile||g.DE(b.Y)||zu()||b.Y.N("hls_for_vod")||(f=g.EA.medium);
if(h=g.S(b.Y.experiments,"html5_default_quality_cap"))m=!!c.i.i&&!c.videoData.Zf&&!c.videoData.Ed,l=g.S(b.Y.experiments,"html5_quality_cap_min_age_secs"),m&&l&&(m=b.Y.schedule.S,m=(0,g.P)()-m>1E3*l),m&&(f=Math.min(f,h));h=g.S(b.Y.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));(h=g.S(b.Y.experiments,"html5_not_vp9_supported_quality_cap"))&&!ZC('video/webm; codecs="vp9"')&&(f=Math.min(f,h));if(l=h=g.S(b.Y.experiments,"html5_hfr_quality_cap"))a:{l=
c.i;if(l.i)for(l=g.r(l.videoInfos),m=l.next();!m.done;m=l.next())if(32<m.value.video.fps){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.S(b.Y.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=WFa(b,c,f);f=new CA(0,4320===f?0:f,!1,"d");d=e.call(d,f).compose(jW(b)).compose(kW(b,c.videoData,c)).compose(VFa(b,c)).compose(OFa(c)).compose(NFa(b,c))}else b.N("html5_perf_cap_override_sticky")&&(d=d.compose(VFa(b,c))),b.N("html5_ustreamer_cap_override_sticky")&&(d=d.compose(OFa(c)));
b.N("html5_varispeed_playback_rate")&&(d=d.compose(NFa(b,c)));b=c.videoData.jr.compose(d).compose(c.videoData.vN).compose(a)}else b=QF;return b};
aBa=function(a,b,c){a.videoData.jr=b;if(a.Fe&&c){c=a.zg;var d=a.Fe,e,f;if(d.i.i){var h=GD(),l=d.i.videoInfos[0].video.i;if(!(h>l&&0!==l&&b.i===l)){1<c.playbackRate&&c.N("html5_varispeed_playback_rate")&&(h=joa(c.Y.B,d.i.videoInfos,c.playbackRate),0!==b.i&&h<b.i&&c.Da.setPlaybackRate(1));d=(null===(f=null===(e=d.videoData.B)||void 0===e?void 0:e.video)||void 0===f?void 0:f.i)||0;g.zy("yt-player-quality",{quality:g.EA[IA(b)],previousQuality:d},31104E3);c.Y.schedule.policy.C=480<=GD();if(c.N("html5_exponential_memory_for_sticky")){b=
c.Y.dc;e=1;var m=void 0===m?!1:m;Boa(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.Wl["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.Wl["sticky-lifetime"]=0);m&&.0625<lE(b,"sticky-lifetime")&&(e=2*b.Wl["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.i/e);b.Wl["sticky-lifetime"]=e;b.C.start()}if(c.N("html5_perf_cap_override_sticky"))if(c.N("html5_perserve_av1_perf_cap")){m=HD();c=g.r(Object.keys(m));for(b=c.next();!b.done;b=c.next())b=b.value,0!==b.indexOf("1")&&(m[b]=0);
g.zy("yt-player-performance-cap",m,604800)}else g.By("yt-player-performance-cap")}}}EX(a)};
EX=function(a){if(!a.isDisposed()&&!g.T(a.playerState,128)&&a.videoData.C){if(a.videoData.C.i)FX(a);else{var b=KX(a),c=a.videoData;a:{var d=a.videoData.Eb;if(b.i){for(var e=g.r(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.lf(),l=g.EA[h.video.quality];if((!b.B||"auto"!==h.video.quality)&&l<=b.i){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.bb=d;JX(a,b.reason,kIa(a,a.videoData.bb))}if(a.N("html5_check_unstarted")?g.IJ(a.playerState):a.Ec())a.Oc.La=!1,a.playVideo()}};
FX=function(a){if(a.videoData.C&&a.videoData.C.i){var b=KX(a);if(a.Ya&&(a=a.Ya,!a.isDisposed()&&!DA(a.u.B,b)&&a.videoTrack)){a.ma();var c=a.u.B;DEa(a,YCa(a.u,b));AV(a);var d=LT(a.u)&&"m"===b.reason&&a.u.Z,e=a.policy.Pj&&"l"===b.reason&&cV(a.videoTrack);b=c.i>b.i&&"b"===b.reason;c=a.u.Wa&&!oD();d||e||b||c?KV(a.Da,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):g.br(a.X)}}};
HV=function(a){a.N("html5_update_constraint")?FX(a):EX(a)};
mIa=function(a){var b=lIa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.zc.getName()===b})};
lIa=function(a){var b;if(a=null===(b=a.ra)||void 0===b?void 0:b.audioTracks())for(var c=0;c<a.length;++c){var d=a[c];if(d.enabled)return d.label}};
jIa=function(a){Mna(a.videoData.i,{cpn:a.videoData.clientPlaybackNonce,c:a.Y.deviceParams.c,cver:a.Y.deviceParams.cver});var b=a.Y,c=a.videoData,d=new g.kwa(b),e=jwa(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Ik:c.Ik});d.D=e;d.oa=g.S(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");d.dc=g.S(b.experiments,"html5_subsegment_readahead_timeout_secs");d.zq=g.S(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.ac=g.S(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");
d.Kq=g.S(b.experiments,"html5_subsegment_readahead_min_load_speed");d.dh=g.S(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.Lq=g.S(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Mf=b.N("html5_peak_shave");d.xp=b.N("html5_restrict_streaming_xhr_on_sqless_requests");d.bk=g.S(b.experiments,"html5_max_headm_for_streaming_xhr");d.jk=b.N("html5_pipeline_manifestless_allow_nonstreaming");d.xl=b.N("html5_prefer_server_bwe3");d.Oh=1024*g.S(b.experiments,"html5_video_tbd_min_kb");
d.Tj=b.N("html5_last_slice_transition");d.bq=b.N("html5_store_xhr_headers_readable");d.wb=g.S(b.experiments,"html5_probe_primary_delay_base_ms")||d.wb;d.Af=b.N("html5_no_placeholder_rollbacks");d.tq=b.N("html5_subsegment_readahead_enable_mffa");b.N("html5_allow_video_keyframe_without_audio")&&(d.va=!0);d.Rg=b.N("html5_reattach_on_stuck");d.Qq=b.N("html5_webm_init_skipping");d.Sg=g.S(b.experiments,"html5_request_size_padding_secs")||d.Sg;d.bd=b.N("html5_abs_buffer_health");d.gj=b.N("html5_interruption_resets_seeked_time");
d.xe=g.S(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.xe;d.Ah=b.N("html5_explicitly_dispose_xhr");d.Xo=b.N("html5_restart_on_unexpected_detach");d.Bp=b.N("html5_rewrite_manifestless_for_continuity");d.Vd=g.S(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.ue=g.S(b.experiments,"html5_max_drift_per_track_secs");d.Pp=b.N("html5_rewrite_manifestless_for_sync");d.Zb=g.S(b.experiments,"html5_static_abr_resolution_shelf");d.Yi=!b.N("html5_encourage_array_coalescing");d.Qj=b.N("html5_crypto_period_secs_from_emsg");
d.dj=b.N("html5_filter_non_efficient_formats_for_safari");d.Yt=b.N("html5_format_hybridization");d.Ni=b.N("html5_abort_before_separate_init");d.Yp=b.N("html5_serialize_server_stitched_ad_request");d.Yh=b.N("html5_never_pause_appends");d.gk=g.S(b.experiments,"html5_min_startup_buffered_media_duration_secs");d.Si=b.N("html5_attach_po_token_to_bandaid");b.N("html5_allow_video_keyframe_without_audio")&&(d.va=!0);0<g.S(b.experiments,"html5_max_redirect_response_length")&&(d.ye=g.S(b.experiments,"html5_max_redirect_response_length"));
e=g.S(b.experiments,"html5_resource_bad_status_delay_scaling");0<e&&(d.Wo=e);d.Gb=b.N("html5_rewrite_timestamps_for_webm");d.Ha=b.N("html5_only_media_duration_for_discontinuities");b.N("html5_media_common_config_killswitch")||(d.I=c.maxReadAheadMediaTimeMs/1E3||d.I,e=b.schedule,e.B.jg()===e.policy.B?d.Aa=10:d.Aa=c.minReadAheadMediaTimeMs/1E3||d.Aa,d.fd=c.readAheadGrowthRateMs/1E3||d.fd);hm&&(d.Ba=41943040);d.Wa=!tD();g.ME(b)||!tD()?(e=b.experiments,d.K=8388608,d.X=524288,d.Ui=5,d.jb=2097152,d.Ka=
1048576,d.Al=1.5,d.hk=!1,d.Ob=4587520,uu()&&(d.Ob=786432),d.B*=1.1,d.C*=1.1,d.Eb=!0,d.Ba=d.K,d.rb=d.X,d.Fc=e.ob("persist_disable_player_preload_on_tv")||e.ob("persist_disable_player_preload_on_tv_for_living_room")||!1):b.isMobile&&(d.B*=1.3,d.C*=1.3);g.lj&&ou("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.K=20971520,d.X=1572864,e&&(d.Ob=812500,d.Zc=1E3,d.Pq=5,d.Ka=2097152));!b.N("html5_disable_firefox_init_skipping")&&g.mj&&(d.Eb=!0);b.supportsGaplessAudio()||(d.Rj=!1);uE&&(d.Sa=!0);
var f;e=null===(f=c.i)||void 0===f?void 0:QA(f);if(YF(c)){d.fc=!0;d.ej=!0;d.Ha=!0;d.Gb=!0;d.Zp=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.N("html5_disable_low_pipeline"))d.Vj=2,d.dk=4;d.Ml=c.defraggedFromSubfragments;c.Rd&&(d.yl=!0);g.nG(c)&&(d.Va=!1);d.aj=g.YE(b)}c.isAd()&&(d.vb=0,d.Hd=0);yqa(c)&&(d.La=!0,b.N("html5_aggressive_timeout_for_streaming_xhr")&&(d.Zc=400,d.Db*=3,d.Wj=2,d.Oe=3,d.Yg=1.4));d.Za=b.N("html5_enable_subsegment_readahead_v3")||b.N("html5_ultra_low_latency_subsegment_readahead")&&
"ULTRALOW"===c.latencyClass;d.bb=c.oa;d.Z=d.bb&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||g.cG(c));Eu()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.N("html5_disable_move_pssh_to_moov")&&e&&(d.Eb=!1);e&&(d.Rg=!1);var h=0;b.N("html5_live_use_alternate_bandwidth_window_sizes")&&(h=b.schedule.policy.u,c.isLivePlayback&&(h=g.S(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.va.i=YF(c)?.5:0;if(!f.policy.i&&h&&(f=f.B,h=Math.round(h*f.resolution),h!==f.i)){var l=Array(h),m=Math.min(h,f.u?f.i:f.valueIndex),n=f.valueIndex-m;0>n&&(n+=f.i);for(var p=0;p<m;++p)l[p]=f.values[(n+p)%f.i];for(;p<h;++p)l[p]=Infinity;f.i=h;f.values=l;f.valueIndex=m%h;f.u=m===h;f.C=!0;f.I=toa(f)}d.Yh=c.isLivePlayback;switch(gG(c)){case 21530001:d.Li=b.N("html5_live_smoothly_extend_max_seekable_time");d.Za=!0;"LOW"===c.latencyClass?d.oa=g.S(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):
"ULTRALOW"===c.latencyClass&&(d.oa=g.S(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Af=!0;break;case 2153E4:d.Za=!1}d.Sa=d.Sa||c.BC;d.Nb=c.La;g.cG(c)&&(d.kb=!0);c.La&&!e&&b.N("html5_hack_gapless_init")&&(d.Ug=!0);(e=g.S(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.La&&c.isAd()&&(d.B*=e,d.C*=e);BG(c)&&(d.u=c.videoId,b.N("html5_wofflec")&&(d.wd=!0),d.bd=!0,d.Oq=4,c.rl&&0<c.rl.length&&(d.qc=c.rl));d.Pj=c.Sg;d.S=JD(b,{},c.C||void 0);c=480<=GD();e=g.S(b.experiments,"html5_deadzone_multiplier")||
1;(f=g.S(b.experiments,"html5_sticky_reduces_discount_by"))&&c&&(e-=f);d.B*=e;d.C*=e;if(e=g.S(b.experiments,"html5_request_sizing_multiplier"))d.Bl=e;OA(b.B,PA.BITRATE)&&(d.Ob=NaN);b.B.u&&(d.bj="; "+PA.EXPERIMENTAL.name+"=allowed");c&&(d.Zb=0);b.N("html5_prefer_low_quality_audio_means_64k")&&uE&&(d.wl=!0);b.N("debug_html5_random_stun_format")&&(d.Qf=!0);b.N("html5_log_audio_abr")&&(d.Uj=!0);b=a.getAudioTrack();b=b.zc.isDefault?void 0:b;$V(a.jt);c=a.Y.schedule;e=a.videoData.i;f=a.videoData.C;h=KX(a);
l=a.videoData.enableServerStitchedDai;m=a.videoData;n=m.vl;delete m.vl;a.Ya=new g.vV(a,c,d,e,f,h,b,l,n,a.Y.Lh);b=nIa(a)?!0:a.Ms&&g.ME(a.Y)&&a.videoData.isLivePlayback;a.Ya.initialize(a.getCurrentTime(),KX(a),b);a.videoData.probeUrl&&(a.Ya.Ka=a.videoData.probeUrl);(a.Hj.length||a.Ms)&&MX(a,!1);YW(a.Oc,a.Ya);a.od&&KEa(a.Ya,new g.LV(a.od));g.CG(a.videoData)&&(a.Ya.policy.cj=2);b=a.videoData;if(g.CG(b)){c=b.i.i;if(e=!!c[b.B.id])b=c[b.B.id].u,e=!!b.i.get("ck")&&!!b.i.get("civ");b=e}else b=!1;(b||BG(a.videoData)&&
d.wd)&&a.Ca("wofc","1",!0)};
CX=function(a){a.Ya&&(a.Ya.dispose(),a.Ya=null,YW(a.Oc,null));LX(a)};
LX=function(a){if(a.mediaSource){a.ma();if(a.Ya){var b=YF(a.videoData)&&a.videoData.Rd&&!a.videoData.isAd();CV(a.Ya,b)}a.mediaSource.dispose();a.mediaSource=null}};
oIa=function(a){if(a.mediaSource)return a.mediaSource.hw;a.ma();a:if(a.N("html5_application_media_source"))a.ea("requestmediasource",a);else{try{var b=a.ra.Ip()}catch(c){if(hW(a.zk,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",c);a.Hf("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}rS(a,b)}return a.mediaSource?a.mediaSource.hw:null};
rS=function(a,b){pIa(a);a.mediaSource=b;kna(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){a.ma();var d=a.getDuration();!d&&YF(a.videoData)&&(d=25200);a.mediaSource.isView?(c=d,a.ma(),c>a.mediaSource.getDuration()&&a.mediaSource.Ij(c)):a.mediaSource.Ij(d);var e=a.Ya,f=a.mediaSource;e.Z&&(e.ma(),yV(e),e.Z=!1);e.ma();zEa(e);if(!f.i&&!f.u){var h=e.videoTrack.i.info.mimeType+e.policy.bj,l=e.audioTrack.i.info.mimeType,m,n,p=null===(m=f.mediaSource)||void 0===m?void 0:m.addSourceBuffer(l),
q="fakesb"===h.split(";")[0]?void 0:null===(n=f.mediaSource)||void 0===n?void 0:n.addSourceBuffer(h);f.Ke&&(f.Ke.webkitSourceAddId("0",l),f.Ke.webkitSourceAddId("1",h));var t=new nD(p,f.Ke,"0",NC(l),!1),u=new nD(q,f.Ke,"1",NC(h),!0);f.i=t;f.u=u;g.H(f,t);g.H(f,u)}IU(e.videoTrack,f.u||null);IU(e.audioTrack,f.i||null);e.mediaSource=f;e.resume();Nx(f.i,e.Va,e);Nx(f.u,e.Va,e);try{e.yh()}catch(v){g.jy(v)}a.ea("mediasourceattached")}}catch(v){g.ky(v),a.handleError(new g.lD("fmt.unplayable",!0,{msi:"1",ename:v.name}))}})};
pIa=function(a){a.Ya?g.yh(a.Ya.seek(a.getCurrentTime()-a.Uc()),function(){}):jIa(a)};
eW=function(a,b){b=void 0===b?!1:b;return g.A(function(c){if(1==c.i)return a.Ya&&a.Ya.isDisposed()&&CX(a),a.ea("newelementrequired"),b?g.x(c,zX(a),2):c.fb(2);g.T(a.playerState,8)&&a.playVideo();g.sa(c)})};
JBa=function(a,b){a.Ca("newelem",b);eW(a)};
NX=function(a){a.Qb.B.nF();g.T(a.playerState,32)||(a.Ub(EJ(a.playerState,32)),g.T(a.playerState,8)&&a.pauseVideo(!0),a.ea("beginseeking",a));a.Xb()};
JS=function(a){g.T(a.playerState,32)?(a.Ub(GJ(a.playerState,16,32)),a.ea("endseeking",a)):g.T(a.playerState,2)||a.Ub(EJ(a.playerState,16));a.Qb.B.sF(a.videoData,g.T(a.playerState,4))};
fIa=function(a){var b=a.videoData.errorDetail;a.Hf("auth",unescape(a.videoData.errorReason),b,b,a.videoData.ri||void 0)};
AX=function(a,b){a.ea("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
qIa=function(a){g.jc("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Tt.T(this.ra,b,this.GF,this)},a);
a.Y.aj&&a.ra.Uo()&&(a.Tt.T(a.ra,"webkitplaybacktargetavailabilitychanged",a.FT,a),a.Tt.T(a.ra,"webkitcurrentplaybacktargetiswirelesschanged",a.GT,a))};
sIa=function(a){a.N("html5_enable_timeupdate_timeout")&&!a.videoData.isLivePlayback&&rIa(a)&&a.jB.start()};
rIa=function(a){if(!a.ra)return!1;var b=a.ra.getCurrentTime();a=a.ra.getDuration();return!!(1<b&&b>a-.3)};
tIa=function(a){Tt(a.zA);OX(a)||(a.zA=Rt(function(){return OX(a)},100))};
OX=function(a){var b=a.ra;b&&a.fA&&!a.videoData.kb&&!uA("vfp",a.Qb.timerName)&&2<=b.wh()&&!b.Nk()&&0<hD(b.Tf())&&a.Qb.tick("vfp");return(b=a.ra)&&!a.videoData.kb&&0<b.getDuration()&&(!uA("pbp",a.Qb.timerName)&&b.il()&&2<=b.wh()&&0<hD(b.Tf())&&a.Qb.tick("pbp"),b=b.getCurrentTime(),KW(a.Ou,b))?(CBa(a),!0):!1};
CBa=function(a){Tt(a.zA);a.fq.stop();a.videoData.kb=!0;a.Y.Tj=!0;a.Y.Wa=0;var b=a.zk,c=b.videoData.B;c&&b.videoData.N("html5_disable_codec_on_errors_with_exp_backoff")&&b.i.B.i.delete(c.i);b.u.stop();a.Y.Oh=a.videoData.FC;a.videoData.UJ=!0;uIa(a);g.T(a.playerState,8)&&a.Ub(FJ(a.playerState,65));b=a.Rb;b.i&&vGa(b.i);b.B&&(b=b.B,c=g.vS(b.i),0>b.u&&(b.u=c,b.delay.start()),b.B=c,b.D=c);g.br(a.XC);a.ea("playbackstarted");g.mv()&&((a=g.Ha("yt.scheduler.instance.clearPriorityThreshold"))?a():nv(0))};
uIa=function(a){var b=a.getCurrentTime(),c=a.videoData;!uA("pbs",a.Qb.timerName)&&Yz.measure&&Yz.getEntriesByName&&(Yz.getEntriesByName("mark_nr")[0]?zla("mark_nr"):zla());c.videoId&&a.Qb.info("docid",c.videoId);c.eventId&&a.Qb.info("ei",c.eventId);c.clientPlaybackNonce&&a.Qb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Qb.info("start",c.startSeconds.toString());a.ra&&a.ra.il()&&a.Qb.info("paused",1);c.B?a.Qb.info("fmt",c.B.jc()):a.Qb.info("fmt","-1");c.Hd&&a.Qb.info("yt_pre",a.RK?"2":"1");
a.isFullscreen()&&a.Qb.info("yt_fs","1");a.Qb.info("cmt",b.toFixed(3));if(a.Ya){b=a.Ya.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.u&&(c=window.performance.getEntriesByName(b.u),c.length&&(c=c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("fvb",c.responseStart),b.tick("vrc",c.responseEnd))),b.i&&(c=window.performance.getEntriesByName(b.i),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),
b.tick("areq",c.requestStart),b.tick("avb",c.responseStart),b.tick("arc",c.responseEnd))));b=b.ticks;for(var d in b)b.hasOwnProperty(d)&&a.Qb.tick(d,b[d])}};
vIa=function(a){a.Rb.rd();if(a.videoData.isLivePlayback&&Date.now()>a.uL+6283){if(!(!a.isAtLiveHead()||a.videoData.i&&BD(a.videoData.i))){var b=a.Rb;if(b.qoe){b=b.qoe;var c=b.i.Da.oz(),d=g.vS(b.i);hGa(b,d,c);c=c.D;isNaN(c)||g.oW(b,d,"e2el",[c.toFixed(3)])}}g.YE(a.Y)&&a.Ca("rawlat","l."+gT(a.AG,"rawlivelatency").toFixed(3));a.uL=Date.now()}a.videoData.B&&TC(a.videoData.B)&&(b=sH(a))&&b.videoHeight!==a.JE&&(a.JE=b.videoHeight,JX(a,"a",kIa(a,a.videoData.bb)))};
kIa=function(a,b){if("auto"===b.i.video.quality&&TC(b.lf())&&a.videoData.Eb)for(var c=g.r(a.videoData.Eb),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.JE&&"auto"!==d.i.video.quality)return d.lf();return b.lf()};
tX=function(a){if(!a.videoData.isLivePlayback)return NaN;var b=0;a.Ya&&a.videoData.i&&(b=YF(a.videoData)?a.Ya.Ha.jg()||0:a.videoData.i.va);return Date.now()/1E3-a.getIngestionTime()-b};
wIa=function(a){!a.N("html5_ignore_airplay_events_on_new_video_killswitch")&&a.ra&&a.ra.qf()&&(a.Lz=(0,g.P)());a.Y.yl?g.Qt(function(){PX(a)},0):PX(a)};
PX=function(a){if(a.ra)try{a.yA=a.ra.playVideo()}catch(c){DX(a,"err."+c)}if(a.yA){var b=a.yA;b.then(void 0,function(c){a.ma();if(!g.T(a.playerState,4)&&!g.T(a.playerState,256)&&a.yA===b)if(c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))a.ma();else{var d="promise";c&&c.name&&(d+=";m."+c.name);DX(a,d);a.iJ=!0;a.Y.N("embeds_enable_autoplayblocked_ping_fix")&&(a.videoData.sL=!0)}})}};
DX=function(a,b){g.T(a.playerState,128)||(a.Ub(GJ(a.playerState,1028,9)),a.Ca("dompaused",b),a.ea("onDompaused"),a.ea("onAutoplayBlocked"))};
uX=function(a){if(!a.ra||!a.videoData.C)return!1;var b,c,d=null;(null===(c=a.videoData.C)||void 0===c?0:c.i)?(d=oIa(a),null===(b=a.Ya)||void 0===b?void 0:b.resume()):(CX(a),a.videoData.bb&&(d=a.videoData.bb.wu()));b=d;d=a.ra.Nx();c=!1;d&&null!==b&&b.i===d.i||(xIa(a,b),c=!0);g.T(a.playerState,2)||(b=a.Oc,b.D||!(0<b.B)||b.ra&&0<b.ra.getCurrentTime()||b.seekTo(b.B,{Td:"playbacktimeline_resumeTime"}));a:if(b=c,g.iG(a.videoData)&&a.ra)if((d=a.videoData.I)&&a.ra.Uo()){var e=a.ra.Me();if(a.Kd)if(e!==a.Kd.element)QX(a);
else if(b&&"fairplay"===d.flavor&&!tu())QX(a);else break a;a.Kd=new bW(e,a.videoData,a.Y);a.Kd.subscribe("licenseerror",a.iA,a);a.Kd.subscribe("qualitychange",a.CU,a);a.Kd.subscribe("heartbeatparams",a.Dw,a);a.Kd.subscribe("keystatuseschange",a.uo,a);a.Kd.subscribe("ctmp",a.Ca,a);b=g.r(a.jt.keys);for(d=b.next();!d.done;d=b.next())d=a.jt.get(d.value),a.Kd.Xs(d);a.N("html5_eme_loader_sync")||$V(a.jt)}else a.Hf("fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return c};
xIa=function(a,b){var c;a.Qb.tick("vta");vA("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&eHa(a.Oc,a.getCurrentTime());a.ra.Jr(b);a.mediaSource&&nv(4);!a.videoData.kb&&g.IJ(a.playerState)&&a.fq.start();a.N("html5_native_audio_track_switching")&&(b=null===(c=a.ra)||void 0===c?void 0:c.audioTracks())&&(b.onchange=function(){a.ea("internalaudioformatchange",a.videoData,!0)})};
QX=function(a){a.Kd&&(a.Kd.dispose(),a.Kd=null)};
sS=function(a,b){b=void 0===b?!1:b;return a.videoData.isLivePlayback&&(a.isAtLiveHead()&&(a.N("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.T(a.playerState,4))||a.dm()||g.nG(a.videoData))?a.getCurrentTime():a.jd(b)};
yIa=function(a){a.ma();a.ra&&(a.mediaSource?(QX(a),LX(a),oIa(a)):(a.videoData.bb&&a.videoData.bb.jG(),a.ra.stopVideo()),a.playVideo())};
RX=function(a,b){a.Y.N("html5_log_rebuffer_reason")&&a.Ca("bufreason","r."+b+";lact."+uv())};
DS=function(a,b,c,d,e,f){var h;if(null===(h=a.videoData.i)||void 0===h?0:h.isLive){var l=2===c.playerType?c:b,m=b.videoData.videoId,n=c.videoData.videoId;if(m&&n){var p=a.Rb;if(p.qoe){p=p.qoe;var q=b.cpn,t=c.cpn,u=l.videoData.Nb,v=p.i.videoData.clientPlaybackNonce,y=p.i.videoData.videoId,z=t!==v&&n!==y;v=q!==v&&m!==y;p.reportStats();p.adCpn&&p.adCpn!==q||(p.adCpn=v?q:"",p.D=v?m:"",p.adFormat=v?u:void 0,kGa(p,f?2:0,t,n,e),p.reportStats(),p.adCpn=z?t:"",p.D=z?n:"",p.adFormat=z?u:void 0,kGa(p,f?3:1,
q,m,d),p.reportStats())}d=a.Rb;f=b.cpn;d.C.has(f)?(m=d.C.get(f),FW(m).send(),g.St(m.B),m.B=NaN,d.u.Y.N("watch_time_greater_than_playback_time_fix_killswitch")||f===d.u.videoData.clientPlaybackNonce||(GW(m),d.C.delete(f))):(d.Rf=d.u.videoData.clientPlaybackNonce,d.Rf&&d.i&&d.C.set(d.Rf,d.i));d=a.Rb;f=c.cpn;l=l.videoData;var C;d.C.has(f)?null===(C=d.C.get(f))||void 0===C?void 0:C.C&&isNaN(C.B)&&DW(C,!1):(C=GGa(d,d.u,l,e),d.C.set(f,C),vGa(C));d.Rf=f;C=a.videoData.clientPlaybackNonce;a=c.videoData;b=
(c.cpn===C?"video":"ad")+"_to_"+(b.cpn===C?"video":"ad");C={};!a.N("web_player_csi_ctt_killswitch")&&a.X&&(C.cttAuthInfo={token:a.X,videoId:a.videoId});C.startTime=e;qA(b,C);tA({targetVideoId:a.videoId,targetCpn:c.cpn},b);sA("pbs",e,b)}}};
zIa=function(a,b){if(a.videoData.oa){var c=g.S(a.Y.experiments,"html5_log_rebuffer_events");if(c&&a.ra){var d=a.ra.Kb();d.rt=(1E3*g.vS(a.Rb.u)).toFixed();d.e=b.substr(0,3);a.AA[a.dN++%c]=d}}"timeupdate"!==b&&"progress"!==b&&a.ma()};
AIa=function(a){if(a.videoData.oa){a.AA.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.r(a.AA),c=b.next();!c.done;c=b.next())c=c.value,a.Ca("vpe","t."+c.rt+";"+g.kD(c));a.AA=[];a.dN=0}};
BIa=function(a){if(ou("cobalt")&&ou("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Ca("nxdock",""+ +b)}};
BBa=function(a,b,c,d,e){a.Ca("xvt","m."+b+";g.1;tt."+(c?1:0)+";np."+(d?1:0)+";c."+e)};
MX=function(a,b){var c;null===(c=a.Ya)||void 0===c?void 0:BV(c,b||nIa(a))};
nIa=function(a){var b=a.N("disable_prefetch_when_ad_pending_for_living_room")&&g.ME(a.Y),c=a.N("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.Qb(a.Hj,"ad")};
EEa=function(a){var b=a.Y.fd||"";g.S(a.Y.experiments,"html5_session_po_token_interval_time_ms")||OE(a.Y);return b};
g.VX=function(a,b,c){g.E.call(this);var d=this;this.lw=this.hg=!1;this.Dx={};this.RC={};this.HA={};this.At=[];this.XK=!1;this.AE=null;this.eL=!1;this.Wp=!0;this.tG=!1;this.zL=this.LE=null;this.GL=!0;this.ra=this.Sb=null;this.Hw=!1;this.HN=this.Qw=this.ub=this.playlist=null;this.jx=void 0;this.Oo=0;this.Yc=this.Wt=this.Zi=null;this.ma();this.config=Xja(b||{});this.webPlayerContextConfig=c;pia();b=this.config.args||{};this.Y=new PE(b,c,c?c.canaryState:this.config.assets.player_canary_state);g.H(this,
this.Y);this.VC();this.Y.isMobile&&!CIa&&(window.addEventListener(tE?"touchstart":"click",sBa,{capture:!0,passive:!0}),CIa=!0);var e=this.Y.Lh;e&&e.load().then(function(){d.N("html5_onesie_prewarm")&&moa(e)});
this.RN=mE(zE(this.Y)&&!0,b.enablesizebutton);this.FE=mE(!1,b.player_wide);this.visibility=new xS;g.H(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.WC(this);g.H(this,this.events);this.tm=new cT;g.H(this,this.tm);this.Pl=new cT;g.H(this,this.Pl);this.On=new yCa;this.Ta=new g.rM(this);g.H(this,this.Ta);this.template=new kT(this);g.H(this,this.template);this.appState=1;this.eg=this.Y.storeUserVolume?Pna():{volume:100,muted:this.Y.mute};this.J=this.Y.u?new qM(this,
1):new kM(this,1);g.H(this,this.J);c={};this.UC=(c.internalvideodatachange=this.JT,c.playbackready=this.LT,c.playbackstarted=this.NT,c.statechange=this.OT,c);this.Wc=DIa(this);this.bF=new g.WC(this);g.H(this,this.bF);this.N("html5_enable_web_assembly")&&this.Wc&&wwa(this.Wc).then(function(f){d.Y.gj=f});
this.Qb=new CM(this.Y,this.Wc);this.sb=EIa(this);c={};this.fN=(c.airplayactivechange=this.onAirPlayActiveChange,c.airplayavailabilitychange=this.onAirPlayAvailabilityChange,c.beginseeking=this.nF,c.endseeking=this.sF,c.internalAbandon=this.wF,c.internalaudioformatchange=this.yw,c.internalvideodatachange=this.onVideoDataChange,c.internalvideoformatchange=this.Gw,c.liveviewshift=this.EU,c.playbackstalledatstart=this.VV,c.progresssync=this.mV,c.onLoadProgress=this.onLoadProgress,c.SEEK_COMPLETE=this.nA,
c.SEEK_TO=this.LV,c.onVideoProgress=this.onVideoProgress,c.onLoadedMetadata=this.onLoadedMetadata,c.onDompaused=this.onDompaused,c.onAutoplayBlocked=this.onAutoplayBlocked,c.playbackready=this.bV,c.statechange=this.WM,c.connectionissue=this.Aw,c.newelementrequired=this.zM,c.heartbeatparams=this.Dw,c.videoelementevent=this.GF,c.drmoutputrestricted=this.onDrmOutputRestricted,c.requestmediasource=this.xV,c.signatureexpired=this.QV,c.nonfatalerror=this.SU,c);this.Un=new g.WC(this);g.H(this,this.Un);c=
10;g.ME(this.Y)&&(c=3);XE(this.Y)&&(c=g.S(this.Y.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Lw=new aT(c,function(f){f!==g.AM(d,f.getPlayerType())&&f.dispose()});
g.H(this,this.Lw);this.JD=this.Ny=-1;this.VA=new g.I(this.template.resize,16,this.template);g.H(this,this.VA);FIa(this);this.od=new QS(this.Ta,this.Y,this.sb);this.Ut=new tS(this);g.H(this,this.Ut);pCa(this.Y.deviceParams.c);this.events.T(this.Ta,g.cz("appapi"),this.HT);this.events.T(this.Ta,g.dz("appapi"),this.IT);this.events.T(this.Ta,g.cz("appad"),this.eM);this.events.T(this.Ta,g.dz("appad"),this.eM);this.events.T(this.Ta,g.cz("appprogressboundary"),this.lV);this.events.T(this.Ta,g.dz("applooprange"),
this.WA);this.events.T(this.Ta,"presentingplayerstatechange",this.Kh);this.events.T(this.Ta,"resize",this.yV);this.template.Ea(yg(a));this.events.T(this.Ta,"offlineslatestatechange",this.UU);this.gH=GIa(this,this.template.element);g.H(this,this.gH);this.Y.Vj&&(a=rBa()?new kBa(this.Y,this.Ta):void 0,this.Di=a);this.Y.vb&&g.KM("ux",g.qQ);SX(this).isValid()&&(g.Cy()&&SX(this).Aa.push("remote"),TX(this),!this.Y.N("html5_delay_initial_loading")&&UX(this)&&(this.Y.dh||this.Y.Hd)&&cS(this.sb));this.Qb.tick("fs");
HIa(this);this.Ic=null;this.Y.vb&&twa(this.Wc);g.IE(this.Wc.J.V())&&VM(this.Wc,"music");g.xE(this.Wc.J.V())&&VM(this.Wc,"embed");this.N("web_player_sentinel_is_uniplayer")||g.ky(new g.iw("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.N("web_player_sentinel_yt_experiments_sync");c=g.O("web_player_sentinel_yt_experiments_sync");a!==c&&g.ky(new g.iw("b/195699950",{yt:a,player:c}));this.vO=IIa(this);if(a=g.S(this.Y.experiments,"html5_block_pip_safari_delay"))this.ND=new g.I(this.qJ,
a,this),g.H(this,this.ND);this.Y.N("embeds_enable_pem_cookie_blocking_killswitch")||(gu=this.Y.La);a=g.S(this.Y.experiments,"html5_performance_impact_profiling_timer_ms");0<a&&(this.ZM=new g.Gh(a),g.H(this,this.ZM),this.events.T(this.ZM,"tick",function(){d.aN&&JIa.vn(d.aN);d.aN=JIa.Ko("apit")}));
this.ma()};
IIa=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(a.ub||a.sb).Rb.ld("player.exception",g.kD({n:c.name,m:c.message}))}
ly.subscribe("handleError",b);Ys.push(b);return function(){ly.unsubscribe("handleError",b);var c=Ys.indexOf(b);-1!==c&&Ys.splice(c,1)}};
EIa=function(a){var b=new RF(a.Y,a.config.args);b=a.Jl(1,b);b.setPlaybackRate(a.Y.i?1:KIa(a,Number(g.Ay("yt-player-playback-rate"))||1));Nx(b,a.UC,a);return b};
LIa=function(a,b){if(a.sb!==b){a.N("html5_skip_setPresenting")&&(b.getVideoData().autonavState=a.sb.getVideoData().autonavState);Ox(a.sb,a.UC,a);var c=a.sb.getPlaybackRate();a.sb.dispose();a.sb=b;a.sb.setPlaybackRate(c);Nx(b,a.UC,a);TX(a)}};
DIa=function(a){var b="",c=tCa(a);0===c.indexOf("//")&&(c=a.Y.protocol+":"+c);var d=c.lastIndexOf("/base.js");-1!==d&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.ky(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new SM(a.Ta,b);MIa(a,b);return b};
MIa=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.u=c};
NIa=function(a,b){var c=a.isVideoInfoVisible();a.Zi||(a.Zi=new rT(a.Ta),g.H(a,a.Zi),g.yM(a.Ta,a.Zi.element,4));g.yK(a.Zi,b);WX(a)&&c!==b&&uM(a.Wc).KG();a=a.ub;b&&a&&a.Ca("sfn","1",!0)};
XX=function(a){a.ra=a.Y.deviceHasDisplay?hS.pop()||new g.cN(g.Ng("VIDEO")):new g.cN(g.Ng("AUDIO"));g.H(a,a.ra);a.ub&&a.ub.setMediaElement(a.ra);try{a.Y.jb?(a.Wt&&a.events.pc(a.Wt),a.Wt=a.events.T(a.ra,"volumechange",a.MU)):(a.ra.Ct(a.eg.muted),a.ra.setVolume(a.eg.volume/100))}catch(d){a.Le("html5.missingapi","UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.Mx(a.Un);OIa(a);var b=a.template;b.Lb=a.ra.Me();b.xz=!1;b.Lb.parentNode||g.Qg(b.Tu,b.Lb,0);b.FA=
new g.bm(0,0,0,0);xCa(b);lT(b);g.L(b.Lb,"video-stream");g.L(b.Lb,g.jT.MAIN_VIDEO);var c=b.app.V();c.Rg&&b.Lb.setAttribute("data-no-fullscreen","true");c.bd&&(b.Lb.setAttribute("webkit-playsinline",""),b.Lb.setAttribute("playsinline",""));c.xl&&b.Lb&&b.T(b.Lb,"click",b.Lb.play,b.Lb);try{a.ra.Jr()}catch(d){a.Le("html5.missingapi","UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
$X=function(a,b){if(a.ub!==b){a.ma("start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId);var c=null;a.ub&&(c=a.ub.getPlayerState(),a.ma(),WM(a.Wc,3),YX(a,"cuerangesremoved",a.ub.Rl()),a.Ut&&!b.isGapless()&&a.ub.isGapless()&&a.ra&&a.ra.stopVideo(),PIa(a));1===b.getPlayerType()&&LIa(a,b);QIa(a,b);a.ub=b;a.ra&&b.setMediaElement(a.ra);Nx(b,a.fN,a);if(b.Jz())ZX(a,"setPresenting",!1,!0);else{a.onVideoDataChange("newdata",b,b.getVideoData());c&&!g.HJ(c,b.getPlayerState())&&
a.WM(new g.vH(b.getPlayerState(),c));if(b.pm.isFinished())a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Ta.Na("onPlaybackQualityChange",c.quality);YX(a,"cuerangesadded",a.ub.Rl());c=b.getPlayerState();g.T(c,2)?RIa(a):g.T(c,8)&&b.playVideo();a.ma()}}};
RIa=function(a){if(!SIa(a)){var b=a.sb.kd();b&&(b=b.ov(),b instanceof Promise&&b.catch(function(){}));
aY(a,LJ(a.zb()))}};
OIa=function(a){var b=a.ra;aD()?a.Un.T(b,"webkitpresentationmodechanged",a.IV):$C()&&(a.Un.T(b,"enterpictureinpicture",function(){a.Dt(!0)}),a.Un.T(b,"leavepictureinpicture",function(){a.Dt(!1)}));
EE&&(a.Un.T(b,"webkitbeginfullscreen",function(){a.Oi(3)}),a.Un.T(b,"webkitendfullscreen",function(){a.Oi(0)}))};
QIa=function(a,b){var c,d=b.getPlayerType();b!==a.sb&&b!==a.Dx[d]&&(null===(c=a.Dx[d])||void 0===c?void 0:c.dispose(),a.Dx[d]=b)};
bY=function(a,b){a.ma("release presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId);b!==a.sb?$X(a,a.sb):a.N("html5_skip_setPresenting")||PIa(a)};
PIa=function(a){a.ma();var b;if(b=a.Yc)b=a.ra,b=!!b&&b===a.Yc.ra;b&&(a.Bg(),XX(a));a.ub&&(a.ub.Bg(),Ox(a.ub,a.fN,a),a.N("html5_skip_setPresenting")&&1!==a.ub.getPlayerType()&&a.ub.dispose());a.ub=null;a.ma()};
g.AM=function(a,b){var c;return b?1===b?a.sb:a.getVideoData().enableServerStitchedDai&&2===b?a.ub:a.N("html5_skip_setPresenting")&&b===(null===(c=a.ub)||void 0===c?void 0:c.getPlayerType())?a.ub:a.Dx[b]||null:a.ub};
cY=function(a,b){return a.Rd(b)?a.sb:b};
dY=function(a,b){var c=a.ub;return c&&b===a.sb&&a.Rd(b)&&a.Rd(c)?c:b};
TIa=function(a){if(!WX(a)){var b=XM(a.Wc);b&&!b.created&&UM(a.Wc)&&(a.ma(),b.create())}};
UIa=function(a){a.ma();var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.Wc;d.JJ();VM(d,"attribution",!1,!0);VM(d,"embed");VM(d,"inline_preview");VM(d,"kids");VM(d,"remote");VM(d,"miniplayer");VM(d,"music");VM(d,"captions",!0);VM(d,"unplugged");VM(d,"ypc",!1,!0);VM(d,"ypc_clickwrap",!1,!0);VM(d,"yto",!1,!0);VM(d,"webgl",!1,!0);d.B&&c?d.J.Od("endscreen"):VM(d,"endscreen");d.B&&c?(d.J.Od("annotations_module"),d.J.Od("creatorendscreen")):(d.tD(),VM(d,"creatorendscreen",!0));d.KJ();swa(d);c&&xG(b)?a.bF.T(a.Ta,
"presentingplayerstatechange",a.dV):rwa(a.Wc);a.Ta.ea("videoready",b)};
SX=function(a){return a.sb.getVideoData()};
UX=function(a){a=SX(a);a.isValid();return xG(a)};
HIa=function(a){a.ma();a.xD();var b=a.config.args;XX(a);var c=SX(a);a.Ta.Na("onVolumeChange",a.eg);if(b&&EM(b)){var d=UE(a.Y);d&&!a.hg&&(b.fetch=0);var e=g.xE(a.Y);e&&!a.hg&&(b.fetch=0);eY(a,b);g.xE(a.Y)&&a.Qb.tick("ep_pr_s");if(d&&!a.hg)fY(a);else if(e&&!a.hg)gY(a);else if(!c.isValid())a.playlist.onReady(function(){hY(a)})}$X(a,a.sb);
g.T(a.sb.getPlayerState(),128)||(b=hna(a.Y.deviceHasDisplay),"fmt.noneavailable"===b?a.Le("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Le(b,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&UX(a)&&(a.Y.dh||a.Y.Hd)?iY(a):g.Ay("yt-player-playback-on-reload")?(g.dw("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.Y.X}),Xna(!1),iY(a)):dF(a.Y)||VIa(a),g.WE(a.Y)||"MWEB"===a.Y.deviceParams.c?(jv(lv(),function(){jY(a)}),jv(lv(),function(){mva()})):
(jY(a),mva()),a.ma())};
jY=function(a){var b=a.getVideoData().botguardData;if(b){var c=a.getVideoData().Ba||"";g.wva(b,a.Y,c?"c1b"in g.et(c):!1)}};
VIa=function(a){a.ma();a.Ta.ea("initializingmode");a.Vk(2);VM(a.Wc,"remote");a.Y.N("player_cued_miniplayer_module_killswitch")||VM(a.Wc,"miniplayer");a.ma()};
iY=function(a){a.ma();if(g.T(a.sb.getPlayerState(),128))return!1;UX(a)&&a.Y.Hd&&(hS.length&&a.lw?(mM(a,{muted:!1,volume:a.eg.volume},!1),kY(a,!1)):hS.length||a.eg.muted||(mM(a,{muted:!0,volume:a.eg.volume},!1),kY(a,!0)));var b=a.sb.getVideoData();b.bM&&mM(a,{muted:!0,volume:a.eg.volume},!1);lY(a,1,b,!1);a.Ta.ea("initializingmode");$X(a,a.sb);a.Vk(3);if(!(b=!a.Y.cj)){if(b=a.Yc)b=a.ra,b=!!b&&b===a.Yc.ra;b=b&&a.XK}b&&(a.Bg(),XX(a),a.sb.setMediaElement(a.ra));GX(a.sb);if(g.T(a.sb.getPlayerState(),128))return!1;
aY(a,3);return a.XK=!0};
WX=function(a){a=uM(a.Wc);return!!a&&a.loaded};
WIa=function(a,b){if(!a.Sb)return!1;var c=.001*a.Sb.startTimeMs-1;a=.001*a.Sb.endTimeMs;return gg(b,c)||gg(b,a)||b>=c&&b<=a};
XIa=function(a){g.T(a.sb.getPlayerState(),64)&&SX(a).isLivePlayback&&5E3>a.Sb.startTimeMs||a.sb.seekTo(.001*a.Sb.startTimeMs,{Td:"application_loopRangeStart"})};
KIa=function(a,b){var c=a.Ta.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};
mY=function(a,b,c){if(a.Rd(c)){c=c.getVideoData();if(a.Ic)c=b;else{a=a.od;for(var d=g.r(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Bc===e.Bc){b+=e.Cc/1E3;break}d=b;a=g.r(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Bc===e.Bc)break;var f=e.Cc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Xc/1E3;else break}c=d}return c}return b};
YIa=function(a,b){var c;return 3===a.getPresentingPlayerType()?LJ(uM(a.Wc).Ad):a.getVideoData().enableServerStitchedDai&&2===b?(null===(c=a.Ic)||void 0===c?0:c.isAdPlaying(a.getCurrentTime()))?a.Ny:-1:2!==b||a.Rd()?a.Ny:a.JD};
ZIa=function(a){if(g.ME(a.Y))return!1;var b=g.wM(a.tb()),c="none"===a.ra.getStyle("display")||0===lg(a.ra.getSize()),d=mT(a.template),e=a.ub.getVideoData(),f=g.GE(a.Y)||g.IE(a.Y);e=e.Pn();a=!d||b||f||e||a.Y.Eb;return c&&!a};
TX=function(a){a.ma();nY(a);a.setLoopVideo(!1);a.setLoopRange(null);a.RC={};a.HA={};a.At=[];var b=a.Qb;if(b.i){var c=b.i;c.i={};c.Uu={}}b.u=!1;a.Ic?(b=a.Ic,a=a.sb,a.getPlayerType(),b.ma(),IS(b,!1),KS(b),WBa(b),b.Da=a):(b=a.od,a=a.sb,1!==a.getPlayerType()&&RS(b,"e.invalidParentVideoPlayerType"),b.ma(),WS(b,!1),YS(b),b.i=a)};
fY=function(a){var b=$Ia();if(b)if(!b.list)a.Qr();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Ta.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.FM(a.playlist).videoId||(b.index=a.playlist.index));HM(a.playlist,b);a.Qw&&oY(a,a.Qw)}else a.Qw=null};
gY=function(a,b){var c=(b?b:SX(a)).MO;a.Qb.tick("ep_pr_r");if(null!=c&&(HM(a.playlist,c),a.tG))a.playlist.onReady(function(){hY(a,b)})};
eY=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.Qr,a),(0,g.ee)(a.playlist),a.playlist=null);b&&(a.hg&&(b.fetch=0),a.playlist=new DM(a.Y,b),a.playlist.subscribe("error",a.Qr,a))};
pY=function(a,b,c,d){b in a.RC||(c=new g.az(c,d,{id:b,priority:2,namespace:"appad"}),a.sb.addCueRange(c),a.RC[b]=c)};
dJa=function(a,b){if(!(b in a))return!1;a=a[b];Array.isArray(a)||(a=[a]);a.forEach(function(c){var d=void 0===d?!1:d;if(!(d=Uy(Vy(c,aJa),c,d,"Active View 3rd Party Integration URL"))){var e=void 0===e?!1:e;d=Uy(Vy(c,bJa),c,e,"Google/YouTube Brand Lift URL")}if(!(e=d)){var f=void 0===f?!1:f;e=Uy(Vy(c,cJa),c,f,"Nielsen OCR URL")}g.wv(c,void 0,e)});
return!0};
aY=function(a,b){a.ma();if(a.ub){var c=a.ub.getPlayerType();if(2===c&&!a.Rd()){a.JD!==b&&(a.JD=b,a.Ta.Na("onAdStateChange",b));return}if(2===c&&a.Rd()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.Ny!==b&&(a.Ny=b,a.Ta.Na("onStateChange",b))};
lY=function(a,b,c,d){if(!f){var e=b+"_"+c.videoId+"_"+c.Bc;var f=a.Lw.get(e);if(!f)return null;a.Lw.remove(e);if(g.T(f.getPlayerState(),128))return f.dispose(),null}if(f===g.AM(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||a.Ru(f);return f};
qY=function(a,b,c){c=g.AM(a,c);b&&c===a.sb&&(c.getVideoData().Af=!0)};
rY=function(a,b,c){c=void 0===c?1:c;a.ma();if(b.isValid()){var d=a.Jl(c,b);a.cancelPlayback(4,c);$X(a,d);2===c&&a.sb.ut(b.clientPlaybackNonce,b.Nb||"",b.breakType||0,b.ue);1===c&&(a.Vk(1),VIa(a));a.ma()}else a.ma(),b.dispose(),(0,g.ee)(g.AM(a,c))};
eJa=function(a,b,c,d,e){b=Hva(b,c,d,e);(c=g.xE(a.Y)&&!a.Y.K)&&!a.hg&&(b.fetch=0);eY(a,b);g.xE(a.Y)&&a.Qb.tick("ep_a_pr_s");if(c&&!a.hg)c=SX(a),fwa(c,b).then(function(f){a.tG=!0;gY(a,f)});
else a.playlist.onReady(function(){hY(a)});
g.xE(a.Y)&&a.Qb.tick("ep_a_pr_r")};
hY=function(a,b){var c=g.xE(a.Y)&&!a.Y.K,d=c&&b?b:g.FM(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.Qk&&(a.Y.dh||a.Y.Hd)||!a.Wp?(b=b.Af,d=a.Sn(d,1),b&&qY(a,d)):rY(a,d,1));g.xE(a.Y)&&a.Qb.tick("ep_p_l");a.tG=!1;a.Ta.Na("onPlaylistUpdate")};
SIa=function(a){if(a.playlist&&g.DE(a.Y)&&a.wv()){var b=a.Y.N("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
oY=function(a,b){var c=g.Ha(b);c?((b=$Ia())&&b.list&&c(),a.Qw=null):a.Qw=b};
$Ia=function(){var a=g.Ha("yt.www.watch.lists.getState");return a?a():null};
sY=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"===f?(b.style=$y.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=$y.AD_MARKER:(b.style=$y.TIME_MARKER,b.color=e),b.visible=!0);a.Iu([new g.az(1E3*c,1E3*d,b)],1);return!0};
fJa=function(a,b,c,d,e){e=void 0===e?!0:e;var f=a.getIngestionTime();if(!f)return e&&a.getVideoData().isLivePlayback&&a.At.push({id:b,TX:c,SX:d}),!1;e=f-a.getCurrentTime();return sY(a,b,c-e,d-e)};
gJa=function(a,b){a.At=g.ap(a.At,function(f){return f.id!==b});
for(var c=a.sb.Rl(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.sb.removeCueRange(e),YX(a,"cuerangesremoved",[e]),!0}return!1};
hJa=function(a){var b=(0,g.P)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
mM=function(a,b,c){a.Y.Z&&(a.eg=b,b.muted||kY(a,!1),c&&a.Y.storeUserVolume&&!a.Y.jb&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.zy("yt-player-volume",c),g.zy("yt-player-volume",c,2592E3))),iJa(a),c=g.lj&&a.ra&&!a.ra.Bf(),a.Y.jb&&!c||a.Ta.Na("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.Y.storeUserVolume}))};
iJa=function(a){var b=a.getVideoData();if(!b.Rg){b=a.Y.jb?1:Qqa(b);var c=a.ra;c.Ct(a.eg.muted);try{c.setVolume(a.eg.volume*b/100)}catch(d){g.ky(new g.iw("b183742307","multiplier: "+b+", volume: "+a.eg.volume))}}};
kY=function(a,b){b!==a.lw&&(a.lw=b,a.Ta.Na("onMutedAutoplayChange",b))};
tY=function(a){var b=Hx(!0);return b&&(b===a.template.element||a.ra&&b===a.ra.Me())?b:null};
kJa=function(a,b){var c=window.screen&&window.screen.orientation;if((a.Y.N("lock_fullscreen2")||a.Y.C)&&c&&c.lock&&(!g.lj||!jJa))if(b){b=0===c.type.indexOf("portrait");var d=a.template.getVideoAspectRatio(),e=b;1>d?e=!0:1<d&&(e=!1);if(!a.Hw||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](g.Ia);a.Hw=!0}}else a.Hw&&(a.Hw=!1,c.unlock())};
YX=function(a,b,c){a.Ta.ea(b,c);var d=g.ME(a.Y)||g.FE(a.Y)||g.GE(a.Y);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ta.Na(e,c.map(function(f){return{getId:function(){return this.id},
end:f.end,id:f.getId(),namespace:"ad"===f.namespace?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}};
uY=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.AM(a,e);if(!h||(2!==h.getPlayerType()||a.Rd(h)||f)&&!g.nG(h.getVideoData()))3===a.getPresentingPlayerType()?uM(a.Wc).Pk("control_seek",b,c):(h===a.sb&&a.Sb&&!WIa(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
ZX=function(a,b,c,d){c&&(a.Bg(),XX(a));c=g.AM(a);c.ld(new g.lD("staleconfig",!1,{reason:b}));var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.isLivePlayback?YF(e)&&g.YE(a.Y)&&(f.live_utc_start=c.getIngestionTime(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.Sa&&(f.vvt=e.Sa);e.X&&(f.vss_credentials_token=e.X,f.vss_credentials_token_type=e.Uh);e.oauthToken&&(f.oauth_token=e.oauthToken);e.Yg&&(f.force_gvi=e.Yg);f.autoplay=1;f.reload_count=e.Db+1;f.reload_reason=
b;e.GC&&(f.unplugged_partner_opt_out=e.GC);e.bd&&(f.ypc_is_premiere_trailer=e.bd);e.playerParams&&(f.player_params=e.playerParams);a.loadVideoByPlayerVars(f,void 0,d);"signature"===b&&a.Ic&&TIa(a)};
lJa=function(a,b){SX(a).autonavState=b;g.zy("yt-player-autonavstate",b);a.Ta.ea("autonavchange",b)};
mJa=function(a){var b=a.getVideoData().Rg,c=a.Y.Eb,d=a.isInline()&&!a.getVideoData().OE,e=a.ra;b||c||d?e.zD():(e.BD(),mM(a,a.eg))};
GIa=function(a,b){return a.Y.N("html5_enable_embedded_player_visibility_signals")&&g.xE(a.Y)?new iT(b):null};
nY=function(a){var b=XM(a.tb());b&&b.created&&(a.ma(),b.destroy())};
nJa=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.r(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=jm(a,d);b.hidden=!!a.hidden};
FIa=function(a){var b=a.Y,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;b.N("embeds_enable_request_storage_access_safari_itp")&&g.nj&&d&&b.i?Bu()||b.La?(g.dw("embedsStorageAccessNotChecked",{isIosWebview:Bu(),isPemPlayer:b.La}),a.jx=!1):c.hasStorageAccess().then(function(e){g.dw("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.jx=!e},function(e){g.dw("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.ky(Error("Embeds ITP Error: "+e));a.jx=!1}):a.jx=!1};
vY=function(a,b){var c=void 0;g.ME(a.Y)&&mt(b)&&lt(b)&&(a=a.getVideoData().mf())&&(c={Authorization:"Bearer "+a});g.wv(b,void 0,void 0,c)};
wY=function(a,b){b.forEach(function(c){vY(a,c)})};
tCa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
oJa=function(a){var b;a=null===(b=nM(a.tb()))||void 0===b?void 0:b.xv();if(!(a instanceof g.yN))return null;a=a.AK();return(null===a||void 0===a?void 0:a.S)||null};
xY=function(a){this.controller=a};
yY=function(a){this.rD=a};
zY=function(a,b,c){this.rD=a;this.eh=b;this.Ci=c};
pJa=function(a,b,c){var d=a.rD();switch(b.type){case "SKIP":Gta(d,a.eh,a.Ci,c)}};
AY=function(){};
BY=function(){};
CY=function(){};
DY=function(a,b){this.ep=a;this.Ua=b};
EY=function(a){this.J=a};
FY=function(a,b){this.Mh=a;this.Ua=b};
rJa=function(a){g.E.call(this);this.i=a;this.SP=qJa(this)};
qJa=function(a){var b=new nK(a.i.Mc);g.H(a,b);a=g.r([new xY(a.i.XQ),new DY(a.i.ep,a.i.Ua),new EY(a.i.J),new FY(a.i.Mh,a.i.Ua),new zY(a.i.lT,a.i.eh,a.i.Ci),new yY(a.i.nR),new BY,new CY,new AY]);for(var c=a.next();!c.done;c=a.next())c=c.value,yta(b,c),zta(b,c);a=g.r(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())lK(b,c.value,function(){});
return b};
GY=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.r(b);for(c=b.next();!c.done;c=b.next())if(!Ly(a.Ia,c.value))return!1;return!0};
sJa=function(a,b){switch(a){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return b(a),8}};
uJa=function(a){var b;return(null===(b=tJa.get(a))||void 0===b?void 0:b.Ht)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
IY=function(a,b){var c={type:b.qb,controlFlowManagerLayer:vJa.get(b.ib)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Vb&&(c.entryTriggerType=b.Vb.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.Vb)c.debugData.slotEntryTriggerData=HY(a);a=b.uc;c.debugData.fulfillmentTriggerData=[];a=g.r(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(HY(d.value));b=b.tc;c.debugData.expirationTriggerData=
[];b=g.r(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(HY(a.value))}return c};
wJa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:vJa.get(b.ib)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
HY=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.Hg&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.Hg);null!=a.Ge&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.Ge);return c};
xJa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Mm(d||[],function(e){return IY(a,e)}),b.debugData=Object.assign(Object.assign({},c&&0<c.length?{associatedSlotId:c}:{}),0<d.length?{slots:d}:{}));
return b};
KY=function(a,b){return function(c){return yJa(JY(a),b.slotId,b.qb,b.slotPhysicalPosition,b.ib,b.Vb,b.uc,b.tc,c.layoutId,c.layoutType,c.ib)}};
yJa=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:IY(a,{slotId:b,qb:c,slotPhysicalPosition:d,ib:e,Vb:f,uc:h,tc:l,Ia:new WH([])}),layoutData:wJa(a,{layoutId:m,layoutType:n,ib:p,Bd:[],Qc:[],Pc:[],Rc:[],Vc:[],lc:new Map,Ia:new WH([]),Dc:{}})}}};
LY=function(a){this.Oa=a;this.i=.1>Math.random()};
JY=function(a){var b;(b=a.i)||(a=a.Oa.get(),b=a.J.V().N("html5_force_debug_data_for_client_tmp_logs")||a.J.V().N("html5_force_debug_data_for_client_tmp_logs_live_infra"));return b};
MY=function(a,b,c,d){g.E.call(this);this.Id=b;this.u=c;this.Oa=d;this.i=a(this,this,this,this,this);g.H(this,this.i);a=g.r(b);for(b=a.next();!b.done;b=a.next())g.H(this,b.value)};
NY=function(a,b){a.Id.add(b);a.Oa.get().J.V().N("html5_not_register_disposables_when_core_listens")||g.H(a,b)};
kJ=function(a,b){nJ(a.u,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.r(a.Id);for(var c=a.next();!c.done;c=a.next())c.value.kh(b)};
zJa=function(a,b){a=g.r(a.Id);for(var c=a.next();!c.done;c=a.next())c.value.Ii(b)};
lJ=function(a,b){nJ(a.u,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.r(a.Id);for(var c=a.next();!c.done;c=a.next())c.value.cf(b)};
ZH=function(a,b){nJ(a.u,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.r(a.Id);for(var c=a.next();!c.done;c=a.next())c.value.df(b)};
PY=function(a,b,c){R(c,b,void 0,void 0,c.fp);OY(a,b,!0)};
BJa=function(a,b,c){if(QY(a.i,b))if(RY(a.i,b).C=c?"filled":"not_filled",null===c){SY(a.u,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.r(a.Id);for(var d=c.next();!d.done;d=c.next())d.value.Fj(b);OY(a,b,!1)}else{SY(a.u,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.r(a.Id);for(d=e.next();!d.done;d=e.next())d.value.Gj(b);if(QY(a.i,b))if(RY(a.i,b).D)OY(a,b,!1);else{SY(a.u,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.i;if(!RY(f,b))throw new TY("Unknown slotState for onLayout");
if(!f.Nd.gm.get(b.qb))throw new TY("No LayoutRenderingAdapterFactory registered for slot of type: "+b.qb);if(g.Rb(c.Bd)&&g.Rb(c.Qc)&&g.Rb(c.Pc)&&g.Rb(c.Rc)&&g.Rb(c.Vc))throw new TY("Layout has no exit triggers.");UY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Bd);UY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Qc);UY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Pc);UY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Rc);UY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Vc)}catch(n){a.wf(b,
c,n);OY(a,b,!0);return}RY(a.i,b).I=!0;try{var h=a.i,l=RY(h,b),m=h.Nd.gm.get(b.qb).get().Pe(h.C,h.u,b,c);m.init();l.layout=c;if(l.B)throw new TY("Already had LayoutRenderingAdapter registered for slot");l.B=m;VY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Bd);VY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Qc);VY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Pc);VY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Rc);VY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Vc)}catch(n){WY(a,
b,!0);OY(a,b,!0);a.wf(b,c,n);return}SY(a.u,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.r(a.Id);for(d=e.next();!d.done;d=e.next())d.value.Gi(b,c);WY(a,b,!1);AJa(a,b)}else XY(a.Oa.get())&&R("slot is unscheduled after been fulfilled.",b,c)}};
YY=function(a,b,c){SY(a.u,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.r(a.Id);for(var d=a.next();!d.done;d=a.next())d.value.Gi(b,c)};
Wra=function(a,b,c){a=g.r(a.Id);for(var d=a.next();!d.done;d=a.next())d.value.Hi(b,c)};
ZY=function(a,b,c){SY(a.u,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.r(a.Id);for(var d=a.next();!d.done;d=a.next())d.value.Kc(b,c)};
mJ=function(a,b,c,d){SY(a.u,uJa(d),b,c);a=g.r(a.Id);for(var e=a.next();!e.done;e=a.next())e.value.Sc(b,c,d)};
WY=function(a,b,c){QY(a.i,b)&&(RY(a.i,b).I=!1,c?a.Oa.get().J.V().N("html5_enable_deferred_triggers_on_error")?$Y(a,CJa(a.i,b)):XY(a.Oa.get())&&R("Ignore deferred triggers due to error",b):$Y(a,CJa(a.i,b)))};
$Y=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):sJa(f.category,l)-sJa(h.category,l)});
var c=new Map;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,QY(a.i,d.slot))if(RY(a.i,d.slot).I)RY(a.i,d.slot).S.push(d);else{DJa(a.u,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.r(EJa);for(d=b.next();!d.done;d=b.next())e=g.r(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&FJa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&GJa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&HJa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
IJa(a,c)};
FJa=function(a,b,c){b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&aZ(a.i,d.slot)&&JJa(a,d.slot,d.layout,c)};
GJa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())OY(a,c.value.slot,!1)};
HJa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(RY(a.i,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(nJ(a.u,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.i.uv(c.slot))}};
IJa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;nJ(a.u,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.r(a.Id),e=d.next();!e.done;e=d.next())e.value.Ii(c.slot);try{var f=a.i,h=c.slot,l=RY(f,h);if(!l)throw new bZ("Got enter request for unknown slot");if(!l.u)throw new bZ("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.i)throw new bZ("Tried to enter a slot from stage: "+l.i);if(cZ(l))throw new bZ("Got enter request for already active slot");
for(var m=g.r(dZ(f,h.qb+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&cZ(p))throw new bZ("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.i});}}catch(q){R(q,c.slot,eZ(a.i,c.slot),void 0,q.fp);OY(a,c.slot,!0);continue}c=RY(a.i,c.slot);"scheduled"!==c.i&&fZ(c.slot,c.i,"enterSlot");c.i="enter_requested";c.u.Ly()}};
AJa=function(a,b){var c;QY(a.i,b)&&cZ(RY(a.i,b))&&eZ(a.i,b)&&!aZ(a.i,b)&&(SY(a.u,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=eZ(a.i,b))&&void 0!==c?c:void 0),a=RY(a.i,b),"entered"!==a.i&&fZ(a.slot,a.i,"enterLayoutForSlot"),a.i="rendering",a.B.startRendering(a.layout))};
JJa=function(a,b,c,d){if(QY(a.i,b)){var e=a.u,f;var h=(null===(f=tJa.get(d))||void 0===f?void 0:f.xt)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";SY(e,h,b,c);a=RY(a.i,b);"rendering"!==a.i&&fZ(a.slot,a.i,"exitLayout");a.i="rendering_stop_requested";a.B.gf(c,d)}};
OY=function(a,b,c){if(QY(a.i,b)){a:switch(RY(a.i,b).i){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(RY(a.i,b).i){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(RY(a.i,b).D=!0,!c))return;if(cZ(RY(a.i,b)))RY(a.i,b).D=!0,KJa(a,b,c);else{a:switch(RY(a.i,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)RY(a.i,b).D=!0,QY(a.i,b)&&(nJ(a.u,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=RY(a.i,b),b.C="fill_cancel_requested",b.K.eD());else{c=
eZ(a.i,b);nJ(a.u,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=RY(a.i,b);var e=b.Vb,f=d.va.get(e.triggerId);f&&(f.Vi(e),d.va.delete(e.triggerId));e=g.r(b.uc);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d.Z.get(f.triggerId);h&&(h.Vi(f),d.Z.delete(f.triggerId))}e=g.r(b.tc);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.X.get(f.triggerId))h.Vi(f),d.X.delete(f.triggerId);null!=d.layout&&(e=d.layout,gZ(d,e.Bd),gZ(d,e.Qc),gZ(d,e.Pc),gZ(d,e.Rc),gZ(d,e.Vc));d.K=void 0;null!=d.u&&(d.u.release(),
d.u=void 0);null!=d.B&&(d.B.release(),d.B=void 0);d=a.i;RY(d,b)&&(d=dZ(d,b.qb+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);nJ(a.u,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.r(a.Id);for(d=a.next();!d.done;d=a.next())d=d.value,d.Ji(b),c&&d.Hi(b,c)}}}};
KJa=function(a,b,c){if(QY(a.i,b)&&cZ(RY(a.i,b))){var d=eZ(a.i,b);if(d&&aZ(a.i,b))JJa(a,b,d,c?"error":"abandoned");else{nJ(a.u,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=RY(a.i,b);if(!e)throw new bZ("Cannot exit slot it is unregistered");"enter_requested"!==e.i&&"entered"!==e.i&&"rendering"!==e.i&&fZ(e.slot,e.i,"exitSlot");e.i="exit_requested";if(void 0===e.u)throw e.i="scheduled",new bZ("Cannot exit slot because adapter is not defined");e.u.My()}catch(f){R(f,b,void 0,void 0,f.fp)}}}};
LJa=function(a){this.slot=a;this.va=new Map;this.Z=new Map;this.X=new Map;this.oa=new Map;this.B=this.layout=this.u=this.K=void 0;this.I=this.D=!1;this.S=[];this.i="not_scheduled";this.C="not_filled"};
cZ=function(a){return"enter_requested"===a.i||a.isActive()};
TY=function(a,b,c){c=void 0===c?!1:c;Va.call(this,a);this.fp=c;this.args=[];b&&this.args.push(b)};
bZ=function(a,b,c){c=void 0===c?!1:c;Va.call(this,a);this.fp=c;this.args=[];b&&this.args.push(b)};
hZ=function(a,b,c,d,e,f){g.E.call(this);this.Nd=a;this.B=b;this.D=c;this.C=d;this.u=e;this.Oa=f;this.i=new Map};
dZ=function(a,b){return(a=a.i.get(b))?a:new Map};
RY=function(a,b){return dZ(a,b.qb+"_"+b.slotPhysicalPosition).get(b.slotId)};
MJa=function(a){var b=[];a.i.forEach(function(c){c=g.r(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
QY=function(a,b){return null!=RY(a,b)};
CJa=function(a,b){a=RY(a,b);b=[].concat(g.la(a.S));Sb(a.S);return b};
aZ=function(a,b){a=RY(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};
eZ=function(a,b){if(!iZ(a.Oa.get()))return b=RY(a,b),null!=b.layout?b.layout:null;(a=RY(a,b))?null!=a.layout&&!a.layout&&R("Unexpected empty layout",b):R("Unexpected undefined slotState",b);return(null===a||void 0===a?void 0:a.layout)||null};
jZ=function(a,b,c){if(g.Rb(c))throw new bZ("No "+NJa.get(b)+" triggers found for slot.");c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Nd.Sh.get(d.triggerType))throw new bZ("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
UY=function(a,b,c){c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Nd.Sh.get(d.triggerType))throw new TY("No trigger adapter registered for "+NJa.get(b)+" trigger of type: "+d.triggerType);};
VY=function(a,b,c,d){d=g.r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Nd.Sh.get(e.triggerType);f.Mi(c,e,b.slot,b.layout?b.layout:null);b.oa.set(e.triggerId,f)}};
gZ=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.oa.get(c.triggerId);d&&(d.Vi(c),a.oa.delete(c.triggerId))}};
fZ=function(a,b,c){R("Slot stage was "+b+" when calling method "+c,a)};
OJa=function(a){return kZ(a.nq).concat(kZ(a.Sh)).concat(kZ(a.Ql)).concat(kZ(a.Dm)).concat(kZ(a.gm))};
kZ=function(a){var b=[];a=g.r(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.wi&&b.push(c);return b};
lZ=function(a){g.E.call(this);this.i=a;this.u=PJa(this)};
PJa=function(a){var b=new MY(function(c,d,e,f){return new hZ(a.i.Nd,c,d,e,f,a.i.Oa)},new Set(OJa(a.i.Nd).concat(a.i.listeners)),a.i.nh,a.i.Oa);
g.H(a,b);return b};
mZ=function(a){g.E.call(this);var b=this;this.u=a;this.i=null;g.he(this,function(){(0,g.ee)(b.i);b.i=null})};
Y=function(a){return new mZ(a)};
QJa=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)};
RJa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
UJa=function(a,b,c,d,e,f,h){b=SJa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof bZ?b:TJa(a,d,e,b,c);return a instanceof bZ?a:[a]};
VJa=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)};
ZJa=function(a,b,c,d,e){b=g.r(b);for(var f=b.next();!f.done;f=b.next())f=f.value,nZ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return WJa(n)});
a=[];b={};f=g.r(f);for(var h=f.next();!h.done;b={Rq:b.Rq},h=f.next()){b.Rq=h.value;h={};for(var l=g.r(b.Rq.OC),m=l.next();!m.done;h={Jm:h.Jm},m=l.next())h.Jm=m.value,m=function(n,p){return function(q){return n.Jm.LJ(q,p.Rq.instreamVideoAdRenderer.elementId,n.Jm.ZI)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.Jm.Kr?a.push(XJa(c,d,h.Jm.aJ,e,b.Rq.instreamVideoAdRenderer.elementId,h.Jm.adSlotLoggingData,m)):a.push(YJa(c,d,e,b.Rq.instreamVideoAdRenderer.elementId,h.Jm.adSlotLoggingData,m))}return a};
nZ=function(a,b,c){if(b=$Ja(b)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=aKa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.Dz=c)}else R("InstreamVideoAdRenderer without externalVideoId")}};
$Ja=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&a.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer;if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.r(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,c.instreamVideoAdRenderer&&b.push(c.instreamVideoAdRenderer);return b}return null};
WJa=function(a){if(void 0===a.instreamVideoAdRenderer)return R("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.r(a.OC),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.LJ)return!1;if(void 0===c.ZI)return R("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.Dz||void 0===c.Kr||a.Dz!==c.Kr&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.Kr)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return R("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.Dz,"matching APSR kind":c.Kr}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.Kr&&void 0===c.aJ)return R("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
aKa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,Dz:void 0,adVideoId:b,OC:[]});return a.get(b)};
oZ=function(a,b,c,d,e,f,h){d?aKa(a,d).OC.push({aJ:b,Kr:c,ZI:e,adSlotLoggingData:f,LJ:h}):R("Companion AdPlacementSupportedRenderer without adVideoId")};
pZ=function(a){var b,c=0;a=g.r(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};
qZ=function(a){var b,c,d,e,f,h,l,m,n,p,q,t,u,v,y,z,C,G,F,J,U,K,V,xa,La,rb=(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),pb=[].concat(g.la((null===(f=a.playbackCommands)||void 0===f?void 0:f.instreamAdCompleteCommands)||[]),g.la((null===rb||void 0===
rb?void 0:rb.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===(q=a.playbackCommands)||void 0===
q?void 0:q.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===(v=a.playbackCommands)||void 0===v?void 0:v.progressCommands,Aca:null===(y=a.playbackCommands)||void 0===y?void 0:y.clickthroughCommands,fullscreenCommands:null===(z=a.playbackCommands)||void 0===z?void 0:z.fullscreenCommands,activeViewViewableCommands:null===(C=a.playbackCommands)||void 0===
C?void 0:C.activeViewViewableCommands,activeViewMeasurableCommands:null===(G=a.playbackCommands)||void 0===G?void 0:G.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null===(F=a.playbackCommands)||void 0===F?void 0:F.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:null===(U=null===(J=a.playbackCommands)||void 0===J?void 0:J.activeViewTracking)||void 0===U?void 0:U.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null===
(V=null===(K=a.playbackCommands)||void 0===K?void 0:K.activeViewTracking)||void 0===V?void 0:V.activeViewAudioMeasurableCommands,endFullscreenCommands:null===(xa=a.playbackCommands)||void 0===xa?void 0:xa.endFullscreenCommands,abandonCommands:null===(La=a.playbackCommands)||void 0===La?void 0:La.abandonCommands,completeCommands:pb}};
cKa=function(a,b,c,d,e,f,h){return function(l,m){return bKa(a,m.slotId,l,f,function(n,p){n=h(n);return rZ(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new wI(c),d],c.adLayoutLoggingData)})}};
fKa=function(a,b,c,d,e,f,h){if(!dKa(a))return new bZ("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[eKa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=Ry(e.u.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",ib:"core"},q=new sZ(e.i,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",lc:new Map,Bd:[q],Qc:[],
Pc:[],Rc:[],Vc:[],ib:"core",Ia:new WH([new xI(l)]),Dc:n(p)}})]};
dKa=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};
iKa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!Mra(a))return function(){return new bZ("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=pZ(h);return 0>=l?function(){return new bZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=gKa(m,c,d,function(q){var t=n(q),u=q.slotId;
q=qZ(h);u=Ry(e.u.get(),"LAYOUT_TYPE_SURVEY",u);var v={layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",ib:"core"},y=new sZ(e.i,d),z=new tZ(e.i,u),C=new uZ(e.i,u),G=new hKa(e.i);return{layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",lc:new Map,Bd:[y,G],Qc:[z],Pc:[],Rc:[C],Vc:[],ib:"core",Ia:new WH([new vI(h),new mI(b),new VI(l/1E3),new YI(q)]),Dc:t(v),adLayoutLoggingData:h.adLayoutLoggingData}});
m=fKa(a,c,p.slotId,d,e,m,n);return m instanceof bZ?m:[p].concat(g.la(m))}};
qKa=function(a,b,c,d,e){var f=[];try{var h=[];if(c.renderer.linearAdSequenceRenderer)var l=function(u){u=jKa(u.slotId,c,b,e(u),d);h=u.sX;return u.wR};
else if(c.renderer.instreamVideoAdRenderer)l=function(u){var v=u.slotId;u=e(u);var y,z=c.config.adPlacementConfig,C=kKa(z),G=C.aK;C=C.dK;var F=c.renderer.instreamVideoAdRenderer;if(null===(y=null===F||void 0===F?void 0:F.playerOverlay)||void 0===y?0:y.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var J=lKa(F);y=Math.min(G+1E3*J.videoLengthSeconds,C);C=new QG(0,[J.videoLengthSeconds],y);var U=J.videoLengthSeconds,K=J.playerVars,V=J.instreamAdPlayerOverlayRenderer,
xa=J.adVideoId,La=mKa(c);J=J.lc;var rb=null===F||void 0===F?void 0:F.adLayoutLoggingData;F=null===F||void 0===F?void 0:F.sodarExtensionData;v=Ry(b.u.get(),"LAYOUT_TYPE_MEDIA",v);var pb={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",ib:"core"};return{layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",lc:J,Bd:[new vZ(b.i)],Qc:[],Pc:[],Rc:[],Vc:[],ib:"core",Ia:new WH([new qI(d),new HI(U),new II(K),new KI(G),new LI(y),V&&new rI(V),new mI(z),new oI(xa),new nI(C),new QI(La),F&&new JI(F),new DI({current:null}),new NI({})].filter(nKa)),
Dc:u(pb),adLayoutLoggingData:rb}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var m=oKa(a,d,l);f.push(m);for(var n=g.r(h),p=n.next();!p.done;p=n.next()){var q=p.value,t=q(a,e);if(t instanceof bZ)return t;f.push.apply(f,g.la(t))}}catch(u){return new bZ(u,{errorMessage:u.message,AdPlacementRenderer:c,numberOfSurveyRenderers:pKa(c)})}return f};
pKa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!==a&&void 0!==a&&a.length?a.filter(function(b){var c,d;return null!=(null===(d=null===(c=b.instreamVideoAdRenderer)||void 0===c?void 0:c.playerOverlay)||void 0===d?void 0:d.instreamSurveyAdRenderer)}).length:0};
jKa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,h=kKa(f),l=h.aK,m=h.dK;h=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null===h||void 0===h||!h.length)throw new TypeError("Expected linear ads");var n=[],p={YN:l,ZN:0,pX:n};h=h.map(function(t){return rKa(a,t,p,c,d,f,e,m)}).map(function(t,u){u=new QG(u,n,m);
return t(u)});
var q=h.map(function(t){return t.xR});
return{wR:sKa(c,a,l,q,f,mKa(b),d,m),sX:h.map(function(t){return t.rX})}};
rKa=function(a,b,c,d,e,f,h,l){var m,n,p=lKa(b.instreamVideoAdRenderer),q=c.YN,t=c.ZN,u=Math.min(q+1E3*p.videoLengthSeconds,l);c.YN=u;c.ZN++;c.pX.push(p.videoLengthSeconds);var v=null===(n=null===(m=b.instreamVideoAdRenderer)||void 0===m?void 0:m.playerOverlay)||void 0===n?void 0:n.instreamSurveyAdRenderer;if("nPpU29QrbiU"===p.adVideoId&&null==v)throw new TypeError("Survey slate media has no survey overlay");return function(y){var z,C,G=p.playerVars;2<=y.u&&(G.slot_pos=y.i);G.autoplay="1";G=p.videoLengthSeconds;
var F=p.playerVars,J=p.lc,U=p.instreamAdPlayerOverlayRenderer,K=p.adVideoId,V=null===(z=b.instreamVideoAdRenderer)||void 0===z?void 0:z.adLayoutLoggingData,xa=null===(C=b.instreamVideoAdRenderer)||void 0===C?void 0:C.sodarExtensionData,La=Ry(d.u.get(),"LAYOUT_TYPE_MEDIA",a),rb={layoutId:La,layoutType:"LAYOUT_TYPE_MEDIA",ib:"adapter"};y={layoutId:La,layoutType:"LAYOUT_TYPE_MEDIA",lc:J,Bd:[],Qc:[],Pc:[],Rc:[],Vc:[],ib:"adapter",Ia:new WH([new qI(h),new HI(G),new II(F),new KI(q),new LI(u),new MI(t),
new DI({current:null}),U&&new rI(U),new mI(f),new oI(K),new nI(y),xa&&new JI(xa),v&&new aJ(v),new NI({})].filter(nKa)),Dc:e(rb),adLayoutLoggingData:V};G=iKa(b.instreamVideoAdRenderer,f,h,y.layoutId,d);return{xR:y,rX:G}}};
lKa=function(a){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var b=g.et(a.playerVars),c=Number(b.length_seconds);if(isNaN(c))throw new TypeError("Expected valid length seconds in player vars");var d=Number(a.trimmedMaxNonSkippableAdDurationMs);c=isNaN(d)?c:Math.min(c,d/1E3);d=a.playerOverlay||{};d=void 0===d.instreamAdPlayerOverlayRenderer?null:d.instreamAdPlayerOverlayRenderer;var e=b.video_id;
e||(e=(e=a.externalVideoId)?e:void 0);if(!e)throw new TypeError("Expected valid video id in IVAR");return{playerVars:b,videoLengthSeconds:c,instreamAdPlayerOverlayRenderer:d,adVideoId:e,lc:a.pings?RG(a.pings):new Map}};
mKa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
kKa=function(a){var b=a.adTimeOffset||{};a=b.offsetEndMilliseconds;b=Number(b.offsetStartMilliseconds);if(isNaN(b))throw new TypeError("Expected valid start offset");a=Number(a);if(isNaN(a))throw new TypeError("Expected valid end offset");return{aK:b,dK:a}};
uKa=function(a,b,c,d,e,f,h,l){a=tKa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=Ry(b.u.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",ib:"core"},q=new Map,t=e.impressionUrls;t&&q.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",lc:q,Bd:[new wZ(b.i,n)],Qc:[],Pc:[],Rc:[],Vc:[],ib:"core",Ia:new WH([new PI(e),new mI(c)]),Dc:m(p)}});
return a instanceof bZ?a:[a]};
wKa=function(a,b,c,d,e,f,h,l){a=vKa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=Ry(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=xZ(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,yZ(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=Ry(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=xZ(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,yZ(b,n,p))):q.imageOverlayAdContentRenderer?(q=Ry(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=yZ(b,n,p),n.push(new zZ(b.i,q)),n=xZ(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new TY("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new TY("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof bZ?a:[a]};
zKa=function(a,b,c,d,e,f,h){var l=Number(d.durationMilliseconds);return isNaN(l)?new bZ("Expected valid duration for AdActionInterstitialRenderer."):function(m){return xKa(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 yKa(a,n,e,function(p,q){var t=p.slotId;p=h(p);t=Ry(b.u.get(),"LAYOUT_TYPE_ENDCAP",t);return rZ(b,
t,q,c,p,"LAYOUT_TYPE_ENDCAP",[new tI(d)],d.adLayoutLoggingData)})},d.adLayoutLoggingData,f)}};
AKa=function(a,b,c,d){if(!c.playerVars)return new bZ("No playerVars available in AdIntroRenderer.");var e=g.et(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=Ry(a.u.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",ib:"adapter"};return{Iq:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",lc:new Map,Bd:[],Qc:[],Pc:[],Rc:[],Vc:[],ib:"adapter",Ia:new WH([new OI({}),new mI(b),new DI({current:null}),new II(e)]),Dc:f(l)},Sr:[new AZ(a.i,h)],qp:[],Ey:[],Dy:[]}}};
CKa=function(a,b,c,d,e,f,h,l){var m=pZ(e);if(!bJ(e))return new bZ("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new bZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=cKa(a,b,e,f,c,d,h);return n instanceof bZ?n:function(p){return BKa(b,p.slotId,c,m,qZ(e),h(p),n,l)}};
DKa=function(a,b,c,d,e,f,h){function l(p){return yKa(a,p,d,m)}
function m(p,q){var t=p.slotId;p=h(p);t=Ry(b.u.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return rZ(b,t,q,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new uI(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 bZ("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var n=1E3*e.timeoutSeconds;return function(p){var q={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},t=
h(p);p=BZ(b,p.slotId,c,n,q,new Map,t,l);q=new zI(p.JF);return{Iq:{layoutId:p.layoutId,layoutType:p.layoutType,lc:p.lc,Bd:[],Qc:[],Pc:[],Rc:[],Vc:[],ib:p.ib,Ia:new WH([].concat(g.la(p.Su),[q])),Dc:p.Dc,adLayoutLoggingData:p.adLayoutLoggingData},Sr:[],qp:p.Pc,Ey:p.Rc,Dy:p.Vc,lh:p.lh}}};
HKa=function(a,b,c,d,e,f,h,l,m,n,p){function q(u){var v=new QG(0,[t.ey]),y=EKa(t.playerVars,t.uN,l,p,v);u=m(u);var z=n.get(t.uB.externalVideoId);v=FKa(b,"core",t.uB,c,y,t.ey,f,v,u,z);return{layout:{layoutId:v.layoutId,layoutType:v.layoutType,lc:v.lc,Bd:v.Bd,Qc:v.Qc,Pc:v.Pc,Rc:v.Rc,Vc:v.Vc,ib:v.ib,Ia:v.Ia,Dc:v.Dc,adLayoutLoggingData:v.adLayoutLoggingData},nm:[]}}
var t=CZ(e);if(t instanceof TY)return new bZ(t);if(q instanceof bZ)return q;a=GKa(a,c,f,h,d,l.tf,q);return a instanceof bZ?a:a.nm.concat(a.NF)};
CZ=function(a){if(!a.playerVars)return new TY("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 TY("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=g.et(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new TY("Expected valid length seconds in player vars"):
{uB:a,playerVars:b,uN:a.playerVars,ey:c}};
EKa=function(a,b,c,d,e){a.iv_load_policy=d;b=g.et(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){R(f)}c.Zf&&(a.ctrl=c.Zf);c.Ef&&(a.ytr=c.Ef);c.Il&&(a.ytrcc=c.Il);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Uh&&(a.vss_credentials_token_type=c.Uh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.i);a.autoplay="1";return a};
KKa=function(a,b,c,d,e,f,h,l,m,n,p){b=IKa(a,b,c,e,f,l,m,n,p);a:{e=g.r(e);for(m=e.next();!m.done;m=e.next())if(m.value.instreamSurveyAdRenderer){e=!0;break a}e=!1}e?(c=JKa(a,c,f,h),c instanceof bZ?d=c:(f=Qy(a.u.get(),"SLOT_TYPE_IN_PLAYER"),h=Ry(a.u.get(),"LAYOUT_TYPE_SURVEY",f),c.tc.push(new DZ(a.i,h)),a=b({slotId:c.slotId,qb:c.qb,slotPhysicalPosition:c.slotPhysicalPosition,ib:c.ib,Vb:c.Vb,uc:c.uc,tc:c.tc},{slotId:f,layoutId:h}),d=a instanceof bZ?a:{NF:{slotId:c.slotId,qb:c.qb,slotPhysicalPosition:c.slotPhysicalPosition,
Vb:c.Vb,uc:c.uc,tc:c.tc,ib:c.ib,Ia:new WH([new RI(a.layout)]),adSlotLoggingData:d},nm:a.nm})):d=GKa(a,c,f,h,d,l.tf,b);return d instanceof bZ?d:d.nm.concat(d.NF)};
IKa=function(a,b,c,d,e,f,h,l,m){return function(n,p){a:{b:{var q=[];for(var t=g.r(d),u=t.next();!u.done;u=t.next())if(u=u.value,u.instreamVideoAdRenderer){u=CZ(u.instreamVideoAdRenderer);if(u instanceof TY){q=new bZ(u);break b}q.push(u.ey)}}if(q instanceof bZ)p=q;else{t=0;u=[];for(var v=[],y=[],z=[],C=[],G=[],F=new EI({current:null}),J=[],U=g.r(d),K=U.next();!K.done;K=U.next())if(K=K.value,K.adIntroRenderer){K=AKa(b,c,K.adIntroRenderer,h);if(K instanceof bZ){p=K;break a}K=K(n);u.push(K.Iq);v=[].concat(g.la(K.Sr),
g.la(v));y=[].concat(g.la(K.qp),g.la(y));K.lh&&(J=[K.lh].concat(g.la(J)))}else if(K.instreamVideoAdRenderer){var V=CZ(K.instreamVideoAdRenderer);if(V instanceof TY){p=new bZ(V);break a}var xa=new QG(t,q);K=b;var La=V.uB,rb=EKa(V.playerVars,V.uN,f,m,xa),pb=h(n),Pb=l.get(V.uB.externalVideoId);V=FKa(K,"adapter",La,c,rb,V.ey,e,xa,pb,Pb);xa=V.Qc;La.isCritical&&(xa=[new AZ(K.i,V.layoutId)].concat(g.la(xa)));K={layoutId:V.layoutId,layoutType:V.layoutType,lc:V.lc,Bd:[],Qc:[],Pc:[],Rc:[],Vc:[],ib:V.ib,Ia:V.Ia,
Dc:V.Dc,adLayoutLoggingData:V.adLayoutLoggingData};La=xa;V=V.Pc;t++;u.push(K);v=[].concat(g.la(La),g.la(v));y=[].concat(g.la(V),g.la(y))}else if(K.adActionInterstitialRenderer){K=zKa(a,b,c,K.adActionInterstitialRenderer,e,t,h);if(K instanceof bZ){p=K;break a}K=K(n);u.push(K.Iq);v=[].concat(g.la(K.Sr),g.la(v));y=[].concat(g.la(K.qp),g.la(y));K.lh&&(J=[K.lh].concat(g.la(J)))}else if(K.instreamSurveyAdRenderer){if(void 0===p){p=new bZ("Composite Survey must already have a Survey Bundle with required metadata.",
{instreamSurveyAdRenderer:K.instreamSurveyAdRenderer});break a}K=CKa(a,b,c,e,K.instreamSurveyAdRenderer,F,h,p);if(K instanceof bZ){p=K;break a}K=K(n);u.push(K.Iq);K.lh&&J.push(K.lh);v=[].concat(g.la(K.Sr),g.la(v));y=[].concat(g.la(K.qp),g.la(y));z=[].concat(g.la(K.Ey),g.la(z));C=[].concat(g.la(K.Dy),g.la(C));G=[F].concat(g.la(G))}else if(K.surveyTextInterstitialRenderer){K=DKa(a,b,c,e,K.surveyTextInterstitialRenderer,F,h);if(K instanceof bZ){p=K;break a}K=K(n);u.push(K.Iq);K.lh&&J.push(K.lh);y=[].concat(g.la(K.qp),
g.la(y))}else{p=new bZ("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={qX:u,Qc:v,Rc:z,Vc:C,Pc:y,Su:G,nm:J}}}p instanceof bZ?n=p:(z=n.slotId,q=p.qX,t=p.Qc,u=p.Pc,v=p.Rc,y=p.Su,n=h(n),z=Ry(b.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z),C={layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",ib:"core"},n={layout:{layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",lc:new Map,Bd:[new wZ(b.i,z)],Qc:t,Pc:u,Rc:v,Vc:[],ib:"core",Ia:new WH([new FI(q)].concat(g.la(y))),
Dc:n(C)},nm:p.nm});return n}};
MKa=function(a,b,c,d,e,f,h){if(!bJ(c))return new bZ("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=pZ(c);if(0>=l)return new bZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new EI({current:null}),n=cKa(a,b,c,m,d,f,h);return LKa(a,d,f,l,e,function(p,q){var t=p.slotId,u=qZ(c);p=h(p);t=Ry(b.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var v={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",ib:"core"},y=n(t,q);
W(y.Ia,"metadata_type_fulfilled_layout")||R("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new mI(d),new WI(l),new YI(u),new ZI(!0),m,new AI("LAYOUT_TYPE_SURVEY")];return{ZS:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",lc:new Map,Bd:[new wZ(b.i,t)],Qc:[new tZ(b.i,q.layoutId)],Pc:[],Rc:[new uZ(b.i,q.layoutId)],Vc:[],ib:"core",Ia:new WH(u),Dc:p(v)},DS:y}})};
EZ=function(a,b,c,d,e,f,h){this.u=a;this.i=b;this.Oa=c;this.B=d;this.D=e;this.C=f;this.loadPolicy=void 0===h?1:h};
Jka=function(a,b,c,d,e,f,h){var l,m,n,p,q,t,u,v,y,z,C,G=[];if(0===b.length)return G;b=b.filter(QJa);for(var F=new Map,J=new Map,U=g.r(b),K=U.next();!K.done;K=U.next())(K=K.value.renderer.remoteSlotsRenderer)&&K.hostElementId&&J.set(K.hostElementId,K);U=g.r(b);for(K=U.next();!K.done;K=U.next()){K=K.value;var V=NKa(a,F,K,d,e,f,h,J);V instanceof bZ?R(V,void 0,void 0,{renderer:K.renderer,config:K.config.adPlacementConfig,kind:K.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):G.push.apply(G,
g.la(V))}if(null===a.D||f&&!h.SJ)return a=h.tf&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null===(m=null===(l=b[0].config)||void 0===l?void 0:l.adPlacementConfig)||void 0===m?void 0:m.kind)&&(null===(n=b[0].renderer)||void 0===n?void 0:n.adBreakServiceRenderer),G.length||a||R("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(t=null===(q=null===(p=b[0])||void 0===p?void 0:p.config)||
void 0===q?void 0:q.adPlacementConfig)||void 0===t?void 0:t.kind,renderer:null===(u=b[0])||void 0===u?void 0:u.renderer}),G;c=c.filter(QJa);G.push.apply(G,g.la(ZJa(F,c,a.u.get(),a.D,d,a.Oa.get())));G.length||R("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(z=null===(y=null===(v=b[0])||void 0===v?void 0:v.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===z?void 0:z.kind,renderer:null===
(C=b[0])||void 0===C?void 0:C.renderer});return G};
NKa=function(a,b,c,d,e,f,h,l){function m(v){return KY(a.B.get(),v)}
var n=c.renderer,p=c.config.adPlacementConfig,q=p.kind,t=c.adSlotLoggingData,u=h.SJ&&"AD_PLACEMENT_KIND_START"===q;u=f&&!u;if(null!=n.adsEngagementPanelRenderer)return oZ(b,c.elementId,q,n.adsEngagementPanelRenderer.adVideoId,p,t,function(v,y,z){var C=a.i.get(),G=n.adsEngagementPanelRenderer,F=KY(a.B.get(),v);return FZ(C,v.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new eI(G),y,z,G.impressionPings,F,n.adsEngagementPanelRenderer.adLayoutLoggingData)}),[];
if(null!=n.actionCompanionAdRenderer)oZ(b,c.elementId,q,n.actionCompanionAdRenderer.adVideoId,p,t,function(v,y,z){var C=a.i.get(),G=n.actionCompanionAdRenderer,F=KY(a.B.get(),v);return FZ(C,v.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new dI(G),y,z,G.impressionPings,F,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)oZ(b,c.elementId,q,n.imageCompanionAdRenderer.adVideoId,p,t,function(v,y,z){var C=a.i.get(),G=n.imageCompanionAdRenderer,F=KY(a.B.get(),v);return FZ(C,v.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new iI(G),y,z,G.impressionPings,F,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)oZ(b,c.elementId,q,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(v,y,z){var C=a.i.get(),G=n.shoppingCompanionCarouselRenderer,F=KY(a.B.get(),v);return FZ(C,v.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new jI(G),y,z,G.impressionPings,F,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else if(n.adBreakServiceRenderer){if(!VJa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==q)return UJa(a.u.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f);if(!f&&!GZ(a.Oa.get()))return new bZ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED AdBreakServiceRenderer but cue point event is unsupported");if(!a.C)return new bZ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");h.tf||R("Received non-live cue point triggered AdBreakServiceRenderer",
void 0,void 0,{kind:q,adPlacementConfig:p,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(h.tf),clientPlaybackNonce:h.clientPlaybackNonce});OKa(a.C,{adPlacementRenderer:c,contentCpn:d,HJ:e})}else{if(n.clientForecastingAdRenderer)return uKa(a.u.get(),a.i.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return wKa(a.u.get(),a.i.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if((n.linearAdSequenceRenderer||n.instreamVideoAdRenderer)&&u)return qKa(a.u.get(),a.i.get(),
c,d,m);if(n.linearAdSequenceRenderer&&!u)return nZ(b,n,q),null!=n.linearAdSequenceRenderer.linearAds?KKa(a.u.get(),a.i.get(),p,t,n.linearAdSequenceRenderer.linearAds,d,e,h,m,l,a.loadPolicy):new bZ("Received invalid LinearAdSequenceRenderer.");if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!u)return nZ(b,n,q),HKa(a.u.get(),a.i.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy);if(n.instreamSurveyAdRenderer)return MKa(a.u.get(),a.i.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=
n.sandwichedLinearAdRenderer)return RJa(n.sandwichedLinearAdRenderer)?KKa(a.u.get(),a.i.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,n.sandwichedLinearAdRenderer.linearAd],d,e,h,m,l,a.loadPolicy):new bZ("Received invalid SandwichedLinearAdRenderer.")}}return[]};
HZ=function(a){g.E.call(this);this.i=a};
Jy=function(a,b,c,d){a.i().Jh(b,d);c=c();a=a.i();IZ(a.u,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.r(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;nJ(d.u,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.i;if(g.jb(c.slotId))throw new bZ("Slot ID was empty");if(RY(e,c))throw new bZ("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Vb.triggerType});if(!e.Nd.Ql.has(c.qb))throw new bZ("No fulfillment adapter factory registered for slot of type: "+
c.qb);if(!e.Nd.Dm.has(c.qb))throw new bZ("No SlotAdapterFactory registered for slot of type: "+c.qb);jZ(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Vb?[c.Vb]:[]);jZ(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.uc);jZ(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.tc);var f=d.i,h=c.qb+"_"+c.slotPhysicalPosition,l=dZ(f,h);if(RY(f,c))throw new bZ("Duplicate slots not supported");l.set(c.slotId,new LJa(c));f.i.set(h,l)}catch(xa){R(xa,c,void 0,void 0,xa.fp);break a}RY(d.i,c).I=!0;try{var m=d.i,n=RY(m,c),p=c.Vb,q=m.Nd.Sh.get(p.triggerType);
q&&(q.Mi("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.va.set(p.triggerId,q));for(var t=g.r(c.uc),u=t.next();!u.done;u=t.next()){var v=u.value,y=m.Nd.Sh.get(v.triggerType);y&&(y.Mi("TRIGGER_CATEGORY_SLOT_FULFILLMENT",v,c,null),n.Z.set(v.triggerId,y))}for(var z=g.r(c.tc),C=z.next();!C.done;C=z.next()){var G=C.value,F=m.Nd.Sh.get(G.triggerType);F&&(F.Mi("TRIGGER_CATEGORY_SLOT_EXPIRATION",G,c,null),n.X.set(G.triggerId,F))}var J=m.Nd.Ql.get(c.qb).get().Pe(m.B,c);n.K=J;var U=m.Nd.Dm.get(c.qb).get().Pe(m.D,
c);U.init();n.u=U}catch(xa){R(xa,c,void 0,void 0,xa.fp);OY(d,c,!0);break a}nJ(d.u,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.i.kh(c);for(var K=g.r(d.Id),V=K.next();!V.done;V=K.next())V.value.kh(c);WY(d,c,!1)}};
JZ=function(a,b,c,d){this.Po=b;this.i=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
KZ=function(a,b,c,d){g.E.call(this);var e=this;this.B=a;this.C=b;this.u=c;this.i=new Map;d.get().addListener(this);g.he(this,function(){d.get().removeListener(e)})};
Gka=function(a,b){var c=0x8000000000000;for(var d=0,e=g.r(b.uc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof JZ?(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 Ir(c,d);d="throttledadcuerange:"+b.slotId;a.i.set(d,b);a.u.get().addCueRange(d,c.start,c.end,!1,a)};
LZ=function(){g.E.apply(this,arguments);this.wi=!0;this.Qh=new Map;this.i=new Map};
PKa=function(a,b){a=g.r(a.Qh.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
QKa=function(a,b){a=g.r(a.i.values());for(var c=a.next();!c.done;c=a.next()){c=g.r(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}R("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.jb(b)),layoutId:b})};
DZ=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
AZ=function(a,b){this.Ge=b;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
sZ=function(a,b){this.Ge=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
vZ=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
MZ=function(a,b){this.i=b;this.qb="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
NZ=function(a,b){this.i=b;this.qb="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
wZ=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
RKa=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)};
hKa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
tZ=function(a,b){this.Ge=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
uZ=function(a,b){this.Ge=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
zZ=function(a,b){this.durationMs=45E3;this.Ge=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
SKa=function(a){return[new yI(a.Lt),new rI(a.instreamAdPlayerOverlayRenderer),new CI(a.cN),new mI(a.adPlacementConfig),new HI(a.videoLengthSeconds),new VI(a.WE)]};
TKa=function(a,b,c,d,e,f){a=c.wE?c.wE:Ry(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",ib:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",lc:new Map,Bd:[new sZ(function(l){return Sy(f,l)},c.Lt)],
Qc:[],Pc:[],Rc:[],Vc:[],ib:b,Ia:d,Dc:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
OZ=function(a){var b=this;this.u=a;this.i=function(c){return Sy(b.u.get(),c)}};
UKa=function(a,b,c,d,e,f){c=new WH([new sI(c),new mI(d)]);b=Ry(a.u.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",ib:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",lc:new Map,Bd:[new sZ(function(h){return Sy(a.u.get(),h)},e)],
Qc:[],Pc:[],Rc:[],Vc:[],ib:"core",Ia:c,Dc:f(d),adLayoutLoggingData:void 0}};
PZ=function(a,b,c,d,e){return TKa(b,c,d,new WH(SKa(d)),e,a.u.get())};
VKa=function(a,b,c,d,e){var f=SKa(d);f.push(new kI(d.WQ));f.push(new lI(d.YQ));return TKa(b,c,d,new WH(f),e,a.u.get())};
FZ=function(a,b,c,d,e,f,h,l,m){b=Ry(a.u.get(),c,b);var n={layoutId:b,layoutType:c,ib:"core"},p=new Map;h&&p.set("impression",h);return{layoutId:b,layoutType:c,lc:p,Bd:[new wZ(a.i,b),new MZ(a.i,e)],Qc:[],Pc:[],Rc:[],Vc:[],ib:"core",Ia:new WH([d,new mI(f),new yI(e)]),Dc:l(n),adLayoutLoggingData:m}};
yZ=function(a,b,c){var d=[];d.push(new NZ(a.i,c));b&&d.push(b);return d};
xZ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,ib:"core"};return{layoutId:b,layoutType:c,lc:new Map,Bd:h,Qc:[new DZ(a.i,b)],Pc:[],Rc:[],Vc:[],ib:"core",Ia:new WH([new hI(d),new mI(e)]),Dc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
rZ=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,ib:"core"};return{layoutId:b,layoutType:f,lc:new Map,Bd:[new sZ(a.i,c)],Qc:[],Pc:[],Rc:[],Vc:[],ib:"core",Ia:new WH([new mI(d)].concat(g.la(h))),Dc:e(m),adLayoutLoggingData:l}};
xKa=function(a,b,c,d,e,f,h,l,m,n){a=BZ(a,b,c,d,e,f,h,l,m,n);return{Iq:{layoutId:a.layoutId,layoutType:a.layoutType,lc:a.lc,Bd:[],Qc:[],Pc:[],Rc:[],Vc:[],ib:a.ib,Ia:new WH(a.Su),Dc:a.Dc,adLayoutLoggingData:a.adLayoutLoggingData},Sr:a.Qc,qp:a.Pc,Ey:a.Rc,Dy:a.Vc,lh:a.lh}};
BKa=function(a,b,c,d,e,f,h,l){b=BZ(a,b,c,d,e,new Map,f,function(m){return h(m,l)},void 0);
a=new uZ(a.i,b.JF);c=new zI(b.JF);d=new AI("LAYOUT_TYPE_SURVEY");return{Iq:{layoutId:b.layoutId,layoutType:b.layoutType,lc:b.lc,Bd:[],Qc:[],Pc:[],Rc:[],Vc:[],ib:b.ib,Ia:new WH([].concat(g.la(b.Su),[c,d])),Dc:b.Dc,adLayoutLoggingData:b.adLayoutLoggingData},Sr:b.Qc,qp:b.Pc,Ey:[].concat(g.la(b.Rc),[a]),Dy:b.Vc,lh:b.lh}};
BZ=function(a,b,c,d,e,f,h,l,m,n){b=Ry(a.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",ib:"adapter"};l=l(b);var q=W(l.Ia,"metadata_type_fulfilled_layout");q||R("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new mI(c),new WI(d),new YI(e)];n&&c.push(new MI(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",lc:f,Bd:[],Qc:[new tZ(a.i,q)],Pc:[],Rc:[],Vc:[],ib:"adapter",
Su:c,Dc:h(p),adLayoutLoggingData:m,lh:l,JF:q}};
FKa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,q={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",ib:b};d=[new mI(d),new nI(l),new oI(c.externalVideoId),new qI(h),new rI(c.playerOverlay.instreamAdPlayerOverlayRenderer),new YI({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new II(e),new DI({current:null}),new HI(f)];(e=c.playerUnderlay)&&d.push(new sI(e));e=Qy(a.u.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?
f:Ry(a.u.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new zI(f));d.push(new BI(e));d.push(new MI(l.i));c.adNextParams&&d.push(new fI(c.adNextParams));c.clickthroughEndpoint&&d.push(new gI(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new XI(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new JI(c.sodarExtensionData));n&&d.push(new UI(n));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",lc:RG(c.pings),Bd:[new wZ(a.i,p)],Qc:c.skipOffsetMilliseconds?[new tZ(a.i,
f)]:[],Pc:[new tZ(a.i,f)],Rc:[],Vc:[],ib:b,Ia:new WH(d),Dc:m(q),adLayoutLoggingData:c.adLayoutLoggingData}};
sKa=function(a,b,c,d,e,f,h,l){d.every(function(n){return GY(n,[],["LAYOUT_TYPE_MEDIA"])})||R("Unexpect subLayout type for DAI composite layout");
b=Ry(a.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var m={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",ib:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",lc:new Map,Bd:[new vZ(a.i)],Qc:[],Pc:[],Rc:[],Vc:[],ib:"core",Ia:new WH([new KI(c),new LI(l),new FI(d),new mI(e),new QI(f),new NI({})]),Dc:h(m)}};
nKa=function(a){return null!=a};
QZ=function(a,b,c){this.Po=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
RZ=function(a,b,c){this.Ge=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
SZ=function(a,b){this.Ge=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
WKa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
TZ=function(a,b,c){this.Po=b;this.i=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
UZ=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
VZ=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
WZ=function(a,b){this.Hg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
XZ=function(a,b){this.Hg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
YZ=function(a,b){this.Hg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
ZZ=function(a,b){this.Hg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
$Z=function(a,b){this.Hg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
SJa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Rk:new Ir(-0x8000000000000,-0x8000000000000),IA:d},null!=c&&(d.gs=new Ir(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Rk:new Ir(0x7ffffffffffff,0x8000000000000),IA:d},null!=c&&(d.gs=new Ir(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 bZ("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Rk:new Ir(a,e),IA:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.gs=new Ir(a,e)}return d;default:return new bZ("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
a_=function(a){var b=this;this.u=a;this.i=function(c){return Sy(b.u.get(),c)}};
TJa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=Qy(a.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.gs&&d.gs.start!==d.Rk.start&&l.push(new JZ(a.i,c,new Ir(d.gs.start,d.Rk.start),!1));l.push(new JZ(a.i,c,new Ir(d.Rk.start,d.Rk.end),d.IA));d={getAdBreakUrl:b.getAdBreakUrl,tN:d.Rk.start,sN:d.Rk.end};b=new ZZ(a.i,h);f=[new SI(d)].concat(g.la(f));return{slotId:h,qb:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Vb:b,uc:l,tc:[new UZ(a.i,c),new XZ(a.i,h),new YZ(a.i,h)],ib:"core",Ia:new WH(f),adSlotLoggingData:e}};
YKa=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())d.push(XKa(a,b,e.value));return d};
XKa=function(a,b,c){return null!=c.Hg&&c.Hg===a?c.clone(b):c};
bKa=function(a,b,c,d,e){return ZKa(a,b,c,d,e)};
yKa=function(a,b,c,d){var e=Qy(a.u.get(),"SLOT_TYPE_IN_PLAYER");return ZKa(a,e,b,c,d)};
ZKa=function(a,b,c,d,e){var f=new SZ(a.i,c),h=[new WZ(a.i,b)];a=[new XZ(a.i,b),new UZ(a.i,d)];return{slotId:b,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:f,uc:h,tc:a,ib:"core",Ia:new WH([new RI(e({slotId:b,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",Vb:f,uc:h,tc:a},c))]),adSlotLoggingData:void 0}};
LKa=function(a,b,c,d,e,f){var h=Qy(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),l=Qy(a.u.get(),"SLOT_TYPE_IN_PLAYER"),m=Ry(a.u.get(),"LAYOUT_TYPE_SURVEY",l);b=b_(a,b,c,d);d=[new WZ(a.i,h)];a=[new XZ(a.i,h),new UZ(a.i,c),new DZ(a.i,m)];if(b instanceof bZ)return b;f=f({slotId:h,qb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,ib:"core",Vb:b,uc:d,tc:a},{slotId:l,layoutId:m});l=f.DS;return[{slotId:h,qb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Vb:b,uc:d,tc:a,ib:"core",Ia:new WH([new RI(f.ZS)]),adSlotLoggingData:e},
l]};
$Ka=function(a,b,c,d,e){e=e?e:Qy(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new SZ(a.i,c);var f=[new WZ(a.i,e)];a=[new UZ(a.i,b),new XZ(a.i,e)];return{slotId:e,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:c,uc:f,tc:a,ib:"core",Ia:new WH([new RI(d({slotId:e,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",Vb:c,uc:f,tc:a}))])}};
aLa=function(a,b,c,d){var e=Qy(a.u.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new SZ(a.i,c);var f=[new WZ(a.i,e)];a=[new UZ(a.i,b),new XZ(a.i,e)];return{slotId:e,qb:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Vb:c,uc:f,tc:a,ib:"core",Ia:new WH([new RI(d({slotId:e,qb:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,ib:"core",Vb:c,uc:f,tc:a}))])}};
vKa=function(a,b,c,d,e,f){b=b_(a,b,c,d);if(b instanceof bZ)return b;var h=b instanceof JZ?new TZ(a.i,c,b.i):null;d=Qy(a.u.get(),"SLOT_TYPE_IN_PLAYER");var l=[new WZ(a.i,d)];a=[new UZ(a.i,c),new XZ(a.i,d)];f=f({slotId:d,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",Vb:b,uc:l,tc:a},h);return f instanceof TY?new bZ(f):{slotId:d,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:b,uc:l,tc:a,ib:"core",Ia:new WH([new RI(f)]),adSlotLoggingData:e}};
gKa=function(a,b,c,d){var e=Qy(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new SZ(a.i,c);var f=[new WZ(a.i,e)],h=[new XZ(a.i,e),new UZ(a.i,b)];f={slotId:e,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",Vb:c,uc:f,tc:h};return{slotId:e,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:c,uc:[new WZ(a.i,e)],tc:[new UZ(a.i,b),new XZ(a.i,e)],ib:"core",Ia:new WH([new RI(d(f))])}};
eKa=function(a,b,c,d,e){var f=Qy(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new RZ(a.i,d,c);d=[new WZ(a.i,f)];a=[new UZ(a.i,b)];return{slotId:f,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:c,uc:d,tc:a,ib:"core",Ia:new WH([new RI(e({slotId:f,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",Vb:c,uc:d,tc:a}))])}};
YJa=function(a,b,c,d,e,f){var h=Qy(a.u.get(),b);return bLa(a,h,b,new SZ(a.i,d),c,e,d,f)};
XJa=function(a,b,c,d,e,f,h){return bLa(a,c,b,new VZ(a.i,c),d,f,e,h)};
oKa=function(a,b,c){var d=Qy(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new WKa(a.i),f=[new $Z(a.i,d)];a=[new UZ(a.i,b)];return{slotId:d,qb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Vb:e,uc:f,tc:a,ib:"core",Ia:new WH([new RI(c({slotId:d,qb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,ib:"core",Vb:e,uc:f,tc:a})),new NI({})])}};
GKa=function(a,b,c,d,e,f,h){a=JKa(a,b,c,d);if(a instanceof bZ)return a;h=h({slotId:a.slotId,qb:a.qb,slotPhysicalPosition:a.slotPhysicalPosition,Vb:a.Vb,uc:a.uc,tc:a.tc,ib:a.ib});if(h instanceof bZ)return h;b=[new RI(h.layout)];f&&b.push(new $I({}));return{NF:{slotId:a.slotId,qb:a.qb,slotPhysicalPosition:a.slotPhysicalPosition,Vb:a.Vb,uc:a.uc,tc:a.tc,ib:a.ib,Ia:new WH(b),adSlotLoggingData:e},nm:h.nm}};
JKa=function(a,b,c,d){var e=Qy(a.u.get(),"SLOT_TYPE_PLAYER_BYTES");b=b_(a,b,c,d);if(b instanceof bZ)return b;d=[new WZ(a.i,e)];a=[new XZ(a.i,e),new UZ(a.i,c)];return{slotId:e,qb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Vb:b,uc:d,tc:a,ib:"core"}};
tKa=function(a,b,c,d,e,f){var h=Qy(a.u.get(),"SLOT_TYPE_FORECASTING");b=b_(a,b,c,d);if(b instanceof bZ)return b;d=[new WZ(a.i,h)];a=[new XZ(a.i,h),new UZ(a.i,c)];return{slotId:h,qb:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Vb:b,uc:d,tc:a,ib:"core",Ia:new WH([new RI(f({slotId:h,qb:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,ib:"core",Vb:b,uc:d,tc:a}))]),adSlotLoggingData:e}};
cLa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new Ny(a.i,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=SJa(b,d),a instanceof bZ?a:e(a.Rk,f);case "AD_PLACEMENT_KIND_END":return new QZ(a.i,c,f);default:return new bZ("Cannot construct entry trigger",{kind:b.kind})}};
b_=function(a,b,c,d){return cLa(a,b,c,d,function(e,f){return new JZ(a.i,c,e,f)})};
bLa=function(a,b,c,d,e,f,h,l){var m=[new $Z(a.i,b)];a=[new UZ(a.i,e),new XZ(a.i,b),new AZ(a.i,h)];return{slotId:b,qb:c,slotPhysicalPosition:1,Vb:d,uc:m,tc:a,ib:"core",Ia:new WH([new RI(l({slotId:b,qb:c,slotPhysicalPosition:1,ib:"core",Vb:d,uc:m,tc:a}))]),adSlotLoggingData:f}};
c_=function(a,b){g.E.call(this);this.Oa=a;this.u=b;this.eventCount=0};
nJ=function(a,b,c){IZ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)};
SY=function(a,b,c,d){IZ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
DJa=function(a,b,c,d){var e=a.Oa.get();(e.J.V().N("html5_control_flow_include_trigger_logging_in_tmp_logs")||e.J.V().N("html5_control_flow_include_trigger_logging_in_tmp_logs_live_infra"))&&IZ(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
IZ=function(a,b,c,d,e,f,h,l,m,n){var p=a.Oa.get();if((p.J.V().N("html5_enable_ads_client_monitoring_log")||p.J.V().N("html5_enable_ads_client_monitoring_log_live_infra"))&&!a.Oa.get().J.V().N("html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var q=JY(a.u.get());b={eventType:b,eventOrder:++a.eventCount};p={};f&&(p.slotData=IY(q,f));h&&(p.layoutData=wJa(q,h));l&&(p.triggerData=HY(l.trigger,l.category));c&&(p.opportunityData=xJa(q,c,d,e));var t,u;c={organicPlaybackContext:{contentCpn:Ky(a.i.get(),
1).clientPlaybackNonce}};c.organicPlaybackContext.isLivePlayback=Ky(a.i.get(),1).tf;c.organicPlaybackContext.isMdxPlayback=null===(t=Ky(a.i.get(),1))||void 0===t?void 0:t.isMdxPlayback;if(a=null===(u=Ky(a.i.get(),2))||void 0===u?void 0:u.clientPlaybackNonce)c.adVideoPlaybackContext={adVideoCpn:a};c&&(p.externalContext=c);b.adClientData=p;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);g.dw("adsClientStateChange",{adsClientEvent:b})}};
d_=function(a,b,c){c_.call(this,a,b);this.i=c};
e_=function(){this.i=new Map};
f_=function(a,b,c,d,e){g.E.call(this);this.J=a;this.B=b;this.Ja=c;this.C=d;this.u=e;this.listeners=[];var f=new Kx(this);g.H(this,f);f.T(a,"internalAbandon",this.wF);g.he(this,function(){g.Mx(f)})};
g_=function(a){g.E.call(this);this.J=a;this.i=new Map;this.u=new Kx(this);g.H(this,this.u);this.u.T(this.J,g.cz("ad"),this.onCueRangeEnter,this);this.u.T(this.J,g.dz("ad"),this.onCueRangeExit,this)};
dLa=function(a,b,c,d,e){g.az.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
h_=function(a){this.J=a};
i_=function(a){this.J=a};
j_=function(a){var b,c,d;return(null===(d=null===(c=null===(b=a.J.getVideoData(1).getPlayerResponse())||void 0===b?void 0:b.playerConfig)||void 0===c?void 0:c.daiConfig)||void 0===d?void 0:d.enableServerStitchedDai)||!1};
iZ=function(a){return a.J.V().N("html5_recover_from_non_fatal_errors_in_player_bytes")};
XY=function(a){return g.YE(a.J.V())?!1:LE(a.J.V())?a.J.V().N("html5_enable_non_notify_composite_vod_lsar_pacf"):g.ME(a.J.V())?a.J.V().N("html5_enable_non_notify_composite_vod_lsar_pacf_tv"):!1};
eLa=function(a){return a.J.V().N("html5_recognize_predict_start_cue_point")};
GZ=function(a){return a.J.V().N("html5_pacf_enable_non_dai_live_video_ads")};
k_=function(a){return a.J.V().N("html5_enable_common_timer_for_survey_web")};
fLa=function(a){return a.J.V().experiments.ob("enable_desktop_player_underlay")};
l_=function(a,b){this.Ja=a;this.J=b;this.i=new Map;PG().subscribe("adactiveviewmeasurable",this.ww,this);PG().subscribe("adfullyviewableaudiblehalfdurationimpression",this.uw,this);PG().subscribe("adviewableimpression",this.xw,this);PG().subscribe("adaudioaudible",this.pw,this);PG().subscribe("adaudiomeasurable",this.qw,this)};
n_=function(a,b,c,d){d=void 0===d?null:d;a.i.has(b)?R("Unexpected registration of layout in LidarApi"):(a.i.set(b,d),Yqa(PG(),b,{Cv:function(){return c?{currentTime:a.Ja.get().getCurrentTimeSec(2,!1),duration:c,Ec:2===a.Ja.get().getPresentingPlayerType()&&1===m_(a.Ja.get(),2),Qca:!1,Rca:!0,volume:a.Ja.get().isMuted()?0:a.Ja.get().getVolume()/100}:{}}}))};
o_=function(a,b){a.i.has(b)?(a.i.delete(b),delete PG().i[b]):R("Unexpected unregistration of layout in LidarApi")};
p_=function(a,b){this.u=a;this.B=b};
q_=function(a,b,c,d){var e=void 0===e?new p_(function(){var f=a.getVideoData(1);return f?f.mf():""},function(){return a.V().pageId}):e;
this.J=a;this.u=b;this.B=c;this.C=d;this.ep=e;this.hB=null;this.i=new Map;this.Mh=new hH(e)};
hLa=function(a,b,c,d){d=void 0===d?[]:d;var e=QKa(a.u.get(),c);e?(c=r_(a,gLa(e),e),b.hasOwnProperty("baseUrl")?a.ep.send(b,c):a.Mh.send(b,c,{},d)):R("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
s_=function(a,b){g.dw("adsClientStateChange",b)};
t_=function(a,b){a.i.has(b.Fv())?R("Trying to register an existing AdErrorInfoSupplier."):a.i.set(b.Fv(),b)};
u_=function(a,b){a.i.delete(b.Fv())||R("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
gLa=function(a){var b=W(a.Ia,"metadata_type_ad_placement_config");a=W(a.Ia,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,NL:a}};
r_=function(a,b,c,d){var e=c?iLa(a):{};c=c?jLa(a,c.layoutId):{};var f={},h={};d=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bH(a.J,d)),hra(b.adPlacementConfig)),(f.SLOT_POS=aH(function(){return(b.NL||0).toString()}),f)),c),e),(h.FINAL=aH(function(){return"1"}),h.AD_CPN=aH(function(){var l;
return(null===(l=Ky(a.C.get(),2))||void 0===l?void 0:l.clientPlaybackNonce)||""}),h));
e={};c=g.r(Object.values(kLa));for(f=c.next();!f.done;f=c.next())f=f.value,h=d[f],null!=h&&(e[f]=h.toString());return e};
iLa=function(a){var b,c={},d=null===(b=a.hB)||void 0===b?void 0:lLa(b);null!=d&&(c.SURVEY_ELAPSED_MS=aH(function(){return Math.round(1E3*d).toString()}));
c.SURVEY_LOCAL_TIME_EPOCH_S=aH(function(){return Math.round(Date.now()/1E3).toString()});
return c};
jLa=function(a,b){a=a.i.get(b);if(!a)return{};a=a.OD();if(!a)return{};b={};return b.YT_ERROR_CODE=a.yB.toString(),b.ERRORCODE=a.Cx.toString(),b.ERROR_MSG=a.errorMessage,b};
v_=function(a,b,c){g.E.call(this);this.J=a;this.i=b;this.Oa=c;this.listeners=[];this.NE=null;this.PC=new Map;b=new g.WC(this);g.H(this,b);b.T(a,"videodatachange",this.pW);b.T(a,"serverstitchedvideochange",this.MV);this.wp=Ky(this)};
Ky=function(a,b){var c=a.J.getVideoData(b);return c?mLa(a,c,b||a.J.getPresentingPlayerType(!0)):null};
nLa=function(a,b,c){var d=mLa(a,b,c);a.wp=d;a.listeners.forEach(function(e){e.DM(d)})};
mLa=function(a,b,c){var d,e,f,h,l=b.author,m=b.clientPlaybackNonce,n=b.isListed,p=b.Bc,q=b.title,t=b.Zf,u=b.Ef,v=b.isMdxPlayback,y=b.Uh,z=b.mdxEnvironment,C=b.Mk,G=b.Qk,F=b.lp,J=b.videoId||"",U=b.Nh||"",K=b.Xi||"";b=b.Il||void 0;p=a.i.get().i.get(p)||{layoutId:null,slotId:null};var V=a.J.getVideoData(1),xa=V.tf();V=V.getPlayerResponse();c=1E3*a.J.getDuration(c);a=1E3*a.J.getDuration(1);var La=(null===(e=null===(d=null===V||void 0===V?void 0:V.playerConfig)||void 0===d?void 0:d.daiConfig)||void 0===
e?void 0:e.enableDai)||!1;V=(null===(h=null===(f=null===V||void 0===V?void 0:V.playerConfig)||void 0===f?void 0:f.daiConfig)||void 0===h?void 0:h.enablePreroll)||!1;return Object.assign(Object.assign({},p),{videoId:J,author:l,clientPlaybackNonce:m,playbackDurationMs:c,HJ:a,daiEnabled:La,SJ:V,isListed:n,tf:xa,Nh:U,title:q,Xi:K,Zf:t,Ef:u,Il:b,isMdxPlayback:v,Uh:y,mdxEnvironment:z,Mk:C,Qk:G,lp:F})};
w_=function(a,b){g.E.call(this);this.J=a;this.i=b;this.listeners=[];this.zp=function(){R("Called 'doUnlockPreroll' before it's initialized.")};
b=new Kx(this);g.H(this,b);b.T(a,"progresssync",this.nV);b.T(a,"presentingplayerstatechange",this.eV);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.xg);b.T(a,"resize",this.xb)};
x_=function(a,b){var c;b=null!==(c=a.i.get().PC.get(b))&&void 0!==c?c:null;if(null===b)return R("Expected ad video start time on playback timeline"),0;a=a.J.getCurrentTime(2,!0);return a<b?0:a-b};
m_=function(a,b){return a.J.zb(b)};
oLa=function(a){var b=a.J.eb().pg();a=a.J.nj(!0,!0);return b.height-(a.height+a.top)};
pLa=function(a,b){var c=a.J.V();CE(c)||"3"!==c.controlsType||a.J.eb().ex(b)};
y_=function(a,b){g.L(a.J.getRootNode(),b)};
z_=function(a,b){g.kr(a.J.getRootNode(),b)};
qLa=function(a,b,c){g.E.call(this);var d=this;this.u=Y(function(){return new Py});
g.H(this,this.u);this.X=Y(function(){return new OZ(d.u)});
g.H(this,this.X);this.K=Y(function(){return new LZ});
g.H(this,this.K);this.B=Y(function(){return new HZ(a)});
g.H(this,this.B);this.C=Y(function(){return new a_(d.u)});
g.H(this,this.C);this.va=Y(function(){return new e_});
g.H(this,this.va);this.S=Y(function(){return new g_(b)});
g.H(this,this.S);this.Mc=Y(function(){return new h_(b)});
g.H(this,this.Mc);this.Oa=Y(function(){return new i_(b)});
g.H(this,this.Oa);this.D=Y(function(){return new LY(d.Oa)});
g.H(this,this.D);this.I=Y(function(){return new EZ(d.C,d.X,d.Oa,d.D,null,null)});
g.H(this,this.I);this.i=Y(function(){return new v_(b,d.va,d.Oa)});
g.H(this,this.i);this.nh=new d_(this.Oa,this.D,this.i);g.H(this,this.nh);this.Ja=Y(function(){return new w_(b,d.i)});
g.H(this,this.Ja);this.Z=Y(function(){return new l_(d.Ja,b)});
g.H(this,this.Z);this.Ua=Y(function(){return new q_(b,d.K,d.Z,d.i)});
g.H(this,this.Ua);this.xc=new Oy(this.B,this.I,c,this.Oa,a,this.i,this.Ja);g.H(this,this.xc);var e=new f_(b,this.xc,this.Ja,this.i);this.Aa=Y(function(){return e});
this.oo=e;this.oa=new KZ(this.B,this.C,this.S,this.Aa);g.H(this,this.oa);this.yc=new Iy(this.B,this.C,this.I,this.i,this.oa,c);g.H(this,this.yc);this.Nd={nq:new Map,Ql:new Map,Sh:new Map,Dm:new Map,gm:new Map};this.listeners=[];this.cq={yc:this.yc,nk:null,im:null,Sf:this.Oa.get(),Ao:this.Ja.get(),xc:this.xc,sj:this.u.get(),hm:null,Ci:{oE:function(){}},
eh:this.K.get()}};
A_=function(a){this.i=a};
B_=function(){this.listeners=new Set};
C_=function(){};
rLa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&yl(b.siub,b.scs,b.bgub,b.bgp)};
sLa=function(a,b,c,d){this.callback=a;this.slot=b;this.B=c;this.u=d;this.i=null};
tLa=function(a,b,c,d){a.i&&R("Currently active request ongoing for slot. This should never happen",a.slot);a.i=b();a.i.then(function(e){a.i=null;d&&d(e);var f=e.Jt?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.B.get(),l=a.slot.slotId,m=KY(a.u.get(),{slotId:a.slot.slotId,qb:a.slot.qb,slotPhysicalPosition:a.slot.slotPhysicalPosition,ib:a.slot.ib,Vb:a.slot.Vb,uc:a.slot.uc,tc:a.slot.tc}),n=Ry(h.u.get(),f,l),p={layoutId:n,layoutType:f,ib:"core"};e={layoutId:n,layoutType:f,
lc:new Map,Bd:[new RKa(h.i,l)],Qc:[],Pc:[],Rc:[],Vc:[],ib:"core",Ia:new WH([new TI(e)]),Dc:m(p)};BJa(a.callback,a.slot,e)},function(e){a.i=null;
c&&c();e instanceof Dh||PY(a.callback,a.slot,new bZ(e,void 0,!0))})};
uLa=function(a){if(null==a.i)a.callback.oA(a.slot);else try{a.i.cancel(),a.i=null,a.callback.oA(a.slot)}catch(b){a.i=null,PY(a.callback,a.slot,new bZ(b))}};
D_=function(a,b,c,d,e,f){this.slot=b;this.u=c;this.B=f;this.i=new sLa(a,b,d,e)};
vLa=function(a){var b;null===(b=a.B)||void 0===b?void 0:b.get().xo(W(a.slot.Ia,"metadata_type_cue_point").identifier)};
E_=function(a,b,c,d,e){this.callback=a;this.slot=b;this.u=c;this.i=new sLa(a,b,d,e)};
F_=function(a,b){this.callback=a;this.slot=b};
G_=function(a,b){return My(a,b.Pd,b.qb)?!0:!1};
H_=function(){};
I_=function(a,b,c,d){this.i=a;this.B=b;this.u=c;this.D=d};
J_=function(){};
wLa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.i=d};
K_=function(a,b){return GY(a,b.Pd,b.Ve)?!0:!1};
L_=function(a){this.i=a};
M_=function(a,b,c,d,e){e=void 0===e?null:e;this.D=a;this.Ua=b;this.layoutId=d;this.i=0;this.B=null;this.C=new Set;this.u=Array.from(this.D.get("progress")||[]);this.u.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.I={adPlacementConfig:c,NL:e}};
N_=function(){return["metadata_type_ad_placement_config"]};
O_=function(a){var b=a.Ua.get();return r_(b,a.I)};
P_=function(a,b){a.C.has(b)||a.Ye(b)};
Q_=function(a,b,c){for(c=void 0===c?!1:c;a.i<a.u.length;){var d=a.u[a.i];if(d.offsetMilliseconds<=b||c)xLa(a,"progress",[d]),a.i++;else break}};
R_=function(a,b){return a.C.has(b)};
xLa=function(a,b,c){var d,e=a.Ua.get(),f=a.layoutId;a=null!==(d=a.B)&&void 0!==d?d:void 0;c=void 0===c?[]:c;var h=QKa(e.u.get(),f);if(h)for(b=e.B.get().Ye(f,b),f=r_(e,gLa(h),h,a),c=g.r(c),a=c.next();!a.done;a=c.next())a=a.value,a.baseUrl&&e.Mh.send(a.baseUrl,f,b,a.headers);else R("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
yLa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ua=d;this.i=e;a=W(this.layout.Ia,"metadata_type_ad_placement_config");this.u=new M_(c.lc,this.Ua,a,c.layoutId)};
zLa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];N_().forEach(function(b){a.push(b)});
return{Pd:a,Ve:["LAYOUT_TYPE_FORECASTING"]}};
S_=function(a,b){this.Ua=a;this.i=b};
T_=function(a,b,c,d){g.Q.call(this);this.callback=a;this.slot=b;this.layout=c;this.u=d;this.i=[]};
U_=function(a,b,c,d,e,f,h){e=W(c.Ia,e);a=O_(a);var l=mf(function(){d.Kc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.Dc},function(){l()}))};
V_=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.r(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.qb&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.J.sendVideoStatsEngageEvent(1,void 0,2):e?e():R("Tried to call engagePingCallback but it is null",h,l)}}else R("Companion AdUxClick received without a layoutId",h,l)};
ALa=function(a,b,c,d,e){LG.call(this,"action-companion",a,b,c,d,e)};
W_=function(a,b,c,d,e,f,h,l){T_.call(this,a,b,c,d);this.Ua=e;this.ke=f;this.I=l;this.wi=!0;this.B=null;this.C=W(c.Ia,"metadata_type_linked_player_bytes_layout_id");NY(this.ke(),this);a=W(c.Ia,"metadata_type_ad_placement_config");this.D=new M_(c.lc,this.Ua,a,c.layoutId)};
BLa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];N_().forEach(function(b){a.push(b)});
return{Pd:a,Ve:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
X_=function(a,b,c,d,e){T_.call(this,a,b,c,d);a=W(c.Ia,"metadata_type_ad_placement_config");this.B=new M_(c.lc,e,a,c.layoutId)};
CLa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];N_().forEach(function(b){a.push(b)});
return{Pd:a,Ve:["LAYOUT_TYPE_ENDCAP"]}};
Y_=function(a,b,c,d,e,f,h,l){T_.call(this,a,b,c,d);this.Ja=e;this.Ua=f;this.D=h;this.C=l;this.B=!1;this.I=W(this.layout.Ia,"metadata_type_linked_player_bytes_layout_id")};
DLa=function(){return{Pd:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Ve:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
Z_=function(a,b,c,d,e,f,h,l){return K_(c,DLa())?new Y_(a,b,c,d,e,f,h,l):K_(c,CLa())?new X_(a,b,c,d,f):null};
$_=function(a,b,c,d,e){this.u=a;this.Ja=b;this.Ua=c;this.B=d;this.i=e};
a0=function(a,b,c,d,e,f){g.E.call(this);this.callback=a;this.Jd=b;this.Ja=c;this.hd=d;this.ke=e;this.Oa=f;this.wi=!0;this.vE=!1};
b0=function(a,b,c,d,e,f,h,l,m,n){a0.call(this,a,b,c,d,m,n);this.B=e;this.slot=f;this.layout=h;this.I=l;this.u=[];this.i=-1;this.C=!1};
c0=function(a,b,c){var d=W(a.Hb().Ia,"metadata_type_linked_in_player_layout_id");return d?d:(R("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.qd(),a.Hb(),{requestingSlot:b,requestingLayout:c}),null)};
d0=function(a,b,c,d){if(!a.C){var e=a.u[a.i];e?(e.Hb().layoutId!==c.layoutId&&R("SubLayout mismatch in exitSubLayoutAndPlayNext",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:e.Hb().layoutId}),a.C=!0,e.gf(e.Hb(),d),mJ(a.B,b,c,d),a.C=!1,a.D?(a.D(),xJ(a.hd.get())):ELa(a)):R("No active adapter when exitSubLayoutAndPlayNext in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
ELa=function(a){if(a.i===a.u.length-1)a.i++,e0(a.I,a.layout.layoutId),xJ(a.hd.get());else{-1===a.i&&a.callback.Kc(a.slot,a.layout);a.i++;var b=a.u[a.i];0<a.i&&ksa(a.hd.get());b.startRendering(b.Hb())}};
f0=function(a){return!a.ao.Ec()&&a.state.Ec()};
g0=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
FLa=function(a){var b,c;return"AD_VIDEO_PROGRESS_KIND_PERCENT"!==(null===(b=a.adVideoOffset)||void 0===b?void 0:b.kind)?!1:null!=(null===(c=a.adVideoOffset)||void 0===c?void 0:c.percent)};
GLa=function(a){var b,c;return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"!==(null===(b=a.adVideoOffset)||void 0===b?void 0:b.kind)?!1:null!=(null===(c=a.adVideoOffset)||void 0===c?void 0:c.milliseconds)&&!isNaN(Number(a.adVideoOffset.milliseconds))};
HLa=function(a,b,c,d){var e;this.D=a;this.layoutId=c;this.I=d;this.u=[];this.i=[];this.B=this.C=0;a=g.r(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,null===(e=b.adVideoOffset)||void 0===e?void 0:e.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":FLa(b)?this.u.push(b):R("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":GLa(b)?this.i.push(b):R("Invalid AdVideoProgressMillisecondsCommand");break;default:R("Unknown or invalid AdVideoProgressOffSet kind")}this.u.sort(function(f,
h){return f.adVideoOffset.percent-h.adVideoOffset.percent});
this.i.sort(function(f,h){return Number(f.adVideoOffset.milliseconds)-Number(h.adVideoOffset.milliseconds)})};
i0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){var v;g.E.call(this);var y=this;this.callback=a;this.slot=b;this.layout=c;this.Ua=d;this.va=e;this.Ja=f;this.hd=h;this.La=l;this.B=m;this.K=n;this.position=q;this.Ha=t;this.Oa=u;this.wi=!0;this.Ba=!1;this.u="not_rendering";this.X=!1;a=W(this.layout.Ia,"metadata_type_ad_placement_config");this.i=new M_(c.lc,this.Ua,a,c.layoutId);a=(null===(v=h0(this))||void 0===v?void 0:v.progressCommands)||[];this.Wa=new HLa(m,a,c.layoutId,function(){return y.Tl()});
this.Aa=mf(function(){y.callback.Kc(y.slot,y.layout)});
this.S=mf(function(){"rendering_stop_requested"!==y.u&&p(y);y.Z?y.callback.Sc(y.slot,y.layout,y.Z):R("Received layout exit signal when not in layout exit flow.",y.slot,y.layout)})};
h0=function(a){return W(a.layout.Ia,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
k0=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.u){Q_(a.i,1E3*b,c);a.X||Q_(a.i,1E3*b,void 0===c?!1:c);var d=a.Tl();if(d){d/=1E3;if(b>=.25*d||c)P_(a.i,"first_quartile"),j0(a,"unmuted_first_quartile");if(b>=.5*d||c)P_(a.i,"midpoint"),j0(a,"unmuted_midpoint");if(b>=.75*d||c)P_(a.i,"third_quartile"),j0(a,"unmuted_third_quartile");a=a.Wa;b*=1E3;if(c=a.I()){for(;a.C<a.u.length;)if(d=a.u[a.C],d.adVideoOffset.percent*c<=b)a.D.get().executeCommand(d.command,a.layoutId),a.C++;else break;for(;a.B<a.i.length;)if(c=
a.i[a.B],Number(c.adVideoOffset.milliseconds)<=b)a.D.get().executeCommand(c.command,a.layoutId),a.B++;else break}}}};
l0=function(a,b){a.X||a.i.Ye(b)};
j0=function(a,b){a.X||P_(a.i,b)};
n0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,v){i0.call(this,a,b,c,d,e,f,h,m,n,p,q,t,u,v);var y=this;this.Mc=l;this.Gz=!0;this.oa=this.C=0;k_(this.Oa.get())?(this.I=new eJ(this.Tl(),function(z){k0(y,z/1E3);m0(y,z)},function(){k0(y,y.Tl()/1E3,!0);
m0(y,y.Tl());y.S()}),g.H(this,this.I)):(this.D=new g.Gh(200),this.D.Qa("tick",function(){y.Xb()}),g.H(this,this.D))};
ILa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.r(N_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Pd:a,Ve:["LAYOUT_TYPE_MEDIA_BREAK"]}};
JLa=function(a){k_(a.Oa.get())?a.I.start():(a.oa=Date.now(),m0(a,a.C),a.D.start())};
lLa=function(a){return k_(a.Oa.get())?a.I.i/1E3:a.C/1E3};
m0=function(a,b){b={current:b/1E3,duration:a.Tl()/1E3};a.Mc.get().Na("onAdPlaybackProgress",b)};
o0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,v,y,z,C,G,F){i0.call(this,a,b,c,d,e,m,p,t,u,y,z,C,G,F);var J=this;this.Va=f;this.Jd=h;this.oa=l;this.I=n;this.Mc=q;this.Sa=v;this.adCpn="";this.D=new g.I(function(){J.nw("load_timeout",new TY("Media layout load timeout.",{},!0))},1E4)};
KLa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.r(N_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Pd:a,Ve:["LAYOUT_TYPE_MEDIA"]}};
p0=function(a,b,c,d,e,f,h){a0.call(this,a,b,c,d,f,h);this.i=e};
MLa=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,v,y,z,C,G){if(K_(d,{Pd:["metadata_type_sub_layouts"],Ve:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var F=W(d.Ia,"metadata_type_sub_layouts");a=new b0(a,n,q,u,b,c,d,f,e,G);e=[];for(b={So:0};b.So<F.length;b={So:b.So},b.So++){var J=LLa({Kc:a.XV.bind(a),Sc:a.ZV.bind(a),wf:a.YV.bind(a)},c,F[b.So],h,l,m,n,p,q,t,u,v,y,z,C,function(U){return function(K){K.gf(F[U.So],"normal")}}(b),b.So,F.length,G);
if(!J)return;e.push(J)}a.u=e;return a}if(K_(d,{Pd:[],Ve:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=LLa({Kc:a.Kc.bind(a),Sc:a.Sc.bind(a),wf:a.wf.bind(a)},c,d,h,l,m,n,p,q,t,u,v,y,z,C,function(){e0(f,d.layoutId)},0,1,G))?new p0(a,n,q,u,c,e,G):c};
LLa=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,v,y,z,C,G){if(K_(c,ILa()))return new n0(a,b,c,d,e,m,p,q,t,u,function(){},y,z,C,G);
if(K_(c,KLa()))return Ly(c.Ia,"metadata_type_ad_intro")?new o0(a,b,c,d,e,f,h,l,m,n,p,q,t,u,v,function(F){q.get().Na("onAdIntroStateChange",F)},y,z,C,G):new o0(a,b,c,d,e,f,h,l,m,n,p,q,t,u,v,function(F){q.get().Ki(F)},y,z,C,G)};
q0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,v){this.ke=a;this.I=b;this.Ua=c;this.D=d;this.S=e;this.Jd=f;this.K=h;this.Ja=l;this.B=m;this.hd=n;this.Mc=p;this.i=q;this.u=t;this.C=u;this.Oa=v};
r0=function(a,b,c,d,e,f,h,l){g.E.call(this);var m=this;this.D=a;this.I=b;this.B=c;this.u=e;this.Ja=f;this.Oa=h;this.C=l;this.i=null;d.get().addListener(this);g.he(this,function(){d.get().removeListener(m)});
e.get().addListener(this);g.he(this,function(){e.get().removeListener(m)})};
OKa=function(a,b){if(Ky(a.B.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind||GZ(a.Oa.get()))if(a.i)R("Unexpected multiple fetch instructions for the current content");else{a.i=b;b=g.r(a.u.get().nB);for(var c=b.next();!c.done;c=b.next())NLa(a,a.i,c.value)}};
NLa=function(a,b,c){var d=a.Ja.get().getCurrentTimeSec(1,!1);Jy(a.D.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.I.get(),f=j_(a.Oa.get());var h=1E3*c.startSecs;h={Rk:new Ir(h,h+1E3*c.durationSecs),IA:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new Ir(1E3*(c.startSecs-4),1E3*l);else{var m=Math.max(0,c.startSecs-d-10);f=new Ir(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}h.gs=f;return[TJa(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,
b.contentCpn,h,b.adPlacementRenderer.adSlotLoggingData,[new GI(c)])]})};
s0=function(a,b,c,d,e,f,h,l,m){g.E.call(this);this.I=a;this.S=b;this.K=c;this.D=d;this.u=e;this.B=f;this.i=h;this.Oa=l;this.C=m;this.wi=!0};
OLa=function(a,b,c){return aLa(a.u.get(),b.contentCpn,b.Lt,function(d){return UKa(a.B.get(),d.slotId,c,b.adPlacementConfig,b.Lt,KY(a.i.get(),d))})};
t0=function(a){var b,c=null===(b=W(a.Ia,"metadata_type_player_bytes_callback_ref"))||void 0===b?void 0:b.current;if(c){var d=a.layoutId,e=W(a.Ia,"metadata_type_content_cpn"),f=W(a.Ia,"metadata_type_instream_ad_player_overlay_renderer"),h=W(a.Ia,"metadata_type_player_underlay_renderer"),l=W(a.Ia,"metadata_type_ad_placement_config"),m=W(a.Ia,"metadata_type_video_length_seconds");var n=Ly(a.Ia,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?W(a.Ia,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Ly(a.Ia,
"metadata_type_layout_enter_ms")&&Ly(a.Ia,"metadata_type_layout_exit_ms")?(W(a.Ia,"metadata_type_layout_exit_ms")-W(a.Ia,"metadata_type_layout_enter_ms"))/1E3:void 0;a={Lt:d,contentCpn:e,cN:c,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,WE:n,wE:W(a.Ia,"metadata_type_linked_in_player_layout_id"),VK:W(a.Ia,"metadata_type_linked_in_player_slot_id")}}else a=null;return a};
QLa=function(a,b){return PLa(a,b)};
RLa=function(a,b){var c;b=PLa(a,b);if(!b)return null;b.WE=null===(c=W(a.Ia,"metadata_type_ad_pod_info"))||void 0===c?void 0:c.adBreakRemainingLengthSeconds;return b};
PLa=function(a,b){var c,d=null===(c=W(a.Ia,"metadata_type_player_bytes_callback_ref"))||void 0===c?void 0:c.current;if(!d)return null;if(Ly(a.Ia,"metadata_ad_video_is_listed"))var e=W(a.Ia,"metadata_ad_video_is_listed");else b?e=b.isListed:(R("No layout metadata nor AdPlayback specified for ad video isListed"),e=!1);Ly(a.Ia,"metadata_type_ad_info_ad_metadata")?b=W(a.Ia,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.Xi,channelThumbnailUrl:b.Nh,channelTitle:b.author,videoTitle:b.title}:(R("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{WQ:b,adPlacementConfig:W(a.Ia,"metadata_type_ad_placement_config"),YQ:e,contentCpn:W(a.Ia,"metadata_type_content_cpn"),wE:W(a.Ia,"metadata_type_linked_in_player_layout_id"),VK:W(a.Ia,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:W(a.Ia,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,WE:void 0,cN:d,Lt:a.layoutId,videoLengthSeconds:W(a.Ia,"metadata_type_video_length_seconds")}};
SLa=function(a,b){this.callback=a;this.slot=b};
u0=function(){};
TLa=function(a,b,c){this.callback=a;this.slot=b;this.Ja=c};
ULa=function(a,b,c){this.callback=a;this.slot=b;this.Ja=c;this.u=!1;this.i=0};
VLa=function(a,b,c){this.callback=a;this.slot=b;this.Ja=c};
v0=function(a){this.Ja=a};
w0=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
x0=function(a){g.E.call(this);this.eC=a;this.Ib=new Map};
WLa=function(a,b){for(var c=[],d=g.r(a.Ib.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof uZ&&f.Ge===b&&c.push(e)}c.length?$Y(a.eC(),c):R("Survey is submitted but no registered triggers can be activated.")};
y0=function(a,b){x0.call(this,a);var c=this;b.get().addListener(this);g.he(this,function(){b.get().removeListener(c)})};
z0=function(a){g.E.call(this);this.i=a;this.wi=!0;this.Ib=new Map;this.D=new Set;this.B=new Set;this.C=new Set;this.I=new Set;this.u=new Set};
A0=function(a,b){g.E.call(this);var c=this;this.i=a;this.Ib=new Map;b.get().addListener(this);g.he(this,function(){b.get().removeListener(c)})};
XLa=function(a,b,c,d){var e=[];a=g.r(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof UZ){var h=f.trigger.i===b;h===c?e.push(f):d&&h&&(R("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
B0=function(a,b,c,d){g.E.call(this);var e=this;this.u=a;this.B=b;this.Ja=c;this.C=d;this.Ib=new Map;this.i=new Set;c.get().addListener(this);g.he(this,function(){c.get().removeListener(e)})};
C0=function(a,b,c,d,e,f,h,l,m,n){if(Ky(a.C.get(),1).clientPlaybackNonce!==m)throw new bZ("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Ib.set(c.triggerId,{bundle:new w0(b,c,d,e),Gy:f});a.B.get().addCueRange(f,h,l,n,a)};
YLa=function(a,b){a=g.r(a.Ib.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;if(b===d.Gy)return c}return""};
D0=function(a){g.E.call(this);this.B=a;this.wi=!0;this.Ib=new Map;this.u=this.i=null};
e0=function(a,b){for(var c=[],d=g.r(a.Ib.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof wZ){var f;if(f=e.trigger.layoutId===b)f=(f=EJa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&$Y(a.B(),c)};
E0=function(a){g.E.call(this);this.i=a;this.wi=!0;this.Ib=new Map};
F0=function(a,b,c){g.E.call(this);this.Nm=a;this.B=b;this.C=c;this.i=this.u=void 0;this.B.get().addListener(this)};
G0=function(a,b,c,d,e,f){g.E.call(this);this.B=a;this.D=b;this.I=c;this.S=d;this.K=e;this.Oa=f;this.i=this.u=null;this.C=!1;this.D.get().addListener(this)};
Vra=function(a,b,c,d,e){var f=Qy(a.K.get(),"SLOT_TYPE_PLAYER_BYTES");a.u={slotId:f,qb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Vb:void 0,uc:[],tc:[],ib:"surface",Ia:new WH([])};a.i={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",lc:new Map,Bd:[],Qc:[],Pc:[],Rc:[],Vc:[],ib:"surface",Ia:new WH(c),Dc:yJa(JY(a.I.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};d&&(YY(a.B(),a.u,a.i),a.C=!0,ZY(a.B(),a.u,a.i))};
H0=function(a){this.Yo=a};
ZLa=function(a,b){if(!a)return{Cl:[],Jt:!0};a.trackingParams&&Bsa(SJ(),a.trackingParams);if(a.adThrottled)return{Cl:[],Jt:!0};a=a.playerAds;if(!a||!a.length)return{Cl:[],Jt:!1};a=a.map(function(d){return d.adPlacementRenderer}).filter(function(d){return!(!d||!d.renderer)});
if(!a.length)return{Cl:[],Jt:!1};if(0<b.end){var c=b.end.toString();a.forEach(function(d){(d=d.config&&d.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===d.kind&&d.adTimeOffset&&"-1"===d.adTimeOffset.offsetEndMilliseconds&&d.adTimeOffset.offsetEndMilliseconds!==c&&(d.adTimeOffset.offsetEndMilliseconds=c)})}return{Cl:a,
Jt:!1}};
I0=function(a){g.E.call(this);this.J=a;this.listeners=[];this.i=new Kx(this);g.H(this,this.i);this.i.T(this.J,"aduxclicked",this.onAdUxClicked);this.i.T(this.J,"aduxmouseover",this.jF);this.i.T(this.J,"aduxmouseout",this.iF);this.i.T(this.J,"muteadaccepted",this.DT)};
$La=function(a,b,c){b=g.Mm(b,function(d){return new Rz(d,c,d.id)});
a.J.Na("onAdUxUpdate",b)};
J0=function(a,b){a=g.r(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
K0=function(a,b,c,d){g.E.call(this);this.J=a;this.D=b;this.Oa=c;this.Ua=d;this.listeners=[];this.B=new Set;this.nB=[];this.C=new qJ(this,eLa(c.get()));this.u=new rJ;this.i=null;GZ(c.get())||aMa(this)};
aMa=function(a){var b,c,d=a.J.getVideoData(1);(null===(b=a.i)||void 0===b?void 0:b.clientPlaybackNonce)!==d.clientPlaybackNonce&&(null!=a.i&&a.i.unsubscribe("cuepointupdated",a.Bw,a),d.subscribe("cuepointupdated",a.Bw,a),a.i=d,a.B.clear(),a.nB.length=0,d=(null===(c=d.i)||void 0===c?void 0:Cna(c,0))||[],a.Bw(d))};
bMa=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");}};
L0=function(a){this.J=a};
M0=function(a){this.J=a};
N0=function(){this.listeners=[]};
cMa=function(a){this.J=a};
O0=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.B=d;this.K=e;this.D=f;this.Ja=h;this.i=l;this.Ua=m;this.S=n;this.driftRecoveryMs=W(this.layout.Ia,"metadata_type_drift_recovery_ms")||null};
dMa=function(a){var b=W(a.layout.Ia,"metadata_type_layout_enter_ms"),c=W(a.layout.Ia,"metadata_type_layout_exit_ms");a=a.D.get();b=sJ(a.u,b,c);return Math.min(c,null!==b?b:Infinity)};
P0=function(a,b){var c;s_(a.Ua.get(),{driftRecoveryInfo:Object.assign({contentCpn:null===(c=a.B.get().wp)||void 0===c?void 0:c.clientPlaybackNonce,adClientData:a.layout.Dc.adClientDataEntry},b)})};
Q0=function(a,b,c,d,e,f,h,l,m,n,p){O0.call(this,a,b,c,d,e,f,h,l,m,n);this.I=p;this.C=this.u=null;a=g.r(this.I);for(b=a.next();!b.done;b=a.next())b=b.value,Ly(b.Hb().Ia,"metadata_type_survey_overlay")&&(this.C=b.Hb().layoutId)};
fMa=function(a,b){var c=eMa(a,b);a.u={Zh:c};c?c.startRendering(c.Hb()):b===a.C&&R("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
eMa=function(a,b){return null==b?null:a.I.find(function(c){return c.Hb().layoutId===b})||null};
gMa=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=Ly(b.Ia,"metadata_type_survey_overlay");if(!p)return h.Tv(c,2,f,d,e,a.slotId),n.Ai("ads_iraot","d."+p+";sid."+a.slotId+";vl."+f+";enterMs."+d+";exitMs."+e+";hso."+q),null;c=h.Lr(c,2,f,d,e,a.slotId);n.Ai("ads_atct","d."+p+";sid."+a.slotId+";vl."+f+";enterMs."+d+";exitMs."+e+";hso."+q);if(!c)return R("Unexpected failure to add to playback timeline",a,b,m()),null;a=a.slotId;b=b.layoutId;c?(l.i.has(c)&&R("Unexpected remap of timeline playback"),l.i.set(c,
{slotId:a,layoutId:b})):R("Invalid timeline playback ID");d+f>e&&h.Pt(c,e-d);return c};
hMa=function(a,b){var c=W(b.Ia,"metadata_type_sodar_extension_data");if(c)try{rLa(0,c)}catch(d){R("Unexpected error when loading Sodar",a,b,{error:d})}};
iMa=function(a,b,c,d,e,f){c=new g.vH(c,new g.CJ);R0(a,b,c,d,e,!1,f)};
R0=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;f0(c)&&g0(e,0,null)&&(!R_(a,"impression")&&h&&h(),P_(a,"impression"));R_(a,"impression")&&(g.xH(c,4)&&!g.xH(c,2)&&a.Ye("pause"),0>wH(c,4)&&!(0>wH(c,2))&&a.Ye("resume"),g.xH(c,16)&&.5<=e&&a.Ye("seek"),f&&g.xH(c,2)&&S0(a,c.state,b,d,e))};
S0=function(a,b,c,d,e,f){if(R_(a,"impression")){var h=1>=Math.abs(d-e);T0(a,b,h?d:e,c,d,f);h&&P_(a,"complete")}};
T0=function(a,b,c,d,e,f){Q_(a,1E3*c);0>=e||0>=c||(null===b||void 0===b?0:g.T(b,16))||(null===b||void 0===b?0:g.T(b,32))||(g0(c,.25*e,d)&&(f&&!R_(a,"first_quartile")&&f("first"),P_(a,"first_quartile")),g0(c,.5*e,d)&&(f&&!R_(a,"midpoint")&&f("second"),P_(a,"midpoint")),g0(c,.75*e,d)&&(f&&!R_(a,"third_quartile")&&f("third"),P_(a,"third_quartile")))};
jMa=function(a,b){R_(a,"impression")&&a.Ye(b?"fullscreen":"end_fullscreen")};
kMa=function(a){R_(a,"impression")&&a.Ye("clickthrough")};
lMa=function(a){a.Ye("active_view_measurable")};
mMa=function(a){R_(a,"impression")&&!R_(a,"seek")&&a.Ye("active_view_fully_viewable_audible_half_duration")};
nMa=function(a){R_(a,"impression")&&!R_(a,"seek")&&a.Ye("active_view_viewable")};
oMa=function(a){R_(a,"impression")&&!R_(a,"seek")&&a.Ye("audio_audible")};
pMa=function(a){R_(a,"impression")&&!R_(a,"seek")&&a.Ye("audio_measurable")};
qMa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.D=d;this.i=e;this.Ja=f;this.K=h;this.B=l;this.I=m;this.Oa=n;this.Ua=p;this.C=q;this.Gz=!0;this.Bc=this.u=null};
rMa=function(a,b,c){var d;a.Ua.get().Ai("ads_qua","cpn."+W(a.layout.Ia,"metadata_type_content_cpn")+";acpn."+(null===(d=Ky(a.C.get(),2))||void 0===d?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
sMa=function(a,b){var c;a.Ua.get().Ai("ads_imp","cpn."+W(a.layout.Ia,"metadata_type_content_cpn")+";acpn."+(null===(c=Ky(a.C.get(),2))||void 0===c?void 0:c.clientPlaybackNonce)+";clr."+b)};
U0=function(a){return{enterMs:W(a.Ia,"metadata_type_layout_enter_ms"),exitMs:W(a.Ia,"metadata_type_layout_exit_ms")}};
V0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){O0.call(this,a,b,c,d,e,h,l,m,n,q);this.X=f;this.I=p;this.C=t;this.Oa=u;this.Bc=this.u=null};
tMa=function(a,b){var c;a.Ua.get().Ai("ads_imp","acpn."+(null===(c=Ky(a.B.get(),2))||void 0===c?void 0:c.clientPlaybackNonce)+";clr."+b)};
uMa=function(a,b,c){var d;a.Ua.get().Ai("ads_qua","cpn."+W(a.layout.Ia,"metadata_type_content_cpn")+";acpn."+(null===(d=Ky(a.B.get(),2))||void 0===d?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
W0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,v,y,z,C,G){this.ke=a;this.va=b;this.i=c;this.B=d;this.Ja=e;this.Ua=f;this.K=h;this.D=l;this.u=m;this.C=n;this.Jd=p;this.Z=q;this.hd=t;this.Mc=u;this.S=v;this.X=y;this.oa=z;this.Oa=C;this.I=G};
X0=function(a){g.E.call(this);this.i=a;this.Ib=new Map};
Y0=function(a,b){for(var c=[],d=g.r(a.Ib.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.i===b.layoutId&&c.push(e);c.length&&$Y(a.i(),c)};
Z0=function(a,b){var c;g.E.call(this);var d=this;this.C=a;this.u=new Map;this.B=new Map;this.i=null;b.get().addListener(this);g.he(this,function(){b.get().removeListener(d)});
this.i=(null===(c=b.get().wp)||void 0===c?void 0:c.slotId)||null};
vMa=function(a,b){var c=[];a=g.r(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
$0=function(a){this.J=a};
wMa=function(a,b,c,d,e){LG.call(this,"image-companion",a,b,c,d,e)};
a1=function(a,b,c,d,e,f,h,l){T_.call(this,a,b,c,d);this.Ua=e;this.ke=f;this.I=l;this.wi=!0;this.B=null;this.C=W(c.Ia,"metadata_type_linked_player_bytes_layout_id");NY(this.ke(),this);a=W(c.Ia,"metadata_type_ad_placement_config");this.D=new M_(c.lc,this.Ua,a,c.layoutId)};
xMa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];N_().forEach(function(b){a.push(b)});
return{Pd:a,Ve:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
yMa=function(a,b,c,d,e){LG.call(this,"shopping-companion",a,b,c,d,e)};
b1=function(a,b,c,d,e,f,h,l){T_.call(this,a,b,c,d);this.Ua=e;this.ke=f;this.I=l;this.wi=!0;this.B=null;this.C=W(c.Ia,"metadata_type_linked_player_bytes_layout_id");NY(this.ke(),this);a=W(c.Ia,"metadata_type_ad_placement_config");this.D=new M_(c.lc,this.Ua,a,c.layoutId)};
zMa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];N_().forEach(function(b){a.push(b)});
return{Pd:a,Ve:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
AMa=function(a,b,c,d,e){LG.call(this,"ads-engagement-panel",a,b,c,d,e)};
c1=function(a,b,c,d,e,f,h,l){T_.call(this,a,b,c,d);this.Ua=e;this.ke=f;this.I=l;this.wi=!0;this.B=null;this.C=W(c.Ia,"metadata_type_linked_player_bytes_layout_id");NY(this.ke(),this);a=W(c.Ia,"metadata_type_ad_placement_config");this.D=new M_(c.lc,this.Ua,a,c.layoutId)};
BMa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];N_().forEach(function(b){a.push(b)});
return{Pd:a,Ve:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
CMa=function(a,b,c,d,e){this.i=a;this.Ua=b;this.ke=c;this.u=d;this.B=e};
d1=function(a,b,c){LG.call(this,"player-underlay",a,{},b,c);this.i=c};
e1=function(a,b,c,d){T_.call(this,a,b,c,d)};
DMa=function(a){this.i=a};
f1=function(a,b,c,d,e){T_.call(this,c,a,b,d);this.Ua=e;a=W(b.Ia,"metadata_type_ad_placement_config");this.B=new M_(b.lc,e,a,b.layoutId)};
g1=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
i1=function(a,b,c){c=void 0===c?h1:c;c.width<h1.width&&(c=h1);if(a.width<c.width||a.height<c.height)return{yB:3,Cx:501,errorMessage:"ad("+g1(c)+") larger than container("+g1(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{yB:3,Cx:501,errorMessage:"ad("+g1(c)+") to container("+g1(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{yB:3,Cx:501,errorMessage:"ad("+g1(c)+") covers container("+g1(a)+") center."}};
EMa=function(a,b){var c=W(a.Ia,"metadata_type_ad_placement_config");return new M_(a.lc,b,c,a.layoutId)};
j1=function(a){return W(a.Ia,"metadata_type_invideo_overlay_ad_renderer")};
k1=function(a,b,c,d){LG.call(this,"invideo-overlay",a,b,c,d);this.i=d};
l1=function(a,b,c,d,e,f,h,l,m,n,p,q){T_.call(this,f,a,b,e);this.Ua=c;this.B=h;this.Ja=l;this.K=m;this.Oa=n;this.D=p;this.C=q;this.S=EMa(b,c)};
FMa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];N_().forEach(function(b){a.push(b)});
return{Pd:a,Ve:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
m1=function(a,b,c,d,e,f,h,l,m,n,p,q,t){T_.call(this,f,a,b,e);this.Ua=c;this.B=h;this.K=l;this.Ja=m;this.S=n;this.Oa=p;this.D=q;this.C=t;this.X=EMa(b,c)};
GMa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.r(N_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Pd:a,Ve:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
n1=function(a){this.Ja=a;this.i=!1};
o1=function(a,b,c,d,e,f,h){T_.call(this,c,a,b,d);this.B=e;this.Ja=f;this.Oa=h};
HMa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Ja=b;this.Ua=c;this.K=d;this.D=e;this.B=f;this.I=h;this.C=l;this.Oa=m;this.u=n};
p1=function(a){g.E.call(this);this.B=a;this.wi=!0;this.Ib=new Map;this.i=new Map;this.u=new Map};
IMa=function(a,b){var c=[];if(b=a.i.get(b.layoutId)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())(d=a.u.get(d.value.triggerId))&&c.push(d)}return c};
JMa=function(a,b,c,d,e){g.E.call(this);var f=this;this.K=Y(function(){return new Py});
g.H(this,this.K);this.va=Y(function(){return new OZ(f.K)});
g.H(this,this.va);this.B=Y(function(){return new LZ});
g.H(this,this.B);this.X=Y(function(){return new HZ(a)});
g.H(this,this.X);this.Z=Y(function(){return new a_(f.K)});
g.H(this,this.Z);this.Gb=Y(function(){return new e_});
g.H(this,this.Gb);this.dc=Y(function(){return new MG(b.V())});
g.H(this,this.dc);this.oa=Y(function(){return new I0(b)});
g.H(this,this.oa);this.Za=Y(function(){return new A_(e)});
g.H(this,this.Za);this.hd=Y(function(){return new wJ(b)});
g.H(this,this.hd);this.Ka=Y(function(){return new g_(b)});
g.H(this,this.Ka);this.Jd=Y(function(){return new L0(b)});
g.H(this,this.Jd);this.Mc=Y(function(){return new h_(b)});
g.H(this,this.Mc);this.Oa=Y(function(){return new i_(b)});
g.H(this,this.Oa);this.Nb=Y(function(){return new H0(d)});
g.H(this,this.Nb);this.C=Y(function(){return new LY(f.Oa)});
g.H(this,this.C);this.Va=Y(function(){return new EZ(f.Z,f.va,f.Oa,f.C,"SLOT_TYPE_ABOVE_FEED",f.jb)});
g.H(this,this.Va);this.Fc=Y(function(){return new M0(b)});
g.H(this,this.Fc);this.vb=Y(function(){return new N0});
g.H(this,this.vb);this.rb=Y(function(){return new B_});
g.H(this,this.rb);this.i=Y(function(){return new v_(b,f.Gb,f.Oa)});
g.H(this,this.i);this.nh=new d_(this.Oa,this.C,this.i);g.H(this,this.nh);this.Ha=Y(function(){return new K0(b,f.i,f.Oa,f.Ua)});
g.H(this,this.Ha);this.Sa=Y(function(){return new $0(b)});
g.H(this,this.Sa);this.Ja=Y(function(){return new w_(b,f.i)});
g.H(this,this.Ja);this.ye=Y(function(){return new C_});
this.Aa=Y(function(){return new l_(f.Ja,b)});
g.H(this,this.Aa);this.Ua=Y(function(){return new q_(b,f.B,f.Aa,f.i)});
g.H(this,this.Ua);this.fd=new s0(t0,q1,function(l,m,n,p){return PZ(f.va.get(),l,m,n,p)},this.X,this.Z,this.va,this.C,this.Oa,this.i);
g.H(this,this.fd);this.xc=new Oy(this.X,this.Va,c,this.Oa,a,this.i,this.Ja);g.H(this,this.xc);var h=new f_(b,this.xc,this.Ja,this.i,this.Ha);this.bb=Y(function(){return h});
this.oo=h;this.jb=new r0(this.X,this.Z,this.i,this.bb,this.Ha,this.Ja,this.Oa,this.Sa);g.H(this,this.jb);this.Db=new KZ(this.X,this.Z,this.Ka,this.bb);g.H(this,this.Db);this.yc=new Iy(this.X,this.Z,this.Va,this.i,this.Db,c);g.H(this,this.yc);this.ac=Y(function(){return new I_(f.Nb,f.va,f.C,f.Sa)});
g.H(this,this.ac);this.D=Y(function(){return new J_});
g.H(this,this.D);this.Ba=new y0(a,this.oa);g.H(this,this.Ba);this.u=new z0(a);g.H(this,this.u);this.Wa=new X0(a);g.H(this,this.Wa);this.kb=new A0(a,this.bb);g.H(this,this.kb);this.La=new B0(a,this.Ka,this.Ja,this.i);g.H(this,this.La);this.wb=new Z0(a,this.i);g.H(this,this.wb);this.S=new D0(a);g.H(this,this.S);this.Zc=new E0(a);g.H(this,this.Zc);this.Eb=new p1(a);g.H(this,this.Eb);this.I=Y(function(){return new u0});
g.H(this,this.I);this.wd=Y(function(){return new v0(f.Ja)});
g.H(this,this.wd);this.Hd=Y(function(){return new CMa(f.oa,f.Ua,a,f.B,f.Aa)});
g.H(this,this.Hd);this.Zb=Y(function(){return new L_(f.yc)});
g.H(this,this.Zb);this.fc=Y(function(){return new S_(f.Ua,f.S)});
g.H(this,this.fc);this.bd=Y(function(){return new W0(a,f.S,f.i,f.Sa,f.Ja,f.Ua,f.Gb,f.Ha,f.Aa,f.ye,f.Jd,f.Ka,f.hd,f.Mc,f.dc,f.Za,f.Fc,f.Oa,f.B)});
g.H(this,this.bd);this.qc=Y(function(){return new HMa(f.oa,f.Ja,f.Ua,f.B,f.Aa,f.Wa,f.Eb,f.Za,f.Oa,c)});
g.H(this,this.qc);this.Vd=Y(function(){return new DMa(f.oa)});
g.H(this,this.Vd);this.ue=new F0(a,this.rb,this.K);g.H(this,this.ue);this.xe=new G0(a,this.vb,this.C,this.i,this.K,this.Oa);g.H(this,this.xe);this.Nd={nq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.jb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Db]]),Ql:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.ac],["SLOT_TYPE_ABOVE_FEED",this.D],["SLOT_TYPE_FORECASTING",this.D],["SLOT_TYPE_IN_PLAYER",this.D],["SLOT_TYPE_PLAYER_BYTES",this.D],["SLOT_TYPE_PLAYER_UNDERLAY",this.D]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ba],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Ba],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",
this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Wa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.kb],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.wb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",
this.wb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.S],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.S],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.kb],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Zc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Eb]]),Dm:new Map([["SLOT_TYPE_ABOVE_FEED",this.I],["SLOT_TYPE_AD_BREAK_REQUEST",this.I],["SLOT_TYPE_FORECASTING",this.I],["SLOT_TYPE_IN_PLAYER",this.I],["SLOT_TYPE_PLAYER_BYTES",this.wd],["SLOT_TYPE_PLAYER_UNDERLAY",
this.I]]),gm:new Map([["SLOT_TYPE_ABOVE_FEED",this.Hd],["SLOT_TYPE_AD_BREAK_REQUEST",this.Zb],["SLOT_TYPE_FORECASTING",this.fc],["SLOT_TYPE_PLAYER_BYTES",this.bd],["SLOT_TYPE_IN_PLAYER",this.qc],["SLOT_TYPE_PLAYER_UNDERLAY",this.Vd]])};this.listeners=[this.B.get()];this.cq={yc:this.yc,nk:this.S,im:this.vb.get(),Sf:this.Oa.get(),Ao:this.Ja.get(),xc:this.xc,sj:this.K.get(),hm:this.rb.get(),Ci:this.Ba,eh:this.B.get()}};
KMa=function(a,b,c,d,e,f,h,l,m,n){this.u=a;this.Ja=b;this.Ua=c;this.K=d;this.D=e;this.B=f;this.I=h;this.C=l;this.Oa=m;this.i=n};
LMa=function(a,b,c,d,e){g.E.call(this);var f=this;this.C=Y(function(){return new Py});
g.H(this,this.C);this.K=Y(function(){return new OZ(f.C)});
g.H(this,this.K);this.S=Y(function(){return new LZ});
g.H(this,this.S);this.D=Y(function(){return new HZ(a)});
g.H(this,this.D);this.I=Y(function(){return new a_(f.C)});
g.H(this,this.I);this.fd=Y(function(){return new e_});
g.H(this,this.fd);this.Gb=Y(function(){return new MG(b.V())});
g.H(this,this.Gb);this.Ka=Y(function(){return new I0(b)});
g.H(this,this.Ka);this.Va=Y(function(){return new A_(e)});
g.H(this,this.Va);this.hd=Y(function(){return new wJ(b)});
g.H(this,this.hd);this.Z=Y(function(){return new g_(b)});
g.H(this,this.Z);this.Jd=Y(function(){return new L0(b)});
g.H(this,this.Jd);this.Mc=Y(function(){return new h_(b)});
g.H(this,this.Mc);this.Oa=Y(function(){return new i_(b)});
g.H(this,this.Oa);this.wb=Y(function(){return new H0(d)});
g.H(this,this.wb);this.B=Y(function(){return new LY(f.Oa)});
g.H(this,this.B);this.Ha=Y(function(){return new EZ(f.I,f.K,f.Oa,f.B,null,f.bb)});
g.H(this,this.Ha);this.dc=Y(function(){return new M0(b)});
g.H(this,this.dc);this.jb=Y(function(){return new N0});
g.H(this,this.jb);this.kb=Y(function(){return new B_});
g.H(this,this.kb);this.i=Y(function(){return new v_(b,f.fd,f.Oa)});
g.H(this,this.i);this.nh=new d_(this.Oa,this.B,this.i);g.H(this,this.nh);this.Nb=Y(function(){return new K0(b,f.i,f.Oa,f.Ua)});
this.Ja=Y(function(){return new w_(b,f.i)});
g.H(this,this.Ja);this.Ba=Y(function(){return new l_(f.Ja,b)});
g.H(this,this.Ba);this.Ua=Y(function(){return new q_(b,f.S,f.Ba,f.i)});
g.H(this,this.Ua);this.bd=Y(function(){return new C_});
g.H(this,this.bd);this.Fc=new s0(t0,q1,function(l,m,n,p){return PZ(f.K.get(),l,m,n,p)},this.D,this.I,this.K,this.B,this.Oa,this.i);
g.H(this,this.Fc);this.xc=new Oy(this.D,this.Ha,c,this.Oa,a,this.i,this.Ja);g.H(this,this.xc);var h=new f_(b,this.xc,this.Ja,this.i,this.Nb);this.Wa=Y(function(){return h});
this.oo=h;this.bb=new r0(this.D,this.I,this.i,this.Wa,this.Nb,this.Ja,this.Oa);g.H(this,this.bb);this.rb=new KZ(this.D,this.I,this.Z,this.Wa);g.H(this,this.rb);this.yc=new Iy(this.D,this.I,this.Ha,this.i,this.rb,c);g.H(this,this.yc);this.Eb=Y(function(){return new I_(f.wb,f.K,f.B)});
g.H(this,this.Eb);this.va=Y(function(){return new J_});
g.H(this,this.va);this.La=new y0(a,this.Ka);g.H(this,this.La);this.u=new z0(a);g.H(this,this.u);this.Sa=new X0(a);g.H(this,this.Sa);this.Za=new A0(a,this.Wa);g.H(this,this.Za);this.oa=new B0(a,this.Z,this.Ja,this.i);g.H(this,this.oa);this.X=new D0(a);g.H(this,this.X);this.fc=new E0(a);g.H(this,this.fc);this.vb=new p1(a);g.H(this,this.vb);this.Aa=Y(function(){return new u0});
g.H(this,this.Aa);this.Zc=Y(function(){return new v0(f.Ja)});
g.H(this,this.Zc);this.Db=Y(function(){return new L_(f.yc)});
g.H(this,this.Db);this.Zb=Y(function(){return new S_(f.Ua,f.X)});
g.H(this,this.Zb);this.ac=Y(function(){return new KMa(f.Ka,f.Ja,f.Ua,f.S,f.Ba,f.Sa,f.vb,f.Va,f.Oa,c)});
g.H(this,this.ac);this.qc=Y(function(){return new q0(a,f.X,f.Ua,f.Ba,f.bd,f.Jd,f.i,f.Ja,f.Z,f.hd,f.Mc,f.Gb,f.Va,f.dc,f.Oa)});
g.H(this,this.qc);this.wd=new F0(a,this.kb,this.C);g.H(this,this.wd);this.Hd=new G0(a,this.jb,this.B,this.i,this.C,this.Oa);g.H(this,this.Hd);this.Nd={nq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.bb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Fc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.rb]]),Ql:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Eb],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.va]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.La],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",
this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Sa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Za],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.oa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.oa],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.oa],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.X],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.X],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.Za],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.fc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.vb]]),Dm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Aa],["SLOT_TYPE_FORECASTING",this.Aa],["SLOT_TYPE_IN_PLAYER",this.Aa],["SLOT_TYPE_PLAYER_BYTES",this.Zc]]),gm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Db],["SLOT_TYPE_FORECASTING",this.Zb],["SLOT_TYPE_IN_PLAYER",this.ac],["SLOT_TYPE_PLAYER_BYTES",this.qc]])};this.listeners=[this.S.get()];this.cq={yc:this.yc,nk:null,im:this.jb.get(),
Sf:this.Oa.get(),Ao:this.Ja.get(),xc:this.xc,sj:this.C.get(),hm:this.kb.get(),Ci:this.La,eh:this.S.get()}};
MMa=function(a,b,c,d,e){g.E.call(this);var f=this;this.D=Y(function(){return new Py});
g.H(this,this.D);this.I=Y(function(){return new OZ(f.D)});
g.H(this,this.I);this.K=Y(function(){return new LZ});
g.H(this,this.K);this.X=Y(function(){return new HZ(a)});
g.H(this,this.X);this.Z=Y(function(){return new a_(f.D)});
g.H(this,this.Z);this.dc=Y(function(){return new e_});
g.H(this,this.dc);this.jb=Y(function(){return new MG(b.V())});
g.H(this,this.jb);this.Ba=Y(function(){return new I0(b)});
g.H(this,this.Ba);this.rb=Y(function(){return new A_(e)});
g.H(this,this.rb);this.hd=Y(function(){return new wJ(b)});
g.H(this,this.hd);this.oa=Y(function(){return new g_(b)});
g.H(this,this.oa);this.Jd=Y(function(){return new L0(b)});
g.H(this,this.Jd);this.Mc=Y(function(){return new h_(b)});
g.H(this,this.Mc);this.Oa=Y(function(){return new i_(b)});
g.H(this,this.Oa);this.Za=Y(function(){return new H0(d)});
g.H(this,this.Za);this.B=Y(function(){return new LY(f.Oa)});
g.H(this,this.B);this.Aa=Y(function(){return new EZ(f.Z,f.I,f.Oa,f.B,null,null)});
g.H(this,this.Aa);this.Db=Y(function(){return new M0(b)});
g.H(this,this.Db);this.Sa=Y(function(){return new N0});
g.H(this,this.Sa);this.i=Y(function(){return new v_(b,f.dc,f.Oa)});
g.H(this,this.i);this.nh=new d_(this.Oa,this.B,this.i);g.H(this,this.nh);this.Ja=Y(function(){return new w_(b,f.i)});
g.H(this,this.Ja);this.Va=Y(function(){return new l_(f.Ja,b)});
g.H(this,this.Va);this.Ua=Y(function(){return new q_(b,f.K,f.Va,f.i)});
g.H(this,this.Ua);this.ac=Y(function(){return new C_});
g.H(this,this.ac);this.Nb=new s0(t0,q1,function(l,m,n,p){return PZ(f.I.get(),l,m,n,p)},this.X,this.Z,this.I,this.B,this.Oa,this.i);
g.H(this,this.Nb);this.xc=new Oy(this.X,this.Aa,c,this.Oa,a,this.i,this.Ja);g.H(this,this.xc);var h=new f_(b,this.xc,this.Ja,this.i);this.vb=Y(function(){return h});
this.oo=h;this.Wa=new KZ(this.X,this.Z,this.oa,this.vb);g.H(this,this.Wa);this.yc=new Iy(this.X,this.Z,this.Aa,this.i,this.Wa,c);g.H(this,this.yc);this.kb=Y(function(){return new I_(f.Za,f.I,f.B)});
g.H(this,this.kb);this.va=Y(function(){return new J_});
g.H(this,this.va);this.Ha=new y0(a,this.Ba);g.H(this,this.Ha);this.u=new z0(a);g.H(this,this.u);this.Ka=new A0(a,this.vb);g.H(this,this.Ka);this.La=new B0(a,this.oa,this.Ja,this.i);g.H(this,this.La);this.S=new D0(a);g.H(this,this.S);this.Eb=new E0(a);g.H(this,this.Eb);this.C=Y(function(){return new u0});
g.H(this,this.C);this.Zb=Y(function(){return new v0(f.Ja)});
g.H(this,this.Zb);this.bb=Y(function(){return new L_(f.yc)});
g.H(this,this.bb);this.wb=Y(function(){return new S_(f.Ua,f.S)});
g.H(this,this.wb);this.fc=Y(function(){return new $_(f.Ba,f.Ja,f.Ua,f.K,c)});
g.H(this,this.fc);this.Gb=Y(function(){return new q0(a,f.S,f.Ua,f.Va,f.ac,f.Jd,f.i,f.Ja,f.oa,f.hd,f.Mc,f.jb,f.rb,f.Db,f.Oa)});
g.H(this,this.Gb);this.qc=new G0(a,this.Sa,this.B,this.i,this.D,this.Oa);g.H(this,this.qc);this.Nd={nq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Nb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Wa]]),Ql:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kb],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",
this.va]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ha],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ka],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.S],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.S],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ka],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Eb]]),Dm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C],["SLOT_TYPE_ABOVE_FEED",this.C],["SLOT_TYPE_FORECASTING",this.C],["SLOT_TYPE_IN_PLAYER",this.C],["SLOT_TYPE_PLAYER_BYTES",this.Zb]]),
gm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bb],["SLOT_TYPE_FORECASTING",this.wb],["SLOT_TYPE_IN_PLAYER",this.fc],["SLOT_TYPE_PLAYER_BYTES",this.Gb]])};this.listeners=[this.K.get()];this.cq={yc:this.yc,nk:null,im:this.Sa.get(),Sf:this.Oa.get(),Ao:this.Ja.get(),xc:this.xc,sj:this.D.get(),hm:null,Ci:this.Ha,eh:this.K.get()}};
NMa=function(a,b,c,d,e){g.E.call(this);var f=this;this.C=Y(function(){return new Py});
g.H(this,this.C);this.D=Y(function(){return new OZ(f.C)});
g.H(this,this.D);this.I=Y(function(){return new LZ});
g.H(this,this.I);this.S=Y(function(){return new HZ(a)});
g.H(this,this.S);this.X=Y(function(){return new a_(f.C)});
g.H(this,this.X);this.fc=Y(function(){return new e_});
g.H(this,this.fc);this.kb=Y(function(){return new MG(b.V())});
g.H(this,this.kb);this.Ba=Y(function(){return new I0(b)});
g.H(this,this.Ba);this.jb=Y(function(){return new A_(e)});
g.H(this,this.jb);this.hd=Y(function(){return new wJ(b)});
g.H(this,this.hd);this.Z=Y(function(){return new g_(b)});
g.H(this,this.Z);this.Jd=Y(function(){return new L0(b)});
g.H(this,this.Jd);this.Mc=Y(function(){return new h_(b)});
g.H(this,this.Mc);this.Oa=Y(function(){return new i_(b)});
g.H(this,this.Oa);this.Wa=Y(function(){return new H0(d)});
g.H(this,this.Wa);this.B=Y(function(){return new LY(f.Oa)});
g.H(this,this.B);this.Aa=Y(function(){return new EZ(f.X,f.D,f.Oa,f.B,null,null)});
g.H(this,this.Aa);this.Eb=Y(function(){return new M0(b)});
g.H(this,this.Eb);this.La=Y(function(){return new N0});
g.H(this,this.La);this.i=Y(function(){return new v_(b,f.fc,f.Oa)});
g.H(this,this.i);this.nh=new d_(this.Oa,this.B,this.i);g.H(this,this.nh);this.Ja=Y(function(){return new w_(b,f.i)});
g.H(this,this.Ja);this.Sa=Y(function(){return new l_(f.Ja,b)});
g.H(this,this.Sa);this.Ua=Y(function(){return new q_(b,f.I,f.Sa,f.i)});
g.H(this,this.Ua);this.dc=Y(function(){return new C_});
g.H(this,this.dc);this.Zb=new s0(t0,q1,function(l,m,n,p){return PZ(f.D.get(),l,m,n,p)},this.S,this.X,this.D,this.B,this.Oa,this.i);
g.H(this,this.Zb);this.xc=new Oy(this.S,this.Aa,c,this.Oa,a,this.i,this.Ja);g.H(this,this.xc);var h=new f_(b,this.xc,this.Ja,this.i);this.rb=Y(function(){return h});
this.oo=h;this.Va=new KZ(this.S,this.X,this.Z,this.rb);g.H(this,this.Va);this.yc=new Iy(this.S,this.X,this.Aa,this.i,this.Va,c);g.H(this,this.yc);this.bb=Y(function(){return new I_(f.Wa,f.D,f.B)});
g.H(this,this.bb);this.oa=Y(function(){return new J_});
g.H(this,this.oa);this.Ha=new y0(a,this.Ba);g.H(this,this.Ha);this.u=new z0(a);g.H(this,this.u);this.Ka=new A0(a,this.rb);g.H(this,this.Ka);this.vb=new B0(a,this.Z,this.Ja,this.i);g.H(this,this.vb);this.K=new D0(a);g.H(this,this.K);this.Gb=new E0(a);g.H(this,this.Gb);this.va=Y(function(){return new u0});
g.H(this,this.va);this.ac=Y(function(){return new v0(f.Ja)});
g.H(this,this.ac);this.Za=Y(function(){return new L_(f.yc)});
g.H(this,this.Za);this.wb=Y(function(){return new S_(f.Ua,f.K)});
g.H(this,this.wb);this.Db=Y(function(){return new $_(f.Ba,f.Ja,f.Ua,f.I,c)});
g.H(this,this.Db);this.Nb=Y(function(){return new q0(a,f.K,f.Ua,f.Sa,f.dc,f.Jd,f.i,f.Ja,f.Z,f.hd,f.Mc,f.kb,f.jb,f.Eb,f.Oa)});
g.H(this,this.Nb);this.qc=new G0(a,this.La,this.B,this.i,this.C,this.Oa);g.H(this,this.qc);this.Nd={nq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Zb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Va]]),Ql:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bb],["SLOT_TYPE_FORECASTING",this.oa],["SLOT_TYPE_IN_PLAYER",this.oa],["SLOT_TYPE_PLAYER_BYTES",
this.oa]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ha],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ka],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.vb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ka],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gb]]),Dm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.va],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.ac]]),gm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Za],["SLOT_TYPE_FORECASTING",
this.wb],["SLOT_TYPE_IN_PLAYER",this.Db],["SLOT_TYPE_PLAYER_BYTES",this.Nb]])};this.listeners=[this.I.get()];this.cq={yc:this.yc,nk:null,im:this.La.get(),Sf:this.Oa.get(),Ao:this.Ja.get(),xc:this.xc,sj:this.C.get(),hm:null,Ci:this.Ha,eh:this.I.get()}};
r1=function(a,b,c,d,e,f,h,l,m){Y_.call(this,a,b,c,d,e,f,h,m);this.K=l};
OMa=function(){var a=DLa();a.Pd.push("metadata_type_ad_info_ad_metadata");return a};
PMa=function(a,b,c,d,e,f){this.B=a;this.Ja=b;this.Ua=c;this.C=d;this.u=e;this.i=f};
QMa=function(a,b,c,d,e){g.E.call(this);var f=this;this.C=Y(function(){return new Py});
g.H(this,this.C);this.D=Y(function(){return new OZ(f.C)});
g.H(this,this.D);this.I=Y(function(){return new LZ});
g.H(this,this.I);this.S=Y(function(){return new HZ(a)});
g.H(this,this.S);this.X=Y(function(){return new a_(f.C)});
g.H(this,this.X);this.fc=Y(function(){return new e_});
g.H(this,this.fc);this.jb=Y(function(){return new cMa(b)});
g.H(this,this.jb);this.rb=Y(function(){return new MG(b.V())});
g.H(this,this.rb);this.Ba=Y(function(){return new I0(b)});
g.H(this,this.Ba);this.vb=Y(function(){return new A_(e)});
g.H(this,this.vb);this.hd=Y(function(){return new wJ(b)});
g.H(this,this.hd);this.Z=Y(function(){return new g_(b)});
g.H(this,this.Z);this.Jd=Y(function(){return new L0(b)});
g.H(this,this.Jd);this.Mc=Y(function(){return new h_(b)});
g.H(this,this.Mc);this.Oa=Y(function(){return new i_(b)});
g.H(this,this.Oa);this.Za=Y(function(){return new H0(d)});
g.H(this,this.Za);this.B=Y(function(){return new LY(f.Oa)});
g.H(this,this.B);this.Aa=Y(function(){return new EZ(f.X,f.D,f.Oa,f.B,null,null)});
g.H(this,this.Aa);this.Eb=Y(function(){return new M0(b)});
g.H(this,this.Eb);this.Sa=Y(function(){return new N0});
g.H(this,this.Sa);this.i=Y(function(){return new v_(b,f.fc,f.Oa)});
g.H(this,this.i);this.nh=new d_(this.Oa,this.B,this.i);g.H(this,this.nh);this.Ja=Y(function(){return new w_(b,f.i)});
g.H(this,this.Ja);this.Va=Y(function(){return new l_(f.Ja,b)});
g.H(this,this.Va);this.Ua=Y(function(){return new q_(b,f.I,f.Va,f.i)});
g.H(this,this.Ua);this.dc=Y(function(){return new C_});
g.H(this,this.dc);this.Zb=new s0(QLa,q1,function(l,m,n,p){return VKa(f.D.get(),l,m,n,p)},this.S,this.X,this.D,this.B,this.Oa,this.i);
g.H(this,this.Zb);this.xc=new Oy(this.S,this.Aa,c,this.Oa,a,this.i,this.Ja);g.H(this,this.xc);var h=new f_(b,this.xc,this.Ja,this.i);this.wb=Y(function(){return h});
this.oo=h;this.Wa=new KZ(this.S,this.X,this.Z,this.wb);g.H(this,this.Wa);this.yc=new Iy(this.S,this.X,this.Aa,this.i,this.Wa,c);g.H(this,this.yc);this.kb=Y(function(){return new I_(f.Za,f.D,f.B)});
g.H(this,this.kb);this.oa=Y(function(){return new J_});
g.H(this,this.oa);this.Ha=new y0(a,this.Ba);g.H(this,this.Ha);this.u=new z0(a);g.H(this,this.u);this.Ka=new A0(a,this.wb);g.H(this,this.Ka);this.La=new B0(a,this.Z,this.Ja,this.i);g.H(this,this.La);this.K=new D0(a);g.H(this,this.K);this.Gb=new E0(a);g.H(this,this.Gb);this.va=Y(function(){return new u0});
g.H(this,this.va);this.ac=Y(function(){return new v0(f.Ja)});
g.H(this,this.ac);this.bb=Y(function(){return new L_(f.yc)});
g.H(this,this.bb);this.Db=Y(function(){return new S_(f.Ua,f.K)});
g.H(this,this.Db);this.Nb=Y(function(){return new q0(a,f.K,f.Ua,f.Va,f.dc,f.Jd,f.i,f.Ja,f.Z,f.hd,f.Mc,f.rb,f.vb,f.Eb,f.Oa)});
g.H(this,this.Nb);this.qc=Y(function(){return new PMa(f.Ba,f.Ja,f.Ua,f.I,f.jb,c)});
g.H(this,this.qc);this.Fc=new G0(a,this.Sa,this.B,this.i,this.C,this.Oa);g.H(this,this.Fc);this.Nd={nq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Zb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Wa]]),Ql:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kb],["SLOT_TYPE_FORECASTING",this.oa],["SLOT_TYPE_IN_PLAYER",this.oa],["SLOT_TYPE_PLAYER_BYTES",
this.oa]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ha],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ka],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ka],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gb]]),Dm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.va],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.ac]]),gm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.bb],["SLOT_TYPE_FORECASTING",this.Db],["SLOT_TYPE_IN_PLAYER",this.qc],["SLOT_TYPE_PLAYER_BYTES",this.Nb]])};this.listeners=[this.I.get()];this.cq={yc:this.yc,nk:null,im:this.Sa.get(),Sf:this.Oa.get(),Ao:this.Ja.get(),xc:this.xc,sj:this.C.get(),hm:null,Ci:this.Ha,eh:this.I.get()}};
RMa=function(a,b,c,d,e,f){this.u=a;this.Ja=b;this.Ua=c;this.B=d;this.C=e;this.i=f};
SMa=function(a,b,c,d,e){g.E.call(this);var f=this;this.K=Y(function(){return new Py});
g.H(this,this.K);this.S=Y(function(){return new OZ(f.K)});
g.H(this,this.S);this.C=Y(function(){return new LZ});
g.H(this,this.C);this.D=Y(function(){return new HZ(a)});
g.H(this,this.D);this.I=Y(function(){return new a_(f.K)});
g.H(this,this.I);this.vb=Y(function(){return new e_});
g.H(this,this.vb);this.Gb=Y(function(){return new cMa(b)});
g.H(this,this.Gb);this.Nb=Y(function(){return new MG(b.V())});
g.H(this,this.Nb);this.Ka=Y(function(){return new I0(b)});
g.H(this,this.Ka);this.Zb=Y(function(){return new A_(e)});
g.H(this,this.Zb);this.hd=Y(function(){return new wJ(b)});
g.H(this,this.hd);this.oa=Y(function(){return new g_(b)});
g.H(this,this.oa);this.Jd=Y(function(){return new L0(b)});
g.H(this,this.Jd);this.Mc=Y(function(){return new h_(b)});
g.H(this,this.Mc);this.Oa=Y(function(){return new i_(b)});
g.H(this,this.Oa);this.wb=Y(function(){return new H0(d)});
g.H(this,this.wb);this.B=Y(function(){return new LY(f.Oa)});
g.H(this,this.B);this.Ha=Y(function(){return new EZ(f.I,f.S,f.Oa,f.B,null,f.Wa,3)});
g.H(this,this.Ha);this.fc=Y(function(){return new M0(b)});
g.H(this,this.fc);this.bb=Y(function(){return new N0});
g.H(this,this.bb);this.i=Y(function(){return new v_(b,f.vb,f.Oa)});
g.H(this,this.i);this.nh=new d_(this.Oa,this.B,this.i);g.H(this,this.nh);this.Z=Y(function(){return new K0(b,f.i,f.Oa,f.Ua)});
g.H(this,this.Z);this.Ba=Y(function(){return new $0(b)});
g.H(this,this.Ba);this.Ja=Y(function(){return new w_(b,f.i)});
g.H(this,this.Ja);this.wd=Y(function(){return new C_});
this.kb=Y(function(){return new l_(f.Ja,b)});
g.H(this,this.kb);this.Ua=Y(function(){return new q_(b,f.C,f.kb,f.i)});
g.H(this,this.Ua);this.xc=new Oy(this.D,this.Ha,c,this.Oa,a,this.i,this.Ja);g.H(this,this.xc);var h=new f_(b,this.xc,this.Ja,this.i,this.Z);this.Sa=Y(function(){return h});
this.oo=h;this.Zc=new s0(RLa,q1,function(l,m,n,p){return VKa(f.S.get(),l,m,n,p)},this.D,this.I,this.S,this.B,this.Oa,this.i);
g.H(this,this.Zc);this.Wa=new r0(this.D,this.I,this.i,this.Sa,this.Z,this.Ja,this.Oa,this.Ba);g.H(this,this.Wa);this.rb=new KZ(this.D,this.I,this.oa,this.Sa);g.H(this,this.rb);this.yc=new Iy(this.D,this.I,this.Ha,this.i,this.rb,c);g.H(this,this.yc);this.Eb=Y(function(){return new I_(f.wb,f.S,f.B,f.Ba)});
g.H(this,this.Eb);this.va=Y(function(){return new J_});
g.H(this,this.va);this.La=new y0(a,this.Ka);g.H(this,this.La);this.u=new z0(a);g.H(this,this.u);this.Va=new A0(a,this.Sa);g.H(this,this.Va);this.Za=new B0(a,this.oa,this.Ja,this.i);g.H(this,this.Za);this.jb=new Z0(a,this.i);g.H(this,this.jb);this.X=new D0(a);g.H(this,this.X);this.qc=new E0(a);g.H(this,this.qc);this.Aa=Y(function(){return new u0});
g.H(this,this.Aa);this.bd=Y(function(){return new v0(f.Ja)});
g.H(this,this.bd);this.Db=Y(function(){return new L_(f.yc)});
g.H(this,this.Db);this.ac=Y(function(){return new S_(f.Ua,f.X)});
g.H(this,this.ac);this.Fc=Y(function(){return new W0(a,f.X,f.i,f.Ba,f.Ja,f.Ua,f.vb,f.Z,f.kb,f.wd,f.Jd,f.oa,f.hd,f.Mc,f.Nb,f.Zb,f.fc,f.Oa,f.C)});
g.H(this,this.Fc);this.dc=Y(function(){return new RMa(f.Ka,f.Ja,f.Ua,f.C,f.Gb,c)});
g.H(this,this.dc);this.fd=new G0(a,this.bb,this.B,this.i,this.K,this.Oa);g.H(this,this.fd);this.Nd={nq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Wa],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Zc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.rb]]),Ql:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Eb],["SLOT_TYPE_FORECASTING",this.va],
["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.va]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.La],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Va],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Za],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Za],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.jb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.jb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.X],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.X],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Va],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qc]]),Dm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Aa],["SLOT_TYPE_FORECASTING",this.Aa],["SLOT_TYPE_IN_PLAYER",this.Aa],["SLOT_TYPE_PLAYER_BYTES",this.bd]]),gm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Db],["SLOT_TYPE_FORECASTING",this.ac],["SLOT_TYPE_PLAYER_BYTES",this.Fc],["SLOT_TYPE_IN_PLAYER",this.dc]])};this.listeners=[this.C.get()];this.cq={yc:this.yc,nk:null,im:this.bb.get(),Sf:this.Oa.get(),Ao:this.Ja.get(),xc:this.xc,sj:this.K.get(),hm:null,Ci:this.La,eh:this.C.get()}};
s1=function(a,b,c,d){g.E.call(this);var e=this;this.i=TMa(function(){return e.u},a,b,c,d);
g.H(this,this.i);this.u=(new lZ(this.i)).B();g.H(this,this.u)};
t1=function(a){return a.i.cq};
TMa=function(a,b,c,d,e){try{var f=b.V();if(g.WE(f))var h=new JMa(a,b,c,d,e);else if(g.ZE(f))h=new LMa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===f.deviceParams.c)h=new NMa(a,b,c,d,e);else if(NE(f))h=new MMa(a,b,c,d,e);else if(g.GE(f))h=new QMa(a,b,c,d,e);else if(g.FE(f))h=new SMa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.V(),R("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,interface:e.deviceParams.c,
Mca:e.deviceParams.cver,Lca:e.deviceParams.ctheme,Kca:e.deviceParams.cplayer,cda:e.playerStyle}),new qLa(a,b,c,d)}};
u1=function(a,b){this.i=a;this.nk=b};
v1=function(a){YK.call(this,a)};
w1=function(a,b,c,d,e){eL.call(this,a,b,{G:"div",L:"ytp-ad-timed-pie-countdown-container",U:[{G:"svg",L:"ytp-ad-timed-pie-countdown",W:{viewBox:"0 0 20 20"},U:[{G:"circle",L:"ytp-ad-timed-pie-countdown-background",W:{r:"10",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-inner",W:{r:"5",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-outer",W:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e);this.C=this.Fa("ytp-ad-timed-pie-countdown-inner");this.B=Math.ceil(10*Math.PI);
this.hide()};
x1=function(a,b,c,d,e,f){AK.call(this,a,b,{G:"div",L:"ytp-ad-action-interstitial",W:{tabindex:"0"},U:[{G:"div",L:"ytp-ad-action-interstitial-background-container"},{G:"div",L:"ytp-ad-action-interstitial-slot",U:[{G:"div",L:"ytp-ad-action-interstitial-card",U:[{G:"div",L:"ytp-ad-action-interstitial-image-container"},{G:"div",L:"ytp-ad-action-interstitial-headline-container"},{G:"div",L:"ytp-ad-action-interstitial-description-container"},{G:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d);this.Dg=e;this.Qi=f;this.navigationEndpoint=this.u=this.skipButton=this.B=this.actionButton=null;this.Ka=this.Fa("ytp-ad-action-interstitial-image-container");this.D=new UK(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-action-interstitial-image");g.H(this,this.D);this.D.Ea(this.Ka);this.Ha=this.Fa("ytp-ad-action-interstitial-headline-container");this.S=new cL(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-action-interstitial-headline");g.H(this,this.S);this.S.Ea(this.Ha);
this.Ba=this.Fa("ytp-ad-action-interstitial-description-container");this.I=new cL(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-action-interstitial-description");g.H(this,this.I);this.I.Ea(this.Ba);this.Wa=this.Fa("ytp-ad-action-interstitial-background-container");this.Z=new UK(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-action-interstitial-background",!0);g.H(this,this.Z);this.Z.Ea(this.Wa);this.La=this.Fa("ytp-ad-action-interstitial-action-button-container");this.C=new Kx;g.H(this,this.C);this.hide()};
UMa=function(a){var b=g.Cg("html5-video-player");b&&g.M(b,"ytp-ad-display-override",a)};
y1=function(a,b,c,d){AK.call(this,a,b,{G:"div",L:"ytp-ad-overlay-slot",U:[{G:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.S=[];this.Za=this.Ba=this.D=this.Wa=this.Ka=null;this.La=!1;this.I=null;this.Z=0;a=this.Fa("ytp-ad-overlay-container");this.Ha=new nL(a,45E3,6E3,.3,.4);g.H(this,this.Ha);this.C=VMa(this);g.H(this,this.C);this.C.Ea(a);this.B=WMa(this);g.H(this,this.B);this.B.Ea(a);this.u=XMa(this);g.H(this,this.u);this.u.Ea(a);this.hide()};
VMa=function(a){var b=new g.zK({G:"div",L:"ytp-ad-text-overlay",U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[NK(z1)]}]},{G:"div",L:"ytp-ad-overlay-title",ya:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",ya:"{{description}}"},{G:"div",Ga:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],ya:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){return A1(a,b.element,
c)});
a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){return A1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.Fi);b.hide();return b};
WMa=function(a){var b=new g.zK({G:"div",Ga:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[NK(z1)]}]},{G:"div",L:"ytp-ad-overlay-text-image",U:[{G:"img",W:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",ya:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",ya:"{{description}}"},{G:"div",Ga:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
ya:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){return A1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){return A1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.Fi);a.T(b.Fa("ytp-ad-overlay-text-image"),"click",a.cW);b.hide();return b};
XMa=function(a){var b=new g.zK({G:"div",L:"ytp-ad-image-overlay",U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[NK(z1)]}]},{G:"div",L:"ytp-ad-overlay-image",U:[{G:"img",W:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Fa("ytp-ad-overlay-image"),"click",function(c){return A1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.Fi);b.hide();return b};
B1=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.jy(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.Cg("video-ads ytp-ad-module")||null,null==b)g.jy(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ba=new g.zK({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.H(a,a.Ba),a.Ba.Ea(b),b=new bL(a.api,a.Xa,a.layoutId,a.i,a.Ba.element,!1),g.H(a,b),b.init(KG("ad-info-hover-text-button"),c,
a.macros),a.I){b.Ea(a.I,0);b.subscribe("f",a.wT,a);b.subscribe("e",a.AF,a);a.T(a.I,"click",a.xT);var d=g.Cg("ytp-ad-button",b.element);a.T(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.La=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.Za=b}else g.jy(Error("Ad info button container within overlay ad was not present."))}else g.ky(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
YMa=function(a){return a.D&&a.D.closeButton&&a.D.closeButton.buttonRenderer&&(a=a.D.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
ZMa=function(a,b){if(C1(a,D1)||a.api.Je())return!1;var c=BK(b.title),d=BK(b.description);if(g.jb(c)||g.jb(d))return!1;a.Og(a.C.element,b.trackingParams||null);a.C.Ra("title",BK(b.title));a.C.Ra("description",BK(b.description));a.C.Ra("displayUrl",BK(b.displayUrl));b.navigationEndpoint&&Yb(a.S,b.navigationEndpoint);a.C.show();a.Ha.start();a.gb(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.Z++});
return!0};
$Ma=function(a,b){if(C1(a,D1)||a.api.Je())return!1;var c=BK(b.title),d=BK(b.description);if(g.jb(c)||g.jb(d))return!1;a.Og(a.B.element,b.trackingParams||null);a.B.Ra("title",BK(b.title));a.B.Ra("description",BK(b.description));a.B.Ra("displayUrl",BK(b.displayUrl));a.B.Ra("imageUrl",fua(b.image));b.navigationEndpoint&&Yb(a.S,b.navigationEndpoint);a.Wa=b.imageNavigationEndpoint||null;a.B.show();a.Ha.start();a.gb(a.B.element,!0);a.T(a.B.element,"mouseover",function(){a.Z++});
return!0};
aNa=function(a,b){if(a.api.Je())return!1;var c=gua(b.image),d=c;c.width<D1.width&&(d=D1);if(0===c.width||0===c.height||C1(a,d))return!1;a.Og(a.u.element,b.trackingParams||null);a.u.Ra("imageUrl",fua(b.image));a.u.Ra("width",c.width);a.u.Ra("height",c.height);b.navigationEndpoint&&Yb(a.S,b.navigationEndpoint);b=a.u.Fa("ytp-ad-image-overlay");g.fm(b,"max-width",c.width+"px");a.u.show();a.gb(a.u.element,!0);a.T(a.u.element,"mouseover",function(){a.Z++;a.api.jF("invideo-overlay",a.layoutId)});
a.T(a.u.element,"mouseout",function(){a.api.iF("invideo-overlay",a.layoutId)});
return!0};
C1=function(a,b){var c=a.api.eb().pg(),d=a.api.nj(!0,!1);return(b=i1(c,c.height-(d.height+d.top),b))?(a.Ka&&b&&(c=g.Je(a.macros),c.ERRORCODE=b.Cx.toString(),c.ERROR_MSG=b.errorMessage,a.Xa.executeCommand(a.Ka,c)),!0):!1};
A1=function(a,b,c){var d=g.Je(a.macros),e=g.um(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.sm(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
d.NX={toString:function(){return f.x.toString()}};
d.I_Y={toString:function(){return f.y.toString()}};
d.NY={toString:function(){return f.y.toString()}};
d.NM={toString:function(){return a.Z.toString()}};
a.S.forEach(function(h){return a.Xa.executeCommand(h,d)});
a.api.pauseVideo()};
bNa=function(a,b){a=a.api.getRootNode();g.M(a,"ytp-ad-overlay-open",b);g.M(a,"ytp-ad-overlay-closed",!b)};
E1=function(a,b,c,d,e){eL.call(this,a,b,{G:"div",L:"ytp-ad-message-overlay",U:[{G:"div",L:"ytp-ad-message-slot"}]},"ad-message",c,d,e);var f=this;this.Z=-1;this.C=0;this.S=!1;this.Ba=this.Fa("ytp-ad-message-slot");this.B=new g.zK({G:"span",L:"ytp-ad-message-container"});this.B.Ea(this.Ba);g.H(this,this.B);this.messageText=new cL(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-message-text");g.H(this,this.messageText);this.messageText.Ea(this.B.element);this.I=new g.hL(this.B,400,!1,100,function(){return f.hide()});
g.H(this,this.I);this.hide()};
cNa=function(a,b){a=a.api.getRootNode();g.M(a,"ytp-ad-overlay-open",b);g.M(a,"ytp-ad-overlay-closed",!b)};
F1=function(a,b,c,d){AK.call(this,a,b,{G:"div",L:"ytp-ad-underlay-companion",U:[{G:"div",L:"ytp-ad-underlay-side-container",U:[{G:"div",L:"ytp-ad-underlay-image-container"},{G:"div",L:"ytp-ad-underlay-description-container"},{G:"div",L:"ytp-ad-underlay-headline-container"},{G:"div",L:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",c,d);this.actionButton=null;this.Ba=this.Fa("ytp-ad-underlay-image-container");this.u=new UK(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-underlay-image");
g.H(this,this.u);this.u.Ea(this.Ba);this.Z=this.Fa("ytp-ad-underlay-headline-container");this.C=new cL(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-underlay-headline");g.H(this,this.C);this.C.Ea(this.Z);this.S=this.Fa("ytp-ad-underlay-description-container");this.B=new cL(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-underlay-description");g.H(this,this.B);this.B.Ea(this.S);this.I=this.Fa("ytp-ad-underlay-action-button-container");this.D=this.Fa("ytp-ad-underlay-side-container");this.hide()};
dNa=function(a){var b=g.Cg("html5-video-player");b&&g.M(b,"ytp-ad-display-override",a)};
G1=function(a,b,c,d){AK.call(this,a,b,{G:"div",L:"ytp-ad-survey-answer"},"survey-answer",c,d);this.u=null;this.toggledLoggingParams="";this.answer=this.Fa("ytp-ad-survey-answer");this.hide()};
H1=function(a,b,c,d){AK.call(this,a,b,{G:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d);this.button=null;this.u=this.Fa("ytp-ad-survey-none-of-the-above");this.hide()};
I1=function(a,b,c,d){OK.call(this,a,b,c,d,["ytp-ad-survey-submit-button"],"survey-submit")};
J1=function(a,b,c,d,e,f){AK.call(this,a,b,{G:"div",L:"ytp-ad-survey-player-overlay",U:[{G:"div",L:"ytp-ad-survey-player-overlay-instream-info"},{G:"div",L:"ytp-ad-survey-player-overlay-skip-preview-submit",U:[{G:"div",L:"ytp-ad-survey-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-survey-player-overlay-submit"}]},{G:"div",L:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d);this.C=e;this.Qi=f;this.B=this.u=null;this.D=this.Fa("ytp-ad-survey-player-overlay-instream-info");
this.I=this.Fa("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Fa("ytp-ad-survey-player-overlay-submit");g.H(this,this.C);this.hide()};
K1=function(a,b,c,d,e,f,h){AK.call(this,a,b,{G:"div",L:"ytp-ad-survey-question",U:[{G:"div",Ga:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{G:"div",Ga:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{G:"div",Ga:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{G:"div",L:"ytp-ad-survey-question-background"}]},e,c,d);this.Dg=f;this.Qi=h;this.D=null;this.B=[];this.u=null;this.question=this.Fa("ytp-ad-survey-question");this.S=this.Fa("ytp-ad-survey-question-background");
this.questionText=this.Fa("ytp-ad-survey-question-text");this.answers=this.Fa("ytp-ad-survey-answers");this.playerOverlay=this.Fa("ytp-ad-survey-question-player-overlay");this.C=g.Sa()};
eNa=function(a,b,c){var d=new G1(a.api,a.Xa,a.layoutId,a.i);d.Ea(a.answers);d.init(KG("survey-answer"),b,c);a.B.push(d)};
gNa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&TK(c)||"",g.jb(c)?g.ky(Error("Found ThumbnailDetails without valid image URL")):g.fm(a.S,"backgroundImage","url("+c+")"));fNa(a,b)}else g.jy(Error("addCommonComponents() needs to be called before starting countdown."))};
fNa=function(a,b){if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.jy(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.Sa();a.u=a.Dg?new tL(a.api,b.durationMilliseconds):new uL(b.durationMilliseconds,a.Xa,!0);g.H(a,a.u);if(b.timeoutCommands&&!a.Dg){var c=b.timeoutCommands;a.u.subscribe("g",function(){c.forEach(function(e){return a.Xa.executeCommand(e,a.macros)})})}if(a.u&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=
new J1(a.api,a.Xa,a.layoutId,a.i,a.u,a.Qi);
d.Ea(a.playerOverlay);d.init(KG("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.D=d;g.H(a,d);a.wN()}catch(e){g.jy(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.jy(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.u&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new DL(a.api,a.u),b.Ea(a.playerOverlay),g.H(a,b)):g.jy(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
hNa=function(a){function b(c){return{toString:function(){return c()}}}
a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()).toString()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return(g.Sa()-a.C).toString()})};
L1=function(a,b,c,d,e,f){K1.call(this,a,b,c,d,"survey-question-multi-select",e,f);this.noneOfTheAbove=null;this.submitEndpoints=[];this.I=null;this.hide()};
iNa=function(a,b,c){a.noneOfTheAbove=new H1(a.api,a.Xa,a.layoutId,a.i);a.noneOfTheAbove.Ea(a.answers);a.noneOfTheAbove.init(KG("survey-none-of-the-above"),b,c)};
jNa=function(a){a.B.forEach(function(b){b.u.toggleButton(!1)});
M1(a,!0)};
M1=function(a,b){var c=a.D;a=kNa(a);b=void 0===b?!1:b;c.u&&(a?c.u.hide():c.u.show(),b&&c.u instanceof pL&&!c.u.I&&Qua(c.u,!1));c.B&&(a?c.B.show():c.B.hide())};
kNa=function(a){return a.B.some(function(b){return b.u.isToggled()})||a.noneOfTheAbove.button.isToggled()};
N1=function(a,b,c,d,e,f){K1.call(this,a,b,c,d,"survey-question-single-select",e,f);this.hide()};
O1=function(a,b,c,d,e,f){AK.call(this,a,b,{G:"div",L:"ytp-ad-survey",U:[{G:"div",L:"ytp-ad-survey-questions"}]},"survey",c,d);this.Dg=e;this.Qi=f;this.questions=[];this.u=this.Fa("ytp-ad-survey-questions");this.hide()};
P1=function(a,b,c,d,e,f){AK.call(this,a,b,{G:"div",L:"ytp-ad-survey-interstitial",U:[{G:"div",L:"ytp-ad-survey-interstitial-contents",U:[{G:"div",L:"ytp-ad-survey-interstitial-logo",U:[{G:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d);this.Dg=e;this.uG=f;this.u=this.actionButton=null;this.interstitial=this.Fa("ytp-ad-survey-interstitial");this.B=this.Fa("ytp-ad-survey-interstitial-contents");this.text=this.Fa("ytp-ad-survey-interstitial-text");
this.logoImage=this.Fa("ytp-ad-survey-interstitial-logo-image");this.transition=new g.hL(this,500,!1,300);g.H(this,this.transition)};
lNa=function(a,b){b=b&&TK(b)||"";if(g.jb(b))g.ky(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.Cc&&10>document.documentMode)c=Of;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.Ng("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=fha(d.style)}b=Taa(c,Pf({"background-image":'url("'+b+'")'}));a.style.cssText=Lf(b)}};
mNa=function(a){var b=g.Cg("html5-video-player");b&&g.M(b,"ytp-ad-display-override",a)};
Q1=function(a,b,c){YK.call(this,a);this.api=a;this.u={};this.K=b;a=new g.X({G:"div",Ga:["video-ads","ytp-ad-module"]});g.H(this,a);uE&&g.L(a.element,"ytp-ads-tiny-mode");this.I=new tK(a.element);g.H(this,this.I);g.yM(this.api,a.element,4);fLa(c)&&(c=new g.X({G:"div",Ga:["ytp-ad-underlay"]}),g.H(this,c),this.B=new tK(c.element),g.H(this,this.B),g.yM(this.api,c.element,0));g.H(this,wua())};
nNa=function(a,b){a=He(a.u,b.id,null);null==a&&g.ky(Error("Component not found for element id: "+b.id));return a||null};
R1=function(a){g.LM.call(this,a);var b=this;this.u=this.Xa=null;this.created=!1;this.Yo=new aK(this.player);this.B=function(){function d(){return b.Xa}
if(null!=b.u)return b.u;var e=Hta({rp:a.getVideoData(1)});e=new rJa({XQ:new u1(function(){return b.Xa},t1(b.i).nk),
ep:e.SR(),nR:d,lT:d,Ci:t1(b.i).Ci,Mh:e.cE(),J:b.player,Sf:t1(b.i).Sf,Ua:b.i.i.Ua,eh:t1(b.i).eh,Mc:b.i.i.Mc});b.u=e.SP;return b.u};
this.i=new s1(this.player,this,this.Yo,this.B);g.H(this,this.i);var c=a.V();!LE(c)||g.FE(c)||NE(c)||(g.H(this,new Q1(a,function(){return b.Xa},t1(this.i).Sf)),g.H(this,new v1(a)))};
oNa=function(a){a.created!==a.loaded&&R("Created and loaded are out of sync")};
S1=function(a,b){b===a.Ir&&(a.Ir=void 0)};
pNa=function(a){a.Xa?t1(a.i).xc.rE()||a.Xa.rE()||t1(a.i).Ao.zp():R("AdService is null when calling maybeUnlockPrerollIfReady")};
qNa=function(a){a=g.r(t1(a.i).eh.Qh.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.qb&&"core"===b.ib)return!0;return!1};
rNa=function(a){a=g.r(t1(a.i).eh.Qh.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
Hka=function(a,b,c){c=void 0===c?"":c;var d=t1(a.i).Sf,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.tf()||!1;d=sNa(b,d,f,e);Kka(t1(a.i).yc,c,d.wA,b);a.Xa&&0<d.Pu.length&&(a=a.Xa,b=d.Pu,b=Ota(a,b),b=Pta(a,b),rK(a,b))};
sNa=function(a,b,c,d){var e={Pu:[],wA:[]};a=g.r(a);for(var f=a.next();!f.done;f=a.next())if((f=f.value)&&null!=f.renderer){var h=f.renderer,l=f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind,m=b,n=d;c||null!=h.instreamSurveyAdRenderer||null!=h.sandwichedLinearAdRenderer&&null!=h.sandwichedLinearAdRenderer.linearAd&&null!=h.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer?m=!0:n&&!GZ(m)?m=!1:null!=h.clientForecastingAdRenderer||null!=h.actionCompanionAdRenderer||null!=
h.imageCompanionAdRenderer||null!=h.shoppingCompanionCarouselRenderer||null!=h.invideoOverlayAdRenderer||null!=h.adBreakServiceRenderer&&("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==l||GZ(m))?m=!0:null!=h.instreamVideoAdRenderer||null!=h.remoteSlotsRenderer?((h=n)||(h=g.YE(m.J.V())?!1:LE(m.J.V())?m.J.V().N("html5_enable_single_video_vod_ivar_on_pacf"):g.ME(m.J.V())?m.J.V().N("html5_enable_single_video_vod_ivar_on_pacf_tv"):!1),m=h):m=h.linearAdSequenceRenderer&&h.linearAdSequenceRenderer.linearAds?
h.linearAdSequenceRenderer.adStart?m.J.V().N("html5_enable_vod_lasr_with_notify_pacf"):n||XY(m):null!=h.sandwichedLinearAdRenderer?m.J.V().N("html5_enable_vod_slar_with_notify_pacf"):!1;m?e.wA.push(f):e.Pu.push(f)}return e};
tNa=function(){if(!g.Cc)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.T1=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=zr(a);return b.parseFromString(g.Uf(a),"application/xml")}if(uNa){b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
g.U1=function(a,b){var c="ytp-miniplayer-button-bottom-right",d={G:"svg",W:{height:"18px",version:"1.1",viewBox:"0 0 22 18",width:"22px"},U:[{G:"g",W:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},U:[{G:"g",W:{transform:"translate(-1.000000, -3.000000)"},U:[{G:"polygon",W:{points:"0 0 24 0 24 24 0 24"}},{G:"path",W:{d:"M19,7 L5,7 L5,17 L19,17 L19,7 Z M23,19 L23,4.98 C23,3.88 22.1,3 21,3 L3,3 C1.9,3 1,3.88 1,4.98 L1,19 C1,20.1 1.9,21 3,21 L21,21 C22.1,21 23,20.1 23,19 Z M21,19.02 L3,19.02 L3,4.97 L21,4.97 L21,19.02 Z",
fill:"#fff","fill-rule":"nonzero"}}]}]}]},e="\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430";a.V().N("kevlar_miniplayer_expand_top")&&(c="ytp-miniplayer-button-top-left",d={G:"svg",W:{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px"},U:[{G:"g",W:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},U:[{G:"g",W:{transform:"translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000) "},
U:[{G:"path",W:{d:"M19,19 L5,19 L5,5 L12,5 L12,3 L5,3 C3.89,3 3,3.9 3,5 L3,19 C3,20.1 3.89,21 5,21 L19,21 C20.1,21 21,20.1 21,19 L21,12 L19,12 L19,19 Z M14,3 L14,5 L17.59,5 L7.76,14.83 L9.17,16.24 L19,6.41 L19,10 L21,10 L21,3 L14,3 Z",fill:"#fff","fill-rule":"nonzero"}}]}]}]},e="\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c");g.X.call(this,{G:"button",Ga:["ytp-miniplayer-expand-watch-page-button","ytp-button",c],W:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-expand-watch-page-button"},
U:[d]});this.J=a;this.Qa("click",this.onClick,this);this.Ra("title",lN(a,e,"i"));g.he(this,g.JN(b.hc(),this.element))};
aa=[];fa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
ea=aaa(this);ha("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}
function c(f,h){this.i=f;fa(this,"description",{configurable:!0,writable:!0,value:h})}
if(a)return a;c.prototype.toString=function(){return this.i};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
ha("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&fa(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ia(da(this))}})}return a});
var vNa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)ma(d,e)&&(a[e]=d[e])}return a};
ha("Object.assign",function(a){return a||vNa});
var na="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},wNa=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=na(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),V1;
if("function"==typeof Object.setPrototypeOf)V1=Object.setPrototypeOf;else{var W1;a:{var xNa={a:!0},yNa={};try{yNa.__proto__=xNa;W1=yNa.a;break a}catch(a){}W1=!1}V1=W1?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=V1;
pa.prototype.S=function(a){this.u=a};
pa.prototype.return=function(a){this.B={return:a};this.i=this.D};
pa.prototype.fb=function(a){this.i=a};
ha("Reflect",function(a){return a?a:{}});
ha("Reflect.construct",function(){return wNa});
ha("Reflect.setPrototypeOf",function(a){return a?a:oa?function(b,c){try{return oa(b,c),!0}catch(d){return!1}}:null});
ha("Promise",function(a){function b(h){this.i=0;this.B=void 0;this.u=[];this.K=!1;var l=this.C();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.i=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.u=function(h){if(null==this.i){this.i=[];var l=this;this.B(function(){l.D()})}this.i.push(h)};
var e=ea.setTimeout;c.prototype.B=function(h){e(h,0)};
c.prototype.D=function(){for(;this.i&&this.i.length;){var h=this.i;this.i=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.C(n)}}}this.i=null};
c.prototype.C=function(h){this.B(function(){throw h;})};
b.prototype.C=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.va),reject:h(this.D)}};
b.prototype.va=function(h){if(h===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Ba(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=!0;break a;default:l=!1}l?this.oa(h):this.I(h)}};
b.prototype.oa=function(h){var l=void 0;try{l=h.then}catch(m){this.D(m);return}"function"==typeof l?this.Ha(l,h):this.I(h)};
b.prototype.D=function(h){this.S(2,h)};
b.prototype.I=function(h){this.S(1,h)};
b.prototype.S=function(h,l){if(0!=this.i)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.i);this.i=h;this.B=l;2===this.i&&this.Aa();this.X()};
b.prototype.Aa=function(){var h=this;e(function(){if(h.Z()){var l=ea.console;"undefined"!==typeof l&&l.error(h.B)}},1)};
b.prototype.Z=function(){if(this.K)return!1;var h=ea.CustomEvent,l=ea.Event,m=ea.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=ea.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.B;return m(h)};
b.prototype.X=function(){if(null!=this.u){for(var h=0;h<this.u.length;++h)f.u(this.u[h]);this.u=null}};
var f=new c;b.prototype.Ba=function(h){var l=this.C();h.uy(l.resolve,l.reject)};
b.prototype.Ha=function(h,l){var m=this.C();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(t,u){return"function"==typeof t?function(v){try{n(t(v))}catch(y){p(y)}}:u}
var n,p,q=new b(function(t,u){n=t;p=u});
this.uy(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.uy=function(h,l){function m(){switch(n.i){case 1:h(n.B);break;case 2:l(n.B);break;default:throw Error("Unexpected state: "+n.i);}}
var n=this;null==this.u?f.u(m):this.u.push(m);this.K=!0};
b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
b.race=function(h){return new b(function(l,m){for(var n=g.r(h),p=n.next();!p.done;p=n.next())d(p.value).uy(l,m)})};
b.all=function(h){var l=g.r(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(v){return function(y){t[v]=y;u--;0==u&&n(t)}}
var t=[],u=0;do t.push(void 0),u++,d(m.value).uy(q(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ha("Array.prototype.find",function(a){return a?a:function(b,c){return Ca(this,b,c).HO}});
ha("WeakMap",function(a){function b(m){this.i=(l+=Math.random()+1).toString();if(m){m=g.r(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!ma(m,h)){var n=new c;fa(m,h,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(q){return!1}}())return a;
var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!ma(m,h))throw Error("WeakMap key fail: "+m);m[h][this.i]=n;return this};
b.prototype.get=function(m){return d(m)&&ma(m,h)?m[h][this.i]:void 0};
b.prototype.has=function(m){return d(m)&&ma(m,h)&&ma(m[h],this.i)};
b.prototype.delete=function(m){return d(m)&&ma(m,h)&&ma(m[h],this.i)?delete m[h][this.i]:!1};
return b});
ha("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.i;return ia(function(){if(n){for(;n.head!=l.i;)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++h,f.set(m,n)):n="p_"+m;var p=l.data_[n];if(p&&ma(l.data_,n))for(l=0;l<p.length;l++){var q=p[l];if(m!==m&&q.key!==q.key||m===q.key)return{id:n,list:p,index:l,entry:q}}return{id:n,list:p,index:-1,entry:void 0}}
function e(l){this.data_={};this.i=b();this.size=0;if(l){l=g.r(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.r([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(q){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this.data_[n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this.i,previous:this.i.previous,head:this.i,key:l,value:m},n.list.push(n.entry),this.i.previous.next=n.entry,this.i.previous=n.entry,this.size++);return this};
e.prototype.delete=function(l){l=d(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.data_[l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.data_={};this.i=this.i.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).entry};
e.prototype.get=function(l){return(l=d(this,l).entry)&&l.value};
e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
e.prototype.keys=function(){return c(this,function(l){return l.key})};
e.prototype.values=function(){return c(this,function(l){return l.value})};
e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
ha("Array.prototype.entries",function(a){return a?a:function(){return Da(this,function(b,c){return[b,c]})}});
ha("Object.setPrototypeOf",function(a){return a||oa});
ha("Array.prototype.keys",function(a){return a?a:function(){return Da(this,function(b){return b})}});
ha("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ea(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
ha("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ea(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});
ha("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ha("String.prototype.repeat",function(a){return a?a:function(b){var c=Ea(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
ha("Set",function(a){function b(c){this.i=new Map;if(c){c=g.r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.i.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.r([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.i.set(c,c);this.size=this.i.size;return this};
b.prototype.delete=function(c){c=this.i.delete(c);this.size=this.i.size;return c};
b.prototype.clear=function(){this.i.clear();this.size=0};
b.prototype.has=function(c){return this.i.has(c)};
b.prototype.entries=function(){return this.i.entries()};
b.prototype.values=function(){return this.i.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.i.forEach(function(f){return c.call(d,f,f,e)})};
return b});
ha("Array.prototype.values",function(a){return a?a:function(){return Da(this,function(b,c){return c})}});
ha("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
ha("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)ma(b,d)&&c.push([d,b[d]]);return c}});
ha("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;
})})}});
ha("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ca(this,b,c).UK}});
ha("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
ha("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ha("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
ha("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ea(this,b,"includes").indexOf(b,c||0)}});
ha("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
ha("Int8Array.prototype.fill",Fa);ha("Uint8Array.prototype.fill",Fa);ha("Uint8ClampedArray.prototype.fill",Fa);ha("Int16Array.prototype.fill",Fa);ha("Uint16Array.prototype.fill",Fa);ha("Int32Array.prototype.fill",Fa);ha("Uint32Array.prototype.fill",Fa);ha("Float32Array.prototype.fill",Fa);ha("Float64Array.prototype.fill",Fa);
ha("Array.prototype.flat",function(a){return a?a:function(b){b=void 0===b?1:b;for(var c=[],d=0;d<this.length;d++){var e=this[d];Array.isArray(e)&&0<b?(e=Array.prototype.flat.call(e,b-1),c.push.apply(c,e)):c.push(e)}return c}});
ha("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ha("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ha("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ma(b,d)&&c.push(b[d]);return c}});
ha("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ea(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
ha("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});
ha("WeakSet",function(a){function b(c){this.i=new WeakMap;if(c){c=g.r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
b.prototype.add=function(c){this.i.set(c,!0);return this};
b.prototype.has=function(c){return this.i.has(c)};
b.prototype.delete=function(c){return this.i.delete(c)};
return b});
ha("Number.parseInt",function(a){return a||parseInt});
ha("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
Qi=Qi||{};g.B=this||self;Oa="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.Ta(Va,Error);Va.prototype.name="CustomError";var wg;g.Ta(Wa,Va);Wa.prototype.name="AssertionError";var Rd,Baa="undefined"!==typeof TextDecoder;var vb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},kb=/&/g,lb=/</g,nb=/>/g,ob=/"/g,qb=/'/g,sb=/\x00/g,kaa=/[\x00&<>"']/;var zNa,ANa=g.Ha("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");zNa=null!=ANa?ANa:!1;a:{var BNa=g.B.navigator;if(BNa){var CNa=BNa.userAgent;if(CNa){g.Ab=CNa;break a}}g.Ab=""}var yb;if(zNa){var DNa=g.B.navigator;yb=DNa?DNa.userAgentData||null:null}else yb=null;var Ob,Om,Jn;Ob=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.ENa=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
0>c&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.jc=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.ap=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in h){var m=h[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.Mm=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f="string"===typeof a?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
return e};
Om=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.jc)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Jn=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;
return!1};
g.Nm=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};nc[" "]=g.Ia;var hm,$F,jJa,FNa,GNa,HNa,tE,uE,X1;g.vE=yb?!1:Bb("Opera");g.Cc=yb?!1:Bb("Trident")||Bb("MSIE");g.Pw=Bb("Edge");g.bF=g.Pw||g.Cc;hm=Bb("Gecko")&&!(ub(g.Ab,"WebKit")&&!Bb("Edge"))&&!(Bb("Trident")||Bb("MSIE"))&&!Bb("Edge");g.Ig=ub(g.Ab,"WebKit")&&!Bb("Edge");$F=Bb("Macintosh");jJa=Bb("Windows");g.Cu=Bb("Android");FNa=Gb();GNa=Bb("iPad");HNa=Bb("iPod");tE=Hb();uE=ub(g.Ab,"KaiOS");
a:{var Y1="",Z1=function(){var a=g.Ab;if(hm)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.Pw)return/Edge\/([\d\.]+)/.exec(a);if(g.Cc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Ig)return/WebKit\/(\S+)/.exec(a);if(g.vE)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
Z1&&(Y1=Z1?Z1[1]:"");if(g.Cc){var $1=qc();if(null!=$1&&$1>parseFloat(Y1)){X1=String($1);break a}}X1=Y1}var rc=X1,saa={},a2;if(g.B.document&&g.Cc){var INa=qc();a2=INa?INa:parseInt(rc,10)||void 0}else a2=void 0;var taa=a2;var EE,DG;g.mj=Db();EE=Gb()||Bb("iPod");DG=Bb("iPad");g.wE=Bb("Android")&&!(Eb()||Db()||(yb?0:Bb("Opera"))||Bb("Silk"));g.lj=Eb();g.nj=Fb()&&!Hb();var wc={},Ec=null;var Hc="function"===typeof Uint8Array,Jc;Ic.prototype.isEmpty=function(){return null==this.i};var uaa="function"===typeof Uint8Array.prototype.slice,ad=0,bd=0;Nc.prototype.clear=function(){this.u=null;this.i=this.B=this.D=0;this.Fl=this.C=!1};
Nc.prototype.reset=function(){this.i=this.D};
Nc.prototype.advance=function(a){this.i+=a;Oc(this)};
var Rc=[];Sc.prototype.reset=function(){this.i.reset();this.u=this.B=-1};
Sc.prototype.advance=function(a){this.i.advance(a)};
var TT=[];Wc.prototype.push=function(a){if(!(this.u+1<this.i.length)){var b=this.i;this.i=new Uint8Array(Math.ceil(1+2*this.i.length));this.i.set(b)}this.i[this.u++]=a};
Wc.prototype.length=function(){return this.u};
Wc.prototype.end=function(){var a=this.i,b=this.u;this.u=0;return Kc(a,0,b)};var fd="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;var Ed;var nd;var pd=Object.freeze(gd([]));rd.prototype.toJSON=function(){var a=this.rg;return Ed?a:kd(a,md)};
rd.prototype.toString=function(){return this.rg.toString()};
rd.prototype.I=function(a){var b=a.u,c=a.i;return a.isRepeated?c?Bd(this,c,b,!0):ud(this,b,!0):c?Ad(this,c,b,void 0,!0):sd(this,b,!0)};
rd.prototype.clone=function(){var a=this.constructor,b=kd(this.rg,waa);a=od(a,b);Gd(a,this);return a};var Jd=Symbol(),Ld=Symbol();g.w(Xd,rd);g.w(Yd,rd);g.w(Zd,rd);g.w($d,rd);var JNa=[1,2,3];g.k=be.prototype;g.k.ZQ=function(a){var b=g.Ba.apply(1,arguments),c=this.SD(b);c?c.push(new ae(a)):this.KN(a,b)};
g.k.KN=function(a){this.Pr.set(this.vK(g.Ba.apply(1,arguments)),[new ae(a)])};
g.k.SD=function(){var a=this.vK(g.Ba.apply(0,arguments));return this.Pr.has(a)?this.Pr.get(a):void 0};
g.k.VR=function(){var a=this.SD(g.Ba.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.Pr.clear()};
g.k.vK=function(){var a=g.Ba.apply(0,arguments);return a?a.join(","):"key"};g.w(ce,be);ce.prototype.B=function(a){var b=g.Ba.apply(1,arguments),c=0,d=this.VR(b);d&&(c=d.wJ);this.KN(c+a,b)};g.w(de,be);de.prototype.Sk=function(a){this.ZQ(a,g.Ba.apply(1,arguments))};g.E.prototype.Yh=!1;g.E.prototype.isDisposed=function(){return this.Yh};
g.E.prototype.dispose=function(){this.Yh||(this.Yh=!0,this.xa())};
g.E.prototype.xa=function(){if(this.Ah)for(;this.Ah.length;)this.Ah.shift()()};g.ie.prototype.stopPropagation=function(){this.u=!0};
g.ie.prototype.preventDefault=function(){this.defaultPrevented=!0};var ke={};var Laa=function(){if(!g.B.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{g.B.addEventListener("test",g.Ia,b),g.B.removeEventListener("test",g.Ia,b)}catch(c){}return a}();var Xwa;Xwa=g.Ig?"webkitAnimationEnd":"animationend";g.Ta(me,g.ie);var KNa={2:"touch",3:"pen",4:"mouse"};
me.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?hm&&(oc(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX?
a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:KNa[a.pointerType]||"";this.state=a.state;this.i=a;a.defaultPrevented&&me.ge.preventDefault.call(this)};
me.prototype.stopPropagation=function(){me.ge.stopPropagation.call(this);this.i.stopPropagation?this.i.stopPropagation():this.i.cancelBubble=!0};
me.prototype.preventDefault=function(){me.ge.preventDefault.call(this);var a=this.i;a.preventDefault?a.preventDefault():a.returnValue=!1};var ne="closure_listenable_"+(1E6*Math.random()|0);var Iaa=0;var Le="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Oe.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.i++);var h=Qe(a,b,d,e);-1<h?(b=a[h],c||(b.sy=!1)):(b=new Jaa(b,this.src,f,!!d,e),b.sy=c,a.push(b));return b};
Oe.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Qe(e,b,c,d);return-1<b?(pe(e[b]),g.Tb(e,b),0==e.length&&(delete this.listeners[a],this.i--),!0):!1};
Oe.prototype.Gv=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Qe(a,b,c,d));return-1<e?a[e]:null};var We="closure_lm_"+(1E6*Math.random()|0),cf={},Ye=0,df="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Ta(g.ef,g.E);g.ef.prototype[ne]=!0;g.k=g.ef.prototype;g.k.addEventListener=function(a,b,c,d){Se(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){Ze(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.La;if(b){var c=[];for(var d=1;b;b=b.La)c.push(b),++d}b=this.rb;d=a.type||a;if("string"===typeof a)a=new g.ie(a,b);else if(a instanceof g.ie)a.target=a.target||b;else{var e=a;a=new g.ie(d,b);g.Me(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=ff(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=ff(h,d,!0,a)&&e,a.u||(e=ff(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)h=a.currentTarget=c[f],e=ff(h,d,!1,a)&&e;return e};
g.k.xa=function(){g.ef.ge.xa.call(this);if(this.B){var a=this.B,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,pe(d[e]);delete a.listeners[c];a.i--}}this.La=null};
g.k.Qa=function(a,b,c,d){return this.B.add(String(a),b,!1,c,d)};
g.k.Pz=function(a,b,c,d){return this.B.add(String(a),b,!0,c,d)};
g.k.pc=function(a,b,c,d){this.B.remove(String(a),b,c,d)};
g.k.Gv=function(a,b,c,d){return this.B.Gv(String(a),b,c,d)};gf.prototype.get=function(){if(0<this.u){this.u--;var a=this.i;this.i=a.next;a.next=null}else a=this.B();return a};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var hba=g.Cc||g.Ig;var LNa={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var nf;rf.prototype.Jk=!0;rf.prototype.Gh=function(){return this.i};
var qf={},pf={};g.tf("");var vf={};wf.prototype.Gh=function(){return this.i.toString()};
wf.prototype.toString=function(){return this.i.toString()};var iha,hha,gha,jha;iha=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");g.MNa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.NNa=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");
g.Er=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");hha=/^http:\/\/.*/;g.ONa=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");gha=/\s+/;jha=/[\d\u06f0-\u06f9]/;g.k=yf.prototype;g.k.Jk=!0;g.k.Gh=function(){return this.i.toString()};
g.k.uE=!0;g.k.qs=function(){return 1};
g.k.toString=function(){return this.i+""};
var Paa=/%{(\w+)}/g,Oaa=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),xf={};g.k=g.Cf.prototype;g.k.Jk=!0;g.k.Gh=function(){return this.i.toString()};
g.k.uE=!0;g.k.qs=function(){return 1};
g.k.toString=function(){return this.i.toString()};
var Saa=RegExp('^(?: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"),Raa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Ff=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Bf={},Gf=new g.Cf("about:invalid#zClosurez",Bf);var Jf={};Kf.prototype.Gh=function(){return this.i};
Kf.prototype.toString=function(){return this.i.toString()};
var Of=new Kf("",Jf),Vaa=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),Rf=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Qf=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),Waa=/\/\*/;var Sf={};Tf.prototype.qs=function(){return this.u};
Tf.prototype.Gh=function(){return this.i.toString()};
Tf.prototype.toString=function(){return this.i.toString()};
var PNa=/^[a-zA-Z0-9-]+$/,QNa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},RNa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Xf=new Tf(g.B.trustedTypes&&g.B.trustedTypes.emptyHTML||"",0,Sf);var bba=lf(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.Uf(Xf);return!b.parentElement}),cba=/^[\w+/_-]+[=]{0,2}$/;g.k=g.hg.prototype;g.k.clone=function(){return new g.hg(this.x,this.y)};
g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.jg.prototype;g.k.clone=function(){return new g.jg(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!lg(this)};
g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.SNa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Dg={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=ug.prototype;g.k.getElementsByTagName=function(a,b){return(b||this.i).getElementsByTagName(String(a))};
g.k.Fa=function(a){return g.Cg(a,this.i)};
g.k.createElement=function(a){return Kg(this.i,a)};
g.k.appendChild=function(a,b){a.appendChild(b)};
g.k.append=function(a,b){Lg(vg(a),a,arguments,1)};
g.k.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.k.removeNode=g.Rg;g.k.contains=g.Tg;var bh;dh.prototype.add=function(a,b){var c=kh.get();c.set(a,b);this.u?this.u.next=c:this.i=c;this.u=c};
dh.prototype.remove=function(){var a=null;this.i&&(a=this.i,this.i=this.i.next,this.i||(this.u=null),a.next=null);return a};
var kh=new gf(function(){return new eh},function(a){return a.reset()});
eh.prototype.set=function(a,b){this.i=a;this.scope=b;this.next=null};
eh.prototype.reset=function(){this.next=this.scope=this.i=null};var fh,gh=!1,hh=new dh;oh.prototype.reset=function(){this.context=this.onRejected=this.u=this.i=null;this.B=!1};
var ph=new gf(function(){return new oh},function(a){a.reset()});
nh.prototype.then=function(a,b,c){return xh(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
nh.prototype.$goog_Thenable=!0;nh.prototype.cancel=function(a){if(0==this.i){var b=new Dh(a);g.ih(function(){zh(this,b)},this)}};
nh.prototype.X=function(a){this.i=0;mh(this,2,a)};
nh.prototype.Z=function(a){this.i=0;mh(this,3,a)};
nh.prototype.S=function(){for(var a;a=Ah(this);)Bh(this,a,this.i,this.K);this.I=!1};
var Fh=Ya;g.Ta(Dh,Va);Dh.prototype.name="cancel";g.Ta(g.Gh,g.ef);g.k=g.Gh.prototype;g.k.enabled=!1;g.k.Mb=null;g.k.setInterval=function(a){this.Uf=a;this.Mb&&this.enabled?(this.stop(),this.start()):this.Mb&&this.stop()};
g.k.yX=function(){if(this.enabled){var a=g.Sa()-this.AL;0<a&&a<.8*this.Uf?this.Mb=this.yx.setTimeout(this.mJ,this.Uf-a):(this.Mb&&(this.yx.clearTimeout(this.Mb),this.Mb=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.Mb||(this.Mb=this.yx.setTimeout(this.mJ,this.Uf),this.AL=g.Sa())};
g.k.stop=function(){this.enabled=!1;this.Mb&&(this.yx.clearTimeout(this.Mb),this.Mb=null)};
g.k.xa=function(){g.Gh.ge.xa.call(this);this.stop();delete this.yx};g.k=Jh.prototype;g.k.dX=function(a){this.D=a;this.C=1};
g.k.SN=function(){var a=this.i.values();a=[].concat(g.la(a)).filter(function(b){return b.Pr.size});
a.length&&this.K.flush(a,this.D);oba(a);this.B=0;this.u.enabled&&this.u.stop()};
g.k.bR=function(a){var b=g.Ba.apply(1,arguments);this.i.has(a)||this.i.set(a,new ce(a,b))};
g.k.cJ=function(a){var b=g.Ba.apply(1,arguments);this.i.has(a)||this.i.set(a,new de(a,b))};
g.k.cP=function(a){this.dP.apply(this,[a,1].concat(g.la(g.Ba.apply(1,arguments))))};
g.k.dP=function(a,b){var c=g.Ba.apply(2,arguments),d=Lh(this,a);d&&d instanceof ce&&(d.B(b,c),Kh(this))};
g.k.Sk=function(a,b){var c=g.Ba.apply(2,arguments),d=Lh(this,a);d&&d instanceof de&&(d.Sk(b,c),Kh(this))};Mh.prototype.Sk=function(a,b,c,d,e){this.i.Sk("/client_streamz/po/w/rl",a,b,c,d,e)};
Nh.prototype.Sk=function(a,b,c){this.i.Sk("/client_streamz/po/w/el",a,b,c)};g.w(Oh,rd);g.w(Ph,rd);g.w(Qh,rd);g.w(Rh,rd);var qba=[3,6,4],rba=[1],b2=[1,2,3],TNa=[1,2,3];g.w(Sh,rd);var sba=[1];var vba={};g.k=Wh.prototype;g.k.isEnabled=function(){if(!g.B.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{Sz:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.hda;d=c.cX||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.Sz}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.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;e<d.length;e++){f=vb(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{Sz:0,path:b,domain:c});return d};
g.k.xs=function(){return Xh(this).keys};
g.k.Mp=function(){return Xh(this).values};
g.k.isEmpty=function(){return!this.i.cookie};
g.k.clear=function(){for(var a=Xh(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var hu=new Wh("undefined"==typeof document?null:document);g.w(ei,rd);var wba=[2];g.gi.prototype.u=0;g.gi.prototype.reset=function(){this.i=this.B=this.C;this.u=0};
g.gi.prototype.getValue=function(){return this.B};var li={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},yba=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;mi.prototype.u=null;mi.prototype.getOptions=function(){return this.u||(this.u=this.C())};var c2;g.Ta(ni,mi);ni.prototype.i=function(){var a=oi(this);return a?new ActiveXObject(a):new XMLHttpRequest};
ni.prototype.C=function(){var a={};oi(this)&&(a[0]=!0,a[1]=!0);return a};
c2=new ni;var ri=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Hi=/#|$/,Aba=/[?&]($|#)/;g.Ta(g.Li,g.ef);var Eba=/^https?$/i,UNa=["POST","PUT"],Mi=[];g.k=g.Li.prototype;g.k.mR=function(){this.dispose();g.Ub(Mi,this)};
g.k.send=function(a,b,c,d){if(this.i)throw Error("[goog.net.XhrIo] Object is active with another request="+this.X+"; newUri="+a);b=b?b.toUpperCase():"GET";this.X=a;this.C="";this.u=0;this.Va=b;this.Ha=!1;this.D=!0;this.i=this.Ba?this.Ba.i():c2.i();this.Aa=this.Ba?this.Ba.getOptions():c2.getOptions();this.i.onreadystatechange=(0,g.D)(this.JM,this);try{fi(Si(this,"Opening Xhr")),this.Ka=!0,this.i.open(b,String(a),!0),this.Ka=!1}catch(h){fi(Si(this,"Error opening Xhr: "+h.message));Pi(this,h);return}a=
c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=g.r(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});
e=g.B.FormData&&a instanceof g.B.FormData;!g.Qb(UNa,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.r(c);for(d=b.next();!d.done;d=b.next())c=g.r(d.value),d=c.next().value,c=c.next().value,this.i.setRequestHeader(d,c);this.Sa&&(this.i.responseType=this.Sa);"withCredentials"in this.i&&this.i.withCredentials!==this.S&&(this.i.withCredentials=this.S);try{Vi(this),0<this.K&&(this.va=Dba(this.i),fi(Si(this,"Will abort after "+this.K+"ms if incomplete, xhr2 "+this.va)),
this.va?(this.i.timeout=this.K,this.i.ontimeout=(0,g.D)(this.DH,this)):this.oa=g.Hh(this.DH,this.K,this)),fi(Si(this,"Sending request")),this.Z=!0,this.i.send(a),this.Z=!1}catch(h){fi(Si(this,"Send error: "+h.message)),Pi(this,h)}};
g.k.DH=function(){"undefined"!=typeof Qi&&this.i&&(this.C="Timed out after "+this.K+"ms, aborting",this.u=8,Si(this,this.C),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.i&&this.D&&(Si(this,"Aborting"),this.D=!1,this.I=!0,this.i.abort(),this.I=!1,this.u=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Oi(this))};
g.k.xa=function(){this.i&&(this.D&&(this.D=!1,this.I=!0,this.i.abort(),this.I=!1),Oi(this,!0));g.Li.ge.xa.call(this)};
g.k.JM=function(){this.isDisposed()||(this.Ka||this.Z||this.I?Ui(this):this.pV())};
g.k.pV=function(){Ui(this)};
g.k.isActive=function(){return!!this.i};
g.k.isComplete=function(){return 4==g.Ri(this)};
g.k.getStatus=function(){try{return 2<g.Ri(this)?this.i.status:-1}catch(a){return-1}};
g.k.getResponseHeader=function(a){if(this.i&&this.isComplete())return a=this.i.getResponseHeader(a),null===a?void 0:a};
g.k.getLastError=function(){return"string"===typeof this.C?this.C:String(this.C)};g.w(Yi,rd);g.w(Zi,rd);g.w($i,rd);$i.prototype.N=function(){return null!=sd(this,7)};
var Iba=[3,20,27];g.w(aj,rd);var Jba=[3,5];g.w(ej,rd);var Kba=[5];g.w(fj,rd);var VNa;VNa=new function(a,b,c,d){this.u=a;this.fieldName=b;this.i=c;this.isRepeated=d}(175237375,{Sca:0},fj,0);g.w(pj,g.ef);g.k=pj.prototype;g.k.xa=function(){this.LD();g.ef.prototype.xa.call(this)};
g.k.dispatch=function(a){if(a instanceof $i)this.log(a);else{var b=new $i;a=Fd(a);b=td(b,8,a);this.log(b)}};
g.k.log=function(a){a=a.clone();var b=this.vb++;td(a,21,b);this.Z&&td(a,26,this.Z);if(!sd(a,1)){b=a;var c=Date.now().toString();td(b,1,c)}null!=sd(a,15)||td(a,15,60*(new Date).getTimezoneOffset());this.C&&(b=this.C.clone(),Cd(a,16,b));for(;1E3<=this.u.length;)this.u.shift(),++this.K;this.u.push(a);this.dispatchEvent(new sj(a));this.Aa||this.i.enabled||this.i.start()};
g.k.flush=function(a,b){var c=this;if(0===this.u.length)a&&a();else if(this.Ba)Mba(this);else{var d=Date.now();if(this.bb>d&&this.Ha<d)b&&b("throttled");else{var e=dj(cj(bj(this.D.clone()),this.u),this.K);d={};var f=this.Va();f&&(d.Authorization=f);var h=qj(this);this.X&&(d["X-Goog-AuthUser"]=this.X,h=Fi(h,"authuser",this.X));this.pageId&&(d["X-Goog-PageId"]=this.pageId,h=Fi(h,"pageId",this.pageId));if(f&&this.Za===f)b&&b("stale-auth-token");else{this.u=[];this.i.enabled&&this.i.stop();this.K=0;var l=
Fd(e),m;this.S&&this.S.isSupported(l.length)&&(m=this.S.compress(l));var n={url:h,body:l,fR:1,Aq:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(u){c.I.reset();c.i.setInterval(c.I.getValue());if(u){var v=null;try{var y=JSON.parse(u.replace(")]}'\n",""));v=new ej(y)}catch(z){}v&&(u=Number(vd(v,1,"-1")),0<u&&(c.Ha=Date.now(),c.bb=c.Ha+u),v=v.I(VNa))&&(v=Hd(v,1,-1),-1!=v&&(c.Sa||rj(c,v)))}a&&a()},q=function(u){var v=Bd(e,$i,3);
g.hi(c.I);c.i.setInterval(c.I.getValue());401===u&&f&&(c.Za=f);if(500<=u&&600>u||401===u||0===u)c.u=v.concat(c.u),c.Aa||c.i.enabled||c.i.start();b&&b("net-send-failed",u)},t=function(){c.Ka?c.Ka.send(n,p,q):c.jb(n,p,q)};
m?m.then(function(u){n.Aq["Content-Encoding"]="gzip";n.Aq["Content-Type"]="application/binary";n.body=u;n.fR=2;t()},function(){t()}):t()}}}};
g.k.LD=function(){this.flush()};
g.w(sj,g.ie);tj.prototype.Pe=function(){var a=new pj(1654,this.oa?this.oa:di,"0",this.I,this.B,this.C,!1,void 0,void 0,void 0,this.K?this.K:void 0);if(this.X){var b=this.X;sd(b,1)||td(b,1,1);Cd(a.D,1,b)}if(this.u){b=this.u;var c=Ad(a.D,Zi,1),d=Ad(c,Yi,11);d||(d=new Yi);td(d,7,b);Cd(c,11,d);sd(c,1)||td(c,1,1);Cd(a.D,1,c)}this.D&&(a.S=this.D);this.i&&(a.Z=this.i);this.S&&((b=this.S)?(a.C||(a.C=new ei),b=Fd(b),td(a.C,4,b)):a.C&&td(a.C,4,void 0,!1));this.va&&(b=this.va,a.C||(a.C=new ei),wd(a.C,2,b));this.Z&&(b=this.Z,
a.Sa=!0,rj(a,b));return a};uj.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Sh,c=[],d=0;d<a.length;d++){var e=a[d],f=e;var h=new Oh;h=td(h,1,f.u);for(var l=f,m=[],n=0;n<l.i.length;n++)m.push(l.i[n].qn);h=wd(h,3,m);l=[];m=[];n=g.r(f.Pr.keys());for(var p=n.next();!p.done;p=n.next())m.push(p.value.split(","));for(n=0;n<m.length;n++){p=m[n];var q=f.C;for(var t=f.SD(p)||[],u=[],v=0;v<t.length;v++){var y=t[v];y=y&&y.wJ;var z=new Rh;switch(q){case 3:zd(z,1,TNa,Number(y));break;case 2:zd(z,2,TNa,Number(y))}u.push(z)}q=
u;for(t=0;t<q.length;t++){u=q[t];v=new Ph;u=Cd(v,2,u);v=p;y=[];z=f;for(var C=[],G=0;G<z.i.length;G++)C.push(z.i[G].un);z=C;for(C=0;C<z.length;C++){G=z[C];var F=v[C],J=new Qh;switch(G){case 3:zd(J,1,b2,String(F));break;case 2:zd(J,2,b2,Number(F));break;case 1:zd(J,3,b2,"true"==F)}y.push(J)}Dd(u,1,y);l.push(u)}}Dd(h,4,l);c.push(h);e.clear()}Dd(b,1,c);this.i.dispatch(b);this.i.flush()}};g.w(wj,Error);wj.prototype.name="RpcError";xj.prototype.done=function(){this.logger.HL(this.i,Date.now()-this.startMillis)};
yj.prototype.dw=function(){};
yj.prototype.HL=function(){};
yj.prototype.RE=function(a,b,c){return c};
zj.prototype.dw=function(a){this.clientError.i.cP("/client_streamz/po/w/cec",a,this.xm)};
zj.prototype.HL=function(a,b){this.u.Sk(b,a,this.xm)};
zj.prototype.RE=function(a,b,c){function d(h){var l=Date.now()-f;e.B.Sk(l,a,b,h,e.xm)}
var e=this,f=Date.now();c.then(function(){d(0)},function(h){h instanceof wj?d(h.code):d(-1)});
return c};g.w(Aj,rd);g.w(Bj,rd);g.w(Cj,rd);Cj.aT="bfkj";Ej.prototype.snapshot=function(a){if(this.i)throw Error("Already disposed");return this.u.then(function(b){var c=b.dR;return new Promise(function(d){c(function(e){d(e)},[a.GJ,
a.mda])})})};
Ej.prototype.dispose=function(){this.i=!0;this.u.then(function(a){(a=a.kX)&&a()})};
Ej.prototype.isDisposed=function(){return this.i};/*

 SPDX-License-Identifier: Apache-2.0
*/
var Lj={};var Fj;g.w(Hj,Gj);Hj.prototype.toString=function(){return this.i};
var Vua=new Hj("about:invalid#zTSz",Lj);var Kj=[Jj("data"),Jj("http"),Jj("https"),Jj("mailto"),Jj("ftp"),new Ij(function(a){return/^[^:]*([/?#]|$)/.test(a)})];g.w(Oj,Nj);Oj.prototype.toString=function(){return this.i.toString()};g.w(Wj,rd);g.w(Xj,rd);ea.Object.defineProperties(Zj.prototype,{u:{configurable:!0,enumerable:!0,get:function(){return this.i.a}},
B:{configurable:!0,enumerable:!0,get:function(){return this.i.b}}});g.w(ak,rd);bk.prototype.gz=function(){return this.B};
bk.prototype.getMetadata=function(){return this.u};ck.prototype.getMetadata=function(){return this.i};
ck.prototype.gz=function(){return this.u};
ck.prototype.getStatus=function(){return null};dk.prototype.getName=function(){return this.name};var WNa=new dk("/google.internal.waa.v1.Waa/Create",Wj,ak,function(a){return Fd(a)},function(a){return od(ak,a?JSON.parse(a):null)});g.w(fk,rd);var Xba=new dk("/google.internal.waa.v1.Waa/GenerateIT",Xj,fk,function(a){return Fd(a)},function(a){return od(fk,a?JSON.parse(a):null)});var gca=Promise;g.w(gk,rd);gk.prototype.getValue=function(){return vd(this,2,"")};
gk.prototype.setValue=function(a){null!=a&&0!==a.length?td(this,2,a):td(this,2,void 0,!1);return this};g.w(hk,rd);var Zba=[3];ik.prototype.lm=function(a,b){"data"==a?this.B.push(b):"metadata"==a?this.D.push(b):"status"==a?this.I.push(b):"end"==a?this.C.push(b):"error"==a&&this.u.push(b);return this};
ik.prototype.removeListener=function(a,b){"data"==a?ok(this.B,b):"metadata"==a?ok(this.D,b):"status"==a?ok(this.I,b):"end"==a?ok(this.C,b):"error"==a&&ok(this.u,b);return this};
ik.prototype.cancel=function(){this.i.abort()};
ik.prototype.cancel=ik.prototype.cancel;ik.prototype.removeListener=ik.prototype.removeListener;ik.prototype.on=ik.prototype.lm;g.Ta(pk,mi);pk.prototype.i=function(){return new qk(this.D,this.B)};
pk.prototype.C=jf({});g.Ta(qk,g.ef);g.k=qk.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.oa=a;this.Z=b;this.readyState=1;sk(this)};
g.k.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.i=!0;var b={headers:this.X,method:this.oa,credentials:this.I,cache:void 0};a&&(b.body=a);(this.va||g.B).fetch(new Request(this.Z,b)).then(this.oS.bind(this),this.vz.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.X=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.");1<=this.readyState&&this.i&&4!=this.readyState&&(this.i=!1,tk(this));this.readyState=0};
g.k.oS=function(a){if(this.i&&(this.D=a,this.u||(this.status=this.D.status,this.statusText=this.D.statusText,this.u=a.headers,this.readyState=2,sk(this)),this.i&&(this.readyState=3,sk(this),this.i)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.mS.bind(this),this.vz.bind(this));else if("undefined"!==typeof g.B.ReadableStream&&"body"in a){this.C=a.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.S=new TextDecoder;rk(this)}else a.text().then(this.nS.bind(this),this.vz.bind(this))};
g.k.eS=function(a){if(this.i){if(this.K&&a.value)this.response.push(a.value);else if(!this.K){var b=a.value?a.value:new Uint8Array(0);if(b=this.S.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?tk(this):sk(this);3==this.readyState&&rk(this)}};
g.k.nS=function(a){this.i&&(this.response=this.responseText=a,tk(this))};
g.k.mS=function(a){this.i&&(this.response=a,tk(this))};
g.k.vz=function(){this.i&&tk(this)};
g.k.setRequestHeader=function(a,b){this.X.append(a,b)};
g.k.getResponseHeader=function(a){return this.u?this.u.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.u)return"";for(var a=[],b=this.u.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
Object.defineProperty(qk.prototype,"withCredentials",{get:function(){return"include"===this.I},
set:function(a){this.I=a?"include":"same-origin"}});g.uk.prototype.toString=function(){var a=[],b=this.C;b&&a.push(Bk(b,XNa,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.S)&&a.push(Bk(b,XNa,!0),"@"),a.push(mg(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.B,null!=c&&a.push(":",String(c));if(c=this.getPath())this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(Bk(c,"/"==c.charAt(0)?YNa:ZNa,!0));(c=this.u.toString())&&a.push("?",c);(c=this.D)&&a.push("#",Bk(c,$Na));return a.join("")};
g.uk.prototype.resolve=function(a){var b=this.clone(),c=!!a.C;c?g.vk(b,a.C):c=!!a.S;c?b.S=a.S:c=!!a.i;c?g.wk(b,a.i):c=null!=a.B;var d=a.getPath();if(c)g.xk(b,a.B);else if(c=!!a.K){if("/"!=d.charAt(0))if(this.i&&!this.K)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=gb(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||
1==f.length&&""!=f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.K=d:c=""!==a.u.toString();c?yk(b,a.u.clone()):c=!!a.D;c&&(b.D=a.D);return b};
g.uk.prototype.clone=function(){return new g.uk(this)};
g.uk.prototype.getPath=function(){return this.K};
var XNa=/[#\/\?@]/g,ZNa=/[#\?:]/g,YNa=/[#\?]/g,cca=/[#\?@]/g,$Na=/#/g;g.k=Ak.prototype;g.k.add=function(a,b){Lk(this);this.B=null;a=Mk(this,a);var c=this.i.get(a);c||this.i.set(a,c=[]);c.push(b);this.u=this.u+1;return this};
g.k.remove=function(a){Lk(this);a=Mk(this,a);return this.i.has(a)?(this.B=null,this.u=this.u-this.i.get(a).length,this.i.delete(a)):!1};
g.k.clear=function(){this.i=this.B=null;this.u=0};
g.k.isEmpty=function(){Lk(this);return 0==this.u};
g.k.forEach=function(a,b){Lk(this);this.i.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.xs=function(){Lk(this);for(var a=Array.from(this.i.values()),b=Array.from(this.i.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.k.Mp=function(a){Lk(this);var b=[];if("string"===typeof a)Nk(this,a)&&(b=b.concat(this.i.get(Mk(this,a))));else{a=Array.from(this.i.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
g.k.set=function(a,b){Lk(this);this.B=null;a=Mk(this,a);Nk(this,a)&&(this.u=this.u-this.i.get(a).length);this.i.set(a,[b]);this.u=this.u+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.Mp(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.B)return this.B;if(!this.i)return"";for(var a=[],b=Array.from(this.i.keys()),c=0;c<b.length;c++){var d=b[c],e=mg(d);d=this.Mp(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+mg(d[f]));a.push(h)}}return this.B=a.join("&")};
g.k.clone=function(){var a=new Ak;a.B=this.B;this.i&&(a.i=new Map(this.i),a.u=this.u);return a};g.Ta(g.Pk,g.E);var aOa=[];g.k=g.Pk.prototype;g.k.Qa=function(a,b,c,d){Array.isArray(b)||(b&&(aOa[0]=b.toString()),b=aOa);for(var e=0;e<b.length;e++){var f=Se(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.i[f.key]=f}return this};
g.k.Pz=function(a,b,c,d){return Qk(this,a,b,c,d)};
g.k.pc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.pc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Na(d)?!!d.capture:!!d,e=e||this.u||this,c=Te(c),d=!!d,b=oe(a)?a.Gv(b,c,d,e):a?(a=Ve(a))?a.Gv(b,c,d,e):null:null,b&&(bf(b),delete this.i[b.key])};
g.k.xa=function(){g.Pk.ge.xa.call(this);g.Rk(this)};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Sk.prototype.isInputValid=function(){return this.B};Uk.prototype.isInputValid=function(){return 3!=this.u};
Uk.prototype.me=function(){return this.I};
Uk.prototype.by=function(){return!0};
Uk.prototype.parse=function(a){function b(m){m&128&&Vk(f,h,l,"invalid tag");2!=(m&7)&&Vk(f,h,l,"invalid wire type");f.B=m>>>3;1!=f.B&&2!=f.B&&15!=f.B&&Vk(f,h,l,"unexpected tag");f.u=1;f.i=0;f.C=0}
function c(m){f.C++;5==f.C&&m&240&&Vk(f,h,l,"message length too long");f.i|=(m&127)<<7*(f.C-1);m&128||(f.u=2,f.S=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.i):f.D=Array(f.i),0==f.i&&e())}
function d(m){f.D[f.S++]=m;f.S==f.i&&e()}
function e(){if(15>f.B){var m={};m[f.B]=f.D;f.K.push(m)}f.u=0}
for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l<h.length;){switch(f.u){case 3:Vk(f,h,l,"stream already broken");break;case 0:b(h[l]);break;case 1:c(h[l]);break;case 2:d(h[l]);break;default:throw Error("unexpected parser state: "+f.u);}f.X++;l++}a=f.K;f.K=[];return 0<a.length?a:null};Wk.prototype.isInputValid=function(){return null===this.i};
Wk.prototype.me=function(){return this.i};
Wk.prototype.by=function(){return!1};
Wk.prototype.parse=function(a){null!==this.i&&Xk(this,a,"stream already broken");var b=null;try{var c=this.B;c.B||Tk(c,a,"stream already broken");c.i+=a;var d=Math.floor(c.i.length/4);if(0==d)var e=null;else{try{var f=Ac(c.i.substr(0,4*d))}catch(h){Tk(c,c.i,h.message)}c.u+=4*d;c.i=c.i.substr(4*d);e=f}b=null===e?null:this.C.parse(e)}catch(h){Xk(this,a,h.message)}this.u+=a.length;return b};var bOa={INIT:0,Gu:1,uC:2,Fr:3,fu:4,du:5,STRING:6,oC:7,qI:8,DI:9,FI:10,GI:11,rH:12,sH:13,tH:14,uH:15,uI:16,vI:17,wI:18,LQ:19,sC:20};g.k=Zk.prototype;g.k.isInputValid=function(){return 3!=this.D};
g.k.me=function(){return this.X};
g.k.done=function(){return 2===this.D};
g.k.by=function(){return!1};
g.k.parse=function(a){function b(){for(;t<a.length;)if(Yk(a[t]))t++,f.B++;else break;return t<n}
function c(){for(var v;;){v=a[t++];if(!v)break;f.B++;switch(f.i){case m.INIT:"{"===v?f.i=m.uC:"["===v?f.i=m.fu:Yk(v)||$k(f,a,t);continue;case m.oC:case m.uC:if(Yk(v))continue;if(f.i===m.oC)h.push(m.qI);else if("}"===v){e("{}");f.i=d();continue}else h.push(m.Fr);'"'===v?f.i=m.STRING:$k(f,a,t);continue;case m.qI:case m.Fr:if(Yk(v))continue;":"===v?(f.i===m.Fr&&(h.push(m.Fr),f.u++),f.i=m.Gu):"}"===v?(f.u--,e(),f.i=d()):","===v?(f.i===m.Fr&&h.push(m.Fr),f.i=m.oC):$k(f,a,t);continue;case m.fu:case m.Gu:if(Yk(v))continue;
if(f.i===m.fu)if(f.u++,f.i=m.Gu,"]"===v){f.u--;if(0===f.u){f.i=m.du;return}e("[]");f.i=d();continue}else h.push(m.du);'"'===v?f.i=m.STRING:"{"===v?f.i=m.uC:"["===v?f.i=m.fu:"t"===v?f.i=m.DI:"f"===v?f.i=m.rH:"n"===v?f.i=m.uI:"-"!==v&&(-1!=="0123456789".indexOf(v)?f.i=m.sC:$k(f,a,t));continue;case m.du:if(","===v)h.push(m.du),f.i=m.Gu,1===f.u&&(q=t);else if("]"===v){f.u--;if(0===f.u)return;e();f.i=d()}else if(Yk(v))continue;else $k(f,a,t);continue;case m.STRING:var y=t;a:for(;;){for(;0<f.S;)if(v=a[t++],
4===f.S?f.S=0:f.S++,!v)break a;if('"'===v&&!f.K){f.i=d();break}if("\\"===v&&!f.K&&(f.K=!0,v=a[t++],!v))break;if(f.K)if(f.K=!1,"u"===v&&(f.S=1),v=a[t++])continue;else break;l.lastIndex=t;v=l.exec(a);if(!v){t=a.length+1;break}t=v.index+1;v=a[v.index];if(!v)break}f.B+=t-y;continue;case m.DI:if(!v)continue;"r"===v?f.i=m.FI:$k(f,a,t);continue;case m.FI:if(!v)continue;"u"===v?f.i=m.GI:$k(f,a,t);continue;case m.GI:if(!v)continue;"e"===v?f.i=d():$k(f,a,t);continue;case m.rH:if(!v)continue;"a"===v?f.i=m.sH:
$k(f,a,t);continue;case m.sH:if(!v)continue;"l"===v?f.i=m.tH:$k(f,a,t);continue;case m.tH:if(!v)continue;"s"===v?f.i=m.uH:$k(f,a,t);continue;case m.uH:if(!v)continue;"e"===v?f.i=d():$k(f,a,t);continue;case m.uI:if(!v)continue;"u"===v?f.i=m.vI:$k(f,a,t);continue;case m.vI:if(!v)continue;"l"===v?f.i=m.wI:$k(f,a,t);continue;case m.wI:if(!v)continue;"l"===v?f.i=d():$k(f,a,t);continue;case m.LQ:"."===v?f.i=m.sC:$k(f,a,t);continue;case m.sC:if(-1!=="0123456789.eE+-".indexOf(v))continue;else t--,f.B--,f.i=
d();continue;default:$k(f,a,t)}}}
function d(){var v=h.pop();return null!=v?v:m.Gu}
function e(v){1<f.u||(v||(v=-1===q?f.C+a.substring(p,t):a.substring(q,t)),f.Z?f.I.push(v):f.I.push(JSON.parse(v)),q=t)}
for(var f=this,h=f.oa,l=f.va,m=bOa,n=a.length,p=0,q=-1,t=0;t<n;)switch(f.D){case 3:return $k(f,a,t),null;case 2:return b()&&$k(f,a,t),null;case 0:if(b()){var u=a[t++];f.B++;if("["===u){f.D=1;p=t;f.i=m.fu;continue}else $k(f,a,t)}return null;case 1:return c(),0===f.u&&f.i==m.du?(f.D=2,f.C=a.substring(t)):f.C=-1===q?f.C+a.substring(p):a.substring(q),0<f.I.length?(u=f.I,f.I=[],u):null}return null};al.prototype.isInputValid=function(){return null===this.D};
al.prototype.me=function(){return this.D};
al.prototype.by=function(){return!1};
al.prototype.parse=function(a){function b(m){f.u=6;f.D="The stream is broken @"+f.i+"/"+h+". Error: "+m+". With input:\n";throw Error(f.D);}
function c(){f.B=new Zk({wca:!0,yR:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.C.push(p)}}
function e(m){if(m){(f.I||1<m.length)&&b("extra status: "+m);f.I=!0;var n={};n[2]=m[0];f.C.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.u){a:{for(;h<a.length;){if(!Yk(a[h])){l=!0;break a}h++;f.i++}l=!1}l=!l}if(l)return null;switch(f.u){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.u=1,h++,f.i++):b("unexpected input token");break;case 1:"["===a[h]?(f.u=2,c()):","===a[h]||"null,"==a.substr(h,5)?f.u=3:"]"===a[h]?(f.u=5,h++,f.i++):b("unexpected input token");break;case 2:l=f.B.parse(a.substring(h));d(l);f.B.done()?(f.u=3,l=f.B.C,f.i+=a.length-h-l.length,a=l,h=0):(f.i+=a.length-
h,h=a.length);break;case 3:","===a[h]||"null,"==a.substr(h,5)?(f.u=4,c(),f.B.parse("["),h+=","===a[h]?1:5,f.i++):"]"===a[h]&&(f.u=5,h++,f.i++);break;case 4:l=f.B.parse(a.substring(h));e(l);f.B.done()?(f.u=5,l=f.B.C,f.i+=a.length-h-l.length,a=l,h=0):(f.i+=a.length-h,h=a.length);break;case 5:b("extra input after stream end")}}return 0<f.C.length?(a=f.C,f.C=[],a):null};bl.prototype.getStatus=function(){return this.C};
bl.prototype.Z=function(a){a=a.target;try{if(a==this.i)a:{var b=g.Ri(this.i),c=this.i.u,d=this.i.getStatus(),e=g.Wi(this.i);a=[];if(Xi(this.i)instanceof Array){var f=Xi(this.i);0<f.length&&f[0]instanceof Uint8Array&&(this.X=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?cl(this,7):7==c?cl(this,8):d||cl(this,3)),this.u||(this.u=fca(this.i),null==this.u&&cl(this,5)),2<this.C)dl(this);else{if(a.length>this.B){var h=a.length;c=[];try{if(this.u.by())for(var l=0;l<h;l++){var m=
this.u.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.I){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.I=new TextDecoder}for(l=0;l<h;l++)m+=this.I.decode(a[l],{stream:4==b&&l==h-1});c=this.u.parse(m)}a.splice(0,h);c&&this.D(c)}catch(p){cl(this,5);dl(this);break a}}else if(e.length>this.B){l=e.substr(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){cl(this,5);dl(this);break a}}4==b?(0!=e.length||
this.X?cl(this,2):cl(this,4),dl(this)):cl(this,1)}}}catch(p){cl(this,6),dl(this)}};g.k=el.prototype;g.k.lm=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this};
g.k.addListener=function(a,b){this.lm(a,b);return this};
g.k.removeListener=function(a,b){var c=this.u[a];c&&g.Ub(c,b);(a=this.i[a])&&g.Ub(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.mU=function(a){var b=this.u.data;b&&fl(a,b);(b=this.i.data)&&fl(a,b);this.i.data=[]};
g.k.WV=function(){switch(this.B.getStatus()){case 1:gl(this,"readable");break;case 5:case 6:case 4:case 7:case 3:gl(this,"error");break;case 8:gl(this,"close");break;case 2:gl(this,"end")}};hl.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return il(function(h){var l=h.gz(),m=h.getMetadata(),n=jl(e,!1);m=kl(e,m,n,f+l.getName());var p=ll(n,l.u,!0);h=l.i(h.i);n.send(m,"POST",h);return p},this.C).call(this,ek(d,b,c))};ml.prototype.create=function(a,b){return Yj(this.i,"https://waa-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},WNa)};g.w(ql,Error);g.w(rl,g.E);g.w(ul,rl);ul.prototype.Us=function(a){++this.C>=this.D&&this.u.resolve();var b=new Zj(this.B(a.GJ));a=b.u;var c=this.i;c=Ad(c,Zd,3===yd(c,JNa)?3:-1);if(!c){c=new Zd;b=Dc(b.B);td(c,2,b);b=this.i;var d=c;b.i||(b.i={});var e=d?d.rg:d;b.i[3]=d;zd(b,3,JNa,e)}td(c,1,a);return Od(this.i,Gaa)};
g.w(vl,rl);vl.prototype.Us=function(){return this.i};
g.w(wl,rl);wl.prototype.Us=function(){if(this.i){var a=this.i;this.i=void 0;return a}return this.B};
pl.prototype.isReady=function(){return!!this.i};
pl.prototype.ready=function(){var a=this;return g.A(function(b){return g.x(b,a.u.promise,0)})};
pl.prototype.Us=function(a){var b,c=new xj(this.logger,"m");if(!this.i)throw Error("SGK:Not ready");try{return this.i.Us(a)}catch(e){var d=new ql(5,e);this.logger.dw(d.code);null===(b=this.onError)||void 0===b?void 0:b.call(this,d,"ME");return(new wl(d)).Us()}finally{c.done()}};var co;co=["av.default","js","unreleased"].slice(-1)[0];var ym=document,Ml=window;var oda={NONE:0,f2:1},Uca={VO:0,D9:1,C9:2,E9:3};zl.prototype.isVisible=function(){return this.Up?.3<=this.cd:.5<=this.cd};var Xm={ZZ:0,A2:1},Sca={NONE:0,F3:1,W2:2};Al.prototype.getValue=function(){return this.u};
g.w(Bl,Al);Bl.prototype.setValue=function(a){if(null!==this.u||!g.Ae(this.B,a))return!1;this.u=a;return!0};
g.w(Cl,Al);Cl.prototype.setValue=function(a){if(null!==this.u||"number"!==typeof a)return!1;this.u=a;return!0};
g.w(Dl,Al);Dl.prototype.setValue=function(a){if(null!==this.u||"string"!==typeof a)return!1;this.u=a;return!0};El.prototype.disable=function(){this.u=!1};
El.prototype.enable=function(){this.u=!0};
El.prototype.isEnabled=function(){return this.u};
El.prototype.reset=function(){this.i={};this.u=!0;this.B={}};var pda=!g.Cc&&!Fb();Jl.prototype.now=function(){return 0};
Jl.prototype.u=function(){return 0};
Jl.prototype.B=function(){return 0};
Jl.prototype.i=function(){return 0};g.w(Ll,Jl);Ll.prototype.now=function(){return Kl()&&Ml.performance.now?Ml.performance.now():Jl.prototype.now.call(this)};
Ll.prototype.u=function(){return Kl()&&Ml.performance.memory?Ml.performance.memory.totalJSHeapSize||0:Jl.prototype.u.call(this)};
Ll.prototype.B=function(){return Kl()&&Ml.performance.memory?Ml.performance.memory.usedJSHeapSize||0:Jl.prototype.B.call(this)};
Ll.prototype.i=function(){return Kl()&&Ml.performance.memory?Ml.performance.memory.jsHeapSizeLimit||0:Jl.prototype.i.call(this)};var uca=lf(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.B.addEventListener("test",null,b)}catch(c){}return a});Rl.prototype.isVisible=function(){return 1===Ql(ym)};g.tf("csi.gstatic.com");g.tf("googleads.g.doubleclick.net");g.tf("pagead2.googlesyndication.com");g.tf("partner.googleadservices.com");g.tf("pubads.g.doubleclick.net");g.tf("securepubads.g.doubleclick.net");g.tf("tpc.googlesyndication.com");var xca=/https?:\/\/[^\/]+/,vca={xY:"allow-forms",yY:"allow-modals",zY:"allow-orientation-lock",AY:"allow-pointer-lock",BY:"allow-popups",CY:"allow-popups-to-escape-sandbox",DY:"allow-presentation",EY:"allow-same-origin",FY:"allow-scripts",GY:"allow-top-navigation",HY:"allow-top-navigation-by-user-activation"},Aca=lf(function(){return wca()});g.k=Zl.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new Zl(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof Zl?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.bm.prototype;g.k.clone=function(){return new g.bm(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.hg?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.k.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
g.k.getSize=function(){return new g.jg(this.width,this.height)};
g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var gm={};var wm=!!window.google_async_iframe_id,xm=wm&&window.parent||window;var Gca=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Qm.prototype.setInterval=function(a,b){return Ml.setInterval(a,b)};
Qm.prototype.clearInterval=function(a){Ml.clearInterval(a)};
Qm.prototype.setTimeout=function(a,b){return Ml.setTimeout(a,b)};
Qm.prototype.clearTimeout=function(a){Ml.clearTimeout(a)};Um.prototype.getContext=function(){if(!this.i){if(!Ml)throw Error("Context has not been set and window is undefined.");this.i=Pm(Qm)}return this.i};g.w(Vm,rd);var Tca={d9:1,SQ:2,g7:3};Af(sf(g.tf("https://pagead2.googlesyndication.com/pagead/osd.js")));Ym.prototype.RF=function(a){if("string"===typeof a&&0!=a.length){var b=this.featureSet;if(b.u){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=d[0];d=1<d.length?parseInt(d[1],10):1;isNaN(d)||(e=b.i[e])&&e.setValue(d)}}}};var d2=null;var fn=g.B.performance,cOa=!!(fn&&fn.mark&&fn.measure&&fn.clearMarks),dn=lf(function(){var a;if(a=cOa){var b;if(null===d2){d2="";try{a="";try{a=g.B.top.location.hash}catch(c){a=g.B.location.hash}a&&(d2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=d2;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
en.prototype.disable=function(){this.i=!1;this.events!=this.u.google_js_reporting_queue&&(dn()&&g.jc(this.events,gn),this.events.length=0)};
en.prototype.start=function(a,b){if(!this.i)return null;var c=cn()||bn();a=new Wca(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";fn&&dn()&&fn.mark(b);return a};
en.prototype.end=function(a){if(this.i&&"number"===typeof a.value){var b=cn()||bn();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";fn&&dn()&&fn.mark(b);!this.i||2048<this.events.length||this.events.push(a)}};kn.prototype.TE=function(a,b,c,d,e){e=e||this.bK;try{var f=new Hm;f.i.push(1);f.u[1]=Im("context",a);b.error&&b.meta&&b.id||(b=new ln(mn(b)));if(b.msg){var h=b.msg.substring(0,512);f.i.push(2);f.u[2]=Im("msg",h)}var l=b.meta||{};if(this.QC)try{this.QC(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.i.push(3);f.u[3]=b;var m=Gm();if(m.u){var n=m.u.url||"";f.i.push(4);f.u[4]=Im("top",n)}var p=[{url:m.i.url||""},{url:m.i.url?ui(m.i.url):""}];f.i.push(5);f.u[5]=p;$m(this.i,e,f,!1,c)}catch(q){try{$m(this.i,
e,{context:"ecmserr",rctx:a,msg:mn(q),url:m&&m.i.url},!1,c)}catch(t){}}return this.wG};
g.w(ln,an);var jn,on,hn=new en;(function(){jn=new Vca;on=new kn;var a=Dm();a&&a.document&&("complete"==a.document.readyState?qn():hn.i&&Ol(a,"load",function(){qn()}))})();var Yca=Date.now(),xn=-1,vn=-1,bp,yn=-1,wn=!1;var dOa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Xo={OQ:"start",YO:"firstquartile",JQ:"midpoint",PQ:"thirdquartile",SO:"complete",IQ:"metric",PAUSE:"pause",MQ:"resume",NQ:"skip",RQ:"viewable_impression",KQ:"mute",QQ:"unmute",ZO:"fullscreen",XO:"exitfullscreen",RO:"bufferstart",QO:"bufferfinish",aP:"fully_viewable_audible_half_duration_impression",HQ:"measurable_impression",OO:"abandon",WO:"engagedview",bP:"impression",TO:"creativeview",GQ:"loaded",l9:"progress",CLOSE:"close",
QZ:"collapse",m8:"overlay_resize",n8:"overlay_unmeasurable_impression",o8:"overlay_unviewable_impression",q8:"overlay_viewable_immediate_impression",p8:"overlay_viewable_end_of_session_impression",UO:"custom_metric_viewable",h8:"verification_debug",gZ:"audio_audible",hZ:"audio_measurable"},Sga="start firstquartile midpoint thirdquartile resume loaded".split(" "),Tga=["start","firstquartile","midpoint","thirdquartile"],Eda=["abandon"],Up={UNKNOWN:-1,OQ:0,YO:1,JQ:2,PQ:3,SO:4,IQ:5,PAUSE:6,MQ:7,NQ:8,
RQ:9,KQ:10,QQ:11,ZO:12,XO:13,aP:14,HQ:15,OO:16,WO:17,bP:18,TO:19,GQ:20,UO:21,RO:22,QO:23};var $ca={lY:"addEventListener",Y2:"getMaxSize",Z2:"getScreenSize",b3:"getState",d3:"getVersion",y9:"removeEventListener",d4:"isViewable"};if(ym&&ym.URL){var eOa,Wl=ym.URL;eOa=!!Wl&&0<zca().length;on.wG=!eOa};Kn.prototype.update=function(a){a&&a.document&&(this.K=En(!1,a,this.isMobileDevice),this.i=En(!0,a,this.isMobileDevice),Mn(this,a),Ln(this,a))};Pn.prototype.cancel=function(){Rm().clearTimeout(this.i);this.i=null};
Pn.prototype.schedule=function(){var a=this;this.i=Rm().setTimeout(Wm(Zm().i.i,sn(143,function(){a.u++;a.B.sample()})),Zca())};g.k=Qn.prototype;g.k.mu=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.rs=function(){return this.i.Ba};
g.k.Qv=function(){return this.i.Z};
g.k.Ch=function(a,b){if(!this.Z||(void 0===b?0:b))this.Z=!0,this.Ba=a,this.S=0,this.i!=this||Vn(this)};
g.k.getName=function(){return this.i.La};
g.k.Dn=function(){return this.i.tK()};
g.k.tK=function(){return{}};
g.k.Vl=function(){return this.i.S};
g.k.EH=function(){var a=Nn();a.i=En(!0,this.B,a.isMobileDevice)};
g.k.FH=function(){Ln(Nn(),this.B)};
g.k.BK=function(){return this.C.i};
g.k.sample=function(){};
g.k.isActive=function(){return this.i.I};
g.k.Gs=function(a){var b=this.i;this.i=a.Vl()>=this.S?a:this;b!==this.i?(this.I=this.i.I,Vn(this)):this.I!==this.i.I&&(this.I=this.i.I,Vn(this))};
g.k.Kn=function(a){if(a.u===this.i){var b=this.C,c=this.X;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.B==a.B)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.C=a;!c&&Un(this)}};
g.k.Uk=function(){return this.X};
g.k.dispose=function(){this.Aa=!0};
g.k.isDisposed=function(){return this.Aa};g.k=Wn.prototype;g.k.TB=function(){return!0};
g.k.nu=function(){};
g.k.dispose=function(){if(!this.isDisposed()){var a=this.u;g.Ub(a.D,this);a.X&&this.Uk()&&Tn(a);this.nu();this.Z=!0}};
g.k.isDisposed=function(){return this.Z};
g.k.Dn=function(){return this.u.Dn()};
g.k.Vl=function(){return this.u.Vl()};
g.k.rs=function(){return this.u.rs()};
g.k.Qv=function(){return this.u.Qv()};
g.k.Gs=function(){};
g.k.Kn=function(){this.Wm()};
g.k.Uk=function(){return this.oa};g.k=Xn.prototype;g.k.Vl=function(){return this.i.Vl()};
g.k.rs=function(){return this.i.rs()};
g.k.Qv=function(){return this.i.Qv()};
g.k.create=function(a,b,c){var d=null;this.i&&(d=this.Kx(a,b,c),Rn(this.i,d));return d};
g.k.GH=function(){return this.ou()};
g.k.ou=function(){return!1};
g.k.init=function(a){return this.i.initialize()?(Rn(this.i,this),this.C=a,!0):!1};
g.k.Gs=function(a){0==a.Vl()&&this.C(a.rs(),this)};
g.k.Kn=function(){};
g.k.Uk=function(){return!1};
g.k.dispose=function(){this.D=!0};
g.k.isDisposed=function(){return this.D};
g.k.Dn=function(){return{}};$n.prototype.add=function(a,b,c){++this.B;var d=this.B/4096,e=this.i,f=e.push;a=new Yn(a,b,c);d=new Yn(a.u,a.i,a.B+d);f.call(e,d);this.u=!0;return this};eo.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=bo(this.i);0<b.length&&(a+="?"+b);return a};ho.prototype.update=function(a,b,c){a&&(this.i+=b,this.u+=b,this.C+=b,this.B=Math.max(this.B,this.C));if(void 0===c?!a:c)this.C=0};var ida=[1,.75,.5,.3,0];io.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.u.length;e++){var h=this.u[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.i[e].update(f&&l,d,!f||h)}};ro.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.cd):b.cd;this.oa=Math.max(this.oa,b.cd);this.va=-1!=this.va?Math.min(this.va,b.qh):b.qh;this.Ba=Math.max(this.Ba,b.qh);this.Za.update(b.qh,c.qh,b.i,a,d);this.u.update(b.cd,c.cd,b.i,a,d);c=d||c.Up!=b.Up?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.i;this.La.update(c,a,b)};
ro.prototype.Xp=function(){return this.La.B>=this.Wa};var fOa=new Zl(0,0,0,0);var nda=new Zl(0,0,0,0);g.w(vo,g.E);g.k=vo.prototype;g.k.xa=function(){this.Pg.i&&(this.tp.fF&&(Pl(this.Pg.i,"mouseover",this.tp.fF),this.tp.fF=null),this.tp.dF&&(Pl(this.Pg.i,"mouseout",this.tp.dF),this.tp.dF=null));this.ox&&this.ox.dispose();this.Md&&this.Md.dispose();delete this.Wz;delete this.VE;delete this.wO;delete this.Pg.Tn;delete this.Pg.i;delete this.tp;delete this.ox;delete this.Md;delete this.featureSet;g.E.prototype.xa.call(this)};
g.k.En=function(){return this.Md?this.Md.i:this.position};
g.k.RF=function(a){Zm().RF(a)};
g.k.Uk=function(){return!1};
g.k.kz=function(){return new ro};
g.k.Vg=function(){return this.Wz};
g.k.wK=function(a){return yo(this,a,1E4)};
g.k.Pa=function(a,b,c,d,e,f,h){this.Os||(this.Iy&&(a=this.aD(a,c,e,h),d=d&&this.vf.cd>=(this.Up()?.3:.5),this.dH(f,a,d),this.lastUpdateTime=b,0<a.cd&&-1===this.eO&&(this.eO=b),-1==this.jO&&this.Xp()&&(this.jO=b),-2==this.QE&&(this.QE=to(this.En())?a.cd:-1),this.vf=a),this.VE(this))};
g.k.dH=function(a,b,c){this.Vg().update(a,b,this.vf,c)};
g.k.bE=function(){return new zl};
g.k.aD=function(a,b,c,d){c=this.bE();c.i=b;b=Rm().u;b=0===Ql(ym)?-1:b.isVisible()?0:1;c.u=b;c.cd=this.oD(a);c.Up=this.Up();c.qh=d;return c};
g.k.oD=function(a){return 0===this.opacity&&1===Hl(this.featureSet,"opac")?0:a};
g.k.Up=function(){return!1};
g.k.dB=function(){return this.KS||this.NS};
g.k.dA=function(){un()};
g.k.eF=function(){un()};
g.k.Fk=function(){return 0};
g.k.Xp=function(){return this.Wz.Xp()};g.Bo="StopIteration"in g.B?g.B.StopIteration:{message:"StopIteration",stack:""};g.zo.prototype.yj=function(){throw g.Bo;};
g.zo.prototype.next=function(){return g.e2};
g.e2={done:!0,value:void 0};g.zo.prototype.Jg=function(){return this};g.w(Do,zl);Go.prototype.getValue=function(){return this.u};
Go.prototype.update=function(a,b){32<=a||(this.i&1<<a&&!b?this.u&=~(1<<a):this.i&1<<a||!b||(this.u|=1<<a),this.i|=1<<a)};g.w(Ho,ro);
Ho.prototype.update=function(a,b,c,d){if(!b.paused){ro.prototype.update.call(this,a,b,c,d);var e=Eo(b)&&Eo(c),f=.5<=(d?Math.min(b.cd,c.cd):c.cd);In(b.volume)&&(this.C=-1!=this.C?Math.min(this.C,b.volume):b.volume,this.I=Math.max(this.I,b.volume));f&&(this.Aa+=a,this.X+=e?a:0);this.i.update(b.cd,c.cd,b.i,a,d,e);this.B.update(!0,a);this.D.update(e,a);this.Z.update(c.fullscreen,a);this.bb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ha.update(a,b.isVisible());this.Va.update(a,1<=b.cd);this.Sa.update(a,
Eo(b))}};g.w(Jo,yda);Jo.prototype.C=function(){return!0};
Jo.prototype.D=function(){return!1};
Jo.prototype.getId=function(){var a=this,b=Be(Xo,function(c){return c==a.u});
return Up[b].toString()};
Jo.prototype.toString=function(){var a="";this.D()&&(a+="c");this.i&&(a+="s");0<this.B&&(a+=":"+this.B);return this.getId()+a};g.w(Mo,Wn);g.k=Mo.prototype;g.k.dD=function(){if(this.element){var a=this.element,b=this.u.i.B;try{try{var c=Gn(a.getBoundingClientRect())}catch(n){c=new Zl(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=qm(a,b),h=f.x,l=f.y;var m=new Zl(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=fOa.clone()}this.i=m}};
g.k.oJ=function(){this.C=this.u.C.i};
g.k.jL=function(a){var b=1==Hl(this.featureSet,"od");return mda(a,this.C,this.element,b)};
g.k.pJ=function(){this.timestamp=un()};
g.k.Wm=function(){this.pJ();this.dD();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.jg(a.videoWidth,a.videoHeight);a=this.i;var c=$l(a),d=a.getHeight(),e=b.width;b=b.height;0>=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0<d&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),0<c&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.i=a}this.oJ();
a=this.i;c=this.C;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new Zl(Math.max(a.top,c.top),Math.min(a.right,c.right),Math.min(a.bottom,c.bottom),Math.max(a.left,c.left)):new Zl(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new Zl(0,0,0,0):a;a=this.u.C;b=e=d=0;0<(this.i.bottom-this.i.top)*(this.i.right-this.i.left)&&(this.jL(c)?c=new Zl(0,0,0,0):(d=Nn().C,b=new Zl(0,d.height,d.width,0),d=uo(c,this.i),e=uo(c,Nn().i),b=uo(c,b)));c=c.top>=c.bottom||c.left>=c.right?new Zl(0,0,0,
0):am(c,-this.i.left,-this.i.top);On()||(e=d=0);this.K=new An(a,this.i,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.u.getName()};var gOa=new Zl(0,0,0,0);g.w(No,Mo);g.k=No.prototype;g.k.TB=function(){this.B();return!0};
g.k.Kn=function(){Mo.prototype.Wm.call(this)};
g.k.pJ=function(){};
g.k.dD=function(){};
g.k.Wm=function(){this.B();Mo.prototype.Wm.call(this)};
g.k.Gs=function(a){a=a.isActive();a!==this.I&&(a?this.B():(Nn().i=new Zl(0,0,0,0),this.i=new Zl(0,0,0,0),this.C=new Zl(0,0,0,0),this.timestamp=-1));this.I=a};var f2={},Dda=(f2.firstquartile=0,f2.midpoint=1,f2.thirdquartile=2,f2.complete=3,f2);g.w(Po,vo);g.k=Po.prototype;g.k.Uk=function(){return!0};
g.k.em=function(){return 2==this.wg};
g.k.wK=function(a){return yo(this,a,Math.max(1E4,this.B/3))};
g.k.Pa=function(a,b,c,d,e,f,h){var l=this,m=this.S(this)||{};g.Me(m,e);this.B=m.duration||this.B;this.X=m.isVpaid||this.X;this.Ka=m.isYouTube||this.Ka;e=zda(this,b);1===To(this)&&(f=e);vo.prototype.Pa.call(this,a,b,c,d,m,f,h);this.hq&&this.hq.i&&g.jc(this.I,function(n){n.i||(n.i=Lo(n,l))})};
g.k.dH=function(a,b,c){vo.prototype.dH.call(this,a,b,c);So(this).update(a,b,this.vf,c);this.Za=Eo(this.vf)&&Eo(b);-1==this.Ba&&this.Wa&&(this.Ba=this.Vg().B.i);this.hf.B=0;a=this.Xp();b.isVisible()&&Fo(this.hf,"vs");a&&Fo(this.hf,"vw");In(b.volume)&&Fo(this.hf,"am");Eo(b)&&Fo(this.hf,"a");this.Is&&Fo(this.hf,"f");-1!=b.u&&(Fo(this.hf,"bm"),1==b.u&&Fo(this.hf,"b"));Eo(b)&&b.isVisible()&&Fo(this.hf,"avs");this.Za&&a&&Fo(this.hf,"avw");0<b.cd&&Fo(this.hf,"pv");Uo(this,this.Vg().B.i,!0)&&Fo(this.hf,"gdr");
2E3<=oo(this.Vg().u,1)&&Fo(this.hf,"pmx")};
g.k.kz=function(){return new Ho};
g.k.Vg=function(){return this.Wz};
g.k.bE=function(){return new Do};
g.k.aD=function(a,b,c,d){a=vo.prototype.aD.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Is;a.paused=this.em();a.volume=c.volume;In(a.volume)||(this.bb++,b=this.vf,In(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.oD=function(a){return Nn(),this.Is?1:vo.prototype.oD.call(this,a)};
g.k.Fk=function(){return 1};
g.k.getDuration=function(){return this.B};var hOa=g.Sa();dp.prototype.reset=function(){this.i=[];this.u=[]};
var gp=Pm(dp);g.w(mp,Xn);g.k=mp.prototype;g.k.getName=function(){return(this.u?this.u:this.i).getName()};
g.k.Dn=function(){return(this.u?this.u:this.i).Dn()};
g.k.Vl=function(){return(this.u?this.u:this.i).Vl()};
g.k.init=function(a){var b=!1;(0,g.jc)(this.B,function(c){c.initialize()&&(b=!0)});
b&&(this.C=a,Rn(this.i,this));return b};
g.k.dispose=function(){(0,g.jc)(this.B,function(a){a.dispose()});
Xn.prototype.dispose.call(this)};
g.k.GH=function(){return Jn(this.B,function(a){return a.mu()})};
g.k.ou=function(){return Jn(this.B,function(a){return a.mu()})};
g.k.Kx=function(a,b,c){return new Mo(a,this.i,b,c)};
g.k.Kn=function(a){this.u=a.u};var Qda={threshold:[0,.3,.5,.75,1]};g.w(np,Mo);g.k=np.prototype;g.k.TB=function(){var a=this;this.X||(this.X=un());if(rn(298,function(){return Rda(a)}))return!0;
this.u.Ch("msf");return!1};
g.k.nu=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.I?(this.I.unobserve(this.element),this.I=null):this.D&&(this.D.disconnect(),this.D=null)}catch(a){}};
g.k.Wm=function(){var a=op(this);0<a.length&&pp(this,a);Mo.prototype.Wm.call(this)};
g.k.dD=function(){};
g.k.jL=function(){return!1};
g.k.oJ=function(){};
g.k.Dn=function(){var a={};return Object.assign(this.u.Dn(),(a.niot_obs=this.X,a.niot_cbk=this.S,a))};
g.k.getName=function(){return"nio"};g.w(qp,Xn);qp.prototype.getName=function(){return"nio"};
qp.prototype.ou=function(){return!Nn().u&&null!=this.i.i.B.IntersectionObserver};
qp.prototype.Kx=function(a,b,c){return new np(a,this.i,b,c)};g.w(Ap,Qn);Ap.prototype.BK=function(){return Nn().i};
Ap.prototype.mu=function(){var a=zp();this.S!==a&&(this.i!=this&&a>this.i.S&&(this.i=this,Vn(this)),this.S=a);return 2==a};Cp.prototype.sample=function(){Fp(this,hp(),!1)};
Cp.prototype.C=function(){var a=On(),b=un();a?(wn||(xn=b,g.jc(gp.i,function(c){var d=c.Vg();d.Ka=Io(d,b,1!=c.wg)})),wn=!0):(this.K=Hp(this,b),wn=!1,bp=b,g.jc(gp.i,function(c){c.Iy&&(c.Vg().S=b)}));
Fp(this,hp(),!a)};
var Dp=Pm(Cp);var Ip=null,tq="",sq=!1;var g2=Op([void 0,1,2,3,4,8,16]),h2=Op([void 0,4,8,16]),iOa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Np("p0",h2),p1:Np("p1",h2),p2:Np("p2",h2),p3:Np("p3",h2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Mp("mtos1",[0,2,4],!1,h2),mtos2:Mp("mtos2",[0,2,4],!1,h2),mtos3:Mp("mtos3",[0,2,4],!1,h2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Np("a0",h2),a1:Np("a1",h2),a2:Np("a2",h2),a3:Np("a3",h2),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:Np("c0",h2),c1:Np("c1",h2),c2:Np("c2",h2),c3:Np("c3",h2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Np("qmtos",g2),qnc:Np("qnc",g2),qmv:Np("qmv",g2),qnv:Np("qnv",g2),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:Np("ss0",h2),ss1:Np("ss1",h2),ss2:Np("ss2",h2),ss3:Np("ss3",h2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},jOa={c:Jp("c"),
at:"at",atos:Mp("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:Lp(),j:"dom",mtos:Mp("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:Jp("ss"),vsv:jf("w2"),t:"t"},kOa={atos:"atos",avt:Mp("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:Jp("ss"),t:"t"},lOa={a:"a",tos:Lp(),at:"at",c:Jp("c"),mtos:Mp("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:jf("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},mOa={tos:Lp(),at:"at",c:Jp("c"),mtos:Mp("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:jf("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:Mp("qmtos",
[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return g.Mm(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};var Sp=Qp().vk,Rp=Qp().version;var Zda={C2:"visible",fZ:"audible",Z$:"time",aaa:"timetype"},Xp={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.w(Yp,Jo);Yp.prototype.getId=function(){return this.I};
Yp.prototype.D=function(){return!0};
Yp.prototype.C=function(a){var b=a.Vg(),c=a.getDuration();return Jn(this.K,function(d){if(void 0!=d.i)var e=aea(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.i;break b;case "tos":e=d.u?b.D.i:b.B.i;break b}e=0}0==e?d=!1:(d=-1!=d.B?d.B:void 0!==c&&0<c?d.C*c:-1,d=-1!=d&&e>=d);return d})};g.w(Zp,Jo);Zp.prototype.C=function(a){var b=mo(a.Vg().i,1);return Uo(a,b)};g.w($p,Jo);$p.prototype.C=function(a){return a.Vg().Xp()};g.w(cq,bea);cq.prototype.i=function(a){var b=new aq;b.i=bq(a,iOa);b.B=bq(a,kOa);return b};g.w(dq,No);dq.prototype.B=function(){var a=g.Ha("ima.admob.getViewability"),b=Hl(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
dq.prototype.getName=function(){return"gsv"};g.w(eq,Xn);eq.prototype.getName=function(){return"gsv"};
eq.prototype.ou=function(){var a=Nn();Zm();return a.u&&!1};
eq.prototype.Kx=function(a,b,c){return new dq(this.i,b,c)};g.w(fq,No);fq.prototype.B=function(){var a=this,b=g.Ha("ima.bridge.getNativeViewability"),c=Hl(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.De(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.i=Hn(d.opt_nativeViewBounds||{});var h=a.u.C;h.i=f?gOa.clone():Hn(e);a.timestamp=d.opt_nativeTime||-1;Nn().i=h.i;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
fq.prototype.getName=function(){return"nis"};g.w(gq,Xn);gq.prototype.getName=function(){return"nis"};
gq.prototype.ou=function(){var a=Nn();Zm();return a.u&&!1};
gq.prototype.Kx=function(a,b,c){return new fq(this.i,b,c)};g.w(hq,Qn);g.k=hq.prototype;g.k.mu=function(){return null!=this.u.xj};
g.k.tK=function(){var a={};this.Ha&&(a.mraid=this.Ha);this.va&&(a.mlc=1);a.mtop=this.u.lX;this.K&&(a.mse=this.K);this.Ka&&(a.msc=1);a.mcp=this.u.compatibility;return a};
g.k.Go=function(a){var b=g.Ba.apply(1,arguments);try{return this.u.xj[a].apply(this.u.xj,b)}catch(c){tn(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.Qv();this.isInitialized=!0;if(2===this.u.compatibility)return this.K="ng",this.Ch("w"),!1;if(1===this.u.compatibility)return this.K="mm",this.Ch("w"),!1;Nn().S=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?lq(this):Cn(this.B,"load",function(){Rm().setTimeout(sn(292,function(){return lq(a)}),100)},292);
return!0};
g.k.EH=function(){var a=Nn(),b=oq(this,"getMaxSize");a.i=new Zl(0,b.width,b.height,0)};
g.k.FH=function(){Nn().C=oq(this,"getScreenSize")};
g.k.dispose=function(){mq(this);Qn.prototype.dispose.call(this)};g.k=pq.prototype;g.k.Xu=function(a){wo(a,!1);Nda(a)};
g.k.pz=function(){};
g.k.Uw=function(a,b,c,d){var e=this;this.u||(this.u=this.MJ());b=c?b:-1;a=null==this.u?new Po(Ml,a,b,7):new Po(Ml,a,b,7,new Jo("measurable_impression",this.u),hea(this));a.Df=d;rca(a.featureSet);Gl(a.featureSet,"queryid",a.Df);a.RF("");sda(a,function(){return e.IK.apply(e,g.la(g.Ba.apply(0,arguments)))},function(){return e.qS.apply(e,g.la(g.Ba.apply(0,arguments)))});
(d=Pm(kp).i)&&xo(a,d);a.Pg.Tn&&Pm(Bp);return a};
g.k.Gs=function(a){switch(a.Vl()){case 0:if(a=Pm(kp).i)a=a.i,g.Ub(a.D,this),a.X&&this.Uk()&&Tn(a);rq();break;case 2:Ep()}};
g.k.Kn=function(){};
g.k.Uk=function(){return!1};
g.k.qS=function(a,b){a.Os=!0;switch(a.Fk()){case 1:xq(this,a,b);break;case 2:this.ZF(a)}this.lG()};
g.k.yS=function(a){Wo(a,0);return Zo(a,"start",On())};
g.k.Nt=function(a,b,c){Fp(Dp,[a],!On());return this.Gn(a,b,c)};
g.k.Gn=function(a,b,c){return Zo(a,c,On())};
g.k.tS=function(a){return yq(a,"firstquartile",1)};
g.k.vS=function(a){a.Wa=!0;return yq(a,"midpoint",2)};
g.k.zS=function(a){return yq(a,"thirdquartile",3)};
g.k.rS=function(a){var b=yq(a,"complete",4);Qo(a);return b};
g.k.EN=function(a,b,c){b=On();if(a.em()&&!b){var d=un();a.Vg().S=d}Fp(Dp,[a],!b);a.em()&&(a.wg=1);return Zo(a,c,b)};
g.k.xS=function(a,b){b=this.Nt(a,b||{},"skip");Qo(a);return b};
g.k.uS=function(a,b){wo(a,!0);return this.Nt(a,b||{},"fullscreen")};
g.k.sS=function(a,b){wo(a,!1);return this.Nt(a,b||{},"exitfullscreen")};
g.k.KF=function(a,b,c){b=a.Vg();var d=un();b.Ka=Io(b,d,1!=a.wg);Fp(Dp,[a],!On());1==a.wg&&(a.wg=2);return Zo(a,c,On())};
g.k.wS=function(a){Fp(Dp,[a],!On());return a.u()};
g.k.qE=function(a){Fp(Dp,[a],!On());this.yN(a);Qo(a);return a.u()};
g.k.IK=function(){};
g.k.ZF=function(){};
g.k.yN=function(){};
g.k.HH=function(){};
g.k.lG=function(){};
g.k.MJ=function(){};var Cq=g.Sa(),Eq=!1,Fq=!1,Gq=!1,nea=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return Dq(0)},
function(a){return!!a.ActiveXObject},
function(a){return!!a.chrome},
function(a){return!!a.navigator.serviceWorker},
function(a){return!!a.opera},
function(a){return!!a.sidebar},
function(){return!+"\v1"},
function(){return Dq(1)},
function(a){return!a.ActiveXObject},
function(a){return"-ms-ime-align"in a.document.documentElement.style},
function(a){return"-ms-scroll-limit"in a.document.documentElement.style},
function(a){return"-webkit-font-feature-settings"in a.document.body.style},
function(){return Dq(2)},
function(a){return"ActiveXObject"in a},
function(a){return"MozAppearance"in a.document.documentElement.style},
function(a){return"_phantom"in a},
function(a){return"callPhantom"in a},
function(a){return"content"in a.document.createElement("template")},
function(a){return"getEntriesByType"in a.performance},
function(){return Dq(3)},
function(a){return"image-rendering"in a.document.body.style},
function(a){return"object-fit"in a.document.body.style},
function(a){return"open"in a.document.createElement("details")},
function(a){return"orientation"in a.screen},
function(a){return"performance"in a},
function(a){return"shape-image-threshold"in a.document.body.style},
function(){return Dq(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return Fq},
function(){return Gq},
function(){return Dq(5)},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="-webkit-min-content";a.style.width="min-content";return"1px"!=a.style.width},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="calc(1px - 1px)";a.style.width="-webkit-calc(1px - 1px)";return"1px"!=a.style.width},
function(){var a=!1;eval('var DummyFunction1 = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{DummyFunction1()}catch(b){a=!0}return a},
function(){var a=!1;try{DummyFunction2()}catch(b){a=!0}return a},
function(){return!1},
function(){return Dq(6)},
function(a){var b=a.document.createElement("canvas");b.width=b.height=1;b=b.getContext("2d");b.globalCompositeOperation="multiply";b.fillStyle="rgb(0,255,255)";b.fillRect(0,0,1,1);b.fill();b.fillStyle="rgb(255,255,0)";b.fillRect(0,0,1,1);b.fill();b=b.getImageData(0,0,1,1).data;return b[0]==b[2]&&b[1]==b[3]||Bq(a.navigator.vibrate)},
function(a){a=a.document.createElement("canvas");a.width=a.height=1;a=a.getContext("2d");a.globalCompositeOperation="multiply";a.fillStyle="rgb(0,255,255)";a.fillRect(0,0,1,1);a.fill();a.fillStyle="rgb(255,255,0)";a.fillRect(0,0,1,1);a.fill();a=a.getImageData(0,0,1,1).data;return a[0]==a[2]&&a[1]==a[3]},
function(a){a=a.document.createElement("div");return Bq(a.matches)},
function(a){a=a.document.createElement("input");a.setAttribute("type","range");return"text"!==a.type},
function(a){return a.CSS.supports("image-rendering","pixelated")},
function(a){return a.CSS.supports("object-fit","contain")},
function(){return Dq(7)},
function(a){return a.CSS.supports("object-fit","inherit")},
function(a){return a.CSS.supports("shape-image-threshold","0.9")},
function(a){return a.CSS.supports("word-break","keep-all")},
function(){return eval("1 == [for (item of [1,2,3]) item][0]")},
function(a){return Bq(a.CSS.supports)},
function(){return Bq(Intl.Collator)},
function(a){return Bq(a.document.createElement("dialog").show)},
function(){return Dq(8)},
function(a){return Bq(a.document.createElement("div").animate([{transform:"scale(1)",easing:"ease-in"},{transform:"scale(1.3)",easing:"ease-in"}],{duration:1300,iterations:1}).reverse)},
function(a){return Bq(a.document.createElement("div").animate)},
function(a){return Bq(a.document.documentElement.webkitRequestFullScreen)},
function(a){return Bq(a.navigator.getBattery)},
function(a){return Bq(a.navigator.permissions.query)},
function(){return!1},
function(){return Dq(9)},
function(){return Bq(webkitRequestAnimationFrame)},
function(a){return Bq(a.BroadcastChannel.call)},
function(a){return Bq(a.FontFace)},
function(a){return Bq(a.Gamepad)},
function(){return Dq(10)},
function(a){return Bq(a.MutationEvent)},
function(a){return Bq(a.MutationObserver)},
function(a){return Bq(a.crypto.getRandomValues)},
function(a){return Bq(a.document.body.createShadowRoot)},
function(a){return Bq(a.document.body.webkitCreateShadowRoot)},
function(a){return Bq(a.fetch)},
function(){return Dq(11)},
function(a){return Bq(a.navigator.serviceWorker.register)},
function(a){return Bq(a.navigator.webkitGetGamepads)},
function(a){return Bq(a.speechSynthesis.speak)},
function(a){return Bq(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return Dq(12)},
function(a){return a.CSS.supports("cursor","grab")},
function(a){return a.CSS.supports("cursor","zoom-in")},
function(a){return a.CSS.supports("image-orientation","270deg")},
function(){return Dq(13)},
function(a){return a.CSS.supports("position","sticky")},
function(a){return void 0===a.document.createElement("style").scoped},
function(a){return a.performance.getEntriesByType("resource")instanceof Array},
function(){return"undefined"==typeof InstallTrigger},
function(){return"object"==typeof(new Intl.Collator).resolvedOptions()},
function(a){return"boolean"==typeof a.navigator.onLine},
function(){return Dq(14)},
function(a){return"undefined"==typeof a.navigator.sda},
function(a){return"number"==typeof a.performance.now()},
function(){return 0==(new Uint16Array(1))[0]},
function(a){return-1==a.ActiveXObject.toString().indexOf("native")},
function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],oea=[function(a){a=a.document.createElement("div");
var b=null,c=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];try{a.style.behavior="url(#default#clientcaps)"}catch(e){}for(var d=0;d<c.length;d++){try{b=a.getComponentVersion(c[d],"componentid").replace(/,/g,".")}catch(e){}if(b)return b.split(".")[0]}return!1},
function(){return(new Date).getTimezoneOffset()},
function(a){return(a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth)/(a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight)},
function(a){return(a.outerWidth||a.document&&a.document.body&&a.document.body.offsetWidth)/(a.outerHeight||a.document&&a.document.body&&a.document.body.offsetHeight)},
function(a){return a.screen.availWidth/a.screen.availHeight},
function(a){return a.screen.width/a.screen.height}],pea=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.Ta(Hq,rea);Hq.prototype.reset=function(){this.i[0]=1732584193;this.i[1]=4023233417;this.i[2]=2562383102;this.i[3]=271733878;this.B=this.u=0};
Hq.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=this.C,e=this.u,f=0;f<b;){if(0==e)for(;f<=c;)Iq(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){Iq(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){Iq(this,d);e=0;break}}this.u=e;this.B+=b};
Hq.prototype.digest=function(){var a=Array((56>this.u?this.blockSize:2*this.blockSize)-this.u);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.B;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.i[b]>>>d&255;return a};g.w(Jq,cq);Jq.prototype.i=function(a){var b=cq.prototype.i.call(this,a);var c=Cq=g.Sa();var d=Dq(5);c=(Fq?!d:d)?c|2:c&-3;d=Dq(2);c=(Gq?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.u||(this.u=qea());b.D=this.u;b.I=bq(a,jOa,c,"h",Kq("kArwaWEsTs"));b.C=bq(a,lOa,{},"h",Kq("b96YPMzfnx"));b.u=bq(a,mOa,{},"h",Kq("yb8Wev6QDg"));return b};Lq.prototype.u=function(){return g.Ha(this.i)};g.w(Mq,pq);g.k=Mq.prototype;g.k.pz=function(a,b){var c=this,d=Pm(kp);if(null!=d.i)switch(d.i.getName()){case "nis":var e=Iga(this,a,b);break;case "gsv":e=Hga(this,a,b);break;case "exc":e=Jga(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=kea(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Fk()&&(e.S==g.Ia&&(e.S=function(f){return c.HH(f)}),tea(this,e,b));
return e};
g.k.HH=function(a){a.u=0;a.Aa=0;if("h"==a.C||"n"==a.C){Zm();a.Va&&(Zm(),"h"!=vq(this)&&vq(this));var b=g.Ha("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Df)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.Ha("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Df)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.Ha("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Df)}catch(e){a.u|=4}else a.u|=2;else a.u|=1;a.u||(void 0===c?a.u|=8:null===
c?a.u|=16:g.De(c)?a.u|=32:null!=c.errorCode&&(a.Aa=c.errorCode,a.u|=64));null==c&&(c={});b=c;a.K=0;for(var d in dOa)null==b[d]&&(a.K|=dOa[d]);Aq(b,"currentTime");Aq(b,"duration");In(c.volume)&&In(void 0)&&(c.volume*=NaN);return c};
g.k.MJ=function(){Zm();"h"!=vq(this)&&vq(this);var a=Rga(this);return null!=a?new Lq(a,this.C):null};
g.k.ZF=function(a){!a.i&&a.Os&&wq(this,a,"overlay_unmeasurable_impression")&&(a.i=!0)};
g.k.yN=function(a){a.QN&&(a.Xp()?wq(this,a,"overlay_viewable_end_of_session_impression"):wq(this,a,"overlay_unviewable_impression"),a.QN=!1)};
g.k.IK=function(){};
g.k.lG=function(){};
g.k.Uw=function(a,b,c,d){a=pq.prototype.Uw.call(this,a,b,c,d);this.D&&(b=this.I,null==a.D&&(a.D=new tda),b.i[a.Df]=a.D,a.D.D=hOa);return a};
g.k.Xu=function(a){a&&1==a.Fk()&&this.D&&delete this.I.i[a.Df];return pq.prototype.Xu.call(this,a)};
var Nq=new aq;Nq.D="stopped";Nq.i="stopped";Nq.B="stopped";Nq.I="stopped";Nq.C="stopped";Nq.u="stopped";Object.freeze(Nq);var nOa=pn(193,Qq,zq);g.Ga("Goog_AdSense_Lidar_sendVastEvent",nOa,void 0);var oOa=sn(194,function(a,b){b=void 0===b?{}:b;a=Oq(Pm(Mq),a,b);return Pq(a)});
g.Ga("Goog_AdSense_Lidar_getViewability",oOa,void 0);var pOa=pn(195,function(){return Tm()},void 0);
g.Ga("Goog_AdSense_Lidar_getUrlSignalsArray",pOa,void 0);var qOa=sn(196,function(){return JSON.stringify(Tm())});
g.Ga("Goog_AdSense_Lidar_getUrlSignalsList",qOa,void 0);var Aha=(new Date).getTime();var Sq="://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(" "),Uga=/\bocr\b/;var Wga=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.w(Wq,g.ef);Wq.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.uj.gi(this.I);delete Wq.i};
Wq.prototype.Ce=function(){return this.i};var Ooa={a5:"LIVING_ROOM_APP_MODE_UNSPECIFIED",X4:"LIVING_ROOM_APP_MODE_MAIN",W4:"LIVING_ROOM_APP_MODE_KIDS",Y4:"LIVING_ROOM_APP_MODE_MUSIC",Z4:"LIVING_ROOM_APP_MODE_UNPLUGGED",V4:"LIVING_ROOM_APP_MODE_GAMING"};Xq.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)};
Xq.prototype.get=function(a){return!!this.data_[a]};g.Ta(g.Yq,g.E);g.k=g.Yq.prototype;g.k.start=function(){this.stop();this.C=!1;var a=$q(this),b=ar(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.i=Se(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.i=a&&b?a.call(this.u,this.B):this.u.setTimeout(kf(this.B),20)};
g.k.stop=function(){if(this.isActive()){var a=$q(this),b=ar(this);a&&!b&&this.u.mozRequestAnimationFrame?bf(this.i):a&&b?b.call(this.u,this.i):this.u.clearTimeout(this.i)}this.i=null};
g.k.isActive=function(){return null!=this.i};
g.k.eP=function(){this.C&&this.i&&bf(this.i);this.i=null;this.I.call(this.D,g.Sa())};
g.k.xa=function(){this.stop();g.Yq.ge.xa.call(this)};g.Ta(g.I,g.E);g.k=g.I.prototype;g.k.pu=0;g.k.xa=function(){g.I.ge.xa.call(this);this.stop();delete this.i;delete this.u};
g.k.start=function(a){this.stop();this.pu=g.Hh(this.B,void 0!==a?a:this.Uf)};
g.k.stop=function(){this.isActive()&&g.B.clearTimeout(this.pu);this.pu=0};
g.k.isActive=function(){return 0!=this.pu};
g.k.IH=function(){this.pu=0;this.i&&this.i.call(this.u)};er.prototype[Symbol.iterator]=function(){return this};
er.prototype.next=function(){var a=this.i.next();return{value:a.done?void 0:this.u.call(void 0,a.value,this.B++),done:a.done}};nr.prototype.Jg=function(){return new or(this.i())};
nr.prototype[Symbol.iterator]=function(){return new pr(this.i())};
nr.prototype.u=function(){return new pr(this.i())};
g.w(or,g.zo);or.prototype.yj=function(){var a=this.i.next();if(a.done)throw g.Bo;return a.value};
or.prototype.next=function(){return this.i.next()};
or.prototype[Symbol.iterator]=function(){return new pr(this.i)};
or.prototype.u=function(){return new pr(this.i)};
g.w(pr,nr);pr.prototype.next=function(){return this.B.next()};g.k=g.sr.prototype;g.k.Mp=function(){ur(this);for(var a=[],b=0;b<this.i.length;b++)a.push(this.u[this.i[b]]);return a};
g.k.xs=function(){ur(this);return this.i.concat()};
g.k.has=function(a){return tr(this.u,a)};
g.k.isEmpty=function(){return 0==this.size};
g.k.clear=function(){this.u={};this.Qo=this.size=this.i.length=0};
g.k.remove=function(a){return this.delete(a)};
g.k.delete=function(a){return tr(this.u,a)?(delete this.u[a],--this.size,this.Qo++,this.i.length>2*this.size&&ur(this),!0):!1};
g.k.get=function(a,b){return tr(this.u,a)?this.u[a]:b};
g.k.set=function(a,b){tr(this.u,a)||(this.size+=1,this.i.push(a),this.Qo++);this.u[a]=b};
g.k.forEach=function(a,b){for(var c=this.xs(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.k.clone=function(){return new g.sr(this)};
g.k.keys=function(){return rr(this.Jg(!0)).u()};
g.k.values=function(){return rr(this.Jg(!1)).u()};
g.k.entries=function(){var a=this;return Yga(this.keys(),function(b){return[b,a.get(b)]})};
g.k.Jg=function(a){ur(this);var b=0,c=this.Qo,d=this,e=new g.zo;e.next=function(){if(c!=d.Qo)throw Error("The map has changed since the iterator was created");if(b>=d.i.length)return g.e2;var h=d.i[b++];return g.Ao(a?h:d.u[h])};
var f=e.next;e.yj=function(){return g.Co(f.call(e))};
return e};g.Ta(g.vr,g.ef);g.k=g.vr.prototype;g.k.Ec=function(){return 1==this.i};
g.k.hA=function(){this.oi("begin")};
g.k.Cw=function(){this.oi("end")};
g.k.onFinish=function(){this.oi("finish")};
g.k.oi=function(a){this.dispatchEvent(a)};var rOa=lf(function(){if(g.Cc)return g.sc("10.0");var a=g.Ng("DIV"),b=g.Ig?"-webkit":hm?"-moz":g.Cc?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!PNa.test("div"))throw Error("");if("DIV"in RNa)throw Error("");var d=void 0;c=null;var e="";if(b)for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)){if(!PNa.test(l))throw Error("");var f=b[l];if(null!=f){var h=l;if(f instanceof rf)f=sf(f);else if("style"==h.toLowerCase()){if(!g.Na(f))throw Error("");
f instanceof Kf||(f=Pf(f));f=Lf(f)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in QNa)if(f instanceof yf)f=zf(f).toString();else if(f instanceof g.Cf)f=g.Df(f);else if("string"===typeof f)f=g.Hf(f).Gh();else throw Error("");}f.Jk&&(f=f.Gh());h=h+'="'+tb(String(f))+'"';e+=" "+h}}var l="<div"+e;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===LNa.div?l+=">":(c=$aa(d),l+=">"+g.Uf(c).toString()+"</div>",c=c.qs());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Vf(l,c);g.$f(a,b);return""!=
g.im(a.firstChild,"transition")});g.Ta(wr,g.vr);g.k=wr.prototype;g.k.play=function(){if(this.Ec())return!1;this.hA();this.oi("play");this.startTime=g.Sa();this.i=1;if(rOa())return g.fm(this.u,this.K),this.C=g.Hh(this.EW,void 0,this),!0;this.UB(!1);return!1};
g.k.EW=function(){g.um(this.u);Zga(this.u,this.S);g.fm(this.u,this.D);this.C=g.Hh((0,g.D)(this.UB,this,!1),1E3*this.I)};
g.k.stop=function(){this.Ec()&&this.UB(!0)};
g.k.UB=function(a){g.fm(this.u,"transition","");g.B.clearTimeout(this.C);g.fm(this.u,this.D);this.endTime=g.Sa();this.i=0;if(a)this.oi("stop");else this.onFinish();this.Cw()};
g.k.xa=function(){this.stop();wr.ge.xa.call(this)};
g.k.pause=function(){};var yr=g.Ia;var $ga={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};Br("Element","attributes")||Br("Node","attributes");Br("Element","innerHTML")||Br("HTMLElement","innerHTML");Br("Node","nodeName");Br("Node","nodeType");Br("Node","parentNode");Br("Node","childNodes");Br("HTMLElement","style")||Br("Element","style");Br("HTMLStyleElement","sheet");var dha=Cr("getPropertyValue"),eha=Cr("setProperty");Br("Element","namespaceURI")||Br("Node","namespaceURI");var cha={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Gr.prototype.clone=function(){return new g.Gr(this.i,this.K,this.B,this.D,this.C,this.I,this.u,this.S)};Ir.prototype.clone=function(){return new Ir(this.start,this.end)};var sOa=new WeakMap;(function(){if(jJa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Ab))?a[1]:"0"}return $F?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Ab))?a[0].replace(/_/g,"."):"10"):g.Cu?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Ab))?a[1]:""):FNa||GNa||HNa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Ab))?a[1].replace(/_/g,"."):""):""})();var lha=function(){if(g.mj)return Jr(/Firefox\/([0-9.]+)/);if(g.Cc||g.Pw||g.vE)return rc;if(g.lj){if(Hb()||Bb("Macintosh")){var a=Jr(/CriOS\/([0-9.]+)/);if(a)return a}return Jr(/Chrome\/([0-9.]+)/)}if(g.nj&&!Hb())return Jr(/Version\/([0-9.]+)/);if(EE||DG){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Ab))return a[1]+"."+a[2]}else if(g.wE)return(a=Jr(/Android\s+([0-9.]+)/))?a:Jr(/Version\/([0-9.]+)/);return""}();g.Ta(g.Lr,g.E);g.k=g.Lr.prototype;g.k.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.I;this.i[e]=a;this.i[e+1]=b;this.i[e+2]=c;this.I=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.i;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.cg(a)}return!1};
g.k.cg=function(a){var b=this.i[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.i[a+1]=g.Ia):(c&&g.Ub(c,a),delete this.i[a],delete this.i[a+1],delete this.i[a+2])}return!!b};
g.k.ea=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.K)for(e=0;e<c.length;e++){var h=c[e];mha(this.i[h+1],this.i[h+2],d)}else{this.C++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)h=c[e],this.i[h+1].apply(this.i[h+2],d)}finally{if(this.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.cg(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.u[a];b&&(b.forEach(this.cg,this),delete this.u[a])}else this.i.length=0,this.u={}};
g.k.xa=function(){g.Lr.ge.xa.call(this);this.clear();this.B.length=0};g.Mr.prototype.set=function(a,b){void 0===b?this.i.remove(a):this.i.set(a,g.ji(b))};
g.Mr.prototype.get=function(a){try{var b=this.i.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.Mr.prototype.remove=function(a){this.i.remove(a)};g.Ta(Nr,g.Mr);Nr.prototype.set=function(a,b){Nr.ge.set.call(this,a,Pr(b))};
Nr.prototype.u=function(a){a=Nr.ge.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Nr.prototype.get=function(a){if(a=this.u(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Ta(Qr,Nr);Qr.prototype.set=function(a,b,c){if(b=Pr(b)){if(c){if(c<g.Sa()){Qr.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Sa()}Qr.ge.set.call(this,a,b)};
Qr.prototype.u=function(a,b){var c=Qr.ge.u.call(this,a);if(c)if(!b&&g.Rr(c))Qr.prototype.remove.call(this,a);else return c};g.Ta(g.Sr,Qr);g.Ta(Tr,nha);Tr.prototype[Symbol.iterator]=function(){return rr(this.Jg(!0)).u()};
Tr.prototype.clear=function(){var a=Array.from(this);a=g.r(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.Ta(Ur,Tr);g.k=Ur.prototype;g.k.isAvailable=function(){if(!this.i)return!1;try{return this.i.setItem("__sak","1"),this.i.removeItem("__sak"),!0}catch(a){return!1}};
g.k.set=function(a,b){try{this.i.setItem(a,b)}catch(c){if(0==this.i.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.k.get=function(a){a=this.i.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.i.removeItem(a)};
g.k.Jg=function(a){var b=0,c=this.i,d=new g.zo;d.next=function(){if(b>=c.length)return g.e2;var f=c.key(b++);if(a)return g.Ao(f);f=c.getItem(f);if("string"!==typeof f)throw"Storage mechanism: Invalid value was encountered";return g.Ao(f)};
var e=d.next;d.yj=function(){return g.Co(e.call(d))};
return d};
g.k.clear=function(){this.i.clear()};
g.k.key=function(a){return this.i.key(a)};g.Ta(Vr,Ur);g.Ta(Wr,Ur);g.Ta(Yr,Tr);var oha={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Xr=null;g.k=Yr.prototype;g.k.isAvailable=function(){return!!this.i};
g.k.set=function(a,b){this.i.setAttribute(Zr(a),b);$r(this)};
g.k.get=function(a){a=this.i.getAttribute(Zr(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.i.removeAttribute(Zr(a));$r(this)};
g.k.Jg=function(a){var b=0,c=this.i.XMLDocument.documentElement.attributes,d=new g.zo;d.next=function(){if(b>=c.length)return g.e2;var f=c[b++];if(a)return g.Ao(decodeURIComponent(f.nodeName.replace(/\./g,"%")).substr(1));f=f.nodeValue;if("string"!==typeof f)throw"Storage mechanism: Invalid value was encountered";return g.Ao(f)};
var e=d.next;d.yj=function(){return g.Co(e.call(d))};
return d};
g.k.clear=function(){for(var a=this.i.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);$r(this)};g.Ta(as,Tr);as.prototype.set=function(a,b){this.u.set(this.i+a,b)};
as.prototype.get=function(a){return this.u.get(this.i+a)};
as.prototype.remove=function(a){this.u.remove(this.i+a)};
as.prototype.Jg=function(a){var b=this.u.Jg(!0),c=this,d=new g.zo;d.next=function(){try{var f=b.yj()}catch(h){if(h===g.Bo)return g.e2;throw h;}for(;f.substr(0,c.i.length)!=c.i;)try{f=b.yj()}catch(h){if(h===g.Bo)return g.e2;throw h;}return g.Ao(a?f.substr(c.i.length):c.u.get(f))};
var e=d.next;d.yj=function(){return g.Co(e.call(d))};
return d};cs.prototype.getKey=function(){return this.i};
cs.prototype.getValue=function(){return this.u};
cs.prototype.clone=function(){return new cs(this.i,this.u)};g.k=ds.prototype;g.k.remove=function(){var a=this.i,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Sb(a);else{a[0]=a.pop();a=0;b=this.i;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,h=2*a+2;f=h<d&&b[h].getKey()<b[f].getKey()?h:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.Mp=function(){for(var a=this.i,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.xs=function(){for(var a=this.i,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.k.clone=function(){return new ds(this)};
g.k.isEmpty=function(){return 0===this.i.length};
g.k.clear=function(){Sb(this.i)};g.Ta(fs,ds);Ja(gs);gs.prototype.i=0;/*


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
var js="@@redux/INIT"+is(),rha="@@redux/REPLACE"+is();var ls="function"===typeof Symbol&&Symbol.observable||"@@observable";g.w(ms,rd);ms.prototype.getType=function(){return vd(this,11,0)};
g.w(ns,rd);ns.prototype.getKey=function(){return sd(this,3)};
var sha=[2,13,14];g.w(ps,os);g.w(qs,ps);qs.prototype.Qd=function(){return[]};var Roa={Jaa:0,Gba:1,Nba:32,Sba:61,Xba:67,Uba:86,Mba:42,Oba:60,Kba:62,Rba:73,Qba:76,Vba:88,Wba:90,Yba:41,Zba:69,aca:70,bca:71,N7:2,O7:27,ANDROID:3,MY:54,OY:14,VY:91,PY:55,QY:24,RY:20,SY:18,UY:21,XY:30,aZ:29,bZ:28,cZ:34,WY:36,TY:38,IOS:5,L3:15,V3:92,M3:40,O3:25,P3:17,Q3:19,R3:64,S3:66,T3:26,X3:22,Y3:33,Z3:68,a4:35,U3:53,W3:37,N3:39,uaa:7,vaa:57,waa:43,xaa:59,ZY:74,yaa:75,zaa:85,Aaa:65,Caa:80,Daa:8,saa:10,Gaa:58,Faa:63,Baa:72,YY:23,gca:11,hca:13,PZ:12,taa:16,Lba:56,Tba:31,s7:77,e3:84,Pba:87,f3:89};g.w(rs,ps);rs.prototype.Qd=function(){var a=[];this.i.alternateChannel&&a.push(this.i.alternateChannel);this.i.alternateChannelList&&a.push.apply(a,g.la(this.i.alternateChannelList));this.i.oneofChannelEntity&&a.push(this.i.oneofChannelEntity);return[].concat(g.la(new Set(a)))};g.w(ts,ps);ts.prototype.Qd=function(){var a=[];this.i.entryCollection&&a.push(this.i.entryCollection);return[].concat(g.la(new Set(a)))};
g.w(us,ps);us.prototype.Qd=function(){var a=[];this.i.parentPlaylist&&a.push(this.i.parentPlaylist);if(this.i.entries)for(var b=g.r(this.i.entries),c=b.next();!c.done;c=b.next())a.push.apply(a,g.la((new vs(c.value)).Qd()));return[].concat(g.la(new Set(a)))};
g.w(vs,os);vs.prototype.Qd=function(){var a=[];this.i.video&&a.push(this.i.video);return[].concat(g.la(new Set(a)))};g.w(ws,ps);ws.prototype.Qd=function(){var a=[];this.i.descriptionEntity&&a.push(this.i.descriptionEntity);this.i.creators&&a.push.apply(a,g.la(this.i.creators));this.i.theBiggestFan&&a.push(this.i.theBiggestFan);return[].concat(g.la(new Set(a)))};
g.w(xs,ps);xs.prototype.Qd=function(){return[]};g.w(ys,ps);ys.prototype.Qd=function(){return[]};g.w(zs,ps);zs.prototype.Qd=function(){return[]};g.w(As,ps);As.prototype.Qd=function(){return[]};g.w(Bs,ps);Bs.prototype.Qd=function(){return[]};g.w(Cs,ps);Cs.prototype.Qd=function(){var a=[];this.i.fakeChildren&&a.push.apply(a,g.la(this.i.fakeChildren));return[].concat(g.la(new Set(a)))};g.w(Ds,ps);Ds.prototype.Qd=function(){var a=[];this.i.video&&a.push(this.i.video);this.i.playbackData&&a.push(this.i.playbackData);this.i.offlineVideoPolicy&&a.push(this.i.offlineVideoPolicy);return[].concat(g.la(new Set(a)))};g.w(Es,ps);Es.prototype.Qd=function(){return[]};g.w(Fs,ps);Fs.prototype.Qd=function(){var a=[];this.i.channelOwner&&a.push(this.i.channelOwner);this.i.playbackPosition&&a.push(this.i.playbackPosition);this.i.downloadStatus&&a.push(this.i.downloadStatus);return[].concat(g.la(new Set(a)))};g.w(Gs,ps);Gs.prototype.Qd=function(){return[]};g.w(Hs,ps);Hs.prototype.Qd=function(){return[]};g.w(Is,ps);Is.prototype.Qd=function(){return[]};g.w(Js,ps);Js.prototype.Qd=function(){return[]};g.w(Ks,ps);Ks.prototype.Qd=function(){return[]};g.w(Ls,ps);Ls.prototype.Qd=function(){var a=[];this.i.transfer&&a.push(this.i.transfer);this.i.adsPlaybackData&&a.push.apply(a,g.la(this.i.adsPlaybackData));this.i.drmLicense&&a.push(this.i.drmLicense);this.i.offlineVideoPolicy&&a.push(this.i.offlineVideoPolicy);return[].concat(g.la(new Set(a)))};g.w(Ms,ps);Ms.prototype.Qd=function(){var a=[];this.i.offlineVideoStreams&&a.push.apply(a,g.la(this.i.offlineVideoStreams));this.i.captionTrack&&a.push.apply(a,g.la(this.i.captionTrack));return[].concat(g.la(new Set(a)))};g.w(Ns,ps);Ns.prototype.Qd=function(){return[]};g.w(Qs,rd);var i2,j2,k2,l2=g.B.window,Ss=(null===(i2=null===l2||void 0===l2?void 0:l2.yt)||void 0===i2?void 0:i2.config_)||(null===(j2=null===l2||void 0===l2?void 0:l2.ytcfg)||void 0===j2?void 0:j2.data_)||{},tOa=(null===(k2=null===l2||void 0===l2?void 0:l2.ytcfg)||void 0===k2?void 0:k2.obfuscatedData_)||[];g.w(Rs,Qs);Rs.prototype.I=function(a){return Qs.prototype.I.call(this,a)};
new Rs(tOa);g.Ga("yt.config_",Ss,void 0);g.Ga("yt.configJspb_",tOa,void 0);var Ys=[];var zha=/^[\w.]*$/,yha={q:!0,search_query:!0},xha=String(ct);var Kt=new function(){var a=window.document;this.i=window;this.u=a};
g.Ga("yt.ads_.signals_.getAdSignalsString",function(a){return dt(Mt(a))},void 0);g.Sa();var Nt="XMLHttpRequest"in g.B?function(){return new XMLHttpRequest}:null;var Ut={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL",
"X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},Dha="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.la("client_dev_mss_url client_dev_regex_map client_dev_root_url expflag jsfeat jsmode client_rollout_override".split(" "))),Zt=!1,Osa=Vt;g.w(au,Va);du.prototype.then=function(a,b,c){return 1===this.u&&a?(a=a.call(c,this.i),lh(a)?a:fu(a)):2===this.u&&b?(a=b.call(c,this.i),lh(a)?a:eu(a)):this};
du.prototype.getValue=function(){return this.i};
du.prototype.$goog_Thenable=!0;var gu=!1;var Au=EE||DG;g.w(Hu,Va);Hu.prototype.name="BiscottiError";g.w(Gu,Va);Gu.prototype.name="BiscottiMissingError";var Ju={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Iu=null;var fia={appSettingsCaptured:!0,visualElementAttached:!0,visualElementGestured:!0,visualElementHidden:!0,visualElementShown:!0,flowEvent:!0,visualElementStateChanged:!0,playbackAssociated:!0,youThere:!0,accountStateChangeSignedIn:!0,accountStateChangeSignedOut:!0},eia={latencyActionBaselined:!0,latencyActionInfo:!0,latencyActionTicked:!0,bedrockRepetitiveActionTimed:!0,adsClientStateChange:!0,streamzIncremented:!0,mdxDialAdditionalDataUpdateEvent:!0,tvhtml5WatchKeyEvent:!0,tvhtml5VideoSeek:!0,tokenRefreshEvent:!0,
adNotify:!0,adNotifyFilled:!0,tvhtml5LaunchUrlComponentChanged:!0,bedrockResourceConsumptionSnapshot:!0,deviceStartupMetrics:!0,mdxSignIn:!0,tvhtml5KeyboardLogging:!0,tvhtml5StartupSoundEvent:!0,tvhtml5LiveChatStatus:!0,tvhtml5DeviceStorageStatus:!0,tvhtml5LocalStorage:!0,directSignInEvent:!0,finalPayload:!0,tvhtml5SearchCompleted:!0,tvhtml5KeyboardPerformance:!0,adNotifyFailure:!0,latencyActionSpan:!0,tvhtml5AccountDialogOpened:!0,tvhtml5ApiTest:!0};var uOa=0,Ou=g.Ig?"webkit":hm?"moz":g.Cc?"ms":g.vE?"o":"",vOa=g.Ha("ytDomDomGetNextId")||function(){return++uOa};
g.Ga("ytDomDomGetNextId",vOa,void 0);var Lha={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};Ru.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Ru.prototype.iL=function(){return this.event?!1===this.event.returnValue:!1};
Ru.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Ru.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Tu=g.B.ytEventsEventsListeners||{};g.Ga("ytEventsEventsListeners",Tu,void 0);var Uu=g.B.ytEventsEventsCounter||{count:0};g.Ga("ytEventsEventsCounter",Uu,void 0);var Vja=lf(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Vu=lf(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var fE=window.ytcsi&&window.ytcsi.now?window.ytcsi.now:window.performance&&window.performance.timing&&window.performance.now&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};g.Ta(gv,g.E);gv.prototype.X=function(a){void 0===a.i&&Su(a);var b=a.i;void 0===a.u&&Su(a);this.i=new g.hg(b,a.u)};
gv.prototype.En=function(){return this.i||new g.hg};
gv.prototype.Z=function(){if(this.i){var a=fE();if(0!=this.C){var b=this.I,c=this.i,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.C);this.u[this.B]=.5<Math.abs((d-this.D)/this.D)?1:0;for(c=b=0;4>c;c++)b+=this.u[c]||0;3<=b&&this.K();this.D=d}this.C=a;this.I=this.i;this.B=(this.B+1)%4}};
gv.prototype.xa=function(){Tt(this.S);g.Xu(this.oa)};hv.prototype.Of=function(a,b){return iv(a,1,b)};g.w(kv,hv);kv.prototype.gi=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ha("yt.scheduler.instance.cancelJob");b?b(a):g.St(a)}};
kv.prototype.start=function(){var a=g.Ha("yt.scheduler.instance.start");a&&a()};
kv.prototype.pause=function(){var a=g.Ha("yt.scheduler.instance.pause");a&&a()};g.tv=lv();var rv={};var yv={},Rha=0;var wOa,Av,Cv;wOa=g.B.ytPubsubPubsubInstance||new g.Lr;Av=g.B.ytPubsubPubsubSubscribedKeys||{};Cv=g.B.ytPubsubPubsubTopicToKeys||{};g.Bv=g.B.ytPubsubPubsubIsSynchronous||{};g.Lr.prototype.subscribe=g.Lr.prototype.subscribe;g.Lr.prototype.unsubscribeByKey=g.Lr.prototype.cg;g.Lr.prototype.publish=g.Lr.prototype.ea;g.Lr.prototype.clear=g.Lr.prototype.clear;g.Ga("ytPubsubPubsubInstance",wOa,void 0);g.Ga("ytPubsubPubsubTopicToKeys",Cv,void 0);g.Ga("ytPubsubPubsubIsSynchronous",g.Bv,void 0);
g.Ga("ytPubsubPubsubSubscribedKeys",Av,void 0);var m2;m2=window;g.P=m2.ytcsi&&m2.ytcsi.now?m2.ytcsi.now:m2.performance&&m2.performance.timing&&m2.performance.now&&m2.performance.timing.navigationStart?function(){return m2.performance.timing.navigationStart+m2.performance.now()}:function(){return(new Date).getTime()};var $ha=Ws("initial_gel_batch_timeout",2E3),dia=Math.pow(2,16)-1,Hv=void 0,Lv=0,Mv=0,Vha=0,Zha=!0,Gv=g.B.ytLoggingTransportGELQueue_||new Map;g.Ga("ytLoggingTransportGELQueue_",Gv,void 0);var Kv=g.B.ytLoggingTransportTokensToCttTargetIds_||{};g.Ga("ytLoggingTransportTokensToCttTargetIds_",Kv,void 0);var Qv=g.B.ytLoggingGelSequenceIdObj_||{};g.Ga("ytLoggingGelSequenceIdObj_",Qv,void 0);var Tv=g.Ha("ytglobal.prefsUserPrefsPrefs_")||{};g.Ga("ytglobal.prefsUserPrefsPrefs_",Tv,void 0);g.k=g.Uv.prototype;g.k.get=function(a,b){Xv(a);Wv(a);a=void 0!==Tv[a]?Tv[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){Xv(a);Wv(a);if(null==b)throw Error("ExpectedNotNull");Tv[a]=b.toString()};
g.k.remove=function(a){Xv(a);Wv(a);delete Tv[a]};
g.k.save=function(){var a=!0;g.O("web_secure_pref_cookie_killswitch")&&(a=!1);g.iu(this.i,this.dump(),63072E3,this.u,a)};
g.k.clear=function(){g.Ge(Tv)};
g.k.dump=function(){var a=[],b;for(b in Tv)a.push(b+"="+encodeURIComponent(String(Tv[b])));return a.join("&")};
Ja(g.Uv);var jia={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"},lia={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};Yv.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.ji(b))}catch(f){return}else e=escape(b);g.iu(a,e,c,this.u)};
Yv.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.ju(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
Yv.prototype.remove=function(a){this.i&&this.i.remove(a);g.ku(a,"/",this.u)};var Zv=function(){var a;return function(){a||(a=new Yv("ytidb"));return a}}();var ew=[],aw,fw=!1;g.w(g.iw,Error);var n2={},qia=(n2.AUTH_INVALID="No user identifier specified.",n2.EXPLICIT_ABORT="Transaction was explicitly aborted.",n2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",n2.MISSING_INDEX="Index not created.",n2.MISSING_OBJECT_STORES="Object stores not created.",n2.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",n2.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",n2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",
n2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",n2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",n2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",n2),o2={},ria=(o2.AUTH_INVALID="ERROR",o2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",o2.EXPLICIT_ABORT="IGNORED",o2.IDB_NOT_SUPPORTED="ERROR",o2.MISSING_INDEX="WARNING",o2.MISSING_OBJECT_STORES="ERROR",o2.DB_DELETED_BY_MISSING_OBJECT_STORES=
"WARNING",o2.QUOTA_EXCEEDED="WARNING",o2.QUOTA_MAYBE_EXCEEDED="WARNING",o2.UNKNOWN_ABORT="WARNING",o2.INCOMPATIBLE_DB_VERSION="WARNING",o2),p2={},sia=(p2.AUTH_INVALID=!1,p2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,p2.EXPLICIT_ABORT=!1,p2.IDB_NOT_SUPPORTED=!1,p2.MISSING_INDEX=!1,p2.MISSING_OBJECT_STORES=!1,p2.DB_DELETED_BY_MISSING_OBJECT_STORES=!1,p2.QUOTA_EXCEEDED=!1,p2.QUOTA_MAYBE_EXCEEDED=!0,p2.UNKNOWN_ABORT=!0,p2.INCOMPATIBLE_DB_VERSION=!1,p2);g.w(nw,g.iw);g.w(ow,nw);g.w(pw,Error);
var tia=["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"];uw.all=function(a){return new uw(new tw(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Sq:0};f.Sq<a.length;f={Sq:f.Sq},++f.Sq)uw.resolve(a[f.Sq]).then(function(h){return function(l){d[h.Sq]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
uw.resolve=function(a){return new uw(new tw(function(b,c){a instanceof uw?a.then(b,c):b(a)}))};
uw.reject=function(a){return new uw(new tw(function(b,c){c(a)}))};
uw.prototype.then=function(a,b){var c=this,d=null!==a&&void 0!==a?a:via,e=null!==b&&void 0!==b?b:uia;return new uw(new tw(function(f,h){"PENDING"===c.state.status?(c.i.push(function(){wia(c,c,d,f,h)}),c.onRejected.push(function(){xia(c,c,e,f,h)})):"FULFILLED"===c.state.status?wia(c,c,d,f,h):"REJECTED"===c.state.status&&xia(c,c,e,f,h)}))};
uw.prototype.catch=function(a){return this.then(void 0,a)};g.k=Aia.prototype;g.k.advance=function(a){this.cursor.advance(a);return yw(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return yw(this.request)};
g.k.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return yw(this.request)};
g.k.getKey=function(){return this.cursor.key};
g.k.mz=function(){return this.cursor.primaryKey};g.k=Bia.prototype;g.k.add=function(a,b,c){return Cw(this,[a],{mode:"readwrite",Lc:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return Cw(this,[a],{mode:"readwrite",Lc:!0},function(b){return b.objectStore(a).clear()})};
g.k.close=function(){var a;this.i.close();(null===(a=this.options)||void 0===a?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return Cw(this,[a],{mode:"readonly",Lc:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return Cw(this,[a],{mode:"readwrite",Lc:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return Cw(this,[a],{mode:"readonly",Lc:!0},function(c){return c.objectStore(a).get(b)})};
g.k.objectStoreNames=function(){return Array.from(this.i.objectStoreNames)};
g.k.getName=function(){return this.i.name};
g.k=zw.prototype;g.k.add=function(a,b){return ww(this.i.add(a,b))};
g.k.autoIncrement=function(){return this.i.autoIncrement};
g.k.clear=function(){return ww(this.i.clear()).then(function(){})};
g.k.count=function(a){return ww(this.i.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?Iia(this,a):ww(this.i.delete(a))};
g.k.get=function(a){return ww(this.i.get(a))};
g.k.index=function(a){try{return new Nia(this.i.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new pw(a,this.i.name);throw b;}};
g.k.getName=function(){return this.i.name};
g.k.keyPath=function(){return this.i.keyPath};
Ew.prototype.abort=function(){this.i.abort();this.u=!0;throw new nw("EXPLICIT_ABORT");};
Ew.prototype.objectStore=function(a){a=this.i.objectStore(a);var b=this.B.get(a);b||(b=new zw(a),this.B.set(a,b));return b};
g.k=Nia.prototype;g.k.count=function(a){return ww(this.i.count(a))};
g.k.delete=function(a){return Jw(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.k.get=function(a){return ww(this.i.get(a))};
g.k.getKey=function(a){return ww(this.i.getKey(a))};
g.k.keyPath=function(){return this.i.keyPath};
g.k.unique=function(){return this.i.unique};
g.k=Pia.prototype;g.k.advance=function(a){this.cursor.advance(a);return Hw(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return Hw(this.request)};
g.k.delete=function(){return ww(this.cursor.delete()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.mz=function(){return this.cursor.primaryKey};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return ww(this.cursor.update(a))};Lw.prototype.B=function(a,b,c){c=void 0===c?{}:c;return Ria(a,b,c)};
Lw.prototype.delete=function(a){a=void 0===a?{}:a;return Kw(this.name,a)};
Lw.prototype.open=function(){function a(){var f,h,l,m,n,p,q,t,u,v;return g.A(function(y){switch(y.i){case 1:return l=null!==(f=Error().stack)&&void 0!==f?f:"",ta(y,2),g.x(y,c.B(c.name,c.options.version,e),4);case 4:m=y.u;for(var z=c.options,C=[],G=g.r(Object.keys(z.iq)),F=G.next();!F.done;F=G.next()){F=F.value;var J=z.iq[F],U=void 0===J.QW?Number.MAX_VALUE:J.QW;!(m.i.version>=J.Sm)||m.i.version>=U||m.i.objectStoreNames.contains(F)||C.push(F)}n=C;if(0===n.length){y.fb(5);break}p=Object.keys(c.options.iq);
q=m.objectStoreNames();if(!(c.D<Ws("ytidb_remake_db_retries",1))){y.fb(6);break}c.D++;if(!g.O("ytidb_remake_db_enable_backoff_delay")){y.fb(7);break}return g.x(y,Sia(c.u),8);case 8:c.u*=2;case 7:return g.x(y,c.delete(),9);case 9:return gw(new nw("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:p,foundObjectStores:q})),y.return(a());case 6:throw new ow(q,p);case 5:return y.return(m);case 2:t=va(y);if(t instanceof DOMException?"VersionError"!==t.name:"DOMError"in self&&t instanceof
DOMError?"VersionError"!==t.name:!(t instanceof Object&&"message"in t)||"An attempt was made to open a database using a lower version than the existing version."!==t.message){y.fb(10);break}return g.x(y,c.B(c.name,void 0,Object.assign(Object.assign({},e),{upgrade:void 0})),11);case 11:u=y.u;v=u.i.version;if(void 0!==c.options.version&&v>c.options.version+1)throw u.close(),c.C=!1,Tia(c,v);return y.return(u);case 10:throw b(),t instanceof Error&&!g.O("ytidb_async_stack_killswitch")&&(t.stack=t.stack+
"\n"+l.substring(l.indexOf("\n")+1)),qw(t,c.name,"",null!==(h=c.options.version)&&void 0!==h?h:-1);}})}
function b(){c.i===d&&(c.i=void 0)}
var c=this;if(!this.C)throw Tia(this);if(this.i)return this.i;var d,e={blocking:function(f){f.close()},
closed:b,vX:b,upgrade:this.options.upgrade};return this.i=d=a()};var Nw=new Lw("YtIdbMeta",{iq:{databases:{Sm:1}},upgrade:function(a,b){b(1)&&Aw(a,"databases",{keyPath:"actualName"})}});var Rw,Qw=new function(){}(new function(){});new Dj;g.k=Uw.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(this.Tc&&this.oe){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.bf.set(d,this.Tc).then(function(e){d.id=e;c.We.Ce()&&Vw(c,d)}).catch(function(e){Vw(c,d);
Ww(c,e)})}else this.zm(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(this.Tc&&this.oe){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.ob&&this.ob("nwl_skip_retry")&&(e.skipRetry=c);if(this.We.Ce()||this.ob&&this.ob("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.A(function(m){if(1==m.i)return g.x(m,d.bf.set(e,d.Tc).catch(function(n){Ww(d,n)}),2);
f(h,l);g.sa(m)})}}this.zm(a,b,e.skipRetry)}else this.bf.set(e,this.Tc).catch(function(h){d.zm(a,b,e.skipRetry);
Ww(d,h)})}else c=this.ob&&this.ob("nwl_skip_retry")&&c,this.zm(a,b,c)};
g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(this.Tc&&this.oe){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){};
d.options.onSuccess=function(h,l){void 0!==d.id?c.bf.Yr(d.id,c.Tc):e=!0;c.We.Xn&&c.ob&&c.ob("vss_network_hint")&&c.We.Xn(!0);f(h,l)};
this.zm(d.url,d.options);this.bf.set(d,this.Tc).then(function(h){d.id=h;e&&c.bf.Yr(d.id,c.Tc)}).catch(function(h){Ww(c,h)})}else this.zm(a,b)};
g.k.wx=function(){var a=this;if(!this.Tc)throw g.rw("throttleSend");this.i||(this.i=this.uj.Of(function(){var b;return g.A(function(c){if(1==c.i)return g.x(c,a.bf.xK("NEW",a.Tc),2);if(3!=c.i)return b=c.u,b?g.x(c,Vw(a,b),3):(a.rJ(),c.return());a.i&&(a.i=0,a.wx());g.sa(c)})},this.dO))};
g.k.rJ=function(){this.uj.gi(this.i);this.i=0};Yw.prototype.toString=function(){return this.topic};var xOa=g.Ha("ytPubsub2Pubsub2Instance")||new g.Lr;g.Lr.prototype.subscribe=g.Lr.prototype.subscribe;g.Lr.prototype.unsubscribeByKey=g.Lr.prototype.cg;g.Lr.prototype.publish=g.Lr.prototype.ea;g.Lr.prototype.clear=g.Lr.prototype.clear;g.Ga("ytPubsub2Pubsub2Instance",xOa,void 0);var ax=g.Ha("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ga("ytPubsub2Pubsub2SubscribedKeys",ax,void 0);var bx=g.Ha("ytPubsub2Pubsub2TopicToKeys")||{};g.Ga("ytPubsub2Pubsub2TopicToKeys",bx,void 0);
var lja=g.Ha("ytPubsub2Pubsub2IsAsync")||{};g.Ga("ytPubsub2Pubsub2IsAsync",lja,void 0);g.Ga("ytPubsub2Pubsub2SkipSubKey",null,void 0);g.w(ex,Lw);ex.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.hx?bja:aja)(a,b,Object.assign({},c))};
ex.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.hx?fja:cja)(this.name,a)};var gx;var yOa={},uja=fx("ServiceWorkerLogsDatabase",{iq:(yOa.SWHealthLog={Sm:1},yOa),hx:!0,upgrade:function(a,b){b(1)&&Fw(Aw(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var lx;var Dja=Ws("network_polling_interval",3E4);g.w(ox,g.ef);g.k=ox.prototype;g.k.Ce=function(){var a;return g.O("use_shared_nsm")&&this.i?null===(a=this.i)||void 0===a?void 0:a.Ce():this.u};
g.k.Xn=function(a){var b;g.O("use_shared_nsm")&&this.i?null===(b=this.i)||void 0===b?void 0:b.i=a:a!==this.u&&(this.u=a)};
g.k.dT=function(a){!g.O("use_shared_nsm")&&(this.C=!0,void 0===a?0:a)&&(this.K||Cja(this))};
g.k.hE=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.DR=function(){this.S=!0};
g.k.Qa=function(a,b){return g.O("use_shared_nsm")&&this.i?this.i.Qa(a,b):g.ef.prototype.Qa.call(this,a,b)};
g.k.Am=function(a){var b=this;return g.O("use_shared_nsm")&&this.i?Uq(this.i,a):this.D?this.D:this.D=new Promise(function(c){var d,e,f;return g.A(function(h){switch(h.i){case 1:return d=window.AbortController?new window.AbortController:void 0,e=null===d||void 0===d?void 0:d.signal,f=!1,ta(h,2,3),d&&(b.I=g.tv.Of(function(){d.abort()},a||2E4)),g.x(h,fetch("/generate_204",{method:"HEAD",
signal:e}),5);case 5:f=!0;case 3:wa(h);b.D=void 0;b.I&&g.tv.gi(b.I);f!==b.u&&(b.u=f,b.u&&b.C?b.dispatchEvent("ytnetworkstatus-online"):b.C&&b.dispatchEvent("ytnetworkstatus-offline"));c(f);ya(h,0);break;case 2:va(h),f=!1,h.fb(3)}})})};
ox.prototype.sendNetworkCheckRequest=ox.prototype.Am;ox.prototype.listen=ox.prototype.Qa;ox.prototype.enableErrorFlushing=ox.prototype.DR;ox.prototype.getWindowStatus=ox.prototype.hE;ox.prototype.monitorNetworkStatusChange=ox.prototype.dT;ox.prototype.networkStatusHint=ox.prototype.Xn;ox.prototype.isNetworkAvailable=ox.prototype.Ce;ox.getInstance=Bja;g.w(px,g.ef);px.prototype.Ce=function(){var a=g.Ha("yt.networkStatusManager.instance.isNetworkAvailable").bind(this.i);return a?a():!0};
px.prototype.Xn=function(a){var b=g.Ha("yt.networkStatusManager.instance.networkStatusHint").bind(this.i);b&&b(a)};
px.prototype.Am=function(a){var b=this,c;return g.A(function(d){return(c=g.Ha("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.i))?d.return(c(a)):d.return(!0)})};var sx;g.w(qx,Uw);qx.prototype.writeThenSend=function(a,b){b||(b={});kw()||(this.oe=!1);Uw.prototype.writeThenSend.call(this,a,b)};
qx.prototype.sendThenWrite=function(a,b,c){b||(b={});kw()||(this.oe=!1);Uw.prototype.sendThenWrite.call(this,a,b,c)};
qx.prototype.sendAndWrite=function(a,b){b||(b={});kw()||(this.oe=!1);Uw.prototype.sendAndWrite.call(this,a,b)};var Ax=0,Cx=0,Dx,Bx=g.B.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,potentialEsfErrorCounter:Cx};g.Ga("ytNetworklessLoggingInitializationOptions",Bx,void 0);g.Ex.prototype.isReady=function(){!this.config_&&nia()&&(this.config_=g.Ov());return!!this.config_};var Nja=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),Pja=["/fashion","/feed/fashion_destination","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ"];var Tja={};g.w(Kx,g.E);Kx.prototype.T=function(a,b,c,d,e){c=$s((0,g.D)(c,d||this.Sa));c={target:a,name:b,callback:c};var f;e&&Vja()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.D.push(c);return c};
Kx.prototype.pc=function(a){for(var b=0;b<this.D.length;b++)if(this.D[b]==a){this.D.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
Kx.prototype.xa=function(){g.Mx(this);g.E.prototype.xa.call(this)};g.Ta(g.Q,g.E);g.Q.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.Vd.subscribe(a,b,c)};
g.Q.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.Vd.unsubscribe(a,b,c)};
g.Q.prototype.cg=function(a){return this.isDisposed()?!1:this.Vd.cg(a)};
g.Q.prototype.ea=function(a,b){return this.isDisposed()?!1:this.Vd.ea.apply(this.Vd,arguments)};g.w(g.Qx,g.Q);g.k=g.Qx.prototype;g.k.cancel=function(){this.B&&(this.B=!1,this.ea("dragend",0,0,null));this.u&&(this.u=!1,this.ea("hoverend",0,0,null),Sx(this),Px(this))};
g.k.TL=function(a){Sx(this);Rx(this,Tx("move"),this.RL);Rx(this,Tx("out"),this.SL);Rx(this,"touchstart",this.SG);this.i&&Rx(this,Tx("down"),this.cF);var b=g.Yu(a);a=av(a);this.u=!0;this.ea("hoverstart",a.x,a.y,b);this.ea("hovermove",a.x,a.y,b)};
g.k.RL=function(a){var b=g.Yu(a);a=av(a);if(this.D){var c=this.D;this.D=null;if($u(c)==b&&ig(av(c),a))return}this.ea("hovermove",a.x,a.y,b)};
g.k.SL=function(a){var b=av(a),c=$u(a);try{if(c&&g.Tg(this.I,c)){this.D=a;this.ea("hovermove",b.x,b.y,c);return}}catch(d){}Sx(this);Px(this);this.u=!1;this.ea("hoverend",b.x,b.y,c)};
g.k.fT=function(a){this.TL(a);this.cF(a)};
g.k.cF=function(a){if("number"!==typeof a.button||0==a.button){Sx(this);this.C.T(document,Tx("move"),this.eT);this.C.T(document,Tx("up"),this.jT);var b=g.Yu(a);if(g.Ig)Rx(this,"dragstart",this.AR);else if(g.bv(a),(g.bF||hm)&&b)a:{for(var c=b;c;){if(Wg(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=av(a);this.ea("dragstart",a.x,a.y,b);this.ea("dragmove",a.x,a.y,b)}};
g.k.AR=function(a){g.bv(a)};
g.k.eT=function(a){var b=g.Yu(a);b==document&&(b=null);a=av(a);this.ea("hovermove",a.x,a.y,b);this.ea("dragmove",a.x,a.y,b)};
g.k.jT=function(a){Sx(this);this.B=!1;var b=Zu(a),c=g.Yu(a);a=av(a);b&&g.Tg(this.I,b)?(Rx(this,Tx("move"),this.RL),Rx(this,Tx("out"),this.SL),Rx(this,Tx("down"),this.cF),Rx(this,"touchstart",this.SG),this.ea("dragend",a.x,a.y,c)):(Px(this),this.u=!1,this.ea("dragend",a.x,a.y,c),this.ea("hoverend",a.x,a.y,c))};
g.k.SG=function(a){var b=a.changedTouches[0];b&&(Sx(this),Rx(this,"touchmove",this.CX),Rx(this,"touchend",this.lO),Rx(this,"touchcancel",this.lO),this.K=b.identifier,a=g.Yu(a),this.u||(this.u=!0,this.ea("hoverstart",b.pageX,b.pageY,a)),this.ea("hovermove",b.pageX,b.pageY,a),this.i&&(this.B=!0,this.ea("dragstart",b.pageX,b.pageY,a),this.ea("dragmove",b.pageX,b.pageY,a)))};
g.k.CX=function(a){var b=Wja(this,a);b&&(this.i&&g.bv(a),a=g.Yu(a),this.ea("hovermove",b.pageX,b.pageY,a),this.i&&this.ea("dragmove",b.pageX,b.pageY,a))};
g.k.lO=function(a){var b=Wja(this,a);if(b){Sx(this);Px(this);this.u=!1;var c=g.Yu(a);this.i&&(this.S||g.bv(a),this.B=!1,this.ea("dragend",b.pageX,b.pageY,c));this.ea("hoverend",b.pageX,b.pageY,c)}};
g.k.xa=function(){this.i&&(g.Ig&&this.I.removeAttribute("draggable"),this.I.style.touchAction="");Sx(this);g.Q.prototype.xa.call(this)};Ux.prototype.clone=function(){var a=new Ux,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Ka(c)?g.Je(c):c}return a};var ewa=["embedded_player"],zOa=["share/get_web_player_share_panel"],AOa=["feedback"],BOa=["notification/modify_channel_preference"],cAa=["offline"],Zza=["offline/get_playback_data_entity"],ZHa=["player"],COa=["browse/edit_playlist"],DOa=["subscription/subscribe"],EOa=["subscription/unsubscribe"],aIa=["next","unplugged/watch_next"];var Vx=Date.now().toString();var dka,q2=g.B.ytLoggingDocDocumentNonce_;q2||(q2=Xx(),g.Ga("ytLoggingDocDocumentNonce_",q2,void 0));dka=q2;var Fsa={VO:0,KZ:1,a_:2,P6:3,O1:4,Aba:5,L7:6,a$:7,p9:8,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS"};var Zja=1;Yx.prototype.getAsJson=function(){var a={};void 0!==this.i.trackingParams?a.trackingParams=this.i.trackingParams:(a.veType=this.i.veType,void 0!==this.i.veCounter&&(a.veCounter=this.i.veCounter),void 0!==this.i.elementIndex&&(a.elementIndex=this.i.elementIndex));void 0!==this.i.dataElement&&(a.dataElement=this.i.dataElement.getAsJson());void 0!==this.i.youtubeData&&(a.youtubeData=this.i.youtubeData);return a};
Yx.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
Yx.prototype.isClientVe=function(){return!this.i.trackingParams&&!!this.i.veType};g.Ga("yt_logging_screen.getRootVeType",aka,void 0);g.Ga("yt_logging_screen.getCurrentCsn",g.cy,void 0);g.Ga("yt_logging_screen.getCttAuthInfo",dy,void 0);g.Ga("yt_logging_screen.setCurrentScreen",eka,void 0);var nka=[{YE:function(a){return"Cannot read property '"+a.key+"'"},
xA:{Error:[{Ag:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Ag:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Ag:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Ag:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{Ag:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Ag:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Ag:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{YE:function(a){return"Cannot call '"+a.key+"'"},
xA:{TypeError:[{Ag:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Ag:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Ag:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Ag:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Ag:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},
{Ag:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{YE:function(a){return a.key+" is not defined"},
xA:{ReferenceError:[{Ag:/(.*) is not defined/,groups:["key"]},{Ag:/Can't find variable: (.*)/,groups:["key"]}]}}];var ika={jm:[],Xm:[{callback:fka,weight:500}]};var ey;var ly=new g.Lr;var oka=new Set,lka=0,qka=0,pka=0,mka=[],rka=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];g.w(my,Xw);var wka=new Yw("screen-created",my),qy=[],Esa=vka,ry=0;var FOa={JZ:3611,dY:27686,fY:85013,gY:23462,iY:42016,jY:62407,kY:26926,hY:43781,mY:51236,nY:79148,oY:50160,pY:77504,JY:87907,KY:18630,dZ:54445,eZ:80935,mZ:105675,nZ:37521,oZ:47786,qZ:98349,rZ:123695,vZ:6827,wZ:29434,HZ:7282,IZ:124448,SZ:32276,RZ:76278,TZ:93911,VZ:106531,WZ:27259,XZ:27262,YZ:27263,b_:21759,c_:27107,d_:62936,e_:49568,g_:38408,h_:80637,i_:68727,j_:68728,k_:80353,l_:80356,m_:74610,n_:45707,o_:83962,p_:83970,q_:46713,r_:89711,s_:74612,t_:93265,u_:74611,v_:131380,x_:128979,y_:139311,z_:128978,
w_:131391,A_:105350,C_:139312,D_:134800,B_:131392,F_:113533,G_:93252,H_:99357,J_:94521,K_:114252,L_:113532,M_:94522,I_:94583,N_:88E3,O_:139580,P_:93253,Q_:93254,R_:94387,S_:94388,T_:93255,U_:97424,E_:72502,V_:110111,W_:76019,Y_:117092,Z_:117093,X_:89431,b0:110466,d0:77240,e0:60508,f0:137401,g0:137402,h0:137046,j0:73393,k0:113534,l0:92098,m0:131381,n0:84517,o0:83759,q0:80357,r0:86113,s0:72598,t0:72733,u0:107349,v0:124275,w0:118203,x0:133275,y0:133274,z0:133272,A0:133273,B0:133276,D0:117431,C0:133797,
E0:128572,F0:133405,G0:117429,H0:117430,I0:117432,J0:120080,K0:117259,L0:121692,M0:132972,N0:133051,O0:133658,P0:132971,Q0:97615,R0:31402,T0:133624,U0:133623,V0:133622,S0:133621,W0:84774,X0:95117,Y0:98930,Z0:98931,b1:98932,d1:43347,e1:129889,f1:45474,g1:100352,h1:84758,j1:98443,l1:117985,m1:74613,n1:74614,o1:64502,q1:136032,t1:74615,u1:74616,v1:122224,w1:74617,z1:77820,A1:74618,B1:93278,C1:93274,D1:93275,E1:93276,F1:22110,G1:29433,J1:133798,K1:132295,L1:120541,P1:82047,Q1:113550,R1:75836,S1:75837,
V1:42352,Z1:84512,b2:76065,e2:75989,j2:16623,l2:32594,m2:27240,o2:32633,B2:74858,E2:3945,D2:16989,F2:45520,G2:25488,H2:25492,I2:25494,K2:55760,L2:14057,M2:18451,N2:57204,O2:57203,P2:17897,Q2:57205,R2:18198,S2:17898,T2:17909,U2:43980,V2:46220,h3:11721,l3:49954,r3:96369,s3:3854,z3:56251,A3:25624,G3:16906,H3:99999,J3:68172,K3:27068,e4:47973,f4:72773,g4:26970,h4:26971,i4:96805,j4:17752,l4:73233,m4:109512,n4:22256,o4:14115,p4:22696,q4:89278,r4:89277,s4:109513,t4:43278,u4:43459,v4:43464,w4:89279,x4:43717,
y4:55764,z4:22255,A4:89281,B4:40963,C4:43277,D4:43442,F4:91824,H4:120137,J4:96367,K4:36850,L4:72694,M4:37414,N4:36851,P4:124863,O4:121343,Q4:73491,R4:54473,S4:43375,T4:46674,g5:139095,h5:32473,l5:72901,m5:72906,n5:50947,o5:50612,p5:50613,q5:50942,r5:84938,s5:84943,t5:84939,u5:84941,v5:84944,w5:84940,x5:84942,y5:35585,z5:51926,A5:79983,B5:63238,C5:18921,D5:63241,E5:57893,F5:41182,G5:135732,H5:33424,I5:22207,J5:42993,K5:36229,L5:22206,M5:22205,N5:18993,O5:19001,P5:18990,Q5:18991,R5:18997,S5:18725,T5:19003,
U5:36874,V5:44763,W5:33427,X5:67793,Y5:22182,Z5:37091,a6:34650,b6:50617,c6:47261,d6:22287,e6:25144,f6:97917,h6:62397,i6:125598,j6:137935,k6:36961,l6:108035,m6:27426,n6:27857,o6:27846,p6:27854,q6:69692,r6:61411,s6:39299,t6:38696,u6:62520,v6:36382,w6:108701,x6:50663,y6:36387,z6:14908,A6:37533,B6:105443,C6:61635,D6:62274,E6:133818,F6:65702,G6:65703,H6:65701,I6:76256,K6:37671,L6:49953,S6:36216,T6:28237,U6:39553,V6:29222,W6:26107,X6:38050,Y6:26108,a7:120745,Z6:26109,b7:26110,c7:66881,d7:28236,e7:14586,
i7:57929,k7:74723,l7:44098,m7:44099,p7:23528,q7:61699,n7:134104,o7:134103,r7:59149,t7:101951,u7:97346,v7:118051,w7:95102,x7:64882,y7:119505,z7:63595,A7:63349,B7:95101,C7:75240,D7:27039,E7:68823,F7:21537,G7:83464,H7:75707,I7:83113,J7:101952,K7:101953,M7:79610,R7:125755,S7:24402,T7:24400,U7:32925,V7:57173,X7:122502,Y7:138480,Z7:64423,a8:64424,b8:33986,c8:100828,d8:129089,e8:21409,u8:135155,v8:135156,w8:135157,x8:135158,y8:135159,z8:135160,A8:135161,B8:135162,C8:135163,D8:135164,E8:135165,F8:135166,
r8:11070,s8:11074,t8:17880,G8:14001,I8:30709,J8:30707,K8:30711,L8:30710,M8:30708,H8:26984,N8:63648,O8:63649,S8:51879,X8:111059,Z8:5754,a9:20445,f9:130975,e9:130976,g9:110386,i9:113746,j9:66557,q9:17310,r9:28631,t9:21589,u9:68012,v9:60480,w9:138664,x9:31571,B9:76980,F9:41577,G9:45469,L9:38669,M9:13768,N9:13777,Q9:62985,R9:4724,S9:59369,T9:43927,U9:43928,X9:12924,Z9:100355,c$:56219,d$:27669,e$:10337,b$:47896,f$:122629,h$:139723,g$:139722,i$:121258,j$:107598,k$:127991,l$:96639,m$:107536,n$:130169,o$:96661,
p$:96658,q$:116646,r$:121122,s$:96660,t$:127738,u$:127083,v$:104443,w$:96659,x$:106442,z$:134840,C$:63667,D$:63668,E$:63669,F$:130686,K$:78314,N$:55761,O$:127098,P$:134841,T$:96368,U$:67374,V$:48992,Y$:49956,caa:31961,daa:26388,jaa:23811,maa:5E4,naa:126250,paa:96370,qaa:47355,raa:47356,Eaa:37935,Haa:45521,Iaa:21760,Kaa:83769,Laa:49977,Maa:49974,Naa:93497,Oaa:93498,Paa:34325,Raa:115803,Saa:123707,Taa:100081,Uaa:35309,Vaa:68314,Waa:25602,Xaa:100339,Zaa:59018,aba:18248,bba:50625,cba:9729,dba:37168,eba:37169,
fba:21667,hba:16749,jba:18635,kba:39305,lba:18046,nba:53969,oba:8213,qba:93926,uba:102852,vba:110099,wba:22678,xba:69076,yba:137575,Bba:139224,Cba:100856,Eba:17736,Fba:3832,Iba:55759,Jba:64031,cca:93044,eca:93045,ica:34388,jca:17657,kca:17655,lca:39579,mca:39578,nca:77448,oca:8196,pca:11357,qca:69877,rca:8197,tca:82039};vy.prototype.clear=function(){this.u.clear();this.i.clear();this.B.clear()};
Ja(vy);var yy;g.wy=lf(function(){var a=new Vr;return a.isAvailable()?new g.Sr(a):null});
yy=lf(function(){var a=new Wr;return a.isAvailable()?new g.Sr(a):null});var zka=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Aka=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Dka={};g.w(Iy,g.E);var Lka=!1;g.w(Oy,g.E);Oy.prototype.rE=function(){var a=this.C().dE("SLOT_TYPE_PLAYER_BYTES",1),b=Ky(this.i.get(),1).clientPlaybackNonce,c=!1;a=g.r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="SLOT_TYPE_PLAYER_BYTES"===d.qb&&d.Vb instanceof Ny?d.Vb.Po:void 0;e&&e===b&&(c&&R("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
Oy.prototype.ih=function(a,b,c,d,e,f){var h=this,l=Ky(this.i.get(),1);l.lp?this.Ja.get().zp():(Jy(this.B.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return Jka(h.u.get(),d,e,a,b,f,l)}),pNa(this.NC))};
Oy.prototype.Cj=function(){};var r2={},$y=(r2.AD_MARKER="ytp-ad-progress",r2.CHAPTER_MARKER="ytp-chapter-marker",r2.TIME_MARKER="ytp-time-marker",r2);var aJa=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),Oka=RegExp("^http://0\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.l2gfe\\.[a-z0-9_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?/|^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://((?:uytfe\\.corp|dev-uytfe\\.corp|uytfe\\.sandbox)\\.google\\.com/|([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(tv|tv-green-qa|tv-release-qa)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/|m?web-ppg\\.corp\\.google\\.com/)"),
bJa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),Xka=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),
Vka=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),Qka=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|(photos\\-image\\-(dev|qa)(-auth)?\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"),
cJa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),Tka=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),Pka=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|(photos\\-image\\-(dev|qa)(-auth)?\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
Rka=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"),
Foa=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|books\\.googleusercontent\\.com|play\\-books\\-autopush\\-sandbox\\.googleusercontent\\.com|play\\-books\\-canary\\-sandbox\\.googleusercontent\\.com|play\\-books\\-internal\\-sandbox\\.googleusercontent\\.com|play\\-books\\-staging\\-sandbox\\.googleusercontent\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|stadia\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"),
GOa=RegExp("^(https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://stadia\\.google\\.com|https://one\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|canary|internal|staging)-sandbox)\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.az.prototype.getId=function(){return this.id};
g.az.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+ala(this.start)+", "+ala(this.end)+"]"};
g.az.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a===this.end&&this.start===this.end)&&(null==b||a<b&&b<=this.end)};
var $ka=1;g.az.prototype.getId=g.az.prototype.getId;g.w(ez,g.az);ez.prototype.deactivate=function(){this.B=!0};
ez.prototype.Av=function(){return this.end-this.start};var s2;var HOa=g.Ab,IOa=HOa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!IOa||2>IOa.length)s2=void 0;else{var t2=HOa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);s2=t2&&6==t2.length?Number(t2[5].replace("_",".")):0}var EG=s2,AN=0<=EG;AN&&0<=g.Ab.search("Safari")&&g.Ab.search("Version");g.w(Uz,Xw);g.w(Vz,Xw);var kla=new Yw("aft-recorded",Uz),xA=new Yw("timing-sent",Vz);var u2=window,Yz=u2.performance||u2.mozPerformance||u2.msPerformance||u2.webkitPerformance||new fla;var jla=!1,v2={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",
'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",'script[name="mobile_blazer_watch_mod"]':"mbwj"},
xla=(0,g.D)(Yz.clearResourceTimings||Yz.webkitClearResourceTimings||Yz.mozClearResourceTimings||Yz.msClearResourceTimings||Yz.oClearResourceTimings||g.Ia,Yz);var jA=g.B.ytLoggingLatencyUsageStats_||{};g.Ga("ytLoggingLatencyUsageStats_",jA,void 0);hA.prototype.tick=function(a,b,c,d){kA(this,"tick_"+a+"_"+b)||g.dw("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c,cttAuthInfo:d})};
hA.prototype.info=function(a,b,c){var d=Object.keys(a).join("");kA(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.dw("latencyActionInfo",a,{cttAuthInfo:c}))};
hA.prototype.span=function(a,b,c){var d=Object.keys(a).join("");kA(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.dw("latencyActionSpan",a,{cttAuthInfo:c}))};var w2={},vla=(w2.auto_search="LATENCY_ACTION_AUTO_SEARCH",w2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",w2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",w2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",w2.app_startup="LATENCY_ACTION_APP_STARTUP",w2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",w2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",w2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",w2.browse="LATENCY_ACTION_BROWSE",w2.channels="LATENCY_ACTION_CHANNELS",
w2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",w2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",w2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",w2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",w2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",w2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",w2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",w2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",
w2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",w2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",w2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",w2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",w2.chips="LATENCY_ACTION_CHIPS",w2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",w2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",w2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",w2.embed=
"LATENCY_ACTION_EMBED",w2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",w2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",w2.explore="LATENCY_ACTION_EXPLORE",w2.home="LATENCY_ACTION_HOME",w2.library="LATENCY_ACTION_LIBRARY",w2.live="LATENCY_ACTION_LIVE",w2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",w2.onboarding="LATENCY_ACTION_ONBOARDING",w2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",w2.parent_tools_collection=
"LATENCY_ACTION_PARENT_TOOLS_COLLECTION",w2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",w2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",w2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",w2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",w2.prebuffer="LATENCY_ACTION_PREBUFFER",w2.prefetch="LATENCY_ACTION_PREFETCH",w2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",w2.profile_switcher="LATENCY_ACTION_LOGIN",w2.reel_watch="LATENCY_ACTION_REEL_WATCH",w2.results="LATENCY_ACTION_RESULTS",
w2.search_ui="LATENCY_ACTION_SEARCH_UI",w2.search_suggest="LATENCY_ACTION_SUGGEST",w2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",w2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",w2.seek="LATENCY_ACTION_PLAYER_SEEK",w2.settings="LATENCY_ACTION_SETTINGS",w2.tenx="LATENCY_ACTION_TENX",w2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",w2.watch="LATENCY_ACTION_WATCH",w2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",w2["watch,watch7"]="LATENCY_ACTION_WATCH",w2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",
w2["watch,watch7ad"]="LATENCY_ACTION_WATCH",w2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",w2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",w2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",w2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",w2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",w2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",w2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",w2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",w2["video.live_settings"]=
"LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",w2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",w2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",w2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",w2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",w2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",w2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",w2),x2={},pla=(x2.ad_allowed="adTypesAllowed",x2.yt_abt=
"adBreakType",x2.ad_cpn="adClientPlaybackNonce",x2.ad_docid="adVideoId",x2.yt_ad_an="adNetworks",x2.ad_at="adType",x2.aida="appInstallDataAgeMs",x2.browse_id="browseId",x2.p="httpProtocol",x2.t="transportProtocol",x2.cs="commandSource",x2.cpn="clientPlaybackNonce",x2.ccs="creatorInfo.creatorCanaryState",x2.ctop="creatorInfo.topEntityType",x2.csn="clientScreenNonce",x2.docid="videoId",x2.GetHome_rid="requestIds",x2.GetSearch_rid="requestIds",x2.GetPlayer_rid="requestIds",x2.GetWatchNext_rid="requestIds",
x2.GetBrowse_rid="requestIds",x2.GetLibrary_rid="requestIds",x2.is_continuation="isContinuation",x2.is_nav="isNavigation",x2.b_p="kabukiInfo.browseParams",x2.is_prefetch="kabukiInfo.isPrefetch",x2.is_secondary_nav="kabukiInfo.isSecondaryNav",x2.nav_type="kabukiInfo.navigationType",x2.prev_browse_id="kabukiInfo.prevBrowseId",x2.query_source="kabukiInfo.querySource",x2.voz_type="kabukiInfo.vozType",x2.yt_lt="loadType",x2.mver="creatorInfo.measurementVersion",x2.yt_ad="isMonetized",x2.nr="webInfo.navigationReason",
x2.nrsu="navigationRequestedSameUrl",x2.ncnp="webInfo.nonPreloadedNodeCount",x2.pnt="performanceNavigationTiming",x2.prt="playbackRequiresTap",x2.plt="playerInfo.playbackType",x2.pis="playerInfo.playerInitializedState",x2.paused="playerInfo.isPausedOnLoad",x2.yt_pt="playerType",x2.fmt="playerInfo.itag",x2.yt_pl="watchInfo.isPlaylist",x2.yt_pre="playerInfo.preloadType",x2.yt_ad_pr="prerollAllowed",x2.pa="previousAction",x2.yt_red="isRedSubscriber",x2.rce="mwebInfo.responseContentEncoding",x2.rc="resourceInfo.resourceCache",
x2.scrh="screenHeight",x2.scrw="screenWidth",x2.st="serverTimeMs",x2.ssdm="shellStartupDurationMs",x2.br_trs="tvInfo.bedrockTriggerState",x2.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",x2.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",x2.label="tvInfo.label",x2.is_mdx="tvInfo.isMdx",x2.preloaded="tvInfo.isPreloaded",x2.aac_type="tvInfo.authAccessCredentialType",x2.upg_player_vis="playerInfo.visibilityState",x2.query="unpluggedInfo.query",x2.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",
x2.yt_vst="videoStreamType",x2.vph="viewportHeight",x2.vpw="viewportWidth",x2.yt_vis="isVisible",x2.rcl="mwebInfo.responseContentLength",x2.GetSettings_rid="requestIds",x2.GetTrending_rid="requestIds",x2.GetMusicSearchSuggestions_rid="requestIds",x2.REQUEST_ID="requestIds",x2),qla="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(" "),
y2={},rla=(y2.ccs="CANARY_STATE_",y2.mver="MEASUREMENT_VERSION_",y2.pis="PLAYER_INITIALIZED_STATE_",y2.yt_pt="LATENCY_PLAYER_",y2.pa="LATENCY_ACTION_",y2.ctop="TOP_ENTITY_TYPE_",y2.yt_vst="VIDEO_STREAM_TYPE_",y2),sla="all_vc ap aq c cbr cbrand cbrver cmodel cos cosver cplatform ctheme cver ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");var z2=window;z2.ytcsi&&(z2.ytcsi.info=g.rA,z2.ytcsi.tick=sA);var jqa={T1:1,n2:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var oT=16/9,JOa=[.25,.5,.75,1,1.25,1.5,1.75,2],KOa=JOa.concat([3,4,5,6,7,8,9,10,15]);var LOa=["h","H"],MOa=["9","("],NOa=["9h","(h"],OOa=["8","*"],POa=["a","A"],QOa=["o","O"],ROa=["m","M"],SOa=["mac3","MAC3"],TOa=["meac3","MEAC3"],A2={},aoa=(A2.h=LOa,A2.H=LOa,A2["9"]=MOa,A2["("]=MOa,A2["9h"]=NOa,A2["(h"]=NOa,A2["8"]=OOa,A2["*"]=OOa,A2.a=POa,A2.A=POa,A2.o=QOa,A2.O=QOa,A2.m=ROa,A2.M=ROa,A2.mac3=SOa,A2.MAC3=SOa,A2.meac3=TOa,A2.MEAC3=TOa,A2);BA.prototype.getLanguageInfo=function(){return this.zc};
BA.prototype.toString=function(){return this.zc.name};
BA.prototype.getLanguageInfo=BA.prototype.getLanguageInfo;var B2,HA;B2={};g.EA=(B2.auto=0,B2.tiny=144,B2.light=144,B2.small=240,B2.medium=360,B2.large=480,B2.hd720=720,B2.hd1080=1080,B2.hd1440=1440,B2.hd2160=2160,B2.hd2880=2880,B2.highres=4320,B2);HA={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};CA.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.i};
CA.prototype.compose=function(a){if(a.B&&GA(a))return QF;if(a.B||GA(this))return a;if(this.B||GA(a))return this;var b=this.u&&a.u?Math.max(this.u,a.u):this.u||a.u,c=this.i&&a.i?Math.min(this.i,a.i):this.i||a.i;b=Math.min(b,c);return b===this.u&&c===this.i?this:new CA(b,c,!1,c===this.i?this.reason:a.reason)};
CA.prototype.C=function(a){return a.video?Dla(this,a.video.quality):!1};
var UOa=FA("auto","hd1080",!1,"l"),tFa=FA("auto","large",!1,"l"),QF=FA("auto","auto",!1,"p");FA("small","auto",!1,"p");JA.prototype.An=function(a){a=a||QF;for(var b=g.ap(this.videoInfos,function(h){return a.C(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].video;
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
JA.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var TA={gy:function(a,b){a.splice(0,b)},
Sj:function(a){a.reverse()},
rq:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}};g.UA.prototype.set=function(a,b){this.i[a]!==b&&(this.i[a]=b,this.url="")};
g.UA.prototype.get=function(a){WA(this);return this.i[a]||null};
g.UA.prototype.clone=function(){var a=new g.UA(this.u,this.D);a.B=this.B;a.path=this.path;a.C=this.C;a.i=g.Je(this.i);a.url=this.url;return a};g.k=bB.prototype;g.k.VB=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.Ck(a))?a.duration:0};
g.k.getDurationTicks=function(a){return this.getDuration(a)};
g.k.getFirstSegmentNumber=function(){return this.segments.length?this.segments[0].Ma:-1};
g.k.getIngestionTime=function(a){return(a=this.Ck(a))?a.ingestionTime:NaN};
g.k.getLastSegmentNumber=function(){return this.segments.length?this.segments[this.segments.length-1].Ma:-1};
g.k.getMaxKnownEndTime=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.getMinSeekableTime=function(){return this.segments[0].startTime};
g.k.getNumberOfSegments=function(){return this.segments.length};
g.k.getOffset=function(){return 0};
g.k.getSegmentNumberForTime=function(a){return(a=this.hs(a))?a.Ma:-1};
g.k.getSegmentURL=function(a){return(a=this.Ck(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.Ck(a))?a.startTime:0};
g.k.getStartTimeInPeriod=function(a){return(a=this.Ck(a))?a.i:0};
g.k.isLoaded=function(){return 0<this.segments.length};
g.k.Ck=function(a){a=g.ec(this.segments,new aB(a,0,0,0,""),function(b,c){return b.Ma-c.Ma});
return 0<=a?this.segments[a]:null};
g.k.hs=function(a){a=g.ec(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return 0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.k.append=function(a){if(a.length)if(a=g.Xb(a),this.segments.length){var b=this.segments.length?g.Kb(this.segments).endTime:0,c=a[0].Ma-this.getLastSegmentNumber();1<c&&Sb(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
g.k.getLocalMaxByterate=function(){return 0};var DQ=function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a}(),C2=window.Int32Array?new Int32Array(32):Array(32);fB.prototype.skip=function(a){this.i+=a};
fB.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var D2={},VOa=(D2.predictStart="predictStart",D2.start="start",D2["continue"]="continue",D2.stop="stop",D2),Xla={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};oB.prototype.Rv=function(){return!!(this.data["Stitched-Video-Id"]||this.data["Stitched-Video-Cpn"]||this.data["Stitched-Video-Duration-Us"]||this.data["Stitched-Video-Start-Frame-Index"]||this.data["Serialized-State"])};
oB.prototype.toString=function(){for(var a="",b=g.r(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};var hma=!1;PB.prototype.set=function(a,b){this.Pf.get(a);this.i[a]=b;this.url=""};
PB.prototype.get=function(a){return this.i[a]||this.Pf.get(a)};uma.prototype.qj=function(a,b){a.Pf===this.i&&(this.i=RB(a,b));a.Pf===this.B&&(this.B=RB(a,b))};WB.prototype.Te=function(){return!!this.i&&this.index.isLoaded()};
WB.prototype.uu=function(){return!1};
WB.prototype.JH=function(a){return[a]};
WB.prototype.Yw=function(a){return[a]};YB.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};bC.prototype.isEncrypted=function(){return this.i.info.isEncrypted()};
bC.prototype.isVideo=function(){return!!this.i.info.video};iC.prototype.Ep=function(){return this.B?VA(this.B):""};
iC.prototype.wk=function(){return cC(this.i[0])};
iC.prototype.qj=function(a,b){this.u.qj(a,b);if(this.B){this.B=RB(a,b);b=g.r(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.B.set(c.value,null)}this.requestId=a.get("req_id")};g.w(mC,WB);g.k=mC.prototype;g.k.Mg=function(){return!1};
g.k.Xv=function(){return!1};
g.k.uu=function(){return!this.X};
g.k.Jp=function(){var a=new bC(1,this,this.initRange,"getMetadataRequestInfo");return new iC([a],this.X)};
g.k.qr=function(){return null};
g.k.tu=function(a){this.Lm(a);return this.Mm(a.Sd?a.Ma+1:a.Ma,!1)};
g.k.Ul=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);-1!==a||"386"===this.info.jc()||this.info.jc();b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return this.Mm(a,!0)};
g.k.nE=function(a){this.i=new Uint8Array(EC(a).buffer)};
g.k.Lm=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1};
g.k.update=function(a,b,c){this.index.append(a);Vla(this.index,c);this.K=b};
g.k.Te=function(){return this.uu()?!0:WB.prototype.Te.call(this)};
g.k.Mm=function(a,b){var c=this.index.getSegmentURL(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.Ob?this.info.Ob*e:1E3;b=!b;var h=f;f=a===this.index.getLastSegmentNumber()&&!this.K&&0<f;a=new bC(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,h,f,b);return new iC([a],c)};
g.k.aE=function(){return this.uu()?0:this.initRange.length};
g.k.MF=function(){return!1};pC.prototype.update=function(a,b){var c=void 0;this.u&&(c=this.u);var d=new pC,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+nC(a,"timescale")||1,h=(+e[0].getAttribute("t")||0)/f,l=+nC(a,"startNumber")||0;d.C=h;var m=h,n=+nC(a,"presentationTimeOffset")||0;b=c?c.startSecs+c.durationSecs:b?m-n/f:0;m=Date.parse(Hma(nC(a,"yt:segmentIngestTime")))/1E3;d.D="SegmentTemplate"===a.parentElement.tagName;d.D&&(d.K=nC(a,"media"));a=c?l-c.Ma:1;d.I=0<a?0:-a+1;a=g.r(e);for(e=a.next();!e.done;e=a.next()){e=
e.value;n=+e.getAttribute("d")/f;for(var p=(+e.getAttribute("yt:sid")||0)/f,q=+e.getAttribute("r")||0,t=0;t<=q;t++)if(c&&l<=c.Ma)l++;else{var u=new Fma(l,b,n,m+p,h);d.i.push(u);var v=u.startSecs;u=e.getAttribute("yt:cuepointTimeOffset");var y=e.getAttribute("yt:cuepointDuration");if(u&&y){u=Number(u);v=-u/f+v;y=Number(y)/f;var z=e.getAttribute("yt:cuepointContext")||null,C=e.getAttribute("yt:cuepointIdentifier")||"";var G=e.getAttribute("yt:cuepointEvent")||"";G=VOa[G]||"unknown";u=new Ty(v,y,z,C,
G,u)}else u=null;u&&d.B.push(u);l++;b+=n;h+=n;m+=n+p}}d.i.length&&(d.u=g.Kb(d.i))}this.I=d.I;this.u=d.u||this.u;Yb(this.i,d.i);Yb(this.B,d.B);this.D=d.D;this.K=d.K;-1===this.C&&(this.C=d.getStreamTimeOffset())};
pC.prototype.getStreamTimeOffset=function(){return-1===this.C?0:this.C};g.w(qC,bB);g.k=qC.prototype;g.k.getFirstSegmentNumber=function(){return this.pk?this.segments.length?this.hs(this.getMinSeekableTime()).Ma:-1:bB.prototype.getFirstSegmentNumber.call(this)};
g.k.getMinSeekableTime=function(){if(this.Ze)return 0;if(!this.pk)return bB.prototype.getMinSeekableTime.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Kb(this.segments).endTime-this.Nl,0);return 0<this.qe&&this.hs(a).Ma<this.qe?this.Ck(this.qe).startTime:a};
g.k.getMaxKnownEndTime=function(){if(!this.segments.length)return bB.prototype.getMaxKnownEndTime.call(this);var a=this.getLastSegmentNumber();if(!this.pk||a<=this.segments[this.segments.length-1].Ma)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new aB(a,Math.max(0,b.startTime-(b.Ma-a)*this.Eg),this.Eg,0,"sq/"+a,void 0,void 0,!0)}return null!==this.u&&a.pending&&3===this.u?this.Ze?Math.min(this.Nl,a.startTime):a.startTime:this.Ze?Math.min(this.Nl,a.endTime):
a.endTime};
g.k.getNumberOfSegments=function(){return this.pk?this.segments.length?this.getLastSegmentNumber()-this.getFirstSegmentNumber()+1:0:bB.prototype.getNumberOfSegments.call(this)};
g.k.getLastSegmentNumber=function(){var a=Math.min(this.vg,Math.max(bB.prototype.getLastSegmentNumber.call(this),this.vu)),b=1E3*this.Nl;b=0<this.i&&this.i<b;this.Ze&&0<this.Nl&&0<this.vu&&!b&&(b=this.hs(this.Nl))&&(a=Math.min(b.Ma-1,a));return a};
g.k.ys=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.VB=function(a){var b=rC(this,a.Ma);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.gw&&0===a.Ma%(300/this.Eg)){var c=this.segments[0].Ma,d=Math.floor(this.gw/this.Eg);a=a.Ma-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.hs=function(a){if(!this.pk)return bB.prototype.hs.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Ma-Math.ceil((this.segments[0].startTime-a)/this.Eg));else if(a>=b.endTime)b=b.Ma+Math.floor((a-b.endTime)/this.Eg+1);else{b=fc(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Ma-b.Ma-1))+1)+b.Ma}return this.Ck(b)};
g.k.Ck=function(a){if(!this.pk)return bB.prototype.Ck.call(this,a);if(!this.segments.length)return null;var b=rC(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Eg;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ma-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ma-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ma-d.Ma-1),d=d.endTime+(a-d.Ma-1)*b);return new aB(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.w(tC,mC);g.k=tC.prototype;g.k.Xv=function(){return!0};
g.k.Te=function(){return!0};
g.k.Lm=function(a){return!a.B};
g.k.Jp=function(){};
g.k.Ul=function(a,b){b=void 0===b?!1:b;return"number"!==typeof a||isFinite(a)?mC.prototype.Ul.call(this,a,b):(a=new bC(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Ri,void 0,this.Ri*this.info.Ob),new iC([a],""))};
g.k.Mm=function(a,b){var c=void 0===c?!1:c;if(sC(this.index,a))return mC.prototype.Mm.call(this,a,b);var d=this.index.getStartTime(a),e=b?0:this.Ri*this.info.Ob;b=!b;c=new bC(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.getLastSegmentNumber()&&!this.K&&0<e,b);return new iC([c],0<=a?"sq/"+a:"")};g.w(uC,WB);g.k=uC.prototype;g.k.Mg=function(){return!1};
g.k.Xv=function(){return!1};
g.k.Jp=function(){var a=new bC(1,this,void 0,"otfInit");return new iC([a],this.K)};
g.k.qr=function(){return null};
g.k.tu=function(a){this.Lm(a);return Pma(this,a.Ma+(a.Sd?1:0),!1)};
g.k.Ul=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return Pma(this,a,!0)};
g.k.nE=function(a){1===a.info.type&&(this.i||(this.i=Uma(a.i)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&Qma(this,a.u))};
g.k.Lm=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1};
g.k.aE=function(){return 0};
g.k.MF=function(){return!1};g.k=vC.prototype;g.k.getOffset=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.i[a]/this.B};
g.k.getStartTimeInPeriod=function(){return 0};
g.k.getIngestionTime=function(){return NaN};
g.k.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.B:-1};
g.k.getDurationTicks=function(a){return a+1<this.count||this.u?this.i[a+1]-this.i[a]:-1};
g.k.getByteLength=function(a){return a+1<this.count||this.u?this.offsets[a+1]-this.offsets[a]:-1};
g.k.getFirstSegmentNumber=function(){return 0};
g.k.getLastSegmentNumber=function(){return this.count-1};
g.k.getMaxKnownEndTime=function(){return this.u?this.i[this.count]/this.B:NaN};
g.k.getMinSeekableTime=function(){return 0};
g.k.getNumberOfSegments=function(){return this.count};
g.k.getTotalByteLength=function(){return this.u?this.offsets[this.count]:-1};
g.k.getSegmentURL=function(){return""};
g.k.getSegmentNumberForTime=function(a){a=g.ec(this.i.subarray(0,this.count),a*this.B);return 0<=a?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return 0<=this.getLastSegmentNumber()};
g.k.getLocalMaxByterate=function(a,b){if(a>=this.getLastSegmentNumber())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.getLastSegmentNumber()&&b>this.getStartTime(a);a++)c=Math.max(c,this.getByteLength(a)/this.getDuration(a));return c};
g.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.i;this.i=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.i[a]=c[a]};
g.k.setTimebase=function(a){this.B=a};
g.k.setFirstSegmentStart=function(a,b){this.offsets[0]=a;this.i[0]=b;this.u=!0};
g.k.addSegmentBySize=function(a,b){this.count++;wC(this);this.offsets[this.count]=this.offsets[this.count-1]+a;this.i[this.count]=this.i[this.count-1]+b};
g.k.addSegmentByStart=function(a,b){wC(this);this.offsets[this.count]=a;this.i[this.count]=b;this.count++};
g.k.cap=function(a,b){wC(this);this.u=!0;this.i[this.count]=b;this.offsets[this.count]=a};xC.prototype.append=function(a){if(Rma(this,a)){var b=this.i[this.i.length-1];this.i[this.i.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);zC(this)}else this.i.push(a);this.totalLength+=a.length};
xC.prototype.split=function(a){for(var b=new xC,c=new xC,d=g.r(this.i),e=d.next();!e.done;e=d.next())e=e.value,a>=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{wz:b,Jq:c}};
xC.prototype.isFocused=function(a){return a>=this.B&&a<this.B+this.i[this.u].length};
xC.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.B&&zC(this);this.B+this.i[this.u].length<=a&&this.u<this.i.length;)this.B+=this.i[this.u].length,this.u+=1;this.C=void 0}};DC.prototype.verify=function(a){if(this.info.u!==this.i.totalLength)return a.slength=this.info.u.toString(),a.range=this.i.totalLength.toString(),!1;if(1===this.info.i.info.containerType){if(8>this.info.u||4===this.info.type)return!0;var b=EC(this),c=b.getUint32(0,!1);b=b.getUint32(4,!1);a.infotype=this.info.type.toString();a.slicesize=c.toString();a.boxtype=b.toString();if(2===this.info.type)return c===this.info.u&&1936286840===b;if(3===this.info.type&&0===this.info.Bb)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.u||4===this.info.type)return!0;c=EC(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Bb)return 524531317===c||440786851===c}return!0};g.w(HC,WB);g.k=HC.prototype;g.k.Jp=function(a){var b=new bC(1,this,this.initRange,"initInfo"),c=new bC(2,this,this.indexRange,"indexInfo");b=[b,c];0<this.info.contentLength&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),0<a&&(a=$B(c,a),b.push(new bC(4,this,a,"tbdRange"))));return new iC(b)};
g.k.nE=function(a){if(1===a.info.type){if(this.i)return;this.i=Uma(a.i)}else if(2===a.info.type){if(this.K||0<=this.index.getLastSegmentNumber())return;if(g.FC(this.info)){var b=this.index,c=EC(a);a=a.info.range.start;var d=g.qB(c,0,1936286840);c=ema(d);b.setTimebase(c.JG);b.setFirstSegmentStart(c.OR+a+d.size,c.CR);a=c.EG.length;for(d=0;d<a;d++)b.addSegmentBySize(c.LW[d],c.EG[d])}else this.K=EC(a)}if(this.info.pe()&&this.i&&this.K){a=new DataView(this.i.buffer);b=this.index;d=this.K;c=this.indexRange.end;
var e=new AB(a);a=e;e=a.i;var f={hO:1E6,iO:1E9,duration:0,IN:0,iG:0};if(EB(a,408125543))if(f.IN=FB(a,!0),f.iG=a.start+a.i,EB(a,357149030)){for(var h=DB(a);!BB(h);){var l=FB(h,!1);2807729===l?f.hO=IB(h):2807730===l?f.iO=IB(h):17545===l?f.duration=KB(h):JB(h)}a.i=e;a=f}else a.i=e,a=null;else a.i=e,a=null;if(null!==a){b.setTimebase(a.iO/a.hO);e=new AB(d);d=e;h=a.iG;e=d.i;f=[];if(EB(d,475249515)){for(l=DB(d);EB(l,187);){var m=DB(l);if(EB(m,179)){var n=IB(m);if(EB(m,183)){m=DB(m);for(var p=h;EB(m,241);)p=
IB(m)+h;f.push({Cy:p,uR:n})}}}if(0<f.length&&c===f[0].Cy)for(c=0;c<f.length;c++)f[c].Cy+=1;d.i=e;c=f}else d.i=e,c=null;if(null!==c){c=g.r(c);for(d=c.next();!d.done;d=c.next())d=d.value,b.addSegmentByStart(d.Cy,d.uR);b.cap(a.IN+a.iG,a.duration)}}this.K=null}};
g.k.JH=function(a){for(var b=this.Yw(a.info),c=a.info.range.start+a.info.Bb,d=a.B,e=[],f=0;f<b.length;f++){var h=b[f].u;h=a.i.split(b[f].range.start+b[f].Bb-c).Jq.split(h).wz;e.push(new DC(b[f],h,d));d=!1}return e};
g.k.Yw=function(a){for(var b=a.range.start+a.Bb,c=0;c<this.index.getLastSegmentNumber()&&b>=this.index.getOffset(c+1);)c++;return IC(this,c,b,a.u).i};
g.k.Lm=function(a){return this.Te()?!0:a.range.end+1<this.info.contentLength};
g.k.qr=function(a,b){this.Lm(a);if(!this.Te())return b=$B(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new YB(b.start,this.info.contentLength-1)),a=[new bC(4,a.i,b,"getNextRequestInfoByLength")],new iC(a);4===a.type&&(a=this.Yw(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Bb+a.u;3===a.type&&(c=a.Ma,d===a.range.end+1&&(c+=1));return IC(this,c,d,b)};
g.k.tu=function(){return null};
g.k.Ul=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return IC(this,a,this.index.getOffset(a),0)};
g.k.Mg=function(){return!0};
g.k.Xv=function(){return!1};
g.k.aE=function(){return this.indexRange.length+this.initRange.length};
g.k.MF=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};JC.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var E2={},PA=(E2.WIDTH={name:"width",video:!0,valid:640,invalid:99999},E2.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},E2.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},E2.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},E2.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},E2.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},E2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},E2.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},E2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},E2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},E2);var Z={},OC=(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 MC="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");LC.prototype.isHdr=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};g.k=PC.prototype;g.k.jc=function(){return this.id.split(";",1)[0]};
g.k.pe=function(){return 2===this.containerType};
g.k.isEncrypted=function(){return!!this.Ed};
g.k.Lk=function(){return!!this.audio};
g.k.isVideo=function(){return!!this.video};VC.prototype.getName=function(){return this.name};
VC.prototype.getId=function(){return this.id};
VC.prototype.getIsDefault=function(){return this.isDefault};
VC.prototype.toString=function(){return this.name};
VC.prototype.getName=VC.prototype.getName;VC.prototype.getId=VC.prototype.getId;VC.prototype.getIsDefault=VC.prototype.getIsDefault;g.w(g.WC,Kx);g.WC.prototype.T=function(a,b,c,d,e){return Kx.prototype.T.call(this,a,b,c,d,e)};g.w(jD,g.Q);g.k=jD.prototype;g.k.appendBuffer=function(a,b,c){if(this.Cd.Zy()!==this.appendWindowStart+this.start||this.Cd.QD()!==this.appendWindowEnd+this.start||this.Cd.Uc()!==this.timestampOffset+this.start)this.Cd.supports(1),this.Cd.mG(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Cd.bB(this.timestampOffset+this.start);this.Cd.appendBuffer(a,b,c)};
g.k.abort=function(){this.Cd.abort()};
g.k.remove=function(a,b){this.Cd.remove(a+this.start,b+this.start)};
g.k.mG=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.eE=function(){return this.timestampOffset+this.start};
g.k.Zy=function(){return this.appendWindowStart};
g.k.QD=function(){return this.appendWindowEnd};
g.k.bB=function(a){this.timestampOffset=a};
g.k.Uc=function(){return this.timestampOffset};
g.k.kf=function(a){a=this.Cd.kf(void 0===a?!1:a);return iD(a,this.start,this.end)};
g.k.Zg=function(){return this.Cd.Zg()};
g.k.Fp=function(){return this.Cd.Fp()};
g.k.ez=function(){return this.Cd.ez()};
g.k.bH=function(a,b){this.Cd.bH(a,b)};
g.k.supports=function(a){return this.Cd.supports(a)};
g.k.fz=function(){return this.Cd.fz()};
g.k.isView=function(){return!0};
g.k.oB=function(a,b,c){return this.isActive?this.Cd.oB(a,b,c):!1};
g.k.vy=function(){return this.Cd.vy()?this.isActive:!1};
g.k.isLocked=function(){return this.Gx&&!this.isActive};
g.k.Kb=function(a){return this.Cd.Kb(a)+(";vw."+this.start+"-"+this.end)};
g.k.Dv=function(){return this.Cd.Dv()};
g.k.xa=function(){Ox(this.Cd,this.MK);g.Q.prototype.xa.call(this)};var eU=!1;g.w(nD,g.Q);g.k=nD.prototype;g.k.appendBuffer=function(a,b,c){var d;this.py=!1;c&&(this.Mz=c);b&&(b.isEncrypted()&&(this.tL=this.Mz),3===b.type&&(this.Ue=b));(null===(d=this.Wb)||void 0===d?0:d.appendBuffer)?this.Wb.appendBuffer(a):this.Wb?this.Wb.append(a):this.Ke&&this.Ke.webkitSourceAppend(this.id,a)};
g.k.abort=function(){try{this.Wb?this.Wb.abort():this.Ke&&this.Ke.webkitSourceAbort(this.id)}catch(a){}this.Mz=this.Ue=null};
g.k.remove=function(a,b){var c;this.py=!1;(null===(c=this.Wb)||void 0===c?0:c.remove)&&this.Wb.remove(a,b)};
g.k.Zy=function(){var a;return eU&&this.isVideo?this.appendWindowStart:(null===(a=this.Wb)||void 0===a?void 0:a.appendWindowStart)||0};
g.k.QD=function(){var a;return(null===(a=this.Wb)||void 0===a?void 0:a.appendWindowEnd)||0};
g.k.mG=function(a,b){this.Wb&&(eU&&this.isVideo?(this.appendWindowStart=a,this.Wb.appendWindowEnd=b):a>this.Zy()?(this.Wb.appendWindowEnd=b,this.Wb.appendWindowStart=a):(this.Wb.appendWindowStart=a,this.Wb.appendWindowEnd=b))};
g.k.eE=function(){return this.timestampOffset};
g.k.bB=function(a){eU?this.timestampOffset=a:this.supports(1)&&(this.Wb.timestampOffset=a)};
g.k.Uc=function(){return eU?this.timestampOffset:this.supports(1)?this.Wb.timestampOffset:0};
g.k.kf=function(a){if(void 0===a?0:a)return this.py||this.Zg()||(this.nJ=this.kf(!1),this.py=!0),this.nJ;try{return this.Wb?this.Wb.buffered:this.Ke?this.Ke.webkitSourceBuffered(this.id):cD([0],[Infinity])}catch(b){return cD([],[])}};
g.k.Zg=function(){var a;return(null===(a=this.Wb)||void 0===a?void 0:a.updating)||!1};
g.k.Fp=function(){return this.Mz};
g.k.ez=function(){return this.tL};
g.k.bH=function(a,b){this.containerType!==a&&(this.supports(4),oD()&&this.Wb.changeType(b));this.containerType=a};
g.k.fz=function(){return this.Ue};
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.Wb)||void 0===b?void 0:b.timestampOffset);case 0:return!(null===(c=this.Wb)||void 0===c||!c.appendBuffer);case 2:return!(null===(d=this.Wb)||void 0===d||!d.remove);case 3:return!!((null===(e=this.Wb)||void 0===e?0:e.addEventListener)&&(null===(f=this.Wb)||void 0===f?0:f.removeEventListener));case 4:return!(!this.Wb||!this.Wb.changeType);default:return!1}};
g.k.vy=function(){return!this.Zg()};
g.k.isLocked=function(){return!1};
g.k.Kb=function(a){var b,c;a.to=""+this.Uc();a.up=""+ +this.Zg();var d=(null===(b=this.Wb)||void 0===b?void 0:b.appendWindowStart)||0,e=(null===(c=this.Wb)||void 0===c?void 0:c.appendWindowEnd)||Infinity;a.aw=d.toFixed(3)+"-"+e.toFixed(3);try{a.bu=dD(this.kf())}catch(f){}return g.kD(a)};
g.k.xa=function(){this.supports(3)&&(this.Wb.removeEventListener("updateend",this.Ae),this.Wb.removeEventListener("error",this.Ae));g.Q.prototype.xa.call(this)};
g.k.oB=function(a,b,c){if(!this.supports(2)||this.Zg())return!1;var d=this.kf(),e=eD(d,a);if(0>e)return!1;try{if(b&&e+1<d.length){var f=d.start(e+1),h=d.end(d.length-1);this.ma();this.remove(f,h);return!0}if(this.isView())return!1;var l=Math.max(0,a-c);if(0<c&&d.start(e)<l)return this.ma(),this.remove(0,l),!0}catch(m){}return!1};
g.k.ma=function(){};
g.k.Dv=function(){return this.containerType};pD.prototype.dispose=function(){if(!this.isDisposed){if(this.u)try{URL.revokeObjectURL(this.i)}catch(a){}this.B=!0}};
pD.prototype.isDisposed=function(){return this.B};
pD.prototype.toString=function(){return"MediaResource {"+this.i+"}"};g.w(qD,g.E);g.k=qD.prototype;g.k.getDuration=function(){var a;return(null===(a=this.mediaSource)||void 0===a?void 0:a.duration)||this.B};
g.k.Ij=function(a){try{this.mediaSource?this.mediaSource.duration=a:(this.B=a,this.Ke.webkitSourceSetDuration(a))}catch(b){}};
g.k.rf=function(){try{return"closed"===sD(this)}catch(a){return!0}};
g.k.Zg=function(){return!!(this.i&&this.i.Zg()||this.u&&this.u.Zg())};
g.k.UV=function(){!this.isDisposed()&&rD(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.TV=function(){this.dispose()};var ona=/action_display_post/;var pna;g.w(vD,g.Q);g.k=vD.prototype;g.k.isFailed=function(){return 3===this.state};
g.k.BW=function(a){var b,c=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.tf=this.B=!0;this.timeline||(this.timeline=new Jma);Nma(this.timeline,a,this.Wa);this.ea("refresh");for(a=0;a<c.length;a++){var d=Gna(this,c[a]),e=this.isLive&&g.FC(d)&&this.bb;if(!this.i[d.id]){var f=yD(oC(c[a],"BaseURL").textContent),h=oC(c[a],"Initialization"),l=nC(h,"sourceURL");h=ZB(nC(h,"range"));e&&(l="",h=void 0);this.i[d.id]=
new mC(f,d,l,h)}d=this.i[d.id];f=nC(c[a],"id","AdaptationSet");f=""!==f?f:nC(c[a],"mimetype","AdaptationSet");l=this.timeline;l=l.B[d.info.id]||l.u[f]||l.i||null;f=l.i;!this.u&&l.getStreamTimeOffset()&&(this.u=l.getStreamTimeOffset());if(l.D)for(e=[],f=g.r(f),h=f.next();!h.done;h=f.next()){h=h.value;var m=d.info.id,n=8*d.info.Ob,p=h.Ma,q=h.startSecs;var t=l.K.split("$$");for(b=0;b<t.length;b++)t[b]=t[b].replace("$RepresentationID$",m),t[b]=t[b].replace("$Number$",p.toString()),t[b]=t[b].replace("$Bandwidth$",
n.toString()),t[b]=t[b].replace("$Time$",q.toString());e.push(new aB(h.Ma,h.startSecs,h.durationSecs,h.i,t.join("$"),null,h.u))}else{l=Zb(oC(c[a],"SegmentList").getElementsByTagName("SegmentURL"),l.I);h=[];for(m=0;m<l.length;m++){n=h;p=n.push;q=f[m];t=void 0;var u=l[m];b=u.getAttribute("media");if(!e&&(u=u.getAttribute("mediaRange"))){var v=u.split("-");v[1]&&0<=Number(v[1])?t=ZB(u):b=b+"?range="+u}p.call(n,new aB(q.Ma,q.startSecs,q.durationSecs,q.i,b,t,q.u))}e=h}d.update(e,this.isLive,this.La)}Oma(this.timeline);
return!0}this.duration=Gma(nC(a,"mediaPresentationDuration"));a:{for(a=0;a<c.length;a++){f=c[a];d=Gna(this,f);e=yD(oC(f,"BaseURL").textContent);l=oC(f,"SegmentBase");f=ZB(l.attributes.getNamedItem("indexRange").value);l=ZB(l.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);d=new HC(e,d,l,f);if(!d){c=!1;break a}wD(this,d)}c=!0}return c};
g.k.refresh=function(){if(1!==this.state&&!this.isDisposed()){var a=g.Ei(this.sourceUrl,{start_seq:Kna(this).toString()});g.yh(Ina(this,a),function(){})}};
g.k.resume=function(){Hna(this)};
g.k.jd=function(){if(this.isManifestless&&this.S&&CD(this))return CD(this);var a=this.i,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&(f.D&&(b=!0),h=h.getMaxKnownEndTime(),f.info.Lk()&&(isNaN(c)||h<c)?c=h:f.info.isVideo()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.getMinSeekableTime=function(){if(this.isManifestless){if(DD(this))return DD(this);if(this.K){var a=this.getIngestionTime(this.jd());if(a&&(a-=this.K,0<a))return this.jd()-a}}a=this.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getMinSeekableTime()}return 0};
g.k.getStreamTimeOffset=function(){return this.u};
g.k.getIngestionTime=function(a){for(var b in this.i){var c=this.i[b].index;if(c.isLoaded()){var d=c.getSegmentNumberForTime(a),e=c.getIngestionTime(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var zD=null,Bna=!!navigator.mediaCapabilities,Fna={commentary:1,alternate:2,dub:3,main:4};LD.prototype.clone=function(a){return new LD(this.flavor,a,this.C,this.experiments)};
LD.prototype.Kb=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
LD.prototype.lf=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.widevine.forcehdcp":return"WVYF";case "com.youtube.fairplay":return"FPY";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}};
var F2={},TD=(F2.playready=["com.youtube.playready","com.microsoft.playready"],F2.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],F2),G2={},gFa=(G2.widevine="DRM_SYSTEM_WIDEVINE",G2.fairplay="DRM_SYSTEM_FAIRPLAY",G2.playready="DRM_SYSTEM_PLAYREADY",G2),H2={},WOa=(H2.widevine=1,H2.fairplay=2,H2.playready=3,H2);g.w(UD,g.E);
UD.prototype.initialize=function(a,b){for(var c=this,d=g.r(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.r(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.Ed)for(var h=g.r(Object.keys(f.Ed)),l=h.next();!l.done;l=h.next())if(l=l.value,TD[l])for(var m=g.r(TD[l]),n=m.next();!n.done;n=m.next())n=n.value,this.u[n]=this.u[n]||new LD(l,n,f.Ed[l],this.experiments),this.C[l]=this.C[l]||{},this.C[l][f.mimeType]=!0}tu()&&(this.u["com.youtube.fairplay"]=new LD("fairplay","com.youtube.fairplay","",
this.experiments),this.C.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.i=boa(b,this.useCobaltWidevine,this.N("html5_enable_safari_fairplay"),g.KD(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.u[p]})};
UD.prototype.ma=function(){};
UD.prototype.N=function(a){return this.experiments.ob(a)};var XOa={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},I2;a:{var J2=g.Ab;J2=J2.toLowerCase();if(-1!=J2.indexOf("android")){var YOa=J2.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(YOa){var ZOa=parseFloat(YOa[1]);if(100>ZOa){I2=ZOa;break a}}var $Oa=J2.match("("+g.ye(XOa).join("|")+")");I2=$Oa?XOa[$Oa[0]]:0}else I2=void 0}var BE=I2,AE=0<=BE;var Joa={RED:"red",dca:"white"};var Qoa={vY:"adunit",M1:"detailpage",d2:"editpage",g2:"embedded",h2:"embedded_unbranded",I4:"leanback",h9:"previewpage",k9:"profilepage",Qaa:"unplugged",Y8:"playlistoverview",L$:"sponsorshipsoffer",y$:"shortspage"};ioa.prototype.ob=function(a){return"true"===this.flags[a]};WD.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;Au?a=a||aPa[b]:2.2===BE?a=a||bPa[b]:pu()&&(a=a||cPa[b]);return!!a};
WD.prototype.isTypeSupported=function(a){this.ma();return this.I?window.cast.receiver.platform.canDisplayType(a):ZC(a)};
WD.prototype.disableAv1=function(){this.S=!0};
WD.prototype.ma=function(){};
var bPa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},cPa={"application/x-mpegURL":"maybe"},aPa={"application/x-mpegURL":"maybe"};g.w(ZD,g.Q);ZD.prototype.add=function(a,b){!this.items[a]&&(b.Qu||b.yy||b.Ax)&&(this.items[a]=Ne(b),this.ea("vast_info_card_add",a))};
ZD.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
ZD.prototype.get=function(a){return this.items[a]||null};
ZD.prototype.isEmpty=function(){return g.De(this.items)};var JE={b5:1,c5:2,d5:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.w(aE,g.E);aE.prototype.load=function(){var a=this,b;return g.A(function(c){if(1==c.i)return a.i?c.return():g.x(c,noa(),2);b=c.u;if(!b)return c.return();a.i={primary:b,secondary:void 0};Wna(b,void 0);g.sa(c)})};
aE.prototype.xa=function(){this.u&&(Tt(this.u),this.u=void 0);g.E.prototype.xa.call(this)};cE.prototype.Kg=function(a,b){var c=Math.pow(this.alpha,a);this.i=b*(1-c)+c*this.i;this.u+=a};
cE.prototype.jg=function(){return this.i/(1-Math.pow(this.alpha,this.u))};dE.prototype.Kg=function(a,b){a=Math.min(this.i,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.i&&(this.u=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.i;this.C=!0};
dE.prototype.jg=function(){return this.D?(eE(this,this.B-this.D)+eE(this,this.B)+eE(this,this.B+this.D))/3:eE(this,this.B)};g.w(Aoa,g.E);var Doa=/^([0-9\.]+):([0-9\.]+)$/;var Hoa="blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Poa={sZ:"cbrand",tZ:"cbr",uZ:"cbrver",B3:"c",E3:"cver",D3:"ctheme",C3:"cplayer",f7:"cmodel",P7:"cnetwork",k8:"cos",l8:"cosver",P8:"cplatform"};g.w(PE,g.E);g.k=PE.prototype;g.k.N=function(a){return this.experiments.ob(a)};
g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.SE(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.FE(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,Au&&(a=Os())&&(b.ebc=a));return g.Ei(d,b)};
g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.SE(this)+"/embed/"+a;c&&(a=g.Ei(a,{list:c}));c=b.width;b=b.height;a=g.og(a);return'<iframe width="'+c+'" height="'+b+'" src="'+a+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'};
g.k.supportsGaplessAudio=function(){return g.lj&&!Au&&74<=mu()||g.mj&&g.sc(68)?!0:!1};
g.k.getPlayerType=function(){return this.deviceParams.cplayer};
g.k.xa=function(){this.Yg&&(Tt(this.Yg),this.Yg=void 0);g.E.prototype.xa.call(this)};
var Woa=["www.youtube-nocookie.com","youtube.googleapis.com"];g.k=gF.prototype;g.k.lf=function(){return this.i};
g.k.wu=function(){return null};
g.k.KH=function(){var a=this.wu();return a?(a=g.gt(a.i),Number(a.expire)):NaN};
g.k.jG=function(){};
g.k.jc=function(){return this.i.jc()};
g.k.getHeight=function(){return this.i.video.height};Xoa.prototype.Pe=function(){$oa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.i)var c=this.i;else{c="";for(var d=g.r(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.zc){if(e.zc.getIsDefault()){c=e.zc.getId();break a}c||(c=e.zc.getId())}}d=g.r(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.I||!e.zc||e.zc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.r(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.i])for(e=g.r(e),f=e.next();!f.done;f=
e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.zc){p=f.zc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.i?this.i===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=iF(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(Zoa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}c=g.r(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=dPa,d=(h=d.zc)?'#EXT-X-MEDIA:URI="'+iF(this,d.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0<this.D.length?dPa:void 0;d=g.r(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,h=b[e.i],0<(null===h||void 0===h?void 0:h.length)&&(h=h[0],h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(Zoa(h,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(h+=",FRAME-RATE="+
e.fps),e.Vt&&(h+=",VIDEO-RANGE="+e.Vt),a.push(h),a.push(iF(this,e.url,"")));return a.join("\n")};
var dPa="text";g.w(jF,gF);jF.prototype.KH=function(){return this.expiration};
jF.prototype.wu=function(){if(!this.u||this.u.isDisposed()){var a=this.B.Pe();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.u=new pD(a)}return this.u};g.w(kF,gF);kF.prototype.wu=function(){return new pD(VA(this.u))};
kF.prototype.jG=function(){this.u=ZA(this.u)};g.w(lF,gF);lF.prototype.wu=function(){return new pD(this.u)};mF.prototype.toString=function(){return this.type+this.id};var lpa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},mpa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};g.qF.prototype.Ie=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.i)return TE(this.u,this.i,a)};
g.qF.prototype.Gk=function(){return this.u.getVideoUrl(this.videoId,this.playlistId)};g.rF.prototype.Ie=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:TE(this.i,this.videoId,a)};
g.rF.prototype.Gk=function(){return this.watchUrl||this.i.getVideoUrl(this.videoId)};var opa=["APP_STATE","PI"];var K2={},tpa=fx("yt-player-local-media",{iq:(K2.index={Sm:2},K2.media={Sm:2},K2.captions={Sm:5},K2),hx:!1,upgrade:function(a,b){b(2)&&(Aw(a,"index"),Aw(a,"media"));b(5)&&Aw(a,"captions");b(6)&&(Bw(a,"metadata"),Bw(a,"playerdata"))},
version:5});var sF=void 0;ppa("LMS",function(){return g.A(function(a){return a.return(tF())})});var xF=0,wpa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;ppa("LMDB",function(){var a,b;return g.A(function(c){if(1==c.i)return g.x(c,g.Tw(),2);if(3!=c.i){a=c.u;if(!a)throw g.rw("edd");return g.x(c,g.wF(a),3)}b=c.u;return c.return(Cw(b,["index","media","captions"],{mode:"readonly",Lc:!0},function(d){var e={};d=[Gw(d.objectStore("index"),{},function(f){e[f.getKey()]=f.getValue();return f.continue()}),
Lia(d.objectStore("media")),Lia(d.objectStore("captions"))];return uw.all(d).then(function(f){var h=g.r(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:Hpa(f||[]),captions:h}})}))})});g.k=g.zF.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.i};
g.k.toString=function(){return this.languageCode+": "+g.AF(this)+" - "+this.vssId};
g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Jpa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Kpa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Lpa=/^(\d*)_((\d*)_?(\d*))$/;var L2={},mqa=(L2.ALWAYS=1,L2.BY_REQUEST=3,L2.UNKNOWN=void 0,L2),M2={},Zpa=(M2.COLOR_PRIMARIES_BT709="bt709",M2.COLOR_PRIMARIES_BT2020="bt2020",M2.COLOR_PRIMARIES_UNKNOWN=null,M2.COLOR_PRIMARIES_UNSPECIFIED=null,M2),N2={},Npa=(N2.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",N2.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",N2.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",N2.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",N2.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,N2.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,N2),O2={},GF=(O2.FAIRPLAY="fairplay",O2.PLAYREADY="playready",O2.WIDEVINE="widevine",O2.CLEARKEY=null,O2.FLASHACCESS=null,O2.UNKNOWN=null,O2.WIDEVINE_CLASSIC=null,O2),P2={},nqa=(P2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",P2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",P2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",P2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",P2),Q2={},Wpa=(Q2.UNKNOWN=0,Q2.RECTANGULAR=1,Q2.EQUIRECTANGULAR=2,Q2.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
3,Q2.MESH=4,Q2),R2={},Ypa=(R2.SPATIAL_AUDIO_TYPE_NONE=0,R2.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,R2.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,R2.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,R2),S2={},Xpa=(S2.STEREO_LAYOUT_UNKNOWN=0,S2.STEREO_LAYOUT_LEFT_RIGHT=1,S2.STEREO_LAYOUT_TOP_BOTTOM=2,S2),T2={},Vpa=(T2.FORMAT_STREAM_TYPE_UNKNOWN=0,T2.FORMAT_STREAM_TYPE_OTF=3,T2);g.w(HF,g.Q);HF.prototype.xa=function(){this.i&&(this.i=this.i.onload=null);g.Q.prototype.xa.call(this)};g.k=g.LF.prototype;g.k.getHeight=function(){return this.height};
g.k.uK=ba(0);g.k.XD=function(){return this.B};
g.k.isDefault=function(){return-1!==this.C.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.Lx=function(a){var b=this.XD()-1;return g.dg(0===this.i?Math.round(a*this.B/this.videoLength):Math.round(1E3*a/this.i),0,b)};
g.k.rr=function(){return this.B-1};
g.k.Mx=function(){return this.B?0:-1};
g.k.LH=function(){};g.w(MF,HF);MF.prototype.u=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.I(e-1,d,a[e],b);(this.S||180>f.getHeight())&&c.push(f)}return c};
MF.prototype.I=function(a,b,c,d){return new g.LF(a,b,c,d)};g.w(OF,g.LF);g.k=OF.prototype;g.k.XD=function(){return this.u.getNumberOfSegments()};
g.k.Lx=function(a){var b=this.rows*this.columns*this.I,c=this.u,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a};
g.k.rr=function(){return this.u.getLastSegmentNumber()};
g.k.Mx=function(){return this.u.getFirstSegmentNumber()};
g.k.LH=function(a){this.u=a};g.w(PF,MF);PF.prototype.u=function(a,b){return MF.prototype.u.call(this,"$N|"+a,b)};
PF.prototype.I=function(a,b,c){return new OF(a,b,c,this.isLive)};g.w(RF,g.Q);g.k=RF.prototype;g.k.V=function(){return this.u};
g.k.N=function(a){return this.u.N(a)};
g.k.sf=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null===(a=this.fc)||void 0===a||!a.vb)};
g.k.qM=function(){this.isDisposed()||(this.i.B||this.i.unsubscribe("refresh",this.qM,this),this.CJ(-1))};
g.k.CJ=function(a){if(!this.isLivePlayback||!this.I||"fairplay"!=this.I.flavor){var b=Cna(this.i,this.IB);if(0<b.length&&(this.ea("cuepointupdated",b,a),this.IB+=b.length,YF(this)&&g.cG(this))){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.Ca("cuepoint","segNum."+a+";event."+c.event+";startSecs."+c.startSecs+";id."+c.identifier.slice(-16)),"start"===c.event&&(c=c.startSecs,this.IC.start=this.zC,this.IC.end=c+3)}}};
g.k.Eh=function(){var a={};this.B&&(a.fmt=this.B.jc(),this.K&&this.K.jc()!=this.B.jc()&&(a.afmt=this.K.jc()));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Rg&&(a.infringe=1);this.Af&&(a.splay=1);var b=kG(this);b&&(a.live=b);this.Qk&&(a.autoplay=1);this.iK&&(a.sdetail=this.iK);this.Ka&&(a.partnerid=this.Ka);this.osid&&(a.osid=this.osid);return a};
g.k.og=function(){if(this.cotn)return null;var a=g.YE(this.u)||this.N("web_l3_storyboard");if(!this.Qf)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Qf=new MF(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.i&&(c=we(this.i.i).index)&&(this.Qf=new PF(b.spec,this.i.isLive,c,a))}else this.er?this.Qf=new MF(this.er,this.lengthSeconds,void 0,!1,a):this.Kq&&this.i&&
(b=we(this.i.i).index)&&(this.Qf=new PF(this.Kq,this.i.isLive,b,a));return this.Qf};
g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.er||this.Kq};
g.k.jd=function(){return this.i&&!isNaN(this.i.jd())?this.i.jd():YF(this)?0:this.lengthSeconds};
g.k.getMinSeekableTime=function(){return this.i&&!isNaN(this.i.getMinSeekableTime())?this.i.getMinSeekableTime():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.i&&this.B){var b=this.i.i[this.B.id];if(!b)return null;var c=b.index.getSegmentNumberForTime(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.isValid=function(){return!this.isDisposed()&&!(!this.videoId&&!this.Li)};
g.k.isLoaded=function(){return SF(this)&&!this.wd&&!this.gj};
g.k.Ie=function(a){if(30==this.Ka)return(a=this.Z["default.jpg"])?a:this.videoId?g.Ei("//docs.google.com/vt",{id:this.videoId,authuser:this.JI,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.u.K||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:TE(this.u,this.videoId,a)};
g.k.tf=function(){return this.isLivePlayback||this.Ze||this.ej||!(!this.liveUtcStartSeconds||!this.bh)};
g.k.isOtf=function(){return!!this.i&&(this.i.isOtf||!this.Ze&&!this.isLivePlayback&&this.i.B)};
g.k.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.zq||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.K&&!TC(this.K))return g.Mb(this.getAvailableAudioTracks(),function(d){return d.id==a.K.id})||this.bj;
if(this.zq){if(!this.Wj)for(var b=g.r(this.zq),c=b.next();!c.done;c=b.next())if(c=c.value,c.zc.getIsDefault()){this.Wj=c;break}return this.Wj||this.bj}return this.bj};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.Gk=function(){return this.watchUrl?this.watchUrl:this.u.getVideoUrl(this.videoId)};
g.k.isAd=function(){return!!this.adFormat};
g.k.mf=function(){return this.oauthToken||this.u.Oe};
g.k.Pn=function(){var a=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],b="TVHTML5_SIMPLY"===this.u.deviceParams.c&&"MUSIC"===this.u.deviceParams.ctheme;!this.ye&&(g.GE(this.u)||b)&&a.includes(this.musicVideoType)&&(this.ye=!0);if(a=g.ru())a=/Starboard\/([0-9]+)/.exec(g.Ab),a=10>(a?parseInt(a[1],10):NaN);b=this.u;b=("TVHTML5_CAST"===b.deviceParams.c||"TVHTML5"===b.deviceParams.c&&(b.deviceParams.cver.startsWith("6.20130725")||b.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===
this.u.deviceParams.ctheme;!this.ye&&(b||Toa(this.u))&&!a&&(a="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===this.musicVideoType,b=(this.N("cast_prefer_audio_only_for_atv_and_uploads")||this.N("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===this.musicVideoType,a||b)&&(this.ye=!0);return!this.u.deviceHasDisplay||this.ye&&this.u.u};
g.k.sG=function(){return this.Ui||this.bd};
g.k.ix=function(){return this.Oe||this.bd};
g.k.SC=function(){return dG(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){if(!(this.I&&this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webDrmConfig))return!1;var a="playready"===this.I.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForPlayready,b="fairplay"===this.I.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForFairplay;return!!("widevine"===this.I.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForWidevine||a||b)};
g.k.Ca=function(a,b,c){this.ea("ctmp",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.xa=function(){g.Q.prototype.xa.call(this);delete this.vl;this.zl=null;delete this.IX;delete this.accountLinkingConfig;delete this.i;this.C=this.playerResponse=this.watchNextResponse=null;this.Ni=this.adaptiveFormats="";delete this.botguardData;this.Pq={};this.suggestions=null};GG.prototype.Wv=function(){return!1};
GG.prototype.Ka=function(){return function(){return null}};var OG=null;g.w(NG,g.Q);NG.prototype.Cv=function(a){return this.i.hasOwnProperty(a)?this.i[a].Cv():{}};
g.Ga("ytads.bulleit.getVideoMetadata",function(a){return PG().Cv(a)},void 0);
g.Ga("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=PG();c=Xqa(c);null!==c&&d.ea(c,{queryId:a,viewabilityString:b})},void 0);g.w(SG,GG);g.k=SG.prototype;g.k.Ks=function(){return!0};
g.k.To=function(){return!1};
g.k.isSkippable=function(){return null!=this.Ba};
g.k.getVideoUrl=function(){return this.va};
g.k.Wv=function(){return!0};g.w(ZG,GG);ZG.prototype.Ks=function(){return!0};
ZG.prototype.To=function(){return!1};
ZG.prototype.Wv=function(){return!0};
ZG.prototype.Ka=function(){return function(){return g.Cg("video-ads")}};era.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.i.i};var kLa={eY:"FINAL",qY:"AD_BREAK_LENGTH",rY:"AD_CPN",sY:"AH",tY:"AD_MT",uY:"ASR",wY:"AW",MZ:"NM",NZ:"NX",OZ:"NY",UZ:"CONN",f_:"CPN",Y1:"DV_VIEWABILITY",q2:"ERRORCODE",v2:"ERROR_MSG",z2:"EI",g3:"GOOGLE_VIEWABILITY",y3:"IAS_VIEWABILITY",G4:"LACT",U4:"LIVE_TARGETING_CONTEXT",e5:"I_X",f5:"I_Y",J6:"MT",N6:"MIDROLL_POS",O6:"MIDROLL_POS_MS",Q6:"MOAT_INIT",R6:"MOAT_VIEWABILITY",T8:"P_H",U8:"PV_H",V8:"PV_W",W8:"P_W",b9:"TRIGGER_TYPE",P9:"SDKV",I$:"SLOT_POS",X$:"SURVEY_LOCAL_TIME_EPOCH_S",W$:"SURVEY_ELAPSED_MS",
SQ:"VIS",rba:"VIEWABILITY",tba:"VED",zba:"VOL",Dba:"WT",sca:"YT_ERROR_CODE"};var lra=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];fH.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.Tq(a.baseUrl,ira(b,d,c)),f;if(a.headers)for(var h=g.r(a.headers),l=h.next();!l.done;l=h.next())switch(l.value.headerType){case "USER_AUTH":var m=this.mf();m&&(f||(f={}),f.Authorization="Bearer "+m);break;case "PLUS_PAGE_ID":var n=this.i();n&&(f||(f={}),f["X-Goog-PageId"]=n)}g.wv(e,void 0,d,f)}catch(p){}};g.w(gH,fH);gH.prototype.mf=function(){return this.rp?this.rp.mf():""};
gH.prototype.i=function(){return this.rp?this.rp.V().pageId:""};hH.prototype.send=function(a,b,c){try{var d=a.match(ri);if("https"===d[1])var e=a;else d[1]="https",e=pi("https",d[2],d[3],d[4],d[5],d[6],d[7]);a=e;var f=Vga(a);e=[];mt(a)&&(e.push({headerType:"USER_AUTH"}),e.push({headerType:"PLUS_PAGE_ID"}));this.ep.send({baseUrl:a,scrubReferrer:f,headers:e},b,c)}catch(h){}};g.w(mra,g.E);g.w(yH,g.Q);g.k=yH.prototype;g.k.Cv=function(){return{}};
g.k.DN=function(){};
g.k.td=function(a){this.rk();this.ea(a)};
g.k.rk=function(){tra(this,this.va,3);this.va=[]};
g.k.getDuration=function(){return this.J.getDuration(2,!1)};
g.k.Hn=function(){var a=this.i;jH(a)||!rH(a,"impression")&&!rH(a,"start")||rH(a,"abandon")||rH(a,"complete")||rH(a,"skip")||uH(a,"pause");this.C||(a=this.i,jH(a)||!rH(a,"unmuted_impression")&&!rH(a,"unmuted_start")||rH(a,"unmuted_abandon")||rH(a,"unmuted_complete")||uH(a,"unmuted_pause"))};
g.k.In=function(){this.Aa||this.S||this.Cf()};
g.k.uh=function(){mH(this.i,this.getDuration());if(!this.C){var a=this.i;this.getDuration();jH(a)||(qra(a,0,!0),rra(a,0,0,!0),iH(a,"unmuted_complete"))}};
g.k.qg=function(){var a=this.i;!rH(a,"impression")||rH(a,"skip")||rH(a,"complete")||qH(a,"abandon");this.C||(a=this.i,rH(a,"unmuted_impression")&&!rH(a,"unmuted_complete")&&qH(a,"unmuted_abandon"))};
g.k.Op=function(){var a=this.i;kH(a)?iH(a,"skip"):!rH(a,"impression")||rH(a,"abandon")||rH(a,"complete")||iH(a,"skip")};
g.k.Cf=function(){if(!this.S){var a=this.Yy();this.i.macros.AD_CPN=a;a=this.i;if(kH(a)){var b=a.i.getCurrentTime(2,!1);pH(a,"impression",b,0)}else iH(a,"impression");iH(a,"start");jH(a)||a.i.isFullscreen()&&qH(a,"fullscreen");this.S=!0;this.C=this.J.isMuted()||0==this.J.getVolume();this.C||(a=this.i,iH(a,"unmuted_impression"),iH(a,"unmuted_start"),jH(a)||a.i.isFullscreen()&&qH(a,"unmuted_fullscreen"))}};
g.k.Xg=function(a){a=a||"";var b="",c="",d="";HG(this.J)&&(b=this.J.zb(2).state,this.J.kd()&&(c=this.J.kd().wh(),null!=this.J.kd().hj()&&(d=this.J.kd().hj())));var e=this.i;e.macros=eH(e.macros,cH(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));iH(e,"error");this.C||nra(this.i,3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d))};
g.k.nf=function(){};
g.k.jN=function(){this.ea("adactiveviewmeasurable")};
g.k.kN=function(){this.ea("adfullyviewableaudiblehalfdurationimpression")};
g.k.lN=function(){this.ea("adoverlaymeasurableimpression")};
g.k.mN=function(){this.ea("adoverlayunviewableimpression")};
g.k.nN=function(){this.ea("adoverlayviewableendofsessionimpression")};
g.k.oN=function(){this.ea("adoverlayviewableimmediateimpression")};
g.k.pN=function(){this.ea("adviewableimpression")};
g.k.dispose=function(){this.isDisposed()||(this.rk(),this.u.unsubscribe("adactiveviewmeasurable",this.jN,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.kN,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.lN,this),this.u.unsubscribe("adoverlayunviewableimpression",this.mN,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.nN,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.oN,this),this.u.unsubscribe("adviewableimpression",
this.pN,this),delete this.u.i[this.ad.K],g.Q.prototype.dispose.call(this))};
g.k.Yy=function(){var a=this.J.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.k.ZJ=function(){return""};g.w(PH,GG);PH.prototype.Ks=function(){return!0};
PH.prototype.To=function(){return!1};g.w(QH,LG);g.w(RH,yH);g.k=RH.prototype;g.k.vr=function(){0<this.B&&this.Cf()};
g.k.Cf=function(){var a=this;this.Mb=new g.I(function(){a.uh();for(var b=g.r(a.D.i.completionCommands||[]),c=b.next();!c.done;c=b.next())a.I.executeCommand(c.value,a.macros);a.td("adended")},this.B,this);
g.H(this,this.Mb);this.Mb.start();NH(this,[new QH(this.D.i,this.macros)]);yH.prototype.Cf.call(this)};
g.k.qg=function(){yH.prototype.qg.call(this);this.td("adabandoned")};
g.k.uh=function(){yH.prototype.uh.call(this)};
g.k.td=function(a){this.Mb&&this.Mb.stop();yH.prototype.td.call(this,a)};g.w(SH,GG);SH.prototype.Ks=function(){return!0};
SH.prototype.To=function(){return!1};g.w(TH,GG);TH.prototype.Ks=function(){return!0};
TH.prototype.To=function(){return!1};g.w(UH,GG);UH.prototype.Ks=function(){return!0};
UH.prototype.To=function(){return!1};vra.prototype.create=function(a,b){return a instanceof SG?this.I.create(a,b):a instanceof ZG?this.C.create(a,b):a instanceof PH?this.i.create(a,b):a instanceof UH?this.D.create(a,b):a instanceof TH?this.B.create(a,b):a instanceof SH?this.u.create(a,b):null};g.w(VH,yH);g.k=VH.prototype;g.k.qg=function(){yH.prototype.qg.call(this);this.td("adabandoned")};
g.k.Hn=function(){yH.prototype.Hn.call(this);this.ea("adpause",2)};
g.k.In=function(){yH.prototype.In.call(this);this.ea("adplay",1)};
g.k.Cf=function(){yH.prototype.Cf.call(this);this.B.stop();this.D.T(this.J,g.cz("bltplayback"),this.fP);var a=new g.az(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.J.Dd([a],2);this.ea("adplay",1)};
g.k.uh=function(){yH.prototype.uh.call(this);this.td("adended")};
g.k.Xg=function(a){yH.prototype.Xg.call(this,a);this.td("aderror")};
g.k.vr=function(){JG(this.J,!1);var a=this.I.u||{};a.autoplay="1";this.J.cueVideoByPlayerVars(a,2);this.B.start();this.J.playVideo(2);this.J.Na("onAdIntroStateChange",1)};
g.k.td=function(a){this.B.stop();JG(this.J,!0);"adabandoned"!=a&&this.J.Na("onAdComplete");this.J.Na("onAdEnd");this.ea(a);this.J.Na("onAdIntroStateChange",0)};
g.k.fP=function(a){"bltcompletion"==a.getId()&&(this.J.Xe("bltplayback",2),mH(this.i,this.getDuration()))};g.w(xra,LG);g.w(YH,yH);g.k=YH.prototype;
g.k.vr=function(){if(this.B)if(this.J.V().experiments.ob("html5_externally_manage_ad_notify_layout")){var a=wra(this.sj);this.slot=a;for(var b=g.r(this.B.listeners),c=b.next();!c.done;c=b.next())c=c.value,kJ(c.Nm(),a),zJa(c.Nm(),a)}else for(a=g.r(this.B.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.u=wra(b.C.get()),kJ(b.Nm(),b.u),zJa(b.Nm(),b.u);0>=this.X&&(g.Zs(Error("durationMs was specified incorrectly with a value of: "+this.X)),this.uh());this.Cf();this.J.addEventListener("progresssync",this.oa)};
g.k.qg=function(){yH.prototype.qg.call(this);this.td("adabandonedreset")};
g.k.Cf=function(){var a=this.J.V();a.N("web_csi_notification_ad_fix")&&vA("apbs",void 0,"video_to_ad");yH.prototype.Cf.call(this);this.D=a.N("disable_rounding_ad_notify")?this.J.getCurrentTime():Math.floor(this.J.getCurrentTime());this.I=this.D+this.X/1E3;g.ME(a)?this.J.Na("onAdMessageChange",{renderer:this.K.i,startTimeSecs:this.D}):NH(this,[new xra(this.K.i)]);a=(a=this.J.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.cy(),c=this.K.i.videoAdBreakOffsetMsInt64;b&&g.dw("adNotify",{clientScreenNonce:b,
adMediaTimeMs:Math.floor(1E3*this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.B)if(this.Z=!0,this.J.V().experiments.ob("html5_externally_manage_ad_notify_layout"))if(this.slot)for(a=this.slot,b=g.r(this.B.listeners),c=b.next();!c.done;c=b.next()){var d=a;lJ(c.value.Nm(),d)}else at(Error("AdNotify started without a start request"));else for(a=g.r(this.B.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.u?b.i?R("Received AdNotify started event before another one exited"):
(b.i=b.u,lJ(b.Nm(),b.i)):R("Received AdNotify started event without start requested event");g.T(this.J.zb(1),512)&&(a=(a=this.J.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.cy(),c=this.K.i.videoAdBreakOffsetMsInt64,b&&g.dw("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.uh())};
g.k.uh=function(){yH.prototype.uh.call(this);this.td("adended")};
g.k.Xg=function(a){yH.prototype.Xg.call(this,a);this.td("aderror")};
g.k.td=function(a){this.J.removeEventListener("progresssync",this.oa);this.rk();this.ea(a);yra(this)};
g.k.dispose=function(){this.J.removeEventListener("progresssync",this.oa);yra(this);yH.prototype.dispose.call(this)};
g.k.rk=function(){g.ME(this.J.V())?this.J.Na("onAdMessageChange",{renderer:null,startTimeSecs:this.D}):yH.prototype.rk.call(this)};bI.prototype.sendAdsPing=function(a){this.I.send(a,Ira(this),{})};
bI.prototype.yd=function(a){var b=this;if(a){var c=Ira(this);Array.isArray(a)?a.forEach(function(d){return b.u.executeCommand(d,c)}):this.u.executeCommand(a,c)}};cI.prototype.get=function(){return this.value};
g.w(dI,cI);dI.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.w(eI,cI);eI.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.w(fI,cI);fI.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.w(gI,cI);gI.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.w(hI,cI);hI.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.w(iI,cI);iI.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.w(jI,cI);jI.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.w(kI,cI);kI.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.w(lI,cI);lI.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.w(mI,cI);mI.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.w(nI,cI);nI.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.w(oI,cI);oI.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.w(pI,cI);pI.prototype.getType=function(){return"metadata_type_ad_video_url"};
g.w(qI,cI);qI.prototype.getType=function(){return"metadata_type_content_cpn"};
g.w(rI,cI);rI.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.w(sI,cI);sI.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.w(tI,cI);tI.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.w(uI,cI);uI.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.w(vI,cI);vI.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.w(wI,cI);wI.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.w(xI,cI);xI.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.w(yI,cI);yI.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.w(zI,cI);zI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.w(AI,cI);AI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.w(BI,cI);BI.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.w(CI,cI);CI.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.w(DI,cI);DI.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.w(EI,cI);EI.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.w(FI,cI);FI.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.w(GI,cI);GI.prototype.getType=function(){return"metadata_type_cue_point"};
g.w(HI,cI);HI.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.w(II,cI);II.prototype.getType=function(){return"metadata_type_player_vars"};
g.w(JI,cI);JI.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.w(KI,cI);KI.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.w(LI,cI);LI.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.w(MI,cI);MI.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.w(NI,cI);NI.prototype.getType=function(){return"metadata_type_dai"};
g.w(OI,cI);OI.prototype.getType=function(){return"metadata_type_ad_intro"};
g.w(PI,cI);PI.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.w(QI,cI);QI.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.w(RI,cI);RI.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.w(SI,cI);SI.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.w(TI,cI);TI.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.w(UI,cI);UI.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.w(VI,cI);VI.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.w(WI,cI);WI.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.w(XI,cI);XI.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.w(YI,cI);YI.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.w(ZI,cI);ZI.prototype.getType=function(){return"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR"};
g.w($I,cI);$I.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.w(aJ,cI);aJ.prototype.getType=function(){return"metadata_type_survey_overlay"};Ora.prototype.yd=function(a){this.i.yd(a)};g.w(cJ,g.Q);cJ.prototype.getProgressState=function(){return this.B};
cJ.prototype.start=function(){this.C=Date.now();Qra(this,{current:this.i/1E3,duration:this.u/1E3});this.Mb.start()};
cJ.prototype.stop=function(){this.Mb.stop()};g.w(dJ,LG);g.w(eJ,g.Q);eJ.prototype.start=function(){this.B||(this.B=!0,this.u.start(),this.C=Date.now())};
eJ.prototype.stop=function(){this.B&&(this.B=!1,this.u.stop())};
eJ.prototype.Xb=function(){var a=Date.now(),b=a-this.C;this.C=a;this.i+=b;this.i>=this.durationMs?(this.i=this.durationMs,this.u.stop(),this.D(this.i),this.I()):this.D(this.i)};g.w(gJ,yH);g.k=gJ.prototype;g.k.vr=function(){this.Cf()};
g.k.Cf=function(){var a=this,b=this.D.i;if(g.ME(this.J.V()))Sra(this,b),this.Z=Date.now(),this.B&&this.B.start();else if(NH(this,[new dJ(b)]),this.D.i.controlWithFixEnabled){var c=1E3*this.D.u;this.K=new eJ(c,function(d){var e={current:d/1E3,duration:c/1E3};OH(a,d/1E3);a.J.Na("onAdPlaybackProgress",e)},function(){var d={current:c/1E3,
duration:c/1E3};Rra(a);a.J.Na("onAdPlaybackProgress",d)});
g.H(this,this.K);this.K.start()}fJ();yH.prototype.Cf.call(this)};
g.k.getDuration=function(){return this.D.u};
g.k.Hn=function(){yH.prototype.Hn.call(this);this.B&&this.B.stop()};
g.k.In=function(){yH.prototype.In.call(this);this.B&&this.B.start()};
g.k.qg=function(){yH.prototype.qg.call(this);this.td("adabandoned")};
g.k.Op=function(){yH.prototype.Op.call(this);this.td("adended")};
g.k.Xg=function(a){this.J.V().experiments.ob("html5_block_player_errors_while_survey_active")?R("Unexpected Player Error while the Survey is playing."):(yH.prototype.Xg.call(this,a),this.td("aderror"))};
g.k.td=function(a){this.rk();this.ea(a)};
g.k.nf=function(a){switch(a){case "skip-button":this.Op();break;case "survey-submit":this.td("adended")}};
g.k.rk=function(){g.ME(this.J.V())?(this.B&&this.B.stop(),this.J.Na("onAdInfoChange",null)):yH.prototype.rk.call(this)};g.w(hJ,LG);g.w(iJ,yH);iJ.prototype.vr=function(){this.Cf()};
iJ.prototype.Cf=function(){fJ();NH(this,[new hJ(this.B.i,this.macros)]);yH.prototype.Cf.call(this)};
iJ.prototype.qg=function(){yH.prototype.qg.call(this);this.td("adabandoned")};
iJ.prototype.Xg=function(a){yH.prototype.Xg.call(this,a);this.td("aderror")};g.w(jJ,yH);g.k=jJ.prototype;g.k.Cv=function(){return{currentTime:this.J.getCurrentTime(2,!1),duration:this.B.u,isPlaying:Vqa(this.J),isVpaid:!1,isYouTube:!0,volume:this.J.isMuted()?0:this.J.getVolume()/100}};
g.k.vr=function(){if(this.B.X)ura(this),this.td("aderror");else{var a=this.B.i.legacyInfoCardVastExtension,b=this.B.D;a&&b&&this.J.V().S.add(b,{Qu:a});try{var c=this.B.i.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{yl(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.tf("//tpc.googlesyndication.com/sodar/%{path}");g.ky(new g.iw("Load Sodar Error.",d instanceof rf,d.constructor===rf,{Message:e.message,"Escaped injector basename":g.og(c.siub),"BG vm basename":c.bgub}));if(d.constructor===rf)throw e;
}}catch(e){g.jy(e)}JG(this.J,!1);a=cra(this.B);b=this.J.V();a.iv_load_policy=b.isMobile||g.ME(b)||g.YE(b)?3:1;b=this.J.getVideoData(1);b.Zf&&(a.ctrl=b.Zf);b.Ef&&(a.ytr=b.Ef);b.Il&&(a.ytrcc=b.Il);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.Uh&&(a.vss_credentials_token_type=b.Uh),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.ea("adunstarted",-1);this.X?this.I.start():(this.J.cueVideoByPlayerVars(a,2),this.I.start(),this.J.playVideo(2))}};
g.k.Hn=function(){yH.prototype.Hn.call(this);this.ea("adpause",2)};
g.k.In=function(){yH.prototype.In.call(this);this.ea("adplay",1)};
g.k.Cf=function(){yH.prototype.Cf.call(this);this.I.stop();this.Z.T(this.J,g.cz("bltplayback"),this.gP);var a=new g.az(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.J.Dd([a],2);a=pJ(this);this.D.Ka=a;if(this.J.isMuted()){a=this.i;var b=this.J.isMuted();kH(a)||iH(a,b?"mute":"unmute")}this.ea("adplay",1);if(null!==this.K){a=null!==this.D.i.getVideoData(1)?this.D.i.getVideoData(1).clientPlaybackNonce:"";b=Ura(this);for(var c=this.B,d=Tra(this),e=g.r(this.K.listeners),
f=e.next();!f.done;f=e.next()){f=f.value;var h=b,l=c,m=d,n=[],p=l.D,q=l.getVideoUrl();p&&n.push(new oI(p));q&&n.push(new pI(q));(q=(p=l.i)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new rI(q)),(q=q.elementId)&&n.push(new zI(q))):R("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new sI(p));l.i.adNextParams&&n.push(new fI(l.i.adNextParams||""));(p=l.Ha)&&n.push(new gI(p));(p=Ky(f.S.get(),2))?(n.push(new kI({channelId:p.Xi,
channelThumbnailUrl:p.Nh,channelTitle:p.author,videoTitle:p.title})),n.push(new lI(p.isListed))):R("Expected meaningful PlaybackData on ad started.");n.push(new nI(l.B));n.push(new HI(l.u));n.push(new qI(a));n.push(new DI({current:this}));p=l.Va;null!=p.kind&&n.push(new mI(p));(p=l.Sa)&&n.push(new UI(p));void 0!==m&&n.push(new VI(m));f.i?R(f.i.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):Vra(f,h,n,!0,l.i.adLayoutLoggingData)}}this.J.Na("onAdStart",
pJ(this));a=g.r(this.B.i.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.k.gP=function(a){"bltcompletion"==a.getId()&&(this.J.Xe("bltplayback",2),mH(this.i,this.getDuration()),oJ(this,"adended"))};
g.k.uh=function(){yH.prototype.uh.call(this);this.td("adended");for(var a=g.r(this.B.i.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.k.qg=function(){yH.prototype.qg.call(this);this.td("adabandoned")};
g.k.RA=function(){var a=this.i;jH(a)||qH(a,"clickthrough");this.C||(a=this.i,jH(a)||qH(a,"unmuted_clickthrough"))};
g.k.Fw=function(){this.Op()};
g.k.Op=function(){yH.prototype.Op.call(this);this.td("adended")};
g.k.Xg=function(a){yH.prototype.Xg.call(this,a);this.td("aderror")};
g.k.td=function(a){this.I.stop();JG(this.J,!0);"adabandoned"!=a&&this.J.Na("onAdComplete");oJ(this,a);this.J.Na("onAdEnd",pJ(this));this.ea(a)};
g.k.rk=function(){var a=this.J.V();g.ME(a)&&(g.YE(a)||a.N("enable_topsoil_wta_for_halftime")||a.N("enable_topsoil_wta_for_halftime_live_infra")||g.ME(a))?this.J.Na("onAdInfoChange",null):yH.prototype.rk.call(this)};
g.k.DN=function(){this.PS&&this.J.playVideo()};
g.k.PS=function(){return 2==this.J.getPlayerState(2)};
g.k.ZJ=function(a,b){if(this.B.X)return ura(this),this.td("aderror"),"";if(!Number.isFinite(a))return g.jy(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.jy(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=cra(this.B);d=this.J.Lr(d,2,c,a,b);a+c>b&&this.J.Pt(d,b-a);return d};
g.k.dispose=function(){Vqa(this.J)&&!this.X&&this.J.stopVideo(2);oJ(this,"adabandoned");yH.prototype.dispose.call(this)};qJ.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={Wu:null,BL:-Infinity},b=this.i[b]=c);c=a.startSecs+a.i/1E3;if(!(c<b.BL))if(b.BL=c,b.Wu){if(c<b.Wu.end){a:{c=b.Wu;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.durationSecs;a=a<c.start?null:c.end<=a?null:a}null!==a&&(b.Wu.end=a,this.u.pM(a))}}else if(a=
Yra(a,this.B))c=a.IS,b.Wu=a.tR,this.u.BF(c)};
qJ.prototype.updateTime=function(){};tJ.prototype.Ff=function(a){var b=this.i;g.ih(function(){return b.Ff(a,1)})};wJ.prototype.Or=function(a,b,c,d,e){var f=this;fsa(this,a,b,d,e,function(){gsa(f);f.C=!b&&0===c})};
wJ.prototype.reset=function(){return new wJ(this.J)};var U2={},V2=(U2.BUFFERING="buffering-mode",U2.CUED="cued-mode",U2.ENDED="ended-mode",U2.PAUSED="paused-mode",U2.PLAYING="playing-mode",U2.SEEKING="seeking-mode",U2.UNSTARTED="unstarted-mode",U2);var ePa,W2,msa;
ePa={IY:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",iZ:"AUTHENTICATION_MALFORMED",jZ:"AUTHENTICATION_MISSING",pZ:"BAD_REQUEST",AZ:"CAST_SESSION_DEVICE_MISMATCHED",BZ:"CAST_SESSION_VIDEO_MISMATCHED",CZ:"CAST_TOKEN_EXPIRED",DZ:"CAST_TOKEN_FAILED",EZ:"CAST_TOKEN_MALFORMED",FZ:"CGI_PARAMS_MALFORMED",GZ:"CGI_PARAMS_MISSING",N1:"DEVICE_FALLBACK",s2:"GENERIC_WITH_LINK_AND_CPN",t2:"ERROR_HDCP",u2:"LICENSE",w2:"VIDEO_UNAVAILABLE",J2:"FORMAT_UNAVAILABLE",X2:"GEO_FAILURE",t3:"HTML5_AUDIO_RENDERER_ERROR",
u3:"GENERIC_WITHOUT_LINK",v3:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",w3:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",x3:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",I3:"INVALID_DRM_MESSAGE",n9:"PURCHASE_NOT_FOUND",o9:"PURCHASE_REFUNDED",z9:"RENTAL_EXPIRED",H9:"RETRYABLE_ERROR",V9:"SERVER_ERROR",M$:"STOPPED_BY_ANOTHER_PLAYBACK",Q$:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",R$:"STREAMING_NOT_ALLOWED",S$:"STREAM_LICENSE_NOT_FOUND",eaa:"TOO_MANY_REQUESTS",faa:"TOO_MANY_REQUESTS_WITH_LINK",haa:"TOO_MANY_STREAMS_PER_ENTITLEMENT",
iaa:"TOO_MANY_STREAMS_PER_USER",Yaa:"UNSUPPORTED_DEVICE",mba:"VIDEO_FORBIDDEN",pba:"VIDEO_NOT_FOUND"};W2={};
g.oN=(W2.ALREADY_PINNED_ON_A_DEVICE="\u0412\u044b \u0443\u0436\u0435 \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u043e\u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0435\u043c. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u0437\u0434\u0435\u0441\u044c, \u043e\u0442\u043a\u0440\u0435\u043f\u0438\u0442\u0435 \u0435\u0433\u043e \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430.",W2.DEVICE_FALLBACK=
"\u0412\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.",W2.GENERIC_WITH_LINK_AND_CPN="\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435. \u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f: $CPN. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK",
W2.LICENSE="\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043e \u0438\u0437-\u0437\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439.",W2.VIDEO_UNAVAILABLE="\u041e\u0448\u0438\u0431\u043a\u0430",W2.FORMAT_UNAVAILABLE="\u042d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0432 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
W2.GEO_FAILURE="\u042d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0432 \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0435.",W2.HTML5_AUDIO_RENDERER_ERROR="\u041e\u0448\u0438\u0431\u043a\u0430 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0430\u0443\u0434\u0438\u043e. \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440.",
W2.GENERIC_WITHOUT_LINK="\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",W2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="\u042d\u0442\u043e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0438\u0434\u0435\u043e \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f",W2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="\u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0430\u0448 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0435\u0442 \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432\u0438\u0434\u0435\u043e\u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432. $BEGIN_LINK\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0447\u0430\u0441\u0442\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043e \u0432\u0438\u0434\u0435\u043e HTML5.$END_LINK",
W2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043e \u0432 \u044d\u0442\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043d\u0435\u043b\u044c\u0437\u044f. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435\u2026$END_LINK",W2.INVALID_DRM_MESSAGE="\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b DRM.",
W2.PURCHASE_NOT_FOUND="\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u044d\u0442\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e.",W2.PURCHASE_REFUNDED="\u041f\u043e \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u043e\u043a\u0443\u043f\u043a\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0441\u0440\u0435\u0434\u0441\u0442\u0432.",W2.RENTAL_EXPIRED=
"\u0412\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u043a\u0430\u0442\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c.",W2.CAST_SESSION_DEVICE_MISMATCHED="\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u0441\u0435\u0430\u043d\u0441\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443.",W2.CAST_SESSION_VIDEO_MISMATCHED="\u0412\u0438\u0434\u0435\u043e \u0432 \u0441\u0435\u0430\u043d\u0441\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443.",
W2.CAST_TOKEN_FAILED="\u0421\u0435\u0430\u043d\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",W2.CAST_TOKEN_EXPIRED="\u0412\u0440\u0435\u043c\u044f \u0441\u0435\u0430\u043d\u0441\u0430 \u0438\u0441\u0442\u0435\u043a\u043b\u043e. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443.",
W2.CAST_TOKEN_MALFORMED="\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0441\u0435\u0430\u043d\u0441. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",W2.SERVER_ERROR="\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
W2.STOPPED_BY_ANOTHER_PLAYBACK="\u0412\u0438\u0434\u0435\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0430\u0448\u0435\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440.",
W2.STREAM_LICENSE_NOT_FOUND="\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u0432\u0430\u043d\u043e. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443.",W2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="\u0417\u0430 \u0441\u0443\u0442\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432/IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432.",
W2.STREAMING_NOT_ALLOWED="\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0438\u0434\u0435\u043e \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043e \u043a \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443.",W2.RETRYABLE_ERROR="\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
W2.TOO_MANY_REQUESTS="\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e, \u0432\u043e\u0439\u0434\u0438\u0442\u0435 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442.",W2.TOO_MANY_REQUESTS_WITH_LINK="\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u043d\u0430 YouTube, \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043f\u043e $BEGIN_LINK\u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435$END_LINK.",
W2.TOO_MANY_STREAMS_PER_USER="\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0445\u0441\u044f \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0443.",
W2.TOO_MANY_STREAMS_PER_ENTITLEMENT="\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e.",W2.UNSUPPORTED_DEVICE=
"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c.",W2.VIDEO_FORBIDDEN="\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0438\u0434\u0435\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d.",W2.VIDEO_NOT_FOUND="\u041d\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u0432\u0438\u0434\u0435\u043e.",
W2);
msa={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.w(yJ,g.E);g.k=yJ.prototype;g.k.Nx=function(){return this.u};
g.k.Jr=function(a){var b="";a&&(psa(this,a),b=a.i);if(!this.Bf()||b)b&&this.Bf()!==b&&this.Rx(b),fPa||a&&a.u||this.load(),this.I||(this.addEventListener("volumechange",this.EJ),this.I=!0)};
g.k.Ip=function(){var a=this.Me();a=window.MediaSource?new qD(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new qD(new window.WebKitMediaSource,void 0,!1):new qD(void 0,a,!1);this.Jr(a.hw);return a};
g.k.playVideo=function(){var a=this;this.Nk()&&this.seekTo(0);!this.Bf()&&this.u&&(g.Zs(Error("playVideo without src")),this.Rx(this.u.i),this.u.u||this.load());var b=this.play();!b&&gPa&&AN&&7<=(EG||0)&&g.ev(this,"playing",function(){g.Qt(function(){osa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.wh()&&(hPa&&AN&&4>EG&&(a=Math.max(.1,a)),this.Qx(a))};
g.k.stopVideo=function(){this.Bf()&&(iPa&&Au&&0<this.getCurrentTime()&&this.seekTo(0),this.PA(),this.load(),psa(this,null))};
g.k.As=function(){var a=this.Tf();return 0<hD(a)&&this.getDuration()?gD(a,this.getCurrentTime()):0};
g.k.Gp=function(){var a=this.getDuration();return Infinity===a?1:a?this.As()/a:0};
g.k.Kb=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:dD(this.Kp(),",",3),vbu:dD(this.Tf()),vpa:""+ +this.il(),vsk:""+ +this.xu(),ven:""+ +this.Nk(),vpr:""+this.getPlaybackRate(),vrs:""+this.wh(),vns:""+this.jz(),vec:""+this.hj(),vemsg:this.me(),vvol:""+this.getVolume(),vdom:""+ +this.BE(),vsrc:""+ +!!this.Bf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.B.Qa(a,b,!1,this);this.DD(a)};
g.k.removeEventListener=function(a,b){this.B.pc(a,b,!1,this)};
g.k.dispatchEvent=function(a){return this.B.dispatchEvent(a)};
g.k.BD=function(){this.D=!1};
g.k.zD=function(){this.D=!0;this.Ct(!0)};
g.k.EJ=function(){this.D&&!this.iz()&&this.Ct(!0)};
g.k.xa=function(){this.I&&this.removeEventListener("volumechange",this.EJ);g.E.prototype.xa.call(this)};
var fPa=!1,iPa=!0,gPa=!0,hPa=!0;g.k=g.CJ.prototype;g.k.getData=function(){return this.stateData};
g.k.Ec=function(){return g.T(this,8)&&!g.T(this,512)&&!g.T(this,64)&&!g.T(this,2)};
g.k.isCued=function(){return g.T(this,64)&&!g.T(this,8)&&!g.T(this,4)};
g.k.isError=function(){return g.T(this,128)};
g.k.isSuspended=function(){return g.T(this,512)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};g.w(MJ,g.Q);g.k=MJ.prototype;g.k.Rp=function(){var a=this.u;return a.u instanceof SG||a.u instanceof ZG||a.u instanceof TG};
g.k.RB=function(){return this.u.u.To()};
g.k.zH=function(){return this.u.i};
g.k.SB=function(){return"AD_PLACEMENT_KIND_START"==this.u.i.i};
g.k.BH=function(){return $G(this.u)};
g.k.DK=function(a){if(!Qz(a)){this.X&&(this.Aa=this.J.isAtLiveHead(),this.va=Math.ceil(g.Sa()/1E3));var b=new tJ(this.Nf);a=$ra(a);b.Ff(a)}this.CH()};
g.k.mL=function(){return!0};
g.k.Qn=function(){return this.K instanceof ZG};
g.k.Zv=function(){return this.K instanceof SG};
g.k.CH=function(){var a=this.Nf;this.mL()&&(a.u&&PJ(a,!1),a.u=this,this.Rp()&&Wta(a));jsa(this.D);this.bN()};
g.k.bN=function(){this.K?this.yu(this.K):QJ(this)};
g.k.onAdEnd=function(a,b){b=void 0===b?!1:b;this.Ki(0);QJ(this,b)};
g.k.cM=function(){this.onAdEnd()};
g.k.sT=function(){iH(this.i.i,"active_view_measurable")};
g.k.vT=function(){var a=this.i.i;jH(a)||tH(a)||iH(a,"active_view_fully_viewable_audible_half_duration")};
g.k.yT=function(){};
g.k.zT=function(){};
g.k.AT=function(){};
g.k.BT=function(){};
g.k.ET=function(){var a=this.i.i;jH(a)||tH(a)||iH(a,"active_view_viewable")};
g.k.tT=function(){var a=this.i.i;jH(a)||tH(a)||iH(a,"audio_audible")};
g.k.uT=function(){var a=this.i.i;jH(a)||tH(a)||iH(a,"audio_measurable")};
g.k.nK=function(){return this.Zv()?[this.lz()]:[]};
g.k.Nc=function(a){if(null!==this.i){this.oa||(a=new g.vH(a.state,new g.CJ),this.oa=!0);var b=a.state;if(g.xH(a,2))this.i.uh();else{var c=a;(this.J.V().experiments.ob("html5_bulleit_handle_gained_playing_state")?c.state.Ec()&&!c.ao.Ec():c.state.Ec())?(lsa(this.D),this.i.In()):b.isError()?this.i.Xg(b.getData().errorCode):g.xH(a,4)&&(this.Z||this.i.Hn())}if(null!==this.i){if(g.xH(a,16)&&(b=this.i.i,!(jH(b)||.5>b.i.getCurrentTime(2,!1)&&!b.i.V().N("html5_dai_pseudogapless_seek_killswitch")))){c=b.ad;
if(c.Wv()){var d=b.B.J.V().N("html5_dai_enable_active_view_creating_completed_adblock");Rq(c.K,d)}b.ad.I.seek=!0}0>wH(a,4)&&!(0>wH(a,2))&&(b=this.i,c=b.i,jH(c)||uH(c,"resume"),b.C||(b=b.i,jH(b)||uH(b,"unmuted_resume")));!this.J.V().experiments.ob("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.xH(a,512)&&!g.KJ(a.state)&&xJ(this.D)}}};
g.k.onVideoDataChange=function(){return this.daiEnabled?ssa(this):!1};
g.k.resume=function(){this.i&&this.i.DN()};
g.k.jn=function(){this.i&&this.i.td("adended")};
g.k.yk=function(){this.jn()};
g.k.Ki=function(a){this.Nf.Ki(a)};
g.k.hP=function(a){this.Nf.i.Na("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.i.nf(a)};
g.k.lK=function(){return 0};
g.k.PD=function(){return 1};
g.k.UG=function(a){this.daiEnabled&&this.u.I&&this.u.i.start<=a&&a<OJ(this)&&this.J.pp(a,this.u.i.end)};
g.k.yu=function(a){g.ee(this.i);this.i=a=this.Zo.create(a,dH(jra(this.u)),this.u.i.i);a.subscribe("adabandoned",g.Ra(this.onAdEnd,!0),this);a.subscribe("adabandonedreset",g.Ra(this.onAdEnd,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.sT,this);a.subscribe("adended",this.onAdEnd,this);a.subscribe("aderror",this.cM,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.vT,this);a.subscribe("adoverlaymeasurableimpression",this.yT,this);a.subscribe("adoverlayunviewableimpression",
this.zT,this);a.subscribe("adoverlayviewableendofsessionimpression",this.AT,this);a.subscribe("adoverlayviewableimmediateimpression",this.BT,this);a.subscribe("adpause",this.pE,this);a.subscribe("adplay",this.pE,this);a.subscribe("adunstarted",this.pE,this);a.subscribe("onAdUxUpdate",this.hP,this);a.subscribe("adviewableimpression",this.ET,this);a.subscribe("adaudioaudible",this.tT,this);a.subscribe("adaudiomeasurable",this.uT,this);a.Aa?a.Xg("ui_unstable"):a.vr();tsa(this,!1)};
g.k.pE=function(a){this.Ki(a)};
g.k.lz=function(){return this.K};
g.k.isLiveStream=function(){return this.X};
g.k.reset=function(){return new MJ(this.Nf,this.J,this.D.reset(),this.u,this.Ll,this.Xr,this.Zo,this.daiEnabled)};
g.k.xa=function(){g.ee(this.i);this.i=null;g.Q.prototype.xa.call(this)};zsa.prototype.create=function(a){return(a.u instanceof TG?this.B:""===a.D?this.i:this.u)(a)};RJ.prototype.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.cy(void 0===c?0:c))?(uka(this.client,c,g.Zx(a),b),b=!0):b=!1:b=!1;return b};UJ.prototype.handleResponse=function(a,b){var c,d,e;b=(null===(d=null===(c=b.Zl.context)||void 0===c?void 0:c.request)||void 0===d?void 0:d.consistencyTokenJars)||[];(a=null===(e=a.responseContext)||void 0===e?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
UJ.prototype.replace=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())delete this.i[c.value.encryptedTokenJarContents];Gsa(this,b)};var X2;VJ.getInstance=function(){X2=g.Ha("yt.clientLocationService.instance");X2||(X2=new VJ,g.Ga("yt.clientLocationService.instance",X2,void 0));return X2};
VJ.prototype.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.i?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=1E7*this.i.coords.latitude,a.client.locationInfo.longitudeE7=1E7*this.i.coords.longitude,a.client.locationInfo.horizontalAccuracyMeters=this.i.coords.accuracy,a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)};
VJ.prototype.handleResponse=function(a){var b;a=null===(b=a.responseContext)||void 0===b?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.i=void 0,"TVHTML5"===g.N("INNERTUBE_CLIENT_NAME")?(this.localStorage=Hsa(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.iu("YT_CL",JSON.stringify({Tca:a}),15552E3,void 0,!0))};
VJ.prototype.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition)||!g.O("web_enable_browser_geolocation_api")&&!g.O("enable_handoff_location_2fa_on_mweb"))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;g.O("enable_handoff_location_2fa_on_mweb")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.i=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
VJ.prototype.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null===a||void 0===a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null===a||void 0===a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null===a||void 0===a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};XJ.prototype.bz=function(a,b){a={};var c=di([]);c&&(a.Authorization=c,c=b=null===b||void 0===b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.N("SESSION_INDEX",0)),c=isNaN(c)?0:c),a["X-Goog-AuthUser"]=c,"INNERTUBE_HOST_OVERRIDE"in Ss||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in Ss&&(a["X-Goog-PageId"]=g.N("DELEGATED_SESSION_ID")));return a};var ZJ;g.w(YJ,XJ);YJ.prototype.bz=function(a,b){a=XJ.prototype.bz.call(this,a,b);return Object.assign(Object.assign({},a),this.Aq)};var Vsa=/[&\?]action_proxy=1/,Usa=/[&\?]token=([\w-]*)/,Wsa=/[&\?]video_id=([\w-]*)/,Xsa=/[&\?]index=([\d-]*)/,Ysa=/[&\?]m_pos_ms=([\d-]*)/,ata=/[&\?]vvt=([\w-]*)/,Psa="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),Zsa="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),Rsa={android:"ANDROID",
"android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},Ssa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},$sa={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};aK.prototype.Ss=function(a){this.player.Dp().tick(a)};
aK.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return cK(this,a,b);var d=1===this.i;d&&this.Ss("a_bid_s");var e=Ksa();if(null!==e)return d&&this.Ss("a_bid_f"),cK(this,a,b,e);e=Lsa();d&&wh(e,function(){c.Ss("a_bid_f")});
return e.then(function(f){return cK(c,a,b,f)})};
aK.prototype.reset=function(){this.u=this.i=1};g.w(dK,g.Q);g.k=dK.prototype;g.k.zH=function(){return this.i.i};
g.k.SB=function(){return"AD_PLACEMENT_KIND_START"==this.i.i.i};
g.k.BH=function(){return $G(this.i)};
g.k.Rp=function(){return!1};
g.k.RB=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.DK=function(a){var b=this;this.B.V().N("html5_pacf_enable_non_dai_live_video_ads")&&R("Fetching logic is still in use while live midroll is on PACF");if(1!==this.i.B&&2!==this.i.B){var c=[];this.SB()||(c=$ra(a));this.i.B=1;wh(this.D.fetch(this.i.D,{Vu:this.i.C||void 0,Fd:this.i.i}).then(function(d){if(!b.isDisposed()){var e=c;b.B.isFullscreen();d=cta(b,d);var f=b.C;f.u&&d.isEmpty&&vJ("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.i);d.nL||(b.i.B=2,(new tJ(b.u)).Ff(e),d.isEmpty||Hka(b.I,d.Cl))}},function(){(new tJ(b.u)).Ff(c);
var d=b.C;d.u&&vJ("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.i)}),function(){2!==b.i.B&&(b.i.B=0);
b.SB()&&qK(b.u)})}};
g.k.CH=function(){};
g.k.UG=function(){};var fta=Object.freeze([PH,SH,ZG,UH,SG]);g.w(eK,MJ);g.k=eK.prototype;g.k.nK=function(){for(var a=this.B.i,b=g.r(a),c=b.next();!c.done;c=b.next());return a};
g.k.mL=function(){return(0>=this.C?this.B.i:this.B.i.slice(this.C)).some(function(a){return a.Ks()})};
g.k.Qn=function(){return this.I instanceof ZG||this.I instanceof UH};
g.k.Zv=function(){return this.I instanceof SG||this.I instanceof SH};
g.k.bN=function(){this.daiEnabled?HG(this.J)&&ssa(this):eta(this)};
g.k.yu=function(a){var b=dta(a);this.I&&b&&this.S!==b&&(b?Wta(this.Nf):Yta(this.Nf),this.S=b);this.I=a;this.daiEnabled&&(this.C=this.B.i.findIndex(function(c){return c===a}));
MJ.prototype.yu.call(this,a)};
g.k.yk=function(){this.C=this.B.i.length;this.i&&this.i.td("adended");QJ(this)};
g.k.jn=function(){this.onAdEnd()};
g.k.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Ki(0),a?QJ(this,b):eta(this))};
g.k.cM=function(){if(1==this.B.u)this.I instanceof TH&&at(Error("AdNotify error with FailureMode.TERMINATING")),QJ(this);else this.onAdEnd()};
g.k.lz=function(){var a=0>=this.C?this.B.i:this.B.i.slice(this.C);return 0<a.length?a[0]:null};
g.k.Rp=function(){return this.S};
g.k.RB=function(){return this.B.i.every(function(a){return a.To()})};
g.k.reset=function(){return new eK(this.Nf,this.J,this.D.reset(),this.u,this.Ll,this.Xr,this.Zo,this.daiEnabled)};
g.k.lK=function(){return this.C};
g.k.PD=function(){return this.B.i.length};gta.prototype.jK=function(){return this.i};g.w(hta,TG);g.w(jta,TG);kta.prototype.create=function(a,b){function c(l){return new SG(l,d.B,b,d.i,d.u)}
var d=this,e=a.instreamVideoAdRenderer,f=a.instreamSurveyAdRenderer,h=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new ZG(f):null!=h?new jta(h,c,this.i):null!=a?new hta(a,c):null};lta.prototype.create=function(a,b,c,d){d=void 0===d?null:d;var e=[];c=void 0===c?0:c;if(d){d=g.r(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var h=b,l=new Nka(h.B,h.u,h.daiEnabled,h.C),m=h.le;m&&(l.le=new Ty(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.i));h.i&&(l.i=h.i);l.visible=h.visible;h=l;h.le=f;e.push(mta(this,a[0],c,h));c++}}else for(a=g.r(a),d=a.next();!d.done;d=a.next())e.push(mta(this,d.value,c,b)),c++;return e};g.w(fK,g.E);fK.prototype.addEventListener=function(a,b){this.i=b};
fK.prototype.removeEventListener=function(){this.i=null};
g.w(gK,g.E);gK.prototype.addEventListener=function(a,b,c){this.i.addEventListener(a,b,c)};
gK.prototype.removeEventListener=function(a,b){this.i.removeEventListener(a,b)};g.w(pta,g.E);var hK=null,rta=null,iK=null,jK=null,kK=null;g.Ga("yt.www.ads.eventcache.getLastCompanionData",function(){return hK},void 0);
g.Ga("yt.www.ads.eventcache.getLastPlaShelfData",function(){return rta},void 0);
g.Ga("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return iK},void 0);
g.Ga("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return jK},void 0);
g.Ga("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return kK},void 0);var Dta={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.w(nK,g.E);nK.prototype.xa=function(){this.Nd.clear();g.E.prototype.xa.call(this)};
nK.prototype.yd=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a=g.r(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
nK.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&Eta(this,"loggingUrls",a.loggingUrls,b,c);a=g.r(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.r(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?Ata(this,e):"confirmDialogEndpoint"===d?Bta(this,e):Dta.hasOwnProperty(d)||Eta(this,d,e,b,c)}};g.w(Jta,g.E);g.w(pK,g.Q);g.k=pK.prototype;g.k.rE=function(){return!Rta(this,Uta(this))};
g.k.Yy=function(){return this.Ka};
g.k.xa=function(){this.va=!0;g.Mx(this.C);this.I&&this.i.getVideoData(1).unsubscribe("cuepointupdated",this.oM,this);if(IG(this.i)){var a=Mta(this.i);a.removeEventListener("updateKevlarOrC3Companion",qta);a.removeEventListener("onPlaShelfInfoCardsReady",sta);a.removeEventListener("updateEngagementPanelAction",tta);a.removeEventListener("changeEngagementPanelVisibility",uta);a.removeEventListener("scrollToEngagementPanel",vta);window.removeEventListener("yt-navigate-start",wta);kK=jK=iK=hK=null}a=
g.r(this.B.values());for(var b=a.next();!b.done;b=a.next())Xta(this,b.value);PJ(this,!1);this.bp.clear();this.Z=[];this.S.clear();g.ee(this.oa);this.oa=new Map;g.ee(this.K);this.K=new Map;this.B.clear();g.Q.prototype.xa.call(this)};
g.k.qF=function(a){if(a instanceof ez&&!a.B&&(!dla(a)||a.contains(1E3*this.i.getCurrentTime(1)||0)))if(g.T(this.i.zb(1),32))this.S.add(a);else{var b=this.B.get(a);b&&((this.i.V().experiments.ob("enable_eviction_protection_for_bulleit")?this.u?this.u.RB():1:1)?b.DK(a):a.deactivate())}};
g.k.lU=function(a){a instanceof ez&&(a.B&&(a.B=!1),this.S.delete(a))};
g.k.oM=function(a){csa(this.Ha,a);null==this.I?g.Zs(Error("Dynamically inserted ad was requested, but no cuepoint AdPlacementRenderer was present to fulfill the request.")):0!=(this.i.getCurrentTime(1)||0)&&(a=a.filter(function(b){return"start"==b.event}),rK(this,[this.I],a))};
g.k.BF=function(a){rK(this,[this.I],[a])};
g.k.pM=function(a){var b=1E3*a;this.u&&this.u.UG(b);for(var c=g.r(this.B.values()),d=c.next();!d.done;d=c.next())d.value.UG(b);g.ic(this.Sa.i,1E3*a)};
g.k.Pk=function(a){switch(a){case "control_play":this.u&&(a=this.u,a.Zv()?a.J.Jc().playVideo():a.Qn()&&a.i.In());break;case "control_pause":this.u&&(a=this.u,a.Zv()?a.J.Jc().pauseVideo():a.Qn()&&a.i.Hn())}};
g.k.jP=function(a){this.u&&this.u.Nc(a)};
g.k.PT=function(a){0>wH(a,16)&&(this.S.forEach(this.qF,this),this.S.clear())};
g.k.oW=function(){if(this.u)this.u.onVideoDataChange()};
g.k.rW=function(){if(HG(this.i)&&this.u){var a=this.i.getCurrentTime(2,!1),b=this.u;b.i&&OH(b.i,a)}};
g.k.qT=function(){this.Wa=!0;if(this.u){var a=this.u;a.i&&a.i.qg()}};
g.k.CT=function(a){if(this.u)this.u.onAdUxClicked(a)};
g.k.sW=function(){if(2==this.i.getPresentingPlayerType()&&this.u){var a=this.u.i,b=a.i,c=a.J.isMuted();kH(b)||iH(b,c?"mute":"unmute");a.C||(b=a.J.isMuted(),iH(a.i,b?"unmuted_mute":"unmuted_unmute"))}};
g.k.uU=function(a){if(this.u){var b=this.u.i,c=b.i;jH(c)||qH(c,a?"fullscreen":"end_fullscreen");b.C||(b=b.i,jH(b)||qH(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}};
g.k.Ff=function(a,b){this.i.Ff(a,b);a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.bp.delete(b),this.B.delete(b)};
g.k.OX=function(){for(var a=[],b=g.r(this.bp),c=b.next();!c.done;c=b.next())c=c.value,Qz(c)||a.push(c);b=this.i.app;1!==b.getPresentingPlayerType()||YX(b,"cuerangemarkersupdated",a)};
g.k.Ki=function(a){this.i.Ki(a);switch(a){case 1:this.Cz=1;break;case 0:this.Cz=0}};
g.k.vG=function(){var a=this.i.getVideoData(2);return a?a.isListed&&!this.X:!1};
g.k.jn=function(){this.u&&this.u.Rp()&&this.u.jn()};
g.k.yk=function(){this.u&&this.u.Rp()&&this.u.yk()};
g.k.Py=function(){};
g.k.Ay=function(){};
g.k.Xb=function(a){if(this.u){var b=this.u;b.i&&OH(b.i,a)}};
g.k.Qn=function(){return HG(this.i)&&!!this.u&&this.u.Qn()};
g.k.executeCommand=function(a,b,c){var d=this.jb,e=d.executeCommand;if(c=void 0===c?null:c){var f=!!this.u&&this.u||null;f?(f=f.i,c=f.ad.Wv()?nH(f.i,c):{}):c={}}else c={};e.call(d,a,b,c)};
g.k.jK=function(){return this.Ba};
g.k.kK=function(){return this.La};g.w(sK,g.E);sK.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.i.appendChild(a.i)};
g.w(tK,sK);g.w(aua,g.E);var cua=1;g.w(g.vK,g.E);g.k=g.vK.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.G;var c=a.L,d=a.Ga;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.bF&&(a.W||(a.W={}),a.W.focusable="false")}else e=g.Ng(a.G);if(c){if(c=wK(this,e,"class",c))xK(this,e,"class",c),this.kb[c]=e}else if(d){c=g.r(d);for(var f=c.next();!f.done;f=c.next())this.kb[f.value]=e;xK(this,e,"class",d.join(" "))}d=a.ya;c=a.U;if(d)b=wK(this,e,"child",d),void 0!==b&&e.appendChild(g.Og(b));else if(c)for(d=0,c=g.r(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=wK(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.Pb&&(h=uK(),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.W)for(b=e,d=g.r(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],xK(this,b,c,"string"===typeof f?
wK(this,b,c,f):f);return e};
g.k.Fa=function(a){return this.kb[a]};
g.k.Ea=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.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.Ra(c,a[c])};
g.k.Ra=function(a,b){(a=this.bd["{{"+a+"}}"])&&xK(this,a[0],a[1],b)};
g.k.xa=function(){this.kb={};this.bd={};this.detach();g.E.prototype.xa.call(this)};g.w(g.X,g.vK);g.k=g.X.prototype;g.k.md=function(a,b){this.Ra(b||"content",a)};
g.k.show=function(){this.yb||(g.fm(this.element,"display",""),this.yb=!0)};
g.k.hide=function(){this.yb&&(g.fm(this.element,"display","none"),this.yb=!1)};
g.k.Yb=function(a){this.oa=a};
g.k.Qa=function(a,b,c){return this.T(this.element,a,b,c)};
g.k.T=function(a,b,c,d){c=(0,g.D)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.pc=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;Wg(a);a.focus()};
g.k.xa=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.vK.prototype.xa.call(this)};g.w(g.zK,g.X);g.zK.prototype.subscribe=function(a,b,c){return this.Sa.subscribe(a,b,c)};
g.zK.prototype.unsubscribe=function(a,b,c){return this.Sa.unsubscribe(a,b,c)};
g.zK.prototype.cg=function(a){return this.Sa.cg(a)};
g.zK.prototype.ea=function(a){return this.Sa.ea.apply(this.Sa,[a].concat(g.la(g.Ba.apply(1,arguments))))};var jPa=new WeakSet;g.w(AK,g.zK);g.k=AK.prototype;g.k.bind=function(a){if(!this.Va&&a.renderer){var b=Object.assign({},$ta(this.api,this.Xa),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.k.init=function(a,b,c){this.Va=a;this.element.setAttribute("id",this.Va);this.jb&&g.L(this.element,this.jb);this.X=b&&b.adRendererCommands;this.macros=c;this.K=b.trackingParams||null;null!=this.K&&this.Og(this.element,this.K)};
g.k.clear=function(){};
g.k.hide=function(){g.zK.prototype.hide.call(this);null!=this.K&&this.gb(this.element,!1)};
g.k.show=function(){g.zK.prototype.show.call(this);if(!this.rb){this.rb=!0;var a=this.X&&this.X.impressionCommand;a&&eua(this,a,null)}null!=this.K&&this.gb(this.element,!0)};
g.k.onClick=function(a){if(this.K&&!jPa.has(a)){var b=this.element;this.api.Sv(b)&&this.yb&&this.api.Cb(b,this.i);jPa.add(a)}if(a=this.X&&this.X.clickCommand)a=this.iN(a),eua(this,a,this.oK())};
g.k.iN=function(a){return a};
g.k.oK=function(){return null};
g.k.mP=function(a){var b=this.va;b.K=!0;b.u=a.touches.length;b.i.isActive()&&(b.i.stop(),b.D=!0);a=a.touches;b.I=bua(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.S=Infinity,b.X=Infinity):(b.S=c.clientX,b.X=c.clientY);for(c=b.B.length=0;c<a.length;c++){var d=a.item(c);b.B.push(d.identifier)}};
g.k.lP=function(a){var b=this.va;a=a.changedTouches.item(0);if(Hb()&&!(0<=g.xb(Jb(),8))||a&&Math.pow(a.clientX-b.S,2)+Math.pow(a.clientY-b.X,2)>Math.pow(5,2))b.C=!0};
g.k.kP=function(a){if(this.va){var b=this.va,c=a.changedTouches;c&&b.K&&1==b.u&&!b.C&&!b.D&&!b.I&&bua(b,c)&&(b.Z=a,b.i.start());b.u=a.touches.length;0===b.u&&(b.K=!1,b.C=!1,b.B.length=0);b.D=!1}};
g.k.Og=function(a,b){this.api.Og(a,this);this.api.Cm(a,b)};
g.k.gb=function(a,b){this.api.Sv(a)&&this.api.gb(a,b,this.i)};
g.k.xa=function(){this.clear(null);this.pc(this.bb);for(var a=g.r(this.Aa),b=a.next();!b.done;b=a.next())this.pc(b.value);g.zK.prototype.xa.call(this)};g.w(OK,AK);
OK.prototype.init=function(a,b,c){AK.prototype.init.call(this,a,b,c);this.u=b;if(null==b.text&&null==b.icon)at(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.L(this.element,a);null!=b.text&&(a=g.Sz(b.text),g.jb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.zK({G:"span",L:"ytp-ad-button-text",ya:a}),g.H(this,this.C),this.C.Ea(this.element)));null!=b.icon&&(b=NK(b.icon),null!=
b&&(this.B=new g.zK({G:"span",L:"ytp-ad-button-icon",U:[b]}),g.H(this,this.B)),this.D?g.Qg(this.element,this.B.element,0):this.B.Ea(this.element))}};
OK.prototype.clear=function(){this.hide()};
OK.prototype.onClick=function(a){var b=this;AK.prototype.onClick.call(this,a);vua(this).forEach(function(c){return b.Xa.executeCommand(c,b.macros)});
this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(PK,g.E);PK.prototype.xa=function(){this.u&&g.Xu(this.u);this.i.clear();QK=null;g.E.prototype.xa.call(this)};
PK.prototype.register=function(a,b){b&&this.i.set(a,b)};
var QK=null;g.w(SK,AK);
SK.prototype.init=function(a,b,c){AK.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.Zs(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new OK(this.api,this.Xa,this.layoutId,this.i),g.H(this,this.button),this.button.init(KG("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.Sz(a)),this.button.Ea(this.element),this.I&&!g.ir(this.button.element,"ytp-ad-clickable")&&g.L(this.button.element,"ytp-ad-clickable"),
a&&(this.B=new g.zK({G:"div",L:"ytp-ad-hover-text-container"}),this.D&&(b=new g.zK({G:"div",L:"ytp-ad-hover-text-callout"}),b.Ea(this.B.element),g.H(this,b)),g.H(this,this.B),this.B.Ea(this.element),b=RK(a),g.Qg(this.B.element,b,0)),this.show())};
SK.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();AK.prototype.hide.call(this)};
SK.prototype.show=function(){this.button&&this.button.show();AK.prototype.show.call(this)};g.w(UK,AK);UK.prototype.init=function(a,b,c){AK.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&TK(a)||"";g.jb(b)?(this.api.V().N("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&at(Error("Found AdImage without valid image URL")):(this.u?g.fm(this.element,"backgroundImage","url("+b+")"):Eg(this.element,{src:b}),Eg(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
UK.prototype.clear=function(){this.hide()};g.w(VK,AK);g.k=VK.prototype;g.k.hide=function(){AK.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.C=document.activeElement;AK.prototype.show.call(this);this.D.focus()};
g.k.init=function(a,b,c){AK.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.Zs(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.Zs(Error("ConfirmDialogRenderer.cancelLabel was not set.")):zua(this,b):g.Zs(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.Mx(this.u);this.hide()};
g.k.oF=function(){this.hide()};
g.k.WB=function(){var a=this.B.cancelEndpoint;a&&this.Xa.executeCommand(a,this.macros);this.hide()};
g.k.pF=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&this.Xa.executeCommand(a,this.macros);this.hide()};g.w(WK,AK);g.k=WK.prototype;
g.k.init=function(a,b,c){AK.prototype.init.call(this,a,b,c);this.B=b;if(null==b.defaultText&&null==b.defaultIcon)g.Zs(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.Zs(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.L(this.C,a)}a={};b.defaultText?
(c=g.Sz(b.defaultText),g.jb(c)||(a.buttonText=c,this.u.setAttribute("aria-label",c))):g.vm(this.Ba,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.u.hasAttribute("aria-label")||this.Z.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=NK(b.defaultIcon),this.Ra("untoggledIconTemplateSpec",c),b.toggledIcon?(this.S=!0,c=NK(b.toggledIcon),this.Ra("toggledIconTemplateSpec",c)):(g.vm(this.I,!0),g.vm(this.D,!1)),g.vm(this.u,!1)):g.vm(this.Z,!1);g.De(a)||this.update(a);b.isToggled&&
(g.L(this.C,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));XK(this);this.T(this.element,"change",this.MH);this.show()}};
g.k.onClick=function(a){0<this.Aa.length&&(this.toggleButton(!this.isToggled()),this.MH());AK.prototype.onClick.call(this,a)};
g.k.MH=function(){var a=this;g.M(this.C,"ytp-ad-toggle-button-toggled",this.isToggled());Aua(this,this.isToggled()).forEach(function(b){return a.Xa.executeCommand(b,a.macros)});
if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);XK(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.M(this.C,"ytp-ad-toggle-button-toggled",a);this.u.checked=a;XK(this)};
g.k.isToggled=function(){return this.u.checked};g.w(YK,Kx);YK.prototype.S=function(a){if(Array.isArray(a)){a=g.r(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof Rz&&this.C(b)}};g.w(ZK,AK);g.k=ZK.prototype;g.k.init=function(a,b,c){AK.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.Zs(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&at(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&at(Error("AdFeedbackRenderer.title was not set.")),Eua(this,b)):g.Zs(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){fv(this.I);fv(this.S);this.D.length=0;this.hide()};
g.k.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();AK.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.u&&this.u.show();this.B&&this.B.show();this.C=document.activeElement;AK.prototype.show.call(this);this.I.focus()};
g.k.jM=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.ea("a");this.hide()};
g.k.nW=function(){this.hide()};
Fua.prototype.isChecked=function(){return this.B.checked};g.w($K,VK);$K.prototype.oF=function(a){VK.prototype.oF.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
$K.prototype.WB=function(a){VK.prototype.WB.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
$K.prototype.pF=function(a){VK.prototype.pF.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.ea("b")};g.w(aL,AK);g.k=aL.prototype;
g.k.init=function(a,b,c){AK.prototype.init.call(this,a,b,c);this.I=b;if(null==b.dialogMessage&&null==b.title)g.Zs(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&at(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.u=new OK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.H(this,this.u),
this.u.init(KG("button"),a,this.macros),this.u.Ea(this.element);b.title&&(a=g.Sz(b.title),this.Ra("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=RK(a[c]);if(!g.jb(d.textContent)){var e=Mg("LI");e.appendChild(d);this.Ha.appendChild(e)}}else g.vm(this.Ha,!1);b.dialogMessage&&(a=RK(b.dialogMessage,!0),this.La.appendChild(a));b.confirmLabel&&(a=g.Sz(b.confirmLabel),this.Ra("confirmLabel",a));b.muteAdRenderer&&(b=(b=b.muteAdRenderer)&&b.buttonRenderer||null)&&(a=b.navigationEndpoint&&
b.navigationEndpoint.adFeedbackEndpoint||null,c=b.navigationEndpoint&&b.navigationEndpoint.confirmDialogEndpoint||null,null==a&&null==c?at(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?Hua(this,a):c&&Iua(this,c),this.C=new OK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-info-dialog-mute-button"],"button",!0),g.H(this,this.C),this.C.init(KG("button"),b,this.macros),this.C.Qa("click",this.QU,this),this.C.Ea(this.Wa)));
Jua(this)}};
g.k.clear=function(){fv(this.S);this.hide()};
g.k.hide=function(){this.B?this.B.hide():this.D&&this.D.hide();this.u&&this.u.hide();this.C&&this.C.hide();AK.prototype.hide.call(this);this.Z&&this.Z.focus()};
g.k.show=function(){this.u&&this.u.show();this.C&&this.C.show();this.Ka||(Gua(this),this.Ka=!0);this.Z=document.activeElement;AK.prototype.show.call(this);this.S.focus()};
g.k.NH=function(){this.I&&this.I.confirmServiceEndpoint&&this.Xa.executeCommand(this.I.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.ea("d");this.hide()};
g.k.QU=function(){var a=this.B?this.B:this.D;a&&!a.yb&&(this.hide(),a.show())};g.w(bL,SK);bL.prototype.init=function(a,b,c){SK.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(Mua(this,a,c),this.show())};
bL.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();SK.prototype.hide.call(this)};
bL.prototype.show=function(){this.button&&this.button.show();SK.prototype.show.call(this)};
bL.prototype.clear=function(){this.hide()};g.w(cL,AK);cL.prototype.init=function(a,b,c){AK.prototype.init.call(this,a,b,c);this.u=b;this.isTemplated()||g.Ug(this.element,BK(this.u));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?TK(a):"",c=(c=this.api.getVideoData(1))&&c.bk,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}this.show()};
cL.prototype.isTemplated=function(){return this.u.isTemplated||!1};
cL.prototype.clear=function(){this.hide()};var Rua={seekableStart:0,seekableEnd:1,current:0};g.w(eL,AK);eL.prototype.clear=function(){this.dispose()};(function(a,b){function c(f){var h=g.r(f);f=h.next().value;h=ka(h);return a.apply(f,h)}
function d(f){f=g.r(f);f.next();f=ka(f);return b(e,f)}
b=void 0===b?kha:b;var e=g.Pa(a);return function(){var f=g.Ba.apply(0,arguments),h=this||g.B,l=sOa.get(h);l||(l={},sOa.set(h,l));return pc(l,[this].concat(g.la(f)),c,d)}})(function(a){var b=g.Ng("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.Ng("DIV");g.tm(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.Rg(b);return a});g.w(g.hL,g.E);g.k=g.hL.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.sB(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.i&&this.i()):this.element.yb||(iL(this,!0),this.state=1,a?this.delay.start(a):this.sB()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.yb&&(iL(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.sB=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:iL(this,!1);this.state=3;this.delay.start(this.B);break;case 3:this.state=null;this.i&&this.i();break;case 4:this.element.hide();iL(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.u&&this.u()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.sB()};
g.k.xa=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.E.prototype.xa.call(this)};g.w(jL,eL);g.k=jL.prototype;
g.k.init=function(a,b,c){eL.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.Zs(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Wa&&g.L(this.B.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.Ba=null==a||0===a?this.u.Av():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.C.init(KG("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.bk&&b.thumbnail?this.I.init(KG("ad-image"),b.thumbnail,c):this.S.hide()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.C.hide();this.I.hide();gL(this);eL.prototype.hide.call(this)};
g.k.show=function(){fL(this);this.B.show();this.C.show();this.I.show();eL.prototype.show.call(this)};
g.k.xq=function(){this.hide()};
g.k.Bo=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ka&&a>=this.Ba?(this.Z.hide(),this.Ka=!0,this.ea("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Ba-a)/1E3)),a!=this.La&&(dL(this.C,{TIME_REMAINING:String(a)}),this.La=a)))}};g.w(lL,eL);g.k=lL.prototype;
g.k.init=function(a,b,c){eL.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.actionButton&&b.actionButton.buttonRenderer&&b.actionButton.buttonRenderer.navigationEndpoint){a=this.api.getVideoData(2);if(null!=a)if(b.image&&b.image.thumbnail){var d=b.image.thumbnail.thumbnails;null!=d&&0<d.length&&g.jb(g.pg(d[0].url))&&(d[0].url=a.Nh)}else g.ky(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.S.init(KG("ad-image"),b.image,c);this.I.init(KG("ad-text"),
b.headline,c);this.C.init(KG("ad-text"),b.description,c);this.B.init(KG("button"),b.actionButton.buttonRenderer,c);this.Z=b.actionButton.buttonRenderer.navigationEndpoint;this.api.Hz()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.OH.bind(this));this.Ba=b.startMs||0;fL(this)}else g.jy(Error("FlyoutCtaRenderer has no valid action button."));else g.jy(Error("FlyoutCtaRenderer has no description AdText."));else g.jy(Error("FlyoutCtaRenderer has no headline AdText."));else g.ky(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){eL.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Tg(this.B.element,a.target)&&this.Z&&this.Xa.executeCommand(this.Z,this.macros)};
g.k.Bo=function(){if(this.u){var a=this.u.getProgressState();a&&a.current&&1E3*a.current>=this.Ba&&(gL(this),g.kr(this.element,"ytp-flyout-cta-inactive"))}};
g.k.xq=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.OH.bind(this))};
g.k.show=function(){this.B&&this.B.show();eL.prototype.show.call(this)};
g.k.hide=function(){this.B&&this.B.hide();eL.prototype.hide.call(this)};
g.k.OH=function(a){a?this.hide():this.show()};g.w(mL,AK);g.k=mL.prototype;g.k.init=function(a,b,c){var d=this;AK.prototype.init.call(this,a,b,c);this.u=b;this.u.rectangle&&(Nua(this,c),this.D.show(100),this.show(),(this.u&&this.u.impressionCommands||[]).forEach(function(e){return d.Xa.executeCommand(e,d.macros)}))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.B.hide();AK.prototype.hide.call(this)};
g.k.show=function(){this.C.show();this.B.show();AK.prototype.show.call(this)};
g.k.PH=function(){mr(this.element,"ytp-ad-instream-user-sentiment-selected");this.u.postMessageAction&&this.api.Na("onYtShowToast",this.u.postMessageAction);this.D.hide()};
g.k.onClick=function(a){0<this.Aa.length&&this.PH();AK.prototype.onClick.call(this,a)};g.w(nL,g.E);g.k=nL.prototype;g.k.xa=function(){this.reset();g.E.prototype.xa.call(this)};
g.k.reset=function(){g.Mx(this.C);this.I=!1;this.i&&this.i.stop();this.D.stop();this.u&&(this.u=!1,this.K.play())};
g.k.start=function(){this.reset();this.C.T(this.B,"mouseover",this.oP,this);this.C.T(this.B,"mouseout",this.nP,this);this.i?this.i.start():(this.I=this.u=!0,g.fm(this.B,{opacity:this.X}))};
g.k.oP=function(){this.u&&(this.u=!1,this.K.play());this.D.stop();this.i&&this.i.stop()};
g.k.nP=function(){this.I?this.D.start():this.i&&this.i.start()};
g.k.fJ=function(){this.u||(this.u=!0,this.S.play(),this.I=!0)};g.w(oL,eL);g.k=oL.prototype;
g.k.init=function(a,b,c){eL.prototype.init.call(this,a,b,c);this.S=b;this.Ba=Pua(this);if(!b||g.De(b))g.Zs(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.De(b.message))g.Zs(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=NK(a);null==b?g.Zs(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.I=new g.zK({G:"button",Ga:["ytp-ad-skip-button","ytp-button"],U:[{G:"span",
L:"ytp-ad-skip-button-icon",U:[b]}]}),g.H(this,this.I),this.I.Ea(this.C.element),this.B=new cL(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-skip-button-text"),this.B.init(KG("ad-text"),this.S.message,c),g.H(this,this.B),g.Qg(this.I.element,this.B.element,0));var d=void 0===d?null:d;c=this.api.V();!(0<this.Aa.length)&&c.isMobile&&(uE?0:"ontouchstart"in document.documentElement&&(Tl()||Sl()))&&(this.pc(this.bb),d&&this.pc(d),this.Aa=[this.T(this.element,"touchstart",this.mP,this),this.T(this.element,
"touchmove",this.lP,this),this.T(this.element,"touchend",this.kP,this)])}};
g.k.clear=function(){this.Z.reset();this.hide()};
g.k.hide=function(){this.C.hide();this.B&&this.B.hide();gL(this);eL.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.I&&(a&&g.bv(a),eL.prototype.onClick.call(this,a),this.ea("j"),this.Ka||!this.Ba))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.iN=function(a){if(!this.api.V().N("html5_enable_single_video_vod_ivar_on_pacf")||!this.Ka)return a;var b,c=null==(b=a.commandExecutorCommand)?void 0:b.commands;if(!c)return a;b=[];for(var d=0;d<c.length;d++){var e=a.commandExecutorCommand.commands[d];e.adLifecycleCommand&&Oua(e.adLifecycleCommand)||e.pingingEndpoint||e.adPingingEndpoint||b.push(e)}return{commandExecutorCommand:{commands:b}}};
g.k.oK=function(){return"skip"};
g.k.show=function(){this.Z.start();this.C.show();this.B&&this.B.show();fL(this);eL.prototype.show.call(this)};
g.k.xq=function(){this.ea("k")};
g.k.Bo=function(){};g.w(pL,eL);g.k=pL.prototype;
g.k.init=function(a,b,c){eL.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.De(a)?null:a){this.S=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.KD(this.api.V().experiments,"preskip_button_style_ads_backend")&&LE(this.api.V());this.B=new jL(this.api,this.Xa,this.layoutId,this.i,this.u,d);this.B.init(KG("preskip-component"),a,c);kL(this.B);g.H(this,this.B);this.B.Ea(this.element)}else b.skipOffsetMilliseconds&&
(this.S=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.De(b)?null:b;null==b?g.Zs(Error("SkipButtonRenderer was not set in player response.")):(this.C=new oL(this.api,this.Xa,this.layoutId,this.i,this.u,this.Z),this.C.init(KG("skip-button"),b,c),g.H(this,this.C),this.C.Ea(this.element),this.show())};
g.k.show=function(){this.I&&this.C?this.C.show():this.B&&this.B.show();fL(this);eL.prototype.show.call(this)};
g.k.xq=function(){};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();gL(this);eL.prototype.hide.call(this)};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();gL(this);eL.prototype.hide.call(this)};
g.k.Bo=function(){1E3*this.u.getProgressState().current>=this.S&&Qua(this,!0)};g.w(qL,OK);qL.prototype.init=function(a,b,c){OK.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.Sz(b.text),a=!g.jb(a));a?null==b.navigationEndpoint?at(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?at(Error("Button style was not a link-style type in renderer,")):this.show():at(Error("No visit advertiser text was present in the renderer."))};g.w(rL,AK);rL.prototype.init=function(a,b,c){AK.prototype.init.call(this,a,b,c);a=b.text;g.jb(BK(a))?at(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.u&&(b=this.api.V(),b=a.text+" "+(b&&b.isMobile?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new cL(this.api,this.Xa,this.layoutId,this.i),a.init(KG("simple-ad-badge"),b,c),a.Ea(this.element),g.H(this,a)),this.show())};
rL.prototype.clear=function(){this.hide()};g.w(sL,LG);g.w(tL,g.Q);g.k=tL.prototype;g.k.Av=function(){return this.durationMs};
g.k.stop=function(){this.i&&this.Ae.pc(this.i)};
g.k.Xb=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ea("h")};
g.k.getProgressState=function(){return this.u};
g.k.Nc=function(a){g.xH(a,2)&&this.ea("g")};g.w(uL,g.Q);g.k=uL.prototype;g.k.Av=function(){return this.durationMs};
g.k.start=function(){this.B||(this.B=!0,this.i.start())};
g.k.stop=function(){this.B&&(this.B=!1,this.i.stop())};
g.k.Xb=function(){this.u+=100;var a=!1;this.u>this.durationMs&&(this.u=this.durationMs,this.i.stop(),a=!0);this.C={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.u/1E3};this.Xa&&this.Xa.Xb(this.C.current);this.ea("h");a&&this.ea("g")};
g.k.getProgressState=function(){return this.C};g.w(xL,eL);g.k=xL.prototype;g.k.init=function(a,b,c){var d;eL.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){at(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new cL(this.api,this.Xa,this.layoutId,this.i);this.B.init(KG("ad-text"),a,{});this.B.Ea(this.element);g.H(this,this.B)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){gL(this);eL.prototype.hide.call(this)};
g.k.xq=function(){this.hide()};
g.k.Bo=function(){if(null!=this.u){var a=this.u.getProgressState();if(null!=a&&null!=a.current&&this.B){a=(this.u instanceof tL?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.u instanceof uL?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.vL(a);dL(this.B,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.k.show=function(){fL(this);eL.prototype.show.call(this)};g.w(yL,cL);yL.prototype.onClick=function(a){cL.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.w(DL,g.zK);DL.prototype.Xb=function(){var a=this.u.getProgressState();this.Hc.style.width=100*CL(new zL(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
DL.prototype.onStateChange=function(){g.FE(this.api.V())||(2===this.api.getPresentingPlayerType()?-1===this.i&&(this.show(),this.i=this.u.subscribe("h",this.Xb,this),this.Xb()):-1!==this.i&&(this.hide(),this.u.cg(this.i),this.i=-1))};g.w(EL,AK);
EL.prototype.init=function(a,b,c,d){AK.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new pL(this.api,this.Xa,this.layoutId,this.i,this.u,this.I),c.Ea(this.D),c.init(KG("skip-button"),a.skipAdRenderer,this.macros),g.H(this,c)):a.adPreviewRenderer&&(c=new jL(this.api,this.Xa,this.layoutId,this.i,this.u,!1),c.Ea(this.D),c.init(KG("ad-preview"),a.adPreviewRenderer,this.macros),kL(c),g.H(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=
new mL(this.api,this.Xa,this.layoutId,this.i),c.Ea(this.Z),c.init(KG("instream-user-sentiment"),a,this.macros),g.H(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new lL(this.api,this.Xa,this.layoutId,this.i,this.u),g.H(this,c),c.Ea(this.S),c.init(KG("flyout-cta"),a.flyoutCtaRenderer,this.macros)));d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"\u0420\u0435\u043a\u043b\u0430\u043c\u0430",isTemplated:!1}}),
c=new rL(this.api,this.Xa,this.layoutId,this.i,!0),g.H(this,c),c.Ea(this.B),c.init(KG("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 xL(this.api,this.Xa,this.layoutId,this.i,this.u,d),g.H(this,d),d.Ea(this.B),d.init(KG("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&
(a=new bL(this.api,this.Xa,this.layoutId,this.i,this.element),g.H(this,a),a.Ea(this.B),a.init(KG("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=Sua(this)&&this.C?this.C:this.B))&&(a=new qL(this.api,this.Xa,this.layoutId,this.i),g.H(this,a),a.Ea(d),a.init(KG("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.V())&&!CE(b)&&"3"==b.controlsType&&(b=new DL(this.api,this.u),b.Ea(this.Ba),g.H(this,
b));this.api.V().N("enable_updated_html5_player_focus_style")&&g.L(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
EL.prototype.clear=function(){this.hide()};g.Ga("yt.pubsub.publish",g.Fv,void 0);var PL={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Y2={},bva=(Y2.WEB_UNPLUGGED="^unplugged/",Y2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Y2.WEB_UNPLUGGED_OPS="^unplugged/",Y2.WEB_UNPLUGGED_PUBLIC="^unplugged/",Y2.WEB_CREATOR="^creator/",Y2.WEB_KIDS="^kids/",Y2.WEB_EXPERIMENTS="^experiments/",Y2.WEB_MUSIC="^music/",Y2.WEB_REMIX="^music/",Y2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Y2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Y2);ML.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?PL:c;var d={context:WJ(a.clickTrackingParams,!1,this.C)};var e=this.i(a);if(e){this.u(d,e,b);var f,h;b=g.JL(this.B());(a=null===(h=null===(f=a.commandMetadata)||void 0===f?void 0:f.webCommandMetadata)||void 0===h?void 0:h.apiUrl)&&(b=a);f=dva(KL(b),void 0);d={input:f,Bq:LL(f),Zl:d,config:Object.assign({},void 0)};d.config.ip?d.config.ip.identity=c:d.config.ip={identity:c};return d}g.jy(new g.iw("Error: Failed to create Request from Command.",
a))};
ea.Object.defineProperties(ML.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.w(NL,ML);NL.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",Bq:LL("/getDatasyncIdsEndpoint","GET"),Zl:{}}};
NL.prototype.B=function(){return[]};
NL.prototype.i=function(){};
NL.prototype.u=function(){};var kPa={},eva=(kPa.GET_DATASYNC_IDS=IL(NL),kPa);g.w(RL,ML);RL.prototype.B=function(){return DOa};
RL.prototype.i=function(a){return a.subscribeEndpoint};
RL.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
ea.Object.defineProperties(RL.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(SL,ML);SL.prototype.B=function(){return EOa};
SL.prototype.i=function(a){return a.unsubscribeEndpoint};
SL.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
ea.Object.defineProperties(SL.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(TL,ML);TL.prototype.B=function(){return AOa};
TL.prototype.i=function(a){return a.feedbackEndpoint};
TL.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
ea.Object.defineProperties(TL.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(UL,ML);UL.prototype.B=function(){return BOa};
UL.prototype.i=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
UL.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.w(VL,ML);VL.prototype.B=function(){return COa};
VL.prototype.i=function(a){return a.playlistEditEndpoint};
VL.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.w(WL,ML);WL.prototype.B=function(){return zOa};
WL.prototype.i=function(a){return a.webPlayerShareEntityServiceEndpoint};
WL.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};XL.prototype.fetch=function(a,b){var c=this;a=new window.Request(a,b);return Promise.resolve(fetch(a).then(function(d){return c.handleResponse(d)}).catch(function(d){g.ky(d)}))};
XL.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))});
a.redirected||a.ok||(b=b.then(function(c){g.ky(new g.iw("Error: API fetch failed",a.status,a.url,c));return Object.assign(Object.assign({},c),{errorMetadata:{status:a.status}})}));
return b};var YL;$L.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f,h,l=new XMLHttpRequest;l.onerror=function(){e(d.handleResponse(a,l.status,l.response))};
l.onload=function(){e(d.handleResponse(a,l.status,l.response))};
if(null===c||void 0===c?0:c.Ys)l.onreadystatechange=function(q){c.Ys(l,q)};
l.open(null!==(f=b.method)&&void 0!==f?f:"GET",a,!0);l.responseType="text";l.withCredentials=!0;if(b.headers)for(var m=g.r(Object.entries(b.headers)),n=m.next();!n.done;n=m.next()){var p=g.r(n.value);n=p.next().value;p=p.next().value;l.setRequestHeader(n,p)}l.send(null!==(h=b.body)&&void 0!==h?h:null)})};
$L.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.ky(new g.iw("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.ky(new g.iw("XHR API fetch failed",a,b,c)),d=Object.assign(Object.assign({},d),{errorMetadata:{status:b}}));return d};var lva=[],aM=!1;bM.getInstance=function(){var a=g.Ha("ytglobal.storage_");a||(a=new bM,g.Ga("ytglobal.storage_",a,void 0));return a};
bM.prototype.estimate=function(){var a,b,c;return g.A(function(d){c=navigator;return(null===(a=c.storage)||void 0===a?0:a.estimate)?d.return(c.storage.estimate()):(null===(b=c.webkitTemporaryStorage)||void 0===b?0:b.queryUsageAndQuota)?d.return(ova()):d.return()})};
g.Ga("ytglobal.storageClass_",bM,void 0);bw.prototype.wj=function(a){this.handleError(a)};
bw.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.O("idb_data_corrupted_killswitch")||this.i("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.i("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.O("idb_is_supported_completed_killswitch")||this.i("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":qva(this,b);break;case "TRANSACTION_ENDED":this.B&&this.i("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign(Object.assign({},
b),{hasWindowUnloaded:this.u}),this.i("idbTransactionAborted",a)}};cM.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){var m=a.interpreterSafeScript;h=g.tf("From proto message. b/166824318");m=m.privateDoNotAccessOrElseSafeScriptWrappedValue||"";sf(h);sf(h);h=(h=of())?h.createScript(m):m;h=(new wf(h,vf)).toString()}a.interpreterSafeUrl&&(l=a.interpreterSafeUrl,l=Zf(g.tf("From proto message. b/166824318"),
l.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());sva(this,h,l,a.program,b,c,d)}else g.ky(Error("Cannot initialize botguard without program"))};
cM.prototype.isInitialized=function(){return!!this.i};
cM.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};
cM.prototype.dispose=function(){this.i=null};var eM;g.dM=new cM;eM=0;var zva=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var Z2={},lPa=(Z2["api.invalidparam"]=2,Z2.auth=150,Z2["drm.auth"]=150,Z2["heartbeat.net"]=150,Z2["heartbeat.servererror"]=150,Z2["heartbeat.stop"]=150,Z2["html5.unsupportedads"]=5,Z2["fmt.noneavailable"]=5,Z2["fmt.decode"]=5,Z2["fmt.unplayable"]=5,Z2["html5.missingapi"]=5,Z2["html5.unsupportedlive"]=5,Z2["drm.unavailable"]=5,Z2);g.w(kM,g.E);g.k=kM.prototype;
g.k.handleExternalCall=function(a,b,c){var d=this.D[a],e=this.K[a],f=d;if(e)if(c&&Vy(c,GOa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.V();d.Wj&&!this.X.has(a)&&(this.X.add(a),g.dw("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:c||void 0,playerStyle:d.playerStyle||void 0}));if(f){c=!1;d=g.r(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.ky(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,
b)}throw Error('Unknown API method: "'+a+'".');};
g.k.isExternalMethodAvailable=function(a,b){return this.D[a]?!0:!!(this.K[a]&&b&&Vy(b,GOa))};
g.k.getBandwidthEstimate=function(){return iE(this.app.V().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.AM(this.app);b&&(a={gpu:(0,g.uW)(),d:a},b.handleError(new g.lD("feedback",!1,a)))};
g.k.getApiInterface=function(){return this.S.slice()};
g.k.getInternalApiInterface=function(){return g.ye(this.u)};
g.k.aR=function(a,b){if("string"===typeof b){var c=function(){var d=g.Ba.apply(0,arguments);g.Ha(b).apply(window,d)};
this.I[b]=c}else c=b;this.app.Pl.subscribe(a,c)};
g.k.NW=function(a,b){if("string"===typeof b){var c=this.I[b],d=this.I;b in d&&delete d[b];b=c}this.app.Pl.unsubscribe(a,b)};
g.k.getPlayerState=function(){return YIa(this.app)};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)};
g.k.seekTo=function(a,b,c){this.i&&qY(this.app,!0,this.playerType);uY(this.app,a,b,c,this.playerType)};
g.k.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
g.k.startSeekCsiAction=function(){this.app.Dp().B.i=(0,g.P)()};
g.k.seekToStreamTime=function(a,b,c){this.i&&qY(this.app,!0,this.playerType);var d=this.app,e=this.playerType;b=void 0===b?!0:b;var f=void 0===f?!1:f;var h=g.AM(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.Uc()&&(l=h.getStreamTimeOffset());uY(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.AM(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.AM(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&uY(this.app,Infinity,a,b,this.playerType)};
g.k.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.k.getMediaReferenceTime=function(){var a=this.app.getIngestionTime(this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.k.getDuration=function(){return this.app.getDuration(this.playerType)};
g.k.getVolume=function(){return this.app.eg.volume};
g.k.setVolume=function(a){Jva(this,a)};
g.k.isMuted=function(){return this.app.eg.muted};
g.k.mute=function(){Kva(this)};
g.k.unMute=function(){Lva(this)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().D&&(a.pfp={enableIma:this.app.V().Qf&&SX(this.app).allowImaMonetization,autoplay:xG(SX(this.app)),mutedAutoplay:SX(this.app).mutedAutoplay});return a};
g.k.playVideo=function(){this.i&&qY(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Rd()){var b=XM(this.app.tb());if(!qNa(b)){b.Pk("control_play");return}if(rNa(b))return}3===a?uM(this.app.tb()).Pk("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Rd()){var b=XM(this.app.tb());if(!qNa(b)){b.Pk("control_pause");return}}3===a?uM(this.app.tb()).Pk("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.Y.bb&&a.Ta.ea("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getPlaybackRate=function(){return g.AM(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.k.getAvailablePlaybackRates=function(){var a=this.app.V();if(a.ac){var b=a.i||a.N("web_player_admin_origin_killswitch")?a.ancestorOrigins[0]:window.location.origin;a=["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(b)||a.dk?KOa:JOa}else a=[1];return a};
g.k.getPlaybackQuality=function(a){return(a=g.AM(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.AM(this.app,this.playerType);return a?(a=g.Mm(a.An(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.getAvailableQualityLabels=function(){var a=g.AM(this.app,this.playerType);return a?g.Mm(a.An(),function(b){return b.qualityLabel}):[]};
g.k.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.k.getVideoBytesTotal=function(){return 1};
g.k.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.k.getVideoStartBytes=function(){return 0};
g.k.getSize=function(){var a=this.app.eb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.setSize=function(){this.app.eb().resize()};
g.k.channelSubscribed=function(){this.Na("SUBSCRIBE",SX(this.app).Xi)};
g.k.channelUnsubscribed=function(){this.Na("UNSUBSCRIBE",SX(this.app).Xi)};
g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.AM(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.AM(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.updateFullerscreenEduButtonVisibility=function(a){var b=oJa(this.app);b&&(b.u=a,b.Pa())};
g.k.updateFullerscreenEduButtonSubtleModeState=function(a){var b=oJa(this.app);b&&(g.M(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","\u041f\u0440\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u0435 \u044d\u043a\u0440\u0430\u043d \u0432\u043d\u0438\u0437, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e"),
g.he(b,g.JN(b.B.hc(),b.element)),b.C=!0))};
g.k.confirmYpcRental=function(){var a=g.AM(this.app,this.playerType);a&&a.Od("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.V().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.V().bk=a};
g.k.setLivingRoomAppMode=function(a){this.app.V().livingRoomAppMode=nE("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,Ooa)};
g.k.setEnablePrivacyFilter=function(a){this.app.V().enablePrivacyFilter=void 0===a?!1:a};
g.k.isPictureInPictureAllowed=function(){return SX(this.app).KC};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.loadModule=function(a){"captions"===a&&(a=g.TM(this.app.tb()))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.TM(this.app.tb()))&&a.loaded&&a.JX()};
g.k.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(hM(a,b,c),this.playerType),this.i&&qY(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(hM(a,b,c),this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=Gva(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.i&&qY(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=Gva(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.V();if(a.K)return"";var b=SX(this.app),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.getDebugText=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.V();return a.K?"":a.getVideoEmbedCode(SX(this.app).videoId,this.app.eb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return sY(this.app,a,b,c)};
g.k.addUtcCueRange=function(a,b,c){return fJa(this.app,a,b,c)};
g.k.removeCueRange=function(a){return gJa(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.i&&qY(this.app,!0,this.playerType)};
g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.k.nextVideo=function(){this.app.nextVideo();this.i&&qY(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.i&&qY(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.i&&qY(this.app,!0,this.playerType)};
g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.k.XR=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.FM(a,c);d&&b.push(d.videoId)}return b};
g.k.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.tb();return"captions"===a?(a=g.TM(d))&&a.jf(b,c):null};
g.k.getOption=function(a,b,c){var d=g.AM(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.V().i?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.tb();if("captions"===a)return(b=g.TM(b))&&b.getOptions();if(!a)return a=[],g.TM(b)&&a.push("captions"),a};
g.k.qz=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.AM(this.app,a)){a=a.getVideoData();if(a.isPrivate)return{};b.video_id=a.videoId;b.author=a.author;b.title=a.title;if(a.B&&a.B.video){b.video_quality=a.B.video.quality;a=a.B.video;var c=[];32<a.fps&&c.push("hfr");a.isHdr()&&c.push("hdr");"bt2020"===a.primaries&&c.push("wcg");b.video_quality_features=c}}if(a=this.getPlaylistId())b.list=a;return b};
g.k.showVideoInfo=function(){NIa(this.app,!0)};
g.k.hideVideoInfo=function(){NIa(this.app,!1)};
g.k.isVideoInfoVisible=function(){return this.app.isVideoInfoVisible()};
g.k.getAdState=function(){return this.app.getAdState()};
g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.AM(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.T(a,128)&&5===lPa[b.errorCode])};
g.k.getSphericalProperties=function(){var a=g.wM(this.app.tb());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.wM(this.app.tb());b&&b.setSphericalProperties(a,!0)}};
g.k.supportsGaplessAudio=function(){return this.app.V().supportsGaplessAudio()};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.destroy=function(){this.app.dispose()};
g.k.sendAbandonmentPing=function(){var a=g.AM(this.app);a&&a.sendAbandonmentPing()};
g.k.downloadVideo=function(a,b){return this.app.downloadVideo(a,b)};
g.k.pauseVideoDownload=function(a){var b=this;return g.A(function(c){return c.return(b.app.pauseVideoDownload(a))})};
g.k.resumeVideoDownload=function(a){var b=this;return g.A(function(c){return c.return(b.app.resumeVideoDownload(a))})};
g.k.refreshAllVideos=function(){return this.app.refreshAllVideos()};
g.k.deleteAllVideos=function(){return this.app.deleteAllVideos()};
g.k.deleteVideos=function(a){return this.app.deleteVideos(a)};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.setAutonavState=function(a){lJa(this.app,a)};
g.k.setAutonav=function(a){this.setAutonavState(a?2:1)};
g.k.setLoopRange=function(a){this.app.setLoopRange(a)};
g.k.getLoopRange=function(){return this.app.getLoopRange()};
g.k.setImmersivePreview=function(a){this.app.setImmersivePreview(a)};
g.k.hasSupportedAudio51Tracks=function(){var a=g.AM(this.app,this.playerType);return!(null===a||void 0===a||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a){var b=g.AM(this.app,this.playerType);b&&b.setUserAudio51Preference(a)};
g.k.getUserAudio51Preference=function(){var a,b=g.AM(this.app,this.playerType);return null!==(a=null===b||void 0===b?void 0:b.getUserAudio51Preference())&&void 0!==a?a:1};
g.k.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.addInfoCardXml=function(a,b,c){this.app.V().S.add(a,{yy:b,Ax:c})};
g.k.updateLastActiveTime=function(){ov()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setAccountLinkState=function(a){this.app.setAccountLinkState(a)};
g.k.updateAccountLinkingConfig=function(a){this.app.updateAccountLinkingConfig(a)};
g.k.setUserEngagement=function(a){this.app.V().Ui!==a&&(this.app.V().Ui=a,(a=g.AM(this.app,this.playerType))&&EX(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.TM(this.app.tb()).CO(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.TM(this.app.tb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.TM(this.app.tb());a&&a.kO()};
g.k.setUseFastSizingOnWatch=function(){};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Rd()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.AM(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.og();if(!c)return null;b=c.levels[b];return b?(a=g.JF(b,a))?{column:a.column,columns:a.columns,height:a.bA,row:a.row,rows:a.rows,url:a.url,width:a.cA}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.og();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Uc();return b.Lx(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.og();return b?(b=b.levels[a])?{index:a,intervalMs:b.i,maxFrameIndex:b.rr(),minFrameIndex:b.Mx()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.og();return a?a.levels.length:0};
g.k.LR=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.AM(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().bj};
g.k.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&uM(this.app.tb()).Pk("control_set_audio_track",a);var b=g.AM(this.app,this.playerType);if(b){var c,d,e;if(!b.isDisposed()&&!g.T(b.playerState,128))if(null===(c=b.videoData.C)||void 0===c?0:c.i)b.Ya.setAudioTrack(a);else if(c=null===(d=b.ra)||void 0===d?void 0:d.audioTracks(),b.N("html5_native_audio_track_switching")&&(null===(e=b.videoData.B)||void 0===e?0:TC(e))&&c&&1<c.length){a:{for(d=0;d<c.length;++d)if(e=c[d],e.label===a.zc.getName()){if(e.enabled){c=
!1;break a}c=e.enabled=!0;break a}c=void 0}c&&b.Ca("hlsaudio",a.id)}else{a:if(c=b.videoData,c.K&&!TC(c.K)||a==c.Wj||!c.Eb||0>=c.Eb.length)c=!1;else{d=g.r(c.Eb);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof jF)){c=!1;break a}var f=a.zc.getId();e.B&&(Yoa(e.B,f),e.u=null)}c.Wj=a;c=!0}c&&uX(b)&&(b.ea("internalaudioformatchange",b.videoData,!0),b.Ca("hlsaudio",a.id))}}};
g.k.MR=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.AM(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.AM(this.app,this.playerType);return a&&a.getVideoData().B?IA(a.Fe?KFa(a.zg,a.Fe,a.zs()):QF):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.AM(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.TM(this.app.tb());return a?a.ZR():null};
g.k.resetSubtitlesUserSettings=function(){g.TM(this.app.tb()).UW()};
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.eb().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.Je();return this.app.getVisibilityState(this.qf(),this.isFullscreen()||CE(this.app.V()),a,this.isInline(),this.app.Ls(),this.app.Js())};
g.k.isMutedByMutedAutoplay=function(){return this.app.lw};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.eb().setInternalSize(new g.jg(a,b))};
g.k.Uc=function(){var a=g.AM(this.app,void 0);return a?a.Uc():0};
g.k.Je=function(){return this.app.Je()};
g.k.qf=function(){var a=g.AM(this.app,this.playerType);return!!a&&a.qf()};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.setSafetyMode=function(a){this.app.V().enableSafetyMode=a};
g.k.canPlayType=function(a){return this.app.canPlayType(a)};
g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.N("player_enable_playback_playlist_change"))c=!0;else return;void 0!==a.external_list&&this.app.setIsExternalPlaylist(a.external_list);var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.FM(b).videoId||(a.index=b.index)):eY(this.app,{list:a.list,index:a.index,playlist_length:d.length});HM(this.app.getPlaylist(),a);this.Na("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.AM(this.app,this.playerType||1);c&&g.UF(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){KE(this.app.V(),a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.setCardsVisible=function(a,b,c){var d=g.$M(this.app.tb());d&&d.Bh()&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ea("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.eb().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.AM(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.setPlaybackQualityRange=function(a,b){var c=g.AM(this.app,this.playerType);c&&(a=FA(a,b||a,!0,"m"),aBa(c,a,!0))};
g.k.onAdUxClicked=function(a,b){this.ea("aduxclicked",a,b)};
g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.k.ea=function(a){var b=g.Ba.apply(1,arguments);this.app.V().u&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.Pl.ea.apply(this.app.Pl,[a].concat(g.la(b)));this.app.tm.ea.apply(this.app.tm,[a].concat(g.la(b)))};
g.k.Na=function(a){var b=g.Ba.apply(1,arguments);this.app.Pl.ea.apply(this.app.Pl,[a].concat(g.la(b)));this.app.tm.ea.apply(this.app.tm,[a].concat(g.la(b)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.logImaAdEvent=function(a,b){if(this.app.V().Qf&&SX(this.app).allowImaMonetization){var c=this.app.V().loaderUrl.match(ri);g.dw("embedsAdEvent",{adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:pi(c[1],c[2],c[3],c[4]),eventType:a})}};
g.k.N=function(a){return this.app.V().N(a)};
g.k.ma=function(){};
g.k.xa=function(){if(this.element){var a=this.element,b;for(b in this.u)this.u.hasOwnProperty(b)&&(a[b]=null);this.element=null}this.C={};this.I={};g.E.prototype.xa.call(this)};g.w(qM,kM);g.k=qM.prototype;g.k.addCueRange=function(a,b,c,d,e){return sY(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return YIa(this.app,a)};
g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.seekBy=function(a,b,c){uY(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){uY(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.qz=function(a){a=void 0===a?this.playerType:a;var b,c,d,e=kM.prototype.qz.call(this,a)||{};if(a=g.AM(this.app,a)){a=a.getVideoData();e.backgroundable=a.backgroundable;e.eventId=a.eventId;e.cpn=a.clientPlaybackNonce;e.hasProgressBarBoundaries=a.hasProgressBarBoundaries();e.isLive=a.isLivePlayback;e.isPremiere=a.isPremiere;e.isWindowedLive=a.ej;e.isManifestless=YF(a);e.allowLiveDvr=a.allowLiveDvr;e.isListed=a.isListed;e.itct=a.Za;var f;var h=a.hasProgressBarBoundaries()&&(null===(f=a.progressBarStartPosition)||
void 0===f?0:f.utcTimeMillis)?rg(a.progressBarStartPosition.utcTimeMillis):null;e.progressBarStartPositionUtcTimeMillis=h;var l;f=a.hasProgressBarBoundaries()&&(null===(l=a.progressBarEndPosition)||void 0===l?0:l.utcTimeMillis)?rg(a.progressBarEndPosition.utcTimeMillis):null;e.progressBarEndPositionUtcTimeMillis=f;e.ypcOriginalItct=a.cY;e.ypcPreview=a.ypcPreview;e.paidContentOverlayText=Lqa(a);e.paidContentOverlayDurationMs=jG(a);null!=a.liveUtcStartSeconds&&(e.liveUtcStartSeconds=a.liveUtcStartSeconds);
a.i&&KA(a.i)&&(e.usingLocalMedia="true");aG(a)&&(e.isEncrypted=!0);if(a.C)for(l=g.r(a.C.videoInfos),f=l.next();!f.done;f=l.next())if(null===(b=f.value.video)||void 0===b?0:b.isHdr()){e.isHdr=!0;break}e.isMultiChannelAudio=!(null===(d=null===(c=a.K)||void 0===c?void 0:c.audio)||void 0===d||!d.isMultiChannelAudio())}return e};
g.k.getCurrentTime=function(a,b){var c;return 2===this.app.getAppState()&&5===this.getPlayerState()?(null===(c=this.app.getVideoData())||void 0===c?void 0:c.startSeconds)||0:a?this.app.getCurrentTime(a,b):kM.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){return 3===this.getPresentingPlayerType()?(a=uM(this.app.tb()).getProgressState(),(null===a||void 0===a?void 0:a.duration)||0):a?this.app.getDuration(a,b):kM.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return uM(this.app.tb()).getProgressState();var b=this.app.getVideoData(),c=(g.AM(this.app,a)||g.AM(this.app)).getPlayerType(),d;a:{var e=this.app.getVideoData();if(null===(d=e.progressBarStartPosition)||void 0===d?0:d.utcTimeMillis)if(d=Number(e.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(d)){d=Ova(this,d,a);break a}d=0}var f;a:{e=this.app.getVideoData();if(null===(f=e.progressBarEndPosition)||void 0===f?0:f.utcTimeMillis)if(f=
Number(e.progressBarEndPosition.utcTimeMillis)/1E3,!isNaN(f)){f=Ova(this,f,a);break a}f=0}e=this.getCurrentTime(a);a=this.getDuration(a);var h=this.app.getIngestionTime(c),l=this.app.isAtLiveHead(c),m=this.app.As(),n=this.app.getMinSeekableTime(c);var p=this.app;(c=g.AM(p,c))?(c=cY(p,c),c=mY(p,sS(c),c)):c=0;return{airingStart:d,airingEnd:f,allowSeeking:this.app.sf(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:e,displayedStart:-1,duration:a,ingestionTime:h,isAtLiveHead:l,loaded:m,seekableStart:n,
seekableEnd:c}};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.getCurrentBroadcastId=function(){return null};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.oM(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,h)};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.oM(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,h)};
g.k.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.k.showControls=function(){var a=g.oM(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.oM(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.eb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.setFauxFullscreen=function(a){g.Gx();this.app.Oi(a?2:0)};
g.k.toggleFullscreen=function(){function a(c){g.ky(c)}
var b=this.app.V();if(b.externalFullscreen){if(!g.ZE(b))return this.isFullscreen()?Ix(window.document.documentElement):Fx(window.document.documentElement).catch(a)}else if(g.Gx()||b.C)return this.isFullscreen()?Ix(Hx()):"3"!==b.controlsType&&g.Gx()?Fx(this.app.eb().element).catch(a):(b=this.app.kd().Me())?Fx(b).catch(a):Promise.reject(Error("Media element missing"));this.Na("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=XM(this.app.tb());a&&a.created&&a.destroy();(a=g.AM(this.app))&&a.stopVideo();(a=this.app.tb().Gd.get("endscreen"))&&a.JS()&&g.tM(this.app.Ta,!0)};
g.k.stopVideo=function(){var a=this.app.V();!a.N("disable_new_pause_state3")&&UE(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():kM.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.AM(this.app,this.playerType).Kb(!0)};
g.k.toggleSubtitles=function(){var a=g.TM(this.app.tb());a&&a.AX()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.wM(this.app.tb());b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.wM(this.app.tb());return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){Jva(this,a,b)};
g.k.mute=function(a){Kva(this,a)};
g.k.unMute=function(a){Lva(this,a)};
g.k.mutedAutoplay=function(){this.N("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.$M(this.app.tb());b&&!b.loaded&&b.load()}kM.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.$M(this.app.tb());b&&b.loaded&&b.unload()}kM.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.tb();switch(a){case "ad":return(a=XM(d))&&a.jf&&a.jf(b,c);case "kids":return(a=YM(d))&&a.jf(b,c);case "remote":return(a=uM(d))&&a.jf(b,c);case "unplugged":return(a=g.ZM(d))&&a.jf(b,c);case "annotations_module":return(a=g.$M(d))&&a.jf(b,c);case "creatorendscreen":return(a=aN(d))&&a.jf(b,c)}return kM.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.tb();switch(a){case "ad":return(b=XM(b))&&b.getOptions&&b.getOptions();case "remote":return(b=uM(b))&&b.getOptions();case "annotations_module":return(b=g.$M(b))&&b.getOptions();case "creatorendscreen":return(b=aN(b))&&b.getOptions();case "unplugged":return(b=g.ZM(b))&&b.getOptions();case "kids":return(b=YM(b))&&b.getOptions()}if(!a){a=kM.prototype.getOptions.call(this);if(!a)return a;XM(b)&&a.push("ad");uM(b)&&a.push("remote");g.$M(b)&&a.push("annotations_module");
aN(b)&&a.push("creatorendscreen");g.ZM(b)&&a.push("unplugged");YM(b)&&a.push("kids");return a}return kM.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.eb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.oM(this);a&&a.Zk()};
g.k.setCenterCrop=function(a){this.app.eb().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var Mva="BASE_URL BASE_YT_URL adformat allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pipable playsinline plid post_live_playback postid ps public rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
Nva="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_fast_sizing_on_watch_default use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");g.w(g.rM,qM);g.k=g.rM.prototype;g.k.Oj=function(a,b,c,d,e,f){return this.app.Oj(a,b,c,d,e,f)};
g.k.wv=function(){return this.app.wv()};
g.k.Cp=ba(2);g.k.tb=function(){return this.app.tb()};
g.k.Xd=function(){var a=this.tb().Gd.get("endscreen");return!!a&&a.Xd()};
g.k.getRootNode=function(){return this.eb().element};
g.k.V=function(){return this.app.V()};
g.k.Bs=ba(4);g.k.Sl=function(a){return this.app.Sl(a)};
g.k.Fn=function(){return this.settingsMenu};
g.k.zb=function(a){return this.app.zb(a)};
g.k.eb=function(){return this.app.eb()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.AM(this.app,a);if(!b)return null;b=b.getVideoData();var c;b.enableServerStitchedDai&&2===a?(a=this.app,null===(c=a.Ic)||void 0===c?c=void 0:(b=a.getCurrentTime(),c=HS(c,1E3*b),c=null===c||void 0===c?void 0:c.videoData),c=c||a.getVideoData()):c=b;return c};
g.k.og=function(a){return this.app.og(a)};
g.k.isWidescreen=function(){return this.app.isWidescreen()};
g.k.isHdr=function(){var a=g.AM(this.app);return a?a.isHdr():!1};
g.k.DE=function(){return this.app.DE()};
g.k.Et=function(a){this.app.Et(a)};
g.k.Hf=function(a,b,c,d){this.app.Le(a,b,c,d)};
g.k.Xk=ba(8);g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){uM(this.app.tb()).Pk("control_play");return}if(2===this.getPresentingPlayerType()){var b=XM(this.app.tb());if(b&&(b.Qn()||rNa(b)))return}}catch(c){g.jy(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.AM(this.app,a).stopVideo()};
g.k.wm=function(a){g.AM(this.app,a).wm()};
g.k.addEventListener=function(a,b){this.app.tm.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.tm.unsubscribe(a,b)};
g.k.ea=function(a){qM.prototype.ea.call.apply(qM.prototype.ea,[this,a].concat(g.la(g.Ba.apply(1,arguments))))};
g.k.Ki=function(a){this.app.Ki(a)};
g.k.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.k.An=function(){var a={},b=g.AM(this.app).An();b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.Hv=ba(10);g.k.TA=function(a){this.app.TA(a);a&&lJa(this.app,a)};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
g.k.Iv=ba(12);g.k.Dj=ba(16);g.k.Ss=function(a,b){this.tb().Ss(a,b)};
g.k.Bh=function(){var a=g.$M(this.tb());return!!a&&a.Bh()};
g.k.qk=function(){var a=g.$M(this.tb());return!!a&&a.qk()};
g.k.setCardsVisible=function(a,b,c){var d=g.$M(this.tb());d&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ea("changeProductsInVideoVisibility",a)};
g.k.Bt=ba(17);g.k.Nq=function(){var a=g.AM(this.app);a&&a.Nq()};
g.k.ex=function(a){this.Na("onVideoAreaChange");this.Na(a?"onShowControls":"onHideControls")};
g.k.nj=function(a,b){var c=g.oM(this);if(c)return c.nj(a,b);a=this.app.eb().pg();return new g.bm(0,0,a.width,a.height)};
g.k.Np=function(){return this.app.Np()};
g.k.Yv=function(){var a=this.tb().Gd.get("heartbeat");return!!a&&a.Yv()};
g.k.sf=function(){var a=this.V();if(a.oa||a.disableSeek)return!1;a=g.AM(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.nG(b)||2===this.getPresentingPlayerType()&&!this.app.Rd()||a.Yl()&&3!==this.getPresentingPlayerType()?!1:!0};
g.k.Vv=function(){var a;return(null===(a=g.AM(this.app))||void 0===a?void 0:a.Vv)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.Io=function(){var a=g.AM(this.app);a&&a.Io()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.Dd=function(a,b,c){this.app.Iu(a,b,c)};
g.k.Ff=function(a,b){this.app.OA(a,b)};
g.k.Xe=function(a,b){var c=this.app,d=g.AM(c,b);d&&(a=d.Qg.Xe(a),b&&c.getPresentingPlayerType()!==b||YX(c,"cuerangesremoved",a))};
g.k.Od=function(a,b){(b=g.AM(this.app,b))&&b.Od(a)};
g.k.Yl=function(){var a=g.AM(this.app,void 0);return a?a.Yl():!0};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.dg(a,0,100);mM(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){mM(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){mM(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.kd=function(){return this.app.kd()};
g.k.Dp=function(){return this.app.Dp()};
g.k.Wg=function(a){return this.app.Wg(a)};
g.k.getBandwidthEstimate=function(){return iE(this.V().schedule)};
g.k.Jb=function(a,b,c,d){this.V().Ka&&this.app.On.Jb(a,b,c,void 0===d?!1:d)};
g.k.Og=function(a,b,c){this.V().Ka&&this.app.On.Og(a,b,void 0===c?!1:c)};
g.k.Cm=function(a,b){this.V().Ka&&this.app.On.Cm(a,b)};
g.k.Cb=function(a,b){this.V().Ka&&this.app.On.click(a,b)};
g.k.gb=function(a,b,c){if(this.V().Ka){var d=this.app.On;d.elements.has(a);b?d.i.add(a):d.i.delete(a);var e=g.cy(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.sy(e,[f]):g.ty(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.py(e,f,c),d.B.add(a))}};
g.k.Sv=function(a){return this.V().Ka?this.app.On.Sv(a):!1};
g.k.Jc=function(){return g.AM(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.Wk=function(a){this.app.Wk(a)};
g.k.Ru=function(a){this.app.Ru(a)};
g.k.Eo=function(a){this.app.getPresentingPlayerType()===a&&this.app.Eo(a)};
g.k.Jl=function(a,b){return this.app.Jl(a,b)};
g.k.Vk=function(a){this.app.Vk(a)};
g.k.SE=function(){this.app.SE()};
g.k.Lr=function(a,b,c,d,e,f){return this.app.Lr(a,b,c,d,e,f)};
g.k.Tv=function(a,b,c,d,e,f){return this.app.Tv(a,b,c,d,e,f)};
g.k.xo=function(a){this.app.xo(a)};
g.k.pp=function(a,b){b=void 0===b?Infinity:b;this.app.pp(void 0===a?-1:a,b)};
g.k.Pt=function(a,b,c){this.app.Pt(a,b,c)};
g.k.Cn=function(){return this.app.Cn()};
g.k.Ky=function(a,b,c){this.app.Ky(a,b,void 0===c?0:c)};
g.k.Ns=function(){return this.app.Ns()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.Rd=function(){return this.app.Rd()};
g.k.Sn=function(a,b,c){return this.app.Sn(a,b,c)};
g.k.Ca=function(a,b,c,d){c=void 0===c?!1:c;var e;null===(e=g.AM(this.app,d))||void 0===e?void 0:e.Ca(a,b,c)};
g.k.cB=function(){return this.app.cB()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.k.jF=function(a,b){this.ea("aduxmouseover",a,b)};
g.k.iF=function(a,b){this.ea("aduxmouseout",a,b)};
g.k.AF=function(a,b){this.ea("muteadaccepted",a,b)};
g.k.Hz=function(){return this.app.eb().Hz()};
g.k.YA=function(a){this.app.eb().YA(a)};BM.prototype.nF=function(){this.u=(0,g.P)()};
BM.prototype.reset=function(){this.i=this.u=NaN};
BM.prototype.sF=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.i)){if(Math.random()<this.B){b=b?"pbp":"pbs";var c={startTime:this.i};!this.Y.N("web_player_csi_ctt_killswitch")&&a.X&&(c.cttAuthInfo={token:a.X,videoId:a.videoId});qA("seek",c);g.rA("cpn",a.clientPlaybackNonce,"seek");isNaN(this.u)||sA("pl_ss",this.u,"seek");sA(b,(0,g.P)(),"seek")}this.reset()}};CM.prototype.reset=function(){nA(this.timerName)};
CM.prototype.tick=function(a,b){sA(a,b,this.timerName)};
CM.prototype.info=function(a,b){g.rA(a,b,this.timerName)};g.w(DM,g.Q);g.k=DM.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.Hk=function(a){return this.loop||!!a||0<=this.index-1};
g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.B++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.B++}this.ea("shuffle")};
g.k.Ie=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b||this.u.K||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return TE(this.u,this.C[0],a)};
g.k.onReady=function(a){this.i=a;this.loaded&&g.Qt(this.i,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Gk=function(){return this.u.getVideoUrl(g.FM(this).videoId,this.getPlaylistId())};
g.k.xa=function(){this.i=null;(0,g.ge)(this.items);g.Q.prototype.xa.call(this)};var Zva={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},$va={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},awa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Yva={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},Wva={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF",
2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},Xva={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};var JM=new Map;g.w(g.LM,g.Q);g.k=g.LM.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.jf=function(){};
g.k.Pi=function(){return!0};
g.k.xa=function(){this.loaded&&this.unload();g.Q.prototype.xa.call(this)};
g.k.Kb=function(){return{}};
g.k.getOptions=function(){return[]};g.w(g.OM,g.E);g.k=g.OM.prototype;g.k.Rn=ba(20);g.k.Rs=function(){};
g.k.Hm=function(){};
g.k.Lp=function(){return""};
g.k.QF=ba(21);g.k.xa=function(){this.Hm();g.E.prototype.xa.call(this)};g.w(g.PM,g.OM);g.PM.prototype.Rn=ba(19);g.PM.prototype.Rs=function(a){if(this.audioTrack)for(var b=g.r(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.NM(this.u,c.value);a()};
g.PM.prototype.Lp=function(a,b){var c=a.url,d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.ru()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.CF(a));return it(c,d)};
g.PM.prototype.Hm=function(){this.i&&this.i.abort()};g.mPa=new Map;g.w(g.RM,g.OM);g.RM.prototype.Rn=ba(18);
g.RM.prototype.Rs=function(a){var b=this,c=this.B,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.WK&&(d.asrs=1);c=it(c,d);this.Hm();this.i=g.Yt(c,{format:"RAW",onSuccess:function(e){b.i=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),t=l.getAttribute("id"),u="true"===l.getAttribute("lang_default"),v="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.NM(b.u,new g.zF({languageCode:m,languageName:n,name:p,kind:q,id:t,is_servable:!0,is_translateable:v,vss_id:l,is_default:u}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.D[m.languageCode]=m.languageName,b.C.push(m)}a()},
withCredentials:!0})};
g.RM.prototype.Lp=function(a,b){var c=this.B;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};a.translationLanguage&&(b.tlang=g.CF(a));return c=it(c,b)};
g.RM.prototype.Hm=function(){this.i&&this.i.abort()};g.w(SM,g.E);g.k=SM.prototype;g.k.ix=function(){return this.J.getVideoData().ix()};
g.k.sG=function(){return this.J.getVideoData().sG()};
g.k.KJ=function(){var a=this.Gd.get("heartbeat");VM(this,"heartbeat",!1,!0,this.KJ);!a&&this.Gd.has("heartbeat")&&this.J.ea("offlineslatestatechange")};
g.k.tD=function(){VM(this,"annotations_module",!0,void 0,this.tD);var a=this.Gd.get("annotations_module");if(a)for(var b in this.u)if(this.u.hasOwnProperty(b)){var c=b;a.subscribe(c,this.u[c])}};
g.k.JJ=function(){if(!this.Gd.get("ad"))try{UM(this)?VM(this,"ad",!1,!0,this.JJ):this.J.Od("ad")}catch(a){this.J.Od("ad"),g.jy(a)}};
g.k.Dp=function(){return this.i};
g.k.gE=function(){var a={},b=g.TM(this);b&&Object.assign(a,b.gE());return a};
g.k.Ss=function(a,b){Object.assign(this.i,a||null);Object.assign(this.Uu,b||null)};
g.k.xa=function(){g.E.prototype.xa.call(this);WM(this,1,!0);for(var a=g.r(Object.entries(xwa)),b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;this.C.has(c)&&JM.delete(b)}this.C.clear()};
var $2={},xwa=($2.ad="ad.js",$2.annotations_module="annotations_module.js",$2.attribution="attribution.js",$2.creatorendscreen="annotations_module.js",$2.embed="embed.js",$2.endscreen="endscreen.js",$2.heartbeat="heartbeat.js",$2.inline_preview="inline_preview.js",$2.kids="kids.js",$2.remote="remote.js",$2.miniplayer="miniplayer.js",$2.music="music.js",$2.captions="captions.js",$2.unplugged="unplugged.js",$2.ux="ux.js",$2.webgl="webgl.js",$2.ypc="ypc.js",$2.ypc_clickwrap="ypc_clickwrap.js",$2.yto=
"yto.js",$2);g.w(bN,g.ie);bN.prototype.preventDefault=function(){g.ie.prototype.preventDefault.call(this);this.i&&this.i.preventDefault()};
bN.prototype.stopPropagation=function(){g.ie.prototype.stopPropagation.call(this);this.i&&this.i.stopPropagation()};g.w(g.cN,yJ);g.k=g.cN.prototype;g.k.Uo=function(){return!0};
g.k.isView=function(){return!1};
g.k.bG=function(){return!1};
g.k.Me=function(){return this.i};
g.k.Bf=function(){return this.i.src};
g.k.Rx=function(a){this.ma();var b=this.getPlaybackRate();this.i.src=a;this.setPlaybackRate(b)};
g.k.PA=function(){this.ma();this.i.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.i.playbackRate?this.i.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.ma();this.getPlaybackRate()!==a&&(this.i.playbackRate=a);return a};
g.k.Hp=function(){return this.i.loop};
g.k.setLoop=function(a){this.ma();this.i.loop=a};
g.k.canPlayType=function(a,b){return this.i.canPlayType(a,b)};
g.k.il=function(){return this.i.paused};
g.k.xu=function(){return this.i.seeking};
g.k.Nk=function(){return this.i.ended};
g.k.iz=function(){return this.i.muted};
g.k.Ct=function(a){bD();this.ma();this.i.muted=a};
g.k.Kp=function(){return this.i.played||cD([],[])};
g.k.Tf=function(){try{var a=this.i.buffered}catch(b){}return a||cD([],[])};
g.k.Kv=function(){return this.i.seekable||cD([],[])};
g.k.Ox=function(){var a=this.i;return a.getStartDate?a.getStartDate():null};
g.k.getCurrentTime=function(){return this.i.currentTime};
g.k.Qx=function(a){this.ma();this.i.currentTime=a};
g.k.getDuration=function(){return this.i.duration};
g.k.load=function(){this.ma();var a=this.i.playbackRate;try{this.i.load()}catch(b){}this.i.playbackRate=a};
g.k.pause=function(){this.ma();this.i.pause()};
g.k.play=function(){this.ma();var a=this.i.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.k.wh=function(){return this.i.readyState};
g.k.jz=function(){return this.i.networkState};
g.k.hj=function(){return this.i.error?this.i.error.code:null};
g.k.me=function(){return this.i.error?this.i.error.message:""};
g.k.Px=function(){if(window.HTMLVideoElement&&this.i instanceof window.HTMLVideoElement&&this.i.getVideoPlaybackQuality)return this.i.getVideoPlaybackQuality();if(this.i){var a=this.i,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}};
g.k.qf=function(){return!!this.i.webkitCurrentPlaybackTargetIsWireless};
g.k.Io=function(){return!!this.i.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){var a=this.i,b=window.document;$C()?this.i!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():aD()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.En=function(){var a=this.i;return new g.hg(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.um(this.i)};
g.k.setSize=function(a){g.tm(this.i,a)};
g.k.getVolume=function(){return this.i.volume};
g.k.setVolume=function(a){bD();this.ma();this.i.volume=a};
g.k.DD=function(a){this.C[a]||(this.i.addEventListener(a,this.listener),this.C[a]=this.listener)};
g.k.setAttribute=function(a,b){this.i.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.i.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.i.hasAttribute(a)};
g.k.Ju=ba(23);g.k.sx=ba(25);g.k.tx=ba(27);g.k.Rr=ba(29);g.k.ov=function(){return Ix(this.i)};
g.k.Rm=function(a){g.L(this.i,a)};
g.k.getStyle=function(a){return g.im(this.i,a)};
g.k.BE=function(){return g.Tg(document.body,this.i)};
g.k.audioTracks=function(){var a=this.i;if("audioTracks"in a)return a.audioTracks};
g.k.xa=function(){for(var a=g.r(Object.keys(this.C)),b=a.next();!b.done;b=a.next())b=b.value,this.i.removeEventListener(b,this.C[b]);yJ.prototype.xa.call(this)};
g.k.ma=function(){};g.w(eN,g.Q);g.k=eN.prototype;g.k.gT=function(a){a=av(a);if(!ig(a,this.C)){var b=2;this.I&&(b|=8);this.C=a;dN(this,b,!0)}};
g.k.hT=function(){this.I&&dN(this,8,!0);dN(this,2,!1)};
g.k.dA=function(a){var b=av(a);ig(b,this.C)||(this.C=b,(a=g.Yu(a))&&this.wy(a)&&(dN(this,4,!0),this.i.pc(this.B),this.B=this.i.T(this.target,"mouseover",this.eF),this.K=this.i.T(this.target,"mouseout",this.eF)))};
g.k.eF=function(a){a=$u(a);a&&this.wy(a)||(this.C=new g.hg(NaN,NaN),ywa(this))};
g.k.QS=function(){dN(this,1,!0)};
g.k.PR=function(a){a=g.Yu(a);a instanceof Element&&!(0<a.tabIndex)||dN(this,1,!0)};
g.k.QL=function(){this.I=!0;this.i.pc(this.D);this.D=this.i.T(document,"mouseup",this.iT)};
g.k.iT=function(){this.I=!1;dN(this,8,!1);this.i.pc(this.D);this.D=this.i.T(this.target,"mousedown",this.QL)};
g.k.mO=function(a){if(a=(a=a.changedTouches)&&a[0])this.Aa=a.identifier,this.i.pc(this.S),this.S=this.i.T(this.target,"touchend",this.BX,void 0,!0),dN(this,1024,!0)};
g.k.BX=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.Aa){var d=c;break}}d&&(this.i.pc(this.S),this.S=this.i.T(this.target,"touchstart",this.mO,void 0,!0),dN(this,1024,!1))};
g.k.Zk=function(){dN(this,2,!0)};
g.k.resize=function(){g.lj&&ywa(this)};
g.k.toString=function(){return g.Q.prototype.toString.call(this)};g.w(g.fN,g.X);
g.fN.prototype.Pa=function(){var a=this.api.getVideoData(),b=this.api.V();if(a.D&&(a.Wa||b.pfpChazalUi))var c=b.pfpChazalUi?[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},U:[{G:"path",L:"ytp-dni-large-play-button-bg",W:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",W:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{G:"path",L:"ytp-dni-large-play-button-bg",W:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{G:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.D?(g.M(this.element,"ytp-touch-device",b.isMobile),c=[b.D?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},U:[{G:"path",L:"ytp-large-play-button-bg",W:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",W:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{G:"path",L:"ytp-large-play-button-bg",
W:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{G:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{G:"path",L:"ytp-large-play-button-bg",
W:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#f00"}},{G:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.Ra("largePlayButtonChildren",c);a.D&&(a.Wa||b.pfpChazalUi)&&(a=a.Wa?a.Wa:"#1f1f1f",this.Fa("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.w(gN,g.X);g.k=gN.prototype;g.k.show=function(){var a=this;this.yb||(this.B.T(this.api,"videodatachange",function(){g.br(a.i)}),this.B.T(this.api,"videoplayerreset",function(){g.br(a.i)}));
g.X.prototype.show.call(this)};
g.k.hide=function(){this.B&&g.Mx(this.B);g.X.prototype.hide.call(this)};
g.k.xb=function(){g.br(this.i)};
g.k.onStateChange=function(a){var b=this.api.V();b.N("disable_new_pause_state3")&&UE(b)&&(a=a.state.isCued()&&!a.ao.isCued()||g.vM(this.api)&&g.T(a.state,2),g.fm(this.element,"transition-delay",a?"2s":""));g.br(this.i)};
g.k.yW=function(){g.br(this.i)};
g.k.pP=function(){this.u.stop();this.hide();g.br(this.i)};
g.k.Pa=function(){var a=this.api.zb();if(3===this.api.getPresentingPlayerType()&&(a.Ec()||g.T(a,4)))var b=!0;else(b=this.api.tb().Gd.get("ypc"))&&b.vA?b=!0:(b=this.api.V(),b=g.T(a,2)&&sM(this.api)&&b.wd?!0:!1);b?(b=!0,this.C.hide()):(this.C.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!this.api.V().N("disable_new_pause_state3"),b=!(!g.T(a,2)||sM(this.api)||b&&this.api.wv())||g.T(a,1024)?!0:!1));b?(this.u.show(),a=this.api.getVideoData(),this.PX(this.api.getPlaylist(),a)):(this.u.hide(),
g.T(a,1)||this.u.stop())};
g.k.PX=function(){for(var a,b=g.r(g.Ba.apply(0,arguments)),c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof RF&&!c.videoId)){a=this.api.eb().getPlayerSize();var d=g.VE(),e=a.width*d;d*=a.height;if(1280<e||720<d)if(a=c.Ie("maxresdefault.jpg"))break;if(640<e||480<d)if(a=c.Ie("maxresdefault.jpg"))break;if(320<e||180<d)if(a=c.Ie("sddefault.jpg")||c.Ie("hqdefault.jpg")||c.Ie("mqdefault.jpg"))break;if(a=c.Ie("default.jpg"))break}this.D.style.backgroundImage=a?"url("+a+")":""};g.w(g.mN,g.X);g.mN.prototype.resize=function(){};
g.mN.prototype.u=function(a){var b=this;Dwa(this);var c=a.FD,d=this.api.V();"GENERIC_WITHOUT_LINK"!==c||d.D?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.md(pN(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Gk(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.D?this.md(g.nN(a.errorMessage)):this.md(pN(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=
g.Ei(c,{hl:a})),this.md(pN(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.bb&&!d.i&&Cwa(this,function(e){if(g.hN(e,b.api,!UE(b.api.V()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.Na("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var Bwa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.w(qN,g.WC);qN.prototype.Kh=function(){Hwa(this)};
qN.prototype.onVideoDataChange=function(){var a=this,b=this.J.getVideoData();if(b.isValid()){var c=this.J.V(),d=[],e="";if(!c.K){var f=Fwa(this);c.N("enable_web_media_session_metadata_fix")&&g.GE(c)&&f?(d=Gwa(f.thumbnailDetails),f.album&&(e=g.Sz(f.album))):d=[{src:b.Ie("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}Hwa(this);Ewa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.vM(this.J)&&(this.i.delete("nexttrack"),this.i.delete("previoustrack"),
b=function(){a.J.nextVideo()},c=function(){a.J.previousVideo()});
rN(this,"nexttrack",b);rN(this,"previoustrack",c)}};
qN.prototype.xa=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.r(this.i),b=a.next();!b.done;b=a.next())rN(this,b.value,null);g.WC.prototype.xa.call(this)};g.w(sN,g.X);g.k=sN.prototype;g.k.onClick=function(a){g.hN(a,this.J,!0);this.J.Cb(this.element)};
g.k.onVideoDataChange=function(a,b){Jwa(this,b);this.Ad&&Kwa(this,this.Ad)};
g.k.Nc=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&Jwa(this,b);this.i&&Kwa(this,a.state);this.Ad=a.state};
g.k.zd=function(){this.C.show();this.J.ea("paidcontentoverlayvisibilitychange",!0);this.J.gb(this.element,!0)};
g.k.Fb=function(){this.C.hide();this.J.ea("paidcontentoverlayvisibilitychange",!1);this.J.gb(this.element,!1)};g.w(tN,g.X);tN.prototype.hide=function(){this.i.stop();this.message.style.display="none";g.X.prototype.hide.call(this)};
tN.prototype.onStateChange=function(a){Lwa(a.state)?this.i.start():this.hide()};
tN.prototype.u=function(){this.message.style.display="block"};g.w(g.uN,g.zK);g.k=g.uN.prototype;g.k.show=function(){var a=this.Vf();g.zK.prototype.show.call(this);this.Ba&&(this.K.T(window,"blur",this.Fb),this.K.T(document,"click",this.qP));a||this.ea("show",!0)};
g.k.hide=function(){var a=this.Vf();g.zK.prototype.hide.call(this);Mwa(this);a&&this.ea("show",!1)};
g.k.zd=function(a,b){this.u=a;this.X.show();b?(this.S||(this.S=this.K.T(this.J,"appresize",this.dJ)),this.dJ()):this.S&&(this.K.pc(this.S),this.S=void 0)};
g.k.dJ=function(){var a=g.oM(this.J);this.u&&a.uq(this.element,this.u)};
g.k.Fb=function(){var a=this.Vf();Mwa(this);this.X.hide();a&&this.ea("show",!1)};
g.k.qP=function(a){var b=Zu(a);b&&(g.Tg(this.element,b)||this.u&&g.Tg(this.u,b)||!g.wL(a))||this.Fb()};
g.k.Vf=function(){return this.yb&&4!==this.X.state};g.w(wN,g.uN);wN.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(Nwa(this),this.zd()):(this.i&&this.Cb(),this.Fb()))};
wN.prototype.Kh=function(a){this.api.isMutedByMutedAutoplay()&&g.xH(a,2)&&this.Fb()};
wN.prototype.onClick=function(){this.api.unMute();this.Cb()};
wN.prototype.Cb=function(){this.clicked||(this.clicked=!0,this.api.Cb(this.element))};g.w(g.yN,g.WC);g.k=g.yN.prototype;g.k.init=function(){var a=this.api.zb();this.Ub(a);this.Im();this.xb()};
g.k.onVideoDataChange=function(a,b){this.KE!==b.videoId&&(this.KE=b.videoId,a=this.xd,a.va=b&&0<b.fd.length?5E3:3E3,dN(a,512,!0),this.Im())};
g.k.cV=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.Ho=function(){var a=this.api.Bh()&&this.api.qk();return this.Fy||a||this.tE};
g.k.Wi=function(){var a=!this.Ho();g.M(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.wy=function(a){try{if(!g.Tg(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Wg(a);)a=a===this.api.getRootNode()?null:g.Sg(a);return!!a};
g.k.Bj=function(a){var b=this.api.getRootNode();g.M(b,"ytp-autohide",a);g.M(b,"ytp-autohide-active",!0);this.gJ.start(a?250:100);a&&(this.lB=!1,g.kr(b,"ytp-touch-mode"));this.sD=!a;this.api.ex(!a)};
g.k.kF=function(){var a=this.api.getRootNode();g.M(a,"ytp-autohide-active",!1)};
g.k.HV=function(){this.PG=!0};
g.k.GV=function(a){if(this.api.V().N("player_doubletap_to_seek")||this.api.V().N("embeds_web_enable_mobile_touch_fix")&&this.api.V().C)this.PG=!1,this.QG&&this.pc(this.QG),0===this.ow&&BN(this,a)?(this.yz(),this.Hy.start(),this.QG=this.T(this.api.eb(),"touchmove",this.HV,void 0,!0)):this.Hy.stop();!Pwa(this)||!BN(this,a)||this.api.V().C&&this.api.V().N("embeds_web_enable_mobile_touch_fix")||xN(this);var b=this.qB.Vf();if(tE&&Qwa(this,a))b&&g.bv(a);else if(this.xd.u||zN(this,Zu(a))||this.qB.Vf()||
(this.api.zb().isCued(),g.bv(a)),this.lB=!0,g.L(this.api.getRootNode(),"ytp-touch-mode"),this.xd.Zk(),this.api.V().N("player_doubletap_to_seek")&&(b=this.api.zb(),!(!this.api.sf()||g.T(b,2)&&sM(this.api)||g.T(b,64)))){b=Date.now()-this.yL;this.ow+=1;if(350>=b){this.Zu=!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.ow-1);0<d&&d<b?(this.vt(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):
d>2*b&&d<3*b&&(this.vt(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.bv(a)}this.yL=Date.now();this.BN.start()}};
g.k.BV=function(a){if(!Qwa(this,a)){if(!Pwa(this)&&BN(this,a)&&!this.Hy.isActive()){if(g.ZE(this.api.V())&&this.api.zb().isCued()){var b=void 0===b?{}:b;oA("warm");gA();nA();aA(!1);b.cttAuthInfo&&(bA().cttAuthInfo=b.cttAuthInfo);Ts("TIMING_AFT_KEYS",[]);b.Pca?g.rA("yt_lt","hot"):g.rA("yt_lt","warm");Ts("TIMING_ACTION","");Ts("TIMING_WAIT",[]);delete g.N("TIMING_INFO",{}).yt_lt;pA("warm",b.startTime);b=["pbs","pbu"];fA("").info.actionType="watch";b&&Ts("TIMING_AFT_KEYS",b);Ts("TIMING_ACTION","watch");
b=g.N("TIMING_INFO",{});for(var c in b)b.hasOwnProperty(c)&&g.rA(c,b[c]);g.rA("is_nav",1);(c=g.cy())&&g.rA("csn",c);(c=g.N("PREVIOUS_ACTION",void 0))&&!lA()&&g.rA("pa",c);c=cA();b=g.N("CLIENT_PROTOCOL");var d=g.N("CLIENT_TRANSPORT");b&&g.rA("p",b);d&&g.rA("t",d);g.rA("yt_vis",Ala());if("cold"===c.yt_lt){g.rA("yt_lt","cold");b=gla();if(d=$z())sA("srt",b.responseStart),1!==c.prerender&&pA("n",d);c=mla();0<c&&sA("fpt",c);c=gla();c.isPerformanceNavigationTiming&&g.rA("pnt",1,void 0);sA("nreqs",c.requestStart,
void 0);sA("nress",c.responseStart,void 0);sA("nrese",c.responseEnd,void 0);0<c.redirectEnd-c.redirectStart&&(sA("nrs",c.redirectStart,void 0),sA("nre",c.redirectEnd,void 0));0<c.domainLookupEnd-c.domainLookupStart&&(sA("ndnss",c.domainLookupStart,void 0),sA("ndnse",c.domainLookupEnd,void 0));0<c.connectEnd-c.connectStart&&(sA("ntcps",c.connectStart,void 0),sA("ntcpe",c.connectEnd,void 0));c.secureConnectionStart>=$z()&&0<c.connectEnd-c.secureConnectionStart&&(sA("nstcps",c.secureConnectionStart,
void 0),sA("ntcpe",c.connectEnd,void 0));Yz&&Yz.getEntriesByType&&Cla();c=[];if(document.querySelector&&Yz&&Yz.getEntriesByName)for(var e in v2)v2.hasOwnProperty(e)&&(b=v2[e],Bla(e,b)&&c.push(b));for(e=0;e<c.length;e++)g.rA("rc",c[e])}wla();e=cA();b=Wz();if("cold"===e.yt_lt&&(c=mA(),d=c.gelTicks?c.gelTicks:c.gelTicks={},c=c.gelInfos?c.gelInfos:c.gelInfos={},lA())){for(var f in b)"tick_"+f in d||ola(f,b[f]);f=ula();b=dA();d=bA().cttAuthInfo;var h={},l=!1,m;for(m in e)if(!("info_"+m in c)){var n=tla(m,
e[m]);n&&(Gy(f,n),Gy(h,n),l=!0)}l&&iA().info(h,b,d)}aA(!0);yla()}xN(this);g.bv(a)}this.Zu&&(this.Zu=!1)}};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.dw("embedsRequestStorageAccessResult",{resolved:!0});Xna(!0);Iv();window.location.reload()},function(){g.dw("embedsRequestStorageAccessResult",{resolved:!1});
a.Kt()})};
g.k.yz=function(){};
g.k.Gq=function(){};
g.k.vt=function(){};
g.k.xN=function(){};
g.k.Kt=function(){var a=this.api.zb();g.T(a,2)&&sM(this.api)||(g.IJ(a)?this.api.pauseVideo():(this.api.SE(),this.api.playVideo(),this.Wr&&document.activeElement===this.Wr.C.element&&this.api.getRootNode().focus()))};
g.k.CV=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!zN(this,Zu(a)))if(a=this.api.V(),this.api.V().N("player_doubletap_to_seek")&&this.Zu)this.Zu=!1;else if(a.Va&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.Ov(d)})}catch(d){this.Ov(d)}};
g.k.Ov=function(a){String(a).includes("fullscreen error")?g.ky(a):g.jy(a)};
g.k.EV=function(a){Rwa(this,.3,a.scale);g.bv(a)};
g.k.FV=function(a){Rwa(this,.1,a.scale)};
g.k.xb=function(){var a=this.api.eb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.xd.resize();g.M(b,"ytp-fullscreen",this.api.isFullscreen());g.M(b,"ytp-large-width-mode",c);g.M(b,"ytp-small-mode",this.uf());g.M(b,"ytp-tiny-mode",this.Iz());g.M(b,"ytp-big-mode",this.Se());this.ze&&this.ze.resize(a)};
g.k.Kh=function(a){this.Ub(a.state);this.Im()};
g.k.YD=function(){var a=!!this.KE&&!this.api.Xd(),b=2===this.api.getPresentingPlayerType(),c=this.api.V();if(b){if(GNa&&c.N("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=XM(this.api.tb());return a&&b.vG()}return a&&(c.Qj||this.api.isFullscreen()||c.Sg)};
g.k.Im=function(){var a=this.YD();this.Kk!==a&&(this.Kk=a,g.M(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Ub=function(a){var b=a.isCued()||this.api.Yl()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.TG&&this.pc(this.TG),this.TG=this.T(this.api.eb(),"touchstart",this.GV,void 0,b));var c=a.Ec()&&!g.T(a,32)||this.api.Yv();dN(this.xd,128,!c);c=3===this.api.getPresentingPlayerType();dN(this.xd,256,c);c=this.api.getRootNode();if(g.T(a,2))var d=[V2.ENDED];else d=[],g.T(a,8)?d.push(V2.PLAYING):g.T(a,4)&&d.push(V2.PAUSED),g.T(a,1)&&!g.T(a,32)&&d.push(V2.BUFFERING),g.T(a,32)&&
d.push(V2.SEEKING),g.T(a,64)&&d.push(V2.UNSTARTED);g.hc(this.LC,d)||(g.lr(c,this.LC),this.LC=d,g.jr(c,d));d=this.api.V();var e=g.T(a,2);g.M(c,"ytp-hide-controls",("3"===d.controlsType?!e:"1"!==d.controlsType)||b);g.M(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.tE);g.T(a,128)&&!g.xE(d)?(this.ze||(this.ze=new g.mN(this.api),g.H(this,this.ze),g.yM(this.api,this.ze.element,4)),this.ze.u(a.getData()),this.ze.show()):this.ze&&(this.ze.dispose(),this.ze=null)};
g.k.Ak=function(){return this.api.Bh()&&this.api.qk()?(this.api.setCardsVisible(!1,!1),!0):this.api.Xd()?(g.tM(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.tE=a;this.Wi()};
g.k.Se=function(){return!1};
g.k.uf=function(){return!this.Se()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.Iz=function(){return this.uf()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.xi=function(){return this.lB};
g.k.Fn=function(){return null};
g.k.nj=function(){var a=this.api.eb().getPlayerSize();return new g.bm(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.uq=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.eb().ex(a)};
g.k.Zk=function(){};
g.k.AK=function(){return null};g.w(CN,g.Q);g.k=CN.prototype;g.k.Av=function(){return 1E3*this.api.getDuration(this.Nj,!1)};
g.k.stop=function(){this.i&&this.Ae.pc(this.i)};
g.k.Xb=function(){var a=this.api.getProgressState(this.Nj);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.V().N("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.Nj,!1)};this.ea("h")};
g.k.getProgressState=function(){return this.u};
g.k.Nc=function(a){g.xH(a,2)&&this.ea("g")};g.w(DN,g.X);DN.prototype.onClick=function(){this.J.Na("BACK_CLICKED")};g.w(g.EN,g.X);g.EN.prototype.show=function(){g.X.prototype.show.call(this);g.br(this.i)};
g.EN.prototype.hide=function(){this.u.stop();g.X.prototype.hide.call(this)};
g.EN.prototype.Gq=function(a){a?g.T(this.J.zb(),64)||FN(this,sua(),"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?FN(this,uua(),"\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u044f\u043c\u0443\u044e \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044e"):FN(this,qua(),"\u041f\u0430\u0443\u0437\u0430"))};g.w(IN,g.X);g.k=IN.prototype;g.k.zd=function(){this.J.V().N("player_new_info_card_format")&&g.ir(this.J.getRootNode(),"ytp-cards-teaser-shown")&&!g.xE(this.J.V())||(this.u.show(),g.Fv("iv-button-shown"))};
g.k.Fb=function(){g.Fv("iv-button-hidden");this.u.hide()};
g.k.Vf=function(){return this.yb&&4!==this.u.state};
g.k.xa=function(){this.i&&this.i();g.X.prototype.xa.call(this)};
g.k.AU=function(){g.Fv("iv-button-mouseover")};
g.k.onClicked=function(a){this.J.Bh();var b=g.ir(this.J.getRootNode(),"ytp-cards-teaser-shown");g.Fv("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.J.setCardsVisible(!this.J.qk(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.w(KN,g.X);g.k=KN.prototype;g.k.xO=function(){this.J.Bh()&&this.J.qk()&&this.Vf()&&this.Fb()};
g.k.GG=function(){this.Fb();g.Fv("iv-teaser-clicked",null!=this.i);this.J.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.k.rP=function(){g.Fv("iv-teaser-mouseover");this.i&&this.i.stop()};
g.k.bW=function(a){this.J.V().N("player_new_info_card_format")&&!g.xE(this.J.V())&&this.ji.Fb();this.i||!a||this.J.qk()||this.u&&this.u.isActive()||(this.zd(a),g.Fv("iv-teaser-shown"))};
g.k.zd=function(a){this.Ra("text",a.teaserText);this.element.setAttribute("dir",g.Fr(a.teaserText));this.C.show();this.u=new g.I(function(){g.L(this.J.getRootNode(),"ytp-cards-teaser-shown");this.J.N("player_new_info_card_format")&&!g.xE(this.J.V())&&this.ji.Fb();this.eH()},0,this);
this.u.start();HN(this.ji,!1);this.i=new g.I(this.Fb,580+a.durationMs,this);this.i.start();this.D.push(this.Qa("mouseover",this.RH,this));this.D.push(this.Qa("mouseout",this.QH,this))};
g.k.eH=function(){if(!this.J.V().N("player_new_info_card_format")&&g.xE(this.J.V())&&this.yb){var a=this.ji.element.offsetLeft,b=g.Cg("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.ji.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.oR=function(){g.xE(this.J.V())&&this.X.uf()&&this.yb&&this.S.start()};
g.k.RH=function(){this.I.stop();this.i&&this.i.isActive()&&this.K.start()};
g.k.QH=function(){this.K.stop();this.i&&!this.i.isActive()&&this.I.start()};
g.k.OU=function(){this.i&&this.i.stop()};
g.k.NU=function(){this.Fb()};
g.k.Fi=function(){this.Fb()};
g.k.Fb=function(){!this.i||this.B&&this.B.isActive()||(g.Fv("iv-teaser-hidden"),this.C.hide(),g.kr(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.I(function(){for(var a=g.r(this.D),b=a.next();!b.done;b=a.next())this.pc(b.value);this.D=[];this.i&&(this.i.dispose(),this.i=null);HN(this.ji,!0)},330,this),this.B.start())};
g.k.Vf=function(){return this.yb&&4!==this.C.state};
g.k.xa=function(){var a=this.J.getRootNode();a&&g.kr(a,"ytp-cards-teaser-shown");(0,g.ge)(this.u,this.B,this.i);g.X.prototype.xa.call(this)};var a3={},LN=(a3.BUTTON="ytp-button",a3.TITLE_NOTIFICATIONS="ytp-title-notifications",a3.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",a3.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",a3.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",a3);g.w(MN,g.X);
MN.prototype.onClick=function(){this.api.Cb(this.element);var a=!this.i;this.Ra("label",a?"\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435");
this.Ra("pressed",a);Uwa(this,a)};g.w(g.ON,g.X);g.ON.prototype.u=function(){g.L(this.element,"ytp-sb-subscribed")};
g.ON.prototype.B=function(){g.kr(this.element,"ytp-sb-subscribed")};g.w(PN,g.X);g.k=PN.prototype;g.k.cG=function(){Ywa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.ID=function(){if(Wwa(this)&&!this.isExpanded()){this.Ra("flyoutUnfocusable","false");this.Ra("channelTitleFocusable","0");this.B&&this.B.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.gb(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.Oh&&a.subscribed&&(this.u.show(),this.api.gb(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.mD=function(){this.Ra("flyoutUnfocusable","true");this.Ra("channelTitleFocusable","-1");this.B&&this.B.start()};
g.k.Pa=function(){var a=this.api.getVideoData(),b=this.api.V(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.dc&&!!a.Nh:g.xE(b)&&(c=!!a.videoId&&!!a.dc&&!!a.Nh&&!(a.D&&b.pfpChazalUi)&&!b.qc&&!(b.C&&200>this.api.getPlayerSize().width));var d=g.fF(this.api.V())+a.dc;g.xE(this.api.V())&&(d=g.Ei(d,g.gM("emb_ch_name_ex")));var e=a.dc,f=a.Nh;b=g.xE(b)?a.expandedTitle:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;c?(e=g.fF(this.api.V())+e,this.K!==
f&&(this.i.style.backgroundImage="url("+f+")",this.K=f),this.Ra("channelLink",e),this.Ra("channelLogoLabel",g.$H('\u0424\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u0430\u0432\u0442\u043e\u0440\u0430 \u043a\u0430\u043d\u0430\u043b\u0430 "$CHANNEL_NAME"',{CHANNEL_NAME:b})),g.L(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.kr(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.gb(this.i,c&&this.oa);this.subscribeButton&&(this.subscribeButton.channelId=a.Xi);this.Ra("expandedTitle",
a.expandedTitle);this.Ra("channelTitleLink",d);this.Ra("expandedSubtitle",a.expandedSubtitle)};g.w(g.RN,g.zK);g.RN.prototype.Ra=function(a,b){g.zK.prototype.Ra.call(this,a,b);this.ea("size-change")};g.w(UN,g.zK);UN.prototype.lM=function(){this.ea("size-change")};
UN.prototype.focus=function(){this.content.focus()};
UN.prototype.ST=function(){this.ea("back")};g.w(g.VN,UN);g.VN.prototype.Gc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.ec(this.items,a,Zwa);if(0<=b)return;b=~b;g.$b(this.items,b,0,a);g.Qg(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.zF,this);this.menuItems.ea("size-change")};
g.VN.prototype.Gf=function(a){a.unsubscribe("size-change",this.zF,this);this.isDisposed()||(g.Ub(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ea("size-change"))};
g.VN.prototype.zF=function(){this.menuItems.ea("size-change")};
g.VN.prototype.focus=function(){for(var a=0,b=0;b<this.items.length;b++)if("true"===this.items[b].element.getAttribute("aria-checked")){a=b;break}this.items[a].focus()};g.w(XN,g.RN);XN.prototype.i=function(a){g.cv(a)||39!==g.dv(a)||(this.element.click(),g.bv(a))};g.w(ZN,g.RN);ZN.prototype.onClick=function(){this.setValue(!this.checked);this.ea("select",this.checked)};
ZN.prototype.getValue=function(){return this.checked};
ZN.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.w($N,g.VN);g.k=$N.prototype;g.k.kU=function(){kN(this.Ur.element)};
g.k.vU=function(){bO(this,this.J.getDebugText(!0))&&FN(this.wc,CK())};
g.k.wU=function(){bO(this,this.J.getVideoEmbedCode())&&FN(this.wc,lua());this.J.Cb(this.lj.element);FL("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.xU=function(){bO(this,this.J.getVideoUrl(!0,!0))&&FN(this.wc,HK());this.J.Cb(this.getVideoUrl.element);FL("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.yU=function(){bO(this,this.J.getVideoUrl(!1,!0))&&FN(this.wc,HK());this.J.Cb(this.pj.element);FL("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.wM=function(a){var b;null===(b=this.Bi)||void 0===b?void 0:b.setValue(a)};
g.k.HU=function(){this.J.setLoopVideo(this.Bi.getValue());this.Ab.Fb();this.J.Cb(this.Bi.element)};
g.k.wV=function(a){this.J.reportPlaybackIssue();if(g.hN(a,this.J,!UE(this.J.V()))){a=this.J;var b=a.app.getFeedbackProductData();a.Na("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Ab.Fb()};
g.k.PV=function(){this.J.showVideoInfo();this.Ab.Fb()};
g.k.onVideoDataChange=function(a,b){axa(this,b)};
g.k.Yb=function(a){g.VN.prototype.Yb.call(this,a);this.J.gb(this.lj.element,a);this.J.gb(this.getVideoUrl.element,a);this.J.gb(this.pj.element,a);this.Bi&&this.J.gb(this.Bi.element,a)};g.w(g.cO,g.uN);g.k=g.cO.prototype;g.k.show=function(){g.uN.prototype.show.call(this);this.Rt()};
g.k.hide=function(){g.uN.prototype.hide.call(this);1<this.i.length&&g.eO(this)};
g.k.Rt=function(){cxa(this);this.yb&&(bxa(this),g.tm(this.element,this.size))};
g.k.oh=function(){var a=this.i.pop();dO(this,a,this.i[this.i.length-1],!0)};
g.k.sP=function(a){if(!g.cv(a))switch(g.dv(a)){case 27:this.Fb();g.bv(a);break;case 37:1<this.i.length&&this.oh();g.bv(a);break;case 39:g.bv(a)}};
g.k.focus=function(){this.i.length&&this.i[this.i.length-1].focus()};
g.k.xa=function(){g.uN.prototype.xa.call(this);this.C&&this.C.dispose();this.I&&this.I.dispose()};g.w(g.fO,g.cO);g.k=g.fO.prototype;g.k.uP=function(a){var b,c=Zu(a);c&&(Yg(c,"a")||Yg(c,null,"ytp-no-contextmenu",void 0))||this.yb||(this.va=(a=null===(b=a.touches)||void 0===b?void 0:b.item(0))?new g.hg(a.clientX,a.clientY):new g.hg(0,0),this.Z.start())};
g.k.TM=function(){this.Z.stop()};
g.k.hW=function(){this.open(this.va)};
g.k.show=function(){this.D||(this.D=new $N(this.J,this.Aa,this,this.wc),g.H(this,this.D),g.aO(this,this.D));this.D.wM(this.J.getLoopVideo());g.cO.prototype.show.call(this);this.J.gb(this.element,!0);this.D.Yb(!0)};
g.k.hide=function(){exa(this);g.cO.prototype.hide.call(this);this.J.gb(this.element,!1);this.D&&this.D.Yb(!1)};
g.k.hU=function(a){var b=Zu(a);this.yb||b&&(Yg(b,"a")||Yg(b,null,"ytp-no-contextmenu",void 0))||(g.bv(a),this.open(av(a)))};
g.k.open=function(a){fxa(this);var b=this.J.getVideoData();g.M(this.element,"ytp-dni",b.D);this.element.style.left="";this.element.style.top="";a.x++;a.y++;this.zd();var c=document.body;b=new Zl(0,Infinity,Infinity,0);var d=xg(c);for(var e=d.i.body,f=d.i.documentElement,h=Gg(d.i);c=Eca(c);)if(!(g.Cc&&0==c.clientWidth||g.Ig&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=km(c,"overflow")){var l=g.om(c),m=new g.hg(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,l.y);b.right=Math.min(b.right,
l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,h);d=d.i;d=Fg(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=a,e=b,f=5,65==(f&65)&&(h.x<d.left||h.x>=d.right)&&(f&=-2),132==(f&132)&&(h.y<d.top||h.y>=d.bottom)&&
(f&=-5),h.x<d.left&&f&1&&(h.x=d.left),f&16&&(c=h.x,h.x<d.left&&(h.x=d.left),h.x+e.width>d.right&&(e.width=Math.min(d.right-h.x,c+e.width-d.left),e.width=Math.max(e.width,0))),h.x+e.width>d.right&&f&1&&(h.x=Math.max(d.right-e.width,d.left)),h.y<d.top&&f&4&&(h.y=d.top),f&32&&(c=h.y,h.y<d.top&&(h.y=d.top),h.y+e.height>d.bottom&&(e.height=Math.min(d.bottom-h.y,c+e.height-d.top),e.height=Math.max(e.height,0))),h.y+e.height>d.bottom&&f&4&&(h.y=Math.max(d.bottom-e.height,d.top)));d=new g.bm(0,0,0,0);d.left=
a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.mm(this.element,new g.hg(d.left,d.top));g.Mx(this.B);this.B.T(document,"contextmenu",this.qU);this.B.T(this.J,"fullscreentoggled",this.onFullscreenToggled);this.B.T(this.J,"pageTransition",this.tP)};
g.k.qU=function(a){if(!g.cv(a)){var b=Zu(a);g.Tg(this.element,b)||this.Fb();this.J.V().disableNativeContextMenu&&g.bv(a)}};
g.k.onFullscreenToggled=function(){this.Fb();fxa(this)};
g.k.tP=function(){this.Fb()};g.w(g.gO,g.X);g.gO.prototype.onClick=function(){var a=this,b,c,d,e;return g.A(function(f){if(1==f.i)return b=a.api.V(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.x(f,hxa(a,e),2);f.u&&gxa(a);a.api.Cb(a.element);g.sa(f)})};
g.gO.prototype.Pa=function(){var a=this.api.V(),b=this.api.getVideoData();this.Ra("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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.Ra("title-attr","\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443");
var c=this.api.eb().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.u&&b.dk&&!(b.D&&a.pfpChazalUi);g.M(this.element,"ytp-copylink-button-visible",this.visible);g.yK(this,this.visible);iO(this.tooltip);this.api.gb(this.element,this.visible&&this.oa)};
g.gO.prototype.Yb=function(a){g.X.prototype.Yb.call(this,a);this.api.gb(this.element,this.visible&&a)};
g.gO.prototype.xa=function(){g.X.prototype.xa.call(this);g.kr(this.element,"ytp-copylink-button-visible")};g.w(jO,g.X);g.k=jO.prototype;g.k.show=function(){g.X.prototype.show.call(this);g.br(this.i)};
g.k.hide=function(){this.u.stop();g.kr(this.element,"ytp-chapter-seek");g.kr(this.element,"ytp-time-seeking");g.X.prototype.hide.call(this)};
g.k.vt=function(a,b,c,d){this.wt(a,d)};
g.k.wt=function(a,b){g.dr(this.i);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.kr(this.element,"ytp-chapter-seek");this.Ra("chapterSeekText","");a=g.$H("$TOTAL_SEEK_TIME \u0441\u0435\u043a.",{TOTAL_SEEK_TIME:b.toString()});this.Ra("seekTime",a)};
g.k.QA=function(a,b){g.dr(this.i);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.L(this.element,"ytp-chapter-seek");this.Ra("chapterSeekText",b);this.Ra("seekTime","")};g.w(kO,g.X);g.k=kO.prototype;g.k.show=function(){g.X.prototype.show.call(this);g.br(this.u)};
g.k.hide=function(){this.B.stop();g.kr(this.element,"ytp-chapter-seek");g.kr(this.element,"ytp-time-seeking");g.X.prototype.hide.call(this)};
g.k.vt=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.J.Cb(e);g.dr(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.J.eb().getPlayerSize().height;e=this.J.eb().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.Fa("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=
h+"px";1===a?(a=this.J.eb().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.Fa("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");ixa(this,d)};
g.k.wt=function(a,b){var c=this.J.eb().getPlayerSize();g.dr(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.L(this.element,"ytp-time-seeking");this.i.style.width="110px";this.i.style.height="110px";1===a?(this.i.style.right="",this.i.style.left=.8*c.width-30+"px"):-1===a&&(this.i.style.right="",this.i.style.left=.1*c.width-15+"px");this.i.style.top=.5*c.height+15+"px";ixa(this,b)};
g.k.QA=function(a,b){g.dr(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");this.i.style.width="0";this.i.style.height="0";g.L(this.element,"ytp-chapter-seek");this.Ra("seekText",b);this.Ra("seekTime","")};var nPa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(nPa).reduce(function(a,b){a[nPa[b]]=b;return a},{});
var oPa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(oPa).reduce(function(a,b){a[oPa[b]]=b;return a},{});
var pPa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(pPa).reduce(function(a,b){a[pPa[b]]=b;return a},{});var b3,qPa;b3=[{option:"#fff",text:"\u0411\u0435\u043b\u044b\u0439"},{option:"#ff0",text:"\u0416\u0435\u043b\u0442\u044b\u0439"},{option:"#0f0",text:"\u0417\u0435\u043b\u0435\u043d\u044b\u0439"},{option:"#0ff",text:"\u0413\u043e\u043b\u0443\u0431\u043e\u0439"},{option:"#00f",text:"\u0421\u0438\u043d\u0438\u0439"},{option:"#f0f",text:"\u041f\u0443\u0440\u043f\u0443\u0440\u043d\u044b\u0439"},{option:"#f00",text:"\u041a\u0440\u0430\u0441\u043d\u044b\u0439"},{option:"#080808",text:"\u0427\u0435\u0440\u043d\u044b\u0439"}];
qPa=[{option:0,text:lO(0)},{option:.25,text:lO(.25)},{option:.5,text:lO(.5)},{option:.75,text:lO(.75)},{option:1,text:lO(1)}];
g.pO=[{option:"fontFamily",text:"\u0421\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e \u0448\u0440\u0438\u0444\u0442\u043e\u0432",options:[{option:1,text:"\u041c\u043e\u043d\u043e\u0448\u0438\u0440\u0438\u043d\u043d\u044b\u0439 \u0441 \u0437\u0430\u0441\u0435\u0447\u043a\u0430\u043c\u0438"},{option:2,text:"\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441 \u0437\u0430\u0441\u0435\u0447\u043a\u0430\u043c\u0438"},{option:3,text:"\u041c\u043e\u043d\u043e\u0448\u0438\u0440\u0438\u043d\u043d\u044b\u0439 \u0431\u0435\u0437 \u0437\u0430\u0441\u0435\u0447\u0435\u043a"},
{option:4,text:"\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u0435\u0437 \u0437\u0430\u0441\u0435\u0447\u0435\u043a"},{option:5,text:"\u041e\u0431\u044b\u0447\u043d\u044b\u0439"},{option:6,text:"\u041a\u0443\u0440\u0441\u0438\u0432"},{option:7,text:"\u041c\u0430\u043b\u044b\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u043d\u044b\u0435"}]},{option:"color",text:"\u0426\u0432\u0435\u0442 \u0448\u0440\u0438\u0444\u0442\u0430",options:b3},{option:"fontSizeIncrement",
text:"\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430",options:[{option:-2,text:lO(.5)},{option:-1,text:lO(.75)},{option:0,text:lO(1)},{option:1,text:lO(1.5)},{option:2,text:lO(2)},{option:3,text:lO(3)},{option:4,text:lO(4)}]},{option:"background",text:"\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430",options:b3},{option:"backgroundOpacity",text:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u043d\u0430",options:qPa},{option:"windowColor",
text:"\u0426\u0432\u0435\u0442 \u043e\u043a\u043d\u0430",options:b3},{option:"windowOpacity",text:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u043e\u043a\u043d\u0430",options:qPa},{option:"charEdgeStyle",text:"\u0421\u0442\u0438\u043b\u044c \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432",options:[{option:0,text:"\u0411\u0435\u0437 \u043a\u043e\u043d\u0442\u0443\u0440\u0430"},{option:4,text:"\u0421 \u0442\u0435\u043d\u044c\u044e"},
{option:1,text:"\u041f\u0440\u0438\u043f\u043e\u0434\u043d\u044f\u0442\u044b\u0439"},{option:2,text:"\u0423\u0442\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439"},{option:3,text:"\u0413\u0440\u0430\u043d\u0438\u0446\u044b"}]},{option:"textOpacity",text:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0448\u0440\u0438\u0444\u0442\u0430",options:[{option:.25,text:lO(.25)},{option:.5,text:lO(.5)},{option:.75,text:lO(.75)},{option:1,text:lO(1)}]}];g.w(g.oO,g.WC);g.k=g.oO.prototype;
g.k.JK=function(a){var b=!1,c=g.dv(a),d=Zu(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.V();g.cv(a)?(e=!1,h=!0):l.Af&&(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);GN(this.wc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);GN(this.wc,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.sf()&&(this.api.startSeekCsiAction(),
this.api.seekTo(0),h=f=!0);break;case 35:this.api.sf()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&nO(this,!0);(b||h)&&this.xd.Zk();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.bv(a);l.u&&(a={keyCode:g.dv(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.cv(a),fullscreen:this.api.isFullscreen()},this.api.Na("onKeyPress",a))};
g.k.KK=function(a){this.handleGlobalKeyUp(g.dv(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.wM(this.api.tb());c&&(c=c.Jo)&&c.yb&&(c.FK(a),b=!0);9===a&&(nO(this,!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.V();if(e.Af)return h;var l=g.wM(this.api.tb());if(l&&(l=l.Jo)&&l.yb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.EK(a)}e.D||h||(h=f||String.fromCharCode(a).toLowerCase(),this.u+=h,0==="awesome".indexOf(this.u)?(h=!0,7===this.u.length&&mr(this.api.getRootNode(),"ytp-color-party")):(this.u=h,h=0==="awesome".indexOf(this.u)));if(!h){f=(f=this.api.getVideoData())?f.wl:[];l=$F?d:c;switch(a){case 80:b&&
!e.oa&&(FN(this.wc,tua(),"\u041d\u0430\u0437\u0430\u0434"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.oa&&(FN(this.wc,IK(),"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435"),this.api.nextVideo(),h=!0);break;case 74:this.api.sf()&&(this.api.startSeekCsiAction(),e.N("web_player_seek_chapters_by_shortcut")&&this.i?this.i.wt(-1,10):FN(this.wc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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.sf()&&(this.api.startSeekCsiAction(),e.N("web_player_seek_chapters_by_shortcut")&&this.i?this.i.wt(1,10):FN(this.wc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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.sf()&&(this.api.startSeekCsiAction(),l&&e.N("web_player_seek_chapters_by_shortcut")?(l=kxa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(this.i.QA(-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.N("web_player_seek_chapters_by_shortcut")&&this.i?this.i.wt(-1,5):FN(this.wc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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.sf()&&(this.api.startSeekCsiAction(),l&&e.N("web_player_seek_chapters_by_shortcut")?(l=jxa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(this.i.QA(1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.N("web_player_seek_chapters_by_shortcut")&&null!=this.i?this.i.wt(1,5):FN(this.wc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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(),GN(this.wc,this.api.getVolume(),!1)):(this.api.mute(),GN(this.wc,0,!0));h=!0;break;case 32:case 75:e.oa||(h=!g.IJ(this.api.zb()),this.wc.Gq(h),h?this.api.playVideo():this.api.pauseVideo(),h=!0);break;case 190:b?e.ac&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),Swa(this.wc,!1),h=!0):this.api.sf()&&(mxa(this,1),h=!0);break;case 188:b?e.ac&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h-
.25,!0),Swa(this.wc,!0),h=!0):this.api.sf()&&(mxa(this,-1),h=!0);break;case 70:zwa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0);
break;case 27:this.C()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.TM(this.api.tb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),Twa(this.wc,!e||e&&!e.displayName),h=!0);break;case 79:qO(this,"textOpacity");break;case 87:qO(this,"windowOpacity");break;case 187:case 61:qO(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:qO(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.sf()&&(this.api.startSeekCsiAction(),
a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.xd.Zk()}return h};
g.k.xa=function(){g.dr(this.B);g.WC.prototype.xa.call(this)};g.w(rO,g.X);rO.prototype.Pa=function(){var a=g.xE(this.J.V())&&g.vM(this.J)&&g.T(this.J.zb(),128),b=this.J.getPlayerSize();this.visible=this.i.uf()&&!a&&240<=b.width&&!(this.J.getVideoData().D&&this.J.V().pfpChazalUi);g.M(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&iO(this.tooltip);this.J.gb(this.element,this.visible&&this.oa)};
rO.prototype.Yb=function(a){g.X.prototype.Yb.call(this,a);this.J.gb(this.element,this.visible&&a)};
rO.prototype.xa=function(){g.X.prototype.xa.call(this);g.kr(this.element,"ytp-overflow-button-visible")};g.w(sO,g.uN);g.k=sO.prototype;g.k.vP=function(a){a=Zu(a);g.Tg(this.element,a)&&(g.Tg(this.i,a)||g.Tg(this.closeButton,a)||vN(this))};
g.k.Fb=function(){g.uN.prototype.Fb.call(this);this.tooltip.jj(this.element)};
g.k.show=function(){this.yb&&this.J.ea("OVERFLOW_PANEL_OPENED");g.uN.prototype.show.call(this);this.element.setAttribute("aria-modal","true");nxa(this,!0)};
g.k.hide=function(){g.uN.prototype.hide.call(this);this.element.removeAttribute("aria-modal");nxa(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.Vf()&&vN(this)};
g.k.focus=function(){for(var a=g.r(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.yb){b.focus();break}};g.w(uO,g.X);uO.prototype.onClick=function(a){g.hN(a,this.api)&&this.api.playVideoAt(this.index)};g.w(vO,g.uN);g.k=vO.prototype;g.k.show=function(){g.uN.prototype.show.call(this);this.B.T(this.api,"videodatachange",this.XB);this.B.T(this.api,"onPlaylistUpdate",this.XB);this.XB()};
g.k.hide=function(){g.uN.prototype.hide.call(this);g.Mx(this.B);this.updatePlaylist(null)};
g.k.XB=function(){this.updatePlaylist(this.api.getPlaylist())};
g.k.UA=function(){var a=this.playlist,b=a.B;if(b===this.C)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.i[a.index];else{for(var c=g.r(this.i),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.i=[];for(d=0;d<c;d++){var e=new uO(this.api,a,d);this.i.push(e);e.Ea(this.items)}this.selected=this.i[a.index];this.C=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.gW=function(a){var b=this.api.getVideoUrl(!0);g.iN(b,this.api,a)};
g.k.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.UA,this),this.playlist=a,this.C=null,a){a.subscribe("shuffle",this.UA,this);var b=a.author,c={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(c.AUTHOR=b);this.update({title:a.title,subtitle:g.$H(b?"$AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",c),playlisturl:this.api.getVideoUrl(!0)});this.UA()}else this.yb&&this.hide();else this.playlist&&
this.UA()};
g.k.focus=function(){this.selected.focus()};
g.k.xa=function(){this.hide();g.uN.prototype.xa.call(this)};g.w(wO,g.X);
wO.prototype.Pa=function(){var a=g.xE(this.api.V());g.M(this.element,"ytp-playlist-menu-button-tiny",400>this.api.eb().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.$H("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.$H('\u041f\u043b\u0435\u0439\u043b\u0438\u0441\u0442 "$PLAYLIST_NAME"',{PLAYLIST_NAME:this.playlist.title})}),this.yb||(this.show(),iO(this.tooltip)),
this.visible=!0,this.Yb(!0)):this.yb&&(this.hide(),this.Yb(!1),iO(this.tooltip))};
wO.prototype.Yb=function(a){g.X.prototype.Yb.call(this,a);this.api.gb(this.element,this.visible&&a)};
wO.prototype.i=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Pa,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Pa,this);this.Pa()};g.w(xO,g.X);g.k=xO.prototype;
g.k.YB=function(a,b){if(!this.C){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.vm(this.title,p);a=this.tooltipRenderer.detailsText;c=!1;if((null===(d=null===a||void 0===a?void 0:a.runs)||void 0===d?0:d.length)&&a.runs[0].text){p=a.runs[0].text.toString();d=p.indexOf("$TARGET_ICON");if(-1<d)if(this.tooltipRenderer.targetId){a=
[];p=p.split("$TARGET_ICON");var q=new g.vK({G:"span",L:"ytp-promotooltip-details-icon",U:[rPa[this.tooltipRenderer.targetId]]});g.H(this,q);for(var t=[],u=g.r(p),v=u.next();!v.done;v=u.next())v=new g.vK({G:"span",L:"ytp-promotooltip-details-component",ya:v.value}),g.H(this,v),t.push(v);2===p.length?(a.push(t[0].element),a.push(q.element),a.push(t[1].element)):1===p.length&&(0===d?(a.push(q.element),a.push(t[0].element)):(a.push(t[0].element),a.push(q.element)));d=a.length?a:null}else d=null;else d=
p;if(d){if("string"!==typeof d)for(g.Pg(this.details),c=g.r(d),d=c.next();!d.done;d=c.next())this.details.appendChild(d.value);else this.update({details:d});c=!0}}g.vm(this.details,c);c=this.tooltipRenderer.acceptButton;d=!1;(null===(h=null===(f=null===(e=null===c||void 0===c?void 0:c.buttonRenderer)||void 0===e?void 0:e.text)||void 0===f?void 0:f.runs)||void 0===h?0:h.length)&&c.buttonRenderer.text.runs[0].text&&(this.update({acceptButtonText:c.buttonRenderer.text.runs[0].text.toString()}),d=!0);
g.vm(this.acceptButton,d);e=this.tooltipRenderer.dismissButton;f=!1;(null===(n=null===(m=null===(l=null===e||void 0===e?void 0:e.buttonRenderer)||void 0===l?void 0:l.text)||void 0===m?void 0:m.runs)||void 0===n?0:n.length)&&e.buttonRenderer.text.runs[0].text&&(this.update({dismissButtonText:e.buttonRenderer.text.runs[0].text.toString()}),f=!0);g.vm(this.dismissButton,f)}b&&(this.B=b);this.i=oxa(this);this.D=!1;this.J.V().N("web_player_hide_nitrate_promo_tooltip")||g.yK(this,!0);(b=!this.i)||(b=this.i,
l=window.getComputedStyle(b),b="none"===l.display||"hidden"===l.visibility||"true"===b.getAttribute("aria-hidden"));b||this.J.Je()?g.yK(this,!1):(b=g.um(this.i),b.width&&b.height?(this.K.uq(this.element,this.i),l=this.J.eb().getPlayerSize().height-g.um(this.element).height-b.height-12,this.element.style.top=l+"px",l=this.Fa("ytp-promotooltip-pointer"),m=g.sm(this.i,this.J.getRootNode()),n=Number(this.element.style.left.replace(/[^\d\.]/g,"")),e=this.J.isFullscreen()?18:12,l.style.left=m.x-n+b.width/
2-e+"px"):g.yK(this,!1));this.I||(this.I=!0,zO(this,0));this.u&&this.J.gb(this.element,this.yb)}};
g.k.jU=function(){yO(this);this.D=!0};
g.k.rT=function(){this.C=!0;zO(this,1);this.J.ea("promotooltipacceptbuttonclicked",this.acceptButton);yO(this);this.u&&this.J.Cb(this.acceptButton)};
g.k.pU=function(){this.C=!0;zO(this,2);yO(this);this.u&&this.J.Cb(this.dismissButton)};
g.k.wP=function(a){var b,c;if(1===this.J.getPresentingPlayerType()){var d=!0,e=g.Cg("ytp-ad-overlay-ad-info-dialog-container"),f=Zu(a);if(this.B&&f&&g.Tg(this.B,f))this.B=null;else{1===this.J.getPresentingPlayerType()&&f&&Array.from(f.classList).forEach(function(l){l.startsWith("ytp-ad")&&(d=!1)});
var h=pxa(this.tooltipRenderer);"TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null===(b=this.tooltipRenderer.dismissStrategy)||void 0===b?void 0:b.type)?h&&(d=d&&!g.Tg(this.element,f)):"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null===(c=this.tooltipRenderer.dismissStrategy)||void 0===c?void 0:c.type)&&(d=h?!1:d&&g.Tg(this.element,f));this.i&&this.yb&&!e&&(!f||d&&g.wL(a))&&(this.C=!0,yO(this))}}};
g.k.xb=function(){this.D||(this.i||(this.i=oxa(this)),this.YB())};
var rPa={"ytp-settings-button":g.LK()};g.w(AO,g.X);AO.prototype.onStateChange=function(a){g.yK(this,g.T(a.state,2))};
AO.prototype.onClick=function(){this.J.zb();this.J.playVideo()};g.w(g.BO,g.X);g.BO.prototype.onClick=function(){var a=this.api.V(),b=this.api.getVideoData(this.api.getPresentingPlayerType()),c=this.api.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);if(navigator.share)try{var d=navigator.share({title:b.title,url:a});d instanceof Promise&&d.catch(qxa)}catch(e){e instanceof Error&&qxa(e)}else this.i.Ak(),vN(this.B,this.element,!1);this.api.Cb(this.element)};
g.BO.prototype.Pa=function(){var a=this.api.V(),b=this.api.getVideoData(),c=g.xE(a)&&g.vM(this.api)&&g.T(this.api.zb(),128);this.Ra("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});a=a.disableSharing&&2!==this.api.getPresentingPlayerType()||
!b.showShareButton||b.dk||c||b.D&&a.pfpChazalUi;c=this.api.eb().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.u&&!a;g.M(this.element,"ytp-share-button-visible",this.visible);g.yK(this,this.visible);iO(this.tooltip);this.api.gb(this.element,this.visible&&this.oa)};
g.BO.prototype.Yb=function(a){g.X.prototype.Yb.call(this,a);this.api.gb(this.element,this.visible&&a)};
g.BO.prototype.xa=function(){g.X.prototype.xa.call(this);g.kr(this.element,"ytp-share-button-visible")};g.w(g.CO,g.uN);g.k=g.CO.prototype;g.k.xP=function(a){a=Zu(a);g.Tg(this.D,a)||g.Tg(this.closeButton,a)||vN(this)};
g.k.Fb=function(){g.uN.prototype.Fb.call(this);this.tooltip.jj(this.element)};
g.k.show=function(){var a=this.yb;g.uN.prototype.show.call(this);this.Pa();a||this.api.Na("onSharePanelOpened")};
g.k.WS=function(){this.yb&&this.Pa()};
g.k.Pa=function(){var a=this;g.L(this.element,"ytp-share-panel-loading");g.kr(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&QL(this.api.Sl(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.kr(a.element,"ytp-share-panel-loading"),sxa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.IE(this.api.V())&&(b=g.Ei(b,g.gM("emb_share")));this.Ra("link",b);this.Ra("linkText",b);this.Ra("shareLinkWithUrl",g.$H("\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u0443 \u0441\u0441\u044b\u043b\u043a\u0443: $URL",{URL:b}));kN(this.B)};
g.k.onFullscreenToggled=function(a){!a&&this.Vf()&&vN(this)};
g.k.focus=function(){this.B.focus()};
g.k.xa=function(){g.uN.prototype.xa.call(this);rxa(this)};g.w(FO,g.X);g.k=FO.prototype;g.k.lF=function(){};
g.k.mF=function(){};
g.k.kx=function(){return!0};
g.k.mX=function(){if(this.expanded){this.Aa.show();var a=this.I.element.scrollWidth}else a=this.I.element.scrollWidth,this.Aa.hide();this.Wa=34+a;g.M(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Wa)+"px";this.va.start()};
g.k.HR=function(){this.badge.element.style.width=(this.expanded?this.Wa:34)+"px";this.Ka.start()};
g.k.LX=function(){g.M(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.Th=function(){this.kx()?this.S.show():this.S.hide();txa(this)};
g.k.yP=function(){this.enabled=!1;this.Th()};
g.k.KX=function(a){this.Za=a;this.Th()};
g.k.VT=function(a){this.Sa=1===a;this.Th();g.M(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.tU=function(){g.M(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.J.isFullscreen());this.Th()};g.w(GO,FO);g.k=GO.prototype;g.k.xa=function(){HO(this);FO.prototype.xa.call(this)};
g.k.lF=function(a){a.target!==this.dismissButton.element&&(vxa(this,!1),this.J.Na("innertubeCommand",this.onClickCommand))};
g.k.mF=function(){this.B=!0;vxa(this,!0);this.Th()};
g.k.fV=function(a){this.Ha=a;this.Th()};
g.k.XU=function(a){var b=this.J.getVideoData();b&&b.videoId===this.videoId&&this.Ba&&(this.X=a,a||(a=3+this.J.getCurrentTime(),this.Dd(a)))};
g.k.onVideoDataChange=function(a,b){var c;if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.B=!1,this.i=!0,this.X=this.Ba=this.u=this.K=!1,HO(this);if(a||!b.videoId)this.D=this.C=!1;a=b.shoppingOverlayRenderer;this.Ha=this.enabled=!1;if(a){this.enabled=!0;var d,e,f;if(!this.C){var h=null===(d=a.badgeInteractionLogging)||void 0===d?void 0:d.trackingParams;(this.C=!!h)&&this.J.Cm(this.badge.element,h||null)}this.D||(this.D=!(null===(e=a.dismissButton)||void 0===e||!e.trackingParams))&&
this.J.Cm(this.dismissButton.element,(null===(f=a.dismissButton)||void 0===f?void 0:f.trackingParams)||null);this.text=g.Sz(a.text);if(d=null===(c=a.dismissButton)||void 0===c?void 0:c.a11yLabel)this.Va=g.Sz(d);this.onClickCommand=a.onClickCommand;this.timing=a.timing;jG(b)?this.X=this.Ba=!0:this.Dd()}uxa(this);EO(this);this.Th()};
g.k.kx=function(){var a=g.$M(this.J.tb());return!(null===a||void 0===a||!a.loaded)&&this.Za&&!this.Ha&&this.enabled&&!this.B&&!this.bb.uf()&&!this.Sa&&!this.X&&(this.u||this.i)};
g.k.Ee=function(a){(this.u=a)?(DO(this),EO(this,!1)):(HO(this),this.Z.start());this.Th()};
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.az(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.az(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.J.Dd(b)};g.w(IO,g.uN);IO.prototype.show=function(){g.uN.prototype.show.call(this);this.C.start()};
IO.prototype.hide=function(){g.uN.prototype.hide.call(this);this.C.stop()};
IO.prototype.Fs=function(a,b){"dataloaded"===a&&((this.B=b.QI,this.i=b.NI,isNaN(this.B)||isNaN(this.i))?this.D&&(this.J.Xe("intro"),this.J.removeEventListener(g.cz("intro"),this.va),this.J.removeEventListener(g.dz("intro"),this.Z),this.J.removeEventListener("onShowControls",this.I),this.hide(),this.D=!1):(this.J.addEventListener(g.cz("intro"),this.va),this.J.addEventListener(g.dz("intro"),this.Z),this.J.addEventListener("onShowControls",this.I),a=new g.az(this.B,this.i,{priority:9,namespace:"intro"}),
this.J.Dd([a]),this.D=!0))};g.w(JO,g.X);JO.prototype.onClick=function(){this.J.Io()};
JO.prototype.Pa=function(){var a=!0,b=this.J.V();(b.N("embeds_enable_mobile_custom_controls")||"1"===b.controlsType&&!b.N("embeds_use_native_controls_killswitch")&&b.isMobile)&&g.xE(b)&&(a=a&&480<=this.J.eb().getPlayerSize().width);g.yK(this,a);this.Ra("icon",this.J.qf()?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};new Yv("yt.autonav");g.w(KO,g.X);g.k=KO.prototype;
g.k.Au=function(){if(3!==this.J.getPresentingPlayerType()&&g.zM(this.J)&&400<=this.J.eb().getPlayerSize().width&&!1!==this.J.getVideoData().YW){if(!this.i){this.i=!0;g.yK(this,this.i);this.u.push(this.T(this.J,"videodatachange",this.Au));this.u.push(this.T(this.J,"videoplayerreset",this.Au));this.u.push(this.T(this.J,"onPlaylistUpdate",this.Au));this.u.push(this.T(this.J,"autonavchange",this.SH));var a=this.J.getVideoData();this.SH(a.autonavState);this.J.gb(this.element,this.i)}}else{this.i=!1;g.yK(this,
this.i);a=g.r(this.u);for(var b=a.next();!b.done;b=a.next())this.pc(b.value)}};
g.k.SH=function(a){(a=1!==a)||(g.Uv.getInstance(),a=g.O("web_autonav_allow_off_by_default")&&!g.Vv(0,141)&&g.N("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Vv(0,140));this.isChecked=a;wxa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.TA(this.isChecked?2:1);wxa(this);this.J.Cb(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.setValue=function(a){this.isChecked=a;this.Fa("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.w(g.MO,g.X);g.MO.prototype.xa=function(){this.ctx=null;g.X.prototype.xa.call(this)};g.w(NO,g.X);NO.prototype.onClick=function(){this.J.Na("innertubeCommand",this.B)};
NO.prototype.onClickCommand=function(a){(null===a||void 0===a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Xb()};
NO.prototype.updateVideoData=function(a,b){a=b.bY;this.B=null===a||void 0===a?void 0:a.command;this.u.disabled=null==this.B;g.M(this.u,"ytp-chapter-container-disabled",this.u.disabled);this.Xb()};
NO.prototype.Xb=function(){var a="",b=this.K.i;if(1<b.length){a=1E3*this.J.getProgressState().current;var c=mO(b,a);a=b[c].title||"\u042d\u043f\u0438\u0437\u043e\u0434\u044b";if(c!==this.currentIndex||this.i)this.J.Na("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.i=!1}else this.i=!0;a!==this.C&&(this.update({title:a}),this.C=a);a?this.show():this.hide()};g.w(g.PO,g.X);g.PO.prototype.Nc=function(a){g.T(a.state,32)?QO(this,this.api.og()):this.yb&&(g.T(a.state,16)||g.T(a.state,1))||this.i.hide()};
g.PO.prototype.rd=function(){var a=this.api.zb();(g.T(a,32)||g.T(a,16))&&RO(this)};
g.PO.prototype.D=function(){this.B=NaN;RO(this)};
g.PO.prototype.hide=function(){this.u&&QO(this,null);g.X.prototype.hide.call(this)};g.w(SO,g.X);SO.prototype.onClick=function(){this.Ta.Cb(this.element);this.Ta.Na("onFullerscreenEduClicked")};
SO.prototype.Pa=function(){this.Ta.isFullscreen()?this.u?this.i.hide():this.i.show():this.hide();this.Ta.gb(this.element,this.Ta.isFullscreen()&&!this.u)};g.w(g.TO,g.X);g.k=g.TO.prototype;g.k.onClick=function(){var a=this;if(this.J.V().Va||this.J.V().C){this.J.Cb(this.element);try{this.J.toggleFullscreen().catch(function(b){a.Ov(b)})}catch(b){this.Ov(b)}}else vN(this.message,this.element,!0)};
g.k.Ov=function(a){String(a).includes("fullscreen error")?g.ky(a):g.jy(a);this.uF()};
g.k.uF=function(){this.disable();this.message.zd(this.element,!0)};
g.k.mm=function(){Hx()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.jR=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=.9*window.screen.width,b=.9*window.screen.height,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.uF()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=Qu(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK":"\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u044d\u0442\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK").split(/\$(BEGIN|END)_LINK/);
this.message=new g.uN(this.J,{G:"div",Ga:["ytp-popup","ytp-generic-popup"],W:{role:"alert",tabindex:"0"},U:[b[0],{G:"a",W:{href:"https://support.google.com/youtube/answer/6276924",target:this.J.V().I},ya:b[2]},b[4]]},100,!0);this.message.hide();g.H(this,this.message);this.message.subscribe("show",function(c){a.u.ds(a.message,c)});
g.yM(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.i)();this.i=null}};
g.k.Pa=function(){var a=zwa(this.J),b=this.J.V().C&&250>this.J.getPlayerSize().width;g.yK(this,a&&!b);this.J.gb(this.element,this.yb)};
g.k.Oi=function(a){if(a){var b={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"g",L:"ytp-fullscreen-button-corner-2",U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-0",U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g",
L:"ytp-fullscreen-button-corner-1",U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=lN(this.J,"\u0412\u044b\u0445\u043e\u0434 \u0438\u0437 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430","f");document.activeElement===this.element&&this.J.getRootNode().focus()}else b={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"g",L:"ytp-fullscreen-button-corner-0",
U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-1",U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-2",U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},
a=lN(this.J,"\u0412\u043e \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d","f");a=this.message?null:a;this.update({title:a,label:a,icon:b});iO(this.u.hc())};
g.k.xa=function(){this.message||((0,this.i)(),this.i=null);g.X.prototype.xa.call(this)};g.w(UO,g.X);UO.prototype.onClick=function(){this.J.Na("onCollapseMiniplayer");this.J.Cb(this.element)};
UO.prototype.Pa=function(){this.visible=!this.J.isFullscreen();g.yK(this,this.visible);this.J.gb(this.element,this.visible&&this.oa)};
UO.prototype.Yb=function(a){g.X.prototype.Yb.call(this,a);this.J.gb(this.element,this.visible&&a)};g.w(VO,g.X);VO.prototype.onVideoDataChange=function(a){this.Pa("newdata"===a)};
VO.prototype.Pa=function(a){var b=this.J.getVideoData(),c=b.fd,d=this.J.zb();d=(g.IJ(d)||g.T(d,4))&&0<c.length;g.yK(this,d);a&&(this.i=!0);if(d){this.i&&g.br(this.u);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.$H("\u041a\u0430\u043c\u0435\u0440\u0430\u00a0$CAMERA_INDEX\u00a0\u0438\u0437\u00a0$CAMERA_COUNT",{CAMERA_INDEX:String(e+1),CAMERA_COUNT:String(c.length)})+"\n";break}this.update({text:d+a,preview:b.Ie("default.jpg")});iO(this.tooltip)}else this.u.stop()};
VO.prototype.B=function(){hO(this.tooltip,this.element,"\u041c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e \u043a\u0430\u043c\u0435\u0440\u0443.");this.i=!1};g.w(WO,g.uN);g.k=WO.prototype;g.k.show=function(){var a=this.yb;g.uN.prototype.show.call(this);a||(this.B.T(this.api,"presentingplayerstatechange",this.Pa),this.B.T(this.api,"videodatachange",this.Pa),this.Pa())};
g.k.hide=function(){this.B&&(g.Mx(this.B),g.uN.prototype.hide.call(this))};
g.k.Pa=function(){var a=this,b=this.api.getVideoData(),c=b.fd,d,e={};for(d=0;d<c.length;e={zB:e.zB},d++){var f=this.i[d];f||(f=new g.X({G:"button",Ga:["ytp-multicam-menu-item","ytp-button"],W:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},U:[{G:"div",L:"ytp-multicam-menu-item-title",ya:"{{cameraName}}"}]}),e.zB=d,f.Qa("click",function(n){return function(){var p=n.zB,q=a.api.getVideoData(),t=a.api,u=q.fd[p];p=g.AM(t.app,1).getVideoData();q=t.getCurrentTime();u.id===p.videoId?(u=g.AM(t.app,
1),g.AM(t.app)!==u&&(t.app.Wk(1),p.isLivePlayback||t.seekTo(q))):(t.app.Wk(4),t.app.loadVideoByPlayerVars({videoId:u.id,title:p.title,start:p.isLivePlayback?null:q,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.xH}}}},4))}}(e)),f.Ea(this.items),this.i[d]=f);
var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=TE(this.api.V(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:h.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.i.length;)this.i.pop().dispose();d=this.api.zb();b=c.length||!b.isLoaded();g.IJ(d)||g.T(d,4)||b||!this.Vf()||vN(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.fd,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.i[c].focus();break}};
g.k.xa=function(){(0,g.ge)(this.i);g.uN.prototype.xa.call(this)};g.w(XO,g.E);XO.prototype.i=function(){var a=(0,g.P)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(g.Hr(sPa,a));1>a&&this.delay.start()};
var sPa=new g.Gr(0,0,.4,0,.2,1,1,1),Bxa=/[0-9.-]+|[^0-9.-]+/g;g.w(g.ZO,g.X);g.k=g.ZO.prototype;g.k.TH=function(a){this.visible=300<=a.width;g.yK(this,this.visible);this.J.gb(this.element,this.visible&&this.oa)};
g.k.PU=function(){this.J.V().Z?this.J.isMuted()?this.J.unMute():this.J.mute():vN(this.message,this.element,!0);this.J.Cb(this.element)};
g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.J.V();a=0===d?1:50<a?1:0;if(this.D!==a){var f=this.Z;isNaN(f)?Exa(this,a):YO(this.Aa,function(l){Exa(c,f+(c.D-f)*l)},250);
this.D=a}d=0===d?1:0;if(this.C!==d){var h=this.S;isNaN(h)?Fxa(this,d):YO(this.X,function(l){Fxa(c,h+(c.C-h)*l)},250);
this.C=d}e.Z&&(e=lN(this.J,"\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0437\u0432\u0443\u043a\u0430","m"),d=lN(this.J,"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a","m"),b=b?d:e,this.Ra("title",b),this.Ra("label",b),iO(this.tooltip))};
g.k.Yb=function(a){g.X.prototype.Yb.call(this,a);this.J.gb(this.element,this.visible&&a)};
var Cxa=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],Dxa=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.w($O,g.X);$O.prototype.onClick=function(){this.J.togglePictureInPicture()};g.w(g.aP,g.X);g.aP.prototype.onStateChange=function(a){Gxa(this,a.state);a=g.T(a.state,2);aF(this.J.V())&&(!this.u&&!a||this.u&&a?(this.hide(),this.J.gb(this.element,!1)):(this.show(),this.J.gb(this.element,!0)))};
g.aP.prototype.onVideoDataChange=function(){g.M(this.element,"ytp-play-button-playlist",g.vM(this.J))};
g.aP.prototype.Kt=function(a){var b;this.J.Cb(this.element);if(g.IJ(this.J.zb()))this.J.pauseVideo();else{if(this.J.Je()&&this.J.zb().isCued()){var c={};!this.J.N("web_player_csi_ctt_killswitch")&&(null===(b=this.J.getVideoData())||void 0===b?0:b.X)&&(c.cttAuthInfo={token:this.J.getVideoData().X,videoId:this.J.getVideoData().videoId});qA("direct_playback",c)}this.J.Dp().timerName="direct_playback";this.J.playVideo()}this.J.V().N("miniplayer_disable_play_button_click_focus")&&this.J.Je()&&a&&"click"===
a.type&&this.element.blur()};g.w(g.cP,g.X);g.k=g.cP.prototype;g.k.onVideoDataChange=function(){Ixa(this);this.C&&(this.pc(this.C),this.C=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.C=this.T(this.J,"progresssync",this.zP);this.B=Jxa(this);bP(this);this.ZB(this.J.eb().getPlayerSize())};
g.k.ZB=function(a){a=void 0===a?this.J.eb().getPlayerSize():a;a=(g.vM(this.J)||this.i&&g.zM(this.J)||Kxa(this))&&(this.i||400<=a.width);g.yK(this,a);this.J.gb(this.element,a)};
g.k.onClick=function(a){this.J.Cb(this.element);var b=!0;this.isLinkable?b=g.hN(a,this.J):g.bv(a);b&&(this.i&&5===this.J.getPresentingPlayerType()?this.J.ea("ytoprerollinternstitialnext"):this.i?this.J.nextVideo(!0):this.B?this.J.seekTo(0):this.J.previousVideo(!0))};
g.k.zP=function(){var a=Jxa(this);a!==this.B&&(this.B=a,bP(this))};
g.k.xa=function(){this.u&&(this.u(),this.u=null);Ixa(this);g.X.prototype.xa.call(this)};g.w(Lxa,g.X);g.w(Mxa,g.X);g.w(Nxa,g.X);g.w(eP,g.X);Qxa.prototype.update=function(a,b,c,d){this.width=b;this.u=c;this.D=d;this.i=b-c-d;this.position=g.dg(a,c,c+this.i);this.C=this.position-c;this.B=this.C/this.i};g.w(Rxa,g.X);g.w(g.jP,g.zK);g.k=g.jP.prototype;g.k.xb=function(){g.kP(this);nP(this);Wxa(this,this.Ba)};
g.k.onClickCommand=function(a){if(a=null===a||void 0===a?void 0:a.changeKeyedMarkersVisibilityCommand){var b=a.key;a.isVisible&&b&&lP(this,b)}};
g.k.fW=function(a){this.api.Na("innertubeCommand",this.Oe[a.id])};
g.k.Xb=function(){nP(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.NA()};
g.k.BP=function(a){if(!g.cv(a)){var b=!1;switch(g.dv(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.bv(a)}};
g.k.Fs=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.jS=function(){this.Fs("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(FG(a)||qP(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")?this.Nb=!1:this.Nb=a.allowLiveDvr,g.M(this.api.getRootNode(),"ytp-enable-live-buffer",!(null===a||void 0===a||!FG(a))));gya(this,this.api.sf());if(b){if(c)for(b=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=b,tP(this),oP(this,this.X,this.Za);0<this.D.length;)this.D.pop().dispose();else this.NA();g.mQ(this.tooltip)}if(a){b=a.watchNextResponse;
if(b=!a.isLivePlayback&&b)b=this.api.getVideoData(),c=b.KD,b=null!=b.multiMarkersPlayerBarRenderer||null!=c&&0<c.length;if(!b||this.Sb||this.Sb)Sxa(this),Txa(this);else{b=this.api.getVideoData();if(c=b.multiMarkersPlayerBarRenderer){var d;b=this.api.getVideoData();b.Bp=(null===(d=c.visibleOnLoad)||void 0===d?void 0:d.key)||b.Bp;d=g.r(c.markersMap);for(c=d.next();!c.done;c=d.next())c=c.value,c.key&&c.value&&(this.Eb[c.key]=c.value);null!=b.Bp&&lP(this,b.Bp)}else if(d=b.KD)Vxa(this,d),b.wl=this.i,Uxa(this);
a.LB&&(d=a.LB,b=d.key,d.isVisible&&b&&lP(this,b),a.LB=void 0)}}nP(this)};
g.k.AP=function(a){this.S&&!g.T(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.S.cancel()};
g.k.UH=function(a){var b=!!this.Sb!==!!a;(this.Sb=a)?(this.Ra("clipstarticon",pua()),this.Ra("clipendicon",pua()),this.Ra("clipstarttitle",null),this.Ra("clipendtitle",null)):(this.Ra("clipstarticon",kua()),this.Ra("clipendicon",jua()),this.Ra("clipstarttitle","\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0446\u0435\u043b\u0438\u043a\u043e\u043c"),this.Ra("clipendtitle","\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0446\u0435\u043b\u0438\u043a\u043e\u043c"));
tP(this);oP(this,this.X,this.Za);b&&(this.updateVideoData(this.api.getVideoData(),!0),g.kP(this))};
g.k.iV=function(a,b,c){var d,e=g.om(this.element),f=mP(this).i,h=c?c.getAttribute("data-tooltip"):void 0,l=c?c.getAttribute("data-position"):void 0,m=c?c.getAttribute("data-offset-y"):void 0;m=m?Number(m):0;l&&(a=CL(this.u,Number(c.getAttribute("data-position")),0)*f+g.om(this.Hc).x);this.wb.x=a-e.x;this.wb.y=b-e.y;a=mP(this);e=sP(this,a);b=0;if(null===(d=this.api.getVideoData())||void 0===d?0:FG(d))(b=this.api.getProgressState().seekableEnd)&&e>b&&(e=b,c=-this.Aa,b=CL(this.u,b)*mP(this).i+c,a.position=
b),b=this.u.u;qP(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(b=this.u.u);b=h||g.vL(this.Nb?e-this.u.i:e-b);c=a.position+this.ye;e-=this.api.Uc();if(this.api.og()){if(1<this.i.length){f=rP(this,this.wb.x,!0);for(l=0;l<this.i.length;)g.M(this.i[l].i,"ytp-exp-chapter-hover-effect",l===f),l++;l=this.i[f].startTime;for(var n=f===this.i.length-1?Infinity:this.i[f+1].startTime,p=g.r(this.Ba),q=p.next();!q.done;q=p.next())q=q.value,g.M(q.element,"ytp-timed-marker-hover",q.timeRangeStartMillis>=
l&&q.timeRangeStartMillis<n);if(1<this.D.length)for(l=0;l<this.i.length;l++)g.M(this.D[l].element,"ytp-heatmap-hover",l===f)}l=this.tooltip.scale;m=(isNaN(m)?0:m)-45*l;f=mO(this.i,1E3*e);(f=this.i[f].title)||(m+=16*l);.6===this.tooltip.scale&&(m=f?110:126);l=mO(this.i,1E3*e);this.Wa=aya(this,e,l)?l:aya(this,e,l+1)?l+1:-1;g.M(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.Wa&&1<this.i.length);l=!1;n=g.r(this.heatMarkersDecorations);for(p=n.next();!p.done;p=n.next())p=p.value,q=1E3*e,q>=p.visibleTimeRangeStartMillis&&
q<=p.visibleTimeRangeEndMillis&&(f=p.label,b=g.vL(p.decorationTimeMillis/1E3),l=!0);this.qc!==l&&(this.qc=l,this.api.gb(this.Vd,this.qc));g.M(this.api.getRootNode(),"ytp-progress-bar-decoration",l);l=320*this.tooltip.scale;n=f.length*(this.B?8.55:5.7);l=n<=l?n:l;n=l<160*this.tooltip.scale;p=3;!n&&l/2>a.position&&(p=1);!n&&l/2>this.C-a.position&&(p=2);this.api.V().C&&(m-=10);this.D.length&&this.D[0].isValid&&(m-=14*(this.B?2:1),this.Ka||(this.Ka=!0,this.api.gb(this.Z,this.Ka)));iP(this)&&(this.vb||
0<this.I)&&(m-=this.vb?this.B?135:90:this.I);Aya(this.tooltip,c,e,b,!!h,m,f,p)}else Aya(this.tooltip,c,e,b,!!h,m);g.L(this.api.getRootNode(),"ytp-progress-bar-hover");$xa(this)};
g.k.hV=function(){g.mQ(this.tooltip);g.kr(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ka&&(this.Ka=!1,this.api.gb(this.Z,this.Ka))};
g.k.gV=function(a,b){var c,d;if(iP(this)){if(null===(c=this.va)||void 0===c)void 0;else{var e=this.api.getPlayerSize().width;c.i||(c.i=c.api.og());if(c.i){for(var f;0<c.thumbnails.length;)null===(f=c.thumbnails.pop())||void 0===f?void 0:f.dispose();var h=c.u?1.5:1;f=160*h;a=90*h;var l=c.api.getCurrentTime();h=IF(c.i,160*h);l=NF(c.i,h,l);e/=f;for(h=l;h<e+l;h++){var m=new Mxa,n=c.i,p=h,q;if(q=0<p){q=p;var t=(t=n.levels[0])?t.Mx():-1;q=q>=t}q&&(n=(n=n.levels[0])?n.rr():-1,q=p<=n);q?(n=KF(c.i,h,f),OO(m.element,
n,f,f,!0)):(m.element.style.width=f+"px",m.element.style.backgroundColor="black");m.element.style.height=a+"px";c.thumbnails.push(m);m.Ea(c.element);g.H(c,m)}}}null===(d=this.va)||void 0===d?void 0:d.show()}this.K&&(this.K.dispose(),this.K=null);this.Fc=b;1<this.i.length&&-1!==this.Wa?this.api.seekTo(this.i[this.Wa].startTime/1E3,!1):this.api.seekTo(sP(this,mP(this)),!1);g.L(this.element,"ytp-drag");(this.fd=g.IJ(this.api.zb()))&&this.api.pauseVideo()};
g.k.jV=function(){var a=this,b;if(iP(this))this.I===(this.B?135:90)?(this.vb=!0,this.Z.style.bottom=this.I+(this.B?8:5)+"px"):(this.vb=!1,this.I=0,this.Z.style.removeProperty("bottom"),this.Hc.style.removeProperty("bottom"),this.fc.style.removeProperty("height"),null===(b=this.va)||void 0===b?void 0:b.hide()),this.Z.style.removeProperty("display");else if(this.Gb=0,g.kr(this.element,"ytp-pull-ui"),g.kr(this.element,"ytp-pulling"),this.K&&(this.K.dispose(),this.K=null),0<this.I){var c=(0,g.P)();this.K=
new g.Yq(function(){var d=a.I,e=mP(a).position,f=1-Math.pow(1-((0,g.P)()-c)/200,3);e+=f*(a.X*a.C-e);if(0>f||1<f)f=1;bya(a,(1-f)*d,e,a.X);1>f&&a.K.start()});
this.K.start()}if(g.T(this.api.zb(),32)||3===this.api.getPresentingPlayerType())this.api.startSeekCsiAction(),1<this.i.length&&-1!==this.Wa?this.api.seekTo(this.i[this.Wa].startTime/1E3):this.api.seekTo(sP(this,mP(this))),g.kr(this.element,"ytp-drag"),this.fd&&!g.T(this.api.zb(),2)&&this.api.playVideo()};
g.k.kV=function(a,b){var c=this,d=!1,e=!1;a=mP(this);1===this.i.length&&!iP(this)&&3600<=AL(this.u)&&(bya(this,this.Fc-b-10,a.position,a.B),e=!0,d=this.I>.1*(this.B?60:40),a=mP(this));g.M(this.element,"ytp-pull-ui",e);d&&g.L(this.element,"ytp-pulling");d=0;a.u&&0>=a.position?d=-1:a.D&&a.position>=a.width&&(d=1);if(this.Gb!==d&&(this.Gb=d,this.K&&(this.K.dispose(),this.K=null),d)){var f=(0,g.P)();this.K=new g.Yq(function(){var h=c.C*(c.Va-1);c.Aa=g.dg(c.Aa+c.Gb*((0,g.P)()-f)*.3,0,h);pP(c);c.api.seekTo(sP(c,
mP(c)),!1);0<c.Aa&&c.Aa<h&&c.K.start()});
this.K.start()}this.api.seekTo(sP(this,a),!1);iP(this)&&(this.I=g.dg(this.Fc-b-10,0,this.B?135:90),this.Hc.style.bottom=this.I+"px",this.Z.style.display="none",this.fc.style.height=this.I+"px")};
g.k.iM=function(){this.Sb||(this.Ra("clipstarticon",iua()),this.Ra("clipendicon",iua()),g.L(this.element,"ytp-clip-hover"))};
g.k.hM=function(){this.Sb||(this.Ra("clipstarticon",kua()),this.Ra("clipendicon",jua()),g.kr(this.element,"ytp-clip-hover"))};
g.k.NA=function(){this.clipStart=0;this.clipEnd=Infinity;tP(this);oP(this,this.X,this.Za)};
g.k.AO=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.La[c]){var d=g.Ng("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.La[c]=b;this.Db[c]=d;g.hr(d,b.style);cya(this,c);this.api.V().N("disable_ad_markers_on_content_progress_bar")||this.i[0].B.appendChild(d)}}else fya(this,b)};
g.k.OW=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())fya(this,b.value)};
g.k.xa=function(){gya(this,!1);g.zK.prototype.xa.call(this)};g.w(xP,g.X);xP.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
xP.prototype.Pa=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=1<this.J.getOption("remote","receivers").length);g.yK(this,a&&400<=this.J.eb().getPlayerSize().width);this.J.gb(this.element,this.yb);var b=1;a&&this.isActive()&&(b=2);if(this.i!==b){this.i=b;switch(b){case 1:this.Ra("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.Ra("icon",g.hua())}g.M(this.element,"ytp-remote-button-active",this.isActive())}};
xP.prototype.u=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Ab,b=this.element;if(a.Vf())a.Fb();else{a.initialize();a:{var c=g.r(a.Wd.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,0===d.priority){c=d;break a}c=null}c&&(c.open(),a.zd(b));a.zd(b)}}this.J.Cb(this.element)};g.w(yP,g.X);yP.prototype.i=function(a){var b=400;this.J.V().C&&(b=200);a=this.u&&a.width>=b;g.yK(this,a);this.J.gb(this.element,a)};
yP.prototype.B=function(){if(this.Ab.yb)this.Ab.Fb();else{var a=g.TM(this.J.tb());a&&!a.loaded&&(a.jf("tracklist",{includeAsr:!0}).length||a.load());this.J.Cb(this.element);this.Ab.zd(this.element)}};
yP.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.xM(this.J),e=c&&!!g.wM(this.J.tb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.M(this.element,"ytp-hdr-quality-badge",a);g.M(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.M(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.M(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.M(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.M(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.M(this.element,"ytp-3d-badge",!a&&e&&d)};g.w(AP,ZN);AP.prototype.isLoaded=function(){var a=g.$M(this.J.tb());return void 0!==a&&a.loaded};
AP.prototype.Pa=function(){void 0!==g.$M(this.J.tb())&&3!==this.J.getPresentingPlayerType()?this.i||(this.Ab.Gc(this),this.i=!0):this.i&&(this.Ab.Gf(this),this.i=!1);this.setValue(this.isLoaded())};
AP.prototype.u=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.ea("annotationvisibility",a)};
AP.prototype.xa=function(){this.i&&this.Ab.Gf(this);ZN.prototype.xa.call(this)};g.w(g.BP,g.RN);g.k=g.BP.prototype;g.k.open=function(){g.aO(this.Ab,this.B)};
g.k.Vh=function(a){iya(this);this.options[a].element.setAttribute("aria-checked","true");this.md(this.ij(a));this.u=a};
g.k.bD=function(a,b,c){var d=this;b=new g.RN({G:"div",Ga:["ytp-menuitem"],W:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},U:[{G:"div",Ga:["ytp-menuitem-label"],ya:"{{label}}"}]},b,this.ij(a,!0));b.Qa("click",function(){d.zf(a)});
return b};
g.k.enable=function(a){this.C?a||(this.C=!1,this.wr(!1)):a&&(this.C=!0,this.wr(!0))};
g.k.wr=function(a){a?this.Ab.Gc(this):this.Ab.Gf(this)};
g.k.zf=function(a){this.ea("select",a)};
g.k.ij=function(a){return a.toString()};
g.k.CP=function(a){g.cv(a)||39!==g.dv(a)||(this.open(),g.bv(a))};
g.k.xa=function(){this.C&&this.Ab.Gf(this);g.RN.prototype.xa.call(this);for(var a=g.r(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.w(DP,g.BP);DP.prototype.Pa=function(){var a=this.J.getAvailableAudioTracks();1<a.length?(g.CP(this,g.Mm(a,this.D)),this.tracks=g.kc(a,this.D,this),this.i.md(a.length?" ("+a.length+")":""),this.ea("size-change"),this.Vh(this.D(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
DP.prototype.zf=function(a){g.BP.prototype.zf.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Ab.oh()};
DP.prototype.D=function(a){return a.toString()};g.w(EP,ZN);
EP.prototype.u=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.zM(this.J))this.i||(this.Ab.Gc(this),this.i=!0,this.B.push(this.T(this.J,"videodatachange",this.u)),this.B.push(this.T(this.J,"videoplayerreset",this.u)),this.B.push(this.T(this.J,"onPlaylistUpdate",this.u)),this.B.push(this.T(this.J,"autonavchange",this.C)),a=this.J.getVideoData(),this.C(a.autonavState),this.J.gb(this.element,this.i));else if(this.i){this.Ab.Gf(this);this.i=!1;a=g.r(this.B);for(var b=a.next();!b.done;b=a.next())this.pc(b.value)}};
EP.prototype.C=function(a){this.setValue(1!==a)};
EP.prototype.D=function(a){this.J.TA(a?2:1);this.i&&(this.J.gb(this.element,this.i),this.J.Cb(this.element))};
EP.prototype.xa=function(){this.i&&this.Ab.Gf(this);ZN.prototype.xa.call(this)};g.w(FP,g.uN);FP.prototype.zd=function(){g.uN.prototype.zd.call(this);this.dialog.focus()};g.w(GP,g.RN);GP.prototype.Yb=function(a){this.u&&this.J.gb(this.element,this.i&&a)};
GP.prototype.C=function(){var a,b,c=null===(b=null===(a=this.J.getVideoData())||void 0===a?void 0:a.accountLinkingConfig)||void 0===b?void 0:b.linked;if(c&&!this.i){var d,e,f,h,l,m;c=null===(d=this.J.getVideoData())||void 0===d?void 0:d.accountLinkingConfig;g.QN(this,HP(null===(e=null===c||void 0===c?void 0:c.menuData)||void 0===e?void 0:e.connectedMenuLabel));this.B=new FP(this.J,HP(null===(f=null===c||void 0===c?void 0:c.menuData)||void 0===f?void 0:f.connectedDialogTitle),HP(null===(h=null===c||
void 0===c?void 0:c.menuData)||void 0===h?void 0:h.connectedDialogMessage),HP(null===(l=null===c||void 0===c?void 0:c.menuData)||void 0===l?void 0:l.confirmButtonText));g.H(this,this.B);d=(null===(m=null===c||void 0===c?void 0:c.menuData)||void 0===m?void 0:m.trackingParams)||null;if(this.u=!!d)this.J.Og(this.element,this,!0),this.J.Cm(this.element,d);this.Ab.Gc(this);this.i=!0}else!c&&this.i&&(this.Ab.Gf(this),this.i=!1)};
GP.prototype.onClick=function(){this.u&&this.J.Cb(this.element);this.Ab.Fb();this.B&&this.B.zd()};g.w(IP,g.BP);g.k=IP.prototype;g.k.Bu=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&(this.D=this.J.An(),a=this.J.getAvailableQualityLevels(),g.Pva(this.J)&&g.Qva(this.J)&&a.unshift("missing-qualities"),Rva(this.J)&&a.unshift("inline-survey"),g.CP(this,a),a.length)){this.VH();this.enable(!0);return}this.enable(!1)};
g.k.VH=function(){var a=this.J.getPreferredQuality();this.options[a]&&(this.i=this.J.getPlaybackQuality(),this.Vh(a),"auto"===a&&this.md(this.ij(a)))};
g.k.zf=function(a){"missing-qualities"!==a&&(g.BP.prototype.zf.call(this,a),this.J.setPlaybackQuality(a),this.Ab.Fb(),this.Bu())};
g.k.open=function(){g.BP.prototype.open.call(this);this.J.Cb(this.element)};
g.k.bD=function(a,b,c){var d=this;if("inline-survey"!==a)return g.BP.prototype.bD.call(this,a,b,c);a=[{G:"span",ya:"\u0412\u0430\u0441 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0438\u0434\u0435\u043e?"}];c={};for(var e=g.r([!0,!1]),f=e.next();!f.done;c={Jx:c.Jx},f=e.next())c.Jx=f.value,f=new g.X({G:"span",L:"ytp-menuitem-inline-survey-response",U:[c.Jx?g.GK():mua()],W:{tabindex:"0",role:"button"}}),f.Qa("click",function(h){return function(){var l=
h.Jx,m=g.AM(d.J.app);m&&(m.Ca("iqsr",l?"0":"1"),m.getVideoData().oH=!0);d.Ab.Fb();d.Bu()}}(c)),a.push(f);
return new g.RN({G:"div",L:"ytp-menuitem",W:{"aria-disabled":"true"},U:[{G:"div",Ga:["ytp-menuitem-label"],U:a}]},b)};
g.k.ij=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{G:"a",W:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.V().I},ya:"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043d\u0435 \u0432\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b?"};if("inline-survey"===a)return"";var c=[jya(this,a)],d=this.J.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(jya(this,this.i,["ytp-menu-label-secondary"])));return{G:"div",U:c}};g.w(JP,g.X);g.k=JP.prototype;g.k.init=function(){this.Eq(this.i);this.Ra("minvalue",this.minimumValue);this.Ra("maxvalue",this.maximumValue)};
g.k.FP=function(a){if(!g.cv(a)){switch(g.dv(a)){case 37:case 40:var b=-this.I;break;case 39:case 38:b=this.I;break;default:return}this.Eq(this.i+b);g.bv(a)}};
g.k.DP=function(a){var b=this.i;b+=0>(a.deltaX||-a.deltaY)?-this.D:this.D;this.Eq(b);g.bv(a)};
g.k.EP=function(a){a=(a-g.om(this.u).x)/this.K*this.range+this.minimumValue;this.Eq(a)};
g.k.Eq=function(a,b){b=void 0===b?"":b;a=g.dg(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Ra("valuenow",a);this.Ra("valuetext",b);this.S.style.left=(a-this.minimumValue)/this.range*(this.K-this.Z)+"px";this.i=a};
g.k.focus=function(){this.va.focus()};g.w(LP,JP);LP.prototype.X=function(){this.J.setPlaybackRate(this.i,!0)};
LP.prototype.Eq=function(a){JP.prototype.Eq.call(this,a,MP(this,a).toString());this.B&&(KP(this),this.Aa())};
LP.prototype.Ba=function(){var a=this.J.getPlaybackRate();MP(this,this.i)!==a&&(this.Eq(a),KP(this))};g.w(NP,g.zK);NP.prototype.focus=function(){this.i.focus()};g.w(kya,UN);g.w(OP,g.BP);g.k=OP.prototype;g.k.ij=function(a){return"1"===a?"\u041e\u0431\u044b\u0447\u043d\u0430\u044f":a.toLocaleString()};
g.k.Pa=function(){var a=this.J.getPresentingPlayerType();this.enable(2!==a&&3!==a);nya(this)};
g.k.wr=function(a){g.BP.prototype.wr.call(this,a);a?(this.K=this.T(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),nya(this),lya(this,this.J.getPlaybackRate())):(this.pc(this.K),this.K=null)};
g.k.onPlaybackRateChange=function(a){var b=this.J.getPlaybackRate();this.I.includes(b)||mya(this,b);lya(this,a)};
g.k.zf=function(a){g.BP.prototype.zf.call(this,a);a===this.i?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Ab.oh()};g.w(QP,g.BP);g.k=QP.prototype;g.k.Vh=function(a){g.BP.prototype.Vh.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.ij=function(a){return this.getOption(a).text||""};
g.k.zf=function(a){g.BP.prototype.zf.call(this,a);this.ea("settingChange",this.setting,this.settings[a].option)};g.w(RP,g.VN);RP.prototype.yf=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Wn[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Vh(e),c.D.element.setAttribute("aria-checked",String(!d)),c.i.element.setAttribute("aria-checked",String(d)))}}};
RP.prototype.jh=function(a,b){this.ea("settingChange",a,b)};g.w(SP,g.BP);SP.prototype.getKey=function(a){return a.languageCode};
SP.prototype.ij=function(a){return this.languages[a].languageName||""};
SP.prototype.zf=function(a){this.ea("select",a);this.J.Cb(this.element);g.eO(this.Ab)};g.w(TP,g.BP);g.k=TP.prototype;g.k.getKey=function(a){return g.De(a)?"__off__":a.displayName};
g.k.ij=function(a){return"__off__"===a?"\u0412\u044b\u043a\u043b.":"__translate__"===a?"\u041f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438":"__contribute__"===a?"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044b":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.zf=function(a){"__translate__"===a?this.i.open():"__contribute__"===a?(this.J.pauseVideo(),this.J.isFullscreen()&&this.J.toggleFullscreen(),a=g.fM(this.J.V(),this.J.getVideoData()),g.HL(a)):(this.J.Cb(this.element),this.J.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.BP.prototype.zf.call(this,a),this.Ab.oh())};
g.k.Pa=function(){var a,b=this.J.getOptions();b=b&&-1!==b.indexOf("captions");var c=this.J.getVideoData();c=c&&c.Wo;var d=!(null===(a=this.J.getVideoData())||void 0===a||!g.CG(a)),e={};if(b||c){if(b){var f=this.J.getOption("captions","track");e=this.J.getOption("captions","tracklist",{includeAsr:!0});var h=d?[]:this.J.getOption("captions","translationLanguages");this.tracks=g.kc(e,this.getKey,this);d=g.Mm(e,this.getKey);if(h.length&&!g.De(f)){var l=f.translationLanguage;if(l&&l.languageName){var m=
l.languageName;l=h.findIndex(function(n){return n.languageName===m});
raa(h,l)}pya(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.CP(this,d);this.Vh(h);f&&f.translationLanguage?this.i.Vh(this.i.getKey(f.translationLanguage)):iya(this.i);b&&this.D.yf(this.J.getSubtitlesUserSettings());this.K.md(e&&e.length?" ("+e.length+")":"");this.ea("size-change");this.J.gb(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.GP=function(a){var b=this.J.getOption("captions","track");b=g.Je(b);b.translationLanguage=this.i.languages[a];this.J.setOption("captions","track",b)};
g.k.jh=function(a,b){if("reset"===a)this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}qya(this,!0);this.I.start();this.D.yf(this.J.getSubtitlesUserSettings())};
g.k.OV=function(a){a||g.dr(this.I)};
g.k.xa=function(){g.dr(this.I);g.BP.prototype.xa.call(this)};g.w(UP,g.cO);g.k=UP.prototype;g.k.initialize=function(){if(!this.isInitialized){this.isInitialized=!0;this.PE=new GP(this.J,this);g.H(this,this.PE);var a=new IP(this.J,this);g.H(this,a);a=new TP(this.J,this);g.H(this,a);a=new AP(this.J,this);g.H(this,a);this.J.V().ac&&(a=new OP(this.J,this),g.H(this,a));this.J.V().Gb&&!this.J.V().N("web_player_move_autonav_toggle")&&(a=new EP(this.J,this),g.H(this,a));a=new DP(this.J,this);g.H(this,a);zP(this.settingsButton,this.Wd.items.length)}};
g.k.Gc=function(a){this.initialize();this.Wd.Gc(a);zP(this.settingsButton,this.Wd.items.length)};
g.k.Gf=function(a){this.yb&&1>=this.Wd.items.length&&this.hide();this.Wd.Gf(a);zP(this.settingsButton,this.Wd.items.length)};
g.k.zd=function(a){this.initialize();0<this.Wd.items.length&&g.cO.prototype.zd.call(this,a)};
g.k.show=function(){g.cO.prototype.show.call(this);g.L(this.J.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.cO.prototype.hide.call(this);g.kr(this.J.getRootNode(),"ytp-settings-shown")};
g.k.Ee=function(a){var b;this.J.gb(this.element,a);null===(b=this.PE)||void 0===b?void 0:b.Yb(a)};g.w(VP,g.X);VP.prototype.onClick=function(){var a=this.J.app;a.Ta.Na("SIZE_CLICKED",!a.FE);this.J.Cb(this.element)};
VP.prototype.Pa=function(){g.yK(this,this.J.DE()&&!this.J.isFullscreen()&&3!==this.J.getPresentingPlayerType());if(this.yb){var a=this.J.isWidescreen();if(this.isWidescreen!==a){var b=a?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",
fill:"#fff","fill-rule":"evenodd"}}]};null==this.isWidescreen?this.Ra("icon",b):Axa(this.transition,this.element,b);this.isWidescreen=a;b=lN(this.J,"\u0420\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","t");var c=lN(this.J,"\u0428\u0438\u0440\u043e\u043a\u0438\u0439 \u044d\u043a\u0440\u0430\u043d","t");this.Ra("title",a?b:c);iO(this.tooltip)}}this.J.gb(this.element,this.yb)};g.w(g.WP,g.X);g.WP.prototype.onClick=function(){if(null!=g.TM(this.J.tb())&&(this.J.toggleSubtitles(),this.J.Cb(this.element),!this.isEnabled())){var a=!1,b=g.Vv(g.Uv.getInstance(),65);g.$E(this.J.V())&&null!=b&&(a=!b);a&&this.J.V().N("web_player_nitrate_promo_tooltip")&&this.J.ea("showpromotooltip",this.element)}};
g.WP.prototype.i=function(a){var b,c;null===(c=null===(b=g.oM(this.J))||void 0===b?void 0:b.Fn())||void 0===c?void 0:c.zd(a)};
g.WP.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName};
g.WP.prototype.Pa=function(){var a,b=null!=g.TM(this.J.tb()),c=300;this.J.V().C&&(c=480);if(this.J.V().N("web_player_unavailable_subtitles_button")){b?this.Ra("title",lN(this.J,"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b","c")):(null===(a=g.Cg("ytp-subtitles-button-icon"))||void 0===a?void 0:a.setAttribute("fill-opacity","0.3"),this.Ra("title","Subtitles/closed captions unavailable"));var d=!0}else this.Ra("title",lN(this.J,"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b","c")),d=b;iO(this.tooltip);
d=d&&this.J.eb().getPlayerSize().width>=c;g.yK(this,d);this.J.gb(this.element,d);b&&this.Ra("pressed",this.isEnabled())};g.w(g.XP,g.X);g.k=g.XP.prototype;
g.k.Xb=function(){var a=this.api.eb().getPlayerSize().width,b=a>=this.K&&(!ZP(this)||!g.T(this.api.zb(),64));g.yK(this,b);g.M(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.V().N("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);YP(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(c-=this.Sb.startTimeMs/1E3);c=g.vL(c);this.B!==c&&(this.Ra("currenttime",
c),this.B=c);b=YP(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")?g.vL((this.Sb.endTimeMs-this.Sb.startTimeMs)/1E3):g.vL(this.api.V().N("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.C!==b&&(this.Ra("duration",b),this.C=b)}a=a.isAtLiveHead;!ZP(this)||this.I===a&&this.D===this.isPremiere||(this.I=a,this.D=this.isPremiere,this.Xb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.md(this.isPremiere?"\u041f\u0440\u0435\u043c\u044c\u0435\u0440\u0430":
"\u0412 \u044d\u0444\u0438\u0440\u0435"),a?this.i&&(this.i(),this.i=null,b.removeAttribute("title")):(b.title="\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438",this.i=g.JN(this.tooltip,this.liveBadge.element)));this.aC(this.api.getLoopRange())};
g.k.aC=function(a){var b=!!this.Sb!==!!a;this.Sb=a;b&&sya(this)};
g.k.uW=function(){this.api.setLoopRange(null)};
g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.V().N("enable_topsoil_wta_for_halftime")||this.api.V().N("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Xb();sya(this)};
g.k.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.rb;this.u=FG(a);this.isPremiere=a.isPremiere;g.M(this.element,"ytp-live",ZP(this))};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.xa=function(){this.i&&this.i();g.X.prototype.xa.call(this)};g.w(bQ,g.X);g.k=bQ.prototype;g.k.mm=function(){var a=this.i.Se();this.C!==a&&(this.C=a,aQ(this,this.api.getVolume(),this.api.isMuted()))};
g.k.WH=function(a){g.yK(this,350<=a.width)};
g.k.JP=function(a){if(!g.cv(a)){var b=g.dv(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.dg(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.bv(a))}};
g.k.HP=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.dg(b/10,-10,10));g.bv(a)};
g.k.SV=function(){$P(this,this.u,!0,this.B,this.i.xi());this.X=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.IP=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.om(this.S).x;this.api.setVolume(100*g.dg((a-c/2)/(b-c),0,1))};
g.k.RV=function(){$P(this,this.u,!1,this.B,this.i.xi());0===this.volume&&(this.api.mute(),this.api.setVolume(this.X))};
g.k.onVolumeChange=function(a){aQ(this,a.volume,a.muted)};
g.k.DJ=function(){$P(this,this.u,this.isDragging,this.B,this.i.xi())};
g.k.xa=function(){g.X.prototype.xa.call(this);g.kr(this.K,"ytp-volume-slider-active")};g.w(g.cQ,g.X);g.cQ.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).D,b=this.api.V();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.yK(this,this.visible);this.api.gb(this.element,this.visible&&this.oa);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Ra("url",a))};
g.cQ.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.wL(a),!1,!0,!0);if(g.xE(this.api.V())||g.IE(this.api.V()))b=g.Ei(b,g.gM("emb_logo"));g.iN(b,this.api,a);this.api.Cb(this.element)};
g.cQ.prototype.xb=function(){var a={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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.IE(this.api.V())){var b=this.Fa("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{G:"svg",W:{fill:"none",height:"24",width:"24"},U:[{G:"circle",W:{cx:"12",cy:"12",fill:"red",r:"12"}},{G:"ellipse",W:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",W:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{G:"svg",W:{viewBox:"0 0 80 24"},U:[{G:"ellipse",W:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{G:"ellipse",W:{cx:"12.18",
cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",W:{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.M(b,"ytp-youtube-music-logo-icon-only",c)}this.Ra("logoSvg",a)};
g.cQ.prototype.Yb=function(a){g.X.prototype.Yb.call(this,a);this.api.gb(this.element,this.visible&&a)};g.w(eQ,g.WC);g.k=eQ.prototype;g.k.rd=function(){this.Hc.Xb();this.Fg.Xb()};
g.k.Bj=function(){var a,b;this.bC();this.xd.u?(this.rd(),null===(b=this.K)||void 0===b?void 0:b.show()):(g.mQ(this.Hc.tooltip),null===(a=this.K)||void 0===a?void 0:a.hide())};
g.k.kq=function(){this.rd();this.Ld.start()};
g.k.bC=function(){var a=!this.J.V().isMobile&&300>g.hya(this.Hc)&&this.J.zb().Ec()&&!!window.requestAnimationFrame,b=!a;this.xd.u||(a=b=!1);b?this.I||(this.I=this.T(this.J,"progresssync",this.rd)):this.I&&(this.pc(this.I),this.I=null);a?this.Ld.isActive()||this.Ld.start():this.Ld.stop()};
g.k.xb=function(){var a=this.u.Se(),b=this.J.eb().getPlayerSize(),c=fQ(this),d=Math.max(b.width-2*c,100);if(this.Ka!==b.width||this.Ha!==a){this.Ka=b.width;this.Ha=a;var e=vya(this);this.i.element.style.width=e+"px";this.i.element.style.left=c+"px";g.wP(this.Hc,c,e,a);this.u.hc().cC=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-gQ(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.Sx=e;c.Rt();this.bC();!this.J.V().N("html5_player_bottom_linear_gradient")&&this.J.V().N("html5_player_dynamic_bottom_gradient")&&
g.LO(this.La,b.height)};
g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.va.style.background=a.D?a.Wa:"";g.yK(this.X,a.nC)};g.w(hQ,FO);g.k=hQ.prototype;g.k.lF=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.Na("innertubeCommand",this.onClickCommand),this.B=!0,this.S.hide())};
g.k.mF=function(){this.B=!0;this.S.hide()};
g.k.onVideoDataChange=function(a,b){var c;"newdata"===a&&(this.u=this.B=!1,iQ(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.i=this.K=this.enabled=!0;this.text=dP(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.az(e,d,{priority:9,namespace:"suggested_action_button_visible"}));this.J.Dd(b)}this.onClickCommand=a.tapCommand;uxa(this);
EO(this);this.Th()}};
g.k.kx=function(){return!this.B&&this.enabled&&(this.u||this.i)};
g.k.Ee=function(a){this.B||((this.u=a)?DO(this):(iQ(this),this.Z.start()),this.Th())};
g.k.xa=function(){iQ(this);FO.prototype.xa.call(this)};var c3={},jQ=(c3.CHANNEL_NAME="ytp-title-channel-name",c3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",c3.LINK="ytp-title-link",c3.SESSIONLINK="yt-uix-sessionlink",c3.SUBTEXT="ytp-title-subtext",c3.TEXT="ytp-title-text",c3.TITLE="ytp-title",c3);g.w(kQ,g.X);kQ.prototype.onClick=function(a){this.api.Cb(this.element);var b=this.api.getVideoUrl(!g.wL(a),!1,!0);g.xE(this.api.V())&&(b=g.Ei(b,g.gM("emb_title")));g.iN(b,this.api,a)};
kQ.prototype.Pa=function(){var a=this.api.getVideoData(),b=this.api.V();this.Ra("title",a.title);wya(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.dc&&c.Nh?(this.Ra("channelLink",c.dc),this.Ra("channelName",c.author),this.Ra("channelTitleFocusable","0")):wya(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.Sg;g.M(this.link,jQ.FULLERSCREEN_LINK,c);b.K||!a.videoId||c||a.D&&b.pfpChazalUi||b.qc?this.i&&(this.Ra("url",null),this.pc(this.i),
this.i=null):(this.Ra("url",this.api.getVideoUrl(!0)),this.i||(this.i=this.T(this.link,"click",this.onClick)))};g.w(g.lQ,g.X);g.k=g.lQ.prototype;g.k.sM=function(a,b){a<=this.B&&this.B<=b&&(a=this.B,this.B=NaN,yya(this,a))};
g.k.RS=function(){bqa(this.i,this.B,160*this.scale)};
g.k.Xj=function(){switch(this.type){case 2:var a=this.u;a.removeEventListener("mouseout",this.X);a.addEventListener("mouseover",this.C);a.removeEventListener("blur",this.X);a.addEventListener("focus",this.C);Bya(this);break;case 3:Bya(this);break;case 1:this.i&&(this.i.unsubscribe("l",this.sM,this),this.i=null),this.api.removeEventListener("videoready",this.Z),this.va.stop()}this.type=null;this.K&&this.D.hide()};
g.k.jj=function(){if(this.u)for(var a=0;a<arguments.length;a++)g.Tg(arguments[a],this.u)&&this.Xj()};
g.k.xa=function(){null!=this.type&&this.Xj();this.i&&this.i.dispose();g.X.prototype.xa.call(this)};g.w(g.nQ,g.X);g.k=g.nQ.prototype;g.k.Tx=function(){var a=this.J.getPlayerSize(),b=this.J.V(),c=this.J.getVideoData(),d=g.xE(b)&&g.vM(this.J)&&g.T(this.J.zb(),128);this.visible=b.Uj&&240<=a.width&&!c.isAd()&&c.Mf&&!d&&!(c.D&&b.pfpChazalUi);g.yK(this,this.visible);this.icon&&Fya(this,this.icon);this.J.gb(this.element,this.visible&&this.oa)};
g.k.XH=function(){return this.J.getVideoData().videoId};
g.k.onClick=function(){var a=this;this.J.Cb(this.element);var b=this.J.V(),c=this.XH();b.X?Cya(this):this.J.cB()?this.J.requestStorageAccess(function(){g.dw("embedsItpWatchLaterResult",{accepted:!0});Iv();Dya(a,c)},function(){g.dw("embedsItpWatchLaterResult",{accepted:!1});
Eya(a,"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0444\u0430\u0439\u043b\u044b cookie \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c.")}):Dya(this,c)};
g.k.KP=function(){this.isRequestPending=this.i=!1;this.Pa(2)};
g.k.Pa=function(a,b){var c=this.J.V();Fya(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.i?g.$H("\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e \u0432 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f $USER_NAME",a):g.$H("\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u043a\u0430\u043a $USER_NAME",a),image:eF(c)})):
this.update({title:"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435",image:null});iO(this.tooltip)};
g.k.Yb=function(a){g.X.prototype.Yb.call(this,a);this.J.gb(this.element,this.visible&&a)};g.w(oQ,g.yN);g.k=oQ.prototype;g.k.hc=function(){return this.tooltip};
g.k.AK=function(){return this.ag};
g.k.hn=function(a,b){b?this.xk=a:this.xk=null;this.Wi()};
g.k.ds=function(a,b){if(b)this.Zn.push(a);else for(b=this.Zn.length;0<=b;b--)if(this.Zn[b]===a){this.Zn.splice(b,1);break}dN(this.xd,64,0<this.Zn.length)};
g.k.Ho=function(){this.api.Bh()&&this.api.qk();return!!this.xk||Gya(this)||g.yN.prototype.Ho.call(this)};
g.k.Wi=function(){var a=!this.Ho(),b=a&&this.api.Bh()&&!g.T(this.api.zb(),2)&&!(this.api.getVideoData().D&&this.api.V().pfpChazalUi),c=this.Sp&&g.vM(this.api)&&g.T(this.api.zb(),128);a||c?(this.NG.show(),this.OG.show()):(this.NG.hide(),this.OG.hide(),this.tooltip.jj(this.Rh.element));b?this.ji.zd():this.ji.Fb();this.ag&&uya(this.ag,!a);g.yN.prototype.Wi.call(this)};
g.k.uq=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.um(a),h=d||this.ag&&g.Tg(this.ag.i.element,b),l=d=null;null!=c&&h||(d=g.um(b),l=g.sm(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.ag,d=fQ(b),l=vya(b),h=this.api.eb().getPlayerSize().height,c=g.dg(c,d,d+l-f.width),f=h-gQ(b)-f.height):g.Tg(this.Rh.element,b)?(b=this.api.eb().getPlayerSize().width,c=g.dg(c,12,b-f.width-12),f=this.Se()?this.lD:this.kD,"gvn"===this.api.V().playerStyle&&(f+=
20),this.Sp&&(f-=this.Se()?26:18)):(b=this.api.eb().getPlayerSize(),c=g.dg(c,12,b.width-f.width-12),f=l.y>(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
g.k.Bj=function(a){a&&(this.tooltip.jj(this.Rh.element),this.ag&&this.tooltip.jj(this.ag.i.element));this.Fz&&(g.M(this.contextMenu.element,"ytp-autohide",a),g.M(this.contextMenu.element,"ytp-autohide-active",!0));g.yN.prototype.Bj.call(this,a)};
g.k.kF=function(){g.yN.prototype.kF.call(this);this.Fz&&(g.M(this.contextMenu.element,"ytp-autohide-active",!1),this.Fz&&(this.contextMenu.hide(),this.Xf&&this.Xf.hide()))};
g.k.nj=function(a,b){var c=this.api.eb().getPlayerSize();c=new g.bm(0,0,c.width,c.height);if(a||this.xd.u&&!this.Ho()){if(this.api.V().Qj||b)a=this.Se()?this.lD:this.kD,c.top+=a,c.height-=a;this.ag&&(c.height-=gQ(this.ag))}return c};
g.k.mm=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","\u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c YouTube \u0432 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435"),this.api.V().externalFullscreen||(b.parentElement.insertBefore(this.Ty.element,b),b.parentElement.insertBefore(this.Sy.element,b.nextSibling))):g.Zs(Error("Player not in DOM.")):(b.setAttribute("aria-label",
"\u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c YouTube"),this.Ty.detach(),this.Sy.detach());this.xb();this.Im()};
g.k.Se=function(){var a=this.api.V();return this.api.isFullscreen()&&!a.C||!1};
g.k.showControls=function(a){this.Fy=!a;this.Wi()};
g.k.xb=function(){var a=this.Se();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.M(this.contextMenu.element,"ytp-big-mode",a);this.Wi();if(this.uf()&&this.Xf)this.rh&&tO(this.Xf,this.rh),this.shareButton&&tO(this.Xf,this.shareButton),this.Ng&&tO(this.Xf,this.Ng);else{if(this.Xf){a=this.Xf;for(var b=g.r(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.rh&&!g.Tg(this.Gg.element,this.rh.element)&&this.rh.Ea(this.Gg.element);this.shareButton&&!g.Tg(this.Gg.element,
this.shareButton.element)&&this.shareButton.Ea(this.Gg.element);this.Ng&&!g.Tg(this.Gg.element,this.Ng.element)&&this.Ng.Ea(this.Gg.element)}this.Im();g.yN.prototype.xb.call(this)};
g.k.YD=function(){if(Gya(this)&&!g.vM(this.api))return!1;var a=this.api.getVideoData();return!g.xE(this.api.V())||2===this.api.getPresentingPlayerType()||!this.gg||((a=this.gg||a.gg)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.yN.prototype.YD.call(this):!1};
g.k.Im=function(){g.yN.prototype.Im.call(this);this.api.gb(this.title.element,!!this.Kk);this.kt&&this.kt.Yb(!!this.Kk);this.channelAvatar.Yb(!!this.Kk);this.overflowButton&&this.overflowButton.Yb(this.uf()&&!!this.Kk);this.shareButton&&this.shareButton.Yb(!this.uf()&&!!this.Kk);this.rh&&this.rh.Yb(!this.uf()&&!!this.Kk);this.Ng&&this.Ng.Yb(!this.uf()&&!!this.Kk);if(!this.Kk){this.tooltip.jj(this.Rh.element);for(var a=0;a<this.zx.length;a++){var b=this.zx[a];b.Vf()&&b.Fb()}}};
g.k.Ub=function(a){this.ag&&uya(this.ag,this.Ho());this.Wi();g.yN.prototype.Ub.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.fm?this.fm.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.fm?this.fm.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.Ak=function(){return this.contextMenu.yb?(this.contextMenu.Fb(),!0):this.Zn.length?(this.Zn[this.Zn.length-1].Fb(),!0):this.xk?(this.xk.Fb(),!0):g.yN.prototype.Ak.call(this)};
g.k.ZA=function(a,b){this.rG=b;this.ds(a,b);this.EO()};
g.k.EO=function(){var a=this.rG||this.contextMenu.Vf();this.YC!==a&&(this.YC=a,this.api.Na("onAutonavPauseRequest",this.YC))};
g.k.QR=function(){pQ(this,this.api.getRootNode(),!0).focus()};
g.k.RR=function(){pQ(this,this.api.getRootNode(),!1).focus()};
g.k.Fn=function(){return this.ag&&this.ag.settingsMenu};
g.k.Zk=function(){this.xd.Zk()};
g.k.yz=function(){this.wc.hide()};
g.k.Gq=function(a){this.wc.Gq(!g.IJ(a))};
g.k.vt=function(a,b,c,d){this.bv.vt(a,b,c,d)};
g.k.xN=function(a,b){this.bv.QA(a,b)};
g.k.iU=function(){Hya(this,!0)};
g.k.JU=function(a){Hya(this,!1,a)};g.w(g.qQ,g.LM);g.qQ.prototype.Pi=function(){return!1};
g.qQ.prototype.create=function(){var a=this.player.V();g.GE(a)&&a.isMobile?this.chrome=new g.yN(this.player):this.chrome=new oQ(this.player);g.H(this,this.chrome);this.chrome.init();this.player.Od("ux")};
g.qQ.prototype.xv=function(){return this.chrome};var tPa={xZ:"captionTrack",i5:"ytMainChannelEntity",j5:"ytMainDownloadedVideoEntity",k5:"ytMainVideoEntity",W7:"offlineOrchestrationActionWrapperEntity",f8:"offlineVideoPolicy",g8:"offlineVideoStreams",Q8:"playbackData",oaa:"transfer",K9:"orchestrationWebSamplingEntity"};rQ.prototype.getState=function(){return this.store.getState()};
rQ.prototype.dispatch=function(a){return this.store.dispatch(a)};
rQ.prototype.subscribe=function(a){return this.store.subscribe(a)};
rQ.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
rQ.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};for(var Lya={captionTrack:225,channelHandle:275,commerceCartListEntity:236,downloadQualityPickerEntity:202,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,liveChatPollStateEntity:217,logoEntity:245,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pinnedProductEntity:273,playbackData:119,transfer:120,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,
ytMainVideoEntity:151},Kya={},uPa=g.r(Object.entries(Lya)),d3=uPa.next();!d3.done;d3=uPa.next()){var vPa=g.r(d3.value),wPa=vPa.next().value,xPa=vPa.next().value,yPa=wPa,zPa=xPa;zPa&&(Kya[zPa]=yPa)};var Nya=!1,MQ,NQ,OQ,PQ,QQ;RQ.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.u,d=0;d<b&&16>this.i;)a[d++]^=c[this.i++];for(var e=b-(b-d)%16;d<e;)Pya(this),a[d++]^=c[0],a[d++]^=c[1],a[d++]^=c[2],a[d++]^=c[3],a[d++]^=c[4],a[d++]^=c[5],a[d++]^=c[6],a[d++]^=c[7],a[d++]^=c[8],a[d++]^=c[9],a[d++]^=c[10],a[d++]^=c[11],a[d++]^=c[12],a[d++]^=c[13],a[d++]^=c[14],a[d++]^=c[15];if(d<b)for(Pya(this),this.i=0;d<b;)a[d++]^=c[this.i++];return a};var Qya=!1;(function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a})();TQ.prototype.encrypt=function(a,b){var c=this,d,e;return g.A(function(f){if(1==f.i){d=SQ();if(!d)return f.return(c.i(a,b));ta(f,3);return g.x(f,c.u(a,b,d),5)}if(3!=f.i)return f.return(f.u);e=va(f);g.ky(e);Qya=!0;return f.return(c.i(a,b))})};
TQ.prototype.u=function(a,b,c){var d=this,e,f,h;return g.A(function(l){switch(l.i){case 1:if(d.D){l.fb(2);break}e=d;return g.x(l,c.importKey("raw",d.C,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:e.D=l.u;case 2:return f={name:"AES-CTR",counter:b,length:128},g.x(l,c.encrypt(f,d.D,a),4);case 4:return h=l.u,l.return(new Uint8Array(h))}})};
TQ.prototype.i=function(a,b){this.B||(this.B=new RQ(this.C));Oya(this.B,b);return this.B.encrypt(a)};
TQ.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
UQ.prototype.encrypt=function(a,b){this.i||(this.i=new RQ(this.u));Oya(this.i,b);return this.i.encrypt(a)};
UQ.prototype.decrypt=function(a,b){return this.encrypt(a,b)};VQ.prototype.reset=function(){Tya(this);this.update(this.B)};
VQ.prototype.update=function(a){var b=0,c=a.length;this.C+=c;this.u&&64<=this.u+c&&(this.I.set(a.subarray(0,64-this.u),this.u),b=64-this.u,this.u=0,Sya(this,this.I,0));for(;b+64<=c;b+=64)Sya(this,a,b);b<c&&(a=a.subarray(b),this.I.set(a,this.u),this.u+=a.length)};
var Rya=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var e3={},Vya=(e3.INVALID_ENCODER_VERSION="Invalid encoder version",e3.KEY_CREATION_FAILED="Failed to create encoder key",e3.UNKNOWN_DECODE_ERROR="Failed to decode PES data",e3.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",e3.WRONG_DATA_TYPE="Encoder cannot process the data type",e3);g.w(WQ,g.iw);g.w(YQ,$ya);YQ.prototype.B=function(a,b){b=XQ(b);a=(new TextEncoder).encode(JSON.stringify(a));return this.i.encrypt(a,b)};
YQ.prototype.u=function(a,b){if(!(a instanceof Uint8Array))throw Wya(1);var c=new TextDecoder;b=XQ(b);a=this.i.decrypt(a,b);return JSON.parse(c.decode(a))};g.w(ZQ,$ya);ZQ.prototype.B=function(a){return a};
ZQ.prototype.u=function(a){if(a instanceof Uint8Array)throw Wya(0);return a};var dza={captionTrack:Hs,channelHandle:qs,commerceCartListEntity:Ns,downloadQualityPickerEntity:As,fakeChannel:rs,fakePlaylist:ts,fakePlaylistEntryCollection:us,fakeVideo:ws,fakeVideoDescription:xs,liveChatPollStateEntity:zs,logoEntity:ys,offlineOrchestrationActionWrapperEntity:Is,offlineVideoPolicy:Js,offlineVideoStreams:Ks,offlineabilityEntity:Bs,orchestrationWebSamplingEntity:Cs,pinnedProductEntity:Gs,playbackData:Ls,transfer:Ms,ytMainChannelEntity:Es,ytMainDownloadedVideoEntity:Ds,ytMainVideoEntity:Fs};var aR;g.w(iR,g.E);iR.prototype.B=function(a){qza(this,a.data)};
iR.prototype.xa=function(){this.channel.close()};
var oR,tza=void 0;Aza.prototype.request=function(a,b,c){b=void 0===b?{}:b;return this.locks.request(a,b,function(d){return c(d)})};Fza.prototype.Ee=function(){this.i&&rR(this)};g.w(sR,g.E);sR.prototype.i=function(a){this.api.Na("onOfflineOperationFailure",a.data)};
sR.prototype.xa=function(){var a;null===(a=this.channel)||void 0===a?void 0:a.close()};var yR=g.B.caches,xR,zR;uR.prototype.open=function(a){return yR.open(wR(a))};
uR.prototype.has=function(a){return yR.has(wR(a))};
uR.prototype.delete=function(a){return yR.delete(wR(a))};
uR.prototype.match=function(a,b){var c=this,d,e,f,h,l,m;return g.A(function(n){switch(n.i){case 1:return g.x(n,c.keys(),2);case 2:d=n.u,e=g.r(d),f=e.next();case 3:if(f.done){n.fb(5);break}h=f.value;return g.x(n,c.open(h),6);case 6:return l=n.u,g.x(n,l.match(a,b),7);case 7:if(m=n.u)return n.return(m);f=e.next();n.fb(3);break;case 5:return n.return()}})};
g.w(vR,uR);vR.prototype.keys=function(){var a,b,c,d,e,f,h,l,m;return g.A(function(n){if(1==n.i)return a=[],b=jw("CacheStorage keys"),g.x(n,yR.keys(),2);c=n.u;d=g.r(c);for(e=d.next();!e.done;e=d.next()){f=e.value;var p=f.indexOf(":");h=-1===p?{tA:f}:{tA:f.substring(0,p),datasyncId:f.substring(p+1)};l=h.tA;m=h.datasyncId;m===b&&a.push(l)}return n.return(a)})};Object.keys(tPa).map(function(a){return tPa[a]});
var Sza="captionTrack ytMainChannelEntity ytMainDownloadedVideoEntity ytMainVideoEntity offlineVideoPolicy offlineVideoStreams playbackData transfer".split(" ");var Iya=function(a){for(var b=Object.keys(a),c={},d=0;d<b.length;d++){var e=b[d];"function"===typeof a[e]&&(c[e]=a[e])}var f=Object.keys(c);try{qha(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},q=0;q<f.length;q++){var t=f[q],u=l[t],v=(0,c[t])(u,m);if("undefined"===typeof v)throw l=m&&m.type,Error("Given "+(l&&'action "'+String(l)+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');
p[t]=v;n=n||v!==u}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h,l,m=null===(l=e.options)||void 0===l?void 0:l.persistenceOption;if(m&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==m&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==m)return d;if(!e.entityKey)return g.jy(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.jy(new g.iw("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var n=ve(e.payload);return KQ(d,n,
e.entityKey,e.payload[n])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var p=HQ(e).entityType;n=KQ(d,p,e,void 0)}catch(q){if(q instanceof Error)g.jy(new g.iw("Failed to deserialize entity key",{entityKey:e,originalMessage:q.message})),n=d;else throw q;}return n}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.jy(new g.iw("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;n=ve(e.payload);return Mya(d,n,e.entityKey,e.payload[n],null===(h=null===
(f=e.fieldMask)||void 0===f?void 0:f.mergeOptions)||void 0===h?void 0:h.repeatedFieldsMergeOption)}return d},a);
case "REPLACE_ENTITY":var c=b.payload;return KQ(a,c.entityType,c.key,c.JR);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,l){return KQ(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,Mya(a,c.entityType,c.key,c.JR,c.Uca);default:return a}}}),vza=new rQ;g.w(JR,HR);JR.prototype.B=function(a){return DR(a)?Xza(this,a):ER(a)?Yza(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};g.w(LR,HR);LR.prototype.B=function(a){return DR(a)?aAa(this,a):ER(a)?bAa(this,a):"OFFLINE_ORCHESTRATION_ACTION_TYPE_UPDATE"===a.actionType&&a.entityKey?this.handleUpdate(a):Promise.reject(Error("Unsupported action type: "+a.actionType))};
LR.prototype.handleUpdate=function(a){var b=this,c,d,e;return g.A(function(f){switch(f.i){case 1:return c=CR(a),g.x(f,mR(b.i,a.entityKey,"transfer"),2);case 2:d=f.u;if(!d||"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"!==d.transferState)return f.return(new IR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c));ta(f,3);d.transferState="TRANSFER_STATE_TRANSFER_IN_QUEUE";return g.x(f,lR(b.i,d,"transfer"),5);case 5:e=HQ(d.key).entityId;BR({transferStatusType:"TRANSFER_STATUS_TYPE_REENQUEUED_BY_PLAYER_RESPONSE_REFRESH",
statusType:"ADDED_TO_QUEUE"},{videoId:e,Gm:d});ua(f,4);break;case 3:return va(f),f.return(new IR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 4:return f.return(new IR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c))}})};g.w(MR,HR);MR.prototype.B=function(a){return DR(a)?gAa(this,a):ER(a)?hAa(this,a):"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"===a.actionType&&a.entityKey?iAa(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};
var kAa=[10];var AAa=["OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"];var PR;sAa.prototype.i=function(a,b){var c=a.action.actionMetadata.priority-b.action.actionMetadata.priority;0===c&&(a.i<b.i?c=-1:a.i>b.i&&(c=1));return c};g.w(SR,g.E);SR.prototype.xa=function(){this.K&&this.K();g.E.prototype.xa.call(this)};
SR.prototype.createAction=function(a,b){var c=HQ(a.entityKey).entityType,d=Xx();return new NR(c,d,a,b.actionId,b.rootActionId)};
SR.prototype.Z=function(a){var b=this,c,d,e,f,h,l,m,n,p;return g.A(function(q){if(1==q.i){if(b.isDisposed())return q.return();d=null!==(c=a.offlineOrchestrationActionWrapperEntity)&&void 0!==c?c:new Set;e=[];f=g.r(d);for(h=f.next();!h.done;h=f.next())l=h.value,m=HQ(l),n=m.entityId,uAa(b.i,n)||e.push(l);return g.x(q,CAa(b,e),2)}p=q.u;return g.x(q,UR(b,p),0)})};
SR.prototype.retry=function(){var a=this;return g.A(function(b){return g.x(b,DAa(a),0)})};JAa.prototype.info=function(){};g.k=KAa.prototype;
g.k.rU=function(a){var b=this,c,d,e;return g.A(function(f){if(!g.T(a.state,128))return f.fb(0);var h=null===(c=a.state.getData())||void 0===c?void 0:c.errorCode,l=null===(d=a.state.getData())||void 0===d?void 0:d.UF;e="net.retryexhausted"===h&&(null===l||void 0===l?0:l.includes("net.connect"))?"TRANSFER_FAILURE_REASON_NETWORK_LOST":(null===h||void 0===h?0:h.startsWith("net."))?"TRANSFER_FAILURE_REASON_NETWORK":"TRANSFER_FAILURE_REASON_INTERNAL";return g.x(f,b.lq(b.player.getVideoData().videoId,e),
0)})};
g.k.lq=function(a,b){var c=this;return g.A(function(d){if(1==d.i){if(c.u)return d.return();c.u=!0;return"TRANSFER_FAILURE_REASON_NETWORK_LOST"===b?(WR(c,a,!1,!0),d.fb(0)):g.x(d,VR(c,a),3)}vF(a,4);return g.x(d,c.i.lq(b),0)})};
g.k.Ws=function(a){2===a.status?(a.status!==this.B&&(bS(this.i),vF(a.videoId,2)),a.Nw&&eBa(this.i,a.videoId,a.Nw)):4===a.status?(VR(this,a.videoId),this.lq(a.videoId,a.Az?"TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":"TRANSFER_FAILURE_REASON_INTERNAL")):1===a.status&&dBa(this.i);this.B=a.status;this.api.Na("localmediachange",{videoId:a.videoId,status:a.status})};
g.k.xF=function(){var a=this,b;return g.A(function(c){if(1==c.i){if(a.u)return c.return();a.u=!0;b=a.player.getVideoData().videoId;return g.x(c,VR(a,b),2)}return g.x(c,a.i.xF(),0)})};
g.k.N=function(a){return this.api.V().N(a)};g.w(YR,g.E);YR.prototype.xa=function(){this.u&&this.u();g.E.prototype.xa.call(this)};
YR.prototype.B=function(a){var b=this,c,d,e,f,h,l,m,n;return g.A(function(p){d=null!==(c=a.transfer)&&void 0!==c?c:new Set;e=[];f=g.r(d);for(h=f.next();!h.done;h=f.next())l=h.value,m=HQ(l),n=m.entityId,e.push(n);return 0===e.length?p.return():g.x(p,RAa(b,e),0)})};g.w(ZR,g.E);g.k=ZR.prototype;g.k.xa=function(){this.K&&this.K();this.S.dispose();this.C.dispose();this.oa&&Pe(this.D.B,this.oa);this.Z&&Pe(this.D.B,this.Z);g.E.prototype.xa.call(this)};
g.k.DW=function(a){this.i&&this.B&&WR(this.I,this.B,void 0===a?!1:a);this.C.stop()};
g.k.XW=function(){this.i?XAa(this,this.i):$R(this)};
g.k.LP=function(a){var b=this,c;return g.A(function(d){switch(d.i){case 1:if(!b.i){d.fb(2);break}if("TRANSFER_STATE_COMPLETE"===b.i.transferState||"TRANSFER_STATE_FAILED"===b.i.transferState||!a.transfer||!a.transfer.has(b.i.key)){d.fb(3);break}c=b;return g.x(d,mR(b.u,b.i.key,"transfer"),4);case 4:c.i=d.u;if(b.i){d.fb(3);break}return g.x(d,YAa(b),3);case 3:if(b.i)return d.return();case 2:return g.x(d,$R(b),0)}})};
g.k.lq=function(a,b){var c=this,d,e;return g.A(function(f){if(1==f.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 h=!1;break a;default:h=!0}return h&&fBa(c)?g.x(f,eS(c,"TRANSFER_STATE_TRANSFER_IN_QUEUE"),5):g.x(f,gBa(c,a),3)}3!=f.i&&(d=HQ(c.i.key).entityId,BR({transferStatusType:"TRANSFER_STATUS_TYPE_REENQUEUED_BY_RETRY",statusType:"ADDED_TO_QUEUE"},
{videoId:d,Gm:c.i}));aS(c);e=$R(c,!0);b&&b(e);g.sa(f)})};
g.k.xF=function(a){var b=this,c,d,e,f,h,l;return g.A(function(m){if(1==m.i)return fBa(b)?g.x(m,eS(b,"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"),5):g.x(m,gBa(b,"TRANSFER_FAILURE_REASON_STREAM_MISSING"),3);if(3!=m.i)return c=HQ(b.i.key).entityId,BR({transferStatusType:"TRANSFER_STATUS_TYPE_DEQUEUED_BY_PLAYER_RESPONSE_EXPIRATION",statusType:"ADDED_TO_QUEUE"},{videoId:c,Gm:b.i}),d=mAa(),d.playbackDataActionMetadata={isEnqueuedForExpiredStreamUrlRefetch:!0},e=IQ(c,"playbackData"),f={actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
entityKey:e,actionMetadata:d},h=OR(new NR("playbackData",c,f)),g.x(m,lR(b.u,h,"offlineOrchestrationActionWrapperEntity"),3);aS(b);l=$R(b,!0);a&&a(l);g.sa(m)})};
var f3={},fS=(f3.TRANSFER_STATE_TRANSFERRING=1,f3.TRANSFER_STATE_TRANSFER_IN_QUEUE=2,f3);g.k=kBa.prototype;g.k.isOrchestrationLeader=function(){return this.u.i};
g.k.refreshAllVideos=function(){var a=this,b,c;return g.A(function(d){if(1==d.i){if(!a.K.Ce())return d.return(qBa());b=a;c=b.Pw;return g.x(d,pBa(),2)}return d.return(c.call(b,d.u,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})};
g.k.deleteVideos=function(a){var b=this;return g.A(function(c){return c.return(b.Pw(a,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})};
g.k.deleteAllVideos=function(){var a=this;return g.A(function(b){return b.return(a.Pw(["!*$_ALL_VIDEOS_!*$"],"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})};
g.k.Pw=function(a,b,c){var d=this,e,f,h;return g.A(function(l){if(1==l.i)return g.x(l,pR(),2);e=l.u;if(!e||!d.Y.N("woffle_orchestration"))return l.return([]);f=a.map(function(m){var n=IQ(m,"ytMainDownloadedVideoEntity");n={actionType:b,entityKey:n,actionMetadata:Object.assign(Object.assign({},mAa()),c)};"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"!==b&&(n.actionMetadata.priority=0);m=new NR("ytMainDownloadedVideoEntity",m,n);return OR(m)});
h=rza(e,f);Gza(d.u);return l.return(h)})};var hS=[],CIa=!1;g.uW=lf(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.w(g.iS,yJ);g.k=g.iS.prototype;g.k.isView=function(){return!0};
g.k.bG=function(){var a=this.ra.getCurrentTime();if(a<this.start)try{var b=this.ra.Tf(),c=gD(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Kp=function(){return iD(this.ra.Kp(),this.start,this.end)};
g.k.Tf=function(){return iD(this.ra.Tf(),this.start,this.end)};
g.k.Kv=function(){return iD(this.ra.Kv(),this.start,this.end)};
g.k.getCurrentTime=function(){return this.ra.getCurrentTime()-this.start};
g.k.Qx=function(a){this.ra.Qx(a+this.start)};
g.k.getDuration=function(){return isFinite(this.end)&&!this.i?this.end-this.start:this.ra.getDuration()-this.start};
g.k.play=function(){if(this.bG()){this.ra.getCurrentTime();try{this.ra.Qx(this.start)}catch(a){}}return this.ra.play()};
g.k.Kb=function(){var a=yJ.prototype.Kb.call(this);a.view=this.start+"-"+this.end;return a};
g.k.addEventListener=function(a,b){this.ra.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.ra.removeEventListener(a,b)};
g.k.Nx=function(){return this.ra.Nx()};
g.k.Jr=function(a){this.ra.Jr(a)};
g.k.Ip=function(){return this.ra.Ip()};
g.k.playVideo=function(){return this.ra.playVideo()};
g.k.BD=function(){this.ra.BD()};
g.k.zD=function(){this.ra.zD()};
g.k.Uo=function(){return this.ra.Uo()};
g.k.Me=function(){return this.ra.Me()};
g.k.Bf=function(){return this.ra.Bf()};
g.k.Rx=function(a){this.ra.Rx(a)};
g.k.PA=function(){this.ra.PA()};
g.k.getPlaybackRate=function(){return this.ra.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.ra.setPlaybackRate(a)};
g.k.Hp=function(){return this.ra.Hp()};
g.k.setLoop=function(a){this.ra.setLoop(a)};
g.k.canPlayType=function(a,b){return this.ra.canPlayType(a,b)};
g.k.il=function(){return this.ra.il()};
g.k.xu=function(){return this.ra.xu()};
g.k.Nk=function(){return this.ra.Nk()};
g.k.iz=function(){return this.ra.iz()};
g.k.Ct=function(a){this.ra.Ct(a)};
g.k.Ox=function(){return this.ra.Ox()};
g.k.load=function(){this.ra.load()};
g.k.pause=function(){this.ra.pause()};
g.k.wh=function(){return this.ra.wh()};
g.k.jz=function(){return this.ra.jz()};
g.k.hj=function(){return this.ra.hj()};
g.k.me=function(){return this.ra.me()};
g.k.Px=function(){return this.ra.Px()};
g.k.qf=function(){return this.ra.qf()};
g.k.Io=function(){return this.ra.Io()};
g.k.togglePictureInPicture=function(){this.ra.togglePictureInPicture()};
g.k.En=function(){return this.ra.En()};
g.k.getSize=function(){return this.ra.getSize()};
g.k.setSize=function(a){this.ra.setSize(a)};
g.k.getVolume=function(){return this.ra.getVolume()};
g.k.setVolume=function(a){this.ra.setVolume(a)};
g.k.setAttribute=function(a,b){this.ra.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.ra.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.ra.hasAttribute(a)};
g.k.Ju=ba(22);g.k.sx=ba(24);g.k.tx=ba(26);g.k.Rr=ba(28);g.k.ov=function(){return this.ra.ov()};
g.k.Rm=function(a){this.ra.Rm(a)};
g.k.getStyle=function(a){return this.ra.getStyle(a)};
g.k.BE=function(){return this.ra.BE()};
g.k.stopVideo=function(){this.ra.stopVideo()};
g.k.DD=function(a){this.ra.DD(a)};
g.k.audioTracks=function(){return this.ra.audioTracks()};kS.prototype.Sk=function(a,b){var c=this;b=void 0===b?1:b;this.i+=b;this.B+=a;var d=a/b;jS.forEach(function(e,f){d<e||(c.u[f]+=b)})};
kS.prototype.toString=function(){return""};
var jS=[20,100,500,2E3];g.k=yBa.prototype;g.k.isActive=function(){return!0};
g.k.Ez=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.DB=a.prototype[e],d.GB=b[e],a.prototype[e]=function(f){return function(){var h=g.Ba.apply(0,arguments),l=(0,g.P)();h=f.DB.apply(this,h);lS(c,f.GB,(0,g.P)()-l);return h}}(d)),d={DB:d.DB,
GB:d.GB}}};
g.k.Ko=function(a){return new xBa(a)};
g.k.vn=function(a,b){b=void 0===b?1:b;a instanceof xBa&&(lS(this,a.name,(0,g.P)()-a.startTimeMs,b),a.i=!0)};
g.k.WF=function(a,b){var c=void 0===c?1:c;var d=(0,g.P)();b();lS(this,a,(0,g.P)()-d,c)};
g.k.hK=function(){var a={},b;for(b in this.profiles)if(this.profiles.hasOwnProperty(b)){var c=this.profiles[b];if(0===c.i)c=null;else{for(var d=c.i.toString()+"."+Math.round(c.B).toString(),e=0;e<jS.length;++e)if(0<c.u[e])d+="."+jS[e].toString()+"_"+Math.round(c.u[e]).toString();else break;c=d}c&&(a[b]=c)}this.profiles=new wBa;return a};
g.k.toString=function(){return""};g.k=mS.prototype;g.k.isActive=function(){return!1};
g.k.Ez=function(){};
g.k.Ko=function(){};
g.k.vn=function(){};
g.k.WF=function(a,b){b()};
g.k.hK=function(){return{}};
g.k.toString=function(){return""};var g3,vX,h3,MT,JIa;g3=new mS;vX=Us("html5_enable_profiler")||Us("html5_onesie_enable_profiler")||Us("html5_offline_encryption_enable_profiler")||0<Us("html5_performance_impact_profiling_timer_ms")?new yBa:new mS;g.pS=Us("html5_enable_profiler")?vX:g3;h3=Us("html5_onesie_enable_profiler")?vX:g3;MT=Us("html5_offline_encryption_enable_profiler")?vX:g3;JIa=Us("html5_performance_impact_profiling_timer_ms")?vX:g3;nS.prototype.then=function(a,b){return this.promise.then(a,b)};
nS.prototype.resolve=function(a){this.u(a)};
nS.prototype.reject=function(a){this.i(a)};g.w(oS,g.E);g.k=oS.prototype;g.k.isFinished=function(){return 6===this.status.status};
g.k.getStatus=function(){return this.status};
g.k.gp=function(){var a=this.i.getVideoData(),b=this.u.getVideoData();if(a.C){var c;if(c=a.i){c=a.i;for(var d=!1,e=!1,f=g.r(Object.values(c.i)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.isLoaded()&&(d=!0),h.info.video&&h.index.isLoaded()&&(e=!0);c.i["0"]&&(e=!0);c=!(d&&e)}if(c)this.ma();else if(this.i.kd()){f=vBa(this.policy,this.i,this.u,this.Lj);h=zBa(this);c=h.vR;e=h.YL;d=h.RJ;h=h.XL;if(!this.I){var l=1E3*this.u.Dh(),m=this.i.Dh();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=
0);a=a.isAd();this.u.Tw(l,m,a);this.I=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Le(b,f)):2===this.status.status?GBa(this):(a=this.i.Ip())?a.i||a.u?!rD(a)&&g.ru()?this.Le("mse_closed"):b.i&&QA(b.i)&&a.u&&!a.u.ez()?this.Le("encr_upgrade"):(b=this.i.kd(),b.Nk()?this.Le("elem_ended"):0>e?this.Le("next_player_future"):(this.D=d,this.B=lna(a,c,d,!0),this.C=lna(a,e,h,!1),a=this.u.getVideoData().clientPlaybackNonce,this.i.Ca("gaplessPrep","cpn."+a),rS(this.i,this.B),this.i.setMediaElement(ABa(b,c,d,
!this.i.getVideoData().isAd())),qS(this,2),GBa(this))):this.ma():this.ma()}else this.Le("no-elem")}else this.ma()};
g.k.xr=function(a){var b=FBa(this).NN,c=a===b;b=c?this.B.i:this.B.u;c=c?this.C.i:this.C.u;if(b.isActive&&!c.isActive){var d=this.D;fD(a.kf(),d-.01)&&(qS(this,4),b.isActive=!1,b.Gx=b.Gx||b.isActive,this.u.Ca("sbh","1"),c.isActive=!0,c.Gx=c.Gx||c.isActive);a=this.C.u;this.C.i.isActive&&a.isActive&&qS(this,5)}};
g.k.yM=function(){4<=this.status.status&&6>this.status.status&&this.Le("player-reload-after-handoff")};
g.k.Le=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&!this.isFinished()){this.ma();var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.i&&this.u){var d=this.u.getVideoData().clientPlaybackNonce;this.i.ld(new g.lD("dai.transitionfailure",!1,Object.assign(b,{cpn:d,transitionTimeMs:this.Lj,msg:a})));a=this.i;a.videoData.La=!1;c&&eW(a);a.Ya&&yEa(a.Ya)}this.Yk.reject(void 0);this.dispose()}};
g.k.xa=function(){EBa(this);this.i.unsubscribe("newelementrequired",this.yM,this);if(this.B){var a=this.B.u;this.B.i.Cd.unsubscribe("updateend",this.xr,this);a.Cd.unsubscribe("updateend",this.xr,this)}g.E.prototype.xa.call(this)};
g.k.Nc=function(a){g.xH(a,128)&&this.Le("player-error-event")};
g.k.ma=function(){};g.w(tS,g.E);tS.prototype.clearQueue=function(){this.ma();this.C&&this.C.reject("Queue cleared");uS(this)};
tS.prototype.Ns=function(){return!this.u};
tS.prototype.xa=function(){uS(this);g.E.prototype.xa.call(this)};
tS.prototype.ma=function(){};g.w(xS,g.Q);g.k=xS.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:KBa()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.Oi=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Ee())};
g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Ee())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Ee())};
g.k.Dt=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Ee())};
g.k.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.Ee())};
g.k.qf=function(){return this.i};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.ws=function(){return this.fullscreen};
g.k.Je=function(){return this.B};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return KBa()};
g.k.Ls=function(){return this.pictureInPicture};
g.k.Js=function(){return this.u};
g.k.Ee=function(){this.ea("visibilitychange");var a=this.getVisibilityState(this.qf(),this.isFullscreen(),this.Je(),this.isInline(),this.Ls(),this.Js());a!==this.D&&this.ea("visibilitystatechange");this.D=a};
g.k.xa=function(){NBa(this.C);g.Q.prototype.xa.call(this)};g.w(g.BS,g.E);g.k=g.BS.prototype;
g.k.onCueRangeEnter=function(a){this.La.push(a);var b=a.getId(),c=""===b;this.Sa.add(a.u);c||this.Da.Ca("sdai","enterAdCueRange");if(this.Va){this.Va=!1;if(!c){var d=this.B.get(b);d&&(this.Y.N("web_player_ss_record_join_mid_ad_break_killswitch")||this.Da.XF(d.cpn,d.videoData.videoId,d.videoData.Nb),this.api.ea("serverstitchedvideochange",d.Bc,d.Qm),this.Da.Ca("sdai",{ssvc:"midab"}),this.Kl=1)}this.oa=!1}else if(this.i){if(this.i.Tp)this.Da.Ca("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.i.adCpn,
transitionTime:this.i.Jf,cpn:b,currentTime:this.Da.getCurrentTime()}),this.Y.N("web_player_same_transition_fallback_killswitch")||(d=this.Da.getCurrentTime(),a={Fd:a,isAd:!c,Tp:!0,Jf:d,adCpn:b},d={Fd:this.i.Fd,isAd:this.i.isAd,Tp:!1,Jf:d,adCpn:this.i.adCpn},this.Sa.delete(this.i.Fd.u),ES(this,a,d));else{if(this.i.Fd===a){this.Da.Ca("sdai",{same_cue_range_pair_enter:1,acpn:this.i.adCpn,transitionTime:this.i.Jf,cpn:b,currentTime:this.Da.getCurrentTime()});this.i=void 0;return}if(this.i.adCpn===b){b&&
this.Da.Ca("sdai",{dchtsc:b});this.i=void 0;return}d={Fd:a,isAd:!c,Tp:!0,Jf:this.Da.getCurrentTime(),adCpn:b};ES(this,d,this.i)}this.i=void 0;this.oa=!1}else this.i={Fd:a,isAd:!c,Tp:!0,Jf:this.Da.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){if(this.Y.N("web_player_same_transition_fallback_killswitch")||this.Sa.has(a.u)){this.Sa.delete(a.u);this.La=this.La.filter(function(d){return d!==a});
this.Va&&(this.oa=this.Va=!1,this.Da.Ca("sdai","cref"));var b=a.getId(),c=""===b;if(this.i){if(this.i.Tp){if(this.i.Fd===a){this.Da.Ca("sdai",{same_cue_range_pair_exit:1,acpn:this.i.adCpn,transitionTime:this.i.Jf,cpn:b,currentTime:this.Da.getCurrentTime()});this.i=void 0;return}if(this.i.adCpn===b){b&&this.Da.Ca("sdai",{dchtsc:b});this.i=void 0;return}c={Fd:a,isAd:!c,Tp:!1,Jf:this.Da.getCurrentTime(),adCpn:b};ES(this,this.i,c)}else this.Da.Ca("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.i.adCpn,
transitionTime:this.i.Jf,upcomingCpn:b,contentCpn:this.Da.getVideoData().clientPlaybackNonce,currentTime:this.Da.getCurrentTime()});this.i=void 0;this.oa=!1}else this.i={Fd:a,isAd:!c,Tp:!1,Jf:this.Da.getCurrentTime(),adCpn:b};this.Y.N("web_player_halftime_dai")&&(b=this.B.get(b),this.isLiveNow&&b&&this.Da.getCurrentTime()<this.Da.mj()&&yS(this,Infinity))}else this.Da.Ca("sdai","ignore_single_exit")};
g.k.isAdPlaying=function(a){return!!HS(this,1E3*a)};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.oa=!0;if(void 0===b?0:b)yS(this,a);else{b=this.api.Jc();var d=b===this.Ba?this.bb:null;IS(this,!1);this.rb=a;null!=c&&this.jb.start(c);b&&(this.bb=d||b.getPlayerState(),NX(b),this.Ba=b)}};
g.k.xa=function(){IS(this,!1);KS(this);WBa(this);g.E.prototype.xa.call(this)};
g.k.ma=function(){};
g.k.qG=function(a){this.Db=a;this.Da.Ca("sdai","swebm."+a)};
g.k.qj=function(a,b,c){if(c&&b){var d=this.Aa.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.UA(c);this.Z&&this.Da.Ca("sdai",{hdlredir:1,itag:b,seg:a,hostport:XA(c)});d.locations.set(e,c)}}};
g.k.Ep=function(a,b,c,d){var e,f,h,l=Number(c.split(";")[0]),m=3===d;if(g.YBa(this,b))return this.Z&&this.Da.Ca("sdai",{gdu:"undec",seg:b,itag:l}),null;a=MS(this,a,b);this.Z&&this.Da.Ca("sdai",{gdu:1,seg:b,itag:l,pb:""+!!a});if(!a)return OS(this,b,m),null;if(this.Fc&&a.errorCount>=this.Fc)return this.Da.Ca("sdai",{gdu:1,seg:b,itag:l,err:a.errorCount}),null;a.locations||(a.locations=new Map);if(!a.locations.has(l)){var n=null===(f=null===(e=a.playerResponse)||void 0===e?void 0:e.streamingData)||void 0===
f?void 0:f.adaptiveFormats;if(!n)return this.Da.Ca("sdai",{gdu:"noadpfmts",seg:b,itag:l}),OS(this,b,m),null;var p=n.find(function(t){return t.itag===l});
if(!p||!p.url){c={gdu:"nofmt",seg:b,vid:a.videoData.videoId,itag:l,fullitag:c,itags:""};if(!this.Y.N("html5_ssdai_log_missing_itags_killswitch")){a=[];d=g.r(n);for(n=d.next();!n.done;n=d.next())a.push(n.value.itag);c.itags=a.join(",")}this.Da.Ca("sdai",c);OS(this,b,m);return null}n=!this.Y.N("html5_ssdai_decipher_killswitch");a.locations.set(l,new g.UA(p.url,n))}n=a.locations.get(l);if(!n)return this.Da.Ca("sdai",{gdu:"nourl",seg:b,itag:l}),OS(this,b,m),null;p=new PB(n);this.Db&&p.set("dvc","webm");
this.Y.experiments.ob("ssdai_return_original_content")&&p.set("dairoc","1");(n=this.cz(b-1,d))&&p.set("daistate",n);a.yG&&b>=a.yG&&p.set("skipsq",""+a.yG);var q=this.Da.getVideoData().clientPlaybackNonce;q&&p.set("cpn",q);n=[];a.lk&&(n=ZBa(this,a.lk),0<n.length&&p.set("acpns",n.join(",")));m||this.Aa.set(b,a);this.Y.N("web_player_ssdai_acpns_aids_logging_killswitch")||(m=p.get("aids"),((null===(h=null===m||void 0===m?void 0:m.split(","))||void 0===h?void 0:h.length)||0)!==n.length&&(a.lk?this.Da.Ca("sdai",
{acpns_aids_nm:1,ids:aCa(this,a.lk).join("_"),aids:null===m||void 0===m?void 0:m.replace(/,/g,"_"),cpn:q,trackType:d}):this.Da.Ca("sdai",{acpns_aids_nm:"noAdBreakId",cpn:q})));m=g.QB(p);2048<(null===m||void 0===m?void 0:m.length)&&this.Da.Ca("sdai",{urltoolong:1,sq:b,itag:l,len:m.length});this.Z&&(m&&(p=a.cpn,d=a.lk,cCa(this,p,d),d&&!this.ac.has(d)&&(p=$Ba(this,p,d),q=bCa(this,d),this.Da.Ca("sdai",{iofa:p}),this.Da.Ca("sdai",{noawnzd:q-p}),this.Da.Ca("sdai",{acpns:n.join(".")}),this.ac.add(d))),this.Da.Ca("sdai",
{gdu:"v",seg:b,itag:c,ast:a.Cc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));return m};
g.k.xG=function(a,b){if(a=MS(this,a,b))if(a=a.lk)if(this.Da.Ca("sdai",{skip_adbreakid:a}),a=this.I.get(a)){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c.value.yG=b}};
g.k.cz=function(a,b){return 1===b&&this.Ha.has(a)?this.Ha.get(a)||"":2===b&&this.Za.has(a)?this.Za.get(a)||"":3===b&&this.Ka.has(a)?this.Ka.get(a)||"":""};
g.k.Bx=ba(31);
g.k.EF=function(a,b,c,d,e,f,h,l){l&&(h?this.Za.set(a,l):this.Ha.set(a,l));if(h){if(d.length&&e.length)for(a=b+LS(this),h=g.r(d.entries()),l=h.next();!l.done;l=h.next()){var m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=a;a=m+e[l];if(n=this.B.get(n))l=m-f[l],n.Qm=null!=n.Qm?Math.min(n.Qm,l):l}if(!AS(this))if(d.length&&e.length)for(b=1E3*(b+LS(this)),d=g.r(d.entries()),c=d.next();!c.done;c=d.next())if(c=g.r(c.value),f=c.next().value,c=c.next().value,f=1E3*e[f],c===this.Da.getVideoData().clientPlaybackNonce)NS(this,b,
b+f,!1),b+=f;else if(this.Nb.has(c)||(this.Da.Ca("sdai","adCpnFromEmsg"),this.Nb.add(c)),(a=this.D.get(c))&&a.start<=b&&a.end>=b+f)b=a.end;else{if(h=!1,a?b<a.start?a.start=b:a.end<b+f&&(a.end=b+f):(a=TBa(b,b+f,c),this.D.set(c,a),this.Da.Ca("sdai","newAdCR"),h=!0),b=a.end,NS(this,a.start,a.end,!0),h)for(this.Da.addCueRange(a),c=this.Da.qv("serverstitchedcuerange",36E5),c=g.r(c),f=c.next();!f.done;f=c.next())this.D.delete(f.value.getId())}else 5!==c&&4!==c||NS(this,1E3*(b+LS(this)),1E3*(b+LS(this))+
5E3,!1)}};
g.k.zv=ba(33);g.k.wj=function(a){this.Da.Ca("timelineerror",a);this.ma()};
g.k.Nv=function(a){this.S&&this.K&&this.va.push(this.K);!this.Y.N("web_player_skip_fetched_cuepoint_killswitch")&&a&&this.K&&this.wb.push(this.K);this.K=null;this.Da.Nv(a)};
g.k.kE=function(a){var b;a.identifier&&this.fc.has(a.identifier)?(this.Z&&this.Da.Ca("sdai",{startnoad:a.identifier}),PS(this)):Jn(this.va,function(c){return c.identifier===a.identifier})?(this.Da.Ca("sdai",{timedoutcp:1}),this.X.start(0)):!this.Y.N("web_player_skip_fetched_cuepoint_killswitch")&&Jn(this.wb,function(c){return c.identifier===a.identifier})?(this.Da.Ca("sdai","fetchedcp"),PS(this)):this.X.isActive()?this.Da.Ca("sdai","racingcp_"+(null===(b=this.K)||void 0===b?void 0:b.identifier)+"_"+
a.identifier):(this.Eb=(new Date).getTime()/1E3,this.Z&&this.Da.Ca("sdai",{adf:1}),this.S=!1,this.X.start(),this.K=a,this.Ha.clear(),this.Za.clear(),this.Ka.clear(),this.Y.N("enable_h5_ssdai_decoration_records_clear_killswitch")&&this.Aa.clear(),this.Wa=[])};
g.k.Pv=function(a,b){(a=MS(this,a,b))&&a.errorCount++};
g.k.xo=function(a){var b;this.fc.add(a);(null===(b=this.K)||void 0===b?void 0:b.identifier)===a&&PS(this)};
g.k.DF=function(a,b){if(AS(this)){var c=this.Da.getVideoData().clientPlaybackNonce,d=b||c;(a||c)!==d&&(d!==c?(a=this.u.find(function(e){return e.cpn===b}))?(this.api.ea("serverstitchedvideochange",a.Bc,a.Qm),this.Kl++):(this.Da.Ca("sdai",{acpnnotfound:b}),this.api.ea("serverstitchedvideochange"),this.Kl=0):(this.api.ea("serverstitchedvideochange"),this.Kl=0))}};
var RBa=0;g.w(QS,g.E);g.k=QS.prototype;g.k.onCueRangeEnter=function(a){if(this.i===this.api.Jc()){var b=this.I.get(a);if(b){var c=b.target;this.ma();jCa(this,c,b.Lj,a)}else this.ld("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cid:a.getId()})}else if(b=this.u.find(function(e){return e.pn.Fd===a})){var d=b.pn;
this.ma();c=d.target;d=d.Lj;c?jCa(this,c,d,a):iCa(this,b.Xc,d,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.K;US(this);if(a){if(!TS(this,a)){var b=this.api.Jc();this.ld("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null===b||void 0===b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}b=this.api.Jc();a=a.pn;this.ma();b.addCueRange(a.Fd)}};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)dCa(this,a);else{b=this.api.Jc();var d=b===this.C?this.D:null;WS(this,!1);this.X=a;null!=c&&this.S.start(c);b&&(this.D=d||b.getPlayerState(),NX(b),this.C=b)}};
g.k.Kh=function(a){g.xH(a,128)&&mCa(this)};
g.k.isManifestless=function(){return YF(this.i.getVideoData())};
g.k.xa=function(){WS(this,!1);YS(this);g.E.prototype.xa.call(this)};
g.k.ma=function(){};
g.k.ld=function(a,b){this.i.ld(new g.lD(a,!1,b))};
var eCa=0;var oCa="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.w(aT,g.E);aT.prototype.get=function(a){ZS(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
aT.prototype.set=function(a,b,c){this.remove(a,!0);ZS(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.P)()+c);for(this.data.push(a);this.data.length>this.B;)(c=this.data.shift())&&bT(this,c,!0);$S(this)};
aT.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(bT(this,c,b),g.Vb(this.data,function(d){return d.key===a}),$S(this))};
aT.prototype.xa=function(){var a=this;g.E.prototype.xa.call(this);this.data.forEach(function(b){bT(a,b,!0)});
this.data=[]};g.w(cT,g.Lr);cT.prototype.ea=function(a){var b=g.Ba.apply(1,arguments);if(this.D.has(a))return this.D.get(a).push(b),!0;var c=!1;try{for(b=[b],this.D.set(a,b);b.length;)c=g.Lr.prototype.ea.call.apply(g.Lr.prototype.ea,[this,a].concat(g.la(b.shift())))}finally{this.D.delete(a)}return c};dT.prototype.add=function(a){this.i=(this.i+1)%this.data.length;this.data[this.i]=a};
dT.prototype.forEach=function(a){for(var b=this.i+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.i;b++)a(this.data[b]||0)};
dT.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.u=this.i=this.data.length-1};g.w(eT,g.E);eT.prototype.start=function(){this.u.start()};
eT.prototype.stop=function(){this.u.stop()};
eT.prototype.clear=function(){for(var a=g.r(this.i.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
eT.prototype.sample=function(){for(var a=g.r(this.B),b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;this.i.has(b)||this.i.set(b,new hT(APa.has(b)));this.i.get(b).update(c())}this.u.start()};
var APa=new Set(["networkactivity"]);hT.prototype.update=function(a){this.u?(this.buffer.add(a-this.i||0),this.i=a):this.buffer.add(a)};
hT.prototype.clear=function(){this.buffer.clear();this.i=0};g.w(iT,g.E);iT.prototype.xa=function(){g.E.prototype.xa.call(this);this.i=null;this.u&&this.u.disconnect()};g.BPa=lf(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var i3;i3={};g.jT=(i3.STOP_EVENT_PROPAGATION="html5-stop-propagation",i3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",i3.IV_DRAWER_OPEN="ytp-iv-drawer-open",i3.MAIN_VIDEO="html5-main-video",i3.VIDEO_CONTAINER="html5-video-container",i3.HOUSE_BRAND="house-brand",i3);g.w(kT,g.X);g.k=kT.prototype;g.k.Rm=function(){g.jr(this.element,g.Ba.apply(0,arguments))};
g.k.Bg=function(){this.Lb&&(this.Lb.removeEventListener("focus",this.tF),g.Rg(this.Lb),this.Lb=null)};
g.k.xD=function(){this.isDisposed();var a=this.app.V();a.cj||this.Rm("tag-pool-enabled");a.D&&this.Rm(g.jT.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Rm("ytp-gvn"),this.element.style.backgroundColor="transparent");a.bb&&(this.pD=g.Dv("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
g.k.ex=function(a){CE(this.app.V());this.xz=!a;lT(this)};
g.k.resize=function(){if(this.Lb){var a=this.pg();if(!a.isEmpty()){var b=!g.kg(a,this.ot.getSize()),c=xCa(this);b&&(this.ot.width=a.width,this.ot.height=a.height);a=this.app.V();(c||b||a.bb)&&this.app.Ta.ea("resize",this.getPlayerSize())}}};
g.k.Fs=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.Lb){var b=this.app.V();Au&&(this.Lb.setAttribute("x-webkit-airplay","allow"),a.title?this.Lb.setAttribute("title",a.title):this.Lb.removeAttribute("title"));Cqa(a)?this.Lb.setAttribute("disableremoteplayback",""):this.Lb.removeAttribute("disableremoteplayback");this.Lb.setAttribute("controlslist","nodownload");b.Bl&&a.videoId&&(this.Lb.poster=a.Ie("default.jpg"))}b=g.lG(a,"yt:bgcolor");this.Tu.style.backgroundColor=b?b:"";this.ZE=qE(g.lG(a,"yt:stretch"));this.aF=
qE(g.lG(a,"yt:crop"),!0);g.M(this.element,"ytp-dni",a.D);this.resize()};
g.k.setGlobalCrop=function(a){this.iE=qE(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.xJ=a;this.resize()};
g.k.Oi=function(){};
g.k.getPlayerSize=function(){var a=this.app.V(),b=this.app.Ta.isFullscreen();if(b&&pu())return new g.jg(window.outerWidth,window.outerHeight);if(b||a.fk){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.ew&&this.ew.media===a||(this.ew=window.matchMedia(a));var c=this.ew&&this.ew.matches}if(c)return new g.jg(window.innerWidth,window.innerHeight)}else if(!isNaN(this.vv.width)&&!isNaN(this.vv.height))return this.vv.clone();return new g.jg(this.element.clientWidth,
this.element.clientHeight)};
g.k.pg=function(){var a=this.app.V().N("enable_desktop_player_underlay"),b=this.getPlayerSize();return a&&this.PF&&768<b.width?new g.jg(.46*b.width,b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.ZE)?vCa(this):this.ZE};
g.k.getVideoContentRect=function(a){var b=this.pg();a=wCa(this,b,this.getVideoAspectRatio(),a);return new g.bm((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.YA=function(a){this.PF=a;this.resize()};
g.k.Hz=function(){return this.CA};
g.k.onMutedAutoplayChange=function(){lT(this)};
g.k.setInternalSize=function(a){g.kg(this.vv,a)||(this.vv=a,this.resize())};
g.k.xa=function(){this.pD&&g.Ev(this.pD);this.Bg();g.X.prototype.xa.call(this)};g.k=yCa.prototype;g.k.click=function(a,b){this.elements.has(a);this.i.has(a);var c=g.cy();c&&a.visualElement&&g.uy(c,a.visualElement,b)};
g.k.Jb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=$ja(c);a.visualElement=c;var f=g.cy(),h=g.by();f&&h&&g.oy(void 0,f,h,[c]);g.he(b,function(){zCa(e,a)});
d&&this.u.add(a)};
g.k.Og=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.he(b,function(){zCa(d,a)});
c&&this.u.add(a)};
g.k.Cm=function(a,b){this.elements.has(a);b&&(a.visualElement=g.Zx(b))};
g.k.Sv=function(a){return this.elements.has(a)};g.w(pT,g.X);
pT.prototype.setValue=function(a,b){for(var c=0;c+2<this.B.length&&this.B[c+1]<b;)c++;b=Math.min(1,(b-this.B[c])/(this.B[c+1]-this.B[c]));if(this.ctx)this.ctx.fillStyle=this.C[c],this.ctx.fillRect(a*this.i,0,this.i,this.heightPx),this.ctx.fillStyle=this.C[c+1],this.ctx.fillRect(a*this.i,this.heightPx*(1-b),this.i,this.heightPx);else{a=this.element.children[a];var d=window.devicePixelRatio||1;b=Math.min(this.heightPx,Math.round(this.heightPx*b*d)/d)||0;a.style.height=b+"px";a.style.backgroundColor=this.C[c+
1];a.style.borderTop="solid "+(this.heightPx-b)+"px "+this.C[c]}};g.w(rT,g.X);g.k=rT.prototype;g.k.show=function(){g.X.prototype.show.call(this);this.Pa()};
g.k.hide=function(){g.X.prototype.hide.call(this);this.delay.stop()};
g.k.stop=function(){this.delay.stop()};
g.k.start=function(){this.delay.isActive()||this.Pa()};
g.k.Pa=function(){var a=(0,g.P)(),b=this.Ta.getStatsForNerds();qT(this.i,b.bandwidth_samples);qT(this.C,b.network_activity_samples);qT(this.B,b.live_latency_samples);qT(this.u,b.buffer_health_samples);this.update(b);a=25<(0,g.P)()-a?5E3:500;this.delay.start(a)};sT.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
sT.prototype.getPlaybackRate=function(){return this.playbackRate};wT.prototype.seek=function(a){a!==this.B&&(this.seekCount=0);this.B=a;var b=this.videoTrack.u,c=this.audioTrack.u,d=this.audioTrack.Wb,e=ICa(this,this.videoTrack,a,this.videoTrack.Wb);d=ICa(this,this.audioTrack,this.policy.va?a:e,d);a=Math.max(a,e,d);this.i=!0;this.u.isManifestless&&(GCa(this,this.videoTrack,b),GCa(this,this.audioTrack,c));return a};
wT.prototype.ma=function(){};
var HCa=2/24;NCa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.P)()};g.w(BT,g.Q);g.k=BT.prototype;
g.k.kA=function(a,b,c){if(this.D){var d=[],e=[],f=[],h=void 0;b&&(d=b.i,e=b.u,f=b.C,h=b.B);this.D.EF(a.Ma,a.startTime,this.i,d,e,f,c,h)}if(c){if(b&&!this.oa.has(a.Ma)){c=a.startTime;d=[];e=g.r(b.i.entries());for(f=e.next();!f.done;f=e.next()){h=g.r(f.value);f=h.next().value;h=h.next().value;var l=c;c=l+b.u[f];d.push({startTime:l,endTime:c,adCpn:h})}this.oa.set(a.Ma,d)}this.policy.fc&&(c=this.Z&&a.Ma===this.Z.Ma+1,this.Z=a,d=this.u&&a.Ma===this.u.Ma+1,d=this.u&&c&&d&&"stop"!==this.u.le.event&&"predictStart"!==
this.u.le.event,e=a.le||null,f=this.I.i.index.getLastSegmentNumber()<=a.Ma,h=this.S.isManifestless&&this.policy.yl,e?(this.u={le:e,Ma:a.Ma,Rv:!!b},f?CT(this,e,a.Ma):h&&(c?d?CT(this,e,a.Ma):"continue"===e.event||"stop"===e.event?RCa(this,a):CT(this,e,a.Ma):CT(this,e,a.Ma))):d&&RCa(this,a))}};
g.k.yF=function(a,b,c){var d=this.I.i.index.getLastSegmentNumber()<=b;this.u={le:a,Ma:b,Rv:c};d&&CT(this,a,b)};
g.k.Ca=function(a,b){this.Ya.Ca(a,b)};
g.k.nx=function(a,b){var c,d=this.I.i.index.getSegmentNumberForTime(a);return 0<=d&&(null===(c=this.D)||void 0===c?0:c.cz(d,2))?(this.Ca("sdai","skipad_on"+d+"_t"+a.toFixed(3)),b.xG(a,d),QCa(this,a,a,d),!0):!1};
g.k.Ds=function(a){var b="",c=this.I.i.index.getSegmentNumberForTime(a);if(c=this.oa.get(c)){c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.startTime<=a&&a<d.endTime){b=d.adCpn;break}}return b};ET.prototype.Ot=function(a){var b,c,d=this.policy.S;this.policy.S=JD(a,{},this.I);d!==this.policy.S&&(FT(this,this.B),HT(this),d>this.policy.S&&(null===(b=this.i)||void 0===b?0:SC(b.info))&&(null===(c=this.nextVideo)||void 0===c||!SC(c.info))&&(this.S=!0))};
ET.prototype.ma=function(){};NT.prototype.dispose=function(){this.Z=!0};
NT.prototype.isDisposed=function(){return this.Z};VT.prototype.skip=function(a){this.offset+=a};
VT.prototype.getOffset=function(){return this.offset};XT.prototype.Ph=function(){this.u.shift()};
XT.prototype.Lk=function(){return!!this.D.info.audio};
XT.prototype.getDuration=function(){return this.D.index.getMaxKnownEndTime()};
XT.prototype.ma=function(){};g.k=gU.prototype;g.k.TD=function(){return 0};
g.k.YH=function(){return null};
g.k.sK=function(){return null};
g.k.isComplete=function(){return 3<=this.state};
g.k.isFailed=function(){return 5===this.state};
g.k.onStateChange=function(){};
g.k.isDisposed=function(){return-1===this.state};
g.k.dispose=function(){this.info.i[0].i.I=!1;hU(this,-1)};g.w(kU,gU);g.k=kU.prototype;g.k.onStateChange=function(){this.isDisposed()&&(oHa(this.De,this.u),this.B.dispose())};
g.k.Bv=function(){return{}};
g.k.pK=function(){return 0};
g.k.Cu=function(){return!0};
g.k.dC=function(){this.Jn();this.S=!0;return FDa(this.i)};
g.k.ZH=function(){this.Jn();return this.i.Zd};
g.k.nt=function(){var a,b;return!(null===(b=null===(a=this.i)||void 0===a?void 0:a.Zd)||void 0===b||!b.length)||this.De.Wf(this.u)};
g.k.Jn=function(){for(;this.De.Wf(this.u);){var a=this.i,b=this.De.Ph(this.u),c=this.De.Ne.get(this.u);EDa(a,b,c.rf&&!c.Zd.totalLength&&HDa(this.De,this.u))}};lU.prototype.Yf=function(){return pDa(this.C)};
lU.prototype.Ph=function(a){this.C.Ph(a);a=a.info;var b=a.i.info.Ob;this.policy.Hr&&a.Sd&&a.duration&&(b=Math.max(b,(a.Bb+a.u)/a.duration));this.Ob=Math.max(this.Ob,b||0)};
lU.prototype.getDuration=function(){return this.i.index.getMaxKnownEndTime()};
lU.prototype.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.i[0].Ma:!1};g.k=eV.prototype;g.k.Ys=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.C.Zs()};
g.k.onError=function(){this.D=!0;this.onDone()};
g.k.onDone=function(){this.isDisposed||(this.u&&(this.i.append(this.u),delete this.u),this.C.zo())};
g.k.Ln=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}};
g.k.yv=function(){return+this.getResponseHeader("content-length")};
g.k.Ek=function(){return this.B};
g.k.Rw=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Wf=function(){return 0<this.i.totalLength};
g.k.Ph=function(){var a=this.i;this.i=new xC;return a};
g.k.Yf=function(){return this.i};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.It=function(){return!0};
g.k.KA=function(){return this.D};
g.k.me=function(){return""};g.k=UDa.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.i.get("type"):""};
g.k.abort=function(){};
g.k.Ln=function(){return!0};
g.k.yv=function(){return this.range.length};
g.k.Ek=function(){return this.loaded};
g.k.Rw=function(){return!!this.loaded};
g.k.Wf=function(){return!!this.u.totalLength};
g.k.Ph=function(){var a=this.u;this.u=new xC;return a};
g.k.Yf=function(){return this.u};
g.k.It=function(){return!0};
g.k.KA=function(){return!!this.error};
g.k.me=function(){return this.error};var VDa=0;g.k=fV.prototype;g.k.Bn=function(){this.va||(this.va=this.K.Bn?this.K.Bn():1);return this.va};
g.k.Zs=function(){this.Sa=this.now();this.K.Zs()};
g.k.mq=function(a,b){hV(this,a,b);50>a-this.C&&jV(this)||ZDa(this,a,b);this.K.mq(a,b)};
g.k.zo=function(){this.K.zo()};
g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};
g.k.now=function(){return(0,g.P)()};var fEa=0;g.k=nV.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.Ba);this.C&&(b.signal=this.C.signal);a=new Request(a,b);fetch(a).then(this.Ka,this.onError).then(void 0,cw)};
g.k.onDone=function(){if(!this.isDisposed()){this.ma();this.Z=!0;if(eEa(this)&&!this.i.totalLength&&!this.I&&this.u){zA(this);var a=new Uint8Array(8),b=new DataView(a.buffer);b.setUint32(0,8);b.setUint32(4,1936419184);this.i.append(a);this.u+=a.length}this.D.zo()}};
g.k.getResponseHeader=function(a){return this.S?this.S.get(a):null};
g.k.Ln=function(){return!!this.S};
g.k.Ek=function(){return this.u};
g.k.yv=function(){return+this.getResponseHeader("content-length")};
g.k.Rw=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.k.ma=function(){};
g.k.Wf=function(){if(this.Z||this.policy.i)return!!this.i.totalLength;if(!this.Ln()||this.va+10>Date.now())return!1;var a=16384;this.Aa||(a=Math.max(a,16384));(this.policy.i?0:this.policy.dg&&zA(this))&&(a=1);return this.i.totalLength>=a};
g.k.Ph=function(){this.Wf();this.va=Date.now();this.Aa=!0;var a=this.i;this.i=new xC;return a};
g.k.Yf=function(){this.Wf();return this.i};
g.k.isDisposed=function(){return this.X};
g.k.abort=function(){this.ma();this.B&&this.B.cancel().catch(function(){});
this.C&&this.C.abort();this.X=!0};
g.k.It=function(){return!0};
g.k.KA=function(){return this.I};
g.k.me=function(){return this.errorMessage};g.k=oV.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.i=!0;this.B.zo()}};
g.k.Ys=function(){2===this.xhr.readyState&&this.B.Zs()};
g.k.rd=function(a){this.isDisposed||(this.status=this.xhr.status,this.i||(this.u=a.loaded),this.B.mq((0,g.P)(),a.loaded))};
g.k.Ln=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return at(Error("Could not read XHR header "+a)),""}};
g.k.yv=function(){return+this.getResponseHeader("content-length")};
g.k.Ek=function(){return this.u};
g.k.Rw=function(){return 200<=this.status&&300>this.status&&this.i&&!!this.u};
g.k.Wf=function(){return this.i&&!!this.response&&!!this.response.byteLength};
g.k.Ph=function(){this.Wf();var a=this.response;this.response=void 0;return new xC([new Uint8Array(a)])};
g.k.Yf=function(){this.Wf();return new xC([new Uint8Array(this.response)])};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.It=function(){return!1};
g.k.KA=function(){return!1};
g.k.me=function(){return""};g.w(rV,gU);g.k=rV.prototype;g.k.Bv=function(){var a=gV(this.timing);a.shost=XA(this.u.Pf);this.B&&(a.rc=this.B.toString());a.itag=this.info.i[0].i.info.jc();a.ml=""+ +this.info.i[0].i.Te();a.sq=""+this.info.i[0].Ma;this.u&&(a.ifi=""+ +Sla(this.u.Pf));410!==this.B&&500!==this.B&&503!==this.B||(a.fmt_unav="true");this.xhr.me()&&(a.msg=this.xhr.me());this.qx&&(a.smb="1");if(this.i){var b=this.i.Zd;b.length&&Wma(b[0],a)}this.info.Ep()&&(a.sdai="1");return a};
g.k.pK=function(){return cEa(this.timing)};
g.k.me=function(){return this.xhr.me()||""};
g.k.Cu=function(){var a;(a=this.isComplete())||(a=this.timing,a=a.u>a.uA&&kV(a,a.u));return a};
g.k.mq=function(){!this.isDisposed()&&this.xhr&&(this.B=this.xhr.status,this.nt()?iU(this,2):!this.Aa&&this.Cu()&&(iU(this),this.Aa=!0))};
g.k.Zs=function(){if(!this.isDisposed()&&this.xhr){if(!this.Z&&this.xhr.Ln()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Z=((0,g.P)()-a)/1E3}this.xhr.Ln()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.bq&&!Vna()&&g.zy("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.I=a||this.I;this.K=b||this.K}};
g.k.zo=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.X.stop(),this.B=a.status,a=kEa(this,a),5===a?qV(this):hU(this,a))};
g.k.canRetry=function(){this.isDisposed();var a=pV(this);return a.timedOut<this.policy.Oq&&a.i<this.policy.cj};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.Ah?sV(this):this.timing.deactivate())};
g.k.RW=function(){this.isComplete();if(!this.isDisposed()){var a=(0,g.P)(),b=!1;jV(this.timing)?(a=this.timing.I,XDa(this.timing),this.timing.I-a>=.8*this.va?(this.C++,this.ma(),b=5<=this.C):this.C=0):(b=this.timing,b.gh&&mV(b,b.now()),a-=b.oa,this.policy.Db&&0<a&&(this.C+=1),b=tma(pV(this),this.policy,!1)*this.policy.Wj,(b=a>1E3*b)&&this.ma());this.C&&this.callback&&this.callback(this,this.state);b?lEa(this,!1):this.X.start()}};
g.k.dispose=function(){gU.prototype.dispose.call(this);this.X.dispose();this.policy.Ah||sV(this)};
g.k.dC=function(){if(!this.ZH().length)return[];this.S=!0;return FDa(this.i)};
g.k.nt=function(){var a;return 1>this.state?!1:this.i&&this.i.Zd.length||(null===(a=this.xhr)||void 0===a?0:a.Wf())?!0:!1};
g.k.ZH=function(){this.Jn(!1);return this.i?this.i.Zd:[]};
g.k.Jn=function(a){if(a||this.xhr.Ln()&&this.xhr.Wf()&&!iEa(this)&&!this.D){if(!this.i){if(this.xhr.It())this.info.range&&(b=this.info.range.length);else var b=this.xhr.Ek();this.i=new DDa(this.info.i,b)}for(;this.xhr.Wf();)EDa(this.i,this.xhr.Ph(),a&&!this.xhr.Wf())}};
g.k.Ek=function(){return this.xhr.Ek()};
g.k.TD=function(){return this.Z};
g.k.Bn=function(){return mEa(this)?2:1};
g.k.ma=function(){};
g.k.YH=function(){this.xhr&&(this.I=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.I};
g.k.sK=function(){this.xhr&&(this.K=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.K};
var jEa=-1;tV.prototype.clear=function(){this.u=this.K=this.C=null;this.i=this.D=this.I=this.startTimeSecs=NaN;this.B=!1};
tV.prototype.ma=function(){};g.w(g.vV,g.E);g.k=g.vV.prototype;
g.k.initialize=function(a,b,c){this.ma();a=a||0;this.Da.jA($Ca(this.u));if(this.i.isManifestless){if(this.policy.Li){b=Ola(this.policy);for(var d in this.i.i)this.i.i.hasOwnProperty(d)&&(this.i.i[d].index.u=b)}wEa(this)}this.D&&oEa(this.D,this.videoTrack.i);this.policy.La&&yA()&&this.Ca("streaming","ac."+(!!window.AbortController||AA()),!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.i.isManifestless?d:a;this.oa&&(vEa(this,this.videoTrack),vEa(this,this.audioTrack),pHa(this.oa),
delete this.oa,this.policy.Ar&&(a=VB(this.audioTrack.i.u,!1),$D("https://"+a+"/generate_204","oprobe")));c?(this.policy.Fc?(this.jb=c,BV(this,c)):BV(this,!1),g.br(this.La)):(c=0===this.currentTime,wV(this,this.videoTrack,this.videoTrack.i,c),wV(this,this.audioTrack,this.audioTrack.i,c),g.yh(this.seek(this.currentTime),function(){}),this.timing.tick("gv"));
(this.i.qe||this.i.vg||this.i.I||this.i.D||this.i.K)&&this.Ca("minMaxSq","minSq."+this.i.qe+";maxSq."+this.i.vg+";minDvrTime."+this.i.I+";maxDvrTime."+this.i.D+";startWalltime."+this.i.K)};
g.k.resume=function(){if(this.isSuspended||this.Aa){this.ma();this.Wa=this.Aa=this.isSuspended=!1;try{this.yh()}catch(a){g.jy(a)}}};
g.k.setAudioTrack=function(a){if(!this.isDisposed()){var b=this.u;b.u=b.D.i[a.id];b.K=b.u;a=new DT(b.K,b.i,"m");this.ma();IV(this.Da,a.reason,a.audio.info);KV(this.Da)}};
g.k.setPlaybackRate=function(a){a!==this.I.getPlaybackRate()&&this.I.setPlaybackRate(a)};
g.k.Pv=function(a){var b=a.info.i[0].i,c=a.lastError;if(YA(b.u.i)){var d=g.yc(a.me());this.Ca("dldbrerr",d||"none")}this.K&&(d=a.info.i[0].Ma,this.K.Pv(OCa(this.B,a.info.i[0].C,d),d));if(a.canRetry()){d=(b.info.video&&1<b.u.u||410===a.B||500===a.B||503===a.B)&&!KT(this.u)&&!YA(b.u.i);var e=a.Bv(),f=b.info.video?this.videoTrack:this.audioTrack;d&&(e.stun="1");this.handleError(!1,c,e);this.isDisposed()||(d&&(this.ma(),JT(this.u,b)),this.policy.Rg&&1===a.info.i.length&&0<a.info.i[0].Bb&&b!==f.i&&this.Aa?
KV(this.Da,Object.assign({reattachOnStuckRequest:1},e)):(bV(f,a),this.yh()))}else this.handleError(!1,c,a.Bv()),!a.info.wk()||this.policy.u||YA(b.u.i)?this.handleError(!0,"net.retryexhausted",{err:c,rn:a.timing.requestNumber.toString()}):(b.C=c,this.yh())};
g.k.yh=function(){DV(this);if(this.mediaSource&&rD(this.mediaSource)&&!this.mediaSource.Zg()){var a=SU(this.videoTrack);a=this.policy.Tj&&a&&a.B;this.i.isManifestless&&this.i.S&&CD(this.i)?(this.S=CD(this.i),this.mediaSource.Ij(this.S)):this.i.isLive&&!a?isNaN(this.S)?(this.S=this.currentTime+3600,this.mediaSource.Ij(this.S)):this.S<=this.currentTime+1800&&(this.S=Math.max(this.S+1800,this.currentTime+3600),this.mediaSource.Ij(this.S)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.S)||this.S!==a)&&0<a&&(this.mediaSource.Ij(a),this.S=a))}if(!this.isDisposed())if(BD(this.i)&&this.i.isFailed())this.handleError(!0,"manifest.net.retryexhausted",{rc:this.i.oa.toString()});else if(!this.i.B||!QDa(this.videoTrack)&&!QDa(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.Va?a=!1:(yV(this),this.Da.seekTo(Infinity,{Td:"checkLoaderTracksSync",hp:!0}),a=!0),!a&&(DV(this),VU(this.videoTrack),!this.isDisposed()&&(VU(this.audioTrack),
!this.isDisposed()))){this.i.isManifestless&&(RDa(this.videoTrack),RDa(this.audioTrack),LCa(this.C),(a=this.videoTrack.Yf())&&a.u&&(a=a.u.D&&!this.policy.Ml,this.Ca(a===this.policy.D.dg?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.policy.D.dg?"1":"0")+";dfs."+(this.policy.Ml?"1":"0"),!0)));if(this.mediaSource)xEa(this);else if(this.policy.u){(a=this.videoTrack.Yf())&&this.videoTrack.Ph(a);var b=this.audioTrack.Yf();b&&this.audioTrack.Ph(b);XU(this.videoTrack)&&XU(this.audioTrack)?this.ma():
(a||b)&&g.br(this.X)}AV(this);wV(this,this.videoTrack,this.videoTrack.i,!1);wV(this,this.audioTrack,this.audioTrack.i,!1);a=this.audioTrack.i.C;b=this.videoTrack.i.C;if(a||b){var c="net.retryexhausted";if("fmt.unparseable"===a||"fmt.unparseable"===b)c="fmt.unparseable";this.handleError(!0,c,{metadata:"1",video:this.videoTrack.i.C||"",audio:this.audioTrack.i.C||""})}else{a=this.videoTrack;var d=this.audioTrack;if((!this.mediaSource||rD(this.mediaSource)&&!this.policy.Wa)&&!this.C.i&&cV(a)&&a.i.Te()&&
this.u.S)a:{if(b=this.currentTime,c=this.I,d=uT(c,a.i.info.Ob,d.i.info.Ob,0),c=gE(c.schedule)+d/iE(c.schedule),b+=Math.max(c,c+10-d/a.i.info.Ob),this.ma(),a.B.length){if(a.B[0].info.i[0].startTime<=b)break a;xT(a)}c=a.C;for(d=c.u.length-1;0<=d;d--)c.u[d].info.startTime>b&&c.u.pop();a.B.length?a.u=g.Kb(g.Kb(a.B).info.i):a.C.u.length?a.u=ZT(a.C).info:a.u=SU(a);a.u&&b<a.u.startTime&&(a.Z=0,a.i.Te()?a.u=a.i.Ul(b,!0).i[0]:a.u=null)}CEa(this,this.videoTrack,this.audioTrack);CEa(this,this.audioTrack,this.videoTrack);
this.policy.hk&&this.Ka&&!this.isSuspended&&woa(this.schedule)&&(JEa(this,this.Ka),this.Ka="");this.D&&(a=this.D,a.C?(b=a.I+a.policy.dh,a.B||(b=Math.min(b,a.startTimeSecs+a.policy.dc)),a=Math.max(0,1E3*b-Date.now())):a=NaN,isNaN(a)||g.br(this.wb,a));g.br(this.rb)}}};
g.k.MP=function(a){if(this.policy.kb&&this.mediaSource){var b=a===this.mediaSource.i,c=a.fz();c&&(!c.Bb||c.Sd)&&this.Ca("sbu",a.Kb({a:""+ +b}))}this.yh()};
g.k.KT=function(a){if(this.mediaSource){a=SU(a===this.mediaSource.i?this.audioTrack:this.videoTrack);var b=void 0;a&&(b=gC(a));this.handleError(!0,"fmt.unplayable",b)}};
g.k.Xs=function(a){this.Da.Xs(a)};
g.k.kA=function(a,b,c){this.i.isManifestless&&(a=!!a.info.video,yDa(this,b,c,a),this.B.kA(b,c,a))};
g.k.yF=function(a,b,c,d){a.info.video&&this.B.yF(b,c,d)};
g.k.Lv=ba(6);g.k.seek=function(a){if(this.isDisposed())return sh();if(this.videoTrack.K||this.audioTrack.K)return sh("seeking to head");DV(this);this.bb=(0,g.P)();AV(this,a);this.mediaSource&&this.mediaSource.i&&this.mediaSource.u&&(this.mediaSource.i.isLocked()||this.mediaSource.u.isLocked())&&KV(this.Da,{reattachOnLockedBuffer:1,vsb:""+this.mediaSource.u.isLocked(),asb:""+this.mediaSource.i.isLocked()});var b=this.currentTime;this.currentTime=this.C.seek(a);SCa(this.B,a,b);g.br(this.X);return rh(this.currentTime)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.UD=function(){return this.audioTrack.i.info.i};
g.k.VD=function(){return this.videoTrack.i.info.i};
g.k.xa=function(){try{CV(this),xT(this.audioTrack),xT(this.videoTrack),g.E.prototype.xa.call(this)}catch(a){g.jy(a)}};
g.k.handleError=function(a,b,c){this.isDisposed()||(c=new g.lD(b,a,c),g.Pa(this),g.kD(c.details),this.Da.handleError(c),"html5.invalidstate"!==b&&"fmt.unplayable"!==c.errorCode&&"fmt.unparseable"!==b&&a&&this.dispose())};
g.k.ma=function(){};
g.k.Kb=function(){var a=SU(this.audioTrack),b=SU(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.C.i,lmf:LT(this.u),lbw:hE(this.schedule).toFixed(3),lhd:gE(this.schedule).toFixed(3),lst:(1E9*(this.schedule.i.jg()||0)).toFixed(3),laa:a?aC(a):"",lva:b?aC(b):"",lar:this.audioTrack.u?aC(this.audioTrack.u):"",lvr:this.videoTrack.u?aC(this.videoTrack.u):"",laq:""+YU(this.audioTrack),lvq:""+YU(this.videoTrack)};this.mediaSource&&!this.mediaSource.rf()&&this.mediaSource.i&&this.mediaSource.u&&
(a.lab=dD(this.mediaSource.i.kf()),a.lvb=dD(this.mediaSource.u.kf()));this.va&&(a.lapt=((0,g.P)()-this.va).toFixed(0),a.lapr=FEa(this));return a};
g.k.RD=function(){return tT(this.I)};
g.k.Ca=function(a,b,c){this.Da.Ca(a,b,void 0===c?!1:c)};
g.k.hp=function(a,b){a/=b;isNaN(this.timestampOffset)&&NEa(this,a-Math.min(a,this.policy.xe));return(a-this.timestampOffset)*b};
g.k.Ot=function(a){this.u.Ot(a)};
g.k.nx=function(a,b){return this.K&&this.B.nx(a,this.K)?(NEa(this,this.timestampOffset-b),!0):!1};
g.k.Ds=function(a){return this.B.Ds(a)};
var BEa=2/24;g.k=g.LV.prototype;g.k.Ep=function(a,b,c,d){return this.od.Ep(a,b,c,d)};
g.k.kE=function(a){this.od.kE(a)};
g.k.Pv=function(a,b){this.od.Pv(a,b)};
g.k.xG=function(a,b){this.od.xG(a,b)};
g.k.zv=ba(32);g.k.qj=function(a,b,c){this.od.qj(a,b,c)};
g.k.Bx=ba(30);g.k.EF=function(a,b,c,d,e,f,h,l){this.od.EF(a,b,c,d,e,f,h,l)};
g.k.qG=function(a){this.od.qG(a)};
g.k.cz=function(a,b){return this.od.cz(a,b)};
g.k.DF=function(a,b){return this.od.DF(a,b)};g.w(MV,g.Q);g.w(NV,MV);NV.prototype.I=function(a,b){if(a&&b){var c=1*Number(Ii(a,"cpi"))+1;isNaN(c)||0>=c||c<this.B?(this.C.stop(),this.u.stop(),this.B=-1,this.i={}):(c>this.B&&(this.B=c,g.De(this.i)||(this.i={},this.C.stop(),this.u.stop())),this.i[b]=a,g.br(this.u))}};
NV.prototype.D=function(){for(var a=g.r(Object.keys(this.i)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ea;for(var d=this.B,e=this.i[c].match(ri),f=[],h=g.r(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+mg(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e<c.length;++e)d[2*e+4]=c.charCodeAt(e);b.call(this,"rotated_need_key_info_ready",
new ST(d,"fairplay",!0))}this.i={}};
NV.prototype.xa=function(){this.i={};MV.prototype.xa.call(this)};var j3={},WEa=(j3.DRM_TRACK_TYPE_AUDIO="AUDIO",j3.DRM_TRACK_TYPE_SD="SD",j3.DRM_TRACK_TYPE_HD="HD",j3.DRM_TRACK_TYPE_UHD1="UHD1",j3);g.w(OV,g.E);OV.prototype.ma=function(){};g.w(QV,g.Q);g.k=QV.prototype;g.k.uo=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=OD(b.u)?d:c;d=new Uint8Array(OD(b.u)?c:d);OD(b.u)&&kFa(d);c=g.xc(d,4);kFa(d);d=g.xc(d,4);b.i[c]?b.i[c].status=e:b.i[d]?b.i[d].status=e:b.i[c]={type:"",status:e}}),this.ma("Key statuses changed: "+hFa(this,",")),PV(this,"onkeystatuschange"),this.status="kc",this.ea("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.isDisposed()||(this.ea("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.I)/1E3,this.I=NaN,this.ea("ctmp","provf",""+a.toFixed(3))));b&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Aa&&this.K?!1:!a&&this.requestNumber===b.requestNumber};
g.k.xa=function(){this.i={};g.Q.prototype.xa.call(this)};
g.k.Kb=function(){var a={requestedKeyIds:this.va,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.i);return a};
g.k.lf=function(){var a=this.D.join();if(RV(this)){var b=new Set,c;for(c in this.i)"usable"!==this.i[c].status&&b.add(this.i[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
g.k.ma=function(){};g.w(TV,g.E);g.k=TV.prototype;g.k.NP=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}};
g.k.uo=function(){this.K&&this.K(this.i.keyStatuses)};
g.k.GM=function(a){this.D&&this.D(a.message,"license-request")};
g.k.FM=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
g.k.EM=function(){this.I&&this.I()};
g.k.update=function(a){var b=this;if(this.i)return this.i.update(a).then(null,$s(function(c){nFa(b,"t.update",c)}));
this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.S.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.S.keySystem,a,this.initData,this.sessionId);return fu()};
g.k.xa=function(){this.i&&this.i.close();this.element=null;g.E.prototype.xa.call(this)};g.w(UV,g.E);g.k=UV.prototype;g.k.setServerCertificate=function(){return"widevine"===this.i.flavor&&this.i.B&&this.u.setServerCertificate?this.u.setServerCertificate(this.i.B):null};
g.k.createSession=function(a,b){var c=a.initData;if(this.i.keySystemAccess){b&&b("createsession");var d=this.u.createSession();QD(this.i)&&(c=pFa(c,this.i.u));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new TV(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},$s(function(f){nFa(e,"t.generateRequest",f)}));
return e}if(ND(this.i))return rFa(this,c);if(PD(this.i))return qFa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.i.keySystem,c):this.element.webkitGenerateKeyRequest(this.i.keySystem,c);return this.C=new TV(this.element,this.i,c,null,null)};
g.k.QP=function(a){var b=WV(this,a);b&&b.GM(a)};
g.k.PP=function(a){var b=WV(this,a);b&&b.FM(a)};
g.k.OP=function(a){var b=WV(this,a);b&&b.EM(a)};
g.k.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a};
g.k.xa=function(){var a;this.B=this.u=null;null===(a=this.C)||void 0===a?void 0:a.dispose();for(var b=g.r(Object.values(this.I)),c=b.next();!c.done;c=b.next())c.value.dispose();this.I={};g.E.prototype.xa.call(this);delete this.element};g.w(XV,g.E);
XV.prototype.init=function(){var a=this,b,c;return g.A(function(d){if(1==d.i)return g.fm(a.i,{position:"absolute",width:"1px",height:"1px",display:"block"}),a.i.src=a.B.D,document.body.appendChild(a.i),a.C.T(a.i,"encrypted",a.I),b=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.x(d,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",b),2);c=d.u;a.B.keySystemAccess=c;a.u=new UV(a.i,
a.B);g.H(a,a.u);VV(a.u);g.sa(d)})};
XV.prototype.I=function(a){var b=this;if(!this.isDisposed()){var c=new Uint8Array(a.initData);a=new ST(c,a.initDataType);var d=OEa(c).replace("skd://","https://"),e={},f=this.u.createSession(a,function(){b.ma()});
f&&(g.H(this,f),this.D.push(f),ZEa(f,function(h){lFa(h,f.i,d,e)},function(){b.ma()},function(){},function(){}))}};
XV.prototype.ma=function(){};
XV.prototype.xa=function(){this.D=[];this.i&&this.i.parentNode&&this.i.parentNode.removeChild(this.i);g.E.prototype.xa.call(this)};g.w(YV,MV);
YV.prototype.I=function(a){var b;if(!(b=!this.C)){a:{if((b=a.cryptoPeriodIndex)&&0<this.i.length)for(var c=g.r(this.i),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}b=!b}if(b){b=(0,g.P)();if(!(c=this.D)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.r(this.B.values());for(var e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c=!c}c?c=0:(c=a.i,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.ea("log_qoe","wvagt.delay."+
c+".cpi."+a.cryptoPeriodIndex+".reqlen."+this.i.length);this.C&&0>=c?sFa(this,a):(this.i.push({time:b+c,info:a}),g.br(this.u,c))}};
YV.prototype.xa=function(){this.i=[];MV.prototype.xa.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.w(bW,g.Q);g.k=bW.prototype;g.k.RP=function(a){this.Ig("onecpt");a.initData&&xFa(this,new Uint8Array(a.initData),a.initDataType)};
g.k.RU=function(a){this.Ig("onndky");xFa(this,a.initData,a.contentType)};
g.k.Xs=function(a){this.Ig("onneedkeyinfo");this.Y.N("html5_eme_loader_sync")&&(this.K.get(a.initData)||this.K.set(a.initData,a));wFa(this,a)};
g.k.bJ=function(a){this.B.push(a);cW(this)};
g.k.createSession=function(a){var b=yFa(this)?lDa(a):g.xc(a.initData);this.u.get(b);this.va=!0;a=new QV(this.videoData,this.Y,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.gM,this);a.subscribe("keystatuseschange",this.uo,this);a.subscribe("licenseerror",this.iA,this);a.subscribe("newlicense",this.AM,this);a.subscribe("newsession",this.BM,this);a.subscribe("sessionready",this.PM,this);a.subscribe("fairplay_next_need_key_info",this.rM,this);aFa(a,this.C)};
g.k.AM=function(a){this.isDisposed()||(this.ma(),this.Ig("onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ea("heartbeatparams",a)))};
g.k.BM=function(){this.isDisposed()||(this.ma(),this.Ig("newlcssn"),this.B.shift(),this.va=!1,cW(this))};
g.k.PM=function(){if(ND(this.i)&&(this.ma(),this.Ig("onsnrdy"),this.Ha--,0===this.Ha)){var a=this.Z;a.element.msSetMediaKeys(a.B)}};
g.k.uo=function(a){if(!this.isDisposed()){!this.Ba&&this.videoData.N("html5_log_drm_metrics_on_key_statuses")&&(zFa(this),this.Ba=!0);this.ma();this.Ig("onksch");if(!RV(a)&&g.Pw&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(RV(a))for(var d=g.r(Object.keys(a.i)),e=d.next();!e.done;e=d.next())e=e.value,"usable"===a.i[e].status&&b.push(a.i[e].type),"unknown"!==a.i[e].status&&(c=!1);if(!RV(a)||c)b=a.D;b=g.Qb(b,"UHD2")||g.Qb(b,"UHD2HDR")?
"highres":g.Qb(b,"UHD1")||g.Qb(b,"UHD1HDR")?"hd2160":g.Qb(b,"HD")||g.Qb(b,"HDHDR")?"hd1080":g.Qb(b,"HD720")||g.Qb(b,"HD720HDR")?"hd720":"large"}a:{c=FA("auto",b,!1,"l");if(this.videoData.Sg){if(DA(this.S,c))break a}else if(Dla(this.S,b))break a;this.S=c;this.ea("qualitychange");this.ma();this.Ig("updtlq"+b)}this.ea("keystatuseschange",a)}};
g.k.gM=function(a,b){this.isDisposed()||this.ea("ctmp",a,b)};
g.k.rM=function(a,b){this.isDisposed()||this.ea("fairplay_next_need_key_info",a,b)};
g.k.iA=function(a,b,c,d){this.isDisposed()||(this.videoData.N("html5_log_drm_metrics_on_error")&&zFa(this),this.ea("licenseerror",a,b,c,d))};
g.k.zs=function(){return this.S};
g.k.xa=function(){this.i.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.r(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.gM,this),b.unsubscribe("keystatuseschange",this.uo,this),b.unsubscribe("licenseerror",this.iA,this),b.unsubscribe("newlicense",this.AM,this),b.unsubscribe("newsession",this.BM,this),b.unsubscribe("sessionready",this.PM,this),b.unsubscribe("fairplay_next_need_key_info",this.rM,this),b.dispose();
this.u.clear();$V(this.I);$V(this.K);this.heartbeatParams=null;g.Q.prototype.xa.call(this)};
g.k.Kb=function(){for(var a={systemInfo:this.i.Kb(),sessions:[]},b=g.r(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Kb());return a};
g.k.lf=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.lf()+(this.D?"/KR":"")};
g.k.Ig=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(this.ma(),(this.videoData.oa||b)&&this.ea("ctmp","drmlog",a))};
g.k.ma=function(){};g.w(fW,g.E);fW.prototype.Jz=function(){return this.B};
fW.prototype.handleError=function(a){var b=this,c;EFa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!hW(this,a.errorCode,a.details))&&!GFa(this,a))if(a.i){var d=null===(c=this.Da.Ya)||void 0===c?void 0:c.u.B;if(("net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&a.details.fmt_unav)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.i.D&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f=
"6"}this.Da.Hf(a.errorCode,e,g.kD(a.details),f)}else this.Da.ea("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.ld(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)(),$D(a,"manifest",function(h){b.I=!0;b.Ca("pathprobe",h)},function(h){b.ld(h.errorCode,h.details)}))};
fW.prototype.Ca=function(a,b){this.Da.Rb.Ca(a,b)};
fW.prototype.ld=function(a,b){b=g.kD(b);this.Da.Rb.ld(a,b)};iW.prototype.setPlaybackRate=function(a){this.playbackRate=a};
iW.prototype.N=function(a){return this.Y.N(a)};g.w(lW,g.E);lW.prototype.Nc=function(a){ZFa(this);this.playerState=a.state;0<=this.B&&g.xH(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
lW.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(CPa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
lW.prototype.send=function(){if(!(this.C||0>this.u)){ZFa(this);var a=g.vS(this.i)-this.u,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.T(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.T(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.T(this.playerState,16)||g.T(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.T(this.playerState,1)&&g.T(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.T(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.T(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.T(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");var d=kG(this.i.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=$Fa(this.i);var e=0>this.B?a:this.B-this.u;a=this.i.Y.kb+36E5<(0,g.P)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,
rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.i.videoData.isAd(),liveMode:c,hasDrm:!!g.iG(this.i.videoData),isGapless:this.i.videoData.La,isServerStitchedDai:this.i.videoData.enableServerStitchedDai};!a&&this.i.N("html5_health_to_gel")&&g.dw("html5PlayerHealthEvent",b);this.i.N("html5_health_to_qoe")&&(b.muted=a,this.K(b));this.C=!0;this.dispose()}};
lW.prototype.xa=function(){this.C||this.send();g.E.prototype.xa.call(this)};
var CPa=/\bnet\b/;var dGa=window;var bGa=/[?&]cpn=/;g.w(g.pW,g.E);g.k=g.pW.prototype;g.k.lS=function(){var a=g.vS(this.i);qW(this,a)};
g.k.Ev=function(){return this.Ba};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.vS(this.i),-1<["PL","B","S"].indexOf(this.Ad)&&(!g.De(this.u)||a>=this.C+30)&&(g.oW(this,a,"vps",[this.Ad]),this.C=a),!g.De(this.u))){7E3===this.sequenceNumber&&g.ky(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){rW(this,a);var b=a,c=this.i.Da.Mv(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.bb,h=e&&!this.rb;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount","df."+d+
";tf."+c.totalVideoFrames);else(0<f||h)&&g.oW(this,b,"df",[f]);this.bb=d;this.rb=e;!this.i.Y.N("disable_webgl_reporting")&&0<this.X&&(g.oW(this,a,"glf",[this.X]),this.X=0);a={event:"streamingstats"};this.i.videoData.B&&(a.fmt=this.i.videoData.B.jc(),(b=this.i.videoData.K)&&b.jc()!==a.fmt&&(a.afmt=b.jc()));a.cpn=this.i.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.D&&(a.addocid=this.D);this.i.videoData.cotn&&(a.cotn=this.i.videoData.cotn);a.ei=this.i.videoData.eventId;a.el=vG(this.i.videoData);
a.docid=this.i.videoData.videoId;a.content_v=wG(this.i.videoData);a.ns=this.i.Y.va;a.fexp=this.i.Y.experiments.experimentIds.toString();a.cl=(409174836).toString();(b=this.i.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=kG(this.i.videoData))&&(a.live=b);aG(this.i.videoData)&&(a.drm=1,this.i.videoData.I&&(a.drm_system=WOa[this.i.videoData.I.flavor]||0),this.i.videoData.GE&&(a.drm_product=this.i.videoData.GE));lt()&&this.i.videoData.X&&(a.ctt=this.i.videoData.X,a.cttype=this.i.videoData.Uh,
this.i.videoData.mdxEnvironment&&(a.mdx_environment=this.i.videoData.mdxEnvironment));zG(this.i.videoData)?a.dai=this.i.videoData.enableServerStitchedDai?"ss":"cs":this.i.videoData.Bc?a.dai="cs":this.i.videoData.ZG&&(a.dai="disabled");a.seq=this.sequenceNumber++;g.Me(a,this.i.Y.deviceParams);if(!this.i.videoData.qN&&this.i.N("html5_log_server_url_param")&&a){b=this.i.videoData.YX;c=new Set("docid ei event live ns drm_product".split(" "));d=new Set("osid plid feature referrer sdetail sourceid q".split(" "));
e=new Set(["cl","fexp","drm"]);for(var l in b)d.has(l)||e.has(l)||(a[l]?a[l]!==b[l]?g.ky(new g.iw("b161906944_qoe_diff",l,a[l],b[l])):c.has(l)||g.ky(new g.iw("b161906944_qoe_same",l,b[l])):g.ky(new g.iw("b161906944_qoe_pass",l,b[l])));l=new Set("fmt afmt cpn el seq cbrand cbr cbrver c cver ctheme cplayer cos cosver cplatform".split(" "));c=g.r(Object.keys(a));for(d=c.next();!d.done;d=c.next())d=d.value,l.has(d)||a[d]&&b&&!b[d]&&g.ky(new g.iw("b161906944_qoe_missing",d,a[d]));this.i.videoData.qN=!0}l=
g.Ei("//"+this.i.Y.ej+"/api/stats/qoe",a);a=b="";c=g.r(Object.keys(this.u));for(d=c.next();!d.done;d=c.next())d=d.value,null===this.u[d]?g.ky(new g.iw("Stats report key has invalid value",d)):(d="&"+d+"="+this.u[d].join(","),100<d.length?a+=d:b+=d);l+=b;a=a.replace(/ /g,"%20");e=this.i.videoData.mf();c=!1;if(l.includes("&dt=")||l.includes("&cotn=")){if(this.i.Y.N("kevlar_woffle")||this.i.Y.N("qoe_nwl_downloads"))c=!0}else this.i.Y.N("qoe_with_networkless")&&(c=!0);b=this.i.Y.N("qoe_send_and_write");
d=this.i.Y;f=this.i.N("web_player_vss_pageid_header")?this.i.Y.pageId:void 0;(e=mW(l,d,f,this.i.Y.sendVisitorIdHeader?this.i.videoData.visitorData:void 0,e))?(e.method="POST",e.postBody=a,nW(l,e,{token:this.i.videoData.X,LG:this.i.videoData.Uh,mdxEnvironment:this.i.videoData.mdxEnvironment},d,void 0,c,b&&this.Aa)):c?(c=this.i.Y.N("networkless_ajax"),d={method:"POST",postBody:a},b&&this.Aa?this.i.Y.N("use_new_nwl")?rx().sendAndWrite(l,d):zx(l,d):c?g.Yt(l,{method:"POST",postBody:a}):this.i.Y.N("use_new_nwl")?
rx().sendThenWrite(l,d):yx(l,d)):xv(l,void 0,a)}this.u={}}};
g.k.Sw=function(a){0<a&&(this.u.aft=[a.toString()])};
g.k.LN=function(){if(this.i.videoData.I){var a=this.i.videoData.I;tW(this,"eme-"+(a.keySystemAccess?"final":ND(a)?"ms":QD(a)?"ytfp":PD(a)?"safarifp":"nonfinal"))}};
g.k.onError=function(a,b){var c=g.vS(this.i);this.ld(c,a,b);rW(this,c);sW(this)};
g.k.ld=function(a,b,c){var d=this.i.Da.getCurrentTime();b=[b,d.toFixed(3)];c&&b.push(lGa(c));g.oW(this,a,"error",b);this.I=!0};
g.k.Nc=function(a){var b=a.state,c=g.vS(this.i),d=this.getPlayerState(a.state);if(d!==this.Ad){if(!(c<this.C)){if("PL"===this.Ad)this.playTimeSecs+=c-this.C;else if("B"===this.Ad&&this.va){this.va=!1;var e=g.S(this.i.Y.experiments,"html5_disable_last_state_change")?this.C:this.Va;this.rebufferTimeSecs+=c-e;!this.Sa&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.i.Da.Aw(),this.u.qoealert=["1"],this.Sa=!0)}"B"!==d||"PL"!==this.Ad&&"PB"!==this.Ad||(this.va=!0);this.C=c}"PL"===this.Ad&&("B"===
d||"S"===d)||this.i.videoData.oa?rW(this,c):qW(this,c);"PL"===d&&g.br(this.Db);this.i.N("html5_unstarted_buffering")&&this.i.videoData.oa&&g.T(a.state,64)&&"N"!==d&&this.Ca("unstub",d);g.oW(this,c,"vps",[d]);this.Ad=d;this.C=this.Va=c;this.I=!0}a=b.getData();g.T(b,128)&&a&&this.ld(c,a.errorCode,a.UF);(g.T(b,2)||g.T(b,128))&&this.reportStats(c);b.Ec()&&!this.K&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.K=!0);sW(this)};
g.k.Gw=function(a){var b=g.vS(this.i);g.oW(this,b,"vfs",[a.i.id,a.u,this.vb,a.reason]);this.vb=a.i.id;var c=this.i.Da.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.VE();1<d&&c.push(d);g.oW(this,b,"view",c)}this.La||(this.i.videoData.oa&&tW(this,"rqs"),this.i.videoData.i&&KA(this.i.videoData.i)&&(this.u.preload=["1"]));this.I=this.La=!0;"m"===a.reason&&100===++this.Gb&&(a=this.u.fcnz,a||(a=[],this.u.fcnz=a),a.push("2"));g.oW(this,b,"vps",[this.Ad]);
this.reportStats(b)};
g.k.yw=function(a){var b=g.vS(this.i);a.i.id!==this.Ha&&(g.oW(this,b,"afs",[a.i.id,this.Ha,a.reason]),this.Ha=a.i.id)};
g.k.qo=ba(36);g.k.po=ba(39);g.k.onPlaybackRateChange=function(a){var b=g.vS(this.i);a&&a!==this.jb&&(g.oW(this,b,"rate",[a]),this.jb=a);this.reportStats(b)};
g.k.Dj=ba(15);g.k.getPlayerState=function(a){if(g.T(a,128))return"ER";if(g.T(a,512))return"SU";if(g.T(a,16)||g.T(a,32))return"S";if(g.IJ(a)&&g.T(a,64))return"B";var b=DPa[LJ(a)];g.ME(this.i.Y)&&"B"===b&&3===this.i.Da.getVisibilityState()&&(b="SU");"B"===b&&g.T(a,4)&&(b="PB");return b};
g.k.xa=function(){g.E.prototype.xa.call(this);Tt(this.Wa)};
g.k.Ca=function(a,b,c){var d=this.u.ctmp||[],e=-1!==this.Eb.indexOf(a);e||this.Eb.push(a);if(!c||!e){b="string"!==typeof b?g.kD(b):b;b=lGa(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.vS(this.i);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.ma();this.u.ctmp=d;sW(this);return f}};
g.k.Tw=function(a,b,c){this.S={ZW:Number(this.Ca("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),ZL:a,MW:b,isAd:c}};
g.k.ut=function(a,b,c){g.oW(this,g.vS(this.i),"ad_playback",[a,b,c])};
g.k.XF=function(a,b,c){this.adCpn=null!==a&&void 0!==a?a:"";this.D=null!==b&&void 0!==b?b:"";this.adFormat=null!==c&&void 0!==c?c:""};
g.k.ma=function(){};
var k3={},DPa=(k3[5]="N",k3[-1]="N",k3[3]="B",k3[0]="EN",k3[2]="PA",k3[1]="PL",k3);mGa.prototype.update=function(){if(this.S){var a=this.i.Da.getCurrentTime()||0;this.i.Y.N("html5_vss_media_time_killswitch")||(a=this.i.Da.Dh()||0);var b=g.vS(this.i);if(a!==this.u||qGa(this,a,b)){var c;if(!(c=a<this.u||a-this.u>b-this.lastUpdateTime+2||qGa(this,a,b))){var d=this.i.Eh();c=d.volume;var e=c!==this.Z;d=d.muted;d!==this.X?(this.X=d,c=!0):(!e||0<=this.D||(this.Z=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(wW(this),this.B=a);this.lastUpdateTime=b;this.u=a}}};xW.prototype.send=function(a){if(!this.La){var b=zW(this);b=g.Ei(this.uri,b);if(this.rb)this.attestationResponse&&(a=yW(this)||{},a.method="POST",a.postParams={atr:this.attestationResponse},this.Z?this.oa?this.va?rx().sendAndWrite(b,a):zx(b,a):this.va?rx().sendThenWrite(b,a):yx(b,a):g.Yt(b,a));else{var c=yW(this,a);nW(b,c,{token:this.S,LG:this.kb,mdxEnvironment:this.mdxEnvironment},this.Y,a,this.Z,this.isFinal&&this.Hd||this.oa||this.C&&this.Vd)}this.La=!0}};
xW.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var l3={},sGa=(l3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,l3.LIVING_ROOM_APP_MODE_MAIN=1,l3.LIVING_ROOM_APP_MODE_KIDS=2,l3.LIVING_ROOM_APP_MODE_MUSIC=3,l3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,l3.LIVING_ROOM_APP_MODE_GAMING=5,l3);g.w(BW,g.E);g.k=BW.prototype;g.k.rd=function(){this.u.update();var a;if(a=this.i.videoData.isLoaded()&&this.i.videoData.Zb&&this.C&&!this.Z)a=this.u,a=(a.i.Y.N("html5_vss_media_time_killswitch")?a.I+a.i.Da.getCurrentTime()-a.B:a.I+a.i.Da.Dh()-a.B)>=this.i.videoData.Zb;a&&(this.C&&this.i.videoData.Zb&&(a=CW(this,"delayplay"),a.fd=!0,a.send(),this.Z=!0),uGa(this))};
g.k.Nc=function(a){this.isDisposed()||(g.T(a.state,2)?(this.currentPlayerState="paused",g.xH(a,2)&&this.C&&FW(this).send()):g.T(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&DW(this,!1)):this.currentPlayerState="paused")};
g.k.xa=function(){g.E.prototype.xa.call(this);g.St(this.B);this.B=NaN;oGa(this.u)};
g.k.Kb=function(){return zW(CW(this,"playback"))};
g.k.Qt=function(){this.i.videoData.S.eventLabel=vG(this.i.videoData);this.i.videoData.S.playerStyle=this.i.Y.playerStyle;this.i.videoData.Gb&&(this.i.videoData.S.feature="pyv");this.i.videoData.S.vid=this.i.videoData.videoId;var a=this.i.videoData.S;var b=this.i.videoData;b=b.isAd()||!!b.Gb;a.isAd=b};
g.k.Wg=function(a){var b=CW(this,"engage");b.X=a;return rGa(b,zGa(this.i))};yGa.prototype.isEmpty=function(){return this.endTime===this.startTime};HW.prototype.N=function(a){return this.Y.N(a)};
var AGa={other:1,none:2,wifi:3,cellular:7};g.w(g.IW,g.E);g.k=g.IW.prototype;g.k.Nc=function(a){var b;if(g.xH(a,1024)||g.xH(a,512)||g.xH(a,4)){if(this.B){var c=this.B;0<=c.B||(c.u=-1,c.delay.stop())}this.qoe&&(c=this.qoe,c.K||(c.B=-1))}this.u.videoData.enableServerStitchedDai&&this.Rf?null===(b=this.C.get(this.Rf))||void 0===b?void 0:b.Nc(a):this.i&&this.i.Nc(a);this.qoe&&this.qoe.Nc(a);this.B&&this.B.Nc(a)};
g.k.rd=function(){var a;this.u.videoData.enableServerStitchedDai&&this.Rf?null===(a=this.C.get(this.Rf))||void 0===a?void 0:a.rd():this.i&&this.i.rd()};
g.k.ld=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.B)this.B.onError(a)};
g.k.Gw=function(a){this.qoe&&this.qoe.Gw(a)};
g.k.yw=function(a){this.qoe&&this.qoe.yw(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
g.k.qo=ba(35);g.k.Ca=function(a,b,c){this.qoe&&this.qoe.Ca(a,b,c)};
g.k.Tw=function(a,b,c){this.qoe&&this.qoe.Tw(a,b,c)};
g.k.Sw=function(a){this.qoe&&this.qoe.Sw(a)};
g.k.ut=function(a,b,c){this.qoe&&this.qoe.ut(a,b,c)};
g.k.po=ba(38);g.k.Dj=ba(14);g.k.Ev=function(){if(this.qoe)return this.qoe.Ev()};
g.k.Kb=function(){var a;if(this.u.videoData.enableServerStitchedDai&&this.Rf)null===(a=this.C.get(this.Rf))||void 0===a?void 0:a.Kb();else if(this.i)return this.i.Kb();return{}};
g.k.Wg=function(a){return this.i?this.i.Wg(a):function(){}};
g.k.Qt=function(){this.i&&this.i.Qt()};g.w(JW,g.E);g.k=JW.prototype;g.k.Dd=function(a,b){this.jl();b&&2E3<=this.i.i.length&&this.qv("captions",1E4);b=this.i;if(1<a.length&&a.length>b.i.length)b.i=b.i.concat(a),b.i.sort(b.u);else{a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.i.length||0<b.u(c,b.i[b.i.length-1])?b.i.push(c):g.ic(b.i,c,b.u)}this.u=NaN;this.jl()};
g.k.Ff=function(a){1E4<a.length&&g.ky(new g.iw("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.isDisposed()){var b=new Set(a);this.B=this.B.filter(function(c){return!b.has(c)});
OGa(this.i,b);this.jl()}};
g.k.qv=function(a,b){var c=(isNaN(this.u)?g.T(this.D(),2)?0x8000000000000:1E3*this.S():this.u)-b;b=this.Rl().filter(function(d){return d.namespace===a&&d.end<c});
this.Ff(b);return b};
g.k.Rl=function(){return this.isDisposed()?[]:this.i.i};
g.k.reset=function(){this.started=!1;this.C.stop();this.i.i=[];this.B=[];this.jl()};
g.k.Xe=function(a){var b=this.Rl().filter(function(c){return c.namespace===a});
this.Ff(b);return b};
g.k.Nc=function(a){this.started&&(this.jl(),g.T(a.ao,16)&&(a=NGa(this.i,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.C.start()))};
g.k.ED=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&-1===this.B.indexOf(d)&&(this.B.push(d),b.push([1,d]))}return b};
g.k.HD=function(a){var b=[];if(!a.length)return b;a.sort(g.bz);a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.B.splice(this.B.indexOf(c),1),b.push([2,c]);return b};
g.k.jl=function(){this.I=!0;if(!this.K){for(var a=3;this.I&&a;)this.I=!1,this.K=!0,this.fL(),this.K=!1,a--;this.D().Ec()&&(a=NGa(this.i,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.oa(),this.C.start(a)))}};
g.k.fL=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.T(a,32)&&this.Z.start();for(var b=g.T(this.D(),2)?0x8000000000000:1E3*this.S(),c=g.T(a,2),d=[],e=[],f=g.r(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.HD(e));f=e=null;c?(a=LGa(this.i,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=MGa(this.i)):a=this.u<=b&&JJ(a)?KGa(this.i,this.u,b):LGa(this.i,b);
d=d.concat(this.ED(a));e&&(d=d.concat(this.HD(e)));f&&(d=d.concat(this.ED(f)));this.u=b;PGa(this,d)}};
g.k.xa=function(){this.B=[];this.i.i=[];g.E.prototype.xa.call(this)};
g.pS.Ez(JW,{Dd:"crmacr",ED:"crmncr",HD:"crmxcr",fL:"crmis",Ff:"crmrcr"});g.w(NW,g.Q);NW.prototype.dm=function(){return this.K};
NW.prototype.mj=function(){return Math.max(this.S()-VGa(this,!0),this.videoData.getMinSeekableTime())};
NW.prototype.ma=function(){};g.w(SW,g.E);SW.prototype.Nc=function(){g.br(this.B)};
SW.prototype.D=function(){var a=this,b=this.Da.kd(),c=this.Da.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.i,f=g.T(c,8)&&g.T(c,16),h=this.Da.Np().isBackground()||c.isSuspended();TW(this,this.Ba,f&&!h,e,"qoe.slowseek",function(){},"timeout");
f=f&&isFinite(this.i)&&0<this.i&&qsa(b,this.i);var l=!d||10<Math.abs(d-this.i);TW(this,this.Ha,f&&l&&!h,e,"qoe.slowseek",function(){b.seekTo(a.i)},"set_cmt");
var m=f&&fD(b.Tf(),this.i);f=this.Da.Ya;l=!f||!f.policy.Nb;var n=function(){b.seekTo(a.i+.001)};
TW(this,this.oa,m&&l&&!h,e,"qoe.slowseek",n,"jiggle_cmt");l=function(){return eW(a.Da)};
TW(this,this.va,m&&!h,e,"qoe.slowseek",l,"new_elem");var p=JJ(c);m=g.KJ(c);var q=b.Tf(),t=eD(q,d);YGa(this,b,q,d,h,p,m);q=0<=t&&q.end(t)>d+5;q=p&&m&&q;TW(this,this.K,q&&!h,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");TW(this,this.S,q&&!h,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var u=f.getCurrentTime();n=b.Kp();n=ina(n,u);n=!f.C.i&&d===n;TW(this,this.Va,p&&m&&n&&!h,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(u)},"seek_to_loader")}TW(this,this.X,p&&m&&!h,p&&!m,"qoe.longrebuffer",function(){},
"timeout");
n=c.isSuspended();n=g.Qb(this.Da.Hj,"ad")&&!n;TW(this,this.I,n,!n,"qoe.start15s",function(){a.Da.Od("ad")},"ads_preroll_timeout");
n=this.Da.getVideoData();q=.5>d-this.C;t=n.isAd()&&p&&!m&&q;p=function(){var v=a.Da,y=v.jy.Jc();(!y||!v.videoData.isAd()||y.getVideoData().Bc!==v.getVideoData().Bc)&&v.videoData.Rd||v.Hf("ad.rebuftimeout","RETRYABLE_ERROR","skipslad.vid."+v.videoData.videoId)};
TW(this,this.Ka,t,!t,"ad.rebuftimeout",p,"skip_slow_ad");m=n.isAd()&&m&&fD(b.Tf(),d+5)&&q;TW(this,this.La,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");TW(this,this.Sa,g.IJ(c)&&g.T(c,64)&&!h,e,"qoe.start15s",function(){},"timeout");
TW(this,this.Z,!!f&&!f.mediaSource&&g.IJ(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}};
SW.prototype.ld=function(a,b,c){b=this.Kb(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.Da.ld(new g.lD(a,!1,b));this.u[a]=!0};
SW.prototype.Kb=function(a){a=Object.assign(this.Da.Kb(!0),a.Kb());this.i&&(a.stt=this.i.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
QW.prototype.reset=function(){this.i=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1};
QW.prototype.Kb=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.w(VW,g.E);g.k=VW.prototype;g.k.setMediaElement=function(a){g.Mx(this.Ka);(this.ra=a)?(lHa(this),UW(this)):XW(this)};
g.k.Nc=function(a){var b;this.Z.Nc(a);this.N("html5_exponential_memory_for_sticky")&&(a.state.Ec()?g.br(this.oa):this.oa.stop());if(this.ra)if(8===a.ao.state&&JJ(a.state)&&g.KJ(a.state)){if(this.policy.B){a=this.ra.getCurrentTime();var c=this.ra.Tf();var d=this.N("manifestless_post_live_ufph")||this.N("manifestless_post_live")?eD(c,Math.max(a-3.5,0)):eD(c,a-3.5);0<=d&&a>c.end(d)-1.1&&d+1<c.length&&11>c.start(d+1)-c.end(d)&&(d=c.start(d+1)+.2,.2>Math.abs(this.Va-d)||(this.Da.Ca("seekover","b."+dD(c,
"_")+";cmt."+a),this.Va=d,this.seekTo(d,{Qp:!0,Td:"playbacktimeline_postLiveDisc"})))}}else(null===(b=a.state)||void 0===b?0:8===b.state)&&!this.videoData.kb&&0<this.videoData.limitedPlaybackDurationInSeconds&&xX(this.Da,this.getCurrentTime()+this.videoData.limitedPlaybackDurationInSeconds)};
g.k.getCurrentTime=function(){return!isNaN(this.i)&&isFinite(this.i)?this.i:this.ra&&iHa(this)?this.ra.getCurrentTime()+this.timestampOffset:this.B||0};
g.k.Dh=function(){return this.getCurrentTime()-this.Uc()};
g.k.mj=function(){return this.u?this.u.mj():Infinity};
g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return PW(this.u,a)};
g.k.dm=function(){return!!this.u&&this.u.dm()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.sO?!1:c.sO;var d=void 0===c.tO?0:c.tO,e=void 0===c.Qp?!1:c.Qp,f=void 0===c.MG?0:c.MG,h=void 0===c.Td?"":c.Td;if(void 0===c.hp?0:c.hp)a+=this.Uc();c=a;var l=!isFinite(c)||(this.u?PW(this.u,c):c>=this.jd())||!g.nG(this.videoData);l||this.Da.Ca("seeknotallowed",c+";"+this.jd());if(!l)return this.C&&(this.C=null,$W(this)),rh(this.getCurrentTime());this.ma();if(.005>Math.abs(a-this.i)&&this.S)return this.ma(),this.D;h&&(c=a,(g.cG(this.videoData)||
this.N("html5_log_seek_reasons"))&&this.Da.Ca("seekreason","reason."+h+";tgt."+c));this.S&&XW(this);this.D||(this.D=new nS);a&&!isFinite(a)&&WW(this,!1);h=a;(ZW(this)&&!(this.ra&&0<this.ra.wh()&&0<zJ(this.ra))||YF(this.videoData)&&this.getMinSeekableTime()===this.jd(!1)?0:isFinite(h)||!YF(this.videoData))&&(a=hHa(this,a,e));a&&!isFinite(a)&&WW(this,!1);this.B=a;this.Ba=f;this.i=a;this.u&&(e=this.u,f=a,WGa(e,f,!1),XGa(e,f));e=this.Da;f=a;e.Oc.B=f;h=e.Ou;h.mediaTime=f;h.i=!0;b&&NX(e);e.Ol&&f>e.videoData.endSeconds&&
isFinite(f)&&HX(e);f<e.jd()-.01&&(h=FJ(e.playerState,2),g.T(h,8)&&(h=FJ(h,4)),e.Ub(h));e.ea("SEEK_TO",e,f);this.D&&(b?d&&this.Ha.start(d):(this.ma(),this.S=!0,bHa(this)));(b=this.Da.Ol)&&a>b.start&&HX(this.Da);return this.D};
g.k.jd=function(a){var b;if(!this.videoData.isLivePlayback)return this.videoData.jd();if(!this.N("html5_linear_live_max_seekable_killswitch")&&FG(this.videoData)&&(null===(b=this.ra)||void 0===b?0:b.il())&&this.videoData.i)return a=this.getCurrentTime(),Rqa(1E3*this.getIngestionTime(a))+a;if(YF(this.videoData)&&this.videoData.ej&&this.videoData.i)return this.videoData.i.jd()+this.timestampOffset;if(this.videoData.C&&this.videoData.C.i){if(!a&&this.u)return this.u.mj();a=this.videoData.jd();this.policy.i&&
this.ra&&(a=Math.max(a,rsa(this.ra)));return a+this.timestampOffset}return this.ra?tu()?Rqa(this.ra.Ox().getTime()):zJ(this.ra)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.k.getMinSeekableTime=function(){var a,b=this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset;if(FG(this.videoData)&&this.videoData.i){var c=Number(null===(a=this.videoData.progressBarStartPosition)||void 0===a?void 0:a.utcTimeMillis)/1E3,d=this.getCurrentTime();d=this.getIngestionTime(d)-d;if(!isNaN(c)&&!isNaN(d))return Math.max(b,c-d)}return b};
g.k.xa=function(){YW(this,null);this.Z.dispose();g.E.prototype.xa.call(this)};
g.k.Kb=function(){var a={};this.Ya&&Object.assign(a,this.Ya.Kb());this.ra&&Object.assign(a,this.ra.Kb());return a};
g.k.FF=function(a){this.N("html5_unrewrite_timestamps")?this.timestampOffset=a:this.Sa=a};
g.k.getStreamTimeOffset=function(){return YF(this.videoData)?this.Sa:this.videoData.i?this.videoData.i.getStreamTimeOffset():0};
g.k.Uc=function(){return this.timestampOffset};
g.k.getIngestionTime=function(a){return this.videoData.i.getIngestionTime(a-this.timestampOffset)};
g.k.Gp=function(){if(!this.ra)return 0;if(oG(this.videoData)){var a=rsa(this.ra)+this.timestampOffset-this.getMinSeekableTime(),b=this.jd()-this.getMinSeekableTime();return Math.max(0,Math.min(1,a/b))}return this.ra.Gp()};
g.k.jA=function(a){this.I&&(this.I.i=a.audio.index)};
g.k.N=function(a){return this.Y&&this.Y.N(a)};
g.k.ma=function(){};aX.prototype.isFinished=function(){return this.i};
aX.prototype.start=function(){this.started=!0};
aX.prototype.reset=function(){this.i=this.started=!1};g.w(bX,TQ);bX.prototype.i=function(a,b){var c=h3.Ko("oap");b=TQ.prototype.i.call(this,a,b);h3.vn(c,Math.ceil(a.length/16));return b};
bX.prototype.u=function(a,b,c){var d=this,e,f;return g.A(function(h){if(1==h.i)return e=h3.Ko("oan2"),g.x(h,TQ.prototype.u.call(d,a,b,c),2);f=h.u;h3.vn(e,Math.ceil(a.byteLength/16));return h.return(f)})};
g.w(cX,UQ);cX.prototype.encrypt=function(a,b){var c=h3.Ko("oap");b=UQ.prototype.encrypt.call(this,a,b);h3.vn(c,Math.ceil(a.byteLength/16));return b};dX.prototype.encrypt=function(a){return(new cX(this.i.i)).encrypt(a,this.iv)};
dX.prototype.decrypt=function(a,b){return(new cX(this.i.i)).decrypt(a,b)};g.w(eX,g.E);g.k=eX.prototype;g.k.Wf=function(a){var b;return!(null===(b=this.Ne.get(a))||void 0===b||!b.Zd.totalLength)};
g.k.Ph=function(a){a=this.Ne.get(a);var b=a.Zd;a.cD+=b.totalLength;a.Zd=new xC;return b};
g.k.rf=function(a){return this.Ne.get(a).rf};
g.k.ma=function(){};
g.k.xa=function(){g.E.prototype.xa.call(this);for(var a=g.r(this.Ne.keys()),b=a.next();!b.done;b=a.next())fX(this,b.value);this.Ne.clear()};var m3={},tHa=(m3.f="video",m3["1"]="video",m3["1h"]="video",m3.h="video",m3.H="video",m3["9"]="video",m3["("]="video",m3["9h"]="video",m3["(h"]="video",m3.o="audio",m3.O="audio",m3.a="audio",m3.ah="audio",m3.A="audio",m3.m="audio",m3.M="audio",m3.mac3="audio",m3.MAC3="audio",m3.meac3="audio",m3.MEAC3="audio",m3.so="audio",m3.sa="audio",m3["8"]="unknown",m3["*"]="unknown",m3.w="unknown",m3["3"]="unknown",m3["6"]="unknown",m3[""]="unknown",m3);zHa.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.A(function(m){switch(m.i){case 1:if(b.i.length&&!b.i[0].isEncrypted)return m.return();b.u=!0;c=new Uint8Array(16);SQ()?d=new bX(a):e=new cX(a);case 2:if(!b.i.length||!b.i[0].isEncrypted){m.fb(3);break}f=b.i.shift();if(!d){h=e.decrypt(f.buffer,c);m.fb(4);break}return g.x(m,d.decrypt(f.buffer,c),5);case 5:h=m.u;case 4:l=h;for(var n=0;n<c.length;n++)if(255===c[n])c[n]=0;else{c[n]+=1;break}AHa(b.Vn.ud,f.CG,l);m.fb(2);break;case 3:b.Vn.re("omdf"),
gX(b),b.u=!1,g.sa(m)}})};g.k=CHa.prototype;
g.k.feed=function(a,b){var c=b.totalLength;this.ma();switch(a){case 10:var d=wQ(new tQ(b),1);this.ma();a=!1;switch(d){case 5:c=this.ud;c.re("orfb");if(c.N("html5_onesie_host_probing")&&c.xhr){var e={rc:c.xhr.status,lb:c.xhr.Ek(),rt:cEa(c.Tk).toFixed(3),shost:g.ti(c.gt),trigger:"o1"};c.Ca("pathprobe",g.kD(e))}break;case 0:this.iv=(new rHa(b)).i.iv;break;case 16:this.pA(b);break;case 2:break;case 23:c=new vHa(b);e=this.ud;c.videoId!==e.videoData.videoId?e.Ca("ompp","vid."+c.videoId):e.XE=!0;break;case 24:c=
this.ud;c.XE=!1;c.Xw=!1;hX(c);break;default:a=!0}this.ud.rj&&this.ud.Ca("ombup","id.10;pt."+d+";len."+b.totalLength+(a?";ignored.1":""));this.u=d;break;case 11:EHa(this,b);break;case 20:c=new uHa(b);e=c.B;a=c.u;var f=c.Lk,h=void 0!==this.i[a];this.ud.rj&&this.ud.Ca("ombup","id.20;len."+b.totalLength+";hid."+e+";fid"+a);this.ma();this.B[e]=a;h?(b=this.i[a].headers,b.push(c),c.i&&2===b.length&&this.ud.pA(a,b[0].i+b[1].i)):(this.i[a]={PK:!1,Lk:f,headers:[c]},null===(d=this.ud.De)||void 0===d?void 0:
(b=f,b=void 0===b?!1:b,d.Ne.set(a,{Zd:new xC,cD:0,bytesReceived:0,rf:!1,Lk:b}),d.ma()));break;case 21:FHa(this,b,!1);break;case 12:FHa(this,b,!0);break;case 22:d=CC(b,0);this.ud.rj&&this.ud.Ca("ombup","id.22;len."+b.totalLength+";hid."+d);b=this.B[d]||null;this.ma();b&&(d=this.i[b],1===d.headers.length&&d.headers[0].i||BHa(this.queue,b));break;case 37:b=new sHa(b);b.i&&(this.ud.MD=b);break;default:this.ud.rj&&this.ud.Ca("ombup","id."+a+";len."+c+";ignored.1"),this.ma()}};
g.k.pA=function(a){a=new yHa(a);this.ud.pA(a.i,a.u);this.ma()};
g.k.rF=function(a){var b=this,c,d,e,f,h,l,m,n,p,q,t;return g.A(function(u){if(1==u.i){b.ud.rF();c=BC(a);var v=b.ud;var y=b.iv;v=SQ()?nHa(v.HF,c,y):Promise.resolve(v.HF.decrypt(c,y));return g.x(u,v,2)}d=u.u;try{e=new wHa(new xC([d]))}catch(G){return f=G instanceof Error?{name:G.name,message:G.message}:{},f.webcrypto=""+ +!!SQ(),h=new g.lD("onesie.response.parse",!1,f),u.return(Promise.reject(h))}if(1!==e.onesieProxyStatus)return l={st:e.onesieProxyStatus,webcrypto:""+ +!!SQ(),textencoder:""+ +!!g.B.TextEncoder},
m=new g.lD("onesie.response.badproxystatus",!1,l),u.return(Promise.reject(m));if(200!==e.httpStatus)return n={st:e.httpStatus},p=new g.lD("onesie.response.badstatus",!1,n),u.return(Promise.reject(p));q=e.body;if(b.ud.N("html5_onesie_faster_string_decode"))if(window.TextDecoder)v=(new TextDecoder).decode(q);else{v=0;for(y=[];v<q.length;){for(var z=0;32>z&&v<q.length;){var C=q[v++];if(!(128>C))if(224>C)C=(C&31)<<6|q[v++]&63;else if(240>C)C=(C&15)<<12|(q[v++]&63)<<6|q[v++]&63;else{if(32===z+1){--v;break}C=
(C&7)<<18|(q[v++]&63)<<12|(q[v++]&63)<<6|q[v++]&63;C-=65536;C2[z++]=55296|C>>10;C=56320|C&1023}C2[z++]=C}C=String.fromCharCode(C2[0],C2[1],C2[2],C2[3],C2[4],C2[5],C2[6],C2[7],C2[8],C2[9],C2[10],C2[11],C2[12],C2[13],C2[14],C2[15],C2[16],C2[17],C2[18],C2[19],C2[20],C2[21],C2[22],C2[23],C2[24],C2[25],C2[26],C2[27],C2[28],C2[29],C2[30],C2[31]);32>z&&(C=C.substr(0,z));y.push(C)}v=y.join("")}else v=g.B.TextDecoder?(new TextDecoder).decode(q):g.fb(q);t=v;b.ma();b.ma();return u.return(t)})};
g.k.re=function(a){this.ud.re(a)};
g.k.ma=function(){};g.w(kX,iX);kX.prototype.u=function(a){EQ(a,1,this.name);EQ(a,2,this.value)};g.w(lX,iX);lX.prototype.u=function(a){EQ(a,1,this.url);for(var b=g.r(this.httpHeaders),c=b.next();!c.done;c=b.next())c=c.value,FQ(a,2),c.u(a),GQ(a);EQ(a,3,this.postBody)};g.w(mX,iX);mX.prototype.u=function(a){if(this.i.VX)for(var b=g.r(this.i.VX),c=b.next();!c.done;c=b.next())c=c.value,FQ(a,1),c.u(a),GQ(a);if(this.i.eR)for(b=g.r(this.i.eR),c=b.next();!c.done;c=b.next())c=c.value,FQ(a,2),c.u(a),GQ(a)};g.w(nX,iX);
nX.prototype.u=function(a){this.i.gO&&BQ(a,13,this.i.gO);if(void 0!==this.i.lastManualDirection){var b=this.i.lastManualDirection;AQ(a,112);AQ(a,b<<1^b>>31)}this.i.vL&&BQ(a,16,this.i.vL);this.i.viewportHeight&&this.i.viewportWidth&&(BQ(a,18,this.i.viewportWidth),BQ(a,19,this.i.viewportHeight));this.i.XN&&BQ(a,21,this.i.XN);this.i.kJ&&BQ(a,23,this.i.kJ);void 0!==this.i.visibilityState&&BQ(a,34,this.i.visibilityState);this.i.mediaCapabilities&&(FQ(a,38),this.i.mediaCapabilities.u(a),GQ(a));void 0!==
this.i.fO&&BQ(a,39,this.i.fO);this.i.Pn&&BQ(a,40,1)};g.w(oX,iX);oX.prototype.u=function(a){CQ(a,2,this.i);CQ(a,5,this.encryptedClientKey);CQ(a,6,this.iv);CQ(a,7,this.hmac);BQ(a,10,this.serializeResponseAsJson?1:0)};g.w(pX,iX);pX.prototype.u=function(a){FQ(a,2);this.B.u(a);GQ(a);CQ(a,3,jX(this.C));this.onesieUstreamerConfig&&CQ(a,4,this.onesieUstreamerConfig);this.i&&CQ(a,9,this.i)};qX.prototype.feed=function(a){yC(this.i,a);HHa(this)};
qX.prototype.dispose=function(){this.i=new xC};var n3={init:"0-1",index:"2-3",clen:"",url:"",sp:"",s:"",lmt:""},NHa=[Object.assign({itag:"137",bitrate:"4000000",size:"1920x1080",fps:"30",type:'video/mp4; codecs="avc1.4d401e"'},n3),Object.assign({itag:"248",bitrate:"2000000",fps:"30",size:"1920x1080",type:'video/webm; codecs="vp9"'},n3),Object.assign({itag:"399",bitrate:"1000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="av01.0.08M.08"'},n3),Object.assign({itag:"298",bitrate:"3500000",size:"1280x720",fps:"60",type:'video/mp4; codecs="avc1.64001e"'},
n3),Object.assign({itag:"299",bitrate:"5000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="avc1.64001e"'},n3),Object.assign({itag:"302",bitrate:"2500000",fps:"60",size:"1280x720",type:'video/webm; codecs="vp9"'},n3),Object.assign({itag:"303",bitrate:"3000000",fps:"60",size:"1920x1080",type:'video/webm; codecs="vp9"'},n3),Object.assign({itag:"140",type:'audio/mp4; codecs="mp4a.40.2"'},n3),Object.assign({itag:"251",audio_sample_rate:"48000",type:'audio/webm; codecs="opus"'},n3)],o3=["136","135",
"134","133","160"],p3=["247","244","243","242"],q3={},MHa=(q3["137"]=o3,q3["248"]=p3,q3["399"]=["398","397","396","395","394"],q3["298"]=o3,q3["302"]=p3,q3["299"]=["298","137"].concat(o3),q3["303"]=["302","248"].concat(p3),q3["140"]=[],q3["251"]=["250"],q3),r3={},KHa=(r3["133"]=240,r3["134"]=360,r3["135"]=480,r3["136"]=720,r3["137"]=1080,r3["242"]=240,r3["243"]=360,r3["244"]=480,r3["247"]=720,r3["248"]=1080,r3["298"]=720,r3["299"]=1080,r3["302"]=720,r3["303"]=1080,r3["395"]=240,r3["396"]=360,r3["397"]=
480,r3["398"]=720,r3["399"]=1080,r3);g.w(rX,g.E);g.k=rX.prototype;g.k.re=function(a){this.Da.re(a)};
g.k.rF=function(){this.re("orpr");this.OK=!0};
g.k.pA=function(a,b){var c;null===(c=this.De)||void 0===c?void 0:(c.Ne.get(a).Bk=b,c.ma());hX(this)};
g.k.Ca=function(a,b){this.Da.Ca(a,b)};
g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,t;return g.A(function(u){if(1==u.i){a.ma();a.sA.start();a.XM&&a.rA.start();a.re("ogpd");var v=a.playerRequest,y=a.Y,z=a.videoData,C=y.Ug;C="https://youtubei.googleapis.com/youtubei/"+C.innertubeApiVersion+"/player?key="+C.innertubeApiKey;var G=[new kX({name:"Content-Type",value:"application/json"})],F=z.mf();F&&G.push(new kX({name:"Authorization",value:"Bearer "+F}));G.push(new kX({name:"User-Agent",value:g.Ab}));(z=z.visitorData||g.N("VISITOR_DATA",
void 0))&&G.push(new kX({name:"X-Goog-Visitor-Id",value:z}));(y=g.KD(y.experiments,"debug_sherlog_username"))&&G.push(new kX({name:"X-Youtube-Sherlog-Username",value:y}));v=JSON.stringify(v);d=new lX({url:C,httpHeaders:G,postBody:v});try{var J=a.Y,U=a.videoData,K=a.Da.getPlayerSize(),V=a.Da.getVisibilityState(),xa=a.PJ.onesieUstreamerConfig,La=null===(b=a.videoData.Lq)||void 0===b?void 0:b.i,rb=a.HF;var pb=rb.encrypt(jX(d));var Pb=rb.i.encryptedClientKey,lc=rb.iv,Qa=rb.iv,cc=new VQ(rb.i.u);cc.update(pb);
cc.update(Qa);var Ib=Uya(cc);cc.update(cc.D);cc.update(Ib);var Zg=Uya(cc);cc.reset();var ai=new oX(pb,Pb,lc,Zg);v={};var $g=GD(0);if($g){v.vL=$g;v.lastManualDirection=Rna();var gj=yka()||0;0<gj&&(v.gO=(0,g.P)()-gj)}v.XN=GD();if(J.schedule.X||!J.N("html5_onesie_enable_server_side_badwidth_estimation"))v.kJ=iE(J.schedule,!0);var Dk=g.VE();v.viewportHeight=K.height*Dk;v.viewportWidth=K.width*Dk;v.visibilityState=V;v.fO=uv();J.N("html5_onesie_audio_only_playback")&&(v.Pn=U.Pn());J.N("html5_onesie_media_capabilities")&&
(v.mediaCapabilities=new mX({}));c=new pX(ai,new nX(v),xa,La)}catch(Qc){return a.ma(),Qc instanceof g.lD?a.Ch(Qc):(e=Qc instanceof Error?{name:Qc.name,message:Qc.message}:{},f=new g.lD("onesie.request",!1,e),a.Ch(f)),u.return(a.Yk)}a.re("osor");h=jwa(a.Y);l=jX(c);g.ru()&&(l=new Uint8Array(l.buffer.slice(0,l.length)));m={method:"POST",body:l,headers:{"Content-Type":"text/plain",Referer:location.origin}};v=a.videoData;var $e,vc,Ee;J=v.V();C=J.Zc;(null===C||void 0===C?0:C.baseUrl)&&(J=g.KD(J.experiments,
"debug_bandaid_hostname")||(null===(vc=null===($e=J.Lh)||void 0===$e?void 0:$e.i)||void 0===vc?void 0:vc.primary))&&(Ee=PHa(new g.UA("https://"+J+C.baseUrl),v));if(Ee)C=Ee;else{var Xa;C=null!==(Xa=v.Lq)&&void 0!==Xa&&Xa.url?new g.UA(v.Lq.url):null}return(n=C)?u.fb(2):g.x(u,QHa(a.videoData),3)}2!=u.i&&(n=u.u);if(!n)return a.ma(),p={url:"0"},q=new g.lD("onesie.unavailable.hotconfig",!1,p),a.Ch(q),u.return(a.Yk);Xa=n;$e=a.videoData;a:{if(a.De){vc=LHa(a.Da.getVideoData());Ee=vc.video;vc=vc.audio;U=a.Da;
J=U.zg;U=U.videoData;J=J.N("html5_onesie_sticky_server_side")?jW(J).compose(kW(J,U)):MFa(J).compose(jW(J)).compose(kW(J,U));if(a.N("html5_onesie_format_constraint")){U=[];Ee=g.r(Ee);for(K=Ee.next();!K.done;K=Ee.next())K=K.value,V=KHa[K]||0,J.i&&V>J.i||U.push(K);Ee=U}if(Ee.length){vc={video:Ee,audio:vc};break a}a.Ca("ombspf","l."+J.u+";u."+J.i+";o."+J.B+";r."+J.reason)}vc=void 0}Xa.set("ack","1");Xa.set("cpn",$e.clientPlaybackNonce);Xa.set("opr","1");Xa.set("oaad","0");Xa.set("oavd","0");Xa.set("por",
"1");$e.N("html5_onesie_only_send_clear_media")&&!SQ()&&Xa.set("onem","1");vc?($e=vc.audio,Xa.set("pvi",vc.video.join(",")),Xa.set("pai",$e.join(",")),yA()||Xa.set("osh","1")):(Xa.set("pvi","135"),Xa.set("pai","140"),Xa.set("oad","0"),Xa.set("ovd","0"));a.ma();a.rj&&a.Ca("ombrs","1");t=a.Da.V().schedule;a.Tk=new fV(a,{Lg:t,CD:a.rj});n.set("rn",""+a.Tk.requestNumber);a.gt=VA(n);YDa(a.Tk,a.gt);a.re("ocs");yA()?AA()?a.xhr=new eV(a.gt,h,a.Tk,m):a.xhr=new nV(a.gt,h,a.Tk,m):a.xhr=new oV(a.gt,a.Tk,m);a.N("html5_onesie_host_probing")&&
a.zz&&(Xa=a.zz,($e=null===(C=Xa.i)||void 0===C?void 0:C.secondary)&&ooa(Xa,$e,"o2"),C=null===(v=Xa.i)||void 0===v?void 0:v.primary)&&(v=poa(C),ooa(Xa,v,"o3"));return u.return(a.Yk)})};
g.k.Zs=function(){};
g.k.mq=function(){this.Jn();this.rA.isActive()&&this.rA.start()};
g.k.zo=function(){var a=this,b,c;this.ma();this.Jn();var d=RHa(this),e=this.xhr;if(e.me()){var f="onesie.net";d.msg=e.me()}else 400<=e.status?f="onesie.net.badstatus":e.Rw()?this.OK||(f="onesie.response.noplayerresponse"):f=204===e.status?"onesie.net.nocontent":"onesie.net.connect";f?this.Ch(new g.lD(f,!1,d)):(this.re("orf"),$Da(this.Tk,(0,g.P)(),e.Ek(),0),this.rj&&this.Ca("rqs",d));this.rj&&this.Ca("ombre","ok."+ +!f);this.Xw=!1;hX(this);DHa(this.Vn);null===(c=null===(b=this.zz)||void 0===b?void 0:
qoa(b))||void 0===c?void 0:c.forEach(function(h){a.Ca("pathprobe",h)})};
g.k.N=function(a){return this.Y.N(a)};
g.k.LK=function(){this.ma();this.Xw=!1;if(!hX(this)){var a=RHa(this);a.timeout="1";this.Ch(new g.lD("onesie.request",!1,a))}};
g.k.Ch=function(a){var b=this,c,d;this.Yk.reject(a);this.sA.stop();this.re("ore");null===(d=null===(c=this.zz)||void 0===c?void 0:qoa(c))||void 0===d?void 0:d.forEach(function(e){b.Ca("pathprobe",e)});
this.dispose()};
g.k.xa=function(){var a;this.playerResponse="";null===(a=this.xhr)||void 0===a?void 0:a.abort();DHa(this.Vn);this.uO.dispose();g.E.prototype.xa.call(this)};
g.k.Jn=function(){var a=this.xhr;102400<a.Ek()&&!this.gL&&(this.re("or100k"),this.gL=!0);for(;a.Wf();){var b=a.Ph(),c=b.totalLength;this.ma();this.rj&&this.Ca("ombrss","len."+c);this.uO.feed(b)}};
g.k.ma=function(){};g.w(g.wX,g.Q);g.k=g.wX.prototype;g.k.xa=function(){this.ma();this.zN();this.GA.stop();Tt(this.zA);NBa(this.Ee);this.visibility.unsubscribe("visibilitystatechange",this.Ee);DGa(this.Rb);(0,g.ee)(this.Rb);CX(this);g.tv.gi(this.yq);this.Bg();this.Fe=null;(0,g.ee)(this.videoData);(0,g.ee)(this.zk);(0,g.ge)(this.pT);this.Ol=null;g.Q.prototype.xa.call(this)};
g.k.Sw=function(a){this.Rb.Sw(a)};
g.k.ut=function(a,b,c,d){this.Rb.ut(a,b,c);this.N("html5_log_media_perf_info")&&this.Ca("adloudness","ld."+d.toFixed(3)+";cpn."+a)};
g.k.UD=function(){var a;return null===(a=this.Ya)||void 0===a?void 0:a.UD()};
g.k.VD=function(){var a;return null===(a=this.Ya)||void 0===a?void 0:a.VD()};
g.k.getVideoData=function(){return this.videoData};
g.k.V=function(){return this.Y};
g.k.Np=function(){return this.visibility};
g.k.kd=function(){return this.ra};
g.k.jD=function(){if(this.videoData.isLoaded()){var a=this.zk;0<g.S(a.i.experiments,"html5_player_min_build_cl")&&409174836<g.S(a.i.experiments,"html5_player_min_build_cl")&&FFa(a,"oldplayer");hIa(this)}else this.videoData.wd||this.videoData.gj?this.Ms&&g.ME(this.Y)&&this.videoData.isLivePlayback||(this.videoData.wd?Bqa(this.videoData):(a=this.Rb,a.qoe&&(a=a.qoe,tW(a,"protected"),a.i.videoData.I?a.LN():a.i.videoData.subscribe("dataloaded",a.LN,a)),wqa(this.videoData))):!this.videoData.Ha&&this.gR&&
gIa(this)};
g.k.Bs=ba(3);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.T(this.getPlayerState(),128)||(this.ea("internalAbandon"),this.kG(!0),DGa(this.Rb),(0,g.ee)(this.Rb),g.tv.gi(this.yq))};
g.k.Nq=function(){CGa(this.Rb)};
g.k.Hf=function(a,b,c,d,e){this.ma();var f,h;g.Ae(ePa,b)?f=b:b?h=b:f="GENERIC_WITHOUT_LINK";c=(c||"")+(";a6s."+nva());(b=h)||(b=g.oN[f]||"");a={errorCode:a,errorDetail:d,errorMessage:b,FD:f,ri:e||"",UF:c};AX(this,"dataloaderror");this.Ub(DJ(this.playerState,128,a));g.tv.gi(this.yq);CX(this);this.wm()};
g.k.Od=function(a){this.Hj=this.Hj.filter(function(b){return a!==b});
this.ma();this.qm.started&&BX(this)};
g.k.Yl=function(){var a;(a=!!this.Hj.length)||(a=this.Qg.i.i[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.dm=function(){return this.Oc.dm()};
g.k.Ec=function(){return this.playerState.Ec()};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.Fe){var a=this.Fe;a=a.videoData.jr.compose(a.videoData.vN);a=IA(a)}else a="auto";return a};
g.k.Hv=ba(9);g.k.isGapless=function(){return!!this.ra&&this.ra.isView()};
g.k.setMediaElement=function(a){this.ma();if(this.ra&&a.Me()===this.ra.Me()&&(a.isView()||this.ra.isView())){if(a.isView()||!this.ra.isView())g.Mx(this.Tt),this.ra=a,qIa(this),this.Oc.setMediaElement(this.ra)}else{this.ra&&this.Bg();if(!this.playerState.isError()){var b=FJ(this.playerState,512);g.T(b,8)&&!g.T(b,2)&&(b=EJ(b,1));a.isView()&&(b=FJ(b,64));this.Ub(b)}this.ra=a;this.ra.setLoop(this.loop);this.ra.setPlaybackRate(this.playbackRate);qIa(this);this.Oc.setMediaElement(this.ra)}};
g.k.Bg=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.ma();if(this.ra){var c=this.getCurrentTime();0<c&&(this.Oc.B=c);this.Oc.setMediaElement(null);LX(this);this.Ya&&(g.br(this.Ya.X),MX(this,b));this.fq.stop();if(this.ra&&(!this.qm.started||this.playerState.isError()||g.T(this.playerState,2)||this.Ub(EJ(this.playerState,512)),this.ra)){g.Mx(this.Tt);if(a||!this.ra.isView())this.ra.stopVideo(),QX(this);this.ra=null}}};
g.k.playVideo=function(){var a=this,b,c,d,e;return g.A(function(f){if(1==f.i){a.ma();if(!a.N("html5_clear_globalcache_killswitch")){var h=window.google_image_requests;h&&10<h.length&&(window.google_image_requests=h.slice(-10))}if(g.T(a.playerState,128))return f.return();if(a.zk.Jz())return a.ea("signatureexpired"),f.return();a.ra&&BGa(a.Rb);GX(a);g.T(a.playerState,64)&&a.Ub(EJ(a.playerState,8));return a.qm.isFinished()&&a.ra?a.Fe||!a.Iw?f.fb(2):g.x(f,a.Iw,2):f.return()}if(!a.videoData.C)return b=
a.videoData.isLivePlayback&&!g.YD(a.Y.B,!0)?"html5.unsupportedlive":aG(a.videoData)?"fmt.unplayable":"fmt.noneavailable",g.ky(Error("selectableFormats")),a.Hf(b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),f.return();if(a.qf()&&a.videoData.C.i)return a.ma(),f.return(zX(a));if(a.videoData.isLivePlayback){c=a.getCurrentTime()<a.getMinSeekableTime()-15;d=g.nG(a.videoData)&&g.T(a.playerState,4);e=!a.N("html5_dompaused_unpause_killswitch")&&g.T(a.playerState,1024);e||!c&&!d||(d?(a.ma(),
a.seekTo(Infinity,{Td:"videoplayer_unpauseLiveOnly"})):(a.ma(),a.seekTo(a.getMinSeekableTime(),{Td:"videoplayer_outOfWindow"})));!a.isAtLiveHead(void 0,!0)&&a.dm()&&(a.ma(),a.seekTo(Infinity,{Td:"videoplayer_peggedToLive"}));if(h=g.T(a.playerState,256)&&a.videoData.kb)h=a.Oc,h=h.S&&!isFinite(h.i);if(h)return a.Ub(GJ(a.playerState,8,4)),f.return()}g.T(a.playerState,4)&&g.T(a.playerState,16)&&a.Ub(GJ(a.playerState,9,4));if(uX(a))return wIa(a),f.return();PX(a);g.sa(f)})};
g.k.An=function(){if(!this.Fe)return[];var a=KFa(this.zg,this.Fe,this.zs());return this.Fe.i.An(a)};
g.k.zs=function(){var a=this.Kd?this.Kd.zs():ZF(this.videoData)&&this.videoData.i&&QA(this.videoData.i)?this.videoData.Sg?QF:tFa:QF;this.fG&&(a=a.compose(UOa));return a};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.i?IA(this.videoData.jr):HA[GD()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a){this.videoData.xe!==a&&(this.videoData.xe=a,g.zy("yt-player-audio51",a,2592E3),gW(this))};
g.k.getUserAudio51Preference=function(){var a;return null!==(a=g.Ay("yt-player-audio51"))&&void 0!==a?a:1};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(this.N("html5_native_audio_track_switching")){var a=mIa(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.Ip=function(){return this.mediaSource};
g.k.Xs=function(a){this.ma();this.jt.set(a.initData,a);this.Kd&&(this.Kd.Xs(a),this.N("html5_eme_loader_sync")||this.jt.remove(a.initData))};
g.k.jA=function(a){JX(this,a.reason,a.video.info,a.audio.info);this.Oc.jA(a)};
g.k.Ws=function(a){this.ea("localmediachange",a)};
g.k.Ot=function(){var a;null===(a=this.Ya)||void 0===a?void 0:a.Ot(this.Y)};
g.k.Jz=function(){return this.zk.Jz()};
g.k.handleError=function(a){this.zk.handleError(a)};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.T(this.playerState,64)||g.T(this.playerState,2))&&!a)if(g.T(this.playerState,8))this.Ub(GJ(this.playerState,4,8));else return;this.N("html5_enable_server_stitched_ad_skip")&&this.videoData.enableServerStitchedDai&&this.nx()||(g.T(this.playerState,128)||(a?this.Ub(EJ(this.playerState,256)):this.Ub(GJ(this.playerState,4,8))),this.ra&&this.ra.pause(),g.nG(this.videoData)&&this.Ya&&MX(this,!1))};
g.k.stopVideo=function(){this.pauseVideo();this.Ya&&(MX(this,!1),yV(this.Ya))};
g.k.wm=function(a){a=void 0===a?!1:a;var b;null===(b=this.ra)||void 0===b?void 0:b.stopVideo();QX(this);CX(this);g.T(this.playerState,128)||(a?this.Ub(FJ(FJ(EJ(this.playerState,4),8),16)):this.Ub(DJ(this.playerState)));this.videoData.videoId&&this.Y.S.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;this.ma("SeekTo "+a+", "+JSON.stringify(b));g.T(this.playerState,2)&&uX(this);if(this.od){var c=this.od;isFinite(a)&&a<c.Da.mj()?c.isLiveNow=!1:c.isLiveNow=!0}this.Oc.seekTo(a,b)};
g.k.getCurrentTime=function(){return this.Oc.getCurrentTime()};
g.k.Dh=function(){return this.Oc.Dh()};
g.k.mj=function(){return this.Oc.mj()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Uc())};
g.k.As=function(){var a=NaN;this.ra&&(a=this.ra.As());return 0<=a?a:this.getCurrentTime()};
g.k.getIngestionTime=function(){var a;if(null===(a=this.videoData.i)||void 0===a?0:a.getIngestionTime)return this.videoData.i.getIngestionTime(this.getCurrentTime()-this.Uc());if((!this.N("html5_disable_limit_ingestion_tvos")||tu())&&this.ra){var b=this.ra.Ox();if(b&&(b=b.getTime(),!isNaN(b)))return b/1E3+this.getCurrentTime()}return NaN};
g.k.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Uc():this.jd()?this.jd():0};
g.k.oz=function(){var a=new HGa;if(this.Ya){var b=this.Y.schedule;a.u=b.Z;a.C=b.oa;a.bandwidthEstimate=iE(b);a.i={d:gE(b).toFixed(2),st:(1E9*(b.i.jg()||0)).toFixed(2),bw:b.B.jg().toFixed(0),abw:b.I.jg().toFixed(0),v50:eE(b.u,.5).toFixed(2),v92:eE(b.u,.92).toFixed(2),v96:eE(b.u,.96).toFixed(2),v98:eE(b.u,.98).toFixed(2)};b=this.Ya;if(b.mediaSource&&!b.mediaSource.rf()&&(a.kp=ZU(b.videoTrack,b.currentTime),a.B=ZU(b.audioTrack,b.currentTime),b.policy.bb)){var c=YU(b.videoTrack),d=YU(b.audioTrack),e=
dD(b.mediaSource.u.kf(),"_",5),f=dD(b.mediaSource.i.kf(),"_",5);Object.assign(a.i,{lvq:c,laq:d,lvb:e,lab:f})}a.bandwidthEstimate=tT(b.I);b.ma(g.kD(a.i))}else this.ra&&(a.kp=AJ(this.ra));a.D=this.isAtLiveHead()&&this.Ec()?tX(this):NaN;return a};
g.k.Gp=function(){return this.ra?g.nG(this.videoData)?1:oG(this.videoData)?this.isAtLiveHead()||this.dm()?1:this.Oc.Gp():this.ra.Gp():0};
g.k.Kb=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.Rb.Kb());this.ra&&(Object.assign(b,this.ra.Kb()),Object.assign(b,this.Mv()));this.Ya&&Object.assign(b,this.Ya.Kb());this.Kd&&(b.drm=JSON.stringify(this.Kd.Kb()));b.state=this.playerState.state.toString(16);g.T(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.getData()));this.Yl()&&(b.prerolls=this.Hj.join(","));this.videoData.Qj&&(b.ismb=this.videoData.Qj);"UNKNOWN"!==this.videoData.latencyClass&&(b.latency_class=
this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.jy.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.i&&ED(this.videoData.i)&&(b.segduration=ED(this.videoData.i)),a=this.Oc,b.lat=a.I?qCa(a.I.C):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.ue.toFixed(3);if(a=g.IX(this))b.optimal_format=a.video.qualityLabel;b.user_qual=
GD();b.release_version="youtube.player.web_20211110_01_RC01"}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.Iu([a])};
g.k.removeCueRange=function(a){this.Qg.Ff([a])};
g.k.qv=function(a,b){return this.Qg.qv(a,b)};
g.k.Iu=function(a,b){this.Qg.Dd(a,b)};
g.k.OA=function(a){this.Qg.Ff(a)};
g.k.Rl=function(){return this.Qg.Rl()||[]};
g.k.qf=function(){return this.visibility.qf()};
g.k.Io=function(){this.ra&&this.ra.Io()};
g.k.qW=function(){AX(this)};
g.k.togglePictureInPicture=function(){this.ra&&this.ra.togglePictureInPicture()};
g.k.GF=function(a){this.jB.stop();var b=a.target.Bf();if(this.ra&&this.ra.Bf()&&this.ra.Bf()===b){zIa(this,a.type);switch(a.type){case "error":var c=BJ(this.ra)||"";if("capability.changed"===c){zX(this);return}if(0<this.ra.hj()&&hW(this.zk,c,{msg:this.ra.me()}))return;if(this.isBackground()&&4===this.ra.hj()){this.wm();DX(this,"unplayable");return}break;case "durationchange":c=this.ra.getDuration();isFinite(c)&&(!this.mediaSource||0<c)&&1!==c&&this.Ij(c);break;case "ratechange":this.Ya&&this.Ya.setPlaybackRate(this.ra.getPlaybackRate());
c=this.Qg;c.started=!0;c.jl();this.Rb.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":BIa(this);this.ea("onLoadedMetadata");tIa(this);break;case "loadstart":tIa(this);break;case "progress":case "suspend":this.Xb();this.ea("onLoadProgress",this,this.Gp());break;case "playing":if(this.N("html5_force_manifestless_seeking_state")&&YF(this.videoData)&&this.Ya&&this.Ya.C.i){this.Ca("mflForceSeek","reason.play");return}this.Qb.tick("plev");sIa(this);vA("plev",void 0,"video_to_ad");
this.hG&&(this.hG=!1,this.isAtLiveHead()||(this.ma(),this.seekTo(Infinity,{Td:"videoplayer_onPlaying"})));break;case "timeupdate":sIa(this);c=this.ra&&!this.ra.getCurrentTime();var d=this.ra&&0===this.ra.wh();if(c&&(!this.fA||d))return;this.fA=this.fA||!!this.ra.getCurrentTime();OX(this);this.Xb();if(!this.ra||this.ra.Bf()!==b)return;this.ea("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.ra.Kp().length&&0===this.ra.Tf().length&&0<this.ra.getCurrentTime()&&5>this.ra.getCurrentTime()&&
this.Ya)return;break;case "resize":BIa(this);this.videoData.B&&"auto"===this.videoData.B.video.quality&&this.ea("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.iJ&&g.T(this.playerState,8)&&!g.T(this.playerState,1024)&&0===this.getCurrentTime()&&g.nj){DX(this,"safari_autoplay_disabled");return}}if(this.ra&&this.ra.Bf()===b){this.ea("videoelementevent",a);b=this.playerState;if(!g.T(b,128)){c=this.Ou;var e=this.ra,f=this.Y.experiments;d=b.state;e=e?e:a.target;var h=e.getCurrentTime();
if(!g.T(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.Nk()||1<h&&1.1>Math.abs(h-e.getDuration());h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.T(b,4)&&!KW(c,h);if("pause"===a.type&&e.Nk()||l&&h)0<e.jz()&&e.Bf()&&(d=14);else switch(a.type){case "error":BJ(e)&&(d|=128);break;case "pause":g.T(b,256)?(d^=256)||(d=64):g.T(b,32)||g.T(b,2)||g.T(b,4)||(d=4,g.T(b,1)&&g.T(b,8)&&(d|=1));break;case "playing":d=(d|8)&-1029;f&&f.ob("html5_playing_clears_unstarted_killswitch")||(d&=-65);
KW(c,e.getCurrentTime())&&(d&=-2);g.T(b,1)&&LW(c,e.getCurrentTime(),(0,g.P)(),AJ(e))&&(d|=1);break;case "seeking":d|=16;g.T(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.T(b,2)||(d|=1);LW(c,e.getCurrentTime(),(0,g.P)(),AJ(e));break;case "timeupdate":f=g.T(b,16),l=g.T(b,4),(g.T(b,8)||f)&&!l&&KW(c,e.getCurrentTime())&&(d=8),LW(c,e.getCurrentTime(),(0,g.P)(),AJ(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,(e=BJ(d))?(f="GENERIC_WITHOUT_LINK",l=d.Kb(),l.mediaElem="1",/AUDIO_RENDERER/.test(d.me())&&
(f="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.oN[f]||"",FD:f,UF:g.kD(l)}):d=null);b=DJ(b,c,d)}!g.T(this.playerState,1)&&g.T(b,1)&&RX(this,"evt"+a.type);this.Ub(b)}}};
g.k.eW=function(){this.Ca("misstimeupdate","");rIa(this)&&!g.T(this.playerState,2)&&wS(this,!0,!1)};
g.k.FT=function(a){a="available"===a.i.availability;a!==this.Vv&&(this.Vv=a,this.ea("airplayavailabilitychange"))};
g.k.GT=function(){var a=(0,g.P)(),b=this.ra.qf();this.Ca("airplay",b?"on":"off");if(!this.N("html5_ignore_inactive_airplay_killswitch")&&b||isNaN(this.Lz)||!(2E3>a-this.Lz))this.Lz=a,b!==this.qf()&&(a=this.visibility,a.i!==b&&(a.i=b,a.Ee()),this.Ca("airplay","rbld_"+b),gW(this)),this.ea("airplayactivechange")};
g.k.Nv=function(a){if(this.Ya){var b=this.Ya,c=b.B,d=b.currentTime;c.Ca("sdai","adfetchdone_"+a);a&&!isNaN(c.C)&&QCa(c,d,c.C,c.B);c.i=4;g.br(b.X)}};
g.k.Xb=function(a){var b=this;a=void 0===a?!1:a;if(this.ra&&this.videoData){dHa(this.Oc,this.Ec());var c=this.getCurrentTime();this.Ya&&(g.T(this.playerState,4)&&g.nG(this.videoData)||LEa(this.Ya,c));5<c&&(this.Oc.B=c);var d=g.mv();d?g.tv.gi(this.yq):g.St(this.yq);var e=this.ra.il();if((g.KJ(this.playerState)||!e||FG(this.videoData))&&!g.T(this.playerState,128)){var f=function(){if(b.ra&&!g.T(b.playerState,128)){b.videoData.oa&&g.S(b.Y.experiments,"html5_log_rebuffer_events")&&zIa(b,"pfx");var h=
b.getCurrentTime(),l=AJ(b.ra),m=g.T(b.playerState,8),n=KW(b.Ou,h),p=LW(b.Ou,h,(0,g.P)(),l);m&&n?b.Ub(FJ(b.playerState,1)):m&&p?(m=b.getDuration(),n=b.videoData.isLivePlayback,(b.N("html5_set_ended_in_pfx_live")||!n)&&m&&1.1>Math.abs(m-h)?(b.Ca("setended","ct."+h+";bh."+l+";dur."+m+";live."+ +n),n&&b.N("html5_set_ended_in_pfx_live_cfl")||(b.ra.Hp()?(b.ma(),b.seekTo(0,{Td:"videoplayer_loop"})):wS(b))):(g.KJ(b.playerState)||RX(b,"progress_fix"),b.Ub(EJ(b.playerState,1)))):(m&&!n&&!p&&0<h&&(m=(Date.now()-
b.Oz)/1E3,n=b.getDuration(),h>n-1&&b.Ca("misspg","t:"+h.toFixed(2)+";d:"+n.toFixed(2)+";r:"+m.toFixed(2)+";bh:"+l.toFixed(2))),g.T(b.playerState,4)&&g.KJ(b.playerState)&&5<AJ(b.ra)&&b.Ub(FJ(b.playerState,1)));b.Xb()}};
0===this.ra.Kp().length?this.yq=d?g.tv.Of(f,100):g.Qt(f,100):this.yq=d?g.tv.Of(f,500):g.Qt(f,500)}this.videoData.zC=c;!a&&this.Ec()&&vIa(this);TFa(this.zg,this.Fe,this.kd(),this.isBackground())&&HV(this);UFa(this.zg,this.videoData.B)&&(this.Rb.ld("qoe.restart","droprate."+this.zg.K),this.Y.B.K=!1,gW(this));this.ea("progresssync",this,a);!this.N("html5_progress_event_linear_paused_killswitch")&&e&&FG(this.videoData)&&this.ea("onVideoProgress",this,this.getCurrentTime())}};
g.k.aS=function(){this.Hf("ad.rebuftimeout","RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.Ev=function(){return this.Rb.Ev()};
g.k.RD=function(){return this.Ya?this.Ya.RD():iE(this.Y.schedule,!0)};
g.k.kR=function(){g.KJ(this.playerState)&&RFa(this.zg,this.Fe)&&HV(this)};
g.k.Ub=function(a){if(!g.HJ(this.playerState,a)){this.ma();var b=new g.vH(a,this.playerState);this.playerState=a;AIa(this);var c=!this.BA.length;this.BA.push(b);var d=this.ra&&this.ra.xu();g.xH(b,1)&&!g.T(b.ao,16)&&!d&&g.T(this.playerState,8)&&!g.T(this.playerState,64)&&this.Ya&&(d=this.Ya,d.ma(),d.Aa=!0,this.ra&&5<=AJ(this.ra)&&((d=g.S(this.Y.experiments,"html5_non_network_rebuffer_duration_ms"))?this.aM.start(d):RFa(this.zg,this.Fe)&&HV(this)));(d=g.S(this.Y.experiments,"html5_ad_timeout_ms"))&&
this.videoData.isAd()&&g.T(a,1)&&(g.T(a,8)||g.T(a,16))?this.MC.start(d):this.MC.stop();(0>wH(b,8)||g.xH(b,1024))&&this.fq.stop();!g.xH(b,8)||this.videoData.kb||g.T(b.state,1024)||this.fq.start();g.T(b.state,8)&&0>wH(b,16)&&!g.T(b.state,32)&&!g.T(b.state,2)&&this.playVideo();g.T(b.state,2)&&oG(this.videoData)&&(this.Ij(this.getCurrentTime()),this.Xb(!0));g.xH(b,2)&&this.kG(!0);g.xH(b,128)&&this.wm();this.videoData.i&&this.videoData.isLivePlayback&&!this.zO&&(0>wH(b,8)?(a=this.videoData.i,a.C&&a.C.stop()):
g.xH(b,8)&&this.videoData.i.resume());this.Oc.Nc(b);this.Rb.Nc(b);if(c&&!this.isDisposed())try{for(var e=g.r(this.BA),f=e.next();!f.done;f=e.next()){var h=f.value;this.Qg.Nc(h);this.ea("statechange",h)}}finally{this.BA.length=0}}};
g.k.Aw=function(){this.videoData.isLivePlayback||this.ea("connectionissue")};
g.k.CF=function(){this.Qb.tick("qoes")};
g.k.iA=function(a,b,c,d){a:{var e=this.zk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);"drm.keyerror"===a&&this.Kd&&1<this.Kd.u.keys.length&&96>e.D&&(a="drm.sessionlimitexhausted",b=!1);if(b)if(e.videoData.B&&e.videoData.B.video.isHdr())HFa(e,a);else{if(e.Da.Hf(a,d,c),e.videoData.N("html5_exile_on_drm_fatal")&&AFa(e,{detail:c}))break a}else e.ld(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.Ca("retrydrm",{sessionLimitExhausted:1}),e.D++,yIa(e.Da))}};
g.k.CU=function(){var a=this,b=g.S(this.Y.experiments,"html5_license_constraint_delay"),c=Eu();b&&c?(b=new g.I(function(){EX(a);AX(a)},b),g.H(this,b),b.start()):(EX(this),AX(this))};
g.k.Dw=function(a){this.ea("heartbeatparams",a)};
g.k.uo=function(a){this.Ca("keystatuses",iFa(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.N("html5_drm_check_all_key_error_states")){var d=jFa(b,c);d=RV(a)?SV(a,d):a.D.includes(d)}else{a:{b=jFa(b,c);for(d in a.i)if("output-restricted"===a.i[d].status){var e=a.i[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}b=a.Z&&d;c&&!b?HFa(this.zk):d||SV(a,"AUDIO")&&SV(a,"SD")||(this.ma(),this.fG?(this.ma(),this.ea("drmoutputrestricted")):
(this.fG=!0,this.Ca("retrydrm","o"),FX(this),yIa(this)))};
g.k.FU=function(){var a,b;if(!this.videoData.kb&&this.ra&&!this.isBackground()){var c="0";0<this.ra.wh()&&5<=AJ(this.ra)&&this.videoData.C&&this.videoData.C.i&&(this.Ub(EJ(this.playerState,1)),RX(this,"load_soft_timeout"),this.ea("playbackstalledatstart"),c="1");AIa(this);if(this.N("html5_new_video_qoe_restart_info_killswitch"))c={restartmsg:c},this.Yl()&&(c.prerolls=this.Hj.join(",")),this.Ya&&Object.assign(c,this.Ya.Kb()),this.ra&&Object.assign(c,this.ra.Kb());else{var d=this.videoData.C;c={restartmsg:c,
mfmt:ZF(this.videoData)?"0":"1",mdrm:d&&d.videoInfos&&d.videoInfos.length&&d.videoInfos[0].Ed&&!this.Kd?"1":"0",mfmtinfo:this.videoData.B?"0":"1",prerolls:this.Yl()?this.Hj.join(","):"0"};if(this.Kd){d=c;var e=this.Kd;if(0>=e.u.size){var f="ns;";e.X||(f+="nr;");e=f+="ql."+e.B.length}else e=iFa(e.u.values().next().value);d.drmp=e}Object.assign(c,(null===(a=this.Ya)||void 0===a?void 0:a.Kb())||{});Object.assign(c,(null===(b=this.ra)||void 0===b?void 0:b.Kb())||{})}this.Rb.ld("qoe.start15s",g.kD(c));
this.ea("loadsofttimeout")}};
g.k.Ij=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,AX(this))};
g.k.kG=function(a){var b=this;a=void 0===a?!1:a;if(!this.ly){uA("att_s","player_att")||vA("att_s",void 0,"player_att");var c=new g.Cva(this.videoData);if("c1a"in c.i&&!g.dM.isInitialized()&&(vA("att_wb",void 0,"player_att"),2===this.WC&&.01>Math.random()&&g.ky(Error("Botguard not available after 2 attempts")),!a&&5>this.WC)){g.br(this.XC);this.WC++;return}if("c1b"in c.i){var d=FGa(this.Rb);d&&Fva(c).then(function(e){e&&!b.ly&&d?(vA("att_f",void 0,"player_att"),d(e),b.ly=!0):vA("att_e",void 0,"player_att")},
function(){vA("att_e",void 0,"player_att")})}else(a=g.Dva(c))?(vA("att_f",void 0,"player_att"),EGa(this.Rb,a),this.ly=!0):vA("att_e",void 0,"player_att")}};
g.k.jd=function(a){return this.Oc.jd(void 0===a?!1:a)};
g.k.getMinSeekableTime=function(){return this.Oc.getMinSeekableTime()};
g.k.Uc=function(){return this.Oc?this.Oc.Uc():0};
g.k.getStreamTimeOffset=function(){return this.Oc?this.Oc.getStreamTimeOffset():0};
g.k.setPlaybackRate=function(a){var b=this.videoData.C&&this.videoData.C.videoInfos&&32<this.videoData.C.videoInfos[0].video.fps&&g.ME(this.Y);this.playbackRate!==a&&b&&(this.zg.setPlaybackRate(a),FX(this));this.playbackRate=a;this.ra&&this.ra.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.playbackRate};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.B&&(a=this.videoData.B.video.quality,"auto"===a&&this.ra)){var b=sH(this);b&&0<b.videoHeight&&(a=KC(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.B&&this.videoData.B.video&&this.videoData.B.video.isHdr())};
g.k.Qt=function(){this.Rb.Qt()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.Rb;c.i?(c=CW(c.i,"engage"),c.X=a,c.send(b)):b&&b()};
g.k.Wg=function(a){return this.Rb.Wg(a)};
g.k.isAtLiveHead=function(a,b){return this.videoData.isLivePlayback&&(this.NK||(void 0===b?0:b))?this.Oc.isAtLiveHead(a):!1};
g.k.Cn=function(){var a=this.jd(),b=this.getCurrentTime(),c;(c=!this.videoData.isLivePlayback)||(c=this.Oc,c=!(c.u&&c.u.B));return c||this.dm()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.Dj=ba(13);g.k.qo=ba(34);g.k.po=ba(37);g.k.Mv=function(){return this.ra?this.ra.Px():{}};
g.k.setLoop=function(a){this.loop=a;this.ra&&this.ra.setLoop(a)};
g.k.Hp=function(){return this.ra?this.ra.Hp():this.loop};
g.k.FF=function(a){var b=this.N("html5_unrewrite_timestamps");this.Ca("timestamp","enabled."+b+";t."+a.toString());this.Oc.FF(a)};
g.k.re=function(a){this.Qb.tick(a)};
g.k.Ca=function(a,b,c){this.Rb.Ca(a,b,void 0===c?!1:c)};
g.k.ld=function(a){this.Rb.ld(a.errorCode,g.kD(a.details))};
g.k.Tw=function(a,b,c){this.Rb.Tw(a,b,c)};
g.k.XF=function(a,b,c){var d;if(null===(d=this.videoData.i)||void 0===d?0:d.isLive){var e=this.Rb;e.qoe&&e.qoe.XF(a,b,c)}};
g.k.getPlayerSize=function(){return this.mx.getPlayerSize()};
g.k.pg=function(){return this.mx.pg()};
g.k.ma=function(){};
g.k.N=function(a){return this.Y.N(a)};
g.k.VC=function(){if(dG(this.videoData,"html5_set_debugging_opt_in")){var a=g.Uv.getInstance();if(!g.Vv(0,183)){var b="f"+(Math.floor(183/31)+1),c=hia(b)||0;c|=268435456;0==c?delete Tv[b]:(c=c.toString(16),Tv[b]=c.toString());a.save()}}};
g.k.zN=function(){if(g.IJ(this.playerState)){var a=vX.hK();0!==Object.keys(a).length&&this.Rb.Ca("profile",a)}this.GA.start()};
g.k.nx=function(){var a,b=this.getCurrentTime();return(null===(a=this.Ya)||void 0===a?0:a.nx(b,100))?(mHa(this.Oc,b+100+5),!0):!1};
g.k.Ds=function(a){return this.Ya?this.Ya.Ds(a):""};g.w(g.VX,g.E);g.VX.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Pa(a),e=s3[d];if(e){try{e.dispose()}catch(h){g.jy(h)}s3[d]=null}var f=new g.VX(a,b,c);g.he(f,function(){s3[d]=null;f.vO&&f.vO()});
return s3[d]=f}catch(h){throw g.jy(h),h.stack;}};
g.k=g.VX.prototype;g.k.Np=function(){return this.visibility};
g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.Sl=function(){this.AE||(this.AE=g.ZL($J(),kva()));return this.AE};
g.k.isVideoInfoVisible=function(){return!(!this.Zi||!this.Zi.yb)};
g.k.Bg=function(){if(this.ra){this.Wt&&(this.events.pc(this.Wt),this.Wt=null);g.Mx(this.Un);this.ub&&this.ub.Bg(!0);this.template.Bg();if(!this.N("html5_unset_src_on_remove_killswitch"))try{this.ra.PA()}catch(a){}this.ra=null}};
g.k.Wk=function(a){if(this.N("html5_skip_setPresenting"))1===a&&this.ub&&bY(this,this.ub);else{var b=g.AM(this,a);if(!b||b.isDisposed())b=new RF(this.Y),b=this.Jl(a,b);$X(this,b)}};
g.k.Jc=function(){return this.ub};
g.k.Eo=function(a){this.N("html5_skip_setPresenting")?this.ub&&bY(this,this.ub):(a=g.AM(this,a))&&bY(this,a)};
g.k.Jl=function(a,b,c){var d=this,e=this.Qb;2===a&&(e=new CM(this.Y));return new g.wX(this.Y,a,e,this.template,function(f){return d.tm.ea.apply(d.tm,[f].concat(g.la(g.Ba.apply(1,arguments))))},function(){return d.Ta.getVisibilityState()},this.visibility,this,b,c)};
g.k.setIsExternalPlaylist=function(a){this.hg=mE(!1,a)};
g.k.LT=function(){WX(this)||(this.ma(),this.Vk(5))};
g.k.bV=function(a){WX(this)||(this.ma(),iJa(this),g.IJ(a.getPlayerState())&&this.playVideo())};
g.k.canPlayType=function(a){return YC(a)};
g.k.V=function(){return this.Y};
g.k.getVideoData=function(){return this.ub.getVideoData()};
g.k.Lv=ba(5);g.k.getVideoLoadedFraction=function(a){a=g.AM(this,a);return a?g.CG(a.getVideoData())?1:(a=a.kd())?a.Gp():0:0};
g.k.eb=function(){return this.template};
g.k.tb=function(){return this.Wc};
g.k.Dp=function(){return this.Qb};
g.k.Et=function(a){var b=g.AM(this,1);b&&wS(b,a)};
g.k.Eh=function(){var a=this.Wc.gE();a.fs=this.Ta.isFullscreen();a.volume=Math.round(this.Ta.getVolume());a.muted=this.Ta.isMuted()?1:0;a.mos=a.muted;if(this.Y.N("html5_enable_embedded_player_visibility_signals")&&g.xE(this.Y)){if(this.gH){var b=this.gH;b=null==b.i?null:Math.round(100*b.i)/100;null!=b&&(a.inview=b)}b=this.template.getPlayerSize();if(0<b.height&&0<b.width){b=[Math.round(b.width),Math.round(b.height)];var c=g.VE();1<c&&b.push(c);a.size=b.join(":")}}this.ub===this.sb&&this.Sb&&(a.clipid=
this.Sb.postId);return a};
g.k.Ki=function(a){1===a&&(this.Qb.tick("vr"),this.Oo||(this.Oo=dx(xA,this.mM,this)),uIa(this.ub),Sva(this.Qb,this.ub.getVideoData(),hJa(this)));var b=this.Y;(dF(b)&&b.u||g.FE(b))&&(this.Rd()||this.Ta.Na("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.ub===this.sb&&this.ub.Hp()!==a&&(this.ub.setLoop(a),this.Ta.ea("loopchange",a))};
g.k.getLoopVideo=function(){return this.ub.Hp()};
g.k.setLoopRange=function(a){var b=!1;!!this.Sb!==!!a?b=!0:this.Sb&&a&&(b=this.Sb.startTimeMs!==a.startTimeMs||this.Sb.endTimeMs!==a.endTimeMs||this.Sb.postId!==a.postId);b&&(this.sb.Qg.Xe("applooprange"),a?(b=new g.az(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.sb.addCueRange(b)):SX(this).clipConfig=void 0,this.Sb=a,this.Ta.Na("onLoopRangeChange",a||void 0),this.ub===this.sb&&(this.WA(),this.ub.Nq()))};
g.k.getLoopRange=function(){return this.Sb};
g.k.WA=function(){this.Sb&&this.ub===this.sb&&(WIa(this,this.sb.getCurrentTime())||XIa(this))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=KIa(this,a),this.sb.getPlaybackRate()!==a&&(this.sb.setPlaybackRate(a),b&&!this.Y.i&&g.zy("yt-player-playback-rate",a),this.Ta.Na("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return uM(this.Wc).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.AM(this):g.AM(this,a);if(!a)return 0;if(b){if(c&&this.Ic&&(b=this.Ic.kb/1E3,0!==b))return b;a=dY(this,a);return mY(this,a.getCurrentTime(),a)}c&&this.Ic?(b=this.Ic,a=a.getCurrentTime(),AS(b)?(b=HS(b,a))&&b.Qm&&(a-=b.Qm):(b=UBa(b,1E3*a))&&(a-=b.start/1E3)):a=a.getCurrentTime();return a};
g.k.As=function(){var a=g.AM(this,void 0);if(!a)return 0;a=dY(this,a);return mY(this,a.As(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c,d,e=this.getVideoData(),f=2===a&&e.enableServerStitchedDai;a=f?g.AM(this):g.AM(this,a);if(!a)return 0;if(this.N("enable_linear_player_handling")&&e.hasProgressBarBoundaries()){var h=Number(null===(c=e.progressBarStartPosition)||void 0===c?void 0:c.utcTimeMillis);e=Number(null===(d=e.progressBarEndPosition)||void 0===d?void 0:d.utcTimeMillis);if(!isNaN(h)&&!isNaN(e))return(e-h)/1E3}if(b)return b=cY(this,a),mY(this,b.getDuration(),b);f&&this.Ic?
(b=a.getCurrentTime(),b=(b=HS(this.Ic,1E3*b))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.k.getMinSeekableTime=function(a){a=g.AM(this,a);if(!a)return 0;a=cY(this,a);return mY(this,a.getMinSeekableTime(),a)};
g.k.getIngestionTime=function(a){var b=g.AM(this,a);return b?this.Rd(b)?(b=cY(this,b),b.getIngestionTime()-b.getCurrentTime()+this.getCurrentTime(a)):b.getIngestionTime():0};
g.k.xD=function(){this.template.xD();var a=this.J;a.element=this.template.element;var b=a.element,c;for(c in a.u)a.u.hasOwnProperty(c)&&(b[c]=a.u[c]);(a=Jx(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.zV)};
g.k.getDebugText=function(a){var b=this.sb.Kb(a);if(this.ub&&this.ub!==this.sb){for(var c=this.ub.Kb(a),d=g.r(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=yg("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.Cg("video-ads");f?(nJa(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?(nJa(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.ra&&(b["0sz"]=""+(0===+lg(this.ra.getSize())),b.op=this.ra.getStyle("opacity"),c=this.ra.En().y+this.ra.getSize().height,b.yof=""+(0>=+c),b.dis=this.ra.getStyle("display"));(a=a?(0,g.uW)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Ta.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.V().experiments.experimentIds.join(", ")},b=this.zb().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.appState?1:WX(this)?3:a&&(null===(b=this.Ic)||void 0===b?0:b.isAdPlaying(this.getCurrentTime()))?2:g.AM(this).getPlayerType()};
g.k.zb=function(a){return 3===this.getPresentingPlayerType()?uM(this.Wc).Ad:g.AM(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.GF=function(a){var b=this;switch(a.type){case "loadedmetadata":uA("fvb",this.Qb.timerName)||this.Qb.tick("fvb");vA("fvb",void 0,"video_to_ad");this.VA.start();g.jc(this.At,function(c){fJa(b,c.id,c.TX,c.SX,!1)});
this.At=[];break;case "loadstart":uA("gv",this.Qb.timerName)||this.Qb.tick("gv");vA("gv",void 0,"video_to_ad");break;case "progress":case "timeupdate":!uA("l2s",this.Qb.timerName)&&2<=hD(a.target.Tf())&&this.Qb.tick("l2s");break;case "playing":g.bF&&this.VA.start(),ZIa(this)&&(this.ub.Ca("hidden","1",!0),this.getVideoData().Db||(this.N("html5_new_elem_on_hidden")?(this.getVideoData().Db=1,this.zM(null),this.ub.playVideo()):ZX(this,"hidden",!0)))}};
g.k.onLoadProgress=function(a,b){this.Ta.Na("onLoadProgress",b)};
g.k.VV=function(){this.Ta.ea("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=dY(this,a);b=mY(this,a.getCurrentTime(),a);this.Ta.Na("onVideoProgress",b)};
g.k.onDompaused=function(){this.Ta.Na("onDompaused")};
g.k.onAutoplayBlocked=function(){this.Ta.Na("onAutoplayBlocked")};
g.k.mV=function(){this.Ta.ea("progresssync")};
g.k.OT=function(a){if(1===this.getPresentingPlayerType()){g.xH(a,1)&&!g.T(a.state,64)&&SX(this).isLivePlayback&&this.sb.isAtLiveHead()&&1<this.Ta.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.xH(a,2)){if(this.Sb&&this.Sb.endTimeMs>=1E3*(this.getDuration()-1)){XIa(this);return}RIa(this)}if(g.T(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ta.Na("onError",lPa[b.errorCode]||5);this.Ta.Na("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.FD});6048E5<(0,g.P)()-this.Y.kb&&this.Ta.Na("onReloadRequired")}b={};if(a.state.Ec()&&!g.KJ(a.state)&&!uA("pbresume","ad_to_video")&&uA("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);tA(b,"ad_to_video");sA("pbresume",void 0,"ad_to_video")}this.Ta.ea("applicationplayerstatechange",a)}};
g.k.WM=function(a){3!==this.getPresentingPlayerType()&&this.Ta.ea("presentingplayerstatechange",a)};
g.k.Kh=function(a){aY(this,LJ(a.state));g.T(a.state,1024)&&this.Ta.isMutedByMutedAutoplay()&&(mM(this,{muted:!1,volume:this.eg.volume},!1),kY(this,!1))};
g.k.dV=function(a){a.state.Ec()&&!g.KJ(a.state)&&(rwa(this.Wc),g.Mx(this.bF))};
g.k.JT=function(a,b,c){"newdata"===a&&TX(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId})};
g.k.yw=function(){this.Ta.Na("onPlaybackAudioChange",this.Ta.getAudioTrack().zc.name)};
g.k.Gw=function(a){var b=this.ub.getVideoData();a===b&&this.Ta.Na("onPlaybackQualityChange",a.B.video.quality)};
g.k.onVideoDataChange=function(a,b,c){this.ma("on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId);b===this.sb&&(this.Y.Oe=c.oauthToken);this.getVideoData().enableServerStitchedDai&&!this.Ic?this.Ic=new g.BS(this.Ta,this.Y,this.sb):!this.getVideoData().enableServerStitchedDai&&this.Ic&&(this.Ic.dispose(),this.Ic=null);if("newdata"===a)this.ma(),WM(this.Wc,2),this.Ta.ea("videoplayerreset",b);else{if(!this.ra)return;if("dataloaded"===a)if(this.ub===this.sb)if(KE(c.u,c.tI),
this.ma(),this.sb.getPlayerState().isError())this.ma();else{var d=WX(this);SX(this).isLoaded();d&&this.Vk(6);UIa(this);TIa(this)}else UIa(this);if(1===b.getPlayerType()&&(this.Y.Z&&mJa(this),this.getVideoData().isLivePlayback&&!this.Y.zl&&this.Le("html5.unsupportedlive","DEVICE_FALLBACK"),c.isLoaded())){if(c.Gb||c.PB||c.Uj||c.S.focEnabled||c.S.rmktEnabled||this.getVideoData().zl)d=this.getVideoData(),pY(this,"part2viewed",1,0x8000000000000),pY(this,"engagedview",Math.max(1,1E3*d.Zb),0x8000000000000),
d.isLivePlayback||(d=1E3*d.lengthSeconds,pY(this,"videoplaytime25",.25*d,d),pY(this,"videoplaytime50",.5*d,d),pY(this,"videoplaytime75",.75*d,d),pY(this,"videoplaytime100",d,0x8000000000000),pY(this,"conversionview",d,0x8000000000000));if(c.hasProgressBarBoundaries()){var e;d=Number(null===(e=this.getVideoData().progressBarEndPosition)||void 0===e?void 0:e.utcTimeMillis)/1E3;!isNaN(d)&&(e=this.getIngestionTime())&&(e-=this.getCurrentTime(),e=1E3*(d-e),d=this.HA.progressEndBoundary,(null===d||void 0===
d?void 0:d.start)!==e&&(d&&this.OA([d]),e=new g.az(e,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.sb.addCueRange(e),this.HA.progressEndBoundary=e))}}this.Ta.ea("videodatachange",a,c,b.getPlayerType())}this.Ta.Na("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.WA();if(b=c.ax){if(a=this.On,c=c.clientPlaybackNonce,a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=SJ();var f=void 0===f?{}:f;Object.values(FOa).includes(c)||(g.ky(new g.iw("createClientScreen() called with a non-page VE",
c)),c=83769);f.isHistoryNavigation||b.i.push({rootVe:c,key:f.key||""});b.D=[];b.K=[];f.TJ?Dsa(b,c,f):Csa(b,c,f);ACa(a)}}else ACa(this.On)};
g.k.Qr=function(){eY(this,null);this.Ta.Na("onPlaylistUpdate")};
g.k.eM=function(a){var b=a.getId(),c=SX(this);if("part2viewed"===b)c.CI&&g.wv(c.CI),c.PB&&vY(this,c.PB),c.Uj&&wY(this,c.Uj);else if("conversionview"===b)this.sb.Qt();else if("engagedview"===b&&c.Gb)if(this.V().N("html5_enable_cpn_macro_substitution_for_trv_discovery_ads")){var d={CPN:this.getVideoData().clientPlaybackNonce};g.wv(g.Tq(c.Gb,d))}else g.wv(c.Gb);c.II&&(d=a.getId(),d=it(c.II,{label:d}),g.wv(d));switch(b){case "videoplaytime25":c.zI&&vY(this,c.zI);c.Yq&&wY(this,c.Yq);c.MI&&g.wv(c.MI);break;
case "videoplaytime50":c.AI&&vY(this,c.AI);c.Zq&&wY(this,c.Zq);c.OI&&g.wv(c.OI);break;case "videoplaytime75":c.BI&&vY(this,c.BI);c.dr&&wY(this,c.dr);c.RI&&g.wv(c.RI);break;case "videoplaytime100":c.yI&&vY(this,c.yI),c.Xq&&wY(this,c.Xq),c.KI&&g.wv(c.KI)}(b=this.getVideoData().zl)&&dJa(b,a.getId())&&dJa(b,a.getId()+"gaia");this.sb.removeCueRange(a)};
g.k.lV=function(a){delete this.HA[a.getId()];this.sb.removeCueRange(a);var b;a:{a=this.getVideoData();var c,d,e,f,h,l,m,n,p,q,t,u,v,y=(null===(h=null===(f=null===(e=null===(d=null===(c=a.watchNextResponse)||void 0===c?void 0:c.contents)||void 0===d?void 0:d.singleColumnWatchNextResults)||void 0===e?void 0:e.autoplay)||void 0===f?void 0:f.autoplay)||void 0===h?void 0:h.sets)||(null===(q=null===(p=null===(n=null===(m=null===(l=a.watchNextResponse)||void 0===l?void 0:l.contents)||void 0===m?void 0:m.twoColumnWatchNextResults)||
void 0===n?void 0:n.autoplay)||void 0===p?void 0:p.autoplay)||void 0===q?void 0:q.sets);if(y)for(c=g.r(y),d=c.next();!d.done;d=c.next())if(d=d.value,d=d.autoplayVideo||(null===(t=null===(b=d.autoplayVideoRenderer)||void 0===b?void 0:b.autoplayEndpointRenderer)||void 0===t?void 0:t.endpoint),(null===(u=null===d||void 0===d?void 0:d.watchEndpoint)||void 0===u?void 0:u.videoId)===a.videoId&&(null===(v=null===d||void 0===d?void 0:d.watchEndpoint)||void 0===v?0:v.continuePlayback)){b=d;break a}b=null}t=
null===b||void 0===b?void 0:b.watchEndpoint;this.N("enable_linear_player_handling")&&t&&this.Ta.Na("onPlayVideo",{sessionData:{autonav:"1",itct:null===b||void 0===b?void 0:b.clickTrackingParams},videoId:t.videoId,watchEndpoint:t})};
g.k.Vk=function(a){a!==this.appState&&(this.ma(),2===a&&1===this.getPresentingPlayerType()&&(aY(this,-1),aY(this,5)),this.appState=a,this.Ta.ea("appstatechange",a))};
g.k.Le=function(a,b,c,d){this.sb.Hf(a,b,c,d)};
g.k.Xk=ba(7);g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.AM(this,a);if(!c)return!1;a=cY(this,c);c=dY(this,c);return a!==c?a.isAtLiveHead(mY(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Cn=function(){var a=g.AM(this,void 0);return a?cY(this,a).Cn():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.AM(this,d))2===this.appState&&iY(this),this.Rd(d)?this.Ic?this.Ic.seekTo(a,b,c):this.od.seekTo(a,b,c):d.seekTo(a,{sO:!b,tO:c,Td:"application"})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.nA=function(){this.Ta.Na("SEEK_COMPLETE")};
g.k.LV=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.T(a.getPlayerState(),512)||iY(this):this.Ta.Na("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Ta.ea("airplayactivechange");this.Y.N("html5_external_airplay_events")&&this.Ta.Na("onAirPlayActiveChange",this.Ta.qf())};
g.k.onAirPlayAvailabilityChange=function(){this.Ta.ea("airplayavailabilitychange");this.Y.N("html5_external_airplay_events")&&this.Ta.Na("onAirPlayAvailabilityChange",this.Ta.Vv())};
g.k.showAirplayPicker=function(){var a;null===(a=this.ub)||void 0===a?void 0:a.Io()};
g.k.nF=function(){this.Ta.ea("beginseeking")};
g.k.sF=function(){this.Ta.ea("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.AM(this,a))?cY(this,a).getVideoData().getStoryboardFormat():null};
g.k.og=function(a){return(a=g.AM(this,a))?cY(this,a).getVideoData().og():null};
g.k.Rd=function(a){if(a=a||this.ub){a=a.getVideoData();if(this.Ic)a=a===this.Ic.Da.getVideoData();else a:{var b=this.od;if(a===b.i.getVideoData()&&b.u.length)a=!0;else{b=g.r(b.u);for(var c=b.next();!c.done;c=b.next())if(a.Bc===c.value.Bc){a=!0;break a}a=!1}}if(a)return!0}return!1};
g.k.Lr=function(a,b,c,d,e,f){var h;this.ma();if(!this.Y.N("web_player_ssdai_add_to_timeline_logging_killswitch")){var l=this.getVideoData().enableServerStitchedDai;null===(h=this.ub)||void 0===h?void 0:h.Ca("sdai","app.attl."+(null!=this.Ic)+"_"+l+"_"+WX(this))}a=this.Ic?SBa(this.Ic,a,b,c,d,e,f):hCa(this.od,a,b,c,d,e);this.ma();return a};
g.k.Tv=function(a,b,c,d,e,f){var h;this.Y.N("web_player_ssdai_add_to_timeline_logging_killswitch")||(null===(h=this.ub)||void 0===h?void 0:h.Ca("sdai","app.attlr."+(null!=this.Ic)));this.Ic&&(SBa(this.Ic,a,b,c,d,e,f),this.ma());return""};
g.k.xo=function(a){var b;null===(b=this.Ic)||void 0===b?void 0:b.xo(a)};
g.k.pp=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;this.Ic?this.Y.N("web_player_ssdai_prevent_clearing_timeline_killswitch")&&KS(this.Ic,a,b):YS(this.od,a,b)};
g.k.Pt=function(a,b,c){if(this.Ic){var d=this.Ic,e=c;(c=d.vb.get(a))?(d.ma(),void 0===e&&(e=c.Xc),a=e,d.ma(),c.durationMs=b,c.Xc=a,d.Y.N("web_player_ssdai_prevent_updating_ad_cuerange_killswitch")&&VBa(d,c)):d.wj("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.od;e=null;for(var f=g.r(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.Bc===a){e=h;break}e?(d.ma(),void 0===c&&(c=e.Xc),nCa(d,e,b,c)):RS(d,"e.InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Rd();a=new RF(this.Y,a);d&&(a.Bc=d);c=void 0===c?Infinity:c;this.ma();b=b||this.ub.getPlayerType();var e;this.Y.N("html5_gapless_preloading")&&(e=lY(this,b,a,!0));e||(e=this.Jl(b,a));2===b&&this.sb&&(a=e.getVideoData(),this.sb.ut(a.clientPlaybackNonce,a.Nb||"",a.breakType||0,a.ue));this.Ky(e,c)};
g.k.Ky=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.AM(this);e&&(cY(this,e).zO=!0);IBa(this.Ut,a,b,c).then(function(){d.Ta.Na("onQueuedVideoLoaded")},function(){})};
g.k.Ns=function(){return this.Ut.Ns()};
g.k.clearQueue=function(){this.ma();this.Ut.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f,h=!1,l=new RF(this.Y,a),m=null!==(f=l.vb)&&void 0!==f?f:"";this.Qb.timerName=m;if(!this.N("web_player_load_video_context_killswitch")&&e){for(;l.zi.length&&l.zi[0].isExpired();)l.zi.shift();h=l.zi.length-1;h=0<h&&e.u(l.zi[h])&&e.u(l.zi[h-1]);l.zi.push(e)}c||(a&&EM(a)?(UE(this.Y)&&!this.hg&&(a.fetch=0),eY(this,a)):this.playlist&&eY(this,null),a&&this.setIsExternalPlaylist(a.external_list),UE(this.Y)&&!this.hg&&fY(this));a=this.Sn(l,
b,d);h&&this.Le("player.fatalexception","GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+l.zi.join()).replace(/[;:,]/g,"_"));return a};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;e=void 0===e?"":e;d=rE(a);if(this.Lw.get(b+"_"+d+"_"+e))this.ma();else{a=new RF(this.Y,a);e&&(a.Bc=e);e=b+"_"+a.videoId+"_"+a.Bc;this.ma();if(d=this.ub){d=this.ub.getPlayerType();var f=this.ub.getVideoData().videoId,h=this.ub.getVideoData().Bc;d=e===d+"_"+f+"_"+h}d?(cS(this.ub,!0),a.dispose()):(a.Hd=!0,a=this.Jl(b,a),1===b&&XE(this.Y)||cS(a,!0),this.Lw.set(e,a,c||3600))}};
g.k.Ru=function(a){if(this.N("html5_skip_setPresenting"))$X(this,a);else{var b=a.getPlayerType();a!==g.AM(this,b)&&(1===a.getPlayerType()?(a.getVideoData().autonavState=this.sb.getVideoData().autonavState,LIa(this,a)):(b=g.AM(this,b))&&b.dispose(),this.ub.getPlayerType()===a.getPlayerType()?$X(this,a):QIa(this,a))}};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Wc;a=a.J.V().showMiniplayerUiWhenMinimized?a.Gd.get("miniplayer"):void 0;a&&(this.Je()?a.load():a.unload());this.Ta.ea("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Wc;a=a.J.V().showInlinePreviewUi?a.Gd.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ta.Na("onInlinePreviewModeChange"))};
g.k.Dt=function(a){var b=this.Y.N("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.Y.Li&&this.Y.N("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.ND&&b?this.ND.start():this.qJ():this.visibility.Dt(a)};
g.k.qJ=function(){var a,b=null===(a=this.ra)||void 0===a?void 0:a.Me();b&&Ix(b).catch(function(c){return g.ky(c)})};
g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.k.IV=function(){"picture-in-picture"===this.ra.Me().webkitPresentationMode?this.Dt(!0):this.Dt(!1)};
g.k.togglePictureInPicture=function(){var a=g.AM(this);a&&a.togglePictureInPicture()};
g.k.Sn=function(a,b,c){b=void 0===b?1:b;this.ma();uA("_start",this.Qb.timerName)||(pA("p",void 0,this.Qb.timerName),this.Qb.info("srt",0));var d=lY(this,b,a,!1);d?a.dispose():(d=this.Jl(b,a,c),this.N("html5_onesie")&&yX(d)&&cS(d),this.VA.stop(),this.cancelPlayback(4,b),$X(this,d),this.Ru(d));d===this.sb&&(this.Y.Oe=a.oauthToken);if(!yX(d))return!1;if(d===this.sb)return this.Vk(1),iY(this);GX(d);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(a&&EM(a))if(this.Wp=!0,eY(this,a),(a=g.FM(this.playlist))&&a.isValid())rY(this,a,b);else this.playlist.onReady(function(){hY(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.Qr();var d=new RF(this.Y,a);!g.xE(this.Y)||this.Y.K||d.isAd()||d.Nb||!this.Y.N("embeds_enable_iframe_apis_through_oneplatform")?rY(this,d,b):fwa(d,a?a:{}).then(function(e){rY(c,e,b)})}};
g.k.Oj=function(a,b,c,d,e,f){if(!a&&!c)throw Error("Playback source is invalid");if(zE(this.Y)||g.YE(this.Y))return b=b||{},b.lact=uv(),b.vis=this.Ta.getVisibilityState(),this.Ta.Na("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;b=this.Qb;b.i&&(e=b.i,e.i={},e.Uu={});b.u=!1;this.Qb.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0};
g.k.cuePlaylist=function(a,b,c,d){this.Wp=!0;eJa(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Wp=!1;eJa(this,a,b,c,d)};
g.k.wv=function(){if(this.Ta.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;UE(this.Y)&&!this.hg&&fY(this);return!(!this.playlist||!this.playlist.hasNext())};
g.k.Cp=ba(1);
g.k.nextVideo=function(a,b){var c=this.sb.getVideoData().suggestions;g.zM(this.Ta)&&c&&0<c.length?(a=c[0],this.Oj(a.videoId,b?a.fv:a.sessionData,a.playlistId,b,void 0,a.hJ||void 0)):this.hg?this.Ta.Na("onPlaylistNext"):3===this.getPresentingPlayerType()?uM(this.Wc).nextVideo():this.playlist&&(UE(this.Y)&&!this.Ta.isFullscreen()?oY(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&GM(this.playlist,Tva(this.playlist)),this.playlist.loaded?(a=b&&this.Y.N("html5_player_autonav_logging"),this.Sn(g.FM(this.playlist,
void 0,b,a),1)):this.Wp=!1))};
g.k.previousVideo=function(a){this.hg?this.Ta.Na("onPlaylistPrevious"):3===this.getPresentingPlayerType()?uM(this.Wc).EA():this.playlist&&(UE(this.Y)&&!this.Ta.isFullscreen()?oY(this,"yt.www.watch.lists.prev"):(this.playlist.Hk(a)&&GM(this.playlist,Uva(this.playlist)),this.playlist.loaded?this.Sn(g.FM(this.playlist),1):this.Wp=!1))};
g.k.playVideoAt=function(a){this.hg?this.Ta.Na("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Sn(g.FM(this.playlist,a),1):this.Wp=!1,GM(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.Iv=ba(11);g.k.HT=function(a){this.Ta.Na("onCueRangeEnter",a.getId())};
g.k.IT=function(a){this.Ta.Na("onCueRangeExit",a.getId())};
g.k.Iu=function(a,b,c){var d=g.AM(this,b);d&&(d.Iu(a,c),b&&this.getPresentingPlayerType()!==b||YX(this,"cuerangesadded",a))};
g.k.OA=function(a,b){var c=g.AM(this,b);c&&(c.OA(a),b&&this.getPresentingPlayerType()!==b||YX(this,"cuerangesremoved",a))};
g.k.NT=function(){var a=this;this.getPresentingPlayerType();this.Oo||(this.Oo=dx(xA,this.mM,this));Sva(this.Qb,this.ub.getVideoData(),hJa(this));UX(this)&&this.Y.i&&"embedded"===vG(SX(this))&&this.GL&&.01>Math.random()&&g.dw("autoplayTriggered",{intentional:this.eL});this.GL=!1;this.Ta.Na("onPlaybackStartExternal");this.Y.N("mweb_client_log_screen_associated");(function(){var c=g.cy(a.HN||(a.Je()?3:0));if(c){var d={cpn:a.getVideoData().clientPlaybackNonce,csn:c};if(a.Y.N("web_playback_associated_ve")&&
a.getVideoData().Za){var e=g.Zx(a.getVideoData().Za);g.py(c,e,void 0);d.playbackVe=e.getAsJson()}a.Y.N("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo);c={};a.N("web_playback_associated_log_ctt")&&a.getVideoData().X&&(c.cttAuthInfo={token:a.getVideoData().X,videoId:a.getVideoData().videoId});g.dw("playbackAssociated",d,c)}})();
var b={};!this.N("web_player_csi_ctt_killswitch")&&this.getVideoData().X&&(b.cttAuthInfo={token:this.getVideoData().X,videoId:this.getVideoData().videoId});qA("player_att",b);this.getVideoData().botguardData&&(g.WE(this.Y)||"MWEB"===this.Y.deviceParams.c?jv(lv(),function(){jY(a)}):jY(this));
this.WA()};
g.k.wF=function(){this.Ta.ea("internalAbandon");this.N("html5_ad_module_cleanup_killswitch")||nY(this)};
g.k.mM=function(a){a=a.i;!isNaN(a)&&0<a&&this.sb&&this.sb.Sw(a)};
g.k.onApiChange=function(){this.Y.u&&this.ub?this.Ta.Na("onApiChange",this.ub.getPlayerType()):this.Ta.Na("onApiChange")};
g.k.MU=function(){var a=this.ra;a={volume:g.dg(Math.floor(100*a.getVolume()),0,100),muted:a.iz()};a.muted||kY(this,!1);this.eg=g.Je(a);this.Ta.Na("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Ta.Na("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=tY(this);this.Oi(a?1:0);kJa(this,!!a)};
g.k.Oi=function(a){var b=!!a,c=!!this.ws()!==b;this.visibility.Oi(a);this.template.Oi(b);this.N("html5_media_fullscreen")&&!b&&this.ra&&tY(this)===this.ra.Me()&&this.ra.ov();this.template.resize();c&&this.Qb.tick("fsc");c&&(this.Ta.ea("fullscreentoggled",b),a=SX(this),b={fullscreen:b,videoId:a.CC||a.videoId,time:this.getCurrentTime()},this.Ta.getPlaylistId()&&(b.listId=this.Ta.getPlaylistId()),this.Ta.Na("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.ws=function(){return this.visibility.ws()};
g.k.zV=function(){this.ub&&(0!==this.ws()&&1!==this.ws()||this.Oi(tY(this)?1:0),this.Y.Li&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.ra&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.ra.ov())};
g.k.EU=function(a){3!==this.getPresentingPlayerType()&&this.Ta.ea("liveviewshift",a)};
g.k.playVideo=function(a){this.ma();if(a=g.AM(this,a))2===this.appState?iY(this):(null!=this.Zi&&this.Zi.yb&&this.Zi.start(),g.T(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.k.pauseVideo=function(a){(a=g.AM(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){this.ma();var a=this.sb.getVideoData(),b=new RF(this.Y,{video_id:a.CC||a.videoId,oauth_token:a.oauthToken});b.Z=g.Je(a.Z);this.cancelPlayback(6);rY(this,b,1);null!=this.Zi&&this.Zi.stop()};
g.k.cancelPlayback=function(a,b){this.ma();cx(this.Oo);this.Oo=0;var c=g.AM(this,b);c?(this.Y.N("html5_high_res_logging")&&c.Ca("canclpb","r."+a),1===this.appState||2===this.appState?this.ma():(c===this.ub&&(this.ma(),WM(this.Wc,a)),1===b&&(this.Y.N("html5_stop_video_in_cancel_playback")&&c.stopVideo(),nY(this)),c.wm(),YX(this,"cuerangesremoved",c.Rl()),c.Qg.reset(),this.Ut&&c.isGapless()&&(c.Bg(!0),c.setMediaElement(this.ra)))):this.ma()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.AM(this,b))&&this.Y.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Wg=function(a){var b=g.AM(this,void 0);return b&&this.Y.enabledEngageTypes.has(a.toString())?b.Wg(a):null};
g.k.updatePlaylist=function(){UE(this.Y)?fY(this):g.xE(this.Y)&&gY(this);this.Ta.Na("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.RN=a;this.FE=b;this.Ta.ea("sizestylechange",a,b);this.template.resize()};
g.k.isWidescreen=function(){return this.FE};
g.k.Je=function(){return this.visibility.Je()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.Ls=function(){return this.visibility.Ls()};
g.k.Js=function(){return this.visibility.Js()};
g.k.DE=function(){return this.RN};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return uM(this.Wc).getAdState();if(!this.Rd()){var a=XM(this.tb());if(a)return a.getAdState()}return-1};
g.k.yV=function(a){var b=this.template.getVideoContentRect();cm(this.zL,b)||(this.zL=b,this.ub&&EX(this.ub),this.sb&&this.sb!==this.ub&&EX(this.sb),1===this.ws()&&this.Hw&&kJa(this,!0));this.LE&&g.kg(this.LE,a)||(this.Ta.ea("appresize",a),this.LE=a)};
g.k.sf=function(){return this.Ta.sf()};
g.k.QV=function(){2===this.getPresentingPlayerType()&&this.od.isManifestless()&&!this.N("web_player_manifestless_ad_signature_expiration_killswitch")?mCa(this.od):(this.Ic&&(KS(this.Ic),nY(this)),ZX(this,"signature",void 0,!0))};
g.k.zM=function(){this.Bg();XX(this)};
g.k.xV=function(a){rS(a,this.ra.Ip())};
g.k.SU=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Ta.Na("onPlayerRequestAuthFailed")};
g.k.Aw=function(){this.Ta.Na("CONNECTION_ISSUE")};
g.k.Dw=function(a){this.Ta.ea("heartbeatparams",a)};
g.k.TA=function(a){this.Ta.Na("onAutonavChangeRequest",1!==a)};
g.k.kd=function(){return this.ra};
g.k.setBlackout=function(a){this.Y.Eb=a;this.ub&&(this.ub.Nq(),this.Y.Z&&mJa(this))};
g.k.setAccountLinkState=function(a){var b=g.AM(this);b&&(b.getVideoData().HI=a,b.Nq())};
g.k.updateAccountLinkingConfig=function(a){var b=g.AM(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Ta.ea("videodatachange","dataupdated",c,b.getPlayerType())}};
g.k.UU=function(){var a=g.AM(this);if(a){var b=!this.Ta.Yv();(a.NK=b)||a.fq.stop();if(a.videoData.i)if(b)a.videoData.i.resume();else{var c=a.videoData.i;c.C&&c.C.stop()}a.Y.N("html5_suspend_loader")&&a.Ya&&(b?a.Ya.resume():MX(a,!0));a.Y.N("html5_fludd_suspend")&&(g.T(a.playerState,2)||b?g.T(a.playerState,512)&&b&&a.Ub(FJ(a.playerState,512)):a.Ub(EJ(a.playerState,512)));a=a.Rb;a.qoe&&(a=a.qoe,g.oW(a,g.vS(a.i),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Ta.Na("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Ta.Na("onDrmOutputRestricted")};
g.k.VC=function(){this.N("html5_skip_empty_load")&&(fPa=!0);iPa=this.N("html5_ios_force_seek_to_zero_on_stop");gPa=this.N("html5_ios7_force_play_on_stall");hPa=this.N("html5_ios4_seek_above_zero");this.N("html5_mediastream_applies_timestamp_offset")&&(eU=!0);this.N("html5_dont_override_default_sample_desc_index")&&(hma=!0);if(this.N("html5_androidtv_quic")){var a=window;"h5vcc"in a&&"settings"in a.h5vcc&&a.h5vcc.settings.set("QUIC",1)}Error.stackTraceLimit=25;var b=g.S(this.Y.experiments,"html5_idle_rate_limit_ms");
b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}})};
g.k.SE=function(){this.eL=!0};
g.k.xa=function(){this.Wc.dispose();this.od.dispose();this.Ic&&this.Ic.dispose();this.sb.dispose();this.Bg();(0,g.ge)(xe(this.Dx),this.playlist);cx(this.Oo);this.Oo=0;g.E.prototype.xa.call(this)};
g.k.ma=function(){};
g.k.N=function(a){return this.Y.N(a)};
g.k.cB=function(){return this.jx};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.HN=a};
g.k.seekToChapterWithAnimation=function(a){var b,c,d=null===(b=nM(this.tb()))||void 0===b?void 0:b.xv(),e=null===(c=this.getVideoData())||void 0===c?void 0:c.wl;if(this.N("web_player_seek_chapters_by_shortcut")&&e&&d instanceof g.yN&&a<e.length&&0<=a){var f=1E3*this.getCurrentTime()<e[a].startTime?1:-1;e=g.r(e);for(var h=e.next();!h.done;h=e.next())if(h=h.value,h.index===a){d.xN(f,h.title);uY(this,h.startTime/1E3);break}}};
g.k.downloadVideo=function(a,b){var c=this,d;return g.A(function(e){if(1==e.i)return c.Di&&c.N("woffle_orchestration")?g.x(e,nBa(c.Di,[a],b),2):e.return(Promise.reject());d=e.u;return e.return(d[0])})};
g.k.pauseVideoDownload=function(){var a=this;return g.A(function(b){a.Di&&a.N("woffle_pause_video_download");return b.return(Promise.reject())})};
g.k.resumeVideoDownload=function(){var a=this;return g.A(function(b){a.Di&&a.N("woffle_pause_video_download");return b.return(Promise.reject())})};
g.k.refreshAllVideos=function(){return this.Di&&this.N("woffle_orchestration")?gS(this.Di,14400):Promise.reject()};
g.k.deleteVideos=function(a){return this.Di&&this.N("woffle_orchestration")?this.Di.deleteVideos(a):Promise.reject()};
g.k.deleteAllVideos=function(){return this.Di&&this.N("woffle_orchestration")?this.Di.deleteAllVideos():Promise.reject()};
g.k.isOrchestrationLeader=function(){return this.Di&&this.N("woffle_orchestration")?this.Di.isOrchestrationLeader():!1};
g.k.getStatsForNerds=function(){var a=this.Ta,b=g.AM(this),c=a.getVideoData(),d=a.kd(),e=d.Me(),f=b.Mv(),h=b.AG,l=8*gT(h,"bandwidth")/1024,m=gT(h,"networkactivity")/1024,n=gT(h,"bufferhealth");if(b.Kd){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.Kd.i.lf()+"/"+IA(b.zs());p+="/"+b.Kd.lf()}else p="";var q=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),u=dD(d.Tf(),",",3),v="";if(zG(c)){c.enableServerStitchedDai&&(v+="SS");v+="DAI, ";a:{if(b.od){var y=b.od.Kl;if(0<y){y=
"AD"+y+", ";break a}}y=""}y&&(v+=y)}if(c.fetchType){switch(c.fetchType){case "onesie":y="o";break;case "gp":y="gp";break;default:y="gvi"}v+="vd:"+y+", "}v+="s:"+q+" t:"+t+" b:"+u+" ";d.xu()&&(v+="S");d.il()&&(v+="P");d.Nk()&&(v+="E");a.isOrchestrationLeader()&&(v+=" L");(d=b.Ev())&&(v+=" l:"+d.toFixed());d=b.getCurrentTime();q=c.IC;d&&d>q.start&&d<q.end&&(v+=" as");d=v;v=g.VE();q=g.xM(a).ES;t=c.C&&!c.C.i?"display:none":"";if((u=c.clientPlaybackNonce)&&16==u.length){y=0;for(var z="",C=0;10>C;C++)if(y=
(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(u.charAt(C)),4==C%5){for(var G="",F=0;6>F;F++)G="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+G,y>>=5;z+=G}u=z.substr(0,4)+" "+z.substr(4,4)+" "+z.substr(8,4)}else u="";l={video_id_and_cpn:c.videoId+" / "+u,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",drm_style:p?"":"display:none",drm:p,debug_info:d,bandwidth_style:t,network_activity_style:t,network_activity_bytes:m.toFixed(0)+
" KB",shader_info:q,shader_info_style:q?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1<v?"*"+v.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=Qqa(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.ue.toFixed(1);isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=e.videoWidth+"x"+e.videoHeight;if(a=c.B)if(e=a.video)f=e.fps,1<f&&(l.resolution+=
"@"+f),(f=g.IX(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=rCa(a),!c.K||a.audio&&a.video?a.audio&&a.audio.itag&&(l.codecs+=" / "+a.audio.itag+"A"):l.codecs+=" / "+rCa(c.K),e.u||e.primaries?(a=e.u||"unknown","smpte2084"===a?a+=" (PQ)":"arib-std-b67"===a&&(a+=" (HLG)"),l.color=a+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style="display:none";e=c.isLivePlayback;a=c.Ze;l.live_mode_style=e||a?"":"display:none";
l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(YF(c)?" Manifestless":"");else if(e){a=gT(h,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=YF(c)?"Manifestless, ":"";c.ej&&(e+="Windowed, ");f="Uncertain";if(0<=a&&120>a)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":f="Optimized for Normal Latency";break;case "LOW":f="Optimized for Low Latency";break;case "ULTRALOW":f="Optimized for Ultra Low Latency";break;default:f="Unknown Latency Setting"}else f=
c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=f;(a=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+a.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=fT(h,"bandwidth");l.network_activity_samples=fT(h,"networkactivity");l.live_latency_samples=fT(h,"livelatency");l.buffer_health_samples=fT(h,"bufferhealth");c.N("woffle_orchestration")&&
(b=g.CG(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";dG(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20211110_01_RC01",l.release_style=""):l.release_style="display:none";return l};
g.k.getVideoUrl=function(a,b,c,d,e){return this.Sb&&this.Sb.postId?(a=this.Y.getVideoUrl(a),a=Ji(a,"v"),a.replace("/watch","/clip/"+this.Sb.postId)):this.Y.getVideoUrl(a,b,c,d,e)};
var s3={};g.Ga("yt.player.Application.create",g.VX.create,void 0);g.Ga("yt.player.Application.createAlternate",g.VX.create,void 0);hka(fy(),{jm:[{jw:/Unable to load player module/,weight:20},{jw:/Failed to fetch/,weight:500},{jw:/XHR API fetch failed/,weight:10},{jw:/JSON parsing failed after XHR fetch/,weight:10},{jw:/Retrying OnePlatform request/,weight:10}]});var EPa=g.Ha("ytcsi.tick");EPa&&EPa("pe");var FPa={A9:"replaceUrlMacros",b4:"isExternalShelfAllowedFor",i8:"onAboutThisAdPopupClosed"};xY.prototype.Dk=function(){return"adLifecycleCommand"};
xY.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":(0,g.ih)(function(){b.controller.jn()});
break;case "END_LINEAR_AD_PLACEMENT":(0,g.ih)(function(){b.controller.yk()});
break;case "FILL_ABOVE_FEED_SLOT":(0,g.ih)(function(){a.elementId&&b.controller.Py(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":(0,g.ih)(function(){b.controller.Ay()})}};
xY.prototype.Xl=function(a){this.handle(a)};yY.prototype.Dk=function(){return"clearCueRangesCommand"};
yY.prototype.handle=function(){var a=this.rD();(0,g.ih)(function(){a.Ff(Array.from(a.bp))})};
yY.prototype.Xl=function(a){this.handle(a)};zY.prototype.Dk=function(){return"muteAdEndpoint"};
zY.prototype.handle=function(a){pJa(this,a)};
zY.prototype.Xl=function(a,b){pJa(this,a,b)};AY.prototype.Dk=function(){return"openPopupAction"};
AY.prototype.handle=function(){};
AY.prototype.Xl=function(a){this.handle(a)};BY.prototype.Dk=function(){return"pingingEndpoint"};
BY.prototype.handle=function(){};
BY.prototype.Xl=function(a){this.handle(a)};CY.prototype.Dk=function(){return"urlEndpoint"};
CY.prototype.handle=function(a,b){b=g.Tq(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.HL(b,void 0,void 0,a)};
CY.prototype.Xl=function(){R("Trying to handle UrlEndpoint with no macro in controlflow")};DY.prototype.Dk=function(){return"adPingingEndpoint"};
DY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.ep.send(a,b,c)};
DY.prototype.Xl=function(a,b){hLa(this.Ua.get(),a,b,void 0)};EY.prototype.Dk=function(){return"changeEngagementPanelVisibilityAction"};
EY.prototype.handle=function(a){this.J.Na("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
EY.prototype.Xl=function(a){this.handle(a)};FY.prototype.Dk=function(){return"loggingUrls"};
FY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.Mh.send(d.baseUrl,b,c,d.headers)};
FY.prototype.Xl=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,hLa(this.Ua.get(),c.baseUrl,b,c.headers)};g.w(rJa,g.E);var EJa=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 NJa=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 vJa=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"]]),tJa=new Map([["normal",{xt:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Ht:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{xt:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Ht:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{xt:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Ht:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{xt:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Ht:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{xt:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Ht:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{xt:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Ht:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}]]);g.w(MY,g.E);g.k=MY.prototype;g.k.dE=function(a,b){return this.i.dE(a,b)};
g.k.Jh=function(a,b){IZ(this.u,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.r(this.Id),d=c.next();!d.done;d=c.next())d.value.Jh(a,b)};
g.k.cf=function(a){if(QY(this.i,a)){nJ(this.u,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.i.cf(a);for(var b=g.r(this.Id),c=b.next();!c.done;c=b.next())c.value.cf(a);AJa(this,a)}};
g.k.df=function(a){if(QY(this.i,a)){nJ(this.u,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.i.df(a);for(var b=g.r(this.Id),c=b.next();!c.done;c=b.next())c.value.df(a);QY(this.i,a)&&RY(this.i,a).D&&OY(this,a,!1)}};
g.k.oA=function(a){nJ(this.u,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);QY(this.i,a)&&(this.i.oA(a),OY(this,a,!1))};
g.k.Kc=function(a,b){if(QY(this.i,a)){SY(this.u,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.r(this.Id),d=c.next();!d.done;d=c.next())d.value.Kc(a,b)}};
g.k.Sc=function(a,b,c){if(QY(this.i,a)){SY(this.u,uJa(c),a,b);this.i.Sc(a,b);for(var d=g.r(this.Id),e=d.next();!e.done;e=d.next())e.value.Sc(a,b,c);(c=eZ(this.i,a))&&b.layoutId===c.layoutId&&KJa(this,a,!1)}};
g.k.wf=function(a,b,c){R(c,a,b,void 0,c.fp);OY(this,a,!0)};
g.k.xa=function(){var a=MJa(this.i);a=g.r(a);for(var b=a.next();!b.done;b=a.next())OY(this,b.value,!1);g.E.prototype.xa.call(this)};LJa.prototype.isActive=function(){switch(this.i){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.w(TY,Va);g.w(bZ,Va);g.w(hZ,g.E);g.k=hZ.prototype;g.k.dE=function(a,b){b=dZ(this,a+"_"+b);a=[];b=g.r(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.kh=function(a){a=RY(this,a);"not_scheduled"!==a.i&&fZ(a.slot,a.i,"onSlotScheduled");a.i="scheduled"};
g.k.uv=function(a){a=RY(this,a);a.C="fill_requested";a.K.uv()};
g.k.cf=function(a){a=RY(this,a);"enter_requested"!==a.i&&fZ(a.slot,a.i,"onSlotEntered");a.i="entered"};
g.k.oA=function(a){RY(this,a).C="fill_canceled"};
g.k.df=function(a){a=RY(this,a);"exit_requested"!==a.i&&fZ(a.slot,a.i,"onSlotExited");a.i="scheduled"};
g.k.Sc=function(a,b){a=RY(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.i&&fZ(a.slot,a.i,"onLayoutExited"),a.i="entered")};g.w(lZ,g.E);lZ.prototype.B=function(){return this.u};g.w(mZ,g.E);mZ.prototype.get=function(){this.isDisposed()&&R("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.i});this.i||(this.i=this.u());return this.i};g.w(HZ,g.E);g.w(KZ,g.E);KZ.prototype.onCueRangeEnter=function(){};
KZ.prototype.onCueRangeExit=function(a){var b=this,c=this.i.get(a);c&&(this.i.delete(a),this.u.get().removeCueRange(a),Jy(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=Qy(d.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign(Object.assign({},c),{slotId:d,Vb:c.Vb?XKa(c.slotId,d,c.Vb):void 0,uc:YKa(c.slotId,d,c.uc),tc:YKa(c.slotId,d,c.tc)})]},c.slotId))};
KZ.prototype.ih=function(){for(var a=g.r(this.i.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.u.get().removeCueRange(b);this.i.clear()};
KZ.prototype.Cj=function(){};g.w(LZ,g.E);g.k=LZ.prototype;g.k.kh=function(){};
g.k.Ji=function(){};
g.k.cf=function(){};
g.k.Ii=function(){};
g.k.df=function(){};
g.k.Fj=function(){};
g.k.Gj=function(){};
g.k.Gi=function(a,b){this.i.has(a)||this.i.set(a,new Set);this.i.get(a).add(b)};
g.k.Hi=function(a,b){this.Qh.has(a)&&this.Qh.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.Kc=function(a,b){this.Qh.set(a,b)};
g.k.Sc=function(a){this.Qh.delete(a)};
g.k.Jh=function(){};WZ.prototype.clone=function(a){var b=this;return new WZ(function(){return b.triggerId},a)};XZ.prototype.clone=function(a){var b=this;return new XZ(function(){return b.triggerId},a)};YZ.prototype.clone=function(a){var b=this;return new YZ(function(){return b.triggerId},a)};ZZ.prototype.clone=function(a){var b=this;return new ZZ(function(){return b.triggerId},a)};$Z.prototype.clone=function(a){var b=this;return new $Z(function(){return b.triggerId},a)};g.w(c_,g.E);c_.prototype.logEvent=function(a){IZ(this,a)};g.w(d_,c_);e_.prototype.clear=function(){this.i.clear()};g.w(f_,g.E);g.k=f_.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.ih=function(a,b,c,d,e,f,h){var l;if(""===a)R("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.J.V().N("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.i||c){this.i=a;this.Ja.get().ih(a,b,c,d,e,f,h);this.C.get().ih(a,b,c,d,e,f,h);null===(l=this.u)||void 0===l?void 0:l.get().ih(a,b,c,d,e,f,h);this.B.ih(a,b,c,d,e,f,h);for(var m=g.r(this.listeners),n=m.next();!n.done;n=m.next())n.value.ih(a,b,c,d,e,f,h)}};
g.k.wF=function(){this.i&&this.Cj(this.i)};
g.k.Cj=function(a){this.i=void 0;for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Cj(a)};g.w(g_,g.E);g_.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?3: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 dLa(a,b,c,d,f),this.i.set(a.id,{Fd:a,listener:e,Nj:h}),this.J.Dd([a],h))};
g_.prototype.removeCueRange=function(a){var b=this.i.get(a);b?(this.J.Ff([b.Fd],b.Nj),this.i.delete(a)):R("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
g_.prototype.onCueRangeEnter=function(a){if(this.i.has(a.id))this.i.get(a.id).listener.onCueRangeEnter(a.id)};
g_.prototype.onCueRangeExit=function(a){if(this.i.has(a.id))this.i.get(a.id).listener.onCueRangeExit(a.id)};
g.w(dLa,g.az);h_.prototype.Ki=function(a){this.J.Ki(a)};
h_.prototype.Na=function(a){this.J.Na.apply(this.J,[a].concat(g.la(g.Ba.apply(1,arguments))))};g.k=l_.prototype;g.k.Ye=function(a,b){if(!this.i.has(a))return{};if("seek"===b)return b=this.J.V().N("html5_dai_enable_active_view_creating_completed_adblock"),Rq(a,b),{};b=sra(b);if(null===b||this.J.V().N("enable_server_stitched_dai")&&2!==this.J.getPresentingPlayerType(!0))return{};var c=this.J.Jc();c=c&&(this.J.V().N("enable_server_stitched_dai")||2===c.getPlayerType())&&sH(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Ja.get().isFullscreen()};return Qq(b,a,c)};
g.k.ww=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.ww()};
g.k.uw=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.uw()};
g.k.xw=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.xw()};
g.k.pw=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.pw()};
g.k.qw=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.qw()};g.w(p_,fH);p_.prototype.mf=function(){return this.u()};
p_.prototype.i=function(){return this.B()};q_.prototype.Wg=function(){var a=this.J.Jc();return a&&(a=a.Wg(1))?a:null};
q_.prototype.Ai=function(a,b){this.J.getVideoData(1).Ca(a,b)};g.w(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.ih=function(){this.PC.clear();this.NE=null;this.J.V().N("html5_clear_timeline_storage_killswitch")||this.i.get().clear()};
g.k.Cj=function(){};
g.k.pW=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.Ai("ads_ssm_vdc_s","pt."+c+";dvt."+a);(j_(this.Oa.get())||this.Oa.get().J.V().N("html5_debug_client_stitched"))&&"dataloaded"!==a||nLa(this,b,c)};
g.k.MV=function(a,b){void 0!==a&&(this.NE=a,void 0===b?R("Expected ad video start time on SS video changed"):this.PC.set(a,b));b=this.J.getPresentingPlayerType(!0);var c=this.J.getVideoData(b);this.J.getVideoData(1).Ca("ads_ssvc","pt."+b+";cpn."+(null===c||void 0===c?void 0:c.clientPlaybackNonce));c?nLa(this,c,b):R("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.xa=function(){this.listeners.length=0;this.wp=null;g.E.prototype.xa.call(this)};
g.k.Ai=function(a,b){this.J.getVideoData(1).Ca(a,b)};g.w(w_,g.E);g.k=w_.prototype;g.k.ih=function(){var a=this;this.zp=mf(function(){a.J.isDisposed()||a.J.Od("ad",1)})};
g.k.Cj=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.playVideo=function(){this.J.playVideo()};
g.k.pauseVideo=function(){this.J.pauseVideo()};
g.k.resumeVideo=function(a){this.em(a)&&this.J.playVideo()};
g.k.em=function(a){return 2===this.J.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b){var c=this.i.get().NE;return 2!==a||b||null===c?this.J.getCurrentTime(a,b):x_(this,c)};
g.k.getVolume=function(){return this.J.getVolume()};
g.k.isMuted=function(){return this.J.isMuted()};
g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.J.getPlayerState(a)};
g.k.isFullscreen=function(){return this.J.isFullscreen()};
g.k.isAtLiveHead=function(){return this.J.isAtLiveHead()};
g.k.nV=function(){if(2===this.J.getPresentingPlayerType(!0))for(var a=this.getCurrentTimeSec(2,!1),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ei(a)};
g.k.eV=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ej(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.r(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.xg=function(){for(var a=this.J.Je(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.xg(a)};
g.k.xb=function(){for(var a=this.J.eb().pg(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Aj(a)};g.w(qLa,g.E);A_.prototype.executeCommand=function(a,b){oK(this.i(),a,b)};
A_.prototype.yd=function(a,b){xta(this.i(),a,b)};B_.prototype.addListener=function(a){this.listeners.add(a)};
B_.prototype.removeListener=function(a){this.listeners.delete(a)};D_.prototype.uv=function(){var a=this;tLa(this.i,function(){var b=W(a.slot.Ia,"metadata_type_ad_break_request_data");return a.u.get().fetch({FO:b.getAdBreakUrl,QJ:new g.az(b.tN,b.sN),Vu:W(a.slot.Ia,"metadata_type_cue_point")})},function(){vLa(a)},function(b){b=b.Cl;
2<=b.length&&R("Unexpected ad placement renderers length",a.slot,null,{length:b.length});b.some(function(c){var d,e,f,h;return!(null===(f=null===(e=null===(d=c.renderer)||void 0===d?void 0:d.linearAdSequenceRenderer)||void 0===e?void 0:e.linearAds)||void 0===f||!f.length)||!(null===(h=c.renderer)||void 0===h||!h.instreamVideoAdRenderer)})||vLa(a)})};
D_.prototype.eD=function(){uLa(this.i)};E_.prototype.uv=function(){var a=this;tLa(this.i,function(){var b=W(a.slot.Ia,"metadata_type_ad_break_request_data");return a.u.get().fetch({FO:b.getAdBreakUrl,QJ:new g.az(b.tN,b.sN)})})};
E_.prototype.eD=function(){uLa(this.i)};F_.prototype.uv=function(){BJa(this.callback,this.slot,W(this.slot.Ia,"metadata_type_fulfilled_layout"))};
F_.prototype.eD=function(){PY(this.callback,this.slot,new bZ("Got CancelSlotFulfilling request for "+this.slot.qb+" in DirectFulfillmentAdapter."))};H_.prototype.Pe=function(a,b){return G_(b,{Pd:["metadata_type_fulfilled_layout"]})?new F_(a,b):this.C(a,b)};g.w(I_,H_);I_.prototype.C=function(a,b){if(G_(b,{Pd:["metadata_type_ad_break_request_data","metadata_type_cue_point"],qb:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new D_(a,b,this.i,this.B,this.u,this.D);if(G_(b,{Pd:["metadata_type_ad_break_request_data"],qb:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new E_(a,b,this.i,this.B,this.u);throw new bZ("Unsupported slot with type: "+b.qb+" and client metadata: "+XH(b.Ia)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.w(J_,H_);J_.prototype.C=function(a,b){throw new bZ("Unsupported slot with type: "+b.qb+" and client metadata: "+XH(b.Ia)+" in DefaultFulfillmentAdapterFactory.");};g.k=wLa.prototype;g.k.qd=function(){return this.slot};
g.k.Hb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.wf(this.slot,a,new TY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=W(a.Ia,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.qb?(this.callback.Kc(this.slot,a),Ika(this.i,this.slot,b)):R("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.k.gf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new TY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Sc(this.slot,a,b)};L_.prototype.Pe=function(a,b,c,d){if(K_(d,{Pd:["metadata_type_ad_break_response_data"],Ve:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new wLa(a,c,d,this.i);throw new TY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XH(d.Ia)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};M_.prototype.Ye=function(a){var b=this.D.get(a)||[];xLa(this,a,b);this.C.add(a)};g.k=yLa.prototype;g.k.qd=function(){return this.slot};
g.k.Hb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new TY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Kc(this.slot,a),P_(this.u,"impression"),e0(this.i,a.layoutId))};
g.k.gf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new TY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Sc(this.slot,a,b)};S_.prototype.Pe=function(a,b,c,d){if(K_(d,zLa()))return new yLa(a,c,d,this.Ua,this.i);throw new TY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XH(d.Ia)+" in ForecastingLayoutRenderingAdapterFactory.");};g.w(T_,g.Q);g.k=T_.prototype;g.k.qd=function(){return this.slot};
g.k.Hb=function(){return this.layout};
g.k.init=function(){this.u.get().addListener(this)};
g.k.release=function(){this.u.get().removeListener(this);this.dispose()};
g.k.oE=function(){};
g.k.mE=function(){};
g.k.lE=function(){};
g.k.sz=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new TY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.u.get(),$La(a,this.i,1))};
g.k.gf=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.wf(this.slot,a,new TY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var c=this.u.get();$La(c,this.i,3);this.i=[];this.callback.Sc(this.slot,a,b)}};
g.k.xa=function(){this.u.get().removeListener(this);g.Q.prototype.xa.call(this)};g.w(ALa,LG);g.w(W_,T_);g.k=W_.prototype;g.k.nf=function(a,b){V_("action-companion",a,this.I.get().Qh,this.Ua.get(),this.B,this.C,this.qd(),this.Hb(),b)};
g.k.startRendering=function(a){U_(this.D,this.qd(),this.Hb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new ALa(b,c,d,e,f)},this.i);
T_.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?P_(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Ua.get().Wg():R("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Sc=function(){};
g.k.kh=function(){};
g.k.Ji=function(){};
g.k.Ii=function(){};
g.k.cf=function(){};
g.k.df=function(){};
g.k.Fj=function(){};
g.k.Gj=function(){};
g.k.Gi=function(){};
g.k.Hi=function(){};
g.k.Jh=function(){};
g.k.xa=function(){this.ke().Id.delete(this);T_.prototype.xa.call(this)};g.w(X_,T_);X_.prototype.init=function(){T_.prototype.init.call(this);var a=W(this.layout.Ia,"metadata_type_ad_action_interstitial_renderer"),b=O_(this.B);this.i.push(new QH(a,b,this.layout.layoutId,{adsClientData:this.layout.Dc},!0,!0))};
X_.prototype.startRendering=function(a){T_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
X_.prototype.nf=function(){};
X_.prototype.xa=function(){T_.prototype.xa.call(this)};g.w(Y_,T_);g.k=Y_.prototype;g.k.init=function(){T_.prototype.init.call(this);var a=W(this.layout.Ia,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Dc},c=!W(this.layout.Ia,"metadata_type_player_bytes_callback").Gz;this.i.push(new sL(a,this.layout.layoutId,W(this.layout.Ia,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.jo=function(){this.B||this.Ja.get().resumeVideo(2)};
g.k.startRendering=function(a){T_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a);this.C.Ir=this};
g.k.gf=function(a,b){T_.prototype.gf.call(this,a,b);S1(this.C,this)};
g.k.nf=function(a){if(PKa(this.D.get(),this.I))switch(a){case "visit-advertiser":this.Ua.get().J.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.B||this.Ja.get().resumeVideo(2);break;case "ad-info-icon-button":(this.B=this.Ja.get().em(2))||this.Ja.get().pauseVideo();break;case "visit-advertiser":this.Ja.get().pauseVideo();W(this.layout.Ia,"metadata_type_player_bytes_callback").RA();
break;case "skip-button":a=W(this.layout.Ia,"metadata_type_player_bytes_callback"),a.Gz&&a.Fw(this.qd(),this.layout)}};
g.k.xa=function(){T_.prototype.xa.call(this)};$_.prototype.Pe=function(a,b,c,d){if(a=Z_(a,c,d,this.u,this.Ja,this.Ua,this.B,this.i))return a;throw new TY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XH(d.Ia)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.w(a0,g.E);g.k=a0.prototype;g.k.init=function(){var a=W(this.Hb().Ia,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Nn()};
g.k.release=function(){var a=W(this.Hb().Ia,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.Do()};
g.k.startRendering=function(a){a.layoutId!==this.Hb().layoutId?this.callback.wf(this.qd(),a,new TY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Hb().layoutId+("and LayoutType: "+this.Hb().layoutType))):(this.Ja.get().addListener(this),NY(this.ke(),this),this.Ja.get().J.Wk(2),jsa(this.hd.get()),this.Lo(a))};
g.k.gf=function(a,b){this.vE=!0;this.Mo(a,b);this.Ja.get().J.Eo(2);this.Jd.get().J.cueVideoByPlayerVars({},2);a=m_(this.Ja.get(),1);g.T(a,4)&&!g.T(a,2)&&this.Ja.get().playVideo();this.Ja.get().removeListener(this);this.vE&&this.LL()};
g.k.Sc=function(a,b){b.layoutId===this.Hb().layoutId&&(this.vE=!1,this.ke().Id.delete(this))};
g.k.Ej=function(a,b){var c,d;if(a.state.isError()){if(this.Oa.get().J.V().N("html5_ignore_organic_playback_error_when_ads_presenting")&&(R("Presenting player state error caught in PlayerBytes layout.",this.qd(),this.Hb(),{playerType:String(b)}),1===b))return;this.wf(null===(c=a.state.getData())||void 0===c?void 0:c.errorCode,new TY("There was a player error during this media layout.",{playerErrorCode:null===(d=a.state.getData())||void 0===d?void 0:d.errorCode}),b)}else this.HM(a)};
g.k.kh=function(){};
g.k.Ji=function(){};
g.k.Ii=function(){};
g.k.cf=function(){};
g.k.df=function(){};
g.k.Fj=function(){};
g.k.Gj=function(){};
g.k.Gi=function(){};
g.k.Hi=function(){};
g.k.Jh=function(){};g.w(b0,a0);g.k=b0.prototype;g.k.qd=function(){return this.slot};
g.k.Hb=function(){return this.layout};
g.k.Nn=function(){if(1>=this.u.length)throw new bZ("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,b.init(),YY(this.B,this.slot,b.Hb())};
g.k.Do=function(){for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,Wra(this.B,this.slot,b.Hb()),b.release()};
g.k.qq=function(a,b){var c=this.u[this.i];b.layoutId!==c0(c,a,b)?R("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.qq()};
g.k.Cq=function(a,b){var c=this.u[this.i];b.layoutId!==c0(c,a,b)?R("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Cq()};
g.k.Fw=function(a,b){var c=this.u[this.i];b.layoutId!==c0(c,a,b)?R("onSkipRequested for a PlayerBytes layout that is not currently active",c.qd(),c.Hb(),{requestingSlot:a,requestingLayout:b}):d0(this,c.qd(),c.Hb(),"skipped")};
g.k.Lo=function(){-1===this.i&&ELa(this)};
g.k.XV=function(a,b){ZY(this.B,a,b)};
g.k.Mo=function(a,b){var c=this;this.i!==this.u.length?(a=this.u[this.i],a.gf(a.Hb(),b),this.D=function(){c.callback.Sc(c.slot,c.layout,b)}):this.callback.Sc(this.slot,this.layout,b)};
g.k.Kc=function(a,b){var c=this.u[this.i];c&&c.Kc(a,b)};
g.k.Sc=function(a,b,c){a0.prototype.Sc.call(this,a,b,c);var d=this.u[this.i];d&&d.Sc(a,b,c)};
g.k.LL=function(){var a=this.u[this.i];a&&a.rz()};
g.k.Ei=function(a){var b=this.u[this.i];b&&b.Ei(a)};
g.k.HM=function(a){var b=this.u[this.i];b&&b.Ej(a)};
g.k.wf=function(a,b){-1===this.i&&(this.callback.Kc(this.slot,this.layout),this.i++);var c=this.u[this.i];c?c.nw(a,b):R("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Hb().layoutId})};
g.k.onFullscreenToggled=function(a){var b=this.u[this.i];if(b)b.onFullscreenToggled(a)};
g.k.xg=function(a){var b=this.u[this.i];b&&b.xg(a)};
g.k.Aj=function(a){var b=this.u[this.i];b&&b.Aj(a)};
g.k.onVolumeChange=function(){var a=this.u[this.i];if(a)a.onVolumeChange()};
g.k.ZV=function(a,b,c){d0(this,a,b,c)};
g.k.YV=function(a,b){d0(this,a,b,"error")};g.w(i0,g.E);g.k=i0.prototype;g.k.qd=function(){return this.slot};
g.k.Hb=function(){return this.layout};
g.k.init=function(){var a=W(this.layout.Ia,"metadata_type_video_length_seconds");n_(this.va.get(),this.layout.layoutId,a,this);t_(this.Ua.get(),this);this.Nn()};
g.k.release=function(){o_(this.va.get(),this.layout.layoutId);u_(this.Ua.get(),this);this.Do()};
g.k.qq=function(){};
g.k.Cq=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new TY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.u="rendering_start_requested",Wqa(this.La.get(),1)?(this.Or(!1),this.K(-1),this.Lo(a)):this.nw("ui_unstable",new TY("Failed to render media layout because ad ui unstable.")))};
g.k.Kc=function(a,b){var c,d,e;b.layoutId===this.layout.layoutId&&(this.u="rendering",P_(this.i,"impression"),P_(this.i,"start"),this.Ja.get().isMuted()&&(P_(this.i,"mute"),a=(null===(c=h0(this))||void 0===c?void 0:c.muteCommands)||[],this.B.get().yd(a,this.layout.layoutId)),this.Ja.get().isFullscreen()&&(this.i.Ye("fullscreen"),a=(null===(d=h0(this))||void 0===d?void 0:d.fullscreenCommands)||[],this.B.get().yd(a,this.layout.layoutId)),this.X=this.Ja.get().isMuted()||0===this.Ja.get().getVolume(),
j0(this,"unmuted_impression"),j0(this,"unmuted_start"),this.Ja.get().isFullscreen()&&l0(this,"unmuted_fullscreen"),lsa(this.hd.get()),this.K(1),this.uM(),a=(null===(e=h0(this))||void 0===e?void 0:e.impressionCommands)||[],this.B.get().yd(a,this.layout.layoutId))};
g.k.nw=function(a,b,c){this.Ka={yB:3,Cx:"load_timeout"===a?402:400,errorMessage:b.message};var d;W(this.layout.Ia,"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR")&&R("There is a player error in this survey ads",this.qd(),this.Hb(),{playerType:String(c)});P_(this.i,"error");j0(this,"unmuted_error");a=(null===(d=h0(this))||void 0===d?void 0:d.errorCommands)||[];this.B.get().yd(a,this.layout.layoutId);this.callback.wf(this.slot,this.layout,b)};
g.k.rz=function(){this.S()};
g.k.GK=function(){var a;if("rendering"===this.u){this.i.Ye("pause");l0(this,"unmuted_pause");var b=(null===(a=h0(this))||void 0===a?void 0:a.pauseCommands)||[];this.B.get().yd(b,this.layout.layoutId);this.K(2)}};
g.k.HK=function(){var a;if("rendering"===this.u){this.i.Ye("resume");l0(this,"unmuted_resume");var b=(null===(a=h0(this))||void 0===a?void 0:a.resumeCommands)||[];this.B.get().yd(b,this.layout.layoutId)}};
g.k.gf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new TY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):"rendering_stop_requested"!==this.u&&(this.u="rendering_stop_requested",this.Z=b,this.Mo(a,b))};
g.k.Sc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.u="not_rendering",this.Z=void 0,this.Oa.get().J.V().N("html5_check_ad_position_and_reset_on_new_ad_playback_csi")?(a="normal"!==c||this.position+1===this.Ha)&&this.Or(a):this.Or(!0),this.vM(c),this.K(0),c){case "abandoned":var d;if(R_(this.i,"impression")){P_(this.i,"abandon");j0(this,"unmuted_abandon");var e=(null===(d=h0(this))||void 0===d?void 0:d.abandonCommands)||[];this.B.get().yd(e,this.layout.layoutId)}break;case "normal":P_(this.i,
"complete");j0(this,"unmuted_complete");d=(null===(e=h0(this))||void 0===e?void 0:e.completeCommands)||[];this.B.get().yd(d,this.layout.layoutId);break;case "skipped":var f;P_(this.i,"skip");d=(null===(f=h0(this))||void 0===f?void 0:f.skipCommands)||[];this.B.get().yd(d,this.layout.layoutId)}};
g.k.Fv=function(){return this.layout.layoutId};
g.k.OD=function(){return this.Ka};
g.k.Ej=function(a){if("not_rendering"!==this.u){this.Ba||(a=new g.vH(a.state,new g.CJ),this.Ba=!0);var b=2===this.Ja.get().getPresentingPlayerType();"rendering_start_requested"===this.u?b&&f0(a)&&this.Aa():b?g.xH(a,2)?this.aI():(f0(a)?this.K(1):g.xH(a,4)&&!g.xH(a,2)&&this.GK(),0>wH(a,4)&&!(0>wH(a,2))&&this.HK()):this.rz()}};
g.k.ww=function(){var a;if("rendering"===this.u){P_(this.i,"active_view_measurable");var b=(null===(a=h0(this))||void 0===a?void 0:a.activeViewMeasurableCommands)||[];this.B.get().yd(b,this.layout.layoutId)}};
g.k.uw=function(){var a;if("rendering"===this.u){P_(this.i,"active_view_fully_viewable_audible_half_duration");var b=(null===(a=h0(this))||void 0===a?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.B.get().yd(b,this.layout.layoutId)}};
g.k.xw=function(){var a;if("rendering"===this.u){P_(this.i,"active_view_viewable");var b=(null===(a=h0(this))||void 0===a?void 0:a.activeViewViewableCommands)||[];this.B.get().yd(b,this.layout.layoutId)}};
g.k.pw=function(){var a;if("rendering"===this.u){P_(this.i,"audio_audible");var b=(null===(a=h0(this))||void 0===a?void 0:a.activeViewAudioAudibleCommands)||[];this.B.get().yd(b,this.layout.layoutId)}};
g.k.qw=function(){var a;if("rendering"===this.u){P_(this.i,"audio_measurable");var b=(null===(a=h0(this))||void 0===a?void 0:a.activeViewAudioMeasurableCommands)||[];this.B.get().yd(b,this.layout.layoutId)}};
g.k.Or=function(a){this.hd.get().Or(W(this.layout.Ia,"metadata_type_ad_placement_config").kind,a,this.position,this.Ha,!1)};
g.k.onFullscreenToggled=function(a){var b,c;"rendering"===this.u&&(a?(this.i.Ye("fullscreen"),l0(this,"unmuted_fullscreen"),a=(null===(b=h0(this))||void 0===b?void 0:b.fullscreenCommands)||[],this.B.get().yd(a,this.layout.layoutId)):(this.i.Ye("end_fullscreen"),l0(this,"unmuted_end_fullscreen"),a=(null===(c=h0(this))||void 0===c?void 0:c.endFullscreenCommands)||[],this.B.get().yd(a,this.layout.layoutId)))};
g.k.onVolumeChange=function(){var a,b;if("rendering"===this.u)if(this.Ja.get().isMuted()){P_(this.i,"mute");j0(this,"unmuted_mute");var c=(null===(a=h0(this))||void 0===a?void 0:a.muteCommands)||[];this.B.get().yd(c,this.layout.layoutId)}else P_(this.i,"unmute"),j0(this,"unmuted_unmute"),c=(null===(b=h0(this))||void 0===b?void 0:b.unmuteCommands)||[],this.B.get().yd(c,this.layout.layoutId)};
g.k.xg=function(){};
g.k.Aj=function(){};g.w(n0,i0);g.k=n0.prototype;g.k.Nn=function(){};
g.k.Do=function(){var a=this.Ua.get();a.hB===this&&(a.hB=null);k_(this.Oa.get())?this.I.stop():this.D.stop()};
g.k.Lo=function(){this.Ua.get().hB=this;fJ();this.Aa()};
g.k.uM=function(){JLa(this)};
g.k.aI=function(){};
g.k.qq=function(){k_(this.Oa.get())?this.I.stop():this.D.stop();i0.prototype.GK.call(this)};
g.k.Cq=function(){JLa(this);i0.prototype.HK.call(this)};
g.k.Tl=function(){return W(this.Hb().Ia,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.Mo=function(){k_(this.Oa.get())?this.I.stop():this.D.stop()};
g.k.Xb=function(){var a=Date.now(),b=a-this.oa;this.oa=a;this.C+=b;this.C>=this.Tl()?(this.C=this.Tl(),k0(this,this.C/1E3,!0),m0(this,this.C),this.S()):(k0(this,this.C/1E3),m0(this,this.C))};
g.k.vM=function(){};
g.k.Ei=function(){};g.w(o0,i0);g.k=o0.prototype;g.k.Nn=function(){W(this.Hb().Ia,"metadata_type_player_bytes_callback_ref").current=this};
g.k.Do=function(){W(this.Hb().Ia,"metadata_type_player_bytes_callback_ref").current=null;this.C&&this.I.get().removeCueRange(this.C);this.C=void 0;this.D.dispose()};
g.k.Lo=function(a){var b=W(a.Ia,"metadata_type_ad_video_id"),c=W(a.Ia,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.Sa.get().J.V().S.add(b,{Qu:c});(b=W(a.Ia,"metadata_type_sodar_extension_data"))&&rLa(this.Va.get(),b);pLa(this.Ja.get(),!1);b=this.Jd.get();a=W(a.Ia,"metadata_type_player_vars");b.J.cueVideoByPlayerVars(a,2);this.D.start();this.Jd.get().J.playVideo(2)};
g.k.uM=function(){var a;this.D.stop();this.C="adcompletioncuerange:"+this.Hb().layoutId;this.I.get().addCueRange(this.C,0x7ffffffffffff,0x8000000000000,!1,this,2,2);(this.adCpn=(null===(a=Ky(this.oa.get(),2))||void 0===a?void 0:a.clientPlaybackNonce)||"")||R("Media layout confirmed started, but ad CPN not set.");this.Mc.get().Na("onAdStart",this.adCpn)};
g.k.aI=function(){this.S()};
g.k.Tl=function(){var a;return null===(a=Ky(this.oa.get(),2))||void 0===a?void 0:a.playbackDurationMs};
g.k.RA=function(){this.i.Ye("clickthrough")};
g.k.Mo=function(){this.D.stop();pLa(this.Ja.get(),!0)};
g.k.onCueRangeEnter=function(a){a!==this.C?R("Received CueRangeEnter signal for unknown layout.",this.qd(),this.Hb(),{cueRangeId:a}):(this.I.get().removeCueRange(this.C),this.C=void 0,a=W(this.Hb().Ia,"metadata_type_video_length_seconds"),k0(this,a,!0),P_(this.i,"complete"))};
g.k.vM=function(a){"abandoned"!==a&&this.Mc.get().Na("onAdComplete");this.Mc.get().Na("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.Ei=function(a){"rendering"===this.u&&k0(this,a)};g.w(p0,a0);g.k=p0.prototype;g.k.qd=function(){return this.i.qd()};
g.k.Hb=function(){return this.i.Hb()};
g.k.Nn=function(){this.i.init()};
g.k.Do=function(){this.i.release()};
g.k.qq=function(){this.i.qq()};
g.k.Cq=function(){this.i.Cq()};
g.k.Fw=function(a,b){R("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.qd(),this.Hb(),{requestingSlot:a,requestingLayout:b})};
g.k.Lo=function(a){this.i.startRendering(a)};
g.k.Mo=function(a,b){this.i.gf(a,b)};
g.k.Kc=function(a,b){this.i.Kc(a,b)};
g.k.Sc=function(a,b,c){a0.prototype.Sc.call(this,a,b,c);this.i.Sc(a,b,c);b.layoutId===this.Hb().layoutId&&xJ(this.hd.get())};
g.k.LL=function(){this.i.rz()};
g.k.Ei=function(a){this.i.Ei(a)};
g.k.HM=function(a){this.i.Ej(a)};
g.k.wf=function(a,b,c){this.i.nw(a,b,c)};
g.k.onFullscreenToggled=function(a){this.i.onFullscreenToggled(a)};
g.k.xg=function(a){this.i.xg(a)};
g.k.Aj=function(a){this.i.Aj(a)};
g.k.onVolumeChange=function(){this.i.onVolumeChange()};q0.prototype.Pe=function(a,b,c,d){if(a=MLa(a,b,c,d,this.ke,this.I,this.Ua,this.D,this.S,this.Jd,this.K,this.Ja,this.B,this.hd,this.Mc,this.i,this.u,this.C,this.Oa))return a;throw new TY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XH(d.Ia)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.w(r0,g.E);g.k=r0.prototype;g.k.xM=function(a){var b;this.i?NLa(this,this.i,a):null===(b=this.C)||void 0===b?void 0:b.get().xo(a.identifier)};
g.k.nM=function(){};
g.k.ih=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.Cj=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.xa=function(){g.E.prototype.xa.call(this);this.i=null};g.w(s0,g.E);g.k=s0.prototype;g.k.Kc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&GY(b,this.S)){var d=Ky(this.C.get(),2),e=this.I(b,d);e?Jy(this.D.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[$Ka(c.u.get(),e.contentCpn,e.Lt,function(h){return c.K(h.slotId,"core",e,KY(c.i.get(),h))},e.VK)];
e.instreamAdPlayerUnderlayRenderer&&fLa(c.Oa.get())&&f.push(OLa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):R("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.kh=function(){};
g.k.Ji=function(){};
g.k.cf=function(){};
g.k.Ii=function(){};
g.k.df=function(){};
g.k.Fj=function(){};
g.k.Gj=function(){};
g.k.Gi=function(){};
g.k.Hi=function(){};
g.k.Jh=function(){};
g.k.Sc=function(){};var q1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=SLa.prototype;g.k.init=function(){};
g.k.qd=function(){return this.slot};
g.k.Ly=function(){this.callback.cf(this.slot)};
g.k.My=function(){this.callback.df(this.slot)};
g.k.release=function(){};u0.prototype.Pe=function(a,b){return new SLa(a,b)};g.k=TLa.prototype;g.k.init=function(){};
g.k.qd=function(){return this.slot};
g.k.Ly=function(){y_(this.Ja.get(),"ad-showing");this.callback.cf(this.slot)};
g.k.My=function(){this.callback.df(this.slot);z_(this.Ja.get(),"ad-showing")};
g.k.release=function(){};g.k=ULa.prototype;g.k.init=function(){};
g.k.qd=function(){return this.slot};
g.k.Ly=function(){y_(this.Ja.get(),"ad-showing");y_(this.Ja.get(),"ad-interrupting");this.u=this.Ja.get().isAtLiveHead();this.i=Math.ceil(Date.now()/1E3);this.callback.cf(this.slot)};
g.k.My=function(){z_(this.Ja.get(),"ad-showing");z_(this.Ja.get(),"ad-interrupting");var a=this.u?Infinity:this.Ja.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.i;this.Ja.get().J.seekTo(a,void 0,void 0,1);this.callback.df(this.slot)};
g.k.release=function(){};g.k=VLa.prototype;g.k.init=function(){};
g.k.qd=function(){return this.slot};
g.k.Ly=function(){y_(this.Ja.get(),"ad-showing");y_(this.Ja.get(),"ad-interrupting");this.callback.cf(this.slot)};
g.k.My=function(){this.Ja.get().zp();z_(this.Ja.get(),"ad-showing");z_(this.Ja.get(),"ad-interrupting");this.callback.df(this.slot)};
g.k.release=function(){this.Ja.get().zp()};v0.prototype.Pe=function(a,b){if(My(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new TLa(a,b,this.Ja);if(b.Vb instanceof JZ&&My(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new ULa(a,b,this.Ja);if(My(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new VLa(a,b,this.Ja);throw new bZ("Unsupported slot with type "+b.qb+" and client metadata: "+(XH(b.Ia)+" in PlayerBytesSlotAdapterFactory."));};g.w(x0,g.E);x0.prototype.i=function(a){for(var b=[],c=g.r(this.Ib.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof tZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.Ge===a&&b.push(d)}b.length?$Y(this.eC(),b):R("Mute requested but no registered triggers can be activated.")};g.w(y0,x0);g.k=y0.prototype;g.k.nf=function(a,b){if(b)if("survey-submit"===a)WLa(this,b);else if("skip-button"===a){a=[];for(var c=g.r(this.Ib.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof tZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.Ge===b&&a.push(d)}a.length&&$Y(this.eC(),a)}else"survey-single-select-answer-button"===a&&WLa(this,b)};
g.k.oE=function(a){x0.prototype.i.call(this,a)};
g.k.Mi=function(a,b,c,d){if(this.Ib.has(b.triggerId))throw new bZ("Tried to register duplicate trigger for slot.");if(!(b instanceof uZ||b instanceof tZ))throw new bZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Ib.set(b.triggerId,new w0(a,b,c,d))};
g.k.Vi=function(a){this.Ib.delete(a.triggerId)};
g.k.mE=function(){};
g.k.lE=function(){};
g.k.sz=function(){};g.w(z0,g.E);g.k=z0.prototype;
g.k.Mi=function(a,b,c,d){if(this.Ib.has(b.triggerId))throw new bZ("Tried to register duplicate trigger for slot.");if(!(b instanceof WZ||b instanceof XZ||b instanceof YZ||b instanceof ZZ||b instanceof $Z||b instanceof NZ||b instanceof SZ||b instanceof sZ||b instanceof AZ||b instanceof MZ||b instanceof RZ))throw new bZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new w0(a,b,c,d);this.Ib.set(b.triggerId,a);b instanceof $Z&&this.D.has(b.Hg)&&
$Y(this.i(),[a]);b instanceof WZ&&this.B.has(b.Hg)&&$Y(this.i(),[a]);b instanceof SZ&&this.u.has(b.Ge)&&$Y(this.i(),[a])};
g.k.Vi=function(a){this.Ib.delete(a.triggerId)};
g.k.kh=function(a){this.D.add(a.slotId);for(var b=[],c=g.r(this.Ib.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof $Z&&a.slotId===d.trigger.Hg&&b.push(d);0<b.length&&$Y(this.i(),b)};
g.k.Ji=function(a){this.D.delete(a.slotId);a=[];for(var b=g.r(this.Ib.values()),c=b.next();!c.done;c=b.next());0<a.length&&$Y(this.i(),a)};
g.k.Ii=function(a){for(var b=[],c=g.r(this.Ib.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof NZ&&e.qb===a.qb&&e.i!==a.slotId&&b.push(d)}0<b.length&&$Y(this.i(),b)};
g.k.cf=function(a){this.B.add(a.slotId);for(var b=[],c=g.r(this.Ib.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof WZ&&a.slotId===d.trigger.Hg&&b.push(d);0<b.length&&$Y(this.i(),b)};
g.k.df=function(a){this.B.delete(a.slotId);this.C.add(a.slotId);for(var b=[],c=g.r(this.Ib.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof XZ)a.slotId===d.trigger.Hg&&b.push(d);else if(d.trigger instanceof RZ){var e=d.trigger;a.slotId===e.slotId&&this.u.has(e.Ge)&&b.push(d)}0<b.length&&$Y(this.i(),b)};
g.k.Fj=function(a){for(var b=[],c=g.r(this.Ib.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof YZ&&a.slotId===d.trigger.Hg&&b.push(d);0<b.length&&$Y(this.i(),b)};
g.k.Gj=function(a){for(var b=[],c=g.r(this.Ib.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof ZZ&&a.slotId===d.trigger.Hg&&b.push(d);0<b.length&&$Y(this.i(),b)};
g.k.Gi=function(a,b){this.I.add(b.layoutId)};
g.k.Hi=function(a,b){this.I.delete(b.layoutId)};
g.k.Kc=function(a,b){this.u.add(b.layoutId);for(var c=[],d=g.r(this.Ib.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof SZ)b.layoutId===e.trigger.Ge&&c.push(e);else if(e.trigger instanceof MZ){var f=e.trigger;a.qb===f.qb&&b.layoutType===f.layoutType&&b.layoutId!==f.i&&c.push(e)}else e.trigger instanceof RZ&&(f=e.trigger,b.layoutId===f.Ge&&this.C.has(f.slotId)&&c.push(e));0<c.length&&$Y(this.i(),c)};
g.k.Sc=function(a,b,c){this.u.delete(b.layoutId);a=[];for(var d=g.r(this.Ib.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof sZ&&b.layoutId===e.trigger.Ge&&a.push(e),e.trigger instanceof AZ&&b.layoutId===e.trigger.Ge&&"error"===c&&a.push(e);0<a.length&&$Y(this.i(),a)};
g.k.Jh=function(){};
g.k.ih=function(){this.C.clear()};
g.k.Cj=function(){};g.w(A0,g.E);A0.prototype.Mi=function(a,b,c,d){if(this.Ib.has(b.triggerId))throw new bZ("Tried to register duplicate trigger for slot.");if(!(b instanceof Ny||b instanceof UZ))throw new bZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Ib.set(b.triggerId,new w0(a,b,c,d))};
A0.prototype.Vi=function(a){this.Ib.delete(a.triggerId)};
A0.prototype.ih=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.r(this.Ib.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof Ny&&l.trigger.Po===a&&f.push(l);e.call(d,b,g.la(f));b.push.apply(b,g.la(XLa(this.Ib,a,!1,c)));b.length&&$Y(this.i(),b)};
A0.prototype.Cj=function(a){var b=[];b.push.apply(b,g.la(XLa(this.Ib,a,!0,!1)));b.length&&$Y(this.i(),b)};g.w(B0,g.E);g.k=B0.prototype;
g.k.Mi=function(a,b,c,d){if(this.Ib.has(b.triggerId))throw new bZ("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof JZ)C0(this,a,b,c,d,e,b.i.start,b.i.end,b.Po,b.visible);else if(b instanceof TZ)C0(this,a,b,c,d,e,b.i.start,b.i.end,b.Po,!1);else if(b instanceof QZ)C0(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Po,b.visible);else throw new bZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
};
g.k.Vi=function(a){var b=this.Ib.get(a.triggerId);b&&this.B.get().removeCueRange(b.Gy);this.Ib.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a){if(a=YLa(this,a))if(a=this.Ib.get(a))if(g.T(m_(this.Ja.get()),32))this.i.add(a.Gy);else{var b=null===a||void 0===a?void 0:a.bundle.trigger;(b instanceof JZ||b instanceof QZ)&&$Y(this.u(),[a.bundle])}};
g.k.onCueRangeExit=function(a){if(a=YLa(this,a))if(a=this.Ib.get(a))this.i.delete(a.Gy),a.bundle.trigger instanceof TZ&&$Y(this.u(),[a.bundle])};
g.k.Ej=function(a){if(0>wH(a,16)){a=g.r(this.i);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value);this.i.clear()}};
g.k.Ei=function(){};
g.k.onFullscreenToggled=function(){};
g.k.xg=function(){};
g.k.Aj=function(){};
g.k.onVolumeChange=function(){};g.w(D0,g.E);g.k=D0.prototype;g.k.Mi=function(a,b,c,d){if(this.Ib.has(b.triggerId))throw new bZ("Tried to register duplicate trigger for slot.");if(!(b instanceof wZ||b instanceof VZ))throw new bZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Ib.set(b.triggerId,new w0(a,b,c,d))};
g.k.Vi=function(a){this.Ib.delete(a.triggerId)};
g.k.jn=function(){};
g.k.yk=function(){};
g.k.Kc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.qb&&(null!=this.i?R("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.i=b.layoutId)};
g.k.Sc=function(a){"SLOT_TYPE_ABOVE_FEED"===a.qb&&(this.i=null)};
g.k.kh=function(){};
g.k.Ji=function(){};
g.k.Ii=function(){};
g.k.cf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.qb&&(null!=this.u?R("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)};
g.k.df=function(a){"SLOT_TYPE_ABOVE_FEED"===a.qb&&(null===this.u?R("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)};
g.k.Fj=function(){};
g.k.Gj=function(){};
g.k.Gi=function(){};
g.k.Hi=function(){};
g.k.Jh=function(){};
g.k.Ay=function(){null!=this.i&&e0(this,this.i)};
g.k.Py=function(a){if(null===this.u){for(var b=[],c=g.r(this.Ib.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof VZ&&d.trigger.slotId===a&&b.push(d);b.length&&$Y(this.B(),b)}};g.w(E0,g.E);g.k=E0.prototype;g.k.Jh=function(a,b){for(var c=[],d=g.r(this.Ib.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&&$Y(this.i(),c)};
g.k.Mi=function(a,b,c,d){if(this.Ib.has(b.triggerId))throw new bZ("Tried to register duplicate trigger for slot.");if(!(b instanceof RKa))throw new bZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Ib.set(b.triggerId,new w0(a,b,c,d))};
g.k.Vi=function(a){this.Ib.delete(a.triggerId)};
g.k.kh=function(){};
g.k.Ji=function(){};
g.k.Ii=function(){};
g.k.cf=function(){};
g.k.df=function(){};
g.k.Fj=function(){};
g.k.Gj=function(){};
g.k.Gi=function(){};
g.k.Hi=function(){};
g.k.Kc=function(){};
g.k.Sc=function(){};g.w(F0,g.E);F0.prototype.xa=function(){this.B.get().removeListener(this);g.E.prototype.xa.call(this)};g.w(G0,g.E);G0.prototype.xa=function(){this.D.get().removeListener(this);g.E.prototype.xa.call(this)};H0.prototype.fetch=function(a){var b=a.QJ;return this.Yo.fetch(a.FO,{Vu:void 0===a.Vu?void 0:a.Vu,Fd:b}).then(function(c){return ZLa(c,b)})};g.w(I0,g.E);g.k=I0.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){J0(this,function(c){c.nf(a,b)})};
g.k.jF=function(a){J0(this,function(b){b.mE(a)})};
g.k.iF=function(a){J0(this,function(b){b.lE(a)})};
g.k.DT=function(a){J0(this,function(b){b.sz(a)})};g.w(K0,g.E);g.k=K0.prototype;g.k.ih=function(){this.C=new qJ(this,eLa(this.Oa.get()));this.u=new rJ;aMa(this)};
g.k.Cj=function(a){null!=this.i&&a===this.i.clientPlaybackNonce&&(this.i.unsubscribe("cuepointupdated",this.Bw,this),this.i=null)};
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.BF=function(a){this.nB.push(a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.xM(a)};
g.k.pM=function(a){g.ic(this.u.i,1E3*a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.nM(a)};
g.k.Bw=function(a){var b=Ky(this.D.get(),1),c=b.clientPlaybackNonce;b=b.daiEnabled;var d=Date.now();a=g.r(a);for(var e=a.next();!e.done;e=a.next())e=e.value,(b||GZ(this.Oa.get()))&&s_(this.Ua.get(),{cuepointTrigger:{event:bMa(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.i,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.B.add(e),b?this.C.reduce(e):GZ(this.Oa.get())&&0!==this.J.getCurrentTime(1)&&"start"===e.event&&this.BF(e)};
g.k.xa=function(){null!=this.i&&(this.i.unsubscribe("cuepointupdated",this.Bw,this),this.i=null);this.listeners.length=0;this.B.clear();this.nB.length=0;g.E.prototype.xa.call(this)};N0.prototype.addListener=function(a){this.listeners.push(a)};
N0.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=O0.prototype;g.k.qd=function(){return this.slot};
g.k.Hb=function(){return this.layout};
g.k.init=function(){var a;this.D.get().addListener(this);this.Ja.get().addListener(this);this.Nn();var b=W(this.layout.Ia,"metadata_type_layout_enter_ms"),c=W(this.layout.Ia,"metadata_type_layout_exit_ms"),d=null===(a=this.B.get().wp)||void 0===a?void 0:a.clientPlaybackNonce,e=this.layout.Dc.adClientDataEntry;s_(this.Ua.get(),{daiStateTrigger:{filledAdsDurationMs:c-b,contentCpn:d,adClientData:e}});var f=this.D.get();f=sJ(f.u,b,c);null!==f&&(s_(this.Ua.get(),{daiStateTrigger:{filledAdsDurationMs:f-
b,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:e}}),this.K.get().pp(f,c))};
g.k.release=function(){this.Do();this.D.get().removeListener(this);this.Ja.get().removeListener(this)};
g.k.startRendering=function(){this.Lo();this.callback.Kc(this.slot,this.layout)};
g.k.gf=function(a,b){this.Mo(b);null!==this.driftRecoveryMs&&(P0(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(dMa(this)-W(this.layout.Ia,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ja.get().J.Cn()).toString()}),this.driftRecoveryMs=null);this.callback.Sc(this.slot,this.layout,b)};
g.k.xM=function(){};
g.k.nM=function(a){var b,c=W(this.layout.Ia,"metadata_type_layout_enter_ms"),d=W(this.layout.Ia,"metadata_type_layout_exit_ms");a*=1E3;c<=a&&a<d&&(s_(this.Ua.get(),{daiStateTrigger:{filledAdsDurationMs:a-c,contentCpn:null===(b=this.B.get().wp)||void 0===b?void 0:b.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Dc.adClientDataEntry}}),this.K.get().pp(a,d))};
g.k.Ei=function(a){this.dM(a);a=this.Ja.get().getCurrentTimeSec(2,!0);if(PKa(this.S.get(),this.layout.layoutId)){var b=W(this.layout.Ia,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=dMa(this),e=this.Ja.get().J.Cn(),f=Math.min(a+e,d/1E3);f<=a?P0(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(P0(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-
b).toString(),driftFromHeadMs:Math.round(1E3*e).toString(),appliedDriftRecoveryMs:Math.round(1E3*a-b).toString(),destinationMs:Math.round(1E3*f-b).toString()}),this.Ja.get().J.seekTo(f,void 0,void 0,1))}}};
g.k.xg=function(){};
g.k.Aj=function(){};
g.k.onVolumeChange=function(){};g.w(Q0,O0);g.k=Q0.prototype;g.k.Nn=function(){this.B.get().addListener(this);this.I.forEach(function(a){a.init()});
null!=this.C&&this.Ua.get().Ai("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.C)};
g.k.Do=function(){this.B.get().removeListener(this);this.u=null;this.I.forEach(function(a){a.release()})};
g.k.Lo=function(){var a;if(this.u)R("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.C)});else{var b=null===(a=this.B.get().wp)||void 0===a?void 0:a.layoutId;fMa(this,b)}};
g.k.Mo=function(a){var b,c,d,e;null===(c=null===(b=this.u)||void 0===b?void 0:b.Zh)||void 0===c?void 0:c.gf(null===(e=null===(d=this.u)||void 0===d?void 0:d.Zh)||void 0===e?void 0:e.Hb(),a);this.u=null};
g.k.DM=function(a){var b=a.videoId;a=a.layoutId;var c,d,e,f,h;"nPpU29QrbiU"===b&&this.Ua.get().Ai("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.C+";slrs."+!!this.u+";slrslid."+(null===(d=null===(c=this.u)||void 0===c?void 0:c.Zh)||void 0===d?void 0:d.Hb().layoutId));this.u&&(null===(e=this.u.Zh)||void 0===e?void 0:e.Hb().layoutId)!==a&&(null===(f=this.u.Zh)||void 0===f?void 0:f.gf(null===(h=this.u.Zh)||void 0===h?void 0:h.Hb(),"normal"),fMa(this,a))};
g.k.dM=function(){};
g.k.Ej=function(){};
g.k.onFullscreenToggled=function(){};g.k=qMa.prototype;g.k.qd=function(){return this.slot};
g.k.Hb=function(){return this.layout};
g.k.init=function(){var a=this;W(this.layout.Ia,"metadata_type_player_bytes_callback_ref").current=this;this.Bc=gMa(this.slot,this.layout,W(this.layout.Ia,"metadata_type_player_vars"),W(this.layout.Ia,"metadata_type_layout_enter_ms"),W(this.layout.Ia,"metadata_type_layout_exit_ms"),1E3*W(this.layout.Ia,"metadata_type_video_length_seconds"),this.D.get(),this.K.get(),function(){var c=Object,d=c.assign,e=Object.assign({layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},U0(a.layout));var f=W(a.slot.Ia,
"metadata_type_fulfilled_layout");f=Object.assign(Object.assign({},U0(f)),{adPlacementConfig:W(f.Ia,"metadata_type_ad_placement_config"),subLayouts:W(f.Ia,"metadata_type_sub_layouts").map(U0)});return d.call(c,e,{compositeLayout:f,hasSurveyOverlay:Ly(a.layout.Ia,"metadata_type_survey_overlay"),surveyOverlay:W(a.layout.Ia,"metadata_type_survey_overlay")})},this.Ua.get());
this.Ja.get().addListener(this);var b=W(this.layout.Ia,"metadata_type_video_length_seconds");n_(this.B.get(),this.layout.layoutId,b,this);YY(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Ja.get().removeListener(this);o_(this.B.get(),this.layout.layoutId)};
g.k.startRendering=function(){var a=this;Ly(this.layout.Ia,"metadata_type_survey_overlay")&&this.Ua.get().Ai("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.u)R("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:Ly(this.layout.Ia,"metadata_type_survey_overlay"),surveyOverlay:W(this.layout.Ia,"metadata_type_survey_overlay")});else{this.u={vj:null,bx:!1};hMa(this.slot,this.layout,this.I.get());P_(this.i,"start");if(j_(this.Oa.get())){var b=m_(this.Ja.get()),
c=W(this.layout.Ia,"metadata_type_video_length_seconds"),d=this.Ja.get().getCurrentTimeSec(2,!1);iMa(this.i,this.u.vj,b,c,d,function(){return void sMa(a,"teois")})}ZY(this.callback,this.slot,this.layout);
Ly(this.layout.Ia,"metadata_type_survey_overlay")&&this.Ua.get().Ai("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.gf=function(a,b){var c=this;if(this.u){if(j_(this.Oa.get()))if(null===this.Bc)R("Unexpected media sub layout exited without a timeline playback ID");else{a=W(this.layout.Ia,"metadata_type_video_length_seconds");var d=x_(this.Ja.get(),this.Bc);this.i.B=d;S0(this.i,null,this.u.vj,a,d,function(e){return void rMa(c,e,"fue")})}this.u=null;
mJ(this.callback,this.slot,this.layout,b)}else R("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.nw=function(){};
g.k.rz=function(){};
g.k.Ei=function(a){var b=this;if(this.u){if(R_(this.i,"impression")){var c=m_(this.Ja.get()),d=W(this.layout.Ia,"metadata_type_video_length_seconds");T0(this.i,c,a,this.u.vj,d,function(e){return void rMa(b,e,"tpaqe")})}this.u.vj=a}};
g.k.Ej=function(a){var b=this;if(this.u){j_(this.Oa.get())||this.u.bx||(this.u.bx=!0,a=new g.vH(a.state,new g.CJ));var c=W(this.layout.Ia,"metadata_type_video_length_seconds"),d=this.Ja.get().getCurrentTimeSec(2,!1);R0(this.i,this.u.vj,a,c,d,!j_(this.Oa.get()),function(){return void sMa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){jMa(this.i,a)};
g.k.xg=function(){};
g.k.Aj=function(){};
g.k.Fw=function(){};
g.k.onVolumeChange=function(){};
g.k.Kc=function(){};
g.k.Sc=function(){};
g.k.qq=function(){};
g.k.Cq=function(){};
g.k.RA=function(){kMa(this.i)};
g.k.ww=function(){lMa(this.i)};
g.k.uw=function(){mMa(this.i)};
g.k.xw=function(){nMa(this.i)};
g.k.pw=function(){oMa(this.i)};
g.k.qw=function(){pMa(this.i)};g.w(V0,O0);g.k=V0.prototype;
g.k.Nn=function(){var a=this;W(this.layout.Ia,"metadata_type_player_bytes_callback_ref").current=this;var b=W(this.layout.Ia,"metadata_type_layout_enter_ms"),c=W(this.layout.Ia,"metadata_type_layout_exit_ms");this.Bc=gMa(this.slot,this.layout,W(this.layout.Ia,"metadata_type_player_vars"),b,c,1E3*W(this.layout.Ia,"metadata_type_video_length_seconds"),this.K.get(),this.X.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:W(a.layout.Ia,"metadata_type_ad_placement_config")}},
this.Ua.get());
var d=W(this.layout.Ia,"metadata_type_video_length_seconds");n_(this.C.get(),this.layout.layoutId,d,this)};
g.k.Do=function(){o_(this.C.get(),this.layout.layoutId)};
g.k.Lo=function(){var a=this;if(this.u)R("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.u={vj:null,bx:!1},hMa(this.slot,this.layout,this.I.get()),P_(this.i,"start"),j_(this.Oa.get())){var b=m_(this.Ja.get()),c=W(this.layout.Ia,"metadata_type_video_length_seconds"),d=this.Ja.get().getCurrentTimeSec(2,!1);iMa(this.i,this.u.vj,b,c,d,function(){return void tMa(a,"teois")})}};
g.k.Mo=function(){var a=this;if(this.u){if(j_(this.Oa.get()))if(null===this.Bc)R("Unexpected single media layout exited without a timeline playback ID");else{var b=W(this.layout.Ia,"metadata_type_video_length_seconds"),c=x_(this.Ja.get(),this.Bc);this.i.B=c;S0(this.i,null,this.u.vj,b,c,function(d){return void uMa(a,d,"fue")})}this.u=null}else R("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.dM=function(a){var b=this;if(this.u){if(R_(this.i,"impression")){var c=m_(this.Ja.get()),d=W(this.layout.Ia,"metadata_type_video_length_seconds");T0(this.i,c,a,this.u.vj,d,function(e){return void uMa(b,e,"tpaqe")})}this.u.vj=a}};
g.k.Ej=function(a){var b=this;if(this.u){j_(this.Oa.get())||this.u.bx||(this.u.bx=!0,a=new g.vH(a.state,new g.CJ));var c=W(this.layout.Ia,"metadata_type_video_length_seconds"),d=this.Ja.get().getCurrentTimeSec(2,!1);R0(this.i,this.u.vj,a,c,d,!j_(this.Oa.get()),function(){return void tMa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){jMa(this.i,a)};
g.k.RA=function(){kMa(this.i)};
g.k.ww=function(){lMa(this.i)};
g.k.uw=function(){mMa(this.i)};
g.k.xw=function(){nMa(this.i)};
g.k.pw=function(){oMa(this.i)};
g.k.qw=function(){pMa(this.i)};W0.prototype.Pe=function(a,b,c,d){if(Ly(c.Ia,"metadata_type_dai")){var e=W(d.Ia,"metadata_type_ad_placement_config");K_(d,{Pd:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),Ve:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new M_(d.lc,this.Ua,e,d.layoutId,null),e=new V0(a,c,d,this.i,this.B,this.K,this.D,this.Ja,e,this.Ua,this.C,this.I,this.u,this.Oa)):e=null;
if(e)return e;a:{var f=W(d.Ia,"metadata_type_sub_layouts"),h=W(d.Ia,"metadata_type_ad_placement_config");if(K_(d,{Pd:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Ve:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==h){e=[];f=g.r(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=W(l.Ia,"metadata_type_media_sub_layout_index");if(!K_(l,{Pd:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),
Ve:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new M_(l.lc,this.Ua,h,l.layoutId,m);e.push(new qMa(b,c,l,this.B,m,this.Ja,this.K,this.u,this.C,this.Oa,this.Ua,this.i))}b=new M_(d.lc,this.Ua,h,d.layoutId);a=new Q0(a,c,d,this.i,this.B,this.D,this.Ja,b,this.Ua,this.I,e)}else a=null}if(a)return a}else if(a=MLa(a,b,c,d,this.ke,this.va,this.Ua,this.u,this.C,this.Jd,this.i,this.Ja,this.Z,this.hd,this.Mc,this.S,this.X,this.oa,this.Oa))return a;throw new TY("Unsupported layout with type: "+d.layoutType+
" and client metadata: "+XH(d.Ia)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.w(X0,g.E);X0.prototype.Mi=function(a,b,c,d){if(this.Ib.has(b.triggerId))throw new bZ("Tried to register duplicate trigger for slot.");if(!(b instanceof DZ))throw new bZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Ib.set(b.triggerId,new w0(a,b,c,d))};
X0.prototype.Vi=function(a){this.Ib.delete(a.triggerId)};g.w(Z0,g.E);
Z0.prototype.Mi=function(a,b,c,d){if(this.u.has(b.triggerId)||this.B.has(b.triggerId))throw new bZ("Tried to re-register the trigger.");a=new w0(a,b,c,d);if(a.trigger instanceof WKa)this.u.set(a.trigger.triggerId,a);else if(a.trigger instanceof vZ)this.B.set(a.trigger.triggerId,a);else throw new bZ("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.triggerId)&&a.slot.slotId===this.i&&$Y(this.C(),[a])};
Z0.prototype.Vi=function(a){this.u.delete(a.triggerId);this.B.delete(a.triggerId)};
Z0.prototype.DM=function(a){a=a.slotId;if(this.i!==a){var b=[];null!=this.i&&b.push.apply(b,g.la(vMa(this.B,this.i)));null!=a&&b.push.apply(b,g.la(vMa(this.u,a)));this.i=a;b.length&&$Y(this.C(),b)}};g.k=$0.prototype;g.k.Lr=function(a,b,c,d,e,f){return this.J.Lr(a,b,c,d,e,f)};
g.k.pp=function(a,b){this.J.pp(a,b)};
g.k.Pt=function(a,b,c){this.J.Pt(a,b,c)};
g.k.xo=function(a){this.J.xo(a)};
g.k.Tv=function(a,b,c,d,e,f){this.J.Tv(a,b,c,d,e,f)};g.w(wMa,LG);g.w(a1,T_);g.k=a1.prototype;g.k.nf=function(a,b){V_("image-companion",a,this.I.get().Qh,this.Ua.get(),this.B,this.C,this.qd(),this.Hb(),b)};
g.k.startRendering=function(a){U_(this.D,this.qd(),this.Hb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new wMa(b,c,d,e,f)},this.i);
T_.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?P_(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Ua.get().Wg():R("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Sc=function(){};
g.k.kh=function(){};
g.k.Ji=function(){};
g.k.Ii=function(){};
g.k.cf=function(){};
g.k.df=function(){};
g.k.Fj=function(){};
g.k.Gj=function(){};
g.k.Gi=function(){};
g.k.Hi=function(){};
g.k.Jh=function(){};
g.k.xa=function(){this.ke().Id.delete(this);T_.prototype.xa.call(this)};g.w(yMa,LG);g.w(b1,T_);g.k=b1.prototype;g.k.nf=function(a,b){V_("shopping-companion",a,this.I.get().Qh,this.Ua.get(),this.B,this.C,this.qd(),this.Hb(),b)};
g.k.startRendering=function(a){U_(this.D,this.qd(),this.Hb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new yMa(b,c,d,e,f)},this.i);
T_.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?P_(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Ua.get().Wg():R("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Sc=function(){};
g.k.kh=function(){};
g.k.Ji=function(){};
g.k.Ii=function(){};
g.k.cf=function(){};
g.k.df=function(){};
g.k.Fj=function(){};
g.k.Gj=function(){};
g.k.Gi=function(){};
g.k.Hi=function(){};
g.k.Jh=function(){};
g.k.xa=function(){this.ke().Id.delete(this);T_.prototype.xa.call(this)};g.w(AMa,LG);g.w(c1,T_);g.k=c1.prototype;g.k.nf=function(a,b){V_("ads-engagement-panel",a,this.I.get().Qh,this.Ua.get(),this.B,this.C,this.qd(),this.Hb(),b)};
g.k.startRendering=function(a){U_(this.D,this.qd(),this.Hb(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new AMa(b,c,d,e,f)},this.i);
T_.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?P_(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Ua.get().Wg():R("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Sc=function(){};
g.k.kh=function(){};
g.k.Ji=function(){};
g.k.Ii=function(){};
g.k.cf=function(){};
g.k.df=function(){};
g.k.Fj=function(){};
g.k.Gj=function(){};
g.k.Gi=function(){};
g.k.Hi=function(){};
g.k.Jh=function(){};
g.k.xa=function(){this.ke().Id.delete(this);T_.prototype.xa.call(this)};CMa.prototype.Pe=function(a,b,c,d){if(K_(d,BMa()))return new c1(a,c,d,this.i,this.Ua,this.ke,this.B,this.u);if(K_(d,BLa()))return new W_(a,c,d,this.i,this.Ua,this.ke,this.B,this.u);if(K_(d,xMa()))return new a1(a,c,d,this.i,this.Ua,this.ke,this.B,this.u);if(K_(d,zMa()))return new b1(a,c,d,this.i,this.Ua,this.ke,this.B,this.u);throw new TY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XH(d.Ia)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.w(d1,LG);g.w(e1,T_);e1.prototype.init=function(){T_.prototype.init.call(this);var a=W(this.layout.Ia,"metadata_type_player_underlay_renderer");this.i.push(new d1(a.instreamAdPlayerUnderlayRenderer,this.layout.layoutId,{adsClientData:this.layout.Dc}))};
e1.prototype.nf=function(){};
e1.prototype.startRendering=function(a){T_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
e1.prototype.xa=function(){T_.prototype.xa.call(this)};DMa.prototype.Pe=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.r(N_()),f=e.next();!f.done;f=e.next())b.push(f.value);if(K_(d,{Pd:b,Ve:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new e1(a,c,d,this.i);throw new TY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XH(d.Ia)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.w(f1,T_);f1.prototype.startRendering=function(a){var b=O_(this.B),c={adsClientData:this.layout.Dc};this.i.push(new hJ(W(this.layout.Ia,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Hb().layoutId,c,!0,!0));T_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
f1.prototype.nf=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=W(this.layout.Ia,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.Fw(this.slot,this.layout):R("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
f1.prototype.xa=function(){T_.prototype.xa.call(this)};var h1=new g.jg(320,63);g.w(k1,LG);g.w(l1,T_);g.k=l1.prototype;g.k.Ei=function(){};
g.k.Ej=function(){};
g.k.onFullscreenToggled=function(){};
g.k.xg=function(a){a&&Y0(this.B,this.layout)};
g.k.Aj=function(a){var b=j1(this.layout);if(this.I=i1(a,oLa(this.Ja.get())))b.onErrorCommand&&this.K.get().executeCommand(b.onErrorCommand,this.layout.layoutId),Y0(this.B,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Fv=function(){return this.Hb().layoutId};
g.k.OD=function(){return this.I};
g.k.nf=function(a){this.C.nf(a);"in_video_overlay_close_button"===a&&Y0(this.B,this.layout)};
g.k.sz=function(a){"invideo-overlay"===a&&Y0(this.B,this.layout)};
g.k.jo=function(){this.C.jo()};
g.k.startRendering=function(a){T_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a);this.D.Ir=this};
g.k.gf=function(a,b){T_.prototype.gf.call(this,a,b);S1(this.D,this)};
g.k.init=function(){T_.prototype.init.call(this);t_(this.Ua.get(),this);this.Ja.get().addListener(this);this.i.push(new k1(j1(this.layout),O_(this.S),this.layout.layoutId,{adsClientData:this.layout.Dc}))};
g.k.release=function(){T_.prototype.release.call(this);this.Ja.get().removeListener(this);u_(this.Ua.get(),this)};g.w(m1,T_);g.k=m1.prototype;g.k.init=function(){T_.prototype.init.call(this);t_(this.Ua.get(),this);this.Ja.get().addListener(this);this.i.push(new k1(j1(this.layout),O_(this.X),this.layout.layoutId,{adsClientData:this.layout.Dc}))};
g.k.jo=function(){this.C.jo()};
g.k.startRendering=function(a){T_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a);this.D.Ir=this};
g.k.gf=function(a,b){T_.prototype.gf.call(this,a,b);S1(this.D,this)};
g.k.nf=function(a){this.C.nf(a);"in_video_overlay_close_button"===a&&Y0(this.B,this.layout)};
g.k.mE=function(a){if("invideo-overlay"===a){a=IMa(this.K,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.sz=function(a){"invideo-overlay"===a&&Y0(this.B,this.layout)};
g.k.lE=function(a){if("invideo-overlay"===a){a=IMa(this.K,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Ei=function(){};
g.k.Ej=function(){};
g.k.onFullscreenToggled=function(){};
g.k.xg=function(a){a&&Y0(this.B,this.layout)};
g.k.Aj=function(a){var b=j1(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=oLa(this.Ja.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.Rb(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.jg(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.jg(0,0)}if(this.I=i1(a,d,c))b.onErrorCommand&&this.S.get().executeCommand(b.onErrorCommand,this.layout.layoutId),Y0(this.B,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Fv=function(){return this.Hb().layoutId};
g.k.OD=function(){return this.I};
g.k.release=function(){T_.prototype.release.call(this);this.Ja.get().removeListener(this);u_(this.Ua.get(),this)};n1.prototype.nf=function(a){"ad-info-hover-text-button"===a&&((this.i=this.Ja.get().em(1))||this.Ja.get().pauseVideo())};
n1.prototype.jo=function(){this.i||this.Ja.get().resumeVideo(1)};g.w(o1,T_);g.k=o1.prototype;g.k.init=function(){T_.prototype.init.call(this);this.Ja.get().addListener(this)};
g.k.startRendering=function(a){var b=W(this.layout.Ia,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.i.push(new dJ(b,this.layout.layoutId,{adsClientData:this.layout.Dc},!0,!0));T_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
g.k.Kc=function(){};
g.k.nf=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=W(this.layout.Ia,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.qq(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.Cq(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&&Y0(this.B,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Ei=function(){};
g.k.onFullscreenToggled=function(){};
g.k.xg=function(){};
g.k.Ej=function(){};
g.k.xa=function(){T_.prototype.xa.call(this)};
g.k.release=function(){T_.prototype.release.call(this);this.Ja.get().removeListener(this)};HMa.prototype.Pe=function(a,b,c,d){if(b=Z_(a,c,d,this.i,this.Ja,this.Ua,this.K,this.u))return b;if(K_(d,GMa()))return new m1(c,d,this.Ua,this.D,this.i,a,this.B,this.I,this.Ja,this.C,this.Oa,this.u,new n1(this.Ja));if(K_(d,FMa()))return new l1(c,d,this.Ua,this.D,this.i,a,this.B,this.Ja,this.C,this.Oa,this.u,new n1(this.Ja));if(K_(d,{Pd:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Ve:["LAYOUT_TYPE_SURVEY"]}))return new o1(c,d,a,this.i,this.B,this.Ja,this.Oa);if(K_(d,{Pd:["metadata_type_player_bytes_layout_controls_callback_ref",
"metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Ve:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new f1(c,d,a,this.i,this.Ua);throw new TY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XH(d.Ia)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.w(p1,g.E);g.k=p1.prototype;g.k.Mi=function(a,b,c,d){if(this.Ib.has(b.triggerId))throw new bZ("Tried to register duplicate trigger for slot.");if(!(b instanceof zZ))throw new bZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Ib.set(b.triggerId,new w0(a,b,c,d));a=this.i.has(b.Ge)?this.i.get(b.Ge):new Set;a.add(b);this.i.set(b.Ge,a)};
g.k.Vi=function(a){this.Ib.delete(a.triggerId);if(!(a instanceof zZ))throw new bZ("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.u.get(a.triggerId);b&&(b.dispose(),this.u.delete(a.triggerId));if(b=this.i.get(a.Ge))b.delete(a),0===b.size&&this.i.delete(a.Ge)};
g.k.kh=function(){};
g.k.Ji=function(){};
g.k.Ii=function(){};
g.k.cf=function(){};
g.k.df=function(){};
g.k.Fj=function(){};
g.k.Gj=function(){};
g.k.Gi=function(){};
g.k.Hi=function(){};
g.k.Jh=function(){};
g.k.Kc=function(a,b){var c=this;if(this.i.has(b.layoutId)){b=this.i.get(b.layoutId);a={};b=g.r(b);for(var d=b.next();!d.done;a={Zt:a.Zt},d=b.next())a.Zt=d.value,d=new g.I(function(e){return function(){var f=c.Ib.get(e.Zt.triggerId);$Y(c.B(),[f])}}(a),a.Zt.durationMs),d.start(),this.u.set(a.Zt.triggerId,d)}};
g.k.Sc=function(){};g.w(JMa,g.E);KMa.prototype.Pe=function(a,b,c,d){if(b=Z_(a,c,d,this.u,this.Ja,this.Ua,this.K,this.i))return b;if(K_(d,GMa()))return new m1(c,d,this.Ua,this.D,this.u,a,this.B,this.I,this.Ja,this.C,this.Oa,this.i,new n1(this.Ja));if(K_(d,FMa()))return new l1(c,d,this.Ua,this.D,this.u,a,this.B,this.Ja,this.C,this.Oa,this.i,new n1(this.Ja));throw new TY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XH(d.Ia)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.w(LMa,g.E);g.w(MMa,g.E);g.w(NMa,g.E);g.w(r1,Y_);r1.prototype.startRendering=function(a){Y_.prototype.startRendering.call(this,a);W(this.layout.Ia,"metadata_ad_video_is_listed")&&(a=W(this.layout.Ia,"metadata_type_ad_info_ad_metadata"),this.K.get().J.Na("onAdMetadataAvailable",a))};PMa.prototype.Pe=function(a,b,c,d){if(K_(d,OMa()))return new r1(a,c,d,this.B,this.Ja,this.Ua,this.C,this.u,this.i);throw new TY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XH(d.Ia)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.w(QMa,g.E);RMa.prototype.Pe=function(a,b,c,d){if(K_(d,OMa()))return new r1(a,c,d,this.u,this.Ja,this.Ua,this.B,this.C,this.i);if(a=Z_(a,c,d,this.u,this.Ja,this.Ua,this.B,this.i))return a;throw new TY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XH(d.Ia)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.w(SMa,g.E);g.w(s1,g.E);s1.prototype.B=function(){return this.u};u1.prototype.Py=function(a){this.nk.Py(a)};
u1.prototype.Ay=function(){try{this.nk.Ay()}catch(a){}};
u1.prototype.jn=function(){this.i().jn()};
u1.prototype.yk=function(){this.i().yk()};g.w(v1,YK);
v1.prototype.C=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.u,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.u,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.u,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.w(w1,eL);g.k=w1.prototype;g.k.init=function(a,b,c){eL.prototype.init.call(this,a,b,c);g.fm(this.C,"stroke-dasharray","0 "+this.B);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){gL(this);eL.prototype.hide.call(this)};
g.k.show=function(){fL(this);eL.prototype.show.call(this)};
g.k.xq=function(){this.hide()};
g.k.Bo=function(){if(this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&g.fm(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.w(x1,AK);g.k=x1.prototype;
g.k.init=function(a,b,c){AK.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.jy(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=
e&&0<e.length&&g.jb(g.pg(e[0].url))&&(e[0].url=d.Nh);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.jb(g.pg(e[0].url))&&(e[0].url=d.Ie());e=b.headline;null!=e&&g.jb(g.pg(e.text))&&(e.text=d.author)}this.D.init(KG("ad-image"),b.image,c);this.S.init(KG("ad-text"),b.headline,c);this.I.init(KG("ad-text"),b.description,c);this.Z.init(KG("ad-image"),b.backgroundImage,c);this.actionButton=new OK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-action-interstitial-action-button"]);g.H(this,
this.actionButton);this.actionButton.Ea(this.La);this.actionButton.init(KG("button"),b.actionButton.buttonRenderer,c);this.navigationEndpoint=b.navigationEndpoint;this.api.V().isMobile||(this.C.T(this.Ka,"click",this.GD,this),this.C.T(this.Ha,"click",this.GD,this),this.C.T(this.Ba,"click",this.GD,this));this.u=this.Dg?new tL(this.api,a):new uL(a);g.H(this,this.u);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.u&&(this.skipButton=new oL(this.api,this.Xa,this.layoutId,this.i,this.u,this.Qi),
g.H(this,this.skipButton),this.skipButton.Ea(this.element),this.skipButton.init(KG("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.u&&(this.B=new jL(this.api,this.Xa,this.layoutId,this.i,this.u,!1),g.H(this,this.B),this.B.Ea(this.element),this.B.init(KG("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,b.timedPieCountdownRenderer&&this.u&&(c=new w1(this.api,this.Xa,this.layoutId,this.i,this.u),g.H(this,c),c.Ea(this.element),
c.init(KG("timed-pie-countdown"),b.timedPieCountdownRenderer,this.macros)));this.show();this.element.focus()}else g.jy(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.jy(Error("AdActionInterstitialRenderer has no button."));else g.jy(Error("AdActionInterstitialRenderer has no background AdImage."));else g.jy(Error("AdActionInterstitialRenderer has no description AdText."));else g.jy(Error("AdActionInterstitialRenderer has no headline AdText."));else g.jy(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.Mx(this.C);this.hide()};
g.k.show=function(){UMa(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();AK.prototype.show.call(this)};
g.k.hide=function(){UMa(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();AK.prototype.hide.call(this)};
g.k.GD=function(){this.navigationEndpoint&&this.Xa.executeCommand(this.navigationEndpoint,this.macros)};var z1={iconType:"CLOSE"},D1=new g.jg(320,63);g.w(y1,AK);g.k=y1.prototype;
g.k.init=function(a,b,c){AK.prototype.init.call(this,a,b,c);this.D=b;this.S=g.Xb(this.D.onClickCommands||[]);this.Ka=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.I=g.Cg("ytp-ad-overlay-ad-info-button-container",this.C.element),B1(this,b),a=ZMa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.I=g.Cg("ytp-ad-overlay-ad-info-button-container",this.B.element),
B1(this,b),a=$Ma(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.I=g.Cg("ytp-ad-overlay-ad-info-button-container",this.u.element),B1(this,b),a=aNa(this,a.imageOverlayAdContentRenderer)):(g.jy(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),bNa(this,!0))};
g.k.clear=function(){bNa(this,!1);this.Ha.reset();this.Z=0;this.C.hide();this.gb(this.C.element,!1);this.B.hide();this.gb(this.B.element,!1);this.u.hide();this.gb(this.u.element,!1);this.hide();this.dispose()};
g.k.cW=function(){this.Wa&&this.Xa.executeCommand(this.Wa,this.macros);this.api.pauseVideo()};
g.k.Fi=function(){var a=this;YMa(this).forEach(function(b){return a.Xa.executeCommand(b,a.macros)});
this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.wT=function(){this.La||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.AF=function(){this.La||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.AF("invideo-overlay")};
g.k.xT=function(a){a.target===this.I&&g.Cg("ytp-ad-button",this.Za.element).click()};g.w(E1,eL);g.k=E1.prototype;g.k.init=function(a,b,c){eL.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=null==a||0===a?0:a+1E3*this.u.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(KG("ad-text"),d,c);this.messageText.Ea(this.B.element);this.I.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){cNa(this,!1);eL.prototype.hide.call(this);this.B.hide();this.messageText.hide();gL(this)};
g.k.show=function(){cNa(this,!0);eL.prototype.show.call(this);fL(this);this.B.show();this.messageText.show()};
g.k.xq=function(){this.hide()};
g.k.Bo=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.S&&a>=this.C?(this.I.hide(),this.S=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.Z&&(dL(this.messageText,{TIME_REMAINING:String(a)}),this.Z=a)))}};g.w(F1,AK);g.k=F1.prototype;
g.k.init=function(a,b,c){AK.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?(this.u.init(KG("ad-image"),b.image,c),this.C.init(KG("ad-text"),b.headline,c),this.B.init(KG("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.V().N("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new OK(this.api,this.Xa,this.layoutId,this.i,a),g.H(this,
this.actionButton),this.actionButton.Ea(this.I),this.actionButton.init(KG("button"),b.actionButton.buttonRenderer,c),this.api.V().N("place_shrunken_video_on_left_of_player")?(b=this.D,g.kr(b,"ytp-ad-underlay-left-container"),g.L(b,"ytp-ad-underlay-right-container")):(b=this.D,g.kr(b,"ytp-ad-underlay-right-container"),g.L(b,"ytp-ad-underlay-left-container")),this.api.YA(!0),this.api.Hz()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.bI.bind(this))):g.jy(Error("InstreamAdPlayerUnderlayRenderer has no button.")):
g.jy(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.jy(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.jy(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){dNa(!0);this.actionButton&&this.actionButton.show();AK.prototype.show.call(this)};
g.k.hide=function(){dNa(!1);this.actionButton&&this.actionButton.hide();AK.prototype.hide.call(this)};
g.k.clear=function(){this.api.YA(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.bI.bind(this));this.hide()};
g.k.onClick=function(a){AK.prototype.onClick.call(this,a);this.actionButton&&g.Tg(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.bI=function(a){a?this.show():this.hide()};g.w(G1,AK);
G1.prototype.init=function(a,b,c){AK.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new OK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ea(this.answer),a.init(KG("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.u=new WK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-survey-answer-toggle-button"]),this.u.Ea(this.answer),
g.H(this,this.u),this.u.init(KG("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
G1.prototype.clear=function(){this.hide()};g.w(H1,AK);H1.prototype.init=function(a,b,c){AK.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new WK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ea(this.u),this.button.init(KG("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.w(I1,OK);I1.prototype.init=function(a,b,c){OK.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.Sz(b.text),a=!g.jb(b));a||g.ky(Error("No submit text was present in the renderer."))};
I1.prototype.onClick=function(a){this.ea("l");OK.prototype.onClick.call(this,a)};g.w(J1,AK);
J1.prototype.init=function(a,b,c){AK.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new pL(this.api,this.Xa,this.layoutId,this.i,this.C,this.Qi),c.Ea(this.I),c.init(KG("skip-button"),a,this.macros),g.H(this,c),this.u=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new jL(this.api,this.Xa,this.layoutId,this.i,this.C,!1),c.Ea(this.I),c.init(KG("ad-preview"),a,this.macros),kL(c),g.H(this,c),this.u=c);null==this.u&&g.jy(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new I1(this.api,this.Xa,this.layoutId,this.i),c.Ea(this.submitButton),c.init(KG("survey-submit"),a,this.macros),g.H(this,c),this.B=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new rL(this.api,this.Xa,this.layoutId,this.i,!0),c.Ea(this.D),c.init(KG("simple-ad-badge"),a,this.macros),g.H(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new xL(this.api,this.Xa,this.layoutId,this.i,this.C,void 0),c.Ea(this.D),
c.init(KG("ad-duration-remaining"),a,this.macros),g.H(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new bL(this.api,this.Xa,this.layoutId,this.i,this.element),g.H(this,a),a.Ea(this.D),a.init(KG("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
J1.prototype.clear=function(){this.hide()};g.w(K1,AK);K1.prototype.init=function(a,b,c){AK.prototype.init.call(this,a,b,c);hNa(this)};
K1.prototype.show=function(){this.C=g.Sa();AK.prototype.show.call(this)};
K1.prototype.wN=function(){};g.w(L1,K1);g.k=L1.prototype;g.k.init=function(a,b,c){var d=this;K1.prototype.init.call(this,a,b,c);b.questionText&&g.Ug(this.questionText,g.Sz(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&eNa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.I=new Set(this.B.map(function(e){return e.u.u}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&iNa(this,a,c);b.surveyAdQuestionCommon&&gNa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
g.k.wN=function(){M1(this,!1);this.D.B.subscribe("l",this.aW,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.u?jNa(this):this.I.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),M1(this,!0))};
g.k.aW=function(){var a=this,b=this.B.reduce(function(d,e){var f=e.toggledLoggingParams;e.u&&e.u.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d;
d=g.Ke(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=Fi(e.baseUrl,b));return e});
return d});
c&&c.forEach(function(d){return a.Xa.executeCommand(d,a.macros)})};
g.k.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(N1,K1);N1.prototype.init=function(a,b,c){var d=this;K1.prototype.init.call(this,a,b,c);b.questionText&&g.Ug(this.questionText,g.Sz(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&eNa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?gNa(this,b.surveyAdQuestionCommon):g.jy(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
N1.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(O1,AK);
O1.prototype.init=function(a,b,c){var d=this;AK.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new N1(d.api,d.Xa,d.layoutId,d.i,d.Dg,d.Qi);f.Ea(d.u);f.init(KG("survey-question-single-select"),e,c);d.questions.push(f);g.H(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new L1(d.api,d.Xa,d.layoutId,d.i,d.Dg,d.Qi),
f.Ea(d.u),f.init(KG("survey-question-multi-select"),e,c),d.questions.push(f),g.H(d,f))});
this.show()};
O1.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.w(P1,AK);
P1.prototype.init=function(a,b,c){var d=this;AK.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.jy(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){lNa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);
lNa(this.logoImage,b.brandImage);g.Ug(this.text,g.Sz(b.text));this.actionButton=new OK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-survey-interstitial-action-button"]);g.H(this,this.actionButton);this.actionButton.Ea(this.B);this.actionButton.init(KG("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands;this.u=this.Dg?new tL(this.api,1E3*a):new uL(1E3*a,void 0);this.u.subscribe("g",function(){d.transition.hide();if(!d.Dg){for(var h=g.r(e),l=h.next();!l.done;l=
h.next())d.Xa.executeCommand(l.value,c);d.Xa.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)}});
g.H(this,this.u);this.T(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.uG)d.api.onAdUxClicked(d.componentType,d.layoutId);else for(l=g.r(l),m=l.next();!m.done;m=l.next())d.Xa.executeCommand(m.value,d.macros)});
this.transition.show(100);if(!this.Dg&&b.impressionCommands){a=g.r(b.impressionCommands);for(var f=a.next();!f.done;f=a.next())this.Xa.executeCommand(f.value,c)}}else g.jy(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.jy(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.jy(Error("SurveyTextInterstitialRenderer has no button."));else g.jy(Error("SurveyTextInterstitialRenderer has no text."));else g.jy(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
P1.prototype.clear=function(){this.hide()};
P1.prototype.show=function(){mNa(!0);AK.prototype.show.call(this)};
P1.prototype.hide=function(){mNa(!1);AK.prototype.hide.call(this)};var GPa="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["shopping-companion","action-companion","image-companion","ads-engagement-panel"]);g.w(Q1,YK);
Q1.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!GPa.includes(d))switch(a.actionType){case 1:a=this.K();var e=this.api,f=c.layoutId,h=c.i,l=c instanceof QH||c instanceof dJ||c instanceof hJ?c.Dg:!1,m=c instanceof QH||c instanceof sL||c instanceof dJ?c.Qi:!1,n=c instanceof hJ?c.uG:!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 y1(e,a,f,h);break;case "player-overlay":a=new EL(e,a,f,h,new CN(e),m);break;case "survey":a=
new O1(e,a,f,h,l,m);break;case "ad-action-interstitial":a=new x1(e,a,f,h,l,m);break;case "survey-interstitial":a=new P1(e,a,f,h,l,n);break;case "ad-message":a=new E1(e,a,f,h,new CN(e,1));break;case "player-underlay":a=new F1(e,a,f,h);break;default:a=null}if(!a){g.ky(Error("No UI component returned from ComponentFactory for type: "+d));break}ze(this.u,b)?g.ky(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof d1?this.B?this.B.append(a.gG):g.jy(Error("Underlay view was not created but UnderlayRenderer was created")):
this.I.append(a.gG);break;case 2:b=nNa(this,a);if(null==b)break;b.bind(c);break;case 3:c=nNa(this,a),null!=c&&((0,g.ee)(c),ze(this.u,b)?(c=this.u,b in c&&delete c[b]):g.ky(Error("Ad UI component does not exist: "+b)))}};
Q1.prototype.xa=function(){(0,g.ge)(Object.values(this.u));this.u={};YK.prototype.xa.call(this)};g.w(R1,g.LM);g.k=R1.prototype;g.k.create=function(){if(iZ(t1(this.i).Sf))try{oNa(this),this.load(),this.created=!0,oNa(this)}catch(a){R(a instanceof Error?a:String(a))}else this.load(),this.created=!0};
g.k.load=function(){g.LM.prototype.load.call(this);var a=t1(this.i).Sf;Mka(a.J.V().N("html5_reduce_ecatcher_errors"));if(iZ(a))try{this.player.getRootNode().classList.add("ad-created")}catch(l){R(l instanceof Error?l:String(l))}else this.player.getRootNode().classList.add("ad-created");var b=this.B(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;var h=c&&c.tf()||!1;a=sNa(f,a,e,h);f=c&&c.clientPlaybackNonce||"";c=c&&c.lp||!1;h=1E3*this.player.getDuration(1);this.Xa=new pK(this,this.player,this.Yo,b,t1(this.i));Qta(this.Xa,a.Pu);this.i.i.oo.ih(f,h,c,a.wA,a.wA.concat(a.Pu),e,d);qK(this.Xa)};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.i.i.oo.Cj(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.LM.prototype.unload.call(this);Mka(!1);if(iZ(t1(this.i).Sf))try{this.player.getRootNode().classList.remove("ad-created")}catch(b){R(b instanceof Error?b:String(b))}else this.player.getRootNode().classList.remove("ad-created");if(null!==this.Xa){var a=this.Xa;this.Xa=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.Yo.reset()};
g.k.Pi=function(){return!1};
g.k.vG=function(){return null===this.Xa?!1:this.Xa.vG()};
g.k.Pk=function(a){null!==this.Xa&&this.Xa.Pk(a)};
g.k.getAdState=function(){return this.Xa?this.Xa.Cz:-1};
g.k.getOptions=function(){return Object.values(FPa)};
g.k.jf=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=bH(this.player),Object.assign(b,a.vca),this.Xa&&!b.AD_CPN&&(b.AD_CPN=this.Xa.Yy()),a=g.Tq(a.url,b)):a=null,a;case "isExternalShelfAllowedFor":a:if(b.playerResponse){a=b.playerResponse.adPlacements||[];for(b=0;b<a.length;b++){var c=a[b];if(c.adPlacementRenderer&&c.adPlacementRenderer.renderer&&c.adPlacementRenderer.renderer.plaShelfRenderer){a=!1;break a}}a=!0}else a=!1;return a;case "onAboutThisAdPopupClosed":this.jo(b);
break;default:return null}};
g.k.jo=function(a){a.isMuted&&Gta(this.Xa,t1(this.i).eh,t1(this.i).Ci,a.layoutId);this.Ir&&this.Ir.jo()};
g.k.Qn=function(){return null===this.Xa?!1:this.Xa.Qn()};g.KM("ad",R1);var uNa=g.Cc&&tNa();g.w(g.U1,g.X);g.U1.prototype.onClick=function(){this.J.Na("onExpandMiniplayer")};})(_yt_player);
